diff --git a/static/dist/mapml.js b/static/dist/mapml.js index e9feac43..ed50da8f 100644 --- a/static/dist/mapml.js +++ b/static/dist/mapml.js @@ -1,53 +1,2 @@ -/*! @maps4html/mapml 06-11-2024 */ -function extend$2(t){for(var e,i,o=1,n=arguments.length;o{function e(){}return function(t){return e.prototype=t,new e}})();function bind(t,e){var i,o=Array.prototype.slice;return t.bind?t.bind.apply(t,o.call(arguments,1)):(i=o.call(arguments,2),function(){return t.apply(e,i.length?i.concat(o.call(arguments)):arguments)})}var lastId=0;function stamp(t){return"_leaflet_id"in t||(t._leaflet_id=++lastId),t._leaflet_id}function throttle(t,e,i){var o,n,s=function(){o=!1,n&&(a.apply(i,n),n=!1)},a=function(){o?n=arguments:(t.apply(i,arguments),setTimeout(s,e),o=!0)};return a}function wrapNum(t,e,i){var o=e[1],e=e[0],n=o-e;return t===o&&i?t:((t-e)%n+n)%n+e}function falseFn(){return!1}function formatNum(t,e){return!1===e?t:(e=Math.pow(10,void 0===e?6:e),Math.round(t*e)/e)}function trim(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function splitWords(t){return trim(t).split(/\s+/)}function setOptions(t,e){for(var i in Object.prototype.hasOwnProperty.call(t,"options")||(t.options=t.options?create$2(t.options):{}),e)t.options[i]=e[i];return t.options}function getParamString(t,e,i){var o,n=[];for(o in t)n.push(encodeURIComponent(i?o.toUpperCase():o)+"="+encodeURIComponent(t[o]));return(e&&-1!==e.indexOf("?")?"&":"?")+n.join("&")}var templateRe=/\{ *([\w_ -]+) *\}/g;function template(t,i){return t.replace(templateRe,function(t,e){e=i[e];if(void 0===e)throw new Error("No value provided for variable "+t);return e="function"==typeof e?e(i):e})}var isArray=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function indexOf(t,e){for(var i=0;i=this.min.x&&i.x<=this.max.x&&e.y>=this.min.y&&i.y<=this.max.y},intersects:function(t){t=toBounds(t);var e=this.min,i=this.max,o=t.min,t=t.max,n=t.x>=e.x&&o.x<=i.x,e=e.y<=t.y&&o.y<=i.y;return n&&e},overlaps:function(t){t=toBounds(t);var e=this.min,i=this.max,o=t.min,t=t.max,n=t.x>e.x&&o.x=o.lat&&i.lat<=n.lat&&e.lng>=o.lng&&i.lng<=n.lng},intersects:function(t){t=toLatLngBounds(t);var e=this._southWest,i=this._northEast,o=t.getSouthWest(),t=t.getNorthEast(),n=t.lat>=e.lat&&o.lat<=i.lat,t=t.lng>=e.lng&&o.lng<=i.lng;return n&&t},overlaps:function(t){t=toLatLngBounds(t);var e=this._southWest,i=this._northEast,o=t.getSouthWest(),t=t.getNorthEast(),n=t.lat>e.lat&&o.late.lng&&o.lng{var t=earthRadius*Math.PI;return new Bounds([-t,-t],[t,t])})()};function Transformation(t,e,i,o){isArray(t)?(this._a=t[0],this._b=t[1],this._c=t[2],this._d=t[3]):(this._a=t,this._b=e,this._c=i,this._d=o)}function toTransformation(t,e,i,o){return new Transformation(t,e,i,o)}Transformation.prototype={transform:function(t,e){return this._transform(t.clone(),e)},_transform:function(t,e){return t.x=(e=e||1)*(this._a*t.x+this._b),t.y=e*(this._c*t.y+this._d),t},untransform:function(t,e){return new Point$2((t.x/(e=e||1)-this._b)/this._a,(t.y/e-this._d)/this._c)}};var EPSG3857=extend$2({},Earth,{code:"EPSG:3857",projection:SphericalMercator,transformation:(()=>{var t=.5/(Math.PI*SphericalMercator.R);return toTransformation(t,.5,-t,.5)})()}),EPSG900913=extend$2({},EPSG3857,{code:"EPSG:900913"});function svgCreate(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function pointsToPath(t,e){for(var i,o,n,s,a="",r=0,l=t.length;r{var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("testPassiveEventSupport",falseFn,e),window.removeEventListener("testPassiveEventSupport",falseFn,e)}catch(t){}return t})(),canvas$1=!!document.createElement("canvas").getContext,svg$1=!(!document.createElementNS||!svgCreate("svg").createSVGRect),inlineSvg=!!svg$1&&(()=>{var t=document.createElement("div");return t.innerHTML="","http://www.w3.org/2000/svg"===(t.firstChild&&t.firstChild.namespaceURI)})(),vml=!svg$1&&(()=>{try{var t=document.createElement("div"),e=(t.innerHTML='',t.firstChild);return e.style.behavior="url(#default#VML)",e&&"object"==typeof e.adj}catch(t){return!1}})(),mac=0===navigator.platform.indexOf("Mac"),linux=0===navigator.platform.indexOf("Linux");function userAgentContains(t){return 0<=navigator.userAgent.toLowerCase().indexOf(t)}var Browser={ie:ie$1,ielt9:ielt9,edge:edge,webkit:webkit,android:android,android23:android23,androidStock:androidStock,opera:opera,chrome:chrome,gecko:gecko,safari:safari,phantom:phantom,opera12:opera12,win:win,ie3d:ie3d,webkit3d:webkit3d,gecko3d:gecko3d,any3d:any3d,mobile:mobile,mobileWebkit:mobileWebkit,mobileWebkit3d:mobileWebkit3d,msPointer:msPointer,pointer:pointer,touch:touch,touchNative:touchNative,mobileOpera:mobileOpera,mobileGecko:mobileGecko,retina:retina,passiveEvents:passiveEvents,canvas:canvas$1,svg:svg$1,vml:vml,inlineSvg:inlineSvg,mac:mac,linux:linux},POINTER_DOWN=Browser.msPointer?"MSPointerDown":"pointerdown",POINTER_MOVE=Browser.msPointer?"MSPointerMove":"pointermove",POINTER_UP=Browser.msPointer?"MSPointerUp":"pointerup",POINTER_CANCEL=Browser.msPointer?"MSPointerCancel":"pointercancel",pEvent={touchstart:POINTER_DOWN,touchmove:POINTER_MOVE,touchend:POINTER_UP,touchcancel:POINTER_CANCEL},handle={touchstart:_onPointerStart,touchmove:_handlePointer,touchend:_handlePointer,touchcancel:_handlePointer},_pointers={},_pointerDocListener=!1;function addPointerListener(t,e,i){return"touchstart"===e&&_addPointerDocListener(),handle[e]?(i=handle[e].bind(this,i),t.addEventListener(pEvent[e],i,!1),i):(console.warn("wrong event specified:",e),falseFn)}function removePointerListener(t,e,i){pEvent[e]?t.removeEventListener(pEvent[e],i,!1):console.warn("wrong event specified:",e)}function _globalPointerDown(t){_pointers[t.pointerId]=t}function _globalPointerMove(t){_pointers[t.pointerId]&&(_pointers[t.pointerId]=t)}function _globalPointerUp(t){delete _pointers[t.pointerId]}function _addPointerDocListener(){_pointerDocListener||(document.addEventListener(POINTER_DOWN,_globalPointerDown,!0),document.addEventListener(POINTER_MOVE,_globalPointerMove,!0),document.addEventListener(POINTER_UP,_globalPointerUp,!0),document.addEventListener(POINTER_CANCEL,_globalPointerUp,!0),_pointerDocListener=!0)}function _handlePointer(t,e){if(e.pointerType!==(e.MSPOINTER_TYPE_MOUSE||"mouse")){for(var i in e.touches=[],_pointers)e.touches.push(_pointers[i]);e.changedTouches=[e],t(e)}}function _onPointerStart(t,e){e.MSPOINTER_TYPE_TOUCH&&e.pointerType===e.MSPOINTER_TYPE_TOUCH&&preventDefault(e),_handlePointer(t,e)}function makeDblclick(t){var e,i,o={};for(i in t)e=t[i],o[i]=e&&e.bind?e.bind(t):e;return(t=o).type="dblclick",o.detail=2,o.isTrusted=!1,o._simulated=!0,o}var delay=200;function addDoubleTapListener(t,i){t.addEventListener("dblclick",i);var o,n=0;function e(t){var e;1!==t.detail?o=t.detail:"mouse"===t.pointerType||t.sourceCapabilities&&!t.sourceCapabilities.firesTouchEvents||(e=getPropagationPath(t)).some(function(t){return t instanceof HTMLLabelElement&&t.attributes.for})&&!e.some(function(t){return t instanceof HTMLInputElement||t instanceof HTMLSelectElement})||((e=Date.now())-n<=delay?2===++o&&i(makeDblclick(t)):o=1,n=e)}return t.addEventListener("click",e),{dblclick:i,simDblclick:e}}function removeDoubleTapListener(t,e){t.removeEventListener("dblclick",e.dblclick),t.removeEventListener("click",e.simDblclick)}var _userSelect,userSelectProperty,disableTextSelection,enableTextSelection,_outlineElement,_outlineStyle,TRANSFORM=testProp(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),TRANSITION=testProp(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),TRANSITION_END="webkitTransition"===TRANSITION||"OTransition"===TRANSITION?TRANSITION+"End":"transitionend";function get$1(t){return"string"==typeof t?document.getElementById(t):t}function getStyle(t,e){var i=t.style[e]||t.currentStyle&&t.currentStyle[e];return"auto"===(i=i&&"auto"!==i||!document.defaultView?i:(t=document.defaultView.getComputedStyle(t,null))?t[e]:null)?null:i}function create$1(t,e,i){t=document.createElement(t);return t.className=e||"",i&&i.appendChild(t),t}function remove(t){var e=t.parentNode;e&&e.removeChild(t)}function empty(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function toFront(t){var e=t.parentNode;e&&e.lastChild!==t&&e.appendChild(t)}function toBack(t){var e=t.parentNode;e&&e.firstChild!==t&&e.insertBefore(t,e.firstChild)}function hasClass(t,e){return void 0!==t.classList?t.classList.contains(e):0<(t=getClass(t)).length&&new RegExp("(^|\\s)"+e+"(\\s|$)").test(t)}function addClass(t,e){var i;if(void 0!==t.classList)for(var o=splitWords(e),n=0,s=o.length;nthis.options.maxZoom)?this.setZoom(t):this},panInsideBounds:function(t,e){this._enforcingBounds=!0;var i=this.getCenter(),t=this._limitCenter(i,this._zoom,toLatLngBounds(t));return i.equals(t)||this.panTo(t,e),this._enforcingBounds=!1,this},panInside:function(t,e){var i=toPoint$1((e=e||{}).paddingTopLeft||e.padding||[0,0]),o=toPoint$1(e.paddingBottomRight||e.padding||[0,0]),n=this.project(this.getCenter()),t=this.project(t),s=this.getPixelBounds(),i=toBounds([s.min.add(i),s.max.subtract(o)]),s=i.getSize();return i.contains(t)||(this._enforcingBounds=!0,o=t.subtract(i.getCenter()),i=i.extend(t).getSize().subtract(s),n.x+=o.x<0?-i.x:i.x,n.y+=o.y<0?-i.y:i.y,this.panTo(this.unproject(n),e),this._enforcingBounds=!1),this},invalidateSize:function(t){if(!this._loaded)return this;t=extend$2({animate:!1,pan:!0},!0===t?{animate:!0}:t);var e=this.getSize(),i=(this._sizeChanged=!0,this._lastCenter=null,this.getSize()),o=e.divideBy(2).round(),n=i.divideBy(2).round(),o=o.subtract(n);return o.x||o.y?(t.animate&&t.pan?this.panBy(o):(t.pan&&this._rawPanBy(o),this.fire("move"),t.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(bind(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:e,newSize:i})):this},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(t){var e,i;return t=this._locateOptions=extend$2({timeout:1e4,watch:!1},t),"geolocation"in navigator?(e=bind(this._handleGeolocationResponse,this),i=bind(this._handleGeolocationError,this),t.watch?this._locationWatchId=navigator.geolocation.watchPosition(e,i,t):navigator.geolocation.getCurrentPosition(e,i,t)):this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(t){var e;this._container._leaflet_id&&(e=t.code,t=t.message||(1===e?"permission denied":2===e?"position unavailable":"timeout"),this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:e,message:"Geolocation error: "+t+"."}))},_handleGeolocationResponse:function(t){if(this._container._leaflet_id){var e,i,o=new LatLng(t.coords.latitude,t.coords.longitude),n=o.toBounds(2*t.coords.accuracy),s=this._locateOptions,a=(s.setView&&(e=this.getBoundsZoom(n),this.setView(o,s.maxZoom?Math.min(e,s.maxZoom):e)),{latlng:o,bounds:n,timestamp:t.timestamp});for(i in t.coords)"number"==typeof t.coords[i]&&(a[i]=t.coords[i]);this.fire("locationfound",a)}},addHandler:function(t,e){return e&&(e=this[t]=new e(this),this._handlers.push(e),this.options[t])&&e.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch(t){this._container._leaflet_id=void 0,this._containerId=void 0}for(var t in void 0!==this._locationWatchId&&this.stopLocate(),this._stop(),remove(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(cancelAnimFrame(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload"),this._layers)this._layers[t].remove();for(t in this._panes)remove(this._panes[t]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(t,e){e=create$1("div","leaflet-pane"+(t?" leaflet-"+t.replace("Pane","")+"-pane":""),e||this._mapPane);return t&&(this._panes[t]=e),e},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var t=this.getPixelBounds();return new LatLngBounds(this.unproject(t.getBottomLeft()),this.unproject(t.getTopRight()))},getMinZoom:function(){return void 0===this.options.minZoom?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return void 0===this.options.maxZoom?void 0===this._layersMaxZoom?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(t,e,i){t=toLatLngBounds(t),i=toPoint$1(i||[0,0]);var o=this.getZoom()||0,n=this.getMinZoom(),s=this.getMaxZoom(),a=t.getNorthWest(),t=t.getSouthEast(),i=this.getSize().subtract(i),t=toBounds(this.project(t,o),this.project(a,o)).getSize(),a=Browser.any3d?this.options.zoomSnap:1,r=i.x/t.x,i=i.y/t.y,t=e?Math.max(r,i):Math.min(r,i),o=this.getScaleZoom(t,o);return a&&(o=Math.round(o/(a/100))*(a/100),o=e?Math.ceil(o/a)*a:Math.floor(o/a)*a),Math.max(n,Math.min(s,o))},getSize:function(){return this._size&&!this._sizeChanged||(this._size=new Point$2(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(t,e){t=this._getTopLeftPoint(t,e);return new Bounds(t,t.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(t){return this.options.crs.getProjectedBounds(void 0===t?this.getZoom():t)},getPane:function(t){return"string"==typeof t?this._panes[t]:t},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(t,e){var i=this.options.crs;return e=void 0===e?this._zoom:e,i.scale(t)/i.scale(e)},getScaleZoom:function(t,e){var i=this.options.crs,t=(e=void 0===e?this._zoom:e,i.zoom(t*i.scale(e)));return isNaN(t)?1/0:t},project:function(t,e){return e=void 0===e?this._zoom:e,this.options.crs.latLngToPoint(toLatLng(t),e)},unproject:function(t,e){return e=void 0===e?this._zoom:e,this.options.crs.pointToLatLng(toPoint$1(t),e)},layerPointToLatLng:function(t){t=toPoint$1(t).add(this.getPixelOrigin());return this.unproject(t)},latLngToLayerPoint:function(t){return this.project(toLatLng(t))._round()._subtract(this.getPixelOrigin())},wrapLatLng:function(t){return this.options.crs.wrapLatLng(toLatLng(t))},wrapLatLngBounds:function(t){return this.options.crs.wrapLatLngBounds(toLatLngBounds(t))},distance:function(t,e){return this.options.crs.distance(toLatLng(t),toLatLng(e))},containerPointToLayerPoint:function(t){return toPoint$1(t).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(t){return toPoint$1(t).add(this._getMapPanePos())},containerPointToLatLng:function(t){t=this.containerPointToLayerPoint(toPoint$1(t));return this.layerPointToLatLng(t)},latLngToContainerPoint:function(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint(toLatLng(t)))},mouseEventToContainerPoint:function(t){return getMousePosition(t,this._container)},mouseEventToLayerPoint:function(t){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(t))},mouseEventToLatLng:function(t){return this.layerPointToLatLng(this.mouseEventToLayerPoint(t))},_initContainer:function(t){t=this._container=get$1(t);if(!t)throw new Error("Map container not found.");if(t._leaflet_id)throw new Error("Map container is already initialized.");on(t,"scroll",this._onScroll,this),this._containerId=stamp(t)},_initLayout:function(){var t=this._container,e=(this._fadeAnimated=this.options.fadeAnimation&&Browser.any3d,addClass(t,"leaflet-container"+(Browser.touch?" leaflet-touch":"")+(Browser.retina?" leaflet-retina":"")+(Browser.ielt9?" leaflet-oldie":"")+(Browser.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":"")),getStyle(t,"position"));"absolute"!==e&&"relative"!==e&&"fixed"!==e&&"sticky"!==e&&(t.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var t=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),setPosition(this._mapPane,new Point$2(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(addClass(t.markerPane,"leaflet-zoom-hide"),addClass(t.shadowPane,"leaflet-zoom-hide"))},_resetView:function(t,e,i){setPosition(this._mapPane,new Point$2(0,0));var o=!this._loaded,n=(this._loaded=!0,e=this._limitZoom(e),this.fire("viewprereset"),this._zoom!==e);this._moveStart(n,i)._move(t,e)._moveEnd(n),this.fire("viewreset"),o&&this.fire("load")},_moveStart:function(t,e){return t&&this.fire("zoomstart"),e||this.fire("movestart"),this},_move:function(t,e,i,o){void 0===e&&(e=this._zoom);var n=this._zoom!==e;return this._zoom=e,this._lastCenter=t,this._pixelOrigin=this._getNewPixelOrigin(t),o?i&&i.pinch&&this.fire("zoom",i):((n||i&&i.pinch)&&this.fire("zoom",i),this.fire("move",i)),this},_moveEnd:function(t){return t&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return cancelAnimFrame(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(t){setPosition(this._mapPane,this._getMapPanePos().subtract(t))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(t){this._targets={};var e=t?off:on;e((this._targets[stamp(this._container)]=this)._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&e(window,"resize",this._onResize,this),Browser.any3d&&this.options.transform3DLimit&&(t?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){cancelAnimFrame(this._resizeRequest),this._resizeRequest=requestAnimFrame(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var t=this._getMapPanePos();Math.max(Math.abs(t.x),Math.abs(t.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(t,e){for(var i,o=[],n="mouseout"===e||"mouseover"===e,s=t.target||t.srcElement,a=!1;s;){if((i=this._targets[stamp(s)])&&("click"===e||"preclick"===e)&&this._draggableMoved(i)){a=!0;break}if(i&&i.listens(e,!0)){if(n&&!isExternalTarget(s,t))break;if(o.push(i),n)break}if(s===this._container)break;s=s.parentNode}return o=o.length||a||n||!this.listens(e,!0)?o:[this]},_isClickDisabled:function(t){for(;t&&t!==this._container;){if(t._leaflet_disable_click)return!0;t=t.parentNode}},_handleDOMEvent:function(t){var e,i=t.target||t.srcElement;!this._loaded||i._leaflet_disable_events||"click"===t.type&&this._isClickDisabled(i)||("mousedown"===(e=t.type)&&preventOutline(i),this._fireDOMEvent(t,e))},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(t,e,i){"click"===t.type&&((r=extend$2({},t)).type="preclick",this._fireDOMEvent(r,r.type,i));var o=this._findEventTargets(t,e);if(i){for(var n=[],s=0;sthis.options.zoomAnimationThreshold)return!1;var o=this.getZoomScale(e),o=this._getCenterOffset(t)._divideBy(1-1/o);if(!0!==i.animate&&!this.getSize().contains(o))return!1;requestAnimFrame(function(){this._moveStart(!0,i.noMoveStart||!1)._animateZoom(t,e,!0)},this)}return!0},_animateZoom:function(t,e,i,o){this._mapPane&&(i&&(this._animatingZoom=!0,this._animateToCenter=t,this._animateToZoom=e,addClass(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:t,zoom:e,noUpdate:o}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(bind(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&removeClass(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}});function createMap(t,e){return new Map$1(t,e)}var _lastCode,Control=Class.extend({options:{position:"topright"},initialize:function(t){setOptions(this,t)},getPosition:function(){return this.options.position},setPosition:function(t){var e=this._map;return e&&e.removeControl(this),this.options.position=t,e&&e.addControl(this),this},getContainer:function(){return this._container},addTo:function(t){this.remove(),this._map=t;var e=this._container=this.onAdd(t),i=this.getPosition(),t=t._controlCorners[i];return addClass(e,"leaflet-control"),-1!==i.indexOf("bottom")?t.insertBefore(e,t.firstChild):t.appendChild(e),this._map.on("unload",this.remove,this),this},remove:function(){return this._map&&(remove(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null),this},_refocusOnMap:function(t){this._map&&t&&0",e=document.createElement("div");return e.innerHTML=t,e.firstChild},_addItem:function(t){var e,i=document.createElement("label"),o=this._map.hasLayer(t.layer),o=(t.overlay?((e=document.createElement("input")).type="checkbox",e.className="leaflet-control-layers-selector",e.defaultChecked=o):e=this._createRadioElement("leaflet-base-layers_"+stamp(this),o),this._layerControlInputs.push(e),e.layerId=stamp(t.layer),on(e,"click",this._onInputClick,this),document.createElement("span")),n=(o.innerHTML=" "+t.name,document.createElement("span"));return i.appendChild(n),n.appendChild(e),n.appendChild(o),(t.overlay?this._overlaysList:this._baseLayersList).appendChild(i),this._checkDisabledLayers(),i},_onInputClick:function(){if(!this._preventClick){var t,e,i=this._layerControlInputs,o=[],n=[];this._handlingClick=!0;for(var s=i.length-1;0<=s;s--)t=i[s],e=this._getLayer(t.layerId).layer,(t.checked?o:(t.checked,n)).push(e);for(s=0;se.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var t=this._section,e=(this._preventClick=!0,on(t,"click",preventDefault),this.expand(),this);setTimeout(function(){off(t,"click",preventDefault),e._preventClick=!1})}})),layers=function(t,e,i){return new Layers(t,e,i)},Zoom=Control.extend({options:{position:"topleft",zoomInText:'',zoomInTitle:"Zoom in",zoomOutText:'',zoomOutTitle:"Zoom out"},onAdd:function(t){var e="leaflet-control-zoom",i=create$1("div",e+" leaflet-bar"),o=this.options;return this._zoomInButton=this._createButton(o.zoomInText,o.zoomInTitle,e+"-in",i,this._zoomIn),this._zoomOutButton=this._createButton(o.zoomOutText,o.zoomOutTitle,e+"-out",i,this._zoomOut),this._updateDisabled(),t.on("zoomend zoomlevelschange",this._updateDisabled,this),i},onRemove:function(t){t.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(t){!this._disabled&&this._map._zoomthis._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(t.shiftKey?3:1))},_createButton:function(t,e,i,o,n){i=create$1("a",i,o);return i.innerHTML=t,i.href="#",i.title=e,i.setAttribute("role","button"),i.setAttribute("aria-label",e),disableClickPropagation(i),on(i,"click",stop),on(i,"click",n,this),on(i,"click",this._refocusOnMap,this),i},_updateDisabled:function(){var t=this._map,e="leaflet-disabled";removeClass(this._zoomInButton,e),removeClass(this._zoomOutButton,e),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),!this._disabled&&t._zoom!==t.getMinZoom()||(addClass(this._zoomOutButton,e),this._zoomOutButton.setAttribute("aria-disabled","true")),!this._disabled&&t._zoom!==t.getMaxZoom()||(addClass(this._zoomInButton,e),this._zoomInButton.setAttribute("aria-disabled","true"))}}),zoom=(Map$1.mergeOptions({zoomControl:!0}),Map$1.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new Zoom,this.addControl(this.zoomControl))}),function(t){return new Zoom(t)}),Scale=Control.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(t){var e="leaflet-control-scale",i=create$1("div",e),o=this.options;return this._addScales(o,e+"-line",i),t.on(o.updateWhenIdle?"moveend":"move",this._update,this),t.whenReady(this._update,this),i},onRemove:function(t){t.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(t,e,i){t.metric&&(this._mScale=create$1("div",e,i)),t.imperial&&(this._iScale=create$1("div",e,i))},_update:function(){var t=this._map,e=t.getSize().y/2,t=t.distance(t.containerPointToLatLng([0,e]),t.containerPointToLatLng([this.options.maxWidth,e]));this._updateScales(t)},_updateScales:function(t){this.options.metric&&t&&this._updateMetric(t),this.options.imperial&&t&&this._updateImperial(t)},_updateMetric:function(t){var e=this._getRoundNum(t);this._updateScale(this._mScale,e<1e3?e+" m":e/1e3+" km",e/t)},_updateImperial:function(t){var e,i,t=3.2808399*t;5280'+(Browser.inlineSvg?ukrainianFlag+" ":"")+"Leaflet"},initialize:function(t){setOptions(this,t),this._attributions={}},onAdd:function(t){for(var e in(t.attributionControl=this)._container=create$1("div","leaflet-control-attribution"),disableClickPropagation(this._container),t._layers)t._layers[e].getAttribution&&this.addAttribution(t._layers[e].getAttribution());return this._update(),t.on("layeradd",this._addAttribution,this),this._container},onRemove:function(t){t.off("layeradd",this._addAttribution,this)},_addAttribution:function(t){t.layer.getAttribution&&(this.addAttribution(t.layer.getAttribution()),t.layer.once("remove",function(){this.removeAttribution(t.layer.getAttribution())},this))},setPrefix:function(t){return this.options.prefix=t,this._update(),this},addAttribution:function(t){return t&&(this._attributions[t]||(this._attributions[t]=0),this._attributions[t]++,this._update()),this},removeAttribution:function(t){return t&&this._attributions[t]&&(this._attributions[t]--,this._update()),this},_update:function(){if(this._map){var t,e=[];for(t in this._attributions)this._attributions[t]&&e.push(t);var i=[];this.options.prefix&&i.push(this.options.prefix),e.length&&i.push(e.join(", ")),this._container.innerHTML=i.join(' ')}}}),attribution=(Map$1.mergeOptions({attributionControl:!0}),Map$1.addInitHook(function(){this.options.attributionControl&&(new Attribution).addTo(this)}),function(t){return new Attribution(t)}),Handler=(Control.Layers=Layers,Control.Zoom=Zoom,Control.Scale=Scale,Control.Attribution=Attribution,control.layers=layers,control.zoom=zoom,control.scale=scale,control.attribution=attribution,Class.extend({initialize:function(t){this._map=t},enable:function(){return this._enabled||(this._enabled=!0,this.addHooks()),this},disable:function(){return this._enabled&&(this._enabled=!1,this.removeHooks()),this},enabled:function(){return!!this._enabled}})),START=(Handler.addTo=function(t,e){return t.addHandler(e,this),this},Browser.touch?"touchstart mousedown":"mousedown"),Draggable=Evented.extend({options:{clickTolerance:3},initialize:function(t,e,i,o){setOptions(this,o),this._element=t,this._dragStartTarget=e||t,this._preventOutline=i},enable:function(){this._enabled||(on(this._dragStartTarget,START,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(Draggable._dragging===this&&this.finishDrag(!0),off(this._dragStartTarget,START,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(t){var e,i;this._enabled&&(this._moved=!1,hasClass(this._element,"leaflet-zoom-anim")||(t.touches&&1!==t.touches.length?Draggable._dragging===this&&this.finishDrag():Draggable._dragging||t.shiftKey||1!==t.which&&1!==t.button&&!t.touches||((Draggable._dragging=this)._preventOutline&&preventOutline(this._element),disableImageDrag(),disableTextSelection(),this._moving)||(this.fire("down"),i=t.touches?t.touches[0]:t,e=getSizedParentNode(this._element),this._startPoint=new Point$2(i.clientX,i.clientY),this._startPos=getPosition(this._element),this._parentScale=getScale(e),i="mousedown"===t.type,on(document,i?"mousemove":"touchmove",this._onMove,this),on(document,i?"mouseup":"touchend touchcancel",this._onUp,this))))},_onMove:function(t){var e;this._enabled&&(t.touches&&1e&&(i.push(t[o]),n=o);return ne.max.x&&(i|=2),t.ye.max.y&&(i|=8),i}function _sqDist(t,e){var i=e.x-t.x,e=e.y-t.y;return i*i+e*e}function _sqClosestPointOnSegment(t,e,i,o){var n=e.x,e=e.y,s=i.x-n,a=i.y-e,r=s*s+a*a;return 0{var t=.5/(Math.PI*Mercator.R);return toTransformation(t,.5,-t,.5)})()}),EPSG4326=extend$2({},Earth,{code:"EPSG:4326",projection:LonLat,transformation:toTransformation(1/180,1,-1/180,.5)}),Simple=extend$2({},CRS,{projection:LonLat,transformation:toTransformation(1,0,-1,0),scale:function(t){return Math.pow(2,t)},zoom:function(t){return Math.log(t)/Math.LN2},distance:function(t,e){var i=e.lng-t.lng,e=e.lat-t.lat;return Math.sqrt(i*i+e*e)},infinite:!0}),Layer=(CRS.Earth=Earth,CRS.EPSG3395=EPSG3395,CRS.EPSG3857=EPSG3857,CRS.EPSG900913=EPSG900913,CRS.EPSG4326=EPSG4326,CRS.Simple=Simple,Evented.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(t){return t.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(t){return t&&t.removeLayer(this),this},getPane:function(t){return this._map.getPane(t?this.options[t]||t:this.options.pane)},addInteractiveTarget:function(t){return this._map._targets[stamp(t)]=this},removeInteractiveTarget:function(t){return delete this._map._targets[stamp(t)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(t){var e,i=t.target;i.hasLayer(this)&&(this._map=i,this._zoomAnimated=i._zoomAnimated,this.getEvents&&(e=this.getEvents(),i.on(e,this),this.once("remove",function(){i.off(e,this)},this)),this.onAdd(i),this.fire("add"),i.fire("layeradd",{layer:this}))}})),LayerGroup=(Map$1.include({addLayer:function(t){var e;if(t._layerAdd)return e=stamp(t),this._layers[e]||((this._layers[e]=t)._mapToAdd=this,t.beforeAdd&&t.beforeAdd(this),this.whenReady(t._layerAdd,t)),this;throw new Error("The provided object is not a Layer.")},removeLayer:function(t){var e=stamp(t);return this._layers[e]&&(this._loaded&&t.onRemove(this),delete this._layers[e],this._loaded&&(this.fire("layerremove",{layer:t}),t.fire("remove")),t._map=t._mapToAdd=null),this},hasLayer:function(t){return stamp(t)in this._layers},eachLayer:function(t,e){for(var i in this._layers)t.call(e,this._layers[i]);return this},_addLayers:function(t){for(var e=0,i=(t=t?isArray(t)?t:[t]:[]).length;ethis._layersMaxZoom&&this.setZoom(this._layersMaxZoom),void 0===this.options.minZoom&&this._layersMinZoom&&this.getZoom()t.y!=o.y>t.y&&t.x<(o.x-i.x)*(t.y-i.y)/(o.y-i.y)+i.x&&(h=!h);return h||Polyline.prototype._containsPoint.call(this,t,!0)}}));function polygon(t,e){return new Polygon(t,e)}var GeoJSON=FeatureGroup.extend({initialize:function(t,e){setOptions(this,e),this._layers={},t&&this.addData(t)},addData:function(t){var e,i,o,n=isArray(t)?t:t.features;if(n){for(e=0,i=n.length;es.x&&(a=i.x+r-s.x+n.x),i.x-a-o.x<(r=0)&&(a=i.x-o.x),i.y+e+n.y>s.y&&(r=i.y+e-s.y+n.y),i.y-r-o.y<0&&(r=i.y-o.y),(a||r)&&(this.options.keepInView&&(this._autopanning=!0),t.fire("autopanstart").panBy([a,r]))))},_getAnchor:function(){return toPoint$1(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}})),Tooltip=(Map$1.mergeOptions({closePopupOnClick:!0}),Map$1.include({openPopup:function(t,e,i){return this._initOverlay(Popup,t,e,i).openOn(this),this},closePopup:function(t){return(t=arguments.length?t:this._popup)&&t.close(),this}}),Layer.include({bindPopup:function(t,e){return this._popup=this._initOverlay(Popup,this._popup,t,e),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(t){return this._popup&&(this instanceof FeatureGroup||(this._popup._source=this),this._popup._prepareOpen(t||this._latlng))&&this._popup.openOn(this._map),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return!!this._popup&&this._popup.isOpen()},setPopupContent:function(t){return this._popup&&this._popup.setContent(t),this},getPopup:function(){return this._popup},_openPopup:function(t){var e;this._popup&&this._map&&(stop(t),e=t.layer||t.target,this._popup._source!==e||e instanceof Path$1?(this._popup._source=e,this.openPopup(t.latlng)):this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(t.latlng))},_movePopup:function(t){this._popup.setLatLng(t.latlng)},_onKeyPress:function(t){13===t.originalEvent.keyCode&&this._openPopup(t)}}),DivOverlay.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(t){DivOverlay.prototype.onAdd.call(this,t),this.setOpacity(this.options.opacity),t.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(t){DivOverlay.prototype.onRemove.call(this,t),t.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var t=DivOverlay.prototype.getEvents.call(this);return this.options.permanent||(t.preclick=this.close),t},_initLayout:function(){var t="leaflet-tooltip "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=create$1("div",t),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+stamp(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(t){var e,i=this._map,o=this._container,n=i.latLngToContainerPoint(i.getCenter()),i=i.layerPointToContainerPoint(t),s=this.options.direction,a=o.offsetWidth,r=o.offsetHeight,l=toPoint$1(this.options.offset),h=this._getAnchor(),i="top"===s?(e=a/2,r):"bottom"===s?(e=a/2,0):(e="center"===s?a/2:"right"===s?0:"left"===s?a:i.xthis.options.maxZoom||othis.options.maxZoom||void 0!==this.options.minZoom&&ni.max.x)||!e.wrapLat&&(t.yi.max.y))return!1}return!this.options.bounds||(e=this._tileCoordsToBounds(t),toLatLngBounds(this.options.bounds).overlaps(e))},_keyToBounds:function(t){return this._tileCoordsToBounds(this._keyToTileCoords(t))},_tileCoordsToNwSe:function(t){var e=this._map,i=this.getTileSize(),o=t.scaleBy(i),i=o.add(i);return[e.unproject(o,t.z),e.unproject(i,t.z)]},_tileCoordsToBounds:function(t){t=this._tileCoordsToNwSe(t),t=new LatLngBounds(t[0],t[1]);return t=this.options.noWrap?t:this._map.wrapLatLngBounds(t)},_tileCoordsToKey:function(t){return t.x+":"+t.y+":"+t.z},_keyToTileCoords:function(t){var t=t.split(":"),e=new Point$2(+t[0],+t[1]);return e.z=+t[2],e},_removeTile:function(t){var e=this._tiles[t];e&&(remove(e.el),delete this._tiles[t],this.fire("tileunload",{tile:e.el,coords:this._keyToTileCoords(t)}))},_initTile:function(t){addClass(t,"leaflet-tile");var e=this.getTileSize();t.style.width=e.x+"px",t.style.height=e.y+"px",t.onselectstart=falseFn,t.onmousemove=falseFn,Browser.ielt9&&this.options.opacity<1&&setOpacity(t,this.options.opacity)},_addTile:function(t,e){var i=this._getTilePos(t),o=this._tileCoordsToKey(t),n=this.createTile(this._wrapCoords(t),bind(this._tileReady,this,t));this._initTile(n),this.createTile.length<2&&requestAnimFrame(bind(this._tileReady,this,t,null,n)),setPosition(n,i),this._tiles[o]={el:n,coords:t,current:!0},e.appendChild(n),this.fire("tileloadstart",{tile:n,coords:t})},_tileReady:function(t,e,i){e&&this.fire("tileerror",{error:e,tile:i,coords:t});var o=this._tileCoordsToKey(t);(i=this._tiles[o])&&(i.loaded=+new Date,this._map._fadeAnimated?(setOpacity(i.el,0),cancelAnimFrame(this._fadeFrame),this._fadeFrame=requestAnimFrame(this._updateOpacity,this)):(i.active=!0,this._pruneTiles()),e||(addClass(i.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:i.el,coords:t})),this._noTilesToLoad())&&(this._loading=!1,this.fire("load"),Browser.ielt9||!this._map._fadeAnimated?requestAnimFrame(this._pruneTiles,this):setTimeout(bind(this._pruneTiles,this),250))},_getTilePos:function(t){return t.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(t){var e=new Point$2(this._wrapX?wrapNum(t.x,this._wrapX):t.x,this._wrapY?wrapNum(t.y,this._wrapY):t.y);return e.z=t.z,e},_pxBoundsToTileRange:function(t){var e=this.getTileSize();return new Bounds(t.min.unscaleBy(e).floor(),t.max.unscaleBy(e).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var t in this._tiles)if(!this._tiles[t].loaded)return!1;return!0}}),TileLayer=GridLayer.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(t,e){this._url=t,(e=setOptions(this,e)).detectRetina&&Browser.retina&&0{try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(t){return document.createElement("')}}catch(t){}return function(t){return document.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}})(),vmlMixin={_initContainer:function(){this._container=create$1("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(Renderer.prototype._update.call(this),this.fire("update"))},_initPath:function(t){var e=t._container=vmlCreate("shape");addClass(e,"leaflet-vml-shape "+(this.options.className||"")),e.coordsize="1 1",t._path=vmlCreate("path"),e.appendChild(t._path),this._updateStyle(t),this._layers[stamp(t)]=t},_addPath:function(t){var e=t._container;this._container.appendChild(e),t.options.interactive&&t.addInteractiveTarget(e)},_removePath:function(t){var e=t._container;remove(e),t.removeInteractiveTarget(e),delete this._layers[stamp(t)]},_updateStyle:function(t){var e=t._stroke,i=t._fill,o=t.options,n=t._container;n.stroked=!!o.stroke,n.filled=!!o.fill,o.stroke?(e=e||(t._stroke=vmlCreate("stroke")),n.appendChild(e),e.weight=o.weight+"px",e.color=o.color,e.opacity=o.opacity,o.dashArray?e.dashStyle=isArray(o.dashArray)?o.dashArray.join(" "):o.dashArray.replace(/( *, *)/g," "):e.dashStyle="",e.endcap=o.lineCap.replace("butt","flat"),e.joinstyle=o.lineJoin):e&&(n.removeChild(e),t._stroke=null),o.fill?(i=i||(t._fill=vmlCreate("fill")),n.appendChild(i),i.color=o.fillColor||o.color,i.opacity=o.fillOpacity):i&&(n.removeChild(i),t._fill=null)},_updateCircle:function(t){var e=t._point.round(),i=Math.round(t._radius),o=Math.round(t._radiusY||i);this._setPath(t,t._empty()?"M0 0":"AL "+e.x+","+e.y+" "+i+","+o+" 0,23592600")},_setPath:function(t,e){t._path.v=e},_bringToFront:function(t){toFront(t._container)},_bringToBack:function(t){toBack(t._container)}},create=Browser.vml?vmlCreate:svgCreate,SVG=Renderer.extend({_initContainer:function(){this._container=create("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=create("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){remove(this._container),off(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){var t,e,i;this._map._animatingZoom&&this._bounds||(Renderer.prototype._update.call(this),e=(t=this._bounds).getSize(),i=this._container,this._svgSize&&this._svgSize.equals(e)||(this._svgSize=e,i.setAttribute("width",e.x),i.setAttribute("height",e.y)),setPosition(i,t.min),i.setAttribute("viewBox",[t.min.x,t.min.y,e.x,e.y].join(" ")),this.fire("update"))},_initPath:function(t){var e=t._path=create("path");t.options.className&&addClass(e,t.options.className),t.options.interactive&&addClass(e,"leaflet-interactive"),this._updateStyle(t),this._layers[stamp(t)]=t},_addPath:function(t){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(t._path),t.addInteractiveTarget(t._path)},_removePath:function(t){remove(t._path),t.removeInteractiveTarget(t._path),delete this._layers[stamp(t)]},_updatePath:function(t){t._project(),t._update()},_updateStyle:function(t){var e=t._path,t=t.options;e&&(t.stroke?(e.setAttribute("stroke",t.color),e.setAttribute("stroke-opacity",t.opacity),e.setAttribute("stroke-width",t.weight),e.setAttribute("stroke-linecap",t.lineCap),e.setAttribute("stroke-linejoin",t.lineJoin),t.dashArray?e.setAttribute("stroke-dasharray",t.dashArray):e.removeAttribute("stroke-dasharray"),t.dashOffset?e.setAttribute("stroke-dashoffset",t.dashOffset):e.removeAttribute("stroke-dashoffset")):e.setAttribute("stroke","none"),t.fill?(e.setAttribute("fill",t.fillColor||t.color),e.setAttribute("fill-opacity",t.fillOpacity),e.setAttribute("fill-rule",t.fillRule||"evenodd")):e.setAttribute("fill","none"))},_updatePoly:function(t,e){this._setPath(t,pointsToPath(t._parts,e))},_updateCircle:function(t){var e=t._point,i=Math.max(Math.round(t._radius),1),o="a"+i+","+(Math.max(Math.round(t._radiusY),1)||i)+" 0 1,0 ",e=t._empty()?"M0 0":"M"+(e.x-i)+","+e.y+o+2*i+",0 "+o+2*-i+",0 ";this._setPath(t,e)},_setPath:function(t,e){t._path.setAttribute("d",e)},_bringToFront:function(t){toFront(t._path)},_bringToBack:function(t){toBack(t._path)}});function svg(t){return Browser.svg||Browser.vml?new SVG(t):null}Browser.vml&&SVG.include(vmlMixin),Map$1.include({getRenderer:function(t){t=(t=t.options.renderer||this._getPaneRenderer(t.options.pane)||this.options.renderer||this._renderer)||(this._renderer=this._createRenderer());return this.hasLayer(t)||this.addLayer(t),t},_getPaneRenderer:function(t){var e;return"overlayPane"!==t&&void 0!==t&&(void 0===(e=this._paneRenderers[t])&&(e=this._createRenderer({pane:t}),this._paneRenderers[t]=e),e)},_createRenderer:function(t){return this.options.preferCanvas&&canvas(t)||svg(t)}});var Rectangle=Polygon.extend({initialize:function(t,e){Polygon.prototype.initialize.call(this,this._boundsToLatLngs(t),e)},setBounds:function(t){return this.setLatLngs(this._boundsToLatLngs(t))},_boundsToLatLngs:function(t){return[(t=toLatLngBounds(t)).getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}});function rectangle(t,e){return new Rectangle(t,e)}SVG.create=create,SVG.pointsToPath=pointsToPath,GeoJSON.geometryToLayer=geometryToLayer,GeoJSON.coordsToLatLng=coordsToLatLng,GeoJSON.coordsToLatLngs=coordsToLatLngs,GeoJSON.latLngToCoords=latLngToCoords,GeoJSON.latLngsToCoords=latLngsToCoords,GeoJSON.getFeature=getFeature,GeoJSON.asFeature=asFeature,Map$1.mergeOptions({boxZoom:!0});var BoxZoom=Handler.extend({initialize:function(t){this._map=t,this._container=t._container,this._pane=t._panes.overlayPane,this._resetStateTimeout=0,t.on("unload",this._destroy,this)},addHooks:function(){on(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){off(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){remove(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){0!==this._resetStateTimeout&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(t){if(!t.shiftKey||1!==t.which&&1!==t.button)return!1;this._clearDeferredResetState(),this._resetState(),disableTextSelection(),disableImageDrag(),this._startPoint=this._map.mouseEventToContainerPoint(t),on(document,{contextmenu:stop,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(t){this._moved||(this._moved=!0,this._box=create$1("div","leaflet-zoom-box",this._container),addClass(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(t);var t=new Bounds(this._point,this._startPoint),e=t.getSize();setPosition(this._box,t.min),this._box.style.width=e.x+"px",this._box.style.height=e.y+"px"},_finish:function(){this._moved&&(remove(this._box),removeClass(this._container,"leaflet-crosshair")),enableTextSelection(),enableImageDrag(),off(document,{contextmenu:stop,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(t){1!==t.which&&1!==t.button||(this._finish(),this._moved&&(this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(bind(this._resetState,this),0),t=new LatLngBounds(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point)),this._map.fitBounds(t).fire("boxzoomend",{boxZoomBounds:t})))},_onKeyDown:function(t){27===t.keyCode&&(this._finish(),this._clearDeferredResetState(),this._resetState())}}),DoubleClickZoom=(Map$1.addInitHook("addHandler","boxZoom",BoxZoom),Map$1.mergeOptions({doubleClickZoom:!0}),Handler.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(t){var e=this._map,i=e.getZoom(),o=e.options.zoomDelta,i=t.originalEvent.shiftKey?i-o:i+o;"center"===e.options.doubleClickZoom?e.setZoom(i):e.setZoomAround(t.containerPoint,i)}})),Drag=(Map$1.addInitHook("addHandler","doubleClickZoom",DoubleClickZoom),Map$1.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0}),Handler.extend({addHooks:function(){var t;this._draggable||(t=this._map,this._draggable=new Draggable(t._mapPane,t._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),t.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),t.on("zoomend",this._onZoomEnd,this),t.whenReady(this._onZoomEnd,this))),addClass(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){removeClass(this._map._container,"leaflet-grab"),removeClass(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var t,e=this._map;e._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity?(t=toLatLngBounds(this._map.options.maxBounds),this._offsetLimit=toBounds(this._map.latLngToContainerPoint(t.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(t.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))):this._offsetLimit=null,e.fire("movestart").fire("dragstart"),e.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(t){var e,i;this._map.options.inertia&&(e=this._lastTime=+new Date,i=this._lastPos=this._draggable._absPos||this._draggable._newPos,this._positions.push(i),this._times.push(e),this._prunePositions(e)),this._map.fire("move",t).fire("drag",t)},_prunePositions:function(t){for(;1e.max.x&&(t.x=this._viscousLimit(t.x,e.max.x)),t.y>e.max.y&&(t.y=this._viscousLimit(t.y,e.max.y)),this._draggable._newPos=this._draggable._startPos.add(t))},_onPreDragWrap:function(){var t=this._worldWidth,e=Math.round(t/2),i=this._initialWorldOffset,o=this._draggable._newPos.x,n=(o-e+i)%t+e-i,o=(o+e+i)%t-e-i,t=Math.abs(n+i)e.getMaxZoom()&&1=this.text.length)return;t=this.text[this.place++]}switch(this.state){case NEUTRAL:return this.neutral(t);case KEYWORD:return this.keyword(t);case QUOTED:return this.quoted(t);case AFTERQUOTE:return this.afterquote(t);case NUMBER:return this.number(t);case ENDED:return}},Parser.prototype.afterquote=function(t){if('"'===t)this.word+='"',this.state=QUOTED;else{if(!endThings.test(t))throw new Error("havn't handled \""+t+'" in afterquote yet, index '+this.place);this.word=this.word.trim(),this.afterItem(t)}},Parser.prototype.afterItem=function(t){","===t?(null!==this.word&&this.currentObject.push(this.word),this.word=null,this.state=NEUTRAL):"]"===t&&(this.level--,null!==this.word&&(this.currentObject.push(this.word),this.word=null),this.state=NEUTRAL,this.currentObject=this.stack.pop(),this.currentObject||(this.state=ENDED))},Parser.prototype.number=function(t){if(digets.test(t))this.word+=t;else{if(!endThings.test(t))throw new Error("havn't handled \""+t+'" in number yet, index '+this.place);this.word=parseFloat(this.word),this.afterItem(t)}},Parser.prototype.quoted=function(t){'"'===t?this.state=AFTERQUOTE:this.word+=t},Parser.prototype.keyword=function(t){var e;if(keyword.test(t))this.word+=t;else if("["===t)(e=[]).push(this.word),this.level++,null===this.root?this.root=e:this.currentObject.push(e),this.stack.push(this.currentObject),this.currentObject=e,this.state=NEUTRAL;else{if(!endThings.test(t))throw new Error("havn't handled \""+t+'" in keyword yet, index '+this.place);this.afterItem(t)}},Parser.prototype.neutral=function(t){if(latin.test(t))this.word=t,this.state=KEYWORD;else if('"'===t)this.word="",this.state=QUOTED;else if(digets.test(t))this.word=t,this.state=NUMBER;else{if(!endThings.test(t))throw new Error("havn't handled \""+t+'" in neutral yet, index '+this.place);this.afterItem(t)}},Parser.prototype.output=function(){for(;this.placeMath.PI&&(o-=2*Math.PI),t=Math.sin(n),n=Math.cos(n),{x:((i=i/Math.sqrt(1-e*(t*t)))+s)*n*Math.cos(o),y:(i+s)*n*Math.sin(o),z:(i*(1-e)+s)*t}}function geocentricToGeodetic(t,e,i,o){var n,s,a,r,l,h,c,u,d,m,p,_=1e-12,f=t.x,g=t.y,y=t.z||0,v=Math.sqrt(f*f+g*g),b=Math.sqrt(f*f+g*g+y*y);if(v/i<_){if(m=0,b/i<_)return p=-o,{x:t.x,y:t.y,z:t.z}}else m=Math.atan2(g,f);for(n=y/b,r=(s=v/b)*(1-e)*(a=1/Math.sqrt(1-e*(2-e)*s*s)),l=n*a,d=0;d++,u=e*(u=i/Math.sqrt(1-e*l*l))/(u+(p=v*r+y*l-u*(1-e*l*l))),u=(c=n*(a=1/Math.sqrt(1-u*(2-u)*s*s)))*r-(h=s*(1-u)*a)*l,r=h,l=c,1e-24=e.lim[0]||h<0||h>=e.lim[1]||(h=h*e.lim[0]+l,l=e.cvs[h][0],i=e.cvs[h][1],r=e.cvs[++h][0],o=e.cvs[h][1],h+=e.lim[0],n=e.cvs[h][0],s=e.cvs[h][1],a=e.cvs[--h][0],e=e.cvs[h][1],u.x=(h=(1-c)*(1-t))*l+(l=c*(1-t))*r+(r=(1-c)*t)*a+(a=c*t)*n,u.y=h*i+l*o+r*e+a*s),u}function adjust_axis(t,e,i){for(var o,n,s=i.x,a=i.y,r=i.z||0,l={},h=0;h<3;h++)if(!e||2!==h||void 0!==i.z)switch(n=0===h?(o=s,-1!=="ew".indexOf(t.axis[h])?"x":"y"):1===h?(o=a,-1!=="ns".indexOf(t.axis[h])?"y":"x"):(o=r,"z"),t.axis[h]){case"e":l[n]=o;break;case"w":l[n]=-o;break;case"n":l[n]=o;break;case"s":l[n]=-o;break;case"u":void 0!==i[n]&&(l.z=o);break;case"d":void 0!==i[n]&&(l.z=-o);break;default:return null}return l}function common(t){var e={x:t[0],y:t[1]};return 2EPSLN?Math.tan(i):0,h=Math.pow(h,2),c=Math.pow(h,2),u=1-this.es*Math.pow(o,2),u=(s/=Math.sqrt(u),pj_mlfn(i,o,n,this.en)),d=this.a*(this.k0*s*(1+a/6*(1-h+r+a/20*(5-18*h+c+14*r-58*h*r+a/42*(61+179*c-c*h-479*h)))))+this.x0,u=this.a*(this.k0*(u-this.ml0+o*e*s/2*(1+a/12*(5-h+9*r+4*l+a/30*(61+c-58*h+270*r-330*h*r+a/56*(1385+543*c-c*h-3111*h))))))+this.y0;else{o=n*Math.sin(e);if(Math.abs(Math.abs(o)-1)EPSLN?Math.tan(r):0,a=this.ep2*Math.pow(e,2),n=Math.pow(a,2),i=Math.pow(h,2),o=Math.pow(i,2),l=1-this.es*Math.pow(s,2),s=c*Math.sqrt(l)/this.k0,h=r-(l*=h)*(r=Math.pow(s,2))/(1-this.es)*.5*(1-r/12*(5+3*i-9*a*i+a-4*n-r/30*(61+90*i-252*a*i+45*o+46*a-r/56*(1385+3633*i+4095*o+1574*o*i)))),adjust_lon(this.long0+s*(1-r/6*(1+2*i+a-r/20*(5+28*i+24*o+8*a*i+6*a-r/42*(61+662*i+1320*o+720*o*i))))/e)):(h=HALF_PI*sign(u),0)):(s=.5*((n=Math.exp(c/this.k0))-1/n),a=this.lat0+u/this.k0,r=Math.cos(a),l=Math.sqrt((1-Math.pow(r,2))/(1+Math.pow(s,2))),h=Math.asin(l),u<0&&(h=-h),0==s&&0===r?0:adjust_lon(Math.atan2(s,r)+this.long0)),t.x=o,t.y=h,t}var names$v=["Fast_Transverse_Mercator","Fast Transverse Mercator"],tmerc={init:init$v,forward:forward$t,inverse:inverse$t,names:names$v};function sinh(t){t=Math.exp(t);return(t-1/t)/2}function hypot(t,e){t=Math.abs(t),e=Math.abs(e);var i=Math.max(t,e),t=Math.min(t,e)/(i||1);return i*Math.sqrt(1+Math.pow(t,2))}function log1py(t){var e=1+t,i=e-1;return 0==i?t:t*Math.log(e)/i}function asinhy(t){var e=log1py((e=Math.abs(t))*(1+e/(hypot(1,e)+1)));return t<0?-e:e}function gatg(t,e){for(var i,o=2*Math.cos(2*e),n=t.length-1,s=t[n],a=0;0<=--n;)i=o*s-a+t[n],a=s,s=i;return e+i*Math.sin(2*e)}function clens(t,e){for(var i,o=2*Math.cos(e),n=t.length-1,s=t[n],a=0;0<=--n;)i=o*s-a+t[n],a=s,s=i;return Math.sin(e)*i}function cosh(t){t=Math.exp(t);return(t+1/t)/2}function clens_cmplx(t,e,i){for(var o,n,s=Math.sin(e),e=Math.cos(e),a=sinh(i),i=cosh(i),r=2*e*i,l=-2*s*a,h=t.length-1,c=t[h],u=0,d=0,m=0;0<=--h;)o=d,n=u,c=r*(d=c)-o-l*(u=m)+t[h],m=l*d-n+r*u;return[(r=s*i)*c-(l=e*a)*m,r*m+l*c]}function init$u(){if(!this.approx&&(isNaN(this.es)||this.es<=0))throw new Error('Incorrect elliptical usage. Try using the +approx option in the proj string, or PROJECTION["Fast_Transverse_Mercator"] in the WKT.');this.approx&&(tmerc.init.apply(this),this.forward=tmerc.forward,this.inverse=tmerc.inverse),this.x0=void 0!==this.x0?this.x0:0,this.y0=void 0!==this.y0?this.y0:0,this.long0=void 0!==this.long0?this.long0:0,this.lat0=void 0!==this.lat0?this.lat0:0,this.cgb=[],this.cbg=[],this.utg=[],this.gtu=[];var t=this.es/(1+Math.sqrt(1-this.es)),t=t/(2-t),e=t,t=(this.cgb[0]=t*(2+t*(-2/3+t*(t*(116/45+t*(26/45+-2854/675*t))-2))),this.cbg[0]=t*(t*(2/3+t*(4/3+t*(-82/45+t*(32/45+4642/4725*t))))-2),this.cgb[1]=(e*=t)*(7/3+t*(t*(-227/45+t*(2704/315+2323/945*t))-1.6)),this.cbg[1]=e*(5/3+t*(-16/15+t*(-13/9+t*(904/315+-1522/945*t)))),this.cgb[2]=(e*=t)*(56/15+t*(-136/35+t*(-1262/105+73814/2835*t))),this.cbg[2]=e*(-26/15+t*(34/21+t*(1.6+-12686/2835*t))),this.cgb[3]=(e*=t)*(4279/630+t*(-332/35+-399572/14175*t)),this.cbg[3]=e*(1237/630+t*(-24832/14175*t-2.4)),this.cgb[4]=(e*=t)*(4174/315+-144838/6237*t),this.cbg[4]=e*(-734/315+109598/31185*t),this.cgb[5]=601676/22275*(e*=t),this.cbg[5]=444337/155925*e,e=Math.pow(t,2),this.Qn=this.k0/(1+t)*(1+e*(.25+e*(1/64+e/256))),this.utg[0]=t*(t*(2/3+t*(-37/96+t*(1/360+t*(81/512+-96199/604800*t))))-.5),this.gtu[0]=t*(.5+t*(-2/3+t*(5/16+t*(41/180+t*(-127/288+7891/37800*t))))),this.utg[1]=e*(-1/48+t*(-1/15+t*(437/1440+t*(-46/105+1118711/3870720*t)))),this.gtu[1]=e*(13/48+t*(t*(557/1440+t*(281/630+-1983433/1935360*t))-.6)),this.utg[2]=(e*=t)*(-17/480+t*(37/840+t*(209/4480+-5569/90720*t))),this.gtu[2]=e*(61/240+t*(-103/140+t*(15061/26880+167603/181440*t))),this.utg[3]=(e*=t)*(-4397/161280+t*(11/504+830251/7257600*t)),this.gtu[3]=e*(49561/161280+t*(-179/168+6601661/7257600*t)),this.utg[4]=(e*=t)*(-4583/161280+108847/3991680*t),this.gtu[4]=e*(34729/80640+-3418889/1995840*t),this.utg[5]=-.03233083094085698*(e*=t),this.gtu[5]=.6650675310896665*e,gatg(this.cbg,this.lat0));this.Zb=-this.Qn*(t+clens(this.gtu,2*t))}function forward$s(t){var e,i=adjust_lon(t.x-this.long0),o=t.y,o=gatg(this.cbg,o),n=Math.sin(o),s=Math.cos(o),a=Math.sin(i),r=Math.cos(i),a=(o=Math.atan2(n,r*s),i=Math.atan2(a*s,hypot(n,s*r)),i=asinhy(Math.tan(i)),clens_cmplx(this.gtu,2*o,2*i));return o+=a[0],i+=a[1],n=Math.abs(i)<=2.623395162778?(e=this.a*(this.Qn*i)+this.x0,this.a*(this.Qn*o+this.Zb)+this.y0):e=1/0,t.x=e,t.y=n,t}function inverse$s(t){var e,i,o,n,s=(t.x-this.x0)*(1/this.a),a=(t.y-this.y0)*(1/this.a);return a=(a-this.Zb)/this.Qn,s/=this.Qn,n=Math.abs(s)<=2.623395162778?(a+=(o=clens_cmplx(this.utg,2*a,2*s))[0],s+=o[1],s=Math.atan(sinh(s)),o=Math.sin(a),e=Math.cos(a),n=Math.sin(s),i=Math.cos(s),a=Math.atan2(o*i,hypot(n,i*e)),o=adjust_lon((s=Math.atan2(n,i*e))+this.long0),gatg(this.cgb,a)):o=1/0,t.x=o,t.y=n,t}var names$u=["Extended_Transverse_Mercator","Extended Transverse Mercator","etmerc","Transverse_Mercator","Transverse Mercator","Gauss Kruger","Gauss_Kruger","tmerc"],etmerc={init:init$u,forward:forward$s,inverse:inverse$s,names:names$u};function adjust_zone(t,e){if(void 0===t){if((t=Math.floor(30*(adjust_lon(e)+Math.PI)/Math.PI)+1)<0)return 0;if(60EPSLN&&(this.k0=.5*this.cons*msfnz(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts))/tsfnz(this.e,this.con*this.lat_ts,this.con*Math.sin(this.lat_ts))),this.ms1=msfnz(this.e,this.sinlat0,this.coslat0),this.X0=2*Math.atan(this.ssfn_(this.lat0,this.sinlat0,this.e))-HALF_PI,this.cosX0=Math.cos(this.X0),this.sinX0=Math.sin(this.X0))}function forward$p(t){var e,i,o=t.x,n=t.y,s=Math.sin(n),a=Math.cos(n),r=adjust_lon(o-this.long0);return Math.abs(Math.abs(o-this.long0)-Math.PI)<=EPSLN&&Math.abs(n+this.lat0)<=EPSLN?(t.x=NaN,t.y=NaN):this.sphere?(e=2*this.k0/(1+this.sinlat0*s+this.coslat0*a*Math.cos(r)),t.x=this.a*e*a*Math.sin(r)+this.x0,t.y=this.a*e*(this.coslat0*s-this.sinlat0*a*Math.cos(r))+this.y0):(a=2*Math.atan(this.ssfn_(n,s,this.e))-HALF_PI,i=Math.cos(a),a=Math.sin(a),Math.abs(this.coslat0)<=EPSLN?(n=tsfnz(this.e,n*this.con,this.con*s),s=2*this.a*this.k0*n/this.cons,t.x=this.x0+s*Math.sin(o-this.long0),t.y=this.y0-this.con*s*Math.cos(o-this.long0)):(Math.abs(this.sinlat0)EPSLN?(o=Math.sin(this.lat0),e=Math.cos(this.lat0),t=1-this.es*o*o,this.B=e*e,this.B=Math.sqrt(1+this.es*this.B*this.B/p),this.A=this.B*this.k0*_/t,(i=(e=this.B*_/(e*Math.sqrt(t)))*e-1)<=0?i=0:(i=Math.sqrt(i),this.lat0<0&&(i=-i)),this.E=i+=e,this.E*=Math.pow(tsfnz(this.e,this.lat0,o),this.B)):(this.B=1/_,this.A=this.k0,this.E=e=i=1),d||m?(d?(n=Math.asin(Math.sin(u)/e),m||(s=u)):(n=s,u=Math.asin(e*Math.sin(n))),this.lam0=a-Math.asin(.5*(i-1/i)*Math.tan(n))/this.B):(p=Math.pow(tsfnz(this.e,h,Math.sin(h)),this.B),o=Math.pow(tsfnz(this.e,c,Math.sin(c)),this.B),i=this.E/p,_=(o-p)/(o+p),d=this.E*this.E,(t=r-l)<-Math.pi?l-=TWO_PI:t>Math.pi&&(l+=TWO_PI),this.lam0=adjust_lon(.5*(r+l)-Math.atan((d-o*p)/(d+o*p)*Math.tan(.5*this.B*(r-l))/_)/this.B),n=Math.atan(2*Math.sin(this.B*adjust_lon(r-this.lam0))/(i-1/i)),s=u=Math.asin(e*Math.sin(n))),this.singam=Math.sin(n),this.cosgam=Math.cos(n),this.sinrot=Math.sin(s),this.cosrot=Math.cos(s),this.rB=1/this.B,this.ArB=this.A*this.rB,this.BrA=1/this.ArB,this.A,this.B,this.no_off?this.u_0=0:(this.u_0=Math.abs(this.ArB*Math.atan(Math.sqrt(e*e-1)/Math.cos(u))),this.lat0<0&&(this.u_0=-this.u_0)),i=.5*n,this.v_pole_n=this.ArB*Math.log(Math.tan(FORTPI-i)),this.v_pole_s=this.ArB*Math.log(Math.tan(FORTPI+i))}function forward$n(t){var e,i,o,n,s={};if(t.x=t.x-this.lam0,Math.abs(Math.abs(t.y)-HALF_PI)>EPSLN){if(o=.5*((n=this.E/Math.pow(tsfnz(this.e,t.y,Math.sin(t.y)),this.B))-(i=1/n)),n=.5*(n+i),e=Math.sin(this.B*t.x),n=(o*this.singam-e*this.cosgam)/n,Math.abs(Math.abs(n)-1)EPSLN?this.ns=Math.log(e/o)/Math.log(i/n):this.ns=t,isNaN(this.ns)&&(this.ns=t),this.f0=e/(this.ns*Math.pow(i,this.ns)),this.rh=this.a*this.f0*Math.pow(s,this.ns),this.title)||(this.title="Lambert Conformal Conic")}function forward$m(t){var e,i=t.x,o=t.y,n=(Math.abs(2*Math.abs(o)-Math.PI)<=EPSLN&&(o=sign(o)*(HALF_PI-2*EPSLN)),Math.abs(Math.abs(o)-HALF_PI));if(EPSLNEPSLN?this.ns0=(this.ms1*this.ms1-this.ms2*this.ms2)/(this.qs2-this.qs1):this.ns0=this.con,this.c=this.ms1*this.ms1+this.ns0*this.qs1,this.rh=this.a*Math.sqrt(this.c-this.ns0*this.qs0)/this.ns0)}function forward$i(t){var e=t.x,i=t.y,i=(this.sin_phi=Math.sin(i),this.cos_phi=Math.cos(i),qsfnz(this.e3,this.sin_phi)),i=this.a*Math.sqrt(this.c-this.ns0*i)/this.ns0,e=this.ns0*adjust_lon(e-this.long0),o=i*Math.sin(e)+this.x0,i=this.rh-i*Math.cos(e)+this.y0;return t.x=o,t.y=i,t}function inverse$i(t){var e,i,o;return t.x-=this.x0,t.y=this.rh-t.y+this.y0,o=0<=this.ns0?(i=Math.sqrt(t.x*t.x+t.y*t.y),1):(i=-Math.sqrt(t.x*t.x+t.y*t.y),-1),(e=0)!==i&&(e=Math.atan2(o*t.x,o*t.y)),o=i*this.ns0/this.a,o=this.sphere?Math.asin((this.c-o*o)/(2*this.ns0)):(i=(this.c-o*o)/this.ns0,this.phi1z(this.e3,i)),i=adjust_lon(e/this.ns0+this.long0),t.x=i,t.y=o,t}function phi1z(t,e){var i,o,n,s=asinz(.5*e);if(t2*HALF_PI*this.a?void 0:(n=l/this.a,r=Math.sin(n),n=Math.cos(n),e=this.long0,Math.abs(l)<=EPSLN?i=this.lat0:(i=asinz(n*this.sin_p12+t.y*r*this.cos_p12/l),a=Math.abs(this.lat0)-HALF_PI,e=Math.abs(a)<=EPSLN?0<=this.lat0?adjust_lon(this.long0+Math.atan2(t.x,-t.y)):adjust_lon(this.long0-Math.atan2(-t.x,t.y)):adjust_lon(this.long0+Math.atan2(t.x*r,l*this.cos_p12*n-t.y*this.sin_p12*r))),t.x=e,t.y=i,t):(a=e0fn(this.es),n=e1fn(this.es),r=e2fn(this.es),s=e3fn(this.es),Math.abs(this.sin_p12-1)<=EPSLN?(i=imlfn(((o=this.a*mlfn(a,n,r,s,HALF_PI))-(l=Math.sqrt(t.x*t.x+t.y*t.y)))/this.a,a,n,r,s),e=adjust_lon(this.long0+Math.atan2(t.x,-1*t.y))):Math.abs(this.sin_p12+1)<=EPSLN?(o=this.a*mlfn(a,n,r,s,HALF_PI),i=imlfn(((l=Math.sqrt(t.x*t.x+t.y*t.y))-o)/this.a,a,n,r,s),e=adjust_lon(this.long0+Math.atan2(t.x,t.y))):(l=Math.sqrt(t.x*t.x+t.y*t.y),o=Math.atan2(t.x,t.y),a=gN(this.a,this.e,this.sin_p12),n=Math.cos(o),s=-(r=this.e*this.cos_p12*n)*r/(1-this.es),r=3*this.es*(1-s)*this.sin_p12*this.cos_p12*n/(1-this.es),r=1-s*(a=(l=l/a)-s*(1+s)*Math.pow(l,3)/6-r*(1+3*s)*Math.pow(l,4)/24)*a/2-l*a*a*a/6,s=Math.asin(this.sin_p12*Math.cos(a)+this.cos_p12*Math.sin(a)*n),e=adjust_lon(this.long0+Math.asin(Math.sin(o)*Math.sin(a)/Math.cos(s))),l=Math.sin(s),i=Math.atan2((l-this.es*r*this.sin_p12)*Math.tan(s),l*(1-this.es))),t.x=e,t.y=i,t)}var names$8=["Azimuthal_Equidistant","aeqd"],aeqd={init:init$8,forward:forward$7,inverse:inverse$7,names:names$8};function init$7(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=Math.cos(this.lat0)}function forward$6(t){var e,i,o=t.x,n=t.y,o=adjust_lon(o-this.long0),s=Math.sin(n),n=Math.cos(n),a=Math.cos(o),r=this.sin_p14*s+this.cos_p14*n*a;return(0=HALF_PI-FORTPI/2?this.face=FACE_ENUM.TOP:this.lat0<=-(HALF_PI-FORTPI/2)?this.face=FACE_ENUM.BOTTOM:Math.abs(this.long0)<=FORTPI?this.face=FACE_ENUM.FRONT:Math.abs(this.long0)<=HALF_PI+FORTPI?this.face=0=Math.abs(t.y)?r.value=AREA_ENUM.AREA_0:0<=t.y&&t.y>=Math.abs(t.x)?(r.value=AREA_ENUM.AREA_1,e-=HALF_PI):t.x<0&&-t.x>=Math.abs(t.y)?(r.value=AREA_ENUM.AREA_2,e=e<0?e+SPI:e-SPI):(r.value=AREA_ENUM.AREA_3,e+=HALF_PI),s=SPI/12*Math.tan(e),n=Math.sin(s)/(Math.cos(s)-1/Math.sqrt(2)),n=Math.atan(n),(o=1-(e=Math.cos(e))*e*(e=Math.tan(o))*e*(1-Math.cos(Math.atan(1/Math.cos(n)))))<-1?o=-1:1e.y)--i;else{if(!(COEFS_Y[i+1][0]<=e.y))break;++i}var o=COEFS_Y[i],n=newton_rapshon(function(t){return(poly3_val(o,t)-e.y)/poly3_der(o,t)},5*(e.y-o[0])/(COEFS_Y[i+1][0]-o[0]),EPSLN,100);e.x/=poly3_val(COEFS_X[i],n),e.y=(5*i+n)*D2R$1,t.y<0&&(e.y=-e.y)}return e.x=adjust_lon(e.x+this.long0),e}var names$5=["Robinson","robin"],robin={init:init$5,forward:forward$4,inverse:inverse$4,names:names$5};function init$4(){this.name="geocent"}function forward$3(t){return geodeticToGeocentric(t,this.es,this.a)}function inverse$3(t){return geocentricToGeodetic(t,this.es,this.a,this.b)}var names$4=["Geocentric","geocentric","geocent","Geocent"],geocent={init:init$4,forward:forward$3,inverse:inverse$3,names:names$4},mode={N_POLE:0,S_POLE:1,EQUIT:2,OBLIQ:3},params={h:{def:1e5,num:!0},azi:{def:0,num:!0,degrees:!0},tilt:{def:0,num:!0,degrees:!0},long0:{def:0,num:!0},lat0:{def:0,num:!0}};function init$3(){if(Object.keys(params).forEach(function(t){if(void 0===this[t])this[t]=params[t].def;else{if(params[t].num&&isNaN(this[t]))throw new Error("Invalid parameter value, must be numeric "+t+" = "+this[t]);params[t].num&&(this[t]=parseFloat(this[t]))}params[t].degrees&&(this[t]=this[t]*D2R$1)}.bind(this)),Math.abs(Math.abs(this.lat0)-HALF_PI)=HALF_PI?this.cphi1=0:this.cphi1=1/Math.tan(this.phi1),this.inverse=s_inv,this.forward=s_fwd)}function e_fwd(t){var e=adjust_lon(t.x-(this.long0||0)),i=t.y,o=this.am1+this.m1-pj_mlfn(i,n=Math.sin(i),i=Math.cos(i),this.en),n=i*e/(o*Math.sqrt(1-this.es*n*n));return t.x=o*Math.sin(n),t.y=this.am1-o*Math.cos(n),t.x=this.a*t.x+(this.x0||0),t.y=this.a*t.y+(this.y0||0),t}function e_inv(t){var e,i,o,n;if(t.x=(t.x-(this.x0||0))/this.a,t.y=(t.y-(this.y0||0))/this.a,i=hypot(t.x,t.y=this.am1-t.y),n=pj_inv_mlfn(this.am1+this.m1-i,this.es,this.en),(e=Math.abs(n))EPS10?(t.x=o*Math.sin(e=e*Math.cos(i)/o),t.y=this.cphi1-o*Math.cos(e)):t.x=t.y=0,t.x=this.a*t.x+(this.x0||0),t.y=this.a*t.y+(this.y0||0),t}function s_inv(t){t.x=(t.x-(this.x0||0))/this.a,t.y=(t.y-(this.y0||0))/this.a;var e=hypot(t.x,t.y=this.cphi1-t.y),i=this.cphi1+this.phi1-e;if(Math.abs(i)>HALF_PI)throw new Error;return e=Math.abs(Math.abs(i)-HALF_PI)<=EPS10?0:e*Math.atan2(t.x,t.y)/Math.cos(i),t.x=adjust_lon(e+(this.long0||0)),t.y=adjust_lat(i),t}var names=["bonne","Bonne (Werner lat_1=90)"],bonne={init:init,names:names};function includedProjections(t){t.Proj.projections.add(tmerc),t.Proj.projections.add(etmerc),t.Proj.projections.add(utm),t.Proj.projections.add(sterea),t.Proj.projections.add(stere),t.Proj.projections.add(somerc),t.Proj.projections.add(omerc),t.Proj.projections.add(lcc),t.Proj.projections.add(krovak),t.Proj.projections.add(cass),t.Proj.projections.add(laea),t.Proj.projections.add(aea),t.Proj.projections.add(gnom),t.Proj.projections.add(cea),t.Proj.projections.add(eqc),t.Proj.projections.add(poly),t.Proj.projections.add(nzmg),t.Proj.projections.add(mill),t.Proj.projections.add(sinu),t.Proj.projections.add(moll),t.Proj.projections.add(eqdc),t.Proj.projections.add(vandg),t.Proj.projections.add(aeqd),t.Proj.projections.add(ortho),t.Proj.projections.add(qsc),t.Proj.projections.add(robin),t.Proj.projections.add(geocent),t.Proj.projections.add(tpers),t.Proj.projections.add(geos),t.Proj.projections.add(eqearth),t.Proj.projections.add(bonne)}proj4.defaultDatum="WGS84",proj4.Proj=Projection,proj4.WGS84=new proj4.Proj("WGS84"),proj4.Point=Point$1,proj4.toPoint=common,proj4.defs=defs,proj4.nadgrid=nadgrid,proj4.transform=transform,proj4.mgrs=mgrs,proj4.version="__VERSION__",includedProjections(proj4);let Util={_convertAndFormatPCRS:function(e,i,t){if(!e||!i)return{};var o=[],n=[],s=[],a=[],r=i.options.crs.tile.bounds.max.y;for(let t=0;t{!e.inPlace&&i?n.parentElement.zoomTo(+i.lat,+i.lng,+i.z):e.inPlace||n.zoomTo(),a&&(n.opacity=a),s.getContainer().focus()})}},getBoundsFromMeta:function(t){if(!t)return null;let e,i=t instanceof ShadowRoot?":host":":scope",o=t.querySelector(i+" > map-meta[name=projection]")&&Util._metaContentToObject(t.querySelector(i+" > map-meta[name=projection]").getAttribute("content")).content.toUpperCase()||M.FALLBACK_PROJECTION;try{var n,s=t.querySelector(i+" > map-meta[name=extent]")&&Util._metaContentToObject(t.querySelector(i+" > map-meta[name=extent]").getAttribute("content")),a=s.zoom,r=Object.keys(s);for(let t=0;t map-meta[name=zoom]").getAttribute("content"))).min&&t.max&&t.value?{minZoom:+t.min,maxZoom:+t.max,minNativeZoom:+t.value,maxNativeZoom:+t.value}:t.min&&t.max?{minZoom:+t.min,maxZoom:+t.max}:t.min?{minZoom:+t.min}:t.max?{maxZoom:+t.max}:void 0):null},getZoomBounds:function(t,i){if(!t)return null;let o=100,n=0,s=t.querySelectorAll("map-feature"),e,a;for(let e=0;e';e.insertAdjacentHTML("beforeend",t),e.lastElementChild.whenReady().catch(()=>{e&&e.removeChild(e.lastChild),t=null})}catch(t){if(")|()|()|()|()|()|()|()|(