PageSourceSearch

https://puravida.com/assets/map-engine-V0OPmaW2.js

js puravida.com collected 2026-10-08 06:45:11 UTC 246,661 bytes, 1 lines download raw bytes

1import{r as e,t}from"./rolldown-runtime-hePW80VL.js";var n=e(t(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?r(e):typeof define==`function`&&define.amd?define([`exports`],r):(n=typeof globalThis<`u`?globalThis:n||self,r(n.leaflet={}))})(e,(function(e){var t=`1.9.4`;function n(e){for(var t,n=1,r=arguments.length,i;n<r;n++)for(t in i=arguments[n],i)e[t]=i[t];return e}var r=Object.create||(function(){function e(){}return function(t){return e.prototype=t,new e}})();function i(e,t){var n=Array.prototype.slice;if(e.bind)return e.bind.apply(e,n.call(arguments,1));var r=n.call(arguments,2);return function(){return e.apply(t,r.length?r.concat(n.call(arguments)):arguments)}}var a=0;function o(e){return`_leaflet_id`in e||(e._leaflet_id=++a),e._leaflet_id}function s(e,t,n){var r,i,a,o=function(){r=!1,i&&=(a.apply(n,i),!1)};return a=function(){r?i=arguments:(e.apply(n,arguments),setTimeout(o,t),r=!0)},a}function c(e,t,n){var r=t[1],i=t[0],a=r-i;return e===r&&n?e:((e-i)%a+a)%a+i}function l(){return!1}function u(e,t){if(t===!1)return e;var n=10**(t===void 0?6:t);return Math.round(e*n)/n}function d(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,``)}function f(e){return d(e).split(/\s+/)}function p(e,t){for(var n in Object.prototype.hasOwnProperty.call(e,`options`)||(e.options=e.options?r(e.options):{}),t)e.options[n]=t[n];return e.options}function m(e,t,n){var r=[];for(var i in e)r.push(encodeURIComponent(n?i.toUpperCase():i)+`=`+encodeURIComponent(e[i]));return(!t||t.indexOf(`?`)===-1?`?`:`&`)+r.join(`&`)}var h=/\{ *([\w_ -]+) *\}/g;function g(e,t){return e.replace(h,function(e,n){var r=t[n];if(r===void 0)throw Error(`No value provided for variable `+e);return typeof r==`function`&&(r=r(t)),r})}var _=Array.isArray||function(e){return Object.prototype.toString.call(e)===`[object Array]`};function ee(e,t){for(var n=0;n<e.length;n++)if(e[n]===t)return n;return-1}var v=`data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=`;function y(e){return window[`webkit`+e]||window[`moz`+e]||window[`ms`+e]}var b=0;function x(e){var t=+new Date,n=Math.max(0,16-(t-b));return b=t+n,window.setTimeout(e,n)}var S=window.requestAnimationFrame||y(`RequestAnimationFrame`)||x,C=window.cancelAnimationFrame||y(`CancelAnimationFrame`)||y(`CancelRequestAnimationFrame`)||function(e){window.clearTimeout(e)};function w(e,t,n){if(n&&S===x)e.call(t);else return S.call(window,i(e,t))}function T(e){e&&C.call(window,e)}var te={__proto__:null,extend:n,create:r,bind:i,get lastId(){return a},stamp:o,throttle:s,wrapNum:c,falseFn:l,formatNum:u,trim:d,splitWords:f,setOptions:p,getParamString:m,template:g,isArray:_,indexOf:ee,emptyImageUrl:v,requestFn:S,cancelFn:C,requestAnimFrame:w,cancelAnimFrame:T};function E(){}E.extend=function(e){var t=function(){p(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},i=t.__super__=this.prototype,a=r(i);for(var o in a.constructor=t,t.prototype=a,this)Object.prototype.hasOwnProperty.call(this,o)&&o!==`prototype`&&o!==`__super__`&&(t[o]=this[o]);return e.statics&&n(t,e.statics),e.includes&&(ne(e.includes),n.apply(null,[a].concat(e.includes))),n(a,e),delete a.statics,delete a.includes,a.options&&(a.options=i.options?r(i.options):{},n(a.options,e.options)),a._initHooks=[],a.callInitHooks=function(){if(!this._initHooksCalled){i.callInitHooks&&i.callInitHooks.call(this),this._initHooksCalled=!0;for(var e=0,t=a._initHooks.length;e<t;e++)a._initHooks[e].call(this)}},t},E.include=function(e){var t=this.prototype.options;return n(this.prototype,e),e.options&&(this.prototype.options=t,this.mergeOptions(e.options)),this},E.mergeOptions=function(e){return n(this.prototype.options,e),this},E.addInitHook=function(e){var t=Array.prototype.slice.call(arguments,1),n=typeof e==`function`?e:function(){this[e].apply(this,t)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(n),this};function ne(e){if(typeof L<`u`&&L&&L.Mixin){e=_(e)?e:[e];for(var t=0;t<e.length;t++)e[t]===L.Mixin.Events&&console.warn(`Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.`,Error().stack)}}var D={on:function(e,t,n){if(typeof e==`object`)for(var r in e)this._on(r,e[r],t);else{e=f(e);for(var i=0,a=e.length;i<a;i++)this._on(e[i],t,n)}return this},off:function(e,t,n){if(!arguments.length)delete this._events;else if(typeof e==`object`)for(var r in e)this._off(r,e[r],t);else{e=f(e);for(var i=arguments.length===1,a=0,o=e.length;a<o;a++)i?this._off(e[a]):this._off(e[a],t,n)}return this},_on:function(e,t,n,r){if(typeof t!=`function`){console.warn(`wrong listener type: `+typeof t);return}if(this._listens(e,t,n)===!1){n===this&&(n=void 0);var i={fn:t,ctx:n};r&&(i.once=!0),this._events=this._events||{},this._events[e]=this._events[e]||[],this._events[e].push(i)}},_off:function(e,t,n){var r,i,a;if(this._events&&(r=this._events[e],r)){if(arguments.length===1){if(this._firingCount)for(i=0,a=r.length;i<a;i++)r[i].fn=l;delete this._events[e];return}if(typeof t!=`function`){console.warn(`wrong listener type: `+typeof t);return}var o=this._listens(e,t,n);if(o!==!1){var s=r[o];this._firingCount&&(s.fn=l,this._events[e]=r=r.slice()),r.splice(o,1)}}},fire:function(e,t,r){if(!this.listens(e,r))return this;var i=n({},t,{type:e,target:this,sourceTarget:t&&t.sourceTarget||this});if(this._events){var a=this._events[e];if(a){this._firingCount=this._firingCount+1||1;for(var o=0,s=a.length;o<s;o++){var c=a[o],l=c.fn;c.once&&this.off(e,l,c.ctx),l.call(c.ctx||this,i)}this._firingCount--}}return r&&this._propagateEvent(i),this},listens:function(e,t,n,r){typeof e!=`string`&&console.warn(`"string" type argument expected`);var i=t;typeof t!=`function`&&(r=!!t,i=void 0,n=void 0);var a=this._events&&this._events[e];if(a&&a.length&&this._listens(e,i,n)!==!1)return!0;
1if(r){for(var o in this._eventParents)if(this._eventParents[o].listens(e,t,n,r))return!0}return!1},_listens:function(e,t,n){if(!this._events)return!1;var r=this._events[e]||[];if(!t)return!!r.length;n===this&&(n=void 0);for(var i=0,a=r.length;i<a;i++)if(r[i].fn===t&&r[i].ctx===n)return i;return!1},once:function(e,t,n){if(typeof e==`object`)for(var r in e)this._on(r,e[r],t,!0);else{e=f(e);for(var i=0,a=e.length;i<a;i++)this._on(e[i],t,n,!0)}return this},addEventParent:function(e){return this._eventParents=this._eventParents||{},this._eventParents[o(e)]=e,this},removeEventParent:function(e){return this._eventParents&&delete this._eventParents[o(e)],this},_propagateEvent:function(e){for(var t in this._eventParents)this._eventParents[t].fire(e.type,n({layer:e.target,propagatedFrom:e.target},e),!0)}};D.addEventListener=D.on,D.removeEventListener=D.clearAllEventListeners=D.off,D.addOneTimeEventListener=D.once,D.fireEvent=D.fire,D.hasEventListeners=D.listens;var O=E.extend(D);function k(e,t,n){this.x=n?Math.round(e):e,this.y=n?Math.round(t):t}var re=Math.trunc||function(e){return e>0?Math.floor(e):Math.ceil(e)};k.prototype={clone:function(){return new k(this.x,this.y)},add:function(e){return this.clone()._add(A(e))},_add:function(e){return this.x+=e.x,this.y+=e.y,this},subtract:function(e){return this.clone()._subtract(A(e))},_subtract:function(e){return this.x-=e.x,this.y-=e.y,this},divideBy:function(e){return this.clone()._divideBy(e)},_divideBy:function(e){return this.x/=e,this.y/=e,this},multiplyBy:function(e){return this.clone()._multiplyBy(e)},_multiplyBy:function(e){return this.x*=e,this.y*=e,this},scaleBy:function(e){return new k(this.x*e.x,this.y*e.y)},unscaleBy:function(e){return new k(this.x/e.x,this.y/e.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=re(this.x),this.y=re(this.y),this},distanceTo:function(e){e=A(e);var t=e.x-this.x,n=e.y-this.y;return Math.sqrt(t*t+n*n)},equals:function(e){return e=A(e),e.x===this.x&&e.y===this.y},contains:function(e){return e=A(e),Math.abs(e.x)<=Math.abs(this.x)&&Math.abs(e.y)<=Math.abs(this.y)},toString:function(){return`Point(`+u(this.x)+`, `+u(this.y)+`)`}};function A(e,t,n){return e instanceof k?e:_(e)?new k(e[0],e[1]):e==null?e:typeof e==`object`&&`x`in e&&`y`in e?new k(e.x,e.y):new k(e,t,n)}function j(e,t){if(e)for(var n=t?[e,t]:e,r=0,i=n.length;r<i;r++)this.extend(n[r])}j.prototype={extend:function(e){var t,n;if(!e)return this;if(e instanceof k||typeof e[0]==`number`||`x`in e)t=n=A(e);else if(e=M(e),t=e.min,n=e.max,!t||!n)return this;return!this.min&&!this.max?(this.min=t.clone(),this.max=n.clone()):(this.min.x=Math.min(t.x,this.min.x),this.max.x=Math.max(n.x,this.max.x),this.min.y=Math.min(t.y,this.min.y),this.max.y=Math.max(n.y,this.max.y)),this},getCenter:function(e){return A((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,e)},getBottomLeft:function(){return A(this.min.x,this.max.y)},getTopRight:function(){return A(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(e){var t,n;return e=typeof e[0]==`number`||e instanceof k?A(e):M(e),e instanceof j?(t=e.min,n=e.max):t=n=e,t.x>=this.min.x&&n.x<=this.max.x&&t.y>=this.min.y&&n.y<=this.max.y},intersects:function(e){e=M(e);var t=this.min,n=this.max,r=e.min,i=e.max,a=i.x>=t.x&&r.x<=n.x,o=i.y>=t.y&&r.y<=n.y;return a&&o},overlaps:function(e){e=M(e);var t=this.min,n=this.max,r=e.min,i=e.max,a=i.x>t.x&&r.x<n.x,o=i.y>t.y&&r.y<n.y;return a&&o},isValid:function(){return!!(this.min&&this.max)},pad:function(e){var t=this.min,n=this.max,r=Math.abs(t.x-n.x)*e,i=Math.abs(t.y-n.y)*e;return M(A(t.x-r,t.y-i),A(n.x+r,n.y+i))},equals:function(e){return e?(e=M(e),this.min.equals(e.getTopLeft())&&this.max.equals(e.getBottomRight())):!1}};function M(e,t){return!e||e instanceof j?e:new j(e,t)}function N(e,t){if(e)for(var n=t?[e,t]:e,r=0,i=n.length;r<i;r++)this.extend(n[r])}N.prototype={extend:function(e){var t=this._southWest,n=this._northEast,r,i;if(e instanceof F)r=e,i=e;
1else if(e instanceof N){if(r=e._southWest,i=e._northEast,!r||!i)return this}else return e?this.extend(I(e)||P(e)):this;return!t&&!n?(this._southWest=new F(r.lat,r.lng),this._northEast=new F(i.lat,i.lng)):(t.lat=Math.min(r.lat,t.lat),t.lng=Math.min(r.lng,t.lng),n.lat=Math.max(i.lat,n.lat),n.lng=Math.max(i.lng,n.lng)),this},pad:function(e){var t=this._southWest,n=this._northEast,r=Math.abs(t.lat-n.lat)*e,i=Math.abs(t.lng-n.lng)*e;return new N(new F(t.lat-r,t.lng-i),new F(n.lat+r,n.lng+i))},getCenter:function(){return new F((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new F(this.getNorth(),this.getWest())},getSouthEast:function(){return new F(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(e){e=typeof e[0]==`number`||e instanceof F||`lat`in e?I(e):P(e);var t=this._southWest,n=this._northEast,r,i;
1return e instanceof N?(r=e.getSouthWest(),i=e.getNorthEast()):r=i=e,r.lat>=t.lat&&i.lat<=n.lat&&r.lng>=t.lng&&i.lng<=n.lng},intersects:function(e){e=P(e);var t=this._southWest,n=this._northEast,r=e.getSouthWest(),i=e.getNorthEast(),a=i.lat>=t.lat&&r.lat<=n.lat,o=i.lng>=t.lng&&r.lng<=n.lng;return a&&o},overlaps:function(e){e=P(e);var t=this._southWest,n=this._northEast,r=e.getSouthWest(),i=e.getNorthEast(),a=i.lat>t.lat&&r.lat<n.lat,o=i.lng>t.lng&&r.lng<n.lng;return a&&o},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(`,`)},equals:function(e,t){return e?(e=P(e),this._southWest.equals(e.getSouthWest(),t)&&this._northEast.equals(e.getNorthEast(),t)):!1},isValid:function(){return!!(this._southWest&&this._northEast)}};function P(e,t){return e instanceof N?e:new N(e,t)}function F(e,t,n){if(isNaN(e)||isNaN(t))throw Error(`Invalid LatLng object: (`+e+`, `+t+`)`);this.lat=+e,this.lng=+t,n!==void 0&&(this.alt=+n)}F.prototype={equals:function(e,t){return e?(e=I(e),Math.max(Math.abs(this.lat-e.lat),Math.abs(this.lng-e.lng))<=(t===void 0?1e-9:t)):!1},toString:function(e){return`LatLng(`+u(this.lat,e)+`, `+u(this.lng,e)+`)`},distanceTo:function(e){return ie.distance(this,I(e))},wrap:function(){return ie.wrapLatLng(this)},toBounds:function(e){var t=180*e/40075017,n=t/Math.cos(Math.PI/180*this.lat);return P([this.lat-t,this.lng-n],[this.lat+t,this.lng+n])},clone:function(){return new F(this.lat,this.lng,this.alt)}};function I(e,t,n){return e instanceof F?e:_(e)&&typeof e[0]!=`object`?e.length===3?new F(e[0],e[1],e[2]):e.length===2?new F(e[0],e[1]):null:e==null?e:typeof e==`object`&&`lat`in e?new F(e.lat,`lng`in e?e.lng:e.lon,e.alt):t===void 0?null:new F(e,t,n)}var R={latLngToPoint:function(e,t){var n=this.projection.project(e),r=this.scale(t);return this.transformation._transform(n,r)},pointToLatLng:function(e,t){var n=this.scale(t),r=this.transformation.untransform(e,n);return this.projection.unproject(r)},project:function(e){return this.projection.project(e)},unproject:function(e){return this.projection.unproject(e)},scale:function(e){return 256*2**e},zoom:function(e){return Math.log(e/256)/Math.LN2},getProjectedBounds:function(e){if(this.infinite)return null;var t=this.projection.bounds,n=this.scale(e);return new j(this.transformation.transform(t.min,n),this.transformation.transform(t.max,n))},infinite:!1,wrapLatLng:function(e){var t=this.wrapLng?c(e.lng,this.wrapLng,!0):e.lng,n=this.wrapLat?c(e.lat,this.wrapLat,!0):e.lat,r=e.alt;return new F(n,t,r)},wrapLatLngBounds:function(e){var t=e.getCenter(),n=this.wrapLatLng(t),r=t.lat-n.lat,i=t.lng-n.lng;if(r===0&&i===0)return e;
1var a=e.getSouthWest(),o=e.getNorthEast();return new N(new F(a.lat-r,a.lng-i),new F(o.lat-r,o.lng-i))}},ie=n({},R,{wrapLng:[-180,180],R:6371e3,distance:function(e,t){var n=Math.PI/180,r=e.lat*n,i=t.lat*n,a=Math.sin((t.lat-e.lat)*n/2),o=Math.sin((t.lng-e.lng)*n/2),s=a*a+Math.cos(r)*Math.cos(i)*o*o,c=2*Math.atan2(Math.sqrt(s),Math.sqrt(1-s));return this.R*c}}),ae=6378137,oe={R:ae,MAX_LATITUDE:85.0511287798,project:function(e){var t=Math.PI/180,n=this.MAX_LATITUDE,r=Math.max(Math.min(n,e.lat),-n),i=Math.sin(r*t);return new k(this.R*e.lng*t,this.R*Math.log((1+i)/(1-i))/2)},unproject:function(e){var t=180/Math.PI;return new F((2*Math.atan(Math.exp(e.y/this.R))-Math.PI/2)*t,e.x*t/this.R)},bounds:(function(){var e=ae*Math.PI;return new j([-e,-e],[e,e])})()};function se(e,t,n,r){if(_(e)){this._a=e[0],this._b=e[1],this._c=e[2],this._d=e[3];return}this._a=e,this._b=t,this._c=n,this._d=r}se.prototype={transform:function(e,t){return this._transform(e.clone(),t)},_transform:function(e,t){return t||=1,e.x=t*(this._a*e.x+this._b),e.y=t*(this._c*e.y+this._d),e},untransform:function(e,t){return t||=1,new k((e.x/t-this._b)/this._a,(e.y/t-this._d)/this._c)}};function ce(e,t,n,r){return new se(e,t,n,r)}var le=n({},ie,{code:`EPSG:3857`,projection:oe,transformation:function(){var e=.5/(Math.PI*oe.R);return ce(e,.5,-e,.5)}()}),ue=n({},le,{code:`EPSG:900913`});function de(e){return document.createElementNS(`http://www.w3.org/2000/svg`,e)}function fe(e,t){for(var n=``,r=0,i,a=e.length,o,s,c;r<a;r++){for(s=e[r],i=0,o=s.length;i<o;i++)c=s[i],n+=(i?`L`:`M`)+c.x+` `+c.y;n+=t?z.svg?`z`:`x`:``}return n||`M0 0`}var pe=document.documentElement.style,me=`ActiveXObject`in window,he=me&&!document.addEventListener,ge=`msLaunchUri`in navigator&&!(`documentMode`in document),_e=Xe(`webkit`),ve=Xe(`android`),ye=Xe(`android 2`)||Xe(`android 3`),be=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),xe=ve&&Xe(`Google`)&&be<537&&!(`AudioNode`in window),Se=!!window.opera,Ce=!ge&&Xe(`chrome`),we=Xe(`gecko`)&&!_e&&!Se&&!me,Te=!Ce&&Xe(`safari`),Ee=Xe(`phantom`),De=`OTransition`in pe,Oe=navigator.platform.indexOf(`Win`)===0,ke=me&&`transition`in pe,Ae=`WebKitCSSMatrix`in window&&`m11`in new window.WebKitCSSMatrix&&!ye,je=`MozPerspective`in pe,Me=!window.L_DISABLE_3D&&(ke||Ae||je)&&!De&&!Ee,Ne=typeof orientation<`u`||Xe(`mobile`),Pe=Ne&&_e,Fe=Ne&&Ae,Ie=!window.PointerEvent&&window.MSPointerEvent,Le=!!(window.PointerEvent||Ie),Re=`ontouchstart`in window||!!window.TouchEvent,ze=!window.L_NO_TOUCH&&(Re||Le),Be=Ne&&Se,Ve=Ne&&we,He=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,Ue=function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener(`testPassiveEventSupport`,l,t),window.removeEventListener(`testPassiveEventSupport`,l,t)}catch{}return e}(),We=function(){return!!document.createElement(`canvas`).getContext}(),Ge=!!(document.createElementNS&&de(`svg`).createSVGRect),Ke=!!Ge&&(function(){var e=document.createElement(`div`);return e.innerHTML=`<svg/>`,(e.firstChild&&e.firstChild.namespaceURI)===`http://www.w3.org/2000/svg`})(),qe=!Ge&&function(){try{var e=document.createElement(`div`);e.innerHTML=`<v:shape adj="1"/>`;var t=e.firstChild;return t.style.behavior=`url(#default#VML)`,t&&typeof t.adj==`object`}catch{return!1}}(),Je=navigator.platform.indexOf(`Mac`)===0,Ye=navigator.platform.indexOf(`Linux`)===0;function Xe(e){return navigator.userAgent.toLowerCase().indexOf(e)>=0}var z={ie:me,ielt9:he,edge:ge,webkit:_e,android:ve,android23:ye,androidStock:xe,opera:Se,chrome:Ce,gecko:we,safari:Te,phantom:Ee,opera12:De,win:Oe,ie3d:ke,webkit3d:Ae,gecko3d:je,any3d:Me,mobile:Ne,mobileWebkit:Pe,mobileWebkit3d:Fe,msPointer:Ie,pointer:Le,touch:ze,touchNative:Re,mobileOpera:Be,mobileGecko:Ve,retina:He,passiveEvents:Ue,canvas:We,svg:Ge,vml:qe,inlineSvg:Ke,mac:Je,linux:Ye},Ze=z.msPointer?`MSPointerDown`:`pointerdown`,Qe=z.msPointer?`MSPointerMove`:`pointermove`,$e=z.msPointer?`MSPointerUp`:`pointerup`,et=z.msPointer?`MSPointerCancel`:`pointercancel`,tt={touchstart:Ze,touchmove:Qe,touchend:$e,touchcancel:et},nt={touchstart:ft,touchmove:dt,touchend:dt,touchcancel:dt},rt={},it=!1;function at(e,t,n){return t===`touchstart`&&ut(),nt[t]?(n=nt[t].bind(this,n),e.addEventListener(tt[t],n,!1),n):(console.warn(`wrong event specified:`,t),l)}function ot(e,t,n){if(!tt[t]){console.warn(`wrong event specified:`,t);return}e.removeEventListener(tt[t],n,!1)}function st(e){rt[e.pointerId]=e}function ct(e){rt[e.pointerId]&&(rt[e.pointerId]=e)}function lt(e){delete rt[e.pointerId]}function ut(){it||=(document.addEventListener(Ze,st,!0),document.addEventListener(Qe,ct,!0),document.addEventListener($e,lt,!0),document.addEventListener(et,lt,!0),!0)}function dt(e,t){if(t.pointerType!==(t.MSPOINTER_TYPE_MOUSE||`mouse`)){for(var n in t.touches=[],rt)t.touches.push(rt[n]);t.changedTouches=[t],e(t)}}function ft(e,t){t.MSPOINTER_TYPE_TOUCH&&t.pointerType===t.MSPOINTER_TYPE_TOUCH&&Y(t),dt(e,t)}function pt(e){var t={},n,r;for(r in e)n=e[r],t[r]=n&&n.bind?n.bind(e):n;return e=t,t.type=`dblclick`,t.detail=2,t.isTrusted=!1,t._simulated=!0,t}var mt=200;function ht(e,t){e.addEventListener(`dblclick`,t);var n=0,r;function i(e){if(e.detail!==1){r=e.detail;return}if(!(e.pointerType===`mouse`||e.sourceCapabilities&&!e.sourceCapabilities.firesTouchEvents)){var i=$t(e);if(!i.some(function(e){return e instanceof HTMLLabelElement&&e.attributes.for})||i.some(function(e){return e instanceof HTMLInputElement||e instanceof HTMLSelectElement})){var a=Date.now();a-n<=mt?(r++,r===2&&t(pt(e))):r=1,n=a}}}return e.addEventListener(`click`,i),{dblclick:t,simDblclick:i}}function gt(e,t){e.removeEventListener(`dblclick`,t.dblclick),e.removeEventListener(`click`,t.simDblclick)}var _t=kt([`transform`,`webkitTransform`,`OTransform`,`MozTransform`,`msTransform`]),vt=kt([`webkitTransition`,`transition`,`OTransition`,`MozTransition`,`msTransition`]),yt=vt===`webkitTransition`||vt===`OTransition`?vt+`End`:`transitionend`;function bt(e){return typeof e==`string`?document.getElementById(e):e}function xt(e,t){var n=e.style[t]||e.currentStyle&&e.currentStyle[t];if((!n||n===`auto`)&&document.defaultView){var r=document.defaultView.getComputedStyle(e,null);n=r?r[t]:null}return n===`auto`?null:n}function B(e,t,n){var r=document.createElement(e);return r.className=t||``,n&&n.appendChild(r),r}function V(e){var t=e.parentNode;t&&t.removeChild(e)}function St(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function Ct(e){var t=e.parentNode;t&&t.lastChild!==e&&t.appendChild(e)}function wt(e){var t=e.parentNode;t&&t.firstChild!==e&&t.insertBefore(e,t.firstChild)}function Tt(e,t){if(e.classList!==void 0)return e.classList.contains(t);var n=Dt(e);return n.length>0&&RegExp(`(^|\\s)`+t+`(\\s|$)`).test(n)}function H(e,t){if(e.classList!==void 0)for(var n=f(t),r=0,i=n.length;r<i;r++)e.classList.add(n[r]);else if(!Tt(e,t)){var a=Dt(e);Et(e,(a?a+` `:``)+t)}}function U(e,t){e.classList===void 0?Et(e,d((` `+Dt(e)+` `).replace(` `+t+` `,` `))):e.classList.remove(t)}function Et(e,t){e.className.baseVal===void 0?e.className=t:e.className.baseVal=t}function Dt(e){return e.correspondingElement&&(e=e.correspondingElement),e.className.baseVal===void 0?e.className:e.className.baseVal}function W(e,t){`opacity`in e.style?e.style.opacity=t:`filter`in e.style&&Ot(e,t)}function Ot(e,t){var n=!1,r=`DXImageTransform.Microsoft.Alpha`;try{n=e.filters.item(r)}catch{if(t===1)return}t=Math.round(t*100),n?(n.Enabled=t!==100,n.Opacity=t):e.style.filter+=` progid:`+r+`(opacity=`+t+`)`}function kt(e){for(var t=document.documentElement.style,n=0;n<e.length;n++)if(e[n]in t)return e[n];return!1}function At(e,t,n){var r=t||new k(0,0);e.style[_t]=(z.ie3d?`translate(`+r.x+`px,`+r.y+`px)`:`translate3d(`+r.x+`px,`+r.y+`px,0)`)+(n?` scale(`+n+`)`:``)}function G(e,t){e._leaflet_pos=t,z.any3d?At(e,t):(e.style.left=t.x+`px`,e.style.top=t.y+`px`)}function jt(e){return e._leaflet_pos||new k(0,0)}var Mt,Nt,Pt;if(`onselectstart`in document)Mt=function(){K(window,`selectstart`,Y)},Nt=function(){J(window,`selectstart`,Y)};else{var Ft=kt([`userSelect`,`WebkitUserSelect`,`OUserSelect`,`MozUserSelect`,`msUserSelect`]);Mt=function(){if(Ft){var e=document.documentElement.style;Pt=e[Ft],e[Ft]=`none`}},Nt=function(){Ft&&(document.documentElement.style[Ft]=Pt,Pt=void 0)}}function It(){K(window,`dragstart`,Y)}function Lt(){J(window,`dragstart`,Y)}var Rt,zt;function Bt(e){for(;e.tabIndex===-1;)e=e.parentNode;e.style&&(Vt(),Rt=e,zt=e.style.outlineStyle,e.style.outlineStyle=`none`,K(window,`keydown`,Vt))}function Vt(){Rt&&(Rt.style.outlineStyle=zt,Rt=void 0,zt=void 0,J(window,`keydown`,Vt))}function Ht(e){do e=e.parentNode;while((!e.offsetWidth||!e.offsetHeight)&&e!==document.body);return e}function Ut(e){var t=e.getBoundingClientRect();return{x:t.width/e.offsetWidth||1,y:t.height/e.offsetHeight||1,boundingClientRect:t}}var Wt={__proto__:null,TRANSFORM:_t,TRANSITION:vt,TRANSITION_END:yt,get:bt,getStyle:xt,create:B,remove:V,empty:St,toFront:Ct,toBack:wt,hasClass:Tt,addClass:H,removeClass:U,setClass:Et,getClass:Dt,setOpacity:W,testProp:kt,setTransform:At,setPosition:G,getPosition:jt,get disableTextSelection(){return Mt},get enableTextSelection(){return Nt},disableImageDrag:It,enableImageDrag:Lt,preventOutline:Bt,restoreOutline:Vt,getSizedParentNode:Ht,getScale:Ut};function K(e,t,n,r){if(t&&typeof t==`object`)for(var i in t)qt(e,i,t[i],n);else{t=f(t);for(var a=0,o=t.length;a<o;a++)qt(e,t[a],n,r)}return this}var q=`_leaflet_events`;function J(e,t,n,r){if(arguments.length===1)Gt(e),delete e[q];else if(t&&typeof t==`object`)for(var i in t)Jt(e,i,t[i],n);else if(t=f(t),arguments.length===2)Gt(e,function(e){return ee(t,e)!==-1});else for(var a=0,o=t.length;a<o;a++)Jt(e,t[a],n,r);return this}function Gt(e,t){for(var n in e[q]){var r=n.split(/\d/)[0];(!t||t(r))&&Jt(e,r,null,null,n)}}var Kt={mouseenter:`mouseover`,mouseleave:`mouseout`,wheel:!(`onwheel`in window)&&`mousewheel`};function qt(e,t,n,r){var i=t+o(n)+(r?`_`+o(r):``);if(e[q]&&e[q][i])return this;var a=function(t){return n.call(r||e,t||window.event)},s=a;!z.touchNative&&z.pointer&&t.indexOf(`touch`)===0?a=at(e,t,a):z.touch&&t===`dblclick`?a=ht(e,a):`addEventListener`in e?t===`touchstart`||t===`touchmove`||t===`wheel`||t===`mousewheel`?e.addEventListener(Kt[t]||t,a,z.passiveEvents?{passive:!1}:!1):t===`mouseenter`||t===`mouseleave`?(a=function(t){t||=window.event,rn(e,t)&&s(t)},e.addEventListener(Kt[t],a,!1)):e.addEventListener(t,s,!1):e.attachEvent(`on`+t,a),e[q]=e[q]||{},e[q][i]=a}function Jt(e,t,n,r,i){i||=t+o(n)+(r?`_`+o(r):``);var a=e[q]&&e[q][i];if(!a)return this;!z.touchNative&&z.pointer&&t.indexOf(`touch`)===0?ot(e,t,a):z.touch&&t===`dblclick`?gt(e,a):`removeEventListener`in e?e.removeEventListener(Kt[t]||t,a,!1):e.detachEvent(`on`+t,a),e[q][i]=null}function Yt(e){return e.stopPropagation?e.stopPropagation():e.originalEvent?e.originalEvent._stopped=!0:e.cancelBubble=!0,this}function Xt(e){return qt(e,`wheel`,Yt),this}function Zt(e){return K(e,`mousedown touchstart dblclick contextmenu`,Yt),e._leaflet_disable_click=!0,this}function Y(e){return e.preventDefault?e.preventDefault():e.returnValue=!1,this}function Qt(e){return Y(e),Yt(e),this}function $t(e){if(e.composedPath)return e.composedPath();for(var t=[],n=e.target;n;)t.push(n),n=n.parentNode;return t}function en(e,t){if(!t)return new k(e.clientX,e.clientY);var n=Ut(t),r=n.boundingClientRect;return new k((e.clientX-r.left)/n.x-t.clientLeft,(e.clientY-r.top)/n.y-t.clientTop)}var tn=z.linux&&z.chrome?window.devicePixelRatio:z.mac?window.devicePixelRatio*3:window.devicePixelRatio>0?2*window.devicePixelRatio:1;
1function nn(e){return z.edge?e.wheelDeltaY/2:e.deltaY&&e.deltaMode===0?-e.deltaY/tn:e.deltaY&&e.deltaMode===1?-e.deltaY*20:e.deltaY&&e.deltaMode===2?-e.deltaY*60:e.deltaX||e.deltaZ?0:e.wheelDelta?(e.wheelDeltaY||e.wheelDelta)/2:e.detail&&Math.abs(e.detail)<32765?-e.detail*20:e.detail?e.detail/-32765*60:0}function rn(e,t){var n=t.relatedTarget;if(!n)return!0;try{for(;n&&n!==e;)n=n.parentNode}catch{return!1}return n!==e}var an={__proto__:null,on:K,off:J,stopPropagation:Yt,disableScrollPropagation:Xt,disableClickPropagation:Zt,preventDefault:Y,stop:Qt,getPropagationPath:$t,getMousePosition:en,getWheelDelta:nn,isExternalTarget:rn,addListener:K,removeListener:J},on=O.extend({run:function(e,t,n,r){this.stop(),this._el=e,this._inProgress=!0,this._duration=n||.25,this._easeOutPower=1/Math.max(r||.5,.2),this._startPos=jt(e),this._offset=t.subtract(this._startPos),this._startTime=+new Date,this.fire(`start`),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=w(this._animate,this),this._step()},_step:function(e){var t=+new Date-this._startTime,n=this._duration*1e3;t<n?this._runFrame(this._easeOut(t/n),e):(this._runFrame(1),this._complete())},_runFrame:function(e,t){var n=this._startPos.add(this._offset.multiplyBy(e));t&&n._round(),G(this._el,n),this.fire(`step`)},_complete:function(){T(this._animId),this._inProgress=!1,this.fire(`end`)},_easeOut:function(e){return 1-(1-e)**this._easeOutPower}}),X=O.extend({options:{crs:le,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(e,t){t=p(this,t),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(e),this._initLayout(),this._onResize=i(this._onResize,this),this._initEvents(),t.maxBounds&&this.setMaxBounds(t.maxBounds),t.zoom!==void 0&&(this._zoom=this._limitZoom(t.zoom)),t.center&&t.zoom!==void 0&&this.setView(I(t.center),t.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=vt&&z.any3d&&!z.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),K(this._proxy,yt,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(e,t,r){return t=t===void 0?this._zoom:this._limitZoom(t),e=this._limitCenter(I(e),t,this.options.maxBounds),r||={},this._stop(),this._loaded&&!r.reset&&r!==!0&&(r.animate!==void 0&&(r.zoom=n({animate:r.animate},r.zoom),r.pan=n({animate:r.animate,duration:r.duration},r.pan)),this._zoom===t?this._tryAnimatedPan(e,r.pan):this._tryAnimatedZoom&&this._tryAnimatedZoom(e,t,r.zoom))?(clearTimeout(this._sizeTimer),this):(this._resetView(e,t,r.pan&&r.pan.noMoveStart),this)},setZoom:function(e,t){return this._loaded?this.setView(this.getCenter(),e,{zoom:t}):(this._zoom=e,this)},zoomIn:function(e,t){return e||=z.any3d?this.options.zoomDelta:1,this.setZoom(this._zoom+e,t)},zoomOut:function(e,t){return e||=z.any3d?this.options.zoomDelta:1,this.setZoom(this._zoom-e,t)},setZoomAround:function(e,t,n){var r=this.getZoomScale(t),i=this.getSize().divideBy(2),a=(e instanceof k?e:this.latLngToContainerPoint(e)).subtract(i).multiplyBy(1-1/r),o=this.containerPointToLatLng(i.add(a));return this.setView(o,t,{zoom:n})},_getBoundsCenterZoom:function(e,t){t||={},e=e.getBounds?e.getBounds():P(e);var n=A(t.paddingTopLeft||t.padding||[0,0]),r=A(t.paddingBottomRight||t.padding||[0,0]),i=this.getBoundsZoom(e,!1,n.add(r));if(i=typeof t.maxZoom==`number`?Math.min(t.maxZoom,i):i,i===1/0)return{center:e.getCenter(),zoom:i};
1var a=r.subtract(n).divideBy(2),o=this.project(e.getSouthWest(),i),s=this.project(e.getNorthEast(),i);return{center:this.unproject(o.add(s).divideBy(2).add(a),i),zoom:i}},fitBounds:function(e,t){if(e=P(e),!e.isValid())throw Error(`Bounds are not valid.`);var n=this._getBoundsCenterZoom(e,t);return this.setView(n.center,n.zoom,t)},fitWorld:function(e){return this.fitBounds([[-90,-180],[90,180]],e)},panTo:function(e,t){return this.setView(e,this._zoom,{pan:t})},panBy:function(e,t){if(e=A(e).round(),t||={},!e.x&&!e.y)return this.fire(`moveend`);if(t.animate!==!0&&!this.getSize().contains(e))return this._resetView(this.unproject(this.project(this.getCenter()).add(e)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new on,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),t.noMoveStart||this.fire(`movestart`),t.animate!==!1){H(this._mapPane,`leaflet-pan-anim`);var n=this._getMapPanePos().subtract(e).round();this._panAnim.run(this._mapPane,n,t.duration||.25,t.easeLinearity)}else this._rawPanBy(e),this.fire(`move`).fire(`moveend`);return this},flyTo:function(e,t,n){if(n||={},n.animate===!1||!z.any3d)return this.setView(e,t,n);this._stop();var r=this.project(this.getCenter()),i=this.project(e),a=this.getSize(),o=this._zoom;e=I(e),t=t===void 0?o:t;var s=Math.max(a.x,a.y),c=s*this.getZoomScale(o,t),l=i.distanceTo(r)||1,u=1.42,d=u*u;function f(e){var t=e?-1:1,n=e?c:s,r=(c*c-s*s+t*d*d*l*l)/(2*n*d*l),i=Math.sqrt(r*r+1)-r;return i<1e-9?-18:Math.log(i)}function p(e){return(Math.exp(e)-Math.exp(-e))/2}function m(e){return(Math.exp(e)+Math.exp(-e))/2}function h(e){return p(e)/m(e)}var g=f(0);function _(e){return s*(m(g)/m(g+u*e))}function ee(e){return s*(m(g)*h(g+u*e)-p(g))/d}function v(e){return 1-(1-e)**1.5}var y=Date.now(),b=(f(1)-g)/u,x=n.duration?1e3*n.duration:1e3*b*.8;function S(){var n=(Date.now()-y)/x,a=v(n)*b;n<=1?(this._flyToFrame=w(S,this),this._move(this.unproject(r.add(i.subtract(r).multiplyBy(ee(a)/l)),o),this.get
1ScaleZoom(s/_(a),o),{flyTo:!0})):this._move(e,t)._moveEnd(!0)}return this._moveStart(!0,n.noMoveStart),S.call(this),this},flyToBounds:function(e,t){var n=this._getBoundsCenterZoom(e,t);return this.flyTo(n.center,n.zoom,t)},setMaxBounds:function(e){return e=P(e),this.listens(`moveend`,this._panInsideMaxBounds)&&this.off(`moveend`,this._panInsideMaxBounds),e.isValid()?(this.options.maxBounds=e,this._loaded&&this._panInsideMaxBounds(),this.on(`moveend`,this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},setMinZoom:function(e){var t=this.options.minZoom;return this.options.minZoom=e,this._loaded&&t!==e&&(this.fire(`zoomlevelschange`),this.getZoom()<this.options.minZoom)?this.setZoom(e):this},setMaxZoom:function(e){var t=this.options.maxZoom;return this.options.maxZoom=e,this._loaded&&t!==e&&(this.fire(`zoomlevelschange`),this.getZoom()>this.options.maxZoom)?this.setZoom(e):this},panInsideBounds:function(e,t){this._enforcingBounds=!0;var n=this.getCenter(),r=this._limitCenter(n,this._zoom,P(e));return n.equals(r)||this.panTo(r,t),this._enforcingBounds=!1,this},panInside:function(e,t){t||={};var n=A(t.paddingTopLeft||t.padding||[0,0]),r=A(t.paddingBottomRight||t.padding||[0,0]),i=this.project(this.getCenter()),a=this.project(e),o=this.getPixelBounds(),s=M([o.min.add(n),o.max.subtract(r)]),c=s.getSize();if(!s.contains(a)){this._enforcingBounds=!0;var l=a.subtract(s.getCenter()),u=s.extend(a).getSize().subtract(c);i.x+=l.x<0?-u.x:u.x,i.y+=l.y<0?-u.y:u.y,this.panTo(this.unproject(i),t),this._enforcingBounds=!1}return this},invalidateSize:function(e){if(!this._loaded)return this;e=n({animate:!1,pan:!0},e===!0?{animate:!0}:e);var t=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var r=this.getSize(),a=t.divideBy(2).round(),o=r.divideBy(2).round(),s=a.subtract(o);return!s.x&&!s.y?this:(e.animate&&e.pan?this.panBy(s):(e.pan&&this._rawPanBy(s),this.fire(`move`),e.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(i(this.fire,this,`moveend`),200)):this.fire(`moveend`)),this.fire(`resize`,{oldSize:t,newSize:r}))},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire(`viewreset`),this._stop()},locate:function(e){if(e=this._locateOptions=n({timeout:1e4,watch:!1},e),!(`geolocation`in navigator))return this._handleGeolocationError({code:0,message:`Geolocation not supported.`}),this;var t=i(this._handleGeolocationResponse,this),r=i(this._handleGeolocationError,this);return e.watch?this._locationWatchId=navigator.geolocation.watchPosition(t,r,e):navigator.geolocation.getCurrentPosition(t,r,e),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(e){if(this._container._leaflet_id){var t=e.code,n=e.message||(t===1?`permission denied`:t===2?`position unavailable`:`timeout`);this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire(`locationerror`,{code:t,message:`Geolocation error: `+n+`.`})}},_handleGeolocationResponse:function(e){if(this._container._leaflet_id){var t=e.coords.latitude,n=e.coords.longitude,r=new F(t,n),i=r.toBounds(e.coords.accuracy*2),a=this._locateOptions;if(a.setView){var o=this.getBoundsZoom(i);this.setView(r,a.maxZoom?Math.min(o,a.maxZoom):o)}var s={latlng:r,bounds:i,timestamp:e.timestamp};for(var c in e.coords)typeof e.coords[c]==`number`&&(s[c]=e.coords[c]);this.fire(`locationfound`,s)}},addHandler:function(e,t){if(!t)return this;var n=this[e]=new t(this);return this._handlers.push(n),this.options[e]&&n.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off(`moveend`,this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw Error(`Map container is being reused by another instance`);try{delete this._container._leaflet_id,delete this._containerId}catch{this._container._leaflet_id=void 0,this._containerId=void 0}for(var e in this._locationWatchId!==void 0&&this.stopLocate(),this._stop(),V(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&=(T(this._resizeRequest),null),this._clearHandlers(),this._loaded&&this.fire(`unload`),this._layers)this._layers[e].remove();for(e in this._panes)V(this._panes[e]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(e,t){var n=B(`div`,`leaflet-pane`+(e?` leaflet-`+e.replace(`Pane`,``)+`-pane`:``),t||this._mapPane);return e&&(this._panes[e]=n),n},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var e=this.getPixelBounds();return new N(this.unproject(e.getBottomLeft()),this.unproject(e.getTopRight()))},getMinZoom:function(){return this.options.minZoom===void 0?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return this.options.maxZoom===void 0?this._layersMaxZo
1om===void 0?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(e,t,n){e=P(e),n=A(n||[0,0]);var r=this.getZoom()||0,i=this.getMinZoom(),a=this.getMaxZoom(),o=e.getNorthWest(),s=e.getSouthEast(),c=this.getSize().subtract(n),l=M(this.project(s,r),this.project(o,r)).getSize(),u=z.any3d?this.options.zoomSnap:1,d=c.x/l.x,f=c.y/l.y,p=t?Math.max(d,f):Math.min(d,f);return r=this.getScaleZoom(p,r),u&&(r=Math.round(r/(u/100))*(u/100),r=t?Math.ceil(r/u)*u:Math.floor(r/u)*u),Math.max(i,Math.min(a,r))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new k(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(e,t){var n=this._getTopLeftPoint(e,t);return new j(n,n.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(e){return this.options.crs.getProjectedBounds(e===void 0?this.getZoom():e)},getPane:function(e){return typeof e==`string`?this._panes[e]:e},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(e,t){var n=this.options.crs;return t=t===void 0?this._zoom:t,n.scale(e)/n.scale(t)},getScaleZoom:function(e,t){var n=this.options.crs;t=t===void 0?this._zoom:t;var r=n.zoom(e*n.scale(t));return isNaN(r)?1/0:r},project:function(e,t){return t=t===void 0?this._zoom:t,this.options.crs.latLngToPoint(I(e),t)},unproject:function(e,t){return t=t===void 0?this._zoom:t,this.options.crs.pointToLatLng(A(e),t)},layerPointToLatLng:function(e){var t=A(e).add(this.getPixelOrigin());return this.unproject(t)},latLngToLayerPoint:function(e){return this.project(I(e))._round()._subtract(this.getPixelOrigin())},wrapLatLng:function(e){return this.options.crs.wrapLatLng(I(e))},wrapLatLngBounds:function(e){return this.options.crs.wrapLatLngBounds(P(e))},distance:function(e,t){return this.options.crs.distance(I(e),I(t))},containerPointToLayerPoint:function(e){return A(e).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(e){return A(e).add(this._getMapPanePos())},containerPointToLatLng:function(e){var t=this.containerPointToLayerPoint(A(e));return this.layerPointToLatLng(t)},latLngToContainerPoint:function(e){return this.layerPointToContainerPoint(this.latLngToLayerPoint(I(e)))},mouseEventToContainerPoint:function(e){return en(e,this._container)},mouseEventToLayerPoint:function(e){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(e))},mouseEventToLatLng:function(e){return this.layerPointToLatLng(this.mouseEventToLayerPoint(e))},_initContainer:function(e){var t=this._container=bt(e);if(!t)throw Error(`Map container not found.`);if(t._leaflet_id)throw Error(`Map container is already initialized.`);K(t,`scroll`,this._onScroll,this),this._containerId=o(t)},_initLayout:function(){var e=this._container;this._fadeAnimated=this.options.fadeAnimation&&z.any3d,H(e,`leaflet-container`+(z.touch?` leaflet-touch`:``)+(z.retina?` leaflet-retina`:``)+(z.ielt9?` leaflet-oldie`:``)+(z.safari?` leaflet-safari`:``)+(this._fadeAnimated?` leaflet-fade-anim`:``));var t=xt(e,`position`);t!==`absolute`&&t!==`relative`&&t!==`fixed`&&t!==`sticky`&&(e.style.position=`relative`),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var e=this._panes={};this._paneRenderers={},this._mapPane=this.createPane(`mapPane`,this._container),G(this._mapPane,new k(0,0)),this.createPane(`tilePane`),this.createPane(`overlayPane`),this.createPane(`shadowPane`),this.createPane(`markerPane`),this.createPane(`tooltipPane`),this.createPane(`popupPane`),this.options.markerZoomAnimation||(H(e.markerPane,`leaflet-zoom-hide`),H(e.shadowPane,`leaflet-zoom-hide`))},_resetView:function(e,t,n){G(this._mapPane,new k(0,0));var r=!this._loaded;this._loaded=!0,t=this._limitZoom(t),this.fire(`viewprereset`);var i=this._zoom!==t;this._moveStart(i,n)._move(e,t)._moveEnd(i),this.fire(`viewreset`),r&&this.fire(`load`)},_moveStart:function(e,t){return e&&this.fire(`zoomstart`),t||this.fire(`movestart`),this},_move:function(e,t,n,r){t===void 0&&(t=this._zoom);var i=this._zoom!==t;return this._zoom=t,this._lastCenter=e,this._pixelOrigin=this._getNewPixelOrigin(e),r?n&&n.pinch&&this.fire(`zoom`,n):((i||n&&n.pinch)&&this.fire(`zoom`,n),this.fire(`move`,n)),this},_moveEnd:function(e){return e&&this.fire(`zoomend`),this.fire(`moveend`)},_stop:function(){return T(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(e){G(this._mapPane,this._getMapPanePos().subtract(e))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw Error(`Set map center and zoom first.`)},_initEvents:function(e){this._targets={},this._targets[o(this._container)]=this;var t=e?J:K;t(this._container,`click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup`,this._handleDOMEvent,this),this.options.trackResize&&t(window,`resize`,this._onResize,this),z.any3d&&this.options.transform3DLimit&&(e?this.off:this.on).call(this,`moveend`,this._onMoveEnd)},_onResize:function(){T(this._resizeRequest),this._resizeRequest=w(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var e=this._getMapPanePos();Math.max(Math.abs(e.x),Math.abs(e.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(e,t){for(var n=[],r,i=t===`mouseout`||t===`mouseover`,a=e.target||e.srcElement,s=!1;a;){if(r=this._targets[o(a)],r&&(t===`click`||t===`preclick`)&&this._draggableMoved(r)){s=!0;break}if(r&&r.listens(t,!0)&&(i&&!rn(a,e)||(n.push(r),i))||a===this._container)break;a=a.parentNode}return!n.length&&!s&&!i&&this.listens(t,!0)&&(n=[this]),n},_isClickDisabled:function(e){for(;e&&e!==this._container;){if(e._leaflet_disable_click)return!0;e=e.parentNode}},_handleDOMEvent:function(e){var t=e.target||e.srcElement;if(!(!this._loaded||t._leaflet_disable_events||e.type===`click`&&this._isCl
1ickDisabled(t))){var n=e.type;n===`mousedown`&&Bt(t),this._fireDOMEvent(e,n)}},_mouseEvents:[`click`,`dblclick`,`mouseover`,`mouseout`,`contextmenu`],_fireDOMEvent:function(e,t,r){if(e.type===`click`){var i=n({},e);i.type=`preclick`,this._fireDOMEvent(i,i.type,r)}var a=this._findEventTargets(e,t);if(r){for(var o=[],s=0;s<r.length;s++)r[s].listens(t,!0)&&o.push(r[s]);a=o.concat(a)}if(a.length){t===`contextmenu`&&Y(e);var c=a[0],l={originalEvent:e};if(e.type!==`keypress`&&e.type!==`keydown`&&e.type!==`keyup`){var u=c.getLatLng&&(!c._radius||c._radius<=10);l.containerPoint=u?this.latLngToContainerPoint(c.getLatLng()):this.mouseEventToContainerPoint(e),l.layerPoint=this.containerPointToLayerPoint(l.containerPoint),l.latlng=u?c.getLatLng():this.layerPointToLatLng(l.layerPoint)}for(s=0;s<a.length;s++)if(a[s].fire(t,l,!0),l.originalEvent._stopped||a[s].options.bubblingMouseEvents===!1&&ee(this._mouseEvents,t)!==-1)return}},_draggableMoved:function(e){return e=e.dragging&&e.dragging.enabled()?e:this,e.dragging&&e.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var e=0,t=this._handlers.length;e<t;e++)this._handlers[e].disable()},whenReady:function(e,t){return this._loaded?e.call(t||this,{target:this}):this.on(`load`,e,t),this},_getMapPanePos:function(){return jt(this._mapPane)||new k(0,0)},_moved:function(){var e=this._getMapPanePos();return e&&!e.equals([0,0])},_getTopLeftPoint:function(e,t){return(e&&t!==void 0?this._getNewPixelOrigin(e,t):this.getPixelOrigin()).subtract(this._getMapPanePos())},_getNewPixelOrigin:function(e,t){var n=this.getSize()._divideBy(2);return this.project(e,t)._subtract(n)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(e,t,n){var r=this._getNewPixelOrigin(n,t);return this.project(e,t)._subtract(r)},_latLngBoundsToNewLayerBounds:function(e,t,n){var r=this._getNewPixelOrigin(n,t);
1return M([this.project(e.getSouthWest(),t)._subtract(r),this.project(e.getNorthWest(),t)._subtract(r),this.project(e.getSouthEast(),t)._subtract(r),this.project(e.getNorthEast(),t)._subtract(r)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(e){return this.latLngToLayerPoint(e).subtract(this._getCenterLayerPoint())},_limitCenter:function(e,t,n){if(!n)return e;var r=this.project(e,t),i=this.getSize().divideBy(2),a=new j(r.subtract(i),r.add(i)),o=this._getBoundsOffset(a,n,t);return Math.abs(o.x)<=1&&Math.abs(o.y)<=1?e:this.unproject(r.add(o),t)},_limitOffset:function(e,t){if(!t)return e;var n=this.getPixelBounds(),r=new j(n.min.add(e),n.max.add(e));return e.add(this._getBoundsOffset(r,t))},_getBoundsOffset:function(e,t,n){var r=M(this.project(t.getNorthEast(),n),this.project(t.getSouthWest(),n)),i=r.min.subtract(e.min),a=r.max.subtract(e.max);return new k(this._rebound(i.x,-a.x),this._rebound(i.y,-a.y))},_rebound:function(e,t){return e+t>0?Math.round(e-t)/2:Math.max(0,Math.ceil(e))-Math.max(0,Math.floor(t))},_limitZoom:function(e){var t=this.getMinZoom(),n=this.getMaxZoom(),r=z.any3d?this.options.zoomSnap:1;return r&&(e=Math.round(e/r)*r),Math.max(t,Math.min(n,e))},_onPanTransitionStep:function(){this.fire(`move`)},_onPanTransitionEnd:function(){U(this._mapPane,`leaflet-pan-anim`),this.fire(`moveend`)},_tryAnimatedPan:function(e,t){var n=this._getCenterOffset(e)._trunc();return(t&&t.animate)!==!0&&!this.getSize().contains(n)?!1:(this.panBy(n,t),!0)},_createAnimProxy:function(){var e=this._proxy=B(`div`,`leaflet-proxy leaflet-zoom-animated`);this._panes.mapPane.appendChild(e),this.on(`zoomanim`,function(e){var t=_t,n=this._proxy.style[t];At(this._proxy,this.project(e.center,e.zoom),this.getZoomScale(e.zoom,1)),n===this._proxy.style[t]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on(`load moveend`,this._animMoveEnd,this),this._on(`unload`,this._destroyAnimProxy,this)},_destroyAnimProxy:function(){V(this._proxy),this.off(`load moveend`,this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var e=this.getCenter(),t=this.getZoom();At(this._proxy,this.project(e,t),this.getZoomScale(t,1))},_catchTransitionEnd:function(e){this._animatingZoom&&e.propertyName.indexOf(`transform`)>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName(`leaflet-zoom-animated`).length},_tryAnimatedZoom:function(e,t,n){if(this._animatingZoom)return!0;if(n||={},!this._zoomAnimated||n.animate===!1||this._nothingToAnimate()||Math.abs(t-this._zoom)>this.options.zoomAnimationThreshold)return!1;var r=this.getZoomScale(t),i=this._getCenterOffset(e)._divideBy(1-1/r);return n.animate!==!0&&!this.getSize().contains(i)?!1:(w(function(){this._moveStart(!0,n.noMoveStart||!1)._animateZoom(e,t,!0)},this),!0)},_animateZoom:function(e,t,n,r){this._mapPane&&(n&&(this._animatingZoom=!0,this._animateToCenter=e,this._animateToZoom=t,H(this._mapPane,`leaflet-zoom-anim`)),this.fire(`zoomanim`,{center:e,zoom:t,noUpdate:r}),this._tempFireZoomEvent||=this._zoom!==this._animateToZoom,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(i(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&U(this._mapPane,`leaflet-zoom-anim`),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire(`zoom`),delete this._tempFireZoomEvent,this.fire(`move`),this._moveEnd(!0))}});function sn(e,t){return new X(e,t)}var Z=E.extend({options:{position:`topright`},initialize:function(e){p(this,e)},getPosition:function(){return this.options.position},setPosition:function(e){var t=this._map;return t&&t.removeControl(this),this.options.position=e,t&&t.addControl(this),this},getContainer:function(){return this._container},addTo:function(e){this.remove(),this._map=e;var t=this._container=this.onAdd(e),n=this.getPosition(),r=e._controlCorners[n];return H(t,`leaflet-control`),n.indexOf(`bottom`)===-1?r.appendChild(t):r.insertBefore(t,r.firstChild),this._map.on(`unload`,this.remove,this),this},remove:function(){return this._map?(V(this._container),this.onRemove&&this.onRemove(this._map),this._map.off(`unload`,this.remove,this),this._map=null,this):this},_refocusOnMap:function(e){this._map&&e&&e.screenX>0&&e.screenY>0&&this._map.getContainer().focus()}}),cn=function(e){return new Z(e)};X.include({addControl:function(e){return e.addTo(this),this},removeControl:function(e){return e.remove(),this}
1,_initControlPos:function(){var e=this._controlCorners={},t=`leaflet-`,n=this._controlContainer=B(`div`,t+`control-container`,this._container);function r(r,i){var a=t+r+` `+t+i;e[r+i]=B(`div`,a,n)}r(`top`,`left`),r(`top`,`right`),r(`bottom`,`left`),r(`bottom`,`right`)},_clearControlPos:function(){for(var e in this._controlCorners)V(this._controlCorners[e]);V(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var ln=Z.extend({options:{collapsed:!0,position:`topright`,autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(e,t,n,r){return n<r?-1:+(r<n)}},initialize:function(e,t,n){for(var r in p(this,n),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1,e)this._addLayer(e[r],r);for(r in t)this._addLayer(t[r],r,!0)},onAdd:function(e){this._initLayout(),this._update(),this._map=e,e.on(`zoomend`,this._checkDisabledLayers,this);for(var t=0;t<this._layers.length;t++)this._layers[t].layer.on(`add remove`,this._onLayerChange,this);return this._container},addTo:function(e){return Z.prototype.addTo.call(this,e),this._expandIfNotCollapsed()},onRemove:function(){this._map.off(`zoomend`,this._checkDisabledLayers,this);for(var e=0;e<this._layers.length;e++)this._layers[e].layer.off(`add remove`,this._onLayerChange,this)},addBaseLayer:function(e,t){return this._addLayer(e,t),this._map?this._update():this},addOverlay:function(e,t){return this._addLayer(e,t,!0),this._map?this._update():this},removeLayer:function(e){e.off(`add remove`,this._onLayerChange,this);var t=this._getLayer(o(e));return t&&this._layers.splice(this._layers.indexOf(t),1),this._map?this._update():this},expand:function(){H(this._container,`leaflet-control-layers-expanded`),this._section.style.height=null;var e=this._map.getSize().y-(this._container.offsetTop+50);return e<this._section.clientHeight?(H(this._section,`leaflet-control-layers-scrollbar`),this._section.style.height=e+`px`):U(this._section,`leaflet-control-layers-scrollbar`),this._checkDisabledLayers(),this},collapse:function(){return U(this._container,`leaflet-control-layers-expanded`),this},_initLayout:function(){var e=`leaflet-control-layers`,t=this._container=B(`div`,e),n=this.options.collapsed;t.setAttribute(`aria-haspopup`,!0),Zt(t),Xt(t);var r=this._section=B(`section`,e+`-list`);n&&(this._map.on(`click`,this.collapse,this),K(t,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var i=this._layersLink=B(`a`,e+`-toggle`,t);i.href=`#`,i.title=`Layers`,i.setAttribute(`role`,`button`),K(i,{keydown:function(e){e.keyCode===13&&this._expandSafely()},click:function(e){Y(e),this._expandSafely()}},this),n||this.expand(),this._baseLayersList=B(`div`,e+`-base`,r),this._separator=B(`div`,e+`-separator`,r),this._overlaysList=B(`div`,e+`-overlays`,r),t.appendChild(r)},_getLayer:function(e){for(var t=0;t<this._layers.length;t++)if(this._layers[t]&&o(this._layers[t].layer)===e)return this._layers[t]},_addLayer:function(e,t,n){this._map&&e.on(`add remove`,this._onLayerChange,this),this._layers.push({layer:e,name:t,overlay:n}),this.options.sortLayers&&this._layers.sort(i(function(e,t){return this.options.sortFunction(e.layer,t.layer,e.name,t.name)},this)),this.options.autoZIndex&&e.setZIndex&&(this._lastZIndex++,e.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;St(this._baseLayersList),St(this._overlaysList),this._layerControlInputs=[];var e,t,n,r,i=0;for(n=0;n<this._layers.length;n++)r=this._layers[n],this._addItem(r),t||=r.overlay,e||=!r.overlay,i+=+!r.overlay;return this.options.hideSingleBase&&(e&&=i>1,this._baseLayersList.style.display=e?``:`none`),this._separator.style.display=t&&e?``:`none`,this},_onLayerChange:function(e){this._handlingClick||this._update();var t=this._getLayer(o(e.target)),n=t.overlay?e.type===`add`?`overlayadd`:`overlayremove`:e.type===`add`?`baselayerchange`:null;n&&this._map.fire(n,t)},_createRadioElement:function(e,t){var n=`<input type="radio" class="leaflet-control-layers-selector" name="`+e+`"`+(t?` checked="checked"`:``)+`/>`,r=document.createElement(`div`);return r.innerHTML=n,r.firstChild},_addItem:function(e){var t=document.createElement(`label`),n=this._map.hasLayer(e.layer),r;e.overlay?(r=document.createElement(`input`),r.type=`checkbox`,r.className=`leaflet-control-layers-selector`,r.defaultChecked=n):r=this._createRadioElement(`leaflet-base-layers_`+o(this),n),this._layerControlInputs.push(r),r.layerId=o(e.layer),K(r,`click`,this._onInputClick,this);var i=document.createElement(`span`);i.innerHTML=` `+e.name;var a=document.createElement(`span`);return t.appendChild(a),a.appendChild(r),a.appendChild(i),(e.overlay?this._overlaysList:this._baseLayersList).appendChild(t),this._checkDisabledLayers(),t},_onInputClick:function(){if(!this._preventClick){var e=this._layerControlInputs,t,n,r=[],i=[];this._handlingClick=!0;for(var a=e.length-1;a>=0;a--)t=e[a],n=this._getLayer(t.layerId).layer,t.checked?r.push(n):t.checked||i.push(n);for(a=0;a<i.length;a++)this._map.hasLayer(i[a])&&this._map.removeLayer(i[a]);for(a=0;a<r.length;a++)this._map.hasLayer(r[a])||this._map.addLayer(r[a]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var e=this._layerControlInputs,t,n,r=this._map.getZoom(),i=e.length-1;i>=0;i--)t=e[i],n=this._getLayer(t.layerId).layer,t.disabled=n.options.minZoom!==void 0&&r<n.options.minZoom||n.options.maxZoom!==void 0&&r>n.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var e=this._section;this._preventClick=!0,K(e,`click`,Y),this.expand();var t=this;setTimeout(function(){J(e,`click`,Y),t._preventClick=!1})}}
1),un=function(e,t,n){return new ln(e,t,n)},dn=Z.extend({options:{position:`topleft`,zoomInText:`<span aria-hidden="true">+</span>`,zoomInTitle:`Zoom in`,zoomOutText:`<span aria-hidden="true">&#x2212;</span>`,zoomOutTitle:`Zoom out`},onAdd:function(e){var t=`leaflet-control-zoom`,n=B(`div`,t+` leaflet-bar`),r=this.options;return this._zoomInButton=this._createButton(r.zoomInText,r.zoomInTitle,t+`-in`,n,this._zoomIn),this._zoomOutButton=this._createButton(r.zoomOutText,r.zoomOutTitle,t+`-out`,n,this._zoomOut),this._updateDisabled(),e.on(`zoomend zoomlevelschange`,this._updateDisabled,this),n},onRemove:function(e){e.off(`zoomend zoomlevelschange`,this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(e){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(e.shiftKey?3:1))},_zoomOut:function(e){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(e.shiftKey?3:1))},_createButton:function(e,t,n,r,i){var a=B(`a`,n,r);return a.innerHTML=e,a.href=`#`,a.title=t,a.setAttribute(`role`,`button`),a.setAttribute(`aria-label`,t),Zt(a),K(a,`click`,Qt),K(a,`click`,i,this),K(a,`click`,this._refocusOnMap,this),a},_updateDisabled:function(){var e=this._map,t=`leaflet-disabled`;U(this._zoomInButton,t),U(this._zoomOutButton,t),this._zoomInButton.setAttribute(`aria-disabled`,`false`),this._zoomOutButton.setAttribute(`aria-disabled`,`false`),(this._disabled||e._zoom===e.getMinZoom())&&(H(this._zoomOutButton,t),this._zoomOutButton.setAttribute(`aria-disabled`,`true`)),(this._disabled||e._zoom===e.getMaxZoom())&&(H(this._zoomInButton,t),this._zoomInButton.setAttribute(`aria-disabled`,`true`))}});X.mergeOptions({zoomControl:!0}),X.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new dn,this.addControl(this.zoomControl))});var fn=function(e){return new dn(e)},pn=Z.extend({options:{position:`bottomleft`,maxWidth:100,metric:!0,imperial:!0},onAdd:function(e){var t=`leaflet-control-scale`,n=B(`div`,t),r=this.options;return this._addScales(r,t+`-line`,n),e.on(r.updateWhenIdle?`moveend`:`move`,this._update,this),e.whenReady(this._update,this),n},onRemove:function(e){e.off(this.options.updateWhenIdle?`moveend`:`move`,this._update,this)},_addScales:function(e,t,n){e.metric&&(this._mScale=B(`div`,t,n)),e.imperial&&(this._iScale=B(`div`,t,n))},_update:function(){var e=this._map,t=e.getSize().y/2,n=e.distance(e.containerPointToLatLng([0,t]),e.containerPointToLatLng([this.options.maxWidth,t]));this._updateScales(n)},_updateScales:function(e){this.options.metric&&e&&this._updateMetric(e),this.options.imperial&&e&&this._updateImperial(e)},_updateMetric:function(e){var t=this._getRoundNum(e),n=t<1e3?t+` m`:t/1e3+` km`;this._updateScale(this._mScale,n,t/e)},_updateImperial:function(e){var t=e*3.2808399,n,r,i;t>5280?(n=t/5280,r=this._getRoundNum(n),this._updateScale(this._iScale,r+` mi`,r/n)):(i=this._getRoundNum(t),this._updateScale(this._iScale,i+` ft`,i/t))},_updateScale:function(e,t,n){e.style.width=Math.round(this.options.maxWidth*n)+`px`,e.innerHTML=t},_getRoundNum:function(e){var t=10**((Math.floor(e)+``).length-1),n=e/t;return n=n>=10?10:n>=5?5:n>=3?3:n>=2?2:1,t*n}}),mn=function(e){return new pn(e)},hn=Z.extend({options:{position:`bottomright`,prefix:`<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">`+(z.inlineSvg?`<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8" class="leaflet-attribution-flag"><path fill="#4C7BE1" d="M0 0h12v4H0z"/><path fill="#FFD500" d="M0 4h12v3H0z"/><path fill="#E0BC00" d="M0 7h12v1H0z"/></svg> `:``)+`Leaflet</a>`},initialize:function(e){p(this,e),this._attributions={}},onAdd:function(e){for(var t in e.attributionControl=this,this._container=B(`div`,`leaflet-control-attribution`),Zt(this._container),e._layers)e._layers[t].getAttribution&&this.addAttribution(e._layers[t].getAttribution());return this._update(),e.on(`layeradd`,this._addAttribution,this),this._container},onRemove:function(e){e.off(`layeradd`,this._addAttribution,this)},_addAttribution:function(e){e.layer.getAttribution&&(this.addAttribution(e.layer.getAttribution()),e.layer.once(`remove`,function(){this.removeAttribution(e.layer.getAttribution())},this))},setPrefix:function(e){return this.options.prefix=e,this._update(),this},addAttribution:function(e){return e?(this._attributions[e]||(this._attributions[e]=0),this._attributions[e]++,this._update(),this):this},removeAttribution:function(e){return e&&this._attributions[e]&&(this._attributions[e]--,this._update()),this},_update:function(){if(this._map){var e=[];for(var t in this._attributions)this._attributions[t]&&e.push(t);var n=[];this.options.prefix&&n.push(this.options.prefix),e.length&&n.push(e.join(`, `)),this._container.innerHTML=n.join(` <span aria-hidden="true">|</span> `)}}});X.mergeOptions({attributionControl:!0}),X.addInitHook(function(){this.options.attributionControl&&new hn().addTo(this)}),Z.Layers=ln,Z.Zoom=dn,Z.Scale=pn,Z.Attribution=hn,cn.layers=un,cn.zoom=fn,cn.scale=mn,cn.attribution=function(e){return new hn(e)};var gn=E.extend({initialize:function(e){this._map=e},enable:function(){return this._enabled?this:(this._enabled=!0,this.addHooks(),this)},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});gn.addTo=function(e,t){return e.addHandler(t,this),this};var _n={Events:D},vn=z.touch?`touchstart mousedown`:`mousedown`,yn=O.extend({options:{clickTolerance:3},initialize:function(e,t,n,r){p(this,r),this._element=e,this._dragStartTarget=t||e,this._preventOutline=n}
1,enable:function(){this._enabled||=(K(this._dragStartTarget,vn,this._onDown,this),!0)},disable:function(){this._enabled&&(yn._dragging===this&&this.finishDrag(!0),J(this._dragStartTarget,vn,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(e){if(this._enabled&&(this._moved=!1,!Tt(this._element,`leaflet-zoom-anim`))){if(e.touches&&e.touches.length!==1){yn._dragging===this&&this.finishDrag();return}if(!(yn._dragging||e.shiftKey||e.which!==1&&e.button!==1&&!e.touches)&&(yn._dragging=this,this._preventOutline&&Bt(this._element),It(),Mt(),!this._moving)){this.fire(`down`);var t=e.touches?e.touches[0]:e,n=Ht(this._element);this._startPoint=new k(t.clientX,t.clientY),this._startPos=jt(this._element),this._parentScale=Ut(n);var r=e.type===`mousedown`;K(document,r?`mousemove`:`touchmove`,this._onMove,this),K(document,r?`mouseup`:`touchend touchcancel`,this._onUp,this)}}},_onMove:function(e){if(this._enabled){if(e.touches&&e.touches.length>1){this._moved=!0;return}var t=e.touches&&e.touches.length===1?e.touches[0]:e,n=new k(t.clientX,t.clientY)._subtract(this._startPoint);(n.x||n.y)&&(Math.abs(n.x)+Math.abs(n.y)<this.options.clickTolerance||(n.x/=this._parentScale.x,n.y/=this._parentScale.y,Y(e),this._moved||(this.fire(`dragstart`),this._moved=!0,H(document.body,`leaflet-dragging`),this._lastTarget=e.target||e.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),H(this._lastTarget,`leaflet-drag-target`)),this._newPos=this._startPos.add(n),this._moving=!0,this._lastEvent=e,this._updatePosition()))}},_updatePosition:function(){var e={originalEvent:this._lastEvent};this.fire(`predrag`,e),G(this._element,this._newPos),this.fire(`drag`,e)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(e){U(document.body,`leaflet-dragging`),this._lastTarget&&=(U(this._lastTarget,`leaflet-drag-target`),null),J(document,`mousemove touchmove`,this._onMove,this),J(document,`mouseup touchend touchcancel`,this._onUp,this),Lt(),Nt();var t=this._moved&&this._moving;this._moving=!1,yn._dragging=!1,t&&this.fire(`dragend`,{noInertia:e,distance:this._newPos.distanceTo(this._startPos)})}});function bn(e,t,n){for(var r,i=[1,4,2,8],a=0,o,s,c,l,u=e.length,d,f;a<u;a++)e[a]._code=Nn(e[a],t);for(s=0;s<4;s++){for(d=i[s],r=[],a=0,u=e.length,o=u-1;a<u;o=a++)c=e[a],l=e[o],c._code&d?l._code&d||(f=Mn(l,c,d,t,n),f._code=Nn(f,t),r.push(f)):(l._code&d&&(f=Mn(l,c,d,t,n),f._code=Nn(f,t),r.push(f)),r.push(c));e=r}return e}function xn(e,t){var n,r,i,a,o,s,c,l,u;if(!e||e.length===0)throw Error(`latlngs not passed`);Q(e)||(console.warn(`latlngs are not flat! Only the first ring will be used`),e=e[0]);var d=I([0,0]),f=P(e);
1f.getNorthWest().distanceTo(f.getSouthWest())*f.getNorthEast().distanceTo(f.getNorthWest())<1700&&(d=Sn(e));var p=e.length,m=[];for(n=0;n<p;n++){var h=I(e[n]);m.push(t.project(I([h.lat-d.lat,h.lng-d.lng])))}for(s=c=l=0,n=0,r=p-1;n<p;r=n++)i=m[n],a=m[r],o=i.y*a.x-a.y*i.x,c+=(i.x+a.x)*o,l+=(i.y+a.y)*o,s+=o*3;u=s===0?m[0]:[c/s,l/s];var g=t.unproject(A(u));return I([g.lat+d.lat,g.lng+d.lng])}function Sn(e){for(var t=0,n=0,r=0,i=0;i<e.length;i++){var a=I(e[i]);t+=a.lat,n+=a.lng,r++}return I([t/r,n/r])}var Cn={__proto__:null,clipPolygon:bn,polygonCenter:xn,centroid:Sn};function wn(e,t){if(!t||!e.length)return e.slice();var n=t*t;return e=kn(e,n),e=Dn(e,n),e}function Tn(e,t,n){return Math.sqrt(Fn(e,t,n,!0))}function En(e,t,n){return Fn(e,t,n)}function Dn(e,t){var n=e.length,r=new(typeof Uint8Array<`u`?Uint8Array:Array)(n);r[0]=r[n-1]=1,On(e,r,t,0,n-1);var i,a=[];for(i=0;i<n;i++)r[i]&&a.push(e[i]);return a}function On(e,t,n,r,i){for(var a=0,o,s=r+1,c;s<=i-1;s++)c=Fn(e[s],e[r],e[i],!0),c>a&&(o=s,a=c);a>n&&(t[o]=1,On(e,t,n,r,o),On(e,t,n,o,i))}function kn(e,t){for(var n=[e[0]],r=1,i=0,a=e.length;r<a;r++)Pn(e[r],e[i])>t&&(n.push(e[r]),i=r);return i<a-1&&n.push(e[a-1]),n}var An;function jn(e,t,n,r,i){var a=r?An:Nn(e,n),o=Nn(t,n),s,c,l;for(An=o;;){if(!(a|o))return[e,t];if(a&o)return!1;s=a||o,c=Mn(e,t,s,n,i),l=Nn(c,n),s===a?(e=c,a=l):(t=c,o=l)}}function Mn(e,t,n,r,i){var a=t.x-e.x,o=t.y-e.y,s=r.min,c=r.max,l,u;return n&8?(l=e.x+a*(c.y-e.y)/o,u=c.y):n&4?(l=e.x+a*(s.y-e.y)/o,u=s.y):n&2?(l=c.x,u=e.y+o*(c.x-e.x)/a):n&1&&(l=s.x,u=e.y+o*(s.x-e.x)/a),new k(l,u,i)}function Nn(e,t){var n=0;return e.x<t.min.x?n|=1:e.x>t.max.x&&(n|=2),e.y<t.min.y?n|=4:e.y>t.max.y&&(n|=8),n}function Pn(e,t){var n=t.x-e.x,r=t.y-e.y;return n*n+r*r}function Fn(e,t,n,r){var i=t.x,a=t.y,o=n.x-i,s=n.y-a,c=o*o+s*s,l;return c>0&&(l=((e.x-i)*o+(e.y-a)*s)/c,l>1?(i=n.x,a=n.y):l>0&&(i+=o*l,a+=s*l)),o=e.x-i,s=e.y-a,r?o*o+s*s:new k(i,a)}function Q(e){return!_(e[0])||typeof e[0][0]!=`object`&&e[0][0]!==void 0}function In(e){return console.warn(`Deprecated use of _flat, please use L.LineUtil.isFlat instead.`),Q(e)}function Ln(e,t){var n,r,i,a,o,s,c,l;if(!e||e.length===0)throw Error(`latlngs not passed`);Q(e)||(console.warn(`latlngs are not flat! Only the first ring will be used`),e=e[0]);var u=I([0,0]),d=P(e);
1d.getNorthWest().distanceTo(d.getSouthWest())*d.getNorthEast().distanceTo(d.getNorthWest())<1700&&(u=Sn(e));var f=e.length,p=[];for(n=0;n<f;n++){var m=I(e[n]);p.push(t.project(I([m.lat-u.lat,m.lng-u.lng])))}for(n=0,r=0;n<f-1;n++)r+=p[n].distanceTo(p[n+1])/2;if(r===0)l=p[0];else for(n=0,a=0;n<f-1;n++)if(o=p[n],s=p[n+1],i=o.distanceTo(s),a+=i,a>r){c=(a-r)/i,l=[s.x-c*(s.x-o.x),s.y-c*(s.y-o.y)];break}var h=t.unproject(A(l));return I([h.lat+u.lat,h.lng+u.lng])}var Rn={__proto__:null,simplify:wn,pointToSegmentDistance:Tn,closestPointOnSegment:En,clipSegment:jn,_getEdgeIntersection:Mn,_getBitCode:Nn,_sqClosestPointOnSegment:Fn,isFlat:Q,_flat:In,polylineCenter:Ln},zn={project:function(e){return new k(e.lng,e.lat)},unproject:function(e){return new F(e.y,e.x)},bounds:new j([-180,-90],[180,90])},Bn={R:6378137,R_MINOR:6356752.314245179,bounds:new j([-20037508.34279,-15496570.73972],[20037508.34279,18764656.23138]),project:function(e){var t=Math.PI/180,n=this.R,r=e.lat*t,i=this.R_MINOR/n,a=Math.sqrt(1-i*i),o=a*Math.sin(r),s=Math.tan(Math.PI/4-r/2)/((1-o)/(1+o))**(a/2);return r=-n*Math.log(Math.max(s,1e-10)),new k(e.lng*t*n,r)},unproject:function(e){for(var t=180/Math.PI,n=this.R,r=this.R_MINOR/n,i=Math.sqrt(1-r*r),a=Math.exp(-e.y/n),o=Math.PI/2-2*Math.atan(a),s=0,c=.1,l;s<15&&Math.abs(c)>1e-7;s++)l=i*Math.sin(o),l=((1-l)/(1+l))**(i/2),c=Math.PI/2-2*Math.atan(a*l)-o,o+=c;return new F(o*t,e.x*t/n)}},Vn={__proto__:null,LonLat:zn,Mercator:Bn,SphericalMercator:oe},Hn=n({},ie,{code:`EPSG:3395`,projection:Bn,transformation:function(){var e=.5/(Math.PI*Bn.R);return ce(e,.5,-e,.5)}()}),Un=n({},ie,{code:`EPSG:4326`,projection:zn,transformation:ce(1/180,1,-1/180,.5)}),Wn=n({},R,{projection:zn,transformation:ce(1,0,-1,0),scale:function(e){return 2**e},zoom:function(e){return Math.log(e)/Math.LN2},distance:function(e,t){var n=t.lng-e.lng,r=t.lat-e.lat;return Math.sqrt(n*n+r*r)},infinite:!0});R.Earth=ie,R.EPSG3395=Hn,R.EPSG3857=le,R.EPSG900913=ue,R.EPSG4326=Un,R.Simple=Wn;var $=O.extend({options:{pane:`overlayPane`,attribution:null,bubblingMouseEvents:!0},addTo:function(e){return e.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(e){return e&&e.removeLayer(this),this},getPane:function(e){return this._map.getPane(e?this.options[e]||e:this.options.pane)},addInteractiveTarget:function(e){return this._map._targets[o(e)]=this,this},removeInteractiveTarget:function(e){return delete this._map._targets[o(e)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(e){var t=e.target;if(t.hasLayer(this)){if(this._map=t,this._zoomAnimated=t._zoomAnimated,this.getEvents){var n=this.getEvents();t.on(n,this),this.once(`remove`,function(){t.off(n,this)},this)}this.onAdd(t),this.fire(`add`),t.fire(`layeradd`,{layer:this})}}});X.include({addLayer:function(e){if(!e._layerAdd)throw Error(`The provided object is not a Layer.`);var t=o(e);return this._layers[t]?this:(this._layers[t]=e,e._mapToAdd=this,e.beforeAdd&&e.beforeAdd(this),this.whenReady(e._layerAdd,e),this)},removeLayer:function(e){var t=o(e);return this._layers[t]?(this._loaded&&e.onRemove(this),delete this._layers[t],this._loaded&&(this.fire(`layerremove`,{layer:e}),e.fire(`remove`)),e._map=e._mapToAdd=null,this):this},hasLayer:function(e){return o(e)in this._layers},eachLayer:function(e,t){for(var n in this._layers)e.call(t,this._layers[n]);return this},_addLayers:function(e){e=e?_(e)?e:[e]:[];for(var t=0,n=e.length;t<n;t++)this.addLayer(e[t])},_addZoomLimit:function(e){(!isNaN(e.options.maxZoom)||!isNaN(e.options.minZoom))&&(this._zoomBoundLayers[o(e)]=e,this._updateZoomLevels())},_removeZoomLimit:function(e){var t=o(e);
1this._zoomBoundLayers[t]&&(delete this._zoomBoundLayers[t],this._updateZoomLevels())},_updateZoomLevels:function(){var e=1/0,t=-1/0,n=this._getZoomSpan();for(var r in this._zoomBoundLayers){var i=this._zoomBoundLayers[r].options;e=i.minZoom===void 0?e:Math.min(e,i.minZoom),t=i.maxZoom===void 0?t:Math.max(t,i.maxZoom)}this._layersMaxZoom=t===-1/0?void 0:t,this._layersMinZoom=e===1/0?void 0:e,n!==this._getZoomSpan()&&this.fire(`zoomlevelschange`),this.options.maxZoom===void 0&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),this.options.minZoom===void 0&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var Gn=$.extend({initialize:function(e,t){p(this,t),this._layers={};var n,r;if(e)for(n=0,r=e.length;n<r;n++)this.addLayer(e[n])},addLayer:function(e){var t=this.getLayerId(e);return this._layers[t]=e,this._map&&this._map.addLayer(e),this},removeLayer:function(e){var t=e in this._layers?e:this.getLayerId(e);return this._map&&this._layers[t]&&this._map.removeLayer(this._layers[t]),delete this._layers[t],this},hasLayer:function(e){return(typeof e==`number`?e:this.getLayerId(e))in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(e){var t=Array.prototype.slice.call(arguments,1),n,r;for(n in this._layers)r=this._layers[n],r[e]&&r[e].apply(r,t);return this},onAdd:function(e){this.eachLayer(e.addLayer,e)},onRemove:function(e){this.eachLayer(e.removeLayer,e)},eachLayer:function(e,t){for(var n in this._layers)e.call(t,this._layers[n]);return this},getLayer:function(e){return this._layers[e]},getLayers:function(){var e=[];return this.eachLayer(e.push,e),e},setZIndex:function(e){return this.invoke(`setZIndex`,e)},getLayerId:function(e){return o(e)}}),Kn=function(e,t){return new Gn(e,t)},qn=Gn.extend({addLayer:function(e){return this.hasLayer(e)?this:(e.addEventParent(this),Gn.prototype.addLayer.call(this,e),this.fire(`layeradd`,{layer:e}))},removeLayer:function(e){return this.hasLayer(e)?(e in this._layers&&(e=this._layers[e]),e.removeEventParent(this),Gn.prototype.removeLayer.call(this,e),this.fire(`layerremove`,{layer:e})):this},setStyle:function(e){return this.invoke(`setStyle`,e)},bringToFront:function(){return this.invoke(`bringToFront`)},bringToBack:function(){return this.invoke(`bringToBack`)},getBounds:function(){var e=new N;for(var t in this._layers){var n=this._layers[t];e.extend(n.getBounds?n.getBounds():n.getLatLng())}return e}}),Jn=function(e,t){return new qn(e,t)},Yn=E.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(e){p(this,e)},createIcon:function(e){return this._createIcon(`icon`,e)},createShadow:function(e){return this._createIcon(`shadow`,e)},_createIcon:function(e,t){var n=this._getIconUrl(e);if(!n){if(e===`icon`)throw Error(`iconUrl not set in Icon options (see the docs).`);return null}var r=this._createImg(n,t&&t.tagName===`IMG`?t:null);return this._setIconStyles(r,e),(this.options.crossOrigin||this.options.crossOrigin===``)&&(r.crossOrigin=this.options.crossOrigin===!0?``:this.options.crossOrigin),r},_setIconStyles:function(e,t){var n=this.options,r=n[t+`Size`];typeof r==`number`&&(r=[r,r]);var i=A(r),a=A(t===`shadow`&&n.shadowAnchor||n.iconAnchor||i&&i.divideBy(2,!0));e.className=`leaflet-marker-`+t+` `+(n.className||``),a&&(e.style.marginLeft=-a.x+`px`,e.style.marginTop=-a.y+`px`),i&&(e.style.width=i.x+`px`,e.style.height=i.y+`px`)},_createImg:function(e,t){return t||=document.createElement(`img`),t.src=e,t},_getIconUrl:function(e){return z.retina&&this.options[e+`RetinaUrl`]||this.options[e+`Url`]}});function Xn(e){return new Yn(e)}var Zn=Yn.extend({options:{iconUrl:`marker-icon.png`,iconRetinaUrl:`marker-icon-2x.png`,shadowUrl:`marker-shadow.png`,iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(e){return typeof Zn.imagePath!=`string`&&(Zn.imagePath=this._detectIconPath()),(this.options.imagePath||Zn.imagePath)+Yn.prototype._getIconUrl.call(this,e)},_stripUrl:function(e){var t=function(e,t,n){var r=t.exec(e);return r&&r[n]};return e=t(e,/^url\((['"])?(.+)\1\)$/,2),e&&t(e,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var e=B(`div`,`leaflet-default-icon-path`,document.body),t=xt(e,`background-image`)||xt(e,`backgroundImage`);if(document.body.removeChild(e),t=this._stripUrl(t),t)return t;var n=document.querySelector(`link[href$="leaflet.css"]`);return n?n.href.substring(0,n.href.length-11-1):``}}),Qn=gn.extend({initialize:function(e){this._marker=e},addHooks:function(){var e=this._marker._icon;this._draggable||=new yn(e,e,!0),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),H(e,`leaflet-marker-draggable`)},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon&&U(this._marker._icon,`leaflet-marker-draggable`)},moved:function(){return this._draggable&&this._draggable._moved}
vendor: 5,377 bytes, line 1
1,_adjustPan:function(e){var t=this._marker,n=t._map,r=this._marker.options.autoPanSpeed,i=this._marker.options.autoPanPadding,a=jt(t._icon),o=n.getPixelBounds(),s=n.getPixelOrigin(),c=M(o.min._subtract(s).add(i),o.max._subtract(s).subtract(i));if(!c.contains(a)){var l=A((Math.max(c.max.x,a.x)-c.max.x)/(o.max.x-c.max.x)-(Math.min(c.min.x,a.x)-c.min.x)/(o.min.x-c.min.x),(Math.max(c.max.y,a.y)-c.max.y)/(o.max.y-c.max.y)-(Math.min(c.min.y,a.y)-c.min.y)/(o.min.y-c.min.y)).multiplyBy(r);n.panBy(l,{animate:!1}),this._draggable._newPos._add(l),this._draggable._startPos._add(l),G(t._icon,this._draggable._newPos),this._onDrag(e),this._panRequest=w(this._adjustPan.bind(this,e))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire(`movestart`).fire(`dragstart`)},_onPreDrag:function(e){this._marker.options.autoPan&&(T(this._panRequest),this._panRequest=w(this._adjustPan.bind(this,e)))},_onDrag:function(e){var t=this._marker,n=t._shadow,r=jt(t._icon),i=t._map.layerPointToLatLng(r);n&&G(n,r),t._latlng=i,e.latlng=i,e.oldLatLng=this._oldLatLng,t.fire(`move`,e).fire(`drag`,e)},_onDragEnd:function(e){T(this._panRequest),delete this._oldLatLng,this._marker.fire(`moveend`).fire(`dragend`,e)}}),$n=$.extend({options:{icon:new Zn,interactive:!0,keyboard:!0,title:``,alt:`Marker`,zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:`markerPane`,shadowPane:`shadowPane`,bubblingMouseEvents:!1,autoPanOnFocus:!0,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(e,t){p(this,t),this._latlng=I(e)},onAdd:function(e){this._zoomAnimated=this._zoomAnimated&&e.options.markerZoomAnimation,this._zoomAnimated&&e.on(`zoomanim`,this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(e){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&e.off(`zoomanim`,this._animateZoom,this),this._removeIcon(),this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(e){var t=this._latlng;return this._latlng=I(e),this.update(),this.fire(`move`,{oldLatLng:t,latlng:this._latlng})},setZIndexOffset:function(e){return this.options.zIndexOffset=e,this.update()},getIcon:function(){return this.options.icon},setIcon:function(e){return this.options.icon=e,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){if(this._icon&&this._map){var e=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(e)}return this},_initIcon:function(){var e=this.options,t=`leaflet-zoom-`+(this._zoomAnimated?`animated`:`hide`),n=e.icon.createIcon(this._icon),r=!1;n!==this._icon&&(this._icon&&this._removeIcon(),r=!0,e.title&&(n.title=e.title),n.tagName===`IMG`&&(n.alt=e.alt||``)),H(n,t),e.keyboard&&(n.tabIndex=`0`,n.setAttribute(`role`,`button`)),this._icon=n,e.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&K(n,`focus`,this._panOnFocus,this);var i=e.icon.createShadow(this._shadow),a=!1;i!==this._shadow&&(this._removeShadow(),a=!0),i&&(H(i,t),i.alt=``),this._shadow=i,e.opacity<1&&this._updateOpacity(),r&&this.getPane().appendChild(this._icon),this._initInteraction(),i&&a&&this.getPane(e.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&J(this._icon,`focus`,this._panOnFocus,this),V(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&V(this._shadow),this._shadow=null},_setPos:function(e){this._icon&&G(this._icon,e),this._shadow&&G(this._shadow,e),this._zIndex=e.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(e){this._icon&&(this._icon.style.zIndex=this._zIndex+e)},_animateZoom:function(e){var t=this._map._latLngToNewLayerPoint(this._latlng,e.zoom,e.center).round();this._setPos(t)},_initInteraction:function(){if(this.options.interactive&&(H(this._icon,`leaflet-interactive`),this.addInteractiveTarget(this._icon),Qn)){var e=this.options.draggable;this.dragging&&(e=this.dragging.enabled(),this.dragging.disable()),this.dragging=new Qn(this),e&&this.dragging.enable()}},setOpacity:function(e){return this.options.opacity=e,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var e=this.options.opacity;this._icon&&W(this._icon,e),this._shadow&&W(this._shadow,e)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var e=this._map;if(e){var t=this.options.icon.options,n=t.iconSize?A(t.iconSize):A(0,0),r=t.iconAnchor?A(t.iconAnchor):A(0,0);e.panInside(this._latlng,{paddingTopLeft:r,paddingBottomRight:n.subtract(r)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function er(e,t){return new $n(e,t)}var tr=$.extend({options:{stroke:!0,color:`#3388ff`,weight:3,opacity:1,lineCap:`round`,lineJoin:`round`,dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,f
1illRule:`evenodd`,interactive:!0,bubblingMouseEvents:!0},beforeAdd:function(e){this._renderer=e.getRenderer(this)},onAdd:function(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){return this._map&&this._renderer._updatePath(this),this},setStyle:function(e){return p(this,e),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&e&&Object.prototype.hasOwnProperty.call(e,`weight`)&&this._updateBounds()),this},bringToFront:function(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack:function(){return this._renderer&&this._renderer._bringToBack(this),this},getElement:function(){return this._path},_reset:function(){this._project(),this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+(this._renderer.options.tolerance||0)}}),nr=tr.extend({options:{fill:!0,radius:10},initialize:function(e,t){p(this,t),this._latlng=I(e),this._radius=this.options.radius},setLatLng:function(e){var t=this._latlng;return this._latlng=I(e),this.redraw(),this.fire(`move`,{oldLatLng:t,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(e){return this.options.radius=this._radius=e,this.redraw()},getRadius:function(){return this._radius},setStyle:function(e){var t=e&&e.radius||this._radius;return tr.prototype.setStyle.call(this,e),this.setRadius(t),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var e=this._radius,t=this._radiusY||e,n=this._clickTolerance(),r=[e+n,t+n];this._pxBounds=new j(this._point.subtract(r),this._point.add(r))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(e){return e.distanceTo(this._point)<=this._radius+this._clickTolerance()}});function rr(e,t){return new nr(e,t)}var ir=nr.extend({initialize:function(e,t,r){if(typeof t==`number`&&(t=n({},r,{radius:t})),p(this,t),this._latlng=I(e),isNaN(this.options.radius))throw Error(`Circle radius cannot be NaN`);this._mRadius=this.options.radius},setRadius:function(e){return this._mRadius=e,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var e=[this._radius,this._radiusY||this._radius];return new N(this._map.layerPointToLatLng(this._point.subtract(e)),this._map.layerPointToLatLng(this._point.add(e)))},setStyle:tr.prototype.setStyle,_project:function(){var e=this._latlng.lng,t=this._latlng.lat,n=this._map,r=n.options.crs;if(r.distance===ie.distance){var i=Math.PI/180,a=this._mRadius/ie.R/i,o=n.project([t+a,e]),s=n.project([t-a,e]),c=o.add(s).divideBy(2),l=n.unproject(c).lat,u=Math.acos((Math.cos(a*i)-Math.sin(t*i)*Math.sin(l*i))/(Math.cos(t*i)*Math.cos(l*i)))/i;(isNaN(u)||u===0)&&(u=a/Math.cos(Math.PI/180*t)),this._point=c.subtract(n.getPixelOrigin()),this._radius=isNaN(u)?0:c.x-n.project([l,e-u]).x,this._radiusY=c.y-o.y}else{var d=r.unproject(r.project(this._latlng).subtract([this._mRadius,0]));this._point=n.latLngToLayerPoint(this._latlng),this._radius=this._point.x-n.latLngToLayerPoint(d).x}this._updateBounds()}});function ar(e,t,n){return new ir(e,t,n)}var or=tr.extend({options:{smoothFactor:1,noClip:!1},initialize:function(e,t){p(this,t),this._setLatLngs(e)},getLatLngs:function(){return this._latlngs},setLatLngs:function(e){return this._setLatLngs(e),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(e){for(var t=1/0,n=null,r=Fn,i,a,o=0,s=this._parts.length;o<s;o++)for(var c=this._parts[o],l=1,u=c.length;l<u;l++){i=c[l-1],a=c[l];var d=r(e,i,a,!0);d<t&&(t=d,n=r(e,i,a))}return n&&(n.distance=Math.sqrt(t)),n},getCenter:function(){if(!this._map)throw Error(`Must add layer to map before using getCenter()`);return Ln(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(e,t){return t||=this._defaultShape(),e=I(e),t.push(e),this._bounds.extend(e),this.redraw()},_setLatLngs:function(e){this._bounds=new N,this._latlngs=this._convertLatLngs(e)},_defaultShape:function(){return Q(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(e){for(var t=[],n=Q(e),r=0,i=e.length;r<i;r++)n?(t[r]=I(e[r]),this._bounds.extend(t[r])):t[r]=this._convertLatLngs(e[r]);return t},_project:function(){var e=new j;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,e),this._bounds.isValid()&&e.isValid()&&(this._rawPxBounds=e,this._updateBounds())},_updateBounds:function(){var e=this._clickTolerance(),t=new k(e,e);this._rawPxBounds&&(this._pxBounds=new j([this._rawPxBounds.min.subtract(t),this._rawPxBounds.max.add(t)]))},_projectLatlngs:function(e,t,n){var r=e[0]instanceof F,i=e.length,a,o;if(r){for(o=[],a=0;a<i;a++)o[a]=this._map.latLngToLayerPoint(e[a]),n.extend(o[a]);t.push(o)}else for(a=0;a<i;a++)this._projectLatlngs(e[a],t,n)},_clipPoints:function(){var e=this._renderer._bounds;if(this._parts=[],this._pxBounds&&this._pxBounds.intersects(e)){if(this.options.noClip){this._parts=this._rings;return}for(var t=this._parts,n=0,r,i=0,a=this._rings.length,o,s,c;n<a;n++)for(c=this._rings[n],r=0,o=c.length;r<o-1;r++)s=jn(c[r],c[r+1],e,r,!0),s&&(t[i]=t[i]||[],t[i].push(s[0]),(s[1]!==c[r+1]||r===o-2)&&(t[i].push(s[1]),i++))}},_simplifyPoints:function(){for(var e=this._parts,t=this.options.smoothFactor,n=0,r=e.length;n<r;n++)e[n]=wn(e[n],t)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(e,t){var n,r,i,a,o,s,c=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(e))return!1;for(n=0,a=this._parts.length;n<a;n++)for(s=this._parts[n],r=0,o=s.length,i=o-1;r<o;i=r++)if((t||r!==0)&&Tn(e,s[i],s[r])<=c)return!0;return!1}});function sr(e,t){return new or(e,t)}or._flat=In;var cr=or.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length},getCenter:function(){if(!this._map)throw Error(`Must add layer to map before using getCenter()`);return xn(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(e){var t=or.prototype._convertLatLngs.call(this,e),n=t.length;return n>=2&&t[0]instanceof F&&t[0].equals(t[n-1])&&t.pop(),t},_setLatLngs:function(e){or.prototype._setLatLngs.call(this,e),Q(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return Q(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var e=this._renderer._bounds,t=this.options.weight,n=new k(t,t);if(e=new j(e.min.subtract(n),e.max.add(n)),this._parts=[],this._pxBounds&&this._pxBounds.intersects(e)){if(this.options.noClip){this._parts=this._rings;return}for(var r=0,i=this._rings.length,a;r<i;r++)a=bn(this._rings[r],e,!0),a.length&&this._parts.push(a)}},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(e){var t=!1,n,r,i,a,o,s,c,l;if(!this._pxBounds||!this._pxBounds.contains(e))return!1;for(a=0,c=this._parts.length;a<c;a++)for(n=this._parts[a],o=0,l=n.length,s=l-1;o<l;
1s=o++)r=n[o],i=n[s],r.y>e.y!=i.y>e.y&&e.x<(i.x-r.x)*(e.y-r.y)/(i.y-r.y)+r.x&&(t=!t);return t||or.prototype._containsPoint.call(this,e,!0)}});function lr(e,t){return new cr(e,t)}var ur=qn.extend({initialize:function(e,t){p(this,t),this._layers={},e&&this.addData(e)},addData:function(e){var t=_(e)?e:e.features,n,r,i;if(t){for(n=0,r=t.length;n<r;n++)i=t[n],(i.geometries||i.geometry||i.features||i.coordinates)&&this.addData(i);return this}var a=this.options;if(a.filter&&!a.filter(e))return this;var o=dr(e,a);return o?(o.feature=vr(e),o.defaultOptions=o.options,this.resetStyle(o),a.onEachFeature&&a.onEachFeature(e,o),this.addLayer(o)):this},resetStyle:function(e){return e===void 0?this.eachLayer(this.resetStyle,this):(e.options=n({},e.defaultOptions),this._setLayerStyle(e,this.options.style),this)},setStyle:function(e){return this.eachLayer(function(t){this._setLayerStyle(t,e)},this)},_setLayerStyle:function(e,t){e.setStyle&&(typeof t==`function`&&(t=t(e.feature)),e.setStyle(t))}});function dr(e,t){var n=e.type===`Feature`?e.geometry:e,r=n?n.coordinates:null,i=[],a=t&&t.pointToLayer,o=t&&t.coordsToLatLng||pr,s,c,l,u;if(!r&&!n)return null;switch(n.type){case`Point`:return s=o(r),fr(a,e,s,t);case`MultiPoint`:for(l=0,u=r.length;l<u;l++)s=o(r[l]),i.push(fr(a,e,s,t));return new qn(i);case`LineString`:case`MultiLineString`:return c=mr(r,n.type===`LineString`?0:1,o),new or(c,t);case`Polygon`:case`MultiPolygon`:return c=mr(r,n.type===`Polygon`?1:2,o),new cr(c,t);case`GeometryCollection`:for(l=0,u=n.geometries.length;l<u;l++){var d=dr({geometry:n.geometries[l],type:`Feature`,properties:e.properties},t);d&&i.push(d)}return new qn(i);case`FeatureCollection`:for(l=0,u=n.features.length;l<u;l++){var f=dr(n.features[l],t);f&&i.push(f)}return new qn(i);default:throw Error(`Invalid GeoJSON object.`)}}function fr(e,t,n,r){return e?e(t,n):new $n(n,r&&r.markersInheritOptions&&r)}function pr(e){return new F(e[1],e[0],e[2])}function mr(e,t,n){for(var r=[],i=0,a=e.length,o;i<a;i++)o=t?mr(e[i],t-1,n):(n||pr)(e[i]),r.push(o);return r}function hr(e,t){return e=I(e),e.alt===void 0?[u(e.lng,t),u(e.lat,t)]:[u(e.lng,t),u(e.lat,t),u(e.alt,t)]}function gr(e,t,n,r){for(var i=[],a=0,o=e.length;a<o;a++)i.push(t?gr(e[a],Q(e[a])?0:t-1,n,r):hr(e[a],r));return!t&&n&&i.length>0&&i.push(i[0].slice()),i}function _r(e,t){return e.feature?n({},e.feature,{geometry:t}):vr(t)}function vr(e){return e.type===`Feature`||e.type===`FeatureCollection`?e:{type:`Feature`,properties:{},geometry:e}}var yr={toGeoJSON:function(e){return _r(this,{type:`Point`,coordinates:hr(this.getLatLng(),e)})}};$n.include(yr),ir.include(yr),nr.include(yr),or.include({toGeoJSON:function(e){var t=!Q(this._latlngs),n=gr(this._latlngs,+!!t,!1,e);return _r(this,{type:(t?`Multi`:``)+`LineString`,coordinates:n})}}),cr.include({toGeoJSON:function(e){var t=!Q(this._latlngs),n=t&&!Q(this._latlngs[0]),r=gr(this._latlngs,n?2:+!!t,!0,e);return t||(r=[r]),_r(this,{type:(n?`Multi`:``)+`Polygon`,coordinates:r})}}),Gn.include({toMultiPoint:function(e){var t=[];return this.eachLayer(function(n){t.push(n.toGeoJSON(e).geometry.coordinates)}),_r(this,{type:`MultiPoint`,coordinates:t})},toGeoJSON:function(e){var t=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(t===`MultiPoint`)return this.toMultiPoint(e);var n=t===`GeometryCollection`,r=[];return this.eachLayer(function(t){if(t.toGeoJSON){var i=t.toGeoJSON(e);if(n)r.push(i.geometry);else{var a=vr(i);a.type===`FeatureCollection`?r.push.apply(r,a.features):r.push(a)}}}),n?_r(this,{geometries:r,type:`GeometryCollection`}):{type:`FeatureCollection`,features:r}}});function br(e,t){return new ur(e,t)}var xr=br,Sr=$.extend({options:{opacity:1,alt:``,interactive:!1,crossOrigin:!1,errorOverlayUrl:``,zIndex:1,className:``},initialize:function(e,t,n){this._url=e,this._bounds=P(t),p(this,n)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(H(this._image,`leaflet-interactive`),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){V(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(e){return this.options.opacity=e,this._image&&this._updateOpacity(),this},setStyle:function(e){return e.opacity&&this.setOpacity(e.opacity),this},bringToFront:function(){return this._map&&Ct(this._image),this},bringToBack:function(){return this._map&&wt(this._image),this},setUrl:function(e){return this._url=e,this._image&&(this._image.src=e),this},setBounds:function(e){return this._bounds=P(e),this._map&&this._reset(),this},getEvents:function(){var e={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(e.zoomanim=this._animateZoom),e},setZIndex:function(e){return this.options.zIndex=e,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var e=this._url.tagName===`IMG`,t=this._image=e?this._url:B(`img`);if(H(t,`leaflet-image-layer`),this._zoomAnimated&&H(t,`leaflet-zoom-animated`),this.options.className&&H(t,this.options.className),t.onselectstart=l,t.onmousemove=l,t.onload=i(this.fire,this,`load`),t.onerror=i(this._overlayOnError,this,`error`),(this.options.crossOrigin||this.options.crossOrigin===``)&&(t.crossOrigin=this.options.crossOrigin===!0?``:this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),e){this._url=t.src;return}t.src=this._url,t.alt=this.options.alt},_animateZoom:function(e){var t=this._map.getZoomScale(e.zoom),n=this._map._latLngBoundsToNewLayerBounds(this._bounds,e.zoom,e.center).min;At(this._image,n,t)},_reset:function(){var e=this._image,t=new j(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),n=t.getSize();G(e,t.min),e.style.width=n.x+`px`,e.style.height=n.y+`px`},_updateOpacity:function(){W(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire(`error`);var e=this.options.errorOverlayUrl;e&&this._url!==e&&(this._url=e,this._image.src=e)},getCenter:function(){return this._bounds.getCenter()}}),Cr=function(e,t,n){return new Sr(e,t,n)},wr=Sr.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInl
1ine:!0},_initImage:function(){var e=this._url.tagName===`VIDEO`,t=this._image=e?this._url:B(`video`);if(H(t,`leaflet-image-layer`),this._zoomAnimated&&H(t,`leaflet-zoom-animated`),this.options.className&&H(t,this.options.className),t.onselectstart=l,t.onmousemove=l,t.onloadeddata=i(this.fire,this,`load`),e){for(var n=t.getElementsByTagName(`source`),r=[],a=0;a<n.length;a++)r.push(n[a].src);this._url=n.length>0?r:[t.src];return}_(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(t.style,`objectFit`)&&(t.style.objectFit=`fill`),t.autoplay=!!this.options.autoplay,t.loop=!!this.options.loop,t.muted=!!this.options.muted,t.playsInline=!!this.options.playsInline;for(var o=0;o<this._url.length;o++){var s=B(`source`);s.src=this._url[o],t.appendChild(s)}}});function Tr(e,t,n){return new wr(e,t,n)}var Er=Sr.extend({_initImage:function(){var e=this._image=this._url;H(e,`leaflet-image-layer`),this._zoomAnimated&&H(e,`leaflet-zoom-animated`),this.options.className&&H(e,this.options.className),e.onselectstart=l,e.onmousemove=l}});function Dr(e,t,n){return new Er(e,t,n)}var Or=$.extend({options:{interactive:!1,offset:[0,0],className:``,pane:void 0,content:``},initialize:function(e,t){e&&(e instanceof F||_(e))?(this._latlng=I(e),p(this,t)):(p(this,e),this._source=t),this.options.content&&(this._content=this.options.content)},openOn:function(e){return e=arguments.length?e:this._source._map,e.hasLayer(this)||e.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(e){return this._map?this.close():(arguments.length?this._source=e:e=this._source,this._prepareOpen(),this.openOn(e._map)),this},onAdd:function(e){this._zoomAnimated=e._zoomAnimated,this._container||this._initLayout(),e._fadeAnimated&&W(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),e._fadeAnimated&&W(this._container,1),this.bringToFront(),this.options.interactive&&(H(this._container,`leaflet-interactive`),this.addInteractiveTarget(this._container))},onRemove:function(e){e._fadeAnimated?(W(this._container,0),this._removeTimeout=setTimeout(i(V,void 0,this._container),200)):V(this._container),this.options.interactive&&(U(this._container,`leaflet-interactive`),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(e){return this._latlng=I(e),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(e){return this._content=e,this.update(),this},getElement:function(){return this._container},update:function(){this._map&&(this._container.style.visibility=`hidden`,this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility=``,this._adjustPan())},getEvents:function(){var e={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(e.zoomanim=this._animateZoom),e},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&Ct(this._container),this},bringToBack:function(){return this._map&&wt(this._container),this},_prepareOpen:function(e){var t=this._source;if(!t._map)return!1;if(t instanceof qn){t=null;var n=this._source._layers;for(var r in n)if(n[r]._map){t=n[r];break}if(!t)return!1;this._source=t}if(!e){if(t.getCenter)e=t.getCenter();else if(t.getLatLng)e=t.getLatLng();else if(t.getBounds)e=t.getBounds().getCenter();else throw Error(`Unable to get source layer LatLng.`)}return this.setLatLng(e),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var e=this._contentNode,t=typeof this._content==`function`?this._content(this._source||this):this._content;if(typeof t==`string`)e.innerHTML=t;else{for(;e.hasChildNodes();)e.removeChild(e.firstChild);e.appendChild(t)}this.fire(`contentupdate`)}},_updatePosition:function(){if(this._map){var e=this._map.latLngToLayerPoint(this._latlng),t=A(this.options.offset),n=this._getAnchor();this._zoomAnimated?G(this._container,e.add(n)):t=t.add(e).add(n);var r=this._containerBottom=-t.y,i=this._containerLeft=-Math.round(this._containerWidth/2)+t.x;this._container.style.bottom=r+`px`,this._container.style.left=i+`px`}},_getAnchor:function(){return[0,0]}});X.include({_initOverlay:function(e,t,n,r){var i=t;return i instanceof e||(i=new e(r).setContent(t)),n&&i.setLatLng(n),i}}),$.include({_initOverlay:function(e,t,n,r){var i=n;return i instanceof e?(p(i,r),i._source=this):(i=t&&!r?t:new e(r,this),i.setContent(n)),i}});var kr=Or.extend({options:{pane:`popupPane`,offset:[0,7],maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,autoClose:!0,closeOnEscapeKey:!0,className:``},openOn:function(e){return e=arguments.length?e:this._source._map,!e.hasLayer(this)&&e._popup&&e._popup.options.autoClose&&e.removeLayer(e._popup),e._popup=this,Or.prototype.openOn.call(this,e)},onAdd:function(e){Or.prototype.onAdd.call(this,e),e.fire(`popupopen`,{popup:this}),this._source&&(this._source.fire(`popupopen`,{popup:this},!0),this._source instanceof tr||this._source.on(`preclick`,Yt))},onRemove:function(e){Or.prototype.onRemove.call(this,e),e.fire(`popupclose`,{popup:this}),this._source&&(this._source.fire(`popupclose`,{popup:this},!0),this._source instanceof tr||this._source.off(`preclick`,Yt))},getEvents:function(){var e=Or.prototype.getEvents.call(this);return(this.options.closeOnClick===void 0?this._map.options.closePopupOnClick:this.options.closeOnClick)&&(e.preclick=this.close),this.options.keepInView&&
1(e.moveend=this._adjustPan),e},_initLayout:function(){var e=`leaflet-popup`,t=this._container=B(`div`,e+` `+(this.options.className||``)+` leaflet-zoom-animated`),n=this._wrapper=B(`div`,e+`-content-wrapper`,t);if(this._contentNode=B(`div`,e+`-content`,n),Zt(t),Xt(this._contentNode),K(t,`contextmenu`,Yt),this._tipContainer=B(`div`,e+`-tip-container`,t),this._tip=B(`div`,e+`-tip`,this._tipContainer),this.options.closeButton){var r=this._closeButton=B(`a`,e+`-close-button`,t);r.setAttribute(`role`,`button`),r.setAttribute(`aria-label`,`Close popup`),r.href=`#close`,r.innerHTML=`<span aria-hidden="true">&#215;</span>`,K(r,`click`,function(e){Y(e),this.close()},this)}},_updateLayout:function(){var e=this._contentNode,t=e.style;t.width=``,t.whiteSpace=`nowrap`;var n=e.offsetWidth;n=Math.min(n,this.options.maxWidth),n=Math.max(n,this.options.minWidth),t.width=n+1+`px`,t.whiteSpace=``,t.height=``;var r=e.offsetHeight,i=this.options.maxHeight,a=`leaflet-popup-scrolled`;i&&r>i?(t.height=i+`px`,H(e,a)):U(e,a),this._containerWidth=this._container.offsetWidth},_animateZoom:function(e){var t=this._map._latLngToNewLayerPoint(this._latlng,e.zoom,e.center),n=this._getAnchor();G(this._container,t.add(n))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning){this._autopanning=!1;return}var e=this._map,t=parseInt(xt(this._container,`marginBottom`),10)||0,n=this._container.offsetHeight+t,r=this._containerWidth,i=new k(this._containerLeft,-n-this._containerBottom);i._add(jt(this._container));var a=e.layerPointToContainerPoint(i),o=A(this.options.autoPanPadding),s=A(this.options.autoPanPaddingTopLeft||o),c=A(this.options.autoPanPaddingBottomRight||o),l=e.getSize(),u=0,d=0;a.x+r+c.x>l.x&&(u=a.x+r-l.x+c.x),a.x-u-s.x<0&&(u=a.x-s.x),a.y+n+c.y>l.y&&(d=a.y+n-l.y+c.y),a.y-d-s.y<0&&(d=a.y-s.y),(u||d)&&(this.options.keepInView&&(this._autopanning=!0),e.fire(`autopanstart`).panBy([u,d]))}},_getAnchor:function(){return A(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),Ar=function(e,t){return new kr(e,t)};X.mergeOptions({closePopupOnClick:!0}),X.include({openPopup:function(e,t,n){return this._initOverlay(kr,e,t,n).openOn(this),this},closePopup:function(e){return e=arguments.length?e:this._popup,e&&e.close(),this}}),$.include({bindPopup:function(e,t){return this._popup=this._initOverlay(kr,this._popup,e,t),this._popupHandlersAdded||=(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),!0),this},unbindPopup:function(){return this._popup&&=(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,null),this},openPopup:function(e){return this._popup&&(this instanceof qn||(this._popup._source=this),this._popup._prepareOpen(e||this._latlng)&&this._popup.openOn(this._map)),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return this._popup?this._popup.isOpen():!1},setPopupContent:function(e){return this._popup&&this._popup.setContent(e),this},getPopup:function(){return this._popup},_openPopup:function(e){if(this._popup&&this._map){Qt(e);var t=e.layer||e.target;if(this._popup._source===t&&!(t instanceof tr)){this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(e.latlng);return}this._popup._source=t,this.openPopup(e.latlng)}},_movePopup:function(e){this._popup.setLatLng(e.latlng)},_onKeyPress:function(e){e.originalEvent.keyCode===13&&this._openPopup(e)}});var jr=Or.extend({options:{pane:`tooltipPane`,offset:[0,0],direction:`auto`,permanent:!1,sticky:!1,opacity:.9},onAdd:function(e){Or.prototype.onAdd.call(this,e),this.setOpacity(this.options.opacity),e.fire(`tooltipopen`,{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire(`tooltipopen`,{tooltip:this},!0))},onRemove:function(e){Or.prototype.onRemove.call(this,e),e.fire(`tooltipclose`,{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire(`tooltipclose`,{tooltip:this},!0))},getEvents:function(){var e=Or.prototype.getEvents.call(this);return this.options.permanent||(e.preclick=this.close),e},_initLayout:function(){var e=`leaflet-tooltip `+(this.options.className||``)+` leaflet-zoom-`+(this._zoomAnimated?`animated`:`hide`);this._contentNode=this._container=B(`div`,e),this._container.setAttribute(`role`,`tooltip`),this._container.setAttribute(`id`,`leaflet-tooltip-`+o(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(e){var t,n,r=this._map,i=this._container,a=r.latLngToContainerPoint(r.getCenter()),o=r.layerPointToContainerPoint(e),s=this.options.direction,c=i.offsetWidth,l=i.offsetHeight,u=A(this.options.offset),d=this._getAnchor();s===`top`?(t=c/2,n=l):s===`bottom`?(t=c/2,n=0):s===`center`?(t=c/2,n=l/2):s===`right`?(t=0,n=l/2):s===`left`?(t=c,n=l/2):o.x<a.x?(s=`right`,t=0,n=l/2):(s=`left`,t=c+(u.x+d.x)*2,n=l/2),e=e.subtract(A(t,n,!0)).add(u).add(d),U(i,`leaflet-tooltip-right`),U(i,`leaflet-tooltip-left`),U(i,`leaflet-tooltip-top`),U(i,`leaflet-tooltip-bottom`),H(i,`leaflet-tooltip-`+s),G(i,e)},_updatePosition:function(){var e=this._map.latLngToLayerPoint(this._latlng);this._setPosition(e)},setOpacity:function(e){this.options.opacity=e,this._container&&W(this._container,e)},_animateZoom:function(e){var t=this._map._latLngToNewLayerPoint(this._latlng,e.zoom,e.center);this._setPosition(t)},_getAnchor:function(){return A(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),Mr=function(e,t){return new jr(e,t)};X.include({openTooltip:function(e,t,n){return this._initOverlay(jr,e,t,n).openOn(this),this},closeTooltip:function(e){return e.close(),this}}),$.include({bindTooltip:function(e,t){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(jr,this._tooltip,e,t),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip:function(){return this._tooltip&&=(this._initTooltipInteractions(!0),this.closeTooltip(),null),this},_initTooltipInteractions:function(e){if(e||!this._tooltipHandlersAdded){var t=e?`off`:`on`,n={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?n.add=this._openTooltip:(n.mouseover=this._openTooltip,n.mouseout=this.closeTooltip,n.click=this._openTooltip,this._map?this._addFocusListeners():n.add=this._addFocusListeners),this._tooltip.options.sticky&&(n.mousemove=this._moveTooltip),this[t](n),this._tooltipHandlersAdded=!e}},openTooltip:function(e){return this._tooltip&&(this instanceof qn||(this._tooltip._source=this),this._tooltip._prepareOpen(e)&&(this._tooltip.openOn(this._map),this.getElement?this._setAriaDescribedByOnLayer(this):this.eachLayer&&this.eachLayer(this._setAriaDescribedByOnLayer,this))),this},closeTooltip:function(){if(this._tooltip)return this._tooltip.close()},toggleTooltip:function(){return this._tooltip&&this._tooltip.toggle(this),this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(e){return this._tooltip&&this._tooltip.setContent(e),this},getTooltip:function(){return this._tooltip},_addFocusListeners:function(){this.getElement?this._addFocusListenersOnLayer(this):this.eachLayer&&this.eachLayer(this._addFocusListenersOnLayer,this)},_addFocusListenersOnLayer:function(e){var t=typeof e.getElement==`function`&&e.getElement();t&&(K(t,`focus`,function(){this._tooltip._source=e,this.openTooltip()},this),K(t,`blur`,this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(e){var t=typeof e.getElement==`function`&&e.getElement();t&&t.setAttribute(`aria-describedby`,this._tooltip._container.id)},_openTooltip:function(e){if(this._tooltip&&this._map){if(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag){this._openOnceFlag=!0;var t=this;this._map.once(`moveend`,function(){t._openOnceFlag=!1,t._openTooltip(e)});return}this._tooltip._source=e.layer||e.target,this.openTooltip(this._tooltip.options.sticky?e.latlng:void 0)}},_moveTooltip:function(e){var t=e.latlng,n,r;this._tooltip.options.sticky&&e.originalEvent&&(n=this._map.mouseEventToContainerPoint(e.originalEvent),r=this._map.containerPointToLayerPoint(n),t=this._map.layerPointToLatLng(r)),this._tooltip.setLatLng(t)}});var Nr=Yn.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:`leaflet-div-icon`},createIcon:function(e){var t=e&&e.tagName===`DIV`?e:document.createElement(`div`),n=this.options;if(n.html instanceof Element?(St(t),t.appendChild(n.html)):t.innerHTML=n.html===!1?``:n.html,n.bgPos){var r=A(n.bgPos);t.style.backgroundPosition=-r.x+`px `+-r.y+`px`}return this._setIconStyles(t,`icon`),t},createShadow:function(){return null}});function Pr(e){return new Nr(e)}Yn.Default=Zn;var Fr=$.extend({options:{tileSize:256,opacity:1,updateWhenIdle:z.mobile,updateWhenZooming:!0,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:void 0,maxNativeZoom:void 0,minNativeZoom:void 0,noWrap:!1,pane:`tilePane`,className:``,keepBuffer:2},initialize:function(e){p(this,e)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(e){e._addZoomLimit(this)},onRemove:function(e){this._removeAllTiles(),V(this._container),e._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(Ct(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(wt(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(e){return this.options.opacity=e,this._updateOpacity(),this},setZIndex:function(e){return this.options.zIndex=e,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var e=this._clampZoom(this._map.getZoom());e!==this._tileZoom&&(this._tileZoom=e,this._updateLevels()),this._update()}return this},getEvents:function(){var e={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||=s(this._onMoveEnd,this.options.updateInterval,this),e.move=this._onMove),this._zoomAnimated&&(e.zoomanim=this._animateZoom),e},createTile:function(){return document.createElement(`div`)},getTileSize:function(){var e=this.options.tileSize;return e instanceof k?e:new k(e,e)},_updateZIndex:function(){this._container&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(e){for(var t=this.getPane().children,n=-e(-1/0,1/0),r=0,i=t.length,a;r<i;r++)a=t[r].style.zIndex,t[r]!==this._container&&a&&(n=e(n,+a));isFinite(n)&&(this.options.zIndex=n+e(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!z.ielt9){W(this._container,this.options.opacity);var e=+new Date,t=!1,n=!1;for(var r in this._tiles){var i=this._tiles[r];if(i.current&&i.loaded){var a=Math.min(1,(e-i.loaded)/200);W(i.el,a),a<1?t=!0:(i.active?n=!0:this._onOpaqueTile(i),i.active=!0)}}n&&!this._noPrune&&this._pruneTiles(),t&&(T(this._fadeFrame),this._fadeFrame=w(this._updateOpacity,this))}},_onOpaqueTile:l,_initContainer:function(){this._container||(this._container=B(`div`,`leaflet-layer `+(this.options.className||``)),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var e=this._tileZoom,t=this.options.maxZoom;if(e!==void 0){for(var n in this._levels)n=Number(n),this._levels[n].el.children.length||n===e?(this._levels[n].el.style.zIndex=t-Math.abs(e-n),this._onUpdateLevel(n)):(V(this._levels[n].el),this._removeTilesAtZoom(n),this._onRemoveLevel(n),delete this._levels[n]);var r=this._levels[e],i=this._map;return r||(r=this._levels[e]={},r.el=B(`div`,`leaflet-tile-container leaflet-zoom-animated`,this._container),r.el.style.zIndex=t,r.origin=i.project(i.unproject(i.getPixelOrigin()),e).round(),r.zoom=e,this._setZoomTransform(r,i.getCenter(),i.getZoom()),r.el.offsetWidth,this._onCreateLevel(r)),this._level=r,r}},_onUpdateLevel:l,_onRemoveLevel:l,_onCreateLevel:l,_pruneTiles:function(){if(this._map){var e,t,n=this._map.getZoom();if(n>this.options.maxZoom||n<this.options.minZoom){this._removeAllTiles();return}for(e in this._tiles)t=this._tiles[e],t.retain=t.current;for(e in this._tiles)if(t=this._tiles[e],t.current&&!t.active){var r=t.coords;this._retainParent(r.x,r.y,r.z,r.z-5)||this._retainChildren(r.x,r.y,r.z,r.z+2)}for(e in this._tiles)this._tiles[e].retain||this._removeTile(e)}},_removeTilesAtZoom:function(e){for(var t in this._tiles)this._tiles[t].coords.z===e&&this._removeTile(t)},_removeAllTiles:function(){for(var e in this._tiles)this._removeTile(e)},_invalidateAll:function(){for(var e in this._levels)V(this._levels[e].el),this._onRemoveLevel(Number(e)),delete this._levels[e];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(e,t,n,r){var i=Math.floor(e/2),a=Math.floor(t/2),o=n-1,s=new k(+i,+a);s.z=+o;var c=this._tileCoordsToKey(s),l=this._tiles[c];return l&&l.active?(l.retain=!0,!0):(l&&l.loaded&&(l.retain=!0),o>r&&this._retainParent(i,a,o,r))},_retainChildren:function(e,t,n,r){for(var i=2*e;i<2*e+2;i++)for(var a=2*t;a<2*t+2;a++){var o=new k(i,a);o.z=n+1;var s=this._tileCoordsToKey(o),c=this._tiles[s];if(c&&c.active){c.retain=!0;continue}c&&c.loaded&&(c.retain=!0),n+1<r&&this._retainChildren(i,a,n+1,r)}},_resetView:function(e){var t=e&&(e.pinch||e.flyTo);
vendor: 10,505 bytes, line 1
1this._setView(this._map.getCenter(),this._map.getZoom(),t,t)},_animateZoom:function(e){this._setView(e.center,e.zoom,!0,e.noUpdate)},_clampZoom:function(e){var t=this.options;return t.minNativeZoom!==void 0&&e<t.minNativeZoom?t.minNativeZoom:t.maxNativeZoom!==void 0&&t.maxNativeZoom<e?t.maxNativeZoom:e},_setView:function(e,t,n,r){var i=Math.round(t);i=this.options.maxZoom!==void 0&&i>this.options.maxZoom||this.options.minZoom!==void 0&&i<this.options.minZoom?void 0:this._clampZoom(i);var a=this.options.updateWhenZooming&&i!==this._tileZoom;(!r||a)&&(this._tileZoom=i,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),i!==void 0&&this._update(e),n||this._pruneTiles(),this._noPrune=!!n),this._setZoomTransforms(e,t)},_setZoomTransforms:function(e,t){for(var n in this._levels)this._setZoomTransform(this._levels[n],e,t)},_setZoomTransform:function(e,t,n){var r=this._map.getZoomScale(n,e.zoom),i=e.origin.multiplyBy(r).subtract(this._map._getNewPixelOrigin(t,n)).round();z.any3d?At(e.el,i,r):G(e.el,i)},_resetGrid:function(){var e=this._map,t=e.options.crs,n=this._tileSize=this.getTileSize(),r=this._tileZoom,i=this._map.getPixelWorldBounds(this._tileZoom);i&&(this._globalTileRange=this._pxBoundsToTileRange(i)),this._wrapX=t.wrapLng&&!this.options.noWrap&&[Math.floor(e.project([0,t.wrapLng[0]],r).x/n.x),Math.ceil(e.project([0,t.wrapLng[1]],r).x/n.y)],this._wrapY=t.wrapLat&&!this.options.noWrap&&[Math.floor(e.project([t.wrapLat[0],0],r).y/n.x),Math.ceil(e.project([t.wrapLat[1],0],r).y/n.y)]},_onMoveEnd:function(){this._map&&!this._map._animatingZoom&&this._update()},_getTiledPixelBounds:function(e){var t=this._map,n=t._animatingZoom?Math.max(t._animateToZoom,t.getZoom()):t.getZoom(),r=t.getZoomScale(n,this._tileZoom),i=t.project(e,this._tileZoom).floor(),a=t.getSize().divideBy(r*2);return new j(i.subtract(a),i.add(a))},_update:function(e){var t=this._map;if(t){var n=this._clampZoom(t.getZoom());if(e===void 0&&(e=t.getCenter()),this._tileZoom!==void 0){var r=this._getTiledPixelBounds(e),i=this._pxBoundsToTileRange(r),a=i.getCenter(),o=[],s=this.options.keepBuffer,c=new j(i.getBottomLeft().subtract([s,-s]),i.getTopRight().add([s,-s]));if(!(isFinite(i.min.x)&&isFinite(i.min.y)&&isFinite(i.max.x)&&isFinite(i.max.y)))throw Error(`Attempted to load an infinite number of tiles`);for(var l in this._tiles){var u=this._tiles[l].coords;(u.z!==this._tileZoom||!c.contains(new k(u.x,u.y)))&&(this._tiles[l].current=!1)}if(Math.abs(n-this._tileZoom)>1){this._setView(e,n);return}for(var d=i.min.y;d<=i.max.y;d++)for(var f=i.min.x;f<=i.max.x;f++){var p=new k(f,d);if(p.z=this._tileZoom,this._isValidTile(p)){var m=this._tiles[this._tileCoordsToKey(p)];m?m.current=!0:o.push(p)}}if(o.sort(function(e,t){return e.distanceTo(a)-t.distanceTo(a)}),o.length!==0){this._loading||(this._loading=!0,this.fire(`loading`));var h=document.createDocumentFragment();for(f=0;f<o.length;f++)this._addTile(o[f],h);this._level.el.appendChild(h)}}}},_isValidTile:function(e){var t=this._map.options.crs;if(!t.infinite){var n=this._globalTileRange;if(!t.wrapLng&&(e.x<n.min.x||e.x>n.max.x)||!t.wrapLat&&(e.y<n.min.y||e.y>n.max.y))return!1}if(!this.options.bounds)return!0;var r=this._tileCoordsToBounds(e);return P(this.options.bounds).overlaps(r)},_keyToBounds:function(e){return this._tileCoordsToBounds(this._keyToTileCoords(e))},_tileCoordsToNwSe:function(e){var t=this._map,n=this.getTileSize(),r=e.scaleBy(n),i=r.add(n);return[t.unproject(r,e.z),t.unproject(i,e.z)]},_tileCoordsToBounds:function(e){var t=this._tileCoordsToNwSe(e),n=new N(t[0],t[1]);return this.options.noWrap||(n=this._map.wrapLatLngBounds(n)),n},_tileCoordsToKey:function(e){return e.x+`:`+e.y+`:`+e.z},_keyToTileCoords:function(e){var t=e.split(`:`),n=new k(+t[0],+t[1]);return n.z=+t[2],n},_removeTile:function(e){var t=this._tiles[e];t&&(V(t.el),delete this._tiles[e],this.fire(`tileunload`,{tile:t.el,coords:this._keyToTileCoords(e)}))},_initTile:function(e){H(e,`leaflet-tile`);var t=this.getTileSize();e.style.width=t.x+`px`,e.style.height=t.y+`px`,e.onselectstart=l,e.onmousemove=l,z.ielt9&&this.options.opacity<1&&W(e,this.options.opacity)},_addTile:function(e,t){var n=this._getTilePos(e),r=this._tileCoordsToKey(e),a=this.createTile(this._wrapCoords(e),i(this._tileReady,this,e));this._initTile(a),this.createTile.length<2&&w(i(this._tileReady,this,e,null,a)),G(a,n),this._tiles[r]={el:a,coords:e,current:!0},t.appendChild(a),this.fire(`tileloadstart`,{tile:a,coords:e})},_tileReady:function(e,t,n){t&&this.fire(`tileerror`,{error:t,tile:n,coords:e});var r=this._tileCoordsToKey(e);n=this._tiles[r],n&&(n.loaded=+new Date,this._map._fadeAnimated?(W(n.el,0),T(this._fadeFrame),this._fadeFrame=w(this._updateOpacity,this)):(n.active=!0,this._pruneTiles()),t||(H(n.el,`leaflet-tile-loaded`),this.fire(`tileload`,{tile:n.el,coords:e})),this._noTilesToLoad()&&(this._loading=!1,this.fire(`load`),z.ielt9||!this._map._fadeAnimated?w(this._pruneTiles,this):setTimeout(i(this._pruneTiles,this),250)))},_getTilePos:function(e){return e.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(e){var t=new k(this._wrapX?c(e.x,this._wrapX):e.x,this._wrapY?c(e.y,this._wrapY):e.y);return t.z=e.z,t},_pxBoundsToTileRange:function(e){var t=this.getTileSize();return new j(e.min.unscaleBy(t).floor(),e.max.unscaleBy(t).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var e in this._tiles)if(!this._tiles[e].loaded)return!1;return!0}});function Ir(e){return new Fr(e)}var Lr=Fr.extend({options:{minZoom:0,maxZoom:18,subdomains:`abc`,errorTileUrl:``,zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(e,t){this._url=e,t=p(this,t),t.detectRetina&&z.retina&&t.maxZoom>0?(t.tileSize=Math.floor(t.tileSize/2),t.zoomReverse?(t.zoomOffset--,t.minZoom=Math.min(t.maxZoom,t.minZoom+1)):(t.zoomOffset++,t.maxZoom=Math.max(t.minZoom,t.maxZoom-1)),t.minZoom=Math.max(0,t.minZoom)):t.zoomReverse?t.minZoom=Math.min(t.maxZoom,t.minZoom):t.maxZoom=Math.max(t.minZoom,t.maxZoom),typeof t.subdomains==`string`&&(t.subdomains=t.subdomains.split(``)),this.on(`tileunload`,this._onTileRemove)},setUrl:function(e,t){return this._url===e&&t===void 0&&(t=!0),this._url=e,t||this.redraw(),this},createTile:function(e,t){var n=document.createElement(`img`);return K(n,`load`,i(this._tileOnLoad,this,t,n)),K(n,`error`,i(this._tileOnError,this,t,n)),(this.options.crossOrigin||this.options.crossOrigin===``)&&(n.crossOrigin=this.options.crossOrigin===!0?``:this.options.crossOrigin),typeof this.options.referrerPolicy==`string`&&(n.referrerPolicy=this.options.referrerPolicy),n.alt=``,n.src=this.getTileUrl(e),n},getTileUrl:function(e){var t={r:z.retina?`@2x`:``,s:this._getSubdomain(e),x:e.x,y:e.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var r=this._globalTileRange.max.y-e.y;this.options.tms&&(t.y=r),t[`-y`]=r}return g(this._url,n(t,this.options))},_tileOnLoad:function(e,t){z.ielt9?setTimeout(i(e,this,null,t),0):e(null,t)},_tileOnError:function(e,t,n){var r=this.options.errorTileUrl;r&&t.getAttribute(`src`)!==r&&(t.src=r),e(n,t)},_onTileRemove:function(e){e.tile.onload=null},_getZoomForUrl:function(){var e=this._tileZoom,t=this.options.maxZoom,n=this.options.zoomReverse,r=this.options.zoomOffset;return n&&(e=t-e),e+r},_getSubdomain:function(e){var t=Math.abs(e.x+e.y)%this.options.subdomains.length;return this.options.subdomains[t]},_abortLoading:function(){var e,t;for(e in this._tiles)if(this._tiles[e].coords.z!==this._tileZoom&&(t=this._tiles[e].el,t.onload=l,t.onerror=l,!t.complete)){t.src=v;var n=this._tiles[e].coords;V(t),delete this._tiles[e],this.fire(`tileabort`,{tile:t,coords:n})}},_removeTile:function(e){var t=this._tiles[e];if(t)return t.el.setAttribute(`src`,v),Fr.prototype._removeTile.call(this,e)},_tileReady:function(e,t,n){if(!(!this._map||n&&n.getAttribute(`src`)===v))return Fr.prototype._tileReady.call(this,e,t,n)}});function Rr(e,t){return new Lr(e,t)}var zr=Lr.extend({defaultWmsParams:{service:`WMS`,request:`GetMap`,layers:``,styles:``,format:`image/jpeg`,transparent:!1,version:`1.1.1`},options:{crs:null,uppercase:!1},initialize:function(e,t){this._url=e;var r=n({},this.defaultWmsParams);for(var i in t)i in this.options||(r[i]=t[i]);t=p(this,t);var a=t.detectRetina&&z.retina?2:1,o=this.getTileSize();r.width=o.x*a,r.height=o.y*a,this.wmsParams=r},onAdd:function(e){this._crs=this.options.crs||e.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var t=this._wmsVersion>=1.3?`crs`:`srs`;this.wmsParams[t]=this._crs.code,Lr.prototype.onAdd.call(this,e)},getTileUrl:function(e){var t=this._tileCoordsToNwSe(e),n=this._crs,r=M(n.project(t[0]),n.project(t[1])),i=r.min,a=r.max,o=(this._wmsVersion>=1.3&&this._crs===Un?[i.y,i.x,a.y,a.x]:[i.x,i.y,a.x,a.y]).join(`,`),s=Lr.prototype.getTileUrl.call(this,e);return s+m(this.wmsParams,s,this.options.uppercase)+(this.options.uppercase?`&BBOX=`:`&bbox=`)+o},setParams:function(e,t){return n(this.wmsParams,e),t||this.redraw(),this}});function Br(e,t){return new zr(e,t)}Lr.WMS=zr,Rr.wms=Br;var Vr=$.extend({options:{padding:.1},initialize:function(e){p(this,e),o(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),H(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 e={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(e.zoomanim=this._onAnimZoom),e},_onAnimZoom:function(e){this._updateTransform(e.center,e.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(e,t){var n=this._map.getZoomScale(t,this._zoom),r=this._map.getSize().multiplyBy(.5+this.options.padding),i=this._map.project(this._center,t),a=r.multiplyBy(-n).add(i).subtract(this._map._getNewPixelOrigin(e,t));z.any3d?At(this._container,a,n):G(this._container,a)},_reset:function(){for(var e in this._update(),this._updateTransform(this._center,this._zoom),this._layers)this._layers[e]._reset()},_onZoomEnd:function(){for(var e in this._layers)this._layers[e]._project()},_updatePaths:function(){for(var e in this._layers)this._layers[e]._update()},_update:function(){var e=this.options.padding,t=this._map.getSize(),n=this._map.containerPointToLayerPoint(t.multiplyBy(-e)).round();
1this._bounds=new j(n,n.add(t.multiplyBy(1+e*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),Hr=Vr.extend({options:{tolerance:0},getEvents:function(){var e=Vr.prototype.getEvents.call(this);return e.viewprereset=this._onViewPreReset,e},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){Vr.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var e=this._container=document.createElement(`canvas`);K(e,`mousemove`,this._onMouseMove,this),K(e,`click dblclick mousedown mouseup contextmenu`,this._onClick,this),K(e,`mouseout`,this._handleMouseOut,this),e._leaflet_disable_events=!0,this._ctx=e.getContext(`2d`)},_destroyContainer:function(){T(this._redrawRequest),delete this._ctx,V(this._container),J(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var e;for(var t in this._redrawBounds=null,this._layers)e=this._layers[t],e._update();this._redraw()}},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){Vr.prototype._update.call(this);var e=this._bounds,t=this._container,n=e.getSize(),r=z.retina?2:1;G(t,e.min),t.width=r*n.x,t.height=r*n.y,t.style.width=n.x+`px`,t.style.height=n.y+`px`,z.retina&&this._ctx.scale(2,2),this._ctx.translate(-e.min.x,-e.min.y),this.fire(`update`)}},_reset:function(){Vr.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(e){this._updateDashArray(e),this._layers[o(e)]=e;var t=e._order={layer:e,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=t),this._drawLast=t,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(e){this._requestRedraw(e)},_removePath:function(e){var t=e._order,n=t.next,r=t.prev;n?n.prev=r:this._drawLast=r,r?r.next=n:this._drawFirst=n,delete e._order,delete this._layers[o(e)],this._requestRedraw(e)},_updatePath:function(e){this._extendRedrawBounds(e),e._project(),e._update(),this._requestRedraw(e)},_updateStyle:function(e){this._updateDashArray(e),this._requestRedraw(e)},_updateDashArray:function(e){if(typeof e.options.dashArray==`string`){for(var t=e.options.dashArray.split(/[, ]+/),n=[],r,i=0;i<t.length;i++){if(r=Number(t[i]),isNaN(r))return;n.push(r)}e.options._dashArray=n}else e.options._dashArray=e.options.dashArray},_requestRedraw:function(e){this._map&&(this._extendRedrawBounds(e),this._redrawRequest=this._redrawRequest||w(this._redraw,this))},_extendRedrawBounds:function(e){if(e._pxBounds){var t=(e.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new j,this._redrawBounds.extend(e._pxBounds.min.subtract([t,t])),this._redrawBounds.extend(e._pxBounds.max.add([t,t]))}},_redraw:function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear:function(){var e=this._redrawBounds;if(e){var t=e.getSize();this._ctx.clearRect(e.min.x,e.min.y,t.x,t.y)}else this._ctx.save(),this._ctx.setTransform(1,0,0,1,0,0),this._ctx.clearRect(0,0,this._container.width,this._container.height),this._ctx.restore()},_draw:function(){var e,t=this._redrawBounds;if(this._ctx.save(),t){var n=t.getSize();this._ctx.beginPath(),this._ctx.rect(t.min.x,t.min.y,n.x,n.y),this._ctx.clip()}this._drawing=!0;for(var r=this._drawFirst;r;r=r.next)e=r.layer,(!t||e._pxBounds&&e._pxBounds.intersects(t))&&e._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(e,t){if(this._drawing){var n,r,i,a,o=e._parts,s=o.length,c=this._ctx;if(s){for(c.beginPath(),n=0;n<s;n++){for(r=0,i=o[n].length;r<i;r++)a=o[n][r],c[r?`lineTo`:`moveTo`](a.x,a.y);t&&c.closePath()}this._fillStroke(c,e)}}},_updateCircle:function(e){if(this._drawing&&!e._empty()){var t=e._point,
1n=this._ctx,r=Math.max(Math.round(e._radius),1),i=(Math.max(Math.round(e._radiusY),1)||r)/r;i!==1&&(n.save(),n.scale(1,i)),n.beginPath(),n.arc(t.x,t.y/i,r,0,Math.PI*2,!1),i!==1&&n.restore(),this._fillStroke(n,e)}},_fillStroke:function(e,t){var n=t.options;n.fill&&(e.globalAlpha=n.fillOpacity,e.fillStyle=n.fillColor||n.color,e.fill(n.fillRule||`evenodd`)),n.stroke&&n.weight!==0&&(e.setLineDash&&e.setLineDash(t.options&&t.options._dashArray||[]),e.globalAlpha=n.opacity,e.lineWidth=n.weight,e.strokeStyle=n.color,e.lineCap=n.lineCap,e.lineJoin=n.lineJoin,e.stroke())},_onClick:function(e){for(var t=this._map.mouseEventToLayerPoint(e),n,r,i=this._drawFirst;i;i=i.next)n=i.layer,n.options.interactive&&n._containsPoint(t)&&(e.type!==`click`&&e.type!==`preclick`||!this._map._draggableMoved(n))&&(r=n);this._fireEvent(r?[r]:!1,e)},_onMouseMove:function(e){if(!(!this._map||this._map.dragging.moving()||this._map._animatingZoom)){var t=this._map.mouseEventToLayerPoint(e);this._handleMouseHover(e,t)}},_handleMouseOut:function(e){var t=this._hoveredLayer;t&&(U(this._container,`leaflet-interactive`),this._fireEvent([t],e,`mouseout`),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(e,t){if(!this._mouseHoverThrottled){for(var n,r,a=this._drawFirst;a;a=a.next)n=a.layer,n.options.interactive&&n._containsPoint(t)&&(r=n);r!==this._hoveredLayer&&(this._handleMouseOut(e),r&&(H(this._container,`leaflet-interactive`),this._fireEvent([r],e,`mouseover`),this._hoveredLayer=r)),this._fireEvent(this._hoveredLayer?[this._hoveredLayer]:!1,e),this._mouseHoverThrottled=!0,setTimeout(i(function(){this._mouseHoverThrottled=!1},this),32)}},_fireEvent:function(e,t,n){this._map._fireDOMEvent(t,n||t.type,e)},_bringToFront:function(e){var t=e._order;if(t){var n=t.next,r=t.prev;if(n)n.prev=r;else return;r?r.next=n:n&&(this._drawFirst=n),t.prev=this._drawLast,this._drawLast.next=t,t.next=null,this._drawLast=t,this._requestRedraw(e)}},_bringToBack:function(e){var t=e._order;if(t){var n=t.next,r=t.prev;if(r)r.next=n;else return;n?n.prev=r:r&&(this._drawLast=r),t.prev=null,t.next=this._drawFirst,this._drawFirst.prev=t,this._drawFirst=t,this._requestRedraw(e)}}});function Ur(e){return z.canvas?new Hr(e):null}var Wr=(function(){try{return document.namespaces.add(`lvml`,`urn:schemas-microsoft-com:vml`),function(e){return document.createElement(`<lvml:`+e+` class="lvml">`)}}catch{}return function(e){return document.createElement(`<`+e+` xmlns="urn:schemas-microsoft.com:vml" class="lvml">`)}})(),Gr={_initContainer:function(){this._container=B(`div`,`leaflet-vml-container`)},_update:function(){this._map._animatingZoom||(Vr.prototype._update.call(this),this.fire(`update`))},_initPath:function(e){var t=e._container=Wr(`shape`);H(t,`leaflet-vml-shape `+(this.options.className||``)),t.coordsize=`1 1`,e._path=Wr(`path`),t.appendChild(e._path),this._updateStyle(e),this._layers[o(e)]=e},_addPath:function(e){var t=e._container;this._container.appendChild(t),e.options.interactive&&e.addInteractiveTarget(t)},_removePath:function(e){var t=e._container;V(t),e.removeInteractiveTarget(t),delete this._layers[o(e)]},_updateStyle:function(e){var t=e._stroke,n=e._fill,r=e.options,i=e._container;i.stroked=!!r.stroke,i.filled=!!r.fill,r.stroke?(t||=e._stroke=Wr(`stroke`),i.appendChild(t),t.weight=r.weight+`px`,t.color=r.color,t.opacity=r.opacity,r.dashArray?t.dashStyle=_(r.dashArray)?r.dashArray.join(` `):r.dashArray.replace(/( *, *)/g,` `):t.dashStyle=``,t.endcap=r.lineCap.replace(`butt`,`flat`),t.joinstyle=r.lineJoin):t&&(i.removeChild(t),e._stroke=null),r.fill?(n||=e._fill=Wr(`fill`),i.appendChild(n),n.color=r.fillColor||r.color,n.opacity=r.fillOpacity):n&&(i.removeChild(n),e._fill=null)},_updateCircle:function(e){var t=e._point.round(),n=Math.round(e._radius),r=Math.round(e._radiusY||n);this._setPath(e,e._empty()?`M0 0`:`AL `+t.x+`,`+t.y+` `+n+`,`+r+` 0,23592600`)},_setPath:function(e,t){e._path.v=t},_bringToFront:function(e){Ct(e._container)},_bringToBack:function(e){wt(e._container)}},Kr=z.vml?Wr:de,qr=Vr.extend({_initContainer:function(){this._container=Kr(`svg`),this._container.setAttribute(`pointer-events`,`none`),this._rootGroup=Kr(`g`),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){V(this._container),J(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){Vr.prototype._update.call(this);var e=this._bounds,t=e.getSize(),n=this._container;(!this._svgSize||!this._svgSize.equals(t))&&(this._svgSize=t,n.setAttribute(`width`,t.x),n.setAttribute(`height`,t.y)),G(n,e.min),n.setAttribute(`viewBox`,[e.min.x,e.min.y,t.x,t.y].join(` `)),this.fire(`update`)}},_initPath:function(e){var t=e._path=Kr(`path`);e.options.className&&H(t,e.options.className),e.options.interactive&&H(t,`leaflet-interactive`),this._updateStyle(e),this._layers[o(e)]=e},_addPath:function(e){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(e._path),e.addInteractiveTarget(e._path)},_removePath:function(e){V(e._path),e.removeInteractiveTarget(e._path),delete this._layers[o(e)]},_updatePath:function(e){e._project(),e._update()},_updateStyle:function(e){var t=e._path,n=e.options;t&&(n.stroke?(t.setAttribute(`stroke`,n.color),t.setAttribute(`stroke-opacity`,n.opacity),t.setAttribute(`stroke-width`,n.weight),t.setAttribute(`stroke-linecap`,n.lineCap),t.setAttribute(`stroke-linejoin`,n.lineJoin),n.dashArray?t.setAttribute(`stroke-dasharray`,n.dashArray):t.removeAttribute(`stroke-dasharray`),n.dashOffset?t.setAttribute(`stroke-dashoffset`,n.dashOffset):t.removeAttribute(`stroke-dashoffset`)):t.setAttribute(`stroke`,`none`),n.fill?(t.setAttribute(`fill`,n.fillColor||n.color),t.setAttribute(`fill-opacity`,n.fillOpacity),t.setAttribute(`fill-rule`,n.fillRule||`evenodd`)):t.setAttribute(`fill`,`none`))},_updatePoly:function(e,t){this._setPath(e,fe(e._parts,t))}
1,_updateCircle:function(e){var t=e._point,n=Math.max(Math.round(e._radius),1),r=Math.max(Math.round(e._radiusY),1)||n,i=`a`+n+`,`+r+` 0 1,0 `,a=e._empty()?`M0 0`:`M`+(t.x-n)+`,`+t.y+i+n*2+`,0 `+i+-n*2+`,0 `;this._setPath(e,a)},_setPath:function(e,t){e._path.setAttribute(`d`,t)},_bringToFront:function(e){Ct(e._path)},_bringToBack:function(e){wt(e._path)}});z.vml&&qr.include(Gr);function Jr(e){return z.svg||z.vml?new qr(e):null}X.include({getRenderer:function(e){var t=e.options.renderer||this._getPaneRenderer(e.options.pane)||this.options.renderer||this._renderer;return t||=this._renderer=this._createRenderer(),this.hasLayer(t)||this.addLayer(t),t},_getPaneRenderer:function(e){if(e===`overlayPane`||e===void 0)return!1;var t=this._paneRenderers[e];return t===void 0&&(t=this._createRenderer({pane:e}),this._paneRenderers[e]=t),t},_createRenderer:function(e){return this.options.preferCanvas&&Ur(e)||Jr(e)}});var Yr=cr.extend({initialize:function(e,t){cr.prototype.initialize.call(this,this._boundsToLatLngs(e),t)},setBounds:function(e){return this.setLatLngs(this._boundsToLatLngs(e))}
vendor: 6,211 bytes, line 1
1,_boundsToLatLngs:function(e){return e=P(e),[e.getSouthWest(),e.getNorthWest(),e.getNorthEast(),e.getSouthEast()]}});function Xr(e,t){return new Yr(e,t)}qr.create=Kr,qr.pointsToPath=fe,ur.geometryToLayer=dr,ur.coordsToLatLng=pr,ur.coordsToLatLngs=mr,ur.latLngToCoords=hr,ur.latLngsToCoords=gr,ur.getFeature=_r,ur.asFeature=vr,X.mergeOptions({boxZoom:!0});var Zr=gn.extend({initialize:function(e){this._map=e,this._container=e._container,this._pane=e._panes.overlayPane,this._resetStateTimeout=0,e.on(`unload`,this._destroy,this)},addHooks:function(){K(this._container,`mousedown`,this._onMouseDown,this)},removeHooks:function(){J(this._container,`mousedown`,this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){V(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){this._resetStateTimeout!==0&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(e){if(!e.shiftKey||e.which!==1&&e.button!==1)return!1;this._clearDeferredResetState(),this._resetState(),Mt(),It(),this._startPoint=this._map.mouseEventToContainerPoint(e),K(document,{contextmenu:Qt,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(e){this._moved||(this._moved=!0,this._box=B(`div`,`leaflet-zoom-box`,this._container),H(this._container,`leaflet-crosshair`),this._map.fire(`boxzoomstart`)),this._point=this._map.mouseEventToContainerPoint(e);var t=new j(this._point,this._startPoint),n=t.getSize();G(this._box,t.min),this._box.style.width=n.x+`px`,this._box.style.height=n.y+`px`},_finish:function(){this._moved&&(V(this._box),U(this._container,`leaflet-crosshair`)),Nt(),Lt(),J(document,{contextmenu:Qt,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(e){if((e.which===1||e.button===1)&&(this._finish(),this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(i(this._resetState,this),0);var t=new N(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(t).fire(`boxzoomend`,{boxZoomBounds:t})}},_onKeyDown:function(e){e.keyCode===27&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});X.addInitHook(`addHandler`,`boxZoom`,Zr),X.mergeOptions({doubleClickZoom:!0});var Qr=gn.extend({addHooks:function(){this._map.on(`dblclick`,this._onDoubleClick,this)},removeHooks:function(){this._map.off(`dblclick`,this._onDoubleClick,this)},_onDoubleClick:function(e){var t=this._map,n=t.getZoom(),r=t.options.zoomDelta,i=e.originalEvent.shiftKey?n-r:n+r;t.options.doubleClickZoom===`center`?t.setZoom(i):t.setZoomAround(e.containerPoint,i)}});X.addInitHook(`addHandler`,`doubleClickZoom`,Qr),X.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var $r=gn.extend({addHooks:function(){if(!this._draggable){var e=this._map;this._draggable=new yn(e._mapPane,e._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on(`predrag`,this._onPreDragLimit,this),e.options.worldCopyJump&&(this._draggable.on(`predrag`,this._onPreDragWrap,this),e.on(`zoomend`,this._onZoomEnd,this),e.whenReady(this._onZoomEnd,this))}H(this._map._container,`leaflet-grab leaflet-touch-drag`),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){U(this._map._container,`leaflet-grab`),U(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 e=this._map;if(e._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var t=P(this._map.options.maxBounds);this._offsetLimit=M(this._map.latLngToContainerPoint(t.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(t.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;e.fire(`movestart`).fire(`dragstart`),e.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(e){if(this._map.options.inertia){var t=this._lastTime=+new Date,n=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(n),this._times.push(t),this._prunePositions(t)}this._map.fire(`move`,e).fire(`drag`,e)},_prunePositions:function(e){for(;this._positions.length>1&&e-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var e=this._map.getSize().divideBy(2),t=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=t.subtract(e).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(e,t){return e-(e-t)*this._viscosity},_onPreDragLimit:function(){if(this._viscosity&&this._offsetLimit){var e=this._draggable._newPos.subtract(this._draggable._startPos),t=this._offsetLimit;e.x<t.min.x&&(e.x=this._viscousLimit(e.x,t.min.x)),e.y<t.min.y&&(e.y=this._viscousLimit(e.y,t.min.y)),e.x>t.max.x&&(e.x=this._viscousLimit(e.x,t.max.x)),e.y>t.max.y&&(e.y=this._viscousLimit(e.y,t.max.y)),this._draggable._newPos=this._draggable._startPos.add(e)}},_onPreDragWrap:function(){var e=this._worldWidth,t=Math.round(e/2),n=this._initialWorldOffset,r=this._draggable._newPos.x,i=(r-t+n)%e+t-n,a=(r+t+n)%e-t-n,o=Math.abs(i+n)<Math.abs(a+n)?i:a;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=o},_onDragEnd:function(e){var t=this._map,n=t.options,r=!n.inertia||e.noInertia||this._times.length<2;if(t.fire(`dragend`,e),r)t.fire(`moveend`);else{this._prunePositions(+new Date);var i=this._lastPos.subtract(this._positions[0]),a=(this._lastTime-this._times[0])/1e3,o=n.easeLinearity,s=i.multiplyBy(o/a),c=s.distanceTo([0,0]),l=Math.min(n.inertiaMaxSpeed,c),u=s.multiplyBy(l/c),d=l/(n.inertiaDeceleration*o),f=u.multiplyBy(-d/2).round();!f.x&&!f.y?t.fire(`moveend`):(f=t._limitOffset(f,t.options.maxBounds),w(function(){t.panBy(f,{duration:d,easeLinearity:o,noMoveStart:!0,animate:!0})}
1))}}});X.addInitHook(`addHandler`,`dragging`,$r),X.mergeOptions({keyboard:!0,keyboardPanDelta:80});var ei=gn.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(e){this._map=e,this._setPanDelta(e.options.keyboardPanDelta),this._setZoomDelta(e.options.zoomDelta)},addHooks:function(){var e=this._map._container;e.tabIndex<=0&&(e.tabIndex=`0`),K(e,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),J(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(!this._focused){var e=document.body,t=document.documentElement,n=e.scrollTop||t.scrollTop,r=e.scrollLeft||t.scrollLeft;this._map._container.focus(),window.scrollTo(r,n)}},_onFocus:function(){this._focused=!0,this._map.fire(`focus`)},_onBlur:function(){this._focused=!1,this._map.fire(`blur`)},_setPanDelta:function(e){for(var t=this._panKeys={},n=this.keyCodes,r=0,i=n.left.length;r<i;r++)t[n.left[r]]=[-1*e,0];for(r=0,i=n.right.length;r<i;r++)t[n.right[r]]=[e,0];for(r=0,i=n.down.length;r<i;r++)t[n.down[r]]=[0,e];for(r=0,i=n.up.length;r<i;r++)t[n.up[r]]=[0,-1*e]},_setZoomDelta:function(e){for(var t=this._zoomKeys={},n=this.keyCodes,r=0,i=n.zoomIn.length;r<i;r++)t[n.zoomIn[r]]=e;for(r=0,i=n.zoomOut.length;r<i;r++)t[n.zoomOut[r]]=-e},_addHooks:function(){K(document,`keydown`,this._onKeyDown,this)},_removeHooks:function(){J(document,`keydown`,this._onKeyDown,this)},_onKeyDown:function(e){if(!(e.altKey||e.ctrlKey||e.metaKey)){var t=e.keyCode,n=this._map,r;if(t in this._panKeys){if(!n._panAnim||!n._panAnim._inProgress){if(r=this._panKeys[t],e.shiftKey&&(r=A(r).multiplyBy(3)),n.options.maxBounds&&(r=n._limitOffset(A(r),n.options.maxBounds)),n.options.worldCopyJump){var i=n.wrapLatLng(n.unproject(n.project(n.getCenter()).add(r)));n.panTo(i)}else n.panBy(r)}}else if(t in this._zoomKeys)n.setZoom(n.getZoom()+(e.shiftKey?3:1)*this._zoomKeys[t]);else if(t===27&&n._popup&&n._popup.options.closeOnEscapeKey)n.closePopup();else return;Qt(e)}}});X.addInitHook(`addHandler`,`keyboard`,ei),X.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var ti=gn.extend({addHooks:function(){K(this._map._container,`wheel`,this._onWheelScroll,this),this._delta=0},removeHooks:function(){J(this._map._container,`wheel`,this._onWheelScroll,this)},_onWheelScroll:function(e){var t=nn(e),n=this._map.options.wheelDebounceTime;this._delta+=t,this._lastMousePos=this._map.mouseEventToContainerPoint(e),this._startTime||=+new Date;var r=Math.max(n-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(i(this._performZoom,this),r),Qt(e)},_performZoom:function(){var e=this._map,t=e.getZoom(),n=this._map.options.zoomSnap||0;e._stop();var r=this._delta/(this._map.options.wheelPxPerZoomLevel*4),i=4*Math.log(2/(1+Math.exp(-Math.abs(r))))/Math.LN2,a=n?Math.ceil(i/n)*n:i,o=e._limitZoom(t+(this._delta>0?a:-a))-t;this._delta=0,this._startTime=null,o&&(e.options.scrollWheelZoom===`center`?e.setZoom(t+o):e.setZoomAround(this._lastMousePos,t+o))}});X.addInitHook(`addHandler`,`scrollWheelZoom`,ti);var ni=600;X.mergeOptions({tapHold:z.touchNative&&z.safari&&z.mobile,tapTolerance:15});var ri=gn.extend({addHooks:function(){K(this._map._container,`touchstart`,this._onDown,this)},removeHooks:function(){J(this._map._container,`touchstart`,this._onDown,this)},_onDown:function(e){if(clearTimeout(this._holdTimeout),e.touches.length===1){var t=e.touches[0];this._startPos=this._newPos=new k(t.clientX,t.clientY),this._holdTimeout=setTimeout(i(function(){this._cancel(),this._isTapValid()&&(K(document,`touchend`,Y),K(document,`touchend touchcancel`,this._cancelClickPrevent),this._simulateEvent(`contextmenu`,t))},this),ni),K(document,`touchend touchcancel contextmenu`,this._cancel,this),K(document,`touchmove`,this._onMove,this)}},_cancelClickPrevent:function e(){J(document,`touchend`,Y),J(document,`touchend touchcancel`,e)},_cancel:function(){clearTimeout(this._holdTimeout),J(document,`touchend touchcancel contextmenu`,this._cancel,this),J(document,`touchmove`,this._onMove,this)},_onMove:function(e){var t=e.touches[0];this._newPos=new k(t.clientX,t.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(e,t){var n=new MouseEvent(e,{bubbles:!0,cancelable:!0,view:window,screenX:t.screenX,screenY:t.screenY,clientX:t.clientX,clientY:t.clientY});n._simulated=!0,t.target.dispatchEvent(n)}});X.addInitHook(`addHandler`,`tapHold`,ri),X.mergeOptions({touchZoom:z.touch,bounceAtZoomLimits:!0});var ii=gn.extend({addHooks:function(){H(this._map._container,`leaflet-touch-zoom`),K(this._map._container,`touchstart`,this._onTouchStart,this)},removeHooks:function(){U(this._map._container,`leaflet-touch-zoom`),J(this._map._container,`touchstart`,this._onTouchStart,this)},_onTouchStart:function(e){var t=this._map;if(!(!e.touches||e.touches.length!==2||t._animatingZoom||this._zooming)){var n=t.mouseEventToContainerPoint(e.touches[0]),r
1=t.mouseEventToContainerPoint(e.touches[1]);this._centerPoint=t.getSize()._divideBy(2),this._startLatLng=t.containerPointToLatLng(this._centerPoint),t.options.touchZoom!==`center`&&(this._pinchStartLatLng=t.containerPointToLatLng(n.add(r)._divideBy(2))),this._startDist=n.distanceTo(r),this._startZoom=t.getZoom(),this._moved=!1,this._zooming=!0,t._stop(),K(document,`touchmove`,this._onTouchMove,this),K(document,`touchend touchcancel`,this._onTouchEnd,this),Y(e)}},_onTouchMove:function(e){if(e.touches&&e.touches.length===2&&this._zooming){var t=this._map,n=t.mouseEventToContainerPoint(e.touches[0]),r=t.mouseEventToContainerPoint(e.touches[1]),a=n.distanceTo(r)/this._startDist;if(this._zoom=t.getScaleZoom(a,this._startZoom),!t.options.bounceAtZoomLimits&&(this._zoom<t.getMinZoom()&&a<1||this._zoom>t.getMaxZoom()&&a>1)&&(this._zoom=t._limitZoom(this._zoom)),t.options.touchZoom===`center`){if(this._center=this._startLatLng,a===1)return}else{var o=n._add(r)._divideBy(2)._subtract(this._centerPoint);if(a===1&&o.x===0&&o.y===0)return;this._center=t.unproject(t.project(this._pinchStartLatLng,this._zoom).subtract(o),this._zoom)}this._moved||=(t._moveStart(!0,!1),!0),T(this._animRequest);var s=i(t._move,t,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=w(s,this,!0),Y(e)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,T(this._animRequest),J(document,`touchmove`,this._onTouchMove,this),J(document,`touchend touchcancel`,this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))}});X.addInitHook(`addHandler`,`touchZoom`,ii),X.BoxZoom=Zr,X.DoubleClickZoom=Qr,X.Drag=$r,X.Keyboard=ei,X.ScrollWheelZoom=ti,X.TapHold=ri,X.TouchZoom=ii,e.Bounds=j,e.Browser=z,e.CRS=R,e.Canvas=Hr,e.Circle=ir,e.CircleMarker=nr,e.Class=E,e.Control=Z,e.DivIcon=Nr,e.DivOverlay=Or,e.DomEvent=an,e.DomUtil=Wt,e.Draggable=yn,e.Evented=O,e.FeatureGroup=qn,e.GeoJSON=ur,e.GridLayer=Fr,e.Handler=gn,e.Icon=Yn,e.ImageOverlay=Sr,e.LatLng=F,e.LatLngBounds=N,e.Layer=$,e.LayerGroup=Gn,e.LineUtil=Rn,e.Map=X,e.Marker=$n,e.Mixin=_n,e.Path=tr,e.Point=k,e.PolyUtil=Cn,e.Polygon=cr,e.Polyline=or,e.Popup=kr,e.PosAnimation=on,e.Projection=Vn,e.Rectangle=Yr,e.Renderer=Vr,e.SVG=qr,e.SVGOverlay=Er,e.TileLayer=Lr,e.Tooltip=jr,e.Transformation=se,e.Util=te,e.VideoOverlay=wr,e.bind=i,e.bounds=M,e.canvas=Ur,e.circle=ar,e.circleMarker=rr,e.control=cn,e.divIcon=Pr,e.extend=n,e.featureGroup=Jn,e.geoJSON=br,e.geoJson=xr,e.gridLayer=Ir,e.icon=Xn,e.imageOverlay=Cr,e.latLng=I,e.latLngBounds=P,e.layerGroup=Kn,e.map=sn,e.marker=er,e.point=A,e.polygon=lr,e.polyline=sr,e.popup=Ar,e.rectangle=Xr,e.setOptions=p,e.stamp=o,e.svg=Jr,e.svgOverlay=Dr,e.tileLayer=Rr,e.tooltip=Mr,e.transformation=ce,e.version=t,e.videoOverlay=Tr;var ai=window.L;e.noConflict=function(){return window.L=ai,this},window.L=e}))}))(),1);t(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?r(e):typeof define==`function`&&define.amd?define([`exports`],r):(n||=self,r((n.Leaflet=n.Leaflet||{},n.Leaflet.markercluster={})))})(e,function(e){var t=L.MarkerClusterGroup=L.FeatureGroup.extend({options:{maxClusterRadius:80,iconCreateFunction:null,clusterPane:L.Marker.prototype.options.pane,spiderfyOnEveryZoom:!1,spiderfyOnMaxZoom:!0,showCoverageOnHover:!0,zoomToBoundsOnClick:!0,singleMarkerMode:!1,disableClusteringAtZoom:null,removeOutsideVisibleBounds:!0,animate:!0,animateAddingMarkers:!1,spiderfyShapePositions:null,spiderfyDistanceMultiplier:1,spiderLegPolylineOptions:{weight:1.5,color:`#222`,opacity:.5},chunkedLoading:!1,chunkInterval:200,chunkDelay:50,chunkProgress:null,polygonOptions:{}},initialize:function(e){L.Util.setOptions(this,e),this.options.iconCreateFunction||(this.options.iconCreateFunction=this._defaultIconCreateFunction),this._featureGroup=L.featureGroup(),this._featureGroup.addEventParent(this),this._nonPointGroup=L.featureGroup(),this._nonPointGroup.addEventParent(this),this._inZoomAnimation=0,this._needsClustering=[],this._needsRemoving=[],this._currentShownBounds=null,this._queue=[],this._childMarkerEventHandlers={dragstart:this._childMarkerDragStart,move:this._childMarkerMoved,dragend:this._childMarkerDragEnd};var t=L.DomUtil.TRANSITION&&this.options.animate;L.extend(this,t?this._withAnimation:this._noAnimation),this._markerCluster
1=t?L.MarkerCluster:L.MarkerClusterNonAnimated},addLayer:function(e){if(e instanceof L.LayerGroup)return this.addLayers([e]);if(!e.getLatLng)return this._nonPointGroup.addLayer(e),this.fire(`layeradd`,{layer:e}),this;if(!this._map)return this._needsClustering.push(e),this.fire(`layeradd`,{layer:e}),this;if(this.hasLayer(e))return this;this._unspiderfy&&this._unspiderfy(),this._addLayer(e,this._maxZoom),this.fire(`layeradd`,{layer:e}),this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons();var t=e,n=this._zoom;if(e.__parent)for(;t.__parent._zoom>=n;)t=t.__parent;return this._currentShownBounds.contains(t.getLatLng())&&(this.options.animateAddingMarkers?this._animationAddLayer(e,t):this._animationAddLayerNonAnimated(e,t)),this},removeLayer:function(e){return e instanceof L.LayerGroup?this.removeLayers([e]):e.getLatLng?this._map?e.__parent?(this._unspiderfy&&(this._unspiderfy(),this._unspiderfyLayer(e)),this._removeLayer(e,!0),this.fire(`layerremove`,{layer:e}),this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),e.off(this._childMarkerEventHandlers,this),this._featureGroup.hasLayer(e)&&(this._featureGroup.removeLayer(e),e.clusterShow&&e.clusterShow()),this):this:(!this._arraySplice(this._needsClustering,e)&&this.hasLayer(e)&&this._needsRemoving.push({layer:e,latlng:e._latlng}),this.fire(`layerremove`,{layer:e}),this):(this._nonPointGroup.removeLayer(e),this.fire(`layerremove`,{layer:e}),this)},addLayers:function(e,t){if(!L.Util.isArray(e))return this.addLayer(e);var n=this._featureGroup,r=this._nonPointGroup,i=this.options.chunkedLoading,a=this.options.chunkInterval,o=this.options.chunkProgress,s=e.length,c=0,l=!0,u;if(this._map){var d=new Date().getTime(),f=L.bind(function(){var p=new Date().getTime();for(this._map&&this._unspiderfy&&this._unspiderfy();c<s&&!(i&&c%200==0&&new Date().getTime()-p>a);c++){if(u=e[c],u instanceof L.LayerGroup){l&&=(e=e.slice(),!1),this._extractNonGroupLayers(u,e),s=e.length;continue}if(!u.getLatLng){r.addLayer(u),t||this.fire(`layeradd`,{layer:u});continue}if(!this.hasLayer(u)&&(this._addLayer(u,this._maxZoom),t||this.fire(`layeradd`,{layer:u}),u.__parent&&u.__parent.getChildCount()===2)){var m=u.__parent.getAllChildMarkers(),h=m[0]===u?m[1]:m[0];n.removeLayer(h)}}o&&o(c,s,new Date().getTime()-d),c===s?(this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),this._topClusterLevel._recursivelyAddChildrenToMap(null,this._zoom,this._currentShownBounds)):setTimeout(f,this.options.chunkDelay)},this);f()}else for(var p=this._needsClustering;c<s;c++){if(u=e[c],u instanceof L.LayerGroup){l&&=(e=e.slice(),!1),this._extractNonGroupLayers(u,e),s=e.length;continue}if(!u.getLatLng){r.addLayer(u);continue}this.hasLayer(u)||p.push(u)}return this},removeLayers:function(e){var t,n,r=e.length,i=this._featureGroup,a=this._nonPointGroup,o=!0;if(!this._map){for(t=0;t<r;t++){if(n=e[t],n instanceof L.LayerGroup){o&&=(e=e.slice(),!1),this._extractNonGroupLayers(n,e),r=e.length;continue}this._arraySplice(this._needsClustering,n),a.removeLayer(n),this.hasLayer(n)&&this._needsRemoving.push({layer:n,latlng:n._latlng}),this.fire(`layerremove`,{layer:n})}return this}if(this._unspiderfy){this._unspiderfy();var s=e.slice(),c=r;for(t=0;t<c;t++){if(n=s[t],n instanceof L.LayerGroup){this._extractNonGroupLayers(n,s),c=s.length;continue}this._unspiderfyLayer(n)}}for(t=0;t<r;t++){if(n=e[t],n instanceof L.LayerGroup){o&&=(e=e.slice(),!1),this._extractNonGroupLayers(n,e),r=e.length;continue}if(!n.__parent){a.removeLayer(n),this.fire(`layerremove`,{layer:n});continue}this._removeLayer(n,!0,!0),this.fire(`layerremove`,{layer:n}),i.hasLayer(n)&&(i.removeLayer(n),n.clusterShow&&n.clusterShow())}return this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),this._topClusterLevel._recursivelyAddChildrenToMap(null,this._zoom,this._currentShownBounds),this},clearLayers:function(){return this._map||(this._needsClustering=[],this._needsRemoving=[],delete this._gridClusters,delete this._gridUnclustered),this._noanimationUnspiderfy&&this._noanimationUnspiderfy(),this._featureGroup.clearLayers(),this._nonPointGroup.clearLayers(),this.eachLayer(function(e){e.off(this._childMarkerEventHandlers,this),delete e.__parent},this),this._map&&this._generateInitialClusters(),this},getBounds:function(){var e=new L.LatLngBounds;this._topClusterLevel&&e.extend(this._topClusterLevel._bounds);for(var t=this._needsClustering.length-1;t>=0;t--)e.extend(this._needsClustering[t].getLatLng());return e.extend(this._nonPointGroup.getBounds()),e},eachLayer:function(e,t){var n=this._needsClustering.slice(),r=this._needsRemoving,i,a,o;for(this._topClusterLevel&&this._topClusterLevel.getAllChildMarkers(n),a=n.length-1;a>=0;a--){for(i=!0,o=r.length-1;o>=0;o--)if(r[o].layer===n[a]){i=!1;break}i&&e.call(t,n[a])}this._nonPointGroup.eachLayer(e,t)},getLayers:function(){var e=[];return this.eachLayer(function(t){e.push(t)}),e},getLayer:function(e){var t=null;return e=parseInt(e,10),this.eachLayer(function(n){L.stamp(n)===e&&(t=n)}),t},hasLayer:function(e){if(!e)return!1;var t,n=this._needsClustering;for(t=n.length-1;t>=0;t--)if(n[t]===e)return!0;for(n=this._needsRemoving,t=n.length-1;t>=0;t--)if(n[t].layer===e)return!1;return!!(e.__parent&&e.__parent._group===this)||this._nonPointGroup.hasLayer(e)},zoomToShowLayer:function(e,t){var n=this._map;typeof t!=`function`&&(t=function(){});var r=function(){(n.hasLayer(e)||n.hasLayer(e.__parent))&&!this._inZoomAnimation&&(this._map.off(`moveend`,r,this),this.off(`animationend`,r,this),n.hasLayer(e)?t():e.__parent._icon&&(this.once(`spiderfied`,t,this),e.__parent.spiderfy()))};e._icon&&this._map.getBounds().contains(e.getLatLng())?t():e.__parent._zoom<Math.round(this._map._zoom)?(this._map.on(`moveend`,r,this),this._map.panTo(e.getLatLng())):(this._map.on(`moveend`,r,this),this.on(`animationend`,r,this),e.__parent.zoomToBounds())},onAdd:function(e){this._map=e;var t,n,r;if(!isFinite(this._map.getMaxZoom()))throw`Map has no maxZoom specified`;for(this._featureGroup.addTo(e),this._nonPointGroup.addTo(e),this._gridClusters||this._generateInitialClusters(),this._maxLat=e.options.crs.projection.MAX_LATITUDE,t=0,n=this._needsRemoving.length;t<n;t++)r=this._needsRemoving[t],r.newlatlng=r.layer._latlng,r.layer._latlng=r.latlng;for(t=0,n=this._needsRemoving.length;t<n;t++)r=this._needsRemoving[t],this._removeLayer(r.layer,!0),r.layer._latlng=r.newlatlng;this._needsRemoving=[],this._zoom=Math.round(this._map._zoom),this._currentShownBounds=this._getExpandedVisibleBounds(),this._map.on(`zoomend`,this._zoomEnd,this),this._map.on(`moveend`,this._moveEnd,this),this._spiderfierOnAdd&&this._spiderfierOnAdd(),this._bindEvents(),n=this._needsClustering,this._needsClustering=[],this.addLayers(n,!0)},onRemove:function(e){e.off(`zoomend`,this._zoomEnd,this),e.off(`moveend`,this._moveEnd,this),this._unbindEvents(),this._map._mapPane.className=this._map._mapPane.className.replace(` leaflet-cluster-anim`,``),this._spiderfierOnRemove&&this._spiderfierOnRemove(),delete this._maxLat,this._hideCoverage(),this._featureGroup.remove(),this._nonPointGroup.remove(),this._featureGroup.clearLayers(),this._map=null},getVisibleParent:function(e){for(var t=e;t&&!t._icon;)t=t.__parent;return t||null},_arraySplice:function(e,t){for(var n=e.length-1;n>=0;n--)if(e[n]===t)return e.splice(n,1),!0},_removeFromGridUnclustered:function(e,t){for(var n=this._map,r=this._gridUnclustered,i=Math.floor(this._map.getMinZoom());t>=i&&r[t].removeObject(e,n.project(e.getLatLng(),t));t--);},_childMarkerDragStart:function(e){e.target.__dragStart=e.target._latlng},_childMarkerMoved:function(e){if(!this._ignoreMove&&!e.target.__dragStart){var t=e.target._popup&&e.target._popup.isOpen();this._moveChild(e.target,e.oldLatLng,e.latlng),t&&e.target.openPopup()}},_moveChild:function(e,t,n){e._latlng=t,this.removeLayer(e),e._latlng=n,this.addLayer(e)},_childMarkerDragEnd:function(e){var t=e.target.__dragStart;delete e.target.__dragStart,t&&this._moveChild(e.target,t,e.target._latlng)},_removeLayer:function(e,t,n){var r=this._gridClusters,i=this._gridUnclustered,a=this._featureGroup,o=this._map,s=Math.floor(this._map.getMinZoom());t&&this._removeFromGridUnclustered(e,this._maxZoom);var c=e.__parent,l=c._markers,u;for(this._arraySplice(l,e);c&&(c._childCount--,c._boundsNeedUpdate=!0,!(c._zoom<s));)t&&c._childCount<=1?(u=c._markers[0]===e?c._markers[1]:c._markers[0],r[c._zoom].removeObject(c,o.project(c._cLatLng,c._zoom)),i[c._zoom].addObject(u,o.project(u.getLatLng(),c._zoom)),this._arraySplice(c.__parent._childClusters,c),c.__parent._markers.push(u),u.__parent=c.__parent,c._icon&&(a.removeLayer(c),n||a.addLayer(u))):c._iconNeedsUpdate=!0,c=c.__parent;delete e.__parent},_isOrIsParent:function(e,t){for(;t;){if(e===t)return!0;t=t.parentNode}return!1},fire:function(e,t,n){if(t&&t.layer instanceof L.MarkerCluster){if(t.originalEvent&&this._isOrIsParent(t.layer._icon,t.originalEvent.relatedTarget))return;e=`cluster`+e}L.FeatureGroup.prototype.fire.call(this,e,t,n)},listens:function(e,t){return L.FeatureGroup.prototype.listens.call(this,e,t)||L.FeatureGroup.prototype.listens.call(this,`cluster`+e,t)},_defaultIconCreateFunction:function(e){var t=e.getChildCount(),n=` marker-cluster-`;return n+=t<10?`small`:t<100?`medium`:`large`,new L.DivIcon({html:`<div><span>
1`+t+`</span></div>`,className:`marker-cluster`+n,iconSize:new L.Point(40,40)})},_bindEvents:function(){var e=this._map,t=this.options.spiderfyOnMaxZoom,n=this.options.showCoverageOnHover,r=this.options.zoomToBoundsOnClick,i=this.options.spiderfyOnEveryZoom;(t||r||i)&&this.on(`clusterclick clusterkeypress`,this._zoomOrSpiderfy,this),n&&(this.on(`clustermouseover`,this._showCoverage,this),this.on(`clustermouseout`,this._hideCoverage,this),e.on(`zoomend`,this._hideCoverage,this))},_zoomOrSpiderfy:function(e){var t=e.layer,n=t;if(!(e.type===`clusterkeypress`&&e.originalEvent&&e.originalEvent.keyCode!==13)){for(;n._childClusters.length===1;)n=n._childClusters[0];n._zoom===this._maxZoom&&n._childCount===t._childCount&&this.options.spiderfyOnMaxZoom?t.spiderfy():this.options.zoomToBoundsOnClick&&t.zoomToBounds(),this.options.spiderfyOnEveryZoom&&t.spiderfy(),e.originalEvent&&e.originalEvent.keyCode===13&&this._map._container.focus()}},_showCoverage:function(e){var t=this._map;this._inZoomAnimation||(this._shownPolygon&&t.removeLayer(this._shownPolygon),e.layer.getChildCount()>2&&e.layer!==this._spiderfied&&(this._shownPolygon=new L.Polygon(e.layer.getConvexHull(),this.options.polygonOptions),t.addLayer(this._shownPolygon)))},_hideCoverage:function(){this._shownPolygon&&=(this._map.removeLayer(this._shownPolygon),null)},_unbindEvents:function(){var e=this.options.spiderfyOnMaxZoom,t=this.options.showCoverageOnHover,n=this.options.zoomToBoundsOnClick,r=this.options.spiderfyOnEveryZoom,i=this._map;(e||n||r)&&this.off(`clusterclick clusterkeypress`,this._zoomOrSpiderfy,this),t&&(this.off(`clustermouseover`,this._showCoverage,this),this.off(`clustermouseout`,this._hideCoverage,this),i.off(`zoomend`,this._hideCoverage,this))},_zoomEnd:function(){this._map&&(this._mergeSplitClusters(),this._zoom=Math.round(this._map._zoom),this._currentShownBounds=this._getExpandedVisibleBounds())},_moveEnd:function(){if(!this._inZoomAnimation){var e=this._getExpandedVisibleBounds();this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),this._zoom,e),this._topClusterLevel._recursivelyAddChildrenToMap(null,Math.round(this._map._zoom),e),this._currentShownBounds=e}},_generateInitialClusters:function(){var e=Math.ceil(this._map.getMaxZoom()),t=Math.floor(this._map.getMinZoom()),n=this.options.maxClusterRadius,r=n;typeof n!=`function`&&(r=function(){return n}),this.options.disableClusteringAtZoom!==null&&(e=this.options.disableClusteringAtZoom-1),this._maxZoom=e,this._gridClusters={},this._gridUnclustered={};for(var i=e;i>=t;i--)this._gridClusters[i]=new L.DistanceGrid(r(i)),this._gridUnclustered[i]=new L.DistanceGrid(r(i));this._topClusterLevel=new this._markerCluster(this,t-1)},_addLayer:function(e,t){var n=this._gridClusters,r=this._gridUnclustered,i=Math.floor(this._map.getMinZoom()),a,o;for(this.options.singleMarkerMode&&this._overrideMarkerIcon(e),e.on(this._childMarkerEventHandlers,this);t>=i;t--){a=this._map.project(e.getLatLng(),t);var s=n[t].getNearObject(a);if(s){s._addChild(e),e.__parent=s;return}if(s=r[t].getNearObject(a),s){var c=s.__parent;c&&this._removeLayer(s,!1);var l=new this._markerCluster(this,t,s,e);n[t].addObject(l,this._map.project(l._cLatLng,t)),s.__parent=l,e.__parent=l;var u=l;for(o=t-1;o>c._zoom;o--)u=new this._markerCluster(this,o,u),n[o].addObject(u,this._map.project(s.getLatLng(),o));c._addChild(u),this._removeFromGridUnclustered(s,t);return}r[t].addObject(e,a)}this._topClusterLevel._addChild(e),e.__parent=this._topClusterLevel},_refreshClustersIcons:function(){this._featureGroup.eachLayer(function(e){e instanceof L.MarkerCluster&&e._iconNeedsUpdate&&e._updateIcon()})},_enqueue:function(e){this._queue.push(e),this._queueTimeout||=setTimeout(L.bind(this._processQueue,this),300)},_processQueue:function(){for(var e=0;e<this._queue.length;e++)this._queue[e].call(this);this._queue.length=0,clearTimeout(this._queueTimeout),this._queueTimeout=null},_mergeSplitClusters:function(){var e=Math.round(this._map._zoom);this._processQueue(),this._zoom<e&&this._currentShownBounds.intersects(this._getExpandedVisibleBounds())?(this._animationStart(),this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),this._zoom,this._getExpandedVisibleBounds()),this._animationZoomIn(this._zoom,e)):this._zoom>e?(this._animationStart(),this._animationZoomOut(this._zoom,e)):this._moveEnd()},_getExpandedVisibleBounds:function(){return this.options.removeOutsideVisibleBounds?L.Browser.mobile?this._checkBoundsMaxLat(this._map.getBounds()):this._checkBoundsMaxLat(this._map.getBounds().pad(1)):this._mapBoundsInfinite},_checkBoundsMaxLat:function(e){var t=this._maxLat;return t!==void 0&&(e.getNorth()>=t&&(e._northEast.lat=1/0),e.getSouth()<=-t&&(e._southWest.lat=-1/0)),e},_animationAddLayerNonAnimated:function(e,t){if(t===e)this._featureGroup.addLayer(e);else if(t._childCount===2){t._addToMap();var n=t.getAllChildMarkers();this._featureGroup.removeLayer(n[0]),this._featureGroup.removeLayer(n[1])}else t._updateIcon()},_extractNonGroupLayers:function(e,t){var n=e.getLayers(),r=0,i;for(t||=[];r<n.length;r++){if(i=n[r],i instanceof L.LayerGroup){this._extractNonGroupLayers(i,t);continue}t.push(i)}return t}
1,_overrideMarkerIcon:function(e){return e.options.icon=this.options.iconCreateFunction({getChildCount:function(){return 1},getAllChildMarkers:function(){return[e]}})}});L.MarkerClusterGroup.include({_mapBoundsInfinite:new L.LatLngBounds(new L.LatLng(-1/0,-1/0),new L.LatLng(1/0,1/0))}),L.MarkerClusterGroup.include({_noAnimation:{_animationStart:function(){},_animationZoomIn:function(e,t){this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),e),this._topClusterLevel._recursivelyAddChildrenToMap(null,t,this._getExpandedVisibleBounds()),this.fire(`animationend`)},_animationZoomOut:function(e,t){this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),e),this._topClusterLevel._recursivelyAddChildrenToMap(null,t,this._getExpandedVisibleBounds()),this.fire(`animationend`)},_animationAddLayer:function(e,t){this._animationAddLayerNonAnimated(e,t)}},_withAnimation:{_animationStart:function(){this._map._mapPane.className+=` leaflet-cluster-anim`,this._inZoomAnimation++},_animationZoomIn:function(e,t){var n=this._getExpandedVisibleBounds(),r=this._featureGroup,i=Math.floor(this._map.getMinZoom()),a;this._ignoreMove=!0,this._topClusterLevel._recursively(n,e,i,function(i){var o=i._latlng,s=i._markers,c;for(n.contains(o)||(o=null),i._isSingleParent()&&e+1===t?(r.removeLayer(i),i._recursivelyAddChildrenToMap(null,t,n)):(i.clusterHide(),i._recursivelyAddChildrenToMap(o,t,n)),a=s.length-1;a>=0;a--)c=s[a],n.contains(c._latlng)||r.removeLayer(c)}),this._forceLayout(),this._topClusterLevel._recursivelyBecomeVisible(n,t),r.eachLayer(function(e){!(e instanceof L.MarkerCluster)&&e._icon&&e.clusterShow()}),this._topClusterLevel._recursively(n,e,t,function(e){e._recursivelyRestoreChildPositions(t)}),this._ignoreMove=!1,this._enqueue(function(){this._topClusterLevel._recursively(n,e,i,function(e){r.removeLayer(e),e.clusterShow()}),this._animationEnd()})},_animationZoomOut:function(e,t){this._animationZoomOutSingle(this._topClusterLevel,e-1,t),this._topClusterLevel._recursivelyAddChildrenToMap(null,t,this._getExpandedVisibleBounds()),this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),e,this._getExpandedVisibleBounds())},_animationAddLayer:function(e,t){var n=this,r=this._featureGroup;r.addLayer(e),t!==e&&(t._childCount>2?(t._updateIcon(),this._forceLayout(),this._animationStart(),e._setPos(this._map.latLngToLayerPoint(t.getLatLng())),e.clusterHide(),this._enqueue(function(){r.removeLayer(e),e.clusterShow(),n._animationEnd()})):(this._forceLayout(),n._animationStart(),n._animationZoomOutSingle(t,this._map.getMaxZoom(),this._zoom)))}},_animationZoomOutSingle:function(e,t,n){var r=this._getExpandedVisibleBounds(),i=Math.floor(this._map.getMinZoom());e._recursivelyAnimateChildrenInAndAddSelfToMap(r,i,t+1,n);var a=this;this._forceLayout(),e._recursivelyBecomeVisible(r,n),this._enqueue(function(){if(e._childCount===1){var o=e._markers[0];this._ignoreMove=!0,o.setLatLng(o.getLatLng()),this._ignoreMove=!1,o.clusterShow&&o.clusterShow()}else e._recursively(r,n,i,function(e){e._recursivelyRemoveChildrenFromMap(r,i,t+1)});a._animationEnd()})},_animationEnd:function(){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(e){return new L.MarkerClusterGroup(e)};var n=L.MarkerCluster=L.Marker.extend({options:L.Icon.prototype.options,initialize:function(e,t,n,r){L.Marker.prototype.initialize.call(this,n?n._cLatLng||n.getLatLng():new L.LatLng(0,0),{icon:this,pane:e.options.clusterPane}),this._group=e,this._zoom=t,this._markers=[],this._childClusters=[],this._childCount=0,this._iconNeedsUpdate=!0,this._boundsNeedUpdate=!0,this._bounds=new L.LatLngBounds,n&&this._addChild(n),r&&this._addChild(r)},getAllChildMarkers:function(e,t){e||=[];for(var n=this._childClusters.length-1;n>=0;n--)this._childClusters[n].getAllChildMarkers(e,t);for(var r=this._markers.length-1;r>=0;r--)t&&this._markers[r].__dragStart||e.push(this._markers[r]);return e},getChildCount:function(){return this._childCount},zoomToBounds:function(e){for(var t=this._childClusters.slice(),n=this._group._map,r=n.getBoundsZoom(this._bounds),i=this._zoom+1,a=n.getZoom(),o;t.length>0&&r>i;){i++;var s=[];for(o=0;o<t.length;o++)s=s.concat(t[o]._childClusters);t=s}r>
1i?this._group._map.setView(this._latlng,i):r<=a?this._group._map.setView(this._latlng,a+1):this._group._map.fitBounds(this._bounds,e)},getBounds:function(){var e=new L.LatLngBounds;return e.extend(this._bounds),e},_updateIcon:function(){this._iconNeedsUpdate=!0,this._icon&&this.setIcon(this)},createIcon:function(){return this._iconNeedsUpdate&&=(this._iconObj=this._group.options.iconCreateFunction(this),!1),this._iconObj.createIcon()},createShadow:function(){return this._iconObj.createShadow()},_addChild:function(e,t){this._iconNeedsUpdate=!0,this._boundsNeedUpdate=!0,this._setClusterCenter(e),e instanceof L.MarkerCluster?(t||(this._childClusters.push(e),e.__parent=this),this._childCount+=e._childCount):(t||this._markers.push(e),this._childCount++),this.__parent&&this.__parent._addChild(e,!0)},_setClusterCenter:function(e){this._cLatLng||=e._cLatLng||e._latlng},_resetBounds:function(){var e=this._bounds;e._southWest&&(e._southWest.lat=1/0,e._southWest.lng=1/0),e._northEast&&(e._northEast.lat=-1/0,e._northEast.lng=-1/0)},_recalculateBounds:function(){var e=this._markers,t=this._childClusters,n=0,r=0,i=this._childCount,a,o,s,c;if(i!==0){for(this._resetBounds(),a=0;a<e.length;a++)s=e[a]._latlng,this._bounds.extend(s),n+=s.lat,r+=s.lng;for(a=0;a<t.length;a++)o=t[a],o._boundsNeedUpdate&&o._recalculateBounds(),this._bounds.extend(o._bounds),s=o._wLatLng,c=o._childCount,n+=s.lat*c,r+=s.lng*c;this._latlng=this._wLatLng=new L.LatLng(n/i,r/i),this._boundsNeedUpdate=!1}},_addToMap:function(e){e&&(this._backupLatlng=this._latlng,this.setLatLng(e)),this._group._featureGroup.addLayer(this)},_recursivelyAnimateChildrenIn:function(e,t,n){this._recursively(e,this._group._map.getMinZoom(),n-1,function(e){for(var n=e._markers,r=n.length-1,i;r>=0;r--)i=n[r],i._icon&&(i._setPos(t),i.clusterHide())},function(e){for(var n=e._childClusters,r=n.length-1,i;r>=0;r--)i=n[r],i._icon&&(i._setPos(t),i.clusterHide())})},_recursivelyAnimateChildrenInAndAddSelfToMap:function(e,t,n,r){this._recursively(e,r,t,function(i){i._recursivelyAnimateChildrenIn(e,i._group._map.latLngToLayerPoint(i.getLatLng()).round(),n),i._isSingleParent()&&n-1===r?(i.clusterShow(),i._recursivelyRemoveChildrenFromMap(e,t,n)):i.clusterHide(),i._addToMap()})},_recursivelyBecomeVisible:function(e,t){this._recursively(e,this._group._map.getMinZoom(),t,null,function(e){e.clusterShow()})},_recursivelyAddChildrenToMap:function(e,t,n){this._recursively(n,this._group._map.getMinZoom()-1,t,function(r){if(t!==r._zoom)for(var i=r._markers.length-1;i>=0;i--){var a=r._markers[i];n.contains(a._latlng)&&(e&&(a._backupLatlng=a.getLatLng(),a.setLatLng(e),a.clusterHide&&a.clusterHide()),r._group._featureGroup.addLayer(a))}},function(t){t._addToMap(e)})},_recursivelyRestoreChildPositions:function(e){for(var t=this._markers.length-1;t>=0;t--){var n=this._markers[t];n._backupLatlng&&(n.setLatLng(n._backupLatlng),delete n._backupLatlng)}if(e-1===this._zoom)for(var r=this._childClusters.length-1;r>=0;r--)this._childClusters[r]._restorePosition();else for(var i=this._childClusters.length-1;i>=0;i--)this._childClusters[i]._recursivelyRestoreChildPositions(e)},_restorePosition:function(){this._backupLatlng&&(this.setLatLng(this._backupLatlng),delete this._backupLatlng)},_recursivelyRemoveChildrenFromMap:function(e,t,n,r){var i,a;this._recursively(e,t-1,n-1,function(e){for(a=e._markers.length-1;a>=0;a--)i=e._markers[a],(!r||!r.contains(i._latlng))&&(e._group._featureGroup.removeLayer(i),i.clusterShow&&i.clusterShow())},function(e){for(a=e._childClusters.length-1;a>=0;a--)i=e._childClusters[a],(!r||!r.contains(i._latlng))&&(e._group._featureGroup.removeLayer(i),i.clusterShow&&i.clusterShow())})},_recursively:function(e,t,n,r,i){var a=this._childClusters,o=this._zoom,s,c;if(t<=o&&(r&&r(this),i&&o===n&&i(this)),o<t||o<n)for(s=a.length-1;s>=0;s--)c=a[s],c._boundsNeedUpdate&&c._recalculateBounds(),e.intersects(c._bounds)&&c._recursively(e,t,n,r,i)},_isSingleParent:function(){return this._childClusters.length>0&&this._childClusters[0]._childCount===this._childCount}});L.Marker.include({clusterHide:function(){var e=this.options.opacity;return this.setOpacity(0),this.options.opacity=e,this},clusterShow:function(){return this.setOpacity(this.options.opacity)}}),L.DistanceGrid=function(e){this._cellSize=e,this._sqCellSize=e*e,this._grid={},this._objectPoint={}},L.DistanceGrid.prototype={addObject:function(e,t){var n=this._getCoord(t.x),r=this._getCoord(t.y),i=this._grid,a=i[r]=i[r]||{},o=a[n]=a[n]||[],s=L.Util.stamp(e);this._objectPoint[s]=t,o.push(e)},updateObject:function(e,t){this.removeObject(e),this.addObject(e,t)},removeObject:function(e,t){var n=this._getCoord(t.x),r=this._getCoord(t.y),i=this._grid,a=i[r]=i[r]||{},o=a[n]=a[n]||[],s,c;for(delete this._objectPoint[L.Util.stamp(e)],s=0,c=o.length;s<c;s++)if(o[s]===e)return o.splice(s,1),c===1&&delete a[n],!0},eachObject:function(e,t){var n,r,i,a,o,s,c,l=this._grid;for(n in l)for(r in o=l[n],o)for(s=o[r],i=0,a=s.length;i<a;i++)c=e.call(t,s[i]),c&&(i--,a--)},getNearObject:function(e){var t=this._getCoord(e.x),n=this._getCoord(e.y),r,i,a,o,s,c,l,u,d=this._objectPoint,f=this._sqCellSize,p=null;for(r=n-1;r<=n+1;r++)if(o=this._grid[r],o){for(i=t-1;i<=t+1;i++)if(s=o[i],s)for(a=0,c=s.length;a<c;a++)l=s[a],u=this._sqDist(d[L.Util.stamp(l)],e),(u<f||u<=f&&p===null)&&(f=u,p=l)}return p},_getCoord:function(e){var t=Math.floor(e/this._cellSize);return isFinite(t)?t:e},_sqDist:function(e,t){var n=t.x-e.x,r=t.y-e.y;return n*n+r*r}},(function(){L.QuickHull={getDistant:function(e,t){var n=t[1].lat-t[0].lat;return(t[0].lng-t[1].lng)*(e.lat-t[0].lat)+n*(e.lng-t[0].lng)},findMostDistantPointFromBaseLine:function(e,t){for(var n=0,r=null,i=[],a=t.length-1,o,s;a>=0;a--){if(o=t[a],s=this.getDistant(o,e),s>0)i.push(o);else continue;s>n&&(n=s,r=o)}return{maxPoint:r,newPoints:i}},buildConvexHull:function(e,t){var n=[],r=this.findMostDistantPointFromBaseLine(e,t);return r.maxPoint?(n=n.concat(this.buildConvexHull([e[0],r.maxPoint],r.newPoints)),n=n.concat(this.buildConvexHull([r.maxPoint,e[1]],r.newPoints)),n):[e[0]]},getConvexHull:function(e){for(var t=!1,n=!1,r=!1,i=!1,a=null,o=null,s=null,c=null,l=null,u=null,d=e.length-1;d>=0;d--){var f=e[d];(t===!1||f.lat>t)&&(a=f,t=f.lat),(n===!1||f.lat<n)&&(o=f,n=f.lat),(r===!1||f.lng>r)&&(s=f,r=f.lng),(i===!1||f.lng<i)&&(c=f,i=f.lng)}return n===t?(u=c,l=s):(u=o,l=a),[].concat(this.buildConvexHull([u,l],e),this.buildConvexHull([l,u],e))}}})(),L.MarkerCluster.include({getConvexHull:function(){for(var e=this.getAllChildMarkers(),t=[],n,r=e.length-1;r>=0;r--)n=e[r].getLatLng(),t.push(n);return L.QuickHull.getConvexHull(t)}}),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)){var e=this.getAllChildMarkers(null,!0),t=this._group._map.latLngToLayerPoint(this._latlng),n;this._group._unspiderfy(),this._group._spiderfied=this,this._group.options.spiderfyShapePositions?n=this._group.options.spiderfyShapePositions(e.length,t):e.length>=this._circleSpiralSwitchover?n=this._generatePointsSpiral(e.length,t):(t.y+=10,n=this._generatePointsCircle(e.length,t)),this._animationSpiderfy(e,n)}},unspiderfy:function(e){this._group._inZoomAnimation||(this._animationUnspiderfy(e),this._group._spiderfied=null)},_generatePointsCircle:function(e,t){var n=this._group.options.spiderfyDistanceMultiplier*this._circleFootSeparation*(2+e)/this._2PI,r=this._2PI/e,i=[],a,o;for(n=Math.max(n,35),i.length=e,a=0;a<e;a++)o=this._circleStartAngle+a*r,i[a]=new L.Point(t.x+n*Math.cos(o),t.y+n*Math.sin(o))._round();return i},_generatePointsSpiral:function(e,t){var n=this._group.options.spiderfyDistanceMultiplier,r=n*this._spiralLengthStart,i=n*this._spiralFootSeparation,a=n*this._spiralLengthFactor*this._2PI,o=0,s=[],c;for(s.length=e,c=e;c>=0;c--)c<e&&(s[c]=new L.Point(t.x+r*Math.cos(o),t.y+r*Math.sin(o))._round()),o+=i/r+c*5e-4,r+=a/o;return s},_noanimationUnspiderfy:function(){var e=this._group,t=e._map,n=e._featureGroup,r=this.getAllChildMarkers(null,!0),i,a;for(e._ignoreMove=!0,this.setOpacity(1),a=r.length-1;a>=0;a--)i=r[a],n.removeLayer(i),i._preSpiderfyLatlng&&(i.setLatLng(i._preSpiderfyLatlng),delete i._preSpiderfyLatlng),i.setZIndexOffset&&i.setZIndexOffset(0),i._spiderLeg&&(t.removeLayer(i._spiderLeg),delete i._spiderLeg);e.fire(`unspiderfied`,{cluster:this,markers:r}),e._ignoreMove=!1,e._spiderfied=null}}),L.MarkerClusterNonAnimated=L.MarkerCluster.extend({_animationSpiderfy:function(e,t){var n=this._group,r=n._map,i=n._featureGroup,a=this._group.options.spiderLegPolylineOptions,o,s,c,l;
vendor: 8,731 bytes, line 1
1for(n._ignoreMove=!0,o=0;o<e.length;o++)l=r.layerPointToLatLng(t[o]),s=e[o],c=new L.Polyline([this._latlng,l],a),r.addLayer(c),s._spiderLeg=c,s._preSpiderfyLatlng=s._latlng,s.setLatLng(l),s.setZIndexOffset&&s.setZIndexOffset(1e6),i.addLayer(s);this.setOpacity(.3),n._ignoreMove=!1,n.fire(`spiderfied`,{cluster:this,markers:e})},_animationUnspiderfy:function(){this._noanimationUnspiderfy()}}),L.MarkerCluster.include({_animationSpiderfy:function(e,t){var n=this,r=this._group,i=r._map,a=r._featureGroup,o=this._latlng,s=i.latLngToLayerPoint(o),c=L.Path.SVG,l=L.extend({},this._group.options.spiderLegPolylineOptions),u=l.opacity,d,f,p,m,h,g;for(u===void 0&&(u=L.MarkerClusterGroup.prototype.options.spiderLegPolylineOptions.opacity),c?(l.opacity=0,l.className=(l.className||``)+` leaflet-cluster-spider-leg`):l.opacity=u,r._ignoreMove=!0,d=0;d<e.length;d++)f=e[d],g=i.layerPointToLatLng(t[d]),p=new L.Polyline([o,g],l),i.addLayer(p),f._spiderLeg=p,c&&(m=p._path,h=m.getTotalLength()+.1,m.style.strokeDasharray=h,m.style.strokeDashoffset=h),f.setZIndexOffset&&f.setZIndexOffset(1e6),f.clusterHide&&f.clusterHide(),a.addLayer(f),f._setPos&&f._setPos(s);for(r._forceLayout(),r._animationStart(),d=e.length-1;d>=0;d--)g=i.layerPointToLatLng(t[d]),f=e[d],f._preSpiderfyLatlng=f._latlng,f.setLatLng(g),f.clusterShow&&f.clusterShow(),c&&(p=f._spiderLeg,m=p._path,m.style.strokeDashoffset=0,p.setStyle({opacity:u}));this.setOpacity(.3),r._ignoreMove=!1,setTimeout(function(){r._animationEnd(),r.fire(`spiderfied`,{cluster:n,markers:e})},200)},_animationUnspiderfy:function(e){var t=this,n=this._group,r=n._map,i=n._featureGroup,a=e?r._latLngToNewLayerPoint(this._latlng,e.zoom,e.center):r.latLngToLayerPoint(this._latlng),o=this.getAllChildMarkers(null,!0),s=L.Path.SVG,c,l,u,d,f,p;for(n._ignoreMove=!0,n._animationStart(),this.setOpacity(1),l=o.length-1;l>=0;l--)c=o[l],c._preSpiderfyLatlng&&(c.closePopup(),c.setLatLng(c._preSpiderfyLatlng),delete c._preSpiderfyLatlng,p=!0,c._setPos&&(c._setPos(a),p=!1),c.clusterHide&&(c.clusterHide(),p=!1),p&&i.removeLayer(c),s&&(u=c._spiderLeg,d=u._path,f=d.getTotalLength()+.1,d.style.strokeDashoffset=f,u.setStyle({opacity:0})));n._ignoreMove=!1,setTimeout(function(){var e=0;for(l=o.length-1;l>=0;l--)c=o[l],c._spiderLeg&&e++;for(l=o.length-1;l>=0;l--)c=o[l],c._spiderLeg&&(c.clusterShow&&c.clusterShow(),c.setZIndexOffset&&c.setZIndexOffset(0),e>1&&i.removeLayer(c),r.removeLayer(c._spiderLeg),delete c._spiderLeg);n._animationEnd(),n.fire(`unspiderfied`,{cluster:t,markers:o})},200)}}),L.MarkerClusterGroup.include({_spiderfied:null,unspiderfy:function(){this._unspiderfy.apply(this,arguments)},_spiderfierOnAdd:function(){this._map.on(`click`,this._unspiderfyWrapper,this),this._map.options.zoomAnimation&&this._map.on(`zoomstart`,this._unspiderfyZoomStart,this),this._map.on(`zoomend`,this._noanimationUnspiderfy,this),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(){this._map&&this._map.on(`zoomanim`,this._unspiderfyZoomAnim,this)},_unspiderfyZoomAnim:function(e){L.DomUtil.hasClass(this._map._mapPane,`leaflet-touching`)||(this._map.off(`zoomanim`,this._unspiderfyZoomAnim,this),this._unspiderfy(e))},_unspiderfyWrapper:function(){this._unspiderfy()},_unspiderfy:function(e){this._spiderfied&&this._spiderfied.unspiderfy(e)},_noanimationUnspiderfy:function(){this._spiderfied&&this._spiderfied._noanimationUnspiderfy()},_unspiderfyLayer:function(e){e._spiderLeg&&(this._featureGroup.removeLayer(e),e.clusterShow&&e.clusterShow(),e.setZIndexOffset&&e.setZIndexOffset(0),this._map.removeLayer(e._spiderLeg),delete e._spiderLeg)}}),L.MarkerClusterGroup.include({refreshClusters:function(e){return e?e instanceof L.MarkerClusterGroup?e=e._topClusterLevel.getAllChildMarkers():e instanceof L.LayerGroup?e=e._layers:e instanceof L.MarkerCluster?e=e.getAllChildMarkers():e instanceof L.Marker&&(e=[e]):e=this._topClusterLevel.getAllChildMarkers(),this._flagParentsIconsNeedUpdate(e),this._refreshClustersIcons(),this.options.singleMarkerMode&&this._refreshSingleMarkerModeMarkers(e),this},_flagParentsIconsNeedUpdate:function(e){var t,n;for(t in e)for(n=e[t].__parent;n;)n._iconNeedsUpdate=!0,n=n.__parent},_refreshSingleMarkerModeMarkers:function(e){var t,n;for(t in e)n=e[t],this.hasLayer(n)&&n.setIcon(this._overrideMarkerIcon(n))}}),L.Marker.include({refreshIconOptions:function(e,t){var n=this.options.icon;return L.setOptions(n,e),this.setIcon(n),t&&this.__parent&&this.__parent._group.refreshClusters(this),this}}),e.MarkerClusterGroup=t,e.MarkerCluster=n,Object.defineProperty(e,"__esModule",{value:!0})})}))();var r=JSON.parse(`{"type":"FeatureCollection","features":[{"type":"Feature","properties":{"id":"1","name":"San José","label":[9.68,-84.02]},"geometry":{"type":"MultiPolygon","coordinates":[[[[-83.9569,9.94967],[-84.00846,9.9399],[-84.0052,9.92474],[-84.01756,9.9066],[-84.01578,9.89949],[-84.02748,9.89379],[-84.042,9.89706],[-84.03332,9.88428],[-83.9992,9.87629],[-83.99971,9.86785],[-84.01709,9.85468],[-84.01677,9.84449],[-84.0254,9.83996],[-84.03059,9.82431],[-84.07569,9.80175],[-84.08893,9.76956],[-84.07139,9.76394],[-84.05843,9.76764],[-84.03172,9.76438],[-84.00242,9.77885],[-83.99983,9.78527],[-83.99238,9.78397],[-83.988,9.77176],[-83.98188,9.76975],[-83.97972,9.74547],[-83.95116,9.73964],[-83.94488,9.69987],[-83.92689,9.69495],[-83.92134,9.68286],[-83.901,9.68909],[-83.88662,9.66991],[-83.85793,9.67227],[-83.84619,9.6494],[-83.85078,9.62548],[-83.76416,9.60378],[-83.75789,9.59294],[-83.76354,9.58404],[-83.75404,9.56089],[-83.72856,9.56005],[-83.71798,9.55167],[-83.70972,9.5583],[-83.68303,9.55147],[-83.65362,9.58383],[-83.63671,9.58185],[-83.61864,9.55759],[-83.59647,9.55264],[-83.59447,9.54584],[-83.57204,9.53498],[-83.55016,9.53233],[-83.53488,9.50988],[-83.48947,9.48508],[-83.47879,9.45041],[-83.48239,9.42791],[-83.4736,9.42098],[-83.45812,9.38258],[-83.42974,9.36748],[-83.45411,9.34424],[-83.49118,9.2677],[-83.50649,9.26207],[-83.51552,9.22481],[-83.52618,9.21137],[-83.52283,9.2085],[-83.51735,9.21549],[-83.51276,9.20025],[-83.50408,9.20243],[-83.49049,9.19266],[-83.48856,9.19952],[-83.48351,9.19706],[-83.48228,9.18737],[-83.47407,9.18184],[-83.47809,9.17082],[-83.47085,9.16012],[-83.47147,9.15257],[-83.48041,9.15215],[-83.48311,9.14539],[-83.48273,9.13321],[-83.47347,9.11937],[-83.51045,9.09208],[-83.50332,9.08447],[-83.50702,9.07787],[-83.51441,9.07504],[-83.52865,9.08214],[-83.54304,9.07885],[-83.56948,9.08609],[-83.61424,9.1254],[-83.64717,9.132],[-83.65452,9.14504],[-83.67387,9.15823],[-83.67761,9.17518],[-83.66968,9.18166],[-83.67519,9.19327],[-83.68587,9.20908],[-83.70154,9.21524],[-83.70626,9.22539],[-83.71108,9.22069],[-83.7369,9.22318],[-83.74774,9.24422],[-83.7574,9.24433],[-83.76086,9.23824],[-83.75295,9.22226],[-83.76126,9.21628],[-83.7701,9.21755],[-83.80995,9.22904],[-83.81935,9.2422],[-83.84289,9.25672],[-83.85823,9.29141],[-83.85479,9.30227],[-83.86022,9.30837],[-83.84131,9.3414],[-83.86492,9.34308],[-83.87066,9.35485],[-83.89144,9.3627],[-83.90073,9.39767],[-83.90923,9.40536],[-83.92405,9.40371],[-83.94047,9.38778],[-83.9454,9.39533],[-83.96384,9.39827],[-83.96251,9.41071],[-83.98044,9.42217],[-83.98272,9.4326],[-83.99853,9.43946],[-84.00167,9.45021],[-84.02771,9.46196],[-84.0642,9.49938],[-84.07484,9.50266],[-84.0789,9.51345],[-84.08762,9.51012],[-84.0742,9.51855],[-84.06943,9.53065],[-84.07664,9.55836],[-84.07252,9.57102],[-84.08301,9.56378],[-84.09951,9.56934],[-84.12074,9.55481],[-84.12919,9.57023],[-84.1428,9.58016],[-84.14248,9.61122],[-84.14986,9.62998],[-84.18444,9.62399],[-84.19102,9.61761],[-84.2174,9.62116],[-84.22523,9.62851],[-84.23908,9.62312],[-84.27011,9.6319],[-84.27939,9.6289],[-84.28867,9.63812],[-84.29646,9.63463],[-84.29519,9.64554],[-84.30481,9.65325],[-84.31758,9.6398],[-84.3337,9.63898],[-84.34505,9.6302],[-84.35195,9.63926],[-84.36621,9.63166],[-84.37658,9.63975],[-84.3834,9.63315],[-84.38775,9.63892],[-84.39711,9.63704],[-84.39459,9.62021],[-84.39903,9.61352],[-84.39255,9.60054],[-84.40258,9.58258],[-84.41229,9.58345],[-84.42879,9.55896],[-84.45111,9.5768],[-84.46205,9.57735],[-84.465,9.57046],[-84.48253,9.57708],[-84.48572,9.56999],[-84.53043,9.57519],[-84.52994,9.57966],[-84.54979,9.59317],[-84.5509,9.61788],[-84.55626,9.62711],[-84.5649,9.6282],[-84.58069,9.66562],[-84.58561,9.68365],[-84.58364,9.70994],[-84.59287,9.74358],[-84.57214,9.74008],[-84.56603,9.75912],[-84.55368,9.75624],[-84.53899,9.77739],[-84.55827,9.78423],[-84.56828,9.8
11039],[-84.58325,9.80628],[-84.58318,9.82197],[-84.561,9.83264],[-84.56319,9.84216],[-84.55568,9.84922],[-84.54788,9.84807],[-84.54852,9.86239],[-84.53793,9.86348],[-84.54302,9.87516],[-84.5337,9.87343],[-84.51353,9.89325],[-84.50596,9.89024],[-84.49875,9.91152],[-84.49522,9.90733],[-84.48163,9.91099],[-84.46253,9.92462],[-84.43646,9.9209],[-84.42377,9.92564],[-84.4205,9.92057],[-84.41353,9.92883],[-84.39411,9.93092],[-84.39397,9.93626],[-84.37364,9.92614],[-84.36648,9.92935],[-84.34905,9.91662],[-84.32891,9.91439],[-84.29373,9.93069],[-84.26108,9.93282],[-84.25208,9.92791],[-84.23648,9.93828],[-84.23137,9.94864],[-84.22057,9.9484],[-84.21328,9.9632],[-84.20262,9.9622],[-84.19059,9.97329],[-84.18295,9.96875],[-84.17383,9.97213],[-84.16841,9.96575],[-84.15576,9.96951],[-84.14586,9.96254],[-84.13373,9.96758],[-84.11411,9.9598],[-84.09399,9.96307],[-84.08306,9.97097],[-84.06936,9.96694],[-84.05685,9.97056],[-84.04343,9.98721],[-84.02581,9.99267],[-84.02333,10.01405],[-84.01139,10.02676],[-84.01485,10.04762],[-84.02859,10.06036],[-84.02851,10.08295],[-84.01565,10.0796],[-83.98026,10.10293],[-83.97951,10.1483],[-83.97261,10.1694],[-83.93033,10.18992],[-83.94753,10.14716],[-83.93198,10.08404],[-83.89588,10.06112],[-83.88128,10.04386],[-83.87531,10.03419],[-83.87723,10.02065],[-83.86697,10.00292],[-83.86802,9.99082],[-83.8588,9.9737],[-83.89907,9.96868],[-83.92114,9.95215],[-83.93183,9.95184],[-83.93882,9.95852],[-83.95616,9.95051],[-83.9569,9.94967]]]]}},{"type":"Feature","properties":{"id":"2","name":"Alajuela","label":[10.52,-84.72]},"geometry":{"type":"MultiPolygon","coordinates":[[[[-84.46253,9.92462],[-84.48163,9.91099],[-84.49522,9.90733],[-84.49875,9.91152],[-84.50596,9.89024],[-84.51353,9.89325],[-84.5337,9.87343],[-84.54302,9.87516],[-84.53821,9.86233],[-84.54852,9.86239],[-84.54788,9.84807],[-84.55568,9.84922],[-84.56319,9.84216],[-84.57488,9.84601],[-84.5912,9.84091],[-84.60016,9.8493],[-84.597,9.85792],[-84.60341,9.86221],[-84.64782,9.86518],[-84.64763,9.87018],[-84.67143,9.87886],[-84.68159,9.87529],[-84.68369,9.88815],[-84.6892,9.88635],[-84.68433,9.89408],[-84.6894,9.90422],[-84.67142,9.91204],[-84.66813,9.92265],[-84.65827,9.92944],[-84.66222,9.93338],[-84.6537,9.93494],[-84.65012,9.94404],[-84.63992,9.94039],[-84.63309,9.94998],[-84.61581,9.95198],[-84.58976,9.97925],[-84.57107,9.98672],[-84.56895,9.98137],[-84.56062,9.98128],[-84.55336,9.98772],[-84.56436,10.01585],[-84.56388,10.02912],[-84.57271,10.01955],[-84.60299,10.04418],[-84.62478,10.04748],[-84.63185,10.07113],[-84.64829,10.08716],[-84.65114,10.09969],[-84.67138,10.12863],[-84.67367,10.14021],[-84.66552,10.14693],[-84.67042,10.15584],[-84.6597,10.18961],[-84.66451,10.20565],[-84.66214,10.22536],[-84.65669,10.23452],[-84.6746,10.2798],[-84.68561,10.28464],[-84.70227,10.26339],[-84.72311,10.26861],[-84.72425,10.25562],[-84.73356,10.25078],[-84.76594,10.2626],[-84.76729,10.27989],[-84.78263,10.29183],[-84.79434,10.32095],[-84.78729,10.3222],[-84.77473,10.35034],[-84.76669,10.35558],[-84.77158,10.37472],[-84.78198,10.38534],[-84.76666,10.41882],[-84.77451,10.49748],[-84.79325,10.49119],[-84.79642,10.5003],[-84.8209,10.51443],[-84.82183,10.52594],[-84.8368,10.52394],[-84.84639,10.53258],[-84.84489,10.54642],[-84.85219,10.54644],[-84.87043,10.56238],[-84.89008,10.55997],[-84.90374,10.57084],[-84.92578,10.57385],[-84.92977,10.58354],[-84.93951,10.58577],[-84.94523,10.59533],[-84.95578,10.59457],[-84.976,10.60645],[-84.9856,10.60499],[-84.98877,10.61883],[-85.00192,10.62568],[-85.00104,10.65577],[-85.02,10.67429],[-85.02692,10.69351],[-85.05481,10.69756],[-85.06076,10.70908],[-85.09722,10.71808],[-85.12461,10.71077],[-85.12916,10.73269],[-85.14484,10.7481],[-85.18265,10.74638],[-85.23591,10.76692],[-85.27772,10.75137],[-85.30589,10.80056],[-85.34935,10.82735],[-85.36634,10.82728],[-85.37796,10.83541],[-85.39508,10.86499],[-85.4345,10.89882],[-85.43646,10.90791],[-85.44771,10.91738],[-85.44947,10.93476],[-85.42078,10.96475],[-85.40504,10.96194],[-85.38265,10.97139],[-85.37876,10.99442],[-85.36712,10.99904],[-85.36958,11.00475],[-85.35783,11.01894],[-85.35452,11.033],[-85.31173,11.04289],[-85.29021,11.02251],[-85.2852,11.0249],[-85.27748,11.01491],[-85.26327,11.01267],[-85.2585,
111.02046],[-85.26368,11.0431],[-85.25178,11.04939],[-85.24941,11.06153],[-85.23557,11.06574],[-84.91103,10.94423],[-84.68053,11.08451],[-84.60642,11.03869],[-84.57495,11.05146],[-84.56475,11.0335],[-84.48645,11.00094],[-84.45102,10.96119],[-84.4208,10.95535],[-84.4003,10.97531],[-84.37687,10.97765],[-84.35884,10.99624],[-84.34149,10.97248],[-84.35158,10.95164],[-84.33667,10.94622],[-84.32472,10.91955],[-84.29983,10.91652],[-84.28289,10.89364],[-84.25787,10.89145],[-84.2251,10.87183],[-84.21555,10.8393],[-84.22102,10.82478],[-84.23743,10.82019],[-84.23817,10.81571],[-84.22358,10.80138],[-84.20744,10.79893],[-84.20267,10.78189],[-84.19122,10.79017],[-84.16138,10.78561],[-84.16161,10.08329],[-84.17401,10.00552],[-84.19873,9.99221],[-84.19468,9.97811],[-84.20045,9.97634],[-84.20012,9.96818],[-84.19038,9.97498],[-84.18379,9.97323],[-84.20344,9.96184],[-84.21328,9.9632],[-84.22057,9.9484],[-84.23137,9.94864],[-84.23648,9.93828],[-84.25208,9.92791],[-84.26108,9.93282],[-84.29373,9.93069],[-84.32891,9.91439],[-84.34905,9.91662],[-84.36648,9.92935],[-84.37364,9.92614],[-84.38944,9.93638],[-84.39454,9.93072],[-84.41353,9.92883],[-84.42094,9.92049],[-84.42377,9.92564],[-84.43646,9.9209],[-84.46227,9.92439],[-84.46253,9.92462]]]]}},{"type":"Feature","properties":{"id":"3","name":"Cartago","label":[9.74,-83.7]},"geometry":{"type":"MultiPolygon","coordinates":[[[[-84.00811,9.93909],[-83.96936,9.94378],[-83.96365,9.95047],[-83.93882,9.95852],[-83.93183,9.95184],[-83.92114,9.95215],[-83.89907,9.96868],[-83.8588,9.9737],[-83.86802,9.99082],[-83.86697,10.00292],[-83.87723,10.02065],[-83.87531,10.03419],[-83.88128,10.04386],[-83.89588,10.06112],[-83.93168,10.08332],[-83.94753,10.14716],[-83.72167,10.03829],[-83.70811,10.04115],[-83.66906,10.02497],[-83.63979,10.01043],[-83.61806,9.98818],[-83.60361,9.982],[-83.31209,9.98181],[-83.3409,9.95659],[-83.33864,9.94256],[-83.34858,9.93632],[-83.35345,9.93867],[-83.34542,9.9167],[-83.34979,9.90355],[-83.34438,9.90015],[-83.3482,9.89858],[-83.33515,9.88544],[-83.33984,9.85905],[-83.33239,9.8441],[-83.33852,9.83283],[-83.33662,9.82346],[-83.38366,9.76752],[-83.39519,9.74398],[-83.42985,9.70646],[-83.4285,9.67983],[-83.44737,9.65342],[-83.46344,9.64326],[-83.46806,9.63357],[-83.4826,9.62827],[-83.512,9.59714],[-83.50484,9.58365],[-83.51373,9.5675],[-83.51567,9.53558],[-83.49697,9.52234],[-83.48729,9.49867],[-83.48947,9.48508],[-83.53488,9.50988],[-83.55016,9.53233],[-83.57204,9.53498],[-83.59447,9.54584],[-83.59647,9.55264],[-83.61864,9.55759],[-83.63671,9.58185],[-83.65362,9.58383],[-83.68303,9.55147],[-83.70972,9.5583],[-83.71798,9.55167],[-83.72856,9.56005],[-83.75404,9.56089],[-83.76354,9.58404],[-83.75789,9.59294],[-83.76416,9.60378],[-83.85078,9.62548],[-83.84619,9.6494],[-83.85793,9.67227],[-83.88662,9.66991],[-83.901,9.68909],[-83.92134,9.68286],[-83.92689,9.69495],[-83.94488,9.69987],[-83.95116,9.73964],[-83.97972,9.74547],[-83.98188,9.76975],[-83.988,9.77176],[-83.99238,9.78397],[-83.99983,9.78527],[-84.00242,9.77885],[-84.03172,9.76438],[-84.05843,9.76764],[-84.07139,9.76394],[-84.08893,9.76956],[-84.07569,9.80175],[-84.03059,9.82431],[-84.0254,9.83996],[-84.01677,9.84449],[-84.01709,9.85468],[-83.99971,9.86785],[-83.9992,9.87629],[-84.03332,9.88428],[-84.04204,9.89636],[-84.02748,9.89379],[-84.01578,9.89949],[-84.01807,9.90521],[-84.0052,9.92474],[-84.00624,9.93313],[-84.00811,9.93909]]]]}},{"type":"Feature","properties":{"id":"4","name":"Heredia","label":[10.32,-84.08]},"geometry":{"type":"MultiPolygon","coordinates":[[[[-84.17416,10.00603],[-84.16161,10.08329],[-84.16138,10.78561],[-84.13624,10.78742],[-84.12709,10.76513],[-84.11707,10.76503],[-84.1053,10.7746],[-84.08053,10.75876],[-84.06268,10.76388],[-84.06228,10.77371],[-84.05526,10.77882],[-84.03628,10.77158],[-84.03169,10.7883],[-84.02235,10.79215],[-84.00785,10.76831],[-83.97241,10.74569],[-83.96824,10.73011],[-83.93867,10.72173],[-83.9326,10.70769],[-83.89134,10.72193],[-83.8645,10.71734],[-83.84086,10.74381],[-83.8265,10.74878],[-83.81201,10.7465],[-83.79327,10.76957],[-83.76036,10.77431],[-83.74813,10.76563],[-83.7331,10.73969],[-83.74093,10.73009],[-83.73989,10.72159],[-83.71681,10.70352],[-83.71093,10.69257],[-83.74237,10.69285],[-83.76501,10.69963],[-83.78459,10.67558],[-83.7882,10.65748],[-83.84084,10.64102],[-83.84594,10.60379],[-83.83667,10.58995],[-83.84758,10.55079],[-83.8382,10.53203],[-83.83957,10.51181],[-83.82832,10.49389],[-83.83884,10.47511],[-83.83073,10.46298],[-83.8448,10.44516],[-83.85764,10.44606],[-83.8602,10.43776],[-83.87375,10.42931],[-83.88077,10.40456],[-83.85074,10.35422],[-83.84872,10.33581],[-83.85451,10.31817],[-83.85053,10.28238],[-83.85755,10.25552],[-83.91919,10.19636],[-83.97261,10.1694],[-83.97951,10.1483],[-83.98026,10.10293],[-84.01565,10.0796],[-84.02851,10.08295],[-84.02859,10.06036],[-84.0167,10.05075],[-84.01073,10.03675],[
1-84.01308,10.0218],[-84.02333,10.01405],[-84.02609,9.99236],[-84.04343,9.98721],[-84.04441,9.98094],[-84.06097,9.96894],[-84.08306,9.97097],[-84.10742,9.96062],[-84.13373,9.96758],[-84.14586,9.96254],[-84.15576,9.96951],[-84.16841,9.96575],[-84.17383,9.97213],[-84.18295,9.96875],[-84.19038,9.97498],[-84.20012,9.96818],[-84.20045,9.97634],[-84.19468,9.97811],[-84.19873,9.99221],[-84.17418,10.00569],[-84.17416,10.00603]]]]}},{"type":"Feature","properties":{"id":"5","name":"Guanacaste","label":[10.45,-85.4]},"geometry":{"type":"MultiPolygon","coordinates":[[[[-85.19051,10.05529],[-85.19282,10.04833],[-85.19942,10.05044],[-85.19724,10.04479],[-85.18924,10.04436],[-85.18642,10.03711],[-85.19106,10.03642],[-85.17757,10.03402],[-85.18705,10.02187],[-85.16923,10.0339],[-85.17136,10.01993],[-85.16419,10.01892],[-85.17426,10.01592],[-85.16441,10.0173],[-85.17073,10.00973],[-85.16116,9.98782],[-85.18628,9.97055],[-85.21889,9.97254],[-85.23686,9.96758],[-85.24749,9.97295],[-85.25434,9.96432],[-85.26844,9.96352],[-85.27338,9.95139],[-85.269,9.93707],[-85.28007,9.92173],[-85.27735,9.91561],[-85.27241,9.91927],[-85.25095,9.90916],[-85.23191,9.90716],[-85.22378,9.89943],[-85.21682,9.9019],[-85.21483,9.89029],[-85.20483,9.88583],[-85.19841,9.86108],[-85.17633,9.8549],[-85.179,9.84642],[-85.18663,9.84371],[-85.18382,9.83771],[-85.19012,9.83604],[-85.1847,9.81816],[-85.19361,9.81388],[-85.18937,9.80765],[-85.19527,9.80312],[-85.19562,9.79588],[-85.1905,9.79365],[-85.19395,9.78675],[-85.18964,9.78146],[-85.18335,9.78772],[-85.18037,9.78215],[-85.1987,9.77011],[-85.19796,9.75785],[-85.20401,9.7549],[-85.20394,9.74765],[-85.21959,9.74285],[-85.21748,9.72748],[-85.27602,9.76025],[-85.25982,9.77852],[-85.26711,9.7764],[-85.29785,9.80376],[-85.29688,9.80799],[-85.29979,9.80464],[-85.32354,9.81764],[-85.33475,9.81614],[-85.33233,9.82401],[-85.38061,9.84862],[-85.39905,9.85325],[-85.40728,9.84854],[-85.4451,9.86252],[-85.45886,9.86054],[-85.46814,9.85071],[-85.48667,9.85962],[-85.48336,9.86437],[-85.48883,9.87125],[-85.5086,9.86035],[-85.5077,9.86969],[-85.52044,9.88043],[-85.53556,9.87391],[-85.55903,9.88038],[-85.56944,9.87673],[-85.59287,9.88568],[-85.59511,9.89097],[-85.60587,9.8873],[-85.62575,9.89222],[-85.64044,9.90811],[-85.65196,9.90578],[-85.65228,9.89894],[-85.66845,9.90322],[-85.66154,9.92087],[-85.67754,9.94905],[-85.67871,9.96644],[-85.69787,9.993],[-85.72963,10.01676],[-85.73131,10.0244],[-85.74163,10.02725],[-85.73762,10.02923],[-85.74362,10.03085],[-85.74836,10.05021],[-85.76404,10.05934],[-85.78909,10.09442],[-85.799,10.14223],[-85.80899,10.15051],[-85.819,10.17901],[-85.83648,10.20132],[-85.839,10.2284],[-85.85322,10.26193],[-85.84944,10.27343],[-85.85394,10.29233],[-85.84181,10.30124],[-85.83947,10.31718],[-85.85686,10.34442],[-85.8728,10.34901],[-85.87577,10.35572],[-85.86558,10.36682],[-85.84744,10.37284],[-85.83665,10.3999],[-85.82824,10.39908],[-85.82635,10.41095],[-85.815,10.4001],[-85.79864,10.4077],[-85.79112,10.42291],[-85.79601,10.4296],[-85.79404,10.43978],[-85.80041,10.44596],[-85.78426,10.43693],[-85.77338,10.44765],[-85.77987,10.47424],[-85.79142,10.48311],[-85.79837,10.48217],[-85.79536,10.49537],[-85.80396,10.49824],[-85.7988,10.50709],[-85.81232,10.51632],[-85.79217,10.51803],[-85.77896,10.54444],[-85.75481,10.52981],[-85.73608,10.5443],[-85.71897,10.54811],[-85.71432,10.55681],[-85.70063,10.55091],[-85.69139,10.56451],[-85.70077,10.57309],[-85.6823,10.57229],[-85.67638,10.59281],[-85.65178,10.59061],[-85.64947,10.60404],[-85.62801,10.62607],[-85.63486,10.63571],[-85.65536,10.64292],[-85.67424,10.63107],[-85.68002,10.61139],[-85.69201,10.60586],[-85.69941,10.61036],[-85.68821,10.61366],[-85.68872,10.63207],[-85.67454,10.63704],[-85.66757,10.64935],[-85.67463,10.64296],[-85.68507,10.64416],[-85.6706,10.65649],[-85.676,10.66235],[-85.65872,10.66417],[-85.65333,10.67774],[-85.66351,10.73755],[-85.65757,10.75917],[-85.65976,10.77457],[-85.68281,10.80403],[-85.67987,10.7974],[-85.68723,10.80383],[-85.69754,10.79976],[-85.70408,10.8074],[-85.72378,10.80907],[-85.74236,10.81926],[-85.76501,10.80353],[-85.7785,10.81439],[-85.79316,10.81563],[-85.80238,10.8259],[-85.80216,10.83485],[-85.78885,10.84047],[-85.79789,10.85481],[-85.78923,10.85148],[-85.79534,10.85661],[-85.80478,10.8501],[-85.84406,10.85714],[-85.85417,10.8541],[-85.86771,10.87761],[-85.91624,10.89986],[-85.95054,10.89055],[
1-85.91314,10.91099],[-85.9006,10.91068],[-85.86215,10.92964],[-85.86282,10.94097],[-85.88271,10.95067],[-85.81696,10.94579],[-85.81051,10.93612],[-85.81933,10.93048],[-85.81865,10.92262],[-85.79439,10.90928],[-85.78369,10.91479],[-85.79959,10.93241],[-85.79014,10.93214],[-85.78441,10.93995],[-85.78064,10.93433],[-85.77714,10.94028],[-85.76639,10.93599],[-85.73369,10.94001],[-85.73225,10.93487],[-85.72829,10.93861],[-85.72016,10.93499],[-85.7228,10.92491],[-85.71222,10.92651],[-85.71191,10.93614],[-85.70514,10.93551],[-85.7013,10.94575],[-85.71969,10.9565],[-85.7077,10.95489],[-85.70273,10.9651],[-85.69207,10.96355],[-85.68961,10.97736],[-85.70995,10.98935],[-85.71042,10.9962],[-85.72549,11.00655],[-85.75272,11.01846],[-85.75434,11.02433],[-85.74567,11.03425],[-85.73583,11.03256],[-85.74102,11.0438],[-85.72711,11.04974],[-85.71383,11.02688],[-85.70777,11.03059],[-85.68813,11.02735],[-85.66998,11.03945],[-85.67118,11.06337],[-85.69305,11.0794],[-85.60996,11.21993],[-85.5607,11.2102],[-85.51642,11.16525],[-85.42435,11.12927],[-85.35784,11.12648],[-85.22951,11.06337],[-85.24301,11.06576],[-85.24986,11.06094],[-85.25178,11.04939],[-85.26368,11.0431],[-85.2585,11.02046],[-85.26791,11.01145],[-85.2852,11.0249],[-85.29077,11.02288],[-85.31173,11.04289],[-85.35136,11.03499],[-85.36958,11.00475],[-85.36712,10.99904],[-85.37795,10.99612],[-85.38265,10.97139],[-85.40504,10.96194],[-85.4205,10.96489],[-85.44539,10.9435],[-85.44752,10.91706],[-85.43646,10.90791],[-85.43413,10.89839],[-85.39508,10.86499],[-85.37796,10.83541],[-85.36634,10.82728],[-85.34935,10.82735],[-85.30589,10.80056],[-85.27772,10.75137],[-85.23591,10.76692],[-85.18265,10.74638],[-85.14484,10.7481],[-85.12916,10.73269],[-85.12461,10.71077],[-85.09722,10.71808],[-85.06076,10.70908],[-85.05481,10.69756],[-85.02692,10.69351],[-85.02,10.67429],[-85.00104,10.65577],[-85.00192,10.62568],[-84.98877,10.61883],[-84.9856,10.60499],[-84.976,10.60645],[-84.95578,10.59457],[-84.94523,10.59533],[-84.93951,10.58577],[-84.92977,10.58354],[-84.92578,10.57385],[-84.90374,10.57084],[-84.89008,10.55997],[-84.87043,10.56238],[-84.85219,10.54644],[-84.84489,10.54642],[-84.84639,10.53258],[-84.8368,10.52394],[-84.82183,10.52594],[-84.8209,10.51443],[-84.79642,10.5003],[-84.79325,10.49119],[-84.77451,10.49748],[-84.76666,10.41882],[-84.78198,10.38534],[-84.77158,10.37472],[-84.76775,10.35179],[-84.77473,10.35034],[-84.78835,10.32133],[-84.82716,10.33777],[-84.83806,10.33046],[-84.84514,10.31133],[-84.84424,10.29393],[-84.86347,10.28119],[-84.87281,10.26105],[-84.87264,10.24273],[-84.88933,10.21873],[-84.88946,10.21216],[-84.87466,10.19999],[-84.87504,10.18835],[-84.88997,10.18012],[-84.90633,10.17894],[-84.91796,10.16222],[-84.93293,10.15435],[-84.92491,10.13162],[-84.92939,10.12761],[-84.92429,10.12059],[-84.92734,10.11526],[-84.9211,10.11153],[-84.9491,10.11899],[-84.98033,10.14177],[-84.98387,10.15075],[-85.00393,10.16056],[-85.0042,10.17371],[-85.02573,10.18666],[-85.0278,10.2013],[-85.04007,10.19132],[-85.03563,10.173],[-85.02779,10.16982],[-85.02789,10.15973],[-85.0419,10.16367],[-85.04875,10.16002],[-85.0582,10.1674],[-85.0623,10.16234],[-85.06764,10.16757],[-85.06671,10.15932],[-85.07634,10.15792],[-85.07014,10.14966],[-85.07548,10.14367],[-85.09704,10.16344],[-85.09109,10.16683],[-85.07857,10.15882],[-85.07545,10.17286],[-85.0797,10.15942],[-85.08542,10.1686],[-85.11112,10.17644],[-85.13032,10.17169],[-85.13491,10.16104],[-85.14432,10.1601],[-85.14703,10.16532],[-85.16979,10.16692],[-85.2092,10.17995],[-85.22661,10.194],[-85.24463,10.19621],[-85.24513,10.14435],[-85.22826,10.12105],[-85.24843,10.12209],[-85.23787,10.11459],[-85.24412,10.10678],[-85.23617,10.10704],[-85.23016,10.09455],[-85.21412,10.08598],[-85.19576,10.08316],[-85.19096,10.06479],[-85.20165,10.06745],[-85.19454,10.06573],[-85.19024,10.0555],[-85.19051,10.05529]],[[-85.19088,10.06181],[-85.18432,10.06519],[-85.17055,10.04642],[-85.15286,10.04964],[-85.15462,10.03166],[-85.17778,10.03703],[-85.19098,10.05073],[-85.19077,10.06172],[-85.19088,10.06181]]]]}},{"type":"Feature","properties":{"id":"6","name":"Puntarenas","label":[9.05,-83.45]},"geometry":{"type":"MultiPolygon","coordinates":[[[[-84.00226,9.45051],[-83.99853,9.43946],[-83.98272,9.4326],[-83.98044,9.42217],[-83.96251,9.41071],[-83.96384,9.39827],[-83.9454,9.39533],[-83.94047,9.38778],[-83.92405,9.40371],[-83.90923,9.40536],[-83.90073,9.39767],[-83.89144,9.3627],[-83.87066,9.35485],[-83.86492,9.34308],[-83.84131,9.3414],[-83.86022,9.30837],[-83.85479,9.30227],[-83.85823,9.29141],[-83.84289,9.25672],[-83.81935,9.2422],[-83.80995,9.22904],[-83.7701,9.21755],[-83.76126,9.21628],[-83.75295,9.22226],[-83.76086,9.23824],[-83.7574,9.24433],[-83.74774,9.24422],[-83.7369,9.22318],[-83.71108,9.22069],[-83.70626,9.22539],[-83.70154,9.21524],[-83.68506,9.20832],[-83.6721,9.18814],[-83.67035,9.17935],[-83.67761,9.17518],[-83.67274,9.1565],[-83.65492,9.14542],[-83.64679,9.13178],[-83.61424,9.1254],[-83.56948,9.08609],[-83.54304,9.07885],[-83.52865,9.08214],[-83.51376,9.07509],[-83.50329,9.08339],[-83.51045,9.09208],[-83.47347,9.11937],[-83.4831,9.14344],[-83.48041,9.15215],[-83.47147,9.15257],[-83.47819,9.17167],[-83.47407,9.18184],[-83.48104,9.18558],[-83.4868,9.19984],[-83.49049,9.19266],[-83.50408,9.20243],[-83.51276,9.20025],[-83.51735,9.21549],[-83.52283,9.2085],[-83.52618,9.21137],[-83.51552,9.22481],[-83.50649,9.26207],[
1-83.49118,9.2677],[-83.48496,9.27733],[-83.45411,9.34424],[-83.42974,9.36748],[-83.4057,9.3526],[-83.39907,9.33727],[-83.38641,9.34638],[-83.35216,9.35063],[-83.33282,9.38334],[-83.32078,9.38449],[-83.30351,9.375],[-83.28761,9.35525],[-83.24167,9.33939],[-83.22474,9.32086],[-83.17885,9.32724],[-83.1574,9.29971],[-83.13521,9.28258],[-83.13483,9.27655],[-83.11695,9.27488],[-83.09895,9.25662],[-83.0736,9.24992],[-83.07394,9.23687],[-83.08013,9.23381],[-83.07693,9.21976],[-83.05714,9.20087],[-83.05797,9.19443],[-83.06718,9.18995],[-83.0654,9.17709],[-83.04573,9.16031],[-82.9921,9.15505],[-82.99484,9.12997],[-82.98721,9.12404],[-82.98933,9.1165],[-82.98157,9.11333],[-82.97729,9.09477],[-82.95265,9.09161],[-82.93922,9.07509],[-82.88799,9.08802],[-82.87856,9.06095],[-82.86845,9.05459],[-82.85917,9.05654],[-82.85549,9.04628],[-82.83596,9.03379],[-82.81836,9.03037],[-82.80001,9.00359],[-82.77444,9.00376],[-82.7411,8.98519],[-82.73664,8.97657],[-82.74258,8.96708],[-82.71715,8.95002],[-82.71238,8.92256],[-82.74908,8.90663],[-82.74975,8.89656],[-82.77634,8.87717],[-82.79884,8.87753],[-82.82315,8.85935],[-82.86235,8.85278],[-82.88342,8.83034],[-82.87691,8.81994],[-82.86253,8.81853],[-82.86626,8.80524],[-82.88966,8.79284],[-82.89487,8.78304],[-82.89199,8.77261],[-82.90933,8.77425],[-82.919,8.76575],[-82.90898,8.75866],[-82.9201,8.75192],[-82.91673,8.74141],[-82.90447,8.73646],[-82.89718,8.71619],[-82.88057,8.69765],[-82.86739,8.69697],[-82.85516,8.66348],[-82.84474,8.65718],[-82.83007,8.63535],[-82.82902,8.61613],[-82.83857,8.61395],[-82.82716,8.60119],[-82.83363,8.59278],[-82.82244,8.56753],[-82.8392,8.54581],[-82.83181,8.50559],[-82.83973,8.48043],[-82.8683,8.43962],[-82.91424,8.42902],[-82.93132,8.43536],[-82.9358,8.42411],[-82.95408,8.41389],[-82.96176,8.39714],[-82.98427,8.37282],[-82.99001,8.37721],[-83.0071,8.35623],[-83.02878,8.35239],[-83.04847,8.34183],[-83.05226,8.33434],[-83.04594,8.31558],[-83.02764,8.31649],[-83.02421,8.30449],[-83.00335,8.29562],[-83.00442,8.28907],[-82.99083,8.27134],[-82.97568,8.2892],[-82.96739,8.27907],[-82.95656,8.28007],[-82.95231,8.26776],[-82.94314,8.27277],[-82.93986,8.26737],[-82.93906,8.25228],[-82.92866,8.24265],[-82.93647,8.21011],[-82.92743,8.20902],[-82.91786,8.19423],[-82.91173,8.19701],[-82.91287,8.17779],[-82.90321,8.17506],[-82.91007,8.16859],[-82.90927,8.14522],[-82.88664,8.10847],[-82.89291,8.10431],[-82.88822,8.07911],[-82.89663,8.06342],[-82.89106,8.05208],[-82.90102,8.03993],[-82.91651,8.05948],[-82.91398,8.07759],[-82.90694,8.07656],[-82.90201,8.08376],[-82.90453,8.11587],[-82.92359,8.14753],[-82.93788,8.1857],[-82.97414,8.23923],[-82.99175,8.25838],[-83.12154,8.33981],[-83.14667,8.36723],[-83.13856,8.39602],[-83.11472,8.41087],[-83.10234,8.43949],[-83.09173,8.45057],[-83.1133,8.49101],[-83.10464,8.48062],[-83.13623,8.5153],[-83.15205,8.54837],[-83.1388,8.5305],[-83.13245,8.53497],[-83.13429,8.52754],[-83.1228,8.53283],[-83.11815,8.51114],[-83.11564,8.52452],[-83.12192,8.53356],[-83.13289,8.53634],[-83.13815,8.53175],[-83.14223,8.53931],[-83.13843,8.54347],[-83.12636,8.54081],[-83.11921,8.54703],[-83.11974,8.53102],[-83.11501,8.53547],[-83.10781,8.52656],[-83.11053,8.53068],[-83.10672,8.53079],[-83.11932,8.53512],[-83.11609,8.54458],[-83.11996,8.55052],[-83.13717,8.5502],[-83.15935,8.57114],[-83.17607,8.59264],[-83.18112,8.60956],[-83.17086,8.62543],[-83.16845,8.6217],[-83.17888,8.6065],[-83.1671,8.61619],[-83.16337,8.60789],[-83.15206,8.60935],[-83.16103,8.60344],[-83.15567,8.59549],[-83.16337,8.58539],[-83.15437,8.58121],[-83.16594,8.58365],[-83.15472,8.57473],[-83.15535,8.57896],[-83.139,8.58441],[-83.13919,8.5908],[-83.1238,8.59422],[-83.12183,8.60127],[-83.13529,8.60039],[-83.14176,8.61357],[-83.17634,8.64556],[-83.18557,8.64104],[-83.17472,8.63489],[-83.18315,8.62207],[-83.20634,8.63137],[-83.21325,8.62862],[-83.22551,8.64161],[-83.23459,8.63956],[-83.23747,8.62708],[-83.25412,8.6568],[-83.2769,8.6599],[-83.29474,8.65336],[-83.30685,8.67286],[-83.32089,8.67399],[-83.33069,8.68436],[-83.3267,8.68995],[-83.33314,8.70205],[-83.33112,8.70995],[-83.32264,8.71505],[-83.33568,8.71537],[-83.32203,8.72708],[-83.33232,8.72084],[-83.33556,8.72499],[-83.33117,8.72505],[-83.34711,8.73629],[-83.35433,8.73244],[-83.36787,8.73835],[-83.37317,8.73519],[-83.3741,8.74364],[-83.38137,8.74689],[-83.37999,8.73989],[-83.39092,8.73095],[-83.40359,8.73699],[-83.41778,8.71979],[-83.43317,8.7137],[-83.44372,8.72529],[-83.45597,8.722],[-83.46526,8.72664],[-83.46942,8.71988],[-83.48083,8.71995],[-83.48433,8.69774],[-83.47495,8.69338],[-83.47209,8.7017],[-83.46778,8.68165],[-83.4579,8.68586],[-83.45399,8.67171],[-83.44982,8.67565],[-83.43447,8.65855],[-83.4367,8.63438],[-83.42755,8.62645],[-83.42698,8.61856],[-83.3987,8.59253],[-83.3775,8.58437
1],[-83.37435,8.57518],[-83.35273,8.57679],[-83.32686,8.56924],[-83.33052,8.55953],[-83.32504,8.56815],[-83.30483,8.53787],[-83.30442,8.54171],[-83.28716,8.53483],[-83.28939,8.53079],[-83.28544,8.53364],[-83.2908,8.53974],[-83.28537,8.5424],[-83.29191,8.49852],[-83.27128,8.46517],[-83.28779,8.45124],[-83.28118,8.4537],[-83.28406,8.44563],[-83.27274,8.4311],[-83.2805,8.417],[-83.27844,8.38746],[-83.29184,8.3744],[-83.30149,8.37661],[-83.39752,8.41753],[-83.37259,8.4103],[-83.39608,8.41915],[-83.40226,8.43039],[-83.40904,8.4258],[-83.39864,8.41824],[-83.44383,8.43705],[-83.43244,8.43518],[-83.43771,8.44153],[-83.4446,8.437],[-83.5134,8.44866],[-83.54518,8.4401],[-83.56919,8.44188],[-83.57027,8.44993],[-83.58962,8.45912],[-83.59153,8.46507],[-83.58623,8.46641],[-83.59332,8.46614],[-83.60862,8.49129],[-83.64995,8.52172],[-83.70274,8.57829],[-83.69525,8.57718],[-83.72672,8.58617],[-83.73441,8.59699],[-83.73557,8.62172],[-83.73961,8.62402],[-83.73021,8.63019],[-83.73204,8.64275],[-83.71423,8.65014],[-83.71627,8.67481],[-83.7076,8.68806],[-83.67628,8.69655],[-83.66557,8.69091],[-83.65369,8.69817],[-83.64953,8.73188],[-83.63761,8.73744],[-83.63729,8.74994],[-83.62834,8.74346],[-83.63678,8.75096],[-83.64128,8.73705],[-83.64757,8.76815],[-83.63673,8.7746],[-83.61943,8.77441],[-83.61549,8.78588],[-83.60545,8.76995],[-83.60644,8.77453],[-83.60209,8.77409],[-83.61019,8.7791],[-83.61533,8.79351],[-83.58184,8.79551],[-83.57555,8.80385],[-83.56506,8.7907],[-83.54866,8.79965],[-83.54112,8.79347],[-83.54486,8.79998],[-83.54116,8.79795],[-83.53177,8.81314],[-83.54164,8.79826],[-83.55447,8.79586],[-83.56311,8.81164],[-83.5487,8.8026],[-83.55286,8.81121],[-83.54824,8.806],[-83.55123,8.81206],[-83.53597,8.81394],[-83.53167,8.84077],[-83.52317,8.84656],[-83.51381,8.84479],[-83.5291,8.84321],[-83.52299,8.8543],[-83.51557,8.84773],[-83.50807,8.8568],[-83.48886,8.85613],[-83.50782,8.85862],[-83.51754,8.8492],[-83.5209,8.85762],[-83.51593,8.86545],[-83.52426,8.86169],[-83.52611,8.86668],[-83.5338,8.85463],[-83.53795,8.86519],[-83.55327,8.86315],[-83.54729,8.85987],[-83.56164,8.85547],[-83.57285,8.86892],[-83.57773,8.86451],[-83.57876,8.84753],[-83.58744,8.85511],[-83.58132,8.86164],[-83.58858,8.85896],[-83.5914,8.86732],[-83.59668,8.87105],[-83.59898,8.86657],[-83.60495,8.8745],[-83.61751,8.87259],[-83.61578,8.89796],[-83.61059,8.89246],[-83.61704,8.88665],[-83.61305,8.87842],[-83.60611,8.89138],[-83.60054,8.88835],[-83.60508,8.88891],[-83.60323,8.88439],[-83.60441,8.88876],[-83.59326,8.88635],[-83.59413,8.88012],[-83.59493,8.88416],[-83.58543,8.88625],[-83.59167,8.88134],[-83.5852,8.88221],[-83.58608,8.87741],[-83.58032,8.87787],[-83.5838,8.88591],[-83.56956,8.88764],[-83.55509,8.87221],[-83.53177,8.87549],[-83.52301,8.86611],[-83.52303,8.87253],[-83.51547,8.87551],[-83.51137,8.86728],[-83.50711,8.87847],[-83.51177,8.87474],[-83.52019,8.87955],[-83.52012,8.87154],[-83.53156,8.87672],[-83.54044,8.87401],[-83.54479,8.87936],[-83.54986,8.87708],[-83.5478,8.87205],[-83.55322,8.87393],[-83.55401,8.88305],[-83.54923,8.88371],[-83.55395,8.89036],[-83.5423,8.88716],[-83.55434,8.891],[-83.55245,8.87845],[-83.56088,8.88155],[-83.5671,8.89169],[-83.56038,8.89928],[-83.54383,8.89974],[-83.5341,8.89448],[-83.53728,8.89069],[-83.53061,8.88555],[-83.53646,8.89135],[-83.52631,8.89446],[-83.5225,8.87967],[-83.52643,8.88432],[-83.52343,8.89272],[-83.53859,8.89591],[-83.53631,8.90131],[-83.54719,8.90073],[-83.54152,8.90735],[-83.55291,8.90368],[-83.54722,8.90838],[-83.56418,8.89922],[-83.56095,8.91101],[-83.57617,8.88954],[-83.57867,8.9056],[-83.57271,8.90661],[-83.56988,8.91772],[-83.57319,8.90715],[-83.58023,8.90383],[-83.57694,8.89566],[-83.60238,8.89914],[-83.61122,8.91502],[-83.58752,8.90076],[-83.58445,8.91105],[-83.59097,8.91468],[-83.58823,8.91854],[-83.58352,8.91506],[-83.58102,8.92644],[-83.58968,8.93229],[-83.58589,8.94137],[-83.59054,8.93241],[-83.58554,8.92434],[-83.58173,8.92594],[-83.58433,8.91589],[-83.58894,8.91993],[-83.59241,8.91513],[-83.58587,8.91162],[-83.58908,8.90189],[-83.60308,8.91188],[-83.6013,8.92262],[-83.60605,8.91758],[-83.60839,8.92238],[-83.62293,8.91762],[-83.62758,8.94681],[-83.60781,8.96533],[-83.61974,8.98158],[-83.61775,8.99102],[-83.6236,9.00221],[-83.62082,9.01857],[-83.60975,9.01354],[-83.62181,9.02316],[-83.62206,9.04259],[-83.65554,9.06849],[-83.65692,9.06007],[-83.66192,9.06194],[-83.67066,9.07888],[-83.6795,9.08374],[-83.67891,9.09087],[-83.689,9.0953],[-83.68662,9.09928],[-83.69448,9.11128],[-83.7213,9.1325],[-83.72807,9.14509],[-83.7483,9.15295],[-83.76132,9.14766],[-83.759,9.16546],[-83.78066,9.19394],[-83.83917,9.22271],[-83.84424,9.22057],[-83.84125,9.22788],[-83.84593,9.23731],[-83.92858,9.30461],[-83.93211,9.30229],[-83.9983,9.3376],[-84.0263,9.34336],[-84.09496,9.37355],[-84.11572,9.37583],[-84.11598,9.38318],[-84.12374,9.369],[-84.13105,9.38601],[-84.13589,9.3843],[-84.1357,9.37702],[-84.14413,9.38183],[-84.14788,9.37639],[-84.14689,9.38516],[-84.15381,9.39375],[-84.17734,9.39414],[-84.17693,9.39958],[-84.16439,9.40501],[-84.17082,9.42476],[-84.16432,9.43267],[-84.16821,9.43863],[-84.16764,9.43004],[-84.18566,9.44662],[-84.20729,9.45138],[-84.25201,9.47277],[-84.26254,9.48614],[-84.27537,9.48385],[-84.29403,9.49121],[-84.29195,9.48611],[-84.25817,9.47955],[-84.2647,9.47774],[-84.33661,9.49122],[-84.32671,9.49449],[-84.32967,9.50499],[-84.33039,9.49447],[-84.3395,9.49666],[-84.33634,9.49481],[-84.34038,9.49295],[-84.47117,9.53102],[-84.53329,9.51823],[-84.56474,9.54658],[-84.61797,9.58155],[-84.6256,9.59141],[-84.62234,9.60287],[-84.64231,9.62628],[-84.65101,9.6223],[-84.6638,9.63176],[-84.6555,9.64046],[-84.65851,9.65131],[-84.68105,9.65189],[-84.66899,9.67279],[-84.67535,9.69711],[-84.66116,9.7067],[-84.65066,9.72974],[-84.63209,9.74074],[-84.62729,9.75428],[-84.62991,9.76997],[-84.64158,9.78283],[-84.62777,9.78581],[-84.64027,9.78561],[-84.6767,9.83524],[-84.67151,9.83883],[-84.67612,9.83661],[-84.70162,9.85771],[-84.69576,9.86021],[-84.70303,9.87151],[-84.73144,9.89298],[-84.71331,9.91905],[-84.74119,9.94925],[-84.73949,9.96768],[-84.78382,9.98006],[-84.85137,9.97559],[-84.78233,9.98492],[-84.7916,9.98286],[-84.79199,9.98882],[-84.80401,9.9856],[-84.80661,9.99427],[-84.79987,9.99861],[-84.80702,9.99505],[-84.80544,9.99026],[-84.80996,9.99346],[-84.80642,9.98756],[-84.81904,9.98544],[-84.81542,9.99892],[-84.82157,9.98607],[-84.83418,9.9924],[-84.82611,9.99873],[-84.83486,9.99384],[-84.83448,9.98678],[-84.84823,9.99877],[-84.85237,9.99595],[-84.8789,10.00766],[-84.89895,10.02726],[-84.92091,10.03566],[-84.91397,10.04528],[-84.92596,10.03706],[-84.94657,10.06372],[-84.95402,10.05925],[-84.96807,10.06488],[-84.96624,10.06934],[-84.95395,10.06872],[-84.94947,10.07687],[-84.95834,10.06982],[-84.96814,10.09003],[-85.00382,10.10333],[-85.02605,10.13186],[
1-85.04886,10.14146],[-85.05939,10.13342],[-85.07767,10.13674],[-85.07924,10.14319],[-85.07012,10.14884],[-85.07577,10.15891],[-85.06671,10.15932],[-85.06764,10.16757],[-85.0623,10.16234],[-85.0582,10.1674],[-85.04875,10.16002],[-85.0419,10.16367],[-85.02789,10.15973],[-85.02779,10.16982],[-85.03563,10.173],[-85.04007,10.19132],[-85.0278,10.2013],[-85.02573,10.18666],[-85.0042,10.17371],[-85.00393,10.16056],[-84.98387,10.15075],[-84.98033,10.14177],[-84.9491,10.11899],[-84.9211,10.11153],[-84.92734,10.11526],[-84.92429,10.12059],[-84.92939,10.12761],[-84.92491,10.13162],[-84.93293,10.15435],[-84.91796,10.16222],[-84.90633,10.17894],[-84.88997,10.18012],[-84.87504,10.18835],[-84.87466,10.19999],[-84.88946,10.21216],[-84.88933,10.21873],[-84.87264,10.24273],[-84.87281,10.26105],[-84.86347,10.28119],[-84.84424,10.29393],[-84.84514,10.31133],[-84.83806,10.33046],[-84.82716,10.33777],[-84.79426,10.32342],[-84.78263,10.29183],[-84.76729,10.27989],[-84.76621,10.26284],[-84.75603,10.25574],[-84.73083,10.25115],[-84.72151,10.26159],[-84.72311,10.26861],[-84.70227,10.26339],[-84.69487,10.27811],[-84.68561,10.28464],[-84.67786,10.2827],[-84.65669,10.23452],[-84.66214,10.22536],[-84.66451,10.20565],[-84.6597,10.18961],[-84.67042,10.15584],[-84.66552,10.14693],[-84.67367,10.14021],[-84.67138,10.12863],[-84.65114,10.09969],[-84.64829,10.08716],[-84.63185,10.07113],[-84.62478,10.04748],[-84.60299,10.04418],[-84.57271,10.01955],[-84.56388,10.02912],[-84.56436,10.01585],[-84.55336,9.98715],[-84.56062,9.98128],[-84.56895,9.98137],[-84.57107,9.98672],[-84.58976,9.97925],[-84.61581,9.95198],[-84.63309,9.94998],[-84.64089,9.94004],[-84.65012,9.94404],[-84.6537,9.93494],[-84.66222,9.93338],[-84.65827,9.92944],[-84.66813,9.92265],[-84.67142,9.91204],[-84.68099,9.905],[-84.68286,9.90914],[-84.68789,9.90669],[-84.68433,9.89408],[-84.6892,9.88635],[-84.68369,9.88815],[-84.68125,9.87488],[-84.65991,9.8764],[-84.64763,9.87018],[-84.64782,9.86518],[-84.60341,9.86221],[-84.597,9.85792],[-84.60016,9.8493],[-84.5912,9.84091],[-84.57488,9.84601],[-84.56319,9.84216],[-84.561,9.83264],[-84.58252,9.82336],[-84.58325,9.80628],[-84.56828,9.81039],[-84.55827,9.78423],[-84.53899,9.77739],[-84.55368,9.75624],[-84.56603,9.75912],[-84.57214,9.74008],[-84.59156,9.7442],[-84.59252,9.7362],[-84.58364,9.70994],[-84.58561,9.68365],[-84.58069,9.66562],[-84.5649,9.6282],[-84.55626,9.62711],[-84.55162,9.6195],[-84.54584,9.58658],[-84.53866,9.58615],[-84.53043,9.57519],[-84.50747,9.57092],[-84.48495,9.57007],[-84.48253,9.57708],[-84.46474,9.57047],[-84.46205,9.57735],[-84.45111,9.5768],[-84.42879,9.55896],[-84.41229,9.58345],[-84.40258,9.58258],[-84.39255,9.60054],[-84.39903,9.61352],[-84.39459,9.62021],[-84.39711,9.63704],[-84.38775,9.63892],[-84.3834,9.63315],[-84.37658,9.63975],[-84.36621,9.63166],[-84.35195,9.63926],[-84.34505,9.6302],[-84.3337,9.63898],[-84.31758,9.6398],[-84.30481,9.65325],[-84.29519,9.64554],[-84.29646,9.63463],[-84.28867,9.63812],[-84.27939,9.6289],[-84.27011,9.6319],[-84.23908,9.62312],[-84.22523,9.62851],[-84.2174,9.62116],[-84.19102,9.61761],[-84.18444,9.62399],[-84.14986,9.62998],[-84.14248,9.61122],[-84.1428,9.58016],[-84.12919,9.57023],[-84.12074,9.55481],[-84.09951,9.56934],[-84.08301,9.56378],[-84.07252,9.57102],[-84.07664,9.55836],[-84.06943,9.53065],[-84.0742,9.51855],[-84.08762,9.51012],[-84.0789,9.51345],[-84.07484,9.50266],[-84.0642,9.49938],[-84.02771,9.46196],[-84.00366,9.45094],[-84.00226,9.45051]],[[-84.98717,9.93795],[-84.95875,9.94199],[-84.92019,9.92395],[-84.91428,9.90403],[-84.93102,9.89867],[-84.93803,9.88118],[-84.90631,9.85287],[-84.92329,9.85109],[-84.92372,9.84374],[-84.93454,9.83586],[-84.92091,9.82512],[-84.89591,9.83449],[-84.86375,9.82892],[-84.87715,9.8223],[-84.88074,9.8128],[-84.90172,9.81226],[-84.90147,9.79841],[-84.92427,9.7922],[-84.92496,9.78386],[-84.9195,9.78443],[-84.9316,9.77285],[-84.92973,9.76344],[-84.93457,9.75735],[-84.94265,9.76157],[-84.95439,9.75722],[-84.95107,9.73282],[-84.95569,9.72784],[-84.97391,9.73097],[-84.97931,9.74049],[-84.98743,9.7411],[-84.99244,9.74662],[-84.98731,9.75326],[-85.00874,9.74167],[-85.01681,9.71679],[-84.99894,9.71141],[-84.9953,9.70575],[-84.99929,9.69893],[-85.00821,9.68994],[-85.03695,9.68119],[-85.04229,9.67169],[-85.06804,9.65361],[-85.09285,9.58571],[-85.09158,9.57136],[-85.1076,9.56691],[-85.11126,9.55813],[-85.1168,9.55951],[-85.11877,9.57055],[-85.13359,9.5728],[-85.14134,9.58045],[-85.14508,9.61521],[-85.19697,9.66925],[-85.20404,9.69075],[-85.23063,9.73261],[-85.21616,9.72796],[
1-85.21959,9.74285],[-85.20394,9.74765],[-85.20401,9.7549],[-85.19796,9.75785],[-85.1987,9.77011],[-85.18037,9.78215],[-85.18335,9.78772],[-85.18964,9.78146],[-85.19395,9.78675],[-85.1905,9.79365],[-85.19562,9.79588],[-85.19527,9.80312],[-85.18937,9.80765],[-85.19361,9.81388],[-85.1847,9.81816],[-85.19012,9.83604],[-85.18382,9.83771],[-85.18663,9.84371],[-85.179,9.84642],[-85.17633,9.8549],[-85.19841,9.86108],[-85.20483,9.88583],[-85.21483,9.89029],[-85.21682,9.9019],[-85.22378,9.89943],[-85.23191,9.90716],[-85.25095,9.90916],[-85.27241,9.91927],[-85.27735,9.91561],[-85.27808,9.92726],[-85.26891,9.93739],[-85.27186,9.95776],[-85.26844,9.96352],[-85.25366,9.96472],[-85.24749,9.97295],[-85.23686,9.96758],[-85.21889,9.97254],[-85.18628,9.97055],[-85.16116,9.98782],[-85.17073,10.00973],[-85.16198,10.01681],[-85.12817,9.98777],[-85.12793,9.99186],[-85.11903,9.99163],[-85.11763,9.97422],[-85.11424,9.98001],[-85.09496,9.9703],[-85.07798,9.9793],[-85.07358,9.97524],[-85.08182,9.97553],[-85.07753,9.97188],[-85.08194,9.97242],[-85.08093,9.96311],[-85.07514,9.97192],[-85.06932,9.97098],[-85.0738,9.9665],[-85.06736,9.96694],[-85.06619,9.97239],[-85.05961,9.97519],[-85.05748,9.9698],[-85.05866,9.97537],[-85.05181,9.97595],[-85.03586,9.96161],[-85.02442,9.9593],[-85.01071,9.93922],[-84.98832,9.93757],[-84.98717,9.93795]],[[-83.56682,8.86245],[-83.56247,8.85347],[-83.54865,8.8569],[-83.53954,8.85217],[-83.54778,8.85671],[-83.54321,8.86158],[-83.53273,8.85326],[-83.52797,8.86112],[-83.52058,8.86088],[-83.53334,8.84005],[-83.53869,8.81494],[-83.54732,8.81571],[-83.54562,8.82175],[-83.55876,8.81348],[-83.55633,8.82463],[-83.56399,8.81617],[-83.55962,8.79766],[-83.56519,8.79264],[-83.57427,8.80728],[-83.58259,8.80078],[-83.58748,8.80404],[-83.58386,8.80738],[-83.58766,8.80473],[-83.5852,8.79837],[-83.61093,8.80456],[-83.61118,8.80858],[-83.60121,8.80822],[-83.61098,8.80934],[-83.62286,8.79783],[-83.62557,8.78403],[-83.63895,8.77865],[-83.6465,8.79343],[-83.65273,8.79393],[-83.63579,8.81791],[-83.60943,8.82697],[-83.60589,8.83587],[-83.60372,8.83009],[-83.59153,8.83153],[-83.59726,8.82718],[-83.5944,8.82044],[-83.59603,8.82753],[-83.59038,8.82935],[-83.58225,8.8218],[-83.58644,8.82618],[-83.5816,8.82965],[-83.57542,8.8283],[-83.57351,8.81831],[-83.56368,8.83005],[-83.56832,8.83157],[-83.56632,8.82749],[-83.5754,8.81909],[-83.57676,8.83069],[-83.60238,8.83505],[-83.59816,8.84578],[-83.58896,8.84065],[-83.57513,8.84526],[-83.55815,8.83247],[-83.55357,8.83696],[-83.55057,8.83391],[-83.56073,8.83849],[-83.55423,8.84185],[-83.56401,8.84056],[-83.57305,8.84685],[-83.56223,8.84701],[-83.57159,8.84992],[-83.57614,8.86391],[-83.57232,8.86757],[-83.56701,8.86287],[-83.56682,8.86245]],[[-85.18924,10.09831],[-85.19831,10.11312],[-85.19483,10.12035],[-85.16314,10.12648],[-85.10506,10.10709],[-85.11639,10.10136],[-85.12069,10.10566],[-85.12828,10.10108],[-85.15287,10.10532],[-85.12823,10.0993],[-85.12132,10.10398],[-85.12364,10.09612],[-85.11901,10.09179],[-85.10146,10.09863],[-85.09386,10.09513],[-85.10864,10.0816],[-85.14679,10.07332],[-85.17941,10.08128],[-85.18913,10.09785],[-85.18924,10.09831]],[[-83.63266,8.99882],[-83.64434,9.04874],[-83.63388,9.04389],[-83.61954,8.99212],[-83.62269,8.97837],[-83.61824,8.97066],[-83.62819,8.9646],[-83.623,8.95541],[-83.63077,8.96347],[-83.63274,8.99859],[-83.63266,8.99882]]]]}},{"type":"Feature","properties":{"id":"7","name":"Limón","label":[9.85,-83.1]},"geometry":{"type":"MultiPolygon","coordinates":[[[[-83.35731,10.31472],[-83.26907,10.2134],[-83.10813,10.01024],[-83.09333,10.00153],[-83.07871,10.00041],[-83.09491,9.99732],[-83.08022,9.99756],[-83.0798,10.01236],[-83.06701,10.01082],[-83.06599,10.01503],[-83.06258,10.00919],[-83.05007,10.01203],[-83.02524,10.00116],[-83.02836,9.99
161],[-83.02228,9.99165],[-83.03404,9.98786],[-83.0347,9.97959],[-83.03125,9.98769],[-83.02823,9.96898],[-83.00097,9.92479],[-82.99829,9.92823],[-82.98568,9.91146],[-82.98828,9.90742],[-82.97958,9.90393],[-82.90269,9.80645],[-82.90893,9.80711],[-82.9148,9.79625],[-82.90158,9.79544],[-82.91325,9.79837],[-82.90378,9.80353],[-82.8961,9.79324],[-82.90773,9.79186],[-82.8919,9.79099],[-82.86248,9.75205],[-82.83835,9.73671],[-82.82776,9.73485],[-82.81588,9.74989],[-82.80935,9.74549],[-82.81528,9.72128],[-82.79058,9.67301],[-82.76935,9.65728],[-82.75842,9.65469],[-82.74939,9.66061],[-82.72503,9.64371],[-82.69786,9.63776],[-82.6859,9.64395],[-82.66767,9.63179],[-82.64852,9.64016],[-82.62248,9.63475],[-82.61953,9.61527],[-82.59694,9.59103],[-82.60345,9.58734],[-82.59761,9.58953],[-82.59886,9.58518],[-82.59559,9.59086],[-82.56565,9.57202],[-82.56426,9.56159],[-82.55347,9.55009],[-82.55634,9.54095],[-82.56226,9.54001],[-82.58072,9.55769],[-82.60158,9.55827],[-82.59845,9.53456],[-82.60499,9.50606],[-82.61711,9.49852],[-82.6343,9.50267],[-82.63676,9.4942],[-82.64853,9.49787],[-82.65864,9.50996],[-82.66833,9.50074],[-82.67464,9.51277],[-82.68149,9.50683],[-82.69099,9.51173],[-82.70077,9.52912],[-82.6928,9.53494],[-82.69432,9.54139],[-82.70872,9.55407],[-82.7163,9.546],[-82.72921,9.55465],[-82.73092,9.56514],[-82.74411,9.56875],[-82.7457,9.59306],[-82.76251,9.59436],[-82.77671,9.58502],[-82.79246,9.59899],[-82.81551,9.5976],[-82.82726,9.6113],[-82.84592,9.617],[-82.86002,9.61102],[-82.86051,9.59051],[-82.87712,9.59295],[-82.88558,9.56549],[-82.87865,9.55426],[-82.8688,9.55401],[-82.86798,9.54508],[-82.8745,9.5387],[-82.87288,9.52441],[-82.86571,9.51836],[-82.85625,9.52025],[-82.85586,9.5117],[-82.8486,9.51475],[-82.84129,9.49742],[-82.93444,9.47528],[-82.93451,9.07889],[-82.93922,9.07509],[-82.95209,9.09132],[-82.9778,9.09538],[-82.98157,9.11333],[-82.98933,9.1165],[-82.98721,9.12404],[-82.99484,9.12997],[-82.9921,9.15505],[-83.04573,9.16031],[-83.0654,9.17709],[-83.06718,9.18995],[-83.05797,9.19443],[-83.05714,9.20087],[-83.07693,9.21976],[-83.08013,9.23381],[-83.07394,9.23687],[-83.0736,9.24992],[-83.09895,9.25662],[-83.11695,9.27488],[-83.13483,9.27655],[-83.13521,9.28258],[-83.1574,9.29971],[-83.17885,9.32724],[-83.22474,9.32086],[-83.24167,9.33939],[-83.28761,9.35525],[-83.30351,9.375],[-83.32078,9.38449],[-83.33282,9.38334],[-83.35216,9.35063],[-83.38641,9.34638],[-83.39907,9.33727],[-83.40064,9.34745],[-83.42236,9.36646],[-83.45812,9.38258],[-83.4736,9.42098],[-83.48316,9.42946],[-83.47879,9.45041],[-83.4894,9.4831],[-83.48774,9.50018],[-83.49789,9.52411],[-83.51567,9.53558],[-83.51373,9.5675],[-83.50484,9.58365],[-83.512,9.59714],[-83.4826,9.62827],[-83.46806,9.63357],[-83.46344,9.64326],[-83.44737,9.65342],[-83.4285,9.67983],[-83.42985,9.70646],[-83.39519,9.74398],[-83.38366,9.76752],[-83.33662,9.82346],[-83.33852,9.83283],[-83.33239,9.8441],[-83.33984,9.85905],[-83.33515,9.88544],[-83.3482,9.89858],[-83.34438,9.90015],[-83.34979,9.90355],[-83.34542,9.9167],[-83.35345,9.93867],[-83.34858,9.93632],[-83.33864,9.94256],[-83.3409,9.95659],[-83.31209,9.98181],[-83.60361,9.982],[-83.61806,9.98818],[-83.63979,10.01043],[-83.66906,10.02497],[-83.70811,10.04115],[-83.72167,10.03829],[-83.94753,10.14716],[-83.93457,10.18477],[-83.86409,10.24808],[-83.85182,10.27075],[-83.85074,10.35422],[-83.88089,10.40193],[-83.87375,10.42931],[-83.8602,10.43776],[-83.85764,10.44606],[-83.8448,10.44516],[-83.83073,10.46298],[-83.83884,10.47511],[-83.82832,10.49389],[-83.83957,10.51181],[-83.8382,10.53203],[-83.84758,10.55079],[-83.83667,10.58995],[-83.84594,10.60379],[-83.84084,10.64102],[-83.7882,10.65748],[-83.78459,10.67558],[-83.76501,10.69963],[-83.74237,10.69285],[-83.71093,10.69257],[-83.71681,10.70352],[-83.73989,10.72159],[-83.74093,10.73009],[-83.7331,10.73969],[-83.74813,10.76563],[-83.76036,10.77431],[-83.71475,10.79285],[-83.6982,10.78726],[-83.67307,10.79644],[-83.6606,10.81853],[-83.67513,10.85247],[-83.66865,10.88909],[-83.68278,10.89735],[-83.67665,10.9027],[-83.67888,10.90977],[-83.67308,10.90829],[-83.69684,10.93912],[-83.67464,10.93491],[-83.67569,10.92586],[-83.6633,10.9327],[-83.63677,10.90787],[-83.58669,10.79691],[-83.597,10.76917],[-83.60294,10.77661],[-83.60131,10.78843],[-83.62221,10.88016],[-83.60623,10.7933],[-83.61838,10.83863],[-83.61394,10.80869],[-83.6336,10.86359],[-83.60729,10.7763],[-83.60936,10.79461],[-83.5963,10.76471],[-83.61465,10.74951],[-83.61816,10.75232],[-83.6354,10.8373],[-83.62098,10.76036],[-83.61395,10.74774],[-83.63864,10.72193],[-83.65107,10.73396],[-83.66695,10.72153],[-83.67194,10.73061],[-83.6801,10.73065],[-83.67131,10.7286],[-83.6679,10.72031],[-83.65348,10.73277],[-83.64494,10.72673],[-83.64392,10.72214],[-83.65714,10.71105],[-83.64942,10.69925],[-83.66809,10.68869],[-83.64735,10.6975],[-83.65455,10.71336],[-83.62397,10.72985],[-83.60935,10.75283],[-83.60179,10.72808],[-83.58641,10.70594],[-83.57458,10.7147],[-83.57539,10.73695],[-83.55499,10.66809],[-83.50598,10.54005],[-83.53076,10.58496],[-83.5451,
110.57635],[-83.56953,10.59973],[-83.54647,10.57596],[-83.53272,10.58444],[-83.52689,10.57828],[-83.50926,10.53754],[-83.51462,10.52738],[-83.50615,10.51678],[-83.51104,10.52817],[-83.50776,10.53175],[-83.45359,10.42799],[-83.48991,10.47916],[-83.48119,10.45439],[-83.48941,10.47845],[-83.42658,10.38911],[-83.428,10.3852],[-83.43503,10.39113],[-83.42815,10.38376],[-83.43414,10.37453],[-83.44666,10.38104],[-83.43433,10.37384],[-83.42364,10.38754],[-83.42536,10.3827],[-83.41735,10.37176],[-83.4137,10.37333],[-83.39482,10.33997],[-83.40577,10.34865],[-83.39839,10.33927],[-83.40857,10.34051],[-83.41033,10.33229],[-83.40849,10.33967],[-83.39544,10.33371],[-83.39069,10.33944],[-83.38188,10.33156],[-83.39692,10.34368],[-83.39003,10.35589],[-83.4002,10.34704],[-83.40296,10.35938],[-83.4063,10.35796],[-83.4134,10.37386],[-83.41741,10.37267],[-83.42297,10.38773],[-83.45007,10.42285],[-83.49703,10.51069],[-83.5207,10.58325],[-83.48816,10.51291],[-83.44118,10.43116],[-83.3575,10.31494],[-83.35731,10.31472]],[[-83.59096,10.76695],[-83.58513,10.78683],[-83.5761,10.74075],[-83.58066,10.72198],[-83.57583,10.71679],[-83.58505,10.70645],[-83.60133,10.72856],[-83.60816,10.75367],[-83.59107,10.76667],[-83.59096,10.76695]]]]}}]}`),i=[[6.7,-87.35],[13.05,-79.2]];function a(e){return`<svg class="pv-pin-svg" viewBox="0 0 25 41" width="25" height="41" aria-hidden="true"><path fill="${e}" d="M12.5 0C5.6 0 0 5.6 0 12.5 0 21.8 12.5 41 12.5 41S25 21.8 25 12.5C25 5.6 19.4 0 12.5 0z"/><circle cx="12.5" cy="12.5" r="5" fill="#fff"/></svg>`}function o(e){return`<svg class="pv-pin-svg" viewBox="0 0 25 41" width="25" height="41" aria-hidden="true"><path fill="${e}" d="M12.5 0C5.6 0 0 5.6 0 12.5 0 21.8 12.5 41 12.5 41S25 21.8 25 12.5C25 5.6 19.4 0 12.5 0z"/><path fill="#fff" d="M12.5 6.3 16.9 14.8H8.1z"/></svg>`}function s(e){return n.default.divIcon({html:e,className:`pv-pin`,iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[0,-34]})}var c=s(a(`#2A81CB`)),l=s(a(`#6d9b22`)),u=s(o(`#f08028`)),d=s(o(`#6d9b22`));function f(e){return e.replace(/&/g,`&amp;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`).replace(/"/g,`&quot;`).replace(/'/g,`&#39;`)}function p(e){let t=e.nearby.map((t,n)=>{let r=n<e.nearby.length-1?`<span class="nearby-sep">|</span>`:``;return`<span class="nearby-name"><button type="button" class="nearby-link" ${t.path?`data-path="${f(t.path)}"`:`data-slug="${f(t.slug)}"`}>${f(t.label)}</button>${r}</span>`}).join(``),n=t?`<p class="town-pin-nearby"><strong>${f(e.nearbyLabel||`Nearby`)}:</strong> <span class="town-pin-nearby-names">${t}</span></p>`:``,r=e.image,i=r.includes(`/media/pins/`)?r.replace(`/media/pins/`,`/media/pins/s/`):r,a=e.path?`<button type="button" class="town-pin-title" data-path="${f(e.path)}">${f(e.label)}</button>`:f(e.label),o=r?`<img src="${f(r)}" srcset="${f(i)} 260w, ${f(r)} 400w" sizes="(max-width: 1279px) 260px, 390px" alt="${f(e.label)}, Costa Rica" width="400" height="228" decoding="async" />`:``,s=document.documentElement.lang===`es`?`Región`:`Region`;return`<article class="town-pin-card">${e.tag?`<div class="town-pin-media">${o}<span class="tag-tip" data-tip="${f(s)}"><button type="button" class="pill" data-path="${f(e.tag.path)}">${f(e.tag.label)}</button></span></div>`:o}<div class="town-pin-body"><h3>${a}</h3><p class="town-pin-excerpt">${f(e.excerpt)}</p>${n}</div></article>`}function m(){return`<svg viewBox="0 0 16 16" width="14" height="14" aria-hidden="true"><path d="M3.2 3.2 12.8 12.8M12.8 3.2 3.2 12.8" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round"/></svg>`}function h(){return document.documentElement.lang===`es`?`Cerrar`:`Close popup`}function g(e){return n.default.divIcon({html:`<span>${e.getChildCount()}</span>`,className:`pv-cluster`,iconSize:[48,48],iconAnchor:[24,24]})}function _(e){let t=n.default.map(e,{zoomControl:!1,minZoom:2,maxZoom:16,scrollWheelZoom:!1,attributionControl:!0,fadeAnimation:!1,zoomAnimation:!1,markerZoomAnimation:!1});if(t.attributionControl.setPrefix(!1),navigator.maxTouchPoints>0||window.matchMedia(`(any-pointer: coarse)`).matches){let e=t.getContainer();e.addEventListener(`touchstart`,e=>{e.touches.length>=2?t.dragging.enable():t.dragging.disable()},{capture:!0,passive:!0}),e.addEventListener(`touchend`,e=>{e.touches.length>=2||(e.touches.length===0?t.dragging.enable():t.dragging.disable())},{passive:!0}),e.addEventListener(`touchcancel`,()=>t.dragging.enable(),{passive:!0})}return t}function ee(e){let t=n.default.tileLayer(`/media/tiles/{z}/{x}/{y}.png`,{maxZoom:16,updateWhenIdle:!0,updateWhenZooming:!1,keepBuffer:1,attribution:`&copy; <a href="https://www.openstreetmap.org/copyright" target="_blank" rel="noopener noreferrer">OpenStreetMap</a>`});t.getTileUrl=e=>e.z===6||e.z===7?`/media/tiles/${e.z}/${e.x}/${e.y}.png`:`https://tile.openstreetmap.org/${e.z}/${e.x}/${e.y}.png`,t.on(`tileerror`,e=>{let t=e.tile;t.dataset.remote!==`1`&&(t.dataset.remote=`1`,t.src=`https://tile.openstreetmap.org/${e.coords.z}/${e.coords.x}/${e.coords.y}.png`)});let r=()=>S(e.getContainer());t.on(`tileload`,r),t.on(`load`,r),window.setTimeout(r,4e3),t.addTo(e);for(let t of e.getContainer().querySelectorAll(`.leaflet-control-attribution a`))t.target=`_blank`,t.rel=`noopener noreferrer`}function v(e){return e.clientWidth<700?[48,48]:[250,250]}function y(e,t,r){if(!t.length)return;if(t.length===1){e.setView([t[0][1],t[0][0]],12);return}let i=n.default.latLngBounds(t.map(([e,t])=>[t,e]));e.fitBounds(i,{padding:v(r),maxZoom:12,animate:!1})}function b(e,t){return e.clientWidth<700?t<=7?96:72:t<=6?64:48}function x(e,t,n){let r=n.getElement();r?.classList.add(`is-opening`);let i=e.getZoom(),a=n.getBounds();e.fitBounds(a,{padding:v(t),maxZoom:12,animate:!0}),e.getZoom()<=i&&e.setView(a.getCenter(),Math.min(i+2,12),{animate:!0}),window.setTimeout(()=>r?.classList.remove(`is-opening`),700)}function S(e){e.classList.contains(`is-ready`)||e.classList.add(`is-ready`)}function C(e,t,r,a,o,s,f){let v=_(e),S=n.default.markerClusterGroup({maxClusterRadius:t=>b(e,t),disableClusteringAtZoom:9,spiderfyOnMaxZoom:!1,showCoverageOnHover:!1,zoomToBoundsOnClick:!1,animate:!1,iconCreateFunction:g}),C=new Map,w=new Map,T=t.some(e=>e.kind===`park`),te=e=>T?`${e.kind??`town`}:${e.slug}`:e.slug,E=(e,t)=>e?.kind===`park`?t?d:u:t?l:c,ne=e=>C.has(e)?e:C.has(`town:${e}`)?`town:${e}`:C.has(`park:${e}`)?`park:${e}
1`:e,D=``,O=null,k=``,re=()=>{O&&O.setIcon(E(w.get(D),!1)),D=``,O=null},A=e=>{let t=ne(e),n=C.get(t);if(!n)return;k=t,v.stop(),v.closePopup(),S.hasLayer(n)&&S.removeLayer(n),v.hasLayer(n)||n.addTo(v);let r=Math.max(v.getZoom(),11);v.setView(n.getLatLng(),r,{animate:!1}),n.openPopup(),k=``};for(let r of t){let t=te(r),i=n.default.marker([r.lat,r.lng],{icon:E(r,!1)});w.set(t,r);let s,c=()=>(s===void 0&&(s=a(t)),s);i.bindTooltip(r.label,{direction:`right`,offset:[8,-28],opacity:1,className:`pin-flag`}),i.bindPopup(()=>{let e=c();return e?p(e):``},{className:`town-pin-popup`,minWidth:390,maxWidth:390,closeButton:!0}),i.on(`popupopen`,()=>{let n=c();if(!n)return;let a=i.getPopup(),s=e.clientWidth<900?260:390;a&&a.options.maxWidth!==s&&(a.options.minWidth=s,a.options.maxWidth=s,a.update()),O&&O!==i&&O.setIcon(E(w.get(D),!1)),D=t,O=i,i.setIcon(E(r,!0)),i.closeTooltip();let l=i.getPopup()?.getElement()?.querySelector(`.leaflet-popup-close-button`);l&&(l.setAttribute(`aria-label`,h()),l.innerHTML=m());let u=i.getPopup()?.getElement();u?.querySelector(`.town-pin-title`)?.addEventListener(`click`,()=>{n.path&&o(n.path)}),u?.querySelectorAll(`.nearby-link`).forEach(e=>{e.addEventListener(`click`,t=>{t.preventDefault(),t.stopPropagation();let n=e.dataset.slug;n&&A(n)})})}),i.on(`popupclose`,()=>{k!==t&&(D===t&&i.setIcon(E(r,!1)),S.hasLayer(i)||S.addLayer(i))}),C.set(t,i)}let j=e=>{let n=f?.()??null,r=n?.regions??e,i=n?.types,a=!n||n.showTowns!==!1;S.clearLayers();for(let e of t){if(r[e.region]===!1)continue;let t=e.kind??`town`;if(t===`town`&&!a)continue;if(t===`park`&&i){let t=Object.entries(i).filter(([,e])=>e).map(([e])=>e);if(t.length!==Object.keys(i).length&&!(e.groups??[]).some(e=>t.includes(e)))continue}let n=C.get(te(e));n&&S.addLayer(n)}};j(r),S.on(`clusterclick`,t=>x(v,e,t.layer));let M=()=>{v.invalidateSize({animate:!1});let t=n.default.latLngBounds(i),r=e.clientWidth<700?8:16,a=v.getBoundsZoom(t,!1,n.default.point(r,r));Number.isFinite(a)||(a=6),a=Math.min(v.getMaxZoom(),a+1),e.clientHeight>e.clientWidth&&(a=Math.min(v.getMaxZoom(),a+1)),v.setView(t.getCenter(),a,{animate:!1})},N=()=>{v.closePopup(),re(),M()},P=!1,F=()=>{P||e.clientWidth===0||e.clientHeight===0||(P=!0,s?.length?y(v,s,e):M(),ee(v),v.hasLayer(S)||v.addLayer(S))};v.setView([9.88,-83.28],6,{animate:!1});let I=``,R=new ResizeObserver(()=>{let t=`${e.clientWidth}x${e.clientHeight}`;t&&t!==I&&(I=t,P?v.invalidateSize({animate:!1}):F())});return R.observe(e),F(),{setRegions(e,t){if(v.closePopup(),re(),j(e),S.refreshClusters(),v.invalidateSize({animate:!1}),!t)return;let r=[];if(S.eachLayer(e=>{let t=e.getLatLng?.();t&&r.push(t)}),!r.length){M();return}v.fitBounds(n.default.latLngBounds(r),{padding:[28,28],maxZoom:10,animate:!1})},zoomBy(e){v.setZoom(Math.min(v.getMaxZoom(),Math.max(v.getMinZoom(),v.getZoom()+e)))},home:N,showTowns(t){y(v,t,e)},focus(e,t){v.setView([e,t],Math.max(v.getZoom()+1,9))},openTown(e){A(ne(e))},remove(){R.disconnect(),v.remove()}}}function w(e,t,r,i,a){let o=_(e),s=new Map,u=[t,...r],d=()=>{let n=e.getBoundingClientRect(),r=e=>{let t=s.get(e)?.getElement();return t?t.getBoundingClientRect():null},i=(e,t)=>e.left<t.right+6&&e.right>t.left-6&&e.top<t.bottom+6&&e.bottom>t.top-6,a=e=>e.left>=n.left+4&&e.right<=n.right-4&&e.top>=n.top+4&&e.bottom<=n.bottom-8,o=[{direction:`right`,offset:[12,-36]},{direction:`left`,offset:[-12,-36]},{direction:`top`,offset:[0,-46]},{direction:`bottom`,offset:[0,8]},{direction:`right`,offset:[12,-16]},{direction:`left`,offset:[-12,-16]},{direction:`top`,offset:[52,-46]},{direction:`top`,offset:[-52,-46]}],c=[];for(let e of u){let n=s.get(e.slug);if(!n)continue;let l=e.slug===t.slug,d=r(e.slug),f=!1;for(let t of o){n.unbindTooltip(),n.bindTooltip(e.card.label,{direction:t.direction,offset:t.offset,opacity:1,className:`pin-flag`,permanent:!0}),n.openTooltip();let o=n.getTooltip()?.getElement();if(!o)continue;let s=o.getBoundingClientRect(),l=u.some(e=>{let t=r(e.slug);return t&&i(s,t)}),p=c.some(e=>i(s,e));if(!l&&!p&&a(s)&&d){c.push(s),f=!0;break}}if(!f&&(n.closeTooltip(),n.unbindTooltip(),n.bindTooltip(e.card.label,{direction:`right`,offset:[8,-28],opacity:1,className:`pin-flag`,permanent:l}),l)){n.openTooltip();let e=n.getTooltip()?.getElement();e&&c.push(e.getBoundingClientRect())}}},f=e=>{for(let[t,n]of s)n.setIcon(t===e?l:c)},g=(n,r)=>{r.bindTooltip(n.card.label,{direction:`right`,offset:[8,-28],opacity:1,className:`pin-flag`,permanent:n.slug===t.slug}),r.bindPopup(()=>p(n.card),{className:`town-pin-popup`,minWidth:390,maxWidth:390,closeButton:!0}),r.on(`popupopen`,()=>{let t=r.getPopup(),o=e.clientWidth<900?260:390;t&&t.options.maxWidth!==o&&(t.options.minWidth=o,t.options.maxWidth=o,t.update(
1)),f(n.slug);for(let e of s.values())e.closeTooltip();let c=r.getPopup()?.getElement()?.querySelector(`.leaflet-popup-close-button`);c&&(c.setAttribute(`aria-label`,h()),c.innerHTML=m());let l=r.getPopup()?.getElement();l?.querySelector(`.town-pin-title`)?.addEventListener(`click`,()=>i(n.card.path)),l?.querySelectorAll(`.nearby-link`).forEach(e=>{e.addEventListener(`click`,t=>{t.preventDefault(),t.stopPropagation();let n=e.dataset.slug;if(!n)return;let r=s.get(n);r?r.openPopup():a(n)})})}),r.on(`popupclose`,()=>{window.setTimeout(()=>{[...s.values()].some(e=>e.isPopupOpen())||(f(t.slug),d())},0)})};for(let e of u){let r=n.default.marker([e.lat,e.lng],{icon:e.slug===t.slug?l:c,zIndexOffset:e.slug===t.slug?600:0}).addTo(o);e.card.path&&g(e,r),s.set(e.slug,r)}o.on(`zoomend`,()=>{[...s.values()].some(e=>e.isPopupOpen())||d()});let v=n.default.latLngBounds(u.map(e=>[e.lat,e.lng]));o.setView([t.lat,t.lng],10,{animate:!1});let y=()=>{o.invalidateSize(),o.fitBounds(v,{padding:[48,48],maxZoom:13,animate:!1}),d()},b=!1,x,C=()=>{b||e.clientWidth===0||e.clientHeight===0||(b=!0,y(),ee(o),S(e),x.disconnect())};return x=new ResizeObserver(C),x.observe(e),C(),{zoomBy(e){o.setZoom(Math.min(o.getMaxZoom(),Math.max(o.getMinZoom(),o.getZoom()+e)))},home(){o.closePopup(),f(t.slug),y()},remove:()=>{x.disconnect(),o.remove()}}}var T=`#1c2a22`,te=`#f08028`;function E(e,t,i){let a=_(e),o={id:``},s=r,c=new Map(t.map(e=>[e.id,e])),l=(e,t=!1)=>({color:T,weight:t||e===o.id?2:1.25,fillColor:e===o.id||t?te:T,fillOpacity:e===o.id?.55:t?.38:.18}),u=n.default.geoJSON(s,{style:e=>l(String(e?.properties?.id??``)),onEachFeature(t,n){let r=n,a=String(t?.properties?.id??``),s=c.get(a);if(r.on(`mouseover`,()=>{a!==o.id&&r.setStyle(l(a,!0))}),r.on(`mouseout`,()=>r.setStyle(l(a))),!s)return;let d=()=>e.clientWidth<900?260:390;r.bindPopup(()=>p(s),{className:`town-pin-popup`,minWidth:d(),maxWidth:d(),closeButton:!0,autoPan:!0}),r.on(`popupopen`,()=>{o.id=a,u.setStyle(e=>l(String(e?.properties?.id??``)));let e=r.getPopup(),t=d();e&&e.options.maxWidth!==t&&(e.options.minWidth=t,e.options.maxWidth=t,e.update());let n=e?.getElement()?.querySelector(`.leaflet-popup-close-button`);n&&(n.setAttribute(`aria-label`,h()),n.innerHTML=m()),e?.getElement()?.querySelectorAll(`[data-path]`).forEach(e=>{e.addEventListener(`click`,t=>{t.preventDefault(),t.stopPropagation();let n=e.dataset.path;n&&i(n)})})}),r.on(`popupclose`,()=>{o.id===a&&(o.id=``,u.setStyle(e=>l(String(e?.properties?.id??``))))})}}).addTo(a);for(let e of r.features){let[t,r]=e.properties.label;n.default.marker([t,r],{interactive:!1,keyboard:!1,zIndexOffset:800,icon:n.default.divIcon({className:`province-label-icon`,html:`<span class="province-label">${e.properties.name}</span>`,iconSize:[0,0]})}).addTo(a)}let d=u.getBounds(),f=()=>{a.invalidateSize(),a.fitBounds(d,{padding:[28,28],animate:!1})},g=!1,v=()=>{g||e.clientWidth===0||e.clientHeight===0||(g=!0,f(),ee(a),S(e),y.disconnect())},y=new ResizeObserver(v);return y.observe(e),v(),{zoomBy(e){a.setZoom(Math.min(a.getMaxZoom(),Math.max(a.getMinZoom(),a.getZoom()+e)))},home(){o.id=``,a.closePopup(),u.setStyle(e=>l(String(e?.properties?.id??``))),f()},remove:()=>{y.disconnect(),a.remove()}}}function ne(e,t,i,a,o){let s=_(e),u=new Map,d=r.features.find(e=>String(e.properties?.id??``)===t),f=d?n.default.geoJSON({type:`FeatureCollection`,features:[d]},{interactive:!1,style:{color:T,weight:1.5,fillColor:T,fillOpacity:.12}}).addTo(s):null,g=e=>{for(let[t,n]of u)n.setIcon(t===e?l:c)},v=e=>{let t=u.get(e);if(!t){o(e);return}s.closePopup(),t.openPopup()};for(let t of i){let r=n.default.marker([t.lat,t.lng],{icon:c}).addTo(s);r.bindTooltip(t.card.label,{direction:`right`,offset:[8,-28],opacity:1,className:`pin-flag`}),r.bindPopup(()=>p(t.card),{className:`town-pin-popup`,minWidth:390,maxWidth:390,closeButton:!0}),r.on(`popupopen`,()=>{let n=r.getPopup(),i=e.clientWidth<900?260:390;n&&n.options.maxWidth!==i&&(n.options.minWidth=i,n.options.maxWidth=i,n.update()),g(t.slug),r.closeTooltip();let s=n?.getElement()?.querySelector(`.leaflet-popup-close-button`);s&&(s.setAttribute(`aria-label`,h()),s.innerHTML=m());let c=n?.getElement();
1c?.querySelectorAll(`[data-path]`).forEach(e=>{e.addEventListener(`click`,t=>{t.preventDefault(),t.stopPropagation();let n=e.dataset.path;n&&a(n)})}),c?.querySelectorAll(`.nearby-link`).forEach(e=>{e.addEventListener(`click`,t=>{t.preventDefault(),t.stopPropagation();let n=e.dataset.slug;n&&(u.has(n)?v(n):o(n))})})}),r.on(`popupclose`,()=>{window.setTimeout(()=>{[...u.values()].some(e=>e.isPopupOpen())||g(``)},0)}),u.set(t.slug,r)}let y=f?.getBounds(),b=y&&y.isValid()?y:i.length?n.default.latLngBounds(i.map(e=>[e.lat,e.lng])):null;if(b)for(let e of i)b.extend([e.lat,e.lng]);let x=()=>{s.invalidateSize(),b?.isValid()&&s.fitBounds(b,{padding:[36,36],maxZoom:11,animate:!1})},C=!1,w=()=>{C||e.clientWidth===0||e.clientHeight===0||(C=!0,x(),ee(s),S(e),te.disconnect())},te=new ResizeObserver(w);return te.observe(e),w(),{zoomBy(e){s.setZoom(Math.min(s.getMaxZoom(),Math.max(s.getMinZoom(),s.getZoom()+e)))},home(){s.closePopup(),g(``),x()},remove:()=>{te.disconnect(),s.remove()}}}export{C as mountOverview,ne as mountProvinceTowns,E as mountProvinces,w as mountTown};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.