@syncfusion/ej2-maps 25.2.4 → 25.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/dist/ej2-maps.min.js +2 -2
  3. package/dist/ej2-maps.umd.min.js +2 -2
  4. package/dist/ej2-maps.umd.min.js.map +1 -1
  5. package/dist/es6/ej2-maps.es2015.js +322 -202
  6. package/dist/es6/ej2-maps.es2015.js.map +1 -1
  7. package/dist/es6/ej2-maps.es5.js +331 -205
  8. package/dist/es6/ej2-maps.es5.js.map +1 -1
  9. package/dist/global/ej2-maps.min.js +2 -2
  10. package/dist/global/ej2-maps.min.js.map +1 -1
  11. package/dist/global/index.d.ts +1 -1
  12. package/package.json +7 -7
  13. package/src/maps/layers/bubble.d.ts +3 -4
  14. package/src/maps/layers/bubble.js +3 -4
  15. package/src/maps/layers/color-mapping.d.ts +2 -2
  16. package/src/maps/layers/color-mapping.js +2 -2
  17. package/src/maps/layers/data-label.d.ts +1 -1
  18. package/src/maps/layers/data-label.js +1 -1
  19. package/src/maps/layers/layer-panel.d.ts +7 -7
  20. package/src/maps/layers/layer-panel.js +11 -20
  21. package/src/maps/layers/legend.d.ts +9 -0
  22. package/src/maps/layers/legend.js +96 -19
  23. package/src/maps/layers/marker.d.ts +8 -8
  24. package/src/maps/layers/marker.js +8 -8
  25. package/src/maps/layers/navigation-selected-line.d.ts +1 -1
  26. package/src/maps/layers/navigation-selected-line.js +1 -1
  27. package/src/maps/layers/polygon.d.ts +1 -1
  28. package/src/maps/layers/polygon.js +1 -1
  29. package/src/maps/maps.d.ts +24 -26
  30. package/src/maps/maps.js +32 -30
  31. package/src/maps/model/base-model.d.ts +18 -2
  32. package/src/maps/model/base.d.ts +16 -2
  33. package/src/maps/model/base.js +7 -1
  34. package/src/maps/model/constants.d.ts +0 -4
  35. package/src/maps/model/constants.js +0 -4
  36. package/src/maps/model/interface.d.ts +2 -1
  37. package/src/maps/model/print.d.ts +3 -3
  38. package/src/maps/model/print.js +3 -3
  39. package/src/maps/model/theme.d.ts +1 -1
  40. package/src/maps/model/theme.js +1 -1
  41. package/src/maps/user-interaction/annotation.d.ts +1 -2
  42. package/src/maps/user-interaction/annotation.js +1 -2
  43. package/src/maps/user-interaction/highlight.d.ts +4 -4
  44. package/src/maps/user-interaction/highlight.js +4 -4
  45. package/src/maps/user-interaction/selection.d.ts +5 -5
  46. package/src/maps/user-interaction/selection.js +5 -5
  47. package/src/maps/user-interaction/tooltip.d.ts +6 -6
  48. package/src/maps/user-interaction/tooltip.js +18 -11
  49. package/src/maps/user-interaction/zoom.d.ts +6 -4
  50. package/src/maps/user-interaction/zoom.js +23 -10
  51. package/src/maps/utils/helper.d.ts +87 -72
  52. package/src/maps/utils/helper.js +114 -78
@@ -1,10 +1,10 @@
1
1
  /*!
2
2
  * filename: ej2-maps.min.js
3
- * version : 25.2.4
3
+ * version : 25.2.5
4
4
  * Copyright Syncfusion Inc. 2001 - 2023. All rights reserved.
5
5
  * Use of this code is subject to the terms of our license.
6
6
  * A copy of the current license can be obtained at any time by e-mailing
7
7
  * licensing@syncfusion.com. Any infringement will be prosecuted under
8
8
  * applicable laws.
9
9
  */
10
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("SyncfusionBase"),require("SyncfusionSvgBase"),require("SyncfusionData"),require("SyncfusionPdfExport")):"function"==typeof define&&define.amd?define(["SyncfusionBase","SyncfusionSvgBase","SyncfusionData","SyncfusionPdfExport"],t):"object"==typeof exports?exports.SyncfusionMaps=t(require("SyncfusionBase"),require("SyncfusionSvgBase"),require("SyncfusionData"),require("SyncfusionPdfExport")):e.SyncfusionMaps=t(e.SyncfusionBase,e.SyncfusionSvgBase,e.SyncfusionData,e.SyncfusionPdfExport)}(this,function(e,t,i,n){return function(e){function t(n){if(i[n])return i[n].exports;var o=i[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var i={};return t.m=e,t.c=i,t.i=function(e){return e},t.d=function(e,i,n){t.o(e,i)||Object.defineProperty(e,i,{configurable:!1,enumerable:!0,get:n})},t.n=function(e){var i=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(i,"a",i),i},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=7)}([function(e,t,i){"use strict";function n(e,t){return null!==e&&void 0!==e?-1!==e.indexOf("%")?t/100*parseInt(e,10):parseInt(e,10):null}function o(e){e.element.style.height=i.i($e.isNullOrUndefined)(e.height)?"auto":e.height,e.element.style.width=i.i($e.isNullOrUndefined)(e.width)?"auto":e.width,e.element.style.setProperty("display","block");var t=e.element.clientWidth,o=e.element.clientHeight,a=n(e.element.style.width,t),r=n(e.element.style.height,o);new ot(0,0);return"0px"===e.width||"0%"===e.width||"0%"===e.height||"0px"===e.height?new ot(0,0):new ot(n(e.width,t)||t||a||600,n(e.height,o)||o||r||(e.isDevice?Math.min(window.innerWidth,window.innerHeight):450))}function a(e){e.renderer=new et.SvgRenderer(e.element.id),e.availableSize=o(e),e.svgObject=e.renderer.createSvg({id:e.element.id+"_svg",width:e.availableSize.width,height:e.availableSize.height}),"0px"!==e.width&&"0%"!==e.width&&"0%"!==e.height&&"0px"!==e.height||(e.svgObject.setAttribute("height","0"),e.svgObject.setAttribute("width","0"))}function r(e,t,i){var n=i.getBoundingClientRect(),o=i.ownerDocument.defaultView.pageXOffset,a=i.ownerDocument.defaultView.pageYOffset,r=i.ownerDocument.documentElement.clientTop,l=i.ownerDocument.documentElement.clientLeft,s=n.left+o-l,d=n.top+a-r;return new bt(e-s,t-d)}function l(e){return e*(Math.PI/180)}function s(e){return e*(180/Math.PI)}function d(e,t,n,o,a){var r,d,p,h,y,f,v=new ot(a.mapAreaRect.width,a.mapAreaRect.height),S=a.baseMapBounds.longitude,_=a.baseMapBounds.latitude,x=l(e),O=l(t),M=a.projectionType,C=a.isTileMap?256*Math.pow(2,1):i.i($e.isNullOrUndefined)(n)?Math.min(v.width,v.height):Math.min(v.width,v.height)*n;if("Normal"===o.geometryType)r=i.i($e.isNullOrUndefined)(n)?t:Math.abs((t-S.min)*n),d=i.i($e.isNullOrUndefined)(n)?e:Math.abs((_.max-e)*n);else if("Geographic"===o.geometryType){switch(M){case"Mercator":var L=new at(C/2,C/2);r=L.x+t*(C/360);var P=b(Math.sin(l(e)),-.9999,.9999);d=L.y+.5*Math.log((1+P)/(1-P))*(-C/(2*Math.PI));break;case"Winkel3":p=m(O,x),y=(p.x+O/(Math.PI/2))/2,h=(p.y+x)/2;break;case"Miller":y=O,h=1.25*Math.log(Math.tan(Math.PI/4+.4*x));break;case"Eckert3":f=Math.sqrt(Math.PI*(4+Math.PI)),y=2/f*O*(1+Math.sqrt(1-4*x*x/(Math.PI*Math.PI))),h=4/f*x;break;case"AitOff":p=m(O,x),y=p.x,h=p.y;break;case"Eckert5":y=O*(1+Math.cos(x))/Math.sqrt(2+Math.PI),h=2*x/Math.sqrt(2+Math.PI);break;case"Equirectangular":y=O,h=x;break;case"Eckert6":;f=(1+Math.PI/2)*Math.sin(x);for(var w=1/0,T=0;T<10&&Math.abs(w)>1e-6;T++)w=(x+Math.sin(x)-f)/(1+Math.cos(x)),x-=w;f=Math.sqrt(2+Math.PI),y=O*(1+Math.cos(x))/f,h=2*x/f}r="Mercator"===M?r:g(c(a,s(y)),3),d="Mercator"===M?d:-g(u(a,s(h)),3)}return new at(r,d)}function p(e,t,i,n){var o="";return Array.prototype.forEach.call(n,function(n,a){var r=n.latitude,l=n.longitude,s=e.isTileMap?h(new bt(l,r),t,e.tileTranslatePoint,!0):d(r,l,t,i,e);o+=0===a?"M "+s.x+" "+s.y:" L "+s.x+" "+s.y}),o+=" z "}function h(e,t,i,n){var o=256*Math.pow(2,t),a=(e.x+180)/360,r=Math.sin(e.y*Math.PI/180),l=.5-Math.log((1+r)/(1-r))/(4*Math.PI),s=e.x,d=e.y;return n&&(s=a*o+.5+i.x,d=l*o+.5+i.y),{x:s,y:d}}function c(e,t){var n=e.baseMapBounds.longitude,o=i.i($e.isNullOrUndefined)(e.baseSize)?e.mapAreaRect.width:e.mapAreaRect.width+Math.abs(e.baseSize.width-e.mapAreaRect.width)/2;return Math.round(o*(t-n.min)/(n.max-n.min)*100)/100}function u(e,t){var i=e.baseMapBounds.latitude;return Math.round(e.mapAreaRect.height*(t-i.min)/(i.max-i.min)*100)/100}function m(e,t){var i=Math.cos(t),n=y(f(i*Math.cos(e/=2)));return new at(2*i*Math.sin(e)*n,Math.sin(t)*n)}function g(e,t){var i=Math.pow(10,t);return Math.round(e*i)/i}function y(e){return e/Math.sin(e)}function f(e){return Math.acos(e)}function b(e,t,n){return i.i($e.isNullOrUndefined)(t)||(e=Math.max(e,t)),i.i($e.isNullOrUndefined)(n)||(e=Math.min(e,n)),e}function v(e,t,n,o){i.i($e.createElement)("a",{attrs:{download:e+"."+t.toLocaleLowerCase(),href:n}}).dispatchEvent(new MouseEvent(o?"click":"move",{view:window,bubbles:!1,cancelable:!0}))}function S(e,t){var i=document.getElementById("mapsmeasuretext");return null===i&&(i=document.createElement("text"),i.id="mapsmeasuretext",document.body.appendChild(i)),i.innerText=e,i.style.cssText="position: absolute; font-size: "+("number"==typeof t.size?t.size+"px":t.size)+"; font-weight: "+t.fontWeight+"; font-style: "+t.fontStyle+"; font-family: "+t.fontFamily+"; visibility: hidden; top: -100; left: 0; whiteSpace: nowrap; lineHeight: normal",new ot(i.clientWidth,i.clientHeight)}function _(e,t){var i=document.createElement("canvas"),n=i.getContext("2d");n.font=t.fontStyle+" "+t.fontWeight+" "+("number"==typeof t.size?t.size+"px":t.size)+" "+t.fontFamily;var o=n.measureText(e),a=o.width,r=parseFloat(t.size)||16;return new ot(a,r)}function x(e,t,i,n,o){void 0===o&&(o=!1);var a,r,l={id:e.id,x:e.x,y:e.y,fill:i,"font-size":t.size,"font-style":t.fontStyle,"font-family":t.fontFamily,"font-weight":t.fontWeight,"text-anchor":e.anchor,transform:e.transform,opacity:t.opacity,"dominant-baseline":e.baseLine},s="string"==typeof e.text||"number"==typeof e.text?e.text:o?e.text[e.text.length-1]:e.text[0],d=new et.SvgRenderer(""),p=d.createText(l,s);if(p.style["user-select"]="none",p.style["font-family"]=t.fontFamily,p.style["font-size"]=t.size,p.style["font-weight"]=t.fontWeight,p.style["font-color"]=t.color,p.style["-moz-user-select"]="none",p.style["-webkit-touch-callout"]="none",p.style["-webkit-user-select"]="none",p.style["-khtml-user-select"]="none",p.style["-ms-user-select"]="none",p.style["-o-user-select"]="none","string"!=typeof e.text&&e.text.length>1)for(var h=1,c=e.text.length;h<c;h++)r=S(e.text[h],t).height,a=d.createTSpan({x:e.x,id:e.id,y:e.y+(o?-h*r:h*r)},o?e.text[e.text.length-(h+1)]:e.text[h]),p.appendChild(a);return n.appendChild(p),p}function O(e,t,n,o,a,r){var l=i.i($e.createElement)("div",{id:t,className:a.element.id+"_marker_template_element"});l.style.cssText="position: absolute;pointer-events: auto;";for(var s=e.length;s>0;)l.appendChild(e[0]),s--;if(!a.isReact||"function"!==r){for(var d=l.innerHTML,p=Object.keys(n),h=RegExp,c=0;c<p.length;c++)"object"==typeof n[p[c]]?d=C(d,"",n,a):"latitude"!==p[c].toLowerCase()&&"longitude"!==p[c].toLowerCase()&&(d=d.replace(new h("{{:"+p[c]+"}}","g"),n[p[c].toString()]));l.innerHTML=d}return l}function M(e,t){var i,n;return t.format&&!isNaN(Number(e))?(n=t.intl.getNumberFormat({format:t.format,useGrouping:t.useGroupingSeparator}),i=n(Number(e))):i=e,i}function C(e,t,i,n){for(var o=""===e?t:e,a=""===e?o.split("${"):o.split("{{:"),r=RegExp,l=0;l<a.length;l++)if(a[l].indexOf("}}")>-1&&a[l].indexOf(".")>-1||a[l].indexOf("}")>-1&&a[l].search(".")>-1)for(var s=""===e?a[l].split("}"):a[l].split("}}"),d=0;d<s.length;d++)if(s[d].indexOf(".")>-1){var p=w(i,s[d]).toString();o=""===e?o.split("${"+s[d]+"}").join(M(p,n)):o.replace(new r("{{:"+s[d]+"}}","g"),p)}return o}function L(e,t,n){for(var o=i.i($e.isNullOrUndefined)(e.childElementCount)?e[0]:e,a=o.outerHTML,r=Object.keys(n),l=RegExp,s=0;s<r.length;s++)a=a.replace(new l("{{:"+r[s]+"}}","g"),n[r[s].toString()]);var d=i.i($e.createElement)("div",{id:t,innerHTML:a});return d.style.position="absolute",d}function P(e,t,n,o,a,r,l){var s,d,p,h,c=a.size,u=a.borderColor,m=parseFloat(a.borderWidth),g=parseFloat(a.borderOpacity),y=a.fill,f=a.dashArray,b={color:u,width:m,opacity:g},v=a.opacity,S=new pt(o,y,m,u,v,g,f,"");if(c.width="string"==typeof c.width?parseInt(c.width,10):c.width,c.height="string"==typeof c.height?parseInt(c.height,10):c.height,"Circle"===e){var _=(c.width+c.height)/4,x=new ut(o,y,b,v,n.x,n.y,_,f);s=l.renderer.drawCircle(x)}else"Rectangle"===e?(d=n.x-c.width/2,p=n.y-c.height/2,h=new ct(o,y,b,v,new vt(d,p,c.width,c.height),null,null,"",f),s=l.renderer.drawRectangle(h)):"Image"===e?(d=n.x-c.width/2,p=n.y-(o.indexOf("cluster")>-1?c.height/2:c.height),i.i($e.merge)(S,{href:t,height:c.height,width:c.width,x:d,y:p}),s=l.renderer.drawImage(S)):s=q(l,e,S,c,n,r);return s}function w(e,t){if(!i.i($e.isNullOrUndefined)(e)&&!i.i($e.isNullOrUndefined)(t)){var n=t.replace(/\[/g,".").replace(/\]/g,"").split(".");if(1===n.length)e=e[n[0]];else for(var o=0;o<n.length&&!i.i($e.isNullOrUndefined)(e);o++)e=e[n[o]]}return e}function T(e,t){var n=i.i($e.isNullOrUndefined)(e.colorValuePath)?t[e.colorValuePath]:e.colorValuePath.indexOf(".")>-1?w(t,e.colorValuePath).toString():t[e.colorValuePath];return e.fill=i.i($e.isNullOrUndefined)(e.colorValuePath)||i.i($e.isNullOrUndefined)(n)?e.fill:e.colorValuePath.indexOf(".")>-1?w(t,e.colorValuePath).toString():t[e.colorValuePath],e}function I(e,t){if(i.i($e.isNullOrUndefined)(e.shapeValuePath)||i.i($e.isNullOrUndefined)(t[e.shapeValuePath])){var n=i.i($e.isNullOrUndefined)(e.shapeValuePath)?e.shape:e.shapeValuePath.indexOf(".")>-1?w(t,e.shapeValuePath).toString():e.shape;e.shape=""!==n.toString()?n:e.shape;var o=i.i($e.isNullOrUndefined)(e.imageUrlValuePath)?e.imageUrl:e.imageUrlValuePath.indexOf(".")>-1?w(t,e.imageUrlValuePath).toString():i.i($e.isNullOrUndefined)(t[e.imageUrlValuePath])?e.imageUrl:t[e.imageUrlValuePath];e.imageUrl=o}else{var a=e.shapeValuePath.indexOf(".")>-1?w(t,e.shapeValuePath).toString():t[e.shapeValuePath];e.shape=""!==a.toString()?a:e.shape,"Image"===t[e.shapeValuePath]&&(e.imageUrl=i.i($e.isNullOrUndefined)(e.imageUrlValuePath)?e.imageUrl:e.imageUrlValuePath.indexOf(".")>-1?w(t,e.imageUrlValuePath).toString():i.i($e.isNullOrUndefined)(t[e.imageUrlValuePath])?e.imageUrl:t[e.imageUrlValuePath])}return e}function k(e,t,n,o,a,r,l,s){var p,c,u,m,g,y,f,b=[],v=[],S=0,_=0,O=e.markerClusterSettings.labelStyle,M=0,C=[],L=e.markerClusterSettings,T=n.renderer.createGroup({id:n.element.id+"_LayerIndex_"+o+"_markerCluster"}),I={cancel:!1,name:it.r,fill:L.fill,height:L.height,width:L.width,imageUrl:L.imageUrl,shape:L.shape,data:void 0,maps:n,cluster:L,border:L.border},k=n.element.getBoundingClientRect();n.isTileMap?new Object:ue(n,e,!1);var F;n.isTileMap||(F=n.mapLayerPanel.calculateFactor(e));var z=!1,A=n.isTileMap?n.tileZoomLevel:n.mapScaleValue;return n.trigger("markerClusterRendering",I,function(B){for(Array.prototype.forEach.call(t.childNodes,function(r,l){if(C=[],"hidden"!==r.style.visibility){if(f=r,p=f.getBoundingClientRect(),C.push(l),!i.i($e.isNullOrUndefined)(p)){var s=n.markerModule.zoomedMarkerCluster.length>0&&n.markerModule.zoomedMarkerCluster[o]&&n.markerModule.zoomedMarkerCluster[o][l]&&n.markerModule.zoomedMarkerCluster[o][l].length>0||n.markerModule.initialMarkerCluster.length>0&&n.markerModule.initialMarkerCluster[o]&&n.markerModule.initialMarkerCluster[o][l]&&n.markerModule.initialMarkerCluster[o][l].length>0?n.previousScale<A?n.markerModule.zoomedMarkerCluster[o][l]:n.markerModule.initialMarkerCluster[o][l]:null;if(i.i($e.isNullOrUndefined)(s)||0===s.length?Array.prototype.forEach.call(t.childNodes,function(e,t){t>=l+1&&"hidden"!==e.style.visibility&&E(e,p,b,C,t)}):Array.prototype.forEach.call(s,function(e){if(l!==e){var t=document.getElementById(n.element.id+"_LayerIndex_"+o+"_MarkerIndex_0_dataIndex_"+e);"hidden"!==t.style.visibility&&E(t,p,b,C,e)}}),N(n,A,o,l,C),S=p.left+p.width/2,_=p.top+p.height,b.length>0){C=C.filter(function(e,t,i){return i.indexOf(e)===t}),S-=k.left,_-=n.availableSize.height<=k.height?k.top:k.bottom-k.top;var c,g=parseInt(r.id.split("_dataIndex_")[1].split("_")[0],10),v=parseInt(r.id.split("_MarkerIndex_")[1].split("_")[0],10),B=e.markerSettings[v],U=B.dataSource[g],j=i.i($e.isNullOrUndefined)(B.longitudeValuePath)?i.i($e.isNullOrUndefined)(U.longitude)?i.i($e.isNullOrUndefined)(U.Latitude)?0:parseFloat(U.Latitude):parseFloat(U.longitude):Number(w(U,B.longitudeValuePath)),Z=i.i($e.isNullOrUndefined)(B.latitudeValuePath)?i.i($e.isNullOrUndefined)(U.latitude)?i.i($e.isNullOrUndefined)(U.Latitude)?0:parseFloat(U.Latitude):parseFloat(U.latitude):Number(w(U,B.latitudeValuePath));n.isTileMap?n.isTileMap&&!n.zoomSettings.enable&&(c=h(new at(j,Z),n.tileZoomLevel,n.tileTranslatePoint,!0)):c=d(Z,j,F,e,n),r.style.visibility="hidden",I.cancel?(y={size:new ot(L.width,L.height),fill:L.fill,borderColor:L.border.color,borderWidth:L.border.width,opacity:L.opacity,dashArray:L.dashArray,imageUrl:L.imageUrl,shape:L.shape},y.borderOpacity=i.i($e.isNullOrUndefined)(L.border.opacity)?L.opacity:L.border.opacity):(y={size:new ot(I.width,I.height),fill:I.fill,borderColor:I.border.color,borderWidth:I.border.width,opacity:L.opacity,dashArray:L.dashArray,imageUrl:I.imageUrl,shape:I.shape},y.borderOpacity=i.i($e.isNullOrUndefined)(I.border.opacity)?L.opacity:I.border.opacity),S=n.isTileMap?S:t.id.indexOf("_Markers_Group")>-1?S:S+3.75-I.width/2,_=n.isTileMap?_:t.id.indexOf("_Markers_Group")>-1?_:_-I.height/2,n.isTileMap&&!n.zoomSettings.enable&&(S=c.x,_=c.y);var R=n.element.id+"_LayerIndex_"+o+"_MarkerIndex_"+v+"_dataIndex_"+g+"_cluster_"+M,D=n.element.id+"_LayerIndex_"+o+"_MarkerIndex_"+v+"_dataIndex_"+g+"_cluster_"+M+"_datalabel_"+M;M++;var V=P(y.shape,y.imageUrl,{x:0,y:0},R,y,a,n);V.setAttribute("transform","translate( "+S+" "+_+" )"),"Balloon"===I.shape?V.children[0].textContent=C.toString():V.textContent=C.toString(),u=new dt(D,0,3.75,"middle",(b.length+1).toString(),"",""),m=x(u,O,O.color,a),m.setAttribute("transform","translate( "+S+" "+_+" )"),T.appendChild(m),T.appendChild(V)}}b=[]}else N(n,A,o,l,C);z=!0}),r.appendChild(T),n.svgObject.appendChild(r),n.element.appendChild(n.svgObject),L.allowDeepClustering&&Array.prototype.forEach.call(T.childNodes,function(e,t){if("hidden"!==e.style.visibility&&(f=e,p=f.getBoundingClientRect(),!(i.i($e.isNullOrUndefined)(p)||f.id.indexOf("_datalabel_")>-1))){for(var n=t+1;n<T.childElementCount;n++)"hidden"!==T.childNodes[n].style.visibility&&(g=T.childNodes[n],c=g.getBoundingClientRect(),i.i($e.isNullOrUndefined)(c)||g.id.indexOf("_datalabel_")>-1||p.left>c.right||p.right<c.left||p.top>c.bottom||p.bottom<c.top||(v.push(g),v.push(T.childNodes[n-1]),T.childNodes[n].style.visibility="hidden",T.childNodes[n-1].style.visibility="hidden",C.push(n)));if(v.length>0){f=e;for(var o=0;o<v.length;o++)"g"===f.tagName?f.childNodes[0].textContent=f.childNodes[0].textContent+","+v[o].textContent:f.textContent=f.textContent+","+v[o].textContent,T.childNodes[t-1].textContent=(+T.childNodes[t-1].textContent+ +v[o+1].textContent).toString(),o++}v=[]}});0<T.childNodes.length;)a.insertBefore(T.childNodes[0],a.firstChild);l||ye(n.element.id+"_Secondary_Element").appendChild(a);var U=document.getElementById(n.element.id+"_LayerIndex_"+o+"_Polygon_Group"),j=document.getElementById(n.element.id+"_LayerIndex_"+o+"_Polygons_Group");i.i($e.isNullOrUndefined)(U)&&!n.isTileMap?r.insertBefore(a,r.firstChild):n.isTileMap?i.i($e.isNullOrUndefined)(j)?i.i($e.isNullOrUndefined)(U)?r.insertBefore(a,r.firstChild):U.insertAdjacentElement("afterend",a):j.insertAdjacentElement("afterend",a):r.appendChild(a);var Z=document.getElementById(n.element.id+"_LayerIndex_"+o+"_markerCluster");if(i.i($e.isNullOrUndefined)(Z)||Z.remove(),s){var R=document.getElementById(n.element.id+"_Layer_Collections"),D=document.getElementById(n.element.id+"_LayerIndex_"+(o+1));i.i($e.isNullOrUndefined)(R)||i.i($e.isNullOrUndefined)(D)?i.i($e.isNullOrUndefined)(R)||R.appendChild(r):R.insertBefore(r,D)}}),z}function N(e,t,n,o,a){if(1===t){var r=i.i($e.isNullOrUndefined)(e.markerModule.initialMarkerCluster[n][o])?[]:a.length>1?a:[];e.markerModule.initialMarkerCluster[n][o]=r;var l=i.i($e.isNullOrUndefined)(e.markerModule.zoomedMarkerCluster[n][o])?[]:a.length>1?a:[];e.markerModule.zoomedMarkerCluster[n][o]=l}else t>1&&(e.markerModule.zoomedMarkerCluster[n][o]=a.length>1?a:[])}function E(e,t,n,o,a){var r=e.getBoundingClientRect();i.i($e.isNullOrUndefined)(r)||t.left>r.right||t.right<r.left||t.top>r.bottom||t.bottom<r.top||(n.push(r),e.style.visibility="hidden",o.push(a))}function F(e,t){var n=e[0].layerIndex,o=e[0].targetClusterIndex,a=e[0].markerIndex,r=e[0].dataIndex,l=t.element.id+"_LayerIndex_"+n+"_MarkerIndex_"+a,s=t.layers[n].markerSettings[a],d=l+"_dataIndex_"+r+"_cluster_"+o,p=Se("Balloon"===t.layers[n].markerClusterSettings.shape?d+"_Group":d),h=Se(d+"_datalabel_"+o);p.setAttribute("visibility","visible"),h.setAttribute("visibility","visible");for(var c,u=e[0].data.length,m=0;m<u;m++)c=Se("Balloon"===s.shape&&i.i($e.isNullOrUndefined)(s.template)?l+"_dataIndex_"+e[0].data[m].index+"_Group":l+"_dataIndex_"+e[0].data[m].index),c.style.visibility="hidden";he(t.element.id+"_LayerIndex_"+n+"_MarkerIndex_"+a+"_markerClusterConnectorLine")}function z(e,t,n,o){var a=e[0].layerIndex,r=e[0].markerIndex,l=e[0].targetClusterIndex,s=e[0].dataIndex,d=o?Se:n.querySelector.bind(n),p=o?"":"#",h=t.element.id+"_LayerIndex_"+a+"_MarkerIndex_"+r,c=t.layers[a].markerSettings[r],u=h+"_dataIndex_"+s+"_cluster_"+l,m=d("Balloon"===t.layers[a].markerClusterSettings.shape?p+""+u+"_Group":p+""+u),g=d(p+""+u+"_datalabel_"+l);m.setAttribute("visibility","hidden"),g.setAttribute("visibility","hidden");var y=d("Balloon"===c.shape&&i.i($e.isNullOrUndefined)(c.template)?p+""+h+"_dataIndex_"+s+"_Group":p+""+h+"_dataIndex_"+s),f=y.parentElement.id.indexOf("Template_Group")>-1?y.getBoundingClientRect().height:c.height,b=y.parentElement.id.indexOf("Template_Group")>-1?y.getBoundingClientRect().width:c.width,v=+m.getAttribute("transform").split("translate(")[1].trim().split(" ")[0],S=+m.getAttribute("transform").split("translate(")[1].trim().split(" ")[1].split(")")[0].trim(),_=b+5,x=6.28*_,O=0,M=Math.round(x/b);O+=M;var C=e[0].data.length,L=Math.round(f/x*100);L=C<M?100/C:L;for(var P=L/100*360,w=C<M?45:0,T=1,I="M "+v+" "+S+" ",k="",N=0;N<C;N++){if(O===N||Math.round(w)>=360){for(T++,_=(b+5)*T,w=0,x=6.28*_,M=Math.round(x/f),L=Math.round(f/x*100);L*M<100;)M++;P=L/100*360,O+=M}var E=v+_*Math.sin(2*Math.PI*w/360),F=S+_*Math.cos(2*Math.PI*w/360);k+=I+"L "+E+" "+F+" ",y=d("Balloon"===c.shape&&i.i($e.isNullOrUndefined)(c.template)?p+""+h+"_dataIndex_"+e[0].data[N].index+"_Group":p+""+h+"_dataIndex_"+e[0].data[N].index),y.parentElement.id.indexOf("Template_Group")>-1?(y.style.transform="",y.style.left=t.isTileMap?E-b/2+"px":E-b/2-10+"px",y.style.top=t.isTileMap?F-f/2+"px":F-f/2-10+"px",y.setAttribute("transform","translate( "+E+" "+F+")")):y.setAttribute("transform","translate( "+E+" "+F+")"),y.style.visibility="visible",w+=P}var z=t.layers[a].markerClusterSettings.connectorLineSettings,A={d:k,id:t.element.id+"_LayerIndex_"+a+"_MarkerIndex_"+r+"_dataIndex_"+s+"_markerClusterConnectorLine",stroke:z.color,"fill-opacity":z.opacity,"stroke-opacity":z.opacity,"stroke-width":z.width};n=o?d(t.element.id+"_Markers_Group"):n;var B=t.renderer.createGroup({id:t.element.id+"_LayerIndex_"+a+"_MarkerIndex_"+r+"_markerClusterConnectorLine"});B.appendChild(t.renderer.drawPath(A)),"Balloon"===c.shape?n.insertBefore(B,n.querySelector("#"+h+"_dataIndex_0_Group")):n.insertBefore(B,n.querySelector("#"+h+"_dataIndex_0"))}function A(e,t,n,o,a,r,l,s,d,p,h){var c={size:new ot(e.width,e.height),fill:e.fill,borderColor:e.border.color,borderWidth:e.border.width,opacity:t.opacity,dashArray:t.dashArray,borderOpacity:i.i($e.isNullOrUndefined)(e.border.opacity)?t.opacity:e.border.opacity};he(l);var u=P(e.shape,e.imageUrl,{x:0,y:0},l,c,h,p),m=(p.isTileMap?a.x:(a.x+r.x)*d)+s.x,g=(p.isTileMap?a.y:(a.y+r.y)*d)+s.y;u.setAttribute("transform","translate( "+m+" "+g+" )"),U(p.selectedMarkerElementId,p.markerSelectionClass,u,"MarkerselectionMapStyle"),h.appendChild(u);var y=n.length-1===o?"marker":null,f=new at(m,g);return(t.animationDuration>0||"Enable"===$e.animationMode)&&Ie(u,t.animationDelay,t.animationDuration,f,p,y),h}function B(e,t,i,n,o,a,r,l,s,d,p){if((t=ve(e.template,p))&&t(n,p,e.template,p.element.id+"_MarkerTemplate"+o,!1).length){for(var h=t(n,p,e.template,p.element.id+"_MarkerTemplate"+o,!1),c=O(h,i,n,o,p,typeof e.template),u=0;u<c.children.length;u++)c.children[u].style.pointerEvents="auto";if(c.style.left=(p.isTileMap?r.x:(r.x+l.x)*s)+d.x-p.mapAreaRect.x+"px",c.style.top=(p.isTileMap?r.y:(r.y+l.y)*s)+d.y-p.mapAreaRect.y+"px",a.appendChild(c),"GoogleStaticMap"===p.layers[p.baseLayerIndex].layerType){var m=ye(p.element.id+"_StaticGoogleMap").getBoundingClientRect(),g=c.getBoundingClientRect();(m.x>g.x||m.x+640<g.x+g.width)&&(m.y>g.y||m.y+m.height<g.y+g.height)&&(c.style.display="none")}}return a}function U(e,t,n,o){if(e)for(var a=0;a<e.length;a++)n.getAttribute("id")===e[a]&&(0!==a&&"g"!==n.tagName||(i.i($e.isNullOrUndefined)(t)||i.i($e.isNullOrUndefined)(t.id)||document.body.appendChild(t),n.id.indexOf("_MarkerIndex_")>-1&&n.childElementCount>0&&n.children[0].setAttribute("class",o)),n.setAttribute("class",o))}function j(e,t,n,o,a,r,l){if(!Se(e)){var s=i.i($e.createElement)("style",{id:e});s.innerText="."+t+"{fill:"+n+";opacity:"+o+";stroke-width:"+r+";stroke:"+a+";}",l.shapeSelectionClass=s,document.body.appendChild(s)}}function Z(e,t){return t&&t.appendChild(e),e}function R(e,t,i){return Z(e.renderer.drawCircle(t),i)}function D(e,t,i){return Z(e.renderer.drawRectangle(t),i)}function V(e,t,i){return Z(e.renderer.drawPath(t),i)}function G(e,t,i){return Z(e.renderer.drawPolygon(t),i)}function H(e,t,i){return Z(e.renderer.drawPolyline(t),i)}function W(e,t,i){return Z(e.renderer.drawLine(t),i)}function q(e,t,i,n,o,a){var r;switch(t){case"Balloon":r=ee(e,i,n,o,"Marker",a);break;case"Cross":i.d="M "+o.x+" "+(o.y-n.height/2)+" L "+o.x+" "+(o.y+n.height/2)+" M "+(o.x-n.width/2)+" "+o.y+" L "+(o.x+n.width/2)+" "+o.y;break;case"Diamond":i.d="M "+o.x+" "+(o.y-n.height/2)+" L "+(o.x+n.width/2)+" "+o.y+" L "+o.x+" "+(o.y+n.height/2)+" L "+(o.x-n.width/2)+" "+o.y+" Z";break;case"Star":i.d="M "+(o.x+n.width/3)+" "+(o.y-n.height/2)+" L "+(o.x-n.width/2)+" "+(o.y+n.height/6)+" L "+(o.x+n.width/2)+" "+(o.y+n.height/6)+" L "+(o.x-n.width/3)+" "+(o.y-n.height/2)+" L "+o.x+" "+(o.y+n.height/2)+" L "+(o.x+n.width/3)+" "+(o.y-n.height/2)+" Z";break;case"Triangle":i.d="M "+o.x+" "+(o.y-n.height/2)+" L "+(o.x+n.width/2)+" "+(o.y+n.height/2)+" L "+(o.x-n.width/2)+" "+(o.y+n.height/2)+" Z";break;case"HorizontalLine":i.d=" M "+(o.x-n.width/2)+" "+o.y+" L "+(o.x+n.width/2)+" "+o.y;break;case"VerticalLine":i.d="M "+o.x+" "+(o.y-n.height/2)+" L "+o.x+" "+(o.y+n.height/2);break;case"InvertedTriangle":i.d="M "+(o.x-n.width/2)+" "+(o.y-n.height/2)+" L "+(o.x+n.width/2)+" "+(o.y-n.height/2)+" L "+o.x+" "+(o.y+n.height/2)+" Z";break;case"Pentagon":for(var l=void 0,s=void 0,d=0;d<5;d++)l=n.width/2*Math.cos(Math.PI/180*(72*d)),s=n.height/2*Math.sin(Math.PI/180*(72*d)),i.d+=(0===d?"M ":"L ")+(o.x+l)+" "+(o.y+s);i.d+=" Z"}return"Cross"!==t&&"HorizontalLine"!==t&&"VerticalLine"!==t||(i.stroke="transparent"===i.stroke?i.fill:i.stroke),"Balloon"===t?r:e.renderer.drawPath(i)}function X(e,t,i,n,o){return t.d="M "+n.x+" "+(n.y-i.height/2)+" L "+(n.x+i.width/2)+" "+n.y+" L "+n.x+" "+(n.y+i.height/2)+" L "+(n.x-i.width/2)+" "+n.y+" Z",Z(e.renderer.drawPath(t),o)}function Y(e,t,i,n,o){return t.d="M "+n.x+" "+(n.y-i.height/2)+" L "+(n.x+i.width/2)+" "+(n.y+i.height/2)+" L "+(n.x-i.width/2)+" "+(n.y+i.height/2)+" Z",Z(e.renderer.drawPath(t),o)}function Q(e,t,i,n,o){return t.d="M "+n.x+" "+(n.y-i.height/2)+" L "+n.x+" "+(n.y+i.height/2)+" M "+(n.x-i.width/2)+" "+n.y+" L "+(n.x+i.width/2)+" "+n.y,Z(e.renderer.drawPath(t),o)}function J(e,t,i,n,o){return t.d=" M "+(n.x-i.width/2)+" "+n.y+" L "+(n.x+i.width/2)+" "+n.y,Z(e.renderer.drawPath(t),o)}function K(e,t,i,n,o){return t.d="M "+n.x+" "+(n.y-i.height/2)+" L "+n.x+" "+(n.y+i.height/2),Z(e.renderer.drawPath(t),o)}function $(e,t,i,n,o){return t.d="M "+(n.x+i.width/3)+" "+(n.y-i.height/2)+" L "+(n.x-i.width/2)+" "+(n.y+i.height/6)+" L "+(n.x+i.width/2)+" "+(n.y+i.height/6)+" L "+(n.x-i.width/3)+" "+(n.y-i.height/2)+" L "+n.x+" "+(n.y+i.height/2)+" L "+(n.x+i.width/3)+" "+(n.y-i.height/2)+" Z",Z(e.renderer.drawPath(t),o)}function ee(e,t,i,n,o,a){var r,l=i.width,s=i.height;n.x-=l/2,n.y-=t.id.indexOf("cluster")>-1?s/2:t.id.indexOf("Legend")>-1?s/1.25:s,t.d="M15,0C8.8,0,3.8,5,3.8,11.2C3.8,17.5,9.4,24.4,15,30c5.6-5.6,11.2-12.5,11.2-18.8C26.2,5,21.2,0,15,0z M15,16c-2.8,0-5-2.2-5-5s2.2-5,5-5s5,2.2,5,5S17.8,16,15,16z";var d=e.renderer.drawPath(t),p=i.width/30,h=i.height/30;if(d.setAttribute("transform","translate("+n.x+", "+n.y+") scale("+p+", "+h+")"),"Marker"===o){var c=e.renderer.createGroup({id:t.id+"_Group"});Z(d,c),r=Z(c,a)}else r=d;return r}function te(e,t,i,n){for(var o=e.renderer.createPattern(t,"pattern"),a=0,r=i;a<r.length;a++){Z(r[a],o)}return Z(o,n)}function ie(e,t){for(var i,n=[],o=0,a=e;o<a.length;o++){var r=a[o];i={};for(var l=0,s=t;l<s.length;l++){var d=s[l];r[d]&&(i[d]=r[d])}n.push(i)}return n}function ne(e,t,n,o,a){if(!i.i($e.isNullOrUndefined)(t))for(var r=0;r<e.length;r++){var l=n.indexOf(".")>-1?w(e[r],n):e[r][n],s=oe(l,o,t),d=!i.i($e.isNullOrUndefined)(l)&&isNaN(t[s])&&"string"==typeof l?l.toLowerCase():l,p=!i.i($e.isNullOrUndefined)(t[s])&&isNaN(t[s])?t[s].toLowerCase():t[s];if(d===p)return r}return null}function oe(e,t,n){if(!i.i($e.isNullOrUndefined)(e)&&!i.i($e.isNullOrUndefined)(n)&&!i.i($e.isNullOrUndefined)(t))for(var o="[object Array]"===Object.prototype.toString.call(t)?t:[t],a=0;a<o.length;a++){var r=i.i($e.isNullOrUndefined)(e)||"string"!=typeof e?e:e.toLowerCase(),l=!i.i($e.isNullOrUndefined)(n[o[a]])&&isNaN(n[o[a]])?n[o[a]].toLowerCase():n[o[a]];if(r===l)return o[a]}return null}function ae(e,t,i){for(var n=[],o=0;o<e.length;o++){var a=e[o];t<=a.y&&i>=a.y&&n.push(a)}return n}function re(e,t,i,n,o){var a=100/(o-n)*(i-n),r=(t-e)/100*a+e;return o===n&&(r=(t-e)/100+e),r}function le(e,t,i){if(!e.length)return null;for(var n,o,a,r,l=e.length,s=0,d=0,p=0,h=0;h<=l-1;h++)n=e[h].x,o="Mercator"===t||"Normal"===i?e[h].y:-e[h].y,h===l-1?(a=e[0].x,r="Mercator"===t||"Normal"===i?e[0].y:-e[0].y):(a=e[h+1].x,r="Mercator"===t||"Normal"===i?e[h+1].y:-e[h+1].y),s+=Math.abs(n*r-a*o),d+=Math.abs((n+a)*(n*r-a*o)),p+=Math.abs((o+r)*(n*r-a*o));s*=.5;var c=e.some(function(e){return e.x<5&&e.y<5})&&"Normal"===i?6:4;d=0!==s?1/(c*s)*d:0,p=0!==s?1/(c*s)*p:0;for(var u={x:0,y:0},m={x:0,y:0},g={x:0,y:0},y={x:0,y:0},f={x:0,y:0},b={x:0,y:0},v={x:0,y:0},S={x:0,y:0},_=0,h=0;h<=l-1;h++){var x=e[h];x.y="Mercator"===t||"Normal"===i?x.y:-x.y,x.y>p?x.x<d&&d-x.x<d-f.x?f={x:x.x,y:x.y}:x.x>d&&(0===b.x||x.x-d<b.x-d)&&(b={x:x.x,y:x.y}):x.x<d&&d-x.x<d-v.x?v={x:x.x,y:x.y}:x.x>d&&(0===S.x||x.x-d<S.x-d)&&(S={x:x.x,y:x.y}),_=b.y-S.y+(b.y-S.y)/4,x.x>d?x.y<p&&p-x.y<p-u.y?u={x:x.x,y:x.y}:x.y>p&&(0===m.y||x.y-p<m.y-p)&&(m={x:x.x,y:x.y}):x.y<p&&p-x.y<p-g.y?g={x:x.x,y:x.y}:x.y>p&&(0===y.y||x.y-p<y.y-p)&&(y={x:x.x,y:x.y})}return{x:d,y:p,rightMin:u,rightMax:m,leftMin:g,leftMax:y,points:e,topMax:S,topMin:v,bottomMax:b,bottomMin:f,height:_}}function se(e){var t=!1;return"[object Array]"===Object.prototype.toString.call(e)&&Array.prototype.forEach.call(e,function(e){i.i($e.isNullOrUndefined)(e.geometry)||"Path"!==e.geometry.type||(t=!0)}),t}function de(e,t,n,o,a,r){var l=t;if(i.i($e.isNullOrUndefined)(o)&&(o=a?_(t,n).width:S(t,n).width),o>e)for(var s=t.length,d=s-1;d>=0;--d)if(l=t.substring(0,d)+"...",(o=a?_(l,n).width:S(l,n).width)<=e||l.length<4)return l.length<4&&(l=" "),i.i($e.isNullOrUndefined)(r)||r.push(o),l;return i.i($e.isNullOrUndefined)(r)||r.push(o),l}function pe(e,t,i,n){var o;switch(t){case"Near":o=e.x;break;case"Center":o="title"===n?e.width/2-i.width/2:e.x+e.width/2-i.width/2;break;case"Far":o="title"===n?e.width-e.y-i.width:e.x+e.width-i.width}var a="title"===n?e.y+i.height/2:e.y+e.height/2+i.height/2;return new at(o,a)}function he(e){var t=document.getElementById(e);return t?i.i($e.remove)(t):null}function ce(e,t){var i=d(e.minLatOfGivenLocation,e.minLongOfGivenLocation,e.mapLayerPanel.calculateFactor(t),t,e),n=d(e.maxLatOfGivenLocation,e.maxLongOfGivenLocation,e.mapLayerPanel.calculateFactor(t),t,e),o=(i.x+n.x)/2,a=(i.y+n.y)/2;return new at(o,a)}function ue(e,t,n){var o,a=e.zoomSettings.zoomFactor,r=e.centerPosition,l=r.latitude,s=r.longitude,p=!i.i($e.isNullOrUndefined)(e.centerLatOfGivenLocation)&&!i.i($e.isNullOrUndefined)(e.centerLongOfGivenLocation)&&e.zoomNotApplied;i.i($e.isNullOrUndefined)(e.mapScaleValue)&&(e.mapScaleValue=a),e.zoomSettings.shouldZoomInitially&&e.zoomSettings.enable&&(e.mapScaleValue=o=a=(e.zoomSettings.shouldZoomInitially||e.enablePersistence)&&1===e.scale?e.scale:i.i($e.isNullOrUndefined)(e.markerZoomFactor)?1:e.markerZoomedState?e.markerZoomFactor:parseInt(e.scale.toString()),e.markerZoomedState&&e.mapScaleValue!==e.markerZoomFactor&&!e.enablePersistence&&(e.mapScaleValue=a=e.markerZoomFactor),!e.markerZoomedState||i.i($e.isNullOrUndefined)(e.markerCenterLatitude)||i.i($e.isNullOrUndefined)(e.markerCenterLongitude)||(l=e.markerCenterLatitude,s=e.markerCenterLongitude)),p&&(e.mapScaleValue=o=a=e.scaleOfGivenLocation);var h=i.i($e.isNullOrUndefined)(e.baseMapRectBounds)?null:e.baseMapRectBounds.min,c=i.i($e.isNullOrUndefined)(e.baseMapRectBounds)?null:e.baseMapRectBounds.max,u=n?1:e.mapScaleValue;i.i($e.isNullOrUndefined)(e.currentShapeDataLength)&&(e.currentShapeDataLength=i.i($e.isNullOrUndefined)(t.shapeData.features)?t.shapeData.geometries.length:t.shapeData.features.length);var m,g,y=e.totalRect&&e.legendSettings.visible?e.totalRect:e.mapAreaRect,f=e.availableSize;if(!i.i($e.isNullOrUndefined)(h)&&!i.i($e.isNullOrUndefined)(c)){var b=Math.abs(c.x-h.x),v=Math.abs(h.y-c.y),S=n?1:1===e.markerZoomFactor?e.mapScaleValue:a;if(r=e.zoomSettings.shouldZoomInitially&&e.markerZoomedState&&!e.zoomPersistence?e.markerZoomCenterPoint:e.centerPosition,!i.i($e.isNullOrUndefined)(s)&&0!==s&&!i.i($e.isNullOrUndefined)(l)&&0!==l||p){var _=((b+Math.abs(e.mapAreaRect.width-b))/2+e.mapAreaRect.x)/S,x=((v+Math.abs(e.mapAreaRect.height-v))/2+e.mapAreaRect.y)/S,O=p?ce(e,t):d(l,s,e.mapLayerPanel.calculateFactor(t),t,e);i.i($e.isNullOrUndefined)(e.previousProjection)||e.previousProjection!==e.projectionType||e.isMarkerZoomCompleted?(m=-O.x+_,g=-O.y+x,o=u):(1!==Math.floor(e.scale)&&e.zoomSettings.shouldZoomInitially||e.zoomNotApplied?(m=-O.x+_,g=-O.y+x):e.zoomSettings.shouldZoomInitially||e.zoomNotApplied?(m=-O.x+_,g=-O.y+x,o=u):(m=e.zoomTranslatePoint.x,g=e.zoomTranslatePoint.y),o=e.mapScaleValue)}else if(i.i($e.isNullOrUndefined)(e.previousProjection)||e.previousProjection!==e.projectionType){0!==v&&0!==b&&v!==b||(b=y.width/2,v=y.height),o=parseFloat(Math.min(y.width/b,y.height/v).toFixed(2)),o=o>1.05?1:o,b*=o,v*=o;var M=0!==h.x&&"layers"===e.translateType?f.width-y.width:0;m=y.x+(-h.x+(y.width/2-b/2))-M,g=y.y+(-h.y+(y.height/2-v/2)),e.previousTranslate=new at(m,g)}else if(e.zoomSettings.shouldZoomInitially||1!==e.markerZoomFactor||1!==e.mapScaleValue)if(o=e.mapScaleValue<1?e.mapScaleValue+1:e.mapScaleValue,e.mapScaleValue=e.zoomSettings.enable&&1!==e.mapScaleValue?e.mapScaleValue:1,e.currentShapeDataLength!==(i.i($e.isNullOrUndefined)(t.shapeData.features)?t.shapeData.geometries.length:t.shapeData.features.length)&&"SubLayer"!==t.type){var C=parseFloat(Math.min(y.height/v,y.width/b).toFixed(2));v*=C,b*=C,g=y.y+(-h.y+(y.height/2-v/2)),o=C,m=y.x+(-h.x+(y.width/2-b/2))}else if(e.availableSize.height!==e.heightBeforeRefresh||e.widthBeforeRefresh!==e.availableSize.width){var L=parseFloat(Math.min(y.width/b,y.height/v).toFixed(2)),P=b;P*=L;var w=v;w*=L;var T=y.x+(-h.x+(y.width/2-P/2)),I=y.y+(-h.y+(y.height/2-w/2)),k=(e.translatePoint.x-e.previousTranslate.x)/e.widthBeforeRefresh,N=(e.translatePoint.y-e.previousTranslate.y)/e.heightBeforeRefresh,E=k*e.availableSize.width,F=N*e.availableSize.height;m=T+E,g=I+F,e.previousTranslate=new at(T,I),e.zoomTranslatePoint.x=m,e.zoomTranslatePoint.y=g}else i.i($e.isNullOrUndefined)(e.previousProjection)||!(1===e.mapScaleValue||e.mapScaleValue<=1.05)||e.zoomModule.isDragZoom?(m=e.zoomTranslatePoint.x,g=e.zoomTranslatePoint.y,o=e.scale):(o=parseFloat(Math.min(y.width/b,y.height/v).toFixed(2)),o=o>1.05?1:o,b*=o,m=y.x+(-h.x+(y.width/2-b/2)),v*=o,g=y.y+(-h.y+(y.height/2-v/2)));else o=parseFloat(Math.min(y.width/b,y.height/v).toFixed(2)),v*=o,b*=o,g=y.y+(-h.y+(y.height/2-v/2)),m=y.x+(-h.x+(y.width/2-b/2));i.i($e.isNullOrUndefined)(e.translatePoint)||(m=e.enablePersistence&&0!==e.translatePoint.x&&!e.zoomNotApplied?e.translatePoint.x:m,g=e.enablePersistence&&0!==e.translatePoint.y&&!e.zoomNotApplied?e.translatePoint.y:g)}return o=e.enablePersistence?e.mapScaleValue>=1?e.mapScaleValue:1:o,e.widthBeforeRefresh=e.availableSize.width,e.heightBeforeRefresh=e.availableSize.height,{scale:o,location:new at(m,g)}}function me(e,t,n){var o,a=e.zoomSettings.zoomFactor,r=e.centerPosition,l=r.latitude,s=r.longitude,p=!i.i($e.isNullOrUndefined)(e.centerLongOfGivenLocation)&&!i.i($e.isNullOrUndefined)(e.centerLatOfGivenLocation)&&e.zoomNotApplied;i.i($e.isNullOrUndefined)(e.previousCenterLatitude)&&i.i($e.isNullOrUndefined)(e.previousCenterLongitude)?(e.previousCenterLatitude=e.centerPosition.latitude,e.previousCenterLongitude=e.centerPosition.longitude):e.previousCenterLatitude!==e.centerPosition.latitude&&e.previousCenterLongitude!==e.centerPosition.longitude?(e.centerPositionChanged=!0,e.previousCenterLatitude=e.centerPosition.latitude,e.previousCenterLongitude=e.centerPosition.longitude):e.centerPositionChanged=!1,(i.i($e.isNullOrUndefined)(e.mapScaleValue)||a>e.mapScaleValue)&&(e.isReset&&1===e.mapScaleValue?e.mapScaleValue=e.mapScaleValue:!i.i($e.isNullOrUndefined)(e.mapScaleValue)&&e.mapScaleValue<=e.scale?e.mapScaleValue=e.scale:e.mapScaleValue=a),e.mapScaleValue=1!==e.zoomSettings.zoomFactor&&e.zoomSettings.zoomFactor===e.mapScaleValue?e.zoomSettings.zoomFactor:e.zoomSettings.zoomFactor===e.mapScaleValue||e.centerPositionChanged?e.zoomSettings.zoomFactor:e.mapScaleValue,e.zoomSettings.shouldZoomInitially&&!e.isZoomByPosition&&(e.mapScaleValue=a=o=(e.enablePersistence||e.zoomSettings.shouldZoomInitially)&&1===e.scale?e.scale:i.i($e.isNullOrUndefined)(e.markerZoomFactor)?e.mapScaleValue:e.markerZoomFactor,a=e.mapScaleValue,i.i($e.isNullOrUndefined)(e.markerCenterLatitude)||i.i($e.isNullOrUndefined)(e.markerCenterLongitude)||(l=e.markerCenterLatitude,s=e.markerCenterLongitude)),p&&(e.mapScaleValue=o=a=e.scaleOfGivenLocation);var h,c,u=n?1:e.mapScaleValue,m=e.mapAreaRect,g=e.baseMapRectBounds.min,y=e.baseMapRectBounds.max,f=n?1:e.mapScaleValue,b=Math.abs(y.x-g.x),v=Math.abs(g.y-y.y);if(!i.i($e.isNullOrUndefined)(s)&&0!==s&&!i.i($e.isNullOrUndefined)(l)&&0!==l||p){var S=(v+Math.abs(e.mapAreaRect.height-v))/2/f,_=(b+Math.abs(e.mapAreaRect.width-b))/2/f,x=p?ce(e,t):d(l,s,e.mapLayerPanel.calculateFactor(t),t,e);i.i($e.isNullOrUndefined)(e.zoomTranslatePoint)&&i.i($e.isNullOrUndefined)(e.previousProjection)||e.zoomNotApplied?(h=-x.x+_+e.mapAreaRect.x/u,c=-x.y+S+e.mapAreaRect.y/u):e.previousProjection!==e.projectionType?(h=-x.x+_,c=-x.y+S):(e.isZoomByPosition&&(e.zoomTranslatePoint.x=-x.x+_,e.zoomTranslatePoint.y=-x.y+S),h=e.zoomTranslatePoint.x,c=e.zoomTranslatePoint.y,a=u),i.i($e.isNullOrUndefined)(e.translatePoint)||(c=e.enablePersistence&&0!==e.translatePoint.y&&!e.zoomNotApplied?e.translatePoint.y:c,h=e.enablePersistence&&0!==e.translatePoint.x&&!e.zoomNotApplied?e.translatePoint.x:h),o=0!==a?a:1}else{var O=0===e.zoomSettings.zoomFactor?1:e.zoomSettings.zoomFactor,M=e.zoomSettings.maxZoom;O=O>M?M:O,o=O;var C=0===e.mapScaleValue?1:e.mapScaleValue>M?M:e.mapScaleValue,_=m.x+(-g.x+(m.width/2-b/2)),S=m.y+(-g.y+(m.height/2-v/2));if(!i.i($e.isNullOrUndefined)(e.zoomTranslatePoint)||!i.i($e.isNullOrUndefined)(e.previousProjection))if(e.previousProjection!==e.projectionType){var L=[],P={x:_,y:S};L.push(P);for(var w=1;w<M;w++){var T=L[w-1].x-(m.width/w-m.width/(w+1))/2,I=L[w-1].y-(m.height/w-m.height/(w+1))/2;P={x:T,y:I},L.push(P)}_=L[O-1].x,S=L[O-1].y}else _=e.zoomTranslatePoint.x,S=e.zoomTranslatePoint.y,O!==C&&(o=C);i.i($e.isNullOrUndefined)(e.translatePoint)||(h=e.enablePersistence&&0!==e.translatePoint.x&&!e.zoomNotApplied?e.translatePoint.x:_,c=e.enablePersistence&&0!==e.translatePoint.y&&!e.zoomNotApplied?e.translatePoint.y:S)}return o=e.enablePersistence?0===e.mapScaleValue?1:e.mapScaleValue:o,e.widthBeforeRefresh=e.availableSize.width,e.heightBeforeRefresh=e.availableSize.height,{scale:n?1:o,location:new at(h,c)}}function ge(e){e.tileZoomScale=e.tileZoomLevel=Math.floor(e.availableSize.height/512)+1;var t="GoogleStaticMap"!==e.layers[e.baseLayerIndex].layerType?20:0,i=256*Math.pow(2,e.tileZoomLevel);e.tileTranslatePoint.x=e.availableSize.width/2-i/2,e.tileTranslatePoint.y=e.availableSize.height/2-i/2+t,e.previousTileWidth=e.availableSize.width,e.previousTileHeight=e.availableSize.height}function ye(e){return document.getElementById(e)}function fe(e){var t=document.getElementById(e);return i.i($e.isNullOrUndefined)(t)?null:t.getClientRects()[0]}function be(e,t){return e.formatFunction=e.intl.getNumberFormat({format:e.format,useGrouping:e.useGroupingSeparator}),e.formatFunction(t)}function ve(e,t){var n=null;try{"function"!=typeof e&&document.querySelectorAll(e).length?n=i.i($e.compile)(document.querySelector(e).innerHTML.trim()):t.isVue||t.isVue3?n=i.i($e.compile)(e):"function"==typeof e&&(n=i.i($e.compile)(e))}catch(t){n=i.i($e.compile)(e)}return n}function Se(e){return document.getElementById(e)}function _e(e,t){var i,n=parseInt(e.split("_LayerIndex_")[1].split("_")[0],10),o=parseInt(e.split("_shapeIndex_")[1].split("_")[0],10),a=t.layersCollection[n],r=a.layerData[o].property;return a.dataSource&&(i=a.dataSource[ne(a.dataSource,r,a.shapeDataPath,a.shapePropertyPath,a)]),{shapeData:r,data:i}}function xe(e,t,n,o){var a=_e(e,n),r={color:t.border.color,opacity:t.border.opacity,width:t.border.width},l=t.enableMultiSelect?{cancel:!1,name:o,fill:t.fill,opacity:t.opacity,border:r,shapeData:a.shapeData,data:a.data,target:e,maps:n,shapeDataCollection:n.shapeSelectionItem}:{cancel:!1,name:o,fill:t.fill,opacity:t.opacity,border:r,shapeData:a.shapeData,data:a.data,target:e,maps:n};return n.trigger(o,l,function(){l.border.opacity=i.i($e.isNullOrUndefined)(l.border.opacity)?l.opacity:l.border.opacity}),l}function Oe(e){return document.getElementsByClassName(e)}function Me(e,t){var i=null;return document.getElementById(t)&&(i=document.getElementById(t).querySelector("#"+e)),i}function Ce(e,t,i,n){for(var o,a=n.layers[e].shapeData.features,r=0;r<a.length;r++)if(a[r].properties.name===t){o=n.element.id+"_LayerIndex_"+e+"_shapeIndex_"+r+"_dataIndex_undefined";break}return Se(o)}function Le(e,t,n){var o=i.i($e.createElement)("style",{id:e});return o.innerText="."+t+"{fill:"+n.fill+";fill-opacity:"+n.opacity.toString()+";stroke-opacity:"+n.border.opacity.toString()+";stroke-width:"+n.border.width.toString()+";stroke:"+n.border.color+";}",o}function Pe(e,t,n){var o=Se(e);i.i($e.isNullOrUndefined)(o)||(o.innerText="."+t+"{fill:"+n.fill+";fill-opacity:"+n.opacity.toString()+";stroke-width:"+n.border.width.toString()+";stroke-opacity:"+n.border.opacity.toString()+";stroke:"+n.border.color+"}")}function we(e,t,n,o,a){var r={color:e.border.color,width:e.border.width/t.scale,opacity:e.border.opacity},l={opacity:e.opacity,fill:e.fill,border:r,name:tt.itemSelection,target:n.id,cancel:!1,shapeData:o,data:a,maps:t};t.trigger("itemSelection",l,function(n){l.border.opacity=i.i($e.isNullOrUndefined)(e.border.opacity)?e.opacity:e.border.opacity,t.shapeSelectionItem.push(l.shapeData),Se("ShapeselectionMap")?Pe("ShapeselectionMap","ShapeselectionMapStyle",l):document.body.appendChild(Le("ShapeselectionMap","ShapeselectionMapStyle",l))})}function Te(e){e.removeAttribute("class")}function Ie(e,t,n,o,a,r,l){void 0===l&&(l=0);var s=o.x,d=o.y,p=0,h=e.getAttribute("transform")||"";new $e.Animation({}).animate(e,{duration:0===n&&"Enable"===$e.animationMode?1e3:n,delay:t,progress:function(t){if(t.timeStamp>t.delay){if(a.isTileMap&&0===p){var n=document.querySelector(".GroupElement");i.i($e.isNullOrUndefined)(n)||(n.style.display="block")}p=(t.timeStamp-t.delay)/t.duration,e.setAttribute("transform","translate( "+(s-l*p)+" "+(d-l*p)+" ) scale("+p+")")}},end:function(t){if(e.setAttribute("transform",h),r){var i={cancel:!1,name:it.C,element:r,maps:a};a.trigger(it.C,i)}}})}function ke(e){he(e)}function Ne(e,t,n,o,a,l,s,d,p){var h=r(n,o,d);i.i($e.isNullOrUndefined)(h)||(n=h.x,o=h.y);for(var c=document.getElementById(s),u=S(e,{fontFamily:"Segoe UI",size:"8px",fontStyle:"Normal",fontWeight:"Regular"}).width,m=e.split(" "),g=m[0].length,y=1;y<m.length;y++)g<m[y].length&&(g=m[y].length);c||(c=i.i($e.createElement)("div",{id:s}),c.style.cssText='background-color: rgb(255, 255, 255) !important; color:black !important; position:absolute;border:1px solid rgb(0, 0, 0); padding-left:5px;font-size:12px; font-family: "Segoe UI"; text-align:center'),n<a-u?n=n:n>a-u&&n<a-8*g?u=a-n:n>=a-8*g&&(n>u?n-=u:(u=n,n=0));var f=t.split("px");Ee(c,e,n,o,f,u,a,d),c.clientHeight+2*parseInt(f[0],10)>l&&(u=n,n=0),Ee(c,e,n,o,f,u,a,d),p&&setTimeout(ke,5e3,s)}function Ee(e,t,i,n,o,a,r,l){e.innerText=t,e.style.top=-1!==e.id.indexOf("_Legend")?(parseInt(o[0],10)+n).toString()+"px":(2*parseInt(o[0],10)).toString()+"px",e.style.left=i.toString()+"px",e.style.width=a.toString()+"px",e.style.maxWidth=r.toString()+"px",e.style.wordWrap="break-word",l.appendChild(e)}function Fe(e,t,n,o,a){var r=Se(e),l=ze(a.borderColor),s=ze(a.fontColor),d="top:"+n.toString()+"px;left:"+o.toString()+"px;color:"+(s?"rgba("+s.r+","+s.g+","+s.b+","+a.fontOpacity+")":a.fontColor)+";background:"+a.fill+";z-index: 2;position:absolute;border:"+a.borderWidth+"px solid "+(l?"rgba("+l.r+","+l.g+","+l.b+","+a.borderOpacity+")":a.borderColor)+";font-family:"+a.fontFamily+";font-style:"+a.fontStyle+";font-weight:"+a.fontWeight+";font-size:"+a.fontSize+";border-radius:"+a.borderWidth+"px;";!r&&a.visible?(r=i.i($e.createElement)("div",{id:e}),r.innerHTML=$e.SanitizeHtmlHelper.sanitize("&nbsp;"+t+"&nbsp;"),r.style.cssText=d,document.body.appendChild(r)):a.visible&&(r.innerHTML=$e.SanitizeHtmlHelper.sanitize("&nbsp;"+t+"&nbsp;"),r.style.cssText=d)}function ze(e){if(-1!==e.indexOf("#")&&-1===e.toLowerCase().indexOf("rgb")){var t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16)}:null}if(-1!==e.toLowerCase().indexOf("rgb")){var t=e.match(/\d+/g).map(function(e){return parseInt(e,10)});return t?{r:t[0],g:t[1],b:t[2]}:null}var i=document.createElement("div");i.style.color=e;var t=window.getComputedStyle(document.body.appendChild(i)).color.match(/\d+/g).map(function(e){return parseInt(e,10)});return document.body.removeChild(i),t?{r:t[0],g:t[1],b:t[2]}:null}function Ae(e,t,i,n,o){var a=new et.SvgRenderer(""),r=Be(e,i,t,o,n);return a["draw"+r.functionName](r.renderOption)}function Be(e,t,n,o,a){var r,l="Path",s=t.width,d=t.height,p=e.x,h=e.y,c=e.x+-s/2,u=e.y+-d/2;switch(o.stroke="HorizontalLine"===n||"VerticalLine"===n||"Cross"===n?o.fill:o.stroke,o["stroke-width"]=0!==o["stroke-width"]||"HorizontalLine"!==n&&"VerticalLine"!==n&&"Cross"!==n?o["stroke-width"]:1,n){case"Circle":case"Bubble":l="Ellipse",i.i($e.merge)(o,{rx:s/2,ry:d/2,cx:p,cy:h});break;case"VerticalLine":r="M "+p+" "+(h+d/2)+" L "+p+" "+(h+-d/2),i.i($e.merge)(o,{d:r});break;case"HorizontalLine":r="M "+p+" "+h+" L "+(p+s/2)+" "+h,i.i($e.merge)(o,{d:r});break;case"Diamond":r="M "+c+" "+h+" L "+p+" "+(h+-d/2)+" L "+(p+s/2)+" "+h+" L "+p+" "+(h+d/2)+" L "+c+" "+h+" z",i.i($e.merge)(o,{d:r});break;case"Rectangle":r="M "+c+" "+(h+-d/2)+" L "+(p+s/2)+" "+(h+-d/2)+" L "+(p+s/2)+" "+(h+d/2)+" L "+c+" "+(h+d/2)+" L "+c+" "+(h+-d/2)+" z",i.i($e.merge)(o,{d:r});break;case"Triangle":r="M "+c+" "+(h+d/2)+" L "+p+" "+(h+-d/2)+" L "+(p+s/2)+" "+(h+d/2)+" L "+c+" "+(h+d/2)+" z",i.i($e.merge)(o,{d:r});break;case"InvertedTriangle":r="M "+(p+s/2)+" "+(h-d/2)+" L "+p+" "+(h+d/2)+" L "+(p-s/2)+" "+(h-d/2)+" L "+(p+s/2)+" "+(h-d/2)+" z",i.i($e.merge)(o,{d:r});break;case"Pentagon":for(var m=void 0,g=void 0,y=0;y<=5;y++)m=s/2*Math.cos(Math.PI/180*(72*y)),g=s/2*Math.sin(Math.PI/180*(72*y)),r=0===y?"M "+(p+m)+" "+(h+g)+" ":r.concat("L "+(p+m)+" "+(h+g)+" ");r=r.concat("Z"),i.i($e.merge)(o,{d:r});break;case"Star":r="M "+(e.x+t.width/3)+" "+(e.y-t.height/2)+" L "+(e.x-t.width/2)+" "+(e.y+t.height/6)+" L "+(e.x+t.width/2)+" "+(e.y+t.height/6)+" L "+(e.x-t.width/3)+" "+(e.y-t.height/2)+" L "+e.x+" "+(e.y+t.height/2)+" L "+(e.x+t.width/3)+" "+(e.y-t.height/2)+" Z",i.i($e.merge)(o,{d:r});break;case"Cross":r="M "+c+" "+h+" L "+(p+s/2)+" "+h+" M "+p+" "+(h+d/2)+" L "+p+" "+(h+-d/2),i.i($e.merge)(o,{d:r});break;case"Image":l="Image",i.i($e.merge)(o,{href:a,height:d,width:s,x:c,y:u})}return{renderOption:o,functionName:l}}function Ue(e,t){t.appendChild(e);var i=e.offsetWidth,n=e.offsetHeight;return t.removeChild(e),new ot(i,n)}function je(e,t,n,o){for(var a,r=0;r<e.childElementCount;r++)if(a=e.childNodes[r],a.id.indexOf("_NavigationGroup")>-1)Ze(a,t,n,o);else if(a.id.indexOf("_Polygons_Group")>-1)for(var l=0;l<a.childElementCount;l++){var s=o.layersCollection[t].polygonSettings.polygons[parseInt(a.children[l].id.split("_PolygonIndex_")[1])].borderWidth;a.children[l].setAttribute("stroke-width",(s/n).toString())}else{var d=void 0,p=0,h=o.layersCollection[t].shapeSettings.borderWidthValuePath,c=o.layersCollection[t].shapeSettings.border.width,u=o.layersCollection[t].shapeSettings.circleRadius;o.layersCollection[t].shapeSettings.borderWidthValuePath?(p=ne(o.layersCollection[t].dataSource,o.layersCollection[t].layerData[r].property,o.layersCollection[t].shapeDataPath,o.layersCollection[t].shapePropertyPath,o.layersCollection[t]),d=null!==p&&o.layersCollection[t].dataSource[p][h]?o.layersCollection[t].dataSource[p][h]:i.i($e.isNullOrUndefined)(c)?0:c):d=i.i($e.isNullOrUndefined)(c)?0:c,a.setAttribute("stroke-width",(d/n).toString()),(e.id.indexOf("_Point")>-1||e.id.indexOf("_MultiPoint")>-1)&&a.setAttribute("r",(u/n).toString())}}function Ze(e,t,i,n){for(var o,a=0;a<e.childElementCount;a++)if(o=e.childNodes[a],"path"===o.tagName){var r=n.layersCollection[t].navigationLineSettings[parseFloat(o.id.split("_NavigationIndex_")[1].split("_")[0])].width;o.setAttribute("stroke-width",(r/i).toString())}}function Re(e){for(var t=[],i=e.touches,n=0;n<i.length;n++)t.push({pageX:i[n].pageX,pageY:i[n].pageY});return t}function De(e,t){var i=Ve(e[0],e[1]);return Ve(t[0],t[1])/i}function Ve(e,t){var i=e.pageX-t.pageX,n=e.pageY-t.pageY;return Math.sqrt(i*i+n*n)}function Ge(e,t){var i=t.element.getBoundingClientRect(),n=i.top+document.defaultView.pageXOffset,o=i.left+document.defaultView.pageYOffset;return Array.prototype.slice.call(e).map(function(e){return{x:e.pageX-o,y:e.pageY-n}})}function He(e){return{x:e.map(function(e){return e.x}).reduce(We)/e.length,y:e.map(function(e){return e.y}).reduce(We)/e.length}}function We(e,t){return e+t}function qe(e,t,i,n,o,a,r){var l=0,s=r.previousPoint,d=r.previousScale,p=o-d,h=new bt(0,0),c=1;if(o===d)return void e.setAttribute("transform","scale( "+o+" ) translate( "+n.x+" "+n.y+" )");var u=function(e,t){return e.x===t.x?null:(t.y-e.y)/(t.x-e.x)}(s,n),m=function(e,t){return null===t?e.x:e.y-t*e.x}(s,u),g=n.x-s.x,y=n.y-s.y;Xe(e,t,i,function(e){e.timeStamp>e.delay&&(l=(e.timeStamp-e.delay)/e.duration,c=d+l*p,h.x=s.x+l*g/(c/o),h.y=null==u?s.y+l*y:u*h.x+m,e.element.setAttribute("transform","scale( "+c+" ) translate( "+h.x+" "+h.y+" )"),r.translatePoint=h,r.scale=c,r.zoomModule.processTemplate(n.x,n.y,c,r))},function(){r.translatePoint=n,r.scale=o,e.setAttribute("transform","scale( "+o+" ) translate( "+n.x+" "+n.y+" )"),r.zoomModule.processTemplate(n.x,n.y,o,r)})}function Xe(e,t,i,n,o){var a,r=this,l=null;i="Disable"===$e.animationMode?0:i;var s=function(t){l||(l=t);var d=t-l;if(d<i)n.call(r,{element:e,delay:0,timeStamp:d,duration:i}),window.requestAnimationFrame(s);else if(window.cancelAnimationFrame(a),o.call(r,{element:e}),e.id.indexOf("Marker")>-1){var p=ye(e.id.split("_Layer")[0]+"_Markers_Group");p.style.cssText="visibility:visible"}};a=window.requestAnimationFrame(s)}function Ye(e,t,i,n){var o=0,a=e.getAttribute("transform").split(" ");2===a.length&&(a[2]=a[1].split(")")[0],a[1]=a[0].split("(")[1]);var r=new bt(parseInt(a[1],10),parseInt(a[2],10)),l=n.x-r.x,s=n.y-r.y,d=new bt(0,0);Xe(e,t,i,function(e){e.timeStamp>e.delay&&(o=(e.timeStamp-e.delay)/e.duration,d.x=r.x+o*l,d.y=r.y+o*s,e.element.setAttribute("transform","translate( "+d.x+" "+d.y+" )"))},function(){e.setAttribute("transform","translate( "+n.x+" "+n.y+" )")})}function Qe(e,t){var n=i.i($e.isNullOrUndefined)(t.shouldZoomPreviousFactor)?null:t.shouldZoomPreviousFactor,o=i.i($e.isNullOrUndefined)(t.shouldZoomCurrentFactor)?null:t.shouldZoomCurrentFactor;i.i($e.isNullOrUndefined)(o)?!i.i($e.isNullOrUndefined)(n)&&i.i($e.isNullOrUndefined)(o)&&t.shouldZoomPreviousFactor!==e?t.shouldZoomCurrentFactor=e:t.shouldZoomPreviousFactor=e:(t.shouldZoomCurrentFactor=null,t.shouldZoomPreviousFactor=null)}function Je(e,t,i,n,o,a,r,l){var s,d,p=r.zoomSettings.maxZoom,h=Math.sin(t*Math.PI/180),c=Math.log((1+h)/(1-h))/2,u=Math.max(Math.min(c,Math.PI),-Math.PI)/2,m=Math.sin(e*Math.PI/180),g=Math.log((1+m)/(1-m))/2,y=Math.max(Math.min(g,Math.PI),-Math.PI)/2;if(r.zoomNotApplied&&!r.isTileMap){var f=Math.abs((r.baseMapBounds.latitude.max-r.baseMapBounds.latitude.min)/(t-e)),b=Math.abs((r.baseMapBounds.longitude.max-r.baseMapBounds.longitude.min)/(n-i));d=l?(f+b)/2:Math.min(f,b)}var v=(u-y)/Math.PI,S=n-i,_=(S<0?S+360:S)/360,x=Math.log(a/256/v)/Math.LN2,O=Math.log(o/256/_)/Math.LN2,M=r.zoomNotApplied&&!r.isTileMap?d:l&&!r.isTileMap?(x+O)/2:Math.min(x,O);return s=Math.min(M,p),s=r.isTileMap||!r.zoomNotApplied?Math.floor(s):s,r.isTileMap||Qe(s,r),s}function Ke(e){var t,n=i.i($e.isNullOrUndefined)(e.result)?e.actual:e.result;return i.i($e.isNullOrUndefined)(n.length)?i.i($e.isNullOrUndefined)(n.Items)||(t=n.Items):t=n,t}i.d(t,"a",function(){return ot}),t.b=n,t.c=o,t.d=a,t.e=r,t.f=l,t.g=s,t.h=d,t.i=p,t.j=h,t.k=c,t.l=u,t.m=m,t.n=g,t.o=y,t.p=f,t.q=b,t.r=v,i.d(t,"s",function(){return at}),i.d(t,"t",function(){return rt}),i.d(t,"u",function(){return lt}),i.d(t,"v",function(){return st}),t.w=S,t.x=_,i.d(t,"y",function(){return dt}),i.d(t,"z",function(){return pt}),i.d(t,"A",function(){return ht}),i.d(t,"B",function(){return ct}),i.d(t,"C",function(){return ut}),i.d(t,"D",function(){return mt}),i.d(t,"E",function(){return gt}),i.d(t,"F",function(){return yt}),i.d(t,"G",function(){return ft}),i.d(t,"H",function(){return bt}),i.d(t,"I",function(){return vt}),i.d(t,"J",function(){return St}),t.K=x,t.L=O,t.M=M,t.N=C,t.O=L,t.P=P,t.Q=w,t.R=T,t.S=I,t.T=k,t.U=N,t.V=E,t.W=F,t.X=z,t.Y=A,t.Z=B,t._0=U,t._1=j,t._2=Z,t._3=R,t._4=D,t._5=V,t._6=G,t._7=H,t._8=W,t._9=q,t._10=X,t._11=Y,t._12=Q,t._13=J,t._14=K,t._15=$,t._16=ee,t._17=te,t._18=ie,t._19=ne,t._20=oe,t._21=ae,t._22=re,t._23=le,t._24=se,t._25=de,t._26=pe,t._27=he,t._28=ce,t._29=ue,t._30=me,t._31=ge,t._32=ye,t._33=fe,t._34=be,t._35=ve,t._36=Se,t._37=_e,t._38=xe,t._39=Oe,t._40=Me,t._41=Ce,t._42=Le,t._43=Pe,t._44=we,t._45=Te,t._46=Ie,t._47=ke,t._48=Ne,t._49=Ee,t._50=Fe,t._51=ze,t._52=Ae,t._53=Be,t._54=Ue,t._55=je,t._56=Ze,t._57=Re,t._58=De,t._59=Ve,t._60=Ge,t._61=He,t._62=We,t._63=qe,t._64=Xe,i.d(t,"_65",function(){return _t}),t._66=Ye,t._67=Qe,t._68=Je,t._69=Ke;var $e=i(1),et=(i.n($e),i(6)),tt=(i.n(et),i(7)),it=i(2),nt=this&&this.__extends||function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),ot=function(){function e(e,t){this.width=e,this.height=t}return e}(),at=function(){function e(e,t){this.x=e,this.y=t}return e}(),rt=function(){function e(e,t){this.latitude=e,this.longitude=t}return e}(),lt=function(){function e(e,t){this.min=e,this.max=t}return e}(),st=function(){function e(e,t){this.latitude=new lt(e.min,e.max),this.longitude=new lt(t.min,t.max)}return e}(),dt=function(){function e(e,t,i,n,o,a,r){void 0===a&&(a=""),this.transform="",this.baseLine="auto",this.id=e,this.text=o,this.transform=a,this.anchor=n,this.x=t,this.y=i,this.baseLine=r}return e}(),pt=function(){function e(e,t,i,n,o,a,r,l){this.id=e,this["fill-opacity"]=o,this["stroke-opacity"]=a,this.fill=t,this.stroke=n,this["stroke-width"]=i,this["stroke-dasharray"]=r,this.d=l}return e}(),ht=function(){function e(e,t,i){this.r=e,this.g=t,this.b=i}return e}(),ct=function(e){function t(t,i,n,o,a,r,l,s,d){var p=e.call(this,t,i,n.width,n.color,o,n.opacity)||this;return p.y=a.y,p.x=a.x,p.height=a.height,p.width=a.width,p.rx=r||0,p.ry=l||0,p.transform=s||"",p["stroke-dasharray"]=d,p["fill-opacity"]=o,p["stroke-opacity"]=n.opacity,p}return nt(t,e),t}(pt),ut=function(e){function t(t,i,n,o,a,r,l,s){var d=e.call(this,t,i,n.width,n.color,o,n.opacity,s)||this;return d.cy=r,d.cx=a,d.r=l,d["stroke-dasharray"]=s,d["fill-opacity"]=o,d["stroke-opacity"]=n.opacity,d}return nt(t,e),t}(pt),mt=function(e){function t(t,i,n,o,a,r,l,s){void 0===r&&(r=1),void 0===l&&(l=1),void 0===s&&(s="");var d=e.call(this,t,n,o,a,r,l,s)||this;return d.points=i,d}return nt(t,e),t}(pt),gt=function(e){function t(t,i,n,o,a,r,l,s){return void 0===r&&(r=1),void 0===l&&(l=1),void 0===s&&(s=""),e.call(this,t,i,n,o,a,r,l,s)||this}return nt(t,e),t}(mt),yt=function(e){function t(t,i,n,o,a,r,l,s){void 0===r&&(r=1),void 0===l&&(l=1),void 0===s&&(s="");var d=e.call(this,t,n,o,a,r,l,s)||this;return d.x1=i.x1,d.y1=i.y1,d.x2=i.x2,d.y2=i.y2,d}return nt(t,e),t}(pt),ft=function(){function e(e,t,i,n){this.x1=e,this.y1=t,this.x2=i,this.y2=n}return e}(),bt=function(){function e(e,t){this.x=e,this.y=t}return e}(),vt=function(){function e(e,t,i,n){this.x=e,this.y=t,this.width=i,this.height=n}return e}(),St=function(){function e(e,t,i,n,o,a,r,l,s){void 0===a&&(a="userSpaceOnUse"),void 0===r&&(r="userSpaceOnUse"),void 0===l&&(l=""),void 0===s&&(s=""),this.id=e,this.x=t,this.y=i,this.width=n,this.height=o,this.patternUnits=a,this.patternContentUnits=r,this.patternTransform=l,this.href=s}return e}(),_t=function(){function e(e,t,i,n,o){this.dataOptions=e,this.type=t||"GET",this.async=i||!0,this.contentType=n,this.sendData=o}return e}()},function(t,i){t.exports=e},function(e,t,i){"use strict";var n=i(18);i.d(t,"a",function(){return n.a});var o=i(3);i.d(t,"b",function(){return o.a}),i.d(t,"c",function(){return o.b}),i.d(t,"d",function(){return o.c}),i.d(t,"e",function(){return o.d}),i.d(t,"f",function(){return o.e}),i.d(t,"g",function(){return o.f}),i.d(t,"h",function(){return o.g}),i.d(t,"i",function(){return o.h}),i.d(t,"j",function(){return o.i}),i.d(t,"k",function(){return o.j}),i.d(t,"l",function(){return o.k}),i.d(t,"m",function(){return o.l}),i.d(t,"n",function(){return o.m}),i.d(t,"o",function(){return o.n}),i.d(t,"p",function(){return o.o}),i.d(t,"q",function(){return o.p}),i.d(t,"r",function(){return o.q}),i.d(t,"s",function(){return o.r}),i.d(t,"t",function(){return o.s}),i.d(t,"u",function(){return o.t}),i.d(t,"v",function(){return o.u}),i.d(t,"w",function(){return o.v}),i.d(t,"x",function(){return o.w}),i.d(t,"y",function(){return o.x}),i.d(t,"z",function(){return o.y}),i.d(t,"A",function(){return o.z}),i.d(t,"B",function(){return o.A}),i.d(t,"C",function(){return o.B}),i.d(t,"D",function(){return o.C}),i.d(t,"E",function(){return o.D}),i.d(t,"F",function(){return o.E}),i.d(t,"G",function(){return o.F}),i.d(t,"H",function(){return o.G}),i.d(t,"I",function(){return o.H}),i.d(t,"J",function(){return o.I}),i.d(t,"K",function(){return o.J}),i.d(t,"L",function(){return o.K}),i.d(t,"M",function(){return o.L});var a=i(5);i.d(t,"N",function(){return a.a}),i.d(t,"O",function(){return a.b}),i.d(t,"P",function(){return a.c}),i.d(t,"Q",function(){return a.d}),i.d(t,"R",function(){return a.e}),i.d(t,"S",function(){return a.f}),i.d(t,"T",function(){return a.g}),i.d(t,"U",function(){return a.h}),i.d(t,"V",function(){return a.i}),i.d(t,"W",function(){return a.j}),i.d(t,"X",function(){return a.k}),i.d(t,"Y",function(){return a.l}),i.d(t,"Z",function(){return a.m}),i.d(t,"_0",function(){return a.n}),i.d(t,"_1",function(){return a.o}),i.d(t,"_2",function(){return a.p}),i.d(t,"_3",function(){return a.q}),i.d(t,"_4",function(){return a.r}),i.d(t,"_5",function(){return a.s}),i.d(t,"_6",function(){return a.t}),i.d(t,"_7",function(){return a.u}),i.d(t,"_8",function(){return a.v}),i.d(t,"_9",function(){return a.w}),i.d(t,"_10",function(){return a.x}),i.d(t,"_11",function(){return a.y}),i.d(t,"_12",function(){return a.z}),i.d(t,"_13",function(){return a.A}),i.d(t,"_14",function(){return a.B}),i.d(t,"_15",function(){return a.C}),i.d(t,"_16",function(){return a.D}),i.d(t,"_17",function(){return a.E}),i.d(t,"_18",function(){return a.F}),i.d(t,"_19",function(){return a.G}),i.d(t,"_20",function(){return a.H}),i.d(t,"_21",function(){return a.I}),i.d(t,"_22",function(){return a.J});var r=i(0);i.d(t,"_23",function(){return r.a}),i.d(t,"_24",function(){return r.b}),i.d(t,"_25",function(){return r.c}),i.d(t,"_26",function(){return r.d}),i.d(t,"_27",function(){return r.e}),i.d(t,"_28",function(){return r.f}),i.d(t,"_29",function(){return r.g}),i.d(t,"_30",function(){return r.h}),i.d(t,"_31",function(){return r.i}),i.d(t,"_32",function(){return r.j}),i.d(t,"_33",function(){return r.k}),i.d(t,"_34",function(){return r.l}),i.d(t,"_35",function(){return r.m}),i.d(t,"_36",function(){return r.n}),i.d(t,"_37",function(){return r.o}),i.d(t,"_38",function(){return r.p}),i.d(t,"_39",function(){return r.q}),i.d(t,"_40",function(){return r.r}),i.d(t,"_41",function(){return r.s}),i.d(t,"_42",function(){return r.t}),i.d(t,"_43",function(){return r.u}),i.d(t,"_44",function(){return r.v}),i.d(t,"_45",function(){return r.w}),i.d(t,"_46",function(){return r.x}),i.d(t,"_47",function(){return r.y}),i.d(t,"_48",function(){return r.z}),i.d(t,"_49",function(){return r.A}),i.d(t,"_50",function(){return r.B}),i.d(t,"_51",function(){return r.C}),i.d(t,"_52",function(){return r.D}),i.d(t,"_53",function(){return r.E}),i.d(t,"_54",function(){return r.F}),i.d(t,"_55",function(){return r.G}),i.d(t,"_56",function(){return r.H}),i.d(t,"_57",function(){return r.I}),i.d(t,"_58",function(){return r.J}),i.d(t,"_59",function(){return r.K}),i.d(t,"_60",function(){return r.L}),i.d(t,"_61",function(){return r.M}),i.d(t,"_62",function(){return r.N}),i.d(t,"_63",function(){return r.O}),i.d(t,"_64",function(){return r.P}),i.d(t,"_65",function(){return r.Q}),i.d(t,"_66",function(){return r.R}),i.d(t,"_67",function(){return r.S}),i.d(t,"_68",function(){return r.T}),i.d(t,"_69",function(){return r.U}),i.d(t,"_70",function(){return r.V}),i.d(t,"_71",function(){return r.W}),i.d(t,"_72",function(){return r.X}),i.d(t,"_73",function(){return r.Y}),i.d(t,"_74",function(){return r.Z}),i.d(t,"_75",function(){return r._0}),i.d(t,"_76",function(){return r._1}),i.d(t,"_77",function(){return r._2}),i.d(t,"_78",function(){return r._3}),i.d(t,"_79",function(){return r._4}),i.d(t,"_80",function(){return r._5}),i.d(t,"_81",function(){return r._6}),i.d(t,"_82",function(){return r._7}),i.d(t,"_83",function(){return r._8}),i.d(t,"_84",function(){return r._9}),i.d(t,"_85",function(){return r._10}),i.d(t,"_86",function(){return r._11}),i.d(t,"_87",function(){return r._12}),i.d(t,"_88",function(){return r._13}),i.d(t,"_89",function(){return r._14}),i.d(t,"_90",function(){return r._15}),i.d(t,"_91",function(){return r._16}),i.d(t,"_92",function(){return r._17}),i.d(t,"_93",function(){return r._18}),i.d(t,"_94",function(){return r._19}),i.d(t,"_95",function(){return r._20}),i.d(t,"_96",function(){return r._21}),i.d(t,"_97",function(){return r._22}),i.d(t,"_98",function(){return r._23}),i.d(t,"_99",function(){return r._24}),i.d(t,"_100",function(){return r._25}),i.d(t,"_101",function(){return r._26}),i.d(t,"_102",function(){return r._27}),i.d(t,"_103",function(){return r._28}),i.d(t,"_104",function(){return r._29}),i.d(t,"_105",function(){return r._30}),i.d(t,"_106",function(){return r._31}),i.d(t,"_107",function(){return r._32}),i.d(t,"_108",function(){return r._33}),i.d(t,"_109",function(){return r._34}),i.d(t,"_110",function(){return r._35}),i.d(t,"_111",function(){return r._36}),i.d(t,"_112",function(){return r._37}),i.d(t,"_113",function(){return r._38}),i.d(t,"_114",function(){return r._39}),i.d(t,"_115",function(){return r._40}),i.d(t,"_116",function(){return r._41}),i.d(t,"_117",function(){return r._42}),i.d(t,"_118",function(){return r._43}),i.d(t,"_119",function(){return r._44}),i.d(t,"_120",function(){return r._45}),i.d(t,"_121",function(){return r._46}),i.d(t,"_122",function(){return r._47}),i.d(t,"_123",function(){return r._48}),i.d(t,"_124",function(){return r._49}),i.d(t,"_125",function(){return r._50}),i.d(t,"_126",function(){return r._51}),i.d(t,"_127",function(){return r._52}),i.d(t,"_128",function(){return r._53}),i.d(t,"_129",function(){return r._54}),i.d(t,"_130",function(){return r._55}),i.d(t,"_131",function(){return r._56}),i.d(t,"_132",function(){return r._57}),i.d(t,"_133",function(){return r._58}),i.d(t,"_134",function(){return r._59}),i.d(t,"_135",function(){return r._60}),i.d(t,"_136",function(){return r._61}),i.d(t,"_137",function(){return r._62}),i.d(t,"_138",function(){return r._63}),i.d(t,"_139",function(){return r._64}),i.d(t,"_140",function(){return r._65}),i.d(t,"_141",function(){return r._66}),i.d(t,"_142",function(){return r._67}),i.d(t,"_143",function(){return r._68}),i.d(t,"_144",function(){return r._69});var l=i(10);i.d(t,"_145",function(){return l.a});var s=i(12);i.d(t,"_146",function(){return s.a});var d=i(8);i.d(t,"_147",function(){return d.a});var p=i(15);i.d(t,"_148",function(){return p.a});var h=i(17);i.d(t,"_149",function(){return h.a});var c=i(9);i.d(t,"_150",function(){return c.a});var u=i(13);i.d(t,"_151",function(){return u.a});var m=i(16);i.d(t,"_152",function(){return m.a});var g=i(14);i.d(t,"_153",function(){return g.a});var y=i(22);i.d(t,"_154",function(){return y.a});var f=i(23);i.d(t,"_155",function(){return f.a});var b=i(24);i.d(t,"_156",function(){return b.a});var v=i(25);i.d(t,"_157",function(){return v.a});var S=i(11);i.d(t,"_158",function(){return S.a});var _=i(21);i.d(t,"_159",function(){return _.a});var x=i(19);i.d(t,"_160",function(){return x.a});var O=i(20);i.d(t,"_161",function(){return O.a})},function(e,t,i){"use strict";i.d(t,"a",function(){return n}),i.d(t,"b",function(){return o}),i.d(t,"c",function(){return a}),i.d(t,"d",function(){return r}),i.d(t,"e",function(){return l}),i.d(t,"f",function(){return s}),i.d(t,"g",function(){return d}),i.d(t,"h",function(){return p}),i.d(t,"i",function(){return h}),i.d(t,"j",function(){return c}),i.d(t,"k",function(){return u}),i.d(t,"l",function(){return m}),i.d(t,"m",function(){return g}),i.d(t,"n",function(){return y}),i.d(t,"o",function(){return f}),i.d(t,"p",function(){return b}),i.d(t,"q",function(){return v}),i.d(t,"r",function(){return S}),i.d(t,"s",function(){return _}),i.d(t,"t",function(){return x}),i.d(t,"u",function(){return O}),i.d(t,"v",function(){return M}),i.d(t,"w",function(){return C}),i.d(t,"x",function(){return L}),i.d(t,"y",function(){return P}),i.d(t,"z",function(){return w}),i.d(t,"A",function(){return T}),i.d(t,"B",function(){return I}),i.d(t,"C",function(){return k}),i.d(t,"D",function(){return N}),i.d(t,"E",function(){return E}),i.d(t,"F",function(){return F}),i.d(t,"G",function(){return z}),i.d(t,"H",function(){return A}),i.d(t,"I",function(){return B}),i.d(t,"J",function(){return U}),i.d(t,"K",function(){return j}),i.d(t,"L",function(){return Z});var n="load",o="loaded",a="click",r="onclick",l="rightClick",s="doubleClick",d="resize",p="tooltipRender",h="shapeSelected",c="shapeHighlight",u="mousemove",m="mouseup",g="mousedown",y="layerRendering",f="shapeRendering",b="markerRendering",v="markerClusterRendering",S="markerClick",_="markerDragStart",x="markerDragEnd",O="markerClusterClick",M="markerMouseMove",C="markerClusterMouseMove",L="dataLabelRendering",P="bubbleRendering",w="bubbleClick",T="bubbleMouseMove",I="animationComplete",k="legendRendering",N="annotationRendering",E="itemSelection",F="panComplete",z="zoomComplete",A="itemHighlight",B="beforePrint",U="zoomIn",j="zoomOut",Z="pan"},function(e,t,i){"use strict";function n(e){var t;switch(e.toLowerCase()){case"tailwind":t=["#0369A1","#14B8A6","#15803D","#334155","#5A61F6","#65A30D","#8B5CF6","#9333EA","#F59E0B","#F97316"];break;case"tailwinddark":t=["#10B981","#22D3EE","#2DD4BF","#4ADE80","#8B5CF6","#E879F9","#F472B6","#F87171","#F97316","#FCD34D"];break;case"bootstrap5":t=["#262E0B","#668E1F","#AF6E10","#862C0B","#1F2D50","#64680B","#311508","#4C4C81","#0C7DA0","#862C0B"];break;case"bootstrap5dark":t=["#5ECB9B","#A860F1","#EBA844","#557EF7","#E9599B","#BFC529","#3BC6CF","#7A68EC","#74B706","#EA6266"];break;case"fluent":t=["#614570","#4C6FB1","#CC6952","#3F579A","#4EA09B","#6E7A89","#D4515C","#E6AF5D","#639751","#9D4D69"];break;case"fluentdark":t=["#8AB113","#2A72D5","#43B786","#584EC6","#E85F9C","#6E7A89","#EA6266","#EBA844","#26BC7A","#BC4870"];break;case"material3":t=["#6200EE","#E77A16","#82C100","#7107DC","#05BB3D","#D21020","#FAD200","#0085FF","#9204EA","#08EE9B"];break;case"material3dark":t=["#4EAAFF","#FA4EAB","#FFF500","#17EA58","#38FFE7","#FF9E45","#B3F32F","#B93CE4","#FC5664","#9B55FF"];break;default:t=["#B5E485","#7BC1E8","#DF819C","#EC9B79","#78D0D3","#D6D572","#9178E3","#A1E5B4","#87A4B4","#E4C16C"]}return t}function o(e){var t,i;switch(e.toLowerCase()){case"materialdark":i="#303030";break;case"fabricdark":i="#201F1F";break;case"bootstrapdark":i="#1A1A1A"}switch(e.toLowerCase()){case"materialdark":case"fabricdark":case"bootstrapdark":t={backgroundColor:i,areaBackgroundColor:i,titleFontColor:"#FFFFFF",titleFontSize:"14px",subTitleFontColor:"#FFFFFF",legendTitleFontColor:"#DADADA",legendTextColor:"#DADADA",dataLabelFontColor:"#DADADA",tooltipFontColor:"#FFFFFF",tooltipFillColor:"#363F4C",zoomFillColor:"#FFFFFF",labelFontFamily:"Roboto, Noto, Sans-serif",fontFamily:"Roboto, Noto, Sans-serif",fontSize:"12px",fontWeight:"Medium",titleFontWeight:"Medium",zoomSelectionColor:"#e61576",shapeFill:"#A6A6A6",rectangleZoomFillColor:"#d3d3d3",rectangleZoomFillOpacity:.5,rectangleZoomBorderColor:"#009900"};break;case"highcontrast":t={backgroundColor:"#000000",areaBackgroundColor:"#000000",titleFontColor:"#FFFFFF",titleFontSize:"14px",subTitleFontColor:"#FFFFFF",legendTitleFontColor:"#FFFFFF",legendTextColor:"#FFFFFF",dataLabelFontColor:"#000000",tooltipFontColor:"#000000",tooltipFillColor:"#ffffff",zoomFillColor:"#FFFFFF",fontFamily:"Roboto, Noto, Sans-serif",fontSize:"12px",fontWeight:"Medium",labelFontFamily:"Roboto, Noto, Sans-serif",titleFontWeight:"Medium",zoomSelectionColor:"#e61576",shapeFill:"#A6A6A6",rectangleZoomFillColor:"#d3d3d3",rectangleZoomFillOpacity:.5,rectangleZoomBorderColor:"#009900"};break;case"bootstrap4":t={backgroundColor:"#FFFFFF",areaBackgroundColor:"#FFFFFF",titleFontColor:"#212529",subTitleFontColor:"#212529",legendTitleFontColor:"#212529",legendTextColor:"#212529",dataLabelFontColor:"#212529",tooltipFontColor:"#FFFFFF",tooltipFillColor:"#000000",zoomFillColor:"#5B6269",fontFamily:"HelveticaNeue-Medium",fontSize:"12px",fontWeight:"Medium",titleFontSize:"16px",legendFontSize:"14px",tooltipFillOpacity:1,tooltipTextOpacity:.9,labelFontFamily:"HelveticaNeue-Medium",titleFontWeight:"Medium",zoomSelectionColor:"#e61576",shapeFill:"#A6A6A6",rectangleZoomFillColor:"#d3d3d3",rectangleZoomFillOpacity:.5,rectangleZoomBorderColor:"#009900"};break;case"tailwind":t={backgroundColor:"rgba(255,255,255, 0.0)",areaBackgroundColor:"rgba(255,255,255, 0.0)",titleFontColor:"#374151",subTitleFontColor:"#374151",legendTitleFontColor:"#374151",legendTextColor:"#6B7280",dataLabelFontColor:"#505967",tooltipFontColor:"#F9FAFB",tooltipFillColor:"#111827",zoomFillColor:"#6b7280",fontFamily:"Inter",fontSize:"12px",fontWeight:"Medium",titleFontSize:"14px",legendFontSize:"12px",tooltipFillOpacity:1,tooltipTextOpacity:.9,labelFontFamily:"Inter",titleFontWeight:"500",zoomSelectionColor:"#374151",shapeFill:"#E5E7EB",rectangleZoomFillColor:"#d3d3d3",rectangleZoomFillOpacity:.5,rectangleZoomBorderColor:"#009900"};break;case"tailwinddark":t={backgroundColor:"rgba(255,255,255, 0.0)",areaBackgroundColor:"rgba(255,255,255, 0.0)",titleFontColor:"#D1D5DB",subTitleFontColor:"#D1D5DB",legendTitleFontColor:"#D1D5DB",legendTextColor:"#D1D5DB",dataLabelFontColor:"#D1D5DB",tooltipFontColor:"#1F2937",tooltipFillColor:"#F9FAFB",zoomFillColor:"#D1D5DB",fontFamily:"Inter",fontSize:"12px",fontWeight:"Medium",titleFontSize:"14px",legendFontSize:"12px",tooltipFillOpacity:1,tooltipTextOpacity:.9,labelFontFamily:"Inter",titleFontWeight:"500",zoomSelectionColor:"#F3F4F6",shapeFill:"#374151",rectangleZoomFillColor:"#d3d3d3",rectangleZoomFillOpacity:.5,rectangleZoomBorderColor:"#009900"};break;case"bootstrap5":t={backgroundColor:"rgba(255,255,255, 0.0)",areaBackgroundColor:"rgba(255,255,255, 0.0)",titleFontColor:"#212529",subTitleFontColor:"#212529",legendTitleFontColor:"#212529",legendTextColor:"#212529",dataLabelFontColor:"#212529",tooltipFontColor:"#F9FAFB",tooltipFillColor:"#212529",zoomFillColor:"#6C757D",fontFamily:"Helvetica Neue",fontSize:"12px",fontWeight:"Medium",titleFontSize:"14px",legendFontSize:"12px",tooltipFillOpacity:1,tooltipTextOpacity:1,labelFontFamily:"Helvetica Neue",titleFontWeight:"normal",zoomSelectionColor:"#343A40",shapeFill:"#E9ECEF",rectangleZoomFillColor:"#d3d3d3",rectangleZoomFillOpacity:.5,rectangleZoomBorderColor:"#009900"};break;case"bootstrap5dark":t={backgroundColor:"rgba(255,255,255, 0.0)",areaBackgroundColor:"rgba(255,255,255, 0.0)",titleFontColor:"#FFFFFF",subTitleFontColor:"#FFFFFF",legendTitleFontColor:"#FFFFFF",legendTextColor:"#FFFFFF",dataLabelFontColor:"#FFFFFF",tooltipFontColor:"#212529",tooltipFillColor:"#E9ECEF",zoomFillColor:"#B5BABE",fontFamily:"Helvetica Neue",fontSize:"12px",fontWeight:"Medium",titleFontSize:"14px",legendFontSize:"12px",tooltipFillOpacity:1,tooltipTextOpacity:1,labelFontFamily:"Helvetica Neue",titleFontWeight:"normal",zoomSelectionColor:"#DEE2E6",shapeFill:"#495057",rectangleZoomFillColor:"#d3d3d3",rectangleZoomFillOpacity:.5,rectangleZoomBorderColor:"#009900"};break;case"fluent":t={backgroundColor:"rgba(255,255,255, 0.0)",areaBackgroundColor:"rgba(255,255,255, 0.0)",titleFontColor:"#201F1E",subTitleFontColor:"#201F1E",legendTitleFontColor:"#201F1E",legendTextColor:"#201F1E",dataLabelFontColor:"#201F1E",tooltipFontColor:"#323130",tooltipFillColor:"#FFFFFF",zoomFillColor:"#A19F9D",fontFamily:"Segoe UI",fontSize:"12px",fontWeight:"Medium",titleFontSize:"14px",legendFontSize:"12px",tooltipFillOpacity:1,tooltipTextOpacity:1,labelFontFamily:"Segoe UI",titleFontWeight:"600",zoomSelectionColor:"#323130",shapeFill:"#F3F2F1",rectangleZoomFillColor:"#d3d3d3",rectangleZoomFillOpacity:.5,rectangleZoomBorderColor:"#009900"};break;case"fluentdark":t={backgroundColor:"rgba(255,255,255, 0.0)",areaBackgroundColor:"rgba(255,255,255, 0.0)",titleFontColor:"#F3F2F1",subTitleFontColor:"#F3F2F1",legendTitleFontColor:"#F3F2F1",legendTextColor:"#F3F2F1",dataLabelFontColor:"#F3F2F1",tooltipFontColor:"#F3F2F1",tooltipFillColor:"#252423",zoomFillColor:"#484644",fontFamily:"Segoe UI",fontSize:"12px",fontWeight:"Medium",titleFontSize:"14px",legendFontSize:"12px",tooltipFillOpacity:1,tooltipTextOpacity:1,labelFontFamily:"Segoe UI",titleFontWeight:"600",zoomSelectionColor:"#F3F2F1",shapeFill:"#252423",rectangleZoomFillColor:"#d3d3d3",rectangleZoomFillOpacity:.5,rectangleZoomBorderColor:"#009900"};break;case"material3":t={backgroundColor:"transparent",areaBackgroundColor:"transparent",titleFontColor:"#1C1B1F",subTitleFontColor:"#1C1B1F",legendTitleFontColor:"#1C1B1F",legendTextColor:"#49454E",dataLabelFontColor:"#1C1B1F",tooltipFontColor:"#F4EFF4",tooltipFillColor:"#313033",zoomFillColor:"#49454E",fontFamily:"Roboto",fontSize:"14px",titleFontSize:"16px",subTitleFontSize:"14px",legendFontSize:"12px",tooltipFillOpacity:1,tooltipTextOpacity:1,labelFontFamily:"Roboto",titleFontWeight:"500",fontWeight:"400",zoomSelectionColor:"#49454E",shapeFill:"#E7E0EC",rectangleZoomFillColor:"#6750A4",rectangleZoomFillOpacity:.24,rectangleZoomBorderColor:"#6750A4"};break;case"material3dark":t={backgroundColor:"transparent",areaBackgroundColor:"transparent",titleFontColor:"#E6E1E5",subTitleFontColor:"#E6E1E5",legendTitleFontColor:"#E6E1E5",legendTextColor:"#CAC4D0",dataLabelFontColor:"#E6E1E5",tooltipFontColor:"#313033",tooltipFillColor:"#E6E1E5",zoomFillColor:"#E6E1E5",fontFamily:"Roboto",fontSize:"14px",titleFontSize:"16px",subTitleFontSize:"14px",legendFontSize:"12px",tooltipFillOpacity:1,tooltipTextOpacity:1,labelFontFamily:"Roboto",titleFontWeight:"500",fontWeight:"400",zoomSelectionColor:"#E6E1E5",shapeFill:"#49454F",rectangleZoomFillColor:"#D0BCFF",rectangleZoomFillOpacity:.24,rectangleZoomBorderColor:"#D0BCFF"};break;default:t={backgroundColor:"#FFFFFF",areaBackgroundColor:"#FFFFFF",titleFontColor:"#424242",titleFontSize:"14px",subTitleFontColor:"#424242",legendTitleFontColor:"#757575",legendTextColor:"#757575",dataLabelFontColor:"#000000",tooltipFontColor:"#FFFFFF",tooltipFillColor:"#000000",zoomFillColor:"#737373",labelFontFamily:"Roboto, Noto, Sans-serif",fontFamily:"Roboto, Noto, Sans-serif",fontSize:"12px",fontWeight:"Medium",titleFontWeight:"Medium",zoomSelectionColor:"#e61576",shapeFill:"#A6A6A6",rectangleZoomFillColor:"#d3d3d3",rectangleZoomFillOpacity:.5,rectangleZoomBorderColor:"#009900"}}return t}i.d(t,"a",function(){return a}),t.b=n,t.c=o;var a;!function(e){e.mapsTitleFont={size:"14px",fontWeight:null,color:"#424242",fontStyle:"Medium",fontFamily:"Roboto, Noto, Sans-serif"},e.mapsSubTitleFont={size:"13px",fontWeight:null,color:"#424242",fontStyle:"Medium",fontFamily:"Roboto, Noto, Sans-serif"},e.tooltipLabelFont={size:"12px",fontWeight:"Regular",color:null,fontStyle:"Regular",fontFamily:null},e.legendTitleFont={size:"12px",fontWeight:"Medium",color:null,fontStyle:"Medium",fontFamily:null},e.legendLabelFont={size:"13px",fontWeight:"Medium",color:null,fontStyle:"Medium",fontFamily:"Roboto, Noto, Sans-serif"},e.dataLabelFont={size:"12px",fontWeight:"Medium",color:"#000000",fontStyle:"Medium",fontFamily:"Roboto, Noto, Sans-serif"}}(a||(a={}));var r;!function(e){e.mapsTitleFont={size:"14px",fontWeight:"Semibold",color:"#424242",fontStyle:"Semibold",fontFamily:"SegoeUI, Helvetica Neue, Helvetica, Arial, sans-serif"},e.mapsSubTitleFont={size:"13px",fontWeight:"Regular",color:"#424242",fontStyle:"Regular",fontFamily:"SegoeUI, Helvetica Neue, Helvetica, Arial, sans-serif"},e.tooltipLabelFont={size:"12px",fontWeight:"Regular",color:"#FFFFFF",fontStyle:"Regular",fontFamily:"Roboto"},e.legendTitleFont={size:"14px",fontWeight:"Regular",color:"#757575",fontStyle:"Regular",fontFamily:"SegoeUI, Helvetica Neue, Helvetica, Arial, sans-serif"},e.legendLabelFont={size:"13px",fontWeight:"Medium",color:"#757575",fontStyle:"Medium",fontFamily:"SegoeUI, Helvetica Neue, Helvetica, Arial, sans-serif"},e.dataLabelFont={size:"12px",fontWeight:"Medium",color:"#000000",fontStyle:"Medium",fontFamily:"SegoeUI, Helvetica Neue, Helvetica, Arial, sans-serif"}}(r||(r={}));var l;!function(e){e.mapsTitleFont={size:"14px",fontWeight:"Semibold",color:"#424242",fontStyle:"Semibold",fontFamily:"Helvetica Neue, Helvetica, Arial, sans-serif"},e.mapsSubTitleFont={size:"13px",fontWeight:"Regular",color:"#424242",fontStyle:"Regular",fontFamily:"Helvetica Neue, Helvetica, Arial, sans-serif"},e.tooltipLabelFont={size:"12px",fontWeight:"Regular",color:"#FFFFFF",fontStyle:"Regular",fontFamily:"Roboto"},e.legendTitleFont={size:"14px",fontWeight:"Regular",color:"#757575",fontStyle:"Regular",fontFamily:"Helvetica Neue, Helvetica, Arial, sans-serif"},e.legendLabelFont={size:"13px",fontWeight:"Medium",color:"#757575",fontStyle:"Medium",fontFamily:"Helvetica Neue, Helvetica, Arial, sans-serif"},e.dataLabelFont={size:"12px",fontWeight:"Medium",color:"#000000",fontStyle:"Medium",fontFamily:"Helvetica Neue, Helvetica, Arial, sans-serif"}}(l||(l={}));var s;!function(e){e.mapsTitleFont={size:"14px",fontWeight:"Medium",color:"#FFFFFF",fontStyle:"Medium",fontFamily:"Roboto, Noto, Sans-serif"},e.mapsSubTitleFont={size:"13px",fontWeight:"Medium",color:"#FFFFFF",fontStyle:"Medium",fontFamily:"Roboto, Noto, Sans-serif"},e.tooltipLabelFont={size:"12px",fontWeight:"Regular",color:"#000000",fontStyle:"Regular",fontFamily:"Roboto"},e.legendTitleFont={size:"14px",fontWeight:"Regular",color:"#FFFFFF",fontStyle:"Regular",fontFamily:"Roboto, Noto, Sans-serif"},e.legendLabelFont={size:"13px",fontWeight:"Medium",color:"#FFFFFF",fontStyle:"Medium",fontFamily:"Roboto, Noto, Sans-serif"},e.dataLabelFont={size:"12px",fontWeight:"Medium",color:"#000000",fontStyle:"Medium",fontFamily:"Roboto, Noto, Sans-serif"}}(s||(s={}));var d;!function(e){e.mapsTitleFont={fontFamily:"Roboto, Noto, Sans-serif",fontWeight:"Medium",size:"14px",fontStyle:"Medium",color:"#FFFFFF"},e.mapsSubTitleFont={size:"13px",color:"#FFFFFF",fontWeight:"Medium",fontFamily:"Roboto, Noto, Sans-serif",fontStyle:"Medium"},e.tooltipLabelFont={size:"12px",color:"#282727",fontWeight:"Regular",fontFamily:"Roboto",fontStyle:"Regular"},e.legendTitleFont={size:"14px",fontWeight:"Regular",color:"#FFFFFF",fontStyle:"Regular",fontFamily:"Roboto, Noto, Sans-serif"},e.legendLabelFont={size:"13px",fontFamily:"Roboto, Noto, Sans-serif",fontWeight:"Medium",color:"#DADADA",fontStyle:"Medium"}}(d||(d={}))},function(e,t,i){"use strict";i.d(t,"a",function(){return s}),i.d(t,"b",function(){return d}),i.d(t,"c",function(){return p}),i.d(t,"d",function(){return h}),i.d(t,"e",function(){return c}),i.d(t,"f",function(){return u}),i.d(t,"g",function(){return m}),i.d(t,"h",function(){return g}),i.d(t,"i",function(){return y}),i.d(t,"j",function(){return f}),i.d(t,"k",function(){return b}),i.d(t,"l",function(){return v}),i.d(t,"m",function(){return S}),i.d(t,"n",function(){return _}),i.d(t,"o",function(){return x}),i.d(t,"p",function(){return O}),i.d(t,"q",function(){return M}),i.d(t,"r",function(){return C}),i.d(t,"s",function(){return L}),i.d(t,"t",function(){return P}),i.d(t,"u",function(){return w}),i.d(t,"v",function(){return T}),i.d(t,"w",function(){return I}),i.d(t,"x",function(){return k}),i.d(t,"y",function(){return N}),i.d(t,"z",function(){return E}),i.d(t,"A",function(){return F}),i.d(t,"B",function(){return z}),i.d(t,"C",function(){return A}),i.d(t,"D",function(){return B}),i.d(t,"E",function(){return U}),i.d(t,"F",function(){return j}),i.d(t,"G",function(){return Z}),i.d(t,"H",function(){return R}),i.d(t,"I",function(){return D}),i.d(t,"J",function(){return V});var n=i(1),o=(i.n(n),i(4)),a=i(0),r=this&&this.__extends||function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),l=this&&this.__decorate||function(e,t,i,n){var o,a=arguments.length,r=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(a<3?o(r):a>3?o(t,i,r):o(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r},s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),l([i.i(n.Property)("")],t.prototype,"content",void 0),l([i.i(n.Property)("0px")],t.prototype,"x",void 0),l([i.i(n.Property)("0px")],t.prototype,"y",void 0),l([i.i(n.Property)("None")],t.prototype,"verticalAlignment",void 0),l([i.i(n.Property)("None")],t.prototype,"horizontalAlignment",void 0),l([i.i(n.Property)("-1")],t.prototype,"zIndex",void 0),t}(n.ChildProperty),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),l([i.i(n.Property)("Start")],t.prototype,"position",void 0),l([i.i(n.Property)("false")],t.prototype,"showArrow",void 0),l([i.i(n.Property)(2)],t.prototype,"size",void 0),l([i.i(n.Property)("black")],t.prototype,"color",void 0),l([i.i(n.Property)(0)],t.prototype,"offSet",void 0),t}(n.ChildProperty),p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),l([i.i(n.Property)("12px")],t.prototype,"size",void 0),l([i.i(n.Property)(null)],t.prototype,"color",void 0),l([i.i(n.Property)("Roboto, Noto, Sans-serif")],t.prototype,"fontFamily",void 0),l([i.i(n.Property)("Medium")],t.prototype,"fontWeight",void 0),l([i.i(n.Property)("Medium")],t.prototype,"fontStyle",void 0),l([i.i(n.Property)(1)],t.prototype,"opacity",void 0),t}(n.ChildProperty),h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),l([i.i(n.Property)("transparent")],t.prototype,"fill",void 0),l([i.i(n.Property)(null)],t.prototype,"color",void 0),l([i.i(n.Property)(1)],t.prototype,"borderOpacity",void 0),l([i.i(n.Property)(1)],t.prototype,"borderWidth",void 0),l([i.i(n.Property)(null)],t.prototype,"borderColor",void 0),l([i.i(n.Property)(30)],t.prototype,"radius",void 0),l([i.i(n.Property)(null)],t.prototype,"selectionColor",void 0),l([i.i(n.Property)(null)],t.prototype,"highlightColor",void 0),l([i.i(n.Property)(5)],t.prototype,"padding",void 0),l([i.i(n.Property)(1)],t.prototype,"opacity",void 0),l([i.i(n.Property)(["ZoomIn","ZoomOut","Reset"])],t.prototype,"toolbarItems",void 0),t}(n.ChildProperty),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),l([i.i(n.Property)(!0)],t.prototype,"visible",void 0),l([i.i(n.Property)("white")],t.prototype,"fill",void 0),l([i.i(n.Property)(1)],t.prototype,"borderOpacity",void 0),l([i.i(n.Property)(1)],t.prototype,"borderWidth",void 0),l([i.i(n.Property)("#707070")],t.prototype,"borderColor",void 0),l([i.i(n.Property)("black")],t.prototype,"fontColor",void 0),l([i.i(n.Property)("")],t.prototype,"fontFamily",void 0),l([i.i(n.Property)("")],t.prototype,"fontStyle",void 0),l([i.i(n.Property)("")],t.prototype,"fontWeight",void 0),l([i.i(n.Property)("")],t.prototype,"fontSize",void 0),l([i.i(n.Property)(1)],t.prototype,"fontOpacity",void 0),t}(n.ChildProperty),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),l([i.i(n.Property)("transparent")],t.prototype,"backgroundColor",void 0),l([i.i(n.Property)(1)],t.prototype,"borderOpacity",void 0),l([i.i(n.Property)(1)],t.prototype,"borderWidth",void 0),l([i.i(n.Property)("transparent")],t.prototype,"borderColor",void 0),l([i.i(n.Property)("Far")],t.prototype,"horizontalAlignment",void 0),l([i.i(n.Property)("Near")],t.prototype,"verticalAlignment",void 0),l([i.i(n.Property)("Horizontal")],t.prototype,"orientation",void 0),l([i.i(n.Complex)({},h)],t.prototype,"buttonSettings",void 0),l([i.i(n.Complex)({},c)],t.prototype,"tooltipSettings",void 0),t}(n.ChildProperty),m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),l([i.i(n.Property)("")],t.prototype,"color",void 0),l([i.i(n.Property)(0)],t.prototype,"width",void 0),l([i.i(n.Property)(null)],t.prototype,"opacity",void 0),t}(n.ChildProperty),g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),l([i.i(n.Property)(null)],t.prototype,"latitude",void 0),l([i.i(n.Property)(null)],t.prototype,"longitude",void 0),t}(n.ChildProperty),y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),l([i.i(n.Property)(!1)],t.prototype,"visible",void 0),l([i.i(n.Property)("")],t.prototype,"template",void 0),l([i.i(n.Property)("")],t.prototype,"fill",void 0),l([i.i(n.Complex)({color:"transparent",width:1},m)],t.prototype,"border",void 0),l([i.i(n.Complex)({fontFamily:null,size:null,fontWeight:null},p)],t.prototype,"textStyle",void 0),l([i.i(n.Property)(null)],t.prototype,"format",void 0),l([i.i(n.Property)(null)],t.prototype,"valuePath",void 0),t}(n.ChildProperty),f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),l([i.i(n.Property)(!1)],t.prototype,"visible",void 0),l([i.i(n.Property)("")],t.prototype,"fill",void 0),l([i.i(n.Complex)({color:"transparent",width:1},m)],t.prototype,"border",void 0),l([i.i(n.Complex)({fontFamily:null,size:null,fontWeight:null},p)],t.prototype,"textStyle",void 0),t}(n.ChildProperty),b=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),l([i.i(n.Property)(10)],t.prototype,"left",void 0),l([i.i(n.Property)(10)],t.prototype,"right",void 0),l([i.i(n.Property)(10)],t.prototype,"top",void 0),l([i.i(n.Property)(10)],t.prototype,"bottom",void 0),t}(n.ChildProperty),v=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),l([i.i(n.Property)("#000000")],t.prototype,"color",void 0),l([i.i(n.Property)(1)],t.prototype,"width",void 0),l([i.i(n.Property)(1)],t.prototype,"opacity",void 0),t}(n.ChildProperty),S=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),l([i.i(n.Property)(!1)],t.prototype,"allowClustering",void 0),l([i.i(n.Property)(!0)],t.prototype,"allowDeepClustering",void 0),l([i.i(n.Complex)({color:"transparent",width:1},m)],t.prototype,"border",void 0),l([i.i(n.Property)("#D2691E")],t.prototype,"fill",void 0),l([i.i(n.Property)(1)],t.prototype,"opacity",void 0),l([i.i(n.Property)("Rectangle")],t.prototype,"shape",void 0),l([i.i(n.Property)(12)],t.prototype,"width",void 0),l([i.i(n.Property)(12)],t.prototype,"height",void 0),l([i.i(n.Property)(new a.s(0,0))],t.prototype,"offset",void 0),l([i.i(n.Property)("")],t.prototype,"imageUrl",void 0),l([i.i(n.Property)("")],t.prototype,"dashArray",void 0),l([i.i(n.Complex)({},p)],t.prototype,"labelStyle",void 0),l([i.i(n.Property)(!1)],t.prototype,"allowClusterExpand",void 0),l([i.i(n.Complex)({},v)],t.prototype,"connectorLineSettings",void 0),t}(n.ChildProperty),_=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t}(n.ChildProperty),x=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),l([i.i(n.Property)(null)],t.prototype,"from",void 0),l([i.i(n.Property)(null)],t.prototype,"to",void 0),l([i.i(n.Property)(null)],t.prototype,"value",void 0),l([i.i(n.Property)(null)],t.prototype,"color",void 0),l([i.i(n.Property)(null)],t.prototype,"minOpacity",void 0),l([i.i(n.Property)(null)],t.prototype,"maxOpacity",void 0),l([i.i(n.Property)(null)],t.prototype,"label",void 0),l([i.i(n.Property)(!0)],t.prototype,"showLegend",void 0),t}(n.ChildProperty),O=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),l([i.i(n.Property)(null)],t.prototype,"latitude",void 0),l([i.i(n.Property)(null)],t.prototype,"longitude",void 0),t}(n.ChildProperty),M=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),l([i.i(n.Property)(null)],t.prototype,"shapePath",void 0),l([i.i(n.Property)(null)],t.prototype,"shapeValue",void 0),t}(n.ChildProperty),C=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),l([i.i(n.Property)(!1)],t.prototype,"enable",void 0),l([i.i(n.Property)(null)],t.prototype,"fill",void 0),l([i.i(n.Property)(1)],t.prototype,"opacity",void 0),l([i.i(n.Property)(!1)],t.prototype,"enableMultiSelect",void 0),l([i.i(n.Complex)({color:"transparent",width:0},m)],t.prototype,"border",void 0),t}(n.ChildProperty),L=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),l([i.i(n.Property)(null)],t.prototype,"fill",void 0),l([i.i(n.Property)(!1)],t.prototype,"enable",void 0),l([i.i(n.Property)(1)],t.prototype,"opacity",void 0),l([i.i(n.Complex)({color:"transparent",width:0},m)],t.prototype,"border",void 0),t}(n.ChildProperty),P=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),l([i.i(n.Property)(1)],t.prototype,"borderWidth",void 0),l([i.i(n.Property)(1)],t.prototype,"borderOpacity",void 0),l([i.i(n.Property)(1)],t.prototype,"opacity",void 0),l([i.i(n.Property)("#FF471A")],t.prototype,"borderColor",void 0),l([i.i(n.Property)("#FF471A")],t.prototype,"fill",void 0),l([i.i(n.Property)([])],t.prototype,"points",void 0),l([i.i(n.Property)("")],t.prototype,"tooltipText",void 0),l([i.i(n.Property)("")],t.prototype,"tooltipTemplate",void 0),t}(n.ChildProperty),w=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),l([i.i(n.Collection)([],P)],t.prototype,"polygons",void 0),l([i.i(n.Complex)({},C)],t.prototype,"selectionSettings",void 0),l([i.i(n.Complex)({},L)],t.prototype,"highlightSettings",void 0),l([i.i(n.Complex)({},f)],t.prototype,"tooltipSettings",void 0),t}(n.ChildProperty),T=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),l([i.i(n.Property)(!1)],t.prototype,"visible",void 0),l([i.i(n.Property)(1)],t.prototype,"width",void 0),l([i.i(n.Property)(null)],t.prototype,"longitude",void 0),l([i.i(n.Property)(null)],t.prototype,"latitude",void 0),l([i.i(n.Property)("")],t.prototype,"dashArray",void 0),l([i.i(n.Property)("black")],t.prototype,"color",void 0),l([i.i(n.Property)(0)],t.prototype,"angle",void 0),l([i.i(n.Complex)({showArrow:!1,position:"Start",size:5,color:"black"},d)],t.prototype,"arrowSettings",void 0),l([i.i(n.Complex)({},C)],t.prototype,"selectionSettings",void 0),l([i.i(n.Complex)({},L)],t.prototype,"highlightSettings",void 0),t}(n.ChildProperty),I=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),l([i.i(n.Complex)({},m)],t.prototype,"border",void 0),l([i.i(n.Property)(!1)],t.prototype,"visible",void 0),l([i.i(n.Property)([])],t.prototype,"dataSource",void 0),l([i.i(n.Property)()],t.prototype,"query",void 0),l([i.i(n.Property)(1e3)],t.prototype,"animationDuration",void 0),l([i.i(n.Property)(0)],t.prototype,"animationDelay",void 0),l([i.i(n.Property)("")],t.prototype,"fill",void 0),l([i.i(n.Property)(10)],t.prototype,"minRadius",void 0),l([i.i(n.Property)(20)],t.prototype,"maxRadius",void 0),l([i.i(n.Property)(1)],t.prototype,"opacity",void 0),l([i.i(n.Property)(null)],t.prototype,"valuePath",void 0),l([i.i(n.Property)("Circle")],t.prototype,"bubbleType",void 0),l([i.i(n.Property)(null)],t.prototype,"colorValuePath",void 0),l([i.i(n.Collection)([],x)],t.prototype,"colorMapping",void 0),l([i.i(n.Complex)({},y)],t.prototype,"tooltipSettings",void 0),l([i.i(n.Complex)({},C)],t.prototype,"selectionSettings",void 0),l([i.i(n.Complex)({},L)],t.prototype,"highlightSettings",void 0),t}(n.ChildProperty),k=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),l([i.i(n.Property)("")],t.prototype,"text",void 0),l([i.i(n.Property)("")],t.prototype,"description",void 0),t}(n.ChildProperty),N=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),l([i.i(n.Complex)({size:null,fontWeight:null,fontFamily:null},p)],t.prototype,"textStyle",void 0),l([i.i(n.Property)("Center")],t.prototype,"alignment",void 0),t}(k),E=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),l([i.i(n.Complex)({size:null,fontWeight:null,fontFamily:null},p)],t.prototype,"textStyle",void 0),l([i.i(n.Property)("Center")],t.prototype,"alignment",void 0),l([i.i(n.Complex)({},N)],t.prototype,"subtitleSettings",void 0),t}(k),F=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),l([i.i(n.Property)(!1)],t.prototype,"enable",void 0),l([i.i(n.Property)(!0)],t.prototype,"enablePanning",void 0),l([i.i(n.Property)(!0)],t.prototype,"enableSelectionZooming",void 0),l([i.i(n.Property)("Horizontal")],t.prototype,"toolBarOrientation",void 0),l([i.i(n.Property)(null)],t.prototype,"color",void 0),l([i.i(n.Property)(null)],t.prototype,"highlightColor",void 0),l([i.i(n.Property)(null)],t.prototype,"selectionColor",void 0),l([i.i(n.Property)("Far")],t.prototype,"horizontalAlignment",void 0),l([i.i(n.Property)("Near")],t.prototype,"verticalAlignment",void 0),l([i.i(n.Property)(["ZoomIn","ZoomOut","Reset"])],t.prototype,"toolbars",void 0),l([i.i(n.Property)(!0)],t.prototype,"mouseWheelZoom",void 0),l([i.i(n.Property)(!1)],t.prototype,"doubleClickZoom",void 0),l([i.i(n.Property)(!0)],t.prototype,"pinchZooming",void 0),l([i.i(n.Property)(!1)],t.prototype,"zoomOnClick",void 0),l([i.i(n.Property)(1)],t.prototype,"zoomFactor",void 0),l([i.i(n.Property)(10)],t.prototype,"maxZoom",void 0),l([i.i(n.Property)(1)],t.prototype,"minZoom",void 0),l([i.i(n.Property)(!1)],t.prototype,"shouldZoomInitially",void 0),l([i.i(n.Property)(!0)],t.prototype,"resetToInitial",void 0),l([i.i(n.Complex)({},u)],t.prototype,"toolbarSettings",void 0),t}(n.ChildProperty),z=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),l([i.i(n.Property)(!1)],t.prototype,"enable",void 0),l([i.i(n.Property)(!0)],t.prototype,"applyShapeSettings",void 0),l([i.i(n.Property)(1)],t.prototype,"opacity",void 0),l([i.i(n.Property)("")],t.prototype,"fill",void 0),l([i.i(n.Complex)({color:"",width:0},m)],t.prototype,"border",void 0),t}(n.ChildProperty),A=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),l([i.i(n.Property)(!1)],t.prototype,"useMarkerShape",void 0),l([i.i(n.Property)(!1)],t.prototype,"toggleVisibility",void 0),l([i.i(n.Property)(!1)],t.prototype,"visible",void 0),l([i.i(n.Property)("transparent")],t.prototype,"background",void 0),l([i.i(n.Property)("Layers")],t.prototype,"type",void 0),l([i.i(n.Property)(!1)],t.prototype,"invertedPointer",void 0),l([i.i(n.Property)("After")],t.prototype,"labelPosition",void 0),l([i.i(n.Property)("None")],t.prototype,"labelDisplayMode",void 0),l([i.i(n.Property)("Circle")],t.prototype,"shape",void 0),l([i.i(n.Property)("")],t.prototype,"width",void 0),l([i.i(n.Property)("")],t.prototype,"height",void 0),l([i.i(n.Complex)({fontFamily:null,fontWeight:null},p)],t.prototype,"textStyle",void 0),l([i.i(n.Property)(15)],t.prototype,"shapeWidth",void 0),l([i.i(n.Property)(15)],t.prototype,"shapeHeight",void 0),l([i.i(n.Property)(10)],t.prototype,"shapePadding",void 0),l([i.i(n.Complex)({color:"#000000",width:0},m)],t.prototype,"border",void 0),l([i.i(n.Complex)({color:"#000000",width:0},m)],t.prototype,"shapeBorder",void 0),l([i.i(n.Complex)({},k)],t.prototype,"title",void 0),l([i.i(n.Complex)({size:null,color:o.a.legendTitleFont.color,fontStyle:o.a.legendTitleFont.fontStyle,fontWeight:null,fontFamily:null},p)],t.prototype,"titleStyle",void 0),l([i.i(n.Property)("Bottom")],t.prototype,"position",void 0),l([i.i(n.Property)("Center")],t.prototype,"alignment",void 0),l([i.i(n.Property)("None")],t.prototype,"orientation",void 0),l([i.i(n.Property)({x:0,y:0})],t.prototype,"location",void 0),l([i.i(n.Property)(null)],t.prototype,"fill",void 0),l([i.i(n.Property)(1)],t.prototype,"opacity",void 0),l([i.i(n.Property)("Default")],t.prototype,"mode",void 0),l([i.i(n.Property)(null)],t.prototype,"showLegendPath",void 0),l([i.i(n.Property)(null)],t.prototype,"valuePath",void 0),l([i.i(n.Property)(!1)],t.prototype,"removeDuplicateLegend",void 0),l([i.i(n.Complex)({},z)],t.prototype,"toggleLegendSettings",void 0),t}(n.ChildProperty),B=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),l([i.i(n.Property)(!1)],t.prototype,"visible",void 0),l([i.i(n.Complex)({width:0,color:"transparent"},m)],t.prototype,"border",void 0),l([i.i(n.Property)("black")],t.prototype,"fill",void 0),l([i.i(n.Property)(1)],t.prototype,"opacity",void 0),l([i.i(n.Property)(5)],t.prototype,"rx",void 0),l([i.i(n.Property)(5)],t.prototype,"ry",void 0),l([i.i(n.Complex)({fontWeight:null},p)],t.prototype,"textStyle",void 0),l([i.i(n.Property)("")],t.prototype,"labelPath",void 0),l([i.i(n.Property)("None")],t.prototype,"smartLabelMode",void 0),l([i.i(n.Property)("None")],t.prototype,"intersectionAction",void 0),l([i.i(n.Property)("")],t.prototype,"template",void 0),l([i.i(n.Property)(0)],t.prototype,"animationDuration",void 0),t}(n.ChildProperty),U=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),l([i.i(n.Property)(null)],t.prototype,"fill",void 0),l([i.i(n.Property)([])],t.prototype,"palette",void 0),l([i.i(n.Property)(5)],t.prototype,"circleRadius",void 0),l([i.i(n.Complex)({width:null,color:"#000000"},m)],t.prototype,"border",void 0),l([i.i(n.Property)("")],t.prototype,"dashArray",void 0),l([i.i(n.Property)(1)],t.prototype,"opacity",void 0),l([i.i(n.Property)(null)],t.prototype,"colorValuePath",void 0),l([i.i(n.Property)(null)],t.prototype,"borderColorValuePath",void 0),l([i.i(n.Property)(null)],t.prototype,"borderWidthValuePath",void 0),l([i.i(n.Property)(null)],t.prototype,"valuePath",void 0),l([i.i(n.Collection)([],x)],t.prototype,"colorMapping",void 0),l([i.i(n.Property)(!1)],t.prototype,"autofill",void 0),t}(n.ChildProperty),j=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),l([i.i(n.Complex)({color:"transparent",width:1},m)],t.prototype,"border",void 0),l([i.i(n.Property)(null)],t.prototype,"dashArray",void 0),l([i.i(n.Property)(!1)],t.prototype,"visible",void 0),l([i.i(n.Property)(!1)],t.prototype,"enableDrag",void 0),l([i.i(n.Property)("#FF471A")],t.prototype,"fill",void 0),l([i.i(n.Property)(10)],t.prototype,"height",void 0),l([i.i(n.Property)(10)],t.prototype,"width",void 0),l([i.i(n.Property)(1)],t.prototype,"opacity",void 0),l([i.i(n.Property)(null)],t.prototype,"colorValuePath",void 0),l([i.i(n.Property)(null)],t.prototype,"shapeValuePath",void 0),l([i.i(n.Property)(null)],t.prototype,"imageUrlValuePath",void 0),l([i.i(n.Property)("Balloon")],t.prototype,"shape",void 0),l([i.i(n.Property)("")],t.prototype,"legendText",void 0),l([i.i(n.Property)(new a.s(0,0))],t.prototype,"offset",void 0),l([i.i(n.Property)("")],t.prototype,"imageUrl",void 0),l([i.i(n.Property)(null)],t.prototype,"template",void 0),l([i.i(n.Property)([])],t.prototype,"dataSource",void 0),l([i.i(n.Property)()],t.prototype,"query",void 0),l([i.i(n.Complex)({},y)],t.prototype,"tooltipSettings",void 0),l([i.i(n.Property)(1e3)],t.prototype,"animationDuration",void 0),l([i.i(n.Property)(0)],t.prototype,"animationDelay",void 0),l([i.i(n.Complex)({},C)],t.prototype,"selectionSettings",void 0),l([i.i(n.Complex)({},L)],t.prototype,"highlightSettings",void 0),l([i.i(n.Property)(null)],t.prototype,"latitudeValuePath",void 0),l([i.i(n.Property)(null)],t.prototype,"longitudeValuePath",void 0),l([i.i(n.Collection)([],O)],t.prototype,"initialMarkerSelection",void 0),t}(n.ChildProperty),Z=function(e){function t(t,i,n,o){return e.call(this,t,i,n,o)||this}return r(t,e),t}(j),R=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.isBaseLayer=!1,t}return r(t,e),l([i.i(n.Property)(null)],t.prototype,"shapeData",void 0),l([i.i(n.Property)()],t.prototype,"query",void 0),l([i.i(n.Complex)({},U)],t.prototype,"shapeSettings",void 0),l([i.i(n.Property)([])],t.prototype,"dataSource",void 0),l([i.i(n.Property)("Layer")],t.prototype,"type",void 0),l([i.i(n.Property)("Geographic")],t.prototype,"geometryType",void 0),l([i.i(n.Property)("Aerial")],t.prototype,"bingMapType",void 0),l([i.i(n.Property)("RoadMap")],t.prototype,"staticMapType",void 0),l([i.i(n.Property)("")],t.prototype,"key",void 0),l([i.i(n.Property)("Geometry")],t.prototype,"layerType",void 0),l([i.i(n.Property)("")],t.prototype,"urlTemplate",void 0),l([i.i(n.Property)(!0)],t.prototype,"visible",void 0),l([i.i(n.Property)("name")],t.prototype,"shapeDataPath",void 0),l([i.i(n.Property)("name")],t.prototype,"shapePropertyPath",void 0),l([i.i(n.Property)(0)],t.prototype,"animationDuration",void 0),l([i.i(n.Collection)([],Z)],t.prototype,"markerSettings",void 0),l([i.i(n.Complex)({},S)],t.prototype,"markerClusterSettings",void 0),l([i.i(n.Complex)({},B)],t.prototype,"dataLabelSettings",void 0),l([i.i(n.Collection)([],I)],t.prototype,"bubbleSettings",void 0),l([i.i(n.Collection)([],T)],t.prototype,"navigationLineSettings",void 0),l([i.i(n.Complex)({},w)],t.prototype,"polygonSettings",void 0),l([i.i(n.Complex)({},y)],t.prototype,"tooltipSettings",void 0),l([i.i(n.Complex)({},C)],t.prototype,"selectionSettings",void 0),l([i.i(n.Complex)({},L)],t.prototype,"highlightSettings",void 0),l([i.i(n.Complex)({},z)],t.prototype,"toggleLegendSettings",void 0),l([i.i(n.Collection)([],M)],t.prototype,"initialShapeSelection",void 0),t}(n.ChildProperty),D=function(){function e(e,t,i,n,o,a,r){void 0===i&&(i=256),void 0===n&&(n=256),void 0===o&&(o=0),void 0===a&&(a=0),void 0===r&&(r=null),this.x=e,this.y=t,this.top=o,this.left=a,this.height=i,this.width=n,this.src=r}return e}(),V=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),l([i.i(n.Property)(null)],t.prototype,"background",void 0),l([i.i(n.Complex)({color:"transparent",width:1},m)],t.prototype,"border",void 0),t}(n.ChildProperty)},function(e,i){e.exports=t},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(2);i.d(t,"Maps",function(){return n.a}),i.d(t,"load",function(){return n.b}),i.d(t,"loaded",function(){return n.c}),i.d(t,"click",function(){return n.d}),i.d(t,"onclick",function(){return n.e}),i.d(t,"rightClick",function(){return n.f}),i.d(t,"doubleClick",function(){return n.g}),i.d(t,"resize",function(){return n.h}),i.d(t,"tooltipRender",function(){return n.i}),i.d(t,"shapeSelected",function(){return n.j}),i.d(t,"shapeHighlight",function(){return n.k}),i.d(t,"mousemove",function(){return n.l}),i.d(t,"mouseup",function(){return n.m}),i.d(t,"mousedown",function(){return n.n}),i.d(t,"layerRendering",function(){return n.o}),i.d(t,"shapeRendering",function(){return n.p}),i.d(t,"markerRendering",function(){return n.q}),i.d(t,"markerClusterRendering",function(){return n.r}),i.d(t,"markerClick",function(){return n.s}),i.d(t,"markerDragStart",function(){return n.t}),i.d(t,"markerDragEnd",function(){return n.u}),i.d(t,"markerClusterClick",function(){return n.v}),i.d(t,"markerMouseMove",function(){return n.w}),i.d(t,"markerClusterMouseMove",function(){return n.x}),i.d(t,"dataLabelRendering",function(){return n.y}),i.d(t,"bubbleRendering",function(){return n.z}),i.d(t,"bubbleClick",function(){return n.A}),i.d(t,"bubbleMouseMove",function(){return n.B}),i.d(t,"animationComplete",function(){return n.C}),i.d(t,"legendRendering",function(){return n.D}),i.d(t,"annotationRendering",function(){return n.E}),i.d(t,"itemSelection",function(){return n.F}),i.d(t,"panComplete",function(){return n.G}),i.d(t,"zoomComplete",function(){return n.H}),i.d(t,"itemHighlight",function(){return n.I}),i.d(t,"beforePrint",function(){return n.J}),i.d(t,"zoomIn",function(){return n.K}),i.d(t,"zoomOut",function(){return n.L}),i.d(t,"pan",function(){return n.M}),i.d(t,"Annotation",function(){return n.N}),i.d(t,"Arrow",function(){return n.O}),i.d(t,"Font",function(){return n.P}),i.d(t,"ZoomToolbarButtonSettings",function(){return n.Q}),i.d(t,"ZoomToolbarTooltipSettings",function(){return n.R}),i.d(t,"ZoomToolbarSettings",function(){return n.S}),i.d(t,"Border",function(){return n.T}),i.d(t,"CenterPosition",function(){return n.U}),i.d(t,"TooltipSettings",function(){return n.V}),i.d(t,"PolygonTooltipSettings",function(){return n.W}),i.d(t,"Margin",function(){return n.X}),i.d(t,"ConnectorLineSettings",function(){return n.Y}),i.d(t,"MarkerClusterSettings",function(){return n.Z}),i.d(t,"MarkerClusterData",function(){return n._0}),i.d(t,"ColorMappingSettings",function(){return n._1}),i.d(t,"InitialMarkerSelectionSettings",function(){return n._2}),i.d(t,"InitialShapeSelectionSettings",function(){return n._3}),i.d(t,"SelectionSettings",function(){return n._4}),i.d(t,"HighlightSettings",function(){return n._5}),i.d(t,"PolygonSetting",function(){return n._6}),i.d(t,"PolygonSettings",function(){return n._7}),i.d(t,"NavigationLineSettings",function(){return n._8}),i.d(t,"BubbleSettings",function(){return n._9}),i.d(t,"CommonTitleSettings",function(){return n._10}),i.d(t,"SubTitleSettings",function(){return n._11}),i.d(t,"TitleSettings",function(){return n._12}),i.d(t,"ZoomSettings",function(){return n._13}),i.d(t,"ToggleLegendSettings",function(){return n._14}),i.d(t,"LegendSettings",function(){return n._15}),i.d(t,"DataLabelSettings",function(){return n._16}),i.d(t,"ShapeSettings",function(){return n._17}),i.d(t,"MarkerBase",function(){return n._18}),i.d(t,"MarkerSettings",function(){return n._19}),i.d(t,"LayerSettings",function(){return n._20}),i.d(t,"Tile",function(){return n._21}),i.d(t,"MapsAreaSettings",function(){return n._22}),i.d(t,"Size",function(){return n._23}),i.d(t,"stringToNumber",function(){return n._24}),i.d(t,"calculateSize",function(){return n._25}),i.d(t,"createSvg",function(){return n._26}),i.d(t,"getMousePosition",function(){return n._27}),i.d(t,"degreesToRadians",function(){return n._28}),i.d(t,"radiansToDegrees",function(){return n._29}),i.d(t,"convertGeoToPoint",function(){return n._30}),i.d(t,"calculatePolygonPath",function(){return n._31}),i.d(t,"convertTileLatLongToPoint",function(){return n._32}),i.d(t,"xToCoordinate",function(){return n._33}),i.d(t,"yToCoordinate",function(){return n._34}),i.d(t,"aitoff",function(){return n._35}),i.d(t,"roundTo",function(){return n._36}),i.d(t,"sinci",function(){return n._37}),i.d(t,"acos",function(){return n._38}),i.d(t,"calculateBound",function(){return n._39}),i.d(t,"triggerDownload",function(){return n._40}),i.d(t,"Point",function(){return n._41}),i.d(t,"Coordinate",function(){return n._42}),i.d(t,"MinMax",function(){return n._43}),i.d(t,"GeoLocation",function(){return n._44}),i.d(t,"measureText",function(){return n._45}),i.d(t,"measureTextElement",function(){return n._46}),i.d(t,"TextOption",function(){return n._47}),i.d(t,"PathOption",function(){return n._48}),i.d(t,"ColorValue",function(){return n._49}),i.d(t,"RectOption",function(){return n._50}),i.d(t,"CircleOption",function(){return n._51}),i.d(t,"PolygonOption",function(){return n._52}),i.d(t,"PolylineOption",function(){return n._53}),i.d(t,"LineOption",function(){return n._54}),i.d(t,"Line",function(){return n._55}),i.d(t,"MapLocation",function(){return n._56}),i.d(t,"Rect",function(){return n._57}),i.d(t,"PatternOptions",function(){return n._58}),i.d(t,"renderTextElement",function(){return n._59}),i.d(t,"convertElement",function(){return n._60}),i.d(t,"formatValue",function(){return n._61}),i.d(t,"convertStringToValue",function(){return n._62}),i.d(t,"convertElementFromLabel",function(){return n._63}),i.d(t,"drawSymbols",function(){return n._64}),i.d(t,"getValueFromObject",function(){return n._65}),i.d(t,"markerColorChoose",function(){return n._66}),i.d(t,"markerShapeChoose",function(){return n._67}),i.d(t,"clusterTemplate",function(){return n._68}),i.d(t,"markerClusterListHandler",function(){return n._69}),i.d(t,"markerBoundsComparer",function(){return n._70}),i.d(t,"mergeSeparateCluster",function(){return n._71}),i.d(t,"clusterSeparate",function(){return n._72}),i.d(t,"marker",function(){return n._73}),i.d(t,"markerTemplate",function(){return n._74}),i.d(t,"maintainSelection",function(){return n._75}),i.d(t,"maintainStyleClass",function(){return n._76}),i.d(t,"appendShape",function(){return n._77}),i.d(t,"drawCircle",function(){return n._78}),i.d(t,"drawRectangle",function(){return n._79}),i.d(t,"drawPath",function(){return n._80}),i.d(t,"drawPolygon",function(){return n._81}),i.d(t,"drawPolyline",function(){return n._82}),i.d(t,"drawLine",function(){return n._83}),i.d(t,"calculateShapes",function(){return n._84}),i.d(t,"drawDiamond",function(){return n._85}),i.d(t,"drawTriangle",function(){return n._86}),i.d(t,"drawCross",function(){return n._87}),i.d(t,"drawHorizontalLine",function(){return n._88}),i.d(t,"drawVerticalLine",function(){return n._89}),i.d(t,"drawStar",function(){return n._90}),i.d(t,"drawBalloon",function(){return n._91}),i.d(t,"drawPattern",function(){return n._92}),i.d(t,"getFieldData",function(){return n._93}),i.d(t,"checkShapeDataFields",function(){return n._94}),i.d(t,"checkPropertyPath",function(){return n._95}),i.d(t,"filter",function(){return n._96}),i.d(t,"getRatioOfBubble",function(){return n._97}),i.d(t,"findMidPointOfPolygon",function(){return n._98}),i.d(t,"isCustomPath",function(){return n._99}),i.d(t,"textTrim",function(){return n._100}),i.d(t,"findPosition",function(){return n._101}),i.d(t,"removeElement",function(){return n._102}),i.d(t,"calculateCenterFromPixel",function(){return n._103}),i.d(t,"getTranslate",function(){return n._104}),i.d(t,"getZoomTranslate",function(){return n._105}),i.d(t,"fixInitialScaleForTile",function(){return n._106}),i.d(t,"getElementByID",function(){return n._107}),i.d(t,"getClientElement",function(){return n._108}),i.d(t,"Internalize",function(){return n._109}),i.d(t,"getTemplateFunction",function(){return n._110}),i.d(t,"getElement",function(){return n._111}),i.d(t,"getShapeData",function(){return n._112}),i.d(t,"triggerShapeEvent",function(){return n._113}),i.d(t,"getElementsByClassName",function(){return n._114}),i.d(t,"querySelector",function(){return n._115}),i.d(t,"getTargetElement",function(){return n._116}),i.d(t,"createStyle",function(){return n._117}),i.d(t,"customizeStyle",function(){return n._118}),i.d(t,"triggerItemSelectionEvent",function(){return n._119}),i.d(t,"removeClass",function(){return n._120}),i.d(t,"elementAnimate",function(){return n._121}),i.d(t,"timeout",function(){return n._122}),i.d(t,"showTooltip",function(){return n._123}),i.d(t,"wordWrap",function(){return n._124}),i.d(t,"createTooltip",function(){return n._125}),i.d(t,"getHexColor",function(){return n._126}),i.d(t,"drawSymbol",function(){return n._127}),i.d(t,"renderLegendShape",function(){return n._128}),i.d(t,"getElementOffset",function(){return n._129}),i.d(t,"changeBorderWidth",function(){return n._130}),i.d(t,"changeNavaigationLineWidth",function(){return n._131}),i.d(t,"targetTouches",function(){return n._132}),i.d(t,"calculateScale",function(){return n._133}),i.d(t,"getDistance",function(){return n._134}),i.d(t,"getTouches",function(){return n._135}),i.d(t,"getTouchCenter",function(){return n._136}),i.d(t,"sum",function(){return n._137}),i.d(t,"zoomAnimate",function(){return n._138}),i.d(t,"animate",function(){return n._139}),i.d(t,"MapAjax",function(){return n._140}),i.d(t,"smoothTranslate",function(){return n._141}),i.d(t,"compareZoomFactor",function(){return n._142}),i.d(t,"calculateZoomLevel",function(){return n._143}),i.d(t,"processResult",function(){return n._144}),i.d(t,"LayerPanel",function(){return n._145}),i.d(t,"Bubble",function(){return n._146}),i.d(t,"BingMap",function(){return n._147});i.d(t,"Marker",function(){return n._148}),i.d(t,"Polygon",function(){return n._149}),i.d(t,"ColorMapping",function(){return n._150}),i.d(t,"DataLabel",function(){return n._151}),i.d(t,"NavigationLine",function(){return n._152}),i.d(t,"Legend",function(){return n._153}),i.d(t,"Highlight",function(){return n._154}),i.d(t,"Selection",function(){return n._155}),i.d(t,"MapsTooltip",function(){return n._156}),i.d(t,"Zoom",function(){return n._157}),i.d(t,"Annotations",function(){return n._158}),i.d(t,"Print",function(){return n._159}),i.d(t,"ImageExport",function(){return n._160}),i.d(t,"PdfExport",function(){return n._161})},function(e,t,i){"use strict";i.d(t,"a",function(){return o});var n=i(1),o=(i.n(n),function(){function e(e){this.maps=e}return e.prototype.getBingMap=function(e,t,o,a,r,l){for(var s="",d=Math.min(this.maps.tileZoomLevel,parseInt(this.maxZoom,10)),p=d;p>0;p--){var h=0,c=1<<p-1;0!=(e.x&c)&&h++,0!=(e.y&c)&&(h+=2),s=s+""+h}if(i.i(n.isNullOrUndefined)(l))return"";var u=l[Math.min(parseInt(s.substr(s.length-1,1),10),l.length)];return r=r.replace("{quadkey}",s).replace("{subdomain}",u),r+="&mkt="+a+"&ur=IN&Key="+t},e.prototype.destroy=function(){this.maps=null,this.subDomains=[]},e}())},function(e,t,i){"use strict";i.d(t,"a",function(){return r});var n=i(2),o=i(1),a=(i.n(o),i(0)),r=function(){function e(e){}return e.prototype.getShapeColorMapping=function(e,t,n){var r=e.colorValuePath?e.colorValuePath:e.valuePath,l=i.i(o.isNullOrUndefined)(r)?t[r]:r.indexOf(".")>-1?i.i(a.Q)(t,r):t[r],s=Number(l),d=this.getColorByValue(e.colorMapping,s,l);return i.i(o.isNullOrUndefined)(d)?n:d},e.prototype.getColorByValue=function(e,t,n){if(isNaN(t)&&i.i(o.isNullOrUndefined)(n))return null;for(var a,r,l="",s=0,d=e;s<d.length;s++){var p=d[s];(!i.i(o.isNullOrUndefined)(p.from)&&!i.i(o.isNullOrUndefined)(p.to)&&t>=p.from&&t<=p.to||p.value===n)&&("[object Array]"===Object.prototype.toString.call(p.color)?i.i(o.isNullOrUndefined)(p.value)?(r=this.getColor(p,t),l=r):l=p.color[0]:l=p.color),(t>=p.from&&t<=p.to||p.value===n)&&!i.i(o.isNullOrUndefined)(p.minOpacity)&&!i.i(o.isNullOrUndefined)(p.maxOpacity)&&l&&(a=this.deSaturationColor(p,l,t,n)),(""===l||i.i(o.isNullOrUndefined)(l))&&i.i(o.isNullOrUndefined)(p.from)&&i.i(o.isNullOrUndefined)(p.to)&&i.i(o.isNullOrUndefined)(p.minOpacity)&&i.i(o.isNullOrUndefined)(p.maxOpacity)&&i.i(o.isNullOrUndefined)(p.value)&&(l="[object Array]"===Object.prototype.toString.call(p.color)?p.color[0]:p.color)}return{fill:l||(e.length?null:n),opacity:a}},e.prototype.deSaturationColor=function(e,t,i,n){var o=1;if(i>=e.from&&i<=e.to||e.value===n){o=(isNaN(i)?e.from/(e.to-e.from):(i-e.from)/(e.to-e.from))*(e.maxOpacity-e.minOpacity)+e.minOpacity}return o},e.prototype.rgbToHex=function(e,t,i){return"#"+this.componentToHex(e)+this.componentToHex(t)+this.componentToHex(i)},e.prototype.componentToHex=function(e){var t=e.toString(16);return 1===t.length?"0"+t:t},e.prototype.getColor=function(e,t){var i,n="";return Number(t)===e.from?n=e.color[0]:Number(t)===e.to?n=e.color[e.color.length-1]:(i=this.getGradientColor(Number(t),e),n=this.rgbToHex(i.r,i.g,i.b)),n},e.prototype.getGradientColor=function(e,t){var i,n=t.from,o=t.to,a=0,r=o-n;a=(e-n)/r;var l,s;if(t.color.length<=2)l="#"===t.color[0].charAt(0)?t.color[0]:this._colorNameToHex(t.color[0]),s="#"===t.color[t.color.length-1].charAt(0)?t.color[t.color.length-1]:this._colorNameToHex(t.color[t.color.length-1]);else{l="#"===t.color[0].charAt(0)?t.color[0]:this._colorNameToHex(t.color[0]),s="#"===t.color[t.color.length-1].charAt(0)?t.color[t.color.length-1]:this._colorNameToHex(t.color[t.color.length-1]);for(var d=r/(t.color.length-1),p=void 0,h=void 0,c=t.color.length-1,u=[],m={},g=1;g<c;g++)h=g*d,p=n+h,m={b:p,color:t.color[g]},u.push(m);for(var y=0;y<u.length;y++)n<=e&&e<=u[y].b&&0===y?(i="#"===u[y].color.charAt(0)?u[y].color:this._colorNameToHex(u[y].color),s=i,a=e<u[y].b?1-Math.abs((e-u[y].b)/d):(e-u[y].b)/d):u[y].b<=e&&e<=o&&y===u.length-1&&(i="#"===u[y].color.charAt(0)?u[y].color:this._colorNameToHex(u[y].color),l=i,a=e<u[y].b?1-Math.abs((e-u[y].b)/d):(e-u[y].b)/d),y!==u.length-1&&y<u.length&&u[y].b<=e&&e<=u[y+1].b&&(i="#"===u[y].color.charAt(0)?u[y].color:this._colorNameToHex(u[y].color),l=i,s="#"===u[y+1].color.charAt(0)?u[y+1].color:this._colorNameToHex(u[y+1].color),a=Math.abs(e-u[y+1].b)/d)}return this.getPercentageColor(a,l,s)},e.prototype.getPercentageColor=function(e,t,i){var o=i.split("#")[1],a=t.split("#")[1],r=this.getPercentage(e,parseInt(a.substr(0,2),16),parseInt(o.substr(0,2),16)),l=this.getPercentage(e,parseInt(a.substr(2,2),16),parseInt(o.substr(2,2),16)),s=this.getPercentage(e,parseInt(a.substr(4,2),16),parseInt(o.substr(4,2),16));return new n._49(r,l,s)},e.prototype.getPercentage=function(e,t,i){var n=i-t;return Math.round(t+n*e)},e.prototype._colorNameToHex=function(e){var t={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4","indianred ":"#cd5c5c","indigo ":"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgrey:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370d8",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",orchid:"#da70d6",papayawhip:"#ffefd5",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#d87093",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};return"[object Array]"===Object.prototype.toString.call(e)?e:void 0!==t[e.toLowerCase()]?t[e.toLowerCase()]:e},e}()},function(e,t,i){"use strict";i.d(t,"a",function(){return p});var n=i(1),o=(i.n(n),i(4)),a=i(0),r=i(5),l=i(8),s=i(9),d=i(2),p=function(){function e(e){this.isMapCoordinates=!0,this.horizontalPan=!1,this.horizontalPanXCount=0,this.mapObject=e,this.ajaxModule=new n.Fetch,this.ajaxResponse=[]}return e.prototype.measureLayerPanel=function(){var e=this,t=this.mapObject.layersCollection,o=this.mapObject.mapAreaRect,r=i.i(a._32)(this.mapObject.element.id+"_Secondary_Element");if(this.mapObject.isTileMap&&r){this.tileSvgObject=this.mapObject.renderer.createSvg({id:this.mapObject.element.id+"_Tile_SVG",width:o.width,height:o.height});var l=i.i(n.createElement)("div",{id:this.mapObject.element.id+"_Tile_SVG_Parent"});l.style.cssText="position: absolute; height: "+o.height+"px; width: "+o.width+"px;",l.appendChild(this.tileSvgObject),r.appendChild(l)}if(this.layerGroup=this.mapObject.renderer.createGroup({id:this.mapObject.element.id+"_Layer_Collections","clip-path":"url(#"+this.mapObject.element.id+"_MapArea_ClipRect)"}),"GoogleStaticMap"===this.mapObject.layers[this.mapObject.baseLayerIndex].layerType){this.clipRectElement=this.mapObject.renderer.drawClipPath(new a.B(this.mapObject.element.id+"_MapArea_ClipRect","transparent",{width:1,color:"Gray"},1,{x:(o.width-640)/2,y:0,width:640,height:o.height}))}else this.clipRectElement=this.mapObject.renderer.drawClipPath(new a.B(this.mapObject.element.id+"_MapArea_ClipRect","transparent",{width:1,color:"Gray"},1,{x:this.mapObject.isTileMap?0:o.x,y:this.mapObject.isTileMap?0:o.y,width:o.width,height:o.height}));this.layerGroup.appendChild(this.clipRectElement),this.mapObject.baseMapBounds=null,this.mapObject.baseMapRectBounds=null,this.mapObject.baseSize=null,Array.prototype.forEach.call(t,function(t,i){e.currentLayer=t,e.processLayers(t,i)}),i.i(n.isNullOrUndefined)(this.mapObject.legendModule)||"Float"!==this.mapObject.legendSettings.position||(this.mapObject.isTileMap?this.layerGroup.appendChild(this.mapObject.legendModule.legendGroup):this.mapObject.svgObject.appendChild(this.mapObject.legendModule.legendGroup))},e.prototype.renderTileLayer=function(e,t,o,r){e.currentFactor=e.calculateFactor(t),e.mapObject.defaultState=!(1!==e.mapObject.zoomSettings.zoomFactor&&!i.i(n.isNullOrUndefined)(e.mapObject.tileZoomLevel)&&1!==e.mapObject.tileZoomLevel),i.i(n.isNullOrUndefined)(e.mapObject.previousCenterLatitude)&&i.i(n.isNullOrUndefined)(e.mapObject.previousCenterLongitude)&&!e.mapObject.isZoomByPosition?(e.mapObject.previousCenterLatitude=e.mapObject.centerPosition.latitude,e.mapObject.previousCenterLongitude=e.mapObject.centerPosition.longitude):e.mapObject.previousCenterLatitude!==e.mapObject.centerPosition.latitude&&e.mapObject.previousCenterLongitude!==e.mapObject.centerPosition.longitude||e.mapObject.isZoomByPosition?(e.mapObject.centerPositionChanged=!0,e.mapObject.previousCenterLatitude=e.mapObject.centerPosition.latitude,e.mapObject.previousCenterLongitude=e.mapObject.centerPosition.longitude):e.mapObject.centerPositionChanged=!1;var l=new a.s(e.mapObject.centerPosition.longitude,e.mapObject.centerPosition.latitude),s=l;this.mapObject.isTileMap&&e.mapObject.markerModule&&e.mapObject.zoomSettings.enable&&(e.mapObject.markerModule.calculateZoomCenterPositionAndFactor(this.mapObject.layersCollection),i.i(n.isNullOrUndefined)(this.mapObject.markerCenterLatitude)||i.i(n.isNullOrUndefined)(this.mapObject.markerCenterLongitude)||e.mapObject.isZoomByPosition||(s=new a.s(e.mapObject.markerCenterLongitude,e.mapObject.markerCenterLatitude))),l=!e.mapObject.zoomSettings.shouldZoomInitially&&e.mapObject.centerPosition.longitude&&e.mapObject.centerPosition.latitude&&!e.mapObject.zoomPersistence&&e.mapObject.defaultState?new a.s(e.mapObject.centerPosition.longitude,e.mapObject.centerPosition.latitude):e.mapObject.zoomSettings.shouldZoomInitially&&e.mapObject.markerZoomedState&&!e.mapObject.zoomPersistence&&!i.i(n.isNullOrUndefined)(e.mapObject.markerZoomCenterPoint)?new a.s(e.mapObject.markerZoomCenterPoint.longitude,e.mapObject.markerZoomCenterPoint.latitude):{x:null,y:null};var d=e.mapObject.zoomSettings.shouldZoomInitially&&!e.mapObject.isZoomByPosition?i.i(n.isNullOrUndefined)(e.mapObject.markerZoomFactor)?1:e.mapObject.markerZoomFactor:e.mapObject.zoomSettings.zoomFactor;if(d=e.mapObject.enablePersistence?i.i(n.isNullOrUndefined)(e.mapObject.mapScaleValue)?i.i(n.isNullOrUndefined)(e.mapObject.markerZoomFactor)?e.mapObject.zoomSettings.zoomFactor:e.mapObject.markerZoomFactor:e.mapObject.mapScaleValue:d,d=e.mapObject.zoomSettings.enable?d:e.mapObject.zoomSettings.zoomFactor,d=d>0?d:1,e.mapObject.defaultState=1===d,!e.mapObject.markerZoomedState&&e.mapObject.zoomSettings.shouldZoomInitially&&1===e.mapObject.zoomSettings.zoomFactor&&(e.mapObject.defaultState=!0),i.i(n.isNullOrUndefined)(e.mapObject.tileZoomLevel))e.mapObject.tileZoomLevel=d,e.mapObject.previousZoomFactor=d;else if(this.mapObject.isReset&&1===e.mapObject.tileZoomLevel&&!e.mapObject.zoomSettings.shouldZoomInitially){var p=e.mapObject.tileZoomLevel;e.mapObject.tileZoomLevel=p}else 1!==e.mapObject.zoomSettings.zoomFactor||e.mapObject.zoomSettings.shouldZoomInitially?(e.mapObject.previousZoomFactor=e.mapObject.tileZoomLevel,e.mapObject.tileZoomLevel=e.mapObject.defaultState&&e.mapObject.zoomSettings.enable?e.mapObject.tileZoomLevel:e.mapObject.zoomSettings.shouldZoomInitially||e.mapObject.centerPositionChanged?d:e.mapObject.previousZoomFactor!==e.mapObject.zoomSettings.zoomFactor?e.mapObject.zoomSettings.zoomFactor:e.mapObject.tileZoomLevel,e.mapObject.tileZoomLevel=1===d&&0===e.mapObject.zoomSettings.zoomFactor?d:e.mapObject.tileZoomLevel,!i.i(n.isNullOrUndefined)(e.mapObject.tileTranslatePoint)&&(e.mapObject.markerZoomFactor!==e.mapObject.mapScaleValue||i.i(n.isNullOrUndefined)(e.mapObject.markerZoomFactor)&&i.i(n.isNullOrUndefined)(e.mapObject.mapScaleValue))&&(e.mapObject.zoomSettings.zoomFactor<=1||e.mapObject.previousZoomFactor!==e.mapObject.zoomSettings.zoomFactor)&&(e.mapObject.tileTranslatePoint.x=0,e.mapObject.tileTranslatePoint.y=0)):e.mapObject.defaultState&&(e.mapObject.previousZoomFactor=e.mapObject.tileZoomLevel,e.mapObject.tileZoomLevel=d,i.i(n.isNullOrUndefined)(e.mapObject.tileTranslatePoint)||(e.mapObject.tileTranslatePoint.x=0,e.mapObject.tileTranslatePoint.y=0));if(d<=1&&!i.i(n.isNullOrUndefined)(e.mapObject.height)&&!e.mapObject.zoomSettings.shouldZoomInitially&&e.mapObject.tileZoomLevel===e.mapObject.tileZoomScale&&this.mapObject.initialCheck&&i.i(a._31)(this.mapObject),i.i(n.isNullOrUndefined)(e.mapObject.centerLatOfGivenLocation)||i.i(n.isNullOrUndefined)(e.mapObject.centerLongOfGivenLocation)||!e.mapObject.zoomNotApplied||(i.i(n.isNullOrUndefined)(s)||(s.y=e.mapObject.centerLatOfGivenLocation,s.x=e.mapObject.centerLongOfGivenLocation),e.mapObject.tileZoomLevel=e.mapObject.mapScaleValue=e.mapObject.scaleOfGivenLocation),e.mapObject.tileTranslatePoint=e.panTileMap(e.mapObject.availableSize.width,e.mapObject.availableSize.height,s),this.mapObject.zoomSettings.resetToInitial&&this.mapObject.initialCheck&&!i.i(n.isNullOrUndefined)(e.mapObject.height)&&this.mapObject.availableSize.height>512){this.mapObject.applyZoomReset=!0,this.mapObject.initialZoomLevel=Math.floor(this.mapObject.availableSize.height/512);var h="GoogleStaticMap"!==this.mapObject.layers[this.mapObject.baseLayerIndex].layerType?20:0,c=256*Math.pow(2,this.mapObject.initialZoomLevel);i.i(n.isNullOrUndefined)(this.mapObject.initialTileTranslate)||(this.mapObject.initialTileTranslate.x=this.mapObject.availableSize.width/2-c/2,this.mapObject.initialTileTranslate.y=this.mapObject.availableSize.height/2-c/2+h)}if(e.generateTiles(e.mapObject.tileZoomLevel,e.mapObject.tileTranslatePoint,null,r),i.i(n.isNullOrUndefined)(e.mapObject.previousZoomFactor)||e.mapObject.previousZoomFactor===e.mapObject.zoomSettings.zoomFactor||(e.mapObject.previousZoomFactor=e.mapObject.zoomSettings.zoomFactor),e.mapObject.polygonModule){var u=e.mapObject.polygonModule.polygonRender(this.mapObject,o,e.mapObject.tileZoomLevel);i.i(n.isNullOrUndefined)(u)||e.layerObject.appendChild(u)}if(e.mapObject.navigationLineModule){var m=e.mapObject.navigationLineModule.renderNavigation(e.currentLayer,e.mapObject.tileZoomLevel,o);i.i(n.isNullOrUndefined)(m)||e.layerObject.appendChild(m)}e.mapObject.markerModule&&e.mapObject.markerModule.markerRender(this.mapObject,e.layerObject,o,e.mapObject.tileZoomLevel,null),e.translateLayerElements(e.layerObject),e.layerGroup.appendChild(e.layerObject)},e.prototype.processLayers=function(e,t){var o=this;if(this.layerObject=this.mapObject.renderer.createGroup({id:this.mapObject.element.id+"_LayerIndex_"+t}),!this.mapObject.enablePersistence){var r=this.mapObject.getModuleName()+this.mapObject.element.id;if(-1===navigator.userAgent.indexOf("Edge")){var s=void 0;try{s=window.localStorage}catch(e){s=null}!i.i(n.isNullOrUndefined)(s)&&window.localStorage.getItem(r)&&window.localStorage.removeItem(r)}}var p={cancel:!1,name:d.o,index:t,layer:e,maps:this.mapObject,visible:e.visible};this.mapObject.trigger("layerRendering",p,function(r){if(!p.cancel&&p.visible)if("OSM"===e.layerType&&(e.urlTemplate="https://a.tile.openstreetmap.org/level/tileX/tileY.png"),"Google"===e.layerType&&(e.urlTemplate="https://mt1.google.com/vt/lyrs=m@129&hl=en&x=tileX&y=tileY&z=level"),"Geometry"!==e.layerType||i.i(n.isNullOrUndefined)(e.shapeData)&&!i.i(n.isNullOrUndefined)(e.urlTemplate)&&""!==e.urlTemplate){if("Bing"!==e.layerType||o.bing)if(!i.i(n.isNullOrUndefined)(e.urlTemplate)&&e.urlTemplate.indexOf("quadkey")>-1){var s=new l.a(o.mapObject);o.bingMapCalculation(e,t,o,s)}else o.renderTileLayer(o,e,t);else if(e.key&&e.key.length>1){var d=o,h=new l.a(o.mapObject),c="AerialWithLabel"===e.bingMapType?"AerialWithLabelsOnDemand":e.bingMapType,u="https://dev.virtualearth.net/REST/V1/Imagery/Metadata/"+c,m=new n.Fetch({url:u+"?output=json&include=ImageryProviders&urischeme=https&key="+e.key});m.onSuccess=function(i){var n=i.resourceSets[0].resources[0],a=n.imageUrl,r=n.imageUrlSubdomains,l=n.zoomMax;null!==a&&void 0!==a&&a!==h.imageUrl&&(h.imageUrl=a),null!==r&&void 0!==r&&r!==h.subDomains&&(h.subDomains=r),null!==l&&void 0!==l&&l!==h.maxZoom&&(h.maxZoom=l),d.mapObject.bingMap=h,d.renderTileLayer(d,e,t,h),o.mapObject.arrangeTemplate(),o.mapObject.zoomModule&&o.mapObject.previousScale!==o.mapObject.scale&&o.mapObject.zoomModule.applyTransform(o.mapObject,!0)},m.send()}}else if(!(i.i(n.isNullOrUndefined)(e.shapeData)||i.i(n.isNullOrUndefined)(e.shapeData.geometries)&&i.i(n.isNullOrUndefined)(e.shapeData.features))){var g=!i.i(n.isNullOrUndefined)(e.shapeData.geometries)&&e.shapeData.geometries.length>0?e.shapeData.geometries:e.shapeData.features;e.layerData=[];var y=e.shapeData.bbox;!i.i(n.isNullOrUndefined)(y)&&e.isBaseLayer?o.mapObject.baseMapBounds=new a.v({min:y[0][1],max:y[1][1]},{min:y[0][0],max:y[1][0]}):i.i(n.isNullOrUndefined)(o.mapObject.baseMapBounds)&&!i.i(a._24)(g)&&o.calculateRectBounds(g),o.calculatePathCollection(t,g)}}),this.mapObject.isTileMap?this.tileSvgObject&&(this.tileSvgObject.appendChild(this.layerGroup),this.mapObject.baseMapBounds=null):this.mapObject.svgObject.appendChild(this.layerGroup)},e.prototype.bingMapCalculation=function(e,t,i,n){n.imageUrl=e.urlTemplate,n.subDomains=["t0","t1","t2","t3"],n.maxZoom="21",i.mapObject.bingMap=n,i.renderTileLayer(i,e,t,n),this.mapObject.arrangeTemplate(),this.mapObject.zoomModule&&this.mapObject.previousScale!==this.mapObject.scale&&this.mapObject.zoomModule.applyTransform(this.mapObject,!0)},e.prototype.bubbleCalculation=function(e,t){if(null!=e.dataSource&&null!=e)for(var o=e.dataSource,r=0;r<o.length;r++){var l=i.i(n.isNullOrUndefined)(e.valuePath)?parseFloat(e.dataSource[r][e.valuePath]):e.valuePath.indexOf(".")>-1?Number(i.i(a.Q)(e.dataSource[r],e.valuePath)):parseFloat(e.dataSource[r][e.valuePath]);0!==r?l>t.max?t.max=l:l<t.min&&(t.min=l):t.max=t.min=l}},e.prototype.calculatePathCollection=function(e,t){var r=this;this.groupElements=[],i.i(a._24)(t)||(this.currentFactor=this.calculateFactor(this.currentLayer)),this.rectBounds=null;var l=this.currentLayer.shapeSettings;Array.prototype.forEach.call(t,function(e){if(!i.i(n.isNullOrUndefined)(e.geometry)||!i.i(n.isNullOrUndefined)(e.coordinates)){var t=i.i(n.isNullOrUndefined)(e.geometry)?e.type:e.geometry.type,o=i.i(n.isNullOrUndefined)(e.geometry)?e.coordinates:e.geometry.coordinates,a=e.geometry,l=e.properties;r.generatePoints(t,o,a,l)}}),this.currentLayer.rectBounds=this.rectBounds,i.i(n.isNullOrUndefined)(this.mapObject.baseMapRectBounds)&&this.currentLayer.isBaseLayer&&(this.mapObject.baseMapRectBounds=this.rectBounds);var s=l.palette.length>1?l.palette:i.i(o.b)(this.mapObject.theme),p=i.i(n.createElement)("div",{id:this.mapObject.element.id+"_LayerIndex_"+e+"_Label_Template_Group",className:this.mapObject.element.id+"_template"});if(p.style.cssText="pointer-events: none; overflow: hidden; position: absolute;top:"+this.mapObject.mapAreaRect.y+"px;left:"+this.mapObject.mapAreaRect.x+"px;height:"+this.mapObject.mapAreaRect.height+"px;width:"+this.mapObject.mapAreaRect.width+"px;",0!==this.currentLayer.layerData.length)for(var h=this,c=0;c<this.currentLayer.layerData.length;c++)!function(o){var c,u,m,g=void 0,y={color:l.border.color,width:l.border.width,opacity:l.border.opacity},f=h.currentLayer.layerData[o],b="",v=l.autofill?s[o%s.length]:l.fill||h.mapObject.themeStyle.shapeFill;null===l.colorValuePath||i.i(n.isNullOrUndefined)(f.property)||(g=i.i(a._19)(h.currentLayer.dataSource,f.property,h.currentLayer.shapeDataPath,h.currentLayer.shapePropertyPath,h.currentLayer),null!==g&&0===l.colorMapping.length?v=h.currentLayer.shapeSettings.colorValuePath.indexOf(".")>-1?i.i(a.Q)(h.currentLayer.dataSource[g],l.colorValuePath):h.currentLayer.dataSource[g][l.colorValuePath]:f.property[l.colorValuePath]&&0===h.currentLayer.dataSource.length&&0===l.colorMapping.length&&(v=h.currentLayer.shapeSettings.colorValuePath.indexOf(".")>-1?i.i(a.Q)(f.property,l.colorValuePath):f.property[l.colorValuePath]),v=i.i(n.isNullOrUndefined)(v)?l.fill||h.mapObject.themeStyle.shapeFill:v);var S=h.mapObject.element.id+"_LayerIndex_"+e+"_shapeIndex_"+o+"_dataIndex_"+g,_=h.getShapeColorMapping(h.currentLayer,f.property,v);v="[object Object]"!==Object.prototype.toString.call(_)||i.i(n.isNullOrUndefined)(_.fill)?v:_.fill,(h.currentLayer.shapeSettings.borderColorValuePath||h.currentLayer.shapeSettings.borderWidthValuePath)&&null!==(g=i.i(a._19)(h.currentLayer.dataSource,f.property,h.currentLayer.shapeDataPath,h.currentLayer.shapePropertyPath,h.currentLayer))&&(h.currentLayer.dataSource[g][l.borderColorValuePath]&&(y.color=h.currentLayer.dataSource[g][l.borderColorValuePath]),h.currentLayer.dataSource[g][l.borderWidthValuePath]&&(y.width=h.currentLayer.dataSource[g][l.borderWidthValuePath]));var x="[object Object]"!==Object.prototype.toString.call(_)||i.i(n.isNullOrUndefined)(_.opacity)?l.opacity:_.opacity,O={cancel:!1,name:d.p,index:o,data:h.currentLayer.dataSource?h.currentLayer.dataSource[g]:null,maps:h.mapObject,shape:l,fill:v,border:{width:y.width,color:y.color,opacity:y.opacity}},M=function(d){var h=i.i(n.isNullOrUndefined)(f._isMultiPolygon)?i.i(n.isNullOrUndefined)(f.type)?f[0].type:f.type:"MultiPolygon";if(h="Polygon"===h||"MultiPolygon"===h?"Polygon":h,d.cancel?(d.fill=v,d.border.color=l.border.color,d.border.width=l.border.width,r.mapObject.layers[e].shapeSettings.border=l.border):(d.fill="#A6A6A6"===d.fill?d.shape.fill||r.mapObject.themeStyle.shapeFill:d.fill,d.border.color="#000000"===d.border.color?d.shape.border.color:d.border.color,d.border.width=0===d.border.width?d.shape.border.width:d.border.width,i.i(n.isNullOrUndefined)(l.borderColorValuePath)&&(r.mapObject.layers[e].shapeSettings.border.color=d.border.color),i.i(n.isNullOrUndefined)(l.borderWidthValuePath)&&(r.mapObject.layers[e].shapeSettings.border.width=d.border.width)),d.border.opacity=i.i(n.isNullOrUndefined)(d.border.opacity)?x:d.border.opacity,r.groupElements.length<1)m=r.mapObject.renderer.createGroup({id:r.mapObject.element.id+"_LayerIndex_"+e+"_"+h+"_Group",transform:""}),r.groupElements.push(m);else for(var g=0;g<r.groupElements.length;g++){var y=r.groupElements[g];if(y.id.indexOf(h)>-1){m=y;break}if(g>=r.groupElements.length-1){m=r.mapObject.renderer.createGroup({id:r.mapObject.element.id+"_LayerIndex_"+e+"_"+h+"_Group"}),r.groupElements.push(m);break}}var _;switch(h){case"Polygon":f._isMultiPolygon?b=r.generateMultiPolygonPath(f):(b+="M"+f[0].point.x+" "+f[0].point.y,f.map(function(e){b+=" L "+e.point.x+" "+e.point.y})),b+=" z ",b.length>3&&(c=new a.z(S,d.fill,d.border.width,d.border.color,x,d.border.opacity,l.dashArray,b),_=r.mapObject.renderer.drawPath(c));break;case"LineString":f.map(function(e,t){b+=0===t?"M "+e.point.x+" "+e.point.y:"L"+e.point.x+" , "+e.point.y+" "}),b.length>3&&(c=new a.z(S,"transparent",i.i(n.isNullOrUndefined)(d.border.width)?1:d.border.width,i.i(n.isNullOrUndefined)(d.fill)?d.border.color:d.fill,x,d.border.opacity,l.dashArray,b),_=r.mapObject.renderer.drawPath(c));break;case"MultiLineString":f.map(function(e){e.map(function(e,t){b+=0===t?"M "+e.point.x+" "+e.point.y:"L"+e.point.x+" , "+e.point.y+" "})}),b.length>3&&(c=new a.z(S,"transparent",i.i(n.isNullOrUndefined)(d.border.width)?1:d.border.width,i.i(n.isNullOrUndefined)(d.fill)?d.border.color:d.fill,x,d.border.opacity,l.dashArray,b),_=r.mapObject.renderer.drawPath(c));break;case"Point":var O=f.point,M="SubLayer"!==r.mapObject.layers[e].type?l.circleRadius:l.circleRadius/(r.mapObject.isTileMap?r.mapObject.scale:r.currentFactor);u=new a.C(S,d.fill,d.border,x,O.x,O.y,M,l.dashArray),_=r.mapObject.renderer.drawCircle(u);break;case"MultiPoint":f.map(function(t,i){var n=t.point,o="SubLayer"!==r.mapObject.layers[e].type?l.circleRadius:l.circleRadius/(r.mapObject.isTileMap?r.mapObject.scale:r.currentFactor);u=new a.C(S+"_multiLine_"+i,d.fill,d.border,x,n.x,n.y,o,l.dashArray),_=r.mapObject.renderer.drawCircle(u),r.pathAttributeCalculate(m,_,h,f)});break;case"Path":b=f.point,c=new a.z(S,d.fill,d.border.width,d.border.color,x,d.border.opacity,l.dashArray,b),_=r.mapObject.renderer.drawPath(c)}i.i(n.isNullOrUndefined)(_)||"MultiPoint"===h||r.pathAttributeCalculate(m,_,h,f),o===r.currentLayer.layerData.length-1&&r.layerFeatures(e,s,t,p)};M.bind(h),h.mapObject.trigger("shapeRendering",O,M)}(c);else this.layerFeatures(e,s,t,p)},e.prototype.pathAttributeCalculate=function(e,t,o,r){for(var l,s="[object Array]"===Object.prototype.toString.call(this.currentLayer.shapePropertyPath)?this.currentLayer.shapePropertyPath:[this.currentLayer.shapePropertyPath],d=0;d<s.length;d++)if(!i.i(n.isNullOrUndefined)(r.property)){l=s[d];break}if(t.setAttribute("aria-label",i.i(n.isNullOrUndefined)(r.property)?"":r.property[l]),this.currentLayer.selectionSettings.enable||this.currentLayer.highlightSettings.enable?(t.tabIndex=this.mapObject.tabIndex,t.setAttribute("role","button"),t.style.cursor=this.currentLayer.highlightSettings.enable&&!this.currentLayer.selectionSettings.enable?"default":"pointer"):t.setAttribute("role","region"),"LineString"!==o&&"MultiLineString"!==o||(t.style.cssText="outline:none"),i.i(a._0)(this.mapObject.selectedElementId,this.mapObject.shapeSelectionClass,t,"ShapeselectionMapStyle"),this.mapObject.toggledShapeElementId)for(var d=0;d<this.mapObject.toggledShapeElementId.length;d++){var p=this.mapObject.legendSettings.toggleLegendSettings.applyShapeSettings?this.currentLayer.shapeSettings:this.mapObject.legendSettings.toggleLegendSettings;this.mapObject.toggledShapeElementId[d]===t.id&&(t.setAttribute("fill",p.fill),t.setAttribute("stroke",p.border.color),t.setAttribute("fill-opacity",p.opacity.toString()),t.setAttribute("stroke-opacity",(i.i(n.isNullOrUndefined)(p.border.opacity)?p.opacity:p.border.opacity).toString()),t.setAttribute("stroke-width",(i.i(n.isNullOrUndefined)(p.border.width)?0:p.border.width).toString()))}e.appendChild(t)},e.prototype.layerFeatures=function(e,t,i,n){var o,a=this;if(this.mapObject.polygonModule&&this.groupElements.push(this.mapObject.polygonModule.polygonRender(this.mapObject,e,this.mapObject.isTileMap?Math.floor(this.currentFactor):this.currentFactor)),this.currentLayer.bubbleSettings.length&&this.mapObject.bubbleModule)for(var r,l=this.currentLayer.bubbleSettings.length,s=this,d=0;d<l;d++)!function(i){r=s.currentLayer.bubbleSettings[i],o=s.mapObject.renderer.createGroup({id:s.mapObject.element.id+"_LayerIndex_"+e+"_bubble_Group_"+i});var n={min:0,max:0};s.bubbleCalculation(r,n);var l=r.dataSource;s.mapObject.bubbleModule.bubbleCollection=[],l.map(function(l,s){a.renderBubble(a.currentLayer,l,t[s%t.length],n,i,s,o,e,r)}),s.groupElements.push(o)}(d);this.mapObject.markerModule&&!this.mapObject.isTileMap&&this.mapObject.zoomSettings.enable&&this.mapObject.markerModule.calculateZoomCenterPositionAndFactor(this.mapObject.layersCollection);var p=this.mapObject.renderer.createGroup({id:this.mapObject.element.id+"_LayerIndex_"+e+"_dataLableIndex_Group"});if(p.style.pointerEvents="none",this.mapObject.dataLabelModule&&this.currentLayer.dataLabelSettings.visible){var h=[];Array.prototype.forEach.call(i,function(t,i){a.renderLabel(a.currentLayer,e,t,p,i,n,h)}),this.groupElements.push(p)}this.mapObject.navigationLineModule&&this.groupElements.push(this.mapObject.navigationLineModule.renderNavigation(this.currentLayer,this.currentFactor,e)),this.groupElements.map(function(e){a.layerObject.appendChild(e)}),this.mapObject.markerModule&&this.mapObject.markerModule.markerRender(this.mapObject,this.layerObject,e,this.mapObject.isTileMap?Math.floor(this.currentFactor):this.currentFactor,null),this.translateLayerElements(this.layerObject),this.layerGroup.appendChild(this.layerObject)},e.prototype.renderLabel=function(e,t,i,n,o,a,r){this.mapObject.dataLabelModule.renderLabel(e,t,i,e.layerData,n,a,o,r)},e.prototype.generateMultiPolygonPath=function(e){for(var t,i="",n=0;n<e.length;n++)i+="M"+e[n][0].point.x+" "+e[n][0].point.y,t=e[n],t.map(function(e){i+=" L "+e.point.x+" "+e.point.y});return i},e.prototype.renderBubble=function(e,t,o,a,r,l,s,d,p){if(i.i(n.isNullOrUndefined)(this.mapObject.bubbleModule)||!p.visible)return null;o=p.fill?p.fill:o,this.mapObject.bubbleModule.id=this.mapObject.element.id+"_LayerIndex_"+d+"_BubbleIndex_"+r+"_dataIndex_"+l,this.mapObject.bubbleModule.renderBubble(p,t,o,a,r,l,d,e,s,this.mapObject.bubbleModule.id)},e.prototype.getShapeColorMapping=function(e,t,o){if(o=o||e.shapeSettings.fill,0===e.shapeSettings.colorMapping.length&&i.i(n.isNullOrUndefined)(e.dataSource))return o;var r=i.i(a._19)(e.dataSource,t,e.shapeDataPath,e.shapePropertyPath,e),l=new s.a(this.mapObject);return i.i(n.isNullOrUndefined)(e.dataSource[r])?o:l.getShapeColorMapping(e.shapeSettings,e.dataSource[r],o)},e.prototype.generatePoints=function(e,t,o,r){var l,s,d=this,p=[];switch(e.toLowerCase()){case"polygon":p=this.calculatePolygonBox(t[0]),p.length>0&&(p.property=r,p.type=e,p._isMultiPolygon=!1,this.currentLayer.layerData.push(p));break;case"multipolygon":for(var h=[],c=0;c<t.length;c++)for(var u=0;u<t[c].length;u++)p=this.calculatePolygonBox(t[c][u]),p.length>0&&h.push(p);h.property=r,h.type=e,h._isMultiPolygon=!0,this.currentLayer.layerData.push(h);break;case"linestring":var m=i.i(n.isNullOrUndefined)(this.currentLayer.shapeSettings.border.width)?1:"string"==typeof this.currentLayer.shapeSettings.border.width?parseInt(this.currentLayer.shapeSettings.border.width,10):this.currentLayer.shapeSettings.border.width;t.map(function(e){l=e[1],s=e[0];var t=i.i(a.h)(l,s,d.currentFactor,d.currentLayer,d.mapObject);d.calculateBox(t,m),p.push({point:t,lat:l,lng:s})}),p.property=r,p.type=e,this.currentLayer.layerData.push(p);break;case"multilinestring":var g=i.i(n.isNullOrUndefined)(this.currentLayer.shapeSettings.border.width)?1:"string"==typeof this.currentLayer.shapeSettings.border.width?parseInt(this.currentLayer.shapeSettings.border.width,10):this.currentLayer.shapeSettings.border.width,y=[];t.map(function(e){p=[],e.map(function(e){l=e[1],s=e[0];var t=i.i(a.h)(l,s,d.currentFactor,d.currentLayer,d.mapObject);d.calculateBox(t,g),p.push({point:t,lat:l,lng:s})}),y.push(p)}),y.property=r,y.type=e,this.currentLayer.layerData.push(y);break;case"point":var f=(i.i(n.isNullOrUndefined)(this.currentLayer.shapeSettings.border.width)?1:"string"==typeof this.currentLayer.shapeSettings.border.width?parseInt(this.currentLayer.shapeSettings.border.width,10):this.currentLayer.shapeSettings.border.width)+2*this.currentLayer.shapeSettings.circleRadius;l=t[1],s=t[0];var b=i.i(a.h)(l,s,this.currentFactor,this.currentLayer,this.mapObject);this.calculateBox(b,f),this.currentLayer.layerData.push({point:b,type:e,lat:l,lng:s,property:r});break;case"multipoint":var v=(i.i(n.isNullOrUndefined)(this.currentLayer.shapeSettings.border.width)?1:"string"==typeof this.currentLayer.shapeSettings.border.width?parseInt(this.currentLayer.shapeSettings.border.width,10):this.currentLayer.shapeSettings.border.width)+2*this.currentLayer.shapeSettings.circleRadius;p=[],t.map(function(e){l=e[1],s=e[0];var t=i.i(a.h)(l,s,d.currentFactor,d.currentLayer,d.mapObject);d.calculateBox(t,v),p.push({point:t,lat:l,lng:s})}),p.property=r,p.type=e,this.currentLayer.layerData.push(p);break;case"path":this.currentLayer.layerData.push({point:o.d,type:e,property:r})}},e.prototype.calculateBox=function(e,t){i.i(n.isNullOrUndefined)(this.rectBounds)?this.rectBounds={min:{x:e.x-t,y:e.y-t},max:{x:e.x+t,y:e.y+t}}:(this.rectBounds.min.x=Math.min(this.rectBounds.min.x,e.x-t),this.rectBounds.min.y=Math.min(this.rectBounds.min.y,e.y-t),this.rectBounds.max.x=Math.max(this.rectBounds.max.x,e.x+t),this.rectBounds.max.y=Math.max(this.rectBounds.max.y,e.y+t))},e.prototype.calculateFactor=function(e){var t,n,o,r=1,l=this.mapObject.baseMapBounds,s=new a.a(this.mapObject.mapAreaRect.width,this.mapObject.mapAreaRect.height-5);if(l){var d=i.i(a.h)(l.latitude.min,l.longitude.min,null,e,this.mapObject),p=i.i(a.h)(l.latitude.max,l.longitude.max,null,e,this.mapObject);n=p.y-d.y,o=p.x-d.x,0!==n&&0!==o||(o=s.width/2,n=s.height)}else n=o=500;return t=n<s.height?parseFloat(Math.abs(100*Number(s.height/Number(n.toString()+"e+1"))).toString().split(".")[0])/10:s.height/n,r=o<s.width?parseFloat(Math.abs(100*Number(s.width/Number(o.toString()+"e+1"))).toString().split(".")[0])/10:s.width/o,Math.min(r,t)},e.prototype.translateLayerElements=function(e){var t;if(this.mapObject.translateType="layer",i.i(n.isNullOrUndefined)(this.mapObject.baseMapRectBounds)){if(this.mapObject.isTileMap&&!i.i(n.isNullOrUndefined)(this.mapObject.scale))for(var o=0;o<e.childElementCount;o++)if(t=e.childNodes[o],!(t.id.indexOf("_Markers_Group")>-1||t.id.indexOf("_bubble_Group")>-1||t.id.indexOf("_dataLableIndex_Group")>-1||t.id.indexOf("_line_Group")>-1)&&-1===t.id.indexOf("_Polygons_Group")){var r="scale( "+this.mapObject.scale+" ) translate( "+this.mapObject.translatePoint.x+" "+this.mapObject.translatePoint.y+" ) ";t.setAttribute("transform",r)}}else{var l="Disable"===n.animationMode?0:0===this.currentLayer.animationDuration&&"Enable"===n.animationMode?1e3:this.currentLayer.animationDuration,s=0!==l||i.i(n.isNullOrUndefined)(this.mapObject.zoomModule);this.mapObject.baseTranslatePoint=this.mapObject.zoomTranslatePoint;var d=void 0;d=this.mapObject.zoomSettings.zoomFactor>1&&!i.i(n.isNullOrUndefined)(this.mapObject.zoomModule)?i.i(a._30)(this.mapObject,this.currentLayer,s):i.i(a._29)(this.mapObject,this.currentLayer,s);var p=this.mapObject.previousScale=d.scale,h=this.mapObject.previousPoint=d.location;this.mapObject.baseTranslatePoint=this.mapObject.translatePoint=h,this.mapObject.baseScale=this.mapObject.scale=p;for(var c=0;c<e.childElementCount;c++)if(t=e.childNodes[c],!(t.id.indexOf("_Markers_Group")>-1||t.id.indexOf("_bubble_Group")>-1||t.id.indexOf("_dataLableIndex_Group")>-1)){var r="scale( "+p+" ) translate( "+h.x+" "+h.y+" ) ";t.setAttribute("transform",r),l>0&&!i.i(n.isNullOrUndefined)(this.mapObject.zoomModule)&&(d=this.mapObject.zoomSettings.zoomFactor>1?i.i(a._30)(this.mapObject,this.currentLayer):i.i(a._29)(this.mapObject,this.currentLayer),this.mapObject.scale=d.scale,this.mapObject.zoomTranslatePoint=this.mapObject.translatePoint=d.location)}}},e.prototype.calculateRectBounds=function(e){var t=this;Array.prototype.forEach.call(e,function(e){if(!i.i(n.isNullOrUndefined)(e.geometry)||!i.i(n.isNullOrUndefined)(e.coordinates)){var o=i.i(n.isNullOrUndefined)(e.geometry)?e.type:e.geometry.type,a=i.i(n.isNullOrUndefined)(e.geometry)?e.coordinates:e.geometry.coordinates;switch(o.toLowerCase()){case"polygon":t.calculateRectBox(a[0]);break;case"multipolygon":a.map(function(e){t.calculateRectBox(e[0])});break;case"multilinestring":a.map(function(e){e.map(function(e,i){t.calculateRectBox(e,"multilinestring",0===i)})});break;case"linestring":a.map(function(e,i){t.calculateRectBox(e,"linestring",0===i)});break;case"point":t.calculateRectBox(a,"point");break;case"multipoint":a.map(function(e,i){t.calculateRectBox(e,"multipoint",0===i)})}}})},e.prototype.calculatePolygonBox=function(e){var t=this,o=[],r=this.mapObject.baseMapBounds;return e.map(function(e){var l=e[1],s=e[0];if(s>=r.longitude.min&&s<=r.longitude.max&&l>=r.latitude.min&&l<=r.latitude.max){var d=i.i(a.h)(l,s,t.currentFactor,t.currentLayer,t.mapObject);i.i(n.isNullOrUndefined)(t.rectBounds)?t.rectBounds={min:{x:d.x,y:d.y},max:{x:d.x,y:d.y}}:(t.rectBounds.min.x=Math.min(t.rectBounds.min.x,d.x),t.rectBounds.min.y=Math.min(t.rectBounds.min.y,d.y),t.rectBounds.max.x=Math.max(t.rectBounds.max.x,d.x),t.rectBounds.max.y=Math.max(t.rectBounds.max.y,d.y)),o.push({point:d,lat:l,lng:s})}}),o},e.prototype.calculateRectBox=function(e,t,o){var r=this;"linestring"!==t&&"multilinestring"!==t&&"point"!==t&&"multipoint"!==t?Array.prototype.forEach.call(e,function(e){i.i(n.isNullOrUndefined)(r.mapObject.baseMapBounds)?r.mapObject.baseMapBounds=new a.v({min:e[1],max:e[1]},{min:e[0],max:e[0]}):(r.mapObject.baseMapBounds.latitude.min=Math.min(r.mapObject.baseMapBounds.latitude.min,e[1]),r.mapObject.baseMapBounds.latitude.max=Math.max(r.mapObject.baseMapBounds.latitude.max,e[1]),r.mapObject.baseMapBounds.longitude.min=Math.min(r.mapObject.baseMapBounds.longitude.min,e[0]),r.mapObject.baseMapBounds.longitude.max=Math.max(r.mapObject.baseMapBounds.longitude.max,e[0]))}):(o||"point"===t)&&i.i(n.isNullOrUndefined)(this.mapObject.baseMapBounds)?this.mapObject.baseMapBounds=new a.v({min:e[1],max:e[1]},{min:e[0],max:e[0]}):(this.mapObject.baseMapBounds.latitude.min=Math.min(this.mapObject.baseMapBounds.latitude.min,e[1]),this.mapObject.baseMapBounds.latitude.max=Math.max(this.mapObject.baseMapBounds.latitude.max,e[1]),this.mapObject.baseMapBounds.longitude.min=Math.min(this.mapObject.baseMapBounds.longitude.min,e[0]),this.mapObject.baseMapBounds.longitude.max=Math.max(this.mapObject.baseMapBounds.longitude.max,e[0]))},e.prototype.generateTiles=function(e,t,o,a,s){var d=this.mapObject.locale,p=this.mapObject.availableSize;this.tiles=[];var h,c;h=c=Math.pow(2,e);var u=0,m=0;t.x+256*h<p.width&&(u=t.x>0?Math.ceil(t.x/256):0,m=t.x+256*h<p.width?Math.ceil((p.width-(t.x+256*h))/256):0),h+=u+m,"Pan"===o?(h=this.horizontalPanXCount>=h?this.horizontalPanXCount:h,this.horizontalPan=!1):(this.horizontalPanXCount=h,this.horizontalPan=!0);var g=this.mapObject.layers[this.mapObject.baseLayerIndex];this.urlTemplate=g.urlTemplate;var y=Math.min(c,(-t.y+p.height)/256+1),f=Math.min(h,(-t.x+p.width+256*m)/256+1),b=-(t.x+256*u+256)/256,v=-(t.y+256)/256;a=a||this.bing||this.mapObject.bingMap;for(var S=Math.round(b);S<Math.round(f);S++)for(var _=Math.round(v);_<Math.round(y);_++){var x=256*S+t.x,O=256*_+t.y;if(x>-256&&x<=p.width&&O>-256&&O<p.height&&_>=0){var M=S;S<0&&(M=M%c+c);var C=new r.I(M%c,_);if(C.left=Math.round(x),C.top=Math.round(O),"Bing"===g.layerType||a&&!i.i(n.isNullOrUndefined)(g.urlTemplate)&&""!==g.urlTemplate){var L=g.key;C.src=a.getBingMap(C,L,g.bingMapType,d,a.imageUrl,a.subDomains)}else C.src=this.urlTemplate.replace("level",e.toString()).replace("tileX",C.x.toString()).replace("tileY",C.y.toString());this.tiles.push(C)}}i.i(n.isNullOrUndefined)(o)||(o.indexOf("wheel")>1?(this.animateToZoomX=this.mapObject.availableSize.width/2-s.x-10,this.animateToZoomY=-s.y):(this.animateToZoomX=-10,this.animateToZoomY=10-(this.mapObject.availableSize.height/2+11.5)));for(var P=i.i(n.extend)([],this.tiles,[],!0),w=0,T=this.mapObject.layers;w<T.length;w++){var I=T[w];if("SubLayer"===I.type&&I.visible&&("Geometry"!==I.layerType&&"GoogleStaticMap"!==I.layerType||"Geometry"===I.layerType&&i.i(n.isNullOrUndefined)(I.shapeData)&&!i.i(n.isNullOrUndefined)(I.urlTemplate)&&""!==I.urlTemplate))for(var k=0,N=P;k<N.length;k++){var E=N[k],F=i.i(n.extend)({},E,{},!0);"Bing"===I.layerType?(a=new l.a(this.mapObject),F.src=a.getBingMap(F,I.key,I.bingMapType,d,a.imageUrl,a.subDomains)):F.src=I.urlTemplate.replace("level",e.toString()).replace("tileX",E.x.toString()).replace("tileY",E.y.toString()),this.tiles.push(F)}}(this.mapObject.previousScale!==this.mapObject.scale||this.mapObject.isReset||this.mapObject.isZoomByPosition||this.mapObject.zoomNotApplied)&&this.arrangeTiles(o,this.animateToZoomX,this.animateToZoomY)},e.prototype.arrangeTiles=function(e,t,o){var r,l=this,s=document.getElementById(this.mapObject.element.id+"_tile_parent"),d=document.getElementById(this.mapObject.element.id+"_tiles");i.i(n.isNullOrUndefined)(e)||"Pan"===e?r=0:(this.tileAnimation(e,t,o),r="Disable"===n.animationMode?0:0===this.mapObject.layersCollection[0].animationDuration&&"Enable"===n.animationMode?1e3:this.mapObject.layersCollection[0].animationDuration),"GoogleStaticMap"===this.mapObject.layers[this.mapObject.baseLayerIndex].layerType?this.renderGoogleMap(this.mapObject.layers[0].key,this.mapObject.staticMapZoom):setTimeout(function(){s&&(s.style.zIndex="1"),d&&(d.style.zIndex="0");var t;!document.getElementById(l.mapObject.element.id+"_animated_tiles")&&s?(t=i.i(n.createElement)("div",{id:l.mapObject.element.id+"_animated_tiles"}),s.appendChild(t)):"Pan"!==e&&d&&s?(d.appendChild(s.children[0]),l.mapObject.isAddLayer||i.i(n.isNullOrUndefined)(document.getElementById(l.mapObject.element.id+"_animated_tiles"))||(document.getElementById(l.mapObject.element.id+"_animated_tiles").id=l.mapObject.element.id+"_animated_tiles_old"),t=i.i(n.createElement)("div",{id:l.mapObject.element.id+"_animated_tiles"}),s.appendChild(t)):t=s?s.children[0]:null;for(var o=0;o<l.tiles.length;o++){var r=l.tiles[o],p=null,h=l.mapObject.element.id;if("Pan"===e){var c=document.getElementById(h+"_tile_"+o),u=!1;i.i(n.isNullOrUndefined)(c)?(u=!0,c=i.i(n.createElement)("div",{id:h+"_tile_"+o}),p=i.i(n.createElement)("img")):(c.style.removeProperty("display"),p=c.children[0]),!u&&p&&p.src!==r.src&&(p.src=r.src),c.style.position="absolute",c.style.left=r.left+"px",c.style.top=r.top+"px",c.style.height=r.height+"px",c.style.width=r.width+"px",u&&(p.setAttribute("height","256px"),p.setAttribute("width","256px"),p.setAttribute("src",r.src),p.setAttribute("alt",l.mapObject.getLocalizedLabel("ImageNotFound")),p.style.setProperty("user-select","none"),c.appendChild(p),t.appendChild(c))}else{p=i.i(n.createElement)("img"),p.setAttribute("height","256px"),p.setAttribute("width","256px"),p.setAttribute("src",r.src),p.style.setProperty("user-select","none"),p.setAttribute("alt",l.mapObject.getLocalizedLabel("ImageNotFound"));var c=i.i(n.createElement)("div",{id:h+"_tile_"+o});c.style.position="absolute",c.style.left=r.left+"px",c.style.top=r.top+"px",c.style.height=r.height+"px",c.style.width=r.width+"px",c.appendChild(p),t&&t.appendChild(c)}o===l.tiles.length-1&&document.getElementById(l.mapObject.element.id+"_animated_tiles_old")&&i.i(a._27)(l.mapObject.element.id+"_animated_tiles_old")}if(!i.i(n.isNullOrUndefined)(l.mapObject.currentTiles))for(var m=l.tiles.length;m<t.childElementCount;m++){for(var g=!1,y=0;y<l.mapObject.currentTiles.childElementCount;y++)g||l.mapObject.currentTiles.children[y].id!==t.children[m].id||(g=!0);g?t.children[m].style.display="none":t.removeChild(t.children[m])}},r)},e.prototype.tileAnimation=function(e,t,o){var a=document.getElementById(this.mapObject.element.id+"_tile_parent"),r=document.getElementById(this.mapObject.element.id+"_animated_tiles"),l=document.getElementById(this.mapObject.element.id+"_tiles"),s="2";if(0===e.indexOf("ZoomOut")||"Reset"===e){for(l.style.zIndex="1",a.style.zIndex="0";l.childElementCount>=1;)l.removeChild(l.children[0]);t=0,o=document.getElementById(this.mapObject.element.id+"_tile_parent").getClientRects()[0].height/4,s=0===e.indexOf("ZoomOut")?"0.5":"0.2"}i.i(n.isNullOrUndefined)(r)||(r.style.transition="Disable"===n.animationMode?"0ms":0===this.mapObject.layersCollection[0].animationDuration&&"Enable"===n.animationMode?"1000ms":this.mapObject.layersCollection[0].animationDuration+"ms",r.style.transform="translate("+t+"px, "+o+"px) scale("+s+")")},e.prototype.renderGoogleMap=function(e,t){var o=this.mapObject;t=this.mapObject.tileZoomLevel;var r=256*Math.pow(2,t),l=o.mapAreaRect.width/2-r/2,s=o.mapAreaRect.height/2-r/2,d=new a.s(null,null),p=0,h=0,c=i.i(a.j)(d,t,{x:l,y:s},this.isMapCoordinates);o.zoomModule&&o.zoomSettings.enable&&(p=o.zoomModule.mouseDownLatLong.x-o.zoomModule.mouseMoveLatLong.x,h=o.zoomModule.mouseDownLatLong.y-o.zoomModule.mouseMoveLatLong.y);var u=o.pointToLatLong(c.x-p,c.y-h);o.centerPosition.latitude=u.latitude,o.centerPosition.longitude=u.longitude;var m,g;m=i.i(n.isNullOrUndefined)(parseInt(o.width,10))?parseInt(o.width,10)-22:Math.round(o.mapAreaRect.width),g=i.i(n.isNullOrUndefined)(parseInt(o.height,10))?parseInt(o.height,10)-22:Math.round(o.mapAreaRect.height);var y,f=m>640?(m-640)/2:0,b=g>640?(g-640)/2:0,v=o.layers[o.layers.length-1].staticMapType.toString().toLowerCase();y=o.centerPosition.latitude&&o.centerPosition.longitude?o.centerPosition.latitude.toString()+","+o.centerPosition.longitude.toString():"0,0";var S="https://maps.googleapis.com/maps/api/staticmap?size="+m+"x"+g+"&zoom="+t+"&center="+y+"&maptype="+v+"&key="+e;document.getElementById(this.mapObject.element.id+"_tile_parent").innerHTML='<div id="'+this.mapObject.element.id+'_StaticGoogleMap"style="position:absolute; left:'+f+"px; top:"+b+'px"><img src="'+S+'"alt="'+this.mapObject.getLocalizedLabel("ImageNotFound")+'"></div>'},e.prototype.panTileMap=function(e,t,o){this.mapObject.tileZoomLevel<=this.mapObject.tileZoomScale&&this.mapObject.initialCheck&&(this.mapObject.tileZoomLevel=this.mapObject.tileZoomScale);var r,l,s=this.mapObject.tileZoomLevel,d="GoogleStaticMap"!==this.mapObject.layers[this.mapObject.layers.length-1].layerType?20:0,p=256*Math.pow(2,s);r=e/2-p/2,l=t/2-p/2;var h=i.i(a.j)(o,s,{x:r,y:l},this.isMapCoordinates);if(d=this.mapObject.zoomNotApplied?0:d,r-=h.x-e/2,l=l-(h.y-t/2)+d,this.mapObject.scale=Math.pow(2,s-1),(i.i(n.isNullOrUndefined)(this.mapObject.tileTranslatePoint)||0===this.mapObject.tileTranslatePoint.y&&0===this.mapObject.tileTranslatePoint.x||i.i(n.isNullOrUndefined)(this.mapObject.previousTileWidth)||i.i(n.isNullOrUndefined)(this.mapObject.previousTileHeight))&&(this.mapObject.previousTileWidth=e,this.mapObject.previousTileHeight=t),!i.i(n.isNullOrUndefined)(this.mapObject.tileTranslatePoint)&&i.i(n.isNullOrUndefined)(o.x)&&(1===this.mapObject.zoomSettings.zoomFactor||this.mapObject.zoomSettings.zoomFactor!==s||!this.mapObject.defaultState)&&(e!==this.mapObject.previousTileWidth||t!==this.mapObject.previousTileHeight)){var c=r-(this.mapObject.previousTileWidth/2-p/2),u=l-(this.mapObject.previousTileHeight/2-p/2+d);this.mapObject.tileTranslatePoint.x=this.mapObject.tileTranslatePoint.x+c,this.mapObject.tileTranslatePoint.y=this.mapObject.tileTranslatePoint.y+u}return i.i(n.isNullOrUndefined)(this.mapObject.tileTranslatePoint)||this.mapObject.zoomNotApplied||(0===this.mapObject.tileTranslatePoint.x||this.mapObject.tileTranslatePoint.x===r||this.mapObject.centerPositionChanged||(r=this.mapObject.tileTranslatePoint.x),0===this.mapObject.tileTranslatePoint.y||this.mapObject.tileTranslatePoint.y===l||this.mapObject.centerPositionChanged||(l=this.mapObject.tileTranslatePoint.y)),this.mapObject.translatePoint=new a.s((r-.01*this.mapObject.zoomSettings.zoomFactor)/this.mapObject.scale,(l-.01*this.mapObject.zoomSettings.zoomFactor)/this.mapObject.scale),this.mapObject.previousTileWidth=e,this.mapObject.previousTileHeight=t,new a.s(r,l)},e.prototype.destroy=function(){this.mapObject=null,this.groupElements=[],this.layerObject=null,this.currentLayer=null,this.rectBounds=null,this.tiles=[],this.clipRectElement=null,this.tileSvgObject=null,this.ajaxModule=null,this.ajaxResponse=[],this.layerGroup=null,i.i(n.isNullOrUndefined)(this.bing)||this.bing.destroy(),this.bing=null},e}()},function(e,t,i){"use strict";i.d(t,"a",function(){return r});var n=i(2),o=i(1),a=(i.n(o),i(0)),r=function(){function e(e){this.map=e}return e.prototype.renderAnnotationElements=function(){var e=this,t=this.map.element.id+"_Secondary_Element",n=i.i(o.createElement)("div",{id:this.map.element.id+"_Annotations_Group"});n.style.position="absolute",n.style.top="0px",n.style.left="0px",this.map.annotations.map(function(t,i){null!==t.content&&e.createAnnotationTemplate(n,t,i)}),n.childElementCount>0&&!i.i(o.isNullOrUndefined)(i.i(a._32)(t))&&i.i(a._32)(t).appendChild(n),this.map.renderReactTemplates()},e.prototype.createAnnotationTemplate=function(e,t,r){var l,s,d,p,h=this,c=this.map,u=c.availableSize,m=i.i(o.createElement)("div",{id:c.element.id+"_Annotation_"+r});m.style.cssText="position: absolute; z-index:"+t.zIndex+";";var g={cancel:!1,name:n.E,content:t.content,annotation:t};this.map.trigger(n.E,g,function(e){if(!g.cancel)if((d=i.i(a._35)(g.content,h.map))&&d(h.map,h.map,g.content,h.map.element.id+"_ContentTemplate_"+r).length){p=Array.prototype.slice.call(d(h.map,h.map,g.content,h.map.element.id+"_ContentTemplate_"+r));for(var t=p.length,n=0;n<t;n++)m.appendChild(p[n])}else m.appendChild(i.i(o.createElement)("div",{innerHTML:g.content}))});var y=i.i(a._54)(m.cloneNode(!0),c.element),f=c.element.getBoundingClientRect(),b=c.svgObject.getBoundingClientRect();l=Math.abs(b.left-f.left),s=Math.abs(b.top-f.top);var v=t.x.indexOf("%")>-1?u.width/100*parseFloat(t.x):parseFloat(t.x),S=t.y.indexOf("%")>-1?u.height/100*parseFloat(t.y):parseFloat(t.y);switch(l="None"===t.horizontalAlignment?l+v:l,s="None"===t.verticalAlignment?s+S:s,t.verticalAlignment){case"Near":s+=S;break;case"Center":s=s+S+(b.height/2-y.height/2);break;case"Far":s=s+b.height+S-y.height}switch(t.horizontalAlignment){case"Near":l+=v;break;case"Center":l=l+v+(b.width/2-y.width/2);break;case"Far":l=l+b.width+v-y.width}m.style.left=l+"px",m.style.top=s+"px",e.appendChild(m)},e.prototype.getModuleName=function(){return"Annotations"},e.prototype.destroy=function(){this.map=null},e}()},function(e,t,i){"use strict";i.d(t,"a",function(){return r});var n=i(2),o=i(1),a=(i.n(o),i(0)),r=function(){function e(e){this.id="",this.maps=e,this.bubbleCollection=[]}return e.prototype.renderBubble=function(e,t,r,l,s,d,p,h,c,u){var m,g,y=this,f=h.layerData,b=e.colorValuePath,v=i.i(o.isNullOrUndefined)(b)?t[b]:b.indexOf(".")>-1?i.i(a.Q)(t,e.colorValuePath):t[b],S=i.i(o.isNullOrUndefined)(b)?Number(t[b]):b.indexOf(".")>-1?Number(i.i(a.Q)(t,e.colorValuePath)):Number(t[b]),_=i.i(o.isNullOrUndefined)(e.valuePath)?Number(t[e.valuePath]):e.valuePath.indexOf(".")>-1?Number(i.i(a.Q)(t,e.valuePath)):Number(t[e.valuePath]);if(isNaN(_)&&isNaN(S)&&i.i(o.isNullOrUndefined)(v))return null;var x=i.i(a._22)(e.minRadius,e.maxRadius,_,l.min,l.max),O=new n._150(this.maps),M=O.getColorByValue(e.colorMapping,S,v);g="[object Object]"!==Object.prototype.toString.call(M)||i.i(o.isNullOrUndefined)(M.fill)?r:M.fill,m="[object Object]"!==Object.prototype.toString.call(M)||i.i(o.isNullOrUndefined)(M.opacity)?e.opacity:M.opacity;var C=[[]];this.maps.translateType="bubble";for(var L=0,P=0,w=0,T=0,I=f.length;T<I;T++){var k=f[T];k=k.property;var N=i.i(a._20)(t[h.shapeDataPath],h.shapePropertyPath,k);if((!i.i(o.isNullOrUndefined)(t[h.shapeDataPath])&&isNaN(t[h.shapeDataPath])?t[h.shapeDataPath].toLowerCase():t[h.shapeDataPath])===(!i.i(o.isNullOrUndefined)(k[N])&&isNaN(k[N])?k[N].toLowerCase():k[N])&&"LineString"!==f[T].type&&"MultiLineString"!==f[T].type&&"Point"!==f[T].type&&"MultiPoint"!==f[T].type)if(f[T]._isMultiPolygon)for(var E=f[T],F=0;F<E.length;F++)C.push(this.getPoints(E[F],[])),w=C[C.length-1].length,P<w&&(P=w,L=C.length-1);else C.push(this.getPoints(f[T],[])),w=C[C.length-1].length,P<w&&(P=w,L=C.length-1)}var z,A,B=this.maps.projectionType,U={color:e.border.color,opacity:e.border.opacity,width:e.border.width},j=i.i(a._23)(C[L],B,h.geometryType);if(e.visible){if(i.i(o.isNullOrUndefined)(j)){var Z=C.length-1;if(!C[Z].x||!C[Z].y)return;A={cancel:!1,name:n.z,border:U,cx:C[Z].x,cy:C[Z].y,data:t,fill:g,maps:this.maps,radius:x}}else z="Mercator"===this.maps.projectionType?j.y:-j.y,A={cancel:!1,name:n.z,border:U,cx:j.x,cy:z,data:t,fill:g,maps:this.maps,radius:x};this.maps.trigger("bubbleRendering",A,function(t){if(!A.cancel){var n;if(A.border.opacity=i.i(o.isNullOrUndefined)(A.border.opacity)?m:A.border.opacity,"Circle"===e.bubbleType){var r=new a.C(u,A.fill,A.border,m,0,0,A.radius,null);n=i.i(a._3)(y.maps,r,c)}else{var l="Mercator"===y.maps.projectionType?A.cy-x:A.cy+x,g=new a.B(u,A.fill,A.border,m,new a.I(0,0,2*x,2*x),2,2);A.cx-=x,A.cy=l,n=i.i(a._4)(y.maps,g,c)}i.i(a._0)(y.maps.selectedBubbleElementId,y.maps.bubbleSelectionClass,n,"BubbleselectionMapStyle"),y.bubbleCollection.push({LayerIndex:p,BubbleIndex:s,DataIndex:d,element:n,center:{x:A.cx,y:A.cy}});var f,b=0!==h.animationDuration||"Enable"===o.animationMode||i.i(o.isNullOrUndefined)(y.maps.zoomModule);f=y.maps.zoomSettings.zoomFactor>1&&!i.i(o.isNullOrUndefined)(y.maps.zoomModule)&&!y.maps.isTileMap?i.i(a._30)(y.maps,h,b):i.i(a._29)(y.maps,h,b);var v=e.dataSource,S=f.scale,_=f.location,O=new a.H(y.maps.isTileMap?(A.cx+y.maps.translatePoint.x)*y.maps.tileZoomLevel:(A.cx+_.x)*S,y.maps.isTileMap?(A.cy+y.maps.translatePoint.y)*y.maps.tileZoomLevel:(A.cy+_.y)*S);n.setAttribute("transform","translate( "+O.x+" "+O.y+" )");var M=v.length-1===d?"bubble":null;"Square"===e.bubbleType?(O.x+=x,O.y+=x*("Mercator"===y.maps.projectionType?1:-1)):x=0,(e.animationDuration>0||"Enable"===o.animationMode)&&i.i(a._46)(n,e.animationDelay,e.animationDuration,O,y.maps,M,x)}})}},e.prototype.getPoints=function(e,t){return i.i(o.isNullOrUndefined)(e.map)?t=e.point:e.map(function(e){t.push(new a.s(e.point.x,e.point.y))}),t},e.prototype.bubbleClick=function(e){var t=e.target.id;if(-1!==t.indexOf("_LayerIndex_")){var a=this.getbubble(t);if(!i.i(o.isNullOrUndefined)(a)){var r={cancel:!1,name:n.A,data:a,maps:this.maps,target:t,x:e.clientX,y:e.clientY};this.maps.trigger(n.A,r)}}},e.prototype.getbubble=function(e){var t=e.split("_LayerIndex_"),i=parseInt(t[1].split("_")[0],10);if(e.indexOf("_BubbleIndex_")>-1){var n=this.maps.layers[i],o=parseInt(t[1].split("_BubbleIndex_")[1],10),a=parseInt(t[1].split("_BubbleIndex_")[1].split("_dataIndex_")[1],10);if(!isNaN(o))return n.bubbleSettings[o].dataSource[a]}return null},e.prototype.bubbleMove=function(e){var t=e.target.id;if(-1!==t.indexOf("_LayerIndex_")){var a=this.getbubble(t);if(!i.i(o.isNullOrUndefined)(a)){var r={cancel:!1,name:n.B,data:a,maps:this.maps,target:t,x:e.clientX,y:e.clientY};this.maps.trigger(n.B,r)}}},e.prototype.getModuleName=function(){return"Bubble"},e.prototype.destroy=function(){this.bubbleCollection=[],this.maps=null},e}()},function(e,t,i){"use strict";i.d(t,"a",function(){return l});var n=i(0),o=i(1),a=(i.n(o),i(3)),r=i(4),l=function(){function e(e){this.value={rightWidth:0,leftWidth:0,heightTop:0,heightBottom:0},this.maps=e,this.dataLabelCollections=[]}return e.prototype.getDataLabel=function(e,t,n,a){for(var r,l,s=0;s<e.length;s++){var d=e[s],p=!i.i(o.isNullOrUndefined)(d[a])&&isNaN(d[a])&&"string"==typeof d[a]?d[a].toLowerCase():d[a];if(n=i.i(o.isNullOrUndefined)(n)||"string"!=typeof n?n:n.toString(),l=i.i(o.isNullOrUndefined)(n)||"string"!=typeof n?n:n.toLowerCase(),p===l){r=d;break}}return r},e.prototype.renderLabel=function(e,t,l,s,d,p,h,c){var u,m,g,y,f,b,v,S,_,x=this,O=e.dataLabelSettings,M=e.dataLabelSettings.textStyle,C=e.dataLabelSettings,L=e.dataLabelSettings.labelPath,P=[[]],w=0,T=0,I=l,k="",N=0,E=!1,F=l.properties,z=this.maps.element.id+"_LayerIndex_"+t+"_shapeIndex_"+h+"_LabelIndex_"+h,A=new n.s(0,0),B=s[h];M.fontFamily="material"!==this.maps.theme.toLowerCase()?this.maps.themeStyle.labelFontFamily:M.fontFamily,M.fontWeight=M.fontWeight||this.maps.themeStyle.fontWeight||r.a.dataLabelFont.fontWeight,l=i.i(o.isNullOrUndefined)(B)?null:B.property;var U,j,Z="[object Array]"===Object.prototype.toString.call(e.shapePropertyPath)?e.shapePropertyPath:[e.shapePropertyPath],R=0!==e.animationDuration||"Enable"===o.animationMode||i.i(o.isNullOrUndefined)(this.maps.zoomModule),D=this.maps.isTileMap?new Object:this.maps.zoomSettings.zoomFactor>1&&!i.i(o.isNullOrUndefined)(this.maps.zoomModule)?i.i(n._30)(this.maps,e,R):i.i(n._29)(this.maps,e,R),V=this.maps.isTileMap?this.maps.scale:D.scale,G=this.maps.isTileMap?this.maps.translatePoint:D.location,H=this.maps.zoomTranslatePoint,W=i.i(o.isNullOrUndefined)(this.maps.scale)?1:Math.floor(this.maps.scale),q=this.maps.zoomSettings.enable?!i.i(o.isNullOrUndefined)(this.maps.zoomShapeCollection)&&this.maps.zoomShapeCollection.length>0&&!this.maps.isAddLayer:this.maps.zoomSettings.enable;this.maps.translateType="labels";for(var X=0;X<Z.length&&!(F[Z[X]]&&(U=Z[X],f=this.getDataLabel(e.dataSource,e.shapeDataPath,I.properties[U],e.shapeDataPath)));X++);if(f=this.getDataLabel(e.dataSource,e.shapeDataPath,I.properties[U],e.shapeDataPath),!i.i(o.isNullOrUndefined)(B)&&!i.i(o.isNullOrUndefined)(B.property))if(P=[[]],s[h]._isMultiPolygon||"Point"===s[h].type||"MultiPoint"===s[h].type){if("Point"!==s[h].type&&"MultiPoint"!==s[h].type)for(var Y=s[h],X=0;X<Y.length;X++)P.push(this.getPoint(Y[X],[])),N=P[P.length-1].length,T<N&&(T=N,w=P.length-1)}else P.push(this.getPoint(s[h],[])),N=P[P.length-1].length,T<N&&(T=N,w=P.length-1);if(k=i.i(o.isNullOrUndefined)(f)?I.properties[L]:i.i(o.isNullOrUndefined)(f[L])?f[e.shapeDataPath]:f[L].toString(),"[object Array]"===Object.prototype.toString.call(e.shapePropertyPath)&&i.i(o.isNullOrUndefined)(k)&&0===e.dataSource.length)for(var Q=0;Q<e.shapePropertyPath.length;Q++)if(I.properties[e.shapePropertyPath[Q]]){k=I.properties[e.shapePropertyPath[Q]];break}i.i(o.isNullOrUndefined)(k)&&""!==e.dataLabelSettings.template&&0===e.dataSource.length&&(k=I.properties[e.shapePropertyPath]),i.i(o.isNullOrUndefined)(k)&&e.dataSource.length>0&&(k="");var J=k,K=this.maps.projectionType;v=i.i(n._23)(P[w],K,e.geometryType);var $=v;if(!i.i(o.isNullOrUndefined)(k)&&!i.i(o.isNullOrUndefined)(v)){if(q&&W>1&&!this.maps.zoomNotApplied&&""===O.template){if(t>0)for(var ee=0;ee<this.maps.zoomLabelPositions.length;ee++)if(this.maps.zoomLabelPositions[ee].dataLabelText===k){b=h,h=ee,E=!0;break}S=v.x,_=v.y,v.x=(v.x+H.x)*V,v.y=(v.y+H.y)*V}v.y="Mercator"===this.maps.projectionType||"Normal"===e.geometryType?v.y:-v.y,i.i(o.isNullOrUndefined)(this.maps.format)||isNaN(Number(k))||isNaN(parseFloat(k))||this.maps.useGroupingSeparator&&(k=i.i(n._34)(this.maps,parseFloat(k)),i.i(o.isNullOrUndefined)(f)||(f[L]=k));var te={name:a.x,maps:this.maps,cancel:!1,border:{color:O.border.color,width:O.border.width,opacity:O.border.opacity},datalabel:O,fill:O.fill,template:O.template,text:k,offsetX:0,offsetY:0};this.maps.trigger("dataLabelRendering",te,function(a){if(!te.cancel){var r=[],l=q&&W>1&&!x.maps.zoomNotApplied&&x.maps.zoomShapeCollection.length>h?x.maps.dataLabelShape[h]*V:(v.rightMax.x-v.leftMax.x)*V;i.i(o.isNullOrUndefined)(x.maps.dataLabelShape)||x.maps.isReset||(j=$.rightMax.x-$.leftMax.x,x.maps.dataLabelShape.push(j)),te.text===k||te.cancel||(k=te.text);var s=i.i(n.x)(k,M),O=k,L=s,T=v.y-s.height/2,N=v.y+s.height/2,F=(v.y+G.y)*V-s.height/2,B=(v.y+G.y)*V+s.height/2;if(r=i.i(n._21)(P[w],T,N),r.length>5&&"MultiPolygon"!==I.geometry.type&&"MultiPolygon"!==I.type){var U=i.i(n._23)(r,K,e.geometryType);q&&W>1&&!x.maps.zoomNotApplied&&""===te.template&&(U.x=(x.maps.zoomLabelPositions[h].location.x+H.x)*V,U.y=(x.maps.zoomLabelPositions[h].location.y+H.y)*V),S=U.x,v.x=U.x,l=q&&W>1&&!x.maps.zoomNotApplied&&x.maps.zoomShapeCollection.length>h?x.maps.dataLabelShape[h]*V:(U.rightMax.x-U.leftMax.x)*V>0?(U.rightMax.x-U.leftMax.x)*V:l}var Z=(v.x+G.x)*V+s.width/2,R=(v.x+G.x)*V-s.width/2;x.value[h]={rightWidth:Z,leftWidth:R,heightTop:F,heightBottom:B};var D;if(""!==te.template){u=i.i(n._35)(te.template,x.maps);var X=u?u(i.i(o.isNullOrUndefined)(f)?I.properties:f,x.maps,te.template,x.maps.element.id+"_LabelTemplate",!1):document.createElement("div");X.innerHTML=u?"":te.template,D=i.i(n.O)(X,z,i.i(o.isNullOrUndefined)(f)?I.properties:f),x.maps.isTileMap?(D.style.left=(v.x+G.x)*V-s.width/2+"px",D.style.top=(v.y+G.y)*V-s.height+"px"):(D.style.left=Math.abs(x.maps.baseMapRectBounds.min.x-v.x)*V+a.offsetX+"px",D.style.top=Math.abs(x.maps.baseMapRectBounds.min.y-v.y)*V+a.offsetY+"px"),p.appendChild(D)}else{if("Trim"===C.smartLabelMode){var Y="number"==typeof k?k.toString():k;O=i.i(n._25)(l,Y,M,null,!0),L=i.i(n.x)(O,M),m=new n.y(z,A.x,A.y,"middle",O,"","")}if("None"===C.smartLabelMode&&(m=new n.y(z,A.x,A.y,"middle",k,"","")),"Hide"===C.smartLabelMode&&(k=l>=s.width?k:"",m=new n.y(z,A.x,A.y,"middle",k,"","")),k=m.text,"Hide"===C.intersectionAction){for(var Q=0;Q<c.length;Q++)if(!i.i(o.isNullOrUndefined)(c[Q])&&!(x.value[h].leftWidth>c[Q].rightWidth||x.value[h].rightWidth<c[Q].leftWidth||x.value[h].heightTop>c[Q].heightBottom||x.value[h].heightBottom<c[Q].heightTop)){k="";break}c.push(x.value[h]),m=new n.y(z,A.x,A.y,"middle",k,"","")}var ee=void 0;if("Trim"===C.intersectionAction){for(var ie=0;ie<c.length;ie++)if(!i.i(o.isNullOrUndefined)(c[ie]))if(c[ie].rightWidth<x.value[h].leftWidth||c[ie].leftWidth>x.value[h].rightWidth||c[ie].heightBottom<x.value[h].heightTop||c[ie].heightTop>x.value[h].heightBottom)O=k,ee=0;else{if(x.value[h].leftWidth>c[ie].leftWidth){l=c[ie].rightWidth-x.value[h].leftWidth,ee=l-(x.value[h].rightWidth-x.value[h].leftWidth),O=i.i(n._25)(ee,k,M,null,!0);break}if(x.value[h].leftWidth<c[ie].leftWidth){l=x.value[h].rightWidth-c[ie].leftWidth,ee=Math.abs(l-(x.value[h].rightWidth-x.value[h].leftWidth)),O=i.i(n._25)(ee,k,M,null,!0);break}}L=i.i(n.x)(O,M),c.push(x.value[h]),m=new n.y(z,A.x,A.y,"middle",O,"","")}if("None"===C.intersectionAction&&(m=new n.y(z,A.x,A.y,"middle",k,"","")),O.length>1){var ne=te.border;if(ne.width>1){var oe=te.fill,ae=C.opacity,re=C.rx,le=C.ry,se=void 0,de=void 0;q&&W>1&&!x.maps.zoomNotApplied?(se=v.x-s.width/2,de=v.y-s.height/2-5):(se=(v.x+G.x)*V-s.width/2,de=(v.y+G.y)*V-s.height/2),ne.opacity=i.i(o.isNullOrUndefined)(ne.opacity)?ae:ne.opacity;var pe=new n.B(x.maps.element.id+"_LayerIndex_"+t+"_shapeIndex_"+h+"_rectIndex_"+h,oe,ne,ae,new n.I(se+a.offsetX,de+a.offsetY,s.width,s.height),re,le);y=x.maps.renderer.drawRectangle(pe),y.setAttribute("visibility",e.dataLabelSettings.animationDuration>0||"Enable"===o.animationMode?"hidden":"visibile"),d.appendChild(y)}}g=i.i(n.K)(m,M,M.color||x.maps.themeStyle.dataLabelFontColor,d),g.setAttribute("aria-label",k),g.setAttribute("role","region"),g.setAttribute("visibility",e.dataLabelSettings.animationDuration>0||"Enable"===o.animationMode?"hidden":"visibile"),q&&W>1&&!x.maps.zoomNotApplied?(g.setAttribute("transform","translate( "+(v.x+a.offsetX)+" "+(v.y+a.offsetY)+" )"),v.x=S,v.y=_):g.setAttribute("transform","translate( "+((v.x+G.x)*V+a.offsetX)+" "+((v.y+G.y)*V+L.height/2+a.offsetY)+" )"),d.appendChild(g)}x.dataLabelCollections.push({location:{x:v.x+a.offsetX,y:v.y+a.offsetY},element:i.i(o.isNullOrUndefined)(D)?g:D,layerIndex:t,shapeIndex:E?b:h,labelIndex:E?b:h,dataLabelText:J}),p.childElementCount>0&&!x.maps.element.contains(p)&&(document.getElementById(x.maps.element.id+"_Secondary_Element").appendChild(p),x.maps.renderReactTemplates()),(e.dataLabelSettings.animationDuration>0||"Enable"===o.animationMode)&&(i.i(o.isNullOrUndefined)(g)||(x.datalabelAnimate(g,C.animationDuration,M.opacity,!1),i.i(o.isNullOrUndefined)(y)||x.datalabelAnimate(y,C.animationDuration,C.opacity,!0)))}})}},e.prototype.datalabelAnimate=function(e,t,i,n){var a=0;new o.Animation({}).animate(e,{duration:0===t&&"Enable"===o.animationMode?1e3:t,delay:0,progress:function(t){t.timeStamp>t.delay&&(a=(t.timeStamp-t.delay)/t.duration,e.setAttribute("style","user-select: none; visibility: visible;"),e.setAttribute(n?"fill-opacity":"opacity",(i*a).toString()))},end:function(){e.style.visibility="visible",e.setAttribute(n?"fill-opacity":"opacity",i.toString())}})},e.prototype.getPoint=function(e,t){return"MultiLineString"===e.type?Array.prototype.forEach.call(e,function(e){Array.prototype.forEach.call(e,function(e){t.push(new n.s(e.point.x,e.point.y))})}):Array.prototype.forEach.call(e,function(e){t.push(new n.s(e.point.x,e.point.y))}),t},e.prototype.getModuleName=function(){return"DataLabel"},e.prototype.destroy=function(){this.dataLabelCollections=[],this.value=null,this.maps=null},e}()},function(e,t,i){"use strict";i.d(t,"a",function(){return l});var n=i(2),o=i(0),a=i(1),r=(i.n(a),i(4)),l=function(){function e(e){this.legendBorderRect=new o.I(0,0,0,0),this.initialMapAreaRect=new o.I(0,0,0,0),this.legendTotalRect=new o.I(0,0,0,0),this.totalPages=[],this.page=0,this.currentPage=0,this.legendItemRect=new o.I(0,0,0,0),this.heightIncrement=0,this.widthIncrement=0,this.textMaxWidth=0,this.shapeHighlightCollection=[],this.legendHighlightCollection=[],this.shapePreviousColor=[],this.selectedNonLegendShapes=[],this.shapeToggled=!0,this.legendElement=null,this.maps=e,this.addEventListener()}return e.prototype.renderLegend=function(){this.legendRenderingCollections=[],this.legendCollection=[],this.totalPages=[],this.widthIncrement=0,this.heightIncrement=0,this.defsElement=this.maps.renderer.createDefs(),this.maps.svgObject.appendChild(this.defsElement),this.initialMapAreaRect=this.maps.mapAreaRect,this.calculateLegendBounds(),this.drawLegend()},e.prototype.calculateLegendBounds=function(){var e=this,t=this.maps,r=t.legendSettings;this.legendCollection=[];var l=t.mapAreaRect.y;if(this.legendRenderingCollections=[],Array.prototype.forEach.call(t.layersCollection,function(t,n){if(!i.i(a.isNullOrUndefined)(t.shapeData)){var o=t.shapeData.features,l=t.shapeDataPath,s=t.shapePropertyPath,d=t.dataSource,p=void 0,h=void 0;if("Layers"===r.type&&t.visible)p=t.shapeSettings.colorValuePath,h=t.shapeSettings.colorMapping,e.getLegends(n,o,h,d,l,p,s);else if("Bubbles"===r.type)for(var c=0,u=t.bubbleSettings;c<u.length;c++){var m=u[c];m.visible&&(p=m.colorValuePath,h=m.colorMapping,d=m.dataSource,e.getLegends(n,o,h,d,l,p,s))}}"Markers"===r.type&&e.getMarkersLegendCollections(n,t.markerSettings)}),this.legendCollection.length>0)for(var s=0;s<this.legendCollection.length;s++){var d=this.legendCollection[s],p={name:n.D,cancel:!1,fill:d.fill,shape:r.shape,shapeBorder:r.shapeBorder,text:"number"==typeof d.text?d.text.toString():d.text};t.trigger("legendRendering",p),d.fill=p.fill,d.shape=p.shape,d.shapeBorder=p.shapeBorder,d.text=p.text,p.cancel&&(this.legendCollection.splice(s,1),s--)}var h=t.legendSettings.title.text,c=t.legendSettings.titleStyle;if(this.legendCollection.length>0){var u,m,g=r.mode,y=0,f=0,b=0,v=0,S=r.shapePadding,_=r.shapeHeight,x=r.shapeWidth,O=[],M=[],C=r.position,L=r.labelDisplayMode,P="None"===r.orientation?"Top"===C||"Bottom"===C?"Horizontal":"Vertical":r.orientation,w=r.width.length>1?r.width.indexOf("%")>-1?t.availableSize.width/100*parseInt(r.width,10):parseInt(r.width,10):null,T=r.height.length>1?r.height.indexOf("%")>-1?t.availableSize.height/100*parseInt(r.height,10):parseInt(r.height,10):null,I=0,k=0,N=i.i(o.w)(h,c);if("Interactive"===g){var E=r.textStyle,F=this.legendCollection.length,z="Horizontal"===P?i.i(a.isNullOrUndefined)(w)?t.mapAreaRect.width/F:w/F:i.i(a.isNullOrUndefined)(w)?25:w,A="Horizontal"===P?i.i(a.isNullOrUndefined)(T)?25:T:i.i(a.isNullOrUndefined)(T)?t.mapAreaRect.height/F:T/F;I=0,k=N.height+10;for(var B=r.labelPosition,U=0,j=0,Z=0,R=0,D=0,V=0,s=0;s<this.legendCollection.length;s++){I="Horizontal"===P?I+z:I,k="Horizontal"===P?k:k+A;var G=this.legendCollection[s].text,H=new o.a(0,0);"None"===L?H=i.i(o.w)(G,E):"Trim"===L?(G=i.i(o._25)("Horizontal"===P?z:A,G,E),H=i.i(o.w)(G,E)):G="",D=Math.max(D,H.height),V=Math.max(V,H.width),H.width>0&&H.height>0&&("Horizontal"===P?(U=I+z/2,j="After"===B?k+A+H.height/2+10:k-10):(U="After"===B?I-H.width/2-10:I+z+H.width/2+10,j=k+A/2+H.height/4)),0===s?(Z="Horizontal"===P?I:"After"===B?U-H.width/2:I,R="Horizontal"===P?"After"===B?k:j-H.height/2:k,1===this.legendCollection.length&&(w="Horizontal"===P?Math.abs(I+z-Z):z+V+10,T="Horizontal"===P?A+D/2+10:Math.abs(k+A-R))):s===this.legendCollection.length-1&&(w="Horizontal"===P?Math.abs(I+z-Z):z+V+10,T="Horizontal"===P?A+D/2+10:Math.abs(k+A-R)),this.legendRenderingCollections.push({fill:this.legendCollection[s].fill,x:I,y:k,width:z,height:A,text:G,textX:U,textY:j,textWidth:H.width,textHeight:H.height,shapeBorder:this.legendCollection[s].shapeBorder})}1===this.legendCollection.length&&(T=A,w=z),this.legendItemRect={x:Z,y:R,width:w,height:T}}else{w=i.i(a.isNullOrUndefined)(w)?t.mapAreaRect.width:w,T=i.i(a.isNullOrUndefined)(T)?t.mapAreaRect.height:T;var W=0;this.page=0;for(var s=0;s<this.legendCollection.length;s++){var d=this.legendCollection[s];i.i(a.isNullOrUndefined)(this.totalPages[this.page])&&(this.totalPages[this.page]={Page:this.page+1,Collection:[]});var q=i.i(o.w)(d.text,r.textStyle);if(this.textMaxWidth=Math.max(this.textMaxWidth,q.width),0===s)I=y=10+x/2,k=f=l+N.height+(_>q.height?_/2:q.height/4);else{var X=q.height>_?q.height:_;if("Horizontal"===P){var Y=M[W-1].x+M[W-1].width+10+x;if(Y+S+q.width>w){var Q=(M[W-1].y>O[W-1].y+_/2?M[W-1].y:O[W-1].y+_/2)+l;Q+X>T?(this.getPageChanged(),W=0,O=[],M=[],y=I,f=k):(y=O[0].x,f=Q+X/2)}else y=Y-x/2,f=O[W-1].y}else{var J=M[W-1].y>O[W-1].y+_/2?M[W-1].y:O[W-1].y+_/2;if(J+l+X>T){var K=M[W-1].x+this.textMaxWidth+10;K+S+q.width>w?(y=I,f=k,M=[],O=[],this.getPageChanged(),W=0):(y=K+x/2,f=O[0].y)}else{y=O[W-1].x,f=J+10+_/2}}}b=y+x/2+S,v=f+q.height/4,O.push({x:y,y:f}),M.push({x:b,y:v,width:q.width,height:q.height/2}),this.totalPages[this.page].Collection.push({DisplayText:d.text,ImageSrc:d.imageSrc,Shape:{x:y,y:f},Text:{x:b,y:v},Fill:d.fill,legendShape:d.shape,shapeBorder:d.shapeBorder,idIndex:s,Rect:{x:O[W].x-x/2,y:O[W].y-_/2<v-q.height?O[W].y-_/2:v-q.height,width:Math.abs(O[W].x-x/2-(b+q.width)),height:_>q.height?_:q.height}}),W++}var $=this.totalPages[0].Collection;Array.prototype.forEach.call($,function(t,i){var n=new o.I(t.Rect.x,t.Rect.y,t.Rect.width,t.Rect.height);0===i&&(u=n.x,m=n.y),e.widthIncrement=Math.max(e.widthIncrement,Math.abs(u-(n.x+n.width))),e.heightIncrement=Math.max(e.heightIncrement,Math.abs(m-(n.y+n.height)))}),w=this.widthIncrement<w?this.widthIncrement:w,T=this.heightIncrement<T?this.heightIncrement:T,this.legendItemRect={x:$[0].Rect.x,y:$[0].Rect.y,width:w,height:T}}}},e.prototype.getLegends=function(e,t,i,n,o,a,r){this.getRangeLegendCollection(e,t,i,n,o,a,r),this.getEqualLegendCollection(e,t,i,n,o,a,r),this.getDataLegendCollection(e,t,i,n,o,a,r)},e.prototype.getPageChanged=function(){this.page++,i.i(a.isNullOrUndefined)(this.totalPages[this.page])&&(this.totalPages[this.page]={Page:this.page+1,Collection:[]})},e.prototype.legendTextTrim=function(e,t,n,a){var r=t,l=i.i(o.w)(t,n).width,s=a-l;if(a>e)for(var d=t.length,p=d-1;p>=0;--p){r=t.substring(0,p)+"...",l=i.i(o.w)(r,n).width;var h=s+l;if(h<=e||r.length<4)return r.length<4&&(r=" "),r}return r},e.prototype.drawLegend=function(){var e,t=this.maps,n=t.legendSettings,r=t.renderer,l={size:n.textStyle.size,color:n.textStyle.color,fontFamily:n.textStyle.fontFamily,fontWeight:n.textStyle.fontWeight,fontStyle:n.textStyle.fontStyle,opacity:n.textStyle.opacity};if(this.legendGroup=r.createGroup({id:t.element.id+"_Legend_Group"}),"Interactive"===n.mode)for(var s=0;s<this.legendRenderingCollections.length;s++){var d=t.element.id+"_Legend_Index_"+s,p=t.element.id+"_Legend_Index_"+s+"_Text",h=this.legendRenderingCollections[s],c=new o.I(h.x,h.y,h.width,h.height);0===s&&this.renderLegendBorder();var u=new o.s(h.textX,h.textY);l.color=null!==l.color?l.color:this.maps.themeStyle.legendTextColor;var m=new o.B(d,h.fill,h.shapeBorder,n.opacity,c);e=new o.y(p,u.x,u.y,"middle",h.text,"",""),l.fontFamily=i.i(a.isNullOrUndefined)(l.fontFamily)?this.maps.themeStyle.fontFamily:l.fontFamily,l.size=t.themeStyle.legendFontSize||l.size;var g=i.i(o.K)(e,l,l.color,this.legendGroup);g.setAttribute("aria-label",h.text),g.setAttribute("role","region"),this.legendGroup.appendChild(r.drawRectangle(m)),this.legendToggle()}else this.drawLegendItem(this.currentPage)},e.prototype.drawLegendItem=function(e){var t,n=this.maps,r=n.legendSettings,l=new o.a(r.shapeWidth,r.shapeHeight),s=n.renderer,d=r.shape;if(e>=0&&e<this.totalPages.length){i.i(o._40)(this.legendGroup.id,this.maps.element.id)&&i.i(a.remove)(i.i(o._40)(this.legendGroup.id,this.maps.element.id));for(var p=0;p<this.totalPages[e].Collection.length;p++){var h=this.totalPages[e].Collection[p],c=h.shapeBorder,u=s.createGroup({id:n.element.id+"_Legend_Index_"+h.idIndex}),m=h.DisplayText,g="HorizontalLine"===r.shape||"VerticalLine"===r.shape||"Cross"===r.shape?i.i(a.isNullOrUndefined)(r.fill)?"#000000":r.fill:c.color,y=("HorizontalLine"===r.shape||"VerticalLine"===r.shape||"Cross"===r.shape)&&0===c.width?1:c.width,f=n.element.id+"_Legend_Shape_Index_"+h.idIndex,b=n.element.id+"_Legend_Text_Index_"+h.idIndex,v=new o.s(h.Shape.x,h.Shape.y-4),S=new o.s(h.Text.x,h.Text.y-4),_=new o.z(f,h.Fill,y,g,r.opacity,i.i(a.isNullOrUndefined)(c.opacity)?r.opacity:c.opacity,""),x={fontFamily:r.textStyle.fontFamily,fontStyle:r.textStyle.fontStyle,fontWeight:r.textStyle.fontWeight,size:r.textStyle.size,color:r.textStyle.color,opacity:r.textStyle.opacity};if(x.color=null!==x.color?x.color:this.maps.themeStyle.legendTextColor,x.fontFamily=i.i(a.isNullOrUndefined)(x.fontFamily)?this.maps.themeStyle.fontFamily:x.fontFamily,x.size=n.themeStyle.legendFontSize||x.size,x.fontWeight=x.fontWeight||n.themeStyle.fontWeight,0===p&&this.renderLegendBorder(),"Markers"===r.type&&r.useMarkerShape){var O=this.legendCollection[h.idIndex].data[0],M=n.layers[O.layerIndex].markerSettings[O.markerIndex];d=i.i(a.isNullOrUndefined)(M.dataSource[O.dataIndex][M.shapeValuePath])||""===M.dataSource[O.dataIndex][M.shapeValuePath]?M.shape:M.dataSource[O.dataIndex][M.shapeValuePath]}"Balloon"===d?u.appendChild(i.i(o._16)(n,_,l,{x:v.x,y:v.y+5},"Legend")):u.appendChild(i.i(o._52)(v,d,l,h.ImageSrc,_));var C=h.Rect.x+h.Rect.width;if(C>this.legendBorderRect.width){m=this.legendTextTrim(this.legendBorderRect.width,m,x,C)}t=new o.y(b,S.x,S.y,"start",m,"","");var L=i.i(o.K)(t,x,x.color,u);if(L.setAttribute("aria-label",m),L.setAttribute("role","region"),this.legendGroup.appendChild(u),p===this.totalPages[e].Collection.length-1){var P=void 0;if(0!==this.page){var w=e+1+"/"+this.totalPages.length,T=r.textStyle,I=i.i(o.w)(w,T),k=this.legendItemRect.x+this.legendItemRect.width-I.width-20-20+2,N=this.legendItemRect.x+this.legendItemRect.width,E=N-10-I.width/2-5-4,F=this.legendItemRect.y+this.legendItemRect.height+2.5+10;P=s.createGroup({id:n.element.id+"_Legend_Paging_Group"});var z=s.createGroup({id:n.element.id+"_Legend_Left_Paging_Group"}),A=s.createGroup({id:n.element.id+"_Legend_Right_Paging_Group"}),B=" M "+N+" "+F+" L "+(N-10)+" "+(F-5)+" L "+(N-10)+" "+(F+5)+" z ",U=" M "+k+" "+F+" L "+(k+10)+" "+(F-5)+" L "+(k+10)+" "+(F+5)+" z ",j=new o.z(n.element.id+"_Left_Page",this.maps.themeStyle.legendTextColor,0,this.maps.themeStyle.legendTextColor,e+1===1?.5:1,1,"",U);z.appendChild(s.drawPath(j));var Z=new o.B(n.element.id+"_Left_Page_Rect","transparent",{},1,new o.I(k-5,F-10,20,20),null,null,"",""),R=s.drawRectangle(Z);R.setAttribute("aria-label","Navigate to the previous legend items"),R.setAttribute("role","button"),R.tabIndex=e+1===1?-1:n.tabIndex,e+1===1?(R.style.cursor="default",R.style.setProperty("outline","none")):(R.style.cursor="pointer",R.style.removeProperty("outline")),z.appendChild(R),this.wireEvents(z);var D=new o.z(n.element.id+"_Right_Page",this.maps.themeStyle.legendTextColor,0,this.maps.themeStyle.legendTextColor,e+1===this.totalPages.length?.5:1,1,"",B);A.appendChild(s.drawPath(D));var V=new o.B(n.element.id+"_Right_Page_Rect","transparent",{},1,new o.I(N-10-5,F-10,20,20),null,null,"","");R=s.drawRectangle(V),R.setAttribute("aria-label","Navigate to the next legend items"),R.setAttribute("role","button"),R.tabIndex=e+1===this.totalPages.length?-1:n.tabIndex,e+1===this.totalPages.length?(R.style.cursor="default",R.style.setProperty("outline","none")):(R.style.cursor="pointer",R.style.removeProperty("outline")),A.appendChild(R),this.wireEvents(A),P.appendChild(z),P.appendChild(A);var G={id:n.element.id+"_Paging_Text",x:E,y:F+I.height/4,fill:this.maps.themeStyle.legendTextColor,"font-size":"14px","font-style":T.fontStyle,"font-family":T.fontFamily,"font-weight":T.fontWeight,"text-anchor":"middle",transform:"",opacity:1,"dominant-baseline":""},H=s.createText(G,w);H.style.cssText="user-select: none;",H.setAttribute("aria-label",w),H.setAttribute("role","region"),P.appendChild(H),this.legendGroup.appendChild(P)}this.legendToggle()}}}},e.prototype.legendHighLightAndSelection=function(e,t){var n,o,r,l,s,d=this.maps.legendSettings,p="Default"===d.mode?document.getElementById(e.id.replace("Shape","Text")):document.getElementById(e.id+"_Text"),h=this.maps.legendModule.legendCollection,c=!i.i(a.isNullOrUndefined)(h[0].data[0].layerIndex)&&this.maps.layers[h[0].data[0].layerIndex].selectionSettings.enableMultiSelect,u=0,m=!0,g=parseFloat(e.id.charAt(e.id.length-1));this.updateLegendElement();var y=this.maps.toggledLegendId.indexOf(g);if(this.maps.legendSettings.toggleLegendSettings.enable&&"highlight"===t&&-1!==y){var f=this.getIndexofLegend(this.legendHighlightCollection,e);return-1!==f&&this.legendHighlightCollection.splice(f,1),this.removeLegendHighlightCollection(),null}if("selection"===t){if(this.shapeHighlightCollection=[],this.maps.shapeSelections||c||(this.removeAllSelections(),this.maps.shapeSelections=!0),this.maps.legendSelectionCollection.length>0&&(c||this.maps.shapeSelections))for(var b=0;b<this.maps.legendSelectionCollection.length;b++){if(e===this.maps.legendSelectionCollection[b].legendElement){this.maps.legendSelectionCollection[b].legendElement=e,m=!1,this.removeLegendSelectionCollection(this.maps.legendSelectionCollection[b].legendElement),this.maps.selectedLegendElementId.splice(this.maps.selectedLegendElementId.indexOf(g),1),this.maps.legendSelectionCollection.splice(b,1),this.maps.legendSelection=!(this.maps.legendSelectionCollection.length>0);break}if(!c)if(this.maps.legendSelectionCollection.length>1){for(var v=0;v<this.maps.legendSelectionCollection.length;v++)this.removeLegendSelectionCollection(this.maps.legendSelectionCollection[v].legendElement);this.maps.legendSelectionCollection=[]}else this.removeLegendSelectionCollection(this.maps.legendSelectionCollection[b].legendElement),this.maps.legendSelectionCollection.splice(b,1)}}else{if(this.maps.legendSelectionCollection.length>0)for(var b=0;b<this.maps.legendSelectionCollection.length;b++){if((e.id.indexOf("_Legend_Shape")>-1||e.id.indexOf("_Legend_Index"))&&e===this.maps.legendSelectionCollection[b].legendElement){m=!1;break}this.removeLegendHighlightCollection()}this.removeLegendHighlightCollection()}if(m)for(var S=0;S<h.length;S++){var _="Interactive"===this.maps.legendSettings.mode?parseFloat(e.id.split("_Legend_Index_")[1]):parseFloat(e.id.split("_Legend_Shape_Index_")[1]);if(p.textContent===h[S].text&&h[S].data.length>0&&_===S){var x=this.maps.layers[h[S].data[0].layerIndex],O=void 0,M=void 0,C=void 0;if(i.i(a.isNullOrUndefined)(x)||(O="selection"===t?x.selectionSettings.enable:x.highlightSettings.enable,M=void 0,M="selection"===t?x.selectionSettings:x.highlightSettings,C=h[S].data),O)for(var L=0;L<C.length;L++){var P=void 0;if(n=C[L].shapeIndex,o=C[L].layerIndex,r=C[L].dataIndex,l=C[L].pointIndex,null!==(P=-1===l?document.getElementById(this.maps.element.id+"_LayerIndex_"+o+"_shapeIndex_"+n+"_dataIndex_"+r):document.getElementById(this.maps.element.id+"_LayerIndex_"+o+"_shapeIndex_"+n+"_dataIndex_"+r+"_multiLine_"+l))){var w=!0;if(null!==this.maps.legendSelectionCollection)for(var T=0;T<this.maps.legendSelectionCollection.length;T++)if(this.maps.legendSelectionCollection[T].legendElement===e){w=!1;break}if("highlight"===t&&w){0===L&&(this.legendHighlightCollection=[],this.pushCollection(e,this.legendHighlightCollection,h[S],x.shapeSettings)),s=this.legendHighlightCollection.length;var I=this.legendHighlightCollection[s-1].legendOldFill;this.legendHighlightCollection[s-1].MapShapeCollection.Elements.push(P);var k=this.legendHighlightCollection[s-1].MapShapeCollection.Elements.length-1,N=P.getAttribute("fill"),E=P.getAttribute("fill-opacity");this.legendHighlightCollection[s-1].shapeOldFillColor.push(N),this.legendHighlightCollection[s-1].shapeOldOpacity=E;var F=this.legendHighlightCollection[s-1].shapeOldFillColor[k],z=this.legendHighlightCollection[s-1].shapeOldOpacity;this.shapePreviousColor=this.legendHighlightCollection[s-1].shapeOldFillColor,this.setColor(P,i.i(a.isNullOrUndefined)(M.fill)?F:M.fill,i.i(a.isNullOrUndefined)(M.opacity)?z:M.opacity.toString(),M.border.color,M.border.width.toString(),"highlight"),this.setColor(e,i.i(a.isNullOrUndefined)(M.fill)?I:M.fill,i.i(a.isNullOrUndefined)(M.opacity)?z:M.opacity.toString(),M.border.color,M.border.width.toString(),"highlight")}else if("selection"===t){this.legendHighlightCollection=[],this.maps.legendSelectionClass=M,0===L&&(this.pushCollection(e,this.maps.legendSelectionCollection,h[S],x.shapeSettings),c?this.maps.selectedLegendElementId.push(S):0===this.maps.selectedLegendElementId.length?this.maps.selectedLegendElementId.push(S):(this.maps.selectedLegendElementId=[],this.maps.selectedLegendElementId.push(S))),u=this.maps.legendSelectionCollection.length;var A=this.maps.legendSelectionCollection[u-1].legendOldFill;this.maps.legendSelectionCollection[u-1].MapShapeCollection.Elements.push(P),this.maps.legendSelectionCollection[u-1].shapeOldFillColor=this.shapePreviousColor,this.setColor(e,i.i(a.isNullOrUndefined)(M.fill)?A:M.fill,M.opacity.toString(),M.border.color,M.border.width.toString(),"selection"),this.setColor(P,i.i(a.isNullOrUndefined)(M.fill)?A:M.fill,M.opacity.toString(),M.border.color,M.border.width.toString(),"selection"),-1===this.maps.selectedElementId.indexOf(P.getAttribute("id"))&&this.maps.selectedElementId.push(P.getAttribute("id")),L===C.length-1&&(this.maps.legendSelection=!1,this.removeLegend(this.maps.legendSelectionCollection))}}}}}},e.prototype.setColor=function(e,t,n,a,r,l){var s=e.parentElement.id.indexOf("LineString")>-1;"selection"===l?(i.i(o._1)(s?"LineselectionMap":"ShapeselectionMap",s?"LineselectionMapStyle":"ShapeselectionMapStyle",s?"transparent":t,n,s?t:a,r,this.maps),e.setAttribute("class",s?"LineselectionMapStyle":"ShapeselectionMapStyle")):(e.setAttribute("fill",s?"transparent":t),e.setAttribute("fill-opacity",n),e.setAttribute("stroke",s?t:a),e.setAttribute("stroke-width",(Number(r)/this.maps.scale).toString()))},e.prototype.pushCollection=function(e,t,i,n){t.push({legendElement:e,legendOldFill:i.fill,legendOldOpacity:i.opacity,legendOldBorderColor:i.borderColor,legendOldBorderWidth:i.borderWidth,shapeOpacity:n.opacity,shapeOldBorderColor:n.border.color,shapeOldBorderWidth:n.border.width});var o=t.length;t[o-1].MapShapeCollection={Elements:[]},t[o-1].shapeOldFillColor=[],t[o-1].shapeOldOpacity=null},e.prototype.removeLegend=function(e){for(var t=0;t<e.length;t++){var n=e[t];this.setColor(n.legendElement,n.legendOldFill,n.legendOldOpacity,n.legendOldBorderColor,n.legendOldBorderWidth,"highlight");for(var o=n.MapShapeCollection.Elements.length,r=0;r<o;r++){var l=-1!==n.legendOldFill.indexOf("url")?n.shapeOldFillColor[r]:n.legendOldFill,s=i.i(a.isNullOrUndefined)(n.shapeOldOpacity)?n.shapeOpacity:n.shapeOldOpacity;this.setColor(n.MapShapeCollection.Elements[r],l,s,n.shapeOldBorderColor,n.shapeOldBorderWidth,"highlight")}}},e.prototype.removeLegendHighlightCollection=function(){this.legendHighlightCollection.length>0&&(this.removeLegend(this.legendHighlightCollection),this.legendHighlightCollection=[])},e.prototype.removeLegendSelectionCollection=function(e){if(this.maps.legendSelectionCollection.length>0){i.i(o._45)(e);for(var t=this.shapesOfLegend(e),n=t.length,a=0;a<n;a++){var r=i.i(o._36)(t[a]);if("ShapeselectionMapStyle"===r.getAttribute("class")||"LineselectionMapStyle"===r.getAttribute("class")){i.i(o._45)(r);var l=this.maps.selectedElementId.indexOf(r.id);-1!==l&&this.maps.selectedElementId.splice(l,1)}}}},e.prototype.removeShapeHighlightCollection=function(){if(this.shapeHighlightCollection.length>0)for(var e=0;e<this.shapeHighlightCollection.length;e++){for(var t=this.shapeHighlightCollection[e],i=!0,n=0;n<this.maps.legendSelectionCollection.length;n++)this.maps.legendSelectionCollection[n].legendElement===t.legendElement&&(i=!1);i&&this.setColor(t.legendElement,t.legendOldFill,t.legendOldOpacity,t.legendOldBorderColor,t.legendOldBorderWidth,"highlight")}},e.prototype.shapeHighLightAndSelection=function(e,t,n,r,l){if(void 0!==t){this.updateLegendElement(),this.shapeToggled=!0;var s=this.maps.legendModule.legendCollection,d=this.legendIndexOnShape(t,l),p=this.shapeDataOnLegend(e),h=this.maps.toggledLegendId.indexOf(d.actualIndex);if(this.maps.legendSettings.toggleLegendSettings.enable&&-1!==h){this.shapeToggled=!1,this.legendHighlightCollection=[];var c=this.getIndexofLegend(this.shapeHighlightCollection,p.LegendEle);return-1!==c&&this.shapeHighlightCollection.splice(c,1),this.removeShapeHighlightCollection(),null}if(void 0===d.currentIndex&&void 0===d.actualIndex)return this.removeShapeHighlightCollection(),null;if(void 0!==d.currentIndex||"selection"!==r||this.maps.layers[l].selectionSettings.enableMultiSelect||"ShapeselectionMapStyle"===e.getAttribute("class")||(this.maps.legendSelection=!1),"selection"!==r||this.maps.layers[l].selectionSettings.enableMultiSelect||this.maps.legendSelection||(this.removeAllSelections(),this.maps.legendSelection=!0),void 0===d.currentIndex){if("selection"===r&&void 0!==d.actualIndex){for(var u=0,m=0;m<p.Elements.length;m++)"ShapeselectionMapStyle"===p.Elements[m].getAttribute("class")&&u++;var g=this.maps.selectedLegendElementId.indexOf(d.actualIndex);-1===g?(this.maps.selectedLegendElementId.push(d.actualIndex),this.maps.legendSelectionClass=n):u<=1&&("ShapeselectionMapStyle"===e.getAttribute("class")||"LineselectionMapStyle"===e.getAttribute("class"))&&(this.maps.layers[l].selectionSettings.enableMultiSelect?u<=1&&("ShapeselectionMapStyle"===e.getAttribute("class")||"LineselectionMapStyle"===e.getAttribute("class"))&&this.maps.selectedLegendElementId.splice(g,1):this.maps.selectedLegendElementId.splice(g,1))}return this.removeShapeHighlightCollection(),null}var y=s[d.actualIndex].text,f=void 0,b=void 0;"Default"===this.maps.legendSettings.mode?void 0!==d.currentIndex&&(f=document.getElementById(this.maps.element.id+"_Legend_Text_Index_"+d.actualIndex).textContent,b=document.getElementById(this.maps.element.id+"_Legend_Shape_Index_"+d.actualIndex)):(f=document.getElementById(this.maps.element.id+"_Legend_Index_"+d.actualIndex+"_Text").textContent,b=document.getElementById(this.maps.element.id+"_Legend_Index_"+d.actualIndex)),this.oldShapeElement=p.LegendEle;var v=this.maps.legendSelectionCollection.length;if(y===f){var S=!0;if(this.maps.legendSelectionCollection)for(var m=0;m<this.maps.legendSelectionCollection.length;m++)if(this.maps.legendSelectionCollection[m].legendElement===p.LegendEle){S=!1;break}if("highlight"===r&&S){var _=this.isTargetSelected(p,this.shapeHighlightCollection);(void 0===_||_&&!_.IsSelected)&&this.pushCollection(b,this.shapeHighlightCollection,s[d.actualIndex],this.maps.layers[l].shapeSettings);for(var x=0;x<this.shapeHighlightCollection.length;x++)p.LegendEle.id===this.shapeHighlightCollection[x].legendElement.id&&(this.shapeHighlightCollection[x].legendElement=p.LegendEle);if(v>0)for(var x=0;x<v;x++){if(p.LegendEle===this.maps.legendSelectionCollection[x].legendElement){this.maps.legendSelectionCollection[x].legendElement=p.LegendEle,this.removeShapeHighlightCollection();break}x===v-1&&(this.removeShapeHighlightCollection(),this.setColor(b,i.i(a.isNullOrUndefined)(n.fill)?b.getAttribute("fill"):n.fill,n.opacity.toString(),n.border.color,n.border.width.toString(),"highlight"))}else this.removeShapeHighlightCollection(),this.setColor(b,i.i(a.isNullOrUndefined)(n.fill)?b.getAttribute("fill"):n.fill,n.opacity.toString(),n.border.color,n.border.width.toString(),"highlight")}else if("selection"===r){var _=this.isTargetSelected(p,this.maps.legendSelectionCollection);if(v>0)for(var x=0;x<this.maps.legendSelectionCollection.length;)if(p.LegendEle===this.maps.legendSelectionCollection[x].legendElement||n.enableMultiSelect)x++;else{var O=this.maps.legendSelectionCollection[x],M=this.maps.selectedLegendElementId.indexOf(d.actualIndex);this.maps.selectedLegendElementId.splice(M,1),this.maps.legendSelectionCollection.splice(x,1),i.i(o._45)(O.legendElement),this.maps.shapeSelections=!0,x=0}if(_&&_.IsSelected&&("ShapeselectionMapStyle"===e.getAttribute("class")||"LineselectionMapStyle"===e.getAttribute("class"))){var C=0;if(n.enableMultiSelect)for(var m=0;m<p.Elements.length;m++)e.getAttribute("class")===p.Elements[m].getAttribute("class")&&C++;C<=1&&(n.enableMultiSelect||this.maps.legendSelection)&&(this.maps.selectedLegendElementId.splice(this.maps.selectedLegendElementId.indexOf(d.actualIndex),1),i.i(a.isNullOrUndefined)(p.LegendEle)||i.i(o._45)(p.LegendEle),this.maps.legendSelectionCollection.splice(_.SelectionIndex,1),this.maps.shapeSelections=!0)}else{if((void 0===_||_&&!_.IsSelected)&&!i.i(a.isNullOrUndefined)(b)){var L=this.getIndexofLegend(this.maps.legendSelectionCollection,b);-1===L&&this.pushCollection(b,this.maps.legendSelectionCollection,s[d.actualIndex],this.maps.layers[l].shapeSettings)}for(var P=!0,m=0;m<this.maps.selectedLegendElementId.length;m++)d.actualIndex===this.maps.selectedLegendElementId[m]&&(P=!1);if(P&&this.maps.selectedLegendElementId.push(d.actualIndex),this.maps.legendSelectionClass=n,this.removeLegend(this.shapeHighlightCollection),!i.i(a.isNullOrUndefined)(b)){this.setColor(b,i.i(a.isNullOrUndefined)(n.fill)?b.getAttribute("fill"):n.fill,n.opacity.toString(),n.border.color,n.border.width.toString(),"selection");var L=this.getIndexofLegend(this.maps.legendSelectionCollection,b);this.maps.legendSelectionCollection[L].MapShapeCollection.Elements.push(e)}this.maps.shapeSelections=!1}}else document.getElementsByClassName("highlightMapStyle").length>0&&(this.removeShapeHighlightCollection(),i.i(o._45)(document.getElementsByClassName("highlightMapStyle")[0]))}}else this.removeShapeHighlightCollection()},e.prototype.isTargetSelected=function(e,t){for(var n,o=0;o<t.length;o++)i.i(a.isNullOrUndefined)(e.LegendEle.getAttribute("id"))||e.LegendEle.getAttribute("id")!==t[o].legendElement.getAttribute("id")||(n={IsSelected:!0,SelectionIndex:o});return n},e.prototype.updateLegendElement=function(){for(var e=0;e<this.maps.legendSelectionCollection.length;e++)document.getElementById(this.maps.legendSelectionCollection[e].legendElement.id)&&(this.maps.legendSelectionCollection[e].legendElement=document.getElementById(this.maps.legendSelectionCollection[e].legendElement.id))},e.prototype.getIndexofLegend=function(e,t){return e.map(function(e){return e.legendElement}).indexOf(t)},e.prototype.removeAllSelections=function(){for(var e=0;e<this.maps.selectedElementId.length;e++){var t=document.getElementById(this.maps.selectedElementId[e]);i.i(o._45)(t)}for(var n=0;n<this.maps.selectedLegendElementId.length;n++){var r="Interactive"===this.maps.legendSettings.mode?this.maps.element.id+"_Legend_Index_":this.maps.element.id+"_Legend_Shape_Index_",t=r+this.maps.selectedLegendElementId[n],l=document.getElementById(t);i.i(a.isNullOrUndefined)(l)||i.i(o._45)(document.getElementById(t))}this.maps.legendSelectionCollection=[],this.maps.selectedLegendElementId=[],this.maps.selectedElementId=[]},e.prototype.legendIndexOnShape=function(e,t){var n,o,r,l=this.maps.layers[t].shapeDataPath,s=e[l],d=this.maps.legendSettings.mode,p=this.maps.legendModule.legendCollection;"Default"!==d||i.i(a.isNullOrUndefined)(this.maps.legendModule.totalPages)||(r=this.maps.legendModule.totalPages[this.maps.legendModule.currentPage].Collection);for(var h="Default"===d?r.length:1,c=0;c<p.length;c++){for(var u=p[c].data,m=0;m<h;m++)if("Default"!==d||p[c].text===r[m].DisplayText)for(var g=0;g<u.length;g++)s===u[g].name&&(n=m);for(var g=0;g<u.length;g++)s===u[g].name&&(o=c)}return{currentIndex:n,actualIndex:o}},e.prototype.shapeDataOnLegend=function(e){for(var t,n,o,r,l=this.maps.legendModule.legendCollection,s=this.maps.legendSettings,d=0;d<l.length;d++){for(var p=l[d].data,h=!1,c=[],u={Elements:[]},m=0;m<p.length;m++){var g=void 0;t=p[m].shapeIndex,n=p[m].layerIndex,o=p[m].dataIndex,r=p[m].pointIndex,g=-1===r?document.getElementById(this.maps.element.id+"_LayerIndex_"+n+"_shapeIndex_"+t+"_dataIndex_"+o):document.getElementById(this.maps.element.id+"_LayerIndex_"+n+"_shapeIndex_"+t+"_dataIndex_"+o+"_multiLine_"+r),e===g&&(h=!0),c.push(g)}if(h)return i.i(a.isNullOrUndefined)(u.LegendEle)&&(u.LegendEle="Default"===s.mode?document.getElementById(this.maps.element.id+"_Legend_Shape_Index_"+d):document.getElementById(this.maps.element.id+"_Legend_Index_"+d)),u.Elements=c,u}return null},e.prototype.shapesOfLegend=function(e){for(var t,n,o,r,l=parseFloat(e.id.charAt(e.id.length-1)),s=this.maps.legendModule.legendCollection[l].data,d=[],p=0;p<s.length;p++){var h=void 0;t=s[p].shapeIndex,n=s[p].layerIndex,o=s[p].dataIndex,r=s[p].pointIndex,h=-1===r?document.getElementById(this.maps.element.id+"_LayerIndex_"+n+"_shapeIndex_"+t+"_dataIndex_"+o):document.getElementById(this.maps.element.id+"_LayerIndex_"+n+"_shapeIndex_"+t+"_dataIndex_"+o+"_multiLine_"+r),i.i(a.isNullOrUndefined)(h)||d.push(h.id)}return d},e.prototype.legendToggle=function(){var e=this.maps,t=e.legendSettings;if(this.maps.selectedLegendElementId)for(var n=0;n<this.maps.selectedLegendElementId.length;n++){var o="Interactive"===t.mode?this.maps.element.id+"_Legend_Index_":this.maps.element.id+"_Legend_Shape_Index_",r=e.svgObject.querySelector("#"+o+this.maps.selectedLegendElementId[n]);if(!i.i(a.isNullOrUndefined)(r)){var l=i.i(a.isNullOrUndefined)(this.maps.legendSelectionClass.fill)?r.getAttribute("fill"):this.maps.legendSelectionClass.fill;this.setColor(r,l,this.maps.legendSelectionClass.opacity.toString(),this.maps.legendSelectionClass.border.color,this.maps.legendSelectionClass.border.width.toString(),"selection");for(var s=0;s<this.maps.legendSelectionCollection.length;s++)this.maps.legendSelectionCollection[s].legendElement.id===r.id&&(this.maps.legendSelectionCollection[s].legendElement=r);var d=this.getIndexofLegend(this.maps.legendSelectionCollection,r);if(-1===d){var p=this.maps.legendModule.legendCollection[this.maps.selectedLegendElementId[n]].data[n].layerIndex;this.pushCollection(r,this.maps.legendSelectionCollection,this.maps.legendModule.legendCollection[this.maps.selectedLegendElementId[n]],this.maps.layers[p].shapeSettings)}}}if(this.maps.toggledLegendId)for(var n=0;n<this.maps.toggledLegendId.length;n++){var h="Interactive"===t.mode?"#"+this.maps.element.id+"_Legend_Index_"+this.maps.toggledLegendId[n]+"_Text":"#"+this.maps.element.id+"_Legend_Text_Index_"+this.maps.toggledLegendId[n],c=e.svgObject.querySelector(h);i.i(a.isNullOrUndefined)(c)||c.setAttribute("fill","#E5E5E5");var u="Interactive"===t.mode?"#"+this.maps.element.id+"_Legend_Index_"+this.maps.toggledLegendId[n]:"#"+this.maps.element.id+"_Legend_Shape_Index_"+this.maps.toggledLegendId[n],m=e.svgObject.querySelector(u);i.i(a.isNullOrUndefined)(m)||m.setAttribute("fill","#E5E5E5")}},e.prototype.renderLegendBorder=function(){var e,t=this.maps,n=t.legendSettings,l=n.title.text,s={fontFamily:n.titleStyle.fontFamily,fontStyle:n.titleStyle.fontStyle,fontWeight:n.titleStyle.fontWeight,size:n.titleStyle.size,color:n.titleStyle.color,opacity:n.titleStyle.opacity},d=i.i(o._25)(this.legendItemRect.width+20,l,s),p=i.i(o.w)(d,s);this.legendBorderRect=new o.I(this.legendItemRect.x-10,this.legendItemRect.y-10-p.height,this.legendItemRect.width+20,this.legendItemRect.height+20+p.height+("Interactive"===n.mode?0:0!==this.page?10:0));var h={color:n.border.color,width:n.border.width,opacity:n.border.opacity};h.opacity=i.i(a.isNullOrUndefined)(h.opacity)?1:h.opacity;var c=new o.B(t.element.id+"_Legend_Border",n.background,h,1,this.legendBorderRect,null,null,"","");if(this.legendGroup.appendChild(t.renderer.drawRectangle(c)),this.getLegendAlignment(t,this.legendBorderRect.width,this.legendBorderRect.height,n),this.legendGroup.setAttribute("transform","translate( "+(this.translate.x+-this.legendBorderRect.x)+" "+(this.translate.y+-this.legendBorderRect.y)+" )"),"Float"!==n.position&&t.svgObject.appendChild(this.legendGroup),l){s.color=null!==s.color?s.color:this.maps.themeStyle.legendTitleFontColor,s.fontFamily=i.i(a.isNullOrUndefined)(s.fontFamily)?this.maps.themeStyle.fontFamily:s.fontFamily,s.size=i.i(a.isNullOrUndefined)(s.size)?this.maps.themeStyle.subTitleFontSize||r.a.legendTitleFont.size:s.size,s.fontWeight=i.i(a.isNullOrUndefined)(s.fontWeight)?this.maps.themeStyle.titleFontWeight||r.a.legendTitleFont.fontWeight:s.fontWeight,e=new o.y(t.element.id+"_LegendTitle",this.legendItemRect.x+this.legendItemRect.width/2,this.legendItemRect.y-p.height/2-5,"middle",d,"");var u=i.i(o.K)(e,s,s.color,this.legendGroup);u.setAttribute("aria-label",l),u.setAttribute("role","region")}},e.prototype.changeNextPage=function(e){this.currentPage=e.target.id.indexOf("_Left_Page_")>-1?this.currentPage-1:this.currentPage+1,this.legendGroup=this.maps.renderer.createGroup({id:this.maps.element.id+"_Legend_Group"}),this.maps.mapAreaRect=this.initialMapAreaRect,this.drawLegendItem(this.currentPage),i.i(a.isNullOrUndefined)(this.maps.legendModule)||"Float"!==this.maps.legendSettings.position||(this.maps.isTileMap?this.maps.mapLayerPanel.layerGroup.appendChild(this.maps.legendModule.legendGroup):this.maps.svgObject.appendChild(this.maps.legendModule.legendGroup)),i.i(o._40)(this.maps.element.id+"_Legend_Border",this.maps.element.id)&&(i.i(o._40)(this.maps.element.id+"_Legend_Border",this.maps.element.id).style.pointerEvents="none")},e.prototype.getLegendAlignment=function(e,t,n,r){var l,s,d;d=i.i(a.extend)({},e.mapAreaRect,d,!0);var p=d.x,h=d.y,c=d.height,u=d.width,m=e.availableSize.width,g=e.availableSize.height,y=i.i(a.isNullOrUndefined)(r.location.x)?0:r.location.x,f=i.i(a.isNullOrUndefined)(r.location.y)?0:r.location.y;if("Float"===r.position)this.translate=e.isTileMap?new o.s(y,f+2.5):new o.s(y+e.mapAreaRect.x,f+e.mapAreaRect.y),this.legendTotalRect=e.mapAreaRect;else{switch(r.position){case"Top":case"Bottom":d.height="Top"===r.position?c-n:c-n-20,l=m/2-t/2,s="Top"===r.position?h:h+d.height,d.y="Top"===r.position?h+n+(e.isTileMap?5:10):h-5;break;case"Left":case"Right":d.width=u-t-e.mapAreaRect.x,l="Left"===r.position?p+5:p+d.width+10,s=g/2-n/2,d.x="Left"===r.position?p+t+10:p}switch(r.alignment){case"Near":"Top"===r.position||"Bottom"===r.position?l=d.x-("Interactive"===r.mode?10:0):s=d.y-(r.height&&r.width||"Interactive"!==r.mode?0:e.mapAreaRect.x);break;case"Far":"Top"===r.position||"Bottom"===r.position?l=m-t-("Interactive"===r.mode?0:10):s=g-n-("Default"===r.mode?10:0)}(r.height||r.width)&&"Interactive"!==r.mode?this.legendTotalRect=e.mapAreaRect=e.totalRect=d:(e.totalRect=null,(r.height||r.width)&&"Interactive"===r.mode&&(e.totalRect=d),this.legendTotalRect=e.mapAreaRect=d),"Left"===r.position&&(e.mapAreaRect.width=d.width),this.translate=new o.s(l,s)}},e.prototype.getMarkersLegendCollections=function(e,t){var n=this;Array.prototype.forEach.call(t,function(t,r){var l,s=t.dataSource,d=t.legendText;Array.prototype.forEach.call(s,function(s,p){var h=!!i.i(a.isNullOrUndefined)(s[n.maps.legendSettings.showLegendPath])||s[n.maps.legendSettings.showLegendPath];if(t.visible&&h&&!i.i(a.isNullOrUndefined)(s.latitude)&&!i.i(a.isNullOrUndefined)(s.longitude)){if(t.template){l=i.i(o._35)(t.template,n.maps);var c=l(n.maps);(i.i(a.isNullOrUndefined)(c.childElementCount)?c[0]:c).querySelector("img").src}var u=i.i(a.isNullOrUndefined)(s[d])?"":s[d],m=i.i(a.isNullOrUndefined)(t.colorValuePath)?t.fill:s[t.colorValuePath],g=[];n.maps.legendSettings.removeDuplicateLegend?(g.push(n.getMarkerLegendData(e,u,m)),n.getOverallLegendItemsCollection(u,m,g,h)):(g.push({layerIndex:e,markerIndex:r,dataIndex:p,value:m,name:u,shape:i.i(a.isNullOrUndefined)(t.shapeValuePath)||i.i(a.isNullOrUndefined)(s[t.shapeValuePath])||""===s[t.shapeValuePath]?n.maps.legendSettings.useMarkerShape?t.shape:n.maps.legendSettings.shape:s[t.shapeValuePath]}),n.getOverallLegendItemsCollection(u,m,g,h))}})})},e.prototype.getMarkerLegendData=function(e,t,n){var o=this,r=[];return this.maps.layers[e].markerSettings.map(function(l,s){var d=l.dataSource;Array.prototype.forEach.call(d,function(l,d){var p=o.maps.layers[e].markerSettings[s];t!==l[p.legendText]&&""!==t||n!==l[p.colorValuePath]||r.push({layerIndex:e,markerIndex:s,dataIndex:d,value:n,name:t,shape:i.i(a.isNullOrUndefined)(p.shapeValuePath)?p.shape:l[p.shapeValuePath]})})}),r},e.prototype.getRangeLegendCollection=function(e,t,n,r,l,s,d){for(var p,h=this,c=0,u=this.maps.legendSettings.fill,m=[],g=this,y=0,f=n;y<f.length;y++){var b=f[y];!function(n){if(!i.i(a.isNullOrUndefined)(n.from)&&!i.i(a.isNullOrUndefined)(n.to)){p=i.i(a.isNullOrUndefined)(n.label)?n.from+" - "+n.to:n.label,m=[];var y=!1;Array.prototype.forEach.call(r,function(a,r){var p=s.indexOf(".")>-1?Number(i.i(o.Q)(a,s)):parseFloat(a[s]);p>=n.from&&p<=n.to&&(y=!0,m.push(h.getLegendData(e,r,a,l,t,d,p)))}),y||m.push({layerIndex:e,shapeIndex:null,dataIndex:null,name:null,value:null});var f=i.i(a.isNullOrUndefined)(u)?"[object Array]"===Object.prototype.toString.call(n.color)?i.i(a.isNullOrUndefined)(n.value)?g.legendGradientColor(n,c):n.color[0]:n.color:u;c++,g.getOverallLegendItemsCollection(p,f,m,n.showLegend)}}(b)}},e.prototype.getOverallLegendItemsCollection=function(e,t,i,n){var o=[],a=this.maps.legendSettings;if(i.length>0&&n){for(var r=0;r<i.length;r++){var l=i[r];if(l.length>0)for(var s=0;s<l.length;s++)o.push(l[s]);else o.push(i[r]);o._isVisible=!0}if(!!this.maps.legendSettings.removeDuplicateLegend&&this.removeDuplicates(this.legendCollection,e,t))for(var r=0;r<this.legendCollection.length;r++)this.legendCollection[r].text===e&&this.legendCollection[r].fill===t&&this.legendCollection[r].data.push(o[0]);else this.legendCollection.push({text:e,fill:t,data:o,opacity:a.opacity,borderColor:a.shapeBorder.color,borderWidth:a.shapeBorder.width})}},e.prototype.removeDuplicates=function(e,t,i){for(var n=!1,o=0;o<e.length;o++)if((e[o].text===t||""===e[o].text)&&e[o].fill===i){n=!0;break}return n},e.prototype.getEqualLegendCollection=function(e,t,n,r,l,s,d){for(var p,h=this,c=this.maps.legendSettings.fill,u=[],m=[],g=[],y=[],f=this,b=0,v=n;b<v.length;b++){var S=v[b];!function(b){if(i.i(a.isNullOrUndefined)(b.value)){if(i.i(a.isNullOrUndefined)(b.minOpacity)&&i.i(a.isNullOrUndefined)(b.maxOpacity)&&i.i(a.isNullOrUndefined)(b.value)&&i.i(a.isNullOrUndefined)(b.from)&&i.i(a.isNullOrUndefined)(b.to)&&!i.i(a.isNullOrUndefined)(b.color)){if(Array.prototype.forEach.call(r,function(n,a){for(var r=s.indexOf(".")>-1?i.i(o.Q)(n,s):n[s],p=0;p<g.length;p++)r===g[p]&&y.push(h.getLegendData(e,a,n,l,t,d,r))}),0===g.length){var v=!1;Array.prototype.forEach.call(r,function(o,r){v=!1;for(var p=o[s],c=0;c<n.length;c++)i.i(a.isNullOrUndefined)(p)||isNaN(p)?v||(v=!1):p>=n[c].from&&p<=n[c].to&&(v=!0);v||y.push(h.getLegendData(e,r,o,l,t,d,p))})}p=i.i(a.isNullOrUndefined)(b.label)?"Others":b.label;var S="[object Array]"===Object.prototype.toString.call(b.color)?b.color[0]:b.color,_=S;f.getOverallLegendItemsCollection(p,_,y,b.showLegend)}}else{p=i.i(a.isNullOrUndefined)(b.label)?b.value:b.label,m=[];var x=!1;Array.prototype.forEach.call(r,function(n,a){var r=s.indexOf(".")>-1?i.i(o.Q)(n,s):n[s];r===b.value?(x=!0,-1===u.indexOf(r)&&u.push(r),m.push(h.getLegendData(e,a,n,l,t,d,r))):-1===g.indexOf(r)&&g.push(r)});for(var O=0;O<u.length;O++)for(var M=0;M<g.length;M++)if(u[O]===g[M]){var C=g.indexOf(u[O]);g.splice(C,1)}x||m.push({layerIndex:e,shapeIndex:null,dataIndex:null,name:null,value:null});var L=i.i(a.isNullOrUndefined)(c)?"[object Array]"===Object.prototype.toString.call(b.color)?b.color[0]:b.color:c;f.getOverallLegendItemsCollection(p,L,m,b.showLegend)}}(S)}},e.prototype.getDataLegendCollection=function(e,t,n,r,l,s,d){var p,h=this,c=this.maps.legendSettings.fill,u=this.maps.legendSettings.valuePath;i.i(a.isNullOrUndefined)(s)||i.i(a.isNullOrUndefined)(r)||Array.prototype.forEach.call(r,function(r,m){var g=!!i.i(a.isNullOrUndefined)(h.maps.legendSettings.showLegendPath)||!i.i(a.isNullOrUndefined)(r[h.maps.legendSettings.showLegendPath])&&r[h.maps.legendSettings.showLegendPath],y=s.indexOf(".")>-1?i.i(o.Q)(r,s):r[s],f=[],b=i.i(a.isNullOrUndefined)(c)?y:c;i.i(a.isNullOrUndefined)(y)||0!==n.length||(p=i.i(a.isNullOrUndefined)(r[u])?l.indexOf(".")>-1?i.i(o.Q)(r,l):r[l]:u.indexOf(".")>-1?i.i(o.Q)(r,u):r[u],f.push(h.getLegendData(e,m,r,l,t,d,y))),h.getOverallLegendItemsCollection(p,b,f,g)})},e.prototype.interactiveHandler=function(e){var t=e.target,n=this.maps.legendSettings,r=this.maps.element.id+"_Interactive_Legend",l="Layers"===n.type?"_shapeIndex_":"Markers"===n.type?"_MarkerIndex_":"_BubbleIndex_";if(t.id.indexOf(l)>1){var s=parseFloat(t.id.split("_LayerIndex_")[1].split("_")[0]),d=parseFloat(t.id.split(/_dataIndex_/i)[1].split("_")[0]),p=void 0,h=void 0,c=void 0;i.i(a.isNullOrUndefined)(i.i(o._40)(r,this.maps.element.id))||i.i(a.remove)(i.i(o._40)(r,this.maps.element.id));var u=this.maps.layersCollection[s],m="Layers"===n.type?u.visible:"Markers"===n.type?u.markerSettings[parseFloat(t.id.split("_MarkerIndex_")[1].split("_")[0])].visible:this.maps.getBubbleVisible(this.maps.layersCollection[s]);if(n.visible&&this.legendRenderingCollections.length>0&&"Interactive"===n.mode&&m)for(var g=this.maps.svgObject.getBoundingClientRect(),y=0;y<this.legendCollection.length;y++){var f=this.legendCollection[y],b=i.i(o._40)(this.maps.element.id+"_Legend_Index_"+y,this.maps.element.id),v=b.getBoundingClientRect(),S=new o.I(Math.abs(v.left-g.left),Math.abs(v.top-g.top),v.width,v.height);if(p=b.getAttribute("fill"),h=n.shapeBorder.color,c=n.shapeBorder.width,!i.i(a.isNullOrUndefined)(f.data))for(var _=f.data,x=0;x<_.length;x++)if(d===_[x].dataIndex&&s===_[x].layerIndex){this.renderInteractivePointer(n,p,h,r,c,S);break}}}else i.i(a.isNullOrUndefined)(i.i(o._40)(r,this.maps.element.id))||i.i(a.remove)(i.i(o._40)(r,this.maps.element.id))},e.prototype.renderInteractivePointer=function(e,t,i,n,a,r){var l,s,d,p="None"===e.orientation?"Top"===e.position||"Bottom"===e.position?"Horizontal":"Vertical":e.orientation;r.y="Float"===e.position&&this.maps.isTileMap?r.y-this.maps.mapAreaRect.y:r.y,"Horizontal"===p?e.invertedPointer?(s=r.x+r.width/2-("Float"===e.position&&this.maps.isTileMap?this.maps.mapAreaRect.x:0),d=r.y+r.height,l=" M "+s+" "+d+" L "+(s-10)+" "+(d+10)+" L "+(s+10)+" "+(d+10)+" Z "):(s=r.x+r.width/2-("Float"===e.position&&this.maps.isTileMap?this.maps.mapAreaRect.x:0),d=r.y,l=" M "+s+" "+d+" L "+(s-10)+" "+(d-10)+" L "+(s+10)+" "+(d-10)+" Z "):e.invertedPointer?(s=r.x-("Float"===e.position&&this.maps.isTileMap?this.maps.mapAreaRect.x:0),d=r.y+r.height/2,l=" M "+s+" "+d+" L "+(s-10)+" "+(d-10)+" L "+(s-10)+" "+(d+10)+" z "):(s=r.x+r.width-("Float"===e.position&&this.maps.isTileMap?this.maps.mapAreaRect.x:0),d=r.y+r.height/2,l=" M "+s+" "+d+" L "+(s+10)+" "+(d-10)+" L "+(s+10)+" "+(d+10)+" z ");var h=new o.z(n,t,a,i,1,1,"",l);"Float"===e.position&&this.maps.isTileMap?this.maps.mapLayerPanel.layerGroup.appendChild(this.maps.renderer.drawPath(h)):this.maps.svgObject.appendChild(this.maps.renderer.drawPath(h))},e.prototype.wireEvents=function(e){a.EventHandler.add(e,a.Browser.touchStartEvent,this.changeNextPage,this)},e.prototype.addEventListener=function(){this.maps.isDestroyed||(this.maps.on(a.Browser.touchMoveEvent,this.interactiveHandler,this),this.maps.on(a.Browser.touchEndEvent,this.interactiveHandler,this),this.maps.on(n.d,this.legendClick,this))},e.prototype.markerToggleSelection=function(e,t,n,o){e.setAttribute("fill",this.legendCollection[o].fill),e.setAttribute("stroke",this.maps.layers[t].markerSettings[n].border.color),e.setAttribute("fill-opacity",this.maps.layers[t].markerSettings[n].opacity.toString()),e.setAttribute("stroke-width",this.maps.layers[t].markerSettings[n].border.width.toString()),e.setAttribute("stroke-opacity",(i.i(a.isNullOrUndefined)(this.maps.layers[t].markerSettings[n].border.opacity)?this.maps.layers[t].markerSettings[n].opacity:this.maps.layers[t].markerSettings[n].border.opacity).toString())},e.prototype.bubbleToggleSelection=function(e,t,n,o){e.setAttribute("fill",this.legendCollection[o].fill),e.setAttribute("stroke",this.maps.layers[t].bubbleSettings[n].border.color),e.setAttribute("fill-opacity",this.maps.layers[t].bubbleSettings[n].opacity.toString()),e.setAttribute("stroke-width",this.maps.layers[t].bubbleSettings[n].border.width.toString()),e.setAttribute("stroke-opacity",(i.i(a.isNullOrUndefined)(this.maps.layers[t].bubbleSettings[n].border.opacity)?this.maps.layers[t].bubbleSettings[n].opacity:this.maps.layers[t].bubbleSettings[n].border.opacity).toString())},e.prototype.legendClick=function(e){var t,n,r=this.maps.legendSettings.toggleLegendSettings.fill,l=this.maps.legendSettings.toggleLegendSettings.opacity,s=this.maps.legendSettings.toggleLegendSettings.border.color,d=this.maps.legendSettings.toggleLegendSettings.border.width,p=i.i(a.isNullOrUndefined)(this.maps.legendSettings.toggleLegendSettings.border.opacity)?this.maps.legendSettings.toggleLegendSettings.opacity:this.maps.legendSettings.toggleLegendSettings.border.opacity;if(!i.i(a.isNullOrUndefined)(e.parentNode)&&e.parentNode.id.indexOf(this.maps.element.id+"_Legend_Index_")>-1){var h=void 0,c=parseFloat(e.parentElement.id.substr((this.maps.element.id+"_Legend_Index_").length)),u=this.legendCollection[c].data,m=u._isVisible,g=void 0;if(this.maps.legendSettings.toggleLegendSettings.enable&&("Bubbles"===this.maps.legendSettings.type||"Markers"===this.maps.legendSettings.type))for(var y=0;y<this.maps.layers.length;y++)for(var f=0;f<("Bubbles"===this.maps.legendSettings.type?this.maps.layers[y].bubbleSettings.length:this.maps.layers[y].markerSettings.length);f++){for(var b=0;b<u.length;b++)g=this.legendCollection[c].data[b],h="Bubbles"===this.maps.legendSettings.type?i.i(o._40)(this.maps.element.id+"_LayerIndex_"+g.layerIndex+"_BubbleIndex_"+f+"_dataIndex_"+g.dataIndex,this.maps.element.id):i.i(o._40)(this.maps.element.id+"_LayerIndex_"+g.layerIndex+"_MarkerIndex_"+g.markerIndex+"_dataIndex_"+g.dataIndex,this.maps.element.id),i.i(a.isNullOrUndefined)(g.shape)||"Balloon"!==g.shape||(h="Bubbles"===this.maps.legendSettings.type?i.i(o._40)(this.maps.element.id+"_LayerIndex_"+g.layerIndex+"_BubbleIndex_"+f+"_dataIndex_"+g.dataIndex+"_Group",this.maps.element.id):i.i(o._40)(this.maps.element.id+"_LayerIndex_"+g.layerIndex+"_MarkerIndex_"+g.markerIndex+"_dataIndex_"+g.dataIndex+"_Group",this.maps.element.id),h=h.children[0]),m&&null!==h?(this.maps.legendSettings.toggleLegendSettings.applyShapeSettings?(h.setAttribute("fill",this.maps.layers[y].shapeSettings.fill),h.setAttribute("stroke",this.maps.layers[y].shapeSettings.border.color),h.setAttribute("fill-opacity",this.maps.layers[y].shapeSettings.opacity.toString()),h.setAttribute("stroke-width",(i.i(a.isNullOrUndefined)(this.maps.layers[y].shapeSettings.border.width)?0:this.maps.layers[y].shapeSettings.border.width).toString()),h.setAttribute("stroke-opacity",(i.i(a.isNullOrUndefined)(this.maps.layers[y].shapeSettings.border.opacity)?this.maps.layers[y].shapeSettings.opacity:this.maps.layers[y].shapeSettings.border.opacity).toString())):(h.setAttribute("fill",r),h.setAttribute("fill-opacity",l.toString()),h.setAttribute("stroke",s),h.setAttribute("stroke-width",d.toString()),h.setAttribute("stroke-opacity",p.toString())),null!==e&&(t=i.i(o._40)(this.maps.element.id+"_Legend_Shape_Index_"+c,this.maps.element.id),n=i.i(o._40)(this.maps.element.id+"_Legend_Text_Index_"+c,this.maps.element.id),this.maps.legendSettings.toggleLegendSettings.applyShapeSettings?this.setToggleAttributes(n,t,this.maps.layers[y].shapeSettings.fill,this.maps.layers[y].shapeSettings.opacity,this.maps.layers[y].shapeSettings.border.color,i.i(a.isNullOrUndefined)(this.maps.layers[y].shapeSettings.border.width)?0:this.maps.layers[y].shapeSettings.border.width,i.i(a.isNullOrUndefined)(this.maps.layers[y].shapeSettings.border.opacity)?this.maps.layers[y].shapeSettings.opacity:this.maps.layers[y].shapeSettings.border.opacity,this.maps.layers[y].shapeSettings.fill):this.setToggleAttributes(n,t,r,l,s,d,p,r))):("Markers"===this.maps.legendSettings.type?this.markerToggleSelection(h,y,f,c):this.bubbleToggleSelection(h,y,f,c),null!==e&&(t=i.i(o._40)(this.maps.element.id+"_Legend_Shape_Index_"+c,this.maps.element.id),n=i.i(o._40)(this.maps.element.id+"_Legend_Text_Index_"+c,this.maps.element.id),this.setToggleAttributes(n,t,this.legendCollection[c].fill,this.legendCollection[c].opacity,this.legendCollection[c].shapeBorder.color,this.legendCollection[c].shapeBorder.width,this.legendCollection[c].shapeBorder.opacity,"#757575"),"HorizontalLine"!==this.maps.legendSettings.shape&&"VerticalLine"!==this.maps.legendSettings.shape&&"Cross"!==this.maps.legendSettings.shape||t.setAttribute("stroke",this.legendCollection[c].fill)));u._isVisible=!m}if("Layers"===this.maps.legendSettings.type&&this.maps.legendSettings.toggleLegendSettings.enable){var v=void 0;this.removeCollections(e,c);var S=this.maps.toggledLegendId.indexOf(c);-1!==S&&(m=!1);for(var f=0;f<this.maps.layers.length;f++)for(var b=0;b<u.length;b++)if(g=this.legendCollection[c].data[b],null!==(v=i.i(o._40)(this.maps.element.id+"_LayerIndex_"+g.layerIndex+"_shapeIndex_"+g.shapeIndex+"_dataIndex_"+g.dataIndex,this.maps.element.id))){var _=this.maps.toggledShapeElementId.indexOf(v.id);m?(0===b&&this.maps.toggledLegendId.push(c),-1===_&&this.maps.toggledShapeElementId.push(v.id),this.maps.legendSettings.toggleLegendSettings.applyShapeSettings?(v.setAttribute("fill",this.maps.layers[f].shapeSettings.fill),v.setAttribute("fill-opacity",this.maps.layers[f].shapeSettings.opacity.toString()),v.setAttribute("stroke",this.maps.layers[f].shapeSettings.border.color),v.setAttribute("stroke-width",(i.i(a.isNullOrUndefined)(this.maps.layers[f].shapeSettings.border.width)?0:this.maps.layers[f].shapeSettings.border.width).toString()),v.setAttribute("stroke-opacity",(i.i(a.isNullOrUndefined)(this.maps.layers[f].shapeSettings.border.opacity)?this.maps.layers[f].shapeSettings.opacity:this.maps.layers[f].shapeSettings.border.opacity).toString())):(v.setAttribute("fill",r),v.setAttribute("fill-opacity",l.toString()),v.setAttribute("stroke",s),v.setAttribute("stroke-width",d.toString()),v.setAttribute("stroke-opacity",p.toString())),null!==e&&(n=i.i(o._40)(this.maps.element.id+"_Legend_Text_Index_"+c,this.maps.element.id),t=i.i(o._40)(this.maps.element.id+"_Legend_Shape_Index_"+c,this.maps.element.id),this.maps.legendSettings.toggleLegendSettings.applyShapeSettings?this.setToggleAttributes(n,t,this.maps.layers[f].shapeSettings.fill,this.maps.layers[f].shapeSettings.opacity,this.maps.layers[f].shapeSettings.border.color,i.i(a.isNullOrUndefined)(this.maps.layers[f].shapeSettings.border.width)?0:this.maps.layers[f].shapeSettings.border.width,i.i(a.isNullOrUndefined)(this.maps.layers[f].shapeSettings.border.opacity)?this.maps.layers[f].shapeSettings.opacity:this.maps.layers[f].shapeSettings.border.opacity,this.maps.layers[f].shapeSettings.fill):this.setToggleAttributes(n,t,r,l,s,d,p,r))):(-1!==S&&0===b&&this.maps.toggledLegendId.splice(S,1),-1!==_&&this.maps.toggledShapeElementId.splice(_,1),v.setAttribute("fill",this.legendCollection[c].fill),v.setAttribute("stroke-opacity",(i.i(a.isNullOrUndefined)(this.maps.layers[f].shapeSettings.border.opacity)?this.maps.layers[f].shapeSettings.opacity:this.maps.layers[f].shapeSettings.border.opacity).toString()),v.setAttribute("stroke-width",(i.i(a.isNullOrUndefined)(this.maps.layers[f].shapeSettings.border.width)?0:this.maps.layers[f].shapeSettings.border.width).toString()),v.setAttribute("fill-opacity",this.maps.layers[f].shapeSettings.opacity.toString()),v.setAttribute("stroke",this.maps.layers[f].shapeSettings.border.color),null!==e&&(n=i.i(o._40)(this.maps.element.id+"_Legend_Text_Index_"+c,this.maps.element.id),t=i.i(o._40)(this.maps.element.id+"_Legend_Shape_Index_"+c,this.maps.element.id),this.setToggleAttributes(n,t,this.legendCollection[c].fill,this.legendCollection[c].opacity,this.legendCollection[c].shapeBorder.color,this.legendCollection[c].shapeBorder.width,this.legendCollection[c].shapeBorder.opacity,"#757575")))}u._isVisible=!m}}else if(!i.i(a.isNullOrUndefined)(e.id)&&(e.id.indexOf(this.maps.element.id+"_Legend_Shape_Index")>-1||-1!==e.id.indexOf(this.maps.element.id+"_Legend_Index"))&&this.maps.legendSettings.visible&&-1===e.id.indexOf("_Text")){var x=void 0,c=parseFloat(e.id.split(this.maps.element.id+"_Legend_Index_")[1]),O=void 0,u=this.legendCollection[c].data,m=u._isVisible;if(("Bubbles"===this.maps.legendSettings.type||"Markers"===this.maps.legendSettings.type)&&this.maps.legendSettings.toggleLegendSettings.enable)for(var y=0;y<this.maps.layers.length;y++)for(var f=0;f<("Bubbles"===this.maps.legendSettings.type?this.maps.layers[y].bubbleSettings.length:this.maps.layers[y].markerSettings.length);f++){for(var b=0;b<u.length;b++)O=this.legendCollection[c].data[b],x="Bubbles"===this.maps.legendSettings.type?i.i(o._40)(this.maps.element.id+"_LayerIndex_"+O.layerIndex+"_BubbleIndex_"+f+"_dataIndex_"+O.dataIndex,this.maps.element.id):i.i(o._40)(this.maps.element.id+"_LayerIndex_"+O.layerIndex+"_MarkerIndex_"+f+"_dataIndex_"+O.dataIndex,this.maps.element.id),i.i(a.isNullOrUndefined)(O.shape)||"Balloon"!==O.shape||(x="Bubbles"===this.maps.legendSettings.type?i.i(o._40)(this.maps.element.id+"_LayerIndex_"+O.layerIndex+"_BubbleIndex_"+f+"_dataIndex_"+O.dataIndex+"_Group",this.maps.element.id):i.i(o._40)(this.maps.element.id+"_LayerIndex_"+O.layerIndex+"_MarkerIndex_"+f+"_dataIndex_"+O.dataIndex+"_Group",this.maps.element.id),x=x.children[0]),m&&null!==x?(this.maps.legendSettings.toggleLegendSettings.applyShapeSettings?(x.setAttribute("fill",this.maps.layers[y].shapeSettings.fill),x.setAttribute("stroke",this.maps.layers[y].shapeSettings.border.color),x.setAttribute("stroke-width",(i.i(a.isNullOrUndefined)(this.maps.layers[y].shapeSettings.border.width)?0:this.maps.layers[y].shapeSettings.border.width).toString()),x.setAttribute("stroke-opacity",(i.i(a.isNullOrUndefined)(this.maps.layers[y].shapeSettings.border.opacity)?this.maps.layers[y].shapeSettings.opacity:this.maps.layers[y].shapeSettings.border.opacity).toString()),x.setAttribute("fill-opacity",this.maps.layers[y].shapeSettings.opacity.toString())):(x.setAttribute("fill",r),x.setAttribute("fill-opacity",l.toString()),x.setAttribute("stroke",s),x.setAttribute("stroke-width",d.toString()),x.setAttribute("stroke-opacity",p.toString())),null!==e&&(n=i.i(o._40)(this.maps.element.id+"_Legend_Index_"+c+"_Text",this.maps.element.id),t=i.i(o._40)(this.maps.element.id+"_Legend_Index_"+c,this.maps.element.id),this.maps.legendSettings.toggleLegendSettings.applyShapeSettings?this.setToggleAttributes(n,t,this.maps.layers[y].shapeSettings.fill,this.maps.layers[y].shapeSettings.opacity,this.maps.layers[y].shapeSettings.border.color,i.i(a.isNullOrUndefined)(this.maps.layers[y].shapeSettings.border.width)?0:this.maps.layers[y].shapeSettings.border.width,i.i(a.isNullOrUndefined)(this.maps.layers[y].shapeSettings.border.opacity)?this.maps.layers[y].shapeSettings.opacity:this.maps.layers[y].shapeSettings.border.opacity,this.maps.layers[y].shapeSettings.fill):this.setToggleAttributes(n,t,r,l,s,d,p,r))):("Markers"===this.maps.legendSettings.type?this.markerToggleSelection(x,y,f,c):this.bubbleToggleSelection(x,y,f,c),null!==e&&(t=i.i(o._40)(this.maps.element.id+"_Legend_Index_"+c,this.maps.element.id),t.setAttribute("fill",this.legendCollection[c].fill),t.setAttribute("fill-opacity",this.legendCollection[c].opacity),t.setAttribute("stroke",this.legendCollection[c].shapeBorder.color),t.setAttribute("stroke-width",this.legendCollection[c].shapeBorder.width),t.setAttribute("stroke-opacity",this.legendCollection[c].shapeBorder.opacity),n=i.i(o._40)(this.maps.element.id+"_Legend_Index_"+c+"_Text",this.maps.element.id),n.setAttribute("fill","#757575")));u._isVisible=!m}if("Layers"===this.maps.legendSettings.type&&this.maps.legendSettings.toggleLegendSettings.enable){var M=void 0;this.removeCollections(e,c);var C=this.maps.toggledLegendId.indexOf(c);-1!==C&&(m=!1);for(var y=0;y<this.maps.layers.length;y++)for(var b=0;b<u.length;b++)if(O=this.legendCollection[c].data[b],null!==(M=i.i(o._40)(this.maps.element.id+"_LayerIndex_"+O.layerIndex+"_shapeIndex_"+O.shapeIndex+"_dataIndex_"+O.dataIndex,this.maps.element.id))){var _=this.maps.toggledShapeElementId.indexOf(M.id);m?(0===b&&this.maps.toggledLegendId.push(c),-1===_&&this.maps.toggledShapeElementId.push(M.id),this.maps.legendSettings.toggleLegendSettings.applyShapeSettings?(M.setAttribute("fill",this.maps.layers[0].shapeSettings.fill),M.setAttribute("stroke",this.maps.layers[0].shapeSettings.border.color),M.setAttribute("fill-opacity",this.maps.layers[y].shapeSettings.opacity.toString()),M.setAttribute("stroke-width",(i.i(a.isNullOrUndefined)(this.maps.layers[y].shapeSettings.border.width)?0:this.maps.layers[y].shapeSettings.border.width).toString()),M.setAttribute("stroke-opacity",(i.i(a.isNullOrUndefined)(this.maps.layers[y].shapeSettings.border.opacity)?this.maps.layers[y].shapeSettings.opacity:this.maps.layers[y].shapeSettings.border.opacity).toString())):(M.setAttribute("fill",r),M.setAttribute("fill-opacity",l.toString()),M.setAttribute("stroke",s),M.setAttribute("stroke-width",d.toString()),M.setAttribute("stroke-opacity",p.toString())),null!==e&&(t=i.i(o._40)(this.maps.element.id+"_Legend_Index_"+c,this.maps.element.id),n=i.i(o._40)(this.maps.element.id+"_Legend_Index_"+c+"_Text",this.maps.element.id),this.maps.legendSettings.toggleLegendSettings.applyShapeSettings?this.setToggleAttributes(n,t,this.maps.layers[0].shapeSettings.fill,this.maps.layers[y].shapeSettings.opacity,this.maps.layers[0].shapeSettings.border.color,i.i(a.isNullOrUndefined)(this.maps.layers[y].shapeSettings.border.width)?0:this.maps.layers[y].shapeSettings.border.width,i.i(a.isNullOrUndefined)(this.maps.layers[y].shapeSettings.border.opacity)?this.maps.layers[y].shapeSettings.opacity:this.maps.layers[y].shapeSettings.border.opacity,this.maps.layers[0].shapeSettings.fill):this.setToggleAttributes(n,t,r,l,s,d,p,r))):(-1!==C&&0===b&&this.maps.toggledLegendId.splice(C,1),-1!==_&&this.maps.toggledShapeElementId.splice(_,1),M.setAttribute("fill-opacity",this.maps.layers[y].shapeSettings.opacity.toString()),M.setAttribute("stroke-width",(i.i(a.isNullOrUndefined)(this.maps.layers[y].shapeSettings.border.width)?0:this.maps.layers[y].shapeSettings.border.width).toString()),M.setAttribute("stroke",this.maps.layers[0].shapeSettings.border.color),M.setAttribute("stroke-opacity",(i.i(a.isNullOrUndefined)(this.maps.layers[y].shapeSettings.border.opacity)?this.maps.layers[y].shapeSettings.opacity:this.maps.layers[y].shapeSettings.border.opacity).toString()),M.setAttribute("fill",this.legendCollection[c].fill),null!==e&&(n=i.i(o._40)(this.maps.element.id+"_Legend_Index_"+c+"_Text",this.maps.element.id),t=i.i(o._40)(this.maps.element.id+"_Legend_Index_"+c,this.maps.element.id),this.setToggleAttributes(n,t,this.legendCollection[c].fill,this.legendCollection[c].opacity,this.legendCollection[c].shapeBorder.color,this.legendCollection[c].shapeBorder.width,this.legendCollection[c].shapeBorder.opacity,"#757575")))}u._isVisible=!m}}},e.prototype.removeCollections=function(e,t){this.removeLegendSelectionCollection(e);var i=this.getIndexofLegend(this.maps.legendSelectionCollection,e);-1!==i&&this.maps.legendSelectionCollection.splice(i,1),-1!==this.getIndexofLegend(this.legendHighlightCollection,e)&&this.legendHighlightCollection.splice(i,1);var n=this.getIndexofLegend(this.shapeHighlightCollection,e);-1!==n&&this.shapeHighlightCollection.splice(n,1);var o=this.maps.selectedLegendElementId.indexOf(t);-1!==o&&this.maps.selectedLegendElementId.splice(o,1)},e.prototype.removeEventListener=function(){this.maps.isDestroyed||(this.maps.off(a.Browser.touchMoveEvent,this.interactiveHandler),this.maps.off(a.Browser.touchEndEvent,this.interactiveHandler),this.maps.off(n.d,this.legendClick))},e.prototype.getLegendData=function(e,t,n,r,l,s,d){var p=[];if("[object Array]"===Object.prototype.toString.call(l))for(var h=0;h<l.length;h++){var c=l[h],u=r.indexOf(".")>-1?i.i(o.Q)(n,r):n[r],m=i.i(o._20)(n[r],s,c.properties),g=i.i(a.isNullOrUndefined)(u)||"string"!=typeof u?u:u.toLowerCase(),y=!i.i(a.isNullOrUndefined)(c.properties[m])&&isNaN(c.properties[m])?c.properties[m].toLowerCase():c.properties[m];if(y===g)if("MultiPoint"!==c.geometry.type)p.push({layerIndex:e,shapeIndex:h,dataIndex:t,name:n[r],value:d,pointIndex:-1});else for(var f=0;f<c.geometry.coordinates.length;f++)p.push({layerIndex:e,shapeIndex:h,dataIndex:t,name:n[r],value:d,pointIndex:f})}return p},e.prototype.setToggleAttributes=function(e,t,n,o,r,l,s,d){e.setAttribute("fill",d),t.setAttribute("fill",n),t.setAttribute("fill-opacity",o.toString()),t.setAttribute("stroke",r),t.setAttribute("stroke-width",l.toString()),i.i(a.isNullOrUndefined)(s)||t.setAttribute("stroke-opacity",s.toString())},e.prototype.legendGradientColor=function(e,t){var n,o="http://www.w3.org/2000/svg";if(!i.i(a.isNullOrUndefined)(e.color)&&"object"==typeof e.color){var r=document.createElementNS(o,"linearGradient"),l=1,s=this.maps.legendSettings.position,d="Top"===s||"Bottom"===s?"100":"0",p="Top"===s||"Bottom"===s?"0":"100";r.setAttribute("id","linear_"+t+"_"+this.maps.element.id),r.setAttribute("x1","0%"),r.setAttribute("y1","0%"),r.setAttribute("x2",d+"%"),r.setAttribute("y2",p+"%");for(var h=0;h<e.color.length;h++){var c=100/(e.color.length-1),u=document.createElementNS(o,"stop");u.setAttribute("offset",h*c+"%"),u.setAttribute("stop-color",e.color[h]),u.setAttribute("stop-opacity",l.toString()),r.appendChild(u)}this.legendLinearGradient=r;var m="url(#linear_"+t+"_"+this.maps.element.id+")";this.defsElement.appendChild(r),n=m}return n},e.prototype.getModuleName=function(){return"Legend"},e.prototype.destroy=function(){this.legendCollection=[],this.legendRenderingCollections=[],this.translate=null,this.legendBorderRect=null,this.initialMapAreaRect=null,this.legendTotalRect=null,this.totalPages=[],this.legendItemRect=null,this.legendGroup=null,this.shapeHighlightCollection=[],this.legendHighlightCollection=[],this.shapePreviousColor=[],this.selectedNonLegendShapes=[],this.legendLinearGradient=null,this.currentLayer=null,this.defsElement=null,this.legendElement=[],this.oldShapeElement=null,this.removeEventListener(),this.maps=null},e}()},function(e,t,i){"use strict";i.d(t,"a",function(){return r});var n=i(2),o=i(1),a=(i.n(o),i(0)),r=function(){function e(e){this.maps=e,this.trackElements=[],this.sameMarkerData=[],this.initialMarkerCluster=[],this.zoomedMarkerCluster=[]}return e.prototype.getMapsInstance=function(){return this.maps},e.prototype.markerRender=function(e,t,r,l,s){var d=this,p=0,h=0,c=0;e.translateType="marker";var u=e.layersCollection[r];this.markerSVGObject=e.renderer.createGroup({id:e.element.id+"_Markers_Group",class:"GroupElement"}),this.markerSVGObject.style.pointerEvents="auto";var m=i.i(o.createElement)("div",{id:e.element.id+"_LayerIndex_"+r+"_Markers_Template_Group",className:e.element.id+"_template"});m.style.cssText="overflow: hidden; position: absolute;pointer-events: none;top:"+e.mapAreaRect.y+"px;left:"+e.mapAreaRect.x+"px;height:"+e.mapAreaRect.height+"px;width:"+e.mapAreaRect.width+"px;";var g,y=0!==u.animationDuration||"Enable"===o.animationMode||i.i(o.isNullOrUndefined)(e.zoomModule);e.isTileMap||(g=!i.i(o.isNullOrUndefined)(e.zoomModule)&&e.zoomSettings.zoomFactor>1?i.i(a._30)(e,u,y):i.i(a._29)(e,u,y)),Array.prototype.forEach.call(u.markerSettings,function(y,f){var b=y.dataSource;Array.prototype.forEach.call(b,function(v,S){e.markerNullCount=f>0&&0===S?0:e.markerNullCount;var _={cancel:!1,name:n.q,fill:y.fill,height:y.height,width:y.width,imageUrl:y.imageUrl,shape:y.shape,template:y.template,data:v,maps:e,marker:y,border:y.border,colorValuePath:y.colorValuePath,shapeValuePath:y.shapeValuePath,imageUrlValuePath:y.imageUrlValuePath};e.trigger("markerRendering",_,function(x){_=i.i(a.R)(_,v),_=i.i(a.S)(_,v);var O=i.i(o.isNullOrUndefined)(y.longitudeValuePath)?i.i(o.isNullOrUndefined)(v.longitude)?i.i(o.isNullOrUndefined)(v.Longitude)?null:parseFloat(v.Longitude):parseFloat(v.longitude):Number(i.i(a.Q)(v,y.longitudeValuePath)),M=i.i(o.isNullOrUndefined)(y.latitudeValuePath)?i.i(o.isNullOrUndefined)(v.latitude)?i.i(o.isNullOrUndefined)(v.Latitude)?null:parseFloat(v.Latitude):parseFloat(v.latitude):Number(i.i(a.Q)(v,y.latitudeValuePath)),C=y.offset;if(!_.cancel&&y.visible&&!i.i(o.isNullOrUndefined)(O)&&!i.i(o.isNullOrUndefined)(M)){var L=e.element.id+"_LayerIndex_"+r+"_MarkerIndex_"+f+"_dataIndex_"+S,P=e.isTileMap?i.i(n._32)(new n._56(O,M),l,e.tileTranslatePoint,!0):i.i(a.h)(M,O,l,u,e);e.isTileMap&&(g="SubLayer"===u.type&&i.i(o.isNullOrUndefined)(e.zoomModule)?P=i.i(n._32)(new n._56(O,M),e.tileZoomLevel,e.tileTranslatePoint,!0):new Object);var w="AddMarker"===s?e.scale:g.scale,T="AddMarker"===s?e.translatePoint:g.location;!_.template||isNaN(P.x)||isNaN(P.y)?_.template||isNaN(P.x)||isNaN(P.y)||(p++,i.i(a.Y)(_,y,b,S,P,T,L,C,w,e,d.markerSVGObject)):(c++,i.i(a.Z)(_,void 0,L,v,f,m,P,T,w,C,e),e.renderReactTemplates())}h+=isNaN(M)||isNaN(O)?1:0,c+=_.cancel?1:0,p+=_.cancel?1:0,e.markerNullCount=i.i(o.isNullOrUndefined)(O)||i.i(o.isNullOrUndefined)(M)?e.markerNullCount+1:e.markerNullCount;var I=b.length-e.markerNullCount,k=!1;d.markerSVGObject.childElementCount===I-c-h&&"Template"!==s&&(t.appendChild(d.markerSVGObject),u.markerClusterSettings.allowClustering&&(e.svgObject.appendChild(d.markerSVGObject),e.element.appendChild(e.svgObject),("OSM"===u.layerType||-1!==u.urlTemplate.indexOf("openstreetmap")&&i.i(o.isNullOrUndefined)(u.shapeData))&&e.zoomSettings.enable?(k=i.i(a.T)(u,d.markerSVGObject,e,r,d.markerSVGObject,t,!0,!1),t.appendChild(d.markerSVGObject)):k=i.i(a.T)(u,d.markerSVGObject,e,r,d.markerSVGObject,t,!0,!1),e.renderReactTemplates())),m.childElementCount===I-p-h&&i.i(a._32)(e.element.id+"_Secondary_Element")&&(i.i(a._32)(e.element.id+"_Secondary_Element").appendChild(m),e.checkInitialRender&&u.markerClusterSettings.allowClustering&&!k&&(i.i(a.T)(u,m,e,r,d.markerSVGObject,t,!1,!1),e.renderReactTemplates()))})})})},e.prototype.calculateIndividualLayerMarkerZoomLevel=function(e,t,n){var o,r,l=Math.abs(this.maps.baseMapBounds.latitude.max-this.maps.baseMapBounds.latitude.min),s=Math.abs(this.maps.baseMapBounds.longitude.max-this.maps.baseMapBounds.longitude.min);o=Math.floor(Math.log(t/l)),o=o>n?n:o,r=Math.floor(Math.log(e/s)),r=r>n?n:r;var d=Math.min(o,r),p=Math.min(d,n-1);return this.maps.isTileMap||i.i(a._67)(p,this.maps),p},e.prototype.calculateZoomCenterPositionAndFactor=function(e){if(!i.i(o.isNullOrUndefined)(this.maps))if(this.maps.zoomSettings.shouldZoomInitially&&this.maps.markerModule){var t,n,r,l,s=void 0,d=void 0,p=void 0,h=this.maps.zoomSettings.maxZoom,c=this.maps.mapAreaRect.width,u=this.maps.mapAreaRect.height;if(this.maps.markerZoomedState=this.maps.markerZoomedState?this.maps.markerZoomedState:i.i(o.isNullOrUndefined)(this.maps.markerZoomFactor)?!this.maps.markerZoomedState:this.maps.markerZoomFactor>1?this.maps.markerZoomedState:!this.maps.markerZoomedState,this.maps.defaultState=this.maps.markerZoomedState?!this.maps.markerZoomedState:this.maps.defaultState,Array.prototype.forEach.call(e,function(e){0!==e.markerSettings.length&&Array.prototype.forEach.call(e.markerSettings,function(e){var a=e.dataSource;Array.prototype.forEach.call(a,function(e,a){var s=i.i(o.isNullOrUndefined)(e.latitude)?i.i(o.isNullOrUndefined)(e.Latitude)?null:parseFloat(e.Latitude):parseFloat(e.latitude),d=i.i(o.isNullOrUndefined)(e.longitude)?i.i(o.isNullOrUndefined)(e.Longitude)?null:parseFloat(e.Longitude):parseFloat(e.longitude);i.i(o.isNullOrUndefined)(s)||i.i(o.isNullOrUndefined)(d)||(t=i.i(o.isNullOrUndefined)(t)&&0===a?d:t,n=i.i(o.isNullOrUndefined)(n)&&0===a?s:n,r=i.i(o.isNullOrUndefined)(r)&&0===a?s:r,l=i.i(o.isNullOrUndefined)(l)&&0===a?d:l,t>d&&(t=d),r>s&&(r=s),l<d&&(l=d),n<s&&(n=s))})})}),!(i.i(o.isNullOrUndefined)(r)||i.i(o.isNullOrUndefined)(t)||i.i(o.isNullOrUndefined)(l)||i.i(o.isNullOrUndefined)(n))){d=(r+n)/2,p=(t+l)/2,this.maps.markerCenterLatitude=d,this.maps.markerCenterLongitude=p,(i.i(o.isNullOrUndefined)(this.maps.markerZoomCenterPoint)||this.maps.markerZoomedState)&&(this.maps.markerZoomCenterPoint={latitude:d,longitude:p});var m=void 0;this.maps.isTileMap||0===this.maps.baseMapRectBounds.min.x?(s=i.i(a._68)(r,n,t,l,c,u,this.maps,!1),this.maps.isTileMap?m=i.i(o.isNullOrUndefined)(this.maps.markerZoomFactor)?s:i.i(o.isNullOrUndefined)(this.maps.mapScaleValue)?s:this.maps.mapScaleValue>1&&1!==this.maps.markerZoomFactor?this.maps.mapScaleValue:s:(m=i.i(o.isNullOrUndefined)(this.maps.mapScaleValue)?s:1!==Math.floor(this.maps.scale)&&this.maps.mapScaleValue!==s&&i.i(o.isNullOrUndefined)(this.maps.shouldZoomCurrentFactor)?this.maps.mapScaleValue:s)!==this.maps.mapScaleValue||1!==this.maps.markerZoomFactor&&1!==this.maps.mapScaleValue||this.maps.enablePersistence||(m=s)):(s=this.calculateIndividualLayerMarkerZoomLevel(c,u,h),m=i.i(o.isNullOrUndefined)(this.maps.mapScaleValue)?s:this.maps.mapScaleValue!==s?this.maps.mapScaleValue:s),this.maps.markerZoomFactor=m}}else this.maps.markerZoomedState=!1,this.maps.markerZoomFactor>1&&(this.maps.markerCenterLatitude=null,this.maps.markerCenterLongitude=null,this.maps.markerZoomFactor=1,this.maps.enablePersistence||(this.maps.mapScaleValue=1)),this.maps.isTileMap&&!this.maps.enablePersistence&&this.maps.mapScaleValue<=1&&(this.maps.tileZoomLevel=0===this.maps.mapScaleValue?this.maps.isZoomByPosition?this.maps.tileZoomLevel:1:this.maps.mapScaleValue,1===this.maps.mapScaleValue&&1===this.maps.markerZoomFactor&&(this.maps.tileTranslatePoint.x=0,this.maps.tileTranslatePoint.y=0))},e.prototype.markerClick=function(e){var t=e.target.id;if(-1===t.indexOf(this.maps.element.id)){var a=e.target.closest("."+this.maps.element.id+"_marker_template_element");!i.i(o.isNullOrUndefined)(a)&&a.id.indexOf("_MarkerIndex_")>-1&&(t=a.id)}if(!(-1===t.indexOf("_LayerIndex_")||t.indexOf("_cluster_")>0)){var r=this.getMarker(t);if(!i.i(o.isNullOrUndefined)(r)){r.marker.enableDrag&&(document.getElementById(this.maps.element.id+"_svg").style.cursor="grabbing");var l={cancel:!1,name:n.s,data:r.data,maps:this.maps,marker:r.marker,target:t,x:e.clientX,y:e.clientY,latitude:r.data.latitude||r.data.Latitude,longitude:r.data.longitude||r.data.Longitude,value:r.data.name};if(this.maps.trigger(n.s,l),r.marker.enableDrag){var s=!1,d=parseInt(t.split("_LayerIndex_")[1].split("_")[0],10),p=parseInt(t.split("_MarkerIndex_")[1].split("_")[0],10),h=parseInt(t.split("_dataIndex_")[1].split("_")[0],10),c=this.maps.layers[d].markerSettings[p];if(this.sameMarkerData.length>0&&(s=this.sameMarkerData[0].data.filter(function(e){return e.index===h}).length>0&&this.sameMarkerData[0].layerIndex===d&&this.sameMarkerData[0].markerIndex===p),!s){var u={name:n.t,x:e.clientX,y:e.clientY,latitude:r.data.latitude||r.data.Latitude,longitude:r.data.longitude||r.data.Longitude,layerIndex:d,markerIndex:p,dataIndex:h};this.maps.trigger(n.t,u),this.maps.markerDragArgument={targetId:t,x:e.clientX,y:e.clientY,latitude:r.data.latitude||r.data.Latitude,longitude:r.data.longitude||r.data.Longitude,shape:i.i(o.isNullOrUndefined)(c.shapeValuePath)?c.shape:c.dataSource[h][c.shapeValuePath],layerIndex:d,markerIndex:p,dataIndex:h}}}}}},e.prototype.markerClusterClick=function(e){var t=e.target.id;if(-1!==t.indexOf("_LayerIndex_")&&-1!==t.indexOf("_cluster_")){var r=this.getMarker(t);if(!i.i(o.isNullOrUndefined)(r)){r.clusterCollection.length>0&&this.maps.markerClusterExpand&&(i.i(a._36)(this.maps.element.id+"_mapsTooltip")&&this.maps.mapsTooltipModule.tooltipTargetID.indexOf("_MarkerIndex_")>-1&&i.i(a._27)(this.maps.element.id+"_mapsTooltip"),this.sameMarkerData.length>0&&!this.maps.markerClusterExpandCheck?(this.maps.markerClusterExpandCheck=!0,i.i(a.W)(this.sameMarkerData,this.maps)):(this.sameMarkerData=r.clusterCollection,this.maps.markerClusterExpandCheck=!1,i.i(a.X)(this.sameMarkerData,this.maps,this.markerSVGObject,!0)));var l={cancel:!1,name:n.v,data:r,maps:this.maps,target:t,x:e.clientX,y:e.clientY,latitude:r.data.latitude||r.data.Latitude,longitude:r.data.longitude||r.data.Longitude,markerClusterCollection:r.markCollection};this.maps.trigger(n.v,l)}}},e.prototype.getMarker=function(e){var t,i,n=e.split("_LayerIndex_"),o=parseInt(n[1].split("_")[0],10),a=this.maps.layers[o],r=[],l=[];if(this.maps.markerClusterExpand=a.markerClusterSettings.allowClusterExpand,e.indexOf("_MarkerIndex_")>-1){var s=parseInt(n[1].split("_MarkerIndex_")[1].split("_")[0],10),d=parseInt(n[1].split("_dataIndex_")[1].split("_")[0],10);if(i=a.markerSettings[s],!isNaN(s)){t=i.dataSource[d];var p=[];if(!i.template&&e.indexOf("_cluster_")>-1&&this.maps.layers[o].markerClusterSettings.allowClusterExpand&&Array.prototype.forEach.call(i.dataSource,function(e,i){e.latitude===t.latitude&&e.longitude===t.longitude&&p.push({data:t,index:i})}),e.indexOf("_cluster_")>-1){var h=!1,c=document.getElementById(e.indexOf("_datalabel_")>-1?"Balloon"===a.markerClusterSettings.shape?e.split("_datalabel_")[0]+"_Group":e.split("_datalabel_")[0]:"Balloon"===a.markerClusterSettings.shape?e+"_Group":e),u="Balloon"===a.markerClusterSettings.shape?c.children[0].textContent.split(",").map(Number):c.textContent.split(",").map(Number);p=[];for(var m=0,g=u;m<g.length;m++){var y=g[m];p.push({data:i.dataSource[y],index:y}),r.push(i.dataSource[y])}h=!1,l.push({data:p,layerIndex:o,markerIndex:s,dataIndex:d,targetClusterIndex:+(e.split("_cluster_")[1].indexOf("_datalabel_")>-1?e.split("_cluster_")[1].split("_datalabel_")[0]:e.split("_cluster_")[1]),isClusterSame:h})}return{marker:i,data:t,clusterCollection:l,markCollection:r}}}return null},e.prototype.markerMove=function(e){var t=e.target.id;if(!(-1===t.indexOf("_LayerIndex_")||t.indexOf("_cluster_")>0)){var a=this.getMarker(t);if(!i.i(o.isNullOrUndefined)(a)){a.marker.enableDrag&&(document.getElementById(this.maps.element.id+"_svg").style.cursor=i.i(o.isNullOrUndefined)(this.maps.markerDragArgument)?"pointer":"grabbing");var r={cancel:!1,name:n.w,data:a.data,maps:this.maps,target:t,x:e.clientX,y:e.clientY};this.maps.trigger(n.w,r)}}},e.prototype.markerClusterMouseMove=function(e){var t=e.target.id;if(-1!==t.indexOf("_LayerIndex_")&&-1!==t.indexOf("_cluster_")){var a=this.getMarker(t);if(this.maps.markerClusterExpand&&(e.target.style.cursor="pointer"),!i.i(o.isNullOrUndefined)(a)){var r={cancel:!1,name:n.x,data:a.data,maps:this.maps,target:t,x:e.clientX,y:e.clientY};this.maps.trigger(n.x,r)}}},e.prototype.initializeMarkerClusterList=function(){for(var e=0;e<this.maps.layers.length;e++)this.initialMarkerCluster[e]=[],this.zoomedMarkerCluster[e]=[]},e.prototype.getModuleName=function(){return"Marker"},e.prototype.destroy=function(){this.maps=null,this.trackElements=[],this.markerSVGObject=null,this.sameMarkerData=[],this.initialMarkerCluster=[],this.zoomedMarkerCluster=[]},e}()},function(e,t,i){"use strict";i.d(t,"a",function(){return r});var n=i(2),o=i(0),a=i(1),r=(i.n(a),function(){function e(e){this.maps=e}return e.prototype.renderNavigation=function(e,t,r){var l;if(!i.i(a.isNullOrUndefined)(this.maps)){var s=void 0,d=e.navigationLineSettings,p=void 0,h=[],c=void 0,u=void 0,m=void 0,g=void 0,y=void 0,f=void 0,b=void 0,v=void 0,S=void 0,_=void 0,x=void 0,O=void 0,M=void 0,C=void 0,L=void 0,P=void 0,w=void 0,T=void 0,I=void 0;l=this.maps.renderer.createGroup({id:this.maps.element.id+"_LayerIndex_"+r+"_line_Group"});for(var k=0;k<d.length;k++){if(c=d[k].latitude,p=d[k].longitude,u=!i.i(a.isNullOrUndefined)(d[k].visible)&&d[k].visible,m=i.i(a.isNullOrUndefined)(d[k].angle)?0:d[k].angle,g=d[k].width||1,y=d[k].color,f=d[k].dashArray,O=d[k].arrowSettings,S=!i.i(a.isNullOrUndefined)(O)&&O.showArrow,p.length===c.length&&u)for(var N=0;N<p.length;N++){var E=this.maps.isTileMap?i.i(n._32)(new o.s(p[N],c[N]),t,this.maps.tileTranslatePoint,!0):i.i(o.h)(c[N],p[N],t,e,this.maps);h.push(E)}T=this.maps.renderer.createGroup({id:this.maps.element.id+"_LayerIndex_"+r+"_NavigationGroup"+k});for(var F=0;F<h.length-1;F++){m=-1>m?-1:m,m=1<m?1:m;var z=this.maps.element.id+"_LayerIndex_"+r+"_NavigationIndex_"+k+"_Line"+F,A=this.convertRadius(h[F],h[F+1]);if(m<=1&&m>0&&(v=0,h[F].x>h[F+1].x&&(v=1)),m>=-1&&m<0&&(v=1,h[F].x>h[F+1].x&&(v=0)),S){_=O.color,x=O.size,w=i.i(a.isNullOrUndefined)(O.offSet)?0:O.offSet;var B=Math.round(x/2);M=O.position,C="Start"===M?"url(#triangle"+k+")":null,L="End"===M?"url(#triangle"+k+")":null,0!==P&&0===m&&(P="Start"===M?w:-w),P=i.i(a.isNullOrUndefined)(P)?0:P;var U=this.maps.element.id+"_triangle",j=this.maps.renderer.createDefs();j.innerHTML+='<marker id="triangle'+k+'"></marker>';var Z=j.querySelector("#triangle"+k);Z.setAttribute("markerWidth",x.toString()),Z.setAttribute("markerHeight",x.toString()),Z.setAttribute("refX",(B-P).toString()),Z.setAttribute("refY",B.toString()),Z.setAttribute("orient","auto");var R="M 0,0 L 0,"+x+" L "+B+", "+B+" Z";b=new o.z(U,_,g,y,1,1,f,R),s=this.maps.renderer.drawPath(b),Z.appendChild(s),j.appendChild(Z),T.appendChild(j)}if(m=Math.abs(m),I=0===m?"M "+h[F].x+","+h[F].y+"L "+h[F+1].x+","+h[F+1].y+" ":"M "+h[F].x+","+h[F].y+" A "+(A/2+(1-m)*A/(10*m))+" "+(A/2+(1-m)*A/(10*m))+" 0,0,"+v+" , "+h[F+1].x+","+h[F+1].y+" ",b=new o.z(z,"none",g,y,1,1,f,I),s=this.maps.renderer.drawPath(b),!i.i(a.isNullOrUndefined)(M)){"Start"===M?s.setAttribute("marker-start",C):s.setAttribute("marker-end",L)}i.i(o._0)(this.maps.selectedNavigationElementId,this.maps.navigationSelectionClass,s,"navigationlineselectionMapStyle"),T.appendChild(s),l.appendChild(T)}h=[]}}return l},e.prototype.convertRadius=function(e,t){var i=t.x-e.x,n=t.y-e.y;return Math.sqrt(Math.pow(i,2)+Math.pow(n,2))},e.prototype.getModuleName=function(){return"NavigationLine"},e.prototype.destroy=function(){this.maps=null},e}())},function(e,t,i){"use strict";i.d(t,"a",function(){return o});var n=i(0),o=function(){function e(e){}return e.prototype.polygonRender=function(e,t,o){var a=e.layersCollection[t],r=e.renderer.createGroup({id:e.element.id+"_LayerIndex_"+t+"_Polygons_Group"});return a.polygonSettings.polygons.map(function(l,s){var d=e.renderer.createGroup({id:e.element.id+"_LayerIndex_"+t+"_Polygons_Group_"+s}),p=l.points,h=i.i(n.i)(e,o,a,p),c=new n.z(e.element.id+"_LayerIndex_"+t+"_PolygonIndex_"+s,l.fill,l.borderWidth/o,l.borderColor,l.opacity,l.borderOpacity,"",h),u=e.renderer.drawPath(c);i.i(n._0)(e.selectedPolygonElementId,e.polygonSelectionClass,u,"PolygonselectionMapStyle"),d.appendChild(u),r.appendChild(d)}),r},e.prototype.getModuleName=function(){return"Polygon"},e.prototype.destroy=function(){},e}()},function(e,t,i){"use strict";i.d(t,"a",function(){return y});var n=i(1),o=(i.n(n),i(6)),a=(i.n(o),i(0)),r=i(5),l=i(3),s=i(4),d=i(10),p=i(0),h=i(11),c=i(2),u=i(26),m=(i.n(u),this&&this.__extends||function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}()),g=this&&this.__decorate||function(e,t,i,n){var o,a=arguments.length,r=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(a<3?o(r):a>3?o(t,i,r):o(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r},y=function(e){function t(t,o){var r=e.call(this,t,o)||this;return r.isTileMap=!1,r.isResize=!1,r.isReset=!1,r.baseSize=new a.a(0,0),r.translatePoint=new a.s(0,0),r.baseTranslatePoint=new a.s(0,0),r.zoomTranslatePoint=new a.s(0,0),r.markerZoomedState=!0,r.zoomPersistence=!1,r.defaultState=!0,r.centerPositionChanged=!1,r.isTileMapSubLayer=!1,r.markerNullCount=0,r.tileTranslatePoint=new a.s(0,0),r.baseTileTranslatePoint=new a.s(0,0),r.isDevice=!1,r.staticMapZoom=r.zoomSettings.enable?r.zoomSettings.zoomFactor:0,r.zoomNotApplied=!1,r.dataLabelShape=[],r.zoomShapeCollection=[],r.zoomLabelPositions=[],r.mouseDownEvent={x:null,y:null},r.mouseClickEvent={x:null,y:null},r.selectedElementId=[],r.selectedMarkerElementId=[],r.selectedBubbleElementId=[],r.selectedNavigationElementId=[],r.selectedPolygonElementId=[],r.selectedLegendElementId=[],r.legendSelectionCollection=[],r.shapeSelections=!0,r.legendSelection=!0,r.toggledLegendId=[],r.toggledShapeElementId=[],r.checkInitialRender=!0,r.initialTileTranslate=new a.s(0,0),r.isMarkerZoomCompleted=!1,r.markerDragId="",r.initialCheck=!0,r.applyZoomReset=!1,r.markerClusterExpandCheck=!1,r.markerClusterExpand=!1,r.mouseMoveId="",r.shapeSelectionItem=[],r.markerDragArgument=null,i.i(n.setValue)("mergePersistData",r.mergePersistMapsData,r),r}return m(t,e),Object.defineProperty(t.prototype,"isShapeSelected",{get:function(){return this.mapSelect},enumerable:!0,configurable:!0}),t.prototype.mergePersistMapsData=function(){var e,t;try{t=window.localStorage}catch(e){t=null}if(i.i(n.isNullOrUndefined)(t)||(e=window.localStorage.getItem(this.getModuleName()+this.element.id)),!i.i(n.isNullOrUndefined)(e)&&""!==e){var o=JSON.parse(e),a=Object.keys(o);this.isProtectedOnChange=!0;for(var r=0,l=a;r<l.length;r++){var s=l[r];"object"!=typeof this[s]||i.i(n.isNullOrUndefined)(this[s])?this[s]=o[s]:i.i(n.extend)(this[s],o[s])}this.isProtectedOnChange=!1}},t.prototype.getLocalizedLabel=function(e){return this.localeObject.getConstant(e)},t.prototype.preRender=function(){this.isDevice=n.Browser.isDevice,this.initPrivateVariable(),this.allowServerDataBinding=!1,this.unWireEVents(),this.wireEVents(),this.setCulture()},t.prototype.renderElements=function(){this.isDestroyed||(this.trigger(l.a,{maps:this}),this.createSVG(),this.findBaseAndSubLayers(),!i.i(n.isNullOrUndefined)(this.markerModule)&&this.markerModule.getMapsInstance()&&this.markerModule.initializeMarkerClusterList(),this.createSecondaryElement(),this.addTabIndex(),this.themeStyle=i.i(s.c)(this.theme),this.renderBorder(),this.renderTitle(this.titleSettings,"title",null,null),this.renderArea(),this.processRequestJsonData(),this.renderComplete(),this.isAddLayer=!!this.isTileMap&&this.isAddLayer)},t.prototype.render=function(){this.renderElements()},t.prototype.processRequestJsonData=function(){var e=this,t=this.layersCollection.length-1;this.serverProcess={request:0,response:0};var o,a;Array.prototype.forEach.call(this.layersCollection,function(r,l){if(r.shapeData instanceof u.DataManager){e.serverProcess.request++,a=r.shapeData,o=r.query instanceof u.Query?r.query:new u.Query;var s=a.executeQuery(o);s.then(function(t){e.processResponseJsonData("DataManager",t,r,"ShapeData")})}else(r.shapeData instanceof p._65||r.shapeData)&&(i.i(n.isNullOrUndefined)(r.shapeData.dataOptions)||e.processAjaxRequest(r,r.shapeData,"ShapeData"));if(r.dataSource instanceof u.DataManager){e.serverProcess.request++,a=r.dataSource,o=r.query instanceof u.Query?r.query:new u.Query;var s=a.executeQuery(o);s.then(function(e){r.dataSource=i.i(p._69)(e)})}if(r.markerSettings.length>0)for(var d=0;d<r.markerSettings.length;d++)!function(t){if(r.markerSettings[t].dataSource instanceof u.DataManager){e.serverProcess.request++,a=r.markerSettings[t].dataSource,o=r.markerSettings[t].query instanceof u.Query?r.markerSettings[t].query:new u.Query;a.executeQuery(o).then(function(e){r.markerSettings[t].dataSource=i.i(p._69)(e)})}}(d);if(r.bubbleSettings.length>0)for(var d=0;d<r.bubbleSettings.length;d++)!function(t){if(r.bubbleSettings[t].dataSource instanceof u.DataManager){e.serverProcess.request++,a=r.bubbleSettings[t].dataSource,o=r.bubbleSettings[t].query instanceof u.Query?r.bubbleSettings[t].query:new u.Query;a.executeQuery(o).then(function(e){r.bubbleSettings[t].dataSource=i.i(p._69)(e)})}}(d);(r.dataSource instanceof p._65||!i.i(n.isNullOrUndefined)(r.dataSource.dataOptions))&&e.processAjaxRequest(r,r.dataSource,"DataSource"),e.serverProcess.request===e.serverProcess.response&&t===l&&e.processResponseJsonData(null)})},t.prototype.processAjaxRequest=function(e,t,o){var a=this;this.serverProcess.request++;var r=new n.Fetch(t.dataOptions,t.type,t.contentType);r.onSuccess=function(t){if(i.i(n.isNullOrUndefined)(t.type)||"application/octet-stream"!==t.type)a.processResponseJsonData("Fetch",t,e,o);else{var r=new FileReader,l=a;r.onload=function(){t=JSON.parse(r.result.toString()),l.processResponseJsonData("Fetch",t,e,o)},r.readAsText(t)}},r.send(t.sendData)},t.prototype.processResponseJsonData=function(e,t,o,a){if(this.serverProcess.response++,e&&("ShapeData"===a?o.shapeData="DataManager"===e?i.i(p._69)(t):t:o.dataSource="DataManager"===e?i.i(p._69)(t):t),i.i(n.isNullOrUndefined)(e)||this.serverProcess.request!==this.serverProcess.response)i.i(n.isNullOrUndefined)(e)&&this.renderMap();else{var r=this.layersCollection;this.layersCollection=[];for(var l=0;l<r.length;l++)r[l].isBaseLayer&&this.layersCollection.push(r[l]);for(var s=0;s<r.length;s++)r[s].isBaseLayer||this.layersCollection.push(r[s]);this.renderMap()}},t.prototype.renderMap=function(){this.legendModule&&this.legendSettings.visible&&this.legendModule.renderLegend(),this.createTile(),this.zoomSettings.enable&&this.zoomModule&&this.zoomModule.createZoomingToolbars(),i.i(n.isNullOrUndefined)(this.dataLabelModule)||(this.dataLabelModule.dataLabelCollections=[]),this.mapLayerPanel.measureLayerPanel(),i.i(n.isNullOrUndefined)(this.svgObject)||this.element.appendChild(this.svgObject),this.setSecondaryElementPosition();for(var e=0;e<this.layers.length;e++){if(this.layers[e].selectionSettings&&this.layers[e].selectionSettings.enable&&this.layers[e].initialShapeSelection.length>0&&this.checkInitialRender){var t=this.layers[e].selectionSettings.enableMultiSelect;this.layers[e].selectionSettings.enableMultiSelect=t||!0;for(var o=this.layers[e].initialShapeSelection,a=0;a<this.layers[e].initialShapeSelection.length;a++)this.shapeSelection(e,o[a].shapePath,o[a].shapeValue,!0);this.layers[e].selectionSettings.enableMultiSelect=t,e===this.layers.length-1&&(this.checkInitialRender=!1)}if(!this.isResize)for(var r=0;r<this.layers[e].markerSettings.length;r++)if(this.layers[e].markerSettings[r].selectionSettings&&this.layers[e].markerSettings[r].selectionSettings.enable&&this.layers[e].markerSettings[r].initialMarkerSelection.length>0)for(var l=this.layers[e].markerSettings[r].initialMarkerSelection,a=0;a<l.length;a++)this.markerInitialSelection(e,r,this.layers[e].markerSettings[r],l[a].latitude,l[a].longitude)}if(!i.i(n.isNullOrUndefined)(document.getElementById(this.element.id+"_tile_parent"))){var s,d=this.svgObject.getBoundingClientRect(),h=document.getElementById(this.element.id),c=document.getElementById(this.element.id+"_tile_parent"),u=document.getElementById(this.element.id+"_tiles"),m=c.getBoundingClientRect(),g=void 0,y=void 0;y=parseFloat(c.style.left);var f=i.i(p.w)(this.titleSettings.text,this.titleSettings.textStyle),b=i.i(p.w)(this.titleSettings.subtitleSettings.text,this.titleSettings.subtitleSettings.textStyle);this.isTileMap&&this.isTileMapSubLayer&&"Bottom"===this.legendSettings.position&&this.legendSettings.visible?"Default"!==this.legendSettings.mode?s=0!==f.width&&0!==f.height?parseFloat(c.style.top)+b.height/2-this.legendModule.legendBorderRect.height/2:parseFloat(c.style.top)-this.mapAreaRect.y:(y=this.legendModule.legendBorderRect.x,s=0!==f.width&&0!==f.height?parseFloat(c.style.top)+b.height/2-this.legendModule.legendBorderRect.y:parseFloat(c.style.top)+b.height/2):(g=d.bottom-m.bottom-h.offsetTop,s=parseFloat(c.style.top)),s=g<=11?s:i.i(n.isNullOrUndefined)(this.legendModule)||"Bottom"!==this.legendSettings.position?2*s:this.mapAreaRect.y,y=g<=11?y:i.i(n.isNullOrUndefined)(this.legendModule)?2*y:y,c.style.top=s+"px",c.style.left=y+"px",u.style.top=s+"px",u.style.left=y+"px",!i.i(n.isNullOrUndefined)(this.legendModule)&&this.legendModule.totalPages.length>0&&(c.style.height=u.style.height=this.legendModule.legendTotalRect.height+"px",c.style.width=u.style.width=this.legendModule.legendTotalRect.width+"px")}this.arrangeTemplate(),this.annotationsModule&&"0px"!==this.width&&"0px"!==this.height&&"0%"!==this.width&&"0%"!==this.height&&this.annotationsModule.renderAnnotationElements(),this.element.style.outline="none",this.element.style.position="relative";for(var e=0;e<document.getElementsByTagName("path").length-1;e++)document.getElementsByTagName("path")[e].id.indexOf("shapeIndex")>-1&&(document.getElementsByTagName("path")[e].style.outline="none");this.zoomingChange(),this.zoomModule&&this.isDevice&&this.zoomModule.removeToolbarOpacity(this.isTileMap?Math.round(this.tileZoomLevel):this.mapScaleValue,this.element.id+"_Zooming_"),this.isZoomByPosition||this.zoomNotApplied||this.triggerZoomEvent(),this.isResize=!1},t.prototype.triggerZoomEvent=function(){var e,t=this.getMinMaxLatitudeLongitude();e={maps:this,isResized:this.isResize,minLatitude:t.minLatitude,maxLatitude:t.maxLatitude,minLongitude:t.minLongitude,maxLongitude:t.maxLongitude,cancel:!1,name:"Loaded"},this.trigger("loaded",e)},t.prototype.markerSelection=function(e,t,n,o){var r={color:e.border.color,width:e.border.width/t.scale,opacity:e.border.opacity},l={opacity:e.opacity,fill:e.fill,border:r,target:n.id,cancel:!1,data:o,maps:t};i.i(a._36)("MarkerselectionMap")?i.i(a._43)("MarkerselectionMap","MarkerselectionMapStyle",l):document.body.appendChild(i.i(a._42)("MarkerselectionMap","MarkerselectionMapStyle",l)),(0===this.selectedMarkerElementId.length||e.enableMultiSelect)&&("g"===n.tagName?(n.children[0].setAttribute("class","MarkerselectionMapStyle"),this.selectedMarkerElementId.push(n.children[0].id)):(n.setAttribute("class","MarkerselectionMapStyle"),this.selectedMarkerElementId.push(n.id)))},t.prototype.markerInitialSelection=function(e,t,n,o,r){var l=n.selectionSettings;if(l.enable)for(var s=0;s<n.dataSource.length;s++){var d=n.dataSource[s];if(d.latitude===o&&d.longitude===r){var p=this.element.id+"_LayerIndex_"+e+"_MarkerIndex_"+t+"_dataIndex_"+s;this.markerSelection(l,this,i.i(a._36)(p),d)}}},t.prototype.renderArea=function(){var e=this.mapsArea.border.width,t=this.mapsArea.background;if(e>0||t||this.themeStyle.areaBackgroundColor){var o={opacity:i.i(n.isNullOrUndefined)(this.mapsArea.border.opacity)?1:this.mapsArea.border.opacity,color:this.mapsArea.border.color,width:this.mapsArea.border.width},a=new p.B(this.element.id+"_MapAreaBorder",t||this.themeStyle.areaBackgroundColor,o,1,this.mapAreaRect);this.svgObject.appendChild(this.renderer.drawRectangle(a))}},t.prototype.addTabIndex=function(){this.element.setAttribute("aria-label",this.description||"Maps Element"),this.element.setAttribute("role","region"),this.element.tabIndex=this.tabIndex},t.prototype.setSecondaryElementPosition=function(){var e=i.i(p._32)(this.element.id+"_Secondary_Element"),t=this.element.getBoundingClientRect(),o=i.i(p._32)(this.element.id+"_svg");if(!i.i(n.isNullOrUndefined)(o)){var a=o.getBoundingClientRect();e.style.left=Math.max(a.left-t.left,0)+"px",e.style.top=Math.max(a.top-t.top,0)+"px"}},t.prototype.zoomingChange=function(){var e,t;if(i.i(p._32)(this.element.id+"_Layer_Collections")&&this.zoomModule&&(this.zoomModule.layerCollectionEle=i.i(p._32)(this.element.id+"_Layer_Collections")),this.isTileMap&&i.i(p._32)(this.element.id+"_Tile_SVG")&&i.i(p._32)(this.element.id+"_tile_parent")){var o=i.i(p._32)(this.element.id+"_tile_parent"),a=i.i(p._32)(this.element.id+"_Tile_SVG"),r=i.i(p._32)(this.element.id+"_Tile_SVG_Parent"),l=o.getBoundingClientRect(),s=a.getBoundingClientRect();e=l.left-s.left,t=l.top-s.top,r.style.left=e+"px",r.style.top=t+"px",!i.i(n.isNullOrUndefined)(this.legendModule)&&this.legendModule.totalPages.length>0&&(o.style.width=a.style.width=this.legendModule.legendTotalRect.width.toString(),o.style.height=a.style.height=this.legendModule.legendTotalRect.height.toString(),r.style.width=this.legendModule.legendTotalRect.width+"px",r.style.height=this.legendModule.legendTotalRect.height+"px");var d=document.getElementsByClassName("template");if(!i.i(n.isNullOrUndefined)(d)&&d.length>0)for(var h=0;h<d.length;h++){var u=d[h];u.style.left=e+"px",u.style.top=t+"px"}}if(this.zoomSettings.zoomFactor>=0){this.zoomModule&&this.zoomModule.toolBarGroup&&this.zoomSettings.enable&&this.zoomModule.alignToolBar();var m=document.getElementById(this.element.id+"_Layer_Collections");if(!i.i(n.isNullOrUndefined)(m)&&m.childElementCount>0)for(var h=0;h<m.childNodes.length;h++){var g=m.childNodes[h];if("g"===g.tagName&&-1===g.id.indexOf("_Legend_Group"))for(var y=parseFloat(g.id.split("_LayerIndex_")[1].split("_")[0]),f=0;f<g.childNodes.length;f++){var b=g.childNodes[f];b.id.indexOf("_Markers_Group")>-1||b.id.indexOf("_bubble_Group")>-1||b.id.indexOf("_dataLableIndex_Group")>-1||i.i(c._130)(b,y,this.scale,this)}}this.zoomModule&&(this.previousScale!==this.scale||this.zoomNotApplied||this.isZoomByPosition)&&this.zoomModule.applyTransform(this,!0)}},t.prototype.createSecondaryElement=function(){if(i.i(n.isNullOrUndefined)(document.getElementById(this.element.id+"_Secondary_Element"))){var e=i.i(n.createElement)("div",{id:this.element.id+"_Secondary_Element"});e.style.cssText="position: relative;z-index:2;",this.element.appendChild(e)}},t.prototype.getMinMaxLatitudeLongitude=function(){var e=document.getElementById(this.element.id);if(i.i(n.isNullOrUndefined)(e))return{minLatitude:0,maxLatitude:0,minLongitude:0,maxLongitude:0};var t=e.getBoundingClientRect(),o=this.isTileMap?this.pointToLatLong(this.mapAreaRect.x-this.margin.left,-this.mapAreaRect.y):this.getGeoLocation(0,this.mapAreaRect.x+t.left,this.mapAreaRect.y),a=this.isTileMap?this.pointToLatLong(this.mapAreaRect.width,this.mapAreaRect.height-this.mapAreaRect.y):this.getGeoLocation(0,this.mapAreaRect.x+t.left+this.mapAreaRect.width,this.mapAreaRect.y+this.mapAreaRect.height);return{minLatitude:o.latitude,maxLatitude:a.latitude,minLongitude:o.longitude,maxLongitude:a.longitude}},t.prototype.arrangeTemplate=function(){var e=this;document.getElementById(this.element.id+"_Legend_Border")&&(document.getElementById(this.element.id+"_Legend_Border").style.pointerEvents="none");var t=document.getElementsByClassName(this.element.id+"_template");!i.i(n.isNullOrUndefined)(t)&&t.length>0&&i.i(p._32)(this.element.id+"_Layer_Collections")&&!this.isTileMap&&Array.prototype.forEach.call(t,function(t){var o=0,a=0;if(!i.i(n.isNullOrUndefined)(t)&&t.childElementCount>0){var r=i.i(p._32)(e.element.id+"_Layer_Collections").getBoundingClientRect(),l=i.i(p._32)(t.id).getBoundingClientRect();-1===t.id.indexOf("Marker")&&(o=e.isTileMap?0:r.left<l.left?-Math.abs(l.left-r.left):Math.abs(l.left-r.left),a=e.isTileMap?0:r.top<l.top?-Math.abs(l.top-r.top):Math.abs(l.top-r.top)),Array.prototype.forEach.call(t.childNodes,function(t){if(-1!==t.id.indexOf("Marker")){if("hidden"!==t.style.visibility){var n=i.i(p._32)(t.id).getBoundingClientRect();t.style.left=parseFloat(t.style.left)-(e.isTileMap?0:n.width/2)+"px",t.style.top=parseFloat(t.style.top)-(e.isTileMap?0:n.height/2)+"px"}}else t.style.left=parseFloat(t.style.left)+o+"px",t.style.top=parseFloat(t.style.top)+a+"px",t.style.transform="translate(-50%, -50%)"})}})},t.prototype.createTile=function(){var e=this.layersCollection[0];if(e.isBaseLayer&&("OSM"===e.layerType||"Bing"===e.layerType||"GoogleStaticMap"===e.layerType||"Google"===e.layerType||!i.i(n.isNullOrUndefined)(e.urlTemplate)&&""!==e.urlTemplate)){i.i(a._27)(this.element.id+"_tile_parent"),i.i(a._27)(this.element.id+"_tiles"),i.i(a._27)("animated_tiles");var t=i.i(n.createElement)("div",{id:this.element.id+"_tile_parent"});t.style.cssText="position: absolute; left: "+this.mapAreaRect.x+"px; right: "+this.margin.right+"px; top: "+(this.mapAreaRect.y+0)+"px; height: "+this.mapAreaRect.height+"px; width: "+this.mapAreaRect.width+"px; overflow: hidden;";var o=i.i(n.createElement)("div",{id:this.element.id+"_tiles"});o.style.cssText="position: absolute; left: "+this.mapAreaRect.x+"px; right: "+this.margin.right+"px; top: "+(this.mapAreaRect.y+0)+"px; height: "+this.mapAreaRect.height+"px; width: "+this.mapAreaRect.width+"px; overflow: hidden;",this.element.appendChild(t),this.element.appendChild(o)}},t.prototype.initPrivateVariable=function(){if(""===this.element.id){var e=document.getElementsByClassName("e-maps").length;this.element.id="maps_control_"+e}this.renderer=new o.SvgRenderer(this.element.id),this.mapLayerPanel=new d.a(this)},t.prototype.findBaseAndSubLayers=function(){var e=this,t=this.baseLayerIndex,o=[],a=[];this.layersCollection=[],Array.prototype.forEach.call(this.layers,function(e){"Layer"===e.type?o.push(e):a.push(e)});for(var r=0;r<o.length;r++){var l=o[r];if(l.visible&&t===r){l.isBaseLayer=!0,this.isTileMap=!("Geometry"===l.layerType&&!i.i(n.isNullOrUndefined)(l.shapeData)),this.layersCollection.push(l);break}if(r===o.length-1){this.layersCollection.push(o[0]);break}}a.map(function(t){t.visible&&e.layersCollection.push(t)})},t.prototype.renderBorder=function(){var e=this.border.width,t=this.svgObject.querySelector("#"+this.element.id+"_MapBorder");if((e>0||this.background||this.themeStyle.backgroundColor)&&i.i(n.isNullOrUndefined)(t)){var o={opacity:i.i(n.isNullOrUndefined)(this.border.opacity)?1:this.border.opacity,color:this.border.color,width:this.border.width},a=new p.B(this.element.id+"_MapBorder",this.background||this.themeStyle.backgroundColor,o,1,new p.I(e/2,e/2,this.availableSize.width-e,this.availableSize.height-e));this.svgObject.appendChild(this.renderer.drawRectangle(a))}else t.setAttribute("fill",this.background||this.themeStyle.backgroundColor)},t.prototype.renderTitle=function(e,t,o,a){var r,l={size:e.textStyle.size,color:e.textStyle.color,fontFamily:e.textStyle.fontFamily,fontWeight:e.textStyle.fontWeight,fontStyle:e.textStyle.fontStyle,opacity:e.textStyle.opacity},d=Math.abs(this.margin.left+this.margin.right-this.availableSize.width);if(l.fontFamily=i.i(n.isNullOrUndefined)(l.fontFamily)?this.themeStyle.fontFamily:l.fontFamily,l.fontWeight=l.fontWeight||this.themeStyle.titleFontWeight,l.size="title"===t?l.size||this.themeStyle.titleFontSize:l.size||this.themeStyle.subTitleFontSize||s.a.mapsSubTitleFont.size,e.text){i.i(n.isNullOrUndefined)(a)&&(a=this.renderer.createGroup({id:this.element.id+"_Title_Group"}));var h=i.i(p._25)(d,e.text,l),c=i.i(p.w)(h,l),u=i.i(n.isNullOrUndefined)(o)?new p.I(this.margin.left,this.margin.top,this.availableSize.width,this.availableSize.height):o,m=i.i(p._26)(u,e.alignment,c,t),g=new p.y(this.element.id+"_Map_"+t,m.x,m.y,"start",h),y=new p.I(m.x,m.y,c.width,c.height),f=i.i(p.K)(g,l,l.color||("title"===t?this.themeStyle.titleFontColor:this.themeStyle.subTitleFontColor),a);f.setAttribute("aria-label",e.text),f.setAttribute("role","region"),("title"===t&&!e.subtitleSettings.text||"subtitle"===t)&&(r=Math.abs(y.y+this.margin.bottom-this.availableSize.height),this.mapAreaRect=new p.I(this.margin.left,y.y+10,d,r-10)),"subtitle"!==t&&e.subtitleSettings.text?this.renderTitle(e.subtitleSettings,"subtitle",y,a):this.svgObject.appendChild(a)}else r=Math.abs(this.margin.top+this.margin.bottom-this.availableSize.height),this.mapAreaRect=new p.I(this.margin.left,this.margin.top,d,r)},t.prototype.createSVG=function(){this.removeSvg(),i.i(a.d)(this)},t.prototype.removeSvg=function(){if(i.i(a._27)(this.element.id+"_Secondary_Element"),i.i(a._27)(this.element.id+"_tile_parent"),i.i(a._27)(this.element.id+"_tiles"),this.svgObject){for(;this.svgObject.childNodes.length>0;)this.svgObject.removeChild(this.svgObject.firstChild);!this.svgObject.hasChildNodes()&&this.svgObject.parentNode&&i.i(n.remove)(this.svgObject)}this.clearTemplate()},t.prototype.wireEVents=function(){n.EventHandler.add(this.element,"click",this.mapsOnClick,this),n.EventHandler.add(this.element,"contextmenu",this.mapsOnRightClick,this),n.EventHandler.add(this.element,"dblclick",this.mapsOnDoubleClick,this),n.EventHandler.add(this.element,n.Browser.touchStartEvent,this.mouseDownOnMap,this),n.EventHandler.add(this.element,n.Browser.touchMoveEvent,this.mouseMoveOnMap,this),n.EventHandler.add(this.element,n.Browser.touchEndEvent,this.mouseEndOnMap,this),n.EventHandler.add(this.element,"pointerleave mouseleave",this.mouseLeaveOnMap,this),n.EventHandler.add(this.element,"keydown",this.keyDownHandler,this),n.EventHandler.add(this.element,"keyup",this.keyUpHandler,this),this.resizeEvent=this.mapsOnResize.bind(this),window.addEventListener(n.Browser.isTouch&&"orientation"in window&&"onorientationchange"in window?"orientationchange":"resize",this.resizeEvent)},t.prototype.unWireEVents=function(){n.EventHandler.remove(this.element,"click",this.mapsOnClick),n.EventHandler.remove(this.element,"contextmenu",this.mapsOnRightClick),n.EventHandler.remove(this.element,"dblclick",this.mapsOnDoubleClick),n.EventHandler.remove(this.element,n.Browser.touchStartEvent,this.mouseDownOnMap),n.EventHandler.remove(this.element,n.Browser.touchMoveEvent,this.mouseMoveOnMap),n.EventHandler.remove(this.element,n.Browser.touchEndEvent,this.mouseEndOnMap),n.EventHandler.remove(this.element,"pointerleave mouseleave",this.mouseLeaveOnMap),n.EventHandler.remove(this.element,"keydown",this.keyDownHandler),n.EventHandler.remove(this.element,"keyup",this.keyUpHandler),window.removeEventListener(n.Browser.isTouch&&"orientation"in window&&"onorientationchange"in window?"orientationchange":"resize",this.resizeEvent)},t.prototype.mouseLeaveOnMap=function(e){document.getElementsByClassName("highlightMapStyle").length>0&&this.legendModule&&(this.legendModule.removeShapeHighlightCollection(),i.i(a._45)(document.getElementsByClassName("highlightMapStyle")[0]))},t.prototype.keyUpHandler=function(e){var t=e.target.id;this.isTileMap&&this.removeTileMap(),"Tab"===e.code&&t.indexOf("_LayerIndex_")>-1&&t.indexOf("shapeIndex")>-1?this.keyboardHighlightSelection(t,e.type):-1===t.indexOf("_LayerIndex_")&&-1===t.indexOf("shapeIndex")&&i.i(p._39)("highlightMapStyle").length>0&&(i.i(a._45)(i.i(p._39)("highlightMapStyle")[0]),this.legendSettings.visible&&this.legendModule&&this.legendModule.removeShapeHighlightCollection())},t.prototype.keyboardHighlightSelection=function(e,t){var o=parseInt(e.split("_LayerIndex_")[1].split("_")[0],10),a=parseInt(e.split("_shapeIndex_")[1].split("_")[0],10),r=this.layers[o].shapeData.features.length>a?this.layers[o].shapeData.features[a].properties:null,l=parseInt(e.split("_dataIndex_")[1].split("_")[0],10),s=i.i(n.isNullOrUndefined)(l)?null:this.layers[o].dataSource[l];this.layers[o].selectionSettings.enable&&"keydown"===t&&this.selectionModule?(this.selectionModule.selectionsettings=this.layers[o].selectionSettings,this.selectionModule.selectionType="Shape",this.selectionModule.selectElement(event.target,o,s,r)):this.highlightModule&&this.layers[o].highlightSettings.enable&&"keyup"===t&&!event.target.classList.contains("ShapeselectionMapStyle")&&(this.highlightModule.highlightSettings=this.layers[o].highlightSettings,this.highlightModule.handleHighlight(event.target,o,s,r))},t.prototype.keyDownHandler=function(e){var t=this.zoomModule,o=e.target.id;if(("ArrowUp"===e.code||"ArrowDown"===e.code||"ArrowLeft"===e.code||"ArrowRight"===e.code)&&t){var r=document.getElementById(this.element.id+"_animated_tiles");this.isTileMap&&!i.i(n.isNullOrUndefined)(r)&&(this.currentTiles=r.cloneNode(!0))}if(this.zoomSettings.enable&&t&&("+"===e.key||"Equal"===e.code))t.performZoomingByToolBar("zoomin");else if(this.zoomSettings.enable&&t&&("-"===e.key||"Minus"===e.code))t.performZoomingByToolBar("zoomout");else if(this.zoomSettings.enable&&t&&82===e.keyCode)t.performZoomingByToolBar("reset"),t.isPanModeEnabled=!1;else if(this.zoomSettings.enable&&this.zoomSettings.enablePanning&&t&&("ArrowUp"===e.code||"ArrowDown"===e.code))e.preventDefault(),t.mouseDownLatLong.x=0,t.mouseMoveLatLong.y=this.mapAreaRect.height/7,t.panning("None",t.mouseDownLatLong.x,"ArrowUp"===e.code?-t.mouseMoveLatLong.y:t.mouseMoveLatLong.y,e),t.mouseDownLatLong.y=t.mouseMoveLatLong.y;else if(this.zoomSettings.enable&&this.zoomSettings.enablePanning&&t&&("ArrowLeft"===e.code||"ArrowRight"===e.code))e.preventDefault(),t.mouseDownLatLong.y=0,t.mouseMoveLatLong.x=this.mapAreaRect.width/7,t.panning("None","ArrowLeft"===e.code?-t.mouseMoveLatLong.x:t.mouseMoveLatLong.x,t.mouseDownLatLong.y,e),t.mouseDownLatLong.x=t.mouseMoveLatLong.x;else if("Enter"===e.code){if(o=e.target.id,e.preventDefault(),this.legendModule&&(o.indexOf("_Left_Page_Rect")>-1||o.indexOf("_Right_Page_Rect")>-1)){this.mapAreaRect=this.legendModule.initialMapAreaRect,this.legendModule.currentPage=o.indexOf("_Left_Page_")>-1?this.legendModule.currentPage-1:this.legendModule.currentPage+1,this.legendModule.legendGroup=this.renderer.createGroup({id:this.element.id+"_Legend_Group"}),this.legendModule.drawLegendItem(this.legendModule.currentPage);var l=document.getElementById(this.element.id+"_Paging_Text").textContent,s=l.split("/").map(Number);o.indexOf("_Left_Page_Rect")>-1?(1!==s[0]&&e.target.focus(),e.target.style.outlineColor=s[0]-1!==s[1]?"":"transparent"):o.indexOf("_Right_Page_Rect")>-1&&(s[0]!==s[1]&&e.target.focus(),e.target.style.outlineColor=s[0]!==s[1]+1?"":"transparent"),i.i(a._40)(this.element.id+"_Legend_Border",this.element.id)&&(i.i(a._40)(this.element.id+"_Legend_Border",this.element.id).style.pointerEvents="none")}o.indexOf("shapeIndex")>-1&&this.keyboardHighlightSelection(o,e.type)}this.zoomModule&&this.zoomModule.removeToolbarOpacity(this.isTileMap?Math.round(this.tileZoomLevel):this.mapScaleValue,this.mouseMoveId)},t.prototype.SelectedElement=function(e){var t=!1;return"ShapeselectionMapStyle"===e.getAttribute("class")&&(t=!0),t},t.prototype.mapsOnClick=function(e){var t=this,o=e.target,a=o.id,r=null,s=null;if(this.mouseClickEvent={x:e.x,y:e.y},-1===o.id.indexOf("_ToolBar")){var d=this.getClickLocation(a,e.pageX,e.pageY,o,e.layerX,e.layerY);i.i(n.isNullOrUndefined)(d)||(r=d.latitude,s=d.longitude);var p={cancel:!1,name:l.c,target:a,x:e.clientX,y:e.clientY,latitude:r,longitude:s,isShapeSelected:this.SelectedElement(o)};this.onclick?(p.name=l.d,this.trigger("onclick",p,function(i){t.clickHandler(e,p,o)})):this.trigger("click",p,function(i){t.clickHandler(e,p,o)})}this.zoomModule&&(this.zoomModule.removeToolbarOpacity(this.isTileMap?Math.round(this.tileZoomLevel):this.mapScaleValue,a),this.isDevice&&this.zoomModule.removeToolbarClass("","","","",""))},t.prototype.clickHandler=function(e,t,n){n.id.indexOf("shapeIndex")>-1&&(this.mergeCluster(),i.i(a._36)(this.element.id+"_mapsTooltip")&&this.mapsTooltipModule.tooltipTargetID.indexOf("_MarkerIndex_")>-1&&i.i(a._27)(this.element.id+"_mapsTooltip")),this.markerModule&&this.markerModule.markerClusterClick(e),t.cancel||this.notify(l.c,n),t.cancel||-1===n.id.indexOf("shapeIndex")||this.triggerShapeSelection(n)},t.prototype.triggerShapeSelection=function(e){var t=parseInt(e.id.split("_LayerIndex_")[1].split("_")[0],10),o=i.i(a._38)(e.id,this.layers[t].selectionSettings,this,l.i);o.cancel||!this.selectionModule||i.i(n.isNullOrUndefined)(this.shapeSelected)?o.cancel&&this.selectionModule&&i.i(n.isNullOrUndefined)(o.data)&&(i.i(a._45)(e),this.selectionModule.removedSelectionList(e)):i.i(a._43)(this.selectionModule.selectionType+"selectionMap",this.selectionModule.selectionType+"selectionMapStyle",o)},t.prototype.getMarkerClickLocation=function(e,t,n,o,r,l){document.getElementById(this.element.id+"_svg").style.cursor="grabbing";var s=i.i(a._36)(r.targetId),d=this.getClickLocation(r.targetId,e,t,s,n,o),h=this.isTileMap?i.i(p.j)(new a.H(d.longitude,d.latitude),this.tileZoomLevel,this.tileTranslatePoint,!0):i.i(p.h)(d.latitude,d.longitude,this.mapLayerPanel.currentFactor,this.layersCollection[r.layerIndex],this),c=this.translatePoint,u=this.isTileMap?h.x:(h.x+c.x)*this.scale,m=this.isTileMap?h.y:(h.y+c.y)*this.scale;if("Balloon"!==this.markerDragArgument.shape?s.setAttribute("transform","translate( "+u+" "+m+" )"):s.parentElement.setAttribute("transform","translate( "+u+" "+m+" )"),l){var g=this.layers[r.layerIndex].markerSettings[r.markerIndex];d=this.getClickLocation(r.targetId,e-g.offset.x,t-g.offset.y,s,n-g.offset.x,o-g.offset.y)}return d},t.prototype.getClickLocation=function(e,t,o,r,l,s,d){var p,h=0;if(-1===e.indexOf("_LayerIndex_")||this.isTileMap||i.i(n.isNullOrUndefined)(d)&&(parseInt(this.mouseDownEvent.x,10)!==parseInt(this.mouseClickEvent.x,10)||parseInt(this.mouseDownEvent.y,10)!==parseInt(this.mouseClickEvent.y,10)))this.isTileMap&&(!i.i(n.isNullOrUndefined)(d)||parseInt(this.mouseDownEvent.x,10)===parseInt(this.mouseClickEvent.x,10)&&parseInt(this.mouseDownEvent.y,10)===parseInt(this.mouseClickEvent.y,10))&&(p=this.getTileGeoLocation(l,s));else if(h=parseFloat(e.split("_LayerIndex_")[1].split("_")[0]),"Normal"===this.layers[h].geometryType)if(e.indexOf("_shapeIndex_")>-1){var c=r.parentElement,u=c.id.indexOf("_Point_Group")>-1||c.id.indexOf("_LineString_Group")>-1||c.id.indexOf("_MultiLineString_Group")>-1||c.id.indexOf("_Polygon_Group")>-1?c.parentElement:c,m=i.i(a.e)(t,o,u),g=this.mapLayerPanel.currentFactor*this.mapScaleValue,y=Math.abs(-this.baseMapBounds.longitude.min*g),f=Math.abs(this.baseMapBounds.latitude.max*g);p={latitude:Math.abs(this.baseMapBounds.latitude.max-m.y/g),longitude:Math.abs(m.x/g+this.baseMapBounds.longitude.min)},this.baseMapBounds.longitude.min<0&&y>m.x&&(p.longitude=-p.longitude),this.baseMapBounds.latitude.min<0&&f>m.y&&(p.latitude=-p.latitude)}else if(e.indexOf("_MarkerIndex_")>-1&&this.markerModule&&!this.markerDragArgument){var b=parseInt(e.split("_MarkerIndex_")[1].split("_")[0],10),v=parseInt(e.split("_dataIndex_")[1].split("_")[0],10);if(isNaN(b)||isNaN(v))p={latitude:null,longitude:null};else{var S=this.layers[h].markerSettings[b].dataSource[v];p={latitude:S.latitude,longitude:S.longitude}}}else if(e.indexOf("_MarkerIndex_")>-1&&this.markerModule&&this.markerDragArgument){var _=document.getElementById(this.element.id+"_LayerIndex_"+this.markerDragArgument.layerIndex),x=_.getBoundingClientRect(),O=new a.H(t>x.left?Math.abs(x.left-t):0,o>x.top?Math.abs(x.top-o):0),y=Math.abs(-this.baseMapBounds.longitude.min*this.mapLayerPanel.currentFactor),f=Math.abs(this.baseMapBounds.latitude.max*this.mapLayerPanel.currentFactor);p={latitude:Math.abs(this.baseMapBounds.latitude.max-O.y/(this.mapLayerPanel.currentFactor*this.scale)),longitude:Math.abs(O.x/(this.mapLayerPanel.currentFactor*this.scale)+this.baseMapBounds.longitude.min)},this.baseMapBounds.longitude.min<0&&y>O.x&&(p.longitude=-p.longitude),this.baseMapBounds.latitude.min<0&&f>O.y&&(p.latitude=-p.latitude)}else p={latitude:null,longitude:null};else p=this.getGeoLocation(h,l,s);return p},t.prototype.removeTileMap=function(){var e=document.getElementById(this.element.id+"_animated_tiles");if(!i.i(n.isNullOrUndefined)(this.currentTiles)&&e.childElementCount<this.currentTiles.childElementCount)for(var t=e.childElementCount-1;t>=this.currentTiles.childElementCount;t--)e.removeChild(e.children[t]);this.currentTiles=null},t.prototype.mouseEndOnMap=function(e){var t,o,a,r=0,l=0;if(-1!==e.type.indexOf("touch")?(this.isTouch=!0,a=e,r=t=a.changedTouches[0].pageX,o=a.changedTouches[0].pageY,l=o-(this.isTileMap?10:0),this.mouseClickEvent={x:t,y:o}):(this.isTouch="touch"===e.pointerType,t=e.pageX,o=e.pageY,r=e.layerX,l=e.layerY-(this.isTileMap?10:0)),this.isTileMap&&this.removeTileMap(),this.isTouch&&(this.titleTooltip(e,t,o,!0),i.i(n.isNullOrUndefined)(this.legendModule)||this.legendTooltip(e,e.pageX,e.pageY,!0)),this.notify(n.Browser.touchEndEvent,e),e.cancelable&&!this.isTouch&&e.preventDefault(),i.i(n.isNullOrUndefined)(this.markerDragArgument))document.getElementById(this.element.id+"_svg").style.cursor="auto";else{var s=this.markerDragArgument;this.mouseClickEvent.x=this.mouseDownEvent.x,this.mouseClickEvent.y=this.mouseDownEvent.y;var d=this.getMarkerClickLocation(t,o,r,l,this.markerDragArgument,!0),p=this.layers[s.layerIndex].markerSettings[s.markerIndex];document.getElementById(this.element.id+"_svg").style.cursor=p.enableDrag?"pointer":"grabbing";var h={name:"markerDragEnd",x:t,y:o,latitude:d.latitude,longitude:d.longitude,layerIndex:s.layerIndex,markerIndex:s.markerIndex,dataIndex:s.dataIndex};if(i.i(n.isNullOrUndefined)(p.latitudeValuePath)&&i.i(n.isNullOrUndefined)(p.longitudeValuePath)){var c=p.dataSource[s.dataIndex];i.i(n.isNullOrUndefined)(c.Longitude)||i.i(n.isNullOrUndefined)(c.Latitude)?(p.dataSource[s.dataIndex].latitude=h.latitude,p.dataSource[s.dataIndex].longitude=h.longitude):(p.dataSource[s.dataIndex].Latitude=h.latitude,p.dataSource[s.dataIndex].Longitude=h.longitude)}else p.dataSource[s.dataIndex][p.latitudeValuePath]=h.latitude,p.dataSource[s.dataIndex][p.longitudeValuePath]=h.longitude;this.markerDragId="",this.markerDragArgument=null,this.trigger("markerDragEnd",h)}return this.zoomModule&&this.isDevice&&(this.zoomModule.removeToolbarOpacity(this.isTileMap?Math.round(this.tileZoomLevel):this.scale,this.element.id+"_Zooming_"),this.zoomModule.removeToolbarClass("","","","","")),!1},t.prototype.mouseDownOnMap=function(e){this.mouseDownEvent={x:e.x,y:e.y},-1!==e.type.indexOf("touch")&&e.changedTouches&&(this.mouseDownEvent={x:e.changedTouches[0].pageX,y:e.changedTouches[0].pageY}),this.isDevice&&!i.i(n.isNullOrUndefined)(this.mapsTooltipModule)&&this.mapsTooltipModule.renderTooltip(e);var t=e.target;this.markerDragId=t.id;var o=document.getElementById(this.element.id+"_animated_tiles");if(this.isTileMap&&!i.i(n.isNullOrUndefined)(o)&&(this.currentTiles=o.cloneNode(!0)),-1===t.id.indexOf("_ToolBar")){var a=this.markerModule;(t.id.indexOf("shapeIndex")>-1||t.id.indexOf("Tile")>-1)&&this.mergeCluster(),a&&(a.markerClick(e),a.markerClusterClick(e)),this.bubbleModule&&this.bubbleModule.bubbleClick(e)}this.notify(n.Browser.touchStartEvent,e)},t.prototype.mergeCluster=function(){this.markerModule&&this.markerModule.sameMarkerData.length>0&&(!this.zoomModule||this.zoomModule.isSingleClick)&&(i.i(a.W)(this.markerModule.sameMarkerData,this),this.markerModule.sameMarkerData=[])},t.prototype.mapsOnRightClick=function(e){var t=e.target,o=t.id,a=null,r=null;if(this.mouseClickEvent=this.mouseDownEvent={x:e.x,y:e.y},-1===t.id.indexOf("_ToolBar")){var s=this.getClickLocation(o,e.pageX,e.pageY,t,e.layerX,e.layerY);i.i(n.isNullOrUndefined)(s)||(a=s.latitude,r=s.longitude);var d={cancel:!1,name:l.e,target:o,x:e.clientX,y:e.clientY,latitude:a,longitude:r,isShapeSelected:!1};this.trigger("rightClick",d)}},t.prototype.mapsOnDoubleClick=function(e){this.notify("dblclick",e);var t,i=e.target,n=i.id,o=0,a=null,r=null;if(-1===i.id.indexOf("_ToolBar")){-1===i.id.indexOf("_LayerIndex_")||this.isTileMap||this.mouseDownEvent.x!==e.clientX||this.mouseDownEvent.y!==e.clientY?this.isTileMap&&this.mouseDownEvent.x===e.clientX&&this.mouseDownEvent.y===e.clientY&&(t=this.getTileGeoLocation(e.layerX,e.layerY),a=t.latitude,r=t.longitude):(o=parseFloat(i.id.split("_LayerIndex_")[1].split("_")[0]),t=this.getGeoLocation(o,e.layerX,e.layerY),a=t.latitude,r=t.longitude);var s={cancel:!1,name:l.f,x:e.clientX,y:e.clientY,target:n,latitude:a,longitude:r,isShapeSelected:null};this.trigger("doubleClick",s)}},t.prototype.mouseMoveOnMap=function(e){var t;t="touchmove"===e.type?e.target:t=e.target,this.markerModule&&(this.markerModule.markerMove(e),this.markerModule.markerClusterMouseMove(e)),this.bubbleModule&&this.bubbleModule.bubbleMove(e),-1===t.id.indexOf("MarkerIndex")&&(document.getElementById(this.element.id+"_svg").style.cursor="auto"),this.onMouseMove(e),this.notify(n.Browser.touchMoveEvent,e)},t.prototype.onMouseMove=function(e){var t=e.target;this.mouseMoveId=t.id;var o,a,r=null,l=0,s=0;if(-1===e.type.indexOf("touch")?(o=e.pageX,a=e.pageY,l=e.layerX,s=e.layerY-(this.isTileMap?10:0),this.titleTooltip(e,e.pageX,e.pageY),i.i(n.isNullOrUndefined)(this.legendModule)||this.legendTooltip(e,e.pageX,e.pageY,!0)):(r=e.touches,l=o=r[0].clientX,s=a=r[0].clientY-(this.isTileMap?10:0)),!i.i(n.isNullOrUndefined)(this.markerDragArgument)){var d=this.markerDragArgument;this.mouseClickEvent.x=this.mouseDownEvent.x,this.mouseClickEvent.y=this.mouseDownEvent.y,this.getMarkerClickLocation(o,a,l,s,d,!1)}return this.zoomModule&&this.zoomModule.removeToolbarOpacity(this.isTileMap?Math.round(this.tileZoomLevel):this.scale,e.target.id),!1},t.prototype.legendTooltip=function(e,t,n,o){var r,l,s=e.target.id,d=this.legendModule.currentPage,p=e.target.id.split("_Index_")[1];d=this.legendModule.totalPages.length<=this.legendModule.currentPage?this.legendModule.totalPages.length-1:this.legendModule.currentPage<0?0:this.legendModule.currentPage;for(var h=0!==this.legendModule.totalPages.length?this.legendModule.totalPages[d].Collection.length:this.legendModule.totalPages.length,c=0;c<h;c++)l=this.legendModule.totalPages[d].Collection[c],r=l.DisplayText,s=e.target.id,p=e.target.id.split("_Index_")[1],s===this.element.id+"_Legend_Text_Index_"+p&&e.target.textContent.indexOf("...")>-1&&l.idIndex===parseInt(p,10)&&i.i(a._48)(r,this.legendSettings.textStyle.size,t,n,this.element.offsetWidth,this.element.offsetHeight,this.element.id+"_EJ2_Legend_Text_Tooltip",i.i(a._36)(this.element.id+"_Secondary_Element"),o);s!==this.element.id+"_Legend_Text_Index_"+p&&i.i(a._27)(this.element.id+"_EJ2_Legend_Text_Tooltip")},t.prototype.titleTooltip=function(e,t,n,o){var r=e.target.id;r===this.element.id+"_LegendTitle"&&e.target.textContent.indexOf("...")>-1?i.i(a._48)(this.legendSettings.title.text,this.legendSettings.titleStyle.size,t,n,this.element.offsetWidth,this.element.offsetHeight,this.element.id+"_EJ2_LegendTitle_Tooltip",i.i(a._36)(this.element.id+"_Secondary_Element"),o):i.i(a._27)(this.element.id+"_EJ2_LegendTitle_Tooltip"),r===this.element.id+"_Map_title"&&e.target.textContent.indexOf("...")>-1?i.i(a._48)(this.titleSettings.text,this.titleSettings.textStyle.size||this.themeStyle.titleFontSize,t,n,this.element.offsetWidth,this.element.offsetHeight,this.element.id+"_EJ2_Title_Tooltip",i.i(a._36)(this.element.id+"_Secondary_Element"),o):i.i(a._27)(this.element.id+"_EJ2_Title_Tooltip")},t.prototype.mapsOnResize=function(e){var t=this;if(!this.isDestroyed&&!this.isExportInitialTileMap){this.isResize=this.isReset=!0;var o={cancel:!1,name:l.g,previousSize:this.availableSize,currentSize:i.i(a.c)(this),maps:this};this.trigger(l.g,o),o.cancel||(this.resizeTo&&clearTimeout(this.resizeTo),!i.i(n.isNullOrUndefined)(this.element)&&this.element.classList.contains("e-maps")&&(this.resizeTo=setTimeout(function(){t.unWireEVents(),t.createSVG(),t.refreshing=!0,t.wireEVents(),t.render(),t.refreshing=!1},500)))}return!1},t.prototype.zoomByPosition=function(e,t){if(!this.isDestroyed){this.zoomNotApplied=this.isMarkerZoomCompleted=!1;var o=this.zoomSettings.zoomFactor===t;this.previousProjection=null,!this.isTileMap&&this.zoomModule?i.i(n.isNullOrUndefined)(e)?(this.zoomSettings.zoomFactor=t,this.isZoomByPosition=!0,this.mapScaleValue=null):(this.zoomSettings.zoomFactor=t,o=this.centerPosition.latitude===e.latitude&&this.centerPosition.longitude===e.longitude||o,this.centerPosition=e,this.isZoomByPosition=!0,this.mapScaleValue=null):this.zoomModule&&(this.tileZoomLevel=this.zoomSettings.zoomFactor=t,o=this.centerPosition.latitude===e.latitude&&this.centerPosition.longitude===e.longitude||o,this.centerPosition=e,this.isZoomByPosition=!0),o&&this.refresh()}},t.prototype.panByDirection=function(e,t){if(!this.isDestroyed){var i=0,n=0;switch(e){case"Left":i=-this.mapAreaRect.width/7;break;case"Right":i=this.mapAreaRect.width/7;break;case"Top":n=-this.mapAreaRect.height/7;break;case"Bottom":n=this.mapAreaRect.height/7}this.zoomModule&&this.zoomModule.panning(e,i,n,t)}},t.prototype.addLayer=function(e){if(!this.isDestroyed){var t=this.layers;t.push(e),this.isAddLayer=!0,this.layers=t}},t.prototype.removeLayer=function(e){if(!this.isDestroyed){var t=this.layers;t.splice(e,1),this.layers=t}},t.prototype.addMarker=function(e,t){if(!this.isDestroyed&&!i.i(n.isNullOrUndefined)(this.markerModule)){var o=document.getElementById(this.element.id+"_LayerIndex_"+e);if(t.length>0&&o){for(var a=0,r=t;a<r.length;a++){var l=r[a];this.layersCollection[e].markerSettings.push(new c._19(this,"markerSettings",l))}this.markerModule.markerRender(this,o,e,this.mapLayerPanel.currentFactor,"AddMarker"),this.arrangeTemplate()}}},t.prototype.shapeSelection=function(e,t,o,r){if(!this.isDestroyed){var l=void 0,s=void 0,d=Array.isArray(t)?t:Array(t);i.i(n.isNullOrUndefined)(r)&&(r=!0);var p=this.layers[e].selectionSettings;if(!p.enableMultiSelect&&this.legendSelection&&r&&this.removeShapeSelection(),"SubLayer"===this.layers[e].type)for(var h=0;h<this.layersCollection.length;h++)if(this.layersCollection[h].shapeData===this.layers[e].shapeData){s=h;break}if(p.enable)for(var c=void 0,u=void 0,m=void 0,g=void 0,y=void 0,f=void 0,b=this.layers[e].shapeData.features,h=0;h<b.length;h++)for(var v=0;v<d.length;v++){var S=!i.i(n.isNullOrUndefined)(b[h].properties[d[v]])&&isNaN(b[h].properties[d[v]])?b[h].properties[d[v]].toLowerCase():b[h].properties[d[v]],_=i.i(n.isNullOrUndefined)(o)||"string"!=typeof o?o:o.toLowerCase(),x=void 0;if(S===_){i.i(n.isNullOrUndefined)(this.layers[e].shapeSettings.colorValuePath)||(x=i.i(a._19)(this.layers[e].dataSource,b[h].properties,this.layers[e].shapeDataPath,this.layers[e].shapePropertyPath,this.layers[e]));var O=this.layers[e];if(this.baseLayerIndex>=0&&O.isBaseLayer?g=0:"SubLayer"===this.layers[e].type&&(g=s),c=this.element.id+"_LayerIndex_"+g+"_shapeIndex_"+h+"_dataIndex_"+x,l=i.i(a._36)(c),i.i(n.isNullOrUndefined)(x)&&i.i(n.isNullOrUndefined)(l)&&(c=this.element.id+"_LayerIndex_"+e+"_shapeIndex_"+h+"_dataIndex_null",l=i.i(a._36)(c)),m=parseInt(l.id.split("_shapeIndex_")[1].split("_")[0],10),y=this.layers[e].shapeData.features.length>m?this.layers[e].shapeData.features[m].properties:null,u=parseInt(l.id.split("_dataIndex_")[1].split("_")[0],10),f=i.i(n.isNullOrUndefined)(u)?null:this.layers[e].dataSource[u],r){i.i(a._44)(p,this,l,y,f),this.shapeSelectionClass=i.i(a._36)("ShapeselectionMap"),this.legendSettings.visible&&-1===l.id.indexOf("_MarkerIndex_")&&this.legendModule.shapeHighLightAndSelection(l,f,p,"selection",e);var M=!this.legendSettings.visible||this.legendModule.shapeToggled;if(M&&(l.setAttribute("class","ShapeselectionMapStyle"),-1===this.selectedElementId.indexOf(l.getAttribute("id"))&&this.selectedElementId.push(l.getAttribute("id")),!p.enableMultiSelect))return}else{this.legendSelection=!p.enableMultiSelect&&!this.legendSelection||this.legendSelection,this.legendSettings.visible&&-1===l.id.indexOf("_MarkerIndex_")&&"ShapeselectionMapStyle"===l.getAttribute("class")&&this.legendModule.shapeHighLightAndSelection(l,f,p,"selection",e);var M=!this.legendSettings.visible||this.legendModule.shapeToggled;if(M){i.i(a._45)(l);var C=this.selectedElementId.indexOf(l.getAttribute("id"));-1!==C&&(this.selectedElementId.splice(C,1),!p.enableMultiSelect&&this.legendSelection&&this.selectedElementId.length>0&&this.removeShapeSelection())}}}}}},t.prototype.zoomToCoordinates=function(e,t,o,a){var r,s;if(!this.isDestroyed){this.isMarkerZoomCompleted=!1;var d=void 0,h=void 0,c=!1;this.centerPosition={latitude:null,longitude:null},this.isZoomByPosition=!1,(i.i(n.isNullOrUndefined)(o)&&i.i(n.isNullOrUndefined)(a)||i.i(n.isNullOrUndefined)(e)&&i.i(n.isNullOrUndefined)(t))&&(e=i.i(n.isNullOrUndefined)(e)?0:e,t=i.i(n.isNullOrUndefined)(e)?0:t,o=i.i(n.isNullOrUndefined)(o)?e:o,a=i.i(n.isNullOrUndefined)(a)?t:a,c=!0),e>o&&(r=[o,e],e=r[0],o=r[1]),t>a&&(s=[a,t],t=s[0],a=s[1]),c?(d=e+o,h=t+a):(d=(e+o)/2,h=(t+a)/2),this.centerLatOfGivenLocation=d,this.centerLongOfGivenLocation=h,this.minLatOfGivenLocation=e,this.minLongOfGivenLocation=t,this.maxLatOfGivenLocation=o,this.maxLongOfGivenLocation=a,this.zoomNotApplied=!0,this.scaleOfGivenLocation=i.i(p._68)(e,o,t,a,this.mapAreaRect.width,this.mapAreaRect.height,this,!0);var u=this.getMinMaxLatitudeLongitude(),m={cancel:!1,name:"zoom",type:l.J,maps:this,tileTranslatePoint:{},translatePoint:{},tileZoomLevel:this.isTileMap?{previous:this.tileZoomLevel,current:this.scaleOfGivenLocation}:{},scale:this.isTileMap?{previous:this.tileZoomLevel,current:this.scaleOfGivenLocation}:{previous:this.scale,current:this.scaleOfGivenLocation},minLatitude:u.minLatitude,maxLatitude:u.maxLatitude,minLongitude:u.minLongitude,maxLongitude:u.maxLongitude};this.trigger("zoom",m),this.refresh()}},t.prototype.removeShapeSelection=function(){for(var e=this.selectedElementId.length,t=0;t<e;t++)i.i(a._45)(i.i(p._32)(this.selectedElementId[0])),this.selectedElementId.splice(0,1);if(this.legendSettings.visible)for(var n=this.legendSelectionCollection.length,t=0;t<n;t++)i.i(a._45)(i.i(p._32)(this.legendSelectionCollection[t].legendElement.id)),this.selectedLegendElementId.splice(0,1);this.shapeSelectionItem=[],this.legendSelectionCollection=[]},t.prototype.setCulture=function(){this.intl=new n.Internationalization,this.setLocaleConstants(),this.localeObject=new n.L10n(this.getModuleName(),this.defaultLocalConstants,this.locale)},t.prototype.setLocaleConstants=function(){this.defaultLocalConstants={ZoomIn:"Zoom in",Zoom:"Zoom",ZoomOut:"Zoom out",Pan:"Pan",Reset:"Reset",ImageNotFound:"Image Not Found"}},t.prototype.destroy=function(){this.unWireEVents(),i.i(n.isNullOrUndefined)(this.mapsTooltipModule)||this.mapsTooltipModule.removeEventListener(),e.prototype.destroy.call(this),this.shapeSelectionItem=[],this.toggledShapeElementId=[],this.toggledLegendId=[],this.legendSelectionCollection=[],this.selectedLegendElementId=[],this.selectedNavigationElementId=[],this.selectedBubbleElementId=[],this.selectedMarkerElementId=[],this.selectedElementId=[],this.dataLabelShape=[],this.zoomShapeCollection=[],this.zoomLabelPositions=[],this.mouseDownEvent={x:null,y:null},this.mouseClickEvent={x:null,y:null},this.formatFunction=null,this.localeObject=null,this.defaultLocalConstants=null,this.intl=null,this.mapAreaRect=null,this.layersCollection=null,this.themeStyle=null,this.totalRect=null,this.baseSize=null,this.baseMapBounds=null,this.baseMapRectBounds=null,this.baseTranslatePoint=null,this.baseTileTranslatePoint=null,this.markerZoomCenterPoint=null,this.currentTiles=null,this.serverProcess=null,this.toolbarProperties=null,this.zoomLabelPositions=null,this.resizeEvent=null,this.availableSize=null,document.getElementById("mapsmeasuretext")&&document.getElementById("mapsmeasuretext").remove(),this.removeSvg(),this.svgObject=null,this.mapLayerPanel=null,this.renderer=null,this.translatePoint=null,this.tileTranslatePoint=null,this.previousPoint=null,this.dataLabelShape=[],this.zoomShapeCollection=[],this.selectedElementId=[],this.selectedMarkerElementId=[],this.selectedBubbleElementId=[],this.shapeSelectionClass=null,this.markerSelectionClass=null,this.bubbleSelectionClass=null,this.navigationSelectionClass=null,this.selectedNavigationElementId=[],this.polygonSelectionClass=null,this.selectedPolygonElementId=[],this.legendSelectionClass=null,this.previousTranslate=null,this.initialTileTranslate=null,this.markerDragArgument=null},t.prototype.getModuleName=function(){return"maps"},t.prototype.getPersistData=function(){var e=["translatePoint","zoomSettings","mapScaleValue","tileTranslatePoint","baseTranslatePoint","scale","zoomPersistence","defaultState","markerZoomedState","initialCheck","initialZoomLevel","initialTileTranslate","applyZoomReset","markerZoomFactor"];return this.addOnPersist(e)},t.prototype.onPropertyChanged=function(t,o){if(!this.isDestroyed){for(var r=!1,l=!1,s=!1,d=!1,p=0,h=Object.keys(t);p<h.length;p++){var c=h[p];switch(c){case"background":this.renderBorder();break;case"height":case"width":case"layers":case"projectionType":case"centerPosition":case"legendSettings":case"baseLayerIndex":if("layers"===c){s=!0;for(var u=Object.keys(t.layers).length,m=0;m<u;m++)if(!i.i(n.isNullOrUndefined)(t.layers[m]))for(var g=Object.keys(t.layers[m]),y=0,f=g;y<f.length;y++){var b=f[y];"layerType"===b&&"Geometry"!==t.layers[m].layerType||i.i(n.isNullOrUndefined)(this.layers[m].shapeData)&&!i.i(n.isNullOrUndefined)(this.layers[m].urlTemplate)&&""!==this.layers[m].urlTemplate?this.isReset=!0:"markerSettings"===b?l=!0:"staticMapType"===b&&(d=!0)}}r=!0;break;case"zoomSettings":i.i(n.isNullOrUndefined)(o.zoomSettings)||(t.zoomSettings.zoomFactor===o.zoomSettings.zoomFactor||s?t.zoomSettings.shouldZoomInitially!==o.zoomSettings.shouldZoomInitially?(this.zoomSettings.zoomFactor=1,this.previousProjection=null,this.scale=this.isMarkerZoomCompleted?null:this.scale,this.isMarkerZoomCompleted=!t.zoomSettings.shouldZoomInitially,r=!0):t.zoomSettings.enable!==o.zoomSettings.enable?(this.zoomSettings.zoomFactor=1,r=!0):r=!0:r=!1);break;case"locale":case"currencyCode":e.prototype.refresh.call(this)}}r&&(t.layers&&l?(i.i(a._27)(this.element.id+"_Markers_Group"),this.isTileMap?this.mapLayerPanel.renderTileLayer(this.mapLayerPanel,this.layers.currentFactor,this.layers.length-1):this.render()):t.layers&&d?this.mapLayerPanel.renderGoogleMap(this.layers[this.layers.length-1].key,this.staticMapZoom):(this.createSVG(),this.renderElements()))}},t.prototype.requiredModules=function(){var e=[],t=this.findVisibleLayers(this.layers),i=!1;return this.annotations.map(function(e){i=null!=e.content}),this.isBubbleVisible()&&e.push({member:"Bubble",args:[this],name:"Bubble"}),t.highlight&&e.push({member:"Highlight",args:[this],name:"Highlight"}),t.selection&&e.push({member:"Selection",args:[this],name:"Selection"}),this.legendSettings.visible&&e.push({member:"Legend",args:[this],name:"Legend"}),(this.zoomSettings.enable||this.zoomSettings.zoomFactor>this.zoomSettings.minZoom)&&e.push({member:"Zoom",args:[this],name:"Zoom"}),this.isMarkersVisible()&&e.push({member:"Marker",args:[this],name:"Marker"}),this.isDataLabelVisible()&&e.push({member:"DataLabel",args:[this],name:"DataLabel"}),this.isNavigationVisible()&&e.push({member:"NavigationLine",args:[this],name:"NavigationLine"}),this.isPolygonVisible()&&e.push({member:"Polygon",args:[this],name:"Polygon"}),t.tooltip&&e.push({member:"MapsTooltip",args:[this],name:"MapsTooltip"}),i&&e.push({member:"Annotations",args:[this,h.a],name:"Annotations"}),this.allowPrint&&e.push({member:"Print",args:[this],name:"Print"}),this.allowImageExport&&e.push({member:"ImageExport",args:[this],name:"ImageExport"}),this.allowPdfExport&&e.push({member:"PdfExport",args:[this],name:"PdfExport"}),e},t.prototype.isMarkersVisible=function(){var e=!1;return Array.prototype.forEach.call(this.layers,function(t){for(var i=0;i<t.markerSettings.length;i++)if(t.markerSettings[i].visible){e=!0;break}}),e},t.prototype.isDataLabelVisible=function(){for(var e=!1,t=0;t<this.layers.length;t++)if(this.layers[t].dataLabelSettings.visible){e=!0;break}return e},t.prototype.isNavigationVisible=function(){var e=!1;return Array.prototype.forEach.call(this.layers,function(t){for(var i=0;i<t.navigationLineSettings.length;i++)if(t.navigationLineSettings[i].visible){e=!0;break}}),e},t.prototype.isPolygonVisible=function(){var e=!1;return Array.prototype.forEach.call(this.layers,function(t){for(var i=0;i<t.polygonSettings.polygons.length;i++)if(t.polygonSettings.polygons.length>0){e=!0;break}}),e},t.prototype.isBubbleVisible=function(){for(var e=!1,t=0,i=this.layers;t<i.length;t++){var n=i[t];if(this.getBubbleVisible(n)){e=!0;break}}return e},t.prototype.getBubbleVisible=function(e){for(var t=!1,i=0,n=e.bubbleSettings;i<n.length;i++){if(n[i].visible){t=!0;break}}return t},t.prototype.print=function(e){this.allowPrint&&this.printModule&&!this.isDestroyed&&this.printModule.print(this,e)},t.prototype.export=function(e,t,o,a){var r=this;if(!this.isDestroyed){if(i.i(n.isNullOrUndefined)(a)&&(a=!0),"PDF"!==e&&this.allowImageExport&&this.imageExportModule)return new Promise(function(i){i(r.imageExportModule.export(r,e,t,a))});if(this.allowPdfExport&&this.pdfExportModule)return new Promise(function(i){i(r.pdfExportModule.export(r,e,t,a,o))})}return null},t.prototype.getBingUrlTemplate=function(e){var t;return this.isDestroyed||(t=new Promise(function(t){var i=new n.Fetch({url:e});i.onSuccess=function(e){var i=e.resourceSets[0].resources[0];t(i.imageUrl)},i.send()})),t},t.prototype.findVisibleLayers=function(e,t,o,a,r,l){void 0===t&&(t=!1),void 0===o&&(o=!1),void 0===a&&(a=!1),void 0===r&&(r=!1),void 0===l&&(l=!1);for(var s,d,p,h=0,c=e;h<c.length;h++){var u=c[h];if(t=u.visible||t,u.visible){s=u.bubbleSettings,d=u.markerSettings,p=u.polygonSettings;for(var m=u.navigationLineSettings,g=0,y=m;g<y.length;g++){var f=y[g];f.visible&&(r=!i.i(n.isNullOrUndefined)(f.highlightSettings)&&f.highlightSettings.enable||r,l=!i.i(n.isNullOrUndefined)(f.selectionSettings)&&f.selectionSettings.enable||l)}for(var b=0,v=p.polygons;b<v.length;b++){v[b].points.length>0&&(r=u.polygonSettings.highlightSettings.enable||r,l=u.polygonSettings.selectionSettings.enable||l,a=u.polygonSettings.tooltipSettings.visible||a)}for(var S=0,_=d;S<_.length;S++){var x=_[S];if(x.visible&&(a=x.tooltipSettings.visible||a,r=x.selectionSettings.enable||r,l=x.highlightSettings.enable||l),a)break}for(var O=0,M=s;O<M.length;O++){var C=M[O];if(C.visible&&(a=C.tooltipSettings.visible||a,r=C.selectionSettings.enable||r,l=C.highlightSettings.enable||l),a)break}a=u.tooltipSettings.visible||a,r=u.selectionSettings.enable||r,l=u.highlightSettings.enable||l}if(t&&o&&a)break}return{layer:t,bubble:o,tooltip:a,selection:r,highlight:l}},t.prototype.getGeoLocation=function(e,t,o){var r=0,l=0;if(!this.isDestroyed){var s=document.getElementById(this.element.id),d=t-(i.i(n.isNullOrUndefined)(this.markerDragArgument)?s.offsetLeft:0),p=o-(i.i(n.isNullOrUndefined)(this.markerDragArgument)?s.offsetTop:0),h=this.layersCollection[e],c=i.i(a._29)(this,h,!1),u=c.location,m=u.x*this.scale,g=u.y*this.scale,y=Math.min(this.mapAreaRect.height,this.mapAreaRect.width)*this.mapLayerPanel.currentFactor*this.scale,f=this.clip(d-m,0,y-1)/y-.5,b=.5-this.clip(p-g,0,y-1)/y;r=90-360*Math.atan(Math.exp(2*-b*Math.PI))/Math.PI,l=360*f}return{latitude:r,longitude:l}},t.prototype.clip=function(e,t,i){return Math.min(Math.max(e,t),i)},t.prototype.getTileGeoLocation=function(e,t){var o=0,a=0;if(!this.isDestroyed){var r=document.getElementById(this.element.id),l=document.getElementById(this.element.id+"_tile_parent"),s=this.pointToLatLong(e+this.mapAreaRect.x-(l.offsetLeft-(i.i(n.isNullOrUndefined)(this.markerDragArgument)?r.offsetLeft:0)),t+this.mapAreaRect.y-(l.offsetTop-(i.i(n.isNullOrUndefined)(this.markerDragArgument)?r.offsetTop:0)));o=s.latitude,a=s.longitude}return{latitude:o,longitude:a}},t.prototype.pointToLatLong=function(e,t){var o=0,a=0;if(!this.isDestroyed&&!i.i(n.isNullOrUndefined)(this.translatePoint)){t+="GoogleStaticMap"===this.layers[this.layers.length-1].layerType?0:10;var r=256*Math.pow(2,this.tileZoomLevel),l=this.clip(e-this.translatePoint.x*this.scale,0,r-1)/r-.5,s=.5-this.clip(t-this.translatePoint.y*this.scale,0,r-1)/r;o=90-360*Math.atan(Math.exp(2*-s*Math.PI))/Math.PI,a=360*l}return{latitude:o,longitude:a}},g([i.i(n.Property)(null)],t.prototype,"background",void 0),g([i.i(n.Property)(!1)],t.prototype,"useGroupingSeparator",void 0),g([i.i(n.Property)(null)],t.prototype,"format",void 0),g([i.i(n.Property)(null)],t.prototype,"width",void 0),g([i.i(n.Property)(null)],t.prototype,"height",void 0),g([i.i(n.Property)("MouseMove")],t.prototype,"tooltipDisplayMode",void 0),g([i.i(n.Property)(!1)],t.prototype,"allowPrint",void 0),g([i.i(n.Property)(!1)],t.prototype,"allowImageExport",void 0),g([i.i(n.Property)(!1)],t.prototype,"allowPdfExport",void 0),g([i.i(n.Complex)({},r.z)],t.prototype,"titleSettings",void 0),g([i.i(n.Complex)({},r.A)],t.prototype,"zoomSettings",void 0),g([i.i(n.Complex)({},r.C)],t.prototype,"legendSettings",void 0),g([i.i(n.Collection)([],r.H)],t.prototype,"layers",void 0),g([i.i(n.Collection)([],r.a)],t.prototype,"annotations",void 0),g([i.i(n.Complex)({},r.k)],t.prototype,"margin",void 0),g([i.i(n.Complex)({color:"#DDDDDD",width:0},r.g)],t.prototype,"border",void 0),g([i.i(n.Property)("Material")],t.prototype,"theme",void 0),g([i.i(n.Property)("Mercator")],t.prototype,"projectionType",void 0),g([i.i(n.Property)(0)],t.prototype,"baseLayerIndex",void 0),g([i.i(n.Property)(null)],t.prototype,"description",void 0),g([i.i(n.Property)(0)],t.prototype,"tabIndex",void 0),g([i.i(n.Complex)({latitude:null,longitude:null},r.h)],t.prototype,"centerPosition",void 0),g([i.i(n.Complex)({},r.J)],t.prototype,"mapsArea",void 0),g([i.i(n.Event)()],t.prototype,"load",void 0),g([i.i(n.Event)()],t.prototype,"beforePrint",void 0),g([i.i(n.Event)()],t.prototype,"loaded",void 0),g([i.i(n.Event)()],t.prototype,"click",void 0),g([i.i(n.Event)()],t.prototype,"onclick",void 0),g([i.i(n.Event)()],t.prototype,"doubleClick",void 0),g([i.i(n.Event)()],t.prototype,"rightClick",void 0),g([i.i(n.Event)()],t.prototype,"resize",void 0),g([i.i(n.Event)()],t.prototype,"tooltipRender",void 0),g([i.i(n.Event)()],t.prototype,"legendRendering",void 0),g([i.i(n.Event)()],t.prototype,"tooltipRenderComplete",void 0),g([i.i(n.Event)()],t.prototype,"shapeSelected",void 0),g([i.i(n.Event)()],t.prototype,"itemSelection",void 0),g([i.i(n.Event)()],t.prototype,"itemHighlight",void 0),g([i.i(n.Event)()],t.prototype,"shapeHighlight",void 0),g([i.i(n.Event)()],t.prototype,"layerRendering",void 0),g([i.i(n.Event)()],t.prototype,"shapeRendering",void 0),g([i.i(n.Event)()],t.prototype,"markerRendering",void 0),g([i.i(n.Event)()],t.prototype,"markerClusterRendering",void 0),g([i.i(n.Event)()],t.prototype,"markerClick",void 0),g([i.i(n.Event)()],t.prototype,"markerDragStart",void 0),g([i.i(n.Event)()],t.prototype,"markerDragEnd",void 0),g([i.i(n.Event)()],t.prototype,"markerClusterClick",void 0),g([i.i(n.Event)()],t.prototype,"markerClusterMouseMove",void 0),g([i.i(n.Event)()],t.prototype,"markerMouseMove",void 0),g([i.i(n.Event)()],t.prototype,"dataLabelRendering",void 0),g([i.i(n.Event)()],t.prototype,"bubbleRendering",void 0),g([i.i(n.Event)()],t.prototype,"bubbleClick",void 0),g([i.i(n.Event)()],t.prototype,"bubbleMouseMove",void 0),g([i.i(n.Event)()],t.prototype,"animationComplete",void 0),g([i.i(n.Event)()],t.prototype,"annotationRendering",void 0),g([i.i(n.Event)()],t.prototype,"zoom",void 0),g([i.i(n.Event)()],t.prototype,"pan",void 0),g([i.i(n.Event)()],t.prototype,"panComplete",void 0),g([i.i(n.Event)()],t.prototype,"zoomComplete",void 0),t=g([n.NotifyPropertyChanges],t)}(n.Component)},function(e,t,i){"use strict";i.d(t,"a",function(){return a});var n=i(1),o=(i.n(n),i(0)),a=function(){function e(e){}return e.prototype.export=function(e,t,a,r){return new Promise(function(l,s){var d,p,h=i.i(n.createElement)("canvas",{id:"ej2-canvas",attrs:{width:e.availableSize.width.toString(),height:e.availableSize.height.toString()}}),c=!(n.Browser.userAgent.toString().indexOf("HeadlessChrome")>-1),u=document.getElementById(e.element.id+"_Tile_SVG_Parent"),m=i.i(o._32)(e.element.id+"_svg").cloneNode(!0),g=m.childNodes[0],y=g.getAttribute("fill");"Tailwind"!==e.theme&&"Bootstrap5"!==e.theme&&"Fluent"!==e.theme&&"Material3"!==e.theme||"rgba(255,255,255, 0.0)"!==y&&"transparent"!==y?"TailwindDark"!==e.theme&&"Bootstrap5Dark"!==e.theme&&"FluentDark"!==e.theme&&"Material3Dark"!==e.theme||"rgba(255,255,255, 0.0)"!==y&&"transparent"!==y||m.childNodes[0].setAttribute("fill","rgba(0, 0, 0, 1)"):m.childNodes[0].setAttribute("fill","rgba(255,255,255, 1)"),e.isTileMap?(p=i.i(o._32)(e.element.id+"_Tile_SVG").cloneNode(!0),d='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">'+m.outerHTML+p.outerHTML+"</svg>"):d='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">'+m.outerHTML+"</svg>";var f=window.URL.createObjectURL(new Blob("SVG"===t?[d]:[(new XMLSerializer).serializeToString(m)],{type:"image/svg+xml"}));if("SVG"===t)r?i.i(o.r)(a,t,f,c):l(null);else{var b=new Image,v=h.getContext("2d");if(e.isTileMap){e.isExportInitialTileMap=!0;for(var S=document.getElementById(e.element.id+"_MapAreaBorder"),_=parseFloat(S.getAttribute("y")),x=parseFloat(S.getAttribute("x")),O=new XMLHttpRequest,M=e.mapLayerPanel.tiles.length,C=0;C<=M+1;C++)!function(s){var d=document.getElementById(e.element.id+"_tile_"+(s-1)),m=new Image;m.crossOrigin="Anonymous";var g=e.background?e.background:"Tailwind"!==e.theme&&"Bootstrap5"!==e.theme&&"Fluent"!==e.theme&&"Material3"!==e.theme||"rgba(255,255,255, 0.0)"!==y&&"transparent"!==y?"TailwindDark"!==e.theme&&"Bootstrap5Dark"!==e.theme&&"FluentDark"!==e.theme&&"Material3Dark"!==e.theme||"rgba(255,255,255, 0.0)"!==y&&"transparent"!==y?"#ffffff":"#000000":"#ffffff";v.fillStyle=g,v.fillRect(0,0,e.availableSize.width,e.availableSize.height),v.font=e.titleSettings.textStyle.size+" Arial";var b=document.getElementById(e.element.id+"_Map_title");i.i(n.isNullOrUndefined)(b)||(v.fillStyle=b.getAttribute("fill"),v.fillText(e.titleSettings.text,parseFloat(b.getAttribute("x")),parseFloat(b.getAttribute("y")))),m.onload=function(){if(0===s||s===M+1?0===s?(v.setTransform(1,0,0,1,0,0),v.rect(0,_,parseFloat(u.style.width),parseFloat(u.style.height)),v.clip()):v.setTransform(1,0,0,1,x,_):v.setTransform(1,0,0,1,parseFloat(d.style.left)+x,parseFloat(d.style.top)+_),v.drawImage(m,0,0),s===M+1){localStorage.setItem("local-canvasImage",h.toDataURL("image/png"));var n=localStorage.getItem("local-canvasImage");r?(i.i(o.r)(a,t,n,c),localStorage.removeItem("local-canvasImage"),e.isExportInitialTileMap=!1):(e.isExportInitialTileMap=!1,"PNG"===t?l(n):"JPEG"===t&&l(h.toDataURL("image/jpeg")))}},0===s||s===M+1?0===s?m.src=f:setTimeout(function(){m.src=window.URL.createObjectURL(new Blob([(new XMLSerializer).serializeToString(p)],{type:"image/svg+xml"}))},300):(O.open("GET",d.children[0].getAttribute("src"),!0),O.send(),m.src=d.children[0].getAttribute("src"))}(C)}else b.onload=function(){v.drawImage(b,0,0),window.URL.revokeObjectURL(f),r?i.i(o.r)(a,t,h.toDataURL("image/png").replace("image/png","image/octet-stream"),c):"PNG"===t?l(h.toDataURL("image/png")):"JPEG"===t&&l(h.toDataURL("image/jpeg"))},b.src=f}})},e.prototype.getModuleName=function(){return"ImageExport"},e.prototype.destroy=function(){},e}()},function(e,t,i){"use strict";i.d(t,"a",function(){return a});var n=i(1),o=(i.n(n),i(27)),a=(i.n(o),function(){function e(){}return e.prototype.export=function(e,t,a,r,l){return new Promise(function(s){e.isTileMap&&(e.isExportInitialTileMap=!0);var d=i.i(n.createElement)("canvas",{id:"ej2-canvas",attrs:{width:e.availableSize.width.toString(),height:e.availableSize.height.toString()}});l=i.i(n.isNullOrUndefined)(l)?o.PdfPageOrientation.Landscape:l;var p=document.getElementById(e.element.id+"_Tile_SVG_Parent"),h=e.svgObject.cloneNode(!0),c=h.childNodes[0],u=c.getAttribute("fill");"Tailwind"!==e.theme&&"Bootstrap5"!==e.theme&&"Fluent"!==e.theme&&"Material3"!==e.theme||"rgba(255,255,255, 0.0)"!==u&&"transparent"!==u?"TailwindDark"!==e.theme&&"Bootstrap5Dark"!==e.theme&&"FluentDark"!==e.theme&&"Material3Dark"!==e.theme||"rgba(255,255,255, 0.0)"!==u&&"transparent"!==u||h.childNodes[0].setAttribute("fill","rgba(0, 0, 0, 1)"):h.childNodes[0].setAttribute("fill","rgba(255,255,255, 1)");var m=window.URL.createObjectURL(new Blob("SVG"===t?[void 0]:[(new XMLSerializer).serializeToString(h)],{type:"image/svg+xml"})),g=new o.PdfDocument,y=new Image,f=d.getContext("2d");if(e.isTileMap)for(var b=document.getElementById(e.element.id+"_MapAreaBorder"),v=parseFloat(b.getAttribute("y")),S=parseFloat(b.getAttribute("x")),_=new XMLHttpRequest,x=e.mapLayerPanel.tiles.length,O=0;O<=x+1;O++)!function(h){var c=document.getElementById(e.element.id+"_tile_"+(h-1)),y=new Image;y.crossOrigin="Anonymous";var b=e.background?e.background:"Tailwind"!==e.theme&&"Bootstrap5"!==e.theme&&"Fluent"!==e.theme&&"Material3"!==e.theme||"rgba(255,255,255, 0.0)"!==u&&"transparent"!==u?"TailwindDark"!==e.theme&&"Bootstrap5Dark"!==e.theme&&"FluentDark"!==e.theme&&"Material3Dark"!==e.theme||"rgba(255,255,255, 0.0)"!==u&&"transparent"!==u?"#ffffff":"#000000":"#ffffff";f.fillStyle=b,f.fillRect(0,0,e.availableSize.width,e.availableSize.height),f.font=e.titleSettings.textStyle.size+" Arial";var O=document.getElementById(e.element.id+"_Map_title");i.i(n.isNullOrUndefined)(O)||(f.fillStyle=O.getAttribute("fill"),f.fillText(e.titleSettings.text,parseFloat(O.getAttribute("x")),parseFloat(O.getAttribute("y")))),y.onload=function(){if(0===h||h===x+1?0===h?(f.setTransform(1,0,0,1,0,0),f.rect(0,v,parseFloat(p.style.width),parseFloat(p.style.height)),f.clip()):f.setTransform(1,0,0,1,S,v):f.setTransform(1,0,0,1,parseFloat(c.style.left)+S,parseFloat(c.style.top)+v),f.drawImage(y,0,0),h===x+1&&"PDF"===t){localStorage.setItem("saved-image-example",d.toDataURL("image/jpeg"));var i=localStorage.getItem("saved-image-example");g.pageSettings.orientation=l,i=i.slice(i.indexOf(",")+1),g.pages.add().graphics.drawImage(new o.PdfBitmap(i),0,0,e.availableSize.width-60,e.availableSize.height),e.isExportInitialTileMap=!1,r?(g.save(a+".pdf"),g.destroy()):s(null)}},0===h||h===x+1?0===h?y.src=m:setTimeout(function(){var t=document.getElementById(e.element.id+"_Tile_SVG");y.src=window.URL.createObjectURL(new Blob([(new XMLSerializer).serializeToString(t)],{type:"image/svg+xml"}))},300):(_.open("GET",c.children[0].getAttribute("src"),!0),_.send(),y.src=c.children[0].getAttribute("src"))}(O);else y.onload=function(){if(f.drawImage(y,0,0),window.URL.revokeObjectURL(m),"PDF"===t){var i=d.toDataURL("image/jpeg").replace("image/jpeg","image/octet-stream");g.pageSettings.orientation=l,i=i.slice(i.indexOf(",")+1),g.pages.add().graphics.drawImage(new o.PdfBitmap(i),0,0,e.availableSize.width-60,e.availableSize.height),r?(g.save(a+".pdf"),g.destroy()):s(null)}},y.src=m})},e.prototype.getModuleName=function(){return"PdfExport"},e.prototype.destroy=function(){},e}())},function(e,t,i){"use strict";i.d(t,"a",function(){return r});var n=i(1),o=(i.n(n),i(0)),a=i(3),r=function(){function e(e){}return e.prototype.print=function(e,t){var o=window.open("","print","height="+window.outerHeight+",width="+window.outerWidth+",tabbar=no");o.moveTo(0,0),o.resizeTo(screen.availWidth,screen.availHeight);var r={cancel:!1,htmlContent:this.getHTMLContent(e,t),name:a.I};e.trigger("beforePrint",r,function(e){r.cancel||i.i(n.print)(r.htmlContent,o)})},e.prototype.getHTMLContent=function(e,t){var a=i.i(n.createElement)("div"),r=e.element.cloneNode(!0),l=e.isTileMap?r.getElementsByTagName("svg")[1]:r.getElementsByTagName("svg")[0];if(!i.i(n.isNullOrUndefined)(l)&&(l=l.childNodes[0],!i.i(n.isNullOrUndefined)(l))){var s=l.getAttribute("fill");"Tailwind"!==e.theme&&"Bootstrap5"!==e.theme&&"Fluent"!==e.theme&&"Material3"!==e.theme||"rgba(255,255,255, 0.0)"!==s&&"transparent"!==s?"TailwindDark"!==e.theme&&"Bootstrap5Dark"!==e.theme&&"FluentDark"!==e.theme&&"Material3Dark"!==e.theme||"rgba(255,255,255, 0.0)"!==s&&"transparent"!==s||l.setAttribute("fill","rgba(0, 0, 0, 1)"):l.setAttribute("fill","rgba(255,255,255, 1)")}if(e.isTileMap)for(var d=0;d<r.childElementCount;d++)if(r.children[d].id===e.element.id+"_tile_parent"){r.children[d].style.removeProperty("height"),r.children[d].style.removeProperty("width"),r.children[d].style.removeProperty("top"),r.children[d].style.removeProperty("left"),r.children[d].style.removeProperty("right"),r.children[d].style.removeProperty("overflow");var p=document.getElementById(e.element.id+"_Tile_SVG_Parent");r.children[d].children[0].style.overflow="hidden",r.children[d].children[0].style.position="absolute",r.children[d].children[0].style.height=p.style.height,r.children[d].children[0].style.width=p.style.width,r.children[d].children[0].style.left=p.style.left,r.children[d].children[0].style.top=p.style.top;break}return t?t instanceof Array?Array.prototype.forEach.call(t,function(e){a.appendChild(i.i(o._36)(e).cloneNode(!0))}):t instanceof Element?a.appendChild(t.cloneNode(!0)):a.appendChild(i.i(o._36)(t).cloneNode(!0)):a.appendChild(r),a},e.prototype.getModuleName=function(){return"Print"},e.prototype.destroy=function(){},e}()},function(e,t,i){"use strict";i.d(t,"a",function(){return r});var n=i(2),o=i(1),a=(i.n(o),i(0)),r=function(){function e(e){this.maps=e,this.addEventListener()}return e.prototype.addEventListener=function(){this.maps.isDestroyed||(this.maps.on(o.Browser.touchMoveEvent,this.mouseMove,this),this.maps.on(o.Browser.touchStartEvent,this.mouseMove,this))},e.prototype.removeEventListener=function(){this.maps.isDestroyed||(this.maps.off(o.Browser.touchMoveEvent,this.mouseMove),this.maps.off(o.Browser.touchStartEvent,this.mouseMove))},e.prototype.addHighlight=function(e,t,n){var o=i.i(a._41)(e,t,n,this.maps);n?this.mapHighlight(o,null,null):i.i(a._45)(o)},e.prototype.mouseMove=function(e){var t,n=e.target,r="touch"===e.pointerType||"2"===e.pointerType||e.type.indexOf("touch")>-1;if((-1!==n.id.indexOf("LayerIndex")||n.id.indexOf("NavigationIndex")>-1)&&"ShapeselectionMapStyle"!==n.getAttribute("class")&&!r&&"MarkerselectionMapStyle"!==n.getAttribute("class")&&"BubbleselectionMapStyle"!==n.getAttribute("class")&&"navigationlineselectionMapStyle"!==n.getAttribute("class")&&"PolygonselectionMapStyle"!==n.getAttribute("class")&&"LineselectionMapStyle"!==n.getAttribute("class")){t=parseInt(n.id.split("_LayerIndex_")[1].split("_")[0],10);var l=void 0,s=void 0,d=void 0,p=void 0;if(n.id.indexOf("shapeIndex")>-1)d=parseInt(n.id.split("_shapeIndex_")[1].split("_")[0],10),l=this.maps.layers[t].shapeData.features&&!i.i(o.isNullOrUndefined)(this.maps.layersCollection[t].layerData[d])?this.maps.layersCollection[t].layerData[d].property:null,p=parseInt(n.id.split("_dataIndex_")[1].split("_")[0],10),s=i.i(o.isNullOrUndefined)(p)?null:this.maps.layers[t].dataSource[p],this.highlightSettings=this.maps.layers[t].highlightSettings;else if(n.id.indexOf("BubbleIndex")>-1){var h=parseInt(n.id.split("_BubbleIndex_")[1].split("_")[0],10);p=parseInt(n.id.split("_dataIndex_")[1].split("_")[0],10),s=this.maps.layers[t].bubbleSettings[h].dataSource[p],this.highlightSettings=this.maps.layers[t].bubbleSettings[h].highlightSettings}else if(n.id.indexOf("MarkerIndex")>-1){var c=parseInt(n.id.split("_MarkerIndex_")[1].split("_")[0],10);p=parseInt(n.id.split("_dataIndex_")[1].split("_")[0],10),s=this.maps.layers[t].markerSettings[c].dataSource[p],this.highlightSettings=this.maps.layers[t].markerSettings[c].highlightSettings}else if(n.id.indexOf("_PolygonIndex_")>-1)p=parseInt(n.id.split("_PolygonIndex_")[1].split("_")[0],10),s=this.maps.layers[t].polygonSettings.polygons[p].points,this.highlightSettings=this.maps.layers[t].polygonSettings.highlightSettings;else{var u=parseInt(n.id.split("_NavigationIndex_")[1].split("_")[0],10);t=parseInt(n.id.split("_LayerIndex_")[1].split("_")[0],10),l=null,s={latitude:this.maps.layers[t].navigationLineSettings[u].latitude,longitude:this.maps.layers[t].navigationLineSettings[u].longitude},this.highlightSettings=this.maps.layers[t].navigationLineSettings[u].highlightSettings}if(this.highlightSettings.enable)this.handleHighlight(n,t,s,l);else{var m=document.getElementsByClassName("highlightMapStyle")[0];if(!i.i(o.isNullOrUndefined)(m)&&(i.i(a._45)(m),m.id.indexOf("NavigationIndex")>-1)){var u=parseInt(m.id.split("_NavigationIndex_")[1].split("_")[0],10),g=parseInt(m.parentElement.id.split("_LayerIndex_")[1].split("_")[0],10);m.setAttribute("stroke-width",this.maps.layers[g].navigationLineSettings[u].width.toString()),m.setAttribute("stroke",this.maps.layers[g].navigationLineSettings[u].color)}}}else if(i.i(a._39)("highlightMapStyle").length>0){if(n=i.i(a._39)("highlightMapStyle")[0],n.id.indexOf("NavigationIndex")>-1){var u=parseInt(n.id.split("_NavigationIndex_")[1].split("_")[0],10);t=parseInt(n.parentElement.id.split("_LayerIndex_")[1].split("_")[0],10),n.setAttribute("stroke-width",this.maps.layers[t].navigationLineSettings[u].width.toString()),n.setAttribute("stroke",this.maps.layers[t].navigationLineSettings[u].color)}i.i(a._45)(n),this.maps.legendSettings.visible&&this.maps.legendModule&&this.maps.legendModule.removeShapeHighlightCollection()}else(-1!==n.id.indexOf(this.maps.element.id+"_Legend_Shape_Index")||-1!==n.id.indexOf(this.maps.element.id+"_Legend_Index"))&&this.maps.legendModule&&this.maps.legendSettings.visible&&-1===n.id.indexOf("_Text")?this.maps.legendModule.legendHighLightAndSelection(n,"highlight"):this.maps.legendSettings.visible&&this.maps.legendModule&&this.maps.legendModule.removeLegendHighlightCollection()},e.prototype.handleHighlight=function(e,t,i,n){this.maps.legendSettings.visible&&-1===e.id.indexOf("_MarkerIndex_")&&this.maps.legendModule&&"Layers"===this.maps.legendSettings.type&&this.maps.legendModule.shapeHighLightAndSelection(e,i,this.highlightSettings,"highlight",t),(!(e.id.indexOf("shapeIndex")>-1&&this.maps.legendSettings.visible&&this.maps.legendModule)||this.maps.legendModule.shapeToggled)&&this.mapHighlight(e,n,i)},e.prototype.mapHighlight=function(e,t,a){var r=this,l=parseInt(e.id.split("_LayerIndex_")[1].split("_")[0],10),s=!1;if(e.id.indexOf("MarkerIndex")>-1){var d=parseInt(e.id.split("_MarkerIndex_")[1].split("_")[0],10);s=this.maps.layers[l].markerSettings[d].highlightSettings.enable}var p=-1===e.parentElement.id.indexOf("LineString")?this.highlightSettings.border.color:this.highlightSettings.fill||this.highlightSettings.border.color,h=-1===e.parentElement.id.indexOf("LineString")?this.highlightSettings.border.width/(s?1:this.maps.scale):this.highlightSettings.border.width/this.maps.scale,c=i.i(o.isNullOrUndefined)(this.highlightSettings.border.opacity)?this.highlightSettings.opacity:this.highlightSettings.border.opacity,u={opacity:this.highlightSettings.opacity,fill:-1===e.parentElement.id.indexOf("LineString")?-1===e.id.indexOf("NavigationIndex")?i.i(o.isNullOrUndefined)(this.highlightSettings.fill)?e.getAttribute("fill"):this.highlightSettings.fill:"none":"transparent",border:{color:p,width:h,opacity:c},cancel:!1},m={opacity:u.opacity,fill:u.fill,border:{color:p,width:h,opacity:c},name:n.k,target:e.id,cancel:!1,shapeData:t,data:a,maps:this.maps};e.id.indexOf("shapeIndex")>-1&&this.maps.trigger(n.k,m,function(){});var g={opacity:u.opacity,fill:u.fill,border:{color:p,width:h,opacity:c},name:n.I,target:e.id,cancel:!1,shapeData:t,data:a,maps:this.maps};this.maps.trigger(n.I,g,function(){g.cancel=u.cancel!==g.cancel?g.cancel:e.id.indexOf("shapeIndex")>-1?m.cancel:u.cancel,g.fill=u.fill!==g.fill?g.fill:e.id.indexOf("shapeIndex")>-1?m.fill:u.fill,g.opacity=u.opacity!==g.opacity?g.opacity:e.id.indexOf("shapeIndex")>-1?m.opacity:u.opacity,g.border.color=u.border.color!==g.border.color?g.border.color:e.id.indexOf("shapeIndex")>-1?m.border.color:u.border.color,g.border.width=u.border.width!==g.border.width?g.border.width:e.id.indexOf("shapeIndex")>-1?m.border.width:u.border.width,g.border.opacity=u.border.opacity!==g.border.opacity?g.border.opacity:e.id.indexOf("shapeIndex")>-1?m.border.opacity:u.border.opacity,r.highlightMap(e,g)})},e.prototype.highlightMap=function(e,t){if("highlightMapStyle"!==e.getAttribute("class")&&!t.cancel){if(i.i(a._39)("highlightMapStyle").length>0){var n=i.i(a._39)("highlightMapStyle")[0];if(i.i(a._45)(n),n.id.indexOf("NavigationIndex")>-1){var o=parseInt(n.id.split("_NavigationIndex_")[1].split("_")[0],10),r=parseInt(n.parentElement.id.split("_LayerIndex_")[1].split("_")[0],10);n.setAttribute("stroke-width",this.maps.layers[r].navigationLineSettings[o].width.toString()),n.setAttribute("stroke",this.maps.layers[r].navigationLineSettings[o].color)}}i.i(a._36)("highlightMap")?i.i(a._43)("highlightMap","highlightMapStyle",t):document.body.appendChild(i.i(a._42)("highlightMap","highlightMapStyle",t)),e.setAttribute("class","highlightMapStyle")}},e.prototype.getModuleName=function(){return"Highlight"},e.prototype.destroy=function(){this.highlightSettings=null,this.removeEventListener(),this.maps=null},e}()},function(e,t,i){"use strict";i.d(t,"a",function(){return r});var n=i(2),o=i(0),a=i(1),r=(i.n(a),function(){function e(e){this.maps=e,this.addEventListener()}return e.prototype.addEventListener=function(){this.maps.isDestroyed||this.maps.on(n.d,this.mouseClick,this)},e.prototype.removeEventListener=function(){this.maps.isDestroyed||this.maps.off(n.d,this.mouseClick)},e.prototype.mouseClick=function(e){if(!i.i(a.isNullOrUndefined)(e.type)&&-1!==e.type.indexOf("touch")&&i.i(a.isNullOrUndefined)(e.id)&&(e=e.target),!i.i(a.isNullOrUndefined)(e.id)&&(e.id.indexOf("LayerIndex")>-1||e.id.indexOf("NavigationIndex")>-1)){var t=void 0,n=void 0,o=void 0,r=void 0,l=parseInt(e.id.split("_LayerIndex_")[1].split("_")[0],10);if(e.id.indexOf("shapeIndex")>-1)o=parseInt(e.id.split("_shapeIndex_")[1].split("_")[0],10),t=!i.i(a.isNullOrUndefined)(this.maps.layers[l].shapeData.features)&&this.maps.layers[l].shapeData.features.length>o?this.maps.layers[l].shapeData.features[o].properties:!i.i(a.isNullOrUndefined)(this.maps.layers[l].shapeData.geometries)&&this.maps.layers[l].shapeData.geometries.length>o?this.maps.layers[l].shapeData.geometries[o].properties:null,r=parseInt(e.id.split("_dataIndex_")[1].split("_")[0],10),n=i.i(a.isNullOrUndefined)(r)?null:this.maps.layers[l].dataSource[r],this.selectionsettings=this.maps.layers[l].selectionSettings,this.selectionType="Shape";else if(e.id.indexOf("BubbleIndex")>-1){var s=parseInt(e.id.split("_BubbleIndex_")[1].split("_")[0],10);r=parseInt(e.id.split("_dataIndex_")[1].split("_")[0],10),n=this.maps.layers[l].bubbleSettings[s].dataSource[r],this.selectionsettings=this.maps.layers[l].bubbleSettings[s].selectionSettings,this.selectionType="Bubble"}else if(e.id.indexOf("MarkerIndex")>-1){var d=parseInt(e.id.split("_MarkerIndex_")[1].split("_")[0],10);r=parseInt(e.id.split("_dataIndex_")[1].split("_")[0],10),n=this.maps.layers[l].markerSettings[d].dataSource[r],this.selectionsettings=this.maps.layers[l].markerSettings[d].selectionSettings,this.selectionType="Marker"}else if(e.id.indexOf("_PolygonIndex_")>-1)r=parseInt(e.id.split("_PolygonIndex_")[1].split("_")[0],10),n=this.maps.layers[l].polygonSettings.polygons[r].points,this.selectionsettings=this.maps.layers[l].polygonSettings.selectionSettings,this.selectionType="Polygon";else if(e.id.indexOf("NavigationIndex")>-1){var p=parseInt(e.id.split("_NavigationIndex_")[1].split("_")[0],10);t=null,n={latitude:this.maps.layers[l].navigationLineSettings[p].latitude,longitude:this.maps.layers[l].navigationLineSettings[p].longitude},this.selectionsettings=this.maps.layers[l].navigationLineSettings[p].selectionSettings,this.selectionType="navigationline"}!i.i(a.isNullOrUndefined)(this.selectionsettings)&&this.selectionsettings.enable&&this.selectElement(e,l,n,t)}else this.maps.legendSettings.visible&&!this.maps.legendSettings.toggleLegendSettings.enable&&this.maps.legendModule&&!i.i(a.isNullOrUndefined)(e.id)&&-1===e.id.indexOf("_Text")&&(e.id.indexOf(this.maps.element.id+"_Legend_Shape_Index")>-1||-1!==e.id.indexOf(this.maps.element.id+"_Legend_Index"))&&this.maps.legendModule.legendHighLightAndSelection(e,"selection")},e.prototype.selectElement=function(e,t,i,n){this.maps.mapSelect=!!e,this.maps.legendModule&&this.maps.legendSettings.visible&&-1===e.id.indexOf("_MarkerIndex_")&&this.maps.legendModule.shapeHighLightAndSelection(e,i,this.selectionsettings,"selection",t),(!(e.id.indexOf("shapeIndex")>-1&&this.maps.legendSettings.visible&&this.maps.legendModule)||this.maps.legendModule.shapeToggled)&&this.selectMap(e,n,i)},e.prototype.addSelection=function(e,t,n){var a=i.i(o._41)(e,t,n,this.maps);n?this.selectMap(a,null,null):i.i(o._45)(a)},e.prototype.selectMap=function(e,t,r){var l=this,s=e.parentElement.id.indexOf("LineString")>-1,d={color:s?this.selectionsettings.fill||this.selectionsettings.border.color:this.selectionsettings.border.color,width:s?this.selectionsettings.border.width/this.maps.scale:this.selectionsettings.border.width/("Marker"===this.selectionType?1:this.maps.scale),opacity:this.selectionsettings.border.opacity},p={opacity:this.selectionsettings.opacity,fill:s?"transparent":"navigationline"!==this.selectionType?this.selectionsettings.fill:"none",border:d,name:n.F,target:e.id,cancel:!1,shapeData:t,data:r,maps:this.maps};this.maps.trigger("itemSelection",p,function(t){if(p.border.opacity=i.i(a.isNullOrUndefined)(l.selectionsettings.border.opacity)?l.selectionsettings.opacity:l.selectionsettings.border.opacity,!p.cancel)if(e.getAttribute("class")===l.selectionType+"selectionMapStyle"||"LineselectionMapStyle"===e.getAttribute("class")){i.i(o._45)(e),l.removedSelectionList(e);for(var n=0;n<l.maps.shapeSelectionItem.length;n++)if(l.maps.shapeSelectionItem[n]===p.shapeData){l.maps.shapeSelectionItem.splice(n,1);break}if(e.id.indexOf("NavigationIndex")>-1){var r=parseInt(e.id.split("_NavigationIndex_")[1].split("_")[0],10),d=parseInt(e.parentElement.id.split("_LayerIndex_")[1].split("_")[0],10);e.setAttribute("stroke-width",l.maps.layers[d].navigationLineSettings[r].width.toString()),e.setAttribute("stroke",l.maps.layers[d].navigationLineSettings[r].color)}}else{var h=i.i(o._32)(l.maps.element.id+"_Layer_Collections");if(!l.selectionsettings.enableMultiSelect&&(h.getElementsByClassName(l.selectionType+"selectionMapStyle").length>0||h.getElementsByClassName("LineselectionMapStyle").length>0)){for(var c=h.getElementsByClassName(l.selectionType+"selectionMapStyle").length,u=void 0,m=0;m<c;m++)u=h.getElementsByClassName(l.selectionType+"selectionMapStyle")[0],i.i(o._45)(u),l.removedSelectionList(u);if(h.getElementsByClassName("LineselectionMapStyle").length>0){c=h.getElementsByClassName("LineselectionMapStyle").length;for(var m=0;m<c;m++)u=h.getElementsByClassName("LineselectionMapStyle")[0],i.i(o._45)(u),l.removedSelectionList(u)}if("Shape"===l.selectionType){l.maps.shapeSelectionItem=[];for(var g=l.maps.selectedElementId.length,y=0;y<g;y++){u=h.getElementsByClassName(l.selectionType+"selectionMapStyle")[0],i.i(o._45)(u);var f=l.maps.selectedElementId.indexOf(u.getAttribute("id"));l.maps.selectedElementId.splice(f,1)}}if(u.id.indexOf("NavigationIndex")>-1){var r=parseInt(e.id.split("_NavigationIndex_")[1].split("_")[0],10),d=parseInt(e.parentElement.id.split("_LayerIndex_")[1].split("_")[0],10);u.setAttribute("stroke-width",l.maps.layers[d].navigationLineSettings[r].width.toString()),u.setAttribute("stroke",l.maps.layers[d].navigationLineSettings[r].color)}}s?(i.i(o._36)("LineselectionMap")?i.i(o._43)("LineselectionMap","LineselectionMapStyle",p):document.body.appendChild(i.i(o._42)("LineselectionMap","LineselectionMapStyle",p)),e.setAttribute("class","LineselectionMapStyle")):(i.i(o._36)(l.selectionType+"selectionMap")?i.i(o._43)(l.selectionType+"selectionMap",l.selectionType+"selectionMapStyle",p):document.body.appendChild(i.i(o._42)(l.selectionType+"selectionMap",l.selectionType+"selectionMapStyle",p)),e.setAttribute("class",l.selectionType+"selectionMapStyle")),"ShapeselectionMapStyle"===e.getAttribute("class")&&(l.maps.shapeSelectionClass=i.i(o._36)(l.selectionType+"selectionMap"),l.maps.selectedElementId.push(e.getAttribute("id")),l.maps.shapeSelectionItem.push(p.shapeData)),"MarkerselectionMapStyle"===e.getAttribute("class")&&(l.maps.markerSelectionClass=i.i(o._36)(l.selectionType+"selectionMap"),l.maps.selectedMarkerElementId.push(e.getAttribute("id"))),"BubbleselectionMapStyle"===e.getAttribute("class")&&(l.maps.bubbleSelectionClass=i.i(o._36)(l.selectionType+"selectionMap"),l.maps.selectedBubbleElementId.push(e.getAttribute("id"))),"navigationlineselectionMapStyle"===e.getAttribute("class")&&(l.maps.navigationSelectionClass=i.i(o._36)(l.selectionType+"selectionMap"),l.maps.selectedNavigationElementId.push(e.getAttribute("id"))),"PolygonselectionMapStyle"===e.getAttribute("class")&&(l.maps.polygonSelectionClass=i.i(o._36)(l.selectionType+"selectionMap"),l.maps.selectedPolygonElementId.push(e.getAttribute("id")))}})},e.prototype.removedSelectionList=function(e){"Shape"===this.selectionType&&this.maps.selectedElementId.splice(this.maps.selectedElementId.indexOf(e.getAttribute("id")),1),"Bubble"===this.selectionType&&this.maps.selectedBubbleElementId.splice(this.maps.selectedBubbleElementId.indexOf(e.getAttribute("id")),1),"Marker"===this.selectionType&&this.maps.selectedMarkerElementId.splice(this.maps.selectedMarkerElementId.indexOf(e.getAttribute("id")),1),"navigationline"===this.selectionType&&this.maps.selectedBubbleElementId.splice(this.maps.selectedBubbleElementId.indexOf(e.getAttribute("id")),1),"Polygon"===this.selectionType&&this.maps.selectedPolygonElementId.splice(this.maps.selectedPolygonElementId.indexOf(e.getAttribute("id")),1)},e.prototype.getModuleName=function(){return"Selection"},e.prototype.destroy=function(){this.selectionsettings=null,this.removeEventListener(),this.maps=null},e}())},function(e,t,i){"use strict";i.d(t,"a",function(){return l});var n=i(2),o=i(6),a=(i.n(o),i(1)),r=(i.n(a),i(0)),l=function(){function e(e){this.maps=e,this.tooltipId=this.maps.element.id+"_mapsTooltip",this.addEventListener()}return e.prototype.renderTooltip=function(e){var t,l,s,d,p,h=this;if(-1!==e.type.indexOf("touch")?(this.isTouch=!0,d=e,t=d.changedTouches[0].pageX,l=d.changedTouches[0].pageY,s=d.target):(this.isTouch="touch"===e.pointerType,t=e.pageX,l=e.pageY,s=e.target),this.maps.isDevice&&(clearTimeout(this.clearTimeout),this.clearTimeout=setTimeout(this.removeTooltip.bind(this),2e3)),-1===s.id.indexOf(this.maps.element.id)){var c=s.closest("."+this.maps.element.id+"_marker_template_element");!i.i(a.isNullOrUndefined)(c)&&c.id.indexOf("_MarkerIndex_")>-1&&(s=c)}var u,m,g,y,f="",b=s.id,v=[],S=b.indexOf("_LayerIndex_")>-1&&parseFloat(b.split("_LayerIndex_")[1].split("_")[0]),_=this.maps.layersCollection[S],x=[],O=i.i(r.e)(t,l,this.maps.svgObject);this.tooltipTargetID=b;var M,C,L,P=null,w=null,T=this.maps.getClickLocation(b,e.pageX,e.pageY,s,e.layerX,e.layerY,"tooltip");i.i(a.isNullOrUndefined)(T)||(P=T.latitude,w=T.longitude);var I=b.indexOf("_PolygonIndex_")>-1;if((b.indexOf("_shapeIndex_")>-1||b.indexOf("_MarkerIndex_")>-1||b.indexOf("_BubbleIndex_")>-1||b.indexOf("_PolygonIndex_")>-1)&&null===this.maps.markerDragArgument){if(b.indexOf("_PolygonIndex_")>-1){var k=parseInt(b.split("_PolygonIndex_")[1].split("_")[0],10);m=_.polygonSettings.tooltipSettings,L=_.polygonSettings.polygons[k],M=m.textStyle,C=m.fill,x.push(L.tooltipText)}else if(b.indexOf("_shapeIndex_")>-1){u=_.tooltipSettings;var N=parseInt(b.split("_shapeIndex_")[1].split("_")[0],10);if(i.i(a.isNullOrUndefined)(_.layerData)||i.i(a.isNullOrUndefined)(_.layerData[N]))return;var E=_.layerData[N].property,F=!1,z="[object Array]"===Object.prototype.toString.call(_.shapePropertyPath)?_.shapePropertyPath:[_.shapePropertyPath];if(!i.i(a.isNullOrUndefined)(z)){for(var A=0;A<z.length;A++)for(var B=0;B<_.dataSource.length;B++){var U=_.dataSource[B],j=_.shapeDataPath.indexOf(".")>-1?i.i(r.Q)(U,_.shapeDataPath):U[_.shapeDataPath],Z=!i.i(a.isNullOrUndefined)(j)&&isNaN(U[_.shapeDataPath])?j.toLowerCase():j,R=!i.i(a.isNullOrUndefined)(E[z[A]])&&isNaN(E[z[A]])?E[z[A]].toLowerCase():E[z[A]];if(Z===R){F=!0,S=B,A=z.length;break}}if(S=F?S:null,!i.i(a.isNullOrUndefined)(_.dataSource[S])){v=JSON.parse(JSON.stringify(_.dataSource[S]));for(y in E)v.hasOwnProperty(y)||(v[y]=E[y])}}if(u.visible&&(!i.i(a.isNullOrUndefined)(S)&&!isNaN(S)||!i.i(a.isNullOrUndefined)(E)))if(_.tooltipSettings.format)f=this.formatter(_.tooltipSettings.format,v);else{var D=i.i(r._20)(_.shapeDataPath,_.shapePropertyPath,E);f=i.i(a.isNullOrUndefined)(_.dataSource)||i.i(a.isNullOrUndefined)(S)?E[D]:i.i(r.M)(u.valuePath.indexOf(".")>-1?i.i(r.Q)(_.dataSource[S],u.valuePath):_.dataSource[S][u.valuePath],this.maps),i.i(a.isNullOrUndefined)(f)&&(f=u.valuePath.indexOf(".")>-1?i.i(r.Q)(E,u.valuePath):E[u.valuePath])}}else if(b.indexOf("_MarkerIndex_")>-1){var V=parseInt(b.split("_MarkerIndex_")[1].split("_")[0],10),G=parseInt(b.split("_MarkerIndex_")[1].split("_")[2],10),H=_.markerSettings[V];u=H.tooltipSettings,v=H.dataSource[G],u.visible&&!isNaN(V)&&(f=H.tooltipSettings.format?this.formatter(H.tooltipSettings.format,H.dataSource[G]):"function"!=typeof H.template&&H.template&&!H.tooltipSettings.valuePath?H.template.split(">")[1].split("<")[0]:i.i(r.M)(H.tooltipSettings.valuePath.indexOf(".")>-1?i.i(r.Q)(H.dataSource[G],H.tooltipSettings.valuePath):H.dataSource[G][H.tooltipSettings.valuePath],this.maps))}else if(b.indexOf("_BubbleIndex_")>-1){var W=parseInt(b.split("_BubbleIndex_")[1].split("_")[0],10),G=parseInt(b.split("_BubbleIndex_")[1].split("_")[2],10),q=_.bubbleSettings[W];u=q.tooltipSettings,v=q.dataSource[G],u.visible&&!isNaN(G)&&(f=q.tooltipSettings.format?this.formatter(q.tooltipSettings.format,q.dataSource[G]):i.i(r.M)(q.tooltipSettings.valuePath.indexOf(".")>-1?i.i(r.Q)(q.dataSource[G],q.tooltipSettings.valuePath):q.dataSource[G][q.tooltipSettings.valuePath],this.maps))}if(I?m.visible:u.visible){document.getElementById(this.tooltipId)?g=document.getElementById(this.tooltipId):(g=i.i(a.createElement)("div",{id:this.maps.element.id+"_mapsTooltip",className:"EJ2-maps-Tooltip"}),i.i(a.isNullOrUndefined)(I?L.tooltipTemplate:u.template)||(I?""===L.tooltipTemplate:""===u.template)||"MouseMove"===this.maps.tooltipDisplayMode?g.style.cssText="position: absolute;pointer-events:none;":g.style.position="absolute",document.getElementById(this.maps.element.id+"_Secondary_Element").appendChild(g)),I?L.tooltipTemplate:u.template,(I?null!==L.tooltipTemplate:null!==u.template)&&1===Object.keys((I?L.tooltipTemplate:u.template,I?L.tooltipTemplate:u.template)).length&&(I?L.tooltipTemplate=L.tooltipTemplate[Object.keys(L.tooltipTemplate)[0]]:u.template=u.template[Object.keys(u.template)[0]]),v=this.setTooltipContent(u,v);var X={color:I?M.color:u.textStyle.color,fontFamily:I?M.fontFamily:u.textStyle.fontFamily,fontStyle:I?M.fontStyle:u.textStyle.fontStyle,fontWeight:I?M.fontWeight:u.textStyle.fontWeight,opacity:I?M.opacity:u.textStyle.opacity,size:I?M.size:u.textStyle.size},Y={location:O,text:x,data:v,textStyle:X,template:I?L.tooltipTemplate:u.template};p={cancel:!1,name:n.i,options:Y,fill:I?C:u.fill,maps:this.maps,latitude:P,longitude:w,element:s,eventArgs:e,content:I?L.tooltipText:i.i(a.isNullOrUndefined)(f)?"":f.toString()},""!==p.content||""!==p.options.template?this.maps.trigger(n.i,p,function(t){p.cancel||i.i(a.isNullOrUndefined)(f)||-1!==b.indexOf("_cluster_")||-1!==b.indexOf("_dataLabel_")?h.clearTooltip(e.target):(h.maps.isProtectedOnChange=!0,p.options.textStyle.size=p.options.textStyle.size||h.maps.themeStyle.fontSize,p.options.textStyle.color=p.options.textStyle.color||h.maps.themeStyle.tooltipFontColor,p.options.textStyle.fontFamily=p.options.textStyle.fontFamily||h.maps.themeStyle.fontFamily,p.options.textStyle.fontWeight=p.options.textStyle.fontWeight||h.maps.themeStyle.fontWeight,p.options.textStyle.opacity=p.options.textStyle.opacity||h.maps.themeStyle.tooltipTextOpacity,p.cancel?h.svgTooltip=new o.Tooltip({enable:!0,header:"",data:u.data,template:u.template,content:p.content.toString()!==f.toString()?[p.content.toString()]:[f.toString()],shapes:[],location:u.location,palette:[void 0],areaBounds:h.maps.mapAreaRect,textStyle:u.textStyle,availableSize:h.maps.availableSize,fill:u.fill||h.maps.themeStyle.tooltipFillColor,enableShadow:!0,border:I?m.border:u.border}):h.svgTooltip=new o.Tooltip({enable:!0,header:"",data:p.options.data,template:p.options.template,content:p.content.toString()!==f.toString()?[p.content.toString()]:[f.toString()],shapes:[],location:p.options.location,palette:[void 0],areaBounds:h.maps.mapAreaRect,textStyle:p.options.textStyle,availableSize:h.maps.availableSize,fill:p.fill||h.maps.themeStyle.tooltipFillColor,enableShadow:!0,border:I?m.border:u.border}),(h.maps.isVue||h.maps.isVue3)&&(h.svgTooltip.controlInstance=h.maps),h.svgTooltip.opacity=h.maps.themeStyle.tooltipFillOpacity||h.svgTooltip.opacity,h.svgTooltip.appendTo(g),h.maps.renderReactTemplates())}):this.clearTooltip(e.target),this.svgTooltip&&this.maps.trigger("tooltipRenderComplete",{cancel:!1,name:"tooltipRenderComplete",maps:this.maps,options:Y,element:this.svgTooltip.element}),this.svgTooltip?this.maps.trigger("tooltipRenderComplete",{cancel:!1,name:"tooltipRenderComplete",maps:this.maps,options:Y,element:this.svgTooltip.element}):this.clearTooltip(e.target)}else this.clearTooltip(e.target)}else{var Q=e.target.closest("#"+this.maps.element.id+"_mapsTooltipparent_template");i.i(a.isNullOrUndefined)(Q)&&this.clearTooltip(e.target)}},e.prototype.setTooltipContent=function(e,t){var n=i.i(a.extend)({},t,null,!0);return this.maps.format&&!isNaN(Number(n[e.valuePath]))?n[e.valuePath]=i.i(r._34)(this.maps,Number(n[e.valuePath])):n=Object.keys(n).length?n:void 0,n},e.prototype.formatter=function(e,t){void 0===t&&(t={});for(var n=Object.keys(t),o=0,a=n;o<a.length;o++){var l=a[o];e="object"==typeof t[l]?i.i(r.N)("",e,t,this.maps):e.split("${"+l+"}").join(i.i(r.M)(t[l],this.maps))}return e},e.prototype.mouseUpHandler=function(e){i.i(a.isNullOrUndefined)(this.maps)||(this.renderTooltip(e),"MouseMove"===this.maps.tooltipDisplayMode&&(clearTimeout(this.clearTimeout),this.clearTimeout=setTimeout(this.removeTooltip.bind(this),2e3)))},e.prototype.removeTooltip=function(){var e=!1;return document.getElementsByClassName("EJ2-maps-Tooltip").length>0&&(i.i(a.remove)(document.getElementsByClassName("EJ2-maps-Tooltip")[0]),e=!0),e},e.prototype.clearTooltip=function(e){var t=e.closest("#"+this.maps.element.id+"_mapsTooltipparent_template");if(i.i(a.isNullOrUndefined)(t)){this.removeTooltip()&&this.maps.clearTemplate()}},e.prototype.addEventListener=function(){this.maps.isDestroyed||("DoubleClick"===this.maps.tooltipDisplayMode?this.maps.on("dblclick",this.renderTooltip,this):"Click"===this.maps.tooltipDisplayMode?this.maps.on(a.Browser.touchEndEvent,this.mouseUpHandler,this):this.maps.on(a.Browser.touchMoveEvent,this.renderTooltip,this),this.maps.on(a.Browser.touchCancelEvent,this.removeTooltip,this),this.maps.element.addEventListener("contextmenu",this.removeTooltip))},e.prototype.removeEventListener=function(){if(this.maps){if(this.maps.isDestroyed)return;"DoubleClick"===this.maps.tooltipDisplayMode?this.maps.off("dblclick",this.renderTooltip):"Click"===this.maps.tooltipDisplayMode?this.maps.off(a.Browser.touchEndEvent,this.mouseUpHandler):this.maps.off(a.Browser.touchMoveEvent,this.renderTooltip),this.maps.off(a.Browser.touchCancelEvent,this.removeTooltip),this.maps.element.removeEventListener("contextmenu",this.removeTooltip)}},e.prototype.getModuleName=function(){return"MapsTooltip"},e.prototype.destroy=function(){i.i(a.isNullOrUndefined)(this.svgTooltip)||this.svgTooltip.destroy(),this.svgTooltip=null,this.maps=null},e}()},function(e,t,i){"use strict";i.d(t,"a",function(){return l});var n=i(0),o=i(1),a=(i.n(o),i(2)),r=i(3),l=function(){function e(e){this.isPanModeEnabled=!1,this.mouseEnter=!1,this.isTouch=!1,this.rectZoomingStart=!1,this.browserName=o.Browser.info.name,this.isPointer=o.Browser.isPointer,this.handled=!1,this.isPan=!1,this.isZoomFinal=!1,this.isZoomSelection=!1,this.pinchFactor=1,this.startTouches=[],this.mouseDownLatLong={x:0,y:0},this.mouseMoveLatLong={x:0,y:0},this.isSingleClick=!1,this.maps=e,this.wheelEvent="mozilla"===this.browserName?this.isPointer?"mousewheel":"DOMMouseScroll":"mousewheel",this.cancelEvent=this.isPointer?"pointerleave":"mouseleave",this.selectionColor=null==this.maps.zoomSettings.toolbarSettings.buttonSettings.selectionColor?this.maps.zoomSettings.selectionColor:this.maps.zoomSettings.toolbarSettings.buttonSettings.selectionColor,this.fillColor=null==this.maps.zoomSettings.toolbarSettings.buttonSettings.color?this.maps.zoomSettings.color:this.maps.zoomSettings.toolbarSettings.buttonSettings.color,this.addEventListener()}return e.prototype.performZooming=function(e,t,i){var a=this,r=this.maps;r.previousProjection=t<=1.5?void 0:r.projectionType,r.defaultState=!1,r.initialCheck=!1,r.markerZoomedState=r.isMarkerZoomCompleted=!1,r.zoomPersistence=r.enablePersistence;var l=r.tileZoomLevel,s=r.previousScale=r.scale,d=r.zoomSettings.maxZoom,p=r.zoomSettings.minZoom;t=d>=t?t:d;var h=!0;switch(i.toLowerCase()){case"zoomin":h=t<=this.maps.zoomSettings.maxZoom;break;case"zoomout":h=t>=this.maps.zoomSettings.minZoom}if(h){var c=r.tileTranslatePoint;if(r.isTileMap||!("ZoomIn"===i?t>=p&&t<=d:t>=p)&&!r.isReset){if(r.isTileMap&&t>=p&&t<=d)if(this.getTileTranslatePosition(l,t,e,i),r.tileZoomLevel=t,r.zoomSettings.zoomFactor=t,r.scale=Math.pow(2,t-1),"ZoomOut"===i&&r.zoomSettings.resetToInitial&&r.applyZoomReset&&t<=r.initialZoomLevel&&(r.initialCheck=!0,r.zoomPersistence=!1,r.tileTranslatePoint.x=r.initialTileTranslate.x,r.tileTranslatePoint.y=r.initialTileTranslate.y,t=r.tileZoomLevel=r.mapScaleValue=r.initialZoomLevel,r.scale=Math.pow(2,t-1)),r.mapScaleValue=isNaN(r.mapScaleValue)?1:r.mapScaleValue,r.translatePoint.y=(r.tileTranslatePoint.y-.01*r.mapScaleValue)/r.scale,r.translatePoint.x=(r.tileTranslatePoint.x-.01*r.mapScaleValue)/r.scale,this.triggerZoomEvent(c,l,i))r.translatePoint=r.tileTranslatePoint=new n.s(0,0),r.scale=r.previousScale,r.tileZoomLevel=l,r.zoomSettings.zoomFactor=r.previousScale;else{document.querySelector(".GroupElement")&&(document.querySelector(".GroupElement").style.display="none"),document.getElementById(this.maps.element.id+"_LayerIndex_1")&&(document.getElementById(this.maps.element.id+"_LayerIndex_1").style.display="none"),this.markerLineAnimation(r),r.mapLayerPanel.generateTiles(t,r.tileTranslatePoint,i+"wheel",null,e);var u=0===this.maps.layersCollection[0].animationDuration&&"Enable"===o.animationMode?1e3:this.maps.layersCollection[0].animationDuration;setTimeout(function(){a.applyTransform(a.maps),document.getElementById(a.maps.element.id+"_LayerIndex_1")&&(document.getElementById(a.maps.element.id+"_LayerIndex_1").style.display="block")},u)}}else{var m=r.mapAreaRect,g=r.baseMapRectBounds.min,y=r.baseMapRectBounds.max,f=Math.abs(g.x-y.x),b=Math.abs(g.y-y.y),v=void 0,S=void 0;if(t<1.2&&"Eckert5"!==r.projectionType)0!==f&&0!==b&&f!==b||(f=m.width/2,b=m.height),t=parseFloat(Math.min(m.width/f,m.height/b).toFixed(2)),t=t>1.05?1:t,r.translatePoint=this.calculateInitalZoomTranslatePoint(t,f,b,m,g,r);else{var _=r.translatePoint;v=_.x-(m.width/s-m.width/t)/(m.width/e.x),S=_.y-(m.height/s-m.height/t)/(m.height/e.y);var x=Math.abs(r.baseMapRectBounds.max.y-r.baseMapRectBounds.min.y)*t;v=x<r.mapAreaRect.height?m.x+(-g.x+(m.width/2-f/2)):v,S=x<r.mapAreaRect.height?m.y+(-g.y+(m.height/2-b/2)):S,r.translatePoint=new n.s(v,S)}r.scale=t,r.zoomTranslatePoint=r.translatePoint,this.triggerZoomEvent(c,l,i)?(r.translatePoint=r.previousPoint,r.scale=r.mapScaleValue=r.previousScale):this.applyTransform(r)}this.triggerZoomComplete(r,l,i)}this.maps.zoomNotApplied=!1,this.maps.isDevice&&this.removeToolbarOpacity(r.isTileMap?Math.round(r.tileZoomLevel):r.scale,r.element.id+"_Zooming_")},e.prototype.calculateInitalZoomTranslatePoint=function(e,t,i,o,a,r){t*=e,i*=e;var l=0!==a.x&&"layers"===r.translateType?r.availableSize.width-o.width:0,s=o.x+(-a.x+(o.width/2-t/2))-l,d=o.y+(-a.y+(o.height/2-i/2));return new n.s(s,d)},e.prototype.triggerZoomEvent=function(e,t,n){var a,r=this.maps;r.isTileMap&&(r.mapScaleValue=i.i(o.isNullOrUndefined)(r.mapScaleValue)?1:r.mapScaleValue,r.translatePoint.y=(r.tileTranslatePoint.y-.01*r.mapScaleValue)/r.scale,r.translatePoint.x=(r.tileTranslatePoint.x-.01*r.mapScaleValue)/r.scale);var l=this.maps.getMinMaxLatitudeLongitude();return a=r.isTileMap?{cancel:!1,name:"zoom",type:n,maps:r,tileTranslatePoint:{previous:e,current:r.tileTranslatePoint},translatePoint:{previous:r.previousPoint,current:r.translatePoint},tileZoomLevel:{previous:t,current:r.tileZoomLevel},scale:{previous:r.previousScale,current:r.scale},minLatitude:l.minLatitude,maxLatitude:l.maxLatitude,minLongitude:l.minLongitude,maxLongitude:l.maxLongitude}:{cancel:!1,name:"zoom",type:n,maps:r,tileTranslatePoint:{},translatePoint:{previous:r.previousPoint,current:r.translatePoint},tileZoomLevel:{},scale:{previous:r.previousScale,current:r.scale},minLatitude:l.minLatitude,maxLatitude:l.maxLatitude,minLongitude:l.minLongitude,maxLongitude:l.maxLongitude},r.trigger("zoom",a),a.cancel},e.prototype.getTileTranslatePosition=function(e,t,i,n){var o=this.maps,a="ZoomOut"===n?10:"Reset"===n&&t>1?0:10,r=o.availableSize,l=256*Math.pow(2,e),s=256*Math.pow(2,t),d=(i.x-o.tileTranslatePoint.x)/l*100,p=(i.y-o.tileTranslatePoint.y)/l*100;o.tileTranslatePoint.x=1===t?r.width/2-256:i.x-d*s/100,o.tileTranslatePoint.y=1===t?r.height/2-256+2*a:i.y-p*s/100},e.prototype.performRectZooming=function(){this.isDragZoom=!0;var e=this.maps,t=e.availableSize;e.previousProjection=e.projectionType;var i,o=e.tileZoomLevel,a=e.tileTranslatePoint,r=this.zoomingRect,l=e.zoomSettings.maxZoom,s=e.zoomSettings.minZoom;if(r.height>0&&r.width>0){var d=this.zoomingRect.x+this.zoomingRect.width/2,p=this.zoomingRect.y+this.zoomingRect.height/2,h=void 0;if(e.isTileMap)h=o+Math.round(o+(t.width/r.width+t.height/r.height)/2),h=h>=s&&h<=l?h:l,e.zoomSettings.zoomFactor=h,this.getTileTranslatePosition(o,h,{x:d,y:p}),e.tileZoomLevel=h,e.translatePoint.x=(e.tileTranslatePoint.x-.5*Math.pow(2,h))/Math.pow(2,h),e.translatePoint.y=(e.tileTranslatePoint.y-.5*Math.pow(2,h))/Math.pow(2,h),e.scale=Math.pow(2,h),i=this.triggerZoomEvent(a,o,""),i?(e.translatePoint=e.tileTranslatePoint=new n.s(0,0),e.scale=e.tileZoomLevel=e.zoomSettings.zoomFactor=o):e.mapLayerPanel.generateTiles(h,e.tileTranslatePoint);else{var c=e.previousScale=e.scale;h=c+Math.round((t.width/r.width+t.height/r.height)/2),h=h<this.maps.zoomSettings.maxZoom?h:this.maps.zoomSettings.maxZoom;var u=e.previousPoint=e.translatePoint;if(h<=l){var m=u.x-(t.width/c-t.width/h)/(t.width/d),g=u.y-(t.height/c-t.height/h)/(t.height/p);e.translatePoint=new n.s(m,g)}e.scale=h<this.maps.zoomSettings.maxZoom?h:this.maps.zoomSettings.maxZoom,i=this.triggerZoomEvent(a,o,""),i&&(e.translatePoint=e.previousPoint,e.scale=e.previousScale),e.zoomTranslatePoint=e.translatePoint}i||(e.mapScaleValue=h,this.applyTransform(e,!0),this.maps.zoomNotApplied=!1,this.zoomingRect=null)}this.isZoomFinal=this.isZoomSelection&&Math.round(e.scale)===this.maps.zoomSettings.maxZoom,this.triggerZoomComplete(e,o,""),this.removeToolbarOpacity(e.scale,this.maps.element.id+"_Zooming_")},e.prototype.setInteraction=function(e){this.lastScale=1,this.interaction=e},e.prototype.updateInteraction=function(){2===this.fingers?this.setInteraction("zoom"):this.setInteraction(null)},e.prototype.performPinchZooming=function(e){var t,a=this.maps,r=a.tileZoomLevel,l=this.pinchFactor,s=a.tileTranslatePoint;if(a.isTileMap){var d=this.getTouchCenterPoint(),p=Math.sqrt(Math.pow(this.touchMoveList[0].pageX-this.touchMoveList[1].pageX,2)+Math.pow(this.touchMoveList[0].pageY-this.touchMoveList[1].pageY,2)),h=a.tileZoomLevel;i.i(o.isNullOrUndefined)(this.pinchDistance)||(this.pinchDistance>p?h-=1:this.pinchDistance<p&&(h+=1),(h=Math.min(this.maps.zoomSettings.maxZoom,Math.max(this.maps.zoomSettings.minZoom,h)))!==a.tileZoomLevel&&(this.pinchFactor=h,a.previousScale=a.scale,a.tileZoomLevel=this.pinchFactor,a.scale=Math.pow(2,a.tileZoomLevel-1),this.getTileTranslatePosition(r,this.pinchFactor,{x:d.x,y:d.y},null),a.translatePoint.x=(a.tileTranslatePoint.x-.01*a.scale)/a.scale,a.translatePoint.y=(a.tileTranslatePoint.y-.01*a.scale)/a.scale,t=this.triggerZoomEvent(s,r,""),t?(a.translatePoint=a.tileTranslatePoint=new n.s(0,0),a.scale=a.previousScale,a.tileZoomLevel=r,a.zoomSettings.zoomFactor=a.previousScale):a.mapLayerPanel.generateTiles(h,a.tileTranslatePoint))),this.pinchDistance=p}else{var c=a.mapAreaRect;a.isMarkerZoomCompleted=!1,a.previousScale=a.scale,a.previousPoint=a.translatePoint,a.previousProjection=a.projectionType;var u=i.i(n._58)(this.touchStartList,this.touchMoveList),d=i.i(n._61)(i.i(n._60)(this.touchMoveList,this.maps)),m=u/this.lastScale;this.lastScale=u,this.pinchFactor*=m,this.pinchFactor=Math.min(this.maps.zoomSettings.maxZoom,Math.max(this.pinchFactor,this.maps.zoomSettings.minZoom));var g=a.baseMapRectBounds.min,y=a.baseMapRectBounds.max,f=Math.abs(g.y-y.y),b=Math.abs(g.x-y.x),v=a.translatePoint,S=void 0,_=void 0;if(l<1.2&&"Eckert5"!==a.projectionType)0!==b&&0!==f&&b!==f||(b=c.width/2,f=c.height),l=parseFloat(Math.min(c.width/b,c.height/f).toFixed(2)),l=l>1.05?1:l,a.translatePoint=this.calculateInitalZoomTranslatePoint(l,b,f,c,g,a);else{var x=Math.abs(a.baseMapRectBounds.max.y-a.baseMapRectBounds.min.y)*l;S=v.x-(c.width/a.scale-c.width/l)/(c.width/d.x),_=v.y-(c.height/a.scale-c.height/l)/(c.height/d.y),S=x<a.mapAreaRect.height?c.x+(-g.x+(c.width/2-b/2)):S,_=x<a.mapAreaRect.height?c.y+(-g.y+(c.height/2-f/2)):_,a.translatePoint=new n.s(S,_)}a.scale=l,t=this.triggerZoomEvent(s,r,""),t&&(a.translatePoint=a.previousPoint,a.scale=a.previousScale)}a.mapScaleValue=l,t||this.applyTransform(a),this.triggerZoomComplete(a,r,""),o.Browser.isDevice&&this.removeToolbarOpacity(a.isTileMap?Math.round(a.tileZoomLevel):a.scale,a.element.id+"_Zooming_")},e.prototype.getTouchCenterPoint=function(){for(var e=[],t=0;t<this.touchMoveList.length;t++)e.push(this.getMousePosition(this.touchMoveList[t].pageX,this.touchMoveList[t].pageY));return{x:(e[0].x+e[1].x)/2,y:(e[0].y+e[1].y)/2}},e.prototype.triggerZoomComplete=function(e,t,n){if(e.zoomSettings.enable){var a=void 0;e.isTileMap&&(e.mapScaleValue=i.i(o.isNullOrUndefined)(e.mapScaleValue)?1:e.mapScaleValue,e.translatePoint.y=(e.tileTranslatePoint.y-.01*e.mapScaleValue)/e.scale,e.translatePoint.x=(e.tileTranslatePoint.x-.01*e.mapScaleValue)/e.scale);var r=this.maps.getMinMaxLatitudeLongitude();a=e.isTileMap?{cancel:!1,name:"zoomComplete",type:n,maps:e,tileTranslatePoint:{previous:e.tileTranslatePoint,current:e.tileTranslatePoint},translatePoint:{previous:e.previousPoint,current:e.translatePoint},tileZoomLevel:{previous:t,current:e.tileZoomLevel},scale:{previous:e.previousScale,current:e.scale},minLatitude:r.minLatitude,maxLatitude:r.maxLatitude,minLongitude:r.minLongitude,maxLongitude:r.maxLongitude}:{cancel:!1,name:"zoomComplete",type:n,maps:e,tileTranslatePoint:{},translatePoint:{previous:e.previousPoint,current:e.translatePoint},tileZoomLevel:{},scale:{previous:e.previousScale,current:e.scale},minLatitude:r.minLatitude,maxLatitude:r.maxLatitude,minLongitude:r.minLongitude,maxLongitude:r.maxLongitude},this.maps.trigger("zoomComplete",a)}},e.prototype.drawZoomRectangle=function(){var e=this.maps,t=this.mouseDownPoints,o=this.mouseMovePoints,a={width:1,color:this.maps.themeStyle.rectangleZoomBorderColor},r=Math.abs(o.x-t.x),l=Math.abs(o.y-t.y),s=o.x>t.x?t.x:t.x-r,d=o.y>t.y?t.y:t.y-l;if(s>e.mapAreaRect.x&&s<e.mapAreaRect.x+e.mapAreaRect.width&&d>e.mapAreaRect.y&&d<e.mapAreaRect.y+e.mapAreaRect.height){this.zoomingRect=new n.I(s,d,r,l);var p=e.renderer.createSvg({id:e.element.id+"_Selection_Rect_Zooming",width:e.availableSize.width,height:e.availableSize.height,style:"position: absolute;"}),h=new n.B(e.element.id+"_ZoomRect",this.maps.themeStyle.rectangleZoomFillColor,a,this.maps.themeStyle.rectangleZoomFillOpacity,this.zoomingRect,0,0,"","3");p.appendChild(e.renderer.drawRectangle(h)),i.i(n._32)(e.element.id+"_Secondary_Element").appendChild(p)}},e.prototype.animateTransform=function(e,t,a,r,l){var s=0===this.currentLayer.animationDuration&&"Enable"===o.animationMode?1e3:this.currentLayer.animationDuration;if(!t||0===s||this.maps.isTileMap)return void(this.maps.isTileMap&&e.id.indexOf("_Polygons_Group")>-1||e.setAttribute("transform","scale("+l+") translate( "+a+" "+r+" )"));this.maps.isTileMap||i.i(n._63)(e,0,s,new n.H(a,r),l,this.maps.mapAreaRect,this.maps)},e.prototype.applyTransform=function(e,t,r){var l,s=this;this.templateCount=0;var d,p=e.scale,h=e.translatePoint.x,c=e.translatePoint.y,u=0;if(e.zoomShapeCollection=[],document.getElementById(e.element.id+"_mapsTooltip")&&i.i(n._27)(e.element.id+"_mapsTooltip"),this.layerCollectionEle){for(var m=this,g=0;g<this.layerCollectionEle.childElementCount;g++)!function(g){var y=m.layerCollectionEle.childNodes[g];if("g"===y.tagName){m.templateCount++,m.index=y.id.indexOf("_LayerIndex_")>-1&&parseFloat(y.id.split("_LayerIndex_")[1].split("_")[0]),m.currentLayer=e.layersCollection[m.index];for(var f=e.mapLayerPanel.calculateFactor(m.currentLayer),b=y.childElementCount,v=0;v<b;v++)!function(g){var b=y.childNodes[g];if(b.id.indexOf("_Markers_Group")>-1||b.id.indexOf("_bubble_Group")>-1||b.id.indexOf("_dataLableIndex_Group")>-1){if(b.id.indexOf("_Markers_Group")>-1){m.isPanModeEnabled||i.i(o.isNullOrUndefined)(b.childNodes[0])||m.markerTranslates(b.childNodes[0],f,h,c,p,"Marker",y),b=y.childNodes[g];var v;if(!i.i(o.isNullOrUndefined)(b)&&-1!==b.id.indexOf("Markers")&&(Array.prototype.forEach.call(b.childNodes,function(i,n){s.markerTranslate(i,f,h,c,p,"Marker",t);var a=parseInt(i.id.split("_dataIndex_")[1].split("_")[0],10),r=parseInt(i.id.split("_MarkerIndex_")[1].split("_")[0],10);if(v=s.currentLayer.markerSettings[r].animationDuration>0||"Enable"===o.animationMode,s.currentLayer.markerSettings[r].initialMarkerSelection.length>0)for(var l=s.currentLayer.markerSettings[r].dataSource[a],u=0;u<s.currentLayer.markerSettings[r].initialMarkerSelection.length;u++)s.currentLayer.markerSettings[r].initialMarkerSelection[u].latitude!==l.latitude&&s.currentLayer.markerSettings[r].initialMarkerSelection[u].longitude!==l.longitude||e.markerSelection(s.currentLayer.markerSettings[r].selectionSettings,e,b.children[n],s.currentLayer.markerSettings[r].dataSource[a]);if((s.currentLayer.animationDuration>0||"Enable"===o.animationMode||(e.layersCollection[0].animationDuration>0||"Enable"===o.animationMode)&&"SubLayer"===s.currentLayer.type)&&!s.isPanModeEnabled)if(e.isTileMap){var m=document.querySelector(".GroupElement");m&&!document.querySelector(".ClusterGroupElement")&&v&&(m.style.display="none")}else d="visibility:hidden",b.style.cssText=d}),m.isPanModeEnabled&&e.markerModule.sameMarkerData.length>0?i.i(n.X)(e.markerModule.sameMarkerData,e,b,!0):e.markerModule.sameMarkerData.length>0&&(e.markerModule.sameMarkerData=[],document.getElementById(e.element.id+"_mapsTooltip")&&i.i(n._27)(e.element.id+"_mapsTooltip")),document.getElementById(e.element.id+"_mapsTooltip")&&e.mapsTooltipModule.tooltipTargetID.indexOf("_MarkerIndex_")&&!m.isPanModeEnabled)){var S=e.mapsTooltipModule,_=b.querySelector("#"+S.tooltipTargetID);if(!i.i(o.isNullOrUndefined)(_))if("hidden"===_.style.visibility)i.i(n._27)(e.element.id+"_mapsTooltip");else{var x=parseFloat(_.getAttribute("transform").split("(")[1].split(")")[0].split(" ")[1]),O=parseFloat(_.getAttribute("transform").split("(")[1].split(")")[0].split(" ")[2]);e.isTileMap&&(x+=+i.i(n._36)(e.element.id+"_tile_parent").style.left.split("px")[0],O+=+i.i(n._36)(e.element.id+"_tile_parent").style.top.split("px")[0]),S.svgTooltip.location.x=x,S.svgTooltip.location.y=O,S.svgTooltip.enableAnimation=!1}}}else if(b.id.indexOf("_bubble_Group")>-1)for(var M=void 0,C=0;C<b.childElementCount;C++){M=b.childNodes[C],l=parseFloat(M.id.split("_LayerIndex_")[1].split("_")[0]);for(var L=parseFloat(M.id.split("_BubbleIndex_")[1].split("_")[0]),P=parseFloat(M.id.split("_BubbleIndex_")[1].split("_")[2]),w=0;w<e.bubbleModule.bubbleCollection.length;w++){var T=e.bubbleModule.bubbleCollection[w];if(T.LayerIndex===l&&T.BubbleIndex===L&&T.DataIndex===P){var I=T.center.x,k=T.center.y,N=(I+h)*p,E=(k+c)*p,F=0===m.currentLayer.animationDuration&&"Enable"===o.animationMode?1e3:m.currentLayer.animationDuration;t&&0!==F?i.i(n._66)(M,0,F,new n.H(N,E)):M.setAttribute("transform","translate( "+N+" "+E+" )");break}}}else if(b.id.indexOf("_dataLableIndex_Group")>-1&&!i.i(o.isNullOrUndefined)(e.layers[m.index])){e.zoomLabelPositions=[],e.zoomLabelPositions=e.dataLabelModule.dataLabelCollections;var z=!e.isTileMap&&t,A=[];Array.prototype.forEach.call(b.childNodes,function(t,a){if(b.childNodes[a].id.indexOf("_LabelIndex_")>-1){var l=parseFloat(b.childNodes[a].id.split("_LabelIndex_")[1].split("_")[0]),d=b.childNodes[a].id;e.zoomShapeCollection.push(d),s.dataLabelTranslate(b.childNodes[a],f,h,c,p,"DataLabel",z,u,r,A),u++;var m=e.layers[s.index].dataLabelSettings,g=m.border;if(a>0&&g.width>1&&b.childNodes[a-1].id.indexOf("_rectIndex_")>-1&&!i.i(o.isNullOrUndefined)(e.zoomLabelPositions[l])){var y=(e.zoomLabelPositions[l].location.x+h)*p,v=(e.zoomLabelPositions[l].location.y+c)*p,S=b.childNodes[a].textContent,_=e.layers[s.index].dataLabelSettings.textStyle,x=i.i(n.w)(S,_),O=b.childNodes[a-1],M=y-x.width/2,C=v-x.height/2-5;O.setAttribute("x",M),O.setAttribute("y",C)}}})}}else e.isTileMap&&b.id.indexOf("_line_Group")>-1?(b.remove(),y.children.length>0&&y.children[0]?y.insertBefore(e.navigationLineModule.renderNavigation(m.currentLayer,e.tileZoomLevel,m.index),y.children[1]):y.appendChild(e.navigationLineModule.renderNavigation(m.currentLayer,e.tileZoomLevel,m.index))):e.isTileMap&&b.id.indexOf("_Polygons_Group")>-1?m.currentLayer.polygonSettings.polygons.length>0&&(m.currentLayer.polygonSettings.polygons.map(function(t,o){var a=t.points,r=i.i(n.i)(e,e.tileZoomLevel,s.currentLayer,a);document.getElementById(e.element.id+"_LayerIndex_"+s.index+"_PolygonIndex_"+o).setAttribute("d",r)}),document.getElementById(e.element.id+"_LayerIndex_"+m.index+"_Polygons_Group").style.visibility=""):-1===b.id.indexOf("Legend")&&(i.i(a._130)(b,m.index,p,e),e.zoomTranslatePoint=e.translatePoint,m.animateTransform(b,t,h,c,p))}(v)}e.arrangeTemplate()}(g);i.i(o.isNullOrUndefined)(this.currentLayer)||t&&0!==this.currentLayer.animationDuration&&!e.isTileMap||this.processTemplate(h,c,p,e)}},e.prototype.markerTranslates=function(e,t,r,l,s,d,p){var h=this,c=0,u=0,m=0,g=parseInt((e||p).id.split("_LayerIndex_")[1].split("_")[0],10),y=this.maps.renderer.createGroup({id:this.maps.element.id+"_Markers_Group",class:"GroupElement"});y.style.pointerEvents="auto",document.getElementById(y.id)&&i.i(n._27)(y.id);var f=this.maps.mapAreaRect,b=i.i(o.createElement)("div",{id:this.maps.element.id+"_LayerIndex_"+g+"_Markers_Template_Group",className:"template"});b.style.cssText="overflow: hidden; position: absolute;pointer-events: none;top:"+f.y+"px;left:"+f.x+"px;height:"+f.height+"px;width:"+f.width+"px;",document.getElementById(b.id)&&i.i(n._27)(b.id);var v=this.maps.layersCollection[g];Array.prototype.forEach.call(v.markerSettings,function(e,f){var S=e.dataSource;Array.prototype.forEach.call(S,function(_,x){h.maps.markerNullCount=f>=0&&0===x?0:h.maps.markerNullCount;var O={template:e.template,data:_,maps:h.maps,marker:e,cancel:!1,name:a.q,fill:e.fill,colorValuePath:e.colorValuePath,shapeValuePath:e.shapeValuePath,height:e.height,width:e.width,imageUrl:e.imageUrl,imageUrlValuePath:e.imageUrlValuePath,shape:e.shape,border:e.border};O=i.i(n.S)(O,_),O=i.i(n.R)(O,_),h.maps.trigger("markerRendering",O,function(a){e.shapeValuePath!==O.shapeValuePath&&(O=i.i(n.S)(O,_)),e.colorValuePath!==O.colorValuePath&&(O=i.i(n.R)(O,_));var M=i.i(o.isNullOrUndefined)(e.latitudeValuePath)?i.i(o.isNullOrUndefined)(_.latitude)?i.i(o.isNullOrUndefined)(_.Latitude)?null:_.Latitude:parseFloat(_.latitude):Number(i.i(n.Q)(_,e.latitudeValuePath)),C=i.i(o.isNullOrUndefined)(e.longitudeValuePath)?i.i(o.isNullOrUndefined)(_.longitude)?i.i(o.isNullOrUndefined)(_.Longitude)?null:_.Longitude:parseFloat(_.longitude):Number(i.i(n.Q)(_,e.longitudeValuePath)),L=e.offset;if(!O.cancel&&e.visible&&!i.i(o.isNullOrUndefined)(C)&&!i.i(o.isNullOrUndefined)(M)){var P=h.maps.element.id+"_LayerIndex_"+g+"_MarkerIndex_"+f+"_dataIndex_"+x,w=h.maps.isTileMap?i.i(n.j)(new n.H(C,M),h.maps.tileZoomLevel,h.maps.tileTranslatePoint,!0):i.i(n.h)(M,C,t,v,h.maps),T={x:r,y:l};!O.template||isNaN(w.x)||isNaN(w.y)?O.template||isNaN(w.x)||isNaN(w.y)||(u++,i.i(n.Y)(O,e,S,x,w,T,P,L,s,h.maps,y)):(m++,i.i(n.Z)(O,void 0,P,_,f,b,w,T,s,L,h.maps))}c+=isNaN(M)||isNaN(C)?1:0,m+=O.cancel?1:0,u+=O.cancel?1:0,h.maps.markerNullCount=i.i(o.isNullOrUndefined)(M)||i.i(o.isNullOrUndefined)(C)?h.maps.markerNullCount+1:h.maps.markerNullCount;var I=S.length-h.maps.markerNullCount,k=!1;if(y.childElementCount===I-m-c&&"Template"!==d){if(h.maps.isTileMap){var N=document.getElementById(h.maps.element.id+"_LayerIndex_"+g+"_Polygons_Group"),E=document.getElementById(h.maps.element.id+"_LayerIndex_"+g+"_Polygon_Group");i.i(o.isNullOrUndefined)(N)?i.i(o.isNullOrUndefined)(E)?p.insertBefore(y,p.firstElementChild):E.insertAdjacentElement("afterend",y):N.insertAdjacentElement("afterend",y)}else p.appendChild(y);v.markerClusterSettings.allowClustering&&(h.maps.svgObject.appendChild(y),h.maps.element.appendChild(h.maps.svgObject),k=i.i(n.T)(v,y,h.maps,g,y,p,!0,!0))}b.childElementCount===I-u-c&&i.i(n._32)(h.maps.element.id+"_Secondary_Element")&&(i.i(n._32)(h.maps.element.id+"_Secondary_Element").appendChild(b),s>=1&&v.markerClusterSettings.allowClustering&&!k&&i.i(n.T)(v,b,h.maps,g,y,p,!1,!0))})})})},e.prototype.processTemplate=function(e,t,a,r){for(var l=0,s=0;s<this.templateCount;s++){var d=r.mapLayerPanel.calculateFactor(this.currentLayer),p=i.i(n._32)(r.element.id+"_LayerIndex_"+s+"_Markers_Template_Group"),h=i.i(n._32)(r.element.id+"_LayerIndex_"+s+"_Label_Template_Group"),c=i.i(n._32)(r.element.id+"_LayerIndex_"+s+"_Polygons_Group");if(!i.i(o.isNullOrUndefined)(p)&&p.childElementCount>0){p.style.visibility="visible";for(var u=0;u<p.childElementCount;u++)this.markerTranslate(p.childNodes[u],d,e,t,a,"Template")}if(!i.i(o.isNullOrUndefined)(h)&&h.childElementCount>0)for(var u=0;u<h.childElementCount;u++)this.dataLabelTranslate(h.childNodes[u],d,e,t,a,"Template",!1,l),l++;if(!i.i(o.isNullOrUndefined)(c))for(var u=0;u<c.childElementCount;u++){var m=r.layersCollection[s].polygonSettings.polygons[u].borderWidth;c.childNodes[u].childNodes[0].setAttribute("stroke-width",(m/a).toString())}}},e.prototype.dataLabelTranslate=function(e,t,a,r,l,s,d,p,h,c){void 0===d&&(d=!1);var u,m,g,y,f,b,v=this.maps.dataLabelModule.dataLabelCollections,S=this.maps.layers[this.index].dataLabelSettings.textStyle,_=parseFloat(e.id.split("_LayerIndex_")[1].split("_")[0]),x=parseFloat(e.id.split("_shapeIndex_")[1].split("_")[0]);e.id.indexOf("_LabelIndex_")>-1&&(b=parseFloat(e.id.split("_LabelIndex_")[1].split("_")[0]));var O=0===this.currentLayer.animationDuration&&"Enable"===o.animationMode?1e3:this.currentLayer.animationDuration,M=v[p],C=p;if(M.layerIndex===_&&M.shapeIndex===x&&M.labelIndex===b){var L=M.location.x,P=M.location.y;if("Template"===s){var w=0,T=0;if(this.maps.isTileMap)g=M.dataLabelText,y=i.i(n.w)(g,S),w=(L+a)*l-y.width/2,T=(P+r)*l-y.height;else{var I=i.i(n._32)(this.maps.element.id+"_Layer_Collections");L=Math.abs(this.maps.baseMapRectBounds.min.x-L)*l,P=Math.abs(this.maps.baseMapRectBounds.min.y-P)*l;var k=I.getBoundingClientRect(),N=e.parentElement.getBoundingClientRect();w=L+(k.left-N.left),T=P+(k.top-N.top)}e.style.left=w+"px",e.style.top=T+"px"}else{if(L=(L+a)*l,P=(P+r)*l,g=M.dataLabelText,d&&0!==O||e.setAttribute("transform","translate( "+L+" "+P+" )"),(i.i(o.isNullOrUndefined)(h)||!h)&&("None"!==this.maps.layers[this.index].dataLabelSettings.smartLabelMode||"None"!==this.maps.layers[this.index].dataLabelSettings.intersectionAction)){y=i.i(n.x)(g,S);var E=P-y.height/2,F=P+y.height/2,z=L+y.width/2,A=L-y.width/2,B={rightWidth:z,leftWidth:A,heightTop:E,heightBottom:F};"Hide"===this.maps.layers[this.index].dataLabelSettings.smartLabelMode&&(l>1?(u=this.maps.dataLabelShape[C]*l>=y.width?g:"",e.textContent=u):(u=this.maps.dataLabelShape[C]>=y.width?g:"",e.textContent=u));var U=[];if("Trim"===this.maps.layers[this.index].dataLabelSettings.smartLabelMode&&(l>1?(f=i.i(n._25)(this.maps.dataLabelShape[C]*l,g,S,y.width,!0,U),u=f,e.textContent=u):(f=i.i(n._25)(this.maps.dataLabelShape[C],g,S,y.width,!0,U),u=f,e.textContent=u)),"Hide"===this.maps.layers[this.index].dataLabelSettings.intersectionAction){for(var j=0;j<c.length;j++)if(!i.i(o.isNullOrUndefined)(c[j])){if(!(B.leftWidth>c[j].rightWidth||B.rightWidth<c[j].leftWidth||B.heightTop>c[j].heightBottom||B.heightBottom<c[j].heightTop)){u="",e.textContent=u;break}u=i.i(o.isNullOrUndefined)(u)?g:u,e.textContent=u}c.push(B)}if("Trim"===this.maps.layers[this.index].dataLabelSettings.intersectionAction){for(var Z=0;Z<c.length;Z++)if(!i.i(o.isNullOrUndefined)(c[Z]))if(B.rightWidth<c[Z].leftWidth||B.leftWidth>c[Z].rightWidth||B.heightBottom<c[Z].heightTop||B.heightTop>c[Z].heightBottom){if(m=i.i(o.isNullOrUndefined)(u)?g:u,l>1){var R=U.length>0?U[0]:y.width;m=i.i(n._25)(this.maps.dataLabelShape[C]*l,m,S,R,!0)}e.textContent=m}else{if(B.leftWidth>c[Z].leftWidth){var D=c[Z].rightWidth-B.leftWidth,V=D-(B.rightWidth-B.leftWidth);u=i.i(o.isNullOrUndefined)(u)?g:u;var R=U.length>0?U[0]:y.width;m=i.i(n._25)(V,u,S,R,!0),e.textContent=m;break}if(B.leftWidth<c[Z].leftWidth){var D=B.rightWidth-c[Z].leftWidth,V=Math.abs(D-(B.rightWidth-B.leftWidth));u=i.i(o.isNullOrUndefined)(u)?g:u;var R=U.length>0?U[0]:y.width;m=i.i(n._25)(V,u,S,R,!0),e.textContent=m;break}}c.push(B),i.i(o.isNullOrUndefined)(m)&&(m=i.i(n._25)(this.maps.dataLabelShape[C]*l,g,S,y.width,!0),e.textContent=m)}}(d||O>0)&&i.i(n._66)(e,0,O,new n.H(L,P))}}},e.prototype.markerTranslate=function(e,t,a,r,l,s,d){void 0===d&&(d=!1);var p=parseInt(e.id.split("_LayerIndex_")[1].split("_")[0],10),h=parseInt(e.id.split("_MarkerIndex_")[1].split("_")[0],10),c=parseInt(e.id.split("_dataIndex_")[1].split("_")[0],10),u=this.maps.layersCollection[p],m=u.markerSettings[h];if(!i.i(o.isNullOrUndefined)(m)&&!i.i(o.isNullOrUndefined)(m.dataSource)&&!i.i(o.isNullOrUndefined)(m.dataSource[c])){var g=i.i(o.isNullOrUndefined)(m.longitudeValuePath)?i.i(o.isNullOrUndefined)(m.dataSource[c].longitude)?i.i(o.isNullOrUndefined)(m.dataSource[c].Longitude)?0:parseFloat(m.dataSource[c].Longitude):parseFloat(m.dataSource[c].longitude):Number(i.i(n.Q)(m.dataSource[c],m.longitudeValuePath)),y=i.i(o.isNullOrUndefined)(m.latitudeValuePath)?i.i(o.isNullOrUndefined)(m.dataSource[c].latitude)?i.i(o.isNullOrUndefined)(m.dataSource[c].Latitude)?0:parseFloat(m.dataSource[c].Latitude):parseFloat(m.dataSource[c].latitude):Number(i.i(n.Q)(m.dataSource[c],m.latitudeValuePath)),f=0===this.currentLayer.animationDuration&&"Enable"===o.animationMode?1e3:this.currentLayer.animationDuration,b=this.maps.isTileMap?i.i(n.j)(new n.s(g,y),this.maps.tileZoomLevel,this.maps.tileTranslatePoint,!0):i.i(n.h)(y,g,t,u,this.maps);if(this.maps.isTileMap)if("Template"===s){var v=e.getBoundingClientRect();if(e.style.left=b.x-v.width/2+m.offset.x+"px",e.style.top=b.y-v.height/2+m.offset.y+"px","GoogleStaticMap"===this.maps.layers[this.maps.baseLayerIndex].layerType){var S=i.i(n._32)(this.maps.element.id+"_StaticGoogleMap").getBoundingClientRect();"none"!==e.style.display&&((S.x>v.x||S.x+640<v.x+v.width)&&(S.y>v.y||S.y+S.height<v.y+v.height)?e.style.display="none":(S.x>v.x||S.x+640<v.x+v.width)&&(e.style.display="none"))}}else b.x+=m.offset.x,b.y+=m.offset.y,e.setAttribute("transform","translate( "+b.x+" "+b.y+" )");else if("Template"===s)if(f>0){b.x=Math.abs(this.maps.baseMapRectBounds.min.x-b.x)*l,b.y=Math.abs(this.maps.baseMapRectBounds.min.y-b.y)*l;var _=i.i(n._32)(this.maps.element.id+"_Layer_Collections").getBoundingClientRect(),x=e.parentElement.getBoundingClientRect();e.style.left=b.x+(_.left-x.left)+m.offset.x+"px",e.style.top=b.y+(_.top-x.top)+m.offset.y+"px",e.style.transform="translate(-50%, -50%)"}else{var x=e.getBoundingClientRect();e.style.left=(b.x+a)*l+m.offset.x-this.maps.mapAreaRect.x-x.width/2+"px",e.style.top=(b.y+r)*l+m.offset.y-this.maps.mapAreaRect.y-x.height/2+"px"}else b.x=(b.x+a)*l+m.offset.x,b.y=(b.y+r)*l+m.offset.y,d&&0!==f?i.i(n._66)(e,0,f,b):e.setAttribute("transform","translate( "+b.x+" "+b.y+" )")}},e.prototype.markerLineAnimation=function(e){if(e.isTileMap)for(var t=0;t<e.layersCollection.length;t++){var a=i.i(n._32)(this.maps.element.id+"_LayerIndex_"+t+"_Markers_Template_Group"),r=i.i(n._32)(this.maps.element.id+"_LayerIndex_"+t+"_line_Group"),l=i.i(n._32)(this.maps.element.id+"_LayerIndex_"+t+"_Polygons_Group");i.i(o.isNullOrUndefined)(a)||(a.style.visibility="hidden"),i.i(o.isNullOrUndefined)(r)||(r.style.visibility="hidden"),i.i(o.isNullOrUndefined)(l)||(l.style.visibility="hidden")}},e.prototype.panning=function(e,t,a,l){var s,d=this.maps,p=this.mouseDownPoints,h=this.mouseMovePoints,c=d.scale;d.markerZoomedState=!1,d.zoomPersistence=d.enablePersistence,d.defaultState=!1,d.initialCheck=!1;var u,m,g=d.translatePoint,y=d.tileTranslatePoint;t=i.i(o.isNullOrUndefined)(t)?p.x-h.x:t,a=i.i(o.isNullOrUndefined)(a)?p.y-h.y:a;var f=l.type.indexOf("mouse")>-1||l.type.indexOf("key")>-1?l.layerX:l.touches[0].pageX,b=l.type.indexOf("mouse")>-1||l.type.indexOf("key")>-1?l.layerY:l.touches[0].pageY;if(this.maps.mergeCluster(),d.isTileMap){if(this.maps.tileZoomLevel>1){u=d.tileTranslatePoint.x-t,m=d.tileTranslatePoint.y-a,d.tileTranslatePoint.x=u,d.tileTranslatePoint.y=m,(d.tileTranslatePoint.y>-10&&a<0||d.tileTranslatePoint.y<-256*(Math.pow(2,this.maps.tileZoomLevel)-2)&&a>0)&&(d.tileTranslatePoint.x=u+t,d.tileTranslatePoint.y=m+a),d.translatePoint.x=d.tileTranslatePoint.x/d.scale,d.translatePoint.y=d.tileTranslatePoint.y/d.scale;var v=this.maps.getTileGeoLocation(f,b),S=this.maps.getMinMaxLatitudeLongitude();s={cancel:!1,name:r.L,maps:d,tileTranslatePoint:{previous:y,current:d.tileTranslatePoint},translatePoint:{previous:g,current:d.translatePoint},scale:d.scale,tileZoomLevel:d.tileZoomLevel,latitude:v.latitude,longitude:v.longitude,minLatitude:S.minLatitude,maxLatitude:S.maxLatitude,minLongitude:S.minLongitude,maxLongitude:S.maxLongitude},d.trigger(r.L,s),d.mapLayerPanel.generateTiles(d.tileZoomLevel,d.tileTranslatePoint,"Pan"),this.applyTransform(d,!1,!0),d.translatePoint.x=(d.tileTranslatePoint.x-t)/d.scale,d.translatePoint.y=(d.tileTranslatePoint.y-a)/d.scale}}else{var _=document.getElementById(d.element.id+"_Legend_Group"),x=i.i(o.isNullOrUndefined)(_)?0:_.getClientRects()[0].height;u=g.x-t/c,m=g.y-a/c;var O=i.i(n._32)(d.element.id+"_Layer_Collections").getBoundingClientRect(),M=i.i(n._32)(d.element.id+"_svg").getBoundingClientRect(),C=t<0?O.left<=M.left+d.mapAreaRect.x:O.left+O.width+d.mapAreaRect.x>=M.width,L=a<0?O.top<=M.top+d.mapAreaRect.y:O.top+O.height+x+d.margin.top>=M.top+M.height,P=this.maps.getGeoLocation(this.maps.layersCollection.length-1,f,b),S=this.maps.getMinMaxLatitudeLongitude();s={cancel:!1,name:r.L,maps:d,tileTranslatePoint:{},translatePoint:{previous:g,current:new n.s(u,m)},scale:d.scale,tileZoomLevel:d.tileZoomLevel,latitude:P.latitude,longitude:P.longitude,minLatitude:S.minLatitude,maxLatitude:S.maxLatitude,minLongitude:S.minLongitude,maxLongitude:S.maxLongitude},d.trigger(r.L,s),s.cancel||(C&&L?(d.translatePoint=new n.s(u,m),this.applyTransform(d,!1,!0)):C?(d.translatePoint=new n.s(u,d.translatePoint.y),this.applyTransform(d,!1,!0)):L&&(d.translatePoint=new n.s(d.translatePoint.x,m),this.applyTransform(d,!1,!0))),this.maps.zoomNotApplied=!1}d.zoomTranslatePoint=d.translatePoint,this.mouseDownPoints=this.mouseMovePoints,this.isSingleClick=!1},e.prototype.toolBarZooming=function(e,t){var i=this,a=this.maps;a.initialCheck=a.isMarkerZoomCompleted=!1,a.defaultState="Reset"===t&&1===e&&!(a.zoomSettings.resetToInitial&&a.applyZoomReset)||"ZoomOut"===t&&1===e;var r=a.tileZoomLevel,l=a.previousScale=a.scale;a.markerZoomedState=!1,a.zoomPersistence=a.enablePersistence,a.mapScaleValue=e;var s=a.zoomSettings.maxZoom,d=a.zoomSettings.minZoom,p=a.mapAreaRect,h=a.previousPoint=a.translatePoint,c=a.tileTranslatePoint;if(a.previousProjection="Reset"===t?void 0:a.projectionType,e="ZoomOut"===t&&1===Math.round(e)?1:e,e="Reset"===t?d:0===Math.round(e)?1:e,e=d>e&&"ZoomIn"===t?d+1:e,!a.isTileMap&&("ZoomIn"===t?e>=d&&Math.round(e)<=s:e>=d||a.isReset)){var u=a.baseMapRectBounds.min,m=a.baseMapRectBounds.max,g=Math.abs(m.x-u.x),y=Math.abs(u.y-m.y),f=void 0,b=void 0;if(e<1.2&&"Eckert5"!==a.projectionType)0!==y&&0!==g&&y!==g||(g=p.width/2,y=p.height),e=parseFloat(Math.min(p.width/g,p.height/y).toFixed(2)),e=e>1.05?1:e,a.translatePoint=this.calculateInitalZoomTranslatePoint(e,g,y,p,u,a);else{f=h.x-(p.width/l-p.width/e)/2,b=h.y-(p.height/l-p.height/e)/2;var v=Math.abs(a.baseMapRectBounds.max.y-a.baseMapRectBounds.min.y)*e;f=v<a.mapAreaRect.height?p.x+(-u.x+(p.width/2-g/2)):f,b=v<a.mapAreaRect.height?p.y+(-u.y+(p.height/2-y/2)):b,a.translatePoint=new n.s(f,b)}a.zoomTranslatePoint=a.translatePoint,a.scale=e,this.triggerZoomEvent(c,r,t)?(a.translatePoint=a.zoomTranslatePoint=a.previousPoint,a.scale=a.previousScale):this.applyTransform(a,!0)}else if(a.isTileMap&&(e>=d&&e<=s||a.isReset)){var S=r<d&&!a.isReset?d:e;if(a.scale=Math.pow(2,S-1),a.tileZoomLevel=S,a.previousScale!==a.scale||a.isReset){a.zoomSettings.zoomFactor=e;var _={x:a.availableSize.width/2,y:a.availableSize.height/2};if(this.getTileTranslatePosition(r,S,_,t),(a.zoomSettings.resetToInitial&&a.applyZoomReset&&"Reset"===t||"ZoomOut"===t&&a.zoomSettings.resetToInitial&&a.applyZoomReset&&S<=a.initialZoomLevel)&&(a.initialCheck=!0,a.zoomPersistence=!1,a.tileTranslatePoint.x=a.initialTileTranslate.x,a.tileTranslatePoint.y=a.initialTileTranslate.y,S=a.tileZoomLevel=a.mapScaleValue=a.initialZoomLevel),this.triggerZoomEvent(c,r,t))a.translatePoint=a.tileTranslatePoint=new n.s(0,0),a.scale=a.previousScale,a.tileZoomLevel=r,a.zoomSettings.zoomFactor=a.previousScale;else{a.translatePoint.y=(a.tileTranslatePoint.y-.01*a.mapScaleValue)/a.scale,a.translatePoint.x=(a.tileTranslatePoint.x-.01*a.mapScaleValue)/a.scale,document.getElementById(this.maps.element.id+"_LayerIndex_1")&&(document.getElementById(this.maps.element.id+"_LayerIndex_1").style.display="none"),document.querySelector(".GroupElement")&&(document.querySelector(".GroupElement").style.display="none"),this.markerLineAnimation(a),a.mapLayerPanel.generateTiles(S,a.tileTranslatePoint,t);var x=0===this.maps.layersCollection[0].animationDuration&&"Enable"===o.animationMode?1e3:this.maps.layersCollection[0].animationDuration;setTimeout(function(){i.applyTransform(i.maps,!0),document.getElementById(i.maps.element.id+"_LayerIndex_1")&&(document.getElementById(i.maps.element.id+"_LayerIndex_1").style.display="block"),i.maps.isAddLayer=!1},x)}}this.maps.zoomNotApplied=!1}this.triggerZoomComplete(a,r,t)},e.prototype.createZoomingToolbars=function(){var e=this.maps;this.toolBarGroup=e.renderer.createGroup({id:e.element.id+"_Zooming_KitCollection",opacity:"fluentdark"===e.theme.toLowerCase()?.6:.3});var t=15,a=15,r=e.zoomSettings.toolbarSettings,l=e.zoomSettings.toolbarSettings.buttonSettings;this.maps.toolbarProperties={toolBarOrientation:"Horizontal"===r.orientation?e.zoomSettings.toolBarOrientation:r.orientation,highlightColor:null==l.highlightColor?e.zoomSettings.highlightColor:l.highlightColor,selectionColor:null==l.selectionColor?e.zoomSettings.selectionColor:l.selectionColor,horizontalAlignment:"Far"===r.horizontalAlignment?e.zoomSettings.horizontalAlignment:r.horizontalAlignment,verticalAlignment:"Near"===r.verticalAlignment?e.zoomSettings.verticalAlignment:r.verticalAlignment,color:null==l.color?e.zoomSettings.color:l.color,shapeOpacity:1!==l.opacity?l.opacity:1,borderOpacity:1!==l.borderOpacity?l.borderOpacity:1};var s=l.radius/4,d=l.radius/4,p=l.radius/2,h=l.padding,c=this.maps.toolbarProperties.toolBarOrientation,u=e.zoomSettings.toolbarSettings.buttonSettings.toolbarItems.map(function(e){return e}),m=3===u.length?e.zoomSettings.toolbars:u;t=l.radius/4+l.borderWidth/2+h,a=l.radius/4+l.borderWidth/2+h;var g='<filter id="chart_shadow" height="130%"><feGaussianBlur in="SourceAlpha" stdDeviation="5"/>';g+='<feOffset dx="-3" dy="4" result="offsetblur"/><feComponentTransfer><feFuncA type="linear" slope="1"/>',g+='</feComponentTransfer><feMerge><feMergeNode/><feMergeNode in="SourceGraphic"/></feMerge></filter>';var y=u.length,f="Horizontal"===c?y*l.radius+y*h+h+y*l.borderWidth:l.radius+l.borderWidth+2*h,b="Horizontal"===c?l.radius+l.borderWidth+2*h:y*l.radius+y*h+h+y*l.borderWidth,v=e.renderer.createDefs();v.innerHTML=g,this.toolBarGroup.appendChild(v);var S=e.renderer.drawRectangle(new n.B(e.element.id+"_Zooming_Rect",r.backgroundColor,{color:r.borderColor,width:r.borderWidth,opacity:r.borderOpacity},r.borderOpacity,new n.I(r.borderWidth/2,r.borderWidth/2,f-r.borderWidth,b-r.borderWidth),0,0));this.toolBarGroup.appendChild(S);for(var _=(l.radius-l.borderWidth/2)/30,x=0;x<m.length;x++){0!==x&&(t="Horizontal"===e.toolbarProperties.toolBarOrientation?t+(l.radius+h)+l.borderWidth:t,a="Horizontal"===e.toolbarProperties.toolBarOrientation?a:a+(l.radius+h)+l.borderWidth);var O=m[x],M=i.i(o.isNullOrUndefined)(this.maps.toolbarProperties.color)?this.maps.themeStyle.zoomFillColor:this.maps.toolbarProperties.color,C=l.borderColor||this.maps.themeStyle.zoomFillColor;this.currentToolbarEle=e.renderer.createGroup({id:e.element.id+"_Zooming_ToolBar_"+O+"_Group",transform:"translate( "+t+" "+a+" ) "}),this.currentToolbarEle.setAttribute("class","e-maps-toolbar"),this.currentToolbarEle.appendChild(e.renderer.drawCircle(new n.C(e.element.id+"_Zooming_ToolBar_"+O+"_Rect",l.fill,{color:C,width:l.borderWidth,opacity:l.borderOpacity},l.opacity,s,d,p,"")));var L="",P=l.fill;switch(this.selectionColor=this.maps.toolbarProperties.selectionColor||this.maps.themeStyle.zoomSelectionColor,O.toLowerCase()){case"zoom":var w=void 0,T=void 0;L="M0.001,14.629L1.372,16l4.571-4.571v-0.685l0.228-0.274c1.051,0.868,2.423,1.417,3.885,1.417c3.291,0,",L+="5.943-2.651,5.943-5.943S13.395,0,10.103,0S4.16,2.651,4.16,5.943c0,1.508,0.503,2.834,1.417,3.885l-0.274,0.228H4.571",L+="L0.001,14.629L0.001,14.629z M5.943,5.943c0-2.285,1.828-4.114,4.114-4.114s4.114,1.828,4.114,",this.currentToolbarEle.setAttribute("class",this.maps.zoomSettings.enableSelectionZooming?"e-maps-toolbar":""),this.maps.zoomSettings.enablePanning&&!this.maps.zoomSettings.enableSelectionZooming?(w=P,T=M):this.maps.zoomSettings.enablePanning&&this.maps.zoomSettings.enableSelectionZooming?(w=P,T=M):this.maps.zoomSettings.enablePanning||this.maps.zoomSettings.enableSelectionZooming?!this.maps.zoomSettings.enablePanning&&this.maps.zoomSettings.enableSelectionZooming?(w=this.maps.themeStyle.zoomFillColor,T=M):(w=this.selectionColor,T=this.selectionColor):(w=P,T=M);var I=e.renderer.drawPath(new n.z(e.element.id+"_Zooming_ToolBar_"+O,w,1,T,1,1,null,L+"4.114s-1.828,4.114-4.114,4.114S5.943,8.229,5.943,5.943z"));I.setAttribute("transform","scale( "+_+","+_+" )"),this.currentToolbarEle.appendChild(I),this.zoomElements=this.currentToolbarEle,this.wireEvents(this.currentToolbarEle,this.performToolBarAction);break;case"zoomin":L="M 8, 0 L 8, 16 M 0, 8 L 16, 8";var k=e.renderer.drawPath(new n.z(e.element.id+"_Zooming_ToolBar_"+O+"_Path",P,3,M,1,1,null,L));k.setAttribute("transform","scale( "+_+","+_+" )"),this.currentToolbarEle.appendChild(k),this.wireEvents(this.currentToolbarEle,this.performToolBarAction);break;case"zoomout":L="M 0, 8 L 16, 8";var N=e.renderer.drawPath(new n.z(e.element.id+"_Zooming_ToolBar_"+O,P,3,M,1,1,null,L));N.setAttribute("transform","scale( "+_+","+_+" )"),this.currentToolbarEle.appendChild(N),this.wireEvents(this.currentToolbarEle,this.performToolBarAction);break;case"pan":var E=void 0;L="M5,3h2.3L7.275,5.875h1.4L8.65,3H11L8,0L5,3z M3,11V8.7l2.875,0.025v-1.4L3,7.35V5L0,8L3,",L+="11z M11,13H8.7l0.025-2.875h-1.4L7.35,13H5l3,3L11,13z M13,5v2.3l-2.875-0.025v1.4L13,8.65V11l3-3L13,5z",this.currentToolbarEle.setAttribute("class",this.maps.zoomSettings.enablePanning?"e-maps-toolbar":""),this.maps.zoomSettings.enablePanning&&this.maps.zoomModule.isDragZoom?E=this.selectionColor||this.maps.themeStyle.zoomFillColor:this.maps.zoomSettings.enablePanning?E=P||this.maps.themeStyle.zoomFillColor:(E=this.selectionColor||this.maps.themeStyle.zoomFillColor,this.currentToolbarEle.setAttribute("class",""));var F=e.renderer.drawPath(new n.z(e.element.id+"_Zooming_ToolBar_"+O,E,1,M,1,1,null,L));F.setAttribute("transform","scale( "+_+","+_+" )"),this.currentToolbarEle.appendChild(F),this.panColor=E,this.panElements=this.currentToolbarEle,this.wireEvents(this.currentToolbarEle,this.performToolBarAction);break;case"reset":L="M12.364,8h-2.182l2.909,3.25L16,8h-2.182c0-3.575-2.618-6.5-5.818-6.5c-1.128,0-2.218,0.366-3.091,",L+="1.016l1.055,1.178C6.581,3.328,7.272,3.125,8,3.125C10.4,3.125,12.363,5.319,12.364,8L12.364,8z M11.091,",L+="13.484l-1.055-1.178C9.419,12.672,8.728,12.875,8,12.875c-2.4,0-4.364-2.194-4.364-4.875h2.182L2.909,4.75L0,8h2.182c0,";var z=e.renderer.drawPath(new n.z(e.element.id+"_Zooming_ToolBar_"+O,P,null,M,1,1,null,L+"3.575,2.618,6.5,5.818,6.5C9.128,14.5,10.219,14.134,11.091,13.484L11.091,13.484z"));z.setAttribute("transform","scale( "+_+","+_+" )"),this.currentToolbarEle.appendChild(z),this.wireEvents(this.currentToolbarEle,this.performToolBarAction)}this.toolBarGroup.appendChild(this.currentToolbarEle)}},e.prototype.performToolBarAction=function(e){var t=e.target;e.stopImmediatePropagation();var i="touch"===e.pointerType||"2"===e.pointerType||e.type.indexOf("touch")>-1,n=t.id.split("_Zooming_ToolBar_")[1].split("_")[0],o=!0;switch(n.toLowerCase()){case"zoomin":o=(this.maps.isTileMap?this.maps.tileZoomLevel:this.maps.scale)+1<=this.maps.zoomSettings.maxZoom;break;case"zoomout":var a=this.maps.isTileMap?this.maps.tileZoomLevel:this.maps.scale;o="Miller"===this.maps.projectionType||"Winkel3"===this.maps.projectionType||"AitOff"===this.maps.projectionType?Math.round(a)-1>=this.maps.zoomSettings.minZoom:a-1>=this.maps.zoomSettings.minZoom;break;case"reset":o=Math.round(this.maps.isTileMap?this.maps.tileZoomLevel:this.maps.scale)!==this.maps.zoomSettings.minZoom}i&&o?(this.handled=!0,this.performZoomingByToolBar(n)):"mousedown"!==e.type&&"pointerdown"!==e.type||this.handled||!o?this.handled=!1:(this.handled=!1,this.performZoomingByToolBar(n))},e.prototype.performZoomingByToolBar=function(e){var t=this.maps;t.isReset=!1;var i=0,n=this.fillColor||this.maps.themeStyle.zoomFillColor;switch(e.toLowerCase()){case"zoom":this.panColor=n,this.zoomColor=this.maps.zoomSettings.enableSelectionZooming?this.selectionColor:n,this.applySelection(this.zoomElements,this.zoomColor),this.applySelection(this.panElements,this.panColor),this.isPan=!1,this.isZoomSelection=this.maps.zoomSettings.enableSelectionZooming;break;case"pan":this.panColor=this.maps.zoomSettings.enablePanning?this.selectionColor:n,this.zoomColor=n,this.maps.zoomSettings.enablePanning?(this.applySelection(this.zoomElements,this.fillColor||n),this.applySelection(this.panElements,this.panColor)):(this.applySelection(this.zoomElements,this.selectionColor),this.applySelection(this.panElements,this.panColor)),this.isPan=this.maps.zoomSettings.enablePanning,this.isZoomSelection=!1;break;case"zoomin":t.staticMapZoom=t.tileZoomLevel,t.staticMapZoom>0&&t.staticMapZoom<22&&(t.staticMapZoom+=1),this.toolBarZooming((t.isTileMap?t.tileZoomLevel:t.scale)+1,"ZoomIn"),i=this.maps.isTileMap?Math.round(this.maps.tileZoomLevel):Math.round(this.maps.mapScaleValue),this.isZoomSelection||(i===t.zoomSettings.maxZoom||i>1||1===i&&this.maps.isTileMap?(this.applySelection(this.zoomElements,n),this.applySelection(this.panElements,t.zoomSettings.enablePanning?this.selectionColor:n)):1!==i||this.maps.isTileMap||(this.applySelection(this.zoomElements,n),this.applySelection(this.panElements,n)));break;case"zoomout":t.staticMapZoom=t.tileZoomLevel,t.markerCenterLatitude=null,t.markerCenterLongitude=null,this.toolBarZooming((t.isTileMap?t.tileZoomLevel:t.scale)-1,"ZoomOut"),i=this.maps.isTileMap?Math.round(this.maps.tileZoomLevel):Math.round(this.maps.mapScaleValue),!this.isPan&&this.isZoomSelection?(this.panColor=n,this.zoomColor=this.selectionColor,this.applySelection(this.zoomElements,this.selectionColor),this.applySelection(this.panElements,this.panColor)):i<=1&&!t.isTileMap?this.applySelection(this.panElements,n):this.applySelection(this.panElements,t.zoomSettings.enablePanning?this.selectionColor:n);break;case"reset":t.staticMapZoom=t.zoomSettings.enable?t.zoomSettings.zoomFactor:0,t.markerCenterLatitude=null,t.markerCenterLongitude=null,this.isZoomSelection=!1,this.isPan=t.zoomSettings.enablePanning,this.toolBarZooming(t.zoomSettings.minZoom,"Reset"),this.isPan&&!this.isZoomSelection||!this.isPan&&this.isZoomSelection?this.maps.zoomSettings.enablePanning?(this.applySelection(this.zoomElements,n),this.applySelection(this.panElements,this.selectionColor)):(this.applySelection(this.zoomElements,this.selectionColor),this.applySelection(this.panElements,n)):this.isPan||this.isZoomSelection||(this.applySelection(this.zoomElements,n),this.applySelection(this.panElements,n))}this.panningStyle(e.toLowerCase())},e.prototype.panningStyle=function(e){var t=i.i(n._32)(this.maps.element.id+"_svg");"pan"===e||this.isPanModeEnabled&&"reset"!==e?t.setAttribute("class","e-maps-panning"):t.setAttribute("class","")},e.prototype.applySelection=function(e,t){if(e)for(var i,n=0;n<e.childElementCount;n++)i=e.childNodes[n],"circle"!==i.tagName&&(i.setAttribute("fill",e.id.indexOf("Pan")>-1?t:"transparent"),i.setAttribute("stroke",t))},e.prototype.showTooltip=function(e){var t=e.target.id.split("_Zooming_ToolBar_")[1].split("_")[0],o=this.maps.zoomSettings.toolbarSettings.tooltipSettings,a={visible:o.visible,fill:o.fill,borderOpacity:o.borderOpacity,borderWidth:o.borderWidth,borderColor:o.borderColor,fontColor:o.fontColor,fontFamily:o.fontFamily,fontStyle:o.fontStyle,fontWeight:o.fontWeight,fontSize:o.fontSize||"10px",fontOpacity:o.fontOpacity};a.fontFamily=this.maps.themeStyle.fontFamily,this.isTouch||(i.i(n._50)("EJ2_Map_Toolbar_Tip",this.maps.getLocalizedLabel(t),e.pageY+10,e.pageX+10,a),this.maps.isDevice&&(clearTimeout(this.clearTimeout),this.clearTimeout=setTimeout(this.removeTooltip.bind(this),2e3)))},e.prototype.removeTooltip=function(){i.i(n._32)("EJ2_Map_Toolbar_Tip")&&i.i(o.remove)(i.i(n._32)("EJ2_Map_Toolbar_Tip"))},e.prototype.alignToolBar=function(){var e=this.maps,t=i.i(o.createElement)("div",{id:e.element.id+"_ToolBar"});t.style.cssText="position:absolute;z-index:2";var a=e.renderer.createSvg({id:e.element.id+"_Zooming_ToolBar",width:10,height:10});a.appendChild(this.toolBarGroup),t.appendChild(a),i.i(n._32)(e.element.id+"_Secondary_Element")&&i.i(n._32)(e.element.id+"_Secondary_Element").appendChild(t);var r=this.toolBarGroup.getBoundingClientRect();a.setAttribute("height",(r.height+e.zoomSettings.toolbarSettings.borderWidth).toString()),a.setAttribute("width",(r.width+e.zoomSettings.toolbarSettings.borderWidth).toString());var l=i.i(o.isNullOrUndefined)(e.totalRect)?e.mapAreaRect:e.totalRect,s=0,d=0;switch(e.toolbarProperties.verticalAlignment){case"Near":d=l.y;break;case"Center":d=l.height/2-r.height/2;break;case"Far":d=l.height-r.height-10}switch(e.toolbarProperties.horizontalAlignment){case"Near":s=l.x;break;case"Center":s=l.width/2-r.width/2;break;case"Far":s=i.i(o.isNullOrUndefined)(e.legendModule)||"Left"!==e.legendSettings.position?l.width-r.width-10:l.width+l.x-r.width-10}t.style.left=s+"px",t.style.top=d+"px";var p=this.maps.toolbarProperties.highlightColor||this.maps.themeStyle.zoomSelectionColor,h=" .e-maps-toolbar:hover > circle { stroke:"+p+"; } .e-maps-toolbar:hover > path { fill: "+p+" ; stroke: "+p+"; }.e-maps-toolbar:hover { cursor: pointer; } .e-maps-cursor-disable:hover { cursor: not-allowed; } .e-maps-panning:hover { cursor: pointer; } .e-maps-popup-close { display: block; opacity: 0; }",c=document.createElement("style");c.appendChild(document.createTextNode(h)),t.appendChild(c)},e.prototype.removeToolbarOpacity=function(e,t){if(this.maps.zoomModule&&this.maps.zoomSettings.enable)if(i.i(n._32)(this.maps.element.id+"_Zooming_KitCollection")&&t.indexOf(this.maps.element.id+"_Zooming_")>-1){this.maps.isDevice?(i.i(n._32)(this.maps.element.id+"_Zooming_KitCollection").setAttribute("opacity","1"),this.removeToolbarClass("","","","","")):this.removeToolbarClass(this.maps.zoomSettings.enableSelectionZooming?"e-maps-toolbar":"","e-maps-toolbar","e-maps-toolbar",this.maps.zoomSettings.enablePanning?"e-maps-toolbar":"","e-maps-toolbar");var o=this.maps.toolbarProperties.shapeOpacity,a=this.maps.toolbarProperties.borderOpacity;this.maps.isTileMap&&(e<=1.1||this.maps.zoomSettings.minZoom===e)?(this.maps.isDevice||this.removeToolbarClass(this.maps.zoomSettings.enableSelectionZooming?"e-maps-toolbar":"","e-maps-toolbar","",this.maps.zoomSettings.enablePanning?"e-maps-toolbar":"",""),this.maps.zoomSettings.enablePanning&&this.removePanColor(this.maps.toolbarProperties.selectionColor||this.maps.themeStyle.zoomSelectionColor),this.isZoomSelection&&this.maps.zoomSettings.enableSelectionZooming&&!this.maps.isReset&&(this.removeZoomColor(this.maps.toolbarProperties.selectionColor||this.maps.themeStyle.zoomSelectionColor),this.removePanColor(this.maps.toolbarProperties.color||this.maps.themeStyle.zoomFillColor)),this.removeZoomOpacity(this.maps.zoomSettings.enableSelectionZooming?o:.3,this.maps.zoomSettings.enableSelectionZooming?a:.3,o,a,.3,.3,this.maps.zoomSettings.enablePanning?o:.3,this.maps.zoomSettings.enablePanning?a:.3,.3,.3)):e<=1.1||this.maps.zoomSettings.minZoom===e?(this.maps.isDevice||this.removeToolbarClass(this.maps.zoomSettings.enableSelectionZooming?"e-maps-toolbar":"","e-maps-toolbar","","",""),!this.isZoomSelection&&this.maps.zoomSettings.enablePanning&&this.removePanColor(this.maps.toolbarProperties.color||this.maps.themeStyle.zoomFillColor),this.isZoomSelection&&this.maps.zoomSettings.enableSelectionZooming&&!this.maps.isReset&&(this.removeZoomColor(this.maps.toolbarProperties.selectionColor||this.maps.themeStyle.zoomSelectionColor),this.removePanColor(this.maps.toolbarProperties.color||this.maps.themeStyle.zoomFillColor)),this.removeZoomOpacity(this.maps.zoomSettings.enableSelectionZooming?o:.3,this.maps.zoomSettings.enableSelectionZooming?a:.3,o,a,.3,.3,.3,.3,.3,.3)):e<this.maps.zoomSettings.maxZoom?(this.maps.isDevice||this.removeToolbarClass(this.maps.zoomSettings.enableSelectionZooming?"e-maps-toolbar":"","e-maps-toolbar","e-maps-toolbar",this.maps.zoomSettings.enablePanning?"e-maps-toolbar":"","e-maps-toolbar"),this.maps.zoomModule.isZoomFinal?this.maps.zoomModule.isZoomFinal=!1:this.removeZoomOpacity(this.maps.zoomSettings.enableSelectionZooming?o:.3,this.maps.zoomSettings.enableSelectionZooming?a:.3,o,a,o,a,this.maps.zoomSettings.enablePanning?o:.3,this.maps.zoomSettings.enablePanning?a:.3,o,a),this.isZoomSelection&&this.maps.zoomSettings.enableSelectionZooming?(this.removeZoomColor(this.maps.toolbarProperties.selectionColor||this.maps.themeStyle.zoomSelectionColor),this.maps.zoomModule.isPan&&this.maps.zoomSettings.enablePanning&&this.removePanColor(this.maps.toolbarProperties.color||this.maps.themeStyle.zoomFillColor)):!this.isZoomSelection&&this.maps.zoomSettings.enablePanning&&(this.removePanColor(this.maps.toolbarProperties.selectionColor||this.maps.themeStyle.zoomSelectionColor),this.maps.zoomSettings.enableSelectionZooming&&this.removeZoomColor(this.maps.toolbarProperties.color||this.maps.themeStyle.zoomFillColor))):(this.maps.isDevice||this.removeToolbarClass("","","e-maps-toolbar",this.maps.zoomSettings.enablePanning?"e-maps-toolbar":"","e-maps-toolbar"),this.removeZoomOpacity(.3,.3,.3,.3,o,a,this.maps.zoomSettings.enablePanning?o:.3,this.maps.zoomSettings.enablePanning?a:.3,o,a),this.maps.zoomSettings.enableSelectionZooming&&this.removeZoomColor(this.maps.toolbarProperties.color||this.maps.themeStyle.zoomFillColor),!this.isZoomSelection&&this.maps.zoomSettings.enablePanning&&this.removePanColor(this.maps.toolbarProperties.selectionColor||this.maps.themeStyle.zoomSelectionColor))}else this.maps.isDevice||(this.removePanColor(this.maps.toolbarProperties.color||this.maps.themeStyle.zoomFillColor),this.removeZoomColor(this.maps.toolbarProperties.color||this.maps.themeStyle.zoomFillColor),this.removeZoomOpacity(1,1,1,1,1,1,1,1,1,1))},e.prototype.setOpacity=function(e,t,o,a){i.i(n._32)(this.maps.element.id+e)&&(i.i(n._32)(this.maps.element.id+e).setAttribute("stroke-opacity",o.toString()),i.i(n._32)(this.maps.element.id+e).setAttribute("fill-opacity",o.toString()),i.i(n._32)(this.maps.element.id+t).setAttribute("stroke-opacity",a.toString()),i.i(n._32)(this.maps.element.id+t).setAttribute("fill-opacity",a.toString()))},e.prototype.removeZoomOpacity=function(e,t,i,n,o,a,r,l,s,d){this.setOpacity("_Zooming_ToolBar_Zoom_Rect","_Zooming_ToolBar_Zoom",t,e),this.setOpacity("_Zooming_ToolBar_ZoomIn_Rect","_Zooming_ToolBar_ZoomIn_Path",n,i),this.setOpacity("_Zooming_ToolBar_ZoomOut_Rect","_Zooming_ToolBar_ZoomOut",a,o),this.setOpacity("_Zooming_ToolBar_Pan_Rect","_Zooming_ToolBar_Pan",l,r),this.setOpacity("_Zooming_ToolBar_Reset_Rect","_Zooming_ToolBar_Reset",d,s)},e.prototype.removeToolbarClass=function(e,t,o,a,r){i.i(n._32)(this.maps.element.id+"_Zooming_KitCollection")&&(document.getElementById(this.maps.element.id+"_Zooming_ToolBar_ZoomIn_Group")&&i.i(n._32)(this.maps.element.id+"_Zooming_ToolBar_ZoomIn_Group").setAttribute("class",t),document.getElementById(this.maps.element.id+"_Zooming_ToolBar_ZoomOut_Group")&&i.i(n._32)(this.maps.element.id+"_Zooming_ToolBar_ZoomOut_Group").setAttribute("class",o),document.getElementById(this.maps.element.id+"_Zooming_ToolBar_Reset_Group")&&i.i(n._32)(this.maps.element.id+"_Zooming_ToolBar_Reset_Group").setAttribute("class",r),document.getElementById(this.maps.element.id+"_Zooming_ToolBar_Zoom_Group")&&this.maps.zoomSettings.enableSelectionZooming&&i.i(n._32)(this.maps.element.id+"_Zooming_ToolBar_Zoom_Group").setAttribute("class",e),document.getElementById(this.maps.element.id+"_Zooming_ToolBar_Pan_Group")&&this.maps.zoomSettings.enablePanning&&i.i(n._32)(this.maps.element.id+"_Zooming_ToolBar_Pan_Group").setAttribute("class",a))},e.prototype.removePanColor=function(e){i.i(n._32)(this.maps.element.id+"_Zooming_ToolBar_Pan_Rect")&&this.maps.zoomSettings.enablePanning&&(i.i(n._32)(this.maps.element.id+"_Zooming_ToolBar_Pan").setAttribute("fill",e),i.i(n._32)(this.maps.element.id+"_Zooming_ToolBar_Pan").setAttribute("stroke",e))},e.prototype.removeZoomColor=function(e){i.i(n._32)(this.maps.element.id+"_Zooming_ToolBar_Zoom_Rect")&&this.maps.zoomSettings.enableSelectionZooming&&(i.i(n._32)(this.maps.element.id+"_Zooming_ToolBar_Zoom").setAttribute("fill","transparent"),i.i(n._32)(this.maps.element.id+"_Zooming_ToolBar_Zoom").setAttribute("stroke",e))},e.prototype.wireEvents=function(e,t){o.EventHandler.add(e,o.Browser.touchStartEvent,t,this),o.EventHandler.add(e,"mouseover",this.showTooltip,this),o.EventHandler.add(e,"mouseout",this.removeTooltip,this)},e.prototype.mapMouseWheel=function(e){if(this.maps.zoomSettings.enable&&this.maps.zoomSettings.mouseWheelZoom){var t=this.maps;t.markerZoomedState=!1,t.zoomPersistence=t.enablePersistence;var n=this.getMousePosition(e.pageX,e.pageY),a=t.tileZoomLevel,r=t.scale,l=t.zoomSettings.maxZoom,s=t.isTileMap?a:r;if(n.x>t.mapAreaRect.x&&n.x<t.mapAreaRect.x+t.mapAreaRect.width&&n.y>t.mapAreaRect.y&&n.y<t.mapAreaRect.y+t.mapAreaRect.height){e.preventDefault();var d="mozilla"!==this.browserName||this.isPointer?e.wheelDelta/120>0?"ZoomIn":"ZoomOut":-e.detail/3>0?"ZoomIn":"ZoomOut";"ZoomIn"===d?(t.mapScaleValue=s+1,t.staticMapZoom=t.tileZoomLevel,t.staticMapZoom>0&&t.staticMapZoom<l&&(t.staticMapZoom+=1,this.performZooming(n,s+1,d))):(t.mapScaleValue=s-1,t.isReset=t.mapScaleValue<1,t.staticMapZoom=t.tileZoomLevel,1===t.mapScaleValue&&(t.markerCenterLatitude=null,t.markerCenterLongitude=null),t.staticMapZoom>1&&t.staticMapZoom<l&&(t.staticMapZoom-=1),this.performZooming(n,s-1,d))}this.removeToolbarOpacity(t.mapScaleValue,this.maps.isDevice?this.maps.element.id+"_Zooming_":i.i(o.isNullOrUndefined)(e.target)?this.maps.element.id:e.target.id)}},e.prototype.doubleClick=function(e){var t=e.pageX,n=e.pageY,a=e.target.closest("#"+this.maps.element.id+"_mapsTooltipparent_template");if(this.maps.zoomSettings.enable&&this.maps.zoomSettings.doubleClickZoom&&!(e.target.id.indexOf("_Zooming_")>-1)&&i.i(o.isNullOrUndefined)(a)){var r=this.getMousePosition(t,n),l=this.maps,s=l.tileZoomLevel,d=l.scale;l.mapScaleValue=l.mapScaleValue+1;var p=l.isTileMap?s:d;r.x>l.mapAreaRect.x&&r.x<l.mapAreaRect.x+l.mapAreaRect.width&&r.y>l.mapAreaRect.y&&r.y<l.mapAreaRect.y+l.mapAreaRect.height&&this.performZooming(r,p+1,"ZoomIn")}},e.prototype.mouseDownHandler=function(e){var t,i,n=null;e.target;"touchstart"===e.type?(this.isTouch=!0,n=e.touches,e.target,t=n[0].pageX,i=n[0].pageY):(t=e.pageX,i=e.pageY,e.target),this.maps.zoomSettings.enablePanning?this.isPan=this.isPanModeEnabled=!this.isZoomSelection:this.isPan=this.isPanModeEnabled=this.panColor!==this.selectionColor?this.maps.zoomSettings.enablePanning:this.zoomColor===this.selectionColor,this.mouseDownLatLong={x:t,y:i};var o=this.maps.isTileMap?Math.round(this.maps.tileZoomLevel):Math.round(this.maps.mapScaleValue);this.rectZoomingStart=this.isZoomSelection&&o<this.maps.zoomSettings.maxZoom&&this.maps.zoomSettings.enable,this.mouseDownPoints=this.getMousePosition(t,i),this.isTouch&&null!==n&&(this.firstMove=!0,this.pinchFactor=this.maps.scale,this.fingers=n.length),this.isSingleClick=!0},e.prototype.mouseMoveHandler=function(e){var t,a,r,l=this.maps,s=null,d=this.maps.zoomSettings;if("touchmove"===e.type?(this.isTouch=!0,r=e.target,s=e.touches,t=s[0].pageX,a=s[0].pageY):(t=e.pageX,a=e.pageY,r=e.target),i.i(n._32)(l.element.id+"_Zooming_KitCollection")&&(r.id.indexOf("_Zooming_")>-1?i.i(n._32)(l.element.id+"_Zooming_KitCollection").setAttribute("opacity","1"):l.isDevice||i.i(n._32)(l.element.id+"_Zooming_KitCollection").setAttribute("opacity","fluentdark"===l.theme.toLowerCase()?"0.6":"0.3")),this.isTouch&&this.maps.zoomSettings.pinchZooming&&null!==s&&(this.firstMove&&2===s.length?(this.rectZoomingStart=!1,this.updateInteraction(),this.touchStartList=i.i(n._57)(e)):2===s.length&&2===this.touchStartList.length&&(this.touchMoveList=i.i(n._57)(e),e.preventDefault(),this.rectZoomingStart=!1,this.performPinchZooming(e)),this.firstMove=!1),this.mouseMovePoints=this.getMousePosition(t,a),d.enable&&this.isPanModeEnabled&&-1===this.maps.markerDragId.indexOf("_MarkerIndex_")&&(o.Browser.isDevice&&s.length>=1||!o.Browser.isDevice)&&(e.preventDefault(),this.maps.element.style.cursor="pointer",this.mouseMoveLatLong={x:t,y:a},this.mouseDownLatLong.x!==this.mouseMoveLatLong.x&&this.mouseDownLatLong.y!==this.mouseMoveLatLong.y&&(this.maps.zoomSettings.enablePanning&&this.panning("None",null,null,e),this.mouseDownLatLong.x=t,this.mouseDownLatLong.y=a)),this.isTouch?null!==s&&1===s.length&&this.rectZoomingStart:this.rectZoomingStart){e.preventDefault();var p=this.maps.isTileMap?Math.round(this.maps.tileZoomLevel):Math.round(this.maps.mapScaleValue);this.maps.zoomSettings.enableSelectionZooming&&p<this.maps.zoomSettings.maxZoom?this.drawZoomRectangle():(this.rectZoomingStart=!1,this.isPan=!0)}},e.prototype.mouseUpHandler=function(e){if(this.rectZoomingStart=!1,this.isSingleClick=!!this.isSingleClick,this.isTouch=!1,this.touchStartList=[],this.touchMoveList=[],this.lastScale=1,this.maps.element.style.cursor="auto",this.isPanModeEnabled&&this.maps.zoomSettings.enablePanning&&!i.i(o.isNullOrUndefined)(this.maps.previousPoint)&&this.maps.translatePoint.x!==this.maps.previousPoint.x&&this.maps.translatePoint.y!==this.maps.previousPoint.y){var t=void 0,a=void 0,r=0,l=0,s=e.target;if(-1!==e.type.indexOf("touch")){var d=e;r=t=d.changedTouches[0].pageX,a=d.changedTouches[0].pageY,l=a-(this.maps.isTileMap?10:0),d.target,this.maps.mouseClickEvent={x:t,y:a}}else t=e.pageX,a=e.pageY,r=e.layerX,l=e.layerY-(this.maps.isTileMap?10:0),e.target;var p=void 0,h=this.maps.getMinMaxLatitudeLongitude();if(this.maps.isTileMap){var c=this.maps.getTileGeoLocation(r,l);p={cancel:!1,name:"panComplete",maps:this.maps,tileTranslatePoint:{previous:this.maps.tileTranslatePoint,current:this.maps.tileTranslatePoint},translatePoint:{previous:this.maps.previousPoint,current:this.maps.translatePoint},scale:this.maps.scale,tileZoomLevel:this.maps.tileZoomLevel,latitude:c.latitude,longitude:c.longitude,minLatitude:h.minLatitude,maxLatitude:h.maxLatitude,minLongitude:h.minLongitude,maxLongitude:h.maxLongitude}}else{this.maps.mouseClickEvent.x=this.maps.mouseDownEvent.x,this.maps.mouseClickEvent.y=this.maps.mouseDownEvent.y;var u=this.maps.getClickLocation(s.id,t,a,s,t,a);p={cancel:!1,name:"panComplete",maps:this.maps,tileTranslatePoint:{},translatePoint:{previous:this.maps.previousPoint,current:this.maps.translatePoint},scale:this.maps.scale,tileZoomLevel:this.maps.tileZoomLevel,latitude:i.i(o.isNullOrUndefined)(u)?0:u.latitude,longitude:i.i(o.isNullOrUndefined)(u)?0:u.longitude,minLatitude:h.minLatitude,maxLatitude:h.maxLatitude,minLongitude:h.minLongitude,maxLongitude:h.maxLongitude}}this.maps.trigger("panComplete",p)}this.isPanModeEnabled=!1;var m=i.i(n._32)(this.maps.element.id+"_Selection_Rect_Zooming");m&&this.maps.zoomSettings.enable&&this.maps.zoomSettings.enableSelectionZooming&&(i.i(o.remove)(m),this.performRectZooming()),this.mouseMoveLatLong={x:0,y:0},this.mouseDownLatLong={x:0,y:0},this.pinchDistance=null},e.prototype.mouseCancelHandler=function(e){this.isPanModeEnabled=!1,this.isTouch=!1,this.rectZoomingStart=!1;var t=i.i(n._32)(this.maps.element.id+"_Selection_Rect_Zooming");t&&this.maps.zoomSettings.enable&&(i.i(o.remove)(t),this.performRectZooming())},e.prototype.click=function(e){var t=this.maps,n=e.target.closest("#"+this.maps.element.id+"_mapsTooltipparent_template");if(t.markerModule&&t.markerModule.sameMarkerData.length>0||e.target.id.indexOf("MarkerIndex")>-1&&-1===e.target.id.indexOf("cluster")||!i.i(o.isNullOrUndefined)(n))return null;if(this.isSingleClick&&t.zoomSettings.zoomOnClick&&!(e.target.id.indexOf("_Zooming_")>-1)&&!t.zoomSettings.doubleClickZoom&&this.zoomColor!==this.selectionColor){var a=e.pageX,r=e.pageY,l=this.getMousePosition(a,r),s=t.tileZoomLevel,d=t.scale;t.mapScaleValue=t.mapScaleValue+1;var p=t.isTileMap?s:d;l.x>t.mapAreaRect.x&&l.x<t.mapAreaRect.x+t.mapAreaRect.width&&l.y>t.mapAreaRect.y&&l.y<t.mapAreaRect.y+t.mapAreaRect.height&&this.performZooming(l,p+1,"ZoomIn")}},e.prototype.getMousePosition=function(e,t){var i=this.maps,o=i.element.getBoundingClientRect(),a=i.element.ownerDocument.defaultView.pageXOffset,r=i.element.ownerDocument.defaultView.pageYOffset,l=i.element.ownerDocument.documentElement.clientTop,s=i.element.ownerDocument.documentElement.clientLeft,d=o.left+a-s,p=o.top+r-l;return new n.s(Math.abs(e-d),Math.abs(t-p))},e.prototype.addEventListener=function(){this.maps.isDestroyed||(o.EventHandler.add(this.maps.element,this.wheelEvent,this.mapMouseWheel,this),o.EventHandler.add(this.maps.element,"click",this.click,this),o.EventHandler.add(this.maps.element,"dblclick",this.doubleClick,this),this.maps.on(o.Browser.touchMoveEvent,this.mouseMoveHandler,this),this.maps.on(o.Browser.touchStartEvent,this.mouseDownHandler,this),this.maps.on(o.Browser.touchEndEvent,this.mouseUpHandler,this),o.EventHandler.add(this.maps.element,this.cancelEvent,this.mouseCancelHandler,this))},e.prototype.removeEventListener=function(){this.maps.isDestroyed||(o.EventHandler.remove(this.maps.element,this.wheelEvent,this.mapMouseWheel),o.EventHandler.remove(this.maps.element,"click",this.click),o.EventHandler.remove(this.maps.element,"dblclick",this.doubleClick),this.maps.off(o.Browser.touchMoveEvent,this.mouseMoveHandler),this.maps.off(o.Browser.touchStartEvent,this.mouseDownHandler),this.maps.off(o.Browser.touchEndEvent,this.mouseUpHandler),o.EventHandler.remove(this.maps.element,this.cancelEvent,this.mouseCancelHandler))},e.prototype.getModuleName=function(){return"Zoom"},e.prototype.destroy=function(){this.toolBarGroup=null,this.currentToolbarEle=null,this.zoomingRect=null,this.zoomElements=null,this.panElements=null,this.baseTranslatePoint=null,this.touchStartList=null,this.touchMoveList=null,this.previousTouchMoveList=null,this.mouseDownPoints=null,this.mouseMovePoints=null,this.startTouches=[],this.mouseDownLatLong=null,this.mouseMoveLatLong=null,this.removeEventListener(),this.layerCollectionEle=null,this.currentLayer=null,this.pinchDistance=null,this.maps=null},e}()},function(e,t){e.exports=i},function(e,t){e.exports=n}])});
10
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("SyncfusionBase"),require("SyncfusionSvgBase"),require("SyncfusionData"),require("SyncfusionPdfExport")):"function"==typeof define&&define.amd?define(["SyncfusionBase","SyncfusionSvgBase","SyncfusionData","SyncfusionPdfExport"],t):"object"==typeof exports?exports.SyncfusionMaps=t(require("SyncfusionBase"),require("SyncfusionSvgBase"),require("SyncfusionData"),require("SyncfusionPdfExport")):e.SyncfusionMaps=t(e.SyncfusionBase,e.SyncfusionSvgBase,e.SyncfusionData,e.SyncfusionPdfExport)}(this,function(e,t,i,n){return function(e){function t(n){if(i[n])return i[n].exports;var o=i[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var i={};return t.m=e,t.c=i,t.i=function(e){return e},t.d=function(e,i,n){t.o(e,i)||Object.defineProperty(e,i,{configurable:!1,enumerable:!0,get:n})},t.n=function(e){var i=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(i,"a",i),i},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=7)}([function(e,t,i){"use strict";function n(e,t){return null!==e&&void 0!==e?-1!==e.indexOf("%")?t/100*parseInt(e,10):parseInt(e,10):null}function o(e){e.element.style.height=i.i(et.isNullOrUndefined)(e.height)?"auto":e.height,e.element.style.width=i.i(et.isNullOrUndefined)(e.width)?"auto":e.width,e.element.style.setProperty("display","block");var t=e.element.clientWidth,o=e.element.clientHeight,a=n(e.element.style.width,t),r=n(e.element.style.height,o);new at(0,0);return"0px"===e.width||"0%"===e.width||"0%"===e.height||"0px"===e.height?new at(0,0):new at(n(e.width,t)||t||a||600,n(e.height,o)||o||r||(e.isDevice?Math.min(window.innerWidth,window.innerHeight):450))}function a(e){e.renderer=new tt.SvgRenderer(e.element.id),e.availableSize=o(e),e.svgObject=e.renderer.createSvg({id:e.element.id+"_svg",width:e.availableSize.width,height:e.availableSize.height}),"0px"!==e.width&&"0%"!==e.width&&"0%"!==e.height&&"0px"!==e.height||(e.svgObject.setAttribute("height","0"),e.svgObject.setAttribute("width","0"))}function r(e,t,i){var n=i.getBoundingClientRect(),o=i.ownerDocument.defaultView.pageXOffset,a=i.ownerDocument.defaultView.pageYOffset,r=i.ownerDocument.documentElement.clientTop,l=i.ownerDocument.documentElement.clientLeft,s=n.left+o-l,d=n.top+a-r;return new vt(e-s,t-d)}function l(e){return e*(Math.PI/180)}function s(e){return e*(180/Math.PI)}function d(e,t,n,o,a){var r,d,p,h,y,f,v=new at(a.mapAreaRect.width,a.mapAreaRect.height),S=a.baseMapBounds.longitude,_=a.baseMapBounds.latitude,x=l(e),O=l(t),M=a.projectionType,C=a.isTileMap?256*Math.pow(2,1):i.i(et.isNullOrUndefined)(n)?Math.min(v.width,v.height):Math.min(v.width,v.height)*n;if("Normal"===o.geometryType)r=i.i(et.isNullOrUndefined)(n)?t:Math.abs((t-S.min)*n),d=i.i(et.isNullOrUndefined)(n)?e:Math.abs((_.max-e)*n);else if("Geographic"===o.geometryType){switch(M){case"Mercator":var L=new rt(C/2,C/2);r=L.x+t*(C/360);var P=b(Math.sin(l(e)),-.9999,.9999);d=L.y+.5*Math.log((1+P)/(1-P))*(-C/(2*Math.PI));break;case"Winkel3":p=m(O,x),y=(p.x+O/(Math.PI/2))/2,h=(p.y+x)/2;break;case"Miller":y=O,h=1.25*Math.log(Math.tan(Math.PI/4+.4*x));break;case"Eckert3":f=Math.sqrt(Math.PI*(4+Math.PI)),y=2/f*O*(1+Math.sqrt(1-4*x*x/(Math.PI*Math.PI))),h=4/f*x;break;case"AitOff":p=m(O,x),y=p.x,h=p.y;break;case"Eckert5":y=O*(1+Math.cos(x))/Math.sqrt(2+Math.PI),h=2*x/Math.sqrt(2+Math.PI);break;case"Equirectangular":y=O,h=x;break;case"Eckert6":;f=(1+Math.PI/2)*Math.sin(x);for(var w=1/0,T=0;T<10&&Math.abs(w)>1e-6;T++)w=(x+Math.sin(x)-f)/(1+Math.cos(x)),x-=w;f=Math.sqrt(2+Math.PI),y=O*(1+Math.cos(x))/f,h=2*x/f}r="Mercator"===M?r:g(u(a,s(y)),3),d="Mercator"===M?d:-g(c(a,s(h)),3)}return new rt(r,d)}function p(e,t,i,n){var o="";return Array.prototype.forEach.call(n,function(n,a){var r=n.latitude,l=n.longitude,s=e.isTileMap?h(new vt(l,r),t,e.tileTranslatePoint,!0):d(r,l,t,i,e);o+=0===a?"M "+s.x+" "+s.y:" L "+s.x+" "+s.y}),o+=" z "}function h(e,t,i,n){var o=256*Math.pow(2,t),a=(e.x+180)/360,r=Math.sin(e.y*Math.PI/180),l=.5-Math.log((1+r)/(1-r))/(4*Math.PI),s=e.x,d=e.y;return n&&(s=a*o+.5+i.x,d=l*o+.5+i.y),{x:s,y:d}}function u(e,t){var n=e.baseMapBounds.longitude,o=i.i(et.isNullOrUndefined)(e.baseSize)?e.mapAreaRect.width:e.mapAreaRect.width+Math.abs(e.baseSize.width-e.mapAreaRect.width)/2;return Math.round(o*(t-n.min)/(n.max-n.min)*100)/100}function c(e,t){var i=e.baseMapBounds.latitude;return Math.round(e.mapAreaRect.height*(t-i.min)/(i.max-i.min)*100)/100}function m(e,t){var i=Math.cos(t),n=y(f(i*Math.cos(e/=2)));return new rt(2*i*Math.sin(e)*n,Math.sin(t)*n)}function g(e,t){var i=Math.pow(10,t);return Math.round(e*i)/i}function y(e){return e/Math.sin(e)}function f(e){return Math.acos(e)}function b(e,t,n){return i.i(et.isNullOrUndefined)(t)||(e=Math.max(e,t)),i.i(et.isNullOrUndefined)(n)||(e=Math.min(e,n)),e}function v(e,t,n,o){i.i(et.createElement)("a",{attrs:{download:e+"."+t.toLocaleLowerCase(),href:n}}).dispatchEvent(new MouseEvent(o?"click":"move",{view:window,bubbles:!1,cancelable:!0}))}function S(e,t){var i=document.getElementById("mapsmeasuretext");return null===i&&(i=document.createElement("text"),i.id="mapsmeasuretext",document.body.appendChild(i)),i.innerText=e,i.style.cssText="position: absolute; font-size: "+("number"==typeof t.size?t.size+"px":t.size)+"; font-weight: "+t.fontWeight+"; font-style: "+t.fontStyle+"; font-family: "+t.fontFamily+"; visibility: hidden; top: -100; left: 0; whiteSpace: nowrap; lineHeight: normal",new at(i.clientWidth,i.clientHeight)}function _(e,t){var i=document.createElement("canvas"),n=i.getContext("2d");n.font=t.fontStyle+" "+t.fontWeight+" "+("number"==typeof t.size?t.size+"px":t.size)+" "+t.fontFamily;var o=n.measureText(e),a=o.width,r=parseFloat(t.size)||16;return new at(a,r)}function x(e,t,i,n,o){void 0===o&&(o=!1);var a,r,l={id:e.id,x:e.x,y:e.y,fill:i,"font-size":t.size,"font-style":t.fontStyle,"font-family":t.fontFamily,"font-weight":t.fontWeight,"text-anchor":e.anchor,transform:e.transform,opacity:t.opacity,"dominant-baseline":e.baseLine},s="string"==typeof e.text||"number"==typeof e.text?e.text:o?e.text[e.text.length-1]:e.text[0],d=new tt.SvgRenderer(""),p=d.createText(l,s);if(p.style["user-select"]="none",p.style["font-family"]=t.fontFamily,p.style["font-size"]=t.size,p.style["font-weight"]=t.fontWeight,p.style["font-color"]=t.color,p.style["-moz-user-select"]="none",p.style["-webkit-touch-callout"]="none",p.style["-webkit-user-select"]="none",p.style["-khtml-user-select"]="none",p.style["-ms-user-select"]="none",p.style["-o-user-select"]="none","string"!=typeof e.text&&e.text.length>1)for(var h=1,u=e.text.length;h<u;h++)r=S(e.text[h],t).height,a=d.createTSpan({x:e.x,id:e.id,y:e.y+(o?-h*r:h*r)},o?e.text[e.text.length-(h+1)]:e.text[h]),p.appendChild(a);return n.appendChild(p),p}function O(e,t,n,o,a,r){var l=i.i(et.createElement)("div",{id:t,className:a.element.id+"_marker_template_element"});l.style.cssText="position: absolute;pointer-events: auto;";for(var s=e.length;s>0;)l.appendChild(e[0]),s--;if(!a.isReact||"function"!==r){for(var d=l.innerHTML,p=Object.keys(n),h=RegExp,u=0;u<p.length;u++)"object"==typeof n[p[u]]?d=C(d,"",n,a):"latitude"!==p[u].toLowerCase()&&"longitude"!==p[u].toLowerCase()&&(d=d.replace(new h("{{:"+p[u]+"}}","g"),n[p[u].toString()]));l.innerHTML=d}return l}function M(e,t){var i,n;return t.format&&!isNaN(Number(e))?(n=t.intl.getNumberFormat({format:t.format,useGrouping:t.useGroupingSeparator}),i=n(Number(e))):i=e,i}function C(e,t,i,n){for(var o=""===e?t:e,a=""===e?o.split("${"):o.split("{{:"),r=RegExp,l=0;l<a.length;l++)if(a[l].indexOf("}}")>-1&&a[l].indexOf(".")>-1||a[l].indexOf("}")>-1&&a[l].search(".")>-1)for(var s=""===e?a[l].split("}"):a[l].split("}}"),d=0;d<s.length;d++)if(s[d].indexOf(".")>-1){var p=w(i,s[d]).toString();o=""===e?o.split("${"+s[d]+"}").join(M(p,n)):o.replace(new r("{{:"+s[d]+"}}","g"),p)}return o}function L(e,t,n){for(var o=i.i(et.isNullOrUndefined)(e.childElementCount)?e[0]:e,a=o.outerHTML,r=Object.keys(n),l=RegExp,s=0;s<r.length;s++)a=a.replace(new l("{{:"+r[s]+"}}","g"),n[r[s].toString()]);var d=i.i(et.createElement)("div",{id:t,innerHTML:a});return d.style.position="absolute",d}function P(e,t,n,o,a,r,l){var s,d,p,h,u=a.size,c=a.borderColor,m=parseFloat(a.borderWidth),g=parseFloat(a.borderOpacity),y=a.fill,f=a.dashArray,b={color:c,width:m,opacity:g},v=a.opacity,S=new ht(o,y,m,c,v,g,f,"");if(u.width="string"==typeof u.width?parseInt(u.width,10):u.width,u.height="string"==typeof u.height?parseInt(u.height,10):u.height,"Circle"===e){var _=(u.width+u.height)/4,x=new mt(o,y,b,v,n.x,n.y,_,f);s=l.renderer.drawCircle(x)}else"Rectangle"===e?(d=n.x-u.width/2,p=n.y-u.height/2,h=new ct(o,y,b,v,new St(d,p,u.width,u.height),null,null,"",f),s=l.renderer.drawRectangle(h)):"Image"===e?(d=n.x-u.width/2,p=n.y-(o.indexOf("cluster")>-1?u.height/2:u.height),i.i(et.merge)(S,{href:t,height:u.height,width:u.width,x:d,y:p}),s=l.renderer.drawImage(S)):s=X(l,e,S,u,n,r);return s}function w(e,t){if(!i.i(et.isNullOrUndefined)(e)&&!i.i(et.isNullOrUndefined)(t)){var n=t.replace(/\[/g,".").replace(/\]/g,"").split(".");if(1===n.length)e=e[n[0]];else for(var o=0;o<n.length&&!i.i(et.isNullOrUndefined)(e);o++)e=e[n[o]]}return e}function T(e,t){var n=i.i(et.isNullOrUndefined)(e.colorValuePath)?t[e.colorValuePath]:e.colorValuePath.indexOf(".")>-1?w(t,e.colorValuePath).toString():t[e.colorValuePath];return e.fill=i.i(et.isNullOrUndefined)(e.colorValuePath)||i.i(et.isNullOrUndefined)(n)?e.fill:e.colorValuePath.indexOf(".")>-1?w(t,e.colorValuePath).toString():t[e.colorValuePath],e}function I(e,t){if(i.i(et.isNullOrUndefined)(e.shapeValuePath)||i.i(et.isNullOrUndefined)(t[e.shapeValuePath])){var n=i.i(et.isNullOrUndefined)(e.shapeValuePath)?e.shape:e.shapeValuePath.indexOf(".")>-1?w(t,e.shapeValuePath).toString():e.shape;e.shape=""!==n.toString()?n:e.shape;var o=i.i(et.isNullOrUndefined)(e.imageUrlValuePath)?e.imageUrl:e.imageUrlValuePath.indexOf(".")>-1?w(t,e.imageUrlValuePath).toString():i.i(et.isNullOrUndefined)(t[e.imageUrlValuePath])?e.imageUrl:t[e.imageUrlValuePath];e.imageUrl=o}else{var a=e.shapeValuePath.indexOf(".")>-1?w(t,e.shapeValuePath).toString():t[e.shapeValuePath];e.shape=""!==a.toString()?a:e.shape,"Image"===t[e.shapeValuePath]&&(e.imageUrl=i.i(et.isNullOrUndefined)(e.imageUrlValuePath)?e.imageUrl:e.imageUrlValuePath.indexOf(".")>-1?w(t,e.imageUrlValuePath).toString():i.i(et.isNullOrUndefined)(t[e.imageUrlValuePath])?e.imageUrl:t[e.imageUrlValuePath])}return e}function k(e,t,n,o,a,r,l,s){var p,u,c,m,g,y,f,b=[],v=[],S=0,_=0,O=e.markerClusterSettings.labelStyle,M=0,C=[],L=e.markerClusterSettings,T=n.renderer.createGroup({id:n.element.id+"_LayerIndex_"+o+"_markerCluster"}),I={cancel:!1,name:nt.r,fill:L.fill,height:L.height,width:L.width,imageUrl:L.imageUrl,shape:L.shape,data:void 0,maps:n,cluster:L,border:L.border},k=n.element.getBoundingClientRect();n.isTileMap?new Object:me(n,e,!1);var F;n.isTileMap||(F=n.mapLayerPanel.calculateFactor(e));var z=!1,A=n.isTileMap?n.tileZoomLevel:n.mapScaleValue;return n.trigger("markerClusterRendering",I,function(B){for(Array.prototype.forEach.call(t.childNodes,function(r,l){if(C=[],"hidden"!==r.style.visibility){if(f=r,p=f.getBoundingClientRect(),C.push(l),!i.i(et.isNullOrUndefined)(p)){var s=n.markerModule.zoomedMarkerCluster.length>0&&n.markerModule.zoomedMarkerCluster[o]&&n.markerModule.zoomedMarkerCluster[o][l]&&n.markerModule.zoomedMarkerCluster[o][l].length>0||n.markerModule.initialMarkerCluster.length>0&&n.markerModule.initialMarkerCluster[o]&&n.markerModule.initialMarkerCluster[o][l]&&n.markerModule.initialMarkerCluster[o][l].length>0?n.previousScale<A?n.markerModule.zoomedMarkerCluster[o][l]:n.markerModule.initialMarkerCluster[o][l]:null;if(i.i(et.isNullOrUndefined)(s)||0===s.length?Array.prototype.forEach.call(t.childNodes,function(e,t){t>=l+1&&"hidden"!==e.style.visibility&&E(e,p,b,C,t)}):Array.prototype.forEach.call(s,function(e){if(l!==e){var t=document.getElementById(n.element.id+"_LayerIndex_"+o+"_MarkerIndex_0_dataIndex_"+e);"hidden"!==t.style.visibility&&E(t,p,b,C,e)}}),N(n,A,o,l,C),S=p.left+p.width/2,_=p.top+p.height,b.length>0){C=C.filter(function(e,t,i){return i.indexOf(e)===t}),S-=k.left,_-=n.availableSize.height<=k.height?k.top:k.bottom-k.top;var u,g=parseInt(r.id.split("_dataIndex_")[1].split("_")[0],10),v=parseInt(r.id.split("_MarkerIndex_")[1].split("_")[0],10),B=e.markerSettings[v],U=B.dataSource[g],j=i.i(et.isNullOrUndefined)(B.longitudeValuePath)?i.i(et.isNullOrUndefined)(U.longitude)?i.i(et.isNullOrUndefined)(U.Latitude)?0:parseFloat(U.Latitude):parseFloat(U.longitude):Number(w(U,B.longitudeValuePath)),Z=i.i(et.isNullOrUndefined)(B.latitudeValuePath)?i.i(et.isNullOrUndefined)(U.latitude)?i.i(et.isNullOrUndefined)(U.Latitude)?0:parseFloat(U.Latitude):parseFloat(U.latitude):Number(w(U,B.latitudeValuePath));n.isTileMap?n.isTileMap&&!n.zoomSettings.enable&&(u=h(new rt(j,Z),n.tileZoomLevel,n.tileTranslatePoint,!0)):u=d(Z,j,F,e,n),r.style.visibility="hidden",I.cancel?(y={size:new at(L.width,L.height),fill:L.fill,borderColor:L.border.color,borderWidth:L.border.width,opacity:L.opacity,dashArray:L.dashArray,imageUrl:L.imageUrl,shape:L.shape},y.borderOpacity=i.i(et.isNullOrUndefined)(L.border.opacity)?L.opacity:L.border.opacity):(y={size:new at(I.width,I.height),fill:I.fill,borderColor:I.border.color,borderWidth:I.border.width,opacity:L.opacity,dashArray:L.dashArray,imageUrl:I.imageUrl,shape:I.shape},y.borderOpacity=i.i(et.isNullOrUndefined)(I.border.opacity)?L.opacity:I.border.opacity),S=n.isTileMap?S:t.id.indexOf("_Markers_Group")>-1?S:S+3.75-I.width/2,_=n.isTileMap?_:t.id.indexOf("_Markers_Group")>-1?_:_-I.height/2,n.isTileMap&&!n.zoomSettings.enable&&(S=u.x,_=u.y);var R=n.element.id+"_LayerIndex_"+o+"_MarkerIndex_"+v+"_dataIndex_"+g+"_cluster_"+M,D=n.element.id+"_LayerIndex_"+o+"_MarkerIndex_"+v+"_dataIndex_"+g+"_cluster_"+M+"_datalabel_"+M;M++;var V=P(y.shape,y.imageUrl,{x:0,y:0},R,y,a,n);V.setAttribute("transform","translate( "+S+" "+_+" )"),"Balloon"===I.shape?V.children[0].textContent=C.toString():V.textContent=C.toString(),c=new pt(D,0,3.75,"middle",(b.length+1).toString(),"",""),m=x(c,O,O.color,a),m.setAttribute("transform","translate( "+S+" "+_+" )"),T.appendChild(m),T.appendChild(V)}}b=[]}else N(n,A,o,l,C);z=!0}),r.appendChild(T),n.svgObject.appendChild(r),n.element.appendChild(n.svgObject),L.allowDeepClustering&&Array.prototype.forEach.call(T.childNodes,function(e,t){if("hidden"!==e.style.visibility&&(f=e,p=f.getBoundingClientRect(),!(i.i(et.isNullOrUndefined)(p)||f.id.indexOf("_datalabel_")>-1))){for(var n=t+1;n<T.childElementCount;n++)"hidden"!==T.childNodes[n].style.visibility&&(g=T.childNodes[n],u=g.getBoundingClientRect(),i.i(et.isNullOrUndefined)(u)||g.id.indexOf("_datalabel_")>-1||p.left>u.right||p.right<u.left||p.top>u.bottom||p.bottom<u.top||(v.push(g),v.push(T.childNodes[n-1]),T.childNodes[n].style.visibility="hidden",T.childNodes[n-1].style.visibility="hidden",C.push(n)));if(v.length>0){f=e;for(var o=0;o<v.length;o++)"g"===f.tagName?f.childNodes[0].textContent=f.childNodes[0].textContent+","+v[o].textContent:f.textContent=f.textContent+","+v[o].textContent,T.childNodes[t-1].textContent=(+T.childNodes[t-1].textContent+ +v[o+1].textContent).toString(),o++}v=[]}});0<T.childNodes.length;)a.insertBefore(T.childNodes[0],a.firstChild);l||fe(n.element.id+"_Secondary_Element").appendChild(a);var U=document.getElementById(n.element.id+"_LayerIndex_"+o+"_Polygon_Group"),j=document.getElementById(n.element.id+"_LayerIndex_"+o+"_Polygons_Group");i.i(et.isNullOrUndefined)(U)&&!n.isTileMap?r.insertBefore(a,r.firstChild):n.isTileMap?i.i(et.isNullOrUndefined)(j)?i.i(et.isNullOrUndefined)(U)?r.insertBefore(a,r.firstChild):U.insertAdjacentElement("afterend",a):j.insertAdjacentElement("afterend",a):r.appendChild(a);var Z=document.getElementById(n.element.id+"_LayerIndex_"+o+"_markerCluster");if(i.i(et.isNullOrUndefined)(Z)||Z.remove(),s){var R=document.getElementById(n.element.id+"_Layer_Collections"),D=document.getElementById(n.element.id+"_LayerIndex_"+(o+1));i.i(et.isNullOrUndefined)(R)||i.i(et.isNullOrUndefined)(D)?i.i(et.isNullOrUndefined)(R)||R.appendChild(r):R.insertBefore(r,D)}}),z}function N(e,t,n,o,a){if(1===t){var r=i.i(et.isNullOrUndefined)(e.markerModule.initialMarkerCluster[n][o])?[]:a.length>1?a:[];e.markerModule.initialMarkerCluster[n][o]=r;var l=i.i(et.isNullOrUndefined)(e.markerModule.zoomedMarkerCluster[n][o])?[]:a.length>1?a:[];e.markerModule.zoomedMarkerCluster[n][o]=l}else t>1&&(e.markerModule.zoomedMarkerCluster[n][o]=a.length>1?a:[])}function E(e,t,n,o,a){var r=e.getBoundingClientRect();i.i(et.isNullOrUndefined)(r)||t.left>r.right||t.right<r.left||t.top>r.bottom||t.bottom<r.top||(n.push(r),e.style.visibility="hidden",o.push(a))}function F(e,t){var n=e[0].layerIndex,o=e[0].targetClusterIndex,a=e[0].markerIndex,r=e[0].dataIndex,l=t.element.id+"_LayerIndex_"+n+"_MarkerIndex_"+a,s=t.layers[n].markerSettings[a],d=l+"_dataIndex_"+r+"_cluster_"+o,p=_e("Balloon"===t.layers[n].markerClusterSettings.shape?d+"_Group":d),h=_e(d+"_datalabel_"+o);p.setAttribute("visibility","visible"),h.setAttribute("visibility","visible");for(var u,c=e[0].data.length,m=0;m<c;m++)u=_e("Balloon"===s.shape&&i.i(et.isNullOrUndefined)(s.template)?l+"_dataIndex_"+e[0].data[m].index+"_Group":l+"_dataIndex_"+e[0].data[m].index),u.style.visibility="hidden";ue(t.element.id+"_LayerIndex_"+n+"_MarkerIndex_"+a+"_markerClusterConnectorLine")}function z(e,t,n,o){var a=e[0].layerIndex,r=e[0].markerIndex,l=e[0].targetClusterIndex,s=e[0].dataIndex,d=o?_e:n.querySelector.bind(n),p=o?"":"#",h=t.element.id+"_LayerIndex_"+a+"_MarkerIndex_"+r,u=t.layers[a].markerSettings[r],c=h+"_dataIndex_"+s+"_cluster_"+l,m=d("Balloon"===t.layers[a].markerClusterSettings.shape?p+""+c+"_Group":p+""+c),g=d(p+""+c+"_datalabel_"+l);m.setAttribute("visibility","hidden"),g.setAttribute("visibility","hidden");var y=d("Balloon"===u.shape&&i.i(et.isNullOrUndefined)(u.template)?p+""+h+"_dataIndex_"+s+"_Group":p+""+h+"_dataIndex_"+s),f=y.parentElement.id.indexOf("Template_Group")>-1?y.getBoundingClientRect().height:u.height,b=y.parentElement.id.indexOf("Template_Group")>-1?y.getBoundingClientRect().width:u.width,v=+m.getAttribute("transform").split("translate(")[1].trim().split(" ")[0],S=+m.getAttribute("transform").split("translate(")[1].trim().split(" ")[1].split(")")[0].trim(),_=b+5,x=6.28*_,O=0,M=Math.round(x/b);O+=M;var C=e[0].data.length,L=Math.round(f/x*100);L=C<M?100/C:L;for(var P=L/100*360,w=C<M?45:0,T=1,I="M "+v+" "+S+" ",k="",N=0;N<C;N++){if(O===N||Math.round(w)>=360){for(T++,_=(b+5)*T,w=0,x=6.28*_,M=Math.round(x/f),L=Math.round(f/x*100);L*M<100;)M++;P=L/100*360,O+=M}var E=v+_*Math.sin(2*Math.PI*w/360),F=S+_*Math.cos(2*Math.PI*w/360);k+=I+"L "+E+" "+F+" ",y=d("Balloon"===u.shape&&i.i(et.isNullOrUndefined)(u.template)?p+""+h+"_dataIndex_"+e[0].data[N].index+"_Group":p+""+h+"_dataIndex_"+e[0].data[N].index),y.parentElement.id.indexOf("Template_Group")>-1?(y.style.transform="",y.style.left=t.isTileMap?E-b/2+"px":E-b/2-10+"px",y.style.top=t.isTileMap?F-f/2+"px":F-f/2-10+"px",y.setAttribute("transform","translate( "+E+" "+F+")")):y.setAttribute("transform","translate( "+E+" "+F+")"),y.style.visibility="visible",w+=P}var z=t.layers[a].markerClusterSettings.connectorLineSettings,A={d:k,id:t.element.id+"_LayerIndex_"+a+"_MarkerIndex_"+r+"_dataIndex_"+s+"_markerClusterConnectorLine",stroke:z.color,"fill-opacity":z.opacity,"stroke-opacity":z.opacity,"stroke-width":z.width};n=o?d(t.element.id+"_Markers_Group"):n;var B=t.renderer.createGroup({id:t.element.id+"_LayerIndex_"+a+"_MarkerIndex_"+r+"_markerClusterConnectorLine"});B.appendChild(t.renderer.drawPath(A)),"Balloon"===u.shape?n.insertBefore(B,n.querySelector("#"+h+"_dataIndex_0_Group")):n.insertBefore(B,n.querySelector("#"+h+"_dataIndex_0"))}function A(e,t,n,o,a,r,l,s,d,p,h){var u={size:new at(e.width,e.height),fill:e.fill,borderColor:e.border.color,borderWidth:e.border.width,opacity:t.opacity,dashArray:t.dashArray,borderOpacity:i.i(et.isNullOrUndefined)(e.border.opacity)?t.opacity:e.border.opacity};ue(l);var c=P(e.shape,e.imageUrl,{x:0,y:0},l,u,h,p),m=(p.isTileMap?a.x:(a.x+r.x)*d)+s.x,g=(p.isTileMap?a.y:(a.y+r.y)*d)+s.y;if(c.setAttribute("transform","translate( "+m+" "+g+" )"),U(p.selectedMarkerElementId,p.markerSelectionClass,c,"MarkerselectionMapStyle"),p.legendSettings.toggleLegendSettings.enable&&"Markers"===p.legendSettings.type){var y=parseInt(c.id.split("_LayerIndex_")[1],10);j(p.toggledElementId,"g"===c.tagName?c.children[0]:c,p.legendSettings.toggleLegendSettings.applyShapeSettings?p.layers[y].shapeSettings:p.legendSettings.toggleLegendSettings)}h.appendChild(c);var f=n.length-1===o?"marker":null,b=new rt(m,g);return(t.animationDuration>0||"Enable"===et.animationMode)&&ke(c,t.animationDelay,t.animationDuration,b,p,f),h}function B(e,t,i,n,o,a,r,l,s,d,p){if((t=Se(e.template,p))&&t(n,p,e.template,p.element.id+"_MarkerTemplate"+o,!1).length){for(var h=t(n,p,e.template,p.element.id+"_MarkerTemplate"+o,!1),u=O(h,i,n,o,p,typeof e.template),c=0;c<u.children.length;c++)u.children[c].style.pointerEvents="auto";if(u.style.left=(p.isTileMap?r.x:(r.x+l.x)*s)+d.x-p.mapAreaRect.x+"px",u.style.top=(p.isTileMap?r.y:(r.y+l.y)*s)+d.y-p.mapAreaRect.y+"px",a.appendChild(u),"GoogleStaticMap"===p.layers[p.baseLayerIndex].layerType){var m=fe(p.element.id+"_StaticGoogleMap").getBoundingClientRect(),g=u.getBoundingClientRect();(m.x>g.x||m.x+640<g.x+g.width)&&(m.y>g.y||m.y+m.height<g.y+g.height)&&(u.style.display="none")}}return a}function U(e,t,n,o){if(e)for(var a=0;a<e.length;a++)n.getAttribute("id")===e[a]&&(0!==a&&"g"!==n.tagName||(i.i(et.isNullOrUndefined)(t)||i.i(et.isNullOrUndefined)(t.id)||document.body.appendChild(t),n.id.indexOf("_MarkerIndex_")>-1&&n.childElementCount>0&&n.children[0].setAttribute("class",o)),n.setAttribute("class",o))}function j(e,t,n){if(!i.i(et.isNullOrUndefined)(e)&&e.length>0)for(var o=0;o<e.length;o++)e[o]===t.id&&(t.setAttribute("fill",n.fill),t.setAttribute("stroke",n.border.color),t.setAttribute("fill-opacity",n.opacity.toString()),t.setAttribute("stroke-opacity",(i.i(et.isNullOrUndefined)(n.border.opacity)?n.opacity:n.border.opacity).toString()),t.setAttribute("stroke-width",(i.i(et.isNullOrUndefined)(n.border.width)?0:n.border.width).toString()))}function Z(e,t,n,o,a,r,l){if(!_e(e)){var s=i.i(et.createElement)("style",{id:e});s.innerText="."+t+"{fill:"+n+";opacity:"+o+";stroke-width:"+r+";stroke:"+a+";}",l.shapeSelectionClass=s,document.body.appendChild(s)}}function R(e,t){return t&&t.appendChild(e),e}function D(e,t,i){return R(e.renderer.drawCircle(t),i)}function V(e,t,i){return R(e.renderer.drawRectangle(t),i)}function G(e,t,i){return R(e.renderer.drawPath(t),i)}function H(e,t,i){return R(e.renderer.drawPolygon(t),i)}function W(e,t,i){return R(e.renderer.drawPolyline(t),i)}function q(e,t,i){return R(e.renderer.drawLine(t),i)}function X(e,t,i,n,o,a){var r;switch(t){case"Balloon":r=te(e,i,n,o,"Marker",a);break;case"Cross":i.d="M "+o.x+" "+(o.y-n.height/2)+" L "+o.x+" "+(o.y+n.height/2)+" M "+(o.x-n.width/2)+" "+o.y+" L "+(o.x+n.width/2)+" "+o.y;break;case"Diamond":i.d="M "+o.x+" "+(o.y-n.height/2)+" L "+(o.x+n.width/2)+" "+o.y+" L "+o.x+" "+(o.y+n.height/2)+" L "+(o.x-n.width/2)+" "+o.y+" Z";break;case"Star":i.d="M "+(o.x+n.width/3)+" "+(o.y-n.height/2)+" L "+(o.x-n.width/2)+" "+(o.y+n.height/6)+" L "+(o.x+n.width/2)+" "+(o.y+n.height/6)+" L "+(o.x-n.width/3)+" "+(o.y-n.height/2)+" L "+o.x+" "+(o.y+n.height/2)+" L "+(o.x+n.width/3)+" "+(o.y-n.height/2)+" Z";break;case"Triangle":i.d="M "+o.x+" "+(o.y-n.height/2)+" L "+(o.x+n.width/2)+" "+(o.y+n.height/2)+" L "+(o.x-n.width/2)+" "+(o.y+n.height/2)+" Z";break;case"HorizontalLine":i.d=" M "+(o.x-n.width/2)+" "+o.y+" L "+(o.x+n.width/2)+" "+o.y;break;case"VerticalLine":i.d="M "+o.x+" "+(o.y-n.height/2)+" L "+o.x+" "+(o.y+n.height/2);break;case"InvertedTriangle":i.d="M "+(o.x-n.width/2)+" "+(o.y-n.height/2)+" L "+(o.x+n.width/2)+" "+(o.y-n.height/2)+" L "+o.x+" "+(o.y+n.height/2)+" Z";break;case"Pentagon":for(var l=void 0,s=void 0,d=0;d<5;d++)l=n.width/2*Math.cos(Math.PI/180*(72*d)),s=n.height/2*Math.sin(Math.PI/180*(72*d)),i.d+=(0===d?"M ":"L ")+(o.x+l)+" "+(o.y+s);i.d+=" Z"}return"Cross"!==t&&"HorizontalLine"!==t&&"VerticalLine"!==t||(i.stroke="transparent"===i.stroke?i.fill:i.stroke),"Balloon"===t?r:e.renderer.drawPath(i)}function Y(e,t,i,n,o){return t.d="M "+n.x+" "+(n.y-i.height/2)+" L "+(n.x+i.width/2)+" "+n.y+" L "+n.x+" "+(n.y+i.height/2)+" L "+(n.x-i.width/2)+" "+n.y+" Z",R(e.renderer.drawPath(t),o)}function Q(e,t,i,n,o){return t.d="M "+n.x+" "+(n.y-i.height/2)+" L "+(n.x+i.width/2)+" "+(n.y+i.height/2)+" L "+(n.x-i.width/2)+" "+(n.y+i.height/2)+" Z",R(e.renderer.drawPath(t),o)}function J(e,t,i,n,o){return t.d="M "+n.x+" "+(n.y-i.height/2)+" L "+n.x+" "+(n.y+i.height/2)+" M "+(n.x-i.width/2)+" "+n.y+" L "+(n.x+i.width/2)+" "+n.y,R(e.renderer.drawPath(t),o)}function K(e,t,i,n,o){return t.d=" M "+(n.x-i.width/2)+" "+n.y+" L "+(n.x+i.width/2)+" "+n.y,R(e.renderer.drawPath(t),o)}function $(e,t,i,n,o){return t.d="M "+n.x+" "+(n.y-i.height/2)+" L "+n.x+" "+(n.y+i.height/2),R(e.renderer.drawPath(t),o)}function ee(e,t,i,n,o){return t.d="M "+(n.x+i.width/3)+" "+(n.y-i.height/2)+" L "+(n.x-i.width/2)+" "+(n.y+i.height/6)+" L "+(n.x+i.width/2)+" "+(n.y+i.height/6)+" L "+(n.x-i.width/3)+" "+(n.y-i.height/2)+" L "+n.x+" "+(n.y+i.height/2)+" L "+(n.x+i.width/3)+" "+(n.y-i.height/2)+" Z",R(e.renderer.drawPath(t),o)}function te(e,t,i,n,o,a){var r,l=i.width,s=i.height;n.x-=l/2,n.y-=t.id.indexOf("cluster")>-1?s/2:t.id.indexOf("Legend")>-1?s/1.25:s,t.d="M15,0C8.8,0,3.8,5,3.8,11.2C3.8,17.5,9.4,24.4,15,30c5.6-5.6,11.2-12.5,11.2-18.8C26.2,5,21.2,0,15,0z M15,16c-2.8,0-5-2.2-5-5s2.2-5,5-5s5,2.2,5,5S17.8,16,15,16z";var d=e.renderer.drawPath(t),p=i.width/30,h=i.height/30;if(d.setAttribute("transform","translate("+n.x+", "+n.y+") scale("+p+", "+h+")"),"Marker"===o){var u=e.renderer.createGroup({id:t.id+"_Group"});R(d,u),r=R(u,a)}else r=d;return r}function ie(e,t,i,n){for(var o=e.renderer.createPattern(t,"pattern"),a=0,r=i;a<r.length;a++){R(r[a],o)}return R(o,n)}function ne(e,t){for(var i,n=[],o=0,a=e;o<a.length;o++){var r=a[o];i={};for(var l=0,s=t;l<s.length;l++){var d=s[l];r[d]&&(i[d]=r[d])}n.push(i)}return n}function oe(e,t,n,o,a){if(!i.i(et.isNullOrUndefined)(t))for(var r=0;r<e.length;r++){var l=n.indexOf(".")>-1?w(e[r],n):e[r][n],s=ae(l,o,t),d=!i.i(et.isNullOrUndefined)(l)&&isNaN(t[s])&&"string"==typeof l?l.toLowerCase():l,p=!i.i(et.isNullOrUndefined)(t[s])&&isNaN(t[s])?t[s].toLowerCase():t[s];if(d===p)return r}return null}function ae(e,t,n){if(!i.i(et.isNullOrUndefined)(e)&&!i.i(et.isNullOrUndefined)(n)&&!i.i(et.isNullOrUndefined)(t))for(var o="[object Array]"===Object.prototype.toString.call(t)?t:[t],a=0;a<o.length;a++){var r=i.i(et.isNullOrUndefined)(e)||"string"!=typeof e?e:e.toLowerCase(),l=!i.i(et.isNullOrUndefined)(n[o[a]])&&isNaN(n[o[a]])?n[o[a]].toLowerCase():n[o[a]];if(r===l)return o[a]}return null}function re(e,t,i){for(var n=[],o=0;o<e.length;o++){var a=e[o];t<=a.y&&i>=a.y&&n.push(a)}return n}function le(e,t,i,n,o){var a=100/(o-n)*(i-n),r=(t-e)/100*a+e;return o===n&&(r=(t-e)/100+e),r}function se(e,t,i){if(!e.length)return null;for(var n,o,a,r,l=e.length,s=0,d=0,p=0,h=0;h<=l-1;h++)n=e[h].x,o="Mercator"===t||"Normal"===i?e[h].y:-e[h].y,h===l-1?(a=e[0].x,r="Mercator"===t||"Normal"===i?e[0].y:-e[0].y):(a=e[h+1].x,r="Mercator"===t||"Normal"===i?e[h+1].y:-e[h+1].y),s+=Math.abs(n*r-a*o),d+=Math.abs((n+a)*(n*r-a*o)),p+=Math.abs((o+r)*(n*r-a*o));s*=.5;var u=e.some(function(e){return e.x<5&&e.y<5})&&"Normal"===i?6:4;d=0!==s?1/(u*s)*d:0,p=0!==s?1/(u*s)*p:0;for(var c={x:0,y:0},m={x:0,y:0},g={x:0,y:0},y={x:0,y:0},f={x:0,y:0},b={x:0,y:0},v={x:0,y:0},S={x:0,y:0},_=0,h=0;h<=l-1;h++){var x=e[h];x.y="Mercator"===t||"Normal"===i?x.y:-x.y,x.y>p?x.x<d&&d-x.x<d-f.x?f={x:x.x,y:x.y}:x.x>d&&(0===b.x||x.x-d<b.x-d)&&(b={x:x.x,y:x.y}):x.x<d&&d-x.x<d-v.x?v={x:x.x,y:x.y}:x.x>d&&(0===S.x||x.x-d<S.x-d)&&(S={x:x.x,y:x.y}),_=b.y-S.y+(b.y-S.y)/4,x.x>d?x.y<p&&p-x.y<p-c.y?c={x:x.x,y:x.y}:x.y>p&&(0===m.y||x.y-p<m.y-p)&&(m={x:x.x,y:x.y}):x.y<p&&p-x.y<p-g.y?g={x:x.x,y:x.y}:x.y>p&&(0===y.y||x.y-p<y.y-p)&&(y={x:x.x,y:x.y})}return{x:d,y:p,rightMin:c,rightMax:m,leftMin:g,leftMax:y,points:e,topMax:S,topMin:v,bottomMax:b,bottomMin:f,height:_}}function de(e){var t=!1;return"[object Array]"===Object.prototype.toString.call(e)&&Array.prototype.forEach.call(e,function(e){i.i(et.isNullOrUndefined)(e.geometry)||"Path"!==e.geometry.type||(t=!0)}),t}function pe(e,t,n,o,a,r){var l=t;if(i.i(et.isNullOrUndefined)(o)&&(o=a?_(t,n).width:S(t,n).width),o>e)for(var s=t.length,d=s-1;d>=0;--d)if(l=t.substring(0,d)+"...",(o=a?_(l,n).width:S(l,n).width)<=e||l.length<4)return l.length<4&&(l=" "),i.i(et.isNullOrUndefined)(r)||r.push(o),l;return i.i(et.isNullOrUndefined)(r)||r.push(o),l}function he(e,t,i,n){var o;switch(t){case"Near":o=e.x;break;case"Center":o="title"===n?e.width/2-i.width/2:e.x+e.width/2-i.width/2;break;case"Far":o="title"===n?e.width-e.y-i.width:e.x+e.width-i.width}var a="title"===n?e.y+i.height/2:e.y+e.height/2+i.height/2;return new rt(o,a)}function ue(e){var t=document.getElementById(e);return t?i.i(et.remove)(t):null}function ce(e,t){var i=d(e.minLatOfGivenLocation,e.minLongOfGivenLocation,e.mapLayerPanel.calculateFactor(t),t,e),n=d(e.maxLatOfGivenLocation,e.maxLongOfGivenLocation,e.mapLayerPanel.calculateFactor(t),t,e),o=(i.x+n.x)/2,a=(i.y+n.y)/2;return new rt(o,a)}function me(e,t,n){var o,a=e.zoomSettings.zoomFactor,r=e.centerPosition,l=r.latitude,s=r.longitude,p=!i.i(et.isNullOrUndefined)(e.centerLatOfGivenLocation)&&!i.i(et.isNullOrUndefined)(e.centerLongOfGivenLocation)&&e.zoomNotApplied;i.i(et.isNullOrUndefined)(e.mapScaleValue)&&(e.mapScaleValue=a),e.zoomSettings.shouldZoomInitially&&e.zoomSettings.enable&&(e.mapScaleValue=o=a=(e.zoomSettings.shouldZoomInitially||e.enablePersistence)&&1===e.scale?e.scale:i.i(et.isNullOrUndefined)(e.markerZoomFactor)?1:e.markerZoomedState?e.markerZoomFactor:parseInt(e.scale.toString()),e.markerZoomedState&&e.mapScaleValue!==e.markerZoomFactor&&!e.enablePersistence&&(e.mapScaleValue=a=e.markerZoomFactor),!e.markerZoomedState||i.i(et.isNullOrUndefined)(e.markerCenterLatitude)||i.i(et.isNullOrUndefined)(e.markerCenterLongitude)||(l=e.markerCenterLatitude,s=e.markerCenterLongitude)),p&&(e.mapScaleValue=o=a=e.scaleOfGivenLocation);var h=i.i(et.isNullOrUndefined)(e.baseMapRectBounds)?null:e.baseMapRectBounds.min,u=i.i(et.isNullOrUndefined)(e.baseMapRectBounds)?null:e.baseMapRectBounds.max,c=n?1:e.mapScaleValue;i.i(et.isNullOrUndefined)(e.currentShapeDataLength)&&(e.currentShapeDataLength=i.i(et.isNullOrUndefined)(t.shapeData.features)?t.shapeData.geometries.length:t.shapeData.features.length);var m,g,y=e.totalRect&&e.legendSettings.visible?e.totalRect:e.mapAreaRect,f=e.availableSize;if(!i.i(et.isNullOrUndefined)(h)&&!i.i(et.isNullOrUndefined)(u)){var b=Math.abs(u.x-h.x),v=Math.abs(h.y-u.y),S=n?1:1===e.markerZoomFactor?e.mapScaleValue:a;if(r=e.zoomSettings.shouldZoomInitially&&e.markerZoomedState&&!e.zoomPersistence?e.markerZoomCenterPoint:e.centerPosition,!i.i(et.isNullOrUndefined)(s)&&0!==s&&!i.i(et.isNullOrUndefined)(l)&&0!==l||p){var _=((b+Math.abs(e.mapAreaRect.width-b))/2+e.mapAreaRect.x)/S,x=((v+Math.abs(e.mapAreaRect.height-v))/2+e.mapAreaRect.y)/S,O=p?ce(e,t):d(l,s,e.mapLayerPanel.calculateFactor(t),t,e);i.i(et.isNullOrUndefined)(e.previousProjection)||e.previousProjection!==e.projectionType||e.isMarkerZoomCompleted?(m=-O.x+_,g=-O.y+x,o=c):(1!==Math.floor(e.scale)&&e.zoomSettings.shouldZoomInitially||e.zoomNotApplied?(m=-O.x+_,g=-O.y+x):e.zoomSettings.shouldZoomInitially||e.zoomNotApplied?(m=-O.x+_,g=-O.y+x,o=c):(m=e.zoomTranslatePoint.x,g=e.zoomTranslatePoint.y),o=e.mapScaleValue)}else if(i.i(et.isNullOrUndefined)(e.previousProjection)||e.previousProjection!==e.projectionType){0!==v&&0!==b&&v!==b||(b=y.width/2,v=y.height),o=parseFloat(Math.min(y.width/b,y.height/v).toFixed(2)),o=o>1.05?1:o,b*=o,v*=o;var M=0!==h.x&&"layers"===e.translateType?f.width-y.width:0;m=y.x+(-h.x+(y.width/2-b/2))-M,g=y.y+(-h.y+(y.height/2-v/2)),e.previousTranslate=new rt(m,g)}else if(e.zoomSettings.shouldZoomInitially||1!==e.markerZoomFactor||1!==e.mapScaleValue)if(o=e.mapScaleValue<1?e.mapScaleValue+1:e.mapScaleValue,e.mapScaleValue=e.zoomSettings.enable&&1!==e.mapScaleValue?e.mapScaleValue:1,e.currentShapeDataLength!==(i.i(et.isNullOrUndefined)(t.shapeData.features)?t.shapeData.geometries.length:t.shapeData.features.length)&&"SubLayer"!==t.type){var C=parseFloat(Math.min(y.height/v,y.width/b).toFixed(2));v*=C,b*=C,g=y.y+(-h.y+(y.height/2-v/2)),o=C,m=y.x+(-h.x+(y.width/2-b/2))}else if(e.availableSize.height!==e.heightBeforeRefresh||e.widthBeforeRefresh!==e.availableSize.width){var L=parseFloat(Math.min(y.width/b,y.height/v).toFixed(2)),P=b;P*=L;var w=v;w*=L;var T=y.x+(-h.x+(y.width/2-P/2)),I=y.y+(-h.y+(y.height/2-w/2)),k=(e.translatePoint.x-e.previousTranslate.x)/e.widthBeforeRefresh,N=(e.translatePoint.y-e.previousTranslate.y)/e.heightBeforeRefresh,E=k*e.availableSize.width,F=N*e.availableSize.height;m=T+E,g=I+F,e.previousTranslate=new rt(T,I),e.zoomTranslatePoint.x=m,e.zoomTranslatePoint.y=g}else i.i(et.isNullOrUndefined)(e.previousProjection)||!(1===e.mapScaleValue||e.mapScaleValue<=1.05)||e.zoomModule.isDragZoom?(m=e.zoomTranslatePoint.x,g=e.zoomTranslatePoint.y,o=e.scale):(o=parseFloat(Math.min(y.width/b,y.height/v).toFixed(2)),o=o>1.05?1:o,b*=o,m=y.x+(-h.x+(y.width/2-b/2)),v*=o,g=y.y+(-h.y+(y.height/2-v/2)));else o=parseFloat(Math.min(y.width/b,y.height/v).toFixed(2)),v*=o,b*=o,g=y.y+(-h.y+(y.height/2-v/2)),m=y.x+(-h.x+(y.width/2-b/2));i.i(et.isNullOrUndefined)(e.translatePoint)||(m=e.enablePersistence&&0!==e.translatePoint.x&&!e.zoomNotApplied?e.translatePoint.x:m,g=e.enablePersistence&&0!==e.translatePoint.y&&!e.zoomNotApplied?e.translatePoint.y:g)}return o=e.enablePersistence?e.mapScaleValue>=1?e.mapScaleValue:1:o,e.widthBeforeRefresh=e.availableSize.width,e.heightBeforeRefresh=e.availableSize.height,{scale:o,location:new rt(m,g)}}function ge(e,t,n){var o,a=e.zoomSettings.zoomFactor,r=e.centerPosition,l=r.latitude,s=r.longitude,p=!i.i(et.isNullOrUndefined)(e.centerLongOfGivenLocation)&&!i.i(et.isNullOrUndefined)(e.centerLatOfGivenLocation)&&e.zoomNotApplied;i.i(et.isNullOrUndefined)(e.previousCenterLatitude)&&i.i(et.isNullOrUndefined)(e.previousCenterLongitude)?(e.previousCenterLatitude=e.centerPosition.latitude,e.previousCenterLongitude=e.centerPosition.longitude):e.previousCenterLatitude!==e.centerPosition.latitude&&e.previousCenterLongitude!==e.centerPosition.longitude?(e.centerPositionChanged=!0,e.previousCenterLatitude=e.centerPosition.latitude,e.previousCenterLongitude=e.centerPosition.longitude):e.centerPositionChanged=!1,(i.i(et.isNullOrUndefined)(e.mapScaleValue)||a>e.mapScaleValue)&&(e.isReset&&1===e.mapScaleValue?e.mapScaleValue=e.mapScaleValue:!i.i(et.isNullOrUndefined)(e.mapScaleValue)&&e.mapScaleValue<=e.scale?e.mapScaleValue=e.scale:e.mapScaleValue=a),e.mapScaleValue=1!==e.zoomSettings.zoomFactor&&e.zoomSettings.zoomFactor===e.mapScaleValue?e.zoomSettings.zoomFactor:e.zoomSettings.zoomFactor===e.mapScaleValue||e.centerPositionChanged?e.zoomSettings.zoomFactor:e.mapScaleValue,e.zoomSettings.shouldZoomInitially&&!e.isZoomByPosition&&(e.mapScaleValue=a=o=(e.enablePersistence||e.zoomSettings.shouldZoomInitially)&&1===e.scale?e.scale:i.i(et.isNullOrUndefined)(e.markerZoomFactor)?e.mapScaleValue:e.markerZoomFactor,a=e.mapScaleValue,i.i(et.isNullOrUndefined)(e.markerCenterLatitude)||i.i(et.isNullOrUndefined)(e.markerCenterLongitude)||(l=e.markerCenterLatitude,s=e.markerCenterLongitude)),p&&(e.mapScaleValue=o=a=e.scaleOfGivenLocation);var h,u,c=n?1:e.mapScaleValue,m=e.mapAreaRect,g=e.baseMapRectBounds.min,y=e.baseMapRectBounds.max,f=n?1:e.mapScaleValue,b=Math.abs(y.x-g.x),v=Math.abs(g.y-y.y);if(!i.i(et.isNullOrUndefined)(s)&&0!==s&&!i.i(et.isNullOrUndefined)(l)&&0!==l||p){var S=(v+Math.abs(e.mapAreaRect.height-v))/2/f,_=(b+Math.abs(e.mapAreaRect.width-b))/2/f,x=p?ce(e,t):d(l,s,e.mapLayerPanel.calculateFactor(t),t,e);i.i(et.isNullOrUndefined)(e.zoomTranslatePoint)&&i.i(et.isNullOrUndefined)(e.previousProjection)||e.zoomNotApplied?(h=-x.x+_+e.mapAreaRect.x/c,u=-x.y+S+e.mapAreaRect.y/c):e.previousProjection!==e.projectionType?(h=-x.x+_,u=-x.y+S):(e.isZoomByPosition&&(e.zoomTranslatePoint.x=-x.x+_,e.zoomTranslatePoint.y=-x.y+S),h=e.zoomTranslatePoint.x,u=e.zoomTranslatePoint.y,a=c),i.i(et.isNullOrUndefined)(e.translatePoint)||(u=e.enablePersistence&&0!==e.translatePoint.y&&!e.zoomNotApplied?e.translatePoint.y:u,h=e.enablePersistence&&0!==e.translatePoint.x&&!e.zoomNotApplied?e.translatePoint.x:h),o=0!==a?a:1}else{var O=0===e.zoomSettings.zoomFactor?1:e.zoomSettings.zoomFactor,M=e.zoomSettings.maxZoom;O=O>M?M:O,o=O;var C=0===e.mapScaleValue?1:e.mapScaleValue>M?M:e.mapScaleValue,_=m.x+(-g.x+(m.width/2-b/2)),S=m.y+(-g.y+(m.height/2-v/2));if(!i.i(et.isNullOrUndefined)(e.zoomTranslatePoint)||!i.i(et.isNullOrUndefined)(e.previousProjection))if(e.previousProjection!==e.projectionType){var L=[],P={x:_,y:S};L.push(P);for(var w=1;w<M;w++){var T=L[w-1].x-(m.width/w-m.width/(w+1))/2,I=L[w-1].y-(m.height/w-m.height/(w+1))/2;P={x:T,y:I},L.push(P)}_=L[O-1].x,S=L[O-1].y}else _=e.zoomTranslatePoint.x,S=e.zoomTranslatePoint.y,O!==C&&(o=C);i.i(et.isNullOrUndefined)(e.translatePoint)||(h=e.enablePersistence&&0!==e.translatePoint.x&&!e.zoomNotApplied?e.translatePoint.x:_,u=e.enablePersistence&&0!==e.translatePoint.y&&!e.zoomNotApplied?e.translatePoint.y:S)}return o=e.enablePersistence?0===e.mapScaleValue?1:e.mapScaleValue:o,e.widthBeforeRefresh=e.availableSize.width,e.heightBeforeRefresh=e.availableSize.height,{scale:n?1:o,location:new rt(h,u)}}function ye(e){e.tileZoomScale=e.tileZoomLevel=Math.floor(e.availableSize.height/512)+1;var t="GoogleStaticMap"!==e.layers[e.baseLayerIndex].layerType?20:0,i=256*Math.pow(2,e.tileZoomLevel);e.tileTranslatePoint.x=e.availableSize.width/2-i/2,e.tileTranslatePoint.y=e.availableSize.height/2-i/2+t,e.previousTileWidth=e.availableSize.width,e.previousTileHeight=e.availableSize.height}function fe(e){return document.getElementById(e)}function be(e){var t=document.getElementById(e);return i.i(et.isNullOrUndefined)(t)?null:t.getClientRects()[0]}function ve(e,t){return e.formatFunction=e.intl.getNumberFormat({format:e.format,useGrouping:e.useGroupingSeparator}),e.formatFunction(t)}function Se(e,t){var n=null;try{"function"!=typeof e&&document.querySelectorAll(e).length?n=i.i(et.compile)(document.querySelector(e).innerHTML.trim()):t.isVue||t.isVue3?n=i.i(et.compile)(e):"function"==typeof e&&(n=i.i(et.compile)(e))}catch(t){n=i.i(et.compile)(e)}return n}function _e(e){return document.getElementById(e)}function xe(e,t){var i,n=parseInt(e.split("_LayerIndex_")[1].split("_")[0],10),o=parseInt(e.split("_shapeIndex_")[1].split("_")[0],10),a=t.layersCollection[n],r=a.layerData[o].property;return a.dataSource&&(i=a.dataSource[oe(a.dataSource,r,a.shapeDataPath,a.shapePropertyPath,a)]),{shapeData:r,data:i}}function Oe(e,t,n,o){var a=xe(e,n),r={color:t.border.color,opacity:t.border.opacity,width:t.border.width},l=t.enableMultiSelect?{cancel:!1,name:o,fill:t.fill,opacity:t.opacity,border:r,shapeData:a.shapeData,data:a.data,target:e,maps:n,shapeDataCollection:n.shapeSelectionItem}:{cancel:!1,name:o,fill:t.fill,opacity:t.opacity,border:r,shapeData:a.shapeData,data:a.data,target:e,maps:n};return n.trigger(o,l,function(){l.border.opacity=i.i(et.isNullOrUndefined)(l.border.opacity)?l.opacity:l.border.opacity}),l}function Me(e){return document.getElementsByClassName(e)}function Ce(e,t){var i=null;return document.getElementById(t)&&(i=document.getElementById(t).querySelector("#"+e)),i}function Le(e,t,i,n){for(var o,a=n.layers[e].shapeData.features,r=0;r<a.length;r++)if(a[r].properties.name===t){o=n.element.id+"_LayerIndex_"+e+"_shapeIndex_"+r+"_dataIndex_undefined";break}return _e(o)}function Pe(e,t,n){var o=i.i(et.createElement)("style",{id:e});return o.innerText="."+t+"{fill:"+n.fill+";fill-opacity:"+n.opacity.toString()+";stroke-opacity:"+n.border.opacity.toString()+";stroke-width:"+n.border.width.toString()+";stroke:"+n.border.color+";}",o}function we(e,t,n){var o=_e(e);i.i(et.isNullOrUndefined)(o)||(o.innerText="."+t+"{fill:"+n.fill+";fill-opacity:"+n.opacity.toString()+";stroke-width:"+n.border.width.toString()+";stroke-opacity:"+n.border.opacity.toString()+";stroke:"+n.border.color+"}")}function Te(e,t,n,o,a){var r={color:e.border.color,width:e.border.width/t.scale,opacity:e.border.opacity},l={opacity:e.opacity,fill:e.fill,border:r,name:it.itemSelection,target:n.id,cancel:!1,shapeData:o,data:a,maps:t};t.trigger("itemSelection",l,function(n){l.border.opacity=i.i(et.isNullOrUndefined)(e.border.opacity)?e.opacity:e.border.opacity,t.shapeSelectionItem.push(l.shapeData),_e("ShapeselectionMap")?we("ShapeselectionMap","ShapeselectionMapStyle",l):document.body.appendChild(Pe("ShapeselectionMap","ShapeselectionMapStyle",l))})}function Ie(e){e.removeAttribute("class")}function ke(e,t,n,o,a,r,l){void 0===l&&(l=0);var s=o.x,d=o.y,p=0,h=e.getAttribute("transform")||"";new et.Animation({}).animate(e,{duration:0===n&&"Enable"===et.animationMode?1e3:n,delay:t,progress:function(t){if(t.timeStamp>t.delay&&!a.zoomModule.isPanningInProgress){if(a.isTileMap&&0===p){var n=document.querySelector(".GroupElement");i.i(et.isNullOrUndefined)(n)||(n.style.display="block")}p=(t.timeStamp-t.delay)/t.duration,e.setAttribute("transform","translate( "+(s-l*p)+" "+(d-l*p)+" ) scale("+p+")")}},end:function(t){if(a.zoomModule.isPanningInProgress||e.setAttribute("transform",h),a.zoomModule.isPanningInProgress=!1,r){var i={cancel:!1,name:nt.C,element:r,maps:a};a.trigger(nt.C,i)}}})}function Ne(e){ue(e)}function Ee(e,t,n,o,a,l,s,d,p){var h=r(n,o,d);i.i(et.isNullOrUndefined)(h)||(n=h.x,o=h.y);for(var u=document.getElementById(s),c=S(e,{fontFamily:"Segoe UI",size:"8px",fontStyle:"Normal",fontWeight:"Regular"}).width,m=e.split(" "),g=m[0].length,y=1;y<m.length;y++)g<m[y].length&&(g=m[y].length);u||(u=i.i(et.createElement)("div",{id:s}),u.style.cssText='background-color: rgb(255, 255, 255) !important; color:black !important; position:absolute;border:1px solid rgb(0, 0, 0); padding-left:5px;font-size:12px; font-family: "Segoe UI"; text-align:center'),n<a-c?n=n:n>a-c&&n<a-8*g?c=a-n:n>=a-8*g&&(n>c?n-=c:(c=n,n=0));var f=t.split("px");Fe(u,e,n,o,f,c,a,d),u.clientHeight+2*parseInt(f[0],10)>l&&(c=n,n=0),Fe(u,e,n,o,f,c,a,d),p&&setTimeout(Ne,5e3,s)}function Fe(e,t,i,n,o,a,r,l){e.innerText=t,e.style.top=-1!==e.id.indexOf("_Legend")?(parseInt(o[0],10)+n).toString()+"px":(2*parseInt(o[0],10)).toString()+"px",e.style.left=i.toString()+"px",e.style.width=a.toString()+"px",e.style.maxWidth=r.toString()+"px",e.style.wordWrap="break-word",l.appendChild(e)}function ze(e,t,n,o,a){var r=_e(e),l=Ae(a.borderColor),s=Ae(a.fontColor),d="top:"+n.toString()+"px;left:"+o.toString()+"px;color:"+(s?"rgba("+s.r+","+s.g+","+s.b+","+a.fontOpacity+")":a.fontColor)+";background:"+a.fill+";z-index: 2;position:absolute;border:"+a.borderWidth+"px solid "+(l?"rgba("+l.r+","+l.g+","+l.b+","+a.borderOpacity+")":a.borderColor)+";font-family:"+a.fontFamily+";font-style:"+a.fontStyle+";font-weight:"+a.fontWeight+";font-size:"+a.fontSize+";border-radius:"+a.borderWidth+"px;";!r&&a.visible?(r=i.i(et.createElement)("div",{id:e}),r.innerHTML=et.SanitizeHtmlHelper.sanitize("&nbsp;"+t+"&nbsp;"),r.style.cssText=d,document.body.appendChild(r)):a.visible&&(r.innerHTML=et.SanitizeHtmlHelper.sanitize("&nbsp;"+t+"&nbsp;"),r.style.cssText=d)}function Ae(e){if(-1!==e.indexOf("#")&&-1===e.toLowerCase().indexOf("rgb")){var t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16)}:null}if(-1!==e.toLowerCase().indexOf("rgb")){var t=e.match(/\d+/g).map(function(e){return parseInt(e,10)});return t?{r:t[0],g:t[1],b:t[2]}:null}var i=document.createElement("div");i.style.color=e;var t=window.getComputedStyle(document.body.appendChild(i)).color.match(/\d+/g).map(function(e){return parseInt(e,10)});return document.body.removeChild(i),t?{r:t[0],g:t[1],b:t[2]}:null}function Be(e,t,i,n,o){var a=new tt.SvgRenderer(""),r=Ue(e,i,t,o,n);return a["draw"+r.functionName](r.renderOption)}function Ue(e,t,n,o,a){var r,l="Path",s=t.width,d=t.height,p=e.x,h=e.y,u=e.x+-s/2,c=e.y+-d/2;switch(o.stroke="HorizontalLine"===n||"VerticalLine"===n||"Cross"===n?o.fill:o.stroke,o["stroke-width"]=0!==o["stroke-width"]||"HorizontalLine"!==n&&"VerticalLine"!==n&&"Cross"!==n?o["stroke-width"]:1,n){case"Circle":case"Bubble":l="Ellipse",i.i(et.merge)(o,{rx:s/2,ry:d/2,cx:p,cy:h});break;case"VerticalLine":r="M "+p+" "+(h+d/2)+" L "+p+" "+(h+-d/2),i.i(et.merge)(o,{d:r});break;case"HorizontalLine":r="M "+p+" "+h+" L "+(p+s/2)+" "+h,i.i(et.merge)(o,{d:r});break;case"Diamond":r="M "+u+" "+h+" L "+p+" "+(h+-d/2)+" L "+(p+s/2)+" "+h+" L "+p+" "+(h+d/2)+" L "+u+" "+h+" z",i.i(et.merge)(o,{d:r});break;case"Rectangle":r="M "+u+" "+(h+-d/2)+" L "+(p+s/2)+" "+(h+-d/2)+" L "+(p+s/2)+" "+(h+d/2)+" L "+u+" "+(h+d/2)+" L "+u+" "+(h+-d/2)+" z",i.i(et.merge)(o,{d:r});break;case"Triangle":r="M "+u+" "+(h+d/2)+" L "+p+" "+(h+-d/2)+" L "+(p+s/2)+" "+(h+d/2)+" L "+u+" "+(h+d/2)+" z",i.i(et.merge)(o,{d:r});break;case"InvertedTriangle":r="M "+(p+s/2)+" "+(h-d/2)+" L "+p+" "+(h+d/2)+" L "+(p-s/2)+" "+(h-d/2)+" L "+(p+s/2)+" "+(h-d/2)+" z",i.i(et.merge)(o,{d:r});break;case"Pentagon":for(var m=void 0,g=void 0,y=0;y<=5;y++)m=s/2*Math.cos(Math.PI/180*(72*y)),g=s/2*Math.sin(Math.PI/180*(72*y)),r=0===y?"M "+(p+m)+" "+(h+g)+" ":r.concat("L "+(p+m)+" "+(h+g)+" ");r=r.concat("Z"),i.i(et.merge)(o,{d:r});break;case"Star":r="M "+(e.x+t.width/3)+" "+(e.y-t.height/2)+" L "+(e.x-t.width/2)+" "+(e.y+t.height/6)+" L "+(e.x+t.width/2)+" "+(e.y+t.height/6)+" L "+(e.x-t.width/3)+" "+(e.y-t.height/2)+" L "+e.x+" "+(e.y+t.height/2)+" L "+(e.x+t.width/3)+" "+(e.y-t.height/2)+" Z",i.i(et.merge)(o,{d:r});break;case"Cross":r="M "+u+" "+h+" L "+(p+s/2)+" "+h+" M "+p+" "+(h+d/2)+" L "+p+" "+(h+-d/2),i.i(et.merge)(o,{d:r});break;case"Image":l="Image",i.i(et.merge)(o,{href:a,height:d,width:s,x:u,y:c})}return{renderOption:o,functionName:l}}function je(e,t){t.appendChild(e);var i=e.offsetWidth,n=e.offsetHeight;return t.removeChild(e),new at(i,n)}function Ze(e,t,n,o){for(var a,r=0;r<e.childElementCount;r++)if(a=e.childNodes[r],a.id.indexOf("_NavigationGroup")>-1)Re(a,t,n,o);else if(a.id.indexOf("_Polygons_Group")>-1)for(var l=0;l<a.childElementCount;l++){var s=o.layersCollection[t].polygonSettings.polygons[parseInt(a.children[l].id.split("_PolygonIndex_")[1])].borderWidth;a.children[l].setAttribute("stroke-width",(s/n).toString())}else{var d=void 0,p=0,h=o.layersCollection[t].shapeSettings.borderWidthValuePath,u=o.layersCollection[t].shapeSettings.border.width,c=o.layersCollection[t].shapeSettings.circleRadius;o.layersCollection[t].shapeSettings.borderWidthValuePath?(p=oe(o.layersCollection[t].dataSource,o.layersCollection[t].layerData[r].property,o.layersCollection[t].shapeDataPath,o.layersCollection[t].shapePropertyPath,o.layersCollection[t]),d=null!==p&&o.layersCollection[t].dataSource[p][h]?o.layersCollection[t].dataSource[p][h]:i.i(et.isNullOrUndefined)(u)?0:u):d=i.i(et.isNullOrUndefined)(u)?0:u,a.setAttribute("stroke-width",(d/n).toString()),(e.id.indexOf("_Point")>-1||e.id.indexOf("_MultiPoint")>-1)&&a.setAttribute("r",(c/n).toString())}}function Re(e,t,i,n){for(var o,a=0;a<e.childElementCount;a++)if(o=e.childNodes[a],"path"===o.tagName){var r=n.layersCollection[t].navigationLineSettings[parseFloat(o.id.split("_NavigationIndex_")[1].split("_")[0])].width;o.setAttribute("stroke-width",(r/i).toString())}}function De(e){for(var t=[],i=e.touches,n=0;n<i.length;n++)t.push({pageX:i[n].pageX,pageY:i[n].pageY});return t}function Ve(e,t){var i=Ge(e[0],e[1]);return Ge(t[0],t[1])/i}function Ge(e,t){var i=e.pageX-t.pageX,n=e.pageY-t.pageY;return Math.sqrt(i*i+n*n)}function He(e,t){var i=t.element.getBoundingClientRect(),n=i.top+document.defaultView.pageXOffset,o=i.left+document.defaultView.pageYOffset;return Array.prototype.slice.call(e).map(function(e){return{x:e.pageX-o,y:e.pageY-n}})}function We(e){return{x:e.map(function(e){return e.x}).reduce(qe)/e.length,y:e.map(function(e){return e.y}).reduce(qe)/e.length}}function qe(e,t){return e+t}function Xe(e,t,i,n,o,a,r){var l=0,s=r.previousPoint,d=r.previousScale,p=o-d,h=new vt(0,0),u=1;if(o===d)return void e.setAttribute("transform","scale( "+o+" ) translate( "+n.x+" "+n.y+" )");var c=function(e,t){return e.x===t.x?null:(t.y-e.y)/(t.x-e.x)}(s,n),m=function(e,t){return null===t?e.x:e.y-t*e.x}(s,c),g=n.x-s.x,y=n.y-s.y;Ye(e,t,i,function(e){e.timeStamp>e.delay&&(l=(e.timeStamp-e.delay)/e.duration,u=d+l*p,h.x=s.x+l*g/(u/o),h.y=null==c?s.y+l*y:c*h.x+m,e.element.setAttribute("transform","scale( "+u+" ) translate( "+h.x+" "+h.y+" )"),r.translatePoint=h,r.scale=u,r.zoomModule.processTemplate(n.x,n.y,u,r))},function(){r.translatePoint=n,r.scale=o,e.setAttribute("transform","scale( "+o+" ) translate( "+n.x+" "+n.y+" )"),r.zoomModule.processTemplate(n.x,n.y,o,r)})}function Ye(e,t,i,n,o){var a,r=this,l=null;i="Disable"===et.animationMode?0:i;var s=function(t){l||(l=t);var d=t-l;if(d<i)n.call(r,{element:e,delay:0,timeStamp:d,duration:i}),window.requestAnimationFrame(s);else if(window.cancelAnimationFrame(a),o.call(r,{element:e}),e.id.indexOf("Marker")>-1){var p=fe(e.id.split("_Layer")[0]+"_Markers_Group");p.style.cssText="visibility:visible"}};a=window.requestAnimationFrame(s)}function Qe(e,t,i,n){var o=0,a=e.getAttribute("transform").split(" ");2===a.length&&(a[2]=a[1].split(")")[0],a[1]=a[0].split("(")[1]);var r=new vt(parseInt(a[1],10),parseInt(a[2],10)),l=n.x-r.x,s=n.y-r.y,d=new vt(0,0);Ye(e,t,i,function(e){e.timeStamp>e.delay&&(o=(e.timeStamp-e.delay)/e.duration,d.x=r.x+o*l,d.y=r.y+o*s,e.element.setAttribute("transform","translate( "+d.x+" "+d.y+" )"))},function(){e.setAttribute("transform","translate( "+n.x+" "+n.y+" )")})}function Je(e,t){var n=i.i(et.isNullOrUndefined)(t.shouldZoomPreviousFactor)?null:t.shouldZoomPreviousFactor,o=i.i(et.isNullOrUndefined)(t.shouldZoomCurrentFactor)?null:t.shouldZoomCurrentFactor;i.i(et.isNullOrUndefined)(o)?!i.i(et.isNullOrUndefined)(n)&&i.i(et.isNullOrUndefined)(o)&&t.shouldZoomPreviousFactor!==e?t.shouldZoomCurrentFactor=e:t.shouldZoomPreviousFactor=e:(t.shouldZoomCurrentFactor=null,t.shouldZoomPreviousFactor=null)}function Ke(e,t,i,n,o,a,r,l){var s,d,p=r.zoomSettings.maxZoom,h=Math.sin(t*Math.PI/180),u=Math.log((1+h)/(1-h))/2,c=Math.max(Math.min(u,Math.PI),-Math.PI)/2,m=Math.sin(e*Math.PI/180),g=Math.log((1+m)/(1-m))/2,y=Math.max(Math.min(g,Math.PI),-Math.PI)/2;if(r.zoomNotApplied&&!r.isTileMap){var f=Math.abs((r.baseMapBounds.latitude.max-r.baseMapBounds.latitude.min)/(t-e)),b=Math.abs((r.baseMapBounds.longitude.max-r.baseMapBounds.longitude.min)/(n-i));d=l?(f+b)/2:Math.min(f,b)}var v=(c-y)/Math.PI,S=n-i,_=(S<0?S+360:S)/360,x=Math.log(a/256/v)/Math.LN2,O=Math.log(o/256/_)/Math.LN2,M=r.zoomNotApplied&&!r.isTileMap?d:l&&!r.isTileMap?(x+O)/2:Math.min(x,O);return s=Math.min(M,p),s=r.isTileMap||!r.zoomNotApplied?Math.floor(s):s,r.isTileMap||Je(s,r),s}function $e(e){var t,n=i.i(et.isNullOrUndefined)(e.result)?e.actual:e.result;return i.i(et.isNullOrUndefined)(n.length)?i.i(et.isNullOrUndefined)(n.Items)||(t=n.Items):t=n,t}i.d(t,"a",function(){return at}),t.b=n,t.c=o,t.d=a,t.e=r,t.f=l,t.g=s,t.h=d,t.i=p,t.j=h,t.k=u,t.l=c,t.m=m,t.n=g,t.o=y,t.p=f,t.q=b,t.r=v,i.d(t,"s",function(){return rt}),i.d(t,"t",function(){return lt}),i.d(t,"u",function(){return st}),i.d(t,"v",function(){return dt}),t.w=S,t.x=_,i.d(t,"y",function(){return pt}),i.d(t,"z",function(){return ht}),i.d(t,"A",function(){return ut}),i.d(t,"B",function(){return ct}),i.d(t,"C",function(){return mt}),i.d(t,"D",function(){return gt}),i.d(t,"E",function(){return yt}),i.d(t,"F",function(){return ft}),i.d(t,"G",function(){return bt}),i.d(t,"H",function(){return vt}),i.d(t,"I",function(){return St}),i.d(t,"J",function(){return _t}),t.K=x,t.L=O,t.M=M,t.N=C,t.O=L,t.P=P,t.Q=w,t.R=T,t.S=I,t.T=k,t.U=N,t.V=E,t.W=F,t.X=z,t.Y=A,t.Z=B,t._0=U,t._1=j,t._2=Z,t._3=R,t._4=D,t._5=V,t._6=G,t._7=H,t._8=W,t._9=q,t._10=X,t._11=Y,t._12=Q,t._13=J,t._14=K,t._15=$,t._16=ee,t._17=te,t._18=ie,t._19=ne,t._20=oe,t._21=ae,t._22=re,t._23=le,t._24=se,t._25=de,t._26=pe,t._27=he,t._28=ue,t._29=ce,t._30=me,t._31=ge,t._32=ye,t._33=fe,t._34=be,t._35=ve,t._36=Se,t._37=_e,t._38=xe,t._39=Oe,t._40=Me,t._41=Ce,t._42=Le,t._43=Pe,t._44=we,t._45=Te,t._46=Ie,t._47=ke,t._48=Ne,t._49=Ee,t._50=Fe,t._51=ze,t._52=Ae,t._53=Be,t._54=Ue,t._55=je,t._56=Ze,t._57=Re,t._58=De,t._59=Ve,t._60=Ge,t._61=He,t._62=We,t._63=qe,t._64=Xe,t._65=Ye,i.d(t,"_66",function(){return xt}),t._67=Qe,t._68=Je,t._69=Ke,t._70=$e;var et=i(1),tt=(i.n(et),i(6)),it=(i.n(tt),i(7)),nt=i(2),ot=this&&this.__extends||function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),at=function(){function e(e,t){this.width=e,this.height=t}return e}(),rt=function(){function e(e,t){this.x=e,this.y=t}return e}(),lt=function(){function e(e,t){this.latitude=e,this.longitude=t}return e}(),st=function(){function e(e,t){this.min=e,this.max=t}return e}(),dt=function(){function e(e,t){this.latitude=new st(e.min,e.max),this.longitude=new st(t.min,t.max)}return e}(),pt=function(){function e(e,t,i,n,o,a,r){void 0===a&&(a=""),this.transform="",this.baseLine="auto",this.id=e,this.text=o,this.transform=a,this.anchor=n,this.x=t,this.y=i,this.baseLine=r}return e}(),ht=function(){function e(e,t,i,n,o,a,r,l){this.id=e,this["fill-opacity"]=o,this["stroke-opacity"]=a,this.fill=t,this.stroke=n,this["stroke-width"]=i,this["stroke-dasharray"]=r,this.d=l}return e}(),ut=function(){function e(e,t,i){this.r=e,this.g=t,this.b=i}return e}(),ct=function(e){function t(t,i,n,o,a,r,l,s,d){var p=e.call(this,t,i,n.width,n.color,o,n.opacity)||this;return p.y=a.y,p.x=a.x,p.height=a.height,p.width=a.width,p.rx=r||0,p.ry=l||0,p.transform=s||"",p["stroke-dasharray"]=d,p["fill-opacity"]=o,p["stroke-opacity"]=n.opacity,p}return ot(t,e),t}(ht),mt=function(e){function t(t,i,n,o,a,r,l,s){var d=e.call(this,t,i,n.width,n.color,o,n.opacity,s)||this;return d.cy=r,d.cx=a,d.r=l,d["stroke-dasharray"]=s,d["fill-opacity"]=o,d["stroke-opacity"]=n.opacity,d}return ot(t,e),t}(ht),gt=function(e){function t(t,i,n,o,a,r,l,s){void 0===r&&(r=1),void 0===l&&(l=1),void 0===s&&(s="");var d=e.call(this,t,n,o,a,r,l,s)||this;return d.points=i,d}return ot(t,e),t}(ht),yt=function(e){function t(t,i,n,o,a,r,l,s){return void 0===r&&(r=1),void 0===l&&(l=1),void 0===s&&(s=""),e.call(this,t,i,n,o,a,r,l,s)||this}return ot(t,e),t}(gt),ft=function(e){function t(t,i,n,o,a,r,l,s){void 0===r&&(r=1),void 0===l&&(l=1),void 0===s&&(s="");var d=e.call(this,t,n,o,a,r,l,s)||this;return d.x1=i.x1,d.y1=i.y1,d.x2=i.x2,d.y2=i.y2,d}return ot(t,e),t}(ht),bt=function(){function e(e,t,i,n){this.x1=e,this.y1=t,this.x2=i,this.y2=n}return e}(),vt=function(){function e(e,t){this.x=e,this.y=t}return e}(),St=function(){function e(e,t,i,n){this.x=e,this.y=t,this.width=i,this.height=n}return e}(),_t=function(){function e(e,t,i,n,o,a,r,l,s){void 0===a&&(a="userSpaceOnUse"),void 0===r&&(r="userSpaceOnUse"),void 0===l&&(l=""),void 0===s&&(s=""),this.id=e,this.x=t,this.y=i,this.width=n,this.height=o,this.patternUnits=a,this.patternContentUnits=r,this.patternTransform=l,this.href=s}return e}(),xt=function(){function e(e,t,i,n,o){this.dataOptions=e,this.type=t||"GET",this.async=i||!0,this.contentType=n,this.sendData=o}return e}()},function(t,i){t.exports=e},function(e,t,i){"use strict";var n=i(18);i.d(t,"a",function(){return n.a});var o=i(3);i.d(t,"b",function(){return o.a}),i.d(t,"c",function(){return o.b}),i.d(t,"d",function(){return o.c}),i.d(t,"e",function(){return o.d}),i.d(t,"f",function(){return o.e}),i.d(t,"g",function(){return o.f}),i.d(t,"h",function(){return o.g}),i.d(t,"i",function(){return o.h}),i.d(t,"j",function(){return o.i}),i.d(t,"k",function(){return o.j}),i.d(t,"l",function(){return o.k}),i.d(t,"m",function(){return o.l}),i.d(t,"n",function(){return o.m}),i.d(t,"o",function(){return o.n}),i.d(t,"p",function(){return o.o}),i.d(t,"q",function(){return o.p}),i.d(t,"r",function(){return o.q}),i.d(t,"s",function(){return o.r}),i.d(t,"t",function(){return o.s}),i.d(t,"u",function(){return o.t}),i.d(t,"v",function(){return o.u}),i.d(t,"w",function(){return o.v}),i.d(t,"x",function(){return o.w}),i.d(t,"y",function(){return o.x}),i.d(t,"z",function(){return o.y}),i.d(t,"A",function(){return o.z}),i.d(t,"B",function(){return o.A}),i.d(t,"C",function(){return o.B}),i.d(t,"D",function(){return o.C}),i.d(t,"E",function(){return o.D}),i.d(t,"F",function(){return o.E}),i.d(t,"G",function(){return o.F}),i.d(t,"H",function(){return o.G}),i.d(t,"I",function(){return o.H}),i.d(t,"J",function(){return o.I}),i.d(t,"K",function(){return o.J}),i.d(t,"L",function(){return o.K}),i.d(t,"M",function(){return o.L});var a=i(5);i.d(t,"N",function(){return a.a}),i.d(t,"O",function(){return a.b}),i.d(t,"P",function(){return a.c}),i.d(t,"Q",function(){return a.d}),i.d(t,"R",function(){return a.e}),i.d(t,"S",function(){return a.f}),i.d(t,"T",function(){return a.g}),i.d(t,"U",function(){return a.h}),i.d(t,"V",function(){return a.i}),i.d(t,"W",function(){return a.j}),i.d(t,"X",function(){return a.k}),i.d(t,"Y",function(){return a.l}),i.d(t,"Z",function(){return a.m}),i.d(t,"_0",function(){return a.n}),i.d(t,"_1",function(){return a.o}),i.d(t,"_2",function(){return a.p}),i.d(t,"_3",function(){return a.q}),i.d(t,"_4",function(){return a.r}),i.d(t,"_5",function(){return a.s}),i.d(t,"_6",function(){return a.t}),i.d(t,"_7",function(){return a.u}),i.d(t,"_8",function(){return a.v}),i.d(t,"_9",function(){return a.w}),i.d(t,"_10",function(){return a.x}),i.d(t,"_11",function(){return a.y}),i.d(t,"_12",function(){return a.z}),i.d(t,"_13",function(){return a.A}),i.d(t,"_14",function(){return a.B}),i.d(t,"_15",function(){return a.C}),i.d(t,"_16",function(){return a.D}),i.d(t,"_17",function(){return a.E}),i.d(t,"_18",function(){return a.F}),i.d(t,"_19",function(){return a.G}),i.d(t,"_20",function(){return a.H}),i.d(t,"_21",function(){return a.I}),i.d(t,"_22",function(){return a.J});var r=i(0);i.d(t,"_23",function(){return r.a}),i.d(t,"_24",function(){return r.b}),i.d(t,"_25",function(){return r.c}),i.d(t,"_26",function(){return r.d}),i.d(t,"_27",function(){return r.e}),i.d(t,"_28",function(){return r.f}),i.d(t,"_29",function(){return r.g}),i.d(t,"_30",function(){return r.h}),i.d(t,"_31",function(){return r.i}),i.d(t,"_32",function(){return r.j}),i.d(t,"_33",function(){return r.k}),i.d(t,"_34",function(){return r.l}),i.d(t,"_35",function(){return r.m}),i.d(t,"_36",function(){return r.n}),i.d(t,"_37",function(){return r.o}),i.d(t,"_38",function(){return r.p}),i.d(t,"_39",function(){return r.q}),i.d(t,"_40",function(){return r.r}),i.d(t,"_41",function(){return r.s}),i.d(t,"_42",function(){return r.t}),i.d(t,"_43",function(){return r.u}),i.d(t,"_44",function(){return r.v}),i.d(t,"_45",function(){return r.w}),i.d(t,"_46",function(){return r.x}),i.d(t,"_47",function(){return r.y}),i.d(t,"_48",function(){return r.z}),i.d(t,"_49",function(){return r.A}),i.d(t,"_50",function(){return r.B}),i.d(t,"_51",function(){return r.C}),i.d(t,"_52",function(){return r.D}),i.d(t,"_53",function(){return r.E}),i.d(t,"_54",function(){return r.F}),i.d(t,"_55",function(){return r.G}),i.d(t,"_56",function(){return r.H}),i.d(t,"_57",function(){return r.I}),i.d(t,"_58",function(){return r.J}),i.d(t,"_59",function(){return r.K}),i.d(t,"_60",function(){return r.L}),i.d(t,"_61",function(){return r.M}),i.d(t,"_62",function(){return r.N}),i.d(t,"_63",function(){return r.O}),i.d(t,"_64",function(){return r.P}),i.d(t,"_65",function(){return r.Q}),i.d(t,"_66",function(){return r.R}),i.d(t,"_67",function(){return r.S}),i.d(t,"_68",function(){return r.T}),i.d(t,"_69",function(){return r.U}),i.d(t,"_70",function(){return r.V}),i.d(t,"_71",function(){return r.W}),i.d(t,"_72",function(){return r.X}),i.d(t,"_73",function(){return r.Y}),i.d(t,"_74",function(){return r.Z}),i.d(t,"_75",function(){return r._0}),i.d(t,"_76",function(){return r._1}),i.d(t,"_77",function(){return r._2}),i.d(t,"_78",function(){return r._3}),i.d(t,"_79",function(){return r._4}),i.d(t,"_80",function(){return r._5}),i.d(t,"_81",function(){return r._6}),i.d(t,"_82",function(){return r._7}),i.d(t,"_83",function(){return r._8}),i.d(t,"_84",function(){return r._9}),i.d(t,"_85",function(){return r._10}),i.d(t,"_86",function(){return r._11}),i.d(t,"_87",function(){return r._12}),i.d(t,"_88",function(){return r._13}),i.d(t,"_89",function(){return r._14}),i.d(t,"_90",function(){return r._15}),i.d(t,"_91",function(){return r._16}),i.d(t,"_92",function(){return r._17}),i.d(t,"_93",function(){return r._18}),i.d(t,"_94",function(){return r._19}),i.d(t,"_95",function(){return r._20}),i.d(t,"_96",function(){return r._21}),i.d(t,"_97",function(){return r._22}),i.d(t,"_98",function(){return r._23}),i.d(t,"_99",function(){return r._24}),i.d(t,"_100",function(){return r._25}),i.d(t,"_101",function(){return r._26}),i.d(t,"_102",function(){return r._27}),i.d(t,"_103",function(){return r._28}),i.d(t,"_104",function(){return r._29}),i.d(t,"_105",function(){return r._30}),i.d(t,"_106",function(){return r._31}),i.d(t,"_107",function(){return r._32}),i.d(t,"_108",function(){return r._33}),i.d(t,"_109",function(){return r._34}),i.d(t,"_110",function(){return r._35}),i.d(t,"_111",function(){return r._36}),i.d(t,"_112",function(){return r._37}),i.d(t,"_113",function(){return r._38}),i.d(t,"_114",function(){return r._39}),i.d(t,"_115",function(){return r._40}),i.d(t,"_116",function(){return r._41}),i.d(t,"_117",function(){return r._42}),i.d(t,"_118",function(){return r._43}),i.d(t,"_119",function(){return r._44}),i.d(t,"_120",function(){return r._45}),i.d(t,"_121",function(){return r._46}),i.d(t,"_122",function(){return r._47}),i.d(t,"_123",function(){return r._48}),i.d(t,"_124",function(){return r._49}),i.d(t,"_125",function(){return r._50}),i.d(t,"_126",function(){return r._51}),i.d(t,"_127",function(){return r._52}),i.d(t,"_128",function(){return r._53}),i.d(t,"_129",function(){return r._54}),i.d(t,"_130",function(){return r._55}),i.d(t,"_131",function(){return r._56}),i.d(t,"_132",function(){return r._57}),i.d(t,"_133",function(){return r._58}),i.d(t,"_134",function(){return r._59}),i.d(t,"_135",function(){return r._60}),i.d(t,"_136",function(){return r._61}),i.d(t,"_137",function(){return r._62}),i.d(t,"_138",function(){return r._63}),i.d(t,"_139",function(){return r._64}),i.d(t,"_140",function(){return r._65}),i.d(t,"_141",function(){return r._66}),i.d(t,"_142",function(){return r._67}),i.d(t,"_143",function(){return r._68}),i.d(t,"_144",function(){return r._69}),i.d(t,"_145",function(){return r._70});var l=i(10);i.d(t,"_146",function(){return l.a});var s=i(12);i.d(t,"_147",function(){return s.a});var d=i(8);i.d(t,"_148",function(){return d.a});var p=i(15);i.d(t,"_149",function(){return p.a});var h=i(17);i.d(t,"_150",function(){return h.a});var u=i(9);i.d(t,"_151",function(){return u.a});var c=i(13);i.d(t,"_152",function(){return c.a});var m=i(16);i.d(t,"_153",function(){return m.a});var g=i(14);i.d(t,"_154",function(){return g.a});var y=i(22);i.d(t,"_155",function(){return y.a});var f=i(23);i.d(t,"_156",function(){return f.a});var b=i(24);i.d(t,"_157",function(){return b.a});var v=i(25);i.d(t,"_158",function(){return v.a});var S=i(11);i.d(t,"_159",function(){return S.a});var _=i(21);i.d(t,"_160",function(){return _.a});var x=i(19);i.d(t,"_161",function(){return x.a});var O=i(20);i.d(t,"_162",function(){return O.a})},function(e,t,i){"use strict";i.d(t,"a",function(){return n}),i.d(t,"b",function(){return o}),i.d(t,"c",function(){return a}),i.d(t,"d",function(){return r}),i.d(t,"e",function(){return l}),i.d(t,"f",function(){return s}),i.d(t,"g",function(){return d}),i.d(t,"h",function(){return p}),i.d(t,"i",function(){return h}),i.d(t,"j",function(){return u}),i.d(t,"k",function(){return c}),i.d(t,"l",function(){return m}),i.d(t,"m",function(){return g}),i.d(t,"n",function(){return y}),i.d(t,"o",function(){return f}),i.d(t,"p",function(){return b}),i.d(t,"q",function(){return v}),i.d(t,"r",function(){return S}),i.d(t,"s",function(){return _}),i.d(t,"t",function(){return x}),i.d(t,"u",function(){return O}),i.d(t,"v",function(){return M}),i.d(t,"w",function(){return C}),i.d(t,"x",function(){return L}),i.d(t,"y",function(){return P}),i.d(t,"z",function(){return w}),i.d(t,"A",function(){return T}),i.d(t,"B",function(){return I}),i.d(t,"C",function(){return k}),i.d(t,"D",function(){return N}),i.d(t,"E",function(){return E}),i.d(t,"F",function(){return F}),i.d(t,"G",function(){return z}),i.d(t,"H",function(){return A}),i.d(t,"I",function(){return B}),i.d(t,"J",function(){return U}),i.d(t,"K",function(){return j}),i.d(t,"L",function(){return Z});var n="load",o="loaded",a="click",r="onclick",l="rightClick",s="doubleClick",d="resize",p="tooltipRender",h="shapeSelected",u="shapeHighlight",c="mousemove",m="mouseup",g="mousedown",y="layerRendering",f="shapeRendering",b="markerRendering",v="markerClusterRendering",S="markerClick",_="markerDragStart",x="markerDragEnd",O="markerClusterClick",M="markerMouseMove",C="markerClusterMouseMove",L="dataLabelRendering",P="bubbleRendering",w="bubbleClick",T="bubbleMouseMove",I="animationComplete",k="legendRendering",N="annotationRendering",E="itemSelection",F="panComplete",z="zoomComplete",A="itemHighlight",B="beforePrint",U="zoomIn",j="zoomOut",Z="pan"},function(e,t,i){"use strict";function n(e){var t;switch(e.toLowerCase()){case"tailwind":t=["#0369A1","#14B8A6","#15803D","#334155","#5A61F6","#65A30D","#8B5CF6","#9333EA","#F59E0B","#F97316"];break;case"tailwinddark":t=["#10B981","#22D3EE","#2DD4BF","#4ADE80","#8B5CF6","#E879F9","#F472B6","#F87171","#F97316","#FCD34D"];break;case"bootstrap5":t=["#262E0B","#668E1F","#AF6E10","#862C0B","#1F2D50","#64680B","#311508","#4C4C81","#0C7DA0","#862C0B"];break;case"bootstrap5dark":t=["#5ECB9B","#A860F1","#EBA844","#557EF7","#E9599B","#BFC529","#3BC6CF","#7A68EC","#74B706","#EA6266"];break;case"fluent":t=["#614570","#4C6FB1","#CC6952","#3F579A","#4EA09B","#6E7A89","#D4515C","#E6AF5D","#639751","#9D4D69"];break;case"fluentdark":t=["#8AB113","#2A72D5","#43B786","#584EC6","#E85F9C","#6E7A89","#EA6266","#EBA844","#26BC7A","#BC4870"];break;case"material3":t=["#6200EE","#E77A16","#82C100","#7107DC","#05BB3D","#D21020","#FAD200","#0085FF","#9204EA","#08EE9B"];break;case"material3dark":t=["#4EAAFF","#FA4EAB","#FFF500","#17EA58","#38FFE7","#FF9E45","#B3F32F","#B93CE4","#FC5664","#9B55FF"];break;default:t=["#B5E485","#7BC1E8","#DF819C","#EC9B79","#78D0D3","#D6D572","#9178E3","#A1E5B4","#87A4B4","#E4C16C"]}return t}function o(e){var t,i;switch(e.toLowerCase()){case"materialdark":i="#303030";break;case"fabricdark":i="#201F1F";break;case"bootstrapdark":i="#1A1A1A"}switch(e.toLowerCase()){case"materialdark":case"fabricdark":case"bootstrapdark":t={backgroundColor:i,areaBackgroundColor:i,titleFontColor:"#FFFFFF",titleFontSize:"14px",subTitleFontColor:"#FFFFFF",legendTitleFontColor:"#DADADA",legendTextColor:"#DADADA",dataLabelFontColor:"#DADADA",tooltipFontColor:"#FFFFFF",tooltipFillColor:"#363F4C",zoomFillColor:"#FFFFFF",labelFontFamily:"Roboto, Noto, Sans-serif",fontFamily:"Roboto, Noto, Sans-serif",fontSize:"12px",fontWeight:"Medium",titleFontWeight:"Medium",zoomSelectionColor:"#e61576",shapeFill:"#A6A6A6",rectangleZoomFillColor:"#d3d3d3",rectangleZoomFillOpacity:.5,rectangleZoomBorderColor:"#009900"};break;case"highcontrast":t={backgroundColor:"#000000",areaBackgroundColor:"#000000",titleFontColor:"#FFFFFF",titleFontSize:"14px",subTitleFontColor:"#FFFFFF",legendTitleFontColor:"#FFFFFF",legendTextColor:"#FFFFFF",dataLabelFontColor:"#000000",tooltipFontColor:"#000000",tooltipFillColor:"#ffffff",zoomFillColor:"#FFFFFF",fontFamily:"Roboto, Noto, Sans-serif",fontSize:"12px",fontWeight:"Medium",labelFontFamily:"Roboto, Noto, Sans-serif",titleFontWeight:"Medium",zoomSelectionColor:"#e61576",shapeFill:"#A6A6A6",rectangleZoomFillColor:"#d3d3d3",rectangleZoomFillOpacity:.5,rectangleZoomBorderColor:"#009900"};break;case"bootstrap4":t={backgroundColor:"#FFFFFF",areaBackgroundColor:"#FFFFFF",titleFontColor:"#212529",subTitleFontColor:"#212529",legendTitleFontColor:"#212529",legendTextColor:"#212529",dataLabelFontColor:"#212529",tooltipFontColor:"#FFFFFF",tooltipFillColor:"#000000",zoomFillColor:"#5B6269",fontFamily:"HelveticaNeue-Medium",fontSize:"12px",fontWeight:"Medium",titleFontSize:"16px",legendFontSize:"14px",tooltipFillOpacity:1,tooltipTextOpacity:.9,labelFontFamily:"HelveticaNeue-Medium",titleFontWeight:"Medium",zoomSelectionColor:"#e61576",shapeFill:"#A6A6A6",rectangleZoomFillColor:"#d3d3d3",rectangleZoomFillOpacity:.5,rectangleZoomBorderColor:"#009900"};break;case"tailwind":t={backgroundColor:"rgba(255,255,255, 0.0)",areaBackgroundColor:"rgba(255,255,255, 0.0)",titleFontColor:"#374151",subTitleFontColor:"#374151",legendTitleFontColor:"#374151",legendTextColor:"#6B7280",dataLabelFontColor:"#505967",tooltipFontColor:"#F9FAFB",tooltipFillColor:"#111827",zoomFillColor:"#6b7280",fontFamily:"Inter",fontSize:"12px",fontWeight:"Medium",titleFontSize:"14px",legendFontSize:"12px",tooltipFillOpacity:1,tooltipTextOpacity:.9,labelFontFamily:"Inter",titleFontWeight:"500",zoomSelectionColor:"#374151",shapeFill:"#E5E7EB",rectangleZoomFillColor:"#d3d3d3",rectangleZoomFillOpacity:.5,rectangleZoomBorderColor:"#009900"};break;case"tailwinddark":t={backgroundColor:"rgba(255,255,255, 0.0)",areaBackgroundColor:"rgba(255,255,255, 0.0)",titleFontColor:"#D1D5DB",subTitleFontColor:"#D1D5DB",legendTitleFontColor:"#D1D5DB",legendTextColor:"#D1D5DB",dataLabelFontColor:"#D1D5DB",tooltipFontColor:"#1F2937",tooltipFillColor:"#F9FAFB",zoomFillColor:"#D1D5DB",fontFamily:"Inter",fontSize:"12px",fontWeight:"Medium",titleFontSize:"14px",legendFontSize:"12px",tooltipFillOpacity:1,tooltipTextOpacity:.9,labelFontFamily:"Inter",titleFontWeight:"500",zoomSelectionColor:"#F3F4F6",shapeFill:"#374151",rectangleZoomFillColor:"#d3d3d3",rectangleZoomFillOpacity:.5,rectangleZoomBorderColor:"#009900"};break;case"bootstrap5":t={backgroundColor:"rgba(255,255,255, 0.0)",areaBackgroundColor:"rgba(255,255,255, 0.0)",titleFontColor:"#212529",subTitleFontColor:"#212529",legendTitleFontColor:"#212529",legendTextColor:"#212529",dataLabelFontColor:"#212529",tooltipFontColor:"#F9FAFB",tooltipFillColor:"#212529",zoomFillColor:"#6C757D",fontFamily:"Helvetica Neue",fontSize:"12px",fontWeight:"Medium",titleFontSize:"14px",legendFontSize:"12px",tooltipFillOpacity:1,tooltipTextOpacity:1,labelFontFamily:"Helvetica Neue",titleFontWeight:"normal",zoomSelectionColor:"#343A40",shapeFill:"#E9ECEF",rectangleZoomFillColor:"#d3d3d3",rectangleZoomFillOpacity:.5,rectangleZoomBorderColor:"#009900"};break;case"bootstrap5dark":t={backgroundColor:"rgba(255,255,255, 0.0)",areaBackgroundColor:"rgba(255,255,255, 0.0)",titleFontColor:"#FFFFFF",subTitleFontColor:"#FFFFFF",legendTitleFontColor:"#FFFFFF",legendTextColor:"#FFFFFF",dataLabelFontColor:"#FFFFFF",tooltipFontColor:"#212529",tooltipFillColor:"#E9ECEF",zoomFillColor:"#B5BABE",fontFamily:"Helvetica Neue",fontSize:"12px",fontWeight:"Medium",titleFontSize:"14px",legendFontSize:"12px",tooltipFillOpacity:1,tooltipTextOpacity:1,labelFontFamily:"Helvetica Neue",titleFontWeight:"normal",zoomSelectionColor:"#DEE2E6",shapeFill:"#495057",rectangleZoomFillColor:"#d3d3d3",rectangleZoomFillOpacity:.5,rectangleZoomBorderColor:"#009900"};break;case"fluent":t={backgroundColor:"rgba(255,255,255, 0.0)",areaBackgroundColor:"rgba(255,255,255, 0.0)",titleFontColor:"#201F1E",subTitleFontColor:"#201F1E",legendTitleFontColor:"#201F1E",legendTextColor:"#201F1E",dataLabelFontColor:"#201F1E",tooltipFontColor:"#323130",tooltipFillColor:"#FFFFFF",zoomFillColor:"#A19F9D",fontFamily:"Segoe UI",fontSize:"12px",fontWeight:"Medium",titleFontSize:"14px",legendFontSize:"12px",tooltipFillOpacity:1,tooltipTextOpacity:1,labelFontFamily:"Segoe UI",titleFontWeight:"600",zoomSelectionColor:"#323130",shapeFill:"#F3F2F1",rectangleZoomFillColor:"#d3d3d3",rectangleZoomFillOpacity:.5,rectangleZoomBorderColor:"#009900"};break;case"fluentdark":t={backgroundColor:"rgba(255,255,255, 0.0)",areaBackgroundColor:"rgba(255,255,255, 0.0)",titleFontColor:"#F3F2F1",subTitleFontColor:"#F3F2F1",legendTitleFontColor:"#F3F2F1",legendTextColor:"#F3F2F1",dataLabelFontColor:"#F3F2F1",tooltipFontColor:"#F3F2F1",tooltipFillColor:"#252423",zoomFillColor:"#484644",fontFamily:"Segoe UI",fontSize:"12px",fontWeight:"Medium",titleFontSize:"14px",legendFontSize:"12px",tooltipFillOpacity:1,tooltipTextOpacity:1,labelFontFamily:"Segoe UI",titleFontWeight:"600",zoomSelectionColor:"#F3F2F1",shapeFill:"#252423",rectangleZoomFillColor:"#d3d3d3",rectangleZoomFillOpacity:.5,rectangleZoomBorderColor:"#009900"};break;case"material3":t={backgroundColor:"transparent",areaBackgroundColor:"transparent",titleFontColor:"#1C1B1F",subTitleFontColor:"#1C1B1F",legendTitleFontColor:"#1C1B1F",legendTextColor:"#49454E",dataLabelFontColor:"#1C1B1F",tooltipFontColor:"#F4EFF4",tooltipFillColor:"#313033",zoomFillColor:"#49454E",fontFamily:"Roboto",fontSize:"14px",titleFontSize:"16px",subTitleFontSize:"14px",legendFontSize:"12px",tooltipFillOpacity:1,tooltipTextOpacity:1,labelFontFamily:"Roboto",titleFontWeight:"500",fontWeight:"400",zoomSelectionColor:"#49454E",shapeFill:"#E7E0EC",rectangleZoomFillColor:"#6750A4",rectangleZoomFillOpacity:.24,rectangleZoomBorderColor:"#6750A4"};break;case"material3dark":t={backgroundColor:"transparent",areaBackgroundColor:"transparent",titleFontColor:"#E6E1E5",subTitleFontColor:"#E6E1E5",legendTitleFontColor:"#E6E1E5",legendTextColor:"#CAC4D0",dataLabelFontColor:"#E6E1E5",tooltipFontColor:"#313033",tooltipFillColor:"#E6E1E5",zoomFillColor:"#E6E1E5",fontFamily:"Roboto",fontSize:"14px",titleFontSize:"16px",subTitleFontSize:"14px",legendFontSize:"12px",tooltipFillOpacity:1,tooltipTextOpacity:1,labelFontFamily:"Roboto",titleFontWeight:"500",fontWeight:"400",zoomSelectionColor:"#E6E1E5",shapeFill:"#49454F",rectangleZoomFillColor:"#D0BCFF",rectangleZoomFillOpacity:.24,rectangleZoomBorderColor:"#D0BCFF"};break;default:t={backgroundColor:"#FFFFFF",areaBackgroundColor:"#FFFFFF",titleFontColor:"#424242",titleFontSize:"14px",subTitleFontColor:"#424242",legendTitleFontColor:"#757575",legendTextColor:"#757575",dataLabelFontColor:"#000000",tooltipFontColor:"#FFFFFF",tooltipFillColor:"#000000",zoomFillColor:"#737373",labelFontFamily:"Roboto, Noto, Sans-serif",fontFamily:"Roboto, Noto, Sans-serif",fontSize:"12px",fontWeight:"Medium",titleFontWeight:"Medium",zoomSelectionColor:"#e61576",shapeFill:"#A6A6A6",rectangleZoomFillColor:"#d3d3d3",rectangleZoomFillOpacity:.5,rectangleZoomBorderColor:"#009900"}}return t}i.d(t,"a",function(){return a}),t.b=n,t.c=o;var a;!function(e){e.mapsTitleFont={size:"14px",fontWeight:null,color:"#424242",fontStyle:"Medium",fontFamily:"Roboto, Noto, Sans-serif"},e.mapsSubTitleFont={size:"13px",fontWeight:null,color:"#424242",fontStyle:"Medium",fontFamily:"Roboto, Noto, Sans-serif"},e.tooltipLabelFont={size:"12px",fontWeight:"Regular",color:null,fontStyle:"Regular",fontFamily:null},e.legendTitleFont={size:"12px",fontWeight:"Medium",color:null,fontStyle:"Medium",fontFamily:null},e.legendLabelFont={size:"13px",fontWeight:"Medium",color:null,fontStyle:"Medium",fontFamily:"Roboto, Noto, Sans-serif"},e.dataLabelFont={size:"12px",fontWeight:"Medium",color:"#000000",fontStyle:"Medium",fontFamily:"Roboto, Noto, Sans-serif"}}(a||(a={}));var r;!function(e){e.mapsTitleFont={size:"14px",fontWeight:"Semibold",color:"#424242",fontStyle:"Semibold",fontFamily:"SegoeUI, Helvetica Neue, Helvetica, Arial, sans-serif"},e.mapsSubTitleFont={size:"13px",fontWeight:"Regular",color:"#424242",fontStyle:"Regular",fontFamily:"SegoeUI, Helvetica Neue, Helvetica, Arial, sans-serif"},e.tooltipLabelFont={size:"12px",fontWeight:"Regular",color:"#FFFFFF",fontStyle:"Regular",fontFamily:"Roboto"},e.legendTitleFont={size:"14px",fontWeight:"Regular",color:"#757575",fontStyle:"Regular",fontFamily:"SegoeUI, Helvetica Neue, Helvetica, Arial, sans-serif"},e.legendLabelFont={size:"13px",fontWeight:"Medium",color:"#757575",fontStyle:"Medium",fontFamily:"SegoeUI, Helvetica Neue, Helvetica, Arial, sans-serif"},e.dataLabelFont={size:"12px",fontWeight:"Medium",color:"#000000",fontStyle:"Medium",fontFamily:"SegoeUI, Helvetica Neue, Helvetica, Arial, sans-serif"}}(r||(r={}));var l;!function(e){e.mapsTitleFont={size:"14px",fontWeight:"Semibold",color:"#424242",fontStyle:"Semibold",fontFamily:"Helvetica Neue, Helvetica, Arial, sans-serif"},e.mapsSubTitleFont={size:"13px",fontWeight:"Regular",color:"#424242",fontStyle:"Regular",fontFamily:"Helvetica Neue, Helvetica, Arial, sans-serif"},e.tooltipLabelFont={size:"12px",fontWeight:"Regular",color:"#FFFFFF",fontStyle:"Regular",fontFamily:"Roboto"},e.legendTitleFont={size:"14px",fontWeight:"Regular",color:"#757575",fontStyle:"Regular",fontFamily:"Helvetica Neue, Helvetica, Arial, sans-serif"},e.legendLabelFont={size:"13px",fontWeight:"Medium",color:"#757575",fontStyle:"Medium",fontFamily:"Helvetica Neue, Helvetica, Arial, sans-serif"},e.dataLabelFont={size:"12px",fontWeight:"Medium",color:"#000000",fontStyle:"Medium",fontFamily:"Helvetica Neue, Helvetica, Arial, sans-serif"}}(l||(l={}));var s;!function(e){e.mapsTitleFont={size:"14px",fontWeight:"Medium",color:"#FFFFFF",fontStyle:"Medium",fontFamily:"Roboto, Noto, Sans-serif"},e.mapsSubTitleFont={size:"13px",fontWeight:"Medium",color:"#FFFFFF",fontStyle:"Medium",fontFamily:"Roboto, Noto, Sans-serif"},e.tooltipLabelFont={size:"12px",fontWeight:"Regular",color:"#000000",fontStyle:"Regular",fontFamily:"Roboto"},e.legendTitleFont={size:"14px",fontWeight:"Regular",color:"#FFFFFF",fontStyle:"Regular",fontFamily:"Roboto, Noto, Sans-serif"},e.legendLabelFont={size:"13px",fontWeight:"Medium",color:"#FFFFFF",fontStyle:"Medium",fontFamily:"Roboto, Noto, Sans-serif"},e.dataLabelFont={size:"12px",fontWeight:"Medium",color:"#000000",fontStyle:"Medium",fontFamily:"Roboto, Noto, Sans-serif"}}(s||(s={}));var d;!function(e){e.mapsTitleFont={fontFamily:"Roboto, Noto, Sans-serif",fontWeight:"Medium",size:"14px",fontStyle:"Medium",color:"#FFFFFF"},e.mapsSubTitleFont={size:"13px",color:"#FFFFFF",fontWeight:"Medium",fontFamily:"Roboto, Noto, Sans-serif",fontStyle:"Medium"},e.tooltipLabelFont={size:"12px",color:"#282727",fontWeight:"Regular",fontFamily:"Roboto",fontStyle:"Regular"},e.legendTitleFont={size:"14px",fontWeight:"Regular",color:"#FFFFFF",fontStyle:"Regular",fontFamily:"Roboto, Noto, Sans-serif"},e.legendLabelFont={size:"13px",fontFamily:"Roboto, Noto, Sans-serif",fontWeight:"Medium",color:"#DADADA",fontStyle:"Medium"}}(d||(d={}))},function(e,t,i){"use strict";i.d(t,"a",function(){return s}),i.d(t,"b",function(){return d}),i.d(t,"c",function(){return p}),i.d(t,"d",function(){return h}),i.d(t,"e",function(){return u}),i.d(t,"f",function(){return c}),i.d(t,"g",function(){return m}),i.d(t,"h",function(){return g}),i.d(t,"i",function(){return y}),i.d(t,"j",function(){return f}),i.d(t,"k",function(){return b}),i.d(t,"l",function(){return v}),i.d(t,"m",function(){return S}),i.d(t,"n",function(){return _}),i.d(t,"o",function(){return x}),i.d(t,"p",function(){return O}),i.d(t,"q",function(){return M}),i.d(t,"r",function(){return C}),i.d(t,"s",function(){return L}),i.d(t,"t",function(){return P}),i.d(t,"u",function(){return w}),i.d(t,"v",function(){return T}),i.d(t,"w",function(){return I}),i.d(t,"x",function(){return k}),i.d(t,"y",function(){return N}),i.d(t,"z",function(){return E}),i.d(t,"A",function(){return F}),i.d(t,"B",function(){return z}),i.d(t,"C",function(){return A}),i.d(t,"D",function(){return B}),i.d(t,"E",function(){return U}),i.d(t,"F",function(){return j}),i.d(t,"G",function(){return Z}),i.d(t,"H",function(){return R}),i.d(t,"I",function(){return D}),i.d(t,"J",function(){return V});var n=i(1),o=(i.n(n),i(4)),a=i(0),r=this&&this.__extends||function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}(),l=this&&this.__decorate||function(e,t,i,n){var o,a=arguments.length,r=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(a<3?o(r):a>3?o(t,i,r):o(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r},s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),l([i.i(n.Property)("")],t.prototype,"content",void 0),l([i.i(n.Property)("0px")],t.prototype,"x",void 0),l([i.i(n.Property)("0px")],t.prototype,"y",void 0),l([i.i(n.Property)("None")],t.prototype,"verticalAlignment",void 0),l([i.i(n.Property)("None")],t.prototype,"horizontalAlignment",void 0),l([i.i(n.Property)("-1")],t.prototype,"zIndex",void 0),t}(n.ChildProperty),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),l([i.i(n.Property)("Start")],t.prototype,"position",void 0),l([i.i(n.Property)("false")],t.prototype,"showArrow",void 0),l([i.i(n.Property)(2)],t.prototype,"size",void 0),l([i.i(n.Property)("black")],t.prototype,"color",void 0),l([i.i(n.Property)(0)],t.prototype,"offSet",void 0),t}(n.ChildProperty),p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),l([i.i(n.Property)("12px")],t.prototype,"size",void 0),l([i.i(n.Property)(null)],t.prototype,"color",void 0),l([i.i(n.Property)("Roboto, Noto, Sans-serif")],t.prototype,"fontFamily",void 0),l([i.i(n.Property)("Medium")],t.prototype,"fontWeight",void 0),l([i.i(n.Property)("Medium")],t.prototype,"fontStyle",void 0),l([i.i(n.Property)(1)],t.prototype,"opacity",void 0),t}(n.ChildProperty),h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),l([i.i(n.Property)("transparent")],t.prototype,"fill",void 0),l([i.i(n.Property)(null)],t.prototype,"color",void 0),l([i.i(n.Property)(1)],t.prototype,"borderOpacity",void 0),l([i.i(n.Property)(1)],t.prototype,"borderWidth",void 0),l([i.i(n.Property)(null)],t.prototype,"borderColor",void 0),l([i.i(n.Property)(30)],t.prototype,"radius",void 0),l([i.i(n.Property)(null)],t.prototype,"selectionColor",void 0),l([i.i(n.Property)(null)],t.prototype,"highlightColor",void 0),l([i.i(n.Property)(5)],t.prototype,"padding",void 0),l([i.i(n.Property)(1)],t.prototype,"opacity",void 0),l([i.i(n.Property)(["ZoomIn","ZoomOut","Reset"])],t.prototype,"toolbarItems",void 0),t}(n.ChildProperty),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),l([i.i(n.Property)(!0)],t.prototype,"visible",void 0),l([i.i(n.Property)("white")],t.prototype,"fill",void 0),l([i.i(n.Property)(1)],t.prototype,"borderOpacity",void 0),l([i.i(n.Property)(1)],t.prototype,"borderWidth",void 0),l([i.i(n.Property)("#707070")],t.prototype,"borderColor",void 0),l([i.i(n.Property)("black")],t.prototype,"fontColor",void 0),l([i.i(n.Property)("")],t.prototype,"fontFamily",void 0),l([i.i(n.Property)("")],t.prototype,"fontStyle",void 0),l([i.i(n.Property)("")],t.prototype,"fontWeight",void 0),l([i.i(n.Property)("")],t.prototype,"fontSize",void 0),l([i.i(n.Property)(1)],t.prototype,"fontOpacity",void 0),t}(n.ChildProperty),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),l([i.i(n.Property)("transparent")],t.prototype,"backgroundColor",void 0),l([i.i(n.Property)(1)],t.prototype,"borderOpacity",void 0),l([i.i(n.Property)(1)],t.prototype,"borderWidth",void 0),l([i.i(n.Property)("transparent")],t.prototype,"borderColor",void 0),l([i.i(n.Property)("Far")],t.prototype,"horizontalAlignment",void 0),l([i.i(n.Property)("Near")],t.prototype,"verticalAlignment",void 0),l([i.i(n.Property)("Horizontal")],t.prototype,"orientation",void 0),l([i.i(n.Complex)({},h)],t.prototype,"buttonSettings",void 0),l([i.i(n.Complex)({},u)],t.prototype,"tooltipSettings",void 0),t}(n.ChildProperty),m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),l([i.i(n.Property)("")],t.prototype,"color",void 0),l([i.i(n.Property)(0)],t.prototype,"width",void 0),l([i.i(n.Property)(null)],t.prototype,"opacity",void 0),t}(n.ChildProperty),g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),l([i.i(n.Property)(null)],t.prototype,"latitude",void 0),l([i.i(n.Property)(null)],t.prototype,"longitude",void 0),t}(n.ChildProperty),y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),l([i.i(n.Property)(!1)],t.prototype,"visible",void 0),l([i.i(n.Property)("")],t.prototype,"template",void 0),l([i.i(n.Property)("")],t.prototype,"fill",void 0),l([i.i(n.Complex)({color:"transparent",width:1},m)],t.prototype,"border",void 0),l([i.i(n.Complex)({fontFamily:null,size:null,fontWeight:null},p)],t.prototype,"textStyle",void 0),l([i.i(n.Property)(null)],t.prototype,"format",void 0),l([i.i(n.Property)(null)],t.prototype,"valuePath",void 0),l([i.i(n.Property)(2e3)],t.prototype,"duration",void 0),t}(n.ChildProperty),f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),l([i.i(n.Property)(!1)],t.prototype,"visible",void 0),l([i.i(n.Property)("")],t.prototype,"fill",void 0),l([i.i(n.Complex)({color:"transparent",width:1},m)],t.prototype,"border",void 0),l([i.i(n.Complex)({fontFamily:null,size:null,fontWeight:null},p)],t.prototype,"textStyle",void 0),l([i.i(n.Property)(2e3)],t.prototype,"duration",void 0),t}(n.ChildProperty),b=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),l([i.i(n.Property)(10)],t.prototype,"left",void 0),l([i.i(n.Property)(10)],t.prototype,"right",void 0),l([i.i(n.Property)(10)],t.prototype,"top",void 0),l([i.i(n.Property)(10)],t.prototype,"bottom",void 0),t}(n.ChildProperty),v=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),l([i.i(n.Property)("#000000")],t.prototype,"color",void 0),l([i.i(n.Property)(1)],t.prototype,"width",void 0),l([i.i(n.Property)(1)],t.prototype,"opacity",void 0),t}(n.ChildProperty),S=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),l([i.i(n.Property)(!1)],t.prototype,"allowClustering",void 0),l([i.i(n.Property)(!0)],t.prototype,"allowDeepClustering",void 0),l([i.i(n.Complex)({color:"transparent",width:1},m)],t.prototype,"border",void 0),l([i.i(n.Property)("#D2691E")],t.prototype,"fill",void 0),l([i.i(n.Property)(1)],t.prototype,"opacity",void 0),l([i.i(n.Property)("Rectangle")],t.prototype,"shape",void 0),l([i.i(n.Property)(12)],t.prototype,"width",void 0),l([i.i(n.Property)(12)],t.prototype,"height",void 0),l([i.i(n.Property)(new a.s(0,0))],t.prototype,"offset",void 0),l([i.i(n.Property)("")],t.prototype,"imageUrl",void 0),l([i.i(n.Property)("")],t.prototype,"dashArray",void 0),l([i.i(n.Complex)({},p)],t.prototype,"labelStyle",void 0),l([i.i(n.Property)(!1)],t.prototype,"allowClusterExpand",void 0),l([i.i(n.Complex)({},v)],t.prototype,"connectorLineSettings",void 0),t}(n.ChildProperty),_=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t}(n.ChildProperty),x=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),l([i.i(n.Property)(null)],t.prototype,"from",void 0),l([i.i(n.Property)(null)],t.prototype,"to",void 0),l([i.i(n.Property)(null)],t.prototype,"value",void 0),l([i.i(n.Property)(null)],t.prototype,"color",void 0),l([i.i(n.Property)(null)],t.prototype,"minOpacity",void 0),l([i.i(n.Property)(null)],t.prototype,"maxOpacity",void 0),l([i.i(n.Property)(null)],t.prototype,"label",void 0),l([i.i(n.Property)(!0)],t.prototype,"showLegend",void 0),t}(n.ChildProperty),O=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),l([i.i(n.Property)(null)],t.prototype,"latitude",void 0),l([i.i(n.Property)(null)],t.prototype,"longitude",void 0),t}(n.ChildProperty),M=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),l([i.i(n.Property)(null)],t.prototype,"shapePath",void 0),l([i.i(n.Property)(null)],t.prototype,"shapeValue",void 0),t}(n.ChildProperty),C=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),l([i.i(n.Property)(!1)],t.prototype,"enable",void 0),l([i.i(n.Property)(null)],t.prototype,"fill",void 0),l([i.i(n.Property)(1)],t.prototype,"opacity",void 0),l([i.i(n.Property)(!1)],t.prototype,"enableMultiSelect",void 0),l([i.i(n.Complex)({color:"transparent",width:0},m)],t.prototype,"border",void 0),t}(n.ChildProperty),L=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),l([i.i(n.Property)(null)],t.prototype,"fill",void 0),l([i.i(n.Property)(!1)],t.prototype,"enable",void 0),l([i.i(n.Property)(1)],t.prototype,"opacity",void 0),l([i.i(n.Complex)({color:"transparent",width:0},m)],t.prototype,"border",void 0),t}(n.ChildProperty),P=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),l([i.i(n.Property)(1)],t.prototype,"borderWidth",void 0),l([i.i(n.Property)(1)],t.prototype,"borderOpacity",void 0),l([i.i(n.Property)(1)],t.prototype,"opacity",void 0),l([i.i(n.Property)("#FF471A")],t.prototype,"borderColor",void 0),l([i.i(n.Property)("#FF471A")],t.prototype,"fill",void 0),l([i.i(n.Property)([])],t.prototype,"points",void 0),l([i.i(n.Property)("")],t.prototype,"tooltipText",void 0),l([i.i(n.Property)("")],t.prototype,"tooltipTemplate",void 0),t}(n.ChildProperty),w=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),l([i.i(n.Collection)([],P)],t.prototype,"polygons",void 0),l([i.i(n.Complex)({},C)],t.prototype,"selectionSettings",void 0),l([i.i(n.Complex)({},L)],t.prototype,"highlightSettings",void 0),l([i.i(n.Complex)({},f)],t.prototype,"tooltipSettings",void 0),t}(n.ChildProperty),T=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),l([i.i(n.Property)(!1)],t.prototype,"visible",void 0),l([i.i(n.Property)(1)],t.prototype,"width",void 0),l([i.i(n.Property)(null)],t.prototype,"longitude",void 0),l([i.i(n.Property)(null)],t.prototype,"latitude",void 0),l([i.i(n.Property)("")],t.prototype,"dashArray",void 0),l([i.i(n.Property)("black")],t.prototype,"color",void 0),l([i.i(n.Property)(0)],t.prototype,"angle",void 0),l([i.i(n.Complex)({showArrow:!1,position:"Start",size:5,color:"black"},d)],t.prototype,"arrowSettings",void 0),l([i.i(n.Complex)({},C)],t.prototype,"selectionSettings",void 0),l([i.i(n.Complex)({},L)],t.prototype,"highlightSettings",void 0),t}(n.ChildProperty),I=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),l([i.i(n.Complex)({},m)],t.prototype,"border",void 0),l([i.i(n.Property)(!1)],t.prototype,"visible",void 0),l([i.i(n.Property)([])],t.prototype,"dataSource",void 0),l([i.i(n.Property)()],t.prototype,"query",void 0),l([i.i(n.Property)(1e3)],t.prototype,"animationDuration",void 0),l([i.i(n.Property)(0)],t.prototype,"animationDelay",void 0),l([i.i(n.Property)("")],t.prototype,"fill",void 0),l([i.i(n.Property)(10)],t.prototype,"minRadius",void 0),l([i.i(n.Property)(20)],t.prototype,"maxRadius",void 0),l([i.i(n.Property)(1)],t.prototype,"opacity",void 0),l([i.i(n.Property)(null)],t.prototype,"valuePath",void 0),l([i.i(n.Property)("Circle")],t.prototype,"bubbleType",void 0),l([i.i(n.Property)(null)],t.prototype,"colorValuePath",void 0),l([i.i(n.Collection)([],x)],t.prototype,"colorMapping",void 0),l([i.i(n.Complex)({},y)],t.prototype,"tooltipSettings",void 0),l([i.i(n.Complex)({},C)],t.prototype,"selectionSettings",void 0),l([i.i(n.Complex)({},L)],t.prototype,"highlightSettings",void 0),t}(n.ChildProperty),k=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),l([i.i(n.Property)("")],t.prototype,"text",void 0),l([i.i(n.Property)("")],t.prototype,"description",void 0),t}(n.ChildProperty),N=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),l([i.i(n.Complex)({size:null,fontWeight:null,fontFamily:null},p)],t.prototype,"textStyle",void 0),l([i.i(n.Property)("Center")],t.prototype,"alignment",void 0),t}(k),E=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),l([i.i(n.Complex)({size:null,fontWeight:null,fontFamily:null},p)],t.prototype,"textStyle",void 0),l([i.i(n.Property)("Center")],t.prototype,"alignment",void 0),l([i.i(n.Complex)({},N)],t.prototype,"subtitleSettings",void 0),t}(k),F=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),l([i.i(n.Property)(!1)],t.prototype,"enable",void 0),l([i.i(n.Property)(!0)],t.prototype,"enablePanning",void 0),l([i.i(n.Property)(!0)],t.prototype,"enableSelectionZooming",void 0),l([i.i(n.Property)("Horizontal")],t.prototype,"toolBarOrientation",void 0),l([i.i(n.Property)(null)],t.prototype,"color",void 0),l([i.i(n.Property)(null)],t.prototype,"highlightColor",void 0),l([i.i(n.Property)(null)],t.prototype,"selectionColor",void 0),l([i.i(n.Property)("Far")],t.prototype,"horizontalAlignment",void 0),l([i.i(n.Property)("Near")],t.prototype,"verticalAlignment",void 0),l([i.i(n.Property)(["ZoomIn","ZoomOut","Reset"])],t.prototype,"toolbars",void 0),l([i.i(n.Property)(!0)],t.prototype,"mouseWheelZoom",void 0),l([i.i(n.Property)(!1)],t.prototype,"doubleClickZoom",void 0),l([i.i(n.Property)(!0)],t.prototype,"pinchZooming",void 0),l([i.i(n.Property)(!1)],t.prototype,"zoomOnClick",void 0),l([i.i(n.Property)(1)],t.prototype,"zoomFactor",void 0),l([i.i(n.Property)(10)],t.prototype,"maxZoom",void 0),l([i.i(n.Property)(1)],t.prototype,"minZoom",void 0),l([i.i(n.Property)(!1)],t.prototype,"shouldZoomInitially",void 0),l([i.i(n.Property)(!0)],t.prototype,"resetToInitial",void 0),l([i.i(n.Complex)({},c)],t.prototype,"toolbarSettings",void 0),t}(n.ChildProperty),z=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),l([i.i(n.Property)(!1)],t.prototype,"enable",void 0),l([i.i(n.Property)(!0)],t.prototype,"applyShapeSettings",void 0),l([i.i(n.Property)(1)],t.prototype,"opacity",void 0),l([i.i(n.Property)("")],t.prototype,"fill",void 0),l([i.i(n.Complex)({color:"",width:0},m)],t.prototype,"border",void 0),t}(n.ChildProperty),A=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),l([i.i(n.Property)(!1)],t.prototype,"useMarkerShape",void 0),l([i.i(n.Property)(!1)],t.prototype,"toggleVisibility",void 0),l([i.i(n.Property)(!1)],t.prototype,"visible",void 0),l([i.i(n.Property)("transparent")],t.prototype,"background",void 0),l([i.i(n.Property)("Layers")],t.prototype,"type",void 0),l([i.i(n.Property)(!1)],t.prototype,"invertedPointer",void 0),l([i.i(n.Property)("After")],t.prototype,"labelPosition",void 0),l([i.i(n.Property)("None")],t.prototype,"labelDisplayMode",void 0),l([i.i(n.Property)("Circle")],t.prototype,"shape",void 0),l([i.i(n.Property)("")],t.prototype,"width",void 0),l([i.i(n.Property)("")],t.prototype,"height",void 0),l([i.i(n.Complex)({fontFamily:null,fontWeight:null},p)],t.prototype,"textStyle",void 0),l([i.i(n.Property)(15)],t.prototype,"shapeWidth",void 0),l([i.i(n.Property)(15)],t.prototype,"shapeHeight",void 0),l([i.i(n.Property)(10)],t.prototype,"shapePadding",void 0),l([i.i(n.Complex)({color:"#000000",width:0},m)],t.prototype,"border",void 0),l([i.i(n.Complex)({color:"#000000",width:0},m)],t.prototype,"shapeBorder",void 0),l([i.i(n.Complex)({},k)],t.prototype,"title",void 0),l([i.i(n.Complex)({size:null,color:o.a.legendTitleFont.color,fontStyle:o.a.legendTitleFont.fontStyle,fontWeight:null,fontFamily:null},p)],t.prototype,"titleStyle",void 0),l([i.i(n.Property)("Bottom")],t.prototype,"position",void 0),l([i.i(n.Property)("Center")],t.prototype,"alignment",void 0),l([i.i(n.Property)("None")],t.prototype,"orientation",void 0),l([i.i(n.Property)({x:0,y:0})],t.prototype,"location",void 0),l([i.i(n.Property)(null)],t.prototype,"fill",void 0),l([i.i(n.Property)(1)],t.prototype,"opacity",void 0),l([i.i(n.Property)("Default")],t.prototype,"mode",void 0),l([i.i(n.Property)(null)],t.prototype,"showLegendPath",void 0),l([i.i(n.Property)(null)],t.prototype,"valuePath",void 0),l([i.i(n.Property)(!1)],t.prototype,"removeDuplicateLegend",void 0),l([i.i(n.Complex)({},z)],t.prototype,"toggleLegendSettings",void 0),t}(n.ChildProperty),B=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),l([i.i(n.Property)(!1)],t.prototype,"visible",void 0),l([i.i(n.Complex)({width:0,color:"transparent"},m)],t.prototype,"border",void 0),l([i.i(n.Property)("black")],t.prototype,"fill",void 0),l([i.i(n.Property)(1)],t.prototype,"opacity",void 0),l([i.i(n.Property)(5)],t.prototype,"rx",void 0),l([i.i(n.Property)(5)],t.prototype,"ry",void 0),l([i.i(n.Complex)({fontWeight:null},p)],t.prototype,"textStyle",void 0),l([i.i(n.Property)("")],t.prototype,"labelPath",void 0),l([i.i(n.Property)("None")],t.prototype,"smartLabelMode",void 0),l([i.i(n.Property)("None")],t.prototype,"intersectionAction",void 0),l([i.i(n.Property)("")],t.prototype,"template",void 0),l([i.i(n.Property)(0)],t.prototype,"animationDuration",void 0),t}(n.ChildProperty),U=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),l([i.i(n.Property)(null)],t.prototype,"fill",void 0),l([i.i(n.Property)([])],t.prototype,"palette",void 0),l([i.i(n.Property)(5)],t.prototype,"circleRadius",void 0),l([i.i(n.Complex)({width:null,color:"#000000"},m)],t.prototype,"border",void 0),l([i.i(n.Property)("")],t.prototype,"dashArray",void 0),l([i.i(n.Property)(1)],t.prototype,"opacity",void 0),l([i.i(n.Property)(null)],t.prototype,"colorValuePath",void 0),l([i.i(n.Property)(null)],t.prototype,"borderColorValuePath",void 0),l([i.i(n.Property)(null)],t.prototype,"borderWidthValuePath",void 0),l([i.i(n.Property)(null)],t.prototype,"valuePath",void 0),l([i.i(n.Collection)([],x)],t.prototype,"colorMapping",void 0),l([i.i(n.Property)(!1)],t.prototype,"autofill",void 0),t}(n.ChildProperty),j=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),l([i.i(n.Complex)({color:"transparent",width:1},m)],t.prototype,"border",void 0),l([i.i(n.Property)(null)],t.prototype,"dashArray",void 0),l([i.i(n.Property)(!1)],t.prototype,"visible",void 0),l([i.i(n.Property)(!1)],t.prototype,"enableDrag",void 0),l([i.i(n.Property)("#FF471A")],t.prototype,"fill",void 0),l([i.i(n.Property)(10)],t.prototype,"height",void 0),l([i.i(n.Property)(10)],t.prototype,"width",void 0),l([i.i(n.Property)(1)],t.prototype,"opacity",void 0),l([i.i(n.Property)(null)],t.prototype,"colorValuePath",void 0),l([i.i(n.Property)(null)],t.prototype,"shapeValuePath",void 0),l([i.i(n.Property)(null)],t.prototype,"imageUrlValuePath",void 0),l([i.i(n.Property)("Balloon")],t.prototype,"shape",void 0),l([i.i(n.Property)("")],t.prototype,"legendText",void 0),l([i.i(n.Property)(new a.s(0,0))],t.prototype,"offset",void 0),l([i.i(n.Property)("")],t.prototype,"imageUrl",void 0),l([i.i(n.Property)(null)],t.prototype,"template",void 0),l([i.i(n.Property)([])],t.prototype,"dataSource",void 0),l([i.i(n.Property)()],t.prototype,"query",void 0),l([i.i(n.Complex)({},y)],t.prototype,"tooltipSettings",void 0),l([i.i(n.Property)(1e3)],t.prototype,"animationDuration",void 0),l([i.i(n.Property)(0)],t.prototype,"animationDelay",void 0),l([i.i(n.Complex)({},C)],t.prototype,"selectionSettings",void 0),l([i.i(n.Complex)({},L)],t.prototype,"highlightSettings",void 0),l([i.i(n.Property)(null)],t.prototype,"latitudeValuePath",void 0),l([i.i(n.Property)(null)],t.prototype,"longitudeValuePath",void 0),l([i.i(n.Collection)([],O)],t.prototype,"initialMarkerSelection",void 0),t}(n.ChildProperty),Z=function(e){function t(t,i,n,o){return e.call(this,t,i,n,o)||this}return r(t,e),t}(j),R=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.isBaseLayer=!1,t}return r(t,e),l([i.i(n.Property)(null)],t.prototype,"shapeData",void 0),l([i.i(n.Property)()],t.prototype,"query",void 0),l([i.i(n.Complex)({},U)],t.prototype,"shapeSettings",void 0),l([i.i(n.Property)([])],t.prototype,"dataSource",void 0),l([i.i(n.Property)("Layer")],t.prototype,"type",void 0),l([i.i(n.Property)("Geographic")],t.prototype,"geometryType",void 0),l([i.i(n.Property)("Aerial")],t.prototype,"bingMapType",void 0),l([i.i(n.Property)("RoadMap")],t.prototype,"staticMapType",void 0),l([i.i(n.Property)("")],t.prototype,"key",void 0),l([i.i(n.Property)("Geometry")],t.prototype,"layerType",void 0),l([i.i(n.Property)("")],t.prototype,"urlTemplate",void 0),l([i.i(n.Property)(!0)],t.prototype,"visible",void 0),l([i.i(n.Property)("name")],t.prototype,"shapeDataPath",void 0),l([i.i(n.Property)("name")],t.prototype,"shapePropertyPath",void 0),l([i.i(n.Property)(0)],t.prototype,"animationDuration",void 0),l([i.i(n.Collection)([],Z)],t.prototype,"markerSettings",void 0),l([i.i(n.Complex)({},S)],t.prototype,"markerClusterSettings",void 0),l([i.i(n.Complex)({},B)],t.prototype,"dataLabelSettings",void 0),l([i.i(n.Collection)([],I)],t.prototype,"bubbleSettings",void 0),l([i.i(n.Collection)([],T)],t.prototype,"navigationLineSettings",void 0),l([i.i(n.Complex)({},w)],t.prototype,"polygonSettings",void 0),l([i.i(n.Complex)({},y)],t.prototype,"tooltipSettings",void 0),l([i.i(n.Complex)({},C)],t.prototype,"selectionSettings",void 0),l([i.i(n.Complex)({},L)],t.prototype,"highlightSettings",void 0),l([i.i(n.Complex)({},z)],t.prototype,"toggleLegendSettings",void 0),l([i.i(n.Collection)([],M)],t.prototype,"initialShapeSelection",void 0),t}(n.ChildProperty),D=function(){function e(e,t,i,n,o,a,r){void 0===i&&(i=256),void 0===n&&(n=256),void 0===o&&(o=0),void 0===a&&(a=0),void 0===r&&(r=null),this.x=e,this.y=t,this.top=o,this.left=a,this.height=i,this.width=n,this.src=r}return e}(),V=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),l([i.i(n.Property)(null)],t.prototype,"background",void 0),l([i.i(n.Complex)({color:"transparent",width:1},m)],t.prototype,"border",void 0),t}(n.ChildProperty)},function(e,i){e.exports=t},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=i(2);i.d(t,"Maps",function(){return n.a}),i.d(t,"load",function(){return n.b}),i.d(t,"loaded",function(){return n.c}),i.d(t,"click",function(){return n.d}),i.d(t,"onclick",function(){return n.e}),i.d(t,"rightClick",function(){return n.f}),i.d(t,"doubleClick",function(){return n.g}),i.d(t,"resize",function(){return n.h}),i.d(t,"tooltipRender",function(){return n.i}),i.d(t,"shapeSelected",function(){return n.j}),i.d(t,"shapeHighlight",function(){return n.k}),i.d(t,"mousemove",function(){return n.l}),i.d(t,"mouseup",function(){return n.m}),i.d(t,"mousedown",function(){return n.n}),i.d(t,"layerRendering",function(){return n.o}),i.d(t,"shapeRendering",function(){return n.p}),i.d(t,"markerRendering",function(){return n.q}),i.d(t,"markerClusterRendering",function(){return n.r}),i.d(t,"markerClick",function(){return n.s}),i.d(t,"markerDragStart",function(){return n.t}),i.d(t,"markerDragEnd",function(){return n.u}),i.d(t,"markerClusterClick",function(){return n.v}),i.d(t,"markerMouseMove",function(){return n.w}),i.d(t,"markerClusterMouseMove",function(){return n.x}),i.d(t,"dataLabelRendering",function(){return n.y}),i.d(t,"bubbleRendering",function(){return n.z}),i.d(t,"bubbleClick",function(){return n.A}),i.d(t,"bubbleMouseMove",function(){return n.B}),i.d(t,"animationComplete",function(){return n.C}),i.d(t,"legendRendering",function(){return n.D}),i.d(t,"annotationRendering",function(){return n.E}),i.d(t,"itemSelection",function(){return n.F}),i.d(t,"panComplete",function(){return n.G}),i.d(t,"zoomComplete",function(){return n.H}),i.d(t,"itemHighlight",function(){return n.I}),i.d(t,"beforePrint",function(){return n.J}),i.d(t,"zoomIn",function(){return n.K}),i.d(t,"zoomOut",function(){return n.L}),i.d(t,"pan",function(){return n.M}),i.d(t,"Annotation",function(){return n.N}),i.d(t,"Arrow",function(){return n.O}),i.d(t,"Font",function(){return n.P}),i.d(t,"ZoomToolbarButtonSettings",function(){return n.Q}),i.d(t,"ZoomToolbarTooltipSettings",function(){return n.R}),i.d(t,"ZoomToolbarSettings",function(){return n.S}),i.d(t,"Border",function(){return n.T}),i.d(t,"CenterPosition",function(){return n.U}),i.d(t,"TooltipSettings",function(){return n.V}),i.d(t,"PolygonTooltipSettings",function(){return n.W}),i.d(t,"Margin",function(){return n.X}),i.d(t,"ConnectorLineSettings",function(){return n.Y}),i.d(t,"MarkerClusterSettings",function(){return n.Z}),i.d(t,"MarkerClusterData",function(){return n._0}),i.d(t,"ColorMappingSettings",function(){return n._1}),i.d(t,"InitialMarkerSelectionSettings",function(){return n._2}),i.d(t,"InitialShapeSelectionSettings",function(){return n._3}),i.d(t,"SelectionSettings",function(){return n._4}),i.d(t,"HighlightSettings",function(){return n._5}),i.d(t,"PolygonSetting",function(){return n._6}),i.d(t,"PolygonSettings",function(){return n._7}),i.d(t,"NavigationLineSettings",function(){return n._8}),i.d(t,"BubbleSettings",function(){return n._9}),i.d(t,"CommonTitleSettings",function(){return n._10}),i.d(t,"SubTitleSettings",function(){return n._11}),i.d(t,"TitleSettings",function(){return n._12}),i.d(t,"ZoomSettings",function(){return n._13}),i.d(t,"ToggleLegendSettings",function(){return n._14}),i.d(t,"LegendSettings",function(){return n._15}),i.d(t,"DataLabelSettings",function(){return n._16}),i.d(t,"ShapeSettings",function(){return n._17}),i.d(t,"MarkerBase",function(){return n._18}),i.d(t,"MarkerSettings",function(){return n._19}),i.d(t,"LayerSettings",function(){return n._20}),i.d(t,"Tile",function(){return n._21}),i.d(t,"MapsAreaSettings",function(){return n._22}),i.d(t,"Size",function(){return n._23}),i.d(t,"stringToNumber",function(){return n._24}),i.d(t,"calculateSize",function(){return n._25}),i.d(t,"createSvg",function(){return n._26}),i.d(t,"getMousePosition",function(){return n._27}),i.d(t,"degreesToRadians",function(){return n._28}),i.d(t,"radiansToDegrees",function(){return n._29}),i.d(t,"convertGeoToPoint",function(){return n._30}),i.d(t,"calculatePolygonPath",function(){return n._31}),i.d(t,"convertTileLatLongToPoint",function(){return n._32}),i.d(t,"xToCoordinate",function(){return n._33}),i.d(t,"yToCoordinate",function(){return n._34}),i.d(t,"aitoff",function(){return n._35}),i.d(t,"roundTo",function(){return n._36}),i.d(t,"sinci",function(){return n._37}),i.d(t,"acos",function(){return n._38}),i.d(t,"calculateBound",function(){return n._39}),i.d(t,"triggerDownload",function(){return n._40}),i.d(t,"Point",function(){return n._41}),i.d(t,"Coordinate",function(){return n._42}),i.d(t,"MinMax",function(){return n._43}),i.d(t,"GeoLocation",function(){return n._44}),i.d(t,"measureText",function(){return n._45}),i.d(t,"measureTextElement",function(){return n._46}),i.d(t,"TextOption",function(){return n._47}),i.d(t,"PathOption",function(){return n._48}),i.d(t,"ColorValue",function(){return n._49}),i.d(t,"RectOption",function(){return n._50}),i.d(t,"CircleOption",function(){return n._51}),i.d(t,"PolygonOption",function(){return n._52}),i.d(t,"PolylineOption",function(){return n._53}),i.d(t,"LineOption",function(){return n._54}),i.d(t,"Line",function(){return n._55}),i.d(t,"MapLocation",function(){return n._56}),i.d(t,"Rect",function(){return n._57}),i.d(t,"PatternOptions",function(){return n._58}),i.d(t,"renderTextElement",function(){return n._59}),i.d(t,"convertElement",function(){return n._60}),i.d(t,"formatValue",function(){return n._61}),i.d(t,"convertStringToValue",function(){return n._62}),i.d(t,"convertElementFromLabel",function(){return n._63}),i.d(t,"drawSymbols",function(){return n._64}),i.d(t,"getValueFromObject",function(){return n._65}),i.d(t,"markerColorChoose",function(){return n._66}),i.d(t,"markerShapeChoose",function(){return n._67}),i.d(t,"clusterTemplate",function(){return n._68}),i.d(t,"markerClusterListHandler",function(){return n._69}),i.d(t,"markerBoundsComparer",function(){return n._70}),i.d(t,"mergeSeparateCluster",function(){return n._71}),i.d(t,"clusterSeparate",function(){return n._72}),i.d(t,"marker",function(){return n._73}),i.d(t,"markerTemplate",function(){return n._74}),i.d(t,"maintainSelection",function(){return n._75}),i.d(t,"maintainToggleSelection",function(){return n._76}),i.d(t,"maintainStyleClass",function(){return n._77}),i.d(t,"appendShape",function(){return n._78}),i.d(t,"drawCircle",function(){return n._79}),i.d(t,"drawRectangle",function(){return n._80}),i.d(t,"drawPath",function(){return n._81}),i.d(t,"drawPolygon",function(){return n._82}),i.d(t,"drawPolyline",function(){return n._83}),i.d(t,"drawLine",function(){return n._84}),i.d(t,"calculateShapes",function(){return n._85}),i.d(t,"drawDiamond",function(){return n._86}),i.d(t,"drawTriangle",function(){return n._87}),i.d(t,"drawCross",function(){return n._88}),i.d(t,"drawHorizontalLine",function(){return n._89}),i.d(t,"drawVerticalLine",function(){return n._90}),i.d(t,"drawStar",function(){return n._91}),i.d(t,"drawBalloon",function(){return n._92}),i.d(t,"drawPattern",function(){return n._93}),i.d(t,"getFieldData",function(){return n._94}),i.d(t,"checkShapeDataFields",function(){return n._95}),i.d(t,"checkPropertyPath",function(){return n._96}),i.d(t,"filter",function(){return n._97}),i.d(t,"getRatioOfBubble",function(){return n._98}),i.d(t,"findMidPointOfPolygon",function(){return n._99}),i.d(t,"isCustomPath",function(){return n._100}),i.d(t,"textTrim",function(){return n._101}),i.d(t,"findPosition",function(){return n._102}),i.d(t,"removeElement",function(){return n._103}),i.d(t,"calculateCenterFromPixel",function(){return n._104}),i.d(t,"getTranslate",function(){return n._105}),i.d(t,"getZoomTranslate",function(){return n._106}),i.d(t,"fixInitialScaleForTile",function(){return n._107}),i.d(t,"getElementByID",function(){return n._108}),i.d(t,"getClientElement",function(){return n._109}),i.d(t,"Internalize",function(){return n._110}),i.d(t,"getTemplateFunction",function(){return n._111}),i.d(t,"getElement",function(){return n._112}),i.d(t,"getShapeData",function(){return n._113}),i.d(t,"triggerShapeEvent",function(){return n._114}),i.d(t,"getElementsByClassName",function(){return n._115}),i.d(t,"querySelector",function(){return n._116}),i.d(t,"getTargetElement",function(){return n._117}),i.d(t,"createStyle",function(){return n._118}),i.d(t,"customizeStyle",function(){return n._119}),i.d(t,"triggerItemSelectionEvent",function(){return n._120}),i.d(t,"removeClass",function(){return n._121}),i.d(t,"elementAnimate",function(){return n._122}),i.d(t,"timeout",function(){return n._123}),i.d(t,"showTooltip",function(){return n._124}),i.d(t,"wordWrap",function(){return n._125}),i.d(t,"createTooltip",function(){return n._126}),i.d(t,"getHexColor",function(){return n._127}),i.d(t,"drawSymbol",function(){return n._128}),i.d(t,"renderLegendShape",function(){return n._129}),i.d(t,"getElementOffset",function(){return n._130}),i.d(t,"changeBorderWidth",function(){return n._131}),i.d(t,"changeNavaigationLineWidth",function(){return n._132}),i.d(t,"targetTouches",function(){return n._133}),i.d(t,"calculateScale",function(){return n._134}),i.d(t,"getDistance",function(){return n._135}),i.d(t,"getTouches",function(){return n._136}),i.d(t,"getTouchCenter",function(){return n._137}),i.d(t,"sum",function(){return n._138}),i.d(t,"zoomAnimate",function(){return n._139}),i.d(t,"animate",function(){return n._140}),i.d(t,"MapAjax",function(){return n._141}),i.d(t,"smoothTranslate",function(){return n._142}),i.d(t,"compareZoomFactor",function(){return n._143}),i.d(t,"calculateZoomLevel",function(){return n._144}),i.d(t,"processResult",function(){return n._145}),i.d(t,"LayerPanel",function(){return n._146}),i.d(t,"Bubble",function(){return n._147});i.d(t,"BingMap",function(){return n._148}),i.d(t,"Marker",function(){return n._149}),i.d(t,"Polygon",function(){return n._150}),i.d(t,"ColorMapping",function(){return n._151}),i.d(t,"DataLabel",function(){return n._152}),i.d(t,"NavigationLine",function(){return n._153}),i.d(t,"Legend",function(){return n._154}),i.d(t,"Highlight",function(){return n._155}),i.d(t,"Selection",function(){return n._156}),i.d(t,"MapsTooltip",function(){return n._157}),i.d(t,"Zoom",function(){return n._158}),i.d(t,"Annotations",function(){return n._159}),i.d(t,"Print",function(){return n._160}),i.d(t,"ImageExport",function(){return n._161}),i.d(t,"PdfExport",function(){return n._162})},function(e,t,i){"use strict";i.d(t,"a",function(){return o});var n=i(1),o=(i.n(n),function(){function e(e){this.maps=e}return e.prototype.getBingMap=function(e,t,o,a,r,l){for(var s="",d=Math.min(this.maps.tileZoomLevel,parseInt(this.maxZoom,10)),p=d;p>0;p--){var h=0,u=1<<p-1;0!=(e.x&u)&&h++,0!=(e.y&u)&&(h+=2),s=s+""+h}if(i.i(n.isNullOrUndefined)(l))return"";var c=l[Math.min(parseInt(s.substr(s.length-1,1),10),l.length)];return r=r.replace("{quadkey}",s).replace("{subdomain}",c),r+="&mkt="+a+"&ur=IN&Key="+t},e.prototype.destroy=function(){this.maps=null,this.subDomains=[]},e}())},function(e,t,i){"use strict";i.d(t,"a",function(){return r});var n=i(2),o=i(1),a=(i.n(o),i(0)),r=function(){function e(e){}return e.prototype.getShapeColorMapping=function(e,t,n){var r=e.colorValuePath?e.colorValuePath:e.valuePath,l=i.i(o.isNullOrUndefined)(r)?t[r]:r.indexOf(".")>-1?i.i(a.Q)(t,r):t[r],s=Number(l),d=this.getColorByValue(e.colorMapping,s,l);return i.i(o.isNullOrUndefined)(d)?n:d},e.prototype.getColorByValue=function(e,t,n){if(isNaN(t)&&i.i(o.isNullOrUndefined)(n))return null;for(var a,r,l="",s=0,d=e;s<d.length;s++){var p=d[s];(!i.i(o.isNullOrUndefined)(p.from)&&!i.i(o.isNullOrUndefined)(p.to)&&t>=p.from&&t<=p.to||p.value===n)&&("[object Array]"===Object.prototype.toString.call(p.color)?i.i(o.isNullOrUndefined)(p.value)?(r=this.getColor(p,t),l=r):l=p.color[0]:l=p.color),(t>=p.from&&t<=p.to||p.value===n)&&!i.i(o.isNullOrUndefined)(p.minOpacity)&&!i.i(o.isNullOrUndefined)(p.maxOpacity)&&l&&(a=this.deSaturationColor(p,l,t,n)),(""===l||i.i(o.isNullOrUndefined)(l))&&i.i(o.isNullOrUndefined)(p.from)&&i.i(o.isNullOrUndefined)(p.to)&&i.i(o.isNullOrUndefined)(p.minOpacity)&&i.i(o.isNullOrUndefined)(p.maxOpacity)&&i.i(o.isNullOrUndefined)(p.value)&&(l="[object Array]"===Object.prototype.toString.call(p.color)?p.color[0]:p.color)}return{fill:l||(e.length?null:n),opacity:a}},e.prototype.deSaturationColor=function(e,t,i,n){var o=1;if(i>=e.from&&i<=e.to||e.value===n){o=(isNaN(i)?e.from/(e.to-e.from):(i-e.from)/(e.to-e.from))*(e.maxOpacity-e.minOpacity)+e.minOpacity}return o},e.prototype.rgbToHex=function(e,t,i){return"#"+this.componentToHex(e)+this.componentToHex(t)+this.componentToHex(i)},e.prototype.componentToHex=function(e){var t=e.toString(16);return 1===t.length?"0"+t:t},e.prototype.getColor=function(e,t){var i,n="";return Number(t)===e.from?n=e.color[0]:Number(t)===e.to?n=e.color[e.color.length-1]:(i=this.getGradientColor(Number(t),e),n=this.rgbToHex(i.r,i.g,i.b)),n},e.prototype.getGradientColor=function(e,t){var i,n=t.from,o=t.to,a=0,r=o-n;a=(e-n)/r;var l,s;if(t.color.length<=2)l="#"===t.color[0].charAt(0)?t.color[0]:this._colorNameToHex(t.color[0]),s="#"===t.color[t.color.length-1].charAt(0)?t.color[t.color.length-1]:this._colorNameToHex(t.color[t.color.length-1]);else{l="#"===t.color[0].charAt(0)?t.color[0]:this._colorNameToHex(t.color[0]),s="#"===t.color[t.color.length-1].charAt(0)?t.color[t.color.length-1]:this._colorNameToHex(t.color[t.color.length-1]);for(var d=r/(t.color.length-1),p=void 0,h=void 0,u=t.color.length-1,c=[],m={},g=1;g<u;g++)h=g*d,p=n+h,m={b:p,color:t.color[g]},c.push(m);for(var y=0;y<c.length;y++)n<=e&&e<=c[y].b&&0===y?(i="#"===c[y].color.charAt(0)?c[y].color:this._colorNameToHex(c[y].color),s=i,a=e<c[y].b?1-Math.abs((e-c[y].b)/d):(e-c[y].b)/d):c[y].b<=e&&e<=o&&y===c.length-1&&(i="#"===c[y].color.charAt(0)?c[y].color:this._colorNameToHex(c[y].color),l=i,a=e<c[y].b?1-Math.abs((e-c[y].b)/d):(e-c[y].b)/d),y!==c.length-1&&y<c.length&&c[y].b<=e&&e<=c[y+1].b&&(i="#"===c[y].color.charAt(0)?c[y].color:this._colorNameToHex(c[y].color),l=i,s="#"===c[y+1].color.charAt(0)?c[y+1].color:this._colorNameToHex(c[y+1].color),a=Math.abs(e-c[y+1].b)/d)}return this.getPercentageColor(a,l,s)},e.prototype.getPercentageColor=function(e,t,i){var o=i.split("#")[1],a=t.split("#")[1],r=this.getPercentage(e,parseInt(a.substr(0,2),16),parseInt(o.substr(0,2),16)),l=this.getPercentage(e,parseInt(a.substr(2,2),16),parseInt(o.substr(2,2),16)),s=this.getPercentage(e,parseInt(a.substr(4,2),16),parseInt(o.substr(4,2),16));return new n._49(r,l,s)},e.prototype.getPercentage=function(e,t,i){var n=i-t;return Math.round(t+n*e)},e.prototype._colorNameToHex=function(e){var t={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4","indianred ":"#cd5c5c","indigo ":"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgrey:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370d8",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",orchid:"#da70d6",papayawhip:"#ffefd5",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#d87093",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};return"[object Array]"===Object.prototype.toString.call(e)?e:void 0!==t[e.toLowerCase()]?t[e.toLowerCase()]:e},e}()},function(e,t,i){"use strict";i.d(t,"a",function(){return p});var n=i(1),o=(i.n(n),i(4)),a=i(0),r=i(5),l=i(8),s=i(9),d=i(2),p=function(){function e(e){this.isMapCoordinates=!0,this.horizontalPan=!1,this.horizontalPanXCount=0,this.mapObject=e,this.ajaxModule=new n.Fetch,this.ajaxResponse=[]}return e.prototype.measureLayerPanel=function(){var e=this,t=this.mapObject.layersCollection,o=this.mapObject.mapAreaRect,r=i.i(a._33)(this.mapObject.element.id+"_Secondary_Element");if(this.mapObject.isTileMap&&r){this.tileSvgObject=this.mapObject.renderer.createSvg({id:this.mapObject.element.id+"_Tile_SVG",width:o.width,height:o.height});var l=i.i(n.createElement)("div",{id:this.mapObject.element.id+"_Tile_SVG_Parent"});l.style.cssText="position: absolute; height: "+o.height+"px; width: "+o.width+"px;",l.appendChild(this.tileSvgObject),r.appendChild(l)}if(this.layerGroup=this.mapObject.renderer.createGroup({id:this.mapObject.element.id+"_Layer_Collections","clip-path":"url(#"+this.mapObject.element.id+"_MapArea_ClipRect)"}),"GoogleStaticMap"===this.mapObject.layers[this.mapObject.baseLayerIndex].layerType){this.clipRectElement=this.mapObject.renderer.drawClipPath(new a.B(this.mapObject.element.id+"_MapArea_ClipRect","transparent",{width:1,color:"Gray"},1,{x:(o.width-640)/2,y:0,width:640,height:o.height}))}else this.clipRectElement=this.mapObject.renderer.drawClipPath(new a.B(this.mapObject.element.id+"_MapArea_ClipRect","transparent",{width:1,color:"Gray"},1,{x:this.mapObject.isTileMap?0:o.x,y:this.mapObject.isTileMap?0:o.y,width:o.width,height:o.height}));this.layerGroup.appendChild(this.clipRectElement),this.mapObject.baseMapBounds=null,this.mapObject.baseMapRectBounds=null,this.mapObject.baseSize=null,Array.prototype.forEach.call(t,function(t,i){e.currentLayer=t,e.processLayers(t,i)}),i.i(n.isNullOrUndefined)(this.mapObject.legendModule)||"Float"!==this.mapObject.legendSettings.position||(this.mapObject.isTileMap?this.layerGroup.appendChild(this.mapObject.legendModule.legendGroup):this.mapObject.svgObject.appendChild(this.mapObject.legendModule.legendGroup))},e.prototype.renderTileLayer=function(e,t,o,r){e.currentFactor=e.calculateFactor(t),e.mapObject.defaultState=!(1!==e.mapObject.zoomSettings.zoomFactor&&!i.i(n.isNullOrUndefined)(e.mapObject.tileZoomLevel)&&1!==e.mapObject.tileZoomLevel),i.i(n.isNullOrUndefined)(e.mapObject.previousCenterLatitude)&&i.i(n.isNullOrUndefined)(e.mapObject.previousCenterLongitude)&&!e.mapObject.isZoomByPosition?(e.mapObject.previousCenterLatitude=e.mapObject.centerPosition.latitude,e.mapObject.previousCenterLongitude=e.mapObject.centerPosition.longitude):e.mapObject.previousCenterLatitude!==e.mapObject.centerPosition.latitude&&e.mapObject.previousCenterLongitude!==e.mapObject.centerPosition.longitude||e.mapObject.isZoomByPosition?(e.mapObject.centerPositionChanged=!0,e.mapObject.previousCenterLatitude=e.mapObject.centerPosition.latitude,e.mapObject.previousCenterLongitude=e.mapObject.centerPosition.longitude):e.mapObject.centerPositionChanged=!1;var l=new a.s(e.mapObject.centerPosition.longitude,e.mapObject.centerPosition.latitude),s=l;this.mapObject.isTileMap&&e.mapObject.markerModule&&e.mapObject.zoomSettings.enable&&(e.mapObject.markerModule.calculateZoomCenterPositionAndFactor(this.mapObject.layersCollection),i.i(n.isNullOrUndefined)(this.mapObject.markerCenterLatitude)||i.i(n.isNullOrUndefined)(this.mapObject.markerCenterLongitude)||e.mapObject.isZoomByPosition||(s=new a.s(e.mapObject.markerCenterLongitude,e.mapObject.markerCenterLatitude))),l=!e.mapObject.zoomSettings.shouldZoomInitially&&e.mapObject.centerPosition.longitude&&e.mapObject.centerPosition.latitude&&!e.mapObject.zoomPersistence&&e.mapObject.defaultState?new a.s(e.mapObject.centerPosition.longitude,e.mapObject.centerPosition.latitude):e.mapObject.zoomSettings.shouldZoomInitially&&e.mapObject.markerZoomedState&&!e.mapObject.zoomPersistence&&!i.i(n.isNullOrUndefined)(e.mapObject.markerZoomCenterPoint)?new a.s(e.mapObject.markerZoomCenterPoint.longitude,e.mapObject.markerZoomCenterPoint.latitude):{x:null,y:null};var d=e.mapObject.zoomSettings.shouldZoomInitially&&!e.mapObject.isZoomByPosition?i.i(n.isNullOrUndefined)(e.mapObject.markerZoomFactor)?1:e.mapObject.markerZoomFactor:e.mapObject.zoomSettings.zoomFactor;if(d=e.mapObject.enablePersistence?i.i(n.isNullOrUndefined)(e.mapObject.mapScaleValue)?i.i(n.isNullOrUndefined)(e.mapObject.markerZoomFactor)?e.mapObject.zoomSettings.zoomFactor:e.mapObject.markerZoomFactor:e.mapObject.mapScaleValue:d,d=e.mapObject.zoomSettings.enable?d:e.mapObject.zoomSettings.zoomFactor,d=d>0?d:1,e.mapObject.defaultState=1===d,!e.mapObject.markerZoomedState&&e.mapObject.zoomSettings.shouldZoomInitially&&1===e.mapObject.zoomSettings.zoomFactor&&(e.mapObject.defaultState=!0),i.i(n.isNullOrUndefined)(e.mapObject.tileZoomLevel))e.mapObject.tileZoomLevel=d,e.mapObject.previousZoomFactor=d;else if(this.mapObject.isReset&&1===e.mapObject.tileZoomLevel&&!e.mapObject.zoomSettings.shouldZoomInitially){var p=e.mapObject.tileZoomLevel;e.mapObject.tileZoomLevel=p}else 1!==e.mapObject.zoomSettings.zoomFactor||e.mapObject.zoomSettings.shouldZoomInitially?(e.mapObject.previousZoomFactor=e.mapObject.tileZoomLevel,e.mapObject.tileZoomLevel=e.mapObject.defaultState&&e.mapObject.zoomSettings.enable?e.mapObject.tileZoomLevel:e.mapObject.zoomSettings.shouldZoomInitially||e.mapObject.centerPositionChanged?d:e.mapObject.previousZoomFactor!==e.mapObject.zoomSettings.zoomFactor?e.mapObject.zoomSettings.zoomFactor:e.mapObject.tileZoomLevel,e.mapObject.tileZoomLevel=1===d&&0===e.mapObject.zoomSettings.zoomFactor?d:e.mapObject.tileZoomLevel,!i.i(n.isNullOrUndefined)(e.mapObject.tileTranslatePoint)&&(e.mapObject.markerZoomFactor!==e.mapObject.mapScaleValue||i.i(n.isNullOrUndefined)(e.mapObject.markerZoomFactor)&&i.i(n.isNullOrUndefined)(e.mapObject.mapScaleValue))&&(e.mapObject.zoomSettings.zoomFactor<=1||e.mapObject.previousZoomFactor!==e.mapObject.zoomSettings.zoomFactor)&&(e.mapObject.tileTranslatePoint.x=0,e.mapObject.tileTranslatePoint.y=0)):e.mapObject.defaultState&&(e.mapObject.previousZoomFactor=e.mapObject.tileZoomLevel,e.mapObject.tileZoomLevel=d,i.i(n.isNullOrUndefined)(e.mapObject.tileTranslatePoint)||(e.mapObject.tileTranslatePoint.x=0,e.mapObject.tileTranslatePoint.y=0));if(d<=1&&!i.i(n.isNullOrUndefined)(e.mapObject.height)&&!e.mapObject.zoomSettings.shouldZoomInitially&&e.mapObject.tileZoomLevel===e.mapObject.tileZoomScale&&this.mapObject.initialCheck&&i.i(a._32)(this.mapObject),i.i(n.isNullOrUndefined)(e.mapObject.centerLatOfGivenLocation)||i.i(n.isNullOrUndefined)(e.mapObject.centerLongOfGivenLocation)||!e.mapObject.zoomNotApplied||(i.i(n.isNullOrUndefined)(s)||(s.y=e.mapObject.centerLatOfGivenLocation,s.x=e.mapObject.centerLongOfGivenLocation),e.mapObject.tileZoomLevel=e.mapObject.mapScaleValue=e.mapObject.scaleOfGivenLocation),e.mapObject.tileTranslatePoint=e.panTileMap(e.mapObject.availableSize.width,e.mapObject.availableSize.height,s),this.mapObject.zoomSettings.resetToInitial&&this.mapObject.initialCheck&&!i.i(n.isNullOrUndefined)(e.mapObject.height)&&this.mapObject.availableSize.height>512){this.mapObject.applyZoomReset=!0,this.mapObject.initialZoomLevel=Math.floor(this.mapObject.availableSize.height/512);var h="GoogleStaticMap"!==this.mapObject.layers[this.mapObject.baseLayerIndex].layerType?20:0,u=256*Math.pow(2,this.mapObject.initialZoomLevel);i.i(n.isNullOrUndefined)(this.mapObject.initialTileTranslate)||(this.mapObject.initialTileTranslate.x=this.mapObject.availableSize.width/2-u/2,this.mapObject.initialTileTranslate.y=this.mapObject.availableSize.height/2-u/2+h)}if(e.generateTiles(e.mapObject.tileZoomLevel,e.mapObject.tileTranslatePoint,null,r),i.i(n.isNullOrUndefined)(e.mapObject.previousZoomFactor)||e.mapObject.previousZoomFactor===e.mapObject.zoomSettings.zoomFactor||(e.mapObject.previousZoomFactor=e.mapObject.zoomSettings.zoomFactor),e.mapObject.polygonModule){var c=e.mapObject.polygonModule.polygonRender(this.mapObject,o,e.mapObject.tileZoomLevel);i.i(n.isNullOrUndefined)(c)||e.layerObject.appendChild(c)}if(e.mapObject.navigationLineModule){var m=e.mapObject.navigationLineModule.renderNavigation(e.currentLayer,e.mapObject.tileZoomLevel,o);i.i(n.isNullOrUndefined)(m)||e.layerObject.appendChild(m)}e.mapObject.markerModule&&e.mapObject.markerModule.markerRender(this.mapObject,e.layerObject,o,e.mapObject.tileZoomLevel,null),e.translateLayerElements(e.layerObject),e.layerGroup.appendChild(e.layerObject)},e.prototype.processLayers=function(e,t){var o=this;if(this.layerObject=this.mapObject.renderer.createGroup({id:this.mapObject.element.id+"_LayerIndex_"+t}),!this.mapObject.enablePersistence){var r=this.mapObject.getModuleName()+this.mapObject.element.id;if(-1===navigator.userAgent.indexOf("Edge")){var s=void 0;try{s=window.localStorage}catch(e){s=null}!i.i(n.isNullOrUndefined)(s)&&window.localStorage.getItem(r)&&window.localStorage.removeItem(r)}}var p={cancel:!1,name:d.o,index:t,layer:e,maps:this.mapObject,visible:e.visible};this.mapObject.trigger("layerRendering",p,function(r){if(!p.cancel&&p.visible)if("OSM"===e.layerType&&(e.urlTemplate="https://a.tile.openstreetmap.org/level/tileX/tileY.png"),"Google"===e.layerType&&(e.urlTemplate="https://mt1.google.com/vt/lyrs=m@129&hl=en&x=tileX&y=tileY&z=level"),"Geometry"!==e.layerType||i.i(n.isNullOrUndefined)(e.shapeData)&&!i.i(n.isNullOrUndefined)(e.urlTemplate)&&""!==e.urlTemplate){if("Bing"!==e.layerType||o.bing)if(!i.i(n.isNullOrUndefined)(e.urlTemplate)&&e.urlTemplate.indexOf("quadkey")>-1){var s=new l.a(o.mapObject);o.bingMapCalculation(e,t,o,s)}else o.renderTileLayer(o,e,t);else if(e.key&&e.key.length>1){var d=o,h=new l.a(o.mapObject),u="AerialWithLabel"===e.bingMapType?"AerialWithLabelsOnDemand":e.bingMapType,c="https://dev.virtualearth.net/REST/V1/Imagery/Metadata/"+u,m=new n.Fetch({url:c+"?output=json&include=ImageryProviders&urischeme=https&key="+e.key});m.onSuccess=function(i){var n=i.resourceSets[0].resources[0],a=n.imageUrl,r=n.imageUrlSubdomains,l=n.zoomMax;null!==a&&void 0!==a&&a!==h.imageUrl&&(h.imageUrl=a),null!==r&&void 0!==r&&r!==h.subDomains&&(h.subDomains=r),null!==l&&void 0!==l&&l!==h.maxZoom&&(h.maxZoom=l),d.mapObject.bingMap=h,d.renderTileLayer(d,e,t,h),o.mapObject.arrangeTemplate(),o.mapObject.zoomModule&&o.mapObject.previousScale!==o.mapObject.scale&&o.mapObject.zoomModule.applyTransform(o.mapObject,!0)},m.send()}}else if(!(i.i(n.isNullOrUndefined)(e.shapeData)||i.i(n.isNullOrUndefined)(e.shapeData.geometries)&&i.i(n.isNullOrUndefined)(e.shapeData.features))){var g=!i.i(n.isNullOrUndefined)(e.shapeData.geometries)&&e.shapeData.geometries.length>0?e.shapeData.geometries:e.shapeData.features;e.layerData=[];var y=e.shapeData.bbox;!i.i(n.isNullOrUndefined)(y)&&e.isBaseLayer?o.mapObject.baseMapBounds=new a.v({min:y[0][1],max:y[1][1]},{min:y[0][0],max:y[1][0]}):i.i(n.isNullOrUndefined)(o.mapObject.baseMapBounds)&&!i.i(a._25)(g)&&o.calculateRectBounds(g),o.calculatePathCollection(t,g)}}),this.mapObject.isTileMap?this.tileSvgObject&&(this.tileSvgObject.appendChild(this.layerGroup),this.mapObject.baseMapBounds=null):this.mapObject.svgObject.appendChild(this.layerGroup)},e.prototype.bingMapCalculation=function(e,t,i,n){n.imageUrl=e.urlTemplate,n.subDomains=["t0","t1","t2","t3"],n.maxZoom="21",i.mapObject.bingMap=n,i.renderTileLayer(i,e,t,n),this.mapObject.arrangeTemplate(),this.mapObject.zoomModule&&this.mapObject.previousScale!==this.mapObject.scale&&this.mapObject.zoomModule.applyTransform(this.mapObject,!0)},e.prototype.bubbleCalculation=function(e,t){if(null!=e.dataSource&&null!=e)for(var o=e.dataSource,r=0;r<o.length;r++){var l=i.i(n.isNullOrUndefined)(e.valuePath)?parseFloat(e.dataSource[r][e.valuePath]):e.valuePath.indexOf(".")>-1?Number(i.i(a.Q)(e.dataSource[r],e.valuePath)):parseFloat(e.dataSource[r][e.valuePath]);0!==r?l>t.max?t.max=l:l<t.min&&(t.min=l):t.max=t.min=l}},e.prototype.calculatePathCollection=function(e,t){var r=this;this.groupElements=[],i.i(a._25)(t)||(this.currentFactor=this.calculateFactor(this.currentLayer)),this.rectBounds=null;var l=this.currentLayer.shapeSettings;Array.prototype.forEach.call(t,function(e){if(!i.i(n.isNullOrUndefined)(e.geometry)||!i.i(n.isNullOrUndefined)(e.coordinates)){var t=i.i(n.isNullOrUndefined)(e.geometry)?e.type:e.geometry.type,o=i.i(n.isNullOrUndefined)(e.geometry)?e.coordinates:e.geometry.coordinates,a=e.geometry,l=e.properties;r.generatePoints(t,o,a,l)}}),this.currentLayer.rectBounds=this.rectBounds,i.i(n.isNullOrUndefined)(this.mapObject.baseMapRectBounds)&&this.currentLayer.isBaseLayer&&(this.mapObject.baseMapRectBounds=this.rectBounds);var s=l.palette.length>1?l.palette:i.i(o.b)(this.mapObject.theme),p=i.i(n.createElement)("div",{id:this.mapObject.element.id+"_LayerIndex_"+e+"_Label_Template_Group",className:this.mapObject.element.id+"_template"});if(p.style.cssText="pointer-events: none; overflow: hidden; position: absolute;top:"+this.mapObject.mapAreaRect.y+"px;left:"+this.mapObject.mapAreaRect.x+"px;height:"+this.mapObject.mapAreaRect.height+"px;width:"+this.mapObject.mapAreaRect.width+"px;",0!==this.currentLayer.layerData.length)for(var h=this,u=0;u<this.currentLayer.layerData.length;u++)!function(o){var u,c,m,g=void 0,y={color:l.border.color,width:l.border.width,opacity:l.border.opacity},f=h.currentLayer.layerData[o],b="",v=l.autofill?s[o%s.length]:l.fill||h.mapObject.themeStyle.shapeFill;null===l.colorValuePath||i.i(n.isNullOrUndefined)(f.property)||(g=i.i(a._20)(h.currentLayer.dataSource,f.property,h.currentLayer.shapeDataPath,h.currentLayer.shapePropertyPath,h.currentLayer),null!==g&&0===l.colorMapping.length?v=h.currentLayer.shapeSettings.colorValuePath.indexOf(".")>-1?i.i(a.Q)(h.currentLayer.dataSource[g],l.colorValuePath):h.currentLayer.dataSource[g][l.colorValuePath]:f.property[l.colorValuePath]&&0===h.currentLayer.dataSource.length&&0===l.colorMapping.length&&(v=h.currentLayer.shapeSettings.colorValuePath.indexOf(".")>-1?i.i(a.Q)(f.property,l.colorValuePath):f.property[l.colorValuePath]),v=i.i(n.isNullOrUndefined)(v)?l.fill||h.mapObject.themeStyle.shapeFill:v);var S=h.mapObject.element.id+"_LayerIndex_"+e+"_shapeIndex_"+o+"_dataIndex_"+g,_=h.getShapeColorMapping(h.currentLayer,f.property,v);v="[object Object]"!==Object.prototype.toString.call(_)||i.i(n.isNullOrUndefined)(_.fill)?v:_.fill,(h.currentLayer.shapeSettings.borderColorValuePath||h.currentLayer.shapeSettings.borderWidthValuePath)&&null!==(g=i.i(a._20)(h.currentLayer.dataSource,f.property,h.currentLayer.shapeDataPath,h.currentLayer.shapePropertyPath,h.currentLayer))&&(h.currentLayer.dataSource[g][l.borderColorValuePath]&&(y.color=h.currentLayer.dataSource[g][l.borderColorValuePath]),h.currentLayer.dataSource[g][l.borderWidthValuePath]&&(y.width=h.currentLayer.dataSource[g][l.borderWidthValuePath]));var x="[object Object]"!==Object.prototype.toString.call(_)||i.i(n.isNullOrUndefined)(_.opacity)?l.opacity:_.opacity,O={cancel:!1,name:d.p,index:o,data:h.currentLayer.dataSource?h.currentLayer.dataSource[g]:null,maps:h.mapObject,shape:l,fill:v,border:{width:y.width,color:y.color,opacity:y.opacity}},M=function(d){var h=i.i(n.isNullOrUndefined)(f._isMultiPolygon)?i.i(n.isNullOrUndefined)(f.type)?f[0].type:f.type:"MultiPolygon";if(h="Polygon"===h||"MultiPolygon"===h?"Polygon":h,d.cancel?(d.fill=v,d.border.color=l.border.color,d.border.width=l.border.width,r.mapObject.layers[e].shapeSettings.border=l.border):(d.fill="#A6A6A6"===d.fill?d.shape.fill||r.mapObject.themeStyle.shapeFill:d.fill,d.border.color="#000000"===d.border.color?d.shape.border.color:d.border.color,d.border.width=0===d.border.width?d.shape.border.width:d.border.width,i.i(n.isNullOrUndefined)(l.borderColorValuePath)&&(r.mapObject.layers[e].shapeSettings.border.color=d.border.color),i.i(n.isNullOrUndefined)(l.borderWidthValuePath)&&(r.mapObject.layers[e].shapeSettings.border.width=d.border.width)),d.border.opacity=i.i(n.isNullOrUndefined)(d.border.opacity)?x:d.border.opacity,r.groupElements.length<1)m=r.mapObject.renderer.createGroup({id:r.mapObject.element.id+"_LayerIndex_"+e+"_"+h+"_Group",transform:""}),r.groupElements.push(m);else for(var g=0;g<r.groupElements.length;g++){var y=r.groupElements[g];if(y.id.indexOf(h)>-1){m=y;break}if(g>=r.groupElements.length-1){m=r.mapObject.renderer.createGroup({id:r.mapObject.element.id+"_LayerIndex_"+e+"_"+h+"_Group"}),r.groupElements.push(m);break}}var _;switch(h){case"Polygon":f._isMultiPolygon?b=r.generateMultiPolygonPath(f):(b+="M"+f[0].point.x+" "+f[0].point.y,f.map(function(e){b+=" L "+e.point.x+" "+e.point.y})),b+=" z ",b.length>3&&(u=new a.z(S,d.fill,d.border.width,d.border.color,x,d.border.opacity,l.dashArray,b),_=r.mapObject.renderer.drawPath(u));break;case"LineString":f.map(function(e,t){b+=0===t?"M "+e.point.x+" "+e.point.y:"L"+e.point.x+" , "+e.point.y+" "}),b.length>3&&(u=new a.z(S,"transparent",i.i(n.isNullOrUndefined)(d.border.width)?1:d.border.width,i.i(n.isNullOrUndefined)(d.fill)?d.border.color:d.fill,x,d.border.opacity,l.dashArray,b),_=r.mapObject.renderer.drawPath(u));break;case"MultiLineString":f.map(function(e){e.map(function(e,t){b+=0===t?"M "+e.point.x+" "+e.point.y:"L"+e.point.x+" , "+e.point.y+" "})}),b.length>3&&(u=new a.z(S,"transparent",i.i(n.isNullOrUndefined)(d.border.width)?1:d.border.width,i.i(n.isNullOrUndefined)(d.fill)?d.border.color:d.fill,x,d.border.opacity,l.dashArray,b),_=r.mapObject.renderer.drawPath(u));break;case"Point":var O=f.point,M="SubLayer"!==r.mapObject.layers[e].type?l.circleRadius:l.circleRadius/(r.mapObject.isTileMap?r.mapObject.scale:r.currentFactor);c=new a.C(S,d.fill,d.border,x,O.x,O.y,M,l.dashArray),_=r.mapObject.renderer.drawCircle(c);break;case"MultiPoint":f.map(function(t,i){var n=t.point,o="SubLayer"!==r.mapObject.layers[e].type?l.circleRadius:l.circleRadius/(r.mapObject.isTileMap?r.mapObject.scale:r.currentFactor);c=new a.C(S+"_multiLine_"+i,d.fill,d.border,x,n.x,n.y,o,l.dashArray),_=r.mapObject.renderer.drawCircle(c),r.pathAttributeCalculate(m,_,h,f)});break;case"Path":b=f.point,u=new a.z(S,d.fill,d.border.width,d.border.color,x,d.border.opacity,l.dashArray,b),_=r.mapObject.renderer.drawPath(u)}i.i(n.isNullOrUndefined)(_)||"MultiPoint"===h||r.pathAttributeCalculate(m,_,h,f),o===r.currentLayer.layerData.length-1&&r.layerFeatures(e,s,t,p)};M.bind(h),h.mapObject.trigger("shapeRendering",O,M)}(u);else this.layerFeatures(e,s,t,p)},e.prototype.pathAttributeCalculate=function(e,t,o,r){for(var l,s="[object Array]"===Object.prototype.toString.call(this.currentLayer.shapePropertyPath)?this.currentLayer.shapePropertyPath:[this.currentLayer.shapePropertyPath],d=0;d<s.length;d++)if(!i.i(n.isNullOrUndefined)(r.property)){l=s[d];break}t.setAttribute("aria-label",i.i(n.isNullOrUndefined)(r.property)?"":r.property[l]),this.currentLayer.selectionSettings.enable||this.currentLayer.highlightSettings.enable?(t.tabIndex=this.mapObject.tabIndex,t.setAttribute("role","button"),t.style.cursor=this.currentLayer.highlightSettings.enable&&!this.currentLayer.selectionSettings.enable?"default":"pointer"):t.setAttribute("role","region"),"LineString"!==o&&"MultiLineString"!==o||(t.style.cssText="outline:none"),i.i(a._0)(this.mapObject.selectedElementId,this.mapObject.shapeSelectionClass,t,"ShapeselectionMapStyle"),this.mapObject.legendSettings.toggleLegendSettings.enable&&"Layers"===this.mapObject.legendSettings.type&&i.i(a._1)(this.mapObject.toggledElementId,t,this.mapObject.legendSettings.toggleLegendSettings.applyShapeSettings?this.currentLayer.shapeSettings:this.mapObject.legendSettings.toggleLegendSettings),e.appendChild(t)},e.prototype.layerFeatures=function(e,t,i,n){var o,a=this;if(this.mapObject.polygonModule&&this.groupElements.push(this.mapObject.polygonModule.polygonRender(this.mapObject,e,this.mapObject.isTileMap?Math.floor(this.currentFactor):this.currentFactor)),this.currentLayer.bubbleSettings.length&&this.mapObject.bubbleModule)for(var r,l=this.currentLayer.bubbleSettings.length,s=this,d=0;d<l;d++)!function(i){r=s.currentLayer.bubbleSettings[i],o=s.mapObject.renderer.createGroup({id:s.mapObject.element.id+"_LayerIndex_"+e+"_bubble_Group_"+i});var n={min:0,max:0};s.bubbleCalculation(r,n);var l=r.dataSource;s.mapObject.bubbleModule.bubbleCollection=[],l.map(function(l,s){a.renderBubble(a.currentLayer,l,t[s%t.length],n,i,s,o,e,r)}),s.groupElements.push(o)}(d);this.mapObject.markerModule&&!this.mapObject.isTileMap&&this.mapObject.zoomSettings.enable&&this.mapObject.markerModule.calculateZoomCenterPositionAndFactor(this.mapObject.layersCollection);var p=this.mapObject.renderer.createGroup({id:this.mapObject.element.id+"_LayerIndex_"+e+"_dataLableIndex_Group"});if(p.style.pointerEvents="none",this.mapObject.dataLabelModule&&this.currentLayer.dataLabelSettings.visible){var h=[];Array.prototype.forEach.call(i,function(t,i){a.renderLabel(a.currentLayer,e,t,p,i,n,h)}),this.groupElements.push(p)}this.mapObject.navigationLineModule&&this.groupElements.push(this.mapObject.navigationLineModule.renderNavigation(this.currentLayer,this.currentFactor,e)),this.groupElements.map(function(e){a.layerObject.appendChild(e)}),this.mapObject.markerModule&&this.mapObject.markerModule.markerRender(this.mapObject,this.layerObject,e,this.mapObject.isTileMap?Math.floor(this.currentFactor):this.currentFactor,null),this.translateLayerElements(this.layerObject),this.layerGroup.appendChild(this.layerObject)},e.prototype.renderLabel=function(e,t,i,n,o,a,r){this.mapObject.dataLabelModule.renderLabel(e,t,i,e.layerData,n,a,o,r)},e.prototype.generateMultiPolygonPath=function(e){for(var t,i="",n=0;n<e.length;n++)i+="M"+e[n][0].point.x+" "+e[n][0].point.y,t=e[n],t.map(function(e){i+=" L "+e.point.x+" "+e.point.y});return i},e.prototype.renderBubble=function(e,t,o,a,r,l,s,d,p){if(i.i(n.isNullOrUndefined)(this.mapObject.bubbleModule)||!p.visible)return null;o=p.fill?p.fill:o,this.mapObject.bubbleModule.id=this.mapObject.element.id+"_LayerIndex_"+d+"_BubbleIndex_"+r+"_dataIndex_"+l,this.mapObject.bubbleModule.renderBubble(p,t,o,a,r,l,d,e,s,this.mapObject.bubbleModule.id)},e.prototype.getShapeColorMapping=function(e,t,o){if(o=o||e.shapeSettings.fill,0===e.shapeSettings.colorMapping.length&&i.i(n.isNullOrUndefined)(e.dataSource))return o;var r=i.i(a._20)(e.dataSource,t,e.shapeDataPath,e.shapePropertyPath,e),l=new s.a(this.mapObject);return i.i(n.isNullOrUndefined)(e.dataSource[r])?o:l.getShapeColorMapping(e.shapeSettings,e.dataSource[r],o)},e.prototype.generatePoints=function(e,t,o,r){var l,s,d=this,p=[];switch(e.toLowerCase()){case"polygon":p=this.calculatePolygonBox(t[0]),p.length>0&&(p.property=r,p.type=e,p._isMultiPolygon=!1,this.currentLayer.layerData.push(p));break;case"multipolygon":for(var h=[],u=0;u<t.length;u++)for(var c=0;c<t[u].length;c++)p=this.calculatePolygonBox(t[u][c]),p.length>0&&h.push(p);h.property=r,h.type=e,h._isMultiPolygon=!0,this.currentLayer.layerData.push(h);break;case"linestring":var m=i.i(n.isNullOrUndefined)(this.currentLayer.shapeSettings.border.width)?1:"string"==typeof this.currentLayer.shapeSettings.border.width?parseInt(this.currentLayer.shapeSettings.border.width,10):this.currentLayer.shapeSettings.border.width;t.map(function(e){l=e[1],s=e[0];var t=i.i(a.h)(l,s,d.currentFactor,d.currentLayer,d.mapObject);d.calculateBox(t,m),p.push({point:t,lat:l,lng:s})}),p.property=r,p.type=e,this.currentLayer.layerData.push(p);break;case"multilinestring":var g=i.i(n.isNullOrUndefined)(this.currentLayer.shapeSettings.border.width)?1:"string"==typeof this.currentLayer.shapeSettings.border.width?parseInt(this.currentLayer.shapeSettings.border.width,10):this.currentLayer.shapeSettings.border.width,y=[];t.map(function(e){p=[],e.map(function(e){l=e[1],s=e[0];var t=i.i(a.h)(l,s,d.currentFactor,d.currentLayer,d.mapObject);d.calculateBox(t,g),p.push({point:t,lat:l,lng:s})}),y.push(p)}),y.property=r,y.type=e,this.currentLayer.layerData.push(y);break;case"point":var f=(i.i(n.isNullOrUndefined)(this.currentLayer.shapeSettings.border.width)?1:"string"==typeof this.currentLayer.shapeSettings.border.width?parseInt(this.currentLayer.shapeSettings.border.width,10):this.currentLayer.shapeSettings.border.width)+2*this.currentLayer.shapeSettings.circleRadius;l=t[1],s=t[0];var b=i.i(a.h)(l,s,this.currentFactor,this.currentLayer,this.mapObject);this.calculateBox(b,f),this.currentLayer.layerData.push({point:b,type:e,lat:l,lng:s,property:r});break;case"multipoint":var v=(i.i(n.isNullOrUndefined)(this.currentLayer.shapeSettings.border.width)?1:"string"==typeof this.currentLayer.shapeSettings.border.width?parseInt(this.currentLayer.shapeSettings.border.width,10):this.currentLayer.shapeSettings.border.width)+2*this.currentLayer.shapeSettings.circleRadius;p=[],t.map(function(e){l=e[1],s=e[0];var t=i.i(a.h)(l,s,d.currentFactor,d.currentLayer,d.mapObject);d.calculateBox(t,v),p.push({point:t,lat:l,lng:s})}),p.property=r,p.type=e,this.currentLayer.layerData.push(p);break;case"path":this.currentLayer.layerData.push({point:o.d,type:e,property:r})}},e.prototype.calculateBox=function(e,t){i.i(n.isNullOrUndefined)(this.rectBounds)?this.rectBounds={min:{x:e.x-t,y:e.y-t},max:{x:e.x+t,y:e.y+t}}:(this.rectBounds.min.x=Math.min(this.rectBounds.min.x,e.x-t),this.rectBounds.min.y=Math.min(this.rectBounds.min.y,e.y-t),this.rectBounds.max.x=Math.max(this.rectBounds.max.x,e.x+t),this.rectBounds.max.y=Math.max(this.rectBounds.max.y,e.y+t))},e.prototype.calculateFactor=function(e){var t,n,o,r=1,l=this.mapObject.baseMapBounds,s=new a.a(this.mapObject.mapAreaRect.width,this.mapObject.mapAreaRect.height-5);if(l){var d=i.i(a.h)(l.latitude.min,l.longitude.min,null,e,this.mapObject),p=i.i(a.h)(l.latitude.max,l.longitude.max,null,e,this.mapObject);n=p.y-d.y,o=p.x-d.x,0!==n&&0!==o||(o=s.width/2,n=s.height)}else n=o=500;return t=n<s.height?parseFloat(Math.abs(100*Number(s.height/Number(n.toString()+"e+1"))).toString().split(".")[0])/10:s.height/n,r=o<s.width?parseFloat(Math.abs(100*Number(s.width/Number(o.toString()+"e+1"))).toString().split(".")[0])/10:s.width/o,Math.min(r,t)},e.prototype.translateLayerElements=function(e){var t;if(this.mapObject.translateType="layer",i.i(n.isNullOrUndefined)(this.mapObject.baseMapRectBounds)){if(this.mapObject.isTileMap&&!i.i(n.isNullOrUndefined)(this.mapObject.scale))for(var o=0;o<e.childElementCount;o++)if(t=e.childNodes[o],!(t.id.indexOf("_Markers_Group")>-1||t.id.indexOf("_bubble_Group")>-1||t.id.indexOf("_dataLableIndex_Group")>-1||t.id.indexOf("_line_Group")>-1)&&-1===t.id.indexOf("_Polygons_Group")){var r="scale( "+this.mapObject.scale+" ) translate( "+this.mapObject.translatePoint.x+" "+this.mapObject.translatePoint.y+" ) ";t.setAttribute("transform",r)}}else{var l="Disable"===n.animationMode?0:0===this.currentLayer.animationDuration&&"Enable"===n.animationMode?1e3:this.currentLayer.animationDuration,s=0!==l||i.i(n.isNullOrUndefined)(this.mapObject.zoomModule);this.mapObject.baseTranslatePoint=this.mapObject.zoomTranslatePoint;var d=void 0;d=this.mapObject.zoomSettings.zoomFactor>1&&!i.i(n.isNullOrUndefined)(this.mapObject.zoomModule)?i.i(a._31)(this.mapObject,this.currentLayer,s):i.i(a._30)(this.mapObject,this.currentLayer,s);var p=this.mapObject.previousScale=d.scale,h=this.mapObject.previousPoint=d.location;this.mapObject.baseTranslatePoint=this.mapObject.translatePoint=h,this.mapObject.baseScale=this.mapObject.scale=p;for(var u=0;u<e.childElementCount;u++)if(t=e.childNodes[u],!(t.id.indexOf("_Markers_Group")>-1||t.id.indexOf("_bubble_Group")>-1||t.id.indexOf("_dataLableIndex_Group")>-1)){var r="scale( "+p+" ) translate( "+h.x+" "+h.y+" ) ";t.setAttribute("transform",r),l>0&&!i.i(n.isNullOrUndefined)(this.mapObject.zoomModule)&&(d=this.mapObject.zoomSettings.zoomFactor>1?i.i(a._31)(this.mapObject,this.currentLayer):i.i(a._30)(this.mapObject,this.currentLayer),this.mapObject.scale=d.scale,this.mapObject.zoomTranslatePoint=this.mapObject.translatePoint=d.location)}}},e.prototype.calculateRectBounds=function(e){var t=this;Array.prototype.forEach.call(e,function(e){if(!i.i(n.isNullOrUndefined)(e.geometry)||!i.i(n.isNullOrUndefined)(e.coordinates)){var o=i.i(n.isNullOrUndefined)(e.geometry)?e.type:e.geometry.type,a=i.i(n.isNullOrUndefined)(e.geometry)?e.coordinates:e.geometry.coordinates;switch(o.toLowerCase()){case"polygon":t.calculateRectBox(a[0]);break;case"multipolygon":a.map(function(e){t.calculateRectBox(e[0])});break;case"multilinestring":a.map(function(e){e.map(function(e,i){t.calculateRectBox(e,"multilinestring",0===i)})});break;case"linestring":a.map(function(e,i){t.calculateRectBox(e,"linestring",0===i)});break;case"point":t.calculateRectBox(a,"point");break;case"multipoint":a.map(function(e,i){t.calculateRectBox(e,"multipoint",0===i)})}}})},e.prototype.calculatePolygonBox=function(e){var t=this,o=[],r=this.mapObject.baseMapBounds;return e.map(function(e){var l=e[1],s=e[0];if(s>=r.longitude.min&&s<=r.longitude.max&&l>=r.latitude.min&&l<=r.latitude.max){var d=i.i(a.h)(l,s,t.currentFactor,t.currentLayer,t.mapObject);i.i(n.isNullOrUndefined)(t.rectBounds)?t.rectBounds={min:{x:d.x,y:d.y},max:{x:d.x,y:d.y}}:(t.rectBounds.min.x=Math.min(t.rectBounds.min.x,d.x),t.rectBounds.min.y=Math.min(t.rectBounds.min.y,d.y),t.rectBounds.max.x=Math.max(t.rectBounds.max.x,d.x),t.rectBounds.max.y=Math.max(t.rectBounds.max.y,d.y)),o.push({point:d,lat:l,lng:s})}}),o},e.prototype.calculateRectBox=function(e,t,o){var r=this;"linestring"!==t&&"multilinestring"!==t&&"point"!==t&&"multipoint"!==t?Array.prototype.forEach.call(e,function(e){i.i(n.isNullOrUndefined)(r.mapObject.baseMapBounds)?r.mapObject.baseMapBounds=new a.v({min:e[1],max:e[1]},{min:e[0],max:e[0]}):(r.mapObject.baseMapBounds.latitude.min=Math.min(r.mapObject.baseMapBounds.latitude.min,e[1]),r.mapObject.baseMapBounds.latitude.max=Math.max(r.mapObject.baseMapBounds.latitude.max,e[1]),r.mapObject.baseMapBounds.longitude.min=Math.min(r.mapObject.baseMapBounds.longitude.min,e[0]),r.mapObject.baseMapBounds.longitude.max=Math.max(r.mapObject.baseMapBounds.longitude.max,e[0]))}):(o||"point"===t)&&i.i(n.isNullOrUndefined)(this.mapObject.baseMapBounds)?this.mapObject.baseMapBounds=new a.v({min:e[1],max:e[1]},{min:e[0],max:e[0]}):(this.mapObject.baseMapBounds.latitude.min=Math.min(this.mapObject.baseMapBounds.latitude.min,e[1]),this.mapObject.baseMapBounds.latitude.max=Math.max(this.mapObject.baseMapBounds.latitude.max,e[1]),this.mapObject.baseMapBounds.longitude.min=Math.min(this.mapObject.baseMapBounds.longitude.min,e[0]),this.mapObject.baseMapBounds.longitude.max=Math.max(this.mapObject.baseMapBounds.longitude.max,e[0]))},e.prototype.generateTiles=function(e,t,o,a,s){var d=this.mapObject.locale,p=this.mapObject.availableSize;this.tiles=[];var h,u;h=u=Math.pow(2,e);var c=0,m=0;t.x+256*h<p.width&&(c=t.x>0?Math.ceil(t.x/256):0,m=t.x+256*h<p.width?Math.ceil((p.width-(t.x+256*h))/256):0),h+=c+m,"Pan"===o?(h=this.horizontalPanXCount>=h?this.horizontalPanXCount:h,this.horizontalPan=!1):(this.horizontalPanXCount=h,this.horizontalPan=!0);var g=this.mapObject.layers[this.mapObject.baseLayerIndex];this.urlTemplate=g.urlTemplate;var y=Math.min(u,(-t.y+p.height)/256+1),f=Math.min(h,(-t.x+p.width+256*m)/256+1),b=-(t.x+256*c+256)/256,v=-(t.y+256)/256;a=a||this.bing||this.mapObject.bingMap;for(var S=Math.round(b);S<Math.round(f);S++)for(var _=Math.round(v);_<Math.round(y);_++){var x=256*S+t.x,O=256*_+t.y;if(x>-256&&x<=p.width&&O>-256&&O<p.height&&_>=0){var M=S;S<0&&(M=M%u+u);var C=new r.I(M%u,_);if(C.left=Math.round(x),C.top=Math.round(O),"Bing"===g.layerType||a&&!i.i(n.isNullOrUndefined)(g.urlTemplate)&&""!==g.urlTemplate){var L=g.key;C.src=a.getBingMap(C,L,g.bingMapType,d,a.imageUrl,a.subDomains)}else C.src=this.urlTemplate.replace("level",e.toString()).replace("tileX",C.x.toString()).replace("tileY",C.y.toString());this.tiles.push(C)}}i.i(n.isNullOrUndefined)(o)||(o.indexOf("wheel")>1?(this.animateToZoomX=this.mapObject.availableSize.width/2-s.x-10,this.animateToZoomY=-s.y):(this.animateToZoomX=-10,this.animateToZoomY=10-(this.mapObject.availableSize.height/2+11.5)));for(var P=i.i(n.extend)([],this.tiles,[],!0),w=0,T=this.mapObject.layers;w<T.length;w++){var I=T[w];if("SubLayer"===I.type&&I.visible&&("Geometry"!==I.layerType&&"GoogleStaticMap"!==I.layerType||"Geometry"===I.layerType&&i.i(n.isNullOrUndefined)(I.shapeData)&&!i.i(n.isNullOrUndefined)(I.urlTemplate)&&""!==I.urlTemplate))for(var k=0,N=P;k<N.length;k++){var E=N[k],F=i.i(n.extend)({},E,{},!0);"Bing"===I.layerType?(a=new l.a(this.mapObject),F.src=a.getBingMap(F,I.key,I.bingMapType,d,a.imageUrl,a.subDomains)):F.src=I.urlTemplate.replace("level",e.toString()).replace("tileX",E.x.toString()).replace("tileY",E.y.toString()),this.tiles.push(F)}}(this.mapObject.previousScale!==this.mapObject.scale||this.mapObject.isReset||this.mapObject.isZoomByPosition||this.mapObject.zoomNotApplied)&&this.arrangeTiles(o,this.animateToZoomX,this.animateToZoomY)},e.prototype.arrangeTiles=function(e,t,o){var r,l=this,s=document.getElementById(this.mapObject.element.id+"_tile_parent"),d=document.getElementById(this.mapObject.element.id+"_tiles");i.i(n.isNullOrUndefined)(e)||"Pan"===e?r=0:(this.tileAnimation(e,t,o),r="Disable"===n.animationMode?0:0===this.mapObject.layersCollection[0].animationDuration&&"Enable"===n.animationMode?1e3:this.mapObject.layersCollection[0].animationDuration),"GoogleStaticMap"===this.mapObject.layers[this.mapObject.baseLayerIndex].layerType?this.renderGoogleMap(this.mapObject.layers[0].key,this.mapObject.staticMapZoom):setTimeout(function(){s&&(s.style.zIndex="1"),d&&(d.style.zIndex="0");var t;!document.getElementById(l.mapObject.element.id+"_animated_tiles")&&s?(t=i.i(n.createElement)("div",{id:l.mapObject.element.id+"_animated_tiles"}),s.appendChild(t)):"Pan"!==e&&d&&s?(d.appendChild(s.children[0]),l.mapObject.isAddLayer||i.i(n.isNullOrUndefined)(document.getElementById(l.mapObject.element.id+"_animated_tiles"))||(document.getElementById(l.mapObject.element.id+"_animated_tiles").id=l.mapObject.element.id+"_animated_tiles_old"),t=i.i(n.createElement)("div",{id:l.mapObject.element.id+"_animated_tiles"}),s.appendChild(t)):t=s?s.children[0]:null;for(var o=0;o<l.tiles.length;o++){var r=l.tiles[o],p=null,h=l.mapObject.element.id;if("Pan"===e){var u=document.getElementById(h+"_tile_"+o),c=!1;i.i(n.isNullOrUndefined)(u)?(c=!0,u=i.i(n.createElement)("div",{id:h+"_tile_"+o}),p=i.i(n.createElement)("img")):(u.style.removeProperty("display"),p=u.children[0]),!c&&p&&p.src!==r.src&&(p.src=r.src),u.style.position="absolute",u.style.left=r.left+"px",u.style.top=r.top+"px",u.style.height=r.height+"px",u.style.width=r.width+"px",c&&(p.setAttribute("height","256px"),p.setAttribute("width","256px"),p.setAttribute("src",r.src),p.setAttribute("alt",l.mapObject.getLocalizedLabel("ImageNotFound")),p.style.setProperty("user-select","none"),u.appendChild(p),t.appendChild(u))}else{p=i.i(n.createElement)("img"),p.setAttribute("height","256px"),p.setAttribute("width","256px"),p.setAttribute("src",r.src),p.style.setProperty("user-select","none"),p.setAttribute("alt",l.mapObject.getLocalizedLabel("ImageNotFound"));var u=i.i(n.createElement)("div",{id:h+"_tile_"+o});u.style.position="absolute",u.style.left=r.left+"px",u.style.top=r.top+"px",u.style.height=r.height+"px",u.style.width=r.width+"px",u.appendChild(p),t&&t.appendChild(u)}o===l.tiles.length-1&&document.getElementById(l.mapObject.element.id+"_animated_tiles_old")&&i.i(a._28)(l.mapObject.element.id+"_animated_tiles_old")}if(!i.i(n.isNullOrUndefined)(l.mapObject.currentTiles))for(var m=l.tiles.length;m<t.childElementCount;m++){for(var g=!1,y=0;y<l.mapObject.currentTiles.childElementCount;y++)g||l.mapObject.currentTiles.children[y].id!==t.children[m].id||(g=!0);g?t.children[m].style.display="none":t.removeChild(t.children[m])}},r)},e.prototype.tileAnimation=function(e,t,o){var a=document.getElementById(this.mapObject.element.id+"_tile_parent"),r=document.getElementById(this.mapObject.element.id+"_animated_tiles"),l=document.getElementById(this.mapObject.element.id+"_tiles"),s="2";if(0===e.indexOf("ZoomOut")||"Reset"===e){for(l.style.zIndex="1",a.style.zIndex="0";l.childElementCount>=1;)l.removeChild(l.children[0]);t=0,o=document.getElementById(this.mapObject.element.id+"_tile_parent").getClientRects()[0].height/4,s=0===e.indexOf("ZoomOut")?"0.5":"0.2"}i.i(n.isNullOrUndefined)(r)||(r.style.transition="Disable"===n.animationMode?"0ms":0===this.mapObject.layersCollection[0].animationDuration&&"Enable"===n.animationMode?"1000ms":this.mapObject.layersCollection[0].animationDuration+"ms",r.style.transform="translate("+t+"px, "+o+"px) scale("+s+")")},e.prototype.renderGoogleMap=function(e,t){var o=this.mapObject;t=this.mapObject.tileZoomLevel;var r=256*Math.pow(2,t),l=o.mapAreaRect.width/2-r/2,s=o.mapAreaRect.height/2-r/2,d=new a.s(null,null),p=0,h=0,u=i.i(a.j)(d,t,{x:l,y:s},this.isMapCoordinates);o.zoomModule&&o.zoomSettings.enable&&(p=o.zoomModule.mouseDownLatLong.x-o.zoomModule.mouseMoveLatLong.x,h=o.zoomModule.mouseDownLatLong.y-o.zoomModule.mouseMoveLatLong.y);var c=o.pointToLatLong(u.x-p,u.y-h);o.centerPosition.latitude=c.latitude,o.centerPosition.longitude=c.longitude;var m,g;m=i.i(n.isNullOrUndefined)(parseInt(o.width,10))?parseInt(o.width,10)-22:Math.round(o.mapAreaRect.width),g=i.i(n.isNullOrUndefined)(parseInt(o.height,10))?parseInt(o.height,10)-22:Math.round(o.mapAreaRect.height);var y,f=m>640?(m-640)/2:0,b=g>640?(g-640)/2:0,v=o.layers[o.layers.length-1].staticMapType.toString().toLowerCase();y=o.centerPosition.latitude&&o.centerPosition.longitude?o.centerPosition.latitude.toString()+","+o.centerPosition.longitude.toString():"0,0";var S="https://maps.googleapis.com/maps/api/staticmap?size="+m+"x"+g+"&zoom="+t+"&center="+y+"&maptype="+v+"&key="+e;document.getElementById(this.mapObject.element.id+"_tile_parent").innerHTML='<div id="'+this.mapObject.element.id+'_StaticGoogleMap"style="position:absolute; left:'+f+"px; top:"+b+'px"><img src="'+S+'"alt="'+this.mapObject.getLocalizedLabel("ImageNotFound")+'"></div>'},e.prototype.panTileMap=function(e,t,o){this.mapObject.tileZoomLevel<=this.mapObject.tileZoomScale&&this.mapObject.initialCheck&&(this.mapObject.tileZoomLevel=this.mapObject.tileZoomScale);var r,l,s=this.mapObject.tileZoomLevel,d="GoogleStaticMap"!==this.mapObject.layers[this.mapObject.layers.length-1].layerType?20:0,p=256*Math.pow(2,s);r=e/2-p/2,l=t/2-p/2;var h=i.i(a.j)(o,s,{x:r,y:l},this.isMapCoordinates);if(d=this.mapObject.zoomNotApplied?0:d,r-=h.x-e/2,l=l-(h.y-t/2)+d,this.mapObject.scale=Math.pow(2,s-1),(i.i(n.isNullOrUndefined)(this.mapObject.tileTranslatePoint)||0===this.mapObject.tileTranslatePoint.y&&0===this.mapObject.tileTranslatePoint.x||i.i(n.isNullOrUndefined)(this.mapObject.previousTileWidth)||i.i(n.isNullOrUndefined)(this.mapObject.previousTileHeight))&&(this.mapObject.previousTileWidth=e,this.mapObject.previousTileHeight=t),!i.i(n.isNullOrUndefined)(this.mapObject.tileTranslatePoint)&&i.i(n.isNullOrUndefined)(o.x)&&(1===this.mapObject.zoomSettings.zoomFactor||this.mapObject.zoomSettings.zoomFactor!==s||!this.mapObject.defaultState)&&(e!==this.mapObject.previousTileWidth||t!==this.mapObject.previousTileHeight)){var u=r-(this.mapObject.previousTileWidth/2-p/2),c=l-(this.mapObject.previousTileHeight/2-p/2+d);this.mapObject.tileTranslatePoint.x=this.mapObject.tileTranslatePoint.x+u,this.mapObject.tileTranslatePoint.y=this.mapObject.tileTranslatePoint.y+c}return i.i(n.isNullOrUndefined)(this.mapObject.tileTranslatePoint)||this.mapObject.zoomNotApplied||(0===this.mapObject.tileTranslatePoint.x||this.mapObject.tileTranslatePoint.x===r||this.mapObject.centerPositionChanged||(r=this.mapObject.tileTranslatePoint.x),0===this.mapObject.tileTranslatePoint.y||this.mapObject.tileTranslatePoint.y===l||this.mapObject.centerPositionChanged||(l=this.mapObject.tileTranslatePoint.y)),this.mapObject.translatePoint=new a.s((r-.01*this.mapObject.zoomSettings.zoomFactor)/this.mapObject.scale,(l-.01*this.mapObject.zoomSettings.zoomFactor)/this.mapObject.scale),this.mapObject.previousTileWidth=e,this.mapObject.previousTileHeight=t,new a.s(r,l)},e.prototype.destroy=function(){this.mapObject=null,this.groupElements=[],this.layerObject=null,this.currentLayer=null,this.rectBounds=null,this.tiles=[],this.clipRectElement=null,this.tileSvgObject=null,this.ajaxModule=null,this.ajaxResponse=[],this.layerGroup=null,i.i(n.isNullOrUndefined)(this.bing)||this.bing.destroy(),this.bing=null},e}()},function(e,t,i){"use strict";i.d(t,"a",function(){return r});var n=i(2),o=i(1),a=(i.n(o),i(0)),r=function(){function e(e){this.map=e}return e.prototype.renderAnnotationElements=function(){var e=this,t=this.map.element.id+"_Secondary_Element",n=i.i(o.createElement)("div",{id:this.map.element.id+"_Annotations_Group"});n.style.position="absolute",n.style.top="0px",n.style.left="0px",this.map.annotations.map(function(t,i){null!==t.content&&e.createAnnotationTemplate(n,t,i)}),n.childElementCount>0&&!i.i(o.isNullOrUndefined)(i.i(a._33)(t))&&i.i(a._33)(t).appendChild(n),this.map.renderReactTemplates()},e.prototype.createAnnotationTemplate=function(e,t,r){var l,s,d,p,h=this,u=this.map,c=u.availableSize,m=i.i(o.createElement)("div",{id:u.element.id+"_Annotation_"+r});m.style.cssText="position: absolute; z-index:"+t.zIndex+";";var g={cancel:!1,name:n.E,content:t.content,annotation:t};this.map.trigger(n.E,g,function(e){if(!g.cancel)if((d=i.i(a._36)(g.content,h.map))&&d(h.map,h.map,g.content,h.map.element.id+"_ContentTemplate_"+r).length){p=Array.prototype.slice.call(d(h.map,h.map,g.content,h.map.element.id+"_ContentTemplate_"+r));for(var t=p.length,n=0;n<t;n++)m.appendChild(p[n])}else m.appendChild(i.i(o.createElement)("div",{innerHTML:g.content}))});var y=i.i(a._55)(m.cloneNode(!0),u.element),f=u.element.getBoundingClientRect(),b=u.svgObject.getBoundingClientRect();l=Math.abs(b.left-f.left),s=Math.abs(b.top-f.top);var v=t.x.indexOf("%")>-1?c.width/100*parseFloat(t.x):parseFloat(t.x),S=t.y.indexOf("%")>-1?c.height/100*parseFloat(t.y):parseFloat(t.y);switch(l="None"===t.horizontalAlignment?l+v:l,s="None"===t.verticalAlignment?s+S:s,t.verticalAlignment){case"Near":s+=S;break;case"Center":s=s+S+(b.height/2-y.height/2);break;case"Far":s=s+b.height+S-y.height}switch(t.horizontalAlignment){case"Near":l+=v;break;case"Center":l=l+v+(b.width/2-y.width/2);break;case"Far":l=l+b.width+v-y.width}m.style.left=l+"px",m.style.top=s+"px",e.appendChild(m)},e.prototype.getModuleName=function(){return"Annotations"},e.prototype.destroy=function(){this.map=null},e}()},function(e,t,i){"use strict";i.d(t,"a",function(){return r});var n=i(2),o=i(1),a=(i.n(o),i(0)),r=function(){function e(e){this.id="",this.maps=e,this.bubbleCollection=[]}return e.prototype.renderBubble=function(e,t,r,l,s,d,p,h,u,c){var m,g,y=this,f=h.layerData,b=e.colorValuePath,v=i.i(o.isNullOrUndefined)(b)?t[b]:b.indexOf(".")>-1?i.i(a.Q)(t,e.colorValuePath):t[b],S=i.i(o.isNullOrUndefined)(b)?Number(t[b]):b.indexOf(".")>-1?Number(i.i(a.Q)(t,e.colorValuePath)):Number(t[b]),_=i.i(o.isNullOrUndefined)(e.valuePath)?Number(t[e.valuePath]):e.valuePath.indexOf(".")>-1?Number(i.i(a.Q)(t,e.valuePath)):Number(t[e.valuePath]);if(isNaN(_)&&isNaN(S)&&i.i(o.isNullOrUndefined)(v))return null;var x=i.i(a._23)(e.minRadius,e.maxRadius,_,l.min,l.max),O=new n._151(this.maps),M=O.getColorByValue(e.colorMapping,S,v);g="[object Object]"!==Object.prototype.toString.call(M)||i.i(o.isNullOrUndefined)(M.fill)?r:M.fill,m="[object Object]"!==Object.prototype.toString.call(M)||i.i(o.isNullOrUndefined)(M.opacity)?e.opacity:M.opacity;var C=[[]];this.maps.translateType="bubble";for(var L=0,P=0,w=0,T=0,I=f.length;T<I;T++){var k=f[T];k=k.property;var N=i.i(a._21)(t[h.shapeDataPath],h.shapePropertyPath,k);if((!i.i(o.isNullOrUndefined)(t[h.shapeDataPath])&&isNaN(t[h.shapeDataPath])?t[h.shapeDataPath].toLowerCase():t[h.shapeDataPath])===(!i.i(o.isNullOrUndefined)(k[N])&&isNaN(k[N])?k[N].toLowerCase():k[N])&&"LineString"!==f[T].type&&"MultiLineString"!==f[T].type&&"Point"!==f[T].type&&"MultiPoint"!==f[T].type)if(f[T]._isMultiPolygon)for(var E=f[T],F=0;F<E.length;F++)C.push(this.getPoints(E[F],[])),w=C[C.length-1].length,P<w&&(P=w,L=C.length-1);else C.push(this.getPoints(f[T],[])),w=C[C.length-1].length,P<w&&(P=w,L=C.length-1)}var z,A,B=this.maps.projectionType,U={color:e.border.color,opacity:e.border.opacity,width:e.border.width},j=i.i(a._24)(C[L],B,h.geometryType);if(e.visible){if(i.i(o.isNullOrUndefined)(j)){var Z=C.length-1;if(!C[Z].x||!C[Z].y)return;A={cancel:!1,name:n.z,border:U,cx:C[Z].x,cy:C[Z].y,data:t,fill:g,maps:this.maps,radius:x}}else z="Mercator"===this.maps.projectionType?j.y:-j.y,A={cancel:!1,name:n.z,border:U,cx:j.x,cy:z,data:t,fill:g,maps:this.maps,radius:x};this.maps.trigger("bubbleRendering",A,function(t){if(!A.cancel){var n;if(A.border.opacity=i.i(o.isNullOrUndefined)(A.border.opacity)?m:A.border.opacity,"Circle"===e.bubbleType){var r=new a.C(c,A.fill,A.border,m,0,0,A.radius,null);n=i.i(a._4)(y.maps,r,u)}else{var l="Mercator"===y.maps.projectionType?A.cy-x:A.cy+x,g=new a.B(c,A.fill,A.border,m,new a.I(0,0,2*x,2*x),2,2);A.cx-=x,A.cy=l,n=i.i(a._5)(y.maps,g,u)}i.i(a._0)(y.maps.selectedBubbleElementId,y.maps.bubbleSelectionClass,n,"BubbleselectionMapStyle"),y.bubbleCollection.push({LayerIndex:p,BubbleIndex:s,DataIndex:d,element:n,center:{x:A.cx,y:A.cy}});var f,b=0!==h.animationDuration||"Enable"===o.animationMode||i.i(o.isNullOrUndefined)(y.maps.zoomModule);f=y.maps.zoomSettings.zoomFactor>1&&!i.i(o.isNullOrUndefined)(y.maps.zoomModule)&&!y.maps.isTileMap?i.i(a._31)(y.maps,h,b):i.i(a._30)(y.maps,h,b);var v=e.dataSource,S=f.scale,_=f.location,O=new a.H(y.maps.isTileMap?(A.cx+y.maps.translatePoint.x)*y.maps.tileZoomLevel:(A.cx+_.x)*S,y.maps.isTileMap?(A.cy+y.maps.translatePoint.y)*y.maps.tileZoomLevel:(A.cy+_.y)*S);n.setAttribute("transform","translate( "+O.x+" "+O.y+" )");var M=v.length-1===d?"bubble":null;"Square"===e.bubbleType?(O.x+=x,O.y+=x*("Mercator"===y.maps.projectionType?1:-1)):x=0,(e.animationDuration>0||"Enable"===o.animationMode)&&i.i(a._47)(n,e.animationDelay,e.animationDuration,O,y.maps,M,x)}})}},e.prototype.getPoints=function(e,t){return i.i(o.isNullOrUndefined)(e.map)?t=e.point:e.map(function(e){t.push(new a.s(e.point.x,e.point.y))}),t},e.prototype.bubbleClick=function(e){var t=e.target.id;if(-1!==t.indexOf("_LayerIndex_")){var a=this.getbubble(t);if(!i.i(o.isNullOrUndefined)(a)){var r={cancel:!1,name:n.A,data:a,maps:this.maps,target:t,x:e.clientX,y:e.clientY};this.maps.trigger(n.A,r)}}},e.prototype.getbubble=function(e){var t=e.split("_LayerIndex_"),i=parseInt(t[1].split("_")[0],10);if(e.indexOf("_BubbleIndex_")>-1){var n=this.maps.layers[i],o=parseInt(t[1].split("_BubbleIndex_")[1],10),a=parseInt(t[1].split("_BubbleIndex_")[1].split("_dataIndex_")[1],10);if(!isNaN(o))return n.bubbleSettings[o].dataSource[a]}return null},e.prototype.bubbleMove=function(e){var t=e.target.id;if(-1!==t.indexOf("_LayerIndex_")){var a=this.getbubble(t);if(!i.i(o.isNullOrUndefined)(a)){var r={cancel:!1,name:n.B,data:a,maps:this.maps,target:t,x:e.clientX,y:e.clientY};this.maps.trigger(n.B,r)}}},e.prototype.getModuleName=function(){return"Bubble"},e.prototype.destroy=function(){this.bubbleCollection=[],this.maps=null},e}()},function(e,t,i){"use strict";i.d(t,"a",function(){return l});var n=i(0),o=i(1),a=(i.n(o),i(3)),r=i(4),l=function(){function e(e){this.value={rightWidth:0,leftWidth:0,heightTop:0,heightBottom:0},this.maps=e,this.dataLabelCollections=[]}return e.prototype.getDataLabel=function(e,t,n,a){for(var r,l,s=0;s<e.length;s++){var d=e[s],p=!i.i(o.isNullOrUndefined)(d[a])&&isNaN(d[a])&&"string"==typeof d[a]?d[a].toLowerCase():d[a];if(n=i.i(o.isNullOrUndefined)(n)||"string"!=typeof n?n:n.toString(),l=i.i(o.isNullOrUndefined)(n)||"string"!=typeof n?n:n.toLowerCase(),p===l){r=d;break}}return r},e.prototype.renderLabel=function(e,t,l,s,d,p,h,u){var c,m,g,y,f,b,v,S,_,x=this,O=e.dataLabelSettings,M=e.dataLabelSettings.textStyle,C=e.dataLabelSettings,L=e.dataLabelSettings.labelPath,P=[[]],w=0,T=0,I=l,k="",N=0,E=!1,F=l.properties,z=this.maps.element.id+"_LayerIndex_"+t+"_shapeIndex_"+h+"_LabelIndex_"+h,A=new n.s(0,0),B=s[h];M.fontFamily="material"!==this.maps.theme.toLowerCase()?this.maps.themeStyle.labelFontFamily:M.fontFamily,M.fontWeight=M.fontWeight||this.maps.themeStyle.fontWeight||r.a.dataLabelFont.fontWeight,l=i.i(o.isNullOrUndefined)(B)?null:B.property;var U,j,Z="[object Array]"===Object.prototype.toString.call(e.shapePropertyPath)?e.shapePropertyPath:[e.shapePropertyPath],R=0!==e.animationDuration||"Enable"===o.animationMode||i.i(o.isNullOrUndefined)(this.maps.zoomModule),D=this.maps.isTileMap?new Object:this.maps.zoomSettings.zoomFactor>1&&!i.i(o.isNullOrUndefined)(this.maps.zoomModule)?i.i(n._31)(this.maps,e,R):i.i(n._30)(this.maps,e,R),V=this.maps.isTileMap?this.maps.scale:D.scale,G=this.maps.isTileMap?this.maps.translatePoint:D.location,H=this.maps.zoomTranslatePoint,W=i.i(o.isNullOrUndefined)(this.maps.scale)?1:Math.floor(this.maps.scale),q=this.maps.zoomSettings.enable?!i.i(o.isNullOrUndefined)(this.maps.zoomShapeCollection)&&this.maps.zoomShapeCollection.length>0&&!this.maps.isAddLayer:this.maps.zoomSettings.enable;this.maps.translateType="labels";for(var X=0;X<Z.length&&!(F[Z[X]]&&(U=Z[X],f=this.getDataLabel(e.dataSource,e.shapeDataPath,I.properties[U],e.shapeDataPath)));X++);if(f=this.getDataLabel(e.dataSource,e.shapeDataPath,I.properties[U],e.shapeDataPath),!i.i(o.isNullOrUndefined)(B)&&!i.i(o.isNullOrUndefined)(B.property))if(P=[[]],s[h]._isMultiPolygon||"Point"===s[h].type||"MultiPoint"===s[h].type){if("Point"!==s[h].type&&"MultiPoint"!==s[h].type)for(var Y=s[h],X=0;X<Y.length;X++)P.push(this.getPoint(Y[X],[])),N=P[P.length-1].length,T<N&&(T=N,w=P.length-1)}else P.push(this.getPoint(s[h],[])),N=P[P.length-1].length,T<N&&(T=N,w=P.length-1);if(k=i.i(o.isNullOrUndefined)(f)?I.properties[L]:i.i(o.isNullOrUndefined)(f[L])?f[e.shapeDataPath]:f[L].toString(),"[object Array]"===Object.prototype.toString.call(e.shapePropertyPath)&&i.i(o.isNullOrUndefined)(k)&&0===e.dataSource.length)for(var Q=0;Q<e.shapePropertyPath.length;Q++)if(I.properties[e.shapePropertyPath[Q]]){k=I.properties[e.shapePropertyPath[Q]];break}i.i(o.isNullOrUndefined)(k)&&""!==e.dataLabelSettings.template&&0===e.dataSource.length&&(k=I.properties[e.shapePropertyPath]),i.i(o.isNullOrUndefined)(k)&&e.dataSource.length>0&&(k="");var J=k,K=this.maps.projectionType;v=i.i(n._24)(P[w],K,e.geometryType);var $=v;if(!i.i(o.isNullOrUndefined)(k)&&!i.i(o.isNullOrUndefined)(v)){if(q&&W>1&&!this.maps.zoomNotApplied&&""===O.template){if(t>0)for(var ee=0;ee<this.maps.zoomLabelPositions.length;ee++)if(this.maps.zoomLabelPositions[ee].dataLabelText===k){b=h,h=ee,E=!0;break}S=v.x,_=v.y,v.x=(v.x+H.x)*V,v.y=(v.y+H.y)*V}v.y="Mercator"===this.maps.projectionType||"Normal"===e.geometryType?v.y:-v.y,i.i(o.isNullOrUndefined)(this.maps.format)||isNaN(Number(k))||isNaN(parseFloat(k))||this.maps.useGroupingSeparator&&(k=i.i(n._35)(this.maps,parseFloat(k)),i.i(o.isNullOrUndefined)(f)||(f[L]=k));var te={name:a.x,maps:this.maps,cancel:!1,border:{color:O.border.color,width:O.border.width,opacity:O.border.opacity},datalabel:O,fill:O.fill,template:O.template,text:k,offsetX:0,offsetY:0};this.maps.trigger("dataLabelRendering",te,function(a){if(!te.cancel){var r=[],l=q&&W>1&&!x.maps.zoomNotApplied&&x.maps.zoomShapeCollection.length>h?x.maps.dataLabelShape[h]*V:(v.rightMax.x-v.leftMax.x)*V;i.i(o.isNullOrUndefined)(x.maps.dataLabelShape)||x.maps.isReset||(j=$.rightMax.x-$.leftMax.x,x.maps.dataLabelShape.push(j)),te.text===k||te.cancel||(k=te.text);var s=i.i(n.x)(k,M),O=k,L=s,T=v.y-s.height/2,N=v.y+s.height/2,F=(v.y+G.y)*V-s.height/2,B=(v.y+G.y)*V+s.height/2;if(r=i.i(n._22)(P[w],T,N),r.length>5&&"MultiPolygon"!==I.geometry.type&&"MultiPolygon"!==I.type){var U=i.i(n._24)(r,K,e.geometryType);q&&W>1&&!x.maps.zoomNotApplied&&""===te.template&&(U.x=(x.maps.zoomLabelPositions[h].location.x+H.x)*V,U.y=(x.maps.zoomLabelPositions[h].location.y+H.y)*V),S=U.x,v.x=U.x,l=q&&W>1&&!x.maps.zoomNotApplied&&x.maps.zoomShapeCollection.length>h?x.maps.dataLabelShape[h]*V:(U.rightMax.x-U.leftMax.x)*V>0?(U.rightMax.x-U.leftMax.x)*V:l}var Z=(v.x+G.x)*V+s.width/2,R=(v.x+G.x)*V-s.width/2;x.value[h]={rightWidth:Z,leftWidth:R,heightTop:F,heightBottom:B};var D;if(""!==te.template){c=i.i(n._36)(te.template,x.maps);var X=c?c(i.i(o.isNullOrUndefined)(f)?I.properties:f,x.maps,te.template,x.maps.element.id+"_LabelTemplate",!1):document.createElement("div");X.innerHTML=c?"":te.template,D=i.i(n.O)(X,z,i.i(o.isNullOrUndefined)(f)?I.properties:f),x.maps.isTileMap?(D.style.left=(v.x+G.x)*V-s.width/2+"px",D.style.top=(v.y+G.y)*V-s.height+"px"):(D.style.left=Math.abs(x.maps.baseMapRectBounds.min.x-v.x)*V+a.offsetX+"px",D.style.top=Math.abs(x.maps.baseMapRectBounds.min.y-v.y)*V+a.offsetY+"px"),p.appendChild(D)}else{if("Trim"===C.smartLabelMode){var Y="number"==typeof k?k.toString():k;O=i.i(n._26)(l,Y,M,null,!0),L=i.i(n.x)(O,M),m=new n.y(z,A.x,A.y,"middle",O,"","")}if("None"===C.smartLabelMode&&(m=new n.y(z,A.x,A.y,"middle",k,"","")),"Hide"===C.smartLabelMode&&(k=l>=s.width?k:"",m=new n.y(z,A.x,A.y,"middle",k,"","")),k=m.text,"Hide"===C.intersectionAction){for(var Q=0;Q<u.length;Q++)if(!i.i(o.isNullOrUndefined)(u[Q])&&!(x.value[h].leftWidth>u[Q].rightWidth||x.value[h].rightWidth<u[Q].leftWidth||x.value[h].heightTop>u[Q].heightBottom||x.value[h].heightBottom<u[Q].heightTop)){k="";break}u.push(x.value[h]),m=new n.y(z,A.x,A.y,"middle",k,"","")}var ee=void 0;if("Trim"===C.intersectionAction){for(var ie=0;ie<u.length;ie++)if(!i.i(o.isNullOrUndefined)(u[ie]))if(u[ie].rightWidth<x.value[h].leftWidth||u[ie].leftWidth>x.value[h].rightWidth||u[ie].heightBottom<x.value[h].heightTop||u[ie].heightTop>x.value[h].heightBottom)O=k,ee=0;else{if(x.value[h].leftWidth>u[ie].leftWidth){l=u[ie].rightWidth-x.value[h].leftWidth,ee=l-(x.value[h].rightWidth-x.value[h].leftWidth),O=i.i(n._26)(ee,k,M,null,!0);break}if(x.value[h].leftWidth<u[ie].leftWidth){l=x.value[h].rightWidth-u[ie].leftWidth,ee=Math.abs(l-(x.value[h].rightWidth-x.value[h].leftWidth)),O=i.i(n._26)(ee,k,M,null,!0);break}}L=i.i(n.x)(O,M),u.push(x.value[h]),m=new n.y(z,A.x,A.y,"middle",O,"","")}if("None"===C.intersectionAction&&(m=new n.y(z,A.x,A.y,"middle",k,"","")),O.length>1){var ne=te.border;if(ne.width>1){var oe=te.fill,ae=C.opacity,re=C.rx,le=C.ry,se=void 0,de=void 0;q&&W>1&&!x.maps.zoomNotApplied?(se=v.x-s.width/2,de=v.y-s.height/2-5):(se=(v.x+G.x)*V-s.width/2,de=(v.y+G.y)*V-s.height/2),ne.opacity=i.i(o.isNullOrUndefined)(ne.opacity)?ae:ne.opacity;var pe=new n.B(x.maps.element.id+"_LayerIndex_"+t+"_shapeIndex_"+h+"_rectIndex_"+h,oe,ne,ae,new n.I(se+a.offsetX,de+a.offsetY,s.width,s.height),re,le);y=x.maps.renderer.drawRectangle(pe),y.setAttribute("visibility",e.dataLabelSettings.animationDuration>0||"Enable"===o.animationMode?"hidden":"visibile"),d.appendChild(y)}}g=i.i(n.K)(m,M,M.color||x.maps.themeStyle.dataLabelFontColor,d),g.setAttribute("aria-label",k),g.setAttribute("role","region"),g.setAttribute("visibility",e.dataLabelSettings.animationDuration>0||"Enable"===o.animationMode?"hidden":"visibile"),q&&W>1&&!x.maps.zoomNotApplied?(g.setAttribute("transform","translate( "+(v.x+a.offsetX)+" "+(v.y+a.offsetY)+" )"),v.x=S,v.y=_):g.setAttribute("transform","translate( "+((v.x+G.x)*V+a.offsetX)+" "+((v.y+G.y)*V+L.height/2+a.offsetY)+" )"),d.appendChild(g)}x.dataLabelCollections.push({location:{x:v.x+a.offsetX,y:v.y+a.offsetY},element:i.i(o.isNullOrUndefined)(D)?g:D,layerIndex:t,shapeIndex:E?b:h,labelIndex:E?b:h,dataLabelText:J}),p.childElementCount>0&&!x.maps.element.contains(p)&&(document.getElementById(x.maps.element.id+"_Secondary_Element").appendChild(p),x.maps.renderReactTemplates()),(e.dataLabelSettings.animationDuration>0||"Enable"===o.animationMode)&&(i.i(o.isNullOrUndefined)(g)||(x.datalabelAnimate(g,C.animationDuration,M.opacity,!1),i.i(o.isNullOrUndefined)(y)||x.datalabelAnimate(y,C.animationDuration,C.opacity,!0)))}})}},e.prototype.datalabelAnimate=function(e,t,i,n){var a=0;new o.Animation({}).animate(e,{duration:0===t&&"Enable"===o.animationMode?1e3:t,delay:0,progress:function(t){t.timeStamp>t.delay&&(a=(t.timeStamp-t.delay)/t.duration,e.setAttribute("style","user-select: none; visibility: visible;"),e.setAttribute(n?"fill-opacity":"opacity",(i*a).toString()))},end:function(){e.style.visibility="visible",e.setAttribute(n?"fill-opacity":"opacity",i.toString())}})},e.prototype.getPoint=function(e,t){return"MultiLineString"===e.type?Array.prototype.forEach.call(e,function(e){Array.prototype.forEach.call(e,function(e){t.push(new n.s(e.point.x,e.point.y))})}):Array.prototype.forEach.call(e,function(e){t.push(new n.s(e.point.x,e.point.y))}),t},e.prototype.getModuleName=function(){return"DataLabel"},e.prototype.destroy=function(){this.dataLabelCollections=[],this.value=null,this.maps=null},e}()},function(e,t,i){"use strict";i.d(t,"a",function(){return l});var n=i(2),o=i(0),a=i(1),r=(i.n(a),i(4)),l=function(){function e(e){this.legendBorderRect=new o.I(0,0,0,0),this.initialMapAreaRect=new o.I(0,0,0,0),this.legendTotalRect=new o.I(0,0,0,0),this.totalPages=[],this.page=0,this.currentPage=0,this.legendItemRect=new o.I(0,0,0,0),this.heightIncrement=0,this.widthIncrement=0,this.textMaxWidth=0,this.shapeHighlightCollection=[],this.legendHighlightCollection=[],this.shapePreviousColor=[],this.selectedNonLegendShapes=[],this.shapeToggled=!0,this.legendElement=null,this.maps=e,this.addEventListener()}return e.prototype.renderLegend=function(){this.legendRenderingCollections=[],this.legendCollection=[],this.totalPages=[],this.widthIncrement=0,this.heightIncrement=0,this.defsElement=this.maps.renderer.createDefs(),this.maps.svgObject.appendChild(this.defsElement),this.initialMapAreaRect=this.maps.mapAreaRect,this.calculateLegendBounds(),this.drawLegend()},e.prototype.calculateLegendBounds=function(){var e=this,t=this.maps,r=t.legendSettings;this.legendCollection=[];var l=t.mapAreaRect.y;if(this.legendRenderingCollections=[],Array.prototype.forEach.call(t.layersCollection,function(t,n){if(!i.i(a.isNullOrUndefined)(t.shapeData)){var o=t.shapeData.features,l=t.shapeDataPath,s=t.shapePropertyPath,d=t.dataSource,p=void 0,h=void 0;if("Layers"===r.type&&t.visible)p=t.shapeSettings.colorValuePath,h=t.shapeSettings.colorMapping,e.getLegends(n,o,h,d,l,p,s);else if("Bubbles"===r.type)for(var u=0,c=t.bubbleSettings;u<c.length;u++){var m=c[u];m.visible&&(p=m.colorValuePath,h=m.colorMapping,d=m.dataSource,e.getLegends(n,o,h,d,l,p,s))}}"Markers"===r.type&&e.getMarkersLegendCollections(n,t.markerSettings)}),this.legendCollection.length>0)for(var s=0;s<this.legendCollection.length;s++){var d=this.legendCollection[s],p={name:n.D,cancel:!1,fill:d.fill,shape:r.shape,shapeBorder:r.shapeBorder,text:"number"==typeof d.text?d.text.toString():d.text};t.trigger("legendRendering",p),d.fill=p.fill,d.shape=p.shape,d.shapeBorder=p.shapeBorder,d.text=p.text,p.cancel&&(this.legendCollection.splice(s,1),s--)}var h=t.legendSettings.title.text,u=t.legendSettings.titleStyle;if(this.legendCollection.length>0){var c,m,g=r.mode,y=0,f=0,b=0,v=0,S=r.shapePadding,_=r.shapeHeight,x=r.shapeWidth,O=[],M=[],C=r.position,L=r.labelDisplayMode,P="None"===r.orientation?"Top"===C||"Bottom"===C?"Horizontal":"Vertical":r.orientation,w=r.width.length>1?r.width.indexOf("%")>-1?t.availableSize.width/100*parseInt(r.width,10):parseInt(r.width,10):null,T=r.height.length>1?r.height.indexOf("%")>-1?t.availableSize.height/100*parseInt(r.height,10):parseInt(r.height,10):null,I=0,k=0,N=i.i(o.w)(h,u);if("Interactive"===g){var E=r.textStyle,F=this.legendCollection.length,z="Horizontal"===P?i.i(a.isNullOrUndefined)(w)?t.mapAreaRect.width/F:w/F:i.i(a.isNullOrUndefined)(w)?25:w,A="Horizontal"===P?i.i(a.isNullOrUndefined)(T)?25:T:i.i(a.isNullOrUndefined)(T)?t.mapAreaRect.height/F:T/F;I=0,k=N.height+10;for(var B=r.labelPosition,U=0,j=0,Z=0,R=0,D=0,V=0,s=0;s<this.legendCollection.length;s++){I="Horizontal"===P?I+z:I,k="Horizontal"===P?k:k+A;var G=this.legendCollection[s].text,H=new o.a(0,0);"None"===L?H=i.i(o.w)(G,E):"Trim"===L?(G=i.i(o._26)("Horizontal"===P?z:A,G,E),H=i.i(o.w)(G,E)):G="",D=Math.max(D,H.height),V=Math.max(V,H.width),H.width>0&&H.height>0&&("Horizontal"===P?(U=I+z/2,j="After"===B?k+A+H.height/2+10:k-10):(U="After"===B?I-H.width/2-10:I+z+H.width/2+10,j=k+A/2+H.height/4)),0===s?(Z="Horizontal"===P?I:"After"===B?U-H.width/2:I,R="Horizontal"===P?"After"===B?k:j-H.height/2:k,1===this.legendCollection.length&&(w="Horizontal"===P?Math.abs(I+z-Z):z+V+10,T="Horizontal"===P?A+D/2+10:Math.abs(k+A-R))):s===this.legendCollection.length-1&&(w="Horizontal"===P?Math.abs(I+z-Z):z+V+10,T="Horizontal"===P?A+D/2+10:Math.abs(k+A-R)),this.legendRenderingCollections.push({fill:this.legendCollection[s].fill,x:I,y:k,width:z,height:A,text:G,textX:U,textY:j,textWidth:H.width,textHeight:H.height,shapeBorder:this.legendCollection[s].shapeBorder})}1===this.legendCollection.length&&(T=A,w=z),this.legendItemRect={x:Z,y:R,width:w,height:T}}else{w=i.i(a.isNullOrUndefined)(w)?t.mapAreaRect.width:w,T=i.i(a.isNullOrUndefined)(T)?t.mapAreaRect.height:T;var W=0;this.page=0;for(var s=0;s<this.legendCollection.length;s++){var d=this.legendCollection[s];i.i(a.isNullOrUndefined)(this.totalPages[this.page])&&(this.totalPages[this.page]={Page:this.page+1,Collection:[]});var q=i.i(o.w)(d.text,r.textStyle);if(this.textMaxWidth=Math.max(this.textMaxWidth,q.width),0===s)I=y=10+x/2,k=f=l+N.height+(_>q.height?_/2:q.height/4);else{var X=q.height>_?q.height:_;if("Horizontal"===P){var Y=M[W-1].x+M[W-1].width+10+x;if(Y+S+q.width>w){var Q=(M[W-1].y>O[W-1].y+_/2?M[W-1].y:O[W-1].y+_/2)+l;Q+X>T?(this.getPageChanged(),W=0,O=[],M=[],y=I,f=k):(y=O[0].x,f=Q+X/2)}else y=Y-x/2,f=O[W-1].y}else{var J=M[W-1].y>O[W-1].y+_/2?M[W-1].y:O[W-1].y+_/2;if(J+l+X>T){var K=M[W-1].x+this.textMaxWidth+10;K+S+q.width>w?(y=I,f=k,M=[],O=[],this.getPageChanged(),W=0):(y=K+x/2,f=O[0].y)}else{y=O[W-1].x,f=J+10+_/2}}}b=y+x/2+S,v=f+q.height/4,O.push({x:y,y:f}),M.push({x:b,y:v,width:q.width,height:q.height/2}),this.totalPages[this.page].Collection.push({DisplayText:d.text,ImageSrc:d.imageSrc,Shape:{x:y,y:f},Text:{x:b,y:v},Fill:d.fill,legendShape:d.shape,shapeBorder:d.shapeBorder,idIndex:s,Rect:{x:O[W].x-x/2,y:O[W].y-_/2<v-q.height?O[W].y-_/2:v-q.height,width:Math.abs(O[W].x-x/2-(b+q.width)),height:_>q.height?_:q.height}}),W++}var $=this.totalPages[0].Collection;Array.prototype.forEach.call($,function(t,i){var n=new o.I(t.Rect.x,t.Rect.y,t.Rect.width,t.Rect.height);0===i&&(c=n.x,m=n.y),e.widthIncrement=Math.max(e.widthIncrement,Math.abs(c-(n.x+n.width))),e.heightIncrement=Math.max(e.heightIncrement,Math.abs(m-(n.y+n.height)))}),w=this.widthIncrement<w?this.widthIncrement:w,T=this.heightIncrement<T?this.heightIncrement:T,this.legendItemRect={x:$[0].Rect.x,y:$[0].Rect.y,width:w,height:T}}}},e.prototype.getLegends=function(e,t,i,n,o,a,r){this.getRangeLegendCollection(e,t,i,n,o,a,r),this.getEqualLegendCollection(e,t,i,n,o,a,r),this.getDataLegendCollection(e,t,i,n,o,a,r)},e.prototype.getPageChanged=function(){this.page++,i.i(a.isNullOrUndefined)(this.totalPages[this.page])&&(this.totalPages[this.page]={Page:this.page+1,Collection:[]})},e.prototype.legendTextTrim=function(e,t,n,a){var r=t,l=i.i(o.w)(t,n).width,s=a-l;if(a>e)for(var d=t.length,p=d-1;p>=0;--p){r=t.substring(0,p)+"...",l=i.i(o.w)(r,n).width;var h=s+l;if(h<=e||r.length<4)return r.length<4&&(r=" "),r}return r},e.prototype.drawLegend=function(){var e,t=this.maps,n=t.legendSettings,r=t.renderer,l={size:n.textStyle.size,color:n.textStyle.color,fontFamily:n.textStyle.fontFamily,fontWeight:n.textStyle.fontWeight,fontStyle:n.textStyle.fontStyle,opacity:n.textStyle.opacity};if(this.legendGroup=r.createGroup({id:t.element.id+"_Legend_Group"}),"Interactive"===n.mode)for(var s=0;s<this.legendRenderingCollections.length;s++){var d=t.element.id+"_Legend_Index_"+s,p=t.element.id+"_Legend_Index_"+s+"_Text",h=this.legendRenderingCollections[s],u=new o.I(h.x,h.y,h.width,h.height);0===s&&this.renderLegendBorder();var c=new o.s(h.textX,h.textY);l.color=null!==l.color?l.color:this.maps.themeStyle.legendTextColor;var m=new o.B(d,h.fill,h.shapeBorder,n.opacity,u);e=new o.y(p,c.x,c.y,"middle",h.text,"",""),l.fontFamily=i.i(a.isNullOrUndefined)(l.fontFamily)?this.maps.themeStyle.fontFamily:l.fontFamily,l.size=t.themeStyle.legendFontSize||l.size;var g=i.i(o.K)(e,l,l.color,this.legendGroup);g.setAttribute("aria-label",h.text),g.setAttribute("role","region");var y=r.drawRectangle(m);this.legendGroup.appendChild(y),!t.legendSettings.toggleLegendSettings.enable||"Layers"!==n.type&&"Markers"!==n.type||this.maintainLegendToggle(s,y,g),this.legendToggle()}else this.drawLegendItem(this.currentPage)},e.prototype.drawLegendItem=function(e){var t,n=this.maps,r=n.legendSettings,l=new o.a(r.shapeWidth,r.shapeHeight),s=n.renderer,d=r.shape;if(e>=0&&e<this.totalPages.length){i.i(o._41)(this.legendGroup.id,this.maps.element.id)&&i.i(a.remove)(i.i(o._41)(this.legendGroup.id,this.maps.element.id));for(var p=0;p<this.totalPages[e].Collection.length;p++){var h=this.totalPages[e].Collection[p],u=h.shapeBorder,c=s.createGroup({id:n.element.id+"_Legend_Index_"+h.idIndex}),m=h.DisplayText,g="HorizontalLine"===r.shape||"VerticalLine"===r.shape||"Cross"===r.shape?i.i(a.isNullOrUndefined)(r.fill)?"#000000":r.fill:u.color,y=("HorizontalLine"===r.shape||"VerticalLine"===r.shape||"Cross"===r.shape)&&0===u.width?1:u.width,f=n.element.id+"_Legend_Shape_Index_"+h.idIndex,b=n.element.id+"_Legend_Text_Index_"+h.idIndex,v=new o.s(h.Shape.x,h.Shape.y-4),S=new o.s(h.Text.x,h.Text.y-4),_=new o.z(f,h.Fill,y,g,r.opacity,i.i(a.isNullOrUndefined)(u.opacity)?r.opacity:u.opacity,""),x={fontFamily:r.textStyle.fontFamily,fontStyle:r.textStyle.fontStyle,fontWeight:r.textStyle.fontWeight,size:r.textStyle.size,color:r.textStyle.color,opacity:r.textStyle.opacity};if(x.color=null!==x.color?x.color:this.maps.themeStyle.legendTextColor,x.fontFamily=i.i(a.isNullOrUndefined)(x.fontFamily)?this.maps.themeStyle.fontFamily:x.fontFamily,x.size=n.themeStyle.legendFontSize||x.size,x.fontWeight=x.fontWeight||n.themeStyle.fontWeight,0===p&&this.renderLegendBorder(),"Markers"===r.type&&r.useMarkerShape){var O=this.legendCollection[h.idIndex].data[0],M=n.layers[O.layerIndex].markerSettings[O.markerIndex];d=i.i(a.isNullOrUndefined)(M.dataSource[O.dataIndex][M.shapeValuePath])||""===M.dataSource[O.dataIndex][M.shapeValuePath]?M.shape:M.dataSource[O.dataIndex][M.shapeValuePath]}"Balloon"===d?c.appendChild(i.i(o._17)(n,_,l,{x:v.x,y:v.y+5},"Legend")):c.appendChild(i.i(o._53)(v,d,l,h.ImageSrc,_));var C=h.Rect.x+h.Rect.width;if(C>this.legendBorderRect.width){m=this.legendTextTrim(this.legendBorderRect.width,m,x,C)}t=new o.y(b,S.x,S.y,"start",m,"","");var L=i.i(o.K)(t,x,x.color,c);if(L.setAttribute("aria-label",m),L.setAttribute("role","region"),this.legendGroup.appendChild(c),n.legendSettings.toggleLegendSettings.enable&&("Layers"===r.type||"Markers"===r.type)){var P=c.childNodes[0];this.maintainLegendToggle(h.idIndex,P,L)}if(p===this.totalPages[e].Collection.length-1){var w=void 0;if(0!==this.page){var T=e+1+"/"+this.totalPages.length,I=r.textStyle,k=i.i(o.w)(T,I),N=this.legendItemRect.x+this.legendItemRect.width-k.width-20-20+2,E=this.legendItemRect.x+this.legendItemRect.width,F=E-10-k.width/2-5-4,z=this.legendItemRect.y+this.legendItemRect.height+2.5+10;w=s.createGroup({id:n.element.id+"_Legend_Paging_Group"});var A=s.createGroup({id:n.element.id+"_Legend_Left_Paging_Group"}),B=s.createGroup({id:n.element.id+"_Legend_Right_Paging_Group"}),U=" M "+E+" "+z+" L "+(E-10)+" "+(z-5)+" L "+(E-10)+" "+(z+5)+" z ",j=" M "+N+" "+z+" L "+(N+10)+" "+(z-5)+" L "+(N+10)+" "+(z+5)+" z ",Z=new o.z(n.element.id+"_Left_Page",this.maps.themeStyle.legendTextColor,0,this.maps.themeStyle.legendTextColor,e+1===1?.5:1,1,"",j);A.appendChild(s.drawPath(Z));var R=new o.B(n.element.id+"_Left_Page_Rect","transparent",{},1,new o.I(N-5,z-10,20,20),null,null,"",""),D=s.drawRectangle(R);D.setAttribute("aria-label","Navigate to the previous legend items"),D.setAttribute("role","button"),D.tabIndex=e+1===1?-1:n.tabIndex,e+1===1?(D.style.cursor="default",D.style.setProperty("outline","none")):(D.style.cursor="pointer",D.style.removeProperty("outline")),A.appendChild(D),this.wireEvents(A);var V=new o.z(n.element.id+"_Right_Page",this.maps.themeStyle.legendTextColor,0,this.maps.themeStyle.legendTextColor,e+1===this.totalPages.length?.5:1,1,"",U);B.appendChild(s.drawPath(V));var G=new o.B(n.element.id+"_Right_Page_Rect","transparent",{},1,new o.I(E-10-5,z-10,20,20),null,null,"","");D=s.drawRectangle(G),D.setAttribute("aria-label","Navigate to the next legend items"),D.setAttribute("role","button"),D.tabIndex=e+1===this.totalPages.length?-1:n.tabIndex,e+1===this.totalPages.length?(D.style.cursor="default",D.style.setProperty("outline","none")):(D.style.cursor="pointer",D.style.removeProperty("outline")),B.appendChild(D),this.wireEvents(B),w.appendChild(A),w.appendChild(B);var H={id:n.element.id+"_Paging_Text",x:F,y:z+k.height/4,fill:this.maps.themeStyle.legendTextColor,"font-size":"14px","font-style":I.fontStyle,"font-family":I.fontFamily,"font-weight":I.fontWeight,"text-anchor":"middle",transform:"",opacity:1,"dominant-baseline":""},W=s.createText(H,T);W.style.cssText="user-select: none;",W.setAttribute("aria-label",T),W.setAttribute("role","region"),w.appendChild(W),this.legendGroup.appendChild(w)}this.legendToggle()}}}},e.prototype.maintainLegendToggle=function(e,t,n){if(this.maps.legendSettings.toggleLegendSettings.enable&&!i.i(a.isNullOrUndefined)(this.maps.toggledLegendId)&&this.maps.toggledLegendId.indexOf(e)>-1&&!i.i(a.isNullOrUndefined)(this.maps.toggledElementId)&&this.maps.toggledElementId.length>0){var o=this.legendCollection[e].data;if(this.maps.legendSettings.toggleLegendSettings.applyShapeSettings){var r=o[o.length-1].layerIndex;this.setToggleAttributes(n,t,this.maps.layers[r].shapeSettings.fill,this.maps.layers[r].shapeSettings.opacity,this.maps.layers[r].shapeSettings.border.color,i.i(a.isNullOrUndefined)(this.maps.layers[r].shapeSettings.border.width)?0:this.maps.layers[r].shapeSettings.border.width,i.i(a.isNullOrUndefined)(this.maps.layers[r].shapeSettings.border.opacity)?this.maps.layers[r].shapeSettings.opacity:this.maps.layers[r].shapeSettings.border.opacity,this.maps.layers[r].shapeSettings.fill)}else this.setToggleAttributes(n,t,this.maps.legendSettings.toggleLegendSettings.fill,this.maps.legendSettings.toggleLegendSettings.opacity,this.maps.legendSettings.toggleLegendSettings.border.color,this.maps.legendSettings.toggleLegendSettings.border.width,i.i(a.isNullOrUndefined)(this.maps.legendSettings.toggleLegendSettings.border.opacity)?this.maps.legendSettings.toggleLegendSettings.opacity:this.maps.legendSettings.toggleLegendSettings.border.opacity,this.maps.legendSettings.toggleLegendSettings.fill);o._isVisible=!1}},e.prototype.legendHighLightAndSelection=function(e,t){var n,o,r,l,s,d=this.maps.legendSettings,p="Default"===d.mode?document.getElementById(e.id.replace("Shape","Text")):document.getElementById(e.id+"_Text"),h=this.maps.legendModule.legendCollection,u=!i.i(a.isNullOrUndefined)(h[0].data[0].layerIndex)&&this.maps.layers[h[0].data[0].layerIndex].selectionSettings.enableMultiSelect,c=0,m=!0,g=parseFloat(e.id.charAt(e.id.length-1));this.updateLegendElement();var y=this.maps.toggledLegendId.indexOf(g);if(this.maps.legendSettings.toggleLegendSettings.enable&&"highlight"===t&&-1!==y){var f=this.getIndexofLegend(this.legendHighlightCollection,e);return-1!==f&&this.legendHighlightCollection.splice(f,1),this.removeLegendHighlightCollection(),null}if("selection"===t){if(this.shapeHighlightCollection=[],this.maps.shapeSelections||u||(this.removeAllSelections(),this.maps.shapeSelections=!0),this.maps.legendSelectionCollection.length>0&&(u||this.maps.shapeSelections))for(var b=0;b<this.maps.legendSelectionCollection.length;b++){if(e===this.maps.legendSelectionCollection[b].legendElement){this.maps.legendSelectionCollection[b].legendElement=e,m=!1,this.removeLegendSelectionCollection(this.maps.legendSelectionCollection[b].legendElement),this.maps.selectedLegendElementId.splice(this.maps.selectedLegendElementId.indexOf(g),1),this.maps.legendSelectionCollection.splice(b,1),this.maps.legendSelection=!(this.maps.legendSelectionCollection.length>0);break}if(!u)if(this.maps.legendSelectionCollection.length>1){for(var v=0;v<this.maps.legendSelectionCollection.length;v++)this.removeLegendSelectionCollection(this.maps.legendSelectionCollection[v].legendElement);this.maps.legendSelectionCollection=[]}else this.removeLegendSelectionCollection(this.maps.legendSelectionCollection[b].legendElement),this.maps.legendSelectionCollection.splice(b,1)}}else{if(this.maps.legendSelectionCollection.length>0)for(var b=0;b<this.maps.legendSelectionCollection.length;b++){if((e.id.indexOf("_Legend_Shape")>-1||e.id.indexOf("_Legend_Index"))&&e===this.maps.legendSelectionCollection[b].legendElement){m=!1;break}this.removeLegendHighlightCollection()}this.removeLegendHighlightCollection()}if(m)for(var S=0;S<h.length;S++){var _="Interactive"===this.maps.legendSettings.mode?parseFloat(e.id.split("_Legend_Index_")[1]):parseFloat(e.id.split("_Legend_Shape_Index_")[1]);if(p.textContent===h[S].text&&h[S].data.length>0&&_===S){var x=this.maps.layers[h[S].data[0].layerIndex],O=void 0,M=void 0,C=void 0;if(i.i(a.isNullOrUndefined)(x)||(O="selection"===t?x.selectionSettings.enable:x.highlightSettings.enable,M=void 0,M="selection"===t?x.selectionSettings:x.highlightSettings,C=h[S].data),O)for(var L=0;L<C.length;L++){var P=void 0;if(n=C[L].shapeIndex,o=C[L].layerIndex,r=C[L].dataIndex,l=C[L].pointIndex,null!==(P=-1===l?document.getElementById(this.maps.element.id+"_LayerIndex_"+o+"_shapeIndex_"+n+"_dataIndex_"+r):document.getElementById(this.maps.element.id+"_LayerIndex_"+o+"_shapeIndex_"+n+"_dataIndex_"+r+"_multiLine_"+l))){var w=!0;if(null!==this.maps.legendSelectionCollection)for(var T=0;T<this.maps.legendSelectionCollection.length;T++)if(this.maps.legendSelectionCollection[T].legendElement===e){w=!1;break}if("highlight"===t&&w){0===L&&(this.legendHighlightCollection=[],this.pushCollection(e,this.legendHighlightCollection,h[S],x.shapeSettings)),s=this.legendHighlightCollection.length;var I=this.legendHighlightCollection[s-1].legendOldFill;this.legendHighlightCollection[s-1].MapShapeCollection.Elements.push(P);var k=this.legendHighlightCollection[s-1].MapShapeCollection.Elements.length-1,N=P.getAttribute("fill"),E=P.getAttribute("fill-opacity");this.legendHighlightCollection[s-1].shapeOldFillColor.push(N),this.legendHighlightCollection[s-1].shapeOldOpacity=E;var F=this.legendHighlightCollection[s-1].shapeOldFillColor[k],z=this.legendHighlightCollection[s-1].shapeOldOpacity;this.shapePreviousColor=this.legendHighlightCollection[s-1].shapeOldFillColor,this.setColor(P,i.i(a.isNullOrUndefined)(M.fill)?F:M.fill,i.i(a.isNullOrUndefined)(M.opacity)?z:M.opacity.toString(),M.border.color,M.border.width.toString(),"highlight"),this.setColor(e,i.i(a.isNullOrUndefined)(M.fill)?I:M.fill,i.i(a.isNullOrUndefined)(M.opacity)?z:M.opacity.toString(),M.border.color,M.border.width.toString(),"highlight")}else if("selection"===t){this.legendHighlightCollection=[],this.maps.legendSelectionClass=M,0===L&&(this.pushCollection(e,this.maps.legendSelectionCollection,h[S],x.shapeSettings),u?this.maps.selectedLegendElementId.push(S):0===this.maps.selectedLegendElementId.length?this.maps.selectedLegendElementId.push(S):(this.maps.selectedLegendElementId=[],this.maps.selectedLegendElementId.push(S))),c=this.maps.legendSelectionCollection.length;var A=this.maps.legendSelectionCollection[c-1].legendOldFill;this.maps.legendSelectionCollection[c-1].MapShapeCollection.Elements.push(P),this.maps.legendSelectionCollection[c-1].shapeOldFillColor=this.shapePreviousColor,this.setColor(e,i.i(a.isNullOrUndefined)(M.fill)?A:M.fill,M.opacity.toString(),M.border.color,M.border.width.toString(),"selection"),this.setColor(P,i.i(a.isNullOrUndefined)(M.fill)?A:M.fill,M.opacity.toString(),M.border.color,M.border.width.toString(),"selection"),-1===this.maps.selectedElementId.indexOf(P.getAttribute("id"))&&this.maps.selectedElementId.push(P.getAttribute("id")),L===C.length-1&&(this.maps.legendSelection=!1,this.removeLegend(this.maps.legendSelectionCollection))}}}}}},e.prototype.setColor=function(e,t,n,a,r,l){var s=e.parentElement.id.indexOf("LineString")>-1;"selection"===l?(i.i(o._2)(s?"LineselectionMap":"ShapeselectionMap",s?"LineselectionMapStyle":"ShapeselectionMapStyle",s?"transparent":t,n,s?t:a,r,this.maps),e.setAttribute("class",s?"LineselectionMapStyle":"ShapeselectionMapStyle")):(e.setAttribute("fill",s?"transparent":t),e.setAttribute("fill-opacity",n),e.setAttribute("stroke",s?t:a),e.setAttribute("stroke-width",(Number(r)/this.maps.scale).toString()))},e.prototype.pushCollection=function(e,t,i,n){t.push({legendElement:e,legendOldFill:i.fill,legendOldOpacity:i.opacity,legendOldBorderColor:i.borderColor,legendOldBorderWidth:i.borderWidth,shapeOpacity:n.opacity,shapeOldBorderColor:n.border.color,shapeOldBorderWidth:n.border.width});var o=t.length;t[o-1].MapShapeCollection={Elements:[]},t[o-1].shapeOldFillColor=[],t[o-1].shapeOldOpacity=null},e.prototype.removeLegend=function(e){for(var t=0;t<e.length;t++){var n=e[t];this.setColor(n.legendElement,n.legendOldFill,n.legendOldOpacity,n.legendOldBorderColor,n.legendOldBorderWidth,"highlight");for(var o=n.MapShapeCollection.Elements.length,r=0;r<o;r++){var l=-1!==n.legendOldFill.indexOf("url")?n.shapeOldFillColor[r]:n.legendOldFill,s=i.i(a.isNullOrUndefined)(n.shapeOldOpacity)?n.shapeOpacity:n.shapeOldOpacity;this.setColor(n.MapShapeCollection.Elements[r],l,s,n.shapeOldBorderColor,n.shapeOldBorderWidth,"highlight")}}},e.prototype.removeLegendHighlightCollection=function(){this.legendHighlightCollection.length>0&&(this.removeLegend(this.legendHighlightCollection),this.legendHighlightCollection=[])},e.prototype.removeLegendSelectionCollection=function(e){if(this.maps.legendSelectionCollection.length>0){i.i(o._46)(e);for(var t=this.shapesOfLegend(e),n=t.length,a=0;a<n;a++){var r=i.i(o._37)(t[a]);if("ShapeselectionMapStyle"===r.getAttribute("class")||"LineselectionMapStyle"===r.getAttribute("class")){i.i(o._46)(r);var l=this.maps.selectedElementId.indexOf(r.id);-1!==l&&this.maps.selectedElementId.splice(l,1)}}}},e.prototype.removeShapeHighlightCollection=function(){if(this.shapeHighlightCollection.length>0)for(var e=0;e<this.shapeHighlightCollection.length;e++){for(var t=this.shapeHighlightCollection[e],i=!0,n=0;n<this.maps.legendSelectionCollection.length;n++)this.maps.legendSelectionCollection[n].legendElement===t.legendElement&&(i=!1);i&&this.setColor(t.legendElement,t.legendOldFill,t.legendOldOpacity,t.legendOldBorderColor,t.legendOldBorderWidth,"highlight")}},e.prototype.shapeHighLightAndSelection=function(e,t,n,r,l){if(void 0!==t){this.updateLegendElement(),this.shapeToggled=!0;var s=this.maps.legendModule.legendCollection,d=this.legendIndexOnShape(t,l),p=this.shapeDataOnLegend(e),h=this.maps.toggledLegendId.indexOf(d.actualIndex);if(this.maps.legendSettings.toggleLegendSettings.enable&&-1!==h){this.shapeToggled=!1,this.legendHighlightCollection=[];var u=this.getIndexofLegend(this.shapeHighlightCollection,p.LegendEle);return-1!==u&&this.shapeHighlightCollection.splice(u,1),this.removeShapeHighlightCollection(),null}if(void 0===d.currentIndex&&void 0===d.actualIndex)return this.removeShapeHighlightCollection(),null;if(void 0!==d.currentIndex||"selection"!==r||this.maps.layers[l].selectionSettings.enableMultiSelect||"ShapeselectionMapStyle"===e.getAttribute("class")||(this.maps.legendSelection=!1),"selection"!==r||this.maps.layers[l].selectionSettings.enableMultiSelect||this.maps.legendSelection||(this.removeAllSelections(),this.maps.legendSelection=!0),void 0===d.currentIndex){if("selection"===r&&void 0!==d.actualIndex){for(var c=0,m=0;m<p.Elements.length;m++)"ShapeselectionMapStyle"===p.Elements[m].getAttribute("class")&&c++;var g=this.maps.selectedLegendElementId.indexOf(d.actualIndex);-1===g?(this.maps.selectedLegendElementId.push(d.actualIndex),this.maps.legendSelectionClass=n):c<=1&&("ShapeselectionMapStyle"===e.getAttribute("class")||"LineselectionMapStyle"===e.getAttribute("class"))&&(this.maps.layers[l].selectionSettings.enableMultiSelect?c<=1&&("ShapeselectionMapStyle"===e.getAttribute("class")||"LineselectionMapStyle"===e.getAttribute("class"))&&this.maps.selectedLegendElementId.splice(g,1):this.maps.selectedLegendElementId.splice(g,1))}return this.removeShapeHighlightCollection(),null}var y=s[d.actualIndex].text,f=void 0,b=void 0;"Default"===this.maps.legendSettings.mode?void 0!==d.currentIndex&&(f=document.getElementById(this.maps.element.id+"_Legend_Text_Index_"+d.actualIndex).textContent,b=document.getElementById(this.maps.element.id+"_Legend_Shape_Index_"+d.actualIndex)):(f=document.getElementById(this.maps.element.id+"_Legend_Index_"+d.actualIndex+"_Text").textContent,b=document.getElementById(this.maps.element.id+"_Legend_Index_"+d.actualIndex)),this.oldShapeElement=p.LegendEle;var v=this.maps.legendSelectionCollection.length;if(y===f){var S=!0;if(this.maps.legendSelectionCollection)for(var m=0;m<this.maps.legendSelectionCollection.length;m++)if(this.maps.legendSelectionCollection[m].legendElement===p.LegendEle){S=!1;break}if("highlight"===r&&S){var _=this.isTargetSelected(p,this.shapeHighlightCollection);(void 0===_||_&&!_.IsSelected)&&this.pushCollection(b,this.shapeHighlightCollection,s[d.actualIndex],this.maps.layers[l].shapeSettings);for(var x=0;x<this.shapeHighlightCollection.length;x++)p.LegendEle.id===this.shapeHighlightCollection[x].legendElement.id&&(this.shapeHighlightCollection[x].legendElement=p.LegendEle);if(v>0)for(var x=0;x<v;x++){if(p.LegendEle===this.maps.legendSelectionCollection[x].legendElement){this.maps.legendSelectionCollection[x].legendElement=p.LegendEle,this.removeShapeHighlightCollection();break}x===v-1&&(this.removeShapeHighlightCollection(),this.setColor(b,i.i(a.isNullOrUndefined)(n.fill)?b.getAttribute("fill"):n.fill,n.opacity.toString(),n.border.color,n.border.width.toString(),"highlight"))}else this.removeShapeHighlightCollection(),this.setColor(b,i.i(a.isNullOrUndefined)(n.fill)?b.getAttribute("fill"):n.fill,n.opacity.toString(),n.border.color,n.border.width.toString(),"highlight")}else if("selection"===r){var _=this.isTargetSelected(p,this.maps.legendSelectionCollection);if(v>0)for(var x=0;x<this.maps.legendSelectionCollection.length;)if(p.LegendEle===this.maps.legendSelectionCollection[x].legendElement||n.enableMultiSelect)x++;else{var O=this.maps.legendSelectionCollection[x],M=this.maps.selectedLegendElementId.indexOf(d.actualIndex);this.maps.selectedLegendElementId.splice(M,1),this.maps.legendSelectionCollection.splice(x,1),i.i(o._46)(O.legendElement),this.maps.shapeSelections=!0,x=0}if(_&&_.IsSelected&&("ShapeselectionMapStyle"===e.getAttribute("class")||"LineselectionMapStyle"===e.getAttribute("class"))){var C=0;if(n.enableMultiSelect)for(var m=0;m<p.Elements.length;m++)e.getAttribute("class")===p.Elements[m].getAttribute("class")&&C++;C<=1&&(n.enableMultiSelect||this.maps.legendSelection)&&(this.maps.selectedLegendElementId.splice(this.maps.selectedLegendElementId.indexOf(d.actualIndex),1),i.i(a.isNullOrUndefined)(p.LegendEle)||i.i(o._46)(p.LegendEle),this.maps.legendSelectionCollection.splice(_.SelectionIndex,1),this.maps.shapeSelections=!0)}else{if((void 0===_||_&&!_.IsSelected)&&!i.i(a.isNullOrUndefined)(b)){var L=this.getIndexofLegend(this.maps.legendSelectionCollection,b);-1===L&&this.pushCollection(b,this.maps.legendSelectionCollection,s[d.actualIndex],this.maps.layers[l].shapeSettings)}for(var P=!0,m=0;m<this.maps.selectedLegendElementId.length;m++)d.actualIndex===this.maps.selectedLegendElementId[m]&&(P=!1);if(P&&this.maps.selectedLegendElementId.push(d.actualIndex),this.maps.legendSelectionClass=n,this.removeLegend(this.shapeHighlightCollection),!i.i(a.isNullOrUndefined)(b)){this.setColor(b,i.i(a.isNullOrUndefined)(n.fill)?b.getAttribute("fill"):n.fill,n.opacity.toString(),n.border.color,n.border.width.toString(),"selection");var L=this.getIndexofLegend(this.maps.legendSelectionCollection,b);this.maps.legendSelectionCollection[L].MapShapeCollection.Elements.push(e)}this.maps.shapeSelections=!1}}else document.getElementsByClassName("highlightMapStyle").length>0&&(this.removeShapeHighlightCollection(),i.i(o._46)(document.getElementsByClassName("highlightMapStyle")[0]))}}else this.removeShapeHighlightCollection()},e.prototype.isTargetSelected=function(e,t){for(var n,o=0;o<t.length;o++)i.i(a.isNullOrUndefined)(e.LegendEle.getAttribute("id"))||e.LegendEle.getAttribute("id")!==t[o].legendElement.getAttribute("id")||(n={IsSelected:!0,SelectionIndex:o});return n},e.prototype.updateLegendElement=function(){for(var e=0;e<this.maps.legendSelectionCollection.length;e++)document.getElementById(this.maps.legendSelectionCollection[e].legendElement.id)&&(this.maps.legendSelectionCollection[e].legendElement=document.getElementById(this.maps.legendSelectionCollection[e].legendElement.id))},e.prototype.getIndexofLegend=function(e,t){return e.map(function(e){return e.legendElement}).indexOf(t)},e.prototype.removeAllSelections=function(){for(var e=0;e<this.maps.selectedElementId.length;e++){var t=document.getElementById(this.maps.selectedElementId[e]);i.i(o._46)(t)}for(var n=0;n<this.maps.selectedLegendElementId.length;n++){var r="Interactive"===this.maps.legendSettings.mode?this.maps.element.id+"_Legend_Index_":this.maps.element.id+"_Legend_Shape_Index_",t=r+this.maps.selectedLegendElementId[n],l=document.getElementById(t);i.i(a.isNullOrUndefined)(l)||i.i(o._46)(document.getElementById(t))}this.maps.legendSelectionCollection=[],this.maps.selectedLegendElementId=[],this.maps.selectedElementId=[]},e.prototype.legendIndexOnShape=function(e,t){var n,o,r,l=this.maps.layers[t].shapeDataPath,s=e[l],d=this.maps.legendSettings.mode,p=this.maps.legendModule.legendCollection;"Default"!==d||i.i(a.isNullOrUndefined)(this.maps.legendModule.totalPages)||(r=this.maps.legendModule.totalPages[this.maps.legendModule.currentPage].Collection);for(var h="Default"===d?r.length:1,u=0;u<p.length;u++){for(var c=p[u].data,m=0;m<h;m++)if("Default"!==d||p[u].text===r[m].DisplayText)for(var g=0;g<c.length;g++)s===c[g].name&&(n=m);for(var g=0;g<c.length;g++)s===c[g].name&&(o=u)}return{currentIndex:n,actualIndex:o}},e.prototype.shapeDataOnLegend=function(e){for(var t,n,o,r,l=this.maps.legendModule.legendCollection,s=this.maps.legendSettings,d=0;d<l.length;d++){for(var p=l[d].data,h=!1,u=[],c={Elements:[]},m=0;m<p.length;m++){var g=void 0;t=p[m].shapeIndex,n=p[m].layerIndex,o=p[m].dataIndex,r=p[m].pointIndex,g=-1===r?document.getElementById(this.maps.element.id+"_LayerIndex_"+n+"_shapeIndex_"+t+"_dataIndex_"+o):document.getElementById(this.maps.element.id+"_LayerIndex_"+n+"_shapeIndex_"+t+"_dataIndex_"+o+"_multiLine_"+r),e===g&&(h=!0),u.push(g)}if(h)return i.i(a.isNullOrUndefined)(c.LegendEle)&&(c.LegendEle="Default"===s.mode?document.getElementById(this.maps.element.id+"_Legend_Shape_Index_"+d):document.getElementById(this.maps.element.id+"_Legend_Index_"+d)),c.Elements=u,c}return null},e.prototype.shapesOfLegend=function(e){for(var t,n,o,r,l=parseFloat(e.id.charAt(e.id.length-1)),s=this.maps.legendModule.legendCollection[l].data,d=[],p=0;p<s.length;p++){var h=void 0;t=s[p].shapeIndex,n=s[p].layerIndex,o=s[p].dataIndex,r=s[p].pointIndex,h=-1===r?document.getElementById(this.maps.element.id+"_LayerIndex_"+n+"_shapeIndex_"+t+"_dataIndex_"+o):document.getElementById(this.maps.element.id+"_LayerIndex_"+n+"_shapeIndex_"+t+"_dataIndex_"+o+"_multiLine_"+r),i.i(a.isNullOrUndefined)(h)||d.push(h.id)}return d},e.prototype.legendToggle=function(){var e=this.maps,t=e.legendSettings;if(this.maps.selectedLegendElementId)for(var n=0;n<this.maps.selectedLegendElementId.length;n++){var o="Interactive"===t.mode?this.maps.element.id+"_Legend_Index_":this.maps.element.id+"_Legend_Shape_Index_",r=e.svgObject.querySelector("#"+o+this.maps.selectedLegendElementId[n]);if(!i.i(a.isNullOrUndefined)(r)){var l=i.i(a.isNullOrUndefined)(this.maps.legendSelectionClass.fill)?r.getAttribute("fill"):this.maps.legendSelectionClass.fill;this.setColor(r,l,this.maps.legendSelectionClass.opacity.toString(),this.maps.legendSelectionClass.border.color,this.maps.legendSelectionClass.border.width.toString(),"selection");for(var s=0;s<this.maps.legendSelectionCollection.length;s++)this.maps.legendSelectionCollection[s].legendElement.id===r.id&&(this.maps.legendSelectionCollection[s].legendElement=r);var d=this.getIndexofLegend(this.maps.legendSelectionCollection,r);if(-1===d){var p=this.maps.legendModule.legendCollection[this.maps.selectedLegendElementId[n]].data[n].layerIndex;this.pushCollection(r,this.maps.legendSelectionCollection,this.maps.legendModule.legendCollection[this.maps.selectedLegendElementId[n]],this.maps.layers[p].shapeSettings)}}}if(this.maps.toggledLegendId)for(var n=0;n<this.maps.toggledLegendId.length;n++){var h="Interactive"===t.mode?"#"+this.maps.element.id+"_Legend_Index_"+this.maps.toggledLegendId[n]+"_Text":"#"+this.maps.element.id+"_Legend_Text_Index_"+this.maps.toggledLegendId[n],u=e.svgObject.querySelector(h);i.i(a.isNullOrUndefined)(u)||u.setAttribute("fill","#E5E5E5");var c="Interactive"===t.mode?"#"+this.maps.element.id+"_Legend_Index_"+this.maps.toggledLegendId[n]:"#"+this.maps.element.id+"_Legend_Shape_Index_"+this.maps.toggledLegendId[n],m=e.svgObject.querySelector(c);i.i(a.isNullOrUndefined)(m)||m.setAttribute("fill","#E5E5E5")}},e.prototype.renderLegendBorder=function(){var e,t=this.maps,n=t.legendSettings,l=n.title.text,s={fontFamily:n.titleStyle.fontFamily,fontStyle:n.titleStyle.fontStyle,fontWeight:n.titleStyle.fontWeight,size:n.titleStyle.size,color:n.titleStyle.color,opacity:n.titleStyle.opacity},d=i.i(o._26)(this.legendItemRect.width+20,l,s),p=i.i(o.w)(d,s);this.legendBorderRect=new o.I(this.legendItemRect.x-10,this.legendItemRect.y-10-p.height,this.legendItemRect.width+20,this.legendItemRect.height+20+p.height+("Interactive"===n.mode?0:0!==this.page?10:0));var h={color:n.border.color,width:n.border.width,opacity:n.border.opacity};h.opacity=i.i(a.isNullOrUndefined)(h.opacity)?1:h.opacity;var u=new o.B(t.element.id+"_Legend_Border",n.background,h,1,this.legendBorderRect,null,null,"","");if(this.legendGroup.appendChild(t.renderer.drawRectangle(u)),this.getLegendAlignment(t,this.legendBorderRect.width,this.legendBorderRect.height,n),this.legendGroup.setAttribute("transform","translate( "+(this.translate.x+-this.legendBorderRect.x)+" "+(this.translate.y+-this.legendBorderRect.y)+" )"),"Float"!==n.position&&t.svgObject.appendChild(this.legendGroup),l){s.color=null!==s.color?s.color:this.maps.themeStyle.legendTitleFontColor,s.fontFamily=i.i(a.isNullOrUndefined)(s.fontFamily)?this.maps.themeStyle.fontFamily:s.fontFamily,s.size=i.i(a.isNullOrUndefined)(s.size)?this.maps.themeStyle.subTitleFontSize||r.a.legendTitleFont.size:s.size,s.fontWeight=i.i(a.isNullOrUndefined)(s.fontWeight)?this.maps.themeStyle.titleFontWeight||r.a.legendTitleFont.fontWeight:s.fontWeight,e=new o.y(t.element.id+"_LegendTitle",this.legendItemRect.x+this.legendItemRect.width/2,this.legendItemRect.y-p.height/2-5,"middle",d,"");var c=i.i(o.K)(e,s,s.color,this.legendGroup);c.setAttribute("aria-label",l),c.setAttribute("role","region")}},e.prototype.changeNextPage=function(e){this.currentPage=e.target.id.indexOf("_Left_Page_")>-1?this.currentPage-1:this.currentPage+1,this.legendGroup=this.maps.renderer.createGroup({id:this.maps.element.id+"_Legend_Group"}),this.maps.mapAreaRect=this.initialMapAreaRect,this.drawLegendItem(this.currentPage),i.i(a.isNullOrUndefined)(this.maps.legendModule)||"Float"!==this.maps.legendSettings.position||(this.maps.isTileMap?this.maps.mapLayerPanel.layerGroup.appendChild(this.maps.legendModule.legendGroup):this.maps.svgObject.appendChild(this.maps.legendModule.legendGroup)),i.i(o._41)(this.maps.element.id+"_Legend_Border",this.maps.element.id)&&(i.i(o._41)(this.maps.element.id+"_Legend_Border",this.maps.element.id).style.pointerEvents="none")},e.prototype.getLegendAlignment=function(e,t,n,r){var l,s,d;d=i.i(a.extend)({},e.mapAreaRect,d,!0);var p=d.x,h=d.y,u=d.height,c=d.width,m=e.availableSize.width,g=e.availableSize.height,y=i.i(a.isNullOrUndefined)(r.location.x)?0:r.location.x,f=i.i(a.isNullOrUndefined)(r.location.y)?0:r.location.y;if("Float"===r.position)this.translate=e.isTileMap?new o.s(y,f+2.5):new o.s(y+e.mapAreaRect.x,f+e.mapAreaRect.y),this.legendTotalRect=e.mapAreaRect;else{switch(r.position){case"Top":case"Bottom":d.height="Top"===r.position?u-n:u-n-20,l=m/2-t/2,s="Top"===r.position?h:h+d.height,d.y="Top"===r.position?h+n+(e.isTileMap?5:10):h-5;break;case"Left":case"Right":d.width=c-t-e.mapAreaRect.x,l="Left"===r.position?p+5:p+d.width+10,s=g/2-n/2,d.x="Left"===r.position?p+t+10:p}switch(r.alignment){case"Near":"Top"===r.position||"Bottom"===r.position?l=d.x-("Interactive"===r.mode?10:0):s=d.y-(r.height&&r.width||"Interactive"!==r.mode?0:e.mapAreaRect.x);break;case"Far":"Top"===r.position||"Bottom"===r.position?l=m-t-("Interactive"===r.mode?0:10):s=g-n-("Default"===r.mode?10:0)}(r.height||r.width)&&"Interactive"!==r.mode?this.legendTotalRect=e.mapAreaRect=e.totalRect=d:(e.totalRect=null,(r.height||r.width)&&"Interactive"===r.mode&&(e.totalRect=d),this.legendTotalRect=e.mapAreaRect=d),"Left"===r.position&&(e.mapAreaRect.width=d.width),this.translate=new o.s(l,s)}},e.prototype.getMarkersLegendCollections=function(e,t){var n=this;Array.prototype.forEach.call(t,function(t,r){var l,s=t.dataSource,d=t.legendText;Array.prototype.forEach.call(s,function(s,p){var h=!!i.i(a.isNullOrUndefined)(s[n.maps.legendSettings.showLegendPath])||s[n.maps.legendSettings.showLegendPath];if(t.visible&&h&&!i.i(a.isNullOrUndefined)(s.latitude)&&!i.i(a.isNullOrUndefined)(s.longitude)){if(t.template){l=i.i(o._36)(t.template,n.maps);var u=l(n.maps);(i.i(a.isNullOrUndefined)(u.childElementCount)?u[0]:u).querySelector("img").src}var c=i.i(a.isNullOrUndefined)(s[d])?"":s[d],m=i.i(a.isNullOrUndefined)(t.colorValuePath)?t.fill:s[t.colorValuePath],g=[];n.maps.legendSettings.removeDuplicateLegend?(g.push(n.getMarkerLegendData(e,c,m)),n.getOverallLegendItemsCollection(c,m,g,h)):(g.push({layerIndex:e,markerIndex:r,dataIndex:p,value:m,name:c,shape:i.i(a.isNullOrUndefined)(t.shapeValuePath)||i.i(a.isNullOrUndefined)(s[t.shapeValuePath])||""===s[t.shapeValuePath]?n.maps.legendSettings.useMarkerShape?t.shape:n.maps.legendSettings.shape:s[t.shapeValuePath]}),n.getOverallLegendItemsCollection(c,m,g,h))}})})},e.prototype.getMarkerLegendData=function(e,t,n){var o=this,r=[];return this.maps.layers[e].markerSettings.map(function(l,s){var d=l.dataSource;Array.prototype.forEach.call(d,function(l,d){var p=o.maps.layers[e].markerSettings[s];t!==l[p.legendText]&&""!==t||n!==(l[p.colorValuePath]||p.fill)||r.push({layerIndex:e,markerIndex:s,dataIndex:d,value:n,name:t,shape:i.i(a.isNullOrUndefined)(p.shapeValuePath)?p.shape:l[p.shapeValuePath]})})}),r},e.prototype.getRangeLegendCollection=function(e,t,n,r,l,s,d){for(var p,h=this,u=0,c=this.maps.legendSettings.fill,m=[],g=this,y=0,f=n;y<f.length;y++){var b=f[y];!function(n){if(!i.i(a.isNullOrUndefined)(n.from)&&!i.i(a.isNullOrUndefined)(n.to)){p=i.i(a.isNullOrUndefined)(n.label)?n.from+" - "+n.to:n.label,m=[];var y=!1;Array.prototype.forEach.call(r,function(a,r){var p=s.indexOf(".")>-1?Number(i.i(o.Q)(a,s)):parseFloat(a[s]);p>=n.from&&p<=n.to&&(y=!0,m.push(h.getLegendData(e,r,a,l,t,d,p)))}),y||m.push({layerIndex:e,shapeIndex:null,dataIndex:null,name:null,value:null});var f=i.i(a.isNullOrUndefined)(c)?"[object Array]"===Object.prototype.toString.call(n.color)?i.i(a.isNullOrUndefined)(n.value)?g.legendGradientColor(n,u):n.color[0]:n.color:c;u++,g.getOverallLegendItemsCollection(p,f,m,n.showLegend)}}(b)}},e.prototype.getOverallLegendItemsCollection=function(e,t,i,n){var o=[],a=this.maps.legendSettings;if(i.length>0&&n){for(var r=0;r<i.length;r++){var l=i[r];if(l.length>0)for(var s=0;s<l.length;s++)o.push(l[s]);else o.push(i[r]);o._isVisible=!0}if(!!this.maps.legendSettings.removeDuplicateLegend&&this.removeDuplicates(this.legendCollection,e,t))for(var r=0;r<this.legendCollection.length;r++)this.legendCollection[r].text===e&&this.legendCollection[r].fill===t&&this.legendCollection[r].data.push(o[0]);else this.legendCollection.push({text:e,fill:t,data:o,opacity:a.opacity,borderColor:a.shapeBorder.color,borderWidth:a.shapeBorder.width})}},e.prototype.removeDuplicates=function(e,t,i){for(var n=!1,o=0;o<e.length;o++)if((e[o].text===t||""===e[o].text)&&e[o].fill===i){n=!0;break}return n},e.prototype.getEqualLegendCollection=function(e,t,n,r,l,s,d){for(var p,h=this,u=this.maps.legendSettings.fill,c=[],m=[],g=[],y=[],f=this,b=0,v=n;b<v.length;b++){var S=v[b];!function(b){if(i.i(a.isNullOrUndefined)(b.value)){if(i.i(a.isNullOrUndefined)(b.minOpacity)&&i.i(a.isNullOrUndefined)(b.maxOpacity)&&i.i(a.isNullOrUndefined)(b.value)&&i.i(a.isNullOrUndefined)(b.from)&&i.i(a.isNullOrUndefined)(b.to)&&!i.i(a.isNullOrUndefined)(b.color)){if(Array.prototype.forEach.call(r,function(n,a){for(var r=s.indexOf(".")>-1?i.i(o.Q)(n,s):n[s],p=0;p<g.length;p++)r===g[p]&&y.push(h.getLegendData(e,a,n,l,t,d,r))}),0===g.length){var v=!1;Array.prototype.forEach.call(r,function(o,r){v=!1;for(var p=o[s],u=0;u<n.length;u++)i.i(a.isNullOrUndefined)(p)||isNaN(p)?v||(v=!1):p>=n[u].from&&p<=n[u].to&&(v=!0);v||y.push(h.getLegendData(e,r,o,l,t,d,p))})}p=i.i(a.isNullOrUndefined)(b.label)?"Others":b.label;var S="[object Array]"===Object.prototype.toString.call(b.color)?b.color[0]:b.color,_=S;f.getOverallLegendItemsCollection(p,_,y,b.showLegend)}}else{p=i.i(a.isNullOrUndefined)(b.label)?b.value:b.label,m=[];var x=!1;Array.prototype.forEach.call(r,function(n,a){var r=s.indexOf(".")>-1?i.i(o.Q)(n,s):n[s];r===b.value?(x=!0,-1===c.indexOf(r)&&c.push(r),m.push(h.getLegendData(e,a,n,l,t,d,r))):-1===g.indexOf(r)&&g.push(r)});for(var O=0;O<c.length;O++)for(var M=0;M<g.length;M++)if(c[O]===g[M]){var C=g.indexOf(c[O]);g.splice(C,1)}x||m.push({layerIndex:e,shapeIndex:null,dataIndex:null,name:null,value:null});var L=i.i(a.isNullOrUndefined)(u)?"[object Array]"===Object.prototype.toString.call(b.color)?b.color[0]:b.color:u;f.getOverallLegendItemsCollection(p,L,m,b.showLegend)}}(S)}},e.prototype.getDataLegendCollection=function(e,t,n,r,l,s,d){var p,h=this,u=this.maps.legendSettings.fill,c=this.maps.legendSettings.valuePath;i.i(a.isNullOrUndefined)(s)||i.i(a.isNullOrUndefined)(r)||Array.prototype.forEach.call(r,function(r,m){var g=!!i.i(a.isNullOrUndefined)(h.maps.legendSettings.showLegendPath)||!i.i(a.isNullOrUndefined)(r[h.maps.legendSettings.showLegendPath])&&r[h.maps.legendSettings.showLegendPath],y=s.indexOf(".")>-1?i.i(o.Q)(r,s):r[s],f=[],b=i.i(a.isNullOrUndefined)(u)?y:u;i.i(a.isNullOrUndefined)(y)||0!==n.length||(p=i.i(a.isNullOrUndefined)(r[c])?l.indexOf(".")>-1?i.i(o.Q)(r,l):r[l]:c.indexOf(".")>-1?i.i(o.Q)(r,c):r[c],f.push(h.getLegendData(e,m,r,l,t,d,y))),h.getOverallLegendItemsCollection(p,b,f,g)})},e.prototype.interactiveHandler=function(e){var t=e.target,n=this.maps.legendSettings,r=this.maps.element.id+"_Interactive_Legend",l="Layers"===n.type?"_shapeIndex_":"Markers"===n.type?"_MarkerIndex_":"_BubbleIndex_";if(t.id.indexOf(l)>1){var s=parseFloat(t.id.split("_LayerIndex_")[1].split("_")[0]),d=parseFloat(t.id.split(/_dataIndex_/i)[1].split("_")[0]),p=void 0,h=void 0,u=void 0;i.i(a.isNullOrUndefined)(i.i(o._41)(r,this.maps.element.id))||i.i(a.remove)(i.i(o._41)(r,this.maps.element.id));var c=this.maps.layersCollection[s],m="Layers"===n.type?c.visible:"Markers"===n.type?c.markerSettings[parseFloat(t.id.split("_MarkerIndex_")[1].split("_")[0])].visible:this.maps.getBubbleVisible(this.maps.layersCollection[s]);if(n.visible&&this.legendRenderingCollections.length>0&&"Interactive"===n.mode&&m)for(var g=this.maps.svgObject.getBoundingClientRect(),y=0;y<this.legendCollection.length;y++){var f=this.legendCollection[y],b=i.i(o._41)(this.maps.element.id+"_Legend_Index_"+y,this.maps.element.id),v=b.getBoundingClientRect(),S=new o.I(Math.abs(v.left-g.left),Math.abs(v.top-g.top),v.width,v.height);if(p=b.getAttribute("fill"),h=n.shapeBorder.color,u=n.shapeBorder.width,!i.i(a.isNullOrUndefined)(f.data))for(var _=f.data,x=this,O=0;O<_.length;O++){var M=function(e){if(d===_[e].dataIndex&&s===_[e].layerIndex){x.renderInteractivePointer(n,p,h,r,u,S);var t=i.i(o._41)(r,x.maps.element.id);return x.maps.isDevice&&!i.i(a.isNullOrUndefined)(t)&&(clearTimeout(x.arrowTimer),x.arrowTimer=setTimeout(function(){i.i(a.remove)(t)},2e3)),"break"}}(O);if("break"===M)break}}}else i.i(a.isNullOrUndefined)(i.i(o._41)(r,this.maps.element.id))||i.i(a.remove)(i.i(o._41)(r,this.maps.element.id))},e.prototype.renderInteractivePointer=function(e,t,i,n,a,r){var l,s,d,p="None"===e.orientation?"Top"===e.position||"Bottom"===e.position?"Horizontal":"Vertical":e.orientation;r.y="Float"===e.position&&this.maps.isTileMap?r.y-this.maps.mapAreaRect.y:r.y,"Horizontal"===p?e.invertedPointer?(s=r.x+r.width/2-("Float"===e.position&&this.maps.isTileMap?this.maps.mapAreaRect.x:0),d=r.y+r.height,l=" M "+s+" "+d+" L "+(s-10)+" "+(d+10)+" L "+(s+10)+" "+(d+10)+" Z "):(s=r.x+r.width/2-("Float"===e.position&&this.maps.isTileMap?this.maps.mapAreaRect.x:0),d=r.y,l=" M "+s+" "+d+" L "+(s-10)+" "+(d-10)+" L "+(s+10)+" "+(d-10)+" Z "):e.invertedPointer?(s=r.x-("Float"===e.position&&this.maps.isTileMap?this.maps.mapAreaRect.x:0),d=r.y+r.height/2,l=" M "+s+" "+d+" L "+(s-10)+" "+(d-10)+" L "+(s-10)+" "+(d+10)+" z "):(s=r.x+r.width-("Float"===e.position&&this.maps.isTileMap?this.maps.mapAreaRect.x:0),d=r.y+r.height/2,l=" M "+s+" "+d+" L "+(s+10)+" "+(d-10)+" L "+(s+10)+" "+(d+10)+" z ");var h=new o.z(n,t,a,i,1,1,"",l);"Float"===e.position&&this.maps.isTileMap?this.maps.mapLayerPanel.layerGroup.appendChild(this.maps.renderer.drawPath(h)):this.maps.svgObject.appendChild(this.maps.renderer.drawPath(h))},e.prototype.wireEvents=function(e){a.EventHandler.add(e,a.Browser.touchStartEvent,this.changeNextPage,this)},e.prototype.addEventListener=function(){this.maps.isDestroyed||(this.maps.on(a.Browser.touchMoveEvent,this.interactiveHandler,this),this.maps.on(a.Browser.touchEndEvent,this.interactiveHandler,this),this.maps.on(n.d,this.legendClick,this))},e.prototype.markerToggleSelection=function(e,t,n,o){e.setAttribute("fill",this.legendCollection[o].fill),e.setAttribute("stroke",this.maps.layers[t].markerSettings[n].border.color),e.setAttribute("fill-opacity",this.maps.layers[t].markerSettings[n].opacity.toString()),e.setAttribute("stroke-width",this.maps.layers[t].markerSettings[n].border.width.toString()),e.setAttribute("stroke-opacity",(i.i(a.isNullOrUndefined)(this.maps.layers[t].markerSettings[n].border.opacity)?this.maps.layers[t].markerSettings[n].opacity:this.maps.layers[t].markerSettings[n].border.opacity).toString());var r=this.maps.toggledElementId.indexOf(e.id);-1!==r&&this.maps.toggledElementId.splice(r,1)},e.prototype.bubbleToggleSelection=function(e,t,n,o){e.setAttribute("fill",this.legendCollection[o].fill),e.setAttribute("stroke",this.maps.layers[t].bubbleSettings[n].border.color),e.setAttribute("fill-opacity",this.maps.layers[t].bubbleSettings[n].opacity.toString()),e.setAttribute("stroke-width",this.maps.layers[t].bubbleSettings[n].border.width.toString()),e.setAttribute("stroke-opacity",(i.i(a.isNullOrUndefined)(this.maps.layers[t].bubbleSettings[n].border.opacity)?this.maps.layers[t].bubbleSettings[n].opacity:this.maps.layers[t].bubbleSettings[n].border.opacity).toString())},e.prototype.legendClick=function(e){var t,n,r=this.maps.legendSettings.toggleLegendSettings.fill,l=this.maps.legendSettings.toggleLegendSettings.opacity,s=this.maps.legendSettings.toggleLegendSettings.border.color,d=this.maps.legendSettings.toggleLegendSettings.border.width,p=i.i(a.isNullOrUndefined)(this.maps.legendSettings.toggleLegendSettings.border.opacity)?this.maps.legendSettings.toggleLegendSettings.opacity:this.maps.legendSettings.toggleLegendSettings.border.opacity;if(!i.i(a.isNullOrUndefined)(e.parentNode)&&e.parentNode.id.indexOf(this.maps.element.id+"_Legend_Index_")>-1){var h=void 0,u=parseFloat(e.parentElement.id.substr((this.maps.element.id+"_Legend_Index_").length)),c=this.legendCollection[u].data,m=c._isVisible,g=void 0;if(this.maps.legendSettings.toggleLegendSettings.enable&&("Bubbles"===this.maps.legendSettings.type||"Markers"===this.maps.legendSettings.type))for(var y=0;y<this.maps.layers.length;y++)for(var f=0;f<("Bubbles"===this.maps.legendSettings.type?this.maps.layers[y].bubbleSettings.length:this.maps.layers[y].markerSettings.length);f++){for(var b=0;b<c.length;b++){g=this.legendCollection[u].data[b],h="Bubbles"===this.maps.legendSettings.type?i.i(o._41)(this.maps.element.id+"_LayerIndex_"+g.layerIndex+"_BubbleIndex_"+f+"_dataIndex_"+g.dataIndex,this.maps.element.id):i.i(o._41)(this.maps.element.id+"_LayerIndex_"+g.layerIndex+"_MarkerIndex_"+g.markerIndex+"_dataIndex_"+g.dataIndex,this.maps.element.id),i.i(a.isNullOrUndefined)(g.shape)||"Balloon"!==g.shape||(h="Bubbles"===this.maps.legendSettings.type?i.i(o._41)(this.maps.element.id+"_LayerIndex_"+g.layerIndex+"_BubbleIndex_"+f+"_dataIndex_"+g.dataIndex+"_Group",this.maps.element.id):i.i(o._41)(this.maps.element.id+"_LayerIndex_"+g.layerIndex+"_MarkerIndex_"+g.markerIndex+"_dataIndex_"+g.dataIndex+"_Group",this.maps.element.id),h=h.children[0]);var v=this.maps.toggledLegendId.indexOf(u);if(m&&null!==h){if(this.maps.legendSettings.toggleLegendSettings.applyShapeSettings?(h.setAttribute("fill",this.maps.layers[y].shapeSettings.fill),h.setAttribute("stroke",this.maps.layers[y].shapeSettings.border.color),h.setAttribute("fill-opacity",this.maps.layers[y].shapeSettings.opacity.toString()),h.setAttribute("stroke-width",(i.i(a.isNullOrUndefined)(this.maps.layers[y].shapeSettings.border.width)?0:this.maps.layers[y].shapeSettings.border.width).toString()),h.setAttribute("stroke-opacity",(i.i(a.isNullOrUndefined)(this.maps.layers[y].shapeSettings.border.opacity)?this.maps.layers[y].shapeSettings.opacity:this.maps.layers[y].shapeSettings.border.opacity).toString())):(h.setAttribute("fill",r),h.setAttribute("fill-opacity",l.toString()),h.setAttribute("stroke",s),h.setAttribute("stroke-width",d.toString()),h.setAttribute("stroke-opacity",p.toString())),"Markers"===this.maps.legendSettings.type){-1===v&&this.maps.toggledLegendId.push(u);var S=this.maps.toggledElementId.indexOf(h.id);-1===S&&this.maps.toggledElementId.push(h.id)}null!==e&&(t=i.i(o._41)(this.maps.element.id+"_Legend_Shape_Index_"+u,this.maps.element.id),n=i.i(o._41)(this.maps.element.id+"_Legend_Text_Index_"+u,this.maps.element.id),this.maps.legendSettings.toggleLegendSettings.applyShapeSettings?this.setToggleAttributes(n,t,this.maps.layers[y].shapeSettings.fill,this.maps.layers[y].shapeSettings.opacity,this.maps.layers[y].shapeSettings.border.color,i.i(a.isNullOrUndefined)(this.maps.layers[y].shapeSettings.border.width)?0:this.maps.layers[y].shapeSettings.border.width,i.i(a.isNullOrUndefined)(this.maps.layers[y].shapeSettings.border.opacity)?this.maps.layers[y].shapeSettings.opacity:this.maps.layers[y].shapeSettings.border.opacity,this.maps.layers[y].shapeSettings.fill):this.setToggleAttributes(n,t,r,l,s,d,p,r))}else"Markers"===this.maps.legendSettings.type?(-1!==v&&0===b&&this.maps.toggledLegendId.splice(v,1),this.markerToggleSelection(h,y,f,u)):this.bubbleToggleSelection(h,y,f,u),null!==e&&(t=i.i(o._41)(this.maps.element.id+"_Legend_Shape_Index_"+u,this.maps.element.id),n=i.i(o._41)(this.maps.element.id+"_Legend_Text_Index_"+u,this.maps.element.id),this.setToggleAttributes(n,t,this.legendCollection[u].fill,this.legendCollection[u].opacity,this.legendCollection[u].shapeBorder.color,this.legendCollection[u].shapeBorder.width,this.legendCollection[u].shapeBorder.opacity,this.maps.legendSettings.textStyle.color),"HorizontalLine"!==this.maps.legendSettings.shape&&"VerticalLine"!==this.maps.legendSettings.shape&&"Cross"!==this.maps.legendSettings.shape||t.setAttribute("stroke",this.legendCollection[u].fill))}c._isVisible=!m}if("Layers"===this.maps.legendSettings.type&&this.maps.legendSettings.toggleLegendSettings.enable){var _=void 0;this.removeCollections(e,u);var v=this.maps.toggledLegendId.indexOf(u);-1!==v&&(m=!1);for(var f=0;f<this.maps.layers.length;f++)for(var b=0;b<c.length;b++)if(g=this.legendCollection[u].data[b],null!==(_=i.i(o._41)(this.maps.element.id+"_LayerIndex_"+g.layerIndex+"_shapeIndex_"+g.shapeIndex+"_dataIndex_"+g.dataIndex,this.maps.element.id))){var x=this.maps.toggledElementId.indexOf(_.id);m?(0===b&&this.maps.toggledLegendId.push(u),-1===x&&this.maps.toggledElementId.push(_.id),this.maps.legendSettings.toggleLegendSettings.applyShapeSettings?(_.setAttribute("fill",this.maps.layers[f].shapeSettings.fill),_.setAttribute("fill-opacity",this.maps.layers[f].shapeSettings.opacity.toString()),_.setAttribute("stroke",this.maps.layers[f].shapeSettings.border.color),_.setAttribute("stroke-width",(i.i(a.isNullOrUndefined)(this.maps.layers[f].shapeSettings.border.width)?0:this.maps.layers[f].shapeSettings.border.width).toString()),_.setAttribute("stroke-opacity",(i.i(a.isNullOrUndefined)(this.maps.layers[f].shapeSettings.border.opacity)?this.maps.layers[f].shapeSettings.opacity:this.maps.layers[f].shapeSettings.border.opacity).toString())):(_.setAttribute("fill",r),_.setAttribute("fill-opacity",l.toString()),_.setAttribute("stroke",s),_.setAttribute("stroke-width",d.toString()),_.setAttribute("stroke-opacity",p.toString())),null!==e&&(n=i.i(o._41)(this.maps.element.id+"_Legend_Text_Index_"+u,this.maps.element.id),t=i.i(o._41)(this.maps.element.id+"_Legend_Shape_Index_"+u,this.maps.element.id),this.maps.legendSettings.toggleLegendSettings.applyShapeSettings?this.setToggleAttributes(n,t,this.maps.layers[f].shapeSettings.fill,this.maps.layers[f].shapeSettings.opacity,this.maps.layers[f].shapeSettings.border.color,i.i(a.isNullOrUndefined)(this.maps.layers[f].shapeSettings.border.width)?0:this.maps.layers[f].shapeSettings.border.width,i.i(a.isNullOrUndefined)(this.maps.layers[f].shapeSettings.border.opacity)?this.maps.layers[f].shapeSettings.opacity:this.maps.layers[f].shapeSettings.border.opacity,this.maps.layers[f].shapeSettings.fill):this.setToggleAttributes(n,t,r,l,s,d,p,r))):(-1!==v&&0===b&&this.maps.toggledLegendId.splice(v,1),-1!==x&&this.maps.toggledElementId.splice(x,1),_.setAttribute("fill",this.legendCollection[u].fill),_.setAttribute("stroke-opacity",(i.i(a.isNullOrUndefined)(this.maps.layers[f].shapeSettings.border.opacity)?this.maps.layers[f].shapeSettings.opacity:this.maps.layers[f].shapeSettings.border.opacity).toString()),_.setAttribute("stroke-width",(i.i(a.isNullOrUndefined)(this.maps.layers[f].shapeSettings.border.width)?0:this.maps.layers[f].shapeSettings.border.width).toString()),_.setAttribute("fill-opacity",this.maps.layers[f].shapeSettings.opacity.toString()),_.setAttribute("stroke",this.maps.layers[f].shapeSettings.border.color),null!==e&&(n=i.i(o._41)(this.maps.element.id+"_Legend_Text_Index_"+u,this.maps.element.id),t=i.i(o._41)(this.maps.element.id+"_Legend_Shape_Index_"+u,this.maps.element.id),this.setToggleAttributes(n,t,this.legendCollection[u].fill,this.legendCollection[u].opacity,this.legendCollection[u].shapeBorder.color,this.legendCollection[u].shapeBorder.width,this.legendCollection[u].shapeBorder.opacity,"#757575")))}c._isVisible=!m}}else if(!i.i(a.isNullOrUndefined)(e.id)&&(e.id.indexOf(this.maps.element.id+"_Legend_Shape_Index")>-1||-1!==e.id.indexOf(this.maps.element.id+"_Legend_Index"))&&this.maps.legendSettings.visible&&-1===e.id.indexOf("_Text")){var O=void 0,u=parseFloat(e.id.split(this.maps.element.id+"_Legend_Index_")[1]),M=void 0,c=this.legendCollection[u].data,m=c._isVisible;if(("Bubbles"===this.maps.legendSettings.type||"Markers"===this.maps.legendSettings.type)&&this.maps.legendSettings.toggleLegendSettings.enable)for(var v=this.maps.toggledLegendId.indexOf(u),y=0;y<this.maps.layers.length;y++)for(var f=0;f<("Bubbles"===this.maps.legendSettings.type?this.maps.layers[y].bubbleSettings.length:this.maps.layers[y].markerSettings.length);f++){for(var b=0;b<c.length;b++)if(M=this.legendCollection[u].data[b],O="Bubbles"===this.maps.legendSettings.type?i.i(o._41)(this.maps.element.id+"_LayerIndex_"+M.layerIndex+"_BubbleIndex_"+f+"_dataIndex_"+M.dataIndex,this.maps.element.id):i.i(o._41)(this.maps.element.id+"_LayerIndex_"+M.layerIndex+"_MarkerIndex_"+f+"_dataIndex_"+M.dataIndex,this.maps.element.id),i.i(a.isNullOrUndefined)(M.shape)||"Balloon"!==M.shape||(O="Bubbles"===this.maps.legendSettings.type?i.i(o._41)(this.maps.element.id+"_LayerIndex_"+M.layerIndex+"_BubbleIndex_"+f+"_dataIndex_"+M.dataIndex+"_Group",this.maps.element.id):i.i(o._41)(this.maps.element.id+"_LayerIndex_"+M.layerIndex+"_MarkerIndex_"+f+"_dataIndex_"+M.dataIndex+"_Group",this.maps.element.id),O=O.children[0]),m&&null!==O){if("Markers"===this.maps.legendSettings.type){-1===v&&this.maps.toggledLegendId.push(u);var S=this.maps.toggledElementId.indexOf(O.id);-1===S&&this.maps.toggledElementId.push(O.id)}this.maps.legendSettings.toggleLegendSettings.applyShapeSettings?(O.setAttribute("fill",this.maps.layers[y].shapeSettings.fill),O.setAttribute("stroke",this.maps.layers[y].shapeSettings.border.color),O.setAttribute("stroke-width",(i.i(a.isNullOrUndefined)(this.maps.layers[y].shapeSettings.border.width)?0:this.maps.layers[y].shapeSettings.border.width).toString()),O.setAttribute("stroke-opacity",(i.i(a.isNullOrUndefined)(this.maps.layers[y].shapeSettings.border.opacity)?this.maps.layers[y].shapeSettings.opacity:this.maps.layers[y].shapeSettings.border.opacity).toString()),O.setAttribute("fill-opacity",this.maps.layers[y].shapeSettings.opacity.toString())):(O.setAttribute("fill",r),O.setAttribute("fill-opacity",l.toString()),O.setAttribute("stroke",s),O.setAttribute("stroke-width",d.toString()),O.setAttribute("stroke-opacity",p.toString())),null!==e&&(n=i.i(o._41)(this.maps.element.id+"_Legend_Index_"+u+"_Text",this.maps.element.id),t=i.i(o._41)(this.maps.element.id+"_Legend_Index_"+u,this.maps.element.id),this.maps.legendSettings.toggleLegendSettings.applyShapeSettings?this.setToggleAttributes(n,t,this.maps.layers[y].shapeSettings.fill,this.maps.layers[y].shapeSettings.opacity,this.maps.layers[y].shapeSettings.border.color,i.i(a.isNullOrUndefined)(this.maps.layers[y].shapeSettings.border.width)?0:this.maps.layers[y].shapeSettings.border.width,i.i(a.isNullOrUndefined)(this.maps.layers[y].shapeSettings.border.opacity)?this.maps.layers[y].shapeSettings.opacity:this.maps.layers[y].shapeSettings.border.opacity,this.maps.layers[y].shapeSettings.fill):this.setToggleAttributes(n,t,r,l,s,d,p,r))}else"Markers"===this.maps.legendSettings.type?(-1!==v&&0===b&&this.maps.toggledLegendId.splice(v,1),this.markerToggleSelection(O,y,f,u)):this.bubbleToggleSelection(O,y,f,u),null!==e&&(t=i.i(o._41)(this.maps.element.id+"_Legend_Index_"+u,this.maps.element.id),t.setAttribute("fill",this.legendCollection[u].fill),t.setAttribute("fill-opacity",this.legendCollection[u].opacity),t.setAttribute("stroke",this.legendCollection[u].shapeBorder.color),t.setAttribute("stroke-width",this.legendCollection[u].shapeBorder.width),t.setAttribute("stroke-opacity",this.legendCollection[u].shapeBorder.opacity),n=i.i(o._41)(this.maps.element.id+"_Legend_Index_"+u+"_Text",this.maps.element.id),n.setAttribute("fill",this.maps.legendSettings.textStyle.color));c._isVisible=!m}if("Layers"===this.maps.legendSettings.type&&this.maps.legendSettings.toggleLegendSettings.enable){var C=void 0;this.removeCollections(e,u);var L=this.maps.toggledLegendId.indexOf(u);-1!==L&&(m=!1);for(var y=0;y<this.maps.layers.length;y++)for(var b=0;b<c.length;b++)if(M=this.legendCollection[u].data[b],null!==(C=i.i(o._41)(this.maps.element.id+"_LayerIndex_"+M.layerIndex+"_shapeIndex_"+M.shapeIndex+"_dataIndex_"+M.dataIndex,this.maps.element.id))){var x=this.maps.toggledElementId.indexOf(C.id);m?(0===b&&this.maps.toggledLegendId.push(u),-1===x&&this.maps.toggledElementId.push(C.id),this.maps.legendSettings.toggleLegendSettings.applyShapeSettings?(C.setAttribute("fill",this.maps.layers[0].shapeSettings.fill),C.setAttribute("stroke",this.maps.layers[0].shapeSettings.border.color),C.setAttribute("fill-opacity",this.maps.layers[y].shapeSettings.opacity.toString()),C.setAttribute("stroke-width",(i.i(a.isNullOrUndefined)(this.maps.layers[y].shapeSettings.border.width)?0:this.maps.layers[y].shapeSettings.border.width).toString()),C.setAttribute("stroke-opacity",(i.i(a.isNullOrUndefined)(this.maps.layers[y].shapeSettings.border.opacity)?this.maps.layers[y].shapeSettings.opacity:this.maps.layers[y].shapeSettings.border.opacity).toString())):(C.setAttribute("fill",r),C.setAttribute("fill-opacity",l.toString()),C.setAttribute("stroke",s),C.setAttribute("stroke-width",d.toString()),C.setAttribute("stroke-opacity",p.toString())),null!==e&&(t=i.i(o._41)(this.maps.element.id+"_Legend_Index_"+u,this.maps.element.id),n=i.i(o._41)(this.maps.element.id+"_Legend_Index_"+u+"_Text",this.maps.element.id),this.maps.legendSettings.toggleLegendSettings.applyShapeSettings?this.setToggleAttributes(n,t,this.maps.layers[0].shapeSettings.fill,this.maps.layers[y].shapeSettings.opacity,this.maps.layers[0].shapeSettings.border.color,i.i(a.isNullOrUndefined)(this.maps.layers[y].shapeSettings.border.width)?0:this.maps.layers[y].shapeSettings.border.width,i.i(a.isNullOrUndefined)(this.maps.layers[y].shapeSettings.border.opacity)?this.maps.layers[y].shapeSettings.opacity:this.maps.layers[y].shapeSettings.border.opacity,this.maps.layers[0].shapeSettings.fill):this.setToggleAttributes(n,t,r,l,s,d,p,r))):(-1!==L&&0===b&&this.maps.toggledLegendId.splice(L,1),-1!==x&&this.maps.toggledElementId.splice(x,1),C.setAttribute("fill-opacity",this.maps.layers[y].shapeSettings.opacity.toString()),C.setAttribute("stroke-width",(i.i(a.isNullOrUndefined)(this.maps.layers[y].shapeSettings.border.width)?0:this.maps.layers[y].shapeSettings.border.width).toString()),C.setAttribute("stroke",this.maps.layers[0].shapeSettings.border.color),C.setAttribute("stroke-opacity",(i.i(a.isNullOrUndefined)(this.maps.layers[y].shapeSettings.border.opacity)?this.maps.layers[y].shapeSettings.opacity:this.maps.layers[y].shapeSettings.border.opacity).toString()),C.setAttribute("fill",this.legendCollection[u].fill),null!==e&&(n=i.i(o._41)(this.maps.element.id+"_Legend_Index_"+u+"_Text",this.maps.element.id),t=i.i(o._41)(this.maps.element.id+"_Legend_Index_"+u,this.maps.element.id),this.setToggleAttributes(n,t,this.legendCollection[u].fill,this.legendCollection[u].opacity,this.legendCollection[u].shapeBorder.color,this.legendCollection[u].shapeBorder.width,this.legendCollection[u].shapeBorder.opacity,"#757575")))}c._isVisible=!m}}},e.prototype.removeCollections=function(e,t){this.removeLegendSelectionCollection(e);var i=this.getIndexofLegend(this.maps.legendSelectionCollection,e);-1!==i&&this.maps.legendSelectionCollection.splice(i,1),-1!==this.getIndexofLegend(this.legendHighlightCollection,e)&&this.legendHighlightCollection.splice(i,1);var n=this.getIndexofLegend(this.shapeHighlightCollection,e);-1!==n&&this.shapeHighlightCollection.splice(n,1);var o=this.maps.selectedLegendElementId.indexOf(t);-1!==o&&this.maps.selectedLegendElementId.splice(o,1)},e.prototype.removeEventListener=function(){this.maps.isDestroyed||(this.maps.off(a.Browser.touchMoveEvent,this.interactiveHandler),this.maps.off(a.Browser.touchEndEvent,this.interactiveHandler),this.maps.off(n.d,this.legendClick))},e.prototype.getLegendData=function(e,t,n,r,l,s,d){var p=[];if("[object Array]"===Object.prototype.toString.call(l))for(var h=0;h<l.length;h++){var u=l[h],c=r.indexOf(".")>-1?i.i(o.Q)(n,r):n[r],m=i.i(o._21)(n[r],s,u.properties),g=i.i(a.isNullOrUndefined)(c)||"string"!=typeof c?c:c.toLowerCase(),y=!i.i(a.isNullOrUndefined)(u.properties[m])&&isNaN(u.properties[m])?u.properties[m].toLowerCase():u.properties[m];if(y===g)if("MultiPoint"!==u.geometry.type)p.push({layerIndex:e,shapeIndex:h,dataIndex:t,name:n[r],value:d,pointIndex:-1});else for(var f=0;f<u.geometry.coordinates.length;f++)p.push({layerIndex:e,shapeIndex:h,dataIndex:t,name:n[r],value:d,pointIndex:f})}return p},e.prototype.setToggleAttributes=function(e,t,n,o,r,l,s,d){e.setAttribute("fill",d),t.setAttribute("fill",n),t.setAttribute("fill-opacity",o.toString()),t.setAttribute("stroke",r),t.setAttribute("stroke-width",l.toString()),i.i(a.isNullOrUndefined)(s)||t.setAttribute("stroke-opacity",s.toString())},e.prototype.legendGradientColor=function(e,t){var n,o="http://www.w3.org/2000/svg";if(!i.i(a.isNullOrUndefined)(e.color)&&"object"==typeof e.color){var r=document.createElementNS(o,"linearGradient"),l=1,s=this.maps.legendSettings.position,d="Top"===s||"Bottom"===s?"100":"0",p="Top"===s||"Bottom"===s?"0":"100";r.setAttribute("id","linear_"+t+"_"+this.maps.element.id),r.setAttribute("x1","0%"),r.setAttribute("y1","0%"),r.setAttribute("x2",d+"%"),r.setAttribute("y2",p+"%");for(var h=0;h<e.color.length;h++){var u=100/(e.color.length-1),c=document.createElementNS(o,"stop");c.setAttribute("offset",h*u+"%"),c.setAttribute("stop-color",e.color[h]),c.setAttribute("stop-opacity",l.toString()),r.appendChild(c)}this.legendLinearGradient=r;var m="url(#linear_"+t+"_"+this.maps.element.id+")";this.defsElement.appendChild(r),n=m}return n},e.prototype.getModuleName=function(){return"Legend"},e.prototype.destroy=function(){this.legendCollection=[],this.legendRenderingCollections=[],this.translate=null,this.legendBorderRect=null,this.initialMapAreaRect=null,this.legendTotalRect=null,this.totalPages=[],this.legendItemRect=null,this.legendGroup=null,this.shapeHighlightCollection=[],this.legendHighlightCollection=[],this.shapePreviousColor=[],this.selectedNonLegendShapes=[],this.legendLinearGradient=null,this.currentLayer=null,this.defsElement=null,this.legendElement=[],this.oldShapeElement=null,this.removeEventListener(),this.maps=null},e}()},function(e,t,i){"use strict";i.d(t,"a",function(){return r});var n=i(2),o=i(1),a=(i.n(o),i(0)),r=function(){function e(e){this.maps=e,this.trackElements=[],this.sameMarkerData=[],this.initialMarkerCluster=[],this.zoomedMarkerCluster=[]}return e.prototype.getMapsInstance=function(){return this.maps},e.prototype.markerRender=function(e,t,r,l,s){var d=this,p=0,h=0,u=0;e.translateType="marker";var c=e.layersCollection[r];this.markerSVGObject=e.renderer.createGroup({id:e.element.id+"_Markers_Group",class:"GroupElement"}),this.markerSVGObject.style.pointerEvents="auto";var m=i.i(o.createElement)("div",{id:e.element.id+"_LayerIndex_"+r+"_Markers_Template_Group",className:e.element.id+"_template"});m.style.cssText="overflow: hidden; position: absolute;pointer-events: none;top:"+e.mapAreaRect.y+"px;left:"+e.mapAreaRect.x+"px;height:"+e.mapAreaRect.height+"px;width:"+e.mapAreaRect.width+"px;";var g,y=0!==c.animationDuration||"Enable"===o.animationMode||i.i(o.isNullOrUndefined)(e.zoomModule);e.isTileMap||(g=!i.i(o.isNullOrUndefined)(e.zoomModule)&&e.zoomSettings.zoomFactor>1?i.i(a._31)(e,c,y):i.i(a._30)(e,c,y)),Array.prototype.forEach.call(c.markerSettings,function(y,f){var b=y.dataSource;Array.prototype.forEach.call(b,function(v,S){e.markerNullCount=f>0&&0===S?0:e.markerNullCount;var _={cancel:!1,name:n.q,fill:y.fill,height:y.height,width:y.width,imageUrl:y.imageUrl,shape:y.shape,template:y.template,data:v,maps:e,marker:y,border:y.border,colorValuePath:y.colorValuePath,shapeValuePath:y.shapeValuePath,imageUrlValuePath:y.imageUrlValuePath};e.trigger("markerRendering",_,function(x){_=i.i(a.R)(_,v),_=i.i(a.S)(_,v);var O=i.i(o.isNullOrUndefined)(y.longitudeValuePath)?i.i(o.isNullOrUndefined)(v.longitude)?i.i(o.isNullOrUndefined)(v.Longitude)?null:parseFloat(v.Longitude):parseFloat(v.longitude):Number(i.i(a.Q)(v,y.longitudeValuePath)),M=i.i(o.isNullOrUndefined)(y.latitudeValuePath)?i.i(o.isNullOrUndefined)(v.latitude)?i.i(o.isNullOrUndefined)(v.Latitude)?null:parseFloat(v.Latitude):parseFloat(v.latitude):Number(i.i(a.Q)(v,y.latitudeValuePath)),C=y.offset;if(!_.cancel&&y.visible&&!i.i(o.isNullOrUndefined)(O)&&!i.i(o.isNullOrUndefined)(M)){var L=e.element.id+"_LayerIndex_"+r+"_MarkerIndex_"+f+"_dataIndex_"+S,P=e.isTileMap?i.i(n._32)(new n._56(O,M),l,e.tileTranslatePoint,!0):i.i(a.h)(M,O,l,c,e);e.isTileMap&&(g="SubLayer"===c.type&&i.i(o.isNullOrUndefined)(e.zoomModule)?P=i.i(n._32)(new n._56(O,M),e.tileZoomLevel,e.tileTranslatePoint,!0):new Object);var w="AddMarker"===s?e.scale:g.scale,T="AddMarker"===s?e.translatePoint:g.location;!_.template||isNaN(P.x)||isNaN(P.y)?_.template||isNaN(P.x)||isNaN(P.y)||(p++,i.i(a.Y)(_,y,b,S,P,T,L,C,w,e,d.markerSVGObject)):(u++,i.i(a.Z)(_,void 0,L,v,f,m,P,T,w,C,e),e.renderReactTemplates())}h+=isNaN(M)||isNaN(O)?1:0,u+=_.cancel?1:0,p+=_.cancel?1:0,e.markerNullCount=i.i(o.isNullOrUndefined)(O)||i.i(o.isNullOrUndefined)(M)?e.markerNullCount+1:e.markerNullCount;var I=b.length-e.markerNullCount,k=!1;d.markerSVGObject.childElementCount===I-u-h&&"Template"!==s&&(t.appendChild(d.markerSVGObject),c.markerClusterSettings.allowClustering&&(e.svgObject.appendChild(d.markerSVGObject),e.element.appendChild(e.svgObject),("OSM"===c.layerType||-1!==c.urlTemplate.indexOf("openstreetmap")&&i.i(o.isNullOrUndefined)(c.shapeData))&&e.zoomSettings.enable?(k=i.i(a.T)(c,d.markerSVGObject,e,r,d.markerSVGObject,t,!0,!1),t.appendChild(d.markerSVGObject)):k=i.i(a.T)(c,d.markerSVGObject,e,r,d.markerSVGObject,t,!0,!1),e.renderReactTemplates())),m.childElementCount===I-p-h&&i.i(a._33)(e.element.id+"_Secondary_Element")&&(i.i(a._33)(e.element.id+"_Secondary_Element").appendChild(m),e.checkInitialRender&&c.markerClusterSettings.allowClustering&&!k&&(i.i(a.T)(c,m,e,r,d.markerSVGObject,t,!1,!1),e.renderReactTemplates()))})})})},e.prototype.calculateIndividualLayerMarkerZoomLevel=function(e,t,n){var o,r,l=Math.abs(this.maps.baseMapBounds.latitude.max-this.maps.baseMapBounds.latitude.min),s=Math.abs(this.maps.baseMapBounds.longitude.max-this.maps.baseMapBounds.longitude.min);o=Math.floor(Math.log(t/l)),o=o>n?n:o,r=Math.floor(Math.log(e/s)),r=r>n?n:r;var d=Math.min(o,r),p=Math.min(d,n-1);return this.maps.isTileMap||i.i(a._68)(p,this.maps),p},e.prototype.calculateZoomCenterPositionAndFactor=function(e){if(!i.i(o.isNullOrUndefined)(this.maps))if(this.maps.zoomSettings.shouldZoomInitially&&this.maps.markerModule){var t,n,r,l,s=void 0,d=void 0,p=void 0,h=this.maps.zoomSettings.maxZoom,u=this.maps.mapAreaRect.width,c=this.maps.mapAreaRect.height;if(this.maps.markerZoomedState=this.maps.markerZoomedState?this.maps.markerZoomedState:i.i(o.isNullOrUndefined)(this.maps.markerZoomFactor)?!this.maps.markerZoomedState:this.maps.markerZoomFactor>1?this.maps.markerZoomedState:!this.maps.markerZoomedState,this.maps.defaultState=this.maps.markerZoomedState?!this.maps.markerZoomedState:this.maps.defaultState,Array.prototype.forEach.call(e,function(e){0!==e.markerSettings.length&&Array.prototype.forEach.call(e.markerSettings,function(e){var a=e.dataSource;Array.prototype.forEach.call(a,function(e,a){var s=i.i(o.isNullOrUndefined)(e.latitude)?i.i(o.isNullOrUndefined)(e.Latitude)?null:parseFloat(e.Latitude):parseFloat(e.latitude),d=i.i(o.isNullOrUndefined)(e.longitude)?i.i(o.isNullOrUndefined)(e.Longitude)?null:parseFloat(e.Longitude):parseFloat(e.longitude);i.i(o.isNullOrUndefined)(s)||i.i(o.isNullOrUndefined)(d)||(t=i.i(o.isNullOrUndefined)(t)&&0===a?d:t,n=i.i(o.isNullOrUndefined)(n)&&0===a?s:n,r=i.i(o.isNullOrUndefined)(r)&&0===a?s:r,l=i.i(o.isNullOrUndefined)(l)&&0===a?d:l,t>d&&(t=d),r>s&&(r=s),l<d&&(l=d),n<s&&(n=s))})})}),!(i.i(o.isNullOrUndefined)(r)||i.i(o.isNullOrUndefined)(t)||i.i(o.isNullOrUndefined)(l)||i.i(o.isNullOrUndefined)(n))){d=(r+n)/2,p=(t+l)/2,this.maps.markerCenterLatitude=d,this.maps.markerCenterLongitude=p,(i.i(o.isNullOrUndefined)(this.maps.markerZoomCenterPoint)||this.maps.markerZoomedState)&&(this.maps.markerZoomCenterPoint={latitude:d,longitude:p});var m=void 0;this.maps.isTileMap||0===this.maps.baseMapRectBounds.min.x?(s=i.i(a._69)(r,n,t,l,u,c,this.maps,!1),this.maps.isTileMap?m=i.i(o.isNullOrUndefined)(this.maps.markerZoomFactor)?s:i.i(o.isNullOrUndefined)(this.maps.mapScaleValue)?s:this.maps.mapScaleValue>1&&1!==this.maps.markerZoomFactor?this.maps.mapScaleValue:s:(m=i.i(o.isNullOrUndefined)(this.maps.mapScaleValue)?s:1!==Math.floor(this.maps.scale)&&this.maps.mapScaleValue!==s&&i.i(o.isNullOrUndefined)(this.maps.shouldZoomCurrentFactor)?this.maps.mapScaleValue:s)!==this.maps.mapScaleValue||1!==this.maps.markerZoomFactor&&1!==this.maps.mapScaleValue||this.maps.enablePersistence||(m=s)):(s=this.calculateIndividualLayerMarkerZoomLevel(u,c,h),m=i.i(o.isNullOrUndefined)(this.maps.mapScaleValue)?s:this.maps.mapScaleValue!==s?this.maps.mapScaleValue:s),this.maps.markerZoomFactor=m}}else this.maps.markerZoomedState=!1,this.maps.markerZoomFactor>1&&(this.maps.markerCenterLatitude=null,this.maps.markerCenterLongitude=null,this.maps.markerZoomFactor=1,this.maps.enablePersistence||(this.maps.mapScaleValue=1)),this.maps.isTileMap&&!this.maps.enablePersistence&&this.maps.mapScaleValue<=1&&(this.maps.tileZoomLevel=0===this.maps.mapScaleValue?this.maps.isZoomByPosition?this.maps.tileZoomLevel:1:this.maps.mapScaleValue,1===this.maps.mapScaleValue&&1===this.maps.markerZoomFactor&&(this.maps.tileTranslatePoint.x=0,this.maps.tileTranslatePoint.y=0))},e.prototype.markerClick=function(e){var t=e.target.id;if(-1===t.indexOf(this.maps.element.id)){var a=e.target.closest("."+this.maps.element.id+"_marker_template_element");!i.i(o.isNullOrUndefined)(a)&&a.id.indexOf("_MarkerIndex_")>-1&&(t=a.id)}if(!(-1===t.indexOf("_LayerIndex_")||t.indexOf("_cluster_")>0)){var r=this.getMarker(t);if(!i.i(o.isNullOrUndefined)(r)){r.marker.enableDrag&&(document.getElementById(this.maps.element.id+"_svg").style.cursor="grabbing");var l={cancel:!1,name:n.s,data:r.data,maps:this.maps,marker:r.marker,target:t,x:e.clientX,y:e.clientY,latitude:r.data.latitude||r.data.Latitude,longitude:r.data.longitude||r.data.Longitude,value:r.data.name};if(this.maps.trigger(n.s,l),r.marker.enableDrag){var s=!1,d=parseInt(t.split("_LayerIndex_")[1].split("_")[0],10),p=parseInt(t.split("_MarkerIndex_")[1].split("_")[0],10),h=parseInt(t.split("_dataIndex_")[1].split("_")[0],10),u=this.maps.layers[d].markerSettings[p];if(this.sameMarkerData.length>0&&(s=this.sameMarkerData[0].data.filter(function(e){return e.index===h}).length>0&&this.sameMarkerData[0].layerIndex===d&&this.sameMarkerData[0].markerIndex===p),!s){var c={name:n.t,x:e.clientX,y:e.clientY,latitude:r.data.latitude||r.data.Latitude,longitude:r.data.longitude||r.data.Longitude,layerIndex:d,markerIndex:p,dataIndex:h};this.maps.trigger(n.t,c),this.maps.markerDragArgument={targetId:t,x:e.clientX,y:e.clientY,latitude:r.data.latitude||r.data.Latitude,longitude:r.data.longitude||r.data.Longitude,shape:i.i(o.isNullOrUndefined)(u.shapeValuePath)?u.shape:u.dataSource[h][u.shapeValuePath],layerIndex:d,markerIndex:p,dataIndex:h}}}}}},e.prototype.markerClusterClick=function(e){var t=e.target.id;if(-1!==t.indexOf("_LayerIndex_")&&-1!==t.indexOf("_cluster_")){var r=this.getMarker(t);if(!i.i(o.isNullOrUndefined)(r)){r.clusterCollection.length>0&&this.maps.markerClusterExpand&&(i.i(a._37)(this.maps.element.id+"_mapsTooltip")&&this.maps.mapsTooltipModule.tooltipTargetID.indexOf("_MarkerIndex_")>-1&&i.i(a._28)(this.maps.element.id+"_mapsTooltip"),this.sameMarkerData.length>0&&!this.maps.markerClusterExpandCheck?(this.maps.markerClusterExpandCheck=!0,i.i(a.W)(this.sameMarkerData,this.maps)):(this.sameMarkerData=r.clusterCollection,this.maps.markerClusterExpandCheck=!1,i.i(a.X)(this.sameMarkerData,this.maps,this.markerSVGObject,!0)));var l={cancel:!1,name:n.v,data:r,maps:this.maps,target:t,x:e.clientX,y:e.clientY,latitude:r.data.latitude||r.data.Latitude,longitude:r.data.longitude||r.data.Longitude,markerClusterCollection:r.markCollection};this.maps.trigger(n.v,l)}}},e.prototype.getMarker=function(e){var t,i,n=e.split("_LayerIndex_"),o=parseInt(n[1].split("_")[0],10),a=this.maps.layers[o],r=[],l=[];if(this.maps.markerClusterExpand=a.markerClusterSettings.allowClusterExpand,e.indexOf("_MarkerIndex_")>-1){var s=parseInt(n[1].split("_MarkerIndex_")[1].split("_")[0],10),d=parseInt(n[1].split("_dataIndex_")[1].split("_")[0],10);if(i=a.markerSettings[s],!isNaN(s)){t=i.dataSource[d];var p=[];if(!i.template&&e.indexOf("_cluster_")>-1&&this.maps.layers[o].markerClusterSettings.allowClusterExpand&&Array.prototype.forEach.call(i.dataSource,function(e,i){e.latitude===t.latitude&&e.longitude===t.longitude&&p.push({data:t,index:i})}),e.indexOf("_cluster_")>-1){var h=!1,u=document.getElementById(e.indexOf("_datalabel_")>-1?"Balloon"===a.markerClusterSettings.shape?e.split("_datalabel_")[0]+"_Group":e.split("_datalabel_")[0]:"Balloon"===a.markerClusterSettings.shape?e+"_Group":e),c="Balloon"===a.markerClusterSettings.shape?u.children[0].textContent.split(",").map(Number):u.textContent.split(",").map(Number);p=[];for(var m=0,g=c;m<g.length;m++){var y=g[m];p.push({data:i.dataSource[y],index:y}),r.push(i.dataSource[y])}h=!1,l.push({data:p,layerIndex:o,markerIndex:s,dataIndex:d,targetClusterIndex:+(e.split("_cluster_")[1].indexOf("_datalabel_")>-1?e.split("_cluster_")[1].split("_datalabel_")[0]:e.split("_cluster_")[1]),isClusterSame:h})}return{marker:i,data:t,clusterCollection:l,markCollection:r}}}return null},e.prototype.markerMove=function(e){var t=e.target.id;if(!(-1===t.indexOf("_LayerIndex_")||t.indexOf("_cluster_")>0)){var a=this.getMarker(t);if(!i.i(o.isNullOrUndefined)(a)){a.marker.enableDrag&&(document.getElementById(this.maps.element.id+"_svg").style.cursor=i.i(o.isNullOrUndefined)(this.maps.markerDragArgument)?"pointer":"grabbing");var r={cancel:!1,name:n.w,data:a.data,maps:this.maps,target:t,x:e.clientX,y:e.clientY};this.maps.trigger(n.w,r)}}},e.prototype.markerClusterMouseMove=function(e){var t=e.target.id;if(-1!==t.indexOf("_LayerIndex_")&&-1!==t.indexOf("_cluster_")){var a=this.getMarker(t);if(this.maps.markerClusterExpand&&(e.target.style.cursor="pointer"),!i.i(o.isNullOrUndefined)(a)){var r={cancel:!1,name:n.x,data:a.data,maps:this.maps,target:t,x:e.clientX,y:e.clientY};this.maps.trigger(n.x,r)}}},e.prototype.initializeMarkerClusterList=function(){for(var e=0;e<this.maps.layers.length;e++)this.initialMarkerCluster[e]=[],this.zoomedMarkerCluster[e]=[]},e.prototype.getModuleName=function(){return"Marker"},e.prototype.destroy=function(){this.maps=null,this.trackElements=[],this.markerSVGObject=null,this.sameMarkerData=[],this.initialMarkerCluster=[],this.zoomedMarkerCluster=[]},e}()},function(e,t,i){"use strict";i.d(t,"a",function(){return r});var n=i(2),o=i(0),a=i(1),r=(i.n(a),function(){function e(e){this.maps=e}return e.prototype.renderNavigation=function(e,t,r){var l;if(!i.i(a.isNullOrUndefined)(this.maps)){var s=void 0,d=e.navigationLineSettings,p=void 0,h=[],u=void 0,c=void 0,m=void 0,g=void 0,y=void 0,f=void 0,b=void 0,v=void 0,S=void 0,_=void 0,x=void 0,O=void 0,M=void 0,C=void 0,L=void 0,P=void 0,w=void 0,T=void 0,I=void 0;l=this.maps.renderer.createGroup({id:this.maps.element.id+"_LayerIndex_"+r+"_line_Group"});for(var k=0;k<d.length;k++){if(u=d[k].latitude,p=d[k].longitude,c=!i.i(a.isNullOrUndefined)(d[k].visible)&&d[k].visible,m=i.i(a.isNullOrUndefined)(d[k].angle)?0:d[k].angle,g=d[k].width||1,y=d[k].color,f=d[k].dashArray,O=d[k].arrowSettings,S=!i.i(a.isNullOrUndefined)(O)&&O.showArrow,p.length===u.length&&c)for(var N=0;N<p.length;N++){var E=this.maps.isTileMap?i.i(n._32)(new o.s(p[N],u[N]),t,this.maps.tileTranslatePoint,!0):i.i(o.h)(u[N],p[N],t,e,this.maps);h.push(E)}T=this.maps.renderer.createGroup({id:this.maps.element.id+"_LayerIndex_"+r+"_NavigationGroup"+k});for(var F=0;F<h.length-1;F++){m=-1>m?-1:m,m=1<m?1:m;var z=this.maps.element.id+"_LayerIndex_"+r+"_NavigationIndex_"+k+"_Line"+F,A=this.convertRadius(h[F],h[F+1]);if(m<=1&&m>0&&(v=0,h[F].x>h[F+1].x&&(v=1)),m>=-1&&m<0&&(v=1,h[F].x>h[F+1].x&&(v=0)),S){_=O.color,x=O.size,w=i.i(a.isNullOrUndefined)(O.offSet)?0:O.offSet;var B=Math.round(x/2);M=O.position,C="Start"===M?"url(#triangle"+k+")":null,L="End"===M?"url(#triangle"+k+")":null,0!==P&&0===m&&(P="Start"===M?w:-w),P=i.i(a.isNullOrUndefined)(P)?0:P;var U=this.maps.element.id+"_triangle",j=this.maps.renderer.createDefs();j.innerHTML+='<marker id="triangle'+k+'"></marker>';var Z=j.querySelector("#triangle"+k);Z.setAttribute("markerWidth",x.toString()),Z.setAttribute("markerHeight",x.toString()),Z.setAttribute("refX",(B-P).toString()),Z.setAttribute("refY",B.toString()),Z.setAttribute("orient","auto");var R="M 0,0 L 0,"+x+" L "+B+", "+B+" Z";b=new o.z(U,_,g,y,1,1,f,R),s=this.maps.renderer.drawPath(b),Z.appendChild(s),j.appendChild(Z),T.appendChild(j)}if(m=Math.abs(m),I=0===m?"M "+h[F].x+","+h[F].y+"L "+h[F+1].x+","+h[F+1].y+" ":"M "+h[F].x+","+h[F].y+" A "+(A/2+(1-m)*A/(10*m))+" "+(A/2+(1-m)*A/(10*m))+" 0,0,"+v+" , "+h[F+1].x+","+h[F+1].y+" ",b=new o.z(z,"none",g,y,1,1,f,I),s=this.maps.renderer.drawPath(b),!i.i(a.isNullOrUndefined)(M)){"Start"===M?s.setAttribute("marker-start",C):s.setAttribute("marker-end",L)}i.i(o._0)(this.maps.selectedNavigationElementId,this.maps.navigationSelectionClass,s,"navigationlineselectionMapStyle"),T.appendChild(s),l.appendChild(T)}h=[]}}return l},e.prototype.convertRadius=function(e,t){var i=t.x-e.x,n=t.y-e.y;return Math.sqrt(Math.pow(i,2)+Math.pow(n,2))},e.prototype.getModuleName=function(){return"NavigationLine"},e.prototype.destroy=function(){this.maps=null},e}())},function(e,t,i){"use strict";i.d(t,"a",function(){return o});var n=i(0),o=function(){function e(e){}return e.prototype.polygonRender=function(e,t,o){var a=e.layersCollection[t],r=e.renderer.createGroup({id:e.element.id+"_LayerIndex_"+t+"_Polygons_Group"});return a.polygonSettings.polygons.map(function(l,s){var d=e.renderer.createGroup({id:e.element.id+"_LayerIndex_"+t+"_Polygons_Group_"+s}),p=l.points,h=i.i(n.i)(e,o,a,p),u=new n.z(e.element.id+"_LayerIndex_"+t+"_PolygonIndex_"+s,l.fill,l.borderWidth/o,l.borderColor,l.opacity,l.borderOpacity,"",h),c=e.renderer.drawPath(u);i.i(n._0)(e.selectedPolygonElementId,e.polygonSelectionClass,c,"PolygonselectionMapStyle"),d.appendChild(c),r.appendChild(d)}),r},e.prototype.getModuleName=function(){return"Polygon"},e.prototype.destroy=function(){},e}()},function(e,t,i){"use strict";i.d(t,"a",function(){return y});var n=i(1),o=(i.n(n),i(6)),a=(i.n(o),i(0)),r=i(5),l=i(3),s=i(4),d=i(10),p=i(0),h=i(11),u=i(2),c=i(26),m=(i.n(c),this&&this.__extends||function(){var e=function(t,i){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(t,i)};return function(t,i){function n(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(n.prototype=i.prototype,new n)}}()),g=this&&this.__decorate||function(e,t,i,n){var o,a=arguments.length,r=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(r=(a<3?o(r):a>3?o(t,i,r):o(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r},y=function(e){function t(t,o){var r=e.call(this,t,o)||this;return r.isTileMap=!1,r.isResize=!1,r.isReset=!1,r.baseSize=new a.a(0,0),r.translatePoint=new a.s(0,0),r.baseTranslatePoint=new a.s(0,0),r.zoomTranslatePoint=new a.s(0,0),r.markerZoomedState=!0,r.zoomPersistence=!1,r.defaultState=!0,r.centerPositionChanged=!1,r.isTileMapSubLayer=!1,r.markerNullCount=0,r.tileTranslatePoint=new a.s(0,0),r.baseTileTranslatePoint=new a.s(0,0),r.isDevice=!1,r.staticMapZoom=r.zoomSettings.enable?r.zoomSettings.zoomFactor:0,r.zoomNotApplied=!1,r.dataLabelShape=[],r.zoomShapeCollection=[],r.zoomLabelPositions=[],r.mouseDownEvent={x:null,y:null},r.mouseClickEvent={x:null,y:null},r.selectedElementId=[],r.selectedMarkerElementId=[],r.selectedBubbleElementId=[],r.selectedNavigationElementId=[],r.selectedPolygonElementId=[],r.selectedLegendElementId=[],r.legendSelectionCollection=[],r.shapeSelections=!0,r.legendSelection=!0,r.toggledLegendId=[],r.toggledElementId=[],r.checkInitialRender=!0,r.initialTileTranslate=new a.s(0,0),r.isMarkerZoomCompleted=!1,r.markerDragId="",r.initialCheck=!0,r.applyZoomReset=!1,r.markerClusterExpandCheck=!1,r.markerClusterExpand=!1,r.mouseMoveId="",r.shapeSelectionItem=[],r.markerDragArgument=null,i.i(n.setValue)("mergePersistData",r.mergePersistMapsData,r),r}return m(t,e),Object.defineProperty(t.prototype,"isShapeSelected",{get:function(){return this.mapSelect},enumerable:!0,configurable:!0}),t.prototype.mergePersistMapsData=function(){var e,t;try{t=window.localStorage}catch(e){t=null}if(i.i(n.isNullOrUndefined)(t)||(e=window.localStorage.getItem(this.getModuleName()+this.element.id)),!i.i(n.isNullOrUndefined)(e)&&""!==e){var o=JSON.parse(e),a=Object.keys(o);this.isProtectedOnChange=!0;for(var r=0,l=a;r<l.length;r++){var s=l[r];"object"!=typeof this[s]||i.i(n.isNullOrUndefined)(this[s])?this[s]=o[s]:i.i(n.extend)(this[s],o[s])}this.isProtectedOnChange=!1}},t.prototype.getLocalizedLabel=function(e){return this.localeObject.getConstant(e)},t.prototype.preRender=function(){this.isDevice=n.Browser.isDevice,this.initPrivateVariable(),this.allowServerDataBinding=!1,this.unWireEVents(),this.wireEVents(),this.setCulture()},t.prototype.renderElements=function(){this.isDestroyed||(this.trigger(l.a,{maps:this}),this.createSVG(),this.findBaseAndSubLayers(),!i.i(n.isNullOrUndefined)(this.markerModule)&&this.markerModule.getMapsInstance()&&this.markerModule.initializeMarkerClusterList(),this.createSecondaryElement(),this.addTabIndex(),this.themeStyle=i.i(s.c)(this.theme),this.renderBorder(),this.renderTitle(this.titleSettings,"title",null,null),this.renderArea(),this.processRequestJsonData(),this.renderComplete(),this.isAddLayer=!!this.isTileMap&&this.isAddLayer)},t.prototype.render=function(){this.renderElements()},t.prototype.processRequestJsonData=function(){var e=this,t=this.layersCollection.length-1;this.serverProcess={request:0,response:0};var o,a;Array.prototype.forEach.call(this.layersCollection,function(r,l){if(r.shapeData instanceof c.DataManager){e.serverProcess.request++,a=r.shapeData,o=r.query instanceof c.Query?r.query:new c.Query;var s=a.executeQuery(o);s.then(function(t){e.processResponseJsonData("DataManager",t,r,"ShapeData")})}else(r.shapeData instanceof p._66||r.shapeData)&&(i.i(n.isNullOrUndefined)(r.shapeData.dataOptions)||e.processAjaxRequest(r,r.shapeData,"ShapeData"));if(r.dataSource instanceof c.DataManager){e.serverProcess.request++,a=r.dataSource,o=r.query instanceof c.Query?r.query:new c.Query;var s=a.executeQuery(o);s.then(function(e){r.dataSource=i.i(p._70)(e)})}if(r.markerSettings.length>0)for(var d=0;d<r.markerSettings.length;d++)!function(t){if(r.markerSettings[t].dataSource instanceof c.DataManager){e.serverProcess.request++,a=r.markerSettings[t].dataSource,o=r.markerSettings[t].query instanceof c.Query?r.markerSettings[t].query:new c.Query;a.executeQuery(o).then(function(e){r.markerSettings[t].dataSource=i.i(p._70)(e)})}}(d);if(r.bubbleSettings.length>0)for(var d=0;d<r.bubbleSettings.length;d++)!function(t){if(r.bubbleSettings[t].dataSource instanceof c.DataManager){e.serverProcess.request++,a=r.bubbleSettings[t].dataSource,o=r.bubbleSettings[t].query instanceof c.Query?r.bubbleSettings[t].query:new c.Query;a.executeQuery(o).then(function(e){r.bubbleSettings[t].dataSource=i.i(p._70)(e)})}}(d);(r.dataSource instanceof p._66||!i.i(n.isNullOrUndefined)(r.dataSource.dataOptions))&&e.processAjaxRequest(r,r.dataSource,"DataSource"),e.serverProcess.request===e.serverProcess.response&&t===l&&e.processResponseJsonData(null)})},t.prototype.processAjaxRequest=function(e,t,o){var a=this;this.serverProcess.request++;var r=new n.Fetch(t.dataOptions,t.type,t.contentType);r.onSuccess=function(t){if(i.i(n.isNullOrUndefined)(t.type)||"application/octet-stream"!==t.type)a.processResponseJsonData("Fetch",t,e,o);else{var r=new FileReader,l=a;r.onload=function(){t=JSON.parse(r.result.toString()),l.processResponseJsonData("Fetch",t,e,o)},r.readAsText(t)}},r.send(t.sendData)},t.prototype.processResponseJsonData=function(e,t,o,a){if(this.serverProcess.response++,e&&("ShapeData"===a?o.shapeData="DataManager"===e?i.i(p._70)(t):t:o.dataSource="DataManager"===e?i.i(p._70)(t):t),i.i(n.isNullOrUndefined)(e)||this.serverProcess.request!==this.serverProcess.response)i.i(n.isNullOrUndefined)(e)&&this.renderMap();else{var r=this.layersCollection;this.layersCollection=[];for(var l=0;l<r.length;l++)r[l].isBaseLayer&&this.layersCollection.push(r[l]);for(var s=0;s<r.length;s++)r[s].isBaseLayer||this.layersCollection.push(r[s]);this.renderMap()}},t.prototype.renderMap=function(){this.legendModule&&this.legendSettings.visible&&this.legendModule.renderLegend(),this.createTile(),this.zoomSettings.enable&&this.zoomModule&&this.zoomModule.createZoomingToolbars(),i.i(n.isNullOrUndefined)(this.dataLabelModule)||(this.dataLabelModule.dataLabelCollections=[]),this.mapLayerPanel.measureLayerPanel(),i.i(n.isNullOrUndefined)(this.svgObject)||this.element.appendChild(this.svgObject),this.setSecondaryElementPosition();for(var e=0;e<this.layers.length;e++){if(this.layers[e].selectionSettings&&this.layers[e].selectionSettings.enable&&this.layers[e].initialShapeSelection.length>0&&this.checkInitialRender){var t=this.layers[e].selectionSettings.enableMultiSelect;this.layers[e].selectionSettings.enableMultiSelect=t||!0;for(var o=this.layers[e].initialShapeSelection,a=0;a<this.layers[e].initialShapeSelection.length;a++)this.shapeSelection(e,o[a].shapePath,o[a].shapeValue,!0);this.layers[e].selectionSettings.enableMultiSelect=t,e===this.layers.length-1&&(this.checkInitialRender=!1)}if(!this.isResize)for(var r=0;r<this.layers[e].markerSettings.length;r++)if(this.layers[e].markerSettings[r].selectionSettings&&this.layers[e].markerSettings[r].selectionSettings.enable&&this.layers[e].markerSettings[r].initialMarkerSelection.length>0)for(var l=this.layers[e].markerSettings[r].initialMarkerSelection,a=0;a<l.length;a++)this.markerInitialSelection(e,r,this.layers[e].markerSettings[r],l[a].latitude,l[a].longitude)}if(!i.i(n.isNullOrUndefined)(document.getElementById(this.element.id+"_tile_parent"))){var s,d=this.svgObject.getBoundingClientRect(),h=document.getElementById(this.element.id),u=document.getElementById(this.element.id+"_tile_parent"),c=document.getElementById(this.element.id+"_tiles"),m=u.getBoundingClientRect(),g=void 0,y=void 0;y=parseFloat(u.style.left);var f=i.i(p.w)(this.titleSettings.text,this.titleSettings.textStyle),b=i.i(p.w)(this.titleSettings.subtitleSettings.text,this.titleSettings.subtitleSettings.textStyle);this.isTileMap&&this.isTileMapSubLayer&&"Bottom"===this.legendSettings.position&&this.legendSettings.visible?"Default"!==this.legendSettings.mode?s=0!==f.width&&0!==f.height?parseFloat(u.style.top)+b.height/2-this.legendModule.legendBorderRect.height/2:parseFloat(u.style.top)-this.mapAreaRect.y:(y=this.legendModule.legendBorderRect.x,s=0!==f.width&&0!==f.height?parseFloat(u.style.top)+b.height/2-this.legendModule.legendBorderRect.y:parseFloat(u.style.top)+b.height/2):(g=d.bottom-m.bottom-h.offsetTop,s=parseFloat(u.style.top)),s=g<=11?s:i.i(n.isNullOrUndefined)(this.legendModule)||"Bottom"!==this.legendSettings.position?2*s:this.mapAreaRect.y,y=g<=11?y:i.i(n.isNullOrUndefined)(this.legendModule)?2*y:y,u.style.top=s+"px",u.style.left=y+"px",c.style.top=s+"px",c.style.left=y+"px",!i.i(n.isNullOrUndefined)(this.legendModule)&&this.legendModule.totalPages.length>0&&(u.style.height=c.style.height=this.legendModule.legendTotalRect.height+"px",u.style.width=c.style.width=this.legendModule.legendTotalRect.width+"px")}this.arrangeTemplate(),this.annotationsModule&&"0px"!==this.width&&"0px"!==this.height&&"0%"!==this.width&&"0%"!==this.height&&this.annotationsModule.renderAnnotationElements(),this.element.style.outline="none",this.element.style.position="relative";for(var e=0;e<document.getElementsByTagName("path").length-1;e++)document.getElementsByTagName("path")[e].id.indexOf("shapeIndex")>-1&&(document.getElementsByTagName("path")[e].style.outline="none");this.zoomingChange(),this.zoomModule&&this.isDevice&&this.zoomModule.removeToolbarOpacity(this.isTileMap?Math.round(this.tileZoomLevel):this.mapScaleValue,this.element.id+"_Zooming_"),this.isZoomByPosition||this.zoomNotApplied||this.triggerZoomEvent(),this.isResize=!1},t.prototype.triggerZoomEvent=function(){var e,t=this.getMinMaxLatitudeLongitude();e={maps:this,isResized:this.isResize,minLatitude:t.minLatitude,maxLatitude:t.maxLatitude,minLongitude:t.minLongitude,maxLongitude:t.maxLongitude,cancel:!1,name:"Loaded"},this.trigger("loaded",e)},t.prototype.markerSelection=function(e,t,n,o){var r={color:e.border.color,width:e.border.width/t.scale,opacity:e.border.opacity},l={opacity:e.opacity,fill:e.fill,border:r,target:n.id,cancel:!1,data:o,maps:t};i.i(a._37)("MarkerselectionMap")?i.i(a._44)("MarkerselectionMap","MarkerselectionMapStyle",l):document.body.appendChild(i.i(a._43)("MarkerselectionMap","MarkerselectionMapStyle",l)),(0===this.selectedMarkerElementId.length||e.enableMultiSelect)&&("g"===n.tagName?(n.children[0].setAttribute("class","MarkerselectionMapStyle"),this.selectedMarkerElementId.push(n.children[0].id)):(n.setAttribute("class","MarkerselectionMapStyle"),this.selectedMarkerElementId.push(n.id)))},t.prototype.markerInitialSelection=function(e,t,n,o,r){var l=n.selectionSettings;if(l.enable)for(var s=0;s<n.dataSource.length;s++){var d=n.dataSource[s];if(d.latitude===o&&d.longitude===r){var p=this.element.id+"_LayerIndex_"+e+"_MarkerIndex_"+t+"_dataIndex_"+s;this.markerSelection(l,this,i.i(a._37)(p),d)}}},t.prototype.renderArea=function(){var e=this.mapsArea.border.width,t=this.mapsArea.background;if(e>0||t||this.themeStyle.areaBackgroundColor){var o={opacity:i.i(n.isNullOrUndefined)(this.mapsArea.border.opacity)?1:this.mapsArea.border.opacity,color:this.mapsArea.border.color,width:this.mapsArea.border.width},a=new p.B(this.element.id+"_MapAreaBorder",t||this.themeStyle.areaBackgroundColor,o,1,this.mapAreaRect);this.svgObject.appendChild(this.renderer.drawRectangle(a))}},t.prototype.addTabIndex=function(){this.element.setAttribute("aria-label",this.description||"Maps Element"),this.element.setAttribute("role","region"),this.element.tabIndex=this.tabIndex},t.prototype.setSecondaryElementPosition=function(){var e=i.i(p._33)(this.element.id+"_Secondary_Element"),t=this.element.getBoundingClientRect(),o=i.i(p._33)(this.element.id+"_svg");if(!i.i(n.isNullOrUndefined)(o)){var a=o.getBoundingClientRect();e.style.left=Math.max(a.left-t.left,0)+"px",e.style.top=Math.max(a.top-t.top,0)+"px"}},t.prototype.zoomingChange=function(){var e,t;if(i.i(p._33)(this.element.id+"_Layer_Collections")&&this.zoomModule&&(this.zoomModule.layerCollectionEle=i.i(p._33)(this.element.id+"_Layer_Collections")),this.isTileMap&&i.i(p._33)(this.element.id+"_Tile_SVG")&&i.i(p._33)(this.element.id+"_tile_parent")){var o=i.i(p._33)(this.element.id+"_tile_parent"),a=i.i(p._33)(this.element.id+"_Tile_SVG"),r=i.i(p._33)(this.element.id+"_Tile_SVG_Parent"),l=o.getBoundingClientRect(),s=a.getBoundingClientRect();e=l.left-s.left,t=l.top-s.top,r.style.left=e+"px",r.style.top=t+"px",!i.i(n.isNullOrUndefined)(this.legendModule)&&this.legendModule.totalPages.length>0&&(o.style.width=a.style.width=this.legendModule.legendTotalRect.width.toString(),o.style.height=a.style.height=this.legendModule.legendTotalRect.height.toString(),r.style.width=this.legendModule.legendTotalRect.width+"px",r.style.height=this.legendModule.legendTotalRect.height+"px");var d=document.getElementsByClassName("template");if(!i.i(n.isNullOrUndefined)(d)&&d.length>0)for(var h=0;h<d.length;h++){var c=d[h];c.style.left=e+"px",c.style.top=t+"px"}}if(this.zoomSettings.zoomFactor>=0){this.zoomModule&&this.zoomModule.toolBarGroup&&this.zoomSettings.enable&&this.zoomModule.alignToolBar();var m=document.getElementById(this.element.id+"_Layer_Collections");if(!i.i(n.isNullOrUndefined)(m)&&m.childElementCount>0)for(var h=0;h<m.childNodes.length;h++){var g=m.childNodes[h];if("g"===g.tagName&&-1===g.id.indexOf("_Legend_Group"))for(var y=parseFloat(g.id.split("_LayerIndex_")[1].split("_")[0]),f=0;f<g.childNodes.length;f++){var b=g.childNodes[f];b.id.indexOf("_Markers_Group")>-1||b.id.indexOf("_bubble_Group")>-1||b.id.indexOf("_dataLableIndex_Group")>-1||i.i(u._131)(b,y,this.scale,this)}}this.zoomModule&&(this.previousScale!==this.scale||this.zoomNotApplied||this.isZoomByPosition)&&this.zoomModule.applyTransform(this,!0)}},t.prototype.createSecondaryElement=function(){if(i.i(n.isNullOrUndefined)(document.getElementById(this.element.id+"_Secondary_Element"))){var e=i.i(n.createElement)("div",{id:this.element.id+"_Secondary_Element"});e.style.cssText="position: relative;z-index:2;",this.element.appendChild(e)}},t.prototype.getMinMaxLatitudeLongitude=function(){var e=document.getElementById(this.element.id);if(i.i(n.isNullOrUndefined)(e))return{minLatitude:0,maxLatitude:0,minLongitude:0,maxLongitude:0};var t=e.getBoundingClientRect(),o=this.isTileMap?this.pointToLatLong(this.mapAreaRect.x-this.margin.left,-this.mapAreaRect.y):this.getGeoLocation(0,this.mapAreaRect.x+t.left,this.mapAreaRect.y),a=this.isTileMap?this.pointToLatLong(this.mapAreaRect.width,this.mapAreaRect.height-this.mapAreaRect.y):this.getGeoLocation(0,this.mapAreaRect.x+t.left+this.mapAreaRect.width,this.mapAreaRect.y+this.mapAreaRect.height);return{minLatitude:o.latitude,maxLatitude:a.latitude,minLongitude:o.longitude,maxLongitude:a.longitude}},t.prototype.arrangeTemplate=function(){var e=this;document.getElementById(this.element.id+"_Legend_Border")&&(document.getElementById(this.element.id+"_Legend_Border").style.pointerEvents="none");var t=document.getElementsByClassName(this.element.id+"_template");!i.i(n.isNullOrUndefined)(t)&&t.length>0&&i.i(p._33)(this.element.id+"_Layer_Collections")&&!this.isTileMap&&Array.prototype.forEach.call(t,function(t){var o=0,a=0;if(!i.i(n.isNullOrUndefined)(t)&&t.childElementCount>0){var r=i.i(p._33)(e.element.id+"_Layer_Collections").getBoundingClientRect(),l=i.i(p._33)(t.id).getBoundingClientRect();-1===t.id.indexOf("Marker")&&(o=e.isTileMap?0:r.left<l.left?-Math.abs(l.left-r.left):Math.abs(l.left-r.left),a=e.isTileMap?0:r.top<l.top?-Math.abs(l.top-r.top):Math.abs(l.top-r.top)),Array.prototype.forEach.call(t.childNodes,function(t){if(-1!==t.id.indexOf("Marker")){if("hidden"!==t.style.visibility){var n=i.i(p._33)(t.id).getBoundingClientRect();t.style.left=parseFloat(t.style.left)-(e.isTileMap?0:n.width/2)+"px",t.style.top=parseFloat(t.style.top)-(e.isTileMap?0:n.height/2)+"px"}}else t.style.left=parseFloat(t.style.left)+o+"px",t.style.top=parseFloat(t.style.top)+a+"px",t.style.transform="translate(-50%, -50%)"})}})},t.prototype.createTile=function(){var e=this.layersCollection[0];if(e.isBaseLayer&&("OSM"===e.layerType||"Bing"===e.layerType||"GoogleStaticMap"===e.layerType||"Google"===e.layerType||!i.i(n.isNullOrUndefined)(e.urlTemplate)&&""!==e.urlTemplate)){i.i(a._28)(this.element.id+"_tile_parent"),i.i(a._28)(this.element.id+"_tiles"),i.i(a._28)("animated_tiles");var t=i.i(n.createElement)("div",{id:this.element.id+"_tile_parent"});t.style.cssText="position: absolute; left: "+this.mapAreaRect.x+"px; right: "+this.margin.right+"px; top: "+(this.mapAreaRect.y+0)+"px; height: "+this.mapAreaRect.height+"px; width: "+this.mapAreaRect.width+"px; overflow: hidden;";var o=i.i(n.createElement)("div",{id:this.element.id+"_tiles"});o.style.cssText="position: absolute; left: "+this.mapAreaRect.x+"px; right: "+this.margin.right+"px; top: "+(this.mapAreaRect.y+0)+"px; height: "+this.mapAreaRect.height+"px; width: "+this.mapAreaRect.width+"px; overflow: hidden;",this.element.appendChild(t),this.element.appendChild(o)}},t.prototype.initPrivateVariable=function(){if(""===this.element.id){var e=document.getElementsByClassName("e-maps").length;this.element.id="maps_control_"+e}this.renderer=new o.SvgRenderer(this.element.id),this.mapLayerPanel=new d.a(this)},t.prototype.findBaseAndSubLayers=function(){var e=this,t=this.baseLayerIndex,o=[],a=[];this.layersCollection=[],Array.prototype.forEach.call(this.layers,function(e){"Layer"===e.type?o.push(e):a.push(e)});for(var r=0;r<o.length;r++){var l=o[r];if(l.visible&&t===r){l.isBaseLayer=!0,this.isTileMap=!("Geometry"===l.layerType&&!i.i(n.isNullOrUndefined)(l.shapeData)),this.layersCollection.push(l);break}if(r===o.length-1){this.layersCollection.push(o[0]);break}}a.map(function(t){t.visible&&e.layersCollection.push(t)})},t.prototype.renderBorder=function(){var e=this.border.width,t=this.svgObject.querySelector("#"+this.element.id+"_MapBorder");if((e>0||this.background||this.themeStyle.backgroundColor)&&i.i(n.isNullOrUndefined)(t)){var o={opacity:i.i(n.isNullOrUndefined)(this.border.opacity)?1:this.border.opacity,color:this.border.color,width:this.border.width},a=new p.B(this.element.id+"_MapBorder",this.background||this.themeStyle.backgroundColor,o,1,new p.I(e/2,e/2,this.availableSize.width-e,this.availableSize.height-e));this.svgObject.appendChild(this.renderer.drawRectangle(a))}else t.setAttribute("fill",this.background||this.themeStyle.backgroundColor)},t.prototype.renderTitle=function(e,t,o,a){var r,l={size:e.textStyle.size,color:e.textStyle.color,fontFamily:e.textStyle.fontFamily,fontWeight:e.textStyle.fontWeight,fontStyle:e.textStyle.fontStyle,opacity:e.textStyle.opacity},d=Math.abs(this.margin.left+this.margin.right-this.availableSize.width);if(l.fontFamily=i.i(n.isNullOrUndefined)(l.fontFamily)?this.themeStyle.fontFamily:l.fontFamily,l.fontWeight=l.fontWeight||this.themeStyle.titleFontWeight,l.size="title"===t?l.size||this.themeStyle.titleFontSize:l.size||this.themeStyle.subTitleFontSize||s.a.mapsSubTitleFont.size,e.text){i.i(n.isNullOrUndefined)(a)&&(a=this.renderer.createGroup({id:this.element.id+"_Title_Group"}));var h=i.i(p._26)(d,e.text,l),u=i.i(p.w)(h,l),c=i.i(n.isNullOrUndefined)(o)?new p.I(this.margin.left,this.margin.top,this.availableSize.width,this.availableSize.height):o,m=i.i(p._27)(c,e.alignment,u,t),g=new p.y(this.element.id+"_Map_"+t,m.x,m.y,"start",h),y=new p.I(m.x,m.y,u.width,u.height),f=i.i(p.K)(g,l,l.color||("title"===t?this.themeStyle.titleFontColor:this.themeStyle.subTitleFontColor),a);f.setAttribute("aria-label",e.text),f.setAttribute("role","region"),("title"===t&&!e.subtitleSettings.text||"subtitle"===t)&&(r=Math.abs(y.y+this.margin.bottom-this.availableSize.height),this.mapAreaRect=new p.I(this.margin.left,y.y+10,d,r-10)),"subtitle"!==t&&e.subtitleSettings.text?this.renderTitle(e.subtitleSettings,"subtitle",y,a):this.svgObject.appendChild(a)}else r=Math.abs(this.margin.top+this.margin.bottom-this.availableSize.height),this.mapAreaRect=new p.I(this.margin.left,this.margin.top,d,r)},t.prototype.createSVG=function(){this.removeSvg(),i.i(a.d)(this)},t.prototype.removeSvg=function(){if(i.i(a._28)(this.element.id+"_Secondary_Element"),i.i(a._28)(this.element.id+"_tile_parent"),i.i(a._28)(this.element.id+"_tiles"),this.svgObject){for(;this.svgObject.childNodes.length>0;)this.svgObject.removeChild(this.svgObject.firstChild);!this.svgObject.hasChildNodes()&&this.svgObject.parentNode&&i.i(n.remove)(this.svgObject)}this.clearTemplate()},t.prototype.wireEVents=function(){n.EventHandler.add(this.element,"click",this.mapsOnClick,this),n.EventHandler.add(this.element,"contextmenu",this.mapsOnRightClick,this),n.EventHandler.add(this.element,"dblclick",this.mapsOnDoubleClick,this),n.EventHandler.add(this.element,n.Browser.touchStartEvent,this.mouseDownOnMap,this),n.EventHandler.add(this.element,n.Browser.touchMoveEvent,this.mouseMoveOnMap,this),n.EventHandler.add(this.element,n.Browser.touchEndEvent,this.mouseEndOnMap,this),n.EventHandler.add(this.element,"pointerleave mouseleave",this.mouseLeaveOnMap,this),n.EventHandler.add(this.element,"keydown",this.keyDownHandler,this),n.EventHandler.add(this.element,"keyup",this.keyUpHandler,this),this.resizeEvent=this.mapsOnResize.bind(this),window.addEventListener(n.Browser.isTouch&&"orientation"in window&&"onorientationchange"in window?"orientationchange":"resize",this.resizeEvent)},t.prototype.unWireEVents=function(){n.EventHandler.remove(this.element,"click",this.mapsOnClick),n.EventHandler.remove(this.element,"contextmenu",this.mapsOnRightClick),n.EventHandler.remove(this.element,"dblclick",this.mapsOnDoubleClick),n.EventHandler.remove(this.element,n.Browser.touchStartEvent,this.mouseDownOnMap),n.EventHandler.remove(this.element,n.Browser.touchMoveEvent,this.mouseMoveOnMap),n.EventHandler.remove(this.element,n.Browser.touchEndEvent,this.mouseEndOnMap),n.EventHandler.remove(this.element,"pointerleave mouseleave",this.mouseLeaveOnMap),n.EventHandler.remove(this.element,"keydown",this.keyDownHandler),n.EventHandler.remove(this.element,"keyup",this.keyUpHandler),window.removeEventListener(n.Browser.isTouch&&"orientation"in window&&"onorientationchange"in window?"orientationchange":"resize",this.resizeEvent)},t.prototype.mouseLeaveOnMap=function(e){document.getElementsByClassName("highlightMapStyle").length>0&&this.legendModule&&(this.legendModule.removeShapeHighlightCollection(),i.i(a._46)(document.getElementsByClassName("highlightMapStyle")[0]))},t.prototype.keyUpHandler=function(e){var t=e.target.id;this.isTileMap&&this.removeTileMap(),"Tab"===e.code&&t.indexOf("_LayerIndex_")>-1&&t.indexOf("shapeIndex")>-1?this.keyboardHighlightSelection(t,e.type):-1===t.indexOf("_LayerIndex_")&&-1===t.indexOf("shapeIndex")&&i.i(p._40)("highlightMapStyle").length>0&&(i.i(a._46)(i.i(p._40)("highlightMapStyle")[0]),this.legendSettings.visible&&this.legendModule&&this.legendModule.removeShapeHighlightCollection())},t.prototype.keyboardHighlightSelection=function(e,t){var o=parseInt(e.split("_LayerIndex_")[1].split("_")[0],10),a=parseInt(e.split("_shapeIndex_")[1].split("_")[0],10),r=this.layers[o].shapeData.features.length>a?this.layers[o].shapeData.features[a].properties:null,l=parseInt(e.split("_dataIndex_")[1].split("_")[0],10),s=i.i(n.isNullOrUndefined)(l)?null:this.layers[o].dataSource[l];this.layers[o].selectionSettings.enable&&"keydown"===t&&this.selectionModule?(this.selectionModule.selectionsettings=this.layers[o].selectionSettings,this.selectionModule.selectionType="Shape",this.selectionModule.selectElement(event.target,o,s,r)):this.highlightModule&&this.layers[o].highlightSettings.enable&&"keyup"===t&&!event.target.classList.contains("ShapeselectionMapStyle")&&(this.highlightModule.highlightSettings=this.layers[o].highlightSettings,this.highlightModule.handleHighlight(event.target,o,s,r))},t.prototype.keyDownHandler=function(e){var t=this.zoomModule,o=e.target.id;if(("ArrowUp"===e.code||"ArrowDown"===e.code||"ArrowLeft"===e.code||"ArrowRight"===e.code)&&t){var r=document.getElementById(this.element.id+"_animated_tiles");this.isTileMap&&!i.i(n.isNullOrUndefined)(r)&&(this.currentTiles=r.cloneNode(!0))}if(this.zoomSettings.enable&&t&&("+"===e.key||"Equal"===e.code))t.performZoomingByToolBar("zoomin");else if(this.zoomSettings.enable&&t&&("-"===e.key||"Minus"===e.code))t.performZoomingByToolBar("zoomout");else if(this.zoomSettings.enable&&t&&82===e.keyCode)t.performZoomingByToolBar("reset"),t.isPanModeEnabled=!1;else if(this.zoomSettings.enable&&this.zoomSettings.enablePanning&&t&&("ArrowUp"===e.code||"ArrowDown"===e.code))e.preventDefault(),t.mouseDownLatLong.x=0,t.mouseMoveLatLong.y=this.mapAreaRect.height/7,t.panning("None",t.mouseDownLatLong.x,"ArrowUp"===e.code?-t.mouseMoveLatLong.y:t.mouseMoveLatLong.y,e),t.mouseDownLatLong.y=t.mouseMoveLatLong.y;else if(this.zoomSettings.enable&&this.zoomSettings.enablePanning&&t&&("ArrowLeft"===e.code||"ArrowRight"===e.code))e.preventDefault(),t.mouseDownLatLong.y=0,t.mouseMoveLatLong.x=this.mapAreaRect.width/7,t.panning("None","ArrowLeft"===e.code?-t.mouseMoveLatLong.x:t.mouseMoveLatLong.x,t.mouseDownLatLong.y,e),t.mouseDownLatLong.x=t.mouseMoveLatLong.x;else if("Enter"===e.code){if(o=e.target.id,e.preventDefault(),this.legendModule&&(o.indexOf("_Left_Page_Rect")>-1||o.indexOf("_Right_Page_Rect")>-1)){this.mapAreaRect=this.legendModule.initialMapAreaRect,this.legendModule.currentPage=o.indexOf("_Left_Page_")>-1?this.legendModule.currentPage-1:this.legendModule.currentPage+1,this.legendModule.legendGroup=this.renderer.createGroup({id:this.element.id+"_Legend_Group"}),this.legendModule.drawLegendItem(this.legendModule.currentPage);var l=document.getElementById(this.element.id+"_Paging_Text").textContent,s=l.split("/").map(Number);o.indexOf("_Left_Page_Rect")>-1?(1!==s[0]&&e.target.focus(),e.target.style.outlineColor=s[0]-1!==s[1]?"":"transparent"):o.indexOf("_Right_Page_Rect")>-1&&(s[0]!==s[1]&&e.target.focus(),e.target.style.outlineColor=s[0]!==s[1]+1?"":"transparent"),i.i(a._41)(this.element.id+"_Legend_Border",this.element.id)&&(i.i(a._41)(this.element.id+"_Legend_Border",this.element.id).style.pointerEvents="none")}o.indexOf("shapeIndex")>-1&&this.keyboardHighlightSelection(o,e.type)}this.zoomModule&&this.zoomModule.removeToolbarOpacity(this.isTileMap?Math.round(this.tileZoomLevel):this.mapScaleValue,this.mouseMoveId)},t.prototype.SelectedElement=function(e){var t=!1;return"ShapeselectionMapStyle"===e.getAttribute("class")&&(t=!0),t},t.prototype.mapsOnClick=function(e){var t=this,o=e.target,a=o.id,r=null,s=null;if(this.mouseClickEvent={x:e.x,y:e.y},-1===o.id.indexOf("_ToolBar")){var d=this.getClickLocation(a,e.pageX,e.pageY,o,e.layerX,e.layerY);i.i(n.isNullOrUndefined)(d)||(r=d.latitude,s=d.longitude);var p={cancel:!1,name:l.c,target:a,x:e.clientX,y:e.clientY,latitude:r,longitude:s,isShapeSelected:this.SelectedElement(o)};this.onclick?(p.name=l.d,this.trigger("onclick",p,function(i){t.clickHandler(e,p,o)})):this.trigger("click",p,function(i){t.clickHandler(e,p,o)})}this.zoomModule&&(this.zoomModule.removeToolbarOpacity(this.isTileMap?Math.round(this.tileZoomLevel):this.mapScaleValue,a),this.isDevice&&this.zoomModule.removeToolbarClass("","","","",""))},t.prototype.clickHandler=function(e,t,n){n.id.indexOf("shapeIndex")>-1&&(this.mergeCluster(),i.i(a._37)(this.element.id+"_mapsTooltip")&&this.mapsTooltipModule.tooltipTargetID.indexOf("_MarkerIndex_")>-1&&i.i(a._28)(this.element.id+"_mapsTooltip")),this.markerModule&&this.markerModule.markerClusterClick(e),t.cancel||this.notify(l.c,n),t.cancel||-1===n.id.indexOf("shapeIndex")||this.triggerShapeSelection(n)},t.prototype.triggerShapeSelection=function(e){var t=parseInt(e.id.split("_LayerIndex_")[1].split("_")[0],10),o=i.i(a._39)(e.id,this.layers[t].selectionSettings,this,l.i);o.cancel||!this.selectionModule||i.i(n.isNullOrUndefined)(this.shapeSelected)?o.cancel&&this.selectionModule&&i.i(n.isNullOrUndefined)(o.data)&&(i.i(a._46)(e),this.selectionModule.removedSelectionList(e)):i.i(a._44)(this.selectionModule.selectionType+"selectionMap",this.selectionModule.selectionType+"selectionMapStyle",o)},t.prototype.getMarkerClickLocation=function(e,t,n,o,r,l){document.getElementById(this.element.id+"_svg").style.cursor="grabbing";var s=i.i(a._37)(r.targetId),d=this.getClickLocation(r.targetId,e,t,s,n,o),h=this.isTileMap?i.i(p.j)(new a.H(d.longitude,d.latitude),this.tileZoomLevel,this.tileTranslatePoint,!0):i.i(p.h)(d.latitude,d.longitude,this.mapLayerPanel.currentFactor,this.layersCollection[r.layerIndex],this),u=this.translatePoint,c=this.isTileMap?h.x:(h.x+u.x)*this.scale,m=this.isTileMap?h.y:(h.y+u.y)*this.scale;if("Balloon"!==this.markerDragArgument.shape?s.setAttribute("transform","translate( "+c+" "+m+" )"):s.parentElement.setAttribute("transform","translate( "+c+" "+m+" )"),l){var g=this.layers[r.layerIndex].markerSettings[r.markerIndex];d=this.getClickLocation(r.targetId,e-g.offset.x,t-g.offset.y,s,n-g.offset.x,o-g.offset.y)}return d},t.prototype.getClickLocation=function(e,t,o,r,l,s,d){var p,h=0;if(-1===e.indexOf("_LayerIndex_")||this.isTileMap||i.i(n.isNullOrUndefined)(d)&&(parseInt(this.mouseDownEvent.x,10)!==parseInt(this.mouseClickEvent.x,10)||parseInt(this.mouseDownEvent.y,10)!==parseInt(this.mouseClickEvent.y,10)))this.isTileMap&&(!i.i(n.isNullOrUndefined)(d)||parseInt(this.mouseDownEvent.x,10)===parseInt(this.mouseClickEvent.x,10)&&parseInt(this.mouseDownEvent.y,10)===parseInt(this.mouseClickEvent.y,10))&&(p=this.getTileGeoLocation(l,s));else if(h=parseFloat(e.split("_LayerIndex_")[1].split("_")[0]),"Normal"===this.layers[h].geometryType)if(e.indexOf("_shapeIndex_")>-1){var u=r.parentElement,c=u.id.indexOf("_Point_Group")>-1||u.id.indexOf("_LineString_Group")>-1||u.id.indexOf("_MultiLineString_Group")>-1||u.id.indexOf("_Polygon_Group")>-1?u.parentElement:u,m=i.i(a.e)(t,o,c),g=this.mapLayerPanel.currentFactor*this.mapScaleValue,y=Math.abs(-this.baseMapBounds.longitude.min*g),f=Math.abs(this.baseMapBounds.latitude.max*g);p={latitude:Math.abs(this.baseMapBounds.latitude.max-m.y/g),longitude:Math.abs(m.x/g+this.baseMapBounds.longitude.min)},this.baseMapBounds.longitude.min<0&&y>m.x&&(p.longitude=-p.longitude),this.baseMapBounds.latitude.min<0&&f>m.y&&(p.latitude=-p.latitude)}else if(e.indexOf("_MarkerIndex_")>-1&&this.markerModule&&!this.markerDragArgument){var b=parseInt(e.split("_MarkerIndex_")[1].split("_")[0],10),v=parseInt(e.split("_dataIndex_")[1].split("_")[0],10);if(isNaN(b)||isNaN(v))p={latitude:null,longitude:null};else{var S=this.layers[h].markerSettings[b].dataSource[v];p={latitude:S.latitude,longitude:S.longitude}}}else if(e.indexOf("_MarkerIndex_")>-1&&this.markerModule&&this.markerDragArgument){var _=document.getElementById(this.element.id+"_LayerIndex_"+this.markerDragArgument.layerIndex),x=_.getBoundingClientRect(),O=new a.H(t>x.left?Math.abs(x.left-t):0,o>x.top?Math.abs(x.top-o):0),y=Math.abs(-this.baseMapBounds.longitude.min*this.mapLayerPanel.currentFactor),f=Math.abs(this.baseMapBounds.latitude.max*this.mapLayerPanel.currentFactor);p={latitude:Math.abs(this.baseMapBounds.latitude.max-O.y/(this.mapLayerPanel.currentFactor*this.scale)),longitude:Math.abs(O.x/(this.mapLayerPanel.currentFactor*this.scale)+this.baseMapBounds.longitude.min)},this.baseMapBounds.longitude.min<0&&y>O.x&&(p.longitude=-p.longitude),this.baseMapBounds.latitude.min<0&&f>O.y&&(p.latitude=-p.latitude)}else p={latitude:null,longitude:null};else p=this.getGeoLocation(h,t,o);return p},t.prototype.removeTileMap=function(){var e=document.getElementById(this.element.id+"_animated_tiles");if(!i.i(n.isNullOrUndefined)(this.currentTiles)&&e.childElementCount<this.currentTiles.childElementCount)for(var t=e.childElementCount-1;t>=this.currentTiles.childElementCount;t--)e.removeChild(e.children[t]);this.currentTiles=null},t.prototype.mouseEndOnMap=function(e){var t,o,a,r=0,l=0;if(-1!==e.type.indexOf("touch")?(this.isTouch=!0,a=e,r=t=a.changedTouches[0].pageX,o=a.changedTouches[0].pageY,l=o-(this.isTileMap?10:0),this.mouseClickEvent={x:t,y:o}):(this.isTouch="touch"===e.pointerType,t=e.pageX,o=e.pageY,r=e.layerX,l=e.layerY-(this.isTileMap?10:0)),this.isTileMap&&this.removeTileMap(),this.isTouch&&(this.titleTooltip(e,t,o,!0),i.i(n.isNullOrUndefined)(this.legendModule)||this.legendTooltip(e,e.pageX,e.pageY,!0)),this.notify(n.Browser.touchEndEvent,e),e.cancelable&&!this.isTouch&&e.preventDefault(),i.i(n.isNullOrUndefined)(this.markerDragArgument))document.getElementById(this.element.id+"_svg").style.cursor="auto";else{var s=this.markerDragArgument;this.mouseClickEvent.x=this.mouseDownEvent.x,this.mouseClickEvent.y=this.mouseDownEvent.y;var d=this.getMarkerClickLocation(t,o,r,l,this.markerDragArgument,!0),p=this.layers[s.layerIndex].markerSettings[s.markerIndex];document.getElementById(this.element.id+"_svg").style.cursor=p.enableDrag?"pointer":"grabbing";var h={name:"markerDragEnd",x:t,y:o,latitude:d.latitude,longitude:d.longitude,layerIndex:s.layerIndex,markerIndex:s.markerIndex,dataIndex:s.dataIndex};if(i.i(n.isNullOrUndefined)(p.latitudeValuePath)&&i.i(n.isNullOrUndefined)(p.longitudeValuePath)){var u=p.dataSource[s.dataIndex];i.i(n.isNullOrUndefined)(u.Longitude)||i.i(n.isNullOrUndefined)(u.Latitude)?(p.dataSource[s.dataIndex].latitude=h.latitude,p.dataSource[s.dataIndex].longitude=h.longitude):(p.dataSource[s.dataIndex].Latitude=h.latitude,p.dataSource[s.dataIndex].Longitude=h.longitude)}else p.dataSource[s.dataIndex][p.latitudeValuePath]=h.latitude,p.dataSource[s.dataIndex][p.longitudeValuePath]=h.longitude;this.markerDragId="",this.markerDragArgument=null,this.trigger("markerDragEnd",h)}return this.zoomModule&&this.isDevice&&(this.zoomModule.removeToolbarOpacity(this.isTileMap?Math.round(this.tileZoomLevel):this.scale,this.element.id+"_Zooming_"),this.zoomModule.removeToolbarClass("","","","","")),!1},t.prototype.mouseDownOnMap=function(e){this.mouseDownEvent={x:e.x,y:e.y},-1!==e.type.indexOf("touch")&&e.changedTouches&&(this.mouseDownEvent={x:e.changedTouches[0].pageX,y:e.changedTouches[0].pageY}),this.isDevice&&!i.i(n.isNullOrUndefined)(this.mapsTooltipModule)&&this.mapsTooltipModule.renderTooltip(e);var t=e.target;this.markerDragId=t.id;var o=document.getElementById(this.element.id+"_animated_tiles");if(this.isTileMap&&!i.i(n.isNullOrUndefined)(o)&&(this.currentTiles=o.cloneNode(!0)),-1===t.id.indexOf("_ToolBar")){var a=this.markerModule;(t.id.indexOf("shapeIndex")>-1||t.id.indexOf("Tile")>-1)&&this.mergeCluster(),a&&(a.markerClick(e),a.markerClusterClick(e)),this.bubbleModule&&this.bubbleModule.bubbleClick(e)}this.notify(n.Browser.touchStartEvent,e)},t.prototype.mergeCluster=function(){this.markerModule&&this.markerModule.sameMarkerData.length>0&&(!this.zoomModule||this.zoomModule.isSingleClick)&&(i.i(a.W)(this.markerModule.sameMarkerData,this),this.markerModule.sameMarkerData=[])},t.prototype.mapsOnRightClick=function(e){var t=e.target,o=t.id,a=null,r=null;if(this.mouseClickEvent=this.mouseDownEvent={x:e.x,y:e.y},-1===t.id.indexOf("_ToolBar")){var s=this.getClickLocation(o,e.pageX,e.pageY,t,e.layerX,e.layerY);i.i(n.isNullOrUndefined)(s)||(a=s.latitude,r=s.longitude);var d={cancel:!1,name:l.e,target:o,x:e.clientX,y:e.clientY,latitude:a,longitude:r,isShapeSelected:!1};this.trigger("rightClick",d)}},t.prototype.mapsOnDoubleClick=function(e){this.notify("dblclick",e);var t,i=e.target,n=i.id,o=0,a=null,r=null;if(-1===i.id.indexOf("_ToolBar")){-1===i.id.indexOf("_LayerIndex_")||this.isTileMap||this.mouseDownEvent.x!==e.clientX||this.mouseDownEvent.y!==e.clientY?this.isTileMap&&this.mouseDownEvent.x===e.clientX&&this.mouseDownEvent.y===e.clientY&&(t=this.getTileGeoLocation(e.layerX,e.layerY),a=t.latitude,r=t.longitude):(o=parseFloat(i.id.split("_LayerIndex_")[1].split("_")[0]),t=this.getGeoLocation(o,e.layerX,e.layerY),a=t.latitude,r=t.longitude);var s={cancel:!1,name:l.f,x:e.clientX,y:e.clientY,target:n,latitude:a,longitude:r,isShapeSelected:null};this.trigger("doubleClick",s)}},t.prototype.mouseMoveOnMap=function(e){var t;t="touchmove"===e.type?e.target:t=e.target,this.markerModule&&(this.markerModule.markerMove(e),this.markerModule.markerClusterMouseMove(e)),this.bubbleModule&&this.bubbleModule.bubbleMove(e),-1===t.id.indexOf("MarkerIndex")&&(document.getElementById(this.element.id+"_svg").style.cursor="auto"),this.onMouseMove(e),this.notify(n.Browser.touchMoveEvent,e)},t.prototype.onMouseMove=function(e){var t=e.target;this.mouseMoveId=t.id;var o,a,r=null,l=0,s=0;if(-1===e.type.indexOf("touch")?(o=e.pageX,a=e.pageY,l=e.layerX,s=e.layerY-(this.isTileMap?10:0),this.titleTooltip(e,e.pageX,e.pageY),i.i(n.isNullOrUndefined)(this.legendModule)||this.legendTooltip(e,e.pageX,e.pageY,!0)):(r=e.touches,l=o=r[0].clientX,s=a=r[0].clientY-(this.isTileMap?10:0)),!i.i(n.isNullOrUndefined)(this.markerDragArgument)){var d=this.markerDragArgument;this.mouseClickEvent.x=this.mouseDownEvent.x,this.mouseClickEvent.y=this.mouseDownEvent.y,this.getMarkerClickLocation(o,a,l,s,d,!1)}return this.zoomModule&&this.zoomModule.removeToolbarOpacity(this.isTileMap?Math.round(this.tileZoomLevel):this.scale,e.target.id),!1},t.prototype.legendTooltip=function(e,t,n,o){var r,l,s=e.target.id,d=this.legendModule.currentPage,p=e.target.id.split("_Index_")[1];d=this.legendModule.totalPages.length<=this.legendModule.currentPage?this.legendModule.totalPages.length-1:this.legendModule.currentPage<0?0:this.legendModule.currentPage;for(var h=0!==this.legendModule.totalPages.length?this.legendModule.totalPages[d].Collection.length:this.legendModule.totalPages.length,u=0;u<h;u++)l=this.legendModule.totalPages[d].Collection[u],r=l.DisplayText,s=e.target.id,p=e.target.id.split("_Index_")[1],s===this.element.id+"_Legend_Text_Index_"+p&&e.target.textContent.indexOf("...")>-1&&l.idIndex===parseInt(p,10)&&i.i(a._49)(r,this.legendSettings.textStyle.size,t,n,this.element.offsetWidth,this.element.offsetHeight,this.element.id+"_EJ2_Legend_Text_Tooltip",i.i(a._37)(this.element.id+"_Secondary_Element"),o);s!==this.element.id+"_Legend_Text_Index_"+p&&i.i(a._28)(this.element.id+"_EJ2_Legend_Text_Tooltip")},t.prototype.titleTooltip=function(e,t,n,o){var r=e.target.id;r===this.element.id+"_LegendTitle"&&e.target.textContent.indexOf("...")>-1?i.i(a._49)(this.legendSettings.title.text,this.legendSettings.titleStyle.size,t,n,this.element.offsetWidth,this.element.offsetHeight,this.element.id+"_EJ2_LegendTitle_Tooltip",i.i(a._37)(this.element.id+"_Secondary_Element"),o):i.i(a._28)(this.element.id+"_EJ2_LegendTitle_Tooltip"),r===this.element.id+"_Map_title"&&e.target.textContent.indexOf("...")>-1?i.i(a._49)(this.titleSettings.text,this.titleSettings.textStyle.size||this.themeStyle.titleFontSize,t,n,this.element.offsetWidth,this.element.offsetHeight,this.element.id+"_EJ2_Title_Tooltip",i.i(a._37)(this.element.id+"_Secondary_Element"),o):i.i(a._28)(this.element.id+"_EJ2_Title_Tooltip")},t.prototype.mapsOnResize=function(e){var t=this;if(!this.isDestroyed&&!this.isExportInitialTileMap){this.isResize=this.isReset=!0;var o={cancel:!1,name:l.g,previousSize:this.availableSize,currentSize:i.i(a.c)(this),maps:this};this.trigger(l.g,o),o.cancel||(this.resizeTo&&clearTimeout(this.resizeTo),!i.i(n.isNullOrUndefined)(this.element)&&this.element.classList.contains("e-maps")&&(this.resizeTo=setTimeout(function(){t.unWireEVents(),t.createSVG(),t.refreshing=!0,t.wireEVents(),t.render(),t.refreshing=!1},500)))}return!1},t.prototype.zoomByPosition=function(e,t){if(!this.isDestroyed){this.zoomNotApplied=this.isMarkerZoomCompleted=!1;var o=this.zoomSettings.zoomFactor===t;this.previousProjection=null,!this.isTileMap&&this.zoomModule?i.i(n.isNullOrUndefined)(e)?(this.zoomSettings.zoomFactor=t,this.isZoomByPosition=!0,this.mapScaleValue=null):(this.zoomSettings.zoomFactor=t,o=this.centerPosition.latitude===e.latitude&&this.centerPosition.longitude===e.longitude||o,this.centerPosition=e,this.isZoomByPosition=!0,this.mapScaleValue=null):this.zoomModule&&(this.tileZoomLevel=this.zoomSettings.zoomFactor=t,o=this.centerPosition.latitude===e.latitude&&this.centerPosition.longitude===e.longitude||o,this.centerPosition=e,this.isZoomByPosition=!0),o&&this.refresh()}},t.prototype.panByDirection=function(e,t){if(!this.isDestroyed){var i=0,n=0;switch(e){case"Left":i=-this.mapAreaRect.width/7;break;case"Right":i=this.mapAreaRect.width/7;break;case"Top":n=-this.mapAreaRect.height/7;break;case"Bottom":n=this.mapAreaRect.height/7}this.zoomModule&&this.zoomModule.panning(e,i,n,t)}},t.prototype.addLayer=function(e){if(!this.isDestroyed){var t=this.layers;t.push(e),this.isAddLayer=!0,this.layers=t}},t.prototype.removeLayer=function(e){if(!this.isDestroyed){var t=this.layers;t.splice(e,1),this.layers=t}},t.prototype.addMarker=function(e,t){if(!this.isDestroyed&&!i.i(n.isNullOrUndefined)(this.markerModule)){var o=document.getElementById(this.element.id+"_LayerIndex_"+e);if(t.length>0&&o){for(var a=0,r=t;a<r.length;a++){var l=r[a];this.layersCollection[e].markerSettings.push(new u._19(this,"markerSettings",l))}this.markerModule.markerRender(this,o,e,this.mapLayerPanel.currentFactor,"AddMarker"),this.arrangeTemplate()}}},t.prototype.shapeSelection=function(e,t,o,r){if(!this.isDestroyed){var l=void 0,s=void 0,d=Array.isArray(t)?t:Array(t);i.i(n.isNullOrUndefined)(r)&&(r=!0);var p=this.layers[e].selectionSettings;if(!p.enableMultiSelect&&this.legendSelection&&r&&this.removeShapeSelection(),"SubLayer"===this.layers[e].type)for(var h=0;h<this.layersCollection.length;h++)if(this.layersCollection[h].shapeData===this.layers[e].shapeData){s=h;break}if(p.enable)for(var u=void 0,c=void 0,m=void 0,g=void 0,y=void 0,f=void 0,b=this.layers[e].shapeData.features,h=0;h<b.length;h++)for(var v=0;v<d.length;v++){var S=!i.i(n.isNullOrUndefined)(b[h].properties[d[v]])&&isNaN(b[h].properties[d[v]])?b[h].properties[d[v]].toLowerCase():b[h].properties[d[v]],_=i.i(n.isNullOrUndefined)(o)||"string"!=typeof o?o:o.toLowerCase(),x=void 0;if(S===_){i.i(n.isNullOrUndefined)(this.layers[e].shapeSettings.colorValuePath)||(x=i.i(a._20)(this.layers[e].dataSource,b[h].properties,this.layers[e].shapeDataPath,this.layers[e].shapePropertyPath,this.layers[e]));var O=this.layers[e];if(this.baseLayerIndex>=0&&O.isBaseLayer?g=0:"SubLayer"===this.layers[e].type&&(g=s),u=this.element.id+"_LayerIndex_"+g+"_shapeIndex_"+h+"_dataIndex_"+x,l=i.i(a._37)(u),i.i(n.isNullOrUndefined)(x)&&i.i(n.isNullOrUndefined)(l)&&(u=this.element.id+"_LayerIndex_"+e+"_shapeIndex_"+h+"_dataIndex_null",l=i.i(a._37)(u)),m=parseInt(l.id.split("_shapeIndex_")[1].split("_")[0],10),y=this.layers[e].shapeData.features.length>m?this.layers[e].shapeData.features[m].properties:null,c=parseInt(l.id.split("_dataIndex_")[1].split("_")[0],10),f=i.i(n.isNullOrUndefined)(c)?null:this.layers[e].dataSource[c],r){i.i(a._45)(p,this,l,y,f),this.shapeSelectionClass=i.i(a._37)("ShapeselectionMap"),this.legendSettings.visible&&-1===l.id.indexOf("_MarkerIndex_")&&this.legendModule.shapeHighLightAndSelection(l,f,p,"selection",e);var M=!this.legendSettings.visible||this.legendModule.shapeToggled;if(M&&(l.setAttribute("class","ShapeselectionMapStyle"),-1===this.selectedElementId.indexOf(l.getAttribute("id"))&&this.selectedElementId.push(l.getAttribute("id")),!p.enableMultiSelect))return}else{this.legendSelection=!p.enableMultiSelect&&!this.legendSelection||this.legendSelection,this.legendSettings.visible&&-1===l.id.indexOf("_MarkerIndex_")&&"ShapeselectionMapStyle"===l.getAttribute("class")&&this.legendModule.shapeHighLightAndSelection(l,f,p,"selection",e);var M=!this.legendSettings.visible||this.legendModule.shapeToggled;if(M){i.i(a._46)(l);var C=this.selectedElementId.indexOf(l.getAttribute("id"));-1!==C&&(this.selectedElementId.splice(C,1),!p.enableMultiSelect&&this.legendSelection&&this.selectedElementId.length>0&&this.removeShapeSelection())}}}}}},t.prototype.zoomToCoordinates=function(e,t,o,a){var r,s;if(!this.isDestroyed){this.isMarkerZoomCompleted=!1;var d=void 0,h=void 0,u=!1;this.centerPosition={latitude:null,longitude:null},this.isZoomByPosition=!1,(i.i(n.isNullOrUndefined)(o)&&i.i(n.isNullOrUndefined)(a)||i.i(n.isNullOrUndefined)(e)&&i.i(n.isNullOrUndefined)(t))&&(e=i.i(n.isNullOrUndefined)(e)?0:e,t=i.i(n.isNullOrUndefined)(e)?0:t,o=i.i(n.isNullOrUndefined)(o)?e:o,a=i.i(n.isNullOrUndefined)(a)?t:a,u=!0),e>o&&(r=[o,e],e=r[0],o=r[1]),t>a&&(s=[a,t],t=s[0],a=s[1]),u?(d=e+o,h=t+a):(d=(e+o)/2,h=(t+a)/2),this.centerLatOfGivenLocation=d,this.centerLongOfGivenLocation=h,this.minLatOfGivenLocation=e,this.minLongOfGivenLocation=t,this.maxLatOfGivenLocation=o,this.maxLongOfGivenLocation=a,this.zoomNotApplied=!0,this.scaleOfGivenLocation=i.i(p._69)(e,o,t,a,this.mapAreaRect.width,this.mapAreaRect.height,this,!0);var c=this.getMinMaxLatitudeLongitude(),m={cancel:!1,name:"zoom",type:l.J,maps:this,tileTranslatePoint:{},translatePoint:{},tileZoomLevel:this.isTileMap?{previous:this.tileZoomLevel,current:this.scaleOfGivenLocation}:{},scale:this.isTileMap?{previous:this.tileZoomLevel,current:this.scaleOfGivenLocation}:{previous:this.scale,current:this.scaleOfGivenLocation},minLatitude:c.minLatitude,maxLatitude:c.maxLatitude,minLongitude:c.minLongitude,maxLongitude:c.maxLongitude};this.trigger("zoom",m),this.refresh()}},t.prototype.removeShapeSelection=function(){for(var e=this.selectedElementId.length,t=0;t<e;t++)i.i(a._46)(i.i(p._33)(this.selectedElementId[0])),this.selectedElementId.splice(0,1);if(this.legendSettings.visible)for(var n=this.legendSelectionCollection.length,t=0;t<n;t++)i.i(a._46)(i.i(p._33)(this.legendSelectionCollection[t].legendElement.id)),this.selectedLegendElementId.splice(0,1);this.shapeSelectionItem=[],this.legendSelectionCollection=[]},t.prototype.setCulture=function(){this.intl=new n.Internationalization,this.setLocaleConstants(),this.localeObject=new n.L10n(this.getModuleName(),this.defaultLocalConstants,this.locale)},t.prototype.setLocaleConstants=function(){this.defaultLocalConstants={ZoomIn:"Zoom in",Zoom:"Zoom",ZoomOut:"Zoom out",Pan:"Pan",Reset:"Reset",ImageNotFound:"Image Not Found"}},t.prototype.destroy=function(){this.unWireEVents(),i.i(n.isNullOrUndefined)(this.mapsTooltipModule)||this.mapsTooltipModule.removeEventListener(),e.prototype.destroy.call(this),this.shapeSelectionItem=[],this.toggledElementId=[],this.toggledLegendId=[],this.legendSelectionCollection=[],this.selectedLegendElementId=[],this.selectedNavigationElementId=[],this.selectedBubbleElementId=[],this.selectedMarkerElementId=[],this.selectedElementId=[],this.dataLabelShape=[],this.zoomShapeCollection=[],this.zoomLabelPositions=[],this.mouseDownEvent={x:null,y:null},this.mouseClickEvent={x:null,y:null},this.formatFunction=null,this.localeObject=null,this.defaultLocalConstants=null,this.intl=null,this.mapAreaRect=null,this.layersCollection=null,this.themeStyle=null,this.totalRect=null,this.baseSize=null,this.baseMapBounds=null,this.baseMapRectBounds=null,this.baseTranslatePoint=null,this.baseTileTranslatePoint=null,this.markerZoomCenterPoint=null,this.currentTiles=null,this.serverProcess=null,this.toolbarProperties=null,this.zoomLabelPositions=null,this.resizeEvent=null,this.availableSize=null,document.getElementById("mapsmeasuretext")&&document.getElementById("mapsmeasuretext").remove(),this.removeSvg(),this.svgObject=null,this.mapLayerPanel=null,this.renderer=null,this.translatePoint=null,this.tileTranslatePoint=null,this.previousPoint=null,this.dataLabelShape=[],this.zoomShapeCollection=[],this.selectedElementId=[],this.selectedMarkerElementId=[],this.selectedBubbleElementId=[],this.shapeSelectionClass=null,this.markerSelectionClass=null,this.bubbleSelectionClass=null,this.navigationSelectionClass=null,this.selectedNavigationElementId=[],this.polygonSelectionClass=null,this.selectedPolygonElementId=[],this.legendSelectionClass=null,this.previousTranslate=null,this.initialTileTranslate=null,this.markerDragArgument=null},t.prototype.getModuleName=function(){return"maps"},t.prototype.getPersistData=function(){var e=["translatePoint","zoomSettings","mapScaleValue","tileTranslatePoint","baseTranslatePoint","scale","zoomPersistence","defaultState","markerZoomedState","initialCheck","initialZoomLevel","initialTileTranslate","applyZoomReset","markerZoomFactor"];return this.addOnPersist(e)},t.prototype.onPropertyChanged=function(t,o){if(!this.isDestroyed){for(var r=!1,l=!1,s=!1,d=!1,p=0,h=Object.keys(t);p<h.length;p++){var u=h[p];switch(u){case"background":this.renderBorder();break;case"height":case"width":case"layers":case"projectionType":case"centerPosition":case"legendSettings":case"baseLayerIndex":if("layers"===u){s=!0;for(var c=Object.keys(t.layers).length,m=0;m<c;m++)if(!i.i(n.isNullOrUndefined)(t.layers[m]))for(var g=Object.keys(t.layers[m]),y=0,f=g;y<f.length;y++){var b=f[y];"layerType"===b&&"Geometry"!==t.layers[m].layerType||i.i(n.isNullOrUndefined)(this.layers[m].shapeData)&&!i.i(n.isNullOrUndefined)(this.layers[m].urlTemplate)&&""!==this.layers[m].urlTemplate?this.isReset=!0:"markerSettings"===b?l=!0:"staticMapType"===b&&(d=!0)}}r=!0;break;case"zoomSettings":i.i(n.isNullOrUndefined)(o.zoomSettings)||(t.zoomSettings.zoomFactor===o.zoomSettings.zoomFactor||s?t.zoomSettings.shouldZoomInitially!==o.zoomSettings.shouldZoomInitially?(this.zoomSettings.zoomFactor=1,this.previousProjection=null,this.scale=this.isMarkerZoomCompleted?null:this.scale,this.isMarkerZoomCompleted=!t.zoomSettings.shouldZoomInitially,r=!0):t.zoomSettings.enable!==o.zoomSettings.enable?(this.zoomSettings.zoomFactor=1,r=!0):r=!0:r=!1);break;case"locale":case"currencyCode":e.prototype.refresh.call(this)}}r&&(t.layers&&l?(i.i(a._28)(this.element.id+"_Markers_Group"),this.isTileMap?this.mapLayerPanel.renderTileLayer(this.mapLayerPanel,this.layers.currentFactor,this.layers.length-1):this.render()):t.layers&&d?this.mapLayerPanel.renderGoogleMap(this.layers[this.layers.length-1].key,this.staticMapZoom):(this.createSVG(),this.renderElements()))}},t.prototype.requiredModules=function(){var e=[],t=this.findVisibleLayers(this.layers),i=!1;return this.annotations.map(function(e){i=null!=e.content}),this.isBubbleVisible()&&e.push({member:"Bubble",args:[this],name:"Bubble"}),t.highlight&&e.push({member:"Highlight",args:[this],name:"Highlight"}),t.selection&&e.push({member:"Selection",args:[this],name:"Selection"}),this.legendSettings.visible&&e.push({member:"Legend",args:[this],name:"Legend"}),(this.zoomSettings.enable||this.zoomSettings.zoomFactor>this.zoomSettings.minZoom)&&e.push({member:"Zoom",args:[this],name:"Zoom"}),this.isMarkersVisible()&&e.push({member:"Marker",args:[this],name:"Marker"}),this.isDataLabelVisible()&&e.push({member:"DataLabel",args:[this],name:"DataLabel"}),this.isNavigationVisible()&&e.push({member:"NavigationLine",args:[this],name:"NavigationLine"}),this.isPolygonVisible()&&e.push({member:"Polygon",args:[this],name:"Polygon"}),t.tooltip&&e.push({member:"MapsTooltip",args:[this],name:"MapsTooltip"}),i&&e.push({member:"Annotations",args:[this,h.a],name:"Annotations"}),this.allowPrint&&e.push({member:"Print",args:[this],name:"Print"}),this.allowImageExport&&e.push({member:"ImageExport",args:[this],name:"ImageExport"}),this.allowPdfExport&&e.push({member:"PdfExport",args:[this],name:"PdfExport"}),e},t.prototype.isMarkersVisible=function(){var e=!1;return Array.prototype.forEach.call(this.layers,function(t){for(var i=0;i<t.markerSettings.length;i++)if(t.markerSettings[i].visible){e=!0;break}}),e},t.prototype.isDataLabelVisible=function(){for(var e=!1,t=0;t<this.layers.length;t++)if(this.layers[t].dataLabelSettings.visible){e=!0;break}return e},t.prototype.isNavigationVisible=function(){var e=!1;return Array.prototype.forEach.call(this.layers,function(t){for(var i=0;i<t.navigationLineSettings.length;i++)if(t.navigationLineSettings[i].visible){e=!0;break}}),e},t.prototype.isPolygonVisible=function(){var e=!1;return Array.prototype.forEach.call(this.layers,function(t){for(var i=0;i<t.polygonSettings.polygons.length;i++)if(t.polygonSettings.polygons.length>0){e=!0;break}}),e},t.prototype.isBubbleVisible=function(){for(var e=!1,t=0,i=this.layers;t<i.length;t++){var n=i[t];if(this.getBubbleVisible(n)){e=!0;break}}return e},t.prototype.getBubbleVisible=function(e){for(var t=!1,i=0,n=e.bubbleSettings;i<n.length;i++){if(n[i].visible){t=!0;break}}return t},t.prototype.print=function(e){this.allowPrint&&this.printModule&&!this.isDestroyed&&this.printModule.print(this,e)},t.prototype.export=function(e,t,o,a){var r=this;if(!this.isDestroyed){if(i.i(n.isNullOrUndefined)(a)&&(a=!0),"PDF"!==e&&this.allowImageExport&&this.imageExportModule)return new Promise(function(i){i(r.imageExportModule.export(r,e,t,a))});if(this.allowPdfExport&&this.pdfExportModule)return new Promise(function(i){i(r.pdfExportModule.export(r,e,t,a,o))})}return null},t.prototype.getBingUrlTemplate=function(e){var t;return this.isDestroyed||(t=new Promise(function(t){var i=new n.Fetch({url:e});i.onSuccess=function(e){var i=e.resourceSets[0].resources[0];t(i.imageUrl)},i.send()})),t},t.prototype.findVisibleLayers=function(e,t,o,a,r,l){void 0===t&&(t=!1),void 0===o&&(o=!1),void 0===a&&(a=!1),void 0===r&&(r=!1),void 0===l&&(l=!1);for(var s,d,p,h=0,u=e;h<u.length;h++){var c=u[h];if(t=c.visible||t,c.visible){s=c.bubbleSettings,d=c.markerSettings,p=c.polygonSettings;for(var m=c.navigationLineSettings,g=0,y=m;g<y.length;g++){var f=y[g];f.visible&&(r=!i.i(n.isNullOrUndefined)(f.highlightSettings)&&f.highlightSettings.enable||r,l=!i.i(n.isNullOrUndefined)(f.selectionSettings)&&f.selectionSettings.enable||l)}for(var b=0,v=p.polygons;b<v.length;b++){v[b].points.length>0&&(r=c.polygonSettings.highlightSettings.enable||r,l=c.polygonSettings.selectionSettings.enable||l,a=c.polygonSettings.tooltipSettings.visible||a)}for(var S=0,_=d;S<_.length;S++){var x=_[S];if(x.visible&&(a=x.tooltipSettings.visible||a,r=x.selectionSettings.enable||r,l=x.highlightSettings.enable||l),a)break}for(var O=0,M=s;O<M.length;O++){var C=M[O];if(C.visible&&(a=C.tooltipSettings.visible||a,r=C.selectionSettings.enable||r,l=C.highlightSettings.enable||l),a)break}a=c.tooltipSettings.visible||a,r=c.selectionSettings.enable||r,l=c.highlightSettings.enable||l}if(t&&o&&a)break}return{layer:t,bubble:o,tooltip:a,selection:r,highlight:l}},t.prototype.getGeoLocation=function(e,t,o){var r=0,l=0;if(!this.isDestroyed){var s=document.getElementById(this.element.id),d=this.element.getBoundingClientRect(),p=document.body.getBoundingClientRect(),h=t-(i.i(n.isNullOrUndefined)(this.markerDragArgument)?s.offsetLeft||d.left-p.left:0),u=o-(i.i(n.isNullOrUndefined)(this.markerDragArgument)?s.offsetTop||d.top-p.top:0),c=this.layersCollection[e],m=i.i(a._30)(this,c,!1),g=m.location,y=g.x*this.scale,f=g.y*this.scale,b=Math.min(this.mapAreaRect.height,this.mapAreaRect.width)*this.mapLayerPanel.currentFactor*this.scale,v=this.clip(h-y,0,b-1)/b-.5,S=.5-this.clip(u-f,0,b-1)/b;r=90-360*Math.atan(Math.exp(2*-S*Math.PI))/Math.PI,l=360*v}return{latitude:r,longitude:l}},t.prototype.clip=function(e,t,i){return Math.min(Math.max(e,t),i)},t.prototype.getTileGeoLocation=function(e,t){var o=0,a=0;if(!this.isDestroyed){var r=document.getElementById(this.element.id),l=document.getElementById(this.element.id+"_tile_parent"),s=this.pointToLatLong(e+this.mapAreaRect.x-(l.offsetLeft-(i.i(n.isNullOrUndefined)(this.markerDragArgument)?r.offsetLeft:0)),t+this.mapAreaRect.y-(l.offsetTop-(i.i(n.isNullOrUndefined)(this.markerDragArgument)?r.offsetTop:0)));o=s.latitude,a=s.longitude}return{latitude:o,longitude:a}},t.prototype.pointToLatLong=function(e,t){var o=0,a=0;if(!this.isDestroyed&&!i.i(n.isNullOrUndefined)(this.translatePoint)){t+="GoogleStaticMap"===this.layers[this.layers.length-1].layerType?0:10;var r=256*Math.pow(2,this.tileZoomLevel),l=this.clip(e-this.translatePoint.x*this.scale,0,r-1)/r-.5,s=.5-this.clip(t-this.translatePoint.y*this.scale,0,r-1)/r;o=90-360*Math.atan(Math.exp(2*-s*Math.PI))/Math.PI,a=360*l}return{latitude:o,longitude:a}},g([i.i(n.Property)(null)],t.prototype,"background",void 0),g([i.i(n.Property)(!1)],t.prototype,"useGroupingSeparator",void 0),g([i.i(n.Property)(null)],t.prototype,"format",void 0),g([i.i(n.Property)(null)],t.prototype,"width",void 0),g([i.i(n.Property)(null)],t.prototype,"height",void 0),g([i.i(n.Property)("MouseMove")],t.prototype,"tooltipDisplayMode",void 0),g([i.i(n.Property)(!1)],t.prototype,"allowPrint",void 0),g([i.i(n.Property)(!1)],t.prototype,"allowImageExport",void 0),g([i.i(n.Property)(!1)],t.prototype,"allowPdfExport",void 0),g([i.i(n.Complex)({},r.z)],t.prototype,"titleSettings",void 0),g([i.i(n.Complex)({},r.A)],t.prototype,"zoomSettings",void 0),g([i.i(n.Complex)({},r.C)],t.prototype,"legendSettings",void 0),g([i.i(n.Collection)([],r.H)],t.prototype,"layers",void 0),g([i.i(n.Collection)([],r.a)],t.prototype,"annotations",void 0),g([i.i(n.Complex)({},r.k)],t.prototype,"margin",void 0),g([i.i(n.Complex)({color:"#DDDDDD",width:0},r.g)],t.prototype,"border",void 0),g([i.i(n.Property)("Material")],t.prototype,"theme",void 0),g([i.i(n.Property)("Mercator")],t.prototype,"projectionType",void 0),g([i.i(n.Property)(0)],t.prototype,"baseLayerIndex",void 0),g([i.i(n.Property)(null)],t.prototype,"description",void 0),g([i.i(n.Property)(0)],t.prototype,"tabIndex",void 0),g([i.i(n.Complex)({latitude:null,longitude:null},r.h)],t.prototype,"centerPosition",void 0),g([i.i(n.Complex)({},r.J)],t.prototype,"mapsArea",void 0),g([i.i(n.Event)()],t.prototype,"load",void 0),g([i.i(n.Event)()],t.prototype,"beforePrint",void 0),g([i.i(n.Event)()],t.prototype,"loaded",void 0),g([i.i(n.Event)()],t.prototype,"click",void 0),g([i.i(n.Event)()],t.prototype,"onclick",void 0),g([i.i(n.Event)()],t.prototype,"doubleClick",void 0),g([i.i(n.Event)()],t.prototype,"rightClick",void 0),g([i.i(n.Event)()],t.prototype,"resize",void 0),g([i.i(n.Event)()],t.prototype,"tooltipRender",void 0),g([i.i(n.Event)()],t.prototype,"legendRendering",void 0),g([i.i(n.Event)()],t.prototype,"tooltipRenderComplete",void 0),g([i.i(n.Event)()],t.prototype,"shapeSelected",void 0),g([i.i(n.Event)()],t.prototype,"itemSelection",void 0),g([i.i(n.Event)()],t.prototype,"itemHighlight",void 0),g([i.i(n.Event)()],t.prototype,"shapeHighlight",void 0),g([i.i(n.Event)()],t.prototype,"layerRendering",void 0),g([i.i(n.Event)()],t.prototype,"shapeRendering",void 0),g([i.i(n.Event)()],t.prototype,"markerRendering",void 0),g([i.i(n.Event)()],t.prototype,"markerClusterRendering",void 0),g([i.i(n.Event)()],t.prototype,"markerClick",void 0),g([i.i(n.Event)()],t.prototype,"markerDragStart",void 0),g([i.i(n.Event)()],t.prototype,"markerDragEnd",void 0),g([i.i(n.Event)()],t.prototype,"markerClusterClick",void 0),g([i.i(n.Event)()],t.prototype,"markerClusterMouseMove",void 0),g([i.i(n.Event)()],t.prototype,"markerMouseMove",void 0),g([i.i(n.Event)()],t.prototype,"dataLabelRendering",void 0),g([i.i(n.Event)()],t.prototype,"bubbleRendering",void 0),g([i.i(n.Event)()],t.prototype,"bubbleClick",void 0),g([i.i(n.Event)()],t.prototype,"bubbleMouseMove",void 0),g([i.i(n.Event)()],t.prototype,"animationComplete",void 0),g([i.i(n.Event)()],t.prototype,"annotationRendering",void 0),g([i.i(n.Event)()],t.prototype,"zoom",void 0),g([i.i(n.Event)()],t.prototype,"pan",void 0),g([i.i(n.Event)()],t.prototype,"panComplete",void 0),g([i.i(n.Event)()],t.prototype,"zoomComplete",void 0),t=g([n.NotifyPropertyChanges],t)}(n.Component)},function(e,t,i){"use strict";i.d(t,"a",function(){return a});var n=i(1),o=(i.n(n),i(0)),a=function(){function e(e){}return e.prototype.export=function(e,t,a,r){return new Promise(function(l,s){var d,p,h=i.i(n.createElement)("canvas",{id:"ej2-canvas",attrs:{width:e.availableSize.width.toString(),height:e.availableSize.height.toString()}}),u=!(n.Browser.userAgent.toString().indexOf("HeadlessChrome")>-1),c=document.getElementById(e.element.id+"_Tile_SVG_Parent"),m=i.i(o._33)(e.element.id+"_svg").cloneNode(!0),g=m.childNodes[0],y=g.getAttribute("fill");"Tailwind"!==e.theme&&"Bootstrap5"!==e.theme&&"Fluent"!==e.theme&&"Material3"!==e.theme||"rgba(255,255,255, 0.0)"!==y&&"transparent"!==y?"TailwindDark"!==e.theme&&"Bootstrap5Dark"!==e.theme&&"FluentDark"!==e.theme&&"Material3Dark"!==e.theme||"rgba(255,255,255, 0.0)"!==y&&"transparent"!==y||m.childNodes[0].setAttribute("fill","rgba(0, 0, 0, 1)"):m.childNodes[0].setAttribute("fill","rgba(255,255,255, 1)"),e.isTileMap?(p=i.i(o._33)(e.element.id+"_Tile_SVG").cloneNode(!0),d='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">'+m.outerHTML+p.outerHTML+"</svg>"):d='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">'+m.outerHTML+"</svg>";var f=window.URL.createObjectURL(new Blob("SVG"===t?[d]:[(new XMLSerializer).serializeToString(m)],{type:"image/svg+xml"}));if("SVG"===t)r?i.i(o.r)(a,t,f,u):l(null);else{var b=new Image,v=h.getContext("2d");if(e.isTileMap){e.isExportInitialTileMap=!0;for(var S=document.getElementById(e.element.id+"_MapAreaBorder"),_=parseFloat(S.getAttribute("y")),x=parseFloat(S.getAttribute("x")),O=new XMLHttpRequest,M=e.mapLayerPanel.tiles.length,C=0;C<=M+1;C++)!function(s){var d=document.getElementById(e.element.id+"_tile_"+(s-1)),m=new Image;m.crossOrigin="Anonymous";var g=e.background?e.background:"Tailwind"!==e.theme&&"Bootstrap5"!==e.theme&&"Fluent"!==e.theme&&"Material3"!==e.theme||"rgba(255,255,255, 0.0)"!==y&&"transparent"!==y?"TailwindDark"!==e.theme&&"Bootstrap5Dark"!==e.theme&&"FluentDark"!==e.theme&&"Material3Dark"!==e.theme||"rgba(255,255,255, 0.0)"!==y&&"transparent"!==y?"#ffffff":"#000000":"#ffffff";v.fillStyle=g,v.fillRect(0,0,e.availableSize.width,e.availableSize.height),v.font=e.titleSettings.textStyle.size+" Arial";var b=document.getElementById(e.element.id+"_Map_title");i.i(n.isNullOrUndefined)(b)||(v.fillStyle=b.getAttribute("fill"),v.fillText(e.titleSettings.text,parseFloat(b.getAttribute("x")),parseFloat(b.getAttribute("y")))),m.onload=function(){if(0===s||s===M+1?0===s?(v.setTransform(1,0,0,1,0,0),v.rect(0,_,parseFloat(c.style.width),parseFloat(c.style.height)),v.clip()):v.setTransform(1,0,0,1,x,_):v.setTransform(1,0,0,1,parseFloat(d.style.left)+x,parseFloat(d.style.top)+_),v.drawImage(m,0,0),s===M+1){localStorage.setItem("local-canvasImage",h.toDataURL("image/png"));var n=localStorage.getItem("local-canvasImage");r?(i.i(o.r)(a,t,n,u),localStorage.removeItem("local-canvasImage"),e.isExportInitialTileMap=!1):(e.isExportInitialTileMap=!1,"PNG"===t?l(n):"JPEG"===t&&l(h.toDataURL("image/jpeg")))}},0===s||s===M+1?0===s?m.src=f:setTimeout(function(){m.src=window.URL.createObjectURL(new Blob([(new XMLSerializer).serializeToString(p)],{type:"image/svg+xml"}))},300):(O.open("GET",d.children[0].getAttribute("src"),!0),O.send(),m.src=d.children[0].getAttribute("src"))}(C)}else b.onload=function(){v.drawImage(b,0,0),window.URL.revokeObjectURL(f),r?i.i(o.r)(a,t,h.toDataURL("image/png").replace("image/png","image/octet-stream"),u):"PNG"===t?l(h.toDataURL("image/png")):"JPEG"===t&&l(h.toDataURL("image/jpeg"))},b.src=f}})},e.prototype.getModuleName=function(){return"ImageExport"},e.prototype.destroy=function(){},e}()},function(e,t,i){"use strict";i.d(t,"a",function(){return a});var n=i(1),o=(i.n(n),i(27)),a=(i.n(o),function(){function e(){}return e.prototype.export=function(e,t,a,r,l){return new Promise(function(s){e.isTileMap&&(e.isExportInitialTileMap=!0);var d=i.i(n.createElement)("canvas",{id:"ej2-canvas",attrs:{width:e.availableSize.width.toString(),height:e.availableSize.height.toString()}});l=i.i(n.isNullOrUndefined)(l)?o.PdfPageOrientation.Landscape:l;var p=document.getElementById(e.element.id+"_Tile_SVG_Parent"),h=e.svgObject.cloneNode(!0),u=h.childNodes[0],c=u.getAttribute("fill");"Tailwind"!==e.theme&&"Bootstrap5"!==e.theme&&"Fluent"!==e.theme&&"Material3"!==e.theme||"rgba(255,255,255, 0.0)"!==c&&"transparent"!==c?"TailwindDark"!==e.theme&&"Bootstrap5Dark"!==e.theme&&"FluentDark"!==e.theme&&"Material3Dark"!==e.theme||"rgba(255,255,255, 0.0)"!==c&&"transparent"!==c||h.childNodes[0].setAttribute("fill","rgba(0, 0, 0, 1)"):h.childNodes[0].setAttribute("fill","rgba(255,255,255, 1)");var m=window.URL.createObjectURL(new Blob("SVG"===t?[void 0]:[(new XMLSerializer).serializeToString(h)],{type:"image/svg+xml"})),g=new o.PdfDocument,y=new Image,f=d.getContext("2d");if(e.isTileMap)for(var b=document.getElementById(e.element.id+"_MapAreaBorder"),v=parseFloat(b.getAttribute("y")),S=parseFloat(b.getAttribute("x")),_=new XMLHttpRequest,x=e.mapLayerPanel.tiles.length,O=0;O<=x+1;O++)!function(h){var u=document.getElementById(e.element.id+"_tile_"+(h-1)),y=new Image;y.crossOrigin="Anonymous";var b=e.background?e.background:"Tailwind"!==e.theme&&"Bootstrap5"!==e.theme&&"Fluent"!==e.theme&&"Material3"!==e.theme||"rgba(255,255,255, 0.0)"!==c&&"transparent"!==c?"TailwindDark"!==e.theme&&"Bootstrap5Dark"!==e.theme&&"FluentDark"!==e.theme&&"Material3Dark"!==e.theme||"rgba(255,255,255, 0.0)"!==c&&"transparent"!==c?"#ffffff":"#000000":"#ffffff";f.fillStyle=b,f.fillRect(0,0,e.availableSize.width,e.availableSize.height),f.font=e.titleSettings.textStyle.size+" Arial";var O=document.getElementById(e.element.id+"_Map_title");i.i(n.isNullOrUndefined)(O)||(f.fillStyle=O.getAttribute("fill"),f.fillText(e.titleSettings.text,parseFloat(O.getAttribute("x")),parseFloat(O.getAttribute("y")))),y.onload=function(){if(0===h||h===x+1?0===h?(f.setTransform(1,0,0,1,0,0),f.rect(0,v,parseFloat(p.style.width),parseFloat(p.style.height)),f.clip()):f.setTransform(1,0,0,1,S,v):f.setTransform(1,0,0,1,parseFloat(u.style.left)+S,parseFloat(u.style.top)+v),f.drawImage(y,0,0),h===x+1&&"PDF"===t){localStorage.setItem("saved-image-example",d.toDataURL("image/jpeg"));var i=localStorage.getItem("saved-image-example");g.pageSettings.orientation=l,i=i.slice(i.indexOf(",")+1),g.pages.add().graphics.drawImage(new o.PdfBitmap(i),0,0,e.availableSize.width-60,e.availableSize.height),e.isExportInitialTileMap=!1,r?(g.save(a+".pdf"),g.destroy()):s(null)}},0===h||h===x+1?0===h?y.src=m:setTimeout(function(){var t=document.getElementById(e.element.id+"_Tile_SVG");y.src=window.URL.createObjectURL(new Blob([(new XMLSerializer).serializeToString(t)],{type:"image/svg+xml"}))},300):(_.open("GET",u.children[0].getAttribute("src"),!0),_.send(),y.src=u.children[0].getAttribute("src"))}(O);else y.onload=function(){if(f.drawImage(y,0,0),window.URL.revokeObjectURL(m),"PDF"===t){var i=d.toDataURL("image/jpeg").replace("image/jpeg","image/octet-stream");g.pageSettings.orientation=l,i=i.slice(i.indexOf(",")+1),g.pages.add().graphics.drawImage(new o.PdfBitmap(i),0,0,e.availableSize.width-60,e.availableSize.height),r?(g.save(a+".pdf"),g.destroy()):s(null)}},y.src=m})},e.prototype.getModuleName=function(){return"PdfExport"},e.prototype.destroy=function(){},e}())},function(e,t,i){"use strict";i.d(t,"a",function(){return r});var n=i(1),o=(i.n(n),i(0)),a=i(3),r=function(){function e(e){}return e.prototype.print=function(e,t){var o=window.open("","print","height="+window.outerHeight+",width="+window.outerWidth+",tabbar=no");o.moveTo(0,0),o.resizeTo(screen.availWidth,screen.availHeight);var r={cancel:!1,htmlContent:this.getHTMLContent(e,t),name:a.I};e.trigger("beforePrint",r,function(e){r.cancel||i.i(n.print)(r.htmlContent,o)})},e.prototype.getHTMLContent=function(e,t){var a=i.i(n.createElement)("div"),r=e.element.cloneNode(!0),l=e.isTileMap?r.getElementsByTagName("svg")[1]:r.getElementsByTagName("svg")[0];if(!i.i(n.isNullOrUndefined)(l)&&(l=l.childNodes[0],!i.i(n.isNullOrUndefined)(l))){var s=l.getAttribute("fill");"Tailwind"!==e.theme&&"Bootstrap5"!==e.theme&&"Fluent"!==e.theme&&"Material3"!==e.theme||"rgba(255,255,255, 0.0)"!==s&&"transparent"!==s?"TailwindDark"!==e.theme&&"Bootstrap5Dark"!==e.theme&&"FluentDark"!==e.theme&&"Material3Dark"!==e.theme||"rgba(255,255,255, 0.0)"!==s&&"transparent"!==s||l.setAttribute("fill","rgba(0, 0, 0, 1)"):l.setAttribute("fill","rgba(255,255,255, 1)")}if(e.isTileMap)for(var d=0;d<r.childElementCount;d++)if(r.children[d].id===e.element.id+"_tile_parent"){r.children[d].style.removeProperty("height"),r.children[d].style.removeProperty("width"),r.children[d].style.removeProperty("top"),r.children[d].style.removeProperty("left"),r.children[d].style.removeProperty("right"),r.children[d].style.removeProperty("overflow");var p=document.getElementById(e.element.id+"_Tile_SVG_Parent");r.children[d].children[0].style.overflow="hidden",r.children[d].children[0].style.position="absolute",r.children[d].children[0].style.height=p.style.height,r.children[d].children[0].style.width=p.style.width,r.children[d].children[0].style.left=p.style.left,r.children[d].children[0].style.top=p.style.top;break}return t?t instanceof Array?Array.prototype.forEach.call(t,function(e){a.appendChild(i.i(o._37)(e).cloneNode(!0))}):t instanceof Element?a.appendChild(t.cloneNode(!0)):a.appendChild(i.i(o._37)(t).cloneNode(!0)):a.appendChild(r),a},e.prototype.getModuleName=function(){return"Print"},e.prototype.destroy=function(){},e}()},function(e,t,i){"use strict";i.d(t,"a",function(){return r});var n=i(2),o=i(1),a=(i.n(o),i(0)),r=function(){function e(e){this.maps=e,this.addEventListener()}return e.prototype.addEventListener=function(){this.maps.isDestroyed||(this.maps.on(o.Browser.touchMoveEvent,this.mouseMove,this),this.maps.on(o.Browser.touchStartEvent,this.mouseMove,this))},e.prototype.removeEventListener=function(){this.maps.isDestroyed||(this.maps.off(o.Browser.touchMoveEvent,this.mouseMove),this.maps.off(o.Browser.touchStartEvent,this.mouseMove))},e.prototype.addHighlight=function(e,t,n){var o=i.i(a._42)(e,t,n,this.maps);n?this.mapHighlight(o,null,null):i.i(a._46)(o)},e.prototype.mouseMove=function(e){var t,n=e.target,r="touch"===e.pointerType||"2"===e.pointerType||e.type.indexOf("touch")>-1;if((-1!==n.id.indexOf("LayerIndex")||n.id.indexOf("NavigationIndex")>-1)&&"ShapeselectionMapStyle"!==n.getAttribute("class")&&!r&&"MarkerselectionMapStyle"!==n.getAttribute("class")&&"BubbleselectionMapStyle"!==n.getAttribute("class")&&"navigationlineselectionMapStyle"!==n.getAttribute("class")&&"PolygonselectionMapStyle"!==n.getAttribute("class")&&"LineselectionMapStyle"!==n.getAttribute("class")){t=parseInt(n.id.split("_LayerIndex_")[1].split("_")[0],10);var l=void 0,s=void 0,d=void 0,p=void 0;if(n.id.indexOf("shapeIndex")>-1)d=parseInt(n.id.split("_shapeIndex_")[1].split("_")[0],10),l=this.maps.layers[t].shapeData.features&&!i.i(o.isNullOrUndefined)(this.maps.layersCollection[t].layerData[d])?this.maps.layersCollection[t].layerData[d].property:null,p=parseInt(n.id.split("_dataIndex_")[1].split("_")[0],10),s=i.i(o.isNullOrUndefined)(p)?null:this.maps.layers[t].dataSource[p],this.highlightSettings=this.maps.layers[t].highlightSettings;else if(n.id.indexOf("BubbleIndex")>-1){var h=parseInt(n.id.split("_BubbleIndex_")[1].split("_")[0],10);p=parseInt(n.id.split("_dataIndex_")[1].split("_")[0],10),s=this.maps.layers[t].bubbleSettings[h].dataSource[p],this.highlightSettings=this.maps.layers[t].bubbleSettings[h].highlightSettings}else if(n.id.indexOf("MarkerIndex")>-1){var u=parseInt(n.id.split("_MarkerIndex_")[1].split("_")[0],10);p=parseInt(n.id.split("_dataIndex_")[1].split("_")[0],10),s=this.maps.layers[t].markerSettings[u].dataSource[p],this.highlightSettings=this.maps.layers[t].markerSettings[u].highlightSettings}else if(n.id.indexOf("_PolygonIndex_")>-1)p=parseInt(n.id.split("_PolygonIndex_")[1].split("_")[0],10),s=this.maps.layers[t].polygonSettings.polygons[p].points,this.highlightSettings=this.maps.layers[t].polygonSettings.highlightSettings;else{var c=parseInt(n.id.split("_NavigationIndex_")[1].split("_")[0],10);t=parseInt(n.id.split("_LayerIndex_")[1].split("_")[0],10),l=null,s={latitude:this.maps.layers[t].navigationLineSettings[c].latitude,longitude:this.maps.layers[t].navigationLineSettings[c].longitude},this.highlightSettings=this.maps.layers[t].navigationLineSettings[c].highlightSettings}if(this.highlightSettings.enable)this.handleHighlight(n,t,s,l);else{var m=document.getElementsByClassName("highlightMapStyle")[0];if(!i.i(o.isNullOrUndefined)(m)&&(i.i(a._46)(m),m.id.indexOf("NavigationIndex")>-1)){var c=parseInt(m.id.split("_NavigationIndex_")[1].split("_")[0],10),g=parseInt(m.parentElement.id.split("_LayerIndex_")[1].split("_")[0],10);m.setAttribute("stroke-width",this.maps.layers[g].navigationLineSettings[c].width.toString()),m.setAttribute("stroke",this.maps.layers[g].navigationLineSettings[c].color)}}}else if(i.i(a._40)("highlightMapStyle").length>0){if(n=i.i(a._40)("highlightMapStyle")[0],n.id.indexOf("NavigationIndex")>-1){var c=parseInt(n.id.split("_NavigationIndex_")[1].split("_")[0],10);t=parseInt(n.parentElement.id.split("_LayerIndex_")[1].split("_")[0],10),n.setAttribute("stroke-width",this.maps.layers[t].navigationLineSettings[c].width.toString()),n.setAttribute("stroke",this.maps.layers[t].navigationLineSettings[c].color)}i.i(a._46)(n),this.maps.legendSettings.visible&&this.maps.legendModule&&this.maps.legendModule.removeShapeHighlightCollection()}else(-1!==n.id.indexOf(this.maps.element.id+"_Legend_Shape_Index")||-1!==n.id.indexOf(this.maps.element.id+"_Legend_Index"))&&this.maps.legendModule&&this.maps.legendSettings.visible&&-1===n.id.indexOf("_Text")?this.maps.legendModule.legendHighLightAndSelection(n,"highlight"):this.maps.legendSettings.visible&&this.maps.legendModule&&this.maps.legendModule.removeLegendHighlightCollection()},e.prototype.handleHighlight=function(e,t,i,n){this.maps.legendSettings.visible&&-1===e.id.indexOf("_MarkerIndex_")&&this.maps.legendModule&&"Layers"===this.maps.legendSettings.type&&this.maps.legendModule.shapeHighLightAndSelection(e,i,this.highlightSettings,"highlight",t),(!(e.id.indexOf("shapeIndex")>-1&&this.maps.legendSettings.visible&&this.maps.legendModule)||this.maps.legendModule.shapeToggled)&&this.mapHighlight(e,n,i)},e.prototype.mapHighlight=function(e,t,a){var r=this,l=parseInt(e.id.split("_LayerIndex_")[1].split("_")[0],10),s=!1;if(e.id.indexOf("MarkerIndex")>-1){var d=parseInt(e.id.split("_MarkerIndex_")[1].split("_")[0],10);s=this.maps.layers[l].markerSettings[d].highlightSettings.enable}var p=-1===e.parentElement.id.indexOf("LineString")?this.highlightSettings.border.color:this.highlightSettings.fill||this.highlightSettings.border.color,h=-1===e.parentElement.id.indexOf("LineString")?this.highlightSettings.border.width/(s?1:this.maps.scale):this.highlightSettings.border.width/this.maps.scale,u=i.i(o.isNullOrUndefined)(this.highlightSettings.border.opacity)?this.highlightSettings.opacity:this.highlightSettings.border.opacity,c={opacity:this.highlightSettings.opacity,fill:-1===e.parentElement.id.indexOf("LineString")?-1===e.id.indexOf("NavigationIndex")?i.i(o.isNullOrUndefined)(this.highlightSettings.fill)?e.getAttribute("fill"):this.highlightSettings.fill:"none":"transparent",border:{color:p,width:h,opacity:u},cancel:!1},m={opacity:c.opacity,fill:c.fill,border:{color:p,width:h,opacity:u},name:n.k,target:e.id,cancel:!1,shapeData:t,data:a,maps:this.maps};e.id.indexOf("shapeIndex")>-1&&this.maps.trigger(n.k,m,function(){});var g={opacity:c.opacity,fill:c.fill,border:{color:p,width:h,opacity:u},name:n.I,target:e.id,cancel:!1,shapeData:t,data:a,maps:this.maps};this.maps.trigger(n.I,g,function(){g.cancel=c.cancel!==g.cancel?g.cancel:e.id.indexOf("shapeIndex")>-1?m.cancel:c.cancel,g.fill=c.fill!==g.fill?g.fill:e.id.indexOf("shapeIndex")>-1?m.fill:c.fill,g.opacity=c.opacity!==g.opacity?g.opacity:e.id.indexOf("shapeIndex")>-1?m.opacity:c.opacity,g.border.color=c.border.color!==g.border.color?g.border.color:e.id.indexOf("shapeIndex")>-1?m.border.color:c.border.color,g.border.width=c.border.width!==g.border.width?g.border.width:e.id.indexOf("shapeIndex")>-1?m.border.width:c.border.width,g.border.opacity=c.border.opacity!==g.border.opacity?g.border.opacity:e.id.indexOf("shapeIndex")>-1?m.border.opacity:c.border.opacity,r.highlightMap(e,g)})},e.prototype.highlightMap=function(e,t){if("highlightMapStyle"!==e.getAttribute("class")&&!t.cancel){if(i.i(a._40)("highlightMapStyle").length>0){var n=i.i(a._40)("highlightMapStyle")[0];if(i.i(a._46)(n),n.id.indexOf("NavigationIndex")>-1){var o=parseInt(n.id.split("_NavigationIndex_")[1].split("_")[0],10),r=parseInt(n.parentElement.id.split("_LayerIndex_")[1].split("_")[0],10);n.setAttribute("stroke-width",this.maps.layers[r].navigationLineSettings[o].width.toString()),n.setAttribute("stroke",this.maps.layers[r].navigationLineSettings[o].color)}}i.i(a._37)("highlightMap")?i.i(a._44)("highlightMap","highlightMapStyle",t):document.body.appendChild(i.i(a._43)("highlightMap","highlightMapStyle",t)),e.setAttribute("class","highlightMapStyle")}},e.prototype.getModuleName=function(){return"Highlight"},e.prototype.destroy=function(){this.highlightSettings=null,this.removeEventListener(),this.maps=null},e}()},function(e,t,i){"use strict";i.d(t,"a",function(){return r});var n=i(2),o=i(0),a=i(1),r=(i.n(a),function(){function e(e){this.maps=e,this.addEventListener()}return e.prototype.addEventListener=function(){this.maps.isDestroyed||this.maps.on(n.d,this.mouseClick,this)},e.prototype.removeEventListener=function(){this.maps.isDestroyed||this.maps.off(n.d,this.mouseClick)},e.prototype.mouseClick=function(e){if(!i.i(a.isNullOrUndefined)(e.type)&&-1!==e.type.indexOf("touch")&&i.i(a.isNullOrUndefined)(e.id)&&(e=e.target),!i.i(a.isNullOrUndefined)(e.id)&&(e.id.indexOf("LayerIndex")>-1||e.id.indexOf("NavigationIndex")>-1)){var t=void 0,n=void 0,o=void 0,r=void 0,l=parseInt(e.id.split("_LayerIndex_")[1].split("_")[0],10);if(e.id.indexOf("shapeIndex")>-1)o=parseInt(e.id.split("_shapeIndex_")[1].split("_")[0],10),t=!i.i(a.isNullOrUndefined)(this.maps.layers[l].shapeData.features)&&this.maps.layers[l].shapeData.features.length>o?this.maps.layers[l].shapeData.features[o].properties:!i.i(a.isNullOrUndefined)(this.maps.layers[l].shapeData.geometries)&&this.maps.layers[l].shapeData.geometries.length>o?this.maps.layers[l].shapeData.geometries[o].properties:null,r=parseInt(e.id.split("_dataIndex_")[1].split("_")[0],10),n=i.i(a.isNullOrUndefined)(r)?null:this.maps.layers[l].dataSource[r],this.selectionsettings=this.maps.layers[l].selectionSettings,this.selectionType="Shape";else if(e.id.indexOf("BubbleIndex")>-1){var s=parseInt(e.id.split("_BubbleIndex_")[1].split("_")[0],10);r=parseInt(e.id.split("_dataIndex_")[1].split("_")[0],10),n=this.maps.layers[l].bubbleSettings[s].dataSource[r],this.selectionsettings=this.maps.layers[l].bubbleSettings[s].selectionSettings,this.selectionType="Bubble"}else if(e.id.indexOf("MarkerIndex")>-1){var d=parseInt(e.id.split("_MarkerIndex_")[1].split("_")[0],10);r=parseInt(e.id.split("_dataIndex_")[1].split("_")[0],10),n=this.maps.layers[l].markerSettings[d].dataSource[r],this.selectionsettings=this.maps.layers[l].markerSettings[d].selectionSettings,this.selectionType="Marker"}else if(e.id.indexOf("_PolygonIndex_")>-1)r=parseInt(e.id.split("_PolygonIndex_")[1].split("_")[0],10),n=this.maps.layers[l].polygonSettings.polygons[r].points,this.selectionsettings=this.maps.layers[l].polygonSettings.selectionSettings,this.selectionType="Polygon";else if(e.id.indexOf("NavigationIndex")>-1){var p=parseInt(e.id.split("_NavigationIndex_")[1].split("_")[0],10);t=null,n={latitude:this.maps.layers[l].navigationLineSettings[p].latitude,longitude:this.maps.layers[l].navigationLineSettings[p].longitude},this.selectionsettings=this.maps.layers[l].navigationLineSettings[p].selectionSettings,this.selectionType="navigationline"}!i.i(a.isNullOrUndefined)(this.selectionsettings)&&this.selectionsettings.enable&&this.selectElement(e,l,n,t)}else this.maps.legendSettings.visible&&!this.maps.legendSettings.toggleLegendSettings.enable&&this.maps.legendModule&&!i.i(a.isNullOrUndefined)(e.id)&&-1===e.id.indexOf("_Text")&&(e.id.indexOf(this.maps.element.id+"_Legend_Shape_Index")>-1||-1!==e.id.indexOf(this.maps.element.id+"_Legend_Index"))&&this.maps.legendModule.legendHighLightAndSelection(e,"selection")},e.prototype.selectElement=function(e,t,i,n){this.maps.mapSelect=!!e,this.maps.legendModule&&this.maps.legendSettings.visible&&-1===e.id.indexOf("_MarkerIndex_")&&this.maps.legendModule.shapeHighLightAndSelection(e,i,this.selectionsettings,"selection",t),(!(e.id.indexOf("shapeIndex")>-1&&this.maps.legendSettings.visible&&this.maps.legendModule)||this.maps.legendModule.shapeToggled)&&this.selectMap(e,n,i)},e.prototype.addSelection=function(e,t,n){var a=i.i(o._42)(e,t,n,this.maps);n?this.selectMap(a,null,null):i.i(o._46)(a)},e.prototype.selectMap=function(e,t,r){var l=this,s=e.parentElement.id.indexOf("LineString")>-1,d={color:s?this.selectionsettings.fill||this.selectionsettings.border.color:this.selectionsettings.border.color,width:s?this.selectionsettings.border.width/this.maps.scale:this.selectionsettings.border.width/("Marker"===this.selectionType?1:this.maps.scale),opacity:this.selectionsettings.border.opacity},p={opacity:this.selectionsettings.opacity,fill:s?"transparent":"navigationline"!==this.selectionType?this.selectionsettings.fill:"none",border:d,name:n.F,target:e.id,cancel:!1,shapeData:t,data:r,maps:this.maps};this.maps.trigger("itemSelection",p,function(t){if(p.border.opacity=i.i(a.isNullOrUndefined)(l.selectionsettings.border.opacity)?l.selectionsettings.opacity:l.selectionsettings.border.opacity,!p.cancel)if(e.getAttribute("class")===l.selectionType+"selectionMapStyle"||"LineselectionMapStyle"===e.getAttribute("class")){i.i(o._46)(e),l.removedSelectionList(e);for(var n=0;n<l.maps.shapeSelectionItem.length;n++)if(l.maps.shapeSelectionItem[n]===p.shapeData){l.maps.shapeSelectionItem.splice(n,1);break}if(e.id.indexOf("NavigationIndex")>-1){var r=parseInt(e.id.split("_NavigationIndex_")[1].split("_")[0],10),d=parseInt(e.parentElement.id.split("_LayerIndex_")[1].split("_")[0],10);e.setAttribute("stroke-width",l.maps.layers[d].navigationLineSettings[r].width.toString()),e.setAttribute("stroke",l.maps.layers[d].navigationLineSettings[r].color)}}else{var h=i.i(o._33)(l.maps.element.id+"_Layer_Collections");if(!l.selectionsettings.enableMultiSelect&&(h.getElementsByClassName(l.selectionType+"selectionMapStyle").length>0||h.getElementsByClassName("LineselectionMapStyle").length>0)){for(var u=h.getElementsByClassName(l.selectionType+"selectionMapStyle").length,c=void 0,m=0;m<u;m++)c=h.getElementsByClassName(l.selectionType+"selectionMapStyle")[0],i.i(o._46)(c),l.removedSelectionList(c);if(h.getElementsByClassName("LineselectionMapStyle").length>0){u=h.getElementsByClassName("LineselectionMapStyle").length;for(var m=0;m<u;m++)c=h.getElementsByClassName("LineselectionMapStyle")[0],i.i(o._46)(c),l.removedSelectionList(c)}if("Shape"===l.selectionType){l.maps.shapeSelectionItem=[];for(var g=l.maps.selectedElementId.length,y=0;y<g;y++){c=h.getElementsByClassName(l.selectionType+"selectionMapStyle")[0],i.i(o._46)(c);var f=l.maps.selectedElementId.indexOf(c.getAttribute("id"));l.maps.selectedElementId.splice(f,1)}}if(c.id.indexOf("NavigationIndex")>-1){var r=parseInt(e.id.split("_NavigationIndex_")[1].split("_")[0],10),d=parseInt(e.parentElement.id.split("_LayerIndex_")[1].split("_")[0],10);c.setAttribute("stroke-width",l.maps.layers[d].navigationLineSettings[r].width.toString()),c.setAttribute("stroke",l.maps.layers[d].navigationLineSettings[r].color)}}s?(i.i(o._37)("LineselectionMap")?i.i(o._44)("LineselectionMap","LineselectionMapStyle",p):document.body.appendChild(i.i(o._43)("LineselectionMap","LineselectionMapStyle",p)),e.setAttribute("class","LineselectionMapStyle")):(i.i(o._37)(l.selectionType+"selectionMap")?i.i(o._44)(l.selectionType+"selectionMap",l.selectionType+"selectionMapStyle",p):document.body.appendChild(i.i(o._43)(l.selectionType+"selectionMap",l.selectionType+"selectionMapStyle",p)),e.setAttribute("class",l.selectionType+"selectionMapStyle")),"ShapeselectionMapStyle"===e.getAttribute("class")&&(l.maps.shapeSelectionClass=i.i(o._37)(l.selectionType+"selectionMap"),l.maps.selectedElementId.push(e.getAttribute("id")),l.maps.shapeSelectionItem.push(p.shapeData)),"MarkerselectionMapStyle"===e.getAttribute("class")&&(l.maps.markerSelectionClass=i.i(o._37)(l.selectionType+"selectionMap"),l.maps.selectedMarkerElementId.push(e.getAttribute("id"))),"BubbleselectionMapStyle"===e.getAttribute("class")&&(l.maps.bubbleSelectionClass=i.i(o._37)(l.selectionType+"selectionMap"),l.maps.selectedBubbleElementId.push(e.getAttribute("id"))),"navigationlineselectionMapStyle"===e.getAttribute("class")&&(l.maps.navigationSelectionClass=i.i(o._37)(l.selectionType+"selectionMap"),l.maps.selectedNavigationElementId.push(e.getAttribute("id"))),"PolygonselectionMapStyle"===e.getAttribute("class")&&(l.maps.polygonSelectionClass=i.i(o._37)(l.selectionType+"selectionMap"),l.maps.selectedPolygonElementId.push(e.getAttribute("id")))}})},e.prototype.removedSelectionList=function(e){"Shape"===this.selectionType&&this.maps.selectedElementId.splice(this.maps.selectedElementId.indexOf(e.getAttribute("id")),1),"Bubble"===this.selectionType&&this.maps.selectedBubbleElementId.splice(this.maps.selectedBubbleElementId.indexOf(e.getAttribute("id")),1),"Marker"===this.selectionType&&this.maps.selectedMarkerElementId.splice(this.maps.selectedMarkerElementId.indexOf(e.getAttribute("id")),1),"navigationline"===this.selectionType&&this.maps.selectedBubbleElementId.splice(this.maps.selectedBubbleElementId.indexOf(e.getAttribute("id")),1),"Polygon"===this.selectionType&&this.maps.selectedPolygonElementId.splice(this.maps.selectedPolygonElementId.indexOf(e.getAttribute("id")),1)},e.prototype.getModuleName=function(){return"Selection"},e.prototype.destroy=function(){this.selectionsettings=null,this.removeEventListener(),this.maps=null},e}())},function(e,t,i){"use strict";i.d(t,"a",function(){return l});var n=i(2),o=i(6),a=(i.n(o),i(1)),r=(i.n(a),i(0)),l=function(){function e(e){this.maps=e,this.tooltipId=this.maps.element.id+"_mapsTooltip",this.addEventListener()}return e.prototype.renderTooltip=function(e){var t,l,s,d,p,h=this;if(-1!==e.type.indexOf("touch")?(this.isTouch=!0,d=e,t=d.changedTouches[0].pageX,l=d.changedTouches[0].pageY,s=d.target):(this.isTouch="touch"===e.pointerType,t=e.pageX,l=e.pageY,s=e.target),-1===s.id.indexOf(this.maps.element.id)){var u=s.closest("."+this.maps.element.id+"_marker_template_element");!i.i(a.isNullOrUndefined)(u)&&u.id.indexOf("_MarkerIndex_")>-1&&(s=u)}var c,m,g,y,f="",b=s.id,v=[],S=b.indexOf("_LayerIndex_")>-1&&parseFloat(b.split("_LayerIndex_")[1].split("_")[0]),_=this.maps.layersCollection[S],x=[],O=i.i(r.e)(t,l,this.maps.svgObject);this.tooltipTargetID=b;var M,C,L,P=null,w=null,T=this.maps.getClickLocation(b,e.pageX,e.pageY,s,e.layerX,e.layerY,"tooltip");i.i(a.isNullOrUndefined)(T)||(P=T.latitude,w=T.longitude);var I=b.indexOf("_PolygonIndex_")>-1;if((b.indexOf("_shapeIndex_")>-1||b.indexOf("_MarkerIndex_")>-1||b.indexOf("_BubbleIndex_")>-1||b.indexOf("_PolygonIndex_")>-1)&&null===this.maps.markerDragArgument){if(b.indexOf("_PolygonIndex_")>-1){var k=parseInt(b.split("_PolygonIndex_")[1].split("_")[0],10);m=_.polygonSettings.tooltipSettings,L=_.polygonSettings.polygons[k],M=m.textStyle,C=m.fill,x.push(L.tooltipText)}else if(b.indexOf("_shapeIndex_")>-1){c=_.tooltipSettings;var N=parseInt(b.split("_shapeIndex_")[1].split("_")[0],10);if(i.i(a.isNullOrUndefined)(_.layerData)||i.i(a.isNullOrUndefined)(_.layerData[N]))return;var E=_.layerData[N].property,F=!1,z="[object Array]"===Object.prototype.toString.call(_.shapePropertyPath)?_.shapePropertyPath:[_.shapePropertyPath];if(!i.i(a.isNullOrUndefined)(z)){for(var A=0;A<z.length;A++)for(var B=0;B<_.dataSource.length;B++){var U=_.dataSource[B],j=_.shapeDataPath.indexOf(".")>-1?i.i(r.Q)(U,_.shapeDataPath):U[_.shapeDataPath],Z=!i.i(a.isNullOrUndefined)(j)&&isNaN(U[_.shapeDataPath])?j.toLowerCase():j,R=!i.i(a.isNullOrUndefined)(E[z[A]])&&isNaN(E[z[A]])?E[z[A]].toLowerCase():E[z[A]];if(Z===R){F=!0,S=B,A=z.length;break}}if(S=F?S:null,!i.i(a.isNullOrUndefined)(_.dataSource[S])){v=JSON.parse(JSON.stringify(_.dataSource[S]));for(y in E)v.hasOwnProperty(y)||(v[y]=E[y])}}if(c.visible&&(!i.i(a.isNullOrUndefined)(S)&&!isNaN(S)||!i.i(a.isNullOrUndefined)(E)))if(_.tooltipSettings.format)f=this.formatter(_.tooltipSettings.format,v);else{var D=i.i(r._21)(_.shapeDataPath,_.shapePropertyPath,E);f=i.i(a.isNullOrUndefined)(_.dataSource)||i.i(a.isNullOrUndefined)(S)?E[D]:i.i(r.M)(c.valuePath.indexOf(".")>-1?i.i(r.Q)(_.dataSource[S],c.valuePath):_.dataSource[S][c.valuePath],this.maps),i.i(a.isNullOrUndefined)(f)&&(f=c.valuePath.indexOf(".")>-1?i.i(r.Q)(E,c.valuePath):E[c.valuePath])}}else if(b.indexOf("_MarkerIndex_")>-1){var V=parseInt(b.split("_MarkerIndex_")[1].split("_")[0],10),G=parseInt(b.split("_MarkerIndex_")[1].split("_")[2],10),H=_.markerSettings[V];c=H.tooltipSettings,v=H.dataSource[G],c.visible&&!isNaN(V)&&(f=H.tooltipSettings.format?this.formatter(H.tooltipSettings.format,H.dataSource[G]):"function"!=typeof H.template&&H.template&&!H.tooltipSettings.valuePath?H.template.split(">")[1].split("<")[0]:i.i(r.M)(H.tooltipSettings.valuePath.indexOf(".")>-1?i.i(r.Q)(H.dataSource[G],H.tooltipSettings.valuePath):H.dataSource[G][H.tooltipSettings.valuePath],this.maps))}else if(b.indexOf("_BubbleIndex_")>-1){var W=parseInt(b.split("_BubbleIndex_")[1].split("_")[0],10),G=parseInt(b.split("_BubbleIndex_")[1].split("_")[2],10),q=_.bubbleSettings[W];c=q.tooltipSettings,v=q.dataSource[G],c.visible&&!isNaN(G)&&(f=q.tooltipSettings.format?this.formatter(q.tooltipSettings.format,q.dataSource[G]):i.i(r.M)(q.tooltipSettings.valuePath.indexOf(".")>-1?i.i(r.Q)(q.dataSource[G],q.tooltipSettings.valuePath):q.dataSource[G][q.tooltipSettings.valuePath],this.maps))}if(I?m.visible:c.visible){document.getElementById(this.tooltipId)?g=document.getElementById(this.tooltipId):(g=i.i(a.createElement)("div",{id:this.maps.element.id+"_mapsTooltip",className:"EJ2-maps-Tooltip"}),i.i(a.isNullOrUndefined)(I?L.tooltipTemplate:c.template)||(I?""===L.tooltipTemplate:""===c.template)||"MouseMove"===this.maps.tooltipDisplayMode?g.style.cssText="position: absolute;pointer-events:none;":g.style.position="absolute",document.getElementById(this.maps.element.id+"_Secondary_Element").appendChild(g)),I?L.tooltipTemplate:c.template,(I?null!==L.tooltipTemplate:null!==c.template)&&1===Object.keys((I?L.tooltipTemplate:c.template,I?L.tooltipTemplate:c.template)).length&&(I?L.tooltipTemplate=L.tooltipTemplate[Object.keys(L.tooltipTemplate)[0]]:c.template=c.template[Object.keys(c.template)[0]]),v=this.setTooltipContent(c,v);var X={color:I?M.color:c.textStyle.color,fontFamily:I?M.fontFamily:c.textStyle.fontFamily,fontStyle:I?M.fontStyle:c.textStyle.fontStyle,fontWeight:I?M.fontWeight:c.textStyle.fontWeight,opacity:I?M.opacity:c.textStyle.opacity,size:I?M.size:c.textStyle.size},Y={location:O,text:x,data:v,textStyle:X,template:I?L.tooltipTemplate:c.template};p={cancel:!1,name:n.i,options:Y,fill:I?C:c.fill,maps:this.maps,latitude:P,longitude:w,element:s,eventArgs:e,content:I?L.tooltipText:i.i(a.isNullOrUndefined)(f)?"":f.toString()},""!==p.content||""!==p.options.template?this.maps.trigger(n.i,p,function(t){if(p.cancel||i.i(a.isNullOrUndefined)(f)||-1!==b.indexOf("_cluster_")||-1!==b.indexOf("_dataLabel_"))h.clearTooltip(e.target);else if(h.maps.isProtectedOnChange=!0,p.options.textStyle.size=p.options.textStyle.size||h.maps.themeStyle.fontSize,p.options.textStyle.color=p.options.textStyle.color||h.maps.themeStyle.tooltipFontColor,p.options.textStyle.fontFamily=p.options.textStyle.fontFamily||h.maps.themeStyle.fontFamily,p.options.textStyle.fontWeight=p.options.textStyle.fontWeight||h.maps.themeStyle.fontWeight,p.options.textStyle.opacity=p.options.textStyle.opacity||h.maps.themeStyle.tooltipTextOpacity,p.cancel?h.svgTooltip=new o.Tooltip({enable:!0,header:"",data:c.data,template:c.template,content:p.content.toString()!==f.toString()?[p.content.toString()]:[f.toString()],shapes:[],location:c.location,palette:[void 0],areaBounds:h.maps.mapAreaRect,textStyle:c.textStyle,availableSize:h.maps.availableSize,fill:c.fill||h.maps.themeStyle.tooltipFillColor,enableShadow:!0,border:I?m.border:c.border}):h.svgTooltip=new o.Tooltip({enable:!0,header:"",data:p.options.data,template:p.options.template,content:p.content.toString()!==f.toString()?[p.content.toString()]:[f.toString()],shapes:[],location:p.options.location,palette:[void 0],areaBounds:h.maps.mapAreaRect,textStyle:p.options.textStyle,availableSize:h.maps.availableSize,fill:p.fill||h.maps.themeStyle.tooltipFillColor,enableShadow:!0,border:I?m.border:c.border}),(h.maps.isVue||h.maps.isVue3)&&(h.svgTooltip.controlInstance=h.maps),h.svgTooltip.opacity=h.maps.themeStyle.tooltipFillOpacity||h.svgTooltip.opacity,h.svgTooltip.appendTo(g),h.maps.renderReactTemplates(),h.maps.isDevice){var n=b.indexOf("_MarkerIndex_")>-1||b.indexOf("_BubbleIndex_")>-1||b.indexOf("_shapeIndex_")>-1?c.duration:m.duration;null!==(n=!i.i(a.isNullOrUndefined)(n)&&n>0?n:n<0?2e3:null)&&(clearTimeout(h.tooltipTimer),h.tooltipTimer=setTimeout(h.removeTooltip.bind(h),n))}}):this.clearTooltip(e.target),this.svgTooltip&&this.maps.trigger("tooltipRenderComplete",{cancel:!1,name:"tooltipRenderComplete",maps:this.maps,options:Y,element:this.svgTooltip.element}),this.svgTooltip?this.maps.trigger("tooltipRenderComplete",{cancel:!1,name:"tooltipRenderComplete",maps:this.maps,options:Y,element:this.svgTooltip.element}):this.clearTooltip(e.target)}else this.clearTooltip(e.target)}else{var Q=e.target.closest("#"+this.maps.element.id+"_mapsTooltipparent_template");i.i(a.isNullOrUndefined)(Q)&&this.clearTooltip(e.target)}},e.prototype.setTooltipContent=function(e,t){var n=i.i(a.extend)({},t,null,!0);return this.maps.format&&!isNaN(Number(n[e.valuePath]))?n[e.valuePath]=i.i(r._35)(this.maps,Number(n[e.valuePath])):n=Object.keys(n).length?n:void 0,n},e.prototype.formatter=function(e,t){void 0===t&&(t={});for(var n=Object.keys(t),o=0,a=n;o<a.length;o++){var l=a[o];e="object"==typeof t[l]?i.i(r.N)("",e,t,this.maps):e.split("${"+l+"}").join(i.i(r.M)(t[l],this.maps))}return e},e.prototype.mouseUpHandler=function(e){i.i(a.isNullOrUndefined)(this.maps)||(this.renderTooltip(e),"MouseMove"===this.maps.tooltipDisplayMode&&(clearTimeout(this.tooltipTimer),this.tooltipTimer=setTimeout(this.removeTooltip.bind(this),2e3)))},e.prototype.removeTooltip=function(){var e=!1;return document.getElementsByClassName("EJ2-maps-Tooltip").length>0&&(i.i(a.remove)(document.getElementsByClassName("EJ2-maps-Tooltip")[0]),e=!0),e},e.prototype.clearTooltip=function(e){var t=e.closest("#"+this.maps.element.id+"_mapsTooltipparent_template");if(i.i(a.isNullOrUndefined)(t)){this.removeTooltip()&&this.maps.clearTemplate()}},e.prototype.addEventListener=function(){this.maps.isDestroyed||("DoubleClick"===this.maps.tooltipDisplayMode?this.maps.on("dblclick",this.renderTooltip,this):"Click"===this.maps.tooltipDisplayMode?this.maps.on(a.Browser.touchEndEvent,this.mouseUpHandler,this):this.maps.on(a.Browser.touchMoveEvent,this.renderTooltip,this),this.maps.on(a.Browser.touchCancelEvent,this.removeTooltip,this),this.maps.element.addEventListener("contextmenu",this.removeTooltip))},e.prototype.removeEventListener=function(){if(this.maps){if(this.maps.isDestroyed)return;"DoubleClick"===this.maps.tooltipDisplayMode?this.maps.off("dblclick",this.renderTooltip):"Click"===this.maps.tooltipDisplayMode?this.maps.off(a.Browser.touchEndEvent,this.mouseUpHandler):this.maps.off(a.Browser.touchMoveEvent,this.renderTooltip),this.maps.off(a.Browser.touchCancelEvent,this.removeTooltip),this.maps.element.removeEventListener("contextmenu",this.removeTooltip)}},e.prototype.getModuleName=function(){return"MapsTooltip"},e.prototype.destroy=function(){i.i(a.isNullOrUndefined)(this.svgTooltip)||this.svgTooltip.destroy(),this.svgTooltip=null,this.maps=null},e}()},function(e,t,i){"use strict";i.d(t,"a",function(){return l});var n=i(0),o=i(1),a=(i.n(o),i(2)),r=i(3),l=function(){function e(e){this.isPanModeEnabled=!1,this.mouseEnter=!1,this.isTouch=!1,this.rectZoomingStart=!1,this.browserName=o.Browser.info.name,this.isPointer=o.Browser.isPointer,this.handled=!1,this.isPanningInProgress=!1,this.isPan=!1,this.isZoomFinal=!1,this.isZoomSelection=!1,this.pinchFactor=1,this.startTouches=[],this.mouseDownLatLong={x:0,y:0},this.mouseMoveLatLong={x:0,y:0},this.isSingleClick=!1,this.maps=e,this.wheelEvent="mozilla"===this.browserName?this.isPointer?"mousewheel":"DOMMouseScroll":"mousewheel",this.cancelEvent=this.isPointer?"pointerleave":"mouseleave",this.selectionColor=null==this.maps.zoomSettings.toolbarSettings.buttonSettings.selectionColor?this.maps.zoomSettings.selectionColor:this.maps.zoomSettings.toolbarSettings.buttonSettings.selectionColor,this.fillColor=null==this.maps.zoomSettings.toolbarSettings.buttonSettings.color?this.maps.zoomSettings.color:this.maps.zoomSettings.toolbarSettings.buttonSettings.color,this.addEventListener()}return e.prototype.performZooming=function(e,t,i){var a=this,r=this.maps;r.previousProjection=t<=1.5?void 0:r.projectionType,r.defaultState=!1,r.initialCheck=!1,r.markerZoomedState=r.isMarkerZoomCompleted=!1,r.zoomPersistence=r.enablePersistence;var l=r.tileZoomLevel,s=r.previousScale=r.scale,d=r.zoomSettings.maxZoom,p=r.zoomSettings.minZoom;t=d>=t?t:d;var h=!0;switch(i.toLowerCase()){case"zoomin":h=t<=this.maps.zoomSettings.maxZoom;break;case"zoomout":h=t>=this.maps.zoomSettings.minZoom}if(h){var u=r.tileTranslatePoint;if(r.isTileMap||!("ZoomIn"===i?t>=p&&t<=d:t>=p)&&!r.isReset){if(r.isTileMap&&t>=p&&t<=d)if(this.getTileTranslatePosition(l,t,e,i),r.tileZoomLevel=t,r.zoomSettings.zoomFactor=t,r.scale=Math.pow(2,t-1),"ZoomOut"===i&&r.zoomSettings.resetToInitial&&r.applyZoomReset&&t<=r.initialZoomLevel&&(r.initialCheck=!0,r.zoomPersistence=!1,r.tileTranslatePoint.x=r.initialTileTranslate.x,r.tileTranslatePoint.y=r.initialTileTranslate.y,t=r.tileZoomLevel=r.mapScaleValue=r.initialZoomLevel,r.scale=Math.pow(2,t-1)),r.mapScaleValue=isNaN(r.mapScaleValue)?1:r.mapScaleValue,r.translatePoint.y=(r.tileTranslatePoint.y-.01*r.mapScaleValue)/r.scale,r.translatePoint.x=(r.tileTranslatePoint.x-.01*r.mapScaleValue)/r.scale,this.triggerZoomEvent(u,l,i))r.translatePoint=r.tileTranslatePoint=new n.s(0,0),r.scale=r.previousScale,r.tileZoomLevel=l,r.zoomSettings.zoomFactor=r.previousScale;else{document.querySelector(".GroupElement")&&(document.querySelector(".GroupElement").style.display="none"),document.getElementById(this.maps.element.id+"_LayerIndex_1")&&(document.getElementById(this.maps.element.id+"_LayerIndex_1").style.display="none"),this.markerLineAnimation(r),r.mapLayerPanel.generateTiles(t,r.tileTranslatePoint,i+"wheel",null,e);var c=0===this.maps.layersCollection[0].animationDuration&&"Enable"===o.animationMode?1e3:this.maps.layersCollection[0].animationDuration;setTimeout(function(){a.applyTransform(a.maps),document.getElementById(a.maps.element.id+"_LayerIndex_1")&&(document.getElementById(a.maps.element.id+"_LayerIndex_1").style.display="block")},c)}}else{var m=r.mapAreaRect,g=r.baseMapRectBounds.min,y=r.baseMapRectBounds.max,f=Math.abs(g.x-y.x),b=Math.abs(g.y-y.y),v=void 0,S=void 0;if(t<1.2&&"Eckert5"!==r.projectionType)0!==f&&0!==b&&f!==b||(f=m.width/2,b=m.height),t=parseFloat(Math.min(m.width/f,m.height/b).toFixed(2)),t=t>1.05?1:t,r.translatePoint=this.calculateInitalZoomTranslatePoint(t,f,b,m,g,r);else{var _=r.translatePoint;v=_.x-(m.width/s-m.width/t)/(m.width/e.x),S=_.y-(m.height/s-m.height/t)/(m.height/e.y);var x=Math.abs(r.baseMapRectBounds.max.y-r.baseMapRectBounds.min.y)*t;v=x<r.mapAreaRect.height?m.x+(-g.x+(m.width/2-f/2)):v,S=x<r.mapAreaRect.height?m.y+(-g.y+(m.height/2-b/2)):S,r.translatePoint=new n.s(v,S)}r.scale=t,r.zoomTranslatePoint=r.translatePoint,this.triggerZoomEvent(u,l,i)?(r.translatePoint=r.previousPoint,r.scale=r.mapScaleValue=r.previousScale):this.applyTransform(r)}this.triggerZoomComplete(r,l,i)}this.maps.zoomNotApplied=!1,this.maps.isDevice&&this.removeToolbarOpacity(r.isTileMap?Math.round(r.tileZoomLevel):r.scale,r.element.id+"_Zooming_")},e.prototype.calculateInitalZoomTranslatePoint=function(e,t,i,o,a,r){t*=e,i*=e;var l=0!==a.x&&"layers"===r.translateType?r.availableSize.width-o.width:0,s=o.x+(-a.x+(o.width/2-t/2))-l,d=o.y+(-a.y+(o.height/2-i/2));return new n.s(s,d)},e.prototype.triggerZoomEvent=function(e,t,n){var a,r=this.maps;r.isTileMap&&(r.mapScaleValue=i.i(o.isNullOrUndefined)(r.mapScaleValue)?1:r.mapScaleValue,r.translatePoint.y=(r.tileTranslatePoint.y-.01*r.mapScaleValue)/r.scale,r.translatePoint.x=(r.tileTranslatePoint.x-.01*r.mapScaleValue)/r.scale);var l=this.maps.getMinMaxLatitudeLongitude();return a=r.isTileMap?{cancel:!1,name:"zoom",type:n,maps:r,tileTranslatePoint:{previous:e,current:r.tileTranslatePoint},translatePoint:{previous:r.previousPoint,current:r.translatePoint},tileZoomLevel:{previous:t,current:r.tileZoomLevel},scale:{previous:r.previousScale,current:r.scale},minLatitude:l.minLatitude,maxLatitude:l.maxLatitude,minLongitude:l.minLongitude,maxLongitude:l.maxLongitude}:{cancel:!1,name:"zoom",type:n,maps:r,tileTranslatePoint:{},translatePoint:{previous:r.previousPoint,current:r.translatePoint},tileZoomLevel:{},scale:{previous:r.previousScale,current:r.scale},minLatitude:l.minLatitude,maxLatitude:l.maxLatitude,minLongitude:l.minLongitude,maxLongitude:l.maxLongitude},r.trigger("zoom",a),a.cancel},e.prototype.getTileTranslatePosition=function(e,t,i,n){var o=this.maps,a="ZoomOut"===n?10:"Reset"===n&&t>1?0:10,r=o.availableSize,l=256*Math.pow(2,e),s=256*Math.pow(2,t),d=(i.x-o.tileTranslatePoint.x)/l*100,p=(i.y-o.tileTranslatePoint.y)/l*100;o.tileTranslatePoint.x=1===t?r.width/2-256:i.x-d*s/100,o.tileTranslatePoint.y=1===t?r.height/2-256+2*a:i.y-p*s/100},e.prototype.performRectZooming=function(){this.isDragZoom=!0;var e=this.maps,t=e.availableSize;e.previousProjection=e.projectionType;var i,o=e.tileZoomLevel,a=e.tileTranslatePoint,r=this.zoomingRect,l=e.zoomSettings.maxZoom,s=e.zoomSettings.minZoom;if(r.height>0&&r.width>0){var d=this.zoomingRect.x+this.zoomingRect.width/2,p=this.zoomingRect.y+this.zoomingRect.height/2,h=void 0;if(e.isTileMap)h=o+Math.round(o+(t.width/r.width+t.height/r.height)/2),h=h>=s&&h<=l?h:l,e.zoomSettings.zoomFactor=h,this.getTileTranslatePosition(o,h,{x:d,y:p}),e.tileZoomLevel=h,e.translatePoint.x=(e.tileTranslatePoint.x-.5*Math.pow(2,h))/Math.pow(2,h),e.translatePoint.y=(e.tileTranslatePoint.y-.5*Math.pow(2,h))/Math.pow(2,h),e.scale=Math.pow(2,h),i=this.triggerZoomEvent(a,o,""),i?(e.translatePoint=e.tileTranslatePoint=new n.s(0,0),e.scale=e.tileZoomLevel=e.zoomSettings.zoomFactor=o):e.mapLayerPanel.generateTiles(h,e.tileTranslatePoint);else{var u=e.previousScale=e.scale;h=u+Math.round((t.width/r.width+t.height/r.height)/2),h=h<this.maps.zoomSettings.maxZoom?h:this.maps.zoomSettings.maxZoom;var c=e.previousPoint=e.translatePoint;if(h<=l){var m=c.x-(t.width/u-t.width/h)/(t.width/d),g=c.y-(t.height/u-t.height/h)/(t.height/p);e.translatePoint=new n.s(m,g)}e.scale=h<this.maps.zoomSettings.maxZoom?h:this.maps.zoomSettings.maxZoom,i=this.triggerZoomEvent(a,o,""),i&&(e.translatePoint=e.previousPoint,e.scale=e.previousScale),e.zoomTranslatePoint=e.translatePoint}i||(e.mapScaleValue=h,this.applyTransform(e,!0),this.maps.zoomNotApplied=!1,this.zoomingRect=null)}this.isZoomFinal=this.isZoomSelection&&Math.round(e.scale)===this.maps.zoomSettings.maxZoom,this.triggerZoomComplete(e,o,""),this.removeToolbarOpacity(e.scale,this.maps.element.id+"_Zooming_")},e.prototype.setInteraction=function(e){this.lastScale=1,this.interaction=e},e.prototype.updateInteraction=function(){2===this.fingers?this.setInteraction("zoom"):this.setInteraction(null)},e.prototype.performPinchZooming=function(e){var t,a=this.maps,r=a.tileZoomLevel,l=this.pinchFactor,s=a.tileTranslatePoint;if(a.isTileMap){var d=this.getTouchCenterPoint(),p=Math.sqrt(Math.pow(this.touchMoveList[0].pageX-this.touchMoveList[1].pageX,2)+Math.pow(this.touchMoveList[0].pageY-this.touchMoveList[1].pageY,2)),h=a.tileZoomLevel;i.i(o.isNullOrUndefined)(this.pinchDistance)||(this.pinchDistance>p?h-=1:this.pinchDistance<p&&(h+=1),(h=Math.min(this.maps.zoomSettings.maxZoom,Math.max(this.maps.zoomSettings.minZoom,h)))!==a.tileZoomLevel&&(this.pinchFactor=h,a.previousScale=a.scale,a.tileZoomLevel=this.pinchFactor,a.scale=Math.pow(2,a.tileZoomLevel-1),this.getTileTranslatePosition(r,this.pinchFactor,{x:d.x,y:d.y},null),a.translatePoint.x=(a.tileTranslatePoint.x-.01*a.scale)/a.scale,a.translatePoint.y=(a.tileTranslatePoint.y-.01*a.scale)/a.scale,t=this.triggerZoomEvent(s,r,""),t?(a.translatePoint=a.tileTranslatePoint=new n.s(0,0),a.scale=a.previousScale,a.tileZoomLevel=r,a.zoomSettings.zoomFactor=a.previousScale):a.mapLayerPanel.generateTiles(h,a.tileTranslatePoint))),this.pinchDistance=p}else{var u=a.mapAreaRect;a.isMarkerZoomCompleted=!1,a.previousScale=a.scale,a.previousPoint=a.translatePoint,a.previousProjection=a.projectionType;var c=i.i(n._59)(this.touchStartList,this.touchMoveList),d=i.i(n._62)(i.i(n._61)(this.touchMoveList,this.maps)),m=c/this.lastScale;this.lastScale=c,this.pinchFactor*=m,this.pinchFactor=Math.min(this.maps.zoomSettings.maxZoom,Math.max(this.pinchFactor,this.maps.zoomSettings.minZoom));var g=a.baseMapRectBounds.min,y=a.baseMapRectBounds.max,f=Math.abs(g.y-y.y),b=Math.abs(g.x-y.x),v=a.translatePoint,S=void 0,_=void 0;if(l<1.2&&"Eckert5"!==a.projectionType)0!==b&&0!==f&&b!==f||(b=u.width/2,f=u.height),l=parseFloat(Math.min(u.width/b,u.height/f).toFixed(2)),l=l>1.05?1:l,a.translatePoint=this.calculateInitalZoomTranslatePoint(l,b,f,u,g,a);else{var x=Math.abs(a.baseMapRectBounds.max.y-a.baseMapRectBounds.min.y)*l;S=v.x-(u.width/a.scale-u.width/l)/(u.width/d.x),_=v.y-(u.height/a.scale-u.height/l)/(u.height/d.y),S=x<a.mapAreaRect.height?u.x+(-g.x+(u.width/2-b/2)):S,_=x<a.mapAreaRect.height?u.y+(-g.y+(u.height/2-f/2)):_,a.translatePoint=new n.s(S,_)}a.scale=l,t=this.triggerZoomEvent(s,r,""),t&&(a.translatePoint=a.previousPoint,a.scale=a.previousScale)}a.mapScaleValue=l,t||this.applyTransform(a),this.triggerZoomComplete(a,r,""),o.Browser.isDevice&&this.removeToolbarOpacity(a.isTileMap?Math.round(a.tileZoomLevel):a.scale,a.element.id+"_Zooming_")},e.prototype.getTouchCenterPoint=function(){for(var e=[],t=0;t<this.touchMoveList.length;t++)e.push(this.getMousePosition(this.touchMoveList[t].pageX,this.touchMoveList[t].pageY));return{x:(e[0].x+e[1].x)/2,y:(e[0].y+e[1].y)/2}},e.prototype.triggerZoomComplete=function(e,t,n){if(e.zoomSettings.enable){var a=void 0;e.isTileMap&&(e.mapScaleValue=i.i(o.isNullOrUndefined)(e.mapScaleValue)?1:e.mapScaleValue,e.translatePoint.y=(e.tileTranslatePoint.y-.01*e.mapScaleValue)/e.scale,e.translatePoint.x=(e.tileTranslatePoint.x-.01*e.mapScaleValue)/e.scale);var r=this.maps.getMinMaxLatitudeLongitude();a=e.isTileMap?{cancel:!1,name:"zoomComplete",type:n,maps:e,tileTranslatePoint:{previous:e.tileTranslatePoint,current:e.tileTranslatePoint},translatePoint:{previous:e.previousPoint,current:e.translatePoint},tileZoomLevel:{previous:t,current:e.tileZoomLevel},scale:{previous:e.previousScale,current:e.scale},minLatitude:r.minLatitude,maxLatitude:r.maxLatitude,minLongitude:r.minLongitude,maxLongitude:r.maxLongitude}:{cancel:!1,name:"zoomComplete",type:n,maps:e,tileTranslatePoint:{},translatePoint:{previous:e.previousPoint,current:e.translatePoint},tileZoomLevel:{},scale:{previous:e.previousScale,current:e.scale},minLatitude:r.minLatitude,maxLatitude:r.maxLatitude,minLongitude:r.minLongitude,maxLongitude:r.maxLongitude},this.maps.trigger("zoomComplete",a)}},e.prototype.drawZoomRectangle=function(){var e=this.maps,t=this.mouseDownPoints,o=this.mouseMovePoints,a={width:1,color:this.maps.themeStyle.rectangleZoomBorderColor},r=Math.abs(o.x-t.x),l=Math.abs(o.y-t.y),s=o.x>t.x?t.x:t.x-r,d=o.y>t.y?t.y:t.y-l;if(s>e.mapAreaRect.x&&s<e.mapAreaRect.x+e.mapAreaRect.width&&d>e.mapAreaRect.y&&d<e.mapAreaRect.y+e.mapAreaRect.height){this.zoomingRect=new n.I(s,d,r,l);var p=e.renderer.createSvg({id:e.element.id+"_Selection_Rect_Zooming",width:e.availableSize.width,height:e.availableSize.height,style:"position: absolute;"}),h=new n.B(e.element.id+"_ZoomRect",this.maps.themeStyle.rectangleZoomFillColor,a,this.maps.themeStyle.rectangleZoomFillOpacity,this.zoomingRect,0,0,"","3");p.appendChild(e.renderer.drawRectangle(h)),i.i(n._33)(e.element.id+"_Secondary_Element").appendChild(p)}},e.prototype.animateTransform=function(e,t,a,r,l){var s=0===this.currentLayer.animationDuration&&"Enable"===o.animationMode?1e3:this.currentLayer.animationDuration;if(!t||0===s||this.maps.isTileMap)return void(this.maps.isTileMap&&e.id.indexOf("_Polygons_Group")>-1||e.setAttribute("transform","scale("+l+") translate( "+a+" "+r+" )"));this.maps.isTileMap||i.i(n._64)(e,0,s,new n.H(a,r),l,this.maps.mapAreaRect,this.maps)},e.prototype.applyTransform=function(e,t,r){var l,s=this;this.templateCount=0;var d,p=e.scale,h=e.translatePoint.x,u=e.translatePoint.y,c=0;if(e.zoomShapeCollection=[],this.isPanningInProgress=r||!1,document.getElementById(e.element.id+"_mapsTooltip")&&i.i(n._28)(e.element.id+"_mapsTooltip"),this.layerCollectionEle){for(var m=this,g=0;g<this.layerCollectionEle.childElementCount;g++)!function(g){var y=m.layerCollectionEle.childNodes[g];if("g"===y.tagName){m.templateCount++,m.index=y.id.indexOf("_LayerIndex_")>-1&&parseFloat(y.id.split("_LayerIndex_")[1].split("_")[0]),m.currentLayer=e.layersCollection[m.index];for(var f=e.mapLayerPanel.calculateFactor(m.currentLayer),b=y.childElementCount,v=0;v<b;v++)!function(g){var b=y.childNodes[g];if(b.id.indexOf("_Markers_Group")>-1||b.id.indexOf("_bubble_Group")>-1||b.id.indexOf("_dataLableIndex_Group")>-1){if(b.id.indexOf("_Markers_Group")>-1){m.isPanModeEnabled&&r||i.i(o.isNullOrUndefined)(b.childNodes[0])||m.markerTranslates(b.childNodes[0],f,h,u,p,"Marker",y),b=y.childNodes[g];var v;if(!i.i(o.isNullOrUndefined)(b)&&-1!==b.id.indexOf("Markers")&&(Array.prototype.forEach.call(b.childNodes,function(i,n){s.markerTranslate(i,f,h,u,p,"Marker",t);var a=parseInt(i.id.split("_dataIndex_")[1].split("_")[0],10),r=parseInt(i.id.split("_MarkerIndex_")[1].split("_")[0],10);if(v=s.currentLayer.markerSettings[r].animationDuration>0||"Enable"===o.animationMode,s.currentLayer.markerSettings[r].initialMarkerSelection.length>0)for(var l=s.currentLayer.markerSettings[r].dataSource[a],c=0;c<s.currentLayer.markerSettings[r].initialMarkerSelection.length;c++)s.currentLayer.markerSettings[r].initialMarkerSelection[c].latitude!==l.latitude&&s.currentLayer.markerSettings[r].initialMarkerSelection[c].longitude!==l.longitude||e.markerSelection(s.currentLayer.markerSettings[r].selectionSettings,e,b.children[n],s.currentLayer.markerSettings[r].dataSource[a]);if((s.currentLayer.animationDuration>0||"Enable"===o.animationMode||(e.layersCollection[0].animationDuration>0||"Enable"===o.animationMode)&&"SubLayer"===s.currentLayer.type)&&!s.isPanModeEnabled)if(e.isTileMap){var m=document.querySelector(".GroupElement");m&&!document.querySelector(".ClusterGroupElement")&&v&&(m.style.display="none")}else d="visibility:hidden",b.style.cssText=d}),m.isPanModeEnabled&&e.markerModule.sameMarkerData.length>0?i.i(n.X)(e.markerModule.sameMarkerData,e,b,!0):e.markerModule.sameMarkerData.length>0&&(e.markerModule.sameMarkerData=[],document.getElementById(e.element.id+"_mapsTooltip")&&i.i(n._28)(e.element.id+"_mapsTooltip")),document.getElementById(e.element.id+"_mapsTooltip")&&e.mapsTooltipModule.tooltipTargetID.indexOf("_MarkerIndex_")&&!m.isPanModeEnabled)){var S=e.mapsTooltipModule,_=b.querySelector("#"+S.tooltipTargetID);if(!i.i(o.isNullOrUndefined)(_))if("hidden"===_.style.visibility)i.i(n._28)(e.element.id+"_mapsTooltip");else{var x=parseFloat(_.getAttribute("transform").split("(")[1].split(")")[0].split(" ")[1]),O=parseFloat(_.getAttribute("transform").split("(")[1].split(")")[0].split(" ")[2]);e.isTileMap&&(x+=+i.i(n._37)(e.element.id+"_tile_parent").style.left.split("px")[0],O+=+i.i(n._37)(e.element.id+"_tile_parent").style.top.split("px")[0]),S.svgTooltip.location.x=x,S.svgTooltip.location.y=O,S.svgTooltip.enableAnimation=!1}}}else if(b.id.indexOf("_bubble_Group")>-1)for(var M=void 0,C=0;C<b.childElementCount;C++){M=b.childNodes[C],l=parseFloat(M.id.split("_LayerIndex_")[1].split("_")[0]);for(var L=parseFloat(M.id.split("_BubbleIndex_")[1].split("_")[0]),P=parseFloat(M.id.split("_BubbleIndex_")[1].split("_")[2]),w=0;w<e.bubbleModule.bubbleCollection.length;w++){var T=e.bubbleModule.bubbleCollection[w];if(T.LayerIndex===l&&T.BubbleIndex===L&&T.DataIndex===P){var I=T.center.x,k=T.center.y,N=(I+h)*p,E=(k+u)*p,F=0===m.currentLayer.animationDuration&&"Enable"===o.animationMode?1e3:m.currentLayer.animationDuration;t&&0!==F?i.i(n._67)(M,0,F,new n.H(N,E)):M.setAttribute("transform","translate( "+N+" "+E+" )");break}}}else if(b.id.indexOf("_dataLableIndex_Group")>-1&&!i.i(o.isNullOrUndefined)(e.layers[m.index])){e.zoomLabelPositions=[],e.zoomLabelPositions=e.dataLabelModule.dataLabelCollections;var z=!e.isTileMap&&t,A=[];Array.prototype.forEach.call(b.childNodes,function(t,a){if(b.childNodes[a].id.indexOf("_LabelIndex_")>-1){var l=parseFloat(b.childNodes[a].id.split("_LabelIndex_")[1].split("_")[0]),d=b.childNodes[a].id;e.zoomShapeCollection.push(d),s.dataLabelTranslate(b.childNodes[a],f,h,u,p,"DataLabel",z,c,r,A),c++;var m=e.layers[s.index].dataLabelSettings,g=m.border;if(a>0&&g.width>1&&b.childNodes[a-1].id.indexOf("_rectIndex_")>-1&&!i.i(o.isNullOrUndefined)(e.zoomLabelPositions[l])){var y=(e.zoomLabelPositions[l].location.x+h)*p,v=(e.zoomLabelPositions[l].location.y+u)*p,S=b.childNodes[a].textContent,_=e.layers[s.index].dataLabelSettings.textStyle,x=i.i(n.w)(S,_),O=b.childNodes[a-1],M=y-x.width/2,C=v-x.height/2-5;O.setAttribute("x",M),O.setAttribute("y",C)}}})}}else e.isTileMap&&b.id.indexOf("_line_Group")>-1?(b.remove(),y.children.length>0&&y.children[0]?y.insertBefore(e.navigationLineModule.renderNavigation(m.currentLayer,e.tileZoomLevel,m.index),y.children[1]):y.appendChild(e.navigationLineModule.renderNavigation(m.currentLayer,e.tileZoomLevel,m.index))):e.isTileMap&&b.id.indexOf("_Polygons_Group")>-1?m.currentLayer.polygonSettings.polygons.length>0&&(m.currentLayer.polygonSettings.polygons.map(function(t,o){var a=t.points,r=i.i(n.i)(e,e.tileZoomLevel,s.currentLayer,a);document.getElementById(e.element.id+"_LayerIndex_"+s.index+"_PolygonIndex_"+o).setAttribute("d",r)}),document.getElementById(e.element.id+"_LayerIndex_"+m.index+"_Polygons_Group").style.visibility=""):-1===b.id.indexOf("Legend")&&(i.i(a._131)(b,m.index,p,e),e.zoomTranslatePoint=e.translatePoint,m.animateTransform(b,t,h,u,p))}(v)}e.arrangeTemplate()}(g);i.i(o.isNullOrUndefined)(this.currentLayer)||t&&0!==this.currentLayer.animationDuration&&!e.isTileMap||this.processTemplate(h,u,p,e)}},e.prototype.markerTranslates=function(e,t,r,l,s,d,p){var h=this,u=0,c=0,m=0,g=parseInt((e||p).id.split("_LayerIndex_")[1].split("_")[0],10),y=this.maps.renderer.createGroup({id:this.maps.element.id+"_Markers_Group",class:"GroupElement"});y.style.pointerEvents="auto",document.getElementById(y.id)&&i.i(n._28)(y.id);var f=this.maps.mapAreaRect,b=i.i(o.createElement)("div",{id:this.maps.element.id+"_LayerIndex_"+g+"_Markers_Template_Group",className:"template"});b.style.cssText="overflow: hidden; position: absolute;pointer-events: none;top:"+f.y+"px;left:"+f.x+"px;height:"+f.height+"px;width:"+f.width+"px;",document.getElementById(b.id)&&i.i(n._28)(b.id);var v=this.maps.layersCollection[g];Array.prototype.forEach.call(v.markerSettings,function(e,f){var S=e.dataSource;Array.prototype.forEach.call(S,function(_,x){h.maps.markerNullCount=f>=0&&0===x?0:h.maps.markerNullCount;var O={template:e.template,data:_,maps:h.maps,marker:e,cancel:!1,name:a.q,fill:e.fill,colorValuePath:e.colorValuePath,shapeValuePath:e.shapeValuePath,height:e.height,width:e.width,imageUrl:e.imageUrl,imageUrlValuePath:e.imageUrlValuePath,shape:e.shape,border:e.border};O=i.i(n.S)(O,_),O=i.i(n.R)(O,_),h.maps.trigger("markerRendering",O,function(a){e.shapeValuePath!==O.shapeValuePath&&(O=i.i(n.S)(O,_)),e.colorValuePath!==O.colorValuePath&&(O=i.i(n.R)(O,_));var M=i.i(o.isNullOrUndefined)(e.latitudeValuePath)?i.i(o.isNullOrUndefined)(_.latitude)?i.i(o.isNullOrUndefined)(_.Latitude)?null:_.Latitude:parseFloat(_.latitude):Number(i.i(n.Q)(_,e.latitudeValuePath)),C=i.i(o.isNullOrUndefined)(e.longitudeValuePath)?i.i(o.isNullOrUndefined)(_.longitude)?i.i(o.isNullOrUndefined)(_.Longitude)?null:_.Longitude:parseFloat(_.longitude):Number(i.i(n.Q)(_,e.longitudeValuePath)),L=e.offset;if(!O.cancel&&e.visible&&!i.i(o.isNullOrUndefined)(C)&&!i.i(o.isNullOrUndefined)(M)){var P=h.maps.element.id+"_LayerIndex_"+g+"_MarkerIndex_"+f+"_dataIndex_"+x,w=h.maps.isTileMap?i.i(n.j)(new n.H(C,M),h.maps.tileZoomLevel,h.maps.tileTranslatePoint,!0):i.i(n.h)(M,C,t,v,h.maps),T={x:r,y:l};!O.template||isNaN(w.x)||isNaN(w.y)?O.template||isNaN(w.x)||isNaN(w.y)||(c++,i.i(n.Y)(O,e,S,x,w,T,P,L,s,h.maps,y)):(m++,i.i(n.Z)(O,void 0,P,_,f,b,w,T,s,L,h.maps))}u+=isNaN(M)||isNaN(C)?1:0,m+=O.cancel?1:0,c+=O.cancel?1:0,h.maps.markerNullCount=i.i(o.isNullOrUndefined)(M)||i.i(o.isNullOrUndefined)(C)?h.maps.markerNullCount+1:h.maps.markerNullCount;var I=S.length-h.maps.markerNullCount,k=!1;if(y.childElementCount===I-m-u&&"Template"!==d){if(h.maps.isTileMap){var N=document.getElementById(h.maps.element.id+"_LayerIndex_"+g+"_Polygons_Group"),E=document.getElementById(h.maps.element.id+"_LayerIndex_"+g+"_Polygon_Group");i.i(o.isNullOrUndefined)(N)?i.i(o.isNullOrUndefined)(E)?p.insertBefore(y,p.firstElementChild):E.insertAdjacentElement("afterend",y):N.insertAdjacentElement("afterend",y)}else p.appendChild(y);v.markerClusterSettings.allowClustering&&(h.maps.svgObject.appendChild(y),h.maps.element.appendChild(h.maps.svgObject),k=i.i(n.T)(v,y,h.maps,g,y,p,!0,!0))}b.childElementCount===I-c-u&&i.i(n._33)(h.maps.element.id+"_Secondary_Element")&&(i.i(n._33)(h.maps.element.id+"_Secondary_Element").appendChild(b),s>=1&&v.markerClusterSettings.allowClustering&&!k&&i.i(n.T)(v,b,h.maps,g,y,p,!1,!0))})})})},e.prototype.processTemplate=function(e,t,a,r){for(var l=0,s=0;s<this.templateCount;s++){var d=r.mapLayerPanel.calculateFactor(this.currentLayer),p=i.i(n._33)(r.element.id+"_LayerIndex_"+s+"_Markers_Template_Group"),h=i.i(n._33)(r.element.id+"_LayerIndex_"+s+"_Label_Template_Group"),u=i.i(n._33)(r.element.id+"_LayerIndex_"+s+"_Polygons_Group");if(!i.i(o.isNullOrUndefined)(p)&&p.childElementCount>0){p.style.visibility="visible";for(var c=0;c<p.childElementCount;c++)this.markerTranslate(p.childNodes[c],d,e,t,a,"Template")}if(!i.i(o.isNullOrUndefined)(h)&&h.childElementCount>0)for(var c=0;c<h.childElementCount;c++)this.dataLabelTranslate(h.childNodes[c],d,e,t,a,"Template",!1,l),l++;if(!i.i(o.isNullOrUndefined)(u))for(var c=0;c<u.childElementCount;c++){var m=r.layersCollection[s].polygonSettings.polygons[c].borderWidth;u.childNodes[c].childNodes[0].setAttribute("stroke-width",(m/a).toString())}}},e.prototype.dataLabelTranslate=function(e,t,a,r,l,s,d,p,h,u){void 0===d&&(d=!1);var c,m,g,y,f,b,v=this.maps.dataLabelModule.dataLabelCollections,S=this.maps.layers[this.index].dataLabelSettings.textStyle,_=parseFloat(e.id.split("_LayerIndex_")[1].split("_")[0]),x=parseFloat(e.id.split("_shapeIndex_")[1].split("_")[0]);e.id.indexOf("_LabelIndex_")>-1&&(b=parseFloat(e.id.split("_LabelIndex_")[1].split("_")[0]));var O=0===this.currentLayer.animationDuration&&"Enable"===o.animationMode?1e3:this.currentLayer.animationDuration,M=v[p],C=p;if(M.layerIndex===_&&M.shapeIndex===x&&M.labelIndex===b){var L=M.location.x,P=M.location.y;if("Template"===s){var w=0,T=0;if(this.maps.isTileMap)g=M.dataLabelText,y=i.i(n.w)(g,S),w=(L+a)*l-y.width/2,T=(P+r)*l-y.height;else{var I=i.i(n._33)(this.maps.element.id+"_Layer_Collections");L=Math.abs(this.maps.baseMapRectBounds.min.x-L)*l,P=Math.abs(this.maps.baseMapRectBounds.min.y-P)*l;var k=I.getBoundingClientRect(),N=e.parentElement.getBoundingClientRect();w=L+(k.left-N.left),T=P+(k.top-N.top)}e.style.left=w+"px",e.style.top=T+"px"}else{if(L=(L+a)*l,P=(P+r)*l,g=M.dataLabelText,d&&0!==O||e.setAttribute("transform","translate( "+L+" "+P+" )"),(i.i(o.isNullOrUndefined)(h)||!h)&&("None"!==this.maps.layers[this.index].dataLabelSettings.smartLabelMode||"None"!==this.maps.layers[this.index].dataLabelSettings.intersectionAction)){y=i.i(n.x)(g,S);var E=P-y.height/2,F=P+y.height/2,z=L+y.width/2,A=L-y.width/2,B={rightWidth:z,leftWidth:A,heightTop:E,heightBottom:F};"Hide"===this.maps.layers[this.index].dataLabelSettings.smartLabelMode&&(l>1?(c=this.maps.dataLabelShape[C]*l>=y.width?g:"",e.textContent=c):(c=this.maps.dataLabelShape[C]>=y.width?g:"",e.textContent=c));var U=[];if("Trim"===this.maps.layers[this.index].dataLabelSettings.smartLabelMode&&(l>1?(f=i.i(n._26)(this.maps.dataLabelShape[C]*l,g,S,y.width,!0,U),c=f,e.textContent=c):(f=i.i(n._26)(this.maps.dataLabelShape[C],g,S,y.width,!0,U),c=f,e.textContent=c)),"Hide"===this.maps.layers[this.index].dataLabelSettings.intersectionAction){for(var j=0;j<u.length;j++)if(!i.i(o.isNullOrUndefined)(u[j])){if(!(B.leftWidth>u[j].rightWidth||B.rightWidth<u[j].leftWidth||B.heightTop>u[j].heightBottom||B.heightBottom<u[j].heightTop)){c="",e.textContent=c;break}c=i.i(o.isNullOrUndefined)(c)?g:c,e.textContent=c}u.push(B)}if("Trim"===this.maps.layers[this.index].dataLabelSettings.intersectionAction){for(var Z=0;Z<u.length;Z++)if(!i.i(o.isNullOrUndefined)(u[Z]))if(B.rightWidth<u[Z].leftWidth||B.leftWidth>u[Z].rightWidth||B.heightBottom<u[Z].heightTop||B.heightTop>u[Z].heightBottom){if(m=i.i(o.isNullOrUndefined)(c)?g:c,l>1){var R=U.length>0?U[0]:y.width;m=i.i(n._26)(this.maps.dataLabelShape[C]*l,m,S,R,!0)}e.textContent=m}else{if(B.leftWidth>u[Z].leftWidth){var D=u[Z].rightWidth-B.leftWidth,V=D-(B.rightWidth-B.leftWidth);c=i.i(o.isNullOrUndefined)(c)?g:c;var R=U.length>0?U[0]:y.width;m=i.i(n._26)(V,c,S,R,!0),e.textContent=m;break}if(B.leftWidth<u[Z].leftWidth){var D=B.rightWidth-u[Z].leftWidth,V=Math.abs(D-(B.rightWidth-B.leftWidth));c=i.i(o.isNullOrUndefined)(c)?g:c;var R=U.length>0?U[0]:y.width;m=i.i(n._26)(V,c,S,R,!0),e.textContent=m;break}}u.push(B),i.i(o.isNullOrUndefined)(m)&&(m=i.i(n._26)(this.maps.dataLabelShape[C]*l,g,S,y.width,!0),e.textContent=m)}}(d||O>0)&&i.i(n._67)(e,0,O,new n.H(L,P))}}},e.prototype.markerTranslate=function(e,t,a,r,l,s,d){void 0===d&&(d=!1);var p=parseInt(e.id.split("_LayerIndex_")[1].split("_")[0],10),h=parseInt(e.id.split("_MarkerIndex_")[1].split("_")[0],10),u=parseInt(e.id.split("_dataIndex_")[1].split("_")[0],10),c=this.maps.layersCollection[p],m=c.markerSettings[h];if(!i.i(o.isNullOrUndefined)(m)&&!i.i(o.isNullOrUndefined)(m.dataSource)&&!i.i(o.isNullOrUndefined)(m.dataSource[u])){var g=i.i(o.isNullOrUndefined)(m.longitudeValuePath)?i.i(o.isNullOrUndefined)(m.dataSource[u].longitude)?i.i(o.isNullOrUndefined)(m.dataSource[u].Longitude)?0:parseFloat(m.dataSource[u].Longitude):parseFloat(m.dataSource[u].longitude):Number(i.i(n.Q)(m.dataSource[u],m.longitudeValuePath)),y=i.i(o.isNullOrUndefined)(m.latitudeValuePath)?i.i(o.isNullOrUndefined)(m.dataSource[u].latitude)?i.i(o.isNullOrUndefined)(m.dataSource[u].Latitude)?0:parseFloat(m.dataSource[u].Latitude):parseFloat(m.dataSource[u].latitude):Number(i.i(n.Q)(m.dataSource[u],m.latitudeValuePath)),f=0===this.currentLayer.animationDuration&&"Enable"===o.animationMode?1e3:this.currentLayer.animationDuration,b=this.maps.isTileMap?i.i(n.j)(new n.s(g,y),this.maps.tileZoomLevel,this.maps.tileTranslatePoint,!0):i.i(n.h)(y,g,t,c,this.maps);if(this.maps.isTileMap)if("Template"===s){var v=e.getBoundingClientRect();if(e.style.left=b.x-v.width/2+m.offset.x+"px",e.style.top=b.y-v.height/2+m.offset.y+"px","GoogleStaticMap"===this.maps.layers[this.maps.baseLayerIndex].layerType){var S=i.i(n._33)(this.maps.element.id+"_StaticGoogleMap").getBoundingClientRect();"none"!==e.style.display&&((S.x>v.x||S.x+640<v.x+v.width)&&(S.y>v.y||S.y+S.height<v.y+v.height)?e.style.display="none":(S.x>v.x||S.x+640<v.x+v.width)&&(e.style.display="none"))}}else b.x+=m.offset.x,b.y+=m.offset.y,e.setAttribute("transform","translate( "+b.x+" "+b.y+" )");else if("Template"===s)if(f>0){b.x=Math.abs(this.maps.baseMapRectBounds.min.x-b.x)*l,b.y=Math.abs(this.maps.baseMapRectBounds.min.y-b.y)*l;var _=i.i(n._33)(this.maps.element.id+"_Layer_Collections").getBoundingClientRect(),x=e.parentElement.getBoundingClientRect();e.style.left=b.x+(_.left-x.left)+m.offset.x+"px",e.style.top=b.y+(_.top-x.top)+m.offset.y+"px",e.style.transform="translate(-50%, -50%)"}else{var x=e.getBoundingClientRect();e.style.left=(b.x+a)*l+m.offset.x-this.maps.mapAreaRect.x-x.width/2+"px",e.style.top=(b.y+r)*l+m.offset.y-this.maps.mapAreaRect.y-x.height/2+"px"}else b.x=(b.x+a)*l+m.offset.x,b.y=(b.y+r)*l+m.offset.y,d&&0!==f?i.i(n._67)(e,0,f,b):e.setAttribute("transform","translate( "+b.x+" "+b.y+" )")}},e.prototype.markerLineAnimation=function(e){if(e.isTileMap)for(var t=0;t<e.layersCollection.length;t++){var a=i.i(n._33)(this.maps.element.id+"_LayerIndex_"+t+"_Markers_Template_Group"),r=i.i(n._33)(this.maps.element.id+"_LayerIndex_"+t+"_line_Group"),l=i.i(n._33)(this.maps.element.id+"_LayerIndex_"+t+"_Polygons_Group");i.i(o.isNullOrUndefined)(a)||(a.style.visibility="hidden"),i.i(o.isNullOrUndefined)(r)||(r.style.visibility="hidden"),i.i(o.isNullOrUndefined)(l)||(l.style.visibility="hidden")}},e.prototype.panning=function(e,t,a,l){var s,d=this.maps,p=this.mouseDownPoints,h=this.mouseMovePoints,u=d.scale;d.markerZoomedState=!1,d.zoomPersistence=d.enablePersistence,d.defaultState=!1,d.initialCheck=!1;var c,m,g=d.translatePoint,y=d.tileTranslatePoint;t=i.i(o.isNullOrUndefined)(t)?p.x-h.x:t,a=i.i(o.isNullOrUndefined)(a)?p.y-h.y:a;var f=l.type.indexOf("mouse")>-1||l.type.indexOf("key")>-1?l.layerX:l.touches[0].pageX,b=l.type.indexOf("mouse")>-1||l.type.indexOf("key")>-1?l.layerY:l.touches[0].pageY;if(this.maps.mergeCluster(),d.isTileMap){if(this.maps.tileZoomLevel>1){c=d.tileTranslatePoint.x-t,m=d.tileTranslatePoint.y-a,d.tileTranslatePoint.x=c,d.tileTranslatePoint.y=m,(d.tileTranslatePoint.y>-10&&a<0||d.tileTranslatePoint.y<-256*(Math.pow(2,this.maps.tileZoomLevel)-2)&&a>0)&&(d.tileTranslatePoint.x=c+t,d.tileTranslatePoint.y=m+a),d.translatePoint.x=d.tileTranslatePoint.x/d.scale,d.translatePoint.y=d.tileTranslatePoint.y/d.scale;var v=this.maps.getTileGeoLocation(f,b),S=this.maps.getMinMaxLatitudeLongitude();s={cancel:!1,name:r.L,maps:d,tileTranslatePoint:{previous:y,current:d.tileTranslatePoint},translatePoint:{previous:g,current:d.translatePoint},scale:d.scale,tileZoomLevel:d.tileZoomLevel,latitude:v.latitude,longitude:v.longitude,minLatitude:S.minLatitude,maxLatitude:S.maxLatitude,minLongitude:S.minLongitude,maxLongitude:S.maxLongitude},d.trigger(r.L,s),d.mapLayerPanel.generateTiles(d.tileZoomLevel,d.tileTranslatePoint,"Pan"),this.applyTransform(d,!1,!0),d.translatePoint.x=(d.tileTranslatePoint.x-t)/d.scale,d.translatePoint.y=(d.tileTranslatePoint.y-a)/d.scale}}else{var _=document.getElementById(d.element.id+"_Legend_Group"),x=i.i(o.isNullOrUndefined)(_)?0:_.getClientRects()[0].height;c=g.x-t/u,m=g.y-a/u;var O=i.i(n._33)(d.element.id+"_Layer_Collections").getBoundingClientRect(),M=i.i(n._33)(d.element.id+"_svg").getBoundingClientRect(),C=t<0?O.left<=M.left+d.mapAreaRect.x:O.left+O.width+d.mapAreaRect.x>=M.width,L=a<0?O.top<=M.top+d.mapAreaRect.y:O.top+O.height+x+d.margin.top>=M.top+M.height,P=this.maps.getGeoLocation(this.maps.layersCollection.length-1,f,b),S=this.maps.getMinMaxLatitudeLongitude();s={cancel:!1,name:r.L,maps:d,tileTranslatePoint:{},translatePoint:{previous:g,current:new n.s(c,m)},scale:d.scale,tileZoomLevel:d.tileZoomLevel,latitude:P.latitude,longitude:P.longitude,minLatitude:S.minLatitude,maxLatitude:S.maxLatitude,minLongitude:S.minLongitude,maxLongitude:S.maxLongitude},d.trigger(r.L,s),s.cancel||(C&&L?(d.translatePoint=new n.s(c,m),this.applyTransform(d,!1,!0)):C?(d.translatePoint=new n.s(c,d.translatePoint.y),this.applyTransform(d,!1,!0)):L&&(d.translatePoint=new n.s(d.translatePoint.x,m),this.applyTransform(d,!1,!0))),this.maps.zoomNotApplied=!1}d.zoomTranslatePoint=d.translatePoint,this.mouseDownPoints=this.mouseMovePoints,this.isSingleClick=!1},e.prototype.toolBarZooming=function(e,t){var i=this,a=this.maps;a.initialCheck=a.isMarkerZoomCompleted=!1,a.defaultState="Reset"===t&&1===e&&!(a.zoomSettings.resetToInitial&&a.applyZoomReset)||"ZoomOut"===t&&1===e;var r=a.tileZoomLevel,l=a.previousScale=a.scale;a.markerZoomedState=!1,a.zoomPersistence=a.enablePersistence,a.mapScaleValue=e;var s=a.zoomSettings.maxZoom,d=a.zoomSettings.minZoom,p=a.mapAreaRect,h=a.previousPoint=a.translatePoint,u=a.tileTranslatePoint;if(a.previousProjection="Reset"===t?void 0:a.projectionType,e="ZoomOut"===t&&1===Math.round(e)?1:e,e="Reset"===t?d:0===Math.round(e)?1:e,e=d>e&&"ZoomIn"===t?d+1:e,!a.isTileMap&&("ZoomIn"===t?e>=d&&Math.round(e)<=s:e>=d||a.isReset)){var c=a.baseMapRectBounds.min,m=a.baseMapRectBounds.max,g=Math.abs(m.x-c.x),y=Math.abs(c.y-m.y),f=void 0,b=void 0;if(e<1.2&&"Eckert5"!==a.projectionType)0!==y&&0!==g&&y!==g||(g=p.width/2,y=p.height),e=parseFloat(Math.min(p.width/g,p.height/y).toFixed(2)),e=e>1.05?1:e,a.translatePoint=this.calculateInitalZoomTranslatePoint(e,g,y,p,c,a);else{f=h.x-(p.width/l-p.width/e)/2,b=h.y-(p.height/l-p.height/e)/2;var v=Math.abs(a.baseMapRectBounds.max.y-a.baseMapRectBounds.min.y)*e;f=v<a.mapAreaRect.height?p.x+(-c.x+(p.width/2-g/2)):f,b=v<a.mapAreaRect.height?p.y+(-c.y+(p.height/2-y/2)):b,a.translatePoint=new n.s(f,b)}a.zoomTranslatePoint=a.translatePoint,a.scale=e,this.triggerZoomEvent(u,r,t)?(a.translatePoint=a.zoomTranslatePoint=a.previousPoint,a.scale=a.previousScale):this.applyTransform(a,!0)}else if(a.isTileMap&&(e>=d&&e<=s||a.isReset)){var S=r<d&&!a.isReset?d:e;if(a.scale=Math.pow(2,S-1),a.tileZoomLevel=S,a.previousScale!==a.scale||a.isReset){a.zoomSettings.zoomFactor=e;var _={x:a.availableSize.width/2,y:a.availableSize.height/2};if(this.getTileTranslatePosition(r,S,_,t),(a.zoomSettings.resetToInitial&&a.applyZoomReset&&"Reset"===t||"ZoomOut"===t&&a.zoomSettings.resetToInitial&&a.applyZoomReset&&S<=a.initialZoomLevel)&&(a.initialCheck=!0,a.zoomPersistence=!1,a.tileTranslatePoint.x=a.initialTileTranslate.x,a.tileTranslatePoint.y=a.initialTileTranslate.y,S=a.tileZoomLevel=a.mapScaleValue=a.initialZoomLevel),this.triggerZoomEvent(u,r,t))a.translatePoint=a.tileTranslatePoint=new n.s(0,0),a.scale=a.previousScale,a.tileZoomLevel=r,a.zoomSettings.zoomFactor=a.previousScale;else{a.translatePoint.y=(a.tileTranslatePoint.y-.01*a.mapScaleValue)/a.scale,a.translatePoint.x=(a.tileTranslatePoint.x-.01*a.mapScaleValue)/a.scale,document.getElementById(this.maps.element.id+"_LayerIndex_1")&&(document.getElementById(this.maps.element.id+"_LayerIndex_1").style.display="none"),document.querySelector(".GroupElement")&&(document.querySelector(".GroupElement").style.display="none"),this.markerLineAnimation(a),a.mapLayerPanel.generateTiles(S,a.tileTranslatePoint,t);var x=0===this.maps.layersCollection[0].animationDuration&&"Enable"===o.animationMode?1e3:this.maps.layersCollection[0].animationDuration;setTimeout(function(){i.applyTransform(i.maps,!0),document.getElementById(i.maps.element.id+"_LayerIndex_1")&&(document.getElementById(i.maps.element.id+"_LayerIndex_1").style.display="block"),i.maps.isAddLayer=!1},x)}}this.maps.zoomNotApplied=!1}this.triggerZoomComplete(a,r,t)},e.prototype.createZoomingToolbars=function(){var e=this.maps;this.toolBarGroup=e.renderer.createGroup({id:e.element.id+"_Zooming_KitCollection",opacity:"fluentdark"===e.theme.toLowerCase()?.6:.3});var t=15,a=15,r=e.zoomSettings.toolbarSettings,l=e.zoomSettings.toolbarSettings.buttonSettings;this.maps.toolbarProperties={toolBarOrientation:"Horizontal"===r.orientation?e.zoomSettings.toolBarOrientation:r.orientation,highlightColor:null==l.highlightColor?e.zoomSettings.highlightColor:l.highlightColor,selectionColor:null==l.selectionColor?e.zoomSettings.selectionColor:l.selectionColor,horizontalAlignment:"Far"===r.horizontalAlignment?e.zoomSettings.horizontalAlignment:r.horizontalAlignment,verticalAlignment:"Near"===r.verticalAlignment?e.zoomSettings.verticalAlignment:r.verticalAlignment,color:null==l.color?e.zoomSettings.color:l.color,shapeOpacity:1!==l.opacity?l.opacity:1,borderOpacity:1!==l.borderOpacity?l.borderOpacity:1};var s=l.radius/4,d=l.radius/4,p=l.radius/2,h=l.padding,u=this.maps.toolbarProperties.toolBarOrientation,c=e.zoomSettings.toolbarSettings.buttonSettings.toolbarItems.map(function(e){return e}),m=3===c.length?e.zoomSettings.toolbars:c;t=l.radius/4+l.borderWidth/2+h,a=l.radius/4+l.borderWidth/2+h;var g='<filter id="chart_shadow" height="130%"><feGaussianBlur in="SourceAlpha" stdDeviation="5"/>';g+='<feOffset dx="-3" dy="4" result="offsetblur"/><feComponentTransfer><feFuncA type="linear" slope="1"/>',g+='</feComponentTransfer><feMerge><feMergeNode/><feMergeNode in="SourceGraphic"/></feMerge></filter>';var y=c.length,f="Horizontal"===u?y*l.radius+y*h+h+y*l.borderWidth:l.radius+l.borderWidth+2*h,b="Horizontal"===u?l.radius+l.borderWidth+2*h:y*l.radius+y*h+h+y*l.borderWidth,v=e.renderer.createDefs();v.innerHTML=g,this.toolBarGroup.appendChild(v);var S=e.renderer.drawRectangle(new n.B(e.element.id+"_Zooming_Rect",r.backgroundColor,{color:r.borderColor,width:r.borderWidth,opacity:r.borderOpacity},r.borderOpacity,new n.I(r.borderWidth/2,r.borderWidth/2,f-r.borderWidth,b-r.borderWidth),0,0));this.toolBarGroup.appendChild(S);for(var _=(l.radius-l.borderWidth/2)/30,x=0;x<m.length;x++){0!==x&&(t="Horizontal"===e.toolbarProperties.toolBarOrientation?t+(l.radius+h)+l.borderWidth:t,a="Horizontal"===e.toolbarProperties.toolBarOrientation?a:a+(l.radius+h)+l.borderWidth);var O=m[x],M=i.i(o.isNullOrUndefined)(this.maps.toolbarProperties.color)?this.maps.themeStyle.zoomFillColor:this.maps.toolbarProperties.color,C=l.borderColor||this.maps.themeStyle.zoomFillColor;this.currentToolbarEle=e.renderer.createGroup({id:e.element.id+"_Zooming_ToolBar_"+O+"_Group",transform:"translate( "+t+" "+a+" ) "}),this.currentToolbarEle.setAttribute("class","e-maps-toolbar"),this.currentToolbarEle.appendChild(e.renderer.drawCircle(new n.C(e.element.id+"_Zooming_ToolBar_"+O+"_Rect",l.fill,{color:C,width:l.borderWidth,opacity:l.borderOpacity},l.opacity,s,d,p,"")));var L="",P=l.fill;switch(this.selectionColor=this.maps.toolbarProperties.selectionColor||this.maps.themeStyle.zoomSelectionColor,O.toLowerCase()){case"zoom":var w=void 0,T=void 0;L="M0.001,14.629L1.372,16l4.571-4.571v-0.685l0.228-0.274c1.051,0.868,2.423,1.417,3.885,1.417c3.291,0,",L+="5.943-2.651,5.943-5.943S13.395,0,10.103,0S4.16,2.651,4.16,5.943c0,1.508,0.503,2.834,1.417,3.885l-0.274,0.228H4.571",L+="L0.001,14.629L0.001,14.629z M5.943,5.943c0-2.285,1.828-4.114,4.114-4.114s4.114,1.828,4.114,",this.currentToolbarEle.setAttribute("class",this.maps.zoomSettings.enableSelectionZooming?"e-maps-toolbar":""),this.maps.zoomSettings.enablePanning&&!this.maps.zoomSettings.enableSelectionZooming?(w=P,T=M):this.maps.zoomSettings.enablePanning&&this.maps.zoomSettings.enableSelectionZooming?(w=P,T=M):this.maps.zoomSettings.enablePanning||this.maps.zoomSettings.enableSelectionZooming?!this.maps.zoomSettings.enablePanning&&this.maps.zoomSettings.enableSelectionZooming?(w=this.maps.themeStyle.zoomFillColor,T=M):(w=this.selectionColor,T=this.selectionColor):(w=P,T=M);var I=e.renderer.drawPath(new n.z(e.element.id+"_Zooming_ToolBar_"+O,w,1,T,1,1,null,L+"4.114s-1.828,4.114-4.114,4.114S5.943,8.229,5.943,5.943z"));I.setAttribute("transform","scale( "+_+","+_+" )"),this.currentToolbarEle.appendChild(I),this.zoomElements=this.currentToolbarEle,this.wireEvents(this.currentToolbarEle,this.performToolBarAction);break;case"zoomin":L="M 8, 0 L 8, 16 M 0, 8 L 16, 8";var k=e.renderer.drawPath(new n.z(e.element.id+"_Zooming_ToolBar_"+O+"_Path",P,3,M,1,1,null,L));k.setAttribute("transform","scale( "+_+","+_+" )"),this.currentToolbarEle.appendChild(k),this.wireEvents(this.currentToolbarEle,this.performToolBarAction);break;case"zoomout":L="M 0, 8 L 16, 8";var N=e.renderer.drawPath(new n.z(e.element.id+"_Zooming_ToolBar_"+O,P,3,M,1,1,null,L));N.setAttribute("transform","scale( "+_+","+_+" )"),this.currentToolbarEle.appendChild(N),this.wireEvents(this.currentToolbarEle,this.performToolBarAction);break;case"pan":var E=void 0;L="M5,3h2.3L7.275,5.875h1.4L8.65,3H11L8,0L5,3z M3,11V8.7l2.875,0.025v-1.4L3,7.35V5L0,8L3,",L+="11z M11,13H8.7l0.025-2.875h-1.4L7.35,13H5l3,3L11,13z M13,5v2.3l-2.875-0.025v1.4L13,8.65V11l3-3L13,5z",this.currentToolbarEle.setAttribute("class",this.maps.zoomSettings.enablePanning?"e-maps-toolbar":""),this.maps.zoomSettings.enablePanning&&this.maps.zoomModule.isDragZoom?E=this.selectionColor||this.maps.themeStyle.zoomFillColor:this.maps.zoomSettings.enablePanning?E=P||this.maps.themeStyle.zoomFillColor:(E=this.selectionColor||this.maps.themeStyle.zoomFillColor,this.currentToolbarEle.setAttribute("class",""));var F=e.renderer.drawPath(new n.z(e.element.id+"_Zooming_ToolBar_"+O,E,1,M,1,1,null,L));F.setAttribute("transform","scale( "+_+","+_+" )"),this.currentToolbarEle.appendChild(F),this.panColor=E,this.panElements=this.currentToolbarEle,this.wireEvents(this.currentToolbarEle,this.performToolBarAction);break;case"reset":L="M12.364,8h-2.182l2.909,3.25L16,8h-2.182c0-3.575-2.618-6.5-5.818-6.5c-1.128,0-2.218,0.366-3.091,",L+="1.016l1.055,1.178C6.581,3.328,7.272,3.125,8,3.125C10.4,3.125,12.363,5.319,12.364,8L12.364,8z M11.091,",L+="13.484l-1.055-1.178C9.419,12.672,8.728,12.875,8,12.875c-2.4,0-4.364-2.194-4.364-4.875h2.182L2.909,4.75L0,8h2.182c0,";var z=e.renderer.drawPath(new n.z(e.element.id+"_Zooming_ToolBar_"+O,P,null,M,1,1,null,L+"3.575,2.618,6.5,5.818,6.5C9.128,14.5,10.219,14.134,11.091,13.484L11.091,13.484z"));z.setAttribute("transform","scale( "+_+","+_+" )"),this.currentToolbarEle.appendChild(z),this.wireEvents(this.currentToolbarEle,this.performToolBarAction)}this.toolBarGroup.appendChild(this.currentToolbarEle)}},e.prototype.performToolBarAction=function(e){var t=e.target;e.stopImmediatePropagation();var i="touch"===e.pointerType||"2"===e.pointerType||e.type.indexOf("touch")>-1,n=t.id.split("_Zooming_ToolBar_")[1].split("_")[0],o=!0;switch(n.toLowerCase()){case"zoomin":o=(this.maps.isTileMap?this.maps.tileZoomLevel:this.maps.scale)+1<=this.maps.zoomSettings.maxZoom;break;case"zoomout":var a=this.maps.isTileMap?this.maps.tileZoomLevel:this.maps.scale;o="Miller"===this.maps.projectionType||"Winkel3"===this.maps.projectionType||"AitOff"===this.maps.projectionType?Math.round(a)-1>=this.maps.zoomSettings.minZoom:a-1>=this.maps.zoomSettings.minZoom;break;case"reset":o=Math.round(this.maps.isTileMap?this.maps.tileZoomLevel:this.maps.scale)!==this.maps.zoomSettings.minZoom}i&&o?(this.handled=!0,this.performZoomingByToolBar(n)):"mousedown"!==e.type&&"pointerdown"!==e.type||this.handled||!o?this.handled=!1:(this.handled=!1,this.performZoomingByToolBar(n))},e.prototype.performZoomingByToolBar=function(e){var t=this.maps;t.isReset=!1;var i=0,n=this.fillColor||this.maps.themeStyle.zoomFillColor;switch(e.toLowerCase()){case"zoom":this.panColor=n,this.zoomColor=this.maps.zoomSettings.enableSelectionZooming?this.selectionColor:n,this.applySelection(this.zoomElements,this.zoomColor),this.applySelection(this.panElements,this.panColor),this.isPan=!1,this.isZoomSelection=this.maps.zoomSettings.enableSelectionZooming;break;case"pan":this.panColor=this.maps.zoomSettings.enablePanning?this.selectionColor:n,this.zoomColor=n,this.maps.zoomSettings.enablePanning?(this.applySelection(this.zoomElements,this.fillColor||n),this.applySelection(this.panElements,this.panColor)):(this.applySelection(this.zoomElements,this.selectionColor),this.applySelection(this.panElements,this.panColor)),this.isPan=this.maps.zoomSettings.enablePanning,this.isZoomSelection=!1;break;case"zoomin":t.staticMapZoom=t.tileZoomLevel,t.staticMapZoom>0&&t.staticMapZoom<t.zoomSettings.maxZoom&&(t.staticMapZoom+=1),t.isTileMap&&t.tileZoomLevel>=t.zoomSettings.minZoom&&t.tileZoomLevel<t.zoomSettings.maxZoom?this.toolBarZooming(t.tileZoomLevel+1,"ZoomIn"):t.isTileMap||this.toolBarZooming(t.scale+1,"ZoomIn"),i=this.maps.isTileMap?Math.round(this.maps.tileZoomLevel):Math.round(this.maps.mapScaleValue),this.isZoomSelection||(i===t.zoomSettings.maxZoom||i>1||1===i&&this.maps.isTileMap?(this.applySelection(this.zoomElements,n),this.applySelection(this.panElements,t.zoomSettings.enablePanning?this.selectionColor:n)):1!==i||this.maps.isTileMap||(this.applySelection(this.zoomElements,n),this.applySelection(this.panElements,n)));break;case"zoomout":t.staticMapZoom=t.tileZoomLevel,t.markerCenterLatitude=null,t.markerCenterLongitude=null,this.toolBarZooming((t.isTileMap?t.tileZoomLevel:t.scale)-1,"ZoomOut"),i=this.maps.isTileMap?Math.round(this.maps.tileZoomLevel):Math.round(this.maps.mapScaleValue),!this.isPan&&this.isZoomSelection?(this.panColor=n,this.zoomColor=this.selectionColor,this.applySelection(this.zoomElements,this.selectionColor),this.applySelection(this.panElements,this.panColor)):i<=1&&!t.isTileMap?this.applySelection(this.panElements,n):this.applySelection(this.panElements,t.zoomSettings.enablePanning?this.selectionColor:n);break;case"reset":t.staticMapZoom=t.zoomSettings.enable?t.zoomSettings.zoomFactor:0,t.markerCenterLatitude=null,t.markerCenterLongitude=null,this.isZoomSelection=!1,this.isPan=t.zoomSettings.enablePanning,this.toolBarZooming(t.zoomSettings.minZoom,"Reset"),this.isPan&&!this.isZoomSelection||!this.isPan&&this.isZoomSelection?this.maps.zoomSettings.enablePanning?(this.applySelection(this.zoomElements,n),this.applySelection(this.panElements,this.selectionColor)):(this.applySelection(this.zoomElements,this.selectionColor),this.applySelection(this.panElements,n)):this.isPan||this.isZoomSelection||(this.applySelection(this.zoomElements,n),this.applySelection(this.panElements,n))}this.panningStyle(e.toLowerCase())},e.prototype.panningStyle=function(e){var t=i.i(n._33)(this.maps.element.id+"_svg");"pan"===e||this.isPanModeEnabled&&"reset"!==e?t.setAttribute("class","e-maps-panning"):t.setAttribute("class","")},e.prototype.applySelection=function(e,t){if(e)for(var i,n=0;n<e.childElementCount;n++)i=e.childNodes[n],"circle"!==i.tagName&&(i.setAttribute("fill",e.id.indexOf("Pan")>-1?t:"transparent"),i.setAttribute("stroke",t))},e.prototype.showTooltip=function(e){var t=e.target.id.split("_Zooming_ToolBar_")[1].split("_")[0],o=this.maps.zoomSettings.toolbarSettings.tooltipSettings,a={visible:o.visible,fill:o.fill,borderOpacity:o.borderOpacity,borderWidth:o.borderWidth,borderColor:o.borderColor,fontColor:o.fontColor,fontFamily:o.fontFamily,fontStyle:o.fontStyle,fontWeight:o.fontWeight,fontSize:o.fontSize||"10px",fontOpacity:o.fontOpacity};a.fontFamily=this.maps.themeStyle.fontFamily,this.isTouch||(i.i(n._51)("EJ2_Map_Toolbar_Tip",this.maps.getLocalizedLabel(t),e.pageY+10,e.pageX+10,a),this.maps.isDevice&&(clearTimeout(this.clearTimeout),this.clearTimeout=setTimeout(this.removeTooltip.bind(this),2e3)))},e.prototype.removeTooltip=function(){i.i(n._33)("EJ2_Map_Toolbar_Tip")&&i.i(o.remove)(i.i(n._33)("EJ2_Map_Toolbar_Tip"))},e.prototype.alignToolBar=function(){var e=this.maps,t=i.i(o.createElement)("div",{id:e.element.id+"_ToolBar"});t.style.cssText="position:absolute;z-index:2";var a=e.renderer.createSvg({id:e.element.id+"_Zooming_ToolBar",width:10,height:10});a.appendChild(this.toolBarGroup),t.appendChild(a),i.i(n._33)(e.element.id+"_Secondary_Element")&&i.i(n._33)(e.element.id+"_Secondary_Element").appendChild(t);var r=this.toolBarGroup.getBoundingClientRect();a.setAttribute("height",(r.height+e.zoomSettings.toolbarSettings.borderWidth).toString()),a.setAttribute("width",(r.width+e.zoomSettings.toolbarSettings.borderWidth).toString());var l=i.i(o.isNullOrUndefined)(e.totalRect)?e.mapAreaRect:e.totalRect,s=0,d=0;switch(e.toolbarProperties.verticalAlignment){case"Near":d=l.y;break;case"Center":d=l.height/2-r.height/2;break;case"Far":d=l.height-r.height-10}switch(e.toolbarProperties.horizontalAlignment){case"Near":s=l.x;break;case"Center":s=l.width/2-r.width/2;break;case"Far":s=i.i(o.isNullOrUndefined)(e.legendModule)||"Left"!==e.legendSettings.position?l.width-r.width-10:l.width+l.x-r.width-10}t.style.left=s+"px",t.style.top=d+"px";var p=this.maps.toolbarProperties.highlightColor||this.maps.themeStyle.zoomSelectionColor,h=" .e-maps-toolbar:hover > circle { stroke:"+p+"; } .e-maps-toolbar:hover > path { fill: "+p+" ; stroke: "+p+"; }.e-maps-toolbar:hover { cursor: pointer; } .e-maps-cursor-disable:hover { cursor: not-allowed; } .e-maps-panning:hover { cursor: pointer; } .e-maps-popup-close { display: block; opacity: 0; }",u=document.createElement("style");u.appendChild(document.createTextNode(h)),t.appendChild(u)},e.prototype.removeToolbarOpacity=function(e,t){if(this.maps.zoomModule&&this.maps.zoomSettings.enable)if(i.i(n._33)(this.maps.element.id+"_Zooming_KitCollection")&&t.indexOf(this.maps.element.id+"_Zooming_")>-1){this.maps.isDevice?(i.i(n._33)(this.maps.element.id+"_Zooming_KitCollection").setAttribute("opacity","1"),this.removeToolbarClass("","","","","")):this.removeToolbarClass(this.maps.zoomSettings.enableSelectionZooming?"e-maps-toolbar":"","e-maps-toolbar","e-maps-toolbar",this.maps.zoomSettings.enablePanning?"e-maps-toolbar":"","e-maps-toolbar");var o=this.maps.toolbarProperties.shapeOpacity,a=this.maps.toolbarProperties.borderOpacity;this.maps.isTileMap&&(e<=1.1||this.maps.zoomSettings.minZoom===e)?(this.maps.isDevice||this.removeToolbarClass(this.maps.zoomSettings.enableSelectionZooming?"e-maps-toolbar":"","e-maps-toolbar","",this.maps.zoomSettings.enablePanning?"e-maps-toolbar":"",""),this.maps.zoomSettings.enablePanning&&this.removePanColor(this.maps.toolbarProperties.selectionColor||this.maps.themeStyle.zoomSelectionColor),this.isZoomSelection&&this.maps.zoomSettings.enableSelectionZooming&&!this.maps.isReset&&(this.removeZoomColor(this.maps.toolbarProperties.selectionColor||this.maps.themeStyle.zoomSelectionColor),this.removePanColor(this.maps.toolbarProperties.color||this.maps.themeStyle.zoomFillColor)),this.removeZoomOpacity(this.maps.zoomSettings.enableSelectionZooming?o:.3,this.maps.zoomSettings.enableSelectionZooming?a:.3,o,a,.3,.3,this.maps.zoomSettings.enablePanning?o:.3,this.maps.zoomSettings.enablePanning?a:.3,.3,.3)):e<=1.1||this.maps.zoomSettings.minZoom===e?(this.maps.isDevice||this.removeToolbarClass(this.maps.zoomSettings.enableSelectionZooming?"e-maps-toolbar":"","e-maps-toolbar","","",""),!this.isZoomSelection&&this.maps.zoomSettings.enablePanning&&this.removePanColor(this.maps.toolbarProperties.color||this.maps.themeStyle.zoomFillColor),this.isZoomSelection&&this.maps.zoomSettings.enableSelectionZooming&&!this.maps.isReset&&(this.removeZoomColor(this.maps.toolbarProperties.selectionColor||this.maps.themeStyle.zoomSelectionColor),this.removePanColor(this.maps.toolbarProperties.color||this.maps.themeStyle.zoomFillColor)),this.removeZoomOpacity(this.maps.zoomSettings.enableSelectionZooming?o:.3,this.maps.zoomSettings.enableSelectionZooming?a:.3,o,a,.3,.3,.3,.3,.3,.3)):e<this.maps.zoomSettings.maxZoom?(this.maps.isDevice||this.removeToolbarClass(this.maps.zoomSettings.enableSelectionZooming?"e-maps-toolbar":"","e-maps-toolbar","e-maps-toolbar",this.maps.zoomSettings.enablePanning?"e-maps-toolbar":"","e-maps-toolbar"),this.maps.zoomModule.isZoomFinal?this.maps.zoomModule.isZoomFinal=!1:this.removeZoomOpacity(this.maps.zoomSettings.enableSelectionZooming?o:.3,this.maps.zoomSettings.enableSelectionZooming?a:.3,o,a,o,a,this.maps.zoomSettings.enablePanning?o:.3,this.maps.zoomSettings.enablePanning?a:.3,o,a),this.isZoomSelection&&this.maps.zoomSettings.enableSelectionZooming?(this.removeZoomColor(this.maps.toolbarProperties.selectionColor||this.maps.themeStyle.zoomSelectionColor),this.maps.zoomModule.isPan&&this.maps.zoomSettings.enablePanning&&this.removePanColor(this.maps.toolbarProperties.color||this.maps.themeStyle.zoomFillColor)):!this.isZoomSelection&&this.maps.zoomSettings.enablePanning&&(this.removePanColor(this.maps.toolbarProperties.selectionColor||this.maps.themeStyle.zoomSelectionColor),this.maps.zoomSettings.enableSelectionZooming&&this.removeZoomColor(this.maps.toolbarProperties.color||this.maps.themeStyle.zoomFillColor))):(this.maps.isDevice||this.removeToolbarClass("","","e-maps-toolbar",this.maps.zoomSettings.enablePanning?"e-maps-toolbar":"","e-maps-toolbar"),this.removeZoomOpacity(.3,.3,.3,.3,o,a,this.maps.zoomSettings.enablePanning?o:.3,this.maps.zoomSettings.enablePanning?a:.3,o,a),this.maps.zoomSettings.enableSelectionZooming&&this.removeZoomColor(this.maps.toolbarProperties.color||this.maps.themeStyle.zoomFillColor),!this.isZoomSelection&&this.maps.zoomSettings.enablePanning&&this.removePanColor(this.maps.toolbarProperties.selectionColor||this.maps.themeStyle.zoomSelectionColor))}else this.maps.isDevice||(this.removePanColor(this.maps.toolbarProperties.color||this.maps.themeStyle.zoomFillColor),this.removeZoomColor(this.maps.toolbarProperties.color||this.maps.themeStyle.zoomFillColor),this.removeZoomOpacity(1,1,1,1,1,1,1,1,1,1))},e.prototype.setOpacity=function(e,t,o,a){i.i(n._33)(this.maps.element.id+e)&&(i.i(n._33)(this.maps.element.id+e).setAttribute("stroke-opacity",o.toString()),i.i(n._33)(this.maps.element.id+e).setAttribute("fill-opacity",o.toString()),i.i(n._33)(this.maps.element.id+t).setAttribute("stroke-opacity",a.toString()),i.i(n._33)(this.maps.element.id+t).setAttribute("fill-opacity",a.toString()))},e.prototype.removeZoomOpacity=function(e,t,i,n,o,a,r,l,s,d){this.setOpacity("_Zooming_ToolBar_Zoom_Rect","_Zooming_ToolBar_Zoom",t,e),this.setOpacity("_Zooming_ToolBar_ZoomIn_Rect","_Zooming_ToolBar_ZoomIn_Path",n,i),this.setOpacity("_Zooming_ToolBar_ZoomOut_Rect","_Zooming_ToolBar_ZoomOut",a,o),this.setOpacity("_Zooming_ToolBar_Pan_Rect","_Zooming_ToolBar_Pan",l,r),this.setOpacity("_Zooming_ToolBar_Reset_Rect","_Zooming_ToolBar_Reset",d,s)},e.prototype.removeToolbarClass=function(e,t,o,a,r){i.i(n._33)(this.maps.element.id+"_Zooming_KitCollection")&&(document.getElementById(this.maps.element.id+"_Zooming_ToolBar_ZoomIn_Group")&&i.i(n._33)(this.maps.element.id+"_Zooming_ToolBar_ZoomIn_Group").setAttribute("class",t),document.getElementById(this.maps.element.id+"_Zooming_ToolBar_ZoomOut_Group")&&i.i(n._33)(this.maps.element.id+"_Zooming_ToolBar_ZoomOut_Group").setAttribute("class",o),document.getElementById(this.maps.element.id+"_Zooming_ToolBar_Reset_Group")&&i.i(n._33)(this.maps.element.id+"_Zooming_ToolBar_Reset_Group").setAttribute("class",r),document.getElementById(this.maps.element.id+"_Zooming_ToolBar_Zoom_Group")&&this.maps.zoomSettings.enableSelectionZooming&&i.i(n._33)(this.maps.element.id+"_Zooming_ToolBar_Zoom_Group").setAttribute("class",e),document.getElementById(this.maps.element.id+"_Zooming_ToolBar_Pan_Group")&&this.maps.zoomSettings.enablePanning&&i.i(n._33)(this.maps.element.id+"_Zooming_ToolBar_Pan_Group").setAttribute("class",a))},e.prototype.removePanColor=function(e){i.i(n._33)(this.maps.element.id+"_Zooming_ToolBar_Pan_Rect")&&this.maps.zoomSettings.enablePanning&&(i.i(n._33)(this.maps.element.id+"_Zooming_ToolBar_Pan").setAttribute("fill",e),i.i(n._33)(this.maps.element.id+"_Zooming_ToolBar_Pan").setAttribute("stroke",e))},e.prototype.removeZoomColor=function(e){i.i(n._33)(this.maps.element.id+"_Zooming_ToolBar_Zoom_Rect")&&this.maps.zoomSettings.enableSelectionZooming&&(i.i(n._33)(this.maps.element.id+"_Zooming_ToolBar_Zoom").setAttribute("fill","transparent"),i.i(n._33)(this.maps.element.id+"_Zooming_ToolBar_Zoom").setAttribute("stroke",e))},e.prototype.wireEvents=function(e,t){o.EventHandler.add(e,o.Browser.touchStartEvent,t,this),o.EventHandler.add(e,"mouseover",this.showTooltip,this),o.EventHandler.add(e,"mouseout",this.removeTooltip,this)},e.prototype.mapMouseWheel=function(e){if(this.maps.zoomSettings.enable&&this.maps.zoomSettings.mouseWheelZoom){var t=this.maps;t.markerZoomedState=!1,t.zoomPersistence=t.enablePersistence;var n=this.getMousePosition(e.pageX,e.pageY),a=t.tileZoomLevel,r=t.scale,l=t.zoomSettings.maxZoom,s=t.isTileMap?a:r;if(n.x>t.mapAreaRect.x&&n.x<t.mapAreaRect.x+t.mapAreaRect.width&&n.y>t.mapAreaRect.y&&n.y<t.mapAreaRect.y+t.mapAreaRect.height){e.preventDefault();var d="mozilla"!==this.browserName||this.isPointer?e.wheelDelta/120>0?"ZoomIn":"ZoomOut":-e.detail/3>0?"ZoomIn":"ZoomOut";"ZoomIn"===d?(t.mapScaleValue=s+1,t.isTileMap?(t.staticMapZoom=t.tileZoomLevel,t.staticMapZoom>0&&t.staticMapZoom<l&&(t.staticMapZoom+=1,this.performZooming(n,s+1,d))):this.performZooming(n,s+1,d)):(t.mapScaleValue=s-1,t.isReset=t.mapScaleValue<1,t.staticMapZoom=t.tileZoomLevel,1===t.mapScaleValue&&(t.markerCenterLatitude=null,t.markerCenterLongitude=null),t.staticMapZoom>1&&t.staticMapZoom<l&&(t.staticMapZoom-=1),this.performZooming(n,s-1,d))}this.removeToolbarOpacity(t.mapScaleValue,this.maps.isDevice?this.maps.element.id+"_Zooming_":i.i(o.isNullOrUndefined)(e.target)?this.maps.element.id:e.target.id)}},e.prototype.doubleClick=function(e){var t=e.pageX,n=e.pageY,a=e.target.closest("#"+this.maps.element.id+"_mapsTooltipparent_template");if(this.maps.zoomSettings.enable&&this.maps.zoomSettings.doubleClickZoom&&!(e.target.id.indexOf("_Zooming_")>-1)&&i.i(o.isNullOrUndefined)(a)){var r=this.getMousePosition(t,n),l=this.maps,s=l.tileZoomLevel,d=l.scale;l.mapScaleValue=l.mapScaleValue+1;var p=l.isTileMap?s:d;r.x>l.mapAreaRect.x&&r.x<l.mapAreaRect.x+l.mapAreaRect.width&&r.y>l.mapAreaRect.y&&r.y<l.mapAreaRect.y+l.mapAreaRect.height&&this.performZooming(r,p+1,"ZoomIn")}},e.prototype.mouseDownHandler=function(e){var t,i,n=null;e.target;"touchstart"===e.type?(this.isTouch=!0,n=e.touches,e.target,t=n[0].pageX,i=n[0].pageY):(t=e.pageX,i=e.pageY,e.target),this.maps.zoomSettings.enablePanning?this.isPan=this.isPanModeEnabled=!this.isZoomSelection:this.isPan=this.isPanModeEnabled=this.panColor!==this.selectionColor?this.maps.zoomSettings.enablePanning:this.zoomColor===this.selectionColor,this.mouseDownLatLong={x:t,y:i};var o=this.maps.isTileMap?Math.round(this.maps.tileZoomLevel):Math.round(this.maps.mapScaleValue);this.rectZoomingStart=this.isZoomSelection&&o<this.maps.zoomSettings.maxZoom&&this.maps.zoomSettings.enable,this.mouseDownPoints=this.getMousePosition(t,i),this.isTouch&&null!==n&&(this.firstMove=!0,this.pinchFactor=this.maps.scale,this.fingers=n.length),this.isSingleClick=!0},e.prototype.mouseMoveHandler=function(e){var t,a,r,l=this.maps,s=null,d=this.maps.zoomSettings;if("touchmove"===e.type?(this.isTouch=!0,r=e.target,s=e.touches,t=s[0].pageX,a=s[0].pageY):(t=e.pageX,a=e.pageY,r=e.target),i.i(n._33)(l.element.id+"_Zooming_KitCollection")&&(r.id.indexOf("_Zooming_")>-1?i.i(n._33)(l.element.id+"_Zooming_KitCollection").setAttribute("opacity","1"):l.isDevice||i.i(n._33)(l.element.id+"_Zooming_KitCollection").setAttribute("opacity","fluentdark"===l.theme.toLowerCase()?"0.6":"0.3")),this.isTouch&&this.maps.zoomSettings.pinchZooming&&null!==s&&(this.firstMove&&2===s.length?(this.rectZoomingStart=!1,this.updateInteraction(),this.touchStartList=i.i(n._58)(e)):2===s.length&&2===this.touchStartList.length&&(this.touchMoveList=i.i(n._58)(e),e.preventDefault(),this.rectZoomingStart=!1,this.performPinchZooming(e)),this.firstMove=!1),this.mouseMovePoints=this.getMousePosition(t,a),d.enable&&this.isPanModeEnabled&&-1===this.maps.markerDragId.indexOf("_MarkerIndex_")&&(o.Browser.isDevice&&s.length>=1||!o.Browser.isDevice)&&(e.preventDefault(),this.maps.element.style.cursor="pointer",this.mouseMoveLatLong={x:t,y:a},this.mouseDownLatLong.x!==this.mouseMoveLatLong.x&&this.mouseDownLatLong.y!==this.mouseMoveLatLong.y&&(this.maps.zoomSettings.enablePanning&&this.panning("None",null,null,e),this.mouseDownLatLong.x=t,this.mouseDownLatLong.y=a)),this.isTouch?null!==s&&1===s.length&&this.rectZoomingStart:this.rectZoomingStart){e.preventDefault();var p=this.maps.isTileMap?Math.round(this.maps.tileZoomLevel):Math.round(this.maps.mapScaleValue);this.maps.zoomSettings.enableSelectionZooming&&p<this.maps.zoomSettings.maxZoom?this.drawZoomRectangle():(this.rectZoomingStart=!1,this.isPan=!0)}},e.prototype.mouseUpHandler=function(e){if(this.rectZoomingStart=!1,this.isSingleClick=!!this.isSingleClick,this.isTouch=!1,this.touchStartList=[],this.touchMoveList=[],this.lastScale=1,this.maps.element.style.cursor="auto",this.isPanModeEnabled&&this.maps.zoomSettings.enablePanning&&!i.i(o.isNullOrUndefined)(this.maps.previousPoint)&&this.maps.translatePoint.x!==this.maps.previousPoint.x&&this.maps.translatePoint.y!==this.maps.previousPoint.y){var t=void 0,a=void 0,r=0,l=0,s=e.target;if(-1!==e.type.indexOf("touch")){var d=e;r=t=d.changedTouches[0].pageX,a=d.changedTouches[0].pageY,l=a-(this.maps.isTileMap?10:0),d.target,this.maps.mouseClickEvent={x:t,y:a}}else t=e.pageX,a=e.pageY,r=e.layerX,l=e.layerY-(this.maps.isTileMap?10:0),e.target;var p=void 0,h=this.maps.getMinMaxLatitudeLongitude();if(this.maps.isTileMap){var u=this.maps.getTileGeoLocation(r,l);p={cancel:!1,name:"panComplete",maps:this.maps,tileTranslatePoint:{previous:this.maps.tileTranslatePoint,current:this.maps.tileTranslatePoint},translatePoint:{previous:this.maps.previousPoint,current:this.maps.translatePoint},scale:this.maps.scale,tileZoomLevel:this.maps.tileZoomLevel,latitude:u.latitude,longitude:u.longitude,minLatitude:h.minLatitude,maxLatitude:h.maxLatitude,minLongitude:h.minLongitude,maxLongitude:h.maxLongitude}}else{this.maps.mouseClickEvent.x=this.maps.mouseDownEvent.x,this.maps.mouseClickEvent.y=this.maps.mouseDownEvent.y;var c=this.maps.getClickLocation(s.id,t,a,s,t,a);p={cancel:!1,name:"panComplete",maps:this.maps,tileTranslatePoint:{},translatePoint:{previous:this.maps.previousPoint,current:this.maps.translatePoint},scale:this.maps.scale,tileZoomLevel:this.maps.tileZoomLevel,latitude:i.i(o.isNullOrUndefined)(c)?0:c.latitude,longitude:i.i(o.isNullOrUndefined)(c)?0:c.longitude,minLatitude:h.minLatitude,maxLatitude:h.maxLatitude,minLongitude:h.minLongitude,maxLongitude:h.maxLongitude}}this.maps.trigger("panComplete",p)}this.isPanModeEnabled=!1;var m=i.i(n._33)(this.maps.element.id+"_Selection_Rect_Zooming");m&&this.maps.zoomSettings.enable&&this.maps.zoomSettings.enableSelectionZooming&&(i.i(o.remove)(m),this.performRectZooming()),this.mouseMoveLatLong={x:0,y:0},this.mouseDownLatLong={x:0,y:0},this.pinchDistance=null},e.prototype.mouseCancelHandler=function(e){this.isPanModeEnabled=!1,this.isTouch=!1,this.rectZoomingStart=!1;var t=i.i(n._33)(this.maps.element.id+"_Selection_Rect_Zooming");t&&this.maps.zoomSettings.enable&&(i.i(o.remove)(t),this.performRectZooming())},e.prototype.click=function(e){var t=this.maps,n=e.target.closest("#"+this.maps.element.id+"_mapsTooltipparent_template");if(t.markerModule&&t.markerModule.sameMarkerData.length>0||e.target.id.indexOf("MarkerIndex")>-1&&-1===e.target.id.indexOf("cluster")||!i.i(o.isNullOrUndefined)(n))return null;if(this.isSingleClick&&t.zoomSettings.zoomOnClick&&!(e.target.id.indexOf("_Zooming_")>-1)&&!t.zoomSettings.doubleClickZoom&&this.zoomColor!==this.selectionColor){var a=e.pageX,r=e.pageY,l=this.getMousePosition(a,r),s=t.tileZoomLevel,d=t.scale;t.mapScaleValue=t.mapScaleValue+1;var p=t.isTileMap?s:d;l.x>t.mapAreaRect.x&&l.x<t.mapAreaRect.x+t.mapAreaRect.width&&l.y>t.mapAreaRect.y&&l.y<t.mapAreaRect.y+t.mapAreaRect.height&&this.performZooming(l,p+1,"ZoomIn")}},e.prototype.getMousePosition=function(e,t){var i=this.maps,o=i.element.getBoundingClientRect(),a=i.element.ownerDocument.defaultView.pageXOffset,r=i.element.ownerDocument.defaultView.pageYOffset,l=i.element.ownerDocument.documentElement.clientTop,s=i.element.ownerDocument.documentElement.clientLeft,d=o.left+a-s,p=o.top+r-l;return new n.s(Math.abs(e-d),Math.abs(t-p))},e.prototype.addEventListener=function(){this.maps.isDestroyed||(o.EventHandler.add(this.maps.element,this.wheelEvent,this.mapMouseWheel,this),o.EventHandler.add(this.maps.element,"click",this.click,this),o.EventHandler.add(this.maps.element,"dblclick",this.doubleClick,this),this.maps.on(o.Browser.touchMoveEvent,this.mouseMoveHandler,this),this.maps.on(o.Browser.touchStartEvent,this.mouseDownHandler,this),this.maps.on(o.Browser.touchEndEvent,this.mouseUpHandler,this),o.EventHandler.add(this.maps.element,this.cancelEvent,this.mouseCancelHandler,this))},e.prototype.removeEventListener=function(){this.maps.isDestroyed||(o.EventHandler.remove(this.maps.element,this.wheelEvent,this.mapMouseWheel),o.EventHandler.remove(this.maps.element,"click",this.click),o.EventHandler.remove(this.maps.element,"dblclick",this.doubleClick),this.maps.off(o.Browser.touchMoveEvent,this.mouseMoveHandler),this.maps.off(o.Browser.touchStartEvent,this.mouseDownHandler),this.maps.off(o.Browser.touchEndEvent,this.mouseUpHandler),o.EventHandler.remove(this.maps.element,this.cancelEvent,this.mouseCancelHandler))},e.prototype.getModuleName=function(){return"Zoom"},e.prototype.destroy=function(){this.toolBarGroup=null,this.currentToolbarEle=null,this.zoomingRect=null,this.zoomElements=null,this.panElements=null,this.baseTranslatePoint=null,this.touchStartList=null,this.touchMoveList=null,this.previousTouchMoveList=null,this.mouseDownPoints=null,this.mouseMovePoints=null,this.startTouches=[],this.mouseDownLatLong=null,this.mouseMoveLatLong=null,this.removeEventListener(),this.layerCollectionEle=null,this.currentLayer=null,this.pinchDistance=null,this.maps=null},e}()},function(e,t){e.exports=i},function(e,t){e.exports=n}])});