(function(t){var e={};function i(n){if(e[n]){return e[n].exports}var o=e[n]={i:n,l:false,exports:{}};t[n].call(o.exports,o,o.exports,i);o.l=true;return o.exports}i.m=t;i.c=e;i.d=function(t,e,n){if(!i.o(t,e)){Object.defineProperty(t,e,{enumerable:true,get:n})}};i.r=function(t){if(typeof Symbol!=="undefined"&&Symbol.toStringTag){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"})}Object.defineProperty(t,"__esModule",{value:true})};i.t=function(t,e){if(e&1)t=i(t);if(e&8)return t;if(e&4&&typeof t==="object"&&t&&t.__esModule)return t;var n=Object.create(null);i.r(n);Object.defineProperty(n,"default",{enumerable:true,value:t});if(e&2&&typeof t!="string")for(var o in t)i.d(n,o,function(e){return t[e]}.bind(null,o));return n};i.n=function(t){var e=t&&t.__esModule?function e(){return t["default"]}:function e(){return t};i.d(e,"a",e);return e};i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)};i.p="";return i(i.s=517)})({10:function(t,e,i){try{var n=i(7);if(typeof n.inherits!=="function")throw"";t.exports=n.inherits}catch(e){t.exports=i(11)}},11:function(t,e){if(typeof Object.create==="function"){t.exports=function t(e,i){e.super_=i;e.prototype=Object.create(i.prototype,{constructor:{value:e,enumerable:false,writable:true,configurable:true}})}}else{t.exports=function t(e,i){e.super_=i;var n=function(){};n.prototype=i.prototype;e.prototype=new n;e.prototype.constructor=e}}},12:function(t,e,i){"use strict";(function(e){var n=i(13); /*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT */function o(t,e){if(t===e){return 0}var i=t.length;var n=e.length;for(var o=0,r=Math.min(i,n);o=0){var a=o.indexOf("\n",s+1);o=o.substring(a+1)}this.stack=o}}};s.inherits(f.AssertionError,Error);function p(t,e){if(typeof t==="string"){return t.length=0;c--){if(a[c]!==u[c])return false}for(c=a.length-1;c>=0;c--){l=a[c];if(!L(t[l],e[l],i,n))return false}return true}f.notDeepEqual=function t(e,i,n){if(L(e,i,false)){v(e,i,n,"notDeepEqual",f.notDeepEqual)}};f.notDeepStrictEqual=b;function b(t,e,i){if(L(t,e,true)){v(t,e,i,"notDeepStrictEqual",b)}}f.strictEqual=function t(e,i,n){if(e!==i){v(e,i,n,"===",f.strictEqual)}};f.notStrictEqual=function t(e,i,n){if(e===i){v(e,i,n,"!==",f.notStrictEqual)}};function P(t,e){if(!t||!e){return false}if(Object.prototype.toString.call(e)=="[object RegExp]"){return e.test(t)}try{if(t instanceof e){return true}}catch(t){}if(Error.isPrototypeOf(e)){return false}return e.call({},t)===true}function C(t){var e;try{t()}catch(t){e=t}return e}function T(t,e,i,n){var o;if(typeof e!=="function"){throw new TypeError('"block" argument must be a function')}if(typeof i==="string"){n=i;i=null}o=C(e);n=(i&&i.name?" ("+i.name+").":".")+(n?" "+n:".");if(t&&!o){v(o,i,"Missing expected exception"+n)}var r=typeof n==="string";var a=!t&&s.isError(o);var h=!t&&o&&!i;if(a&&r&&P(o,i)||h){v(o,i,"Got unwanted exception"+n)}if(t&&o&&i&&!P(o,i)||!t&&o){throw o}}f.throws=function(t,e,i){T(true,t,e,i)};f.doesNotThrow=function(t,e,i){T(false,t,e,i)};f.ifError=function(t){if(t)throw t};function M(t,e){if(!t)v(t,true,e,"==",M)}f.strict=n(M,f,{equal:f.strictEqual,deepEqual:f.deepStrictEqual,notEqual:f.notStrictEqual,notDeepEqual:f.notDeepStrictEqual});f.strict.strict=f.strict;var k=Object.keys||function(t){var e=[];for(var i in t){if(a.call(t,i))e.push(i)}return e}}).call(this,i(6))},13:function(t,e,i){"use strict"; /* object-assign (c) Sindre Sorhus @license MIT */var n=Object.getOwnPropertySymbols;var o=Object.prototype.hasOwnProperty;var r=Object.prototype.propertyIsEnumerable;function s(t){if(t===null||t===undefined){throw new TypeError("Object.assign cannot be called with null or undefined")}return Object(t)}function a(){try{if(!Object.assign){return false}var t=new String("abc");t[5]="de";if(Object.getOwnPropertyNames(t)[0]==="5"){return false}var e={};for(var i=0;i<10;i++){e["_"+String.fromCharCode(i)]=i}var n=Object.getOwnPropertyNames(e).map((function(t){return e[t]}));if(n.join("")!=="0123456789"){return false}var o={};"abcdefghijklmnopqrst".split("").forEach((function(t){o[t]=t}));if(Object.keys(Object.assign({},o)).join("")!=="abcdefghijklmnopqrst"){return false}return true}catch(t){return false}}t.exports=a()?Object.assign:function(t,e){var i;var a=s(t);var h;for(var u=1;u0?Math.floor(t):Math.ceil(t)};I.prototype={clone:function(){return new I(this.x,this.y)},add:function(t){return this.clone()._add(j(t))},_add:function(t){this.x+=t.x;this.y+=t.y;return this},subtract:function(t){return this.clone()._subtract(j(t))},_subtract:function(t){this.x-=t.x;this.y-=t.y;return this},divideBy:function(t){return this.clone()._divideBy(t)},_divideBy:function(t){this.x/=t;this.y/=t;return this},multiplyBy:function(t){return this.clone()._multiplyBy(t)},_multiplyBy:function(t){this.x*=t;this.y*=t;return this},scaleBy:function(t){return new I(this.x*t.x,this.y*t.y)},unscaleBy:function(t){return new I(this.x/t.x,this.y/t.y)},round:function(){return this.clone()._round()},_round:function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this},floor:function(){return this.clone()._floor()},_floor:function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this},ceil:function(){return this.clone()._ceil()},_ceil:function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this},trunc:function(){return this.clone()._trunc()},_trunc:function(){this.x=B(this.x);this.y=B(this.y);return this},distanceTo:function(t){t=j(t);var e=t.x-this.x,i=t.y-this.y;return Math.sqrt(e*e+i*i)},equals:function(t){t=j(t);return t.x===this.x&&t.y===this.y},contains:function(t){t=j(t);return Math.abs(t.x)<=Math.abs(this.x)&&Math.abs(t.y)<=Math.abs(this.y)},toString:function(){return"Point("+f(this.x)+", "+f(this.y)+")"}};function j(t,e,i){if(t instanceof I){return t}if(y(t)){return new I(t[0],t[1])}if(t===undefined||t===null){return t}if(typeof t==="object"&&"x"in t&&"y"in t){return new I(t.x,t.y)}return new I(t,e,i)}function N(t,e){if(!t){return}var i=e?[t,e]:t;for(var n=0,o=i.length;n=this.min.x&&i.x<=this.max.x&&e.y>=this.min.y&&i.y<=this.max.y},intersects:function(t){t=D(t);var e=this.min,i=this.max,n=t.min,o=t.max,r=o.x>=e.x&&n.x<=i.x,s=o.y>=e.y&&n.y<=i.y;return r&&s},overlaps:function(t){t=D(t);var e=this.min,i=this.max,n=t.min,o=t.max,r=o.x>e.x&&n.xe.y&&n.y=e.lat&&o.lat<=i.lat&&n.lng>=e.lng&&o.lng<=i.lng},intersects:function(t){t=F(t);var e=this._southWest,i=this._northEast,n=t.getSouthWest(),o=t.getNorthEast(),r=o.lat>=e.lat&&n.lat<=i.lat,s=o.lng>=e.lng&&n.lng<=i.lng;return r&&s},overlaps:function(t){t=F(t);var e=this._southWest,i=this._northEast,n=t.getSouthWest(),o=t.getNorthEast(),r=o.lat>e.lat&&n.late.lng&&n.lng1;var St=function(){var t=false;try{var e=Object.defineProperty({},"passive",{get:function(){t=true}});window.addEventListener("testPassiveEventSupport",c,e);window.removeEventListener("testPassiveEventSupport",c,e)}catch(t){}return t};var zt=function(){return!!document.createElement("canvas").getContext}();var Et=!!(document.createElementNS&&$("svg").createSVGRect);var Ot=!Et&&function(){try{var t=document.createElement("div");t.innerHTML='';var e=t.firstChild;e.style.behavior="url(#default#VML)";return e&&typeof e.adj==="object"}catch(t){return false}}();function At(t){return navigator.userAgent.toLowerCase().indexOf(t)>=0}var Zt=(Object.freeze||Object)({ie:et,ielt9:it,edge:nt,webkit:ot,android:rt,android23:st,androidStock:ht,opera:ut,chrome:lt,gecko:ct,safari:ft,phantom:dt,opera12:_t,win:pt,ie3d:mt,webkit3d:gt,gecko3d:vt,any3d:yt,mobile:Lt,mobileWebkit:xt,mobileWebkit3d:wt,msPointer:bt,pointer:Pt,touch:Ct,mobileOpera:Tt,mobileGecko:Mt,retina:kt,passiveEvents:St,canvas:zt,svg:Et,vml:Ot});var It=bt?"MSPointerDown":"pointerdown";var Bt=bt?"MSPointerMove":"pointermove";var jt=bt?"MSPointerUp":"pointerup";var Nt=bt?"MSPointerCancel":"pointercancel";var Dt=["INPUT","SELECT","OPTION"];var Rt={};var Ft=false;var Ut=0;function Gt(t,e,i,n){if(e==="touchstart"){qt(t,i,n)}else if(e==="touchmove"){Jt(t,i,n)}else if(e==="touchend"){Xt(t,i,n)}return this}function Ht(t,e,i){var n=t["_leaflet_"+e+i];if(e==="touchstart"){t.removeEventListener(It,n,false)}else if(e==="touchmove"){t.removeEventListener(Bt,n,false)}else if(e==="touchend"){t.removeEventListener(jt,n,false);t.removeEventListener(Nt,n,false)}return this}function qt(t,e,i){var n=s((function(t){if(t.pointerType!=="mouse"&&t.MSPOINTER_TYPE_MOUSE&&t.pointerType!==t.MSPOINTER_TYPE_MOUSE){if(Dt.indexOf(t.target.tagName)<0){qe(t)}else{return}}Yt(t,e)}));t["_leaflet_touchstart"+i]=n;t.addEventListener(It,n,false);if(!Ft){document.documentElement.addEventListener(It,Wt,true);document.documentElement.addEventListener(Bt,Vt,true);document.documentElement.addEventListener(jt,Kt,true);document.documentElement.addEventListener(Nt,Kt,true);Ft=true}}function Wt(t){Rt[t.pointerId]=t;Ut++}function Vt(t){if(Rt[t.pointerId]){Rt[t.pointerId]=t}}function Kt(t){delete Rt[t.pointerId];Ut--}function Yt(t,e){t.touches=[];for(var i in Rt){t.touches.push(Rt[i])}t.changedTouches=[t];e(t)}function Jt(t,e,i){var n=function(t){if((t.pointerType===t.MSPOINTER_TYPE_MOUSE||t.pointerType==="mouse")&&t.buttons===0){return}Yt(t,e)};t["_leaflet_touchmove"+i]=n;t.addEventListener(Bt,n,false)}function Xt(t,e,i){var n=function(t){Yt(t,e)};t["_leaflet_touchend"+i]=n;t.addEventListener(jt,n,false);t.addEventListener(Nt,n,false)}var $t=bt?"MSPointerDown":Pt?"pointerdown":"touchstart";var Qt=bt?"MSPointerUp":Pt?"pointerup":"touchend";var te="_leaflet_";function ee(t,e,i){var n,o,r=false,s=250;function a(t){var e;if(Pt){if(!nt||t.pointerType==="mouse"){return}e=Ut}else{e=t.touches.length}if(e>1){return}var i=Date.now(),a=i-(n||i);o=t.touches?t.touches[0]:t;r=a>0&&a<=s;n=i}function h(t){if(r&&!o.cancelBubble){if(Pt){if(!nt||t.pointerType==="mouse"){return}var i={},s,a;for(a in o){s=o[a];i[a]=s&&s.bind?s.bind(o):s}o=i}o.type="dblclick";o.button=0;e(o);n=null}}t[te+$t+i]=a;t[te+Qt+i]=h;t[te+"dblclick"+i]=e;t.addEventListener($t,a,St?{passive:false}:false);t.addEventListener(Qt,h,St?{passive:false}:false);t.addEventListener("dblclick",e,false);return this}function ie(t,e){var i=t[te+$t+e],n=t[te+Qt+e],o=t[te+"dblclick"+e];t.removeEventListener($t,i,St?{passive:false}:false);t.removeEventListener(Qt,n,St?{passive:false}:false);if(!nt){t.removeEventListener("dblclick",o,false)}return this}var ne=Le(["transform","webkitTransform","OTransform","MozTransform","msTransform"]);var oe=Le(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);var re=oe==="webkitTransition"||oe==="OTransition"?oe+"End":"transitionend";function se(t){return typeof t==="string"?document.getElementById(t):t}function ae(t,e){var i=t.style[e]||t.currentStyle&&t.currentStyle[e];if((!i||i==="auto")&&document.defaultView){var n=document.defaultView.getComputedStyle(t,null);i=n?n[e]:null}return i==="auto"?null:i}function he(t,e,i){var n=document.createElement(t);n.className=e||"";if(i){i.appendChild(n)}return n}function ue(t){var e=t.parentNode;if(e){e.removeChild(t)}}function le(t){while(t.firstChild){t.removeChild(t.firstChild)}}function ce(t){var e=t.parentNode;if(e&&e.lastChild!==t){e.appendChild(t)}}function fe(t){var e=t.parentNode;if(e&&e.firstChild!==t){e.insertBefore(t,e.firstChild)}}function de(t,e){if(t.classList!==undefined){return t.classList.contains(e)}var i=ge(t);return i.length>0&&new RegExp("(^|\\s)"+e+"(\\s|$)").test(i)}function _e(t,e){if(t.classList!==undefined){var i=_(e);for(var n=0,o=i.length;n100&&n<500||t.target._simulatedClick&&!t._simulated){We(t);return}ti=i;e(t)}var ii=(Object.freeze||Object)({on:je,off:De,stopPropagation:Ue,disableScrollPropagation:Ge,disableClickPropagation:He,preventDefault:qe,stop:We,getMousePosition:Ve,getWheelDelta:Ye,fakeStop:Xe,skipped:$e,isExternalTarget:Qe,addListener:je,removeListener:De});var ni=Z.extend({run:function(t,e,i,n){this.stop();this._el=t;this._inProgress=true;this._duration=i||.25;this._easeOutPower=1/Math.max(n||.5,.2);this._startPos=be(t);this._offset=e.subtract(this._startPos);this._startTime=+new Date;this.fire("start");this._animate()},stop:function(){if(!this._inProgress){return}this._step(true);this._complete()},_animate:function(){this._animId=k(this._animate,this);this._step()},_step:function(t){var e=+new Date-this._startTime,i=this._duration*1e3;if(ethis.options.maxZoom){return this.setZoom(t)}}return this},panInsideBounds:function(t,e){this._enforcingBounds=true;var i=this.getCenter(),n=this._limitCenter(i,this._zoom,F(t));if(!i.equals(n)){this.panTo(n,e)}this._enforcingBounds=false;return this},panInside:function(t,e){e=e||{};var i=j(e.paddingTopLeft||e.padding||[0,0]),n=j(e.paddingBottomRight||e.padding||[0,0]),o=this.getCenter(),r=this.project(o),s=this.project(t),a=this.getPixelBounds(),h=a.getSize().divideBy(2),u=D([a.min.add(i),a.max.subtract(n)]);if(!u.contains(s)){this._enforcingBounds=true;var l=r.subtract(s),c=j(s.x+l.x,s.y+l.y);if(s.xu.max.x){c.x=r.x-l.x;if(l.x>0){c.x+=h.x-i.x}else{c.x-=h.x-n.x}}if(s.yu.max.y){c.y=r.y-l.y;if(l.y>0){c.y+=h.y-i.y}else{c.y-=h.y-n.y}}this.panTo(this.unproject(c),e);this._enforcingBounds=false}return this},invalidateSize:function(t){if(!this._loaded){return this}t=o({animate:false,pan:true},t===true?{animate:true}:t);var e=this.getSize();this._sizeChanged=true;this._lastCenter=null;var i=this.getSize(),n=e.divideBy(2).round(),r=i.divideBy(2).round(),a=n.subtract(r);if(!a.x&&!a.y){return this}if(t.animate&&t.pan){this.panBy(a)}else{if(t.pan){this._rawPanBy(a)}this.fire("move");if(t.debounceMoveend){clearTimeout(this._sizeTimer);this._sizeTimer=setTimeout(s(this.fire,this,"moveend"),200)}else{this.fire("moveend")}}return this.fire("resize",{oldSize:e,newSize:i})},stop:function(){this.setZoom(this._limitZoom(this._zoom));if(!this.options.zoomSnap){this.fire("viewreset")}return this._stop()},locate:function(t){t=this._locateOptions=o({timeout:1e4,watch:false},t);if(!("geolocation"in navigator)){this._handleGeolocationError({code:0,message:"Geolocation not supported."});return this}var e=s(this._handleGeolocationResponse,this),i=s(this._handleGeolocationError,this);if(t.watch){this._locationWatchId=navigator.geolocation.watchPosition(e,i,t)}else{navigator.geolocation.getCurrentPosition(e,i,t)}return this},stopLocate:function(){if(navigator.geolocation&&navigator.geolocation.clearWatch){navigator.geolocation.clearWatch(this._locationWatchId)}if(this._locateOptions){this._locateOptions.setView=false}return this},_handleGeolocationError:function(t){var e=t.code,i=t.message||(e===1?"permission denied":e===2?"position unavailable":"timeout");if(this._locateOptions.setView&&!this._loaded){this.fitWorld()}this.fire("locationerror",{code:e,message:"Geolocation error: "+i+"."})},_handleGeolocationResponse:function(t){var e=t.coords.latitude,i=t.coords.longitude,n=new U(e,i),o=n.toBounds(t.coords.accuracy*2),r=this._locateOptions;if(r.setView){var s=this.getBoundsZoom(o);this.setView(n,r.maxZoom?Math.min(s,r.maxZoom):s)}var a={latlng:n,bounds:o,timestamp:t.timestamp};for(var h in t.coords){if(typeof t.coords[h]==="number"){a[h]=t.coords[h]}}this.fire("locationfound",a)},addHandler:function(t,e){if(!e){return this}var i=this[t]=new e(this);this._handlers.push(i);if(this.options[t]){i.enable()}return this},remove:function(){this._initEvents(true);if(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=undefined;this._containerId=undefined}if(this._locationWatchId!==undefined){this.stopLocate()}this._stop();ue(this._mapPane);if(this._clearControlPos){this._clearControlPos()}if(this._resizeRequest){S(this._resizeRequest);this._resizeRequest=null}this._clearHandlers();if(this._loaded){this.fire("unload")}var t;for(t in this._layers){this._layers[t].remove()}for(t in this._panes){ue(this._panes[t])}this._layers=[];this._panes=[];delete this._mapPane;delete this._renderer;return this},createPane:function(t,e){var i="leaflet-pane"+(t?" leaflet-"+t.replace("Pane","")+"-pane":""),n=he("div",i,e||this._mapPane);if(t){this._panes[t]=n}return n},getCenter:function(){this._checkIfLoaded();if(this._lastCenter&&!this._moved()){return this._lastCenter}return this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var t=this.getPixelBounds(),e=this.unproject(t.getBottomLeft()),i=this.unproject(t.getTopRight());return new R(e,i)},getMinZoom:function(){return this.options.minZoom===undefined?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return this.options.maxZoom===undefined?this._layersMaxZoom===undefined?Infinity:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(t,e,i){t=F(t);i=j(i||[0,0]);var n=this.getZoom()||0,o=this.getMinZoom(),r=this.getMaxZoom(),s=t.getNorthWest(),a=t.getSouthEast(),h=this.getSize().subtract(i),u=D(this.project(a,n),this.project(s,n)).getSize(),l=yt?this.options.zoomSnap:1,c=h.x/u.x,f=h.y/u.y,d=e?Math.max(c,f):Math.min(c,f);n=this.getScaleZoom(d,n);if(l){n=Math.round(n/(l/100))*(l/100);n=e?Math.ceil(n/l)*l:Math.floor(n/l)*l}return Math.max(o,Math.min(r,n))},getSize:function(){if(!this._size||this._sizeChanged){this._size=new I(this._container.clientWidth||0,this._container.clientHeight||0);this._sizeChanged=false}return this._size.clone()},getPixelBounds:function(t,e){var i=this._getTopLeftPoint(t,e);return new N(i,i.add(this.getSize()))},getPixelOrigin:function(){this._checkIfLoaded();return this._pixelOrigin},getPixelWorldBounds:function(t){return this.options.crs.getProjectedBounds(t===undefined?this.getZoom():t)},getPane:function(t){return typeof t==="string"?this._panes[t]:t},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(t,e){var i=this.options.crs;e=e===undefined?this._zoom:e;return i.scale(t)/i.scale(e)},getScaleZoom:function(t,e){var i=this.options.crs;e=e===undefined?this._zoom:e;var n=i.zoom(t*i.scale(e));return isNaN(n)?Infinity:n},project:function(t,e){e=e===undefined?this._zoom:e;return this.options.crs.latLngToPoint(G(t),e)},unproject:function(t,e){e=e===undefined?this._zoom:e;return this.options.crs.pointToLatLng(j(t),e)},layerPointToLatLng:function(t){var e=j(t).add(this.getPixelOrigin());return this.unproject(e)},latLngToLayerPoint:function(t){var e=this.project(G(t))._round();return e._subtract(this.getPixelOrigin())},wrapLatLng:function(t){return this.options.crs.wrapLatLng(G(t))},wrapLatLngBounds:function(t){return this.options.crs.wrapLatLngBounds(F(t))},distance:function(t,e){return this.options.crs.distance(G(t),G(e))},containerPointToLayerPoint:function(t){return j(t).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(t){return j(t).add(this._getMapPanePos())},containerPointToLatLng:function(t){var e=this.containerPointToLayerPoint(j(t));return this.layerPointToLatLng(e)},latLngToContainerPoint:function(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint(G(t)))},mouseEventToContainerPoint:function(t){return Ve(t,this._container)},mouseEventToLayerPoint:function(t){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(t))},mouseEventToLatLng:function(t){return this.layerPointToLatLng(this.mouseEventToLayerPoint(t))},_initContainer:function(t){var e=this._container=se(t);if(!e){throw new Error("Map container not found.")}else if(e._leaflet_id){throw new Error("Map container is already initialized.")}je(e,"scroll",this._onScroll,this);this._containerId=h(e)},_initLayout:function(){var t=this._container;this._fadeAnimated=this.options.fadeAnimation&&yt;_e(t,"leaflet-container"+(Ct?" leaflet-touch":"")+(kt?" leaflet-retina":"")+(it?" leaflet-oldie":"")+(ft?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var e=ae(t,"position");if(e!=="absolute"&&e!=="relative"&&e!=="fixed"){t.style.position="relative"}this._initPanes();if(this._initControlPos){this._initControlPos()}},_initPanes:function(){var t=this._panes={};this._paneRenderers={};this._mapPane=this.createPane("mapPane",this._container);we(this._mapPane,new I(0,0));this.createPane("tilePane");this.createPane("shadowPane");this.createPane("overlayPane");this.createPane("markerPane");this.createPane("tooltipPane");this.createPane("popupPane");if(!this.options.markerZoomAnimation){_e(t.markerPane,"leaflet-zoom-hide");_e(t.shadowPane,"leaflet-zoom-hide")}},_resetView:function(t,e){we(this._mapPane,new I(0,0));var i=!this._loaded;this._loaded=true;e=this._limitZoom(e);this.fire("viewprereset");var n=this._zoom!==e;this._moveStart(n,false)._move(t,e)._moveEnd(n);this.fire("viewreset");if(i){this.fire("load")}},_moveStart:function(t,e){if(t){this.fire("zoomstart")}if(!e){this.fire("movestart")}return this},_move:function(t,e,i){if(e===undefined){e=this._zoom}var n=this._zoom!==e;this._zoom=e;this._lastCenter=t;this._pixelOrigin=this._getNewPixelOrigin(t);if(n||i&&i.pinch){this.fire("zoom",i)}return this.fire("move",i)},_moveEnd:function(t){if(t){this.fire("zoomend")}return this.fire("moveend")},_stop:function(){S(this._flyToFrame);if(this._panAnim){this._panAnim.stop()}return this},_rawPanBy:function(t){we(this._mapPane,this._getMapPanePos().subtract(t))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){if(!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={};this._targets[h(this._container)]=this;var e=t?De:je;e(this._container,"click dblclick mousedown mouseup "+"mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this);if(this.options.trackResize){e(window,"resize",this._onResize,this)}if(yt&&this.options.transform3DLimit){(t?this.off:this.on).call(this,"moveend",this._onMoveEnd)}},_onResize:function(){S(this._resizeRequest);this._resizeRequest=k((function(){this.invalidateSize({debounceMoveend:true})}),this)},_onScroll:function(){this._container.scrollTop=0;this._container.scrollLeft=0},_onMoveEnd:function(){var t=this._getMapPanePos();if(Math.max(Math.abs(t.x),Math.abs(t.y))>=this.options.transform3DLimit){this._resetView(this.getCenter(),this.getZoom())}},_findEventTargets:function(t,e){var i=[],n,o=e==="mouseout"||e==="mouseover",r=t.target||t.srcElement,s=false;while(r){n=this._targets[h(r)];if(n&&(e==="click"||e==="preclick")&&!t._simulated&&this._draggableMoved(n)){s=true;break}if(n&&n.listens(e,true)){if(o&&!Qe(r,t)){break}i.push(n);if(o){break}}if(r===this._container){break}r=r.parentNode}if(!i.length&&!s&&!o&&Qe(r,t)){i=[this]}return i},_handleDOMEvent:function(t){if(!this._loaded||$e(t)){return}var e=t.type;if(e==="mousedown"||e==="keypress"||e==="keyup"||e==="keydown"){Oe(t.target||t.srcElement)}this._fireDOMEvent(t,e)},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(t,e,i){if(t.type==="click"){var n=o({},t);n.type="preclick";this._fireDOMEvent(n,n.type,i)}if(t._stopped){return}i=(i||[]).concat(this._findEventTargets(t,e));if(!i.length){return}var r=i[0];if(e==="contextmenu"&&r.listens(e,true)){qe(t)}var s={originalEvent:t};if(t.type!=="keypress"&&t.type!=="keydown"&&t.type!=="keyup"){var a=r.getLatLng&&(!r._radius||r._radius<=10);s.containerPoint=a?this.latLngToContainerPoint(r.getLatLng()):this.mouseEventToContainerPoint(t);s.layerPoint=this.containerPointToLayerPoint(s.containerPoint);s.latlng=a?r.getLatLng():this.layerPointToLatLng(s.layerPoint)}for(var h=0;h0?Math.round(t-e)/2:Math.max(0,Math.ceil(t))-Math.max(0,Math.floor(e))},_limitZoom:function(t){var e=this.getMinZoom(),i=this.getMaxZoom(),n=yt?this.options.zoomSnap:1;if(n){t=Math.round(t/n)*n}return Math.max(e,Math.min(i,t))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){pe(this._mapPane,"leaflet-pan-anim");this.fire("moveend")},_tryAnimatedPan:function(t,e){var i=this._getCenterOffset(t)._trunc();if((e&&e.animate)!==true&&!this.getSize().contains(i)){return false}this.panBy(i,e);return true},_createAnimProxy:function(){var t=this._proxy=he("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(t);this.on("zoomanim",(function(t){var e=ne,i=this._proxy.style[e];xe(this._proxy,this.project(t.center,t.zoom),this.getZoomScale(t.zoom,1));if(i===this._proxy.style[e]&&this._animatingZoom){this._onZoomTransitionEnd()}}),this);this.on("load moveend",this._animMoveEnd,this);this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){ue(this._proxy);this.off("load moveend",this._animMoveEnd,this);delete this._proxy},_animMoveEnd:function(){var t=this.getCenter(),e=this.getZoom();xe(this._proxy,this.project(t,e),this.getZoomScale(e,1))},_catchTransitionEnd:function(t){if(this._animatingZoom&&t.propertyName.indexOf("transform")>=0){this._onZoomTransitionEnd()}},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(t,e,i){if(this._animatingZoom){return true}i=i||{};if(!this._zoomAnimated||i.animate===false||this._nothingToAnimate()||Math.abs(e-this._zoom)>this.options.zoomAnimationThreshold){return false}var n=this.getZoomScale(e),o=this._getCenterOffset(t)._divideBy(1-1/n);if(i.animate!==true&&!this.getSize().contains(o)){return false}k((function(){this._moveStart(true,false)._animateZoom(t,e,true)}),this);return true},_animateZoom:function(t,e,i,n){if(!this._mapPane){return}if(i){this._animatingZoom=true;this._animateToCenter=t;this._animateToZoom=e;_e(this._mapPane,"leaflet-zoom-anim")}this.fire("zoomanim",{center:t,zoom:e,noUpdate:n});setTimeout(s(this._onZoomTransitionEnd,this),250)},_onZoomTransitionEnd:function(){if(!this._animatingZoom){return}if(this._mapPane){pe(this._mapPane,"leaflet-zoom-anim")}this._animatingZoom=false;this._move(this._animateToCenter,this._animateToZoom);k((function(){this._moveEnd(true)}),this)}});function ri(t,e){return new oi(t,e)}var si=E.extend({options:{position:"topright"},initialize:function(t){p(this,t)},getPosition:function(){return this.options.position},setPosition:function(t){var e=this._map;if(e){e.removeControl(this)}this.options.position=t;if(e){e.addControl(this)}return this},getContainer:function(){return this._container},addTo:function(t){this.remove();this._map=t;var e=this._container=this.onAdd(t),i=this.getPosition(),n=t._controlCorners[i];_e(e,"leaflet-control");if(i.indexOf("bottom")!==-1){n.insertBefore(e,n.firstChild)}else{n.appendChild(e)}this._map.on("unload",this.remove,this);return this},remove:function(){if(!this._map){return this}ue(this._container);if(this.onRemove){this.onRemove(this._map)}this._map.off("unload",this.remove,this);this._map=null;return this},_refocusOnMap:function(t){if(this._map&&t&&t.screenX>0&&t.screenY>0){this._map.getContainer().focus()}}});var ai=function(t){return new si(t)};oi.include({addControl:function(t){t.addTo(this);return this},removeControl:function(t){t.remove();return this},_initControlPos:function(){var t=this._controlCorners={},e="leaflet-",i=this._controlContainer=he("div",e+"control-container",this._container);function n(n,o){var r=e+n+" "+e+o;t[n+o]=he("div",r,i)}n("top","left");n("top","right");n("bottom","left");n("bottom","right")},_clearControlPos:function(){for(var t in this._controlCorners){ue(this._controlCorners[t])}ue(this._controlContainer);delete this._controlCorners;delete this._controlContainer}});var hi=si.extend({options:{collapsed:true,position:"topright",autoZIndex:true,hideSingleBase:false,sortLayers:false,sortFunction:function(t,e,i,n){return i1;this._baseLayersList.style.display=t?"":"none"}this._separator.style.display=e&&t?"":"none";return this},_onLayerChange:function(t){if(!this._handlingClick){this._update()}var e=this._getLayer(h(t.target));var i=e.overlay?t.type==="add"?"overlayadd":"overlayremove":t.type==="add"?"baselayerchange":null;if(i){this._map.fire(i,e)}},_createRadioElement:function(t,e){var i='";var n=document.createElement("div");n.innerHTML=i;return n.firstChild},_addItem:function(t){var e=document.createElement("label"),i=this._map.hasLayer(t.layer),n;if(t.overlay){n=document.createElement("input");n.type="checkbox";n.className="leaflet-control-layers-selector";n.defaultChecked=i}else{n=this._createRadioElement("leaflet-base-layers_"+h(this),i)}this._layerControlInputs.push(n);n.layerId=h(t.layer);je(n,"click",this._onInputClick,this);var o=document.createElement("span");o.innerHTML=" "+t.name;var r=document.createElement("div");e.appendChild(r);r.appendChild(n);r.appendChild(o);var s=t.overlay?this._overlaysList:this._baseLayersList;s.appendChild(e);this._checkDisabledLayers();return e},_onInputClick:function(){var t=this._layerControlInputs,e,i;var n=[],o=[];this._handlingClick=true;for(var r=t.length-1;r>=0;r--){e=t[r];i=this._getLayer(e.layerId).layer;if(e.checked){n.push(i)}else if(!e.checked){o.push(i)}}for(r=0;r=0;o--){e=t[o];i=this._getLayer(e.layerId).layer;e.disabled=i.options.minZoom!==undefined&&ni.options.maxZoom}},_expandIfNotCollapsed:function(){if(this._map&&!this.options.collapsed){this.expand()}return this},_expand:function(){return this.expand()},_collapse:function(){return this.collapse()}});var ui=function(t,e,i){return new hi(t,e,i)};var li=si.extend({options:{position:"topleft",zoomInText:"+",zoomInTitle:"Zoom in",zoomOutText:"−",zoomOutTitle:"Zoom out"},onAdd:function(t){var e="leaflet-control-zoom",i=he("div",e+" leaflet-bar"),n=this.options;this._zoomInButton=this._createButton(n.zoomInText,n.zoomInTitle,e+"-in",i,this._zoomIn);this._zoomOutButton=this._createButton(n.zoomOutText,n.zoomOutTitle,e+"-out",i,this._zoomOut);this._updateDisabled();t.on("zoomend zoomlevelschange",this._updateDisabled,this);return i},onRemove:function(t){t.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){this._disabled=true;this._updateDisabled();return this},enable:function(){this._disabled=false;this._updateDisabled();return this},_zoomIn:function(t){if(!this._disabled&&this._map._zoomthis._map.getMinZoom()){this._map.zoomOut(this._map.options.zoomDelta*(t.shiftKey?3:1))}},_createButton:function(t,e,i,n,o){var r=he("a",i,n);r.innerHTML=t;r.href="#";r.title=e;r.setAttribute("role","button");r.setAttribute("aria-label",e);He(r);je(r,"click",We);je(r,"click",o,this);je(r,"click",this._refocusOnMap,this);return r},_updateDisabled:function(){var t=this._map,e="leaflet-disabled";pe(this._zoomInButton,e);pe(this._zoomOutButton,e);if(this._disabled||t._zoom===t.getMinZoom()){_e(this._zoomOutButton,e)}if(this._disabled||t._zoom===t.getMaxZoom()){_e(this._zoomInButton,e)}}});oi.mergeOptions({zoomControl:true});oi.addInitHook((function(){if(this.options.zoomControl){this.zoomControl=new li;this.addControl(this.zoomControl)}}));var ci=function(t){return new li(t)};var fi=si.extend({options:{position:"bottomleft",maxWidth:100,metric:true,imperial:true},onAdd:function(t){var e="leaflet-control-scale",i=he("div",e),n=this.options;this._addScales(n,e+"-line",i);t.on(n.updateWhenIdle?"moveend":"move",this._update,this);t.whenReady(this._update,this);return i},onRemove:function(t){t.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(t,e,i){if(t.metric){this._mScale=he("div",e,i)}if(t.imperial){this._iScale=he("div",e,i)}},_update:function(){var t=this._map,e=t.getSize().y/2;var i=t.distance(t.containerPointToLatLng([0,e]),t.containerPointToLatLng([this.options.maxWidth,e]));this._updateScales(i)},_updateScales:function(t){if(this.options.metric&&t){this._updateMetric(t)}if(this.options.imperial&&t){this._updateImperial(t)}},_updateMetric:function(t){var e=this._getRoundNum(t),i=e<1e3?e+" m":e/1e3+" km";this._updateScale(this._mScale,i,e/t)},_updateImperial:function(t){var e=t*3.2808399,i,n,o;if(e>5280){i=e/5280;n=this._getRoundNum(i);this._updateScale(this._iScale,n+" mi",n/i)}else{o=this._getRoundNum(e);this._updateScale(this._iScale,o+" ft",o/e)}},_updateScale:function(t,e,i){t.style.width=Math.round(this.options.maxWidth*i)+"px";t.innerHTML=e},_getRoundNum:function(t){var e=Math.pow(10,(Math.floor(t)+"").length-1),i=t/e;i=i>=10?10:i>=5?5:i>=3?3:i>=2?2:1;return e*i}});var di=function(t){return new fi(t)};var _i=si.extend({options:{position:"bottomright",prefix:'Leaflet'},initialize:function(t){p(this,t);this._attributions={}},onAdd:function(t){t.attributionControl=this;this._container=he("div","leaflet-control-attribution");He(this._container);for(var e in t._layers){if(t._layers[e].getAttribution){this.addAttribution(t._layers[e].getAttribution())}}this._update();return this._container},setPrefix:function(t){this.options.prefix=t;this._update();return this},addAttribution:function(t){if(!t){return this}if(!this._attributions[t]){this._attributions[t]=0}this._attributions[t]++;this._update();return this},removeAttribution:function(t){if(!t){return this}if(this._attributions[t]){this._attributions[t]--;this._update()}return this},_update:function(){if(!this._map){return}var t=[];for(var e in this._attributions){if(this._attributions[e]){t.push(e)}}var i=[];if(this.options.prefix){i.push(this.options.prefix)}if(t.length){i.push(t.join(", "))}this._container.innerHTML=i.join(" | ")}});oi.mergeOptions({attributionControl:true});oi.addInitHook((function(){if(this.options.attributionControl){(new _i).addTo(this)}}));var pi=function(t){return new _i(t)};si.Layers=hi;si.Zoom=li;si.Scale=fi;si.Attribution=_i;ai.layers=ui;ai.zoom=ci;ai.scale=di;ai.attribution=pi;var mi=E.extend({initialize:function(t){this._map=t},enable:function(){if(this._enabled){return this}this._enabled=true;this.addHooks();return this},disable:function(){if(!this._enabled){return this}this._enabled=false;this.removeHooks();return this},enabled:function(){return!!this._enabled}});mi.addTo=function(t,e){t.addHandler(e,this);return this};var gi={Events:A};var vi=Ct?"touchstart mousedown":"mousedown";var yi={mousedown:"mouseup",touchstart:"touchend",pointerdown:"touchend",MSPointerDown:"touchend"};var Li={mousedown:"mousemove",touchstart:"touchmove",pointerdown:"touchmove",MSPointerDown:"touchmove"};var xi=Z.extend({options:{clickTolerance:3},initialize:function(t,e,i,n){p(this,n);this._element=t;this._dragStartTarget=e||t;this._preventOutline=i},enable:function(){if(this._enabled){return}je(this._dragStartTarget,vi,this._onDown,this);this._enabled=true},disable:function(){if(!this._enabled){return}if(xi._dragging===this){this.finishDrag()}De(this._dragStartTarget,vi,this._onDown,this);this._enabled=false;this._moved=false},_onDown:function(t){if(t._simulated||!this._enabled){return}this._moved=false;if(de(this._element,"leaflet-zoom-anim")){return}if(xi._dragging||t.shiftKey||t.which!==1&&t.button!==1&&!t.touches){return}xi._dragging=this;if(this._preventOutline){Oe(this._element)}ke();Pe();if(this._moving){return}this.fire("down");var e=t.touches?t.touches[0]:t,i=Ze(this._element);this._startPoint=new I(e.clientX,e.clientY);this._parentScale=Ie(i);je(document,Li[t.type],this._onMove,this);je(document,yi[t.type],this._onUp,this)},_onMove:function(t){if(t._simulated||!this._enabled){return}if(t.touches&&t.touches.length>1){this._moved=true;return}var e=t.touches&&t.touches.length===1?t.touches[0]:t,i=new I(e.clientX,e.clientY)._subtract(this._startPoint);if(!i.x&&!i.y){return}if(Math.abs(i.x)+Math.abs(i.y)r){s=a;r=h}}if(r>i){e[s]=1;Ti(t,e,i,n,s);Ti(t,e,i,s,o)}}function Mi(t,e){var i=[t[0]];for(var n=1,o=0,r=t.length;ne){i.push(t[n]);o=n}}if(oe.max.x){i|=2}if(t.ye.max.y){i|=8}return i}function Oi(t,e){var i=e.x-t.x,n=e.y-t.y;return i*i+n*n}function Ai(t,e,i,n){var o=e.x,r=e.y,s=i.x-o,a=i.y-r,h=s*s+a*a,u;if(h>0){u=((t.x-o)*s+(t.y-r)*a)/h;if(u>1){o=i.x;r=i.y}else if(u>0){o+=s*u;r+=a*u}}s=t.x-o;a=t.y-r;return n?s*s+a*a:new I(o,r)}function Zi(t){return!y(t[0])||typeof t[0][0]!=="object"&&typeof t[0][0]!=="undefined"}function Ii(e){t.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead.");return Zi(e)}var Bi=(Object.freeze||Object)({simplify:wi,pointToSegmentDistance:bi,closestPointOnSegment:Pi,clipSegment:Si,_getEdgeIntersection:zi,_getBitCode:Ei,_sqClosestPointOnSegment:Ai,isFlat:Zi,_flat:Ii});function ji(t,e,i){var n,o=[1,4,2,8],r,s,a,h,u,l,c,f;for(r=0,l=t.length;r1e-7;a++){u=o*Math.sin(s);u=Math.pow((1-u)/(1+u),o/2);h=Math.PI/2-2*Math.atan(r*u)-s;s+=h}return new U(s*e,t.x*e/i)}};var Fi=(Object.freeze||Object)({LonLat:Di,Mercator:Ri,SphericalMercator:V});var Ui=o({},q,{code:"EPSG:3395",projection:Ri,transformation:function(){var t=.5/(Math.PI*Ri.R);return Y(t,.5,-t,.5)}()});var Gi=o({},q,{code:"EPSG:4326",projection:Di,transformation:Y(1/180,1,-1/180,.5)});var Hi=o({},H,{projection:Di,transformation:Y(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,n=e.lat-t.lat;return Math.sqrt(i*i+n*n)},infinite:true});H.Earth=q;H.EPSG3395=Ui;H.EPSG3857=J;H.EPSG900913=X;H.EPSG4326=Gi;H.Simple=Hi;var qi=Z.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:true},addTo:function(t){t.addLayer(this);return this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(t){if(t){t.removeLayer(this)}return this},getPane:function(t){return this._map.getPane(t?this.options[t]||t:this.options.pane)},addInteractiveTarget:function(t){this._map._targets[h(t)]=this;return this},removeInteractiveTarget:function(t){delete this._map._targets[h(t)];return this},getAttribution:function(){return this.options.attribution},_layerAdd:function(t){var e=t.target;if(!e.hasLayer(this)){return}this._map=e;this._zoomAnimated=e._zoomAnimated;if(this.getEvents){var i=this.getEvents();e.on(i,this);this.once("remove",(function(){e.off(i,this)}),this)}this.onAdd(e);if(this.getAttribution&&e.attributionControl){e.attributionControl.addAttribution(this.getAttribution())}this.fire("add");e.fire("layeradd",{layer:this})}});oi.include({addLayer:function(t){if(!t._layerAdd){throw new Error("The provided object is not a Layer.")}var e=h(t);if(this._layers[e]){return this}this._layers[e]=t;t._mapToAdd=this;if(t.beforeAdd){t.beforeAdd(this)}this.whenReady(t._layerAdd,t);return this},removeLayer:function(t){var e=h(t);if(!this._layers[e]){return this}if(this._loaded){t.onRemove(this)}if(t.getAttribution&&this.attributionControl){this.attributionControl.removeAttribution(t.getAttribution())}delete this._layers[e];if(this._loaded){this.fire("layerremove",{layer:t});t.fire("remove")}t._map=t._mapToAdd=null;return this},hasLayer:function(t){return!!t&&h(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){t=t?y(t)?t:[t]:[];for(var e=0,i=t.length;ethis._layersMaxZoom){this.setZoom(this._layersMaxZoom)}if(this.options.minZoom===undefined&&this._layersMinZoom&&this.getZoom()e){s=(n-e)/i;return this._map.layerPointToLatLng([r.x-s*(r.x-o.x),r.y-s*(r.y-o.y)])}}},getBounds:function(){return this._bounds},addLatLng:function(t,e){e=e||this._defaultShape();t=G(t);e.push(t);this._bounds.extend(t);return this.redraw()},_setLatLngs:function(t){this._bounds=new R;this._latlngs=this._convertLatLngs(t)},_defaultShape:function(){return Zi(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(t){var e=[],i=Zi(t);for(var n=0,o=t.length;n=2&&e[0]instanceof U&&e[0].equals(e[i-1])){e.pop()}return e},_setLatLngs:function(t){hn.prototype._setLatLngs.call(this,t);if(Zi(this._latlngs)){this._latlngs=[this._latlngs]}},_defaultShape:function(){return Zi(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var t=this._renderer._bounds,e=this.options.weight,i=new I(e,e);t=new N(t.min.subtract(i),t.max.add(i));this._parts=[];if(!this._pxBounds||!this._pxBounds.intersects(t)){return}if(this.options.noClip){this._parts=this._rings;return}for(var n=0,o=this._rings.length,r;nt.y!==o.y>t.y&&t.x<(o.x-n.x)*(t.y-n.y)/(o.y-n.y)+n.x){e=!e}}}return e||hn.prototype._containsPoint.call(this,t,true)}});function cn(t,e){return new ln(t,e)}var fn=Ki.extend({initialize:function(t,e){p(this,e);this._layers={};if(t){this.addData(t)}},addData:function(t){var e=y(t)?t:t.features,i,n,o;if(e){for(i=0,n=e.length;i0?n:[e.src];return}if(!y(this._url)){this._url=[this._url]}if(!this.options.keepAspectRatio&&e.style.hasOwnProperty("objectFit")){e.style["objectFit"]="fill"}e.autoplay=!!this.options.autoplay;e.loop=!!this.options.loop;for(var r=0;ro){e.height=o+"px";_e(t,r)}else{pe(t,r)}this._containerWidth=this._container.offsetWidth},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center),i=this._getAnchor();we(this._container,e.add(i))},_adjustPan:function(){if(!this.options.autoPan){return}if(this._map._panAnim){this._map._panAnim.stop()}var t=this._map,e=parseInt(ae(this._container,"marginBottom"),10)||0,i=this._container.offsetHeight+e,n=this._containerWidth,o=new I(this._containerLeft,-i-this._containerBottom);o._add(be(this._container));var r=t.layerPointToContainerPoint(o),s=j(this.options.autoPanPadding),a=j(this.options.autoPanPaddingTopLeft||s),h=j(this.options.autoPanPaddingBottomRight||s),u=t.getSize(),l=0,c=0;if(r.x+n+h.x>u.x){l=r.x+n-u.x+h.x}if(r.x-l-a.x<0){l=r.x-a.x}if(r.y+i+h.y>u.y){c=r.y+i-u.y+h.y}if(r.y-c-a.y<0){c=r.y-a.y}if(l||c){t.fire("autopanstart").panBy([l,c])}},_onCloseButtonClick:function(t){this._close();We(t)},_getAnchor:function(){return j(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}});var On=function(t,e){return new En(t,e)};oi.mergeOptions({closePopupOnClick:true});oi.include({openPopup:function(t,e,i){if(!(t instanceof En)){t=new En(i).setContent(t)}if(e){t.setLatLng(e)}if(this.hasLayer(t)){return this}if(this._popup&&this._popup.options.autoClose){this.closePopup()}this._popup=t;return this.addLayer(t)},closePopup:function(t){if(!t||t===this._popup){t=this._popup;this._popup=null}if(t){this.removeLayer(t)}return this}});qi.include({bindPopup:function(t,e){if(t instanceof En){p(t,e);this._popup=t;t._source=this}else{if(!this._popup||e){this._popup=new En(e,this)}this._popup.setContent(t)}if(!this._popupHandlersAdded){this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup});this._popupHandlersAdded=true}return this},unbindPopup:function(){if(this._popup){this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup});this._popupHandlersAdded=false;this._popup=null}return this},openPopup:function(t,e){if(this._popup&&this._map){e=this._popup._prepareOpen(this,t,e);this._map.openPopup(this._popup,e)}return this},closePopup:function(){if(this._popup){this._popup._close()}return this},togglePopup:function(t){if(this._popup){if(this._popup._map){this.closePopup()}else{this.openPopup(t)}}return this},isPopupOpen:function(){return this._popup?this._popup.isOpen():false},setPopupContent:function(t){if(this._popup){this._popup.setContent(t)}return this},getPopup:function(){return this._popup},_openPopup:function(t){var e=t.layer||t.target;if(!this._popup){return}if(!this._map){return}We(t);if(e instanceof nn){this.openPopup(t.layer||t.target,t.latlng);return}if(this._map.hasLayer(this._popup)&&this._popup._source===e){this.closePopup()}else{this.openPopup(e,t.latlng)}},_movePopup:function(t){this._popup.setLatLng(t.latlng)},_onKeyPress:function(t){if(t.originalEvent.keyCode===13){this._openPopup(t)}}});var An=zn.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:false,sticky:false,interactive:false,opacity:.9},onAdd:function(t){zn.prototype.onAdd.call(this,t);this.setOpacity(this.options.opacity);t.fire("tooltipopen",{tooltip:this});if(this._source){this._source.fire("tooltipopen",{tooltip:this},true)}},onRemove:function(t){zn.prototype.onRemove.call(this,t);t.fire("tooltipclose",{tooltip:this});if(this._source){this._source.fire("tooltipclose",{tooltip:this},true)}},getEvents:function(){var t=zn.prototype.getEvents.call(this);if(Ct&&!this.options.permanent){t.preclick=this._close}return t},_close:function(){if(this._map){this._map.closeTooltip(this)}},_initLayout:function(){var t="leaflet-tooltip",e=t+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=he("div",e)},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(t){var e=this._map,i=this._container,n=e.latLngToContainerPoint(e.getCenter()),o=e.layerPointToContainerPoint(t),r=this.options.direction,s=i.offsetWidth,a=i.offsetHeight,h=j(this.options.offset),u=this._getAnchor();if(r==="top"){t=t.add(j(-s/2+h.x,-a+h.y+u.y,true))}else if(r==="bottom"){t=t.subtract(j(s/2-h.x,-h.y,true))}else if(r==="center"){t=t.subtract(j(s/2+h.x,a/2-u.y+h.y,true))}else if(r==="right"||r==="auto"&&o.xthis.options.maxZoom||in){return this._retainParent(o,r,s,n)}return false},_retainChildren:function(t,e,i,n){for(var o=2*t;o<2*t+2;o++){for(var r=2*e;r<2*e+2;r++){var s=new I(o,r);s.z=i+1;var a=this._tileCoordsToKey(s),h=this._tiles[a];if(h&&h.active){h.retain=true;continue}else if(h&&h.loaded){h.retain=true}if(i+1this.options.maxZoom||this.options.minZoom!==undefined&&o1){this._setView(t,i);return}for(var c=o.min.y;c<=o.max.y;c++){for(var f=o.min.x;f<=o.max.x;f++){var d=new I(f,c);d.z=this._tileZoom;if(!this._isValidTile(d)){continue}var _=this._tiles[this._tileCoordsToKey(d)];if(_){_.current=true}else{s.push(d)}}}s.sort((function(t,e){return t.distanceTo(r)-e.distanceTo(r)}));if(s.length!==0){if(!this._loading){this._loading=true;this.fire("loading")}var p=document.createDocumentFragment();for(f=0;fi.max.x)||!e.wrapLat&&(t.yi.max.y)){return false}}if(!this.options.bounds){return true}var n=this._tileCoordsToBounds(t);return F(this.options.bounds).overlaps(n)},_keyToBounds:function(t){return this._tileCoordsToBounds(this._keyToTileCoords(t))},_tileCoordsToNwSe:function(t){var e=this._map,i=this.getTileSize(),n=t.scaleBy(i),o=n.add(i),r=e.unproject(n,t.z),s=e.unproject(o,t.z);return[r,s]},_tileCoordsToBounds:function(t){var e=this._tileCoordsToNwSe(t),i=new R(e[0],e[1]);if(!this.options.noWrap){i=this._map.wrapLatLngBounds(i)}return i},_tileCoordsToKey:function(t){return t.x+":"+t.y+":"+t.z},_keyToTileCoords:function(t){var e=t.split(":"),i=new I(+e[0],+e[1]);i.z=+e[2];return i},_removeTile:function(t){var e=this._tiles[t];if(!e){return}ue(e.el);delete this._tiles[t];this.fire("tileunload",{tile:e.el,coords:this._keyToTileCoords(t)})},_initTile:function(t){_e(t,"leaflet-tile");var e=this.getTileSize();t.style.width=e.x+"px";t.style.height=e.y+"px";t.onselectstart=c;t.onmousemove=c;if(it&&this.options.opacity<1){ve(t,this.options.opacity)}if(rt&&!st){t.style.WebkitBackfaceVisibility="hidden"}},_addTile:function(t,e){var i=this._getTilePos(t),n=this._tileCoordsToKey(t);var o=this.createTile(this._wrapCoords(t),s(this._tileReady,this,t));this._initTile(o);if(this.createTile.length<2){k(s(this._tileReady,this,t,null,o))}we(o,i);this._tiles[n]={el:o,coords:t,current:true};e.appendChild(o);this.fire("tileloadstart",{tile:o,coords:t})},_tileReady:function(t,e,i){if(e){this.fire("tileerror",{error:e,tile:i,coords:t})}var n=this._tileCoordsToKey(t);i=this._tiles[n];if(!i){return}i.loaded=+new Date;if(this._map._fadeAnimated){ve(i.el,0);S(this._fadeFrame);this._fadeFrame=k(this._updateOpacity,this)}else{i.active=true;this._pruneTiles()}if(!e){_e(i.el,"leaflet-tile-loaded");this.fire("tileload",{tile:i.el,coords:t})}if(this._noTilesToLoad()){this._loading=false;this.fire("load");if(it||!this._map._fadeAnimated){k(this._pruneTiles,this)}else{setTimeout(s(this._pruneTiles,this),250)}}},_getTilePos:function(t){return t.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(t){var e=new I(this._wrapX?l(t.x,this._wrapX):t.x,this._wrapY?l(t.y,this._wrapY):t.y);e.z=t.z;return e},_pxBoundsToTileRange:function(t){var e=this.getTileSize();return new N(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 false}}return true}});function Nn(t){return new jn(t)}var Dn=jn.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:false,zoomReverse:false,detectRetina:false,crossOrigin:false},initialize:function(t,e){this._url=t;e=p(this,e);if(e.detectRetina&&kt&&e.maxZoom>0){e.tileSize=Math.floor(e.tileSize/2);if(!e.zoomReverse){e.zoomOffset++;e.maxZoom--}else{e.zoomOffset--;e.minZoom++}e.minZoom=Math.max(0,e.minZoom)}if(typeof e.subdomains==="string"){e.subdomains=e.subdomains.split("")}if(!rt){this.on("tileunload",this._onTileRemove)}},setUrl:function(t,e){if(this._url===t&&e===undefined){e=true}this._url=t;if(!e){this.redraw()}return this},createTile:function(t,e){var i=document.createElement("img");je(i,"load",s(this._tileOnLoad,this,e,i));je(i,"error",s(this._tileOnError,this,e,i));if(this.options.crossOrigin||this.options.crossOrigin===""){i.crossOrigin=this.options.crossOrigin===true?"":this.options.crossOrigin}i.alt="";i.setAttribute("role","presentation");i.src=this.getTileUrl(t);return i},getTileUrl:function(t){var e={r:kt?"@2x":"",s:this._getSubdomain(t),x:t.x,y:t.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var i=this._globalTileRange.max.y-t.y;if(this.options.tms){e["y"]=i}e["-y"]=i}return v(this._url,o(e,this.options))},_tileOnLoad:function(t,e){if(it){setTimeout(s(t,this,null,e),0)}else{t(null,e)}},_tileOnError:function(t,e,i){var n=this.options.errorTileUrl;if(n&&e.getAttribute("src")!==n){e.src=n}t(i,e)},_onTileRemove:function(t){t.tile.onload=null},_getZoomForUrl:function(){var t=this._tileZoom,e=this.options.maxZoom,i=this.options.zoomReverse,n=this.options.zoomOffset;if(i){t=e-t}return t+n},_getSubdomain:function(t){var e=Math.abs(t.x+t.y)%this.options.subdomains.length;return this.options.subdomains[e]},_abortLoading:function(){var t,e;for(t in this._tiles){if(this._tiles[t].coords.z!==this._tileZoom){e=this._tiles[t].el;e.onload=c;e.onerror=c;if(!e.complete){e.src=w;ue(e);delete this._tiles[t]}}}},_removeTile:function(t){var e=this._tiles[t];if(!e){return}if(!ht){e.el.setAttribute("src",w)}return jn.prototype._removeTile.call(this,t)},_tileReady:function(t,e,i){if(!this._map||i&&i.getAttribute("src")===w){return}return jn.prototype._tileReady.call(this,t,e,i)}});function Rn(t,e){return new Dn(t,e)}var Fn=Dn.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:false,version:"1.1.1"},options:{crs:null,uppercase:false},initialize:function(t,e){this._url=t;var i=o({},this.defaultWmsParams);for(var n in e){if(!(n in this.options)){i[n]=e[n]}}e=p(this,e);var r=e.detectRetina&&kt?2:1;var s=this.getTileSize();i.width=s.x*r;i.height=s.y*r;this.wmsParams=i},onAdd:function(t){this._crs=this.options.crs||t.options.crs;this._wmsVersion=parseFloat(this.wmsParams.version);var e=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[e]=this._crs.code;Dn.prototype.onAdd.call(this,t)},getTileUrl:function(t){var e=this._tileCoordsToNwSe(t),i=this._crs,n=D(i.project(e[0]),i.project(e[1])),o=n.min,r=n.max,s=(this._wmsVersion>=1.3&&this._crs===Gi?[o.y,o.x,r.y,r.x]:[o.x,o.y,r.x,r.y]).join(","),a=Dn.prototype.getTileUrl.call(this,t);return a+m(this.wmsParams,a,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+s},setParams:function(t,e){o(this.wmsParams,t);if(!e){this.redraw()}return this}});function Un(t,e){return new Fn(t,e)}Dn.WMS=Fn;Rn.wms=Un;var Gn=qi.extend({options:{padding:.1,tolerance:0},initialize:function(t){p(this,t);h(this);this._layers=this._layers||{}},onAdd:function(){if(!this._container){this._initContainer();if(this._zoomAnimated){_e(this._container,"leaflet-zoom-animated")}}this.getPane().appendChild(this._container);this._update();this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this);this._destroyContainer()},getEvents:function(){var t={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};if(this._zoomAnimated){t.zoomanim=this._onAnimZoom}return t},_onAnimZoom:function(t){this._updateTransform(t.center,t.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(t,e){var i=this._map.getZoomScale(e,this._zoom),n=be(this._container),o=this._map.getSize().multiplyBy(.5+this.options.padding),r=this._map.project(this._center,e),s=this._map.project(t,e),a=s.subtract(r),h=o.multiplyBy(-i).add(n).add(o).subtract(a);if(yt){xe(this._container,h,i)}else{we(this._container,h)}},_reset:function(){this._update();this._updateTransform(this._center,this._zoom);for(var t in this._layers){this._layers[t]._reset()}},_onZoomEnd:function(){for(var t in this._layers){this._layers[t]._project()}},_updatePaths:function(){for(var t in this._layers){this._layers[t]._update()}},_update:function(){var t=this.options.padding,e=this._map.getSize(),i=this._map.containerPointToLayerPoint(e.multiplyBy(-t)).round();this._bounds=new N(i,i.add(e.multiplyBy(1+t*2)).round());this._center=this._map.getCenter();this._zoom=this._map.getZoom()}});var Hn=Gn.extend({getEvents:function(){var t=Gn.prototype.getEvents.call(this);t.viewprereset=this._onViewPreReset;return t},_onViewPreReset:function(){this._postponeUpdatePaths=true},onAdd:function(){Gn.prototype.onAdd.call(this);this._draw()},_initContainer:function(){var t=this._container=document.createElement("canvas");je(t,"mousemove",this._onMouseMove,this);je(t,"click dblclick mousedown mouseup contextmenu",this._onClick,this);je(t,"mouseout",this._handleMouseOut,this);this._ctx=t.getContext("2d")},_destroyContainer:function(){S(this._redrawRequest);delete this._ctx;ue(this._container);De(this._container);delete this._container},_updatePaths:function(){if(this._postponeUpdatePaths){return}var t;this._redrawBounds=null;for(var e in this._layers){t=this._layers[e];t._update()}this._redraw()},_update:function(){if(this._map._animatingZoom&&this._bounds){return}Gn.prototype._update.call(this);var t=this._bounds,e=this._container,i=t.getSize(),n=kt?2:1;we(e,t.min);e.width=n*i.x;e.height=n*i.y;e.style.width=i.x+"px";e.style.height=i.y+"px";if(kt){this._ctx.scale(2,2)}this._ctx.translate(-t.min.x,-t.min.y);this.fire("update")},_reset:function(){Gn.prototype._reset.call(this);if(this._postponeUpdatePaths){this._postponeUpdatePaths=false;this._updatePaths()}},_initPath:function(t){this._updateDashArray(t);this._layers[h(t)]=t;var e=t._order={layer:t,prev:this._drawLast,next:null};if(this._drawLast){this._drawLast.next=e}this._drawLast=e;this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(t){this._requestRedraw(t)},_removePath:function(t){var e=t._order;var i=e.next;var n=e.prev;if(i){i.prev=n}else{this._drawLast=n}if(n){n.next=i}else{this._drawFirst=i}delete t._order;delete this._layers[h(t)];this._requestRedraw(t)},_updatePath:function(t){this._extendRedrawBounds(t);t._project();t._update();this._requestRedraw(t)},_updateStyle:function(t){this._updateDashArray(t);this._requestRedraw(t)},_updateDashArray:function(t){if(typeof t.options.dashArray==="string"){var e=t.options.dashArray.split(/[, ]+/),i=[],n,o;for(o=0;o')}}catch(t){return function(t){return document.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}}();var Vn={_initContainer:function(){this._container=he("div","leaflet-vml-container")},_update:function(){if(this._map._animatingZoom){return}Gn.prototype._update.call(this);this.fire("update")},_initPath:function(t){var e=t._container=Wn("shape");_e(e,"leaflet-vml-shape "+(this.options.className||""));e.coordsize="1 1";t._path=Wn("path");e.appendChild(t._path);this._updateStyle(t);this._layers[h(t)]=t},_addPath:function(t){var e=t._container;this._container.appendChild(e);if(t.options.interactive){t.addInteractiveTarget(e)}},_removePath:function(t){var e=t._container;ue(e);t.removeInteractiveTarget(e);delete this._layers[h(t)]},_updateStyle:function(t){var e=t._stroke,i=t._fill,n=t.options,o=t._container;o.stroked=!!n.stroke;o.filled=!!n.fill;if(n.stroke){if(!e){e=t._stroke=Wn("stroke")}o.appendChild(e);e.weight=n.weight+"px";e.color=n.color;e.opacity=n.opacity;if(n.dashArray){e.dashStyle=y(n.dashArray)?n.dashArray.join(" "):n.dashArray.replace(/( *, *)/g," ")}else{e.dashStyle=""}e.endcap=n.lineCap.replace("butt","flat");e.joinstyle=n.lineJoin}else if(e){o.removeChild(e);t._stroke=null}if(n.fill){if(!i){i=t._fill=Wn("fill")}o.appendChild(i);i.color=n.fillColor||n.color;i.opacity=n.fillOpacity}else if(i){o.removeChild(i);t._fill=null}},_updateCircle:function(t){var e=t._point.round(),i=Math.round(t._radius),n=Math.round(t._radiusY||i);this._setPath(t,t._empty()?"M0 0":"AL "+e.x+","+e.y+" "+i+","+n+" 0,"+65535*360)},_setPath:function(t,e){t._path.v=e},_bringToFront:function(t){ce(t._container)},_bringToBack:function(t){fe(t._container)}};var Kn=Ot?Wn:$;var Yn=Gn.extend({getEvents:function(){var t=Gn.prototype.getEvents.call(this);t.zoomstart=this._onZoomStart;return t},_initContainer:function(){this._container=Kn("svg");this._container.setAttribute("pointer-events","none");this._rootGroup=Kn("g");this._container.appendChild(this._rootGroup)},_destroyContainer:function(){ue(this._container);De(this._container);delete this._container;delete this._rootGroup;delete this._svgSize},_onZoomStart:function(){this._update()},_update:function(){if(this._map._animatingZoom&&this._bounds){return}Gn.prototype._update.call(this);var t=this._bounds,e=t.getSize(),i=this._container;if(!this._svgSize||!this._svgSize.equals(e)){this._svgSize=e;i.setAttribute("width",e.x);i.setAttribute("height",e.y)}we(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=Kn("path");if(t.options.className){_e(e,t.options.className)}if(t.options.interactive){_e(e,"leaflet-interactive")}this._updateStyle(t);this._layers[h(t)]=t},_addPath:function(t){if(!this._rootGroup){this._initContainer()}this._rootGroup.appendChild(t._path);t.addInteractiveTarget(t._path)},_removePath:function(t){ue(t._path);t.removeInteractiveTarget(t._path);delete this._layers[h(t)]},_updatePath:function(t){t._project();t._update()},_updateStyle:function(t){var e=t._path,i=t.options;if(!e){return}if(i.stroke){e.setAttribute("stroke",i.color);e.setAttribute("stroke-opacity",i.opacity);e.setAttribute("stroke-width",i.weight);e.setAttribute("stroke-linecap",i.lineCap);e.setAttribute("stroke-linejoin",i.lineJoin);if(i.dashArray){e.setAttribute("stroke-dasharray",i.dashArray)}else{e.removeAttribute("stroke-dasharray")}if(i.dashOffset){e.setAttribute("stroke-dashoffset",i.dashOffset)}else{e.removeAttribute("stroke-dashoffset")}}else{e.setAttribute("stroke","none")}if(i.fill){e.setAttribute("fill",i.fillColor||i.color);e.setAttribute("fill-opacity",i.fillOpacity);e.setAttribute("fill-rule",i.fillRule||"evenodd")}else{e.setAttribute("fill","none")}},_updatePoly:function(t,e){this._setPath(t,Q(t._parts,e))},_updateCircle:function(t){var e=t._point,i=Math.max(Math.round(t._radius),1),n=Math.max(Math.round(t._radiusY),1)||i,o="a"+i+","+n+" 0 1,0 ";var r=t._empty()?"M0 0":"M"+(e.x-i)+","+e.y+o+i*2+",0 "+o+-i*2+",0 ";this._setPath(t,r)},_setPath:function(t,e){t._path.setAttribute("d",e)},_bringToFront:function(t){ce(t._path)},_bringToBack:function(t){fe(t._path)}});if(Ot){Yn.include(Vn)}function Jn(t){return Et||Ot?new Yn(t):null}oi.include({getRenderer:function(t){var e=t.options.renderer||this._getPaneRenderer(t.options.pane)||this.options.renderer||this._renderer;if(!e){e=this._renderer=this._createRenderer()}if(!this.hasLayer(e)){this.addLayer(e)}return e},_getPaneRenderer:function(t){if(t==="overlayPane"||t===undefined){return false}var e=this._paneRenderers[t];if(e===undefined){e=this._createRenderer({pane:t});this._paneRenderers[t]=e}return e},_createRenderer:function(t){return this.options.preferCanvas&&qn(t)||Jn(t)}});var Xn=ln.extend({initialize:function(t,e){ln.prototype.initialize.call(this,this._boundsToLatLngs(t),e)},setBounds:function(t){return this.setLatLngs(this._boundsToLatLngs(t))},_boundsToLatLngs:function(t){t=F(t);return[t.getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}});function $n(t,e){return new Xn(t,e)}Yn.create=Kn;Yn.pointsToPath=Q;fn.geometryToLayer=dn;fn.coordsToLatLng=pn;fn.coordsToLatLngs=mn;fn.latLngToCoords=gn;fn.latLngsToCoords=vn;fn.getFeature=yn;fn.asFeature=Ln;oi.mergeOptions({boxZoom:true});var Qn=mi.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(){je(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){De(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){ue(this._pane);delete this._pane},_resetState:function(){this._resetStateTimeout=0;this._moved=false},_clearDeferredResetState:function(){if(this._resetStateTimeout!==0){clearTimeout(this._resetStateTimeout);this._resetStateTimeout=0}},_onMouseDown:function(t){if(!t.shiftKey||t.which!==1&&t.button!==1){return false}this._clearDeferredResetState();this._resetState();Pe();ke();this._startPoint=this._map.mouseEventToContainerPoint(t);je(document,{contextmenu:We,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(t){if(!this._moved){this._moved=true;this._box=he("div","leaflet-zoom-box",this._container);_e(this._container,"leaflet-crosshair");this._map.fire("boxzoomstart")}this._point=this._map.mouseEventToContainerPoint(t);var e=new N(this._point,this._startPoint),i=e.getSize();we(this._box,e.min);this._box.style.width=i.x+"px";this._box.style.height=i.y+"px"},_finish:function(){if(this._moved){ue(this._box);pe(this._container,"leaflet-crosshair")}Ce();Se();De(document,{contextmenu:We,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(t){if(t.which!==1&&t.button!==1){return}this._finish();if(!this._moved){return}this._clearDeferredResetState();this._resetStateTimeout=setTimeout(s(this._resetState,this),0);var e=new R(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(e).fire("boxzoomend",{boxZoomBounds:e})},_onKeyDown:function(t){if(t.keyCode===27){this._finish()}}});oi.addInitHook("addHandler","boxZoom",Qn);oi.mergeOptions({doubleClickZoom:true});var to=mi.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(),n=e.options.zoomDelta,o=t.originalEvent.shiftKey?i-n:i+n;if(e.options.doubleClickZoom==="center"){e.setZoom(o)}else{e.setZoomAround(t.containerPoint,o)}}});oi.addInitHook("addHandler","doubleClickZoom",to);oi.mergeOptions({dragging:true,inertia:!st,inertiaDeceleration:3400,inertiaMaxSpeed:Infinity,easeLinearity:.2,worldCopyJump:false,maxBoundsViscosity:0});var eo=mi.extend({addHooks:function(){if(!this._draggable){var t=this._map;this._draggable=new xi(t._mapPane,t._container);this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this);this._draggable.on("predrag",this._onPreDragLimit,this);if(t.options.worldCopyJump){this._draggable.on("predrag",this._onPreDragWrap,this);t.on("zoomend",this._onZoomEnd,this);t.whenReady(this._onZoomEnd,this)}}_e(this._map._container,"leaflet-grab leaflet-touch-drag");this._draggable.enable();this._positions=[];this._times=[]},removeHooks:function(){pe(this._map._container,"leaflet-grab");pe(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=this._map;t._stop();if(this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var e=F(this._map.options.maxBounds);this._offsetLimit=D(this._map.latLngToContainerPoint(e.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(e.getSouthEast()).multiplyBy(-1).add(this._map.getSize()));this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else{this._offsetLimit=null}t.fire("movestart").fire("dragstart");if(t.options.inertia){this._positions=[];this._times=[]}},_onDrag:function(t){if(this._map.options.inertia){var 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){while(this._positions.length>1&&t-this._times[0]>50){this._positions.shift();this._times.shift()}},_onZoomEnd:function(){var t=this._map.getSize().divideBy(2),e=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=e.subtract(t).x;this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(t,e){return t-(t-e)*this._viscosity},_onPreDragLimit:function(){if(!this._viscosity||!this._offsetLimit){return}var t=this._draggable._newPos.subtract(this._draggable._startPos);var e=this._offsetLimit;if(t.xe.max.x){t.x=this._viscousLimit(t.x,e.max.x)}if(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,n=this._draggable._newPos.x,o=(n-e+i)%t+e-i,r=(n+e+i)%t-e-i,s=Math.abs(o+i)0?r:-r))-e;this._delta=0;this._startTime=null;if(!s){return}if(t.options.scrollWheelZoom==="center"){t.setZoom(e+s)}else{t.setZoomAround(this._lastMousePos,e+s)}}});oi.addInitHook("addHandler","scrollWheelZoom",no);oi.mergeOptions({tap:true,tapTolerance:15});var oo=mi.extend({addHooks:function(){je(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){De(this._map._container,"touchstart",this._onDown,this)},_onDown:function(t){if(!t.touches){return}qe(t);this._fireClick=true;if(t.touches.length>1){this._fireClick=false;clearTimeout(this._holdTimeout);return}var e=t.touches[0],i=e.target;this._startPos=this._newPos=new I(e.clientX,e.clientY);if(i.tagName&&i.tagName.toLowerCase()==="a"){_e(i,"leaflet-active")}this._holdTimeout=setTimeout(s((function(){if(this._isTapValid()){this._fireClick=false;this._onUp();this._simulateEvent("contextmenu",e)}}),this),1e3);this._simulateEvent("mousedown",e);je(document,{touchmove:this._onMove,touchend:this._onUp},this)},_onUp:function(t){clearTimeout(this._holdTimeout);De(document,{touchmove:this._onMove,touchend:this._onUp},this);if(this._fireClick&&t&&t.changedTouches){var e=t.changedTouches[0],i=e.target;if(i&&i.tagName&&i.tagName.toLowerCase()==="a"){pe(i,"leaflet-active")}this._simulateEvent("mouseup",e);if(this._isTapValid()){this._simulateEvent("click",e)}}},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_onMove:function(t){var e=t.touches[0];this._newPos=new I(e.clientX,e.clientY);this._simulateEvent("mousemove",e)},_simulateEvent:function(t,e){var i=document.createEvent("MouseEvents");i._simulated=true;e.target._simulatedClick=true;i.initMouseEvent(t,true,true,window,1,e.screenX,e.screenY,e.clientX,e.clientY,false,false,false,false,0,null);e.target.dispatchEvent(i)}});if(Ct&&!Pt){oi.addInitHook("addHandler","tap",oo)}oi.mergeOptions({touchZoom:Ct&&!st,bounceAtZoomLimits:true});var ro=mi.extend({addHooks:function(){_e(this._map._container,"leaflet-touch-zoom");je(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){pe(this._map._container,"leaflet-touch-zoom");De(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(t){var e=this._map;if(!t.touches||t.touches.length!==2||e._animatingZoom||this._zooming){return}var i=e.mouseEventToContainerPoint(t.touches[0]),n=e.mouseEventToContainerPoint(t.touches[1]);this._centerPoint=e.getSize()._divideBy(2);this._startLatLng=e.containerPointToLatLng(this._centerPoint);if(e.options.touchZoom!=="center"){this._pinchStartLatLng=e.containerPointToLatLng(i.add(n)._divideBy(2))}this._startDist=i.distanceTo(n);this._startZoom=e.getZoom();this._moved=false;this._zooming=true;e._stop();je(document,"touchmove",this._onTouchMove,this);je(document,"touchend",this._onTouchEnd,this);qe(t)},_onTouchMove:function(t){if(!t.touches||t.touches.length!==2||!this._zooming){return}var e=this._map,i=e.mouseEventToContainerPoint(t.touches[0]),n=e.mouseEventToContainerPoint(t.touches[1]),o=i.distanceTo(n)/this._startDist;this._zoom=e.getScaleZoom(o,this._startZoom);if(!e.options.bounceAtZoomLimits&&(this._zoome.getMaxZoom()&&o>1)){this._zoom=e._limitZoom(this._zoom)}if(e.options.touchZoom==="center"){this._center=this._startLatLng;if(o===1){return}}else{var r=i._add(n)._divideBy(2)._subtract(this._centerPoint);if(o===1&&r.x===0&&r.y===0){return}this._center=e.unproject(e.project(this._pinchStartLatLng,this._zoom).subtract(r),this._zoom)}if(!this._moved){e._moveStart(true,false);this._moved=true}S(this._animRequest);var a=s(e._move,e,this._center,this._zoom,{pinch:true,round:false});this._animRequest=k(a,this,true);qe(t)},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=false;return}this._zooming=false;S(this._animRequest);De(document,"touchmove",this._onTouchMove);De(document,"touchend",this._onTouchEnd);if(this._map.options.zoomAnimation){this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),true,this._map.options.zoomSnap)}else{this._map._resetView(this._center,this._map._limitZoom(this._zoom))}}});oi.addInitHook("addHandler","touchZoom",ro);oi.BoxZoom=Qn;oi.DoubleClickZoom=to;oi.Drag=eo;oi.Keyboard=io;oi.ScrollWheelZoom=no;oi.Tap=oo;oi.TouchZoom=ro;Object.freeze=n;e.version=i;e.Control=si;e.control=ai;e.Browser=Zt;e.Evented=Z;e.Mixin=gi;e.Util=z;e.Class=E;e.Handler=mi;e.extend=o;e.bind=s;e.stamp=h;e.setOptions=p;e.DomEvent=ii;e.DomUtil=Be;e.PosAnimation=ni;e.Draggable=xi;e.LineUtil=Bi;e.PolyUtil=Ni;e.Point=I;e.point=j;e.Bounds=N;e.bounds=D;e.Transformation=K;e.transformation=Y;e.Projection=Fi;e.LatLng=U;e.latLng=G;e.LatLngBounds=R;e.latLngBounds=F;e.CRS=H;e.GeoJSON=fn;e.geoJSON=wn;e.geoJson=bn;e.Layer=qi;e.LayerGroup=Wi;e.layerGroup=Vi;e.FeatureGroup=Ki;e.featureGroup=Yi;e.ImageOverlay=Pn;e.imageOverlay=Cn;e.VideoOverlay=Tn;e.videoOverlay=Mn;e.SVGOverlay=kn;e.svgOverlay=Sn;e.DivOverlay=zn;e.Popup=En;e.popup=On;e.Tooltip=An;e.tooltip=Zn;e.Icon=Ji;e.icon=Xi;e.DivIcon=In;e.divIcon=Bn;e.Marker=tn;e.marker=en;e.TileLayer=Dn;e.tileLayer=Rn;e.GridLayer=jn;e.gridLayer=Nn;e.SVG=Yn;e.svg=Jn;e.Renderer=Gn;e.Canvas=Hn;e.canvas=qn;e.Path=nn;e.CircleMarker=on;e.circleMarker=rn;e.Circle=sn;e.circle=an;e.Polyline=hn;e.polyline=un;e.Polygon=ln;e.polygon=cn;e.Rectangle=Xn;e.rectangle=$n;e.Map=oi;e.map=ri;var so=window.L;e.noConflict=function(){window.L=so;return this};window.L=e}))}).call(this,i(5))},520:function(t,e,i){},521:function(t,e,i){"use strict";i.r(e);e["default"]=i.p+"leaflet/dist/images/marker-icon-2x.png"},522:function(t,e,i){"use strict";i.r(e);e["default"]=i.p+"leaflet/dist/images/marker-shadow.png"},523:function(t,e,i){var n,o;(function(r,s){if(true){!(n=[i(519),i(524)],o=function(t,e){r(t,e)}.apply(e,n),o!==undefined&&(t.exports=o))}else{}})((function t(e,i){var n={spin:function(t,e){if(!!t){if(!this._spinner){this._spinner=new i(e).spin(this._container);this._spinning=0}this._spinning++}else{this._spinning--;if(this._spinning<=0){if(this._spinner){this._spinner.stop();this._spinner=null}}}}};var o=function(){this.on("layeradd",(function(t){if(t.layer.loading)this.spin(true);if(typeof t.layer.on!=="function")return;t.layer.on("data:loading",(function(){this.spin(true)}),this);t.layer.on("data:loaded",(function(){this.spin(false)}),this)}),this);this.on("layerremove",(function(t){if(t.layer.loading)this.spin(false);if(typeof t.layer.on!=="function")return;t.layer.off("data:loaded");t.layer.off("data:loading")}),this)};e.Map.include(n);e.Map.addInitHook(o)}),window)},524:function(t,e,i){var n,o;(function(r,s){if(true&&t.exports)t.exports=s();else if(true)!(n=s,o=typeof n==="function"?n.call(e,i,e,t):n,o!==undefined&&(t.exports=o));else{}})(this,(function(){"use strict";var t=["webkit","Moz","ms","O"],e={},i,n;function o(t,e){var i=document.createElement(t||"div"),n;for(n in e)i[n]=e[n];return i}function r(t){for(var e=1,i=arguments.length;e>1)+"px"})}for(;n',e)}n.addRule(".spin-vml","behavior:url(#default#VML)");f.prototype.lines=function(e,i){var n=i.scale*(i.length+i.width),o=i.scale*2*n;function s(){return h(t("group",{coordsize:o+" "+o,coordorigin:-n+" "+-n}),{width:o,height:o})}var a=-(i.width+i.length)*i.scale*2+"px",u=h(s(),{position:"absolute",top:a,left:a}),c;function f(e,o,a){r(u,r(h(s(),{rotation:360/i.lines*e+"deg",left:~~o}),r(h(t("roundrect",{arcsize:i.corners}),{width:n,height:i.scale*i.width,left:i.scale*i.radius,top:-i.scale*i.width>>1,filter:a}),t("fill",{color:l(i.color,e),opacity:i.opacity}),t("stroke",{opacity:0}))))}if(i.shadow)for(c=1;c<=i.lines;c++){f(c,-2,"progid:DXImageTransform.Microsoft.Blur(pixelradius=2,makeshadow=1,shadowopacity=.3)")}for(c=1;c<=i.lines;c++)f(c);return r(e,u)};f.prototype.opacity=function(t,e,i,n){var o=t.firstChild;n=n.shadow&&n.lines||0;if(o&&e+n=i){e=e.__parent}}if(this._currentShownBounds.contains(e.getLatLng())){if(this.options.animateAddingMarkers){this._animationAddLayer(t,e)}else{this._animationAddLayerNonAnimated(t,e)}}return this},removeLayer:function(t){if(t instanceof L.LayerGroup){return this.removeLayers([t])}if(!t.getLatLng){this._nonPointGroup.removeLayer(t);this.fire("layerremove",{layer:t});return this}if(!this._map){if(!this._arraySplice(this._needsClustering,t)&&this.hasLayer(t)){this._needsRemoving.push({layer:t,latlng:t._latlng})}this.fire("layerremove",{layer:t});return this}if(!t.__parent){return this}if(this._unspiderfy){this._unspiderfy();this._unspiderfyLayer(t)}this._removeLayer(t,true);this.fire("layerremove",{layer:t});this._topClusterLevel._recalculateBounds();this._refreshClustersIcons();t.off(this._childMarkerEventHandlers,this);if(this._featureGroup.hasLayer(t)){this._featureGroup.removeLayer(t);if(t.clusterShow){t.clusterShow()}}return this},addLayers:function(t,e){if(!L.Util.isArray(t)){return this.addLayer(t)}var i=this._featureGroup,n=this._nonPointGroup,o=this.options.chunkedLoading,r=this.options.chunkInterval,s=this.options.chunkProgress,a=t.length,h=0,u=true,l;if(this._map){var c=(new Date).getTime();var f=L.bind((function(){var d=(new Date).getTime();for(;hr){break}}l=t[h];if(l instanceof L.LayerGroup){if(u){t=t.slice();u=false}this._extractNonGroupLayers(l,t);a=t.length;continue}if(!l.getLatLng){n.addLayer(l);if(!e){this.fire("layeradd",{layer:l})}continue}if(this.hasLayer(l)){continue}this._addLayer(l,this._maxZoom);if(!e){this.fire("layeradd",{layer:l})}if(l.__parent){if(l.__parent.getChildCount()===2){var p=l.__parent.getAllChildMarkers(),m=p[0]===l?p[1]:p[0];i.removeLayer(m)}}}if(s){s(h,a,(new Date).getTime()-c)}if(h===a){this._topClusterLevel._recalculateBounds();this._refreshClustersIcons();this._topClusterLevel._recursivelyAddChildrenToMap(null,this._zoom,this._currentShownBounds)}else{setTimeout(f,this.options.chunkDelay)}}),this);f()}else{var d=this._needsClustering;for(;h=0;e--){t.extend(this._needsClustering[e].getLatLng())}t.extend(this._nonPointGroup.getBounds());return t},eachLayer:function(t,e){var i=this._needsClustering.slice(),n=this._needsRemoving,o,r,s;if(this._topClusterLevel){this._topClusterLevel.getAllChildMarkers(i)}for(r=i.length-1;r>=0;r--){o=true;for(s=n.length-1;s>=0;s--){if(n[s].layer===i[r]){o=false;break}}if(o){t.call(e,i[r])}}this._nonPointGroup.eachLayer(t,e)},getLayers:function(){var t=[];this.eachLayer((function(e){t.push(e)}));return t},getLayer:function(t){var e=null;t=parseInt(t,10);this.eachLayer((function(i){if(L.stamp(i)===t){e=i}}));return e},hasLayer:function(t){if(!t){return false}var e,i=this._needsClustering;for(e=i.length-1;e>=0;e--){if(i[e]===t){return true}}i=this._needsRemoving;for(e=i.length-1;e>=0;e--){if(i[e].layer===t){return false}}return!!(t.__parent&&t.__parent._group===this)||this._nonPointGroup.hasLayer(t)},zoomToShowLayer:function(t,e){if(typeof e!=="function"){e=function(){}}var i=function(){if((t._icon||t.__parent._icon)&&!this._inZoomAnimation){this._map.off("moveend",i,this);this.off("animationend",i,this);if(t._icon){e()}else if(t.__parent._icon){this.once("spiderfied",e,this);t.__parent.spiderfy()}}};if(t._icon&&this._map.getBounds().contains(t.getLatLng())){e()}else if(t.__parent._zoom=0;i--){if(t[i]===e){t.splice(i,1);return true}}},_removeFromGridUnclustered:function(t,e){var i=this._map,n=this._gridUnclustered,o=Math.floor(this._map.getMinZoom());for(;e>=o;e--){if(!n[e].removeObject(t,i.project(t.getLatLng(),e))){break}}},_childMarkerDragStart:function(t){t.target.__dragStart=t.target._latlng},_childMarkerMoved:function(t){if(!this._ignoreMove&&!t.target.__dragStart){var e=t.target._popup&&t.target._popup.isOpen();this._moveChild(t.target,t.oldLatLng,t.latlng);if(e){t.target.openPopup()}}},_moveChild:function(t,e,i){t._latlng=e;this.removeLayer(t);t._latlng=i;this.addLayer(t)},_childMarkerDragEnd:function(t){var e=t.target.__dragStart;delete t.target.__dragStart;if(e){this._moveChild(t.target,e,t.target._latlng)}},_removeLayer:function(t,e,i){var n=this._gridClusters,o=this._gridUnclustered,r=this._featureGroup,s=this._map,a=Math.floor(this._map.getMinZoom());if(e){this._removeFromGridUnclustered(t,this._maxZoom)}var h=t.__parent,u=h._markers,l;this._arraySplice(u,t);while(h){h._childCount--;h._boundsNeedUpdate=true;if(h._zoom"+e+"",className:"marker-cluster"+i,iconSize:new L.Point(40,40)})},_bindEvents:function(){var t=this._map,e=this.options.spiderfyOnMaxZoom,i=this.options.showCoverageOnHover,n=this.options.zoomToBoundsOnClick;if(e||n){this.on("clusterclick",this._zoomOrSpiderfy,this)}if(i){this.on("clustermouseover",this._showCoverage,this);this.on("clustermouseout",this._hideCoverage,this);t.on("zoomend",this._hideCoverage,this)}},_zoomOrSpiderfy:function(t){var e=t.layer,i=e;while(i._childClusters.length===1){i=i._childClusters[0]}if(i._zoom===this._maxZoom&&i._childCount===e._childCount&&this.options.spiderfyOnMaxZoom){e.spiderfy()}else if(this.options.zoomToBoundsOnClick){e.zoomToBounds()}if(t.originalEvent&&t.originalEvent.keyCode===13){this._map._container.focus()}},_showCoverage:function(t){var e=this._map;if(this._inZoomAnimation){return}if(this._shownPolygon){e.removeLayer(this._shownPolygon)}if(t.layer.getChildCount()>2&&t.layer!==this._spiderfied){this._shownPolygon=new L.Polygon(t.layer.getConvexHull(),this.options.polygonOptions);e.addLayer(this._shownPolygon)}},_hideCoverage:function(){if(this._shownPolygon){this._map.removeLayer(this._shownPolygon);this._shownPolygon=null}},_unbindEvents:function(){var t=this.options.spiderfyOnMaxZoom,e=this.options.showCoverageOnHover,i=this.options.zoomToBoundsOnClick,n=this._map;if(t||i){this.off("clusterclick",this._zoomOrSpiderfy,this)}if(e){this.off("clustermouseover",this._showCoverage,this);this.off("clustermouseout",this._hideCoverage,this);n.off("zoomend",this._hideCoverage,this)}},_zoomEnd:function(){if(!this._map){return}this._mergeSplitClusters();this._zoom=Math.round(this._map._zoom);this._currentShownBounds=this._getExpandedVisibleBounds()},_moveEnd:function(){if(this._inZoomAnimation){return}var t=this._getExpandedVisibleBounds();this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),this._zoom,t);this._topClusterLevel._recursivelyAddChildrenToMap(null,Math.round(this._map._zoom),t);this._currentShownBounds=t;return},_generateInitialClusters:function(){var t=Math.ceil(this._map.getMaxZoom()),e=Math.floor(this._map.getMinZoom()),i=this.options.maxClusterRadius,n=i;if(typeof i!=="function"){n=function(){return i}}if(this.options.disableClusteringAtZoom!==null){t=this.options.disableClusteringAtZoom-1}this._maxZoom=t;this._gridClusters={};this._gridUnclustered={};for(var o=t;o>=e;o--){this._gridClusters[o]=new L.DistanceGrid(n(o));this._gridUnclustered[o]=new L.DistanceGrid(n(o))}this._topClusterLevel=new this._markerCluster(this,e-1)},_addLayer:function(t,e){var i=this._gridClusters,n=this._gridUnclustered,o=Math.floor(this._map.getMinZoom()),r,s;if(this.options.singleMarkerMode){this._overrideMarkerIcon(t)}t.on(this._childMarkerEventHandlers,this);for(;e>=o;e--){r=this._map.project(t.getLatLng(),e);var a=i[e].getNearObject(r);if(a){a._addChild(t);t.__parent=a;return}a=n[e].getNearObject(r);if(a){var h=a.__parent;if(h){this._removeLayer(a,false)}var u=new this._markerCluster(this,e,a,t);i[e].addObject(u,this._map.project(u._cLatLng,e));a.__parent=u;t.__parent=u;var l=u;for(s=e-1;s>h._zoom;s--){l=new this._markerCluster(this,s,l);i[s].addObject(l,this._map.project(a.getLatLng(),s))}h._addChild(l);this._removeFromGridUnclustered(a,e);return}n[e].addObject(t,r)}this._topClusterLevel._addChild(t);t.__parent=this._topClusterLevel;return},_refreshClustersIcons:function(){this._featureGroup.eachLayer((function(t){if(t instanceof L.MarkerCluster&&t._iconNeedsUpdate){t._updateIcon()}}))},_enqueue:function(t){this._queue.push(t);if(!this._queueTimeout){this._queueTimeout=setTimeout(L.bind(this._processQueue,this),300)}},_processQueue:function(){for(var t=0;tt){this._animationStart();this._animationZoomOut(this._zoom,t)}else{this._moveEnd()}},_getExpandedVisibleBounds:function(){if(!this.options.removeOutsideVisibleBounds){return this._mapBoundsInfinite}else if(L.Browser.mobile){return this._checkBoundsMaxLat(this._map.getBounds())}return this._checkBoundsMaxLat(this._map.getBounds().pad(1))},_checkBoundsMaxLat:function(t){var e=this._maxLat;if(e!==undefined){if(t.getNorth()>=e){t._northEast.lat=Infinity}if(t.getSouth()<=-e){t._southWest.lat=-Infinity}}return t},_animationAddLayerNonAnimated:function(t,e){if(e===t){this._featureGroup.addLayer(t)}else if(e._childCount===2){e._addToMap();var i=e.getAllChildMarkers();this._featureGroup.removeLayer(i[0]);this._featureGroup.removeLayer(i[1])}else{e._updateIcon()}},_extractNonGroupLayers:function(t,e){var i=t.getLayers(),n=0,o;e=e||[];for(;n=0;r--){h=a[r];if(!i.contains(h._latlng)){n.removeLayer(h)}}}));this._forceLayout();this._topClusterLevel._recursivelyBecomeVisible(i,e);n.eachLayer((function(t){if(!(t instanceof L.MarkerCluster)&&t._icon){t.clusterShow()}}));this._topClusterLevel._recursively(i,t,e,(function(t){t._recursivelyRestoreChildPositions(e)}));this._ignoreMove=false;this._enqueue((function(){this._topClusterLevel._recursively(i,t,o,(function(t){n.removeLayer(t);t.clusterShow()}));this._animationEnd()}))},_animationZoomOut:function(t,e){this._animationZoomOutSingle(this._topClusterLevel,t-1,e);this._topClusterLevel._recursivelyAddChildrenToMap(null,e,this._getExpandedVisibleBounds());this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),t,this._getExpandedVisibleBounds())},_animationAddLayer:function(t,e){var i=this,n=this._featureGroup;n.addLayer(t);if(e!==t){if(e._childCount>2){e._updateIcon();this._forceLayout();this._animationStart();t._setPos(this._map.latLngToLayerPoint(e.getLatLng()));t.clusterHide();this._enqueue((function(){n.removeLayer(t);t.clusterShow();i._animationEnd()}))}else{this._forceLayout();i._animationStart();i._animationZoomOutSingle(e,this._map.getMaxZoom(),this._zoom)}}}},_animationZoomOutSingle:function(t,e,i){var n=this._getExpandedVisibleBounds(),o=Math.floor(this._map.getMinZoom());t._recursivelyAnimateChildrenInAndAddSelfToMap(n,o,e+1,i);var r=this;this._forceLayout();t._recursivelyBecomeVisible(n,i);this._enqueue((function(){if(t._childCount===1){var s=t._markers[0];this._ignoreMove=true;s.setLatLng(s.getLatLng());this._ignoreMove=false;if(s.clusterShow){s.clusterShow()}}else{t._recursively(n,i,o,(function(t){t._recursivelyRemoveChildrenFromMap(n,o,e+1)}))}r._animationEnd()}))},_animationEnd:function(){if(this._map){this._map._mapPane.className=this._map._mapPane.className.replace(" leaflet-cluster-anim","")}this._inZoomAnimation--;this.fire("animationend")},_forceLayout:function(){L.Util.falseFn(document.body.offsetWidth)}});L.markerClusterGroup=function(t){return new L.MarkerClusterGroup(t)};var i=L.MarkerCluster=L.Marker.extend({options:L.Icon.prototype.options,initialize:function(t,e,i,n){L.Marker.prototype.initialize.call(this,i?i._cLatLng||i.getLatLng():new L.LatLng(0,0),{icon:this,pane:t.options.clusterPane});this._group=t;this._zoom=e;this._markers=[];this._childClusters=[];this._childCount=0;this._iconNeedsUpdate=true;this._boundsNeedUpdate=true;this._bounds=new L.LatLngBounds;if(i){this._addChild(i)}if(n){this._addChild(n)}},getAllChildMarkers:function(t,e){t=t||[];for(var i=this._childClusters.length-1;i>=0;i--){this._childClusters[i].getAllChildMarkers(t)}for(var n=this._markers.length-1;n>=0;n--){if(e&&this._markers[n].__dragStart){continue}t.push(this._markers[n])}return t},getChildCount:function(){return this._childCount},zoomToBounds:function(t){var e=this._childClusters.slice(),i=this._group._map,n=i.getBoundsZoom(this._bounds),o=this._zoom+1,r=i.getZoom(),s;while(e.length>0&&n>o){o++;var a=[];for(s=0;so){this._group._map.setView(this._latlng,o)}else if(n<=r){this._group._map.setView(this._latlng,r+1)}else{this._group._map.fitBounds(this._bounds,t)}},getBounds:function(){var t=new L.LatLngBounds;t.extend(this._bounds);return t},_updateIcon:function(){this._iconNeedsUpdate=true;if(this._icon){this.setIcon(this)}},createIcon:function(){if(this._iconNeedsUpdate){this._iconObj=this._group.options.iconCreateFunction(this);this._iconNeedsUpdate=false}return this._iconObj.createIcon()},createShadow:function(){return this._iconObj.createShadow()},_addChild:function(t,e){this._iconNeedsUpdate=true;this._boundsNeedUpdate=true;this._setClusterCenter(t);if(t instanceof L.MarkerCluster){if(!e){this._childClusters.push(t);t.__parent=this}this._childCount+=t._childCount}else{if(!e){this._markers.push(t)}this._childCount++}if(this.__parent){this.__parent._addChild(t,true)}},_setClusterCenter:function(t){if(!this._cLatLng){this._cLatLng=t._cLatLng||t._latlng}},_resetBounds:function(){var t=this._bounds;if(t._southWest){t._southWest.lat=Infinity;t._southWest.lng=Infinity}if(t._northEast){t._northEast.lat=-Infinity;t._northEast.lng=-Infinity}},_recalculateBounds:function(){var t=this._markers,e=this._childClusters,i=0,n=0,o=this._childCount,r,s,a,h;if(o===0){return}this._resetBounds();for(r=0;r=0;n--){o=i[n];if(o._icon){o._setPos(e);o.clusterHide()}}}),(function(t){var i=t._childClusters,n,o;for(n=i.length-1;n>=0;n--){o=i[n];if(o._icon){o._setPos(e);o.clusterHide()}}}))},_recursivelyAnimateChildrenInAndAddSelfToMap:function(t,e,i,n){this._recursively(t,n,e,(function(o){o._recursivelyAnimateChildrenIn(t,o._group._map.latLngToLayerPoint(o.getLatLng()).round(),i);if(o._isSingleParent()&&i-1===n){o.clusterShow();o._recursivelyRemoveChildrenFromMap(t,e,i)}else{o.clusterHide()}o._addToMap()}))},_recursivelyBecomeVisible:function(t,e){this._recursively(t,this._group._map.getMinZoom(),e,null,(function(t){t.clusterShow()}))},_recursivelyAddChildrenToMap:function(t,e,i){this._recursively(i,this._group._map.getMinZoom()-1,e,(function(n){if(e===n._zoom){return}for(var o=n._markers.length-1;o>=0;o--){var r=n._markers[o];if(!i.contains(r._latlng)){continue}if(t){r._backupLatlng=r.getLatLng();r.setLatLng(t);if(r.clusterHide){r.clusterHide()}}n._group._featureGroup.addLayer(r)}}),(function(e){e._addToMap(t)}))},_recursivelyRestoreChildPositions:function(t){for(var e=this._markers.length-1;e>=0;e--){var i=this._markers[e];if(i._backupLatlng){i.setLatLng(i._backupLatlng);delete i._backupLatlng}}if(t-1===this._zoom){for(var n=this._childClusters.length-1;n>=0;n--){this._childClusters[n]._restorePosition()}}else{for(var o=this._childClusters.length-1;o>=0;o--){this._childClusters[o]._recursivelyRestoreChildPositions(t)}}},_restorePosition:function(){if(this._backupLatlng){this.setLatLng(this._backupLatlng);delete this._backupLatlng}},_recursivelyRemoveChildrenFromMap:function(t,e,i,n){var o,r;this._recursively(t,e-1,i-1,(function(t){for(r=t._markers.length-1;r>=0;r--){o=t._markers[r];if(!n||!n.contains(o._latlng)){t._group._featureGroup.removeLayer(o);if(o.clusterShow){o.clusterShow()}}}}),(function(t){for(r=t._childClusters.length-1;r>=0;r--){o=t._childClusters[r];if(!n||!n.contains(o._latlng)){t._group._featureGroup.removeLayer(o);if(o.clusterShow){o.clusterShow()}}}}))},_recursively:function(t,e,i,n,o){var r=this._childClusters,s=this._zoom,a,h;if(e<=s){if(n){n(this)}if(o&&s===i){o(this)}}if(s=0;a--){h=r[a];if(h._boundsNeedUpdate){h._recalculateBounds()}if(t.intersects(h._bounds)){h._recursively(t,e,i,n,o)}}}},_isSingleParent:function(){return this._childClusters.length>0&&this._childClusters[0]._childCount===this._childCount}});L.Marker.include({clusterHide:function(){var t=this.options.opacity;this.setOpacity(0);this.options.opacity=t;return this},clusterShow:function(){return this.setOpacity(this.options.opacity)}});L.DistanceGrid=function(t){this._cellSize=t;this._sqCellSize=t*t;this._grid={};this._objectPoint={}};L.DistanceGrid.prototype={addObject:function(t,e){var i=this._getCoord(e.x),n=this._getCoord(e.y),o=this._grid,r=o[n]=o[n]||{},s=r[i]=r[i]||[],a=L.Util.stamp(t);this._objectPoint[a]=e;s.push(t)},updateObject:function(t,e){this.removeObject(t);this.addObject(t,e)},removeObject:function(t,e){var i=this._getCoord(e.x),n=this._getCoord(e.y),o=this._grid,r=o[n]=o[n]||{},s=r[i]=r[i]||[],a,h;delete this._objectPoint[L.Util.stamp(t)];for(a=0,h=s.length;a=0;r--){s=e[r];a=this.getDistant(s,t);if(a>0){o.push(s)}else{continue}if(a>i){i=a;n=s}}return{maxPoint:n,newPoints:o}},buildConvexHull:function(t,e){var i=[],n=this.findMostDistantPointFromBaseLine(t,e);if(n.maxPoint){i=i.concat(this.buildConvexHull([t[0],n.maxPoint],n.newPoints));i=i.concat(this.buildConvexHull([n.maxPoint,t[1]],n.newPoints));return i}else{return[t[0]]}},getConvexHull:function(t){var e=false,i=false,n=false,o=false,r=null,s=null,a=null,h=null,u=null,l=null,c;for(c=t.length-1;c>=0;c--){var f=t[c];if(e===false||f.lat>e){r=f;e=f.lat}if(i===false||f.latn){a=f;n=f.lng}if(o===false||f.lng=0;n--){i=t[n].getLatLng();e.push(i)}return L.QuickHull.getConvexHull(e)}});L.MarkerCluster.include({_2PI:Math.PI*2,_circleFootSeparation:25,_circleStartAngle:0,_spiralFootSeparation:28,_spiralLengthStart:11,_spiralLengthFactor:5,_circleSpiralSwitchover:9,spiderfy:function(){if(this._group._spiderfied===this||this._group._inZoomAnimation){return}var t=this.getAllChildMarkers(null,true),e=this._group,i=e._map,n=i.latLngToLayerPoint(this._latlng),o;this._group._unspiderfy();this._group._spiderfied=this;if(t.length>=this._circleSpiralSwitchover){o=this._generatePointsSpiral(t.length,n)}else{n.y+=10;o=this._generatePointsCircle(t.length,n)}this._animationSpiderfy(t,o)},unspiderfy:function(t){if(this._group._inZoomAnimation){return}this._animationUnspiderfy(t);this._group._spiderfied=null},_generatePointsCircle:function(t,e){var i=this._group.options.spiderfyDistanceMultiplier*this._circleFootSeparation*(2+t),n=i/this._2PI,o=this._2PI/t,r=[],s,a;n=Math.max(n,35);r.length=t;for(s=0;s=0;h--){if(h=0;r--){o=n[r];i.removeLayer(o);if(o._preSpiderfyLatlng){o.setLatLng(o._preSpiderfyLatlng);delete o._preSpiderfyLatlng}if(o.setZIndexOffset){o.setZIndexOffset(0)}if(o._spiderLeg){e.removeLayer(o._spiderLeg);delete o._spiderLeg}}t.fire("unspiderfied",{cluster:this,markers:n});t._ignoreMove=false;t._spiderfied=null}});L.MarkerClusterNonAnimated=L.MarkerCluster.extend({_animationSpiderfy:function(t,e){var i=this._group,n=i._map,o=i._featureGroup,r=this._group.options.spiderLegPolylineOptions,s,a,h,u;i._ignoreMove=true;for(s=0;s=0;c--){m=o.layerPointToLatLng(e[c]);f=t[c];f._preSpiderfyLatlng=f._latlng;f.setLatLng(m);if(f.clusterShow){f.clusterShow()}if(h){d=f._spiderLeg;_=d._path;_.style.strokeDashoffset=0;d.setStyle({opacity:l})}}this.setOpacity(.3);n._ignoreMove=false;setTimeout((function(){n._animationEnd();n.fire("spiderfied",{cluster:i,markers:t})}),200)},_animationUnspiderfy:function(t){var e=this,i=this._group,n=i._map,o=i._featureGroup,r=t?n._latLngToNewLayerPoint(this._latlng,t.zoom,t.center):n.latLngToLayerPoint(this._latlng),s=this.getAllChildMarkers(null,true),a=L.Path.SVG,h,u,l,c,f,d;i._ignoreMove=true;i._animationStart();this.setOpacity(1);for(u=s.length-1;u>=0;u--){h=s[u];if(!h._preSpiderfyLatlng){continue}h.closePopup();h.setLatLng(h._preSpiderfyLatlng);delete h._preSpiderfyLatlng;d=true;if(h._setPos){h._setPos(r);d=false}if(h.clusterHide){h.clusterHide();d=false}if(d){o.removeLayer(h)}if(a){l=h._spiderLeg;c=l._path;f=c.getTotalLength()+.1;c.style.strokeDashoffset=f;l.setStyle({opacity:0})}}i._ignoreMove=false;setTimeout((function(){var t=0;for(u=s.length-1;u>=0;u--){h=s[u];if(h._spiderLeg){t++}}for(u=s.length-1;u>=0;u--){h=s[u];if(!h._spiderLeg){continue}if(h.clusterShow){h.clusterShow()}if(h.setZIndexOffset){h.setZIndexOffset(0)}if(t>1){o.removeLayer(h)}n.removeLayer(h._spiderLeg);delete h._spiderLeg}i._animationEnd();i.fire("unspiderfied",{cluster:e,markers:s})}),200)}});L.MarkerClusterGroup.include({_spiderfied:null,unspiderfy:function(){this._unspiderfy.apply(this,arguments)},_spiderfierOnAdd:function(){this._map.on("click",this._unspiderfyWrapper,this);if(this._map.options.zoomAnimation){this._map.on("zoomstart",this._unspiderfyZoomStart,this)}this._map.on("zoomend",this._noanimationUnspiderfy,this);if(!L.Browser.touch){this._map.getRenderer(this)}},_spiderfierOnRemove:function(){this._map.off("click",this._unspiderfyWrapper,this);this._map.off("zoomstart",this._unspiderfyZoomStart,this);this._map.off("zoomanim",this._unspiderfyZoomAnim,this);this._map.off("zoomend",this._noanimationUnspiderfy,this);this._noanimationUnspiderfy()},_unspiderfyZoomStart:function(){if(!this._map){return}this._map.on("zoomanim",this._unspiderfyZoomAnim,this)},_unspiderfyZoomAnim:function(t){if(L.DomUtil.hasClass(this._map._mapPane,"leaflet-touching")){return}this._map.off("zoomanim",this._unspiderfyZoomAnim,this);this._unspiderfy(t)},_unspiderfyWrapper:function(){this._unspiderfy()},_unspiderfy:function(t){if(this._spiderfied){this._spiderfied.unspiderfy(t)}},_noanimationUnspiderfy:function(){if(this._spiderfied){this._spiderfied._noanimationUnspiderfy()}},_unspiderfyLayer:function(t){if(t._spiderLeg){this._featureGroup.removeLayer(t);if(t.clusterShow){t.clusterShow()}if(t.setZIndexOffset){t.setZIndexOffset(0)}this._map.removeLayer(t._spiderLeg);delete t._spiderLeg}}});L.MarkerClusterGroup.include({refreshClusters:function(t){if(!t){t=this._topClusterLevel.getAllChildMarkers()}else if(t instanceof L.MarkerClusterGroup){t=t._topClusterLevel.getAllChildMarkers()}else if(t instanceof L.LayerGroup){t=t._layers}else if(t instanceof L.MarkerCluster){t=t.getAllChildMarkers()}else if(t instanceof L.Marker){t=[t]}this._flagParentsIconsNeedUpdate(t);this._refreshClustersIcons();if(this.options.singleMarkerMode){this._refreshSingleMarkerModeMarkers(t)}return this},_flagParentsIconsNeedUpdate:function(t){var e,i;for(e in t){i=t[e].__parent;while(i){i._iconNeedsUpdate=true;i=i.__parent}}},_refreshSingleMarkerModeMarkers:function(t){var e,i;for(e in t){i=t[e];if(this.hasLayer(i)){i.setIcon(this._overrideMarkerIcon(i))}}}});L.Marker.include({refreshIconOptions:function(t,e){var i=this.options.icon;L.setOptions(i,t);this.setIcon(i);if(e&&this.__parent){this.__parent._group.refreshClusters(this)}return this}});t.MarkerClusterGroup=e;t.MarkerCluster=i}))},526:function(t,e,i){},527:function(t,e,i){},528:function(t,e){(function(t,e,i){"use strict";L.AwesomeMarkers={};L.AwesomeMarkers.version="2.0.1";L.AwesomeMarkers.Icon=L.Icon.extend({options:{iconSize:[35,45],iconAnchor:[17,42],popupAnchor:[1,-32],shadowAnchor:[10,12],shadowSize:[36,16],className:"awesome-marker",prefix:"glyphicon",spinClass:"fa-spin",extraClasses:"",icon:"home",markerColor:"blue",iconColor:"white"},initialize:function(t){t=L.Util.setOptions(this,t)},createIcon:function(){var t=e.createElement("div"),i=this.options;if(i.icon){t.innerHTML=this._createInner()}if(i.bgPos){t.style.backgroundPosition=-i.bgPos.x+"px "+-i.bgPos.y+"px"}this._setIconStyles(t,"icon-"+i.markerColor);return t},_createInner:function(){var t,e="",i="",n="",o=this.options;if(o.icon.slice(0,o.prefix.length+1)===o.prefix+"-"){t=o.icon}else{t=o.prefix+"-"+o.icon}if(o.spin&&typeof o.spinClass==="string"){e=o.spinClass}if(o.iconColor){if(o.iconColor==="white"||o.iconColor==="black"){i="icon-"+o.iconColor}else{n="style='color: "+o.iconColor+"' "}}return""},_setIconStyles:function(t,e){var i=this.options,n=L.point(i[e==="shadow"?"shadowSize":"iconSize"]),o;if(e==="shadow"){o=L.point(i.shadowAnchor||i.iconAnchor)}else{o=L.point(i.iconAnchor)}if(!o&&n){o=n.divideBy(2,true)}t.className="awesome-marker-"+e+" "+i.className;if(o){t.style.marginLeft=-o.x+"px";t.style.marginTop=-o.y+"px"}if(n){t.style.width=n.x+"px";t.style.height=n.y+"px"}},createShadow:function(){var t=e.createElement("div");this._setIconStyles(t,"shadow");return t}});L.AwesomeMarkers.icon=function(t){return new L.AwesomeMarkers.Icon(t)}})(this,document)},529:function(t,e,i){},530:function(t,e,i){(function(t){if(typeof t=="undefined"){this.console={log:function(t){}}}L.Control.OSMGeocoder=L.Control.extend({options:{collapsed:true,position:"topright",text:"Locate",placeholder:"",bounds:null,email:null,callback:function(e){if(e.length==0){t.log("ERROR: didn't find a result");return}var i=e[0].boundingbox,n=new L.LatLng(i[0],i[2]),o=new L.LatLng(i[1],i[3]),r=new L.LatLngBounds([n,o]);this._map.fitBounds(r)}},_callbackId:0,initialize:function(t){L.Util.setOptions(this,t)},onAdd:function(t){this._map=t;var e="leaflet-control-geocoder",i=this._container=L.DomUtil.create("div",e);L.DomEvent.disableClickPropagation(i);var n=this._form=L.DomUtil.create("form",e+"-form");var o=this._input=document.createElement("input");o.type="text";o.placeholder=this.options.placeholder||"";var r=document.createElement("input");r.type="submit";r.value=this.options.text;n.appendChild(o);n.appendChild(r);L.DomEvent.addListener(n,"submit",this._geocode,this);if(this.options.collapsed){L.DomEvent.addListener(i,"mouseover",this._expand,this);L.DomEvent.addListener(i,"mouseout",this._collapse,this);var s=this._layersLink=L.DomUtil.create("a",e+"-toggle",i);s.href="#";s.title="Nominatim Geocoder";L.DomEvent.addListener(s,L.Browser.touch?"click":"focus",this._expand,this);this._map.on("movestart",this._collapse,this)}else{this._expand()}i.appendChild(n);return i},_createSearchResult:function(t,e){var i=.005;var n=[];n[0]={};n[0]["boundingbox"]=[parseFloat(t)-i,parseFloat(t)+i,parseFloat(e)-i,parseFloat(e)+i];n[0]["class"]="boundary";n[0]["display_name"]="Position: "+t+" "+e;n[0]["lat"]=t;n[0]["lon"]=e;return n},_isLatLon:function(t){var e=/(-?\d+\.\d+)\s(-?\d+\.\d+)/;var i=e.exec(t);if(i!=undefined)return i;e=/lat\D*(-?\d+\.\d+)\D*lon\D*(-?\d+\.\d+)/;i=e.exec(t);if(i!=undefined)return i;else return null},_isLatLon_decMin:function(e){t.log("is LatLon?: "+e);re=/([ns])\s*(\d+)\D*(\d+\.\d+).?\s*([ew])\s*(\d+)\D*(\d+\.\d+)/i;m=re.exec(e.toLowerCase());if(m!=undefined)return m;else return null},_geocode:function(e){L.DomEvent.preventDefault(e);var i=this._input.value;if(this._isLatLon(i)!=null){var n=this._isLatLon(i);t.log("LatLon: "+n[1]+" "+n[2]);this.options.callback.call(this,this._createSearchResult(n[1],n[2]));return}else if(this._isLatLon_decMin(i)!=null){var n=this._isLatLon_decMin(i);var o=new Array;o["n"]=1;o["s"]=-1;o["e"]=1;o["w"]=-1;this.options.callback.call(this,this._createSearchResult(o[n[1]]*(Number(n[2])+n[3]/60),o[n[4]]*(Number(n[5])+n[6]/60)));return}t.log(this._callbackId);window["_l_osmgeocoder_"+this._callbackId]=L.Util.bind(this.options.callback,this);var r={q:this._input.value,json_callback:"_l_osmgeocoder_"+this._callbackId++,format:"json"};if(this.options.bounds&&this.options.bounds!=null){if(this.options.bounds instanceof L.LatLngBounds){r.viewbox=this.options.bounds.toBBoxString();r.bounded=1}else{t.log("bounds must be of type L.LatLngBounds");return}}if(this.options.email&&this.options.email!=null){if(typeof this.options.email=="string"){r.email=this.options.email}else{t.log("email must be a string")}}var s=location.protocol;if(s=="file:")s="https:";var a=s+"//nominatim.openstreetmap.org/search"+L.Util.getParamString(r),h=document.createElement("script");h.type="text/javascript";h.src=a;h.id=this._callbackId;document.getElementsByTagName("head")[0].appendChild(h)},_expand:function(){L.DomUtil.addClass(this._container,"leaflet-control-geocoder-expanded")},_collapse:function(){this._container.className=this._container.className.replace(" leaflet-control-geocoder-expanded","")}})}).call(this,i(5))},531:function(t,e,i){},532:function(t,e){L.Control.Fullscreen=L.Control.extend({options:{position:"topleft",title:{false:"View Fullscreen",true:"Exit Fullscreen"}},onAdd:function(t){var e=L.DomUtil.create("div","leaflet-control-fullscreen leaflet-bar leaflet-control");this.link=L.DomUtil.create("a","leaflet-control-fullscreen-button leaflet-bar-part",e);this.link.href="#";this._map=t;this._map.on("fullscreenchange",this._toggleTitle,this);this._toggleTitle();L.DomEvent.on(this.link,"click",this._click,this);return e},_click:function(t){L.DomEvent.stopPropagation(t);L.DomEvent.preventDefault(t);this._map.toggleFullscreen(this.options)},_toggleTitle:function(){this.link.title=this.options.title[this._map.isFullscreen()]}});L.Map.include({isFullscreen:function(){return this._isFullscreen||false},toggleFullscreen:function(t){var e=this.getContainer();if(this.isFullscreen()){if(t&&t.pseudoFullscreen){this._disablePseudoFullscreen(e)}else if(document.exitFullscreen){document.exitFullscreen()}else if(document.mozCancelFullScreen){document.mozCancelFullScreen()}else if(document.webkitCancelFullScreen){document.webkitCancelFullScreen()}else if(document.msExitFullscreen){document.msExitFullscreen()}else{this._disablePseudoFullscreen(e)}}else{if(t&&t.pseudoFullscreen){this._enablePseudoFullscreen(e)}else if(e.requestFullscreen){e.requestFullscreen()}else if(e.mozRequestFullScreen){e.mozRequestFullScreen()}else if(e.webkitRequestFullscreen){e.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT)}else if(e.msRequestFullscreen){e.msRequestFullscreen()}else{this._enablePseudoFullscreen(e)}}},_enablePseudoFullscreen:function(t){L.DomUtil.addClass(t,"leaflet-pseudo-fullscreen");this._setFullscreen(true);this.fire("fullscreenchange")},_disablePseudoFullscreen:function(t){L.DomUtil.removeClass(t,"leaflet-pseudo-fullscreen");this._setFullscreen(false);this.fire("fullscreenchange")},_setFullscreen:function(t){this._isFullscreen=t;var e=this.getContainer();if(t){L.DomUtil.addClass(e,"leaflet-fullscreen-on")}else{L.DomUtil.removeClass(e,"leaflet-fullscreen-on")}this.invalidateSize()},_onFullscreenChange:function(t){var e=document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement;if(e===this.getContainer()&&!this._isFullscreen){this._setFullscreen(true);this.fire("fullscreenchange")}else if(e!==this.getContainer()&&this._isFullscreen){this._setFullscreen(false);this.fire("fullscreenchange")}}});L.Map.mergeOptions({fullscreenControl:false});L.Map.addInitHook((function(){if(this.options.fullscreenControl){this.fullscreenControl=new L.Control.Fullscreen(this.options.fullscreenControl);this.addControl(this.fullscreenControl)}var t;if("onfullscreenchange"in document){t="fullscreenchange"}else if("onmozfullscreenchange"in document){t="mozfullscreenchange"}else if("onwebkitfullscreenchange"in document){t="webkitfullscreenchange"}else if("onmsfullscreenchange"in document){t="MSFullscreenChange"}if(t){var e=L.bind(this._onFullscreenChange,this);this.whenReady((function(){L.DomEvent.on(document,t,e)}));this.on("unload",(function(){L.DomEvent.off(document,t,e)}))}}));L.control.fullscreen=function(t){return new L.Control.Fullscreen(t)}},533:function(t,e,i){},6:function(t,e){var i;i=function(){return this}();try{i=i||new Function("return this")()}catch(t){if(typeof window==="object")i=window}t.exports=i},7:function(t,e,i){(function(t,n){var o=Object.getOwnPropertyDescriptors||function t(e){var i=Object.keys(e);var n={};for(var o=0;o=o)return t;switch(t){case"%s":return String(n[i++]);case"%d":return Number(n[i++]);case"%j":try{return JSON.stringify(n[i++])}catch(t){return"[Circular]"}default:return t}}));for(var a=n[i];i=3)n.depth=arguments[2];if(arguments.length>=4)n.colors=arguments[3];if(y(i)){n.showHidden=i}else if(i){e._extend(n,i)}if(C(n.showHidden))n.showHidden=false;if(C(n.depth))n.depth=2;if(C(n.colors))n.colors=false;if(C(n.customInspect))n.customInspect=true;if(n.colors)n.stylize=u;return f(n,t,n.depth)}e.inspect=h;h.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]};h.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function u(t,e){var i=h.styles[e];if(i){return"["+h.colors[i][0]+"m"+t+"["+h.colors[i][1]+"m"}else{return t}}function l(t,e){return t}function c(t){var e={};t.forEach((function(t,i){e[t]=true}));return e}function f(t,i,n){if(t.customInspect&&i&&z(i.inspect)&&i.inspect!==e.inspect&&!(i.constructor&&i.constructor.prototype===i)){var o=i.inspect(n,t);if(!b(o)){o=f(t,o,n)}return o}var r=d(t,i);if(r){return r}var s=Object.keys(i);var a=c(s);if(t.showHidden){s=Object.getOwnPropertyNames(i)}if(S(i)&&(s.indexOf("message")>=0||s.indexOf("description")>=0)){return _(i)}if(s.length===0){if(z(i)){var h=i.name?": "+i.name:"";return t.stylize("[Function"+h+"]","special")}if(T(i)){return t.stylize(RegExp.prototype.toString.call(i),"regexp")}if(k(i)){return t.stylize(Date.prototype.toString.call(i),"date")}if(S(i)){return _(i)}}var u="",l=false,y=["{","}"];if(v(i)){l=true;y=["[","]"]}if(z(i)){var L=i.name?": "+i.name:"";u=" [Function"+L+"]"}if(T(i)){u=" "+RegExp.prototype.toString.call(i)}if(k(i)){u=" "+Date.prototype.toUTCString.call(i)}if(S(i)){u=" "+_(i)}if(s.length===0&&(!l||i.length==0)){return y[0]+u+y[1]}if(n<0){if(T(i)){return t.stylize(RegExp.prototype.toString.call(i),"regexp")}else{return t.stylize("[Object]","special")}}t.seen.push(i);var x;if(l){x=p(t,i,n,a,s)}else{x=s.map((function(e){return m(t,i,n,a,e,l)}))}t.seen.pop();return g(x,u,y)}function d(t,e){if(C(e))return t.stylize("undefined","undefined");if(b(e)){var i="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(i,"string")}if(w(e))return t.stylize(""+e,"number");if(y(e))return t.stylize(""+e,"boolean");if(L(e))return t.stylize("null","null")}function _(t){return"["+Error.prototype.toString.call(t)+"]"}function p(t,e,i,n,o){var r=[];for(var s=0,a=e.length;s-1){if(r){a=a.split("\n").map((function(t){return" "+t})).join("\n").substr(2)}else{a="\n"+a.split("\n").map((function(t){return" "+t})).join("\n")}}}else{a=t.stylize("[Circular]","special")}}if(C(s)){if(r&&o.match(/^\d+$/)){return a}s=JSON.stringify(""+o);if(s.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)){s=s.substr(1,s.length-2);s=t.stylize(s,"name")}else{s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'");s=t.stylize(s,"string")}}return s+": "+a}function g(t,e,i){var n=0;var o=t.reduce((function(t,e){n++;if(e.indexOf("\n")>=0)n++;return t+e.replace(/\u001b\[\d\d?m/g,"").length+1}),0);if(o>60){return i[0]+(e===""?"":e+"\n ")+" "+t.join(",\n ")+" "+i[1]}return i[0]+e+" "+t.join(", ")+" "+i[1]}function v(t){return Array.isArray(t)}e.isArray=v;function y(t){return typeof t==="boolean"}e.isBoolean=y;function L(t){return t===null}e.isNull=L;function x(t){return t==null}e.isNullOrUndefined=x;function w(t){return typeof t==="number"}e.isNumber=w;function b(t){return typeof t==="string"}e.isString=b;function P(t){return typeof t==="symbol"}e.isSymbol=P;function C(t){return t===void 0}e.isUndefined=C;function T(t){return M(t)&&O(t)==="[object RegExp]"}e.isRegExp=T;function M(t){return typeof t==="object"&&t!==null}e.isObject=M;function k(t){return M(t)&&O(t)==="[object Date]"}e.isDate=k;function S(t){return M(t)&&(O(t)==="[object Error]"||t instanceof Error)}e.isError=S;function z(t){return typeof t==="function"}e.isFunction=z;function E(t){return t===null||typeof t==="boolean"||typeof t==="number"||typeof t==="string"||typeof t==="symbol"||typeof t==="undefined"}e.isPrimitive=E;e.isBuffer=i(9);function O(t){return Object.prototype.toString.call(t)}function A(t){return t<10?"0"+t.toString(10):t.toString(10)}var Z=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function I(){var t=new Date;var e=[A(t.getHours()),A(t.getMinutes()),A(t.getSeconds())].join(":");return[t.getDate(),Z[t.getMonth()],e].join(" ")}e.log=function(){n.log("%s - %s",I(),e.format.apply(e,arguments))};e.inherits=i(10);e._extend=function(t,e){if(!e||!M(e))return t;var i=Object.keys(e);var n=i.length;while(n--){t[i[n]]=e[i[n]]}return t};function B(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var j=typeof Symbol!=="undefined"?Symbol("util.promisify.custom"):undefined;e.promisify=function t(e){if(typeof e!=="function")throw new TypeError('The "original" argument must be of type Function');if(j&&e[j]){var i=e[j];if(typeof i!=="function"){throw new TypeError('The "util.promisify.custom" argument must be of type Function')}Object.defineProperty(i,j,{value:i,enumerable:false,writable:false,configurable:true});return i}function i(){var t,i;var n=new Promise((function(e,n){t=e;i=n}));var o=[];for(var r=0;r1){for(var i=1;i