!function(t,i){"object"==typeofexports&&"undefined"!=typeofmodule?i(exports):"function"==typeofdefine&&define.amd?define(["exports"],i):i((t="undefined"!=typeofglobalThis?globalThis:t||self).leaflet={})}(this,function(t){"use strict";functionl(t){for(vari,e,n=1,o=arguments.length;n<o;n++)for(iine=arguments[n])t[i]=e[i];returnt}varR=Object.create||function(t){returnN.prototype=t,newN};functionN(){}functiona(t,i){vare=Array.prototype.slice;if(t.bind)returnt.bind.apply(t,e.call(arguments,1));varn=e.call(arguments,2);returnfunction(){returnt.apply(i,n.length?n.concat(e.call(arguments)):arguments)}}varD=0;functionh(t){return"_leaflet_id"int||(t._leaflet_id=++D),t._leaflet_id}functionj(t,i,e){varn,o,s=function(){n=!1,o&&(r.apply(e,o),o=!1)},r=function(){n?o=arguments:(t.apply(e,arguments),setTimeout(s,i),n=!0)};returnr}functionH(t,i,e){varn=i[1],i=i[0],o=n-i;returnt===n&&e?t:((t-i)%o+o)%o+i}functionu(){return!1}functione(t,i){if(!1===i)returnt;i=Math.pow(10,void0===i?6:i);returnMath.round(t*i)/i}functionW(t){returnt.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}functionF(t){returnW(t).split(/\s+/)}functionc(t,i){for(vareinObject.prototype.hasOwnProperty.call(t,"options")||(t.options=t.options?R(t.options):{}),i)t.options[e]=i[e];returnt.options}functionU(t,i,e){varn,o=[];for(nint)o.push(encodeURIComponent(e?n.toUpperCase():n)+"="+encodeURIComponent(t[n]));return(i&&-1!==i.indexOf("?")?"&":"?")+o.join("&")}varV=/\{ *([\w_ -]+) *\}/g;functionq(t,e){returnt.replace(V,function(t,i){i=e[i];if(void0===i)thrownewError("No value provided for variable "+t);returni="function"==typeofi?i(e):i})}vard=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};functionG(t,i){for(vare=0;e<t.length;e++)if(t[e]===i)returne;return-1}varK="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";functionY(t){returnwindow["webkit"+t]||window["moz"+t]||window["ms"+t]}varX=0;functionJ(t){vari=+newDate,e=Math.max(0,16-(i-X));returnX=i+e,window.setTimeout(t,e)}var$=window.requestAnimationFrame||Y("RequestAnimationFrame")||J,Q=window.cancelAnimationFrame||Y("CancelAnimationFrame")||Y("CancelRequestAnimationFrame")||function(t){window.clearTimeout(t)};functionx(t,i,e){if(!e||$!==J)return$.call(window,a(t,i));t.call(i)}functionr(t){t&&Q.call(window,t)}vartt={__proto__:null,extend:l,create:R,bind:a,getlastId(){returnD},stamp:h,throttle:j,wrapNum:H,falseFn:u,formatNum:e,trim:W,splitWords:F,setOptions:c,getParamString:U,template:q,isArray:d,indexOf:G,emptyImageUrl:K,requestFn:$,cancelFn:Q,requestAnimFrame:x,cancelAnimFrame:r};functionit(){}it.extend=function(t){functioni(){c(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()}vare,n=i.__super__=this.prototype,o=R(n);for(ein(o.constructor=i).prototype=o,this)Object.prototype.hasOwnProperty.call(this,e)&&"prototype"!==e&&"__super__"!==e&&(i[e]=this[e]);if(t.statics&&l(i,t.statics),t.includes){vars=t.includes;if("undefined"!=typeofL&&L&&L.Mixin){s=d(s)?s:[s];for(varr=0;r<s.length;r++)s[r]===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.",(newError).stack)}l.apply(null,[o].concat(t.includes))}returnl(o,t),deleteo.statics,deleteo.includes,o.options&&(o.options=n.options?R(n.options):{},l(o.options,t.options)),o._initHooks=[],o.callInitHooks=function(){if(!this._initHooksCalled){n.callInitHooks&&n.callInitHooks.call(this),this._initHooksCalled=!0;for(vart=0,i=o._initHooks.length;t<i;t++)o._initHooks[t].call(this)}},i},it.include=function(t){vari=this.prototype.options;returnl(this.prototype,t),t.options&&(this.prototype.options=i,this.mergeOptions(t.options)),this},it.mergeOptions=function(t){returnl(this.prototype.options,t),this},it.addInitHook=function(t){vari=Array.prototype.slice.call(arguments,1),e="function"==typeoft?t:function(){this[t].apply(this,i)};returnthis.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(e),this}