vue-geojson-view-ts 1.2.3 → 1.2.5

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.
@@ -1,6 +1,6 @@
1
- (function(dt,$){typeof exports=="object"&&typeof module<"u"?$(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],$):(dt=typeof globalThis<"u"?globalThis:dt||self,$(dt.vueGeojsonViewTs={},dt.Vue))})(this,function(dt,$){"use strict";var Bt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Jo(s){if(s.__esModule)return s;var l=s.default;if(typeof l=="function"){var c=function d(){if(this instanceof d){var n=[null];n.push.apply(n,arguments);var r=Function.bind.apply(l,n);return new r}return l.apply(this,arguments)};c.prototype=l.prototype}else c={};return Object.defineProperty(c,"__esModule",{value:!0}),Object.keys(s).forEach(function(d){var n=Object.getOwnPropertyDescriptor(s,d);Object.defineProperty(c,d,n.get?n:{enumerable:!0,get:function(){return s[d]}})}),c}var ei={},Yo={get exports(){return ei},set exports(s){ei=s}};function Xo(s){throw new Error('Could not dynamically require "'+s+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var we={},$o={get exports(){return we},set exports(s){we=s}};const Qo=Jo(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var $i;function Qi(){return $i||($i=1,function(s,l){(function(c,d){s.exports=d()})(Bt,function(){var c=c||function(d,n){var r;if(typeof window<"u"&&window.crypto&&(r=window.crypto),typeof self<"u"&&self.crypto&&(r=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(r=globalThis.crypto),!r&&typeof window<"u"&&window.msCrypto&&(r=window.msCrypto),!r&&typeof Bt<"u"&&Bt.crypto&&(r=Bt.crypto),!r&&typeof Xo=="function")try{r=Qo}catch{}var h=function(){if(r){if(typeof r.getRandomValues=="function")try{return r.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof r.randomBytes=="function")try{return r.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},f=Object.create||function(){function b(){}return function(M){var Z;return b.prototype=M,Z=new b,b.prototype=null,Z}}(),m={},_=m.lib={},v=_.Base=function(){return{extend:function(b){var M=f(this);return b&&M.mixIn(b),(!M.hasOwnProperty("init")||this.init===M.init)&&(M.init=function(){M.$super.init.apply(this,arguments)}),M.init.prototype=M,M.$super=this,M},create:function(){var b=this.extend();return b.init.apply(b,arguments),b},init:function(){},mixIn:function(b){for(var M in b)b.hasOwnProperty(M)&&(this[M]=b[M]);b.hasOwnProperty("toString")&&(this.toString=b.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),w=_.WordArray=v.extend({init:function(b,M){b=this.words=b||[],M!=n?this.sigBytes=M:this.sigBytes=b.length*4},toString:function(b){return(b||z).stringify(this)},concat:function(b){var M=this.words,Z=b.words,U=this.sigBytes,J=b.sigBytes;if(this.clamp(),U%4)for(var nt=0;nt<J;nt++){var Kt=Z[nt>>>2]>>>24-nt%4*8&255;M[U+nt>>>2]|=Kt<<24-(U+nt)%4*8}else for(var lt=0;lt<J;lt+=4)M[U+lt>>>2]=Z[lt>>>2];return this.sigBytes+=J,this},clamp:function(){var b=this.words,M=this.sigBytes;b[M>>>2]&=4294967295<<32-M%4*8,b.length=d.ceil(M/4)},clone:function(){var b=v.clone.call(this);return b.words=this.words.slice(0),b},random:function(b){for(var M=[],Z=0;Z<b;Z+=4)M.push(h());return new w.init(M,b)}}),E=m.enc={},z=E.Hex={stringify:function(b){for(var M=b.words,Z=b.sigBytes,U=[],J=0;J<Z;J++){var nt=M[J>>>2]>>>24-J%4*8&255;U.push((nt>>>4).toString(16)),U.push((nt&15).toString(16))}return U.join("")},parse:function(b){for(var M=b.length,Z=[],U=0;U<M;U+=2)Z[U>>>3]|=parseInt(b.substr(U,2),16)<<24-U%8*4;return new w.init(Z,M/2)}},P=E.Latin1={stringify:function(b){for(var M=b.words,Z=b.sigBytes,U=[],J=0;J<Z;J++){var nt=M[J>>>2]>>>24-J%4*8&255;U.push(String.fromCharCode(nt))}return U.join("")},parse:function(b){for(var M=b.length,Z=[],U=0;U<M;U++)Z[U>>>2]|=(b.charCodeAt(U)&255)<<24-U%4*8;return new w.init(Z,M)}},T=E.Utf8={stringify:function(b){try{return decodeURIComponent(escape(P.stringify(b)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(b){return P.parse(unescape(encodeURIComponent(b)))}},D=_.BufferedBlockAlgorithm=v.extend({reset:function(){this._data=new w.init,this._nDataBytes=0},_append:function(b){typeof b=="string"&&(b=T.parse(b)),this._data.concat(b),this._nDataBytes+=b.sigBytes},_process:function(b){var M,Z=this._data,U=Z.words,J=Z.sigBytes,nt=this.blockSize,Kt=nt*4,lt=J/Kt;b?lt=d.ceil(lt):lt=d.max((lt|0)-this._minBufferSize,0);var Nt=lt*nt,rt=d.min(Nt*4,J);if(Nt){for(var at=0;at<Nt;at+=nt)this._doProcessBlock(U,at);M=U.splice(0,Nt),Z.sigBytes-=rt}return new w.init(M,rt)},clone:function(){var b=v.clone.call(this);return b._data=this._data.clone(),b},_minBufferSize:0});_.Hasher=D.extend({cfg:v.extend(),init:function(b){this.cfg=this.cfg.extend(b),this.reset()},reset:function(){D.reset.call(this),this._doReset()},update:function(b){return this._append(b),this._process(),this},finalize:function(b){b&&this._append(b);var M=this._doFinalize();return M},blockSize:16,_createHelper:function(b){return function(M,Z){return new b.init(Z).finalize(M)}},_createHmacHelper:function(b){return function(M,Z){return new N.HMAC.init(b,Z).finalize(M)}}});var N=m.algo={};return m}(Math);return c})}($o)),we}(function(s,l){(function(c,d){s.exports=d(Qi())})(Bt,function(c){return function(){var d=c,n=d.lib,r=n.WordArray,h=d.enc;h.Base64={stringify:function(m){var _=m.words,v=m.sigBytes,w=this._map;m.clamp();for(var E=[],z=0;z<v;z+=3)for(var P=_[z>>>2]>>>24-z%4*8&255,T=_[z+1>>>2]>>>24-(z+1)%4*8&255,D=_[z+2>>>2]>>>24-(z+2)%4*8&255,N=P<<16|T<<8|D,b=0;b<4&&z+b*.75<v;b++)E.push(w.charAt(N>>>6*(3-b)&63));var M=w.charAt(64);if(M)for(;E.length%4;)E.push(M);return E.join("")},parse:function(m){var _=m.length,v=this._map,w=this._reverseMap;if(!w){w=this._reverseMap=[];for(var E=0;E<v.length;E++)w[v.charCodeAt(E)]=E}var z=v.charAt(64);if(z){var P=m.indexOf(z);P!==-1&&(_=P)}return f(m,_,w)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function f(m,_,v){for(var w=[],E=0,z=0;z<_;z++)if(z%4){var P=v[m.charCodeAt(z-1)]<<z%4*2,T=v[m.charCodeAt(z)]>>>6-z%4*2,D=P|T;w[E>>>2]|=D<<24-E%4*8,E++}return r.create(w,E)}}(),c.enc.Base64})})(Yo);const ii=ei;var ni={},tr={get exports(){return ni},set exports(s){ni=s}};(function(s,l){(function(c,d){s.exports=d(Qi())})(Bt,function(c){return c.enc.Utf8})})(tr);const tn=ni,er=(s,l)=>{localStorage.setItem(s,ii.stringify(tn.parse(l)))},ke=s=>{const l=localStorage.getItem(s);return l?ii.parse(l).toString(tn):null},en=s=>{const l=localStorage.getItem(s);return l?ii.parse(l):null},be=s=>{localStorage.removeItem(s)};function ir(){const s=document.createElement("div");return s.className="loading-overlay",s.innerHTML="Recuperando Datos de Google Maps",s.style.position="fixed",s.style.top="0",s.style.left="0",s.style.width="100%",s.style.height="100%",s.style.backgroundColor="rgba(255, 255, 255)",s.style.display="flex",s.style.justifyContent="center",s.style.alignItems="center",s.style.color="#000",s.style.fontSize="24px",s.style.zIndex="999999",document.body.appendChild(s),s}function nr(s){s&&s.remove()}const or=()=>{const l=window.location.href.split("?")[1],c=new URLSearchParams(l),d=Object.fromEntries(c.entries());if(d.coordinates){const n=ir();setTimeout(function(){er("coordinates",d.coordinates.replace("#/",""))},4e3),setTimeout(function(){window.close(),nr(n)},5e3)}},rr=async()=>{window.open("https://www.google.com/maps/?hl=es","Iniciar Sesion Ciudadania Digital","width=700,height=700,resizable=no"),be("coordinates"),be("closePopup");var s=!1;const l=setInterval(function(){let n=ke("coordinates"),r=en("closePopup");(n||r)&&(clearInterval(l),s=!0)},1e3);await(async()=>{for(;!s;)await new Promise(n=>setTimeout(n,100));return!0})();let d=ke("coordinates");if(d){const n=JSON.parse(d);return[parseFloat(n.lat),parseFloat(n.long),parseFloat(n.z)]}},sr=async s=>{window.open(`http://maps.google.com/?q=${s}`,"Iniciar Sesion Ciudadania Digital","width=700,height=700,resizable=no"),be("coordinates"),be("closePopup");var l=!1;const c=setInterval(function(){let r=ke("coordinates"),h=en("closePopup");(r||h)&&(clearInterval(c),l=!0)},1e3);await(async()=>{for(;!l;)await new Promise(r=>setTimeout(r,100));return!0})();let n=ke("coordinates");if(n){const r=JSON.parse(n);return[parseFloat(r.lat),parseFloat(r.long),parseFloat(r.z)]}},oi="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAApCAYAAADAk4LOAAAFgUlEQVR4Aa1XA5BjWRTN2oW17d3YaZtr2962HUzbDNpjszW24mRt28p47v7zq/bXZtrp/lWnXr337j3nPCe85NcypgSFdugCpW5YoDAMRaIMqRi6aKq5E3YqDQO3qAwjVWrD8Ncq/RBpykd8oZUb/kaJutow8r1aP9II0WmLKLIsJyv1w/kqw9Ch2MYdB++12Onxee/QMwvf4/Dk/Lfp/i4nxTXtOoQ4pW5Aj7wpici1A9erdAN2OH64x8OSP9j3Ft3b7aWkTg/Fm91siTra0f9on5sQr9INejH6CUUUpavjFNq1B+Oadhxmnfa8RfEmN8VNAsQhPqF55xHkMzz3jSmChWU6f7/XZKNH+9+hBLOHYozuKQPxyMPUKkrX/K0uWnfFaJGS1QPRtZsOPtr3NsW0uyh6NNCOkU3Yz+bXbT3I8G3xE5EXLXtCXbbqwCO9zPQYPRTZ5vIDXD7U+w7rFDEoUUf7ibHIR4y6bLVPXrz8JVZEql13trxwue/uDivd3fkWRbS6/IA2bID4uk0UpF1N8qLlbBlXs4Ee7HLTfV1j54APvODnSfOWBqtKVvjgLKzF5YdEk5ewRkGlK0i33Eofffc7HT56jD7/6U+qH3Cx7SBLNntH5YIPvODnyfIXZYRVDPqgHtLs5ABHD3YzLuespb7t79FY34DjMwrVrcTuwlT55YMPvOBnRrJ4VXTdNnYug5ucHLBjEpt30701A3Ts+HEa73u6dT3FNWwflY86eMHPk+Yu+i6pzUpRrW7SNDg5JHR4KapmM5Wv2E8Tfcb1HoqqHMHU+uWDD7zg54mz5/2BSnizi9T1Dg4QQXLToGNCkb6tb1NU+QAlGr1++eADrzhn/u8Q2YZhQVlZ5+CAOtqfbhmaUCS1ezNFVm2imDbPmPng5wmz+gwh+oHDce0eUtQ6OGDIyR0uUhUsoO3vfDmmgOezH0mZN59x7MBi++WDL1g/eEiU3avlidO671bkLfwbw5XV2P8Pzo0ydy4t2/0eu33xYSOMOD8hTf4CrBtGMSoXfPLchX+J0ruSePw3LZeK0juPJbYzrhkH0io7B3k164hiGvawhOKMLkrQLyVpZg8rHFW7E2uHOL888IBPlNZ1FPzstSJM694fWr6RwpvcJK60+0HCILTBzZLFNdtAzJaohze60T8qBzyh5ZuOg5e7uwQppofEmf2++DYvmySqGBuKaicF1blQjhuHdvCIMvp8whTTfZzI7RldpwtSzL+F1+wkdZ2TBOW2gIF88PBTzD/gpeREAMEbxnJcaJHNHrpzji0gQCS6hdkEeYt9DF/2qPcEC8RM28Hwmr3sdNyht00byAut2k3gufWNtgtOEOFGUwcXWNDbdNbpgBGxEvKkOQsxivJx33iow0Vw5S6SVTrpVq11ysA2Rp7gTfPfktc6zhtXBBC+adRLshf6sG2RfHPZ5EAc4sVZ83yCN00Fk/4kggu40ZTvIEm5g24qtU4KjBrx/BTTH8ifVASAG7gKrnWxJDcU7x8X6Ecczhm3o6YicvsLXWfh3Ch1W0k8x0nXF+0fFxgt4phz8QvypiwCCFKMqXCnqXExjq10beH+UUA7+nG6mdG/Pu0f3LgFcGrl2s0kNNjpmoJ9o4B29CMO8dMT4Q5ox8uitF6fqsrJOr8qnwNbRzv6hSnG5wP+64C7h9lp30hKNtKdWjtdkbuPA19nJ7Tz3zR/ibgARbhb4AlhavcBebmTHcFl2fvYEnW0ox9xMxKBS8btJ+KiEbq9zA4RthQXDhPa0T9TEe69gWupwc6uBUphquXgf+/FrIjweHQS4/pduMe5ERUMHUd9xv8ZR98CxkS4F2n3EUrUZ10EYNw7BWm9x1GiPssi3GgiGRDKWRYZfXlON+dfNbM+GgIwYdwAAAAASUVORK5CYII=";var F={},ar={get exports(){return F},set exports(s){F=s}};/* @preserve
1
+ (function(dt,$){typeof exports=="object"&&typeof module<"u"?$(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],$):(dt=typeof globalThis<"u"?globalThis:dt||self,$(dt.vueGeojsonViewTs={},dt.Vue))})(this,function(dt,$){"use strict";var Bt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Jo(s){if(s.__esModule)return s;var l=s.default;if(typeof l=="function"){var c=function d(){if(this instanceof d){var n=[null];n.push.apply(n,arguments);var r=Function.bind.apply(l,n);return new r}return l.apply(this,arguments)};c.prototype=l.prototype}else c={};return Object.defineProperty(c,"__esModule",{value:!0}),Object.keys(s).forEach(function(d){var n=Object.getOwnPropertyDescriptor(s,d);Object.defineProperty(c,d,n.get?n:{enumerable:!0,get:function(){return s[d]}})}),c}var ei={},Yo={get exports(){return ei},set exports(s){ei=s}};function Xo(s){throw new Error('Could not dynamically require "'+s+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var we={},$o={get exports(){return we},set exports(s){we=s}};const Qo=Jo(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var $i;function Qi(){return $i||($i=1,function(s,l){(function(c,d){s.exports=d()})(Bt,function(){var c=c||function(d,n){var r;if(typeof window<"u"&&window.crypto&&(r=window.crypto),typeof self<"u"&&self.crypto&&(r=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(r=globalThis.crypto),!r&&typeof window<"u"&&window.msCrypto&&(r=window.msCrypto),!r&&typeof Bt<"u"&&Bt.crypto&&(r=Bt.crypto),!r&&typeof Xo=="function")try{r=Qo}catch{}var h=function(){if(r){if(typeof r.getRandomValues=="function")try{return r.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof r.randomBytes=="function")try{return r.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},f=Object.create||function(){function b(){}return function(M){var Z;return b.prototype=M,Z=new b,b.prototype=null,Z}}(),m={},_=m.lib={},v=_.Base=function(){return{extend:function(b){var M=f(this);return b&&M.mixIn(b),(!M.hasOwnProperty("init")||this.init===M.init)&&(M.init=function(){M.$super.init.apply(this,arguments)}),M.init.prototype=M,M.$super=this,M},create:function(){var b=this.extend();return b.init.apply(b,arguments),b},init:function(){},mixIn:function(b){for(var M in b)b.hasOwnProperty(M)&&(this[M]=b[M]);b.hasOwnProperty("toString")&&(this.toString=b.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),w=_.WordArray=v.extend({init:function(b,M){b=this.words=b||[],M!=n?this.sigBytes=M:this.sigBytes=b.length*4},toString:function(b){return(b||z).stringify(this)},concat:function(b){var M=this.words,Z=b.words,U=this.sigBytes,J=b.sigBytes;if(this.clamp(),U%4)for(var nt=0;nt<J;nt++){var Kt=Z[nt>>>2]>>>24-nt%4*8&255;M[U+nt>>>2]|=Kt<<24-(U+nt)%4*8}else for(var lt=0;lt<J;lt+=4)M[U+lt>>>2]=Z[lt>>>2];return this.sigBytes+=J,this},clamp:function(){var b=this.words,M=this.sigBytes;b[M>>>2]&=4294967295<<32-M%4*8,b.length=d.ceil(M/4)},clone:function(){var b=v.clone.call(this);return b.words=this.words.slice(0),b},random:function(b){for(var M=[],Z=0;Z<b;Z+=4)M.push(h());return new w.init(M,b)}}),T=m.enc={},z=T.Hex={stringify:function(b){for(var M=b.words,Z=b.sigBytes,U=[],J=0;J<Z;J++){var nt=M[J>>>2]>>>24-J%4*8&255;U.push((nt>>>4).toString(16)),U.push((nt&15).toString(16))}return U.join("")},parse:function(b){for(var M=b.length,Z=[],U=0;U<M;U+=2)Z[U>>>3]|=parseInt(b.substr(U,2),16)<<24-U%8*4;return new w.init(Z,M/2)}},P=T.Latin1={stringify:function(b){for(var M=b.words,Z=b.sigBytes,U=[],J=0;J<Z;J++){var nt=M[J>>>2]>>>24-J%4*8&255;U.push(String.fromCharCode(nt))}return U.join("")},parse:function(b){for(var M=b.length,Z=[],U=0;U<M;U++)Z[U>>>2]|=(b.charCodeAt(U)&255)<<24-U%4*8;return new w.init(Z,M)}},E=T.Utf8={stringify:function(b){try{return decodeURIComponent(escape(P.stringify(b)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(b){return P.parse(unescape(encodeURIComponent(b)))}},D=_.BufferedBlockAlgorithm=v.extend({reset:function(){this._data=new w.init,this._nDataBytes=0},_append:function(b){typeof b=="string"&&(b=E.parse(b)),this._data.concat(b),this._nDataBytes+=b.sigBytes},_process:function(b){var M,Z=this._data,U=Z.words,J=Z.sigBytes,nt=this.blockSize,Kt=nt*4,lt=J/Kt;b?lt=d.ceil(lt):lt=d.max((lt|0)-this._minBufferSize,0);var Nt=lt*nt,rt=d.min(Nt*4,J);if(Nt){for(var at=0;at<Nt;at+=nt)this._doProcessBlock(U,at);M=U.splice(0,Nt),Z.sigBytes-=rt}return new w.init(M,rt)},clone:function(){var b=v.clone.call(this);return b._data=this._data.clone(),b},_minBufferSize:0});_.Hasher=D.extend({cfg:v.extend(),init:function(b){this.cfg=this.cfg.extend(b),this.reset()},reset:function(){D.reset.call(this),this._doReset()},update:function(b){return this._append(b),this._process(),this},finalize:function(b){b&&this._append(b);var M=this._doFinalize();return M},blockSize:16,_createHelper:function(b){return function(M,Z){return new b.init(Z).finalize(M)}},_createHmacHelper:function(b){return function(M,Z){return new N.HMAC.init(b,Z).finalize(M)}}});var N=m.algo={};return m}(Math);return c})}($o)),we}(function(s,l){(function(c,d){s.exports=d(Qi())})(Bt,function(c){return function(){var d=c,n=d.lib,r=n.WordArray,h=d.enc;h.Base64={stringify:function(m){var _=m.words,v=m.sigBytes,w=this._map;m.clamp();for(var T=[],z=0;z<v;z+=3)for(var P=_[z>>>2]>>>24-z%4*8&255,E=_[z+1>>>2]>>>24-(z+1)%4*8&255,D=_[z+2>>>2]>>>24-(z+2)%4*8&255,N=P<<16|E<<8|D,b=0;b<4&&z+b*.75<v;b++)T.push(w.charAt(N>>>6*(3-b)&63));var M=w.charAt(64);if(M)for(;T.length%4;)T.push(M);return T.join("")},parse:function(m){var _=m.length,v=this._map,w=this._reverseMap;if(!w){w=this._reverseMap=[];for(var T=0;T<v.length;T++)w[v.charCodeAt(T)]=T}var z=v.charAt(64);if(z){var P=m.indexOf(z);P!==-1&&(_=P)}return f(m,_,w)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function f(m,_,v){for(var w=[],T=0,z=0;z<_;z++)if(z%4){var P=v[m.charCodeAt(z-1)]<<z%4*2,E=v[m.charCodeAt(z)]>>>6-z%4*2,D=P|E;w[T>>>2]|=D<<24-T%4*8,T++}return r.create(w,T)}}(),c.enc.Base64})})(Yo);const ii=ei;var ni={},tr={get exports(){return ni},set exports(s){ni=s}};(function(s,l){(function(c,d){s.exports=d(Qi())})(Bt,function(c){return c.enc.Utf8})})(tr);const tn=ni,er=(s,l)=>{localStorage.setItem(s,ii.stringify(tn.parse(l)))},ke=s=>{const l=localStorage.getItem(s);return l?ii.parse(l).toString(tn):null},en=s=>{const l=localStorage.getItem(s);return l?ii.parse(l):null},be=s=>{localStorage.removeItem(s)};function ir(){const s=document.createElement("div");return s.className="loading-overlay",s.innerHTML="Recuperando Datos de Google Maps",s.style.position="fixed",s.style.top="0",s.style.left="0",s.style.width="100%",s.style.height="100%",s.style.backgroundColor="rgba(255, 255, 255)",s.style.display="flex",s.style.justifyContent="center",s.style.alignItems="center",s.style.color="#000",s.style.fontSize="24px",s.style.zIndex="999999",document.body.appendChild(s),s}function nr(s){s&&s.remove()}const or=()=>{const l=window.location.href.split("?")[1],c=new URLSearchParams(l),d=Object.fromEntries(c.entries());if(d.coordinates){const n=ir();setTimeout(function(){er("coordinates",d.coordinates.replace("#/",""))},4e3),setTimeout(function(){window.close(),nr(n)},5e3)}},rr=async()=>{window.open("https://www.google.com/maps/?hl=es","Iniciar Sesion Ciudadania Digital","width=700,height=700,resizable=no"),be("coordinates"),be("closePopup");var s=!1;const l=setInterval(function(){let n=ke("coordinates"),r=en("closePopup");(n||r)&&(clearInterval(l),s=!0)},1e3);await(async()=>{for(;!s;)await new Promise(n=>setTimeout(n,100));return!0})();let d=ke("coordinates");if(d){const n=JSON.parse(d);return[parseFloat(n.lat),parseFloat(n.long),parseFloat(n.z)]}},sr=async s=>{window.open(`http://maps.google.com/?q=${s}`,"Iniciar Sesion Ciudadania Digital","width=700,height=700,resizable=no"),be("coordinates"),be("closePopup");var l=!1;const c=setInterval(function(){let r=ke("coordinates"),h=en("closePopup");(r||h)&&(clearInterval(c),l=!0)},1e3);await(async()=>{for(;!l;)await new Promise(r=>setTimeout(r,100));return!0})();let n=ke("coordinates");if(n){const r=JSON.parse(n);return[parseFloat(r.lat),parseFloat(r.long),parseFloat(r.z)]}},oi="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAApCAYAAADAk4LOAAAFgUlEQVR4Aa1XA5BjWRTN2oW17d3YaZtr2962HUzbDNpjszW24mRt28p47v7zq/bXZtrp/lWnXr337j3nPCe85NcypgSFdugCpW5YoDAMRaIMqRi6aKq5E3YqDQO3qAwjVWrD8Ncq/RBpykd8oZUb/kaJutow8r1aP9II0WmLKLIsJyv1w/kqw9Ch2MYdB++12Onxee/QMwvf4/Dk/Lfp/i4nxTXtOoQ4pW5Aj7wpici1A9erdAN2OH64x8OSP9j3Ft3b7aWkTg/Fm91siTra0f9on5sQr9INejH6CUUUpavjFNq1B+Oadhxmnfa8RfEmN8VNAsQhPqF55xHkMzz3jSmChWU6f7/XZKNH+9+hBLOHYozuKQPxyMPUKkrX/K0uWnfFaJGS1QPRtZsOPtr3NsW0uyh6NNCOkU3Yz+bXbT3I8G3xE5EXLXtCXbbqwCO9zPQYPRTZ5vIDXD7U+w7rFDEoUUf7ibHIR4y6bLVPXrz8JVZEql13trxwue/uDivd3fkWRbS6/IA2bID4uk0UpF1N8qLlbBlXs4Ee7HLTfV1j54APvODnSfOWBqtKVvjgLKzF5YdEk5ewRkGlK0i33Eofffc7HT56jD7/6U+qH3Cx7SBLNntH5YIPvODnyfIXZYRVDPqgHtLs5ABHD3YzLuespb7t79FY34DjMwrVrcTuwlT55YMPvOBnRrJ4VXTdNnYug5ucHLBjEpt30701A3Ts+HEa73u6dT3FNWwflY86eMHPk+Yu+i6pzUpRrW7SNDg5JHR4KapmM5Wv2E8Tfcb1HoqqHMHU+uWDD7zg54mz5/2BSnizi9T1Dg4QQXLToGNCkb6tb1NU+QAlGr1++eADrzhn/u8Q2YZhQVlZ5+CAOtqfbhmaUCS1ezNFVm2imDbPmPng5wmz+gwh+oHDce0eUtQ6OGDIyR0uUhUsoO3vfDmmgOezH0mZN59x7MBi++WDL1g/eEiU3avlidO671bkLfwbw5XV2P8Pzo0ydy4t2/0eu33xYSOMOD8hTf4CrBtGMSoXfPLchX+J0ruSePw3LZeK0juPJbYzrhkH0io7B3k164hiGvawhOKMLkrQLyVpZg8rHFW7E2uHOL888IBPlNZ1FPzstSJM694fWr6RwpvcJK60+0HCILTBzZLFNdtAzJaohze60T8qBzyh5ZuOg5e7uwQppofEmf2++DYvmySqGBuKaicF1blQjhuHdvCIMvp8whTTfZzI7RldpwtSzL+F1+wkdZ2TBOW2gIF88PBTzD/gpeREAMEbxnJcaJHNHrpzji0gQCS6hdkEeYt9DF/2qPcEC8RM28Hwmr3sdNyht00byAut2k3gufWNtgtOEOFGUwcXWNDbdNbpgBGxEvKkOQsxivJx33iow0Vw5S6SVTrpVq11ysA2Rp7gTfPfktc6zhtXBBC+adRLshf6sG2RfHPZ5EAc4sVZ83yCN00Fk/4kggu40ZTvIEm5g24qtU4KjBrx/BTTH8ifVASAG7gKrnWxJDcU7x8X6Ecczhm3o6YicvsLXWfh3Ch1W0k8x0nXF+0fFxgt4phz8QvypiwCCFKMqXCnqXExjq10beH+UUA7+nG6mdG/Pu0f3LgFcGrl2s0kNNjpmoJ9o4B29CMO8dMT4Q5ox8uitF6fqsrJOr8qnwNbRzv6hSnG5wP+64C7h9lp30hKNtKdWjtdkbuPA19nJ7Tz3zR/ibgARbhb4AlhavcBebmTHcFl2fvYEnW0ox9xMxKBS8btJ+KiEbq9zA4RthQXDhPa0T9TEe69gWupwc6uBUphquXgf+/FrIjweHQS4/pduMe5ERUMHUd9xv8ZR98CxkS4F2n3EUrUZ10EYNw7BWm9x1GiPssi3GgiGRDKWRYZfXlON+dfNbM+GgIwYdwAAAAASUVORK5CYII=";var F={},ar={get exports(){return F},set exports(s){F=s}};/* @preserve
2
2
  * Leaflet 1.9.3, a JS library for interactive maps. https://leafletjs.com
3
3
  * (c) 2010-2022 Vladimir Agafonkin, (c) 2010-2011 CloudMade
4
- */(function(s,l){(function(c,d){d(l)})(Bt,function(c){var d="1.9.3";function n(t){var e,i,o,a;for(i=1,o=arguments.length;i<o;i++){a=arguments[i];for(e in a)t[e]=a[e]}return t}var r=Object.create||function(){function t(){}return function(e){return t.prototype=e,new t}}();function h(t,e){var i=Array.prototype.slice;if(t.bind)return t.bind.apply(t,i.call(arguments,1));var o=i.call(arguments,2);return function(){return t.apply(e,o.length?o.concat(i.call(arguments)):arguments)}}var f=0;function m(t){return"_leaflet_id"in t||(t._leaflet_id=++f),t._leaflet_id}function _(t,e,i){var o,a,u,p;return p=function(){o=!1,a&&(u.apply(i,a),a=!1)},u=function(){o?a=arguments:(t.apply(i,arguments),setTimeout(p,e),o=!0)},u}function v(t,e,i){var o=e[1],a=e[0],u=o-a;return t===o&&i?t:((t-a)%u+u)%u+a}function w(){return!1}function E(t,e){if(e===!1)return t;var i=Math.pow(10,e===void 0?6:e);return Math.round(t*i)/i}function z(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function P(t){return z(t).split(/\s+/)}function T(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 D(t,e,i){var o=[];for(var a in t)o.push(encodeURIComponent(i?a.toUpperCase():a)+"="+encodeURIComponent(t[a]));return(!e||e.indexOf("?")===-1?"?":"&")+o.join("&")}var N=/\{ *([\w_ -]+) *\}/g;function b(t,e){return t.replace(N,function(i,o){var a=e[o];if(a===void 0)throw new Error("No value provided for variable "+i);return typeof a=="function"&&(a=a(e)),a})}var M=Array.isArray||function(t){return Object.prototype.toString.call(t)==="[object Array]"};function Z(t,e){for(var i=0;i<t.length;i++)if(t[i]===e)return i;return-1}var U="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function J(t){return window["webkit"+t]||window["moz"+t]||window["ms"+t]}var nt=0;function Kt(t){var e=+new Date,i=Math.max(0,16-(e-nt));return nt=e+i,window.setTimeout(t,i)}var lt=window.requestAnimationFrame||J("RequestAnimationFrame")||Kt,Nt=window.cancelAnimationFrame||J("CancelAnimationFrame")||J("CancelRequestAnimationFrame")||function(t){window.clearTimeout(t)};function rt(t,e,i){if(i&&lt===Kt)t.call(e);else return lt.call(window,h(t,e))}function at(t){t&&Nt.call(window,t)}var oa={__proto__:null,extend:n,create:r,bind:h,get lastId(){return f},stamp:m,throttle:_,wrapNum:v,falseFn:w,formatNum:E,trim:z,splitWords:P,setOptions:T,getParamString:D,template:b,isArray:M,indexOf:Z,emptyImageUrl:U,requestFn:lt,cancelFn:Nt,requestAnimFrame:rt,cancelAnimFrame:at};function Tt(){}Tt.extend=function(t){var e=function(){T(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},i=e.__super__=this.prototype,o=r(i);o.constructor=e,e.prototype=o;for(var a in this)Object.prototype.hasOwnProperty.call(this,a)&&a!=="prototype"&&a!=="__super__"&&(e[a]=this[a]);return t.statics&&n(e,t.statics),t.includes&&(ra(t.includes),n.apply(null,[o].concat(t.includes))),n(o,t),delete o.statics,delete o.includes,o.options&&(o.options=i.options?r(i.options):{},n(o.options,t.options)),o._initHooks=[],o.callInitHooks=function(){if(!this._initHooksCalled){i.callInitHooks&&i.callInitHooks.call(this),this._initHooksCalled=!0;for(var u=0,p=o._initHooks.length;u<p;u++)o._initHooks[u].call(this)}},e},Tt.include=function(t){var e=this.prototype.options;return n(this.prototype,t),t.options&&(this.prototype.options=e,this.mergeOptions(t.options)),this},Tt.mergeOptions=function(t){return n(this.prototype.options,t),this},Tt.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 ra(t){if(!(typeof L>"u"||!L||!L.Mixin)){t=M(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 ut={on:function(t,e,i){if(typeof t=="object")for(var o in t)this._on(o,t[o],e);else{t=P(t);for(var a=0,u=t.length;a<u;a++)this._on(t[a],e,i)}return this},off:function(t,e,i){if(!arguments.length)delete this._events;else if(typeof t=="object")for(var o in t)this._off(o,t[o],e);else{t=P(t);for(var a=arguments.length===1,u=0,p=t.length;u<p;u++)a?this._off(t[u]):this._off(t[u],e,i)}return this},_on:function(t,e,i,o){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 a={fn:e,ctx:i};o&&(a.once=!0),this._events=this._events||{},this._events[t]=this._events[t]||[],this._events[t].push(a)}},_off:function(t,e,i){var o,a,u;if(this._events&&(o=this._events[t],!!o)){if(arguments.length===1){if(this._firingCount)for(a=0,u=o.length;a<u;a++)o[a].fn=w;delete this._events[t];return}if(typeof e!="function"){console.warn("wrong listener type: "+typeof e);return}var p=this._listens(t,e,i);if(p!==!1){var g=o[p];this._firingCount&&(g.fn=w,this._events[t]=o=o.slice()),o.splice(p,1)}}},fire:function(t,e,i){if(!this.listens(t,i))return this;var o=n({},e,{type:t,target:this,sourceTarget:e&&e.sourceTarget||this});if(this._events){var a=this._events[t];if(a){this._firingCount=this._firingCount+1||1;for(var u=0,p=a.length;u<p;u++){var g=a[u],y=g.fn;g.once&&this.off(t,y,g.ctx),y.call(g.ctx||this,o)}this._firingCount--}}return i&&this._propagateEvent(o),this},listens:function(t,e,i,o){typeof t!="string"&&console.warn('"string" type argument expected');var a=e;typeof e!="function"&&(o=!!e,a=void 0,i=void 0);var u=this._events&&this._events[t];if(u&&u.length&&this._listens(t,a,i)!==!1)return!0;if(o){for(var p in this._eventParents)if(this._eventParents[p].listens(t,e,i,o))return!0}return!1},_listens:function(t,e,i){if(!this._events)return!1;var o=this._events[t]||[];if(!e)return!!o.length;i===this&&(i=void 0);for(var a=0,u=o.length;a<u;a++)if(o[a].fn===e&&o[a].ctx===i)return a;return!1},once:function(t,e,i){if(typeof t=="object")for(var o in t)this._on(o,t[o],e,!0);else{t=P(t);for(var a=0,u=t.length;a<u;a++)this._on(t[a],e,i,!0)}return this},addEventParent:function(t){return this._eventParents=this._eventParents||{},this._eventParents[m(t)]=t,this},removeEventParent:function(t){return this._eventParents&&delete this._eventParents[m(t)],this},_propagateEvent:function(t){for(var e in this._eventParents)this._eventParents[e].fire(t.type,n({layer:t.target,propagatedFrom:t.target},t),!0)}};ut.addEventListener=ut.on,ut.removeEventListener=ut.clearAllEventListeners=ut.off,ut.addOneTimeEventListener=ut.once,ut.fireEvent=ut.fire,ut.hasEventListeners=ut.listens;var se=Tt.extend(ut);function I(t,e,i){this.x=i?Math.round(t):t,this.y=i?Math.round(e):e}var Bn=Math.trunc||function(t){return t>0?Math.floor(t):Math.ceil(t)};I.prototype={clone:function(){return new I(this.x,this.y)},add:function(t){return this.clone()._add(A(t))},_add:function(t){return this.x+=t.x,this.y+=t.y,this},subtract:function(t){return this.clone()._subtract(A(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 I(this.x*t.x,this.y*t.y)},unscaleBy:function(t){return new I(this.x/t.x,this.y/t.y)},round:function(){return this.clone()._round()},_round:function(){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=Bn(this.x),this.y=Bn(this.y),this},distanceTo:function(t){t=A(t);var e=t.x-this.x,i=t.y-this.y;return Math.sqrt(e*e+i*i)},equals:function(t){return t=A(t),t.x===this.x&&t.y===this.y},contains:function(t){return t=A(t),Math.abs(t.x)<=Math.abs(this.x)&&Math.abs(t.y)<=Math.abs(this.y)},toString:function(){return"Point("+E(this.x)+", "+E(this.y)+")"}};function A(t,e,i){return t instanceof I?t:M(t)?new I(t[0],t[1]):t==null?t:typeof t=="object"&&"x"in t&&"y"in t?new I(t.x,t.y):new I(t,e,i)}function Y(t,e){if(t)for(var i=e?[t,e]:t,o=0,a=i.length;o<a;o++)this.extend(i[o])}Y.prototype={extend:function(t){var e,i;if(!t)return this;if(t instanceof I||typeof t[0]=="number"||"x"in t)e=i=A(t);else if(t=ht(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 A((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,t)},getBottomLeft:function(){return A(this.min.x,this.max.y)},getTopRight:function(){return A(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(t){var e,i;return typeof t[0]=="number"||t instanceof I?t=A(t):t=ht(t),t instanceof Y?(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=ht(t);var e=this.min,i=this.max,o=t.min,a=t.max,u=a.x>=e.x&&o.x<=i.x,p=a.y>=e.y&&o.y<=i.y;return u&&p},overlaps:function(t){t=ht(t);var e=this.min,i=this.max,o=t.min,a=t.max,u=a.x>e.x&&o.x<i.x,p=a.y>e.y&&o.y<i.y;return u&&p},isValid:function(){return!!(this.min&&this.max)},pad:function(t){var e=this.min,i=this.max,o=Math.abs(e.x-i.x)*t,a=Math.abs(e.y-i.y)*t;return ht(A(e.x-o,e.y-a),A(i.x+o,i.y+a))},equals:function(t){return t?(t=ht(t),this.min.equals(t.getTopLeft())&&this.max.equals(t.getBottomRight())):!1}};function ht(t,e){return!t||t instanceof Y?t:new Y(t,e)}function ct(t,e){if(t)for(var i=e?[t,e]:t,o=0,a=i.length;o<a;o++)this.extend(i[o])}ct.prototype={extend:function(t){var e=this._southWest,i=this._northEast,o,a;if(t instanceof W)o=t,a=t;else if(t instanceof ct){if(o=t._southWest,a=t._northEast,!o||!a)return this}else return t?this.extend(K(t)||ot(t)):this;return!e&&!i?(this._southWest=new W(o.lat,o.lng),this._northEast=new W(a.lat,a.lng)):(e.lat=Math.min(o.lat,e.lat),e.lng=Math.min(o.lng,e.lng),i.lat=Math.max(a.lat,i.lat),i.lng=Math.max(a.lng,i.lng)),this},pad:function(t){var e=this._southWest,i=this._northEast,o=Math.abs(e.lat-i.lat)*t,a=Math.abs(e.lng-i.lng)*t;return new ct(new W(e.lat-o,e.lng-a),new W(i.lat+o,i.lng+a))},getCenter:function(){return new W((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 W(this.getNorth(),this.getWest())},getSouthEast:function(){return new W(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 W||"lat"in t?t=K(t):t=ot(t);var e=this._southWest,i=this._northEast,o,a;return t instanceof ct?(o=t.getSouthWest(),a=t.getNorthEast()):o=a=t,o.lat>=e.lat&&a.lat<=i.lat&&o.lng>=e.lng&&a.lng<=i.lng},intersects:function(t){t=ot(t);var e=this._southWest,i=this._northEast,o=t.getSouthWest(),a=t.getNorthEast(),u=a.lat>=e.lat&&o.lat<=i.lat,p=a.lng>=e.lng&&o.lng<=i.lng;return u&&p},overlaps:function(t){t=ot(t);var e=this._southWest,i=this._northEast,o=t.getSouthWest(),a=t.getNorthEast(),u=a.lat>e.lat&&o.lat<i.lat,p=a.lng>e.lng&&o.lng<i.lng;return u&&p},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(t,e){return t?(t=ot(t),this._southWest.equals(t.getSouthWest(),e)&&this._northEast.equals(t.getNorthEast(),e)):!1},isValid:function(){return!!(this._southWest&&this._northEast)}};function ot(t,e){return t instanceof ct?t:new ct(t,e)}function W(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)}W.prototype={equals:function(t,e){if(!t)return!1;t=K(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("+E(this.lat,t)+", "+E(this.lng,t)+")"},distanceTo:function(t){return Ot.distance(this,K(t))},wrap:function(){return Ot.wrapLatLng(this)},toBounds:function(t){var e=180*t/40075017,i=e/Math.cos(Math.PI/180*this.lat);return ot([this.lat-e,this.lng-i],[this.lat+e,this.lng+i])},clone:function(){return new W(this.lat,this.lng,this.alt)}};function K(t,e,i){return t instanceof W?t:M(t)&&typeof t[0]!="object"?t.length===3?new W(t[0],t[1],t[2]):t.length===2?new W(t[0],t[1]):null:t==null?t:typeof t=="object"&&"lat"in t?new W(t.lat,"lng"in t?t.lng:t.lon,t.alt):e===void 0?null:new W(t,e,i)}var Et={latLngToPoint:function(t,e){var i=this.projection.project(t),o=this.scale(e);return this.transformation._transform(i,o)},pointToLatLng:function(t,e){var i=this.scale(e),o=this.transformation.untransform(t,i);return this.projection.unproject(o)},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),o=this.transformation.transform(e.min,i),a=this.transformation.transform(e.max,i);return new Y(o,a)},infinite:!1,wrapLatLng:function(t){var e=this.wrapLng?v(t.lng,this.wrapLng,!0):t.lng,i=this.wrapLat?v(t.lat,this.wrapLat,!0):t.lat,o=t.alt;return new W(i,e,o)},wrapLatLngBounds:function(t){var e=t.getCenter(),i=this.wrapLatLng(e),o=e.lat-i.lat,a=e.lng-i.lng;if(o===0&&a===0)return t;var u=t.getSouthWest(),p=t.getNorthEast(),g=new W(u.lat-o,u.lng-a),y=new W(p.lat-o,p.lng-a);return new ct(g,y)}},Ot=n({},Et,{wrapLng:[-180,180],R:6371e3,distance:function(t,e){var i=Math.PI/180,o=t.lat*i,a=e.lat*i,u=Math.sin((e.lat-t.lat)*i/2),p=Math.sin((e.lng-t.lng)*i/2),g=u*u+Math.cos(o)*Math.cos(a)*p*p,y=2*Math.atan2(Math.sqrt(g),Math.sqrt(1-g));return this.R*y}}),Nn=6378137,vi={R:Nn,MAX_LATITUDE:85.0511287798,project:function(t){var e=Math.PI/180,i=this.MAX_LATITUDE,o=Math.max(Math.min(i,t.lat),-i),a=Math.sin(o*e);return new I(this.R*t.lng*e,this.R*Math.log((1+a)/(1-a))/2)},unproject:function(t){var e=180/Math.PI;return new W((2*Math.atan(Math.exp(t.y/this.R))-Math.PI/2)*e,t.x*e/this.R)},bounds:function(){var t=Nn*Math.PI;return new Y([-t,-t],[t,t])}()};function yi(t,e,i,o){if(M(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=o}yi.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 I((t.x/e-this._b)/this._a,(t.y/e-this._d)/this._c)}};function ae(t,e,i,o){return new yi(t,e,i,o)}var Li=n({},Ot,{code:"EPSG:3857",projection:vi,transformation:function(){var t=.5/(Math.PI*vi.R);return ae(t,.5,-t,.5)}()}),sa=n({},Li,{code:"EPSG:900913"});function Zn(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function Hn(t,e){var i="",o,a,u,p,g,y;for(o=0,u=t.length;o<u;o++){for(g=t[o],a=0,p=g.length;a<p;a++)y=g[a],i+=(a?"L":"M")+y.x+" "+y.y;i+=e?S.svg?"z":"x":""}return i||"M0 0"}var wi=document.documentElement.style,Ie="ActiveXObject"in window,aa=Ie&&!document.addEventListener,Fn="msLaunchUri"in navigator&&!("documentMode"in document),ki=wt("webkit"),Un=wt("android"),jn=wt("android 2")||wt("android 3"),la=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),ha=Un&&wt("Google")&&la<537&&!("AudioNode"in window),bi=!!window.opera,Gn=!Fn&&wt("chrome"),qn=wt("gecko")&&!ki&&!bi&&!Ie,ca=!Gn&&wt("safari"),Wn=wt("phantom"),Kn="OTransition"in wi,ua=navigator.platform.indexOf("Win")===0,Vn=Ie&&"transition"in wi,xi="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!jn,Jn="MozPerspective"in wi,da=!window.L_DISABLE_3D&&(Vn||xi||Jn)&&!Kn&&!Wn,le=typeof orientation<"u"||wt("mobile"),fa=le&&ki,pa=le&&xi,Yn=!window.PointerEvent&&window.MSPointerEvent,Xn=!!(window.PointerEvent||Yn),$n="ontouchstart"in window||!!window.TouchEvent,_a=!window.L_NO_TOUCH&&($n||Xn),ma=le&&bi,ga=le&&qn,va=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,ya=function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("testPassiveEventSupport",w,e),window.removeEventListener("testPassiveEventSupport",w,e)}catch{}return t}(),La=function(){return!!document.createElement("canvas").getContext}(),Pi=!!(document.createElementNS&&Zn("svg").createSVGRect),wa=!!Pi&&function(){var t=document.createElement("div");return t.innerHTML="<svg/>",(t.firstChild&&t.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"}(),ka=!Pi&&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}}(),ba=navigator.platform.indexOf("Mac")===0,xa=navigator.platform.indexOf("Linux")===0;function wt(t){return navigator.userAgent.toLowerCase().indexOf(t)>=0}var S={ie:Ie,ielt9:aa,edge:Fn,webkit:ki,android:Un,android23:jn,androidStock:ha,opera:bi,chrome:Gn,gecko:qn,safari:ca,phantom:Wn,opera12:Kn,win:ua,ie3d:Vn,webkit3d:xi,gecko3d:Jn,any3d:da,mobile:le,mobileWebkit:fa,mobileWebkit3d:pa,msPointer:Yn,pointer:Xn,touch:_a,touchNative:$n,mobileOpera:ma,mobileGecko:ga,retina:va,passiveEvents:ya,canvas:La,svg:Pi,vml:ka,inlineSvg:wa,mac:ba,linux:xa},Qn=S.msPointer?"MSPointerDown":"pointerdown",to=S.msPointer?"MSPointerMove":"pointermove",eo=S.msPointer?"MSPointerUp":"pointerup",io=S.msPointer?"MSPointerCancel":"pointercancel",Ti={touchstart:Qn,touchmove:to,touchend:eo,touchcancel:io},no={touchstart:za,touchmove:Re,touchend:Re,touchcancel:Re},Vt={},oo=!1;function Pa(t,e,i){return e==="touchstart"&&Ca(),no[e]?(i=no[e].bind(this,i),t.addEventListener(Ti[e],i,!1),i):(console.warn("wrong event specified:",e),w)}function Ta(t,e,i){if(!Ti[e]){console.warn("wrong event specified:",e);return}t.removeEventListener(Ti[e],i,!1)}function Ea(t){Vt[t.pointerId]=t}function Ma(t){Vt[t.pointerId]&&(Vt[t.pointerId]=t)}function ro(t){delete Vt[t.pointerId]}function Ca(){oo||(document.addEventListener(Qn,Ea,!0),document.addEventListener(to,Ma,!0),document.addEventListener(eo,ro,!0),document.addEventListener(io,ro,!0),oo=!0)}function Re(t,e){if(e.pointerType!==(e.MSPOINTER_TYPE_MOUSE||"mouse")){e.touches=[];for(var i in Vt)e.touches.push(Vt[i]);e.changedTouches=[e],t(e)}}function za(t,e){e.MSPOINTER_TYPE_TOUCH&&e.pointerType===e.MSPOINTER_TYPE_TOUCH&&st(e),Re(t,e)}function Sa(t){var e={},i,o;for(o in t)i=t[o],e[o]=i&&i.bind?i.bind(t):i;return t=e,e.type="dblclick",e.detail=2,e.isTrusted=!1,e._simulated=!0,e}var Da=200;function Oa(t,e){t.addEventListener("dblclick",e);var i=0,o;function a(u){if(u.detail!==1){o=u.detail;return}if(!(u.pointerType==="mouse"||u.sourceCapabilities&&!u.sourceCapabilities.firesTouchEvents)){var p=co(u);if(!(p.some(function(y){return y instanceof HTMLLabelElement&&y.attributes.for})&&!p.some(function(y){return y instanceof HTMLInputElement||y instanceof HTMLSelectElement}))){var g=Date.now();g-i<=Da?(o++,o===2&&e(Sa(u))):o=1,i=g}}}return t.addEventListener("click",a),{dblclick:e,simDblclick:a}}function Aa(t,e){t.removeEventListener("dblclick",e.dblclick),t.removeEventListener("click",e.simDblclick)}var Ei=Ze(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),he=Ze(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),so=he==="webkitTransition"||he==="OTransition"?he+"End":"transitionend";function ao(t){return typeof t=="string"?document.getElementById(t):t}function ce(t,e){var i=t.style[e]||t.currentStyle&&t.currentStyle[e];if((!i||i==="auto")&&document.defaultView){var o=document.defaultView.getComputedStyle(t,null);i=o?o[e]:null}return i==="auto"?null:i}function q(t,e,i){var o=document.createElement(t);return o.className=e||"",i&&i.appendChild(o),o}function X(t){var e=t.parentNode;e&&e.removeChild(t)}function Be(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function Jt(t){var e=t.parentNode;e&&e.lastChild!==t&&e.appendChild(t)}function Yt(t){var e=t.parentNode;e&&e.firstChild!==t&&e.insertBefore(t,e.firstChild)}function Mi(t,e){if(t.classList!==void 0)return t.classList.contains(e);var i=Ne(t);return i.length>0&&new RegExp("(^|\\s)"+e+"(\\s|$)").test(i)}function B(t,e){if(t.classList!==void 0)for(var i=P(e),o=0,a=i.length;o<a;o++)t.classList.add(i[o]);else if(!Mi(t,e)){var u=Ne(t);Ci(t,(u?u+" ":"")+e)}}function Q(t,e){t.classList!==void 0?t.classList.remove(e):Ci(t,z((" "+Ne(t)+" ").replace(" "+e+" "," ")))}function Ci(t,e){t.className.baseVal===void 0?t.className=e:t.className.baseVal=e}function Ne(t){return t.correspondingElement&&(t=t.correspondingElement),t.className.baseVal===void 0?t.className:t.className.baseVal}function pt(t,e){"opacity"in t.style?t.style.opacity=e:"filter"in t.style&&Ia(t,e)}function Ia(t,e){var i=!1,o="DXImageTransform.Microsoft.Alpha";try{i=t.filters.item(o)}catch{if(e===1)return}e=Math.round(e*100),i?(i.Enabled=e!==100,i.Opacity=e):t.style.filter+=" progid:"+o+"(opacity="+e+")"}function Ze(t){for(var e=document.documentElement.style,i=0;i<t.length;i++)if(t[i]in e)return t[i];return!1}function Zt(t,e,i){var o=e||new I(0,0);t.style[Ei]=(S.ie3d?"translate("+o.x+"px,"+o.y+"px)":"translate3d("+o.x+"px,"+o.y+"px,0)")+(i?" scale("+i+")":"")}function tt(t,e){t._leaflet_pos=e,S.any3d?Zt(t,e):(t.style.left=e.x+"px",t.style.top=e.y+"px")}function Ht(t){return t._leaflet_pos||new I(0,0)}var ue,de,zi;if("onselectstart"in document)ue=function(){R(window,"selectstart",st)},de=function(){V(window,"selectstart",st)};else{var fe=Ze(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);ue=function(){if(fe){var t=document.documentElement.style;zi=t[fe],t[fe]="none"}},de=function(){fe&&(document.documentElement.style[fe]=zi,zi=void 0)}}function Si(){R(window,"dragstart",st)}function Di(){V(window,"dragstart",st)}var He,Oi;function Ai(t){for(;t.tabIndex===-1;)t=t.parentNode;t.style&&(Fe(),He=t,Oi=t.style.outline,t.style.outline="none",R(window,"keydown",Fe))}function Fe(){He&&(He.style.outline=Oi,He=void 0,Oi=void 0,V(window,"keydown",Fe))}function lo(t){do t=t.parentNode;while((!t.offsetWidth||!t.offsetHeight)&&t!==document.body);return t}function Ii(t){var e=t.getBoundingClientRect();return{x:e.width/t.offsetWidth||1,y:e.height/t.offsetHeight||1,boundingClientRect:e}}var Ra={__proto__:null,TRANSFORM:Ei,TRANSITION:he,TRANSITION_END:so,get:ao,getStyle:ce,create:q,remove:X,empty:Be,toFront:Jt,toBack:Yt,hasClass:Mi,addClass:B,removeClass:Q,setClass:Ci,getClass:Ne,setOpacity:pt,testProp:Ze,setTransform:Zt,setPosition:tt,getPosition:Ht,get disableTextSelection(){return ue},get enableTextSelection(){return de},disableImageDrag:Si,enableImageDrag:Di,preventOutline:Ai,restoreOutline:Fe,getSizedParentNode:lo,getScale:Ii};function R(t,e,i,o){if(e&&typeof e=="object")for(var a in e)Bi(t,a,e[a],i);else{e=P(e);for(var u=0,p=e.length;u<p;u++)Bi(t,e[u],i,o)}return this}var kt="_leaflet_events";function V(t,e,i,o){if(arguments.length===1)ho(t),delete t[kt];else if(e&&typeof e=="object")for(var a in e)Ni(t,a,e[a],i);else if(e=P(e),arguments.length===2)ho(t,function(g){return Z(e,g)!==-1});else for(var u=0,p=e.length;u<p;u++)Ni(t,e[u],i,o);return this}function ho(t,e){for(var i in t[kt]){var o=i.split(/\d/)[0];(!e||e(o))&&Ni(t,o,null,null,i)}}var Ri={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function Bi(t,e,i,o){var a=e+m(i)+(o?"_"+m(o):"");if(t[kt]&&t[kt][a])return this;var u=function(g){return i.call(o||t,g||window.event)},p=u;!S.touchNative&&S.pointer&&e.indexOf("touch")===0?u=Pa(t,e,u):S.touch&&e==="dblclick"?u=Oa(t,u):"addEventListener"in t?e==="touchstart"||e==="touchmove"||e==="wheel"||e==="mousewheel"?t.addEventListener(Ri[e]||e,u,S.passiveEvents?{passive:!1}:!1):e==="mouseenter"||e==="mouseleave"?(u=function(g){g=g||window.event,Hi(t,g)&&p(g)},t.addEventListener(Ri[e],u,!1)):t.addEventListener(e,p,!1):t.attachEvent("on"+e,u),t[kt]=t[kt]||{},t[kt][a]=u}function Ni(t,e,i,o,a){a=a||e+m(i)+(o?"_"+m(o):"");var u=t[kt]&&t[kt][a];if(!u)return this;!S.touchNative&&S.pointer&&e.indexOf("touch")===0?Ta(t,e,u):S.touch&&e==="dblclick"?Aa(t,u):"removeEventListener"in t?t.removeEventListener(Ri[e]||e,u,!1):t.detachEvent("on"+e,u),t[kt][a]=null}function Ft(t){return t.stopPropagation?t.stopPropagation():t.originalEvent?t.originalEvent._stopped=!0:t.cancelBubble=!0,this}function Zi(t){return Bi(t,"wheel",Ft),this}function pe(t){return R(t,"mousedown touchstart dblclick contextmenu",Ft),t._leaflet_disable_click=!0,this}function st(t){return t.preventDefault?t.preventDefault():t.returnValue=!1,this}function Ut(t){return st(t),Ft(t),this}function co(t){if(t.composedPath)return t.composedPath();for(var e=[],i=t.target;i;)e.push(i),i=i.parentNode;return e}function uo(t,e){if(!e)return new I(t.clientX,t.clientY);var i=Ii(e),o=i.boundingClientRect;return new I((t.clientX-o.left)/i.x-e.clientLeft,(t.clientY-o.top)/i.y-e.clientTop)}var Ba=S.linux&&S.chrome?window.devicePixelRatio:S.mac?window.devicePixelRatio*3:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function fo(t){return S.edge?t.wheelDeltaY/2:t.deltaY&&t.deltaMode===0?-t.deltaY/Ba: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 Hi(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 Na={__proto__:null,on:R,off:V,stopPropagation:Ft,disableScrollPropagation:Zi,disableClickPropagation:pe,preventDefault:st,stop:Ut,getPropagationPath:co,getMousePosition:uo,getWheelDelta:fo,isExternalTarget:Hi,addListener:R,removeListener:V},po=se.extend({run:function(t,e,i,o){this.stop(),this._el=t,this._inProgress=!0,this._duration=i||.25,this._easeOutPower=1/Math.max(o||.5,.2),this._startPos=Ht(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=rt(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(),tt(this._el,i),this.fire("step")},_complete:function(){at(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(t){return 1-Math.pow(1-t,this._easeOutPower)}}),j=se.extend({options:{crs:Li,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=T(this,e),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(t),this._initLayout(),this._onResize=h(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(K(e.center),e.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=he&&S.any3d&&!S.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),R(this._proxy,so,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(K(t),e,this.options.maxBounds),i=i||{},this._stop(),this._loaded&&!i.reset&&i!==!0){i.animate!==void 0&&(i.zoom=n({animate:i.animate},i.zoom),i.pan=n({animate:i.animate,duration:i.duration},i.pan));var o=this._zoom!==e?this._tryAnimatedZoom&&this._tryAnimatedZoom(t,e,i.zoom):this._tryAnimatedPan(t,i.pan);if(o)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||(S.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+t,e)},zoomOut:function(t,e){return t=t||(S.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-t,e)},setZoomAround:function(t,e,i){var o=this.getZoomScale(e),a=this.getSize().divideBy(2),u=t instanceof I?t:this.latLngToContainerPoint(t),p=u.subtract(a).multiplyBy(1-1/o),g=this.containerPointToLatLng(a.add(p));return this.setView(g,e,{zoom:i})},_getBoundsCenterZoom:function(t,e){e=e||{},t=t.getBounds?t.getBounds():ot(t);var i=A(e.paddingTopLeft||e.padding||[0,0]),o=A(e.paddingBottomRight||e.padding||[0,0]),a=this.getBoundsZoom(t,!1,i.add(o));if(a=typeof e.maxZoom=="number"?Math.min(e.maxZoom,a):a,a===1/0)return{center:t.getCenter(),zoom:a};var u=o.subtract(i).divideBy(2),p=this.project(t.getSouthWest(),a),g=this.project(t.getNorthEast(),a),y=this.unproject(p.add(g).divideBy(2).add(u),a);return{center:y,zoom:a}},fitBounds:function(t,e){if(t=ot(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=A(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 po,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),e.noMoveStart||this.fire("movestart"),e.animate!==!1){B(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||!S.any3d)return this.setView(t,e,i);this._stop();var o=this.project(this.getCenter()),a=this.project(t),u=this.getSize(),p=this._zoom;t=K(t),e=e===void 0?p:e;var g=Math.max(u.x,u.y),y=g*this.getZoomScale(p,e),x=a.distanceTo(o)||1,C=1.42,O=C*C;function H(et){var ti=et?-1:1,Tl=et?y:g,El=y*y-g*g+ti*O*O*x*x,Ml=2*Tl*O*x,Xi=El/Ml,Vo=Math.sqrt(Xi*Xi+1)-Xi,Cl=Vo<1e-9?-18:Math.log(Vo);return Cl}function mt(et){return(Math.exp(et)-Math.exp(-et))/2}function Gt(et){return(Math.exp(et)+Math.exp(-et))/2}function Qe(et){return mt(et)/Gt(et)}var Rt=H(0);function Yi(et){return g*(Gt(Rt)/Gt(Rt+C*et))}function kl(et){return g*(Gt(Rt)*Qe(Rt+C*et)-mt(Rt))/O}function bl(et){return 1-Math.pow(1-et,1.5)}var xl=Date.now(),Wo=(H(1)-Rt)/C,Pl=i.duration?1e3*i.duration:1e3*Wo*.8;function Ko(){var et=(Date.now()-xl)/Pl,ti=bl(et)*Wo;et<=1?(this._flyToFrame=rt(Ko,this),this._move(this.unproject(o.add(a.subtract(o).multiplyBy(kl(ti)/x)),p),this.getScaleZoom(g/Yi(ti),p),{flyTo:!0})):this._move(t,e)._moveEnd(!0)}return this._moveStart(!0,i.noMoveStart),Ko.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=ot(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(),o=this._limitCenter(i,this._zoom,ot(t));return i.equals(o)||this.panTo(o,e),this._enforcingBounds=!1,this},panInside:function(t,e){e=e||{};var i=A(e.paddingTopLeft||e.padding||[0,0]),o=A(e.paddingBottomRight||e.padding||[0,0]),a=this.project(this.getCenter()),u=this.project(t),p=this.getPixelBounds(),g=ht([p.min.add(i),p.max.subtract(o)]),y=g.getSize();if(!g.contains(u)){this._enforcingBounds=!0;var x=u.subtract(g.getCenter()),C=g.extend(u).getSize().subtract(y);a.x+=x.x<0?-C.x:C.x,a.y+=x.y<0?-C.y:C.y,this.panTo(this.unproject(a),e),this._enforcingBounds=!1}return this},invalidateSize:function(t){if(!this._loaded)return this;t=n({animate:!1,pan:!0},t===!0?{animate:!0}:t);var e=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var i=this.getSize(),o=e.divideBy(2).round(),a=i.divideBy(2).round(),u=o.subtract(a);return!u.x&&!u.y?this:(t.animate&&t.pan?this.panBy(u):(t.pan&&this._rawPanBy(u),this.fire("move"),t.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(h(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=n({timeout:1e4,watch:!1},t),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var e=h(this._handleGeolocationResponse,this),i=h(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,o=new W(e,i),a=o.toBounds(t.coords.accuracy*2),u=this._locateOptions;if(u.setView){var p=this.getBoundsZoom(a);this.setView(o,u.maxZoom?Math.min(p,u.maxZoom):p)}var g={latlng:o,bounds:a,timestamp:t.timestamp};for(var y in t.coords)typeof t.coords[y]=="number"&&(g[y]=t.coords[y]);this.fire("locationfound",g)}},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(),X(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(at(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)X(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":""),o=q("div",i,e||this._mapPane);return t&&(this._panes[t]=o),o},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 ct(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=ot(t),i=A(i||[0,0]);var o=this.getZoom()||0,a=this.getMinZoom(),u=this.getMaxZoom(),p=t.getNorthWest(),g=t.getSouthEast(),y=this.getSize().subtract(i),x=ht(this.project(g,o),this.project(p,o)).getSize(),C=S.any3d?this.options.zoomSnap:1,O=y.x/x.x,H=y.y/x.y,mt=e?Math.max(O,H):Math.min(O,H);return o=this.getScaleZoom(mt,o),C&&(o=Math.round(o/(C/100))*(C/100),o=e?Math.ceil(o/C)*C:Math.floor(o/C)*C),Math.max(a,Math.min(u,o))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new I(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 Y(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 o=i.zoom(t*i.scale(e));return isNaN(o)?1/0:o},project:function(t,e){return e=e===void 0?this._zoom:e,this.options.crs.latLngToPoint(K(t),e)},unproject:function(t,e){return e=e===void 0?this._zoom:e,this.options.crs.pointToLatLng(A(t),e)},layerPointToLatLng:function(t){var e=A(t).add(this.getPixelOrigin());return this.unproject(e)},latLngToLayerPoint:function(t){var e=this.project(K(t))._round();return e._subtract(this.getPixelOrigin())},wrapLatLng:function(t){return this.options.crs.wrapLatLng(K(t))},wrapLatLngBounds:function(t){return this.options.crs.wrapLatLngBounds(ot(t))},distance:function(t,e){return this.options.crs.distance(K(t),K(e))},containerPointToLayerPoint:function(t){return A(t).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(t){return A(t).add(this._getMapPanePos())},containerPointToLatLng:function(t){var e=this.containerPointToLayerPoint(A(t));return this.layerPointToLatLng(e)},latLngToContainerPoint:function(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint(K(t)))},mouseEventToContainerPoint:function(t){return uo(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=ao(t);if(e){if(e._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");R(e,"scroll",this._onScroll,this),this._containerId=m(e)},_initLayout:function(){var t=this._container;this._fadeAnimated=this.options.fadeAnimation&&S.any3d,B(t,"leaflet-container"+(S.touch?" leaflet-touch":"")+(S.retina?" leaflet-retina":"")+(S.ielt9?" leaflet-oldie":"")+(S.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var e=ce(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),tt(this._mapPane,new I(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(B(t.markerPane,"leaflet-zoom-hide"),B(t.shadowPane,"leaflet-zoom-hide"))},_resetView:function(t,e,i){tt(this._mapPane,new I(0,0));var o=!this._loaded;this._loaded=!0,e=this._limitZoom(e),this.fire("viewprereset");var a=this._zoom!==e;this._moveStart(a,i)._move(t,e)._moveEnd(a),this.fire("viewreset"),o&&this.fire("load")},_moveStart:function(t,e){return t&&this.fire("zoomstart"),e||this.fire("movestart"),this},_move:function(t,e,i,o){e===void 0&&(e=this._zoom);var a=this._zoom!==e;return this._zoom=e,this._lastCenter=t,this._pixelOrigin=this._getNewPixelOrigin(t),o?i&&i.pinch&&this.fire("zoom",i):((a||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 at(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(t){tt(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[m(this._container)]=this;var e=t?V:R;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),S.any3d&&this.options.transform3DLimit&&(t?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){at(this._resizeRequest),this._resizeRequest=rt(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=[],o,a=e==="mouseout"||e==="mouseover",u=t.target||t.srcElement,p=!1;u;){if(o=this._targets[m(u)],o&&(e==="click"||e==="preclick")&&this._draggableMoved(o)){p=!0;break}if(o&&o.listens(e,!0)&&(a&&!Hi(u,t)||(i.push(o),a))||u===this._container)break;u=u.parentNode}return!i.length&&!p&&!a&&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"&&Ai(e),this._fireDOMEvent(t,i)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(t,e,i){if(t.type==="click"){var o=n({},t);o.type="preclick",this._fireDOMEvent(o,o.type,i)}var a=this._findEventTargets(t,e);if(i){for(var u=[],p=0;p<i.length;p++)i[p].listens(e,!0)&&u.push(i[p]);a=u.concat(a)}if(a.length){e==="contextmenu"&&st(t);var g=a[0],y={originalEvent:t};if(t.type!=="keypress"&&t.type!=="keydown"&&t.type!=="keyup"){var x=g.getLatLng&&(!g._radius||g._radius<=10);y.containerPoint=x?this.latLngToContainerPoint(g.getLatLng()):this.mouseEventToContainerPoint(t),y.layerPoint=this.containerPointToLayerPoint(y.containerPoint),y.latlng=x?g.getLatLng():this.layerPointToLatLng(y.layerPoint)}for(p=0;p<a.length;p++)if(a[p].fire(e,y,!0),y.originalEvent._stopped||a[p].options.bubblingMouseEvents===!1&&Z(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 Ht(this._mapPane)||new I(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 o=this._getNewPixelOrigin(i,e);return this.project(t,e)._subtract(o)},_latLngBoundsToNewLayerBounds:function(t,e,i){var o=this._getNewPixelOrigin(i,e);return ht([this.project(t.getSouthWest(),e)._subtract(o),this.project(t.getNorthWest(),e)._subtract(o),this.project(t.getSouthEast(),e)._subtract(o),this.project(t.getNorthEast(),e)._subtract(o)])},_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 o=this.project(t,e),a=this.getSize().divideBy(2),u=new Y(o.subtract(a),o.add(a)),p=this._getBoundsOffset(u,i,e);return Math.abs(p.x)<=1&&Math.abs(p.y)<=1?t:this.unproject(o.add(p),e)},_limitOffset:function(t,e){if(!e)return t;var i=this.getPixelBounds(),o=new Y(i.min.add(t),i.max.add(t));return t.add(this._getBoundsOffset(o,e))},_getBoundsOffset:function(t,e,i){var o=ht(this.project(e.getNorthEast(),i),this.project(e.getSouthWest(),i)),a=o.min.subtract(t.min),u=o.max.subtract(t.max),p=this._rebound(a.x,-u.x),g=this._rebound(a.y,-u.y);return new I(p,g)},_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(),o=S.any3d?this.options.zoomSnap:1;return o&&(t=Math.round(t/o)*o),Math.max(e,Math.min(i,t))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){Q(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=q("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(t),this.on("zoomanim",function(e){var i=Ei,o=this._proxy.style[i];Zt(this._proxy,this.project(e.center,e.zoom),this.getZoomScale(e.zoom,1)),o===this._proxy.style[i]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){X(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var t=this.getCenter(),e=this.getZoom();Zt(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 o=this.getZoomScale(e),a=this._getCenterOffset(t)._divideBy(1-1/o);return i.animate!==!0&&!this.getSize().contains(a)?!1:(rt(function(){this._moveStart(!0,!1)._animateZoom(t,e,!0)},this),!0)},_animateZoom:function(t,e,i,o){this._mapPane&&(i&&(this._animatingZoom=!0,this._animateToCenter=t,this._animateToZoom=e,B(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:t,zoom:e,noUpdate:o}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(h(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&Q(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 Za(t,e){return new j(t,e)}var gt=Tt.extend({options:{position:"topright"},initialize:function(t){T(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(),o=t._controlCorners[i];return B(e,"leaflet-control"),i.indexOf("bottom")!==-1?o.insertBefore(e,o.firstChild):o.appendChild(e),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(X(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()}}),_e=function(t){return new gt(t)};j.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=q("div",e+"control-container",this._container);function o(a,u){var p=e+a+" "+e+u;t[a+u]=q("div",p,i)}o("top","left"),o("top","right"),o("bottom","left"),o("bottom","right")},_clearControlPos:function(){for(var t in this._controlCorners)X(this._controlCorners[t]);X(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var _o=gt.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(t,e,i,o){return i<o?-1:o<i?1:0}},initialize:function(t,e,i){T(this,i),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1;for(var o in t)this._addLayer(t[o],o);for(o in e)this._addLayer(e[o],o,!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 gt.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(m(t));return e&&this._layers.splice(this._layers.indexOf(e),1),this._map?this._update():this},expand:function(){B(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?(B(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=t+"px"):Q(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return Q(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var t="leaflet-control-layers",e=this._container=q("div",t),i=this.options.collapsed;e.setAttribute("aria-haspopup",!0),pe(e),Zi(e);var o=this._section=q("section",t+"-list");i&&(this._map.on("click",this.collapse,this),R(e,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var a=this._layersLink=q("a",t+"-toggle",e);a.href="#",a.title="Layers",a.setAttribute("role","button"),R(a,{keydown:function(u){u.keyCode===13&&this._expandSafely()},click:function(u){st(u),this._expandSafely()}},this),i||this.expand(),this._baseLayersList=q("div",t+"-base",o),this._separator=q("div",t+"-separator",o),this._overlaysList=q("div",t+"-overlays",o),e.appendChild(o)},_getLayer:function(t){for(var e=0;e<this._layers.length;e++)if(this._layers[e]&&m(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(h(function(o,a){return this.options.sortFunction(o.layer,a.layer,o.name,a.name)},this)),this.options.autoZIndex&&t.setZIndex&&(this._lastZIndex++,t.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;Be(this._baseLayersList),Be(this._overlaysList),this._layerControlInputs=[];var t,e,i,o,a=0;for(i=0;i<this._layers.length;i++)o=this._layers[i],this._addItem(o),e=e||o.overlay,t=t||!o.overlay,a+=o.overlay?0:1;return this.options.hideSingleBase&&(t=t&&a>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(m(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"':"")+"/>",o=document.createElement("div");return o.innerHTML=i,o.firstChild},_addItem:function(t){var e=document.createElement("label"),i=this._map.hasLayer(t.layer),o;t.overlay?(o=document.createElement("input"),o.type="checkbox",o.className="leaflet-control-layers-selector",o.defaultChecked=i):o=this._createRadioElement("leaflet-base-layers_"+m(this),i),this._layerControlInputs.push(o),o.layerId=m(t.layer),R(o,"click",this._onInputClick,this);var a=document.createElement("span");a.innerHTML=" "+t.name;var u=document.createElement("span");e.appendChild(u),u.appendChild(o),u.appendChild(a);var p=t.overlay?this._overlaysList:this._baseLayersList;return p.appendChild(e),this._checkDisabledLayers(),e},_onInputClick:function(){var t=this._layerControlInputs,e,i,o=[],a=[];this._handlingClick=!0;for(var u=t.length-1;u>=0;u--)e=t[u],i=this._getLayer(e.layerId).layer,e.checked?o.push(i):e.checked||a.push(i);for(u=0;u<a.length;u++)this._map.hasLayer(a[u])&&this._map.removeLayer(a[u]);for(u=0;u<o.length;u++)this._map.hasLayer(o[u])||this._map.addLayer(o[u]);this._handlingClick=!1,this._refocusOnMap()},_checkDisabledLayers:function(){for(var t=this._layerControlInputs,e,i,o=this._map.getZoom(),a=t.length-1;a>=0;a--)e=t[a],i=this._getLayer(e.layerId).layer,e.disabled=i.options.minZoom!==void 0&&o<i.options.minZoom||i.options.maxZoom!==void 0&&o>i.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var t=this._section;R(t,"click",st),this.expand(),setTimeout(function(){V(t,"click",st)})}}),Ha=function(t,e,i){return new _o(t,e,i)},Fi=gt.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">&#x2212;</span>',zoomOutTitle:"Zoom out"},onAdd:function(t){var e="leaflet-control-zoom",i=q("div",e+" leaflet-bar"),o=this.options;return this._zoomInButton=this._createButton(o.zoomInText,o.zoomInTitle,e+"-in",i,this._zoomIn),this._zoomOutButton=this._createButton(o.zoomOutText,o.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,o,a){var u=q("a",i,o);return u.innerHTML=t,u.href="#",u.title=e,u.setAttribute("role","button"),u.setAttribute("aria-label",e),pe(u),R(u,"click",Ut),R(u,"click",a,this),R(u,"click",this._refocusOnMap,this),u},_updateDisabled:function(){var t=this._map,e="leaflet-disabled";Q(this._zoomInButton,e),Q(this._zoomOutButton,e),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||t._zoom===t.getMinZoom())&&(B(this._zoomOutButton,e),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||t._zoom===t.getMaxZoom())&&(B(this._zoomInButton,e),this._zoomInButton.setAttribute("aria-disabled","true"))}});j.mergeOptions({zoomControl:!0}),j.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new Fi,this.addControl(this.zoomControl))});var Fa=function(t){return new Fi(t)},mo=gt.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(t){var e="leaflet-control-scale",i=q("div",e),o=this.options;return this._addScales(o,e+"-line",i),t.on(o.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=q("div",e,i)),t.imperial&&(this._iScale=q("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,o,a;e>5280?(i=e/5280,o=this._getRoundNum(i),this._updateScale(this._iScale,o+" mi",o/i)):(a=this._getRoundNum(e),this._updateScale(this._iScale,a+" ft",a/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}}),Ua=function(t){return new mo(t)},ja='<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>',Ui=gt.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(S.inlineSvg?ja+" ":"")+"Leaflet</a>"},initialize:function(t){T(this,t),this._attributions={}},onAdd:function(t){t.attributionControl=this,this._container=q("div","leaflet-control-attribution"),pe(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> ')}}});j.mergeOptions({attributionControl:!0}),j.addInitHook(function(){this.options.attributionControl&&new Ui().addTo(this)});var Ga=function(t){return new Ui(t)};gt.Layers=_o,gt.Zoom=Fi,gt.Scale=mo,gt.Attribution=Ui,_e.layers=Ha,_e.zoom=Fa,_e.scale=Ua,_e.attribution=Ga;var bt=Tt.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}});bt.addTo=function(t,e){return t.addHandler(e,this),this};var qa={Events:ut},go=S.touch?"touchstart mousedown":"mousedown",At=se.extend({options:{clickTolerance:3},initialize:function(t,e,i,o){T(this,o),this._element=t,this._dragStartTarget=e||t,this._preventOutline=i},enable:function(){this._enabled||(R(this._dragStartTarget,go,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(At._dragging===this&&this.finishDrag(!0),V(this._dragStartTarget,go,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(t){if(this._enabled&&(this._moved=!1,!Mi(this._element,"leaflet-zoom-anim"))){if(t.touches&&t.touches.length!==1){At._dragging===this&&this.finishDrag();return}if(!(At._dragging||t.shiftKey||t.which!==1&&t.button!==1&&!t.touches)&&(At._dragging=this,this._preventOutline&&Ai(this._element),Si(),ue(),!this._moving)){this.fire("down");var e=t.touches?t.touches[0]:t,i=lo(this._element);this._startPoint=new I(e.clientX,e.clientY),this._startPos=Ht(this._element),this._parentScale=Ii(i);var o=t.type==="mousedown";R(document,o?"mousemove":"touchmove",this._onMove,this),R(document,o?"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 I(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,st(t),this._moved||(this.fire("dragstart"),this._moved=!0,B(document.body,"leaflet-dragging"),this._lastTarget=t.target||t.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),B(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),tt(this._element,this._newPos),this.fire("drag",t)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(t){Q(document.body,"leaflet-dragging"),this._lastTarget&&(Q(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),V(document,"mousemove touchmove",this._onMove,this),V(document,"mouseup touchend touchcancel",this._onUp,this),Di(),de(),this._moved&&this._moving&&this.fire("dragend",{noInertia:t,distance:this._newPos.distanceTo(this._startPos)}),this._moving=!1,At._dragging=!1}});function vo(t,e){if(!e||!t.length)return t.slice();var i=e*e;return t=Va(t,i),t=Ka(t,i),t}function yo(t,e,i){return Math.sqrt(me(t,e,i,!0))}function Wa(t,e,i){return me(t,e,i)}function Ka(t,e){var i=t.length,o=typeof Uint8Array!=void 0+""?Uint8Array:Array,a=new o(i);a[0]=a[i-1]=1,ji(t,a,e,0,i-1);var u,p=[];for(u=0;u<i;u++)a[u]&&p.push(t[u]);return p}function ji(t,e,i,o,a){var u=0,p,g,y;for(g=o+1;g<=a-1;g++)y=me(t[g],t[o],t[a],!0),y>u&&(p=g,u=y);u>i&&(e[p]=1,ji(t,e,i,o,p),ji(t,e,i,p,a))}function Va(t,e){for(var i=[t[0]],o=1,a=0,u=t.length;o<u;o++)Ja(t[o],t[a])>e&&(i.push(t[o]),a=o);return a<u-1&&i.push(t[u-1]),i}var Lo;function wo(t,e,i,o,a){var u=o?Lo:jt(t,i),p=jt(e,i),g,y,x;for(Lo=p;;){if(!(u|p))return[t,e];if(u&p)return!1;g=u||p,y=Ue(t,e,g,i,a),x=jt(y,i),g===u?(t=y,u=x):(e=y,p=x)}}function Ue(t,e,i,o,a){var u=e.x-t.x,p=e.y-t.y,g=o.min,y=o.max,x,C;return i&8?(x=t.x+u*(y.y-t.y)/p,C=y.y):i&4?(x=t.x+u*(g.y-t.y)/p,C=g.y):i&2?(x=y.x,C=t.y+p*(y.x-t.x)/u):i&1&&(x=g.x,C=t.y+p*(g.x-t.x)/u),new I(x,C,a)}function jt(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 Ja(t,e){var i=e.x-t.x,o=e.y-t.y;return i*i+o*o}function me(t,e,i,o){var a=e.x,u=e.y,p=i.x-a,g=i.y-u,y=p*p+g*g,x;return y>0&&(x=((t.x-a)*p+(t.y-u)*g)/y,x>1?(a=i.x,u=i.y):x>0&&(a+=p*x,u+=g*x)),p=t.x-a,g=t.y-u,o?p*p+g*g:new I(a,u)}function _t(t){return!M(t[0])||typeof t[0][0]!="object"&&typeof t[0][0]<"u"}function ko(t){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),_t(t)}function bo(t,e){var i,o,a,u,p,g,y,x;if(!t||t.length===0)throw new Error("latlngs not passed");_t(t)||(console.warn("latlngs are not flat! Only the first ring will be used"),t=t[0]);var C=[];for(var O in t)C.push(e.project(K(t[O])));var H=C.length;for(i=0,o=0;i<H-1;i++)o+=C[i].distanceTo(C[i+1])/2;if(o===0)x=C[0];else for(i=0,u=0;i<H-1;i++)if(p=C[i],g=C[i+1],a=p.distanceTo(g),u+=a,u>o){y=(u-o)/a,x=[g.x-y*(g.x-p.x),g.y-y*(g.y-p.y)];break}return e.unproject(A(x))}var Ya={__proto__:null,simplify:vo,pointToSegmentDistance:yo,closestPointOnSegment:Wa,clipSegment:wo,_getEdgeIntersection:Ue,_getBitCode:jt,_sqClosestPointOnSegment:me,isFlat:_t,_flat:ko,polylineCenter:bo};function xo(t,e,i){var o,a=[1,4,2,8],u,p,g,y,x,C,O,H;for(u=0,C=t.length;u<C;u++)t[u]._code=jt(t[u],e);for(g=0;g<4;g++){for(O=a[g],o=[],u=0,C=t.length,p=C-1;u<C;p=u++)y=t[u],x=t[p],y._code&O?x._code&O||(H=Ue(x,y,O,e,i),H._code=jt(H,e),o.push(H)):(x._code&O&&(H=Ue(x,y,O,e,i),H._code=jt(H,e),o.push(H)),o.push(y));t=o}return t}function Po(t,e){var i,o,a,u,p,g,y,x,C;if(!t||t.length===0)throw new Error("latlngs not passed");_t(t)||(console.warn("latlngs are not flat! Only the first ring will be used"),t=t[0]);var O=[];for(var H in t)O.push(e.project(K(t[H])));var mt=O.length;for(g=y=x=0,i=0,o=mt-1;i<mt;o=i++)a=O[i],u=O[o],p=a.y*u.x-u.y*a.x,y+=(a.x+u.x)*p,x+=(a.y+u.y)*p,g+=p*3;return g===0?C=O[0]:C=[y/g,x/g],e.unproject(A(C))}var Xa={__proto__:null,clipPolygon:xo,polygonCenter:Po},Gi={project:function(t){return new I(t.lng,t.lat)},unproject:function(t){return new W(t.y,t.x)},bounds:new Y([-180,-90],[180,90])},qi={R:6378137,R_MINOR:6356752314245179e-9,bounds:new Y([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project:function(t){var e=Math.PI/180,i=this.R,o=t.lat*e,a=this.R_MINOR/i,u=Math.sqrt(1-a*a),p=u*Math.sin(o),g=Math.tan(Math.PI/4-o/2)/Math.pow((1-p)/(1+p),u/2);return o=-i*Math.log(Math.max(g,1e-10)),new I(t.lng*e*i,o)},unproject:function(t){for(var e=180/Math.PI,i=this.R,o=this.R_MINOR/i,a=Math.sqrt(1-o*o),u=Math.exp(-t.y/i),p=Math.PI/2-2*Math.atan(u),g=0,y=.1,x;g<15&&Math.abs(y)>1e-7;g++)x=a*Math.sin(p),x=Math.pow((1-x)/(1+x),a/2),y=Math.PI/2-2*Math.atan(u*x)-p,p+=y;return new W(p*e,t.x*e/i)}},$a={__proto__:null,LonLat:Gi,Mercator:qi,SphericalMercator:vi},Qa=n({},Ot,{code:"EPSG:3395",projection:qi,transformation:function(){var t=.5/(Math.PI*qi.R);return ae(t,.5,-t,.5)}()}),To=n({},Ot,{code:"EPSG:4326",projection:Gi,transformation:ae(1/180,1,-1/180,.5)}),tl=n({},Et,{projection:Gi,transformation:ae(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,o=e.lat-t.lat;return Math.sqrt(i*i+o*o)},infinite:!0});Et.Earth=Ot,Et.EPSG3395=Qa,Et.EPSG3857=Li,Et.EPSG900913=sa,Et.EPSG4326=To,Et.Simple=tl;var vt=se.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[m(t)]=this,this},removeInteractiveTarget:function(t){return delete this._map._targets[m(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})}}});j.include({addLayer:function(t){if(!t._layerAdd)throw new Error("The provided object is not a Layer.");var e=m(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=m(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 m(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?M(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[m(t)]=t,this._updateZoomLevels())},_removeZoomLimit:function(t){var e=m(t);this._zoomBoundLayers[e]&&(delete this._zoomBoundLayers[e],this._updateZoomLevels())},_updateZoomLevels:function(){var t=1/0,e=-1/0,i=this._getZoomSpan();for(var o in this._zoomBoundLayers){var a=this._zoomBoundLayers[o].options;t=a.minZoom===void 0?t:Math.min(t,a.minZoom),e=a.maxZoom===void 0?e:Math.max(e,a.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 Xt=vt.extend({initialize:function(t,e){T(this,e),this._layers={};var i,o;if(t)for(i=0,o=t.length;i<o;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,o;for(i in this._layers)o=this._layers[i],o[t]&&o[t].apply(o,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 m(t)}}),el=function(t,e){return new Xt(t,e)},Mt=Xt.extend({addLayer:function(t){return this.hasLayer(t)?this:(t.addEventParent(this),Xt.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),Xt.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 ct;for(var e in this._layers){var i=this._layers[e];t.extend(i.getBounds?i.getBounds():i.getLatLng())}return t}}),il=function(t,e){return new Mt(t,e)},$t=Tt.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(t){T(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 o=this._createImg(i,e&&e.tagName==="IMG"?e:null);return this._setIconStyles(o,t),(this.options.crossOrigin||this.options.crossOrigin==="")&&(o.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),o},_setIconStyles:function(t,e){var i=this.options,o=i[e+"Size"];typeof o=="number"&&(o=[o,o]);var a=A(o),u=A(e==="shadow"&&i.shadowAnchor||i.iconAnchor||a&&a.divideBy(2,!0));t.className="leaflet-marker-"+e+" "+(i.className||""),u&&(t.style.marginLeft=-u.x+"px",t.style.marginTop=-u.y+"px"),a&&(t.style.width=a.x+"px",t.style.height=a.y+"px")},_createImg:function(t,e){return e=e||document.createElement("img"),e.src=t,e},_getIconUrl:function(t){return S.retina&&this.options[t+"RetinaUrl"]||this.options[t+"Url"]}});function nl(t){return new $t(t)}var ge=$t.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 ge.imagePath!="string"&&(ge.imagePath=this._detectIconPath()),(this.options.imagePath||ge.imagePath)+$t.prototype._getIconUrl.call(this,t)},_stripUrl:function(t){var e=function(i,o,a){var u=o.exec(i);return u&&u[a]};return t=e(t,/^url\((['"])?(.+)\1\)$/,2),t&&e(t,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var t=q("div","leaflet-default-icon-path",document.body),e=ce(t,"background-image")||ce(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):""}}),Eo=bt.extend({initialize:function(t){this._marker=t},addHooks:function(){var t=this._marker._icon;this._draggable||(this._draggable=new At(t,t,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),B(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&&Q(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(t){var e=this._marker,i=e._map,o=this._marker.options.autoPanSpeed,a=this._marker.options.autoPanPadding,u=Ht(e._icon),p=i.getPixelBounds(),g=i.getPixelOrigin(),y=ht(p.min._subtract(g).add(a),p.max._subtract(g).subtract(a));if(!y.contains(u)){var x=A((Math.max(y.max.x,u.x)-y.max.x)/(p.max.x-y.max.x)-(Math.min(y.min.x,u.x)-y.min.x)/(p.min.x-y.min.x),(Math.max(y.max.y,u.y)-y.max.y)/(p.max.y-y.max.y)-(Math.min(y.min.y,u.y)-y.min.y)/(p.min.y-y.min.y)).multiplyBy(o);i.panBy(x,{animate:!1}),this._draggable._newPos._add(x),this._draggable._startPos._add(x),tt(e._icon,this._draggable._newPos),this._onDrag(t),this._panRequest=rt(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&&(at(this._panRequest),this._panRequest=rt(this._adjustPan.bind(this,t)))},_onDrag:function(t){var e=this._marker,i=e._shadow,o=Ht(e._icon),a=e._map.layerPointToLatLng(o);i&&tt(i,o),e._latlng=a,t.latlng=a,t.oldLatLng=this._oldLatLng,e.fire("move",t).fire("drag",t)},_onDragEnd:function(t){at(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",t)}}),je=vt.extend({options:{icon:new ge,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){T(this,e),this._latlng=K(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=K(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),o=!1;i!==this._icon&&(this._icon&&this._removeIcon(),o=!0,t.title&&(i.title=t.title),i.tagName==="IMG"&&(i.alt=t.alt||"")),B(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&&R(i,"focus",this._panOnFocus,this);var a=t.icon.createShadow(this._shadow),u=!1;a!==this._shadow&&(this._removeShadow(),u=!0),a&&(B(a,e),a.alt=""),this._shadow=a,t.opacity<1&&this._updateOpacity(),o&&this.getPane().appendChild(this._icon),this._initInteraction(),a&&u&&this.getPane(t.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&V(this._icon,"focus",this._panOnFocus,this),X(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&X(this._shadow),this._shadow=null},_setPos:function(t){this._icon&&tt(this._icon,t),this._shadow&&tt(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&&(B(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),Eo)){var t=this.options.draggable;this.dragging&&(t=this.dragging.enabled(),this.dragging.disable()),this.dragging=new Eo(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&&pt(this._icon,t),this._shadow&&pt(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?A(e.iconSize):A(0,0),o=e.iconAnchor?A(e.iconAnchor):A(0,0);t.panInside(this._latlng,{paddingTopLeft:o,paddingBottomRight:i.subtract(o)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function ol(t,e){return new je(t,e)}var It=vt.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 T(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)}}),Ge=It.extend({options:{fill:!0,radius:10},initialize:function(t,e){T(this,e),this._latlng=K(t),this._radius=this.options.radius},setLatLng:function(t){var e=this._latlng;return this._latlng=K(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 It.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(),o=[t+i,e+i];this._pxBounds=new Y(this._point.subtract(o),this._point.add(o))},_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 rl(t,e){return new Ge(t,e)}var Wi=Ge.extend({initialize:function(t,e,i){if(typeof e=="number"&&(e=n({},i,{radius:e})),T(this,e),this._latlng=K(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 ct(this._map.layerPointToLatLng(this._point.subtract(t)),this._map.layerPointToLatLng(this._point.add(t)))},setStyle:It.prototype.setStyle,_project:function(){var t=this._latlng.lng,e=this._latlng.lat,i=this._map,o=i.options.crs;if(o.distance===Ot.distance){var a=Math.PI/180,u=this._mRadius/Ot.R/a,p=i.project([e+u,t]),g=i.project([e-u,t]),y=p.add(g).divideBy(2),x=i.unproject(y).lat,C=Math.acos((Math.cos(u*a)-Math.sin(e*a)*Math.sin(x*a))/(Math.cos(e*a)*Math.cos(x*a)))/a;(isNaN(C)||C===0)&&(C=u/Math.cos(Math.PI/180*e)),this._point=y.subtract(i.getPixelOrigin()),this._radius=isNaN(C)?0:y.x-i.project([x,t-C]).x,this._radiusY=y.y-p.y}else{var O=o.unproject(o.project(this._latlng).subtract([this._mRadius,0]));this._point=i.latLngToLayerPoint(this._latlng),this._radius=this._point.x-i.latLngToLayerPoint(O).x}this._updateBounds()}});function sl(t,e,i){return new Wi(t,e,i)}var Ct=It.extend({options:{smoothFactor:1,noClip:!1},initialize:function(t,e){T(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,o=me,a,u,p=0,g=this._parts.length;p<g;p++)for(var y=this._parts[p],x=1,C=y.length;x<C;x++){a=y[x-1],u=y[x];var O=o(t,a,u,!0);O<e&&(e=O,i=o(t,a,u))}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 bo(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(t,e){return e=e||this._defaultShape(),t=K(t),e.push(t),this._bounds.extend(t),this.redraw()},_setLatLngs:function(t){this._bounds=new ct,this._latlngs=this._convertLatLngs(t)},_defaultShape:function(){return _t(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(t){for(var e=[],i=_t(t),o=0,a=t.length;o<a;o++)i?(e[o]=K(t[o]),this._bounds.extend(e[o])):e[o]=this._convertLatLngs(t[o]);return e},_project:function(){var t=new Y;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 I(t,t);this._rawPxBounds&&(this._pxBounds=new Y([this._rawPxBounds.min.subtract(e),this._rawPxBounds.max.add(e)]))},_projectLatlngs:function(t,e,i){var o=t[0]instanceof W,a=t.length,u,p;if(o){for(p=[],u=0;u<a;u++)p[u]=this._map.latLngToLayerPoint(t[u]),i.extend(p[u]);e.push(p)}else for(u=0;u<a;u++)this._projectLatlngs(t[u],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,o,a,u,p,g,y;for(i=0,a=0,u=this._rings.length;i<u;i++)for(y=this._rings[i],o=0,p=y.length;o<p-1;o++)g=wo(y[o],y[o+1],t,o,!0),g&&(e[a]=e[a]||[],e[a].push(g[0]),(g[1]!==y[o+1]||o===p-2)&&(e[a].push(g[1]),a++))}},_simplifyPoints:function(){for(var t=this._parts,e=this.options.smoothFactor,i=0,o=t.length;i<o;i++)t[i]=vo(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,o,a,u,p,g,y=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(i=0,u=this._parts.length;i<u;i++)for(g=this._parts[i],o=0,p=g.length,a=p-1;o<p;a=o++)if(!(!e&&o===0)&&yo(t,g[a],g[o])<=y)return!0;return!1}});function al(t,e){return new Ct(t,e)}Ct._flat=ko;var Qt=Ct.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 Po(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(t){var e=Ct.prototype._convertLatLngs.call(this,t),i=e.length;return i>=2&&e[0]instanceof W&&e[0].equals(e[i-1])&&e.pop(),e},_setLatLngs:function(t){Ct.prototype._setLatLngs.call(this,t),_t(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return _t(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var t=this._renderer._bounds,e=this.options.weight,i=new I(e,e);if(t=new Y(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 o=0,a=this._rings.length,u;o<a;o++)u=xo(this._rings[o],t,!0),u.length&&this._parts.push(u)}},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(t){var e=!1,i,o,a,u,p,g,y,x;if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(u=0,y=this._parts.length;u<y;u++)for(i=this._parts[u],p=0,x=i.length,g=x-1;p<x;g=p++)o=i[p],a=i[g],o.y>t.y!=a.y>t.y&&t.x<(a.x-o.x)*(t.y-o.y)/(a.y-o.y)+o.x&&(e=!e);return e||Ct.prototype._containsPoint.call(this,t,!0)}});function ll(t,e){return new Qt(t,e)}var zt=Mt.extend({initialize:function(t,e){T(this,e),this._layers={},t&&this.addData(t)},addData:function(t){var e=M(t)?t:t.features,i,o,a;if(e){for(i=0,o=e.length;i<o;i++)a=e[i],(a.geometries||a.geometry||a.features||a.coordinates)&&this.addData(a);return this}var u=this.options;if(u.filter&&!u.filter(t))return this;var p=qe(t,u);return p?(p.feature=Ve(t),p.defaultOptions=p.options,this.resetStyle(p),u.onEachFeature&&u.onEachFeature(t,p),this.addLayer(p)):this},resetStyle:function(t){return t===void 0?this.eachLayer(this.resetStyle,this):(t.options=n({},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 qe(t,e){var i=t.type==="Feature"?t.geometry:t,o=i?i.coordinates:null,a=[],u=e&&e.pointToLayer,p=e&&e.coordsToLatLng||Ki,g,y,x,C;if(!o&&!i)return null;switch(i.type){case"Point":return g=p(o),Mo(u,t,g,e);case"MultiPoint":for(x=0,C=o.length;x<C;x++)g=p(o[x]),a.push(Mo(u,t,g,e));return new Mt(a);case"LineString":case"MultiLineString":return y=We(o,i.type==="LineString"?0:1,p),new Ct(y,e);case"Polygon":case"MultiPolygon":return y=We(o,i.type==="Polygon"?1:2,p),new Qt(y,e);case"GeometryCollection":for(x=0,C=i.geometries.length;x<C;x++){var O=qe({geometry:i.geometries[x],type:"Feature",properties:t.properties},e);O&&a.push(O)}return new Mt(a);case"FeatureCollection":for(x=0,C=i.features.length;x<C;x++){var H=qe(i.features[x],e);H&&a.push(H)}return new Mt(a);default:throw new Error("Invalid GeoJSON object.")}}function Mo(t,e,i,o){return t?t(e,i):new je(i,o&&o.markersInheritOptions&&o)}function Ki(t){return new W(t[1],t[0],t[2])}function We(t,e,i){for(var o=[],a=0,u=t.length,p;a<u;a++)p=e?We(t[a],e-1,i):(i||Ki)(t[a]),o.push(p);return o}function Vi(t,e){return t=K(t),t.alt!==void 0?[E(t.lng,e),E(t.lat,e),E(t.alt,e)]:[E(t.lng,e),E(t.lat,e)]}function Ke(t,e,i,o){for(var a=[],u=0,p=t.length;u<p;u++)a.push(e?Ke(t[u],_t(t[u])?0:e-1,i,o):Vi(t[u],o));return!e&&i&&a.push(a[0].slice()),a}function te(t,e){return t.feature?n({},t.feature,{geometry:e}):Ve(e)}function Ve(t){return t.type==="Feature"||t.type==="FeatureCollection"?t:{type:"Feature",properties:{},geometry:t}}var Ji={toGeoJSON:function(t){return te(this,{type:"Point",coordinates:Vi(this.getLatLng(),t)})}};je.include(Ji),Wi.include(Ji),Ge.include(Ji),Ct.include({toGeoJSON:function(t){var e=!_t(this._latlngs),i=Ke(this._latlngs,e?1:0,!1,t);return te(this,{type:(e?"Multi":"")+"LineString",coordinates:i})}}),Qt.include({toGeoJSON:function(t){var e=!_t(this._latlngs),i=e&&!_t(this._latlngs[0]),o=Ke(this._latlngs,i?2:e?1:0,!0,t);return e||(o=[o]),te(this,{type:(i?"Multi":"")+"Polygon",coordinates:o})}}),Xt.include({toMultiPoint:function(t){var e=[];return this.eachLayer(function(i){e.push(i.toGeoJSON(t).geometry.coordinates)}),te(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",o=[];return this.eachLayer(function(a){if(a.toGeoJSON){var u=a.toGeoJSON(t);if(i)o.push(u.geometry);else{var p=Ve(u);p.type==="FeatureCollection"?o.push.apply(o,p.features):o.push(p)}}}),i?te(this,{geometries:o,type:"GeometryCollection"}):{type:"FeatureCollection",features:o}}});function Co(t,e){return new zt(t,e)}var hl=Co,Je=vt.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(t,e,i){this._url=t,this._bounds=ot(e),T(this,i)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(B(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){X(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&&Jt(this._image),this},bringToBack:function(){return this._map&&Yt(this._image),this},setUrl:function(t){return this._url=t,this._image&&(this._image.src=t),this},setBounds:function(t){return this._bounds=ot(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:q("img");if(B(e,"leaflet-image-layer"),this._zoomAnimated&&B(e,"leaflet-zoom-animated"),this.options.className&&B(e,this.options.className),e.onselectstart=w,e.onmousemove=w,e.onload=h(this.fire,this,"load"),e.onerror=h(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;Zt(this._image,i,e)},_reset:function(){var t=this._image,e=new Y(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),i=e.getSize();tt(t,e.min),t.style.width=i.x+"px",t.style.height=i.y+"px"},_updateOpacity:function(){pt(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()}}),cl=function(t,e,i){return new Je(t,e,i)},zo=Je.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:q("video");if(B(e,"leaflet-image-layer"),this._zoomAnimated&&B(e,"leaflet-zoom-animated"),this.options.className&&B(e,this.options.className),e.onselectstart=w,e.onmousemove=w,e.onloadeddata=h(this.fire,this,"load"),t){for(var i=e.getElementsByTagName("source"),o=[],a=0;a<i.length;a++)o.push(i[a].src);this._url=i.length>0?o:[e.src];return}M(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 u=0;u<this._url.length;u++){var p=q("source");p.src=this._url[u],e.appendChild(p)}}});function ul(t,e,i){return new zo(t,e,i)}var So=Je.extend({_initImage:function(){var t=this._image=this._url;B(t,"leaflet-image-layer"),this._zoomAnimated&&B(t,"leaflet-zoom-animated"),this.options.className&&B(t,this.options.className),t.onselectstart=w,t.onmousemove=w}});function dl(t,e,i){return new So(t,e,i)}var xt=vt.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(t,e){t&&(t instanceof W||M(t))?(this._latlng=K(t),T(this,e)):(T(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&&pt(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),t._fadeAnimated&&pt(this._container,1),this.bringToFront(),this.options.interactive&&(B(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(t){t._fadeAnimated?(pt(this._container,0),this._removeTimeout=setTimeout(h(X,void 0,this._container),200)):X(this._container),this.options.interactive&&(Q(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(t){return this._latlng=K(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&&Jt(this._container),this},bringToBack:function(){return this._map&&Yt(this._container),this},_prepareOpen:function(t){var e=this._source;if(!e._map)return!1;if(e instanceof Mt){e=null;var i=this._source._layers;for(var o in i)if(i[o]._map){e=i[o];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=A(this.options.offset),i=this._getAnchor();this._zoomAnimated?tt(this._container,t.add(i)):e=e.add(t).add(i);var o=this._containerBottom=-e.y,a=this._containerLeft=-Math.round(this._containerWidth/2)+e.x;this._container.style.bottom=o+"px",this._container.style.left=a+"px"}},_getAnchor:function(){return[0,0]}});j.include({_initOverlay:function(t,e,i,o){var a=e;return a instanceof t||(a=new t(o).setContent(e)),i&&a.setLatLng(i),a}}),vt.include({_initOverlay:function(t,e,i,o){var a=i;return a instanceof t?(T(a,o),a._source=this):(a=e&&!o?e:new t(o,this),a.setContent(i)),a}});var Ye=xt.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,xt.prototype.openOn.call(this,t)},onAdd:function(t){xt.prototype.onAdd.call(this,t),t.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof It||this._source.on("preclick",Ft))},onRemove:function(t){xt.prototype.onRemove.call(this,t),t.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof It||this._source.off("preclick",Ft))},getEvents:function(){var t=xt.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=q("div",t+" "+(this.options.className||"")+" leaflet-zoom-animated"),i=this._wrapper=q("div",t+"-content-wrapper",e);if(this._contentNode=q("div",t+"-content",i),pe(e),Zi(this._contentNode),R(e,"contextmenu",Ft),this._tipContainer=q("div",t+"-tip-container",e),this._tip=q("div",t+"-tip",this._tipContainer),this.options.closeButton){var o=this._closeButton=q("a",t+"-close-button",e);o.setAttribute("role","button"),o.setAttribute("aria-label","Close popup"),o.href="#close",o.innerHTML='<span aria-hidden="true">&#215;</span>',R(o,"click",function(a){st(a),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 o=t.offsetHeight,a=this.options.maxHeight,u="leaflet-popup-scrolled";a&&o>a?(e.height=a+"px",B(t,u)):Q(t,u),this._containerWidth=this._container.offsetWidth},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center),i=this._getAnchor();tt(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(ce(this._container,"marginBottom"),10)||0,i=this._container.offsetHeight+e,o=this._containerWidth,a=new I(this._containerLeft,-i-this._containerBottom);a._add(Ht(this._container));var u=t.layerPointToContainerPoint(a),p=A(this.options.autoPanPadding),g=A(this.options.autoPanPaddingTopLeft||p),y=A(this.options.autoPanPaddingBottomRight||p),x=t.getSize(),C=0,O=0;u.x+o+y.x>x.x&&(C=u.x+o-x.x+y.x),u.x-C-g.x<0&&(C=u.x-g.x),u.y+i+y.y>x.y&&(O=u.y+i-x.y+y.y),u.y-O-g.y<0&&(O=u.y-g.y),(C||O)&&(this.options.keepInView&&(this._autopanning=!0),t.fire("autopanstart").panBy([C,O]))}},_getAnchor:function(){return A(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),fl=function(t,e){return new Ye(t,e)};j.mergeOptions({closePopupOnClick:!0}),j.include({openPopup:function(t,e,i){return this._initOverlay(Ye,t,e,i).openOn(this),this},closePopup:function(t){return t=arguments.length?t:this._popup,t&&t.close(),this}}),vt.include({bindPopup:function(t,e){return this._popup=this._initOverlay(Ye,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 Mt||(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)){Ut(t);var e=t.layer||t.target;if(this._popup._source===e&&!(e instanceof It)){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=xt.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(t){xt.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){xt.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=xt.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=q("div",e),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+m(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(t){var e,i,o=this._map,a=this._container,u=o.latLngToContainerPoint(o.getCenter()),p=o.layerPointToContainerPoint(t),g=this.options.direction,y=a.offsetWidth,x=a.offsetHeight,C=A(this.options.offset),O=this._getAnchor();g==="top"?(e=y/2,i=x):g==="bottom"?(e=y/2,i=0):g==="center"?(e=y/2,i=x/2):g==="right"?(e=0,i=x/2):g==="left"?(e=y,i=x/2):p.x<u.x?(g="right",e=0,i=x/2):(g="left",e=y+(C.x+O.x)*2,i=x/2),t=t.subtract(A(e,i,!0)).add(C).add(O),Q(a,"leaflet-tooltip-right"),Q(a,"leaflet-tooltip-left"),Q(a,"leaflet-tooltip-top"),Q(a,"leaflet-tooltip-bottom"),B(a,"leaflet-tooltip-"+g),tt(a,t)},_updatePosition:function(){var t=this._map.latLngToLayerPoint(this._latlng);this._setPosition(t)},setOpacity:function(t){this.options.opacity=t,this._container&&pt(this._container,t)},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center);this._setPosition(e)},_getAnchor:function(){return A(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),pl=function(t,e){return new Xe(t,e)};j.include({openTooltip:function(t,e,i){return this._initOverlay(Xe,t,e,i).openOn(this),this},closeTooltip:function(t){return t.close(),this}}),vt.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 Mt||(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=t.getElement();e&&(R(e,"focus",function(){this._tooltip._source=t,this.openTooltip()},this),R(e,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(t){var e=t.getElement();e&&e.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(t){!this._tooltip||!this._map||this._map.dragging&&this._map.dragging.moving()||(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,o;this._tooltip.options.sticky&&t.originalEvent&&(i=this._map.mouseEventToContainerPoint(t.originalEvent),o=this._map.containerPointToLayerPoint(i),e=this._map.layerPointToLatLng(o)),this._tooltip.setLatLng(e)}});var Do=$t.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?(Be(e),e.appendChild(i.html)):e.innerHTML=i.html!==!1?i.html:"",i.bgPos){var o=A(i.bgPos);e.style.backgroundPosition=-o.x+"px "+-o.y+"px"}return this._setIconStyles(e,"icon"),e},createShadow:function(){return null}});function _l(t){return new Do(t)}$t.Default=ge;var ve=vt.extend({options:{tileSize:256,opacity:1,updateWhenIdle:S.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){T(this,t)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(t){t._addZoomLimit(this)},onRemove:function(t){this._removeAllTiles(),X(this._container),t._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(Jt(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(Yt(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 I?t:new I(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),o=0,a=e.length,u;o<a;o++)u=e[o].style.zIndex,e[o]!==this._container&&u&&(i=t(i,+u));isFinite(i)&&(this.options.zIndex=i+t(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!S.ielt9){pt(this._container,this.options.opacity);var t=+new Date,e=!1,i=!1;for(var o in this._tiles){var a=this._tiles[o];if(!(!a.current||!a.loaded)){var u=Math.min(1,(t-a.loaded)/200);pt(a.el,u),u<1?e=!0:(a.active?i=!0:this._onOpaqueTile(a),a.active=!0)}}i&&!this._noPrune&&this._pruneTiles(),e&&(at(this._fadeFrame),this._fadeFrame=rt(this._updateOpacity,this))}},_onOpaqueTile:w,_initContainer:function(){this._container||(this._container=q("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)):(X(this._levels[i].el),this._removeTilesAtZoom(i),this._onRemoveLevel(i),delete this._levels[i]);var o=this._levels[t],a=this._map;return o||(o=this._levels[t]={},o.el=q("div","leaflet-tile-container leaflet-zoom-animated",this._container),o.el.style.zIndex=e,o.origin=a.project(a.unproject(a.getPixelOrigin()),t).round(),o.zoom=t,this._setZoomTransform(o,a.getCenter(),a.getZoom()),w(o.el.offsetWidth),this._onCreateLevel(o)),this._level=o,o}},_onUpdateLevel:w,_onRemoveLevel:w,_onCreateLevel:w,_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 o=e.coords;this._retainParent(o.x,o.y,o.z,o.z-5)||this._retainChildren(o.x,o.y,o.z,o.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)X(this._levels[t].el),this._onRemoveLevel(Number(t)),delete this._levels[t];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(t,e,i,o){var a=Math.floor(t/2),u=Math.floor(e/2),p=i-1,g=new I(+a,+u);g.z=+p;var y=this._tileCoordsToKey(g),x=this._tiles[y];return x&&x.active?(x.retain=!0,!0):(x&&x.loaded&&(x.retain=!0),p>o?this._retainParent(a,u,p,o):!1)},_retainChildren:function(t,e,i,o){for(var a=2*t;a<2*t+2;a++)for(var u=2*e;u<2*e+2;u++){var p=new I(a,u);p.z=i+1;var g=this._tileCoordsToKey(p),y=this._tiles[g];if(y&&y.active){y.retain=!0;continue}else y&&y.loaded&&(y.retain=!0);i+1<o&&this._retainChildren(a,u,i+1,o)}},_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,o){var a=Math.round(e);this.options.maxZoom!==void 0&&a>this.options.maxZoom||this.options.minZoom!==void 0&&a<this.options.minZoom?a=void 0:a=this._clampZoom(a);var u=this.options.updateWhenZooming&&a!==this._tileZoom;(!o||u)&&(this._tileZoom=a,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),a!==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 o=this._map.getZoomScale(i,t.zoom),a=t.origin.multiplyBy(o).subtract(this._map._getNewPixelOrigin(e,i)).round();S.any3d?Zt(t.el,a,o):tt(t.el,a)},_resetGrid:function(){var t=this._map,e=t.options.crs,i=this._tileSize=this.getTileSize(),o=this._tileZoom,a=this._map.getPixelWorldBounds(this._tileZoom);a&&(this._globalTileRange=this._pxBoundsToTileRange(a)),this._wrapX=e.wrapLng&&!this.options.noWrap&&[Math.floor(t.project([0,e.wrapLng[0]],o).x/i.x),Math.ceil(t.project([0,e.wrapLng[1]],o).x/i.y)],this._wrapY=e.wrapLat&&!this.options.noWrap&&[Math.floor(t.project([e.wrapLat[0],0],o).y/i.x),Math.ceil(t.project([e.wrapLat[1],0],o).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(),o=e.getZoomScale(i,this._tileZoom),a=e.project(t,this._tileZoom).floor(),u=e.getSize().divideBy(o*2);return new Y(a.subtract(u),a.add(u))},_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 o=this._getTiledPixelBounds(t),a=this._pxBoundsToTileRange(o),u=a.getCenter(),p=[],g=this.options.keepBuffer,y=new Y(a.getBottomLeft().subtract([g,-g]),a.getTopRight().add([g,-g]));if(!(isFinite(a.min.x)&&isFinite(a.min.y)&&isFinite(a.max.x)&&isFinite(a.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var x in this._tiles){var C=this._tiles[x].coords;(C.z!==this._tileZoom||!y.contains(new I(C.x,C.y)))&&(this._tiles[x].current=!1)}if(Math.abs(i-this._tileZoom)>1){this._setView(t,i);return}for(var O=a.min.y;O<=a.max.y;O++)for(var H=a.min.x;H<=a.max.x;H++){var mt=new I(H,O);if(mt.z=this._tileZoom,!!this._isValidTile(mt)){var Gt=this._tiles[this._tileCoordsToKey(mt)];Gt?Gt.current=!0:p.push(mt)}}if(p.sort(function(Rt,Yi){return Rt.distanceTo(u)-Yi.distanceTo(u)}),p.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var Qe=document.createDocumentFragment();for(H=0;H<p.length;H++)this._addTile(p[H],Qe);this._level.el.appendChild(Qe)}}}},_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 o=this._tileCoordsToBounds(t);return ot(this.options.bounds).overlaps(o)},_keyToBounds:function(t){return this._tileCoordsToBounds(this._keyToTileCoords(t))},_tileCoordsToNwSe:function(t){var e=this._map,i=this.getTileSize(),o=t.scaleBy(i),a=o.add(i),u=e.unproject(o,t.z),p=e.unproject(a,t.z);return[u,p]},_tileCoordsToBounds:function(t){var e=this._tileCoordsToNwSe(t),i=new ct(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 I(+e[0],+e[1]);return i.z=+e[2],i},_removeTile:function(t){var e=this._tiles[t];e&&(X(e.el),delete this._tiles[t],this.fire("tileunload",{tile:e.el,coords:this._keyToTileCoords(t)}))},_initTile:function(t){B(t,"leaflet-tile");var e=this.getTileSize();t.style.width=e.x+"px",t.style.height=e.y+"px",t.onselectstart=w,t.onmousemove=w,S.ielt9&&this.options.opacity<1&&pt(t,this.options.opacity)},_addTile:function(t,e){var i=this._getTilePos(t),o=this._tileCoordsToKey(t),a=this.createTile(this._wrapCoords(t),h(this._tileReady,this,t));this._initTile(a),this.createTile.length<2&&rt(h(this._tileReady,this,t,null,a)),tt(a,i),this._tiles[o]={el:a,coords:t,current:!0},e.appendChild(a),this.fire("tileloadstart",{tile:a,coords:t})},_tileReady:function(t,e,i){e&&this.fire("tileerror",{error:e,tile:i,coords:t});var o=this._tileCoordsToKey(t);i=this._tiles[o],i&&(i.loaded=+new Date,this._map._fadeAnimated?(pt(i.el,0),at(this._fadeFrame),this._fadeFrame=rt(this._updateOpacity,this)):(i.active=!0,this._pruneTiles()),e||(B(i.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:i.el,coords:t})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),S.ielt9||!this._map._fadeAnimated?rt(this._pruneTiles,this):setTimeout(h(this._pruneTiles,this),250)))},_getTilePos:function(t){return t.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(t){var e=new I(this._wrapX?v(t.x,this._wrapX):t.x,this._wrapY?v(t.y,this._wrapY):t.y);return e.z=t.z,e},_pxBoundsToTileRange:function(t){var e=this.getTileSize();return new Y(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 ml(t){return new ve(t)}var ee=ve.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=T(this,e),e.detectRetina&&S.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 R(i,"load",h(this._tileOnLoad,this,e,i)),R(i,"error",h(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:S.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 b(this._url,n(e,this.options))},_tileOnLoad:function(t,e){S.ielt9?setTimeout(h(t,this,null,e),0):t(null,e)},_tileOnError:function(t,e,i){var o=this.options.errorTileUrl;o&&e.getAttribute("src")!==o&&(e.src=o),t(i,e)},_onTileRemove:function(t){t.tile.onload=null},_getZoomForUrl:function(){var t=this._tileZoom,e=this.options.maxZoom,i=this.options.zoomReverse,o=this.options.zoomOffset;return i&&(t=e-t),t+o},_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=w,e.onerror=w,!e.complete)){e.src=U;var i=this._tiles[t].coords;X(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",U),ve.prototype._removeTile.call(this,t)},_tileReady:function(t,e,i){if(!(!this._map||i&&i.getAttribute("src")===U))return ve.prototype._tileReady.call(this,t,e,i)}});function Oo(t,e){return new ee(t,e)}var Ao=ee.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=n({},this.defaultWmsParams);for(var o in e)o in this.options||(i[o]=e[o]);e=T(this,e);var a=e.detectRetina&&S.retina?2:1,u=this.getTileSize();i.width=u.x*a,i.height=u.y*a,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,ee.prototype.onAdd.call(this,t)},getTileUrl:function(t){var e=this._tileCoordsToNwSe(t),i=this._crs,o=ht(i.project(e[0]),i.project(e[1])),a=o.min,u=o.max,p=(this._wmsVersion>=1.3&&this._crs===To?[a.y,a.x,u.y,u.x]:[a.x,a.y,u.x,u.y]).join(","),g=ee.prototype.getTileUrl.call(this,t);return g+D(this.wmsParams,g,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+p},setParams:function(t,e){return n(this.wmsParams,t),e||this.redraw(),this}});function gl(t,e){return new Ao(t,e)}ee.WMS=Ao,Oo.wms=gl;var St=vt.extend({options:{padding:.1},initialize:function(t){T(this,t),m(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),this._zoomAnimated&&B(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),o=this._map.getSize().multiplyBy(.5+this.options.padding),a=this._map.project(this._center,e),u=o.multiplyBy(-i).add(a).subtract(this._map._getNewPixelOrigin(t,e));S.any3d?Zt(this._container,u,i):tt(this._container,u)},_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 Y(i,i.add(e.multiplyBy(1+t*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),Io=St.extend({options:{tolerance:0},getEvents:function(){var t=St.prototype.getEvents.call(this);return t.viewprereset=this._onViewPreReset,t},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){St.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var t=this._container=document.createElement("canvas");R(t,"mousemove",this._onMouseMove,this),R(t,"click dblclick mousedown mouseup contextmenu",this._onClick,this),R(t,"mouseout",this._handleMouseOut,this),t._leaflet_disable_events=!0,this._ctx=t.getContext("2d")},_destroyContainer:function(){at(this._redrawRequest),delete this._ctx,X(this._container),V(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)){St.prototype._update.call(this);var t=this._bounds,e=this._container,i=t.getSize(),o=S.retina?2:1;tt(e,t.min),e.width=o*i.x,e.height=o*i.y,e.style.width=i.x+"px",e.style.height=i.y+"px",S.retina&&this._ctx.scale(2,2),this._ctx.translate(-t.min.x,-t.min.y),this.fire("update")}},_reset:function(){St.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(t){this._updateDashArray(t),this._layers[m(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,o=e.prev;i?i.prev=o:this._drawLast=o,o?o.next=i:this._drawFirst=i,delete t._order,delete this._layers[m(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=[],o,a;for(a=0;a<e.length;a++){if(o=Number(e[a]),isNaN(o))return;i.push(o)}t.options._dashArray=i}else t.options._dashArray=t.options.dashArray},_requestRedraw:function(t){this._map&&(this._extendRedrawBounds(t),this._redrawRequest=this._redrawRequest||rt(this._redraw,this))},_extendRedrawBounds:function(t){if(t._pxBounds){var e=(t.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new Y,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 o=this._drawFirst;o;o=o.next)t=o.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,o,a,u,p=t._parts,g=p.length,y=this._ctx;if(g){for(y.beginPath(),i=0;i<g;i++){for(o=0,a=p[i].length;o<a;o++)u=p[i][o],y[o?"lineTo":"moveTo"](u.x,u.y);e&&y.closePath()}this._fillStroke(y,t)}}},_updateCircle:function(t){if(!(!this._drawing||t._empty())){var e=t._point,i=this._ctx,o=Math.max(Math.round(t._radius),1),a=(Math.max(Math.round(t._radiusY),1)||o)/o;a!==1&&(i.save(),i.scale(1,a)),i.beginPath(),i.arc(e.x,e.y/a,o,0,Math.PI*2,!1),a!==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,o,a=this._drawFirst;a;a=a.next)i=a.layer,i.options.interactive&&i._containsPoint(e)&&(!(t.type==="click"||t.type==="preclick")||!this._map._draggableMoved(i))&&(o=i);this._fireEvent(o?[o]:!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&&(Q(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,o,a=this._drawFirst;a;a=a.next)i=a.layer,i.options.interactive&&i._containsPoint(e)&&(o=i);o!==this._hoveredLayer&&(this._handleMouseOut(t),o&&(B(this._container,"leaflet-interactive"),this._fireEvent([o],t,"mouseover"),this._hoveredLayer=o)),this._fireEvent(this._hoveredLayer?[this._hoveredLayer]:!1,t),this._mouseHoverThrottled=!0,setTimeout(h(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,o=e.prev;if(i)i.prev=o;else return;o?o.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,o=e.prev;if(o)o.next=i;else return;i?i.prev=o:o&&(this._drawLast=o),e.prev=null,e.next=this._drawFirst,this._drawFirst.prev=e,this._drawFirst=e,this._requestRedraw(t)}}});function Ro(t){return S.canvas?new Io(t):null}var ye=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">')}}(),vl={_initContainer:function(){this._container=q("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(St.prototype._update.call(this),this.fire("update"))},_initPath:function(t){var e=t._container=ye("shape");B(e,"leaflet-vml-shape "+(this.options.className||"")),e.coordsize="1 1",t._path=ye("path"),e.appendChild(t._path),this._updateStyle(t),this._layers[m(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;X(e),t.removeInteractiveTarget(e),delete this._layers[m(t)]},_updateStyle:function(t){var e=t._stroke,i=t._fill,o=t.options,a=t._container;a.stroked=!!o.stroke,a.filled=!!o.fill,o.stroke?(e||(e=t._stroke=ye("stroke")),a.appendChild(e),e.weight=o.weight+"px",e.color=o.color,e.opacity=o.opacity,o.dashArray?e.dashStyle=M(o.dashArray)?o.dashArray.join(" "):o.dashArray.replace(/( *, *)/g," "):e.dashStyle="",e.endcap=o.lineCap.replace("butt","flat"),e.joinstyle=o.lineJoin):e&&(a.removeChild(e),t._stroke=null),o.fill?(i||(i=t._fill=ye("fill")),a.appendChild(i),i.color=o.fillColor||o.color,i.opacity=o.fillOpacity):i&&(a.removeChild(i),t._fill=null)},_updateCircle:function(t){var e=t._point.round(),i=Math.round(t._radius),o=Math.round(t._radiusY||i);this._setPath(t,t._empty()?"M0 0":"AL "+e.x+","+e.y+" "+i+","+o+" 0,"+65535*360)},_setPath:function(t,e){t._path.v=e},_bringToFront:function(t){Jt(t._container)},_bringToBack:function(t){Yt(t._container)}},$e=S.vml?ye:Zn,Le=St.extend({_initContainer:function(){this._container=$e("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=$e("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){X(this._container),V(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){St.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)),tt(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=$e("path");t.options.className&&B(e,t.options.className),t.options.interactive&&B(e,"leaflet-interactive"),this._updateStyle(t),this._layers[m(t)]=t},_addPath:function(t){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(t._path),t.addInteractiveTarget(t._path)},_removePath:function(t){X(t._path),t.removeInteractiveTarget(t._path),delete this._layers[m(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,Hn(t._parts,e))},_updateCircle:function(t){var e=t._point,i=Math.max(Math.round(t._radius),1),o=Math.max(Math.round(t._radiusY),1)||i,a="a"+i+","+o+" 0 1,0 ",u=t._empty()?"M0 0":"M"+(e.x-i)+","+e.y+a+i*2+",0 "+a+-i*2+",0 ";this._setPath(t,u)},_setPath:function(t,e){t._path.setAttribute("d",e)},_bringToFront:function(t){Jt(t._path)},_bringToBack:function(t){Yt(t._path)}});S.vml&&Le.include(vl);function Bo(t){return S.svg||S.vml?new Le(t):null}j.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&&Ro(t)||Bo(t)}});var No=Qt.extend({initialize:function(t,e){Qt.prototype.initialize.call(this,this._boundsToLatLngs(t),e)},setBounds:function(t){return this.setLatLngs(this._boundsToLatLngs(t))},_boundsToLatLngs:function(t){return t=ot(t),[t.getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}});function yl(t,e){return new No(t,e)}Le.create=$e,Le.pointsToPath=Hn,zt.geometryToLayer=qe,zt.coordsToLatLng=Ki,zt.coordsToLatLngs=We,zt.latLngToCoords=Vi,zt.latLngsToCoords=Ke,zt.getFeature=te,zt.asFeature=Ve,j.mergeOptions({boxZoom:!0});var Zo=bt.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(){R(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){V(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){X(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(),ue(),Si(),this._startPoint=this._map.mouseEventToContainerPoint(t),R(document,{contextmenu:Ut,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(t){this._moved||(this._moved=!0,this._box=q("div","leaflet-zoom-box",this._container),B(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(t);var e=new Y(this._point,this._startPoint),i=e.getSize();tt(this._box,e.min),this._box.style.width=i.x+"px",this._box.style.height=i.y+"px"},_finish:function(){this._moved&&(X(this._box),Q(this._container,"leaflet-crosshair")),de(),Di(),V(document,{contextmenu:Ut,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(h(this._resetState,this),0);var e=new ct(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())}});j.addInitHook("addHandler","boxZoom",Zo),j.mergeOptions({doubleClickZoom:!0});var Ho=bt.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(),o=e.options.zoomDelta,a=t.originalEvent.shiftKey?i-o:i+o;e.options.doubleClickZoom==="center"?e.setZoom(a):e.setZoomAround(t.containerPoint,a)}});j.addInitHook("addHandler","doubleClickZoom",Ho),j.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var Fo=bt.extend({addHooks:function(){if(!this._draggable){var t=this._map;this._draggable=new At(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))}B(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){Q(this._map._container,"leaflet-grab"),Q(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=ot(this._map.options.maxBounds);this._offsetLimit=ht(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,o=this._draggable._newPos.x,a=(o-e+i)%t+e-i,u=(o+e+i)%t-e-i,p=Math.abs(a+i)<Math.abs(u+i)?a:u;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=p},_onDragEnd:function(t){var e=this._map,i=e.options,o=!i.inertia||t.noInertia||this._times.length<2;if(e.fire("dragend",t),o)e.fire("moveend");else{this._prunePositions(+new Date);var a=this._lastPos.subtract(this._positions[0]),u=(this._lastTime-this._times[0])/1e3,p=i.easeLinearity,g=a.multiplyBy(p/u),y=g.distanceTo([0,0]),x=Math.min(i.inertiaMaxSpeed,y),C=g.multiplyBy(x/y),O=x/(i.inertiaDeceleration*p),H=C.multiplyBy(-O/2).round();!H.x&&!H.y?e.fire("moveend"):(H=e._limitOffset(H,e.options.maxBounds),rt(function(){e.panBy(H,{duration:O,easeLinearity:p,noMoveStart:!0,animate:!0})}))}}});j.addInitHook("addHandler","dragging",Fo),j.mergeOptions({keyboard:!0,keyboardPanDelta:80});var Uo=bt.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"),R(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(),V(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,o=t.scrollLeft||e.scrollLeft;this._map._container.focus(),window.scrollTo(o,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,o,a;for(o=0,a=i.left.length;o<a;o++)e[i.left[o]]=[-1*t,0];for(o=0,a=i.right.length;o<a;o++)e[i.right[o]]=[t,0];for(o=0,a=i.down.length;o<a;o++)e[i.down[o]]=[0,t];for(o=0,a=i.up.length;o<a;o++)e[i.up[o]]=[0,-1*t]},_setZoomDelta:function(t){var e=this._zoomKeys={},i=this.keyCodes,o,a;for(o=0,a=i.zoomIn.length;o<a;o++)e[i.zoomIn[o]]=t;for(o=0,a=i.zoomOut.length;o<a;o++)e[i.zoomOut[o]]=-t},_addHooks:function(){R(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){V(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(t){if(!(t.altKey||t.ctrlKey||t.metaKey)){var e=t.keyCode,i=this._map,o;if(e in this._panKeys){if(!i._panAnim||!i._panAnim._inProgress)if(o=this._panKeys[e],t.shiftKey&&(o=A(o).multiplyBy(3)),i.options.maxBounds&&(o=i._limitOffset(A(o),i.options.maxBounds)),i.options.worldCopyJump){var a=i.wrapLatLng(i.unproject(i.project(i.getCenter()).add(o)));i.panTo(a)}else i.panBy(o)}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;Ut(t)}}});j.addInitHook("addHandler","keyboard",Uo),j.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var jo=bt.extend({addHooks:function(){R(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){V(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(t){var e=fo(t),i=this._map.options.wheelDebounceTime;this._delta+=e,this._lastMousePos=this._map.mouseEventToContainerPoint(t),this._startTime||(this._startTime=+new Date);var o=Math.max(i-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(h(this._performZoom,this),o),Ut(t)},_performZoom:function(){var t=this._map,e=t.getZoom(),i=this._map.options.zoomSnap||0;t._stop();var o=this._delta/(this._map.options.wheelPxPerZoomLevel*4),a=4*Math.log(2/(1+Math.exp(-Math.abs(o))))/Math.LN2,u=i?Math.ceil(a/i)*i:a,p=t._limitZoom(e+(this._delta>0?u:-u))-e;this._delta=0,this._startTime=null,p&&(t.options.scrollWheelZoom==="center"?t.setZoom(e+p):t.setZoomAround(this._lastMousePos,e+p))}});j.addInitHook("addHandler","scrollWheelZoom",jo);var Ll=600;j.mergeOptions({tapHold:S.touchNative&&S.safari&&S.mobile,tapTolerance:15});var Go=bt.extend({addHooks:function(){R(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){V(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 I(e.clientX,e.clientY),this._holdTimeout=setTimeout(h(function(){this._cancel(),this._isTapValid()&&(R(document,"touchend",st),R(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",e))},this),Ll),R(document,"touchend touchcancel contextmenu",this._cancel,this),R(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function t(){V(document,"touchend",st),V(document,"touchend touchcancel",t)},_cancel:function(){clearTimeout(this._holdTimeout),V(document,"touchend touchcancel contextmenu",this._cancel,this),V(document,"touchmove",this._onMove,this)},_onMove:function(t){var e=t.touches[0];this._newPos=new I(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)}});j.addInitHook("addHandler","tapHold",Go),j.mergeOptions({touchZoom:S.touch,bounceAtZoomLimits:!0});var qo=bt.extend({addHooks:function(){B(this._map._container,"leaflet-touch-zoom"),R(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){Q(this._map._container,"leaflet-touch-zoom"),V(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]),o=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(o)._divideBy(2))),this._startDist=i.distanceTo(o),this._startZoom=e.getZoom(),this._moved=!1,this._zooming=!0,e._stop(),R(document,"touchmove",this._onTouchMove,this),R(document,"touchend touchcancel",this._onTouchEnd,this),st(t)}},_onTouchMove:function(t){if(!(!t.touches||t.touches.length!==2||!this._zooming)){var e=this._map,i=e.mouseEventToContainerPoint(t.touches[0]),o=e.mouseEventToContainerPoint(t.touches[1]),a=i.distanceTo(o)/this._startDist;if(this._zoom=e.getScaleZoom(a,this._startZoom),!e.options.bounceAtZoomLimits&&(this._zoom<e.getMinZoom()&&a<1||this._zoom>e.getMaxZoom()&&a>1)&&(this._zoom=e._limitZoom(this._zoom)),e.options.touchZoom==="center"){if(this._center=this._startLatLng,a===1)return}else{var u=i._add(o)._divideBy(2)._subtract(this._centerPoint);if(a===1&&u.x===0&&u.y===0)return;this._center=e.unproject(e.project(this._pinchStartLatLng,this._zoom).subtract(u),this._zoom)}this._moved||(e._moveStart(!0,!1),this._moved=!0),at(this._animRequest);var p=h(e._move,e,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=rt(p,this,!0),st(t)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,at(this._animRequest),V(document,"touchmove",this._onTouchMove,this),V(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))}});j.addInitHook("addHandler","touchZoom",qo),j.BoxZoom=Zo,j.DoubleClickZoom=Ho,j.Drag=Fo,j.Keyboard=Uo,j.ScrollWheelZoom=jo,j.TapHold=Go,j.TouchZoom=qo,c.Bounds=Y,c.Browser=S,c.CRS=Et,c.Canvas=Io,c.Circle=Wi,c.CircleMarker=Ge,c.Class=Tt,c.Control=gt,c.DivIcon=Do,c.DivOverlay=xt,c.DomEvent=Na,c.DomUtil=Ra,c.Draggable=At,c.Evented=se,c.FeatureGroup=Mt,c.GeoJSON=zt,c.GridLayer=ve,c.Handler=bt,c.Icon=$t,c.ImageOverlay=Je,c.LatLng=W,c.LatLngBounds=ct,c.Layer=vt,c.LayerGroup=Xt,c.LineUtil=Ya,c.Map=j,c.Marker=je,c.Mixin=qa,c.Path=It,c.Point=I,c.PolyUtil=Xa,c.Polygon=Qt,c.Polyline=Ct,c.Popup=Ye,c.PosAnimation=po,c.Projection=$a,c.Rectangle=No,c.Renderer=St,c.SVG=Le,c.SVGOverlay=So,c.TileLayer=ee,c.Tooltip=Xe,c.Transformation=yi,c.Util=oa,c.VideoOverlay=zo,c.bind=h,c.bounds=ht,c.canvas=Ro,c.circle=sl,c.circleMarker=rl,c.control=_e,c.divIcon=_l,c.extend=n,c.featureGroup=il,c.geoJSON=Co,c.geoJson=hl,c.gridLayer=ml,c.icon=nl,c.imageOverlay=cl,c.latLng=K,c.latLngBounds=ot,c.layerGroup=el,c.map=Za,c.marker=ol,c.point=A,c.polygon=ll,c.polyline=al,c.popup=fl,c.rectangle=yl,c.setOptions=T,c.stamp=m,c.svg=Bo,c.svgOverlay=dl,c.tileLayer=Oo,c.tooltip=pl,c.transformation=ae,c.version=d,c.videoOverlay=ul;var wl=window.L;c.noConflict=function(){return window.L=wl,this},window.L=c})})(ar,F);const Dl="";function nn(s,l,c){c===void 0&&(c={});var d={type:"Feature"};return(c.id===0||c.id)&&(d.id=c.id),c.bbox&&(d.bbox=c.bbox),d.properties=l||{},d.geometry=s,d}function lr(s,l,c){if(c===void 0&&(c={}),!s)throw new Error("coordinates is required");if(!Array.isArray(s))throw new Error("coordinates must be an Array");if(s.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!on(s[0])||!on(s[1]))throw new Error("coordinates must contain numbers");var d={type:"Point",coordinates:s};return nn(d,l,c)}function hr(s,l,c){c===void 0&&(c={});for(var d=0,n=s;d<n.length;d++){var r=n[d];if(r.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");for(var h=0;h<r[r.length-1].length;h++)if(r[r.length-1][h]!==r[0][h])throw new Error("First and last Position are not equivalent.")}var f={type:"Polygon",coordinates:s};return nn(f,l,c)}function on(s){return!isNaN(s)&&s!==null&&!Array.isArray(s)}function cr(s){if(!s)throw new Error("coord is required");if(!Array.isArray(s)){if(s.type==="Feature"&&s.geometry!==null&&s.geometry.type==="Point")return s.geometry.coordinates;if(s.type==="Point")return s.coordinates}if(Array.isArray(s)&&s.length>=2&&!Array.isArray(s[0])&&!Array.isArray(s[1]))return s;throw new Error("coord must be GeoJSON Point or an Array of numbers")}function ur(s){return s.type==="Feature"?s.geometry:s}function dr(s,l,c){if(c===void 0&&(c={}),!s)throw new Error("point is required");if(!l)throw new Error("polygon is required");var d=cr(s),n=ur(l),r=n.type,h=l.bbox,f=n.coordinates;if(h&&fr(d,h)===!1)return!1;r==="Polygon"&&(f=[f]);for(var m=!1,_=0;_<f.length&&!m;_++)if(rn(d,f[_][0],c.ignoreBoundary)){for(var v=!1,w=1;w<f[_].length&&!v;)rn(d,f[_][w],!c.ignoreBoundary)&&(v=!0),w++;v||(m=!0)}return m}function rn(s,l,c){var d=!1;l[0][0]===l[l.length-1][0]&&l[0][1]===l[l.length-1][1]&&(l=l.slice(0,l.length-1));for(var n=0,r=l.length-1;n<l.length;r=n++){var h=l[n][0],f=l[n][1],m=l[r][0],_=l[r][1],v=s[1]*(h-m)+f*(m-s[0])+_*(s[0]-h)===0&&(h-s[0])*(m-s[0])<=0&&(f-s[1])*(_-s[1])<=0;if(v)return!c;var w=f>s[1]!=_>s[1]&&s[0]<(m-h)*(s[1]-f)/(_-f)+h;w&&(d=!d)}return d}function fr(s,l){return l[0]<=s[0]&&l[1]<=s[1]&&l[2]>=s[0]&&l[3]>=s[1]}const pr=$.defineComponent({name:"CoordinatesVerifyPolygon",props:{dataPolygon:Object,iconMarker:Object,coordinatesMap:Array,checkPointInPolygon:Function},data(){return{markerIconDefault:{iconUrl:oi,iconSize:[25,41],iconAnchor:[12,41]}}},mounted(){this.verificarPuntoEnPoligono()},methods:{verificarPuntoEnPoligono(){var v;const s=this.iconMarker?this.iconMarker:this.markerIconDefault,l=(v=this.dataPolygon)==null?void 0:v.geometry.coordinates[0].map(w=>[w[1],w[0]]),c=JSON.parse(JSON.stringify(l)),d=[this.coordinatesMap?this.coordinatesMap[0]:0,this.coordinatesMap?this.coordinatesMap[1]:0],n=F.map("maps").setView([this.coordinatesMap?this.coordinatesMap[0]:0,this.coordinatesMap?this.coordinatesMap[1]:0],this.coordinatesMap?this.coordinatesMap[2]:0);F.tileLayer("https://tile.openstreetmap.org/{z}/{x}/{y}.png",{maxZoom:19,attribution:'&copy; <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>'}).addTo(n),F.polygon(c).addTo(n);const r=[this.coordinatesMap?this.coordinatesMap[0]:0,this.coordinatesMap?this.coordinatesMap[1]:0],h=F.icon(s);F.marker(r,{icon:h}).addTo(n);const f=lr(d),m=hr([l]),_=dr(f,m);this.checkPointInPolygon&&this.checkPointInPolygon(_)}}}),Ol="",sn=(s,l)=>{const c=s.__vccOpts||s;for(const[d,n]of l)c[d]=n;return c},_r={ref:"maps",id:"maps"};function mr(s,l,c,d,n,r){return $.openBlock(),$.createElementBlock("div",_r,null,512)}const gr=sn(pr,[["render",mr]]);(function(s,l,c){function d(n,r){for(;(n=n.parentElement)&&!n.classList.contains(r););return n}L.drawVersion="1.0.4",L.Draw={},L.drawLocal={draw:{toolbar:{actions:{title:"Cancel drawing",text:"Cancel"},finish:{title:"Finish drawing",text:"Finish"},undo:{title:"Delete last point drawn",text:"Delete last point"},buttons:{polyline:"Draw a polyline",polygon:"Draw a polygon",rectangle:"Draw a rectangle",circle:"Draw a circle",marker:"Draw a marker",circlemarker:"Draw a circlemarker"}},handlers:{circle:{tooltip:{start:"Click and drag to draw circle."},radius:"Radius"},circlemarker:{tooltip:{start:"Click map to place circle marker."}},marker:{tooltip:{start:"Click map to place marker."}},polygon:{tooltip:{start:"Click to start drawing shape.",cont:"Click to continue drawing shape.",end:"Click first point to close this shape."}},polyline:{error:"<strong>Error:</strong> shape edges cannot cross!",tooltip:{start:"Click to start drawing line.",cont:"Click to continue drawing line.",end:"Click last point to finish line."}},rectangle:{tooltip:{start:"Click and drag to draw rectangle."}},simpleshape:{tooltip:{end:"Release mouse to finish drawing."}}}},edit:{toolbar:{actions:{save:{title:"Save changes",text:"Save"},cancel:{title:"Cancel editing, discards all changes",text:"Cancel"},clearAll:{title:"Clear all layers",text:"Clear All"}},buttons:{edit:"Edit layers",editDisabled:"No layers to edit",remove:"Delete layers",removeDisabled:"No layers to delete"}},handlers:{edit:{tooltip:{text:"Drag handles or markers to edit features.",subtext:"Click cancel to undo changes."}},remove:{tooltip:{text:"Click on a feature to remove."}}}}},L.Draw.Event={},L.Draw.Event.CREATED="draw:created",L.Draw.Event.EDITED="draw:edited",L.Draw.Event.DELETED="draw:deleted",L.Draw.Event.DRAWSTART="draw:drawstart",L.Draw.Event.DRAWSTOP="draw:drawstop",L.Draw.Event.DRAWVERTEX="draw:drawvertex",L.Draw.Event.EDITSTART="draw:editstart",L.Draw.Event.EDITMOVE="draw:editmove",L.Draw.Event.EDITRESIZE="draw:editresize",L.Draw.Event.EDITVERTEX="draw:editvertex",L.Draw.Event.EDITSTOP="draw:editstop",L.Draw.Event.DELETESTART="draw:deletestart",L.Draw.Event.DELETESTOP="draw:deletestop",L.Draw.Event.TOOLBAROPENED="draw:toolbaropened",L.Draw.Event.TOOLBARCLOSED="draw:toolbarclosed",L.Draw.Event.MARKERCONTEXT="draw:markercontext",L.Draw=L.Draw||{},L.Draw.Feature=L.Handler.extend({initialize:function(n,r){this._map=n,this._container=n._container,this._overlayPane=n._panes.overlayPane,this._popupPane=n._panes.popupPane,r&&r.shapeOptions&&(r.shapeOptions=L.Util.extend({},this.options.shapeOptions,r.shapeOptions)),L.setOptions(this,r);var h=L.version.split(".");parseInt(h[0],10)===1&&parseInt(h[1],10)>=2?L.Draw.Feature.include(L.Evented.prototype):L.Draw.Feature.include(L.Mixin.Events)},enable:function(){this._enabled||(L.Handler.prototype.enable.call(this),this.fire("enabled",{handler:this.type}),this._map.fire(L.Draw.Event.DRAWSTART,{layerType:this.type}))},disable:function(){this._enabled&&(L.Handler.prototype.disable.call(this),this._map.fire(L.Draw.Event.DRAWSTOP,{layerType:this.type}),this.fire("disabled",{handler:this.type}))},addHooks:function(){var n=this._map;n&&(L.DomUtil.disableTextSelection(),n.getContainer().focus(),this._tooltip=new L.Draw.Tooltip(this._map),L.DomEvent.on(this._container,"keyup",this._cancelDrawing,this))},removeHooks:function(){this._map&&(L.DomUtil.enableTextSelection(),this._tooltip.dispose(),this._tooltip=null,L.DomEvent.off(this._container,"keyup",this._cancelDrawing,this))},setOptions:function(n){L.setOptions(this,n)},_fireCreatedEvent:function(n){this._map.fire(L.Draw.Event.CREATED,{layer:n,layerType:this.type})},_cancelDrawing:function(n){n.keyCode===27&&(this._map.fire("draw:canceled",{layerType:this.type}),this.disable())}}),L.Draw.Polyline=L.Draw.Feature.extend({statics:{TYPE:"polyline"},Poly:L.Polyline,options:{allowIntersection:!0,repeatMode:!1,drawError:{color:"#b00b00",timeout:2500},icon:new L.DivIcon({iconSize:new L.Point(8,8),className:"leaflet-div-icon leaflet-editing-icon"}),touchIcon:new L.DivIcon({iconSize:new L.Point(20,20),className:"leaflet-div-icon leaflet-editing-icon leaflet-touch-icon"}),guidelineDistance:20,maxGuideLineLength:4e3,shapeOptions:{stroke:!0,color:"#3388ff",weight:4,opacity:.5,fill:!1,clickable:!0},metric:!0,feet:!0,nautic:!1,showLength:!0,zIndexOffset:2e3,factor:1,maxPoints:0},initialize:function(n,r){L.Browser.touch&&(this.options.icon=this.options.touchIcon),this.options.drawError.message=L.drawLocal.draw.handlers.polyline.error,r&&r.drawError&&(r.drawError=L.Util.extend({},this.options.drawError,r.drawError)),this.type=L.Draw.Polyline.TYPE,L.Draw.Feature.prototype.initialize.call(this,n,r)},addHooks:function(){L.Draw.Feature.prototype.addHooks.call(this),this._map&&(this._markers=[],this._markerGroup=new L.LayerGroup,this._map.addLayer(this._markerGroup),this._poly=new L.Polyline([],this.options.shapeOptions),this._tooltip.updateContent(this._getTooltipText()),this._mouseMarker||(this._mouseMarker=L.marker(this._map.getCenter(),{icon:L.divIcon({className:"leaflet-mouse-marker",iconAnchor:[20,20],iconSize:[40,40]}),opacity:0,zIndexOffset:this.options.zIndexOffset})),this._mouseMarker.on("mouseout",this._onMouseOut,this).on("mousemove",this._onMouseMove,this).on("mousedown",this._onMouseDown,this).on("mouseup",this._onMouseUp,this).addTo(this._map),this._map.on("mouseup",this._onMouseUp,this).on("mousemove",this._onMouseMove,this).on("zoomlevelschange",this._onZoomEnd,this).on("touchstart",this._onTouch,this).on("zoomend",this._onZoomEnd,this))},removeHooks:function(){L.Draw.Feature.prototype.removeHooks.call(this),this._clearHideErrorTimeout(),this._cleanUpShape(),this._map.removeLayer(this._markerGroup),delete this._markerGroup,delete this._markers,this._map.removeLayer(this._poly),delete this._poly,this._mouseMarker.off("mousedown",this._onMouseDown,this).off("mouseout",this._onMouseOut,this).off("mouseup",this._onMouseUp,this).off("mousemove",this._onMouseMove,this),this._map.removeLayer(this._mouseMarker),delete this._mouseMarker,this._clearGuides(),this._map.off("mouseup",this._onMouseUp,this).off("mousemove",this._onMouseMove,this).off("zoomlevelschange",this._onZoomEnd,this).off("zoomend",this._onZoomEnd,this).off("touchstart",this._onTouch,this).off("click",this._onTouch,this)},deleteLastVertex:function(){if(!(this._markers.length<=1)){var n=this._markers.pop(),r=this._poly,h=r.getLatLngs(),f=h.splice(-1,1)[0];this._poly.setLatLngs(h),this._markerGroup.removeLayer(n),r.getLatLngs().length<2&&this._map.removeLayer(r),this._vertexChanged(f,!1)}},addVertex:function(n){if(this._markers.length>=2&&!this.options.allowIntersection&&this._poly.newLatLngIntersects(n))return void this._showErrorTooltip();this._errorShown&&this._hideErrorTooltip(),this._markers.push(this._createMarker(n)),this._poly.addLatLng(n),this._poly.getLatLngs().length===2&&this._map.addLayer(this._poly),this._vertexChanged(n,!0)},completeShape:function(){this._markers.length<=1||!this._shapeIsValid()||(this._fireCreatedEvent(),this.disable(),this.options.repeatMode&&this.enable())},_finishShape:function(){var n=this._poly._defaultShape?this._poly._defaultShape():this._poly.getLatLngs(),r=this._poly.newLatLngIntersects(n[n.length-1]);if(!this.options.allowIntersection&&r||!this._shapeIsValid())return void this._showErrorTooltip();this._fireCreatedEvent(),this.disable(),this.options.repeatMode&&this.enable()},_shapeIsValid:function(){return!0},_onZoomEnd:function(){this._markers!==null&&this._updateGuide()},_onMouseMove:function(n){var r=this._map.mouseEventToLayerPoint(n.originalEvent),h=this._map.layerPointToLatLng(r);this._currentLatLng=h,this._updateTooltip(h),this._updateGuide(r),this._mouseMarker.setLatLng(h),L.DomEvent.preventDefault(n.originalEvent)},_vertexChanged:function(n,r){this._map.fire(L.Draw.Event.DRAWVERTEX,{layers:this._markerGroup}),this._updateFinishHandler(),this._updateRunningMeasure(n,r),this._clearGuides(),this._updateTooltip()},_onMouseDown:function(n){if(!this._clickHandled&&!this._touchHandled&&!this._disableMarkers){this._onMouseMove(n),this._clickHandled=!0,this._disableNewMarkers();var r=n.originalEvent,h=r.clientX,f=r.clientY;this._startPoint.call(this,h,f)}},_startPoint:function(n,r){this._mouseDownOrigin=L.point(n,r)},_onMouseUp:function(n){var r=n.originalEvent,h=r.clientX,f=r.clientY;this._endPoint.call(this,h,f,n),this._clickHandled=null},_endPoint:function(n,r,h){if(this._mouseDownOrigin){var f=L.point(n,r).distanceTo(this._mouseDownOrigin),m=this._calculateFinishDistance(h.latlng);this.options.maxPoints>1&&this.options.maxPoints==this._markers.length+1?(this.addVertex(h.latlng),this._finishShape()):m<10&&L.Browser.touch?this._finishShape():Math.abs(f)<9*(s.devicePixelRatio||1)&&this.addVertex(h.latlng),this._enableNewMarkers()}this._mouseDownOrigin=null},_onTouch:function(n){var r,h,f=n.originalEvent;!f.touches||!f.touches[0]||this._clickHandled||this._touchHandled||this._disableMarkers||(r=f.touches[0].clientX,h=f.touches[0].clientY,this._disableNewMarkers(),this._touchHandled=!0,this._startPoint.call(this,r,h),this._endPoint.call(this,r,h,n),this._touchHandled=null),this._clickHandled=null},_onMouseOut:function(){this._tooltip&&this._tooltip._onMouseOut.call(this._tooltip)},_calculateFinishDistance:function(n){var r;if(this._markers.length>0){var h;if(this.type===L.Draw.Polyline.TYPE)h=this._markers[this._markers.length-1];else{if(this.type!==L.Draw.Polygon.TYPE)return 1/0;h=this._markers[0]}var f=this._map.latLngToContainerPoint(h.getLatLng()),m=new L.Marker(n,{icon:this.options.icon,zIndexOffset:2*this.options.zIndexOffset}),_=this._map.latLngToContainerPoint(m.getLatLng());r=f.distanceTo(_)}else r=1/0;return r},_updateFinishHandler:function(){var n=this._markers.length;n>1&&this._markers[n-1].on("click",this._finishShape,this),n>2&&this._markers[n-2].off("click",this._finishShape,this)},_createMarker:function(n){var r=new L.Marker(n,{icon:this.options.icon,zIndexOffset:2*this.options.zIndexOffset});return this._markerGroup.addLayer(r),r},_updateGuide:function(n){var r=this._markers?this._markers.length:0;r>0&&(n=n||this._map.latLngToLayerPoint(this._currentLatLng),this._clearGuides(),this._drawGuide(this._map.latLngToLayerPoint(this._markers[r-1].getLatLng()),n))},_updateTooltip:function(n){var r=this._getTooltipText();n&&this._tooltip.updatePosition(n),this._errorShown||this._tooltip.updateContent(r)},_drawGuide:function(n,r){var h,f,m,_=Math.floor(Math.sqrt(Math.pow(r.x-n.x,2)+Math.pow(r.y-n.y,2))),v=this.options.guidelineDistance,w=this.options.maxGuideLineLength,E=_>w?_-w:v;for(this._guidesContainer||(this._guidesContainer=L.DomUtil.create("div","leaflet-draw-guides",this._overlayPane));E<_;E+=this.options.guidelineDistance)h=E/_,f={x:Math.floor(n.x*(1-h)+h*r.x),y:Math.floor(n.y*(1-h)+h*r.y)},m=L.DomUtil.create("div","leaflet-draw-guide-dash",this._guidesContainer),m.style.backgroundColor=this._errorShown?this.options.drawError.color:this.options.shapeOptions.color,L.DomUtil.setPosition(m,f)},_updateGuideColor:function(n){if(this._guidesContainer)for(var r=0,h=this._guidesContainer.childNodes.length;r<h;r++)this._guidesContainer.childNodes[r].style.backgroundColor=n},_clearGuides:function(){if(this._guidesContainer)for(;this._guidesContainer.firstChild;)this._guidesContainer.removeChild(this._guidesContainer.firstChild)},_getTooltipText:function(){var n,r,h=this.options.showLength;return this._markers.length===0?n={text:L.drawLocal.draw.handlers.polyline.tooltip.start}:(r=h?this._getMeasurementString():"",n=this._markers.length===1?{text:L.drawLocal.draw.handlers.polyline.tooltip.cont,subtext:r}:{text:L.drawLocal.draw.handlers.polyline.tooltip.end,subtext:r}),n},_updateRunningMeasure:function(n,r){var h,f,m=this._markers.length;this._markers.length===1?this._measurementRunningTotal=0:(h=m-(r?2:1),f=L.GeometryUtil.isVersion07x()?n.distanceTo(this._markers[h].getLatLng())*(this.options.factor||1):this._map.distance(n,this._markers[h].getLatLng())*(this.options.factor||1),this._measurementRunningTotal+=f*(r?1:-1))},_getMeasurementString:function(){var n,r=this._currentLatLng,h=this._markers[this._markers.length-1].getLatLng();return n=L.GeometryUtil.isVersion07x()?h&&r&&r.distanceTo?this._measurementRunningTotal+r.distanceTo(h)*(this.options.factor||1):this._measurementRunningTotal||0:h&&r?this._measurementRunningTotal+this._map.distance(r,h)*(this.options.factor||1):this._measurementRunningTotal||0,L.GeometryUtil.readableDistance(n,this.options.metric,this.options.feet,this.options.nautic,this.options.precision)},_showErrorTooltip:function(){this._errorShown=!0,this._tooltip.showAsError().updateContent({text:this.options.drawError.message}),this._updateGuideColor(this.options.drawError.color),this._poly.setStyle({color:this.options.drawError.color}),this._clearHideErrorTimeout(),this._hideErrorTimeout=setTimeout(L.Util.bind(this._hideErrorTooltip,this),this.options.drawError.timeout)},_hideErrorTooltip:function(){this._errorShown=!1,this._clearHideErrorTimeout(),this._tooltip.removeError().updateContent(this._getTooltipText()),this._updateGuideColor(this.options.shapeOptions.color),this._poly.setStyle({color:this.options.shapeOptions.color})},_clearHideErrorTimeout:function(){this._hideErrorTimeout&&(clearTimeout(this._hideErrorTimeout),this._hideErrorTimeout=null)},_disableNewMarkers:function(){this._disableMarkers=!0},_enableNewMarkers:function(){setTimeout(function(){this._disableMarkers=!1}.bind(this),50)},_cleanUpShape:function(){this._markers.length>1&&this._markers[this._markers.length-1].off("click",this._finishShape,this)},_fireCreatedEvent:function(){var n=new this.Poly(this._poly.getLatLngs(),this.options.shapeOptions);L.Draw.Feature.prototype._fireCreatedEvent.call(this,n)}}),L.Draw.Polygon=L.Draw.Polyline.extend({statics:{TYPE:"polygon"},Poly:L.Polygon,options:{showArea:!1,showLength:!1,shapeOptions:{stroke:!0,color:"#3388ff",weight:4,opacity:.5,fill:!0,fillColor:null,fillOpacity:.2,clickable:!0},metric:!0,feet:!0,nautic:!1,precision:{}},initialize:function(n,r){L.Draw.Polyline.prototype.initialize.call(this,n,r),this.type=L.Draw.Polygon.TYPE},_updateFinishHandler:function(){var n=this._markers.length;n===1&&this._markers[0].on("click",this._finishShape,this),n>2&&(this._markers[n-1].on("dblclick",this._finishShape,this),n>3&&this._markers[n-2].off("dblclick",this._finishShape,this))},_getTooltipText:function(){var n,r;return this._markers.length===0?n=L.drawLocal.draw.handlers.polygon.tooltip.start:this._markers.length<3?(n=L.drawLocal.draw.handlers.polygon.tooltip.cont,r=this._getMeasurementString()):(n=L.drawLocal.draw.handlers.polygon.tooltip.end,r=this._getMeasurementString()),{text:n,subtext:r}},_getMeasurementString:function(){var n=this._area,r="";return n||this.options.showLength?(this.options.showLength&&(r=L.Draw.Polyline.prototype._getMeasurementString.call(this)),n&&(r+="<br>"+L.GeometryUtil.readableArea(n,this.options.metric,this.options.precision)),r):null},_shapeIsValid:function(){return this._markers.length>=3},_vertexChanged:function(n,r){var h;!this.options.allowIntersection&&this.options.showArea&&(h=this._poly.getLatLngs(),this._area=L.GeometryUtil.geodesicArea(h)),L.Draw.Polyline.prototype._vertexChanged.call(this,n,r)},_cleanUpShape:function(){var n=this._markers.length;n>0&&(this._markers[0].off("click",this._finishShape,this),n>2&&this._markers[n-1].off("dblclick",this._finishShape,this))}}),L.SimpleShape={},L.Draw.SimpleShape=L.Draw.Feature.extend({options:{repeatMode:!1},initialize:function(n,r){this._endLabelText=L.drawLocal.draw.handlers.simpleshape.tooltip.end,L.Draw.Feature.prototype.initialize.call(this,n,r)},addHooks:function(){L.Draw.Feature.prototype.addHooks.call(this),this._map&&(this._mapDraggable=this._map.dragging.enabled(),this._mapDraggable&&this._map.dragging.disable(),this._container.style.cursor="crosshair",this._tooltip.updateContent({text:this._initialLabelText}),this._map.on("mousedown",this._onMouseDown,this).on("mousemove",this._onMouseMove,this).on("touchstart",this._onMouseDown,this).on("touchmove",this._onMouseMove,this),l.addEventListener("touchstart",L.DomEvent.preventDefault,{passive:!1}))},removeHooks:function(){L.Draw.Feature.prototype.removeHooks.call(this),this._map&&(this._mapDraggable&&this._map.dragging.enable(),this._container.style.cursor="",this._map.off("mousedown",this._onMouseDown,this).off("mousemove",this._onMouseMove,this).off("touchstart",this._onMouseDown,this).off("touchmove",this._onMouseMove,this),L.DomEvent.off(l,"mouseup",this._onMouseUp,this),L.DomEvent.off(l,"touchend",this._onMouseUp,this),l.removeEventListener("touchstart",L.DomEvent.preventDefault),this._shape&&(this._map.removeLayer(this._shape),delete this._shape)),this._isDrawing=!1},_getTooltipText:function(){return{text:this._endLabelText}},_onMouseDown:function(n){this._isDrawing=!0,this._startLatLng=n.latlng,L.DomEvent.on(l,"mouseup",this._onMouseUp,this).on(l,"touchend",this._onMouseUp,this).preventDefault(n.originalEvent)},_onMouseMove:function(n){var r=n.latlng;this._tooltip.updatePosition(r),this._isDrawing&&(this._tooltip.updateContent(this._getTooltipText()),this._drawShape(r))},_onMouseUp:function(){this._shape&&this._fireCreatedEvent(),this.disable(),this.options.repeatMode&&this.enable()}}),L.Draw.Rectangle=L.Draw.SimpleShape.extend({statics:{TYPE:"rectangle"},options:{shapeOptions:{stroke:!0,color:"#3388ff",weight:4,opacity:.5,fill:!0,fillColor:null,fillOpacity:.2,clickable:!0},showArea:!0,metric:!0},initialize:function(n,r){this.type=L.Draw.Rectangle.TYPE,this._initialLabelText=L.drawLocal.draw.handlers.rectangle.tooltip.start,L.Draw.SimpleShape.prototype.initialize.call(this,n,r)},disable:function(){this._enabled&&(this._isCurrentlyTwoClickDrawing=!1,L.Draw.SimpleShape.prototype.disable.call(this))},_onMouseUp:function(n){if(!this._shape&&!this._isCurrentlyTwoClickDrawing)return void(this._isCurrentlyTwoClickDrawing=!0);this._isCurrentlyTwoClickDrawing&&!d(n.target,"leaflet-pane")||L.Draw.SimpleShape.prototype._onMouseUp.call(this)},_drawShape:function(n){this._shape?this._shape.setBounds(new L.LatLngBounds(this._startLatLng,n)):(this._shape=new L.Rectangle(new L.LatLngBounds(this._startLatLng,n),this.options.shapeOptions),this._map.addLayer(this._shape))},_fireCreatedEvent:function(){var n=new L.Rectangle(this._shape.getBounds(),this.options.shapeOptions);L.Draw.SimpleShape.prototype._fireCreatedEvent.call(this,n)},_getTooltipText:function(){var n,r,h,f=L.Draw.SimpleShape.prototype._getTooltipText.call(this),m=this._shape,_=this.options.showArea;return m&&(n=this._shape._defaultShape?this._shape._defaultShape():this._shape.getLatLngs(),r=L.GeometryUtil.geodesicArea(n),h=_?L.GeometryUtil.readableArea(r,this.options.metric):""),{text:f.text,subtext:h}}}),L.Draw.Marker=L.Draw.Feature.extend({statics:{TYPE:"marker"},options:{icon:new L.Icon.Default,repeatMode:!1,zIndexOffset:2e3},initialize:function(n,r){this.type=L.Draw.Marker.TYPE,this._initialLabelText=L.drawLocal.draw.handlers.marker.tooltip.start,L.Draw.Feature.prototype.initialize.call(this,n,r)},addHooks:function(){L.Draw.Feature.prototype.addHooks.call(this),this._map&&(this._tooltip.updateContent({text:this._initialLabelText}),this._mouseMarker||(this._mouseMarker=L.marker(this._map.getCenter(),{icon:L.divIcon({className:"leaflet-mouse-marker",iconAnchor:[20,20],iconSize:[40,40]}),opacity:0,zIndexOffset:this.options.zIndexOffset})),this._mouseMarker.on("click",this._onClick,this).addTo(this._map),this._map.on("mousemove",this._onMouseMove,this),this._map.on("click",this._onTouch,this))},removeHooks:function(){L.Draw.Feature.prototype.removeHooks.call(this),this._map&&(this._map.off("click",this._onClick,this).off("click",this._onTouch,this),this._marker&&(this._marker.off("click",this._onClick,this),this._map.removeLayer(this._marker),delete this._marker),this._mouseMarker.off("click",this._onClick,this),this._map.removeLayer(this._mouseMarker),delete this._mouseMarker,this._map.off("mousemove",this._onMouseMove,this))},_onMouseMove:function(n){var r=n.latlng;this._tooltip.updatePosition(r),this._mouseMarker.setLatLng(r),this._marker?(r=this._mouseMarker.getLatLng(),this._marker.setLatLng(r)):(this._marker=this._createMarker(r),this._marker.on("click",this._onClick,this),this._map.on("click",this._onClick,this).addLayer(this._marker))},_createMarker:function(n){return new L.Marker(n,{icon:this.options.icon,zIndexOffset:this.options.zIndexOffset})},_onClick:function(){this._fireCreatedEvent(),this.disable(),this.options.repeatMode&&this.enable()},_onTouch:function(n){this._onMouseMove(n),this._onClick()},_fireCreatedEvent:function(){var n=new L.Marker.Touch(this._marker.getLatLng(),{icon:this.options.icon});L.Draw.Feature.prototype._fireCreatedEvent.call(this,n)}}),L.Draw.CircleMarker=L.Draw.Marker.extend({statics:{TYPE:"circlemarker"},options:{stroke:!0,color:"#3388ff",weight:4,opacity:.5,fill:!0,fillColor:null,fillOpacity:.2,clickable:!0,zIndexOffset:2e3},initialize:function(n,r){this.type=L.Draw.CircleMarker.TYPE,this._initialLabelText=L.drawLocal.draw.handlers.circlemarker.tooltip.start,L.Draw.Feature.prototype.initialize.call(this,n,r)},_fireCreatedEvent:function(){var n=new L.CircleMarker(this._marker.getLatLng(),this.options);L.Draw.Feature.prototype._fireCreatedEvent.call(this,n)},_createMarker:function(n){return new L.CircleMarker(n,this.options)}}),L.Draw.Circle=L.Draw.SimpleShape.extend({statics:{TYPE:"circle"},options:{shapeOptions:{stroke:!0,color:"#3388ff",weight:4,opacity:.5,fill:!0,fillColor:null,fillOpacity:.2,clickable:!0},showRadius:!0,metric:!0,feet:!0,nautic:!1},initialize:function(n,r){this.type=L.Draw.Circle.TYPE,this._initialLabelText=L.drawLocal.draw.handlers.circle.tooltip.start,L.Draw.SimpleShape.prototype.initialize.call(this,n,r)},_drawShape:function(n){if(L.GeometryUtil.isVersion07x())var r=this._startLatLng.distanceTo(n);else var r=this._map.distance(this._startLatLng,n);this._shape?this._shape.setRadius(r):(this._shape=new L.Circle(this._startLatLng,r,this.options.shapeOptions),this._map.addLayer(this._shape))},_fireCreatedEvent:function(){var n=new L.Circle(this._startLatLng,this._shape.getRadius(),this.options.shapeOptions);L.Draw.SimpleShape.prototype._fireCreatedEvent.call(this,n)},_onMouseMove:function(n){var r,h=n.latlng,f=this.options.showRadius,m=this.options.metric;if(this._tooltip.updatePosition(h),this._isDrawing){this._drawShape(h),r=this._shape.getRadius().toFixed(1);var _="";f&&(_=L.drawLocal.draw.handlers.circle.radius+": "+L.GeometryUtil.readableDistance(r,m,this.options.feet,this.options.nautic)),this._tooltip.updateContent({text:this._endLabelText,subtext:_})}}}),L.Edit=L.Edit||{},L.Edit.Marker=L.Handler.extend({initialize:function(n,r){this._marker=n,L.setOptions(this,r)},addHooks:function(){var n=this._marker;n.dragging.enable(),n.on("dragend",this._onDragEnd,n),this._toggleMarkerHighlight()},removeHooks:function(){var n=this._marker;n.dragging.disable(),n.off("dragend",this._onDragEnd,n),this._toggleMarkerHighlight()},_onDragEnd:function(n){var r=n.target;r.edited=!0,this._map.fire(L.Draw.Event.EDITMOVE,{layer:r})},_toggleMarkerHighlight:function(){var n=this._marker._icon;n&&(n.style.display="none",L.DomUtil.hasClass(n,"leaflet-edit-marker-selected")?(L.DomUtil.removeClass(n,"leaflet-edit-marker-selected"),this._offsetMarker(n,-4)):(L.DomUtil.addClass(n,"leaflet-edit-marker-selected"),this._offsetMarker(n,4)),n.style.display="")},_offsetMarker:function(n,r){var h=parseInt(n.style.marginTop,10)-r,f=parseInt(n.style.marginLeft,10)-r;n.style.marginTop=h+"px",n.style.marginLeft=f+"px"}}),L.Marker.addInitHook(function(){L.Edit.Marker&&(this.editing=new L.Edit.Marker(this),this.options.editable&&this.editing.enable())}),L.Edit=L.Edit||{},L.Edit.Poly=L.Handler.extend({initialize:function(n){this.latlngs=[n._latlngs],n._holes&&(this.latlngs=this.latlngs.concat(n._holes)),this._poly=n,this._poly.on("revert-edited",this._updateLatLngs,this)},_defaultShape:function(){return L.Polyline._flat?L.Polyline._flat(this._poly._latlngs)?this._poly._latlngs:this._poly._latlngs[0]:this._poly._latlngs},_eachVertexHandler:function(n){for(var r=0;r<this._verticesHandlers.length;r++)n(this._verticesHandlers[r])},addHooks:function(){this._initHandlers(),this._eachVertexHandler(function(n){n.addHooks()})},removeHooks:function(){this._eachVertexHandler(function(n){n.removeHooks()})},updateMarkers:function(){this._eachVertexHandler(function(n){n.updateMarkers()})},_initHandlers:function(){this._verticesHandlers=[];for(var n=0;n<this.latlngs.length;n++)this._verticesHandlers.push(new L.Edit.PolyVerticesEdit(this._poly,this.latlngs[n],this._poly.options.poly))},_updateLatLngs:function(n){this.latlngs=[n.layer._latlngs],n.layer._holes&&(this.latlngs=this.latlngs.concat(n.layer._holes))}}),L.Edit.PolyVerticesEdit=L.Handler.extend({options:{icon:new L.DivIcon({iconSize:new L.Point(8,8),className:"leaflet-div-icon leaflet-editing-icon"}),touchIcon:new L.DivIcon({iconSize:new L.Point(20,20),className:"leaflet-div-icon leaflet-editing-icon leaflet-touch-icon"}),drawError:{color:"#b00b00",timeout:1e3}},initialize:function(n,r,h){L.Browser.touch&&(this.options.icon=this.options.touchIcon),this._poly=n,h&&h.drawError&&(h.drawError=L.Util.extend({},this.options.drawError,h.drawError)),this._latlngs=r,L.setOptions(this,h)},_defaultShape:function(){return L.Polyline._flat?L.Polyline._flat(this._latlngs)?this._latlngs:this._latlngs[0]:this._latlngs},addHooks:function(){var n=this._poly,r=n._path;n instanceof L.Polygon||(n.options.fill=!1,n.options.editing&&(n.options.editing.fill=!1)),r&&n.options.editing&&n.options.editing.className&&(n.options.original.className&&n.options.original.className.split(" ").forEach(function(h){L.DomUtil.removeClass(r,h)}),n.options.editing.className.split(" ").forEach(function(h){L.DomUtil.addClass(r,h)})),n.setStyle(n.options.editing),this._poly._map&&(this._map=this._poly._map,this._markerGroup||this._initMarkers(),this._poly._map.addLayer(this._markerGroup))},removeHooks:function(){var n=this._poly,r=n._path;r&&n.options.editing&&n.options.editing.className&&(n.options.editing.className.split(" ").forEach(function(h){L.DomUtil.removeClass(r,h)}),n.options.original.className&&n.options.original.className.split(" ").forEach(function(h){L.DomUtil.addClass(r,h)})),n.setStyle(n.options.original),n._map&&(n._map.removeLayer(this._markerGroup),delete this._markerGroup,delete this._markers)},updateMarkers:function(){this._markerGroup.clearLayers(),this._initMarkers()},_initMarkers:function(){this._markerGroup||(this._markerGroup=new L.LayerGroup),this._markers=[];var n,r,h,f,m=this._defaultShape();for(n=0,h=m.length;n<h;n++)f=this._createMarker(m[n],n),f.on("click",this._onMarkerClick,this),f.on("contextmenu",this._onContextMenu,this),this._markers.push(f);var _,v;for(n=0,r=h-1;n<h;r=n++)(n!==0||L.Polygon&&this._poly instanceof L.Polygon)&&(_=this._markers[r],v=this._markers[n],this._createMiddleMarker(_,v),this._updatePrevNext(_,v))},_createMarker:function(n,r){var h=new L.Marker.Touch(n,{draggable:!0,icon:this.options.icon});return h._origLatLng=n,h._index=r,h.on("dragstart",this._onMarkerDragStart,this).on("drag",this._onMarkerDrag,this).on("dragend",this._fireEdit,this).on("touchmove",this._onTouchMove,this).on("touchend",this._fireEdit,this).on("MSPointerMove",this._onTouchMove,this).on("MSPointerUp",this._fireEdit,this),this._markerGroup.addLayer(h),h},_onMarkerDragStart:function(){this._poly.fire("editstart")},_spliceLatLngs:function(){var n=this._defaultShape(),r=[].splice.apply(n,arguments);return this._poly._convertLatLngs(n,!0),this._poly.redraw(),r},_removeMarker:function(n){var r=n._index;this._markerGroup.removeLayer(n),this._markers.splice(r,1),this._spliceLatLngs(r,1),this._updateIndexes(r,-1),n.off("dragstart",this._onMarkerDragStart,this).off("drag",this._onMarkerDrag,this).off("dragend",this._fireEdit,this).off("touchmove",this._onMarkerDrag,this).off("touchend",this._fireEdit,this).off("click",this._onMarkerClick,this).off("MSPointerMove",this._onTouchMove,this).off("MSPointerUp",this._fireEdit,this)},_fireEdit:function(){this._poly.edited=!0,this._poly.fire("edit"),this._poly._map.fire(L.Draw.Event.EDITVERTEX,{layers:this._markerGroup,poly:this._poly})},_onMarkerDrag:function(n){var r=n.target,h=this._poly,f=L.LatLngUtil.cloneLatLng(r._origLatLng);if(L.extend(r._origLatLng,r._latlng),h.options.poly){var m=h._map._editTooltip;if(!h.options.poly.allowIntersection&&h.intersects()){L.extend(r._origLatLng,f),r.setLatLng(f);var _=h.options.color;h.setStyle({color:this.options.drawError.color}),m&&m.updateContent({text:L.drawLocal.draw.handlers.polyline.error}),setTimeout(function(){h.setStyle({color:_}),m&&m.updateContent({text:L.drawLocal.edit.handlers.edit.tooltip.text,subtext:L.drawLocal.edit.handlers.edit.tooltip.subtext})},1e3)}}r._middleLeft&&r._middleLeft.setLatLng(this._getMiddleLatLng(r._prev,r)),r._middleRight&&r._middleRight.setLatLng(this._getMiddleLatLng(r,r._next)),this._poly._bounds._southWest=L.latLng(1/0,1/0),this._poly._bounds._northEast=L.latLng(-1/0,-1/0);var v=this._poly.getLatLngs();this._poly._convertLatLngs(v,!0),this._poly.redraw(),this._poly.fire("editdrag")},_onMarkerClick:function(n){var r=L.Polygon&&this._poly instanceof L.Polygon?4:3,h=n.target;this._defaultShape().length<r||(this._removeMarker(h),this._updatePrevNext(h._prev,h._next),h._middleLeft&&this._markerGroup.removeLayer(h._middleLeft),h._middleRight&&this._markerGroup.removeLayer(h._middleRight),h._prev&&h._next?this._createMiddleMarker(h._prev,h._next):h._prev?h._next||(h._prev._middleRight=null):h._next._middleLeft=null,this._fireEdit())},_onContextMenu:function(n){var r=n.target;this._poly,this._poly._map.fire(L.Draw.Event.MARKERCONTEXT,{marker:r,layers:this._markerGroup,poly:this._poly}),L.DomEvent.stopPropagation},_onTouchMove:function(n){var r=this._map.mouseEventToLayerPoint(n.originalEvent.touches[0]),h=this._map.layerPointToLatLng(r),f=n.target;L.extend(f._origLatLng,h),f._middleLeft&&f._middleLeft.setLatLng(this._getMiddleLatLng(f._prev,f)),f._middleRight&&f._middleRight.setLatLng(this._getMiddleLatLng(f,f._next)),this._poly.redraw(),this.updateMarkers()},_updateIndexes:function(n,r){this._markerGroup.eachLayer(function(h){h._index>n&&(h._index+=r)})},_createMiddleMarker:function(n,r){var h,f,m,_=this._getMiddleLatLng(n,r),v=this._createMarker(_);v.setOpacity(.6),n._middleRight=r._middleLeft=v,f=function(){v.off("touchmove",f,this);var w=r._index;v._index=w,v.off("click",h,this).on("click",this._onMarkerClick,this),_.lat=v.getLatLng().lat,_.lng=v.getLatLng().lng,this._spliceLatLngs(w,0,_),this._markers.splice(w,0,v),v.setOpacity(1),this._updateIndexes(w,1),r._index++,this._updatePrevNext(n,v),this._updatePrevNext(v,r),this._poly.fire("editstart")},m=function(){v.off("dragstart",f,this),v.off("dragend",m,this),v.off("touchmove",f,this),this._createMiddleMarker(n,v),this._createMiddleMarker(v,r)},h=function(){f.call(this),m.call(this),this._fireEdit()},v.on("click",h,this).on("dragstart",f,this).on("dragend",m,this).on("touchmove",f,this),this._markerGroup.addLayer(v)},_updatePrevNext:function(n,r){n&&(n._next=r),r&&(r._prev=n)},_getMiddleLatLng:function(n,r){var h=this._poly._map,f=h.project(n.getLatLng()),m=h.project(r.getLatLng());return h.unproject(f._add(m)._divideBy(2))}}),L.Polyline.addInitHook(function(){this.editing||(L.Edit.Poly&&(this.editing=new L.Edit.Poly(this),this.options.editable&&this.editing.enable()),this.on("add",function(){this.editing&&this.editing.enabled()&&this.editing.addHooks()}),this.on("remove",function(){this.editing&&this.editing.enabled()&&this.editing.removeHooks()}))}),L.Edit=L.Edit||{},L.Edit.SimpleShape=L.Handler.extend({options:{moveIcon:new L.DivIcon({iconSize:new L.Point(8,8),className:"leaflet-div-icon leaflet-editing-icon leaflet-edit-move"}),resizeIcon:new L.DivIcon({iconSize:new L.Point(8,8),className:"leaflet-div-icon leaflet-editing-icon leaflet-edit-resize"}),touchMoveIcon:new L.DivIcon({iconSize:new L.Point(20,20),className:"leaflet-div-icon leaflet-editing-icon leaflet-edit-move leaflet-touch-icon"}),touchResizeIcon:new L.DivIcon({iconSize:new L.Point(20,20),className:"leaflet-div-icon leaflet-editing-icon leaflet-edit-resize leaflet-touch-icon"})},initialize:function(n,r){L.Browser.touch&&(this.options.moveIcon=this.options.touchMoveIcon,this.options.resizeIcon=this.options.touchResizeIcon),this._shape=n,L.Util.setOptions(this,r)},addHooks:function(){var n=this._shape;this._shape._map&&(this._map=this._shape._map,n.setStyle(n.options.editing),n._map&&(this._map=n._map,this._markerGroup||this._initMarkers(),this._map.addLayer(this._markerGroup)))},removeHooks:function(){var n=this._shape;if(n.setStyle(n.options.original),n._map){this._unbindMarker(this._moveMarker);for(var r=0,h=this._resizeMarkers.length;r<h;r++)this._unbindMarker(this._resizeMarkers[r]);this._resizeMarkers=null,this._map.removeLayer(this._markerGroup),delete this._markerGroup}this._map=null},updateMarkers:function(){this._markerGroup.clearLayers(),this._initMarkers()},_initMarkers:function(){this._markerGroup||(this._markerGroup=new L.LayerGroup),this._createMoveMarker(),this._createResizeMarker()},_createMoveMarker:function(){},_createResizeMarker:function(){},_createMarker:function(n,r){var h=new L.Marker.Touch(n,{draggable:!0,icon:r,zIndexOffset:10});return this._bindMarker(h),this._markerGroup.addLayer(h),h},_bindMarker:function(n){n.on("dragstart",this._onMarkerDragStart,this).on("drag",this._onMarkerDrag,this).on("dragend",this._onMarkerDragEnd,this).on("touchstart",this._onTouchStart,this).on("touchmove",this._onTouchMove,this).on("MSPointerMove",this._onTouchMove,this).on("touchend",this._onTouchEnd,this).on("MSPointerUp",this._onTouchEnd,this)},_unbindMarker:function(n){n.off("dragstart",this._onMarkerDragStart,this).off("drag",this._onMarkerDrag,this).off("dragend",this._onMarkerDragEnd,this).off("touchstart",this._onTouchStart,this).off("touchmove",this._onTouchMove,this).off("MSPointerMove",this._onTouchMove,this).off("touchend",this._onTouchEnd,this).off("MSPointerUp",this._onTouchEnd,this)},_onMarkerDragStart:function(n){n.target.setOpacity(0),this._shape.fire("editstart")},_fireEdit:function(){this._shape.edited=!0,this._shape.fire("edit")},_onMarkerDrag:function(n){var r=n.target,h=r.getLatLng();r===this._moveMarker?this._move(h):this._resize(h),this._shape.redraw(),this._shape.fire("editdrag")},_onMarkerDragEnd:function(n){n.target.setOpacity(1),this._fireEdit()},_onTouchStart:function(n){if(L.Edit.SimpleShape.prototype._onMarkerDragStart.call(this,n),typeof this._getCorners=="function"){var r=this._getCorners(),h=n.target,f=h._cornerIndex;h.setOpacity(0),this._oppositeCorner=r[(f+2)%4],this._toggleCornerMarkers(0,f)}this._shape.fire("editstart")},_onTouchMove:function(n){var r=this._map.mouseEventToLayerPoint(n.originalEvent.touches[0]),h=this._map.layerPointToLatLng(r);return n.target===this._moveMarker?this._move(h):this._resize(h),this._shape.redraw(),!1},_onTouchEnd:function(n){n.target.setOpacity(1),this.updateMarkers(),this._fireEdit()},_move:function(){},_resize:function(){}}),L.Edit=L.Edit||{},L.Edit.Rectangle=L.Edit.SimpleShape.extend({_createMoveMarker:function(){var n=this._shape.getBounds(),r=n.getCenter();this._moveMarker=this._createMarker(r,this.options.moveIcon)},_createResizeMarker:function(){var n=this._getCorners();this._resizeMarkers=[];for(var r=0,h=n.length;r<h;r++)this._resizeMarkers.push(this._createMarker(n[r],this.options.resizeIcon)),this._resizeMarkers[r]._cornerIndex=r},_onMarkerDragStart:function(n){L.Edit.SimpleShape.prototype._onMarkerDragStart.call(this,n);var r=this._getCorners(),h=n.target,f=h._cornerIndex;this._oppositeCorner=r[(f+2)%4],this._toggleCornerMarkers(0,f)},_onMarkerDragEnd:function(n){var r,h,f=n.target;f===this._moveMarker&&(r=this._shape.getBounds(),h=r.getCenter(),f.setLatLng(h)),this._toggleCornerMarkers(1),this._repositionCornerMarkers(),L.Edit.SimpleShape.prototype._onMarkerDragEnd.call(this,n)},_move:function(n){for(var r,h=this._shape._defaultShape?this._shape._defaultShape():this._shape.getLatLngs(),f=this._shape.getBounds(),m=f.getCenter(),_=[],v=0,w=h.length;v<w;v++)r=[h[v].lat-m.lat,h[v].lng-m.lng],_.push([n.lat+r[0],n.lng+r[1]]);this._shape.setLatLngs(_),this._repositionCornerMarkers(),this._map.fire(L.Draw.Event.EDITMOVE,{layer:this._shape})},_resize:function(n){var r;this._shape.setBounds(L.latLngBounds(n,this._oppositeCorner)),r=this._shape.getBounds(),this._moveMarker.setLatLng(r.getCenter()),this._map.fire(L.Draw.Event.EDITRESIZE,{layer:this._shape})},_getCorners:function(){var n=this._shape.getBounds();return[n.getNorthWest(),n.getNorthEast(),n.getSouthEast(),n.getSouthWest()]},_toggleCornerMarkers:function(n){for(var r=0,h=this._resizeMarkers.length;r<h;r++)this._resizeMarkers[r].setOpacity(n)},_repositionCornerMarkers:function(){for(var n=this._getCorners(),r=0,h=this._resizeMarkers.length;r<h;r++)this._resizeMarkers[r].setLatLng(n[r])}}),L.Rectangle.addInitHook(function(){L.Edit.Rectangle&&(this.editing=new L.Edit.Rectangle(this),this.options.editable&&this.editing.enable())}),L.Edit=L.Edit||{},L.Edit.CircleMarker=L.Edit.SimpleShape.extend({_createMoveMarker:function(){var n=this._shape.getLatLng();this._moveMarker=this._createMarker(n,this.options.moveIcon)},_createResizeMarker:function(){this._resizeMarkers=[]},_move:function(n){if(this._resizeMarkers.length){var r=this._getResizeMarkerPoint(n);this._resizeMarkers[0].setLatLng(r)}this._shape.setLatLng(n),this._map.fire(L.Draw.Event.EDITMOVE,{layer:this._shape})}}),L.CircleMarker.addInitHook(function(){L.Edit.CircleMarker&&(this.editing=new L.Edit.CircleMarker(this),this.options.editable&&this.editing.enable()),this.on("add",function(){this.editing&&this.editing.enabled()&&this.editing.addHooks()}),this.on("remove",function(){this.editing&&this.editing.enabled()&&this.editing.removeHooks()})}),L.Edit=L.Edit||{},L.Edit.Circle=L.Edit.CircleMarker.extend({_createResizeMarker:function(){var n=this._shape.getLatLng(),r=this._getResizeMarkerPoint(n);this._resizeMarkers=[],this._resizeMarkers.push(this._createMarker(r,this.options.resizeIcon))},_getResizeMarkerPoint:function(n){var r=this._shape._radius*Math.cos(Math.PI/4),h=this._map.project(n);return this._map.unproject([h.x+r,h.y-r])},_resize:function(n){var r=this._moveMarker.getLatLng();L.GeometryUtil.isVersion07x()?radius=r.distanceTo(n):radius=this._map.distance(r,n),this._shape.setRadius(radius),this._map.editTooltip&&this._map._editTooltip.updateContent({text:L.drawLocal.edit.handlers.edit.tooltip.subtext+"<br />"+L.drawLocal.edit.handlers.edit.tooltip.text,subtext:L.drawLocal.draw.handlers.circle.radius+": "+L.GeometryUtil.readableDistance(radius,!0,this.options.feet,this.options.nautic)}),this._shape.setRadius(radius),this._map.fire(L.Draw.Event.EDITRESIZE,{layer:this._shape})}}),L.Circle.addInitHook(function(){L.Edit.Circle&&(this.editing=new L.Edit.Circle(this),this.options.editable&&this.editing.enable())}),L.Map.mergeOptions({touchExtend:!0}),L.Map.TouchExtend=L.Handler.extend({initialize:function(n){this._map=n,this._container=n._container,this._pane=n._panes.overlayPane},addHooks:function(){L.DomEvent.on(this._container,"touchstart",this._onTouchStart,this),L.DomEvent.on(this._container,"touchend",this._onTouchEnd,this),L.DomEvent.on(this._container,"touchmove",this._onTouchMove,this),this._detectIE()?(L.DomEvent.on(this._container,"MSPointerDown",this._onTouchStart,this),L.DomEvent.on(this._container,"MSPointerUp",this._onTouchEnd,this),L.DomEvent.on(this._container,"MSPointerMove",this._onTouchMove,this),L.DomEvent.on(this._container,"MSPointerCancel",this._onTouchCancel,this)):(L.DomEvent.on(this._container,"touchcancel",this._onTouchCancel,this),L.DomEvent.on(this._container,"touchleave",this._onTouchLeave,this))},removeHooks:function(){L.DomEvent.off(this._container,"touchstart",this._onTouchStart,this),L.DomEvent.off(this._container,"touchend",this._onTouchEnd,this),L.DomEvent.off(this._container,"touchmove",this._onTouchMove,this),this._detectIE()?(L.DomEvent.off(this._container,"MSPointerDown",this._onTouchStart,this),L.DomEvent.off(this._container,"MSPointerUp",this._onTouchEnd,this),L.DomEvent.off(this._container,"MSPointerMove",this._onTouchMove,this),L.DomEvent.off(this._container,"MSPointerCancel",this._onTouchCancel,this)):(L.DomEvent.off(this._container,"touchcancel",this._onTouchCancel,this),L.DomEvent.off(this._container,"touchleave",this._onTouchLeave,this))},_touchEvent:function(n,r){var h={};if(n.touches!==void 0){if(!n.touches.length)return;h=n.touches[0]}else if(n.pointerType!=="touch"||(h=n,!this._filterClick(n)))return;var f=this._map.mouseEventToContainerPoint(h),m=this._map.mouseEventToLayerPoint(h),_=this._map.layerPointToLatLng(m);this._map.fire(r,{latlng:_,layerPoint:m,containerPoint:f,pageX:h.pageX,pageY:h.pageY,originalEvent:n})},_filterClick:function(n){var r=n.timeStamp||n.originalEvent.timeStamp,h=L.DomEvent._lastClick&&r-L.DomEvent._lastClick;return h&&h>100&&h<500||n.target._simulatedClick&&!n._simulated?(L.DomEvent.stop(n),!1):(L.DomEvent._lastClick=r,!0)},_onTouchStart:function(n){this._map._loaded&&this._touchEvent(n,"touchstart")},_onTouchEnd:function(n){this._map._loaded&&this._touchEvent(n,"touchend")},_onTouchCancel:function(n){if(this._map._loaded){var r="touchcancel";this._detectIE()&&(r="pointercancel"),this._touchEvent(n,r)}},_onTouchLeave:function(n){this._map._loaded&&this._touchEvent(n,"touchleave")},_onTouchMove:function(n){this._map._loaded&&this._touchEvent(n,"touchmove")},_detectIE:function(){var n=s.navigator.userAgent,r=n.indexOf("MSIE ");if(r>0)return parseInt(n.substring(r+5,n.indexOf(".",r)),10);if(n.indexOf("Trident/")>0){var h=n.indexOf("rv:");return parseInt(n.substring(h+3,n.indexOf(".",h)),10)}var f=n.indexOf("Edge/");return f>0&&parseInt(n.substring(f+5,n.indexOf(".",f)),10)}}),L.Map.addInitHook("addHandler","touchExtend",L.Map.TouchExtend),L.Marker.Touch=L.Marker.extend({_initInteraction:function(){return this.addInteractiveTarget?L.Marker.prototype._initInteraction.apply(this):this._initInteractionLegacy()},_initInteractionLegacy:function(){if(this.options.clickable){var n=this._icon,r=["dblclick","mousedown","mouseover","mouseout","contextmenu","touchstart","touchend","touchmove"];this._detectIE?r.concat(["MSPointerDown","MSPointerUp","MSPointerMove","MSPointerCancel"]):r.concat(["touchcancel"]),L.DomUtil.addClass(n,"leaflet-clickable"),L.DomEvent.on(n,"click",this._onMouseClick,this),L.DomEvent.on(n,"keypress",this._onKeyPress,this);for(var h=0;h<r.length;h++)L.DomEvent.on(n,r[h],this._fireMouseEvent,this);L.Handler.MarkerDrag&&(this.dragging=new L.Handler.MarkerDrag(this),this.options.draggable&&this.dragging.enable())}},_detectIE:function(){var n=s.navigator.userAgent,r=n.indexOf("MSIE ");if(r>0)return parseInt(n.substring(r+5,n.indexOf(".",r)),10);if(n.indexOf("Trident/")>0){var h=n.indexOf("rv:");return parseInt(n.substring(h+3,n.indexOf(".",h)),10)}var f=n.indexOf("Edge/");return f>0&&parseInt(n.substring(f+5,n.indexOf(".",f)),10)}}),L.LatLngUtil={cloneLatLngs:function(n){for(var r=[],h=0,f=n.length;h<f;h++)Array.isArray(n[h])?r.push(L.LatLngUtil.cloneLatLngs(n[h])):r.push(this.cloneLatLng(n[h]));return r},cloneLatLng:function(n){return L.latLng(n.lat,n.lng)}},function(){var n={km:2,ha:2,m:0,mi:2,ac:2,yd:0,ft:0,nm:2};L.GeometryUtil=L.extend(L.GeometryUtil||{},{geodesicArea:function(r){var h,f,m=r.length,_=0,v=Math.PI/180;if(m>2){for(var w=0;w<m;w++)h=r[w],f=r[(w+1)%m],_+=(f.lng-h.lng)*v*(2+Math.sin(h.lat*v)+Math.sin(f.lat*v));_=6378137*_*6378137/2}return Math.abs(_)},formattedNumber:function(r,h){var f=parseFloat(r).toFixed(h),m=L.drawLocal.format&&L.drawLocal.format.numeric,_=m&&m.delimiters,v=_&&_.thousands,w=_&&_.decimal;if(v||w){var E=f.split(".");f=v?E[0].replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+v):E[0],w=w||".",E.length>1&&(f=f+w+E[1])}return f},readableArea:function(r,h,v){var m,_,v=L.Util.extend({},n,v);return h?(_=["ha","m"],type=typeof h,type==="string"?_=[h]:type!=="boolean"&&(_=h),m=r>=1e6&&_.indexOf("km")!==-1?L.GeometryUtil.formattedNumber(1e-6*r,v.km)+" km²":r>=1e4&&_.indexOf("ha")!==-1?L.GeometryUtil.formattedNumber(1e-4*r,v.ha)+" ha":L.GeometryUtil.formattedNumber(r,v.m)+" m²"):(r/=.836127,m=r>=3097600?L.GeometryUtil.formattedNumber(r/3097600,v.mi)+" mi²":r>=4840?L.GeometryUtil.formattedNumber(r/4840,v.ac)+" acres":L.GeometryUtil.formattedNumber(r,v.yd)+" yd²"),m},readableDistance:function(r,h,f,m,w){var v,w=L.Util.extend({},n,w);switch(h?typeof h=="string"?h:"metric":f?"feet":m?"nauticalMile":"yards"){case"metric":v=r>1e3?L.GeometryUtil.formattedNumber(r/1e3,w.km)+" km":L.GeometryUtil.formattedNumber(r,w.m)+" m";break;case"feet":r*=3.28083,v=L.GeometryUtil.formattedNumber(r,w.ft)+" ft";break;case"nauticalMile":r*=.53996,v=L.GeometryUtil.formattedNumber(r/1e3,w.nm)+" nm";break;case"yards":default:r*=1.09361,v=r>1760?L.GeometryUtil.formattedNumber(r/1760,w.mi)+" miles":L.GeometryUtil.formattedNumber(r,w.yd)+" yd"}return v},isVersion07x:function(){var r=L.version.split(".");return parseInt(r[0],10)===0&&parseInt(r[1],10)===7}})}(),L.Util.extend(L.LineUtil,{segmentsIntersect:function(n,r,h,f){return this._checkCounterclockwise(n,h,f)!==this._checkCounterclockwise(r,h,f)&&this._checkCounterclockwise(n,r,h)!==this._checkCounterclockwise(n,r,f)},_checkCounterclockwise:function(n,r,h){return(h.y-n.y)*(r.x-n.x)>(r.y-n.y)*(h.x-n.x)}}),L.Polyline.include({intersects:function(){var n,r,h,f=this._getProjectedPoints(),m=f?f.length:0;if(this._tooFewPointsForIntersection())return!1;for(n=m-1;n>=3;n--)if(r=f[n-1],h=f[n],this._lineSegmentsIntersectsRange(r,h,n-2))return!0;return!1},newLatLngIntersects:function(n,r){return!!this._map&&this.newPointIntersects(this._map.latLngToLayerPoint(n),r)},newPointIntersects:function(n,r){var h=this._getProjectedPoints(),f=h?h.length:0,m=h?h[f-1]:null,_=f-2;return!this._tooFewPointsForIntersection(1)&&this._lineSegmentsIntersectsRange(m,n,_,r?1:0)},_tooFewPointsForIntersection:function(n){var r=this._getProjectedPoints(),h=r?r.length:0;return h+=n||0,!r||h<=3},_lineSegmentsIntersectsRange:function(n,r,h,f){var m,_,v=this._getProjectedPoints();f=f||0;for(var w=h;w>f;w--)if(m=v[w-1],_=v[w],L.LineUtil.segmentsIntersect(n,r,m,_))return!0;return!1},_getProjectedPoints:function(){if(!this._defaultShape)return this._originalPoints;for(var n=[],r=this._defaultShape(),h=0;h<r.length;h++)n.push(this._map.latLngToLayerPoint(r[h]));return n}}),L.Polygon.include({intersects:function(){var n,r,h,f,m=this._getProjectedPoints();return!this._tooFewPointsForIntersection()&&(!!L.Polyline.prototype.intersects.call(this)||(n=m.length,r=m[0],h=m[n-1],f=n-2,this._lineSegmentsIntersectsRange(h,r,f,1)))}}),L.Control.Draw=L.Control.extend({options:{position:"topleft",draw:{},edit:!1},initialize:function(n){if(L.version<"0.7")throw new Error("Leaflet.draw 0.2.3+ requires Leaflet 0.7.0+. Download latest from https://github.com/Leaflet/Leaflet/");L.Control.prototype.initialize.call(this,n);var r;this._toolbars={},L.DrawToolbar&&this.options.draw&&(r=new L.DrawToolbar(this.options.draw),this._toolbars[L.DrawToolbar.TYPE]=r,this._toolbars[L.DrawToolbar.TYPE].on("enable",this._toolbarEnabled,this)),L.EditToolbar&&this.options.edit&&(r=new L.EditToolbar(this.options.edit),this._toolbars[L.EditToolbar.TYPE]=r,this._toolbars[L.EditToolbar.TYPE].on("enable",this._toolbarEnabled,this)),L.toolbar=this},onAdd:function(n){var r,h=L.DomUtil.create("div","leaflet-draw"),f=!1;for(var m in this._toolbars)this._toolbars.hasOwnProperty(m)&&(r=this._toolbars[m].addToolbar(n))&&(f||(L.DomUtil.hasClass(r,"leaflet-draw-toolbar-top")||L.DomUtil.addClass(r.childNodes[0],"leaflet-draw-toolbar-top"),f=!0),h.appendChild(r));return h},onRemove:function(){for(var n in this._toolbars)this._toolbars.hasOwnProperty(n)&&this._toolbars[n].removeToolbar()},setDrawingOptions:function(n){for(var r in this._toolbars)this._toolbars[r]instanceof L.DrawToolbar&&this._toolbars[r].setOptions(n)},_toolbarEnabled:function(n){var r=n.target;for(var h in this._toolbars)this._toolbars[h]!==r&&this._toolbars[h].disable()}}),L.Map.mergeOptions({drawControlTooltips:!0,drawControl:!1}),L.Map.addInitHook(function(){this.options.drawControl&&(this.drawControl=new L.Control.Draw,this.addControl(this.drawControl))}),L.Toolbar=L.Class.extend({initialize:function(n){L.setOptions(this,n),this._modes={},this._actionButtons=[],this._activeMode=null;var r=L.version.split(".");parseInt(r[0],10)===1&&parseInt(r[1],10)>=2?L.Toolbar.include(L.Evented.prototype):L.Toolbar.include(L.Mixin.Events)},enabled:function(){return this._activeMode!==null},disable:function(){this.enabled()&&this._activeMode.handler.disable()},addToolbar:function(n){var r,h=L.DomUtil.create("div","leaflet-draw-section"),f=0,m=this._toolbarClass||"",_=this.getModeHandlers(n);for(this._toolbarContainer=L.DomUtil.create("div","leaflet-draw-toolbar leaflet-bar"),this._map=n,r=0;r<_.length;r++)_[r].enabled&&this._initModeHandler(_[r].handler,this._toolbarContainer,f++,m,_[r].title);if(f)return this._lastButtonIndex=--f,this._actionsContainer=L.DomUtil.create("ul","leaflet-draw-actions"),h.appendChild(this._toolbarContainer),h.appendChild(this._actionsContainer),h},removeToolbar:function(){for(var n in this._modes)this._modes.hasOwnProperty(n)&&(this._disposeButton(this._modes[n].button,this._modes[n].handler.enable,this._modes[n].handler),this._modes[n].handler.disable(),this._modes[n].handler.off("enabled",this._handlerActivated,this).off("disabled",this._handlerDeactivated,this));this._modes={};for(var r=0,h=this._actionButtons.length;r<h;r++)this._disposeButton(this._actionButtons[r].button,this._actionButtons[r].callback,this);this._actionButtons=[],this._actionsContainer=null},_initModeHandler:function(n,r,h,f,m){var _=n.type;this._modes[_]={},this._modes[_].handler=n,this._modes[_].button=this._createButton({type:_,title:m,className:f+"-"+_,container:r,callback:this._modes[_].handler.enable,context:this._modes[_].handler}),this._modes[_].buttonIndex=h,this._modes[_].handler.on("enabled",this._handlerActivated,this).on("disabled",this._handlerDeactivated,this)},_detectIOS:function(){return/iPad|iPhone|iPod/.test(navigator.userAgent)&&!s.MSStream},_createButton:function(n){var r=L.DomUtil.create("a",n.className||"",n.container),h=L.DomUtil.create("span","sr-only",n.container);r.href="#",r.appendChild(h),n.title&&(r.title=n.title,h.innerHTML=n.title),n.text&&(r.innerHTML=n.text,h.innerHTML=n.text);var f=this._detectIOS()?"touchstart":"click";return L.DomEvent.on(r,"click",L.DomEvent.stopPropagation).on(r,"mousedown",L.DomEvent.stopPropagation).on(r,"dblclick",L.DomEvent.stopPropagation).on(r,"touchstart",L.DomEvent.stopPropagation).on(r,"click",L.DomEvent.preventDefault).on(r,f,n.callback,n.context),r},_disposeButton:function(n,r){var h=this._detectIOS()?"touchstart":"click";L.DomEvent.off(n,"click",L.DomEvent.stopPropagation).off(n,"mousedown",L.DomEvent.stopPropagation).off(n,"dblclick",L.DomEvent.stopPropagation).off(n,"touchstart",L.DomEvent.stopPropagation).off(n,"click",L.DomEvent.preventDefault).off(n,h,r)},_handlerActivated:function(n){this.disable(),this._activeMode=this._modes[n.handler],L.DomUtil.addClass(this._activeMode.button,"leaflet-draw-toolbar-button-enabled"),this._showActionsToolbar(),this.fire("enable")},_handlerDeactivated:function(){this._hideActionsToolbar(),L.DomUtil.removeClass(this._activeMode.button,"leaflet-draw-toolbar-button-enabled"),this._activeMode=null,this.fire("disable")},_createActions:function(n){var r,h,f,m,_=this._actionsContainer,v=this.getActions(n),w=v.length;for(h=0,f=this._actionButtons.length;h<f;h++)this._disposeButton(this._actionButtons[h].button,this._actionButtons[h].callback);for(this._actionButtons=[];_.firstChild;)_.removeChild(_.firstChild);for(var E=0;E<w;E++)"enabled"in v[E]&&!v[E].enabled||(r=L.DomUtil.create("li","",_),m=this._createButton({title:v[E].title,text:v[E].text,container:r,callback:v[E].callback,context:v[E].context}),this._actionButtons.push({button:m,callback:v[E].callback}))},_showActionsToolbar:function(){var n=this._activeMode.buttonIndex,r=this._lastButtonIndex,h=this._activeMode.button.offsetTop-1;this._createActions(this._activeMode.handler),this._actionsContainer.style.top=h+"px",n===0&&(L.DomUtil.addClass(this._toolbarContainer,"leaflet-draw-toolbar-notop"),L.DomUtil.addClass(this._actionsContainer,"leaflet-draw-actions-top")),n===r&&(L.DomUtil.addClass(this._toolbarContainer,"leaflet-draw-toolbar-nobottom"),L.DomUtil.addClass(this._actionsContainer,"leaflet-draw-actions-bottom")),this._actionsContainer.style.display="block",this._map.fire(L.Draw.Event.TOOLBAROPENED)},_hideActionsToolbar:function(){this._actionsContainer.style.display="none",L.DomUtil.removeClass(this._toolbarContainer,"leaflet-draw-toolbar-notop"),L.DomUtil.removeClass(this._toolbarContainer,"leaflet-draw-toolbar-nobottom"),L.DomUtil.removeClass(this._actionsContainer,"leaflet-draw-actions-top"),L.DomUtil.removeClass(this._actionsContainer,"leaflet-draw-actions-bottom"),this._map.fire(L.Draw.Event.TOOLBARCLOSED)}}),L.Draw=L.Draw||{},L.Draw.Tooltip=L.Class.extend({initialize:function(n){this._map=n,this._popupPane=n._panes.popupPane,this._visible=!1,this._container=n.options.drawControlTooltips?L.DomUtil.create("div","leaflet-draw-tooltip",this._popupPane):null,this._singleLineLabel=!1,this._map.on("mouseout",this._onMouseOut,this)},dispose:function(){this._map.off("mouseout",this._onMouseOut,this),this._container&&(this._popupPane.removeChild(this._container),this._container=null)},updateContent:function(n){return this._container?(n.subtext=n.subtext||"",n.subtext.length!==0||this._singleLineLabel?n.subtext.length>0&&this._singleLineLabel&&(L.DomUtil.removeClass(this._container,"leaflet-draw-tooltip-single"),this._singleLineLabel=!1):(L.DomUtil.addClass(this._container,"leaflet-draw-tooltip-single"),this._singleLineLabel=!0),this._container.innerHTML=(n.subtext.length>0?'<span class="leaflet-draw-tooltip-subtext">'+n.subtext+"</span><br />":"")+"<span>"+n.text+"</span>",n.text||n.subtext?(this._visible=!0,this._container.style.visibility="inherit"):(this._visible=!1,this._container.style.visibility="hidden"),this):this},updatePosition:function(n){var r=this._map.latLngToLayerPoint(n),h=this._container;return this._container&&(this._visible&&(h.style.visibility="inherit"),L.DomUtil.setPosition(h,r)),this},showAsError:function(){return this._container&&L.DomUtil.addClass(this._container,"leaflet-error-draw-tooltip"),this},removeError:function(){return this._container&&L.DomUtil.removeClass(this._container,"leaflet-error-draw-tooltip"),this},_onMouseOut:function(){this._container&&(this._container.style.visibility="hidden")}}),L.DrawToolbar=L.Toolbar.extend({statics:{TYPE:"draw"},options:{polyline:{},polygon:{},rectangle:{},circle:{},marker:{},circlemarker:{}},initialize:function(n){for(var r in this.options)this.options.hasOwnProperty(r)&&n[r]&&(n[r]=L.extend({},this.options[r],n[r]));this._toolbarClass="leaflet-draw-draw",L.Toolbar.prototype.initialize.call(this,n)},getModeHandlers:function(n){return[{enabled:this.options.polyline,handler:new L.Draw.Polyline(n,this.options.polyline),title:L.drawLocal.draw.toolbar.buttons.polyline},{enabled:this.options.polygon,handler:new L.Draw.Polygon(n,this.options.polygon),title:L.drawLocal.draw.toolbar.buttons.polygon},{enabled:this.options.rectangle,handler:new L.Draw.Rectangle(n,this.options.rectangle),title:L.drawLocal.draw.toolbar.buttons.rectangle},{enabled:this.options.circle,handler:new L.Draw.Circle(n,this.options.circle),title:L.drawLocal.draw.toolbar.buttons.circle},{enabled:this.options.marker,handler:new L.Draw.Marker(n,this.options.marker),title:L.drawLocal.draw.toolbar.buttons.marker},{enabled:this.options.circlemarker,handler:new L.Draw.CircleMarker(n,this.options.circlemarker),title:L.drawLocal.draw.toolbar.buttons.circlemarker}]},getActions:function(n){return[{enabled:n.completeShape,title:L.drawLocal.draw.toolbar.finish.title,text:L.drawLocal.draw.toolbar.finish.text,callback:n.completeShape,context:n},{enabled:n.deleteLastVertex,title:L.drawLocal.draw.toolbar.undo.title,text:L.drawLocal.draw.toolbar.undo.text,callback:n.deleteLastVertex,context:n},{title:L.drawLocal.draw.toolbar.actions.title,text:L.drawLocal.draw.toolbar.actions.text,callback:this.disable,context:this}]},setOptions:function(n){L.setOptions(this,n);for(var r in this._modes)this._modes.hasOwnProperty(r)&&n.hasOwnProperty(r)&&this._modes[r].handler.setOptions(n[r])}}),L.EditToolbar=L.Toolbar.extend({statics:{TYPE:"edit"},options:{edit:{selectedPathOptions:{dashArray:"10, 10",fill:!0,fillColor:"#fe57a1",fillOpacity:.1,maintainColor:!1}},remove:{},poly:null,featureGroup:null},initialize:function(n){n.edit&&(n.edit.selectedPathOptions===void 0&&(n.edit.selectedPathOptions=this.options.edit.selectedPathOptions),n.edit.selectedPathOptions=L.extend({},this.options.edit.selectedPathOptions,n.edit.selectedPathOptions)),n.remove&&(n.remove=L.extend({},this.options.remove,n.remove)),n.poly&&(n.poly=L.extend({},this.options.poly,n.poly)),this._toolbarClass="leaflet-draw-edit",L.Toolbar.prototype.initialize.call(this,n),this._selectedFeatureCount=0},getModeHandlers:function(n){var r=this.options.featureGroup;return[{enabled:this.options.edit,handler:new L.EditToolbar.Edit(n,{featureGroup:r,selectedPathOptions:this.options.edit.selectedPathOptions,poly:this.options.poly}),title:L.drawLocal.edit.toolbar.buttons.edit},{enabled:this.options.remove,handler:new L.EditToolbar.Delete(n,{featureGroup:r}),title:L.drawLocal.edit.toolbar.buttons.remove}]},getActions:function(n){var r=[{title:L.drawLocal.edit.toolbar.actions.save.title,text:L.drawLocal.edit.toolbar.actions.save.text,callback:this._save,context:this},{title:L.drawLocal.edit.toolbar.actions.cancel.title,text:L.drawLocal.edit.toolbar.actions.cancel.text,callback:this.disable,context:this}];return n.removeAllLayers&&r.push({title:L.drawLocal.edit.toolbar.actions.clearAll.title,text:L.drawLocal.edit.toolbar.actions.clearAll.text,callback:this._clearAllLayers,context:this}),r},addToolbar:function(n){var r=L.Toolbar.prototype.addToolbar.call(this,n);return this._checkDisabled(),this.options.featureGroup.on("layeradd layerremove",this._checkDisabled,this),r},removeToolbar:function(){this.options.featureGroup.off("layeradd layerremove",this._checkDisabled,this),L.Toolbar.prototype.removeToolbar.call(this)},disable:function(){this.enabled()&&(this._activeMode.handler.revertLayers(),L.Toolbar.prototype.disable.call(this))},_save:function(){this._activeMode.handler.save(),this._activeMode&&this._activeMode.handler.disable()},_clearAllLayers:function(){this._activeMode.handler.removeAllLayers(),this._activeMode&&this._activeMode.handler.disable()},_checkDisabled:function(){var n,r=this.options.featureGroup,h=r.getLayers().length!==0;this.options.edit&&(n=this._modes[L.EditToolbar.Edit.TYPE].button,h?L.DomUtil.removeClass(n,"leaflet-disabled"):L.DomUtil.addClass(n,"leaflet-disabled"),n.setAttribute("title",h?L.drawLocal.edit.toolbar.buttons.edit:L.drawLocal.edit.toolbar.buttons.editDisabled)),this.options.remove&&(n=this._modes[L.EditToolbar.Delete.TYPE].button,h?L.DomUtil.removeClass(n,"leaflet-disabled"):L.DomUtil.addClass(n,"leaflet-disabled"),n.setAttribute("title",h?L.drawLocal.edit.toolbar.buttons.remove:L.drawLocal.edit.toolbar.buttons.removeDisabled))}}),L.EditToolbar.Edit=L.Handler.extend({statics:{TYPE:"edit"},initialize:function(n,r){if(L.Handler.prototype.initialize.call(this,n),L.setOptions(this,r),this._featureGroup=r.featureGroup,!(this._featureGroup instanceof L.FeatureGroup))throw new Error("options.featureGroup must be a L.FeatureGroup");this._uneditedLayerProps={},this.type=L.EditToolbar.Edit.TYPE;var h=L.version.split(".");parseInt(h[0],10)===1&&parseInt(h[1],10)>=2?L.EditToolbar.Edit.include(L.Evented.prototype):L.EditToolbar.Edit.include(L.Mixin.Events)},enable:function(){!this._enabled&&this._hasAvailableLayers()&&(this.fire("enabled",{handler:this.type}),this._map.fire(L.Draw.Event.EDITSTART,{handler:this.type}),L.Handler.prototype.enable.call(this),this._featureGroup.on("layeradd",this._enableLayerEdit,this).on("layerremove",this._disableLayerEdit,this))},disable:function(){this._enabled&&(this._featureGroup.off("layeradd",this._enableLayerEdit,this).off("layerremove",this._disableLayerEdit,this),L.Handler.prototype.disable.call(this),this._map.fire(L.Draw.Event.EDITSTOP,{handler:this.type}),this.fire("disabled",{handler:this.type}))},addHooks:function(){var n=this._map;n&&(n.getContainer().focus(),this._featureGroup.eachLayer(this._enableLayerEdit,this),this._tooltip=new L.Draw.Tooltip(this._map),this._tooltip.updateContent({text:L.drawLocal.edit.handlers.edit.tooltip.text,subtext:L.drawLocal.edit.handlers.edit.tooltip.subtext}),n._editTooltip=this._tooltip,this._updateTooltip(),this._map.on("mousemove",this._onMouseMove,this).on("touchmove",this._onMouseMove,this).on("MSPointerMove",this._onMouseMove,this).on(L.Draw.Event.EDITVERTEX,this._updateTooltip,this))},removeHooks:function(){this._map&&(this._featureGroup.eachLayer(this._disableLayerEdit,this),this._uneditedLayerProps={},this._tooltip.dispose(),this._tooltip=null,this._map.off("mousemove",this._onMouseMove,this).off("touchmove",this._onMouseMove,this).off("MSPointerMove",this._onMouseMove,this).off(L.Draw.Event.EDITVERTEX,this._updateTooltip,this))},revertLayers:function(){this._featureGroup.eachLayer(function(n){this._revertLayer(n)},this)},save:function(){var n=new L.LayerGroup;this._featureGroup.eachLayer(function(r){r.edited&&(n.addLayer(r),r.edited=!1)}),this._map.fire(L.Draw.Event.EDITED,{layers:n})},_backupLayer:function(n){var r=L.Util.stamp(n);this._uneditedLayerProps[r]||(n instanceof L.Polyline||n instanceof L.Polygon||n instanceof L.Rectangle?this._uneditedLayerProps[r]={latlngs:L.LatLngUtil.cloneLatLngs(n.getLatLngs())}:n instanceof L.Circle?this._uneditedLayerProps[r]={latlng:L.LatLngUtil.cloneLatLng(n.getLatLng()),radius:n.getRadius()}:(n instanceof L.Marker||n instanceof L.CircleMarker)&&(this._uneditedLayerProps[r]={latlng:L.LatLngUtil.cloneLatLng(n.getLatLng())}))},_getTooltipText:function(){return{text:L.drawLocal.edit.handlers.edit.tooltip.text,subtext:L.drawLocal.edit.handlers.edit.tooltip.subtext}},_updateTooltip:function(){this._tooltip.updateContent(this._getTooltipText())},_revertLayer:function(n){var r=L.Util.stamp(n);n.edited=!1,this._uneditedLayerProps.hasOwnProperty(r)&&(n instanceof L.Polyline||n instanceof L.Polygon||n instanceof L.Rectangle?n.setLatLngs(this._uneditedLayerProps[r].latlngs):n instanceof L.Circle?(n.setLatLng(this._uneditedLayerProps[r].latlng),n.setRadius(this._uneditedLayerProps[r].radius)):(n instanceof L.Marker||n instanceof L.CircleMarker)&&n.setLatLng(this._uneditedLayerProps[r].latlng),n.fire("revert-edited",{layer:n}))},_enableLayerEdit:function(n){var r,h,f=n.layer||n.target||n;this._backupLayer(f),this.options.poly&&(h=L.Util.extend({},this.options.poly),f.options.poly=h),this.options.selectedPathOptions&&(r=L.Util.extend({},this.options.selectedPathOptions),r.maintainColor&&(r.color=f.options.color,r.fillColor=f.options.fillColor),f.options.original=L.extend({},f.options),f.options.editing=r),f instanceof L.Marker?(f.editing&&f.editing.enable(),f.dragging.enable(),f.on("dragend",this._onMarkerDragEnd).on("touchmove",this._onTouchMove,this).on("MSPointerMove",this._onTouchMove,this).on("touchend",this._onMarkerDragEnd,this).on("MSPointerUp",this._onMarkerDragEnd,this)):f.editing.enable()},_disableLayerEdit:function(n){var r=n.layer||n.target||n;r.edited=!1,r.editing&&r.editing.disable(),delete r.options.editing,delete r.options.original,this._selectedPathOptions&&(r instanceof L.Marker?this._toggleMarkerHighlight(r):(r.setStyle(r.options.previousOptions),delete r.options.previousOptions)),r instanceof L.Marker?(r.dragging.disable(),r.off("dragend",this._onMarkerDragEnd,this).off("touchmove",this._onTouchMove,this).off("MSPointerMove",this._onTouchMove,this).off("touchend",this._onMarkerDragEnd,this).off("MSPointerUp",this._onMarkerDragEnd,this)):r.editing.disable()},_onMouseMove:function(n){this._tooltip.updatePosition(n.latlng)},_onMarkerDragEnd:function(n){var r=n.target;r.edited=!0,this._map.fire(L.Draw.Event.EDITMOVE,{layer:r})},_onTouchMove:function(n){var r=n.originalEvent.changedTouches[0],h=this._map.mouseEventToLayerPoint(r),f=this._map.layerPointToLatLng(h);n.target.setLatLng(f)},_hasAvailableLayers:function(){return this._featureGroup.getLayers().length!==0}}),L.EditToolbar.Delete=L.Handler.extend({statics:{TYPE:"remove"},initialize:function(n,r){if(L.Handler.prototype.initialize.call(this,n),L.Util.setOptions(this,r),this._deletableLayers=this.options.featureGroup,!(this._deletableLayers instanceof L.FeatureGroup))throw new Error("options.featureGroup must be a L.FeatureGroup");this.type=L.EditToolbar.Delete.TYPE;var h=L.version.split(".");parseInt(h[0],10)===1&&parseInt(h[1],10)>=2?L.EditToolbar.Delete.include(L.Evented.prototype):L.EditToolbar.Delete.include(L.Mixin.Events)},enable:function(){!this._enabled&&this._hasAvailableLayers()&&(this.fire("enabled",{handler:this.type}),this._map.fire(L.Draw.Event.DELETESTART,{handler:this.type}),L.Handler.prototype.enable.call(this),this._deletableLayers.on("layeradd",this._enableLayerDelete,this).on("layerremove",this._disableLayerDelete,this))},disable:function(){this._enabled&&(this._deletableLayers.off("layeradd",this._enableLayerDelete,this).off("layerremove",this._disableLayerDelete,this),L.Handler.prototype.disable.call(this),this._map.fire(L.Draw.Event.DELETESTOP,{handler:this.type}),this.fire("disabled",{handler:this.type}))},addHooks:function(){var n=this._map;n&&(n.getContainer().focus(),this._deletableLayers.eachLayer(this._enableLayerDelete,this),this._deletedLayers=new L.LayerGroup,this._tooltip=new L.Draw.Tooltip(this._map),this._tooltip.updateContent({text:L.drawLocal.edit.handlers.remove.tooltip.text}),this._map.on("mousemove",this._onMouseMove,this))},removeHooks:function(){this._map&&(this._deletableLayers.eachLayer(this._disableLayerDelete,this),this._deletedLayers=null,this._tooltip.dispose(),this._tooltip=null,this._map.off("mousemove",this._onMouseMove,this))},revertLayers:function(){this._deletedLayers.eachLayer(function(n){this._deletableLayers.addLayer(n),n.fire("revert-deleted",{layer:n})},this)},save:function(){this._map.fire(L.Draw.Event.DELETED,{layers:this._deletedLayers})},removeAllLayers:function(){this._deletableLayers.eachLayer(function(n){this._removeLayer({layer:n})},this),this.save()},_enableLayerDelete:function(n){(n.layer||n.target||n).on("click",this._removeLayer,this)},_disableLayerDelete:function(n){var r=n.layer||n.target||n;r.off("click",this._removeLayer,this),this._deletedLayers.removeLayer(r)},_removeLayer:function(n){var r=n.layer||n.target||n;this._deletableLayers.removeLayer(r),this._deletedLayers.addLayer(r),r.fire("deleted")},_onMouseMove:function(n){this._tooltip.updatePosition(n.latlng)},_hasAvailableLayers:function(){return this._deletableLayers.getLayers().length!==0}})})(window,document);const Al="";var vr={draw:{toolbar:{actions:{title:"መሳል ተው",text:"ተው"},finish:{title:"መሳል ጨርስ",text:"ጨርስ"},undo:{title:"መጨረሻ የተሳለውን ነጥብ አጥፋ",text:"መጨረሻ የተሳለውን ነጥብ አጥፋ"},buttons:{polyline:"ፖሊላየን ሳል",polygon:"ፖሊጎን ሳል",rectangle:"አራት መአዘን ሳል",circle:"ክብ ሳል",marker:"ምልክት ሳል",circlemarker:"ክብ ምልክት ሳል"}},handlers:{circle:{tooltip:{start:"ክብ ለመሳል ተጭንው ይጎትቱ"},radius:"ራዲየስ"},circlemarker:{tooltip:{start:"ክብ ምልክት ለመሳል ካርታውን ይጫኑ ይጎትቱ"}},marker:{tooltip:{start:"ምልክት ለመሳል ካርታውን ይጫኑ ይጎትቱ"}},polygon:{tooltip:{start:"ቅርጽን ለመሳል ካርታውን ተጭነው ይጎትቱ",cont:"ቅርጽን መሳሎን ለመቀጠል ይጫኑ",end:"ቅርጽን ስሎ ለመጨረስ የመጀመሪያውን ነጥብ ይጫኑ"}},polyline:{error:"<strong>ስህተት:</strong> መስመሮች እርስ በእርስ መተላለፍ አይችሉም!",tooltip:{start:"መስመር ለመሳል ካርታውን ተጭነው ይጎትቱ",cont:"መስመር መሳሎን ለመቀጠል ይጫኑ",end:"መስመር ስሎ ለመጨረስ የመጨረሻውን ነጥብ ይጫኑ"}},rectangle:{tooltip:{start:"ዐራት መአዝን ለመሳል ካርታውን ይጫኑ ይጎትቱ"}},simpleshape:{tooltip:{end:"ስለው ለመጨረስ አይጤን ይልቀቁ"}}}},edit:{toolbar:{actions:{save:{title:"ለውጦቹን አኑር",text:"አኑር"},cancel:{title:"ማስተካከሉን ተው፣ ሁሉንም ለውጦች ሰርዝ",text:"ተው"},clearAll:{title:"ሁሉንም የካርታ ገጾች አጥፋ",text:"ሁሉንም አጥፋ"}},buttons:{edit:"የካርታ ገጽ አስተካክል",editDisabled:"የሚስተካከል የካርታ ገጽ የለም",remove:"የካርታ ገጽ ሰርዝ.",removeDisabled:"የሚሰረዝ የካርታ ገጽ የለም"}},handlers:{edit:{tooltip:{text:"ለማስተካከል ምልክቱን ወይም መያዣውን ይጎትቱ",subtext:"ለውጥጡን ለመተው ተው የሚለውን ይጫኑ"}},remove:{tooltip:{text:"ማጥፋት የፈለጉትን ይጫኑ"}}}}},yr={draw:{toolbar:{actions:{title:"Zrušit kreslení",text:"Zrušit"},finish:{title:"Dokončit kreslení",text:"Dokončit"},undo:{title:"Smazat poslední nakreslený bod",text:"Smazat poslední bod"},buttons:{polyline:"Nakreslit mnohoúhelník",polygon:"Nakreslit polygon",rectangle:"Nakreslit obdélník",circle:"Nakreslit kruh",marker:"Nakreslit značku",circlemarker:"Nakreslit kruhovou značku"}},handlers:{circle:{tooltip:{start:"Kliknout a táhnout pro nakreslení kruhu."},radius:"Poloměr"},circlemarker:{tooltip:{start:"Kliknout do mapy pro umístění kruhové značky."}},marker:{tooltip:{start:"Kliknout do mapy pro umístění značky."}},polygon:{tooltip:{start:"Kliknout pro začátek kreslení tvaru.",cont:"Kliknout pro pokračování v kreslení tvaru.",end:"Kliknout na pvní bod k uzavření tvaru."}},polyline:{error:"<strong>Chyba:</strong> hrany tvaru se nemohou protínat!",tooltip:{start:"Kliknout pro začátek kreslení úsečky.",cont:"Kliknout pro pokračování v kreslení úsečky.",end:"Kliknout na koncový bod k ukončení kreslení úsečky."}},rectangle:{tooltip:{start:"Kliknout a táhnout k nakreslení obdélníku."}},simpleshape:{tooltip:{end:"Pustit myš k dokončení kreslení."}}}},edit:{toolbar:{actions:{save:{title:"Uložit změny.",text:"Uložit"},cancel:{title:"Zrušit úpravu, zruší všechny změny.",text:"Zrušit"},clearAll:{title:"Vymazat všechny vrstvy.",text:"Vymazat vše"}},buttons:{edit:"Upravit vrstvy.",editDisabled:"Žádné vrstvy k úpravě.",remove:"Vymazat vrstvy.",removeDisabled:"Žádná vrstva k vymazání."}},handlers:{edit:{tooltip:{text:"Táhnout za úchopy pro editaci tvaru.",subtext:"Kliknutím na zrušit vrátite změny."}},remove:{tooltip:{text:"Kliknout na tvar pro smazání"}}}}},Lr={draw:{toolbar:{actions:{title:"Zeichnung abbrechen",text:"Abbrechen"},finish:{title:"Zeichnung fertigstellen",text:"Fertigstellen"},undo:{title:"Lösche den zuletzt gezeichneten Punkt",text:"Letzter Punkt löschen"},buttons:{polyline:"Zeichne eine Linie",polygon:"Zeichne ein Polygon",rectangle:"Zeichne ein Rechteck",circle:"Zeichne einen Kreis",marker:"Zeichne einen Marker",circlemarker:"Zeichne einen Kreis-Marker"}},handlers:{circle:{tooltip:{start:"Klicken und ziehen um einen Kreis zu zeichnen."},radius:"Radius"},circlemarker:{tooltip:{start:"Karte anklicken um einen Kreis-Marker zu platzieren."}},marker:{tooltip:{start:"Karte anklicken um einen Marker zu platzieren."}},polygon:{tooltip:{start:"Klicken um mit dem Zeichnen einer Form zu beginnen.",cont:"Klicken um mit dem Zeichnen dieser Form fortzufahren.",end:"Erster Punkt anklicken um diese Form abzuschliessen."}},polyline:{error:"<strong>Fehler:</strong> Form-Ecken dürfen sich nicht überschneiden!",tooltip:{start:"Klicken um mit dem Zeichnen einer Linie zu beginnen.",cont:"Klicken um mit dem Zeichnen dieser Linie fortzufahren.",end:"Erster Punkt anklicken um diese Linie abzuschliessen."}},rectangle:{tooltip:{start:"Klicken und ziehen um ein Rechteck zu zeichnen."}},simpleshape:{tooltip:{end:"Maustaste loslassen um die Zeichnung fertigzustellen."}}}},edit:{toolbar:{actions:{save:{title:"Speichere Änderungen.",text:"Speichern"},cancel:{title:"Bearbeitung abbrechen, alle Änderungen verwerfen.",text:"Abbrechen"},clearAll:{title:"Alle Layer bereinigen.",text:"Alles bereinigen"}},buttons:{edit:"Layer bearbeiten.",editDisabled:"Keine Layer zum bearbeiten.",remove:"Layer löschen.",removeDisabled:"Keine Layer zum löschen."}},handlers:{edit:{tooltip:{text:"Ziehe den Griff oder den Marker um die Eigenschaft zu bearbeiten.",subtext:"Klicke abbrechen um Änderungen rückgängig zu machen."}},remove:{tooltip:{text:"Klicke auf eine Eigenschaft um diese zu entfernen."}}}}},an={draw:{toolbar:{actions:{title:"Cancel drawing",text:"Cancel"},finish:{title:"Finish drawing",text:"Finish"},undo:{title:"Delete last point drawn",text:"Delete last point"},buttons:{polyline:"Draw a polyline",polygon:"Draw a polygon",rectangle:"Draw a rectangle",circle:"Draw a circle",marker:"Draw a marker",circlemarker:"Draw a circlemarker"}},handlers:{circle:{tooltip:{start:"Click and drag to draw circle."},radius:"Radius"},circlemarker:{tooltip:{start:"Click map to place circle marker."}},marker:{tooltip:{start:"Click map to place marker."}},polygon:{tooltip:{start:"Click to start drawing shape.",cont:"Click to continue drawing shape.",end:"Click first point to close this shape."}},polyline:{error:"<strong>Error:</strong> shape edges cannot cross!",tooltip:{start:"Click to start drawing line.",cont:"Click to continue drawing line.",end:"Click last point to finish line."}},rectangle:{tooltip:{start:"Click and drag to draw rectangle."}},simpleshape:{tooltip:{end:"Release mouse to finish drawing."}}}},edit:{toolbar:{actions:{save:{title:"Save changes.",text:"Save"},cancel:{title:"Cancel editing, discards all changes.",text:"Cancel"},clearAll:{title:"Clear all layers.",text:"Clear All"}},buttons:{edit:"Edit layers.",editDisabled:"No layers to edit.",remove:"Delete layers.",removeDisabled:"No layers to delete."}},handlers:{edit:{tooltip:{text:"Drag handles, or marker to edit feature.",subtext:"Click cancel to undo changes."}},remove:{tooltip:{text:"Click on a feature to remove"}}}}},wr={draw:{toolbar:{actions:{title:"Cancelar dibujo",text:"Cancelar"},finish:{title:"Terminar dibujo",text:"Terminar"},undo:{title:"Eliminar último punto dibujado",text:"Eliminar último punto"},buttons:{polyline:"Dibujar una polilínea",polygon:"Dibujar un polígono",rectangle:"Dibujar un rectángulo",circle:"Dibujar un círculo",marker:"Dibujar un marcador",circlemarker:"Dibujar un marcador circular"}},handlers:{circle:{tooltip:{start:"Haz click y arrastra para dibujar un círculo"},radius:"Radio"},circlemarker:{tooltip:{start:"Haz click en el mapa para situar el marcador circular"}},marker:{tooltip:{start:"Haz click en el mapa para situar el marcador"}},polygon:{tooltip:{start:"Haz click para empezar a dibujar la forma",cont:"Haz click para continuar dibujando la forma",end:"Haz click en el primer punto para cerrar la forma"}},polyline:{error:"<strong>Error:</strong> las líneas no deben cruzarse",tooltip:{start:"Haz click para empezar a dibujar la línea",cont:"Haz click para continuar dibujando la línea",end:"Haz click en el último punto para terminar la línea"}},rectangle:{tooltip:{start:"Haz click y arrastra para dibujar un rectángulo"}},simpleshape:{tooltip:{end:"Suelta el ratón para terminar de dibujar"}}}},edit:{toolbar:{actions:{save:{title:"Guardar los cambios",text:"Guardar"},cancel:{title:"Cancelar la edición, descarta todos los cambios",text:"Cancelar"},clearAll:{title:"Limpiar todas las capas",text:"Limpiar todo"}},buttons:{edit:"Editar capas",editDisabled:"No hay capas que editar",remove:"Eliminar capas",removeDisabled:"No hay capas que eliminar"}},handlers:{edit:{tooltip:{text:"Arrastra el marcador para editar la forma",subtext:"Haz click en cancelar para deshacer los cambios"}},remove:{tooltip:{text:"Haz click en una forma para eliminarla"}}}}},kr={draw:{toolbar:{actions:{title:"Peru piirustus",text:"Peru"},finish:{title:"Hyväksy piirustus",text:"Hyväksy"},undo:{title:"Poista viimeinen piirretty piste",text:"Poista viimeinen piste"},buttons:{polyline:"Piirrä murtoviiva",polygon:"Piirrä monikulmio",rectangle:"Piirrä suorakulmio",circle:"Piirrä ympyrä",marker:"Piirrä merkki",circlemarker:"Piirrä piirimerkki"}},handlers:{circle:{tooltip:{start:"Piirrä ympyrä pitämällä hiiri painettuna ja vetämällä."},radius:"Säde"},circlemarker:{tooltip:{start:"Aseta ympyrämerkki painamalla karttaa."}},marker:{tooltip:{start:"Aseta markkeri painamalla karttaa."}},polygon:{tooltip:{start:"Paina aloittaaksesi muodon piirtämisen.",cont:"Paina jatkaaksesi muodon piirtämistä.",end:"Sulje muoto painamalla ensimmäistä pistettä."}},polyline:{error:"<strong>Virhe:</strong> muodon reunaa ei voi ylittää!",tooltip:{start:"Paina aloittaaksesi viivan piirtämisen.",cont:"Paina jatkaaksesi viivan piirtämistä.",end:"Paina viimeistä pistettä päättäksesi viiva."}},rectangle:{tooltip:{start:"Piirrä suorakulmio pitämällä hiiri painettuna ja vetämällä."}},simpleshape:{tooltip:{end:"Vapauta hiiri päättääksesi piirtämisen."}}}},edit:{toolbar:{actions:{save:{title:"Hyväksy muutokset.",text:"Hyväksy"},cancel:{title:"Peru muokkaus, hylkää kaikki muutokset.",text:"Peru"},clearAll:{title:"Poista kaikki tasot.",text:"Poista kaikki"}},buttons:{edit:"Muokkaa tasoja.",editDisabled:"Ei muokattavia tasoja.",remove:"Poista tasot.",removeDisabled:"Ei poistettavia tasoja."}},handlers:{edit:{tooltip:{text:"Vedä pistettä tai markkeria muokataksesi piirrettyjä ominaisuuksia.",subtext:"Kumoa muutokset painamalla peruuta."}},remove:{tooltip:{text:"Paina piirrettyä ominaisuutta poistaaksesi"}}}}},br={draw:{toolbar:{actions:{title:"Annuler le dessin",text:"Annuler"},finish:{title:"Terminer le dessin",text:"Terminer"},undo:{title:"Supprimer le dernier point tiré",text:"Supprimer le dernier point"},buttons:{polyline:"Dessinez une polyligne",polygon:"Dessinez un polygone",rectangle:"Dessinez un rectangle",circle:"Dessiner un cercle",marker:"Dessinez un marqueur",circlemarker:"Dessinez un marqueur circulaire"}},handlers:{circle:{tooltip:{start:"Cliquez et faites glisser pour dessiner le cercle."},radius:"Rayon"},circlemarker:{tooltip:{start:"Cliquez sur la carte pour placer le marqueur circulaire."}},marker:{tooltip:{start:"Cliquez sur la carte pour placer le marqueur."}},polygon:{tooltip:{start:"Cliquez pour commencer à dessiner.",cont:"Cliquez pour continuer à dessiner.",end:"Cliquez sur le premier point pour fermer cette forme."}},polyline:{error:"<strong>Erreur:</strong> les polyligne ne peuvent pas traverser!",tooltip:{start:"Cliquez pour commencer à dessiner.",cont:"Cliquez pour continuer à dessiner.",end:"Cliquez sur le dernier point pour fermer cette forme."}},rectangle:{tooltip:{start:"Cliquez et faites glisser pour dessiner le rectangle."}},simpleshape:{tooltip:{end:"Relâchez la souris pour terminer le dessin."}}}},edit:{toolbar:{actions:{save:{title:"Sauvegarder les modifications.",text:"Sauvegarder"},cancel:{title:"Annuler l'édition, rejette toutes les modifications.",text:"Annuler"},clearAll:{title:"Effacez toutes les collections.",text:"Tout effacer"}},buttons:{edit:"Modifier les collections.",editDisabled:"Pas de collections à éditer.",remove:"Supprimez les collections.",removeDisabled:"Pas de collections à supprimer."}},handlers:{edit:{tooltip:{text:"Sélectionnez les poignées ou le marqueur pour modifier l'entité.",subtext:"Cliquez sur annuler pour rétablir les modifications."}},remove:{tooltip:{text:"Cliquez sur une entité pour supprimer"}}}}},xr={draw:{toolbar:{actions:{title:"Rajzolás elvetése",text:"Mégse"},finish:{title:"Rajzolás befejezése",text:"Befejezés"},undo:{title:"Legutóbbi pont törlése",text:"Legutóbbi pont törlése"},buttons:{polyline:"Útvonal rajzolása",polygon:"Sokszög rajzolása",rectangle:"Négyszög rajzolása",circle:"Kör rajzolása",marker:"Jelölő rajzolása",circlemarker:"Kör-jelölő rajzolása"}},handlers:{circle:{tooltip:{start:"Kattintson és tartsa nyomva a rajzoláshoz."},radius:"Sugár"},circlemarker:{tooltip:{start:"Kör-jelölő elhelyezéséhez kattintson a térképre."}},marker:{tooltip:{start:"Jelölő elhelyezéséhez kattintson a térképre."}},polygon:{tooltip:{start:"Alakzat rajzolásához kattintson a térképre.",cont:"Alakzat folytatásához kattintson a térképre.",end:"Alakzat befejezéséhez kattintson a kezdőpontra."}},polyline:{error:"<strong>Error:</strong> shape edges cannot cross!",tooltip:{start:"Útvonal rajzolásához kattintson a térképre.",cont:"Útvonal folytatásához kattintson a térképre.",end:"Útvonal befejezéséhez kattintson a végpontra."}},rectangle:{tooltip:{start:"Kattintson és tartsa nyomva négyszög rajzolásához."}},simpleshape:{tooltip:{end:"Ha elégedett az alakzattal, engedje fel az egér gombját."}}}},edit:{toolbar:{actions:{save:{title:"Változtatások elmentése.",text:"Mentés"},cancel:{title:"Változtatások elvetése.",text:"Mégse"},clearAll:{title:"Összes réteg törlése.",text:"Összes törlése"}},buttons:{edit:"Rétegek szerkesztése.",editDisabled:"Nem állnak rendelkezésre szerkeszthető rétegek.",remove:"Rétegek törlése.",removeDisabled:"Nem állnak rendelkezésre törölhető rétegek."}},handlers:{edit:{tooltip:{text:"Módosításhoz használja a jelölők, alakzatok kezelőit.",subtext:"Változások elvetéséhez kattintson a 'Mégse' gombra."}},remove:{tooltip:{text:"Kattintson a jelölőkre, alakzatokra az eltávolításukhoz."}}}}},Pr={draw:{toolbar:{actions:{title:"Annulla disegno",text:"Annulla"},finish:{title:"Completa disegno",text:"Completa"},undo:{title:"Elimina l'ultimo punto disegnato",text:"Elimina l'ultimo punto"},buttons:{polyline:"Disegna una polilinea",polygon:"Disegna un poligono",rectangle:"Disegna un rettangolo",circle:"Disegna un cerchio",marker:"Disegna un marcatore",circlemarker:"Disegna un marker circolare"}},handlers:{circle:{tooltip:{start:"Clicca e trascina per disegnare un cerchio."},radius:"Raggio"},circlemarker:{tooltip:{start:"Clicca la mappa per posizionare un marcatore circolare."}},marker:{tooltip:{start:"Clicca la mappa per posizionare un marcatore."}},polygon:{tooltip:{start:"Clicca per iniziare a disegnare una figura.",cont:"Clicca per continuare a disegnare una figura.",end:"Clicca il primo punto per chiudere questa figura."}},polyline:{error:"<strong>Errore:</strong> i margini della figura non si possono incrociare!",tooltip:{start:"Clicca per iniziare a disegnare una linea.",cont:"Clicca per continuare a disegnare una linea",end:"Clicca l'ultimo punto per finire questa linea"}},rectangle:{tooltip:{start:"Clicca e trascina per disegnare un rettangolo."}},simpleshape:{tooltip:{end:"Rilascia il mouse per finire il disegno."}}}},edit:{toolbar:{actions:{save:{title:"Salva modifiche.",text:"Salva"},cancel:{title:"Annulla tutte le modifiche.",text:"Annulla"},clearAll:{title:"Pulisci tutti i livelli.",text:"Pulisci tutto"}},buttons:{edit:"Modifica i livelli.",editDisabled:"Nessun livello disponibile per la modifica.",remove:"Elimina livelli.",removeDisabled:"Nessun livello disponibile per l'eliminazione."}},handlers:{edit:{tooltip:{text:"Trascina le maniglie, o i marcatori per modificare l'elemento.",subtext:"Clicca annulla per annullare le modifiche."}},remove:{tooltip:{text:"Clicca un elemento per rimuoverlo"}}}}},Tr={draw:{toolbar:{actions:{title:"ხატვის გაუქმება",text:"გაუქმება"},finish:{title:"ხატვის დასრულება",text:"დასრულება"},undo:{title:"ბოლო დახატული წერტილის წაშლა",text:"ბოლო წერტილის წაშლა"},buttons:{polyline:"პოლილაინის დახაზვა",polygon:"პოლიგონის დახაზვა",rectangle:"მართკუთხედის დახაზვა",circle:"წრის დახაზვა",marker:"ადგილმდებარეობის დატანა",circlemarker:"ადგილმდებარეობის დატანა(წრის სახით)"}},handlers:{circle:{tooltip:{start:"დააწკაპუნეთ და გადაიტანეთ იმისათვის, რომ წრე დახაზოთ."},radius:"რადიუსი"},circlemarker:{tooltip:{start:"დააწკაპუნეთ რუკაზე ადგილმდებარეობის შესაქმნელად."}},marker:{tooltip:{start:"დააწკაპუნეთ რუკაზე ადგილმდებარეობის შესაქმნელად."}},polygon:{tooltip:{start:"დააწკაპუნეთ, კონტურის ხაზვის დაწყებისთვის.",cont:"დააწკაპუნეთ, კონტრუსი ხაზვის დასრულებისთვის.",end:"დააწკაპუნეთ პირველ წერტილზე, რათა დაასრულოთ კონტურის ხაზვა."}},polyline:{error:"<strong>შეცდომა:</strong> ხაზი ვერ გადაკვეთავს თავის თავს",tooltip:{start:"დააწკაპუნეთ, ხაზის ხაზვის დაწყებისთვის.",cont:"დააწკაპუნეთ, ხაზის ხაზვის დასრულებისთვის.",end:"დააწკაპუნეთ ბოლო წერტილზე, რათა დაასრულოთ ხაზის ხაზვა."}},rectangle:{tooltip:{start:"დააწკაპუნეთ და გადაიტანეთ იმისათვის, რომ მართკუთხედი დახაზოთ."}},simpleshape:{tooltip:{end:"გაათავისუფლეთ თაგვის ღილაკი ხაზვის დასასრულებლად."}}}},edit:{toolbar:{actions:{save:{title:"ცვლილებების შენახვა.",text:"შენახვა"},cancel:{title:"რედაქტირების გაუქმება, დააბრუნე ყველა ცვლილება.",text:"გაუქმება"},clearAll:{title:"ყველა რედაქტირებული ფენის გასუფთავება.",text:"გასუფთავება"}},buttons:{edit:"რედაქტირება.",editDisabled:"ფენები არ არის რედაქტირებისთვის.",remove:"წაშლა.",removeDisabled:"ფენები არ არის წაშლისთვის."}},handlers:{edit:{tooltip:{text:"გადაიტანეთ წვერები ან წერტილები ობიექტის რედაქტირებისთვის.",subtext:'დააჭირეთ "გაუქმება", საწყის მდგომარეობაში დასაბრუნებლად.'}},remove:{tooltip:{text:"დააწკაპუნეთ ობიექტზე წაშლისთვის"}}}}},Er={draw:{toolbar:{actions:{title:"Tekening annuleren",text:"Annuleren"},finish:{title:"Tekening voltooien",text:"Voltooien"},undo:{title:"Laatst getekende punt verwijderen",text:"Verwijder laatst getekende punt"},buttons:{polyline:"Teken een polygonale lijn",polygon:"Teken een polygoon",rectangle:"Teken een rechthoek",circle:"Teken een cirkel",marker:"Plaats een marker",circlemarker:"Teken een cirkelmarkering"}},handlers:{circle:{tooltip:{start:"Klik en sleep om de cirkel te tekenen."},radius:"Radius"},circlemarker:{tooltip:{start:"Klik op de kaart om de cirkelmarkering te plaatsen."}},marker:{tooltip:{start:"Klik op de kaart om de markering te plaatsen."}},polygon:{tooltip:{start:"Klik om te beginnen met het tekenen van de polygoon.",cont:"Klik om door te gaan met het tekenen van de vorm.",end:"Klik op het eerste punt om dit polygoon te sluiten."}},polyline:{error:"<strong>Fout:</strong> vormranden kunnen niet kruisen!",tooltip:{start:"Klik om te beginnen met het tekenen van een lijn.",cont:"Klik om door te gaan met het tekenen van de lijn.",end:"Klik laatst getekende punt om deze lijn te voltooien."}},rectangle:{tooltip:{start:"Klik en sleep om een rechthoek te tekenen."}},simpleshape:{tooltip:{end:"Laat de muis los om de tekening te voltooien."}}}},edit:{toolbar:{actions:{save:{title:"Wijzigingen opslaan.",text:"Opslaan"},cancel:{title:"Annuleer bewerken en verwijder alle wijzigingen.",text:"Annuleren"},clearAll:{title:"Verwijder alle lagen.",text:"Verwijderd alles"}},buttons:{edit:"Lagen bewerken.",editDisabled:"Geen lagen om te bewerken.",remove:"Verwijder lagen.",removeDisabled:"Geen lagen om te verwijderen."}},handlers:{edit:{tooltip:{text:"Sleep hoeken om te schalen of middenpunt om te verplaatsen.",subtext:"Klik op annuleren om wijzigingen ongedaan te maken."}},remove:{tooltip:{text:"Klik op een vorm om die te verwijderen"}}}}},Mr={draw:{toolbar:{actions:{title:"Avbryt markering",text:"Avbryt"},finish:{title:"Ferdiggjør markering",text:"Ferdiggjør"},undo:{title:"Ta bort siste punkt",text:"Slett siste punkt"},buttons:{polyline:"Tegn flere linjer",polygon:"Tegn en mangekant",rectangle:"Tegn et rektangel",circle:"Tegn en sirkel",marker:"Sett et markeringspunkt",circlemarker:"Tegn et sirkelpunkt"}},handlers:{circle:{tooltip:{start:"Klikk og dra for å tegne en sirkel."},radius:"Radius"},circlemarker:{tooltip:{start:"Klikk på kartet for å plassere et sirkelpunkt."}},marker:{tooltip:{start:"Klikk på kartet for å markere et punkt."}},polygon:{tooltip:{start:"Klikk for å tegne et område.",cont:"Klikk for å fortsette tegningen.",end:"Klikk på det første punktet for å lukke området."}},polyline:{error:"<strong>Error:</strong> kantene kan ikke krysses!",tooltip:{start:"Klikk for å tegne en linje.",cont:"Klikk for å fortsette å tegne linjen.",end:"Kikk siste punkt for å ferdiggjøre linjen."}},rectangle:{tooltip:{start:"Klikk og dra for å tegne et rektangel."}},simpleshape:{tooltip:{end:"Slipp museknappen for å gjøre tegningen ferdig."}}}},edit:{toolbar:{actions:{save:{title:"Lagre endringer.",text:"Lagre"},cancel:{title:"Avbryt redigering og forkast endringer.",text:"Avbryt"},clearAll:{title:"Nullstill alle figurer.",text:"Nullstill alt."}},buttons:{edit:"Rediger figur.",editDisabled:"Ingen figur å redigere.",remove:"Slett figur.",removeDisabled:"Ingen figur å slette."}},handlers:{edit:{tooltip:{text:"Dra markør for å redigere.",subtext:"Klikk avbryt for å angre endringer."}},remove:{tooltip:{text:"Klikk for å ta bort"}}}}},Cr={draw:{toolbar:{actions:{title:"Anuluj wyznaczanie",text:"Anuluj"},finish:{title:"Zakończ wyznaczanie",text:"Zakończ"},undo:{title:"Usuń ostatnio wyznaczony punkt",text:"Usuń ostatni punkt"},buttons:{polyline:"Wyznacz wzór",polygon:"Wyznacz wielokąt",rectangle:"Wyznacz prostokąt",circle:"Wyznacz koło",marker:"Umieść znacznik",circlemarker:"Umieść okrągły znacznik"}},handlers:{circle:{tooltip:{start:"Kliknij i przeciągnij, aby wyznaczyć koło."},radius:"Promień"},circlemarker:{tooltip:{start:"Kliknij na mapę, aby umieścić okrągły znacznik."}},marker:{tooltip:{start:"Kliknij na mapę, aby umieścić znacznik."}},polygon:{tooltip:{start:"Kliknij, aby rozpocząć wyznaczanie kształtu.",cont:"Kliknij, aby kontynuować wyznaczanie kształtu.",end:"Kliknij pierwszy punkt, aby zakończyć ten kształt."}},polyline:{error:"<strong>Błąd:</strong> odcinki nie mogą się przecinać!",tooltip:{start:"Kliknij, aby rozpocząć wyznaczanie lini.",cont:"Kliknij, aby kontynuować wyznaczanie lini.",end:"Kliknij ostatni punkt, aby ukończyć linię."}},rectangle:{tooltip:{start:"Kliknij i przeciągnij, aby wyznaczyć prostokąt."}},simpleshape:{tooltip:{end:"Zwolnij przycisk myszy, aby ukończyć wyznaczanie."}}}},edit:{toolbar:{actions:{save:{title:"Zapisz zmiany.",text:"Zapisz"},cancel:{title:"Anuluj edytowanie i odrzuć zmiany.",text:"Anuluj"},clearAll:{title:"Wyczyść wszystkie warstwy.",text:"Wyczyść wszystko"}},buttons:{edit:"Edytuj warstwy.",editDisabled:"Brak warstw do edycji.",remove:"Usuń warstwy.",removeDisabled:"Brak warstw do usunięcia."}},handlers:{edit:{tooltip:{text:"Przeciągnij uchwyt lub znacznik, aby edytować.",subtext:"Kliknij anuluj, aby odrzucić zmiany."}},remove:{tooltip:{text:"Kliknij obiekt, aby go usunąć."}}}}},zr={draw:{toolbar:{actions:{title:"Cancelar desenho",text:"Cancelar"},finish:{title:"Terminar desenho",text:"Terminar"},undo:{title:"Eliminar último ponto desenhado",text:"Eliminar último ponto"},buttons:{polyline:"Desenhar uma polilinha",polygon:"Desenhar um polígono",rectangle:"Desenhar um retângulo",circle:"Desenhar um círculo",marker:"Desenhar un marcador",circlemarker:"Desenhar um marcador circular"}},handlers:{circle:{tooltip:{start:"Clique e arrastrar para desenhar o círculo."},radius:"Raio"},circlemarker:{tooltip:{start:"Clique no mapa para colocar o marcador circular."}},marker:{tooltip:{start:"Clique no mapa para colocar o marcador."}},polygon:{tooltip:{start:"Clique para começar a desenhar a figura.",cont:"Clique para continuar desenhando a figura.",end:"Clique no primeiro ponto para fechar esta figura."}},polyline:{error:"<strong>Erro:</strong> as bordas de uma forma não podem atravessar!",tooltip:{start:"Clique para começar a desenhar a linha.",cont:"Clique para continuar desenhando a linha.",end:"Clique no último ponto para terminar a linha."}},rectangle:{tooltip:{start:"Clique e arrastrar para desenhar o retângulo."}},simpleshape:{tooltip:{end:"Solte o mouse para terminar o desenho."}}}},edit:{toolbar:{actions:{save:{title:"Guardar alterações.",text:"Guardar"},cancel:{title:"Cancelar edição, descarta todas as alterações.",text:"Cancelar"},clearAll:{title:"Limpar todas as camadas.",text:"Limpar tudo"}},buttons:{edit:"Editar camadas.",editDisabled:"Nenhuma camada que editar.",remove:"Eliminar camadas.",removeDisabled:"Nenhuma camada que eliminar."}},handlers:{edit:{tooltip:{text:"Arraste os manipuladores ou marcadores para editar a figura.",subtext:"Clique em cancelar para desfazer as alterações."}},remove:{tooltip:{text:"Clique em uma figura para removê-la"}}}}},Sr={draw:{toolbar:{actions:{title:"Отменить рисование",text:"Отмена"},finish:{title:"Завершить рисование",text:"Завершить"},undo:{title:"Удалить последнюю нарисованную точку",text:"Удалить последнюю точку"},buttons:{polyline:"Нарисовать полилинию",polygon:"Нарисовать полигон",rectangle:"Нарисовать прямоугольник",circle:"Нарисовать круг",marker:"Нарисовать точку",circlemarker:"Нарисовать точку(в виде круга)"}},handlers:{circle:{tooltip:{start:"Кликните и перетащите для того, чтобы нарисовать круг."},radius:"Радиус"},circlemarker:{tooltip:{start:"Кликните на карту для установки точки."}},marker:{tooltip:{start:"Кликните на карту для установки точки."}},polygon:{tooltip:{start:"Кликните, чтобы начать рисовать контур.",cont:"Кликните, чтобы завершить рисовать контур.",end:"Кликните на первую точку, чтобы завершить рисование контура."}},polyline:{error:"<strong>Ошибка:</strong> линия не может самопересекаться!",tooltip:{start:"Кликните, чтобы начать рисовать линию.",cont:"Кликните, чтобы завершить рисование линии.",end:"Кликните на последнюю точку, чтобы завершить рисование линии."}},rectangle:{tooltip:{start:"Кликните и перетащите, чтобы нарисовать прямоугольник."}},simpleshape:{tooltip:{end:"Отпустите кнопку мыши для завершения рисования."}}}},edit:{toolbar:{actions:{save:{title:"Сохранить изменения.",text:"Сохранить"},cancel:{title:"Отменить редактирование, откатить все изменения.",text:"Отмена"},clearAll:{title:"Очистить все редактируемые слои.",text:"Очистить всё"}},buttons:{edit:"Редактировать.",editDisabled:"Нет слоёв для редактирования.",remove:"Удалить.",removeDisabled:"Нет слоёв для удаления."}},handlers:{edit:{tooltip:{text:"Перетащите вершины или точки для редактирования фигуры.",subtext:'Нажмите "Отмена", чтобы откатить изменения.'}},remove:{tooltip:{text:"Кликните на фигуру для удаления"}}}}},Dr={draw:{toolbar:{actions:{title:"Zrušiť kreslenie",text:"Zrušiť"},finish:{title:"Dokončiť kreslenie",text:"Dokončiť"},undo:{title:"Zmazať posledný nakreslený bod",text:"Zmazať posledný bod"},buttons:{polyline:"Nakresliť čiaru",polygon:"Nakresliť polygón",rectangle:"Nakresliť obdĺžnik",circle:"Nakresliť kruh",marker:"Nakresliť bod",circlemarker:"Nakresliť kruhový bod"}},handlers:{circle:{tooltip:{start:"Kliknite a potiahnite, aby ste nakreslili kruh."},radius:"Polomer"},circlemarker:{tooltip:{start:"Kliknite na mapu aby ste umiestnili kruhový bod."}},marker:{tooltip:{start:"Kliknite na mapu aby ste umiestnili bod."}},polygon:{tooltip:{start:"Kliknite, aby ste začali kresliť útvar.",cont:"Kliknite, aby ste nakreslili ďalší bod útvaru.",end:"Kliknite na prvý bod, aby ste uzavreli útvar."}},polyline:{error:"<strong>Chyba:</strong> čiary sa nesmú pretínať!",tooltip:{start:"Kliknite, aby ste začali kresliť čiaru.",cont:"Kliknite, aby ste nakreslili ďalší bod čiary.",end:"Kliknite posledný bod, aby ste dokončili čiaru."}},rectangle:{tooltip:{start:"Kliknite a potiahnite, aby ste nakreslili štvorec."}},simpleshape:{tooltip:{end:"Uvoľnením tlačidla myši ukončíte kreslenie."}}}},edit:{toolbar:{actions:{save:{title:"Uložiť zmeny.",text:"Uložiť"},cancel:{title:"Ukončiť úpravu, zrušiť všetky zmeny.",text:"Zrušiť"},clearAll:{title:"Zmazať všetky vrstvy.",text:"Zmazať všetko"}},buttons:{edit:"Upraviť vrstvy.",editDisabled:"Žiadne vrstvy pre úpravu",remove:"Zmazať vrstvy.",removeDisabled:"Žiadne vrstvy pre zmazanie."}},handlers:{edit:{tooltip:{text:"Potiahnutím vyznačených štvorčekov, alebo bodov upravíte útvar.",subtext:"Kliknite zrušiť, pre zrušenie zmien."}},remove:{tooltip:{text:"Kliknite na útvar pre jeho zmazanie."}}}}},Or={draw:{toolbar:{actions:{title:"Скасувати креслення",text:"Скасувати"},finish:{title:"Завершити креслення",text:"Завершити"},undo:{title:"Видалити останню нанесену точку",text:"Видалити останню точку"},buttons:{polyline:"Накреслити криву",polygon:"Накреслити многокутник",rectangle:"Накреслити прямокутник",circle:"Накреслити коло",marker:"Розмістити маркер",circlemarker:"Розмістити маркер-коло"}},handlers:{circle:{tooltip:{start:"Натисніть і перетягуйте вказівник, щоб накреслити коло."},radius:"Радіус"},circlemarker:{tooltip:{start:"Натисніть на мапу, щоб розмістити маркер-коло."}},marker:{tooltip:{start:"Натисніть на мапу, щоб розмістити маркер."}},polygon:{tooltip:{start:"Натисніть, щоб накреслити фігуру.",cont:"Натисніть, щоб продовжити креслення фігури.",end:"Натисніть на першу точку, щоб замкнути цю фігуру."}},polyline:{error:"<strong>Помилка:</strong> сторони фігури не мають перетинатись!",tooltip:{start:"Натисніть, щоб накреслити лінію.",cont:"Натисніть, щоб продовжити креслення лінії.",end:"Натисніть на останню точку, щоб завершити лінію."}},rectangle:{tooltip:{start:"Натисніть і перетягуйте вказівник, щоб накреслити прямокутник."}},simpleshape:{tooltip:{end:"Відпустіть мишку, щоб завершити рисування."}}}},edit:{toolbar:{actions:{save:{title:"Зберегти зміни.",text:"Зберегти"},cancel:{title:"Припинити редагування, скасувати всі зміни.",text:"Скасувати"},clearAll:{title:"Очистити всі шари.",text:"Очистити все"}},buttons:{edit:"Редагувати шари.",editDisabled:"Немає шарів для редагування.",remove:"Видалити шари.",removeDisabled:"Немає шарів для видалення."}},handlers:{edit:{tooltip:{text:"Перетягуйте важелі або маркер для редагування фігури.",subtext:"Натисніть «Скасувати» для скасування змін."}},remove:{tooltip:{text:"Натисніть на фігуру для видалення"}}}}},Ar={draw:{toolbar:{actions:{title:"الغاء الرسم",text:"الغاء"},finish:{title:"انهاء الرسم",text:"انهاء"},undo:{title:"مسح اخر رسمة",text:"مسح اخر نقطة"},buttons:{polyline:"رسم خط",polygon:"رسم منطقة",rectangle:"رسم مستطيل",circle:"رسم دائرة",marker:"رسم علامة",circlemarker:"رسم علامة دائرة"}},handlers:{circle:{tooltip:{start:"اضغط واسحب لرسم دائرة"},radius:"القطر"},circlemarker:{tooltip:{start:"اضغط على الخريطة لرسم دائرة"}},marker:{tooltip:{start:"اضغط على الخريطة لرسم نقطة"}},polygon:{tooltip:{start:"اضغط لبدء رسم منطقة",cont:"اضغط لاستمرار رسم منطقة",end:"اضغط على اول نقطة لاكمال المنطقة"}},polyline:{error:"<strong>خطأ:</strong> لا يمكن تقاطع الخطوط",tooltip:{start:"اضغط لبدئ رسم الخط",cont:"اضغط لاستكمال رسم الخط",end:"اضغط على اخر نقطة للانهاء"}},rectangle:{tooltip:{start:"اضغط واسحب لرسم مستطيل"}},simpleshape:{tooltip:{end:"اترك الماوس للانهاء"}}}},edit:{toolbar:{actions:{save:{title:"حفظ التغييرات",text:"حفظ"},cancel:{title:"الغاء كل التعديلات",text:"الغاء"},clearAll:{title:"مسح كل الطبقات",text:"مسح الكل"}},buttons:{edit:"تعديل الطبقات",editDisabled:"لاتوجد طبقات للتعديل",remove:"مسح الطبقات",removeDisabled:"لا يوجد طبقات للمسح"}},handlers:{edit:{tooltip:{text:"اسحب للتعديل",subtext:"اضغط الغاء لمسح التعديلات"}},remove:{tooltip:{text:"اضغط على رسمة للمسح"}}}}},Ir={draw:{toolbar:{actions:{title:"取消绘制",text:"取消"},finish:{title:"结束绘制",text:"结束"},undo:{title:"删除最后一个绘制点",text:"删除最后一个点"},buttons:{polyline:"绘制折线",polygon:"绘制多边形",rectangle:"绘制矩形",circle:"绘制圆形",marker:"绘制标志物",circlemarker:"绘制圆形标志物"}},handlers:{circle:{tooltip:{start:"单击并拖拽绘制圆形"},radius:"半径"},circlemarker:{tooltip:{start:"单击地图放置圆形标志物"}},marker:{tooltip:{start:"单击地图放置标志物"}},polygon:{tooltip:{start:"单击地图绘制图形",cont:"继续单击绘制图形",end:"单击起始点结束绘制"}},polyline:{error:"<strong>错误:</strong> 图形边缘不能交叉!",tooltip:{start:"单击地图绘制折线",cont:"继续单击绘制下一段折线",end:"单击最后一个点结束绘制"}},rectangle:{tooltip:{start:"单击并拖拽绘制矩形"}},simpleshape:{tooltip:{end:"松开鼠标结束绘制"}}}},edit:{toolbar:{actions:{save:{title:"保存变更",text:"保存"},cancel:{title:"取消编辑,放弃所有变更",text:"取消"},clearAll:{title:"清除所有图形",text:"清除所有"}},buttons:{edit:"编辑图形",editDisabled:"无图形可编辑",remove:"删除图形",removeDisabled:"无图形可删除"}},handlers:{edit:{tooltip:{text:"拖拽线段或标志点以编辑图形",subtext:"点击<strong>取消</strong>按钮撤销变更"}},remove:{tooltip:{text:"单击图形以移除"}}}}},Rr={draw:{toolbar:{actions:{title:"Çizimi iptal et",text:"İptal"},finish:{title:"Çizimi Bitir",text:"Bitir"},undo:{title:"Çizilen son noktayı sil",text:"Son noktayı sil"},buttons:{polyline:"Çoklu çizgi çiz",polygon:"Çokgen çiz",rectangle:"Dikdörtgen çiz",circle:"Yuvarlak çiz",marker:"İşaretçi çiz",circlemarker:"Yuvarlak işaretçi çiz"}},handlers:{circle:{tooltip:{start:"Yuvarlak çizmek için tıklayın ve sürükleyin."},radius:"Çap"},circlemarker:{tooltip:{start:"Yuvarlak işaretçi yerleştirmek için haritaya tıklayın."}},marker:{tooltip:{start:"İşaretçi yerleştirmek için haritaya tıklayın."}},polygon:{tooltip:{start:"Şekil çizmeye başlamak için tıklayın.",cont:"Şekil çizmeye devam etmek için tıklayın.",end:"Bu şekli tamamlamak için ilk noktayı tıklayın."}},polyline:{error:"<strong>Hata:</strong> şekil kenarları kesişemez!",tooltip:{start:"Hat çizmeye başlamak için tıklayın.",cont:"Hat çizmeye devam etmek için tıklayın.",end:"Bu hattı tamamlamak için ilk noktayı tıklayın."}},rectangle:{tooltip:{start:"Dikdörtgen çizmek için tıklayın ve sürükleyin."}},simpleshape:{tooltip:{end:"Çizimi bitirmek için fareyi bırakın."}}}},edit:{toolbar:{actions:{save:{title:"Değişiklikleri kaydet.",text:"Kaydet"},cancel:{title:"Düzenlemeyi iptal et, tüm değişiklikleri çıkar.",text:"İptal"},clearAll:{title:"Tüm katmanları temizle.",text:"Hepsini temizle"}},buttons:{edit:"Katmanları düzenle.",editDisabled:"Düzenlenecek katman bulunamadı.",remove:"Katmanları sil.",removeDisabled:"Silinecek katman bulunamadı."}},handlers:{edit:{tooltip:{text:"Çizimi düzenlemek için köşeleri veya işaretçiyi sürükleyin.",subtext:"Değişiklikleri geri almak için iptale tıklayın."}},remove:{tooltip:{text:"Çizimi silmek için tıklayın"}}}}},Br=function(s){var l=an;switch(s.toLocaleLowerCase()){case"de":case"de-at":case"de-be":case"de-ch":case"de-de":case"de-li":case"de-lu":case"de-de.utf-8":case"german":l=Lr;break;case"en":case"en-us":case"en-ca":case"en-gb":case"en-us.utf-8":case"english":l=an;break;case"ar":case"ar-ae":case"ar-eg":case"arabic":l=Ar;break;case"fi":case"fi-fi":case"fi-fi.utf-8":case"finnish":l=kr;break;case"fr":case"fr-us":case"fr-ca":case"fr-us.utf-8":case"french":l=br;break;case"es":case"es-us":case"es-ca":case"es-us.utf-8":case"spanish":l=wr;break;case"sk":case"sk-sk":case"sk-sk.utf-8":case"slovak":l=Dr;break;case"pl":case"pl-pl":case"pl-pl.utf-8":case"polish":l=Cr;break;case"pt":case"pt-pt":case"pt-pt.utf-8":case"portuguese":l=zr;break;case"uk":case"uk-ua":case"uk-ua.utf-8":case"ukrainian":l=Or;break;case"cs":case"cs-cz":case"cs-cz.utf-8":case"czech":l=yr;break;case"ru":case"ru-ru":case"ru-ru.utf-8":case"russian":l=Sr;break;case"ka":case"ka-ka":case"ka-ka.utf-8":case"georgian":l=Tr;break;case"no":case"no-no":case"no-no.utf-8":case"norwegian":l=Mr;break;case"am":case"am-et":case"am-et.utf-8":case"amharic":l=vr;break;case"nl":case"nl-nl":case"nl-nl.utf-8":case"nl-be":case"nl-be.utf-8":case"dutch":case"belgian":case"flemish":l=Er;break;case"it":case"it-it":case"it-ch":case"it-it.utf-8":case"it-ch.utf-8":case"italiano":case"italian":l=Pr;break;case"hu":case"hu-HU":case"hu-hu":case"hu-HU.utf-8":case"hu-hu.utf-8":case"magyar":case"hungarian":l=xr;break;case"zh":case"zh-cn":case"zh-cn.utf-8":case"chinese":l=Ir;break;case"tr":case"tr-tr":case"tr-tr.utf-8":case"turkish":l=Rr;break;default:throw new Error("[language] not found")}try{L&&L.drawLocal&&(L.drawLocal=l)}catch{}return l};F.Edit.Circle=F.Edit.CircleMarker.extend({_createResizeMarker:function(){var s=this._shape.getLatLng(),l=this._getResizeMarkerPoint(s);this._resizeMarkers=[],this._resizeMarkers.push(this._createMarker(l,this.options.resizeIcon))},_getResizeMarkerPoint:function(s){var l=this._shape._radius*Math.cos(Math.PI/4),c=this._map.project(s);return this._map.unproject([c.x+l,c.y-l])},_resize:function(s){var l=this._moveMarker.getLatLng(),c;F.GeometryUtil.isVersion07x()?c=l.distanceTo(s):c=this._map.distance(l,s),this._shape.setRadius(c),this._map.fire(F.Draw.Event.EDITRESIZE,{layer:this._shape})}});const Nr=$.defineComponent({name:"MapView",props:{loadPolygon:Boolean,reverseCoordinatesPolygon:Boolean,dataPolygon:Object,configurationMap:Object,coordinatesMap:Array,getGeoJSON:Function,getCoodMarker:Function},data(){return{idMap:"",mapRender:null,markerRender:null,renderCoordinates:this.coordinatesMap,renderGeojson:this.dataPolygon,markerIcon:{iconUrl:oi,iconSize:[25,41],iconAnchor:[12,41]},layersFeatureGroup:null,featuresData:null}},mounted(){this.makeid(10),this.renderMap()},methods:{getLayersFeaturesInGeoJson(){const s=F.geoJSON().addTo(this.mapRender);return this.featuresData.eachLayer(c=>{s.addLayer(c)}),JSON.stringify([s.toGeoJSON()])},triggerSaveEdit(){var l,c,d;(d=(c=(l=(document.getElementsByClassName("leaflet-draw-actions leaflet-draw-actions-top")||document.getElementsByClassName("leaflet-draw-actions leaflet-draw-actions-top leaflet-draw-actions-bottom"))[0])==null?void 0:l.querySelector("li"))==null?void 0:c.querySelector("a"))==null||d.click()},makeid(s){let l="";const c="abcdefghijklmnopqrstuvwxyz",d=c.length;let n=0;for(;n<s;)l+=c.charAt(Math.floor(Math.random()*d)),n+=1;this.idMap=l},renderMap(){Br("es"),setTimeout(()=>{this.loadPolygon?this.viewMap():this.createMap()},500)},createMap(){var h,f,m,_,v,w,E,z;const s=this.configurationMap?this.configurationMap.iconMarker?this.configurationMap.iconMarker:this.markerIcon:this.markerIcon;window.type=!0;const l=F.map(this.idMap).setView([this.renderCoordinates?this.renderCoordinates[0]:0,this.renderCoordinates?this.renderCoordinates[1]:0],this.renderCoordinates?this.renderCoordinates[2]:0);if(this.mapRender=l,F.tileLayer("https://tile.openstreetmap.org/{z}/{x}/{y}.png",{attribution:'&copy; <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>'}).addTo(l),l.setZoom((h=this.configurationMap)==null?void 0:h.maxZoom),this.configurationMap.renderMarker){const P=F.marker([this.renderCoordinates?this.renderCoordinates[0]:0,this.renderCoordinates?this.renderCoordinates[1]:0],{icon:F.icon(s),draggable:this.configurationMap.dragMarker}).addTo(l);this.markerRender=P,this.getCoodMarker&&P.on("dragend",T=>{const D=T.target.getLatLng(),N=D.lat,b=D.lng;this.getCoodMarker&&this.getCoodMarker(N,b)})}const c=F.featureGroup();this.featuresData=c;const d=c.addTo(l);let n={featureGroup:d,edit:!1,remove:(f=this.configurationMap)==null?void 0:f.editFigures.remove};(m=this.configurationMap)!=null&&m.editFigures.edit&&(n={featureGroup:d,...(_=this.configurationMap)==null?void 0:_.editFigures.edit,remove:(v=this.configurationMap)==null?void 0:v.editFigures.remove});const r=new F.Control.Draw({position:"topleft",draw:{polygon:(w=this.configurationMap)==null?void 0:w.createFigures.polygon,circle:!1,rectangle:(E=this.configurationMap)!=null&&E.createFigures.rectangle?{shapeOptions:{color:"blue"}}:!1,marker:(z=this.configurationMap)!=null&&z.createFigures.marker?{icon:F.icon(s)}:!1,polyline:!1,circlemarker:!1},edit:n});l.addControl(r),l.on("draw:created",P=>{const T=P.layer;d.addLayer(T);const D=T.toGeoJSON();this.getGeoJSON&&this.getGeoJSON([D])}),l.on("draw:edited",P=>{P.layers.eachLayer(D=>{const N=D.toGeoJSON();this.getGeoJSON&&this.getGeoJSON([N])})})},viewMap(){var f,m,_,v,w,E,z,P;const s=this.configurationMap?this.configurationMap.iconMarker?this.configurationMap.iconMarker:this.markerIcon:this.markerIcon,l=F.map(this.idMap).setView([this.renderCoordinates?this.renderCoordinates[0]:0,this.renderCoordinates?this.renderCoordinates[1]:0],this.renderCoordinates?this.renderCoordinates[2]:0);this.mapRender=l,F.tileLayer("https://tile.openstreetmap.org/{z}/{x}/{y}.png",{attribution:'&copy; <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>'}).addTo(l),l.setZoom((f=this.configurationMap)==null?void 0:f.maxZoom);const c=F.featureGroup();this.featuresData=c;const d=c.addTo(l);let n={featureGroup:d,edit:!1,remove:(m=this.configurationMap)==null?void 0:m.editFigures.remove};(_=this.configurationMap)!=null&&_.editFigures.edit&&(n={featureGroup:d,...(v=this.configurationMap)==null?void 0:v.editFigures.edit,remove:(w=this.configurationMap)==null?void 0:w.editFigures.remove});const r=new F.Control.Draw({position:"topleft",draw:{polygon:(E=this.configurationMap)==null?void 0:E.createFigures.polygon,circle:!1,rectangle:(z=this.configurationMap)!=null&&z.createFigures.rectangle?{shapeOptions:{color:"blue"}}:!1,marker:(P=this.configurationMap)!=null&&P.createFigures.marker?{icon:F.icon(s)}:!1,polyline:!1,circlemarker:!1},edit:n});l.addControl(r);const h=this.renderGeojson;if(h&&h.length){h.forEach(D=>{D.type==="FeatureCollection"?D.features.forEach(N=>{(N.geometry.type==="Polygon"||N.geometry.type==="MultiPolygon")&&F.geoJSON(N).addTo(d)}):D.type==="Feature"&&(D.geometry.type==="Polygon"||D.geometry.type==="MultiPolygon")&&F.geoJSON(D).addTo(d)});const T=d.getBounds();l.fitBounds(T)}l.on("draw:created",T=>{const D=T.layer;d.addLayer(D);const N=D.toGeoJSON();this.getGeoJSON&&this.getGeoJSON(N)}),l.on("draw:edited",T=>{T.layers.eachLayer(N=>{const b=N.toGeoJSON();this.getGeoJSON&&this.getGeoJSON(b)})})}},watch:{coordinatesMap(s){if(this.renderCoordinates=s,this.mapRender&&this.markerRender){const l=F.latLng([s[0],s[1]]);this.mapRender.setView([s[0],s[1]],s[2]),this.markerRender.setLatLng(l)}},dataPolygon(s,l){this.renderGeojson=s}}}),Zr=["id"];function Hr(s,l,c,d,n,r){var h;return $.openBlock(),$.createElementBlock("div",{class:"map-container",style:$.normalizeStyle(`height:${(h=s.configurationMap)==null?void 0:h.height}`)},[$.createElementVNode("div",{id:s.idMap,style:{height:"100%"}},null,8,Zr)],4)}const Fr=sn(Nr,[["render",Hr]]);function ln(s,l){return function(){return s.apply(l,arguments)}}const{toString:Ur}=Object.prototype,{getPrototypeOf:ri}=Object,xe=(s=>l=>{const c=Ur.call(l);return s[c]||(s[c]=c.slice(8,-1).toLowerCase())})(Object.create(null)),yt=s=>(s=s.toLowerCase(),l=>xe(l)===s),Pe=s=>l=>typeof l===s,{isArray:qt}=Array,ie=Pe("undefined");function jr(s){return s!==null&&!ie(s)&&s.constructor!==null&&!ie(s.constructor)&&ft(s.constructor.isBuffer)&&s.constructor.isBuffer(s)}const hn=yt("ArrayBuffer");function Gr(s){let l;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?l=ArrayBuffer.isView(s):l=s&&s.buffer&&hn(s.buffer),l}const qr=Pe("string"),ft=Pe("function"),cn=Pe("number"),Te=s=>s!==null&&typeof s=="object",Wr=s=>s===!0||s===!1,Ee=s=>{if(xe(s)!=="object")return!1;const l=ri(s);return(l===null||l===Object.prototype||Object.getPrototypeOf(l)===null)&&!(Symbol.toStringTag in s)&&!(Symbol.iterator in s)},Kr=yt("Date"),Vr=yt("File"),Jr=yt("Blob"),Yr=yt("FileList"),Xr=s=>Te(s)&&ft(s.pipe),$r=s=>{let l;return s&&(typeof FormData=="function"&&s instanceof FormData||ft(s.append)&&((l=xe(s))==="formdata"||l==="object"&&ft(s.toString)&&s.toString()==="[object FormData]"))},Qr=yt("URLSearchParams"),ts=s=>s.trim?s.trim():s.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ne(s,l,{allOwnKeys:c=!1}={}){if(s===null||typeof s>"u")return;let d,n;if(typeof s!="object"&&(s=[s]),qt(s))for(d=0,n=s.length;d<n;d++)l.call(null,s[d],d,s);else{const r=c?Object.getOwnPropertyNames(s):Object.keys(s),h=r.length;let f;for(d=0;d<h;d++)f=r[d],l.call(null,s[f],f,s)}}function un(s,l){l=l.toLowerCase();const c=Object.keys(s);let d=c.length,n;for(;d-- >0;)if(n=c[d],l===n.toLowerCase())return n;return null}const dn=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),fn=s=>!ie(s)&&s!==dn;function si(){const{caseless:s}=fn(this)&&this||{},l={},c=(d,n)=>{const r=s&&un(l,n)||n;Ee(l[r])&&Ee(d)?l[r]=si(l[r],d):Ee(d)?l[r]=si({},d):qt(d)?l[r]=d.slice():l[r]=d};for(let d=0,n=arguments.length;d<n;d++)arguments[d]&&ne(arguments[d],c);return l}const es=(s,l,c,{allOwnKeys:d}={})=>(ne(l,(n,r)=>{c&&ft(n)?s[r]=ln(n,c):s[r]=n},{allOwnKeys:d}),s),is=s=>(s.charCodeAt(0)===65279&&(s=s.slice(1)),s),ns=(s,l,c,d)=>{s.prototype=Object.create(l.prototype,d),s.prototype.constructor=s,Object.defineProperty(s,"super",{value:l.prototype}),c&&Object.assign(s.prototype,c)},os=(s,l,c,d)=>{let n,r,h;const f={};if(l=l||{},s==null)return l;do{for(n=Object.getOwnPropertyNames(s),r=n.length;r-- >0;)h=n[r],(!d||d(h,s,l))&&!f[h]&&(l[h]=s[h],f[h]=!0);s=c!==!1&&ri(s)}while(s&&(!c||c(s,l))&&s!==Object.prototype);return l},rs=(s,l,c)=>{s=String(s),(c===void 0||c>s.length)&&(c=s.length),c-=l.length;const d=s.indexOf(l,c);return d!==-1&&d===c},ss=s=>{if(!s)return null;if(qt(s))return s;let l=s.length;if(!cn(l))return null;const c=new Array(l);for(;l-- >0;)c[l]=s[l];return c},as=(s=>l=>s&&l instanceof s)(typeof Uint8Array<"u"&&ri(Uint8Array)),ls=(s,l)=>{const d=(s&&s[Symbol.iterator]).call(s);let n;for(;(n=d.next())&&!n.done;){const r=n.value;l.call(s,r[0],r[1])}},hs=(s,l)=>{let c;const d=[];for(;(c=s.exec(l))!==null;)d.push(c);return d},cs=yt("HTMLFormElement"),us=s=>s.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(c,d,n){return d.toUpperCase()+n}),pn=(({hasOwnProperty:s})=>(l,c)=>s.call(l,c))(Object.prototype),ds=yt("RegExp"),_n=(s,l)=>{const c=Object.getOwnPropertyDescriptors(s),d={};ne(c,(n,r)=>{l(n,r,s)!==!1&&(d[r]=n)}),Object.defineProperties(s,d)},fs=s=>{_n(s,(l,c)=>{if(ft(s)&&["arguments","caller","callee"].indexOf(c)!==-1)return!1;const d=s[c];if(ft(d)){if(l.enumerable=!1,"writable"in l){l.writable=!1;return}l.set||(l.set=()=>{throw Error("Can not rewrite read-only method '"+c+"'")})}})},ps=(s,l)=>{const c={},d=n=>{n.forEach(r=>{c[r]=!0})};return qt(s)?d(s):d(String(s).split(l)),c},_s=()=>{},ms=(s,l)=>(s=+s,Number.isFinite(s)?s:l),ai="abcdefghijklmnopqrstuvwxyz",mn="0123456789",gn={DIGIT:mn,ALPHA:ai,ALPHA_DIGIT:ai+ai.toUpperCase()+mn},gs=(s=16,l=gn.ALPHA_DIGIT)=>{let c="";const{length:d}=l;for(;s--;)c+=l[Math.random()*d|0];return c};function vs(s){return!!(s&&ft(s.append)&&s[Symbol.toStringTag]==="FormData"&&s[Symbol.iterator])}const ys=s=>{const l=new Array(10),c=(d,n)=>{if(Te(d)){if(l.indexOf(d)>=0)return;if(!("toJSON"in d)){l[n]=d;const r=qt(d)?[]:{};return ne(d,(h,f)=>{const m=c(h,n+1);!ie(m)&&(r[f]=m)}),l[n]=void 0,r}}return d};return c(s,0)},Ls=yt("AsyncFunction"),k={isArray:qt,isArrayBuffer:hn,isBuffer:jr,isFormData:$r,isArrayBufferView:Gr,isString:qr,isNumber:cn,isBoolean:Wr,isObject:Te,isPlainObject:Ee,isUndefined:ie,isDate:Kr,isFile:Vr,isBlob:Jr,isRegExp:ds,isFunction:ft,isStream:Xr,isURLSearchParams:Qr,isTypedArray:as,isFileList:Yr,forEach:ne,merge:si,extend:es,trim:ts,stripBOM:is,inherits:ns,toFlatObject:os,kindOf:xe,kindOfTest:yt,endsWith:rs,toArray:ss,forEachEntry:ls,matchAll:hs,isHTMLForm:cs,hasOwnProperty:pn,hasOwnProp:pn,reduceDescriptors:_n,freezeMethods:fs,toObjectSet:ps,toCamelCase:us,noop:_s,toFiniteNumber:ms,findKey:un,global:dn,isContextDefined:fn,ALPHABET:gn,generateString:gs,isSpecCompliantForm:vs,toJSONObject:ys,isAsyncFn:Ls,isThenable:s=>s&&(Te(s)||ft(s))&&ft(s.then)&&ft(s.catch)};function G(s,l,c,d,n){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=s,this.name="AxiosError",l&&(this.code=l),c&&(this.config=c),d&&(this.request=d),n&&(this.response=n)}k.inherits(G,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:k.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const vn=G.prototype,yn={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(s=>{yn[s]={value:s}}),Object.defineProperties(G,yn),Object.defineProperty(vn,"isAxiosError",{value:!0}),G.from=(s,l,c,d,n,r)=>{const h=Object.create(vn);return k.toFlatObject(s,h,function(m){return m!==Error.prototype},f=>f!=="isAxiosError"),G.call(h,s.message,l,c,d,n),h.cause=s,h.name=s.name,r&&Object.assign(h,r),h};const ws=null;function li(s){return k.isPlainObject(s)||k.isArray(s)}function Ln(s){return k.endsWith(s,"[]")?s.slice(0,-2):s}function wn(s,l,c){return s?s.concat(l).map(function(n,r){return n=Ln(n),!c&&r?"["+n+"]":n}).join(c?".":""):l}function ks(s){return k.isArray(s)&&!s.some(li)}const bs=k.toFlatObject(k,{},null,function(l){return/^is[A-Z]/.test(l)});function Me(s,l,c){if(!k.isObject(s))throw new TypeError("target must be an object");l=l||new FormData,c=k.toFlatObject(c,{metaTokens:!0,dots:!1,indexes:!1},!1,function(T,D){return!k.isUndefined(D[T])});const d=c.metaTokens,n=c.visitor||v,r=c.dots,h=c.indexes,m=(c.Blob||typeof Blob<"u"&&Blob)&&k.isSpecCompliantForm(l);if(!k.isFunction(n))throw new TypeError("visitor must be a function");function _(P){if(P===null)return"";if(k.isDate(P))return P.toISOString();if(!m&&k.isBlob(P))throw new G("Blob is not supported. Use a Buffer instead.");return k.isArrayBuffer(P)||k.isTypedArray(P)?m&&typeof Blob=="function"?new Blob([P]):Buffer.from(P):P}function v(P,T,D){let N=P;if(P&&!D&&typeof P=="object"){if(k.endsWith(T,"{}"))T=d?T:T.slice(0,-2),P=JSON.stringify(P);else if(k.isArray(P)&&ks(P)||(k.isFileList(P)||k.endsWith(T,"[]"))&&(N=k.toArray(P)))return T=Ln(T),N.forEach(function(M,Z){!(k.isUndefined(M)||M===null)&&l.append(h===!0?wn([T],Z,r):h===null?T:T+"[]",_(M))}),!1}return li(P)?!0:(l.append(wn(D,T,r),_(P)),!1)}const w=[],E=Object.assign(bs,{defaultVisitor:v,convertValue:_,isVisitable:li});function z(P,T){if(!k.isUndefined(P)){if(w.indexOf(P)!==-1)throw Error("Circular reference detected in "+T.join("."));w.push(P),k.forEach(P,function(N,b){(!(k.isUndefined(N)||N===null)&&n.call(l,N,k.isString(b)?b.trim():b,T,E))===!0&&z(N,T?T.concat(b):[b])}),w.pop()}}if(!k.isObject(s))throw new TypeError("data must be an object");return z(s),l}function kn(s){const l={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(s).replace(/[!'()~]|%20|%00/g,function(d){return l[d]})}function hi(s,l){this._pairs=[],s&&Me(s,this,l)}const bn=hi.prototype;bn.append=function(l,c){this._pairs.push([l,c])},bn.toString=function(l){const c=l?function(d){return l.call(this,d,kn)}:kn;return this._pairs.map(function(n){return c(n[0])+"="+c(n[1])},"").join("&")};function xs(s){return encodeURIComponent(s).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function xn(s,l,c){if(!l)return s;const d=c&&c.encode||xs,n=c&&c.serialize;let r;if(n?r=n(l,c):r=k.isURLSearchParams(l)?l.toString():new hi(l,c).toString(d),r){const h=s.indexOf("#");h!==-1&&(s=s.slice(0,h)),s+=(s.indexOf("?")===-1?"?":"&")+r}return s}class Ps{constructor(){this.handlers=[]}use(l,c,d){return this.handlers.push({fulfilled:l,rejected:c,synchronous:d?d.synchronous:!1,runWhen:d?d.runWhen:null}),this.handlers.length-1}eject(l){this.handlers[l]&&(this.handlers[l]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(l){k.forEach(this.handlers,function(d){d!==null&&l(d)})}}const Pn=Ps,Tn={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Ts=typeof URLSearchParams<"u"?URLSearchParams:hi,Es=typeof FormData<"u"?FormData:null,Ms=typeof Blob<"u"?Blob:null,Cs=(()=>{let s;return typeof navigator<"u"&&((s=navigator.product)==="ReactNative"||s==="NativeScript"||s==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),zs=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),Lt={isBrowser:!0,classes:{URLSearchParams:Ts,FormData:Es,Blob:Ms},isStandardBrowserEnv:Cs,isStandardBrowserWebWorkerEnv:zs,protocols:["http","https","file","blob","url","data"]};function Ss(s,l){return Me(s,new Lt.classes.URLSearchParams,Object.assign({visitor:function(c,d,n,r){return Lt.isNode&&k.isBuffer(c)?(this.append(d,c.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},l))}function Ds(s){return k.matchAll(/\w+|\[(\w*)]/g,s).map(l=>l[0]==="[]"?"":l[1]||l[0])}function Os(s){const l={},c=Object.keys(s);let d;const n=c.length;let r;for(d=0;d<n;d++)r=c[d],l[r]=s[r];return l}function En(s){function l(c,d,n,r){let h=c[r++];const f=Number.isFinite(+h),m=r>=c.length;return h=!h&&k.isArray(n)?n.length:h,m?(k.hasOwnProp(n,h)?n[h]=[n[h],d]:n[h]=d,!f):((!n[h]||!k.isObject(n[h]))&&(n[h]=[]),l(c,d,n[h],r)&&k.isArray(n[h])&&(n[h]=Os(n[h])),!f)}if(k.isFormData(s)&&k.isFunction(s.entries)){const c={};return k.forEachEntry(s,(d,n)=>{l(Ds(d),n,c,0)}),c}return null}const As={"Content-Type":void 0};function Is(s,l,c){if(k.isString(s))try{return(l||JSON.parse)(s),k.trim(s)}catch(d){if(d.name!=="SyntaxError")throw d}return(c||JSON.stringify)(s)}const Ce={transitional:Tn,adapter:["xhr","http"],transformRequest:[function(l,c){const d=c.getContentType()||"",n=d.indexOf("application/json")>-1,r=k.isObject(l);if(r&&k.isHTMLForm(l)&&(l=new FormData(l)),k.isFormData(l))return n&&n?JSON.stringify(En(l)):l;if(k.isArrayBuffer(l)||k.isBuffer(l)||k.isStream(l)||k.isFile(l)||k.isBlob(l))return l;if(k.isArrayBufferView(l))return l.buffer;if(k.isURLSearchParams(l))return c.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),l.toString();let f;if(r){if(d.indexOf("application/x-www-form-urlencoded")>-1)return Ss(l,this.formSerializer).toString();if((f=k.isFileList(l))||d.indexOf("multipart/form-data")>-1){const m=this.env&&this.env.FormData;return Me(f?{"files[]":l}:l,m&&new m,this.formSerializer)}}return r||n?(c.setContentType("application/json",!1),Is(l)):l}],transformResponse:[function(l){const c=this.transitional||Ce.transitional,d=c&&c.forcedJSONParsing,n=this.responseType==="json";if(l&&k.isString(l)&&(d&&!this.responseType||n)){const h=!(c&&c.silentJSONParsing)&&n;try{return JSON.parse(l)}catch(f){if(h)throw f.name==="SyntaxError"?G.from(f,G.ERR_BAD_RESPONSE,this,null,this.response):f}}return l}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Lt.classes.FormData,Blob:Lt.classes.Blob},validateStatus:function(l){return l>=200&&l<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};k.forEach(["delete","get","head"],function(l){Ce.headers[l]={}}),k.forEach(["post","put","patch"],function(l){Ce.headers[l]=k.merge(As)});const ci=Ce,Rs=k.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Bs=s=>{const l={};let c,d,n;return s&&s.split(`
4
+ */(function(s,l){(function(c,d){d(l)})(Bt,function(c){var d="1.9.3";function n(t){var e,i,o,a;for(i=1,o=arguments.length;i<o;i++){a=arguments[i];for(e in a)t[e]=a[e]}return t}var r=Object.create||function(){function t(){}return function(e){return t.prototype=e,new t}}();function h(t,e){var i=Array.prototype.slice;if(t.bind)return t.bind.apply(t,i.call(arguments,1));var o=i.call(arguments,2);return function(){return t.apply(e,o.length?o.concat(i.call(arguments)):arguments)}}var f=0;function m(t){return"_leaflet_id"in t||(t._leaflet_id=++f),t._leaflet_id}function _(t,e,i){var o,a,u,p;return p=function(){o=!1,a&&(u.apply(i,a),a=!1)},u=function(){o?a=arguments:(t.apply(i,arguments),setTimeout(p,e),o=!0)},u}function v(t,e,i){var o=e[1],a=e[0],u=o-a;return t===o&&i?t:((t-a)%u+u)%u+a}function w(){return!1}function T(t,e){if(e===!1)return t;var i=Math.pow(10,e===void 0?6:e);return Math.round(t*i)/i}function z(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function P(t){return z(t).split(/\s+/)}function E(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 D(t,e,i){var o=[];for(var a in t)o.push(encodeURIComponent(i?a.toUpperCase():a)+"="+encodeURIComponent(t[a]));return(!e||e.indexOf("?")===-1?"?":"&")+o.join("&")}var N=/\{ *([\w_ -]+) *\}/g;function b(t,e){return t.replace(N,function(i,o){var a=e[o];if(a===void 0)throw new Error("No value provided for variable "+i);return typeof a=="function"&&(a=a(e)),a})}var M=Array.isArray||function(t){return Object.prototype.toString.call(t)==="[object Array]"};function Z(t,e){for(var i=0;i<t.length;i++)if(t[i]===e)return i;return-1}var U="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function J(t){return window["webkit"+t]||window["moz"+t]||window["ms"+t]}var nt=0;function Kt(t){var e=+new Date,i=Math.max(0,16-(e-nt));return nt=e+i,window.setTimeout(t,i)}var lt=window.requestAnimationFrame||J("RequestAnimationFrame")||Kt,Nt=window.cancelAnimationFrame||J("CancelAnimationFrame")||J("CancelRequestAnimationFrame")||function(t){window.clearTimeout(t)};function rt(t,e,i){if(i&&lt===Kt)t.call(e);else return lt.call(window,h(t,e))}function at(t){t&&Nt.call(window,t)}var oa={__proto__:null,extend:n,create:r,bind:h,get lastId(){return f},stamp:m,throttle:_,wrapNum:v,falseFn:w,formatNum:T,trim:z,splitWords:P,setOptions:E,getParamString:D,template:b,isArray:M,indexOf:Z,emptyImageUrl:U,requestFn:lt,cancelFn:Nt,requestAnimFrame:rt,cancelAnimFrame:at};function Et(){}Et.extend=function(t){var e=function(){E(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},i=e.__super__=this.prototype,o=r(i);o.constructor=e,e.prototype=o;for(var a in this)Object.prototype.hasOwnProperty.call(this,a)&&a!=="prototype"&&a!=="__super__"&&(e[a]=this[a]);return t.statics&&n(e,t.statics),t.includes&&(ra(t.includes),n.apply(null,[o].concat(t.includes))),n(o,t),delete o.statics,delete o.includes,o.options&&(o.options=i.options?r(i.options):{},n(o.options,t.options)),o._initHooks=[],o.callInitHooks=function(){if(!this._initHooksCalled){i.callInitHooks&&i.callInitHooks.call(this),this._initHooksCalled=!0;for(var u=0,p=o._initHooks.length;u<p;u++)o._initHooks[u].call(this)}},e},Et.include=function(t){var e=this.prototype.options;return n(this.prototype,t),t.options&&(this.prototype.options=e,this.mergeOptions(t.options)),this},Et.mergeOptions=function(t){return n(this.prototype.options,t),this},Et.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 ra(t){if(!(typeof L>"u"||!L||!L.Mixin)){t=M(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 ut={on:function(t,e,i){if(typeof t=="object")for(var o in t)this._on(o,t[o],e);else{t=P(t);for(var a=0,u=t.length;a<u;a++)this._on(t[a],e,i)}return this},off:function(t,e,i){if(!arguments.length)delete this._events;else if(typeof t=="object")for(var o in t)this._off(o,t[o],e);else{t=P(t);for(var a=arguments.length===1,u=0,p=t.length;u<p;u++)a?this._off(t[u]):this._off(t[u],e,i)}return this},_on:function(t,e,i,o){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 a={fn:e,ctx:i};o&&(a.once=!0),this._events=this._events||{},this._events[t]=this._events[t]||[],this._events[t].push(a)}},_off:function(t,e,i){var o,a,u;if(this._events&&(o=this._events[t],!!o)){if(arguments.length===1){if(this._firingCount)for(a=0,u=o.length;a<u;a++)o[a].fn=w;delete this._events[t];return}if(typeof e!="function"){console.warn("wrong listener type: "+typeof e);return}var p=this._listens(t,e,i);if(p!==!1){var g=o[p];this._firingCount&&(g.fn=w,this._events[t]=o=o.slice()),o.splice(p,1)}}},fire:function(t,e,i){if(!this.listens(t,i))return this;var o=n({},e,{type:t,target:this,sourceTarget:e&&e.sourceTarget||this});if(this._events){var a=this._events[t];if(a){this._firingCount=this._firingCount+1||1;for(var u=0,p=a.length;u<p;u++){var g=a[u],y=g.fn;g.once&&this.off(t,y,g.ctx),y.call(g.ctx||this,o)}this._firingCount--}}return i&&this._propagateEvent(o),this},listens:function(t,e,i,o){typeof t!="string"&&console.warn('"string" type argument expected');var a=e;typeof e!="function"&&(o=!!e,a=void 0,i=void 0);var u=this._events&&this._events[t];if(u&&u.length&&this._listens(t,a,i)!==!1)return!0;if(o){for(var p in this._eventParents)if(this._eventParents[p].listens(t,e,i,o))return!0}return!1},_listens:function(t,e,i){if(!this._events)return!1;var o=this._events[t]||[];if(!e)return!!o.length;i===this&&(i=void 0);for(var a=0,u=o.length;a<u;a++)if(o[a].fn===e&&o[a].ctx===i)return a;return!1},once:function(t,e,i){if(typeof t=="object")for(var o in t)this._on(o,t[o],e,!0);else{t=P(t);for(var a=0,u=t.length;a<u;a++)this._on(t[a],e,i,!0)}return this},addEventParent:function(t){return this._eventParents=this._eventParents||{},this._eventParents[m(t)]=t,this},removeEventParent:function(t){return this._eventParents&&delete this._eventParents[m(t)],this},_propagateEvent:function(t){for(var e in this._eventParents)this._eventParents[e].fire(t.type,n({layer:t.target,propagatedFrom:t.target},t),!0)}};ut.addEventListener=ut.on,ut.removeEventListener=ut.clearAllEventListeners=ut.off,ut.addOneTimeEventListener=ut.once,ut.fireEvent=ut.fire,ut.hasEventListeners=ut.listens;var se=Et.extend(ut);function I(t,e,i){this.x=i?Math.round(t):t,this.y=i?Math.round(e):e}var Bn=Math.trunc||function(t){return t>0?Math.floor(t):Math.ceil(t)};I.prototype={clone:function(){return new I(this.x,this.y)},add:function(t){return this.clone()._add(A(t))},_add:function(t){return this.x+=t.x,this.y+=t.y,this},subtract:function(t){return this.clone()._subtract(A(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 I(this.x*t.x,this.y*t.y)},unscaleBy:function(t){return new I(this.x/t.x,this.y/t.y)},round:function(){return this.clone()._round()},_round:function(){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=Bn(this.x),this.y=Bn(this.y),this},distanceTo:function(t){t=A(t);var e=t.x-this.x,i=t.y-this.y;return Math.sqrt(e*e+i*i)},equals:function(t){return t=A(t),t.x===this.x&&t.y===this.y},contains:function(t){return t=A(t),Math.abs(t.x)<=Math.abs(this.x)&&Math.abs(t.y)<=Math.abs(this.y)},toString:function(){return"Point("+T(this.x)+", "+T(this.y)+")"}};function A(t,e,i){return t instanceof I?t:M(t)?new I(t[0],t[1]):t==null?t:typeof t=="object"&&"x"in t&&"y"in t?new I(t.x,t.y):new I(t,e,i)}function Y(t,e){if(t)for(var i=e?[t,e]:t,o=0,a=i.length;o<a;o++)this.extend(i[o])}Y.prototype={extend:function(t){var e,i;if(!t)return this;if(t instanceof I||typeof t[0]=="number"||"x"in t)e=i=A(t);else if(t=ht(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 A((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,t)},getBottomLeft:function(){return A(this.min.x,this.max.y)},getTopRight:function(){return A(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(t){var e,i;return typeof t[0]=="number"||t instanceof I?t=A(t):t=ht(t),t instanceof Y?(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=ht(t);var e=this.min,i=this.max,o=t.min,a=t.max,u=a.x>=e.x&&o.x<=i.x,p=a.y>=e.y&&o.y<=i.y;return u&&p},overlaps:function(t){t=ht(t);var e=this.min,i=this.max,o=t.min,a=t.max,u=a.x>e.x&&o.x<i.x,p=a.y>e.y&&o.y<i.y;return u&&p},isValid:function(){return!!(this.min&&this.max)},pad:function(t){var e=this.min,i=this.max,o=Math.abs(e.x-i.x)*t,a=Math.abs(e.y-i.y)*t;return ht(A(e.x-o,e.y-a),A(i.x+o,i.y+a))},equals:function(t){return t?(t=ht(t),this.min.equals(t.getTopLeft())&&this.max.equals(t.getBottomRight())):!1}};function ht(t,e){return!t||t instanceof Y?t:new Y(t,e)}function ct(t,e){if(t)for(var i=e?[t,e]:t,o=0,a=i.length;o<a;o++)this.extend(i[o])}ct.prototype={extend:function(t){var e=this._southWest,i=this._northEast,o,a;if(t instanceof W)o=t,a=t;else if(t instanceof ct){if(o=t._southWest,a=t._northEast,!o||!a)return this}else return t?this.extend(K(t)||ot(t)):this;return!e&&!i?(this._southWest=new W(o.lat,o.lng),this._northEast=new W(a.lat,a.lng)):(e.lat=Math.min(o.lat,e.lat),e.lng=Math.min(o.lng,e.lng),i.lat=Math.max(a.lat,i.lat),i.lng=Math.max(a.lng,i.lng)),this},pad:function(t){var e=this._southWest,i=this._northEast,o=Math.abs(e.lat-i.lat)*t,a=Math.abs(e.lng-i.lng)*t;return new ct(new W(e.lat-o,e.lng-a),new W(i.lat+o,i.lng+a))},getCenter:function(){return new W((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 W(this.getNorth(),this.getWest())},getSouthEast:function(){return new W(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 W||"lat"in t?t=K(t):t=ot(t);var e=this._southWest,i=this._northEast,o,a;return t instanceof ct?(o=t.getSouthWest(),a=t.getNorthEast()):o=a=t,o.lat>=e.lat&&a.lat<=i.lat&&o.lng>=e.lng&&a.lng<=i.lng},intersects:function(t){t=ot(t);var e=this._southWest,i=this._northEast,o=t.getSouthWest(),a=t.getNorthEast(),u=a.lat>=e.lat&&o.lat<=i.lat,p=a.lng>=e.lng&&o.lng<=i.lng;return u&&p},overlaps:function(t){t=ot(t);var e=this._southWest,i=this._northEast,o=t.getSouthWest(),a=t.getNorthEast(),u=a.lat>e.lat&&o.lat<i.lat,p=a.lng>e.lng&&o.lng<i.lng;return u&&p},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(t,e){return t?(t=ot(t),this._southWest.equals(t.getSouthWest(),e)&&this._northEast.equals(t.getNorthEast(),e)):!1},isValid:function(){return!!(this._southWest&&this._northEast)}};function ot(t,e){return t instanceof ct?t:new ct(t,e)}function W(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)}W.prototype={equals:function(t,e){if(!t)return!1;t=K(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("+T(this.lat,t)+", "+T(this.lng,t)+")"},distanceTo:function(t){return Ot.distance(this,K(t))},wrap:function(){return Ot.wrapLatLng(this)},toBounds:function(t){var e=180*t/40075017,i=e/Math.cos(Math.PI/180*this.lat);return ot([this.lat-e,this.lng-i],[this.lat+e,this.lng+i])},clone:function(){return new W(this.lat,this.lng,this.alt)}};function K(t,e,i){return t instanceof W?t:M(t)&&typeof t[0]!="object"?t.length===3?new W(t[0],t[1],t[2]):t.length===2?new W(t[0],t[1]):null:t==null?t:typeof t=="object"&&"lat"in t?new W(t.lat,"lng"in t?t.lng:t.lon,t.alt):e===void 0?null:new W(t,e,i)}var Tt={latLngToPoint:function(t,e){var i=this.projection.project(t),o=this.scale(e);return this.transformation._transform(i,o)},pointToLatLng:function(t,e){var i=this.scale(e),o=this.transformation.untransform(t,i);return this.projection.unproject(o)},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),o=this.transformation.transform(e.min,i),a=this.transformation.transform(e.max,i);return new Y(o,a)},infinite:!1,wrapLatLng:function(t){var e=this.wrapLng?v(t.lng,this.wrapLng,!0):t.lng,i=this.wrapLat?v(t.lat,this.wrapLat,!0):t.lat,o=t.alt;return new W(i,e,o)},wrapLatLngBounds:function(t){var e=t.getCenter(),i=this.wrapLatLng(e),o=e.lat-i.lat,a=e.lng-i.lng;if(o===0&&a===0)return t;var u=t.getSouthWest(),p=t.getNorthEast(),g=new W(u.lat-o,u.lng-a),y=new W(p.lat-o,p.lng-a);return new ct(g,y)}},Ot=n({},Tt,{wrapLng:[-180,180],R:6371e3,distance:function(t,e){var i=Math.PI/180,o=t.lat*i,a=e.lat*i,u=Math.sin((e.lat-t.lat)*i/2),p=Math.sin((e.lng-t.lng)*i/2),g=u*u+Math.cos(o)*Math.cos(a)*p*p,y=2*Math.atan2(Math.sqrt(g),Math.sqrt(1-g));return this.R*y}}),Nn=6378137,vi={R:Nn,MAX_LATITUDE:85.0511287798,project:function(t){var e=Math.PI/180,i=this.MAX_LATITUDE,o=Math.max(Math.min(i,t.lat),-i),a=Math.sin(o*e);return new I(this.R*t.lng*e,this.R*Math.log((1+a)/(1-a))/2)},unproject:function(t){var e=180/Math.PI;return new W((2*Math.atan(Math.exp(t.y/this.R))-Math.PI/2)*e,t.x*e/this.R)},bounds:function(){var t=Nn*Math.PI;return new Y([-t,-t],[t,t])}()};function yi(t,e,i,o){if(M(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=o}yi.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 I((t.x/e-this._b)/this._a,(t.y/e-this._d)/this._c)}};function ae(t,e,i,o){return new yi(t,e,i,o)}var Li=n({},Ot,{code:"EPSG:3857",projection:vi,transformation:function(){var t=.5/(Math.PI*vi.R);return ae(t,.5,-t,.5)}()}),sa=n({},Li,{code:"EPSG:900913"});function Zn(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function Hn(t,e){var i="",o,a,u,p,g,y;for(o=0,u=t.length;o<u;o++){for(g=t[o],a=0,p=g.length;a<p;a++)y=g[a],i+=(a?"L":"M")+y.x+" "+y.y;i+=e?S.svg?"z":"x":""}return i||"M0 0"}var wi=document.documentElement.style,Ie="ActiveXObject"in window,aa=Ie&&!document.addEventListener,Fn="msLaunchUri"in navigator&&!("documentMode"in document),ki=wt("webkit"),Un=wt("android"),jn=wt("android 2")||wt("android 3"),la=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),ha=Un&&wt("Google")&&la<537&&!("AudioNode"in window),bi=!!window.opera,Gn=!Fn&&wt("chrome"),qn=wt("gecko")&&!ki&&!bi&&!Ie,ca=!Gn&&wt("safari"),Wn=wt("phantom"),Kn="OTransition"in wi,ua=navigator.platform.indexOf("Win")===0,Vn=Ie&&"transition"in wi,xi="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!jn,Jn="MozPerspective"in wi,da=!window.L_DISABLE_3D&&(Vn||xi||Jn)&&!Kn&&!Wn,le=typeof orientation<"u"||wt("mobile"),fa=le&&ki,pa=le&&xi,Yn=!window.PointerEvent&&window.MSPointerEvent,Xn=!!(window.PointerEvent||Yn),$n="ontouchstart"in window||!!window.TouchEvent,_a=!window.L_NO_TOUCH&&($n||Xn),ma=le&&bi,ga=le&&qn,va=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,ya=function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("testPassiveEventSupport",w,e),window.removeEventListener("testPassiveEventSupport",w,e)}catch{}return t}(),La=function(){return!!document.createElement("canvas").getContext}(),Pi=!!(document.createElementNS&&Zn("svg").createSVGRect),wa=!!Pi&&function(){var t=document.createElement("div");return t.innerHTML="<svg/>",(t.firstChild&&t.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"}(),ka=!Pi&&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}}(),ba=navigator.platform.indexOf("Mac")===0,xa=navigator.platform.indexOf("Linux")===0;function wt(t){return navigator.userAgent.toLowerCase().indexOf(t)>=0}var S={ie:Ie,ielt9:aa,edge:Fn,webkit:ki,android:Un,android23:jn,androidStock:ha,opera:bi,chrome:Gn,gecko:qn,safari:ca,phantom:Wn,opera12:Kn,win:ua,ie3d:Vn,webkit3d:xi,gecko3d:Jn,any3d:da,mobile:le,mobileWebkit:fa,mobileWebkit3d:pa,msPointer:Yn,pointer:Xn,touch:_a,touchNative:$n,mobileOpera:ma,mobileGecko:ga,retina:va,passiveEvents:ya,canvas:La,svg:Pi,vml:ka,inlineSvg:wa,mac:ba,linux:xa},Qn=S.msPointer?"MSPointerDown":"pointerdown",to=S.msPointer?"MSPointerMove":"pointermove",eo=S.msPointer?"MSPointerUp":"pointerup",io=S.msPointer?"MSPointerCancel":"pointercancel",Ei={touchstart:Qn,touchmove:to,touchend:eo,touchcancel:io},no={touchstart:za,touchmove:Re,touchend:Re,touchcancel:Re},Vt={},oo=!1;function Pa(t,e,i){return e==="touchstart"&&Ca(),no[e]?(i=no[e].bind(this,i),t.addEventListener(Ei[e],i,!1),i):(console.warn("wrong event specified:",e),w)}function Ea(t,e,i){if(!Ei[e]){console.warn("wrong event specified:",e);return}t.removeEventListener(Ei[e],i,!1)}function Ta(t){Vt[t.pointerId]=t}function Ma(t){Vt[t.pointerId]&&(Vt[t.pointerId]=t)}function ro(t){delete Vt[t.pointerId]}function Ca(){oo||(document.addEventListener(Qn,Ta,!0),document.addEventListener(to,Ma,!0),document.addEventListener(eo,ro,!0),document.addEventListener(io,ro,!0),oo=!0)}function Re(t,e){if(e.pointerType!==(e.MSPOINTER_TYPE_MOUSE||"mouse")){e.touches=[];for(var i in Vt)e.touches.push(Vt[i]);e.changedTouches=[e],t(e)}}function za(t,e){e.MSPOINTER_TYPE_TOUCH&&e.pointerType===e.MSPOINTER_TYPE_TOUCH&&st(e),Re(t,e)}function Sa(t){var e={},i,o;for(o in t)i=t[o],e[o]=i&&i.bind?i.bind(t):i;return t=e,e.type="dblclick",e.detail=2,e.isTrusted=!1,e._simulated=!0,e}var Da=200;function Oa(t,e){t.addEventListener("dblclick",e);var i=0,o;function a(u){if(u.detail!==1){o=u.detail;return}if(!(u.pointerType==="mouse"||u.sourceCapabilities&&!u.sourceCapabilities.firesTouchEvents)){var p=co(u);if(!(p.some(function(y){return y instanceof HTMLLabelElement&&y.attributes.for})&&!p.some(function(y){return y instanceof HTMLInputElement||y instanceof HTMLSelectElement}))){var g=Date.now();g-i<=Da?(o++,o===2&&e(Sa(u))):o=1,i=g}}}return t.addEventListener("click",a),{dblclick:e,simDblclick:a}}function Aa(t,e){t.removeEventListener("dblclick",e.dblclick),t.removeEventListener("click",e.simDblclick)}var Ti=Ze(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),he=Ze(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),so=he==="webkitTransition"||he==="OTransition"?he+"End":"transitionend";function ao(t){return typeof t=="string"?document.getElementById(t):t}function ce(t,e){var i=t.style[e]||t.currentStyle&&t.currentStyle[e];if((!i||i==="auto")&&document.defaultView){var o=document.defaultView.getComputedStyle(t,null);i=o?o[e]:null}return i==="auto"?null:i}function q(t,e,i){var o=document.createElement(t);return o.className=e||"",i&&i.appendChild(o),o}function X(t){var e=t.parentNode;e&&e.removeChild(t)}function Be(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function Jt(t){var e=t.parentNode;e&&e.lastChild!==t&&e.appendChild(t)}function Yt(t){var e=t.parentNode;e&&e.firstChild!==t&&e.insertBefore(t,e.firstChild)}function Mi(t,e){if(t.classList!==void 0)return t.classList.contains(e);var i=Ne(t);return i.length>0&&new RegExp("(^|\\s)"+e+"(\\s|$)").test(i)}function B(t,e){if(t.classList!==void 0)for(var i=P(e),o=0,a=i.length;o<a;o++)t.classList.add(i[o]);else if(!Mi(t,e)){var u=Ne(t);Ci(t,(u?u+" ":"")+e)}}function Q(t,e){t.classList!==void 0?t.classList.remove(e):Ci(t,z((" "+Ne(t)+" ").replace(" "+e+" "," ")))}function Ci(t,e){t.className.baseVal===void 0?t.className=e:t.className.baseVal=e}function Ne(t){return t.correspondingElement&&(t=t.correspondingElement),t.className.baseVal===void 0?t.className:t.className.baseVal}function pt(t,e){"opacity"in t.style?t.style.opacity=e:"filter"in t.style&&Ia(t,e)}function Ia(t,e){var i=!1,o="DXImageTransform.Microsoft.Alpha";try{i=t.filters.item(o)}catch{if(e===1)return}e=Math.round(e*100),i?(i.Enabled=e!==100,i.Opacity=e):t.style.filter+=" progid:"+o+"(opacity="+e+")"}function Ze(t){for(var e=document.documentElement.style,i=0;i<t.length;i++)if(t[i]in e)return t[i];return!1}function Zt(t,e,i){var o=e||new I(0,0);t.style[Ti]=(S.ie3d?"translate("+o.x+"px,"+o.y+"px)":"translate3d("+o.x+"px,"+o.y+"px,0)")+(i?" scale("+i+")":"")}function tt(t,e){t._leaflet_pos=e,S.any3d?Zt(t,e):(t.style.left=e.x+"px",t.style.top=e.y+"px")}function Ht(t){return t._leaflet_pos||new I(0,0)}var ue,de,zi;if("onselectstart"in document)ue=function(){R(window,"selectstart",st)},de=function(){V(window,"selectstart",st)};else{var fe=Ze(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);ue=function(){if(fe){var t=document.documentElement.style;zi=t[fe],t[fe]="none"}},de=function(){fe&&(document.documentElement.style[fe]=zi,zi=void 0)}}function Si(){R(window,"dragstart",st)}function Di(){V(window,"dragstart",st)}var He,Oi;function Ai(t){for(;t.tabIndex===-1;)t=t.parentNode;t.style&&(Fe(),He=t,Oi=t.style.outline,t.style.outline="none",R(window,"keydown",Fe))}function Fe(){He&&(He.style.outline=Oi,He=void 0,Oi=void 0,V(window,"keydown",Fe))}function lo(t){do t=t.parentNode;while((!t.offsetWidth||!t.offsetHeight)&&t!==document.body);return t}function Ii(t){var e=t.getBoundingClientRect();return{x:e.width/t.offsetWidth||1,y:e.height/t.offsetHeight||1,boundingClientRect:e}}var Ra={__proto__:null,TRANSFORM:Ti,TRANSITION:he,TRANSITION_END:so,get:ao,getStyle:ce,create:q,remove:X,empty:Be,toFront:Jt,toBack:Yt,hasClass:Mi,addClass:B,removeClass:Q,setClass:Ci,getClass:Ne,setOpacity:pt,testProp:Ze,setTransform:Zt,setPosition:tt,getPosition:Ht,get disableTextSelection(){return ue},get enableTextSelection(){return de},disableImageDrag:Si,enableImageDrag:Di,preventOutline:Ai,restoreOutline:Fe,getSizedParentNode:lo,getScale:Ii};function R(t,e,i,o){if(e&&typeof e=="object")for(var a in e)Bi(t,a,e[a],i);else{e=P(e);for(var u=0,p=e.length;u<p;u++)Bi(t,e[u],i,o)}return this}var kt="_leaflet_events";function V(t,e,i,o){if(arguments.length===1)ho(t),delete t[kt];else if(e&&typeof e=="object")for(var a in e)Ni(t,a,e[a],i);else if(e=P(e),arguments.length===2)ho(t,function(g){return Z(e,g)!==-1});else for(var u=0,p=e.length;u<p;u++)Ni(t,e[u],i,o);return this}function ho(t,e){for(var i in t[kt]){var o=i.split(/\d/)[0];(!e||e(o))&&Ni(t,o,null,null,i)}}var Ri={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function Bi(t,e,i,o){var a=e+m(i)+(o?"_"+m(o):"");if(t[kt]&&t[kt][a])return this;var u=function(g){return i.call(o||t,g||window.event)},p=u;!S.touchNative&&S.pointer&&e.indexOf("touch")===0?u=Pa(t,e,u):S.touch&&e==="dblclick"?u=Oa(t,u):"addEventListener"in t?e==="touchstart"||e==="touchmove"||e==="wheel"||e==="mousewheel"?t.addEventListener(Ri[e]||e,u,S.passiveEvents?{passive:!1}:!1):e==="mouseenter"||e==="mouseleave"?(u=function(g){g=g||window.event,Hi(t,g)&&p(g)},t.addEventListener(Ri[e],u,!1)):t.addEventListener(e,p,!1):t.attachEvent("on"+e,u),t[kt]=t[kt]||{},t[kt][a]=u}function Ni(t,e,i,o,a){a=a||e+m(i)+(o?"_"+m(o):"");var u=t[kt]&&t[kt][a];if(!u)return this;!S.touchNative&&S.pointer&&e.indexOf("touch")===0?Ea(t,e,u):S.touch&&e==="dblclick"?Aa(t,u):"removeEventListener"in t?t.removeEventListener(Ri[e]||e,u,!1):t.detachEvent("on"+e,u),t[kt][a]=null}function Ft(t){return t.stopPropagation?t.stopPropagation():t.originalEvent?t.originalEvent._stopped=!0:t.cancelBubble=!0,this}function Zi(t){return Bi(t,"wheel",Ft),this}function pe(t){return R(t,"mousedown touchstart dblclick contextmenu",Ft),t._leaflet_disable_click=!0,this}function st(t){return t.preventDefault?t.preventDefault():t.returnValue=!1,this}function Ut(t){return st(t),Ft(t),this}function co(t){if(t.composedPath)return t.composedPath();for(var e=[],i=t.target;i;)e.push(i),i=i.parentNode;return e}function uo(t,e){if(!e)return new I(t.clientX,t.clientY);var i=Ii(e),o=i.boundingClientRect;return new I((t.clientX-o.left)/i.x-e.clientLeft,(t.clientY-o.top)/i.y-e.clientTop)}var Ba=S.linux&&S.chrome?window.devicePixelRatio:S.mac?window.devicePixelRatio*3:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function fo(t){return S.edge?t.wheelDeltaY/2:t.deltaY&&t.deltaMode===0?-t.deltaY/Ba: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 Hi(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 Na={__proto__:null,on:R,off:V,stopPropagation:Ft,disableScrollPropagation:Zi,disableClickPropagation:pe,preventDefault:st,stop:Ut,getPropagationPath:co,getMousePosition:uo,getWheelDelta:fo,isExternalTarget:Hi,addListener:R,removeListener:V},po=se.extend({run:function(t,e,i,o){this.stop(),this._el=t,this._inProgress=!0,this._duration=i||.25,this._easeOutPower=1/Math.max(o||.5,.2),this._startPos=Ht(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=rt(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(),tt(this._el,i),this.fire("step")},_complete:function(){at(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(t){return 1-Math.pow(1-t,this._easeOutPower)}}),j=se.extend({options:{crs:Li,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=E(this,e),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(t),this._initLayout(),this._onResize=h(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(K(e.center),e.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=he&&S.any3d&&!S.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),R(this._proxy,so,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(K(t),e,this.options.maxBounds),i=i||{},this._stop(),this._loaded&&!i.reset&&i!==!0){i.animate!==void 0&&(i.zoom=n({animate:i.animate},i.zoom),i.pan=n({animate:i.animate,duration:i.duration},i.pan));var o=this._zoom!==e?this._tryAnimatedZoom&&this._tryAnimatedZoom(t,e,i.zoom):this._tryAnimatedPan(t,i.pan);if(o)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||(S.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+t,e)},zoomOut:function(t,e){return t=t||(S.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-t,e)},setZoomAround:function(t,e,i){var o=this.getZoomScale(e),a=this.getSize().divideBy(2),u=t instanceof I?t:this.latLngToContainerPoint(t),p=u.subtract(a).multiplyBy(1-1/o),g=this.containerPointToLatLng(a.add(p));return this.setView(g,e,{zoom:i})},_getBoundsCenterZoom:function(t,e){e=e||{},t=t.getBounds?t.getBounds():ot(t);var i=A(e.paddingTopLeft||e.padding||[0,0]),o=A(e.paddingBottomRight||e.padding||[0,0]),a=this.getBoundsZoom(t,!1,i.add(o));if(a=typeof e.maxZoom=="number"?Math.min(e.maxZoom,a):a,a===1/0)return{center:t.getCenter(),zoom:a};var u=o.subtract(i).divideBy(2),p=this.project(t.getSouthWest(),a),g=this.project(t.getNorthEast(),a),y=this.unproject(p.add(g).divideBy(2).add(u),a);return{center:y,zoom:a}},fitBounds:function(t,e){if(t=ot(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=A(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 po,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),e.noMoveStart||this.fire("movestart"),e.animate!==!1){B(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||!S.any3d)return this.setView(t,e,i);this._stop();var o=this.project(this.getCenter()),a=this.project(t),u=this.getSize(),p=this._zoom;t=K(t),e=e===void 0?p:e;var g=Math.max(u.x,u.y),y=g*this.getZoomScale(p,e),x=a.distanceTo(o)||1,C=1.42,O=C*C;function H(et){var ti=et?-1:1,El=et?y:g,Tl=y*y-g*g+ti*O*O*x*x,Ml=2*El*O*x,Xi=Tl/Ml,Vo=Math.sqrt(Xi*Xi+1)-Xi,Cl=Vo<1e-9?-18:Math.log(Vo);return Cl}function mt(et){return(Math.exp(et)-Math.exp(-et))/2}function Gt(et){return(Math.exp(et)+Math.exp(-et))/2}function Qe(et){return mt(et)/Gt(et)}var Rt=H(0);function Yi(et){return g*(Gt(Rt)/Gt(Rt+C*et))}function kl(et){return g*(Gt(Rt)*Qe(Rt+C*et)-mt(Rt))/O}function bl(et){return 1-Math.pow(1-et,1.5)}var xl=Date.now(),Wo=(H(1)-Rt)/C,Pl=i.duration?1e3*i.duration:1e3*Wo*.8;function Ko(){var et=(Date.now()-xl)/Pl,ti=bl(et)*Wo;et<=1?(this._flyToFrame=rt(Ko,this),this._move(this.unproject(o.add(a.subtract(o).multiplyBy(kl(ti)/x)),p),this.getScaleZoom(g/Yi(ti),p),{flyTo:!0})):this._move(t,e)._moveEnd(!0)}return this._moveStart(!0,i.noMoveStart),Ko.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=ot(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(),o=this._limitCenter(i,this._zoom,ot(t));return i.equals(o)||this.panTo(o,e),this._enforcingBounds=!1,this},panInside:function(t,e){e=e||{};var i=A(e.paddingTopLeft||e.padding||[0,0]),o=A(e.paddingBottomRight||e.padding||[0,0]),a=this.project(this.getCenter()),u=this.project(t),p=this.getPixelBounds(),g=ht([p.min.add(i),p.max.subtract(o)]),y=g.getSize();if(!g.contains(u)){this._enforcingBounds=!0;var x=u.subtract(g.getCenter()),C=g.extend(u).getSize().subtract(y);a.x+=x.x<0?-C.x:C.x,a.y+=x.y<0?-C.y:C.y,this.panTo(this.unproject(a),e),this._enforcingBounds=!1}return this},invalidateSize:function(t){if(!this._loaded)return this;t=n({animate:!1,pan:!0},t===!0?{animate:!0}:t);var e=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var i=this.getSize(),o=e.divideBy(2).round(),a=i.divideBy(2).round(),u=o.subtract(a);return!u.x&&!u.y?this:(t.animate&&t.pan?this.panBy(u):(t.pan&&this._rawPanBy(u),this.fire("move"),t.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(h(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=n({timeout:1e4,watch:!1},t),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var e=h(this._handleGeolocationResponse,this),i=h(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,o=new W(e,i),a=o.toBounds(t.coords.accuracy*2),u=this._locateOptions;if(u.setView){var p=this.getBoundsZoom(a);this.setView(o,u.maxZoom?Math.min(p,u.maxZoom):p)}var g={latlng:o,bounds:a,timestamp:t.timestamp};for(var y in t.coords)typeof t.coords[y]=="number"&&(g[y]=t.coords[y]);this.fire("locationfound",g)}},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(),X(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(at(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)X(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":""),o=q("div",i,e||this._mapPane);return t&&(this._panes[t]=o),o},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 ct(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=ot(t),i=A(i||[0,0]);var o=this.getZoom()||0,a=this.getMinZoom(),u=this.getMaxZoom(),p=t.getNorthWest(),g=t.getSouthEast(),y=this.getSize().subtract(i),x=ht(this.project(g,o),this.project(p,o)).getSize(),C=S.any3d?this.options.zoomSnap:1,O=y.x/x.x,H=y.y/x.y,mt=e?Math.max(O,H):Math.min(O,H);return o=this.getScaleZoom(mt,o),C&&(o=Math.round(o/(C/100))*(C/100),o=e?Math.ceil(o/C)*C:Math.floor(o/C)*C),Math.max(a,Math.min(u,o))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new I(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 Y(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 o=i.zoom(t*i.scale(e));return isNaN(o)?1/0:o},project:function(t,e){return e=e===void 0?this._zoom:e,this.options.crs.latLngToPoint(K(t),e)},unproject:function(t,e){return e=e===void 0?this._zoom:e,this.options.crs.pointToLatLng(A(t),e)},layerPointToLatLng:function(t){var e=A(t).add(this.getPixelOrigin());return this.unproject(e)},latLngToLayerPoint:function(t){var e=this.project(K(t))._round();return e._subtract(this.getPixelOrigin())},wrapLatLng:function(t){return this.options.crs.wrapLatLng(K(t))},wrapLatLngBounds:function(t){return this.options.crs.wrapLatLngBounds(ot(t))},distance:function(t,e){return this.options.crs.distance(K(t),K(e))},containerPointToLayerPoint:function(t){return A(t).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(t){return A(t).add(this._getMapPanePos())},containerPointToLatLng:function(t){var e=this.containerPointToLayerPoint(A(t));return this.layerPointToLatLng(e)},latLngToContainerPoint:function(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint(K(t)))},mouseEventToContainerPoint:function(t){return uo(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=ao(t);if(e){if(e._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");R(e,"scroll",this._onScroll,this),this._containerId=m(e)},_initLayout:function(){var t=this._container;this._fadeAnimated=this.options.fadeAnimation&&S.any3d,B(t,"leaflet-container"+(S.touch?" leaflet-touch":"")+(S.retina?" leaflet-retina":"")+(S.ielt9?" leaflet-oldie":"")+(S.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var e=ce(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),tt(this._mapPane,new I(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(B(t.markerPane,"leaflet-zoom-hide"),B(t.shadowPane,"leaflet-zoom-hide"))},_resetView:function(t,e,i){tt(this._mapPane,new I(0,0));var o=!this._loaded;this._loaded=!0,e=this._limitZoom(e),this.fire("viewprereset");var a=this._zoom!==e;this._moveStart(a,i)._move(t,e)._moveEnd(a),this.fire("viewreset"),o&&this.fire("load")},_moveStart:function(t,e){return t&&this.fire("zoomstart"),e||this.fire("movestart"),this},_move:function(t,e,i,o){e===void 0&&(e=this._zoom);var a=this._zoom!==e;return this._zoom=e,this._lastCenter=t,this._pixelOrigin=this._getNewPixelOrigin(t),o?i&&i.pinch&&this.fire("zoom",i):((a||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 at(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(t){tt(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[m(this._container)]=this;var e=t?V:R;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),S.any3d&&this.options.transform3DLimit&&(t?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){at(this._resizeRequest),this._resizeRequest=rt(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=[],o,a=e==="mouseout"||e==="mouseover",u=t.target||t.srcElement,p=!1;u;){if(o=this._targets[m(u)],o&&(e==="click"||e==="preclick")&&this._draggableMoved(o)){p=!0;break}if(o&&o.listens(e,!0)&&(a&&!Hi(u,t)||(i.push(o),a))||u===this._container)break;u=u.parentNode}return!i.length&&!p&&!a&&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"&&Ai(e),this._fireDOMEvent(t,i)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(t,e,i){if(t.type==="click"){var o=n({},t);o.type="preclick",this._fireDOMEvent(o,o.type,i)}var a=this._findEventTargets(t,e);if(i){for(var u=[],p=0;p<i.length;p++)i[p].listens(e,!0)&&u.push(i[p]);a=u.concat(a)}if(a.length){e==="contextmenu"&&st(t);var g=a[0],y={originalEvent:t};if(t.type!=="keypress"&&t.type!=="keydown"&&t.type!=="keyup"){var x=g.getLatLng&&(!g._radius||g._radius<=10);y.containerPoint=x?this.latLngToContainerPoint(g.getLatLng()):this.mouseEventToContainerPoint(t),y.layerPoint=this.containerPointToLayerPoint(y.containerPoint),y.latlng=x?g.getLatLng():this.layerPointToLatLng(y.layerPoint)}for(p=0;p<a.length;p++)if(a[p].fire(e,y,!0),y.originalEvent._stopped||a[p].options.bubblingMouseEvents===!1&&Z(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 Ht(this._mapPane)||new I(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 o=this._getNewPixelOrigin(i,e);return this.project(t,e)._subtract(o)},_latLngBoundsToNewLayerBounds:function(t,e,i){var o=this._getNewPixelOrigin(i,e);return ht([this.project(t.getSouthWest(),e)._subtract(o),this.project(t.getNorthWest(),e)._subtract(o),this.project(t.getSouthEast(),e)._subtract(o),this.project(t.getNorthEast(),e)._subtract(o)])},_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 o=this.project(t,e),a=this.getSize().divideBy(2),u=new Y(o.subtract(a),o.add(a)),p=this._getBoundsOffset(u,i,e);return Math.abs(p.x)<=1&&Math.abs(p.y)<=1?t:this.unproject(o.add(p),e)},_limitOffset:function(t,e){if(!e)return t;var i=this.getPixelBounds(),o=new Y(i.min.add(t),i.max.add(t));return t.add(this._getBoundsOffset(o,e))},_getBoundsOffset:function(t,e,i){var o=ht(this.project(e.getNorthEast(),i),this.project(e.getSouthWest(),i)),a=o.min.subtract(t.min),u=o.max.subtract(t.max),p=this._rebound(a.x,-u.x),g=this._rebound(a.y,-u.y);return new I(p,g)},_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(),o=S.any3d?this.options.zoomSnap:1;return o&&(t=Math.round(t/o)*o),Math.max(e,Math.min(i,t))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){Q(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=q("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(t),this.on("zoomanim",function(e){var i=Ti,o=this._proxy.style[i];Zt(this._proxy,this.project(e.center,e.zoom),this.getZoomScale(e.zoom,1)),o===this._proxy.style[i]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){X(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var t=this.getCenter(),e=this.getZoom();Zt(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 o=this.getZoomScale(e),a=this._getCenterOffset(t)._divideBy(1-1/o);return i.animate!==!0&&!this.getSize().contains(a)?!1:(rt(function(){this._moveStart(!0,!1)._animateZoom(t,e,!0)},this),!0)},_animateZoom:function(t,e,i,o){this._mapPane&&(i&&(this._animatingZoom=!0,this._animateToCenter=t,this._animateToZoom=e,B(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:t,zoom:e,noUpdate:o}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(h(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&Q(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 Za(t,e){return new j(t,e)}var gt=Et.extend({options:{position:"topright"},initialize:function(t){E(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(),o=t._controlCorners[i];return B(e,"leaflet-control"),i.indexOf("bottom")!==-1?o.insertBefore(e,o.firstChild):o.appendChild(e),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(X(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()}}),_e=function(t){return new gt(t)};j.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=q("div",e+"control-container",this._container);function o(a,u){var p=e+a+" "+e+u;t[a+u]=q("div",p,i)}o("top","left"),o("top","right"),o("bottom","left"),o("bottom","right")},_clearControlPos:function(){for(var t in this._controlCorners)X(this._controlCorners[t]);X(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var _o=gt.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(t,e,i,o){return i<o?-1:o<i?1:0}},initialize:function(t,e,i){E(this,i),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1;for(var o in t)this._addLayer(t[o],o);for(o in e)this._addLayer(e[o],o,!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 gt.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(m(t));return e&&this._layers.splice(this._layers.indexOf(e),1),this._map?this._update():this},expand:function(){B(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?(B(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=t+"px"):Q(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return Q(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var t="leaflet-control-layers",e=this._container=q("div",t),i=this.options.collapsed;e.setAttribute("aria-haspopup",!0),pe(e),Zi(e);var o=this._section=q("section",t+"-list");i&&(this._map.on("click",this.collapse,this),R(e,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var a=this._layersLink=q("a",t+"-toggle",e);a.href="#",a.title="Layers",a.setAttribute("role","button"),R(a,{keydown:function(u){u.keyCode===13&&this._expandSafely()},click:function(u){st(u),this._expandSafely()}},this),i||this.expand(),this._baseLayersList=q("div",t+"-base",o),this._separator=q("div",t+"-separator",o),this._overlaysList=q("div",t+"-overlays",o),e.appendChild(o)},_getLayer:function(t){for(var e=0;e<this._layers.length;e++)if(this._layers[e]&&m(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(h(function(o,a){return this.options.sortFunction(o.layer,a.layer,o.name,a.name)},this)),this.options.autoZIndex&&t.setZIndex&&(this._lastZIndex++,t.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;Be(this._baseLayersList),Be(this._overlaysList),this._layerControlInputs=[];var t,e,i,o,a=0;for(i=0;i<this._layers.length;i++)o=this._layers[i],this._addItem(o),e=e||o.overlay,t=t||!o.overlay,a+=o.overlay?0:1;return this.options.hideSingleBase&&(t=t&&a>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(m(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"':"")+"/>",o=document.createElement("div");return o.innerHTML=i,o.firstChild},_addItem:function(t){var e=document.createElement("label"),i=this._map.hasLayer(t.layer),o;t.overlay?(o=document.createElement("input"),o.type="checkbox",o.className="leaflet-control-layers-selector",o.defaultChecked=i):o=this._createRadioElement("leaflet-base-layers_"+m(this),i),this._layerControlInputs.push(o),o.layerId=m(t.layer),R(o,"click",this._onInputClick,this);var a=document.createElement("span");a.innerHTML=" "+t.name;var u=document.createElement("span");e.appendChild(u),u.appendChild(o),u.appendChild(a);var p=t.overlay?this._overlaysList:this._baseLayersList;return p.appendChild(e),this._checkDisabledLayers(),e},_onInputClick:function(){var t=this._layerControlInputs,e,i,o=[],a=[];this._handlingClick=!0;for(var u=t.length-1;u>=0;u--)e=t[u],i=this._getLayer(e.layerId).layer,e.checked?o.push(i):e.checked||a.push(i);for(u=0;u<a.length;u++)this._map.hasLayer(a[u])&&this._map.removeLayer(a[u]);for(u=0;u<o.length;u++)this._map.hasLayer(o[u])||this._map.addLayer(o[u]);this._handlingClick=!1,this._refocusOnMap()},_checkDisabledLayers:function(){for(var t=this._layerControlInputs,e,i,o=this._map.getZoom(),a=t.length-1;a>=0;a--)e=t[a],i=this._getLayer(e.layerId).layer,e.disabled=i.options.minZoom!==void 0&&o<i.options.minZoom||i.options.maxZoom!==void 0&&o>i.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var t=this._section;R(t,"click",st),this.expand(),setTimeout(function(){V(t,"click",st)})}}),Ha=function(t,e,i){return new _o(t,e,i)},Fi=gt.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">&#x2212;</span>',zoomOutTitle:"Zoom out"},onAdd:function(t){var e="leaflet-control-zoom",i=q("div",e+" leaflet-bar"),o=this.options;return this._zoomInButton=this._createButton(o.zoomInText,o.zoomInTitle,e+"-in",i,this._zoomIn),this._zoomOutButton=this._createButton(o.zoomOutText,o.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,o,a){var u=q("a",i,o);return u.innerHTML=t,u.href="#",u.title=e,u.setAttribute("role","button"),u.setAttribute("aria-label",e),pe(u),R(u,"click",Ut),R(u,"click",a,this),R(u,"click",this._refocusOnMap,this),u},_updateDisabled:function(){var t=this._map,e="leaflet-disabled";Q(this._zoomInButton,e),Q(this._zoomOutButton,e),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||t._zoom===t.getMinZoom())&&(B(this._zoomOutButton,e),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||t._zoom===t.getMaxZoom())&&(B(this._zoomInButton,e),this._zoomInButton.setAttribute("aria-disabled","true"))}});j.mergeOptions({zoomControl:!0}),j.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new Fi,this.addControl(this.zoomControl))});var Fa=function(t){return new Fi(t)},mo=gt.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(t){var e="leaflet-control-scale",i=q("div",e),o=this.options;return this._addScales(o,e+"-line",i),t.on(o.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=q("div",e,i)),t.imperial&&(this._iScale=q("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,o,a;e>5280?(i=e/5280,o=this._getRoundNum(i),this._updateScale(this._iScale,o+" mi",o/i)):(a=this._getRoundNum(e),this._updateScale(this._iScale,a+" ft",a/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}}),Ua=function(t){return new mo(t)},ja='<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>',Ui=gt.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(S.inlineSvg?ja+" ":"")+"Leaflet</a>"},initialize:function(t){E(this,t),this._attributions={}},onAdd:function(t){t.attributionControl=this,this._container=q("div","leaflet-control-attribution"),pe(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> ')}}});j.mergeOptions({attributionControl:!0}),j.addInitHook(function(){this.options.attributionControl&&new Ui().addTo(this)});var Ga=function(t){return new Ui(t)};gt.Layers=_o,gt.Zoom=Fi,gt.Scale=mo,gt.Attribution=Ui,_e.layers=Ha,_e.zoom=Fa,_e.scale=Ua,_e.attribution=Ga;var bt=Et.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}});bt.addTo=function(t,e){return t.addHandler(e,this),this};var qa={Events:ut},go=S.touch?"touchstart mousedown":"mousedown",At=se.extend({options:{clickTolerance:3},initialize:function(t,e,i,o){E(this,o),this._element=t,this._dragStartTarget=e||t,this._preventOutline=i},enable:function(){this._enabled||(R(this._dragStartTarget,go,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(At._dragging===this&&this.finishDrag(!0),V(this._dragStartTarget,go,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(t){if(this._enabled&&(this._moved=!1,!Mi(this._element,"leaflet-zoom-anim"))){if(t.touches&&t.touches.length!==1){At._dragging===this&&this.finishDrag();return}if(!(At._dragging||t.shiftKey||t.which!==1&&t.button!==1&&!t.touches)&&(At._dragging=this,this._preventOutline&&Ai(this._element),Si(),ue(),!this._moving)){this.fire("down");var e=t.touches?t.touches[0]:t,i=lo(this._element);this._startPoint=new I(e.clientX,e.clientY),this._startPos=Ht(this._element),this._parentScale=Ii(i);var o=t.type==="mousedown";R(document,o?"mousemove":"touchmove",this._onMove,this),R(document,o?"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 I(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,st(t),this._moved||(this.fire("dragstart"),this._moved=!0,B(document.body,"leaflet-dragging"),this._lastTarget=t.target||t.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),B(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),tt(this._element,this._newPos),this.fire("drag",t)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(t){Q(document.body,"leaflet-dragging"),this._lastTarget&&(Q(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),V(document,"mousemove touchmove",this._onMove,this),V(document,"mouseup touchend touchcancel",this._onUp,this),Di(),de(),this._moved&&this._moving&&this.fire("dragend",{noInertia:t,distance:this._newPos.distanceTo(this._startPos)}),this._moving=!1,At._dragging=!1}});function vo(t,e){if(!e||!t.length)return t.slice();var i=e*e;return t=Va(t,i),t=Ka(t,i),t}function yo(t,e,i){return Math.sqrt(me(t,e,i,!0))}function Wa(t,e,i){return me(t,e,i)}function Ka(t,e){var i=t.length,o=typeof Uint8Array!=void 0+""?Uint8Array:Array,a=new o(i);a[0]=a[i-1]=1,ji(t,a,e,0,i-1);var u,p=[];for(u=0;u<i;u++)a[u]&&p.push(t[u]);return p}function ji(t,e,i,o,a){var u=0,p,g,y;for(g=o+1;g<=a-1;g++)y=me(t[g],t[o],t[a],!0),y>u&&(p=g,u=y);u>i&&(e[p]=1,ji(t,e,i,o,p),ji(t,e,i,p,a))}function Va(t,e){for(var i=[t[0]],o=1,a=0,u=t.length;o<u;o++)Ja(t[o],t[a])>e&&(i.push(t[o]),a=o);return a<u-1&&i.push(t[u-1]),i}var Lo;function wo(t,e,i,o,a){var u=o?Lo:jt(t,i),p=jt(e,i),g,y,x;for(Lo=p;;){if(!(u|p))return[t,e];if(u&p)return!1;g=u||p,y=Ue(t,e,g,i,a),x=jt(y,i),g===u?(t=y,u=x):(e=y,p=x)}}function Ue(t,e,i,o,a){var u=e.x-t.x,p=e.y-t.y,g=o.min,y=o.max,x,C;return i&8?(x=t.x+u*(y.y-t.y)/p,C=y.y):i&4?(x=t.x+u*(g.y-t.y)/p,C=g.y):i&2?(x=y.x,C=t.y+p*(y.x-t.x)/u):i&1&&(x=g.x,C=t.y+p*(g.x-t.x)/u),new I(x,C,a)}function jt(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 Ja(t,e){var i=e.x-t.x,o=e.y-t.y;return i*i+o*o}function me(t,e,i,o){var a=e.x,u=e.y,p=i.x-a,g=i.y-u,y=p*p+g*g,x;return y>0&&(x=((t.x-a)*p+(t.y-u)*g)/y,x>1?(a=i.x,u=i.y):x>0&&(a+=p*x,u+=g*x)),p=t.x-a,g=t.y-u,o?p*p+g*g:new I(a,u)}function _t(t){return!M(t[0])||typeof t[0][0]!="object"&&typeof t[0][0]<"u"}function ko(t){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),_t(t)}function bo(t,e){var i,o,a,u,p,g,y,x;if(!t||t.length===0)throw new Error("latlngs not passed");_t(t)||(console.warn("latlngs are not flat! Only the first ring will be used"),t=t[0]);var C=[];for(var O in t)C.push(e.project(K(t[O])));var H=C.length;for(i=0,o=0;i<H-1;i++)o+=C[i].distanceTo(C[i+1])/2;if(o===0)x=C[0];else for(i=0,u=0;i<H-1;i++)if(p=C[i],g=C[i+1],a=p.distanceTo(g),u+=a,u>o){y=(u-o)/a,x=[g.x-y*(g.x-p.x),g.y-y*(g.y-p.y)];break}return e.unproject(A(x))}var Ya={__proto__:null,simplify:vo,pointToSegmentDistance:yo,closestPointOnSegment:Wa,clipSegment:wo,_getEdgeIntersection:Ue,_getBitCode:jt,_sqClosestPointOnSegment:me,isFlat:_t,_flat:ko,polylineCenter:bo};function xo(t,e,i){var o,a=[1,4,2,8],u,p,g,y,x,C,O,H;for(u=0,C=t.length;u<C;u++)t[u]._code=jt(t[u],e);for(g=0;g<4;g++){for(O=a[g],o=[],u=0,C=t.length,p=C-1;u<C;p=u++)y=t[u],x=t[p],y._code&O?x._code&O||(H=Ue(x,y,O,e,i),H._code=jt(H,e),o.push(H)):(x._code&O&&(H=Ue(x,y,O,e,i),H._code=jt(H,e),o.push(H)),o.push(y));t=o}return t}function Po(t,e){var i,o,a,u,p,g,y,x,C;if(!t||t.length===0)throw new Error("latlngs not passed");_t(t)||(console.warn("latlngs are not flat! Only the first ring will be used"),t=t[0]);var O=[];for(var H in t)O.push(e.project(K(t[H])));var mt=O.length;for(g=y=x=0,i=0,o=mt-1;i<mt;o=i++)a=O[i],u=O[o],p=a.y*u.x-u.y*a.x,y+=(a.x+u.x)*p,x+=(a.y+u.y)*p,g+=p*3;return g===0?C=O[0]:C=[y/g,x/g],e.unproject(A(C))}var Xa={__proto__:null,clipPolygon:xo,polygonCenter:Po},Gi={project:function(t){return new I(t.lng,t.lat)},unproject:function(t){return new W(t.y,t.x)},bounds:new Y([-180,-90],[180,90])},qi={R:6378137,R_MINOR:6356752314245179e-9,bounds:new Y([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project:function(t){var e=Math.PI/180,i=this.R,o=t.lat*e,a=this.R_MINOR/i,u=Math.sqrt(1-a*a),p=u*Math.sin(o),g=Math.tan(Math.PI/4-o/2)/Math.pow((1-p)/(1+p),u/2);return o=-i*Math.log(Math.max(g,1e-10)),new I(t.lng*e*i,o)},unproject:function(t){for(var e=180/Math.PI,i=this.R,o=this.R_MINOR/i,a=Math.sqrt(1-o*o),u=Math.exp(-t.y/i),p=Math.PI/2-2*Math.atan(u),g=0,y=.1,x;g<15&&Math.abs(y)>1e-7;g++)x=a*Math.sin(p),x=Math.pow((1-x)/(1+x),a/2),y=Math.PI/2-2*Math.atan(u*x)-p,p+=y;return new W(p*e,t.x*e/i)}},$a={__proto__:null,LonLat:Gi,Mercator:qi,SphericalMercator:vi},Qa=n({},Ot,{code:"EPSG:3395",projection:qi,transformation:function(){var t=.5/(Math.PI*qi.R);return ae(t,.5,-t,.5)}()}),Eo=n({},Ot,{code:"EPSG:4326",projection:Gi,transformation:ae(1/180,1,-1/180,.5)}),tl=n({},Tt,{projection:Gi,transformation:ae(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,o=e.lat-t.lat;return Math.sqrt(i*i+o*o)},infinite:!0});Tt.Earth=Ot,Tt.EPSG3395=Qa,Tt.EPSG3857=Li,Tt.EPSG900913=sa,Tt.EPSG4326=Eo,Tt.Simple=tl;var vt=se.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[m(t)]=this,this},removeInteractiveTarget:function(t){return delete this._map._targets[m(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})}}});j.include({addLayer:function(t){if(!t._layerAdd)throw new Error("The provided object is not a Layer.");var e=m(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=m(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 m(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?M(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[m(t)]=t,this._updateZoomLevels())},_removeZoomLimit:function(t){var e=m(t);this._zoomBoundLayers[e]&&(delete this._zoomBoundLayers[e],this._updateZoomLevels())},_updateZoomLevels:function(){var t=1/0,e=-1/0,i=this._getZoomSpan();for(var o in this._zoomBoundLayers){var a=this._zoomBoundLayers[o].options;t=a.minZoom===void 0?t:Math.min(t,a.minZoom),e=a.maxZoom===void 0?e:Math.max(e,a.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 Xt=vt.extend({initialize:function(t,e){E(this,e),this._layers={};var i,o;if(t)for(i=0,o=t.length;i<o;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,o;for(i in this._layers)o=this._layers[i],o[t]&&o[t].apply(o,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 m(t)}}),el=function(t,e){return new Xt(t,e)},Mt=Xt.extend({addLayer:function(t){return this.hasLayer(t)?this:(t.addEventParent(this),Xt.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),Xt.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 ct;for(var e in this._layers){var i=this._layers[e];t.extend(i.getBounds?i.getBounds():i.getLatLng())}return t}}),il=function(t,e){return new Mt(t,e)},$t=Et.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(t){E(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 o=this._createImg(i,e&&e.tagName==="IMG"?e:null);return this._setIconStyles(o,t),(this.options.crossOrigin||this.options.crossOrigin==="")&&(o.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),o},_setIconStyles:function(t,e){var i=this.options,o=i[e+"Size"];typeof o=="number"&&(o=[o,o]);var a=A(o),u=A(e==="shadow"&&i.shadowAnchor||i.iconAnchor||a&&a.divideBy(2,!0));t.className="leaflet-marker-"+e+" "+(i.className||""),u&&(t.style.marginLeft=-u.x+"px",t.style.marginTop=-u.y+"px"),a&&(t.style.width=a.x+"px",t.style.height=a.y+"px")},_createImg:function(t,e){return e=e||document.createElement("img"),e.src=t,e},_getIconUrl:function(t){return S.retina&&this.options[t+"RetinaUrl"]||this.options[t+"Url"]}});function nl(t){return new $t(t)}var ge=$t.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 ge.imagePath!="string"&&(ge.imagePath=this._detectIconPath()),(this.options.imagePath||ge.imagePath)+$t.prototype._getIconUrl.call(this,t)},_stripUrl:function(t){var e=function(i,o,a){var u=o.exec(i);return u&&u[a]};return t=e(t,/^url\((['"])?(.+)\1\)$/,2),t&&e(t,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var t=q("div","leaflet-default-icon-path",document.body),e=ce(t,"background-image")||ce(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):""}}),To=bt.extend({initialize:function(t){this._marker=t},addHooks:function(){var t=this._marker._icon;this._draggable||(this._draggable=new At(t,t,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),B(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&&Q(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(t){var e=this._marker,i=e._map,o=this._marker.options.autoPanSpeed,a=this._marker.options.autoPanPadding,u=Ht(e._icon),p=i.getPixelBounds(),g=i.getPixelOrigin(),y=ht(p.min._subtract(g).add(a),p.max._subtract(g).subtract(a));if(!y.contains(u)){var x=A((Math.max(y.max.x,u.x)-y.max.x)/(p.max.x-y.max.x)-(Math.min(y.min.x,u.x)-y.min.x)/(p.min.x-y.min.x),(Math.max(y.max.y,u.y)-y.max.y)/(p.max.y-y.max.y)-(Math.min(y.min.y,u.y)-y.min.y)/(p.min.y-y.min.y)).multiplyBy(o);i.panBy(x,{animate:!1}),this._draggable._newPos._add(x),this._draggable._startPos._add(x),tt(e._icon,this._draggable._newPos),this._onDrag(t),this._panRequest=rt(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&&(at(this._panRequest),this._panRequest=rt(this._adjustPan.bind(this,t)))},_onDrag:function(t){var e=this._marker,i=e._shadow,o=Ht(e._icon),a=e._map.layerPointToLatLng(o);i&&tt(i,o),e._latlng=a,t.latlng=a,t.oldLatLng=this._oldLatLng,e.fire("move",t).fire("drag",t)},_onDragEnd:function(t){at(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",t)}}),je=vt.extend({options:{icon:new ge,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){E(this,e),this._latlng=K(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=K(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),o=!1;i!==this._icon&&(this._icon&&this._removeIcon(),o=!0,t.title&&(i.title=t.title),i.tagName==="IMG"&&(i.alt=t.alt||"")),B(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&&R(i,"focus",this._panOnFocus,this);var a=t.icon.createShadow(this._shadow),u=!1;a!==this._shadow&&(this._removeShadow(),u=!0),a&&(B(a,e),a.alt=""),this._shadow=a,t.opacity<1&&this._updateOpacity(),o&&this.getPane().appendChild(this._icon),this._initInteraction(),a&&u&&this.getPane(t.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&V(this._icon,"focus",this._panOnFocus,this),X(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&X(this._shadow),this._shadow=null},_setPos:function(t){this._icon&&tt(this._icon,t),this._shadow&&tt(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&&(B(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),To)){var t=this.options.draggable;this.dragging&&(t=this.dragging.enabled(),this.dragging.disable()),this.dragging=new To(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&&pt(this._icon,t),this._shadow&&pt(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?A(e.iconSize):A(0,0),o=e.iconAnchor?A(e.iconAnchor):A(0,0);t.panInside(this._latlng,{paddingTopLeft:o,paddingBottomRight:i.subtract(o)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function ol(t,e){return new je(t,e)}var It=vt.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 E(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)}}),Ge=It.extend({options:{fill:!0,radius:10},initialize:function(t,e){E(this,e),this._latlng=K(t),this._radius=this.options.radius},setLatLng:function(t){var e=this._latlng;return this._latlng=K(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 It.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(),o=[t+i,e+i];this._pxBounds=new Y(this._point.subtract(o),this._point.add(o))},_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 rl(t,e){return new Ge(t,e)}var Wi=Ge.extend({initialize:function(t,e,i){if(typeof e=="number"&&(e=n({},i,{radius:e})),E(this,e),this._latlng=K(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 ct(this._map.layerPointToLatLng(this._point.subtract(t)),this._map.layerPointToLatLng(this._point.add(t)))},setStyle:It.prototype.setStyle,_project:function(){var t=this._latlng.lng,e=this._latlng.lat,i=this._map,o=i.options.crs;if(o.distance===Ot.distance){var a=Math.PI/180,u=this._mRadius/Ot.R/a,p=i.project([e+u,t]),g=i.project([e-u,t]),y=p.add(g).divideBy(2),x=i.unproject(y).lat,C=Math.acos((Math.cos(u*a)-Math.sin(e*a)*Math.sin(x*a))/(Math.cos(e*a)*Math.cos(x*a)))/a;(isNaN(C)||C===0)&&(C=u/Math.cos(Math.PI/180*e)),this._point=y.subtract(i.getPixelOrigin()),this._radius=isNaN(C)?0:y.x-i.project([x,t-C]).x,this._radiusY=y.y-p.y}else{var O=o.unproject(o.project(this._latlng).subtract([this._mRadius,0]));this._point=i.latLngToLayerPoint(this._latlng),this._radius=this._point.x-i.latLngToLayerPoint(O).x}this._updateBounds()}});function sl(t,e,i){return new Wi(t,e,i)}var Ct=It.extend({options:{smoothFactor:1,noClip:!1},initialize:function(t,e){E(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,o=me,a,u,p=0,g=this._parts.length;p<g;p++)for(var y=this._parts[p],x=1,C=y.length;x<C;x++){a=y[x-1],u=y[x];var O=o(t,a,u,!0);O<e&&(e=O,i=o(t,a,u))}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 bo(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(t,e){return e=e||this._defaultShape(),t=K(t),e.push(t),this._bounds.extend(t),this.redraw()},_setLatLngs:function(t){this._bounds=new ct,this._latlngs=this._convertLatLngs(t)},_defaultShape:function(){return _t(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(t){for(var e=[],i=_t(t),o=0,a=t.length;o<a;o++)i?(e[o]=K(t[o]),this._bounds.extend(e[o])):e[o]=this._convertLatLngs(t[o]);return e},_project:function(){var t=new Y;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 I(t,t);this._rawPxBounds&&(this._pxBounds=new Y([this._rawPxBounds.min.subtract(e),this._rawPxBounds.max.add(e)]))},_projectLatlngs:function(t,e,i){var o=t[0]instanceof W,a=t.length,u,p;if(o){for(p=[],u=0;u<a;u++)p[u]=this._map.latLngToLayerPoint(t[u]),i.extend(p[u]);e.push(p)}else for(u=0;u<a;u++)this._projectLatlngs(t[u],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,o,a,u,p,g,y;for(i=0,a=0,u=this._rings.length;i<u;i++)for(y=this._rings[i],o=0,p=y.length;o<p-1;o++)g=wo(y[o],y[o+1],t,o,!0),g&&(e[a]=e[a]||[],e[a].push(g[0]),(g[1]!==y[o+1]||o===p-2)&&(e[a].push(g[1]),a++))}},_simplifyPoints:function(){for(var t=this._parts,e=this.options.smoothFactor,i=0,o=t.length;i<o;i++)t[i]=vo(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,o,a,u,p,g,y=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(i=0,u=this._parts.length;i<u;i++)for(g=this._parts[i],o=0,p=g.length,a=p-1;o<p;a=o++)if(!(!e&&o===0)&&yo(t,g[a],g[o])<=y)return!0;return!1}});function al(t,e){return new Ct(t,e)}Ct._flat=ko;var Qt=Ct.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 Po(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(t){var e=Ct.prototype._convertLatLngs.call(this,t),i=e.length;return i>=2&&e[0]instanceof W&&e[0].equals(e[i-1])&&e.pop(),e},_setLatLngs:function(t){Ct.prototype._setLatLngs.call(this,t),_t(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return _t(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var t=this._renderer._bounds,e=this.options.weight,i=new I(e,e);if(t=new Y(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 o=0,a=this._rings.length,u;o<a;o++)u=xo(this._rings[o],t,!0),u.length&&this._parts.push(u)}},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(t){var e=!1,i,o,a,u,p,g,y,x;if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(u=0,y=this._parts.length;u<y;u++)for(i=this._parts[u],p=0,x=i.length,g=x-1;p<x;g=p++)o=i[p],a=i[g],o.y>t.y!=a.y>t.y&&t.x<(a.x-o.x)*(t.y-o.y)/(a.y-o.y)+o.x&&(e=!e);return e||Ct.prototype._containsPoint.call(this,t,!0)}});function ll(t,e){return new Qt(t,e)}var zt=Mt.extend({initialize:function(t,e){E(this,e),this._layers={},t&&this.addData(t)},addData:function(t){var e=M(t)?t:t.features,i,o,a;if(e){for(i=0,o=e.length;i<o;i++)a=e[i],(a.geometries||a.geometry||a.features||a.coordinates)&&this.addData(a);return this}var u=this.options;if(u.filter&&!u.filter(t))return this;var p=qe(t,u);return p?(p.feature=Ve(t),p.defaultOptions=p.options,this.resetStyle(p),u.onEachFeature&&u.onEachFeature(t,p),this.addLayer(p)):this},resetStyle:function(t){return t===void 0?this.eachLayer(this.resetStyle,this):(t.options=n({},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 qe(t,e){var i=t.type==="Feature"?t.geometry:t,o=i?i.coordinates:null,a=[],u=e&&e.pointToLayer,p=e&&e.coordsToLatLng||Ki,g,y,x,C;if(!o&&!i)return null;switch(i.type){case"Point":return g=p(o),Mo(u,t,g,e);case"MultiPoint":for(x=0,C=o.length;x<C;x++)g=p(o[x]),a.push(Mo(u,t,g,e));return new Mt(a);case"LineString":case"MultiLineString":return y=We(o,i.type==="LineString"?0:1,p),new Ct(y,e);case"Polygon":case"MultiPolygon":return y=We(o,i.type==="Polygon"?1:2,p),new Qt(y,e);case"GeometryCollection":for(x=0,C=i.geometries.length;x<C;x++){var O=qe({geometry:i.geometries[x],type:"Feature",properties:t.properties},e);O&&a.push(O)}return new Mt(a);case"FeatureCollection":for(x=0,C=i.features.length;x<C;x++){var H=qe(i.features[x],e);H&&a.push(H)}return new Mt(a);default:throw new Error("Invalid GeoJSON object.")}}function Mo(t,e,i,o){return t?t(e,i):new je(i,o&&o.markersInheritOptions&&o)}function Ki(t){return new W(t[1],t[0],t[2])}function We(t,e,i){for(var o=[],a=0,u=t.length,p;a<u;a++)p=e?We(t[a],e-1,i):(i||Ki)(t[a]),o.push(p);return o}function Vi(t,e){return t=K(t),t.alt!==void 0?[T(t.lng,e),T(t.lat,e),T(t.alt,e)]:[T(t.lng,e),T(t.lat,e)]}function Ke(t,e,i,o){for(var a=[],u=0,p=t.length;u<p;u++)a.push(e?Ke(t[u],_t(t[u])?0:e-1,i,o):Vi(t[u],o));return!e&&i&&a.push(a[0].slice()),a}function te(t,e){return t.feature?n({},t.feature,{geometry:e}):Ve(e)}function Ve(t){return t.type==="Feature"||t.type==="FeatureCollection"?t:{type:"Feature",properties:{},geometry:t}}var Ji={toGeoJSON:function(t){return te(this,{type:"Point",coordinates:Vi(this.getLatLng(),t)})}};je.include(Ji),Wi.include(Ji),Ge.include(Ji),Ct.include({toGeoJSON:function(t){var e=!_t(this._latlngs),i=Ke(this._latlngs,e?1:0,!1,t);return te(this,{type:(e?"Multi":"")+"LineString",coordinates:i})}}),Qt.include({toGeoJSON:function(t){var e=!_t(this._latlngs),i=e&&!_t(this._latlngs[0]),o=Ke(this._latlngs,i?2:e?1:0,!0,t);return e||(o=[o]),te(this,{type:(i?"Multi":"")+"Polygon",coordinates:o})}}),Xt.include({toMultiPoint:function(t){var e=[];return this.eachLayer(function(i){e.push(i.toGeoJSON(t).geometry.coordinates)}),te(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",o=[];return this.eachLayer(function(a){if(a.toGeoJSON){var u=a.toGeoJSON(t);if(i)o.push(u.geometry);else{var p=Ve(u);p.type==="FeatureCollection"?o.push.apply(o,p.features):o.push(p)}}}),i?te(this,{geometries:o,type:"GeometryCollection"}):{type:"FeatureCollection",features:o}}});function Co(t,e){return new zt(t,e)}var hl=Co,Je=vt.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(t,e,i){this._url=t,this._bounds=ot(e),E(this,i)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(B(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){X(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&&Jt(this._image),this},bringToBack:function(){return this._map&&Yt(this._image),this},setUrl:function(t){return this._url=t,this._image&&(this._image.src=t),this},setBounds:function(t){return this._bounds=ot(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:q("img");if(B(e,"leaflet-image-layer"),this._zoomAnimated&&B(e,"leaflet-zoom-animated"),this.options.className&&B(e,this.options.className),e.onselectstart=w,e.onmousemove=w,e.onload=h(this.fire,this,"load"),e.onerror=h(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;Zt(this._image,i,e)},_reset:function(){var t=this._image,e=new Y(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),i=e.getSize();tt(t,e.min),t.style.width=i.x+"px",t.style.height=i.y+"px"},_updateOpacity:function(){pt(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()}}),cl=function(t,e,i){return new Je(t,e,i)},zo=Je.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:q("video");if(B(e,"leaflet-image-layer"),this._zoomAnimated&&B(e,"leaflet-zoom-animated"),this.options.className&&B(e,this.options.className),e.onselectstart=w,e.onmousemove=w,e.onloadeddata=h(this.fire,this,"load"),t){for(var i=e.getElementsByTagName("source"),o=[],a=0;a<i.length;a++)o.push(i[a].src);this._url=i.length>0?o:[e.src];return}M(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 u=0;u<this._url.length;u++){var p=q("source");p.src=this._url[u],e.appendChild(p)}}});function ul(t,e,i){return new zo(t,e,i)}var So=Je.extend({_initImage:function(){var t=this._image=this._url;B(t,"leaflet-image-layer"),this._zoomAnimated&&B(t,"leaflet-zoom-animated"),this.options.className&&B(t,this.options.className),t.onselectstart=w,t.onmousemove=w}});function dl(t,e,i){return new So(t,e,i)}var xt=vt.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(t,e){t&&(t instanceof W||M(t))?(this._latlng=K(t),E(this,e)):(E(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&&pt(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),t._fadeAnimated&&pt(this._container,1),this.bringToFront(),this.options.interactive&&(B(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(t){t._fadeAnimated?(pt(this._container,0),this._removeTimeout=setTimeout(h(X,void 0,this._container),200)):X(this._container),this.options.interactive&&(Q(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(t){return this._latlng=K(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&&Jt(this._container),this},bringToBack:function(){return this._map&&Yt(this._container),this},_prepareOpen:function(t){var e=this._source;if(!e._map)return!1;if(e instanceof Mt){e=null;var i=this._source._layers;for(var o in i)if(i[o]._map){e=i[o];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=A(this.options.offset),i=this._getAnchor();this._zoomAnimated?tt(this._container,t.add(i)):e=e.add(t).add(i);var o=this._containerBottom=-e.y,a=this._containerLeft=-Math.round(this._containerWidth/2)+e.x;this._container.style.bottom=o+"px",this._container.style.left=a+"px"}},_getAnchor:function(){return[0,0]}});j.include({_initOverlay:function(t,e,i,o){var a=e;return a instanceof t||(a=new t(o).setContent(e)),i&&a.setLatLng(i),a}}),vt.include({_initOverlay:function(t,e,i,o){var a=i;return a instanceof t?(E(a,o),a._source=this):(a=e&&!o?e:new t(o,this),a.setContent(i)),a}});var Ye=xt.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,xt.prototype.openOn.call(this,t)},onAdd:function(t){xt.prototype.onAdd.call(this,t),t.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof It||this._source.on("preclick",Ft))},onRemove:function(t){xt.prototype.onRemove.call(this,t),t.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof It||this._source.off("preclick",Ft))},getEvents:function(){var t=xt.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=q("div",t+" "+(this.options.className||"")+" leaflet-zoom-animated"),i=this._wrapper=q("div",t+"-content-wrapper",e);if(this._contentNode=q("div",t+"-content",i),pe(e),Zi(this._contentNode),R(e,"contextmenu",Ft),this._tipContainer=q("div",t+"-tip-container",e),this._tip=q("div",t+"-tip",this._tipContainer),this.options.closeButton){var o=this._closeButton=q("a",t+"-close-button",e);o.setAttribute("role","button"),o.setAttribute("aria-label","Close popup"),o.href="#close",o.innerHTML='<span aria-hidden="true">&#215;</span>',R(o,"click",function(a){st(a),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 o=t.offsetHeight,a=this.options.maxHeight,u="leaflet-popup-scrolled";a&&o>a?(e.height=a+"px",B(t,u)):Q(t,u),this._containerWidth=this._container.offsetWidth},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center),i=this._getAnchor();tt(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(ce(this._container,"marginBottom"),10)||0,i=this._container.offsetHeight+e,o=this._containerWidth,a=new I(this._containerLeft,-i-this._containerBottom);a._add(Ht(this._container));var u=t.layerPointToContainerPoint(a),p=A(this.options.autoPanPadding),g=A(this.options.autoPanPaddingTopLeft||p),y=A(this.options.autoPanPaddingBottomRight||p),x=t.getSize(),C=0,O=0;u.x+o+y.x>x.x&&(C=u.x+o-x.x+y.x),u.x-C-g.x<0&&(C=u.x-g.x),u.y+i+y.y>x.y&&(O=u.y+i-x.y+y.y),u.y-O-g.y<0&&(O=u.y-g.y),(C||O)&&(this.options.keepInView&&(this._autopanning=!0),t.fire("autopanstart").panBy([C,O]))}},_getAnchor:function(){return A(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),fl=function(t,e){return new Ye(t,e)};j.mergeOptions({closePopupOnClick:!0}),j.include({openPopup:function(t,e,i){return this._initOverlay(Ye,t,e,i).openOn(this),this},closePopup:function(t){return t=arguments.length?t:this._popup,t&&t.close(),this}}),vt.include({bindPopup:function(t,e){return this._popup=this._initOverlay(Ye,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 Mt||(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)){Ut(t);var e=t.layer||t.target;if(this._popup._source===e&&!(e instanceof It)){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=xt.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(t){xt.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){xt.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=xt.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=q("div",e),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+m(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(t){var e,i,o=this._map,a=this._container,u=o.latLngToContainerPoint(o.getCenter()),p=o.layerPointToContainerPoint(t),g=this.options.direction,y=a.offsetWidth,x=a.offsetHeight,C=A(this.options.offset),O=this._getAnchor();g==="top"?(e=y/2,i=x):g==="bottom"?(e=y/2,i=0):g==="center"?(e=y/2,i=x/2):g==="right"?(e=0,i=x/2):g==="left"?(e=y,i=x/2):p.x<u.x?(g="right",e=0,i=x/2):(g="left",e=y+(C.x+O.x)*2,i=x/2),t=t.subtract(A(e,i,!0)).add(C).add(O),Q(a,"leaflet-tooltip-right"),Q(a,"leaflet-tooltip-left"),Q(a,"leaflet-tooltip-top"),Q(a,"leaflet-tooltip-bottom"),B(a,"leaflet-tooltip-"+g),tt(a,t)},_updatePosition:function(){var t=this._map.latLngToLayerPoint(this._latlng);this._setPosition(t)},setOpacity:function(t){this.options.opacity=t,this._container&&pt(this._container,t)},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center);this._setPosition(e)},_getAnchor:function(){return A(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),pl=function(t,e){return new Xe(t,e)};j.include({openTooltip:function(t,e,i){return this._initOverlay(Xe,t,e,i).openOn(this),this},closeTooltip:function(t){return t.close(),this}}),vt.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 Mt||(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=t.getElement();e&&(R(e,"focus",function(){this._tooltip._source=t,this.openTooltip()},this),R(e,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(t){var e=t.getElement();e&&e.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(t){!this._tooltip||!this._map||this._map.dragging&&this._map.dragging.moving()||(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,o;this._tooltip.options.sticky&&t.originalEvent&&(i=this._map.mouseEventToContainerPoint(t.originalEvent),o=this._map.containerPointToLayerPoint(i),e=this._map.layerPointToLatLng(o)),this._tooltip.setLatLng(e)}});var Do=$t.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?(Be(e),e.appendChild(i.html)):e.innerHTML=i.html!==!1?i.html:"",i.bgPos){var o=A(i.bgPos);e.style.backgroundPosition=-o.x+"px "+-o.y+"px"}return this._setIconStyles(e,"icon"),e},createShadow:function(){return null}});function _l(t){return new Do(t)}$t.Default=ge;var ve=vt.extend({options:{tileSize:256,opacity:1,updateWhenIdle:S.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){E(this,t)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(t){t._addZoomLimit(this)},onRemove:function(t){this._removeAllTiles(),X(this._container),t._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(Jt(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(Yt(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 I?t:new I(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),o=0,a=e.length,u;o<a;o++)u=e[o].style.zIndex,e[o]!==this._container&&u&&(i=t(i,+u));isFinite(i)&&(this.options.zIndex=i+t(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!S.ielt9){pt(this._container,this.options.opacity);var t=+new Date,e=!1,i=!1;for(var o in this._tiles){var a=this._tiles[o];if(!(!a.current||!a.loaded)){var u=Math.min(1,(t-a.loaded)/200);pt(a.el,u),u<1?e=!0:(a.active?i=!0:this._onOpaqueTile(a),a.active=!0)}}i&&!this._noPrune&&this._pruneTiles(),e&&(at(this._fadeFrame),this._fadeFrame=rt(this._updateOpacity,this))}},_onOpaqueTile:w,_initContainer:function(){this._container||(this._container=q("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)):(X(this._levels[i].el),this._removeTilesAtZoom(i),this._onRemoveLevel(i),delete this._levels[i]);var o=this._levels[t],a=this._map;return o||(o=this._levels[t]={},o.el=q("div","leaflet-tile-container leaflet-zoom-animated",this._container),o.el.style.zIndex=e,o.origin=a.project(a.unproject(a.getPixelOrigin()),t).round(),o.zoom=t,this._setZoomTransform(o,a.getCenter(),a.getZoom()),w(o.el.offsetWidth),this._onCreateLevel(o)),this._level=o,o}},_onUpdateLevel:w,_onRemoveLevel:w,_onCreateLevel:w,_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 o=e.coords;this._retainParent(o.x,o.y,o.z,o.z-5)||this._retainChildren(o.x,o.y,o.z,o.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)X(this._levels[t].el),this._onRemoveLevel(Number(t)),delete this._levels[t];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(t,e,i,o){var a=Math.floor(t/2),u=Math.floor(e/2),p=i-1,g=new I(+a,+u);g.z=+p;var y=this._tileCoordsToKey(g),x=this._tiles[y];return x&&x.active?(x.retain=!0,!0):(x&&x.loaded&&(x.retain=!0),p>o?this._retainParent(a,u,p,o):!1)},_retainChildren:function(t,e,i,o){for(var a=2*t;a<2*t+2;a++)for(var u=2*e;u<2*e+2;u++){var p=new I(a,u);p.z=i+1;var g=this._tileCoordsToKey(p),y=this._tiles[g];if(y&&y.active){y.retain=!0;continue}else y&&y.loaded&&(y.retain=!0);i+1<o&&this._retainChildren(a,u,i+1,o)}},_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,o){var a=Math.round(e);this.options.maxZoom!==void 0&&a>this.options.maxZoom||this.options.minZoom!==void 0&&a<this.options.minZoom?a=void 0:a=this._clampZoom(a);var u=this.options.updateWhenZooming&&a!==this._tileZoom;(!o||u)&&(this._tileZoom=a,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),a!==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 o=this._map.getZoomScale(i,t.zoom),a=t.origin.multiplyBy(o).subtract(this._map._getNewPixelOrigin(e,i)).round();S.any3d?Zt(t.el,a,o):tt(t.el,a)},_resetGrid:function(){var t=this._map,e=t.options.crs,i=this._tileSize=this.getTileSize(),o=this._tileZoom,a=this._map.getPixelWorldBounds(this._tileZoom);a&&(this._globalTileRange=this._pxBoundsToTileRange(a)),this._wrapX=e.wrapLng&&!this.options.noWrap&&[Math.floor(t.project([0,e.wrapLng[0]],o).x/i.x),Math.ceil(t.project([0,e.wrapLng[1]],o).x/i.y)],this._wrapY=e.wrapLat&&!this.options.noWrap&&[Math.floor(t.project([e.wrapLat[0],0],o).y/i.x),Math.ceil(t.project([e.wrapLat[1],0],o).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(),o=e.getZoomScale(i,this._tileZoom),a=e.project(t,this._tileZoom).floor(),u=e.getSize().divideBy(o*2);return new Y(a.subtract(u),a.add(u))},_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 o=this._getTiledPixelBounds(t),a=this._pxBoundsToTileRange(o),u=a.getCenter(),p=[],g=this.options.keepBuffer,y=new Y(a.getBottomLeft().subtract([g,-g]),a.getTopRight().add([g,-g]));if(!(isFinite(a.min.x)&&isFinite(a.min.y)&&isFinite(a.max.x)&&isFinite(a.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var x in this._tiles){var C=this._tiles[x].coords;(C.z!==this._tileZoom||!y.contains(new I(C.x,C.y)))&&(this._tiles[x].current=!1)}if(Math.abs(i-this._tileZoom)>1){this._setView(t,i);return}for(var O=a.min.y;O<=a.max.y;O++)for(var H=a.min.x;H<=a.max.x;H++){var mt=new I(H,O);if(mt.z=this._tileZoom,!!this._isValidTile(mt)){var Gt=this._tiles[this._tileCoordsToKey(mt)];Gt?Gt.current=!0:p.push(mt)}}if(p.sort(function(Rt,Yi){return Rt.distanceTo(u)-Yi.distanceTo(u)}),p.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var Qe=document.createDocumentFragment();for(H=0;H<p.length;H++)this._addTile(p[H],Qe);this._level.el.appendChild(Qe)}}}},_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 o=this._tileCoordsToBounds(t);return ot(this.options.bounds).overlaps(o)},_keyToBounds:function(t){return this._tileCoordsToBounds(this._keyToTileCoords(t))},_tileCoordsToNwSe:function(t){var e=this._map,i=this.getTileSize(),o=t.scaleBy(i),a=o.add(i),u=e.unproject(o,t.z),p=e.unproject(a,t.z);return[u,p]},_tileCoordsToBounds:function(t){var e=this._tileCoordsToNwSe(t),i=new ct(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 I(+e[0],+e[1]);return i.z=+e[2],i},_removeTile:function(t){var e=this._tiles[t];e&&(X(e.el),delete this._tiles[t],this.fire("tileunload",{tile:e.el,coords:this._keyToTileCoords(t)}))},_initTile:function(t){B(t,"leaflet-tile");var e=this.getTileSize();t.style.width=e.x+"px",t.style.height=e.y+"px",t.onselectstart=w,t.onmousemove=w,S.ielt9&&this.options.opacity<1&&pt(t,this.options.opacity)},_addTile:function(t,e){var i=this._getTilePos(t),o=this._tileCoordsToKey(t),a=this.createTile(this._wrapCoords(t),h(this._tileReady,this,t));this._initTile(a),this.createTile.length<2&&rt(h(this._tileReady,this,t,null,a)),tt(a,i),this._tiles[o]={el:a,coords:t,current:!0},e.appendChild(a),this.fire("tileloadstart",{tile:a,coords:t})},_tileReady:function(t,e,i){e&&this.fire("tileerror",{error:e,tile:i,coords:t});var o=this._tileCoordsToKey(t);i=this._tiles[o],i&&(i.loaded=+new Date,this._map._fadeAnimated?(pt(i.el,0),at(this._fadeFrame),this._fadeFrame=rt(this._updateOpacity,this)):(i.active=!0,this._pruneTiles()),e||(B(i.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:i.el,coords:t})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),S.ielt9||!this._map._fadeAnimated?rt(this._pruneTiles,this):setTimeout(h(this._pruneTiles,this),250)))},_getTilePos:function(t){return t.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(t){var e=new I(this._wrapX?v(t.x,this._wrapX):t.x,this._wrapY?v(t.y,this._wrapY):t.y);return e.z=t.z,e},_pxBoundsToTileRange:function(t){var e=this.getTileSize();return new Y(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 ml(t){return new ve(t)}var ee=ve.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=E(this,e),e.detectRetina&&S.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 R(i,"load",h(this._tileOnLoad,this,e,i)),R(i,"error",h(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:S.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 b(this._url,n(e,this.options))},_tileOnLoad:function(t,e){S.ielt9?setTimeout(h(t,this,null,e),0):t(null,e)},_tileOnError:function(t,e,i){var o=this.options.errorTileUrl;o&&e.getAttribute("src")!==o&&(e.src=o),t(i,e)},_onTileRemove:function(t){t.tile.onload=null},_getZoomForUrl:function(){var t=this._tileZoom,e=this.options.maxZoom,i=this.options.zoomReverse,o=this.options.zoomOffset;return i&&(t=e-t),t+o},_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=w,e.onerror=w,!e.complete)){e.src=U;var i=this._tiles[t].coords;X(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",U),ve.prototype._removeTile.call(this,t)},_tileReady:function(t,e,i){if(!(!this._map||i&&i.getAttribute("src")===U))return ve.prototype._tileReady.call(this,t,e,i)}});function Oo(t,e){return new ee(t,e)}var Ao=ee.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=n({},this.defaultWmsParams);for(var o in e)o in this.options||(i[o]=e[o]);e=E(this,e);var a=e.detectRetina&&S.retina?2:1,u=this.getTileSize();i.width=u.x*a,i.height=u.y*a,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,ee.prototype.onAdd.call(this,t)},getTileUrl:function(t){var e=this._tileCoordsToNwSe(t),i=this._crs,o=ht(i.project(e[0]),i.project(e[1])),a=o.min,u=o.max,p=(this._wmsVersion>=1.3&&this._crs===Eo?[a.y,a.x,u.y,u.x]:[a.x,a.y,u.x,u.y]).join(","),g=ee.prototype.getTileUrl.call(this,t);return g+D(this.wmsParams,g,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+p},setParams:function(t,e){return n(this.wmsParams,t),e||this.redraw(),this}});function gl(t,e){return new Ao(t,e)}ee.WMS=Ao,Oo.wms=gl;var St=vt.extend({options:{padding:.1},initialize:function(t){E(this,t),m(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),this._zoomAnimated&&B(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),o=this._map.getSize().multiplyBy(.5+this.options.padding),a=this._map.project(this._center,e),u=o.multiplyBy(-i).add(a).subtract(this._map._getNewPixelOrigin(t,e));S.any3d?Zt(this._container,u,i):tt(this._container,u)},_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 Y(i,i.add(e.multiplyBy(1+t*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),Io=St.extend({options:{tolerance:0},getEvents:function(){var t=St.prototype.getEvents.call(this);return t.viewprereset=this._onViewPreReset,t},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){St.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var t=this._container=document.createElement("canvas");R(t,"mousemove",this._onMouseMove,this),R(t,"click dblclick mousedown mouseup contextmenu",this._onClick,this),R(t,"mouseout",this._handleMouseOut,this),t._leaflet_disable_events=!0,this._ctx=t.getContext("2d")},_destroyContainer:function(){at(this._redrawRequest),delete this._ctx,X(this._container),V(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)){St.prototype._update.call(this);var t=this._bounds,e=this._container,i=t.getSize(),o=S.retina?2:1;tt(e,t.min),e.width=o*i.x,e.height=o*i.y,e.style.width=i.x+"px",e.style.height=i.y+"px",S.retina&&this._ctx.scale(2,2),this._ctx.translate(-t.min.x,-t.min.y),this.fire("update")}},_reset:function(){St.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(t){this._updateDashArray(t),this._layers[m(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,o=e.prev;i?i.prev=o:this._drawLast=o,o?o.next=i:this._drawFirst=i,delete t._order,delete this._layers[m(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=[],o,a;for(a=0;a<e.length;a++){if(o=Number(e[a]),isNaN(o))return;i.push(o)}t.options._dashArray=i}else t.options._dashArray=t.options.dashArray},_requestRedraw:function(t){this._map&&(this._extendRedrawBounds(t),this._redrawRequest=this._redrawRequest||rt(this._redraw,this))},_extendRedrawBounds:function(t){if(t._pxBounds){var e=(t.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new Y,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 o=this._drawFirst;o;o=o.next)t=o.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,o,a,u,p=t._parts,g=p.length,y=this._ctx;if(g){for(y.beginPath(),i=0;i<g;i++){for(o=0,a=p[i].length;o<a;o++)u=p[i][o],y[o?"lineTo":"moveTo"](u.x,u.y);e&&y.closePath()}this._fillStroke(y,t)}}},_updateCircle:function(t){if(!(!this._drawing||t._empty())){var e=t._point,i=this._ctx,o=Math.max(Math.round(t._radius),1),a=(Math.max(Math.round(t._radiusY),1)||o)/o;a!==1&&(i.save(),i.scale(1,a)),i.beginPath(),i.arc(e.x,e.y/a,o,0,Math.PI*2,!1),a!==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,o,a=this._drawFirst;a;a=a.next)i=a.layer,i.options.interactive&&i._containsPoint(e)&&(!(t.type==="click"||t.type==="preclick")||!this._map._draggableMoved(i))&&(o=i);this._fireEvent(o?[o]:!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&&(Q(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,o,a=this._drawFirst;a;a=a.next)i=a.layer,i.options.interactive&&i._containsPoint(e)&&(o=i);o!==this._hoveredLayer&&(this._handleMouseOut(t),o&&(B(this._container,"leaflet-interactive"),this._fireEvent([o],t,"mouseover"),this._hoveredLayer=o)),this._fireEvent(this._hoveredLayer?[this._hoveredLayer]:!1,t),this._mouseHoverThrottled=!0,setTimeout(h(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,o=e.prev;if(i)i.prev=o;else return;o?o.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,o=e.prev;if(o)o.next=i;else return;i?i.prev=o:o&&(this._drawLast=o),e.prev=null,e.next=this._drawFirst,this._drawFirst.prev=e,this._drawFirst=e,this._requestRedraw(t)}}});function Ro(t){return S.canvas?new Io(t):null}var ye=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">')}}(),vl={_initContainer:function(){this._container=q("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(St.prototype._update.call(this),this.fire("update"))},_initPath:function(t){var e=t._container=ye("shape");B(e,"leaflet-vml-shape "+(this.options.className||"")),e.coordsize="1 1",t._path=ye("path"),e.appendChild(t._path),this._updateStyle(t),this._layers[m(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;X(e),t.removeInteractiveTarget(e),delete this._layers[m(t)]},_updateStyle:function(t){var e=t._stroke,i=t._fill,o=t.options,a=t._container;a.stroked=!!o.stroke,a.filled=!!o.fill,o.stroke?(e||(e=t._stroke=ye("stroke")),a.appendChild(e),e.weight=o.weight+"px",e.color=o.color,e.opacity=o.opacity,o.dashArray?e.dashStyle=M(o.dashArray)?o.dashArray.join(" "):o.dashArray.replace(/( *, *)/g," "):e.dashStyle="",e.endcap=o.lineCap.replace("butt","flat"),e.joinstyle=o.lineJoin):e&&(a.removeChild(e),t._stroke=null),o.fill?(i||(i=t._fill=ye("fill")),a.appendChild(i),i.color=o.fillColor||o.color,i.opacity=o.fillOpacity):i&&(a.removeChild(i),t._fill=null)},_updateCircle:function(t){var e=t._point.round(),i=Math.round(t._radius),o=Math.round(t._radiusY||i);this._setPath(t,t._empty()?"M0 0":"AL "+e.x+","+e.y+" "+i+","+o+" 0,"+65535*360)},_setPath:function(t,e){t._path.v=e},_bringToFront:function(t){Jt(t._container)},_bringToBack:function(t){Yt(t._container)}},$e=S.vml?ye:Zn,Le=St.extend({_initContainer:function(){this._container=$e("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=$e("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){X(this._container),V(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){St.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)),tt(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=$e("path");t.options.className&&B(e,t.options.className),t.options.interactive&&B(e,"leaflet-interactive"),this._updateStyle(t),this._layers[m(t)]=t},_addPath:function(t){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(t._path),t.addInteractiveTarget(t._path)},_removePath:function(t){X(t._path),t.removeInteractiveTarget(t._path),delete this._layers[m(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,Hn(t._parts,e))},_updateCircle:function(t){var e=t._point,i=Math.max(Math.round(t._radius),1),o=Math.max(Math.round(t._radiusY),1)||i,a="a"+i+","+o+" 0 1,0 ",u=t._empty()?"M0 0":"M"+(e.x-i)+","+e.y+a+i*2+",0 "+a+-i*2+",0 ";this._setPath(t,u)},_setPath:function(t,e){t._path.setAttribute("d",e)},_bringToFront:function(t){Jt(t._path)},_bringToBack:function(t){Yt(t._path)}});S.vml&&Le.include(vl);function Bo(t){return S.svg||S.vml?new Le(t):null}j.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&&Ro(t)||Bo(t)}});var No=Qt.extend({initialize:function(t,e){Qt.prototype.initialize.call(this,this._boundsToLatLngs(t),e)},setBounds:function(t){return this.setLatLngs(this._boundsToLatLngs(t))},_boundsToLatLngs:function(t){return t=ot(t),[t.getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}});function yl(t,e){return new No(t,e)}Le.create=$e,Le.pointsToPath=Hn,zt.geometryToLayer=qe,zt.coordsToLatLng=Ki,zt.coordsToLatLngs=We,zt.latLngToCoords=Vi,zt.latLngsToCoords=Ke,zt.getFeature=te,zt.asFeature=Ve,j.mergeOptions({boxZoom:!0});var Zo=bt.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(){R(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){V(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){X(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(),ue(),Si(),this._startPoint=this._map.mouseEventToContainerPoint(t),R(document,{contextmenu:Ut,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(t){this._moved||(this._moved=!0,this._box=q("div","leaflet-zoom-box",this._container),B(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(t);var e=new Y(this._point,this._startPoint),i=e.getSize();tt(this._box,e.min),this._box.style.width=i.x+"px",this._box.style.height=i.y+"px"},_finish:function(){this._moved&&(X(this._box),Q(this._container,"leaflet-crosshair")),de(),Di(),V(document,{contextmenu:Ut,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(h(this._resetState,this),0);var e=new ct(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())}});j.addInitHook("addHandler","boxZoom",Zo),j.mergeOptions({doubleClickZoom:!0});var Ho=bt.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(),o=e.options.zoomDelta,a=t.originalEvent.shiftKey?i-o:i+o;e.options.doubleClickZoom==="center"?e.setZoom(a):e.setZoomAround(t.containerPoint,a)}});j.addInitHook("addHandler","doubleClickZoom",Ho),j.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var Fo=bt.extend({addHooks:function(){if(!this._draggable){var t=this._map;this._draggable=new At(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))}B(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){Q(this._map._container,"leaflet-grab"),Q(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=ot(this._map.options.maxBounds);this._offsetLimit=ht(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,o=this._draggable._newPos.x,a=(o-e+i)%t+e-i,u=(o+e+i)%t-e-i,p=Math.abs(a+i)<Math.abs(u+i)?a:u;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=p},_onDragEnd:function(t){var e=this._map,i=e.options,o=!i.inertia||t.noInertia||this._times.length<2;if(e.fire("dragend",t),o)e.fire("moveend");else{this._prunePositions(+new Date);var a=this._lastPos.subtract(this._positions[0]),u=(this._lastTime-this._times[0])/1e3,p=i.easeLinearity,g=a.multiplyBy(p/u),y=g.distanceTo([0,0]),x=Math.min(i.inertiaMaxSpeed,y),C=g.multiplyBy(x/y),O=x/(i.inertiaDeceleration*p),H=C.multiplyBy(-O/2).round();!H.x&&!H.y?e.fire("moveend"):(H=e._limitOffset(H,e.options.maxBounds),rt(function(){e.panBy(H,{duration:O,easeLinearity:p,noMoveStart:!0,animate:!0})}))}}});j.addInitHook("addHandler","dragging",Fo),j.mergeOptions({keyboard:!0,keyboardPanDelta:80});var Uo=bt.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"),R(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(),V(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,o=t.scrollLeft||e.scrollLeft;this._map._container.focus(),window.scrollTo(o,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,o,a;for(o=0,a=i.left.length;o<a;o++)e[i.left[o]]=[-1*t,0];for(o=0,a=i.right.length;o<a;o++)e[i.right[o]]=[t,0];for(o=0,a=i.down.length;o<a;o++)e[i.down[o]]=[0,t];for(o=0,a=i.up.length;o<a;o++)e[i.up[o]]=[0,-1*t]},_setZoomDelta:function(t){var e=this._zoomKeys={},i=this.keyCodes,o,a;for(o=0,a=i.zoomIn.length;o<a;o++)e[i.zoomIn[o]]=t;for(o=0,a=i.zoomOut.length;o<a;o++)e[i.zoomOut[o]]=-t},_addHooks:function(){R(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){V(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(t){if(!(t.altKey||t.ctrlKey||t.metaKey)){var e=t.keyCode,i=this._map,o;if(e in this._panKeys){if(!i._panAnim||!i._panAnim._inProgress)if(o=this._panKeys[e],t.shiftKey&&(o=A(o).multiplyBy(3)),i.options.maxBounds&&(o=i._limitOffset(A(o),i.options.maxBounds)),i.options.worldCopyJump){var a=i.wrapLatLng(i.unproject(i.project(i.getCenter()).add(o)));i.panTo(a)}else i.panBy(o)}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;Ut(t)}}});j.addInitHook("addHandler","keyboard",Uo),j.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var jo=bt.extend({addHooks:function(){R(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){V(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(t){var e=fo(t),i=this._map.options.wheelDebounceTime;this._delta+=e,this._lastMousePos=this._map.mouseEventToContainerPoint(t),this._startTime||(this._startTime=+new Date);var o=Math.max(i-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(h(this._performZoom,this),o),Ut(t)},_performZoom:function(){var t=this._map,e=t.getZoom(),i=this._map.options.zoomSnap||0;t._stop();var o=this._delta/(this._map.options.wheelPxPerZoomLevel*4),a=4*Math.log(2/(1+Math.exp(-Math.abs(o))))/Math.LN2,u=i?Math.ceil(a/i)*i:a,p=t._limitZoom(e+(this._delta>0?u:-u))-e;this._delta=0,this._startTime=null,p&&(t.options.scrollWheelZoom==="center"?t.setZoom(e+p):t.setZoomAround(this._lastMousePos,e+p))}});j.addInitHook("addHandler","scrollWheelZoom",jo);var Ll=600;j.mergeOptions({tapHold:S.touchNative&&S.safari&&S.mobile,tapTolerance:15});var Go=bt.extend({addHooks:function(){R(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){V(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 I(e.clientX,e.clientY),this._holdTimeout=setTimeout(h(function(){this._cancel(),this._isTapValid()&&(R(document,"touchend",st),R(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",e))},this),Ll),R(document,"touchend touchcancel contextmenu",this._cancel,this),R(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function t(){V(document,"touchend",st),V(document,"touchend touchcancel",t)},_cancel:function(){clearTimeout(this._holdTimeout),V(document,"touchend touchcancel contextmenu",this._cancel,this),V(document,"touchmove",this._onMove,this)},_onMove:function(t){var e=t.touches[0];this._newPos=new I(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)}});j.addInitHook("addHandler","tapHold",Go),j.mergeOptions({touchZoom:S.touch,bounceAtZoomLimits:!0});var qo=bt.extend({addHooks:function(){B(this._map._container,"leaflet-touch-zoom"),R(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){Q(this._map._container,"leaflet-touch-zoom"),V(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]),o=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(o)._divideBy(2))),this._startDist=i.distanceTo(o),this._startZoom=e.getZoom(),this._moved=!1,this._zooming=!0,e._stop(),R(document,"touchmove",this._onTouchMove,this),R(document,"touchend touchcancel",this._onTouchEnd,this),st(t)}},_onTouchMove:function(t){if(!(!t.touches||t.touches.length!==2||!this._zooming)){var e=this._map,i=e.mouseEventToContainerPoint(t.touches[0]),o=e.mouseEventToContainerPoint(t.touches[1]),a=i.distanceTo(o)/this._startDist;if(this._zoom=e.getScaleZoom(a,this._startZoom),!e.options.bounceAtZoomLimits&&(this._zoom<e.getMinZoom()&&a<1||this._zoom>e.getMaxZoom()&&a>1)&&(this._zoom=e._limitZoom(this._zoom)),e.options.touchZoom==="center"){if(this._center=this._startLatLng,a===1)return}else{var u=i._add(o)._divideBy(2)._subtract(this._centerPoint);if(a===1&&u.x===0&&u.y===0)return;this._center=e.unproject(e.project(this._pinchStartLatLng,this._zoom).subtract(u),this._zoom)}this._moved||(e._moveStart(!0,!1),this._moved=!0),at(this._animRequest);var p=h(e._move,e,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=rt(p,this,!0),st(t)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,at(this._animRequest),V(document,"touchmove",this._onTouchMove,this),V(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))}});j.addInitHook("addHandler","touchZoom",qo),j.BoxZoom=Zo,j.DoubleClickZoom=Ho,j.Drag=Fo,j.Keyboard=Uo,j.ScrollWheelZoom=jo,j.TapHold=Go,j.TouchZoom=qo,c.Bounds=Y,c.Browser=S,c.CRS=Tt,c.Canvas=Io,c.Circle=Wi,c.CircleMarker=Ge,c.Class=Et,c.Control=gt,c.DivIcon=Do,c.DivOverlay=xt,c.DomEvent=Na,c.DomUtil=Ra,c.Draggable=At,c.Evented=se,c.FeatureGroup=Mt,c.GeoJSON=zt,c.GridLayer=ve,c.Handler=bt,c.Icon=$t,c.ImageOverlay=Je,c.LatLng=W,c.LatLngBounds=ct,c.Layer=vt,c.LayerGroup=Xt,c.LineUtil=Ya,c.Map=j,c.Marker=je,c.Mixin=qa,c.Path=It,c.Point=I,c.PolyUtil=Xa,c.Polygon=Qt,c.Polyline=Ct,c.Popup=Ye,c.PosAnimation=po,c.Projection=$a,c.Rectangle=No,c.Renderer=St,c.SVG=Le,c.SVGOverlay=So,c.TileLayer=ee,c.Tooltip=Xe,c.Transformation=yi,c.Util=oa,c.VideoOverlay=zo,c.bind=h,c.bounds=ht,c.canvas=Ro,c.circle=sl,c.circleMarker=rl,c.control=_e,c.divIcon=_l,c.extend=n,c.featureGroup=il,c.geoJSON=Co,c.geoJson=hl,c.gridLayer=ml,c.icon=nl,c.imageOverlay=cl,c.latLng=K,c.latLngBounds=ot,c.layerGroup=el,c.map=Za,c.marker=ol,c.point=A,c.polygon=ll,c.polyline=al,c.popup=fl,c.rectangle=yl,c.setOptions=E,c.stamp=m,c.svg=Bo,c.svgOverlay=dl,c.tileLayer=Oo,c.tooltip=pl,c.transformation=ae,c.version=d,c.videoOverlay=ul;var wl=window.L;c.noConflict=function(){return window.L=wl,this},window.L=c})})(ar,F);const Dl="";function nn(s,l,c){c===void 0&&(c={});var d={type:"Feature"};return(c.id===0||c.id)&&(d.id=c.id),c.bbox&&(d.bbox=c.bbox),d.properties=l||{},d.geometry=s,d}function lr(s,l,c){if(c===void 0&&(c={}),!s)throw new Error("coordinates is required");if(!Array.isArray(s))throw new Error("coordinates must be an Array");if(s.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!on(s[0])||!on(s[1]))throw new Error("coordinates must contain numbers");var d={type:"Point",coordinates:s};return nn(d,l,c)}function hr(s,l,c){c===void 0&&(c={});for(var d=0,n=s;d<n.length;d++){var r=n[d];if(r.length<4)throw new Error("Each LinearRing of a Polygon must have 4 or more Positions.");for(var h=0;h<r[r.length-1].length;h++)if(r[r.length-1][h]!==r[0][h])throw new Error("First and last Position are not equivalent.")}var f={type:"Polygon",coordinates:s};return nn(f,l,c)}function on(s){return!isNaN(s)&&s!==null&&!Array.isArray(s)}function cr(s){if(!s)throw new Error("coord is required");if(!Array.isArray(s)){if(s.type==="Feature"&&s.geometry!==null&&s.geometry.type==="Point")return s.geometry.coordinates;if(s.type==="Point")return s.coordinates}if(Array.isArray(s)&&s.length>=2&&!Array.isArray(s[0])&&!Array.isArray(s[1]))return s;throw new Error("coord must be GeoJSON Point or an Array of numbers")}function ur(s){return s.type==="Feature"?s.geometry:s}function dr(s,l,c){if(c===void 0&&(c={}),!s)throw new Error("point is required");if(!l)throw new Error("polygon is required");var d=cr(s),n=ur(l),r=n.type,h=l.bbox,f=n.coordinates;if(h&&fr(d,h)===!1)return!1;r==="Polygon"&&(f=[f]);for(var m=!1,_=0;_<f.length&&!m;_++)if(rn(d,f[_][0],c.ignoreBoundary)){for(var v=!1,w=1;w<f[_].length&&!v;)rn(d,f[_][w],!c.ignoreBoundary)&&(v=!0),w++;v||(m=!0)}return m}function rn(s,l,c){var d=!1;l[0][0]===l[l.length-1][0]&&l[0][1]===l[l.length-1][1]&&(l=l.slice(0,l.length-1));for(var n=0,r=l.length-1;n<l.length;r=n++){var h=l[n][0],f=l[n][1],m=l[r][0],_=l[r][1],v=s[1]*(h-m)+f*(m-s[0])+_*(s[0]-h)===0&&(h-s[0])*(m-s[0])<=0&&(f-s[1])*(_-s[1])<=0;if(v)return!c;var w=f>s[1]!=_>s[1]&&s[0]<(m-h)*(s[1]-f)/(_-f)+h;w&&(d=!d)}return d}function fr(s,l){return l[0]<=s[0]&&l[1]<=s[1]&&l[2]>=s[0]&&l[3]>=s[1]}const pr=$.defineComponent({name:"CoordinatesVerifyPolygon",props:{dataPolygon:Object,iconMarker:Object,coordinatesMap:Array,checkPointInPolygon:Function},data(){return{markerIconDefault:{iconUrl:oi,iconSize:[25,41],iconAnchor:[12,41]}}},mounted(){this.verificarPuntoEnPoligono()},methods:{verificarPuntoEnPoligono(){var v;const s=this.iconMarker?this.iconMarker:this.markerIconDefault,l=(v=this.dataPolygon)==null?void 0:v.geometry.coordinates[0].map(w=>[w[1],w[0]]),c=JSON.parse(JSON.stringify(l)),d=[this.coordinatesMap?this.coordinatesMap[0]:0,this.coordinatesMap?this.coordinatesMap[1]:0],n=F.map("maps").setView([this.coordinatesMap?this.coordinatesMap[0]:0,this.coordinatesMap?this.coordinatesMap[1]:0],this.coordinatesMap?this.coordinatesMap[2]:0);F.tileLayer("https://tile.openstreetmap.org/{z}/{x}/{y}.png",{maxZoom:19,attribution:'&copy; <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>'}).addTo(n),F.polygon(c).addTo(n);const r=[this.coordinatesMap?this.coordinatesMap[0]:0,this.coordinatesMap?this.coordinatesMap[1]:0],h=F.icon(s);F.marker(r,{icon:h}).addTo(n);const f=lr(d),m=hr([l]),_=dr(f,m);this.checkPointInPolygon&&this.checkPointInPolygon(_)}}}),Ol="",sn=(s,l)=>{const c=s.__vccOpts||s;for(const[d,n]of l)c[d]=n;return c},_r={ref:"maps",id:"maps"};function mr(s,l,c,d,n,r){return $.openBlock(),$.createElementBlock("div",_r,null,512)}const gr=sn(pr,[["render",mr]]);(function(s,l,c){function d(n,r){for(;(n=n.parentElement)&&!n.classList.contains(r););return n}L.drawVersion="1.0.4",L.Draw={},L.drawLocal={draw:{toolbar:{actions:{title:"Cancel drawing",text:"Cancel"},finish:{title:"Finish drawing",text:"Finish"},undo:{title:"Delete last point drawn",text:"Delete last point"},buttons:{polyline:"Draw a polyline",polygon:"Draw a polygon",rectangle:"Draw a rectangle",circle:"Draw a circle",marker:"Draw a marker",circlemarker:"Draw a circlemarker"}},handlers:{circle:{tooltip:{start:"Click and drag to draw circle."},radius:"Radius"},circlemarker:{tooltip:{start:"Click map to place circle marker."}},marker:{tooltip:{start:"Click map to place marker."}},polygon:{tooltip:{start:"Click to start drawing shape.",cont:"Click to continue drawing shape.",end:"Click first point to close this shape."}},polyline:{error:"<strong>Error:</strong> shape edges cannot cross!",tooltip:{start:"Click to start drawing line.",cont:"Click to continue drawing line.",end:"Click last point to finish line."}},rectangle:{tooltip:{start:"Click and drag to draw rectangle."}},simpleshape:{tooltip:{end:"Release mouse to finish drawing."}}}},edit:{toolbar:{actions:{save:{title:"Save changes",text:"Save"},cancel:{title:"Cancel editing, discards all changes",text:"Cancel"},clearAll:{title:"Clear all layers",text:"Clear All"}},buttons:{edit:"Edit layers",editDisabled:"No layers to edit",remove:"Delete layers",removeDisabled:"No layers to delete"}},handlers:{edit:{tooltip:{text:"Drag handles or markers to edit features.",subtext:"Click cancel to undo changes."}},remove:{tooltip:{text:"Click on a feature to remove."}}}}},L.Draw.Event={},L.Draw.Event.CREATED="draw:created",L.Draw.Event.EDITED="draw:edited",L.Draw.Event.DELETED="draw:deleted",L.Draw.Event.DRAWSTART="draw:drawstart",L.Draw.Event.DRAWSTOP="draw:drawstop",L.Draw.Event.DRAWVERTEX="draw:drawvertex",L.Draw.Event.EDITSTART="draw:editstart",L.Draw.Event.EDITMOVE="draw:editmove",L.Draw.Event.EDITRESIZE="draw:editresize",L.Draw.Event.EDITVERTEX="draw:editvertex",L.Draw.Event.EDITSTOP="draw:editstop",L.Draw.Event.DELETESTART="draw:deletestart",L.Draw.Event.DELETESTOP="draw:deletestop",L.Draw.Event.TOOLBAROPENED="draw:toolbaropened",L.Draw.Event.TOOLBARCLOSED="draw:toolbarclosed",L.Draw.Event.MARKERCONTEXT="draw:markercontext",L.Draw=L.Draw||{},L.Draw.Feature=L.Handler.extend({initialize:function(n,r){this._map=n,this._container=n._container,this._overlayPane=n._panes.overlayPane,this._popupPane=n._panes.popupPane,r&&r.shapeOptions&&(r.shapeOptions=L.Util.extend({},this.options.shapeOptions,r.shapeOptions)),L.setOptions(this,r);var h=L.version.split(".");parseInt(h[0],10)===1&&parseInt(h[1],10)>=2?L.Draw.Feature.include(L.Evented.prototype):L.Draw.Feature.include(L.Mixin.Events)},enable:function(){this._enabled||(L.Handler.prototype.enable.call(this),this.fire("enabled",{handler:this.type}),this._map.fire(L.Draw.Event.DRAWSTART,{layerType:this.type}))},disable:function(){this._enabled&&(L.Handler.prototype.disable.call(this),this._map.fire(L.Draw.Event.DRAWSTOP,{layerType:this.type}),this.fire("disabled",{handler:this.type}))},addHooks:function(){var n=this._map;n&&(L.DomUtil.disableTextSelection(),n.getContainer().focus(),this._tooltip=new L.Draw.Tooltip(this._map),L.DomEvent.on(this._container,"keyup",this._cancelDrawing,this))},removeHooks:function(){this._map&&(L.DomUtil.enableTextSelection(),this._tooltip.dispose(),this._tooltip=null,L.DomEvent.off(this._container,"keyup",this._cancelDrawing,this))},setOptions:function(n){L.setOptions(this,n)},_fireCreatedEvent:function(n){this._map.fire(L.Draw.Event.CREATED,{layer:n,layerType:this.type})},_cancelDrawing:function(n){n.keyCode===27&&(this._map.fire("draw:canceled",{layerType:this.type}),this.disable())}}),L.Draw.Polyline=L.Draw.Feature.extend({statics:{TYPE:"polyline"},Poly:L.Polyline,options:{allowIntersection:!0,repeatMode:!1,drawError:{color:"#b00b00",timeout:2500},icon:new L.DivIcon({iconSize:new L.Point(8,8),className:"leaflet-div-icon leaflet-editing-icon"}),touchIcon:new L.DivIcon({iconSize:new L.Point(20,20),className:"leaflet-div-icon leaflet-editing-icon leaflet-touch-icon"}),guidelineDistance:20,maxGuideLineLength:4e3,shapeOptions:{stroke:!0,color:"#3388ff",weight:4,opacity:.5,fill:!1,clickable:!0},metric:!0,feet:!0,nautic:!1,showLength:!0,zIndexOffset:2e3,factor:1,maxPoints:0},initialize:function(n,r){L.Browser.touch&&(this.options.icon=this.options.touchIcon),this.options.drawError.message=L.drawLocal.draw.handlers.polyline.error,r&&r.drawError&&(r.drawError=L.Util.extend({},this.options.drawError,r.drawError)),this.type=L.Draw.Polyline.TYPE,L.Draw.Feature.prototype.initialize.call(this,n,r)},addHooks:function(){L.Draw.Feature.prototype.addHooks.call(this),this._map&&(this._markers=[],this._markerGroup=new L.LayerGroup,this._map.addLayer(this._markerGroup),this._poly=new L.Polyline([],this.options.shapeOptions),this._tooltip.updateContent(this._getTooltipText()),this._mouseMarker||(this._mouseMarker=L.marker(this._map.getCenter(),{icon:L.divIcon({className:"leaflet-mouse-marker",iconAnchor:[20,20],iconSize:[40,40]}),opacity:0,zIndexOffset:this.options.zIndexOffset})),this._mouseMarker.on("mouseout",this._onMouseOut,this).on("mousemove",this._onMouseMove,this).on("mousedown",this._onMouseDown,this).on("mouseup",this._onMouseUp,this).addTo(this._map),this._map.on("mouseup",this._onMouseUp,this).on("mousemove",this._onMouseMove,this).on("zoomlevelschange",this._onZoomEnd,this).on("touchstart",this._onTouch,this).on("zoomend",this._onZoomEnd,this))},removeHooks:function(){L.Draw.Feature.prototype.removeHooks.call(this),this._clearHideErrorTimeout(),this._cleanUpShape(),this._map.removeLayer(this._markerGroup),delete this._markerGroup,delete this._markers,this._map.removeLayer(this._poly),delete this._poly,this._mouseMarker.off("mousedown",this._onMouseDown,this).off("mouseout",this._onMouseOut,this).off("mouseup",this._onMouseUp,this).off("mousemove",this._onMouseMove,this),this._map.removeLayer(this._mouseMarker),delete this._mouseMarker,this._clearGuides(),this._map.off("mouseup",this._onMouseUp,this).off("mousemove",this._onMouseMove,this).off("zoomlevelschange",this._onZoomEnd,this).off("zoomend",this._onZoomEnd,this).off("touchstart",this._onTouch,this).off("click",this._onTouch,this)},deleteLastVertex:function(){if(!(this._markers.length<=1)){var n=this._markers.pop(),r=this._poly,h=r.getLatLngs(),f=h.splice(-1,1)[0];this._poly.setLatLngs(h),this._markerGroup.removeLayer(n),r.getLatLngs().length<2&&this._map.removeLayer(r),this._vertexChanged(f,!1)}},addVertex:function(n){if(this._markers.length>=2&&!this.options.allowIntersection&&this._poly.newLatLngIntersects(n))return void this._showErrorTooltip();this._errorShown&&this._hideErrorTooltip(),this._markers.push(this._createMarker(n)),this._poly.addLatLng(n),this._poly.getLatLngs().length===2&&this._map.addLayer(this._poly),this._vertexChanged(n,!0)},completeShape:function(){this._markers.length<=1||!this._shapeIsValid()||(this._fireCreatedEvent(),this.disable(),this.options.repeatMode&&this.enable())},_finishShape:function(){var n=this._poly._defaultShape?this._poly._defaultShape():this._poly.getLatLngs(),r=this._poly.newLatLngIntersects(n[n.length-1]);if(!this.options.allowIntersection&&r||!this._shapeIsValid())return void this._showErrorTooltip();this._fireCreatedEvent(),this.disable(),this.options.repeatMode&&this.enable()},_shapeIsValid:function(){return!0},_onZoomEnd:function(){this._markers!==null&&this._updateGuide()},_onMouseMove:function(n){var r=this._map.mouseEventToLayerPoint(n.originalEvent),h=this._map.layerPointToLatLng(r);this._currentLatLng=h,this._updateTooltip(h),this._updateGuide(r),this._mouseMarker.setLatLng(h),L.DomEvent.preventDefault(n.originalEvent)},_vertexChanged:function(n,r){this._map.fire(L.Draw.Event.DRAWVERTEX,{layers:this._markerGroup}),this._updateFinishHandler(),this._updateRunningMeasure(n,r),this._clearGuides(),this._updateTooltip()},_onMouseDown:function(n){if(!this._clickHandled&&!this._touchHandled&&!this._disableMarkers){this._onMouseMove(n),this._clickHandled=!0,this._disableNewMarkers();var r=n.originalEvent,h=r.clientX,f=r.clientY;this._startPoint.call(this,h,f)}},_startPoint:function(n,r){this._mouseDownOrigin=L.point(n,r)},_onMouseUp:function(n){var r=n.originalEvent,h=r.clientX,f=r.clientY;this._endPoint.call(this,h,f,n),this._clickHandled=null},_endPoint:function(n,r,h){if(this._mouseDownOrigin){var f=L.point(n,r).distanceTo(this._mouseDownOrigin),m=this._calculateFinishDistance(h.latlng);this.options.maxPoints>1&&this.options.maxPoints==this._markers.length+1?(this.addVertex(h.latlng),this._finishShape()):m<10&&L.Browser.touch?this._finishShape():Math.abs(f)<9*(s.devicePixelRatio||1)&&this.addVertex(h.latlng),this._enableNewMarkers()}this._mouseDownOrigin=null},_onTouch:function(n){var r,h,f=n.originalEvent;!f.touches||!f.touches[0]||this._clickHandled||this._touchHandled||this._disableMarkers||(r=f.touches[0].clientX,h=f.touches[0].clientY,this._disableNewMarkers(),this._touchHandled=!0,this._startPoint.call(this,r,h),this._endPoint.call(this,r,h,n),this._touchHandled=null),this._clickHandled=null},_onMouseOut:function(){this._tooltip&&this._tooltip._onMouseOut.call(this._tooltip)},_calculateFinishDistance:function(n){var r;if(this._markers.length>0){var h;if(this.type===L.Draw.Polyline.TYPE)h=this._markers[this._markers.length-1];else{if(this.type!==L.Draw.Polygon.TYPE)return 1/0;h=this._markers[0]}var f=this._map.latLngToContainerPoint(h.getLatLng()),m=new L.Marker(n,{icon:this.options.icon,zIndexOffset:2*this.options.zIndexOffset}),_=this._map.latLngToContainerPoint(m.getLatLng());r=f.distanceTo(_)}else r=1/0;return r},_updateFinishHandler:function(){var n=this._markers.length;n>1&&this._markers[n-1].on("click",this._finishShape,this),n>2&&this._markers[n-2].off("click",this._finishShape,this)},_createMarker:function(n){var r=new L.Marker(n,{icon:this.options.icon,zIndexOffset:2*this.options.zIndexOffset});return this._markerGroup.addLayer(r),r},_updateGuide:function(n){var r=this._markers?this._markers.length:0;r>0&&(n=n||this._map.latLngToLayerPoint(this._currentLatLng),this._clearGuides(),this._drawGuide(this._map.latLngToLayerPoint(this._markers[r-1].getLatLng()),n))},_updateTooltip:function(n){var r=this._getTooltipText();n&&this._tooltip.updatePosition(n),this._errorShown||this._tooltip.updateContent(r)},_drawGuide:function(n,r){var h,f,m,_=Math.floor(Math.sqrt(Math.pow(r.x-n.x,2)+Math.pow(r.y-n.y,2))),v=this.options.guidelineDistance,w=this.options.maxGuideLineLength,T=_>w?_-w:v;for(this._guidesContainer||(this._guidesContainer=L.DomUtil.create("div","leaflet-draw-guides",this._overlayPane));T<_;T+=this.options.guidelineDistance)h=T/_,f={x:Math.floor(n.x*(1-h)+h*r.x),y:Math.floor(n.y*(1-h)+h*r.y)},m=L.DomUtil.create("div","leaflet-draw-guide-dash",this._guidesContainer),m.style.backgroundColor=this._errorShown?this.options.drawError.color:this.options.shapeOptions.color,L.DomUtil.setPosition(m,f)},_updateGuideColor:function(n){if(this._guidesContainer)for(var r=0,h=this._guidesContainer.childNodes.length;r<h;r++)this._guidesContainer.childNodes[r].style.backgroundColor=n},_clearGuides:function(){if(this._guidesContainer)for(;this._guidesContainer.firstChild;)this._guidesContainer.removeChild(this._guidesContainer.firstChild)},_getTooltipText:function(){var n,r,h=this.options.showLength;return this._markers.length===0?n={text:L.drawLocal.draw.handlers.polyline.tooltip.start}:(r=h?this._getMeasurementString():"",n=this._markers.length===1?{text:L.drawLocal.draw.handlers.polyline.tooltip.cont,subtext:r}:{text:L.drawLocal.draw.handlers.polyline.tooltip.end,subtext:r}),n},_updateRunningMeasure:function(n,r){var h,f,m=this._markers.length;this._markers.length===1?this._measurementRunningTotal=0:(h=m-(r?2:1),f=L.GeometryUtil.isVersion07x()?n.distanceTo(this._markers[h].getLatLng())*(this.options.factor||1):this._map.distance(n,this._markers[h].getLatLng())*(this.options.factor||1),this._measurementRunningTotal+=f*(r?1:-1))},_getMeasurementString:function(){var n,r=this._currentLatLng,h=this._markers[this._markers.length-1].getLatLng();return n=L.GeometryUtil.isVersion07x()?h&&r&&r.distanceTo?this._measurementRunningTotal+r.distanceTo(h)*(this.options.factor||1):this._measurementRunningTotal||0:h&&r?this._measurementRunningTotal+this._map.distance(r,h)*(this.options.factor||1):this._measurementRunningTotal||0,L.GeometryUtil.readableDistance(n,this.options.metric,this.options.feet,this.options.nautic,this.options.precision)},_showErrorTooltip:function(){this._errorShown=!0,this._tooltip.showAsError().updateContent({text:this.options.drawError.message}),this._updateGuideColor(this.options.drawError.color),this._poly.setStyle({color:this.options.drawError.color}),this._clearHideErrorTimeout(),this._hideErrorTimeout=setTimeout(L.Util.bind(this._hideErrorTooltip,this),this.options.drawError.timeout)},_hideErrorTooltip:function(){this._errorShown=!1,this._clearHideErrorTimeout(),this._tooltip.removeError().updateContent(this._getTooltipText()),this._updateGuideColor(this.options.shapeOptions.color),this._poly.setStyle({color:this.options.shapeOptions.color})},_clearHideErrorTimeout:function(){this._hideErrorTimeout&&(clearTimeout(this._hideErrorTimeout),this._hideErrorTimeout=null)},_disableNewMarkers:function(){this._disableMarkers=!0},_enableNewMarkers:function(){setTimeout(function(){this._disableMarkers=!1}.bind(this),50)},_cleanUpShape:function(){this._markers.length>1&&this._markers[this._markers.length-1].off("click",this._finishShape,this)},_fireCreatedEvent:function(){var n=new this.Poly(this._poly.getLatLngs(),this.options.shapeOptions);L.Draw.Feature.prototype._fireCreatedEvent.call(this,n)}}),L.Draw.Polygon=L.Draw.Polyline.extend({statics:{TYPE:"polygon"},Poly:L.Polygon,options:{showArea:!1,showLength:!1,shapeOptions:{stroke:!0,color:"#3388ff",weight:4,opacity:.5,fill:!0,fillColor:null,fillOpacity:.2,clickable:!0},metric:!0,feet:!0,nautic:!1,precision:{}},initialize:function(n,r){L.Draw.Polyline.prototype.initialize.call(this,n,r),this.type=L.Draw.Polygon.TYPE},_updateFinishHandler:function(){var n=this._markers.length;n===1&&this._markers[0].on("click",this._finishShape,this),n>2&&(this._markers[n-1].on("dblclick",this._finishShape,this),n>3&&this._markers[n-2].off("dblclick",this._finishShape,this))},_getTooltipText:function(){var n,r;return this._markers.length===0?n=L.drawLocal.draw.handlers.polygon.tooltip.start:this._markers.length<3?(n=L.drawLocal.draw.handlers.polygon.tooltip.cont,r=this._getMeasurementString()):(n=L.drawLocal.draw.handlers.polygon.tooltip.end,r=this._getMeasurementString()),{text:n,subtext:r}},_getMeasurementString:function(){var n=this._area,r="";return n||this.options.showLength?(this.options.showLength&&(r=L.Draw.Polyline.prototype._getMeasurementString.call(this)),n&&(r+="<br>"+L.GeometryUtil.readableArea(n,this.options.metric,this.options.precision)),r):null},_shapeIsValid:function(){return this._markers.length>=3},_vertexChanged:function(n,r){var h;!this.options.allowIntersection&&this.options.showArea&&(h=this._poly.getLatLngs(),this._area=L.GeometryUtil.geodesicArea(h)),L.Draw.Polyline.prototype._vertexChanged.call(this,n,r)},_cleanUpShape:function(){var n=this._markers.length;n>0&&(this._markers[0].off("click",this._finishShape,this),n>2&&this._markers[n-1].off("dblclick",this._finishShape,this))}}),L.SimpleShape={},L.Draw.SimpleShape=L.Draw.Feature.extend({options:{repeatMode:!1},initialize:function(n,r){this._endLabelText=L.drawLocal.draw.handlers.simpleshape.tooltip.end,L.Draw.Feature.prototype.initialize.call(this,n,r)},addHooks:function(){L.Draw.Feature.prototype.addHooks.call(this),this._map&&(this._mapDraggable=this._map.dragging.enabled(),this._mapDraggable&&this._map.dragging.disable(),this._container.style.cursor="crosshair",this._tooltip.updateContent({text:this._initialLabelText}),this._map.on("mousedown",this._onMouseDown,this).on("mousemove",this._onMouseMove,this).on("touchstart",this._onMouseDown,this).on("touchmove",this._onMouseMove,this),l.addEventListener("touchstart",L.DomEvent.preventDefault,{passive:!1}))},removeHooks:function(){L.Draw.Feature.prototype.removeHooks.call(this),this._map&&(this._mapDraggable&&this._map.dragging.enable(),this._container.style.cursor="",this._map.off("mousedown",this._onMouseDown,this).off("mousemove",this._onMouseMove,this).off("touchstart",this._onMouseDown,this).off("touchmove",this._onMouseMove,this),L.DomEvent.off(l,"mouseup",this._onMouseUp,this),L.DomEvent.off(l,"touchend",this._onMouseUp,this),l.removeEventListener("touchstart",L.DomEvent.preventDefault),this._shape&&(this._map.removeLayer(this._shape),delete this._shape)),this._isDrawing=!1},_getTooltipText:function(){return{text:this._endLabelText}},_onMouseDown:function(n){this._isDrawing=!0,this._startLatLng=n.latlng,L.DomEvent.on(l,"mouseup",this._onMouseUp,this).on(l,"touchend",this._onMouseUp,this).preventDefault(n.originalEvent)},_onMouseMove:function(n){var r=n.latlng;this._tooltip.updatePosition(r),this._isDrawing&&(this._tooltip.updateContent(this._getTooltipText()),this._drawShape(r))},_onMouseUp:function(){this._shape&&this._fireCreatedEvent(),this.disable(),this.options.repeatMode&&this.enable()}}),L.Draw.Rectangle=L.Draw.SimpleShape.extend({statics:{TYPE:"rectangle"},options:{shapeOptions:{stroke:!0,color:"#3388ff",weight:4,opacity:.5,fill:!0,fillColor:null,fillOpacity:.2,clickable:!0},showArea:!0,metric:!0},initialize:function(n,r){this.type=L.Draw.Rectangle.TYPE,this._initialLabelText=L.drawLocal.draw.handlers.rectangle.tooltip.start,L.Draw.SimpleShape.prototype.initialize.call(this,n,r)},disable:function(){this._enabled&&(this._isCurrentlyTwoClickDrawing=!1,L.Draw.SimpleShape.prototype.disable.call(this))},_onMouseUp:function(n){if(!this._shape&&!this._isCurrentlyTwoClickDrawing)return void(this._isCurrentlyTwoClickDrawing=!0);this._isCurrentlyTwoClickDrawing&&!d(n.target,"leaflet-pane")||L.Draw.SimpleShape.prototype._onMouseUp.call(this)},_drawShape:function(n){this._shape?this._shape.setBounds(new L.LatLngBounds(this._startLatLng,n)):(this._shape=new L.Rectangle(new L.LatLngBounds(this._startLatLng,n),this.options.shapeOptions),this._map.addLayer(this._shape))},_fireCreatedEvent:function(){var n=new L.Rectangle(this._shape.getBounds(),this.options.shapeOptions);L.Draw.SimpleShape.prototype._fireCreatedEvent.call(this,n)},_getTooltipText:function(){var n,r,h,f=L.Draw.SimpleShape.prototype._getTooltipText.call(this),m=this._shape,_=this.options.showArea;return m&&(n=this._shape._defaultShape?this._shape._defaultShape():this._shape.getLatLngs(),r=L.GeometryUtil.geodesicArea(n),h=_?L.GeometryUtil.readableArea(r,this.options.metric):""),{text:f.text,subtext:h}}}),L.Draw.Marker=L.Draw.Feature.extend({statics:{TYPE:"marker"},options:{icon:new L.Icon.Default,repeatMode:!1,zIndexOffset:2e3},initialize:function(n,r){this.type=L.Draw.Marker.TYPE,this._initialLabelText=L.drawLocal.draw.handlers.marker.tooltip.start,L.Draw.Feature.prototype.initialize.call(this,n,r)},addHooks:function(){L.Draw.Feature.prototype.addHooks.call(this),this._map&&(this._tooltip.updateContent({text:this._initialLabelText}),this._mouseMarker||(this._mouseMarker=L.marker(this._map.getCenter(),{icon:L.divIcon({className:"leaflet-mouse-marker",iconAnchor:[20,20],iconSize:[40,40]}),opacity:0,zIndexOffset:this.options.zIndexOffset})),this._mouseMarker.on("click",this._onClick,this).addTo(this._map),this._map.on("mousemove",this._onMouseMove,this),this._map.on("click",this._onTouch,this))},removeHooks:function(){L.Draw.Feature.prototype.removeHooks.call(this),this._map&&(this._map.off("click",this._onClick,this).off("click",this._onTouch,this),this._marker&&(this._marker.off("click",this._onClick,this),this._map.removeLayer(this._marker),delete this._marker),this._mouseMarker.off("click",this._onClick,this),this._map.removeLayer(this._mouseMarker),delete this._mouseMarker,this._map.off("mousemove",this._onMouseMove,this))},_onMouseMove:function(n){var r=n.latlng;this._tooltip.updatePosition(r),this._mouseMarker.setLatLng(r),this._marker?(r=this._mouseMarker.getLatLng(),this._marker.setLatLng(r)):(this._marker=this._createMarker(r),this._marker.on("click",this._onClick,this),this._map.on("click",this._onClick,this).addLayer(this._marker))},_createMarker:function(n){return new L.Marker(n,{icon:this.options.icon,zIndexOffset:this.options.zIndexOffset})},_onClick:function(){this._fireCreatedEvent(),this.disable(),this.options.repeatMode&&this.enable()},_onTouch:function(n){this._onMouseMove(n),this._onClick()},_fireCreatedEvent:function(){var n=new L.Marker.Touch(this._marker.getLatLng(),{icon:this.options.icon});L.Draw.Feature.prototype._fireCreatedEvent.call(this,n)}}),L.Draw.CircleMarker=L.Draw.Marker.extend({statics:{TYPE:"circlemarker"},options:{stroke:!0,color:"#3388ff",weight:4,opacity:.5,fill:!0,fillColor:null,fillOpacity:.2,clickable:!0,zIndexOffset:2e3},initialize:function(n,r){this.type=L.Draw.CircleMarker.TYPE,this._initialLabelText=L.drawLocal.draw.handlers.circlemarker.tooltip.start,L.Draw.Feature.prototype.initialize.call(this,n,r)},_fireCreatedEvent:function(){var n=new L.CircleMarker(this._marker.getLatLng(),this.options);L.Draw.Feature.prototype._fireCreatedEvent.call(this,n)},_createMarker:function(n){return new L.CircleMarker(n,this.options)}}),L.Draw.Circle=L.Draw.SimpleShape.extend({statics:{TYPE:"circle"},options:{shapeOptions:{stroke:!0,color:"#3388ff",weight:4,opacity:.5,fill:!0,fillColor:null,fillOpacity:.2,clickable:!0},showRadius:!0,metric:!0,feet:!0,nautic:!1},initialize:function(n,r){this.type=L.Draw.Circle.TYPE,this._initialLabelText=L.drawLocal.draw.handlers.circle.tooltip.start,L.Draw.SimpleShape.prototype.initialize.call(this,n,r)},_drawShape:function(n){if(L.GeometryUtil.isVersion07x())var r=this._startLatLng.distanceTo(n);else var r=this._map.distance(this._startLatLng,n);this._shape?this._shape.setRadius(r):(this._shape=new L.Circle(this._startLatLng,r,this.options.shapeOptions),this._map.addLayer(this._shape))},_fireCreatedEvent:function(){var n=new L.Circle(this._startLatLng,this._shape.getRadius(),this.options.shapeOptions);L.Draw.SimpleShape.prototype._fireCreatedEvent.call(this,n)},_onMouseMove:function(n){var r,h=n.latlng,f=this.options.showRadius,m=this.options.metric;if(this._tooltip.updatePosition(h),this._isDrawing){this._drawShape(h),r=this._shape.getRadius().toFixed(1);var _="";f&&(_=L.drawLocal.draw.handlers.circle.radius+": "+L.GeometryUtil.readableDistance(r,m,this.options.feet,this.options.nautic)),this._tooltip.updateContent({text:this._endLabelText,subtext:_})}}}),L.Edit=L.Edit||{},L.Edit.Marker=L.Handler.extend({initialize:function(n,r){this._marker=n,L.setOptions(this,r)},addHooks:function(){var n=this._marker;n.dragging.enable(),n.on("dragend",this._onDragEnd,n),this._toggleMarkerHighlight()},removeHooks:function(){var n=this._marker;n.dragging.disable(),n.off("dragend",this._onDragEnd,n),this._toggleMarkerHighlight()},_onDragEnd:function(n){var r=n.target;r.edited=!0,this._map.fire(L.Draw.Event.EDITMOVE,{layer:r})},_toggleMarkerHighlight:function(){var n=this._marker._icon;n&&(n.style.display="none",L.DomUtil.hasClass(n,"leaflet-edit-marker-selected")?(L.DomUtil.removeClass(n,"leaflet-edit-marker-selected"),this._offsetMarker(n,-4)):(L.DomUtil.addClass(n,"leaflet-edit-marker-selected"),this._offsetMarker(n,4)),n.style.display="")},_offsetMarker:function(n,r){var h=parseInt(n.style.marginTop,10)-r,f=parseInt(n.style.marginLeft,10)-r;n.style.marginTop=h+"px",n.style.marginLeft=f+"px"}}),L.Marker.addInitHook(function(){L.Edit.Marker&&(this.editing=new L.Edit.Marker(this),this.options.editable&&this.editing.enable())}),L.Edit=L.Edit||{},L.Edit.Poly=L.Handler.extend({initialize:function(n){this.latlngs=[n._latlngs],n._holes&&(this.latlngs=this.latlngs.concat(n._holes)),this._poly=n,this._poly.on("revert-edited",this._updateLatLngs,this)},_defaultShape:function(){return L.Polyline._flat?L.Polyline._flat(this._poly._latlngs)?this._poly._latlngs:this._poly._latlngs[0]:this._poly._latlngs},_eachVertexHandler:function(n){for(var r=0;r<this._verticesHandlers.length;r++)n(this._verticesHandlers[r])},addHooks:function(){this._initHandlers(),this._eachVertexHandler(function(n){n.addHooks()})},removeHooks:function(){this._eachVertexHandler(function(n){n.removeHooks()})},updateMarkers:function(){this._eachVertexHandler(function(n){n.updateMarkers()})},_initHandlers:function(){this._verticesHandlers=[];for(var n=0;n<this.latlngs.length;n++)this._verticesHandlers.push(new L.Edit.PolyVerticesEdit(this._poly,this.latlngs[n],this._poly.options.poly))},_updateLatLngs:function(n){this.latlngs=[n.layer._latlngs],n.layer._holes&&(this.latlngs=this.latlngs.concat(n.layer._holes))}}),L.Edit.PolyVerticesEdit=L.Handler.extend({options:{icon:new L.DivIcon({iconSize:new L.Point(8,8),className:"leaflet-div-icon leaflet-editing-icon"}),touchIcon:new L.DivIcon({iconSize:new L.Point(20,20),className:"leaflet-div-icon leaflet-editing-icon leaflet-touch-icon"}),drawError:{color:"#b00b00",timeout:1e3}},initialize:function(n,r,h){L.Browser.touch&&(this.options.icon=this.options.touchIcon),this._poly=n,h&&h.drawError&&(h.drawError=L.Util.extend({},this.options.drawError,h.drawError)),this._latlngs=r,L.setOptions(this,h)},_defaultShape:function(){return L.Polyline._flat?L.Polyline._flat(this._latlngs)?this._latlngs:this._latlngs[0]:this._latlngs},addHooks:function(){var n=this._poly,r=n._path;n instanceof L.Polygon||(n.options.fill=!1,n.options.editing&&(n.options.editing.fill=!1)),r&&n.options.editing&&n.options.editing.className&&(n.options.original.className&&n.options.original.className.split(" ").forEach(function(h){L.DomUtil.removeClass(r,h)}),n.options.editing.className.split(" ").forEach(function(h){L.DomUtil.addClass(r,h)})),n.setStyle(n.options.editing),this._poly._map&&(this._map=this._poly._map,this._markerGroup||this._initMarkers(),this._poly._map.addLayer(this._markerGroup))},removeHooks:function(){var n=this._poly,r=n._path;r&&n.options.editing&&n.options.editing.className&&(n.options.editing.className.split(" ").forEach(function(h){L.DomUtil.removeClass(r,h)}),n.options.original.className&&n.options.original.className.split(" ").forEach(function(h){L.DomUtil.addClass(r,h)})),n.setStyle(n.options.original),n._map&&(n._map.removeLayer(this._markerGroup),delete this._markerGroup,delete this._markers)},updateMarkers:function(){this._markerGroup.clearLayers(),this._initMarkers()},_initMarkers:function(){this._markerGroup||(this._markerGroup=new L.LayerGroup),this._markers=[];var n,r,h,f,m=this._defaultShape();for(n=0,h=m.length;n<h;n++)f=this._createMarker(m[n],n),f.on("click",this._onMarkerClick,this),f.on("contextmenu",this._onContextMenu,this),this._markers.push(f);var _,v;for(n=0,r=h-1;n<h;r=n++)(n!==0||L.Polygon&&this._poly instanceof L.Polygon)&&(_=this._markers[r],v=this._markers[n],this._createMiddleMarker(_,v),this._updatePrevNext(_,v))},_createMarker:function(n,r){var h=new L.Marker.Touch(n,{draggable:!0,icon:this.options.icon});return h._origLatLng=n,h._index=r,h.on("dragstart",this._onMarkerDragStart,this).on("drag",this._onMarkerDrag,this).on("dragend",this._fireEdit,this).on("touchmove",this._onTouchMove,this).on("touchend",this._fireEdit,this).on("MSPointerMove",this._onTouchMove,this).on("MSPointerUp",this._fireEdit,this),this._markerGroup.addLayer(h),h},_onMarkerDragStart:function(){this._poly.fire("editstart")},_spliceLatLngs:function(){var n=this._defaultShape(),r=[].splice.apply(n,arguments);return this._poly._convertLatLngs(n,!0),this._poly.redraw(),r},_removeMarker:function(n){var r=n._index;this._markerGroup.removeLayer(n),this._markers.splice(r,1),this._spliceLatLngs(r,1),this._updateIndexes(r,-1),n.off("dragstart",this._onMarkerDragStart,this).off("drag",this._onMarkerDrag,this).off("dragend",this._fireEdit,this).off("touchmove",this._onMarkerDrag,this).off("touchend",this._fireEdit,this).off("click",this._onMarkerClick,this).off("MSPointerMove",this._onTouchMove,this).off("MSPointerUp",this._fireEdit,this)},_fireEdit:function(){this._poly.edited=!0,this._poly.fire("edit"),this._poly._map.fire(L.Draw.Event.EDITVERTEX,{layers:this._markerGroup,poly:this._poly})},_onMarkerDrag:function(n){var r=n.target,h=this._poly,f=L.LatLngUtil.cloneLatLng(r._origLatLng);if(L.extend(r._origLatLng,r._latlng),h.options.poly){var m=h._map._editTooltip;if(!h.options.poly.allowIntersection&&h.intersects()){L.extend(r._origLatLng,f),r.setLatLng(f);var _=h.options.color;h.setStyle({color:this.options.drawError.color}),m&&m.updateContent({text:L.drawLocal.draw.handlers.polyline.error}),setTimeout(function(){h.setStyle({color:_}),m&&m.updateContent({text:L.drawLocal.edit.handlers.edit.tooltip.text,subtext:L.drawLocal.edit.handlers.edit.tooltip.subtext})},1e3)}}r._middleLeft&&r._middleLeft.setLatLng(this._getMiddleLatLng(r._prev,r)),r._middleRight&&r._middleRight.setLatLng(this._getMiddleLatLng(r,r._next)),this._poly._bounds._southWest=L.latLng(1/0,1/0),this._poly._bounds._northEast=L.latLng(-1/0,-1/0);var v=this._poly.getLatLngs();this._poly._convertLatLngs(v,!0),this._poly.redraw(),this._poly.fire("editdrag")},_onMarkerClick:function(n){var r=L.Polygon&&this._poly instanceof L.Polygon?4:3,h=n.target;this._defaultShape().length<r||(this._removeMarker(h),this._updatePrevNext(h._prev,h._next),h._middleLeft&&this._markerGroup.removeLayer(h._middleLeft),h._middleRight&&this._markerGroup.removeLayer(h._middleRight),h._prev&&h._next?this._createMiddleMarker(h._prev,h._next):h._prev?h._next||(h._prev._middleRight=null):h._next._middleLeft=null,this._fireEdit())},_onContextMenu:function(n){var r=n.target;this._poly,this._poly._map.fire(L.Draw.Event.MARKERCONTEXT,{marker:r,layers:this._markerGroup,poly:this._poly}),L.DomEvent.stopPropagation},_onTouchMove:function(n){var r=this._map.mouseEventToLayerPoint(n.originalEvent.touches[0]),h=this._map.layerPointToLatLng(r),f=n.target;L.extend(f._origLatLng,h),f._middleLeft&&f._middleLeft.setLatLng(this._getMiddleLatLng(f._prev,f)),f._middleRight&&f._middleRight.setLatLng(this._getMiddleLatLng(f,f._next)),this._poly.redraw(),this.updateMarkers()},_updateIndexes:function(n,r){this._markerGroup.eachLayer(function(h){h._index>n&&(h._index+=r)})},_createMiddleMarker:function(n,r){var h,f,m,_=this._getMiddleLatLng(n,r),v=this._createMarker(_);v.setOpacity(.6),n._middleRight=r._middleLeft=v,f=function(){v.off("touchmove",f,this);var w=r._index;v._index=w,v.off("click",h,this).on("click",this._onMarkerClick,this),_.lat=v.getLatLng().lat,_.lng=v.getLatLng().lng,this._spliceLatLngs(w,0,_),this._markers.splice(w,0,v),v.setOpacity(1),this._updateIndexes(w,1),r._index++,this._updatePrevNext(n,v),this._updatePrevNext(v,r),this._poly.fire("editstart")},m=function(){v.off("dragstart",f,this),v.off("dragend",m,this),v.off("touchmove",f,this),this._createMiddleMarker(n,v),this._createMiddleMarker(v,r)},h=function(){f.call(this),m.call(this),this._fireEdit()},v.on("click",h,this).on("dragstart",f,this).on("dragend",m,this).on("touchmove",f,this),this._markerGroup.addLayer(v)},_updatePrevNext:function(n,r){n&&(n._next=r),r&&(r._prev=n)},_getMiddleLatLng:function(n,r){var h=this._poly._map,f=h.project(n.getLatLng()),m=h.project(r.getLatLng());return h.unproject(f._add(m)._divideBy(2))}}),L.Polyline.addInitHook(function(){this.editing||(L.Edit.Poly&&(this.editing=new L.Edit.Poly(this),this.options.editable&&this.editing.enable()),this.on("add",function(){this.editing&&this.editing.enabled()&&this.editing.addHooks()}),this.on("remove",function(){this.editing&&this.editing.enabled()&&this.editing.removeHooks()}))}),L.Edit=L.Edit||{},L.Edit.SimpleShape=L.Handler.extend({options:{moveIcon:new L.DivIcon({iconSize:new L.Point(8,8),className:"leaflet-div-icon leaflet-editing-icon leaflet-edit-move"}),resizeIcon:new L.DivIcon({iconSize:new L.Point(8,8),className:"leaflet-div-icon leaflet-editing-icon leaflet-edit-resize"}),touchMoveIcon:new L.DivIcon({iconSize:new L.Point(20,20),className:"leaflet-div-icon leaflet-editing-icon leaflet-edit-move leaflet-touch-icon"}),touchResizeIcon:new L.DivIcon({iconSize:new L.Point(20,20),className:"leaflet-div-icon leaflet-editing-icon leaflet-edit-resize leaflet-touch-icon"})},initialize:function(n,r){L.Browser.touch&&(this.options.moveIcon=this.options.touchMoveIcon,this.options.resizeIcon=this.options.touchResizeIcon),this._shape=n,L.Util.setOptions(this,r)},addHooks:function(){var n=this._shape;this._shape._map&&(this._map=this._shape._map,n.setStyle(n.options.editing),n._map&&(this._map=n._map,this._markerGroup||this._initMarkers(),this._map.addLayer(this._markerGroup)))},removeHooks:function(){var n=this._shape;if(n.setStyle(n.options.original),n._map){this._unbindMarker(this._moveMarker);for(var r=0,h=this._resizeMarkers.length;r<h;r++)this._unbindMarker(this._resizeMarkers[r]);this._resizeMarkers=null,this._map.removeLayer(this._markerGroup),delete this._markerGroup}this._map=null},updateMarkers:function(){this._markerGroup.clearLayers(),this._initMarkers()},_initMarkers:function(){this._markerGroup||(this._markerGroup=new L.LayerGroup),this._createMoveMarker(),this._createResizeMarker()},_createMoveMarker:function(){},_createResizeMarker:function(){},_createMarker:function(n,r){var h=new L.Marker.Touch(n,{draggable:!0,icon:r,zIndexOffset:10});return this._bindMarker(h),this._markerGroup.addLayer(h),h},_bindMarker:function(n){n.on("dragstart",this._onMarkerDragStart,this).on("drag",this._onMarkerDrag,this).on("dragend",this._onMarkerDragEnd,this).on("touchstart",this._onTouchStart,this).on("touchmove",this._onTouchMove,this).on("MSPointerMove",this._onTouchMove,this).on("touchend",this._onTouchEnd,this).on("MSPointerUp",this._onTouchEnd,this)},_unbindMarker:function(n){n.off("dragstart",this._onMarkerDragStart,this).off("drag",this._onMarkerDrag,this).off("dragend",this._onMarkerDragEnd,this).off("touchstart",this._onTouchStart,this).off("touchmove",this._onTouchMove,this).off("MSPointerMove",this._onTouchMove,this).off("touchend",this._onTouchEnd,this).off("MSPointerUp",this._onTouchEnd,this)},_onMarkerDragStart:function(n){n.target.setOpacity(0),this._shape.fire("editstart")},_fireEdit:function(){this._shape.edited=!0,this._shape.fire("edit")},_onMarkerDrag:function(n){var r=n.target,h=r.getLatLng();r===this._moveMarker?this._move(h):this._resize(h),this._shape.redraw(),this._shape.fire("editdrag")},_onMarkerDragEnd:function(n){n.target.setOpacity(1),this._fireEdit()},_onTouchStart:function(n){if(L.Edit.SimpleShape.prototype._onMarkerDragStart.call(this,n),typeof this._getCorners=="function"){var r=this._getCorners(),h=n.target,f=h._cornerIndex;h.setOpacity(0),this._oppositeCorner=r[(f+2)%4],this._toggleCornerMarkers(0,f)}this._shape.fire("editstart")},_onTouchMove:function(n){var r=this._map.mouseEventToLayerPoint(n.originalEvent.touches[0]),h=this._map.layerPointToLatLng(r);return n.target===this._moveMarker?this._move(h):this._resize(h),this._shape.redraw(),!1},_onTouchEnd:function(n){n.target.setOpacity(1),this.updateMarkers(),this._fireEdit()},_move:function(){},_resize:function(){}}),L.Edit=L.Edit||{},L.Edit.Rectangle=L.Edit.SimpleShape.extend({_createMoveMarker:function(){var n=this._shape.getBounds(),r=n.getCenter();this._moveMarker=this._createMarker(r,this.options.moveIcon)},_createResizeMarker:function(){var n=this._getCorners();this._resizeMarkers=[];for(var r=0,h=n.length;r<h;r++)this._resizeMarkers.push(this._createMarker(n[r],this.options.resizeIcon)),this._resizeMarkers[r]._cornerIndex=r},_onMarkerDragStart:function(n){L.Edit.SimpleShape.prototype._onMarkerDragStart.call(this,n);var r=this._getCorners(),h=n.target,f=h._cornerIndex;this._oppositeCorner=r[(f+2)%4],this._toggleCornerMarkers(0,f)},_onMarkerDragEnd:function(n){var r,h,f=n.target;f===this._moveMarker&&(r=this._shape.getBounds(),h=r.getCenter(),f.setLatLng(h)),this._toggleCornerMarkers(1),this._repositionCornerMarkers(),L.Edit.SimpleShape.prototype._onMarkerDragEnd.call(this,n)},_move:function(n){for(var r,h=this._shape._defaultShape?this._shape._defaultShape():this._shape.getLatLngs(),f=this._shape.getBounds(),m=f.getCenter(),_=[],v=0,w=h.length;v<w;v++)r=[h[v].lat-m.lat,h[v].lng-m.lng],_.push([n.lat+r[0],n.lng+r[1]]);this._shape.setLatLngs(_),this._repositionCornerMarkers(),this._map.fire(L.Draw.Event.EDITMOVE,{layer:this._shape})},_resize:function(n){var r;this._shape.setBounds(L.latLngBounds(n,this._oppositeCorner)),r=this._shape.getBounds(),this._moveMarker.setLatLng(r.getCenter()),this._map.fire(L.Draw.Event.EDITRESIZE,{layer:this._shape})},_getCorners:function(){var n=this._shape.getBounds();return[n.getNorthWest(),n.getNorthEast(),n.getSouthEast(),n.getSouthWest()]},_toggleCornerMarkers:function(n){for(var r=0,h=this._resizeMarkers.length;r<h;r++)this._resizeMarkers[r].setOpacity(n)},_repositionCornerMarkers:function(){for(var n=this._getCorners(),r=0,h=this._resizeMarkers.length;r<h;r++)this._resizeMarkers[r].setLatLng(n[r])}}),L.Rectangle.addInitHook(function(){L.Edit.Rectangle&&(this.editing=new L.Edit.Rectangle(this),this.options.editable&&this.editing.enable())}),L.Edit=L.Edit||{},L.Edit.CircleMarker=L.Edit.SimpleShape.extend({_createMoveMarker:function(){var n=this._shape.getLatLng();this._moveMarker=this._createMarker(n,this.options.moveIcon)},_createResizeMarker:function(){this._resizeMarkers=[]},_move:function(n){if(this._resizeMarkers.length){var r=this._getResizeMarkerPoint(n);this._resizeMarkers[0].setLatLng(r)}this._shape.setLatLng(n),this._map.fire(L.Draw.Event.EDITMOVE,{layer:this._shape})}}),L.CircleMarker.addInitHook(function(){L.Edit.CircleMarker&&(this.editing=new L.Edit.CircleMarker(this),this.options.editable&&this.editing.enable()),this.on("add",function(){this.editing&&this.editing.enabled()&&this.editing.addHooks()}),this.on("remove",function(){this.editing&&this.editing.enabled()&&this.editing.removeHooks()})}),L.Edit=L.Edit||{},L.Edit.Circle=L.Edit.CircleMarker.extend({_createResizeMarker:function(){var n=this._shape.getLatLng(),r=this._getResizeMarkerPoint(n);this._resizeMarkers=[],this._resizeMarkers.push(this._createMarker(r,this.options.resizeIcon))},_getResizeMarkerPoint:function(n){var r=this._shape._radius*Math.cos(Math.PI/4),h=this._map.project(n);return this._map.unproject([h.x+r,h.y-r])},_resize:function(n){var r=this._moveMarker.getLatLng();L.GeometryUtil.isVersion07x()?radius=r.distanceTo(n):radius=this._map.distance(r,n),this._shape.setRadius(radius),this._map.editTooltip&&this._map._editTooltip.updateContent({text:L.drawLocal.edit.handlers.edit.tooltip.subtext+"<br />"+L.drawLocal.edit.handlers.edit.tooltip.text,subtext:L.drawLocal.draw.handlers.circle.radius+": "+L.GeometryUtil.readableDistance(radius,!0,this.options.feet,this.options.nautic)}),this._shape.setRadius(radius),this._map.fire(L.Draw.Event.EDITRESIZE,{layer:this._shape})}}),L.Circle.addInitHook(function(){L.Edit.Circle&&(this.editing=new L.Edit.Circle(this),this.options.editable&&this.editing.enable())}),L.Map.mergeOptions({touchExtend:!0}),L.Map.TouchExtend=L.Handler.extend({initialize:function(n){this._map=n,this._container=n._container,this._pane=n._panes.overlayPane},addHooks:function(){L.DomEvent.on(this._container,"touchstart",this._onTouchStart,this),L.DomEvent.on(this._container,"touchend",this._onTouchEnd,this),L.DomEvent.on(this._container,"touchmove",this._onTouchMove,this),this._detectIE()?(L.DomEvent.on(this._container,"MSPointerDown",this._onTouchStart,this),L.DomEvent.on(this._container,"MSPointerUp",this._onTouchEnd,this),L.DomEvent.on(this._container,"MSPointerMove",this._onTouchMove,this),L.DomEvent.on(this._container,"MSPointerCancel",this._onTouchCancel,this)):(L.DomEvent.on(this._container,"touchcancel",this._onTouchCancel,this),L.DomEvent.on(this._container,"touchleave",this._onTouchLeave,this))},removeHooks:function(){L.DomEvent.off(this._container,"touchstart",this._onTouchStart,this),L.DomEvent.off(this._container,"touchend",this._onTouchEnd,this),L.DomEvent.off(this._container,"touchmove",this._onTouchMove,this),this._detectIE()?(L.DomEvent.off(this._container,"MSPointerDown",this._onTouchStart,this),L.DomEvent.off(this._container,"MSPointerUp",this._onTouchEnd,this),L.DomEvent.off(this._container,"MSPointerMove",this._onTouchMove,this),L.DomEvent.off(this._container,"MSPointerCancel",this._onTouchCancel,this)):(L.DomEvent.off(this._container,"touchcancel",this._onTouchCancel,this),L.DomEvent.off(this._container,"touchleave",this._onTouchLeave,this))},_touchEvent:function(n,r){var h={};if(n.touches!==void 0){if(!n.touches.length)return;h=n.touches[0]}else if(n.pointerType!=="touch"||(h=n,!this._filterClick(n)))return;var f=this._map.mouseEventToContainerPoint(h),m=this._map.mouseEventToLayerPoint(h),_=this._map.layerPointToLatLng(m);this._map.fire(r,{latlng:_,layerPoint:m,containerPoint:f,pageX:h.pageX,pageY:h.pageY,originalEvent:n})},_filterClick:function(n){var r=n.timeStamp||n.originalEvent.timeStamp,h=L.DomEvent._lastClick&&r-L.DomEvent._lastClick;return h&&h>100&&h<500||n.target._simulatedClick&&!n._simulated?(L.DomEvent.stop(n),!1):(L.DomEvent._lastClick=r,!0)},_onTouchStart:function(n){this._map._loaded&&this._touchEvent(n,"touchstart")},_onTouchEnd:function(n){this._map._loaded&&this._touchEvent(n,"touchend")},_onTouchCancel:function(n){if(this._map._loaded){var r="touchcancel";this._detectIE()&&(r="pointercancel"),this._touchEvent(n,r)}},_onTouchLeave:function(n){this._map._loaded&&this._touchEvent(n,"touchleave")},_onTouchMove:function(n){this._map._loaded&&this._touchEvent(n,"touchmove")},_detectIE:function(){var n=s.navigator.userAgent,r=n.indexOf("MSIE ");if(r>0)return parseInt(n.substring(r+5,n.indexOf(".",r)),10);if(n.indexOf("Trident/")>0){var h=n.indexOf("rv:");return parseInt(n.substring(h+3,n.indexOf(".",h)),10)}var f=n.indexOf("Edge/");return f>0&&parseInt(n.substring(f+5,n.indexOf(".",f)),10)}}),L.Map.addInitHook("addHandler","touchExtend",L.Map.TouchExtend),L.Marker.Touch=L.Marker.extend({_initInteraction:function(){return this.addInteractiveTarget?L.Marker.prototype._initInteraction.apply(this):this._initInteractionLegacy()},_initInteractionLegacy:function(){if(this.options.clickable){var n=this._icon,r=["dblclick","mousedown","mouseover","mouseout","contextmenu","touchstart","touchend","touchmove"];this._detectIE?r.concat(["MSPointerDown","MSPointerUp","MSPointerMove","MSPointerCancel"]):r.concat(["touchcancel"]),L.DomUtil.addClass(n,"leaflet-clickable"),L.DomEvent.on(n,"click",this._onMouseClick,this),L.DomEvent.on(n,"keypress",this._onKeyPress,this);for(var h=0;h<r.length;h++)L.DomEvent.on(n,r[h],this._fireMouseEvent,this);L.Handler.MarkerDrag&&(this.dragging=new L.Handler.MarkerDrag(this),this.options.draggable&&this.dragging.enable())}},_detectIE:function(){var n=s.navigator.userAgent,r=n.indexOf("MSIE ");if(r>0)return parseInt(n.substring(r+5,n.indexOf(".",r)),10);if(n.indexOf("Trident/")>0){var h=n.indexOf("rv:");return parseInt(n.substring(h+3,n.indexOf(".",h)),10)}var f=n.indexOf("Edge/");return f>0&&parseInt(n.substring(f+5,n.indexOf(".",f)),10)}}),L.LatLngUtil={cloneLatLngs:function(n){for(var r=[],h=0,f=n.length;h<f;h++)Array.isArray(n[h])?r.push(L.LatLngUtil.cloneLatLngs(n[h])):r.push(this.cloneLatLng(n[h]));return r},cloneLatLng:function(n){return L.latLng(n.lat,n.lng)}},function(){var n={km:2,ha:2,m:0,mi:2,ac:2,yd:0,ft:0,nm:2};L.GeometryUtil=L.extend(L.GeometryUtil||{},{geodesicArea:function(r){var h,f,m=r.length,_=0,v=Math.PI/180;if(m>2){for(var w=0;w<m;w++)h=r[w],f=r[(w+1)%m],_+=(f.lng-h.lng)*v*(2+Math.sin(h.lat*v)+Math.sin(f.lat*v));_=6378137*_*6378137/2}return Math.abs(_)},formattedNumber:function(r,h){var f=parseFloat(r).toFixed(h),m=L.drawLocal.format&&L.drawLocal.format.numeric,_=m&&m.delimiters,v=_&&_.thousands,w=_&&_.decimal;if(v||w){var T=f.split(".");f=v?T[0].replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+v):T[0],w=w||".",T.length>1&&(f=f+w+T[1])}return f},readableArea:function(r,h,v){var m,_,v=L.Util.extend({},n,v);return h?(_=["ha","m"],type=typeof h,type==="string"?_=[h]:type!=="boolean"&&(_=h),m=r>=1e6&&_.indexOf("km")!==-1?L.GeometryUtil.formattedNumber(1e-6*r,v.km)+" km²":r>=1e4&&_.indexOf("ha")!==-1?L.GeometryUtil.formattedNumber(1e-4*r,v.ha)+" ha":L.GeometryUtil.formattedNumber(r,v.m)+" m²"):(r/=.836127,m=r>=3097600?L.GeometryUtil.formattedNumber(r/3097600,v.mi)+" mi²":r>=4840?L.GeometryUtil.formattedNumber(r/4840,v.ac)+" acres":L.GeometryUtil.formattedNumber(r,v.yd)+" yd²"),m},readableDistance:function(r,h,f,m,w){var v,w=L.Util.extend({},n,w);switch(h?typeof h=="string"?h:"metric":f?"feet":m?"nauticalMile":"yards"){case"metric":v=r>1e3?L.GeometryUtil.formattedNumber(r/1e3,w.km)+" km":L.GeometryUtil.formattedNumber(r,w.m)+" m";break;case"feet":r*=3.28083,v=L.GeometryUtil.formattedNumber(r,w.ft)+" ft";break;case"nauticalMile":r*=.53996,v=L.GeometryUtil.formattedNumber(r/1e3,w.nm)+" nm";break;case"yards":default:r*=1.09361,v=r>1760?L.GeometryUtil.formattedNumber(r/1760,w.mi)+" miles":L.GeometryUtil.formattedNumber(r,w.yd)+" yd"}return v},isVersion07x:function(){var r=L.version.split(".");return parseInt(r[0],10)===0&&parseInt(r[1],10)===7}})}(),L.Util.extend(L.LineUtil,{segmentsIntersect:function(n,r,h,f){return this._checkCounterclockwise(n,h,f)!==this._checkCounterclockwise(r,h,f)&&this._checkCounterclockwise(n,r,h)!==this._checkCounterclockwise(n,r,f)},_checkCounterclockwise:function(n,r,h){return(h.y-n.y)*(r.x-n.x)>(r.y-n.y)*(h.x-n.x)}}),L.Polyline.include({intersects:function(){var n,r,h,f=this._getProjectedPoints(),m=f?f.length:0;if(this._tooFewPointsForIntersection())return!1;for(n=m-1;n>=3;n--)if(r=f[n-1],h=f[n],this._lineSegmentsIntersectsRange(r,h,n-2))return!0;return!1},newLatLngIntersects:function(n,r){return!!this._map&&this.newPointIntersects(this._map.latLngToLayerPoint(n),r)},newPointIntersects:function(n,r){var h=this._getProjectedPoints(),f=h?h.length:0,m=h?h[f-1]:null,_=f-2;return!this._tooFewPointsForIntersection(1)&&this._lineSegmentsIntersectsRange(m,n,_,r?1:0)},_tooFewPointsForIntersection:function(n){var r=this._getProjectedPoints(),h=r?r.length:0;return h+=n||0,!r||h<=3},_lineSegmentsIntersectsRange:function(n,r,h,f){var m,_,v=this._getProjectedPoints();f=f||0;for(var w=h;w>f;w--)if(m=v[w-1],_=v[w],L.LineUtil.segmentsIntersect(n,r,m,_))return!0;return!1},_getProjectedPoints:function(){if(!this._defaultShape)return this._originalPoints;for(var n=[],r=this._defaultShape(),h=0;h<r.length;h++)n.push(this._map.latLngToLayerPoint(r[h]));return n}}),L.Polygon.include({intersects:function(){var n,r,h,f,m=this._getProjectedPoints();return!this._tooFewPointsForIntersection()&&(!!L.Polyline.prototype.intersects.call(this)||(n=m.length,r=m[0],h=m[n-1],f=n-2,this._lineSegmentsIntersectsRange(h,r,f,1)))}}),L.Control.Draw=L.Control.extend({options:{position:"topleft",draw:{},edit:!1},initialize:function(n){if(L.version<"0.7")throw new Error("Leaflet.draw 0.2.3+ requires Leaflet 0.7.0+. Download latest from https://github.com/Leaflet/Leaflet/");L.Control.prototype.initialize.call(this,n);var r;this._toolbars={},L.DrawToolbar&&this.options.draw&&(r=new L.DrawToolbar(this.options.draw),this._toolbars[L.DrawToolbar.TYPE]=r,this._toolbars[L.DrawToolbar.TYPE].on("enable",this._toolbarEnabled,this)),L.EditToolbar&&this.options.edit&&(r=new L.EditToolbar(this.options.edit),this._toolbars[L.EditToolbar.TYPE]=r,this._toolbars[L.EditToolbar.TYPE].on("enable",this._toolbarEnabled,this)),L.toolbar=this},onAdd:function(n){var r,h=L.DomUtil.create("div","leaflet-draw"),f=!1;for(var m in this._toolbars)this._toolbars.hasOwnProperty(m)&&(r=this._toolbars[m].addToolbar(n))&&(f||(L.DomUtil.hasClass(r,"leaflet-draw-toolbar-top")||L.DomUtil.addClass(r.childNodes[0],"leaflet-draw-toolbar-top"),f=!0),h.appendChild(r));return h},onRemove:function(){for(var n in this._toolbars)this._toolbars.hasOwnProperty(n)&&this._toolbars[n].removeToolbar()},setDrawingOptions:function(n){for(var r in this._toolbars)this._toolbars[r]instanceof L.DrawToolbar&&this._toolbars[r].setOptions(n)},_toolbarEnabled:function(n){var r=n.target;for(var h in this._toolbars)this._toolbars[h]!==r&&this._toolbars[h].disable()}}),L.Map.mergeOptions({drawControlTooltips:!0,drawControl:!1}),L.Map.addInitHook(function(){this.options.drawControl&&(this.drawControl=new L.Control.Draw,this.addControl(this.drawControl))}),L.Toolbar=L.Class.extend({initialize:function(n){L.setOptions(this,n),this._modes={},this._actionButtons=[],this._activeMode=null;var r=L.version.split(".");parseInt(r[0],10)===1&&parseInt(r[1],10)>=2?L.Toolbar.include(L.Evented.prototype):L.Toolbar.include(L.Mixin.Events)},enabled:function(){return this._activeMode!==null},disable:function(){this.enabled()&&this._activeMode.handler.disable()},addToolbar:function(n){var r,h=L.DomUtil.create("div","leaflet-draw-section"),f=0,m=this._toolbarClass||"",_=this.getModeHandlers(n);for(this._toolbarContainer=L.DomUtil.create("div","leaflet-draw-toolbar leaflet-bar"),this._map=n,r=0;r<_.length;r++)_[r].enabled&&this._initModeHandler(_[r].handler,this._toolbarContainer,f++,m,_[r].title);if(f)return this._lastButtonIndex=--f,this._actionsContainer=L.DomUtil.create("ul","leaflet-draw-actions"),h.appendChild(this._toolbarContainer),h.appendChild(this._actionsContainer),h},removeToolbar:function(){for(var n in this._modes)this._modes.hasOwnProperty(n)&&(this._disposeButton(this._modes[n].button,this._modes[n].handler.enable,this._modes[n].handler),this._modes[n].handler.disable(),this._modes[n].handler.off("enabled",this._handlerActivated,this).off("disabled",this._handlerDeactivated,this));this._modes={};for(var r=0,h=this._actionButtons.length;r<h;r++)this._disposeButton(this._actionButtons[r].button,this._actionButtons[r].callback,this);this._actionButtons=[],this._actionsContainer=null},_initModeHandler:function(n,r,h,f,m){var _=n.type;this._modes[_]={},this._modes[_].handler=n,this._modes[_].button=this._createButton({type:_,title:m,className:f+"-"+_,container:r,callback:this._modes[_].handler.enable,context:this._modes[_].handler}),this._modes[_].buttonIndex=h,this._modes[_].handler.on("enabled",this._handlerActivated,this).on("disabled",this._handlerDeactivated,this)},_detectIOS:function(){return/iPad|iPhone|iPod/.test(navigator.userAgent)&&!s.MSStream},_createButton:function(n){var r=L.DomUtil.create("a",n.className||"",n.container),h=L.DomUtil.create("span","sr-only",n.container);r.href="#",r.appendChild(h),n.title&&(r.title=n.title,h.innerHTML=n.title),n.text&&(r.innerHTML=n.text,h.innerHTML=n.text);var f=this._detectIOS()?"touchstart":"click";return L.DomEvent.on(r,"click",L.DomEvent.stopPropagation).on(r,"mousedown",L.DomEvent.stopPropagation).on(r,"dblclick",L.DomEvent.stopPropagation).on(r,"touchstart",L.DomEvent.stopPropagation).on(r,"click",L.DomEvent.preventDefault).on(r,f,n.callback,n.context),r},_disposeButton:function(n,r){var h=this._detectIOS()?"touchstart":"click";L.DomEvent.off(n,"click",L.DomEvent.stopPropagation).off(n,"mousedown",L.DomEvent.stopPropagation).off(n,"dblclick",L.DomEvent.stopPropagation).off(n,"touchstart",L.DomEvent.stopPropagation).off(n,"click",L.DomEvent.preventDefault).off(n,h,r)},_handlerActivated:function(n){this.disable(),this._activeMode=this._modes[n.handler],L.DomUtil.addClass(this._activeMode.button,"leaflet-draw-toolbar-button-enabled"),this._showActionsToolbar(),this.fire("enable")},_handlerDeactivated:function(){this._hideActionsToolbar(),L.DomUtil.removeClass(this._activeMode.button,"leaflet-draw-toolbar-button-enabled"),this._activeMode=null,this.fire("disable")},_createActions:function(n){var r,h,f,m,_=this._actionsContainer,v=this.getActions(n),w=v.length;for(h=0,f=this._actionButtons.length;h<f;h++)this._disposeButton(this._actionButtons[h].button,this._actionButtons[h].callback);for(this._actionButtons=[];_.firstChild;)_.removeChild(_.firstChild);for(var T=0;T<w;T++)"enabled"in v[T]&&!v[T].enabled||(r=L.DomUtil.create("li","",_),m=this._createButton({title:v[T].title,text:v[T].text,container:r,callback:v[T].callback,context:v[T].context}),this._actionButtons.push({button:m,callback:v[T].callback}))},_showActionsToolbar:function(){var n=this._activeMode.buttonIndex,r=this._lastButtonIndex,h=this._activeMode.button.offsetTop-1;this._createActions(this._activeMode.handler),this._actionsContainer.style.top=h+"px",n===0&&(L.DomUtil.addClass(this._toolbarContainer,"leaflet-draw-toolbar-notop"),L.DomUtil.addClass(this._actionsContainer,"leaflet-draw-actions-top")),n===r&&(L.DomUtil.addClass(this._toolbarContainer,"leaflet-draw-toolbar-nobottom"),L.DomUtil.addClass(this._actionsContainer,"leaflet-draw-actions-bottom")),this._actionsContainer.style.display="block",this._map.fire(L.Draw.Event.TOOLBAROPENED)},_hideActionsToolbar:function(){this._actionsContainer.style.display="none",L.DomUtil.removeClass(this._toolbarContainer,"leaflet-draw-toolbar-notop"),L.DomUtil.removeClass(this._toolbarContainer,"leaflet-draw-toolbar-nobottom"),L.DomUtil.removeClass(this._actionsContainer,"leaflet-draw-actions-top"),L.DomUtil.removeClass(this._actionsContainer,"leaflet-draw-actions-bottom"),this._map.fire(L.Draw.Event.TOOLBARCLOSED)}}),L.Draw=L.Draw||{},L.Draw.Tooltip=L.Class.extend({initialize:function(n){this._map=n,this._popupPane=n._panes.popupPane,this._visible=!1,this._container=n.options.drawControlTooltips?L.DomUtil.create("div","leaflet-draw-tooltip",this._popupPane):null,this._singleLineLabel=!1,this._map.on("mouseout",this._onMouseOut,this)},dispose:function(){this._map.off("mouseout",this._onMouseOut,this),this._container&&(this._popupPane.removeChild(this._container),this._container=null)},updateContent:function(n){return this._container?(n.subtext=n.subtext||"",n.subtext.length!==0||this._singleLineLabel?n.subtext.length>0&&this._singleLineLabel&&(L.DomUtil.removeClass(this._container,"leaflet-draw-tooltip-single"),this._singleLineLabel=!1):(L.DomUtil.addClass(this._container,"leaflet-draw-tooltip-single"),this._singleLineLabel=!0),this._container.innerHTML=(n.subtext.length>0?'<span class="leaflet-draw-tooltip-subtext">'+n.subtext+"</span><br />":"")+"<span>"+n.text+"</span>",n.text||n.subtext?(this._visible=!0,this._container.style.visibility="inherit"):(this._visible=!1,this._container.style.visibility="hidden"),this):this},updatePosition:function(n){var r=this._map.latLngToLayerPoint(n),h=this._container;return this._container&&(this._visible&&(h.style.visibility="inherit"),L.DomUtil.setPosition(h,r)),this},showAsError:function(){return this._container&&L.DomUtil.addClass(this._container,"leaflet-error-draw-tooltip"),this},removeError:function(){return this._container&&L.DomUtil.removeClass(this._container,"leaflet-error-draw-tooltip"),this},_onMouseOut:function(){this._container&&(this._container.style.visibility="hidden")}}),L.DrawToolbar=L.Toolbar.extend({statics:{TYPE:"draw"},options:{polyline:{},polygon:{},rectangle:{},circle:{},marker:{},circlemarker:{}},initialize:function(n){for(var r in this.options)this.options.hasOwnProperty(r)&&n[r]&&(n[r]=L.extend({},this.options[r],n[r]));this._toolbarClass="leaflet-draw-draw",L.Toolbar.prototype.initialize.call(this,n)},getModeHandlers:function(n){return[{enabled:this.options.polyline,handler:new L.Draw.Polyline(n,this.options.polyline),title:L.drawLocal.draw.toolbar.buttons.polyline},{enabled:this.options.polygon,handler:new L.Draw.Polygon(n,this.options.polygon),title:L.drawLocal.draw.toolbar.buttons.polygon},{enabled:this.options.rectangle,handler:new L.Draw.Rectangle(n,this.options.rectangle),title:L.drawLocal.draw.toolbar.buttons.rectangle},{enabled:this.options.circle,handler:new L.Draw.Circle(n,this.options.circle),title:L.drawLocal.draw.toolbar.buttons.circle},{enabled:this.options.marker,handler:new L.Draw.Marker(n,this.options.marker),title:L.drawLocal.draw.toolbar.buttons.marker},{enabled:this.options.circlemarker,handler:new L.Draw.CircleMarker(n,this.options.circlemarker),title:L.drawLocal.draw.toolbar.buttons.circlemarker}]},getActions:function(n){return[{enabled:n.completeShape,title:L.drawLocal.draw.toolbar.finish.title,text:L.drawLocal.draw.toolbar.finish.text,callback:n.completeShape,context:n},{enabled:n.deleteLastVertex,title:L.drawLocal.draw.toolbar.undo.title,text:L.drawLocal.draw.toolbar.undo.text,callback:n.deleteLastVertex,context:n},{title:L.drawLocal.draw.toolbar.actions.title,text:L.drawLocal.draw.toolbar.actions.text,callback:this.disable,context:this}]},setOptions:function(n){L.setOptions(this,n);for(var r in this._modes)this._modes.hasOwnProperty(r)&&n.hasOwnProperty(r)&&this._modes[r].handler.setOptions(n[r])}}),L.EditToolbar=L.Toolbar.extend({statics:{TYPE:"edit"},options:{edit:{selectedPathOptions:{dashArray:"10, 10",fill:!0,fillColor:"#fe57a1",fillOpacity:.1,maintainColor:!1}},remove:{},poly:null,featureGroup:null},initialize:function(n){n.edit&&(n.edit.selectedPathOptions===void 0&&(n.edit.selectedPathOptions=this.options.edit.selectedPathOptions),n.edit.selectedPathOptions=L.extend({},this.options.edit.selectedPathOptions,n.edit.selectedPathOptions)),n.remove&&(n.remove=L.extend({},this.options.remove,n.remove)),n.poly&&(n.poly=L.extend({},this.options.poly,n.poly)),this._toolbarClass="leaflet-draw-edit",L.Toolbar.prototype.initialize.call(this,n),this._selectedFeatureCount=0},getModeHandlers:function(n){var r=this.options.featureGroup;return[{enabled:this.options.edit,handler:new L.EditToolbar.Edit(n,{featureGroup:r,selectedPathOptions:this.options.edit.selectedPathOptions,poly:this.options.poly}),title:L.drawLocal.edit.toolbar.buttons.edit},{enabled:this.options.remove,handler:new L.EditToolbar.Delete(n,{featureGroup:r}),title:L.drawLocal.edit.toolbar.buttons.remove}]},getActions:function(n){var r=[{title:L.drawLocal.edit.toolbar.actions.save.title,text:L.drawLocal.edit.toolbar.actions.save.text,callback:this._save,context:this},{title:L.drawLocal.edit.toolbar.actions.cancel.title,text:L.drawLocal.edit.toolbar.actions.cancel.text,callback:this.disable,context:this}];return n.removeAllLayers&&r.push({title:L.drawLocal.edit.toolbar.actions.clearAll.title,text:L.drawLocal.edit.toolbar.actions.clearAll.text,callback:this._clearAllLayers,context:this}),r},addToolbar:function(n){var r=L.Toolbar.prototype.addToolbar.call(this,n);return this._checkDisabled(),this.options.featureGroup.on("layeradd layerremove",this._checkDisabled,this),r},removeToolbar:function(){this.options.featureGroup.off("layeradd layerremove",this._checkDisabled,this),L.Toolbar.prototype.removeToolbar.call(this)},disable:function(){this.enabled()&&(this._activeMode.handler.revertLayers(),L.Toolbar.prototype.disable.call(this))},_save:function(){this._activeMode.handler.save(),this._activeMode&&this._activeMode.handler.disable()},_clearAllLayers:function(){this._activeMode.handler.removeAllLayers(),this._activeMode&&this._activeMode.handler.disable()},_checkDisabled:function(){var n,r=this.options.featureGroup,h=r.getLayers().length!==0;this.options.edit&&(n=this._modes[L.EditToolbar.Edit.TYPE].button,h?L.DomUtil.removeClass(n,"leaflet-disabled"):L.DomUtil.addClass(n,"leaflet-disabled"),n.setAttribute("title",h?L.drawLocal.edit.toolbar.buttons.edit:L.drawLocal.edit.toolbar.buttons.editDisabled)),this.options.remove&&(n=this._modes[L.EditToolbar.Delete.TYPE].button,h?L.DomUtil.removeClass(n,"leaflet-disabled"):L.DomUtil.addClass(n,"leaflet-disabled"),n.setAttribute("title",h?L.drawLocal.edit.toolbar.buttons.remove:L.drawLocal.edit.toolbar.buttons.removeDisabled))}}),L.EditToolbar.Edit=L.Handler.extend({statics:{TYPE:"edit"},initialize:function(n,r){if(L.Handler.prototype.initialize.call(this,n),L.setOptions(this,r),this._featureGroup=r.featureGroup,!(this._featureGroup instanceof L.FeatureGroup))throw new Error("options.featureGroup must be a L.FeatureGroup");this._uneditedLayerProps={},this.type=L.EditToolbar.Edit.TYPE;var h=L.version.split(".");parseInt(h[0],10)===1&&parseInt(h[1],10)>=2?L.EditToolbar.Edit.include(L.Evented.prototype):L.EditToolbar.Edit.include(L.Mixin.Events)},enable:function(){!this._enabled&&this._hasAvailableLayers()&&(this.fire("enabled",{handler:this.type}),this._map.fire(L.Draw.Event.EDITSTART,{handler:this.type}),L.Handler.prototype.enable.call(this),this._featureGroup.on("layeradd",this._enableLayerEdit,this).on("layerremove",this._disableLayerEdit,this))},disable:function(){this._enabled&&(this._featureGroup.off("layeradd",this._enableLayerEdit,this).off("layerremove",this._disableLayerEdit,this),L.Handler.prototype.disable.call(this),this._map.fire(L.Draw.Event.EDITSTOP,{handler:this.type}),this.fire("disabled",{handler:this.type}))},addHooks:function(){var n=this._map;n&&(n.getContainer().focus(),this._featureGroup.eachLayer(this._enableLayerEdit,this),this._tooltip=new L.Draw.Tooltip(this._map),this._tooltip.updateContent({text:L.drawLocal.edit.handlers.edit.tooltip.text,subtext:L.drawLocal.edit.handlers.edit.tooltip.subtext}),n._editTooltip=this._tooltip,this._updateTooltip(),this._map.on("mousemove",this._onMouseMove,this).on("touchmove",this._onMouseMove,this).on("MSPointerMove",this._onMouseMove,this).on(L.Draw.Event.EDITVERTEX,this._updateTooltip,this))},removeHooks:function(){this._map&&(this._featureGroup.eachLayer(this._disableLayerEdit,this),this._uneditedLayerProps={},this._tooltip.dispose(),this._tooltip=null,this._map.off("mousemove",this._onMouseMove,this).off("touchmove",this._onMouseMove,this).off("MSPointerMove",this._onMouseMove,this).off(L.Draw.Event.EDITVERTEX,this._updateTooltip,this))},revertLayers:function(){this._featureGroup.eachLayer(function(n){this._revertLayer(n)},this)},save:function(){var n=new L.LayerGroup;this._featureGroup.eachLayer(function(r){r.edited&&(n.addLayer(r),r.edited=!1)}),this._map.fire(L.Draw.Event.EDITED,{layers:n})},_backupLayer:function(n){var r=L.Util.stamp(n);this._uneditedLayerProps[r]||(n instanceof L.Polyline||n instanceof L.Polygon||n instanceof L.Rectangle?this._uneditedLayerProps[r]={latlngs:L.LatLngUtil.cloneLatLngs(n.getLatLngs())}:n instanceof L.Circle?this._uneditedLayerProps[r]={latlng:L.LatLngUtil.cloneLatLng(n.getLatLng()),radius:n.getRadius()}:(n instanceof L.Marker||n instanceof L.CircleMarker)&&(this._uneditedLayerProps[r]={latlng:L.LatLngUtil.cloneLatLng(n.getLatLng())}))},_getTooltipText:function(){return{text:L.drawLocal.edit.handlers.edit.tooltip.text,subtext:L.drawLocal.edit.handlers.edit.tooltip.subtext}},_updateTooltip:function(){this._tooltip.updateContent(this._getTooltipText())},_revertLayer:function(n){var r=L.Util.stamp(n);n.edited=!1,this._uneditedLayerProps.hasOwnProperty(r)&&(n instanceof L.Polyline||n instanceof L.Polygon||n instanceof L.Rectangle?n.setLatLngs(this._uneditedLayerProps[r].latlngs):n instanceof L.Circle?(n.setLatLng(this._uneditedLayerProps[r].latlng),n.setRadius(this._uneditedLayerProps[r].radius)):(n instanceof L.Marker||n instanceof L.CircleMarker)&&n.setLatLng(this._uneditedLayerProps[r].latlng),n.fire("revert-edited",{layer:n}))},_enableLayerEdit:function(n){var r,h,f=n.layer||n.target||n;this._backupLayer(f),this.options.poly&&(h=L.Util.extend({},this.options.poly),f.options.poly=h),this.options.selectedPathOptions&&(r=L.Util.extend({},this.options.selectedPathOptions),r.maintainColor&&(r.color=f.options.color,r.fillColor=f.options.fillColor),f.options.original=L.extend({},f.options),f.options.editing=r),f instanceof L.Marker?(f.editing&&f.editing.enable(),f.dragging.enable(),f.on("dragend",this._onMarkerDragEnd).on("touchmove",this._onTouchMove,this).on("MSPointerMove",this._onTouchMove,this).on("touchend",this._onMarkerDragEnd,this).on("MSPointerUp",this._onMarkerDragEnd,this)):f.editing.enable()},_disableLayerEdit:function(n){var r=n.layer||n.target||n;r.edited=!1,r.editing&&r.editing.disable(),delete r.options.editing,delete r.options.original,this._selectedPathOptions&&(r instanceof L.Marker?this._toggleMarkerHighlight(r):(r.setStyle(r.options.previousOptions),delete r.options.previousOptions)),r instanceof L.Marker?(r.dragging.disable(),r.off("dragend",this._onMarkerDragEnd,this).off("touchmove",this._onTouchMove,this).off("MSPointerMove",this._onTouchMove,this).off("touchend",this._onMarkerDragEnd,this).off("MSPointerUp",this._onMarkerDragEnd,this)):r.editing.disable()},_onMouseMove:function(n){this._tooltip.updatePosition(n.latlng)},_onMarkerDragEnd:function(n){var r=n.target;r.edited=!0,this._map.fire(L.Draw.Event.EDITMOVE,{layer:r})},_onTouchMove:function(n){var r=n.originalEvent.changedTouches[0],h=this._map.mouseEventToLayerPoint(r),f=this._map.layerPointToLatLng(h);n.target.setLatLng(f)},_hasAvailableLayers:function(){return this._featureGroup.getLayers().length!==0}}),L.EditToolbar.Delete=L.Handler.extend({statics:{TYPE:"remove"},initialize:function(n,r){if(L.Handler.prototype.initialize.call(this,n),L.Util.setOptions(this,r),this._deletableLayers=this.options.featureGroup,!(this._deletableLayers instanceof L.FeatureGroup))throw new Error("options.featureGroup must be a L.FeatureGroup");this.type=L.EditToolbar.Delete.TYPE;var h=L.version.split(".");parseInt(h[0],10)===1&&parseInt(h[1],10)>=2?L.EditToolbar.Delete.include(L.Evented.prototype):L.EditToolbar.Delete.include(L.Mixin.Events)},enable:function(){!this._enabled&&this._hasAvailableLayers()&&(this.fire("enabled",{handler:this.type}),this._map.fire(L.Draw.Event.DELETESTART,{handler:this.type}),L.Handler.prototype.enable.call(this),this._deletableLayers.on("layeradd",this._enableLayerDelete,this).on("layerremove",this._disableLayerDelete,this))},disable:function(){this._enabled&&(this._deletableLayers.off("layeradd",this._enableLayerDelete,this).off("layerremove",this._disableLayerDelete,this),L.Handler.prototype.disable.call(this),this._map.fire(L.Draw.Event.DELETESTOP,{handler:this.type}),this.fire("disabled",{handler:this.type}))},addHooks:function(){var n=this._map;n&&(n.getContainer().focus(),this._deletableLayers.eachLayer(this._enableLayerDelete,this),this._deletedLayers=new L.LayerGroup,this._tooltip=new L.Draw.Tooltip(this._map),this._tooltip.updateContent({text:L.drawLocal.edit.handlers.remove.tooltip.text}),this._map.on("mousemove",this._onMouseMove,this))},removeHooks:function(){this._map&&(this._deletableLayers.eachLayer(this._disableLayerDelete,this),this._deletedLayers=null,this._tooltip.dispose(),this._tooltip=null,this._map.off("mousemove",this._onMouseMove,this))},revertLayers:function(){this._deletedLayers.eachLayer(function(n){this._deletableLayers.addLayer(n),n.fire("revert-deleted",{layer:n})},this)},save:function(){this._map.fire(L.Draw.Event.DELETED,{layers:this._deletedLayers})},removeAllLayers:function(){this._deletableLayers.eachLayer(function(n){this._removeLayer({layer:n})},this),this.save()},_enableLayerDelete:function(n){(n.layer||n.target||n).on("click",this._removeLayer,this)},_disableLayerDelete:function(n){var r=n.layer||n.target||n;r.off("click",this._removeLayer,this),this._deletedLayers.removeLayer(r)},_removeLayer:function(n){var r=n.layer||n.target||n;this._deletableLayers.removeLayer(r),this._deletedLayers.addLayer(r),r.fire("deleted")},_onMouseMove:function(n){this._tooltip.updatePosition(n.latlng)},_hasAvailableLayers:function(){return this._deletableLayers.getLayers().length!==0}})})(window,document);const Al="";var vr={draw:{toolbar:{actions:{title:"መሳል ተው",text:"ተው"},finish:{title:"መሳል ጨርስ",text:"ጨርስ"},undo:{title:"መጨረሻ የተሳለውን ነጥብ አጥፋ",text:"መጨረሻ የተሳለውን ነጥብ አጥፋ"},buttons:{polyline:"ፖሊላየን ሳል",polygon:"ፖሊጎን ሳል",rectangle:"አራት መአዘን ሳል",circle:"ክብ ሳል",marker:"ምልክት ሳል",circlemarker:"ክብ ምልክት ሳል"}},handlers:{circle:{tooltip:{start:"ክብ ለመሳል ተጭንው ይጎትቱ"},radius:"ራዲየስ"},circlemarker:{tooltip:{start:"ክብ ምልክት ለመሳል ካርታውን ይጫኑ ይጎትቱ"}},marker:{tooltip:{start:"ምልክት ለመሳል ካርታውን ይጫኑ ይጎትቱ"}},polygon:{tooltip:{start:"ቅርጽን ለመሳል ካርታውን ተጭነው ይጎትቱ",cont:"ቅርጽን መሳሎን ለመቀጠል ይጫኑ",end:"ቅርጽን ስሎ ለመጨረስ የመጀመሪያውን ነጥብ ይጫኑ"}},polyline:{error:"<strong>ስህተት:</strong> መስመሮች እርስ በእርስ መተላለፍ አይችሉም!",tooltip:{start:"መስመር ለመሳል ካርታውን ተጭነው ይጎትቱ",cont:"መስመር መሳሎን ለመቀጠል ይጫኑ",end:"መስመር ስሎ ለመጨረስ የመጨረሻውን ነጥብ ይጫኑ"}},rectangle:{tooltip:{start:"ዐራት መአዝን ለመሳል ካርታውን ይጫኑ ይጎትቱ"}},simpleshape:{tooltip:{end:"ስለው ለመጨረስ አይጤን ይልቀቁ"}}}},edit:{toolbar:{actions:{save:{title:"ለውጦቹን አኑር",text:"አኑር"},cancel:{title:"ማስተካከሉን ተው፣ ሁሉንም ለውጦች ሰርዝ",text:"ተው"},clearAll:{title:"ሁሉንም የካርታ ገጾች አጥፋ",text:"ሁሉንም አጥፋ"}},buttons:{edit:"የካርታ ገጽ አስተካክል",editDisabled:"የሚስተካከል የካርታ ገጽ የለም",remove:"የካርታ ገጽ ሰርዝ.",removeDisabled:"የሚሰረዝ የካርታ ገጽ የለም"}},handlers:{edit:{tooltip:{text:"ለማስተካከል ምልክቱን ወይም መያዣውን ይጎትቱ",subtext:"ለውጥጡን ለመተው ተው የሚለውን ይጫኑ"}},remove:{tooltip:{text:"ማጥፋት የፈለጉትን ይጫኑ"}}}}},yr={draw:{toolbar:{actions:{title:"Zrušit kreslení",text:"Zrušit"},finish:{title:"Dokončit kreslení",text:"Dokončit"},undo:{title:"Smazat poslední nakreslený bod",text:"Smazat poslední bod"},buttons:{polyline:"Nakreslit mnohoúhelník",polygon:"Nakreslit polygon",rectangle:"Nakreslit obdélník",circle:"Nakreslit kruh",marker:"Nakreslit značku",circlemarker:"Nakreslit kruhovou značku"}},handlers:{circle:{tooltip:{start:"Kliknout a táhnout pro nakreslení kruhu."},radius:"Poloměr"},circlemarker:{tooltip:{start:"Kliknout do mapy pro umístění kruhové značky."}},marker:{tooltip:{start:"Kliknout do mapy pro umístění značky."}},polygon:{tooltip:{start:"Kliknout pro začátek kreslení tvaru.",cont:"Kliknout pro pokračování v kreslení tvaru.",end:"Kliknout na pvní bod k uzavření tvaru."}},polyline:{error:"<strong>Chyba:</strong> hrany tvaru se nemohou protínat!",tooltip:{start:"Kliknout pro začátek kreslení úsečky.",cont:"Kliknout pro pokračování v kreslení úsečky.",end:"Kliknout na koncový bod k ukončení kreslení úsečky."}},rectangle:{tooltip:{start:"Kliknout a táhnout k nakreslení obdélníku."}},simpleshape:{tooltip:{end:"Pustit myš k dokončení kreslení."}}}},edit:{toolbar:{actions:{save:{title:"Uložit změny.",text:"Uložit"},cancel:{title:"Zrušit úpravu, zruší všechny změny.",text:"Zrušit"},clearAll:{title:"Vymazat všechny vrstvy.",text:"Vymazat vše"}},buttons:{edit:"Upravit vrstvy.",editDisabled:"Žádné vrstvy k úpravě.",remove:"Vymazat vrstvy.",removeDisabled:"Žádná vrstva k vymazání."}},handlers:{edit:{tooltip:{text:"Táhnout za úchopy pro editaci tvaru.",subtext:"Kliknutím na zrušit vrátite změny."}},remove:{tooltip:{text:"Kliknout na tvar pro smazání"}}}}},Lr={draw:{toolbar:{actions:{title:"Zeichnung abbrechen",text:"Abbrechen"},finish:{title:"Zeichnung fertigstellen",text:"Fertigstellen"},undo:{title:"Lösche den zuletzt gezeichneten Punkt",text:"Letzter Punkt löschen"},buttons:{polyline:"Zeichne eine Linie",polygon:"Zeichne ein Polygon",rectangle:"Zeichne ein Rechteck",circle:"Zeichne einen Kreis",marker:"Zeichne einen Marker",circlemarker:"Zeichne einen Kreis-Marker"}},handlers:{circle:{tooltip:{start:"Klicken und ziehen um einen Kreis zu zeichnen."},radius:"Radius"},circlemarker:{tooltip:{start:"Karte anklicken um einen Kreis-Marker zu platzieren."}},marker:{tooltip:{start:"Karte anklicken um einen Marker zu platzieren."}},polygon:{tooltip:{start:"Klicken um mit dem Zeichnen einer Form zu beginnen.",cont:"Klicken um mit dem Zeichnen dieser Form fortzufahren.",end:"Erster Punkt anklicken um diese Form abzuschliessen."}},polyline:{error:"<strong>Fehler:</strong> Form-Ecken dürfen sich nicht überschneiden!",tooltip:{start:"Klicken um mit dem Zeichnen einer Linie zu beginnen.",cont:"Klicken um mit dem Zeichnen dieser Linie fortzufahren.",end:"Erster Punkt anklicken um diese Linie abzuschliessen."}},rectangle:{tooltip:{start:"Klicken und ziehen um ein Rechteck zu zeichnen."}},simpleshape:{tooltip:{end:"Maustaste loslassen um die Zeichnung fertigzustellen."}}}},edit:{toolbar:{actions:{save:{title:"Speichere Änderungen.",text:"Speichern"},cancel:{title:"Bearbeitung abbrechen, alle Änderungen verwerfen.",text:"Abbrechen"},clearAll:{title:"Alle Layer bereinigen.",text:"Alles bereinigen"}},buttons:{edit:"Layer bearbeiten.",editDisabled:"Keine Layer zum bearbeiten.",remove:"Layer löschen.",removeDisabled:"Keine Layer zum löschen."}},handlers:{edit:{tooltip:{text:"Ziehe den Griff oder den Marker um die Eigenschaft zu bearbeiten.",subtext:"Klicke abbrechen um Änderungen rückgängig zu machen."}},remove:{tooltip:{text:"Klicke auf eine Eigenschaft um diese zu entfernen."}}}}},an={draw:{toolbar:{actions:{title:"Cancel drawing",text:"Cancel"},finish:{title:"Finish drawing",text:"Finish"},undo:{title:"Delete last point drawn",text:"Delete last point"},buttons:{polyline:"Draw a polyline",polygon:"Draw a polygon",rectangle:"Draw a rectangle",circle:"Draw a circle",marker:"Draw a marker",circlemarker:"Draw a circlemarker"}},handlers:{circle:{tooltip:{start:"Click and drag to draw circle."},radius:"Radius"},circlemarker:{tooltip:{start:"Click map to place circle marker."}},marker:{tooltip:{start:"Click map to place marker."}},polygon:{tooltip:{start:"Click to start drawing shape.",cont:"Click to continue drawing shape.",end:"Click first point to close this shape."}},polyline:{error:"<strong>Error:</strong> shape edges cannot cross!",tooltip:{start:"Click to start drawing line.",cont:"Click to continue drawing line.",end:"Click last point to finish line."}},rectangle:{tooltip:{start:"Click and drag to draw rectangle."}},simpleshape:{tooltip:{end:"Release mouse to finish drawing."}}}},edit:{toolbar:{actions:{save:{title:"Save changes.",text:"Save"},cancel:{title:"Cancel editing, discards all changes.",text:"Cancel"},clearAll:{title:"Clear all layers.",text:"Clear All"}},buttons:{edit:"Edit layers.",editDisabled:"No layers to edit.",remove:"Delete layers.",removeDisabled:"No layers to delete."}},handlers:{edit:{tooltip:{text:"Drag handles, or marker to edit feature.",subtext:"Click cancel to undo changes."}},remove:{tooltip:{text:"Click on a feature to remove"}}}}},wr={draw:{toolbar:{actions:{title:"Cancelar dibujo",text:"Cancelar"},finish:{title:"Terminar dibujo",text:"Terminar"},undo:{title:"Eliminar último punto dibujado",text:"Eliminar último punto"},buttons:{polyline:"Dibujar una polilínea",polygon:"Dibujar un polígono",rectangle:"Dibujar un rectángulo",circle:"Dibujar un círculo",marker:"Dibujar un marcador",circlemarker:"Dibujar un marcador circular"}},handlers:{circle:{tooltip:{start:"Haz click y arrastra para dibujar un círculo"},radius:"Radio"},circlemarker:{tooltip:{start:"Haz click en el mapa para situar el marcador circular"}},marker:{tooltip:{start:"Haz click en el mapa para situar el marcador"}},polygon:{tooltip:{start:"Haz click para empezar a dibujar la forma",cont:"Haz click para continuar dibujando la forma",end:"Haz click en el primer punto para cerrar la forma"}},polyline:{error:"<strong>Error:</strong> las líneas no deben cruzarse",tooltip:{start:"Haz click para empezar a dibujar la línea",cont:"Haz click para continuar dibujando la línea",end:"Haz click en el último punto para terminar la línea"}},rectangle:{tooltip:{start:"Haz click y arrastra para dibujar un rectángulo"}},simpleshape:{tooltip:{end:"Suelta el ratón para terminar de dibujar"}}}},edit:{toolbar:{actions:{save:{title:"Guardar los cambios",text:"Guardar"},cancel:{title:"Cancelar la edición, descarta todos los cambios",text:"Cancelar"},clearAll:{title:"Limpiar todas las capas",text:"Limpiar todo"}},buttons:{edit:"Editar capas",editDisabled:"No hay capas que editar",remove:"Eliminar capas",removeDisabled:"No hay capas que eliminar"}},handlers:{edit:{tooltip:{text:"Arrastra el marcador para editar la forma",subtext:"Haz click en cancelar para deshacer los cambios"}},remove:{tooltip:{text:"Haz click en una forma para eliminarla"}}}}},kr={draw:{toolbar:{actions:{title:"Peru piirustus",text:"Peru"},finish:{title:"Hyväksy piirustus",text:"Hyväksy"},undo:{title:"Poista viimeinen piirretty piste",text:"Poista viimeinen piste"},buttons:{polyline:"Piirrä murtoviiva",polygon:"Piirrä monikulmio",rectangle:"Piirrä suorakulmio",circle:"Piirrä ympyrä",marker:"Piirrä merkki",circlemarker:"Piirrä piirimerkki"}},handlers:{circle:{tooltip:{start:"Piirrä ympyrä pitämällä hiiri painettuna ja vetämällä."},radius:"Säde"},circlemarker:{tooltip:{start:"Aseta ympyrämerkki painamalla karttaa."}},marker:{tooltip:{start:"Aseta markkeri painamalla karttaa."}},polygon:{tooltip:{start:"Paina aloittaaksesi muodon piirtämisen.",cont:"Paina jatkaaksesi muodon piirtämistä.",end:"Sulje muoto painamalla ensimmäistä pistettä."}},polyline:{error:"<strong>Virhe:</strong> muodon reunaa ei voi ylittää!",tooltip:{start:"Paina aloittaaksesi viivan piirtämisen.",cont:"Paina jatkaaksesi viivan piirtämistä.",end:"Paina viimeistä pistettä päättäksesi viiva."}},rectangle:{tooltip:{start:"Piirrä suorakulmio pitämällä hiiri painettuna ja vetämällä."}},simpleshape:{tooltip:{end:"Vapauta hiiri päättääksesi piirtämisen."}}}},edit:{toolbar:{actions:{save:{title:"Hyväksy muutokset.",text:"Hyväksy"},cancel:{title:"Peru muokkaus, hylkää kaikki muutokset.",text:"Peru"},clearAll:{title:"Poista kaikki tasot.",text:"Poista kaikki"}},buttons:{edit:"Muokkaa tasoja.",editDisabled:"Ei muokattavia tasoja.",remove:"Poista tasot.",removeDisabled:"Ei poistettavia tasoja."}},handlers:{edit:{tooltip:{text:"Vedä pistettä tai markkeria muokataksesi piirrettyjä ominaisuuksia.",subtext:"Kumoa muutokset painamalla peruuta."}},remove:{tooltip:{text:"Paina piirrettyä ominaisuutta poistaaksesi"}}}}},br={draw:{toolbar:{actions:{title:"Annuler le dessin",text:"Annuler"},finish:{title:"Terminer le dessin",text:"Terminer"},undo:{title:"Supprimer le dernier point tiré",text:"Supprimer le dernier point"},buttons:{polyline:"Dessinez une polyligne",polygon:"Dessinez un polygone",rectangle:"Dessinez un rectangle",circle:"Dessiner un cercle",marker:"Dessinez un marqueur",circlemarker:"Dessinez un marqueur circulaire"}},handlers:{circle:{tooltip:{start:"Cliquez et faites glisser pour dessiner le cercle."},radius:"Rayon"},circlemarker:{tooltip:{start:"Cliquez sur la carte pour placer le marqueur circulaire."}},marker:{tooltip:{start:"Cliquez sur la carte pour placer le marqueur."}},polygon:{tooltip:{start:"Cliquez pour commencer à dessiner.",cont:"Cliquez pour continuer à dessiner.",end:"Cliquez sur le premier point pour fermer cette forme."}},polyline:{error:"<strong>Erreur:</strong> les polyligne ne peuvent pas traverser!",tooltip:{start:"Cliquez pour commencer à dessiner.",cont:"Cliquez pour continuer à dessiner.",end:"Cliquez sur le dernier point pour fermer cette forme."}},rectangle:{tooltip:{start:"Cliquez et faites glisser pour dessiner le rectangle."}},simpleshape:{tooltip:{end:"Relâchez la souris pour terminer le dessin."}}}},edit:{toolbar:{actions:{save:{title:"Sauvegarder les modifications.",text:"Sauvegarder"},cancel:{title:"Annuler l'édition, rejette toutes les modifications.",text:"Annuler"},clearAll:{title:"Effacez toutes les collections.",text:"Tout effacer"}},buttons:{edit:"Modifier les collections.",editDisabled:"Pas de collections à éditer.",remove:"Supprimez les collections.",removeDisabled:"Pas de collections à supprimer."}},handlers:{edit:{tooltip:{text:"Sélectionnez les poignées ou le marqueur pour modifier l'entité.",subtext:"Cliquez sur annuler pour rétablir les modifications."}},remove:{tooltip:{text:"Cliquez sur une entité pour supprimer"}}}}},xr={draw:{toolbar:{actions:{title:"Rajzolás elvetése",text:"Mégse"},finish:{title:"Rajzolás befejezése",text:"Befejezés"},undo:{title:"Legutóbbi pont törlése",text:"Legutóbbi pont törlése"},buttons:{polyline:"Útvonal rajzolása",polygon:"Sokszög rajzolása",rectangle:"Négyszög rajzolása",circle:"Kör rajzolása",marker:"Jelölő rajzolása",circlemarker:"Kör-jelölő rajzolása"}},handlers:{circle:{tooltip:{start:"Kattintson és tartsa nyomva a rajzoláshoz."},radius:"Sugár"},circlemarker:{tooltip:{start:"Kör-jelölő elhelyezéséhez kattintson a térképre."}},marker:{tooltip:{start:"Jelölő elhelyezéséhez kattintson a térképre."}},polygon:{tooltip:{start:"Alakzat rajzolásához kattintson a térképre.",cont:"Alakzat folytatásához kattintson a térképre.",end:"Alakzat befejezéséhez kattintson a kezdőpontra."}},polyline:{error:"<strong>Error:</strong> shape edges cannot cross!",tooltip:{start:"Útvonal rajzolásához kattintson a térképre.",cont:"Útvonal folytatásához kattintson a térképre.",end:"Útvonal befejezéséhez kattintson a végpontra."}},rectangle:{tooltip:{start:"Kattintson és tartsa nyomva négyszög rajzolásához."}},simpleshape:{tooltip:{end:"Ha elégedett az alakzattal, engedje fel az egér gombját."}}}},edit:{toolbar:{actions:{save:{title:"Változtatások elmentése.",text:"Mentés"},cancel:{title:"Változtatások elvetése.",text:"Mégse"},clearAll:{title:"Összes réteg törlése.",text:"Összes törlése"}},buttons:{edit:"Rétegek szerkesztése.",editDisabled:"Nem állnak rendelkezésre szerkeszthető rétegek.",remove:"Rétegek törlése.",removeDisabled:"Nem állnak rendelkezésre törölhető rétegek."}},handlers:{edit:{tooltip:{text:"Módosításhoz használja a jelölők, alakzatok kezelőit.",subtext:"Változások elvetéséhez kattintson a 'Mégse' gombra."}},remove:{tooltip:{text:"Kattintson a jelölőkre, alakzatokra az eltávolításukhoz."}}}}},Pr={draw:{toolbar:{actions:{title:"Annulla disegno",text:"Annulla"},finish:{title:"Completa disegno",text:"Completa"},undo:{title:"Elimina l'ultimo punto disegnato",text:"Elimina l'ultimo punto"},buttons:{polyline:"Disegna una polilinea",polygon:"Disegna un poligono",rectangle:"Disegna un rettangolo",circle:"Disegna un cerchio",marker:"Disegna un marcatore",circlemarker:"Disegna un marker circolare"}},handlers:{circle:{tooltip:{start:"Clicca e trascina per disegnare un cerchio."},radius:"Raggio"},circlemarker:{tooltip:{start:"Clicca la mappa per posizionare un marcatore circolare."}},marker:{tooltip:{start:"Clicca la mappa per posizionare un marcatore."}},polygon:{tooltip:{start:"Clicca per iniziare a disegnare una figura.",cont:"Clicca per continuare a disegnare una figura.",end:"Clicca il primo punto per chiudere questa figura."}},polyline:{error:"<strong>Errore:</strong> i margini della figura non si possono incrociare!",tooltip:{start:"Clicca per iniziare a disegnare una linea.",cont:"Clicca per continuare a disegnare una linea",end:"Clicca l'ultimo punto per finire questa linea"}},rectangle:{tooltip:{start:"Clicca e trascina per disegnare un rettangolo."}},simpleshape:{tooltip:{end:"Rilascia il mouse per finire il disegno."}}}},edit:{toolbar:{actions:{save:{title:"Salva modifiche.",text:"Salva"},cancel:{title:"Annulla tutte le modifiche.",text:"Annulla"},clearAll:{title:"Pulisci tutti i livelli.",text:"Pulisci tutto"}},buttons:{edit:"Modifica i livelli.",editDisabled:"Nessun livello disponibile per la modifica.",remove:"Elimina livelli.",removeDisabled:"Nessun livello disponibile per l'eliminazione."}},handlers:{edit:{tooltip:{text:"Trascina le maniglie, o i marcatori per modificare l'elemento.",subtext:"Clicca annulla per annullare le modifiche."}},remove:{tooltip:{text:"Clicca un elemento per rimuoverlo"}}}}},Er={draw:{toolbar:{actions:{title:"ხატვის გაუქმება",text:"გაუქმება"},finish:{title:"ხატვის დასრულება",text:"დასრულება"},undo:{title:"ბოლო დახატული წერტილის წაშლა",text:"ბოლო წერტილის წაშლა"},buttons:{polyline:"პოლილაინის დახაზვა",polygon:"პოლიგონის დახაზვა",rectangle:"მართკუთხედის დახაზვა",circle:"წრის დახაზვა",marker:"ადგილმდებარეობის დატანა",circlemarker:"ადგილმდებარეობის დატანა(წრის სახით)"}},handlers:{circle:{tooltip:{start:"დააწკაპუნეთ და გადაიტანეთ იმისათვის, რომ წრე დახაზოთ."},radius:"რადიუსი"},circlemarker:{tooltip:{start:"დააწკაპუნეთ რუკაზე ადგილმდებარეობის შესაქმნელად."}},marker:{tooltip:{start:"დააწკაპუნეთ რუკაზე ადგილმდებარეობის შესაქმნელად."}},polygon:{tooltip:{start:"დააწკაპუნეთ, კონტურის ხაზვის დაწყებისთვის.",cont:"დააწკაპუნეთ, კონტრუსი ხაზვის დასრულებისთვის.",end:"დააწკაპუნეთ პირველ წერტილზე, რათა დაასრულოთ კონტურის ხაზვა."}},polyline:{error:"<strong>შეცდომა:</strong> ხაზი ვერ გადაკვეთავს თავის თავს",tooltip:{start:"დააწკაპუნეთ, ხაზის ხაზვის დაწყებისთვის.",cont:"დააწკაპუნეთ, ხაზის ხაზვის დასრულებისთვის.",end:"დააწკაპუნეთ ბოლო წერტილზე, რათა დაასრულოთ ხაზის ხაზვა."}},rectangle:{tooltip:{start:"დააწკაპუნეთ და გადაიტანეთ იმისათვის, რომ მართკუთხედი დახაზოთ."}},simpleshape:{tooltip:{end:"გაათავისუფლეთ თაგვის ღილაკი ხაზვის დასასრულებლად."}}}},edit:{toolbar:{actions:{save:{title:"ცვლილებების შენახვა.",text:"შენახვა"},cancel:{title:"რედაქტირების გაუქმება, დააბრუნე ყველა ცვლილება.",text:"გაუქმება"},clearAll:{title:"ყველა რედაქტირებული ფენის გასუფთავება.",text:"გასუფთავება"}},buttons:{edit:"რედაქტირება.",editDisabled:"ფენები არ არის რედაქტირებისთვის.",remove:"წაშლა.",removeDisabled:"ფენები არ არის წაშლისთვის."}},handlers:{edit:{tooltip:{text:"გადაიტანეთ წვერები ან წერტილები ობიექტის რედაქტირებისთვის.",subtext:'დააჭირეთ "გაუქმება", საწყის მდგომარეობაში დასაბრუნებლად.'}},remove:{tooltip:{text:"დააწკაპუნეთ ობიექტზე წაშლისთვის"}}}}},Tr={draw:{toolbar:{actions:{title:"Tekening annuleren",text:"Annuleren"},finish:{title:"Tekening voltooien",text:"Voltooien"},undo:{title:"Laatst getekende punt verwijderen",text:"Verwijder laatst getekende punt"},buttons:{polyline:"Teken een polygonale lijn",polygon:"Teken een polygoon",rectangle:"Teken een rechthoek",circle:"Teken een cirkel",marker:"Plaats een marker",circlemarker:"Teken een cirkelmarkering"}},handlers:{circle:{tooltip:{start:"Klik en sleep om de cirkel te tekenen."},radius:"Radius"},circlemarker:{tooltip:{start:"Klik op de kaart om de cirkelmarkering te plaatsen."}},marker:{tooltip:{start:"Klik op de kaart om de markering te plaatsen."}},polygon:{tooltip:{start:"Klik om te beginnen met het tekenen van de polygoon.",cont:"Klik om door te gaan met het tekenen van de vorm.",end:"Klik op het eerste punt om dit polygoon te sluiten."}},polyline:{error:"<strong>Fout:</strong> vormranden kunnen niet kruisen!",tooltip:{start:"Klik om te beginnen met het tekenen van een lijn.",cont:"Klik om door te gaan met het tekenen van de lijn.",end:"Klik laatst getekende punt om deze lijn te voltooien."}},rectangle:{tooltip:{start:"Klik en sleep om een rechthoek te tekenen."}},simpleshape:{tooltip:{end:"Laat de muis los om de tekening te voltooien."}}}},edit:{toolbar:{actions:{save:{title:"Wijzigingen opslaan.",text:"Opslaan"},cancel:{title:"Annuleer bewerken en verwijder alle wijzigingen.",text:"Annuleren"},clearAll:{title:"Verwijder alle lagen.",text:"Verwijderd alles"}},buttons:{edit:"Lagen bewerken.",editDisabled:"Geen lagen om te bewerken.",remove:"Verwijder lagen.",removeDisabled:"Geen lagen om te verwijderen."}},handlers:{edit:{tooltip:{text:"Sleep hoeken om te schalen of middenpunt om te verplaatsen.",subtext:"Klik op annuleren om wijzigingen ongedaan te maken."}},remove:{tooltip:{text:"Klik op een vorm om die te verwijderen"}}}}},Mr={draw:{toolbar:{actions:{title:"Avbryt markering",text:"Avbryt"},finish:{title:"Ferdiggjør markering",text:"Ferdiggjør"},undo:{title:"Ta bort siste punkt",text:"Slett siste punkt"},buttons:{polyline:"Tegn flere linjer",polygon:"Tegn en mangekant",rectangle:"Tegn et rektangel",circle:"Tegn en sirkel",marker:"Sett et markeringspunkt",circlemarker:"Tegn et sirkelpunkt"}},handlers:{circle:{tooltip:{start:"Klikk og dra for å tegne en sirkel."},radius:"Radius"},circlemarker:{tooltip:{start:"Klikk på kartet for å plassere et sirkelpunkt."}},marker:{tooltip:{start:"Klikk på kartet for å markere et punkt."}},polygon:{tooltip:{start:"Klikk for å tegne et område.",cont:"Klikk for å fortsette tegningen.",end:"Klikk på det første punktet for å lukke området."}},polyline:{error:"<strong>Error:</strong> kantene kan ikke krysses!",tooltip:{start:"Klikk for å tegne en linje.",cont:"Klikk for å fortsette å tegne linjen.",end:"Kikk siste punkt for å ferdiggjøre linjen."}},rectangle:{tooltip:{start:"Klikk og dra for å tegne et rektangel."}},simpleshape:{tooltip:{end:"Slipp museknappen for å gjøre tegningen ferdig."}}}},edit:{toolbar:{actions:{save:{title:"Lagre endringer.",text:"Lagre"},cancel:{title:"Avbryt redigering og forkast endringer.",text:"Avbryt"},clearAll:{title:"Nullstill alle figurer.",text:"Nullstill alt."}},buttons:{edit:"Rediger figur.",editDisabled:"Ingen figur å redigere.",remove:"Slett figur.",removeDisabled:"Ingen figur å slette."}},handlers:{edit:{tooltip:{text:"Dra markør for å redigere.",subtext:"Klikk avbryt for å angre endringer."}},remove:{tooltip:{text:"Klikk for å ta bort"}}}}},Cr={draw:{toolbar:{actions:{title:"Anuluj wyznaczanie",text:"Anuluj"},finish:{title:"Zakończ wyznaczanie",text:"Zakończ"},undo:{title:"Usuń ostatnio wyznaczony punkt",text:"Usuń ostatni punkt"},buttons:{polyline:"Wyznacz wzór",polygon:"Wyznacz wielokąt",rectangle:"Wyznacz prostokąt",circle:"Wyznacz koło",marker:"Umieść znacznik",circlemarker:"Umieść okrągły znacznik"}},handlers:{circle:{tooltip:{start:"Kliknij i przeciągnij, aby wyznaczyć koło."},radius:"Promień"},circlemarker:{tooltip:{start:"Kliknij na mapę, aby umieścić okrągły znacznik."}},marker:{tooltip:{start:"Kliknij na mapę, aby umieścić znacznik."}},polygon:{tooltip:{start:"Kliknij, aby rozpocząć wyznaczanie kształtu.",cont:"Kliknij, aby kontynuować wyznaczanie kształtu.",end:"Kliknij pierwszy punkt, aby zakończyć ten kształt."}},polyline:{error:"<strong>Błąd:</strong> odcinki nie mogą się przecinać!",tooltip:{start:"Kliknij, aby rozpocząć wyznaczanie lini.",cont:"Kliknij, aby kontynuować wyznaczanie lini.",end:"Kliknij ostatni punkt, aby ukończyć linię."}},rectangle:{tooltip:{start:"Kliknij i przeciągnij, aby wyznaczyć prostokąt."}},simpleshape:{tooltip:{end:"Zwolnij przycisk myszy, aby ukończyć wyznaczanie."}}}},edit:{toolbar:{actions:{save:{title:"Zapisz zmiany.",text:"Zapisz"},cancel:{title:"Anuluj edytowanie i odrzuć zmiany.",text:"Anuluj"},clearAll:{title:"Wyczyść wszystkie warstwy.",text:"Wyczyść wszystko"}},buttons:{edit:"Edytuj warstwy.",editDisabled:"Brak warstw do edycji.",remove:"Usuń warstwy.",removeDisabled:"Brak warstw do usunięcia."}},handlers:{edit:{tooltip:{text:"Przeciągnij uchwyt lub znacznik, aby edytować.",subtext:"Kliknij anuluj, aby odrzucić zmiany."}},remove:{tooltip:{text:"Kliknij obiekt, aby go usunąć."}}}}},zr={draw:{toolbar:{actions:{title:"Cancelar desenho",text:"Cancelar"},finish:{title:"Terminar desenho",text:"Terminar"},undo:{title:"Eliminar último ponto desenhado",text:"Eliminar último ponto"},buttons:{polyline:"Desenhar uma polilinha",polygon:"Desenhar um polígono",rectangle:"Desenhar um retângulo",circle:"Desenhar um círculo",marker:"Desenhar un marcador",circlemarker:"Desenhar um marcador circular"}},handlers:{circle:{tooltip:{start:"Clique e arrastrar para desenhar o círculo."},radius:"Raio"},circlemarker:{tooltip:{start:"Clique no mapa para colocar o marcador circular."}},marker:{tooltip:{start:"Clique no mapa para colocar o marcador."}},polygon:{tooltip:{start:"Clique para começar a desenhar a figura.",cont:"Clique para continuar desenhando a figura.",end:"Clique no primeiro ponto para fechar esta figura."}},polyline:{error:"<strong>Erro:</strong> as bordas de uma forma não podem atravessar!",tooltip:{start:"Clique para começar a desenhar a linha.",cont:"Clique para continuar desenhando a linha.",end:"Clique no último ponto para terminar a linha."}},rectangle:{tooltip:{start:"Clique e arrastrar para desenhar o retângulo."}},simpleshape:{tooltip:{end:"Solte o mouse para terminar o desenho."}}}},edit:{toolbar:{actions:{save:{title:"Guardar alterações.",text:"Guardar"},cancel:{title:"Cancelar edição, descarta todas as alterações.",text:"Cancelar"},clearAll:{title:"Limpar todas as camadas.",text:"Limpar tudo"}},buttons:{edit:"Editar camadas.",editDisabled:"Nenhuma camada que editar.",remove:"Eliminar camadas.",removeDisabled:"Nenhuma camada que eliminar."}},handlers:{edit:{tooltip:{text:"Arraste os manipuladores ou marcadores para editar a figura.",subtext:"Clique em cancelar para desfazer as alterações."}},remove:{tooltip:{text:"Clique em uma figura para removê-la"}}}}},Sr={draw:{toolbar:{actions:{title:"Отменить рисование",text:"Отмена"},finish:{title:"Завершить рисование",text:"Завершить"},undo:{title:"Удалить последнюю нарисованную точку",text:"Удалить последнюю точку"},buttons:{polyline:"Нарисовать полилинию",polygon:"Нарисовать полигон",rectangle:"Нарисовать прямоугольник",circle:"Нарисовать круг",marker:"Нарисовать точку",circlemarker:"Нарисовать точку(в виде круга)"}},handlers:{circle:{tooltip:{start:"Кликните и перетащите для того, чтобы нарисовать круг."},radius:"Радиус"},circlemarker:{tooltip:{start:"Кликните на карту для установки точки."}},marker:{tooltip:{start:"Кликните на карту для установки точки."}},polygon:{tooltip:{start:"Кликните, чтобы начать рисовать контур.",cont:"Кликните, чтобы завершить рисовать контур.",end:"Кликните на первую точку, чтобы завершить рисование контура."}},polyline:{error:"<strong>Ошибка:</strong> линия не может самопересекаться!",tooltip:{start:"Кликните, чтобы начать рисовать линию.",cont:"Кликните, чтобы завершить рисование линии.",end:"Кликните на последнюю точку, чтобы завершить рисование линии."}},rectangle:{tooltip:{start:"Кликните и перетащите, чтобы нарисовать прямоугольник."}},simpleshape:{tooltip:{end:"Отпустите кнопку мыши для завершения рисования."}}}},edit:{toolbar:{actions:{save:{title:"Сохранить изменения.",text:"Сохранить"},cancel:{title:"Отменить редактирование, откатить все изменения.",text:"Отмена"},clearAll:{title:"Очистить все редактируемые слои.",text:"Очистить всё"}},buttons:{edit:"Редактировать.",editDisabled:"Нет слоёв для редактирования.",remove:"Удалить.",removeDisabled:"Нет слоёв для удаления."}},handlers:{edit:{tooltip:{text:"Перетащите вершины или точки для редактирования фигуры.",subtext:'Нажмите "Отмена", чтобы откатить изменения.'}},remove:{tooltip:{text:"Кликните на фигуру для удаления"}}}}},Dr={draw:{toolbar:{actions:{title:"Zrušiť kreslenie",text:"Zrušiť"},finish:{title:"Dokončiť kreslenie",text:"Dokončiť"},undo:{title:"Zmazať posledný nakreslený bod",text:"Zmazať posledný bod"},buttons:{polyline:"Nakresliť čiaru",polygon:"Nakresliť polygón",rectangle:"Nakresliť obdĺžnik",circle:"Nakresliť kruh",marker:"Nakresliť bod",circlemarker:"Nakresliť kruhový bod"}},handlers:{circle:{tooltip:{start:"Kliknite a potiahnite, aby ste nakreslili kruh."},radius:"Polomer"},circlemarker:{tooltip:{start:"Kliknite na mapu aby ste umiestnili kruhový bod."}},marker:{tooltip:{start:"Kliknite na mapu aby ste umiestnili bod."}},polygon:{tooltip:{start:"Kliknite, aby ste začali kresliť útvar.",cont:"Kliknite, aby ste nakreslili ďalší bod útvaru.",end:"Kliknite na prvý bod, aby ste uzavreli útvar."}},polyline:{error:"<strong>Chyba:</strong> čiary sa nesmú pretínať!",tooltip:{start:"Kliknite, aby ste začali kresliť čiaru.",cont:"Kliknite, aby ste nakreslili ďalší bod čiary.",end:"Kliknite posledný bod, aby ste dokončili čiaru."}},rectangle:{tooltip:{start:"Kliknite a potiahnite, aby ste nakreslili štvorec."}},simpleshape:{tooltip:{end:"Uvoľnením tlačidla myši ukončíte kreslenie."}}}},edit:{toolbar:{actions:{save:{title:"Uložiť zmeny.",text:"Uložiť"},cancel:{title:"Ukončiť úpravu, zrušiť všetky zmeny.",text:"Zrušiť"},clearAll:{title:"Zmazať všetky vrstvy.",text:"Zmazať všetko"}},buttons:{edit:"Upraviť vrstvy.",editDisabled:"Žiadne vrstvy pre úpravu",remove:"Zmazať vrstvy.",removeDisabled:"Žiadne vrstvy pre zmazanie."}},handlers:{edit:{tooltip:{text:"Potiahnutím vyznačených štvorčekov, alebo bodov upravíte útvar.",subtext:"Kliknite zrušiť, pre zrušenie zmien."}},remove:{tooltip:{text:"Kliknite na útvar pre jeho zmazanie."}}}}},Or={draw:{toolbar:{actions:{title:"Скасувати креслення",text:"Скасувати"},finish:{title:"Завершити креслення",text:"Завершити"},undo:{title:"Видалити останню нанесену точку",text:"Видалити останню точку"},buttons:{polyline:"Накреслити криву",polygon:"Накреслити многокутник",rectangle:"Накреслити прямокутник",circle:"Накреслити коло",marker:"Розмістити маркер",circlemarker:"Розмістити маркер-коло"}},handlers:{circle:{tooltip:{start:"Натисніть і перетягуйте вказівник, щоб накреслити коло."},radius:"Радіус"},circlemarker:{tooltip:{start:"Натисніть на мапу, щоб розмістити маркер-коло."}},marker:{tooltip:{start:"Натисніть на мапу, щоб розмістити маркер."}},polygon:{tooltip:{start:"Натисніть, щоб накреслити фігуру.",cont:"Натисніть, щоб продовжити креслення фігури.",end:"Натисніть на першу точку, щоб замкнути цю фігуру."}},polyline:{error:"<strong>Помилка:</strong> сторони фігури не мають перетинатись!",tooltip:{start:"Натисніть, щоб накреслити лінію.",cont:"Натисніть, щоб продовжити креслення лінії.",end:"Натисніть на останню точку, щоб завершити лінію."}},rectangle:{tooltip:{start:"Натисніть і перетягуйте вказівник, щоб накреслити прямокутник."}},simpleshape:{tooltip:{end:"Відпустіть мишку, щоб завершити рисування."}}}},edit:{toolbar:{actions:{save:{title:"Зберегти зміни.",text:"Зберегти"},cancel:{title:"Припинити редагування, скасувати всі зміни.",text:"Скасувати"},clearAll:{title:"Очистити всі шари.",text:"Очистити все"}},buttons:{edit:"Редагувати шари.",editDisabled:"Немає шарів для редагування.",remove:"Видалити шари.",removeDisabled:"Немає шарів для видалення."}},handlers:{edit:{tooltip:{text:"Перетягуйте важелі або маркер для редагування фігури.",subtext:"Натисніть «Скасувати» для скасування змін."}},remove:{tooltip:{text:"Натисніть на фігуру для видалення"}}}}},Ar={draw:{toolbar:{actions:{title:"الغاء الرسم",text:"الغاء"},finish:{title:"انهاء الرسم",text:"انهاء"},undo:{title:"مسح اخر رسمة",text:"مسح اخر نقطة"},buttons:{polyline:"رسم خط",polygon:"رسم منطقة",rectangle:"رسم مستطيل",circle:"رسم دائرة",marker:"رسم علامة",circlemarker:"رسم علامة دائرة"}},handlers:{circle:{tooltip:{start:"اضغط واسحب لرسم دائرة"},radius:"القطر"},circlemarker:{tooltip:{start:"اضغط على الخريطة لرسم دائرة"}},marker:{tooltip:{start:"اضغط على الخريطة لرسم نقطة"}},polygon:{tooltip:{start:"اضغط لبدء رسم منطقة",cont:"اضغط لاستمرار رسم منطقة",end:"اضغط على اول نقطة لاكمال المنطقة"}},polyline:{error:"<strong>خطأ:</strong> لا يمكن تقاطع الخطوط",tooltip:{start:"اضغط لبدئ رسم الخط",cont:"اضغط لاستكمال رسم الخط",end:"اضغط على اخر نقطة للانهاء"}},rectangle:{tooltip:{start:"اضغط واسحب لرسم مستطيل"}},simpleshape:{tooltip:{end:"اترك الماوس للانهاء"}}}},edit:{toolbar:{actions:{save:{title:"حفظ التغييرات",text:"حفظ"},cancel:{title:"الغاء كل التعديلات",text:"الغاء"},clearAll:{title:"مسح كل الطبقات",text:"مسح الكل"}},buttons:{edit:"تعديل الطبقات",editDisabled:"لاتوجد طبقات للتعديل",remove:"مسح الطبقات",removeDisabled:"لا يوجد طبقات للمسح"}},handlers:{edit:{tooltip:{text:"اسحب للتعديل",subtext:"اضغط الغاء لمسح التعديلات"}},remove:{tooltip:{text:"اضغط على رسمة للمسح"}}}}},Ir={draw:{toolbar:{actions:{title:"取消绘制",text:"取消"},finish:{title:"结束绘制",text:"结束"},undo:{title:"删除最后一个绘制点",text:"删除最后一个点"},buttons:{polyline:"绘制折线",polygon:"绘制多边形",rectangle:"绘制矩形",circle:"绘制圆形",marker:"绘制标志物",circlemarker:"绘制圆形标志物"}},handlers:{circle:{tooltip:{start:"单击并拖拽绘制圆形"},radius:"半径"},circlemarker:{tooltip:{start:"单击地图放置圆形标志物"}},marker:{tooltip:{start:"单击地图放置标志物"}},polygon:{tooltip:{start:"单击地图绘制图形",cont:"继续单击绘制图形",end:"单击起始点结束绘制"}},polyline:{error:"<strong>错误:</strong> 图形边缘不能交叉!",tooltip:{start:"单击地图绘制折线",cont:"继续单击绘制下一段折线",end:"单击最后一个点结束绘制"}},rectangle:{tooltip:{start:"单击并拖拽绘制矩形"}},simpleshape:{tooltip:{end:"松开鼠标结束绘制"}}}},edit:{toolbar:{actions:{save:{title:"保存变更",text:"保存"},cancel:{title:"取消编辑,放弃所有变更",text:"取消"},clearAll:{title:"清除所有图形",text:"清除所有"}},buttons:{edit:"编辑图形",editDisabled:"无图形可编辑",remove:"删除图形",removeDisabled:"无图形可删除"}},handlers:{edit:{tooltip:{text:"拖拽线段或标志点以编辑图形",subtext:"点击<strong>取消</strong>按钮撤销变更"}},remove:{tooltip:{text:"单击图形以移除"}}}}},Rr={draw:{toolbar:{actions:{title:"Çizimi iptal et",text:"İptal"},finish:{title:"Çizimi Bitir",text:"Bitir"},undo:{title:"Çizilen son noktayı sil",text:"Son noktayı sil"},buttons:{polyline:"Çoklu çizgi çiz",polygon:"Çokgen çiz",rectangle:"Dikdörtgen çiz",circle:"Yuvarlak çiz",marker:"İşaretçi çiz",circlemarker:"Yuvarlak işaretçi çiz"}},handlers:{circle:{tooltip:{start:"Yuvarlak çizmek için tıklayın ve sürükleyin."},radius:"Çap"},circlemarker:{tooltip:{start:"Yuvarlak işaretçi yerleştirmek için haritaya tıklayın."}},marker:{tooltip:{start:"İşaretçi yerleştirmek için haritaya tıklayın."}},polygon:{tooltip:{start:"Şekil çizmeye başlamak için tıklayın.",cont:"Şekil çizmeye devam etmek için tıklayın.",end:"Bu şekli tamamlamak için ilk noktayı tıklayın."}},polyline:{error:"<strong>Hata:</strong> şekil kenarları kesişemez!",tooltip:{start:"Hat çizmeye başlamak için tıklayın.",cont:"Hat çizmeye devam etmek için tıklayın.",end:"Bu hattı tamamlamak için ilk noktayı tıklayın."}},rectangle:{tooltip:{start:"Dikdörtgen çizmek için tıklayın ve sürükleyin."}},simpleshape:{tooltip:{end:"Çizimi bitirmek için fareyi bırakın."}}}},edit:{toolbar:{actions:{save:{title:"Değişiklikleri kaydet.",text:"Kaydet"},cancel:{title:"Düzenlemeyi iptal et, tüm değişiklikleri çıkar.",text:"İptal"},clearAll:{title:"Tüm katmanları temizle.",text:"Hepsini temizle"}},buttons:{edit:"Katmanları düzenle.",editDisabled:"Düzenlenecek katman bulunamadı.",remove:"Katmanları sil.",removeDisabled:"Silinecek katman bulunamadı."}},handlers:{edit:{tooltip:{text:"Çizimi düzenlemek için köşeleri veya işaretçiyi sürükleyin.",subtext:"Değişiklikleri geri almak için iptale tıklayın."}},remove:{tooltip:{text:"Çizimi silmek için tıklayın"}}}}},Br=function(s){var l=an;switch(s.toLocaleLowerCase()){case"de":case"de-at":case"de-be":case"de-ch":case"de-de":case"de-li":case"de-lu":case"de-de.utf-8":case"german":l=Lr;break;case"en":case"en-us":case"en-ca":case"en-gb":case"en-us.utf-8":case"english":l=an;break;case"ar":case"ar-ae":case"ar-eg":case"arabic":l=Ar;break;case"fi":case"fi-fi":case"fi-fi.utf-8":case"finnish":l=kr;break;case"fr":case"fr-us":case"fr-ca":case"fr-us.utf-8":case"french":l=br;break;case"es":case"es-us":case"es-ca":case"es-us.utf-8":case"spanish":l=wr;break;case"sk":case"sk-sk":case"sk-sk.utf-8":case"slovak":l=Dr;break;case"pl":case"pl-pl":case"pl-pl.utf-8":case"polish":l=Cr;break;case"pt":case"pt-pt":case"pt-pt.utf-8":case"portuguese":l=zr;break;case"uk":case"uk-ua":case"uk-ua.utf-8":case"ukrainian":l=Or;break;case"cs":case"cs-cz":case"cs-cz.utf-8":case"czech":l=yr;break;case"ru":case"ru-ru":case"ru-ru.utf-8":case"russian":l=Sr;break;case"ka":case"ka-ka":case"ka-ka.utf-8":case"georgian":l=Er;break;case"no":case"no-no":case"no-no.utf-8":case"norwegian":l=Mr;break;case"am":case"am-et":case"am-et.utf-8":case"amharic":l=vr;break;case"nl":case"nl-nl":case"nl-nl.utf-8":case"nl-be":case"nl-be.utf-8":case"dutch":case"belgian":case"flemish":l=Tr;break;case"it":case"it-it":case"it-ch":case"it-it.utf-8":case"it-ch.utf-8":case"italiano":case"italian":l=Pr;break;case"hu":case"hu-HU":case"hu-hu":case"hu-HU.utf-8":case"hu-hu.utf-8":case"magyar":case"hungarian":l=xr;break;case"zh":case"zh-cn":case"zh-cn.utf-8":case"chinese":l=Ir;break;case"tr":case"tr-tr":case"tr-tr.utf-8":case"turkish":l=Rr;break;default:throw new Error("[language] not found")}try{L&&L.drawLocal&&(L.drawLocal=l)}catch{}return l};F.Edit.Circle=F.Edit.CircleMarker.extend({_createResizeMarker:function(){var s=this._shape.getLatLng(),l=this._getResizeMarkerPoint(s);this._resizeMarkers=[],this._resizeMarkers.push(this._createMarker(l,this.options.resizeIcon))},_getResizeMarkerPoint:function(s){var l=this._shape._radius*Math.cos(Math.PI/4),c=this._map.project(s);return this._map.unproject([c.x+l,c.y-l])},_resize:function(s){var l=this._moveMarker.getLatLng(),c;F.GeometryUtil.isVersion07x()?c=l.distanceTo(s):c=this._map.distance(l,s),this._shape.setRadius(c),this._map.fire(F.Draw.Event.EDITRESIZE,{layer:this._shape})}});const Nr=$.defineComponent({name:"MapView",props:{loadPolygon:Boolean,reverseCoordinatesPolygon:Boolean,dataPolygon:Object,configurationMap:Object,coordinatesMap:Array,getGeoJSON:Function,getCoodMarker:Function},data(){return{idMap:"",mapRender:null,markerRender:null,renderCoordinates:this.coordinatesMap,renderGeojson:this.dataPolygon,markerIcon:{iconUrl:oi,iconSize:[25,41],iconAnchor:[12,41]},layersFeatureGroup:null,featuresData:null}},mounted(){this.makeid(10),this.renderMap()},methods:{getLayersFeaturesInGeoJson(){const s=F.geoJSON().addTo(this.mapRender);return this.featuresData.eachLayer(c=>{s.addLayer(c)}),JSON.stringify([s.toGeoJSON()])},triggerSaveEdit(){var l,c,d;(d=(c=(l=(document.getElementsByClassName("leaflet-draw-actions leaflet-draw-actions-top")||document.getElementsByClassName("leaflet-draw-actions leaflet-draw-actions-top leaflet-draw-actions-bottom"))[0])==null?void 0:l.querySelector("li"))==null?void 0:c.querySelector("a"))==null||d.click()},makeid(s){let l="";const c="abcdefghijklmnopqrstuvwxyz",d=c.length;let n=0;for(;n<s;)l+=c.charAt(Math.floor(Math.random()*d)),n+=1;this.idMap=l},renderMap(){Br("es"),setTimeout(()=>{this.loadPolygon?this.viewMap():this.createMap()},500)},createMap(){var h,f,m,_,v,w,T,z;const s=this.configurationMap?this.configurationMap.iconMarker?this.configurationMap.iconMarker:this.markerIcon:this.markerIcon;window.type=!0;const l=F.map(this.idMap).setView([this.renderCoordinates?this.renderCoordinates[0]:0,this.renderCoordinates?this.renderCoordinates[1]:0],this.renderCoordinates?this.renderCoordinates[2]:0);if(this.mapRender=l,F.tileLayer("https://tile.openstreetmap.org/{z}/{x}/{y}.png",{attribution:'&copy; <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>'}).addTo(l),l.setZoom((h=this.configurationMap)==null?void 0:h.maxZoom),this.configurationMap.renderMarker){const P=F.marker([this.renderCoordinates?this.renderCoordinates[0]:0,this.renderCoordinates?this.renderCoordinates[1]:0],{icon:F.icon(s),draggable:this.configurationMap.dragMarker}).addTo(l);this.markerRender=P,this.getCoodMarker&&P.on("dragend",E=>{const D=E.target.getLatLng(),N=D.lat,b=D.lng;this.getCoodMarker&&this.getCoodMarker(N,b)})}const c=F.featureGroup();this.featuresData=c;const d=c.addTo(l);let n={featureGroup:d,edit:!1,remove:(f=this.configurationMap)==null?void 0:f.editFigures.remove};(m=this.configurationMap)!=null&&m.editFigures.edit&&(n={featureGroup:d,...(_=this.configurationMap)==null?void 0:_.editFigures.edit,remove:(v=this.configurationMap)==null?void 0:v.editFigures.remove});const r=new F.Control.Draw({position:"topleft",draw:{polygon:(w=this.configurationMap)==null?void 0:w.createFigures.polygon,circle:!1,rectangle:(T=this.configurationMap)!=null&&T.createFigures.rectangle?{shapeOptions:{color:"blue"}}:!1,marker:(z=this.configurationMap)!=null&&z.createFigures.marker?{icon:F.icon(s)}:!1,polyline:!1,circlemarker:!1},edit:n});l.addControl(r),l.on("draw:created",P=>{const E=P.layer;d.addLayer(E);const D=E.toGeoJSON();this.getGeoJSON&&this.getGeoJSON([D])}),l.on("draw:edited",P=>{P.layers.eachLayer(D=>{const N=D.toGeoJSON();this.getGeoJSON&&this.getGeoJSON([N])})})},viewMap(){var f,m,_,v,w,T,z,P;const s=this.configurationMap?this.configurationMap.iconMarker?this.configurationMap.iconMarker:this.markerIcon:this.markerIcon;window.type=!0;const l=F.map(this.idMap).setView([this.renderCoordinates?this.renderCoordinates[0]:0,this.renderCoordinates?this.renderCoordinates[1]:0],this.renderCoordinates?this.renderCoordinates[2]:0);this.mapRender=l,F.tileLayer("https://tile.openstreetmap.org/{z}/{x}/{y}.png",{attribution:'&copy; <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>'}).addTo(l),l.setZoom((f=this.configurationMap)==null?void 0:f.maxZoom);const c=F.featureGroup();this.featuresData=c;const d=c.addTo(l);let n={featureGroup:d,edit:!1,remove:(m=this.configurationMap)==null?void 0:m.editFigures.remove};(_=this.configurationMap)!=null&&_.editFigures.edit&&(n={featureGroup:d,...(v=this.configurationMap)==null?void 0:v.editFigures.edit,remove:(w=this.configurationMap)==null?void 0:w.editFigures.remove});const r=this.renderGeojson;if(r&&r.length){r.forEach(D=>{D.type==="FeatureCollection"?D.features.forEach(N=>{(N.geometry.type==="Polygon"||N.geometry.type==="MultiPolygon")&&F.geoJson(N,{onEachFeature:function(b,M){d.addLayer(M)}})}):D.type==="Feature"&&(D.geometry.type==="Polygon"||D.geometry.type==="MultiPolygon")&&F.geoJson(D,{onEachFeature:function(N,b){d.addLayer(b)}})});const E=d.getBounds();l.fitBounds(E)}const h=new F.Control.Draw({position:"topleft",draw:{polygon:(T=this.configurationMap)==null?void 0:T.createFigures.polygon,circle:!1,rectangle:(z=this.configurationMap)!=null&&z.createFigures.rectangle?{shapeOptions:{color:"blue"}}:!1,marker:(P=this.configurationMap)!=null&&P.createFigures.marker?{icon:F.icon(s)}:!1,polyline:!1,circlemarker:!1},edit:n});l.addControl(h),l.on("draw:created",E=>{const D=E.layer;d.addLayer(D);const N=D.toGeoJSON();this.getGeoJSON&&this.getGeoJSON(N)}),l.on("draw:edited",E=>{E.layers.eachLayer(N=>{const b=N.toGeoJSON();this.getGeoJSON&&this.getGeoJSON(b)})})}},watch:{coordinatesMap(s){if(this.renderCoordinates=s,this.mapRender&&this.markerRender){const l=F.latLng([s[0],s[1]]);this.mapRender.setView([s[0],s[1]],s[2]),this.markerRender.setLatLng(l)}},dataPolygon(s,l){this.renderGeojson=s}}}),Zr=["id"];function Hr(s,l,c,d,n,r){var h;return $.openBlock(),$.createElementBlock("div",{class:"map-container",style:$.normalizeStyle(`height:${(h=s.configurationMap)==null?void 0:h.height}`)},[$.createElementVNode("div",{id:s.idMap,style:{height:"100%"}},null,8,Zr)],4)}const Fr=sn(Nr,[["render",Hr]]);function ln(s,l){return function(){return s.apply(l,arguments)}}const{toString:Ur}=Object.prototype,{getPrototypeOf:ri}=Object,xe=(s=>l=>{const c=Ur.call(l);return s[c]||(s[c]=c.slice(8,-1).toLowerCase())})(Object.create(null)),yt=s=>(s=s.toLowerCase(),l=>xe(l)===s),Pe=s=>l=>typeof l===s,{isArray:qt}=Array,ie=Pe("undefined");function jr(s){return s!==null&&!ie(s)&&s.constructor!==null&&!ie(s.constructor)&&ft(s.constructor.isBuffer)&&s.constructor.isBuffer(s)}const hn=yt("ArrayBuffer");function Gr(s){let l;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?l=ArrayBuffer.isView(s):l=s&&s.buffer&&hn(s.buffer),l}const qr=Pe("string"),ft=Pe("function"),cn=Pe("number"),Ee=s=>s!==null&&typeof s=="object",Wr=s=>s===!0||s===!1,Te=s=>{if(xe(s)!=="object")return!1;const l=ri(s);return(l===null||l===Object.prototype||Object.getPrototypeOf(l)===null)&&!(Symbol.toStringTag in s)&&!(Symbol.iterator in s)},Kr=yt("Date"),Vr=yt("File"),Jr=yt("Blob"),Yr=yt("FileList"),Xr=s=>Ee(s)&&ft(s.pipe),$r=s=>{let l;return s&&(typeof FormData=="function"&&s instanceof FormData||ft(s.append)&&((l=xe(s))==="formdata"||l==="object"&&ft(s.toString)&&s.toString()==="[object FormData]"))},Qr=yt("URLSearchParams"),ts=s=>s.trim?s.trim():s.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ne(s,l,{allOwnKeys:c=!1}={}){if(s===null||typeof s>"u")return;let d,n;if(typeof s!="object"&&(s=[s]),qt(s))for(d=0,n=s.length;d<n;d++)l.call(null,s[d],d,s);else{const r=c?Object.getOwnPropertyNames(s):Object.keys(s),h=r.length;let f;for(d=0;d<h;d++)f=r[d],l.call(null,s[f],f,s)}}function un(s,l){l=l.toLowerCase();const c=Object.keys(s);let d=c.length,n;for(;d-- >0;)if(n=c[d],l===n.toLowerCase())return n;return null}const dn=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),fn=s=>!ie(s)&&s!==dn;function si(){const{caseless:s}=fn(this)&&this||{},l={},c=(d,n)=>{const r=s&&un(l,n)||n;Te(l[r])&&Te(d)?l[r]=si(l[r],d):Te(d)?l[r]=si({},d):qt(d)?l[r]=d.slice():l[r]=d};for(let d=0,n=arguments.length;d<n;d++)arguments[d]&&ne(arguments[d],c);return l}const es=(s,l,c,{allOwnKeys:d}={})=>(ne(l,(n,r)=>{c&&ft(n)?s[r]=ln(n,c):s[r]=n},{allOwnKeys:d}),s),is=s=>(s.charCodeAt(0)===65279&&(s=s.slice(1)),s),ns=(s,l,c,d)=>{s.prototype=Object.create(l.prototype,d),s.prototype.constructor=s,Object.defineProperty(s,"super",{value:l.prototype}),c&&Object.assign(s.prototype,c)},os=(s,l,c,d)=>{let n,r,h;const f={};if(l=l||{},s==null)return l;do{for(n=Object.getOwnPropertyNames(s),r=n.length;r-- >0;)h=n[r],(!d||d(h,s,l))&&!f[h]&&(l[h]=s[h],f[h]=!0);s=c!==!1&&ri(s)}while(s&&(!c||c(s,l))&&s!==Object.prototype);return l},rs=(s,l,c)=>{s=String(s),(c===void 0||c>s.length)&&(c=s.length),c-=l.length;const d=s.indexOf(l,c);return d!==-1&&d===c},ss=s=>{if(!s)return null;if(qt(s))return s;let l=s.length;if(!cn(l))return null;const c=new Array(l);for(;l-- >0;)c[l]=s[l];return c},as=(s=>l=>s&&l instanceof s)(typeof Uint8Array<"u"&&ri(Uint8Array)),ls=(s,l)=>{const d=(s&&s[Symbol.iterator]).call(s);let n;for(;(n=d.next())&&!n.done;){const r=n.value;l.call(s,r[0],r[1])}},hs=(s,l)=>{let c;const d=[];for(;(c=s.exec(l))!==null;)d.push(c);return d},cs=yt("HTMLFormElement"),us=s=>s.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(c,d,n){return d.toUpperCase()+n}),pn=(({hasOwnProperty:s})=>(l,c)=>s.call(l,c))(Object.prototype),ds=yt("RegExp"),_n=(s,l)=>{const c=Object.getOwnPropertyDescriptors(s),d={};ne(c,(n,r)=>{l(n,r,s)!==!1&&(d[r]=n)}),Object.defineProperties(s,d)},fs=s=>{_n(s,(l,c)=>{if(ft(s)&&["arguments","caller","callee"].indexOf(c)!==-1)return!1;const d=s[c];if(ft(d)){if(l.enumerable=!1,"writable"in l){l.writable=!1;return}l.set||(l.set=()=>{throw Error("Can not rewrite read-only method '"+c+"'")})}})},ps=(s,l)=>{const c={},d=n=>{n.forEach(r=>{c[r]=!0})};return qt(s)?d(s):d(String(s).split(l)),c},_s=()=>{},ms=(s,l)=>(s=+s,Number.isFinite(s)?s:l),ai="abcdefghijklmnopqrstuvwxyz",mn="0123456789",gn={DIGIT:mn,ALPHA:ai,ALPHA_DIGIT:ai+ai.toUpperCase()+mn},gs=(s=16,l=gn.ALPHA_DIGIT)=>{let c="";const{length:d}=l;for(;s--;)c+=l[Math.random()*d|0];return c};function vs(s){return!!(s&&ft(s.append)&&s[Symbol.toStringTag]==="FormData"&&s[Symbol.iterator])}const ys=s=>{const l=new Array(10),c=(d,n)=>{if(Ee(d)){if(l.indexOf(d)>=0)return;if(!("toJSON"in d)){l[n]=d;const r=qt(d)?[]:{};return ne(d,(h,f)=>{const m=c(h,n+1);!ie(m)&&(r[f]=m)}),l[n]=void 0,r}}return d};return c(s,0)},Ls=yt("AsyncFunction"),k={isArray:qt,isArrayBuffer:hn,isBuffer:jr,isFormData:$r,isArrayBufferView:Gr,isString:qr,isNumber:cn,isBoolean:Wr,isObject:Ee,isPlainObject:Te,isUndefined:ie,isDate:Kr,isFile:Vr,isBlob:Jr,isRegExp:ds,isFunction:ft,isStream:Xr,isURLSearchParams:Qr,isTypedArray:as,isFileList:Yr,forEach:ne,merge:si,extend:es,trim:ts,stripBOM:is,inherits:ns,toFlatObject:os,kindOf:xe,kindOfTest:yt,endsWith:rs,toArray:ss,forEachEntry:ls,matchAll:hs,isHTMLForm:cs,hasOwnProperty:pn,hasOwnProp:pn,reduceDescriptors:_n,freezeMethods:fs,toObjectSet:ps,toCamelCase:us,noop:_s,toFiniteNumber:ms,findKey:un,global:dn,isContextDefined:fn,ALPHABET:gn,generateString:gs,isSpecCompliantForm:vs,toJSONObject:ys,isAsyncFn:Ls,isThenable:s=>s&&(Ee(s)||ft(s))&&ft(s.then)&&ft(s.catch)};function G(s,l,c,d,n){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=s,this.name="AxiosError",l&&(this.code=l),c&&(this.config=c),d&&(this.request=d),n&&(this.response=n)}k.inherits(G,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:k.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const vn=G.prototype,yn={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(s=>{yn[s]={value:s}}),Object.defineProperties(G,yn),Object.defineProperty(vn,"isAxiosError",{value:!0}),G.from=(s,l,c,d,n,r)=>{const h=Object.create(vn);return k.toFlatObject(s,h,function(m){return m!==Error.prototype},f=>f!=="isAxiosError"),G.call(h,s.message,l,c,d,n),h.cause=s,h.name=s.name,r&&Object.assign(h,r),h};const ws=null;function li(s){return k.isPlainObject(s)||k.isArray(s)}function Ln(s){return k.endsWith(s,"[]")?s.slice(0,-2):s}function wn(s,l,c){return s?s.concat(l).map(function(n,r){return n=Ln(n),!c&&r?"["+n+"]":n}).join(c?".":""):l}function ks(s){return k.isArray(s)&&!s.some(li)}const bs=k.toFlatObject(k,{},null,function(l){return/^is[A-Z]/.test(l)});function Me(s,l,c){if(!k.isObject(s))throw new TypeError("target must be an object");l=l||new FormData,c=k.toFlatObject(c,{metaTokens:!0,dots:!1,indexes:!1},!1,function(E,D){return!k.isUndefined(D[E])});const d=c.metaTokens,n=c.visitor||v,r=c.dots,h=c.indexes,m=(c.Blob||typeof Blob<"u"&&Blob)&&k.isSpecCompliantForm(l);if(!k.isFunction(n))throw new TypeError("visitor must be a function");function _(P){if(P===null)return"";if(k.isDate(P))return P.toISOString();if(!m&&k.isBlob(P))throw new G("Blob is not supported. Use a Buffer instead.");return k.isArrayBuffer(P)||k.isTypedArray(P)?m&&typeof Blob=="function"?new Blob([P]):Buffer.from(P):P}function v(P,E,D){let N=P;if(P&&!D&&typeof P=="object"){if(k.endsWith(E,"{}"))E=d?E:E.slice(0,-2),P=JSON.stringify(P);else if(k.isArray(P)&&ks(P)||(k.isFileList(P)||k.endsWith(E,"[]"))&&(N=k.toArray(P)))return E=Ln(E),N.forEach(function(M,Z){!(k.isUndefined(M)||M===null)&&l.append(h===!0?wn([E],Z,r):h===null?E:E+"[]",_(M))}),!1}return li(P)?!0:(l.append(wn(D,E,r),_(P)),!1)}const w=[],T=Object.assign(bs,{defaultVisitor:v,convertValue:_,isVisitable:li});function z(P,E){if(!k.isUndefined(P)){if(w.indexOf(P)!==-1)throw Error("Circular reference detected in "+E.join("."));w.push(P),k.forEach(P,function(N,b){(!(k.isUndefined(N)||N===null)&&n.call(l,N,k.isString(b)?b.trim():b,E,T))===!0&&z(N,E?E.concat(b):[b])}),w.pop()}}if(!k.isObject(s))throw new TypeError("data must be an object");return z(s),l}function kn(s){const l={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(s).replace(/[!'()~]|%20|%00/g,function(d){return l[d]})}function hi(s,l){this._pairs=[],s&&Me(s,this,l)}const bn=hi.prototype;bn.append=function(l,c){this._pairs.push([l,c])},bn.toString=function(l){const c=l?function(d){return l.call(this,d,kn)}:kn;return this._pairs.map(function(n){return c(n[0])+"="+c(n[1])},"").join("&")};function xs(s){return encodeURIComponent(s).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function xn(s,l,c){if(!l)return s;const d=c&&c.encode||xs,n=c&&c.serialize;let r;if(n?r=n(l,c):r=k.isURLSearchParams(l)?l.toString():new hi(l,c).toString(d),r){const h=s.indexOf("#");h!==-1&&(s=s.slice(0,h)),s+=(s.indexOf("?")===-1?"?":"&")+r}return s}class Ps{constructor(){this.handlers=[]}use(l,c,d){return this.handlers.push({fulfilled:l,rejected:c,synchronous:d?d.synchronous:!1,runWhen:d?d.runWhen:null}),this.handlers.length-1}eject(l){this.handlers[l]&&(this.handlers[l]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(l){k.forEach(this.handlers,function(d){d!==null&&l(d)})}}const Pn=Ps,En={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Es=typeof URLSearchParams<"u"?URLSearchParams:hi,Ts=typeof FormData<"u"?FormData:null,Ms=typeof Blob<"u"?Blob:null,Cs=(()=>{let s;return typeof navigator<"u"&&((s=navigator.product)==="ReactNative"||s==="NativeScript"||s==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),zs=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),Lt={isBrowser:!0,classes:{URLSearchParams:Es,FormData:Ts,Blob:Ms},isStandardBrowserEnv:Cs,isStandardBrowserWebWorkerEnv:zs,protocols:["http","https","file","blob","url","data"]};function Ss(s,l){return Me(s,new Lt.classes.URLSearchParams,Object.assign({visitor:function(c,d,n,r){return Lt.isNode&&k.isBuffer(c)?(this.append(d,c.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},l))}function Ds(s){return k.matchAll(/\w+|\[(\w*)]/g,s).map(l=>l[0]==="[]"?"":l[1]||l[0])}function Os(s){const l={},c=Object.keys(s);let d;const n=c.length;let r;for(d=0;d<n;d++)r=c[d],l[r]=s[r];return l}function Tn(s){function l(c,d,n,r){let h=c[r++];const f=Number.isFinite(+h),m=r>=c.length;return h=!h&&k.isArray(n)?n.length:h,m?(k.hasOwnProp(n,h)?n[h]=[n[h],d]:n[h]=d,!f):((!n[h]||!k.isObject(n[h]))&&(n[h]=[]),l(c,d,n[h],r)&&k.isArray(n[h])&&(n[h]=Os(n[h])),!f)}if(k.isFormData(s)&&k.isFunction(s.entries)){const c={};return k.forEachEntry(s,(d,n)=>{l(Ds(d),n,c,0)}),c}return null}const As={"Content-Type":void 0};function Is(s,l,c){if(k.isString(s))try{return(l||JSON.parse)(s),k.trim(s)}catch(d){if(d.name!=="SyntaxError")throw d}return(c||JSON.stringify)(s)}const Ce={transitional:En,adapter:["xhr","http"],transformRequest:[function(l,c){const d=c.getContentType()||"",n=d.indexOf("application/json")>-1,r=k.isObject(l);if(r&&k.isHTMLForm(l)&&(l=new FormData(l)),k.isFormData(l))return n&&n?JSON.stringify(Tn(l)):l;if(k.isArrayBuffer(l)||k.isBuffer(l)||k.isStream(l)||k.isFile(l)||k.isBlob(l))return l;if(k.isArrayBufferView(l))return l.buffer;if(k.isURLSearchParams(l))return c.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),l.toString();let f;if(r){if(d.indexOf("application/x-www-form-urlencoded")>-1)return Ss(l,this.formSerializer).toString();if((f=k.isFileList(l))||d.indexOf("multipart/form-data")>-1){const m=this.env&&this.env.FormData;return Me(f?{"files[]":l}:l,m&&new m,this.formSerializer)}}return r||n?(c.setContentType("application/json",!1),Is(l)):l}],transformResponse:[function(l){const c=this.transitional||Ce.transitional,d=c&&c.forcedJSONParsing,n=this.responseType==="json";if(l&&k.isString(l)&&(d&&!this.responseType||n)){const h=!(c&&c.silentJSONParsing)&&n;try{return JSON.parse(l)}catch(f){if(h)throw f.name==="SyntaxError"?G.from(f,G.ERR_BAD_RESPONSE,this,null,this.response):f}}return l}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Lt.classes.FormData,Blob:Lt.classes.Blob},validateStatus:function(l){return l>=200&&l<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};k.forEach(["delete","get","head"],function(l){Ce.headers[l]={}}),k.forEach(["post","put","patch"],function(l){Ce.headers[l]=k.merge(As)});const ci=Ce,Rs=k.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Bs=s=>{const l={};let c,d,n;return s&&s.split(`
5
5
  `).forEach(function(h){n=h.indexOf(":"),c=h.substring(0,n).trim().toLowerCase(),d=h.substring(n+1).trim(),!(!c||l[c]&&Rs[c])&&(c==="set-cookie"?l[c]?l[c].push(d):l[c]=[d]:l[c]=l[c]?l[c]+", "+d:d)}),l},Mn=Symbol("internals");function oe(s){return s&&String(s).trim().toLowerCase()}function ze(s){return s===!1||s==null?s:k.isArray(s)?s.map(ze):String(s)}function Ns(s){const l=Object.create(null),c=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let d;for(;d=c.exec(s);)l[d[1]]=d[2];return l}const Zs=s=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(s.trim());function ui(s,l,c,d,n){if(k.isFunction(d))return d.call(this,l,c);if(n&&(l=c),!!k.isString(l)){if(k.isString(d))return l.indexOf(d)!==-1;if(k.isRegExp(d))return d.test(l)}}function Hs(s){return s.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(l,c,d)=>c.toUpperCase()+d)}function Fs(s,l){const c=k.toCamelCase(" "+l);["get","set","has"].forEach(d=>{Object.defineProperty(s,d+c,{value:function(n,r,h){return this[d].call(this,l,n,r,h)},configurable:!0})})}class Se{constructor(l){l&&this.set(l)}set(l,c,d){const n=this;function r(f,m,_){const v=oe(m);if(!v)throw new Error("header name must be a non-empty string");const w=k.findKey(n,v);(!w||n[w]===void 0||_===!0||_===void 0&&n[w]!==!1)&&(n[w||m]=ze(f))}const h=(f,m)=>k.forEach(f,(_,v)=>r(_,v,m));return k.isPlainObject(l)||l instanceof this.constructor?h(l,c):k.isString(l)&&(l=l.trim())&&!Zs(l)?h(Bs(l),c):l!=null&&r(c,l,d),this}get(l,c){if(l=oe(l),l){const d=k.findKey(this,l);if(d){const n=this[d];if(!c)return n;if(c===!0)return Ns(n);if(k.isFunction(c))return c.call(this,n,d);if(k.isRegExp(c))return c.exec(n);throw new TypeError("parser must be boolean|regexp|function")}}}has(l,c){if(l=oe(l),l){const d=k.findKey(this,l);return!!(d&&this[d]!==void 0&&(!c||ui(this,this[d],d,c)))}return!1}delete(l,c){const d=this;let n=!1;function r(h){if(h=oe(h),h){const f=k.findKey(d,h);f&&(!c||ui(d,d[f],f,c))&&(delete d[f],n=!0)}}return k.isArray(l)?l.forEach(r):r(l),n}clear(l){const c=Object.keys(this);let d=c.length,n=!1;for(;d--;){const r=c[d];(!l||ui(this,this[r],r,l,!0))&&(delete this[r],n=!0)}return n}normalize(l){const c=this,d={};return k.forEach(this,(n,r)=>{const h=k.findKey(d,r);if(h){c[h]=ze(n),delete c[r];return}const f=l?Hs(r):String(r).trim();f!==r&&delete c[r],c[f]=ze(n),d[f]=!0}),this}concat(...l){return this.constructor.concat(this,...l)}toJSON(l){const c=Object.create(null);return k.forEach(this,(d,n)=>{d!=null&&d!==!1&&(c[n]=l&&k.isArray(d)?d.join(", "):d)}),c}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([l,c])=>l+": "+c).join(`
6
- `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(l){return l instanceof this?l:new this(l)}static concat(l,...c){const d=new this(l);return c.forEach(n=>d.set(n)),d}static accessor(l){const d=(this[Mn]=this[Mn]={accessors:{}}).accessors,n=this.prototype;function r(h){const f=oe(h);d[f]||(Fs(n,h),d[f]=!0)}return k.isArray(l)?l.forEach(r):r(l),this}}Se.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),k.freezeMethods(Se.prototype),k.freezeMethods(Se);const Pt=Se;function di(s,l){const c=this||ci,d=l||c,n=Pt.from(d.headers);let r=d.data;return k.forEach(s,function(f){r=f.call(c,r,n.normalize(),l?l.status:void 0)}),n.normalize(),r}function Cn(s){return!!(s&&s.__CANCEL__)}function re(s,l,c){G.call(this,s??"canceled",G.ERR_CANCELED,l,c),this.name="CanceledError"}k.inherits(re,G,{__CANCEL__:!0});function Us(s,l,c){const d=c.config.validateStatus;!c.status||!d||d(c.status)?s(c):l(new G("Request failed with status code "+c.status,[G.ERR_BAD_REQUEST,G.ERR_BAD_RESPONSE][Math.floor(c.status/100)-4],c.config,c.request,c))}const js=Lt.isStandardBrowserEnv?function(){return{write:function(c,d,n,r,h,f){const m=[];m.push(c+"="+encodeURIComponent(d)),k.isNumber(n)&&m.push("expires="+new Date(n).toGMTString()),k.isString(r)&&m.push("path="+r),k.isString(h)&&m.push("domain="+h),f===!0&&m.push("secure"),document.cookie=m.join("; ")},read:function(c){const d=document.cookie.match(new RegExp("(^|;\\s*)("+c+")=([^;]*)"));return d?decodeURIComponent(d[3]):null},remove:function(c){this.write(c,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function Gs(s){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(s)}function qs(s,l){return l?s.replace(/\/+$/,"")+"/"+l.replace(/^\/+/,""):s}function zn(s,l){return s&&!Gs(l)?qs(s,l):l}const Ws=Lt.isStandardBrowserEnv?function(){const l=/(msie|trident)/i.test(navigator.userAgent),c=document.createElement("a");let d;function n(r){let h=r;return l&&(c.setAttribute("href",h),h=c.href),c.setAttribute("href",h),{href:c.href,protocol:c.protocol?c.protocol.replace(/:$/,""):"",host:c.host,search:c.search?c.search.replace(/^\?/,""):"",hash:c.hash?c.hash.replace(/^#/,""):"",hostname:c.hostname,port:c.port,pathname:c.pathname.charAt(0)==="/"?c.pathname:"/"+c.pathname}}return d=n(window.location.href),function(h){const f=k.isString(h)?n(h):h;return f.protocol===d.protocol&&f.host===d.host}}():function(){return function(){return!0}}();function Ks(s){const l=/^([-+\w]{1,25})(:?\/\/|:)/.exec(s);return l&&l[1]||""}function Vs(s,l){s=s||10;const c=new Array(s),d=new Array(s);let n=0,r=0,h;return l=l!==void 0?l:1e3,function(m){const _=Date.now(),v=d[r];h||(h=_),c[n]=m,d[n]=_;let w=r,E=0;for(;w!==n;)E+=c[w++],w=w%s;if(n=(n+1)%s,n===r&&(r=(r+1)%s),_-h<l)return;const z=v&&_-v;return z?Math.round(E*1e3/z):void 0}}function Sn(s,l){let c=0;const d=Vs(50,250);return n=>{const r=n.loaded,h=n.lengthComputable?n.total:void 0,f=r-c,m=d(f),_=r<=h;c=r;const v={loaded:r,total:h,progress:h?r/h:void 0,bytes:f,rate:m||void 0,estimated:m&&h&&_?(h-r)/m:void 0,event:n};v[l?"download":"upload"]=!0,s(v)}}const De={http:ws,xhr:typeof XMLHttpRequest<"u"&&function(s){return new Promise(function(c,d){let n=s.data;const r=Pt.from(s.headers).normalize(),h=s.responseType;let f;function m(){s.cancelToken&&s.cancelToken.unsubscribe(f),s.signal&&s.signal.removeEventListener("abort",f)}k.isFormData(n)&&(Lt.isStandardBrowserEnv||Lt.isStandardBrowserWebWorkerEnv?r.setContentType(!1):r.setContentType("multipart/form-data;",!1));let _=new XMLHttpRequest;if(s.auth){const z=s.auth.username||"",P=s.auth.password?unescape(encodeURIComponent(s.auth.password)):"";r.set("Authorization","Basic "+btoa(z+":"+P))}const v=zn(s.baseURL,s.url);_.open(s.method.toUpperCase(),xn(v,s.params,s.paramsSerializer),!0),_.timeout=s.timeout;function w(){if(!_)return;const z=Pt.from("getAllResponseHeaders"in _&&_.getAllResponseHeaders()),T={data:!h||h==="text"||h==="json"?_.responseText:_.response,status:_.status,statusText:_.statusText,headers:z,config:s,request:_};Us(function(N){c(N),m()},function(N){d(N),m()},T),_=null}if("onloadend"in _?_.onloadend=w:_.onreadystatechange=function(){!_||_.readyState!==4||_.status===0&&!(_.responseURL&&_.responseURL.indexOf("file:")===0)||setTimeout(w)},_.onabort=function(){_&&(d(new G("Request aborted",G.ECONNABORTED,s,_)),_=null)},_.onerror=function(){d(new G("Network Error",G.ERR_NETWORK,s,_)),_=null},_.ontimeout=function(){let P=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const T=s.transitional||Tn;s.timeoutErrorMessage&&(P=s.timeoutErrorMessage),d(new G(P,T.clarifyTimeoutError?G.ETIMEDOUT:G.ECONNABORTED,s,_)),_=null},Lt.isStandardBrowserEnv){const z=(s.withCredentials||Ws(v))&&s.xsrfCookieName&&js.read(s.xsrfCookieName);z&&r.set(s.xsrfHeaderName,z)}n===void 0&&r.setContentType(null),"setRequestHeader"in _&&k.forEach(r.toJSON(),function(P,T){_.setRequestHeader(T,P)}),k.isUndefined(s.withCredentials)||(_.withCredentials=!!s.withCredentials),h&&h!=="json"&&(_.responseType=s.responseType),typeof s.onDownloadProgress=="function"&&_.addEventListener("progress",Sn(s.onDownloadProgress,!0)),typeof s.onUploadProgress=="function"&&_.upload&&_.upload.addEventListener("progress",Sn(s.onUploadProgress)),(s.cancelToken||s.signal)&&(f=z=>{_&&(d(!z||z.type?new re(null,s,_):z),_.abort(),_=null)},s.cancelToken&&s.cancelToken.subscribe(f),s.signal&&(s.signal.aborted?f():s.signal.addEventListener("abort",f)));const E=Ks(v);if(E&&Lt.protocols.indexOf(E)===-1){d(new G("Unsupported protocol "+E+":",G.ERR_BAD_REQUEST,s));return}_.send(n||null)})}};k.forEach(De,(s,l)=>{if(s){try{Object.defineProperty(s,"name",{value:l})}catch{}Object.defineProperty(s,"adapterName",{value:l})}});const Js={getAdapter:s=>{s=k.isArray(s)?s:[s];const{length:l}=s;let c,d;for(let n=0;n<l&&(c=s[n],!(d=k.isString(c)?De[c.toLowerCase()]:c));n++);if(!d)throw d===!1?new G(`Adapter ${c} is not supported by the environment`,"ERR_NOT_SUPPORT"):new Error(k.hasOwnProp(De,c)?`Adapter '${c}' is not available in the build`:`Unknown adapter '${c}'`);if(!k.isFunction(d))throw new TypeError("adapter is not a function");return d},adapters:De};function fi(s){if(s.cancelToken&&s.cancelToken.throwIfRequested(),s.signal&&s.signal.aborted)throw new re(null,s)}function Dn(s){return fi(s),s.headers=Pt.from(s.headers),s.data=di.call(s,s.transformRequest),["post","put","patch"].indexOf(s.method)!==-1&&s.headers.setContentType("application/x-www-form-urlencoded",!1),Js.getAdapter(s.adapter||ci.adapter)(s).then(function(d){return fi(s),d.data=di.call(s,s.transformResponse,d),d.headers=Pt.from(d.headers),d},function(d){return Cn(d)||(fi(s),d&&d.response&&(d.response.data=di.call(s,s.transformResponse,d.response),d.response.headers=Pt.from(d.response.headers))),Promise.reject(d)})}const On=s=>s instanceof Pt?s.toJSON():s;function Wt(s,l){l=l||{};const c={};function d(_,v,w){return k.isPlainObject(_)&&k.isPlainObject(v)?k.merge.call({caseless:w},_,v):k.isPlainObject(v)?k.merge({},v):k.isArray(v)?v.slice():v}function n(_,v,w){if(k.isUndefined(v)){if(!k.isUndefined(_))return d(void 0,_,w)}else return d(_,v,w)}function r(_,v){if(!k.isUndefined(v))return d(void 0,v)}function h(_,v){if(k.isUndefined(v)){if(!k.isUndefined(_))return d(void 0,_)}else return d(void 0,v)}function f(_,v,w){if(w in l)return d(_,v);if(w in s)return d(void 0,_)}const m={url:r,method:r,data:r,baseURL:h,transformRequest:h,transformResponse:h,paramsSerializer:h,timeout:h,timeoutMessage:h,withCredentials:h,adapter:h,responseType:h,xsrfCookieName:h,xsrfHeaderName:h,onUploadProgress:h,onDownloadProgress:h,decompress:h,maxContentLength:h,maxBodyLength:h,beforeRedirect:h,transport:h,httpAgent:h,httpsAgent:h,cancelToken:h,socketPath:h,responseEncoding:h,validateStatus:f,headers:(_,v)=>n(On(_),On(v),!0)};return k.forEach(Object.keys(Object.assign({},s,l)),function(v){const w=m[v]||n,E=w(s[v],l[v],v);k.isUndefined(E)&&w!==f||(c[v]=E)}),c}const An="1.4.0",pi={};["object","boolean","number","function","string","symbol"].forEach((s,l)=>{pi[s]=function(d){return typeof d===s||"a"+(l<1?"n ":" ")+s}});const In={};pi.transitional=function(l,c,d){function n(r,h){return"[Axios v"+An+"] Transitional option '"+r+"'"+h+(d?". "+d:"")}return(r,h,f)=>{if(l===!1)throw new G(n(h," has been removed"+(c?" in "+c:"")),G.ERR_DEPRECATED);return c&&!In[h]&&(In[h]=!0,console.warn(n(h," has been deprecated since v"+c+" and will be removed in the near future"))),l?l(r,h,f):!0}};function Ys(s,l,c){if(typeof s!="object")throw new G("options must be an object",G.ERR_BAD_OPTION_VALUE);const d=Object.keys(s);let n=d.length;for(;n-- >0;){const r=d[n],h=l[r];if(h){const f=s[r],m=f===void 0||h(f,r,s);if(m!==!0)throw new G("option "+r+" must be "+m,G.ERR_BAD_OPTION_VALUE);continue}if(c!==!0)throw new G("Unknown option "+r,G.ERR_BAD_OPTION)}}const _i={assertOptions:Ys,validators:pi},Dt=_i.validators;class Oe{constructor(l){this.defaults=l,this.interceptors={request:new Pn,response:new Pn}}request(l,c){typeof l=="string"?(c=c||{},c.url=l):c=l||{},c=Wt(this.defaults,c);const{transitional:d,paramsSerializer:n,headers:r}=c;d!==void 0&&_i.assertOptions(d,{silentJSONParsing:Dt.transitional(Dt.boolean),forcedJSONParsing:Dt.transitional(Dt.boolean),clarifyTimeoutError:Dt.transitional(Dt.boolean)},!1),n!=null&&(k.isFunction(n)?c.paramsSerializer={serialize:n}:_i.assertOptions(n,{encode:Dt.function,serialize:Dt.function},!0)),c.method=(c.method||this.defaults.method||"get").toLowerCase();let h;h=r&&k.merge(r.common,r[c.method]),h&&k.forEach(["delete","get","head","post","put","patch","common"],P=>{delete r[P]}),c.headers=Pt.concat(h,r);const f=[];let m=!0;this.interceptors.request.forEach(function(T){typeof T.runWhen=="function"&&T.runWhen(c)===!1||(m=m&&T.synchronous,f.unshift(T.fulfilled,T.rejected))});const _=[];this.interceptors.response.forEach(function(T){_.push(T.fulfilled,T.rejected)});let v,w=0,E;if(!m){const P=[Dn.bind(this),void 0];for(P.unshift.apply(P,f),P.push.apply(P,_),E=P.length,v=Promise.resolve(c);w<E;)v=v.then(P[w++],P[w++]);return v}E=f.length;let z=c;for(w=0;w<E;){const P=f[w++],T=f[w++];try{z=P(z)}catch(D){T.call(this,D);break}}try{v=Dn.call(this,z)}catch(P){return Promise.reject(P)}for(w=0,E=_.length;w<E;)v=v.then(_[w++],_[w++]);return v}getUri(l){l=Wt(this.defaults,l);const c=zn(l.baseURL,l.url);return xn(c,l.params,l.paramsSerializer)}}k.forEach(["delete","get","head","options"],function(l){Oe.prototype[l]=function(c,d){return this.request(Wt(d||{},{method:l,url:c,data:(d||{}).data}))}}),k.forEach(["post","put","patch"],function(l){function c(d){return function(r,h,f){return this.request(Wt(f||{},{method:l,headers:d?{"Content-Type":"multipart/form-data"}:{},url:r,data:h}))}}Oe.prototype[l]=c(),Oe.prototype[l+"Form"]=c(!0)});const Ae=Oe;class mi{constructor(l){if(typeof l!="function")throw new TypeError("executor must be a function.");let c;this.promise=new Promise(function(r){c=r});const d=this;this.promise.then(n=>{if(!d._listeners)return;let r=d._listeners.length;for(;r-- >0;)d._listeners[r](n);d._listeners=null}),this.promise.then=n=>{let r;const h=new Promise(f=>{d.subscribe(f),r=f}).then(n);return h.cancel=function(){d.unsubscribe(r)},h},l(function(r,h,f){d.reason||(d.reason=new re(r,h,f),c(d.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(l){if(this.reason){l(this.reason);return}this._listeners?this._listeners.push(l):this._listeners=[l]}unsubscribe(l){if(!this._listeners)return;const c=this._listeners.indexOf(l);c!==-1&&this._listeners.splice(c,1)}static source(){let l;return{token:new mi(function(n){l=n}),cancel:l}}}const Xs=mi;function $s(s){return function(c){return s.apply(null,c)}}function Qs(s){return k.isObject(s)&&s.isAxiosError===!0}const gi={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(gi).forEach(([s,l])=>{gi[l]=s});const ta=gi;function Rn(s){const l=new Ae(s),c=ln(Ae.prototype.request,l);return k.extend(c,Ae.prototype,l,{allOwnKeys:!0}),k.extend(c,l,null,{allOwnKeys:!0}),c.create=function(n){return Rn(Wt(s,n))},c}const it=Rn(ci);it.Axios=Ae,it.CanceledError=re,it.CancelToken=Xs,it.isCancel=Cn,it.VERSION=An,it.toFormData=Me,it.AxiosError=G,it.Cancel=it.CanceledError,it.all=function(l){return Promise.all(l)},it.spread=$s,it.isAxiosError=Qs,it.mergeConfig=Wt,it.AxiosHeaders=Pt,it.formToJSON=s=>En(k.isHTMLForm(s)?new FormData(s):s),it.HttpStatusCode=ta,it.default=it;const ea=it,ia=["id"],na=$.defineComponent({__name:"MapSearchAddress",props:{configurationMap:{default:()=>({height:"250px",maxZoom:20,iconMarker:{iconUrl:oi,iconSize:[25,41],iconAnchor:[12,41],class:"",type:"image"},dragMarker:!0})},coordinatesMap:{default:()=>({lat:-19.0429,lng:-65.2554,zoom:12})}},emits:["updated:coordsMarker"],setup(s,{expose:l,emit:c}){const d=s,n=$.ref(),r=$.ref(d.coordinatesMap),h=$.ref(),f=$.ref();$.onMounted(async()=>{await m(10),await _()});const m=async P=>{let T="";const D="abcdefghijklmnopqrstuvwxyz",N=D.length;let b=0;for(;b<P;)T+=D.charAt(Math.floor(Math.random()*N)),b+=1;n.value=T},_=async()=>{await v()},v=async()=>{var D,N;const P=(D=d.configurationMap)==null?void 0:D.iconMarker,T=F.map(n.value).setView([r.value.lat,r.value.lng],r.value.zoom);if(h.value=T,F.tileLayer("https://tile.openstreetmap.org/{z}/{x}/{y}.png",{maxZoom:(N=d.configurationMap)==null?void 0:N.maxZoom,attribution:'&copy; <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>'}).addTo(T),P.type==="image"){const b=F.marker([r.value.lat,r.value.lng],{icon:F.icon({iconUrl:P.iconUrl,iconAnchor:P.iconAnchor,iconSize:P.iconSize,className:P.class}),draggable:d.configurationMap.dragMarker}).addTo(T);f.value=b,b.on("dragend",M=>{const Z=M.target.getLatLng(),U=Z.lat,J=Z.lng;E({lat:U,lng:J})})}else if(P.type==="svg"){const b=F.marker([r.value.lat,r.value.lng],{icon:F.divIcon({html:P.iconUrl,iconAnchor:P.iconAnchor,iconSize:P.iconSize,className:P.class}),draggable:d.configurationMap.dragMarker}).addTo(T);f.value=b,b.on("dragend",M=>{const Z=M.target.getLatLng(),U=Z.lat,J=Z.lng;E({lat:U,lng:J})})}},w=async P=>{const T=await ea.get(location.protocol+"//nominatim.openstreetmap.org/search?",{params:{q:P,limit:1,format:"json"}});if(T.data.length===1){const D=parseFloat(T.data[0].lat),b={lng:parseFloat(T.data[0].lon),lat:D};return E({...b,moveMarker:!0}),T.data[0]}return T.data},E=({lat:P,lng:T,moveMarker:D=!1})=>{var N;c("updated:coordsMarker",{lat:P,lng:T}),D&&((N=f.value)==null||N.setLatLng({lat:P,lng:T})),z({lat:P,lng:T})},z=({lat:P,lng:T})=>{const D=F.latLng(P,T);h.value.panTo(D,{animate:!0,duration:.5})};return l({searchAddress:w}),(P,T)=>{var D;return $.openBlock(),$.createElementBlock("div",{class:"map-container",style:$.normalizeStyle(`height:${(D=s.configurationMap)==null?void 0:D.height}`)},[$.createElementVNode("div",{id:n.value,style:{height:"100%"}},null,8,ia)],4)}}});dt.CoordinatesVerifyPolygon=gr,dt.MapSearchAddress=na,dt.MapView=Fr,dt.listenServiceGoogleMaps=or,dt.searchAutomaticGoogleMaps=sr,dt.searchManualGoogleMaps=rr,Object.defineProperty(dt,Symbol.toStringTag,{value:"Module"})});
6
+ `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(l){return l instanceof this?l:new this(l)}static concat(l,...c){const d=new this(l);return c.forEach(n=>d.set(n)),d}static accessor(l){const d=(this[Mn]=this[Mn]={accessors:{}}).accessors,n=this.prototype;function r(h){const f=oe(h);d[f]||(Fs(n,h),d[f]=!0)}return k.isArray(l)?l.forEach(r):r(l),this}}Se.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),k.freezeMethods(Se.prototype),k.freezeMethods(Se);const Pt=Se;function di(s,l){const c=this||ci,d=l||c,n=Pt.from(d.headers);let r=d.data;return k.forEach(s,function(f){r=f.call(c,r,n.normalize(),l?l.status:void 0)}),n.normalize(),r}function Cn(s){return!!(s&&s.__CANCEL__)}function re(s,l,c){G.call(this,s??"canceled",G.ERR_CANCELED,l,c),this.name="CanceledError"}k.inherits(re,G,{__CANCEL__:!0});function Us(s,l,c){const d=c.config.validateStatus;!c.status||!d||d(c.status)?s(c):l(new G("Request failed with status code "+c.status,[G.ERR_BAD_REQUEST,G.ERR_BAD_RESPONSE][Math.floor(c.status/100)-4],c.config,c.request,c))}const js=Lt.isStandardBrowserEnv?function(){return{write:function(c,d,n,r,h,f){const m=[];m.push(c+"="+encodeURIComponent(d)),k.isNumber(n)&&m.push("expires="+new Date(n).toGMTString()),k.isString(r)&&m.push("path="+r),k.isString(h)&&m.push("domain="+h),f===!0&&m.push("secure"),document.cookie=m.join("; ")},read:function(c){const d=document.cookie.match(new RegExp("(^|;\\s*)("+c+")=([^;]*)"));return d?decodeURIComponent(d[3]):null},remove:function(c){this.write(c,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function Gs(s){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(s)}function qs(s,l){return l?s.replace(/\/+$/,"")+"/"+l.replace(/^\/+/,""):s}function zn(s,l){return s&&!Gs(l)?qs(s,l):l}const Ws=Lt.isStandardBrowserEnv?function(){const l=/(msie|trident)/i.test(navigator.userAgent),c=document.createElement("a");let d;function n(r){let h=r;return l&&(c.setAttribute("href",h),h=c.href),c.setAttribute("href",h),{href:c.href,protocol:c.protocol?c.protocol.replace(/:$/,""):"",host:c.host,search:c.search?c.search.replace(/^\?/,""):"",hash:c.hash?c.hash.replace(/^#/,""):"",hostname:c.hostname,port:c.port,pathname:c.pathname.charAt(0)==="/"?c.pathname:"/"+c.pathname}}return d=n(window.location.href),function(h){const f=k.isString(h)?n(h):h;return f.protocol===d.protocol&&f.host===d.host}}():function(){return function(){return!0}}();function Ks(s){const l=/^([-+\w]{1,25})(:?\/\/|:)/.exec(s);return l&&l[1]||""}function Vs(s,l){s=s||10;const c=new Array(s),d=new Array(s);let n=0,r=0,h;return l=l!==void 0?l:1e3,function(m){const _=Date.now(),v=d[r];h||(h=_),c[n]=m,d[n]=_;let w=r,T=0;for(;w!==n;)T+=c[w++],w=w%s;if(n=(n+1)%s,n===r&&(r=(r+1)%s),_-h<l)return;const z=v&&_-v;return z?Math.round(T*1e3/z):void 0}}function Sn(s,l){let c=0;const d=Vs(50,250);return n=>{const r=n.loaded,h=n.lengthComputable?n.total:void 0,f=r-c,m=d(f),_=r<=h;c=r;const v={loaded:r,total:h,progress:h?r/h:void 0,bytes:f,rate:m||void 0,estimated:m&&h&&_?(h-r)/m:void 0,event:n};v[l?"download":"upload"]=!0,s(v)}}const De={http:ws,xhr:typeof XMLHttpRequest<"u"&&function(s){return new Promise(function(c,d){let n=s.data;const r=Pt.from(s.headers).normalize(),h=s.responseType;let f;function m(){s.cancelToken&&s.cancelToken.unsubscribe(f),s.signal&&s.signal.removeEventListener("abort",f)}k.isFormData(n)&&(Lt.isStandardBrowserEnv||Lt.isStandardBrowserWebWorkerEnv?r.setContentType(!1):r.setContentType("multipart/form-data;",!1));let _=new XMLHttpRequest;if(s.auth){const z=s.auth.username||"",P=s.auth.password?unescape(encodeURIComponent(s.auth.password)):"";r.set("Authorization","Basic "+btoa(z+":"+P))}const v=zn(s.baseURL,s.url);_.open(s.method.toUpperCase(),xn(v,s.params,s.paramsSerializer),!0),_.timeout=s.timeout;function w(){if(!_)return;const z=Pt.from("getAllResponseHeaders"in _&&_.getAllResponseHeaders()),E={data:!h||h==="text"||h==="json"?_.responseText:_.response,status:_.status,statusText:_.statusText,headers:z,config:s,request:_};Us(function(N){c(N),m()},function(N){d(N),m()},E),_=null}if("onloadend"in _?_.onloadend=w:_.onreadystatechange=function(){!_||_.readyState!==4||_.status===0&&!(_.responseURL&&_.responseURL.indexOf("file:")===0)||setTimeout(w)},_.onabort=function(){_&&(d(new G("Request aborted",G.ECONNABORTED,s,_)),_=null)},_.onerror=function(){d(new G("Network Error",G.ERR_NETWORK,s,_)),_=null},_.ontimeout=function(){let P=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const E=s.transitional||En;s.timeoutErrorMessage&&(P=s.timeoutErrorMessage),d(new G(P,E.clarifyTimeoutError?G.ETIMEDOUT:G.ECONNABORTED,s,_)),_=null},Lt.isStandardBrowserEnv){const z=(s.withCredentials||Ws(v))&&s.xsrfCookieName&&js.read(s.xsrfCookieName);z&&r.set(s.xsrfHeaderName,z)}n===void 0&&r.setContentType(null),"setRequestHeader"in _&&k.forEach(r.toJSON(),function(P,E){_.setRequestHeader(E,P)}),k.isUndefined(s.withCredentials)||(_.withCredentials=!!s.withCredentials),h&&h!=="json"&&(_.responseType=s.responseType),typeof s.onDownloadProgress=="function"&&_.addEventListener("progress",Sn(s.onDownloadProgress,!0)),typeof s.onUploadProgress=="function"&&_.upload&&_.upload.addEventListener("progress",Sn(s.onUploadProgress)),(s.cancelToken||s.signal)&&(f=z=>{_&&(d(!z||z.type?new re(null,s,_):z),_.abort(),_=null)},s.cancelToken&&s.cancelToken.subscribe(f),s.signal&&(s.signal.aborted?f():s.signal.addEventListener("abort",f)));const T=Ks(v);if(T&&Lt.protocols.indexOf(T)===-1){d(new G("Unsupported protocol "+T+":",G.ERR_BAD_REQUEST,s));return}_.send(n||null)})}};k.forEach(De,(s,l)=>{if(s){try{Object.defineProperty(s,"name",{value:l})}catch{}Object.defineProperty(s,"adapterName",{value:l})}});const Js={getAdapter:s=>{s=k.isArray(s)?s:[s];const{length:l}=s;let c,d;for(let n=0;n<l&&(c=s[n],!(d=k.isString(c)?De[c.toLowerCase()]:c));n++);if(!d)throw d===!1?new G(`Adapter ${c} is not supported by the environment`,"ERR_NOT_SUPPORT"):new Error(k.hasOwnProp(De,c)?`Adapter '${c}' is not available in the build`:`Unknown adapter '${c}'`);if(!k.isFunction(d))throw new TypeError("adapter is not a function");return d},adapters:De};function fi(s){if(s.cancelToken&&s.cancelToken.throwIfRequested(),s.signal&&s.signal.aborted)throw new re(null,s)}function Dn(s){return fi(s),s.headers=Pt.from(s.headers),s.data=di.call(s,s.transformRequest),["post","put","patch"].indexOf(s.method)!==-1&&s.headers.setContentType("application/x-www-form-urlencoded",!1),Js.getAdapter(s.adapter||ci.adapter)(s).then(function(d){return fi(s),d.data=di.call(s,s.transformResponse,d),d.headers=Pt.from(d.headers),d},function(d){return Cn(d)||(fi(s),d&&d.response&&(d.response.data=di.call(s,s.transformResponse,d.response),d.response.headers=Pt.from(d.response.headers))),Promise.reject(d)})}const On=s=>s instanceof Pt?s.toJSON():s;function Wt(s,l){l=l||{};const c={};function d(_,v,w){return k.isPlainObject(_)&&k.isPlainObject(v)?k.merge.call({caseless:w},_,v):k.isPlainObject(v)?k.merge({},v):k.isArray(v)?v.slice():v}function n(_,v,w){if(k.isUndefined(v)){if(!k.isUndefined(_))return d(void 0,_,w)}else return d(_,v,w)}function r(_,v){if(!k.isUndefined(v))return d(void 0,v)}function h(_,v){if(k.isUndefined(v)){if(!k.isUndefined(_))return d(void 0,_)}else return d(void 0,v)}function f(_,v,w){if(w in l)return d(_,v);if(w in s)return d(void 0,_)}const m={url:r,method:r,data:r,baseURL:h,transformRequest:h,transformResponse:h,paramsSerializer:h,timeout:h,timeoutMessage:h,withCredentials:h,adapter:h,responseType:h,xsrfCookieName:h,xsrfHeaderName:h,onUploadProgress:h,onDownloadProgress:h,decompress:h,maxContentLength:h,maxBodyLength:h,beforeRedirect:h,transport:h,httpAgent:h,httpsAgent:h,cancelToken:h,socketPath:h,responseEncoding:h,validateStatus:f,headers:(_,v)=>n(On(_),On(v),!0)};return k.forEach(Object.keys(Object.assign({},s,l)),function(v){const w=m[v]||n,T=w(s[v],l[v],v);k.isUndefined(T)&&w!==f||(c[v]=T)}),c}const An="1.4.0",pi={};["object","boolean","number","function","string","symbol"].forEach((s,l)=>{pi[s]=function(d){return typeof d===s||"a"+(l<1?"n ":" ")+s}});const In={};pi.transitional=function(l,c,d){function n(r,h){return"[Axios v"+An+"] Transitional option '"+r+"'"+h+(d?". "+d:"")}return(r,h,f)=>{if(l===!1)throw new G(n(h," has been removed"+(c?" in "+c:"")),G.ERR_DEPRECATED);return c&&!In[h]&&(In[h]=!0,console.warn(n(h," has been deprecated since v"+c+" and will be removed in the near future"))),l?l(r,h,f):!0}};function Ys(s,l,c){if(typeof s!="object")throw new G("options must be an object",G.ERR_BAD_OPTION_VALUE);const d=Object.keys(s);let n=d.length;for(;n-- >0;){const r=d[n],h=l[r];if(h){const f=s[r],m=f===void 0||h(f,r,s);if(m!==!0)throw new G("option "+r+" must be "+m,G.ERR_BAD_OPTION_VALUE);continue}if(c!==!0)throw new G("Unknown option "+r,G.ERR_BAD_OPTION)}}const _i={assertOptions:Ys,validators:pi},Dt=_i.validators;class Oe{constructor(l){this.defaults=l,this.interceptors={request:new Pn,response:new Pn}}request(l,c){typeof l=="string"?(c=c||{},c.url=l):c=l||{},c=Wt(this.defaults,c);const{transitional:d,paramsSerializer:n,headers:r}=c;d!==void 0&&_i.assertOptions(d,{silentJSONParsing:Dt.transitional(Dt.boolean),forcedJSONParsing:Dt.transitional(Dt.boolean),clarifyTimeoutError:Dt.transitional(Dt.boolean)},!1),n!=null&&(k.isFunction(n)?c.paramsSerializer={serialize:n}:_i.assertOptions(n,{encode:Dt.function,serialize:Dt.function},!0)),c.method=(c.method||this.defaults.method||"get").toLowerCase();let h;h=r&&k.merge(r.common,r[c.method]),h&&k.forEach(["delete","get","head","post","put","patch","common"],P=>{delete r[P]}),c.headers=Pt.concat(h,r);const f=[];let m=!0;this.interceptors.request.forEach(function(E){typeof E.runWhen=="function"&&E.runWhen(c)===!1||(m=m&&E.synchronous,f.unshift(E.fulfilled,E.rejected))});const _=[];this.interceptors.response.forEach(function(E){_.push(E.fulfilled,E.rejected)});let v,w=0,T;if(!m){const P=[Dn.bind(this),void 0];for(P.unshift.apply(P,f),P.push.apply(P,_),T=P.length,v=Promise.resolve(c);w<T;)v=v.then(P[w++],P[w++]);return v}T=f.length;let z=c;for(w=0;w<T;){const P=f[w++],E=f[w++];try{z=P(z)}catch(D){E.call(this,D);break}}try{v=Dn.call(this,z)}catch(P){return Promise.reject(P)}for(w=0,T=_.length;w<T;)v=v.then(_[w++],_[w++]);return v}getUri(l){l=Wt(this.defaults,l);const c=zn(l.baseURL,l.url);return xn(c,l.params,l.paramsSerializer)}}k.forEach(["delete","get","head","options"],function(l){Oe.prototype[l]=function(c,d){return this.request(Wt(d||{},{method:l,url:c,data:(d||{}).data}))}}),k.forEach(["post","put","patch"],function(l){function c(d){return function(r,h,f){return this.request(Wt(f||{},{method:l,headers:d?{"Content-Type":"multipart/form-data"}:{},url:r,data:h}))}}Oe.prototype[l]=c(),Oe.prototype[l+"Form"]=c(!0)});const Ae=Oe;class mi{constructor(l){if(typeof l!="function")throw new TypeError("executor must be a function.");let c;this.promise=new Promise(function(r){c=r});const d=this;this.promise.then(n=>{if(!d._listeners)return;let r=d._listeners.length;for(;r-- >0;)d._listeners[r](n);d._listeners=null}),this.promise.then=n=>{let r;const h=new Promise(f=>{d.subscribe(f),r=f}).then(n);return h.cancel=function(){d.unsubscribe(r)},h},l(function(r,h,f){d.reason||(d.reason=new re(r,h,f),c(d.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(l){if(this.reason){l(this.reason);return}this._listeners?this._listeners.push(l):this._listeners=[l]}unsubscribe(l){if(!this._listeners)return;const c=this._listeners.indexOf(l);c!==-1&&this._listeners.splice(c,1)}static source(){let l;return{token:new mi(function(n){l=n}),cancel:l}}}const Xs=mi;function $s(s){return function(c){return s.apply(null,c)}}function Qs(s){return k.isObject(s)&&s.isAxiosError===!0}const gi={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(gi).forEach(([s,l])=>{gi[l]=s});const ta=gi;function Rn(s){const l=new Ae(s),c=ln(Ae.prototype.request,l);return k.extend(c,Ae.prototype,l,{allOwnKeys:!0}),k.extend(c,l,null,{allOwnKeys:!0}),c.create=function(n){return Rn(Wt(s,n))},c}const it=Rn(ci);it.Axios=Ae,it.CanceledError=re,it.CancelToken=Xs,it.isCancel=Cn,it.VERSION=An,it.toFormData=Me,it.AxiosError=G,it.Cancel=it.CanceledError,it.all=function(l){return Promise.all(l)},it.spread=$s,it.isAxiosError=Qs,it.mergeConfig=Wt,it.AxiosHeaders=Pt,it.formToJSON=s=>Tn(k.isHTMLForm(s)?new FormData(s):s),it.HttpStatusCode=ta,it.default=it;const ea=it,ia=["id"],na=$.defineComponent({__name:"MapSearchAddress",props:{configurationMap:{default:()=>({height:"250px",maxZoom:20,iconMarker:{iconUrl:oi,iconSize:[25,41],iconAnchor:[12,41],class:"",type:"image"},dragMarker:!0})},coordinatesMap:{default:()=>({lat:-19.0429,lng:-65.2554,zoom:12})}},emits:["updated:coordsMarker"],setup(s,{expose:l,emit:c}){const d=s,n=$.ref(),r=$.ref(d.coordinatesMap),h=$.ref(),f=$.ref();$.onMounted(async()=>{await m(10),await _()});const m=async P=>{let E="";const D="abcdefghijklmnopqrstuvwxyz",N=D.length;let b=0;for(;b<P;)E+=D.charAt(Math.floor(Math.random()*N)),b+=1;n.value=E},_=async()=>{await v()},v=async()=>{var D,N;const P=(D=d.configurationMap)==null?void 0:D.iconMarker,E=F.map(n.value).setView([r.value.lat,r.value.lng],r.value.zoom);if(h.value=E,F.tileLayer("https://tile.openstreetmap.org/{z}/{x}/{y}.png",{maxZoom:(N=d.configurationMap)==null?void 0:N.maxZoom,attribution:'&copy; <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>'}).addTo(E),P.type==="image"){const b=F.marker([r.value.lat,r.value.lng],{icon:F.icon({iconUrl:P.iconUrl,iconAnchor:P.iconAnchor,iconSize:P.iconSize,className:P.class}),draggable:d.configurationMap.dragMarker}).addTo(E);f.value=b,b.on("dragend",M=>{const Z=M.target.getLatLng(),U=Z.lat,J=Z.lng;T({lat:U,lng:J})})}else if(P.type==="svg"){const b=F.marker([r.value.lat,r.value.lng],{icon:F.divIcon({html:P.iconUrl,iconAnchor:P.iconAnchor,iconSize:P.iconSize,className:P.class}),draggable:d.configurationMap.dragMarker}).addTo(E);f.value=b,b.on("dragend",M=>{const Z=M.target.getLatLng(),U=Z.lat,J=Z.lng;T({lat:U,lng:J})})}},w=async P=>{const E=await ea.get(location.protocol+"//nominatim.openstreetmap.org/search?",{params:{q:P,limit:1,format:"json"}});if(E.data.length===1){const D=parseFloat(E.data[0].lat),b={lng:parseFloat(E.data[0].lon),lat:D};return T({...b,moveMarker:!0}),E.data[0]}return E.data},T=({lat:P,lng:E,moveMarker:D=!1})=>{var N;c("updated:coordsMarker",{lat:P,lng:E}),D&&((N=f.value)==null||N.setLatLng({lat:P,lng:E})),z({lat:P,lng:E})},z=({lat:P,lng:E})=>{const D=F.latLng(P,E);h.value.panTo(D,{animate:!0,duration:.5})};return l({searchAddress:w}),(P,E)=>{var D;return $.openBlock(),$.createElementBlock("div",{class:"map-container",style:$.normalizeStyle(`height:${(D=s.configurationMap)==null?void 0:D.height}`)},[$.createElementVNode("div",{id:n.value,style:{height:"100%"}},null,8,ia)],4)}}});dt.CoordinatesVerifyPolygon=gr,dt.MapSearchAddress=na,dt.MapView=Fr,dt.listenServiceGoogleMaps=or,dt.searchAutomaticGoogleMaps=sr,dt.searchManualGoogleMaps=rr,Object.defineProperty(dt,Symbol.toStringTag,{value:"Module"})});