@mattilsynet/design 2.2.19 → 2.2.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/mtds/atlas/atlas-element.d.ts +7 -5
- package/mtds/atlas/atlas-element.js +70 -38
- package/mtds/atlas/atlas-element.js.map +1 -1
- package/mtds/atlas/atlas.css.js +27 -9
- package/mtds/atlas/atlas.css.js.map +1 -1
- package/mtds/atlas/atlas.stories.d.ts +4 -1
- package/mtds/atlas/cluster.js +1149 -0
- package/mtds/atlas/cluster.js.map +1 -0
- package/mtds/atlas.iife.js +629 -685
- package/mtds/atlas.js +4 -2
- package/mtds/atlas.js.map +1 -1
- package/mtds/external/leaflet/dist/leaflet-src.js +6265 -0
- package/mtds/external/leaflet/dist/leaflet-src.js.map +1 -0
- package/mtds/external/leaflet/dist/leaflet.css.js +607 -0
- package/mtds/external/leaflet/dist/leaflet.css.js.map +1 -0
- package/mtds/index.iife.js +12 -12
- package/mtds/package.json.js +1 -1
- package/mtds/styles.css +1 -1
- package/mtds/styles.json +43 -43
- package/mtds/styles.module.css.js +53 -53
- package/mtds/tabs/tabs.stories.d.ts +1 -0
- package/mtds/utils.d.ts +1 -1
- package/mtds/utils.js +9 -9
- package/mtds/utils.js.map +1 -1
- package/package.json +5 -6
- package/mtds/atlas/atlas.d.ts +0 -14
package/mtds/atlas.iife.js
CHANGED
|
@@ -1,685 +1,614 @@
|
|
|
1
|
-
var mtdsatlas=function(Pe){"use strict";function Cn(K,A){for(var y=0;y<A.length;y++){const Y=A[y];if(typeof Y!="string"&&!Array.isArray(Y)){for(const O in Y)if(O!=="default"&&!(O in K)){const r=Object.getOwnPropertyDescriptor(Y,O);r&&Object.defineProperty(K,O,r.get?r:{enumerable:!0,get:()=>Y[O]})}}}return Object.freeze(Object.defineProperty(K,Symbol.toStringTag,{value:"Module"}))}function Mn(K){return K&&K.__esModule&&Object.prototype.hasOwnProperty.call(K,"default")?K.default:K}var Ft={exports:{}};var Tn=Ft.exports,ai;function kn(){return ai||(ai=1,function(K,A){(function(y,Y){Y(A)})(Tn,function(y){var Y="1.9.4";function O(t){var e,i,n,o;for(i=1,n=arguments.length;i<n;i++){o=arguments[i];for(e in o)t[e]=o[e]}return t}var r=Object.create||function(){function t(){}return function(e){return t.prototype=e,new t}}();function a(t,e){var i=Array.prototype.slice;if(t.bind)return t.bind.apply(t,i.call(arguments,1));var n=i.call(arguments,2);return function(){return t.apply(e,n.length?n.concat(i.call(arguments)):arguments)}}var h=0;function u(t){return"_leaflet_id"in t||(t._leaflet_id=++h),t._leaflet_id}function _(t,e,i){var n,o,s,l;return l=function(){n=!1,o&&(s.apply(i,o),o=!1)},s=function(){n?o=arguments:(t.apply(i,arguments),setTimeout(l,e),n=!0)},s}function p(t,e,i){var n=e[1],o=e[0],s=n-o;return t===n&&i?t:((t-o)%s+s)%s+o}function c(){return!1}function g(t,e){if(e===!1)return t;var i=Math.pow(10,e===void 0?6:e);return Math.round(t*i)/i}function m(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function b(t){return m(t).split(/\s+/)}function x(t,e){Object.prototype.hasOwnProperty.call(t,"options")||(t.options=t.options?r(t.options):{});for(var i in e)t.options[i]=e[i];return t.options}function R(t,e,i){var n=[];for(var o in t)n.push(encodeURIComponent(i?o.toUpperCase():o)+"="+encodeURIComponent(t[o]));return(!e||e.indexOf("?")===-1?"?":"&")+n.join("&")}var S=/\{ *([\w_ -]+) *\}/g;function F(t,e){return t.replace(S,function(i,n){var o=e[n];if(o===void 0)throw new Error("No value provided for variable "+i);return typeof o=="function"&&(o=o(e)),o})}var H=Array.isArray||function(t){return Object.prototype.toString.call(t)==="[object Array]"};function mt(t,e){for(var i=0;i<t.length;i++)if(t[i]===e)return i;return-1}var nt="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function Gt(t){return window["webkit"+t]||window["moz"+t]||window["ms"+t]}var ui=0;function fi(t){var e=+new Date,i=Math.max(0,16-(e-ui));return ui=e+i,window.setTimeout(t,i)}var Me=window.requestAnimationFrame||Gt("RequestAnimationFrame")||fi,ci=window.cancelAnimationFrame||Gt("CancelAnimationFrame")||Gt("CancelRequestAnimationFrame")||function(t){window.clearTimeout(t)};function Q(t,e,i){if(i&&Me===fi)t.call(e);else return Me.call(window,a(t,e))}function rt(t){t&&ci.call(window,t)}var Hn={__proto__:null,extend:O,create:r,bind:a,get lastId(){return h},stamp:u,throttle:_,wrapNum:p,falseFn:c,formatNum:g,trim:m,splitWords:b,setOptions:x,getParamString:R,template:F,isArray:H,indexOf:mt,emptyImageUrl:nt,requestFn:Me,cancelFn:ci,requestAnimFrame:Q,cancelAnimFrame:rt};function gt(){}gt.extend=function(t){var e=function(){x(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},i=e.__super__=this.prototype,n=r(i);n.constructor=e,e.prototype=n;for(var o in this)Object.prototype.hasOwnProperty.call(this,o)&&o!=="prototype"&&o!=="__super__"&&(e[o]=this[o]);return t.statics&&O(e,t.statics),t.includes&&(Gn(t.includes),O.apply(null,[n].concat(t.includes))),O(n,t),delete n.statics,delete n.includes,n.options&&(n.options=i.options?r(i.options):{},O(n.options,t.options)),n._initHooks=[],n.callInitHooks=function(){if(!this._initHooksCalled){i.callInitHooks&&i.callInitHooks.call(this),this._initHooksCalled=!0;for(var s=0,l=n._initHooks.length;s<l;s++)n._initHooks[s].call(this)}},e},gt.include=function(t){var e=this.prototype.options;return O(this.prototype,t),t.options&&(this.prototype.options=e,this.mergeOptions(t.options)),this},gt.mergeOptions=function(t){return O(this.prototype.options,t),this},gt.addInitHook=function(t){var e=Array.prototype.slice.call(arguments,1),i=typeof t=="function"?t:function(){this[t].apply(this,e)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(i),this};function Gn(t){if(!(typeof L>"u"||!L||!L.Mixin)){t=H(t)?t:[t];for(var e=0;e<t.length;e++)t[e]===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.",new Error().stack)}}var ot={on:function(t,e,i){if(typeof t=="object")for(var n in t)this._on(n,t[n],e);else{t=b(t);for(var o=0,s=t.length;o<s;o++)this._on(t[o],e,i)}return this},off:function(t,e,i){if(!arguments.length)delete this._events;else if(typeof t=="object")for(var n in t)this._off(n,t[n],e);else{t=b(t);for(var o=arguments.length===1,s=0,l=t.length;s<l;s++)o?this._off(t[s]):this._off(t[s],e,i)}return this},_on:function(t,e,i,n){if(typeof e!="function"){console.warn("wrong listener type: "+typeof e);return}if(this._listens(t,e,i)===!1){i===this&&(i=void 0);var o={fn:e,ctx:i};n&&(o.once=!0),this._events=this._events||{},this._events[t]=this._events[t]||[],this._events[t].push(o)}},_off:function(t,e,i){var n,o,s;if(this._events&&(n=this._events[t],!!n)){if(arguments.length===1){if(this._firingCount)for(o=0,s=n.length;o<s;o++)n[o].fn=c;delete this._events[t];return}if(typeof e!="function"){console.warn("wrong listener type: "+typeof e);return}var l=this._listens(t,e,i);if(l!==!1){var f=n[l];this._firingCount&&(f.fn=c,this._events[t]=n=n.slice()),n.splice(l,1)}}},fire:function(t,e,i){if(!this.listens(t,i))return this;var n=O({},e,{type:t,target:this,sourceTarget:e&&e.sourceTarget||this});if(this._events){var o=this._events[t];if(o){this._firingCount=this._firingCount+1||1;for(var s=0,l=o.length;s<l;s++){var f=o[s],d=f.fn;f.once&&this.off(t,d,f.ctx),d.call(f.ctx||this,n)}this._firingCount--}}return i&&this._propagateEvent(n),this},listens:function(t,e,i,n){typeof t!="string"&&console.warn('"string" type argument expected');var o=e;typeof e!="function"&&(n=!!e,o=void 0,i=void 0);var s=this._events&&this._events[t];if(s&&s.length&&this._listens(t,o,i)!==!1)return!0;if(n){for(var l in this._eventParents)if(this._eventParents[l].listens(t,e,i,n))return!0}return!1},_listens:function(t,e,i){if(!this._events)return!1;var n=this._events[t]||[];if(!e)return!!n.length;i===this&&(i=void 0);for(var o=0,s=n.length;o<s;o++)if(n[o].fn===e&&n[o].ctx===i)return o;return!1},once:function(t,e,i){if(typeof t=="object")for(var n in t)this._on(n,t[n],e,!0);else{t=b(t);for(var o=0,s=t.length;o<s;o++)this._on(t[o],e,i,!0)}return this},addEventParent:function(t){return this._eventParents=this._eventParents||{},this._eventParents[u(t)]=t,this},removeEventParent:function(t){return this._eventParents&&delete this._eventParents[u(t)],this},_propagateEvent:function(t){for(var e in this._eventParents)this._eventParents[e].fire(t.type,O({layer:t.target,propagatedFrom:t.target},t),!0)}};ot.addEventListener=ot.on,ot.removeEventListener=ot.clearAllEventListeners=ot.off,ot.addOneTimeEventListener=ot.once,ot.fireEvent=ot.fire,ot.hasEventListeners=ot.listens;var Wt=gt.extend(ot);function T(t,e,i){this.x=i?Math.round(t):t,this.y=i?Math.round(e):e}var di=Math.trunc||function(t){return t>0?Math.floor(t):Math.ceil(t)};T.prototype={clone:function(){return new T(this.x,this.y)},add:function(t){return this.clone()._add(M(t))},_add:function(t){return this.x+=t.x,this.y+=t.y,this},subtract:function(t){return this.clone()._subtract(M(t))},_subtract:function(t){return this.x-=t.x,this.y-=t.y,this},divideBy:function(t){return this.clone()._divideBy(t)},_divideBy:function(t){return this.x/=t,this.y/=t,this},multiplyBy:function(t){return this.clone()._multiplyBy(t)},_multiplyBy:function(t){return this.x*=t,this.y*=t,this},scaleBy:function(t){return new T(this.x*t.x,this.y*t.y)},unscaleBy:function(t){return new T(this.x/t.x,this.y/t.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=di(this.x),this.y=di(this.y),this},distanceTo:function(t){t=M(t);var e=t.x-this.x,i=t.y-this.y;return Math.sqrt(e*e+i*i)},equals:function(t){return t=M(t),t.x===this.x&&t.y===this.y},contains:function(t){return t=M(t),Math.abs(t.x)<=Math.abs(this.x)&&Math.abs(t.y)<=Math.abs(this.y)},toString:function(){return"Point("+g(this.x)+", "+g(this.y)+")"}};function M(t,e,i){return t instanceof T?t:H(t)?new T(t[0],t[1]):t==null?t:typeof t=="object"&&"x"in t&&"y"in t?new T(t.x,t.y):new T(t,e,i)}function G(t,e){if(t)for(var i=e?[t,e]:t,n=0,o=i.length;n<o;n++)this.extend(i[n])}G.prototype={extend:function(t){var e,i;if(!t)return this;if(t instanceof T||typeof t[0]=="number"||"x"in t)e=i=M(t);else if(t=tt(t),e=t.min,i=t.max,!e||!i)return this;return!this.min&&!this.max?(this.min=e.clone(),this.max=i.clone()):(this.min.x=Math.min(e.x,this.min.x),this.max.x=Math.max(i.x,this.max.x),this.min.y=Math.min(e.y,this.min.y),this.max.y=Math.max(i.y,this.max.y)),this},getCenter:function(t){return M((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,t)},getBottomLeft:function(){return M(this.min.x,this.max.y)},getTopRight:function(){return M(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(t){var e,i;return typeof t[0]=="number"||t instanceof T?t=M(t):t=tt(t),t instanceof G?(e=t.min,i=t.max):e=i=t,e.x>=this.min.x&&i.x<=this.max.x&&e.y>=this.min.y&&i.y<=this.max.y},intersects:function(t){t=tt(t);var e=this.min,i=this.max,n=t.min,o=t.max,s=o.x>=e.x&&n.x<=i.x,l=o.y>=e.y&&n.y<=i.y;return s&&l},overlaps:function(t){t=tt(t);var e=this.min,i=this.max,n=t.min,o=t.max,s=o.x>e.x&&n.x<i.x,l=o.y>e.y&&n.y<i.y;return s&&l},isValid:function(){return!!(this.min&&this.max)},pad:function(t){var e=this.min,i=this.max,n=Math.abs(e.x-i.x)*t,o=Math.abs(e.y-i.y)*t;return tt(M(e.x-n,e.y-o),M(i.x+n,i.y+o))},equals:function(t){return t?(t=tt(t),this.min.equals(t.getTopLeft())&&this.max.equals(t.getBottomRight())):!1}};function tt(t,e){return!t||t instanceof G?t:new G(t,e)}function et(t,e){if(t)for(var i=e?[t,e]:t,n=0,o=i.length;n<o;n++)this.extend(i[n])}et.prototype={extend:function(t){var e=this._southWest,i=this._northEast,n,o;if(t instanceof N)n=t,o=t;else if(t instanceof et){if(n=t._southWest,o=t._northEast,!n||!o)return this}else return t?this.extend(Z(t)||V(t)):this;return!e&&!i?(this._southWest=new N(n.lat,n.lng),this._northEast=new N(o.lat,o.lng)):(e.lat=Math.min(n.lat,e.lat),e.lng=Math.min(n.lng,e.lng),i.lat=Math.max(o.lat,i.lat),i.lng=Math.max(o.lng,i.lng)),this},pad:function(t){var e=this._southWest,i=this._northEast,n=Math.abs(e.lat-i.lat)*t,o=Math.abs(e.lng-i.lng)*t;return new et(new N(e.lat-n,e.lng-o),new N(i.lat+n,i.lng+o))},getCenter:function(){return new N((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 N(this.getNorth(),this.getWest())},getSouthEast:function(){return new N(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(t){typeof t[0]=="number"||t instanceof N||"lat"in t?t=Z(t):t=V(t);var e=this._southWest,i=this._northEast,n,o;return t instanceof et?(n=t.getSouthWest(),o=t.getNorthEast()):n=o=t,n.lat>=e.lat&&o.lat<=i.lat&&n.lng>=e.lng&&o.lng<=i.lng},intersects:function(t){t=V(t);var e=this._southWest,i=this._northEast,n=t.getSouthWest(),o=t.getNorthEast(),s=o.lat>=e.lat&&n.lat<=i.lat,l=o.lng>=e.lng&&n.lng<=i.lng;return s&&l},overlaps:function(t){t=V(t);var e=this._southWest,i=this._northEast,n=t.getSouthWest(),o=t.getNorthEast(),s=o.lat>e.lat&&n.lat<i.lat,l=o.lng>e.lng&&n.lng<i.lng;return s&&l},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(t,e){return t?(t=V(t),this._southWest.equals(t.getSouthWest(),e)&&this._northEast.equals(t.getNorthEast(),e)):!1},isValid:function(){return!!(this._southWest&&this._northEast)}};function V(t,e){return t instanceof et?t:new et(t,e)}function N(t,e,i){if(isNaN(t)||isNaN(e))throw new Error("Invalid LatLng object: ("+t+", "+e+")");this.lat=+t,this.lng=+e,i!==void 0&&(this.alt=+i)}N.prototype={equals:function(t,e){if(!t)return!1;t=Z(t);var i=Math.max(Math.abs(this.lat-t.lat),Math.abs(this.lng-t.lng));return i<=(e===void 0?1e-9:e)},toString:function(t){return"LatLng("+g(this.lat,t)+", "+g(this.lng,t)+")"},distanceTo:function(t){return bt.distance(this,Z(t))},wrap:function(){return bt.wrapLatLng(this)},toBounds:function(t){var e=180*t/40075017,i=e/Math.cos(Math.PI/180*this.lat);return V([this.lat-e,this.lng-i],[this.lat+e,this.lng+i])},clone:function(){return new N(this.lat,this.lng,this.alt)}};function Z(t,e,i){return t instanceof N?t:H(t)&&typeof t[0]!="object"?t.length===3?new N(t[0],t[1],t[2]):t.length===2?new N(t[0],t[1]):null:t==null?t:typeof t=="object"&&"lat"in t?new N(t.lat,"lng"in t?t.lng:t.lon,t.alt):e===void 0?null:new N(t,e,i)}var vt={latLngToPoint:function(t,e){var i=this.projection.project(t),n=this.scale(e);return this.transformation._transform(i,n)},pointToLatLng:function(t,e){var i=this.scale(e),n=this.transformation.untransform(t,i);return this.projection.unproject(n)},project:function(t){return this.projection.project(t)},unproject:function(t){return this.projection.unproject(t)},scale:function(t){return 256*Math.pow(2,t)},zoom:function(t){return Math.log(t/256)/Math.LN2},getProjectedBounds:function(t){if(this.infinite)return null;var e=this.projection.bounds,i=this.scale(t),n=this.transformation.transform(e.min,i),o=this.transformation.transform(e.max,i);return new G(n,o)},infinite:!1,wrapLatLng:function(t){var e=this.wrapLng?p(t.lng,this.wrapLng,!0):t.lng,i=this.wrapLat?p(t.lat,this.wrapLat,!0):t.lat,n=t.alt;return new N(i,e,n)},wrapLatLngBounds:function(t){var e=t.getCenter(),i=this.wrapLatLng(e),n=e.lat-i.lat,o=e.lng-i.lng;if(n===0&&o===0)return t;var s=t.getSouthWest(),l=t.getNorthEast(),f=new N(s.lat-n,s.lng-o),d=new N(l.lat-n,l.lng-o);return new et(f,d)}},bt=O({},vt,{wrapLng:[-180,180],R:6371e3,distance:function(t,e){var i=Math.PI/180,n=t.lat*i,o=e.lat*i,s=Math.sin((e.lat-t.lat)*i/2),l=Math.sin((e.lng-t.lng)*i/2),f=s*s+Math.cos(n)*Math.cos(o)*l*l,d=2*Math.atan2(Math.sqrt(f),Math.sqrt(1-f));return this.R*d}}),_i=6378137,Te={R:_i,MAX_LATITUDE:85.0511287798,project:function(t){var e=Math.PI/180,i=this.MAX_LATITUDE,n=Math.max(Math.min(i,t.lat),-i),o=Math.sin(n*e);return new T(this.R*t.lng*e,this.R*Math.log((1+o)/(1-o))/2)},unproject:function(t){var e=180/Math.PI;return new N((2*Math.atan(Math.exp(t.y/this.R))-Math.PI/2)*e,t.x*e/this.R)},bounds:function(){var t=_i*Math.PI;return new G([-t,-t],[t,t])}()};function ke(t,e,i,n){if(H(t)){this._a=t[0],this._b=t[1],this._c=t[2],this._d=t[3];return}this._a=t,this._b=e,this._c=i,this._d=n}ke.prototype={transform:function(t,e){return this._transform(t.clone(),e)},_transform:function(t,e){return e=e||1,t.x=e*(this._a*t.x+this._b),t.y=e*(this._c*t.y+this._d),t},untransform:function(t,e){return e=e||1,new T((t.x/e-this._b)/this._a,(t.y/e-this._d)/this._c)}};function Ut(t,e,i,n){return new ke(t,e,i,n)}var Se=O({},bt,{code:"EPSG:3857",projection:Te,transformation:function(){var t=.5/(Math.PI*Te.R);return Ut(t,.5,-t,.5)}()}),Wn=O({},Se,{code:"EPSG:900913"});function pi(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function mi(t,e){var i="",n,o,s,l,f,d;for(n=0,s=t.length;n<s;n++){for(f=t[n],o=0,l=f.length;o<l;o++)d=f[o],i+=(o?"L":"M")+d.x+" "+d.y;i+=e?P.svg?"z":"x":""}return i||"M0 0"}var ze=document.documentElement.style,re="ActiveXObject"in window,Un=re&&!document.addEventListener,gi="msLaunchUri"in navigator&&!("documentMode"in document),Oe=ft("webkit"),vi=ft("android"),yi=ft("android 2")||ft("android 3"),Vn=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),qn=vi&&ft("Google")&&Vn<537&&!("AudioNode"in window),Ee=!!window.opera,Li=!gi&&ft("chrome"),xi=ft("gecko")&&!Oe&&!Ee&&!re,jn=!Li&&ft("safari"),wi=ft("phantom"),bi="OTransition"in ze,Kn=navigator.platform.indexOf("Win")===0,Pi=re&&"transition"in ze,Ze="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!yi,Ci="MozPerspective"in ze,Yn=!window.L_DISABLE_3D&&(Pi||Ze||Ci)&&!bi&&!wi,Vt=typeof orientation<"u"||ft("mobile"),Xn=Vt&&Oe,Jn=Vt&&Ze,Mi=!window.PointerEvent&&window.MSPointerEvent,Ti=!!(window.PointerEvent||Mi),ki="ontouchstart"in window||!!window.TouchEvent,$n=!window.L_NO_TOUCH&&(ki||Ti),Qn=Vt&&Ee,to=Vt&&xi,eo=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,io=function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("testPassiveEventSupport",c,e),window.removeEventListener("testPassiveEventSupport",c,e)}catch{}return t}(),no=function(){return!!document.createElement("canvas").getContext}(),Ie=!!(document.createElementNS&&pi("svg").createSVGRect),oo=!!Ie&&function(){var t=document.createElement("div");return t.innerHTML="<svg/>",(t.firstChild&&t.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"}(),ro=!Ie&&function(){try{var t=document.createElement("div");t.innerHTML='<v:shape adj="1"/>';var e=t.firstChild;return e.style.behavior="url(#default#VML)",e&&typeof e.adj=="object"}catch{return!1}}(),so=navigator.platform.indexOf("Mac")===0,ao=navigator.platform.indexOf("Linux")===0;function ft(t){return navigator.userAgent.toLowerCase().indexOf(t)>=0}var P={ie:re,ielt9:Un,edge:gi,webkit:Oe,android:vi,android23:yi,androidStock:qn,opera:Ee,chrome:Li,gecko:xi,safari:jn,phantom:wi,opera12:bi,win:Kn,ie3d:Pi,webkit3d:Ze,gecko3d:Ci,any3d:Yn,mobile:Vt,mobileWebkit:Xn,mobileWebkit3d:Jn,msPointer:Mi,pointer:Ti,touch:$n,touchNative:ki,mobileOpera:Qn,mobileGecko:to,retina:eo,passiveEvents:io,canvas:no,svg:Ie,vml:ro,inlineSvg:oo,mac:so,linux:ao},Si=P.msPointer?"MSPointerDown":"pointerdown",zi=P.msPointer?"MSPointerMove":"pointermove",Oi=P.msPointer?"MSPointerUp":"pointerup",Ei=P.msPointer?"MSPointerCancel":"pointercancel",Be={touchstart:Si,touchmove:zi,touchend:Oi,touchcancel:Ei},Zi={touchstart:_o,touchmove:se,touchend:se,touchcancel:se},Ot={},Ii=!1;function ho(t,e,i){return e==="touchstart"&&co(),Zi[e]?(i=Zi[e].bind(this,i),t.addEventListener(Be[e],i,!1),i):(console.warn("wrong event specified:",e),c)}function lo(t,e,i){if(!Be[e]){console.warn("wrong event specified:",e);return}t.removeEventListener(Be[e],i,!1)}function uo(t){Ot[t.pointerId]=t}function fo(t){Ot[t.pointerId]&&(Ot[t.pointerId]=t)}function Bi(t){delete Ot[t.pointerId]}function co(){Ii||(document.addEventListener(Si,uo,!0),document.addEventListener(zi,fo,!0),document.addEventListener(Oi,Bi,!0),document.addEventListener(Ei,Bi,!0),Ii=!0)}function se(t,e){if(e.pointerType!==(e.MSPOINTER_TYPE_MOUSE||"mouse")){e.touches=[];for(var i in Ot)e.touches.push(Ot[i]);e.changedTouches=[e],t(e)}}function _o(t,e){e.MSPOINTER_TYPE_TOUCH&&e.pointerType===e.MSPOINTER_TYPE_TOUCH&&J(e),se(t,e)}function po(t){var e={},i,n;for(n in t)i=t[n],e[n]=i&&i.bind?i.bind(t):i;return t=e,e.type="dblclick",e.detail=2,e.isTrusted=!1,e._simulated=!0,e}var mo=200;function go(t,e){t.addEventListener("dblclick",e);var i=0,n;function o(s){if(s.detail!==1){n=s.detail;return}if(!(s.pointerType==="mouse"||s.sourceCapabilities&&!s.sourceCapabilities.firesTouchEvents)){var l=Fi(s);if(!(l.some(function(d){return d instanceof HTMLLabelElement&&d.attributes.for})&&!l.some(function(d){return d instanceof HTMLInputElement||d instanceof HTMLSelectElement}))){var f=Date.now();f-i<=mo?(n++,n===2&&e(po(s))):n=1,i=f}}}return t.addEventListener("click",o),{dblclick:e,simDblclick:o}}function vo(t,e){t.removeEventListener("dblclick",e.dblclick),t.removeEventListener("click",e.simDblclick)}var Ae=le(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),qt=le(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),Ai=qt==="webkitTransition"||qt==="OTransition"?qt+"End":"transitionend";function Ni(t){return typeof t=="string"?document.getElementById(t):t}function jt(t,e){var i=t.style[e]||t.currentStyle&&t.currentStyle[e];if((!i||i==="auto")&&document.defaultView){var n=document.defaultView.getComputedStyle(t,null);i=n?n[e]:null}return i==="auto"?null:i}function B(t,e,i){var n=document.createElement(t);return n.className=e||"",i&&i.appendChild(n),n}function W(t){var e=t.parentNode;e&&e.removeChild(t)}function ae(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function Et(t){var e=t.parentNode;e&&e.lastChild!==t&&e.appendChild(t)}function Zt(t){var e=t.parentNode;e&&e.firstChild!==t&&e.insertBefore(t,e.firstChild)}function Ne(t,e){if(t.classList!==void 0)return t.classList.contains(e);var i=he(t);return i.length>0&&new RegExp("(^|\\s)"+e+"(\\s|$)").test(i)}function z(t,e){if(t.classList!==void 0)for(var i=b(e),n=0,o=i.length;n<o;n++)t.classList.add(i[n]);else if(!Ne(t,e)){var s=he(t);Re(t,(s?s+" ":"")+e)}}function U(t,e){t.classList!==void 0?t.classList.remove(e):Re(t,m((" "+he(t)+" ").replace(" "+e+" "," ")))}function Re(t,e){t.className.baseVal===void 0?t.className=e:t.className.baseVal=e}function he(t){return t.correspondingElement&&(t=t.correspondingElement),t.className.baseVal===void 0?t.className:t.className.baseVal}function st(t,e){"opacity"in t.style?t.style.opacity=e:"filter"in t.style&&yo(t,e)}function yo(t,e){var i=!1,n="DXImageTransform.Microsoft.Alpha";try{i=t.filters.item(n)}catch{if(e===1)return}e=Math.round(e*100),i?(i.Enabled=e!==100,i.Opacity=e):t.style.filter+=" progid:"+n+"(opacity="+e+")"}function le(t){for(var e=document.documentElement.style,i=0;i<t.length;i++)if(t[i]in e)return t[i];return!1}function Mt(t,e,i){var n=e||new T(0,0);t.style[Ae]=(P.ie3d?"translate("+n.x+"px,"+n.y+"px)":"translate3d("+n.x+"px,"+n.y+"px,0)")+(i?" scale("+i+")":"")}function q(t,e){t._leaflet_pos=e,P.any3d?Mt(t,e):(t.style.left=e.x+"px",t.style.top=e.y+"px")}function Tt(t){return t._leaflet_pos||new T(0,0)}var Kt,Yt,De;if("onselectstart"in document)Kt=function(){k(window,"selectstart",J)},Yt=function(){D(window,"selectstart",J)};else{var Xt=le(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);Kt=function(){if(Xt){var t=document.documentElement.style;De=t[Xt],t[Xt]="none"}},Yt=function(){Xt&&(document.documentElement.style[Xt]=De,De=void 0)}}function Fe(){k(window,"dragstart",J)}function He(){D(window,"dragstart",J)}var ue,Ge;function We(t){for(;t.tabIndex===-1;)t=t.parentNode;t.style&&(fe(),ue=t,Ge=t.style.outlineStyle,t.style.outlineStyle="none",k(window,"keydown",fe))}function fe(){ue&&(ue.style.outlineStyle=Ge,ue=void 0,Ge=void 0,D(window,"keydown",fe))}function Ri(t){do t=t.parentNode;while((!t.offsetWidth||!t.offsetHeight)&&t!==document.body);return t}function Ue(t){var e=t.getBoundingClientRect();return{x:e.width/t.offsetWidth||1,y:e.height/t.offsetHeight||1,boundingClientRect:e}}var Lo={__proto__:null,TRANSFORM:Ae,TRANSITION:qt,TRANSITION_END:Ai,get:Ni,getStyle:jt,create:B,remove:W,empty:ae,toFront:Et,toBack:Zt,hasClass:Ne,addClass:z,removeClass:U,setClass:Re,getClass:he,setOpacity:st,testProp:le,setTransform:Mt,setPosition:q,getPosition:Tt,get disableTextSelection(){return Kt},get enableTextSelection(){return Yt},disableImageDrag:Fe,enableImageDrag:He,preventOutline:We,restoreOutline:fe,getSizedParentNode:Ri,getScale:Ue};function k(t,e,i,n){if(e&&typeof e=="object")for(var o in e)qe(t,o,e[o],i);else{e=b(e);for(var s=0,l=e.length;s<l;s++)qe(t,e[s],i,n)}return this}var ct="_leaflet_events";function D(t,e,i,n){if(arguments.length===1)Di(t),delete t[ct];else if(e&&typeof e=="object")for(var o in e)je(t,o,e[o],i);else if(e=b(e),arguments.length===2)Di(t,function(f){return mt(e,f)!==-1});else for(var s=0,l=e.length;s<l;s++)je(t,e[s],i,n);return this}function Di(t,e){for(var i in t[ct]){var n=i.split(/\d/)[0];(!e||e(n))&&je(t,n,null,null,i)}}var Ve={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function qe(t,e,i,n){var o=e+u(i)+(n?"_"+u(n):"");if(t[ct]&&t[ct][o])return this;var s=function(f){return i.call(n||t,f||window.event)},l=s;!P.touchNative&&P.pointer&&e.indexOf("touch")===0?s=ho(t,e,s):P.touch&&e==="dblclick"?s=go(t,s):"addEventListener"in t?e==="touchstart"||e==="touchmove"||e==="wheel"||e==="mousewheel"?t.addEventListener(Ve[e]||e,s,P.passiveEvents?{passive:!1}:!1):e==="mouseenter"||e==="mouseleave"?(s=function(f){f=f||window.event,Ye(t,f)&&l(f)},t.addEventListener(Ve[e],s,!1)):t.addEventListener(e,l,!1):t.attachEvent("on"+e,s),t[ct]=t[ct]||{},t[ct][o]=s}function je(t,e,i,n,o){o=o||e+u(i)+(n?"_"+u(n):"");var s=t[ct]&&t[ct][o];if(!s)return this;!P.touchNative&&P.pointer&&e.indexOf("touch")===0?lo(t,e,s):P.touch&&e==="dblclick"?vo(t,s):"removeEventListener"in t?t.removeEventListener(Ve[e]||e,s,!1):t.detachEvent("on"+e,s),t[ct][o]=null}function kt(t){return t.stopPropagation?t.stopPropagation():t.originalEvent?t.originalEvent._stopped=!0:t.cancelBubble=!0,this}function Ke(t){return qe(t,"wheel",kt),this}function Jt(t){return k(t,"mousedown touchstart dblclick contextmenu",kt),t._leaflet_disable_click=!0,this}function J(t){return t.preventDefault?t.preventDefault():t.returnValue=!1,this}function St(t){return J(t),kt(t),this}function Fi(t){if(t.composedPath)return t.composedPath();for(var e=[],i=t.target;i;)e.push(i),i=i.parentNode;return e}function Hi(t,e){if(!e)return new T(t.clientX,t.clientY);var i=Ue(e),n=i.boundingClientRect;return new T((t.clientX-n.left)/i.x-e.clientLeft,(t.clientY-n.top)/i.y-e.clientTop)}var xo=P.linux&&P.chrome?window.devicePixelRatio:P.mac?window.devicePixelRatio*3:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function Gi(t){return P.edge?t.wheelDeltaY/2:t.deltaY&&t.deltaMode===0?-t.deltaY/xo:t.deltaY&&t.deltaMode===1?-t.deltaY*20:t.deltaY&&t.deltaMode===2?-t.deltaY*60:t.deltaX||t.deltaZ?0:t.wheelDelta?(t.wheelDeltaY||t.wheelDelta)/2:t.detail&&Math.abs(t.detail)<32765?-t.detail*20:t.detail?t.detail/-32765*60:0}function Ye(t,e){var i=e.relatedTarget;if(!i)return!0;try{for(;i&&i!==t;)i=i.parentNode}catch{return!1}return i!==t}var wo={__proto__:null,on:k,off:D,stopPropagation:kt,disableScrollPropagation:Ke,disableClickPropagation:Jt,preventDefault:J,stop:St,getPropagationPath:Fi,getMousePosition:Hi,getWheelDelta:Gi,isExternalTarget:Ye,addListener:k,removeListener:D},Wi=Wt.extend({run:function(t,e,i,n){this.stop(),this._el=t,this._inProgress=!0,this._duration=i||.25,this._easeOutPower=1/Math.max(n||.5,.2),this._startPos=Tt(t),this._offset=e.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=Q(this._animate,this),this._step()},_step:function(t){var e=+new Date-this._startTime,i=this._duration*1e3;e<i?this._runFrame(this._easeOut(e/i),t):(this._runFrame(1),this._complete())},_runFrame:function(t,e){var i=this._startPos.add(this._offset.multiplyBy(t));e&&i._round(),q(this._el,i),this.fire("step")},_complete:function(){rt(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(t){return 1-Math.pow(1-t,this._easeOutPower)}}),I=Wt.extend({options:{crs:Se,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(t,e){e=x(this,e),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(t),this._initLayout(),this._onResize=a(this._onResize,this),this._initEvents(),e.maxBounds&&this.setMaxBounds(e.maxBounds),e.zoom!==void 0&&(this._zoom=this._limitZoom(e.zoom)),e.center&&e.zoom!==void 0&&this.setView(Z(e.center),e.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=qt&&P.any3d&&!P.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),k(this._proxy,Ai,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(t,e,i){if(e=e===void 0?this._zoom:this._limitZoom(e),t=this._limitCenter(Z(t),e,this.options.maxBounds),i=i||{},this._stop(),this._loaded&&!i.reset&&i!==!0){i.animate!==void 0&&(i.zoom=O({animate:i.animate},i.zoom),i.pan=O({animate:i.animate,duration:i.duration},i.pan));var n=this._zoom!==e?this._tryAnimatedZoom&&this._tryAnimatedZoom(t,e,i.zoom):this._tryAnimatedPan(t,i.pan);if(n)return clearTimeout(this._sizeTimer),this}return this._resetView(t,e,i.pan&&i.pan.noMoveStart),this},setZoom:function(t,e){return this._loaded?this.setView(this.getCenter(),t,{zoom:e}):(this._zoom=t,this)},zoomIn:function(t,e){return t=t||(P.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+t,e)},zoomOut:function(t,e){return t=t||(P.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-t,e)},setZoomAround:function(t,e,i){var n=this.getZoomScale(e),o=this.getSize().divideBy(2),s=t instanceof T?t:this.latLngToContainerPoint(t),l=s.subtract(o).multiplyBy(1-1/n),f=this.containerPointToLatLng(o.add(l));return this.setView(f,e,{zoom:i})},_getBoundsCenterZoom:function(t,e){e=e||{},t=t.getBounds?t.getBounds():V(t);var i=M(e.paddingTopLeft||e.padding||[0,0]),n=M(e.paddingBottomRight||e.padding||[0,0]),o=this.getBoundsZoom(t,!1,i.add(n));if(o=typeof e.maxZoom=="number"?Math.min(e.maxZoom,o):o,o===1/0)return{center:t.getCenter(),zoom:o};var s=n.subtract(i).divideBy(2),l=this.project(t.getSouthWest(),o),f=this.project(t.getNorthEast(),o),d=this.unproject(l.add(f).divideBy(2).add(s),o);return{center:d,zoom:o}},fitBounds:function(t,e){if(t=V(t),!t.isValid())throw new Error("Bounds are not valid.");var i=this._getBoundsCenterZoom(t,e);return this.setView(i.center,i.zoom,e)},fitWorld:function(t){return this.fitBounds([[-90,-180],[90,180]],t)},panTo:function(t,e){return this.setView(t,this._zoom,{pan:e})},panBy:function(t,e){if(t=M(t).round(),e=e||{},!t.x&&!t.y)return this.fire("moveend");if(e.animate!==!0&&!this.getSize().contains(t))return this._resetView(this.unproject(this.project(this.getCenter()).add(t)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new Wi,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),e.noMoveStart||this.fire("movestart"),e.animate!==!1){z(this._mapPane,"leaflet-pan-anim");var i=this._getMapPanePos().subtract(t).round();this._panAnim.run(this._mapPane,i,e.duration||.25,e.easeLinearity)}else this._rawPanBy(t),this.fire("move").fire("moveend");return this},flyTo:function(t,e,i){if(i=i||{},i.animate===!1||!P.any3d)return this.setView(t,e,i);this._stop();var n=this.project(this.getCenter()),o=this.project(t),s=this.getSize(),l=this._zoom;t=Z(t),e=e===void 0?l:e;var f=Math.max(s.x,s.y),d=f*this.getZoomScale(l,e),v=o.distanceTo(n)||1,w=1.42,C=w*w;function E(j){var be=j?-1:1,ur=j?d:f,fr=d*d-f*f+be*C*C*v*v,cr=2*ur*C*v,si=fr/cr,Pn=Math.sqrt(si*si+1)-si,dr=Pn<1e-9?-18:Math.log(Pn);return dr}function $(j){return(Math.exp(j)-Math.exp(-j))/2}function X(j){return(Math.exp(j)+Math.exp(-j))/2}function ht(j){return $(j)/X(j)}var it=E(0);function Dt(j){return f*(X(it)/X(it+w*j))}function sr(j){return f*(X(it)*ht(it+w*j)-$(it))/C}function ar(j){return 1-Math.pow(1-j,1.5)}var hr=Date.now(),wn=(E(1)-it)/w,lr=i.duration?1e3*i.duration:1e3*wn*.8;function bn(){var j=(Date.now()-hr)/lr,be=ar(j)*wn;j<=1?(this._flyToFrame=Q(bn,this),this._move(this.unproject(n.add(o.subtract(n).multiplyBy(sr(be)/v)),l),this.getScaleZoom(f/Dt(be),l),{flyTo:!0})):this._move(t,e)._moveEnd(!0)}return this._moveStart(!0,i.noMoveStart),bn.call(this),this},flyToBounds:function(t,e){var i=this._getBoundsCenterZoom(t,e);return this.flyTo(i.center,i.zoom,e)},setMaxBounds:function(t){return t=V(t),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),t.isValid()?(this.options.maxBounds=t,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},setMinZoom:function(t){var e=this.options.minZoom;return this.options.minZoom=t,this._loaded&&e!==t&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(t):this},setMaxZoom:function(t){var e=this.options.maxZoom;return this.options.maxZoom=t,this._loaded&&e!==t&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(t):this},panInsideBounds:function(t,e){this._enforcingBounds=!0;var i=this.getCenter(),n=this._limitCenter(i,this._zoom,V(t));return i.equals(n)||this.panTo(n,e),this._enforcingBounds=!1,this},panInside:function(t,e){e=e||{};var i=M(e.paddingTopLeft||e.padding||[0,0]),n=M(e.paddingBottomRight||e.padding||[0,0]),o=this.project(this.getCenter()),s=this.project(t),l=this.getPixelBounds(),f=tt([l.min.add(i),l.max.subtract(n)]),d=f.getSize();if(!f.contains(s)){this._enforcingBounds=!0;var v=s.subtract(f.getCenter()),w=f.extend(s).getSize().subtract(d);o.x+=v.x<0?-w.x:w.x,o.y+=v.y<0?-w.y:w.y,this.panTo(this.unproject(o),e),this._enforcingBounds=!1}return this},invalidateSize:function(t){if(!this._loaded)return this;t=O({animate:!1,pan:!0},t===!0?{animate:!0}:t);var e=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var i=this.getSize(),n=e.divideBy(2).round(),o=i.divideBy(2).round(),s=n.subtract(o);return!s.x&&!s.y?this:(t.animate&&t.pan?this.panBy(s):(t.pan&&this._rawPanBy(s),this.fire("move"),t.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(a(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:e,newSize:i}))},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(t){if(t=this._locateOptions=O({timeout:1e4,watch:!1},t),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var e=a(this._handleGeolocationResponse,this),i=a(this._handleGeolocationError,this);return t.watch?this._locationWatchId=navigator.geolocation.watchPosition(e,i,t):navigator.geolocation.getCurrentPosition(e,i,t),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(t){if(this._container._leaflet_id){var e=t.code,i=t.message||(e===1?"permission denied":e===2?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:e,message:"Geolocation error: "+i+"."})}},_handleGeolocationResponse:function(t){if(this._container._leaflet_id){var e=t.coords.latitude,i=t.coords.longitude,n=new N(e,i),o=n.toBounds(t.coords.accuracy*2),s=this._locateOptions;if(s.setView){var l=this.getBoundsZoom(o);this.setView(n,s.maxZoom?Math.min(l,s.maxZoom):l)}var f={latlng:n,bounds:o,timestamp:t.timestamp};for(var d in t.coords)typeof t.coords[d]=="number"&&(f[d]=t.coords[d]);this.fire("locationfound",f)}},addHandler:function(t,e){if(!e)return this;var i=this[t]=new e(this);return this._handlers.push(i),this.options[t]&&i.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch{this._container._leaflet_id=void 0,this._containerId=void 0}this._locationWatchId!==void 0&&this.stopLocate(),this._stop(),W(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(rt(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload");var t;for(t in this._layers)this._layers[t].remove();for(t in this._panes)W(this._panes[t]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(t,e){var i="leaflet-pane"+(t?" leaflet-"+t.replace("Pane","")+"-pane":""),n=B("div",i,e||this._mapPane);return t&&(this._panes[t]=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 t=this.getPixelBounds(),e=this.unproject(t.getBottomLeft()),i=this.unproject(t.getTopRight());return new et(e,i)},getMinZoom:function(){return this.options.minZoom===void 0?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return this.options.maxZoom===void 0?this._layersMaxZoom===void 0?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(t,e,i){t=V(t),i=M(i||[0,0]);var n=this.getZoom()||0,o=this.getMinZoom(),s=this.getMaxZoom(),l=t.getNorthWest(),f=t.getSouthEast(),d=this.getSize().subtract(i),v=tt(this.project(f,n),this.project(l,n)).getSize(),w=P.any3d?this.options.zoomSnap:1,C=d.x/v.x,E=d.y/v.y,$=e?Math.max(C,E):Math.min(C,E);return n=this.getScaleZoom($,n),w&&(n=Math.round(n/(w/100))*(w/100),n=e?Math.ceil(n/w)*w:Math.floor(n/w)*w),Math.max(o,Math.min(s,n))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new T(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(t,e){var i=this._getTopLeftPoint(t,e);return new G(i,i.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(t){return this.options.crs.getProjectedBounds(t===void 0?this.getZoom():t)},getPane:function(t){return typeof t=="string"?this._panes[t]:t},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(t,e){var i=this.options.crs;return e=e===void 0?this._zoom:e,i.scale(t)/i.scale(e)},getScaleZoom:function(t,e){var i=this.options.crs;e=e===void 0?this._zoom:e;var n=i.zoom(t*i.scale(e));return isNaN(n)?1/0:n},project:function(t,e){return e=e===void 0?this._zoom:e,this.options.crs.latLngToPoint(Z(t),e)},unproject:function(t,e){return e=e===void 0?this._zoom:e,this.options.crs.pointToLatLng(M(t),e)},layerPointToLatLng:function(t){var e=M(t).add(this.getPixelOrigin());return this.unproject(e)},latLngToLayerPoint:function(t){var e=this.project(Z(t))._round();return e._subtract(this.getPixelOrigin())},wrapLatLng:function(t){return this.options.crs.wrapLatLng(Z(t))},wrapLatLngBounds:function(t){return this.options.crs.wrapLatLngBounds(V(t))},distance:function(t,e){return this.options.crs.distance(Z(t),Z(e))},containerPointToLayerPoint:function(t){return M(t).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(t){return M(t).add(this._getMapPanePos())},containerPointToLatLng:function(t){var e=this.containerPointToLayerPoint(M(t));return this.layerPointToLatLng(e)},latLngToContainerPoint:function(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint(Z(t)))},mouseEventToContainerPoint:function(t){return Hi(t,this._container)},mouseEventToLayerPoint:function(t){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(t))},mouseEventToLatLng:function(t){return this.layerPointToLatLng(this.mouseEventToLayerPoint(t))},_initContainer:function(t){var e=this._container=Ni(t);if(e){if(e._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");k(e,"scroll",this._onScroll,this),this._containerId=u(e)},_initLayout:function(){var t=this._container;this._fadeAnimated=this.options.fadeAnimation&&P.any3d,z(t,"leaflet-container"+(P.touch?" leaflet-touch":"")+(P.retina?" leaflet-retina":"")+(P.ielt9?" leaflet-oldie":"")+(P.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var e=jt(t,"position");e!=="absolute"&&e!=="relative"&&e!=="fixed"&&e!=="sticky"&&(t.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var t=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),q(this._mapPane,new T(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(z(t.markerPane,"leaflet-zoom-hide"),z(t.shadowPane,"leaflet-zoom-hide"))},_resetView:function(t,e,i){q(this._mapPane,new T(0,0));var n=!this._loaded;this._loaded=!0,e=this._limitZoom(e),this.fire("viewprereset");var o=this._zoom!==e;this._moveStart(o,i)._move(t,e)._moveEnd(o),this.fire("viewreset"),n&&this.fire("load")},_moveStart:function(t,e){return t&&this.fire("zoomstart"),e||this.fire("movestart"),this},_move:function(t,e,i,n){e===void 0&&(e=this._zoom);var o=this._zoom!==e;return this._zoom=e,this._lastCenter=t,this._pixelOrigin=this._getNewPixelOrigin(t),n?i&&i.pinch&&this.fire("zoom",i):((o||i&&i.pinch)&&this.fire("zoom",i),this.fire("move",i)),this},_moveEnd:function(t){return t&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return rt(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(t){q(this._mapPane,this._getMapPanePos().subtract(t))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(t){this._targets={},this._targets[u(this._container)]=this;var e=t?D:k;e(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&e(window,"resize",this._onResize,this),P.any3d&&this.options.transform3DLimit&&(t?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){rt(this._resizeRequest),this._resizeRequest=Q(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var t=this._getMapPanePos();Math.max(Math.abs(t.x),Math.abs(t.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(t,e){for(var i=[],n,o=e==="mouseout"||e==="mouseover",s=t.target||t.srcElement,l=!1;s;){if(n=this._targets[u(s)],n&&(e==="click"||e==="preclick")&&this._draggableMoved(n)){l=!0;break}if(n&&n.listens(e,!0)&&(o&&!Ye(s,t)||(i.push(n),o))||s===this._container)break;s=s.parentNode}return!i.length&&!l&&!o&&this.listens(e,!0)&&(i=[this]),i},_isClickDisabled:function(t){for(;t&&t!==this._container;){if(t._leaflet_disable_click)return!0;t=t.parentNode}},_handleDOMEvent:function(t){var e=t.target||t.srcElement;if(!(!this._loaded||e._leaflet_disable_events||t.type==="click"&&this._isClickDisabled(e))){var i=t.type;i==="mousedown"&&We(e),this._fireDOMEvent(t,i)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(t,e,i){if(t.type==="click"){var n=O({},t);n.type="preclick",this._fireDOMEvent(n,n.type,i)}var o=this._findEventTargets(t,e);if(i){for(var s=[],l=0;l<i.length;l++)i[l].listens(e,!0)&&s.push(i[l]);o=s.concat(o)}if(o.length){e==="contextmenu"&&J(t);var f=o[0],d={originalEvent:t};if(t.type!=="keypress"&&t.type!=="keydown"&&t.type!=="keyup"){var v=f.getLatLng&&(!f._radius||f._radius<=10);d.containerPoint=v?this.latLngToContainerPoint(f.getLatLng()):this.mouseEventToContainerPoint(t),d.layerPoint=this.containerPointToLayerPoint(d.containerPoint),d.latlng=v?f.getLatLng():this.layerPointToLatLng(d.layerPoint)}for(l=0;l<o.length;l++)if(o[l].fire(e,d,!0),d.originalEvent._stopped||o[l].options.bubblingMouseEvents===!1&&mt(this._mouseEvents,e)!==-1)return}},_draggableMoved:function(t){return t=t.dragging&&t.dragging.enabled()?t:this,t.dragging&&t.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var t=0,e=this._handlers.length;t<e;t++)this._handlers[t].disable()},whenReady:function(t,e){return this._loaded?t.call(e||this,{target:this}):this.on("load",t,e),this},_getMapPanePos:function(){return Tt(this._mapPane)||new T(0,0)},_moved:function(){var t=this._getMapPanePos();return t&&!t.equals([0,0])},_getTopLeftPoint:function(t,e){var i=t&&e!==void 0?this._getNewPixelOrigin(t,e):this.getPixelOrigin();return i.subtract(this._getMapPanePos())},_getNewPixelOrigin:function(t,e){var i=this.getSize()._divideBy(2);return this.project(t,e)._subtract(i)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(t,e,i){var n=this._getNewPixelOrigin(i,e);return this.project(t,e)._subtract(n)},_latLngBoundsToNewLayerBounds:function(t,e,i){var n=this._getNewPixelOrigin(i,e);return tt([this.project(t.getSouthWest(),e)._subtract(n),this.project(t.getNorthWest(),e)._subtract(n),this.project(t.getSouthEast(),e)._subtract(n),this.project(t.getNorthEast(),e)._subtract(n)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(t){return this.latLngToLayerPoint(t).subtract(this._getCenterLayerPoint())},_limitCenter:function(t,e,i){if(!i)return t;var n=this.project(t,e),o=this.getSize().divideBy(2),s=new G(n.subtract(o),n.add(o)),l=this._getBoundsOffset(s,i,e);return Math.abs(l.x)<=1&&Math.abs(l.y)<=1?t:this.unproject(n.add(l),e)},_limitOffset:function(t,e){if(!e)return t;var i=this.getPixelBounds(),n=new G(i.min.add(t),i.max.add(t));return t.add(this._getBoundsOffset(n,e))},_getBoundsOffset:function(t,e,i){var n=tt(this.project(e.getNorthEast(),i),this.project(e.getSouthWest(),i)),o=n.min.subtract(t.min),s=n.max.subtract(t.max),l=this._rebound(o.x,-s.x),f=this._rebound(o.y,-s.y);return new T(l,f)},_rebound:function(t,e){return t+e>0?Math.round(t-e)/2:Math.max(0,Math.ceil(t))-Math.max(0,Math.floor(e))},_limitZoom:function(t){var e=this.getMinZoom(),i=this.getMaxZoom(),n=P.any3d?this.options.zoomSnap:1;return n&&(t=Math.round(t/n)*n),Math.max(e,Math.min(i,t))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){U(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(t,e){var i=this._getCenterOffset(t)._trunc();return(e&&e.animate)!==!0&&!this.getSize().contains(i)?!1:(this.panBy(i,e),!0)},_createAnimProxy:function(){var t=this._proxy=B("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(t),this.on("zoomanim",function(e){var i=Ae,n=this._proxy.style[i];Mt(this._proxy,this.project(e.center,e.zoom),this.getZoomScale(e.zoom,1)),n===this._proxy.style[i]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){W(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var t=this.getCenter(),e=this.getZoom();Mt(this._proxy,this.project(t,e),this.getZoomScale(e,1))},_catchTransitionEnd:function(t){this._animatingZoom&&t.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(t,e,i){if(this._animatingZoom)return!0;if(i=i||{},!this._zoomAnimated||i.animate===!1||this._nothingToAnimate()||Math.abs(e-this._zoom)>this.options.zoomAnimationThreshold)return!1;var n=this.getZoomScale(e),o=this._getCenterOffset(t)._divideBy(1-1/n);return i.animate!==!0&&!this.getSize().contains(o)?!1:(Q(function(){this._moveStart(!0,i.noMoveStart||!1)._animateZoom(t,e,!0)},this),!0)},_animateZoom:function(t,e,i,n){this._mapPane&&(i&&(this._animatingZoom=!0,this._animateToCenter=t,this._animateToZoom=e,z(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:t,zoom:e,noUpdate:n}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(a(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 bo(t,e){return new I(t,e)}var lt=gt.extend({options:{position:"topright"},initialize:function(t){x(this,t)},getPosition:function(){return this.options.position},setPosition:function(t){var e=this._map;return e&&e.removeControl(this),this.options.position=t,e&&e.addControl(this),this},getContainer:function(){return this._container},addTo:function(t){this.remove(),this._map=t;var e=this._container=this.onAdd(t),i=this.getPosition(),n=t._controlCorners[i];return z(e,"leaflet-control"),i.indexOf("bottom")!==-1?n.insertBefore(e,n.firstChild):n.appendChild(e),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(W(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(t){this._map&&t&&t.screenX>0&&t.screenY>0&&this._map.getContainer().focus()}}),$t=function(t){return new lt(t)};I.include({addControl:function(t){return t.addTo(this),this},removeControl:function(t){return t.remove(),this},_initControlPos:function(){var t=this._controlCorners={},e="leaflet-",i=this._controlContainer=B("div",e+"control-container",this._container);function n(o,s){var l=e+o+" "+e+s;t[o+s]=B("div",l,i)}n("top","left"),n("top","right"),n("bottom","left"),n("bottom","right")},_clearControlPos:function(){for(var t in this._controlCorners)W(this._controlCorners[t]);W(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var Ui=lt.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(t,e,i,n){return i<n?-1:n<i?1:0}},initialize:function(t,e,i){x(this,i),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1;for(var n in t)this._addLayer(t[n],n);for(n in e)this._addLayer(e[n],n,!0)},onAdd:function(t){this._initLayout(),this._update(),this._map=t,t.on("zoomend",this._checkDisabledLayers,this);for(var e=0;e<this._layers.length;e++)this._layers[e].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(t){return lt.prototype.addTo.call(this,t),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var t=0;t<this._layers.length;t++)this._layers[t].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(t,e){return this._addLayer(t,e),this._map?this._update():this},addOverlay:function(t,e){return this._addLayer(t,e,!0),this._map?this._update():this},removeLayer:function(t){t.off("add remove",this._onLayerChange,this);var e=this._getLayer(u(t));return e&&this._layers.splice(this._layers.indexOf(e),1),this._map?this._update():this},expand:function(){z(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var t=this._map.getSize().y-(this._container.offsetTop+50);return t<this._section.clientHeight?(z(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=t+"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 t="leaflet-control-layers",e=this._container=B("div",t),i=this.options.collapsed;e.setAttribute("aria-haspopup",!0),Jt(e),Ke(e);var n=this._section=B("section",t+"-list");i&&(this._map.on("click",this.collapse,this),k(e,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var o=this._layersLink=B("a",t+"-toggle",e);o.href="#",o.title="Layers",o.setAttribute("role","button"),k(o,{keydown:function(s){s.keyCode===13&&this._expandSafely()},click:function(s){J(s),this._expandSafely()}},this),i||this.expand(),this._baseLayersList=B("div",t+"-base",n),this._separator=B("div",t+"-separator",n),this._overlaysList=B("div",t+"-overlays",n),e.appendChild(n)},_getLayer:function(t){for(var e=0;e<this._layers.length;e++)if(this._layers[e]&&u(this._layers[e].layer)===t)return this._layers[e]},_addLayer:function(t,e,i){this._map&&t.on("add remove",this._onLayerChange,this),this._layers.push({layer:t,name:e,overlay:i}),this.options.sortLayers&&this._layers.sort(a(function(n,o){return this.options.sortFunction(n.layer,o.layer,n.name,o.name)},this)),this.options.autoZIndex&&t.setZIndex&&(this._lastZIndex++,t.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;ae(this._baseLayersList),ae(this._overlaysList),this._layerControlInputs=[];var t,e,i,n,o=0;for(i=0;i<this._layers.length;i++)n=this._layers[i],this._addItem(n),e=e||n.overlay,t=t||!n.overlay,o+=n.overlay?0:1;return this.options.hideSingleBase&&(t=t&&o>1,this._baseLayersList.style.display=t?"":"none"),this._separator.style.display=e&&t?"":"none",this},_onLayerChange:function(t){this._handlingClick||this._update();var e=this._getLayer(u(t.target)),i=e.overlay?t.type==="add"?"overlayadd":"overlayremove":t.type==="add"?"baselayerchange":null;i&&this._map.fire(i,e)},_createRadioElement:function(t,e){var i='<input type="radio" class="leaflet-control-layers-selector" name="'+t+'"'+(e?' checked="checked"':"")+"/>",n=document.createElement("div");return n.innerHTML=i,n.firstChild},_addItem:function(t){var e=document.createElement("label"),i=this._map.hasLayer(t.layer),n;t.overlay?(n=document.createElement("input"),n.type="checkbox",n.className="leaflet-control-layers-selector",n.defaultChecked=i):n=this._createRadioElement("leaflet-base-layers_"+u(this),i),this._layerControlInputs.push(n),n.layerId=u(t.layer),k(n,"click",this._onInputClick,this);var o=document.createElement("span");o.innerHTML=" "+t.name;var s=document.createElement("span");e.appendChild(s),s.appendChild(n),s.appendChild(o);var l=t.overlay?this._overlaysList:this._baseLayersList;return l.appendChild(e),this._checkDisabledLayers(),e},_onInputClick:function(){if(!this._preventClick){var t=this._layerControlInputs,e,i,n=[],o=[];this._handlingClick=!0;for(var s=t.length-1;s>=0;s--)e=t[s],i=this._getLayer(e.layerId).layer,e.checked?n.push(i):e.checked||o.push(i);for(s=0;s<o.length;s++)this._map.hasLayer(o[s])&&this._map.removeLayer(o[s]);for(s=0;s<n.length;s++)this._map.hasLayer(n[s])||this._map.addLayer(n[s]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var t=this._layerControlInputs,e,i,n=this._map.getZoom(),o=t.length-1;o>=0;o--)e=t[o],i=this._getLayer(e.layerId).layer,e.disabled=i.options.minZoom!==void 0&&n<i.options.minZoom||i.options.maxZoom!==void 0&&n>i.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var t=this._section;this._preventClick=!0,k(t,"click",J),this.expand();var e=this;setTimeout(function(){D(t,"click",J),e._preventClick=!1})}}),Po=function(t,e,i){return new Ui(t,e,i)},Xe=lt.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">−</span>',zoomOutTitle:"Zoom out"},onAdd:function(t){var e="leaflet-control-zoom",i=B("div",e+" leaflet-bar"),n=this.options;return this._zoomInButton=this._createButton(n.zoomInText,n.zoomInTitle,e+"-in",i,this._zoomIn),this._zoomOutButton=this._createButton(n.zoomOutText,n.zoomOutTitle,e+"-out",i,this._zoomOut),this._updateDisabled(),t.on("zoomend zoomlevelschange",this._updateDisabled,this),i},onRemove:function(t){t.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(t){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(t.shiftKey?3:1))},_zoomOut:function(t){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(t.shiftKey?3:1))},_createButton:function(t,e,i,n,o){var s=B("a",i,n);return s.innerHTML=t,s.href="#",s.title=e,s.setAttribute("role","button"),s.setAttribute("aria-label",e),Jt(s),k(s,"click",St),k(s,"click",o,this),k(s,"click",this._refocusOnMap,this),s},_updateDisabled:function(){var t=this._map,e="leaflet-disabled";U(this._zoomInButton,e),U(this._zoomOutButton,e),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||t._zoom===t.getMinZoom())&&(z(this._zoomOutButton,e),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||t._zoom===t.getMaxZoom())&&(z(this._zoomInButton,e),this._zoomInButton.setAttribute("aria-disabled","true"))}});I.mergeOptions({zoomControl:!0}),I.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new Xe,this.addControl(this.zoomControl))});var Co=function(t){return new Xe(t)},Vi=lt.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(t){var e="leaflet-control-scale",i=B("div",e),n=this.options;return this._addScales(n,e+"-line",i),t.on(n.updateWhenIdle?"moveend":"move",this._update,this),t.whenReady(this._update,this),i},onRemove:function(t){t.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(t,e,i){t.metric&&(this._mScale=B("div",e,i)),t.imperial&&(this._iScale=B("div",e,i))},_update:function(){var t=this._map,e=t.getSize().y/2,i=t.distance(t.containerPointToLatLng([0,e]),t.containerPointToLatLng([this.options.maxWidth,e]));this._updateScales(i)},_updateScales:function(t){this.options.metric&&t&&this._updateMetric(t),this.options.imperial&&t&&this._updateImperial(t)},_updateMetric:function(t){var e=this._getRoundNum(t),i=e<1e3?e+" m":e/1e3+" km";this._updateScale(this._mScale,i,e/t)},_updateImperial:function(t){var e=t*3.2808399,i,n,o;e>5280?(i=e/5280,n=this._getRoundNum(i),this._updateScale(this._iScale,n+" mi",n/i)):(o=this._getRoundNum(e),this._updateScale(this._iScale,o+" ft",o/e))},_updateScale:function(t,e,i){t.style.width=Math.round(this.options.maxWidth*i)+"px",t.innerHTML=e},_getRoundNum:function(t){var e=Math.pow(10,(Math.floor(t)+"").length-1),i=t/e;return i=i>=10?10:i>=5?5:i>=3?3:i>=2?2:1,e*i}}),Mo=function(t){return new Vi(t)},To='<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>',Je=lt.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(P.inlineSvg?To+" ":"")+"Leaflet</a>"},initialize:function(t){x(this,t),this._attributions={}},onAdd:function(t){t.attributionControl=this,this._container=B("div","leaflet-control-attribution"),Jt(this._container);for(var e in t._layers)t._layers[e].getAttribution&&this.addAttribution(t._layers[e].getAttribution());return this._update(),t.on("layeradd",this._addAttribution,this),this._container},onRemove:function(t){t.off("layeradd",this._addAttribution,this)},_addAttribution:function(t){t.layer.getAttribution&&(this.addAttribution(t.layer.getAttribution()),t.layer.once("remove",function(){this.removeAttribution(t.layer.getAttribution())},this))},setPrefix:function(t){return this.options.prefix=t,this._update(),this},addAttribution:function(t){return t?(this._attributions[t]||(this._attributions[t]=0),this._attributions[t]++,this._update(),this):this},removeAttribution:function(t){return t?(this._attributions[t]&&(this._attributions[t]--,this._update()),this):this},_update:function(){if(this._map){var t=[];for(var e in this._attributions)this._attributions[e]&&t.push(e);var i=[];this.options.prefix&&i.push(this.options.prefix),t.length&&i.push(t.join(", ")),this._container.innerHTML=i.join(' <span aria-hidden="true">|</span> ')}}});I.mergeOptions({attributionControl:!0}),I.addInitHook(function(){this.options.attributionControl&&new Je().addTo(this)});var ko=function(t){return new Je(t)};lt.Layers=Ui,lt.Zoom=Xe,lt.Scale=Vi,lt.Attribution=Je,$t.layers=Po,$t.zoom=Co,$t.scale=Mo,$t.attribution=ko;var dt=gt.extend({initialize:function(t){this._map=t},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}});dt.addTo=function(t,e){return t.addHandler(e,this),this};var So={Events:ot},qi=P.touch?"touchstart mousedown":"mousedown",Pt=Wt.extend({options:{clickTolerance:3},initialize:function(t,e,i,n){x(this,n),this._element=t,this._dragStartTarget=e||t,this._preventOutline=i},enable:function(){this._enabled||(k(this._dragStartTarget,qi,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(Pt._dragging===this&&this.finishDrag(!0),D(this._dragStartTarget,qi,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(t){if(this._enabled&&(this._moved=!1,!Ne(this._element,"leaflet-zoom-anim"))){if(t.touches&&t.touches.length!==1){Pt._dragging===this&&this.finishDrag();return}if(!(Pt._dragging||t.shiftKey||t.which!==1&&t.button!==1&&!t.touches)&&(Pt._dragging=this,this._preventOutline&&We(this._element),Fe(),Kt(),!this._moving)){this.fire("down");var e=t.touches?t.touches[0]:t,i=Ri(this._element);this._startPoint=new T(e.clientX,e.clientY),this._startPos=Tt(this._element),this._parentScale=Ue(i);var n=t.type==="mousedown";k(document,n?"mousemove":"touchmove",this._onMove,this),k(document,n?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(t){if(this._enabled){if(t.touches&&t.touches.length>1){this._moved=!0;return}var e=t.touches&&t.touches.length===1?t.touches[0]:t,i=new T(e.clientX,e.clientY)._subtract(this._startPoint);!i.x&&!i.y||Math.abs(i.x)+Math.abs(i.y)<this.options.clickTolerance||(i.x/=this._parentScale.x,i.y/=this._parentScale.y,J(t),this._moved||(this.fire("dragstart"),this._moved=!0,z(document.body,"leaflet-dragging"),this._lastTarget=t.target||t.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),z(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(i),this._moving=!0,this._lastEvent=t,this._updatePosition())}},_updatePosition:function(){var t={originalEvent:this._lastEvent};this.fire("predrag",t),q(this._element,this._newPos),this.fire("drag",t)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(t){U(document.body,"leaflet-dragging"),this._lastTarget&&(U(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),D(document,"mousemove touchmove",this._onMove,this),D(document,"mouseup touchend touchcancel",this._onUp,this),He(),Yt();var e=this._moved&&this._moving;this._moving=!1,Pt._dragging=!1,e&&this.fire("dragend",{noInertia:t,distance:this._newPos.distanceTo(this._startPos)})}});function ji(t,e,i){var n,o=[1,4,2,8],s,l,f,d,v,w,C,E;for(s=0,w=t.length;s<w;s++)t[s]._code=zt(t[s],e);for(f=0;f<4;f++){for(C=o[f],n=[],s=0,w=t.length,l=w-1;s<w;l=s++)d=t[s],v=t[l],d._code&C?v._code&C||(E=ce(v,d,C,e,i),E._code=zt(E,e),n.push(E)):(v._code&C&&(E=ce(v,d,C,e,i),E._code=zt(E,e),n.push(E)),n.push(d));t=n}return t}function Ki(t,e){var i,n,o,s,l,f,d,v,w;if(!t||t.length===0)throw new Error("latlngs not passed");at(t)||(console.warn("latlngs are not flat! Only the first ring will be used"),t=t[0]);var C=Z([0,0]),E=V(t),$=E.getNorthWest().distanceTo(E.getSouthWest())*E.getNorthEast().distanceTo(E.getNorthWest());$<1700&&(C=$e(t));var X=t.length,ht=[];for(i=0;i<X;i++){var it=Z(t[i]);ht.push(e.project(Z([it.lat-C.lat,it.lng-C.lng])))}for(f=d=v=0,i=0,n=X-1;i<X;n=i++)o=ht[i],s=ht[n],l=o.y*s.x-s.y*o.x,d+=(o.x+s.x)*l,v+=(o.y+s.y)*l,f+=l*3;f===0?w=ht[0]:w=[d/f,v/f];var Dt=e.unproject(M(w));return Z([Dt.lat+C.lat,Dt.lng+C.lng])}function $e(t){for(var e=0,i=0,n=0,o=0;o<t.length;o++){var s=Z(t[o]);e+=s.lat,i+=s.lng,n++}return Z([e/n,i/n])}var zo={__proto__:null,clipPolygon:ji,polygonCenter:Ki,centroid:$e};function Yi(t,e){if(!e||!t.length)return t.slice();var i=e*e;return t=Zo(t,i),t=Eo(t,i),t}function Xi(t,e,i){return Math.sqrt(Qt(t,e,i,!0))}function Oo(t,e,i){return Qt(t,e,i)}function Eo(t,e){var i=t.length,n=typeof Uint8Array<"u"?Uint8Array:Array,o=new n(i);o[0]=o[i-1]=1,Qe(t,o,e,0,i-1);var s,l=[];for(s=0;s<i;s++)o[s]&&l.push(t[s]);return l}function Qe(t,e,i,n,o){var s=0,l,f,d;for(f=n+1;f<=o-1;f++)d=Qt(t[f],t[n],t[o],!0),d>s&&(l=f,s=d);s>i&&(e[l]=1,Qe(t,e,i,n,l),Qe(t,e,i,l,o))}function Zo(t,e){for(var i=[t[0]],n=1,o=0,s=t.length;n<s;n++)Io(t[n],t[o])>e&&(i.push(t[n]),o=n);return o<s-1&&i.push(t[s-1]),i}var Ji;function $i(t,e,i,n,o){var s=n?Ji:zt(t,i),l=zt(e,i),f,d,v;for(Ji=l;;){if(!(s|l))return[t,e];if(s&l)return!1;f=s||l,d=ce(t,e,f,i,o),v=zt(d,i),f===s?(t=d,s=v):(e=d,l=v)}}function ce(t,e,i,n,o){var s=e.x-t.x,l=e.y-t.y,f=n.min,d=n.max,v,w;return i&8?(v=t.x+s*(d.y-t.y)/l,w=d.y):i&4?(v=t.x+s*(f.y-t.y)/l,w=f.y):i&2?(v=d.x,w=t.y+l*(d.x-t.x)/s):i&1&&(v=f.x,w=t.y+l*(f.x-t.x)/s),new T(v,w,o)}function zt(t,e){var i=0;return t.x<e.min.x?i|=1:t.x>e.max.x&&(i|=2),t.y<e.min.y?i|=4:t.y>e.max.y&&(i|=8),i}function Io(t,e){var i=e.x-t.x,n=e.y-t.y;return i*i+n*n}function Qt(t,e,i,n){var o=e.x,s=e.y,l=i.x-o,f=i.y-s,d=l*l+f*f,v;return d>0&&(v=((t.x-o)*l+(t.y-s)*f)/d,v>1?(o=i.x,s=i.y):v>0&&(o+=l*v,s+=f*v)),l=t.x-o,f=t.y-s,n?l*l+f*f:new T(o,s)}function at(t){return!H(t[0])||typeof t[0][0]!="object"&&typeof t[0][0]<"u"}function Qi(t){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),at(t)}function tn(t,e){var i,n,o,s,l,f,d,v;if(!t||t.length===0)throw new Error("latlngs not passed");at(t)||(console.warn("latlngs are not flat! Only the first ring will be used"),t=t[0]);var w=Z([0,0]),C=V(t),E=C.getNorthWest().distanceTo(C.getSouthWest())*C.getNorthEast().distanceTo(C.getNorthWest());E<1700&&(w=$e(t));var $=t.length,X=[];for(i=0;i<$;i++){var ht=Z(t[i]);X.push(e.project(Z([ht.lat-w.lat,ht.lng-w.lng])))}for(i=0,n=0;i<$-1;i++)n+=X[i].distanceTo(X[i+1])/2;if(n===0)v=X[0];else for(i=0,s=0;i<$-1;i++)if(l=X[i],f=X[i+1],o=l.distanceTo(f),s+=o,s>n){d=(s-n)/o,v=[f.x-d*(f.x-l.x),f.y-d*(f.y-l.y)];break}var it=e.unproject(M(v));return Z([it.lat+w.lat,it.lng+w.lng])}var Bo={__proto__:null,simplify:Yi,pointToSegmentDistance:Xi,closestPointOnSegment:Oo,clipSegment:$i,_getEdgeIntersection:ce,_getBitCode:zt,_sqClosestPointOnSegment:Qt,isFlat:at,_flat:Qi,polylineCenter:tn},ti={project:function(t){return new T(t.lng,t.lat)},unproject:function(t){return new N(t.y,t.x)},bounds:new G([-180,-90],[180,90])},ei={R:6378137,R_MINOR:6356752314245179e-9,bounds:new G([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project:function(t){var e=Math.PI/180,i=this.R,n=t.lat*e,o=this.R_MINOR/i,s=Math.sqrt(1-o*o),l=s*Math.sin(n),f=Math.tan(Math.PI/4-n/2)/Math.pow((1-l)/(1+l),s/2);return n=-i*Math.log(Math.max(f,1e-10)),new T(t.lng*e*i,n)},unproject:function(t){for(var e=180/Math.PI,i=this.R,n=this.R_MINOR/i,o=Math.sqrt(1-n*n),s=Math.exp(-t.y/i),l=Math.PI/2-2*Math.atan(s),f=0,d=.1,v;f<15&&Math.abs(d)>1e-7;f++)v=o*Math.sin(l),v=Math.pow((1-v)/(1+v),o/2),d=Math.PI/2-2*Math.atan(s*v)-l,l+=d;return new N(l*e,t.x*e/i)}},Ao={__proto__:null,LonLat:ti,Mercator:ei,SphericalMercator:Te},No=O({},bt,{code:"EPSG:3395",projection:ei,transformation:function(){var t=.5/(Math.PI*ei.R);return Ut(t,.5,-t,.5)}()}),en=O({},bt,{code:"EPSG:4326",projection:ti,transformation:Ut(1/180,1,-1/180,.5)}),Ro=O({},vt,{projection:ti,transformation:Ut(1,0,-1,0),scale:function(t){return Math.pow(2,t)},zoom:function(t){return Math.log(t)/Math.LN2},distance:function(t,e){var i=e.lng-t.lng,n=e.lat-t.lat;return Math.sqrt(i*i+n*n)},infinite:!0});vt.Earth=bt,vt.EPSG3395=No,vt.EPSG3857=Se,vt.EPSG900913=Wn,vt.EPSG4326=en,vt.Simple=Ro;var ut=Wt.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(t){return t.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(t){return t&&t.removeLayer(this),this},getPane:function(t){return this._map.getPane(t?this.options[t]||t:this.options.pane)},addInteractiveTarget:function(t){return this._map._targets[u(t)]=this,this},removeInteractiveTarget:function(t){return delete this._map._targets[u(t)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(t){var e=t.target;if(e.hasLayer(this)){if(this._map=e,this._zoomAnimated=e._zoomAnimated,this.getEvents){var i=this.getEvents();e.on(i,this),this.once("remove",function(){e.off(i,this)},this)}this.onAdd(e),this.fire("add"),e.fire("layeradd",{layer:this})}}});I.include({addLayer:function(t){if(!t._layerAdd)throw new Error("The provided object is not a Layer.");var e=u(t);return this._layers[e]?this:(this._layers[e]=t,t._mapToAdd=this,t.beforeAdd&&t.beforeAdd(this),this.whenReady(t._layerAdd,t),this)},removeLayer:function(t){var e=u(t);return this._layers[e]?(this._loaded&&t.onRemove(this),delete this._layers[e],this._loaded&&(this.fire("layerremove",{layer:t}),t.fire("remove")),t._map=t._mapToAdd=null,this):this},hasLayer:function(t){return u(t)in this._layers},eachLayer:function(t,e){for(var i in this._layers)t.call(e,this._layers[i]);return this},_addLayers:function(t){t=t?H(t)?t:[t]:[];for(var e=0,i=t.length;e<i;e++)this.addLayer(t[e])},_addZoomLimit:function(t){(!isNaN(t.options.maxZoom)||!isNaN(t.options.minZoom))&&(this._zoomBoundLayers[u(t)]=t,this._updateZoomLevels())},_removeZoomLimit:function(t){var e=u(t);this._zoomBoundLayers[e]&&(delete this._zoomBoundLayers[e],this._updateZoomLevels())},_updateZoomLevels:function(){var t=1/0,e=-1/0,i=this._getZoomSpan();for(var n in this._zoomBoundLayers){var o=this._zoomBoundLayers[n].options;t=o.minZoom===void 0?t:Math.min(t,o.minZoom),e=o.maxZoom===void 0?e:Math.max(e,o.maxZoom)}this._layersMaxZoom=e===-1/0?void 0:e,this._layersMinZoom=t===1/0?void 0:t,i!==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 It=ut.extend({initialize:function(t,e){x(this,e),this._layers={};var i,n;if(t)for(i=0,n=t.length;i<n;i++)this.addLayer(t[i])},addLayer:function(t){var e=this.getLayerId(t);return this._layers[e]=t,this._map&&this._map.addLayer(t),this},removeLayer:function(t){var e=t in this._layers?t:this.getLayerId(t);return this._map&&this._layers[e]&&this._map.removeLayer(this._layers[e]),delete this._layers[e],this},hasLayer:function(t){var e=typeof t=="number"?t:this.getLayerId(t);return e in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(t){var e=Array.prototype.slice.call(arguments,1),i,n;for(i in this._layers)n=this._layers[i],n[t]&&n[t].apply(n,e);return this},onAdd:function(t){this.eachLayer(t.addLayer,t)},onRemove:function(t){this.eachLayer(t.removeLayer,t)},eachLayer:function(t,e){for(var i in this._layers)t.call(e,this._layers[i]);return this},getLayer:function(t){return this._layers[t]},getLayers:function(){var t=[];return this.eachLayer(t.push,t),t},setZIndex:function(t){return this.invoke("setZIndex",t)},getLayerId:function(t){return u(t)}}),Do=function(t,e){return new It(t,e)},yt=It.extend({addLayer:function(t){return this.hasLayer(t)?this:(t.addEventParent(this),It.prototype.addLayer.call(this,t),this.fire("layeradd",{layer:t}))},removeLayer:function(t){return this.hasLayer(t)?(t in this._layers&&(t=this._layers[t]),t.removeEventParent(this),It.prototype.removeLayer.call(this,t),this.fire("layerremove",{layer:t})):this},setStyle:function(t){return this.invoke("setStyle",t)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var t=new et;for(var e in this._layers){var i=this._layers[e];t.extend(i.getBounds?i.getBounds():i.getLatLng())}return t}}),Fo=function(t,e){return new yt(t,e)},Bt=gt.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(t){x(this,t)},createIcon:function(t){return this._createIcon("icon",t)},createShadow:function(t){return this._createIcon("shadow",t)},_createIcon:function(t,e){var i=this._getIconUrl(t);if(!i){if(t==="icon")throw new Error("iconUrl not set in Icon options (see the docs).");return null}var n=this._createImg(i,e&&e.tagName==="IMG"?e:null);return this._setIconStyles(n,t),(this.options.crossOrigin||this.options.crossOrigin==="")&&(n.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),n},_setIconStyles:function(t,e){var i=this.options,n=i[e+"Size"];typeof n=="number"&&(n=[n,n]);var o=M(n),s=M(e==="shadow"&&i.shadowAnchor||i.iconAnchor||o&&o.divideBy(2,!0));t.className="leaflet-marker-"+e+" "+(i.className||""),s&&(t.style.marginLeft=-s.x+"px",t.style.marginTop=-s.y+"px"),o&&(t.style.width=o.x+"px",t.style.height=o.y+"px")},_createImg:function(t,e){return e=e||document.createElement("img"),e.src=t,e},_getIconUrl:function(t){return P.retina&&this.options[t+"RetinaUrl"]||this.options[t+"Url"]}});function Ho(t){return new Bt(t)}var te=Bt.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(t){return typeof te.imagePath!="string"&&(te.imagePath=this._detectIconPath()),(this.options.imagePath||te.imagePath)+Bt.prototype._getIconUrl.call(this,t)},_stripUrl:function(t){var e=function(i,n,o){var s=n.exec(i);return s&&s[o]};return t=e(t,/^url\((['"])?(.+)\1\)$/,2),t&&e(t,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var t=B("div","leaflet-default-icon-path",document.body),e=jt(t,"background-image")||jt(t,"backgroundImage");if(document.body.removeChild(t),e=this._stripUrl(e),e)return e;var i=document.querySelector('link[href$="leaflet.css"]');return i?i.href.substring(0,i.href.length-11-1):""}}),nn=dt.extend({initialize:function(t){this._marker=t},addHooks:function(){var t=this._marker._icon;this._draggable||(this._draggable=new Pt(t,t,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),z(t,"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},_adjustPan:function(t){var e=this._marker,i=e._map,n=this._marker.options.autoPanSpeed,o=this._marker.options.autoPanPadding,s=Tt(e._icon),l=i.getPixelBounds(),f=i.getPixelOrigin(),d=tt(l.min._subtract(f).add(o),l.max._subtract(f).subtract(o));if(!d.contains(s)){var v=M((Math.max(d.max.x,s.x)-d.max.x)/(l.max.x-d.max.x)-(Math.min(d.min.x,s.x)-d.min.x)/(l.min.x-d.min.x),(Math.max(d.max.y,s.y)-d.max.y)/(l.max.y-d.max.y)-(Math.min(d.min.y,s.y)-d.min.y)/(l.min.y-d.min.y)).multiplyBy(n);i.panBy(v,{animate:!1}),this._draggable._newPos._add(v),this._draggable._startPos._add(v),q(e._icon,this._draggable._newPos),this._onDrag(t),this._panRequest=Q(this._adjustPan.bind(this,t))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(t){this._marker.options.autoPan&&(rt(this._panRequest),this._panRequest=Q(this._adjustPan.bind(this,t)))},_onDrag:function(t){var e=this._marker,i=e._shadow,n=Tt(e._icon),o=e._map.layerPointToLatLng(n);i&&q(i,n),e._latlng=o,t.latlng=o,t.oldLatLng=this._oldLatLng,e.fire("move",t).fire("drag",t)},_onDragEnd:function(t){rt(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",t)}}),de=ut.extend({options:{icon:new te,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(t,e){x(this,e),this._latlng=Z(t)},onAdd:function(t){this._zoomAnimated=this._zoomAnimated&&t.options.markerZoomAnimation,this._zoomAnimated&&t.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(t){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&t.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(t){var e=this._latlng;return this._latlng=Z(t),this.update(),this.fire("move",{oldLatLng:e,latlng:this._latlng})},setZIndexOffset:function(t){return this.options.zIndexOffset=t,this.update()},getIcon:function(){return this.options.icon},setIcon:function(t){return this.options.icon=t,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 t=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(t)}return this},_initIcon:function(){var t=this.options,e="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),i=t.icon.createIcon(this._icon),n=!1;i!==this._icon&&(this._icon&&this._removeIcon(),n=!0,t.title&&(i.title=t.title),i.tagName==="IMG"&&(i.alt=t.alt||"")),z(i,e),t.keyboard&&(i.tabIndex="0",i.setAttribute("role","button")),this._icon=i,t.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&k(i,"focus",this._panOnFocus,this);var o=t.icon.createShadow(this._shadow),s=!1;o!==this._shadow&&(this._removeShadow(),s=!0),o&&(z(o,e),o.alt=""),this._shadow=o,t.opacity<1&&this._updateOpacity(),n&&this.getPane().appendChild(this._icon),this._initInteraction(),o&&s&&this.getPane(t.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&D(this._icon,"focus",this._panOnFocus,this),W(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&W(this._shadow),this._shadow=null},_setPos:function(t){this._icon&&q(this._icon,t),this._shadow&&q(this._shadow,t),this._zIndex=t.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(t){this._icon&&(this._icon.style.zIndex=this._zIndex+t)},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center).round();this._setPos(e)},_initInteraction:function(){if(this.options.interactive&&(z(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),nn)){var t=this.options.draggable;this.dragging&&(t=this.dragging.enabled(),this.dragging.disable()),this.dragging=new nn(this),t&&this.dragging.enable()}},setOpacity:function(t){return this.options.opacity=t,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var t=this.options.opacity;this._icon&&st(this._icon,t),this._shadow&&st(this._shadow,t)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var t=this._map;if(t){var e=this.options.icon.options,i=e.iconSize?M(e.iconSize):M(0,0),n=e.iconAnchor?M(e.iconAnchor):M(0,0);t.panInside(this._latlng,{paddingTopLeft:n,paddingBottomRight:i.subtract(n)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function Go(t,e){return new de(t,e)}var Ct=ut.extend({options:{stroke:!0,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:!0,bubblingMouseEvents:!0},beforeAdd:function(t){this._renderer=t.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(t){return x(this,t),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&t&&Object.prototype.hasOwnProperty.call(t,"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)}}),_e=Ct.extend({options:{fill:!0,radius:10},initialize:function(t,e){x(this,e),this._latlng=Z(t),this._radius=this.options.radius},setLatLng:function(t){var e=this._latlng;return this._latlng=Z(t),this.redraw(),this.fire("move",{oldLatLng:e,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(t){return this.options.radius=this._radius=t,this.redraw()},getRadius:function(){return this._radius},setStyle:function(t){var e=t&&t.radius||this._radius;return Ct.prototype.setStyle.call(this,t),this.setRadius(e),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var t=this._radius,e=this._radiusY||t,i=this._clickTolerance(),n=[t+i,e+i];this._pxBounds=new G(this._point.subtract(n),this._point.add(n))},_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(t){return t.distanceTo(this._point)<=this._radius+this._clickTolerance()}});function Wo(t,e){return new _e(t,e)}var ii=_e.extend({initialize:function(t,e,i){if(typeof e=="number"&&(e=O({},i,{radius:e})),x(this,e),this._latlng=Z(t),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(t){return this._mRadius=t,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var t=[this._radius,this._radiusY||this._radius];return new et(this._map.layerPointToLatLng(this._point.subtract(t)),this._map.layerPointToLatLng(this._point.add(t)))},setStyle:Ct.prototype.setStyle,_project:function(){var t=this._latlng.lng,e=this._latlng.lat,i=this._map,n=i.options.crs;if(n.distance===bt.distance){var o=Math.PI/180,s=this._mRadius/bt.R/o,l=i.project([e+s,t]),f=i.project([e-s,t]),d=l.add(f).divideBy(2),v=i.unproject(d).lat,w=Math.acos((Math.cos(s*o)-Math.sin(e*o)*Math.sin(v*o))/(Math.cos(e*o)*Math.cos(v*o)))/o;(isNaN(w)||w===0)&&(w=s/Math.cos(Math.PI/180*e)),this._point=d.subtract(i.getPixelOrigin()),this._radius=isNaN(w)?0:d.x-i.project([v,t-w]).x,this._radiusY=d.y-l.y}else{var C=n.unproject(n.project(this._latlng).subtract([this._mRadius,0]));this._point=i.latLngToLayerPoint(this._latlng),this._radius=this._point.x-i.latLngToLayerPoint(C).x}this._updateBounds()}});function Uo(t,e,i){return new ii(t,e,i)}var Lt=Ct.extend({options:{smoothFactor:1,noClip:!1},initialize:function(t,e){x(this,e),this._setLatLngs(t)},getLatLngs:function(){return this._latlngs},setLatLngs:function(t){return this._setLatLngs(t),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(t){for(var e=1/0,i=null,n=Qt,o,s,l=0,f=this._parts.length;l<f;l++)for(var d=this._parts[l],v=1,w=d.length;v<w;v++){o=d[v-1],s=d[v];var C=n(t,o,s,!0);C<e&&(e=C,i=n(t,o,s))}return i&&(i.distance=Math.sqrt(e)),i},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return tn(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(t,e){return e=e||this._defaultShape(),t=Z(t),e.push(t),this._bounds.extend(t),this.redraw()},_setLatLngs:function(t){this._bounds=new et,this._latlngs=this._convertLatLngs(t)},_defaultShape:function(){return at(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(t){for(var e=[],i=at(t),n=0,o=t.length;n<o;n++)i?(e[n]=Z(t[n]),this._bounds.extend(e[n])):e[n]=this._convertLatLngs(t[n]);return e},_project:function(){var t=new G;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,t),this._bounds.isValid()&&t.isValid()&&(this._rawPxBounds=t,this._updateBounds())},_updateBounds:function(){var t=this._clickTolerance(),e=new T(t,t);this._rawPxBounds&&(this._pxBounds=new G([this._rawPxBounds.min.subtract(e),this._rawPxBounds.max.add(e)]))},_projectLatlngs:function(t,e,i){var n=t[0]instanceof N,o=t.length,s,l;if(n){for(l=[],s=0;s<o;s++)l[s]=this._map.latLngToLayerPoint(t[s]),i.extend(l[s]);e.push(l)}else for(s=0;s<o;s++)this._projectLatlngs(t[s],e,i)},_clipPoints:function(){var t=this._renderer._bounds;if(this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(t))){if(this.options.noClip){this._parts=this._rings;return}var e=this._parts,i,n,o,s,l,f,d;for(i=0,o=0,s=this._rings.length;i<s;i++)for(d=this._rings[i],n=0,l=d.length;n<l-1;n++)f=$i(d[n],d[n+1],t,n,!0),f&&(e[o]=e[o]||[],e[o].push(f[0]),(f[1]!==d[n+1]||n===l-2)&&(e[o].push(f[1]),o++))}},_simplifyPoints:function(){for(var t=this._parts,e=this.options.smoothFactor,i=0,n=t.length;i<n;i++)t[i]=Yi(t[i],e)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(t,e){var i,n,o,s,l,f,d=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(i=0,s=this._parts.length;i<s;i++)for(f=this._parts[i],n=0,l=f.length,o=l-1;n<l;o=n++)if(!(!e&&n===0)&&Xi(t,f[o],f[n])<=d)return!0;return!1}});function Vo(t,e){return new Lt(t,e)}Lt._flat=Qi;var At=Lt.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return Ki(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(t){var e=Lt.prototype._convertLatLngs.call(this,t),i=e.length;return i>=2&&e[0]instanceof N&&e[0].equals(e[i-1])&&e.pop(),e},_setLatLngs:function(t){Lt.prototype._setLatLngs.call(this,t),at(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return at(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var t=this._renderer._bounds,e=this.options.weight,i=new T(e,e);if(t=new G(t.min.subtract(i),t.max.add(i)),this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(t))){if(this.options.noClip){this._parts=this._rings;return}for(var n=0,o=this._rings.length,s;n<o;n++)s=ji(this._rings[n],t,!0),s.length&&this._parts.push(s)}},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(t){var e=!1,i,n,o,s,l,f,d,v;if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(s=0,d=this._parts.length;s<d;s++)for(i=this._parts[s],l=0,v=i.length,f=v-1;l<v;f=l++)n=i[l],o=i[f],n.y>t.y!=o.y>t.y&&t.x<(o.x-n.x)*(t.y-n.y)/(o.y-n.y)+n.x&&(e=!e);return e||Lt.prototype._containsPoint.call(this,t,!0)}});function qo(t,e){return new At(t,e)}var xt=yt.extend({initialize:function(t,e){x(this,e),this._layers={},t&&this.addData(t)},addData:function(t){var e=H(t)?t:t.features,i,n,o;if(e){for(i=0,n=e.length;i<n;i++)o=e[i],(o.geometries||o.geometry||o.features||o.coordinates)&&this.addData(o);return this}var s=this.options;if(s.filter&&!s.filter(t))return this;var l=pe(t,s);return l?(l.feature=ve(t),l.defaultOptions=l.options,this.resetStyle(l),s.onEachFeature&&s.onEachFeature(t,l),this.addLayer(l)):this},resetStyle:function(t){return t===void 0?this.eachLayer(this.resetStyle,this):(t.options=O({},t.defaultOptions),this._setLayerStyle(t,this.options.style),this)},setStyle:function(t){return this.eachLayer(function(e){this._setLayerStyle(e,t)},this)},_setLayerStyle:function(t,e){t.setStyle&&(typeof e=="function"&&(e=e(t.feature)),t.setStyle(e))}});function pe(t,e){var i=t.type==="Feature"?t.geometry:t,n=i?i.coordinates:null,o=[],s=e&&e.pointToLayer,l=e&&e.coordsToLatLng||ni,f,d,v,w;if(!n&&!i)return null;switch(i.type){case"Point":return f=l(n),on(s,t,f,e);case"MultiPoint":for(v=0,w=n.length;v<w;v++)f=l(n[v]),o.push(on(s,t,f,e));return new yt(o);case"LineString":case"MultiLineString":return d=me(n,i.type==="LineString"?0:1,l),new Lt(d,e);case"Polygon":case"MultiPolygon":return d=me(n,i.type==="Polygon"?1:2,l),new At(d,e);case"GeometryCollection":for(v=0,w=i.geometries.length;v<w;v++){var C=pe({geometry:i.geometries[v],type:"Feature",properties:t.properties},e);C&&o.push(C)}return new yt(o);case"FeatureCollection":for(v=0,w=i.features.length;v<w;v++){var E=pe(i.features[v],e);E&&o.push(E)}return new yt(o);default:throw new Error("Invalid GeoJSON object.")}}function on(t,e,i,n){return t?t(e,i):new de(i,n&&n.markersInheritOptions&&n)}function ni(t){return new N(t[1],t[0],t[2])}function me(t,e,i){for(var n=[],o=0,s=t.length,l;o<s;o++)l=e?me(t[o],e-1,i):(i||ni)(t[o]),n.push(l);return n}function oi(t,e){return t=Z(t),t.alt!==void 0?[g(t.lng,e),g(t.lat,e),g(t.alt,e)]:[g(t.lng,e),g(t.lat,e)]}function ge(t,e,i,n){for(var o=[],s=0,l=t.length;s<l;s++)o.push(e?ge(t[s],at(t[s])?0:e-1,i,n):oi(t[s],n));return!e&&i&&o.length>0&&o.push(o[0].slice()),o}function Nt(t,e){return t.feature?O({},t.feature,{geometry:e}):ve(e)}function ve(t){return t.type==="Feature"||t.type==="FeatureCollection"?t:{type:"Feature",properties:{},geometry:t}}var ri={toGeoJSON:function(t){return Nt(this,{type:"Point",coordinates:oi(this.getLatLng(),t)})}};de.include(ri),ii.include(ri),_e.include(ri),Lt.include({toGeoJSON:function(t){var e=!at(this._latlngs),i=ge(this._latlngs,e?1:0,!1,t);return Nt(this,{type:(e?"Multi":"")+"LineString",coordinates:i})}}),At.include({toGeoJSON:function(t){var e=!at(this._latlngs),i=e&&!at(this._latlngs[0]),n=ge(this._latlngs,i?2:e?1:0,!0,t);return e||(n=[n]),Nt(this,{type:(i?"Multi":"")+"Polygon",coordinates:n})}}),It.include({toMultiPoint:function(t){var e=[];return this.eachLayer(function(i){e.push(i.toGeoJSON(t).geometry.coordinates)}),Nt(this,{type:"MultiPoint",coordinates:e})},toGeoJSON:function(t){var e=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(e==="MultiPoint")return this.toMultiPoint(t);var i=e==="GeometryCollection",n=[];return this.eachLayer(function(o){if(o.toGeoJSON){var s=o.toGeoJSON(t);if(i)n.push(s.geometry);else{var l=ve(s);l.type==="FeatureCollection"?n.push.apply(n,l.features):n.push(l)}}}),i?Nt(this,{geometries:n,type:"GeometryCollection"}):{type:"FeatureCollection",features:n}}});function rn(t,e){return new xt(t,e)}var jo=rn,ye=ut.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(t,e,i){this._url=t,this._bounds=V(e),x(this,i)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(z(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){W(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(t){return this.options.opacity=t,this._image&&this._updateOpacity(),this},setStyle:function(t){return t.opacity&&this.setOpacity(t.opacity),this},bringToFront:function(){return this._map&&Et(this._image),this},bringToBack:function(){return this._map&&Zt(this._image),this},setUrl:function(t){return this._url=t,this._image&&(this._image.src=t),this},setBounds:function(t){return this._bounds=V(t),this._map&&this._reset(),this},getEvents:function(){var t={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var t=this._url.tagName==="IMG",e=this._image=t?this._url:B("img");if(z(e,"leaflet-image-layer"),this._zoomAnimated&&z(e,"leaflet-zoom-animated"),this.options.className&&z(e,this.options.className),e.onselectstart=c,e.onmousemove=c,e.onload=a(this.fire,this,"load"),e.onerror=a(this._overlayOnError,this,"error"),(this.options.crossOrigin||this.options.crossOrigin==="")&&(e.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),t){this._url=e.src;return}e.src=this._url,e.alt=this.options.alt},_animateZoom:function(t){var e=this._map.getZoomScale(t.zoom),i=this._map._latLngBoundsToNewLayerBounds(this._bounds,t.zoom,t.center).min;Mt(this._image,i,e)},_reset:function(){var t=this._image,e=new G(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),i=e.getSize();q(t,e.min),t.style.width=i.x+"px",t.style.height=i.y+"px"},_updateOpacity:function(){st(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 t=this.options.errorOverlayUrl;t&&this._url!==t&&(this._url=t,this._image.src=t)},getCenter:function(){return this._bounds.getCenter()}}),Ko=function(t,e,i){return new ye(t,e,i)},sn=ye.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var t=this._url.tagName==="VIDEO",e=this._image=t?this._url:B("video");if(z(e,"leaflet-image-layer"),this._zoomAnimated&&z(e,"leaflet-zoom-animated"),this.options.className&&z(e,this.options.className),e.onselectstart=c,e.onmousemove=c,e.onloadeddata=a(this.fire,this,"load"),t){for(var i=e.getElementsByTagName("source"),n=[],o=0;o<i.length;o++)n.push(i[o].src);this._url=i.length>0?n:[e.src];return}H(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(e.style,"objectFit")&&(e.style.objectFit="fill"),e.autoplay=!!this.options.autoplay,e.loop=!!this.options.loop,e.muted=!!this.options.muted,e.playsInline=!!this.options.playsInline;for(var s=0;s<this._url.length;s++){var l=B("source");l.src=this._url[s],e.appendChild(l)}}});function Yo(t,e,i){return new sn(t,e,i)}var an=ye.extend({_initImage:function(){var t=this._image=this._url;z(t,"leaflet-image-layer"),this._zoomAnimated&&z(t,"leaflet-zoom-animated"),this.options.className&&z(t,this.options.className),t.onselectstart=c,t.onmousemove=c}});function Xo(t,e,i){return new an(t,e,i)}var _t=ut.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(t,e){t&&(t instanceof N||H(t))?(this._latlng=Z(t),x(this,e)):(x(this,t),this._source=e),this.options.content&&(this._content=this.options.content)},openOn:function(t){return t=arguments.length?t:this._source._map,t.hasLayer(this)||t.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(t){return this._map?this.close():(arguments.length?this._source=t:t=this._source,this._prepareOpen(),this.openOn(t._map)),this},onAdd:function(t){this._zoomAnimated=t._zoomAnimated,this._container||this._initLayout(),t._fadeAnimated&&st(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),t._fadeAnimated&&st(this._container,1),this.bringToFront(),this.options.interactive&&(z(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(t){t._fadeAnimated?(st(this._container,0),this._removeTimeout=setTimeout(a(W,void 0,this._container),200)):W(this._container),this.options.interactive&&(U(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(t){return this._latlng=Z(t),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(t){return this._content=t,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 t={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&Et(this._container),this},bringToBack:function(){return this._map&&Zt(this._container),this},_prepareOpen:function(t){var e=this._source;if(!e._map)return!1;if(e instanceof yt){e=null;var i=this._source._layers;for(var n in i)if(i[n]._map){e=i[n];break}if(!e)return!1;this._source=e}if(!t)if(e.getCenter)t=e.getCenter();else if(e.getLatLng)t=e.getLatLng();else if(e.getBounds)t=e.getBounds().getCenter();else throw new Error("Unable to get source layer LatLng.");return this.setLatLng(t),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var t=this._contentNode,e=typeof this._content=="function"?this._content(this._source||this):this._content;if(typeof e=="string")t.innerHTML=e;else{for(;t.hasChildNodes();)t.removeChild(t.firstChild);t.appendChild(e)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var t=this._map.latLngToLayerPoint(this._latlng),e=M(this.options.offset),i=this._getAnchor();this._zoomAnimated?q(this._container,t.add(i)):e=e.add(t).add(i);var n=this._containerBottom=-e.y,o=this._containerLeft=-Math.round(this._containerWidth/2)+e.x;this._container.style.bottom=n+"px",this._container.style.left=o+"px"}},_getAnchor:function(){return[0,0]}});I.include({_initOverlay:function(t,e,i,n){var o=e;return o instanceof t||(o=new t(n).setContent(e)),i&&o.setLatLng(i),o}}),ut.include({_initOverlay:function(t,e,i,n){var o=i;return o instanceof t?(x(o,n),o._source=this):(o=e&&!n?e:new t(n,this),o.setContent(i)),o}});var Le=_t.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(t){return t=arguments.length?t:this._source._map,!t.hasLayer(this)&&t._popup&&t._popup.options.autoClose&&t.removeLayer(t._popup),t._popup=this,_t.prototype.openOn.call(this,t)},onAdd:function(t){_t.prototype.onAdd.call(this,t),t.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof Ct||this._source.on("preclick",kt))},onRemove:function(t){_t.prototype.onRemove.call(this,t),t.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof Ct||this._source.off("preclick",kt))},getEvents:function(){var t=_t.prototype.getEvents.call(this);return(this.options.closeOnClick!==void 0?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(t.preclick=this.close),this.options.keepInView&&(t.moveend=this._adjustPan),t},_initLayout:function(){var t="leaflet-popup",e=this._container=B("div",t+" "+(this.options.className||"")+" leaflet-zoom-animated"),i=this._wrapper=B("div",t+"-content-wrapper",e);if(this._contentNode=B("div",t+"-content",i),Jt(e),Ke(this._contentNode),k(e,"contextmenu",kt),this._tipContainer=B("div",t+"-tip-container",e),this._tip=B("div",t+"-tip",this._tipContainer),this.options.closeButton){var n=this._closeButton=B("a",t+"-close-button",e);n.setAttribute("role","button"),n.setAttribute("aria-label","Close popup"),n.href="#close",n.innerHTML='<span aria-hidden="true">×</span>',k(n,"click",function(o){J(o),this.close()},this)}},_updateLayout:function(){var t=this._contentNode,e=t.style;e.width="",e.whiteSpace="nowrap";var i=t.offsetWidth;i=Math.min(i,this.options.maxWidth),i=Math.max(i,this.options.minWidth),e.width=i+1+"px",e.whiteSpace="",e.height="";var n=t.offsetHeight,o=this.options.maxHeight,s="leaflet-popup-scrolled";o&&n>o?(e.height=o+"px",z(t,s)):U(t,s),this._containerWidth=this._container.offsetWidth},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center),i=this._getAnchor();q(this._container,e.add(i))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning){this._autopanning=!1;return}var t=this._map,e=parseInt(jt(this._container,"marginBottom"),10)||0,i=this._container.offsetHeight+e,n=this._containerWidth,o=new T(this._containerLeft,-i-this._containerBottom);o._add(Tt(this._container));var s=t.layerPointToContainerPoint(o),l=M(this.options.autoPanPadding),f=M(this.options.autoPanPaddingTopLeft||l),d=M(this.options.autoPanPaddingBottomRight||l),v=t.getSize(),w=0,C=0;s.x+n+d.x>v.x&&(w=s.x+n-v.x+d.x),s.x-w-f.x<0&&(w=s.x-f.x),s.y+i+d.y>v.y&&(C=s.y+i-v.y+d.y),s.y-C-f.y<0&&(C=s.y-f.y),(w||C)&&(this.options.keepInView&&(this._autopanning=!0),t.fire("autopanstart").panBy([w,C]))}},_getAnchor:function(){return M(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),Jo=function(t,e){return new Le(t,e)};I.mergeOptions({closePopupOnClick:!0}),I.include({openPopup:function(t,e,i){return this._initOverlay(Le,t,e,i).openOn(this),this},closePopup:function(t){return t=arguments.length?t:this._popup,t&&t.close(),this}}),ut.include({bindPopup:function(t,e){return this._popup=this._initOverlay(Le,this._popup,t,e),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(t){return this._popup&&(this instanceof yt||(this._popup._source=this),this._popup._prepareOpen(t||this._latlng)&&this._popup.openOn(this._map)),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return this._popup?this._popup.isOpen():!1},setPopupContent:function(t){return this._popup&&this._popup.setContent(t),this},getPopup:function(){return this._popup},_openPopup:function(t){if(!(!this._popup||!this._map)){St(t);var e=t.layer||t.target;if(this._popup._source===e&&!(e instanceof Ct)){this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(t.latlng);return}this._popup._source=e,this.openPopup(t.latlng)}},_movePopup:function(t){this._popup.setLatLng(t.latlng)},_onKeyPress:function(t){t.originalEvent.keyCode===13&&this._openPopup(t)}});var xe=_t.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(t){_t.prototype.onAdd.call(this,t),this.setOpacity(this.options.opacity),t.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(t){_t.prototype.onRemove.call(this,t),t.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var t=_t.prototype.getEvents.call(this);return this.options.permanent||(t.preclick=this.close),t},_initLayout:function(){var t="leaflet-tooltip",e=t+" "+(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-"+u(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(t){var e,i,n=this._map,o=this._container,s=n.latLngToContainerPoint(n.getCenter()),l=n.layerPointToContainerPoint(t),f=this.options.direction,d=o.offsetWidth,v=o.offsetHeight,w=M(this.options.offset),C=this._getAnchor();f==="top"?(e=d/2,i=v):f==="bottom"?(e=d/2,i=0):f==="center"?(e=d/2,i=v/2):f==="right"?(e=0,i=v/2):f==="left"?(e=d,i=v/2):l.x<s.x?(f="right",e=0,i=v/2):(f="left",e=d+(w.x+C.x)*2,i=v/2),t=t.subtract(M(e,i,!0)).add(w).add(C),U(o,"leaflet-tooltip-right"),U(o,"leaflet-tooltip-left"),U(o,"leaflet-tooltip-top"),U(o,"leaflet-tooltip-bottom"),z(o,"leaflet-tooltip-"+f),q(o,t)},_updatePosition:function(){var t=this._map.latLngToLayerPoint(this._latlng);this._setPosition(t)},setOpacity:function(t){this.options.opacity=t,this._container&&st(this._container,t)},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center);this._setPosition(e)},_getAnchor:function(){return M(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),$o=function(t,e){return new xe(t,e)};I.include({openTooltip:function(t,e,i){return this._initOverlay(xe,t,e,i).openOn(this),this},closeTooltip:function(t){return t.close(),this}}),ut.include({bindTooltip:function(t,e){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(xe,this._tooltip,t,e),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(),this._tooltip=null),this},_initTooltipInteractions:function(t){if(!(!t&&this._tooltipHandlersAdded)){var e=t?"off":"on",i={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?i.add=this._openTooltip:(i.mouseover=this._openTooltip,i.mouseout=this.closeTooltip,i.click=this._openTooltip,this._map?this._addFocusListeners():i.add=this._addFocusListeners),this._tooltip.options.sticky&&(i.mousemove=this._moveTooltip),this[e](i),this._tooltipHandlersAdded=!t}},openTooltip:function(t){return this._tooltip&&(this instanceof yt||(this._tooltip._source=this),this._tooltip._prepareOpen(t)&&(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(t){return this._tooltip&&this._tooltip.setContent(t),this},getTooltip:function(){return this._tooltip},_addFocusListeners:function(){this.getElement?this._addFocusListenersOnLayer(this):this.eachLayer&&this.eachLayer(this._addFocusListenersOnLayer,this)},_addFocusListenersOnLayer:function(t){var e=typeof t.getElement=="function"&&t.getElement();e&&(k(e,"focus",function(){this._tooltip._source=t,this.openTooltip()},this),k(e,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(t){var e=typeof t.getElement=="function"&&t.getElement();e&&e.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(t){if(!(!this._tooltip||!this._map)){if(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag){this._openOnceFlag=!0;var e=this;this._map.once("moveend",function(){e._openOnceFlag=!1,e._openTooltip(t)});return}this._tooltip._source=t.layer||t.target,this.openTooltip(this._tooltip.options.sticky?t.latlng:void 0)}},_moveTooltip:function(t){var e=t.latlng,i,n;this._tooltip.options.sticky&&t.originalEvent&&(i=this._map.mouseEventToContainerPoint(t.originalEvent),n=this._map.containerPointToLayerPoint(i),e=this._map.layerPointToLatLng(n)),this._tooltip.setLatLng(e)}});var hn=Bt.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(t){var e=t&&t.tagName==="DIV"?t:document.createElement("div"),i=this.options;if(i.html instanceof Element?(ae(e),e.appendChild(i.html)):e.innerHTML=i.html!==!1?i.html:"",i.bgPos){var n=M(i.bgPos);e.style.backgroundPosition=-n.x+"px "+-n.y+"px"}return this._setIconStyles(e,"icon"),e},createShadow:function(){return null}});function Qo(t){return new hn(t)}Bt.Default=te;var ee=ut.extend({options:{tileSize:256,opacity:1,updateWhenIdle:P.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(t){x(this,t)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(t){t._addZoomLimit(this)},onRemove:function(t){this._removeAllTiles(),W(this._container),t._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(Et(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(Zt(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(t){return this.options.opacity=t,this._updateOpacity(),this},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var t=this._clampZoom(this._map.getZoom());t!==this._tileZoom&&(this._tileZoom=t,this._updateLevels()),this._update()}return this},getEvents:function(){var t={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=_(this._onMoveEnd,this.options.updateInterval,this)),t.move=this._onMove),this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},createTile:function(){return document.createElement("div")},getTileSize:function(){var t=this.options.tileSize;return t instanceof T?t:new T(t,t)},_updateZIndex:function(){this._container&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(t){for(var e=this.getPane().children,i=-t(-1/0,1/0),n=0,o=e.length,s;n<o;n++)s=e[n].style.zIndex,e[n]!==this._container&&s&&(i=t(i,+s));isFinite(i)&&(this.options.zIndex=i+t(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!P.ielt9){st(this._container,this.options.opacity);var t=+new Date,e=!1,i=!1;for(var n in this._tiles){var o=this._tiles[n];if(!(!o.current||!o.loaded)){var s=Math.min(1,(t-o.loaded)/200);st(o.el,s),s<1?e=!0:(o.active?i=!0:this._onOpaqueTile(o),o.active=!0)}}i&&!this._noPrune&&this._pruneTiles(),e&&(rt(this._fadeFrame),this._fadeFrame=Q(this._updateOpacity,this))}},_onOpaqueTile:c,_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 t=this._tileZoom,e=this.options.maxZoom;if(t!==void 0){for(var i in this._levels)i=Number(i),this._levels[i].el.children.length||i===t?(this._levels[i].el.style.zIndex=e-Math.abs(t-i),this._onUpdateLevel(i)):(W(this._levels[i].el),this._removeTilesAtZoom(i),this._onRemoveLevel(i),delete this._levels[i]);var n=this._levels[t],o=this._map;return n||(n=this._levels[t]={},n.el=B("div","leaflet-tile-container leaflet-zoom-animated",this._container),n.el.style.zIndex=e,n.origin=o.project(o.unproject(o.getPixelOrigin()),t).round(),n.zoom=t,this._setZoomTransform(n,o.getCenter(),o.getZoom()),c(n.el.offsetWidth),this._onCreateLevel(n)),this._level=n,n}},_onUpdateLevel:c,_onRemoveLevel:c,_onCreateLevel:c,_pruneTiles:function(){if(this._map){var t,e,i=this._map.getZoom();if(i>this.options.maxZoom||i<this.options.minZoom){this._removeAllTiles();return}for(t in this._tiles)e=this._tiles[t],e.retain=e.current;for(t in this._tiles)if(e=this._tiles[t],e.current&&!e.active){var n=e.coords;this._retainParent(n.x,n.y,n.z,n.z-5)||this._retainChildren(n.x,n.y,n.z,n.z+2)}for(t in this._tiles)this._tiles[t].retain||this._removeTile(t)}},_removeTilesAtZoom:function(t){for(var e in this._tiles)this._tiles[e].coords.z===t&&this._removeTile(e)},_removeAllTiles:function(){for(var t in this._tiles)this._removeTile(t)},_invalidateAll:function(){for(var t in this._levels)W(this._levels[t].el),this._onRemoveLevel(Number(t)),delete this._levels[t];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(t,e,i,n){var o=Math.floor(t/2),s=Math.floor(e/2),l=i-1,f=new T(+o,+s);f.z=+l;var d=this._tileCoordsToKey(f),v=this._tiles[d];return v&&v.active?(v.retain=!0,!0):(v&&v.loaded&&(v.retain=!0),l>n?this._retainParent(o,s,l,n):!1)},_retainChildren:function(t,e,i,n){for(var o=2*t;o<2*t+2;o++)for(var s=2*e;s<2*e+2;s++){var l=new T(o,s);l.z=i+1;var f=this._tileCoordsToKey(l),d=this._tiles[f];if(d&&d.active){d.retain=!0;continue}else d&&d.loaded&&(d.retain=!0);i+1<n&&this._retainChildren(o,s,i+1,n)}},_resetView:function(t){var e=t&&(t.pinch||t.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),e,e)},_animateZoom:function(t){this._setView(t.center,t.zoom,!0,t.noUpdate)},_clampZoom:function(t){var e=this.options;return e.minNativeZoom!==void 0&&t<e.minNativeZoom?e.minNativeZoom:e.maxNativeZoom!==void 0&&e.maxNativeZoom<t?e.maxNativeZoom:t},_setView:function(t,e,i,n){var o=Math.round(e);this.options.maxZoom!==void 0&&o>this.options.maxZoom||this.options.minZoom!==void 0&&o<this.options.minZoom?o=void 0:o=this._clampZoom(o);var s=this.options.updateWhenZooming&&o!==this._tileZoom;(!n||s)&&(this._tileZoom=o,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),o!==void 0&&this._update(t),i||this._pruneTiles(),this._noPrune=!!i),this._setZoomTransforms(t,e)},_setZoomTransforms:function(t,e){for(var i in this._levels)this._setZoomTransform(this._levels[i],t,e)},_setZoomTransform:function(t,e,i){var n=this._map.getZoomScale(i,t.zoom),o=t.origin.multiplyBy(n).subtract(this._map._getNewPixelOrigin(e,i)).round();P.any3d?Mt(t.el,o,n):q(t.el,o)},_resetGrid:function(){var t=this._map,e=t.options.crs,i=this._tileSize=this.getTileSize(),n=this._tileZoom,o=this._map.getPixelWorldBounds(this._tileZoom);o&&(this._globalTileRange=this._pxBoundsToTileRange(o)),this._wrapX=e.wrapLng&&!this.options.noWrap&&[Math.floor(t.project([0,e.wrapLng[0]],n).x/i.x),Math.ceil(t.project([0,e.wrapLng[1]],n).x/i.y)],this._wrapY=e.wrapLat&&!this.options.noWrap&&[Math.floor(t.project([e.wrapLat[0],0],n).y/i.x),Math.ceil(t.project([e.wrapLat[1],0],n).y/i.y)]},_onMoveEnd:function(){!this._map||this._map._animatingZoom||this._update()},_getTiledPixelBounds:function(t){var e=this._map,i=e._animatingZoom?Math.max(e._animateToZoom,e.getZoom()):e.getZoom(),n=e.getZoomScale(i,this._tileZoom),o=e.project(t,this._tileZoom).floor(),s=e.getSize().divideBy(n*2);return new G(o.subtract(s),o.add(s))},_update:function(t){var e=this._map;if(e){var i=this._clampZoom(e.getZoom());if(t===void 0&&(t=e.getCenter()),this._tileZoom!==void 0){var n=this._getTiledPixelBounds(t),o=this._pxBoundsToTileRange(n),s=o.getCenter(),l=[],f=this.options.keepBuffer,d=new G(o.getBottomLeft().subtract([f,-f]),o.getTopRight().add([f,-f]));if(!(isFinite(o.min.x)&&isFinite(o.min.y)&&isFinite(o.max.x)&&isFinite(o.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var v in this._tiles){var w=this._tiles[v].coords;(w.z!==this._tileZoom||!d.contains(new T(w.x,w.y)))&&(this._tiles[v].current=!1)}if(Math.abs(i-this._tileZoom)>1){this._setView(t,i);return}for(var C=o.min.y;C<=o.max.y;C++)for(var E=o.min.x;E<=o.max.x;E++){var $=new T(E,C);if($.z=this._tileZoom,!!this._isValidTile($)){var X=this._tiles[this._tileCoordsToKey($)];X?X.current=!0:l.push($)}}if(l.sort(function(it,Dt){return it.distanceTo(s)-Dt.distanceTo(s)}),l.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var ht=document.createDocumentFragment();for(E=0;E<l.length;E++)this._addTile(l[E],ht);this._level.el.appendChild(ht)}}}},_isValidTile:function(t){var e=this._map.options.crs;if(!e.infinite){var i=this._globalTileRange;if(!e.wrapLng&&(t.x<i.min.x||t.x>i.max.x)||!e.wrapLat&&(t.y<i.min.y||t.y>i.max.y))return!1}if(!this.options.bounds)return!0;var n=this._tileCoordsToBounds(t);return V(this.options.bounds).overlaps(n)},_keyToBounds:function(t){return this._tileCoordsToBounds(this._keyToTileCoords(t))},_tileCoordsToNwSe:function(t){var e=this._map,i=this.getTileSize(),n=t.scaleBy(i),o=n.add(i),s=e.unproject(n,t.z),l=e.unproject(o,t.z);return[s,l]},_tileCoordsToBounds:function(t){var e=this._tileCoordsToNwSe(t),i=new et(e[0],e[1]);return this.options.noWrap||(i=this._map.wrapLatLngBounds(i)),i},_tileCoordsToKey:function(t){return t.x+":"+t.y+":"+t.z},_keyToTileCoords:function(t){var e=t.split(":"),i=new T(+e[0],+e[1]);return i.z=+e[2],i},_removeTile:function(t){var e=this._tiles[t];e&&(W(e.el),delete this._tiles[t],this.fire("tileunload",{tile:e.el,coords:this._keyToTileCoords(t)}))},_initTile:function(t){z(t,"leaflet-tile");var e=this.getTileSize();t.style.width=e.x+"px",t.style.height=e.y+"px",t.onselectstart=c,t.onmousemove=c,P.ielt9&&this.options.opacity<1&&st(t,this.options.opacity)},_addTile:function(t,e){var i=this._getTilePos(t),n=this._tileCoordsToKey(t),o=this.createTile(this._wrapCoords(t),a(this._tileReady,this,t));this._initTile(o),this.createTile.length<2&&Q(a(this._tileReady,this,t,null,o)),q(o,i),this._tiles[n]={el:o,coords:t,current:!0},e.appendChild(o),this.fire("tileloadstart",{tile:o,coords:t})},_tileReady:function(t,e,i){e&&this.fire("tileerror",{error:e,tile:i,coords:t});var n=this._tileCoordsToKey(t);i=this._tiles[n],i&&(i.loaded=+new Date,this._map._fadeAnimated?(st(i.el,0),rt(this._fadeFrame),this._fadeFrame=Q(this._updateOpacity,this)):(i.active=!0,this._pruneTiles()),e||(z(i.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:i.el,coords:t})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),P.ielt9||!this._map._fadeAnimated?Q(this._pruneTiles,this):setTimeout(a(this._pruneTiles,this),250)))},_getTilePos:function(t){return t.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(t){var e=new T(this._wrapX?p(t.x,this._wrapX):t.x,this._wrapY?p(t.y,this._wrapY):t.y);return e.z=t.z,e},_pxBoundsToTileRange:function(t){var e=this.getTileSize();return new G(t.min.unscaleBy(e).floor(),t.max.unscaleBy(e).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var t in this._tiles)if(!this._tiles[t].loaded)return!1;return!0}});function tr(t){return new ee(t)}var Rt=ee.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(t,e){this._url=t,e=x(this,e),e.detectRetina&&P.retina&&e.maxZoom>0?(e.tileSize=Math.floor(e.tileSize/2),e.zoomReverse?(e.zoomOffset--,e.minZoom=Math.min(e.maxZoom,e.minZoom+1)):(e.zoomOffset++,e.maxZoom=Math.max(e.minZoom,e.maxZoom-1)),e.minZoom=Math.max(0,e.minZoom)):e.zoomReverse?e.minZoom=Math.min(e.maxZoom,e.minZoom):e.maxZoom=Math.max(e.minZoom,e.maxZoom),typeof e.subdomains=="string"&&(e.subdomains=e.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(t,e){return this._url===t&&e===void 0&&(e=!0),this._url=t,e||this.redraw(),this},createTile:function(t,e){var i=document.createElement("img");return k(i,"load",a(this._tileOnLoad,this,e,i)),k(i,"error",a(this._tileOnError,this,e,i)),(this.options.crossOrigin||this.options.crossOrigin==="")&&(i.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&(i.referrerPolicy=this.options.referrerPolicy),i.alt="",i.src=this.getTileUrl(t),i},getTileUrl:function(t){var e={r:P.retina?"@2x":"",s:this._getSubdomain(t),x:t.x,y:t.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var i=this._globalTileRange.max.y-t.y;this.options.tms&&(e.y=i),e["-y"]=i}return F(this._url,O(e,this.options))},_tileOnLoad:function(t,e){P.ielt9?setTimeout(a(t,this,null,e),0):t(null,e)},_tileOnError:function(t,e,i){var n=this.options.errorTileUrl;n&&e.getAttribute("src")!==n&&(e.src=n),t(i,e)},_onTileRemove:function(t){t.tile.onload=null},_getZoomForUrl:function(){var t=this._tileZoom,e=this.options.maxZoom,i=this.options.zoomReverse,n=this.options.zoomOffset;return i&&(t=e-t),t+n},_getSubdomain:function(t){var e=Math.abs(t.x+t.y)%this.options.subdomains.length;return this.options.subdomains[e]},_abortLoading:function(){var t,e;for(t in this._tiles)if(this._tiles[t].coords.z!==this._tileZoom&&(e=this._tiles[t].el,e.onload=c,e.onerror=c,!e.complete)){e.src=nt;var i=this._tiles[t].coords;W(e),delete this._tiles[t],this.fire("tileabort",{tile:e,coords:i})}},_removeTile:function(t){var e=this._tiles[t];if(e)return e.el.setAttribute("src",nt),ee.prototype._removeTile.call(this,t)},_tileReady:function(t,e,i){if(!(!this._map||i&&i.getAttribute("src")===nt))return ee.prototype._tileReady.call(this,t,e,i)}});function ln(t,e){return new Rt(t,e)}var un=Rt.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(t,e){this._url=t;var i=O({},this.defaultWmsParams);for(var n in e)n in this.options||(i[n]=e[n]);e=x(this,e);var o=e.detectRetina&&P.retina?2:1,s=this.getTileSize();i.width=s.x*o,i.height=s.y*o,this.wmsParams=i},onAdd:function(t){this._crs=this.options.crs||t.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var e=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[e]=this._crs.code,Rt.prototype.onAdd.call(this,t)},getTileUrl:function(t){var e=this._tileCoordsToNwSe(t),i=this._crs,n=tt(i.project(e[0]),i.project(e[1])),o=n.min,s=n.max,l=(this._wmsVersion>=1.3&&this._crs===en?[o.y,o.x,s.y,s.x]:[o.x,o.y,s.x,s.y]).join(","),f=Rt.prototype.getTileUrl.call(this,t);return f+R(this.wmsParams,f,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+l},setParams:function(t,e){return O(this.wmsParams,t),e||this.redraw(),this}});function er(t,e){return new un(t,e)}Rt.WMS=un,ln.wms=er;var wt=ut.extend({options:{padding:.1},initialize:function(t){x(this,t),u(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),z(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var t={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(t.zoomanim=this._onAnimZoom),t},_onAnimZoom:function(t){this._updateTransform(t.center,t.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(t,e){var i=this._map.getZoomScale(e,this._zoom),n=this._map.getSize().multiplyBy(.5+this.options.padding),o=this._map.project(this._center,e),s=n.multiplyBy(-i).add(o).subtract(this._map._getNewPixelOrigin(t,e));P.any3d?Mt(this._container,s,i):q(this._container,s)},_reset:function(){this._update(),this._updateTransform(this._center,this._zoom);for(var t in this._layers)this._layers[t]._reset()},_onZoomEnd:function(){for(var t in this._layers)this._layers[t]._project()},_updatePaths:function(){for(var t in this._layers)this._layers[t]._update()},_update:function(){var t=this.options.padding,e=this._map.getSize(),i=this._map.containerPointToLayerPoint(e.multiplyBy(-t)).round();this._bounds=new G(i,i.add(e.multiplyBy(1+t*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),fn=wt.extend({options:{tolerance:0},getEvents:function(){var t=wt.prototype.getEvents.call(this);return t.viewprereset=this._onViewPreReset,t},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){wt.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var t=this._container=document.createElement("canvas");k(t,"mousemove",this._onMouseMove,this),k(t,"click dblclick mousedown mouseup contextmenu",this._onClick,this),k(t,"mouseout",this._handleMouseOut,this),t._leaflet_disable_events=!0,this._ctx=t.getContext("2d")},_destroyContainer:function(){rt(this._redrawRequest),delete this._ctx,W(this._container),D(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var t;this._redrawBounds=null;for(var e in this._layers)t=this._layers[e],t._update();this._redraw()}},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){wt.prototype._update.call(this);var t=this._bounds,e=this._container,i=t.getSize(),n=P.retina?2:1;q(e,t.min),e.width=n*i.x,e.height=n*i.y,e.style.width=i.x+"px",e.style.height=i.y+"px",P.retina&&this._ctx.scale(2,2),this._ctx.translate(-t.min.x,-t.min.y),this.fire("update")}},_reset:function(){wt.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(t){this._updateDashArray(t),this._layers[u(t)]=t;var e=t._order={layer:t,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=e),this._drawLast=e,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(t){this._requestRedraw(t)},_removePath:function(t){var e=t._order,i=e.next,n=e.prev;i?i.prev=n:this._drawLast=n,n?n.next=i:this._drawFirst=i,delete t._order,delete this._layers[u(t)],this._requestRedraw(t)},_updatePath:function(t){this._extendRedrawBounds(t),t._project(),t._update(),this._requestRedraw(t)},_updateStyle:function(t){this._updateDashArray(t),this._requestRedraw(t)},_updateDashArray:function(t){if(typeof t.options.dashArray=="string"){var e=t.options.dashArray.split(/[, ]+/),i=[],n,o;for(o=0;o<e.length;o++){if(n=Number(e[o]),isNaN(n))return;i.push(n)}t.options._dashArray=i}else t.options._dashArray=t.options.dashArray},_requestRedraw:function(t){this._map&&(this._extendRedrawBounds(t),this._redrawRequest=this._redrawRequest||Q(this._redraw,this))},_extendRedrawBounds:function(t){if(t._pxBounds){var e=(t.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new G,this._redrawBounds.extend(t._pxBounds.min.subtract([e,e])),this._redrawBounds.extend(t._pxBounds.max.add([e,e]))}},_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 t=this._redrawBounds;if(t){var e=t.getSize();this._ctx.clearRect(t.min.x,t.min.y,e.x,e.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 t,e=this._redrawBounds;if(this._ctx.save(),e){var i=e.getSize();this._ctx.beginPath(),this._ctx.rect(e.min.x,e.min.y,i.x,i.y),this._ctx.clip()}this._drawing=!0;for(var n=this._drawFirst;n;n=n.next)t=n.layer,(!e||t._pxBounds&&t._pxBounds.intersects(e))&&t._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(t,e){if(this._drawing){var i,n,o,s,l=t._parts,f=l.length,d=this._ctx;if(f){for(d.beginPath(),i=0;i<f;i++){for(n=0,o=l[i].length;n<o;n++)s=l[i][n],d[n?"lineTo":"moveTo"](s.x,s.y);e&&d.closePath()}this._fillStroke(d,t)}}},_updateCircle:function(t){if(!(!this._drawing||t._empty())){var e=t._point,i=this._ctx,n=Math.max(Math.round(t._radius),1),o=(Math.max(Math.round(t._radiusY),1)||n)/n;o!==1&&(i.save(),i.scale(1,o)),i.beginPath(),i.arc(e.x,e.y/o,n,0,Math.PI*2,!1),o!==1&&i.restore(),this._fillStroke(i,t)}},_fillStroke:function(t,e){var i=e.options;i.fill&&(t.globalAlpha=i.fillOpacity,t.fillStyle=i.fillColor||i.color,t.fill(i.fillRule||"evenodd")),i.stroke&&i.weight!==0&&(t.setLineDash&&t.setLineDash(e.options&&e.options._dashArray||[]),t.globalAlpha=i.opacity,t.lineWidth=i.weight,t.strokeStyle=i.color,t.lineCap=i.lineCap,t.lineJoin=i.lineJoin,t.stroke())},_onClick:function(t){for(var e=this._map.mouseEventToLayerPoint(t),i,n,o=this._drawFirst;o;o=o.next)i=o.layer,i.options.interactive&&i._containsPoint(e)&&(!(t.type==="click"||t.type==="preclick")||!this._map._draggableMoved(i))&&(n=i);this._fireEvent(n?[n]:!1,t)},_onMouseMove:function(t){if(!(!this._map||this._map.dragging.moving()||this._map._animatingZoom)){var e=this._map.mouseEventToLayerPoint(t);this._handleMouseHover(t,e)}},_handleMouseOut:function(t){var e=this._hoveredLayer;e&&(U(this._container,"leaflet-interactive"),this._fireEvent([e],t,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(t,e){if(!this._mouseHoverThrottled){for(var i,n,o=this._drawFirst;o;o=o.next)i=o.layer,i.options.interactive&&i._containsPoint(e)&&(n=i);n!==this._hoveredLayer&&(this._handleMouseOut(t),n&&(z(this._container,"leaflet-interactive"),this._fireEvent([n],t,"mouseover"),this._hoveredLayer=n)),this._fireEvent(this._hoveredLayer?[this._hoveredLayer]:!1,t),this._mouseHoverThrottled=!0,setTimeout(a(function(){this._mouseHoverThrottled=!1},this),32)}},_fireEvent:function(t,e,i){this._map._fireDOMEvent(e,i||e.type,t)},_bringToFront:function(t){var e=t._order;if(e){var i=e.next,n=e.prev;if(i)i.prev=n;else return;n?n.next=i:i&&(this._drawFirst=i),e.prev=this._drawLast,this._drawLast.next=e,e.next=null,this._drawLast=e,this._requestRedraw(t)}},_bringToBack:function(t){var e=t._order;if(e){var i=e.next,n=e.prev;if(n)n.next=i;else return;i?i.prev=n:n&&(this._drawLast=n),e.prev=null,e.next=this._drawFirst,this._drawFirst.prev=e,this._drawFirst=e,this._requestRedraw(t)}}});function cn(t){return P.canvas?new fn(t):null}var ie=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(t){return document.createElement("<lvml:"+t+' class="lvml">')}}catch{}return function(t){return document.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),ir={_initContainer:function(){this._container=B("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(wt.prototype._update.call(this),this.fire("update"))},_initPath:function(t){var e=t._container=ie("shape");z(e,"leaflet-vml-shape "+(this.options.className||"")),e.coordsize="1 1",t._path=ie("path"),e.appendChild(t._path),this._updateStyle(t),this._layers[u(t)]=t},_addPath:function(t){var e=t._container;this._container.appendChild(e),t.options.interactive&&t.addInteractiveTarget(e)},_removePath:function(t){var e=t._container;W(e),t.removeInteractiveTarget(e),delete this._layers[u(t)]},_updateStyle:function(t){var e=t._stroke,i=t._fill,n=t.options,o=t._container;o.stroked=!!n.stroke,o.filled=!!n.fill,n.stroke?(e||(e=t._stroke=ie("stroke")),o.appendChild(e),e.weight=n.weight+"px",e.color=n.color,e.opacity=n.opacity,n.dashArray?e.dashStyle=H(n.dashArray)?n.dashArray.join(" "):n.dashArray.replace(/( *, *)/g," "):e.dashStyle="",e.endcap=n.lineCap.replace("butt","flat"),e.joinstyle=n.lineJoin):e&&(o.removeChild(e),t._stroke=null),n.fill?(i||(i=t._fill=ie("fill")),o.appendChild(i),i.color=n.fillColor||n.color,i.opacity=n.fillOpacity):i&&(o.removeChild(i),t._fill=null)},_updateCircle:function(t){var e=t._point.round(),i=Math.round(t._radius),n=Math.round(t._radiusY||i);this._setPath(t,t._empty()?"M0 0":"AL "+e.x+","+e.y+" "+i+","+n+" 0,"+65535*360)},_setPath:function(t,e){t._path.v=e},_bringToFront:function(t){Et(t._container)},_bringToBack:function(t){Zt(t._container)}},we=P.vml?ie:pi,ne=wt.extend({_initContainer:function(){this._container=we("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=we("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){W(this._container),D(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){wt.prototype._update.call(this);var t=this._bounds,e=t.getSize(),i=this._container;(!this._svgSize||!this._svgSize.equals(e))&&(this._svgSize=e,i.setAttribute("width",e.x),i.setAttribute("height",e.y)),q(i,t.min),i.setAttribute("viewBox",[t.min.x,t.min.y,e.x,e.y].join(" ")),this.fire("update")}},_initPath:function(t){var e=t._path=we("path");t.options.className&&z(e,t.options.className),t.options.interactive&&z(e,"leaflet-interactive"),this._updateStyle(t),this._layers[u(t)]=t},_addPath:function(t){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(t._path),t.addInteractiveTarget(t._path)},_removePath:function(t){W(t._path),t.removeInteractiveTarget(t._path),delete this._layers[u(t)]},_updatePath:function(t){t._project(),t._update()},_updateStyle:function(t){var e=t._path,i=t.options;e&&(i.stroke?(e.setAttribute("stroke",i.color),e.setAttribute("stroke-opacity",i.opacity),e.setAttribute("stroke-width",i.weight),e.setAttribute("stroke-linecap",i.lineCap),e.setAttribute("stroke-linejoin",i.lineJoin),i.dashArray?e.setAttribute("stroke-dasharray",i.dashArray):e.removeAttribute("stroke-dasharray"),i.dashOffset?e.setAttribute("stroke-dashoffset",i.dashOffset):e.removeAttribute("stroke-dashoffset")):e.setAttribute("stroke","none"),i.fill?(e.setAttribute("fill",i.fillColor||i.color),e.setAttribute("fill-opacity",i.fillOpacity),e.setAttribute("fill-rule",i.fillRule||"evenodd")):e.setAttribute("fill","none"))},_updatePoly:function(t,e){this._setPath(t,mi(t._parts,e))},_updateCircle:function(t){var e=t._point,i=Math.max(Math.round(t._radius),1),n=Math.max(Math.round(t._radiusY),1)||i,o="a"+i+","+n+" 0 1,0 ",s=t._empty()?"M0 0":"M"+(e.x-i)+","+e.y+o+i*2+",0 "+o+-i*2+",0 ";this._setPath(t,s)},_setPath:function(t,e){t._path.setAttribute("d",e)},_bringToFront:function(t){Et(t._path)},_bringToBack:function(t){Zt(t._path)}});P.vml&&ne.include(ir);function dn(t){return P.svg||P.vml?new ne(t):null}I.include({getRenderer:function(t){var e=t.options.renderer||this._getPaneRenderer(t.options.pane)||this.options.renderer||this._renderer;return e||(e=this._renderer=this._createRenderer()),this.hasLayer(e)||this.addLayer(e),e},_getPaneRenderer:function(t){if(t==="overlayPane"||t===void 0)return!1;var e=this._paneRenderers[t];return e===void 0&&(e=this._createRenderer({pane:t}),this._paneRenderers[t]=e),e},_createRenderer:function(t){return this.options.preferCanvas&&cn(t)||dn(t)}});var _n=At.extend({initialize:function(t,e){At.prototype.initialize.call(this,this._boundsToLatLngs(t),e)},setBounds:function(t){return this.setLatLngs(this._boundsToLatLngs(t))},_boundsToLatLngs:function(t){return t=V(t),[t.getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}});function nr(t,e){return new _n(t,e)}ne.create=we,ne.pointsToPath=mi,xt.geometryToLayer=pe,xt.coordsToLatLng=ni,xt.coordsToLatLngs=me,xt.latLngToCoords=oi,xt.latLngsToCoords=ge,xt.getFeature=Nt,xt.asFeature=ve,I.mergeOptions({boxZoom:!0});var pn=dt.extend({initialize:function(t){this._map=t,this._container=t._container,this._pane=t._panes.overlayPane,this._resetStateTimeout=0,t.on("unload",this._destroy,this)},addHooks:function(){k(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){D(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){W(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(t){if(!t.shiftKey||t.which!==1&&t.button!==1)return!1;this._clearDeferredResetState(),this._resetState(),Kt(),Fe(),this._startPoint=this._map.mouseEventToContainerPoint(t),k(document,{contextmenu:St,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(t){this._moved||(this._moved=!0,this._box=B("div","leaflet-zoom-box",this._container),z(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(t);var e=new G(this._point,this._startPoint),i=e.getSize();q(this._box,e.min),this._box.style.width=i.x+"px",this._box.style.height=i.y+"px"},_finish:function(){this._moved&&(W(this._box),U(this._container,"leaflet-crosshair")),Yt(),He(),D(document,{contextmenu:St,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(t){if(!(t.which!==1&&t.button!==1)&&(this._finish(),!!this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(a(this._resetState,this),0);var e=new et(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(e).fire("boxzoomend",{boxZoomBounds:e})}},_onKeyDown:function(t){t.keyCode===27&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});I.addInitHook("addHandler","boxZoom",pn),I.mergeOptions({doubleClickZoom:!0});var mn=dt.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(t){var e=this._map,i=e.getZoom(),n=e.options.zoomDelta,o=t.originalEvent.shiftKey?i-n:i+n;e.options.doubleClickZoom==="center"?e.setZoom(o):e.setZoomAround(t.containerPoint,o)}});I.addInitHook("addHandler","doubleClickZoom",mn),I.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var gn=dt.extend({addHooks:function(){if(!this._draggable){var t=this._map;this._draggable=new Pt(t._mapPane,t._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),t.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),t.on("zoomend",this._onZoomEnd,this),t.whenReady(this._onZoomEnd,this))}z(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 t=this._map;if(t._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var e=V(this._map.options.maxBounds);this._offsetLimit=tt(this._map.latLngToContainerPoint(e.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(e.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;t.fire("movestart").fire("dragstart"),t.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(t){if(this._map.options.inertia){var e=this._lastTime=+new Date,i=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(i),this._times.push(e),this._prunePositions(e)}this._map.fire("move",t).fire("drag",t)},_prunePositions:function(t){for(;this._positions.length>1&&t-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var t=this._map.getSize().divideBy(2),e=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=e.subtract(t).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(t,e){return t-(t-e)*this._viscosity},_onPreDragLimit:function(){if(!(!this._viscosity||!this._offsetLimit)){var t=this._draggable._newPos.subtract(this._draggable._startPos),e=this._offsetLimit;t.x<e.min.x&&(t.x=this._viscousLimit(t.x,e.min.x)),t.y<e.min.y&&(t.y=this._viscousLimit(t.y,e.min.y)),t.x>e.max.x&&(t.x=this._viscousLimit(t.x,e.max.x)),t.y>e.max.y&&(t.y=this._viscousLimit(t.y,e.max.y)),this._draggable._newPos=this._draggable._startPos.add(t)}},_onPreDragWrap:function(){var t=this._worldWidth,e=Math.round(t/2),i=this._initialWorldOffset,n=this._draggable._newPos.x,o=(n-e+i)%t+e-i,s=(n+e+i)%t-e-i,l=Math.abs(o+i)<Math.abs(s+i)?o:s;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=l},_onDragEnd:function(t){var e=this._map,i=e.options,n=!i.inertia||t.noInertia||this._times.length<2;if(e.fire("dragend",t),n)e.fire("moveend");else{this._prunePositions(+new Date);var o=this._lastPos.subtract(this._positions[0]),s=(this._lastTime-this._times[0])/1e3,l=i.easeLinearity,f=o.multiplyBy(l/s),d=f.distanceTo([0,0]),v=Math.min(i.inertiaMaxSpeed,d),w=f.multiplyBy(v/d),C=v/(i.inertiaDeceleration*l),E=w.multiplyBy(-C/2).round();!E.x&&!E.y?e.fire("moveend"):(E=e._limitOffset(E,e.options.maxBounds),Q(function(){e.panBy(E,{duration:C,easeLinearity:l,noMoveStart:!0,animate:!0})}))}}});I.addInitHook("addHandler","dragging",gn),I.mergeOptions({keyboard:!0,keyboardPanDelta:80});var vn=dt.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(t){this._map=t,this._setPanDelta(t.options.keyboardPanDelta),this._setZoomDelta(t.options.zoomDelta)},addHooks:function(){var t=this._map._container;t.tabIndex<=0&&(t.tabIndex="0"),k(t,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),D(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 t=document.body,e=document.documentElement,i=t.scrollTop||e.scrollTop,n=t.scrollLeft||e.scrollLeft;this._map._container.focus(),window.scrollTo(n,i)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(t){var e=this._panKeys={},i=this.keyCodes,n,o;for(n=0,o=i.left.length;n<o;n++)e[i.left[n]]=[-1*t,0];for(n=0,o=i.right.length;n<o;n++)e[i.right[n]]=[t,0];for(n=0,o=i.down.length;n<o;n++)e[i.down[n]]=[0,t];for(n=0,o=i.up.length;n<o;n++)e[i.up[n]]=[0,-1*t]},_setZoomDelta:function(t){var e=this._zoomKeys={},i=this.keyCodes,n,o;for(n=0,o=i.zoomIn.length;n<o;n++)e[i.zoomIn[n]]=t;for(n=0,o=i.zoomOut.length;n<o;n++)e[i.zoomOut[n]]=-t},_addHooks:function(){k(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){D(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(t){if(!(t.altKey||t.ctrlKey||t.metaKey)){var e=t.keyCode,i=this._map,n;if(e in this._panKeys){if(!i._panAnim||!i._panAnim._inProgress)if(n=this._panKeys[e],t.shiftKey&&(n=M(n).multiplyBy(3)),i.options.maxBounds&&(n=i._limitOffset(M(n),i.options.maxBounds)),i.options.worldCopyJump){var o=i.wrapLatLng(i.unproject(i.project(i.getCenter()).add(n)));i.panTo(o)}else i.panBy(n)}else if(e in this._zoomKeys)i.setZoom(i.getZoom()+(t.shiftKey?3:1)*this._zoomKeys[e]);else if(e===27&&i._popup&&i._popup.options.closeOnEscapeKey)i.closePopup();else return;St(t)}}});I.addInitHook("addHandler","keyboard",vn),I.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var yn=dt.extend({addHooks:function(){k(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){D(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(t){var e=Gi(t),i=this._map.options.wheelDebounceTime;this._delta+=e,this._lastMousePos=this._map.mouseEventToContainerPoint(t),this._startTime||(this._startTime=+new Date);var n=Math.max(i-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(a(this._performZoom,this),n),St(t)},_performZoom:function(){var t=this._map,e=t.getZoom(),i=this._map.options.zoomSnap||0;t._stop();var n=this._delta/(this._map.options.wheelPxPerZoomLevel*4),o=4*Math.log(2/(1+Math.exp(-Math.abs(n))))/Math.LN2,s=i?Math.ceil(o/i)*i:o,l=t._limitZoom(e+(this._delta>0?s:-s))-e;this._delta=0,this._startTime=null,l&&(t.options.scrollWheelZoom==="center"?t.setZoom(e+l):t.setZoomAround(this._lastMousePos,e+l))}});I.addInitHook("addHandler","scrollWheelZoom",yn);var or=600;I.mergeOptions({tapHold:P.touchNative&&P.safari&&P.mobile,tapTolerance:15});var Ln=dt.extend({addHooks:function(){k(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){D(this._map._container,"touchstart",this._onDown,this)},_onDown:function(t){if(clearTimeout(this._holdTimeout),t.touches.length===1){var e=t.touches[0];this._startPos=this._newPos=new T(e.clientX,e.clientY),this._holdTimeout=setTimeout(a(function(){this._cancel(),this._isTapValid()&&(k(document,"touchend",J),k(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",e))},this),or),k(document,"touchend touchcancel contextmenu",this._cancel,this),k(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function t(){D(document,"touchend",J),D(document,"touchend touchcancel",t)},_cancel:function(){clearTimeout(this._holdTimeout),D(document,"touchend touchcancel contextmenu",this._cancel,this),D(document,"touchmove",this._onMove,this)},_onMove:function(t){var e=t.touches[0];this._newPos=new T(e.clientX,e.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(t,e){var i=new MouseEvent(t,{bubbles:!0,cancelable:!0,view:window,screenX:e.screenX,screenY:e.screenY,clientX:e.clientX,clientY:e.clientY});i._simulated=!0,e.target.dispatchEvent(i)}});I.addInitHook("addHandler","tapHold",Ln),I.mergeOptions({touchZoom:P.touch,bounceAtZoomLimits:!0});var xn=dt.extend({addHooks:function(){z(this._map._container,"leaflet-touch-zoom"),k(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){U(this._map._container,"leaflet-touch-zoom"),D(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(t){var e=this._map;if(!(!t.touches||t.touches.length!==2||e._animatingZoom||this._zooming)){var i=e.mouseEventToContainerPoint(t.touches[0]),n=e.mouseEventToContainerPoint(t.touches[1]);this._centerPoint=e.getSize()._divideBy(2),this._startLatLng=e.containerPointToLatLng(this._centerPoint),e.options.touchZoom!=="center"&&(this._pinchStartLatLng=e.containerPointToLatLng(i.add(n)._divideBy(2))),this._startDist=i.distanceTo(n),this._startZoom=e.getZoom(),this._moved=!1,this._zooming=!0,e._stop(),k(document,"touchmove",this._onTouchMove,this),k(document,"touchend touchcancel",this._onTouchEnd,this),J(t)}},_onTouchMove:function(t){if(!(!t.touches||t.touches.length!==2||!this._zooming)){var e=this._map,i=e.mouseEventToContainerPoint(t.touches[0]),n=e.mouseEventToContainerPoint(t.touches[1]),o=i.distanceTo(n)/this._startDist;if(this._zoom=e.getScaleZoom(o,this._startZoom),!e.options.bounceAtZoomLimits&&(this._zoom<e.getMinZoom()&&o<1||this._zoom>e.getMaxZoom()&&o>1)&&(this._zoom=e._limitZoom(this._zoom)),e.options.touchZoom==="center"){if(this._center=this._startLatLng,o===1)return}else{var s=i._add(n)._divideBy(2)._subtract(this._centerPoint);if(o===1&&s.x===0&&s.y===0)return;this._center=e.unproject(e.project(this._pinchStartLatLng,this._zoom).subtract(s),this._zoom)}this._moved||(e._moveStart(!0,!1),this._moved=!0),rt(this._animRequest);var l=a(e._move,e,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=Q(l,this,!0),J(t)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,rt(this._animRequest),D(document,"touchmove",this._onTouchMove,this),D(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))}});I.addInitHook("addHandler","touchZoom",xn),I.BoxZoom=pn,I.DoubleClickZoom=mn,I.Drag=gn,I.Keyboard=vn,I.ScrollWheelZoom=yn,I.TapHold=Ln,I.TouchZoom=xn,y.Bounds=G,y.Browser=P,y.CRS=vt,y.Canvas=fn,y.Circle=ii,y.CircleMarker=_e,y.Class=gt,y.Control=lt,y.DivIcon=hn,y.DivOverlay=_t,y.DomEvent=wo,y.DomUtil=Lo,y.Draggable=Pt,y.Evented=Wt,y.FeatureGroup=yt,y.GeoJSON=xt,y.GridLayer=ee,y.Handler=dt,y.Icon=Bt,y.ImageOverlay=ye,y.LatLng=N,y.LatLngBounds=et,y.Layer=ut,y.LayerGroup=It,y.LineUtil=Bo,y.Map=I,y.Marker=de,y.Mixin=So,y.Path=Ct,y.Point=T,y.PolyUtil=zo,y.Polygon=At,y.Polyline=Lt,y.Popup=Le,y.PosAnimation=Wi,y.Projection=Ao,y.Rectangle=_n,y.Renderer=wt,y.SVG=ne,y.SVGOverlay=an,y.TileLayer=Rt,y.Tooltip=xe,y.Transformation=ke,y.Util=Hn,y.VideoOverlay=sn,y.bind=a,y.bounds=tt,y.canvas=cn,y.circle=Uo,y.circleMarker=Wo,y.control=$t,y.divIcon=Qo,y.extend=O,y.featureGroup=Fo,y.geoJSON=rn,y.geoJson=jo,y.gridLayer=tr,y.icon=Ho,y.imageOverlay=Ko,y.latLng=Z,y.latLngBounds=V,y.layerGroup=Do,y.map=bo,y.marker=Go,y.point=M,y.polygon=qo,y.polyline=Vo,y.popup=Jo,y.rectangle=nr,y.setOptions=x,y.stamp=u,y.svg=dn,y.svgOverlay=Xo,y.tileLayer=ln,y.tooltip=$o,y.transformation=Ut,y.version=Y,y.videoOverlay=Yo;var rr=window.L;y.noConflict=function(){return window.L=rr,this},window.L=y})}(Ft,Ft.exports)),Ft.exports}var pt=kn();const Sn=Cn({__proto__:null,default:Mn(pt)},[pt]),zn=`/* required styles */\r
|
|
2
|
-
|
|
3
|
-
.leaflet-pane
|
|
4
|
-
.leaflet-tile
|
|
5
|
-
.leaflet-marker-icon
|
|
6
|
-
.leaflet-marker-shadow
|
|
7
|
-
.leaflet-tile-container
|
|
8
|
-
.leaflet-pane > svg
|
|
9
|
-
.leaflet-pane > canvas
|
|
10
|
-
.leaflet-zoom-box
|
|
11
|
-
.leaflet-image-layer
|
|
12
|
-
.leaflet-layer {
|
|
13
|
-
position: absolute
|
|
14
|
-
left: 0
|
|
15
|
-
top: 0
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
.leaflet-
|
|
22
|
-
.leaflet-marker-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
.leaflet-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
.leaflet-
|
|
43
|
-
.leaflet-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
.leaflet-container .leaflet-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
}
|
|
82
|
-
.leaflet-
|
|
83
|
-
|
|
84
|
-
}
|
|
85
|
-
.leaflet-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
.leaflet-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
.leaflet-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
.leaflet-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
.leaflet-
|
|
113
|
-
.leaflet-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
.leaflet-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
}
|
|
160
|
-
.leaflet-
|
|
161
|
-
|
|
162
|
-
}
|
|
163
|
-
.leaflet-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
}
|
|
185
|
-
.leaflet-
|
|
186
|
-
|
|
187
|
-
}
|
|
188
|
-
.leaflet-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
.leaflet-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
.leaflet-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
}
|
|
224
|
-
.leaflet-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
.leaflet-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
.leaflet-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
.
|
|
243
|
-
.
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
}
|
|
264
|
-
.leaflet-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
.leaflet-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
}
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
height:
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
.leaflet-
|
|
306
|
-
.leaflet-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
.leaflet-
|
|
319
|
-
|
|
320
|
-
background
|
|
321
|
-
|
|
322
|
-
}
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
width:
|
|
326
|
-
height:
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
.leaflet-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
.leaflet-control-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
}
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
.leaflet-
|
|
373
|
-
|
|
374
|
-
}
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
.leaflet-control-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
}
|
|
384
|
-
.leaflet-control-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
.leaflet-control-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
margin:
|
|
403
|
-
}
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
.leaflet-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
.leaflet-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
.leaflet-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
.leaflet-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
color: #
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
.leaflet-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
}
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
-ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";\r
|
|
556
|
-
filter: progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678);\r
|
|
557
|
-
}\r
|
|
558
|
-
\r
|
|
559
|
-
.leaflet-oldie .leaflet-control-zoom,\r
|
|
560
|
-
.leaflet-oldie .leaflet-control-layers,\r
|
|
561
|
-
.leaflet-oldie .leaflet-popup-content-wrapper,\r
|
|
562
|
-
.leaflet-oldie .leaflet-popup-tip {\r
|
|
563
|
-
border: 1px solid #999;\r
|
|
564
|
-
}\r
|
|
565
|
-
\r
|
|
566
|
-
\r
|
|
567
|
-
/* div icon */\r
|
|
568
|
-
\r
|
|
569
|
-
.leaflet-div-icon {\r
|
|
570
|
-
background: #fff;\r
|
|
571
|
-
border: 1px solid #666;\r
|
|
572
|
-
}\r
|
|
573
|
-
\r
|
|
574
|
-
\r
|
|
575
|
-
/* Tooltip */\r
|
|
576
|
-
/* Base styles for the element that has a tooltip */\r
|
|
577
|
-
.leaflet-tooltip {\r
|
|
578
|
-
position: absolute;\r
|
|
579
|
-
padding: 6px;\r
|
|
580
|
-
background-color: #fff;\r
|
|
581
|
-
border: 1px solid #fff;\r
|
|
582
|
-
border-radius: 3px;\r
|
|
583
|
-
color: #222;\r
|
|
584
|
-
white-space: nowrap;\r
|
|
585
|
-
-webkit-user-select: none;\r
|
|
586
|
-
-moz-user-select: none;\r
|
|
587
|
-
-ms-user-select: none;\r
|
|
588
|
-
user-select: none;\r
|
|
589
|
-
pointer-events: none;\r
|
|
590
|
-
box-shadow: 0 1px 3px rgba(0,0,0,0.4);\r
|
|
591
|
-
}\r
|
|
592
|
-
.leaflet-tooltip.leaflet-interactive {\r
|
|
593
|
-
cursor: pointer;\r
|
|
594
|
-
pointer-events: auto;\r
|
|
595
|
-
}\r
|
|
596
|
-
.leaflet-tooltip-top:before,\r
|
|
597
|
-
.leaflet-tooltip-bottom:before,\r
|
|
598
|
-
.leaflet-tooltip-left:before,\r
|
|
599
|
-
.leaflet-tooltip-right:before {\r
|
|
600
|
-
position: absolute;\r
|
|
601
|
-
pointer-events: none;\r
|
|
602
|
-
border: 6px solid transparent;\r
|
|
603
|
-
background: transparent;\r
|
|
604
|
-
content: "";\r
|
|
605
|
-
}\r
|
|
606
|
-
\r
|
|
607
|
-
/* Directions */\r
|
|
608
|
-
\r
|
|
609
|
-
.leaflet-tooltip-bottom {\r
|
|
610
|
-
margin-top: 6px;\r
|
|
611
|
-
}\r
|
|
612
|
-
.leaflet-tooltip-top {\r
|
|
613
|
-
margin-top: -6px;\r
|
|
614
|
-
}\r
|
|
615
|
-
.leaflet-tooltip-bottom:before,\r
|
|
616
|
-
.leaflet-tooltip-top:before {\r
|
|
617
|
-
left: 50%;\r
|
|
618
|
-
margin-left: -6px;\r
|
|
619
|
-
}\r
|
|
620
|
-
.leaflet-tooltip-top:before {\r
|
|
621
|
-
bottom: 0;\r
|
|
622
|
-
margin-bottom: -12px;\r
|
|
623
|
-
border-top-color: #fff;\r
|
|
624
|
-
}\r
|
|
625
|
-
.leaflet-tooltip-bottom:before {\r
|
|
626
|
-
top: 0;\r
|
|
627
|
-
margin-top: -12px;\r
|
|
628
|
-
margin-left: -6px;\r
|
|
629
|
-
border-bottom-color: #fff;\r
|
|
630
|
-
}\r
|
|
631
|
-
.leaflet-tooltip-left {\r
|
|
632
|
-
margin-left: -6px;\r
|
|
633
|
-
}\r
|
|
634
|
-
.leaflet-tooltip-right {\r
|
|
635
|
-
margin-left: 6px;\r
|
|
636
|
-
}\r
|
|
637
|
-
.leaflet-tooltip-left:before,\r
|
|
638
|
-
.leaflet-tooltip-right:before {\r
|
|
639
|
-
top: 50%;\r
|
|
640
|
-
margin-top: -6px;\r
|
|
641
|
-
}\r
|
|
642
|
-
.leaflet-tooltip-left:before {\r
|
|
643
|
-
right: 0;\r
|
|
644
|
-
margin-right: -12px;\r
|
|
645
|
-
border-left-color: #fff;\r
|
|
646
|
-
}\r
|
|
647
|
-
.leaflet-tooltip-right:before {\r
|
|
648
|
-
left: 0;\r
|
|
649
|
-
margin-left: -12px;\r
|
|
650
|
-
border-right-color: #fff;\r
|
|
651
|
-
}\r
|
|
652
|
-
\r
|
|
653
|
-
/* Printing */\r
|
|
654
|
-
\r
|
|
655
|
-
@media print {\r
|
|
656
|
-
/* Prevent printers from removing background-images of controls. */\r
|
|
657
|
-
.leaflet-control {\r
|
|
658
|
-
-webkit-print-color-adjust: exact;\r
|
|
659
|
-
print-color-adjust: exact;\r
|
|
660
|
-
}\r
|
|
661
|
-
}\r
|
|
662
|
-
`,On=`.leaflet-cluster-anim .leaflet-marker-icon, .leaflet-cluster-anim .leaflet-marker-shadow {
|
|
663
|
-
-webkit-transition: -webkit-transform 0.3s ease-out, opacity 0.3s ease-in;
|
|
664
|
-
-moz-transition: -moz-transform 0.3s ease-out, opacity 0.3s ease-in;
|
|
665
|
-
-o-transition: -o-transform 0.3s ease-out, opacity 0.3s ease-in;
|
|
666
|
-
transition: transform 0.3s ease-out, opacity 0.3s ease-in;
|
|
1
|
+
var mtdsatlas=function(D){"use strict";var Fn=Object.defineProperty;var Hn=(D,R,x)=>R in D?Fn(D,R,{enumerable:!0,configurable:!0,writable:!0,value:x}):D[R]=x;var Hi=(D,R,x)=>Hn(D,typeof R!="symbol"?R+"":R,x);var J;let R=0;function x(n){return"_leaflet_id"in n||(n._leaflet_id=++R),n._leaflet_id}function Qe(n,t,e){let i,s;function o(){i=!1,s&&(r.apply(e,s),s=!1)}function r(...a){i?s=a:(n.apply(e,a),setTimeout(o,t),i=!0)}return r}function pt(n,t,e){const i=t[1],s=t[0],o=i-s;return n===i&&e?n:((n-s)%o+o)%o+s}function Z(){return!1}function N(n,t){if(t===!1)return n;const e=10**(t===void 0?6:t);return Math.round(n*e)/e}function F(n){return n.trim().split(/\s+/)}function L(n,t){Object.hasOwn(n,"options")||(n.options=n.options?Object.create(n.options):{});for(const e in t)Object.hasOwn(t,e)&&(n.options[e]=t[e]);return n.options}const ji=/\{ *([\w_ -]+) *\}/g;function ti(n,t){return n.replace(ji,(e,i)=>{let s=t[i];if(s===void 0)throw new Error(`No value provided for variable ${e}`);return typeof s=="function"&&(s=s(t)),s})}const zt="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";var Gi={__proto__:null,emptyImageUrl:zt,falseFn:Z,formatNum:N,get lastId(){return R},setOptions:L,splitWords:F,stamp:x,template:ti,throttle:Qe,wrapNum:pt};class ft{static extend({statics:t,includes:e,...i}){const s=class extends this{};Object.setPrototypeOf(s,this);const o=this.prototype,r=s.prototype;if(t&&Object.assign(s,t),Array.isArray(e))for(const a of e)Object.assign(r,a);else e&&Object.assign(r,e);return Object.assign(r,i),r.options&&(r.options=o.options?Object.create(o.options):{},Object.assign(r.options,i.options)),r._initHooks=[],s}static include(t){const e=this.prototype.options;return Object.assign(this.prototype,t),t.options&&(this.prototype.options=e,this.mergeOptions(t.options)),this}static setDefaultOptions(t){return L(this.prototype,t),this}static mergeOptions(t){return this.prototype.options??={},Object.assign(this.prototype.options,t),this}static addInitHook(t,...e){const i=typeof t=="function"?t:function(){this[t].apply(this,e)};return this.prototype._initHooks??=[],this.prototype._initHooks.push(i),this}constructor(...t){this._initHooksCalled=!1,L(this),this.initialize&&this.initialize(...t),this.callInitHooks()}initialize(){}callInitHooks(){if(this._initHooksCalled)return;const t=[];let e=this;for(;(e=Object.getPrototypeOf(e))!==null;)t.push(e);t.reverse();for(const i of t)for(const s of i._initHooks??[])s.call(this);this._initHooksCalled=!0}}class mt extends ft{on(t,e,i){if(typeof t=="object")for(const[s,o]of Object.entries(t))this._on(s,o,e);else for(const s of F(t))this._on(s,e,i);return this}off(t,e,i){if(!arguments.length)delete this._events;else if(typeof t=="object")for(const[s,o]of Object.entries(t))this._off(s,o,e);else{const s=arguments.length===1;for(const o of F(t))s?this._off(o):this._off(o,e,i)}return this}_on(t,e,i,s){if(typeof e!="function"){console.warn(`wrong listener type: ${typeof e}`);return}if(this._listens(t,e,i)!==!1)return;i===this&&(i=void 0);const o={fn:e,ctx:i};s&&(o.once=!0),this._events??={},this._events[t]??=[],this._events[t].push(o)}_off(t,e,i){if(!this._events)return;let s=this._events[t];if(!s)return;if(arguments.length===1){if(this._firingCount)for(const r of s)r.fn=Z;delete this._events[t];return}if(typeof e!="function"){console.warn(`wrong listener type: ${typeof e}`);return}const o=this._listens(t,e,i);if(o!==!1){const r=s[o];this._firingCount&&(r.fn=Z,this._events[t]=s=s.slice()),s.splice(o,1)}}fire(t,e,i){if(!this.listens(t,i))return this;const s={...e,type:t,target:this,sourceTarget:e?.sourceTarget||this};if(this._events){const o=this._events[t];if(o){this._firingCount=this._firingCount+1||1;for(const r of o){const a=r.fn;r.once&&this.off(t,a,r.ctx),a.call(r.ctx||this,s)}this._firingCount--}}return i&&this._propagateEvent(s),this}listens(t,e,i,s){typeof t!="string"&&console.warn('"string" type argument expected');let o=e;if(typeof e!="function"&&(s=!!e,o=void 0,i=void 0),this._events?.[t]?.length&&this._listens(t,o,i)!==!1)return!0;if(s){for(const r of Object.values(this._eventParents??{}))if(r.listens(t,e,i,s))return!0}return!1}_listens(t,e,i){if(!this._events)return!1;const s=this._events[t]??[];if(!e)return!!s.length;i===this&&(i=void 0);const o=s.findIndex(r=>r.fn===e&&r.ctx===i);return o===-1?!1:o}once(t,e,i){if(typeof t=="object")for(const[s,o]of Object.entries(t))this._on(s,o,e,!0);else for(const s of F(t))this._on(s,e,i,!0);return this}addEventParent(t){return this._eventParents??={},this._eventParents[x(t)]=t,this}removeEventParent(t){return this._eventParents&&delete this._eventParents[x(t)],this}_propagateEvent(t){for(const e of Object.values(this._eventParents??{}))e.fire(t.type,{propagatedFrom:t.target,...t},!0)}}class u{constructor(t,e,i){if(!u.validate(t,e))throw new Error(`Invalid Point object: (${t}, ${e})`);let o,r;if(t instanceof u)return t;Array.isArray(t)?(o=t[0],r=t[1]):typeof t=="object"&&"x"in t&&"y"in t?(o=t.x,r=t.y):(o=t,r=e),this.x=i?Math.round(o):o,this.y=i?Math.round(r):r}static validate(t,e){return t instanceof u||Array.isArray(t)||t&&typeof t=="object"&&"x"in t&&"y"in t?!0:!!((t||t===0)&&(e||e===0))}clone(){const t=new u(0,0);return t.x=this.x,t.y=this.y,t}add(t){return this.clone()._add(new u(t))}_add(t){return this.x+=t.x,this.y+=t.y,this}subtract(t){return this.clone()._subtract(new u(t))}_subtract(t){return this.x-=t.x,this.y-=t.y,this}divideBy(t){return this.clone()._divideBy(t)}_divideBy(t){return this.x/=t,this.y/=t,this}multiplyBy(t){return this.clone()._multiplyBy(t)}_multiplyBy(t){return this.x*=t,this.y*=t,this}scaleBy(t){return new u(this.x*t.x,this.y*t.y)}unscaleBy(t){return new u(this.x/t.x,this.y/t.y)}round(){return this.clone()._round()}_round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}floor(){return this.clone()._floor()}_floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this}ceil(){return this.clone()._ceil()}_ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this}trunc(){return this.clone()._trunc()}_trunc(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this}distanceTo(t){t=new u(t);const e=t.x-this.x,i=t.y-this.y;return Math.sqrt(e*e+i*i)}equals(t){return t=new u(t),t.x===this.x&&t.y===this.y}contains(t){return t=new u(t),Math.abs(t.x)<=Math.abs(this.x)&&Math.abs(t.y)<=Math.abs(this.y)}toString(){return`Point(${N(this.x)}, ${N(this.y)})`}}class v{constructor(t,e){if(!t)return;if(t instanceof v)return t;const i=e?[t,e]:t;for(const s of i)this.extend(s)}extend(t){let e,i;if(!t)return this;if(t instanceof u||typeof t[0]=="number"||"x"in t)e=i=new u(t);else if(t=new v(t),e=t.min,i=t.max,!e||!i)return this;return!this.min&&!this.max?(this.min=e.clone(),this.max=i.clone()):(this.min.x=Math.min(e.x,this.min.x),this.max.x=Math.max(i.x,this.max.x),this.min.y=Math.min(e.y,this.min.y),this.max.y=Math.max(i.y,this.max.y)),this}getCenter(t){return new u((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,t)}getBottomLeft(){return new u(this.min.x,this.max.y)}getTopRight(){return new u(this.max.x,this.min.y)}getTopLeft(){return this.min}getBottomRight(){return this.max}getSize(){return this.max.subtract(this.min)}contains(t){let e,i;return typeof t[0]=="number"||t instanceof u?t=new u(t):t=new v(t),t instanceof v?(e=t.min,i=t.max):e=i=t,e.x>=this.min.x&&i.x<=this.max.x&&e.y>=this.min.y&&i.y<=this.max.y}intersects(t){t=new v(t);const e=this.min,i=this.max,s=t.min,o=t.max,r=o.x>=e.x&&s.x<=i.x,a=o.y>=e.y&&s.y<=i.y;return r&&a}overlaps(t){t=new v(t);const e=this.min,i=this.max,s=t.min,o=t.max,r=o.x>e.x&&s.x<i.x,a=o.y>e.y&&s.y<i.y;return r&&a}isValid(){return!!(this.min&&this.max)}pad(t){const e=this.min,i=this.max,s=Math.abs(e.x-i.x)*t,o=Math.abs(e.y-i.y)*t;return new v(new u(e.x-s,e.y-o),new u(i.x+s,i.y+o))}equals(t){return t?(t=new v(t),this.min.equals(t.getTopLeft())&&this.max.equals(t.getBottomRight())):!1}}class w{constructor(t,e){if(!t)return;if(t instanceof w)return t;const i=e?[t,e]:t;for(const s of i)this.extend(s)}extend(t){const e=this._southWest,i=this._northEast;let s,o;if(t instanceof p)s=t,o=t;else if(t instanceof w){if(s=t._southWest,o=t._northEast,!s||!o)return this}else return t?p.validate(t)?this.extend(new p(t)):this.extend(new w(t)):this;return!e&&!i?(this._southWest=new p(s.lat,s.lng),this._northEast=new p(o.lat,o.lng)):(e.lat=Math.min(s.lat,e.lat),e.lng=Math.min(s.lng,e.lng),i.lat=Math.max(o.lat,i.lat),i.lng=Math.max(o.lng,i.lng)),this}pad(t){const e=this._southWest,i=this._northEast,s=Math.abs(e.lat-i.lat)*t,o=Math.abs(e.lng-i.lng)*t;return new w(new p(e.lat-s,e.lng-o),new p(i.lat+s,i.lng+o))}getCenter(){return new p((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)}getSouthWest(){return this._southWest}getNorthEast(){return this._northEast}getNorthWest(){return new p(this.getNorth(),this.getWest())}getSouthEast(){return new p(this.getSouth(),this.getEast())}getWest(){return this._southWest.lng}getSouth(){return this._southWest.lat}getEast(){return this._northEast.lng}getNorth(){return this._northEast.lat}contains(t){p.validate(t)?t=new p(t):t=new w(t);const e=this._southWest,i=this._northEast;let s,o;return t instanceof w?(s=t.getSouthWest(),o=t.getNorthEast()):s=o=t,s.lat>=e.lat&&o.lat<=i.lat&&s.lng>=e.lng&&o.lng<=i.lng}intersects(t){t=new w(t);const e=this._southWest,i=this._northEast,s=t.getSouthWest(),o=t.getNorthEast(),r=o.lat>=e.lat&&s.lat<=i.lat,a=o.lng>=e.lng&&s.lng<=i.lng;return r&&a}overlaps(t){t=new w(t);const e=this._southWest,i=this._northEast,s=t.getSouthWest(),o=t.getNorthEast(),r=o.lat>e.lat&&s.lat<i.lat,a=o.lng>e.lng&&s.lng<i.lng;return r&&a}toBBoxString(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")}equals(t,e){return t?(t=new w(t),this._southWest.equals(t.getSouthWest(),e)&&this._northEast.equals(t.getNorthEast(),e)):!1}isValid(){return!!(this._southWest&&this._northEast)}}class p{constructor(t,e,i){if(!p.validate(t,e,i))throw new Error(`Invalid LatLng object: (${t}, ${e})`);let o,r,a;if(t instanceof p)return t;Array.isArray(t)&&typeof t[0]!="object"?t.length===3?(o=t[0],r=t[1],a=t[2]):t.length===2&&(o=t[0],r=t[1]):typeof t=="object"&&"lat"in t?(o=t.lat,r="lng"in t?t.lng:t.lon,a=t.alt):(o=t,r=e,a=i),this.lat=+o,this.lng=+r,a!==void 0&&(this.alt=+a)}static validate(t,e,i){return t instanceof p||typeof t=="object"&&"lat"in t?!0:t&&Array.isArray(t)&&typeof t[0]!="object"?t.length===3||t.length===2:!!((t||t===0)&&(e||e===0))}equals(t,e){return t?(t=new p(t),Math.max(Math.abs(this.lat-t.lat),Math.abs(this.lng-t.lng))<=(e??1e-9)):!1}toString(t){return`LatLng(${N(this.lat,t)}, ${N(this.lng,t)})`}distanceTo(t){return V.distance(this,new p(t))}wrap(){return V.wrapLatLng(this)}toBounds(t){const e=180*t/40075017,i=e/Math.cos(Math.PI/180*this.lat);return new w([this.lat-e,this.lng-i],[this.lat+e,this.lng+i])}clone(){const t=new p(0,0);return t.lat=this.lat,t.lng=this.lng,t.alt=this.alt,t}}class W{static projection=void 0;static transformation=void 0;static latLngToPoint(t,e){const i=this.projection.project(t),s=this.scale(e);return this.transformation._transform(i,s)}static pointToLatLng(t,e){const i=this.scale(e),s=this.transformation.untransform(t,i);return this.projection.unproject(s)}static project(t){return this.projection.project(t)}static unproject(t){return this.projection.unproject(t)}static scale(t){return 256*2**t}static zoom(t){return Math.log(t/256)/Math.LN2}static getProjectedBounds(t){if(this.infinite)return null;const e=this.projection.bounds,i=this.scale(t),s=this.transformation.transform(e.min,i),o=this.transformation.transform(e.max,i);return new v(s,o)}static infinite=!1;static wrapLatLng(t){t=new p(t);const e=this.wrapLng?pt(t.lng,this.wrapLng,!0):t.lng,i=this.wrapLat?pt(t.lat,this.wrapLat,!0):t.lat,s=t.alt;return new p(i,e,s)}static wrapLatLngBounds(t){t=new w(t);const e=t.getCenter(),i=this.wrapLatLng(e),s=e.lat-i.lat,o=e.lng-i.lng;if(s===0&&o===0)return t;const r=t.getSouthWest(),a=t.getNorthEast(),h=new p(r.lat-s,r.lng-o),l=new p(a.lat-s,a.lng-o);return new w(h,l)}}class V extends W{static wrapLng=[-180,180];static R=6371e3;static distance(t,e){const i=Math.PI/180,s=t.lat*i,o=e.lat*i,r=Math.sin((e.lat-t.lat)*i/2),a=Math.sin((e.lng-t.lng)*i/2),h=r*r+Math.cos(s)*Math.cos(o)*a*a,l=2*Math.atan2(Math.sqrt(h),Math.sqrt(1-h));return this.R*l}}const ei=6378137,Xt={R:ei,MAX_LATITUDE:85.0511287798,project(n){n=new p(n);const t=Math.PI/180,e=this.MAX_LATITUDE,i=Math.max(Math.min(e,n.lat),-e),s=Math.sin(i*t);return new u(this.R*n.lng*t,this.R*Math.log((1+s)/(1-s))/2)},unproject(n){n=new u(n);const t=180/Math.PI;return new p((2*Math.atan(Math.exp(n.y/this.R))-Math.PI/2)*t,n.x*t/this.R)},bounds:(()=>{const n=ei*Math.PI;return new v([-n,-n],[n,n])})()};class gt{constructor(t,e,i,s){if(Array.isArray(t)){this._a=t[0],this._b=t[1],this._c=t[2],this._d=t[3];return}this._a=t,this._b=e,this._c=i,this._d=s}transform(t,e){return this._transform(t.clone(),e)}_transform(t,e){return e||=1,t.x=e*(this._a*t.x+this._b),t.y=e*(this._c*t.y+this._d),t}untransform(t,e){return e||=1,new u((t.x/e-this._b)/this._a,(t.y/e-this._d)/this._c)}}class Jt extends V{static code="EPSG:3857";static projection=Xt;static transformation=(()=>{const t=.5/(Math.PI*Xt.R);return new gt(t,.5,-t,.5)})()}class Wi extends Jt{static code="EPSG:900913"}const ii=Qt("chrome"),$i=!ii&&Qt("safari"),Ui=typeof orientation<"u"||Qt("mobile"),ni=typeof window>"u"?!1:!!window.PointerEvent,si=typeof window>"u"?!1:"ontouchstart"in window||!!window.TouchEvent,qi=si||ni,Vi=typeof window>"u"||typeof window.devicePixelRatio>"u"?!1:window.devicePixelRatio>1,Ki=typeof navigator>"u"||typeof navigator.platform>"u"?!1:navigator.platform.startsWith("Mac"),Yi=typeof navigator>"u"||typeof navigator.platform>"u"?!1:navigator.platform.startsWith("Linux");function Qt(n){return typeof navigator>"u"||typeof navigator.userAgent>"u"?!1:navigator.userAgent.toLowerCase().includes(n)}var z={chrome:ii,safari:$i,mobile:Ui,pointer:ni,touch:qi,touchNative:si,retina:Vi,mac:Ki,linux:Yi};function Xi(n){let t={bubbles:n.bubbles,cancelable:n.cancelable,composed:n.composed,detail:2,view:n.view,screenX:n.screenX,screenY:n.screenY,clientX:n.clientX,clientY:n.clientY,ctrlKey:n.ctrlKey,shiftKey:n.shiftKey,altKey:n.altKey,metaKey:n.metaKey,button:n.button,buttons:n.buttons,relatedTarget:n.relatedTarget,region:n.region},e;return n instanceof PointerEvent?(t={...t,pointerId:n.pointerId,width:n.width,height:n.height,pressure:n.pressure,tangentialPressure:n.tangentialPressure,tiltX:n.tiltX,tiltY:n.tiltY,twist:n.twist,pointerType:n.pointerType,isPrimary:n.isPrimary},e=new PointerEvent("dblclick",t)):e=new MouseEvent("dblclick",t),e}const Ji=200;function Qi(n,t){n.addEventListener("dblclick",t);let e=0,i;function s(o){if(o.detail!==1){i=o.detail;return}if(o.pointerType==="mouse"||o.sourceCapabilities&&!o.sourceCapabilities.firesTouchEvents)return;const r=ui(o);if(r.some(h=>h instanceof HTMLLabelElement&&h.attributes.for)&&!r.some(h=>h instanceof HTMLInputElement||h instanceof HTMLSelectElement))return;const a=Date.now();a-e<=Ji?(i++,i===2&&o.target.dispatchEvent(Xi(o))):i=1,e=a}return n.addEventListener("click",s),{dblclick:t,simDblclick:s}}function tn(n,t){n.removeEventListener("dblclick",t.dblclick),n.removeEventListener("click",t.simDblclick)}function oi(n){return typeof n=="string"?document.getElementById(n):n}function b(n,t,e){const i=document.createElement(n);return i.className=t??"",e?.appendChild(i),i}function yt(n){const t=n.parentNode;t&&t.lastChild!==n&&t.appendChild(n)}function vt(n){const t=n.parentNode;t&&t.firstChild!==n&&t.insertBefore(n,t.firstChild)}function tt(n,t,e){const i=t??new u(0,0);n.style.transform=`translate3d(${i.x}px,${i.y}px,0)${e?` scale(${e})`:""}`}const ri=new WeakMap;function M(n,t){ri.set(n,t),tt(n,t)}function et(n){return ri.get(n)??new u(0,0)}const St=typeof document>"u"?{}:document.documentElement.style,te=["userSelect","WebkitUserSelect"].find(n=>n in St);let Ot;function ee(){const n=St[te];n!=="none"&&(Ot=n,St[te]="none")}function ie(){typeof Ot>"u"||(St[te]=Ot,Ot=void 0)}function ne(){g(window,"dragstart",S)}function se(){P(window,"dragstart",S)}let Zt,oe;function re(n){for(;n.tabIndex===-1;)n=n.parentNode;n.style&&(Et(),Zt=n,oe=n.style.outlineStyle,n.style.outlineStyle="none",g(window,"keydown",Et))}function Et(){Zt&&(Zt.style.outlineStyle=oe,Zt=void 0,oe=void 0,P(window,"keydown",Et))}function ai(n){do n=n.parentNode;while((!n.offsetWidth||!n.offsetHeight)&&n!==document.body);return n}function ae(n){const t=n.getBoundingClientRect();return{x:t.width/n.offsetWidth||1,y:t.height/n.offsetHeight||1,boundingClientRect:t}}var en={__proto__:null,create:b,disableImageDrag:ne,disableTextSelection:ee,enableImageDrag:se,enableTextSelection:ie,get:oi,getPosition:et,getScale:ae,getSizedParentNode:ai,preventOutline:re,restoreOutline:Et,setPosition:M,setTransform:tt,toBack:vt,toFront:yt};let it=new Map,he=!1;function hi(){he||(he=!0,document.addEventListener("pointerdown",li,{capture:!0}),document.addEventListener("pointermove",di,{capture:!0}),document.addEventListener("pointerup",At,{capture:!0}),document.addEventListener("pointercancel",At,{capture:!0}),it=new Map)}function nn(){document.removeEventListener("pointerdown",li,{capture:!0}),document.removeEventListener("pointermove",di,{capture:!0}),document.removeEventListener("pointerup",At,{capture:!0}),document.removeEventListener("pointercancel",At,{capture:!0}),he=!1}function li(n){it.set(n.pointerId,n)}function di(n){it.has(n.pointerId)&&it.set(n.pointerId,n)}function At(n){it.delete(n.pointerId)}function dt(){return[...it.values()]}function sn(){it.clear()}var on={__proto__:null,cleanupPointers:sn,disablePointerDetection:nn,enablePointerDetection:hi,getPointers:dt};function g(n,t,e,i){if(t&&typeof t=="object")for(const[s,o]of Object.entries(t))de(n,s,o,e);else for(const s of F(t))de(n,s,e,i);return this}const $="_leaflet_events";function P(n,t,e,i){if(arguments.length===1)ci(n),delete n[$];else if(t&&typeof t=="object")for(const[s,o]of Object.entries(t))ce(n,s,o,e);else if(t=F(t),arguments.length===2)ci(n,s=>t.includes(s));else for(const s of t)ce(n,s,e,i);return this}function ci(n,t){for(const e of Object.keys(n[$]??{})){const i=e.split(/\d/)[0];(!t||t(i))&&ce(n,i,null,null,e)}}const le={pointerenter:"pointerover",pointerleave:"pointerout",wheel:typeof window>"u"?!1:!("onwheel"in window)&&"mousewheel"};function de(n,t,e,i){const s=t+x(e)+(i?`_${x(i)}`:"");if(n[$]&&n[$][s])return this;let o=function(a){return e.call(i||n,a||window.event)};const r=o;z.touch&&t==="dblclick"?o=Qi(n,o):"addEventListener"in n?t==="wheel"||t==="mousewheel"?n.addEventListener(le[t]||t,o,{passive:!1}):t==="pointerenter"||t==="pointerleave"?(o=function(a){a??=window.event,_e(n,a)&&r(a)},n.addEventListener(le[t],o,!1)):n.addEventListener(t,r,!1):n.attachEvent(`on${t}`,o),n[$]??={},n[$][s]=o}function ce(n,t,e,i,s){s??=t+x(e)+(i?`_${x(i)}`:"");const o=n[$]&&n[$][s];if(!o)return this;z.touch&&t==="dblclick"?tn(n,o):"removeEventListener"in n?n.removeEventListener(le[t]||t,o,!1):n.detachEvent(`on${t}`,o),n[$][s]=null}function K(n){return n.stopPropagation?n.stopPropagation():n.originalEvent?n.originalEvent._stopped=!0:n.cancelBubble=!0,this}function ue(n){return de(n,"wheel",K),this}function xt(n){return g(n,"pointerdown dblclick contextmenu",K),n._leaflet_disable_click=!0,this}function S(n){return n.preventDefault?n.preventDefault():n.returnValue=!1,this}function nt(n){return S(n),K(n),this}function ui(n){return n.composedPath()}function _i(n,t){if(!t)return new u(n.clientX,n.clientY);const e=ae(t),i=e.boundingClientRect;return new u((n.clientX-i.left)/e.x-t.clientLeft,(n.clientY-i.top)/e.y-t.clientTop)}function pi(){const n=window.devicePixelRatio;return z.linux&&z.chrome?n:z.mac?n*3:n>0?2*n:1}function fi(n){return n.deltaY&&n.deltaMode===0?-n.deltaY/pi():n.deltaY&&n.deltaMode===1?-n.deltaY*20:n.deltaY&&n.deltaMode===2?-n.deltaY*60:(n.deltaX||n.deltaZ,0)}function _e(n,t){let e=t.relatedTarget;if(!e)return!0;try{for(;e&&e!==n;)e=e.parentNode}catch{return!1}return e!==n}var pe={__proto__:null,PointerEvents:on,disableClickPropagation:xt,disableScrollPropagation:ue,getPointerPosition:_i,getPropagationPath:ui,getWheelDelta:fi,getWheelPxFactor:pi,isExternalTarget:_e,off:P,on:g,preventDefault:S,stop:nt,stopPropagation:K};class mi extends mt{run(t,e,i,s){this.stop(),this._el=t,this._inProgress=!0,this._duration=i??.25,this._easeOutPower=1/Math.max(s??.5,.2),this._startPos=et(t),this._offset=e.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()}stop(){this._inProgress&&(this._step(!0),this._complete())}_animate(){this._animId=requestAnimationFrame(this._animate.bind(this)),this._step()}_step(t){const e=+new Date-this._startTime,i=this._duration*1e3;e<i?this._runFrame(this._easeOut(e/i),t):(this._runFrame(1),this._complete())}_runFrame(t,e){const i=this._startPos.add(this._offset.multiplyBy(t));e&&i._round(),M(this._el,i),this.fire("step")}_complete(){cancelAnimationFrame(this._animId),this._inProgress=!1,this.fire("end")}_easeOut(t){return 1-(1-t)**this._easeOutPower}}let y=(J=class extends mt{initialize(t,e){e=L(this,e),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(t),this._initLayout(),this._initEvents(),e.maxBounds&&this.setMaxBounds(e.maxBounds),e.zoom!==void 0&&(this._zoom=this._limitZoom(e.zoom)),e.center&&e.zoom!==void 0&&this.setView(new p(e.center),e.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=this.options.zoomAnimation,this._zoomAnimated&&this._createAnimProxy(),this._addLayers(this.options.layers)}setView(t,e,i){return e=e===void 0?this._zoom:this._limitZoom(e),t=this._limitCenter(new p(t),e,this.options.maxBounds),i??={},this._stop(),this._loaded&&!i.reset&&i!==!0&&(i.animate!==void 0&&(i.zoom={animate:i.animate,...i.zoom},i.pan={animate:i.animate,duration:i.duration,...i.pan}),this._zoom!==e?this._tryAnimatedZoom&&this._tryAnimatedZoom(t,e,i.zoom):this._tryAnimatedPan(t,i.pan))?(clearTimeout(this._sizeTimer),this):(this._resetView(t,e,i.pan?.noMoveStart),this)}setZoom(t,e){return this._loaded?this.setView(this.getCenter(),t,{zoom:e}):(this._zoom=t,this)}zoomIn(t,e){return t??=this.options.zoomDelta,this.setZoom(this._zoom+t,e)}zoomOut(t,e){return t??=this.options.zoomDelta,this.setZoom(this._zoom-t,e)}setZoomAround(t,e,i){const s=this.getZoomScale(e),o=this.getSize().divideBy(2),r=t instanceof u?t:this.latLngToContainerPoint(t),a=r.subtract(o).multiplyBy(1-1/s),h=this.containerPointToLatLng(o.add(a));return this.setView(h,e,{zoom:i})}_getBoundsCenterZoom(t,e){e??={},t=t.getBounds?t.getBounds():new w(t);const i=new u(e.paddingTopLeft||e.padding||[0,0]),s=new u(e.paddingBottomRight||e.padding||[0,0]);let o=this.getBoundsZoom(t,!1,i.add(s));if(o=typeof e.maxZoom=="number"?Math.min(e.maxZoom,o):o,o===1/0)return{center:t.getCenter(),zoom:o};const r=s.subtract(i).divideBy(2),a=this.project(t.getSouthWest(),o),h=this.project(t.getNorthEast(),o);return{center:this.unproject(a.add(h).divideBy(2).add(r),o),zoom:o}}fitBounds(t,e){if(t=new w(t),!t.isValid())throw new Error("Bounds are not valid.");const i=this._getBoundsCenterZoom(t,e);return this.setView(i.center,i.zoom,e)}fitWorld(t){return this.fitBounds([[-90,-180],[90,180]],t)}panTo(t,e){return this.setView(t,this._zoom,{pan:e})}panBy(t,e){if(t=new u(t).round(),e??={},!t.x&&!t.y)return this.fire("moveend");if(e.animate!==!0&&!this.getSize().contains(t))return this._resetView(this.unproject(this.project(this.getCenter()).add(t)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new mi,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),e.noMoveStart||this.fire("movestart"),e.animate!==!1){this._mapPane.classList.add("leaflet-pan-anim");const i=this._getMapPanePos().subtract(t).round();this._panAnim.run(this._mapPane,i,e.duration||.25,e.easeLinearity)}else this._rawPanBy(t),this.fire("move").fire("moveend");return this}flyTo(t,e,i){if(i??={},i.animate===!1)return this.setView(t,e,i);this._stop();const s=this.project(this.getCenter()),o=this.project(t),r=this.getSize(),a=this._zoom;t=new p(t),e=e===void 0?a:this._limitZoom(e);const h=Math.max(r.x,r.y),l=h*this.getZoomScale(a,e),d=o.distanceTo(s)||1,c=1.42,f=c*c;function m(T){const Yt=T?-1:1,Dn=T?l:h,Rn=l*l-h*h+Yt*f*f*d*d,Nn=2*Dn*f*d,Je=Rn/Nn,Fi=Math.sqrt(Je*Je+1)-Je;return Fi<1e-9?-18:Math.log(Fi)}function C(T){return(Math.exp(T)-Math.exp(-T))/2}function k(T){return(Math.exp(T)+Math.exp(-T))/2}function lt(T){return C(T)/k(T)}const q=m(0);function Zn(T){return h*(k(q)/k(q+c*T))}function En(T){return h*(k(q)*lt(q+c*T)-C(q))/f}function An(T){return 1-(1-T)**1.5}const Bn=Date.now(),Ri=(m(1)-q)/c,In=i.duration?1e3*i.duration:1e3*Ri*.8,Ni=()=>{const T=(Date.now()-Bn)/In,Yt=An(T)*Ri;T<=1?(this._flyToFrame=requestAnimationFrame(Ni),this._move(this.unproject(s.add(o.subtract(s).multiplyBy(En(Yt)/d)),a),this.getScaleZoom(h/Zn(Yt),a),{flyTo:!0})):this._move(t,e)._moveEnd(!0)};return this._moveStart(!0,i.noMoveStart),Ni(),this}flyToBounds(t,e){const i=this._getBoundsCenterZoom(t,e);return this.flyTo(i.center,i.zoom,e)}setMaxBounds(t){return t=new w(t),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),t.isValid()?(this.options.maxBounds=t,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)}setMinZoom(t){const e=this.options.minZoom;return this.options.minZoom=t,this._loaded&&e!==t&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(t):this}setMaxZoom(t){const e=this.options.maxZoom;return this.options.maxZoom=t,this._loaded&&e!==t&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(t):this}panInsideBounds(t,e){this._enforcingBounds=!0;const i=this.getCenter(),s=this._limitCenter(i,this._zoom,new w(t));return i.equals(s)||this.panTo(s,e),this._enforcingBounds=!1,this}panInside(t,e){e??={};const i=new u(e.paddingTopLeft||e.padding||[0,0]),s=new u(e.paddingBottomRight||e.padding||[0,0]),o=this.project(this.getCenter()),r=this.project(t),a=this.getPixelBounds(),h=new v([a.min.add(i),a.max.subtract(s)]),l=h.getSize();if(!h.contains(r)){this._enforcingBounds=!0;const d=r.subtract(h.getCenter()),c=h.extend(r).getSize().subtract(l);o.x+=d.x<0?-c.x:c.x,o.y+=d.y<0?-c.y:c.y,this.panTo(this.unproject(o),e),this._enforcingBounds=!1}return this}invalidateSize(t){if(!this._loaded)return this;t={animate:!1,pan:!0,...t===!0?{animate:!0}:t};const e=this.getSize();this._sizeChanged=!0,this._lastCenter=null;const i=this.getSize(),s=e.divideBy(2).round(),o=i.divideBy(2).round(),r=s.subtract(o);return!r.x&&!r.y?this:(t.animate&&t.pan?this.panBy(r):(t.pan&&this._rawPanBy(r),this.fire("move"),t.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(this.fire.bind(this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:e,newSize:i}))}stop(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()}locate(t){if(t=this._locateOptions={timeout:1e4,watch:!1,...t},!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;const e=this._handleGeolocationResponse.bind(this),i=this._handleGeolocationError.bind(this);return t.watch?(this._locationWatchId!==void 0&&navigator.geolocation.clearWatch(this._locationWatchId),this._locationWatchId=navigator.geolocation.watchPosition(e,i,t)):navigator.geolocation.getCurrentPosition(e,i,t),this}stopLocate(){return navigator.geolocation?.clearWatch?.(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this}_handleGeolocationError(t){if(!this._container._leaflet_id)return;const e=t.code,i=t.message||(e===1?"permission denied":e===2?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:e,message:`Geolocation error: ${i}.`})}_handleGeolocationResponse(t){if(!this._container._leaflet_id)return;const e=t.coords.latitude,i=t.coords.longitude,s=new p(e,i),o=s.toBounds(t.coords.accuracy*2),r=this._locateOptions;if(r.setView){const h=this.getBoundsZoom(o);this.setView(s,r.maxZoom?Math.min(h,r.maxZoom):h)}const a={latlng:s,bounds:o,timestamp:t.timestamp};for(const h in t.coords)typeof t.coords[h]=="number"&&(a[h]=t.coords[h]);this.fire("locationfound",a)}addHandler(t,e){if(!e)return this;const i=this[t]=new e(this);return this._handlers.push(i),this.options[t]&&i.enable(),this}remove(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");delete this._container._leaflet_id,delete this._containerId,this._locationWatchId!==void 0&&this.stopLocate(),this._stop(),this._mapPane.remove(),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(cancelAnimationFrame(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),clearTimeout(this._transitionEndTimer),clearTimeout(this._sizeTimer),this._loaded&&this.fire("unload"),this._destroyAnimProxy();for(const t of Object.values(this._layers))t.remove();for(const t of Object.values(this._panes))t.remove();return this._layers={},this._panes={},delete this._mapPane,delete this._renderer,this}createPane(t,e){const i=`leaflet-pane${t?` leaflet-${t.replace("Pane","")}-pane`:""}`,s=b("div",i,e||this._mapPane);return t&&(this._panes[t]=s),s}getCenter(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())}getZoom(){return this._zoom}getBounds(){const t=this.getPixelBounds(),e=this.unproject(t.getBottomLeft()),i=this.unproject(t.getTopRight());return new w(e,i)}getMinZoom(){return this.options.minZoom??this._layersMinZoom??0}getMaxZoom(){return this.options.maxZoom??this._layersMaxZoom??1/0}getBoundsZoom(t,e,i){t=new w(t),i=new u(i??[0,0]);let s=this.getZoom()??0;const o=this.getMinZoom(),r=this.getMaxZoom(),a=t.getNorthWest(),h=t.getSouthEast(),l=this.getSize().subtract(i),d=new v(this.project(h,s),this.project(a,s)).getSize(),c=this.options.zoomSnap,f=l.x/d.x,m=l.y/d.y,C=e?Math.max(f,m):Math.min(f,m);return s=this.getScaleZoom(C,s),c&&(s=Math.round(s/(c/100))*(c/100),s=e?Math.ceil(s/c)*c:Math.floor(s/c)*c),Math.max(o,Math.min(r,s))}getSize(){return(!this._size||this._sizeChanged)&&(this._size=new u(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()}getPixelBounds(t,e){const i=this._getTopLeftPoint(t,e);return new v(i,i.add(this.getSize()))}getPixelOrigin(){return this._checkIfLoaded(),this._pixelOrigin}getPixelWorldBounds(t){return this.options.crs.getProjectedBounds(t??this.getZoom())}getPane(t){return typeof t=="string"?this._panes[t]:t}getPanes(){return this._panes}getContainer(){return this._container}getZoomScale(t,e){const i=this.options.crs;return e??=this._zoom,i.scale(t)/i.scale(e)}getScaleZoom(t,e){const i=this.options.crs;e??=this._zoom;const s=i.zoom(t*i.scale(e));return isNaN(s)?1/0:s}project(t,e){return e??=this._zoom,this.options.crs.latLngToPoint(new p(t),e)}unproject(t,e){return e??=this._zoom,this.options.crs.pointToLatLng(new u(t),e)}layerPointToLatLng(t){const e=new u(t).add(this.getPixelOrigin());return this.unproject(e)}latLngToLayerPoint(t){return this.project(new p(t))._round()._subtract(this.getPixelOrigin())}wrapLatLng(t){return this.options.crs.wrapLatLng(new p(t))}wrapLatLngBounds(t){return this.options.crs.wrapLatLngBounds(new w(t))}distance(t,e){return this.options.crs.distance(new p(t),new p(e))}containerPointToLayerPoint(t){return new u(t).subtract(this._getMapPanePos())}layerPointToContainerPoint(t){return new u(t).add(this._getMapPanePos())}containerPointToLatLng(t){const e=this.containerPointToLayerPoint(new u(t));return this.layerPointToLatLng(e)}latLngToContainerPoint(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint(new p(t)))}pointerEventToContainerPoint(t){return _i(t,this._container)}pointerEventToLayerPoint(t){return this.containerPointToLayerPoint(this.pointerEventToContainerPoint(t))}pointerEventToLatLng(t){return this.layerPointToLatLng(this.pointerEventToLayerPoint(t))}_initContainer(t){const e=this._container=oi(t);if(e){if(e._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");g(e,"scroll",this._onScroll,this),this._containerId=x(e),hi()}_initLayout(){const t=this._container;this._fadeAnimated=this.options.fadeAnimation;const e=["leaflet-container","leaflet-touch"];z.retina&&e.push("leaflet-retina"),z.safari&&e.push("leaflet-safari"),this._fadeAnimated&&e.push("leaflet-fade-anim"),t.classList.add(...e);const{position:i}=getComputedStyle(t);i!=="absolute"&&i!=="relative"&&i!=="fixed"&&i!=="sticky"&&(t.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()}_initPanes(){const t=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),M(this._mapPane,new u(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(t.markerPane.classList.add("leaflet-zoom-hide"),t.shadowPane.classList.add("leaflet-zoom-hide"))}_resetView(t,e,i){M(this._mapPane,new u(0,0));const s=!this._loaded;this._loaded=!0,e=this._limitZoom(e),this.fire("viewprereset");const o=this._zoom!==e;this._moveStart(o,i)._move(t,e)._moveEnd(o),this.fire("viewreset"),s&&this.fire("load")}_moveStart(t,e){return t&&this.fire("zoomstart"),e||this.fire("movestart"),this}_move(t,e,i,s){e===void 0&&(e=this._zoom);const o=this._zoom!==e;return this._zoom=e,this._lastCenter=t,this._pixelOrigin=this._getNewPixelOrigin(t),s?i?.pinch&&this.fire("zoom",i):((o||i?.pinch)&&this.fire("zoom",i),this.fire("move",i)),this}_moveEnd(t){return t&&this.fire("zoomend"),this.fire("moveend")}_stop(){return cancelAnimationFrame(this._flyToFrame),this._panAnim?.stop(),this}_rawPanBy(t){M(this._mapPane,this._getMapPanePos().subtract(t))}_getZoomSpan(){return this.getMaxZoom()-this.getMinZoom()}_panInsideMaxBounds(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)}_checkIfLoaded(){if(!this._loaded)throw new Error("Set map center and zoom first.")}_initEvents(t){this._targets={},this._targets[x(this._container)]=this,(t?P:g)(this._container,"click dblclick pointerdown pointerup pointerover pointerout pointermove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&(t?this._resizeObserver.disconnect():(this._resizeObserver||(this._resizeObserver=new ResizeObserver(this._onResize.bind(this))),this._resizeObserver.observe(this._container))),this.options.transform3DLimit&&(t?this.off:this.on).call(this,"moveend",this._onMoveEnd)}_onResize(){cancelAnimationFrame(this._resizeRequest),this._resizeRequest=requestAnimationFrame(()=>{this.invalidateSize({debounceMoveend:!0})})}_onScroll(){this._container.scrollTop=0,this._container.scrollLeft=0}_onMoveEnd(){const t=this._getMapPanePos();Math.max(Math.abs(t.x),Math.abs(t.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())}_findEventTargets(t,e){let i=[],s,o=t.target||t.srcElement,r=!1;const a=e==="pointerout"||e==="pointerover";for(;o;){if(s=this._targets[x(o)],s&&(e==="click"||e==="preclick")&&this._draggableMoved(s)){r=!0;break}if(s&&s.listens(e,!0)&&(a&&!_e(o,t)||(i.push(s),a))||o===this._container)break;o=o.parentNode}return!i.length&&!r&&!a&&this.listens(e,!0)&&(i=[this]),i}_isClickDisabled(t){for(;t&&t!==this._container;){if(t._leaflet_disable_click||!t.parentNode)return!0;t=t.parentNode}}_handleDOMEvent(t){const e=t.target??t.srcElement;if(!this._loaded||e._leaflet_disable_events||t.type==="click"&&this._isClickDisabled(e))return;const i=t.type;i==="pointerdown"&&re(e),this._fireDOMEvent(t,i)}_fireDOMEvent(t,e,i){e==="click"&&this._fireDOMEvent(t,"preclick",i);let s=this._findEventTargets(t,e);if(i&&(s=i.filter(h=>h.listens(e,!0)).concat(s)),!s.length)return;e==="contextmenu"&&S(t);const o=s[0],r={originalEvent:t};if(t.type!=="keypress"&&t.type!=="keydown"&&t.type!=="keyup"){const a=o.getLatLng&&(!o._radius||o._radius<=10);r.containerPoint=a?this.latLngToContainerPoint(o.getLatLng()):this.pointerEventToContainerPoint(t),r.layerPoint=this.containerPointToLayerPoint(r.containerPoint),r.latlng=a?o.getLatLng():this.layerPointToLatLng(r.layerPoint)}for(const a of s)if(a.fire(e,r,!0),r.originalEvent._stopped||a.options.bubblingPointerEvents===!1&&J._pointerEvents.includes(e))return}_draggableMoved(t){return t=t.dragging?.enabled()?t:this,t.dragging?.moved()||this.boxZoom?.moved()}_clearHandlers(){for(const t of this._handlers)t.disable()}whenReady(t,e){return this._loaded?t.call(e||this,{target:this}):this.on("load",t,e),this}_getMapPanePos(){return et(this._mapPane)}_moved(){const t=this._getMapPanePos();return t&&!t.equals([0,0])}_getTopLeftPoint(t,e){return(t&&e!==void 0?this._getNewPixelOrigin(t,e):this.getPixelOrigin()).subtract(this._getMapPanePos())}_getNewPixelOrigin(t,e){const i=this.getSize()._divideBy(2);return this.project(t,e)._subtract(i)._add(this._getMapPanePos())._round()}_latLngToNewLayerPoint(t,e,i){const s=this._getNewPixelOrigin(i,e);return this.project(t,e)._subtract(s)}_latLngBoundsToNewLayerBounds(t,e,i){const s=this._getNewPixelOrigin(i,e);return new v([this.project(t.getSouthWest(),e)._subtract(s),this.project(t.getNorthWest(),e)._subtract(s),this.project(t.getSouthEast(),e)._subtract(s),this.project(t.getNorthEast(),e)._subtract(s)])}_getCenterLayerPoint(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))}_getCenterOffset(t){return this.latLngToLayerPoint(t).subtract(this._getCenterLayerPoint())}_limitCenter(t,e,i){if(!i)return t;const s=this.project(t,e),o=this.getSize().divideBy(2),r=new v(s.subtract(o),s.add(o)),a=this._getBoundsOffset(r,i,e);return Math.abs(a.x)<=1&&Math.abs(a.y)<=1?t:this.unproject(s.add(a),e)}_limitOffset(t,e){if(!e)return t;const i=this.getPixelBounds(),s=new v(i.min.add(t),i.max.add(t));return t.add(this._getBoundsOffset(s,e))}_getBoundsOffset(t,e,i){const s=new v(this.project(e.getNorthEast(),i),this.project(e.getSouthWest(),i)),o=s.min.subtract(t.min),r=s.max.subtract(t.max),a=this._rebound(o.x,-r.x),h=this._rebound(o.y,-r.y);return new u(a,h)}_rebound(t,e){return t+e>0?Math.round(t-e)/2:Math.max(0,Math.ceil(t))-Math.max(0,Math.floor(e))}_limitZoom(t){const e=this.getMinZoom(),i=this.getMaxZoom(),s=this.options.zoomSnap;return s&&(t=Math.round(t/s)*s),Math.max(e,Math.min(i,t))}_onPanTransitionStep(){this.fire("move")}_onPanTransitionEnd(){this._mapPane.classList.remove("leaflet-pan-anim"),this.fire("moveend")}_tryAnimatedPan(t,e){const i=this._getCenterOffset(t)._trunc();return e?.animate!==!0&&!this.getSize().contains(i)?!1:(this.panBy(i,e),!0)}_createAnimProxy(){this._proxy=b("div","leaflet-proxy leaflet-zoom-animated"),this._panes.mapPane.appendChild(this._proxy),this.on("zoomanim",this._animateProxyZoom,this),this.on("load moveend",this._animMoveEnd,this),g(this._proxy,"transitionend",this._catchTransitionEnd,this)}_animateProxyZoom(t){const e=this._proxy.style.transform;tt(this._proxy,this.project(t.center,t.zoom),this.getZoomScale(t.zoom,1)),e===this._proxy.style.transform&&this._animatingZoom&&this._onZoomTransitionEnd()}_animMoveEnd(){const t=this.getCenter(),e=this.getZoom();tt(this._proxy,this.project(t,e),this.getZoomScale(e,1))}_destroyAnimProxy(){this._proxy&&(P(this._proxy,"transitionend",this._catchTransitionEnd,this),this._proxy.remove(),this.off("zoomanim",this._animateProxyZoom,this),this.off("load moveend",this._animMoveEnd,this),delete this._proxy)}_catchTransitionEnd(t){this._animatingZoom&&t.propertyName.includes("transform")&&this._onZoomTransitionEnd()}_nothingToAnimate(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length}_tryAnimatedZoom(t,e,i){if(this._animatingZoom)return!0;if(i??={},!this._zoomAnimated||i.animate===!1||this._nothingToAnimate()||Math.abs(e-this._zoom)>this.options.zoomAnimationThreshold)return!1;const s=this.getZoomScale(e),o=this._getCenterOffset(t)._divideBy(1-1/s);return i.animate!==!0&&!this.getSize().contains(o)?!1:(requestAnimationFrame(()=>{this._moveStart(!0,i.noMoveStart??!1)._animateZoom(t,e,!0)}),!0)}_animateZoom(t,e,i,s){this._mapPane&&(i&&(this._animatingZoom=!0,this._animateToCenter=t,this._animateToZoom=e,this._mapPane.classList.add("leaflet-zoom-anim")),this.fire("zoomanim",{center:t,zoom:e,noUpdate:s}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._transitionEndTimer=setTimeout(this._onZoomTransitionEnd.bind(this),250))}_onZoomTransitionEnd(){this._animatingZoom&&(this._mapPane?.classList.remove("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))}},J.setDefaultOptions({crs:Jt,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}),Hi(J,"_pointerEvents",["click","dblclick","pointerover","pointerout","contextmenu"]),J);const rn=y,Se=class Se extends ft{initialize(t){L(this,t)}getPosition(){return this.options.position}setPosition(t){const e=this._map;return e?.removeControl(this),this.options.position=t,e?.addControl(this),this}getContainer(){return this._container}addTo(t){this.remove(),this._map=t;const e=this._container=this.onAdd(t),i=this.getPosition(),s=t._controlCorners[i];return e.classList.add("leaflet-control"),i.includes("bottom")?s.insertBefore(e,s.firstChild):s.appendChild(e),this._map.on("unload",this.remove,this),this}remove(){return this._map?(this._container.remove(),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this}_refocusOnMap(t){this._map&&t&&!(t.screenX===0&&t.screenY===0)&&this._map.getContainer().focus()}};Se.setDefaultOptions({position:"topright"});let E=Se;y.include({addControl(n){return n.addTo(this),this},removeControl(n){return n.remove(),this},_initControlPos(){const n=this._controlCorners={},t="leaflet-",e=this._controlContainer=b("div",`${t}control-container`,this._container);function i(s,o){const r=`${t+s} ${t}${o}`;n[s+o]=b("div",r,e)}i("top","left"),i("top","right"),i("bottom","left"),i("bottom","right")},_clearControlPos(){for(const n of Object.values(this._controlCorners))n.remove();this._controlContainer.remove(),delete this._controlCorners,delete this._controlContainer}});const Oe=class Oe extends E{initialize(t,e,i){L(this,i),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1;for(const[s,o]of Object.entries(t??{}))this._addLayer(o,s);for(const[s,o]of Object.entries(e??{}))this._addLayer(o,s,!0)}onAdd(t){this._initLayout(),this._update(),this._map=t,t.on("zoomend",this._checkDisabledLayers,this);for(const e of this._layers)e.layer.on("add remove",this._onLayerChange,this);return this.options.collapsed||t.on("resize",this._expandIfNotCollapsed,this),this._container}addTo(t){return E.prototype.addTo.call(this,t),this._expandIfNotCollapsed()}onRemove(){this._map.off("zoomend",this._checkDisabledLayers,this);for(const t of this._layers)t.layer.off("add remove",this._onLayerChange,this);this._map.off("resize",this._expandIfNotCollapsed,this)}addBaseLayer(t,e){return this._addLayer(t,e),this._map?this._update():this}addOverlay(t,e){return this._addLayer(t,e,!0),this._map?this._update():this}removeLayer(t){t.off("add remove",this._onLayerChange,this);const e=this._getLayer(x(t));return e&&this._layers.splice(this._layers.indexOf(e),1),this._map?this._update():this}expand(){clearTimeout(this._collapseDelayTimeout),this._container.classList.add("leaflet-control-layers-expanded"),this._section.style.height=null;const t=this._map.getSize().y-(this._container.offsetTop+50);return t<this._section.clientHeight?(this._section.classList.add("leaflet-control-layers-scrollbar"),this._section.style.height=`${t}px`):this._section.classList.remove("leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this}collapse(t){if(!t||!((t.type==="pointerleave"||t.type==="pointerout")&&t.pointerType==="touch")){if(this.options.collapseDelay>0)return this._collapseDelayTimeout=setTimeout(()=>{this._container.classList.remove("leaflet-control-layers-expanded")},this.options.collapseDelay),this;this._container.classList.remove("leaflet-control-layers-expanded")}return this}_initLayout(){const t="leaflet-control-layers",e=this._container=b("div",t),i=this.options.collapsed;xt(e),ue(e);const s=this._section=b("fieldset",`${t}-list`);i&&(this._map.on("click",this.collapse,this),g(e,{pointerenter:this._expandSafely,pointerleave:this.collapse},this));const o=this._layersLink=b("a",`${t}-toggle`,e);o.href="#",o.title="Layers",o.setAttribute("role","button"),g(o,{keydown(r){r.code==="Enter"&&this._expandSafely()},click(r){S(r),this._expandSafely()}},this),i||this.expand(),this._baseLayersList=b("div",`${t}-base`,s),this._separator=b("div",`${t}-separator`,s),this._overlaysList=b("div",`${t}-overlays`,s),e.appendChild(s)}_getLayer(t){for(const e of this._layers)if(e&&x(e.layer)===t)return e}_addLayer(t,e,i){this._map&&t.on("add remove",this._onLayerChange,this),this._layers.push({layer:t,name:e,overlay:i}),this.options.sortLayers&&this._layers.sort((s,o)=>this.options.sortFunction(s.layer,o.layer,s.name,o.name)),this.options.autoZIndex&&t.setZIndex&&(this._lastZIndex++,t.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()}_update(){if(!this._container)return this;this._baseLayersList.replaceChildren(),this._overlaysList.replaceChildren(),this._layerControlInputs=[];let t,e,i=0;for(const s of this._layers)this._addItem(s),e||=s.overlay,t||=!s.overlay,i+=s.overlay?0:1;return this.options.hideSingleBase&&(t=t&&i>1,this._baseLayersList.style.display=t?"":"none"),this._separator.style.display=e&&t?"":"none",this}_onLayerChange(t){this._handlingClick||this._update();const e=this._getLayer(x(t.target)),i=e.overlay?t.type==="add"?"overlayadd":"overlayremove":t.type==="add"?"baselayerchange":null;i&&this._map.fire(i,e)}_addItem(t){const e=document.createElement("label"),i=this._map.hasLayer(t.layer),s=document.createElement("input");s.type=t.overlay?"checkbox":"radio",s.className="leaflet-control-layers-selector",s.defaultChecked=i,t.overlay||(s.name=`leaflet-base-layers_${x(this)}`),this._layerControlInputs.push(s),s.layerId=x(t.layer),g(s,"click",this._onInputClick,this);const o=document.createElement("span");o.innerHTML=` ${t.name}`;const r=document.createElement("span");return e.appendChild(r),r.appendChild(s),r.appendChild(o),(t.overlay?this._overlaysList:this._baseLayersList).appendChild(e),this._checkDisabledLayers(),e}_onInputClick(t){if(this._preventClick)return;const e=this._layerControlInputs,i=[],s=[];this._handlingClick=!0;for(const o of e){const r=this._getLayer(o.layerId).layer;o.checked?i.push(r):o.checked||s.push(r)}for(const o of s)this._map.hasLayer(o)&&this._map.removeLayer(o);for(const o of i)this._map.hasLayer(o)||this._map.addLayer(o);this._handlingClick=!1,this._refocusOnMap(t)}_checkDisabledLayers(){const t=this._layerControlInputs,e=this._map.getZoom();for(const i of t){const s=this._getLayer(i.layerId).layer;i.disabled=s.options.minZoom!==void 0&&e<s.options.minZoom||s.options.maxZoom!==void 0&&e>s.options.maxZoom}}_expandIfNotCollapsed(){return this._map&&!this.options.collapsed&&this.expand(),this}_expandSafely(){const t=this._section;this._preventClick=!0,g(t,"click",S),this.expand(),setTimeout(()=>{P(t,"click",S),this._preventClick=!1})}};Oe.setDefaultOptions({collapsed:!0,collapseDelay:0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction(t,e,i,s){return i<s?-1:s<i?1:0}});let fe=Oe;const Ze=class Ze extends E{onAdd(t){const e="leaflet-control-zoom",i=b("div",`${e} leaflet-bar`),s=this.options;return this._zoomInButton=this._createButton(s.zoomInText,s.zoomInTitle,`${e}-in`,i,this._zoomIn),this._zoomOutButton=this._createButton(s.zoomOutText,s.zoomOutTitle,`${e}-out`,i,this._zoomOut),this._updateDisabled(),t.on("zoomend zoomlevelschange",this._updateDisabled,this),i}onRemove(t){t.off("zoomend zoomlevelschange",this._updateDisabled,this)}disable(){return this._disabled=!0,this._updateDisabled(),this}enable(){return this._disabled=!1,this._updateDisabled(),this}_zoomIn(t){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(t.shiftKey?3:1))}_zoomOut(t){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(t.shiftKey?3:1))}_createButton(t,e,i,s,o){const r=b("a",i,s);return r.innerHTML=t,r.href="#",r.title=e,r.setAttribute("role","button"),r.setAttribute("aria-label",e),xt(r),g(r,"click",nt),g(r,"click",o,this),g(r,"click",this._refocusOnMap,this),r}_updateDisabled(){const t=this._map,e="leaflet-disabled";this._zoomInButton.classList.remove(e),this._zoomOutButton.classList.remove(e),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||t._zoom===t.getMinZoom())&&(this._zoomOutButton.classList.add(e),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||t._zoom===t.getMaxZoom())&&(this._zoomInButton.classList.add(e),this._zoomInButton.setAttribute("aria-disabled","true"))}};Ze.setDefaultOptions({position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">−</span>',zoomOutTitle:"Zoom out"});let Bt=Ze;y.mergeOptions({zoomControl:!0}),y.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new Bt,this.addControl(this.zoomControl))});const Ee=class Ee extends E{onAdd(t){const e="leaflet-control-scale",i=b("div",e),s=this.options;return this._addScales(s,`${e}-line`,i),t.on(s.updateWhenIdle?"moveend":"move",this._update,this),t.whenReady(this._update,this),i}onRemove(t){t.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)}_addScales(t,e,i){t.metric&&(this._mScale=b("div",e,i)),t.imperial&&(this._iScale=b("div",e,i))}_update(){const t=this._map,e=t.getSize().y/2,i=t.distance(t.containerPointToLatLng([0,e]),t.containerPointToLatLng([this.options.maxWidth,e]));this._updateScales(i)}_updateScales(t){this.options.metric&&t&&this._updateMetric(t),this.options.imperial&&t&&this._updateImperial(t)}_updateMetric(t){const e=this._getRoundNum(t),i=e<1e3?`${e} m`:`${e/1e3} km`;this._updateScale(this._mScale,i,e/t)}_updateImperial(t){const e=t*3.2808399;let i,s,o;e>5280?(i=e/5280,s=this._getRoundNum(i),this._updateScale(this._iScale,`${s} mi`,s/i)):(o=this._getRoundNum(e),this._updateScale(this._iScale,`${o} ft`,o/e))}_updateScale(t,e,i){t.style.width=`${Math.round(this.options.maxWidth*i)}px`,t.innerHTML=e}_getRoundNum(t){const e=10**(`${Math.floor(t)}`.length-1);let i=t/e;return i=i>=10?10:i>=5?5:i>=3?3:i>=2?2:1,e*i}};Ee.setDefaultOptions({position:"bottomleft",maxWidth:100,metric:!0,imperial:!0,updateWhenIdle:!1});let me=Ee;const an='<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>',Ae=class Ae extends E{initialize(t){L(this,t),this._attributions={}}onAdd(t){t.attributionControl=this,this._container=b("div","leaflet-control-attribution"),xt(this._container);for(const e of Object.values(t._layers))e.getAttribution&&this.addAttribution(e.getAttribution());return this._update(),t.on("layeradd",this._addAttribution,this),this._container}onRemove(t){t.off("layeradd",this._addAttribution,this)}_addAttribution(t){t.layer.getAttribution&&(this.addAttribution(t.layer.getAttribution()),t.layer.once("remove",()=>this.removeAttribution(t.layer.getAttribution())))}setPrefix(t){return this.options.prefix=t,this._update(),this}addAttribution(t){return t?(this._attributions[t]||(this._attributions[t]=0),this._attributions[t]++,this._update(),this):this}removeAttribution(t){return t?(this._attributions[t]&&(this._attributions[t]--,this._update()),this):this}_update(){if(!this._map)return;const t=Object.keys(this._attributions).filter(i=>this._attributions[i]),e=[];this.options.prefix&&e.push(this.options.prefix),t.length&&e.push(t.join(", ")),this._container.innerHTML=e.join(' <span aria-hidden="true">|</span> ')}};Ae.setDefaultOptions({position:"bottomright",prefix:`<a target="_blank" href="https://leafletjs.com" title="A JavaScript library for interactive maps">${an}Leaflet</a>`});let It=Ae;y.mergeOptions({attributionControl:!0}),y.addInitHook(function(){this.options.attributionControl&&new It().addTo(this)}),E.Layers=fe,E.Zoom=Bt,E.Scale=me,E.Attribution=It;class H extends ft{initialize(t){this._map=t}enable(){return this._enabled?this:(this._enabled=!0,this.addHooks(),this)}disable(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this}enabled(){return!!this._enabled}}H.addTo=function(n,t){return n.addHandler(t,this),this};const Q=class Q extends mt{initialize(t,e,i,s){L(this,s),this._element=t,this._dragStartTarget=e??t,this._preventOutline=i}enable(){this._enabled||(g(this._dragStartTarget,"pointerdown",this._onDown,this),this._enabled=!0)}disable(){this._enabled&&(Q._dragging===this&&this.finishDrag(!0),P(this._dragStartTarget,"pointerdown",this._onDown,this),this._enabled=!1,this._moved=!1)}_onDown(t){if(this._moved=!1,this._element.classList.contains("leaflet-zoom-anim"))return;if(dt().length!==1){Q._dragging===this&&this.finishDrag();return}if(Q._dragging||t.shiftKey||t.button!==0&&t.pointerType!=="touch"||(Q._dragging=this,this._preventOutline&&re(this._element),ne(),ee(),this._moving))return;this.fire("down");const e=ai(this._element);this._startPoint=new u(t.clientX,t.clientY),this._startPos=et(this._element),this._parentScale=ae(e),g(document,"pointermove",this._onMove,this),g(document,"pointerup pointercancel",this._onUp,this)}_onMove(t){if(dt().length>1){this._moved=!0;return}const e=new u(t.clientX,t.clientY)._subtract(this._startPoint);!e.x&&!e.y||Math.abs(e.x)+Math.abs(e.y)<this.options.clickTolerance||(e.x/=this._parentScale.x,e.y/=this._parentScale.y,t.cancelable&&S(t),this._moved||(this.fire("dragstart"),this._moved=!0,document.body.classList.add("leaflet-dragging"),this._lastTarget=t.target??t.srcElement,this._lastTarget.classList.add("leaflet-drag-target")),this._newPos=this._startPos.add(e),this._moving=!0,this._lastEvent=t,this._updatePosition())}_updatePosition(){const t={originalEvent:this._lastEvent};this.fire("predrag",t),M(this._element,this._newPos),this.fire("drag",t)}_onUp(){this.finishDrag()}finishDrag(t){document.body.classList.remove("leaflet-dragging"),this._lastTarget&&(this._lastTarget.classList.remove("leaflet-drag-target"),this._lastTarget=null),P(document,"pointermove",this._onMove,this),P(document,"pointerup pointercancel",this._onUp,this),se(),ie();const e=this._moved&&this._moving;this._moving=!1,Q._dragging=!1,e&&this.fire("dragend",{noInertia:t,distance:this._newPos.distanceTo(this._startPos)})}};Q.setDefaultOptions({clickTolerance:3});let wt=Q;function gi(n,t,e){let i,s,o,r,a,h,l,d,c;const f=[1,4,2,8];for(s=0,l=n.length;s<l;s++)n[s]._code=st(n[s],t);for(r=0;r<4;r++){for(d=f[r],i=[],s=0,l=n.length,o=l-1;s<l;o=s++)a=n[s],h=n[o],a._code&d?h._code&d||(c=Dt(h,a,d,t,e),c._code=st(c,t),i.push(c)):(h._code&d&&(c=Dt(h,a,d,t,e),c._code=st(c,t),i.push(c)),i.push(a));n=i}return n}function yi(n,t){let e,i,s,o,r,a,h,l,d;if(!n||n.length===0)throw new Error("latlngs not passed");B(n)||(console.warn("latlngs are not flat! Only the first ring will be used"),n=n[0]);let c=new p([0,0]);const f=new w(n);f.getNorthWest().distanceTo(f.getSouthWest())*f.getNorthEast().distanceTo(f.getNorthWest())<1700&&(c=ge(n));const C=n.length,k=[];for(e=0;e<C;e++){const q=new p(n[e]);k.push(t.project(new p([q.lat-c.lat,q.lng-c.lng])))}for(a=h=l=0,e=0,i=C-1;e<C;i=e++)s=k[e],o=k[i],r=s.y*o.x-o.y*s.x,h+=(s.x+o.x)*r,l+=(s.y+o.y)*r,a+=r*3;a===0?d=k[0]:d=[h/a,l/a];const lt=t.unproject(new u(d));return new p([lt.lat+c.lat,lt.lng+c.lng])}function ge(n){let t=0,e=0,i=0;for(const s of n){const o=new p(s);t+=o.lat,e+=o.lng,i++}return new p([t/i,e/i])}var hn={__proto__:null,centroid:ge,clipPolygon:gi,polygonCenter:yi};function vi(n,t){if(!t||!n.length)return n.slice();const e=t*t;return n=cn(n,e),n=dn(n,e),n}function xi(n,t,e){return Math.sqrt(bt(n,t,e,!0))}function ln(n,t,e){return bt(n,t,e)}function dn(n,t){const e=n.length,i=new Uint8Array(e);i[0]=i[e-1]=1,ye(n,i,t,0,e-1);let s;const o=[];for(s=0;s<e;s++)i[s]&&o.push(n[s]);return o}function ye(n,t,e,i,s){let o=0,r,a,h;for(a=i+1;a<=s-1;a++)h=bt(n[a],n[i],n[s],!0),h>o&&(r=a,o=h);o>e&&(t[r]=1,ye(n,t,e,i,r),ye(n,t,e,r,s))}function cn(n,t){const e=[n[0]];let i=0;for(let s=1;s<n.length;s++)un(n[s],n[i])>t&&(e.push(n[s]),i=s);return i<n.length-1&&e.push(n[n.length-1]),e}let wi;function bi(n,t,e,i,s){let o=i?wi:st(n,e),r=st(t,e),a,h,l;for(wi=r;;){if(!(o|r))return[n,t];if(o&r)return!1;a=o||r,h=Dt(n,t,a,e,s),l=st(h,e),a===o?(n=h,o=l):(t=h,r=l)}}function Dt(n,t,e,i,s){const o=t.x-n.x,r=t.y-n.y,a=i.min,h=i.max;let l,d;return e&8?(l=n.x+o*(h.y-n.y)/r,d=h.y):e&4?(l=n.x+o*(a.y-n.y)/r,d=a.y):e&2?(l=h.x,d=n.y+r*(h.x-n.x)/o):e&1&&(l=a.x,d=n.y+r*(a.x-n.x)/o),new u(l,d,s)}function st(n,t){let e=0;return n.x<t.min.x?e|=1:n.x>t.max.x&&(e|=2),n.y<t.min.y?e|=4:n.y>t.max.y&&(e|=8),e}function un(n,t){const e=t.x-n.x,i=t.y-n.y;return e*e+i*i}function bt(n,t,e,i){let s=t.x,o=t.y,r=e.x-s,a=e.y-o,h;const l=r*r+a*a;return l>0&&(h=((n.x-s)*r+(n.y-o)*a)/l,h>1?(s=e.x,o=e.y):h>0&&(s+=r*h,o+=a*h)),r=n.x-s,a=n.y-o,i?r*r+a*a:new u(s,o)}function B(n){return!Array.isArray(n[0])||typeof n[0][0]!="object"&&typeof n[0][0]<"u"}function Li(n,t){let e,i,s,o,r,a,h,l;if(!n||n.length===0)throw new Error("latlngs not passed");B(n)||(console.warn("latlngs are not flat! Only the first ring will be used"),n=n[0]);let d=new p([0,0]);const c=new w(n);c.getNorthWest().distanceTo(c.getSouthWest())*c.getNorthEast().distanceTo(c.getNorthWest())<1700&&(d=ge(n));const m=n.length,C=[];for(e=0;e<m;e++){const lt=new p(n[e]);C.push(t.project(new p([lt.lat-d.lat,lt.lng-d.lng])))}for(e=0,i=0;e<m-1;e++)i+=C[e].distanceTo(C[e+1])/2;if(i===0)l=C[0];else for(e=0,o=0;e<m-1;e++)if(r=C[e],a=C[e+1],s=r.distanceTo(a),o+=s,o>i){h=(o-i)/s,l=[a.x-h*(a.x-r.x),a.y-h*(a.y-r.y)];break}const k=t.unproject(new u(l));return new p([k.lat+d.lat,k.lng+d.lng])}var _n={__proto__:null,_getBitCode:st,_getEdgeIntersection:Dt,_sqClosestPointOnSegment:bt,clipSegment:bi,closestPointOnSegment:ln,isFlat:B,pointToSegmentDistance:xi,polylineCenter:Li,simplify:vi};const ve={project(n){return n=new p(n),new u(n.lng,n.lat)},unproject(n){return n=new u(n),new p(n.y,n.x)},bounds:new v([-180,-90],[180,90])},xe={R:6378137,R_MINOR:6356752314245179e-9,bounds:new v([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project(n){n=new p(n);const t=Math.PI/180,e=this.R,i=this.R_MINOR/e,s=Math.sqrt(1-i*i);let o=n.lat*t;const r=s*Math.sin(o),a=Math.tan(Math.PI/4-o/2)/((1-r)/(1+r))**(s/2);return o=-e*Math.log(Math.max(a,1e-10)),new u(n.lng*t*e,o)},unproject(n){n=new u(n);const t=180/Math.PI,e=this.R,i=this.R_MINOR/e,s=Math.sqrt(1-i*i),o=Math.exp(-n.y/e);let r=Math.PI/2-2*Math.atan(o);for(let a=0,h=.1,l;a<15&&Math.abs(h)>1e-7;a++)l=s*Math.sin(r),l=((1-l)/(1+l))**(s/2),h=Math.PI/2-2*Math.atan(o*l)-r,r+=h;return new p(r*t,n.x*t/e)}};var pn={__proto__:null,LonLat:ve,Mercator:xe,SphericalMercator:Xt};class fn extends V{static code="EPSG:3395";static projection=xe;static transformation=(()=>{const t=.5/(Math.PI*xe.R);return new gt(t,.5,-t,.5)})()}class Pi extends V{static code="EPSG:4326";static projection=ve;static transformation=new gt(.005555555555555556,1,-.005555555555555556,.5)}class mn extends W{static projection=ve;static transformation=new gt(1,0,-1,0);static scale(t){return 2**t}static zoom(t){return Math.log(t)/Math.LN2}static distance(t,e){const i=e.lng-t.lng,s=e.lat-t.lat;return Math.sqrt(i*i+s*s)}static infinite=!0}W.Earth=V,W.EPSG3395=fn,W.EPSG3857=Jt,W.EPSG900913=Wi,W.EPSG4326=Pi,W.Simple=mn;const Be=class Be extends mt{addTo(t){return t.addLayer(this),this}remove(){return this.removeFrom(this._map||this._mapToAdd)}removeFrom(t){return t?.removeLayer(this),this}getPane(t){return this._map.getPane(t?this.options[t]||t:this.options.pane)}addInteractiveTarget(t){return this._map._targets[x(t)]=this,this}removeInteractiveTarget(t){return delete this._map._targets[x(t)],this}getAttribution(){return this.options.attribution}_layerAdd(t){const e=t.target;if(e.hasLayer(this)){if(this._map=e,this._zoomAnimated=e._zoomAnimated,this.getEvents){const i=this.getEvents();e.on(i,this),this.once("remove",()=>e.off(i,this))}this.onAdd(e),this.fire("add"),e.fire("layeradd",{layer:this})}}};Be.setDefaultOptions({pane:"overlayPane",attribution:null,bubblingPointerEvents:!0});let O=Be;y.include({addLayer(n){if(!n._layerAdd)throw new Error("The provided object is not a Layer.");const t=x(n);return this._layers[t]?this:(this._layers[t]=n,n._mapToAdd=this,n.beforeAdd&&n.beforeAdd(this),this.whenReady(n._layerAdd,n),this)},removeLayer(n){const t=x(n);return this._layers[t]?(this._loaded&&n.onRemove(this),delete this._layers[t],this._loaded&&(this.fire("layerremove",{layer:n}),n.fire("remove")),n._map=n._mapToAdd=null,this):this},hasLayer(n){return x(n)in this._layers},eachLayer(n,t){for(const e of Object.values(this._layers))n.call(t,e);return this},_addLayers(n){n=n?Array.isArray(n)?n:[n]:[];for(const t of n)this.addLayer(t)},_addZoomLimit(n){(!isNaN(n.options.maxZoom)||!isNaN(n.options.minZoom))&&(this._zoomBoundLayers[x(n)]=n,this._updateZoomLevels())},_removeZoomLimit(n){const t=x(n);this._zoomBoundLayers[t]&&(delete this._zoomBoundLayers[t],this._updateZoomLevels())},_updateZoomLevels(){let n=1/0,t=-1/0;const e=this._getZoomSpan();for(const i of Object.values(this._zoomBoundLayers)){const s=i.options;n=Math.min(n,s.minZoom??1/0),t=Math.max(t,s.maxZoom??-1/0)}this._layersMaxZoom=t===-1/0?void 0:t,this._layersMinZoom=n===1/0?void 0:n,e!==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)}});class Lt extends O{initialize(t,e){L(this,e),this._layers={};for(const i of t??[])this.addLayer(i)}addLayer(t){const e=this.getLayerId(t);return this._layers[e]=t,this._map?.addLayer(t),this}removeLayer(t){const e=t in this._layers?t:this.getLayerId(t);return this._map&&this._layers[e]&&this._map.removeLayer(this._layers[e]),delete this._layers[e],this}hasLayer(t){return(typeof t=="number"?t:this.getLayerId(t))in this._layers}clearLayers(){return this.eachLayer(this.removeLayer,this)}invoke(t,...e){for(const i of Object.values(this._layers))i[t]?.apply(i,e);return this}onAdd(t){this.eachLayer(t.addLayer,t)}onRemove(t){this.eachLayer(t.removeLayer,t)}eachLayer(t,e){for(const i of Object.values(this._layers))t.call(e,i);return this}getLayer(t){return this._layers[t]}getLayers(){const t=[];return this.eachLayer(t.push,t),t}setZIndex(t){return this.invoke("setZIndex",t)}getLayerId(t){return x(t)}}class Y extends Lt{addLayer(t){return this.hasLayer(t)?this:(t.addEventParent(this),Lt.prototype.addLayer.call(this,t),this.fire("layeradd",{layer:t}))}removeLayer(t){return this.hasLayer(t)?(t in this._layers&&(t=this._layers[t]),t.removeEventParent(this),Lt.prototype.removeLayer.call(this,t),this.fire("layerremove",{layer:t})):this}setStyle(t){return this.invoke("setStyle",t)}bringToFront(){return this.invoke("bringToFront")}bringToBack(){return this.invoke("bringToBack")}getBounds(){const t=new w;for(const e of Object.values(this._layers))t.extend(e.getBounds?e.getBounds():e.getLatLng());return t}}const Ie=class Ie extends ft{initialize(t){L(this,t)}createIcon(t){return this._createIcon("icon",t)}createShadow(t){return this._createIcon("shadow",t)}_createIcon(t,e){const i=this._getIconUrl(t);if(!i){if(t==="icon")throw new Error("iconUrl not set in Icon options (see the docs).");return null}const s=this._createImg(i,e&&e.tagName==="IMG"?e:null);return this._setIconStyles(s,t),(this.options.crossOrigin||this.options.crossOrigin==="")&&(s.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),s}_setIconStyles(t,e){const i=this.options;let s=i[`${e}Size`];typeof s=="number"&&(s=[s,s]);const o=u.validate(s)&&new u(s),r=e==="shadow"&&i.shadowAnchor||i.iconAnchor||o&&o.divideBy(2,!0),a=u.validate(r)&&new u(r);t.className=`leaflet-marker-${e} ${i.className||""}`,a&&(t.style.marginLeft=`${-a.x}px`,t.style.marginTop=`${-a.y}px`),o&&(t.style.width=`${o.x}px`,t.style.height=`${o.y}px`)}_createImg(t,e){return e??=document.createElement("img"),e.src=t,e}_getIconUrl(t){return z.retina&&this.options[`${t}RetinaUrl`]||this.options[`${t}Url`]}};Ie.setDefaultOptions({popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1});let ot=Ie;const _t=class _t extends ot{_getIconUrl(t){_t.imagePath||(_t.imagePath=this._detectIconPath());const e=ot.prototype._getIconUrl.call(this,t);return e?(this.options.imagePath||_t.imagePath)+e:null}_stripUrl(t){const e=function(i,s,o){const r=s.exec(i);return r&&r[o]};return t=e(t,/^url\((['"])?(.+)\1\)$/,2),t&&e(t,/^(.*)marker-icon\.png$/,1)}_detectIconPath(){const t=b("div","leaflet-default-icon-path",document.body),e=this._stripUrl(getComputedStyle(t).backgroundImage);if(document.body.removeChild(t),e)return e;const i=document.querySelector('link[href$="leaflet.css"]');return i?i.href.substring(0,i.href.length-11-1):""}};_t.setDefaultOptions({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]});let Rt=_t;class Ci extends H{initialize(t){this._marker=t}addHooks(){const t=this._marker._icon;this._draggable||(this._draggable=new wt(t,t,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),t.classList.add("leaflet-marker-draggable")}removeHooks(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon?.classList.remove("leaflet-marker-draggable")}moved(){return this._draggable?._moved}_adjustPan(t){const e=this._marker,i=e._map,s=this._marker.options.autoPanSpeed,o=this._marker.options.autoPanPadding,r=et(e._icon),a=i.getPixelBounds(),h=i.getPixelOrigin(),l=new v(a.min._subtract(h).add(o),a.max._subtract(h).subtract(o));if(!l.contains(r)){const d=new u((Math.max(l.max.x,r.x)-l.max.x)/(a.max.x-l.max.x)-(Math.min(l.min.x,r.x)-l.min.x)/(a.min.x-l.min.x),(Math.max(l.max.y,r.y)-l.max.y)/(a.max.y-l.max.y)-(Math.min(l.min.y,r.y)-l.min.y)/(a.min.y-l.min.y)).multiplyBy(s);i.panBy(d,{animate:!1}),this._draggable._newPos._add(d),this._draggable._startPos._add(d),M(e._icon,this._draggable._newPos),this._onDrag(t),this._panRequest=requestAnimationFrame(this._adjustPan.bind(this,t))}}_onDragStart(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup?.(),this._marker.fire("movestart").fire("dragstart")}_onPreDrag(t){this._marker.options.autoPan&&(cancelAnimationFrame(this._panRequest),this._panRequest=requestAnimationFrame(this._adjustPan.bind(this,t)))}_onDrag(t){const e=this._marker,i=e._shadow,s=et(e._icon),o=e._map.layerPointToLatLng(s);i&&M(i,s),e._latlng=o,t.latlng=o,t.oldLatLng=this._oldLatLng,e.fire("move",t).fire("drag",t)}_onDragEnd(t){cancelAnimationFrame(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",t)}}const De=class De extends O{initialize(t,e){L(this,e),this._latlng=new p(t)}onAdd(t){this._zoomAnimated=this._zoomAnimated&&t.options.markerZoomAnimation,this._zoomAnimated&&t.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()}onRemove(t){this.dragging?.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&t.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()}getEvents(){return{zoom:this.update,viewreset:this.update}}getLatLng(){return this._latlng}setLatLng(t){const e=this._latlng;return this._latlng=new p(t),this.update(),this.fire("move",{oldLatLng:e,latlng:this._latlng})}setZIndexOffset(t){return this.options.zIndexOffset=t,this.update()}getIcon(){return this.options.icon}setIcon(t){return this.options.icon=t,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this}getElement(){return this._icon}update(){if(this._icon&&this._map){const t=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(t)}return this}_initIcon(){const t=this.options,e=`leaflet-zoom-${this._zoomAnimated?"animated":"hide"}`,i=t.icon.createIcon(this._icon);let s=!1;i!==this._icon&&(this._icon&&this._removeIcon(),s=!0,t.title&&(i.title=t.title),i.tagName==="IMG"&&(i.alt=t.alt??"")),i.classList.add(e),t.keyboard&&(i.tabIndex="0",i.setAttribute("role","button")),this._icon=i,t.riseOnHover&&this.on({pointerover:this._bringToFront,pointerout:this._resetZIndex}),this.options.autoPanOnFocus&&g(i,"focus",this._panOnFocus,this);const o=t.icon.createShadow(this._shadow);let r=!1;o!==this._shadow&&(this._removeShadow(),r=!0),o&&(o.classList.add(e),o.alt=""),this._shadow=o,t.opacity<1&&this._updateOpacity(),s&&this.getPane().appendChild(this._icon),this._initInteraction(),o&&r&&this.getPane(t.shadowPane).appendChild(this._shadow)}_removeIcon(){this.options.riseOnHover&&this.off({pointerover:this._bringToFront,pointerout:this._resetZIndex}),this.options.autoPanOnFocus&&P(this._icon,"focus",this._panOnFocus,this),this._icon.remove(),this.removeInteractiveTarget(this._icon),this._icon=null}_removeShadow(){this._shadow?.remove(),this._shadow=null}_setPos(t){this._icon&&M(this._icon,t),this._shadow&&M(this._shadow,t),this._zIndex=t.y+this.options.zIndexOffset,this._resetZIndex()}_updateZIndex(t){this._icon&&(this._icon.style.zIndex=this._zIndex+t)}_animateZoom(t){const e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center).round();this._setPos(e)}_initInteraction(){if(this.options.interactive&&(this._icon.classList.add("leaflet-interactive"),this.addInteractiveTarget(this._icon),Ci)){let t=this.options.draggable;this.dragging&&(t=this.dragging.enabled(),this.dragging.disable()),this.dragging=new Ci(this),t&&this.dragging.enable()}}setOpacity(t){return this.options.opacity=t,this._map&&this._updateOpacity(),this}_updateOpacity(){const t=this.options.opacity;this._icon&&(this._icon.style.opacity=t),this._shadow&&(this._shadow.style.opacity=t)}_bringToFront(){this._updateZIndex(this.options.riseOffset)}_resetZIndex(){this._updateZIndex(0)}_panOnFocus(){const t=this._map;if(!t)return;const e=this.options.icon.options,i=e.iconSize?new u(e.iconSize):new u(0,0),s=e.iconAnchor?new u(e.iconAnchor):new u(0,0);t.panInside(this._latlng,{paddingTopLeft:s,paddingBottomRight:i.subtract(s)})}_getPopupAnchor(){return this.options.icon.options.popupAnchor}_getTooltipAnchor(){return this.options.icon.options.tooltipAnchor}};De.setDefaultOptions({icon:new Rt,interactive:!0,keyboard:!0,title:"",alt:"Marker",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingPointerEvents:!1,autoPanOnFocus:!0,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10});let Pt=De;const Re=class Re extends O{beforeAdd(t){this._renderer=t.getRenderer(this)}onAdd(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)}onRemove(){this._renderer._removePath(this)}redraw(){return this._map&&this._renderer._updatePath(this),this}setStyle(t){return L(this,t),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&t&&Object.hasOwn(t,"weight")&&this._updateBounds()),this}bringToFront(){return this._renderer?._bringToFront(this),this}bringToBack(){return this._renderer?._bringToBack(this),this}getElement(){return this._path}_reset(){this._project(),this._update()}_clickTolerance(){return(this.options.stroke?this.options.weight/2:0)+(this._renderer.options.tolerance||0)}};Re.setDefaultOptions({stroke:!0,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:!0,bubblingPointerEvents:!0});let j=Re;const Ne=class Ne extends j{initialize(t,e){L(this,e),this._latlng=new p(t),this._radius=this.options.radius}setLatLng(t){const e=this._latlng;return this._latlng=new p(t),this.redraw(),this.fire("move",{oldLatLng:e,latlng:this._latlng})}getLatLng(){return this._latlng}setRadius(t){return this.options.radius=this._radius=t,this.redraw()}getRadius(){return this._radius}setStyle(t){const e=t?.radius??this._radius;return j.prototype.setStyle.call(this,t),this.setRadius(e),this}_project(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()}_updateBounds(){const t=this._radius,e=this._radiusY??t,i=this._clickTolerance(),s=[t+i,e+i];this._pxBounds=new v(this._point.subtract(s),this._point.add(s))}_update(){this._map&&this._updatePath()}_updatePath(){this._renderer._updateCircle(this)}_empty(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)}_containsPoint(t){return t.distanceTo(this._point)<=this._radius+this._clickTolerance()}};Ne.setDefaultOptions({fill:!0,radius:10});let Ct=Ne;class Ti extends Ct{initialize(t,e){if(L(this,e),this._latlng=new p(t),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius}setRadius(t){return this._mRadius=t,this.redraw()}getRadius(){return this._mRadius}getBounds(){const t=[this._radius,this._radiusY??this._radius];return new w(this._map.layerPointToLatLng(this._point.subtract(t)),this._map.layerPointToLatLng(this._point.add(t)))}setStyle=j.prototype.setStyle;_project(){const t=this._latlng.lng,e=this._latlng.lat,i=this._map,s=i.options.crs;if(s.distance===V.distance){const o=Math.PI/180,r=this._mRadius/V.R/o,a=i.project([e+r,t]),h=i.project([e-r,t]),l=a.add(h).divideBy(2),d=i.unproject(l).lat;let c=Math.acos((Math.cos(r*o)-Math.sin(e*o)*Math.sin(d*o))/(Math.cos(e*o)*Math.cos(d*o)))/o;(isNaN(c)||c===0)&&(c=r/Math.cos(Math.PI/180*e)),this._point=l.subtract(i.getPixelOrigin()),this._radius=isNaN(c)?0:l.x-i.project([d,t-c]).x,this._radiusY=l.y-a.y}else{const o=s.unproject(s.project(this._latlng).subtract([this._mRadius,0]));this._point=i.latLngToLayerPoint(this._latlng),this._radius=Math.abs(this._point.x-i.latLngToLayerPoint(o).x)}this._updateBounds()}}const Fe=class Fe extends j{initialize(t,e){L(this,e),this._setLatLngs(t)}getLatLngs(){return this._latlngs}setLatLngs(t){return this._setLatLngs(t),this.redraw()}isEmpty(){return!this._latlngs.length}closestLayerPoint(t){t=new u(t);let e=1/0,i=null,s,o;const r=bt;for(const a of this._parts)for(let h=1,l=a.length;h<l;h++){s=a[h-1],o=a[h];const d=r(t,s,o,!0);d<e&&(e=d,i=r(t,s,o))}return i&&(i.distance=Math.sqrt(e)),i}getCenter(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return Li(this._defaultShape(),this._map.options.crs)}getBounds(){return this._bounds}addLatLng(t,e){return e??=this._defaultShape(),t=new p(t),e.push(t),this._bounds.extend(t),this.redraw()}_setLatLngs(t){this._bounds=new w,this._latlngs=this._convertLatLngs(t)}_defaultShape(){return B(this._latlngs)?this._latlngs:this._latlngs[0]}_convertLatLngs(t){const e=[],i=B(t);for(let s=0,o=t.length;s<o;s++)i?(e[s]=new p(t[s]),this._bounds.extend(e[s])):e[s]=this._convertLatLngs(t[s]);return e}_project(){const t=new v;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,t),this._bounds.isValid()&&t.isValid()&&(this._rawPxBounds=t,this._updateBounds())}_updateBounds(){const t=this._clickTolerance(),e=new u(t,t);this._rawPxBounds&&(this._pxBounds=new v([this._rawPxBounds.min.subtract(e),this._rawPxBounds.max.add(e)]))}_projectLatlngs(t,e,i){if(t[0]instanceof p){const o=t.map(r=>this._map.latLngToLayerPoint(r));o.forEach(r=>i.extend(r)),e.push(o)}else t.forEach(o=>this._projectLatlngs(o,e,i))}_clipPoints(){const t=this._renderer._bounds;if(this._parts=[],!this._pxBounds||!this._pxBounds.intersects(t))return;if(this.options.noClip){this._parts=this._rings;return}const e=this._parts;let i,s,o,r,a,h,l;for(i=0,o=0,r=this._rings.length;i<r;i++)for(l=this._rings[i],s=0,a=l.length;s<a-1;s++)h=bi(l[s],l[s+1],t,s,!0),h&&(e[o]??=[],e[o].push(h[0]),(h[1]!==l[s+1]||s===a-2)&&(e[o].push(h[1]),o++))}_simplifyPoints(){const t=this._parts,e=this.options.smoothFactor;for(let i=0,s=t.length;i<s;i++)t[i]=vi(t[i],e)}_update(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())}_updatePath(){this._renderer._updatePoly(this)}_containsPoint(t,e){let i,s,o,r,a,h;const l=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(i=0,r=this._parts.length;i<r;i++)for(h=this._parts[i],s=0,a=h.length,o=a-1;s<a;o=s++)if(!(!e&&s===0)&&xi(t,h[o],h[s])<=l)return!0;return!1}};Fe.setDefaultOptions({smoothFactor:1,noClip:!1});let U=Fe;const He=class He extends U{isEmpty(){return!this._latlngs.length||!this._latlngs[0].length}getCenter(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return yi(this._defaultShape(),this._map.options.crs)}_convertLatLngs(t){const e=U.prototype._convertLatLngs.call(this,t),i=e.length;return i>=2&&e[0]instanceof p&&e[0].equals(e[i-1])&&e.pop(),e}_setLatLngs(t){U.prototype._setLatLngs.call(this,t),B(this._latlngs)&&(this._latlngs=[this._latlngs])}_defaultShape(){return B(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]}_clipPoints(){let t=this._renderer._bounds;const e=this.options.weight,i=new u(e,e);if(t=new v(t.min.subtract(i),t.max.add(i)),this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(t))){if(this.options.noClip){this._parts=this._rings;return}for(const s of this._rings){const o=gi(s,t,!0);o.length&&this._parts.push(o)}}}_updatePath(){this._renderer._updatePoly(this,!0)}_containsPoint(t){let e=!1,i,s,o,r,a,h,l,d;if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(r=0,l=this._parts.length;r<l;r++)for(i=this._parts[r],a=0,d=i.length,h=d-1;a<d;h=a++)s=i[a],o=i[h],s.y>t.y!=o.y>t.y&&t.x<(o.x-s.x)*(t.y-s.y)/(o.y-s.y)+s.x&&(e=!e);return e||U.prototype._containsPoint.call(this,t,!0)}};He.setDefaultOptions({fill:!0});let rt=He;class X extends Y{initialize(t,e){L(this,e),this._layers={},t&&this.addData(t)}addData(t){const e=Array.isArray(t)?t:t.features;if(e){for(const o of e)(o.geometries||o.geometry||o.features||o.coordinates)&&this.addData(o);return this}const i=this.options;if(i.filter&&!i.filter(t))return this;const s=Nt(t,i);return s?(s.feature=jt(t),s.defaultOptions=s.options,this.resetStyle(s),i.onEachFeature&&i.onEachFeature(t,s),this.addLayer(s)):this}resetStyle(t){return t===void 0?this.eachLayer(this.resetStyle,this):(t.options=Object.create(t.defaultOptions),this._setLayerStyle(t,this.options.style),this)}setStyle(t){return this.eachLayer(e=>this._setLayerStyle(e,t))}_setLayerStyle(t,e){t.setStyle&&(typeof e=="function"&&(e=e(t.feature)),t.setStyle(e))}}function Nt(n,t){const e=n.type==="Feature"?n.geometry:n,i=e?.coordinates,s=[],o=t?.pointToLayer,r=t?.coordsToLatLng??we;let a,h;if(!i&&!e)return null;switch(e.type){case"Point":return a=r(i),ki(o,n,a,t);case"MultiPoint":for(const l of i)a=r(l),s.push(ki(o,n,a,t));return new Y(s);case"LineString":case"MultiLineString":return h=Ft(i,e.type==="LineString"?0:1,r),new U(h,t);case"Polygon":case"MultiPolygon":return h=Ft(i,e.type==="Polygon"?1:2,r),new rt(h,t);case"GeometryCollection":for(const l of e.geometries){const d=Nt({geometry:l,type:"Feature",properties:n.properties},t);d&&s.push(d)}return new Y(s);case"FeatureCollection":for(const l of e.features){const d=Nt(l,t);d&&s.push(d)}return new Y(s);default:throw new Error("Invalid GeoJSON object.")}}function ki(n,t,e,i){return n?n(t,e):new Pt(e,i?.markersInheritOptions&&i)}function we(n){return new p(n[1],n[0],n[2])}function Ft(n,t,e){return n.map(i=>t?Ft(i,t-1,e):(e||we)(i))}function be(n,t){return n=new p(n),n.alt!==void 0?[N(n.lng,t),N(n.lat,t),N(n.alt,t)]:[N(n.lng,t),N(n.lat,t)]}function Ht(n,t,e,i){const s=n.map(o=>t?Ht(o,B(o)?0:t-1,e,i):be(o,i));return!t&&e&&s.length>0&&s.push(s[0].slice()),s}function ct(n,t){return n.feature?{...n.feature,geometry:t}:jt(t)}function jt(n){return n.type==="Feature"||n.type==="FeatureCollection"?n:{type:"Feature",properties:{},geometry:n}}const Le={toGeoJSON(n){return ct(this,{type:"Point",coordinates:be(this.getLatLng(),n)})}};Pt.include(Le),Ti.include(Le),Ct.include(Le),U.include({toGeoJSON(n){const t=!B(this._latlngs),e=Ht(this._latlngs,t?1:0,!1,n);return ct(this,{type:`${t?"Multi":""}LineString`,coordinates:e})}}),rt.include({toGeoJSON(n){const t=!B(this._latlngs),e=t&&!B(this._latlngs[0]);let i=Ht(this._latlngs,e?2:t?1:0,!0,n);return t||(i=[i]),ct(this,{type:`${e?"Multi":""}Polygon`,coordinates:i})}}),Lt.include({toMultiPoint(n){const t=[];return this.eachLayer(e=>{t.push(e.toGeoJSON(n).geometry.coordinates)}),ct(this,{type:"MultiPoint",coordinates:t})},toGeoJSON(n){const t=this.feature?.geometry?.type;if(t==="MultiPoint")return this.toMultiPoint(n);const e=t==="GeometryCollection",i=[];return this.eachLayer(s=>{if(s.toGeoJSON){const o=s.toGeoJSON(n);if(e)i.push(o.geometry);else{const r=jt(o);r.type==="FeatureCollection"?i.push.apply(i,r.features):i.push(r)}}}),e?ct(this,{geometries:i,type:"GeometryCollection"}):{type:"FeatureCollection",features:i}}});const je=class je extends O{initialize(t){L(this,t)}onAdd(){this._container||(this._initContainer(),this._container.classList.add("leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._resizeContainer(),this._onMoveEnd()}onRemove(){this._destroyContainer()}getEvents(){const t={viewreset:this._reset,zoom:this._onZoom,moveend:this._onMoveEnd,zoomend:this._onZoomEnd};return this._zoomAnimated&&(t.zoomanim=this._onAnimZoom),this.options.continuous&&(t.move=this._onMoveEnd),t}_onAnimZoom(t){this._updateTransform(t.center,t.zoom)}_onZoom(){this._updateTransform(this._map.getCenter(),this._map.getZoom())}_updateTransform(t,e){const i=this._map.getZoomScale(e,this._zoom),s=this._map.getSize().multiplyBy(.5+this.options.padding),o=this._map.project(this._center,e),r=s.multiplyBy(-i).add(o).subtract(this._map._getNewPixelOrigin(t,e));tt(this._container,r,i)}_onMoveEnd(t){const e=this.options.padding,i=this._map.getSize(),s=this._map.containerPointToLayerPoint(i.multiplyBy(-e)).round();this._bounds=new v(s,s.add(i.multiplyBy(1+e*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom(),this._updateTransform(this._center,this._zoom),this._onSettled(t),this._resizeContainer()}_reset(){this._onSettled(),this._updateTransform(this._center,this._zoom),this._onViewReset()}_initContainer(){this._container=b("div")}_destroyContainer(){P(this._container),this._container.remove(),delete this._container}_resizeContainer(){const t=this.options.padding,e=this._map.getSize().multiplyBy(1+t*2).round();return this._container.style.width=`${e.x}px`,this._container.style.height=`${e.y}px`,e}_onZoomEnd(){}_onViewReset(){}_onSettled(){}};je.setDefaultOptions({padding:.1,continuous:!1});let Gt=je;const Ge=class Ge extends O{initialize(t,e,i){this._url=t,this._bounds=new w(e),L(this,i)}onAdd(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(this._image.classList.add("leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()}onRemove(){this._image.remove(),this.options.interactive&&this.removeInteractiveTarget(this._image)}setOpacity(t){return this.options.opacity=t,this._image&&this._updateOpacity(),this}setStyle(t){return t.opacity&&this.setOpacity(t.opacity),this}bringToFront(){return this._map&&yt(this._image),this}bringToBack(){return this._map&&vt(this._image),this}setUrl(t){return this._url=t,this._image&&(this._image.src=t),this}setBounds(t){return this._bounds=new w(t),this._map&&this._reset(),this}getEvents(){const t={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t}setZIndex(t){return this.options.zIndex=t,this._updateZIndex(),this}getBounds(){return this._bounds}getElement(){return this._image}_initImage(){const t=this._url.tagName==="IMG",e=this._image=t?this._url:b("img");if(e.classList.add("leaflet-image-layer"),this._zoomAnimated&&e.classList.add("leaflet-zoom-animated"),this.options.className&&e.classList.add(...F(this.options.className)),e.onselectstart=Z,e.onpointermove=Z,e.onload=this.fire.bind(this,"load"),e.onerror=this._overlayOnError.bind(this),(this.options.crossOrigin||this.options.crossOrigin==="")&&(e.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),e.decoding=this.options.decoding,this.options.zIndex&&this._updateZIndex(),t){this._url=e.src;return}e.src=this._url,e.alt=this.options.alt}_animateZoom(t){const e=this._map.getZoomScale(t.zoom),i=this._map._latLngBoundsToNewLayerBounds(this._bounds,t.zoom,t.center).min;tt(this._image,i,e)}_reset(){const t=this._image,e=new v(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),i=e.getSize();M(t,e.min),t.style.width=`${i.x}px`,t.style.height=`${i.y}px`}_updateOpacity(){this._image.style.opacity=this.options.opacity}_updateZIndex(){this._image&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._image.style.zIndex=this.options.zIndex)}_overlayOnError(){this.fire("error");const t=this.options.errorOverlayUrl;t&&this._url!==t&&(this._url=t,this._image.src=t)}getCenter(){return this._bounds.getCenter()}};Ge.setDefaultOptions({opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:"",decoding:"auto"});let Tt=Ge;const We=class We extends Tt{_initImage(){const t=this._url.tagName==="VIDEO",e=this._image=t?this._url:b("video");if(e.classList.add("leaflet-image-layer"),this._zoomAnimated&&e.classList.add("leaflet-zoom-animated"),this.options.className&&e.classList.add(...F(this.options.className)),g(e,"pointerdown",i=>{e.controls&&K(i)}),e.onloadeddata=this.fire.bind(this,"load"),t){const i=e.getElementsByTagName("source"),s=i.map(o=>o.src);this._url=i.length>0?s:[e.src];return}Array.isArray(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.hasOwn(e.style,"objectFit")&&(e.style.objectFit="fill"),e.autoplay=!!this.options.autoplay,e.controls=!!this.options.controls,e.loop=!!this.options.loop,e.muted=!!this.options.muted,e.playsInline=!!this.options.playsInline;for(const i of this._url){const s=b("source");s.src=i,e.appendChild(s)}}};We.setDefaultOptions({autoplay:!0,controls:!1,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0});let Pe=We;class gn extends Tt{_initImage(){const t=this._image=this._url;t.classList.add("leaflet-image-layer"),this._zoomAnimated&&t.classList.add("leaflet-zoom-animated"),this.options.className&&t.classList.add(...F(this.options.className)),t.onselectstart=Z,t.onpointermove=Z}}const $e=class $e extends O{initialize(t,e){t instanceof p||Array.isArray(t)?(this._latlng=new p(t),L(this,e)):(L(this,t),this._source=e),this.options.content&&(this._content=this.options.content)}openOn(t){return t=arguments.length?t:this._source._map,t.hasLayer(this)||t.addLayer(this),this}close(){return this._map?.removeLayer(this),this}toggle(t){return this._map?this.close():(arguments.length?this._source=t:t=this._source,this._prepareOpen(),this.openOn(t._map)),this}onAdd(t){this._zoomAnimated=t._zoomAnimated,this._container||this._initLayout(),t._fadeAnimated&&(this._container.style.opacity=0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),t._fadeAnimated&&(this._container.style.opacity=1),this.bringToFront(),this.options.interactive&&(this._container.classList.add("leaflet-interactive"),this.addInteractiveTarget(this._container))}onRemove(t){t._fadeAnimated?(this._container.style.opacity=0,this._removeTimeout=setTimeout(()=>this._container.remove(),200)):this._container.remove(),this.options.interactive&&(this._container.classList.remove("leaflet-interactive"),this.removeInteractiveTarget(this._container))}getLatLng(){return this._latlng}setLatLng(t){return this._latlng=new p(t),this._map&&(this._updatePosition(),this._adjustPan()),this}getContent(){return this._content}setContent(t){return this._content=t,this.update(),this}getElement(){return this._container}update(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())}getEvents(){const t={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t}isOpen(){return!!this._map&&this._map.hasLayer(this)}bringToFront(){return this._map&&yt(this._container),this}bringToBack(){return this._map&&vt(this._container),this}_prepareOpen(t){let e=this._source;if(!e._map)return!1;if(e instanceof Y){e=null;for(const i of Object.values(this._source._layers))if(i._map){e=i;break}if(!e)return!1;this._source=e}if(!t)if(e.getCenter)t=e.getCenter();else if(e.getLatLng)t=e.getLatLng();else if(e.getBounds)t=e.getBounds().getCenter();else throw new Error("Unable to get source layer LatLng.");return this.setLatLng(t),this._map&&this.update(),!0}_updateContent(){if(!this._content)return;const t=this._contentNode,e=typeof this._content=="function"?this._content(this._source??this):this._content;if(typeof e=="string")t.innerHTML=e;else{for(;t.hasChildNodes();)t.removeChild(t.firstChild);t.appendChild(e)}this.fire("contentupdate")}_updatePosition(){if(!this._map)return;const t=this._map.latLngToLayerPoint(this._latlng),e=this._getAnchor();let i=new u(this.options.offset);this._zoomAnimated?M(this._container,t.add(e)):i=i.add(t).add(e);const s=this._containerBottom=-i.y,o=this._containerLeft=-Math.round(this._containerWidth/2)+i.x;this._container.style.bottom=`${s}px`,this._container.style.left=`${o}px`}_getAnchor(){return[0,0]}};$e.setDefaultOptions({interactive:!1,offset:[0,0],className:"",pane:void 0,content:""});let A=$e;y.include({_initOverlay(n,t,e,i){let s=t;return s instanceof n||(s=new n(i).setContent(t)),e&&s.setLatLng(e),s}}),O.include({_initOverlay(n,t,e,i){let s=e;return s instanceof n?(L(s,i),s._source=this):(s=t&&!i?t:new n(i,this),s.setContent(e)),s}});const Ue=class Ue extends A{openOn(t){return t=arguments.length?t:this._source._map,!t.hasLayer(this)&&t._popup&&t._popup.options.autoClose&&t.removeLayer(t._popup),t._popup=this,A.prototype.openOn.call(this,t)}onAdd(t){A.prototype.onAdd.call(this,t),t.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof j||this._source.on("preclick",K))}onRemove(t){A.prototype.onRemove.call(this,t),t.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof j||this._source.off("preclick",K))}getEvents(){const t=A.prototype.getEvents.call(this);return(this.options.closeOnClick??this._map.options.closePopupOnClick)&&(t.preclick=this.close),this.options.keepInView&&(t.moveend=this._adjustPan),t}_initLayout(){const t="leaflet-popup",e=this._container=b("div",`${t} ${this.options.className||""} leaflet-zoom-animated`),i=this._wrapper=b("div",`${t}-content-wrapper`,e);if(this._contentNode=b("div",`${t}-content`,i),xt(e),ue(this._contentNode),g(e,"contextmenu",K),this._tipContainer=b("div",`${t}-tip-container`,e),this._tip=b("div",`${t}-tip`,this._tipContainer),this.options.closeButton){const s=this._closeButton=b("a",`${t}-close-button`,e);s.setAttribute("role","button"),s.setAttribute("aria-label",this.options.closeButtonLabel),s.href="#close",s.innerHTML='<span aria-hidden="true">×</span>',g(s,"click",o=>{S(o),this.close()})}this.options.trackResize&&(this._resizeObserver=new ResizeObserver(s=>{this._map&&(this._containerWidth=s[0]?.contentRect?.width,this._containerHeight=s[0]?.contentRect?.height,this._updateLayout(),this._updatePosition(),this._adjustPan())}),this._resizeObserver.observe(this._contentNode))}_updateLayout(){const t=this._contentNode,e=t.style;e.maxWidth=`${this.options.maxWidth}px`,e.minWidth=`${this.options.minWidth}px`;const i=this._containerHeight??t.offsetHeight,s=this.options.maxHeight,o="leaflet-popup-scrolled";s&&i>s?(e.height=`${s}px`,t.classList.add(o)):t.classList.remove(o),this._containerWidth=this._container.offsetWidth,this._containerHeight=this._container.offsetHeight}_animateZoom(t){const e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center),i=this._getAnchor();M(this._container,e.add(i))}_adjustPan(){if(!this.options.autoPan)return;if(this._map._panAnim?.stop(),this._autopanning){this._autopanning=!1;return}const t=this._map,e=parseInt(getComputedStyle(this._container).marginBottom,10)||0,i=this._containerHeight+e,s=this._containerWidth,o=new u(this._containerLeft,-i-this._containerBottom);o._add(et(this._container));const r=t.layerPointToContainerPoint(o),a=new u(this.options.autoPanPadding),h=new u(this.options.autoPanPaddingTopLeft??a),l=new u(this.options.autoPanPaddingBottomRight??a),d=t.getSize();let c=0,f=0;r.x+s+l.x>d.x&&(c=r.x+s-d.x+l.x),r.x-c-h.x<0&&(c=r.x-h.x),r.y+i+l.y>d.y&&(f=r.y+i-d.y+l.y),r.y-f-h.y<0&&(f=r.y-h.y),(c||f)&&(this.options.keepInView&&(this._autopanning=!0),t.fire("autopanstart").panBy([c,f]))}_getAnchor(){return new u(this._source?._getPopupAnchor?this._source._getPopupAnchor():[0,0])}};Ue.setDefaultOptions({pane:"popupPane",offset:[0,7],maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,closeButtonLabel:"Close popup",autoClose:!0,closeOnEscapeKey:!0,className:"",trackResize:!0});let kt=Ue;y.mergeOptions({closePopupOnClick:!0}),y.include({openPopup(n,t,e){return this._initOverlay(kt,n,t,e).openOn(this),this},closePopup(n){return n=arguments.length?n:this._popup,n?.close(),this}}),O.include({bindPopup(n,t){return this._popup=this._initOverlay(kt,this._popup,n,t),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup(n){return this._popup&&(this instanceof Y||(this._popup._source=this),this._popup._prepareOpen(n||this._latlng)&&this._popup.openOn(this._map)),this},closePopup(){return this._popup?.close(),this},togglePopup(){return this._popup?.toggle(this),this},isPopupOpen(){return this._popup?.isOpen()??!1},setPopupContent(n){return this._popup?.setContent(n),this},getPopup(){return this._popup},_openPopup(n){if(!this._popup||!this._map)return;nt(n);const t=n.propagatedFrom??n.target;if(this._popup._source===t&&!(t instanceof j)){this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(n.latlng);return}this._popup._source=t,this.openPopup(n.latlng)},_movePopup(n){this._popup.setLatLng(n.latlng)},_onKeyPress(n){n.originalEvent.code==="Enter"&&this._openPopup(n)}});const qe=class qe extends A{onAdd(t){A.prototype.onAdd.call(this,t),this.setOpacity(this.options.opacity),t.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))}onRemove(t){A.prototype.onRemove.call(this,t),t.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))}getEvents(){const t=A.prototype.getEvents.call(this);return this.options.permanent||(t.preclick=this.close),t}_initLayout(){const t="leaflet-tooltip",e=`${t} ${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-${x(this)}`)}_updateLayout(){}_adjustPan(){}_setPosition(t){let e,i,s=this.options.direction;const o=this._map,r=this._container,a=o.latLngToContainerPoint(o.getCenter()),h=o.layerPointToContainerPoint(t),l=r.offsetWidth,d=r.offsetHeight,c=new u(this.options.offset),f=this._getAnchor();s==="top"?(e=l/2,i=d):s==="bottom"?(e=l/2,i=0):s==="center"?(e=l/2,i=d/2):s==="right"?(e=0,i=d/2):s==="left"?(e=l,i=d/2):h.x<a.x?(s="right",e=0,i=d/2):(s="left",e=l+(c.x+f.x)*2,i=d/2),t=t.subtract(new u(e,i,!0)).add(c).add(f),r.classList.remove("leaflet-tooltip-right","leaflet-tooltip-left","leaflet-tooltip-top","leaflet-tooltip-bottom"),r.classList.add(`leaflet-tooltip-${s}`),M(r,t)}_updatePosition(){const t=this._map.latLngToLayerPoint(this._latlng);this._setPosition(t)}setOpacity(t){this.options.opacity=t,this._container&&(this._container.style.opacity=t)}_animateZoom(t){const e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center);this._setPosition(e)}_getAnchor(){return new u(this._source?._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}};qe.setDefaultOptions({pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9});let Mt=qe;y.include({openTooltip(n,t,e){return this._initOverlay(Mt,n,t,e).openOn(this),this},closeTooltip(n){return n.close(),this}}),O.include({bindTooltip(n,t){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(Mt,this._tooltip,n,t),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions(n){if(!n&&this._tooltipHandlersAdded)return;const t=n?"off":"on",e={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?e.add=this._openTooltip:(e.pointerover=this._openTooltip,e.pointerout=this.closeTooltip,e.click=this._openTooltip,this._map?this._addFocusListeners(n):e.add=()=>this._addFocusListeners(n)),this._tooltip.options.sticky&&(e.pointermove=this._moveTooltip),this[t](e),this._tooltipHandlersAdded=!n},openTooltip(n){return this._tooltip&&(this instanceof Y||(this._tooltip._source=this),this._tooltip._prepareOpen(n)&&(this._tooltip.openOn(this._map),this.getElement?this._setAriaDescribedByOnLayer(this):this.eachLayer&&this.eachLayer(this._setAriaDescribedByOnLayer,this))),this},closeTooltip(){if(this._tooltip)return this._tooltip.close()},toggleTooltip(){return this._tooltip?.toggle(this),this},isTooltipOpen(){return this._tooltip.isOpen()},setTooltipContent(n){return this._tooltip?.setContent(n),this},getTooltip(){return this._tooltip},_addFocusListeners(n){this.getElement?this._addFocusListenersOnLayer(this,n):this.eachLayer&&this.eachLayer(t=>this._addFocusListenersOnLayer(t,n),this)},_addFocusListenersOnLayer(n,t){const e=typeof n.getElement=="function"&&n.getElement();if(e){const i=t?"off":"on";t||(e._leaflet_focus_handler&&P(e,"focus",e._leaflet_focus_handler,this),e._leaflet_focus_handler=()=>{this._tooltip&&(this._tooltip._source=n,this.openTooltip())}),e._leaflet_focus_handler&&pe[i](e,"focus",e._leaflet_focus_handler,this),pe[i](e,"blur",this.closeTooltip,this),t&&delete e._leaflet_focus_handler}},_setAriaDescribedByOnLayer(n){(typeof n.getElement=="function"&&n.getElement())?.setAttribute?.("aria-describedby",this._tooltip._container.id)},_openTooltip(n){if(!(!this._tooltip||!this._map)){if(this._map.dragging?.moving()){n.type==="add"&&!this._moveEndOpensTooltip&&(this._moveEndOpensTooltip=!0,this._map.once("moveend",()=>{this._moveEndOpensTooltip=!1,this._openTooltip(n)}));return}this._tooltip._source=n.propagatedFrom??n.target,this.openTooltip(this._tooltip.options.sticky?n.latlng:void 0)}},_moveTooltip(n){let t=n.latlng,e,i;this._tooltip.options.sticky&&n.originalEvent&&(e=this._map.pointerEventToContainerPoint(n.originalEvent),i=this._map.containerPointToLayerPoint(e),t=this._map.layerPointToLatLng(i)),this._tooltip.setLatLng(t)}});const Ve=class Ve extends ot{createIcon(t){const e=t&&t.tagName==="DIV"?t:document.createElement("div"),i=this.options;if(i.html instanceof Element?(e.replaceChildren(),e.appendChild(i.html)):e.innerHTML=i.html!==!1?i.html:"",i.bgPos){const s=new u(i.bgPos);e.style.backgroundPosition=`${-s.x}px ${-s.y}px`}return this._setIconStyles(e,"icon"),e}createShadow(){return null}};Ve.setDefaultOptions({iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"});let Ce=Ve;ot.Default=Rt;const Ke=class Ke extends O{initialize(t){L(this,t)}onAdd(){this._initContainer(),this._levels={},this._tiles={},this._resetView()}beforeAdd(t){t._addZoomLimit(this)}onRemove(t){this._removeAllTiles(),this._container.remove(),t._removeZoomLimit(this),this._container=null,this._tileZoom=void 0,clearTimeout(this._pruneTimeout)}bringToFront(){return this._map&&(yt(this._container),this._setAutoZIndex(Math.max)),this}bringToBack(){return this._map&&(vt(this._container),this._setAutoZIndex(Math.min)),this}getContainer(){return this._container}setOpacity(t){return this.options.opacity=t,this._updateOpacity(),this}setZIndex(t){return this.options.zIndex=t,this._updateZIndex(),this}isLoading(){return this._loading}redraw(){if(this._map){this._removeAllTiles();const t=this._clampZoom(this._map.getZoom());t!==this._tileZoom&&(this._tileZoom=t,this._updateLevels()),this._update()}return this}getEvents(){const t={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=Qe(this._onMoveEnd,this.options.updateInterval,this)),t.move=this._onMove),this._zoomAnimated&&(t.zoomanim=this._animateZoom),t}createTile(){return document.createElement("div")}getTileSize(){const t=this.options.tileSize;return t instanceof u?t:new u(t,t)}_updateZIndex(){this._container&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._container.style.zIndex=this.options.zIndex)}_setAutoZIndex(t){const e=this.getPane().children;let i=-t(-1/0,1/0);for(const s of e){const o=s.style.zIndex;s!==this._container&&o&&(i=t(i,+o))}isFinite(i)&&(this.options.zIndex=i+t(-1,1),this._updateZIndex())}_updateOpacity(){if(!this._map)return;this._container.style.opacity=this.options.opacity;const t=+new Date;let e=!1,i=!1;for(const s of Object.values(this._tiles??{})){if(!s.current||!s.loaded)continue;const o=Math.min(1,(t-s.loaded)/200);s.el.style.opacity=o,o<1?e=!0:(s.active?i=!0:this._onOpaqueTile(s),s.active=!0)}i&&!this._noPrune&&this._pruneTiles(),e&&(cancelAnimationFrame(this._fadeFrame),this._fadeFrame=requestAnimationFrame(this._updateOpacity.bind(this)))}_onOpaqueTile(){}_initContainer(){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(){const t=this._tileZoom,e=this.options.maxZoom;if(t===void 0)return;for(let o of Object.keys(this._levels))o=Number(o),this._levels[o].el.children.length||o===t?(this._levels[o].el.style.zIndex=e-Math.abs(t-o),this._onUpdateLevel(o)):(this._levels[o].el.remove(),this._removeTilesAtZoom(o),this._onRemoveLevel(o),delete this._levels[o]);let i=this._levels[t];const s=this._map;return i||(i=this._levels[t]={},i.el=b("div","leaflet-tile-container leaflet-zoom-animated",this._container),i.el.style.zIndex=e,i.origin=s.project(s.unproject(s.getPixelOrigin()),t).round(),i.zoom=t,this._setZoomTransform(i,s.getCenter(),s.getZoom()),Z(i.el.offsetWidth),this._onCreateLevel(i)),this._level=i,i}_onUpdateLevel(){}_onRemoveLevel(){}_onCreateLevel(){}_pruneTiles(){if(!this._map)return;const t=this._map.getZoom();if(t>this.options.maxZoom||t<this.options.minZoom){this._removeAllTiles();return}for(const e of Object.values(this._tiles))e.retain=e.current;for(const e of Object.values(this._tiles))if(e.current&&!e.active){const i=e.coords;this._retainParent(i.x,i.y,i.z,i.z-5)||this._retainChildren(i.x,i.y,i.z,i.z+2)}for(const[e,i]of Object.entries(this._tiles))i.retain||this._removeTile(e)}_removeTilesAtZoom(t){for(const[e,i]of Object.entries(this._tiles))i.coords.z===t&&this._removeTile(e)}_removeAllTiles(){for(const t of Object.keys(this._tiles))this._removeTile(t)}_invalidateAll(){for(const t of Object.keys(this._levels))this._levels[t].el.remove(),this._onRemoveLevel(Number(t)),delete this._levels[t];this._removeAllTiles(),this._tileZoom=void 0}_retainParent(t,e,i,s){const o=Math.floor(t/2),r=Math.floor(e/2),a=i-1,h=new u(+o,+r);h.z=+a;const l=this._tileCoordsToKey(h),d=this._tiles[l];return d?.active?(d.retain=!0,!0):(d?.loaded&&(d.retain=!0),a>s?this._retainParent(o,r,a,s):!1)}_retainChildren(t,e,i,s){for(let o=2*t;o<2*t+2;o++)for(let r=2*e;r<2*e+2;r++){const a=new u(o,r);a.z=i+1;const h=this._tileCoordsToKey(a),l=this._tiles[h];if(l?.active){l.retain=!0;continue}else l?.loaded&&(l.retain=!0);i+1<s&&this._retainChildren(o,r,i+1,s)}}_resetView(t){const e=t&&(t.pinch||t.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),e,e)}_animateZoom(t){this._setView(t.center,t.zoom,!0,t.noUpdate)}_clampZoom(t){const e=this.options;return e.minNativeZoom!==void 0&&t<e.minNativeZoom?e.minNativeZoom:e.maxNativeZoom!==void 0&&e.maxNativeZoom<t?e.maxNativeZoom:t}_setView(t,e,i,s){let o=Math.round(e);this.options.maxZoom!==void 0&&o>this.options.maxZoom||this.options.minZoom!==void 0&&o<this.options.minZoom?o=void 0:o=this._clampZoom(o);const r=this.options.updateWhenZooming&&o!==this._tileZoom;(!s||r)&&(this._tileZoom=o,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),o!==void 0&&this._update(t),i||this._pruneTiles(),this._noPrune=!!i),this._setZoomTransforms(t,e)}_setZoomTransforms(t,e){for(const i of Object.values(this._levels))this._setZoomTransform(i,t,e)}_setZoomTransform(t,e,i){const s=this._map.getZoomScale(i,t.zoom),o=t.origin.multiplyBy(s).subtract(this._map._getNewPixelOrigin(e,i)).round();tt(t.el,o,s)}_resetGrid(){const t=this._map,e=t.options.crs,i=this._tileSize=this.getTileSize(),s=this._tileZoom,o=this._map.getPixelWorldBounds(this._tileZoom);o&&(this._globalTileRange=this._pxBoundsToTileRange(o)),this._wrapX=e.wrapLng&&!this.options.noWrap&&[Math.floor(t.project([0,e.wrapLng[0]],s).x/i.x),Math.ceil(t.project([0,e.wrapLng[1]],s).x/i.y)],this._wrapY=e.wrapLat&&!this.options.noWrap&&[Math.floor(t.project([e.wrapLat[0],0],s).y/i.x),Math.ceil(t.project([e.wrapLat[1],0],s).y/i.y)]}_onMoveEnd(){!this._map||this._map._animatingZoom||this._update()}_getTiledPixelBounds(t){const e=this._map,i=e._animatingZoom?Math.max(e._animateToZoom,e.getZoom()):e.getZoom(),s=e.getZoomScale(i,this._tileZoom),o=e.project(t,this._tileZoom).floor(),r=e.getSize().divideBy(s*2);return new v(o.subtract(r),o.add(r))}_update(t){const e=this._map;if(!e)return;const i=this._clampZoom(e.getZoom());if(t===void 0&&(t=e.getCenter()),this._tileZoom===void 0)return;const s=this._getTiledPixelBounds(t),o=this._pxBoundsToTileRange(s),r=o.getCenter(),a=[],h=this.options.keepBuffer,l=new v(o.getBottomLeft().subtract([h,-h]),o.getTopRight().add([h,-h]));if(!(isFinite(o.min.x)&&isFinite(o.min.y)&&isFinite(o.max.x)&&isFinite(o.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(const d of Object.values(this._tiles)){const c=d.coords;(c.z!==this._tileZoom||!l.contains(new u(c.x,c.y)))&&(d.current=!1)}if(Math.abs(i-this._tileZoom)>1){this._setView(t,i);return}for(let d=o.min.y;d<=o.max.y;d++)for(let c=o.min.x;c<=o.max.x;c++){const f=new u(c,d);if(f.z=this._tileZoom,!this._isValidTile(f))continue;const m=this._tiles[this._tileCoordsToKey(f)];m?m.current=!0:a.push(f)}if(a.sort((d,c)=>d.distanceTo(r)-c.distanceTo(r)),a.length!==0){this._loading||(this._loading=!0,this.fire("loading"));const d=document.createDocumentFragment();for(const c of a)this._addTile(c,d);this._level.el.appendChild(d)}}_isValidTile(t){const e=this._map.options.crs;if(!e.infinite){const s=this._globalTileRange;if(!e.wrapLng&&(t.x<s.min.x||t.x>s.max.x)||!e.wrapLat&&(t.y<s.min.y||t.y>s.max.y))return!1}if(!this.options.bounds)return!0;const i=this._tileCoordsToBounds(t);return new w(this.options.bounds).overlaps(i)}_keyToBounds(t){return this._tileCoordsToBounds(this._keyToTileCoords(t))}_tileCoordsToNwSe(t){const e=this._map,i=this.getTileSize(),s=t.scaleBy(i),o=s.add(i),r=e.unproject(s,t.z),a=e.unproject(o,t.z);return[r,a]}_tileCoordsToBounds(t){const e=this._tileCoordsToNwSe(t);let i=new w(e[0],e[1]);return this.options.noWrap||(i=this._map.wrapLatLngBounds(i)),i}_tileCoordsToKey(t){return`${t.x}:${t.y}:${t.z}`}_keyToTileCoords(t){const e=t.split(":"),i=new u(+e[0],+e[1]);return i.z=+e[2],i}_removeTile(t){const e=this._tiles[t];e&&(e.el.remove(),delete this._tiles[t],this.fire("tileunload",{tile:e.el,coords:this._keyToTileCoords(t)}))}_initTile(t){t.classList.add("leaflet-tile");const e=this.getTileSize();t.style.width=`${e.x}px`,t.style.height=`${e.y}px`,t.onselectstart=Z,t.onpointermove=Z}_addTile(t,e){const i=this._getTilePos(t),s=this._tileCoordsToKey(t),o=this.createTile(this._wrapCoords(t),this._tileReady.bind(this,t));this._initTile(o),this.createTile.length<2&&requestAnimationFrame(this._tileReady.bind(this,t,null,o)),M(o,i),this._tiles[s]={el:o,coords:t,current:!0},e.appendChild(o),this.fire("tileloadstart",{tile:o,coords:t})}_tileReady(t,e,i){e&&this.fire("tileerror",{error:e,tile:i,coords:t});const s=this._tileCoordsToKey(t);i=this._tiles[s],i&&(i.loaded=+new Date,this._map._fadeAnimated?(i.el.style.opacity=0,cancelAnimationFrame(this._fadeFrame),this._fadeFrame=requestAnimationFrame(this._updateOpacity.bind(this))):(i.active=!0,this._pruneTiles()),e||(i.el.classList.add("leaflet-tile-loaded"),this.fire("tileload",{tile:i.el,coords:t})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),this._map._fadeAnimated?this._pruneTimeout=setTimeout(this._pruneTiles.bind(this),250):requestAnimationFrame(this._pruneTiles.bind(this))))}_getTilePos(t){return t.scaleBy(this.getTileSize()).subtract(this._level.origin)}_wrapCoords(t){const e=new u(this._wrapX?pt(t.x,this._wrapX):t.x,this._wrapY?pt(t.y,this._wrapY):t.y);return e.z=t.z,e}_pxBoundsToTileRange(t){const e=this.getTileSize();return new v(t.min.unscaleBy(e).floor(),t.max.unscaleBy(e).ceil().subtract([1,1]))}_noTilesToLoad(){return Object.values(this._tiles).every(t=>t.loaded)}};Ke.setDefaultOptions({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});let at=Ke;const Ye=class Ye extends at{initialize(t,e){if(this._url=t,e=L(this,e),e.attribution===null&&URL.canParse(t)){const i=new URL(t).hostname;["tile.openstreetmap.org","tile.osm.org"].some(o=>i.endsWith(o))&&(e.attribution='© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors')}e.detectRetina&&z.retina&&e.maxZoom>0?(e.tileSize=Math.floor(e.tileSize/2),e.zoomReverse?(e.zoomOffset--,e.minZoom=Math.min(e.maxZoom,e.minZoom+1)):(e.zoomOffset++,e.maxZoom=Math.max(e.minZoom,e.maxZoom-1)),e.minZoom=Math.max(0,e.minZoom)):e.zoomReverse?e.minZoom=Math.min(e.maxZoom,e.minZoom):e.maxZoom=Math.max(e.minZoom,e.maxZoom),typeof e.subdomains=="string"&&(e.subdomains=e.subdomains.split("")),this.on("tileunload",this._onTileRemove)}setUrl(t,e){return this._url===t&&e===void 0&&(e=!0),this._url=t,e||this.redraw(),this}createTile(t,e){const i=document.createElement("img");return g(i,"load",this._tileOnLoad.bind(this,e,i)),g(i,"error",this._tileOnError.bind(this,e,i)),(this.options.crossOrigin||this.options.crossOrigin==="")&&(i.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&(i.referrerPolicy=this.options.referrerPolicy),i.alt="",i.src=this.getTileUrl(t),i}getTileUrl(t){const e=Object.create(this.options);if(Object.assign(e,{r:z.retina?"@2x":"",s:this._getSubdomain(t),x:t.x,y:t.y,z:this._getZoomForUrl()}),this._map&&!this._map.options.crs.infinite){const i=this._globalTileRange.max.y-t.y;this.options.tms&&(e.y=i),e["-y"]=i}return ti(this._url,e)}_tileOnLoad(t,e){t(null,e)}_tileOnError(t,e,i){const s=this.options.errorTileUrl;s&&e.getAttribute("src")!==s&&(e.src=s),t(i,e)}_onTileRemove(t){t.tile.onload=null}_getZoomForUrl(){let t=this._tileZoom;const e=this.options.maxZoom,i=this.options.zoomReverse,s=this.options.zoomOffset;return i&&(t=e-t),t+s}_getSubdomain(t){const e=Math.abs(t.x+t.y)%this.options.subdomains.length;return this.options.subdomains[e]}_abortLoading(){let t,e;for(t of Object.keys(this._tiles))if(this._tiles[t].coords.z!==this._tileZoom&&(e=this._tiles[t].el,e.onload=Z,e.onerror=Z,!e.complete)){e.src=zt;const i=this._tiles[t].coords;e.remove(),delete this._tiles[t],this.fire("tileabort",{tile:e,coords:i})}}_removeTile(t){const e=this._tiles[t];if(e)return e.el.setAttribute("src",zt),at.prototype._removeTile.call(this,t)}_tileReady(t,e,i){if(!(!this._map||i&&i.getAttribute("src")===zt))return at.prototype._tileReady.call(this,t,e,i)}_clampZoom(t){return Math.round(at.prototype._clampZoom.call(this,t))}};Ye.setDefaultOptions({minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1});let ht=Ye;const Kt=class Kt extends ht{initialize(t,e){this._url=t;const i={...this.defaultWmsParams};for(const r of Object.keys(e))r in this.options||(i[r]=e[r]);e=L(this,e);const s=e.detectRetina&&z.retina?2:1,o=this.getTileSize();i.width=o.x*s,i.height=o.y*s,this.wmsParams=i}onAdd(t){this._crs=this.options.crs??t.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);const e=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[e]=this._crs.code,ht.prototype.onAdd.call(this,t)}getTileUrl(t){const e=this._tileCoordsToNwSe(t),i=this._crs,s=new v(i.project(e[0]),i.project(e[1])),o=s.min,r=s.max,a=(this._wmsVersion>=1.3&&this._crs===Pi?[o.y,o.x,r.y,r.x]:[o.x,o.y,r.x,r.y]).join(","),h=new URL(ht.prototype.getTileUrl.call(this,t));for(const[l,d]of Object.entries({...this.wmsParams,bbox:a}))h.searchParams.append(this.options.uppercase?l.toUpperCase():l,d);return h.toString()}setParams(t,e){return Object.assign(this.wmsParams,t),e||this.redraw(),this}};Kt.prototype.defaultWmsParams={service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},Kt.setDefaultOptions({crs:null,uppercase:!1});let Te=Kt;ht.WMS=Te;class I extends Gt{initialize(t){L(this,{...t,continuous:!1}),x(this),this._layers??={}}onAdd(t){super.onAdd(t),this.on("update",this._updatePaths,this)}onRemove(){super.onRemove(),this.off("update",this._updatePaths,this)}_onZoomEnd(){for(const t of Object.values(this._layers))t._project()}_updatePaths(){for(const t of Object.values(this._layers))t._update()}_onViewReset(){for(const t of Object.values(this._layers))t._reset()}_onSettled(){this._update()}_update(){}}const Xe=class Xe extends I{getEvents(){const t=I.prototype.getEvents.call(this);return t.viewprereset=this._onViewPreReset,t}_onViewPreReset(){this._postponeUpdatePaths=!0}onAdd(t){I.prototype.onAdd.call(this,t),this._draw()}onRemove(){I.prototype.onRemove.call(this),clearTimeout(this._pointerHoverThrottleTimeout)}_initContainer(){const t=this._container=document.createElement("canvas");g(t,"pointermove",this._onPointerMove,this),g(t,"click dblclick pointerdown pointerup contextmenu",this._onClick,this),g(t,"pointerout",this._handlePointerOut,this),t._leaflet_disable_events=!0,this._ctx=t.getContext("2d")}_destroyContainer(){cancelAnimationFrame(this._redrawRequest),this._redrawRequest=null,delete this._ctx,I.prototype._destroyContainer.call(this)}_resizeContainer(){const t=I.prototype._resizeContainer.call(this),e=this._ctxScale=window.devicePixelRatio;this._container.width=e*t.x,this._container.height=e*t.y}_updatePaths(){if(!this._postponeUpdatePaths){this._redrawBounds=null;for(const t of Object.values(this._layers))t._update();this._redraw()}}_update(){if(this._map._animatingZoom&&this._bounds)return;const t=this._bounds,e=this._ctxScale;this._ctx.setTransform(e,0,0,e,-t.min.x*e,-t.min.y*e),this.fire("update")}_reset(){I.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())}_initPath(t){this._updateDashArray(t),this._layers[x(t)]=t;const e=t._order={layer:t,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=e),this._drawLast=e,this._drawFirst??=this._drawLast}_addPath(t){this._requestRedraw(t)}_removePath(t){const e=t._order,i=e.next,s=e.prev;i?i.prev=s:this._drawLast=s,s?s.next=i:this._drawFirst=i,delete t._order,delete this._layers[x(t)],this._requestRedraw(t)}_updatePath(t){this._extendRedrawBounds(t),t._project(),t._update(),this._requestRedraw(t)}_updateStyle(t){this._updateDashArray(t),this._requestRedraw(t)}_updateDashArray(t){if(typeof t.options.dashArray=="string"){const e=t.options.dashArray.split(/[, ]+/);t.options._dashArray=e.map(i=>Number(i)).filter(i=>!isNaN(i))}else t.options._dashArray=t.options.dashArray}_requestRedraw(t){this._map&&(this._extendRedrawBounds(t),this._redrawRequest??=requestAnimationFrame(this._redraw.bind(this)))}_extendRedrawBounds(t){if(t._pxBounds){const e=(t.options.weight??0)+1;this._redrawBounds??=new v,this._redrawBounds.extend(t._pxBounds.min.subtract([e,e])),this._redrawBounds.extend(t._pxBounds.max.add([e,e]))}}_redraw(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null}_clear(){const t=this._redrawBounds;if(t){const e=t.getSize();this._ctx.clearRect(t.min.x,t.min.y,e.x,e.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(){let t;const e=this._redrawBounds;if(this._ctx.save(),e){const i=e.getSize();this._ctx.beginPath(),this._ctx.rect(e.min.x,e.min.y,i.x,i.y),this._ctx.clip()}this._drawing=!0;for(let i=this._drawFirst;i;i=i.next)t=i.layer,(!e||t._pxBounds&&t._pxBounds.intersects(e))&&t._updatePath();this._drawing=!1,this._ctx.restore()}_updatePoly(t,e){if(!this._drawing)return;const i=t._parts,s=this._ctx;i.length&&(s.beginPath(),i.forEach(o=>{o.forEach((r,a)=>{s[a?"lineTo":"moveTo"](r.x,r.y)}),e&&s.closePath()}),this._fillStroke(s,t))}_updateCircle(t){if(!this._drawing||t._empty())return;const e=t._point,i=this._ctx,s=Math.max(Math.round(t._radius),1),o=(Math.max(Math.round(t._radiusY),1)||s)/s;o!==1&&(i.save(),i.scale(1,o)),i.beginPath(),i.arc(e.x,e.y/o,s,0,Math.PI*2,!1),o!==1&&i.restore(),this._fillStroke(i,t)}_fillStroke(t,e){const i=e.options;i.fill&&(t.globalAlpha=i.fillOpacity,t.fillStyle=i.fillColor??i.color,t.fill(i.fillRule||"evenodd")),i.stroke&&i.weight!==0&&(t.setLineDash&&(t.lineDashOffset=Number(i.dashOffset??0),t.setLineDash(i._dashArray??[])),t.globalAlpha=i.opacity,t.lineWidth=i.weight,t.strokeStyle=i.color,t.lineCap=i.lineCap,t.lineJoin=i.lineJoin,t.stroke())}_onClick(t){const e=this._map.pointerEventToLayerPoint(t);let i,s;for(let o=this._drawFirst;o;o=o.next)i=o.layer,i.options.interactive&&i._containsPoint(e)&&(!(t.type==="click"||t.type==="preclick")||!this._map._draggableMoved(i))&&(s=i);this._fireEvent(s?[s]:!1,t)}_onPointerMove(t){if(!this._map||this._map.dragging.moving()||this._map._animatingZoom)return;const e=this._map.pointerEventToLayerPoint(t);this._handlePointerHover(t,e)}_handlePointerOut(t){const e=this._hoveredLayer;e&&(this._container.classList.remove("leaflet-interactive"),this._fireEvent([e],t,"pointerout"),this._hoveredLayer=null,this._pointerHoverThrottled=!1)}_handlePointerHover(t,e){if(this._pointerHoverThrottled)return;let i,s;for(let o=this._drawFirst;o;o=o.next)i=o.layer,i.options.interactive&&i._containsPoint(e)&&(s=i);s!==this._hoveredLayer&&(this._handlePointerOut(t),s&&(this._container.classList.add("leaflet-interactive"),this._fireEvent([s],t,"pointerover"),this._hoveredLayer=s)),this._fireEvent(this._hoveredLayer?[this._hoveredLayer]:!1,t),this._pointerHoverThrottled=!0,this._pointerHoverThrottleTimeout=setTimeout(()=>{this._pointerHoverThrottled=!1},32)}_fireEvent(t,e,i){this._map._fireDOMEvent(e,i||e.type,t)}_bringToFront(t){const e=t._order;if(!e)return;const i=e.next,s=e.prev;if(i)i.prev=s;else return;s?s.next=i:i&&(this._drawFirst=i),e.prev=this._drawLast,this._drawLast.next=e,e.next=null,this._drawLast=e,this._requestRedraw(t)}_bringToBack(t){const e=t._order;if(!e)return;const i=e.next,s=e.prev;if(s)s.next=i;else return;i?i.prev=s:s&&(this._drawLast=s),e.prev=null,e.next=this._drawFirst,this._drawFirst.prev=e,this._drawFirst=e,this._requestRedraw(t)}};Xe.setDefaultOptions({tolerance:0});let Wt=Xe;function yn(n){return document.createElementNS("http://www.w3.org/2000/svg",n)}function Mi(n,t){return n.flatMap(i=>[...i.map((s,o)=>`${(o?"L":"M")+s.x} ${s.y}`),t?"z":""]).join("")||"M0 0"}const $t=yn;class Ut extends I{_initContainer(){this._container=$t("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=$t("g"),this._container.appendChild(this._rootGroup)}_destroyContainer(){I.prototype._destroyContainer.call(this),delete this._rootGroup,delete this._svgSize}_resizeContainer(){const t=I.prototype._resizeContainer.call(this);(!this._svgSize||!this._svgSize.equals(t))&&(this._svgSize=t,this._container.setAttribute("width",t.x),this._container.setAttribute("height",t.y))}_update(){if(this._map._animatingZoom&&this._bounds)return;const t=this._bounds,e=t.getSize();this._container.setAttribute("viewBox",[t.min.x,t.min.y,e.x,e.y].join(" ")),this.fire("update")}_initPath(t){const e=t._path=$t("path");t.options.className&&e.classList.add(...F(t.options.className)),t.options.interactive&&e.classList.add("leaflet-interactive"),this._updateStyle(t),this._layers[x(t)]=t}_addPath(t){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(t._path),t.addInteractiveTarget(t._path)}_removePath(t){t._path.remove(),t.removeInteractiveTarget(t._path),delete this._layers[x(t)]}_updatePath(t){t._project(),t._update()}_updateStyle(t){const e=t._path,i=t.options;e&&(i.stroke?(e.setAttribute("stroke",i.color),e.setAttribute("stroke-opacity",i.opacity),e.setAttribute("stroke-width",i.weight),e.setAttribute("stroke-linecap",i.lineCap),e.setAttribute("stroke-linejoin",i.lineJoin),i.dashArray?e.setAttribute("stroke-dasharray",i.dashArray):e.removeAttribute("stroke-dasharray"),i.dashOffset?e.setAttribute("stroke-dashoffset",i.dashOffset):e.removeAttribute("stroke-dashoffset")):e.setAttribute("stroke","none"),i.fill?(e.setAttribute("fill",i.fillColor||i.color),e.setAttribute("fill-opacity",i.fillOpacity),e.setAttribute("fill-rule",i.fillRule||"evenodd")):e.setAttribute("fill","none"))}_updatePoly(t,e){this._setPath(t,Mi(t._parts,e))}_updateCircle(t){const e=t._point,i=Math.max(Math.round(t._radius),1),s=Math.max(Math.round(t._radiusY),1)||i,o=`a${i},${s} 0 1,0 `,r=t._empty()?"M0 0":`M${e.x-i},${e.y}${o}${i*2},0 ${o}${-i*2},0 `;this._setPath(t,r)}_setPath(t,e){t._path.setAttribute("d",e)}_bringToFront(t){yt(t._path)}_bringToBack(t){vt(t._path)}}y.include({getRenderer(n){let t=n.options.renderer??this._getPaneRenderer(n.options.pane)??this.options.renderer??this._renderer;return t||(t=this._renderer=this._createRenderer()),this.hasLayer(t)||this.addLayer(t),t},_getPaneRenderer(n){if(n==="overlayPane"||n===void 0)return;let t=this._paneRenderers[n];return t===void 0&&(t=this._createRenderer({pane:n}),this._paneRenderers[n]=t),t},_createRenderer(n){return this.options.preferCanvas&&new Wt(n)||new Ut(n)}});class vn extends rt{initialize(t,e){rt.prototype.initialize.call(this,this._boundsToLatLngs(t),e)}setBounds(t){return this.setLatLngs(this._boundsToLatLngs(t))}_boundsToLatLngs(t){return t=new w(t),[t.getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}}Ut.create=$t,Ut.pointsToPath=Mi,X.geometryToLayer=Nt,X.coordsToLatLng=we,X.coordsToLatLngs=Ft,X.latLngToCoords=be,X.latLngsToCoords=Ht,X.getFeature=ct,X.asFeature=jt,y.mergeOptions({boxZoom:!0});class zi extends H{initialize(t){this._map=t,this._container=t._container,this._pane=t._panes.overlayPane,this._resetStateTimeout=0,t.on("unload",this._destroy,this)}addHooks(){g(this._container,"pointerdown",this._onPointerDown,this)}removeHooks(){P(this._container,"pointerdown",this._onPointerDown,this)}moved(){return this._moved}_destroy(){this._pane.remove(),delete this._pane}_resetState(){this._resetStateTimeout=0,this._moved=!1}_clearDeferredResetState(){this._resetStateTimeout!==0&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)}_onPointerDown(t){if(!t.shiftKey||t.button!==0)return!1;this._clearDeferredResetState(),this._resetState(),ee(),ne(),this._startPoint=this._map.pointerEventToContainerPoint(t),g(document,{contextmenu:nt,pointermove:this._onPointerMove,pointerup:this._onPointerUp,keydown:this._onKeyDown},this)}_onPointerMove(t){this._moved||(this._moved=!0,this._box=b("div","leaflet-zoom-box",this._container),this._container.classList.add("leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.pointerEventToContainerPoint(t);const e=new v(this._point,this._startPoint),i=e.getSize();M(this._box,e.min),this._box.style.width=`${i.x}px`,this._box.style.height=`${i.y}px`}_finish(){this._moved&&(this._box.remove(),this._container.classList.remove("leaflet-crosshair")),ie(),se(),P(document,{contextmenu:nt,pointermove:this._onPointerMove,pointerup:this._onPointerUp,keydown:this._onKeyDown},this)}_onPointerUp(t){if(t.button!==0||(this._finish(),!this._moved))return;this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(this._resetState.bind(this),0);const e=new w(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(e).fire("boxzoomend",{boxZoomBounds:e})}_onKeyDown(t){t.code==="Escape"&&(this._finish(),this._clearDeferredResetState(),this._resetState())}}y.addInitHook("addHandler","boxZoom",zi),y.mergeOptions({doubleClickZoom:!0});class Si extends H{addHooks(){this._map.on("dblclick",this._onDoubleClick,this)}removeHooks(){this._map.off("dblclick",this._onDoubleClick,this)}_onDoubleClick(t){const e=this._map,i=e.getZoom(),s=e.options.zoomDelta,o=t.originalEvent.shiftKey?i-s:i+s;e.options.doubleClickZoom==="center"?e.setZoom(o):e.setZoomAround(t.containerPoint,o)}}y.addInitHook("addHandler","doubleClickZoom",Si),y.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});class Oi extends H{addHooks(){if(!this._draggable){const t=this._map;this._draggable=new wt(t._mapPane,t._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),t.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),t.on("zoomend",this._onZoomEnd,this),t.whenReady(this._onZoomEnd,this))}this._map._container.classList.add("leaflet-grab","leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]}removeHooks(){this._map._container.classList.remove("leaflet-grab","leaflet-touch-drag"),this._draggable.disable()}moved(){return this._draggable?._moved}moving(){return this._draggable?._moving}_onDragStart(){const t=this._map;if(t._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){const e=new w(this._map.options.maxBounds);this._offsetLimit=new v(this._map.latLngToContainerPoint(e.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(e.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;t.fire("movestart").fire("dragstart"),t.options.inertia&&(this._positions=[],this._times=[])}_onDrag(t){if(this._map.options.inertia){const e=this._lastTime=+new Date,i=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(i),this._times.push(e),this._prunePositions(e)}this._map.fire("move",t).fire("drag",t)}_prunePositions(t){for(;this._positions.length>1&&t-this._times[0]>50;)this._positions.shift(),this._times.shift()}_onZoomEnd(){const t=this._map.getSize().divideBy(2),e=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=e.subtract(t).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x}_viscousLimit(t,e){return t-(t-e)*this._viscosity}_onPreDragLimit(){if(!this._viscosity||!this._offsetLimit)return;const t=this._draggable._newPos.subtract(this._draggable._startPos),e=this._offsetLimit;t.x<e.min.x&&(t.x=this._viscousLimit(t.x,e.min.x)),t.y<e.min.y&&(t.y=this._viscousLimit(t.y,e.min.y)),t.x>e.max.x&&(t.x=this._viscousLimit(t.x,e.max.x)),t.y>e.max.y&&(t.y=this._viscousLimit(t.y,e.max.y)),this._draggable._newPos=this._draggable._startPos.add(t)}_onPreDragWrap(){const t=this._worldWidth,e=Math.round(t/2),i=this._initialWorldOffset,s=this._draggable._newPos.x,o=(s-e+i)%t+e-i,r=(s+e+i)%t-e-i,a=Math.abs(o+i)<Math.abs(r+i)?o:r;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=a}_onDragEnd(t){const e=this._map,i=e.options,s=!i.inertia||t.noInertia||this._times.length<2;if(e.fire("dragend",t),s)e.fire("moveend");else{this._prunePositions(+new Date);const o=this._lastPos.subtract(this._positions[0]),r=(this._lastTime-this._times[0])/1e3,a=i.easeLinearity,h=o.multiplyBy(a/r),l=h.distanceTo([0,0]),d=Math.min(i.inertiaMaxSpeed,l),c=h.multiplyBy(d/l),f=d/(i.inertiaDeceleration*a);let m=c.multiplyBy(-f/2).round();!m.x&&!m.y?e.fire("moveend"):(m=e._limitOffset(m,e.options.maxBounds),requestAnimationFrame(()=>{e.panBy(m,{duration:f,easeLinearity:a,noMoveStart:!0,animate:!0})}))}}}y.addInitHook("addHandler","dragging",Oi),y.mergeOptions({keyboard:!0,keyboardPanDelta:80});class ut extends H{static keyCodes={left:["ArrowLeft"],right:["ArrowRight"],down:["ArrowDown"],up:["ArrowUp"],zoomIn:["Equal","NumpadAdd","BracketRight"],zoomOut:["Minus","NumpadSubtract","Digit6","Slash"]};initialize(t){this._map=t,this._setPanDelta(t.options.keyboardPanDelta),this._setZoomDelta(t.options.zoomDelta)}addHooks(){const t=this._map._container;t.tabIndex<=0&&(t.tabIndex="0"),t.ariaKeyShortcuts=Object.values(ut.keyCodes).flat().join(" "),g(t,{focus:this._onFocus,blur:this._onBlur,pointerdown:this._onPointerDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)}removeHooks(){this._removeHooks(),P(this._map._container,{focus:this._onFocus,blur:this._onBlur,pointerdown:this._onPointerDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)}_onPointerDown(){if(this._focused)return;const t=document.body,e=document.documentElement,i=t.scrollTop||e.scrollTop,s=t.scrollLeft||e.scrollLeft;this._map._container.focus(),window.scrollTo(s,i)}_onFocus(){this._focused=!0,this._map.fire("focus")}_onBlur(){this._focused=!1,this._map.fire("blur")}_setPanDelta(t){const e=this._panKeys={},i=ut.keyCodes;for(const s of i.left)e[s]=[-1*t,0];for(const s of i.right)e[s]=[t,0];for(const s of i.down)e[s]=[0,t];for(const s of i.up)e[s]=[0,-1*t]}_setZoomDelta(t){const e=this._zoomKeys={},i=ut.keyCodes;for(const s of i.zoomIn)e[s]=t;for(const s of i.zoomOut)e[s]=-t}_addHooks(){g(document,"keydown",this._onKeyDown,this)}_removeHooks(){P(document,"keydown",this._onKeyDown,this)}_onKeyDown(t){if(t.altKey||t.ctrlKey||t.metaKey)return;const e=t.code,i=this._map;let s;if(e in this._panKeys){if(!i._panAnim||!i._panAnim._inProgress)if(s=this._panKeys[e],t.shiftKey&&(s=new u(s).multiplyBy(3)),i.options.maxBounds&&(s=i._limitOffset(new u(s),i.options.maxBounds)),i.options.worldCopyJump){const o=i.wrapLatLng(i.unproject(i.project(i.getCenter()).add(s)));i.panTo(o)}else i.panBy(s)}else if(e in this._zoomKeys)i.setZoom(i.getZoom()+(t.shiftKey?3:1)*this._zoomKeys[e]);else if(e==="Escape"&&i._popup&&i._popup.options.closeOnEscapeKey)i.closePopup();else return;nt(t)}}y.addInitHook("addHandler","keyboard",ut),y.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});class Zi extends H{addHooks(){g(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0}removeHooks(){P(this._map._container,"wheel",this._onWheelScroll,this),clearTimeout(this._timer)}_onWheelScroll(t){const e=fi(t),i=this._map.options.wheelDebounceTime;this._delta+=e,this._lastMousePos=this._map.pointerEventToContainerPoint(t),this._startTime||(this._startTime=+new Date);const s=Math.max(i-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(this._performZoom.bind(this),s),nt(t)}_performZoom(){const t=this._map,e=t.getZoom(),i=this._map.options.zoomSnap??0;t._stop();const s=this._delta/(this._map.options.wheelPxPerZoomLevel*4),o=4*Math.log(2/(1+Math.exp(-Math.abs(s))))/Math.LN2,r=i?Math.ceil(o/i)*i:o,a=t._limitZoom(e+(this._delta>0?r:-r))-e;this._delta=0,this._startTime=null,a&&(t.options.scrollWheelZoom==="center"?t.setZoom(e+a):t.setZoomAround(this._lastMousePos,e+a))}}y.addInitHook("addHandler","scrollWheelZoom",Zi);const xn=600;y.mergeOptions({tapHold:z.safari&&z.mobile,tapTolerance:15});class Ei extends H{addHooks(){g(this._map._container,"pointerdown",this._onDown,this)}removeHooks(){P(this._map._container,"pointerdown",this._onDown,this),clearTimeout(this._holdTimeout)}_onDown(t){clearTimeout(this._holdTimeout),!(dt().length!==1||t.pointerType==="mouse")&&(this._startPos=this._newPos=new u(t.clientX,t.clientY),this._holdTimeout=setTimeout(()=>{this._cancel(),this._isTapValid()&&(g(document,"pointerup",S),g(document,"pointerup pointercancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",t))},xn),g(document,"pointerup pointercancel contextmenu",this._cancel,this),g(document,"pointermove",this._onMove,this))}_cancelClickPrevent=function t(){P(document,"pointerup",S),P(document,"pointerup pointercancel",t)};_cancel(){clearTimeout(this._holdTimeout),P(document,"pointerup pointercancel contextmenu",this._cancel,this),P(document,"pointermove",this._onMove,this)}_onMove(t){this._newPos=new u(t.clientX,t.clientY)}_isTapValid(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance}_simulateEvent(t,e){const i=new MouseEvent(t,{bubbles:!0,cancelable:!0,view:window,screenX:e.screenX,screenY:e.screenY,clientX:e.clientX,clientY:e.clientY});i._simulated=!0,e.target.dispatchEvent(i)}}y.addInitHook("addHandler","tapHold",Ei),y.mergeOptions({pinchZoom:!0,bounceAtZoomLimits:!0});class ke extends H{addHooks(){this._map._container.classList.add("leaflet-touch-zoom"),g(this._map._container,"pointerdown",this._onPointerStart,this)}removeHooks(){this._map._container.classList.remove("leaflet-touch-zoom"),P(this._map._container,"pointerdown",this._onPointerStart,this)}_onPointerStart(t){const e=this._map,i=dt();if(i.length!==2||e._animatingZoom||this._zooming)return;const s=e.pointerEventToContainerPoint(i[0]),o=e.pointerEventToContainerPoint(i[1]);this._centerPoint=e.getSize()._divideBy(2),this._startLatLng=e.containerPointToLatLng(this._centerPoint),e.options.pinchZoom!=="center"&&(this._pinchStartLatLng=e.containerPointToLatLng(s.add(o)._divideBy(2))),this._startDist=s.distanceTo(o),this._startZoom=e.getZoom(),this._moved=!1,this._zooming=!0,e._stop(),g(document,"pointermove",this._onPointerMove,this),g(document,"pointerup pointercancel",this._onPointerEnd,this),S(t)}_onPointerMove(t){const e=dt();if(e.length!==2||!this._zooming)return;const i=this._map,s=i.pointerEventToContainerPoint(e[0]),o=i.pointerEventToContainerPoint(e[1]),r=s.distanceTo(o)/this._startDist;if(this._zoom=i.getScaleZoom(r,this._startZoom),!i.options.bounceAtZoomLimits&&(this._zoom<i.getMinZoom()&&r<1||this._zoom>i.getMaxZoom()&&r>1)&&(this._zoom=i._limitZoom(this._zoom)),i.options.pinchZoom==="center"){if(this._center=this._startLatLng,r===1)return}else{const h=s._add(o)._divideBy(2)._subtract(this._centerPoint);if(r===1&&h.x===0&&h.y===0)return;this._center=i.unproject(i.project(this._pinchStartLatLng,this._zoom).subtract(h),this._zoom)}this._moved||(i._moveStart(!0,!1),this._moved=!0),cancelAnimationFrame(this._animRequest);const a=i._move.bind(i,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=requestAnimationFrame(a.bind(this)),S(t)}_onPointerEnd(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,cancelAnimationFrame(this._animRequest),P(document,"pointermove",this._onPointerMove,this),P(document,"pointerup pointercancel",this._onPointerEnd,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))}}y.addInitHook("addHandler","pinchZoom",ke),y.addInitHook(function(){this.touchZoom=this.pinchZoom,this.options.touchZoom!==void 0&&(console.warn("Map: touchZoom option is deprecated and will be removed in future versions. Use pinchZoom instead."),this.options.pinchZoom=this.options.touchZoom,delete this.options.touchZoom),this.options.pinchZoom?this.pinchZoom.enable():this.pinchZoom.disable()}),y.BoxZoom=zi,y.DoubleClickZoom=Si,y.Drag=Oi,y.Keyboard=ut,y.ScrollWheelZoom=Zi,y.TapHold=Ei,y.PinchZoom=ke,y.TouchZoom=ke;var _={__proto__:null,BlanketOverlay:Gt,Bounds:v,Browser:z,CRS:W,Canvas:Wt,Circle:Ti,CircleMarker:Ct,Class:ft,Control:E,DivIcon:Ce,DivOverlay:A,DomEvent:pe,DomUtil:en,Draggable:wt,Evented:mt,FeatureGroup:Y,GeoJSON:X,GridLayer:at,Handler:H,Icon:ot,ImageOverlay:Tt,LatLng:p,LatLngBounds:w,Layer:O,LayerGroup:Lt,LeafletMap:rn,LineUtil:_n,Map:y,Marker:Pt,Path:j,Point:u,PolyUtil:hn,Polygon:rt,Polyline:U,Popup:kt,PosAnimation:mi,Projection:pn,Rectangle:vn,Renderer:I,SVG:Ut,SVGOverlay:gn,TileLayer:ht,Tooltip:Mt,Transformation:gt,Util:Gi,VideoOverlay:Pe,version:"2.0.0-alpha.1"};const wn=qt().L;qt().L=_,qt().L.noConflict=function(){return qt().L=wn,this};function qt(){if(typeof globalThis<"u")return globalThis;if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("Unable to locate global object.")}const bn=`/* required styles */
|
|
2
|
+
|
|
3
|
+
.leaflet-pane,
|
|
4
|
+
.leaflet-tile,
|
|
5
|
+
.leaflet-marker-icon,
|
|
6
|
+
.leaflet-marker-shadow,
|
|
7
|
+
.leaflet-tile-container,
|
|
8
|
+
.leaflet-pane > svg,
|
|
9
|
+
.leaflet-pane > canvas,
|
|
10
|
+
.leaflet-zoom-box,
|
|
11
|
+
.leaflet-image-layer,
|
|
12
|
+
.leaflet-layer {
|
|
13
|
+
position: absolute;
|
|
14
|
+
left: 0;
|
|
15
|
+
top: 0;
|
|
16
|
+
width:100%;
|
|
17
|
+
}
|
|
18
|
+
.leaflet-container {
|
|
19
|
+
overflow: hidden;
|
|
20
|
+
}
|
|
21
|
+
.leaflet-tile,
|
|
22
|
+
.leaflet-marker-icon,
|
|
23
|
+
.leaflet-marker-shadow {
|
|
24
|
+
user-select: none;
|
|
25
|
+
-webkit-user-drag: none;
|
|
26
|
+
}
|
|
27
|
+
/* Safari renders non-retina tile on retina better with this, but Chrome is worse */
|
|
28
|
+
.leaflet-safari .leaflet-tile {
|
|
29
|
+
image-rendering: -webkit-optimize-contrast;
|
|
30
|
+
}
|
|
31
|
+
/* hack that prevents hw layers "stretching" when loading new tiles */
|
|
32
|
+
.leaflet-safari .leaflet-tile-container {
|
|
33
|
+
width: 1600px;
|
|
34
|
+
height: 1600px;
|
|
35
|
+
-webkit-transform-origin: 0 0;
|
|
36
|
+
}
|
|
37
|
+
.leaflet-marker-icon,
|
|
38
|
+
.leaflet-marker-shadow {
|
|
39
|
+
display: block;
|
|
40
|
+
}
|
|
41
|
+
/* .leaflet-container svg: reset svg max-width decleration shipped in Joomla! (joomla.org) 3.x */
|
|
42
|
+
/* .leaflet-container img: map is broken in FF if you have max-width: 100% on tiles */
|
|
43
|
+
.leaflet-container .leaflet-overlay-pane svg {
|
|
44
|
+
max-width: none !important;
|
|
45
|
+
max-height: none !important;
|
|
46
|
+
}
|
|
47
|
+
.leaflet-container .leaflet-marker-pane img,
|
|
48
|
+
.leaflet-container .leaflet-shadow-pane img,
|
|
49
|
+
.leaflet-container .leaflet-tile-pane img,
|
|
50
|
+
.leaflet-container img.leaflet-image-layer,
|
|
51
|
+
.leaflet-container .leaflet-tile {
|
|
52
|
+
max-width: none !important;
|
|
53
|
+
max-height: none !important;
|
|
54
|
+
width: auto;
|
|
55
|
+
padding: 0;
|
|
56
|
+
}
|
|
57
|
+
.leaflet-container img.leaflet-tile {
|
|
58
|
+
/* See: https://bugs.chromium.org/p/chromium/issues/detail?id=600120 */
|
|
59
|
+
mix-blend-mode: plus-lighter;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.leaflet-container.leaflet-touch-zoom {
|
|
63
|
+
touch-action: pan-x pan-y;
|
|
64
|
+
}
|
|
65
|
+
.leaflet-container.leaflet-touch-drag {
|
|
66
|
+
/* Fallback for FF which doesn't support pinch-zoom */
|
|
67
|
+
touch-action: none;
|
|
68
|
+
touch-action: pinch-zoom;
|
|
69
|
+
}
|
|
70
|
+
.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom {
|
|
71
|
+
touch-action: none;
|
|
72
|
+
}
|
|
73
|
+
.leaflet-container {
|
|
74
|
+
-webkit-tap-highlight-color: transparent;
|
|
75
|
+
}
|
|
76
|
+
.leaflet-container a {
|
|
77
|
+
-webkit-tap-highlight-color: rgba(51, 181, 229, 0.4);
|
|
78
|
+
}
|
|
79
|
+
.leaflet-tile {
|
|
80
|
+
visibility: hidden;
|
|
81
|
+
}
|
|
82
|
+
.leaflet-tile-loaded {
|
|
83
|
+
visibility: inherit;
|
|
84
|
+
}
|
|
85
|
+
.leaflet-zoom-box {
|
|
86
|
+
width: 0;
|
|
87
|
+
height: 0;
|
|
88
|
+
box-sizing: border-box;
|
|
89
|
+
z-index: 800;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.leaflet-pane { z-index: 400; }
|
|
93
|
+
|
|
94
|
+
.leaflet-tile-pane { z-index: 200; }
|
|
95
|
+
.leaflet-overlay-pane { z-index: 400; }
|
|
96
|
+
.leaflet-shadow-pane { z-index: 500; }
|
|
97
|
+
.leaflet-marker-pane { z-index: 600; }
|
|
98
|
+
.leaflet-tooltip-pane { z-index: 650; }
|
|
99
|
+
.leaflet-popup-pane { z-index: 700; }
|
|
100
|
+
|
|
101
|
+
.leaflet-map-pane canvas { z-index: 100; }
|
|
102
|
+
.leaflet-map-pane svg { z-index: 200; }
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
/* control positioning */
|
|
106
|
+
|
|
107
|
+
.leaflet-control {
|
|
108
|
+
position: relative;
|
|
109
|
+
z-index: 800;
|
|
110
|
+
pointer-events: auto;
|
|
111
|
+
}
|
|
112
|
+
.leaflet-top,
|
|
113
|
+
.leaflet-bottom {
|
|
114
|
+
position: absolute;
|
|
115
|
+
z-index: 1000;
|
|
116
|
+
pointer-events: none;
|
|
117
|
+
}
|
|
118
|
+
.leaflet-top {
|
|
119
|
+
top: 0;
|
|
120
|
+
}
|
|
121
|
+
.leaflet-right {
|
|
122
|
+
right: 0;
|
|
123
|
+
}
|
|
124
|
+
.leaflet-bottom {
|
|
125
|
+
bottom: 0;
|
|
126
|
+
}
|
|
127
|
+
.leaflet-left {
|
|
128
|
+
left: 0;
|
|
129
|
+
}
|
|
130
|
+
.leaflet-control {
|
|
131
|
+
float: left;
|
|
132
|
+
clear: both;
|
|
133
|
+
}
|
|
134
|
+
.leaflet-right .leaflet-control {
|
|
135
|
+
float: right;
|
|
136
|
+
}
|
|
137
|
+
.leaflet-top .leaflet-control {
|
|
138
|
+
margin-top: 10px;
|
|
139
|
+
}
|
|
140
|
+
.leaflet-bottom .leaflet-control {
|
|
141
|
+
margin-bottom: 10px;
|
|
142
|
+
}
|
|
143
|
+
.leaflet-left .leaflet-control {
|
|
144
|
+
margin-left: 10px;
|
|
145
|
+
}
|
|
146
|
+
.leaflet-right .leaflet-control {
|
|
147
|
+
margin-right: 10px;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
/* zoom and fade animations */
|
|
152
|
+
|
|
153
|
+
.leaflet-fade-anim .leaflet-popup {
|
|
154
|
+
opacity: 0;
|
|
155
|
+
transition: opacity 0.2s linear;
|
|
156
|
+
}
|
|
157
|
+
.leaflet-fade-anim .leaflet-map-pane .leaflet-popup {
|
|
158
|
+
opacity: 1;
|
|
159
|
+
}
|
|
160
|
+
.leaflet-zoom-animated {
|
|
161
|
+
transform-origin: 0 0;
|
|
162
|
+
}
|
|
163
|
+
svg.leaflet-zoom-animated {
|
|
164
|
+
will-change: transform;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.leaflet-zoom-anim .leaflet-zoom-animated {
|
|
168
|
+
transition: transform 0.25s cubic-bezier(0,0,0.25,1);
|
|
169
|
+
}
|
|
170
|
+
.leaflet-zoom-anim .leaflet-tile,
|
|
171
|
+
.leaflet-pan-anim .leaflet-tile {
|
|
172
|
+
transition: none;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
.leaflet-zoom-anim .leaflet-zoom-hide {
|
|
176
|
+
visibility: hidden;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
/* cursors */
|
|
181
|
+
|
|
182
|
+
.leaflet-interactive {
|
|
183
|
+
cursor: pointer;
|
|
184
|
+
}
|
|
185
|
+
.leaflet-grab {
|
|
186
|
+
cursor: grab;
|
|
187
|
+
}
|
|
188
|
+
.leaflet-crosshair,
|
|
189
|
+
.leaflet-crosshair .leaflet-interactive {
|
|
190
|
+
cursor: crosshair;
|
|
191
|
+
}
|
|
192
|
+
.leaflet-popup-pane,
|
|
193
|
+
.leaflet-control {
|
|
194
|
+
cursor: auto;
|
|
195
|
+
}
|
|
196
|
+
.leaflet-dragging .leaflet-grab,
|
|
197
|
+
.leaflet-dragging .leaflet-grab .leaflet-interactive,
|
|
198
|
+
.leaflet-dragging .leaflet-marker-draggable {
|
|
199
|
+
cursor: grabbing;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
/* marker & overlays interactivity */
|
|
203
|
+
.leaflet-marker-icon,
|
|
204
|
+
.leaflet-marker-shadow,
|
|
205
|
+
.leaflet-image-layer,
|
|
206
|
+
.leaflet-pane > svg path,
|
|
207
|
+
.leaflet-tile-container {
|
|
208
|
+
pointer-events: none;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
.leaflet-marker-icon.leaflet-interactive,
|
|
212
|
+
.leaflet-image-layer.leaflet-interactive,
|
|
213
|
+
.leaflet-pane > svg path.leaflet-interactive,
|
|
214
|
+
svg.leaflet-image-layer.leaflet-interactive path {
|
|
215
|
+
pointer-events: auto;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
/* visual tweaks */
|
|
219
|
+
|
|
220
|
+
.leaflet-container {
|
|
221
|
+
background: #ddd;
|
|
222
|
+
outline-offset: 1px;
|
|
223
|
+
}
|
|
224
|
+
.leaflet-container a {
|
|
225
|
+
color: #0078A8;
|
|
226
|
+
}
|
|
227
|
+
/* prevent showing outline-box on Chromium when clicking on a vector with a tooltip */
|
|
228
|
+
path.leaflet-interactive:focus:not(:focus-visible) {
|
|
229
|
+
outline: 0;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
.leaflet-zoom-box {
|
|
233
|
+
border: 2px dotted #38f;
|
|
234
|
+
background: rgba(255,255,255,0.5);
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
|
|
238
|
+
/* general typography */
|
|
239
|
+
.leaflet-container {
|
|
240
|
+
font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
|
|
241
|
+
font-size: 12px;
|
|
242
|
+
font-size: 0.75rem;
|
|
243
|
+
line-height: 1.5;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
|
|
247
|
+
/* general toolbar styles */
|
|
248
|
+
|
|
249
|
+
.leaflet-bar {
|
|
250
|
+
box-shadow: 0 1px 5px rgba(0,0,0,0.65);
|
|
251
|
+
border-radius: 4px;
|
|
252
|
+
}
|
|
253
|
+
.leaflet-bar a {
|
|
254
|
+
background-color: #fff;
|
|
255
|
+
border-bottom: 1px solid #ccc;
|
|
256
|
+
width: 26px;
|
|
257
|
+
height: 26px;
|
|
258
|
+
line-height: 26px;
|
|
259
|
+
display: block;
|
|
260
|
+
text-align: center;
|
|
261
|
+
text-decoration: none;
|
|
262
|
+
color: black;
|
|
263
|
+
}
|
|
264
|
+
.leaflet-bar a,
|
|
265
|
+
.leaflet-control-layers-toggle {
|
|
266
|
+
background-position: 50% 50%;
|
|
267
|
+
background-repeat: no-repeat;
|
|
268
|
+
display: block;
|
|
269
|
+
}
|
|
270
|
+
.leaflet-bar a:hover,
|
|
271
|
+
.leaflet-bar a:focus {
|
|
272
|
+
background-color: #f4f4f4;
|
|
273
|
+
}
|
|
274
|
+
.leaflet-bar a:first-child {
|
|
275
|
+
border-top-left-radius: 4px;
|
|
276
|
+
border-top-right-radius: 4px;
|
|
277
|
+
}
|
|
278
|
+
.leaflet-bar a:last-child {
|
|
279
|
+
border-bottom-left-radius: 4px;
|
|
280
|
+
border-bottom-right-radius: 4px;
|
|
281
|
+
border-bottom: none;
|
|
282
|
+
}
|
|
283
|
+
.leaflet-bar a.leaflet-disabled {
|
|
284
|
+
cursor: default;
|
|
285
|
+
background-color: #f4f4f4;
|
|
286
|
+
color: #bbb;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
.leaflet-touch .leaflet-bar a {
|
|
290
|
+
width: 30px;
|
|
291
|
+
height: 30px;
|
|
292
|
+
line-height: 30px;
|
|
293
|
+
}
|
|
294
|
+
.leaflet-touch .leaflet-bar a:first-child {
|
|
295
|
+
border-top-left-radius: 2px;
|
|
296
|
+
border-top-right-radius: 2px;
|
|
297
|
+
}
|
|
298
|
+
.leaflet-touch .leaflet-bar a:last-child {
|
|
299
|
+
border-bottom-left-radius: 2px;
|
|
300
|
+
border-bottom-right-radius: 2px;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
/* zoom control */
|
|
304
|
+
|
|
305
|
+
.leaflet-control-zoom-in,
|
|
306
|
+
.leaflet-control-zoom-out {
|
|
307
|
+
font: bold 18px 'Lucida Console', Monaco, monospace;
|
|
308
|
+
text-indent: 1px;
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
.leaflet-touch .leaflet-control-zoom-in, .leaflet-touch .leaflet-control-zoom-out {
|
|
312
|
+
font-size: 22px;
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
|
|
316
|
+
/* layers control */
|
|
317
|
+
|
|
318
|
+
.leaflet-control-layers {
|
|
319
|
+
box-shadow: 0 1px 5px rgba(0,0,0,0.4);
|
|
320
|
+
background: #fff;
|
|
321
|
+
border-radius: 5px;
|
|
322
|
+
}
|
|
323
|
+
.leaflet-control-layers-toggle {
|
|
324
|
+
background-image: url(images/layers.svg);
|
|
325
|
+
width: 36px;
|
|
326
|
+
height: 36px;
|
|
327
|
+
}
|
|
328
|
+
.leaflet-touch .leaflet-control-layers-toggle {
|
|
329
|
+
width: 44px;
|
|
330
|
+
height: 44px;
|
|
331
|
+
}
|
|
332
|
+
.leaflet-control-layers .leaflet-control-layers-list,
|
|
333
|
+
.leaflet-control-layers-expanded .leaflet-control-layers-toggle {
|
|
334
|
+
display: none;
|
|
335
|
+
}
|
|
336
|
+
.leaflet-control-layers-expanded .leaflet-control-layers-list {
|
|
337
|
+
display: block;
|
|
338
|
+
position: relative;
|
|
339
|
+
}
|
|
340
|
+
.leaflet-control-layers-list {
|
|
341
|
+
border: 0;
|
|
342
|
+
margin: 0;
|
|
343
|
+
padding: 0;
|
|
344
|
+
}
|
|
345
|
+
.leaflet-control-layers-expanded {
|
|
346
|
+
padding: 6px 10px 6px 6px;
|
|
347
|
+
color: #333;
|
|
348
|
+
background: #fff;
|
|
349
|
+
}
|
|
350
|
+
.leaflet-control-layers-scrollbar {
|
|
351
|
+
overflow-y: scroll;
|
|
352
|
+
overflow-x: hidden;
|
|
353
|
+
padding-right: 5px;
|
|
354
|
+
}
|
|
355
|
+
.leaflet-control-layers-selector {
|
|
356
|
+
margin-top: 2px;
|
|
357
|
+
position: relative;
|
|
358
|
+
top: 1px;
|
|
359
|
+
}
|
|
360
|
+
.leaflet-control-layers label {
|
|
361
|
+
display: block;
|
|
362
|
+
font-size: 13px;
|
|
363
|
+
font-size: 1.08333em;
|
|
364
|
+
}
|
|
365
|
+
.leaflet-control-layers-separator {
|
|
366
|
+
height: 0;
|
|
367
|
+
border-top: 1px solid #ddd;
|
|
368
|
+
margin: 5px -10px 5px -6px;
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
/* Default icon URLs */
|
|
372
|
+
.leaflet-default-icon-path { /* used only in path-guessing heuristic, see L.Icon.Default */
|
|
373
|
+
background-image: url(images/marker-icon.png);
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
|
|
377
|
+
/* attribution and scale controls */
|
|
378
|
+
|
|
379
|
+
.leaflet-container .leaflet-control-attribution {
|
|
380
|
+
background: #fff;
|
|
381
|
+
background: rgba(255, 255, 255, 0.8);
|
|
382
|
+
margin: 0;
|
|
383
|
+
}
|
|
384
|
+
.leaflet-control-attribution,
|
|
385
|
+
.leaflet-control-scale-line {
|
|
386
|
+
padding: 0 5px;
|
|
387
|
+
color: #333;
|
|
388
|
+
line-height: 1.4;
|
|
389
|
+
}
|
|
390
|
+
.leaflet-control-attribution a {
|
|
391
|
+
text-decoration: none;
|
|
392
|
+
}
|
|
393
|
+
.leaflet-control-attribution a:hover,
|
|
394
|
+
.leaflet-control-attribution a:focus {
|
|
395
|
+
text-decoration: underline;
|
|
396
|
+
}
|
|
397
|
+
.leaflet-attribution-flag {
|
|
398
|
+
display: inline !important;
|
|
399
|
+
vertical-align: baseline !important;
|
|
400
|
+
width: 1em;
|
|
401
|
+
height: 0.6669em;
|
|
402
|
+
margin-right: 0.277em;
|
|
403
|
+
}
|
|
404
|
+
.leaflet-left .leaflet-control-scale {
|
|
405
|
+
margin-left: 5px;
|
|
406
|
+
}
|
|
407
|
+
.leaflet-bottom .leaflet-control-scale {
|
|
408
|
+
margin-bottom: 5px;
|
|
409
|
+
}
|
|
410
|
+
.leaflet-control-scale-line {
|
|
411
|
+
border: 2px solid #777;
|
|
412
|
+
border-top: none;
|
|
413
|
+
line-height: 1.1;
|
|
414
|
+
padding: 2px 5px 1px;
|
|
415
|
+
white-space: nowrap;
|
|
416
|
+
box-sizing: border-box;
|
|
417
|
+
background: rgba(255, 255, 255, 0.8);
|
|
418
|
+
text-shadow: 1px 1px #fff;
|
|
419
|
+
}
|
|
420
|
+
.leaflet-control-scale-line:not(:first-child) {
|
|
421
|
+
border-top: 2px solid #777;
|
|
422
|
+
border-bottom: none;
|
|
423
|
+
margin-top: -2px;
|
|
424
|
+
}
|
|
425
|
+
.leaflet-control-scale-line:not(:first-child):not(:last-child) {
|
|
426
|
+
border-bottom: 2px solid #777;
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
.leaflet-touch .leaflet-control-attribution,
|
|
430
|
+
.leaflet-touch .leaflet-control-layers,
|
|
431
|
+
.leaflet-touch .leaflet-bar {
|
|
432
|
+
box-shadow: none;
|
|
433
|
+
}
|
|
434
|
+
.leaflet-touch .leaflet-control-layers,
|
|
435
|
+
.leaflet-touch .leaflet-bar {
|
|
436
|
+
border: 2px solid rgba(0,0,0,0.2);
|
|
437
|
+
background-clip: padding-box;
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
|
|
441
|
+
/* popup */
|
|
442
|
+
|
|
443
|
+
.leaflet-popup {
|
|
444
|
+
position: absolute;
|
|
445
|
+
text-align: center;
|
|
446
|
+
margin-bottom: 20px;
|
|
447
|
+
}
|
|
448
|
+
.leaflet-popup-content-wrapper {
|
|
449
|
+
padding: 1px;
|
|
450
|
+
text-align: left;
|
|
451
|
+
border-radius: 12px;
|
|
452
|
+
}
|
|
453
|
+
.leaflet-popup-content {
|
|
454
|
+
margin: 13px 24px 13px 20px;
|
|
455
|
+
line-height: 1.3;
|
|
456
|
+
font-size: 13px;
|
|
457
|
+
font-size: 1.08333em;
|
|
458
|
+
min-height: 1px;
|
|
459
|
+
}
|
|
460
|
+
.leaflet-popup-content p {
|
|
461
|
+
margin: 17px 0;
|
|
462
|
+
margin: 1.3em 0;
|
|
463
|
+
}
|
|
464
|
+
.leaflet-popup-tip-container {
|
|
465
|
+
width: 40px;
|
|
466
|
+
height: 20px;
|
|
467
|
+
position: absolute;
|
|
468
|
+
left: 50%;
|
|
469
|
+
margin-top: -1px;
|
|
470
|
+
margin-left: -20px;
|
|
471
|
+
overflow: hidden;
|
|
472
|
+
pointer-events: none;
|
|
473
|
+
}
|
|
474
|
+
.leaflet-popup-tip {
|
|
475
|
+
width: 17px;
|
|
476
|
+
height: 17px;
|
|
477
|
+
padding: 1px;
|
|
478
|
+
|
|
479
|
+
margin: -10px auto 0;
|
|
480
|
+
pointer-events: auto;
|
|
481
|
+
|
|
482
|
+
transform: rotate(45deg);
|
|
483
|
+
}
|
|
484
|
+
.leaflet-popup-content-wrapper,
|
|
485
|
+
.leaflet-popup-tip {
|
|
486
|
+
background: white;
|
|
487
|
+
color: #333;
|
|
488
|
+
box-shadow: 0 3px 14px rgba(0,0,0,0.4);
|
|
489
|
+
}
|
|
490
|
+
.leaflet-container a.leaflet-popup-close-button {
|
|
491
|
+
position: absolute;
|
|
492
|
+
top: 0;
|
|
493
|
+
right: 0;
|
|
494
|
+
border: none;
|
|
495
|
+
text-align: center;
|
|
496
|
+
width: 24px;
|
|
497
|
+
height: 24px;
|
|
498
|
+
font: 16px/24px Tahoma, Verdana, sans-serif;
|
|
499
|
+
color: #757575;
|
|
500
|
+
text-decoration: none;
|
|
501
|
+
background: transparent;
|
|
502
|
+
}
|
|
503
|
+
.leaflet-container a.leaflet-popup-close-button:hover,
|
|
504
|
+
.leaflet-container a.leaflet-popup-close-button:focus {
|
|
505
|
+
color: #585858;
|
|
506
|
+
}
|
|
507
|
+
.leaflet-popup-scrolled {
|
|
508
|
+
overflow: auto;
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
/* div icon */
|
|
512
|
+
|
|
513
|
+
.leaflet-div-icon {
|
|
514
|
+
background: #fff;
|
|
515
|
+
border: 1px solid #666;
|
|
516
|
+
}
|
|
517
|
+
|
|
518
|
+
|
|
519
|
+
/* Tooltip */
|
|
520
|
+
/* Base styles for the element that has a tooltip */
|
|
521
|
+
.leaflet-tooltip {
|
|
522
|
+
position: absolute;
|
|
523
|
+
padding: 6px;
|
|
524
|
+
background-color: #fff;
|
|
525
|
+
border: 1px solid #fff;
|
|
526
|
+
border-radius: 3px;
|
|
527
|
+
color: #222;
|
|
528
|
+
white-space: nowrap;
|
|
529
|
+
user-select: none;
|
|
530
|
+
pointer-events: none;
|
|
531
|
+
box-shadow: 0 1px 3px rgba(0,0,0,0.4);
|
|
532
|
+
}
|
|
533
|
+
.leaflet-tooltip.leaflet-interactive {
|
|
534
|
+
cursor: pointer;
|
|
535
|
+
pointer-events: auto;
|
|
536
|
+
}
|
|
537
|
+
.leaflet-tooltip-top:before,
|
|
538
|
+
.leaflet-tooltip-bottom:before,
|
|
539
|
+
.leaflet-tooltip-left:before,
|
|
540
|
+
.leaflet-tooltip-right:before {
|
|
541
|
+
position: absolute;
|
|
542
|
+
pointer-events: none;
|
|
543
|
+
border: 6px solid transparent;
|
|
544
|
+
background: transparent;
|
|
545
|
+
content: "";
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
/* Directions */
|
|
549
|
+
|
|
550
|
+
.leaflet-tooltip-bottom {
|
|
551
|
+
margin-top: 6px;
|
|
552
|
+
}
|
|
553
|
+
.leaflet-tooltip-top {
|
|
554
|
+
margin-top: -6px;
|
|
667
555
|
}
|
|
556
|
+
.leaflet-tooltip-bottom:before,
|
|
557
|
+
.leaflet-tooltip-top:before {
|
|
558
|
+
left: 50%;
|
|
559
|
+
margin-left: -6px;
|
|
560
|
+
}
|
|
561
|
+
.leaflet-tooltip-top:before {
|
|
562
|
+
bottom: 0;
|
|
563
|
+
margin-bottom: -12px;
|
|
564
|
+
border-top-color: #fff;
|
|
565
|
+
}
|
|
566
|
+
.leaflet-tooltip-bottom:before {
|
|
567
|
+
top: 0;
|
|
568
|
+
margin-top: -12px;
|
|
569
|
+
margin-left: -6px;
|
|
570
|
+
border-bottom-color: #fff;
|
|
571
|
+
}
|
|
572
|
+
.leaflet-tooltip-left {
|
|
573
|
+
margin-left: -6px;
|
|
574
|
+
}
|
|
575
|
+
.leaflet-tooltip-right {
|
|
576
|
+
margin-left: 6px;
|
|
577
|
+
}
|
|
578
|
+
.leaflet-tooltip-left:before,
|
|
579
|
+
.leaflet-tooltip-right:before {
|
|
580
|
+
top: 50%;
|
|
581
|
+
margin-top: -6px;
|
|
582
|
+
}
|
|
583
|
+
.leaflet-tooltip-left:before {
|
|
584
|
+
right: 0;
|
|
585
|
+
margin-right: -12px;
|
|
586
|
+
border-left-color: #fff;
|
|
587
|
+
}
|
|
588
|
+
.leaflet-tooltip-right:before {
|
|
589
|
+
left: 0;
|
|
590
|
+
margin-left: -12px;
|
|
591
|
+
border-right-color: #fff;
|
|
592
|
+
}
|
|
593
|
+
|
|
594
|
+
/* Printing */
|
|
668
595
|
|
|
669
|
-
|
|
670
|
-
/*
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
596
|
+
@media print {
|
|
597
|
+
/* Prevent printers from removing background-images of controls. */
|
|
598
|
+
.leaflet-control {
|
|
599
|
+
-webkit-print-color-adjust: exact;
|
|
600
|
+
print-color-adjust: exact;
|
|
601
|
+
}
|
|
675
602
|
}
|
|
676
|
-
`;var Ht={exports:{}},En=Ht.exports,hi;function Zn(){return hi||(hi=1,function(K,A){(function(y,Y){Y(A)})(En,function(y){var Y=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(r){L.Util.setOptions(this,r),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 a=L.DomUtil.TRANSITION&&this.options.animate;L.extend(this,a?this._withAnimation:this._noAnimation),this._markerCluster=a?L.MarkerCluster:L.MarkerClusterNonAnimated},addLayer:function(r){if(r instanceof L.LayerGroup)return this.addLayers([r]);if(!r.getLatLng)return this._nonPointGroup.addLayer(r),this.fire("layeradd",{layer:r}),this;if(!this._map)return this._needsClustering.push(r),this.fire("layeradd",{layer:r}),this;if(this.hasLayer(r))return this;this._unspiderfy&&this._unspiderfy(),this._addLayer(r,this._maxZoom),this.fire("layeradd",{layer:r}),this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons();var a=r,h=this._zoom;if(r.__parent)for(;a.__parent._zoom>=h;)a=a.__parent;return this._currentShownBounds.contains(a.getLatLng())&&(this.options.animateAddingMarkers?this._animationAddLayer(r,a):this._animationAddLayerNonAnimated(r,a)),this},removeLayer:function(r){return r instanceof L.LayerGroup?this.removeLayers([r]):r.getLatLng?this._map?r.__parent?(this._unspiderfy&&(this._unspiderfy(),this._unspiderfyLayer(r)),this._removeLayer(r,!0),this.fire("layerremove",{layer:r}),this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),r.off(this._childMarkerEventHandlers,this),this._featureGroup.hasLayer(r)&&(this._featureGroup.removeLayer(r),r.clusterShow&&r.clusterShow()),this):this:(!this._arraySplice(this._needsClustering,r)&&this.hasLayer(r)&&this._needsRemoving.push({layer:r,latlng:r._latlng}),this.fire("layerremove",{layer:r}),this):(this._nonPointGroup.removeLayer(r),this.fire("layerremove",{layer:r}),this)},addLayers:function(r,a){if(!L.Util.isArray(r))return this.addLayer(r);var h=this._featureGroup,u=this._nonPointGroup,_=this.options.chunkedLoading,p=this.options.chunkInterval,c=this.options.chunkProgress,g=r.length,m=0,b=!0,x;if(this._map){var R=new Date().getTime(),S=L.bind(function(){var H=new Date().getTime();for(this._map&&this._unspiderfy&&this._unspiderfy();m<g;m++){if(_&&m%200===0){var mt=new Date().getTime()-H;if(mt>p)break}if(x=r[m],x instanceof L.LayerGroup){b&&(r=r.slice(),b=!1),this._extractNonGroupLayers(x,r),g=r.length;continue}if(!x.getLatLng){u.addLayer(x),a||this.fire("layeradd",{layer:x});continue}if(!this.hasLayer(x)&&(this._addLayer(x,this._maxZoom),a||this.fire("layeradd",{layer:x}),x.__parent&&x.__parent.getChildCount()===2)){var nt=x.__parent.getAllChildMarkers(),Gt=nt[0]===x?nt[1]:nt[0];h.removeLayer(Gt)}}c&&c(m,g,new Date().getTime()-R),m===g?(this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),this._topClusterLevel._recursivelyAddChildrenToMap(null,this._zoom,this._currentShownBounds)):setTimeout(S,this.options.chunkDelay)},this);S()}else for(var F=this._needsClustering;m<g;m++){if(x=r[m],x instanceof L.LayerGroup){b&&(r=r.slice(),b=!1),this._extractNonGroupLayers(x,r),g=r.length;continue}if(!x.getLatLng){u.addLayer(x);continue}this.hasLayer(x)||F.push(x)}return this},removeLayers:function(r){var a,h,u=r.length,_=this._featureGroup,p=this._nonPointGroup,c=!0;if(!this._map){for(a=0;a<u;a++){if(h=r[a],h instanceof L.LayerGroup){c&&(r=r.slice(),c=!1),this._extractNonGroupLayers(h,r),u=r.length;continue}this._arraySplice(this._needsClustering,h),p.removeLayer(h),this.hasLayer(h)&&this._needsRemoving.push({layer:h,latlng:h._latlng}),this.fire("layerremove",{layer:h})}return this}if(this._unspiderfy){this._unspiderfy();var g=r.slice(),m=u;for(a=0;a<m;a++){if(h=g[a],h instanceof L.LayerGroup){this._extractNonGroupLayers(h,g),m=g.length;continue}this._unspiderfyLayer(h)}}for(a=0;a<u;a++){if(h=r[a],h instanceof L.LayerGroup){c&&(r=r.slice(),c=!1),this._extractNonGroupLayers(h,r),u=r.length;continue}if(!h.__parent){p.removeLayer(h),this.fire("layerremove",{layer:h});continue}this._removeLayer(h,!0,!0),this.fire("layerremove",{layer:h}),_.hasLayer(h)&&(_.removeLayer(h),h.clusterShow&&h.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(r){r.off(this._childMarkerEventHandlers,this),delete r.__parent},this),this._map&&this._generateInitialClusters(),this},getBounds:function(){var r=new L.LatLngBounds;this._topClusterLevel&&r.extend(this._topClusterLevel._bounds);for(var a=this._needsClustering.length-1;a>=0;a--)r.extend(this._needsClustering[a].getLatLng());return r.extend(this._nonPointGroup.getBounds()),r},eachLayer:function(r,a){var h=this._needsClustering.slice(),u=this._needsRemoving,_,p,c;for(this._topClusterLevel&&this._topClusterLevel.getAllChildMarkers(h),p=h.length-1;p>=0;p--){for(_=!0,c=u.length-1;c>=0;c--)if(u[c].layer===h[p]){_=!1;break}_&&r.call(a,h[p])}this._nonPointGroup.eachLayer(r,a)},getLayers:function(){var r=[];return this.eachLayer(function(a){r.push(a)}),r},getLayer:function(r){var a=null;return r=parseInt(r,10),this.eachLayer(function(h){L.stamp(h)===r&&(a=h)}),a},hasLayer:function(r){if(!r)return!1;var a,h=this._needsClustering;for(a=h.length-1;a>=0;a--)if(h[a]===r)return!0;for(h=this._needsRemoving,a=h.length-1;a>=0;a--)if(h[a].layer===r)return!1;return!!(r.__parent&&r.__parent._group===this)||this._nonPointGroup.hasLayer(r)},zoomToShowLayer:function(r,a){var h=this._map;typeof a!="function"&&(a=function(){});var u=function(){(h.hasLayer(r)||h.hasLayer(r.__parent))&&!this._inZoomAnimation&&(this._map.off("moveend",u,this),this.off("animationend",u,this),h.hasLayer(r)?a():r.__parent._icon&&(this.once("spiderfied",a,this),r.__parent.spiderfy()))};r._icon&&this._map.getBounds().contains(r.getLatLng())?a():r.__parent._zoom<Math.round(this._map._zoom)?(this._map.on("moveend",u,this),this._map.panTo(r.getLatLng())):(this._map.on("moveend",u,this),this.on("animationend",u,this),r.__parent.zoomToBounds())},onAdd:function(r){this._map=r;var a,h,u;if(!isFinite(this._map.getMaxZoom()))throw"Map has no maxZoom specified";for(this._featureGroup.addTo(r),this._nonPointGroup.addTo(r),this._gridClusters||this._generateInitialClusters(),this._maxLat=r.options.crs.projection.MAX_LATITUDE,a=0,h=this._needsRemoving.length;a<h;a++)u=this._needsRemoving[a],u.newlatlng=u.layer._latlng,u.layer._latlng=u.latlng;for(a=0,h=this._needsRemoving.length;a<h;a++)u=this._needsRemoving[a],this._removeLayer(u.layer,!0),u.layer._latlng=u.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(),h=this._needsClustering,this._needsClustering=[],this.addLayers(h,!0)},onRemove:function(r){r.off("zoomend",this._zoomEnd,this),r.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(r){for(var a=r;a&&!a._icon;)a=a.__parent;return a||null},_arraySplice:function(r,a){for(var h=r.length-1;h>=0;h--)if(r[h]===a)return r.splice(h,1),!0},_removeFromGridUnclustered:function(r,a){for(var h=this._map,u=this._gridUnclustered,_=Math.floor(this._map.getMinZoom());a>=_&&u[a].removeObject(r,h.project(r.getLatLng(),a));a--);},_childMarkerDragStart:function(r){r.target.__dragStart=r.target._latlng},_childMarkerMoved:function(r){if(!this._ignoreMove&&!r.target.__dragStart){var a=r.target._popup&&r.target._popup.isOpen();this._moveChild(r.target,r.oldLatLng,r.latlng),a&&r.target.openPopup()}},_moveChild:function(r,a,h){r._latlng=a,this.removeLayer(r),r._latlng=h,this.addLayer(r)},_childMarkerDragEnd:function(r){var a=r.target.__dragStart;delete r.target.__dragStart,a&&this._moveChild(r.target,a,r.target._latlng)},_removeLayer:function(r,a,h){var u=this._gridClusters,_=this._gridUnclustered,p=this._featureGroup,c=this._map,g=Math.floor(this._map.getMinZoom());a&&this._removeFromGridUnclustered(r,this._maxZoom);var m=r.__parent,b=m._markers,x;for(this._arraySplice(b,r);m&&(m._childCount--,m._boundsNeedUpdate=!0,!(m._zoom<g));)a&&m._childCount<=1?(x=m._markers[0]===r?m._markers[1]:m._markers[0],u[m._zoom].removeObject(m,c.project(m._cLatLng,m._zoom)),_[m._zoom].addObject(x,c.project(x.getLatLng(),m._zoom)),this._arraySplice(m.__parent._childClusters,m),m.__parent._markers.push(x),x.__parent=m.__parent,m._icon&&(p.removeLayer(m),h||p.addLayer(x))):m._iconNeedsUpdate=!0,m=m.__parent;delete r.__parent},_isOrIsParent:function(r,a){for(;a;){if(r===a)return!0;a=a.parentNode}return!1},fire:function(r,a,h){if(a&&a.layer instanceof L.MarkerCluster){if(a.originalEvent&&this._isOrIsParent(a.layer._icon,a.originalEvent.relatedTarget))return;r="cluster"+r}L.FeatureGroup.prototype.fire.call(this,r,a,h)},listens:function(r,a){return L.FeatureGroup.prototype.listens.call(this,r,a)||L.FeatureGroup.prototype.listens.call(this,"cluster"+r,a)},_defaultIconCreateFunction:function(r){var a=r.getChildCount(),h=" marker-cluster-";return a<10?h+="small":a<100?h+="medium":h+="large",new L.DivIcon({html:"<div><span>"+a+"</span></div>",className:"marker-cluster"+h,iconSize:new L.Point(40,40)})},_bindEvents:function(){var r=this._map,a=this.options.spiderfyOnMaxZoom,h=this.options.showCoverageOnHover,u=this.options.zoomToBoundsOnClick,_=this.options.spiderfyOnEveryZoom;(a||u||_)&&this.on("clusterclick clusterkeypress",this._zoomOrSpiderfy,this),h&&(this.on("clustermouseover",this._showCoverage,this),this.on("clustermouseout",this._hideCoverage,this),r.on("zoomend",this._hideCoverage,this))},_zoomOrSpiderfy:function(r){var a=r.layer,h=a;if(!(r.type==="clusterkeypress"&&r.originalEvent&&r.originalEvent.keyCode!==13)){for(;h._childClusters.length===1;)h=h._childClusters[0];h._zoom===this._maxZoom&&h._childCount===a._childCount&&this.options.spiderfyOnMaxZoom?a.spiderfy():this.options.zoomToBoundsOnClick&&a.zoomToBounds(),this.options.spiderfyOnEveryZoom&&a.spiderfy(),r.originalEvent&&r.originalEvent.keyCode===13&&this._map._container.focus()}},_showCoverage:function(r){var a=this._map;this._inZoomAnimation||(this._shownPolygon&&a.removeLayer(this._shownPolygon),r.layer.getChildCount()>2&&r.layer!==this._spiderfied&&(this._shownPolygon=new L.Polygon(r.layer.getConvexHull(),this.options.polygonOptions),a.addLayer(this._shownPolygon)))},_hideCoverage:function(){this._shownPolygon&&(this._map.removeLayer(this._shownPolygon),this._shownPolygon=null)},_unbindEvents:function(){var r=this.options.spiderfyOnMaxZoom,a=this.options.showCoverageOnHover,h=this.options.zoomToBoundsOnClick,u=this.options.spiderfyOnEveryZoom,_=this._map;(r||h||u)&&this.off("clusterclick clusterkeypress",this._zoomOrSpiderfy,this),a&&(this.off("clustermouseover",this._showCoverage,this),this.off("clustermouseout",this._hideCoverage,this),_.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 r=this._getExpandedVisibleBounds();this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),this._zoom,r),this._topClusterLevel._recursivelyAddChildrenToMap(null,Math.round(this._map._zoom),r),this._currentShownBounds=r}},_generateInitialClusters:function(){var r=Math.ceil(this._map.getMaxZoom()),a=Math.floor(this._map.getMinZoom()),h=this.options.maxClusterRadius,u=h;typeof h!="function"&&(u=function(){return h}),this.options.disableClusteringAtZoom!==null&&(r=this.options.disableClusteringAtZoom-1),this._maxZoom=r,this._gridClusters={},this._gridUnclustered={};for(var _=r;_>=a;_--)this._gridClusters[_]=new L.DistanceGrid(u(_)),this._gridUnclustered[_]=new L.DistanceGrid(u(_));this._topClusterLevel=new this._markerCluster(this,a-1)},_addLayer:function(r,a){var h=this._gridClusters,u=this._gridUnclustered,_=Math.floor(this._map.getMinZoom()),p,c;for(this.options.singleMarkerMode&&this._overrideMarkerIcon(r),r.on(this._childMarkerEventHandlers,this);a>=_;a--){p=this._map.project(r.getLatLng(),a);var g=h[a].getNearObject(p);if(g){g._addChild(r),r.__parent=g;return}if(g=u[a].getNearObject(p),g){var m=g.__parent;m&&this._removeLayer(g,!1);var b=new this._markerCluster(this,a,g,r);h[a].addObject(b,this._map.project(b._cLatLng,a)),g.__parent=b,r.__parent=b;var x=b;for(c=a-1;c>m._zoom;c--)x=new this._markerCluster(this,c,x),h[c].addObject(x,this._map.project(g.getLatLng(),c));m._addChild(x),this._removeFromGridUnclustered(g,a);return}u[a].addObject(r,p)}this._topClusterLevel._addChild(r),r.__parent=this._topClusterLevel},_refreshClustersIcons:function(){this._featureGroup.eachLayer(function(r){r instanceof L.MarkerCluster&&r._iconNeedsUpdate&&r._updateIcon()})},_enqueue:function(r){this._queue.push(r),this._queueTimeout||(this._queueTimeout=setTimeout(L.bind(this._processQueue,this),300))},_processQueue:function(){for(var r=0;r<this._queue.length;r++)this._queue[r].call(this);this._queue.length=0,clearTimeout(this._queueTimeout),this._queueTimeout=null},_mergeSplitClusters:function(){var r=Math.round(this._map._zoom);this._processQueue(),this._zoom<r&&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,r)):this._zoom>r?(this._animationStart(),this._animationZoomOut(this._zoom,r)):this._moveEnd()},_getExpandedVisibleBounds:function(){if(this.options.removeOutsideVisibleBounds){if(L.Browser.mobile)return this._checkBoundsMaxLat(this._map.getBounds())}else return this._mapBoundsInfinite;return this._checkBoundsMaxLat(this._map.getBounds().pad(1))},_checkBoundsMaxLat:function(r){var a=this._maxLat;return a!==void 0&&(r.getNorth()>=a&&(r._northEast.lat=1/0),r.getSouth()<=-a&&(r._southWest.lat=-1/0)),r},_animationAddLayerNonAnimated:function(r,a){if(a===r)this._featureGroup.addLayer(r);else if(a._childCount===2){a._addToMap();var h=a.getAllChildMarkers();this._featureGroup.removeLayer(h[0]),this._featureGroup.removeLayer(h[1])}else a._updateIcon()},_extractNonGroupLayers:function(r,a){var h=r.getLayers(),u=0,_;for(a=a||[];u<h.length;u++){if(_=h[u],_ instanceof L.LayerGroup){this._extractNonGroupLayers(_,a);continue}a.push(_)}return a},_overrideMarkerIcon:function(r){var a=r.options.icon=this.options.iconCreateFunction({getChildCount:function(){return 1},getAllChildMarkers:function(){return[r]}});return a}});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(r,a){this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),r),this._topClusterLevel._recursivelyAddChildrenToMap(null,a,this._getExpandedVisibleBounds()),this.fire("animationend")},_animationZoomOut:function(r,a){this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),r),this._topClusterLevel._recursivelyAddChildrenToMap(null,a,this._getExpandedVisibleBounds()),this.fire("animationend")},_animationAddLayer:function(r,a){this._animationAddLayerNonAnimated(r,a)}},_withAnimation:{_animationStart:function(){this._map._mapPane.className+=" leaflet-cluster-anim",this._inZoomAnimation++},_animationZoomIn:function(r,a){var h=this._getExpandedVisibleBounds(),u=this._featureGroup,_=Math.floor(this._map.getMinZoom()),p;this._ignoreMove=!0,this._topClusterLevel._recursively(h,r,_,function(c){var g=c._latlng,m=c._markers,b;for(h.contains(g)||(g=null),c._isSingleParent()&&r+1===a?(u.removeLayer(c),c._recursivelyAddChildrenToMap(null,a,h)):(c.clusterHide(),c._recursivelyAddChildrenToMap(g,a,h)),p=m.length-1;p>=0;p--)b=m[p],h.contains(b._latlng)||u.removeLayer(b)}),this._forceLayout(),this._topClusterLevel._recursivelyBecomeVisible(h,a),u.eachLayer(function(c){!(c instanceof L.MarkerCluster)&&c._icon&&c.clusterShow()}),this._topClusterLevel._recursively(h,r,a,function(c){c._recursivelyRestoreChildPositions(a)}),this._ignoreMove=!1,this._enqueue(function(){this._topClusterLevel._recursively(h,r,_,function(c){u.removeLayer(c),c.clusterShow()}),this._animationEnd()})},_animationZoomOut:function(r,a){this._animationZoomOutSingle(this._topClusterLevel,r-1,a),this._topClusterLevel._recursivelyAddChildrenToMap(null,a,this._getExpandedVisibleBounds()),this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),r,this._getExpandedVisibleBounds())},_animationAddLayer:function(r,a){var h=this,u=this._featureGroup;u.addLayer(r),a!==r&&(a._childCount>2?(a._updateIcon(),this._forceLayout(),this._animationStart(),r._setPos(this._map.latLngToLayerPoint(a.getLatLng())),r.clusterHide(),this._enqueue(function(){u.removeLayer(r),r.clusterShow(),h._animationEnd()})):(this._forceLayout(),h._animationStart(),h._animationZoomOutSingle(a,this._map.getMaxZoom(),this._zoom)))}},_animationZoomOutSingle:function(r,a,h){var u=this._getExpandedVisibleBounds(),_=Math.floor(this._map.getMinZoom());r._recursivelyAnimateChildrenInAndAddSelfToMap(u,_,a+1,h);var p=this;this._forceLayout(),r._recursivelyBecomeVisible(u,h),this._enqueue(function(){if(r._childCount===1){var c=r._markers[0];this._ignoreMove=!0,c.setLatLng(c.getLatLng()),this._ignoreMove=!1,c.clusterShow&&c.clusterShow()}else r._recursively(u,h,_,function(g){g._recursivelyRemoveChildrenFromMap(u,_,a+1)});p._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(r){return new L.MarkerClusterGroup(r)};var O=L.MarkerCluster=L.Marker.extend({options:L.Icon.prototype.options,initialize:function(r,a,h,u){L.Marker.prototype.initialize.call(this,h?h._cLatLng||h.getLatLng():new L.LatLng(0,0),{icon:this,pane:r.options.clusterPane}),this._group=r,this._zoom=a,this._markers=[],this._childClusters=[],this._childCount=0,this._iconNeedsUpdate=!0,this._boundsNeedUpdate=!0,this._bounds=new L.LatLngBounds,h&&this._addChild(h),u&&this._addChild(u)},getAllChildMarkers:function(r,a){r=r||[];for(var h=this._childClusters.length-1;h>=0;h--)this._childClusters[h].getAllChildMarkers(r,a);for(var u=this._markers.length-1;u>=0;u--)a&&this._markers[u].__dragStart||r.push(this._markers[u]);return r},getChildCount:function(){return this._childCount},zoomToBounds:function(r){for(var a=this._childClusters.slice(),h=this._group._map,u=h.getBoundsZoom(this._bounds),_=this._zoom+1,p=h.getZoom(),c;a.length>0&&u>_;){_++;var g=[];for(c=0;c<a.length;c++)g=g.concat(a[c]._childClusters);a=g}u>_?this._group._map.setView(this._latlng,_):u<=p?this._group._map.setView(this._latlng,p+1):this._group._map.fitBounds(this._bounds,r)},getBounds:function(){var r=new L.LatLngBounds;return r.extend(this._bounds),r},_updateIcon:function(){this._iconNeedsUpdate=!0,this._icon&&this.setIcon(this)},createIcon:function(){return this._iconNeedsUpdate&&(this._iconObj=this._group.options.iconCreateFunction(this),this._iconNeedsUpdate=!1),this._iconObj.createIcon()},createShadow:function(){return this._iconObj.createShadow()},_addChild:function(r,a){this._iconNeedsUpdate=!0,this._boundsNeedUpdate=!0,this._setClusterCenter(r),r instanceof L.MarkerCluster?(a||(this._childClusters.push(r),r.__parent=this),this._childCount+=r._childCount):(a||this._markers.push(r),this._childCount++),this.__parent&&this.__parent._addChild(r,!0)},_setClusterCenter:function(r){this._cLatLng||(this._cLatLng=r._cLatLng||r._latlng)},_resetBounds:function(){var r=this._bounds;r._southWest&&(r._southWest.lat=1/0,r._southWest.lng=1/0),r._northEast&&(r._northEast.lat=-1/0,r._northEast.lng=-1/0)},_recalculateBounds:function(){var r=this._markers,a=this._childClusters,h=0,u=0,_=this._childCount,p,c,g,m;if(_!==0){for(this._resetBounds(),p=0;p<r.length;p++)g=r[p]._latlng,this._bounds.extend(g),h+=g.lat,u+=g.lng;for(p=0;p<a.length;p++)c=a[p],c._boundsNeedUpdate&&c._recalculateBounds(),this._bounds.extend(c._bounds),g=c._wLatLng,m=c._childCount,h+=g.lat*m,u+=g.lng*m;this._latlng=this._wLatLng=new L.LatLng(h/_,u/_),this._boundsNeedUpdate=!1}},_addToMap:function(r){r&&(this._backupLatlng=this._latlng,this.setLatLng(r)),this._group._featureGroup.addLayer(this)},_recursivelyAnimateChildrenIn:function(r,a,h){this._recursively(r,this._group._map.getMinZoom(),h-1,function(u){var _=u._markers,p,c;for(p=_.length-1;p>=0;p--)c=_[p],c._icon&&(c._setPos(a),c.clusterHide())},function(u){var _=u._childClusters,p,c;for(p=_.length-1;p>=0;p--)c=_[p],c._icon&&(c._setPos(a),c.clusterHide())})},_recursivelyAnimateChildrenInAndAddSelfToMap:function(r,a,h,u){this._recursively(r,u,a,function(_){_._recursivelyAnimateChildrenIn(r,_._group._map.latLngToLayerPoint(_.getLatLng()).round(),h),_._isSingleParent()&&h-1===u?(_.clusterShow(),_._recursivelyRemoveChildrenFromMap(r,a,h)):_.clusterHide(),_._addToMap()})},_recursivelyBecomeVisible:function(r,a){this._recursively(r,this._group._map.getMinZoom(),a,null,function(h){h.clusterShow()})},_recursivelyAddChildrenToMap:function(r,a,h){this._recursively(h,this._group._map.getMinZoom()-1,a,function(u){if(a!==u._zoom)for(var _=u._markers.length-1;_>=0;_--){var p=u._markers[_];h.contains(p._latlng)&&(r&&(p._backupLatlng=p.getLatLng(),p.setLatLng(r),p.clusterHide&&p.clusterHide()),u._group._featureGroup.addLayer(p))}},function(u){u._addToMap(r)})},_recursivelyRestoreChildPositions:function(r){for(var a=this._markers.length-1;a>=0;a--){var h=this._markers[a];h._backupLatlng&&(h.setLatLng(h._backupLatlng),delete h._backupLatlng)}if(r-1===this._zoom)for(var u=this._childClusters.length-1;u>=0;u--)this._childClusters[u]._restorePosition();else for(var _=this._childClusters.length-1;_>=0;_--)this._childClusters[_]._recursivelyRestoreChildPositions(r)},_restorePosition:function(){this._backupLatlng&&(this.setLatLng(this._backupLatlng),delete this._backupLatlng)},_recursivelyRemoveChildrenFromMap:function(r,a,h,u){var _,p;this._recursively(r,a-1,h-1,function(c){for(p=c._markers.length-1;p>=0;p--)_=c._markers[p],(!u||!u.contains(_._latlng))&&(c._group._featureGroup.removeLayer(_),_.clusterShow&&_.clusterShow())},function(c){for(p=c._childClusters.length-1;p>=0;p--)_=c._childClusters[p],(!u||!u.contains(_._latlng))&&(c._group._featureGroup.removeLayer(_),_.clusterShow&&_.clusterShow())})},_recursively:function(r,a,h,u,_){var p=this._childClusters,c=this._zoom,g,m;if(a<=c&&(u&&u(this),_&&c===h&&_(this)),c<a||c<h)for(g=p.length-1;g>=0;g--)m=p[g],m._boundsNeedUpdate&&m._recalculateBounds(),r.intersects(m._bounds)&&m._recursively(r,a,h,u,_)},_isSingleParent:function(){return this._childClusters.length>0&&this._childClusters[0]._childCount===this._childCount}});L.Marker.include({clusterHide:function(){var r=this.options.opacity;return this.setOpacity(0),this.options.opacity=r,this},clusterShow:function(){return this.setOpacity(this.options.opacity)}}),L.DistanceGrid=function(r){this._cellSize=r,this._sqCellSize=r*r,this._grid={},this._objectPoint={}},L.DistanceGrid.prototype={addObject:function(r,a){var h=this._getCoord(a.x),u=this._getCoord(a.y),_=this._grid,p=_[u]=_[u]||{},c=p[h]=p[h]||[],g=L.Util.stamp(r);this._objectPoint[g]=a,c.push(r)},updateObject:function(r,a){this.removeObject(r),this.addObject(r,a)},removeObject:function(r,a){var h=this._getCoord(a.x),u=this._getCoord(a.y),_=this._grid,p=_[u]=_[u]||{},c=p[h]=p[h]||[],g,m;for(delete this._objectPoint[L.Util.stamp(r)],g=0,m=c.length;g<m;g++)if(c[g]===r)return c.splice(g,1),m===1&&delete p[h],!0},eachObject:function(r,a){var h,u,_,p,c,g,m,b=this._grid;for(h in b){c=b[h];for(u in c)for(g=c[u],_=0,p=g.length;_<p;_++)m=r.call(a,g[_]),m&&(_--,p--)}},getNearObject:function(r){var a=this._getCoord(r.x),h=this._getCoord(r.y),u,_,p,c,g,m,b,x,R=this._objectPoint,S=this._sqCellSize,F=null;for(u=h-1;u<=h+1;u++)if(c=this._grid[u],c){for(_=a-1;_<=a+1;_++)if(g=c[_],g)for(p=0,m=g.length;p<m;p++)b=g[p],x=this._sqDist(R[L.Util.stamp(b)],r),(x<S||x<=S&&F===null)&&(S=x,F=b)}return F},_getCoord:function(r){var a=Math.floor(r/this._cellSize);return isFinite(a)?a:r},_sqDist:function(r,a){var h=a.x-r.x,u=a.y-r.y;return h*h+u*u}},function(){L.QuickHull={getDistant:function(r,a){var h=a[1].lat-a[0].lat,u=a[0].lng-a[1].lng;return u*(r.lat-a[0].lat)+h*(r.lng-a[0].lng)},findMostDistantPointFromBaseLine:function(r,a){var h=0,u=null,_=[],p,c,g;for(p=a.length-1;p>=0;p--){if(c=a[p],g=this.getDistant(c,r),g>0)_.push(c);else continue;g>h&&(h=g,u=c)}return{maxPoint:u,newPoints:_}},buildConvexHull:function(r,a){var h=[],u=this.findMostDistantPointFromBaseLine(r,a);return u.maxPoint?(h=h.concat(this.buildConvexHull([r[0],u.maxPoint],u.newPoints)),h=h.concat(this.buildConvexHull([u.maxPoint,r[1]],u.newPoints)),h):[r[0]]},getConvexHull:function(r){var a=!1,h=!1,u=!1,_=!1,p=null,c=null,g=null,m=null,b=null,x=null,R;for(R=r.length-1;R>=0;R--){var S=r[R];(a===!1||S.lat>a)&&(p=S,a=S.lat),(h===!1||S.lat<h)&&(c=S,h=S.lat),(u===!1||S.lng>u)&&(g=S,u=S.lng),(_===!1||S.lng<_)&&(m=S,_=S.lng)}h!==a?(x=c,b=p):(x=m,b=g);var F=[].concat(this.buildConvexHull([x,b],r),this.buildConvexHull([b,x],r));return F}}}(),L.MarkerCluster.include({getConvexHull:function(){var r=this.getAllChildMarkers(),a=[],h,u;for(u=r.length-1;u>=0;u--)h=r[u].getLatLng(),a.push(h);return L.QuickHull.getConvexHull(a)}}),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 r=this.getAllChildMarkers(null,!0),a=this._group,h=a._map,u=h.latLngToLayerPoint(this._latlng),_;this._group._unspiderfy(),this._group._spiderfied=this,this._group.options.spiderfyShapePositions?_=this._group.options.spiderfyShapePositions(r.length,u):r.length>=this._circleSpiralSwitchover?_=this._generatePointsSpiral(r.length,u):(u.y+=10,_=this._generatePointsCircle(r.length,u)),this._animationSpiderfy(r,_)}},unspiderfy:function(r){this._group._inZoomAnimation||(this._animationUnspiderfy(r),this._group._spiderfied=null)},_generatePointsCircle:function(r,a){var h=this._group.options.spiderfyDistanceMultiplier*this._circleFootSeparation*(2+r),u=h/this._2PI,_=this._2PI/r,p=[],c,g;for(u=Math.max(u,35),p.length=r,c=0;c<r;c++)g=this._circleStartAngle+c*_,p[c]=new L.Point(a.x+u*Math.cos(g),a.y+u*Math.sin(g))._round();return p},_generatePointsSpiral:function(r,a){var h=this._group.options.spiderfyDistanceMultiplier,u=h*this._spiralLengthStart,_=h*this._spiralFootSeparation,p=h*this._spiralLengthFactor*this._2PI,c=0,g=[],m;for(g.length=r,m=r;m>=0;m--)m<r&&(g[m]=new L.Point(a.x+u*Math.cos(c),a.y+u*Math.sin(c))._round()),c+=_/u+m*5e-4,u+=p/c;return g},_noanimationUnspiderfy:function(){var r=this._group,a=r._map,h=r._featureGroup,u=this.getAllChildMarkers(null,!0),_,p;for(r._ignoreMove=!0,this.setOpacity(1),p=u.length-1;p>=0;p--)_=u[p],h.removeLayer(_),_._preSpiderfyLatlng&&(_.setLatLng(_._preSpiderfyLatlng),delete _._preSpiderfyLatlng),_.setZIndexOffset&&_.setZIndexOffset(0),_._spiderLeg&&(a.removeLayer(_._spiderLeg),delete _._spiderLeg);r.fire("unspiderfied",{cluster:this,markers:u}),r._ignoreMove=!1,r._spiderfied=null}}),L.MarkerClusterNonAnimated=L.MarkerCluster.extend({_animationSpiderfy:function(r,a){var h=this._group,u=h._map,_=h._featureGroup,p=this._group.options.spiderLegPolylineOptions,c,g,m,b;for(h._ignoreMove=!0,c=0;c<r.length;c++)b=u.layerPointToLatLng(a[c]),g=r[c],m=new L.Polyline([this._latlng,b],p),u.addLayer(m),g._spiderLeg=m,g._preSpiderfyLatlng=g._latlng,g.setLatLng(b),g.setZIndexOffset&&g.setZIndexOffset(1e6),_.addLayer(g);this.setOpacity(.3),h._ignoreMove=!1,h.fire("spiderfied",{cluster:this,markers:r})},_animationUnspiderfy:function(){this._noanimationUnspiderfy()}}),L.MarkerCluster.include({_animationSpiderfy:function(r,a){var h=this,u=this._group,_=u._map,p=u._featureGroup,c=this._latlng,g=_.latLngToLayerPoint(c),m=L.Path.SVG,b=L.extend({},this._group.options.spiderLegPolylineOptions),x=b.opacity,R,S,F,H,mt,nt;for(x===void 0&&(x=L.MarkerClusterGroup.prototype.options.spiderLegPolylineOptions.opacity),m?(b.opacity=0,b.className=(b.className||"")+" leaflet-cluster-spider-leg"):b.opacity=x,u._ignoreMove=!0,R=0;R<r.length;R++)S=r[R],nt=_.layerPointToLatLng(a[R]),F=new L.Polyline([c,nt],b),_.addLayer(F),S._spiderLeg=F,m&&(H=F._path,mt=H.getTotalLength()+.1,H.style.strokeDasharray=mt,H.style.strokeDashoffset=mt),S.setZIndexOffset&&S.setZIndexOffset(1e6),S.clusterHide&&S.clusterHide(),p.addLayer(S),S._setPos&&S._setPos(g);for(u._forceLayout(),u._animationStart(),R=r.length-1;R>=0;R--)nt=_.layerPointToLatLng(a[R]),S=r[R],S._preSpiderfyLatlng=S._latlng,S.setLatLng(nt),S.clusterShow&&S.clusterShow(),m&&(F=S._spiderLeg,H=F._path,H.style.strokeDashoffset=0,F.setStyle({opacity:x}));this.setOpacity(.3),u._ignoreMove=!1,setTimeout(function(){u._animationEnd(),u.fire("spiderfied",{cluster:h,markers:r})},200)},_animationUnspiderfy:function(r){var a=this,h=this._group,u=h._map,_=h._featureGroup,p=r?u._latLngToNewLayerPoint(this._latlng,r.zoom,r.center):u.latLngToLayerPoint(this._latlng),c=this.getAllChildMarkers(null,!0),g=L.Path.SVG,m,b,x,R,S,F;for(h._ignoreMove=!0,h._animationStart(),this.setOpacity(1),b=c.length-1;b>=0;b--)m=c[b],m._preSpiderfyLatlng&&(m.closePopup(),m.setLatLng(m._preSpiderfyLatlng),delete m._preSpiderfyLatlng,F=!0,m._setPos&&(m._setPos(p),F=!1),m.clusterHide&&(m.clusterHide(),F=!1),F&&_.removeLayer(m),g&&(x=m._spiderLeg,R=x._path,S=R.getTotalLength()+.1,R.style.strokeDashoffset=S,x.setStyle({opacity:0})));h._ignoreMove=!1,setTimeout(function(){var H=0;for(b=c.length-1;b>=0;b--)m=c[b],m._spiderLeg&&H++;for(b=c.length-1;b>=0;b--)m=c[b],m._spiderLeg&&(m.clusterShow&&m.clusterShow(),m.setZIndexOffset&&m.setZIndexOffset(0),H>1&&_.removeLayer(m),u.removeLayer(m._spiderLeg),delete m._spiderLeg);h._animationEnd(),h.fire("unspiderfied",{cluster:a,markers:c})},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(r){L.DomUtil.hasClass(this._map._mapPane,"leaflet-touching")||(this._map.off("zoomanim",this._unspiderfyZoomAnim,this),this._unspiderfy(r))},_unspiderfyWrapper:function(){this._unspiderfy()},_unspiderfy:function(r){this._spiderfied&&this._spiderfied.unspiderfy(r)},_noanimationUnspiderfy:function(){this._spiderfied&&this._spiderfied._noanimationUnspiderfy()},_unspiderfyLayer:function(r){r._spiderLeg&&(this._featureGroup.removeLayer(r),r.clusterShow&&r.clusterShow(),r.setZIndexOffset&&r.setZIndexOffset(0),this._map.removeLayer(r._spiderLeg),delete r._spiderLeg)}}),L.MarkerClusterGroup.include({refreshClusters:function(r){return r?r instanceof L.MarkerClusterGroup?r=r._topClusterLevel.getAllChildMarkers():r instanceof L.LayerGroup?r=r._layers:r instanceof L.MarkerCluster?r=r.getAllChildMarkers():r instanceof L.Marker&&(r=[r]):r=this._topClusterLevel.getAllChildMarkers(),this._flagParentsIconsNeedUpdate(r),this._refreshClustersIcons(),this.options.singleMarkerMode&&this._refreshSingleMarkerModeMarkers(r),this},_flagParentsIconsNeedUpdate:function(r){var a,h;for(a in r)for(h=r[a].__parent;h;)h._iconNeedsUpdate=!0,h=h.__parent},_refreshSingleMarkerModeMarkers:function(r){var a,h;for(a in r)h=r[a],this.hasLayer(h)&&h.setIcon(this._overrideMarkerIcon(h))}}),L.Marker.include({refreshIconOptions:function(r,a){var h=this.options.icon;return L.setOptions(h,r),this.setIcon(h),a&&this.__parent&&this.__parent._group.refreshClusters(this),this}}),y.MarkerClusterGroup=Y,y.MarkerCluster=O,Object.defineProperty(y,"__esModule",{value:!0})})}(Ht,Ht.exports)),Ht.exports}Zn();const In={dialog:"_dialog_nq83g_1 _ds-dialog_dbymd_5"},Bn=typeof window<"u"&&typeof document<"u";function oe(K,A,y){return y===void 0?K.getAttribute(A)??null:(y===null?K.removeAttribute(A):K.getAttribute(A)!==y&&K.setAttribute(A,y),null)}`${Date.now().toString(36)}${Math.random().toString(36).slice(2,5)}`,`${In.dialog.split(" ")[0]}`;const Ce=(K,A,y)=>{const Y=document.createElement(K);if(y&&(Y.textContent=y),A)for(const[O,r]of Object.entries(A))oe(Y,O,r);return Y},An=typeof HTMLElement>"u"?class{}:HTMLElement,Nn=`:host {
|
|
677
|
-
--mtdsc-atlas-background: var(--ds-color-surface-default);
|
|
603
|
+
`,Ln=`:host {
|
|
678
604
|
--mtdsc-atlas-cluster-size: var(--mtds-8);
|
|
605
|
+
--mtdsc-atlas-background: #fbfbfb;
|
|
606
|
+
--mtdsc-atlas-border-color: var(--ds-color-border-subtle);
|
|
607
|
+
--mtdsc-atlas-border: var(--ds-border-width-default) solid
|
|
608
|
+
var(--mtdsc-atlas-border-color);
|
|
679
609
|
|
|
680
|
-
aspect-ratio: 2; /* TODO: make possible to overwrite */
|
|
681
610
|
border-radius: var(--ds-border-radius-md);
|
|
682
|
-
|
|
611
|
+
aspect-ratio: 2;
|
|
683
612
|
overflow: clip;
|
|
684
613
|
position: relative;
|
|
685
614
|
user-select: none;
|
|
@@ -687,16 +616,22 @@ svg.leaflet-image-layer.leaflet-interactive path {\r
|
|
|
687
616
|
:host(:not([hidden])) {
|
|
688
617
|
display: grid;
|
|
689
618
|
}
|
|
690
|
-
|
|
691
619
|
:host([data-cursor="pointer"]) .leaflet-grab {
|
|
692
620
|
cursor: pointer;
|
|
693
621
|
}
|
|
622
|
+
.leaflet-tile-container {
|
|
623
|
+
filter: grayscale(1) contrast(0.75) brightness(1.15);
|
|
624
|
+
}
|
|
625
|
+
:host([data-tiles="color"]) .leaflet-tile-container {
|
|
626
|
+
filter: grayscale(0.2);
|
|
627
|
+
}
|
|
694
628
|
:host([data-tiles="color"]) {
|
|
695
|
-
--mtdsc-atlas-background: #
|
|
629
|
+
--mtdsc-atlas-background: #e5fcfd;
|
|
696
630
|
}
|
|
697
|
-
:host(
|
|
698
|
-
:
|
|
699
|
-
|
|
631
|
+
:host:has(.leaflet-container:focus-visible) {
|
|
632
|
+
box-shadow: var(--dsc-focus-boxShadow);
|
|
633
|
+
outline: var(--dsc-focus-outline);
|
|
634
|
+
outline-offset: var(--ds-border-width-focus);
|
|
700
635
|
}
|
|
701
636
|
slot {
|
|
702
637
|
display: grid;
|
|
@@ -713,10 +648,20 @@ slot {
|
|
|
713
648
|
border: 0;
|
|
714
649
|
}
|
|
715
650
|
.leaflet-container {
|
|
716
|
-
font: inherit;
|
|
717
651
|
background: var(--mtdsc-atlas-background);
|
|
652
|
+
border-radius: inherit;
|
|
653
|
+
border: var(--mtdsc-atlas-border);
|
|
654
|
+
box-sizing: border-box;
|
|
655
|
+
font: inherit;
|
|
718
656
|
outline: 0;
|
|
657
|
+
position: relative;
|
|
658
|
+
z-index: 1; /* Ensure <slot> is always on top */
|
|
719
659
|
}
|
|
660
|
+
.leaflet-control-attribution {
|
|
661
|
+
font-size: 12px;
|
|
662
|
+
border-top-left-radius: var(--ds-border-radius-md);
|
|
663
|
+
}
|
|
664
|
+
|
|
720
665
|
.map-pin rect {
|
|
721
666
|
fill: var(--ds-color-base-contrast-default);
|
|
722
667
|
}
|
|
@@ -740,6 +685,5 @@ slot {
|
|
|
740
685
|
/* biome-ignore lint/complexity/noImportantStyles: need to overwrite style attribute */
|
|
741
686
|
margin: calc(var(--mtdsc-atlas-cluster-size) / -2) !important;
|
|
742
687
|
}
|
|
743
|
-
`;pt.Marker.prototype.options.icon=pt.divIcon({html:'<svg class="map-pin" viewBox="0 0 256 256"><rect x="78" y="50" width="100" height="100" /><path fill="var(--mtds-)" d="M128,16a88.1,88.1,0,0,0-88,88c0,75.3,80,132.17,83.41,134.55a8,8,0,0,0,9.18,0C136,236.17,216,179.3,216,104A88.1,88.1,0,0,0,128,16Zm0,56a32,32,0,1,1-32,32A32,32,0,0,1,128,72Z"/></svg>',iconAnchor:[15,30],iconSize:[30,30]});const Rn="57.95, 4.73, 71.19, 31.44, 15",Dn="https://cache.kartverket.no/v1/wmts/1.0.0/topo/default/webmercator/{z}/{y}/{x}.png",Fn="https://cache.kartverket.no/v1/wmts/1.0.0/topograatone/default/webmercator/{z}/{y}/{x}.png";class li extends An{map;tiles;cluster;leaflet;static get observedAttributes(){return["data-view","data-layers","data-tiles"]}constructor(){super(),this.leaflet=Sn,this.attachShadow({mode:"open"}).append(Ce("style",{},`${zn}
|
|
744
|
-
${On}
|
|
745
|
-
${Nn}`),Ce("slot"),Ce("div"))}connectedCallback(){const A=JSON.parse(`[${oe(this,"data-view")||Rn}]`),y=this.shadowRoot?.lastElementChild,Y=Number(oe(this,"data-cluster"))||1,O=oe(this,"data-tiles")==="color"?Dn:Fn;if(this.tiles=pt.tileLayer(O,{maxZoom:18}),this.cluster=pt.markerClusterGroup({showCoverageOnHover:!1,disableClusteringAtZoom:Y}),this.map=pt.map(y,{layers:[this.tiles,this.cluster],attributionControl:!1,wheelPxPerZoomLevel:20,zoomControl:!1,zoomSnap:0}),this.map.addControl(pt.control.zoom({position:"bottomright"})),A.length===3&&this.map.setView([A[0],A[1]],A[2]),A.length>=4){const r=[A[0],A[1]],a=[A[2],A[3]],h=[A[4]??0,A[5]??A[4]??0];this.map.fitBounds([r,a],{padding:h})}}addMarker(A,y){return pt.marker(A,y).addTo(this.cluster||this.map)}disconnectedCallback(){this.map?.remove()}}return Bn&&!window.customElements.get("mtds-atlas")&&window.customElements.define("mtds-atlas",li),Pe.MTDSAtlasElement=li,Object.defineProperty(Pe,Symbol.toStringTag,{value:"Module"}),Pe}({});
|
|
688
|
+
`;_.MarkerClusterGroup=_.FeatureGroup.extend({options:{maxClusterRadius:80,iconCreateFunction:null,spiderfyOnMaxZoom:!0,showCoverageOnHover:!0,zoomToBoundsOnClick:!0,singleMarkerMode:!1,disableClusteringAtZoom:null,removeOutsideVisibleBounds:!0,animate:!0,animateAddingMarkers:!1,spiderfyDistanceMultiplier:1,spiderLegPolylineOptions:{weight:1.5,color:"#222",opacity:.5},chunkedLoading:!1,chunkInterval:200,chunkDelay:50,chunkProgress:null,polygonOptions:{}},initialize:function(n){_.Util.setOptions(this,n),this.options.iconCreateFunction||(this.options.iconCreateFunction=this._defaultIconCreateFunction),this.options.clusterPane||(this.options.clusterPane=_.Marker.prototype.options.pane),this._featureGroup=new _.FeatureGroup,this._featureGroup.addEventParent(this),this._nonPointGroup=new _.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=_.DomUtil.TRANSITION&&this.options.animate;Object.assign(this,t?this._withAnimation:this._noAnimation),this._markerCluster=t?_.MarkerCluster:_.MarkerClusterNonAnimated},addLayer:function(n){if(n instanceof _.LayerGroup)return this.addLayers([n]);if(!n.getLatLng)return this._nonPointGroup.addLayer(n),this.fire("layeradd",{layer:n,propagatedFrom:n}),this;if(!this._map)return this._needsClustering.push(n),this.fire("layeradd",{layer:n,propagatedFrom:n}),this;if(this.hasLayer(n))return this;this._unspiderfy&&this._unspiderfy(),this._addLayer(n,this._maxZoom),this.fire("layeradd",{layer:n}),this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons();var t=n,e=this._zoom;if(n.__parent)for(;t.__parent._zoom>=e;)t=t.__parent;return this._currentShownBounds.contains(t.getLatLng())&&(this.options.animateAddingMarkers?this._animationAddLayer(n,t):this._animationAddLayerNonAnimated(n,t)),this},removeLayer:function(n){return n instanceof _.LayerGroup?this.removeLayers([n]):n.getLatLng?this._map?n.__parent?(this._unspiderfy&&(this._unspiderfy(),this._unspiderfyLayer(n)),this._removeLayer(n,!0),this.fire("layerremove",{layer:n,propagatedFrom:n}),this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),n.off(this._childMarkerEventHandlers,this),this._featureGroup.hasLayer(n)&&(this._featureGroup.removeLayer(n),n.clusterShow&&n.clusterShow()),this):this:(!this._arraySplice(this._needsClustering,n)&&this.hasLayer(n)&&this._needsRemoving.push({layer:n,latlng:n._latlng}),this.fire("layerremove",{layer:n,propagatedFrom:n}),this):(this._nonPointGroup.removeLayer(n),this.fire("layerremove",{layer:n,propagatedFrom:n}),this)},addLayers:function(n,t){if(!Array.isArray(n))return this.addLayer(n);var e=this._featureGroup,i=this._nonPointGroup,s=this.options.chunkedLoading,o=this.options.chunkInterval,r=this.options.chunkProgress,a=n.length,h=0,l=!0,d;if(this._map){const c=Date.now(),f=()=>{for(var m=Date.now();h<a&&!(s&&h%200===0&&Date.now()-m>o);h++){if(d=n[h],d instanceof _.LayerGroup){l&&(n=n.slice(),l=!1),this._extractNonGroupLayers(d,n),a=n.length;continue}if(!d.getLatLng){i.addLayer(d),t||this.fire("layeradd",{layer:d,propagatedFrom:d});continue}if(!this.hasLayer(d)&&(this._addLayer(d,this._maxZoom),t||this.fire("layeradd",{layer:d,propagatedFrom:d}),d.__parent&&d.__parent.getChildCount()===2)){const C=d.__parent.getAllChildMarkers(),k=C[0]===d?C[1]:C[0];e.removeLayer(k)}}r&&r(h,a,Date.now()-c),h===a?(this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),this._topClusterLevel._recursivelyAddChildrenToMap(null,this._zoom,this._currentShownBounds)):setTimeout(f,this.options.chunkDelay)};f()}else{const c=this._needsClustering;for(;h<a;h++){if(d=n[h],d instanceof _.LayerGroup){l&&(n=n.slice(),l=!1),this._extractNonGroupLayers(d,n),a=n.length;continue}if(!d.getLatLng){i.addLayer(d);continue}this.hasLayer(d)||c.push(d)}}return this},removeLayers:function(n){var t,e,i=n.length,s=this._featureGroup,o=this._nonPointGroup,r=!0;if(!this._map){for(t=0;t<i;t++){if(e=n[t],e instanceof _.LayerGroup){r&&(n=n.slice(),r=!1),this._extractNonGroupLayers(e,n),i=n.length;continue}this._arraySplice(this._needsClustering,e),o.removeLayer(e),this.hasLayer(e)&&this._needsRemoving.push({layer:e,latlng:e._latlng}),this.fire("layerremove",{layer:e,propagatedFrom:e})}return this}if(this._unspiderfy){this._unspiderfy();const a=n.slice();let h=i;for(t=0;t<h;t++){if(e=a[t],e instanceof _.LayerGroup){this._extractNonGroupLayers(e,a),h=a.length;continue}this._unspiderfyLayer(e)}}for(t=0;t<i;t++){if(e=n[t],e instanceof _.LayerGroup){r&&(n=n.slice(),r=!1),this._extractNonGroupLayers(e,n),i=n.length;continue}if(!e.__parent){o.removeLayer(e),this.fire("layerremove",{layer:e,propagatedFrom:e});continue}this._removeLayer(e,!0,!0),this.fire("layerremove",{layer:e,propagatedFrom:e}),s.hasLayer(e)&&(s.removeLayer(e),e.clusterShow&&e.clusterShow())}return this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),this._topClusterLevel._recursivelyAddChildrenToMap(null,this._zoom,this._currentShownBounds),this},clearLayers:function(){return this._map||(this._needsClustering=[],delete this._gridClusters,delete this._gridUnclustered),this._noanimationUnspiderfy&&this._noanimationUnspiderfy(),this._featureGroup.clearLayers(),this._nonPointGroup.clearLayers(),this.eachLayer(function(n){n.off(this._childMarkerEventHandlers,this),delete n.__parent},this),this._map&&this._generateInitialClusters(),this},getBounds:function(){var n=new _.LatLngBounds;this._topClusterLevel&&n.extend(this._topClusterLevel._bounds);for(let t=this._needsClustering.length-1;t>=0;t--)n.extend(this._needsClustering[t].getLatLng());return n.extend(this._nonPointGroup.getBounds()),n},eachLayer:function(n,t){var e=this._needsClustering.slice(),i=this._needsRemoving,s,o,r;for(this._topClusterLevel&&this._topClusterLevel.getAllChildMarkers(e),o=e.length-1;o>=0;o--){for(s=!0,r=i.length-1;r>=0;r--)if(i[r].layer===e[o]){s=!1;break}s&&n.call(t,e[o])}this._nonPointGroup.eachLayer(n,t)},getLayers:function(){var n=[];return this.eachLayer(t=>{n.push(t)}),n},getLayer:function(n){var t=null;return n=parseInt(n,10),this.eachLayer(e=>{_.stamp(e)===n&&(t=e)}),t},hasLayer:function(n){if(!n)return!1;var t,e=this._needsClustering;for(t=e.length-1;t>=0;t--)if(e[t]===n)return!0;for(e=this._needsRemoving,t=e.length-1;t>=0;t--)if(e[t].layer===n)return!1;return!!(n.__parent&&n.__parent._group===this)||this._nonPointGroup.hasLayer(n)},zoomToShowLayer:function(n,t){typeof t!="function"&&(t=()=>{});var e=function(){(n._icon||n.__parent._icon)&&!this._inZoomAnimation&&(this._map.off("moveend",e,this),this.off("animationend",e,this),n._icon?t():n.__parent._icon&&(this.once("spiderfied",t,this),n.__parent.spiderfy()))};n._icon&&this._map.getBounds().contains(n.getLatLng())?t():n.__parent._zoom<Math.round(this._map._zoom)?(this._map.on("moveend",e,this),this._map.panTo(n.getLatLng())):(this._map.on("moveend",e,this),this.on("animationend",e,this),n.__parent.zoomToBounds())},onAdd:function(n){this._map=n;var t,e,i;if(!Number.isFinite(this._map.getMaxZoom()))throw"Map has no maxZoom specified";for(this._featureGroup.addTo(n),this._nonPointGroup.addTo(n),this._gridClusters||this._generateInitialClusters(),this._maxLat=n.options.crs.projection.MAX_LATITUDE,t=0,e=this._needsRemoving.length;t<e;t++)i=this._needsRemoving[t],i.newlatlng=i.layer._latlng,i.layer._latlng=i.latlng;for(t=0,e=this._needsRemoving.length;t<e;t++)i=this._needsRemoving[t],this._removeLayer(i.layer,!0),i.layer._latlng=i.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(),e=this._needsClustering,this._needsClustering=[],this.addLayers(e,!0)},onRemove:function(n){n.off("zoomend",this._zoomEnd,this),n.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:n=>{for(var t=n;t&&!t._icon;)t=t.__parent;return t||null},_arraySplice:(n,t)=>{for(let e=n.length-1;e>=0;e--)if(n[e]===t)return n.splice(e,1),!0},_removeFromGridUnclustered:function(n,t){for(var e=this._map,i=this._gridUnclustered,s=Math.floor(this._map.getMinZoom());t>=s&&i[t].removeObject(n,e.project(n.getLatLng(),t));t--);},_childMarkerDragStart:n=>{n.target.__dragStart=n.target._latlng},_childMarkerMoved:function(n){if(!this._ignoreMove&&!n.target.__dragStart){const t=(n.target._popup||null)?.isOpen();this._moveChild(n.target,n.oldLatLng,n.latlng),t&&n.target.openPopup()}},_moveChild:function(n,t,e){n._latlng=t,this.removeLayer(n),n._latlng=e,this.addLayer(n)},_childMarkerDragEnd:function(n){n.target.__dragStart&&this._moveChild(n.target,n.target.__dragStart,n.target._latlng),delete n.target.__dragStart},_removeLayer:function(n,t,e){var i=this._gridClusters,s=this._gridUnclustered,o=this._featureGroup,r=this._map,a=Math.floor(this._map.getMinZoom());t&&this._removeFromGridUnclustered(n,this._maxZoom);var h=n.__parent,l=h._markers,d;for(this._arraySplice(l,n);h&&(h._childCount--,h._boundsNeedUpdate=!0,!(h._zoom<a));)t&&h._childCount<=1?(d=h._markers[0]===n?h._markers[1]:h._markers[0],i[h._zoom].removeObject(h,r.project(h._cLatLng,h._zoom)),s[h._zoom].addObject(d,r.project(d.getLatLng(),h._zoom)),this._arraySplice(h.__parent._childClusters,h),h.__parent._markers.push(d),d.__parent=h.__parent,h._icon&&(o.removeLayer(h),e||o.addLayer(d))):h._iconNeedsUpdate=!0,h=h.__parent;delete n.__parent},_isOrIsParent:(n,t)=>{for(;t;){if(n===t)return!0;t=t.parentNode}return!1},fire:function(n,t,e){if(t&&t.propagatedFrom instanceof _.MarkerCluster){if(t.originalEvent&&this._isOrIsParent(t.propagatedFrom._icon,t.originalEvent.relatedTarget))return;n=`cluster${n}`}_.FeatureGroup.prototype.fire.call(this,n,t,e)},listens:function(n,t){return _.FeatureGroup.prototype.listens.call(this,n,t)||_.FeatureGroup.prototype.listens.call(this,`cluster${n}`,t)},_defaultIconCreateFunction:n=>{const t=n.getChildCount();let e=" marker-cluster-";return t<10?e+="small":t<100?e+="medium":e+="large",new _.DivIcon({html:`<div><span>${t}</span></div>`,className:`marker-cluster ${e}`,iconSize:new _.Point(40,40)})},_bindEvents:function(){var n=this._map,t=this.options.spiderfyOnMaxZoom,e=this.options.showCoverageOnHover,i=this.options.zoomToBoundsOnClick;(t||i)&&this.on("clusterclick",this._zoomOrSpiderfy,this),e&&(this.on("clustermouseover",this._showCoverage,this),this.on("clustermouseout",this._hideCoverage,this),n.on("zoomend",this._hideCoverage,this))},_zoomOrSpiderfy:function(n){const t=n.propagatedFrom;let e=t;for(;e._childClusters.length===1;)e=e._childClusters[0];e._zoom===this._maxZoom&&e._childCount===t._childCount&&this.options.spiderfyOnMaxZoom?t.spiderfy():this.options.zoomToBoundsOnClick&&t.zoomToBounds(),n.originalEvent&&n.originalEvent.keyCode===13&&this._map._container.focus()},_showCoverage:function(n){var t=this._map;this._inZoomAnimation||(this._shownPolygon&&t.removeLayer(this._shownPolygon),n.propagatedFrom.getChildCount()>2&&n.propagatedFrom!==this._spiderfied&&(this._shownPolygon=new _.Polygon(n.propagatedFrom.getConvexHull(),this.options.polygonOptions),t.addLayer(this._shownPolygon)))},_hideCoverage:function(){this._shownPolygon&&(this._map.removeLayer(this._shownPolygon),this._shownPolygon=null)},_unbindEvents:function(){var n=this.options.spiderfyOnMaxZoom,t=this.options.showCoverageOnHover,e=this.options.zoomToBoundsOnClick,i=this._map;(n||e)&&this.off("clusterclick",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 n=this._getExpandedVisibleBounds();this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),this._zoom,n),this._topClusterLevel._recursivelyAddChildrenToMap(null,Math.round(this._map._zoom),n),this._currentShownBounds=n}},_generateInitialClusters:function(){var n=Math.ceil(this._map.getMaxZoom()),t=Math.floor(this._map.getMinZoom()),e=this.options.maxClusterRadius,i=e;typeof e!="function"&&(i=()=>e),this.options.disableClusteringAtZoom!==null&&(n=this.options.disableClusteringAtZoom-1),this._maxZoom=n,this._gridClusters={},this._gridUnclustered={};for(let s=n;s>=t;s--)this._gridClusters[s]=new _.DistanceGrid(i(s)),this._gridUnclustered[s]=new _.DistanceGrid(i(s));this._topClusterLevel=new this._markerCluster(this,t-1)},_addLayer:function(n,t){var e=this._gridClusters,i=this._gridUnclustered,s=Math.floor(this._map.getMinZoom()),o,r;for(this.options.singleMarkerMode&&this._overrideMarkerIcon(n),n.on(this._childMarkerEventHandlers,this);t>=s;t--){o=this._map.project(n.getLatLng(),t);let a=e[t].getNearObject(o);if(a){a._addChild(n),n.__parent=a;return}if(a=i[t].getNearObject(o),a){const h=a.__parent;h&&this._removeLayer(a,!1);const l=new this._markerCluster(this,t,a,n);e[t].addObject(l,this._map.project(l._cLatLng,t)),a.__parent=l,n.__parent=l;let d=l;for(r=t-1;r>h._zoom;r--)d=new this._markerCluster(this,r,d),e[r].addObject(d,this._map.project(a.getLatLng(),r));h._addChild(d),this._removeFromGridUnclustered(a,t);return}i[t].addObject(n,o)}this._topClusterLevel._addChild(n),n.__parent=this._topClusterLevel},_refreshClustersIcons:function(){this._featureGroup.eachLayer(n=>{n instanceof _.MarkerCluster&&n._iconNeedsUpdate&&n._updateIcon()})},_enqueue:function(n){this._queue.push(n),this._queueTimeout||(this._queueTimeout=setTimeout(()=>this._processQueue(),300))},_processQueue:function(){for(let n=0;n<this._queue.length;n++)this._queue[n].call(this);this._queue.length=0,clearTimeout(this._queueTimeout),this._queueTimeout=null},_mergeSplitClusters:function(){var n=Math.round(this._map._zoom);this._processQueue(),this._zoom<n&&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,n)):this._zoom>n?(this._animationStart(),this._animationZoomOut(this._zoom,n)):this._moveEnd()},_getExpandedVisibleBounds:function(){if(this.options.removeOutsideVisibleBounds){if(_.Browser.mobile)return this._checkBoundsMaxLat(this._map.getBounds())}else return this._mapBoundsInfinite;return this._checkBoundsMaxLat(this._map.getBounds().pad(1))},_checkBoundsMaxLat:function(n){var t=this._maxLat;return t!==void 0&&(n.getNorth()>=t&&(n._northEast.lat=1/0),n.getSouth()<=-t&&(n._southWest.lat=-1/0)),n},_animationAddLayerNonAnimated:function(n,t){if(t===n)this._featureGroup.addLayer(n);else if(t._childCount===2){t._addToMap();const e=t.getAllChildMarkers();this._featureGroup.removeLayer(e[0]),this._featureGroup.removeLayer(e[1])}else t._updateIcon()},_extractNonGroupLayers:function(n,t){var e=n.getLayers(),i=0,s;for(t=t||[];i<e.length;i++){if(s=e[i],s instanceof _.LayerGroup){this._extractNonGroupLayers(s,t);continue}t.push(s)}return t},_overrideMarkerIcon:function(n){return n.options.icon=this.options.iconCreateFunction({getChildCount:()=>1,getAllChildMarkers:()=>[n]}),n.options.icon}}),_.MarkerClusterGroup.include({_mapBoundsInfinite:new _.LatLngBounds(new _.LatLng(-1/0,-1/0),new _.LatLng(1/0,1/0))}),_.MarkerClusterGroup.include({_noAnimation:{_animationStart:()=>{},_animationZoomIn:function(n,t){this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),n),this._topClusterLevel._recursivelyAddChildrenToMap(null,t,this._getExpandedVisibleBounds()),this.fire("animationend")},_animationZoomOut:function(n,t){this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),n),this._topClusterLevel._recursivelyAddChildrenToMap(null,t,this._getExpandedVisibleBounds()),this.fire("animationend")},_animationAddLayer:function(n,t){this._animationAddLayerNonAnimated(n,t)}},_withAnimation:{_animationStart:function(){this._map._mapPane.className+=" leaflet-cluster-anim",this._inZoomAnimation++},_animationZoomIn:function(n,t){var e=this._getExpandedVisibleBounds(),i=this._featureGroup,s=Math.floor(this._map.getMinZoom()),o;this._ignoreMove=!0,this._topClusterLevel._recursively(e,n,s,r=>{var a=r._latlng,h=r._markers,l;for(e.contains(a)||(a=null),r._isSingleParent()&&n+1===t?(i.removeLayer(r),r._recursivelyAddChildrenToMap(null,t,e)):(r.clusterHide(),r._recursivelyAddChildrenToMap(a,t,e)),o=h.length-1;o>=0;o--)l=h[o],e.contains(l._latlng)||i.removeLayer(l)}),this._forceLayout(),this._topClusterLevel._recursivelyBecomeVisible(e,t),i.eachLayer(r=>{!(r instanceof _.MarkerCluster)&&r._icon&&r.clusterShow()}),this._topClusterLevel._recursively(e,n,t,r=>{r._recursivelyRestoreChildPositions(t)}),this._ignoreMove=!1,this._enqueue(function(){this._topClusterLevel._recursively(e,n,s,r=>{i.removeLayer(r),r.clusterShow()}),this._animationEnd()})},_animationZoomOut:function(n,t){this._animationZoomOutSingle(this._topClusterLevel,n-1,t),this._topClusterLevel._recursivelyAddChildrenToMap(null,t,this._getExpandedVisibleBounds()),this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),n,this._getExpandedVisibleBounds())},_animationAddLayer:function(n,t){var e=this._featureGroup;e.addLayer(n),t!==n&&(t._childCount>2?(t._updateIcon(),this._forceLayout(),this._animationStart(),n._setPos(this._map.latLngToLayerPoint(t.getLatLng())),n.clusterHide(),this._enqueue(()=>{e.removeLayer(n),n.clusterShow(),this._animationEnd()})):(this._forceLayout(),this._animationStart(),this._animationZoomOutSingle(t,this._map.getMaxZoom(),this._zoom)))}},_animationZoomOutSingle:function(n,t,e){var i=this._getExpandedVisibleBounds(),s=Math.floor(this._map.getMinZoom());n._recursivelyAnimateChildrenInAndAddSelfToMap(i,s,t+1,e);var o=this;this._forceLayout(),n._recursivelyBecomeVisible(i,e),this._enqueue(function(){if(n._childCount===1){const r=n._markers[0];this._ignoreMove=!0,r.setLatLng(r.getLatLng()),this._ignoreMove=!1,r.clusterShow&&r.clusterShow()}else n._recursively(i,e,s,r=>{r._recursivelyRemoveChildrenFromMap(i,s,t+1)});o._animationEnd()})},_animationEnd:function(){this._map&&(this._map._mapPane.className=this._map._mapPane.className.replace(" leaflet-cluster-anim","")),this._inZoomAnimation--,this.fire("animationend")},_forceLayout:()=>{_.Util.falseFn(document.body.offsetWidth)}}),_.MarkerCluster=_.Marker.extend({initialize:function(n,t,e,i){_.Marker.prototype.initialize.call(this,e?e._cLatLng||e.getLatLng():new _.LatLng(0,0),{icon:this,pane:n.options.clusterPane}),this._group=n,this._zoom=t,this._markers=[],this._childClusters=[],this._childCount=0,this._iconNeedsUpdate=!0,this._boundsNeedUpdate=!0,this._bounds=new _.LatLngBounds,e&&this._addChild(e),i&&this._addChild(i)},getAllChildMarkers:function(n){n=n||[];for(let t=this._childClusters.length-1;t>=0;t--)this._childClusters[t].getAllChildMarkers(n);for(let t=this._markers.length-1;t>=0;t--)n.push(this._markers[t]);return n},getChildCount:function(){return this._childCount},zoomToBounds:function(n){for(var t=this._childClusters.slice(),e=this._group._map,i=e.getBoundsZoom(this._bounds),s=this._zoom+1,o=e.getZoom(),r;t.length>0&&i>s;){s++;let a=[];for(r=0;r<t.length;r++)a=a.concat(t[r]._childClusters);t=a}i>s?this._group._map.setView(this._latlng,s):i<=o?this._group._map.setView(this._latlng,o+1):this._group._map.fitBounds(this._bounds,n)},getBounds:function(){var n=new _.LatLngBounds;return n.extend(this._bounds),n},_updateIcon:function(){this._iconNeedsUpdate=!0,this._icon&&this.setIcon(this)},createIcon:function(){return this._iconNeedsUpdate&&(this._iconObj=this._group.options.iconCreateFunction(this),this._iconNeedsUpdate=!1),this._iconObj.createIcon()},createShadow:function(){return this._iconObj.createShadow()},_addChild:function(n,t){this._iconNeedsUpdate=!0,this._boundsNeedUpdate=!0,this._setClusterCenter(n),n instanceof _.MarkerCluster?(t||(this._childClusters.push(n),n.__parent=this),this._childCount+=n._childCount):(t||this._markers.push(n),this._childCount++),this.__parent&&this.__parent._addChild(n,!0)},_setClusterCenter:function(n){this._cLatLng||(this._cLatLng=n._cLatLng||n._latlng)},_resetBounds:function(){var n=this._bounds;n._southWest&&(n._southWest.lat=1/0,n._southWest.lng=1/0),n._northEast&&(n._northEast.lat=-1/0,n._northEast.lng=-1/0)},_recalculateBounds:function(){var n=this._markers,t=this._childClusters,e=0,i=0,s=this._childCount,o,r,a,h;if(s!==0){for(this._resetBounds(),o=0;o<n.length;o++)a=n[o]._latlng,this._bounds.extend(a),e+=a.lat,i+=a.lng;for(o=0;o<t.length;o++)r=t[o],r._boundsNeedUpdate&&r._recalculateBounds(),this._bounds.extend(r._bounds),a=r._wLatLng,h=r._childCount,e+=a.lat*h,i+=a.lng*h;this._latlng=this._wLatLng=new _.LatLng(e/s,i/s),this._boundsNeedUpdate=!1}},_addToMap:function(n){n&&(this._backupLatlng=this._latlng,this.setLatLng(n)),this._group._featureGroup.addLayer(this)},_recursivelyAnimateChildrenIn:function(n,t,e){this._recursively(n,this._group._map.getMinZoom(),e-1,i=>{var s=i._markers,o,r;for(o=s.length-1;o>=0;o--)r=s[o],r._icon&&(r._setPos(t),r.clusterHide())},i=>{var s=i._childClusters,o,r;for(o=s.length-1;o>=0;o--)r=s[o],r._icon&&(r._setPos(t),r.clusterHide())})},_recursivelyAnimateChildrenInAndAddSelfToMap:function(n,t,e,i){this._recursively(n,i,t,s=>{s._recursivelyAnimateChildrenIn(n,s._group._map.latLngToLayerPoint(s.getLatLng()).round(),e),s._isSingleParent()&&e-1===i?(s.clusterShow(),s._recursivelyRemoveChildrenFromMap(n,t,e)):s.clusterHide(),s._addToMap()})},_recursivelyBecomeVisible:function(n,t){this._recursively(n,this._group._map.getMinZoom(),t,null,e=>{e.clusterShow()})},_recursivelyAddChildrenToMap:function(n,t,e){this._recursively(e,this._group._map.getMinZoom()-1,t,i=>{if(t!==i._zoom)for(let s=i._markers.length-1;s>=0;s--){const o=i._markers[s];e.contains(o._latlng)&&(n&&(o._backupLatlng=o.getLatLng(),o.setLatLng(n),o.clusterHide&&o.clusterHide()),i._group._featureGroup.addLayer(o))}},i=>{i._addToMap(n)})},_recursivelyRestoreChildPositions:function(n){for(let t=this._markers.length-1;t>=0;t--){const e=this._markers[t];e._backupLatlng&&(e.setLatLng(e._backupLatlng),delete e._backupLatlng)}if(n-1===this._zoom)for(let t=this._childClusters.length-1;t>=0;t--)this._childClusters[t]._restorePosition();else for(let t=this._childClusters.length-1;t>=0;t--)this._childClusters[t]._recursivelyRestoreChildPositions(n)},_restorePosition:function(){this._backupLatlng&&(this.setLatLng(this._backupLatlng),delete this._backupLatlng)},_recursivelyRemoveChildrenFromMap:function(n,t,e,i){var s,o;this._recursively(n,t-1,e-1,r=>{for(o=r._markers.length-1;o>=0;o--)s=r._markers[o],(!i||!i.contains(s._latlng))&&(r._group._featureGroup.removeLayer(s),s.clusterShow&&s.clusterShow())},r=>{for(o=r._childClusters.length-1;o>=0;o--)s=r._childClusters[o],(!i||!i.contains(s._latlng))&&(r._group._featureGroup.removeLayer(s),s.clusterShow&&s.clusterShow())})},_recursively:function(n,t,e,i,s){var o=this._childClusters,r=this._zoom,a,h;if(t<=r&&(i&&i(this),s&&r===e&&s(this)),r<t||r<e)for(a=o.length-1;a>=0;a--)h=o[a],n.intersects(h._bounds)&&h._recursively(n,t,e,i,s)},_isSingleParent:function(){return this._childClusters.length>0&&this._childClusters[0]._childCount===this._childCount}}),_.Marker.include({clusterHide:function(){return this.options.opacityWhenUnclustered=this.options.opacity||1,this.setOpacity(0)},clusterShow:function(){var n=this.setOpacity(this.options.opacity||this.options.opacityWhenUnclustered);return delete this.options.opacityWhenUnclustered,n}}),_.DistanceGrid=function(n){this._cellSize=n,this._sqCellSize=n*n,this._grid={},this._objectPoint={}},_.DistanceGrid.prototype={addObject:function(n,t){var e=this._getCoord(t.x),i=this._getCoord(t.y),s=this._grid;s[i]=s[i]||{};var o=s[i];o[e]=o[e]||[];var r=o[e],a=_.Util.stamp(n);this._objectPoint[a]=t,r.push(n)},updateObject:function(n,t){this.removeObject(n),this.addObject(n,t)},removeObject:function(n,t){var e=this._getCoord(t.x),i=this._getCoord(t.y),s=this._grid;s[i]=s[i]||{};var o=s[i];o[e]=o[e]||[];var r=o[e],a,h;for(delete this._objectPoint[_.Util.stamp(n)],a=0,h=r.length;a<h;a++)if(r[a]===n)return r.splice(a,1),h===1&&delete o[e],!0},eachObject:function(n,t){var e,i,s,o,r,a,h,l=this._grid;for(e in l){r=l[e];for(i in r)for(a=r[i],s=0,o=a.length;s<o;s++)h=n.call(t,a[s]),h&&(s--,o--)}},getNearObject:function(n){var t=this._getCoord(n.x),e=this._getCoord(n.y),i,s,o,r,a,h,l,d,c=this._objectPoint,f=this._sqCellSize,m=null;for(i=e-1;i<=e+1;i++)if(r=this._grid[i],r){for(s=t-1;s<=t+1;s++)if(a=r[s],a)for(o=0,h=a.length;o<h;o++)l=a[o],d=this._sqDist(c[_.Util.stamp(l)],n),d<f&&(f=d,m=l)}return m},_getCoord:function(n){return Math.floor(n/this._cellSize)},_sqDist:(n,t)=>{var e=t.x-n.x,i=t.y-n.y;return e*e+i*i}},_.QuickHull={getDistant:(n,t)=>{var e=t[1].lat-t[0].lat,i=t[0].lng-t[1].lng;return i*(n.lat-t[0].lat)+e*(n.lng-t[0].lng)},findMostDistantPointFromBaseLine:function(n,t){var e=0,i=null,s=[],o,r,a;for(o=t.length-1;o>=0;o--){if(r=t[o],a=this.getDistant(r,n),a>0)s.push(r);else continue;a>e&&(e=a,i=r)}return{maxPoint:i,newPoints:s}},buildConvexHull:function(n,t){var e=[],i=this.findMostDistantPointFromBaseLine(n,t);return i.maxPoint?(e=e.concat(this.buildConvexHull([n[0],i.maxPoint],i.newPoints)),e=e.concat(this.buildConvexHull([i.maxPoint,n[1]],i.newPoints)),e):[n[0]]},getConvexHull:function(n){var t=!1,e=!1,i=!1,s=!1,o=null,r=null,a=null,h=null,l=null,d=null,c;for(c=n.length-1;c>=0;c--){const m=n[c];(t===!1||m.lat>t)&&(o=m,t=m.lat),(e===!1||m.lat<e)&&(r=m,e=m.lat),(i===!1||m.lng>i)&&(a=m,i=m.lng),(s===!1||m.lng<s)&&(h=m,s=m.lng)}e!==t?(d=r,l=o):(d=h,l=a);var f=[].concat(this.buildConvexHull([d,l],n),this.buildConvexHull([l,d],n));return f}},_.MarkerCluster.include({getConvexHull:function(){var n=this.getAllChildMarkers(),t=[],e,i;for(i=n.length-1;i>=0;i--)e=n[i].getLatLng(),t.push(e);return _.QuickHull.getConvexHull(t)}}),_.MarkerCluster.include({_2PI:Math.PI*2,_circleFootSeparation:25,_circleStartAngle:Math.PI/6,_spiralFootSeparation:28,_spiralLengthStart:11,_spiralLengthFactor:5,_circleSpiralSwitchover:9,spiderfy:function(){if(!(this._group._spiderfied===this||this._group._inZoomAnimation)){var n=this.getAllChildMarkers(),t=this._group,e=t._map,i=e.latLngToLayerPoint(this._latlng),s;this._group._unspiderfy(),this._group._spiderfied=this,n.length>=this._circleSpiralSwitchover?s=this._generatePointsSpiral(n.length,i):(i.y+=10,s=this._generatePointsCircle(n.length,i)),this._animationSpiderfy(n,s)}},unspiderfy:function(n){this._group._inZoomAnimation||(this._animationUnspiderfy(n),this._group._spiderfied=null)},_generatePointsCircle:function(n,t){var e=this._group.options.spiderfyDistanceMultiplier*this._circleFootSeparation*(2+n),i=e/this._2PI,s=this._2PI/n,o=[],r,a;for(o.length=n,r=n-1;r>=0;r--)a=this._circleStartAngle+r*s,o[r]=new _.Point(t.x+i*Math.cos(a),t.y+i*Math.sin(a))._round();return o},_generatePointsSpiral:function(n,t){var e=this._group.options.spiderfyDistanceMultiplier,i=e*this._spiralLengthStart,s=e*this._spiralFootSeparation,o=e*this._spiralLengthFactor*this._2PI,r=0,a=[],h;for(a.length=n,h=n-1;h>=0;h--)r+=s/i+h*5e-4,a[h]=new _.Point(t.x+i*Math.cos(r),t.y+i*Math.sin(r))._round(),i+=o/r;return a},_noanimationUnspiderfy:function(){var n=this._group,t=n._map,e=n._featureGroup,i=this.getAllChildMarkers(),s,o;for(n._ignoreMove=!0,this.setOpacity(1),o=i.length-1;o>=0;o--)s=i[o],e.removeLayer(s),s._preSpiderfyLatlng&&(s.setLatLng(s._preSpiderfyLatlng),delete s._preSpiderfyLatlng),s.setZIndexOffset&&s.setZIndexOffset(0),s._spiderLeg&&(t.removeLayer(s._spiderLeg),delete s._spiderLeg);n.fire("unspiderfied",{cluster:this,markers:i}),n._ignoreMove=!1,n._spiderfied=null}}),_.MarkerClusterNonAnimated=_.MarkerCluster.extend({_animationSpiderfy:function(n,t){var e=this._group,i=e._map,s=e._featureGroup,o=this._group.options.spiderLegPolylineOptions,r,a,h,l;for(e._ignoreMove=!0,r=0;r<n.length;r++)l=i.layerPointToLatLng(t[r]),a=n[r],h=new _.Polyline([this._latlng,l],o),i.addLayer(h),a._spiderLeg=h,a._preSpiderfyLatlng=a._latlng,a.setLatLng(l),a.setZIndexOffset&&a.setZIndexOffset(1e6),s.addLayer(a);this.setOpacity(.3),e._ignoreMove=!1,e.fire("spiderfied",{cluster:this,markers:n})},_animationUnspiderfy:function(){this._noanimationUnspiderfy()}}),_.MarkerCluster.include({_animationSpiderfy:function(n,t){var e=this._group,i=e._map,s=e._featureGroup,o=this._latlng,r=i.latLngToLayerPoint(o),a=_.Path.SVG,h=Object.assign({},this._group.options.spiderLegPolylineOptions),l=h.opacity,d,c,f,m,C,k;for(l===void 0&&(l=_.MarkerClusterGroup.prototype.options.spiderLegPolylineOptions.opacity),a?(h.opacity=0,h.className=`${h.className||""} leaflet-cluster-spider-leg`):h.opacity=l,e._ignoreMove=!0,d=0;d<n.length;d++)c=n[d],k=i.layerPointToLatLng(t[d]),f=new _.Polyline([o,k],h),i.addLayer(f),c._spiderLeg=f,a&&(m=f._path,C=m.getTotalLength()+.1,m.style.strokeDasharray=C,m.style.strokeDashoffset=C),c.setZIndexOffset&&c.setZIndexOffset(1e6),c.clusterHide&&c.clusterHide(),s.addLayer(c),c._setPos&&c._setPos(r);for(e._forceLayout(),e._animationStart(),d=n.length-1;d>=0;d--)k=i.layerPointToLatLng(t[d]),c=n[d],c._preSpiderfyLatlng=c._latlng,c.setLatLng(k),c.clusterShow&&c.clusterShow(),a&&(f=c._spiderLeg,m=f._path,m.style.strokeDashoffset=0,f.setStyle({opacity:l}));this.setOpacity(.3),e._ignoreMove=!1,setTimeout(()=>{e._animationEnd(),e.fire("spiderfied",{cluster:this,markers:n})},200)},_animationUnspiderfy:function(n){var t=this._group,e=t._map,i=t._featureGroup,s=n?e._latLngToNewLayerPoint(this._latlng,n.zoom,n.center):e.latLngToLayerPoint(this._latlng),o=this.getAllChildMarkers(),r=_.Path.SVG,a,h,l,d,c,f;for(t._ignoreMove=!0,t._animationStart(),this.setOpacity(1),h=o.length-1;h>=0;h--)a=o[h],a._preSpiderfyLatlng&&(a.closePopup(),a.setLatLng(a._preSpiderfyLatlng),delete a._preSpiderfyLatlng,f=!0,a._setPos&&(a._setPos(s),f=!1),a.clusterHide&&(a.clusterHide(),f=!1),f&&i.removeLayer(a),r&&(l=a._spiderLeg,d=l._path,c=d.getTotalLength()+.1,d.style.strokeDashoffset=c,l.setStyle({opacity:0})));t._ignoreMove=!1,setTimeout(()=>{var m=0;for(h=o.length-1;h>=0;h--)a=o[h],a._spiderLeg&&m++;for(h=o.length-1;h>=0;h--)a=o[h],a._spiderLeg&&(a.clusterShow&&a.clusterShow(),a.setZIndexOffset&&a.setZIndexOffset(0),m>1&&i.removeLayer(a),e.removeLayer(a._spiderLeg),delete a._spiderLeg);t._animationEnd(),t.fire("unspiderfied",{cluster:this,markers:o})},200)}}),_.MarkerClusterGroup.include({_spiderfied:null,unspiderfy:function(...n){this._unspiderfy.apply(this,n)},_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),_.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(n){this._map._mapPane.classList.contains("leaflet-touching")||(this._map.off("zoomanim",this._unspiderfyZoomAnim,this),this._unspiderfy(n))},_unspiderfyWrapper:function(){this._unspiderfy()},_unspiderfy:function(n){this._spiderfied&&this._spiderfied.unspiderfy(n)},_noanimationUnspiderfy:function(){this._spiderfied&&this._spiderfied._noanimationUnspiderfy()},_unspiderfyLayer:function(n){n._spiderLeg&&(this._featureGroup.removeLayer(n),n.clusterShow&&n.clusterShow(),n.setZIndexOffset&&n.setZIndexOffset(0),this._map.removeLayer(n._spiderLeg),delete n._spiderLeg)}}),_.MarkerClusterGroup.include({refreshClusters:function(n){return n?n instanceof _.MarkerClusterGroup?n=n._topClusterLevel.getAllChildMarkers():n instanceof _.LayerGroup?n=n._layers:n instanceof _.MarkerCluster?n=n.getAllChildMarkers():n instanceof _.Marker&&(n=[n]):n=this._topClusterLevel.getAllChildMarkers(),this._flagParentsIconsNeedUpdate(n),this._refreshClustersIcons(),this.options.singleMarkerMode&&this._refreshSingleMarkerModeMarkers(n),this},_flagParentsIconsNeedUpdate:n=>{var t,e;for(t in n)for(e=n[t].__parent;e;)e._iconNeedsUpdate=!0,e=e.__parent},_refreshSingleMarkerModeMarkers:function(n){var t,e;for(t in n)e=n[t],this.hasLayer(e)&&e.setIcon(this._overrideMarkerIcon(e))}}),_.Marker.include({refreshIconOptions:function(n,t){var e=this.options.icon;return _.setOptions(e,n),this.setIcon(e),t&&this.__parent&&this.__parent._group.refreshClusters(this),this}});const Pn={dialog:"_dialog_1cl7y_1 _ds-dialog_dbymd_5"},Cn=typeof window<"u"&&typeof document<"u";function Tn(n,t){let e;return function(...i){clearTimeout(e),e=setTimeout(()=>n.apply(this,i),t)}}function G(n,t,e){return e===void 0?n.getAttribute(t)??null:(e===null?n.removeAttribute(t):n.getAttribute(t)!==e&&n.setAttribute(t,e),null)}`${Date.now().toString(36)}${Math.random().toString(36).slice(2,5)}`;const Ai=(n,t,[...e])=>{for(const i of e[0].split(","))e[0]=i,t[`${n}EventListener`](...e)},kn=(n,...t)=>(Ai("add",n,t),()=>Bi(n,...t)),Bi=(n,...t)=>Ai("remove",n,t);`${Pn.dialog.split(" ")[0]}`;const Me=(n,t,e)=>{const i=document.createElement(n);if(e&&(i.textContent=e),t)for(const[s,o]of Object.entries(t))G(i,s,o);return i},Mn=typeof HTMLElement>"u"?class{}:HTMLElement,ze=[30,30],zn=[[57.5,4.73],[71.5,31.44]],Sn="https://cache.kartverket.no/v1/wmts/1.0.0/topo/default/webmercator/{z}/{y}/{x}.png";class Vt extends Mn{cluster;map;_popup;static get observedAttributes(){return["data-view","data-scrollzoom"]}constructor(){super(),this.attachShadow({mode:"open"}).append(Me("style",{},`${bn}
|
|
689
|
+
${Ln}`),Me("slot"),Me("div"))}connectedCallback(){const t=this.shadowRoot?.lastElementChild,e=Number(G(this,"data-cluster"))||1,i=new _.TileLayer(Sn,{attribution:"© Kartverket",maxZoom:18});this.map=new _.Map(t,{attributionControl:!1,wheelPxPerZoomLevel:20,zoomControl:!1,zoomSnap:0,layers:[i]}),this.cluster=new _.MarkerClusterGroup({disableClusteringAtZoom:e,showCoverageOnHover:!1,zoomToBoundsOnClick:!0}).addTo(this.map),this.map.addControl(new _.Control.Attribution({prefix:""})),this.map.addControl(new _.Control.Zoom({position:"bottomright"})),this.map.on("popupopen",On),Vt.observedAttributes.forEach(s=>{this.attributeChangedCallback(s,null,G(this,s))})}attributeChangedCallback(t,e=null,i=null){this.map&&(t==="data-view"&&this.setView(i||""),t==="data-scrollzoom"&&this.map.scrollWheelZoom[i==="false"?"disable":"enable"]())}setView(t,e){const i=`${t}`.split(",").map(parseFloat).filter(Number.isFinite),s=this.cluster?.getBounds();i.length===3?this.map?.setView([i[0],i[1]],i[2],e):t!=="fit"?this.map?.fitBounds(zn,e):s?.isValid()?this.map?.fitBounds(s,e||{padding:[40,40]}):this.cluster?.on("layeradd",Ii,this)}addMarker(t,e){return new _.Marker(t,e).addTo(this.cluster)}disconnectedCallback(){this.map?.remove()}}Cn&&!window.customElements.get("mtds-atlas")&&(_.Marker.prototype.options.icon=new _.DivIcon({html:'<svg class="map-pin" viewBox="0 0 256 256"><rect x="78" y="50" width="100" height="100" /><path fill="var(--mtds-)" d="M128,16a88.1,88.1,0,0,0-88,88c0,75.3,80,132.17,83.41,134.55a8,8,0,0,0,9.18,0C136,236.17,216,179.3,216,104A88.1,88.1,0,0,0,128,16Zm0,56a32,32,0,1,1-32,32A32,32,0,0,1,128,72Z"/></svg>',iconSize:ze,iconAnchor:[15,30],popupAnchor:[0,-15]}),window.customElements.define("mtds-atlas",Vt));const Ii=Tn(function(){this.cluster?.off("layeradd",Ii),this.cluster?.getBounds().isValid()&&this.setView("fit")},100),Di="popupclose move resize zoomanim viewreset",On=({target:n,popup:t})=>{const e=t.getContent(),i=String(e)[0]==="#"&&document.getElementById(e.slice(1));if(i&&i.closest("mtds-atlas")){const s=t.getLatLng(),o=G(i,"popover");G(t.getElement(),"hidden",""),G(i,"data-popover","open"),G(i,"popover","manual");const r=new ResizeObserver(()=>a()),a=l=>{if(l?.type==="popupclose"&&l?.popup===t)r.disconnect(),n.off(Di,a),G(t.getElement(),"hidden",null),G(i,"data-popover",null),G(i,"popover",o),Bi(i,"click",h);else{const d=n.latLngToContainerPoint(s),c=d.x-i.offsetWidth/2-ze[0]/2,f=d.y-i.offsetHeight-ze[1];i.style.translate=`${c}px ${f}px`}},h=({target:l})=>l?.closest?.('[popovertargetaction="hide"]')&&t.close();n.on(Di,a),kn(i,"click",h),r.observe(i),a()}};return D.L=_,D.MTDSAtlasElement=Vt,Object.defineProperty(D,Symbol.toStringTag,{value:"Module"}),D}({});
|