","http://www.w3.org/2000/svg"===(eu.firstChild&&eu.firstChild.namespaceURI));var t={ie:bi,ielt9:ao,edge:ot,webkit:nu,android:tu,android23:vf,androidStock:sr,opera:ki,chrome:yf,gecko:iu,safari:vo,phantom:pf,opera12:ft,win:hr,ie3d:wf,webkit3d:ru,gecko3d:ei,any3d:bf,mobile:oi,mobileWebkit:kf,mobileWebkit3d:df,msPointer:uu,pointer:fu,touch:yh,touchNative:yo,mobileOpera:ph,mobileGecko:wh,retina:bh,passiveEvents:kh,canvas:dh,svg:gf,vml:!gf&&function(){try{var t=document.createElement("div"),n=(t.innerHTML='',t.firstChild);return n.style.behavior="url(#default#VML)",n&&"object"==typeof n.adj}catch(t){return!1}}(),inlineSvg:eu,mac:0===navigator.platform.indexOf("Mac"),linux:0===navigator.platform.indexOf("Linux")},po=t.msPointer?"MSPointerDown":"pointerdown",wo=t.msPointer?"MSPointerMove":"pointermove",bo=t.msPointer?"MSPointerUp":"pointerup",ko=t.msPointer?"MSPointerCancel":"pointercancel",ne={touchstart:po,touchmove:wo,touchend:bo,touchcancel:ko},go={touchstart:function(n,t){t.MSPOINTER_TYPE_TOUCH&&t.pointerType===t.MSPOINTER_TYPE_TOUCH&&nt(t);ou(n,t)},touchmove:ou,touchend:ou,touchcancel:ou},di={},ns=!1;is=200;var te,gi,cr,su,hu,ie,re=au(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),lr=au(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),rs="webkitTransition"===lr||"OTransition"===lr?lr+"End":"transitionend";su="onselectstart"in document?(cr=function(){u(window,"selectstart",nt)},function(){a(window,"selectstart",nt)}):(gi=au(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]),cr=function(){var n;gi&&(n=document.documentElement.style,te=n[gi],n[gi]="none")},function(){gi&&(document.documentElement.style[gi]=te,te=void 0)});bi={__proto__:null,TRANSFORM:re,TRANSITION:lr,TRANSITION_END:rs,get:us,getStyle:ar,create:s,remove:w,empty:cu,toFront:nr,toBack:tr,hasClass:ue,addClass:f,removeClass:k,setClass:fe,getClass:lu,setOpacity:st,testProp:au,setTransform:si,setPosition:d,getPosition:hi,get disableTextSelection(){return cr},get enableTextSelection(){return su},disableImageDrag:ee,enableImageDrag:oe,preventOutline:se,restoreOutline:vu,getSizedParentNode:fs,getScale:he};lt="_leaflet_events";yu={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};hs=t.linux&&t.chrome?window.devicePixelRatio:t.mac?3*window.devicePixelRatio:0this.options.maxZoom)?this.setZoom(n):this},panInsideBounds:function(n,t){this._enforcingBounds=!0;var i=this.getCenter(),n=this._limitCenter(i,this._zoom,g(n));return i.equals(n)||this.panTo(n,t),this._enforcingBounds=!1,this},panInside:function(n,t){var r=i((t=t||{}).paddingTopLeft||t.padding||[0,0]),u=i(t.paddingBottomRight||t.padding||[0,0]),f=this.project(this.getCenter()),n=this.project(n),e=this.getPixelBounds(),r=rt([e.min.add(r),e.max.subtract(u)]),e=r.getSize();return r.contains(n)||(this._enforcingBounds=!0,u=n.subtract(r.getCenter()),r=r.extend(n).getSize().subtract(e),f.x+=u.x<0?-r.x:r.x,f.y+=u.y<0?-r.y:r.y,this.panTo(this.unproject(f),t),this._enforcingBounds=!1),this},invalidateSize:function(n){if(!this._loaded)return this;n=c({animate:!1,pan:!0},!0===n?{animate:!0}:n);var i=this.getSize(),r=(this._sizeChanged=!0,this._lastCenter=null,this.getSize()),t=i.divideBy(2).round(),u=r.divideBy(2).round(),t=t.subtract(u);return t.x||t.y?(n.animate&&n.pan?this.panBy(t):(n.pan&&this._rawPanBy(t),this.fire("move"),n.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(v(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:i,newSize:r})):this},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(n){var t,i;return n=this._locateOptions=c({timeout:1e4,watch:!1},n),"geolocation"in navigator?(t=v(this._handleGeolocationResponse,this),i=v(this._handleGeolocationError,this),n.watch?this._locationWatchId=navigator.geolocation.watchPosition(t,i,n):navigator.geolocation.getCurrentPosition(t,i,n)):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(n){var t;this._container._leaflet_id&&(t=n.code,n=n.message||(1===t?"permission denied":2===t?"position unavailable":"timeout"),this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:t,message:"Geolocation error: "+n+"."}))},_handleGeolocationResponse:function(n){if(this._container._leaflet_id){var i,t,r=new h(n.coords.latitude,n.coords.longitude),f=r.toBounds(2*n.coords.accuracy),u=this._locateOptions,e=(u.setView&&(i=this.getBoundsZoom(f),this.setView(r,u.maxZoom?Math.min(i,u.maxZoom):i)),{latlng:r,bounds:f,timestamp:n.timestamp});for(t in n.coords)"number"==typeof n.coords[t]&&(e[t]=n.coords[t]);this.fire("locationfound",e)}},addHandler:function(n,t){return t&&(t=this[n]=new t(this),this._handlers.push(t),this.options[n]&&t.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(n){this._container._leaflet_id=void 0;this._containerId=void 0}for(var n in void 0!==this._locationWatchId&&this.stopLocate(),this._stop(),w(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(et(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload"),this._layers)this._layers[n].remove();for(n in this._panes)w(this._panes[n]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(n,t){return t=s("div","leaflet-pane"+(n?" leaflet-"+n.replace("Pane","")+"-pane":""),t||this._mapPane),n&&(this._panes[n]=t),t},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var n=this.getPixelBounds();return new ut(this.unproject(n.getBottomLeft()),this.unproject(n.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(n,r,u){n=g(n);u=i(u||[0,0]);var f=this.getZoom()||0,s=this.getMinZoom(),h=this.getMaxZoom(),e=n.getNorthWest(),n=n.getSouthEast(),u=this.getSize().subtract(u),n=rt(this.project(n,f),this.project(e,f)).getSize(),e=t.any3d?this.options.zoomSnap:1,o=u.x/n.x,u=u.y/n.y,n=r?Math.max(o,u):Math.min(o,u),f=this.getScaleZoom(n,f);return e&&(f=Math.round(f/(e/100))*(e/100),f=r?Math.ceil(f/e)*e:Math.floor(f/e)*e),Math.max(s,Math.min(h,f))},getSize:function(){return this._size&&!this._sizeChanged||(this._size=new r(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(n,t){return n=this._getTopLeftPoint(n,t),new p(n,n.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(n){return this.options.crs.getProjectedBounds(void 0===n?this.getZoom():n)},getPane:function(n){return"string"==typeof n?this._panes[n]:n},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(n,t){var i=this.options.crs;return t=void 0===t?this._zoom:t,i.scale(n)/i.scale(t)},getScaleZoom:function(n,t){var i=this.options.crs,n=(t=void 0===t?this._zoom:t,i.zoom(n*i.scale(t)));return isNaN(n)?1/0:n},project:function(n,t){return t=void 0===t?this._zoom:t,this.options.crs.latLngToPoint(l(n),t)},unproject:function(n,t){return t=void 0===t?this._zoom:t,this.options.crs.pointToLatLng(i(n),t)},layerPointToLatLng:function(n){return n=i(n).add(this.getPixelOrigin()),this.unproject(n)},latLngToLayerPoint:function(n){return this.project(l(n))._round()._subtract(this.getPixelOrigin())},wrapLatLng:function(n){return this.options.crs.wrapLatLng(l(n))},wrapLatLngBounds:function(n){return this.options.crs.wrapLatLngBounds(g(n))},distance:function(n,t){return this.options.crs.distance(l(n),l(t))},containerPointToLayerPoint:function(n){return i(n).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(n){return i(n).add(this._getMapPanePos())},containerPointToLatLng:function(n){return n=this.containerPointToLayerPoint(i(n)),this.layerPointToLatLng(n)},latLngToContainerPoint:function(n){return this.layerPointToContainerPoint(this.latLngToLayerPoint(l(n)))},mouseEventToContainerPoint:function(n){return ss(n,this._container)},mouseEventToLayerPoint:function(n){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(n))},mouseEventToLatLng:function(n){return this.layerPointToLatLng(this.mouseEventToLayerPoint(n))},_initContainer:function(n){if(n=this._container=us(n),!n)throw new Error("Map container not found.");if(n._leaflet_id)throw new Error("Map container is already initialized.");u(n,"scroll",this._onScroll,this);this._containerId=o(n)},_initLayout:function(){var i=this._container,n=(this._fadeAnimated=this.options.fadeAnimation&&t.any3d,f(i,"leaflet-container"+(t.touch?" leaflet-touch":"")+(t.retina?" leaflet-retina":"")+(t.ielt9?" leaflet-oldie":"")+(t.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":"")),ar(i,"position"));"absolute"!==n&&"relative"!==n&&"fixed"!==n&&"sticky"!==n&&(i.style.position="relative");this._initPanes();this._initControlPos&&this._initControlPos()},_initPanes:function(){var n=this._panes={};this._paneRenderers={};this._mapPane=this.createPane("mapPane",this._container);d(this._mapPane,new r(0,0));this.createPane("tilePane");this.createPane("overlayPane");this.createPane("shadowPane");this.createPane("markerPane");this.createPane("tooltipPane");this.createPane("popupPane");this.options.markerZoomAnimation||(f(n.markerPane,"leaflet-zoom-hide"),f(n.shadowPane,"leaflet-zoom-hide"))},_resetView:function(n,t,i){d(this._mapPane,new r(0,0));var f=!this._loaded,u=(this._loaded=!0,t=this._limitZoom(t),this.fire("viewprereset"),this._zoom!==t);this._moveStart(u,i)._move(n,t)._moveEnd(u);this.fire("viewreset");f&&this.fire("load")},_moveStart:function(n,t){return n&&this.fire("zoomstart"),t||this.fire("movestart"),this},_move:function(n,t,i,r){void 0===t&&(t=this._zoom);var u=this._zoom!==t;return this._zoom=t,this._lastCenter=n,this._pixelOrigin=this._getNewPixelOrigin(n),r?i&&i.pinch&&this.fire("zoom",i):((u||i&&i.pinch)&&this.fire("zoom",i),this.fire("move",i)),this},_moveEnd:function(n){return n&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return et(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(n){d(this._mapPane,this._getMapPanePos().subtract(n))},_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(n){this._targets={};var i=n?a:u;i((this._targets[o(this._container)]=this)._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this);this.options.trackResize&&i(window,"resize",this._onResize,this);t.any3d&&this.options.transform3DLimit&&(n?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){et(this._resizeRequest);this._resizeRequest=tt(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0;this._container.scrollLeft=0},_onMoveEnd:function(){var n=this._getMapPanePos();Math.max(Math.abs(n.x),Math.abs(n.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(n,t){for(var r,u=[],f="mouseout"===t||"mouseover"===t,i=n.target||n.srcElement,e=!1;i;){if((r=this._targets[o(i)])&&("click"===t||"preclick"===t)&&this._draggableMoved(r)){e=!0;break}if(r&&r.listens(t,!0)){if(f&&!ve(i,n))break;if(u.push(r),f)break}if(i===this._container)break;i=i.parentNode}return u.length||e||f||!this.listens(t,!0)?u:[this]},_isClickDisabled:function(n){for(;n&&n!==this._container;){if(n._leaflet_disable_click)return!0;n=n.parentNode}},_handleDOMEvent:function(n){var i,t=n.target||n.srcElement;!this._loaded||t._leaflet_disable_events||"click"===n.type&&this._isClickDisabled(t)||("mousedown"===(i=n.type)&&se(t),this._fireDOMEvent(n,i))},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(n,t,i){var f,o,r,s,u,e;if("click"===n.type&&((u=c({},n)).type="preclick",this._fireDOMEvent(u,u.type,i)),f=this._findEventTargets(n,t),i){for(o=[],r=0;rthis.options.zoomAnimationThreshold)return!1;var r=this.getZoomScale(t),r=this._getCenterOffset(n)._divideBy(1-1/r);if(!0!==i.animate&&!this.getSize().contains(r))return!1;tt(function(){this._moveStart(!0,!1)._animateZoom(n,t,!0)},this)}return!0},_animateZoom:function(n,t,i,r){this._mapPane&&(i&&(this._animatingZoom=!0,this._animateToCenter=n,this._animateToZoom=t,f(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:n,zoom:t,noUpdate:r}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(v(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&k(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))}});var as,at=kt.extend({options:{position:"topright"},initialize:function(n){y(this,n)},getPosition:function(){return this.options.position},setPosition:function(n){var t=this._map;return t&&t.removeControl(this),this.options.position=n,t&&t.addControl(this),this},getContainer:function(){return this._container},addTo:function(n){this.remove();this._map=n;var t=this._container=this.onAdd(n),i=this.getPosition(),n=n._controlCorners[i];return f(t,"leaflet-control"),-1!==i.indexOf("bottom")?n.insertBefore(t,n.firstChild):n.appendChild(t),this._map.on("unload",this.remove,this),this},remove:function(){return this._map&&(w(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null),this},_refocusOnMap:function(n){this._map&&n&&0",t=document.createElement("div"),t.innerHTML=n,t.firstChild},_addItem:function(n){var t,r=document.createElement("label"),i=this._map.hasLayer(n.layer),i=(n.overlay?((t=document.createElement("input")).type="checkbox",t.className="leaflet-control-layers-selector",t.defaultChecked=i):t=this._createRadioElement("leaflet-base-layers_"+o(this),i),this._layerControlInputs.push(t),t.layerId=o(n.layer),u(t,"click",this._onInputClick,this),document.createElement("span")),f=(i.innerHTML=" "+n.name,document.createElement("span"));return r.appendChild(f),f.appendChild(t),f.appendChild(i),(n.overlay?this._overlaysList:this._baseLayersList).appendChild(r),this._checkDisabledLayers(),r},_onInputClick:function(){var t,u,f=this._layerControlInputs,i=[],r=[],n;for(this._handlingClick=!0,n=f.length-1;0<=n;n--)t=f[n],u=this._getLayer(t.layerId).layer,t.checked?i.push(u):t.checked||r.push(u);for(n=0;nn.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var n=this._section;u(n,"click",nt);this.expand();setTimeout(function(){a(n,"click",nt)})}})),ye=at.extend({options:{position:"topleft",zoomInText:'+<\/span>',zoomInTitle:"Zoom in",zoomOutText:'−<\/span>',zoomOutTitle:"Zoom out"},onAdd:function(n){var i="leaflet-control-zoom",r=s("div",i+" leaflet-bar"),t=this.options;return this._zoomInButton=this._createButton(t.zoomInText,t.zoomInTitle,i+"-in",r,this._zoomIn),this._zoomOutButton=this._createButton(t.zoomOutText,t.zoomOutTitle,i+"-out",r,this._zoomOut),this._updateDisabled(),n.on("zoomend zoomlevelschange",this._updateDisabled,this),r},onRemove:function(n){n.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(n){!this._disabled&&this._map._zoomthis._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(n.shiftKey?3:1))},_createButton:function(n,t,i,r,f){return i=s("a",i,r),i.innerHTML=n,i.href="#",i.title=t,i.setAttribute("role","button"),i.setAttribute("aria-label",t),vr(i),u(i,"click",li),u(i,"click",f,this),u(i,"click",this._refocusOnMap,this),i},_updateDisabled:function(){var n=this._map,t="leaflet-disabled";k(this._zoomInButton,t);k(this._zoomOutButton,t);this._zoomInButton.setAttribute("aria-disabled","false");this._zoomOutButton.setAttribute("aria-disabled","false");!this._disabled&&n._zoom!==n.getMinZoom()||(f(this._zoomOutButton,t),this._zoomOutButton.setAttribute("aria-disabled","true"));!this._disabled&&n._zoom!==n.getMaxZoom()||(f(this._zoomInButton,t),this._zoomInButton.setAttribute("aria-disabled","true"))}}),ys=(e.mergeOptions({zoomControl:!0}),e.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new ye,this.addControl(this.zoomControl))}),at.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(n){var t="leaflet-control-scale",i=s("div",t),r=this.options;return this._addScales(r,t+"-line",i),n.on(r.updateWhenIdle?"moveend":"move",this._update,this),n.whenReady(this._update,this),i},onRemove:function(n){n.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(n,t,i){n.metric&&(this._mScale=s("div",t,i));n.imperial&&(this._iScale=s("div",t,i))},_update:function(){var n=this._map,t=n.getSize().y/2,n=n.distance(n.containerPointToLatLng([0,t]),n.containerPointToLatLng([this.options.maxWidth,t]));this._updateScales(n)},_updateScales:function(n){this.options.metric&&n&&this._updateMetric(n);this.options.imperial&&n&&this._updateImperial(n)},_updateMetric:function(n){var t=this._getRoundNum(n);this._updateScale(this._mScale,t<1e3?t+" m":t/1e3+" km",t/n)},_updateImperial:function(n){var i,t,n=3.2808399*n;5280'+(t.inlineSvg?'