@syncfusion/ej2-maps 25.2.5 → 26.1.35

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.
@@ -1,10 +1,10 @@
1
1
  /*!
2
2
  * filename: ej2-maps.min.js
3
- * version : 25.2.5
3
+ * version : 26.1.35
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(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}])});
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)}(self,((e,t,i,o)=>(()=>{"use strict";var a={766:t=>{t.exports=e},74:e=>{e.exports=i},461:e=>{e.exports=o},727:e=>{e.exports=t}},n={};function l(e){var t=n[e];if(void 0!==t)return t.exports;var i=n[e]={exports:{}};return a[e](i,i.exports,l),i.exports}l.d=(e,t)=>{for(var i in t)l.o(t,i)&&!l.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},l.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),l.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};return(()=>{l.r(r),l.d(r,{Annotation:()=>wt,Annotations:()=>Qi,Arrow:()=>Tt,BingMap:()=>Xi,Border:()=>Et,Bubble:()=>io,BubbleSettings:()=>Jt,CenterPosition:()=>zt,CircleOption:()=>E,ColorMapping:()=>Yi,ColorMappingSettings:()=>Dt,ColorValue:()=>k,CommonTitleSettings:()=>Qt,ConnectorLineSettings:()=>jt,Coordinate:()=>_,DataLabel:()=>no,DataLabelSettings:()=>oi,Font:()=>It,GeoLocation:()=>P,Highlight:()=>so,HighlightSettings:()=>Wt,ImageExport:()=>uo,InitialMarkerSelectionSettings:()=>Vt,InitialShapeSelectionSettings:()=>Ht,Internalize:()=>je,LayerPanel:()=>Ji,LayerSettings:()=>ri,Legend:()=>ro,LegendSettings:()=>ii,Line:()=>U,LineOption:()=>A,MapAjax:()=>xt,MapLocation:()=>j,Maps:()=>to,MapsAreaSettings:()=>di,MapsTooltip:()=>ho,Margin:()=>Ut,Marker:()=>oo,MarkerBase:()=>ni,MarkerClusterData:()=>Rt,MarkerClusterSettings:()=>Zt,MarkerSettings:()=>li,MinMax:()=>L,NavigationLine:()=>lo,NavigationLineSettings:()=>Yt,PathOption:()=>F,PatternOptions:()=>R,PdfExport:()=>yo,Point:()=>M,Polygon:()=>ao,PolygonOption:()=>z,PolygonSetting:()=>qt,PolygonSettings:()=>Xt,PolygonTooltipSettings:()=>At,PolylineOption:()=>B,Print:()=>co,Rect:()=>Z,RectOption:()=>N,Selection:()=>po,SelectionSettings:()=>Gt,ShapeSettings:()=>ai,Size:()=>a,SubTitleSettings:()=>Kt,TextOption:()=>I,Tile:()=>si,TitleSettings:()=>$t,ToggleLegendSettings:()=>ti,TooltipSettings:()=>Bt,Zoom:()=>mo,ZoomSettings:()=>ei,ZoomToolbarButtonSettings:()=>Ft,ZoomToolbarSettings:()=>Nt,ZoomToolbarTooltipSettings:()=>kt,acos:()=>x,aitoff:()=>b,animate:()=>gt,animationComplete:()=>Ai,annotationRendering:()=>ji,appendShape:()=>re,beforePrint:()=>Hi,bubbleClick:()=>zi,bubbleMouseMove:()=>Bi,bubbleRendering:()=>Ei,calculateBound:()=>O,calculateCenterFromPixel:()=>Ne,calculatePolygonPath:()=>u,calculateScale:()=>dt,calculateShapes:()=>ue,calculateSize:()=>s,calculateZoomLevel:()=>Mt,changeBorderWidth:()=>lt,changeNavaigationLineWidth:()=>rt,checkPropertyPath:()=>_e,checkShapeDataFields:()=>Me,click:()=>mi,clusterSeparate:()=>te,clusterTemplate:()=>Q,compareZoomFactor:()=>Ct,convertElement:()=>V,convertElementFromLabel:()=>W,convertGeoToPoint:()=>c,convertStringToValue:()=>G,convertTileLatLongToPoint:()=>g,createStyle:()=>qe,createSvg:()=>d,createTooltip:()=>tt,customizeStyle:()=>Xe,dataLabelRendering:()=>Ni,degreesToRadians:()=>h,doubleClick:()=>gi,drawBalloon:()=>xe,drawCircle:()=>se,drawCross:()=>fe,drawDiamond:()=>ge,drawHorizontalLine:()=>be,drawLine:()=>ce,drawPath:()=>pe,drawPattern:()=>Oe,drawPolygon:()=>he,drawPolyline:()=>me,drawRectangle:()=>de,drawStar:()=>Se,drawSymbol:()=>ot,drawSymbols:()=>q,drawTriangle:()=>ye,drawVerticalLine:()=>ve,elementAnimate:()=>Qe,filter:()=>Le,findMidPointOfPolygon:()=>we,findPosition:()=>Fe,fixInitialScaleForTile:()=>Be,formatValue:()=>H,getClientElement:()=>Ue,getDistance:()=>pt,getElement:()=>Re,getElementByID:()=>Ae,getElementOffset:()=>nt,getElementsByClassName:()=>He,getFieldData:()=>Ce,getHexColor:()=>it,getMousePosition:()=>p,getRatioOfBubble:()=>Pe,getShapeData:()=>De,getTargetElement:()=>We,getTemplateFunction:()=>Ze,getTouchCenter:()=>mt,getTouches:()=>ht,getTranslate:()=>Ee,getValueFromObject:()=>X,getZoomTranslate:()=>ze,isCustomPath:()=>Te,itemHighlight:()=>Vi,itemSelection:()=>Zi,layerRendering:()=>Ci,legendRendering:()=>Ui,load:()=>pi,loaded:()=>hi,maintainSelection:()=>ae,maintainStyleClass:()=>le,maintainToggleSelection:()=>ne,marker:()=>ie,markerBoundsComparer:()=>$,markerClick:()=>Pi,markerClusterClick:()=>Ii,markerClusterListHandler:()=>K,markerClusterMouseMove:()=>ki,markerClusterRendering:()=>Li,markerColorChoose:()=>Y,markerDragEnd:()=>Ti,markerDragStart:()=>wi,markerMouseMove:()=>Fi,markerRendering:()=>_i,markerShapeChoose:()=>J,markerTemplate:()=>oe,measureText:()=>w,measureTextElement:()=>T,mergeSeparateCluster:()=>ee,mousedown:()=>Oi,mousemove:()=>Si,mouseup:()=>xi,onclick:()=>ci,pan:()=>qi,panComplete:()=>Ri,processResult:()=>_t,querySelector:()=>Ge,radiansToDegrees:()=>m,removeClass:()=>Je,removeElement:()=>ke,renderLegendShape:()=>at,renderTextElement:()=>D,resize:()=>yi,rightClick:()=>ui,roundTo:()=>v,shapeHighlight:()=>vi,shapeRendering:()=>Mi,shapeSelected:()=>bi,showTooltip:()=>$e,sinci:()=>S,smoothTranslate:()=>Ot,stringToNumber:()=>n,sum:()=>ct,targetTouches:()=>st,textTrim:()=>Ie,timeout:()=>Ke,tooltipRender:()=>fi,triggerDownload:()=>C,triggerItemSelectionEvent:()=>Ye,triggerShapeEvent:()=>Ve,wordWrap:()=>et,xToCoordinate:()=>y,yToCoordinate:()=>f,zoomAnimate:()=>ut,zoomComplete:()=>Di,zoomIn:()=>Gi,zoomOut:()=>Wi});var e,t=l(766),i=l(727),o=(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])},e(t,i)},function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}),a=function(e,t){this.width=e,this.height=t};function n(e,t){return null!=e?-1!==e.indexOf("%")?t/100*parseInt(e,10):parseInt(e,10):null}function s(e){e.element.style.height=(0,t.isNullOrUndefined)(e.height)?"auto":e.height,e.element.style.width=(0,t.isNullOrUndefined)(e.width)?"auto":e.width,e.element.style.setProperty("display","block");var i=e.element.clientWidth,o=e.element.clientHeight,l=n(e.element.style.width,i),r=n(e.element.style.height,o);new a(0,0);return"0px"===e.width||"0%"===e.width||"0%"===e.height||"0px"===e.height?new a(0,0):new a(n(e.width,i)||i||l||600,n(e.height,o)||o||r||(e.isDevice?Math.min(window.innerWidth,window.innerHeight):450))}function d(e){e.renderer=new i.SvgRenderer(e.element.id),e.availableSize=s(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 p(e,t,i){var o=i.getBoundingClientRect(),a=i.ownerDocument.defaultView.pageXOffset,n=i.ownerDocument.defaultView.pageYOffset,l=i.ownerDocument.documentElement.clientTop,r=i.ownerDocument.documentElement.clientLeft,s=o.left+a-r,d=o.top+n-l;return new j(e-s,t-d)}function h(e){return e*(Math.PI/180)}function m(e){return e*(180/Math.PI)}function c(e,i,o,n,l){var r,s,d,p,c,u,g=new a(l.mapAreaRect.width,l.mapAreaRect.height),S=l.baseMapBounds.longitude,x=l.baseMapBounds.latitude,C=h(e),_=h(i),L=l.projectionType,P=l.isTileMap?256*Math.pow(2,1):(0,t.isNullOrUndefined)(o)?Math.min(g.width,g.height):Math.min(g.width,g.height)*o;if("Normal"===n.geometryType)r=(0,t.isNullOrUndefined)(o)?i:Math.abs((i-S.min)*o),s=(0,t.isNullOrUndefined)(o)?e:Math.abs((x.max-e)*o);else if("Geographic"===n.geometryType){switch(L){case"Mercator":var w=new M(P/2,P/2);r=w.x+i*(P/360);var T=O(Math.sin(h(e)),-.9999,.9999);s=w.y+.5*Math.log((1+T)/(1-T))*(-P/(2*Math.PI));break;case"Winkel3":c=((d=b(_,C)).x+_/(Math.PI/2))/2,p=(d.y+C)/2;break;case"Miller":c=_,p=1.25*Math.log(Math.tan(Math.PI/4+.4*C));break;case"Eckert3":c=2/(u=Math.sqrt(Math.PI*(4+Math.PI)))*_*(1+Math.sqrt(1-4*C*C/(Math.PI*Math.PI))),p=4/u*C;break;case"AitOff":c=(d=b(_,C)).x,p=d.y;break;case"Eckert5":c=_*(1+Math.cos(C))/Math.sqrt(2+Math.PI),p=2*C/Math.sqrt(2+Math.PI);break;case"Equirectangular":c=_,p=C;break;case"Eckert6":u=(1+Math.PI/2)*Math.sin(C);for(var I=1/0,F=0;F<10&&Math.abs(I)>1e-6;F++)C-=I=(C+Math.sin(C)-u)/(1+Math.cos(C));u=Math.sqrt(2+Math.PI),c=_*(1+Math.cos(C))/u,p=2*C/u}r="Mercator"===L?r:v(y(l,m(c)),3),s="Mercator"===L?s:-v(f(l,m(p)),3)}return new M(r,s)}function u(e,i,o,a){var n="";return!(0,t.isNullOrUndefined)(a)&&a.length>1&&(Array.prototype.forEach.call(a,(function(t,a){var l=t.latitude,r=t.longitude,s=e.isTileMap?g(new j(r,l),i,e.tileTranslatePoint,!0):c(l,r,i,o,e);n+=0===a?"M "+s.x+" "+s.y:" L "+s.x+" "+s.y})),n+=" z "),n}function g(e,t,i,o){var a=256*Math.pow(2,t),n=(e.x+180)/360,l=Math.sin(e.y*Math.PI/180),r=.5-Math.log((1+l)/(1-l))/(4*Math.PI),s=e.x,d=e.y;return o&&(s=n*a+.5+i.x,d=r*a+.5+i.y),{x:s,y:d}}function y(e,i){var o=e.baseMapBounds.longitude,a=(0,t.isNullOrUndefined)(e.baseSize)?e.mapAreaRect.width:e.mapAreaRect.width+Math.abs(e.baseSize.width-e.mapAreaRect.width)/2;return Math.round(a*(i-o.min)/(o.max-o.min)*100)/100}function f(e,t){var i=e.baseMapBounds.latitude;return Math.round(e.mapAreaRect.height*(t-i.min)/(i.max-i.min)*100)/100}function b(e,t){var i=Math.cos(t),o=S(x(i*Math.cos(e/=2)));return new M(2*i*Math.sin(e)*o,Math.sin(t)*o)}function v(e,t){var i=Math.pow(10,t);return Math.round(e*i)/i}function S(e){return e/Math.sin(e)}function x(e){return Math.acos(e)}function O(e,i,o){return(0,t.isNullOrUndefined)(i)||(e=Math.max(e,i)),(0,t.isNullOrUndefined)(o)||(e=Math.min(e,o)),e}function C(e,i,o,a){(0,t.createElement)("a",{attrs:{download:e+"."+i.toLocaleLowerCase(),href:o}}).dispatchEvent(new MouseEvent(a?"click":"move",{view:window,bubbles:!1,cancelable:!0}))}var M=function(e,t){this.x=e,this.y=t},_=function(e,t){this.latitude=e,this.longitude=t},L=function(e,t){this.min=e,this.max=t},P=function(e,t){this.latitude=new L(e.min,e.max),this.longitude=new L(t.min,t.max)};function w(e,t){var i=document.getElementById("mapsmeasuretext");return null===i&&((i=document.createElement("text")).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 a(i.clientWidth,i.clientHeight)}function T(e,t){var i=document.createElement("canvas").getContext("2d");i.font=t.fontStyle+" "+t.fontWeight+" "+("number"==typeof t.size?t.size+"px":t.size)+" "+t.fontFamily;var o=i.measureText(e).width,n=parseFloat(t.size)||16;return new a(o,n)}var I=function(e,t,i,o,a,n,l){void 0===n&&(n=""),this.transform="",this.baseLine="auto",this.id=e,this.text=a,this.transform=n,this.anchor=o,this.x=t,this.y=i,this.baseLine=l},F=function(e,t,i,o,a,n,l,r){this.id=e,this["fill-opacity"]=a,this["stroke-opacity"]=n,this.fill=t,this.stroke=o,this["stroke-width"]=i,this["stroke-dasharray"]=l,this.d=r},k=function(e,t,i){this.r=e,this.g=t,this.b=i},N=function(e){function t(t,i,o,a,n,l,r,s,d){var p=e.call(this,t,i,o.width,o.color,a,o.opacity)||this;return p.y=n.y,p.x=n.x,p.height=n.height,p.width=n.width,p.rx=l||0,p.ry=r||0,p.transform=s||"",p["stroke-dasharray"]=d,p["fill-opacity"]=a,p["stroke-opacity"]=o.opacity,p}return o(t,e),t}(F),E=function(e){function t(t,i,o,a,n,l,r,s){var d=e.call(this,t,i,o.width,o.color,a,o.opacity,s)||this;return d.cy=l,d.cx=n,d.r=r,d["stroke-dasharray"]=s,d["fill-opacity"]=a,d["stroke-opacity"]=o.opacity,d}return o(t,e),t}(F),z=function(e){function t(t,i,o,a,n,l,r,s){void 0===l&&(l=1),void 0===r&&(r=1),void 0===s&&(s="");var d=e.call(this,t,o,a,n,l,r,s)||this;return d.points=i,d}return o(t,e),t}(F),B=function(e){function t(t,i,o,a,n,l,r,s){return void 0===l&&(l=1),void 0===r&&(r=1),void 0===s&&(s=""),e.call(this,t,i,o,a,n,l,r,s)||this}return o(t,e),t}(z),A=function(e){function t(t,i,o,a,n,l,r,s){void 0===l&&(l=1),void 0===r&&(r=1),void 0===s&&(s="");var d=e.call(this,t,o,a,n,l,r,s)||this;return d.x1=i.x1,d.y1=i.y1,d.x2=i.x2,d.y2=i.y2,d}return o(t,e),t}(F),U=function(e,t,i,o){this.x1=e,this.y1=t,this.x2=i,this.y2=o},j=function(e,t){this.x=e,this.y=t},Z=function(e,t,i,o){this.x=e,this.y=t,this.width=i,this.height=o},R=function(e,t,i,o,a,n,l,r,s){void 0===n&&(n="userSpaceOnUse"),void 0===l&&(l="userSpaceOnUse"),void 0===r&&(r=""),void 0===s&&(s=""),this.id=e,this.x=t,this.y=i,this.width=o,this.height=a,this.patternUnits=n,this.patternContentUnits=l,this.patternTransform=r,this.href=s};function D(e,t,o,a,n){void 0===n&&(n=!1);var l,r,s={id:e.id,x:e.x,y:e.y,fill:o,"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},d="string"==typeof e.text||"number"==typeof e.text?e.text:n?e.text[e.text.length-1]:e.text[0],p=new i.SvgRenderer(""),h=p.createText(s,d);if(h.style["user-select"]="none",h.style["font-family"]=t.fontFamily,h.style["font-size"]=t.size,h.style["font-weight"]=t.fontWeight,h.style["font-color"]=t.color,h.style["-moz-user-select"]="none",h.style["-webkit-touch-callout"]="none",h.style["-webkit-user-select"]="none",h.style["-khtml-user-select"]="none",h.style["-ms-user-select"]="none",h.style["-o-user-select"]="none","string"!=typeof e.text&&e.text.length>1)for(var m=1,c=e.text.length;m<c;m++)r=w(e.text[m],t).height,l=p.createTSpan({x:e.x,id:e.id,y:e.y+(n?-m*r:m*r)},n?e.text[e.text.length-(m+1)]:e.text[m]),h.appendChild(l);return a.appendChild(h),h}function V(e,i,o,a,n,l){var r=(0,t.createElement)("div",{id:i,className:n.element.id+"_marker_template_element"});r.style.cssText="position: absolute;pointer-events: auto;";for(var s=e.length;s>0;)r.appendChild(e[0]),s--;if(!n.isReact||"function"!==l){for(var d=r.innerHTML,p=Object.keys(o),h=RegExp,m=0;m<p.length;m++)"object"==typeof o[p[m]]?d=G(d,"",o,n):"latitude"!==p[m].toLowerCase()&&"longitude"!==p[m].toLowerCase()&&(d=d.replace(new h("{{:"+p[m]+"}}","g"),o[p[m].toString()]));r.innerHTML=d}return r}function H(e,t){return t.format&&!isNaN(Number(e))?t.intl.getNumberFormat({format:t.format,useGrouping:t.useGroupingSeparator})(Number(e)):e}function G(e,t,i,o){for(var a=""===e?t:e,n=""===e?a.split("${"):a.split("{{:"),l=RegExp,r=0;r<n.length;r++)if(n[r].indexOf("}}")>-1&&n[r].indexOf(".")>-1||n[r].indexOf("}")>-1&&n[r].search(".")>-1)for(var s=""===e?n[r].split("}"):n[r].split("}}"),d=0;d<s.length;d++)if(s[d].indexOf(".")>-1){var p=X(i,s[d]).toString();a=""===e?a.split("${"+s[d]+"}").join(H(p,o)):a.replace(new l("{{:"+s[d]+"}}","g"),p)}return a}function W(e,i,o){for(var a=((0,t.isNullOrUndefined)(e.childElementCount)?e[0]:e).outerHTML,n=Object.keys(o),l=RegExp,r=0;r<n.length;r++)a=a.replace(new l("{{:"+n[r]+"}}","g"),o[n[r].toString()]);var s=(0,t.createElement)("div",{id:i,innerHTML:a});return s.style.position="absolute",s}function q(e,i,o,a,n,l,r){var s,d,p,h,m=n.size,c=n.borderColor,u=parseFloat(n.borderWidth),g=parseFloat(n.borderOpacity),y=n.fill,f=n.dashArray,b={color:c,width:u,opacity:g},v=n.opacity,S=new F(a,y,u,c,v,g,f,"");if(m.width="string"==typeof m.width?parseInt(m.width,10):m.width,m.height="string"==typeof m.height?parseInt(m.height,10):m.height,"Circle"===e){var x=(m.width+m.height)/4,O=new E(a,y,b,v,o.x,o.y,x,f);s=r.renderer.drawCircle(O)}else"Rectangle"===e?(d=o.x-m.width/2,p=o.y-m.height/2,h=new N(a,y,b,v,new Z(d,p,m.width,m.height),null,null,"",f),s=r.renderer.drawRectangle(h)):"Image"===e?(d=o.x-m.width/2,p=o.y-(a.indexOf("cluster")>-1?m.height/2:m.height),(0,t.merge)(S,{href:i,height:m.height,width:m.width,x:d,y:p}),s=r.renderer.drawImage(S)):s=ue(r,e,S,m,o,l);return s}function X(e,i){if(!(0,t.isNullOrUndefined)(e)&&!(0,t.isNullOrUndefined)(i)){var o=i.replace(/\[/g,".").replace(/\]/g,"").split(".");if(1===o.length)e=e[o[0]];else for(var a=0;a<o.length&&!(0,t.isNullOrUndefined)(e);a++)e=e[o[a]]}return e}function Y(e,i){var o=(0,t.isNullOrUndefined)(e.colorValuePath)?i[e.colorValuePath]:e.colorValuePath.indexOf(".")>-1?X(i,e.colorValuePath).toString():i[e.colorValuePath];return e.fill=(0,t.isNullOrUndefined)(e.colorValuePath)||(0,t.isNullOrUndefined)(o)?e.fill:e.colorValuePath.indexOf(".")>-1?X(i,e.colorValuePath).toString():i[e.colorValuePath],e}function J(e,i){if((0,t.isNullOrUndefined)(e.shapeValuePath)||(0,t.isNullOrUndefined)(i[e.shapeValuePath])){var o=(0,t.isNullOrUndefined)(e.shapeValuePath)?e.shape:e.shapeValuePath.indexOf(".")>-1?X(i,e.shapeValuePath).toString():e.shape;e.shape=""!==o.toString()?o:e.shape;var a=(0,t.isNullOrUndefined)(e.imageUrlValuePath)?e.imageUrl:e.imageUrlValuePath.indexOf(".")>-1?X(i,e.imageUrlValuePath).toString():(0,t.isNullOrUndefined)(i[e.imageUrlValuePath])?e.imageUrl:i[e.imageUrlValuePath];e.imageUrl=a}else{var n=e.shapeValuePath.indexOf(".")>-1?X(i,e.shapeValuePath).toString():i[e.shapeValuePath];e.shape=""!==n.toString()?n:e.shape,"Image"===i[e.shapeValuePath]&&(e.imageUrl=(0,t.isNullOrUndefined)(e.imageUrlValuePath)?e.imageUrl:e.imageUrlValuePath.indexOf(".")>-1?X(i,e.imageUrlValuePath).toString():(0,t.isNullOrUndefined)(i[e.imageUrlValuePath])?e.imageUrl:i[e.imageUrlValuePath])}return e}function Q(e,i,o,n,l,r,s,d){var p,h,m,u,y,f,b,v,S=[],x=[],O=0,C=0,_=e.markerClusterSettings.labelStyle,L=0,P=[],w=e.markerClusterSettings,T=o.renderer.createGroup({id:o.element.id+"_LayerIndex_"+n+"_markerCluster"}),F={cancel:!1,name:Li,fill:w.fill,height:w.height,width:w.width,imageUrl:w.imageUrl,shape:w.shape,data:undefined,maps:o,cluster:w,border:w.border},k=o.element.getBoundingClientRect();o.isTileMap?new Object:Ee(o,e,!1),o.isTileMap||(v=o.mapLayerPanel.calculateFactor(e));var N=!1,E=o.isTileMap?o.tileZoomLevel:o.mapScaleValue;return o.trigger("markerClusterRendering",F,(function(z){for(Array.prototype.forEach.call(i.childNodes,(function(r,s){if(P=[],"hidden"!==r.style.visibility){if(p=(b=r).getBoundingClientRect(),P.push(s),!(0,t.isNullOrUndefined)(p)){var d=o.markerModule.zoomedMarkerCluster.length>0&&o.markerModule.zoomedMarkerCluster[n]&&o.markerModule.zoomedMarkerCluster[n][s]&&o.markerModule.zoomedMarkerCluster[n][s].length>0||o.markerModule.initialMarkerCluster.length>0&&o.markerModule.initialMarkerCluster[n]&&o.markerModule.initialMarkerCluster[n][s]&&o.markerModule.initialMarkerCluster[n][s].length>0?o.previousScale<E?o.markerModule.zoomedMarkerCluster[n][s]:o.markerModule.initialMarkerCluster[n][s]:null;if((0,t.isNullOrUndefined)(d)||0===d.length?Array.prototype.forEach.call(i.childNodes,(function(e,t){t>=s+1&&"hidden"!==e.style.visibility&&$(e,p,S,P,t)})):Array.prototype.forEach.call(d,(function(e){if(s!==e){var t=document.getElementById(o.element.id+"_LayerIndex_"+n+"_MarkerIndex_0_dataIndex_"+e);"hidden"!==t.style.visibility&&$(t,p,S,P,e)}})),K(o,E,n,s,P),O=p.left+p.width/2,C=p.top+p.height,S.length>0){P=P.filter((function(e,t,i){return i.indexOf(e)===t})),O-=k.left,C-=o.availableSize.height<=k.height?k.top:k.bottom-k.top;var h,y=parseInt(r.id.split("_dataIndex_")[1].split("_")[0],10),x=parseInt(r.id.split("_MarkerIndex_")[1].split("_")[0],10),z=e.markerSettings[x],B=z.dataSource[y],A=(0,t.isNullOrUndefined)(z.longitudeValuePath)?(0,t.isNullOrUndefined)(B.longitude)?(0,t.isNullOrUndefined)(B.Latitude)?0:parseFloat(B.Latitude):parseFloat(B.longitude):Number(X(B,z.longitudeValuePath)),U=(0,t.isNullOrUndefined)(z.latitudeValuePath)?(0,t.isNullOrUndefined)(B.latitude)?(0,t.isNullOrUndefined)(B.Latitude)?0:parseFloat(B.Latitude):parseFloat(B.latitude):Number(X(B,z.latitudeValuePath));o.isTileMap?o.isTileMap&&!o.zoomSettings.enable&&(h=g(new M(A,U),o.tileZoomLevel,o.tileTranslatePoint,!0)):h=c(U,A,v,e,o),r.style.visibility="hidden",F.cancel?(f={size:new a(w.width,w.height),fill:w.fill,borderColor:w.border.color,borderWidth:w.border.width,opacity:w.opacity,dashArray:w.dashArray,imageUrl:w.imageUrl,shape:w.shape}).borderOpacity=(0,t.isNullOrUndefined)(w.border.opacity)?w.opacity:w.border.opacity:(f={size:new a(F.width,F.height),fill:F.fill,borderColor:F.border.color,borderWidth:F.border.width,opacity:w.opacity,dashArray:w.dashArray,imageUrl:F.imageUrl,shape:F.shape}).borderOpacity=(0,t.isNullOrUndefined)(F.border.opacity)?w.opacity:F.border.opacity,O=o.isTileMap||i.id.indexOf("_Markers_Group")>-1?O:O+3.75-F.width/2,C=o.isTileMap||i.id.indexOf("_Markers_Group")>-1?C:C-F.height/2,o.isTileMap&&!o.zoomSettings.enable&&(O=h.x,C=h.y);var j=o.element.id+"_LayerIndex_"+n+"_MarkerIndex_"+x+"_dataIndex_"+y+"_cluster_"+L,Z=o.element.id+"_LayerIndex_"+n+"_MarkerIndex_"+x+"_dataIndex_"+y+"_cluster_"+L+"_datalabel_"+L;L++;var R=q(f.shape,f.imageUrl,{x:0,y:0},j,f,l,o);R.setAttribute("transform","translate( "+O+" "+C+" )"),"Balloon"===F.shape?R.children[0].textContent=P.toString():R.textContent=P.toString(),m=new I(Z,0,3.75,"middle",(S.length+1).toString(),"",""),(u=D(m,_,_.color,l)).setAttribute("transform","translate( "+O+" "+C+" )"),T.appendChild(u),T.appendChild(R)}}S=[]}else K(o,E,n,s,P);N=!0})),r.appendChild(T),o.svgObject.appendChild(r),o.element.appendChild(o.svgObject),w.allowDeepClustering&&Array.prototype.forEach.call(T.childNodes,(function(e,i){if("hidden"!==e.style.visibility&&(p=(b=e).getBoundingClientRect(),!((0,t.isNullOrUndefined)(p)||b.id.indexOf("_datalabel_")>-1))){for(var o=i+1;o<T.childElementCount;o++)"hidden"!==T.childNodes[o].style.visibility&&(y=T.childNodes[o],h=y.getBoundingClientRect(),(0,t.isNullOrUndefined)(h)||y.id.indexOf("_datalabel_")>-1||p.left>h.right||p.right<h.left||p.top>h.bottom||p.bottom<h.top||(x.push(y),x.push(T.childNodes[o-1]),T.childNodes[o].style.visibility="hidden",T.childNodes[o-1].style.visibility="hidden",P.push(o)));if(x.length>0){b=e;for(var a=0;a<x.length;a++)"g"===b.tagName?b.childNodes[0].textContent=b.childNodes[0].textContent+","+x[a].textContent:b.textContent=b.textContent+","+x[a].textContent,T.childNodes[i-1].textContent=(+T.childNodes[i-1].textContent+ +x[a+1].textContent).toString(),a++}x=[]}}));0<T.childNodes.length;)l.insertBefore(T.childNodes[0],l.firstChild);s||Ae(o.element.id+"_Secondary_Element").appendChild(l);var B=document.getElementById(o.element.id+"_LayerIndex_"+n+"_Polygon_Group"),A=document.getElementById(o.element.id+"_LayerIndex_"+n+"_Polygons_Group");(0,t.isNullOrUndefined)(B)&&!o.isTileMap?r.insertBefore(l,r.firstChild):o.isTileMap?(0,t.isNullOrUndefined)(A)?(0,t.isNullOrUndefined)(B)?r.insertBefore(l,r.firstChild):B.insertAdjacentElement("afterend",l):A.insertAdjacentElement("afterend",l):r.appendChild(l);var U=document.getElementById(o.element.id+"_LayerIndex_"+n+"_markerCluster");if((0,t.isNullOrUndefined)(U)||U.remove(),d){var j=document.getElementById(o.element.id+"_Layer_Collections"),Z=document.getElementById(o.element.id+"_LayerIndex_"+(n+1));(0,t.isNullOrUndefined)(j)||(0,t.isNullOrUndefined)(Z)?(0,t.isNullOrUndefined)(j)||j.appendChild(r):j.insertBefore(r,Z)}})),N}function K(e,i,o,a,n){if(1===i){var l=(0,t.isNullOrUndefined)(e.markerModule.initialMarkerCluster[o][a])?[]:n.length>1?n:[];e.markerModule.initialMarkerCluster[o][a]=l;var r=(0,t.isNullOrUndefined)(e.markerModule.zoomedMarkerCluster[o][a])?[]:n.length>1?n:[];e.markerModule.zoomedMarkerCluster[o][a]=r}else i>1&&(e.markerModule.zoomedMarkerCluster[o][a]=n.length>1?n:[])}function $(e,i,o,a,n){var l=e.getBoundingClientRect();(0,t.isNullOrUndefined)(l)||i.left>l.right||i.right<l.left||i.top>l.bottom||i.bottom<l.top||(o.push(l),e.style.visibility="hidden",a.push(n))}function ee(e,i){var o=e[0].layerIndex,a=e[0].targetClusterIndex,n=e[0].markerIndex,l=e[0].dataIndex,r=i.element.id+"_LayerIndex_"+o+"_MarkerIndex_"+n,s=i.layers[o].markerSettings[n],d=r+"_dataIndex_"+l+"_cluster_"+a,p="Balloon"===i.layers[o].markerClusterSettings.shape?Re(d+"_Group"):Re(d),h=Re(d+"_datalabel_"+a);p.setAttribute("visibility","visible"),h.setAttribute("visibility","visible");for(var m=e[0].data.length,c=0;c<m;c++)("Balloon"===s.shape&&(0,t.isNullOrUndefined)(s.template)?Re(r+"_dataIndex_"+e[0].data[c].index+"_Group"):Re(r+"_dataIndex_"+e[0].data[c].index)).style.visibility="hidden";ke(i.element.id+"_LayerIndex_"+o+"_MarkerIndex_"+n+"_markerClusterConnectorLine")}function te(e,i,o,a){var n=e[0].layerIndex,l=e[0].markerIndex,r=e[0].targetClusterIndex,s=e[0].dataIndex,d=a?Re:o.querySelector.bind(o),p=a?"":"#",h=i.element.id+"_LayerIndex_"+n+"_MarkerIndex_"+l,m=i.layers[n].markerSettings[l],c=h+"_dataIndex_"+s+"_cluster_"+r,u="Balloon"===i.layers[n].markerClusterSettings.shape?d(p+""+c+"_Group"):d(p+""+c),g=d(p+""+c+"_datalabel_"+r);u.setAttribute("visibility","hidden"),g.setAttribute("visibility","hidden");var y="Balloon"===m.shape&&(0,t.isNullOrUndefined)(m.template)?d(p+""+h+"_dataIndex_"+s+"_Group"):d(p+""+h+"_dataIndex_"+s),f=y.parentElement.id.indexOf("Template_Group")>-1?y.getBoundingClientRect().height:m.height,b=y.parentElement.id.indexOf("Template_Group")>-1?y.getBoundingClientRect().width:m.width,v=+u.getAttribute("transform").split("translate(")[1].trim().split(" ")[0],S=+u.getAttribute("transform").split("translate(")[1].trim().split(" ")[1].split(")")[0].trim(),x=b+5,O=6.28*x,C=0,M=Math.round(O/b);C+=M;for(var _=e[0].data.length,L=Math.round(f/O*100),P=(L=_<M?100/_:L)/100*360,w=_<M?45:0,T=1,I="M "+v+" "+S+" ",F="",k=0;k<_;k++){if(C===k||Math.round(w)>=360){for(w=0,O=6.28*(x=(b+5)*++T),M=Math.round(O/f),L=Math.round(f/O*100);L*M<100;)M++;P=L/100*360,C+=M}var N=v+x*Math.sin(2*Math.PI*w/360),E=S+x*Math.cos(2*Math.PI*w/360);F+=I+"L "+N+" "+E+" ",(y="Balloon"===m.shape&&(0,t.isNullOrUndefined)(m.template)?d(p+""+h+"_dataIndex_"+e[0].data[k].index+"_Group"):d(p+""+h+"_dataIndex_"+e[0].data[k].index)).parentElement.id.indexOf("Template_Group")>-1?(y.style.transform="",y.style.left=i.isTileMap?N-b/2+"px":N-b/2-10+"px",y.style.top=i.isTileMap?E-f/2+"px":E-f/2-10+"px",y.setAttribute("transform","translate( "+N+" "+E+")")):y.setAttribute("transform","translate( "+N+" "+E+")"),y.style.visibility="visible",w+=P}var z=i.layers[n].markerClusterSettings.connectorLineSettings,B={d:F,id:i.element.id+"_LayerIndex_"+n+"_MarkerIndex_"+l+"_dataIndex_"+s+"_markerClusterConnectorLine",stroke:z.color,"fill-opacity":z.opacity,"stroke-opacity":z.opacity,"stroke-width":z.width};o=a?d(i.element.id+"_Markers_Group"):o;var A=i.renderer.createGroup({id:i.element.id+"_LayerIndex_"+n+"_MarkerIndex_"+l+"_markerClusterConnectorLine"});A.appendChild(i.renderer.drawPath(B)),"Balloon"===m.shape?o.insertBefore(A,o.querySelector("#"+h+"_dataIndex_0_Group")):o.insertBefore(A,o.querySelector("#"+h+"_dataIndex_0"))}function ie(e,i,o,n,l,r,s,d,p,h,m){var c={size:new a(e.width,e.height),fill:e.fill,borderColor:e.border.color,borderWidth:e.border.width,opacity:i.opacity,dashArray:i.dashArray,borderOpacity:(0,t.isNullOrUndefined)(e.border.opacity)?i.opacity:e.border.opacity};ke(s);var u=q(e.shape,e.imageUrl,{x:0,y:0},s,c,m,h),g=(h.isTileMap?l.x:(l.x+r.x)*p)+d.x,y=(h.isTileMap?l.y:(l.y+r.y)*p)+d.y;if(u.setAttribute("transform","translate( "+g+" "+y+" )"),ae(h.selectedMarkerElementId,h.markerSelectionClass,u,"MarkerselectionMapStyle"),h.legendSettings.toggleLegendSettings.enable&&"Markers"===h.legendSettings.type){var f=parseInt(u.id.split("_LayerIndex_")[1],10);ne(h.toggledElementId,"g"===u.tagName?u.children[0]:u,h.legendSettings.toggleLegendSettings.applyShapeSettings?h.layers[f].shapeSettings:h.legendSettings.toggleLegendSettings)}m.appendChild(u);var b=o.length-1===n?"marker":null,v=new M(g,y);return(i.animationDuration>0||"Enable"===t.animationMode)&&Qe(u,i.animationDelay,i.animationDuration,v,h,b),m}function oe(e,t,i,o,a,n,l,r,s,d,p){if((t=Ze(e.template,p))&&t(o,p,e.template,p.element.id+"_MarkerTemplate"+a,!1).length){for(var h=V(t(o,p,e.template,p.element.id+"_MarkerTemplate"+a,!1),i,o,0,p,typeof e.template),m=0;m<h.children.length;m++)h.children[m].style.pointerEvents="auto";h.style.left=(p.isTileMap?l.x:(l.x+r.x)*s)+d.x-p.mapAreaRect.x+"px",h.style.top=(p.isTileMap?l.y:(l.y+r.y)*s)+d.y-p.mapAreaRect.y+"px",n.appendChild(h)}return n}function ae(e,i,o,a){if(e)for(var n=0;n<e.length;n++)o.getAttribute("id")===e[n]&&(0!==n&&"g"!==o.tagName||((0,t.isNullOrUndefined)(i)||(0,t.isNullOrUndefined)(i.id)||document.body.appendChild(i),o.id.indexOf("_MarkerIndex_")>-1&&o.childElementCount>0&&o.children[0].setAttribute("class",a)),o.setAttribute("class",a))}function ne(e,i,o){if(!(0,t.isNullOrUndefined)(e)&&e.length>0)for(var a=0;a<e.length;a++)e[a]===i.id&&(i.setAttribute("fill",o.fill),i.setAttribute("stroke",o.border.color),i.setAttribute("fill-opacity",o.opacity.toString()),i.setAttribute("stroke-opacity",((0,t.isNullOrUndefined)(o.border.opacity)?o.opacity:o.border.opacity).toString()),i.setAttribute("stroke-width",((0,t.isNullOrUndefined)(o.border.width)?0:o.border.width).toString()))}function le(e,i,o,a,n,l,r){if(!Re(e)){var s=(0,t.createElement)("style",{id:e});s.innerText="."+i+"{fill:"+o+";opacity:"+a+";stroke-width:"+l+";stroke:"+n+";}",r.shapeSelectionClass=s,document.body.appendChild(s)}}function re(e,t){return t&&t.appendChild(e),e}function se(e,t,i){return re(e.renderer.drawCircle(t),i)}function de(e,t,i){return re(e.renderer.drawRectangle(t),i)}function pe(e,t,i){return re(e.renderer.drawPath(t),i)}function he(e,t,i){return re(e.renderer.drawPolygon(t),i)}function me(e,t,i){return re(e.renderer.drawPolyline(t),i)}function ce(e,t,i){return re(e.renderer.drawLine(t),i)}function ue(e,t,i,o,a,n){var l;switch(t){case"Balloon":l=xe(e,i,o,a,"Marker",n);break;case"Cross":i.d="M "+a.x+" "+(a.y-o.height/2)+" L "+a.x+" "+(a.y+o.height/2)+" M "+(a.x-o.width/2)+" "+a.y+" L "+(a.x+o.width/2)+" "+a.y;break;case"Diamond":i.d="M "+a.x+" "+(a.y-o.height/2)+" L "+(a.x+o.width/2)+" "+a.y+" L "+a.x+" "+(a.y+o.height/2)+" L "+(a.x-o.width/2)+" "+a.y+" Z";break;case"Star":i.d="M "+(a.x+o.width/3)+" "+(a.y-o.height/2)+" L "+(a.x-o.width/2)+" "+(a.y+o.height/6)+" L "+(a.x+o.width/2)+" "+(a.y+o.height/6)+" L "+(a.x-o.width/3)+" "+(a.y-o.height/2)+" L "+a.x+" "+(a.y+o.height/2)+" L "+(a.x+o.width/3)+" "+(a.y-o.height/2)+" Z";break;case"Triangle":i.d="M "+a.x+" "+(a.y-o.height/2)+" L "+(a.x+o.width/2)+" "+(a.y+o.height/2)+" L "+(a.x-o.width/2)+" "+(a.y+o.height/2)+" Z";break;case"HorizontalLine":i.d=" M "+(a.x-o.width/2)+" "+a.y+" L "+(a.x+o.width/2)+" "+a.y;break;case"VerticalLine":i.d="M "+a.x+" "+(a.y-o.height/2)+" L "+a.x+" "+(a.y+o.height/2);break;case"InvertedTriangle":i.d="M "+(a.x-o.width/2)+" "+(a.y-o.height/2)+" L "+(a.x+o.width/2)+" "+(a.y-o.height/2)+" L "+a.x+" "+(a.y+o.height/2)+" Z";break;case"Pentagon":for(var r=void 0,s=void 0,d=0;d<5;d++)r=o.width/2*Math.cos(Math.PI/180*(72*d)),s=o.height/2*Math.sin(Math.PI/180*(72*d)),i.d+=(0===d?"M ":"L ")+(a.x+r)+" "+(a.y+s);i.d+=" Z"}return"Cross"!==t&&"HorizontalLine"!==t&&"VerticalLine"!==t||(i.stroke="transparent"===i.stroke?i.fill:i.stroke),"Balloon"===t?l:e.renderer.drawPath(i)}function ge(e,t,i,o,a){return t.d="M "+o.x+" "+(o.y-i.height/2)+" L "+(o.x+i.width/2)+" "+o.y+" L "+o.x+" "+(o.y+i.height/2)+" L "+(o.x-i.width/2)+" "+o.y+" Z",re(e.renderer.drawPath(t),a)}function ye(e,t,i,o,a){return t.d="M "+o.x+" "+(o.y-i.height/2)+" L "+(o.x+i.width/2)+" "+(o.y+i.height/2)+" L "+(o.x-i.width/2)+" "+(o.y+i.height/2)+" Z",re(e.renderer.drawPath(t),a)}function fe(e,t,i,o,a){return t.d="M "+o.x+" "+(o.y-i.height/2)+" L "+o.x+" "+(o.y+i.height/2)+" M "+(o.x-i.width/2)+" "+o.y+" L "+(o.x+i.width/2)+" "+o.y,re(e.renderer.drawPath(t),a)}function be(e,t,i,o,a){return t.d=" M "+(o.x-i.width/2)+" "+o.y+" L "+(o.x+i.width/2)+" "+o.y,re(e.renderer.drawPath(t),a)}function ve(e,t,i,o,a){return t.d="M "+o.x+" "+(o.y-i.height/2)+" L "+o.x+" "+(o.y+i.height/2),re(e.renderer.drawPath(t),a)}function Se(e,t,i,o,a){return t.d="M "+(o.x+i.width/3)+" "+(o.y-i.height/2)+" L "+(o.x-i.width/2)+" "+(o.y+i.height/6)+" L "+(o.x+i.width/2)+" "+(o.y+i.height/6)+" L "+(o.x-i.width/3)+" "+(o.y-i.height/2)+" L "+o.x+" "+(o.y+i.height/2)+" L "+(o.x+i.width/3)+" "+(o.y-i.height/2)+" Z",re(e.renderer.drawPath(t),a)}function xe(e,t,i,o,a,n){var l,r=i.width,s=i.height;o.x-=r/2,o.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("+o.x+", "+o.y+") scale("+p+", "+h+")"),"Marker"===a){var m=e.renderer.createGroup({id:t.id+"_Group"});re(d,m),l=re(m,n)}else l=d;return l}function Oe(e,t,i,o){for(var a=e.renderer.createPattern(t,"pattern"),n=0,l=i;n<l.length;n++){re(l[n],a)}return re(a,o)}function Ce(e,t){for(var i,o=[],a=0,n=e;a<n.length;a++){var l=n[a];i={};for(var r=0,s=t;r<s.length;r++){var d=s[r];l[d]&&(i[d]=l[d])}o.push(i)}return o}function Me(e,i,o,a,n){if(!(0,t.isNullOrUndefined)(i)&&!(0,t.isNullOrUndefined)(e))for(var l=0;l<e.length;l++){var r=o.indexOf(".")>-1?X(e[l],o):e[l][o],s=_e(r,a,i);if((!(0,t.isNullOrUndefined)(r)&&isNaN(i[s])&&"string"==typeof r?r.toLowerCase():r)===(!(0,t.isNullOrUndefined)(i[s])&&isNaN(i[s])?i[s].toLowerCase():i[s]))return l}return null}function _e(e,i,o){if(!(0,t.isNullOrUndefined)(e)&&!(0,t.isNullOrUndefined)(o)&&!(0,t.isNullOrUndefined)(i))for(var a="[object Array]"===Object.prototype.toString.call(i)?i:[i],n=0;n<a.length;n++){if(((0,t.isNullOrUndefined)(e)||"string"!=typeof e?e:e.toLowerCase())===(!(0,t.isNullOrUndefined)(o[a[n]])&&isNaN(o[a[n]])?o[a[n]].toLowerCase():o[a[n]]))return a[n]}return null}function Le(e,t,i){for(var o=[],a=0;a<e.length;a++){var n=e[a];t<=n.y&&i>=n.y&&o.push(n)}return o}function Pe(e,t,i,o,a){var n=(t-e)/100*(100/(a-o)*(i-o))+e;return a===o&&(n=(t-e)/100+e),n}function we(e,t,i){if(!e.length)return null;for(var o,a,n,l,r=e.length,s=0,d=0,p=0,h=0;h<=r-1;h++)o=e[h].x,a="Mercator"===t||"Normal"===i?e[h].y:-e[h].y,h===r-1?(n=e[0].x,l="Mercator"===t||"Normal"===i?e[0].y:-e[0].y):(n=e[h+1].x,l="Mercator"===t||"Normal"===i?e[h+1].y:-e[h+1].y),s+=Math.abs(o*l-n*a),d+=Math.abs((o+n)*(o*l-n*a)),p+=Math.abs((a+l)*(o*l-n*a));s*=.5;var m=e.some((function(e){return e.x<5&&e.y<5}))&&"Normal"===i?6:4;d=0!==s?1/(m*s)*d:0,p=0!==s?1/(m*s)*p:0;var c={x:0,y:0},u={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},x=0;for(h=0;h<=r-1;h++){var O=e[h];O.y="Mercator"===t||"Normal"===i?O.y:-O.y,O.y>p?O.x<d&&d-O.x<d-f.x?f={x:O.x,y:O.y}:O.x>d&&(0===b.x||O.x-d<b.x-d)&&(b={x:O.x,y:O.y}):O.x<d&&d-O.x<d-v.x?v={x:O.x,y:O.y}:O.x>d&&(0===S.x||O.x-d<S.x-d)&&(S={x:O.x,y:O.y}),x=b.y-S.y+(b.y-S.y)/4,O.x>d?O.y<p&&p-O.y<p-c.y?c={x:O.x,y:O.y}:O.y>p&&(0===u.y||O.y-p<u.y-p)&&(u={x:O.x,y:O.y}):O.y<p&&p-O.y<p-g.y?g={x:O.x,y:O.y}:O.y>p&&(0===y.y||O.y-p<y.y-p)&&(y={x:O.x,y:O.y})}return{x:d,y:p,rightMin:c,rightMax:u,leftMin:g,leftMax:y,points:e,topMax:S,topMin:v,bottomMax:b,bottomMin:f,height:x}}function Te(e){var i=!1;return"[object Array]"===Object.prototype.toString.call(e)&&Array.prototype.forEach.call(e,(function(e){(0,t.isNullOrUndefined)(e.geometry)||"Path"!==e.geometry.type||(i=!0)})),i}function Ie(e,i,o,a,n,l){var r=i;if((0,t.isNullOrUndefined)(a)&&(a=n?T(i,o).width:w(i,o).width),a>e)for(var s=i.length-1;s>=0;--s)if(r=i.substring(0,s)+"...",(a=n?T(r,o).width:w(r,o).width)<=e||r.length<4)return r.length<4&&(r=" "),(0,t.isNullOrUndefined)(l)||l.push(a),r;return(0,t.isNullOrUndefined)(l)||l.push(a),r}function Fe(e,t,i,o){var a;switch(t){case"Near":a=e.x;break;case"Center":a="title"===o?e.width/2-i.width/2:e.x+e.width/2-i.width/2;break;case"Far":a="title"===o?e.width-e.y-i.width:e.x+e.width-i.width}var n="title"===o?e.y+i.height/2:e.y+e.height/2+i.height/2;return new M(a,n)}function ke(e){var i=document.getElementById(e);return i?(0,t.remove)(i):null}function Ne(e,t){var i=c(e.minLatOfGivenLocation,e.minLongOfGivenLocation,e.mapLayerPanel.calculateFactor(t),t,e),o=c(e.maxLatOfGivenLocation,e.maxLongOfGivenLocation,e.mapLayerPanel.calculateFactor(t),t,e),a=(i.x+o.x)/2,n=(i.y+o.y)/2;return new M(a,n)}function Ee(e,i,o){var a,n=e.zoomSettings.zoomFactor,l=e.centerPosition,r=l.latitude,s=l.longitude,d=!(0,t.isNullOrUndefined)(e.centerLatOfGivenLocation)&&!(0,t.isNullOrUndefined)(e.centerLongOfGivenLocation)&&e.zoomNotApplied;(0,t.isNullOrUndefined)(e.mapScaleValue)&&(e.mapScaleValue=n),e.zoomSettings.shouldZoomInitially&&e.zoomSettings.enable&&(e.mapScaleValue=a=n=(e.zoomSettings.shouldZoomInitially||e.enablePersistence)&&1===e.scale?e.scale:(0,t.isNullOrUndefined)(e.markerZoomFactor)?1:e.markerZoomedState?e.markerZoomFactor:parseInt(e.scale.toString()),e.markerZoomedState&&e.mapScaleValue!==e.markerZoomFactor&&!e.enablePersistence&&(e.mapScaleValue=n=e.markerZoomFactor),!e.markerZoomedState||(0,t.isNullOrUndefined)(e.markerCenterLatitude)||(0,t.isNullOrUndefined)(e.markerCenterLongitude)||(r=e.markerCenterLatitude,s=e.markerCenterLongitude)),d&&(e.mapScaleValue=a=n=e.scaleOfGivenLocation);var p=(0,t.isNullOrUndefined)(e.baseMapRectBounds)?null:e.baseMapRectBounds.min,h=(0,t.isNullOrUndefined)(e.baseMapRectBounds)?null:e.baseMapRectBounds.max,m=o?1:e.mapScaleValue;(0,t.isNullOrUndefined)(e.currentShapeDataLength)&&(e.currentShapeDataLength=(0,t.isNullOrUndefined)(i.shapeData.features)?i.shapeData.geometries.length:i.shapeData.features.length);var u,g,y=e.totalRect&&e.legendSettings.visible?e.totalRect:e.mapAreaRect,f=e.availableSize;if(!(0,t.isNullOrUndefined)(p)&&!(0,t.isNullOrUndefined)(h)){var b=Math.abs(h.x-p.x),v=Math.abs(p.y-h.y),S=o?1:1===e.markerZoomFactor?e.mapScaleValue:n;if(l=e.zoomSettings.shouldZoomInitially&&e.markerZoomedState&&!e.zoomPersistence?e.markerZoomCenterPoint:e.centerPosition,!(0,t.isNullOrUndefined)(s)&&0!==s&&!(0,t.isNullOrUndefined)(r)&&0!==r||d){var x=((b+Math.abs(e.mapAreaRect.width-b))/2+e.mapAreaRect.x)/S,O=((v+Math.abs(e.mapAreaRect.height-v))/2+e.mapAreaRect.y)/S,C=d?Ne(e,i):c(r,s,e.mapLayerPanel.calculateFactor(i),i,e);(0,t.isNullOrUndefined)(e.previousProjection)||e.previousProjection!==e.projectionType||e.isMarkerZoomCompleted?(u=-C.x+x,g=-C.y+O,a=m):(1!==Math.floor(e.scale)&&e.zoomSettings.shouldZoomInitially||e.zoomNotApplied?(u=-C.x+x,g=-C.y+O):e.zoomSettings.shouldZoomInitially||e.zoomNotApplied?(u=-C.x+x,g=-C.y+O,a=m):(u=e.zoomTranslatePoint.x,g=e.zoomTranslatePoint.y),a=e.mapScaleValue)}else if((0,t.isNullOrUndefined)(e.previousProjection)||e.previousProjection!==e.projectionType){0!==v&&0!==b&&v!==b||(b=y.width/2,v=y.height),b*=a=(a=parseFloat(Math.min(y.width/b,y.height/v).toFixed(2)))>1.05?1:a,v*=a;var _=0!==p.x&&"layers"===e.translateType?f.width-y.width:0;u=y.x+(-p.x+(y.width/2-b/2))-_,g=y.y+(-p.y+(y.height/2-v/2)),e.previousTranslate=new M(u,g)}else if(e.zoomSettings.shouldZoomInitially||1!==e.markerZoomFactor||1!==e.mapScaleValue)if(a=e.mapScaleValue<1?e.mapScaleValue+1:e.mapScaleValue,e.mapScaleValue=e.zoomSettings.enable&&1!==e.mapScaleValue?e.mapScaleValue:1,e.currentShapeDataLength!==((0,t.isNullOrUndefined)(i.shapeData.features)?i.shapeData.geometries.length:i.shapeData.features.length)&&"SubLayer"!==i.type){var L=parseFloat(Math.min(y.height/v,y.width/b).toFixed(2));v*=L,b*=L,g=y.y+(-p.y+(y.height/2-v/2)),a=L,u=y.x+(-p.x+(y.width/2-b/2))}else if(e.availableSize.height!==e.heightBeforeRefresh||e.widthBeforeRefresh!==e.availableSize.width){var P=parseFloat(Math.min(y.width/b,y.height/v).toFixed(2)),w=b;w*=P;var T=v;T*=P;var I=y.x+(-p.x+(y.width/2-w/2)),F=y.y+(-p.y+(y.height/2-T/2)),k=(e.translatePoint.x-e.previousTranslate.x)/e.widthBeforeRefresh,N=(e.translatePoint.y-e.previousTranslate.y)/e.heightBeforeRefresh;u=I+k*e.availableSize.width,g=F+N*e.availableSize.height,e.previousTranslate=new M(I,F),e.zoomTranslatePoint.x=u,e.zoomTranslatePoint.y=g}else(0,t.isNullOrUndefined)(e.previousProjection)||!(1===e.mapScaleValue||e.mapScaleValue<=1.05)||e.zoomModule.isDragZoom?(u=e.zoomTranslatePoint.x,g=e.zoomTranslatePoint.y,a=e.scale):(b*=a=(a=parseFloat(Math.min(y.width/b,y.height/v).toFixed(2)))>1.05?1:a,u=y.x+(-p.x+(y.width/2-b/2)),v*=a,g=y.y+(-p.y+(y.height/2-v/2)));else v*=a=parseFloat(Math.min(y.width/b,y.height/v).toFixed(2)),b*=a,g=y.y+(-p.y+(y.height/2-v/2)),u=y.x+(-p.x+(y.width/2-b/2));(0,t.isNullOrUndefined)(e.translatePoint)||(u=e.enablePersistence&&0!==e.translatePoint.x&&!e.zoomNotApplied?e.translatePoint.x:u,g=e.enablePersistence&&0!==e.translatePoint.y&&!e.zoomNotApplied?e.translatePoint.y:g)}return a=e.enablePersistence?e.mapScaleValue>=1?e.mapScaleValue:1:a,e.widthBeforeRefresh=e.availableSize.width,e.heightBeforeRefresh=e.availableSize.height,{scale:a,location:new M(u,g)}}function ze(e,i,o){var a,n=e.zoomSettings.zoomFactor,l=e.centerPosition,r=l.latitude,s=l.longitude,d=!(0,t.isNullOrUndefined)(e.centerLongOfGivenLocation)&&!(0,t.isNullOrUndefined)(e.centerLatOfGivenLocation)&&e.zoomNotApplied;(0,t.isNullOrUndefined)(e.previousCenterLatitude)&&(0,t.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,((0,t.isNullOrUndefined)(e.mapScaleValue)||n>e.mapScaleValue)&&(e.isReset&&1===e.mapScaleValue?e.mapScaleValue=e.mapScaleValue:!(0,t.isNullOrUndefined)(e.mapScaleValue)&&e.mapScaleValue<=e.scale?e.mapScaleValue=e.scale:e.mapScaleValue=n),e.mapScaleValue=1!==e.zoomSettings.zoomFactor&&e.zoomSettings.zoomFactor===e.mapScaleValue||e.zoomSettings.zoomFactor===e.mapScaleValue||e.centerPositionChanged?e.zoomSettings.zoomFactor:e.mapScaleValue,e.zoomSettings.shouldZoomInitially&&!e.isZoomByPosition&&(e.mapScaleValue=n=a=(e.enablePersistence||e.zoomSettings.shouldZoomInitially)&&1===e.scale?e.scale:(0,t.isNullOrUndefined)(e.markerZoomFactor)?e.mapScaleValue:e.markerZoomFactor,n=e.mapScaleValue,(0,t.isNullOrUndefined)(e.markerCenterLatitude)||(0,t.isNullOrUndefined)(e.markerCenterLongitude)||(r=e.markerCenterLatitude,s=e.markerCenterLongitude)),d&&(e.mapScaleValue=a=n=e.scaleOfGivenLocation);var p,h,m=o?1:e.mapScaleValue,u=e.mapAreaRect,g=e.baseMapRectBounds.min,y=e.baseMapRectBounds.max,f=o?1:e.mapScaleValue,b=Math.abs(y.x-g.x),v=Math.abs(g.y-y.y);if(!(0,t.isNullOrUndefined)(s)&&0!==s&&!(0,t.isNullOrUndefined)(r)&&0!==r||d){var S=(v+Math.abs(e.mapAreaRect.height-v))/2/f,x=(b+Math.abs(e.mapAreaRect.width-b))/2/f,O=d?Ne(e,i):c(r,s,e.mapLayerPanel.calculateFactor(i),i,e);(0,t.isNullOrUndefined)(e.zoomTranslatePoint)&&(0,t.isNullOrUndefined)(e.previousProjection)||e.zoomNotApplied?(p=-O.x+x+e.mapAreaRect.x/m,h=-O.y+S+e.mapAreaRect.y/m):e.previousProjection!==e.projectionType?(p=-O.x+x,h=-O.y+S):(e.isZoomByPosition&&(e.zoomTranslatePoint.x=-O.x+x,e.zoomTranslatePoint.y=-O.y+S),p=e.zoomTranslatePoint.x,h=e.zoomTranslatePoint.y,n=m),(0,t.isNullOrUndefined)(e.translatePoint)||(h=e.enablePersistence&&0!==e.translatePoint.y&&!e.zoomNotApplied?e.translatePoint.y:h,p=e.enablePersistence&&0!==e.translatePoint.x&&!e.zoomNotApplied?e.translatePoint.x:p),a=0!==n?n:1}else{var C=0===e.zoomSettings.zoomFactor?1:e.zoomSettings.zoomFactor,_=e.zoomSettings.maxZoom;a=C=C>_?_:C;var L=0===e.mapScaleValue?1:e.mapScaleValue>_?_:e.mapScaleValue;x=u.x+(-g.x+(u.width/2-b/2)),S=u.y+(-g.y+(u.height/2-v/2));if(!(0,t.isNullOrUndefined)(e.zoomTranslatePoint)||!(0,t.isNullOrUndefined)(e.previousProjection))if(e.previousProjection!==e.projectionType){var P=[],w={x,y:S};P.push(w);for(var T=1;T<_;T++){w={x:P[T-1].x-(u.width/T-u.width/(T+1))/2,y:P[T-1].y-(u.height/T-u.height/(T+1))/2},P.push(w)}x=P[C-1].x,S=P[C-1].y}else x=e.zoomTranslatePoint.x,S=e.zoomTranslatePoint.y,C!==L&&(a=L);(0,t.isNullOrUndefined)(e.translatePoint)||(p=e.enablePersistence&&0!==e.translatePoint.x&&!e.zoomNotApplied?e.translatePoint.x:x,h=e.enablePersistence&&0!==e.translatePoint.y&&!e.zoomNotApplied?e.translatePoint.y:S)}return a=e.enablePersistence?0===e.mapScaleValue?1:e.mapScaleValue:a,e.widthBeforeRefresh=e.availableSize.width,e.heightBeforeRefresh=e.availableSize.height,{scale:o?1:a,location:new M(p,h)}}function Be(e){e.tileZoomScale=e.tileZoomLevel=Math.floor(e.availableSize.height/512)+1;var t=256*Math.pow(2,e.tileZoomLevel);e.tileTranslatePoint.x=e.availableSize.width/2-t/2,e.tileTranslatePoint.y=e.availableSize.height/2-t/2+20,e.previousTileWidth=e.availableSize.width,e.previousTileHeight=e.availableSize.height}function Ae(e){return document.getElementById(e)}function Ue(e){var i=document.getElementById(e);return(0,t.isNullOrUndefined)(i)?null:i.getClientRects()[0]}function je(e,t){return e.formatFunction=e.intl.getNumberFormat({format:e.format,useGrouping:e.useGroupingSeparator}),e.formatFunction(t)}function Ze(e,i){var o=null;try{"function"!=typeof e&&document.querySelectorAll(e).length?o=(0,t.compile)(document.querySelector(e).innerHTML.trim()):(i.isVue||i.isVue3||"function"==typeof e)&&(o=(0,t.compile)(e))}catch(i){o=(0,t.compile)(e)}return o}function Re(e){return document.getElementById(e)}function De(e,t){var i,o=parseInt(e.split("_LayerIndex_")[1].split("_")[0],10),a=parseInt(e.split("_shapeIndex_")[1].split("_")[0],10),n=t.layersCollection[o],l=n.layerData[a].property;return n.dataSource&&(i=n.dataSource[Me(n.dataSource,l,n.shapeDataPath,n.shapePropertyPath)]),{shapeData:l,data:i}}function Ve(e,i,o,a){var n=De(e,o),l={color:i.border.color,opacity:i.border.opacity,width:i.border.width},r=i.enableMultiSelect?{cancel:!1,name:a,fill:i.fill,opacity:i.opacity,border:l,shapeData:n.shapeData,data:n.data,target:e,maps:o,shapeDataCollection:o.shapeSelectionItem}:{cancel:!1,name:a,fill:i.fill,opacity:i.opacity,border:l,shapeData:n.shapeData,data:n.data,target:e,maps:o};return o.trigger(a,r,(function(){r.border.opacity=(0,t.isNullOrUndefined)(r.border.opacity)?r.opacity:r.border.opacity})),r}function He(e){return document.getElementsByClassName(e)}function Ge(e,t){var i=null;return document.getElementById(t)&&(i=document.getElementById(t).querySelector("#"+e)),i}function We(e,t,i,o){for(var a,n=o.layers[e].shapeData.features,l=0;l<n.length;l++)if(n[l].properties.name===t){a=o.element.id+"_LayerIndex_"+e+"_shapeIndex_"+l+"_dataIndex_undefined";break}return Re(a)}function qe(e,i,o){var a=(0,t.createElement)("style",{id:e});return a.innerText="."+i+"{fill:"+o.fill+";fill-opacity:"+o.opacity.toString()+";stroke-opacity:"+o.border.opacity.toString()+";stroke-width:"+o.border.width.toString()+";stroke:"+o.border.color+";}",a}function Xe(e,i,o){var a=Re(e);(0,t.isNullOrUndefined)(a)||(a.innerText="."+i+"{fill:"+o.fill+";fill-opacity:"+o.opacity.toString()+";stroke-width:"+o.border.width.toString()+";stroke-opacity:"+o.border.opacity.toString()+";stroke:"+o.border.color+"}")}function Ye(e,i,o,a,n){var l={color:e.border.color,width:e.border.width/i.scale,opacity:e.border.opacity},r={opacity:e.opacity,fill:e.fill,border:l,name:Zi,target:o.id,cancel:!1,shapeData:a,data:n,maps:i};i.trigger("itemSelection",r,(function(o){r.border.opacity=(0,t.isNullOrUndefined)(e.border.opacity)?e.opacity:e.border.opacity,i.shapeSelectionItem.push(r.shapeData),Re("ShapeselectionMap")?Xe("ShapeselectionMap","ShapeselectionMapStyle",r):document.body.appendChild(qe("ShapeselectionMap","ShapeselectionMapStyle",r))}))}function Je(e){e.removeAttribute("class")}function Qe(e,i,o,a,n,l,r){void 0===r&&(r=0);var s=a.x,d=a.y,p=0,h=e.getAttribute("transform")||"";new t.Animation({}).animate(e,{duration:0===o&&"Enable"===t.animationMode?1e3:o,delay:i,progress:function(i){if(i.timeStamp>i.delay&&!n.zoomModule.isPanningInProgress){if(n.isTileMap&&0===p){var o=document.querySelector(".GroupElement");(0,t.isNullOrUndefined)(o)||(o.style.display="block")}p=(i.timeStamp-i.delay)/i.duration,e.setAttribute("transform","translate( "+(s-r*p)+" "+(d-r*p)+" ) scale("+p+")")}},end:function(t){if(n.zoomModule.isPanningInProgress||e.setAttribute("transform",h),n.zoomModule.isPanningInProgress=!1,l){var i={cancel:!1,name:Ai,element:l,maps:n};n.trigger(Ai,i)}}})}function Ke(e){ke(e)}function $e(e,i,o,a,n,l,r,s,d){var h=p(o,a,s);(0,t.isNullOrUndefined)(h)||(o=h.x,a=h.y);for(var m=document.getElementById(r),c=w(e,{fontFamily:"Segoe UI",size:"8px",fontStyle:"Normal",fontWeight:"Regular"}).width,u=e.split(" "),g=u[0].length,y=1;y<u.length;y++)g<u[y].length&&(g=u[y].length);m||((m=(0,t.createElement)("div",{id:r})).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'),o<n-c||(o>n-c&&o<n-8*g?c=n-o:o>=n-8*g&&(o>c?o-=c:(c=o,o=0)));var f=i.split("px");et(m,e,o,a,f,c,n,s),m.clientHeight+2*parseInt(f[0],10)>l&&(c=o,o=0),et(m,e,o,a,f,c,n,s),d&&setTimeout(Ke,5e3,r)}function et(e,t,i,o,a,n,l,r){e.innerText=t,e.style.top=-1!==e.id.indexOf("_Legend")?(parseInt(a[0],10)+o).toString()+"px":(2*parseInt(a[0],10)).toString()+"px",e.style.left=i.toString()+"px",e.style.width=n.toString()+"px",e.style.maxWidth=l.toString()+"px",e.style.wordWrap="break-word",r.appendChild(e)}function tt(e,i,o,a,n){var l=Re(e),r=it(n.borderColor),s=it(n.fontColor),d="top:"+o.toString()+"px;left:"+a.toString()+"px;color:"+(s?"rgba("+s.r+","+s.g+","+s.b+","+n.fontOpacity+")":n.fontColor)+";background:"+n.fill+";z-index: 2;position:absolute;border:"+n.borderWidth+"px solid "+(r?"rgba("+r.r+","+r.g+","+r.b+","+n.borderOpacity+")":n.borderColor)+";font-family:"+n.fontFamily+";font-style:"+n.fontStyle+";font-weight:"+n.fontWeight+";font-size:"+n.fontSize+";border-radius:"+n.borderWidth+"px;";!l&&n.visible?((l=(0,t.createElement)("div",{id:e})).innerHTML=t.SanitizeHtmlHelper.sanitize("&nbsp;"+i+"&nbsp;"),l.style.cssText=d,document.body.appendChild(l)):n.visible&&(l.innerHTML=t.SanitizeHtmlHelper.sanitize("&nbsp;"+i+"&nbsp;"),l.style.cssText=d)}function it(e){if(-1!==e.indexOf("#")&&-1===e.toLowerCase().indexOf("rgb"))return(i=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e))?{r:parseInt(i[1],16),g:parseInt(i[2],16),b:parseInt(i[3],16)}:null;if(-1!==e.toLowerCase().indexOf("rgb"))return(i=e.match(/\d+/g).map((function(e){return parseInt(e,10)})))?{r:i[0],g:i[1],b:i[2]}:null;var t=document.createElement("div");t.style.color=e;var i=window.getComputedStyle(document.body.appendChild(t)).color.match(/\d+/g).map((function(e){return parseInt(e,10)}));return document.body.removeChild(t),i?{r:i[0],g:i[1],b:i[2]}:null}function ot(e,t,o,a,n){var l=new i.SvgRenderer(""),r=at(e,o,t,n,a);return l["draw"+r.functionName](r.renderOption)}function at(e,i,o,a,n){var l,r="Path",s=i.width,d=i.height,p=e.x,h=e.y,m=e.x+-s/2,c=e.y+-d/2;switch(a.stroke="HorizontalLine"===o||"VerticalLine"===o||"Cross"===o?a.fill:a.stroke,a["stroke-width"]=0!==a["stroke-width"]||"HorizontalLine"!==o&&"VerticalLine"!==o&&"Cross"!==o?a["stroke-width"]:1,o){case"Circle":case"Bubble":r="Ellipse",(0,t.merge)(a,{rx:s/2,ry:d/2,cx:p,cy:h});break;case"VerticalLine":l="M "+p+" "+(h+d/2)+" L "+p+" "+(h+-d/2),(0,t.merge)(a,{d:l});break;case"HorizontalLine":l="M "+p+" "+h+" L "+(p+s/2)+" "+h,(0,t.merge)(a,{d:l});break;case"Diamond":l="M "+m+" "+h+" L "+p+" "+(h+-d/2)+" L "+(p+s/2)+" "+h+" L "+p+" "+(h+d/2)+" L "+m+" "+h+" z",(0,t.merge)(a,{d:l});break;case"Rectangle":l="M "+m+" "+(h+-d/2)+" L "+(p+s/2)+" "+(h+-d/2)+" L "+(p+s/2)+" "+(h+d/2)+" L "+m+" "+(h+d/2)+" L "+m+" "+(h+-d/2)+" z",(0,t.merge)(a,{d:l});break;case"Triangle":l="M "+m+" "+(h+d/2)+" L "+p+" "+(h+-d/2)+" L "+(p+s/2)+" "+(h+d/2)+" L "+m+" "+(h+d/2)+" z",(0,t.merge)(a,{d:l});break;case"InvertedTriangle":l="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",(0,t.merge)(a,{d:l});break;case"Pentagon":for(var u=void 0,g=void 0,y=0;y<=5;y++)u=s/2*Math.cos(Math.PI/180*(72*y)),g=s/2*Math.sin(Math.PI/180*(72*y)),l=0===y?"M "+(p+u)+" "+(h+g)+" ":l.concat("L "+(p+u)+" "+(h+g)+" ");l=l.concat("Z"),(0,t.merge)(a,{d:l});break;case"Star":l="M "+(e.x+i.width/3)+" "+(e.y-i.height/2)+" L "+(e.x-i.width/2)+" "+(e.y+i.height/6)+" L "+(e.x+i.width/2)+" "+(e.y+i.height/6)+" L "+(e.x-i.width/3)+" "+(e.y-i.height/2)+" L "+e.x+" "+(e.y+i.height/2)+" L "+(e.x+i.width/3)+" "+(e.y-i.height/2)+" Z",(0,t.merge)(a,{d:l});break;case"Cross":l="M "+m+" "+h+" L "+(p+s/2)+" "+h+" M "+p+" "+(h+d/2)+" L "+p+" "+(h+-d/2),(0,t.merge)(a,{d:l});break;case"Image":r="Image",(0,t.merge)(a,{href:n,height:d,width:s,x:m,y:c})}return{renderOption:a,functionName:r}}function nt(e,t){t.appendChild(e);var i=e.offsetWidth,o=e.offsetHeight;return t.removeChild(e),new a(i,o)}function lt(e,i,o,a){for(var n,l=0;l<e.childElementCount;l++)if((n=e.childNodes[l]).id.indexOf("_NavigationGroup")>-1)rt(n,i,o,a);else if(n.id.indexOf("_Polygons_Group")>-1)for(var r=0;r<n.childElementCount;r++){var s=a.layersCollection[i].polygonSettings.polygons[parseInt(n.children[r].id.split("_PolygonIndex_")[1])].borderWidth;n.children[r].setAttribute("stroke-width",(s/o).toString())}else{var d=void 0,p=0,h=a.layersCollection[i].shapeSettings.borderWidthValuePath,m=a.layersCollection[i].shapeSettings.border.width,c=a.layersCollection[i].shapeSettings.circleRadius;d=a.layersCollection[i].shapeSettings.borderWidthValuePath&&null!==(p=Me(a.layersCollection[i].dataSource,a.layersCollection[i].layerData[l].property,a.layersCollection[i].shapeDataPath,a.layersCollection[i].shapePropertyPath,a.layersCollection[i]))&&a.layersCollection[i].dataSource[p][h]?a.layersCollection[i].dataSource[p][h]:(0,t.isNullOrUndefined)(m)?0:m,n.setAttribute("stroke-width",(d/o).toString()),(e.id.indexOf("_Point")>-1||e.id.indexOf("_MultiPoint")>-1)&&n.setAttribute("r",(c/o).toString())}}function rt(e,t,i,o){for(var a,n=0;n<e.childElementCount;n++)if("path"===(a=e.childNodes[n]).tagName){var l=o.layersCollection[t].navigationLineSettings[parseFloat(a.id.split("_NavigationIndex_")[1].split("_")[0])].width;a.setAttribute("stroke-width",(l/i).toString())}}function st(e){for(var t=[],i=e.touches,o=0;o<i.length;o++)t.push({pageX:i[o].pageX,pageY:i[o].pageY});return t}function dt(e,t){var i=pt(e[0],e[1]);return pt(t[0],t[1])/i}function pt(e,t){var i=e.pageX-t.pageX,o=e.pageY-t.pageY;return Math.sqrt(i*i+o*o)}function ht(e,t){var i=t.element.getBoundingClientRect(),o=i.top+document.defaultView.pageXOffset,a=i.left+document.defaultView.pageYOffset;return Array.prototype.slice.call(e).map((function(e){return{x:e.pageX-a,y:e.pageY-o}}))}function mt(e){return{x:e.map((function(e){return e.x})).reduce(ct)/e.length,y:e.map((function(e){return e.y})).reduce(ct)/e.length}}function ct(e,t){return e+t}function ut(e,t,i,o,a,n,l){var r=0,s=l.previousPoint,d=l.previousScale,p=a-d,h=new j(0,0),m=1;if(a!==d){var c=function(e,t){return e.x===t.x?null:(t.y-e.y)/(t.x-e.x)}(s,o),u=function(e,t){return null===t?e.x:e.y-t*e.x}(s,c),g=o.x-s.x,y=o.y-s.y;gt(e,t,i,(function(e){e.timeStamp>e.delay&&(r=(e.timeStamp-e.delay)/e.duration,m=d+r*p,h.x=s.x+r*g/(m/a),h.y=null==c?s.y+r*y:c*h.x+u,e.element.setAttribute("transform","scale( "+m+" ) translate( "+h.x+" "+h.y+" )"),l.translatePoint=h,l.scale=m,l.zoomModule.processTemplate(o.x,o.y,m,l))}),(function(){l.translatePoint=o,l.scale=a,e.setAttribute("transform","scale( "+a+" ) translate( "+o.x+" "+o.y+" )"),l.zoomModule.processTemplate(o.x,o.y,a,l)}))}else e.setAttribute("transform","scale( "+a+" ) translate( "+o.x+" "+o.y+" )")}function gt(e,i,o,a,n){var l,r=this,s=null;o="Disable"===t.animationMode?0:o;var d=function(t){s||(s=t);var i=t-s;i<o?(a.call(r,{element:e,delay:0,timeStamp:i,duration:o}),window.requestAnimationFrame(d)):(window.cancelAnimationFrame(l),n.call(r,{element:e}),e.id.indexOf("Marker")>-1&&(Ae(e.id.split("_Layer")[0]+"_Markers_Group").style.cssText="visibility:visible"))};l=window.requestAnimationFrame(d)}var yt,ft,bt,vt,St,xt=function(e,t,i,o,a){this.dataOptions=e,this.type=t||"GET",this.async=i||!0,this.contentType=o,this.sendData=a};function Ot(e,t,i,o){var a=0,n=e.getAttribute("transform").split(" ");2===n.length&&(n[2]=n[1].split(")")[0],n[1]=n[0].split("(")[1]);var l=new j(parseInt(n[1],10),parseInt(n[2],10)),r=o.x-l.x,s=o.y-l.y,d=new j(0,0);gt(e,0,i,(function(e){e.timeStamp>e.delay&&(a=(e.timeStamp-e.delay)/e.duration,d.x=l.x+a*r,d.y=l.y+a*s,e.element.setAttribute("transform","translate( "+d.x+" "+d.y+" )"))}),(function(){e.setAttribute("transform","translate( "+o.x+" "+o.y+" )")}))}function Ct(e,i){var o=(0,t.isNullOrUndefined)(i.shouldZoomPreviousFactor)?null:i.shouldZoomPreviousFactor,a=(0,t.isNullOrUndefined)(i.shouldZoomCurrentFactor)?null:i.shouldZoomCurrentFactor;(0,t.isNullOrUndefined)(a)?!(0,t.isNullOrUndefined)(o)&&(0,t.isNullOrUndefined)(a)&&i.shouldZoomPreviousFactor!==e?i.shouldZoomCurrentFactor=e:i.shouldZoomPreviousFactor=e:(i.shouldZoomCurrentFactor=null,i.shouldZoomPreviousFactor=null)}function Mt(e,t,i,o,a,n,l,r){var s,d,p=l.zoomSettings.maxZoom,h=Math.sin(t*Math.PI/180),m=Math.log((1+h)/(1-h))/2,c=Math.max(Math.min(m,Math.PI),-Math.PI)/2,u=Math.sin(e*Math.PI/180),g=Math.log((1+u)/(1-u))/2,y=Math.max(Math.min(g,Math.PI),-Math.PI)/2;if(l.zoomNotApplied&&!l.isTileMap){var f=Math.abs((l.baseMapBounds.latitude.max-l.baseMapBounds.latitude.min)/(t-e)),b=Math.abs((l.baseMapBounds.longitude.max-l.baseMapBounds.longitude.min)/(o-i));d=r?(f+b)/2:Math.min(f,b)}var v=(c-y)/Math.PI,S=o-i,x=(S<0?S+360:S)/360,O=Math.log(n/256/v)/Math.LN2,C=Math.log(a/256/x)/Math.LN2,M=l.zoomNotApplied&&!l.isTileMap?d:r&&!l.isTileMap?(O+C)/2:Math.min(O,C);return s=Math.min(M,p),s=l.isTileMap||!l.zoomNotApplied?Math.floor(s):s,l.isTileMap||Ct(s,l),s}function _t(e){var i,o=(0,t.isNullOrUndefined)(e.result)?e.actual:e.result;return(0,t.isNullOrUndefined)(o.length)?(0,t.isNullOrUndefined)(o.Items)||(i=o.Items):i=o,i}!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:null,fontWeight:"Medium",color:"#000000",fontStyle:"Medium",fontFamily:"Roboto, Noto, Sans-serif"}}(yt||(yt={})),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"}}(ft||(ft={})),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"}}(bt||(bt={})),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:null,fontWeight:"Medium",color:"#000000",fontStyle:"Medium",fontFamily:"Roboto, Noto, Sans-serif"}}(vt||(vt={})),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"}}(St||(St={}));var Lt=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])},e(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),Pt=function(e,t,i,o){var a,n=arguments.length,l=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(a=e[r])&&(l=(n<3?a(l):n>3?a(t,i,l):a(t,i))||l);return n>3&&l&&Object.defineProperty(t,i,l),l},wt=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Lt(i,e),Pt([(0,t.Property)("")],i.prototype,"content",void 0),Pt([(0,t.Property)("0px")],i.prototype,"x",void 0),Pt([(0,t.Property)("0px")],i.prototype,"y",void 0),Pt([(0,t.Property)("None")],i.prototype,"verticalAlignment",void 0),Pt([(0,t.Property)("None")],i.prototype,"horizontalAlignment",void 0),Pt([(0,t.Property)("-1")],i.prototype,"zIndex",void 0),i}(t.ChildProperty),Tt=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Lt(i,e),Pt([(0,t.Property)("Start")],i.prototype,"position",void 0),Pt([(0,t.Property)("false")],i.prototype,"showArrow",void 0),Pt([(0,t.Property)(2)],i.prototype,"size",void 0),Pt([(0,t.Property)("black")],i.prototype,"color",void 0),Pt([(0,t.Property)(0)],i.prototype,"offSet",void 0),i}(t.ChildProperty),It=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Lt(i,e),Pt([(0,t.Property)(null)],i.prototype,"size",void 0),Pt([(0,t.Property)(null)],i.prototype,"color",void 0),Pt([(0,t.Property)("Roboto, Noto, Sans-serif")],i.prototype,"fontFamily",void 0),Pt([(0,t.Property)("Medium")],i.prototype,"fontWeight",void 0),Pt([(0,t.Property)("Medium")],i.prototype,"fontStyle",void 0),Pt([(0,t.Property)(1)],i.prototype,"opacity",void 0),i}(t.ChildProperty),Ft=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Lt(i,e),Pt([(0,t.Property)("transparent")],i.prototype,"fill",void 0),Pt([(0,t.Property)(null)],i.prototype,"color",void 0),Pt([(0,t.Property)(1)],i.prototype,"borderOpacity",void 0),Pt([(0,t.Property)(1)],i.prototype,"borderWidth",void 0),Pt([(0,t.Property)(null)],i.prototype,"borderColor",void 0),Pt([(0,t.Property)(null)],i.prototype,"radius",void 0),Pt([(0,t.Property)(null)],i.prototype,"selectionColor",void 0),Pt([(0,t.Property)(null)],i.prototype,"highlightColor",void 0),Pt([(0,t.Property)(5)],i.prototype,"padding",void 0),Pt([(0,t.Property)(1)],i.prototype,"opacity",void 0),Pt([(0,t.Property)(["ZoomIn","ZoomOut","Reset"])],i.prototype,"toolbarItems",void 0),i}(t.ChildProperty),kt=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Lt(i,e),Pt([(0,t.Property)(!0)],i.prototype,"visible",void 0),Pt([(0,t.Property)("white")],i.prototype,"fill",void 0),Pt([(0,t.Property)(1)],i.prototype,"borderOpacity",void 0),Pt([(0,t.Property)(1)],i.prototype,"borderWidth",void 0),Pt([(0,t.Property)("#707070")],i.prototype,"borderColor",void 0),Pt([(0,t.Property)("black")],i.prototype,"fontColor",void 0),Pt([(0,t.Property)("")],i.prototype,"fontFamily",void 0),Pt([(0,t.Property)("")],i.prototype,"fontStyle",void 0),Pt([(0,t.Property)("")],i.prototype,"fontWeight",void 0),Pt([(0,t.Property)("")],i.prototype,"fontSize",void 0),Pt([(0,t.Property)(1)],i.prototype,"fontOpacity",void 0),i}(t.ChildProperty),Nt=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Lt(i,e),Pt([(0,t.Property)("transparent")],i.prototype,"backgroundColor",void 0),Pt([(0,t.Property)(1)],i.prototype,"borderOpacity",void 0),Pt([(0,t.Property)(1)],i.prototype,"borderWidth",void 0),Pt([(0,t.Property)("transparent")],i.prototype,"borderColor",void 0),Pt([(0,t.Property)("Far")],i.prototype,"horizontalAlignment",void 0),Pt([(0,t.Property)("Near")],i.prototype,"verticalAlignment",void 0),Pt([(0,t.Property)("Horizontal")],i.prototype,"orientation",void 0),Pt([(0,t.Complex)({},Ft)],i.prototype,"buttonSettings",void 0),Pt([(0,t.Complex)({},kt)],i.prototype,"tooltipSettings",void 0),i}(t.ChildProperty),Et=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Lt(i,e),Pt([(0,t.Property)("")],i.prototype,"color",void 0),Pt([(0,t.Property)(0)],i.prototype,"width",void 0),Pt([(0,t.Property)(null)],i.prototype,"opacity",void 0),i}(t.ChildProperty),zt=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Lt(i,e),Pt([(0,t.Property)(null)],i.prototype,"latitude",void 0),Pt([(0,t.Property)(null)],i.prototype,"longitude",void 0),i}(t.ChildProperty),Bt=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Lt(i,e),Pt([(0,t.Property)(!1)],i.prototype,"visible",void 0),Pt([(0,t.Property)("")],i.prototype,"template",void 0),Pt([(0,t.Property)("")],i.prototype,"fill",void 0),Pt([(0,t.Complex)({color:null,width:1},Et)],i.prototype,"border",void 0),Pt([(0,t.Complex)({fontFamily:null,size:null,fontWeight:null},It)],i.prototype,"textStyle",void 0),Pt([(0,t.Property)(null)],i.prototype,"format",void 0),Pt([(0,t.Property)(null)],i.prototype,"valuePath",void 0),Pt([(0,t.Property)(2e3)],i.prototype,"duration",void 0),i}(t.ChildProperty),At=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Lt(i,e),Pt([(0,t.Property)(!1)],i.prototype,"visible",void 0),Pt([(0,t.Property)("")],i.prototype,"fill",void 0),Pt([(0,t.Complex)({color:null,width:1},Et)],i.prototype,"border",void 0),Pt([(0,t.Complex)({fontFamily:null,size:null,fontWeight:null},It)],i.prototype,"textStyle",void 0),Pt([(0,t.Property)(2e3)],i.prototype,"duration",void 0),i}(t.ChildProperty),Ut=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Lt(i,e),Pt([(0,t.Property)(10)],i.prototype,"left",void 0),Pt([(0,t.Property)(10)],i.prototype,"right",void 0),Pt([(0,t.Property)(10)],i.prototype,"top",void 0),Pt([(0,t.Property)(10)],i.prototype,"bottom",void 0),i}(t.ChildProperty),jt=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Lt(i,e),Pt([(0,t.Property)("#000000")],i.prototype,"color",void 0),Pt([(0,t.Property)(1)],i.prototype,"width",void 0),Pt([(0,t.Property)(1)],i.prototype,"opacity",void 0),i}(t.ChildProperty),Zt=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Lt(i,e),Pt([(0,t.Property)(!1)],i.prototype,"allowClustering",void 0),Pt([(0,t.Property)(!0)],i.prototype,"allowDeepClustering",void 0),Pt([(0,t.Complex)({color:"transparent",width:1},Et)],i.prototype,"border",void 0),Pt([(0,t.Property)("#D2691E")],i.prototype,"fill",void 0),Pt([(0,t.Property)(1)],i.prototype,"opacity",void 0),Pt([(0,t.Property)("Rectangle")],i.prototype,"shape",void 0),Pt([(0,t.Property)(12)],i.prototype,"width",void 0),Pt([(0,t.Property)(12)],i.prototype,"height",void 0),Pt([(0,t.Property)(new M(0,0))],i.prototype,"offset",void 0),Pt([(0,t.Property)("")],i.prototype,"imageUrl",void 0),Pt([(0,t.Property)("")],i.prototype,"dashArray",void 0),Pt([(0,t.Complex)({},It)],i.prototype,"labelStyle",void 0),Pt([(0,t.Property)(!1)],i.prototype,"allowClusterExpand",void 0),Pt([(0,t.Complex)({},jt)],i.prototype,"connectorLineSettings",void 0),i}(t.ChildProperty),Rt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Lt(t,e),t}(t.ChildProperty),Dt=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Lt(i,e),Pt([(0,t.Property)(null)],i.prototype,"from",void 0),Pt([(0,t.Property)(null)],i.prototype,"to",void 0),Pt([(0,t.Property)(null)],i.prototype,"value",void 0),Pt([(0,t.Property)(null)],i.prototype,"color",void 0),Pt([(0,t.Property)(null)],i.prototype,"minOpacity",void 0),Pt([(0,t.Property)(null)],i.prototype,"maxOpacity",void 0),Pt([(0,t.Property)(null)],i.prototype,"label",void 0),Pt([(0,t.Property)(!0)],i.prototype,"showLegend",void 0),i}(t.ChildProperty),Vt=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Lt(i,e),Pt([(0,t.Property)(null)],i.prototype,"latitude",void 0),Pt([(0,t.Property)(null)],i.prototype,"longitude",void 0),i}(t.ChildProperty),Ht=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Lt(i,e),Pt([(0,t.Property)(null)],i.prototype,"shapePath",void 0),Pt([(0,t.Property)(null)],i.prototype,"shapeValue",void 0),i}(t.ChildProperty),Gt=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Lt(i,e),Pt([(0,t.Property)(!1)],i.prototype,"enable",void 0),Pt([(0,t.Property)(null)],i.prototype,"fill",void 0),Pt([(0,t.Property)(1)],i.prototype,"opacity",void 0),Pt([(0,t.Property)(!1)],i.prototype,"enableMultiSelect",void 0),Pt([(0,t.Complex)({color:"transparent",width:0},Et)],i.prototype,"border",void 0),i}(t.ChildProperty),Wt=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Lt(i,e),Pt([(0,t.Property)(null)],i.prototype,"fill",void 0),Pt([(0,t.Property)(!1)],i.prototype,"enable",void 0),Pt([(0,t.Property)(1)],i.prototype,"opacity",void 0),Pt([(0,t.Complex)({color:"transparent",width:0},Et)],i.prototype,"border",void 0),i}(t.ChildProperty),qt=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Lt(i,e),Pt([(0,t.Property)(1)],i.prototype,"borderWidth",void 0),Pt([(0,t.Property)(1)],i.prototype,"borderOpacity",void 0),Pt([(0,t.Property)(1)],i.prototype,"opacity",void 0),Pt([(0,t.Property)("#FF471A")],i.prototype,"borderColor",void 0),Pt([(0,t.Property)("#FF471A")],i.prototype,"fill",void 0),Pt([(0,t.Property)([])],i.prototype,"points",void 0),Pt([(0,t.Property)("")],i.prototype,"tooltipText",void 0),Pt([(0,t.Property)("")],i.prototype,"tooltipTemplate",void 0),i}(t.ChildProperty),Xt=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Lt(i,e),Pt([(0,t.Collection)([],qt)],i.prototype,"polygons",void 0),Pt([(0,t.Complex)({},Gt)],i.prototype,"selectionSettings",void 0),Pt([(0,t.Complex)({},Wt)],i.prototype,"highlightSettings",void 0),Pt([(0,t.Complex)({},At)],i.prototype,"tooltipSettings",void 0),i}(t.ChildProperty),Yt=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Lt(i,e),Pt([(0,t.Property)(!1)],i.prototype,"visible",void 0),Pt([(0,t.Property)(1)],i.prototype,"width",void 0),Pt([(0,t.Property)(null)],i.prototype,"longitude",void 0),Pt([(0,t.Property)(null)],i.prototype,"latitude",void 0),Pt([(0,t.Property)("")],i.prototype,"dashArray",void 0),Pt([(0,t.Property)("black")],i.prototype,"color",void 0),Pt([(0,t.Property)(0)],i.prototype,"angle",void 0),Pt([(0,t.Complex)({showArrow:!1,position:"Start",size:5,color:"black"},Tt)],i.prototype,"arrowSettings",void 0),Pt([(0,t.Complex)({},Gt)],i.prototype,"selectionSettings",void 0),Pt([(0,t.Complex)({},Wt)],i.prototype,"highlightSettings",void 0),i}(t.ChildProperty),Jt=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Lt(i,e),Pt([(0,t.Complex)({},Et)],i.prototype,"border",void 0),Pt([(0,t.Property)(!1)],i.prototype,"visible",void 0),Pt([(0,t.Property)([])],i.prototype,"dataSource",void 0),Pt([(0,t.Property)()],i.prototype,"query",void 0),Pt([(0,t.Property)(1e3)],i.prototype,"animationDuration",void 0),Pt([(0,t.Property)(0)],i.prototype,"animationDelay",void 0),Pt([(0,t.Property)("")],i.prototype,"fill",void 0),Pt([(0,t.Property)(10)],i.prototype,"minRadius",void 0),Pt([(0,t.Property)(20)],i.prototype,"maxRadius",void 0),Pt([(0,t.Property)(1)],i.prototype,"opacity",void 0),Pt([(0,t.Property)(null)],i.prototype,"valuePath",void 0),Pt([(0,t.Property)("Circle")],i.prototype,"bubbleType",void 0),Pt([(0,t.Property)(null)],i.prototype,"colorValuePath",void 0),Pt([(0,t.Collection)([],Dt)],i.prototype,"colorMapping",void 0),Pt([(0,t.Complex)({},Bt)],i.prototype,"tooltipSettings",void 0),Pt([(0,t.Complex)({},Gt)],i.prototype,"selectionSettings",void 0),Pt([(0,t.Complex)({},Wt)],i.prototype,"highlightSettings",void 0),i}(t.ChildProperty),Qt=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Lt(i,e),Pt([(0,t.Property)("")],i.prototype,"text",void 0),Pt([(0,t.Property)("")],i.prototype,"description",void 0),i}(t.ChildProperty),Kt=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Lt(i,e),Pt([(0,t.Complex)({size:null,fontWeight:null,fontFamily:null},It)],i.prototype,"textStyle",void 0),Pt([(0,t.Property)("Center")],i.prototype,"alignment",void 0),i}(Qt),$t=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Lt(i,e),Pt([(0,t.Complex)({size:null,fontWeight:null,fontFamily:null},It)],i.prototype,"textStyle",void 0),Pt([(0,t.Property)("Center")],i.prototype,"alignment",void 0),Pt([(0,t.Complex)({},Kt)],i.prototype,"subtitleSettings",void 0),i}(Qt),ei=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Lt(i,e),Pt([(0,t.Property)(!1)],i.prototype,"enable",void 0),Pt([(0,t.Property)(!0)],i.prototype,"enablePanning",void 0),Pt([(0,t.Property)(!0)],i.prototype,"enableSelectionZooming",void 0),Pt([(0,t.Property)(!0)],i.prototype,"mouseWheelZoom",void 0),Pt([(0,t.Property)(!1)],i.prototype,"doubleClickZoom",void 0),Pt([(0,t.Property)(!0)],i.prototype,"pinchZooming",void 0),Pt([(0,t.Property)(!1)],i.prototype,"zoomOnClick",void 0),Pt([(0,t.Property)(1)],i.prototype,"zoomFactor",void 0),Pt([(0,t.Property)(10)],i.prototype,"maxZoom",void 0),Pt([(0,t.Property)(1)],i.prototype,"minZoom",void 0),Pt([(0,t.Property)(!1)],i.prototype,"shouldZoomInitially",void 0),Pt([(0,t.Property)(!0)],i.prototype,"resetToInitial",void 0),Pt([(0,t.Complex)({},Nt)],i.prototype,"toolbarSettings",void 0),i}(t.ChildProperty),ti=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Lt(i,e),Pt([(0,t.Property)(!1)],i.prototype,"enable",void 0),Pt([(0,t.Property)(!0)],i.prototype,"applyShapeSettings",void 0),Pt([(0,t.Property)(1)],i.prototype,"opacity",void 0),Pt([(0,t.Property)("")],i.prototype,"fill",void 0),Pt([(0,t.Complex)({color:"",width:0},Et)],i.prototype,"border",void 0),i}(t.ChildProperty),ii=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Lt(i,e),Pt([(0,t.Property)(!1)],i.prototype,"useMarkerShape",void 0),Pt([(0,t.Property)(!1)],i.prototype,"toggleVisibility",void 0),Pt([(0,t.Property)(!1)],i.prototype,"visible",void 0),Pt([(0,t.Property)("transparent")],i.prototype,"background",void 0),Pt([(0,t.Property)("Layers")],i.prototype,"type",void 0),Pt([(0,t.Property)(!1)],i.prototype,"invertedPointer",void 0),Pt([(0,t.Property)("After")],i.prototype,"labelPosition",void 0),Pt([(0,t.Property)("None")],i.prototype,"labelDisplayMode",void 0),Pt([(0,t.Property)("Circle")],i.prototype,"shape",void 0),Pt([(0,t.Property)("")],i.prototype,"width",void 0),Pt([(0,t.Property)("")],i.prototype,"height",void 0),Pt([(0,t.Complex)({fontFamily:null,fontWeight:null},It)],i.prototype,"textStyle",void 0),Pt([(0,t.Property)(15)],i.prototype,"shapeWidth",void 0),Pt([(0,t.Property)(15)],i.prototype,"shapeHeight",void 0),Pt([(0,t.Property)(10)],i.prototype,"shapePadding",void 0),Pt([(0,t.Complex)({color:null,width:0},Et)],i.prototype,"border",void 0),Pt([(0,t.Complex)({color:"#000000",width:0},Et)],i.prototype,"shapeBorder",void 0),Pt([(0,t.Complex)({},Qt)],i.prototype,"title",void 0),Pt([(0,t.Complex)({size:null,color:yt.legendTitleFont.color,fontStyle:yt.legendTitleFont.fontStyle,fontWeight:null,fontFamily:null},It)],i.prototype,"titleStyle",void 0),Pt([(0,t.Property)("Bottom")],i.prototype,"position",void 0),Pt([(0,t.Property)("Center")],i.prototype,"alignment",void 0),Pt([(0,t.Property)("None")],i.prototype,"orientation",void 0),Pt([(0,t.Property)({x:0,y:0})],i.prototype,"location",void 0),Pt([(0,t.Property)(null)],i.prototype,"fill",void 0),Pt([(0,t.Property)(1)],i.prototype,"opacity",void 0),Pt([(0,t.Property)("Default")],i.prototype,"mode",void 0),Pt([(0,t.Property)(null)],i.prototype,"showLegendPath",void 0),Pt([(0,t.Property)(null)],i.prototype,"valuePath",void 0),Pt([(0,t.Property)(!1)],i.prototype,"removeDuplicateLegend",void 0),Pt([(0,t.Complex)({},ti)],i.prototype,"toggleLegendSettings",void 0),i}(t.ChildProperty),oi=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Lt(i,e),Pt([(0,t.Property)(!1)],i.prototype,"visible",void 0),Pt([(0,t.Complex)({width:0,color:"transparent"},Et)],i.prototype,"border",void 0),Pt([(0,t.Property)("black")],i.prototype,"fill",void 0),Pt([(0,t.Property)(1)],i.prototype,"opacity",void 0),Pt([(0,t.Property)(5)],i.prototype,"rx",void 0),Pt([(0,t.Property)(5)],i.prototype,"ry",void 0),Pt([(0,t.Complex)({fontWeight:null},It)],i.prototype,"textStyle",void 0),Pt([(0,t.Property)("")],i.prototype,"labelPath",void 0),Pt([(0,t.Property)("None")],i.prototype,"smartLabelMode",void 0),Pt([(0,t.Property)("None")],i.prototype,"intersectionAction",void 0),Pt([(0,t.Property)("")],i.prototype,"template",void 0),Pt([(0,t.Property)(0)],i.prototype,"animationDuration",void 0),i}(t.ChildProperty),ai=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Lt(i,e),Pt([(0,t.Property)(null)],i.prototype,"fill",void 0),Pt([(0,t.Property)([])],i.prototype,"palette",void 0),Pt([(0,t.Property)(5)],i.prototype,"circleRadius",void 0),Pt([(0,t.Complex)({width:null,color:null},Et)],i.prototype,"border",void 0),Pt([(0,t.Property)("")],i.prototype,"dashArray",void 0),Pt([(0,t.Property)(1)],i.prototype,"opacity",void 0),Pt([(0,t.Property)(null)],i.prototype,"colorValuePath",void 0),Pt([(0,t.Property)(null)],i.prototype,"borderColorValuePath",void 0),Pt([(0,t.Property)(null)],i.prototype,"borderWidthValuePath",void 0),Pt([(0,t.Property)(null)],i.prototype,"valuePath",void 0),Pt([(0,t.Collection)([],Dt)],i.prototype,"colorMapping",void 0),Pt([(0,t.Property)(!1)],i.prototype,"autofill",void 0),i}(t.ChildProperty),ni=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Lt(i,e),Pt([(0,t.Complex)({color:"transparent",width:1},Et)],i.prototype,"border",void 0),Pt([(0,t.Property)(null)],i.prototype,"dashArray",void 0),Pt([(0,t.Property)(!1)],i.prototype,"visible",void 0),Pt([(0,t.Property)(!1)],i.prototype,"enableDrag",void 0),Pt([(0,t.Property)("#FF471A")],i.prototype,"fill",void 0),Pt([(0,t.Property)(10)],i.prototype,"height",void 0),Pt([(0,t.Property)(10)],i.prototype,"width",void 0),Pt([(0,t.Property)(1)],i.prototype,"opacity",void 0),Pt([(0,t.Property)(null)],i.prototype,"colorValuePath",void 0),Pt([(0,t.Property)(null)],i.prototype,"shapeValuePath",void 0),Pt([(0,t.Property)(null)],i.prototype,"imageUrlValuePath",void 0),Pt([(0,t.Property)("Balloon")],i.prototype,"shape",void 0),Pt([(0,t.Property)("")],i.prototype,"legendText",void 0),Pt([(0,t.Property)(new M(0,0))],i.prototype,"offset",void 0),Pt([(0,t.Property)("")],i.prototype,"imageUrl",void 0),Pt([(0,t.Property)(null)],i.prototype,"template",void 0),Pt([(0,t.Property)([])],i.prototype,"dataSource",void 0),Pt([(0,t.Property)()],i.prototype,"query",void 0),Pt([(0,t.Complex)({},Bt)],i.prototype,"tooltipSettings",void 0),Pt([(0,t.Property)(1e3)],i.prototype,"animationDuration",void 0),Pt([(0,t.Property)(0)],i.prototype,"animationDelay",void 0),Pt([(0,t.Complex)({},Gt)],i.prototype,"selectionSettings",void 0),Pt([(0,t.Complex)({},Wt)],i.prototype,"highlightSettings",void 0),Pt([(0,t.Property)(null)],i.prototype,"latitudeValuePath",void 0),Pt([(0,t.Property)(null)],i.prototype,"longitudeValuePath",void 0),Pt([(0,t.Collection)([],Vt)],i.prototype,"initialMarkerSelection",void 0),i}(t.ChildProperty),li=function(e){function t(t,i,o,a){return e.call(this,t,i,o,a)||this}return Lt(t,e),t}(ni),ri=function(e){function i(){var t=null!==e&&e.apply(this,arguments)||this;return t.isBaseLayer=!1,t}return Lt(i,e),Pt([(0,t.Property)(null)],i.prototype,"shapeData",void 0),Pt([(0,t.Property)()],i.prototype,"query",void 0),Pt([(0,t.Complex)({},ai)],i.prototype,"shapeSettings",void 0),Pt([(0,t.Property)([])],i.prototype,"dataSource",void 0),Pt([(0,t.Property)("Layer")],i.prototype,"type",void 0),Pt([(0,t.Property)("Geographic")],i.prototype,"geometryType",void 0),Pt([(0,t.Property)("")],i.prototype,"urlTemplate",void 0),Pt([(0,t.Property)(!0)],i.prototype,"visible",void 0),Pt([(0,t.Property)("name")],i.prototype,"shapeDataPath",void 0),Pt([(0,t.Property)("name")],i.prototype,"shapePropertyPath",void 0),Pt([(0,t.Property)(0)],i.prototype,"animationDuration",void 0),Pt([(0,t.Collection)([],li)],i.prototype,"markerSettings",void 0),Pt([(0,t.Complex)({},Zt)],i.prototype,"markerClusterSettings",void 0),Pt([(0,t.Complex)({},oi)],i.prototype,"dataLabelSettings",void 0),Pt([(0,t.Collection)([],Jt)],i.prototype,"bubbleSettings",void 0),Pt([(0,t.Collection)([],Yt)],i.prototype,"navigationLineSettings",void 0),Pt([(0,t.Complex)({},Xt)],i.prototype,"polygonSettings",void 0),Pt([(0,t.Complex)({},Bt)],i.prototype,"tooltipSettings",void 0),Pt([(0,t.Complex)({},Gt)],i.prototype,"selectionSettings",void 0),Pt([(0,t.Complex)({},Wt)],i.prototype,"highlightSettings",void 0),Pt([(0,t.Complex)({},ti)],i.prototype,"toggleLegendSettings",void 0),Pt([(0,t.Collection)([],Ht)],i.prototype,"initialShapeSelection",void 0),i}(t.ChildProperty),si=function(e,t,i,o,a,n,l){void 0===i&&(i=256),void 0===o&&(o=256),void 0===a&&(a=0),void 0===n&&(n=0),void 0===l&&(l=null),this.x=e,this.y=t,this.top=a,this.left=n,this.height=i,this.width=o,this.src=l},di=function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return Lt(i,e),Pt([(0,t.Property)(null)],i.prototype,"background",void 0),Pt([(0,t.Complex)({color:"transparent",width:1},Et)],i.prototype,"border",void 0),i}(t.ChildProperty),pi="load",hi="loaded",mi="click",ci="onclick",ui="rightClick",gi="doubleClick",yi="resize",fi="tooltipRender",bi="shapeSelected",vi="shapeHighlight",Si="mousemove",xi="mouseup",Oi="mousedown",Ci="layerRendering",Mi="shapeRendering",_i="markerRendering",Li="markerClusterRendering",Pi="markerClick",wi="markerDragStart",Ti="markerDragEnd",Ii="markerClusterClick",Fi="markerMouseMove",ki="markerClusterMouseMove",Ni="dataLabelRendering",Ei="bubbleRendering",zi="bubbleClick",Bi="bubbleMouseMove",Ai="animationComplete",Ui="legendRendering",ji="annotationRendering",Zi="itemSelection",Ri="panComplete",Di="zoomComplete",Vi="itemHighlight",Hi="beforePrint",Gi="zoomIn",Wi="zoomOut",qi="pan",Xi=function(){function e(e){this.maps=e}return e.prototype.getBingMap=function(e,i,o,a,n,l){for(var r="",s=Math.min(this.maps.tileZoomLevel,parseInt(this.maxZoom,10));s>0;s--){var d=0,p=1<<s-1;e.x&p&&d++,e.y&p&&(d+=2),r=r+""+d}if((0,t.isNullOrUndefined)(l))return"";var h=l[Math.min(parseInt(r.substr(r.length-1,1),10),l.length)];return(n=n.replace("{quadkey}",r).replace("{subdomain}",h))+"&mkt="+a+"&ur=IN&Key="+i},e.prototype.destroy=function(){this.maps=null,this.subDomains=[]},e}(),Yi=function(){function e(e){}return e.prototype.getShapeColorMapping=function(e,i,o){var a=e.colorValuePath?e.colorValuePath:e.valuePath,n=(0,t.isNullOrUndefined)(a)?i[a]:a.indexOf(".")>-1?X(i,a):i[a],l=Number(n),r=this.getColorByValue(e.colorMapping,l,n);return(0,t.isNullOrUndefined)(r)?o:r},e.prototype.getColorByValue=function(e,i,o){if(isNaN(i)&&(0,t.isNullOrUndefined)(o))return null;for(var a,n="",l=0,r=e;l<r.length;l++){var s=r[l];(!(0,t.isNullOrUndefined)(s.from)&&!(0,t.isNullOrUndefined)(s.to)&&i>=s.from&&i<=s.to||s.value===o)&&(n="[object Array]"===Object.prototype.toString.call(s.color)?(0,t.isNullOrUndefined)(s.value)?this.getColor(s,i):s.color[0]:s.color),(i>=s.from&&i<=s.to||s.value===o)&&!(0,t.isNullOrUndefined)(s.minOpacity)&&!(0,t.isNullOrUndefined)(s.maxOpacity)&&n&&(a=this.deSaturationColor(s,n,i,o)),(""===n||(0,t.isNullOrUndefined)(n))&&(0,t.isNullOrUndefined)(s.from)&&(0,t.isNullOrUndefined)(s.to)&&(0,t.isNullOrUndefined)(s.minOpacity)&&(0,t.isNullOrUndefined)(s.maxOpacity)&&(0,t.isNullOrUndefined)(s.value)&&(n="[object Array]"===Object.prototype.toString.call(s.color)?s.color[0]:s.color)}return{fill:n||(e.length?null:o),opacity:a}},e.prototype.deSaturationColor=function(e,t,i,o){var a=1;(i>=e.from&&i<=e.to||e.value===o)&&(a=(isNaN(i)?e.from/(e.to-e.from):(i-e.from)/(e.to-e.from))*(e.maxOpacity-e.minOpacity)+e.minOpacity);return a},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,o="";return Number(t)===e.from?o=e.color[0]:Number(t)===e.to?o=e.color[e.color.length-1]:(i=this.getGradientColor(Number(t),e),o=this.rgbToHex(i.r,i.g,i.b)),o},e.prototype.getGradientColor=function(e,t){var i,o,a=t.from,n=t.to,l=0,r=n-a;if(l=(e-a)/r,t.color.length<=2)i="#"===t.color[0].charAt(0)?t.color[0]:this._colorNameToHex(t.color[0]),o="#"===t.color[t.color.length-1].charAt(0)?t.color[t.color.length-1]:this._colorNameToHex(t.color[t.color.length-1]);else{i="#"===t.color[0].charAt(0)?t.color[0]:this._colorNameToHex(t.color[0]),o="#"===t.color[t.color.length-1].charAt(0)?t.color[t.color.length-1]:this._colorNameToHex(t.color[t.color.length-1]);for(var s=r/(t.color.length-1),d=t.color.length-1,p=[],h={},m=1;m<d;m++)h={b:a+m*s,color:t.color[m]},p.push(h);for(var c=0;c<p.length;c++)a<=e&&e<=p[c].b&&0===c?(o="#"===p[c].color.charAt(0)?p[c].color:this._colorNameToHex(p[c].color),l=e<p[c].b?1-Math.abs((e-p[c].b)/s):(e-p[c].b)/s):p[c].b<=e&&e<=n&&c===p.length-1&&(i="#"===p[c].color.charAt(0)?p[c].color:this._colorNameToHex(p[c].color),l=e<p[c].b?1-Math.abs((e-p[c].b)/s):(e-p[c].b)/s),c!==p.length-1&&c<p.length&&p[c].b<=e&&e<=p[c+1].b&&(i="#"===p[c].color.charAt(0)?p[c].color:this._colorNameToHex(p[c].color),o="#"===p[c+1].color.charAt(0)?p[c+1].color:this._colorNameToHex(p[c+1].color),l=Math.abs(e-p[c+1].b)/s)}return this.getPercentageColor(l,i,o)},e.prototype.getPercentageColor=function(e,t,i){var o=i.split("#")[1],a=t.split("#")[1],n=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)),r=this.getPercentage(e,parseInt(a.substr(4,2),16),parseInt(o.substr(4,2),16));return new k(n,l,r)},e.prototype.getPercentage=function(e,t,i){var o=i-t;return Math.round(t+o*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}(),Ji=function(){function e(e){this.isMapCoordinates=!0,this.horizontalPan=!1,this.horizontalPanXCount=0,this.mapObject=e,this.ajaxModule=new t.Fetch,this.ajaxResponse=[]}return e.prototype.measureLayerPanel=function(){var e=this,i=this.mapObject.layersCollection,o=this.mapObject.mapAreaRect,a=Ae(this.mapObject.element.id+"_Secondary_Element");if(this.mapObject.isTileMap&&a){this.tileSvgObject=this.mapObject.renderer.createSvg({id:this.mapObject.element.id+"_Tile_SVG",width:o.width,height:o.height});var n=(0,t.createElement)("div",{id:this.mapObject.element.id+"_Tile_SVG_Parent"});n.style.cssText="position: absolute; height: "+o.height+"px; width: "+o.width+"px;",n.appendChild(this.tileSvgObject),a.appendChild(n)}this.layerGroup=this.mapObject.renderer.createGroup({id:this.mapObject.element.id+"_Layer_Collections","clip-path":"url(#"+this.mapObject.element.id+"_MapArea_ClipRect)"}),this.clipRectElement=this.mapObject.renderer.drawClipPath(new N(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(i,(function(t,i){e.currentLayer=t,e.processLayers(t,i)})),(0,t.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,i,o,a){e.currentFactor=e.calculateFactor(i),e.mapObject.defaultState=!(1!==e.mapObject.zoomSettings.zoomFactor&&!(0,t.isNullOrUndefined)(e.mapObject.tileZoomLevel)&&1!==e.mapObject.tileZoomLevel),(0,t.isNullOrUndefined)(e.mapObject.previousCenterLatitude)&&(0,t.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 n=new M(e.mapObject.centerPosition.longitude,e.mapObject.centerPosition.latitude),l=n;this.mapObject.isTileMap&&e.mapObject.markerModule&&e.mapObject.zoomSettings.enable&&(e.mapObject.markerModule.calculateZoomCenterPositionAndFactor(this.mapObject.layersCollection),(0,t.isNullOrUndefined)(this.mapObject.markerCenterLatitude)||(0,t.isNullOrUndefined)(this.mapObject.markerCenterLongitude)||e.mapObject.isZoomByPosition||(l=new M(e.mapObject.markerCenterLongitude,e.mapObject.markerCenterLatitude))),n=!e.mapObject.zoomSettings.shouldZoomInitially&&e.mapObject.centerPosition.longitude&&e.mapObject.centerPosition.latitude&&!e.mapObject.zoomPersistence&&e.mapObject.defaultState?new M(e.mapObject.centerPosition.longitude,e.mapObject.centerPosition.latitude):e.mapObject.zoomSettings.shouldZoomInitially&&e.mapObject.markerZoomedState&&!e.mapObject.zoomPersistence&&!(0,t.isNullOrUndefined)(e.mapObject.markerZoomCenterPoint)?new M(e.mapObject.markerZoomCenterPoint.longitude,e.mapObject.markerZoomCenterPoint.latitude):{x:null,y:null};var r=e.mapObject.zoomSettings.shouldZoomInitially&&!e.mapObject.isZoomByPosition?(0,t.isNullOrUndefined)(e.mapObject.markerZoomFactor)?1:e.mapObject.markerZoomFactor:e.mapObject.zoomSettings.zoomFactor;if(r=e.mapObject.enablePersistence?(0,t.isNullOrUndefined)(e.mapObject.mapScaleValue)?(0,t.isNullOrUndefined)(e.mapObject.markerZoomFactor)?e.mapObject.zoomSettings.zoomFactor:e.mapObject.markerZoomFactor:e.mapObject.mapScaleValue:r,r=(r=e.mapObject.zoomSettings.enable?r:e.mapObject.zoomSettings.zoomFactor)>0?r:1,e.mapObject.defaultState=1===r,!e.mapObject.markerZoomedState&&e.mapObject.zoomSettings.shouldZoomInitially&&1===e.mapObject.zoomSettings.zoomFactor&&(e.mapObject.defaultState=!0),(0,t.isNullOrUndefined)(e.mapObject.tileZoomLevel))e.mapObject.tileZoomLevel=r,e.mapObject.previousZoomFactor=r;else if(this.mapObject.isReset&&1===e.mapObject.tileZoomLevel&&!e.mapObject.zoomSettings.shouldZoomInitially){var s=e.mapObject.tileZoomLevel;e.mapObject.tileZoomLevel=s}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?r:e.mapObject.previousZoomFactor!==e.mapObject.zoomSettings.zoomFactor?e.mapObject.zoomSettings.zoomFactor:e.mapObject.tileZoomLevel,e.mapObject.tileZoomLevel=1===r&&0===e.mapObject.zoomSettings.zoomFactor?r:e.mapObject.tileZoomLevel,!(0,t.isNullOrUndefined)(e.mapObject.tileTranslatePoint)&&(e.mapObject.markerZoomFactor!==e.mapObject.mapScaleValue||(0,t.isNullOrUndefined)(e.mapObject.markerZoomFactor)&&(0,t.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=r,(0,t.isNullOrUndefined)(e.mapObject.tileTranslatePoint)||(e.mapObject.tileTranslatePoint.x=0,e.mapObject.tileTranslatePoint.y=0));if(r<=1&&!(0,t.isNullOrUndefined)(e.mapObject.height)&&!e.mapObject.zoomSettings.shouldZoomInitially&&e.mapObject.tileZoomLevel===e.mapObject.tileZoomScale&&this.mapObject.initialCheck&&Be(this.mapObject),(0,t.isNullOrUndefined)(e.mapObject.centerLatOfGivenLocation)||(0,t.isNullOrUndefined)(e.mapObject.centerLongOfGivenLocation)||!e.mapObject.zoomNotApplied||((0,t.isNullOrUndefined)(l)||(l.y=e.mapObject.centerLatOfGivenLocation,l.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,l),this.mapObject.zoomSettings.resetToInitial&&this.mapObject.initialCheck&&!(0,t.isNullOrUndefined)(e.mapObject.height)&&this.mapObject.availableSize.height>512){this.mapObject.applyZoomReset=!0,this.mapObject.initialZoomLevel=Math.floor(this.mapObject.availableSize.height/512);var d=256*Math.pow(2,this.mapObject.initialZoomLevel);(0,t.isNullOrUndefined)(this.mapObject.initialTileTranslate)||(this.mapObject.initialTileTranslate.x=this.mapObject.availableSize.width/2-d/2,this.mapObject.initialTileTranslate.y=this.mapObject.availableSize.height/2-d/2+20)}if(e.generateTiles(e.mapObject.tileZoomLevel,e.mapObject.tileTranslatePoint,null,a),(0,t.isNullOrUndefined)(e.mapObject.previousZoomFactor)||e.mapObject.previousZoomFactor===e.mapObject.zoomSettings.zoomFactor||(e.mapObject.previousZoomFactor=e.mapObject.zoomSettings.zoomFactor),e.mapObject.polygonModule){var p=e.mapObject.polygonModule.polygonRender(this.mapObject,o,e.mapObject.tileZoomLevel);(0,t.isNullOrUndefined)(p)||e.layerObject.appendChild(p)}if(e.mapObject.navigationLineModule){var h=e.mapObject.navigationLineModule.renderNavigation(e.currentLayer,e.mapObject.tileZoomLevel,o);(0,t.isNullOrUndefined)(h)||e.layerObject.appendChild(h)}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,i){var o=this;if(this.layerObject=this.mapObject.renderer.createGroup({id:this.mapObject.element.id+"_LayerIndex_"+i}),!this.mapObject.enablePersistence){var a=this.mapObject.getModuleName()+this.mapObject.element.id;if(-1===navigator.userAgent.indexOf("Edge")){var n=void 0;try{n=window.localStorage}catch(e){n=null}!(0,t.isNullOrUndefined)(n)&&window.localStorage.getItem(a)&&window.localStorage.removeItem(a)}}var l={cancel:!1,name:Ci,index:i,layer:e,maps:this.mapObject,visible:e.visible};this.mapObject.trigger("layerRendering",l,(function(a){if(!l.cancel&&l.visible)if((0,t.isNullOrUndefined)(e.shapeData)&&!(0,t.isNullOrUndefined)(e.urlTemplate)&&""!==e.urlTemplate)if(!(0,t.isNullOrUndefined)(e.urlTemplate)&&e.urlTemplate.indexOf("quadkey")>-1){var n=new Xi(o.mapObject);o.bingMapCalculation(e,i,o,n)}else o.renderTileLayer(o,e,i);else if(!((0,t.isNullOrUndefined)(e.shapeData)||(0,t.isNullOrUndefined)(e.shapeData.geometries)&&(0,t.isNullOrUndefined)(e.shapeData.features))){var r=!(0,t.isNullOrUndefined)(e.shapeData.geometries)&&e.shapeData.geometries.length>0?e.shapeData.geometries:e.shapeData.features;e.layerData=[];var s=e.shapeData.bbox;!(0,t.isNullOrUndefined)(s)&&e.isBaseLayer?o.mapObject.baseMapBounds=new P({min:s[0][1],max:s[1][1]},{min:s[0][0],max:s[1][0]}):(0,t.isNullOrUndefined)(o.mapObject.baseMapBounds)&&!Te(r)&&o.calculateRectBounds(r),o.calculatePathCollection(i,r)}})),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,o){o.imageUrl=e.urlTemplate,o.subDomains=["t0","t1","t2","t3"],o.maxZoom="21",i.mapObject.bingMap=o,i.renderTileLayer(i,e,t,o),this.mapObject.arrangeTemplate(),this.mapObject.zoomModule&&this.mapObject.previousScale!==this.mapObject.scale&&this.mapObject.zoomModule.applyTransform(this.mapObject,!0)},e.prototype.bubbleCalculation=function(e,i){if(null!=e.dataSource&&null!=e)for(var o=e.dataSource,a=0;a<o.length;a++){var n=(0,t.isNullOrUndefined)(e.valuePath)?parseFloat(e.dataSource[a][e.valuePath]):e.valuePath.indexOf(".")>-1?Number(X(e.dataSource[a],e.valuePath)):parseFloat(e.dataSource[a][e.valuePath]);0!==a?n>i.max?i.max=n:n<i.min&&(i.min=n):i.max=i.min=n}},e.prototype.calculatePathCollection=function(e,i){var o=this;this.groupElements=[],Te(i)||(this.currentFactor=this.calculateFactor(this.currentLayer)),this.rectBounds=null;var a=this.currentLayer.shapeSettings;Array.prototype.forEach.call(i,(function(e){if(!(0,t.isNullOrUndefined)(e.geometry)||!(0,t.isNullOrUndefined)(e.coordinates)){var i=(0,t.isNullOrUndefined)(e.geometry)?e.type:e.geometry.type,a=(0,t.isNullOrUndefined)(e.geometry)?e.coordinates:e.geometry.coordinates,n=e.geometry,l=e.properties;o.generatePoints(i,a,n,l)}})),this.currentLayer.rectBounds=this.rectBounds,(0,t.isNullOrUndefined)(this.mapObject.baseMapRectBounds)&&this.currentLayer.isBaseLayer&&(this.mapObject.baseMapRectBounds=this.rectBounds);var n=a.palette.length>1?a.palette:function(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;case"fluent2":t=["#6200EE","#09AF74","#0076E5","#CB3587","#E7910F","#0364DE","#66CD15","#F3A93C","#107C10","#C19C00"];break;case"fluent2dark":case"fluent2highcontrast":t=["#9BB449","#2A72D5","#43B786","#3F579A","#584EC6","#E85F9C","#6E7A89","#EA6266","#0B6A0B","#C19C00"];break;default:t=["#B5E485","#7BC1E8","#DF819C","#EC9B79","#78D0D3","#D6D572","#9178E3","#A1E5B4","#87A4B4","#E4C16C"]}return t}(this.mapObject.theme),l=(0,t.createElement)("div",{id:this.mapObject.element.id+"_LayerIndex_"+e+"_Label_Template_Group",className:this.mapObject.element.id+"_template"});if(l.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 r=function(r){var d,p,h,m=void 0,c={color:a.border.color||s.mapObject.themeStyle.shapeBorderColor,width:a.border.width,opacity:a.border.opacity},u=s.currentLayer.layerData[r],g="",y=a.autofill?n[r%n.length]:a.fill||s.mapObject.themeStyle.shapeFill;null===a.colorValuePath||(0,t.isNullOrUndefined)(u.property)||(null!==(m=Me(s.currentLayer.dataSource,u.property,s.currentLayer.shapeDataPath,s.currentLayer.shapePropertyPath,s.currentLayer))&&0===a.colorMapping.length?y=s.currentLayer.shapeSettings.colorValuePath.indexOf(".")>-1?X(s.currentLayer.dataSource[m],a.colorValuePath):s.currentLayer.dataSource[m][a.colorValuePath]:u.property[a.colorValuePath]&&0===s.currentLayer.dataSource.length&&0===a.colorMapping.length&&(y=s.currentLayer.shapeSettings.colorValuePath.indexOf(".")>-1?X(u.property,a.colorValuePath):u.property[a.colorValuePath]),y=(0,t.isNullOrUndefined)(y)?a.fill||s.mapObject.themeStyle.shapeFill:y);var f=s.mapObject.element.id+"_LayerIndex_"+e+"_shapeIndex_"+r+"_dataIndex_"+m,b=s.getShapeColorMapping(s.currentLayer,u.property,y);y="[object Object]"!==Object.prototype.toString.call(b)||(0,t.isNullOrUndefined)(b.fill)?y:b.fill,(s.currentLayer.shapeSettings.borderColorValuePath||s.currentLayer.shapeSettings.borderWidthValuePath)&&null!==(m=Me(s.currentLayer.dataSource,u.property,s.currentLayer.shapeDataPath,s.currentLayer.shapePropertyPath,s.currentLayer))&&(s.currentLayer.dataSource[m][a.borderColorValuePath]&&(c.color=s.currentLayer.dataSource[m][a.borderColorValuePath]),s.currentLayer.dataSource[m][a.borderWidthValuePath]&&(c.width=s.currentLayer.dataSource[m][a.borderWidthValuePath]));var v="[object Object]"!==Object.prototype.toString.call(b)||(0,t.isNullOrUndefined)(b.opacity)?a.opacity:b.opacity,S={cancel:!1,name:Mi,index:r,data:s.currentLayer.dataSource?s.currentLayer.dataSource[m]:null,maps:s.mapObject,shape:a,fill:y,border:{width:c.width,color:c.color,opacity:c.opacity}},x=function(s){var m,b=(0,t.isNullOrUndefined)(u._isMultiPolygon)?(0,t.isNullOrUndefined)(u.type)?u[0].type:u.type:"MultiPolygon";if(b="Polygon"===b||"MultiPolygon"===b?"Polygon":b,s.cancel?(s.fill=y,s.border.color=a.border.color||o.mapObject.themeStyle.shapeBorderColor,s.border.width=a.border.width):(s.fill="#A6A6A6"===s.fill?s.shape.fill||o.mapObject.themeStyle.shapeFill:s.fill,s.border.color="transparent"===s.border.color?s.shape.border.color:s.border.color,s.border.width=0===s.border.width?s.shape.border.width:s.border.width,(0,t.isNullOrUndefined)(a.borderColorValuePath)&&(c.color=s.border.color),(0,t.isNullOrUndefined)(a.borderWidthValuePath)&&(c.width=s.border.width)),s.border.opacity=(0,t.isNullOrUndefined)(s.border.opacity)?v:s.border.opacity,o.groupElements.length<1)h=o.mapObject.renderer.createGroup({id:o.mapObject.element.id+"_LayerIndex_"+e+"_"+b+"_Group",transform:""}),o.groupElements.push(h);else for(var S=0;S<o.groupElements.length;S++){var x=o.groupElements[S];if(x.id.indexOf(b)>-1){h=x;break}if(S>=o.groupElements.length-1){h=o.mapObject.renderer.createGroup({id:o.mapObject.element.id+"_LayerIndex_"+e+"_"+b+"_Group"}),o.groupElements.push(h);break}}switch(b){case"Polygon":u._isMultiPolygon?g=o.generateMultiPolygonPath(u):(g+="M"+u[0].point.x+" "+u[0].point.y,u.map((function(e){g+=" L "+e.point.x+" "+e.point.y}))),(g+=" z ").length>3&&(d=new F(f,s.fill,s.border.width,s.border.color,v,s.border.opacity,a.dashArray,g),m=o.mapObject.renderer.drawPath(d));break;case"LineString":u.map((function(e,t){g+=0===t?"M "+e.point.x+" "+e.point.y:"L"+e.point.x+" , "+e.point.y+" "})),g.length>3&&(d=new F(f,"transparent",(0,t.isNullOrUndefined)(s.border.width)?1:s.border.width,(0,t.isNullOrUndefined)(s.fill)?s.border.color:s.fill,v,s.border.opacity,a.dashArray,g),m=o.mapObject.renderer.drawPath(d));break;case"MultiLineString":u.map((function(e){e.map((function(e,t){g+=0===t?"M "+e.point.x+" "+e.point.y:"L"+e.point.x+" , "+e.point.y+" "}))})),g.length>3&&(d=new F(f,"transparent",(0,t.isNullOrUndefined)(s.border.width)?1:s.border.width,(0,t.isNullOrUndefined)(s.fill)?s.border.color:s.fill,v,s.border.opacity,a.dashArray,g),m=o.mapObject.renderer.drawPath(d));break;case"Point":var O=u.point,C="SubLayer"!==o.mapObject.layers[e].type?a.circleRadius:a.circleRadius/(o.mapObject.isTileMap?o.mapObject.scale:o.currentFactor);p=new E(f,s.fill,s.border,v,O.x,O.y,C,a.dashArray),m=o.mapObject.renderer.drawCircle(p);break;case"MultiPoint":u.map((function(t,i){var n=t.point,l="SubLayer"!==o.mapObject.layers[e].type?a.circleRadius:a.circleRadius/(o.mapObject.isTileMap?o.mapObject.scale:o.currentFactor);p=new E(f+"_multiLine_"+i,s.fill,s.border,v,n.x,n.y,l,a.dashArray),m=o.mapObject.renderer.drawCircle(p),o.pathAttributeCalculate(h,m,b,u)}));break;case"Path":g=u.point,d=new F(f,s.fill,s.border.width,s.border.color,v,s.border.opacity,a.dashArray,g),m=o.mapObject.renderer.drawPath(d)}(0,t.isNullOrUndefined)(m)||"MultiPoint"===b||o.pathAttributeCalculate(h,m,b,u),r===o.currentLayer.layerData.length-1&&o.layerFeatures(e,n,i,l)};x.bind(s),s.mapObject.trigger("shapeRendering",S,x)},s=this,d=0;d<this.currentLayer.layerData.length;d++)r(d);else this.layerFeatures(e,n,i,l)},e.prototype.pathAttributeCalculate=function(e,i,o,a){for(var n,l="[object Array]"===Object.prototype.toString.call(this.currentLayer.shapePropertyPath)?this.currentLayer.shapePropertyPath:[this.currentLayer.shapePropertyPath],r=0;r<l.length;r++)if(!(0,t.isNullOrUndefined)(a.property)){n=l[r];break}i.setAttribute("aria-label",(0,t.isNullOrUndefined)(a.property)?"":a.property[n]),this.currentLayer.selectionSettings.enable||this.currentLayer.highlightSettings.enable?(i.tabIndex=this.mapObject.tabIndex,i.setAttribute("role","button"),i.style.cursor=this.currentLayer.highlightSettings.enable&&!this.currentLayer.selectionSettings.enable?"default":"pointer"):i.setAttribute("role","region"),"LineString"!==o&&"MultiLineString"!==o||(i.style.cssText="outline:none"),ae(this.mapObject.selectedElementId,this.mapObject.shapeSelectionClass,i,"ShapeselectionMapStyle"),this.mapObject.legendSettings.toggleLegendSettings.enable&&"Layers"===this.mapObject.legendSettings.type&&ne(this.mapObject.toggledElementId,i,this.mapObject.legendSettings.toggleLegendSettings.applyShapeSettings?this.currentLayer.shapeSettings:this.mapObject.legendSettings.toggleLegendSettings),e.appendChild(i)},e.prototype.layerFeatures=function(e,i,o,a){var n,l=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,s=this.currentLayer.bubbleSettings.length,d=function(o){r=p.currentLayer.bubbleSettings[o],n=p.mapObject.renderer.createGroup({id:p.mapObject.element.id+"_LayerIndex_"+e+"_bubble_Group_"+o});var a={min:0,max:0};p.bubbleCalculation(r,a);var s=r.dataSource;p.mapObject.bubbleModule.bubbleCollection=[],!(0,t.isNullOrUndefined)(s)&&s.length>0&&(s.map((function(t,s){l.renderBubble(l.currentLayer,t,i[s%i.length],a,o,s,n,e,r)})),p.groupElements.push(n))},p=this,h=0;h<s;h++)d(h);this.mapObject.markerModule&&!this.mapObject.isTileMap&&this.mapObject.zoomSettings.enable&&this.mapObject.markerModule.calculateZoomCenterPositionAndFactor(this.mapObject.layersCollection);var m=this.mapObject.renderer.createGroup({id:this.mapObject.element.id+"_LayerIndex_"+e+"_dataLableIndex_Group"});if(m.style.pointerEvents="none",this.mapObject.dataLabelModule&&this.currentLayer.dataLabelSettings.visible){var c=[];Array.prototype.forEach.call(o,(function(t,i){l.renderLabel(l.currentLayer,e,t,m,i,a,c)})),this.groupElements.push(m)}this.mapObject.navigationLineModule&&this.groupElements.push(this.mapObject.navigationLineModule.renderNavigation(this.currentLayer,this.currentFactor,e)),(0,t.isNullOrUndefined)(this.groupElements)||(0,t.isNullOrUndefined)(this.layerObject)||this.groupElements.map((function(e){(0,t.isNullOrUndefined)(e)||l.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,o,a,n,l){this.mapObject.dataLabelModule.renderLabel(e,t,i,e.layerData,o,n,a,l)},e.prototype.generateMultiPolygonPath=function(e){for(var t="",i=0;i<e.length;i++)t+="M"+e[i][0].point.x+" "+e[i][0].point.y,e[i].map((function(e){t+=" L "+e.point.x+" "+e.point.y}));return t},e.prototype.renderBubble=function(e,i,o,a,n,l,r,s,d){if((0,t.isNullOrUndefined)(this.mapObject.bubbleModule)||!d.visible)return null;o=d.fill?d.fill:o,this.mapObject.bubbleModule.id=this.mapObject.element.id+"_LayerIndex_"+s+"_BubbleIndex_"+n+"_dataIndex_"+l,this.mapObject.bubbleModule.renderBubble(d,i,o,a,n,l,s,e,r,this.mapObject.bubbleModule.id)},e.prototype.getShapeColorMapping=function(e,i,o){if(o=o||e.shapeSettings.fill,0===e.shapeSettings.colorMapping.length&&(0,t.isNullOrUndefined)(e.dataSource))return o;var a=Me(e.dataSource,i,e.shapeDataPath,e.shapePropertyPath),n=new Yi(this.mapObject);return(0,t.isNullOrUndefined)(e.dataSource)||(0,t.isNullOrUndefined)(e.dataSource[a])?o:n.getShapeColorMapping(e.shapeSettings,e.dataSource[a],o)},e.prototype.generatePoints=function(e,i,o,a){var n,l,r=this,s=[];switch(e.toLowerCase()){case"polygon":(s=this.calculatePolygonBox(i[0])).length>0&&(s.property=a,s.type=e,s._isMultiPolygon=!1,this.currentLayer.layerData.push(s));break;case"multipolygon":for(var d=[],p=0;p<i.length;p++)for(var h=0;h<i[p].length;h++)(s=this.calculatePolygonBox(i[p][h])).length>0&&d.push(s);d.property=a,d.type=e,d._isMultiPolygon=!0,this.currentLayer.layerData.push(d);break;case"linestring":var m=(0,t.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;i.map((function(e){n=e[1],l=e[0];var t=c(n,l,r.currentFactor,r.currentLayer,r.mapObject);r.calculateBox(t,m),s.push({point:t,lat:n,lng:l})})),s.property=a,s.type=e,this.currentLayer.layerData.push(s);break;case"multilinestring":var u=(0,t.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,g=[];i.map((function(e){s=[],e.map((function(e){n=e[1],l=e[0];var t=c(n,l,r.currentFactor,r.currentLayer,r.mapObject);r.calculateBox(t,u),s.push({point:t,lat:n,lng:l})})),g.push(s)})),g.property=a,g.type=e,this.currentLayer.layerData.push(g);break;case"point":var y=((0,t.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;n=i[1],l=i[0];var f=c(n,l,this.currentFactor,this.currentLayer,this.mapObject);this.calculateBox(f,y),this.currentLayer.layerData.push({point:f,type:e,lat:n,lng:l,property:a});break;case"multipoint":var b=((0,t.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;s=[],i.map((function(e){n=e[1],l=e[0];var t=c(n,l,r.currentFactor,r.currentLayer,r.mapObject);r.calculateBox(t,b),s.push({point:t,lat:n,lng:l})})),s.property=a,s.type=e,this.currentLayer.layerData.push(s);break;case"path":this.currentLayer.layerData.push({point:o.d,type:e,property:a})}},e.prototype.calculateBox=function(e,i){(0,t.isNullOrUndefined)(this.rectBounds)?this.rectBounds={min:{x:e.x-i,y:e.y-i},max:{x:e.x+i,y:e.y+i}}:(this.rectBounds.min.x=Math.min(this.rectBounds.min.x,e.x-i),this.rectBounds.min.y=Math.min(this.rectBounds.min.y,e.y-i),this.rectBounds.max.x=Math.max(this.rectBounds.max.x,e.x+i),this.rectBounds.max.y=Math.max(this.rectBounds.max.y,e.y+i))},e.prototype.calculateFactor=function(e){var t,i,o,n=1,l=this.mapObject.baseMapBounds,r=new a(this.mapObject.mapAreaRect.width,this.mapObject.mapAreaRect.height-5);if(l){var s=c(l.latitude.min,l.longitude.min,null,e,this.mapObject),d=c(l.latitude.max,l.longitude.max,null,e,this.mapObject);i=d.y-s.y,o=d.x-s.x,0!==i&&0!==o||(o=r.width/2,i=r.height)}else i=o=500;return t=i<r.height?parseFloat(Math.abs(100*Number(r.height/Number(i.toString()+"e+1"))).toString().split(".")[0])/10:r.height/i,n=o<r.width?parseFloat(Math.abs(100*Number(r.width/Number(o.toString()+"e+1"))).toString().split(".")[0])/10:r.width/o,Math.min(n,t)},e.prototype.translateLayerElements=function(e){var i;if(this.mapObject.translateType="layer",(0,t.isNullOrUndefined)(this.mapObject.baseMapRectBounds)){if(this.mapObject.isTileMap&&!(0,t.isNullOrUndefined)(this.mapObject.scale))for(var o=0;o<e.childElementCount;o++)if(!((i=e.childNodes[o]).id.indexOf("_Markers_Group")>-1||i.id.indexOf("_bubble_Group")>-1||i.id.indexOf("_dataLableIndex_Group")>-1||i.id.indexOf("_line_Group")>-1)&&-1===i.id.indexOf("_Polygons_Group")){p="scale( "+this.mapObject.scale+" ) translate( "+this.mapObject.translatePoint.x+" "+this.mapObject.translatePoint.y+" ) ";i.setAttribute("transform",p)}}else{var a="Disable"===t.animationMode?0:0===this.currentLayer.animationDuration&&"Enable"===t.animationMode?1e3:this.currentLayer.animationDuration,n=0!==a||(0,t.isNullOrUndefined)(this.mapObject.zoomModule);this.mapObject.baseTranslatePoint=this.mapObject.zoomTranslatePoint;var l=void 0;l=this.mapObject.zoomSettings.zoomFactor>1&&!(0,t.isNullOrUndefined)(this.mapObject.zoomModule)?ze(this.mapObject,this.currentLayer,n):Ee(this.mapObject,this.currentLayer,n);var r=this.mapObject.previousScale=l.scale,s=this.mapObject.previousPoint=l.location;this.mapObject.baseTranslatePoint=this.mapObject.translatePoint=s,this.mapObject.baseScale=this.mapObject.scale=r;for(var d=0;d<e.childElementCount;d++)if(!((i=e.childNodes[d]).id.indexOf("_Markers_Group")>-1||i.id.indexOf("_bubble_Group")>-1||i.id.indexOf("_dataLableIndex_Group")>-1)){var p="scale( "+r+" ) translate( "+s.x+" "+s.y+" ) ";i.setAttribute("transform",p),a>0&&!(0,t.isNullOrUndefined)(this.mapObject.zoomModule)&&(l=this.mapObject.zoomSettings.zoomFactor>1?ze(this.mapObject,this.currentLayer):Ee(this.mapObject,this.currentLayer),this.mapObject.scale=l.scale,this.mapObject.zoomTranslatePoint=this.mapObject.translatePoint=l.location)}}},e.prototype.calculateRectBounds=function(e){var i=this;Array.prototype.forEach.call(e,(function(e){if(!(0,t.isNullOrUndefined)(e.geometry)||!(0,t.isNullOrUndefined)(e.coordinates)){var o=(0,t.isNullOrUndefined)(e.geometry)?e.type:e.geometry.type,a=(0,t.isNullOrUndefined)(e.geometry)?e.coordinates:e.geometry.coordinates;switch(o.toLowerCase()){case"polygon":i.calculateRectBox(a[0]);break;case"multipolygon":a.map((function(e){i.calculateRectBox(e[0])}));break;case"multilinestring":a.map((function(e){e.map((function(e,t){i.calculateRectBox(e,"multilinestring",0===t)}))}));break;case"linestring":a.map((function(e,t){i.calculateRectBox(e,"linestring",0===t)}));break;case"point":i.calculateRectBox(a,"point");break;case"multipoint":a.map((function(e,t){i.calculateRectBox(e,"multipoint",0===t)}))}}}))},e.prototype.calculatePolygonBox=function(e){var i=this,o=[],a=this.mapObject.baseMapBounds;return e.map((function(e){var n=e[1],l=e[0];if(l>=a.longitude.min&&l<=a.longitude.max&&n>=a.latitude.min&&n<=a.latitude.max){var r=c(n,l,i.currentFactor,i.currentLayer,i.mapObject);(0,t.isNullOrUndefined)(i.rectBounds)?i.rectBounds={min:{x:r.x,y:r.y},max:{x:r.x,y:r.y}}:(i.rectBounds.min.x=Math.min(i.rectBounds.min.x,r.x),i.rectBounds.min.y=Math.min(i.rectBounds.min.y,r.y),i.rectBounds.max.x=Math.max(i.rectBounds.max.x,r.x),i.rectBounds.max.y=Math.max(i.rectBounds.max.y,r.y)),o.push({point:r,lat:n,lng:l})}})),o},e.prototype.calculateRectBox=function(e,i,o){var a=this;"linestring"!==i&&"multilinestring"!==i&&"point"!==i&&"multipoint"!==i?Array.prototype.forEach.call(e,(function(e){(0,t.isNullOrUndefined)(a.mapObject.baseMapBounds)?a.mapObject.baseMapBounds=new P({min:e[1],max:e[1]},{min:e[0],max:e[0]}):(a.mapObject.baseMapBounds.latitude.min=Math.min(a.mapObject.baseMapBounds.latitude.min,e[1]),a.mapObject.baseMapBounds.latitude.max=Math.max(a.mapObject.baseMapBounds.latitude.max,e[1]),a.mapObject.baseMapBounds.longitude.min=Math.min(a.mapObject.baseMapBounds.longitude.min,e[0]),a.mapObject.baseMapBounds.longitude.max=Math.max(a.mapObject.baseMapBounds.longitude.max,e[0]))})):(o||"point"===i)&&(0,t.isNullOrUndefined)(this.mapObject.baseMapBounds)?this.mapObject.baseMapBounds=new P({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,i,o,a,n){var l,r,s=this.mapObject.locale,d=this.mapObject.availableSize;this.tiles=[],l=r=Math.pow(2,e);var p=0,h=0;i.x+256*l<d.width&&(p=i.x>0?Math.ceil(i.x/256):0,h=i.x+256*l<d.width?Math.ceil((d.width-(i.x+256*l))/256):0),l+=p+h,"Pan"===o?(l=this.horizontalPanXCount>=l?this.horizontalPanXCount:l,this.horizontalPan=!1):(this.horizontalPanXCount=l,this.horizontalPan=!0);var m=this.mapObject.layers[this.mapObject.baseLayerIndex];this.urlTemplate=m.urlTemplate;var c=Math.min(r,(-i.y+d.height)/256+1),u=Math.min(l,(-i.x+d.width+256*h)/256+1),g=-(i.x+256*p+256)/256,y=-(i.y+256)/256;a=a||this.bing||this.mapObject.bingMap;for(var f=Math.round(g);f<Math.round(u);f++)for(var b=Math.round(y);b<Math.round(c);b++){var v=256*f+i.x,S=256*b+i.y;if(v>-256&&v<=d.width&&S>-256&&S<d.height&&b>=0){var x=f;f<0&&(x=x%r+r);var O=new si(x%r,b);O.left=Math.round(v),O.top=Math.round(S),a&&!(0,t.isNullOrUndefined)(m.urlTemplate)&&""!==m.urlTemplate?O.src=a.getBingMap(O,"","",s,a.imageUrl,a.subDomains):O.src=this.urlTemplate.replace("level",e.toString()).replace("tileX",O.x.toString()).replace("tileY",O.y.toString()),this.tiles.push(O)}}(0,t.isNullOrUndefined)(o)||(o.indexOf("wheel")>1?(this.animateToZoomX=this.mapObject.availableSize.width/2-n.x-10,this.animateToZoomY=-n.y):(this.animateToZoomX=-10,this.animateToZoomY=10-(this.mapObject.availableSize.height/2+11.5)));for(var C=(0,t.extend)([],this.tiles,[],!0),M=0,_=this.mapObject.layers;M<_.length;M++){var L=_[M];if("SubLayer"===L.type&&L.visible&&((0,t.isNullOrUndefined)(L.shapeData)&&!(0,t.isNullOrUndefined)(L.urlTemplate)&&""!==L.urlTemplate))for(var P=0,w=C;P<w.length;P++){var T=w[P],I=(0,t.extend)({},T,{},!0);L.urlTemplate.indexOf("quadkey")?(a=new Xi(this.mapObject),I.src=a.getBingMap(I,"","",s,a.imageUrl,a.subDomains)):I.src=L.urlTemplate.replace("level",e.toString()).replace("tileX",T.x.toString()).replace("tileY",T.y.toString()),this.tiles.push(I)}}(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,i,o){var a,n=this,l=document.getElementById(this.mapObject.element.id+"_tile_parent"),r=document.getElementById(this.mapObject.element.id+"_tiles");(0,t.isNullOrUndefined)(e)||"Pan"===e?a=0:(this.tileAnimation(e,i,o),a="Disable"===t.animationMode?0:0===this.mapObject.layersCollection[0].animationDuration&&"Enable"===t.animationMode?1e3:this.mapObject.layersCollection[0].animationDuration),setTimeout((function(){var i;l&&(l.style.zIndex="1"),r&&(r.style.zIndex="0"),!document.getElementById(n.mapObject.element.id+"_animated_tiles")&&l?(i=(0,t.createElement)("div",{id:n.mapObject.element.id+"_animated_tiles"}),l.appendChild(i)):"Pan"!==e&&r&&l?(r.appendChild(l.children[0]),n.mapObject.isAddLayer||(0,t.isNullOrUndefined)(document.getElementById(n.mapObject.element.id+"_animated_tiles"))||(document.getElementById(n.mapObject.element.id+"_animated_tiles").id=n.mapObject.element.id+"_animated_tiles_old"),i=(0,t.createElement)("div",{id:n.mapObject.element.id+"_animated_tiles"}),l.appendChild(i)):i=l?l.children[0]:null;for(var o=0;o<n.tiles.length;o++){var a=n.tiles[o],s=null,d=n.mapObject.element.id;if("Pan"===e){var p=document.getElementById(d+"_tile_"+o),h=!1;(0,t.isNullOrUndefined)(p)?(h=!0,p=(0,t.createElement)("div",{id:d+"_tile_"+o}),s=(0,t.createElement)("img")):(p.style.removeProperty("display"),s=p.children[0]),!h&&s&&s.src!==a.src&&(s.src=a.src),p.style.position="absolute",p.style.left=a.left+"px",p.style.top=a.top+"px",p.style.height=a.height+"px",p.style.width=a.width+"px",h&&(s.setAttribute("height","256px"),s.setAttribute("width","256px"),s.setAttribute("src",a.src),s.setAttribute("alt",n.mapObject.getLocalizedLabel("ImageNotFound")),s.style.setProperty("user-select","none"),p.appendChild(s),i.appendChild(p))}else{(s=(0,t.createElement)("img")).setAttribute("height","256px"),s.setAttribute("width","256px"),s.setAttribute("src",a.src),s.style.setProperty("user-select","none"),s.setAttribute("alt",n.mapObject.getLocalizedLabel("ImageNotFound")),(p=(0,t.createElement)("div",{id:d+"_tile_"+o})).style.position="absolute",p.style.left=a.left+"px",p.style.top=a.top+"px",p.style.height=a.height+"px",p.style.width=a.width+"px",p.appendChild(s),i&&i.appendChild(p)}o===n.tiles.length-1&&document.getElementById(n.mapObject.element.id+"_animated_tiles_old")&&ke(n.mapObject.element.id+"_animated_tiles_old")}if(!(0,t.isNullOrUndefined)(n.mapObject.currentTiles))for(var m=n.tiles.length;m<i.childElementCount;m++){for(var c=!1,u=0;u<n.mapObject.currentTiles.childElementCount;u++)c||n.mapObject.currentTiles.children[u].id!==i.children[m].id||(c=!0);c?i.children[m].style.display="none":i.removeChild(i.children[m])}}),a)},e.prototype.tileAnimation=function(e,i,o){var a=document.getElementById(this.mapObject.element.id+"_tile_parent"),n=document.getElementById(this.mapObject.element.id+"_animated_tiles"),l=document.getElementById(this.mapObject.element.id+"_tiles"),r="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]);i=0,o=document.getElementById(this.mapObject.element.id+"_tile_parent").getClientRects()[0].height/4,r=0===e.indexOf("ZoomOut")?"0.5":"0.2"}(0,t.isNullOrUndefined)(n)||(n.style.transition="Disable"===t.animationMode?"0ms":0===this.mapObject.layersCollection[0].animationDuration&&"Enable"===t.animationMode?"1000ms":this.mapObject.layersCollection[0].animationDuration+"ms",n.style.transform="translate("+i+"px, "+o+"px) scale("+r+")")},e.prototype.renderGoogleMap=function(e,i){var o=this.mapObject;i=this.mapObject.tileZoomLevel;var a=256*Math.pow(2,i),n=o.mapAreaRect.width/2-a/2,l=o.mapAreaRect.height/2-a/2,r=0,s=0,d=g(new M(null,null),i,{x:n,y:l},this.isMapCoordinates);o.zoomModule&&o.zoomSettings.enable&&(r=o.zoomModule.mouseDownLatLong.x-o.zoomModule.mouseMoveLatLong.x,s=o.zoomModule.mouseDownLatLong.y-o.zoomModule.mouseMoveLatLong.y);var p,h,m=o.pointToLatLong(d.x-r,d.y-s);o.centerPosition.latitude=m.latitude,o.centerPosition.longitude=m.longitude;var c=(p=(0,t.isNullOrUndefined)(parseInt(o.width,10))?parseInt(o.width,10)-22:Math.round(o.mapAreaRect.width))>640?(p-640)/2:0,u=(h=(0,t.isNullOrUndefined)(parseInt(o.height,10))?parseInt(o.height,10)-22:Math.round(o.mapAreaRect.height))>640?(h-640)/2:0,y="https://maps.googleapis.com/maps/api/staticmap?size="+p+"x"+h+"&zoom="+i+"&center="+(o.centerPosition.latitude&&o.centerPosition.longitude?o.centerPosition.latitude.toString()+","+o.centerPosition.longitude.toString():"0,0")+"&maptype=roadmap&key="+e;document.getElementById(this.mapObject.element.id+"_tile_parent").innerHTML='<div id="'+this.mapObject.element.id+'_StaticGoogleMap"style="position:absolute; left:'+c+"px; top:"+u+'px"><img src="'+y+'"alt="'+this.mapObject.getLocalizedLabel("ImageNotFound")+'"></div>'},e.prototype.panTileMap=function(e,i,o){this.mapObject.tileZoomLevel<=this.mapObject.tileZoomScale&&this.mapObject.initialCheck&&(this.mapObject.tileZoomLevel=this.mapObject.tileZoomScale);var a,n,l=this.mapObject.tileZoomLevel,r=20,s=256*Math.pow(2,l),d=g(o,l,{x:a=e/2-s/2,y:n=i/2-s/2},this.isMapCoordinates);if(r=this.mapObject.zoomNotApplied?0:r,a-=d.x-e/2,n=n-(d.y-i/2)+r,this.mapObject.scale=Math.pow(2,l-1),((0,t.isNullOrUndefined)(this.mapObject.tileTranslatePoint)||0===this.mapObject.tileTranslatePoint.y&&0===this.mapObject.tileTranslatePoint.x||(0,t.isNullOrUndefined)(this.mapObject.previousTileWidth)||(0,t.isNullOrUndefined)(this.mapObject.previousTileHeight))&&(this.mapObject.previousTileWidth=e,this.mapObject.previousTileHeight=i),!(0,t.isNullOrUndefined)(this.mapObject.tileTranslatePoint)&&(0,t.isNullOrUndefined)(o.x)&&(1===this.mapObject.zoomSettings.zoomFactor||this.mapObject.zoomSettings.zoomFactor!==l||!this.mapObject.defaultState)&&(e!==this.mapObject.previousTileWidth||i!==this.mapObject.previousTileHeight)){var p=a-(this.mapObject.previousTileWidth/2-s/2),h=n-(this.mapObject.previousTileHeight/2-s/2+r);this.mapObject.tileTranslatePoint.x=this.mapObject.tileTranslatePoint.x+p,this.mapObject.tileTranslatePoint.y=this.mapObject.tileTranslatePoint.y+h}return(0,t.isNullOrUndefined)(this.mapObject.tileTranslatePoint)||this.mapObject.zoomNotApplied||(0===this.mapObject.tileTranslatePoint.x||this.mapObject.tileTranslatePoint.x===a||this.mapObject.centerPositionChanged||(a=this.mapObject.tileTranslatePoint.x),0===this.mapObject.tileTranslatePoint.y||this.mapObject.tileTranslatePoint.y===n||this.mapObject.centerPositionChanged||(n=this.mapObject.tileTranslatePoint.y)),this.mapObject.translatePoint=new M((a-.01*this.mapObject.zoomSettings.zoomFactor)/this.mapObject.scale,(n-.01*this.mapObject.zoomSettings.zoomFactor)/this.mapObject.scale),this.mapObject.previousTileWidth=e,this.mapObject.previousTileHeight=i,new M(a,n)},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,(0,t.isNullOrUndefined)(this.bing)||this.bing.destroy(),this.bing=null},e}(),Qi=function(){function e(e){this.map=e}return e.prototype.renderAnnotationElements=function(){var e=this,i=this.map.element.id+"_Secondary_Element",o=(0,t.createElement)("div",{id:this.map.element.id+"_Annotations_Group"});o.style.position="absolute",o.style.top="0px",o.style.left="0px",this.map.annotations.map((function(t,i){null!==t.content&&e.createAnnotationTemplate(o,t,i)})),o.childElementCount>0&&!(0,t.isNullOrUndefined)(Ae(i))&&Ae(i).appendChild(o),this.map.renderReactTemplates()},e.prototype.createAnnotationTemplate=function(e,i,o){var a,n,l,r,s=this,d=this.map,p=d.availableSize,h=(0,t.createElement)("div",{id:d.element.id+"_Annotation_"+o});h.style.cssText="position: absolute; z-index:"+i.zIndex+";";var m={cancel:!1,name:ji,content:i.content,annotation:i};this.map.trigger(ji,m,(function(e){if(!m.cancel)if((l=Ze(m.content,s.map))&&l(s.map,s.map,m.content,s.map.element.id+"_ContentTemplate_"+o).length)for(var i=(r=Array.prototype.slice.call(l(s.map,s.map,m.content,s.map.element.id+"_ContentTemplate_"+o))).length,a=0;a<i;a++)h.appendChild(r[a]);else h.appendChild((0,t.createElement)("div",{innerHTML:m.content}))}));var c=nt(h.cloneNode(!0),d.element),u=d.element.getBoundingClientRect(),g=d.svgObject.getBoundingClientRect();a=Math.abs(g.left-u.left),n=Math.abs(g.top-u.top);var y=i.x.indexOf("%")>-1?p.width/100*parseFloat(i.x):parseFloat(i.x),f=i.y.indexOf("%")>-1?p.height/100*parseFloat(i.y):parseFloat(i.y);switch(a="None"===i.horizontalAlignment?a+y:a,n="None"===i.verticalAlignment?n+f:n,i.verticalAlignment){case"Near":n+=f;break;case"Center":n=n+f+(g.height/2-c.height/2);break;case"Far":n=n+g.height+f-c.height}switch(i.horizontalAlignment){case"Near":a+=y;break;case"Center":a=a+y+(g.width/2-c.width/2);break;case"Far":a=a+g.width+y-c.width}h.style.left=a+"px",h.style.top=n+"px",e.appendChild(h)},e.prototype.getModuleName=function(){return"Annotations"},e.prototype.destroy=function(){this.map=null},e}(),Ki=l(74),$i=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])},e(t,i)};return function(t,i){function o(){this.constructor=t}e(t,i),t.prototype=null===i?Object.create(i):(o.prototype=i.prototype,new o)}}(),eo=function(e,t,i,o){var a,n=arguments.length,l=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,i,o);else for(var r=e.length-1;r>=0;r--)(a=e[r])&&(l=(n<3?a(l):n>3?a(t,i,l):a(t,i))||l);return n>3&&l&&Object.defineProperty(t,i,l),l},to=function(e){function o(i,o){var n=e.call(this,i,o)||this;return n.isTileMap=!1,n.isResize=!1,n.isReset=!1,n.baseSize=new a(0,0),n.translatePoint=new M(0,0),n.baseTranslatePoint=new M(0,0),n.zoomTranslatePoint=new M(0,0),n.markerZoomedState=!0,n.zoomPersistence=!1,n.defaultState=!0,n.centerPositionChanged=!1,n.isTileMapSubLayer=!1,n.markerNullCount=0,n.tileTranslatePoint=new M(0,0),n.baseTileTranslatePoint=new M(0,0),n.isDevice=!1,n.staticMapZoom=n.zoomSettings.enable?n.zoomSettings.zoomFactor:0,n.zoomNotApplied=!1,n.dataLabelShape=[],n.zoomShapeCollection=[],n.zoomLabelPositions=[],n.mouseDownEvent={x:null,y:null},n.mouseClickEvent={x:null,y:null},n.selectedElementId=[],n.selectedMarkerElementId=[],n.selectedBubbleElementId=[],n.selectedNavigationElementId=[],n.selectedPolygonElementId=[],n.selectedLegendElementId=[],n.legendSelectionCollection=[],n.shapeSelections=!0,n.legendSelection=!0,n.toggledLegendId=[],n.toggledElementId=[],n.checkInitialRender=!0,n.initialTileTranslate=new M(0,0),n.isMarkerZoomCompleted=!1,n.markerDragId="",n.initialCheck=!0,n.applyZoomReset=!1,n.markerClusterExpandCheck=!1,n.markerClusterExpand=!1,n.mouseMoveId="",n.shapeSelectionItem=[],n.markerDragArgument=null,(0,t.setValue)("mergePersistData",n.mergePersistMapsData,n),n}return $i(o,e),Object.defineProperty(o.prototype,"isShapeSelected",{get:function(){return this.mapSelect},enumerable:!0,configurable:!0}),o.prototype.mergePersistMapsData=function(){var e,i;try{i=window.localStorage}catch(e){i=null}if((0,t.isNullOrUndefined)(i)||(e=window.localStorage.getItem(this.getModuleName()+this.element.id)),!(0,t.isNullOrUndefined)(e)&&""!==e){var o=JSON.parse(e),a=Object.keys(o);this.isProtectedOnChange=!0;for(var n=0,l=a;n<l.length;n++){var r=l[n];"object"!=typeof this[r]||(0,t.isNullOrUndefined)(this[r])?this[r]=o[r]:(0,t.extend)(this[r],o[r])}this.isProtectedOnChange=!1}},o.prototype.getLocalizedLabel=function(e){return this.localeObject.getConstant(e)},o.prototype.preRender=function(){this.isDevice=t.Browser.isDevice,this.initPrivateVariable(),this.allowServerDataBinding=!1,this.unWireEVents(),this.wireEVents(),this.setCulture()},o.prototype.renderElements=function(){this.isDestroyed||(this.trigger(pi,{maps:this}),this.createSVG(),this.findBaseAndSubLayers(),!(0,t.isNullOrUndefined)(this.markerModule)&&this.markerModule.getMapsInstance()&&this.markerModule.initializeMarkerClusterList(),this.createSecondaryElement(),this.addTabIndex(),this.themeStyle=function(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",legendFontSize:"12px",fontWeight:"Medium",titleFontWeight:"Medium",zoomSelectionColor:"#e61576",shapeFill:"#A6A6A6",shapeBorderColor:"#000000",rectangleZoomFillColor:"#d3d3d3",rectangleZoomFillOpacity:.5,rectangleZoomBorderColor:"#009900",legendBorderColor:"#000000",legendBorderWidth:0,tooltipBorderColor:"transparent",zoomButtonRadius:30};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",legendFontSize:"12px",fontWeight:"Medium",labelFontFamily:"Roboto, Noto, Sans-serif",titleFontWeight:"Medium",zoomSelectionColor:"#e61576",shapeFill:"#A6A6A6",shapeBorderColor:"#000000",rectangleZoomFillColor:"#d3d3d3",rectangleZoomFillOpacity:.5,rectangleZoomBorderColor:"#009900",legendBorderColor:"#000000",legendBorderWidth:0,tooltipBorderColor:"transparent",zoomButtonRadius:30};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",shapeBorderColor:"#000000",rectangleZoomFillColor:"#d3d3d3",rectangleZoomFillOpacity:.5,rectangleZoomBorderColor:"#009900",legendBorderColor:"#000000",legendBorderWidth:0,tooltipBorderColor:"transparent",zoomButtonRadius:30};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",shapeBorderColor:"#000000",rectangleZoomFillColor:"#d3d3d3",rectangleZoomFillOpacity:.5,rectangleZoomBorderColor:"#009900",legendBorderColor:"#000000",legendBorderWidth:0,tooltipBorderColor:"transparent",zoomButtonRadius:30};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",shapeBorderColor:"#000000",rectangleZoomFillColor:"#d3d3d3",rectangleZoomFillOpacity:.5,rectangleZoomBorderColor:"#009900",legendBorderColor:"#000000",legendBorderWidth:0,tooltipBorderColor:"transparent",zoomButtonRadius:30};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",shapeBorderColor:"#000000",rectangleZoomFillColor:"#d3d3d3",rectangleZoomFillOpacity:.5,rectangleZoomBorderColor:"#009900",legendBorderColor:"#000000",legendBorderWidth:0,tooltipBorderColor:"transparent",zoomButtonRadius:30};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",shapeBorderColor:"#000000",rectangleZoomFillColor:"#d3d3d3",rectangleZoomFillOpacity:.5,rectangleZoomBorderColor:"#009900",legendBorderColor:"#000000",legendBorderWidth:0,tooltipBorderColor:"transparent",zoomButtonRadius:30};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",shapeBorderColor:"#000000",rectangleZoomFillColor:"#d3d3d3",rectangleZoomFillOpacity:.5,rectangleZoomBorderColor:"#009900",legendBorderColor:"#000000",legendBorderWidth:0,tooltipBorderColor:"transparent",zoomButtonRadius:30};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",shapeBorderColor:"#000000",rectangleZoomFillColor:"#d3d3d3",rectangleZoomFillOpacity:.5,rectangleZoomBorderColor:"#009900",legendBorderColor:"#000000",legendBorderWidth:0,tooltipBorderColor:"transparent",zoomButtonRadius:30};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",shapeBorderColor:"#000000",rectangleZoomFillColor:"#6750A4",rectangleZoomFillOpacity:.24,rectangleZoomBorderColor:"#6750A4",legendBorderColor:"#000000",legendBorderWidth:0,tooltipBorderColor:"transparent",zoomButtonRadius:30};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",shapeBorderColor:"#000000",rectangleZoomFillColor:"#D0BCFF",rectangleZoomFillOpacity:.24,rectangleZoomBorderColor:"#D0BCFF",legendBorderColor:"#000000",legendBorderWidth:0,tooltipBorderColor:"transparent",zoomButtonRadius:30};break;case"fluent2":t={backgroundColor:"transparent",areaBackgroundColor:"transparent",titleFontColor:"#242424",subTitleFontColor:"#242424",legendTitleFontColor:"#242424",legendTextColor:"#242424",dataLabelFontColor:"#242424",tooltipFontColor:"#242424",tooltipFillColor:"#FFFFFF",zoomFillColor:"#D1D1D1",fontFamily:"Segoe UI",fontSize:"10px",fontWeight:"400",titleFontSize:"14px",subTitleFontSize:"12px",legendFontSize:"12px",tooltipFillOpacity:1,tooltipTextOpacity:1,labelFontFamily:"Segoe UI",titleFontWeight:"600",zoomSelectionColor:"#242424",shapeFill:"#E6E6E6",shapeBorderColor:"#EBEBEB",rectangleZoomFillColor:"#B4D6FA",rectangleZoomFillOpacity:.25,rectangleZoomBorderColor:"#0F6CBD",legendBorderColor:"#000000",legendBorderWidth:0,tooltipBorderColor:"transparent",zoomButtonRadius:32};break;case"fluent2dark":t={backgroundColor:"transparent",areaBackgroundColor:"transparent",titleFontColor:"#FFFFFF",subTitleFontColor:"#FFFFFF",legendTitleFontColor:"#FFFFFF",legendTextColor:"#FFFFFF",dataLabelFontColor:"#FFFFFF",tooltipFontColor:"#FFFFFF",tooltipFillColor:"#292929",zoomFillColor:"#666",fontFamily:"Segoe UI",fontSize:"10px",fontWeight:"400",titleFontSize:"14px",subTitleFontSize:"12px",legendFontSize:"12px",tooltipFillOpacity:1,tooltipTextOpacity:1,labelFontFamily:"Segoe UI",titleFontWeight:"600",zoomSelectionColor:"#FFFFFF",shapeFill:"#333333",shapeBorderColor:"#000000",rectangleZoomFillColor:"#0E4775",rectangleZoomFillOpacity:.25,rectangleZoomBorderColor:"#0E4775",legendBorderColor:"#000000",legendBorderWidth:0,tooltipBorderColor:"transparent",zoomButtonRadius:32};break;case"fluent2highcontrast":t={backgroundColor:"transparent",areaBackgroundColor:"transparent",titleFontColor:"#FFFFFF",subTitleFontColor:"#FFFFFF",legendTitleFontColor:"#FFFFFF",legendTextColor:"#FFFFFF",dataLabelFontColor:"#FFFFFF",tooltipFontColor:"#FFFFFF",tooltipFillColor:"#000000",zoomFillColor:"#3FF23F",fontFamily:"Segoe UI",fontSize:"10px",fontWeight:"400",titleFontSize:"14px",subTitleFontSize:"12px",legendFontSize:"12px",tooltipFillOpacity:1,tooltipTextOpacity:1,labelFontFamily:"Segoe UI",titleFontWeight:"600",zoomSelectionColor:"#FFFFFF",zoomBorderColor:"#FFFFFF",shapeFill:"#292827",shapeBorderColor:"#292827",rectangleZoomFillColor:"#1AEBFF",rectangleZoomFillOpacity:.25,rectangleZoomBorderColor:"#1AEBFF",legendBorderColor:"#FFFFFF",legendBorderWidth:1,tooltipBorderColor:"#FFF",zoomButtonRadius:32};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",legendFontSize:"12px",fontWeight:"Medium",titleFontWeight:"Medium",zoomSelectionColor:"#e61576",shapeFill:"#A6A6A6",shapeBorderColor:"#000000",rectangleZoomFillColor:"#d3d3d3",rectangleZoomFillOpacity:.5,rectangleZoomBorderColor:"#009900",legendBorderColor:"#000000",legendBorderWidth:0,tooltipBorderColor:"transparent",zoomButtonRadius:30}}return t}(this.theme),this.renderBorder(),this.renderTitle(this.titleSettings,"title",null,null),this.renderArea(),this.processRequestJsonData(),this.renderComplete(),this.isAddLayer=!!this.isTileMap&&this.isAddLayer)},o.prototype.render=function(){this.renderElements()},o.prototype.processRequestJsonData=function(){var e,i,o=this,a=this.layersCollection.length-1;this.serverProcess={request:0,response:0},Array.prototype.forEach.call(this.layersCollection,(function(n,l){n.shapeData instanceof Ki.DataManager?(o.serverProcess.request++,i=n.shapeData,e=n.query instanceof Ki.Query?n.query:new Ki.Query,i.executeQuery(e).then((function(e){o.processResponseJsonData("DataManager",e,n,"ShapeData")}))):(n.shapeData instanceof xt||n.shapeData)&&((0,t.isNullOrUndefined)(n.shapeData.dataOptions)||o.processAjaxRequest(n,n.shapeData,"ShapeData"));n.dataSource instanceof Ki.DataManager&&(o.serverProcess.request++,i=n.dataSource,e=n.query instanceof Ki.Query?n.query:new Ki.Query,i.executeQuery(e).then((function(e){n.dataSource=_t(e)})));if(n.markerSettings.length>0)for(var r=function(t){n.markerSettings[t].dataSource instanceof Ki.DataManager&&(o.serverProcess.request++,i=n.markerSettings[t].dataSource,e=n.markerSettings[t].query instanceof Ki.Query?n.markerSettings[t].query:new Ki.Query,i.executeQuery(e).then((function(e){n.markerSettings[t].dataSource=_t(e)})))},s=0;s<n.markerSettings.length;s++)r(s);if(n.bubbleSettings.length>0){var d=function(t){n.bubbleSettings[t].dataSource instanceof Ki.DataManager&&(o.serverProcess.request++,i=n.bubbleSettings[t].dataSource,e=n.bubbleSettings[t].query instanceof Ki.Query?n.bubbleSettings[t].query:new Ki.Query,i.executeQuery(e).then((function(e){n.bubbleSettings[t].dataSource=_t(e)})))};for(s=0;s<n.bubbleSettings.length;s++)d(s)}(n.dataSource instanceof xt||!(0,t.isNullOrUndefined)(n.dataSource)&&!(0,t.isNullOrUndefined)(n.dataSource.dataOptions))&&o.processAjaxRequest(n,n.dataSource,"DataSource"),o.serverProcess.request===o.serverProcess.response&&a===l&&o.processResponseJsonData(null)}))},o.prototype.processAjaxRequest=function(e,i,o){var a=this;this.serverProcess.request++;var n=new t.Fetch(i.dataOptions,i.type,i.contentType);n.onSuccess=function(i){if((0,t.isNullOrUndefined)(i.type)||"application/octet-stream"!==i.type)a.processResponseJsonData("Fetch",i,e,o);else{var n=new FileReader,l=a;n.onload=function(){i=JSON.parse(n.result.toString()),l.processResponseJsonData("Fetch",i,e,o)},n.readAsText(i)}},n.send(i.sendData)},o.prototype.processResponseJsonData=function(e,i,o,a){if(this.serverProcess.response++,e&&("ShapeData"===a?o.shapeData="DataManager"===e?_t(i):i:o.dataSource="DataManager"===e?_t(i):i),(0,t.isNullOrUndefined)(e)||this.serverProcess.request!==this.serverProcess.response)(0,t.isNullOrUndefined)(e)&&this.renderMap();else{var n=this.layersCollection;this.layersCollection=[];for(var l=0;l<n.length;l++)n[l].isBaseLayer&&this.layersCollection.push(n[l]);for(var r=0;r<n.length;r++)n[r].isBaseLayer||this.layersCollection.push(n[r]);this.renderMap()}},o.prototype.renderMap=function(){this.legendModule&&this.legendSettings.visible&&this.legendModule.renderLegend(),this.createTile(),this.zoomSettings.enable&&this.zoomModule&&this.zoomModule.createZoomingToolbars(),(0,t.isNullOrUndefined)(this.dataLabelModule)||(this.dataLabelModule.dataLabelCollections=[]),this.mapLayerPanel.measureLayerPanel(),(0,t.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 i=this.layers[e].selectionSettings.enableMultiSelect;this.layers[e].selectionSettings.enableMultiSelect=i||!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=i,e===this.layers.length-1&&(this.checkInitialRender=!1)}if(!this.isResize)for(var n=0;n<this.layers[e].markerSettings.length;n++)if(this.layers[e].markerSettings[n].selectionSettings&&this.layers[e].markerSettings[n].selectionSettings.enable&&this.layers[e].markerSettings[n].initialMarkerSelection.length>0){var l=this.layers[e].markerSettings[n].initialMarkerSelection;for(a=0;a<l.length;a++)this.markerInitialSelection(e,n,this.layers[e].markerSettings[n],l[a].latitude,l[a].longitude)}}if(!(0,t.isNullOrUndefined)(document.getElementById(this.element.id+"_tile_parent"))){var r,s=this.svgObject.getBoundingClientRect(),d=document.getElementById(this.element.id),p=document.getElementById(this.element.id+"_tile_parent"),h=document.getElementById(this.element.id+"_tiles"),m=p.getBoundingClientRect(),c=void 0,u=void 0;u=parseFloat(p.style.left);var g=w(this.titleSettings.text,this.titleSettings.textStyle),y=w(this.titleSettings.subtitleSettings.text,this.titleSettings.subtitleSettings.textStyle);this.isTileMap&&this.isTileMapSubLayer&&"Bottom"===this.legendSettings.position&&this.legendSettings.visible?"Default"!==this.legendSettings.mode?r=0!==g.width&&0!==g.height?parseFloat(p.style.top)+y.height/2-this.legendModule.legendBorderRect.height/2:parseFloat(p.style.top)-this.mapAreaRect.y:(u=this.legendModule.legendBorderRect.x,r=0!==g.width&&0!==g.height?parseFloat(p.style.top)+y.height/2-this.legendModule.legendBorderRect.y:parseFloat(p.style.top)+y.height/2):(c=s.bottom-m.bottom-d.offsetTop,r=parseFloat(p.style.top)),r=c<=11?r:(0,t.isNullOrUndefined)(this.legendModule)||"Bottom"!==this.legendSettings.position?2*r:this.mapAreaRect.y,u=c<=11?u:(0,t.isNullOrUndefined)(this.legendModule)?2*u:u,p.style.top=r+"px",p.style.left=u+"px",h.style.top=r+"px",h.style.left=u+"px",!(0,t.isNullOrUndefined)(this.legendModule)&&this.legendModule.totalPages.length>0&&(p.style.height=h.style.height=this.legendModule.legendTotalRect.height+"px",p.style.width=h.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(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},o.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)},o.prototype.markerSelection=function(e,t,i,o){var a={color:e.border.color,width:e.border.width/t.scale,opacity:e.border.opacity},n={opacity:e.opacity,fill:e.fill,border:a,target:i.id,cancel:!1,data:o,maps:t};Re("MarkerselectionMap")?Xe("MarkerselectionMap","MarkerselectionMapStyle",n):document.body.appendChild(qe("MarkerselectionMap","MarkerselectionMapStyle",n)),(0===this.selectedMarkerElementId.length||e.enableMultiSelect)&&("g"===i.tagName?(i.children[0].setAttribute("class","MarkerselectionMapStyle"),this.selectedMarkerElementId.push(i.children[0].id)):(i.setAttribute("class","MarkerselectionMapStyle"),this.selectedMarkerElementId.push(i.id)))},o.prototype.markerInitialSelection=function(e,t,i,o,a){var n=i.selectionSettings;if(n.enable)for(var l=0;l<i.dataSource.length;l++){var r=i.dataSource[l];if(r.latitude===o&&r.longitude===a){var s=this.element.id+"_LayerIndex_"+e+"_MarkerIndex_"+t+"_dataIndex_"+l;this.markerSelection(n,this,Re(s),r)}}},o.prototype.renderArea=function(){var e=this.mapsArea.border.width,i=this.mapsArea.background;if(e>0||i||this.themeStyle.areaBackgroundColor){var o={opacity:(0,t.isNullOrUndefined)(this.mapsArea.border.opacity)?1:this.mapsArea.border.opacity,color:this.mapsArea.border.color,width:this.mapsArea.border.width},a=new N(this.element.id+"_MapAreaBorder",i||this.themeStyle.areaBackgroundColor,o,1,this.mapAreaRect);this.svgObject.appendChild(this.renderer.drawRectangle(a))}},o.prototype.addTabIndex=function(){this.element.setAttribute("aria-label",this.description||"Maps Element"),this.element.setAttribute("role","region"),this.element.tabIndex=this.tabIndex},o.prototype.setSecondaryElementPosition=function(){var e=Ae(this.element.id+"_Secondary_Element"),i=this.element.getBoundingClientRect(),o=Ae(this.element.id+"_svg");if(!(0,t.isNullOrUndefined)(o)){var a=o.getBoundingClientRect();e.style.left=Math.max(a.left-i.left,0)+"px",e.style.top=Math.max(a.top-i.top,0)+"px"}},o.prototype.zoomingChange=function(){var e,i;if(Ae(this.element.id+"_Layer_Collections")&&this.zoomModule&&(this.zoomModule.layerCollectionEle=Ae(this.element.id+"_Layer_Collections")),this.isTileMap&&Ae(this.element.id+"_Tile_SVG")&&Ae(this.element.id+"_tile_parent")){var o=Ae(this.element.id+"_tile_parent"),a=Ae(this.element.id+"_Tile_SVG"),n=Ae(this.element.id+"_Tile_SVG_Parent"),l=o.getBoundingClientRect(),r=a.getBoundingClientRect();e=l.left-r.left,i=l.top-r.top,n.style.left=e+"px",n.style.top=i+"px",!(0,t.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(),n.style.width=this.legendModule.legendTotalRect.width+"px",n.style.height=this.legendModule.legendTotalRect.height+"px");var s=document.getElementsByClassName("template");if(!(0,t.isNullOrUndefined)(s)&&s.length>0)for(var d=0;d<s.length;d++){var p=s[d];p.style.left=e+"px",p.style.top=i+"px"}}if(this.zoomSettings.zoomFactor>=0){this.zoomModule&&this.zoomModule.toolBarGroup&&this.zoomSettings.enable&&this.zoomModule.alignToolBar();var h=document.getElementById(this.element.id+"_Layer_Collections");if(!(0,t.isNullOrUndefined)(h)&&h.childElementCount>0)for(d=0;d<h.childNodes.length;d++){var m=h.childNodes[d];if("g"===m.tagName&&-1===m.id.indexOf("_Legend_Group"))for(var c=parseFloat(m.id.split("_LayerIndex_")[1].split("_")[0]),u=0;u<m.childNodes.length;u++){var g=m.childNodes[u];g.id.indexOf("_Markers_Group")>-1||g.id.indexOf("_bubble_Group")>-1||g.id.indexOf("_dataLableIndex_Group")>-1||lt(g,c,this.scale,this)}}this.zoomModule&&(this.previousScale!==this.scale||this.zoomNotApplied||this.isZoomByPosition)&&this.zoomModule.applyTransform(this,!0)}},o.prototype.createSecondaryElement=function(){if((0,t.isNullOrUndefined)(document.getElementById(this.element.id+"_Secondary_Element"))){var e=(0,t.createElement)("div",{id:this.element.id+"_Secondary_Element"});e.style.cssText="position: relative;z-index:2;",this.element.appendChild(e)}},o.prototype.getMinMaxLatitudeLongitude=function(){var e=document.getElementById(this.element.id);if((0,t.isNullOrUndefined)(e))return{minLatitude:0,maxLatitude:0,minLongitude:0,maxLongitude:0};var i=e.getBoundingClientRect(),o=this.isTileMap?this.pointToLatLong(this.mapAreaRect.x-this.margin.left,-this.mapAreaRect.y):this.getGeoLocation(0,this.mapAreaRect.x+i.left,this.mapAreaRect.y),a=this.isTileMap?this.pointToLatLong(this.mapAreaRect.width,this.mapAreaRect.height-this.mapAreaRect.y):this.getGeoLocation(0,this.mapAreaRect.x+i.left+this.mapAreaRect.width,this.mapAreaRect.y+this.mapAreaRect.height);return{minLatitude:o.latitude,maxLatitude:a.latitude,minLongitude:o.longitude,maxLongitude:a.longitude}},o.prototype.arrangeTemplate=function(){var e=this;document.getElementById(this.element.id+"_Legend_Border")&&(document.getElementById(this.element.id+"_Legend_Border").style.pointerEvents="none");var i=document.getElementsByClassName(this.element.id+"_template");!(0,t.isNullOrUndefined)(i)&&i.length>0&&Ae(this.element.id+"_Layer_Collections")&&!this.isTileMap&&Array.prototype.forEach.call(i,(function(i){var o=0,a=0;if(!(0,t.isNullOrUndefined)(i)&&i.childElementCount>0){var n=Ae(e.element.id+"_Layer_Collections").getBoundingClientRect(),l=Ae(i.id).getBoundingClientRect();-1===i.id.indexOf("Marker")&&(o=e.isTileMap?0:n.left<l.left?-Math.abs(l.left-n.left):Math.abs(l.left-n.left),a=e.isTileMap?0:n.top<l.top?-Math.abs(l.top-n.top):Math.abs(l.top-n.top)),Array.prototype.forEach.call(i.childNodes,(function(t){if(-1!==t.id.indexOf("Marker")){if("hidden"!==t.style.visibility){var i=Ae(t.id).getBoundingClientRect();t.style.left=parseFloat(t.style.left)-(e.isTileMap?0:i.width/2)+"px",t.style.top=parseFloat(t.style.top)-(e.isTileMap?0:i.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%)"}))}}))},o.prototype.createTile=function(){var e=this.layersCollection[0];if(e.isBaseLayer&&!(0,t.isNullOrUndefined)(e.urlTemplate)&&""!==e.urlTemplate&&(0,t.isNullOrUndefined)(e.shapeData)){ke(this.element.id+"_tile_parent"),ke(this.element.id+"_tiles"),ke("animated_tiles");var i=(0,t.createElement)("div",{id:this.element.id+"_tile_parent"});i.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=(0,t.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(i),this.element.appendChild(o)}},o.prototype.initPrivateVariable=function(){if(""===this.element.id){var e=document.getElementsByClassName("e-maps").length;this.element.id="maps_control_"+e}this.renderer=new i.SvgRenderer(this.element.id),this.mapLayerPanel=new Ji(this)},o.prototype.findBaseAndSubLayers=function(){var e=this,i=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 n=0;n<o.length;n++){var l=o[n];if(l.visible&&i===n){l.isBaseLayer=!0,this.isTileMap=!!(0,t.isNullOrUndefined)(l.shapeData),this.layersCollection.push(l);break}if(n===o.length-1){this.layersCollection.push(o[0]);break}}a.map((function(t){t.visible&&e.layersCollection.push(t)}))},o.prototype.renderBorder=function(){var e=this.border.width,i=this.svgObject.querySelector("#"+this.element.id+"_MapBorder");if((e>0||this.background||this.themeStyle.backgroundColor)&&(0,t.isNullOrUndefined)(i)){var o={opacity:(0,t.isNullOrUndefined)(this.border.opacity)?1:this.border.opacity,color:this.border.color,width:this.border.width},a=new N(this.element.id+"_MapBorder",this.background||this.themeStyle.backgroundColor,o,1,new Z(e/2,e/2,this.availableSize.width-e,this.availableSize.height-e));this.svgObject.appendChild(this.renderer.drawRectangle(a))}else i.setAttribute("fill",this.background||this.themeStyle.backgroundColor)},o.prototype.renderTitle=function(e,i,o,a){var n,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},r=Math.abs(this.margin.left+this.margin.right-this.availableSize.width);if(l.fontFamily=(0,t.isNullOrUndefined)(l.fontFamily)?this.themeStyle.fontFamily:l.fontFamily,l.fontWeight=l.fontWeight||this.themeStyle.titleFontWeight,l.size="title"===i?l.size||this.themeStyle.titleFontSize:l.size||this.themeStyle.subTitleFontSize||yt.mapsSubTitleFont.size,e.text){(0,t.isNullOrUndefined)(a)&&(a=this.renderer.createGroup({id:this.element.id+"_Title_Group"}));var s=Ie(r,e.text,l),d=w(s,l),p=Fe((0,t.isNullOrUndefined)(o)?new Z(this.margin.left,this.margin.top,this.availableSize.width,this.availableSize.height):o,e.alignment,d,i),h=new I(this.element.id+"_Map_"+i,p.x,p.y,"start",s),m=new Z(p.x,p.y,d.width,d.height),c=D(h,l,l.color||("title"===i?this.themeStyle.titleFontColor:this.themeStyle.subTitleFontColor),a);c.setAttribute("aria-label",e.text),c.setAttribute("role","region"),("title"===i&&!e.subtitleSettings.text||"subtitle"===i)&&(n=Math.abs(m.y+this.margin.bottom-this.availableSize.height),this.mapAreaRect=new Z(this.margin.left,m.y+10,r,n-10)),"subtitle"!==i&&e.subtitleSettings.text?this.renderTitle(e.subtitleSettings,"subtitle",m,a):this.svgObject.appendChild(a)}else n=Math.abs(this.margin.top+this.margin.bottom-this.availableSize.height),this.mapAreaRect=new Z(this.margin.left,this.margin.top,r,n)},o.prototype.createSVG=function(){this.removeSvg(),d(this)},o.prototype.removeSvg=function(){if(ke(this.element.id+"_Secondary_Element"),ke(this.element.id+"_tile_parent"),ke(this.element.id+"_tiles"),this.svgObject){for(;this.svgObject.childNodes.length>0;)this.svgObject.removeChild(this.svgObject.firstChild);!this.svgObject.hasChildNodes()&&this.svgObject.parentNode&&(0,t.remove)(this.svgObject)}this.clearTemplate()},o.prototype.wireEVents=function(){t.EventHandler.add(this.element,"click",this.mapsOnClick,this),t.EventHandler.add(this.element,"contextmenu",this.mapsOnRightClick,this),t.EventHandler.add(this.element,"dblclick",this.mapsOnDoubleClick,this),t.EventHandler.add(this.element,t.Browser.touchStartEvent,this.mouseDownOnMap,this),t.EventHandler.add(this.element,t.Browser.touchMoveEvent,this.mouseMoveOnMap,this),t.EventHandler.add(this.element,t.Browser.touchEndEvent,this.mouseEndOnMap,this),t.EventHandler.add(this.element,"pointerleave mouseleave",this.mouseLeaveOnMap,this),t.EventHandler.add(this.element,"keydown",this.keyDownHandler,this),t.EventHandler.add(this.element,"keyup",this.keyUpHandler,this),this.resizeEvent=this.mapsOnResize.bind(this),window.addEventListener(t.Browser.isTouch&&"orientation"in window&&"onorientationchange"in window?"orientationchange":"resize",this.resizeEvent)},o.prototype.unWireEVents=function(){t.EventHandler.remove(this.element,"click",this.mapsOnClick),t.EventHandler.remove(this.element,"contextmenu",this.mapsOnRightClick),t.EventHandler.remove(this.element,"dblclick",this.mapsOnDoubleClick),t.EventHandler.remove(this.element,t.Browser.touchStartEvent,this.mouseDownOnMap),t.EventHandler.remove(this.element,t.Browser.touchMoveEvent,this.mouseMoveOnMap),t.EventHandler.remove(this.element,t.Browser.touchEndEvent,this.mouseEndOnMap),t.EventHandler.remove(this.element,"pointerleave mouseleave",this.mouseLeaveOnMap),t.EventHandler.remove(this.element,"keydown",this.keyDownHandler),t.EventHandler.remove(this.element,"keyup",this.keyUpHandler),window.removeEventListener(t.Browser.isTouch&&"orientation"in window&&"onorientationchange"in window?"orientationchange":"resize",this.resizeEvent)},o.prototype.mouseLeaveOnMap=function(e){document.getElementsByClassName("highlightMapStyle").length>0&&this.legendModule&&(this.legendModule.removeShapeHighlightCollection(),Je(document.getElementsByClassName("highlightMapStyle")[0]))},o.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")&&He("highlightMapStyle").length>0&&(Je(He("highlightMapStyle")[0]),this.legendSettings.visible&&this.legendModule&&this.legendModule.removeShapeHighlightCollection())},o.prototype.keyboardHighlightSelection=function(e,i){var o=parseInt(e.split("_LayerIndex_")[1].split("_")[0],10),a=parseInt(e.split("_shapeIndex_")[1].split("_")[0],10),n=this.layers[o].shapeData.features.length>a?this.layers[o].shapeData.features[a].properties:null,l=parseInt(e.split("_dataIndex_")[1].split("_")[0],10),r=(0,t.isNullOrUndefined)(l)?null:this.layers[o].dataSource[l];this.layers[o].selectionSettings.enable&&"keydown"===i&&this.selectionModule?(this.selectionModule.selectionsettings=this.layers[o].selectionSettings,this.selectionModule.selectionType="Shape",this.selectionModule.selectElement(event.target,o,r,n)):this.highlightModule&&this.layers[o].highlightSettings.enable&&"keyup"===i&&!event.target.classList.contains("ShapeselectionMapStyle")&&(this.highlightModule.highlightSettings=this.layers[o].highlightSettings,this.highlightModule.handleHighlight(event.target,o,r,n))},o.prototype.keyDownHandler=function(e){var i=this.zoomModule,o=e.target.id;if(("ArrowUp"===e.code||"ArrowDown"===e.code||"ArrowLeft"===e.code||"ArrowRight"===e.code)&&i){var a=document.getElementById(this.element.id+"_animated_tiles");this.isTileMap&&!(0,t.isNullOrUndefined)(a)&&(this.currentTiles=a.cloneNode(!0))}if(this.zoomSettings.enable&&i&&("+"===e.key||"Equal"===e.code))i.performZoomingByToolBar("zoomin");else if(this.zoomSettings.enable&&i&&("-"===e.key||"Minus"===e.code))i.performZoomingByToolBar("zoomout");else if(this.zoomSettings.enable&&i&&82===e.keyCode)i.performZoomingByToolBar("reset"),i.isPanModeEnabled=!1;else if(this.zoomSettings.enable&&this.zoomSettings.enablePanning&&i&&("ArrowUp"===e.code||"ArrowDown"===e.code))e.preventDefault(),i.mouseDownLatLong.x=0,i.mouseMoveLatLong.y=this.mapAreaRect.height/7,i.panning("None",i.mouseDownLatLong.x,"ArrowUp"===e.code?-i.mouseMoveLatLong.y:i.mouseMoveLatLong.y,e),i.mouseDownLatLong.y=i.mouseMoveLatLong.y;else if(this.zoomSettings.enable&&this.zoomSettings.enablePanning&&i&&("ArrowLeft"===e.code||"ArrowRight"===e.code))e.preventDefault(),i.mouseDownLatLong.y=0,i.mouseMoveLatLong.x=this.mapAreaRect.width/7,i.panning("None","ArrowLeft"===e.code?-i.mouseMoveLatLong.x:i.mouseMoveLatLong.x,i.mouseDownLatLong.y,e),i.mouseDownLatLong.x=i.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 n=document.getElementById(this.element.id+"_Paging_Text").textContent.split("/").map(Number);o.indexOf("_Left_Page_Rect")>-1?(1!==n[0]&&e.target.focus(),e.target.style.outlineColor=n[0]-1!==n[1]?"":"transparent"):o.indexOf("_Right_Page_Rect")>-1&&(n[0]!==n[1]&&e.target.focus(),e.target.style.outlineColor=n[0]!==n[1]+1?"":"transparent"),Ge(this.element.id+"_Legend_Border",this.element.id)&&(Ge(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)},o.prototype.SelectedElement=function(e){var t=!1;return"ShapeselectionMapStyle"===e.getAttribute("class")&&(t=!0),t},o.prototype.mapsOnClick=function(e){var i=this,o=e.target,a=o.id,n=null,l=null;if(this.mouseClickEvent={x:e.x,y:e.y},-1===o.id.indexOf("_ToolBar")){var r=this.getClickLocation(a,e.pageX,e.pageY,o,e.layerX,e.layerY);(0,t.isNullOrUndefined)(r)||(n=r.latitude,l=r.longitude);var s={cancel:!1,name:mi,target:a,x:e.clientX,y:e.clientY,latitude:n,longitude:l,isShapeSelected:this.SelectedElement(o)};this.onclick?(s.name=ci,this.trigger("onclick",s,(function(t){i.clickHandler(e,s,o)}))):this.trigger("click",s,(function(t){i.clickHandler(e,s,o)}))}this.zoomModule&&(this.zoomModule.removeToolbarOpacity(this.isTileMap?Math.round(this.tileZoomLevel):this.mapScaleValue,a),this.isDevice&&this.zoomModule.removeToolbarClass("","","","",""))},o.prototype.clickHandler=function(e,t,i){i.id.indexOf("shapeIndex")>-1&&(this.mergeCluster(),Re(this.element.id+"_mapsTooltip")&&this.mapsTooltipModule.tooltipTargetID.indexOf("_MarkerIndex_")>-1&&ke(this.element.id+"_mapsTooltip")),this.markerModule&&this.markerModule.markerClusterClick(e),t.cancel||this.notify(mi,i),t.cancel||-1===i.id.indexOf("shapeIndex")||this.triggerShapeSelection(i)},o.prototype.triggerShapeSelection=function(e){var i=parseInt(e.id.split("_LayerIndex_")[1].split("_")[0],10),o=Ve(e.id,this.layers[i].selectionSettings,this,bi);o.cancel||!this.selectionModule||(0,t.isNullOrUndefined)(this.shapeSelected)?o.cancel&&this.selectionModule&&(0,t.isNullOrUndefined)(o.data)&&(Je(e),this.selectionModule.removedSelectionList(e)):Xe(this.selectionModule.selectionType+"selectionMap",this.selectionModule.selectionType+"selectionMapStyle",o)},o.prototype.getMarkerClickLocation=function(e,t,i,o,a,n){document.getElementById(this.element.id+"_svg").style.cursor="grabbing";var l=Re(a.targetId),r=this.getClickLocation(a.targetId,e,t,l,i,o),s=this.isTileMap?g(new j(r.longitude,r.latitude),this.tileZoomLevel,this.tileTranslatePoint,!0):c(r.latitude,r.longitude,this.mapLayerPanel.currentFactor,this.layersCollection[a.layerIndex],this),d=this.translatePoint,p=this.isTileMap?s.x:(s.x+d.x)*this.scale,h=this.isTileMap?s.y:(s.y+d.y)*this.scale;if("Balloon"!==this.markerDragArgument.shape?l.setAttribute("transform","translate( "+p+" "+h+" )"):l.parentElement.setAttribute("transform","translate( "+p+" "+h+" )"),n){var m=this.layers[a.layerIndex].markerSettings[a.markerIndex];r=this.getClickLocation(a.targetId,e-m.offset.x,t-m.offset.y,l,i-m.offset.x,o-m.offset.y)}return r},o.prototype.getClickLocation=function(e,i,o,a,n,l,r){var s,d=0;if(-1===e.indexOf("_LayerIndex_")||this.isTileMap||(0,t.isNullOrUndefined)(r)&&(parseInt(this.mouseDownEvent.x,10)!==parseInt(this.mouseClickEvent.x,10)||parseInt(this.mouseDownEvent.y,10)!==parseInt(this.mouseClickEvent.y,10)))this.isTileMap&&(!(0,t.isNullOrUndefined)(r)||parseInt(this.mouseDownEvent.x,10)===parseInt(this.mouseClickEvent.x,10)&&parseInt(this.mouseDownEvent.y,10)===parseInt(this.mouseClickEvent.y,10))&&(s=this.getTileGeoLocation(n,l));else if(d=parseFloat(e.split("_LayerIndex_")[1].split("_")[0]),"Normal"===this.layers[d].geometryType)if(e.indexOf("_shapeIndex_")>-1){var h=a.parentElement,m=p(i,o,h.id.indexOf("_Point_Group")>-1||h.id.indexOf("_LineString_Group")>-1||h.id.indexOf("_MultiLineString_Group")>-1||h.id.indexOf("_Polygon_Group")>-1?h.parentElement:h),c=this.mapLayerPanel.currentFactor*this.mapScaleValue,u=Math.abs(-this.baseMapBounds.longitude.min*c),g=Math.abs(this.baseMapBounds.latitude.max*c);s={latitude:Math.abs(this.baseMapBounds.latitude.max-m.y/c),longitude:Math.abs(m.x/c+this.baseMapBounds.longitude.min)},this.baseMapBounds.longitude.min<0&&u>m.x&&(s.longitude=-s.longitude),this.baseMapBounds.latitude.min<0&&g>m.y&&(s.latitude=-s.latitude)}else if(e.indexOf("_MarkerIndex_")>-1&&this.markerModule&&!this.markerDragArgument){var y=parseInt(e.split("_MarkerIndex_")[1].split("_")[0],10),f=parseInt(e.split("_dataIndex_")[1].split("_")[0],10);if(isNaN(y)||isNaN(f))s={latitude:null,longitude:null};else{var b=this.layers[d].markerSettings[y].dataSource[f];s={latitude:b.latitude,longitude:b.longitude}}}else if(e.indexOf("_MarkerIndex_")>-1&&this.markerModule&&this.markerDragArgument){var v=document.getElementById(this.element.id+"_LayerIndex_"+this.markerDragArgument.layerIndex).getBoundingClientRect(),S=new j(i>v.left?Math.abs(v.left-i):0,o>v.top?Math.abs(v.top-o):0);u=Math.abs(-this.baseMapBounds.longitude.min*this.mapLayerPanel.currentFactor),g=Math.abs(this.baseMapBounds.latitude.max*this.mapLayerPanel.currentFactor);s={latitude:Math.abs(this.baseMapBounds.latitude.max-S.y/(this.mapLayerPanel.currentFactor*this.scale)),longitude:Math.abs(S.x/(this.mapLayerPanel.currentFactor*this.scale)+this.baseMapBounds.longitude.min)},this.baseMapBounds.longitude.min<0&&u>S.x&&(s.longitude=-s.longitude),this.baseMapBounds.latitude.min<0&&g>S.y&&(s.latitude=-s.latitude)}else s={latitude:null,longitude:null};else s=this.getGeoLocation(d,i,o);return s},o.prototype.removeTileMap=function(){var e=document.getElementById(this.element.id+"_animated_tiles");if(!(0,t.isNullOrUndefined)(this.currentTiles)&&e.childElementCount<this.currentTiles.childElementCount)for(var i=e.childElementCount-1;i>=this.currentTiles.childElementCount;i--)e.removeChild(e.children[i]);this.currentTiles=null},o.prototype.mouseEndOnMap=function(e){var i,o,a,n=0,l=0;if(-1!==e.type.indexOf("touch")?(this.isTouch=!0,n=i=(a=e).changedTouches[0].pageX,l=(o=a.changedTouches[0].pageY)-(this.isTileMap?10:0),this.mouseClickEvent={x:i,y:o}):(this.isTouch="touch"===e.pointerType,i=e.pageX,o=e.pageY,n=e.layerX,l=e.layerY-(this.isTileMap?10:0)),this.isTileMap&&this.removeTileMap(),this.isTouch&&(this.titleTooltip(e,i,o,!0),(0,t.isNullOrUndefined)(this.legendModule)||this.legendTooltip(e,e.pageX,e.pageY,!0)),this.notify(t.Browser.touchEndEvent,e),e.cancelable&&!this.isTouch&&e.preventDefault(),(0,t.isNullOrUndefined)(this.markerDragArgument))document.getElementById(this.element.id+"_svg").style.cursor="auto";else{var r=this.markerDragArgument;this.mouseClickEvent.x=this.mouseDownEvent.x,this.mouseClickEvent.y=this.mouseDownEvent.y;var s=this.getMarkerClickLocation(i,o,n,l,this.markerDragArgument,!0),d=this.layers[r.layerIndex].markerSettings[r.markerIndex];document.getElementById(this.element.id+"_svg").style.cursor=d.enableDrag?"pointer":"grabbing";var p={name:"markerDragEnd",x:i,y:o,latitude:s.latitude,longitude:s.longitude,layerIndex:r.layerIndex,markerIndex:r.markerIndex,dataIndex:r.dataIndex};if((0,t.isNullOrUndefined)(d.latitudeValuePath)&&(0,t.isNullOrUndefined)(d.longitudeValuePath)){var h=d.dataSource[r.dataIndex];(0,t.isNullOrUndefined)(h.Longitude)||(0,t.isNullOrUndefined)(h.Latitude)?(d.dataSource[r.dataIndex].latitude=p.latitude,d.dataSource[r.dataIndex].longitude=p.longitude):(d.dataSource[r.dataIndex].Latitude=p.latitude,d.dataSource[r.dataIndex].Longitude=p.longitude)}else d.dataSource[r.dataIndex][d.latitudeValuePath]=p.latitude,d.dataSource[r.dataIndex][d.longitudeValuePath]=p.longitude;this.markerDragId="",this.markerDragArgument=null,this.trigger("markerDragEnd",p)}return this.zoomModule&&this.isDevice&&(this.zoomModule.removeToolbarOpacity(this.isTileMap?Math.round(this.tileZoomLevel):this.scale,this.element.id+"_Zooming_"),this.zoomModule.removeToolbarClass("","","","","")),!1},o.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&&!(0,t.isNullOrUndefined)(this.mapsTooltipModule)&&this.mapsTooltipModule.renderTooltip(e);var i=e.target;this.markerDragId=i.id;var o=document.getElementById(this.element.id+"_animated_tiles");if(this.isTileMap&&!(0,t.isNullOrUndefined)(o)&&(this.currentTiles=o.cloneNode(!0)),-1===i.id.indexOf("_ToolBar")){var a=this.markerModule;(i.id.indexOf("shapeIndex")>-1||i.id.indexOf("Tile")>-1)&&this.mergeCluster(),a&&(a.markerClick(e),a.markerClusterClick(e)),this.bubbleModule&&this.bubbleModule.bubbleClick(e)}this.notify(t.Browser.touchStartEvent,e)},o.prototype.mergeCluster=function(){this.markerModule&&this.markerModule.sameMarkerData.length>0&&(!this.zoomModule||this.zoomModule.isSingleClick)&&(ee(this.markerModule.sameMarkerData,this),this.markerModule.sameMarkerData=[])},o.prototype.mapsOnRightClick=function(e){var i=e.target,o=i.id,a=null,n=null;if(this.mouseClickEvent=this.mouseDownEvent={x:e.x,y:e.y},-1===i.id.indexOf("_ToolBar")){var l=this.getClickLocation(o,e.pageX,e.pageY,i,e.layerX,e.layerY);(0,t.isNullOrUndefined)(l)||(a=l.latitude,n=l.longitude);var r={cancel:!1,name:ui,target:o,x:e.clientX,y:e.clientY,latitude:a,longitude:n,isShapeSelected:!1};this.trigger("rightClick",r)}},o.prototype.mapsOnDoubleClick=function(e){this.notify("dblclick",e);var t,i=e.target,o=i.id,a=0,n=null,l=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&&(n=(t=this.getTileGeoLocation(e.layerX,e.layerY)).latitude,l=t.longitude):(a=parseFloat(i.id.split("_LayerIndex_")[1].split("_")[0]),n=(t=this.getGeoLocation(a,e.layerX,e.layerY)).latitude,l=t.longitude);var r={cancel:!1,name:gi,x:e.clientX,y:e.clientY,target:o,latitude:n,longitude:l,isShapeSelected:null};this.trigger("doubleClick",r)}},o.prototype.mouseMoveOnMap=function(e){var i;i="touchmove"===e.type?e.target:i=e.target,this.markerModule&&(this.markerModule.markerMove(e),this.markerModule.markerClusterMouseMove(e)),this.bubbleModule&&this.bubbleModule.bubbleMove(e),-1===i.id.indexOf("MarkerIndex")&&(document.getElementById(this.element.id+"_svg").style.cursor="auto"),this.onMouseMove(e),this.notify(t.Browser.touchMoveEvent,e)},o.prototype.onMouseMove=function(e){var i,o,a=e.target;this.mouseMoveId=a.id;var n=null,l=0,r=0;if(-1===e.type.indexOf("touch")?(i=e.pageX,o=e.pageY,l=e.layerX,r=e.layerY-(this.isTileMap?10:0),this.titleTooltip(e,e.pageX,e.pageY),(0,t.isNullOrUndefined)(this.legendModule)||this.legendTooltip(e,e.pageX,e.pageY,!0)):(l=i=(n=e.touches)[0].clientX,r=o=n[0].clientY-(this.isTileMap?10:0)),!(0,t.isNullOrUndefined)(this.markerDragArgument)){var s=this.markerDragArgument;this.mouseClickEvent.x=this.mouseDownEvent.x,this.mouseClickEvent.y=this.mouseDownEvent.y,this.getMarkerClickLocation(i,o,l,r,s,!1)}return this.zoomModule&&this.zoomModule.removeToolbarOpacity(this.isTileMap?Math.round(this.tileZoomLevel):this.scale,e.target.id),!1},o.prototype.legendTooltip=function(e,t,i,o){var a,n,l=e.target.id,r=this.legendModule.currentPage,s=e.target.id.split("_Index_")[1];r=this.legendModule.totalPages.length<=this.legendModule.currentPage?this.legendModule.totalPages.length-1:this.legendModule.currentPage<0?0:this.legendModule.currentPage;for(var d=0!==this.legendModule.totalPages.length?this.legendModule.totalPages[r].Collection.length:this.legendModule.totalPages.length,p=0;p<d;p++)a=(n=this.legendModule.totalPages[r].Collection[p]).DisplayText,l=e.target.id,s=e.target.id.split("_Index_")[1],l===this.element.id+"_Legend_Text_Index_"+s&&e.target.textContent.indexOf("...")>-1&&n.idIndex===parseInt(s,10)&&$e(a,this.legendSettings.textStyle.size,t,i,this.element.offsetWidth,this.element.offsetHeight,this.element.id+"_EJ2_Legend_Text_Tooltip",Re(this.element.id+"_Secondary_Element"),o);l!==this.element.id+"_Legend_Text_Index_"+s&&ke(this.element.id+"_EJ2_Legend_Text_Tooltip")},o.prototype.titleTooltip=function(e,t,i,o){var a=e.target.id;a===this.element.id+"_LegendTitle"&&e.target.textContent.indexOf("...")>-1?$e(this.legendSettings.title.text,this.legendSettings.titleStyle.size,t,i,this.element.offsetWidth,this.element.offsetHeight,this.element.id+"_EJ2_LegendTitle_Tooltip",Re(this.element.id+"_Secondary_Element"),o):ke(this.element.id+"_EJ2_LegendTitle_Tooltip"),a===this.element.id+"_Map_title"&&e.target.textContent.indexOf("...")>-1?$e(this.titleSettings.text,this.titleSettings.textStyle.size||this.themeStyle.titleFontSize,t,i,this.element.offsetWidth,this.element.offsetHeight,this.element.id+"_EJ2_Title_Tooltip",Re(this.element.id+"_Secondary_Element"),o):ke(this.element.id+"_EJ2_Title_Tooltip")},o.prototype.mapsOnResize=function(e){var i=this;if(!this.isDestroyed&&!this.isExportInitialTileMap){this.isResize=this.isReset=!0;var o={cancel:!1,name:yi,previousSize:this.availableSize,currentSize:s(this),maps:this};this.trigger(yi,o),o.cancel||(this.resizeTo&&clearTimeout(this.resizeTo),!(0,t.isNullOrUndefined)(this.element)&&this.element.classList.contains("e-maps")&&(this.resizeTo=setTimeout((function(){i.unWireEVents(),i.createSVG(),i.refreshing=!0,i.wireEVents(),i.render(),i.refreshing=!1}),500)))}return!1},o.prototype.zoomByPosition=function(e,i){if(!this.isDestroyed){this.zoomNotApplied=this.isMarkerZoomCompleted=!1;var o=this.zoomSettings.zoomFactor===i;this.previousProjection=null,!this.isTileMap&&this.zoomModule?(0,t.isNullOrUndefined)(e)?(this.zoomSettings.zoomFactor=i,this.isZoomByPosition=!0,this.mapScaleValue=null):(this.zoomSettings.zoomFactor=i,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=i,o=this.centerPosition.latitude===e.latitude&&this.centerPosition.longitude===e.longitude||o,this.centerPosition=e,this.isZoomByPosition=!0),o&&this.refresh()}},o.prototype.panByDirection=function(e,t){if(!this.isDestroyed){var i=0,o=0;switch(e){case"Left":i=-this.mapAreaRect.width/7;break;case"Right":i=this.mapAreaRect.width/7;break;case"Top":o=-this.mapAreaRect.height/7;break;case"Bottom":o=this.mapAreaRect.height/7}this.zoomModule&&this.zoomModule.panning(e,i,o,t)}},o.prototype.addLayer=function(e){if(!this.isDestroyed){var t=this.layers;t.push(e),this.isAddLayer=!0,this.layers=t}},o.prototype.removeLayer=function(e){if(!this.isDestroyed){var t=this.layers;t.splice(e,1),this.layers=t}},o.prototype.addMarker=function(e,i){if(!this.isDestroyed&&!(0,t.isNullOrUndefined)(this.markerModule)){var o=document.getElementById(this.element.id+"_LayerIndex_"+e);if(i.length>0&&o){for(var a=0,n=i;a<n.length;a++){var l=n[a];this.layersCollection[e].markerSettings.push(new li(this,"markerSettings",l))}this.markerModule.markerRender(this,o,e,this.mapLayerPanel.currentFactor,"AddMarker"),this.arrangeTemplate()}}},o.prototype.shapeSelection=function(e,i,o,a){if(!this.isDestroyed){var n=void 0,l=void 0,r=Array.isArray(i)?i:Array(i);(0,t.isNullOrUndefined)(a)&&(a=!0);var s=this.layers[e].selectionSettings;if(!s.enableMultiSelect&&this.legendSelection&&a&&this.removeShapeSelection(),"SubLayer"===this.layers[e].type)for(var d=0;d<this.layersCollection.length;d++)if(this.layersCollection[d].shapeData===this.layers[e].shapeData){l=d;break}if(s.enable){var p=void 0,h=void 0,m=void 0,c=void 0,u=void 0,g=this.layers[e].shapeData.features;for(d=0;d<g.length;d++)for(var y=0;y<r.length;y++){var f=void 0;if((!(0,t.isNullOrUndefined)(g[d].properties[r[y]])&&isNaN(g[d].properties[r[y]])?g[d].properties[r[y]].toLowerCase():g[d].properties[r[y]])===((0,t.isNullOrUndefined)(o)||"string"!=typeof o?o:o.toLowerCase())){(0,t.isNullOrUndefined)(this.layers[e].shapeSettings.colorValuePath)||(f=Me(this.layers[e].dataSource,g[d].properties,this.layers[e].shapeDataPath,this.layers[e].shapePropertyPath,this.layers[e]));var b=this.layers[e];if(this.baseLayerIndex>=0&&b.isBaseLayer?m=0:"SubLayer"===this.layers[e].type&&(m=l),n=Re(this.element.id+"_LayerIndex_"+m+"_shapeIndex_"+d+"_dataIndex_"+f),(0,t.isNullOrUndefined)(f)&&(0,t.isNullOrUndefined)(n)&&(n=Re(this.element.id+"_LayerIndex_"+e+"_shapeIndex_"+d+"_dataIndex_null")),h=parseInt(n.id.split("_shapeIndex_")[1].split("_")[0],10),c=this.layers[e].shapeData.features.length>h?this.layers[e].shapeData.features[h].properties:null,p=parseInt(n.id.split("_dataIndex_")[1].split("_")[0],10),u=(0,t.isNullOrUndefined)(p)?null:this.layers[e].dataSource[p],a){if(Ye(s,this,n,c,u),this.shapeSelectionClass=Re("ShapeselectionMap"),this.legendSettings.visible&&-1===n.id.indexOf("_MarkerIndex_")&&this.legendModule.shapeHighLightAndSelection(n,u,s,"selection",e),(!this.legendSettings.visible||this.legendModule.shapeToggled)&&(n.setAttribute("class","ShapeselectionMapStyle"),-1===this.selectedElementId.indexOf(n.getAttribute("id"))&&this.selectedElementId.push(n.getAttribute("id")),!s.enableMultiSelect))return}else if(this.legendSelection=!s.enableMultiSelect&&!this.legendSelection||this.legendSelection,this.legendSettings.visible&&-1===n.id.indexOf("_MarkerIndex_")&&"ShapeselectionMapStyle"===n.getAttribute("class")&&this.legendModule.shapeHighLightAndSelection(n,u,s,"selection",e),!this.legendSettings.visible||this.legendModule.shapeToggled){Je(n);var v=this.selectedElementId.indexOf(n.getAttribute("id"));-1!==v&&(this.selectedElementId.splice(v,1),!s.enableMultiSelect&&this.legendSelection&&this.selectedElementId.length>0&&this.removeShapeSelection())}}}}}},o.prototype.zoomToCoordinates=function(e,i,o,a){var n,l;if(!this.isDestroyed){this.isMarkerZoomCompleted=!1;var r=void 0,s=void 0,d=!1;this.centerPosition={latitude:null,longitude:null},this.isZoomByPosition=!1,((0,t.isNullOrUndefined)(o)&&(0,t.isNullOrUndefined)(a)||(0,t.isNullOrUndefined)(e)&&(0,t.isNullOrUndefined)(i))&&(e=(0,t.isNullOrUndefined)(e)?0:e,i=(0,t.isNullOrUndefined)(e)?0:i,o=(0,t.isNullOrUndefined)(o)?e:o,a=(0,t.isNullOrUndefined)(a)?i:a,d=!0),e>o&&(e=(n=[o,e])[0],o=n[1]),i>a&&(i=(l=[a,i])[0],a=l[1]),d?(r=e+o,s=i+a):(r=(e+o)/2,s=(i+a)/2),this.centerLatOfGivenLocation=r,this.centerLongOfGivenLocation=s,this.minLatOfGivenLocation=e,this.minLongOfGivenLocation=i,this.maxLatOfGivenLocation=o,this.maxLongOfGivenLocation=a,this.zoomNotApplied=!0,this.scaleOfGivenLocation=Mt(e,o,i,a,this.mapAreaRect.width,this.mapAreaRect.height,this,!0);var p=this.getMinMaxLatitudeLongitude(),h={cancel:!1,name:"zoom",type:Gi,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:p.minLatitude,maxLatitude:p.maxLatitude,minLongitude:p.minLongitude,maxLongitude:p.maxLongitude};this.trigger("zoom",h),this.refresh()}},o.prototype.removeShapeSelection=function(){for(var e=this.selectedElementId.length,t=0;t<e;t++)Je(Ae(this.selectedElementId[0])),this.selectedElementId.splice(0,1);if(this.legendSettings.visible){var i=this.legendSelectionCollection.length;for(t=0;t<i;t++)Je(Ae(this.legendSelectionCollection[t].legendElement.id)),this.selectedLegendElementId.splice(0,1)}this.shapeSelectionItem=[],this.legendSelectionCollection=[]},o.prototype.setCulture=function(){this.intl=new t.Internationalization,this.setLocaleConstants(),this.localeObject=new t.L10n(this.getModuleName(),this.defaultLocalConstants,this.locale)},o.prototype.setLocaleConstants=function(){this.defaultLocalConstants={ZoomIn:"Zoom in",Zoom:"Zoom",ZoomOut:"Zoom out",Pan:"Pan",Reset:"Reset",ImageNotFound:"Image Not Found"}},o.prototype.destroy=function(){this.unWireEVents(),(0,t.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},o.prototype.getModuleName=function(){return"maps"},o.prototype.getPersistData=function(){return this.addOnPersist(["translatePoint","zoomSettings","mapScaleValue","tileTranslatePoint","baseTranslatePoint","scale","zoomPersistence","defaultState","markerZoomedState","initialCheck","initialZoomLevel","initialTileTranslate","applyZoomReset","markerZoomFactor"])},o.prototype.onPropertyChanged=function(i,o){if(!this.isDestroyed){for(var a=!1,n=!1,l=!1,r=0,s=Object.keys(i);r<s.length;r++){var d=s[r];switch(d){case"background":this.renderBorder();break;case"height":case"width":case"layers":case"projectionType":case"centerPosition":case"legendSettings":case"baseLayerIndex":if("layers"===d){l=!0;for(var p=Object.keys(i.layers).length,h=0;h<p;h++)if(!(0,t.isNullOrUndefined)(i.layers[h]))for(var m=0,c=Object.keys(i.layers[h]);m<c.length;m++){var u=c[m];(0,t.isNullOrUndefined)(this.layers[h].shapeData)&&!(0,t.isNullOrUndefined)(this.layers[h].urlTemplate)&&""!==this.layers[h].urlTemplate?this.isReset=!0:"markerSettings"===u&&(n=!0)}}a=!0;break;case"zoomSettings":(0,t.isNullOrUndefined)(o.zoomSettings)||(i.zoomSettings.zoomFactor===o.zoomSettings.zoomFactor||l?i.zoomSettings.shouldZoomInitially!==o.zoomSettings.shouldZoomInitially?(this.zoomSettings.zoomFactor=1,this.previousProjection=null,this.scale=this.isMarkerZoomCompleted?null:this.scale,this.isMarkerZoomCompleted=!i.zoomSettings.shouldZoomInitially,a=!0):i.zoomSettings.enable!==o.zoomSettings.enable?(this.zoomSettings.zoomFactor=1,a=!0):a=!0:a=!1);break;case"locale":case"currencyCode":e.prototype.refresh.call(this)}}a&&(i.layers&&n?(ke(this.element.id+"_Markers_Group"),this.isTileMap?this.mapLayerPanel.renderTileLayer(this.mapLayerPanel,this.layers.currentFactor,this.layers.length-1):this.render()):(this.createSVG(),this.renderElements()))}},o.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,Qi],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},o.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},o.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},o.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},o.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},o.prototype.isBubbleVisible=function(){for(var e=!1,t=0,i=this.layers;t<i.length;t++){var o=i[t];if(this.getBubbleVisible(o)){e=!0;break}}return e},o.prototype.getBubbleVisible=function(e){for(var t=!1,i=0,o=e.bubbleSettings;i<o.length;i++){if(o[i].visible){t=!0;break}}return t},o.prototype.print=function(e){this.allowPrint&&this.printModule&&!this.isDestroyed&&this.printModule.print(this,e)},o.prototype.export=function(e,i,o,a){var n=this;if(!this.isDestroyed){if((0,t.isNullOrUndefined)(a)&&(a=!0),"PDF"!==e&&this.allowImageExport&&this.imageExportModule)return new Promise((function(t){t(n.imageExportModule.export(n,e,i,a))}));if(this.allowPdfExport&&this.pdfExportModule)return new Promise((function(t){t(n.pdfExportModule.export(n,e,i,a,o))}))}return null},o.prototype.getBingUrlTemplate=function(e){var i;return this.isDestroyed||(i=new Promise((function(i){var o=new t.Fetch({url:e});o.onSuccess=function(e){var t=e.resourceSets[0].resources[0];i(t.imageUrl)},o.send()}))),i},o.prototype.findVisibleLayers=function(e,i,o,a,n,l){var r,s,d;void 0===i&&(i=!1),void 0===o&&(o=!1),void 0===a&&(a=!1),void 0===n&&(n=!1),void 0===l&&(l=!1);for(var p=0,h=e;p<h.length;p++){var m=h[p];if(i=m.visible||i,m.visible){r=m.bubbleSettings,s=m.markerSettings,d=m.polygonSettings;for(var c=0,u=m.navigationLineSettings;c<u.length;c++){var g=u[c];g.visible&&(n=!(0,t.isNullOrUndefined)(g.highlightSettings)&&g.highlightSettings.enable||n,l=!(0,t.isNullOrUndefined)(g.selectionSettings)&&g.selectionSettings.enable||l)}for(var y=0,f=d.polygons;y<f.length;y++){var b=f[y];!(0,t.isNullOrUndefined)(b.points)&&b.points.length>0&&(n=m.polygonSettings.highlightSettings.enable||n,l=m.polygonSettings.selectionSettings.enable||l,a=m.polygonSettings.tooltipSettings.visible||a)}for(var v=0,S=s;v<S.length;v++){var x=S[v];if(x.visible&&(a=x.tooltipSettings.visible||a,n=x.selectionSettings.enable||n,l=x.highlightSettings.enable||l),a)break}for(var O=0,C=r;O<C.length;O++){var M=C[O];if(M.visible&&(a=M.tooltipSettings.visible||a,n=M.selectionSettings.enable||n,l=M.highlightSettings.enable||l),a)break}a=m.tooltipSettings.visible||a,n=m.selectionSettings.enable||n,l=m.highlightSettings.enable||l}if(i&&o&&a)break}return{layer:i,bubble:o,tooltip:a,selection:n,highlight:l}},o.prototype.getGeoLocation=function(e,i,o){var a=0,n=0;if(!this.isDestroyed){var l=document.getElementById(this.element.id),r=this.element.getBoundingClientRect(),s=document.body.getBoundingClientRect(),d=i-((0,t.isNullOrUndefined)(this.markerDragArgument)?l.offsetLeft||r.left-s.left:0),p=o-((0,t.isNullOrUndefined)(this.markerDragArgument)?l.offsetTop||r.top-s.top:0),h=Ee(this,this.layersCollection[e],!1).location,m=h.x*this.scale,c=h.y*this.scale,u=Math.min(this.mapAreaRect.height,this.mapAreaRect.width)*this.mapLayerPanel.currentFactor*this.scale,g=this.clip(d-m,0,u-1)/u-.5,y=.5-this.clip(p-c,0,u-1)/u;a=90-360*Math.atan(Math.exp(2*-y*Math.PI))/Math.PI,n=360*g}return{latitude:a,longitude:n}},o.prototype.clip=function(e,t,i){return Math.min(Math.max(e,t),i)},o.prototype.getTileGeoLocation=function(e,i){var o=0,a=0;if(!this.isDestroyed){var n=document.getElementById(this.element.id),l=document.getElementById(this.element.id+"_tile_parent"),r=this.pointToLatLong(e+this.mapAreaRect.x-(l.offsetLeft-((0,t.isNullOrUndefined)(this.markerDragArgument)?n.offsetLeft:0)),i+this.mapAreaRect.y-(l.offsetTop-((0,t.isNullOrUndefined)(this.markerDragArgument)?n.offsetTop:0)));o=r.latitude,a=r.longitude}return{latitude:o,longitude:a}},o.prototype.pointToLatLong=function(e,i){var o=0,a=0;if(!this.isDestroyed&&!(0,t.isNullOrUndefined)(this.translatePoint)){i+=10;var n=256*Math.pow(2,this.tileZoomLevel),l=this.clip(e-this.translatePoint.x*this.scale,0,n-1)/n-.5,r=.5-this.clip(i-this.translatePoint.y*this.scale,0,n-1)/n;o=90-360*Math.atan(Math.exp(2*-r*Math.PI))/Math.PI,a=360*l}return{latitude:o,longitude:a}},eo([(0,t.Property)(null)],o.prototype,"background",void 0),eo([(0,t.Property)(!1)],o.prototype,"useGroupingSeparator",void 0),eo([(0,t.Property)(null)],o.prototype,"format",void 0),eo([(0,t.Property)(null)],o.prototype,"width",void 0),eo([(0,t.Property)(null)],o.prototype,"height",void 0),eo([(0,t.Property)("MouseMove")],o.prototype,"tooltipDisplayMode",void 0),eo([(0,t.Property)(!1)],o.prototype,"allowPrint",void 0),eo([(0,t.Property)(!1)],o.prototype,"allowImageExport",void 0),eo([(0,t.Property)(!1)],o.prototype,"allowPdfExport",void 0),eo([(0,t.Complex)({},$t)],o.prototype,"titleSettings",void 0),eo([(0,t.Complex)({},ei)],o.prototype,"zoomSettings",void 0),eo([(0,t.Complex)({},ii)],o.prototype,"legendSettings",void 0),eo([(0,t.Collection)([],ri)],o.prototype,"layers",void 0),eo([(0,t.Collection)([],wt)],o.prototype,"annotations",void 0),eo([(0,t.Complex)({},Ut)],o.prototype,"margin",void 0),eo([(0,t.Complex)({color:"#DDDDDD",width:0},Et)],o.prototype,"border",void 0),eo([(0,t.Property)("Material")],o.prototype,"theme",void 0),eo([(0,t.Property)("Mercator")],o.prototype,"projectionType",void 0),eo([(0,t.Property)(0)],o.prototype,"baseLayerIndex",void 0),eo([(0,t.Property)(null)],o.prototype,"description",void 0),eo([(0,t.Property)(0)],o.prototype,"tabIndex",void 0),eo([(0,t.Complex)({latitude:null,longitude:null},zt)],o.prototype,"centerPosition",void 0),eo([(0,t.Complex)({},di)],o.prototype,"mapsArea",void 0),eo([(0,t.Event)()],o.prototype,"load",void 0),eo([(0,t.Event)()],o.prototype,"beforePrint",void 0),eo([(0,t.Event)()],o.prototype,"loaded",void 0),eo([(0,t.Event)()],o.prototype,"click",void 0),eo([(0,t.Event)()],o.prototype,"onclick",void 0),eo([(0,t.Event)()],o.prototype,"doubleClick",void 0),eo([(0,t.Event)()],o.prototype,"rightClick",void 0),eo([(0,t.Event)()],o.prototype,"resize",void 0),eo([(0,t.Event)()],o.prototype,"tooltipRender",void 0),eo([(0,t.Event)()],o.prototype,"legendRendering",void 0),eo([(0,t.Event)()],o.prototype,"tooltipRenderComplete",void 0),eo([(0,t.Event)()],o.prototype,"shapeSelected",void 0),eo([(0,t.Event)()],o.prototype,"itemSelection",void 0),eo([(0,t.Event)()],o.prototype,"itemHighlight",void 0),eo([(0,t.Event)()],o.prototype,"shapeHighlight",void 0),eo([(0,t.Event)()],o.prototype,"layerRendering",void 0),eo([(0,t.Event)()],o.prototype,"shapeRendering",void 0),eo([(0,t.Event)()],o.prototype,"markerRendering",void 0),eo([(0,t.Event)()],o.prototype,"markerClusterRendering",void 0),eo([(0,t.Event)()],o.prototype,"markerClick",void 0),eo([(0,t.Event)()],o.prototype,"markerDragStart",void 0),eo([(0,t.Event)()],o.prototype,"markerDragEnd",void 0),eo([(0,t.Event)()],o.prototype,"markerClusterClick",void 0),eo([(0,t.Event)()],o.prototype,"markerClusterMouseMove",void 0),eo([(0,t.Event)()],o.prototype,"markerMouseMove",void 0),eo([(0,t.Event)()],o.prototype,"dataLabelRendering",void 0),eo([(0,t.Event)()],o.prototype,"bubbleRendering",void 0),eo([(0,t.Event)()],o.prototype,"bubbleClick",void 0),eo([(0,t.Event)()],o.prototype,"bubbleMouseMove",void 0),eo([(0,t.Event)()],o.prototype,"animationComplete",void 0),eo([(0,t.Event)()],o.prototype,"annotationRendering",void 0),eo([(0,t.Event)()],o.prototype,"zoom",void 0),eo([(0,t.Event)()],o.prototype,"pan",void 0),eo([(0,t.Event)()],o.prototype,"panComplete",void 0),eo([(0,t.Event)()],o.prototype,"zoomComplete",void 0),o=eo([t.NotifyPropertyChanges],o)}(t.Component),io=function(){function e(e){this.id="",this.maps=e,this.bubbleCollection=[]}return e.prototype.renderBubble=function(e,i,o,a,n,l,r,s,d,p){var h,m,c=this,u=s.layerData,g=e.colorValuePath,y=(0,t.isNullOrUndefined)(g)?i[g]:g.indexOf(".")>-1?X(i,e.colorValuePath):i[g],f=(0,t.isNullOrUndefined)(g)?Number(i[g]):g.indexOf(".")>-1?Number(X(i,e.colorValuePath)):Number(i[g]),b=(0,t.isNullOrUndefined)(e.valuePath)?Number(i[e.valuePath]):e.valuePath.indexOf(".")>-1?Number(X(i,e.valuePath)):Number(i[e.valuePath]);if(isNaN(b)&&isNaN(f)&&(0,t.isNullOrUndefined)(y))return null;var v=Pe(e.minRadius,e.maxRadius,b,a.min,a.max),S=new Yi(this.maps).getColorByValue(e.colorMapping,f,y);m="[object Object]"!==Object.prototype.toString.call(S)||(0,t.isNullOrUndefined)(S.fill)?o:S.fill,h="[object Object]"!==Object.prototype.toString.call(S)||(0,t.isNullOrUndefined)(S.opacity)?e.opacity:S.opacity;var x=[[]];this.maps.translateType="bubble";for(var O=0,C=0,M=0,_=0,L=u.length;_<L;_++){var P=u[_];P=P.property;var w=_e(i[s.shapeDataPath],s.shapePropertyPath,P);if((!(0,t.isNullOrUndefined)(i[s.shapeDataPath])&&isNaN(i[s.shapeDataPath])?i[s.shapeDataPath].toLowerCase():i[s.shapeDataPath])===(!(0,t.isNullOrUndefined)(P[w])&&isNaN(P[w])?P[w].toLowerCase():P[w])&&"LineString"!==u[_].type&&"MultiLineString"!==u[_].type&&"Point"!==u[_].type&&"MultiPoint"!==u[_].type)if(u[_]._isMultiPolygon)for(var T=u[_],I=0;I<T.length;I++)x.push(this.getPoints(T[I],[])),C<(M=x[x.length-1].length)&&(C=M,O=x.length-1);else x.push(this.getPoints(u[_],[])),C<(M=x[x.length-1].length)&&(C=M,O=x.length-1)}var F,k,z=this.maps.projectionType,B={color:e.border.color,opacity:e.border.opacity,width:e.border.width},A=we(x[O],z,s.geometryType);if(e.visible){if((0,t.isNullOrUndefined)(A)){var U=x.length-1;if(!x[U].x||!x[U].y)return;k={cancel:!1,name:Ei,border:B,cx:x[U].x,cy:x[U].y,data:i,fill:m,maps:this.maps,radius:v}}else F="Mercator"===this.maps.projectionType?A.y:-A.y,k={cancel:!1,name:Ei,border:B,cx:A.x,cy:F,data:i,fill:m,maps:this.maps,radius:v};this.maps.trigger("bubbleRendering",k,(function(i){if(!k.cancel){var o,a;if(k.border.opacity=(0,t.isNullOrUndefined)(k.border.opacity)?h:k.border.opacity,"Circle"===e.bubbleType){var m=new E(p,k.fill,k.border,h,0,0,k.radius,null);o=se(c.maps,m,d)}else{var u="Mercator"===c.maps.projectionType?k.cy-v:k.cy+v,g=new N(p,k.fill,k.border,h,new Z(0,0,2*v,2*v),2,2);k.cx-=v,k.cy=u,o=de(c.maps,g,d)}ae(c.maps.selectedBubbleElementId,c.maps.bubbleSelectionClass,o,"BubbleselectionMapStyle"),c.bubbleCollection.push({LayerIndex:r,BubbleIndex:n,DataIndex:l,element:o,center:{x:k.cx,y:k.cy}});var y=0!==s.animationDuration||"Enable"===t.animationMode||(0,t.isNullOrUndefined)(c.maps.zoomModule);a=c.maps.zoomSettings.zoomFactor>1&&!(0,t.isNullOrUndefined)(c.maps.zoomModule)&&!c.maps.isTileMap?ze(c.maps,s,y):Ee(c.maps,s,y);var f=e.dataSource,b=a.scale,S=a.location,x=new j(c.maps.isTileMap?(k.cx+c.maps.translatePoint.x)*c.maps.tileZoomLevel:(k.cx+S.x)*b,c.maps.isTileMap?(k.cy+c.maps.translatePoint.y)*c.maps.tileZoomLevel:(k.cy+S.y)*b);o.setAttribute("transform","translate( "+x.x+" "+x.y+" )");var O=f.length-1===l?"bubble":null;"Square"===e.bubbleType?(x.x+=v,x.y+=v*("Mercator"===c.maps.projectionType?1:-1)):v=0,(e.animationDuration>0||"Enable"===t.animationMode)&&Qe(o,e.animationDelay,e.animationDuration,x,c.maps,O,v)}}))}},e.prototype.getPoints=function(e,i){return(0,t.isNullOrUndefined)(e.map)?i=e.point:e.map((function(e){i.push(new M(e.point.x,e.point.y))})),i},e.prototype.bubbleClick=function(e){var i=e.target.id;if(-1!==i.indexOf("_LayerIndex_")){var o=this.getbubble(i);if(!(0,t.isNullOrUndefined)(o)){var a={cancel:!1,name:zi,data:o,maps:this.maps,target:i,x:e.clientX,y:e.clientY};this.maps.trigger(zi,a)}}},e.prototype.getbubble=function(e){var t=e.split("_LayerIndex_"),i=parseInt(t[1].split("_")[0],10);if(e.indexOf("_BubbleIndex_")>-1){var o=this.maps.layers[i],a=parseInt(t[1].split("_BubbleIndex_")[1],10),n=parseInt(t[1].split("_BubbleIndex_")[1].split("_dataIndex_")[1],10);if(!isNaN(a))return o.bubbleSettings[a].dataSource[n]}return null},e.prototype.bubbleMove=function(e){var i=e.target.id;if(-1!==i.indexOf("_LayerIndex_")){var o=this.getbubble(i);if(!(0,t.isNullOrUndefined)(o)){var a={cancel:!1,name:Bi,data:o,maps:this.maps,target:i,x:e.clientX,y:e.clientY};this.maps.trigger(Bi,a)}}},e.prototype.getModuleName=function(){return"Bubble"},e.prototype.destroy=function(){this.bubbleCollection=[],this.maps=null},e}(),oo=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,i,o,a,n){var l=this,r=0,s=0,d=0;e.translateType="marker";var p=e.layersCollection[o];this.markerSVGObject=e.renderer.createGroup({id:e.element.id+"_Markers_Group",class:"GroupElement"}),this.markerSVGObject.style.pointerEvents="auto";var h=(0,t.createElement)("div",{id:e.element.id+"_LayerIndex_"+o+"_Markers_Template_Group",className:e.element.id+"_template"});h.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 m,u=0!==p.animationDuration||"Enable"===t.animationMode||(0,t.isNullOrUndefined)(e.zoomModule);e.isTileMap||(m=!(0,t.isNullOrUndefined)(e.zoomModule)&&e.zoomSettings.zoomFactor>1?ze(e,p,u):Ee(e,p,u)),Array.prototype.forEach.call(p.markerSettings,(function(u,y){var f=u.dataSource;(0,t.isNullOrUndefined)(u.dataSource)||Array.prototype.forEach.call(f,(function(b,v){e.markerNullCount=y>0&&0===v?0:e.markerNullCount;var S={cancel:!1,name:_i,fill:u.fill,height:u.height,width:u.width,imageUrl:u.imageUrl,shape:u.shape,template:u.template,data:b,maps:e,marker:u,border:u.border,colorValuePath:u.colorValuePath,shapeValuePath:u.shapeValuePath,imageUrlValuePath:u.imageUrlValuePath};e.trigger("markerRendering",S,(function(x){S=J(S=Y(S,b),b);var O=(0,t.isNullOrUndefined)(u.longitudeValuePath)?(0,t.isNullOrUndefined)(b.longitude)?(0,t.isNullOrUndefined)(b.Longitude)?null:parseFloat(b.Longitude):parseFloat(b.longitude):Number(X(b,u.longitudeValuePath)),C=(0,t.isNullOrUndefined)(u.latitudeValuePath)?(0,t.isNullOrUndefined)(b.latitude)?(0,t.isNullOrUndefined)(b.Latitude)?null:parseFloat(b.Latitude):parseFloat(b.latitude):Number(X(b,u.latitudeValuePath)),M=u.offset;if(!S.cancel&&u.visible&&!(0,t.isNullOrUndefined)(O)&&!(0,t.isNullOrUndefined)(C)){var _=e.element.id+"_LayerIndex_"+o+"_MarkerIndex_"+y+"_dataIndex_"+v,L=e.isTileMap?g(new j(O,C),a,e.tileTranslatePoint,!0):c(C,O,a,p,e);e.isTileMap&&(m="SubLayer"===p.type&&(0,t.isNullOrUndefined)(e.zoomModule)?L=g(new j(O,C),e.tileZoomLevel,e.tileTranslatePoint,!0):new Object);var P="AddMarker"===n?e.scale:m.scale,w="AddMarker"===n?e.translatePoint:m.location;!S.template||isNaN(L.x)||isNaN(L.y)?S.template||isNaN(L.x)||isNaN(L.y)||(r++,ie(S,u,f,v,L,w,_,M,P,e,l.markerSVGObject)):(d++,oe(S,undefined,_,b,y,h,L,w,P,M,e),e.renderReactTemplates())}s+=isNaN(C)||isNaN(O)?1:0,d+=S.cancel?1:0,r+=S.cancel?1:0,e.markerNullCount=(0,t.isNullOrUndefined)(O)||(0,t.isNullOrUndefined)(C)?e.markerNullCount+1:e.markerNullCount;var T=f.length-e.markerNullCount,I=!1;l.markerSVGObject.childElementCount===T-d-s&&"Template"!==n&&(i.appendChild(l.markerSVGObject),p.markerClusterSettings.allowClustering&&(e.svgObject.appendChild(l.markerSVGObject),e.element.appendChild(e.svgObject),-1!==p.urlTemplate.indexOf("openstreetmap")&&(0,t.isNullOrUndefined)(p.shapeData)&&e.zoomSettings.enable?(I=Q(p,l.markerSVGObject,e,o,l.markerSVGObject,i,!0,!1),i.appendChild(l.markerSVGObject)):I=Q(p,l.markerSVGObject,e,o,l.markerSVGObject,i,!0,!1),e.renderReactTemplates())),h.childElementCount===T-r-s&&Ae(e.element.id+"_Secondary_Element")&&(Ae(e.element.id+"_Secondary_Element").appendChild(h),e.checkInitialRender&&p.markerClusterSettings.allowClustering&&!I&&(Q(p,h,e,o,l.markerSVGObject,i,!1,!1),e.renderReactTemplates()))}))}))}))},e.prototype.calculateIndividualLayerMarkerZoomLevel=function(e,t,i){var o,a,n=Math.abs(this.maps.baseMapBounds.latitude.max-this.maps.baseMapBounds.latitude.min),l=Math.abs(this.maps.baseMapBounds.longitude.max-this.maps.baseMapBounds.longitude.min);o=(o=Math.floor(Math.log(t/n)))>i?i:o,a=(a=Math.floor(Math.log(e/l)))>i?i:a;var r=Math.min(o,a),s=Math.min(r,i-1);return this.maps.isTileMap||Ct(s,this.maps),s},e.prototype.calculateZoomCenterPositionAndFactor=function(e){if(!(0,t.isNullOrUndefined)(this.maps))if(this.maps.zoomSettings.shouldZoomInitially&&this.maps.markerModule){var i,o,a,n,l=void 0,r=void 0,s=void 0,d=this.maps.zoomSettings.maxZoom,p=this.maps.mapAreaRect.width,h=this.maps.mapAreaRect.height;if(this.maps.markerZoomedState=this.maps.markerZoomedState?this.maps.markerZoomedState:(0,t.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 l=e.dataSource;!(0,t.isNullOrUndefined)(l)&&l.length>0&&Array.prototype.forEach.call(l,(function(e,l){var r=(0,t.isNullOrUndefined)(e.latitude)?(0,t.isNullOrUndefined)(e.Latitude)?null:parseFloat(e.Latitude):parseFloat(e.latitude),s=(0,t.isNullOrUndefined)(e.longitude)?(0,t.isNullOrUndefined)(e.Longitude)?null:parseFloat(e.Longitude):parseFloat(e.longitude);(0,t.isNullOrUndefined)(r)||(0,t.isNullOrUndefined)(s)||(i=(0,t.isNullOrUndefined)(i)&&0===l?s:i,o=(0,t.isNullOrUndefined)(o)&&0===l?r:o,a=(0,t.isNullOrUndefined)(a)&&0===l?r:a,n=(0,t.isNullOrUndefined)(n)&&0===l?s:n,i>s&&(i=s),a>r&&(a=r),n<s&&(n=s),o<r&&(o=r))}))}))})),!((0,t.isNullOrUndefined)(a)||(0,t.isNullOrUndefined)(i)||(0,t.isNullOrUndefined)(n)||(0,t.isNullOrUndefined)(o))){r=(a+o)/2,s=(i+n)/2,this.maps.markerCenterLatitude=r,this.maps.markerCenterLongitude=s,((0,t.isNullOrUndefined)(this.maps.markerZoomCenterPoint)||this.maps.markerZoomedState)&&(this.maps.markerZoomCenterPoint={latitude:r,longitude:s});var m=void 0;this.maps.isTileMap||0===this.maps.baseMapRectBounds.min.x?(l=Mt(a,o,i,n,p,h,this.maps,!1),this.maps.isTileMap?m=(0,t.isNullOrUndefined)(this.maps.markerZoomFactor)||(0,t.isNullOrUndefined)(this.maps.mapScaleValue)?l:this.maps.mapScaleValue>1&&1!==this.maps.markerZoomFactor?this.maps.mapScaleValue:l:(m=(0,t.isNullOrUndefined)(this.maps.mapScaleValue)?l:1!==Math.floor(this.maps.scale)&&this.maps.mapScaleValue!==l&&(0,t.isNullOrUndefined)(this.maps.shouldZoomCurrentFactor)?this.maps.mapScaleValue:l)!==this.maps.mapScaleValue||1!==this.maps.markerZoomFactor&&1!==this.maps.mapScaleValue||this.maps.enablePersistence||(m=l)):(l=this.calculateIndividualLayerMarkerZoomLevel(p,h,d),m=(0,t.isNullOrUndefined)(this.maps.mapScaleValue)?l:this.maps.mapScaleValue!==l?this.maps.mapScaleValue:l),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 i=e.target.id;if(-1===i.indexOf(this.maps.element.id)){var o=e.target.closest("."+this.maps.element.id+"_marker_template_element");!(0,t.isNullOrUndefined)(o)&&o.id.indexOf("_MarkerIndex_")>-1&&(i=o.id)}if(!(-1===i.indexOf("_LayerIndex_")||i.indexOf("_cluster_")>0)){var a=this.getMarker(i);if(!(0,t.isNullOrUndefined)(a)){a.marker.enableDrag&&(document.getElementById(this.maps.element.id+"_svg").style.cursor="grabbing");var n={cancel:!1,name:Pi,data:a.data,maps:this.maps,marker:a.marker,target:i,x:e.clientX,y:e.clientY,latitude:a.data.latitude||a.data.Latitude,longitude:a.data.longitude||a.data.Longitude,value:a.data.name};if(this.maps.trigger(Pi,n),a.marker.enableDrag){var l=!1,r=parseInt(i.split("_LayerIndex_")[1].split("_")[0],10),s=parseInt(i.split("_MarkerIndex_")[1].split("_")[0],10),d=parseInt(i.split("_dataIndex_")[1].split("_")[0],10),p=this.maps.layers[r].markerSettings[s];if(this.sameMarkerData.length>0&&(l=this.sameMarkerData[0].data.filter((function(e){return e.index===d})).length>0&&this.sameMarkerData[0].layerIndex===r&&this.sameMarkerData[0].markerIndex===s),!l){var h={name:wi,x:e.clientX,y:e.clientY,latitude:a.data.latitude||a.data.Latitude,longitude:a.data.longitude||a.data.Longitude,layerIndex:r,markerIndex:s,dataIndex:d};this.maps.trigger(wi,h),this.maps.markerDragArgument={targetId:i,x:e.clientX,y:e.clientY,latitude:a.data.latitude||a.data.Latitude,longitude:a.data.longitude||a.data.Longitude,shape:(0,t.isNullOrUndefined)(p.shapeValuePath)?p.shape:p.dataSource[d][p.shapeValuePath],layerIndex:r,markerIndex:s,dataIndex:d}}}}}},e.prototype.markerClusterClick=function(e){var i=e.target.id;if(-1!==i.indexOf("_LayerIndex_")&&-1!==i.indexOf("_cluster_")){var o=this.getMarker(i);if(!(0,t.isNullOrUndefined)(o)){o.clusterCollection.length>0&&this.maps.markerClusterExpand&&(Re(this.maps.element.id+"_mapsTooltip")&&this.maps.mapsTooltipModule.tooltipTargetID.indexOf("_MarkerIndex_")>-1&&ke(this.maps.element.id+"_mapsTooltip"),this.sameMarkerData.length>0&&!this.maps.markerClusterExpandCheck?(this.maps.markerClusterExpandCheck=!0,ee(this.sameMarkerData,this.maps)):(this.sameMarkerData=o.clusterCollection,this.maps.markerClusterExpandCheck=!1,te(this.sameMarkerData,this.maps,this.markerSVGObject,!0)));var a={cancel:!1,name:Ii,data:o,maps:this.maps,target:i,x:e.clientX,y:e.clientY,latitude:o.data.latitude||o.data.Latitude,longitude:o.data.longitude||o.data.Longitude,markerClusterCollection:o.markCollection};this.maps.trigger(Ii,a)}}},e.prototype.getMarker=function(e){var t,i,o=e.split("_LayerIndex_"),a=parseInt(o[1].split("_")[0],10),n=this.maps.layers[a],l=[],r=[];if(this.maps.markerClusterExpand=n.markerClusterSettings.allowClusterExpand,e.indexOf("_MarkerIndex_")>-1){var s=parseInt(o[1].split("_MarkerIndex_")[1].split("_")[0],10),d=parseInt(o[1].split("_dataIndex_")[1].split("_")[0],10);if(i=n.markerSettings[s],!isNaN(s)){t=i.dataSource[d];var p=[];if(!i.template&&e.indexOf("_cluster_")>-1&&this.maps.layers[a].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=document.getElementById(e.indexOf("_datalabel_")>-1?"Balloon"===n.markerClusterSettings.shape?e.split("_datalabel_")[0]+"_Group":e.split("_datalabel_")[0]:"Balloon"===n.markerClusterSettings.shape?e+"_Group":e),m="Balloon"===n.markerClusterSettings.shape?h.children[0].textContent.split(",").map(Number):h.textContent.split(",").map(Number);p=[];for(var c=0,u=m;c<u.length;c++){var g=u[c];p.push({data:i.dataSource[g],index:g}),l.push(i.dataSource[g])}!1,r.push({data:p,layerIndex:a,markerIndex:s,dataIndex:d,targetClusterIndex:+(e.split("_cluster_")[1].indexOf("_datalabel_")>-1?e.split("_cluster_")[1].split("_datalabel_")[0]:e.split("_cluster_")[1]),isClusterSame:false})}return{marker:i,data:t,clusterCollection:r,markCollection:l}}}return null},e.prototype.markerMove=function(e){var i=e.target.id;if(!(-1===i.indexOf("_LayerIndex_")||i.indexOf("_cluster_")>0)){var o=this.getMarker(i);if(!(0,t.isNullOrUndefined)(o)){o.marker.enableDrag&&(document.getElementById(this.maps.element.id+"_svg").style.cursor=(0,t.isNullOrUndefined)(this.maps.markerDragArgument)?"pointer":"grabbing");var a={cancel:!1,name:Fi,data:o.data,maps:this.maps,target:i,x:e.clientX,y:e.clientY};this.maps.trigger(Fi,a)}}},e.prototype.markerClusterMouseMove=function(e){var i=e.target.id;if(-1!==i.indexOf("_LayerIndex_")&&-1!==i.indexOf("_cluster_")){var o=this.getMarker(i);if(this.maps.markerClusterExpand&&(e.target.style.cursor="pointer"),!(0,t.isNullOrUndefined)(o)){var a={cancel:!1,name:ki,data:o.data,maps:this.maps,target:i,x:e.clientX,y:e.clientY};this.maps.trigger(ki,a)}}},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}(),ao=function(){function e(e){}return e.prototype.polygonRender=function(e,i,o){var a=e.layersCollection[i],n=e.renderer.createGroup({id:e.element.id+"_LayerIndex_"+i+"_Polygons_Group"});return a.polygonSettings.polygons.map((function(l,r){var s=e.renderer.createGroup({id:e.element.id+"_LayerIndex_"+i+"_Polygons_Group_"+r}),d=l.points;if(!(0,t.isNullOrUndefined)(l.points)&&l.points.length>0){var p=u(e,o,a,d),h=new F(e.element.id+"_LayerIndex_"+i+"_PolygonIndex_"+r,l.fill,l.borderWidth/o,l.borderColor,l.opacity,l.borderOpacity,"",p),m=e.renderer.drawPath(h);ae(e.selectedPolygonElementId,e.polygonSelectionClass,m,"PolygonselectionMapStyle"),s.appendChild(m),n.appendChild(s)}})),n},e.prototype.getModuleName=function(){return"Polygon"},e.prototype.destroy=function(){},e}(),no=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,i,o,a){for(var n,l=0;l<((0,t.isNullOrUndefined)(e)?0:e.length);l++){var r=e[l],s=!(0,t.isNullOrUndefined)(r[a])&&isNaN(r[a])&&"string"==typeof r[a]?r[a].toLowerCase():r[a];if(o=(0,t.isNullOrUndefined)(o)||"string"!=typeof o?o:o.toString(),s===((0,t.isNullOrUndefined)(o)||"string"!=typeof o?o:o.toLowerCase())){n=r;break}}return n},e.prototype.renderLabel=function(e,i,o,a,n,l,r,s){var d,p,h,m,c,u,g,y,f,b=this,v=e.dataLabelSettings,S=e.dataLabelSettings.textStyle,x=e.dataLabelSettings,O=e.dataLabelSettings.labelPath,C=[[]],_=0,L=0,P=o,w="",F=0,k=!1,E=o.properties,z=this.maps.element.id+"_LayerIndex_"+i+"_shapeIndex_"+r+"_LabelIndex_"+r,B=new M(0,0),A=a[r];S.fontFamily="material"!==this.maps.theme.toLowerCase()?this.maps.themeStyle.labelFontFamily:S.fontFamily,S.fontWeight=S.fontWeight||this.maps.themeStyle.fontWeight,S.size=S.size||this.maps.themeStyle.fontSize,o=(0,t.isNullOrUndefined)(A)?null:A.property;var U,j,R="[object Array]"===Object.prototype.toString.call(e.shapePropertyPath)?e.shapePropertyPath:[e.shapePropertyPath],V=0!==e.animationDuration||"Enable"===t.animationMode||(0,t.isNullOrUndefined)(this.maps.zoomModule),H=this.maps.isTileMap?new Object:this.maps.zoomSettings.zoomFactor>1&&!(0,t.isNullOrUndefined)(this.maps.zoomModule)?ze(this.maps,e,V):Ee(this.maps,e,V),G=this.maps.isTileMap?this.maps.scale:H.scale,q=this.maps.isTileMap?this.maps.translatePoint:H.location,X=this.maps.zoomTranslatePoint,Y=(0,t.isNullOrUndefined)(this.maps.scale)?1:Math.floor(this.maps.scale),J=this.maps.zoomSettings.enable?!(0,t.isNullOrUndefined)(this.maps.zoomShapeCollection)&&this.maps.zoomShapeCollection.length>0&&!this.maps.isAddLayer:this.maps.zoomSettings.enable;this.maps.translateType="labels";for(var Q=0;Q<R.length&&!(E[R[Q]]&&(U=R[Q],c=this.getDataLabel(e.dataSource,e.shapeDataPath,P.properties[U],e.shapeDataPath)));Q++);if(c=this.getDataLabel(e.dataSource,e.shapeDataPath,P.properties[U],e.shapeDataPath),!(0,t.isNullOrUndefined)(A)&&!(0,t.isNullOrUndefined)(A.property))if(C=[[]],a[r]._isMultiPolygon||"Point"===a[r].type||"MultiPoint"===a[r].type){if("Point"!==a[r].type&&"MultiPoint"!==a[r].type){var K=a[r];for(Q=0;Q<K.length;Q++)C.push(this.getPoint(K[Q],[])),L<(F=C[C.length-1].length)&&(L=F,_=C.length-1)}}else C.push(this.getPoint(a[r],[])),L<(F=C[C.length-1].length)&&(L=F,_=C.length-1);if(w=(0,t.isNullOrUndefined)(c)?P.properties[O]:(0,t.isNullOrUndefined)(c[O])?c[e.shapeDataPath]:c[O].toString(),"[object Array]"===Object.prototype.toString.call(e.shapePropertyPath)&&(0,t.isNullOrUndefined)(w)&&!(0,t.isNullOrUndefined)(e.dataSource)&&0===e.dataSource.length)for(var $=0;$<e.shapePropertyPath.length;$++)if(P.properties[e.shapePropertyPath[$]]){w=P.properties[e.shapePropertyPath[$]];break}(0,t.isNullOrUndefined)(w)&&""!==e.dataLabelSettings.template&&0===e.dataSource.length&&(w=P.properties[e.shapePropertyPath]),(0,t.isNullOrUndefined)(w)&&!(0,t.isNullOrUndefined)(e.dataSource)&&e.dataSource.length>0&&(w="");var ee=w,te=this.maps.projectionType,ie=g=we(C[_],te,e.geometryType);if(!(0,t.isNullOrUndefined)(w)&&!(0,t.isNullOrUndefined)(g)){if(J&&Y>1&&!this.maps.zoomNotApplied&&""===v.template){if(i>0)for(var oe=0;oe<this.maps.zoomLabelPositions.length;oe++)if(this.maps.zoomLabelPositions[oe].dataLabelText===w){u=r,r=oe,k=!0;break}y=g.x,f=g.y,g.x=(g.x+X.x)*G,g.y=(g.y+X.y)*G}g.y="Mercator"===this.maps.projectionType||"Normal"===e.geometryType?g.y:-g.y,(0,t.isNullOrUndefined)(this.maps.format)||isNaN(Number(w))||isNaN(parseFloat(w))||this.maps.useGroupingSeparator&&(w=je(this.maps,parseFloat(w)),(0,t.isNullOrUndefined)(c)||(c[O]=w));var ae={name:Ni,maps:this.maps,cancel:!1,border:{color:v.border.color,width:v.border.width,opacity:v.border.opacity},datalabel:v,fill:v.fill,template:v.template,text:w,offsetX:0,offsetY:0};this.maps.trigger("dataLabelRendering",ae,(function(o){if(!ae.cancel){var a,v=J&&Y>1&&!b.maps.zoomNotApplied&&b.maps.zoomShapeCollection.length>r?b.maps.dataLabelShape[r]*G:(g.rightMax.x-g.leftMax.x)*G;(0,t.isNullOrUndefined)(b.maps.dataLabelShape)||b.maps.isReset||(j=ie.rightMax.x-ie.leftMax.x,b.maps.dataLabelShape.push(j)),ae.text===w||ae.cancel||(w=ae.text);var O=T(w,S),M=w,L=O,F=g.y-O.height/2,E=g.y+O.height/2,A=(g.y+q.y)*G-O.height/2,U=(g.y+q.y)*G+O.height/2;if((a=Le(C[_],F,E)).length>5&&"MultiPolygon"!==P.geometry.type&&"MultiPolygon"!==P.type){var R=we(a,te,e.geometryType);J&&Y>1&&!b.maps.zoomNotApplied&&""===ae.template&&(R.x=(b.maps.zoomLabelPositions[r].location.x+X.x)*G,R.y=(b.maps.zoomLabelPositions[r].location.y+X.y)*G),y=R.x,g.x=R.x,v=J&&Y>1&&!b.maps.zoomNotApplied&&b.maps.zoomShapeCollection.length>r?b.maps.dataLabelShape[r]*G:(R.rightMax.x-R.leftMax.x)*G>0?(R.rightMax.x-R.leftMax.x)*G:v}var V,H=(g.x+q.x)*G+O.width/2,Q=(g.x+q.x)*G-O.width/2;if(b.value[r]={rightWidth:H,leftWidth:Q,heightTop:A,heightBottom:U},""!==ae.template){var K=(d=Ze(ae.template,b.maps))?d((0,t.isNullOrUndefined)(c)?P.properties:c,b.maps,ae.template,b.maps.element.id+"_LabelTemplate",!1):document.createElement("div");K.innerHTML=d?"":ae.template,V=W(K,z,(0,t.isNullOrUndefined)(c)?P.properties:c),b.maps.isTileMap?(V.style.left=(g.x+q.x)*G-O.width/2+"px",V.style.top=(g.y+q.y)*G-O.height+"px"):(V.style.left=Math.abs(b.maps.baseMapRectBounds.min.x-g.x)*G+o.offsetX+"px",V.style.top=Math.abs(b.maps.baseMapRectBounds.min.y-g.y)*G+o.offsetY+"px"),l.appendChild(V)}else{if("Trim"===x.smartLabelMode)L=T(M=Ie(v,"number"==typeof w?w.toString():w,S,null,!0),S),p=new I(z,B.x,B.y,"middle",M,"","");if("None"===x.smartLabelMode&&(p=new I(z,B.x,B.y,"middle",w,"","")),"Hide"===x.smartLabelMode&&(w=v>=O.width?w:"",p=new I(z,B.x,B.y,"middle",w,"","")),w=p.text,"Hide"===x.intersectionAction){for(var $=0;$<s.length;$++)if(!(0,t.isNullOrUndefined)(s[$])&&!(b.value[r].leftWidth>s[$].rightWidth||b.value[r].rightWidth<s[$].leftWidth||b.value[r].heightTop>s[$].heightBottom||b.value[r].heightBottom<s[$].heightTop)){w="";break}s.push(b.value[r]),p=new I(z,B.x,B.y,"middle",w,"","")}if("Trim"===x.intersectionAction){for(var oe=0;oe<s.length;oe++)if(!(0,t.isNullOrUndefined)(s[oe]))if(s[oe].rightWidth<b.value[r].leftWidth||s[oe].leftWidth>b.value[r].rightWidth||s[oe].heightBottom<b.value[r].heightTop||s[oe].heightTop>b.value[r].heightBottom)M=w,0;else{if(b.value[r].leftWidth>s[oe].leftWidth){M=Ie((v=s[oe].rightWidth-b.value[r].leftWidth)-(b.value[r].rightWidth-b.value[r].leftWidth),w,S,null,!0);break}if(b.value[r].leftWidth<s[oe].leftWidth){v=b.value[r].rightWidth-s[oe].leftWidth,M=Ie(Math.abs(v-(b.value[r].rightWidth-b.value[r].leftWidth)),w,S,null,!0);break}}L=T(M,S),s.push(b.value[r]),p=new I(z,B.x,B.y,"middle",M,"","")}if("None"===x.intersectionAction&&(p=new I(z,B.x,B.y,"middle",w,"","")),M.length>1){var ne=ae.border;if(ne.width>1){var le=ae.fill,re=x.opacity,se=x.rx,de=x.ry,pe=void 0,he=void 0;J&&Y>1&&!b.maps.zoomNotApplied?(pe=g.x-O.width/2,he=g.y-O.height/2-5):(pe=(g.x+q.x)*G-O.width/2,he=(g.y+q.y)*G-O.height/2),ne.opacity=(0,t.isNullOrUndefined)(ne.opacity)?re:ne.opacity;var me=new N(b.maps.element.id+"_LayerIndex_"+i+"_shapeIndex_"+r+"_rectIndex_"+r,le,ne,re,new Z(pe+o.offsetX,he+o.offsetY,O.width,O.height),se,de);(m=b.maps.renderer.drawRectangle(me)).setAttribute("visibility",e.dataLabelSettings.animationDuration>0||"Enable"===t.animationMode?"hidden":"visibile"),n.appendChild(m)}}(h=D(p,S,S.color||b.maps.themeStyle.dataLabelFontColor,n)).setAttribute("aria-label",w),h.setAttribute("role","region"),h.setAttribute("visibility",e.dataLabelSettings.animationDuration>0||"Enable"===t.animationMode?"hidden":"visibile"),J&&Y>1&&!b.maps.zoomNotApplied?(h.setAttribute("transform","translate( "+(g.x+o.offsetX)+" "+(g.y+o.offsetY)+" )"),g.x=y,g.y=f):h.setAttribute("transform","translate( "+((g.x+q.x)*G+o.offsetX)+" "+((g.y+q.y)*G+L.height/2+o.offsetY)+" )"),n.appendChild(h)}b.dataLabelCollections.push({location:{x:g.x+o.offsetX,y:g.y+o.offsetY},element:(0,t.isNullOrUndefined)(V)?h:V,layerIndex:i,shapeIndex:k?u:r,labelIndex:k?u:r,dataLabelText:ee}),l.childElementCount>0&&!b.maps.element.contains(l)&&(document.getElementById(b.maps.element.id+"_Secondary_Element").appendChild(l),b.maps.renderReactTemplates()),(e.dataLabelSettings.animationDuration>0||"Enable"===t.animationMode)&&((0,t.isNullOrUndefined)(h)||(b.datalabelAnimate(h,x.animationDuration,S.opacity,!1),(0,t.isNullOrUndefined)(m)||b.datalabelAnimate(m,x.animationDuration,x.opacity,!0)))}}))}},e.prototype.datalabelAnimate=function(e,i,o,a){var n=0;new t.Animation({}).animate(e,{duration:0===i&&"Enable"===t.animationMode?1e3:i,delay:0,progress:function(t){t.timeStamp>t.delay&&(n=(t.timeStamp-t.delay)/t.duration,e.setAttribute("style","user-select: none; visibility: visible;"),e.setAttribute(a?"fill-opacity":"opacity",(o*n).toString()))},end:function(){e.style.visibility="visible",e.setAttribute(a?"fill-opacity":"opacity",o.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 M(e.point.x,e.point.y))}))})):Array.prototype.forEach.call(e,(function(e){t.push(new M(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}(),lo=function(){function e(e){this.maps=e}return e.prototype.renderNavigation=function(e,i,o){var a;if(!(0,t.isNullOrUndefined)(this.maps)){var n=void 0,l=e.navigationLineSettings,r=void 0,s=[],d=void 0,p=void 0,h=void 0,m=void 0,u=void 0,y=void 0,f=void 0,b=void 0,v=void 0,S=void 0,x=void 0,O=void 0,C=void 0,_=void 0,L=void 0,P=void 0,w=void 0,T=void 0,I=void 0;a=this.maps.renderer.createGroup({id:this.maps.element.id+"_LayerIndex_"+o+"_line_Group"});for(var k=0;k<l.length;k++){if(d=l[k].latitude,r=l[k].longitude,p=!(0,t.isNullOrUndefined)(l[k].visible)&&l[k].visible,h=(0,t.isNullOrUndefined)(l[k].angle)?0:l[k].angle,m=l[k].width||1,u=l[k].color,y=l[k].dashArray,O=l[k].arrowSettings,v=!(0,t.isNullOrUndefined)(O)&&O.showArrow,!(0,t.isNullOrUndefined)(r)&&!(0,t.isNullOrUndefined)(d)&&r.length===d.length&&p)for(var N=0;N<r.length;N++){var E=this.maps.isTileMap?g(new M(r[N],d[N]),i,this.maps.tileTranslatePoint,!0):c(d[N],r[N],i,e,this.maps);s.push(E)}T=this.maps.renderer.createGroup({id:this.maps.element.id+"_LayerIndex_"+o+"_NavigationGroup"+k});for(var z=0;z<s.length-1;z++){h=1<(h=-1>h?-1:h)?1:h;var B=this.maps.element.id+"_LayerIndex_"+o+"_NavigationIndex_"+k+"_Line"+z,A=this.convertRadius(s[z],s[z+1]);if(h<=1&&h>0&&(b=0,s[z].x>s[z+1].x&&(b=1)),h>=-1&&h<0&&(b=1,s[z].x>s[z+1].x&&(b=0)),v){S=O.color,x=O.size,w=(0,t.isNullOrUndefined)(O.offSet)?0:O.offSet;var U=Math.round(x/2);_="Start"===(C=O.position)?"url(#triangle"+k+")":null,L="End"===C?"url(#triangle"+k+")":null,0!==P&&0===h&&(P="Start"===C?w:-w),P=(0,t.isNullOrUndefined)(P)?0:P;var j=this.maps.element.id+"_triangle",Z=this.maps.renderer.createDefs();Z.innerHTML+='<marker id="triangle'+k+'"></marker>';var R=Z.querySelector("#triangle"+k);R.setAttribute("markerWidth",x.toString()),R.setAttribute("markerHeight",x.toString()),R.setAttribute("refX",(U-P).toString()),R.setAttribute("refY",U.toString()),R.setAttribute("orient","auto"),f=new F(j,S,m,u,1,1,y,"M 0,0 L 0,"+x+" L "+U+", "+U+" Z"),n=this.maps.renderer.drawPath(f),R.appendChild(n),Z.appendChild(R),T.appendChild(Z)}if(I=0===(h=Math.abs(h))?"M "+s[z].x+","+s[z].y+"L "+s[z+1].x+","+s[z+1].y+" ":"M "+s[z].x+","+s[z].y+" A "+(A/2+(1-h)*A/(10*h))+" "+(A/2+(1-h)*A/(10*h))+" 0,0,"+b+" , "+s[z+1].x+","+s[z+1].y+" ",f=new F(B,"none",m,u,1,1,y,I),n=this.maps.renderer.drawPath(f),!(0,t.isNullOrUndefined)(C))"Start"===C?n.setAttribute("marker-start",_):n.setAttribute("marker-end",L);ae(this.maps.selectedNavigationElementId,this.maps.navigationSelectionClass,n,"navigationlineselectionMapStyle"),T.appendChild(n),a.appendChild(T)}s=[]}}return a},e.prototype.convertRadius=function(e,t){var i=t.x-e.x,o=t.y-e.y;return Math.sqrt(Math.pow(i,2)+Math.pow(o,2))},e.prototype.getModuleName=function(){return"NavigationLine"},e.prototype.destroy=function(){this.maps=null},e}(),ro=function(){function e(e){this.legendBorderRect=new Z(0,0,0,0),this.initialMapAreaRect=new Z(0,0,0,0),this.legendTotalRect=new Z(0,0,0,0),this.totalPages=[],this.page=0,this.currentPage=0,this.legendItemRect=new Z(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,i=this.maps,o=i.legendSettings;this.legendCollection=[];var n=i.mapAreaRect.y;if(this.legendRenderingCollections=[],Array.prototype.forEach.call(i.layersCollection,(function(i,a){if(!(0,t.isNullOrUndefined)(i.shapeData)){var n=i.shapeData.features,l=i.shapeDataPath,r=i.shapePropertyPath,s=i.dataSource,d=void 0,p=void 0;if("Layers"===o.type&&i.visible)d=i.shapeSettings.colorValuePath,p=i.shapeSettings.colorMapping,e.getLegends(a,n,p,s,l,d,r);else if("Bubbles"===o.type)for(var h=0,m=i.bubbleSettings;h<m.length;h++){var c=m[h];c.visible&&(d=c.colorValuePath,p=c.colorMapping,s=c.dataSource,e.getLegends(a,n,p,s,l,d,r))}}"Markers"===o.type&&e.getMarkersLegendCollections(a,i.markerSettings)})),this.legendCollection.length>0)for(var l=0;l<this.legendCollection.length;l++){var r=this.legendCollection[l],s={name:Ui,cancel:!1,fill:r.fill,shape:o.shape,shapeBorder:o.shapeBorder,text:"number"==typeof r.text?r.text.toString():r.text};i.trigger("legendRendering",s),r.fill=s.fill,r.shape=s.shape,r.shapeBorder=s.shapeBorder,r.text=s.text,s.cancel&&(this.legendCollection.splice(l,1),l--)}var d=i.legendSettings.title.text,p=i.legendSettings.titleStyle;if(this.legendCollection.length>0){var h,m,c=o.mode,u=0,g=0,y=0,f=0,b=o.shapePadding,v=o.shapeHeight,S=o.shapeWidth,x=[],O=[],C=o.position,M=o.labelDisplayMode,_="None"===o.orientation?"Top"===C||"Bottom"===C?"Horizontal":"Vertical":o.orientation,L=o.width.length>1?o.width.indexOf("%")>-1?i.availableSize.width/100*parseInt(o.width,10):parseInt(o.width,10):null,P=o.height.length>1?o.height.indexOf("%")>-1?i.availableSize.height/100*parseInt(o.height,10):parseInt(o.height,10):null,T=0,I=0,F=w(d,p);if("Interactive"===c){var k=o.textStyle,N=this.legendCollection.length,E="Horizontal"===_?(0,t.isNullOrUndefined)(L)?i.mapAreaRect.width/N:L/N:(0,t.isNullOrUndefined)(L)?25:L,z="Horizontal"===_?(0,t.isNullOrUndefined)(P)?25:P:(0,t.isNullOrUndefined)(P)?i.mapAreaRect.height/N:P/N;T=0,I=F.height+10;var B=o.labelPosition,A=0,U=0,j=10,R=0,D=0,V=0,H=0;for(l=0;l<this.legendCollection.length;l++){T="Horizontal"===_?T+E:T,I="Horizontal"===_?I:I+z;var G=this.legendCollection[l].text,W=new a(0,0);"None"===M?W=w(G,k):"Trim"===M?W=w(G=Ie("Horizontal"===_?E:z,G,k),k):G="",V=Math.max(V,W.height),H=Math.max(H,W.width),W.width>0&&W.height>0&&("Horizontal"===_?(A=T+E/2,U="After"===B?I+z+W.height/2+j:I-j):(A="After"===B?T-W.width/2-j:T+E+W.width/2+j,U=I+z/2+W.height/4)),0===l?(R="Horizontal"===_?T:"After"===B?A-W.width/2:T,D="Horizontal"===_?"After"===B?I:U-W.height/2:I,1===this.legendCollection.length&&(L="Horizontal"===_?Math.abs(T+E-R):E+H+j,P="Horizontal"===_?z+V/2+j:Math.abs(I+z-D))):l===this.legendCollection.length-1&&(L="Horizontal"===_?Math.abs(T+E-R):E+H+j,P="Horizontal"===_?z+V/2+j:Math.abs(I+z-D)),this.legendRenderingCollections.push({fill:this.legendCollection[l].fill,x:T,y:I,width:E,height:z,text:G,textX:A,textY:U,textWidth:W.width,textHeight:W.height,shapeBorder:this.legendCollection[l].shapeBorder})}1===this.legendCollection.length&&(P=z,L=E),this.legendItemRect={x:R,y:D,width:L,height:P}}else{L=(0,t.isNullOrUndefined)(L)?i.mapAreaRect.width:L,P=(0,t.isNullOrUndefined)(P)?i.mapAreaRect.height:P;var q=0;this.page=0;for(l=0;l<this.legendCollection.length;l++){r=this.legendCollection[l];(0,t.isNullOrUndefined)(this.totalPages[this.page])&&(this.totalPages[this.page]={Page:this.page+1,Collection:[]});var X=w(r.text,o.textStyle);if(this.textMaxWidth=Math.max(this.textMaxWidth,X.width),0===l)T=u=10+S/2,I=g=n+F.height+(v>X.height?v/2:X.height/4);else{var Y=X.height>v?X.height:v;if("Horizontal"===_){var J=O[q-1].x+O[q-1].width+10+S;if(J+b+X.width>L){var Q=(O[q-1].y>x[q-1].y+v/2?O[q-1].y:x[q-1].y+v/2)+n;Q+Y>P?(this.getPageChanged(),q=0,x=[],O=[],u=T,g=I):(u=x[0].x,g=Q+Y/2)}else u=J-S/2,g=x[q-1].y}else{var K=O[q-1].y>x[q-1].y+v/2?O[q-1].y:x[q-1].y+v/2;if(K+n+Y>P){var $=O[q-1].x+this.textMaxWidth+10;$+b+X.width>L?(u=T,g=I,O=[],x=[],this.getPageChanged(),q=0):(u=$+S/2,g=x[0].y)}else{u=x[q-1].x,g=K+10+v/2}}}y=u+S/2+b,f=g+X.height/4,x.push({x:u,y:g}),O.push({x:y,y:f,width:X.width,height:X.height/2}),this.totalPages[this.page].Collection.push({DisplayText:r.text,ImageSrc:r.imageSrc,Shape:{x:u,y:g},Text:{x:y,y:f},Fill:r.fill,legendShape:r.shape,shapeBorder:r.shapeBorder,idIndex:l,Rect:{x:x[q].x-S/2,y:x[q].y-v/2<f-X.height?x[q].y-v/2:f-X.height,width:Math.abs(x[q].x-S/2-(y+X.width)),height:v>X.height?v:X.height}}),q++}var ee=this.totalPages[0].Collection;Array.prototype.forEach.call(ee,(function(t,i){var o=new Z(t.Rect.x,t.Rect.y,t.Rect.width,t.Rect.height);0===i&&(h=o.x,m=o.y),e.widthIncrement=Math.max(e.widthIncrement,Math.abs(h-(o.x+o.width))),e.heightIncrement=Math.max(e.heightIncrement,Math.abs(m-(o.y+o.height)))})),L=this.widthIncrement<L?this.widthIncrement:L,P=this.heightIncrement<P?this.heightIncrement:P,this.legendItemRect={x:ee[0].Rect.x,y:ee[0].Rect.y,width:L,height:P}}}},e.prototype.getLegends=function(e,t,i,o,a,n,l){this.getRangeLegendCollection(e,t,i,o,a,n,l),this.getEqualLegendCollection(e,t,i,o,a,n,l),this.getDataLegendCollection(e,t,i,o,a,n,l)},e.prototype.getPageChanged=function(){this.page++,(0,t.isNullOrUndefined)(this.totalPages[this.page])&&(this.totalPages[this.page]={Page:this.page+1,Collection:[]})},e.prototype.legendTextTrim=function(e,t,i,o){var a=t,n=w(t,i).width,l=o-n;if(o>e)for(var r=t.length-1;r>=0;--r){if(l+(n=w(a=t.substring(0,r)+"...",i).width)<=e||a.length<4)return a.length<4&&(a=" "),a}return a},e.prototype.drawLegend=function(){var e,i=this.maps,o=i.legendSettings,a=i.renderer,n={size:o.textStyle.size,color:o.textStyle.color,fontFamily:o.textStyle.fontFamily,fontWeight:o.textStyle.fontWeight,fontStyle:o.textStyle.fontStyle,opacity:o.textStyle.opacity};if(this.legendGroup=a.createGroup({id:i.element.id+"_Legend_Group"}),"Interactive"===o.mode)for(var l=0;l<this.legendRenderingCollections.length;l++){var r=i.element.id+"_Legend_Index_"+l,s=i.element.id+"_Legend_Index_"+l+"_Text",d=this.legendRenderingCollections[l],p=new Z(d.x,d.y,d.width,d.height);0===l&&this.renderLegendBorder();var h=new M(d.textX,d.textY);n.color=null!==n.color?n.color:this.maps.themeStyle.legendTextColor;var m=new N(r,d.fill,d.shapeBorder,o.opacity,p);e=new I(s,h.x,h.y,"middle",d.text,"",""),n.fontFamily=(0,t.isNullOrUndefined)(n.fontFamily)?this.maps.themeStyle.fontFamily:n.fontFamily,n.size=i.themeStyle.legendFontSize||n.size;var c=D(e,n,n.color,this.legendGroup);c.setAttribute("aria-label",d.text),c.setAttribute("role","region");var u=a.drawRectangle(m);this.legendGroup.appendChild(u),!i.legendSettings.toggleLegendSettings.enable||"Layers"!==o.type&&"Markers"!==o.type||this.maintainLegendToggle(l,u,c),this.legendToggle()}else this.drawLegendItem(this.currentPage)},e.prototype.drawLegendItem=function(e){var i=this.maps,o=i.legendSettings,n=10,l=new a(o.shapeWidth,o.shapeHeight),r=i.renderer,s=o.shape;if(e>=0&&e<this.totalPages.length){Ge(this.legendGroup.id,this.maps.element.id)&&(0,t.remove)(Ge(this.legendGroup.id,this.maps.element.id));for(var d=0;d<this.totalPages[e].Collection.length;d++){var p=this.totalPages[e].Collection[d],h=p.shapeBorder,m=r.createGroup({id:i.element.id+"_Legend_Index_"+p.idIndex}),c=p.DisplayText,u="HorizontalLine"===o.shape||"VerticalLine"===o.shape||"Cross"===o.shape?(0,t.isNullOrUndefined)(o.fill)?"#000000":o.fill:h.color,g=("HorizontalLine"===o.shape||"VerticalLine"===o.shape||"Cross"===o.shape)&&0===h.width?1:h.width,y=i.element.id+"_Legend_Shape_Index_"+p.idIndex,f=i.element.id+"_Legend_Text_Index_"+p.idIndex,b=new M(p.Shape.x,p.Shape.y-4),v=new M(p.Text.x,p.Text.y-4),S=new F(y,p.Fill,g,u,o.opacity,(0,t.isNullOrUndefined)(h.opacity)?o.opacity:h.opacity,""),x={fontFamily:o.textStyle.fontFamily,fontStyle:o.textStyle.fontStyle,fontWeight:o.textStyle.fontWeight,size:o.textStyle.size,color:o.textStyle.color,opacity:o.textStyle.opacity};if(x.color=null!==x.color?x.color:this.maps.themeStyle.legendTextColor,x.fontFamily=(0,t.isNullOrUndefined)(x.fontFamily)?this.maps.themeStyle.fontFamily:x.fontFamily,x.size=i.themeStyle.legendFontSize||x.size,x.fontWeight=x.fontWeight||i.themeStyle.fontWeight,0===d&&this.renderLegendBorder(),"Markers"===o.type&&o.useMarkerShape){var O=this.legendCollection[p.idIndex].data[0],C=i.layers[O.layerIndex].markerSettings[O.markerIndex];s=(0,t.isNullOrUndefined)(C.dataSource[O.dataIndex][C.shapeValuePath])||""===C.dataSource[O.dataIndex][C.shapeValuePath]?C.shape:C.dataSource[O.dataIndex][C.shapeValuePath]}"Balloon"===s?m.appendChild(xe(i,S,l,{x:b.x,y:b.y+5},"Legend")):m.appendChild(ot(b,s,l,p.ImageSrc,S));var _=p.Rect.x+p.Rect.width;if(_>this.legendBorderRect.width)c=this.legendTextTrim(this.legendBorderRect.width,c,x,_);var L=D(new I(f,v.x,v.y,"start",c,"",""),x,x.color,m);if(L.setAttribute("aria-label",c),L.setAttribute("role","region"),this.legendGroup.appendChild(m),i.legendSettings.toggleLegendSettings.enable&&("Layers"===o.type||"Markers"===o.type)){var P=m.childNodes[0];this.maintainLegendToggle(p.idIndex,P,L)}if(d===this.totalPages[e].Collection.length-1){var T=void 0,k=n;if(0!==this.page){var E=e+1+"/"+this.totalPages.length,z=o.textStyle,B=w(E,z),A=this.legendItemRect.x+this.legendItemRect.width-B.width-20-20+2,U=this.legendItemRect.x+this.legendItemRect.width,j=U-k-B.width/2-5-4,R=this.legendItemRect.y+this.legendItemRect.height+2.5+n;T=r.createGroup({id:i.element.id+"_Legend_Paging_Group"});var V=r.createGroup({id:i.element.id+"_Legend_Left_Paging_Group"}),H=r.createGroup({id:i.element.id+"_Legend_Right_Paging_Group"}),G=" M "+U+" "+R+" L "+(U-k)+" "+(R-5)+" L "+(U-k)+" "+(R+5)+" z ",W=" M "+A+" "+R+" L "+(A+k)+" "+(R-5)+" L "+(A+k)+" "+(R+5)+" z ",q=new F(i.element.id+"_Left_Page",this.maps.themeStyle.legendTextColor,0,this.maps.themeStyle.legendTextColor,e+1===1?.5:1,1,"",W);V.appendChild(r.drawPath(q));var X=new N(i.element.id+"_Left_Page_Rect","transparent",{},1,new Z(A-5,R-10,20,20),null,null,"",""),Y=r.drawRectangle(X);Y.setAttribute("aria-label","Navigate to the previous legend items"),Y.setAttribute("role","button"),Y.tabIndex=e+1===1?-1:i.tabIndex,e+1===1?(Y.style.cursor="default",Y.style.setProperty("outline","none")):(Y.style.cursor="pointer",Y.style.removeProperty("outline")),V.appendChild(Y),this.wireEvents(V);var J=new F(i.element.id+"_Right_Page",this.maps.themeStyle.legendTextColor,0,this.maps.themeStyle.legendTextColor,e+1===this.totalPages.length?.5:1,1,"",G);H.appendChild(r.drawPath(J));var Q=new N(i.element.id+"_Right_Page_Rect","transparent",{},1,new Z(U-n-5,R-10,20,20),null,null,"","");(Y=r.drawRectangle(Q)).setAttribute("aria-label","Navigate to the next legend items"),Y.setAttribute("role","button"),Y.tabIndex=e+1===this.totalPages.length?-1:i.tabIndex,e+1===this.totalPages.length?(Y.style.cursor="default",Y.style.setProperty("outline","none")):(Y.style.cursor="pointer",Y.style.removeProperty("outline")),H.appendChild(Y),this.wireEvents(H),T.appendChild(V),T.appendChild(H);var K={id:i.element.id+"_Paging_Text",x:j,y:R+B.height/4,fill:this.maps.themeStyle.legendTextColor,"font-size":"14px","font-style":z.fontStyle,"font-family":z.fontFamily,"font-weight":z.fontWeight,"text-anchor":"middle",transform:"",opacity:1,"dominant-baseline":""},$=r.createText(K,E);$.style.cssText="user-select: none;",$.setAttribute("aria-label",E),$.setAttribute("role","region"),T.appendChild($),this.legendGroup.appendChild(T)}this.legendToggle()}}}},e.prototype.maintainLegendToggle=function(e,i,o){if(this.maps.legendSettings.toggleLegendSettings.enable&&!(0,t.isNullOrUndefined)(this.maps.toggledLegendId)&&this.maps.toggledLegendId.indexOf(e)>-1&&!(0,t.isNullOrUndefined)(this.maps.toggledElementId)&&this.maps.toggledElementId.length>0){var a=this.legendCollection[e].data;if(this.maps.legendSettings.toggleLegendSettings.applyShapeSettings){var n=a[a.length-1].layerIndex;this.setToggleAttributes(o,i,this.maps.layers[n].shapeSettings.fill,this.maps.layers[n].shapeSettings.opacity,this.maps.layers[n].shapeSettings.border.color||this.maps.themeStyle.shapeBorderColor,(0,t.isNullOrUndefined)(this.maps.layers[n].shapeSettings.border.width)?0:this.maps.layers[n].shapeSettings.border.width,(0,t.isNullOrUndefined)(this.maps.layers[n].shapeSettings.border.opacity)?this.maps.layers[n].shapeSettings.opacity:this.maps.layers[n].shapeSettings.border.opacity,this.maps.layers[n].shapeSettings.fill)}else this.setToggleAttributes(o,i,this.maps.legendSettings.toggleLegendSettings.fill,this.maps.legendSettings.toggleLegendSettings.opacity,this.maps.legendSettings.toggleLegendSettings.border.color,this.maps.legendSettings.toggleLegendSettings.border.width,(0,t.isNullOrUndefined)(this.maps.legendSettings.toggleLegendSettings.border.opacity)?this.maps.legendSettings.toggleLegendSettings.opacity:this.maps.legendSettings.toggleLegendSettings.border.opacity,this.maps.legendSettings.toggleLegendSettings.fill);a._isVisible=!1}},e.prototype.legendHighLightAndSelection=function(e,i){var o,a,n,l,r,s="Default"===this.maps.legendSettings.mode?document.getElementById(e.id.replace("Shape","Text")):document.getElementById(e.id+"_Text"),d=this.maps.legendModule.legendCollection,p=!(0,t.isNullOrUndefined)(d[0].data[0].layerIndex)&&this.maps.layers[d[0].data[0].layerIndex].selectionSettings.enableMultiSelect,h=0,m=!0,c=parseFloat(e.id.charAt(e.id.length-1));this.updateLegendElement();var u=this.maps.toggledLegendId.indexOf(c);if(this.maps.legendSettings.toggleLegendSettings.enable&&"highlight"===i&&-1!==u){var g=this.getIndexofLegend(this.legendHighlightCollection,e);return-1!==g&&this.legendHighlightCollection.splice(g,1),this.removeLegendHighlightCollection(),null}if("selection"===i){if(this.shapeHighlightCollection=[],this.maps.shapeSelections||p||(this.removeAllSelections(),this.maps.shapeSelections=!0),this.maps.legendSelectionCollection.length>0&&(p||this.maps.shapeSelections))for(var y=0;y<this.maps.legendSelectionCollection.length;y++){if(e===this.maps.legendSelectionCollection[y].legendElement){this.maps.legendSelectionCollection[y].legendElement=e,m=!1,this.removeLegendSelectionCollection(this.maps.legendSelectionCollection[y].legendElement),this.maps.selectedLegendElementId.splice(this.maps.selectedLegendElementId.indexOf(c),1),this.maps.legendSelectionCollection.splice(y,1),this.maps.legendSelection=!(this.maps.legendSelectionCollection.length>0);break}if(!p)if(this.maps.legendSelectionCollection.length>1){for(var f=0;f<this.maps.legendSelectionCollection.length;f++)this.removeLegendSelectionCollection(this.maps.legendSelectionCollection[f].legendElement);this.maps.legendSelectionCollection=[]}else this.removeLegendSelectionCollection(this.maps.legendSelectionCollection[y].legendElement),this.maps.legendSelectionCollection.splice(y,1)}}else{if(this.maps.legendSelectionCollection.length>0)for(y=0;y<this.maps.legendSelectionCollection.length;y++){if((e.id.indexOf("_Legend_Shape")>-1||e.id.indexOf("_Legend_Index"))&&e===this.maps.legendSelectionCollection[y].legendElement){m=!1;break}this.removeLegendHighlightCollection()}this.removeLegendHighlightCollection()}if(m)for(var b=0;b<d.length;b++){var v="Interactive"===this.maps.legendSettings.mode?parseFloat(e.id.split("_Legend_Index_")[1]):parseFloat(e.id.split("_Legend_Shape_Index_")[1]);if(s.textContent===d[b].text&&d[b].data.length>0&&v===b){var S=this.maps.layers[d[b].data[0].layerIndex],x=void 0,O=void 0,C=void 0;if((0,t.isNullOrUndefined)(S)||(x="selection"===i?S.selectionSettings.enable:S.highlightSettings.enable,O=void 0,O="selection"===i?S.selectionSettings:S.highlightSettings,C=d[b].data),x)for(var M=0;M<C.length;M++){var _=void 0;if(o=C[M].shapeIndex,a=C[M].layerIndex,n=C[M].dataIndex,null!==(_=-1===(l=C[M].pointIndex)?document.getElementById(this.maps.element.id+"_LayerIndex_"+a+"_shapeIndex_"+o+"_dataIndex_"+n):document.getElementById(this.maps.element.id+"_LayerIndex_"+a+"_shapeIndex_"+o+"_dataIndex_"+n+"_multiLine_"+l))){var L=!0;if(null!==this.maps.legendSelectionCollection)for(var P=0;P<this.maps.legendSelectionCollection.length;P++)if(this.maps.legendSelectionCollection[P].legendElement===e){L=!1;break}if("highlight"===i&&L){0===M&&(this.legendHighlightCollection=[],this.pushCollection(e,this.legendHighlightCollection,d[b],S.shapeSettings)),r=this.legendHighlightCollection.length;var w=this.legendHighlightCollection[r-1].legendOldFill;this.legendHighlightCollection[r-1].MapShapeCollection.Elements.push(_);var T=this.legendHighlightCollection[r-1].MapShapeCollection.Elements.length-1,I=_.getAttribute("fill"),F=_.getAttribute("fill-opacity");this.legendHighlightCollection[r-1].shapeOldFillColor.push(I),this.legendHighlightCollection[r-1].shapeOldOpacity=F;var k=this.legendHighlightCollection[r-1].shapeOldFillColor[T],N=this.legendHighlightCollection[r-1].shapeOldOpacity;this.shapePreviousColor=this.legendHighlightCollection[r-1].shapeOldFillColor,this.setColor(_,(0,t.isNullOrUndefined)(O.fill)?k:O.fill,(0,t.isNullOrUndefined)(O.opacity)?N:O.opacity.toString(),O.border.color,O.border.width.toString(),"highlight"),this.setColor(e,(0,t.isNullOrUndefined)(O.fill)?w:O.fill,(0,t.isNullOrUndefined)(O.opacity)?N:O.opacity.toString(),O.border.color,O.border.width.toString(),"highlight")}else if("selection"===i){this.legendHighlightCollection=[],this.maps.legendSelectionClass=O,0===M&&(this.pushCollection(e,this.maps.legendSelectionCollection,d[b],S.shapeSettings),p||0===this.maps.selectedLegendElementId.length||(this.maps.selectedLegendElementId=[]),this.maps.selectedLegendElementId.push(b)),h=this.maps.legendSelectionCollection.length;var E=this.maps.legendSelectionCollection[h-1].legendOldFill;this.maps.legendSelectionCollection[h-1].MapShapeCollection.Elements.push(_),this.maps.legendSelectionCollection[h-1].shapeOldFillColor=this.shapePreviousColor,this.setColor(e,(0,t.isNullOrUndefined)(O.fill)?E:O.fill,O.opacity.toString(),O.border.color,O.border.width.toString(),"selection"),this.setColor(_,(0,t.isNullOrUndefined)(O.fill)?E:O.fill,O.opacity.toString(),O.border.color,O.border.width.toString(),"selection"),-1===this.maps.selectedElementId.indexOf(_.getAttribute("id"))&&this.maps.selectedElementId.push(_.getAttribute("id")),M===C.length-1&&(this.maps.legendSelection=!1,this.removeLegend(this.maps.legendSelectionCollection))}}}}}},e.prototype.setColor=function(e,t,i,o,a,n){var l=e.parentElement.id.indexOf("LineString")>-1;"selection"===n?(le(l?"LineselectionMap":"ShapeselectionMap",l?"LineselectionMapStyle":"ShapeselectionMapStyle",l?"transparent":t,i,l?t:o,a,this.maps),e.setAttribute("class",l?"LineselectionMapStyle":"ShapeselectionMapStyle")):(e.setAttribute("fill",l?"transparent":t),e.setAttribute("fill-opacity",i),e.setAttribute("stroke",l?t:o),e.setAttribute("stroke-width",(Number(a)/this.maps.scale).toString()))},e.prototype.pushCollection=function(e,t,i,o){t.push({legendElement:e,legendOldFill:i.fill,legendOldOpacity:i.opacity,legendOldBorderColor:i.borderColor,legendOldBorderWidth:i.borderWidth,shapeOpacity:o.opacity,shapeOldBorderColor:o.border.color||this.maps.themeStyle.shapeBorderColor,shapeOldBorderWidth:o.border.width});var a=t.length;t[a-1].MapShapeCollection={Elements:[]},t[a-1].shapeOldFillColor=[],t[a-1].shapeOldOpacity=null},e.prototype.removeLegend=function(e){for(var i=0;i<e.length;i++){var o=e[i];this.setColor(o.legendElement,o.legendOldFill,o.legendOldOpacity,o.legendOldBorderColor,o.legendOldBorderWidth,"highlight");for(var a=o.MapShapeCollection.Elements.length,n=0;n<a;n++){var l=-1!==o.legendOldFill.indexOf("url")?o.shapeOldFillColor[n]:o.legendOldFill,r=(0,t.isNullOrUndefined)(o.shapeOldOpacity)?o.shapeOpacity:o.shapeOldOpacity;this.setColor(o.MapShapeCollection.Elements[n],l,r,o.shapeOldBorderColor,o.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){Je(e);for(var t=this.shapesOfLegend(e),i=t.length,o=0;o<i;o++){var a=Re(t[o]);if("ShapeselectionMapStyle"===a.getAttribute("class")||"LineselectionMapStyle"===a.getAttribute("class")){Je(a);var n=this.maps.selectedElementId.indexOf(a.id);-1!==n&&this.maps.selectedElementId.splice(n,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,o=0;o<this.maps.legendSelectionCollection.length;o++)this.maps.legendSelectionCollection[o].legendElement===t.legendElement&&(i=!1);i&&this.setColor(t.legendElement,t.legendOldFill,t.legendOldOpacity,t.legendOldBorderColor,t.legendOldBorderWidth,"highlight")}},e.prototype.shapeHighLightAndSelection=function(e,i,o,a,n){if(void 0!==i){this.updateLegendElement(),this.shapeToggled=!0;var l=this.maps.legendModule.legendCollection,r=this.legendIndexOnShape(i,n),s=this.shapeDataOnLegend(e),d=this.maps.toggledLegendId.indexOf(r.actualIndex);if(this.maps.legendSettings.toggleLegendSettings.enable&&-1!==d){this.shapeToggled=!1,this.legendHighlightCollection=[];var p=this.getIndexofLegend(this.shapeHighlightCollection,s.LegendEle);return-1!==p&&this.shapeHighlightCollection.splice(p,1),this.removeShapeHighlightCollection(),null}if(void 0===r.currentIndex&&void 0===r.actualIndex)return this.removeShapeHighlightCollection(),null;if(void 0!==r.currentIndex||"selection"!==a||this.maps.layers[n].selectionSettings.enableMultiSelect||"ShapeselectionMapStyle"===e.getAttribute("class")||(this.maps.legendSelection=!1),"selection"!==a||this.maps.layers[n].selectionSettings.enableMultiSelect||this.maps.legendSelection||(this.removeAllSelections(),this.maps.legendSelection=!0),void 0===r.currentIndex){if("selection"===a&&void 0!==r.actualIndex){for(var h=0,m=0;m<s.Elements.length;m++)"ShapeselectionMapStyle"===s.Elements[m].getAttribute("class")&&h++;var c=this.maps.selectedLegendElementId.indexOf(r.actualIndex);-1===c?(this.maps.selectedLegendElementId.push(r.actualIndex),this.maps.legendSelectionClass=o):h<=1&&("ShapeselectionMapStyle"===e.getAttribute("class")||"LineselectionMapStyle"===e.getAttribute("class"))&&(this.maps.layers[n].selectionSettings.enableMultiSelect?h<=1&&("ShapeselectionMapStyle"===e.getAttribute("class")||"LineselectionMapStyle"===e.getAttribute("class"))&&this.maps.selectedLegendElementId.splice(c,1):this.maps.selectedLegendElementId.splice(c,1))}return this.removeShapeHighlightCollection(),null}var u=l[r.actualIndex].text,g=void 0,y=void 0;"Default"===this.maps.legendSettings.mode?void 0!==r.currentIndex&&(g=document.getElementById(this.maps.element.id+"_Legend_Text_Index_"+r.actualIndex).textContent,y=document.getElementById(this.maps.element.id+"_Legend_Shape_Index_"+r.actualIndex)):(g=document.getElementById(this.maps.element.id+"_Legend_Index_"+r.actualIndex+"_Text").textContent,y=document.getElementById(this.maps.element.id+"_Legend_Index_"+r.actualIndex)),this.oldShapeElement=s.LegendEle;var f=this.maps.legendSelectionCollection.length;if(u===g){var b=!0;if(this.maps.legendSelectionCollection)for(m=0;m<this.maps.legendSelectionCollection.length;m++)if(this.maps.legendSelectionCollection[m].legendElement===s.LegendEle){b=!1;break}if("highlight"===a&&b){(void 0===(S=this.isTargetSelected(s,this.shapeHighlightCollection))||S&&!S.IsSelected)&&this.pushCollection(y,this.shapeHighlightCollection,l[r.actualIndex],this.maps.layers[n].shapeSettings);for(var v=0;v<this.shapeHighlightCollection.length;v++)s.LegendEle.id===this.shapeHighlightCollection[v].legendElement.id&&(this.shapeHighlightCollection[v].legendElement=s.LegendEle);if(f>0)for(v=0;v<f;v++){if(s.LegendEle===this.maps.legendSelectionCollection[v].legendElement){this.maps.legendSelectionCollection[v].legendElement=s.LegendEle,this.removeShapeHighlightCollection();break}v===f-1&&(this.removeShapeHighlightCollection(),this.setColor(y,(0,t.isNullOrUndefined)(o.fill)?y.getAttribute("fill"):o.fill,o.opacity.toString(),o.border.color,o.border.width.toString(),"highlight"))}else this.removeShapeHighlightCollection(),this.setColor(y,(0,t.isNullOrUndefined)(o.fill)?y.getAttribute("fill"):o.fill,o.opacity.toString(),o.border.color,o.border.width.toString(),"highlight")}else if("selection"===a){var S=this.isTargetSelected(s,this.maps.legendSelectionCollection);if(f>0)for(v=0;v<this.maps.legendSelectionCollection.length;)if(s.LegendEle===this.maps.legendSelectionCollection[v].legendElement||o.enableMultiSelect)v++;else{var x=this.maps.legendSelectionCollection[v],O=this.maps.selectedLegendElementId.indexOf(r.actualIndex);this.maps.selectedLegendElementId.splice(O,1),this.maps.legendSelectionCollection.splice(v,1),Je(x.legendElement),this.maps.shapeSelections=!0,v=0}if(S&&S.IsSelected&&("ShapeselectionMapStyle"===e.getAttribute("class")||"LineselectionMapStyle"===e.getAttribute("class"))){var C=0;if(o.enableMultiSelect)for(m=0;m<s.Elements.length;m++)e.getAttribute("class")===s.Elements[m].getAttribute("class")&&C++;C<=1&&(o.enableMultiSelect||this.maps.legendSelection)&&(this.maps.selectedLegendElementId.splice(this.maps.selectedLegendElementId.indexOf(r.actualIndex),1),(0,t.isNullOrUndefined)(s.LegendEle)||Je(s.LegendEle),this.maps.legendSelectionCollection.splice(S.SelectionIndex,1),this.maps.shapeSelections=!0)}else{if((void 0===S||S&&!S.IsSelected)&&!(0,t.isNullOrUndefined)(y))-1===(_=this.getIndexofLegend(this.maps.legendSelectionCollection,y))&&this.pushCollection(y,this.maps.legendSelectionCollection,l[r.actualIndex],this.maps.layers[n].shapeSettings);var M=!0;for(m=0;m<this.maps.selectedLegendElementId.length;m++)r.actualIndex===this.maps.selectedLegendElementId[m]&&(M=!1);if(M&&this.maps.selectedLegendElementId.push(r.actualIndex),this.maps.legendSelectionClass=o,this.removeLegend(this.shapeHighlightCollection),!(0,t.isNullOrUndefined)(y)){this.setColor(y,(0,t.isNullOrUndefined)(o.fill)?y.getAttribute("fill"):o.fill,o.opacity.toString(),o.border.color,o.border.width.toString(),"selection");var _=this.getIndexofLegend(this.maps.legendSelectionCollection,y);this.maps.legendSelectionCollection[_].MapShapeCollection.Elements.push(e)}this.maps.shapeSelections=!1}}else document.getElementsByClassName("highlightMapStyle").length>0&&(this.removeShapeHighlightCollection(),Je(document.getElementsByClassName("highlightMapStyle")[0]))}}else this.removeShapeHighlightCollection()},e.prototype.isTargetSelected=function(e,i){for(var o,a=0;a<i.length;a++)(0,t.isNullOrUndefined)(e.LegendEle.getAttribute("id"))||e.LegendEle.getAttribute("id")!==i[a].legendElement.getAttribute("id")||(o={IsSelected:!0,SelectionIndex:a});return o},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++){Je(o=document.getElementById(this.maps.selectedElementId[e]))}for(var i=0;i<this.maps.selectedLegendElementId.length;i++){var o=("Interactive"===this.maps.legendSettings.mode?this.maps.element.id+"_Legend_Index_":this.maps.element.id+"_Legend_Shape_Index_")+this.maps.selectedLegendElementId[i],a=document.getElementById(o);(0,t.isNullOrUndefined)(a)||Je(document.getElementById(o))}this.maps.legendSelectionCollection=[],this.maps.selectedLegendElementId=[],this.maps.selectedElementId=[]},e.prototype.legendIndexOnShape=function(e,i){var o,a,n,l=e[this.maps.layers[i].shapeDataPath],r=this.maps.legendSettings.mode,s=this.maps.legendModule.legendCollection;"Default"!==r||(0,t.isNullOrUndefined)(this.maps.legendModule.totalPages)||(n=this.maps.legendModule.totalPages[this.maps.legendModule.currentPage].Collection);for(var d="Default"===r?n.length:1,p=0;p<s.length;p++){for(var h=s[p].data,m=0;m<d;m++)if("Default"!==r||s[p].text===n[m].DisplayText)for(var c=0;c<h.length;c++)l===h[c].name&&(o=m);for(c=0;c<h.length;c++)l===h[c].name&&(a=p)}return{currentIndex:o,actualIndex:a}},e.prototype.shapeDataOnLegend=function(e){for(var i,o,a,n,l=this.maps.legendModule.legendCollection,r=this.maps.legendSettings,s=0;s<l.length;s++){for(var d=l[s].data,p=!1,h=[],m={Elements:[]},c=0;c<d.length;c++){var u=void 0;i=d[c].shapeIndex,o=d[c].layerIndex,a=d[c].dataIndex,e===(u=-1===(n=d[c].pointIndex)?document.getElementById(this.maps.element.id+"_LayerIndex_"+o+"_shapeIndex_"+i+"_dataIndex_"+a):document.getElementById(this.maps.element.id+"_LayerIndex_"+o+"_shapeIndex_"+i+"_dataIndex_"+a+"_multiLine_"+n))&&(p=!0),h.push(u)}if(p)return(0,t.isNullOrUndefined)(m.LegendEle)&&(m.LegendEle="Default"===r.mode?document.getElementById(this.maps.element.id+"_Legend_Shape_Index_"+s):document.getElementById(this.maps.element.id+"_Legend_Index_"+s)),m.Elements=h,m}return null},e.prototype.shapesOfLegend=function(e){for(var i,o,a,n,l=parseFloat(e.id.charAt(e.id.length-1)),r=this.maps.legendModule.legendCollection[l].data,s=[],d=0;d<r.length;d++){var p=void 0;i=r[d].shapeIndex,o=r[d].layerIndex,a=r[d].dataIndex,p=-1===(n=r[d].pointIndex)?document.getElementById(this.maps.element.id+"_LayerIndex_"+o+"_shapeIndex_"+i+"_dataIndex_"+a):document.getElementById(this.maps.element.id+"_LayerIndex_"+o+"_shapeIndex_"+i+"_dataIndex_"+a+"_multiLine_"+n),(0,t.isNullOrUndefined)(p)||s.push(p.id)}return s},e.prototype.legendToggle=function(){var e=this.maps,i=e.legendSettings;if(this.maps.selectedLegendElementId)for(var o=0;o<this.maps.selectedLegendElementId.length;o++){var a="Interactive"===i.mode?this.maps.element.id+"_Legend_Index_":this.maps.element.id+"_Legend_Shape_Index_",n=e.svgObject.querySelector("#"+a+this.maps.selectedLegendElementId[o]);if(!(0,t.isNullOrUndefined)(n)){var l=(0,t.isNullOrUndefined)(this.maps.legendSelectionClass.fill)?n.getAttribute("fill"):this.maps.legendSelectionClass.fill;this.setColor(n,l,this.maps.legendSelectionClass.opacity.toString(),this.maps.legendSelectionClass.border.color,this.maps.legendSelectionClass.border.width.toString(),"selection");for(var r=0;r<this.maps.legendSelectionCollection.length;r++)this.maps.legendSelectionCollection[r].legendElement.id===n.id&&(this.maps.legendSelectionCollection[r].legendElement=n);if(-1===this.getIndexofLegend(this.maps.legendSelectionCollection,n)){var s=this.maps.legendModule.legendCollection[this.maps.selectedLegendElementId[o]].data[o].layerIndex;this.pushCollection(n,this.maps.legendSelectionCollection,this.maps.legendModule.legendCollection[this.maps.selectedLegendElementId[o]],this.maps.layers[s].shapeSettings)}}}if(this.maps.toggledLegendId)for(o=0;o<this.maps.toggledLegendId.length;o++){var d="Interactive"===i.mode?"#"+this.maps.element.id+"_Legend_Index_"+this.maps.toggledLegendId[o]+"_Text":"#"+this.maps.element.id+"_Legend_Text_Index_"+this.maps.toggledLegendId[o],p=e.svgObject.querySelector(d);(0,t.isNullOrUndefined)(p)||p.setAttribute("fill","#E5E5E5");var h="Interactive"===i.mode?"#"+this.maps.element.id+"_Legend_Index_"+this.maps.toggledLegendId[o]:"#"+this.maps.element.id+"_Legend_Shape_Index_"+this.maps.toggledLegendId[o],m=e.svgObject.querySelector(h);(0,t.isNullOrUndefined)(m)||m.setAttribute("fill","#E5E5E5")}},e.prototype.renderLegendBorder=function(){var e=this.maps,i=e.legendSettings,o=i.title.text,a={fontFamily:i.titleStyle.fontFamily,fontStyle:i.titleStyle.fontStyle,fontWeight:i.titleStyle.fontWeight,size:i.titleStyle.size,color:i.titleStyle.color,opacity:i.titleStyle.opacity},n=10,l=Ie(this.legendItemRect.width+20,o,a),r=w(l,a);this.legendBorderRect=new Z(this.legendItemRect.x-n,this.legendItemRect.y-n-r.height,this.legendItemRect.width+20,this.legendItemRect.height+20+r.height+("Interactive"===i.mode?0:0!==this.page?n:0));var s={color:i.border.color||this.maps.themeStyle.legendBorderColor,opacity:i.border.opacity,width:i.border.width||this.maps.themeStyle.legendBorderWidth};s.opacity=(0,t.isNullOrUndefined)(s.opacity)?1:s.opacity;var d=new N(e.element.id+"_Legend_Border",i.background,s,1,this.legendBorderRect,null,null,"","");if(this.legendGroup.appendChild(e.renderer.drawRectangle(d)),this.getLegendAlignment(e,this.legendBorderRect.width,this.legendBorderRect.height,i),this.legendGroup.setAttribute("transform","translate( "+(this.translate.x+-this.legendBorderRect.x)+" "+(this.translate.y+-this.legendBorderRect.y)+" )"),"Float"!==i.position&&e.svgObject.appendChild(this.legendGroup),o){a.color=null!==a.color?a.color:this.maps.themeStyle.legendTitleFontColor,a.fontFamily=(0,t.isNullOrUndefined)(a.fontFamily)?this.maps.themeStyle.fontFamily:a.fontFamily,a.size=(0,t.isNullOrUndefined)(a.size)?this.maps.themeStyle.subTitleFontSize||yt.legendTitleFont.size:a.size,a.fontWeight=(0,t.isNullOrUndefined)(a.fontWeight)?this.maps.themeStyle.titleFontWeight||yt.legendTitleFont.fontWeight:a.fontWeight;var p=D(new I(e.element.id+"_LegendTitle",this.legendItemRect.x+this.legendItemRect.width/2,this.legendItemRect.y-r.height/2-5,"middle",l,""),a,a.color,this.legendGroup);p.setAttribute("aria-label",o),p.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),(0,t.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)),Ge(this.maps.element.id+"_Legend_Border",this.maps.element.id)&&(Ge(this.maps.element.id+"_Legend_Border",this.maps.element.id).style.pointerEvents="none")},e.prototype.getLegendAlignment=function(e,i,o,a){var n,l,r,s=10,d=(r=(0,t.extend)({},e.mapAreaRect,r,!0)).x,p=r.y,h=r.height,m=r.width,c=e.availableSize.width,u=e.availableSize.height,g=(0,t.isNullOrUndefined)(a.location.x)?0:a.location.x,y=(0,t.isNullOrUndefined)(a.location.y)?0:a.location.y;if("Float"===a.position)this.translate=e.isTileMap?new M(g,y+2.5):new M(g+e.mapAreaRect.x,y+e.mapAreaRect.y),this.legendTotalRect=e.mapAreaRect;else{switch(a.position){case"Top":case"Bottom":r.height="Top"===a.position?h-o:h-o-20,n=c/2-i/2,l="Top"===a.position?p:p+r.height,r.y="Top"===a.position?p+o+(e.isTileMap?5:s):p-5;break;case"Left":case"Right":r.width=m-i-e.mapAreaRect.x,n="Left"===a.position?d+5:d+r.width+s,l=u/2-o/2,r.x="Left"===a.position?d+i+s:d}switch(a.alignment){case"Near":"Top"===a.position||"Bottom"===a.position?n=r.x-("Interactive"===a.mode?s:0):l=r.y-(a.height&&a.width||"Interactive"!==a.mode?0:e.mapAreaRect.x);break;case"Far":"Top"===a.position||"Bottom"===a.position?n=c-i-("Interactive"===a.mode?0:s):l=u-o-("Default"===a.mode?s:0)}(a.height||a.width)&&"Interactive"!==a.mode?this.legendTotalRect=e.mapAreaRect=e.totalRect=r:(e.totalRect=null,(a.height||a.width)&&"Interactive"===a.mode&&(e.totalRect=r),this.legendTotalRect=e.mapAreaRect=r),"Left"===a.position&&(e.mapAreaRect.width=r.width),this.translate=new M(n,l)}},e.prototype.getMarkersLegendCollections=function(e,i){var o=this;Array.prototype.forEach.call(i,(function(i,a){var n=i.dataSource,l=i.legendText;Array.prototype.forEach.call(n,(function(n,r){var s=!!(0,t.isNullOrUndefined)(n[o.maps.legendSettings.showLegendPath])||n[o.maps.legendSettings.showLegendPath];if(i.visible&&s&&!(0,t.isNullOrUndefined)(n.latitude)&&!(0,t.isNullOrUndefined)(n.longitude)){if(i.template){var d=Ze(i.template,o.maps)(o.maps);((0,t.isNullOrUndefined)(d.childElementCount)?d[0]:d).querySelector("img").src}var p=(0,t.isNullOrUndefined)(n[l])?"":n[l],h=(0,t.isNullOrUndefined)(i.colorValuePath)?i.fill:n[i.colorValuePath],m=[];o.maps.legendSettings.removeDuplicateLegend?(m.push(o.getMarkerLegendData(e,p,h)),o.getOverallLegendItemsCollection(p,h,m,s)):(m.push({layerIndex:e,markerIndex:a,dataIndex:r,value:h,name:p,shape:(0,t.isNullOrUndefined)(i.shapeValuePath)||(0,t.isNullOrUndefined)(n[i.shapeValuePath])||""===n[i.shapeValuePath]?o.maps.legendSettings.useMarkerShape?i.shape:o.maps.legendSettings.shape:n[i.shapeValuePath]}),o.getOverallLegendItemsCollection(p,h,m,s))}}))}))},e.prototype.getMarkerLegendData=function(e,i,o){var a=this,n=[];return this.maps.layers[e].markerSettings.map((function(l,r){var s=l.dataSource;Array.prototype.forEach.call(s,(function(l,s){var d=a.maps.layers[e].markerSettings[r];i!==l[d.legendText]&&""!==i||o!==(l[d.colorValuePath]||d.fill)||n.push({layerIndex:e,markerIndex:r,dataIndex:s,value:o,name:i,shape:(0,t.isNullOrUndefined)(d.shapeValuePath)?d.shape:l[d.shapeValuePath]})}))})),n},e.prototype.getRangeLegendCollection=function(e,i,o,a,n,l,r){for(var s,d=this,p=0,h=this.maps.legendSettings.fill,m=[],c=function(o){if(!(0,t.isNullOrUndefined)(o.from)&&!(0,t.isNullOrUndefined)(o.to)){s=(0,t.isNullOrUndefined)(o.label)?o.from+" - "+o.to:o.label,m=[];var c=!1;!(0,t.isNullOrUndefined)(a)&&a.length>0&&Array.prototype.forEach.call(a,(function(t,a){var s=l.indexOf(".")>-1?Number(X(t,l)):parseFloat(t[l]);s>=o.from&&s<=o.to&&(c=!0,m.push(d.getLegendData(e,a,t,n,i,r,s)))})),c||m.push({layerIndex:e,shapeIndex:null,dataIndex:null,name:null,value:null});var g=(0,t.isNullOrUndefined)(h)?"[object Array]"===Object.prototype.toString.call(o.color)?(0,t.isNullOrUndefined)(o.value)?u.legendGradientColor(o,p):o.color[0]:o.color:h;p++,u.getOverallLegendItemsCollection(s,g,m,o.showLegend)}},u=this,g=0,y=o;g<y.length;g++){c(y[g])}},e.prototype.getOverallLegendItemsCollection=function(e,t,i,o){var a=[],n=this.maps.legendSettings;if(i.length>0&&o){for(var l=0;l<i.length;l++){var r=i[l];if(r.length>0)for(var s=0;s<r.length;s++)a.push(r[s]);else a.push(i[l]);a._isVisible=!0}if(!!this.maps.legendSettings.removeDuplicateLegend&&this.removeDuplicates(this.legendCollection,e,t))for(l=0;l<this.legendCollection.length;l++)this.legendCollection[l].text===e&&this.legendCollection[l].fill===t&&this.legendCollection[l].data.push(a[0]);else this.legendCollection.push({text:e,fill:t,data:a,opacity:n.opacity,borderColor:n.shapeBorder.color,borderWidth:n.shapeBorder.width})}},e.prototype.removeDuplicates=function(e,t,i){for(var o=!1,a=0;a<e.length;a++)if((e[a].text===t||""===e[a].text)&&e[a].fill===i){o=!0;break}return o},e.prototype.getEqualLegendCollection=function(e,i,o,a,n,l,r){for(var s,d=this,p=this.maps.legendSettings.fill,h=[],m=[],c=[],u=[],g=function(g){if((0,t.isNullOrUndefined)(g.value)){if((0,t.isNullOrUndefined)(g.minOpacity)&&(0,t.isNullOrUndefined)(g.maxOpacity)&&(0,t.isNullOrUndefined)(g.value)&&(0,t.isNullOrUndefined)(g.from)&&(0,t.isNullOrUndefined)(g.to)&&!(0,t.isNullOrUndefined)(g.color)){if(Array.prototype.forEach.call(a,(function(t,o){for(var a=l.indexOf(".")>-1?X(t,l):t[l],s=0;s<c.length;s++)a===c[s]&&u.push(d.getLegendData(e,o,t,n,i,r,a))})),0===c.length){var f=!1;Array.prototype.forEach.call(a,(function(a,s){f=!1;for(var p=a[l],h=0;h<o.length;h++)(0,t.isNullOrUndefined)(p)||isNaN(p)?f||(f=!1):p>=o[h].from&&p<=o[h].to&&(f=!0);f||u.push(d.getLegendData(e,s,a,n,i,r,p))}))}s=(0,t.isNullOrUndefined)(g.label)?"Others":g.label;var b="[object Array]"===Object.prototype.toString.call(g.color)?g.color[0]:g.color;y.getOverallLegendItemsCollection(s,b,u,g.showLegend)}}else{s=(0,t.isNullOrUndefined)(g.label)?g.value:g.label,m=[];var v=!1;!(0,t.isNullOrUndefined)(a)&&a.length>0&&Array.prototype.forEach.call(a,(function(t,o){var a=l.indexOf(".")>-1?X(t,l):t[l];a===g.value?(v=!0,-1===h.indexOf(a)&&h.push(a),m.push(d.getLegendData(e,o,t,n,i,r,a))):-1===c.indexOf(a)&&c.push(a)}));for(var S=0;S<h.length;S++)for(var x=0;x<c.length;x++)if(h[S]===c[x]){var O=c.indexOf(h[S]);c.splice(O,1)}v||m.push({layerIndex:e,shapeIndex:null,dataIndex:null,name:null,value:null});var C=(0,t.isNullOrUndefined)(p)?"[object Array]"===Object.prototype.toString.call(g.color)?g.color[0]:g.color:p;y.getOverallLegendItemsCollection(s,C,m,g.showLegend)}},y=this,f=0,b=o;f<b.length;f++){g(b[f])}},e.prototype.getDataLegendCollection=function(e,i,o,a,n,l,r){var s,d=this,p=this.maps.legendSettings.fill,h=this.maps.legendSettings.valuePath;(0,t.isNullOrUndefined)(l)||(0,t.isNullOrUndefined)(a)||Array.prototype.forEach.call(a,(function(a,m){var c=!!(0,t.isNullOrUndefined)(d.maps.legendSettings.showLegendPath)||!(0,t.isNullOrUndefined)(a[d.maps.legendSettings.showLegendPath])&&a[d.maps.legendSettings.showLegendPath],u=l.indexOf(".")>-1?X(a,l):a[l],g=[],y=(0,t.isNullOrUndefined)(p)?u:p;(0,t.isNullOrUndefined)(u)||0!==o.length||(s=(0,t.isNullOrUndefined)(a[h])?n.indexOf(".")>-1?X(a,n):a[n]:h.indexOf(".")>-1?X(a,h):a[h],g.push(d.getLegendData(e,m,a,n,i,r,u))),d.getOverallLegendItemsCollection(s,y,g,c)}))},e.prototype.interactiveHandler=function(e){var i=e.target,o=this.maps.legendSettings,a=this.maps.element.id+"_Interactive_Legend",n="Layers"===o.type?"_shapeIndex_":"Markers"===o.type?"_MarkerIndex_":"_BubbleIndex_";if(i.id.indexOf(n)>1){var l=parseFloat(i.id.split("_LayerIndex_")[1].split("_")[0]),r=parseFloat(i.id.split(/_dataIndex_/i)[1].split("_")[0]),s=void 0,d=void 0,p=void 0;(0,t.isNullOrUndefined)(Ge(a,this.maps.element.id))||(0,t.remove)(Ge(a,this.maps.element.id));var h=this.maps.layersCollection[l],m="Layers"===o.type?h.visible:"Markers"===o.type?h.markerSettings[parseFloat(i.id.split("_MarkerIndex_")[1].split("_")[0])].visible:this.maps.getBubbleVisible(this.maps.layersCollection[l]);if(o.visible&&this.legendRenderingCollections.length>0&&"Interactive"===o.mode&&m)for(var c=this.maps.svgObject.getBoundingClientRect(),u=0;u<this.legendCollection.length;u++){var g=this.legendCollection[u],y=Ge(this.maps.element.id+"_Legend_Index_"+u,this.maps.element.id),f=y.getBoundingClientRect(),b=new Z(Math.abs(f.left-c.left),Math.abs(f.top-c.top),f.width,f.height);if(s=y.getAttribute("fill"),d=o.shapeBorder.color,p=o.shapeBorder.width,!(0,t.isNullOrUndefined)(g.data))for(var v=g.data,S=function(e){if(r===v[e].dataIndex&&l===v[e].layerIndex){x.renderInteractivePointer(o,s,d,a,p,b);var i=Ge(a,x.maps.element.id);return x.maps.isDevice&&!(0,t.isNullOrUndefined)(i)&&(clearTimeout(x.arrowTimer),x.arrowTimer=setTimeout((function(){(0,t.remove)(i)}),2e3)),"break"}},x=this,O=0;O<v.length;O++){if("break"===S(O))break}}}else(0,t.isNullOrUndefined)(Ge(a,this.maps.element.id))||(0,t.remove)(Ge(a,this.maps.element.id))},e.prototype.renderInteractivePointer=function(e,t,i,o,a,n){var l,r,s,d=10,p=10,h="None"===e.orientation?"Top"===e.position||"Bottom"===e.position?"Horizontal":"Vertical":e.orientation;n.y="Float"===e.position&&this.maps.isTileMap?n.y-this.maps.mapAreaRect.y:n.y,l="Horizontal"===h?e.invertedPointer?" M "+(r=n.x+n.width/2-("Float"===e.position&&this.maps.isTileMap?this.maps.mapAreaRect.x:0))+" "+(s=n.y+n.height)+" L "+(r-p)+" "+(s+d)+" L "+(r+p)+" "+(s+d)+" Z ":" M "+(r=n.x+n.width/2-("Float"===e.position&&this.maps.isTileMap?this.maps.mapAreaRect.x:0))+" "+(s=n.y)+" L "+(r-p)+" "+(s-d)+" L "+(r+p)+" "+(s-d)+" Z ":e.invertedPointer?" M "+(r=n.x-("Float"===e.position&&this.maps.isTileMap?this.maps.mapAreaRect.x:0))+" "+(s=n.y+n.height/2)+" L "+(r-p)+" "+(s-d)+" L "+(r-p)+" "+(s+d)+" z ":" M "+(r=n.x+n.width-("Float"===e.position&&this.maps.isTileMap?this.maps.mapAreaRect.x:0))+" "+(s=n.y+n.height/2)+" L "+(r+p)+" "+(s-d)+" L "+(r+p)+" "+(s+d)+" z ";var m=new F(o,t,a,i,1,1,"",l);"Float"===e.position&&this.maps.isTileMap?this.maps.mapLayerPanel.layerGroup.appendChild(this.maps.renderer.drawPath(m)):this.maps.svgObject.appendChild(this.maps.renderer.drawPath(m))},e.prototype.wireEvents=function(e){t.EventHandler.add(e,t.Browser.touchStartEvent,this.changeNextPage,this)},e.prototype.addEventListener=function(){this.maps.isDestroyed||(this.maps.on(t.Browser.touchMoveEvent,this.interactiveHandler,this),this.maps.on(t.Browser.touchEndEvent,this.interactiveHandler,this),this.maps.on(mi,this.legendClick,this))},e.prototype.markerToggleSelection=function(e,i,o,a){e.setAttribute("fill",this.legendCollection[a].fill),e.setAttribute("stroke",this.maps.layers[i].markerSettings[o].border.color),e.setAttribute("fill-opacity",this.maps.layers[i].markerSettings[o].opacity.toString()),e.setAttribute("stroke-width",this.maps.layers[i].markerSettings[o].border.width.toString()),e.setAttribute("stroke-opacity",((0,t.isNullOrUndefined)(this.maps.layers[i].markerSettings[o].border.opacity)?this.maps.layers[i].markerSettings[o].opacity:this.maps.layers[i].markerSettings[o].border.opacity).toString());var n=this.maps.toggledElementId.indexOf(e.id);-1!==n&&this.maps.toggledElementId.splice(n,1)},e.prototype.bubbleToggleSelection=function(e,i,o,a){e.setAttribute("fill",this.legendCollection[a].fill),e.setAttribute("stroke",this.maps.layers[i].bubbleSettings[o].border.color),e.setAttribute("fill-opacity",this.maps.layers[i].bubbleSettings[o].opacity.toString()),e.setAttribute("stroke-width",this.maps.layers[i].bubbleSettings[o].border.width.toString()),e.setAttribute("stroke-opacity",((0,t.isNullOrUndefined)(this.maps.layers[i].bubbleSettings[o].border.opacity)?this.maps.layers[i].bubbleSettings[o].opacity:this.maps.layers[i].bubbleSettings[o].border.opacity).toString())},e.prototype.legendClick=function(e){var i,o,a=this.maps.legendSettings.toggleLegendSettings.fill,n=this.maps.legendSettings.toggleLegendSettings.opacity,l=this.maps.legendSettings.toggleLegendSettings.border.color,r=this.maps.legendSettings.toggleLegendSettings.border.width,s=(0,t.isNullOrUndefined)(this.maps.legendSettings.toggleLegendSettings.border.opacity)?this.maps.legendSettings.toggleLegendSettings.opacity:this.maps.legendSettings.toggleLegendSettings.border.opacity;if(!(0,t.isNullOrUndefined)(e.parentNode)&&e.parentNode.id.indexOf(this.maps.element.id+"_Legend_Index_")>-1){var d=void 0,p=parseFloat(e.parentElement.id.substr((this.maps.element.id+"_Legend_Index_").length)),h=(v=this.legendCollection[p].data)._isVisible,m=void 0;if(this.maps.legendSettings.toggleLegendSettings.enable&&("Bubbles"===this.maps.legendSettings.type||"Markers"===this.maps.legendSettings.type))for(var c=0;c<this.maps.layers.length;c++)for(var u=0;u<("Bubbles"===this.maps.legendSettings.type?this.maps.layers[c].bubbleSettings.length:this.maps.layers[c].markerSettings.length);u++){for(var g=0;g<v.length;g++){m=this.legendCollection[p].data[g],d="Bubbles"===this.maps.legendSettings.type?Ge(this.maps.element.id+"_LayerIndex_"+m.layerIndex+"_BubbleIndex_"+u+"_dataIndex_"+m.dataIndex,this.maps.element.id):Ge(this.maps.element.id+"_LayerIndex_"+m.layerIndex+"_MarkerIndex_"+m.markerIndex+"_dataIndex_"+m.dataIndex,this.maps.element.id),(0,t.isNullOrUndefined)(m.shape)||"Balloon"!==m.shape||(d=(d="Bubbles"===this.maps.legendSettings.type?Ge(this.maps.element.id+"_LayerIndex_"+m.layerIndex+"_BubbleIndex_"+u+"_dataIndex_"+m.dataIndex+"_Group",this.maps.element.id):Ge(this.maps.element.id+"_LayerIndex_"+m.layerIndex+"_MarkerIndex_"+m.markerIndex+"_dataIndex_"+m.dataIndex+"_Group",this.maps.element.id)).children[0]);var y=this.maps.toggledLegendId.indexOf(p);if(h&&null!==d){if(this.maps.legendSettings.toggleLegendSettings.applyShapeSettings?(d.setAttribute("fill",this.maps.layers[c].shapeSettings.fill),d.setAttribute("stroke",this.maps.layers[c].shapeSettings.border.color||this.maps.themeStyle.shapeBorderColor),d.setAttribute("fill-opacity",this.maps.layers[c].shapeSettings.opacity.toString()),d.setAttribute("stroke-width",((0,t.isNullOrUndefined)(this.maps.layers[c].shapeSettings.border.width)?0:this.maps.layers[c].shapeSettings.border.width).toString()),d.setAttribute("stroke-opacity",((0,t.isNullOrUndefined)(this.maps.layers[c].shapeSettings.border.opacity)?this.maps.layers[c].shapeSettings.opacity:this.maps.layers[c].shapeSettings.border.opacity).toString())):(d.setAttribute("fill",a),d.setAttribute("fill-opacity",n.toString()),d.setAttribute("stroke",l),d.setAttribute("stroke-width",r.toString()),d.setAttribute("stroke-opacity",s.toString())),"Markers"===this.maps.legendSettings.type)-1===y&&this.maps.toggledLegendId.push(p),-1===this.maps.toggledElementId.indexOf(d.id)&&this.maps.toggledElementId.push(d.id);null!==e&&(i=Ge(this.maps.element.id+"_Legend_Shape_Index_"+p,this.maps.element.id),o=Ge(this.maps.element.id+"_Legend_Text_Index_"+p,this.maps.element.id),this.maps.legendSettings.toggleLegendSettings.applyShapeSettings?this.setToggleAttributes(o,i,this.maps.layers[c].shapeSettings.fill,this.maps.layers[c].shapeSettings.opacity,this.maps.layers[c].shapeSettings.border.color||this.maps.themeStyle.shapeBorderColor,(0,t.isNullOrUndefined)(this.maps.layers[c].shapeSettings.border.width)?0:this.maps.layers[c].shapeSettings.border.width,(0,t.isNullOrUndefined)(this.maps.layers[c].shapeSettings.border.opacity)?this.maps.layers[c].shapeSettings.opacity:this.maps.layers[c].shapeSettings.border.opacity,this.maps.layers[c].shapeSettings.fill):this.setToggleAttributes(o,i,a,n,l,r,s,a))}else"Markers"===this.maps.legendSettings.type?(-1!==y&&0===g&&this.maps.toggledLegendId.splice(y,1),this.markerToggleSelection(d,c,u,p)):this.bubbleToggleSelection(d,c,u,p),null!==e&&(i=Ge(this.maps.element.id+"_Legend_Shape_Index_"+p,this.maps.element.id),o=Ge(this.maps.element.id+"_Legend_Text_Index_"+p,this.maps.element.id),this.setToggleAttributes(o,i,this.legendCollection[p].fill,this.legendCollection[p].opacity,this.legendCollection[p].shapeBorder.color,this.legendCollection[p].shapeBorder.width,this.legendCollection[p].shapeBorder.opacity,this.maps.legendSettings.textStyle.color),"HorizontalLine"!==this.maps.legendSettings.shape&&"VerticalLine"!==this.maps.legendSettings.shape&&"Cross"!==this.maps.legendSettings.shape||i.setAttribute("stroke",this.legendCollection[p].fill))}v._isVisible=!h}if("Layers"===this.maps.legendSettings.type&&this.maps.legendSettings.toggleLegendSettings.enable){var f=void 0;this.removeCollections(e,p),-1!==(y=this.maps.toggledLegendId.indexOf(p))&&(h=!1);for(u=0;u<this.maps.layers.length;u++)for(g=0;g<v.length;g++)if(m=this.legendCollection[p].data[g],null!==(f=Ge(this.maps.element.id+"_LayerIndex_"+m.layerIndex+"_shapeIndex_"+m.shapeIndex+"_dataIndex_"+m.dataIndex,this.maps.element.id))){var b=this.maps.toggledElementId.indexOf(f.id);h?(0===g&&this.maps.toggledLegendId.push(p),-1===b&&this.maps.toggledElementId.push(f.id),this.maps.legendSettings.toggleLegendSettings.applyShapeSettings?(f.setAttribute("fill",this.maps.layers[u].shapeSettings.fill),f.setAttribute("fill-opacity",this.maps.layers[u].shapeSettings.opacity.toString()),f.setAttribute("stroke",this.maps.layers[u].shapeSettings.border.color||this.maps.themeStyle.shapeBorderColor),f.setAttribute("stroke-width",((0,t.isNullOrUndefined)(this.maps.layers[u].shapeSettings.border.width)?0:this.maps.layers[u].shapeSettings.border.width).toString()),f.setAttribute("stroke-opacity",((0,t.isNullOrUndefined)(this.maps.layers[u].shapeSettings.border.opacity)?this.maps.layers[u].shapeSettings.opacity:this.maps.layers[u].shapeSettings.border.opacity).toString())):(f.setAttribute("fill",a),f.setAttribute("fill-opacity",n.toString()),f.setAttribute("stroke",l),f.setAttribute("stroke-width",r.toString()),f.setAttribute("stroke-opacity",s.toString())),null!==e&&(o=Ge(this.maps.element.id+"_Legend_Text_Index_"+p,this.maps.element.id),i=Ge(this.maps.element.id+"_Legend_Shape_Index_"+p,this.maps.element.id),this.maps.legendSettings.toggleLegendSettings.applyShapeSettings?this.setToggleAttributes(o,i,this.maps.layers[u].shapeSettings.fill,this.maps.layers[u].shapeSettings.opacity,this.maps.layers[u].shapeSettings.border.color||this.maps.themeStyle.shapeBorderColor,(0,t.isNullOrUndefined)(this.maps.layers[u].shapeSettings.border.width)?0:this.maps.layers[u].shapeSettings.border.width,(0,t.isNullOrUndefined)(this.maps.layers[u].shapeSettings.border.opacity)?this.maps.layers[u].shapeSettings.opacity:this.maps.layers[u].shapeSettings.border.opacity,this.maps.layers[u].shapeSettings.fill):this.setToggleAttributes(o,i,a,n,l,r,s,a))):(-1!==y&&0===g&&this.maps.toggledLegendId.splice(y,1),-1!==b&&this.maps.toggledElementId.splice(b,1),f.setAttribute("fill",this.legendCollection[p].fill),f.setAttribute("stroke-opacity",((0,t.isNullOrUndefined)(this.maps.layers[u].shapeSettings.border.opacity)?this.maps.layers[u].shapeSettings.opacity:this.maps.layers[u].shapeSettings.border.opacity).toString()),f.setAttribute("stroke-width",((0,t.isNullOrUndefined)(this.maps.layers[u].shapeSettings.border.width)?0:this.maps.layers[u].shapeSettings.border.width).toString()),f.setAttribute("fill-opacity",this.maps.layers[u].shapeSettings.opacity.toString()),f.setAttribute("stroke",this.maps.layers[u].shapeSettings.border.color||this.maps.themeStyle.shapeBorderColor),null!==e&&(o=Ge(this.maps.element.id+"_Legend_Text_Index_"+p,this.maps.element.id),i=Ge(this.maps.element.id+"_Legend_Shape_Index_"+p,this.maps.element.id),this.setToggleAttributes(o,i,this.legendCollection[p].fill,this.legendCollection[p].opacity,this.legendCollection[p].shapeBorder.color,this.legendCollection[p].shapeBorder.width,this.legendCollection[p].shapeBorder.opacity,"#757575")))}v._isVisible=!h}}else if(!(0,t.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 v,S=void 0,x=(p=parseFloat(e.id.split(this.maps.element.id+"_Legend_Index_")[1]),void 0);h=(v=this.legendCollection[p].data)._isVisible;if(("Bubbles"===this.maps.legendSettings.type||"Markers"===this.maps.legendSettings.type)&&this.maps.legendSettings.toggleLegendSettings.enable)for(y=this.maps.toggledLegendId.indexOf(p),c=0;c<this.maps.layers.length;c++)for(u=0;u<("Bubbles"===this.maps.legendSettings.type?this.maps.layers[c].bubbleSettings.length:this.maps.layers[c].markerSettings.length);u++){for(g=0;g<v.length;g++)if(x=this.legendCollection[p].data[g],S="Bubbles"===this.maps.legendSettings.type?Ge(this.maps.element.id+"_LayerIndex_"+x.layerIndex+"_BubbleIndex_"+u+"_dataIndex_"+x.dataIndex,this.maps.element.id):Ge(this.maps.element.id+"_LayerIndex_"+x.layerIndex+"_MarkerIndex_"+u+"_dataIndex_"+x.dataIndex,this.maps.element.id),(0,t.isNullOrUndefined)(x.shape)||"Balloon"!==x.shape||(S=(S="Bubbles"===this.maps.legendSettings.type?Ge(this.maps.element.id+"_LayerIndex_"+x.layerIndex+"_BubbleIndex_"+u+"_dataIndex_"+x.dataIndex+"_Group",this.maps.element.id):Ge(this.maps.element.id+"_LayerIndex_"+x.layerIndex+"_MarkerIndex_"+u+"_dataIndex_"+x.dataIndex+"_Group",this.maps.element.id)).children[0]),h&&null!==S){if("Markers"===this.maps.legendSettings.type)-1===y&&this.maps.toggledLegendId.push(p),-1===this.maps.toggledElementId.indexOf(S.id)&&this.maps.toggledElementId.push(S.id);this.maps.legendSettings.toggleLegendSettings.applyShapeSettings?(S.setAttribute("fill",this.maps.layers[c].shapeSettings.fill),S.setAttribute("stroke",this.maps.layers[c].shapeSettings.border.color||this.maps.themeStyle.shapeBorderColor),S.setAttribute("stroke-width",((0,t.isNullOrUndefined)(this.maps.layers[c].shapeSettings.border.width)?0:this.maps.layers[c].shapeSettings.border.width).toString()),S.setAttribute("stroke-opacity",((0,t.isNullOrUndefined)(this.maps.layers[c].shapeSettings.border.opacity)?this.maps.layers[c].shapeSettings.opacity:this.maps.layers[c].shapeSettings.border.opacity).toString()),S.setAttribute("fill-opacity",this.maps.layers[c].shapeSettings.opacity.toString())):(S.setAttribute("fill",a),S.setAttribute("fill-opacity",n.toString()),S.setAttribute("stroke",l),S.setAttribute("stroke-width",r.toString()),S.setAttribute("stroke-opacity",s.toString())),null!==e&&(o=Ge(this.maps.element.id+"_Legend_Index_"+p+"_Text",this.maps.element.id),i=Ge(this.maps.element.id+"_Legend_Index_"+p,this.maps.element.id),this.maps.legendSettings.toggleLegendSettings.applyShapeSettings?this.setToggleAttributes(o,i,this.maps.layers[c].shapeSettings.fill,this.maps.layers[c].shapeSettings.opacity,this.maps.layers[c].shapeSettings.border.color||this.maps.themeStyle.shapeBorderColor,(0,t.isNullOrUndefined)(this.maps.layers[c].shapeSettings.border.width)?0:this.maps.layers[c].shapeSettings.border.width,(0,t.isNullOrUndefined)(this.maps.layers[c].shapeSettings.border.opacity)?this.maps.layers[c].shapeSettings.opacity:this.maps.layers[c].shapeSettings.border.opacity,this.maps.layers[c].shapeSettings.fill):this.setToggleAttributes(o,i,a,n,l,r,s,a))}else"Markers"===this.maps.legendSettings.type?(-1!==y&&0===g&&this.maps.toggledLegendId.splice(y,1),this.markerToggleSelection(S,c,u,p)):this.bubbleToggleSelection(S,c,u,p),null!==e&&((i=Ge(this.maps.element.id+"_Legend_Index_"+p,this.maps.element.id)).setAttribute("fill",this.legendCollection[p].fill),i.setAttribute("fill-opacity",this.legendCollection[p].opacity),i.setAttribute("stroke",this.legendCollection[p].shapeBorder.color),i.setAttribute("stroke-width",this.legendCollection[p].shapeBorder.width),i.setAttribute("stroke-opacity",this.legendCollection[p].shapeBorder.opacity),(o=Ge(this.maps.element.id+"_Legend_Index_"+p+"_Text",this.maps.element.id)).setAttribute("fill",this.maps.legendSettings.textStyle.color));v._isVisible=!h}if("Layers"===this.maps.legendSettings.type&&this.maps.legendSettings.toggleLegendSettings.enable){var O=void 0;this.removeCollections(e,p);var C=this.maps.toggledLegendId.indexOf(p);-1!==C&&(h=!1);for(c=0;c<this.maps.layers.length;c++)for(g=0;g<v.length;g++)if(x=this.legendCollection[p].data[g],null!==(O=Ge(this.maps.element.id+"_LayerIndex_"+x.layerIndex+"_shapeIndex_"+x.shapeIndex+"_dataIndex_"+x.dataIndex,this.maps.element.id))){b=this.maps.toggledElementId.indexOf(O.id);h?(0===g&&this.maps.toggledLegendId.push(p),-1===b&&this.maps.toggledElementId.push(O.id),this.maps.legendSettings.toggleLegendSettings.applyShapeSettings?(O.setAttribute("fill",this.maps.layers[0].shapeSettings.fill),O.setAttribute("stroke",this.maps.layers[0].shapeSettings.border.color||this.maps.themeStyle.shapeBorderColor),O.setAttribute("fill-opacity",this.maps.layers[c].shapeSettings.opacity.toString()),O.setAttribute("stroke-width",((0,t.isNullOrUndefined)(this.maps.layers[c].shapeSettings.border.width)?0:this.maps.layers[c].shapeSettings.border.width).toString()),O.setAttribute("stroke-opacity",((0,t.isNullOrUndefined)(this.maps.layers[c].shapeSettings.border.opacity)?this.maps.layers[c].shapeSettings.opacity:this.maps.layers[c].shapeSettings.border.opacity).toString())):(O.setAttribute("fill",a),O.setAttribute("fill-opacity",n.toString()),O.setAttribute("stroke",l),O.setAttribute("stroke-width",r.toString()),O.setAttribute("stroke-opacity",s.toString())),null!==e&&(i=Ge(this.maps.element.id+"_Legend_Index_"+p,this.maps.element.id),o=Ge(this.maps.element.id+"_Legend_Index_"+p+"_Text",this.maps.element.id),this.maps.legendSettings.toggleLegendSettings.applyShapeSettings?this.setToggleAttributes(o,i,this.maps.layers[0].shapeSettings.fill,this.maps.layers[c].shapeSettings.opacity,this.maps.layers[0].shapeSettings.border.color||this.maps.themeStyle.shapeBorderColor,(0,t.isNullOrUndefined)(this.maps.layers[c].shapeSettings.border.width)?0:this.maps.layers[c].shapeSettings.border.width,(0,t.isNullOrUndefined)(this.maps.layers[c].shapeSettings.border.opacity)?this.maps.layers[c].shapeSettings.opacity:this.maps.layers[c].shapeSettings.border.opacity,this.maps.layers[0].shapeSettings.fill):this.setToggleAttributes(o,i,a,n,l,r,s,a))):(-1!==C&&0===g&&this.maps.toggledLegendId.splice(C,1),-1!==b&&this.maps.toggledElementId.splice(b,1),O.setAttribute("fill-opacity",this.maps.layers[c].shapeSettings.opacity.toString()),O.setAttribute("stroke-width",((0,t.isNullOrUndefined)(this.maps.layers[c].shapeSettings.border.width)?0:this.maps.layers[c].shapeSettings.border.width).toString()),O.setAttribute("stroke",this.maps.layers[0].shapeSettings.border.color||this.maps.themeStyle.shapeBorderColor),O.setAttribute("stroke-opacity",((0,t.isNullOrUndefined)(this.maps.layers[c].shapeSettings.border.opacity)?this.maps.layers[c].shapeSettings.opacity:this.maps.layers[c].shapeSettings.border.opacity).toString()),O.setAttribute("fill",this.legendCollection[p].fill),null!==e&&(o=Ge(this.maps.element.id+"_Legend_Index_"+p+"_Text",this.maps.element.id),i=Ge(this.maps.element.id+"_Legend_Index_"+p,this.maps.element.id),this.setToggleAttributes(o,i,this.legendCollection[p].fill,this.legendCollection[p].opacity,this.legendCollection[p].shapeBorder.color,this.legendCollection[p].shapeBorder.width,this.legendCollection[p].shapeBorder.opacity,"#757575")))}v._isVisible=!h}}},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 o=this.getIndexofLegend(this.shapeHighlightCollection,e);-1!==o&&this.shapeHighlightCollection.splice(o,1);var a=this.maps.selectedLegendElementId.indexOf(t);-1!==a&&this.maps.selectedLegendElementId.splice(a,1)},e.prototype.removeEventListener=function(){this.maps.isDestroyed||(this.maps.off(t.Browser.touchMoveEvent,this.interactiveHandler),this.maps.off(t.Browser.touchEndEvent,this.interactiveHandler),this.maps.off(mi,this.legendClick))},e.prototype.getLegendData=function(e,i,o,a,n,l,r){var s=[];if("[object Array]"===Object.prototype.toString.call(n))for(var d=0;d<n.length;d++){var p=n[d],h=a.indexOf(".")>-1?X(o,a):o[a],m=_e(o[a],l,p.properties),c=(0,t.isNullOrUndefined)(h)||"string"!=typeof h?h:h.toLowerCase();if((!(0,t.isNullOrUndefined)(p.properties[m])&&isNaN(p.properties[m])?p.properties[m].toLowerCase():p.properties[m])===c)if("MultiPoint"!==p.geometry.type)s.push({layerIndex:e,shapeIndex:d,dataIndex:i,name:o[a],value:r,pointIndex:-1});else for(var u=0;u<p.geometry.coordinates.length;u++)s.push({layerIndex:e,shapeIndex:d,dataIndex:i,name:o[a],value:r,pointIndex:u})}return s},e.prototype.setToggleAttributes=function(e,i,o,a,n,l,r,s){e.setAttribute("fill",s),i.setAttribute("fill",o),i.setAttribute("fill-opacity",a.toString()),i.setAttribute("stroke",n),i.setAttribute("stroke-width",l.toString()),(0,t.isNullOrUndefined)(r)||i.setAttribute("stroke-opacity",r.toString())},e.prototype.legendGradientColor=function(e,i){var o,a="http://www.w3.org/2000/svg";if(!(0,t.isNullOrUndefined)(e.color)&&"object"==typeof e.color){var n=document.createElementNS(a,"linearGradient"),l=this.maps.legendSettings.position,r="Top"===l||"Bottom"===l?"100":"0",s="Top"===l||"Bottom"===l?"0":"100";n.setAttribute("id","linear_"+i+"_"+this.maps.element.id),n.setAttribute("x1","0%"),n.setAttribute("y1","0%"),n.setAttribute("x2",r+"%"),n.setAttribute("y2",s+"%");for(var d=0;d<e.color.length;d++){var p=100/(e.color.length-1),h=document.createElementNS(a,"stop");h.setAttribute("offset",d*p+"%"),h.setAttribute("stop-color",e.color[d]),h.setAttribute("stop-opacity",1..toString()),n.appendChild(h)}this.legendLinearGradient=n;var m="url(#linear_"+i+"_"+this.maps.element.id+")";this.defsElement.appendChild(n),o=m}return o},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}(),so=function(){function e(e){this.maps=e,this.addEventListener()}return e.prototype.addEventListener=function(){this.maps.isDestroyed||(this.maps.on(t.Browser.touchMoveEvent,this.mouseMove,this),this.maps.on(t.Browser.touchStartEvent,this.mouseMove,this))},e.prototype.removeEventListener=function(){this.maps.isDestroyed||(this.maps.off(t.Browser.touchMoveEvent,this.mouseMove),this.maps.off(t.Browser.touchStartEvent,this.mouseMove))},e.prototype.addHighlight=function(e,t,i){var o=We(e,t,0,this.maps);i?this.mapHighlight(o,null,null):Je(o)},e.prototype.mouseMove=function(e){var i,o=e.target,a="touch"===e.pointerType||"2"===e.pointerType||e.type.indexOf("touch")>-1;if((-1!==o.id.indexOf("LayerIndex")||o.id.indexOf("NavigationIndex")>-1)&&"ShapeselectionMapStyle"!==o.getAttribute("class")&&!a&&"MarkerselectionMapStyle"!==o.getAttribute("class")&&"BubbleselectionMapStyle"!==o.getAttribute("class")&&"navigationlineselectionMapStyle"!==o.getAttribute("class")&&"PolygonselectionMapStyle"!==o.getAttribute("class")&&"LineselectionMapStyle"!==o.getAttribute("class")){i=parseInt(o.id.split("_LayerIndex_")[1].split("_")[0],10);var n=void 0,l=void 0,r=void 0,s=void 0;if(o.id.indexOf("shapeIndex")>-1)r=parseInt(o.id.split("_shapeIndex_")[1].split("_")[0],10),n=this.maps.layers[i].shapeData.features&&!(0,t.isNullOrUndefined)(this.maps.layersCollection[i].layerData[r])?this.maps.layersCollection[i].layerData[r].property:null,s=parseInt(o.id.split("_dataIndex_")[1].split("_")[0],10),l=(0,t.isNullOrUndefined)(s)?null:this.maps.layers[i].dataSource[s],this.highlightSettings=this.maps.layers[i].highlightSettings;else if(o.id.indexOf("BubbleIndex")>-1){var d=parseInt(o.id.split("_BubbleIndex_")[1].split("_")[0],10);s=parseInt(o.id.split("_dataIndex_")[1].split("_")[0],10),l=this.maps.layers[i].bubbleSettings[d].dataSource[s],this.highlightSettings=this.maps.layers[i].bubbleSettings[d].highlightSettings}else if(o.id.indexOf("MarkerIndex")>-1){var p=parseInt(o.id.split("_MarkerIndex_")[1].split("_")[0],10);s=parseInt(o.id.split("_dataIndex_")[1].split("_")[0],10),l=this.maps.layers[i].markerSettings[p].dataSource[s],this.highlightSettings=this.maps.layers[i].markerSettings[p].highlightSettings}else if(o.id.indexOf("_PolygonIndex_")>-1)s=parseInt(o.id.split("_PolygonIndex_")[1].split("_")[0],10),l=this.maps.layers[i].polygonSettings.polygons[s].points,this.highlightSettings=this.maps.layers[i].polygonSettings.highlightSettings;else{var h=parseInt(o.id.split("_NavigationIndex_")[1].split("_")[0],10);i=parseInt(o.id.split("_LayerIndex_")[1].split("_")[0],10),n=null,l={latitude:this.maps.layers[i].navigationLineSettings[h].latitude,longitude:this.maps.layers[i].navigationLineSettings[h].longitude},this.highlightSettings=this.maps.layers[i].navigationLineSettings[h].highlightSettings}if(this.highlightSettings.enable)this.handleHighlight(o,i,l,n);else{var m=document.getElementsByClassName("highlightMapStyle")[0];if(!(0,t.isNullOrUndefined)(m)&&(Je(m),m.id.indexOf("NavigationIndex")>-1)){h=parseInt(m.id.split("_NavigationIndex_")[1].split("_")[0],10);var c=parseInt(m.parentElement.id.split("_LayerIndex_")[1].split("_")[0],10);m.setAttribute("stroke-width",this.maps.layers[c].navigationLineSettings[h].width.toString()),m.setAttribute("stroke",this.maps.layers[c].navigationLineSettings[h].color)}}}else if(He("highlightMapStyle").length>0){if((o=He("highlightMapStyle")[0]).id.indexOf("NavigationIndex")>-1){h=parseInt(o.id.split("_NavigationIndex_")[1].split("_")[0],10);i=parseInt(o.parentElement.id.split("_LayerIndex_")[1].split("_")[0],10),o.setAttribute("stroke-width",this.maps.layers[i].navigationLineSettings[h].width.toString()),o.setAttribute("stroke",this.maps.layers[i].navigationLineSettings[h].color)}Je(o),this.maps.legendSettings.visible&&this.maps.legendModule&&this.maps.legendModule.removeShapeHighlightCollection()}else(-1!==o.id.indexOf(this.maps.element.id+"_Legend_Shape_Index")||-1!==o.id.indexOf(this.maps.element.id+"_Legend_Index"))&&this.maps.legendModule&&this.maps.legendSettings.visible&&-1===o.id.indexOf("_Text")?this.maps.legendModule.legendHighLightAndSelection(o,"highlight"):this.maps.legendSettings.visible&&this.maps.legendModule&&this.maps.legendModule.removeLegendHighlightCollection()},e.prototype.handleHighlight=function(e,t,i,o){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,o,i)},e.prototype.mapHighlight=function(e,i,o){var a=this,n=parseInt(e.id.split("_LayerIndex_")[1].split("_")[0],10),l=!1;if(e.id.indexOf("MarkerIndex")>-1){var r=parseInt(e.id.split("_MarkerIndex_")[1].split("_")[0],10);l=this.maps.layers[n].markerSettings[r].highlightSettings.enable}var s=-1===e.parentElement.id.indexOf("LineString")?this.highlightSettings.border.color:this.highlightSettings.fill||this.highlightSettings.border.color,d=-1===e.parentElement.id.indexOf("LineString")?this.highlightSettings.border.width/(l?1:this.maps.scale):this.highlightSettings.border.width/this.maps.scale,p=(0,t.isNullOrUndefined)(this.highlightSettings.border.opacity)?this.highlightSettings.opacity:this.highlightSettings.border.opacity,h={opacity:this.highlightSettings.opacity,fill:-1===e.parentElement.id.indexOf("LineString")?-1===e.id.indexOf("NavigationIndex")?(0,t.isNullOrUndefined)(this.highlightSettings.fill)?e.getAttribute("fill"):this.highlightSettings.fill:"none":"transparent",border:{color:s,width:d,opacity:p},cancel:!1},m={opacity:h.opacity,fill:h.fill,border:{color:s,width:d,opacity:p},name:vi,target:e.id,cancel:!1,shapeData:i,data:o,maps:this.maps};e.id.indexOf("shapeIndex")>-1&&this.maps.trigger(vi,m,(function(){}));var c={opacity:h.opacity,fill:h.fill,border:{color:s,width:d,opacity:p},name:Vi,target:e.id,cancel:!1,shapeData:i,data:o,maps:this.maps};this.maps.trigger(Vi,c,(function(){c.cancel=h.cancel!==c.cancel?c.cancel:e.id.indexOf("shapeIndex")>-1?m.cancel:h.cancel,c.fill=h.fill!==c.fill?c.fill:e.id.indexOf("shapeIndex")>-1?m.fill:h.fill,c.opacity=h.opacity!==c.opacity?c.opacity:e.id.indexOf("shapeIndex")>-1?m.opacity:h.opacity,c.border.color=h.border.color!==c.border.color?c.border.color:e.id.indexOf("shapeIndex")>-1?m.border.color:h.border.color,c.border.width=h.border.width!==c.border.width?c.border.width:e.id.indexOf("shapeIndex")>-1?m.border.width:h.border.width,c.border.opacity=h.border.opacity!==c.border.opacity?c.border.opacity:e.id.indexOf("shapeIndex")>-1?m.border.opacity:h.border.opacity,a.highlightMap(e,c)}))},e.prototype.highlightMap=function(e,t){if("highlightMapStyle"!==e.getAttribute("class")&&!t.cancel){if(He("highlightMapStyle").length>0){var i=He("highlightMapStyle")[0];if(Je(i),i.id.indexOf("NavigationIndex")>-1){var o=parseInt(i.id.split("_NavigationIndex_")[1].split("_")[0],10),a=parseInt(i.parentElement.id.split("_LayerIndex_")[1].split("_")[0],10);i.setAttribute("stroke-width",this.maps.layers[a].navigationLineSettings[o].width.toString()),i.setAttribute("stroke",this.maps.layers[a].navigationLineSettings[o].color)}}Re("highlightMap")?Xe("highlightMap","highlightMapStyle",t):document.body.appendChild(qe("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}(),po=function(){function e(e){this.maps=e,this.addEventListener()}return e.prototype.addEventListener=function(){this.maps.isDestroyed||this.maps.on(mi,this.mouseClick,this)},e.prototype.removeEventListener=function(){this.maps.isDestroyed||this.maps.off(mi,this.mouseClick)},e.prototype.mouseClick=function(e){if(!(0,t.isNullOrUndefined)(e.type)&&-1!==e.type.indexOf("touch")&&(0,t.isNullOrUndefined)(e.id)&&(e=e.target),!(0,t.isNullOrUndefined)(e.id)&&(e.id.indexOf("LayerIndex")>-1||e.id.indexOf("NavigationIndex")>-1)){var i=void 0,o=void 0,a=void 0,n=void 0,l=parseInt(e.id.split("_LayerIndex_")[1].split("_")[0],10);if(e.id.indexOf("shapeIndex")>-1)a=parseInt(e.id.split("_shapeIndex_")[1].split("_")[0],10),i=!(0,t.isNullOrUndefined)(this.maps.layers[l].shapeData.features)&&this.maps.layers[l].shapeData.features.length>a?this.maps.layers[l].shapeData.features[a].properties:!(0,t.isNullOrUndefined)(this.maps.layers[l].shapeData.geometries)&&this.maps.layers[l].shapeData.geometries.length>a?this.maps.layers[l].shapeData.geometries[a].properties:null,n=parseInt(e.id.split("_dataIndex_")[1].split("_")[0],10),o=(0,t.isNullOrUndefined)(n)?null:this.maps.layers[l].dataSource[n],this.selectionsettings=this.maps.layers[l].selectionSettings,this.selectionType="Shape";else if(e.id.indexOf("BubbleIndex")>-1){var r=parseInt(e.id.split("_BubbleIndex_")[1].split("_")[0],10);n=parseInt(e.id.split("_dataIndex_")[1].split("_")[0],10),o=this.maps.layers[l].bubbleSettings[r].dataSource[n],this.selectionsettings=this.maps.layers[l].bubbleSettings[r].selectionSettings,this.selectionType="Bubble"}else if(e.id.indexOf("MarkerIndex")>-1){var s=parseInt(e.id.split("_MarkerIndex_")[1].split("_")[0],10);n=parseInt(e.id.split("_dataIndex_")[1].split("_")[0],10),o=this.maps.layers[l].markerSettings[s].dataSource[n],this.selectionsettings=this.maps.layers[l].markerSettings[s].selectionSettings,this.selectionType="Marker"}else if(e.id.indexOf("_PolygonIndex_")>-1)n=parseInt(e.id.split("_PolygonIndex_")[1].split("_")[0],10),o=this.maps.layers[l].polygonSettings.polygons[n].points,this.selectionsettings=this.maps.layers[l].polygonSettings.selectionSettings,this.selectionType="Polygon";else if(e.id.indexOf("NavigationIndex")>-1){var d=parseInt(e.id.split("_NavigationIndex_")[1].split("_")[0],10);i=null,o={latitude:this.maps.layers[l].navigationLineSettings[d].latitude,longitude:this.maps.layers[l].navigationLineSettings[d].longitude},this.selectionsettings=this.maps.layers[l].navigationLineSettings[d].selectionSettings,this.selectionType="navigationline"}!(0,t.isNullOrUndefined)(this.selectionsettings)&&this.selectionsettings.enable&&this.selectElement(e,l,o,i)}else this.maps.legendSettings.visible&&!this.maps.legendSettings.toggleLegendSettings.enable&&this.maps.legendModule&&!(0,t.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,o){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,o,i)},e.prototype.addSelection=function(e,t,i){var o=We(e,t,0,this.maps);i?this.selectMap(o,null,null):Je(o)},e.prototype.selectMap=function(e,i,o){var a=this,n=e.parentElement.id.indexOf("LineString")>-1,l={color:n&&this.selectionsettings.fill||this.selectionsettings.border.color,width:n?this.selectionsettings.border.width/this.maps.scale:this.selectionsettings.border.width/("Marker"===this.selectionType?1:this.maps.scale),opacity:this.selectionsettings.border.opacity},r={opacity:this.selectionsettings.opacity,fill:n?"transparent":"navigationline"!==this.selectionType?this.selectionsettings.fill:"none",border:l,name:Zi,target:e.id,cancel:!1,shapeData:i,data:o,maps:this.maps};this.maps.trigger("itemSelection",r,(function(i){if(r.border.opacity=(0,t.isNullOrUndefined)(a.selectionsettings.border.opacity)?a.selectionsettings.opacity:a.selectionsettings.border.opacity,!r.cancel)if(e.getAttribute("class")===a.selectionType+"selectionMapStyle"||"LineselectionMapStyle"===e.getAttribute("class")){Je(e),a.removedSelectionList(e);for(var o=0;o<a.maps.shapeSelectionItem.length;o++)if(a.maps.shapeSelectionItem[o]===r.shapeData){a.maps.shapeSelectionItem.splice(o,1);break}if(e.id.indexOf("NavigationIndex")>-1){var l=parseInt(e.id.split("_NavigationIndex_")[1].split("_")[0],10),s=parseInt(e.parentElement.id.split("_LayerIndex_")[1].split("_")[0],10);e.setAttribute("stroke-width",a.maps.layers[s].navigationLineSettings[l].width.toString()),e.setAttribute("stroke",a.maps.layers[s].navigationLineSettings[l].color)}}else{var d=Ae(a.maps.element.id+"_Layer_Collections");if(!a.selectionsettings.enableMultiSelect&&(d.getElementsByClassName(a.selectionType+"selectionMapStyle").length>0||d.getElementsByClassName("LineselectionMapStyle").length>0)){for(var p=d.getElementsByClassName(a.selectionType+"selectionMapStyle").length,h=void 0,m=0;m<p;m++)Je(h=d.getElementsByClassName(a.selectionType+"selectionMapStyle")[0]),a.removedSelectionList(h);if(d.getElementsByClassName("LineselectionMapStyle").length>0){p=d.getElementsByClassName("LineselectionMapStyle").length;for(m=0;m<p;m++)Je(h=d.getElementsByClassName("LineselectionMapStyle")[0]),a.removedSelectionList(h)}if("Shape"===a.selectionType){a.maps.shapeSelectionItem=[];for(var c=a.maps.selectedElementId.length,u=0;u<c;u++){Je(h=d.getElementsByClassName(a.selectionType+"selectionMapStyle")[0]);var g=a.maps.selectedElementId.indexOf(h.getAttribute("id"));a.maps.selectedElementId.splice(g,1)}}if(h.id.indexOf("NavigationIndex")>-1){l=parseInt(e.id.split("_NavigationIndex_")[1].split("_")[0],10),s=parseInt(e.parentElement.id.split("_LayerIndex_")[1].split("_")[0],10);h.setAttribute("stroke-width",a.maps.layers[s].navigationLineSettings[l].width.toString()),h.setAttribute("stroke",a.maps.layers[s].navigationLineSettings[l].color)}}n?(Re("LineselectionMap")?Xe("LineselectionMap","LineselectionMapStyle",r):document.body.appendChild(qe("LineselectionMap","LineselectionMapStyle",r)),e.setAttribute("class","LineselectionMapStyle")):(Re(a.selectionType+"selectionMap")?Xe(a.selectionType+"selectionMap",a.selectionType+"selectionMapStyle",r):document.body.appendChild(qe(a.selectionType+"selectionMap",a.selectionType+"selectionMapStyle",r)),e.setAttribute("class",a.selectionType+"selectionMapStyle")),"ShapeselectionMapStyle"===e.getAttribute("class")&&(a.maps.shapeSelectionClass=Re(a.selectionType+"selectionMap"),a.maps.selectedElementId.push(e.getAttribute("id")),a.maps.shapeSelectionItem.push(r.shapeData)),"MarkerselectionMapStyle"===e.getAttribute("class")&&(a.maps.markerSelectionClass=Re(a.selectionType+"selectionMap"),a.maps.selectedMarkerElementId.push(e.getAttribute("id"))),"BubbleselectionMapStyle"===e.getAttribute("class")&&(a.maps.bubbleSelectionClass=Re(a.selectionType+"selectionMap"),a.maps.selectedBubbleElementId.push(e.getAttribute("id"))),"navigationlineselectionMapStyle"===e.getAttribute("class")&&(a.maps.navigationSelectionClass=Re(a.selectionType+"selectionMap"),a.maps.selectedNavigationElementId.push(e.getAttribute("id"))),"PolygonselectionMapStyle"===e.getAttribute("class")&&(a.maps.polygonSelectionClass=Re(a.selectionType+"selectionMap"),a.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}(),ho=function(){function e(e){this.maps=e,this.tooltipId=this.maps.element.id+"_mapsTooltip",this.addEventListener()}return e.prototype.renderTooltip=function(e){var o,a,n,l,r,s,d,h=this;if(-1!==e.type.indexOf("touch")?(this.isTouch=!0,o=(l=e).changedTouches[0].pageX,a=l.changedTouches[0].pageY,n=l.target):(this.isTouch="touch"===e.pointerType,o=e.pageX,a=e.pageY,n=e.target),-1===n.id.indexOf(this.maps.element.id)){var m=n.closest("."+this.maps.element.id+"_marker_template_element");!(0,t.isNullOrUndefined)(m)&&m.id.indexOf("_MarkerIndex_")>-1&&(n=m)}var c,u,g,y,f,b,v="",S=n.id,x=[],O=S.indexOf("_LayerIndex_")>-1&&parseFloat(S.split("_LayerIndex_")[1].split("_")[0]),C=this.maps.layersCollection[O],M=[],_=p(o,a,this.maps.svgObject);this.tooltipTargetID=S;var L=null,P=null,w=this.maps.getClickLocation(S,e.pageX,e.pageY,n,e.layerX,e.layerY,"tooltip");(0,t.isNullOrUndefined)(w)||(L=w.latitude,P=w.longitude);var T=S.indexOf("_PolygonIndex_")>-1;if((S.indexOf("_shapeIndex_")>-1||S.indexOf("_MarkerIndex_")>-1||S.indexOf("_BubbleIndex_")>-1||S.indexOf("_PolygonIndex_")>-1)&&null===this.maps.markerDragArgument){if(S.indexOf("_PolygonIndex_")>-1){var I=parseInt(S.split("_PolygonIndex_")[1].split("_")[0],10);d=C.polygonSettings.tooltipSettings,b=C.polygonSettings.polygons[I],y=d.textStyle,f=d.fill,M.push(b.tooltipText)}else if(S.indexOf("_shapeIndex_")>-1){s=C.tooltipSettings;var F=parseInt(S.split("_shapeIndex_")[1].split("_")[0],10);if((0,t.isNullOrUndefined)(C.layerData)||(0,t.isNullOrUndefined)(C.layerData[F]))return;var k=C.layerData[F].property,N=!1,E="[object Array]"===Object.prototype.toString.call(C.shapePropertyPath)?C.shapePropertyPath:[C.shapePropertyPath];if(!(0,t.isNullOrUndefined)(E)){for(var z=0;z<E.length;z++)for(var B=0;B<C.dataSource.length;B++){var A=C.dataSource[B],U=C.shapeDataPath.indexOf(".")>-1?X(A,C.shapeDataPath):A[C.shapeDataPath];if((!(0,t.isNullOrUndefined)(U)&&isNaN(A[C.shapeDataPath])?U.toLowerCase():U)===(!(0,t.isNullOrUndefined)(k[E[z]])&&isNaN(k[E[z]])?k[E[z]].toLowerCase():k[E[z]])){N=!0,O=B,z=E.length;break}}if(O=N?O:null,!(0,t.isNullOrUndefined)(C.dataSource[O]))for(u in x=JSON.parse(JSON.stringify(C.dataSource[O])),k)x.hasOwnProperty(u)||(x[u]=k[u])}if(s.visible&&(!(0,t.isNullOrUndefined)(O)&&!isNaN(O)||!(0,t.isNullOrUndefined)(k)))if(C.tooltipSettings.format)v=this.formatter(C.tooltipSettings.format,x);else{var j=_e(C.shapeDataPath,C.shapePropertyPath,k);v=(0,t.isNullOrUndefined)(C.dataSource)||(0,t.isNullOrUndefined)(O)?k[j]:H(s.valuePath.indexOf(".")>-1?X(C.dataSource[O],s.valuePath):C.dataSource[O][s.valuePath],this.maps),(0,t.isNullOrUndefined)(v)&&(v=s.valuePath.indexOf(".")>-1?X(k,s.valuePath):k[s.valuePath])}}else if(S.indexOf("_MarkerIndex_")>-1){var Z=parseInt(S.split("_MarkerIndex_")[1].split("_")[0],10),R=parseInt(S.split("_MarkerIndex_")[1].split("_")[2],10),D=C.markerSettings[Z];s=D.tooltipSettings,x=D.dataSource[R],s.visible&&!isNaN(Z)&&(v=D.tooltipSettings.format?this.formatter(D.tooltipSettings.format,D.dataSource[R]):"function"!=typeof D.template&&D.template&&!D.tooltipSettings.valuePath?D.template.split(">")[1].split("<")[0]:H(D.tooltipSettings.valuePath.indexOf(".")>-1?X(D.dataSource[R],D.tooltipSettings.valuePath):D.dataSource[R][D.tooltipSettings.valuePath],this.maps))}else if(S.indexOf("_BubbleIndex_")>-1){var V=parseInt(S.split("_BubbleIndex_")[1].split("_")[0],10),G=(R=parseInt(S.split("_BubbleIndex_")[1].split("_")[2],10),C.bubbleSettings[V]);s=G.tooltipSettings,x=G.dataSource[R],s.visible&&!isNaN(R)&&(v=G.tooltipSettings.format?this.formatter(G.tooltipSettings.format,G.dataSource[R]):H(G.tooltipSettings.valuePath.indexOf(".")>-1?X(G.dataSource[R],G.tooltipSettings.valuePath):G.dataSource[R][G.tooltipSettings.valuePath],this.maps))}if(T?d.visible:s.visible){document.getElementById(this.tooltipId)?c=document.getElementById(this.tooltipId):(c=(0,t.createElement)("div",{id:this.maps.element.id+"_mapsTooltip",className:"EJ2-maps-Tooltip"}),(0,t.isNullOrUndefined)(T?b.tooltipTemplate:s.template)||(T?""===b.tooltipTemplate:""===s.template)||"MouseMove"===this.maps.tooltipDisplayMode?c.style.cssText="position: absolute;pointer-events:none;":c.style.position="absolute",document.getElementById(this.maps.element.id+"_Secondary_Element").appendChild(c)),T?b.tooltipTemplate:s.template,(T?null!==b.tooltipTemplate:null!==s.template)&&1===Object.keys((T?b.tooltipTemplate:s.template,T?b.tooltipTemplate:s.template)).length&&(T?b.tooltipTemplate=b.tooltipTemplate[Object.keys(b.tooltipTemplate)[0]]:s.template=s.template[Object.keys(s.template)[0]]);var W={location:_,text:M,data:x=this.setTooltipContent(s,x),textStyle:{color:T?y.color:s.textStyle.color,fontFamily:T?y.fontFamily:s.textStyle.fontFamily,fontStyle:T?y.fontStyle:s.textStyle.fontStyle,fontWeight:T?y.fontWeight:s.textStyle.fontWeight,opacity:T?y.opacity:s.textStyle.opacity,size:T?y.size:s.textStyle.size},template:T?b.tooltipTemplate:s.template};""!==(r={cancel:!1,name:fi,options:W,fill:T?f:s.fill,maps:this.maps,latitude:L,longitude:P,element:n,eventArgs:e,content:T?b.tooltipText:(0,t.isNullOrUndefined)(v)?"":v.toString()}).content||""!==r.options.template?this.maps.trigger(fi,r,(function(o){if(r.cancel||(0,t.isNullOrUndefined)(v)||-1!==S.indexOf("_cluster_")||-1!==S.indexOf("_dataLabel_"))h.clearTooltip(e.target);else{h.maps.isProtectedOnChange=!0,r.options.textStyle.size=r.options.textStyle.size||h.maps.themeStyle.fontSize,r.options.textStyle.color=r.options.textStyle.color||h.maps.themeStyle.tooltipFontColor,r.options.textStyle.fontFamily=r.options.textStyle.fontFamily||h.maps.themeStyle.fontFamily,r.options.textStyle.fontWeight=r.options.textStyle.fontWeight||h.maps.themeStyle.fontWeight,r.options.textStyle.opacity=r.options.textStyle.opacity||h.maps.themeStyle.tooltipTextOpacity;var a=T?{color:d.border.color||h.maps.themeStyle.tooltipBorderColor,width:d.border.width,opacity:d.border.opacity}:{color:s.border.color||h.maps.themeStyle.tooltipBorderColor,width:s.border.width,opacity:s.border.opacity};if(r.cancel?h.svgTooltip=new i.Tooltip({theme:h.maps.theme,enable:!0,header:"",data:s.data,template:s.template,content:r.content.toString()!==v.toString()?[r.content.toString()]:[v.toString()],shapes:[],location:s.location,palette:[g],areaBounds:h.maps.mapAreaRect,textStyle:s.textStyle,availableSize:h.maps.availableSize,fill:s.fill||h.maps.themeStyle.tooltipFillColor,enableShadow:!0,border:a}):h.svgTooltip=new i.Tooltip({theme:h.maps.theme,enable:!0,header:"",data:r.options.data,template:r.options.template,content:r.content.toString()!==v.toString()?[r.content.toString()]:[v.toString()],shapes:[],location:r.options.location,palette:[g],areaBounds:h.maps.mapAreaRect,textStyle:r.options.textStyle,availableSize:h.maps.availableSize,fill:r.fill||h.maps.themeStyle.tooltipFillColor,enableShadow:!0,border:a}),(h.maps.isVue||h.maps.isVue3)&&(h.svgTooltip.controlInstance=h.maps),h.svgTooltip.opacity=h.maps.themeStyle.tooltipFillOpacity||h.svgTooltip.opacity,h.svgTooltip.appendTo(c),h.maps.renderReactTemplates(),h.maps.isDevice){var n=S.indexOf("_MarkerIndex_")>-1||S.indexOf("_BubbleIndex_")>-1||S.indexOf("_shapeIndex_")>-1?s.duration:d.duration;null!==(n=!(0,t.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:W,element:this.svgTooltip.element}),this.svgTooltip?this.maps.trigger("tooltipRenderComplete",{cancel:!1,name:"tooltipRenderComplete",maps:this.maps,options:W,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");(0,t.isNullOrUndefined)(q)&&this.clearTooltip(e.target)}},e.prototype.setTooltipContent=function(e,i){var o=(0,t.extend)({},i,null,!0);return this.maps.format&&!isNaN(Number(o[e.valuePath]))?o[e.valuePath]=je(this.maps,Number(o[e.valuePath])):o=Object.keys(o).length?o:void 0,o},e.prototype.formatter=function(e,t){void 0===t&&(t={});for(var i=0,o=Object.keys(t);i<o.length;i++){var a=o[i];e="object"==typeof t[a]?G("",e,t,this.maps):e.split("${"+a+"}").join(H(t[a],this.maps))}return e},e.prototype.mouseUpHandler=function(e){(0,t.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&&((0,t.remove)(document.getElementsByClassName("EJ2-maps-Tooltip")[0]),e=!0),e},e.prototype.clearTooltip=function(e){var i=e.closest("#"+this.maps.element.id+"_mapsTooltipparent_template");(0,t.isNullOrUndefined)(i)&&(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(t.Browser.touchEndEvent,this.mouseUpHandler,this):this.maps.on(t.Browser.touchMoveEvent,this.renderTooltip,this),this.maps.on(t.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(t.Browser.touchEndEvent,this.mouseUpHandler):this.maps.off(t.Browser.touchMoveEvent,this.renderTooltip),this.maps.off(t.Browser.touchCancelEvent,this.removeTooltip),this.maps.element.removeEventListener("contextmenu",this.removeTooltip)}},e.prototype.getModuleName=function(){return"MapsTooltip"},e.prototype.destroy=function(){(0,t.isNullOrUndefined)(this.svgTooltip)||this.svgTooltip.destroy(),this.svgTooltip=null,this.maps=null},e}(),mo=function(){function e(e){this.isPanModeEnabled=!1,this.mouseEnter=!1,this.isTouch=!1,this.rectZoomingStart=!1,this.browserName=t.Browser.info.name,this.isPointer=t.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=this.maps.zoomSettings.toolbarSettings.buttonSettings.selectionColor,this.fillColor=this.maps.zoomSettings.toolbarSettings.buttonSettings.color,this.addEventListener()}return e.prototype.performZooming=function(e,i,o){var a=this,n=this.maps;n.previousProjection=i<=1.5?void 0:n.projectionType,n.defaultState=!1,n.initialCheck=!1,n.markerZoomedState=n.isMarkerZoomCompleted=!1,n.zoomPersistence=n.enablePersistence;var l=n.tileZoomLevel,r=n.previousScale=n.scale,s=n.zoomSettings.maxZoom,d=n.zoomSettings.minZoom;i=s>=i?i:s;var p=!0;switch(o.toLowerCase()){case"zoomin":p=i<=this.maps.zoomSettings.maxZoom;break;case"zoomout":p=i>=this.maps.zoomSettings.minZoom}if(p){var h=n.tileTranslatePoint;if(n.isTileMap||!("ZoomIn"===o?i>=d&&i<=s:i>=d)&&!n.isReset){if(n.isTileMap&&i>=d&&i<=s)if(this.getTileTranslatePosition(l,i,e,o),n.tileZoomLevel=i,n.zoomSettings.zoomFactor=i,n.scale=Math.pow(2,i-1),"ZoomOut"===o&&n.zoomSettings.resetToInitial&&n.applyZoomReset&&i<=n.initialZoomLevel&&(n.initialCheck=!0,n.zoomPersistence=!1,n.tileTranslatePoint.x=n.initialTileTranslate.x,n.tileTranslatePoint.y=n.initialTileTranslate.y,i=n.tileZoomLevel=n.mapScaleValue=n.initialZoomLevel,n.scale=Math.pow(2,i-1)),n.mapScaleValue=isNaN(n.mapScaleValue)?1:n.mapScaleValue,n.translatePoint.y=(n.tileTranslatePoint.y-.01*n.mapScaleValue)/n.scale,n.translatePoint.x=(n.tileTranslatePoint.x-.01*n.mapScaleValue)/n.scale,this.triggerZoomEvent(h,l,o))n.translatePoint=n.tileTranslatePoint=new M(0,0),n.scale=n.previousScale,n.tileZoomLevel=l,n.zoomSettings.zoomFactor=n.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(n),n.mapLayerPanel.generateTiles(i,n.tileTranslatePoint,o+"wheel",null,e);var m=0===this.maps.layersCollection[0].animationDuration&&"Enable"===t.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")}),m)}}else{var c=n.mapAreaRect,u=n.baseMapRectBounds.min,g=n.baseMapRectBounds.max,y=Math.abs(u.x-g.x),f=Math.abs(u.y-g.y),b=void 0,v=void 0;if(i<1.2&&"Eckert5"!==n.projectionType)0!==y&&0!==f&&y!==f||(y=c.width/2,f=c.height),i=(i=parseFloat(Math.min(c.width/y,c.height/f).toFixed(2)))>1.05?1:i,n.translatePoint=this.calculateInitalZoomTranslatePoint(i,y,f,c,u,n);else{var S=n.translatePoint;b=S.x-(c.width/r-c.width/i)/(c.width/e.x),v=S.y-(c.height/r-c.height/i)/(c.height/e.y);var x=Math.abs(n.baseMapRectBounds.max.y-n.baseMapRectBounds.min.y)*i;b=x<n.mapAreaRect.height?c.x+(-u.x+(c.width/2-y/2)):b,v=x<n.mapAreaRect.height?c.y+(-u.y+(c.height/2-f/2)):v,n.translatePoint=new M(b,v)}n.scale=i,n.zoomTranslatePoint=n.translatePoint,this.triggerZoomEvent(h,l,o)?(n.translatePoint=n.previousPoint,n.scale=n.mapScaleValue=n.previousScale):this.applyTransform(n)}this.triggerZoomComplete(n,l,o)}this.maps.zoomNotApplied=!1,this.maps.isDevice&&this.removeToolbarOpacity(n.isTileMap?Math.round(n.tileZoomLevel):n.scale,n.element.id+"_Zooming_")},e.prototype.calculateInitalZoomTranslatePoint=function(e,t,i,o,a,n){t*=e,i*=e;var l=0!==a.x&&"layers"===n.translateType?n.availableSize.width-o.width:0,r=o.x+(-a.x+(o.width/2-t/2))-l,s=o.y+(-a.y+(o.height/2-i/2));return new M(r,s)},e.prototype.triggerZoomEvent=function(e,i,o){var a,n=this.maps;n.isTileMap&&(n.mapScaleValue=(0,t.isNullOrUndefined)(n.mapScaleValue)?1:n.mapScaleValue,n.translatePoint.y=(n.tileTranslatePoint.y-.01*n.mapScaleValue)/n.scale,n.translatePoint.x=(n.tileTranslatePoint.x-.01*n.mapScaleValue)/n.scale);var l=this.maps.getMinMaxLatitudeLongitude();return a=n.isTileMap?{cancel:!1,name:"zoom",type:o,maps:n,tileTranslatePoint:{previous:e,current:n.tileTranslatePoint},translatePoint:{previous:n.previousPoint,current:n.translatePoint},tileZoomLevel:{previous:i,current:n.tileZoomLevel},scale:{previous:n.previousScale,current:n.scale},minLatitude:l.minLatitude,maxLatitude:l.maxLatitude,minLongitude:l.minLongitude,maxLongitude:l.maxLongitude}:{cancel:!1,name:"zoom",type:o,maps:n,tileTranslatePoint:{},translatePoint:{previous:n.previousPoint,current:n.translatePoint},tileZoomLevel:{},scale:{previous:n.previousScale,current:n.scale},minLatitude:l.minLatitude,maxLatitude:l.maxLatitude,minLongitude:l.minLongitude,maxLongitude:l.maxLongitude},n.trigger("zoom",a),a.cancel},e.prototype.getTileTranslatePosition=function(e,t,i,o){var a=this.maps,n="ZoomOut"===o?10:"Reset"===o&&t>1?0:10,l=a.availableSize,r=256*Math.pow(2,e),s=256*Math.pow(2,t),d=(i.x-a.tileTranslatePoint.x)/r*100,p=(i.y-a.tileTranslatePoint.y)/r*100;a.tileTranslatePoint.x=1===t?l.width/2-256:i.x-d*s/100,a.tileTranslatePoint.y=1===t?l.height/2-256+2*n: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,n=this.zoomingRect,l=e.zoomSettings.maxZoom,r=e.zoomSettings.minZoom;if(n.height>0&&n.width>0){var s=this.zoomingRect.x+this.zoomingRect.width/2,d=this.zoomingRect.y+this.zoomingRect.height/2,p=void 0;if(e.isTileMap)p=(p=o+Math.round(o+(t.width/n.width+t.height/n.height)/2))>=r&&p<=l?p:l,e.zoomSettings.zoomFactor=p,this.getTileTranslatePosition(o,p,{x:s,y:d}),e.tileZoomLevel=p,e.translatePoint.x=(e.tileTranslatePoint.x-.5*Math.pow(2,p))/Math.pow(2,p),e.translatePoint.y=(e.tileTranslatePoint.y-.5*Math.pow(2,p))/Math.pow(2,p),e.scale=Math.pow(2,p),(i=this.triggerZoomEvent(a,o,""))?(e.translatePoint=e.tileTranslatePoint=new M(0,0),e.scale=e.tileZoomLevel=e.zoomSettings.zoomFactor=o):e.mapLayerPanel.generateTiles(p,e.tileTranslatePoint);else{var h=e.previousScale=e.scale;p=(p=h+Math.round((t.width/n.width+t.height/n.height)/2))<this.maps.zoomSettings.maxZoom?p:this.maps.zoomSettings.maxZoom;var m=e.previousPoint=e.translatePoint;if(p<=l){var c=m.x-(t.width/h-t.width/p)/(t.width/s),u=m.y-(t.height/h-t.height/p)/(t.height/d);e.translatePoint=new M(c,u)}e.scale=p<this.maps.zoomSettings.maxZoom?p:this.maps.zoomSettings.maxZoom,(i=this.triggerZoomEvent(a,o,""))&&(e.translatePoint=e.previousPoint,e.scale=e.previousScale),e.zoomTranslatePoint=e.translatePoint}i||(e.mapScaleValue=p,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 i,o=this.maps,a=o.tileZoomLevel,n=this.pinchFactor,l=o.tileTranslatePoint;if(o.isTileMap){h=this.getTouchCenterPoint();var r=Math.sqrt(Math.pow(this.touchMoveList[0].pageX-this.touchMoveList[1].pageX,2)+Math.pow(this.touchMoveList[0].pageY-this.touchMoveList[1].pageY,2)),s=o.tileZoomLevel;(0,t.isNullOrUndefined)(this.pinchDistance)||(this.pinchDistance>r?s-=1:this.pinchDistance<r&&(s+=1),(s=Math.min(this.maps.zoomSettings.maxZoom,Math.max(this.maps.zoomSettings.minZoom,s)))!==o.tileZoomLevel&&(this.pinchFactor=s,o.previousScale=o.scale,o.tileZoomLevel=this.pinchFactor,o.scale=Math.pow(2,o.tileZoomLevel-1),this.getTileTranslatePosition(a,this.pinchFactor,{x:h.x,y:h.y},null),o.translatePoint.x=(o.tileTranslatePoint.x-.01*o.scale)/o.scale,o.translatePoint.y=(o.tileTranslatePoint.y-.01*o.scale)/o.scale,(i=this.triggerZoomEvent(l,a,""))?(o.translatePoint=o.tileTranslatePoint=new M(0,0),o.scale=o.previousScale,o.tileZoomLevel=a,o.zoomSettings.zoomFactor=o.previousScale):o.mapLayerPanel.generateTiles(s,o.tileTranslatePoint))),this.pinchDistance=r}else{var d=o.mapAreaRect;o.isMarkerZoomCompleted=!1,o.previousScale=o.scale,o.previousPoint=o.translatePoint,o.previousProjection=o.projectionType;var p=dt(this.touchStartList,this.touchMoveList),h=mt(ht(this.touchMoveList,this.maps)),m=p/this.lastScale;this.lastScale=p,this.pinchFactor*=m,this.pinchFactor=Math.min(this.maps.zoomSettings.maxZoom,Math.max(this.pinchFactor,this.maps.zoomSettings.minZoom));var c=o.baseMapRectBounds.min,u=o.baseMapRectBounds.max,g=Math.abs(c.y-u.y),y=Math.abs(c.x-u.x),f=o.translatePoint,b=void 0,v=void 0;if(n<1.2&&"Eckert5"!==o.projectionType)0!==y&&0!==g&&y!==g||(y=d.width/2,g=d.height),n=(n=parseFloat(Math.min(d.width/y,d.height/g).toFixed(2)))>1.05?1:n,o.translatePoint=this.calculateInitalZoomTranslatePoint(n,y,g,d,c,o);else{var S=Math.abs(o.baseMapRectBounds.max.y-o.baseMapRectBounds.min.y)*n;b=f.x-(d.width/o.scale-d.width/n)/(d.width/h.x),v=f.y-(d.height/o.scale-d.height/n)/(d.height/h.y),b=S<o.mapAreaRect.height?d.x+(-c.x+(d.width/2-y/2)):b,v=S<o.mapAreaRect.height?d.y+(-c.y+(d.height/2-g/2)):v,o.translatePoint=new M(b,v)}o.scale=n,(i=this.triggerZoomEvent(l,a,""))&&(o.translatePoint=o.previousPoint,o.scale=o.previousScale)}o.mapScaleValue=n,i||this.applyTransform(o),this.triggerZoomComplete(o,a,""),t.Browser.isDevice&&this.removeToolbarOpacity(o.isTileMap?Math.round(o.tileZoomLevel):o.scale,o.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,i,o){if(e.zoomSettings.enable){var a=void 0;e.isTileMap&&(e.mapScaleValue=(0,t.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 n=this.maps.getMinMaxLatitudeLongitude();a=e.isTileMap?{cancel:!1,name:"zoomComplete",type:o,maps:e,tileTranslatePoint:{previous:e.tileTranslatePoint,current:e.tileTranslatePoint},translatePoint:{previous:e.previousPoint,current:e.translatePoint},tileZoomLevel:{previous:i,current:e.tileZoomLevel},scale:{previous:e.previousScale,current:e.scale},minLatitude:n.minLatitude,maxLatitude:n.maxLatitude,minLongitude:n.minLongitude,maxLongitude:n.maxLongitude}:{cancel:!1,name:"zoomComplete",type:o,maps:e,tileTranslatePoint:{},translatePoint:{previous:e.previousPoint,current:e.translatePoint},tileZoomLevel:{},scale:{previous:e.previousScale,current:e.scale},minLatitude:n.minLatitude,maxLatitude:n.maxLatitude,minLongitude:n.minLongitude,maxLongitude:n.maxLongitude},this.maps.trigger("zoomComplete",a)}},e.prototype.drawZoomRectangle=function(){var e=this.maps,t=this.mouseDownPoints,i=this.mouseMovePoints,o={width:1,color:this.maps.themeStyle.rectangleZoomBorderColor},a=Math.abs(i.x-t.x),n=Math.abs(i.y-t.y),l=i.x>t.x?t.x:t.x-a,r=i.y>t.y?t.y:t.y-n;if(l>e.mapAreaRect.x&&l<e.mapAreaRect.x+e.mapAreaRect.width&&r>e.mapAreaRect.y&&r<e.mapAreaRect.y+e.mapAreaRect.height){this.zoomingRect=new Z(l,r,a,n);var s=e.renderer.createSvg({id:e.element.id+"_Selection_Rect_Zooming",width:e.availableSize.width,height:e.availableSize.height,style:"position: absolute;"}),d=new N(e.element.id+"_ZoomRect",this.maps.themeStyle.rectangleZoomFillColor,o,this.maps.themeStyle.rectangleZoomFillOpacity,this.zoomingRect,0,0,"","3");s.appendChild(e.renderer.drawRectangle(d)),Ae(e.element.id+"_Secondary_Element").appendChild(s)}},e.prototype.animateTransform=function(e,i,o,a,n){var l=0===this.currentLayer.animationDuration&&"Enable"===t.animationMode?1e3:this.currentLayer.animationDuration;i&&0!==l&&!this.maps.isTileMap?this.maps.isTileMap||ut(e,0,l,new j(o,a),n,this.maps.mapAreaRect,this.maps):this.maps.isTileMap&&e.id.indexOf("_Polygons_Group")>-1||e.setAttribute("transform","scale("+n+") translate( "+o+" "+a+" )")},e.prototype.applyTransform=function(e,i,o){var a,n=this;this.templateCount=0;var l=e.scale,r=e.translatePoint.x,s=e.translatePoint.y,d=0;if(e.zoomShapeCollection=[],this.isPanningInProgress=o||!1,document.getElementById(e.element.id+"_mapsTooltip")&&ke(e.element.id+"_mapsTooltip"),this.layerCollectionEle){for(var p=function(p){var m=h.layerCollectionEle.childNodes[p];if("g"===m.tagName){h.templateCount++,h.index=m.id.indexOf("_LayerIndex_")>-1&&parseFloat(m.id.split("_LayerIndex_")[1].split("_")[0]),h.currentLayer=e.layersCollection[h.index];for(var c=e.mapLayerPanel.calculateFactor(h.currentLayer),g=m.childElementCount,y=function(p){var g=m.childNodes[p];if(g.id.indexOf("_Markers_Group")>-1||g.id.indexOf("_bubble_Group")>-1||g.id.indexOf("_dataLableIndex_Group")>-1){if(g.id.indexOf("_Markers_Group")>-1){var y;if(h.isPanModeEnabled&&o||(0,t.isNullOrUndefined)(g.childNodes[0])||h.markerTranslates(g.childNodes[0],c,r,s,l,"Marker",m),g=m.childNodes[p],!(0,t.isNullOrUndefined)(g)&&-1!==g.id.indexOf("Markers")&&(Array.prototype.forEach.call(g.childNodes,(function(o,a){n.markerTranslate(o,c,r,s,l,"Marker",i);var d=parseInt(o.id.split("_dataIndex_")[1].split("_")[0],10),p=parseInt(o.id.split("_MarkerIndex_")[1].split("_")[0],10);if(y=n.currentLayer.markerSettings[p].animationDuration>0||"Enable"===t.animationMode,n.currentLayer.markerSettings[p].initialMarkerSelection.length>0)for(var h=n.currentLayer.markerSettings[p].dataSource[d],m=0;m<n.currentLayer.markerSettings[p].initialMarkerSelection.length;m++)n.currentLayer.markerSettings[p].initialMarkerSelection[m].latitude!==h.latitude&&n.currentLayer.markerSettings[p].initialMarkerSelection[m].longitude!==h.longitude||e.markerSelection(n.currentLayer.markerSettings[p].selectionSettings,e,g.children[a],n.currentLayer.markerSettings[p].dataSource[d]);if((n.currentLayer.animationDuration>0||"Enable"===t.animationMode||(e.layersCollection[0].animationDuration>0||"Enable"===t.animationMode)&&"SubLayer"===n.currentLayer.type)&&!n.isPanModeEnabled)if(e.isTileMap){var u=document.querySelector(".GroupElement");u&&!document.querySelector(".ClusterGroupElement")&&y&&(u.style.display="none")}else"visibility:hidden",g.style.cssText="visibility:hidden"})),h.isPanModeEnabled&&e.markerModule.sameMarkerData.length>0?te(e.markerModule.sameMarkerData,e,g,!0):e.markerModule.sameMarkerData.length>0&&(e.markerModule.sameMarkerData=[],document.getElementById(e.element.id+"_mapsTooltip")&&ke(e.element.id+"_mapsTooltip")),document.getElementById(e.element.id+"_mapsTooltip")&&e.mapsTooltipModule.tooltipTargetID.indexOf("_MarkerIndex_")&&!h.isPanModeEnabled)){var f=e.mapsTooltipModule,b=g.querySelector("#"+f.tooltipTargetID);if(!(0,t.isNullOrUndefined)(b))if("hidden"===b.style.visibility)ke(e.element.id+"_mapsTooltip");else{var v=parseFloat(b.getAttribute("transform").split("(")[1].split(")")[0].split(" ")[1]),S=parseFloat(b.getAttribute("transform").split("(")[1].split(")")[0].split(" ")[2]);e.isTileMap&&(v+=+Re(e.element.id+"_tile_parent").style.left.split("px")[0],S+=+Re(e.element.id+"_tile_parent").style.top.split("px")[0]),f.svgTooltip.location.x=v,f.svgTooltip.location.y=S,f.svgTooltip.enableAnimation=!1}}}else if(g.id.indexOf("_bubble_Group")>-1)for(var x=void 0,O=0;O<g.childElementCount;O++){x=g.childNodes[O],a=parseFloat(x.id.split("_LayerIndex_")[1].split("_")[0]);for(var C=parseFloat(x.id.split("_BubbleIndex_")[1].split("_")[0]),M=parseFloat(x.id.split("_BubbleIndex_")[1].split("_")[2]),_=0;_<e.bubbleModule.bubbleCollection.length;_++){var L=e.bubbleModule.bubbleCollection[_];if(L.LayerIndex===a&&L.BubbleIndex===C&&L.DataIndex===M){var P=L.center.x,T=L.center.y,I=(P+r)*l,F=(T+s)*l,k=0===h.currentLayer.animationDuration&&"Enable"===t.animationMode?1e3:h.currentLayer.animationDuration;i&&0!==k?Ot(x,0,k,new j(I,F)):x.setAttribute("transform","translate( "+I+" "+F+" )");break}}}else if(g.id.indexOf("_dataLableIndex_Group")>-1&&!(0,t.isNullOrUndefined)(e.layers[h.index])){e.zoomLabelPositions=[],e.zoomLabelPositions=e.dataLabelModule.dataLabelCollections;var N=!e.isTileMap&&i,E=[];Array.prototype.forEach.call(g.childNodes,(function(i,a){if(g.childNodes[a].id.indexOf("_LabelIndex_")>-1){var p=parseFloat(g.childNodes[a].id.split("_LabelIndex_")[1].split("_")[0]),h=g.childNodes[a].id;e.zoomShapeCollection.push(h),n.dataLabelTranslate(g.childNodes[a],c,r,s,l,"DataLabel",N,d,o,E),d++;var m=e.layers[n.index].dataLabelSettings.border;if(a>0&&m.width>1&&g.childNodes[a-1].id.indexOf("_rectIndex_")>-1&&!(0,t.isNullOrUndefined)(e.zoomLabelPositions[p])){var u=(e.zoomLabelPositions[p].location.x+r)*l,y=(e.zoomLabelPositions[p].location.y+s)*l,f=w(g.childNodes[a].textContent,e.layers[n.index].dataLabelSettings.textStyle),b=g.childNodes[a-1],v=u-f.width/2,S=y-f.height/2-5;b.setAttribute("x",v),b.setAttribute("y",S)}}}))}}else e.isTileMap&&g.id.indexOf("_line_Group")>-1?(g.remove(),m.children.length>0&&m.children[0]?m.insertBefore(e.navigationLineModule.renderNavigation(h.currentLayer,e.tileZoomLevel,h.index),m.children[1]):m.appendChild(e.navigationLineModule.renderNavigation(h.currentLayer,e.tileZoomLevel,h.index))):e.isTileMap&&g.id.indexOf("_Polygons_Group")>-1?h.currentLayer.polygonSettings.polygons.length>0&&(h.currentLayer.polygonSettings.polygons.map((function(i,o){var a=i.points,l=u(e,e.tileZoomLevel,n.currentLayer,a),r=document.getElementById(e.element.id+"_LayerIndex_"+n.index+"_PolygonIndex_"+o);(0,t.isNullOrUndefined)(r)||r.setAttribute("d",l)})),document.getElementById(e.element.id+"_LayerIndex_"+h.index+"_Polygons_Group").style.visibility=""):-1===g.id.indexOf("Legend")&&(lt(g,h.index,l,e),e.zoomTranslatePoint=e.translatePoint,h.animateTransform(g,i,r,s,l))},f=0;f<g;f++)y(f)}e.arrangeTemplate()},h=this,m=0;m<this.layerCollectionEle.childElementCount;m++)p(m);(0,t.isNullOrUndefined)(this.currentLayer)||i&&0!==this.currentLayer.animationDuration&&!e.isTileMap||this.processTemplate(r,s,l,e)}},e.prototype.markerTranslates=function(e,i,o,a,n,l,r){var s=this,d=0,p=0,h=0,m=parseInt((e||r).id.split("_LayerIndex_")[1].split("_")[0],10),u=this.maps.renderer.createGroup({id:this.maps.element.id+"_Markers_Group",class:"GroupElement"});u.style.pointerEvents="auto",document.getElementById(u.id)&&ke(u.id);var y=this.maps.mapAreaRect,f=(0,t.createElement)("div",{id:this.maps.element.id+"_LayerIndex_"+m+"_Markers_Template_Group",className:"template"});f.style.cssText="overflow: hidden; position: absolute;pointer-events: none;top:"+y.y+"px;left:"+y.x+"px;height:"+y.height+"px;width:"+y.width+"px;",document.getElementById(f.id)&&ke(f.id);var b=this.maps.layersCollection[m];Array.prototype.forEach.call(b.markerSettings,(function(e,y){var v=e.dataSource;Array.prototype.forEach.call(v,(function(S,x){s.maps.markerNullCount=y>=0&&0===x?0:s.maps.markerNullCount;var O={template:e.template,data:S,maps:s.maps,marker:e,cancel:!1,name:_i,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=Y(O=J(O,S),S),s.maps.trigger("markerRendering",O,(function(C){e.shapeValuePath!==O.shapeValuePath&&(O=J(O,S)),e.colorValuePath!==O.colorValuePath&&(O=Y(O,S));var M=(0,t.isNullOrUndefined)(e.latitudeValuePath)?(0,t.isNullOrUndefined)(S.latitude)?(0,t.isNullOrUndefined)(S.Latitude)?null:S.Latitude:parseFloat(S.latitude):Number(X(S,e.latitudeValuePath)),_=(0,t.isNullOrUndefined)(e.longitudeValuePath)?(0,t.isNullOrUndefined)(S.longitude)?(0,t.isNullOrUndefined)(S.Longitude)?null:S.Longitude:parseFloat(S.longitude):Number(X(S,e.longitudeValuePath)),L=e.offset;if(!O.cancel&&e.visible&&!(0,t.isNullOrUndefined)(_)&&!(0,t.isNullOrUndefined)(M)){var P=s.maps.element.id+"_LayerIndex_"+m+"_MarkerIndex_"+y+"_dataIndex_"+x,w=s.maps.isTileMap?g(new j(_,M),s.maps.tileZoomLevel,s.maps.tileTranslatePoint,!0):c(M,_,i,b,s.maps),T={x:o,y:a};!O.template||isNaN(w.x)||isNaN(w.y)?O.template||isNaN(w.x)||isNaN(w.y)||(p++,ie(O,e,v,x,w,T,P,L,n,s.maps,u)):(h++,oe(O,undefined,P,S,y,f,w,T,n,L,s.maps))}d+=isNaN(M)||isNaN(_)?1:0,h+=O.cancel?1:0,p+=O.cancel?1:0,s.maps.markerNullCount=(0,t.isNullOrUndefined)(M)||(0,t.isNullOrUndefined)(_)?s.maps.markerNullCount+1:s.maps.markerNullCount;var I=v.length-s.maps.markerNullCount,F=!1;if(u.childElementCount===I-h-d&&"Template"!==l){if(s.maps.isTileMap){var k=document.getElementById(s.maps.element.id+"_LayerIndex_"+m+"_Polygons_Group"),N=document.getElementById(s.maps.element.id+"_LayerIndex_"+m+"_Polygon_Group");(0,t.isNullOrUndefined)(k)?(0,t.isNullOrUndefined)(N)?r.insertBefore(u,r.firstElementChild):N.insertAdjacentElement("afterend",u):k.insertAdjacentElement("afterend",u)}else r.appendChild(u);b.markerClusterSettings.allowClustering&&(s.maps.svgObject.appendChild(u),s.maps.element.appendChild(s.maps.svgObject),F=Q(b,u,s.maps,m,u,r,!0,!0))}f.childElementCount===I-p-d&&Ae(s.maps.element.id+"_Secondary_Element")&&(Ae(s.maps.element.id+"_Secondary_Element").appendChild(f),n>=1&&b.markerClusterSettings.allowClustering&&!F&&Q(b,f,s.maps,m,u,r,!1,!0))}))}))}))},e.prototype.processTemplate=function(e,i,o,a){for(var n=0,l=0;l<this.templateCount;l++){var r=a.mapLayerPanel.calculateFactor(this.currentLayer),s=Ae(a.element.id+"_LayerIndex_"+l+"_Markers_Template_Group"),d=Ae(a.element.id+"_LayerIndex_"+l+"_Label_Template_Group"),p=Ae(a.element.id+"_LayerIndex_"+l+"_Polygons_Group");if(!(0,t.isNullOrUndefined)(s)&&s.childElementCount>0){s.style.visibility="visible";for(var h=0;h<s.childElementCount;h++)this.markerTranslate(s.childNodes[h],r,e,i,o,"Template")}if(!(0,t.isNullOrUndefined)(d)&&d.childElementCount>0)for(h=0;h<d.childElementCount;h++)this.dataLabelTranslate(d.childNodes[h],r,e,i,o,"Template",!1,n),n++;if(!(0,t.isNullOrUndefined)(p))for(h=0;h<p.childElementCount;h++){var m=a.layersCollection[l].polygonSettings.polygons[h].borderWidth;p.childNodes[h].childNodes[0].setAttribute("stroke-width",(m/o).toString())}}},e.prototype.dataLabelTranslate=function(e,i,o,a,n,l,r,s,d,p){void 0===r&&(r=!1);var h,m,c,u,g,y=this.maps.dataLabelModule.dataLabelCollections,f=this.maps.layers[this.index].dataLabelSettings.textStyle,b=parseFloat(e.id.split("_LayerIndex_")[1].split("_")[0]),v=parseFloat(e.id.split("_shapeIndex_")[1].split("_")[0]);e.id.indexOf("_LabelIndex_")>-1&&(g=parseFloat(e.id.split("_LabelIndex_")[1].split("_")[0]));var S=0===this.currentLayer.animationDuration&&"Enable"===t.animationMode?1e3:this.currentLayer.animationDuration,x=y[s],O=s;if(x.layerIndex===b&&x.shapeIndex===v&&x.labelIndex===g){var C=x.location.x,M=x.location.y;if("Template"===l){var _=0,L=0;if(this.maps.isTileMap)_=(C+o)*n-(u=w(c=x.dataLabelText,f)).width/2,L=(M+a)*n-u.height;else{var P=Ae(this.maps.element.id+"_Layer_Collections");C=Math.abs(this.maps.baseMapRectBounds.min.x-C)*n,M=Math.abs(this.maps.baseMapRectBounds.min.y-M)*n;var I=P.getBoundingClientRect(),F=e.parentElement.getBoundingClientRect();_=C+(I.left-F.left),L=M+(I.top-F.top)}e.style.left=_+"px",e.style.top=L+"px"}else{if(C=(C+o)*n,M=(M+a)*n,c=x.dataLabelText,r&&0!==S||e.setAttribute("transform","translate( "+C+" "+M+" )"),((0,t.isNullOrUndefined)(d)||!d)&&("None"!==this.maps.layers[this.index].dataLabelSettings.smartLabelMode||"None"!==this.maps.layers[this.index].dataLabelSettings.intersectionAction)){var k=M-(u=T(c,f)).height/2,N=M+u.height/2,E={rightWidth:C+u.width/2,leftWidth:C-u.width/2,heightTop:k,heightBottom:N};"Hide"===this.maps.layers[this.index].dataLabelSettings.smartLabelMode&&(n>1?(h=this.maps.dataLabelShape[O]*n>=u.width?c:"",e.textContent=h):(h=this.maps.dataLabelShape[O]>=u.width?c:"",e.textContent=h));var z=[];if("Trim"===this.maps.layers[this.index].dataLabelSettings.smartLabelMode&&(n>1?(h=Ie(this.maps.dataLabelShape[O]*n,c,f,u.width,!0,z),e.textContent=h):(h=Ie(this.maps.dataLabelShape[O],c,f,u.width,!0,z),e.textContent=h)),"Hide"===this.maps.layers[this.index].dataLabelSettings.intersectionAction){for(var B=0;B<p.length;B++)if(!(0,t.isNullOrUndefined)(p[B])){if(!(E.leftWidth>p[B].rightWidth||E.rightWidth<p[B].leftWidth||E.heightTop>p[B].heightBottom||E.heightBottom<p[B].heightTop)){h="",e.textContent=h;break}h=(0,t.isNullOrUndefined)(h)?c:h,e.textContent=h}p.push(E)}if("Trim"===this.maps.layers[this.index].dataLabelSettings.intersectionAction){for(var A=0;A<p.length;A++)if(!(0,t.isNullOrUndefined)(p[A]))if(E.rightWidth<p[A].leftWidth||E.leftWidth>p[A].rightWidth||E.heightBottom<p[A].heightTop||E.heightTop>p[A].heightBottom){if(m=(0,t.isNullOrUndefined)(h)?c:h,n>1){var U=z.length>0?z[0]:u.width;m=Ie(this.maps.dataLabelShape[O]*n,m,f,U,!0)}e.textContent=m}else{if(E.leftWidth>p[A].leftWidth){m=Ie((Z=p[A].rightWidth-E.leftWidth)-(E.rightWidth-E.leftWidth),h=(0,t.isNullOrUndefined)(h)?c:h,f,U=z.length>0?z[0]:u.width,!0),e.textContent=m;break}if(E.leftWidth<p[A].leftWidth){var Z=E.rightWidth-p[A].leftWidth;m=Ie(Math.abs(Z-(E.rightWidth-E.leftWidth)),h=(0,t.isNullOrUndefined)(h)?c:h,f,U=z.length>0?z[0]:u.width,!0),e.textContent=m;break}}p.push(E),(0,t.isNullOrUndefined)(m)&&(m=Ie(this.maps.dataLabelShape[O]*n,c,f,u.width,!0),e.textContent=m)}}(r||S>0)&&Ot(e,0,S,new j(C,M))}}},e.prototype.markerTranslate=function(e,i,o,a,n,l,r){void 0===r&&(r=!1);var s=parseInt(e.id.split("_LayerIndex_")[1].split("_")[0],10),d=parseInt(e.id.split("_MarkerIndex_")[1].split("_")[0],10),p=parseInt(e.id.split("_dataIndex_")[1].split("_")[0],10),h=this.maps.layersCollection[s],m=h.markerSettings[d];if(!(0,t.isNullOrUndefined)(m)&&!(0,t.isNullOrUndefined)(m.dataSource)&&!(0,t.isNullOrUndefined)(m.dataSource[p])){var u=(0,t.isNullOrUndefined)(m.longitudeValuePath)?(0,t.isNullOrUndefined)(m.dataSource[p].longitude)?(0,t.isNullOrUndefined)(m.dataSource[p].Longitude)?0:parseFloat(m.dataSource[p].Longitude):parseFloat(m.dataSource[p].longitude):Number(X(m.dataSource[p],m.longitudeValuePath)),y=(0,t.isNullOrUndefined)(m.latitudeValuePath)?(0,t.isNullOrUndefined)(m.dataSource[p].latitude)?(0,t.isNullOrUndefined)(m.dataSource[p].Latitude)?0:parseFloat(m.dataSource[p].Latitude):parseFloat(m.dataSource[p].latitude):Number(X(m.dataSource[p],m.latitudeValuePath)),f=0===this.currentLayer.animationDuration&&"Enable"===t.animationMode?1e3:this.currentLayer.animationDuration,b=this.maps.isTileMap?g(new M(u,y),this.maps.tileZoomLevel,this.maps.tileTranslatePoint,!0):c(y,u,i,h,this.maps);if(this.maps.isTileMap)if("Template"===l){var v=e.getBoundingClientRect();e.style.left=b.x-v.width/2+m.offset.x+"px",e.style.top=b.y-v.height/2+m.offset.y+"px"}else b.x+=m.offset.x,b.y+=m.offset.y,e.setAttribute("transform","translate( "+b.x+" "+b.y+" )");else if("Template"===l)if(f>0){b.x=Math.abs(this.maps.baseMapRectBounds.min.x-b.x)*n,b.y=Math.abs(this.maps.baseMapRectBounds.min.y-b.y)*n;var S=Ae(this.maps.element.id+"_Layer_Collections").getBoundingClientRect(),x=e.parentElement.getBoundingClientRect();e.style.left=b.x+(S.left-x.left)+m.offset.x+"px",e.style.top=b.y+(S.top-x.top)+m.offset.y+"px",e.style.transform="translate(-50%, -50%)"}else{x=e.getBoundingClientRect();e.style.left=(b.x+o)*n+m.offset.x-this.maps.mapAreaRect.x-x.width/2+"px",e.style.top=(b.y+a)*n+m.offset.y-this.maps.mapAreaRect.y-x.height/2+"px"}else b.x=(b.x+o)*n+m.offset.x,b.y=(b.y+a)*n+m.offset.y,r&&0!==f?Ot(e,0,f,b):e.setAttribute("transform","translate( "+b.x+" "+b.y+" )")}},e.prototype.markerLineAnimation=function(e){if(e.isTileMap)for(var i=0;i<e.layersCollection.length;i++){var o=Ae(this.maps.element.id+"_LayerIndex_"+i+"_Markers_Template_Group"),a=Ae(this.maps.element.id+"_LayerIndex_"+i+"_line_Group"),n=Ae(this.maps.element.id+"_LayerIndex_"+i+"_Polygons_Group");(0,t.isNullOrUndefined)(o)||(o.style.visibility="hidden"),(0,t.isNullOrUndefined)(a)||(a.style.visibility="hidden"),(0,t.isNullOrUndefined)(n)||(n.style.visibility="hidden")}},e.prototype.panning=function(e,i,o,a){var n,l=this.maps,r=this.mouseDownPoints,s=this.mouseMovePoints,d=l.scale;l.markerZoomedState=!1,l.zoomPersistence=l.enablePersistence,l.defaultState=!1,l.initialCheck=!1;var p,h,m=l.translatePoint,c=l.tileTranslatePoint;i=(0,t.isNullOrUndefined)(i)?r.x-s.x:i,o=(0,t.isNullOrUndefined)(o)?r.y-s.y:o;var u=a.type.indexOf("mouse")>-1||a.type.indexOf("key")>-1?a.layerX:a.touches[0].pageX,g=a.type.indexOf("mouse")>-1||a.type.indexOf("key")>-1?a.layerY:a.touches[0].pageY;if(this.maps.mergeCluster(),l.isTileMap){if(this.maps.tileZoomLevel>1){p=l.tileTranslatePoint.x-i,h=l.tileTranslatePoint.y-o,l.tileTranslatePoint.x=p,l.tileTranslatePoint.y=h,(l.tileTranslatePoint.y>-10&&o<0||l.tileTranslatePoint.y<-256*(Math.pow(2,this.maps.tileZoomLevel)-2)&&o>0)&&(l.tileTranslatePoint.x=p+i,l.tileTranslatePoint.y=h+o),l.translatePoint.x=l.tileTranslatePoint.x/l.scale,l.translatePoint.y=l.tileTranslatePoint.y/l.scale;var y=this.maps.getTileGeoLocation(u,g);_=this.maps.getMinMaxLatitudeLongitude();n={cancel:!1,name:qi,maps:l,tileTranslatePoint:{previous:c,current:l.tileTranslatePoint},translatePoint:{previous:m,current:l.translatePoint},scale:l.scale,tileZoomLevel:l.tileZoomLevel,latitude:y.latitude,longitude:y.longitude,minLatitude:_.minLatitude,maxLatitude:_.maxLatitude,minLongitude:_.minLongitude,maxLongitude:_.maxLongitude},l.trigger(qi,n),l.mapLayerPanel.generateTiles(l.tileZoomLevel,l.tileTranslatePoint,"Pan"),this.applyTransform(l,!1,!0),l.translatePoint.x=(l.tileTranslatePoint.x-i)/l.scale,l.translatePoint.y=(l.tileTranslatePoint.y-o)/l.scale}}else{var f=document.getElementById(l.element.id+"_Legend_Group"),b=(0,t.isNullOrUndefined)(f)?0:f.getClientRects()[0].height;p=m.x-i/d,h=m.y-o/d;var v=Ae(l.element.id+"_Layer_Collections").getBoundingClientRect(),S=Ae(l.element.id+"_svg").getBoundingClientRect(),x=i<0?v.left<=S.left+l.mapAreaRect.x:v.left+v.width+l.mapAreaRect.x>=S.width,O=o<0?v.top<=S.top+l.mapAreaRect.y:v.top+v.height+b+l.margin.top>=S.top+S.height,C=this.maps.getGeoLocation(this.maps.layersCollection.length-1,u,g),_=this.maps.getMinMaxLatitudeLongitude();n={cancel:!1,name:qi,maps:l,tileTranslatePoint:{},translatePoint:{previous:m,current:new M(p,h)},scale:l.scale,tileZoomLevel:l.tileZoomLevel,latitude:C.latitude,longitude:C.longitude,minLatitude:_.minLatitude,maxLatitude:_.maxLatitude,minLongitude:_.minLongitude,maxLongitude:_.maxLongitude},l.trigger(qi,n),n.cancel||(x&&O?(l.translatePoint=new M(p,h),this.applyTransform(l,!1,!0)):x?(l.translatePoint=new M(p,l.translatePoint.y),this.applyTransform(l,!1,!0)):O&&(l.translatePoint=new M(l.translatePoint.x,h),this.applyTransform(l,!1,!0))),this.maps.zoomNotApplied=!1}l.zoomTranslatePoint=l.translatePoint,this.mouseDownPoints=this.mouseMovePoints,this.isSingleClick=!1},e.prototype.toolBarZooming=function(e,i){var o=this,a=this.maps;a.initialCheck=a.isMarkerZoomCompleted=!1,a.defaultState="Reset"===i&&1===e&&!(a.zoomSettings.resetToInitial&&a.applyZoomReset)||"ZoomOut"===i&&1===e;var n=a.tileZoomLevel,l=a.previousScale=a.scale;a.markerZoomedState=!1,a.zoomPersistence=a.enablePersistence,a.mapScaleValue=e;var r=a.zoomSettings.maxZoom,s=a.zoomSettings.minZoom,d=a.mapAreaRect,p=a.previousPoint=a.translatePoint,h=a.tileTranslatePoint;if(a.previousProjection="Reset"===i?void 0:a.projectionType,e="ZoomOut"===i&&1===Math.round(e)?1:e,e=s>(e="Reset"===i?s:0===Math.round(e)?1:e)&&"ZoomIn"===i?s+1:e,!a.isTileMap&&("ZoomIn"===i?e>=s&&Math.round(e)<=r:e>=s||a.isReset)){var m=a.baseMapRectBounds.min,c=a.baseMapRectBounds.max,u=Math.abs(c.x-m.x),g=Math.abs(m.y-c.y),y=void 0,f=void 0;if(e<1.2&&"Eckert5"!==a.projectionType)0!==g&&0!==u&&g!==u||(u=d.width/2,g=d.height),e=(e=parseFloat(Math.min(d.width/u,d.height/g).toFixed(2)))>1.05?1:e,a.translatePoint=this.calculateInitalZoomTranslatePoint(e,u,g,d,m,a);else{y=p.x-(d.width/l-d.width/e)/2,f=p.y-(d.height/l-d.height/e)/2;var b=Math.abs(a.baseMapRectBounds.max.y-a.baseMapRectBounds.min.y)*e;y=b<a.mapAreaRect.height?d.x+(-m.x+(d.width/2-u/2)):y,f=b<a.mapAreaRect.height?d.y+(-m.y+(d.height/2-g/2)):f,a.translatePoint=new M(y,f)}a.zoomTranslatePoint=a.translatePoint,a.scale=e,this.triggerZoomEvent(h,n,i)?(a.translatePoint=a.zoomTranslatePoint=a.previousPoint,a.scale=a.previousScale):this.applyTransform(a,!0)}else if(a.isTileMap&&(e>=s&&e<=r||a.isReset)){var v=n<s&&!a.isReset?s:e;if(a.scale=Math.pow(2,v-1),a.tileZoomLevel=v,a.previousScale!==a.scale||a.isReset){a.zoomSettings.zoomFactor=e;var S={x:a.availableSize.width/2,y:a.availableSize.height/2};if(this.getTileTranslatePosition(n,v,S,i),(a.zoomSettings.resetToInitial&&a.applyZoomReset&&"Reset"===i||"ZoomOut"===i&&a.zoomSettings.resetToInitial&&a.applyZoomReset&&v<=a.initialZoomLevel)&&(a.initialCheck=!0,a.zoomPersistence=!1,a.tileTranslatePoint.x=a.initialTileTranslate.x,a.tileTranslatePoint.y=a.initialTileTranslate.y,v=a.tileZoomLevel=a.mapScaleValue=a.initialZoomLevel),this.triggerZoomEvent(h,n,i))a.translatePoint=a.tileTranslatePoint=new M(0,0),a.scale=a.previousScale,a.tileZoomLevel=n,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(v,a.tileTranslatePoint,i);var x=0===this.maps.layersCollection[0].animationDuration&&"Enable"===t.animationMode?1e3:this.maps.layersCollection[0].animationDuration;setTimeout((function(){o.applyTransform(o.maps,!0),document.getElementById(o.maps.element.id+"_LayerIndex_1")&&(document.getElementById(o.maps.element.id+"_LayerIndex_1").style.display="block"),o.maps.isAddLayer=!1}),x)}}this.maps.zoomNotApplied=!1}this.triggerZoomComplete(a,n,i)},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 i=15,o=15,a=e.zoomSettings.toolbarSettings,n=e.zoomSettings.toolbarSettings.buttonSettings;this.maps.toolbarProperties={toolBarOrientation:a.orientation,highlightColor:n.highlightColor,selectionColor:n.selectionColor,horizontalAlignment:a.horizontalAlignment,verticalAlignment:a.verticalAlignment,color:n.color,shapeOpacity:n.opacity,borderOpacity:n.borderOpacity};var l=n.radius||e.themeStyle.zoomButtonRadius,r=l/4,s=l/4,d=l/2,p=n.padding,h=this.maps.toolbarProperties.toolBarOrientation,m=e.zoomSettings.toolbarSettings.buttonSettings.toolbarItems.map((function(e){return e}));i=l/4+n.borderWidth/2+p,o=l/4+n.borderWidth/2+p;var c=m.length,u="Horizontal"===h?c*l+c*p+p+c*n.borderWidth:l+n.borderWidth+2*p,g="Horizontal"===h?l+n.borderWidth+2*p:c*l+c*p+p+c*n.borderWidth,y=e.renderer.createDefs();y.innerHTML='<filter id="chart_shadow" height="130%"><feGaussianBlur in="SourceAlpha" stdDeviation="5"/><feOffset dx="-3" dy="4" result="offsetblur"/><feComponentTransfer><feFuncA type="linear" slope="1"/></feComponentTransfer><feMerge><feMergeNode/><feMergeNode in="SourceGraphic"/></feMerge></filter>',this.toolBarGroup.appendChild(y);var f=e.renderer.drawRectangle(new N(e.element.id+"_Zooming_Rect",a.backgroundColor,{color:a.borderColor,width:a.borderWidth,opacity:a.borderOpacity},a.borderOpacity,new Z(a.borderWidth/2,a.borderWidth/2,u-a.borderWidth,g-a.borderWidth),0,0));this.toolBarGroup.appendChild(f);for(var b=(l-n.borderWidth/2)/30,v=0;v<m.length;v++){0!==v&&(i="Horizontal"===e.toolbarProperties.toolBarOrientation?i+(l+p)+n.borderWidth:i,o="Horizontal"===e.toolbarProperties.toolBarOrientation?o:o+(l+p)+n.borderWidth);var S=m[v],x=(0,t.isNullOrUndefined)(this.maps.toolbarProperties.color)?this.maps.themeStyle.zoomFillColor:this.maps.toolbarProperties.color,O=n.borderColor||this.maps.themeStyle.zoomBorderColor||this.maps.themeStyle.zoomFillColor;this.currentToolbarEle=e.renderer.createGroup({id:e.element.id+"_Zooming_ToolBar_"+S+"_Group",transform:"translate( "+i+" "+o+" ) "}),this.currentToolbarEle.setAttribute("class","e-maps-toolbar"),this.currentToolbarEle.appendChild(e.renderer.drawCircle(new E(e.element.id+"_Zooming_ToolBar_"+S+"_Rect",n.fill,{color:O,width:n.borderWidth,opacity:n.borderOpacity},n.opacity,r,s,d,"")));var C="",M=n.fill;switch(this.selectionColor=this.maps.toolbarProperties.selectionColor||this.maps.themeStyle.zoomSelectionColor,S.toLowerCase()){case"zoom":var _=void 0,L=void 0;C="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,",C+="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",C+="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||this.maps.zoomSettings.enablePanning&&this.maps.zoomSettings.enableSelectionZooming?(_=M,L=x):this.maps.zoomSettings.enablePanning||this.maps.zoomSettings.enableSelectionZooming?!this.maps.zoomSettings.enablePanning&&this.maps.zoomSettings.enableSelectionZooming?(_=this.maps.themeStyle.zoomFillColor,L=x):(_=this.selectionColor,L=this.selectionColor):(_=M,L=x);var P=e.renderer.drawPath(new F(e.element.id+"_Zooming_ToolBar_"+S,_,1,L,1,1,null,C+"4.114s-1.828,4.114-4.114,4.114S5.943,8.229,5.943,5.943z"));P.setAttribute("transform","scale( "+b+","+b+" )"),this.currentToolbarEle.appendChild(P),this.zoomElements=this.currentToolbarEle,this.wireEvents(this.currentToolbarEle,this.performToolBarAction);break;case"zoomin":C="M 8, 0 L 8, 16 M 0, 8 L 16, 8";var w=e.renderer.drawPath(new F(e.element.id+"_Zooming_ToolBar_"+S+"_Path",M,3,x,1,1,null,C));w.setAttribute("transform","scale( "+b+","+b+" )"),this.currentToolbarEle.appendChild(w),this.wireEvents(this.currentToolbarEle,this.performToolBarAction);break;case"zoomout":C="M 0, 8 L 16, 8";var T=e.renderer.drawPath(new F(e.element.id+"_Zooming_ToolBar_"+S,M,3,x,1,1,null,C));T.setAttribute("transform","scale( "+b+","+b+" )"),this.currentToolbarEle.appendChild(T),this.wireEvents(this.currentToolbarEle,this.performToolBarAction);break;case"pan":var I=void 0;C="M5,3h2.3L7.275,5.875h1.4L8.65,3H11L8,0L5,3z M3,11V8.7l2.875,0.025v-1.4L3,7.35V5L0,8L3,",C+="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?I=this.selectionColor||this.maps.themeStyle.zoomFillColor:this.maps.zoomSettings.enablePanning?I=M||this.maps.themeStyle.zoomFillColor:(I=this.selectionColor||this.maps.themeStyle.zoomFillColor,this.currentToolbarEle.setAttribute("class",""));var k=e.renderer.drawPath(new F(e.element.id+"_Zooming_ToolBar_"+S,I,1,x,1,1,null,C));k.setAttribute("transform","scale( "+b+","+b+" )"),this.currentToolbarEle.appendChild(k),this.panColor=I,this.panElements=this.currentToolbarEle,this.wireEvents(this.currentToolbarEle,this.performToolBarAction);break;case"reset":C="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,",C+="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,",C+="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 F(e.element.id+"_Zooming_ToolBar_"+S,M,null,x,1,1,null,C+"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( "+b+","+b+" )"),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,o=t.id.split("_Zooming_ToolBar_")[1].split("_")[0],a=!0;switch(o.toLowerCase()){case"zoomin":a=(this.maps.isTileMap?this.maps.tileZoomLevel:this.maps.scale)+1<=this.maps.zoomSettings.maxZoom;break;case"zoomout":var n=this.maps.isTileMap?this.maps.tileZoomLevel:this.maps.scale;a="Miller"===this.maps.projectionType||"Winkel3"===this.maps.projectionType||"AitOff"===this.maps.projectionType?Math.round(n)-1>=this.maps.zoomSettings.minZoom:n-1>=this.maps.zoomSettings.minZoom;break;case"reset":a=Math.round(this.maps.isTileMap?this.maps.tileZoomLevel:this.maps.scale)!==this.maps.zoomSettings.minZoom}i&&a?(this.handled=!0,this.performZoomingByToolBar(o)):"mousedown"!==e.type&&"pointerdown"!==e.type||this.handled||!a?this.handled=!1:(this.handled=!1,this.performZoomingByToolBar(o))},e.prototype.performZoomingByToolBar=function(e){var t=this.maps;t.isReset=!1;var i=0,o=this.fillColor||this.maps.themeStyle.zoomFillColor;switch(e.toLowerCase()){case"zoom":this.panColor=o,this.zoomColor=this.maps.zoomSettings.enableSelectionZooming?this.selectionColor:o,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:o,this.zoomColor=o,this.maps.zoomSettings.enablePanning?(this.applySelection(this.zoomElements,this.fillColor||o),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,o),this.applySelection(this.panElements,t.zoomSettings.enablePanning?this.selectionColor:o)):1!==i||this.maps.isTileMap||(this.applySelection(this.zoomElements,o),this.applySelection(this.panElements,o)));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=o,this.zoomColor=this.selectionColor,this.applySelection(this.zoomElements,this.selectionColor),this.applySelection(this.panElements,this.panColor)):i<=1&&!t.isTileMap?this.applySelection(this.panElements,o):this.applySelection(this.panElements,t.zoomSettings.enablePanning?this.selectionColor:o);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,o),this.applySelection(this.panElements,this.selectionColor)):(this.applySelection(this.zoomElements,this.selectionColor),this.applySelection(this.panElements,o)):this.isPan||this.isZoomSelection||(this.applySelection(this.zoomElements,o),this.applySelection(this.panElements,o))}this.panningStyle(e.toLowerCase())},e.prototype.panningStyle=function(e){var t=Ae(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,o=0;o<e.childElementCount;o++)"circle"!==(i=e.childNodes[o]).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],i=this.maps.zoomSettings.toolbarSettings.tooltipSettings,o={visible:i.visible,fill:i.fill,borderOpacity:i.borderOpacity,borderWidth:i.borderWidth,borderColor:i.borderColor,fontColor:i.fontColor,fontFamily:i.fontFamily,fontStyle:i.fontStyle,fontWeight:i.fontWeight,fontSize:i.fontSize||"10px",fontOpacity:i.fontOpacity};o.fontFamily=this.maps.themeStyle.fontFamily,this.isTouch||(tt("EJ2_Map_Toolbar_Tip",this.maps.getLocalizedLabel(t),e.pageY+10,e.pageX+10,o),this.maps.isDevice&&(clearTimeout(this.clearTimeout),this.clearTimeout=setTimeout(this.removeTooltip.bind(this),2e3)))},e.prototype.removeTooltip=function(){Ae("EJ2_Map_Toolbar_Tip")&&(0,t.remove)(Ae("EJ2_Map_Toolbar_Tip"))},e.prototype.alignToolBar=function(){var e=this.maps,i=(0,t.createElement)("div",{id:e.element.id+"_ToolBar"});i.style.cssText="position:absolute;z-index:2";var o=e.renderer.createSvg({id:e.element.id+"_Zooming_ToolBar",width:10,height:10});o.appendChild(this.toolBarGroup),i.appendChild(o),Ae(e.element.id+"_Secondary_Element")&&Ae(e.element.id+"_Secondary_Element").appendChild(i);var a=this.toolBarGroup.getBoundingClientRect();o.setAttribute("height",(a.height+e.zoomSettings.toolbarSettings.borderWidth).toString()),o.setAttribute("width",(a.width+e.zoomSettings.toolbarSettings.borderWidth).toString());var n=(0,t.isNullOrUndefined)(e.totalRect)?e.mapAreaRect:e.totalRect,l=0,r=0;switch(e.toolbarProperties.verticalAlignment){case"Near":r=n.y;break;case"Center":r=n.height/2-a.height/2;break;case"Far":r=n.height-a.height-10}switch(e.toolbarProperties.horizontalAlignment){case"Near":l=n.x;break;case"Center":l=n.width/2-a.width/2;break;case"Far":l=(0,t.isNullOrUndefined)(e.legendModule)||"Left"!==e.legendSettings.position?n.width-a.width-10:n.width+n.x-a.width-10}i.style.left=l+"px",i.style.top=r+"px";var s=this.maps.toolbarProperties.highlightColor||this.maps.themeStyle.zoomSelectionColor,d=" .e-maps-toolbar:hover > circle { stroke:"+s+"; } .e-maps-toolbar:hover > path { fill: "+s+" ; stroke: "+s+"; }.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; }",p=document.createElement("style");p.appendChild(document.createTextNode(d)),i.appendChild(p)},e.prototype.removeToolbarOpacity=function(e,t){if(this.maps.zoomModule&&this.maps.zoomSettings.enable)if(Ae(this.maps.element.id+"_Zooming_KitCollection")&&t.indexOf(this.maps.element.id+"_Zooming_")>-1){this.maps.isDevice?(Ae(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 i=this.maps.toolbarProperties.shapeOpacity,o=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?i:.3,this.maps.zoomSettings.enableSelectionZooming?o:.3,i,o,.3,.3,this.maps.zoomSettings.enablePanning?i:.3,this.maps.zoomSettings.enablePanning?o:.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?i:.3,this.maps.zoomSettings.enableSelectionZooming?o:.3,i,o,.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?i:.3,this.maps.zoomSettings.enableSelectionZooming?o:.3,i,o,i,o,this.maps.zoomSettings.enablePanning?i:.3,this.maps.zoomSettings.enablePanning?o:.3,i,o),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,i,o,this.maps.zoomSettings.enablePanning?i:.3,this.maps.zoomSettings.enablePanning?o:.3,i,o),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,i,o){Ae(this.maps.element.id+e)&&(Ae(this.maps.element.id+e).setAttribute("stroke-opacity",i.toString()),Ae(this.maps.element.id+e).setAttribute("fill-opacity",i.toString()),Ae(this.maps.element.id+t).setAttribute("stroke-opacity",o.toString()),Ae(this.maps.element.id+t).setAttribute("fill-opacity",o.toString()))},e.prototype.removeZoomOpacity=function(e,t,i,o,a,n,l,r,s,d){this.setOpacity("_Zooming_ToolBar_Zoom_Rect","_Zooming_ToolBar_Zoom",t,e),this.setOpacity("_Zooming_ToolBar_ZoomIn_Rect","_Zooming_ToolBar_ZoomIn_Path",o,i),this.setOpacity("_Zooming_ToolBar_ZoomOut_Rect","_Zooming_ToolBar_ZoomOut",n,a),this.setOpacity("_Zooming_ToolBar_Pan_Rect","_Zooming_ToolBar_Pan",r,l),this.setOpacity("_Zooming_ToolBar_Reset_Rect","_Zooming_ToolBar_Reset",d,s)},e.prototype.removeToolbarClass=function(e,t,i,o,a){Ae(this.maps.element.id+"_Zooming_KitCollection")&&(document.getElementById(this.maps.element.id+"_Zooming_ToolBar_ZoomIn_Group")&&Ae(this.maps.element.id+"_Zooming_ToolBar_ZoomIn_Group").setAttribute("class",t),document.getElementById(this.maps.element.id+"_Zooming_ToolBar_ZoomOut_Group")&&Ae(this.maps.element.id+"_Zooming_ToolBar_ZoomOut_Group").setAttribute("class",i),document.getElementById(this.maps.element.id+"_Zooming_ToolBar_Reset_Group")&&Ae(this.maps.element.id+"_Zooming_ToolBar_Reset_Group").setAttribute("class",a),document.getElementById(this.maps.element.id+"_Zooming_ToolBar_Zoom_Group")&&this.maps.zoomSettings.enableSelectionZooming&&Ae(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&&Ae(this.maps.element.id+"_Zooming_ToolBar_Pan_Group").setAttribute("class",o))},e.prototype.removePanColor=function(e){Ae(this.maps.element.id+"_Zooming_ToolBar_Pan_Rect")&&this.maps.zoomSettings.enablePanning&&(Ae(this.maps.element.id+"_Zooming_ToolBar_Pan").setAttribute("fill",e),Ae(this.maps.element.id+"_Zooming_ToolBar_Pan").setAttribute("stroke",e))},e.prototype.removeZoomColor=function(e){Ae(this.maps.element.id+"_Zooming_ToolBar_Zoom_Rect")&&this.maps.zoomSettings.enableSelectionZooming&&(Ae(this.maps.element.id+"_Zooming_ToolBar_Zoom").setAttribute("fill","transparent"),Ae(this.maps.element.id+"_Zooming_ToolBar_Zoom").setAttribute("stroke",e))},e.prototype.wireEvents=function(e,i){t.EventHandler.add(e,t.Browser.touchStartEvent,i,this),t.EventHandler.add(e,"mouseover",this.showTooltip,this),t.EventHandler.add(e,"mouseout",this.removeTooltip,this)},e.prototype.mapMouseWheel=function(e){if(this.maps.zoomSettings.enable&&this.maps.zoomSettings.mouseWheelZoom){var i=this.maps;i.markerZoomedState=!1,i.zoomPersistence=i.enablePersistence;var o=this.getMousePosition(e.pageX,e.pageY),a=i.tileZoomLevel,n=i.scale,l=i.zoomSettings.maxZoom,r=i.isTileMap?a:n;if(o.x>i.mapAreaRect.x&&o.x<i.mapAreaRect.x+i.mapAreaRect.width&&o.y>i.mapAreaRect.y&&o.y<i.mapAreaRect.y+i.mapAreaRect.height){e.preventDefault();var s="mozilla"!==this.browserName||this.isPointer?e.wheelDelta/120>0?"ZoomIn":"ZoomOut":-e.detail/3>0?"ZoomIn":"ZoomOut";"ZoomIn"===s?(i.mapScaleValue=r+1,i.isTileMap?(i.staticMapZoom=i.tileZoomLevel,i.staticMapZoom>0&&i.staticMapZoom<l&&(i.staticMapZoom+=1,this.performZooming(o,r+1,s))):this.performZooming(o,r+1,s)):(i.mapScaleValue=r-1,i.isReset=i.mapScaleValue<1,i.staticMapZoom=i.tileZoomLevel,1===i.mapScaleValue&&(i.markerCenterLatitude=null,i.markerCenterLongitude=null),i.staticMapZoom>1&&i.staticMapZoom<l&&(i.staticMapZoom-=1),this.performZooming(o,r-1,s))}this.removeToolbarOpacity(i.mapScaleValue,this.maps.isDevice?this.maps.element.id+"_Zooming_":(0,t.isNullOrUndefined)(e.target)?this.maps.element.id:e.target.id)}},e.prototype.doubleClick=function(e){var i=e.pageX,o=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)&&(0,t.isNullOrUndefined)(a)){var n=this.getMousePosition(i,o),l=this.maps,r=l.tileZoomLevel,s=l.scale;l.mapScaleValue=l.mapScaleValue+1;var d=l.isTileMap?r:s;n.x>l.mapAreaRect.x&&n.x<l.mapAreaRect.x+l.mapAreaRect.width&&n.y>l.mapAreaRect.y&&n.y<l.mapAreaRect.y+l.mapAreaRect.height&&this.performZooming(n,d+1,"ZoomIn")}},e.prototype.mouseDownHandler=function(e){var t,i,o=null;e.target;"touchstart"===e.type?(this.isTouch=!0,o=e.touches,e.target,t=o[0].pageX,i=o[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 a=this.maps.isTileMap?Math.round(this.maps.tileZoomLevel):Math.round(this.maps.mapScaleValue);this.rectZoomingStart=this.isZoomSelection&&a<this.maps.zoomSettings.maxZoom&&this.maps.zoomSettings.enable,this.mouseDownPoints=this.getMousePosition(t,i),this.isTouch&&null!==o&&(this.firstMove=!0,this.pinchFactor=this.maps.scale,this.fingers=o.length),this.isSingleClick=!0},e.prototype.mouseMoveHandler=function(e){var i,o,a,n=this.maps,l=null,r=this.maps.zoomSettings;if("touchmove"===e.type?(this.isTouch=!0,a=e.target,i=(l=e.touches)[0].pageX,o=l[0].pageY):(i=e.pageX,o=e.pageY,a=e.target),Ae(n.element.id+"_Zooming_KitCollection")&&(a.id.indexOf("_Zooming_")>-1?Ae(n.element.id+"_Zooming_KitCollection").setAttribute("opacity","1"):n.isDevice||Ae(n.element.id+"_Zooming_KitCollection").setAttribute("opacity","fluentdark"===n.theme.toLowerCase()?"0.6":"0.3")),this.isTouch&&this.maps.zoomSettings.pinchZooming&&null!==l&&(this.firstMove&&2===l.length?(this.rectZoomingStart=!1,this.updateInteraction(),this.touchStartList=st(e)):2===l.length&&2===this.touchStartList.length&&(this.touchMoveList=st(e),e.preventDefault(),this.rectZoomingStart=!1,this.performPinchZooming(e)),this.firstMove=!1),this.mouseMovePoints=this.getMousePosition(i,o),r.enable&&this.isPanModeEnabled&&-1===this.maps.markerDragId.indexOf("_MarkerIndex_")&&(t.Browser.isDevice&&l.length>=1||!t.Browser.isDevice)&&(e.preventDefault(),this.maps.element.style.cursor="pointer",this.mouseMoveLatLong={x:i,y:o},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=i,this.mouseDownLatLong.y=o)),this.isTouch?null!==l&&1===l.length&&this.rectZoomingStart:this.rectZoomingStart){e.preventDefault();var s=this.maps.isTileMap?Math.round(this.maps.tileZoomLevel):Math.round(this.maps.mapScaleValue);this.maps.zoomSettings.enableSelectionZooming&&s<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&&!(0,t.isNullOrUndefined)(this.maps.previousPoint)&&this.maps.translatePoint.x!==this.maps.previousPoint.x&&this.maps.translatePoint.y!==this.maps.previousPoint.y){var i=void 0,o=void 0,a=0,n=0,l=e.target;if(-1!==e.type.indexOf("touch")){var r=e;a=i=r.changedTouches[0].pageX,n=(o=r.changedTouches[0].pageY)-(this.maps.isTileMap?10:0),r.target,this.maps.mouseClickEvent={x:i,y:o}}else i=e.pageX,o=e.pageY,a=e.layerX,n=e.layerY-(this.maps.isTileMap?10:0),e.target;var s=void 0,d=this.maps.getMinMaxLatitudeLongitude();if(this.maps.isTileMap){var p=this.maps.getTileGeoLocation(a,n);s={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:p.latitude,longitude:p.longitude,minLatitude:d.minLatitude,maxLatitude:d.maxLatitude,minLongitude:d.minLongitude,maxLongitude:d.maxLongitude}}else{this.maps.mouseClickEvent.x=this.maps.mouseDownEvent.x,this.maps.mouseClickEvent.y=this.maps.mouseDownEvent.y;var h=this.maps.getClickLocation(l.id,i,o,l,i,o);s={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:(0,t.isNullOrUndefined)(h)?0:h.latitude,longitude:(0,t.isNullOrUndefined)(h)?0:h.longitude,minLatitude:d.minLatitude,maxLatitude:d.maxLatitude,minLongitude:d.minLongitude,maxLongitude:d.maxLongitude}}this.maps.trigger("panComplete",s)}this.isPanModeEnabled=!1;var m=Ae(this.maps.element.id+"_Selection_Rect_Zooming");m&&this.maps.zoomSettings.enable&&this.maps.zoomSettings.enableSelectionZooming&&((0,t.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 i=Ae(this.maps.element.id+"_Selection_Rect_Zooming");i&&this.maps.zoomSettings.enable&&((0,t.remove)(i),this.performRectZooming())},e.prototype.click=function(e){var i=this.maps,o=e.target.closest("#"+this.maps.element.id+"_mapsTooltipparent_template");if(i.markerModule&&i.markerModule.sameMarkerData.length>0||e.target.id.indexOf("MarkerIndex")>-1&&-1===e.target.id.indexOf("cluster")||!(0,t.isNullOrUndefined)(o))return null;if(this.isSingleClick&&i.zoomSettings.zoomOnClick&&!(e.target.id.indexOf("_Zooming_")>-1)&&!i.zoomSettings.doubleClickZoom&&this.zoomColor!==this.selectionColor){var a=e.pageX,n=e.pageY,l=this.getMousePosition(a,n),r=i.tileZoomLevel,s=i.scale;i.mapScaleValue=i.mapScaleValue+1;var d=i.isTileMap?r:s;l.x>i.mapAreaRect.x&&l.x<i.mapAreaRect.x+i.mapAreaRect.width&&l.y>i.mapAreaRect.y&&l.y<i.mapAreaRect.y+i.mapAreaRect.height&&this.performZooming(l,d+1,"ZoomIn")}},e.prototype.getMousePosition=function(e,t){var i=this.maps,o=i.element.getBoundingClientRect(),a=i.element.ownerDocument.defaultView.pageXOffset,n=i.element.ownerDocument.defaultView.pageYOffset,l=i.element.ownerDocument.documentElement.clientTop,r=i.element.ownerDocument.documentElement.clientLeft,s=o.left+a-r,d=o.top+n-l;return new M(Math.abs(e-s),Math.abs(t-d))},e.prototype.addEventListener=function(){this.maps.isDestroyed||(t.EventHandler.add(this.maps.element,this.wheelEvent,this.mapMouseWheel,this),t.EventHandler.add(this.maps.element,"click",this.click,this),t.EventHandler.add(this.maps.element,"dblclick",this.doubleClick,this),this.maps.on(t.Browser.touchMoveEvent,this.mouseMoveHandler,this),this.maps.on(t.Browser.touchStartEvent,this.mouseDownHandler,this),this.maps.on(t.Browser.touchEndEvent,this.mouseUpHandler,this),t.EventHandler.add(this.maps.element,this.cancelEvent,this.mouseCancelHandler,this))},e.prototype.removeEventListener=function(){this.maps.isDestroyed||(t.EventHandler.remove(this.maps.element,this.wheelEvent,this.mapMouseWheel),t.EventHandler.remove(this.maps.element,"click",this.click),t.EventHandler.remove(this.maps.element,"dblclick",this.doubleClick),this.maps.off(t.Browser.touchMoveEvent,this.mouseMoveHandler),this.maps.off(t.Browser.touchStartEvent,this.mouseDownHandler),this.maps.off(t.Browser.touchEndEvent,this.mouseUpHandler),t.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}(),co=function(){function e(e){}return e.prototype.print=function(e,i){var o=window.open("","print","height="+window.outerHeight+",width="+window.outerWidth+",tabbar=no");o.moveTo(0,0),o.resizeTo(screen.availWidth,screen.availHeight);var a={cancel:!1,htmlContent:this.getHTMLContent(e,i),name:Hi};e.trigger("beforePrint",a,(function(e){a.cancel||(0,t.print)(a.htmlContent,o)}))},e.prototype.getHTMLContent=function(e,i){var o=(0,t.createElement)("div"),a=e.element.cloneNode(!0),n=e.isTileMap?a.getElementsByTagName("svg")[1]:a.getElementsByTagName("svg")[0];if(!(0,t.isNullOrUndefined)(n)&&(n=n.childNodes[0],!(0,t.isNullOrUndefined)(n))){var l=n.getAttribute("fill");"Tailwind"!==e.theme&&"Bootstrap5"!==e.theme&&"Fluent"!==e.theme&&"Material3"!==e.theme&&"Fluent2"!==e.theme||"rgba(255,255,255, 0.0)"!==l&&"transparent"!==l?"TailwindDark"!==e.theme&&"Bootstrap5Dark"!==e.theme&&"FluentDark"!==e.theme&&"Material3Dark"!==e.theme&&"Fluent2Dark"!==e.theme&&"Fluent2HighContrast"!==e.theme||"rgba(255,255,255, 0.0)"!==l&&"transparent"!==l||n.setAttribute("fill","rgba(0, 0, 0, 1)"):n.setAttribute("fill","rgba(255,255,255, 1)")}if(e.isTileMap)for(var r=0;r<a.childElementCount;r++)if(a.children[r].id===e.element.id+"_tile_parent"){a.children[r].style.removeProperty("height"),a.children[r].style.removeProperty("width"),a.children[r].style.removeProperty("top"),a.children[r].style.removeProperty("left"),a.children[r].style.removeProperty("right"),a.children[r].style.removeProperty("overflow");var s=document.getElementById(e.element.id+"_Tile_SVG_Parent");a.children[r].children[0].style.overflow="hidden",a.children[r].children[0].style.position="absolute",a.children[r].children[0].style.height=s.style.height,a.children[r].children[0].style.width=s.style.width,a.children[r].children[0].style.left=s.style.left,a.children[r].children[0].style.top=s.style.top;break}return i?i instanceof Array?Array.prototype.forEach.call(i,(function(e){o.appendChild(Re(e).cloneNode(!0))})):i instanceof Element?o.appendChild(i.cloneNode(!0)):o.appendChild(Re(i).cloneNode(!0)):o.appendChild(a),o},e.prototype.getModuleName=function(){return"Print"},e.prototype.destroy=function(){},e}(),uo=function(){function e(e){}return e.prototype.export=function(e,i,o,a){return new Promise((function(n,l){var r,s,d=(0,t.createElement)("canvas",{id:"ej2-canvas",attrs:{width:e.availableSize.width.toString(),height:e.availableSize.height.toString()}}),p=!(t.Browser.userAgent.toString().indexOf("HeadlessChrome")>-1),h=document.getElementById(e.element.id+"_Tile_SVG_Parent"),m=Ae(e.element.id+"_svg").cloneNode(!0),c=m.childNodes[0].getAttribute("fill");"Tailwind"!==e.theme&&"Bootstrap5"!==e.theme&&"Fluent"!==e.theme&&"Material3"!==e.theme&&"Fluent2"!==e.theme||"rgba(255,255,255, 0.0)"!==c&&"transparent"!==c?"TailwindDark"!==e.theme&&"Bootstrap5Dark"!==e.theme&&"FluentDark"!==e.theme&&"Material3Dark"!==e.theme&&"Fluent2Dark"!==e.theme&&"Fluent2HighContrast"!==e.theme||"rgba(255,255,255, 0.0)"!==c&&"transparent"!==c||m.childNodes[0].setAttribute("fill","rgba(0, 0, 0, 1)"):m.childNodes[0].setAttribute("fill","rgba(255,255,255, 1)"),e.isTileMap?(s=Ae(e.element.id+"_Tile_SVG").cloneNode(!0),r='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">'+m.outerHTML+s.outerHTML+"</svg>"):r='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">'+m.outerHTML+"</svg>";var u=window.URL.createObjectURL(new Blob("SVG"===i?[r]:[(new XMLSerializer).serializeToString(m)],{type:"image/svg+xml"}));if("SVG"===i)a?C(o,i,u,p):n(null);else{var g=new Image,y=d.getContext("2d");if(e.isTileMap){e.isExportInitialTileMap=!0;for(var f=document.getElementById(e.element.id+"_MapAreaBorder"),b=parseFloat(f.getAttribute("y")),v=parseFloat(f.getAttribute("x")),S=new XMLHttpRequest,x=e.mapLayerPanel.tiles.length,O=function(l){var r=document.getElementById(e.element.id+"_tile_"+(l-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)"!==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";y.fillStyle=g,y.fillRect(0,0,e.availableSize.width,e.availableSize.height),y.font=e.titleSettings.textStyle.size+" Arial";var f=document.getElementById(e.element.id+"_Map_title");(0,t.isNullOrUndefined)(f)||(y.fillStyle=f.getAttribute("fill"),y.fillText(e.titleSettings.text,parseFloat(f.getAttribute("x")),parseFloat(f.getAttribute("y")))),m.onload=function(){if(0===l||l===x+1?0===l?(y.setTransform(1,0,0,1,0,0),y.rect(0,b,parseFloat(h.style.width),parseFloat(h.style.height)),y.clip()):y.setTransform(1,0,0,1,v,b):y.setTransform(1,0,0,1,parseFloat(r.style.left)+v,parseFloat(r.style.top)+b),y.drawImage(m,0,0),l===x+1){localStorage.setItem("local-canvasImage",d.toDataURL("image/png"));var t=localStorage.getItem("local-canvasImage");a?(C(o,i,t,p),localStorage.removeItem("local-canvasImage"),e.isExportInitialTileMap=!1):(e.isExportInitialTileMap=!1,"PNG"===i?n(t):"JPEG"===i&&n(d.toDataURL("image/jpeg")))}},0===l||l===x+1?0===l?m.src=u:setTimeout((function(){m.src=window.URL.createObjectURL(new Blob([(new XMLSerializer).serializeToString(s)],{type:"image/svg+xml"}))}),300):(S.open("GET",r.children[0].getAttribute("src"),!0),S.send(),m.src=r.children[0].getAttribute("src"))},M=0;M<=x+1;M++)O(M)}else g.onload=function(){y.drawImage(g,0,0),window.URL.revokeObjectURL(u),a?C(o,i,d.toDataURL("image/png").replace("image/png","image/octet-stream"),p):"PNG"===i?n(d.toDataURL("image/png")):"JPEG"===i&&n(d.toDataURL("image/jpeg"))},g.src=u}}))},e.prototype.getModuleName=function(){return"ImageExport"},e.prototype.destroy=function(){},e}(),go=l(461),yo=function(){function e(){}return e.prototype.export=function(e,i,o,a,n){return new Promise((function(l){e.isTileMap&&(e.isExportInitialTileMap=!0);var r=(0,t.createElement)("canvas",{id:"ej2-canvas",attrs:{width:e.availableSize.width.toString(),height:e.availableSize.height.toString()}});n=(0,t.isNullOrUndefined)(n)?go.PdfPageOrientation.Landscape:n;var s=document.getElementById(e.element.id+"_Tile_SVG_Parent"),d=e.svgObject.cloneNode(!0),p=d.childNodes[0].getAttribute("fill");"Tailwind"!==e.theme&&"Bootstrap5"!==e.theme&&"Fluent"!==e.theme&&"Material3"!==e.theme&&"Fluent2"!==e.theme||"rgba(255,255,255, 0.0)"!==p&&"transparent"!==p?"TailwindDark"!==e.theme&&"Bootstrap5Dark"!==e.theme&&"FluentDark"!==e.theme&&"Material3Dark"!==e.theme&&"Fluent2Dark"!==e.theme&&"Fluent2HighContrast"!==e.theme||"rgba(255,255,255, 0.0)"!==p&&"transparent"!==p||d.childNodes[0].setAttribute("fill","rgba(0, 0, 0, 1)"):d.childNodes[0].setAttribute("fill","rgba(255,255,255, 1)");var h=window.URL.createObjectURL(new Blob("SVG"===i?[undefined]:[(new XMLSerializer).serializeToString(d)],{type:"image/svg+xml"})),m=new go.PdfDocument,c=new Image,u=r.getContext("2d");if(e.isTileMap)for(var g=document.getElementById(e.element.id+"_MapAreaBorder"),y=parseFloat(g.getAttribute("y")),f=parseFloat(g.getAttribute("x")),b=new XMLHttpRequest,v=e.mapLayerPanel.tiles.length,S=function(d){var c=document.getElementById(e.element.id+"_tile_"+(d-1)),g=new Image;g.crossOrigin="Anonymous";var S=e.background?e.background:"Tailwind"!==e.theme&&"Bootstrap5"!==e.theme&&"Fluent"!==e.theme&&"Material3"!==e.theme||"rgba(255,255,255, 0.0)"!==p&&"transparent"!==p?"TailwindDark"!==e.theme&&"Bootstrap5Dark"!==e.theme&&"FluentDark"!==e.theme&&"Material3Dark"!==e.theme||"rgba(255,255,255, 0.0)"!==p&&"transparent"!==p?"#ffffff":"#000000":"#ffffff";u.fillStyle=S,u.fillRect(0,0,e.availableSize.width,e.availableSize.height),u.font=e.titleSettings.textStyle.size+" Arial";var x=document.getElementById(e.element.id+"_Map_title");(0,t.isNullOrUndefined)(x)||(u.fillStyle=x.getAttribute("fill"),u.fillText(e.titleSettings.text,parseFloat(x.getAttribute("x")),parseFloat(x.getAttribute("y")))),g.onload=function(){if(0===d||d===v+1?0===d?(u.setTransform(1,0,0,1,0,0),u.rect(0,y,parseFloat(s.style.width),parseFloat(s.style.height)),u.clip()):u.setTransform(1,0,0,1,f,y):u.setTransform(1,0,0,1,parseFloat(c.style.left)+f,parseFloat(c.style.top)+y),u.drawImage(g,0,0),d===v+1&&"PDF"===i){localStorage.setItem("saved-image-example",r.toDataURL("image/jpeg"));var t=localStorage.getItem("saved-image-example");m.pageSettings.orientation=n,t=t.slice(t.indexOf(",")+1),m.pages.add().graphics.drawImage(new go.PdfBitmap(t),0,0,e.availableSize.width-60,e.availableSize.height),e.isExportInitialTileMap=!1,a?(m.save(o+".pdf"),m.destroy()):l(null)}},0===d||d===v+1?0===d?g.src=h:setTimeout((function(){var t=document.getElementById(e.element.id+"_Tile_SVG");g.src=window.URL.createObjectURL(new Blob([(new XMLSerializer).serializeToString(t)],{type:"image/svg+xml"}))}),300):(b.open("GET",c.children[0].getAttribute("src"),!0),b.send(),g.src=c.children[0].getAttribute("src"))},x=0;x<=v+1;x++)S(x);else c.onload=function(){if(u.drawImage(c,0,0),window.URL.revokeObjectURL(h),"PDF"===i){var t=r.toDataURL("image/jpeg").replace("image/jpeg","image/octet-stream");m.pageSettings.orientation=n,t=t.slice(t.indexOf(",")+1),m.pages.add().graphics.drawImage(new go.PdfBitmap(t),0,0,e.availableSize.width-60,e.availableSize.height),a?(m.save(o+".pdf"),m.destroy()):l(null)}},c.src=h}))},e.prototype.getModuleName=function(){return"PdfExport"},e.prototype.destroy=function(){},e}()})(),r})()));