@vsleem-realsee-viewer/realsee-plugin 2.0.30 → 2.0.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.mjs +3 -3
- package/dist/index.umd.js +2 -2
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -7128,7 +7128,7 @@ class d0 {
|
|
|
7128
7128
|
hFov: t.hFov ?? 90,
|
|
7129
7129
|
angle: t.angle ?? 0,
|
|
7130
7130
|
className: t.className ?? "leaflet-radar-marker"
|
|
7131
|
-
}, this.radarElement = this.createRadarElement(), this.marker = ki.marker(t.latLng, {
|
|
7131
|
+
}, this.radarElement = this.createRadarElement(), this.updateRadarStyle(), this.marker = ki.marker(t.latLng, {
|
|
7132
7132
|
icon: ki.divIcon({
|
|
7133
7133
|
className: this.options.className,
|
|
7134
7134
|
html: this.radarElement,
|
|
@@ -7143,7 +7143,7 @@ class d0 {
|
|
|
7143
7143
|
const t = document.createElement("div");
|
|
7144
7144
|
t.style.pointerEvents = "none", t.style.position = "relative";
|
|
7145
7145
|
const e = document.createElement("div");
|
|
7146
|
-
return e.style.transition = "all 0.3s ease", e.style.display = "block", t.appendChild(e),
|
|
7146
|
+
return e.style.transition = "all 0.3s ease", e.style.display = "block", t.appendChild(e), t;
|
|
7147
7147
|
}
|
|
7148
7148
|
updateRadarStyle() {
|
|
7149
7149
|
const t = this?.radarElement?.querySelector("div");
|
|
@@ -33932,7 +33932,7 @@ class _r {
|
|
|
33932
33932
|
*/
|
|
33933
33933
|
static parsedModel(t, e, s, r) {
|
|
33934
33934
|
const { x: a, y: l, z: h, lon: u, lat: d, alt: p, p: m, img: v, patroIndex: y, ...x } = t, w = Number(y) || 0, _ = { ...x, rawIndex: w, img: v, coordinate: e }, g = rn.toRadians(Number(m) || 0), P = new rn({ x: a, y: l, z: h, lon: u, lat: d, alt: p, yaw: g });
|
|
33935
|
-
return v && (_.panorama = h0(v, s, r)), (P.hasXYZ || P.
|
|
33935
|
+
return v && (_.panorama = h0(v, s, r)), (P.hasXYZ || P.hasGeo) && (_.point = P), _;
|
|
33936
33936
|
}
|
|
33937
33937
|
/**
|
|
33938
33938
|
* 计算点在球面坐标系中的位置(弧度)
|
package/dist/index.umd.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
(function(Ce,y){typeof exports=="object"&&typeof module<"u"?y(exports,require("vue"),require("@vsleem-realsee-viewer/shared")):typeof define=="function"&&define.amd?define(["exports","vue","@vsleem-realsee-viewer/shared"],y):(Ce=typeof globalThis<"u"?globalThis:Ce||self,y(Ce.RealseePlugin={},Ce.Vue,Ce.VSLeemShared))})(this,(function(Ce,y,xt){"use strict";const $g="data:image/png;base64,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",t_="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAK8AAABWCAMAAACO0TaWAAABjFBMVEUAAADSZGSkhYXVZGSnhITXY2PYY2PQZGSmhISlhITZYmKmhITPYWHMZGTKYmLOZWWmhISlhISlhITNY2PSYmK6QECmhISmhoamhITGYGClhITQX1/OXFy7VVWlhITTX1/BS0vYYGCmg4O/R0fEXl7KVlbVXV2lg4PGUVHBWlrJYWGmg4Olg4PQWlquSEi2UFDKV1elhIS0Tk67QkKlhISlhISlhIS+WVnVYGDDTU20Tk7RX1/NWVm+RUXGXV3FT0/BXV3CXV2lhITJUFC/XFy3Rka8Y2OyS0vGU1PFTEy6W1vLXl7KVVXPV1e2UVG0Skq8Xl61UlKzUlLOVVWyUlKsTEzDXFy5Y2O4VFSzbm6zUVGzVVWrRka2ZWWzbm6tWVm1TU27YGDTW1uueHiyZGSuUFC0UlKrSUm+YWG1SEivUFC5Xl6+Wlq4aGi2Vla0YGDLXV20VFS2bW21VFSwdHSre3u0amq/VlataWmtTU27ZWW2U1O2YmK5Wlq3bW2ud3e4YWG+U1OzWFiwZ2dFqcd9AAAAhHRSTlMArgaqDaajsgkUoCOttre1ET0csaqXNhlNuTGqqLQtpJyfKZq3op9HoLe1UVejr7SlVLKbQkRKtaafxaelmMCezMdcm9KmpLCimtWznp2Mt8LAo5uXyLOsy4it1q+JgF29u5xdM9TKu7Kwy8rEklNFt311b2xpJLcqwZtjZ5Z/dLOvTT3bswQEAAAOYElEQVRo3uzXe1MSYRgF8IqKSBBsNwEpyBs4qwwSYLCoqEATpBDmJOpUWI4zDqWZozVZ0+2Ld57nfdeXki5KTf3RWWmAEn6ezq565n/+50/l3A9y5t+JQl06ynmOevxvwBXzvBVPm9Dzlv9vqSX0COnY3t6rVJZisdjNVbMljVU8tVSp7G1vHzCd2R2gO6LCuXNIStOsVovF4tXvBH9VrTZMkm/vOKT6T5uVlamOjcNKrGZWt4oJi5WQGWw5kKuJI3iiuFU1Y6sVKpub/pNmZT0AtQGpREBIuXGUjLipDCJTiNV3tdFY3RVNM/nPYT0be4s1k6kSysBMDsdIZqRdMrlcLpMRfnYnJNpkM9X8m8lysDirlmLmVkJQGQolI+8gw/gYHx8fHh4e5wP3xeM7w7jdGUHILdVW0YuHB57f2TI3y9jDRbNKvcpSMywl5jhnEse1SRwt4cfjk5OT44wXbLSdU+bElrm6xy3/FrHCcrG0AKLmIAWVna3EAEfHPb4FAnjmyE4BGyF0rkToKUFe3HZgbCzuXOvYWTKrhJ0a5AUQlaUSGiCYitOJD3kLyOg62EIeBToq0HgtkBMwJ6rmLu+iE7Gsdi/WwAwSPILcCMaoqAFdCgFyHktA/oHoAAt39loWZkLTqmnSsuWiubQhxJ1oDyqNKjfLIxBbVZ2SgEUyZ53tc5YO/FM9QEcgmw1lYeaeIRbkKYgXpfi02o2KuQUtz4CbtXpF8ObtaN1+v396ljKNey9azGfP4uZkdFoPoOdQKBqNouZ5mEvccoLEvOMT75a7pSGg2lYs92rDMpngJIPm1JxOwz87U5hpNpeRFRHc+9BszhQgZ7FNwHWbbgvo2bSezgItySzmjivYMSo+YbnYLbpFtaxlrDVXOAUVUlidmuafLTTXl1fez1HGvgo9s/J8uVmYmTZ4GHzTEWwZYkzjWhQhcqbE4s1Dx4lGIa4J2zXsFtrcCLSEDenXBBY9Caym4eafLjSXV4QzHh8dHfW1Bo/jcWa/f7NemPGLLVOgtUkxDSMcHZ6fHxEdm6uvueITlHuwaiauTtH1YBjaKM5pnePUeQKsRYzZ8vrz/TmSwjkxEYmkUslkskckmUylUpHIxATccTI/+lCY4ZZFaBgQ6ywWHedL6BgV0+X418C0XMfjzSLtVgzhWiiUDcAagJaxltZfvveceoV1IpJiZS+lzwo/YnkqMiHMz9cLfoA18To2IttsaSTEZHTMYnPX4fklMC93yUxASydZlLrN6mlgEaZa2unyh/fAkpWoxAwOBAcGBrpU8CgYDBKczUSeew+x5sSWmAwuyBeEl0seQcdTVxuLXtrEL2zB8TpWpSnQbqPREGttWIJNnmJWt8vYQZyxoELKwCsUrxV+xG6gyZxCyyy+qyHcsOgY4guhizCHo3IUWzEe8c+5O7GiNQXWZqlbVa0dq9WMwj1oR30CS5US00Fp+YXNgzgQghMa5p5khMQr5WkGi+hcMXfM4gWIBweLi14HwD/jftoEt5SbH44i2Ww6rdPXb2GZiymssBYr6EOvgiqZl76KlIMNM5FRcsQXH9tvzoJLh9UxwFIcDgtwDZPAhn/OvVGSU0gjtK+W2bo0lzFd3h+LQ0szYKxHQM99L3BLM5VMHY/NrRc0VTGBWyvGJvKlqUblh2De7mZx8EaeuPi0dBZY4qp2XXbNmFnfH/NNJHv6MAOJFdSf/obqIXEXOk754nPrs+S1q1FwxVixbDg/OFj/5AD4R9wauLyFELV7gb0Ci3btKBftNufGfKmeXhoCYdl6gh/70XFfb3Iivl/2ay6IvwVfBJjEAGdqV9SEj193HVcWq2hXcEOSq6vlug23YfjL+3Eflau0J/xpGuJgb9IXXynf1e5Sw2oSEoyOwwsEjlUAxhu05Xq8e5vEjYZDxL2guIjdbne73N2GUV4Z8yVRLmsJe6KwWILHyn7DgPcITGEvTyKKk+5GvcvrQcHt19BVz5Ty8wv4Xn4xdEFybbJdcLEFqtfinlyrzmovwKnR5VnDcLnonLDLhhW4H4u4ny/Vdrng9muo1IiLdi9KLyK3C67bZaDemdujkR7idvKLADXc1+N7VNYMw+22t2+4n8CZWpeXFny8Xo+3q44L2QKmy9o074m/p/F2XYhBc/D19BH3tFp+M4CDvZFHZQMFu6lfTXp16ZUN50v1DXqvtl/yLurFeMOol2Z/tAZq1+5i79DQ2tNIb1CctacPzpUrXb3Jh+UHhtGN120pGF4JFouov+2iN2tX7/WP+fsL4Fpe3TrZ5Hpd3X7jQflREvV6OuFywV4M4kNdeN3wQuyUC07DSwn3P7mff/Wu3RlH9Q7US3mca9AKL9Wrrg3QuroNeB9iDmoNp18wvGu32EtgdVH7puBX7wZ4EMc/f6dO9Yb6aTuSK8G0XqvfZ9dxttELdN7vQ8uLV9fsRz/CK29/+Mn9j9eD7D3++W/hjYaJa80XWtUveY2hB7fWnnbeL/937qxdb+nX/u2AEXjRL9dzbL5X4EW9ljctvU65XuWtxfrEok4fvtZ/3qx9vDVkdMMLsLoCI8obVt5jXy97+/svCzC8X59uEGO/Q7eu15cGfsPlbGNzE/UO+bneln6V9zL3++wle8+19T5BvS1e3q/sl8F+FPwxtvawk+vvOck1Y/D64XVjDqpfHOwlMPVbHv2ON/ilfTt+TSIM4wD+QxC0bGGF0y03HLGxWdYEVxAcd3AYTCo3tMGcrjJRzJGZsRy0H+of7/s87/v4lC/rhkMY0XNBzJ8++/L1vXvvbsY7p16Mra/0dz6FQqTztb2bC1Oe36ClS7Qvtbd5E6+p72S+16W/T3ry9Xa8iZ2X6tV8MeDyxQ7AD1CIxwfd7ickPOVtoxsLHw5aL/KId+PB/CbyJe/v+Up95+DtfU+sntPfRPoNeTHwnh/wBoFf1yofEPFUV5MfKt2R4fK3TfKVdLUO8D7aSSZk/XW89R55NeB74pUGw7tpwPlct1b5doPFmItike3PSq2bs9wUvMSVfK8xGFrjxfrrFeNyNnXO54ufdnDxMCcBywqhAROYE04TOFet7f1ckMclmPOljOXd0JeD1iiXgzZ9Au68cDGTF5RzFO/9j9nEslyguefzoof1l1cIBUvCAr6VSm1wwi9yuVGr+4rIF9xsAtttQ2vCfZCCF1rhant1dQgHcamDez5eTWR31myBtcEaMFWCA0bCJ2kWM3nvaAGbeXc3r09rYf3x6nGtCixXgbic7m3l6g6OvIRAG/YL8WU5ObkFXozX/fcZu0LoOc6QBYyEUQmUmMVEbldb3YNXR9/kbgnT+X/+5NvR573dVnd0mMPkjRbceSrD5NqgJ2NwM/3yto2XvO715HK80PFswO4aIWCJeCMNMZPJPKq2Wru7e5XK5yOZz5XK3u5uq1UdtQ8POdl8Ps1aDneiDPAqF4DMWqmXLVB73R09vGaFiGd7pTVKWCs8uarhmGfxBtWYQmbyYe4Q0263qzrtNqCgkpWxNKK9hTLgwHWvw+VTcabUaxbO38nQ7pg2rcOwlJmTSrheWSUwKAXElgw01DIgykAKKmqg2BSw+Mdc/apNpuv1muu4aSA7mfP2gOsArwGsCSvY7OOEvImMiXwCMswYZtuDkAaaf8zWp9QDzCZXwWKRray7eh7mdL0yuLYN4nWXNDRifUBg9roRa4v55Awxk03OzDZ2jPxEAyqwHK3prWmuhOue11b8/SS4q7hMEa7jtY2Ibzd7KeQrYo143ApdiyHeJLJFExtwUVKmJ0zlGuDSXHvLVq0CaZVbCuvEtXcN/nZVyuBkx9dVQsEqlpTniYyBGWhh63ABiGqD1TVBs9UvmpzWVoJyk9MVbhR4PXnsxzIZBatYhsGUspA5aWL/cWDQVwMFlYukVlcLb6YfHme3CxPpRoG/vgtWCOyKpcgyt2BgjsJ5hCkH5wqsGy20epKIhR2Ey7cTXa5bYYDpS1fYztaDlFz7aI15xhlb9G27e0bWzmGhZCXsXW0tn34nqxDzy4NsEuGCuyDcaPBiHBE3i0HJRCwZC9lN2cJlzAIgw9WZDFa/ZVoFaM+yEq4+HYq+d7i6TBEnm/vhXYgxrljMmvNdi9ZDmSpV60Rv50rQbiWpucTVp2/R26sFlHiRSzHshH0rdsnaDTdrB6pUHcYa7Uo/7AytdhnhytPN6DH7QURsHj2hFd6SqQWhHbIkHTlKtRflis2UPP+0mRUthetsZiNKzBEb8dbxOx8h8whZv36K5mNSbj7X0VzH2CUv7JxtiZaq4IYb3QkV44nk8DQISi6Z0RcdvbrlYDXZTl2ekrLW7mKnuUlwk8VxfuwLst9fUrOiL8JW6G/W56UgANZEK1qpwhT3CViMR08cMpFRDK80Po3Iwhw1rhQ3Qp6VgrB8OjBYRMu9Fa3LjR558nTHPPU15OzWWbHsB/2Y5iwjJIepULn2inmBXy42yEpYiZZ7K9ppxdxjIRf4vYutwWkn8AMv9kzVUQMnUWOoa1jeP6Zc7SsTCcZytKq9rJiabMmImdAPB8fFcuD7nhfjsN1hJE8mswQoSTvF+pDfRDFWwSLaS2pVrCFzysZs0VA3ToudchD6yNvz8PKWDogpz8OvFPrlcrFYbzwkKahqXVydEht9H0leB7BmRaPT/D7RWaPRKE5MHZ8NH8IJqJUyla0IlmsArKu9PFmKAbO83wK1vE1EcthZL0M/4VNibjMUUqGydRZYEQuZzYKGOqHvQYHuDF6WokAZCimoiPUPq2JnQLZmQUMNtnFbuo4gx85VKwWVrc6tzRmaGQ31HX0LCnbgdUAkpHGKVKmwzhKrZDGzGqNvQTmj70sxVO4Jgjpjq4tWNdwMZ7uOJTJT713OkBqNFrbAodLRD+DEXIU/H1K24n+bq/r3WeO5yn9E9n/+yfkFEtaOmV3W9SYAAAAASUVORK5CYII=",Fh={...xt.APP_SETTING,obsType:"hs"},zh=["#3CDE99","#DE3CB9","#683CDE","#3CA0DE","#D8DE3C","#DEA03C","#DE3C3C"],el={pointLax:0,pointType:0,pointNumber:5,pointDistance:5e3,preloadStep:5,trackColorRange:zh,pathPin:$g,pathRedPin:t_},Hh={viewMode:1,navbar:!1,defaultYaw:0,defaultPitch:0,defaultZoomLvl:30,defaultTransition:{speed:900,rotation:!0},moveInertia:!1,moveThresh:0,minFov:20,maxFov:120,loadingImg:"",loadingTxt:"Loading...",size:{width:"100%",height:"100%"}},nl=[{url:"https://t{s}.tianditu.gov.cn/vec_w/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=vec&STYLE=default&TILEMATRIXSET=w&FORMAT=tiles&TILECOL={x}&TILEROW={y}&TILEMATRIX={z}&tk=99d9995c80e5ae67e043d659b748eb4b",options:{subdomains:["0","1","2","3","4","5","6","7"],attribution:"© 天地图 GS(2022)3124号"}},{url:"https://t{s}.tianditu.gov.cn/cva_w/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=cva&STYLE=default&TILEMATRIXSET=w&FORMAT=tiles&TILECOL={x}&TILEROW={y}&TILEMATRIX={z}&tk=99d9995c80e5ae67e043d659b748eb4b",options:{subdomains:["0","1","2","3","4","5","6","7"]}}],Vh={center:[31.3016935,120.5810725],zoom:17,attributionControl:!0,zoomControl:!1},go={showRadar:!0,showPoint:!0,showMarker:!0,showDragger:!0,minSize:200,maxSize:500,size:200,yaw:0,tileLayers:nl,rotation:!0},Gh={},_o={speed:1e3,baseSpeed:1e3,step:.5,threshold:2e3,showPlay:!0,showSpeed:!0,count:1,index:1,rotation:{slider:!0,play:!0,backward:!1,forward:!1}},Wh={appSetting:Fh,realseeSetting:el,playbar:_o,map:go,immediate:!0},{cloneDeep:Zh,deepMergeProps:e_,getDiffProps:n_}=xt.utils;function i_(n,t,e,s,r,a){const l=y.ref(Zh(go)),h=y.computed(()=>({...l.value,radarAngle:d.value})),u=y.computed(()=>{const{minSize:T=0,size:k=200}=y.unref(h)||{},Z=k>T?1:.6;return{width:`${k}px`,height:`${k}px`,opacity:Z}}),d=y.computed(()=>{const{currentPoint:T}=t.value||{},k=l.value?.radarYaw||0,Z=T?.point.yaw||0;return xt.Point.toDegrees(Z+k)}),p=y.computed(()=>{const{dataSource:T,coordinateTree:k,mappedCoordinateTree:Z,currentSpace:Q,currentModel:V,currentRecord:$,currentPoint:K,currentMarker:dt,currentPointMarkers:G}=t.value||{};return{dataSource:T,coordinateTree:k,mappedCoordinateTree:Z,currentSpace:Q,currentModel:V,currentRecord:$,currentPoint:K,currentPointMarkers:G,currentMarker:dt,state:h.value}});y.watch(()=>Zh(n.value?.map),m,{immediate:!0,deep:!0}),y.watch(()=>d.value,N);function m(T,k){const Z=n_(T,k);E(Z)}function _(){return h.value}function E(T){T&&e_(l.value,T)}function w(T){y.unref(e)?.collapse(T)}function S(T){E({size:T})}function v(T){E({radarYaw:T})}function g(T){E({radarHFov:T})}function R(){s.value?.needUpdate?.(),r.value?.needUpdate?.()}async function P(){try{return E({showMarker:!1}),await r.value?.domElement?.()}catch{}finally{E({showMarker:!0})}}function M(){a("ready")}function U(T){a("collapse",T)}function B(T){E({size:T}),a("dragger")}function N(T){a("angle-updated",T)}async function z(T,k){await h.value?.onPointChange?.(T,k),k?.length&&t.value?.selectMarker(k[0]),t.value?.selectPoint(T),a("select-point",T,k)}return{getProps:h,getSize:u,getBindValue:p,mapAction:{getState:_,setState:E,setSize:S,setCollapse:w,setRadarYaw:v,setRadarHFov:g,needUpdate:R,domElement:P},handleReady:M,handleDragger:B,handleCollapse:U,handleAngleUpdated:N,handleSelectPoint:z}}const s_=["width","height","href"],r_=["x"],o_={xmlns:"http://www.w3.org/1999/xhtml",class:"map-marker-tag"},a_=y.defineComponent({name:"MapCadMarker",__name:"MapCadMarker",props:{point:{},markers:{},imgZoom:{},imgScale:{},wrapScale:{}},setup(n){const t=n,e=y.ref(30),s=y.ref(30),r=y.computed(()=>t.markers?.sort((p,m)=>p.sort-m.sort)),a=y.computed(()=>y.unref(r)?.[0]),l=y.computed(()=>y.unref(r)?.length||0),h=y.computed(()=>{const{x:p=0,y:m=0}=t.point.point||{},{imgScale:_=0}=t;return{x:p*_,y:m*_}}),u=y.computed(()=>{const p=Math.min((t.imgZoom-1)/10*3+1,2),m=Math.max(t.wrapScale*.6,1);return 1/t.imgZoom*p*m}),d=y.computed(()=>{const{x:p=0,y:m=0}=y.unref(h),_=p-y.unref(u)*y.unref(e)/2,E=m-y.unref(u)*y.unref(s);return{transform:`translate(${_}px,${E}px) scale(${u.value})`}});return(p,m)=>a.value?(y.openBlock(),y.createElementBlock("g",{key:0,style:y.normalizeStyle(d.value),class:"vsleem-map-marker"},[y.createElementVNode("image",{width:e.value,height:s.value,href:a.value?.markerIcon,class:"map-marker-img"},null,8,s_),l.value>1?(y.openBlock(),y.createElementBlock("foreignObject",{key:0,width:"10",height:"10",x:e.value-10},[y.createElementVNode("div",o_,y.toDisplayString(l.value),1)],8,r_)):y.createCommentVNode("",!0)],4)):y.createCommentVNode("",!0)}}),Pn=(n,t)=>{const e=n.__vccOpts||n;for(const[s,r]of t)e[s]=r;return e},l_=Pn(a_,[["__scopeId","data-v-79e5c590"]]),c_=["cx","cy","r","stroke-width","fill"],h_=Pn(y.defineComponent({name:"MapCadPoint",__name:"MapCadPoint",props:{point:{},imgZoom:{},imgScale:{},wrapScale:{}},setup(n){const t=n,e=y.computed(()=>{const{x:a=0,y:l=0}=t.point.point||{},{imgScale:h=0}=t;return{x:a*h,y:l*h}}),s=y.computed(()=>1/(t.imgZoom||1)),r=y.computed(()=>{const a=Math.min((t.imgZoom-1)/10*3+1,2),l=Math.max(t.wrapScale*.6,1);return 1/t.imgZoom*2*a*l});return(a,l)=>a.point?(y.openBlock(),y.createElementBlock("circle",{key:0,cx:e.value.x,cy:e.value.y,r:r.value,"stroke-width":2*s.value,stroke:"transparent","vector-effect":"non-scaling-stroke",fill:a.point.color||"#5bb36f","fill-opacity":.8,class:"vsleem-map-point"},null,8,c_)):y.createCommentVNode("",!0)}}),[["__scopeId","data-v-77fec65e"]]),u_=["d"],d_=y.defineComponent({name:"MapCadRadar",__name:"MapCadRadar",props:{point:{},radarAngle:{},radarHFov:{},imgZoom:{},imgScale:{},wrapScale:{}},setup(n){const t=n,e=y.computed(()=>{const{x:l=0,y:h=0}=t.point?.point||{},{imgScale:u=0}=t;return{x:l*u,y:h*u}}),s=y.computed(()=>{const l=Math.min((t.imgZoom-1)/10*3+1,2),h=Math.max(t.wrapScale*.6,1);return 1/t.imgZoom*l*h}),r=y.computed(()=>{const{radarAngle:l=0}=t,{x:h=0,y:u=0}=y.unref(e);return{transform:`translate(${h}px,${u}px) rotate(${l}deg) scale(${s.value})`}}),a=y.computed(()=>{if(!t.point)return"";const l=18,h=0,u=0,{radarHFov:d=90}=t,p=d/2,m=-p,_=p,E=m*Math.PI/180,w=_*Math.PI/180,S=h+l*Math.cos(E),v=u+l*Math.sin(E),g=h+l*Math.cos(w),R=u+l*Math.sin(w),P=d>180?1:0;return`M ${h} ${u} L ${S} ${v} A ${l} ${l} 0 ${P} 1 ${g} ${R} Z`});return(l,h)=>l.point?(y.openBlock(),y.createElementBlock("g",{key:0,class:"vsleem-map-radar",style:y.normalizeStyle(r.value)},[h[0]||(h[0]=y.createElementVNode("defs",null,[y.createElementVNode("linearGradient",{id:"gradient",x1:"0%",y1:"100%",x2:"100%",y2:"0%"},[y.createElementVNode("stop",{offset:"0%",style:{"stop-color":"#108ee9","stop-opacity":"1"}}),y.createElementVNode("stop",{offset:"100%",style:{"stop-color":"transparent","stop-opacity":"1"}})])],-1)),y.createElementVNode("path",{d:a.value,fill:"url(#gradient)"},null,8,u_)],4)):y.createCommentVNode("",!0)}}),f_=["width","height"],p_=["width","height","href"],m_=1.2,g_=1.05,__=Pn(y.defineComponent({name:"MapCadWrapper",__name:"MapCadWrapper",props:{url:{}},emits:["ready","resize","zoom-updated","screenshot"],setup(n,{expose:t,emit:e}){const s={x:0,y:0,zoom:1},r={x:0,y:0,width:0,height:0,naturalWidth:0,naturalHeight:0,scale:1},a={width:0,height:0},l={min:1,max:50},h=n,u=e,d=y.ref(),p=y.ref(),m=y.ref(),_=y.ref(!1),E=y.ref(!1),w=y.ref({x:0,y:0,zoom:1,pageX:0,pageY:0}),S=y.ref(0),v=y.ref(!1),g=y.ref({...s}),R=y.ref({...r}),P=y.ref(),M=y.ref(),U=y.ref({...a});let B;const N=y.computed(()=>{const{x:C,y:it,zoom:ct}=y.unref(g);return{transform:`translate(${C}px, ${it}px) scale(${ct})`,transformOrigin:"0 0",position:"absolute",left:"0",top:"0",width:"100%",height:"100%"}});y.watch(()=>h.url,G),y.onMounted(()=>{G(h.url),Tt()}),y.onBeforeUnmount(()=>{lt()});const z=C=>{C.preventDefault(),C.stopPropagation();const it=y.unref(p)?.getBoundingClientRect();if(!it)return;const ct=C.clientX-it.left,_t=C.clientY-it.top,ht=C.deltaY>0?-1:1;pt(ct,_t,ht,m_)},D=C=>{if(C.button!==0)return;C.preventDefault(),C.stopPropagation(),_.value=!0;const{pageX:it,pageY:ct}=C,{x:_t,y:ht,zoom:Ot}=y.unref(g);w.value={x:_t,y:ht,zoom:Ot,pageX:it,pageY:ct}},T=C=>{if(!_.value)return;C.preventDefault(),C.stopPropagation();const{pageX:it,pageY:ct}=C,{pageX:_t,pageY:ht,x:Ot,y:yt}=w.value;g.value.x=Math.round(Ot+(it-_t)),g.value.y=Math.round(yt+(ct-ht))},k=C=>{_.value&&(C.preventDefault(),C.stopPropagation(),_.value=!1)},Z=C=>{_.value&&k(C)},Q=C=>{C.preventDefault(),C.stopPropagation(),Gt()},V=C=>{const it=C.touches;it.length===1?Rt(it[0]):it.length===2&&Y(it[0],it[1])},$=C=>{C.preventDefault(),C.stopPropagation();const it=C.touches;_.value&&it.length===1?st(it[0]):E.value&&it.length===2&&ft(it[0],it[1])},K=C=>{C.touches.length===0?Dt():C.touches.length===1&&Ut(C.touches[0])};function dt(){v.value=!1,g.value={...s},R.value={...r},P.value=void 0,M.value=void 0,U.value={...a}}async function G(C){if(!C)return;dt();const it=new Image;it.crossOrigin="Anonymous",it.src=C,it.onload=()=>{const{naturalWidth:ct,naturalHeight:_t}=it;v.value=!0,R.value.naturalWidth=ct,R.value.naturalHeight=_t,M.value=it,Mt(),u("ready",y.unref(R.value),y.unref(g))},it.onerror=ct=>{console.error("图片加载失败:",ct)}}function Tt(){B=new ResizeObserver(Mt);const C=y.unref(p);C&&B.observe(C)}function lt(){B&&B.disconnect()}function Mt(){if(!y.unref(v))return;const{naturalWidth:C,naturalHeight:it}=y.unref(R),{clientWidth:ct=0,clientHeight:_t=0}=y.unref(p)||{},ht=Math.min(ct/C,_t/it),Ot=C*ht,yt=it*ht,Nt={...y.unref(g)},pe=U.value,ge=pe.width===0&&pe.height===0,O=pe.width!==ct||pe.height!==_t;if(ge){const b=(ct-Ot)/2,j=(_t-yt)/2;R.value={...R.value,width:Ot,height:yt,scale:ht},g.value.x=b,g.value.y=j,g.value.zoom=1}else if(O){const b=Nt.x+R.value.width*Nt.zoom/2,j=Nt.y+R.value.height*Nt.zoom/2,ot=b/pe.width,gt=j/pe.height,rt=ot*ct,Zt=gt*_t,bt=rt-Ot*Nt.zoom/2,Ht=Zt-yt*Nt.zoom/2;R.value={...R.value,width:Ot,height:yt,scale:ht},g.value.x=Math.round(bt),g.value.y=Math.round(Ht)}U.value={width:ct,height:_t},u("resize",y.unref(R))}function Gt(){if(!y.unref(v)||!y.unref(p))return;const{clientWidth:C=0,clientHeight:it=0}=y.unref(p)||{},{width:ct,height:_t}=y.unref(R),ht=(C-ct)/2,Ot=(it-_t)/2;g.value.x=ht,g.value.y=Ot,g.value.zoom=1,U.value={width:C,height:it},u("zoom-updated",y.unref(g))}function pt(C,it,ct,_t){const{x:ht,y:Ot,zoom:yt}=y.unref(g);let Nt=yt*(ct>0?_t:1/_t);Nt=Math.max(l.min,Math.min(l.max,Nt));const pe=(C-ht)/yt,ge=(it-Ot)/yt,O=C-pe*Nt,b=it-ge*Nt;g.value.x=Math.round(O),g.value.y=Math.round(b),g.value.zoom=Nt,u("zoom-updated",y.unref(g))}function Rt(C){_.value=!0;const{pageX:it,pageY:ct}=C,{x:_t,y:ht,zoom:Ot}=y.unref(g);w.value={x:_t,y:ht,zoom:Ot,pageX:it,pageY:ct}}function Y(C,it){E.value=!0,_.value=!1,S.value=zt(C,it)}function st(C){const{pageX:it,pageY:ct}=C,{pageX:_t,pageY:ht,x:Ot,y:yt}=w.value;g.value.x=Math.round(Ot+(it-_t)),g.value.y=Math.round(yt+(ct-ht))}function ft(C,it){const ct=y.unref(p)?.getBoundingClientRect();if(!ct)return;const _t=zt(C,it);if(S.value>0){const ht=(C.clientX+it.clientX)/2-ct.left,Ot=(C.clientY+it.clientY)/2-ct.top,Nt=_t/S.value>1?1:-1;pt(ht,Ot,Nt,g_)}S.value=_t}function Dt(){_.value=!1,E.value=!1,S.value=0}function Ut(C){E.value=!1,_.value=!0;const{pageX:it,pageY:ct}=C,{x:_t,y:ht,zoom:Ot}=y.unref(g);w.value={x:_t,y:ht,zoom:Ot,pageX:it,pageY:ct}}function zt(C,it){const ct=C.clientX-it.clientX,_t=C.clientY-it.clientY;return Math.sqrt(ct*ct+_t*_t)}async function ce(){if(!M.value){console.warn("图片实例未找到");return}const C=d.value;if(!C){console.error("未找到 SVG 元素");return}try{const it=document.createElement("canvas"),ct=it.getContext("2d");if(!ct)throw new Error("无法获取 Canvas 2D 上下文");it.width=M.value.width,it.height=M.value.height,ct.drawImage(M.value,0,0),P.value=it.toDataURL("image/webp",1),await new Promise(yt=>setTimeout(yt,500));const _t=new XMLSerializer().serializeToString(C),ht=new Blob([_t],{type:"image/svg+xml;charset=utf-8"}),Ot=URL.createObjectURL(ht);return await at(Ot)}catch(it){console.error("导出 SVG 到 PNG 失败:",it)}finally{P.value=""}}function at(C){return new Promise((it,ct)=>{const _t=new Image;_t.src=C,_t.onload=()=>{try{URL.revokeObjectURL(C);const ht=document.createElement("canvas"),Ot=ht.getContext("2d");if(!Ot)throw new Error("无法获取 Canvas 2D 上下文");const yt=y.unref(p),{width:Nt,height:pe}=yt?.getBoundingClientRect()||{width:800,height:600},{zoom:ge=1,x:O=0,y:b=0}=y.unref(g);ht.width=Nt,ht.height=pe,Ot.setTransform(ge,0,0,ge,O,b),Ot.drawImage(_t,0,0),it(ht)}catch(ht){ct(ht)}},_t.onerror=()=>{URL.revokeObjectURL(C),ct(new Error("SVG 图像加载失败"))}})}return t({domElement:ce}),(C,it)=>(y.openBlock(),y.createElementBlock("div",{ref_key:"wrapperRef",ref:p,class:"map-wrapper",onDblclick:Q,onWheel:z,onMousedown:D,onMousemove:T,onMouseup:k,onMouseleave:Z,onTouchstart:V,onTouchmove:$,onTouchend:K},[y.createElementVNode("div",{ref_key:"transformWrapperRef",ref:m,style:y.normalizeStyle(N.value)},[(y.openBlock(),y.createElementBlock("svg",{id:"svgElement",ref_key:"svgRef",ref:d,width:R.value?.width,height:R.value?.height,overflow:"hidden",xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},[v.value?(y.openBlock(),y.createElementBlock("image",{key:0,x:0,y:0,width:R.value?.width,height:R.value?.height,href:P.value||C.url,crossOrigin:"anonymous"},null,8,p_)):y.createCommentVNode("",!0),y.renderSlot(C.$slots,"default",{},void 0,!0)],8,f_))],4)],544))}}),[["__scopeId","data-v-8b4f0684"]]),v_={class:"vsleem-map-cad"},y_=Pn(y.defineComponent({name:"MapCad",__name:"MapCad",props:{store:{},map:{}},emits:["ready","select-point"],setup(n,{expose:t,emit:e}){const s=n,r=e,a=y.ref(),l=y.ref(1),h=y.ref(1),u=y.computed(()=>(s.map.size??0)/(s.map.minSize??1));function d(v,g){p(v),m(g),r("ready")}function p(v){h.value=v.scale??1}function m(v){l.value=v.zoom??1}async function _(v){r("select-point",v)}function E(v,g){r("select-point",v,g)}function w(){}async function S(){return await a.value?.domElement()}return t({needUpdate:w,domElement:S}),(v,g)=>(y.openBlock(),y.createElementBlock("div",v_,[v.store?.currentModel?.modelValue?(y.openBlock(),y.createBlock(__,{key:0,url:v.store?.currentModel?.modelValue,ref_key:"wrapperElRef",ref:a,onReady:d,onResize:p,onZoomUpdated:m},{default:y.withCtx(()=>[v.map?.showPoint?(y.openBlock(!0),y.createElementBlock(y.Fragment,{key:0},y.renderList(v.store.dataSource,([R,P])=>(y.openBlock(),y.createElementBlock("g",{key:R},[(y.openBlock(!0),y.createElementBlock(y.Fragment,null,y.renderList(P.trackPoints,([M,U])=>(y.openBlock(),y.createBlock(h_,{key:M,point:U,imgZoom:l.value,imgScale:h.value,wrapScale:u.value,stroke:v.store.currentPoint?.id==U.id?"#108ee9":"transparent",onClick:y.withModifiers(B=>_(U),["stop","prevent"])},null,8,["point","imgZoom","imgScale","wrapScale","stroke","onClick"]))),128))]))),128)):y.createCommentVNode("",!0),v.map?.showRadar?(y.openBlock(),y.createBlock(d_,{key:1,point:v.store.currentPoint,radarAngle:v.map.radarAngle,radarHFov:v.map.radarHFov,imgZoom:l.value,imgScale:h.value,wrapScale:u.value},null,8,["point","radarAngle","radarHFov","imgZoom","imgScale","wrapScale"])):y.createCommentVNode("",!0),v.map?.showMarker?(y.openBlock(!0),y.createElementBlock(y.Fragment,{key:2},y.renderList(v.store.groupedMarkers,([R,P])=>(y.openBlock(),y.createBlock(l_,{key:R.id,point:R,markers:P,imgZoom:l.value,imgScale:h.value,wrapScale:u.value,onClick:y.withModifiers(M=>E(R,P),["stop","prevent"])},null,8,["point","markers","imgZoom","imgScale","wrapScale","onClick"]))),128)):y.createCommentVNode("",!0)]),_:1},8,["url"])):y.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-4f491d69"]]),E_="data:image/png;base64,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",x_="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAAC0hJREFUeF7tnQGS1DgMRcNJdjnJwkmAkwAngT0JcBKWk7Artl2VCt0tW3EsfemnamqGwU5HT35xEiWZFxsXEiCBhwRekA0JkMBjAhSEo4MEnhCgIBweJEBBOAZIwEaAM4iNG3sVIUBBiiSaYdoIUBAbN/YqQoCCFEk0w7QRoCA2buxVhAAFKZJohmkjQEFs3NirCAEKUiTRDNNGgILYuLFXEQIUpEiiGaaNAAWxcWOvIgQoSJFEM0wbAQpi48ZeRQhQkCKJZpg2AhTExo29ihCgIEUSzTBtBCiIjRt7FSFAQYokmmHaCFAQGzf2KkKAghRJNMO0EaAgNm7sVYQABSmSaIZpI0BBbNzYqwiBiIL8uW3b+xv/j9u2/VMkF1XDlHy/2bZNvofLdzRBBNL33UgROV5TkrTuSL4/bdv26hZhuHxHEuQoRxsV4aClHa5rAzvKETLfUQR5JEdIaGvHUcpPeyRHuHxHEESTIxy0lEN2XVCaHKHy7S1IrxyhoK0bS+k+qVeOMPn2FGRUjjDQ0g3bNQGNyhEi316CWOUIAW3NeEr1KVY53PPtIchZOdyhpRq61wdzVg7XfHsI8mV33ftsengJ+CzBa/vPkqNt5ddbXezard6tHV0QCYWSLBsuQx80Ww758M/btr0b2oqTjT0EEXAyi8j3WQslmUVyznqukENy/HLO5vWvxUMQ2TpK0p8jtJZp5BDwXoJQErRh37e9qeTwFoSS9A06lFbp5IggCCVBGf7PtzOlHFEEoSTYkqSVI5IgCJK0q27oD3BJHPIlNYWzS2o5ogkSWZJW3BQ55Dr8jMF1dnBa+u/vYjhbU0gvR0RBIkpyrPx/uD0aahmg3n3e3p7ga9thlaSEHFEFiSTJvdtikAWRZ/1l+/fLqCRl5IgsSARJHt0ztvx+oInTjjz/LbPIcemVpJQc0QXxlOTZDZXIgjyLS5Nk1l3Yezldbh8Z2eF4VtJ7t3P1bSna3cbhk/oErLwx5tk9cI8kKSkHwgzScr1KEk2Otj0IO5Z7nvzs2CsdJSkrB5IgKw63euWQbZG7StHqISMDvUky0qfDvV9NoGZgtD3hVTOJJK29vKwn0fIyO7RaiMQnO4HeRSS5d0Lf2/9eOyg50GaQKw+3RpMuxUIZQEjLsQayetvh5EAV5KrDrZEBg1gLuVcDGYn5TFtIOZAF8ZZEuyR6ZjBd1fdRDeSqz2vrhZUDXRBPSRBrIR6CQMuRQRAvSRATr9VAZs8kiIx+Y4B2FetREq+4uvVswCAmv6cGMksSRD53Y88iiMdMglYLWSVIGjmyHGLtzV85kyDVQkZrINaZJJUcGQVZOZMgCbKiBpJOjqyCrJIEqRZytSAp5cgsiMQ2cm+V5ZACSZCrL/Ei1oW6cp7pJH0f8NVyyGch1UKuFkR4pJQkoyAr5EATZFUNJJ0k2QRZJYcIgnTcvUqQdDNJJkFWytEO51D4raqBNC5pZhKUBGsnVB5yyDYhFAuveOhJy0eamSSDIF5yyCBAqIWsKhLekwZ+JkEXxFMOGRAID05dXQPRZhNoSZAF8ZZDBgZCLcTzQSn4cxJUQTwPG/Z7TIS944oaiDaLoByO/hYHqiBeJ55HgAjFwggzLcoFjTSCtPutZCb56xZVe63/zD8Oqu0ZEWohK2sgrT7UCqnt1Uh/A74m6VfuUWeQZwO3CdKE+eP2NsErBEIQZGYNpA14+d6+fux+RntXmLYDTCmIGvRBGGm/n4VG3o+FsJMZEaQNcDl0bD9/uwFFew9YzzhQ22ScQdSgOxr0zkJIV7HK7f078qw2oSAqIjaoTICCVM4+Y1cJUBAVERtUJkBBKmefsasEKIiKiA0qE6AglbPP2FUCFERFxAaVCVCQytln7CoBCqIiYoPKBChI5ewzdpUABVERsUFlAhSkcvYZu0qAgqiI2KAyAQpSOfuMXSVAQVREbFCZAAWpnH3GrhKgICoiNqhMgIJUzj5jVwlQEBURG1QmQEEqZ5+xqwQoiIqIDSoToCCVs8/YVQIUREXEBpUJUJDK2WfsKgEKoiJig8oEKEjl7DN2lQAFURGxQWUCFKRy9hm7SoCCqIjYoDIBClI5+4xdJUBBVERsUJkABamcfcauEqAgKiI2qEyAglTOPmNXCVAQFREbVCZAQSpnn7GrBCiIiogNKhOgIJWzz9hVAhRERcQGlQlQkBrZl7/73v5Oeo2IJ0VJQR6DlEHVvv64NXu1+50MuM/btn2clIurVvP+vxV/2Aki292+fux+//WqDUBeb1VBZODLIt//2v0s/xYJehcZaC97Gzu1+znwuW2WabJ8u/XdSzWwOvymWQXR9v4zMxed4YggGpcm0L1ZqP1OWwfU/0dP7jOYIsGbE3v/GYlCmEG+DM6KZ7ncm4Xkd5CHcMiCzNwzWgeFnIO8s3Ze1G+1IPfCEkGEE5wkqILIeYIk3ntBEOTTfyfib71B3c7V4K6koQoi+W5XZzxzL1eHUK5ieXKSmeO15wZYPxtZkHYOIoPUa5HDBplFIi8ye8gs4rXAyiHAkAWR7feWRPaK0Y+rPQ9HoeXIIIi3JFIDiX5cLTuR7w7TB7wcWQTxlARhBvYQJIUcmQTxkgRBEGEjM0i7e+DqySSNHNkEWS0J0kBYVQtBYtK1o0DZA3YFc2u06sQdoQbSuK0QJJ0cGWeQNiBEEqmTXFkgQxLk6ppRSjmyCyLX/kfuzB2ZpaQtQg2kxXS1IHIlTy55R7+iN5pj+DrIvYBl9rhaDjRBVtRCUkqS7RxklRwiCEINZH/IuaIWkk6STIKslIOCPD5YSSVJFkFWy4F4/rby8YA0kmQQxEMOhAeljvv4FZd695+ZQhJ0QTzkkEGAdIl3ZS3kKCW8JMiCeMmBKojXg1PQkqAK4imHCILwoNRxb351LeRZjQFWEkRBvOVAq4G0gbuiFpJOEjRBrpCjvQBu5MlEhAeljoN1VBC5faS9Pmm4Av2gA9xMgiTIVXJIwW/0BkekIqGlWNjurRIucvVr5q3yUJKgCHKlHPsBJO/Z6plJULgdd+Q9tZDjjYelJUFI9Ao5RiVB4HbvKEd7cOrRXbllJYme6JVy9EqCfGv3s2KhFldJSSIL4iFHjySIRUKtWKjJsedS6pwkqiCecmiSINZAWkz3aiG9cpSUJKIgEeR4JgnSg1JasXBUjnKSRBMkkhyPJEG8xHvvUq9VjlKSRBIkohz7PXCrBaA/VjozjvQn7lEEiS7HrEpyxvWkliSCIJQDX5u0kngLQjnw5Uh9TuIpCOXII0daSbwEoRz55EgpiYcglCOvHOkk8RBk9qOfiC9QyK/I/7fIz74t5WztZpi7hyAz365BOYZTvrTDbEmW3wfnIcgsaJRj6Vg3f9jMfC//U9Ieggjps9Aoh3m8unScke/lcggpL0HOSEI5XMb46Q+1SiL5dpHDWxCLJJTj9Dh1XcGoJK5yRBBkRBLK4Tq2p314ryTuckQRpEcSyjFtfIZYkSZJCDkiCfJMEsoRYkxP34hHkoSRI5og9yShHNPHZagVHiUJJUdEQZok8uy0wPoYKp3cmCsIiCSSb/ku+ZZqeZjF8zJvGAjcEBJ4RICCcGyQwBMCFITDgwQoCMcACdgIcAaxcWOvIgQoSJFEM0wbAQpi48ZeRQhQkCKJZpg2AhTExo29ihCgIEUSzTBtBCiIjRt7FSFAQYokmmHaCFAQGzf2KkKAghRJNMO0EaAgNm7sVYQABSmSaIZpI0BBbNzYqwgBClIk0QzTRoCC2LixVxECFKRIohmmjQAFsXFjryIEKEiRRDNMGwEKYuPGXkUIUJAiiWaYNgIUxMaNvYoQoCBFEs0wbQQoiI0bexUhQEGKJJph2gj8C8MBTOecC3MMAAAAAElFTkSuQmCC",w_="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAACR9JREFUeF7tnWF61DYQhs1JWk5SchLgJMBJyk2gJ6GcpI3I+mGTeNfSWNJ843n3T/M0tjR6v3mxYyW7bxZeEIDATQJvYAMBCNwmgCB0BwTuEEAQ2gMCCEIPQMBGgCuIjRtnJSGAIEmCZpk2Aghi48ZZSQggSJKgWaaNAILYuHFWEgIIkiRolmkjgCA2bpyVhACCJAmaZdoIIIiNG2clIYAgSYJmmTYCCGLjxllJCCBIkqBZpo0Agti4cVYSAgiSJGiWaSOAIDZunJWEAIIkCZpl2gggiI0bZyUhgCBJgmaZNgIIYuPGWUkIIEiSoFmmjQCC2LhxVhICCJIkaJZpI4AgNm6clYQAgiQJmmXaCCCIjRtnJSGAIEmCZpk2Aghi48ZZfQn8eRmu/Pevq6/Ll1+WZfm373T1oyFIPSuOtBO4JUD5/+92hv26LMtH+9THzkSQY/w4+4nAlgBr4+8JsMcQQfYI8X13AiMF2FscguwR4vtTCKy3O39cZut1BThafLm9KpK4vLjFcsEuN+mPq9skteIQRC2RZPWUK8U34TW/5SmWcDoJSiu3Vn9XPE3yQuF6l+M6uRdx5n1FoEhSriLrD+NKiFx71HVypRSo5ZccapJ8X5blwTMbBPGkrze3miSuj3hLPAii16TeFSlJgiDe3cD8mwRUJHF9xMsVBDvuEVCQBEHoUWkC3pK47oFwBZHuTZniPCVBEJk2oBDF2y33h0juBdCXYQjMvpK474FwixWmN2UKLb+S8mFSNe6PeBFkUtInmWamHAUZgpykcTIsY7Ychan7I16uIBla+/gaPeRAkOO5McIEAl5ylKW5P+LlCjKhwwJP4SkHggRunAyle8sh8483+yAZ2r1tjQpylDeKK7dY7i8EcY9AqgAFOWQe8cpcxqRaJG8xKnIgSN4elF25khwyj3i5gsj269TCRslRdsJr3nt3a7ESm4QIMrUPJScbKUdpcutbCknsgSCIZM9OK2q0HOtCLJIgyLQ2YKItArPksEoi83RVphD6eBqB2XK0SiKzB8It1rSelJnIS44WSSR+zX0tmCuITO8OL8RbjlpJEGR4KzDBSwIqctRI8vnyuYQSKXIFkYhhaBFqcuxJIrMHws8gQ/tSYnBVOe5JIvOIF0EkenhYEepybEki9QQLQYb1pvvAUeS4lqRsKJa3+pF68TOIVBxdiokmR5dFjxoEQUaR9RkXOTpzR5DOQB2HQ44B8BFkAFSHIZFjEHQEGQR24rDIMRA2ggyEO2Fo5BgMGUEGAx44PHIMhLsOjSATIA+YorzDehGk90vqFwV7L84yHoJYqPmf8+mxhPJLfT1fyLFBE0F6tti8sXp/mA1y3MgOQeY1de+ZekmCHHeSQZDebTt3vKOSIMdOXggyt6FHzGaVBDkq0kCQCkgBDmmVBDkqQ0WQSlABDquVBDkawkSQBlgBDt2TBDkaQ0SQRmABDr8lCXIYwkMQA7QAp7yUBDmMoSGIEVyA04ok7x8/Tvnn5TPHA5SsVyKC6GVCRUIEEEQoDErRI4AgeplQkRABBBEKg1L0CCCIXiZUJEQAQYTCoBQ9AgiilwkVCRFAEKEwKEWPAILoZUJFQgQQRCgMStEjgCB6mVCREAEEEQqDUvQIIIheJlQkRABBhMKgFD0CCKKXCRUJEUAQoTAoRY8AguhlQkVCBBBEKAxK0SOAIMcyeff456zrp7OWjzDmdTICCGIP9PrzOYocD8uyIImdp+SZCGKLZevDa5DExlL6LARpj+feJzshSTtP6TMQpC2emo89Q5I2ptJHI0h9PDVyrKMhST1X6SMRpC6eFjmQpI5piKMQZD8mixxIss81xBEIcj+mI3IgSQgF7heJILf59JADSYJLgiDbAfaUY52hfGzzl+D9kq58BHkd+Qg5yiwfeZf1eH4hyPPMRsnB53PEc+NXxQjyOzjkCNrEI8tGkCe6yDGyywKPjSDIEbh9x5eeXRCuHON7LPQMmQVBjtCtO6f4rIIgx5z+Cj+LoiDlT1jXP2MdARg5RlA96ZiKgvy4CFJ+ZfxtZ+7I0Rno2YdTE6S8CcK3K+g9JUGOs3fzgPWpCfLhsidxvdQekiDHgObJMGQEQUoORyRBjgydPGiNaoLsvSFC688kyDGocbIMG0mQ1ivJ1u1aj1z5xcMeFIOMoSbI+gTrHr6a2y3kCNKA6mVGFGTvSoIc6l0XqD41Qf5rYLd1JUGOBoAcuk9ASZCXeyD71T9/uoUcNcQ4pomAkiDWBi9XkvK33uWJVe8XP5D3JhpsvDMIMgo5cowiG2hcJUFG7VlY4kAOC7UTnoMgr0NFjhM2unVJSoLU7IFY11l7HnLUkkpyHIL8Dho5kjR9yzKVBGnZA2lZY82xyFFDKeExKoJY9kB6xYUcvUiecBwVQax7IEcjQY6jBE9+fmZBkOPkzd1jeSqCzN4DQY4e3ZNgjIyCIEeCxu61RBVBZu6B1Pw9SS++jBOcQEZBSmRIErxxZ5WvIojHHgiSzOqywPMoCFLeRbHcYnm8kMSDeqA5FQTx2gNZY0KSQA07u1QEeSKOJLM7L8h8CoLM3gO5FQ2SBGnamWUiyHPaSDKz+wLMpSDIzD2QmkiQpIZSkmMQZDtoJEkiwN4yFQTx2APZ48IP7jWEEhzjLYjnHkhNvA/LsnyvOZBjzknAWxDvPZB7qXKbdc6eb1pVdkGKBOvt1Hql+HnZF+HK0dRK5zzYW5DReyBbAvxziRIBztnTXVcVXRAE6NoODPaSgLcgnx4L+nwnllWA8q/9+jVXAPp4GgFvQcpTrPdXH/tcFo4A0+Jnoj0C3oLs1cf3IeBKAEFc8TO5OgEEUU+I+lwJIIgrfiZXJ4Ag6glRnysBBHHFz+TqBBBEPSHqcyWAIK74mVydAIKoJ0R9rgQQxBU/k6sTQBD1hKjPlQCCuOJncnUCCKKeEPW5EkAQV/xMrk4AQdQToj5XAgjiip/J1QkgiHpC1OdKAEFc8TO5OgEEUU+I+lwJIIgrfiZXJ4Ag6glRnysBBHHFz+TqBBBEPSHqcyWAIK74mVydAIKoJ0R9rgQQxBU/k6sTQBD1hKjPlQCCuOJncnUCCKKeEPW5EkAQV/xMrk4AQdQToj5XAv8DSc0v2DJGFkoAAAAASUVORK5CYII=",S_={class:"vsleem-map-dragger"},M_=["src"],T_=["src"],b_=Pn(y.defineComponent({name:"MapDragger",__name:"MapDragger",props:{min:{},max:{},size:{}},emits:["collapse","dragger"],setup(n,{expose:t,emit:e}){const s=n,r=e,a=y.ref(!0),l=y.ref();function h(R){y.unref(a)!=R&&u()}function u(){const{min:R,max:P}=s,M=y.unref(a)?P:R;a.value=!y.unref(a),r("collapse",y.unref(a)),r("dragger",M)}function d(R){const{size:P}=s;l.value={x:R.pageX,y:R.pageY,size:P}}function p(R){if(y.unref(l)){const{min:P=0,max:M=0}=s,{x:U=0,size:B=0}=y.unref(l)||{};let N=Math.min(Math.max(B-(R.pageX-U),P),M);r("dragger",N)}}function m(){l.value=void 0}function _(R){d(R),document.addEventListener("mousemove",E),document.addEventListener("mouseup",w)}function E(R){p(R)}function w(){m(),document.removeEventListener("mousemove",E),document.removeEventListener("mouseup",w)}function S(R){d(R.touches[0]),document.addEventListener("touchmove",v),document.addEventListener("touchend",g)}function v(R){p(R.touches[0])}function g(){m(),document.removeEventListener("touchmove",v),document.removeEventListener("touchend",g)}return t({collapse:h}),(R,P)=>(y.openBlock(),y.createElementBlock("div",S_,[y.createElementVNode("div",{class:"map-dragger-button collapse",onClick:u},[y.createElementVNode("img",{src:a.value?y.unref(E_):y.unref(x_)},null,8,M_)]),y.createElementVNode("div",{class:"map-dragger-button arraw",onMousedown:_,onTouchstart:S},[y.createElementVNode("img",{src:y.unref(w_)},null,8,T_)],32)]))}}),[["__scopeId","data-v-f432df8d"]]);function A_(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var mr={exports:{}};/* @preserve
|
|
2
2
|
* Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com
|
|
3
3
|
* (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade
|
|
4
|
-
*/var C_=mr.exports,Xh;function P_(){return Xh||(Xh=1,(function(n,t){(function(e,s){s(t)})(C_,(function(e){var s="1.9.4";function r(i){var o,c,f,x;for(c=1,f=arguments.length;c<f;c++){x=arguments[c];for(o in x)i[o]=x[o]}return i}var a=Object.create||(function(){function i(){}return function(o){return i.prototype=o,new i}})();function l(i,o){var c=Array.prototype.slice;if(i.bind)return i.bind.apply(i,c.call(arguments,1));var f=c.call(arguments,2);return function(){return i.apply(o,f.length?f.concat(c.call(arguments)):arguments)}}var h=0;function u(i){return"_leaflet_id"in i||(i._leaflet_id=++h),i._leaflet_id}function d(i,o,c){var f,x,A,F;return F=function(){f=!1,x&&(A.apply(c,x),x=!1)},A=function(){f?x=arguments:(i.apply(c,arguments),setTimeout(F,o),f=!0)},A}function p(i,o,c){var f=o[1],x=o[0],A=f-x;return i===f&&c?i:((i-x)%A+A)%A+x}function m(){return!1}function _(i,o){if(o===!1)return i;var c=Math.pow(10,o===void 0?6:o);return Math.round(i*c)/c}function E(i){return i.trim?i.trim():i.replace(/^\s+|\s+$/g,"")}function w(i){return E(i).split(/\s+/)}function S(i,o){Object.prototype.hasOwnProperty.call(i,"options")||(i.options=i.options?a(i.options):{});for(var c in o)i.options[c]=o[c];return i.options}function v(i,o,c){var f=[];for(var x in i)f.push(encodeURIComponent(c?x.toUpperCase():x)+"="+encodeURIComponent(i[x]));return(!o||o.indexOf("?")===-1?"?":"&")+f.join("&")}var g=/\{ *([\w_ -]+) *\}/g;function R(i,o){return i.replace(g,function(c,f){var x=o[f];if(x===void 0)throw new Error("No value provided for variable "+c);return typeof x=="function"&&(x=x(o)),x})}var P=Array.isArray||function(i){return Object.prototype.toString.call(i)==="[object Array]"};function M(i,o){for(var c=0;c<i.length;c++)if(i[c]===o)return c;return-1}var U="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function B(i){return window["webkit"+i]||window["moz"+i]||window["ms"+i]}var N=0;function z(i){var o=+new Date,c=Math.max(0,16-(o-N));return N=o+c,window.setTimeout(i,c)}var D=window.requestAnimationFrame||B("RequestAnimationFrame")||z,T=window.cancelAnimationFrame||B("CancelAnimationFrame")||B("CancelRequestAnimationFrame")||function(i){window.clearTimeout(i)};function k(i,o,c){if(c&&D===z)i.call(o);else return D.call(window,l(i,o))}function Z(i){i&&T.call(window,i)}var Q={__proto__:null,extend:r,create:a,bind:l,get lastId(){return h},stamp:u,throttle:d,wrapNum:p,falseFn:m,formatNum:_,trim:E,splitWords:w,setOptions:S,getParamString:v,template:R,isArray:P,indexOf:M,emptyImageUrl:U,requestFn:D,cancelFn:T,requestAnimFrame:k,cancelAnimFrame:Z};function V(){}V.extend=function(i){var o=function(){S(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},c=o.__super__=this.prototype,f=a(c);f.constructor=o,o.prototype=f;for(var x in this)Object.prototype.hasOwnProperty.call(this,x)&&x!=="prototype"&&x!=="__super__"&&(o[x]=this[x]);return i.statics&&r(o,i.statics),i.includes&&($(i.includes),r.apply(null,[f].concat(i.includes))),r(f,i),delete f.statics,delete f.includes,f.options&&(f.options=c.options?a(c.options):{},r(f.options,i.options)),f._initHooks=[],f.callInitHooks=function(){if(!this._initHooksCalled){c.callInitHooks&&c.callInitHooks.call(this),this._initHooksCalled=!0;for(var A=0,F=f._initHooks.length;A<F;A++)f._initHooks[A].call(this)}},o},V.include=function(i){var o=this.prototype.options;return r(this.prototype,i),i.options&&(this.prototype.options=o,this.mergeOptions(i.options)),this},V.mergeOptions=function(i){return r(this.prototype.options,i),this},V.addInitHook=function(i){var o=Array.prototype.slice.call(arguments,1),c=typeof i=="function"?i:function(){this[i].apply(this,o)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(c),this};function $(i){if(!(typeof L>"u"||!L||!L.Mixin)){i=P(i)?i:[i];for(var o=0;o<i.length;o++)i[o]===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 K={on:function(i,o,c){if(typeof i=="object")for(var f in i)this._on(f,i[f],o);else{i=w(i);for(var x=0,A=i.length;x<A;x++)this._on(i[x],o,c)}return this},off:function(i,o,c){if(!arguments.length)delete this._events;else if(typeof i=="object")for(var f in i)this._off(f,i[f],o);else{i=w(i);for(var x=arguments.length===1,A=0,F=i.length;A<F;A++)x?this._off(i[A]):this._off(i[A],o,c)}return this},_on:function(i,o,c,f){if(typeof o!="function"){console.warn("wrong listener type: "+typeof o);return}if(this._listens(i,o,c)===!1){c===this&&(c=void 0);var x={fn:o,ctx:c};f&&(x.once=!0),this._events=this._events||{},this._events[i]=this._events[i]||[],this._events[i].push(x)}},_off:function(i,o,c){var f,x,A;if(this._events&&(f=this._events[i],!!f)){if(arguments.length===1){if(this._firingCount)for(x=0,A=f.length;x<A;x++)f[x].fn=m;delete this._events[i];return}if(typeof o!="function"){console.warn("wrong listener type: "+typeof o);return}var F=this._listens(i,o,c);if(F!==!1){var J=f[F];this._firingCount&&(J.fn=m,this._events[i]=f=f.slice()),f.splice(F,1)}}},fire:function(i,o,c){if(!this.listens(i,c))return this;var f=r({},o,{type:i,target:this,sourceTarget:o&&o.sourceTarget||this});if(this._events){var x=this._events[i];if(x){this._firingCount=this._firingCount+1||1;for(var A=0,F=x.length;A<F;A++){var J=x[A],nt=J.fn;J.once&&this.off(i,nt,J.ctx),nt.call(J.ctx||this,f)}this._firingCount--}}return c&&this._propagateEvent(f),this},listens:function(i,o,c,f){typeof i!="string"&&console.warn('"string" type argument expected');var x=o;typeof o!="function"&&(f=!!o,x=void 0,c=void 0);var A=this._events&&this._events[i];if(A&&A.length&&this._listens(i,x,c)!==!1)return!0;if(f){for(var F in this._eventParents)if(this._eventParents[F].listens(i,o,c,f))return!0}return!1},_listens:function(i,o,c){if(!this._events)return!1;var f=this._events[i]||[];if(!o)return!!f.length;c===this&&(c=void 0);for(var x=0,A=f.length;x<A;x++)if(f[x].fn===o&&f[x].ctx===c)return x;return!1},once:function(i,o,c){if(typeof i=="object")for(var f in i)this._on(f,i[f],o,!0);else{i=w(i);for(var x=0,A=i.length;x<A;x++)this._on(i[x],o,c,!0)}return this},addEventParent:function(i){return this._eventParents=this._eventParents||{},this._eventParents[u(i)]=i,this},removeEventParent:function(i){return this._eventParents&&delete this._eventParents[u(i)],this},_propagateEvent:function(i){for(var o in this._eventParents)this._eventParents[o].fire(i.type,r({layer:i.target,propagatedFrom:i.target},i),!0)}};K.addEventListener=K.on,K.removeEventListener=K.clearAllEventListeners=K.off,K.addOneTimeEventListener=K.once,K.fireEvent=K.fire,K.hasEventListeners=K.listens;var dt=V.extend(K);function G(i,o,c){this.x=c?Math.round(i):i,this.y=c?Math.round(o):o}var Tt=Math.trunc||function(i){return i>0?Math.floor(i):Math.ceil(i)};G.prototype={clone:function(){return new G(this.x,this.y)},add:function(i){return this.clone()._add(lt(i))},_add:function(i){return this.x+=i.x,this.y+=i.y,this},subtract:function(i){return this.clone()._subtract(lt(i))},_subtract:function(i){return this.x-=i.x,this.y-=i.y,this},divideBy:function(i){return this.clone()._divideBy(i)},_divideBy:function(i){return this.x/=i,this.y/=i,this},multiplyBy:function(i){return this.clone()._multiplyBy(i)},_multiplyBy:function(i){return this.x*=i,this.y*=i,this},scaleBy:function(i){return new G(this.x*i.x,this.y*i.y)},unscaleBy:function(i){return new G(this.x/i.x,this.y/i.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=Tt(this.x),this.y=Tt(this.y),this},distanceTo:function(i){i=lt(i);var o=i.x-this.x,c=i.y-this.y;return Math.sqrt(o*o+c*c)},equals:function(i){return i=lt(i),i.x===this.x&&i.y===this.y},contains:function(i){return i=lt(i),Math.abs(i.x)<=Math.abs(this.x)&&Math.abs(i.y)<=Math.abs(this.y)},toString:function(){return"Point("+_(this.x)+", "+_(this.y)+")"}};function lt(i,o,c){return i instanceof G?i:P(i)?new G(i[0],i[1]):i==null?i:typeof i=="object"&&"x"in i&&"y"in i?new G(i.x,i.y):new G(i,o,c)}function Mt(i,o){if(i)for(var c=o?[i,o]:i,f=0,x=c.length;f<x;f++)this.extend(c[f])}Mt.prototype={extend:function(i){var o,c;if(!i)return this;if(i instanceof G||typeof i[0]=="number"||"x"in i)o=c=lt(i);else if(i=Gt(i),o=i.min,c=i.max,!o||!c)return this;return!this.min&&!this.max?(this.min=o.clone(),this.max=c.clone()):(this.min.x=Math.min(o.x,this.min.x),this.max.x=Math.max(c.x,this.max.x),this.min.y=Math.min(o.y,this.min.y),this.max.y=Math.max(c.y,this.max.y)),this},getCenter:function(i){return lt((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,i)},getBottomLeft:function(){return lt(this.min.x,this.max.y)},getTopRight:function(){return lt(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(i){var o,c;return typeof i[0]=="number"||i instanceof G?i=lt(i):i=Gt(i),i instanceof Mt?(o=i.min,c=i.max):o=c=i,o.x>=this.min.x&&c.x<=this.max.x&&o.y>=this.min.y&&c.y<=this.max.y},intersects:function(i){i=Gt(i);var o=this.min,c=this.max,f=i.min,x=i.max,A=x.x>=o.x&&f.x<=c.x,F=x.y>=o.y&&f.y<=c.y;return A&&F},overlaps:function(i){i=Gt(i);var o=this.min,c=this.max,f=i.min,x=i.max,A=x.x>o.x&&f.x<c.x,F=x.y>o.y&&f.y<c.y;return A&&F},isValid:function(){return!!(this.min&&this.max)},pad:function(i){var o=this.min,c=this.max,f=Math.abs(o.x-c.x)*i,x=Math.abs(o.y-c.y)*i;return Gt(lt(o.x-f,o.y-x),lt(c.x+f,c.y+x))},equals:function(i){return i?(i=Gt(i),this.min.equals(i.getTopLeft())&&this.max.equals(i.getBottomRight())):!1}};function Gt(i,o){return!i||i instanceof Mt?i:new Mt(i,o)}function pt(i,o){if(i)for(var c=o?[i,o]:i,f=0,x=c.length;f<x;f++)this.extend(c[f])}pt.prototype={extend:function(i){var o=this._southWest,c=this._northEast,f,x;if(i instanceof Y)f=i,x=i;else if(i instanceof pt){if(f=i._southWest,x=i._northEast,!f||!x)return this}else return i?this.extend(st(i)||Rt(i)):this;return!o&&!c?(this._southWest=new Y(f.lat,f.lng),this._northEast=new Y(x.lat,x.lng)):(o.lat=Math.min(f.lat,o.lat),o.lng=Math.min(f.lng,o.lng),c.lat=Math.max(x.lat,c.lat),c.lng=Math.max(x.lng,c.lng)),this},pad:function(i){var o=this._southWest,c=this._northEast,f=Math.abs(o.lat-c.lat)*i,x=Math.abs(o.lng-c.lng)*i;return new pt(new Y(o.lat-f,o.lng-x),new Y(c.lat+f,c.lng+x))},getCenter:function(){return new Y((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 Y(this.getNorth(),this.getWest())},getSouthEast:function(){return new Y(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(i){typeof i[0]=="number"||i instanceof Y||"lat"in i?i=st(i):i=Rt(i);var o=this._southWest,c=this._northEast,f,x;return i instanceof pt?(f=i.getSouthWest(),x=i.getNorthEast()):f=x=i,f.lat>=o.lat&&x.lat<=c.lat&&f.lng>=o.lng&&x.lng<=c.lng},intersects:function(i){i=Rt(i);var o=this._southWest,c=this._northEast,f=i.getSouthWest(),x=i.getNorthEast(),A=x.lat>=o.lat&&f.lat<=c.lat,F=x.lng>=o.lng&&f.lng<=c.lng;return A&&F},overlaps:function(i){i=Rt(i);var o=this._southWest,c=this._northEast,f=i.getSouthWest(),x=i.getNorthEast(),A=x.lat>o.lat&&f.lat<c.lat,F=x.lng>o.lng&&f.lng<c.lng;return A&&F},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(i,o){return i?(i=Rt(i),this._southWest.equals(i.getSouthWest(),o)&&this._northEast.equals(i.getNorthEast(),o)):!1},isValid:function(){return!!(this._southWest&&this._northEast)}};function Rt(i,o){return i instanceof pt?i:new pt(i,o)}function Y(i,o,c){if(isNaN(i)||isNaN(o))throw new Error("Invalid LatLng object: ("+i+", "+o+")");this.lat=+i,this.lng=+o,c!==void 0&&(this.alt=+c)}Y.prototype={equals:function(i,o){if(!i)return!1;i=st(i);var c=Math.max(Math.abs(this.lat-i.lat),Math.abs(this.lng-i.lng));return c<=(o===void 0?1e-9:o)},toString:function(i){return"LatLng("+_(this.lat,i)+", "+_(this.lng,i)+")"},distanceTo:function(i){return Dt.distance(this,st(i))},wrap:function(){return Dt.wrapLatLng(this)},toBounds:function(i){var o=180*i/40075017,c=o/Math.cos(Math.PI/180*this.lat);return Rt([this.lat-o,this.lng-c],[this.lat+o,this.lng+c])},clone:function(){return new Y(this.lat,this.lng,this.alt)}};function st(i,o,c){return i instanceof Y?i:P(i)&&typeof i[0]!="object"?i.length===3?new Y(i[0],i[1],i[2]):i.length===2?new Y(i[0],i[1]):null:i==null?i:typeof i=="object"&&"lat"in i?new Y(i.lat,"lng"in i?i.lng:i.lon,i.alt):o===void 0?null:new Y(i,o,c)}var ft={latLngToPoint:function(i,o){var c=this.projection.project(i),f=this.scale(o);return this.transformation._transform(c,f)},pointToLatLng:function(i,o){var c=this.scale(o),f=this.transformation.untransform(i,c);return this.projection.unproject(f)},project:function(i){return this.projection.project(i)},unproject:function(i){return this.projection.unproject(i)},scale:function(i){return 256*Math.pow(2,i)},zoom:function(i){return Math.log(i/256)/Math.LN2},getProjectedBounds:function(i){if(this.infinite)return null;var o=this.projection.bounds,c=this.scale(i),f=this.transformation.transform(o.min,c),x=this.transformation.transform(o.max,c);return new Mt(f,x)},infinite:!1,wrapLatLng:function(i){var o=this.wrapLng?p(i.lng,this.wrapLng,!0):i.lng,c=this.wrapLat?p(i.lat,this.wrapLat,!0):i.lat,f=i.alt;return new Y(c,o,f)},wrapLatLngBounds:function(i){var o=i.getCenter(),c=this.wrapLatLng(o),f=o.lat-c.lat,x=o.lng-c.lng;if(f===0&&x===0)return i;var A=i.getSouthWest(),F=i.getNorthEast(),J=new Y(A.lat-f,A.lng-x),nt=new Y(F.lat-f,F.lng-x);return new pt(J,nt)}},Dt=r({},ft,{wrapLng:[-180,180],R:6371e3,distance:function(i,o){var c=Math.PI/180,f=i.lat*c,x=o.lat*c,A=Math.sin((o.lat-i.lat)*c/2),F=Math.sin((o.lng-i.lng)*c/2),J=A*A+Math.cos(f)*Math.cos(x)*F*F,nt=2*Math.atan2(Math.sqrt(J),Math.sqrt(1-J));return this.R*nt}}),Ut=6378137,zt={R:Ut,MAX_LATITUDE:85.0511287798,project:function(i){var o=Math.PI/180,c=this.MAX_LATITUDE,f=Math.max(Math.min(c,i.lat),-c),x=Math.sin(f*o);return new G(this.R*i.lng*o,this.R*Math.log((1+x)/(1-x))/2)},unproject:function(i){var o=180/Math.PI;return new Y((2*Math.atan(Math.exp(i.y/this.R))-Math.PI/2)*o,i.x*o/this.R)},bounds:(function(){var i=Ut*Math.PI;return new Mt([-i,-i],[i,i])})()};function ce(i,o,c,f){if(P(i)){this._a=i[0],this._b=i[1],this._c=i[2],this._d=i[3];return}this._a=i,this._b=o,this._c=c,this._d=f}ce.prototype={transform:function(i,o){return this._transform(i.clone(),o)},_transform:function(i,o){return o=o||1,i.x=o*(this._a*i.x+this._b),i.y=o*(this._c*i.y+this._d),i},untransform:function(i,o){return o=o||1,new G((i.x/o-this._b)/this._a,(i.y/o-this._d)/this._c)}};function at(i,o,c,f){return new ce(i,o,c,f)}var C=r({},Dt,{code:"EPSG:3857",projection:zt,transformation:(function(){var i=.5/(Math.PI*zt.R);return at(i,.5,-i,.5)})()}),it=r({},C,{code:"EPSG:900913"});function ct(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function _t(i,o){var c="",f,x,A,F,J,nt;for(f=0,A=i.length;f<A;f++){for(J=i[f],x=0,F=J.length;x<F;x++)nt=J[x],c+=(x?"L":"M")+nt.x+" "+nt.y;c+=o?qt.svg?"z":"x":""}return c||"M0 0"}var ht=document.documentElement.style,Ot="ActiveXObject"in window,yt=Ot&&!document.addEventListener,Nt="msLaunchUri"in navigator&&!("documentMode"in document),pe=An("webkit"),ge=An("android"),O=An("android 2")||An("android 3"),b=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),j=ge&&An("Google")&&b<537&&!("AudioNode"in window),ot=!!window.opera,gt=!Nt&&An("chrome"),rt=An("gecko")&&!pe&&!ot&&!Ot,Zt=!gt&&An("safari"),bt=An("phantom"),Ht="OTransition"in ht,Xt=navigator.platform.indexOf("Win")===0,wt=Ot&&"transition"in ht,Lt="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!O,ie="MozPerspective"in ht,Yt=!window.L_DISABLE_3D&&(wt||Lt||ie)&&!Ht&&!bt,Ct=typeof orientation<"u"||An("mobile"),le=Ct&&pe,H=Ct&&Lt,St=!window.PointerEvent&&window.MSPointerEvent,At=!!(window.PointerEvent||St),Ft="ontouchstart"in window||!!window.TouchEvent,vt=!window.L_NO_TOUCH&&(Ft||At),ut=Ct&&ot,Wt=Ct&&rt,ae=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,De=(function(){var i=!1;try{var o=Object.defineProperty({},"passive",{get:function(){i=!0}});window.addEventListener("testPassiveEventSupport",m,o),window.removeEventListener("testPassiveEventSupport",m,o)}catch{}return i})(),Te=(function(){return!!document.createElement("canvas").getContext})(),bn=!!(document.createElementNS&&ct("svg").createSVGRect),On=!!bn&&(function(){var i=document.createElement("div");return i.innerHTML="<svg/>",(i.firstChild&&i.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"})(),Ba=!bn&&(function(){try{var i=document.createElement("div");i.innerHTML='<v:shape adj="1"/>';var o=i.firstChild;return o.style.behavior="url(#default#VML)",o&&typeof o.adj=="object"}catch{return!1}})(),wi=navigator.platform.indexOf("Mac")===0,io=navigator.platform.indexOf("Linux")===0;function An(i){return navigator.userAgent.toLowerCase().indexOf(i)>=0}var qt={ie:Ot,ielt9:yt,edge:Nt,webkit:pe,android:ge,android23:O,androidStock:j,opera:ot,chrome:gt,gecko:rt,safari:Zt,phantom:bt,opera12:Ht,win:Xt,ie3d:wt,webkit3d:Lt,gecko3d:ie,any3d:Yt,mobile:Ct,mobileWebkit:le,mobileWebkit3d:H,msPointer:St,pointer:At,touch:vt,touchNative:Ft,mobileOpera:ut,mobileGecko:Wt,retina:ae,passiveEvents:De,canvas:Te,svg:bn,vml:Ba,inlineSvg:On,mac:wi,linux:io},_s=qt.msPointer?"MSPointerDown":"pointerdown",so=qt.msPointer?"MSPointerMove":"pointermove",vs=qt.msPointer?"MSPointerUp":"pointerup",ro=qt.msPointer?"MSPointerCancel":"pointercancel",lr={touchstart:_s,touchmove:so,touchend:vs,touchcancel:ro},Fa={touchstart:X,touchmove:tt,touchend:tt,touchcancel:tt},Ji={},za=!1;function ph(i,o,c){return o==="touchstart"&&et(),Fa[o]?(c=Fa[o].bind(this,c),i.addEventListener(lr[o],c,!1),c):(console.warn("wrong event specified:",o),m)}function mh(i,o,c){if(!lr[o]){console.warn("wrong event specified:",o);return}i.removeEventListener(lr[o],c,!1)}function gh(i){Ji[i.pointerId]=i}function I(i){Ji[i.pointerId]&&(Ji[i.pointerId]=i)}function W(i){delete Ji[i.pointerId]}function et(){za||(document.addEventListener(_s,gh,!0),document.addEventListener(so,I,!0),document.addEventListener(vs,W,!0),document.addEventListener(ro,W,!0),za=!0)}function tt(i,o){if(o.pointerType!==(o.MSPOINTER_TYPE_MOUSE||"mouse")){o.touches=[];for(var c in Ji)o.touches.push(Ji[c]);o.changedTouches=[o],i(o)}}function X(i,o){o.MSPOINTER_TYPE_TOUCH&&o.pointerType===o.MSPOINTER_TYPE_TOUCH&&nn(o),tt(i,o)}function Et(i){var o={},c,f;for(f in i)c=i[f],o[f]=c&&c.bind?c.bind(i):c;return i=o,o.type="dblclick",o.detail=2,o.isTrusted=!1,o._simulated=!0,o}var It=200;function Vt(i,o){i.addEventListener("dblclick",o);var c=0,f;function x(A){if(A.detail!==1){f=A.detail;return}if(!(A.pointerType==="mouse"||A.sourceCapabilities&&!A.sourceCapabilities.firesTouchEvents)){var F=Em(A);if(!(F.some(function(nt){return nt instanceof HTMLLabelElement&&nt.attributes.for})&&!F.some(function(nt){return nt instanceof HTMLInputElement||nt instanceof HTMLSelectElement}))){var J=Date.now();J-c<=It?(f++,f===2&&o(Et(A))):f=1,c=J}}}return i.addEventListener("click",x),{dblclick:o,simDblclick:x}}function Bt(i,o){i.removeEventListener("dblclick",o.dblclick),i.removeEventListener("click",o.simDblclick)}var ee=en(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),ne=en(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),Jt=ne==="webkitTransition"||ne==="OTransition"?ne+"End":"transitionend";function fe(i){return typeof i=="string"?document.getElementById(i):i}function xe(i,o){var c=i.style[o]||i.currentStyle&&i.currentStyle[o];if((!c||c==="auto")&&document.defaultView){var f=document.defaultView.getComputedStyle(i,null);c=f?f[o]:null}return c==="auto"?null:c}function Kt(i,o,c){var f=document.createElement(i);return f.className=o||"",c&&c.appendChild(f),f}function se(i){var o=i.parentNode;o&&o.removeChild(i)}function be(i){for(;i.firstChild;)i.removeChild(i.firstChild)}function Qt(i){var o=i.parentNode;o&&o.lastChild!==i&&o.appendChild(i)}function Le(i){var o=i.parentNode;o&&o.firstChild!==i&&o.insertBefore(i,o.firstChild)}function ve(i,o){if(i.classList!==void 0)return i.classList.contains(o);var c=si(i);return c.length>0&&new RegExp("(^|\\s)"+o+"(\\s|$)").test(c)}function te(i,o){if(i.classList!==void 0)for(var c=w(o),f=0,x=c.length;f<x;f++)i.classList.add(c[f]);else if(!ve(i,o)){var A=si(i);tn(i,(A?A+" ":"")+o)}}function ke(i,o){i.classList!==void 0?i.classList.remove(o):tn(i,E((" "+si(i)+" ").replace(" "+o+" "," ")))}function tn(i,o){i.className.baseVal===void 0?i.className=o:i.className.baseVal=o}function si(i){return i.correspondingElement&&(i=i.correspondingElement),i.className.baseVal===void 0?i.className:i.className.baseVal}function ye(i,o){"opacity"in i.style?i.style.opacity=o:"filter"in i.style&&_n(i,o)}function _n(i,o){var c=!1,f="DXImageTransform.Microsoft.Alpha";try{c=i.filters.item(f)}catch{if(o===1)return}o=Math.round(o*100),c?(c.Enabled=o!==100,c.Opacity=o):i.style.filter+=" progid:"+f+"(opacity="+o+")"}function en(i){for(var o=document.documentElement.style,c=0;c<i.length;c++)if(i[c]in o)return i[c];return!1}function Fe(i,o,c){var f=o||new G(0,0);i.style[ee]=(qt.ie3d?"translate("+f.x+"px,"+f.y+"px)":"translate3d("+f.x+"px,"+f.y+"px,0)")+(c?" scale("+c+")":"")}function Ee(i,o){i._leaflet_pos=o,qt.any3d?Fe(i,o):(i.style.left=o.x+"px",i.style.top=o.y+"px")}function Yn(i){return i._leaflet_pos||new G(0,0)}var Cn,oo,_h;if("onselectstart"in document)Cn=function(){he(window,"selectstart",nn)},oo=function(){Ue(window,"selectstart",nn)};else{var ao=en(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);Cn=function(){if(ao){var i=document.documentElement.style;_h=i[ao],i[ao]="none"}},oo=function(){ao&&(document.documentElement.style[ao]=_h,_h=void 0)}}function vh(){he(window,"dragstart",nn)}function yh(){Ue(window,"dragstart",nn)}var Ha,Eh;function xh(i){for(;i.tabIndex===-1;)i=i.parentNode;i.style&&(Va(),Ha=i,Eh=i.style.outlineStyle,i.style.outlineStyle="none",he(window,"keydown",Va))}function Va(){Ha&&(Ha.style.outlineStyle=Eh,Ha=void 0,Eh=void 0,Ue(window,"keydown",Va))}function vm(i){do i=i.parentNode;while((!i.offsetWidth||!i.offsetHeight)&&i!==document.body);return i}function wh(i){var o=i.getBoundingClientRect();return{x:o.width/i.offsetWidth||1,y:o.height/i.offsetHeight||1,boundingClientRect:o}}var sT={__proto__:null,TRANSFORM:ee,TRANSITION:ne,TRANSITION_END:Jt,get:fe,getStyle:xe,create:Kt,remove:se,empty:be,toFront:Qt,toBack:Le,hasClass:ve,addClass:te,removeClass:ke,setClass:tn,getClass:si,setOpacity:ye,testProp:en,setTransform:Fe,setPosition:Ee,getPosition:Yn,get disableTextSelection(){return Cn},get enableTextSelection(){return oo},disableImageDrag:vh,enableImageDrag:yh,preventOutline:xh,restoreOutline:Va,getSizedParentNode:vm,getScale:wh};function he(i,o,c,f){if(o&&typeof o=="object")for(var x in o)Mh(i,x,o[x],c);else{o=w(o);for(var A=0,F=o.length;A<F;A++)Mh(i,o[A],c,f)}return this}var ri="_leaflet_events";function Ue(i,o,c,f){if(arguments.length===1)ym(i),delete i[ri];else if(o&&typeof o=="object")for(var x in o)Th(i,x,o[x],c);else if(o=w(o),arguments.length===2)ym(i,function(J){return M(o,J)!==-1});else for(var A=0,F=o.length;A<F;A++)Th(i,o[A],c,f);return this}function ym(i,o){for(var c in i[ri]){var f=c.split(/\d/)[0];(!o||o(f))&&Th(i,f,null,null,c)}}var Sh={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function Mh(i,o,c,f){var x=o+u(c)+(f?"_"+u(f):"");if(i[ri]&&i[ri][x])return this;var A=function(J){return c.call(f||i,J||window.event)},F=A;!qt.touchNative&&qt.pointer&&o.indexOf("touch")===0?A=ph(i,o,A):qt.touch&&o==="dblclick"?A=Vt(i,A):"addEventListener"in i?o==="touchstart"||o==="touchmove"||o==="wheel"||o==="mousewheel"?i.addEventListener(Sh[o]||o,A,qt.passiveEvents?{passive:!1}:!1):o==="mouseenter"||o==="mouseleave"?(A=function(J){J=J||window.event,Ah(i,J)&&F(J)},i.addEventListener(Sh[o],A,!1)):i.addEventListener(o,F,!1):i.attachEvent("on"+o,A),i[ri]=i[ri]||{},i[ri][x]=A}function Th(i,o,c,f,x){x=x||o+u(c)+(f?"_"+u(f):"");var A=i[ri]&&i[ri][x];if(!A)return this;!qt.touchNative&&qt.pointer&&o.indexOf("touch")===0?mh(i,o,A):qt.touch&&o==="dblclick"?Bt(i,A):"removeEventListener"in i?i.removeEventListener(Sh[o]||o,A,!1):i.detachEvent("on"+o,A),i[ri][x]=null}function ys(i){return i.stopPropagation?i.stopPropagation():i.originalEvent?i.originalEvent._stopped=!0:i.cancelBubble=!0,this}function bh(i){return Mh(i,"wheel",ys),this}function lo(i){return he(i,"mousedown touchstart dblclick contextmenu",ys),i._leaflet_disable_click=!0,this}function nn(i){return i.preventDefault?i.preventDefault():i.returnValue=!1,this}function Es(i){return nn(i),ys(i),this}function Em(i){if(i.composedPath)return i.composedPath();for(var o=[],c=i.target;c;)o.push(c),c=c.parentNode;return o}function xm(i,o){if(!o)return new G(i.clientX,i.clientY);var c=wh(o),f=c.boundingClientRect;return new G((i.clientX-f.left)/c.x-o.clientLeft,(i.clientY-f.top)/c.y-o.clientTop)}var rT=qt.linux&&qt.chrome?window.devicePixelRatio:qt.mac?window.devicePixelRatio*3:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function wm(i){return qt.edge?i.wheelDeltaY/2:i.deltaY&&i.deltaMode===0?-i.deltaY/rT:i.deltaY&&i.deltaMode===1?-i.deltaY*20:i.deltaY&&i.deltaMode===2?-i.deltaY*60:i.deltaX||i.deltaZ?0:i.wheelDelta?(i.wheelDeltaY||i.wheelDelta)/2:i.detail&&Math.abs(i.detail)<32765?-i.detail*20:i.detail?i.detail/-32765*60:0}function Ah(i,o){var c=o.relatedTarget;if(!c)return!0;try{for(;c&&c!==i;)c=c.parentNode}catch{return!1}return c!==i}var oT={__proto__:null,on:he,off:Ue,stopPropagation:ys,disableScrollPropagation:bh,disableClickPropagation:lo,preventDefault:nn,stop:Es,getPropagationPath:Em,getMousePosition:xm,getWheelDelta:wm,isExternalTarget:Ah,addListener:he,removeListener:Ue},Sm=dt.extend({run:function(i,o,c,f){this.stop(),this._el=i,this._inProgress=!0,this._duration=c||.25,this._easeOutPower=1/Math.max(f||.5,.2),this._startPos=Yn(i),this._offset=o.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=k(this._animate,this),this._step()},_step:function(i){var o=+new Date-this._startTime,c=this._duration*1e3;o<c?this._runFrame(this._easeOut(o/c),i):(this._runFrame(1),this._complete())},_runFrame:function(i,o){var c=this._startPos.add(this._offset.multiplyBy(i));o&&c._round(),Ee(this._el,c),this.fire("step")},_complete:function(){Z(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(i){return 1-Math.pow(1-i,this._easeOutPower)}}),we=dt.extend({options:{crs:C,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(i,o){o=S(this,o),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(i),this._initLayout(),this._onResize=l(this._onResize,this),this._initEvents(),o.maxBounds&&this.setMaxBounds(o.maxBounds),o.zoom!==void 0&&(this._zoom=this._limitZoom(o.zoom)),o.center&&o.zoom!==void 0&&this.setView(st(o.center),o.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=ne&&qt.any3d&&!qt.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),he(this._proxy,Jt,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(i,o,c){if(o=o===void 0?this._zoom:this._limitZoom(o),i=this._limitCenter(st(i),o,this.options.maxBounds),c=c||{},this._stop(),this._loaded&&!c.reset&&c!==!0){c.animate!==void 0&&(c.zoom=r({animate:c.animate},c.zoom),c.pan=r({animate:c.animate,duration:c.duration},c.pan));var f=this._zoom!==o?this._tryAnimatedZoom&&this._tryAnimatedZoom(i,o,c.zoom):this._tryAnimatedPan(i,c.pan);if(f)return clearTimeout(this._sizeTimer),this}return this._resetView(i,o,c.pan&&c.pan.noMoveStart),this},setZoom:function(i,o){return this._loaded?this.setView(this.getCenter(),i,{zoom:o}):(this._zoom=i,this)},zoomIn:function(i,o){return i=i||(qt.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+i,o)},zoomOut:function(i,o){return i=i||(qt.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-i,o)},setZoomAround:function(i,o,c){var f=this.getZoomScale(o),x=this.getSize().divideBy(2),A=i instanceof G?i:this.latLngToContainerPoint(i),F=A.subtract(x).multiplyBy(1-1/f),J=this.containerPointToLatLng(x.add(F));return this.setView(J,o,{zoom:c})},_getBoundsCenterZoom:function(i,o){o=o||{},i=i.getBounds?i.getBounds():Rt(i);var c=lt(o.paddingTopLeft||o.padding||[0,0]),f=lt(o.paddingBottomRight||o.padding||[0,0]),x=this.getBoundsZoom(i,!1,c.add(f));if(x=typeof o.maxZoom=="number"?Math.min(o.maxZoom,x):x,x===1/0)return{center:i.getCenter(),zoom:x};var A=f.subtract(c).divideBy(2),F=this.project(i.getSouthWest(),x),J=this.project(i.getNorthEast(),x),nt=this.unproject(F.add(J).divideBy(2).add(A),x);return{center:nt,zoom:x}},fitBounds:function(i,o){if(i=Rt(i),!i.isValid())throw new Error("Bounds are not valid.");var c=this._getBoundsCenterZoom(i,o);return this.setView(c.center,c.zoom,o)},fitWorld:function(i){return this.fitBounds([[-90,-180],[90,180]],i)},panTo:function(i,o){return this.setView(i,this._zoom,{pan:o})},panBy:function(i,o){if(i=lt(i).round(),o=o||{},!i.x&&!i.y)return this.fire("moveend");if(o.animate!==!0&&!this.getSize().contains(i))return this._resetView(this.unproject(this.project(this.getCenter()).add(i)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new Sm,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),o.noMoveStart||this.fire("movestart"),o.animate!==!1){te(this._mapPane,"leaflet-pan-anim");var c=this._getMapPanePos().subtract(i).round();this._panAnim.run(this._mapPane,c,o.duration||.25,o.easeLinearity)}else this._rawPanBy(i),this.fire("move").fire("moveend");return this},flyTo:function(i,o,c){if(c=c||{},c.animate===!1||!qt.any3d)return this.setView(i,o,c);this._stop();var f=this.project(this.getCenter()),x=this.project(i),A=this.getSize(),F=this._zoom;i=st(i),o=o===void 0?F:o;var J=Math.max(A.x,A.y),nt=J*this.getZoomScale(F,o),mt=x.distanceTo(f)||1,kt=1.42,re=kt*kt;function me(We){var tl=We?-1:1,qT=We?nt:J,QT=nt*nt-J*J+tl*re*re*mt*mt,jT=2*qT*re*mt,Bh=QT/jT,ig=Math.sqrt(Bh*Bh+1)-Bh,JT=ig<1e-9?-18:Math.log(ig);return JT}function dn(We){return(Math.exp(We)-Math.exp(-We))/2}function je(We){return(Math.exp(We)+Math.exp(-We))/2}function Bn(We){return dn(We)/je(We)}var vn=me(0);function pr(We){return J*(je(vn)/je(vn+kt*We))}function WT(We){return J*(je(vn)*Bn(vn+kt*We)-dn(vn))/re}function ZT(We){return 1-Math.pow(1-We,1.5)}var XT=Date.now(),eg=(me(1)-vn)/kt,YT=c.duration?1e3*c.duration:1e3*eg*.8;function ng(){var We=(Date.now()-XT)/YT,tl=ZT(We)*eg;We<=1?(this._flyToFrame=k(ng,this),this._move(this.unproject(f.add(x.subtract(f).multiplyBy(WT(tl)/mt)),F),this.getScaleZoom(J/pr(tl),F),{flyTo:!0})):this._move(i,o)._moveEnd(!0)}return this._moveStart(!0,c.noMoveStart),ng.call(this),this},flyToBounds:function(i,o){var c=this._getBoundsCenterZoom(i,o);return this.flyTo(c.center,c.zoom,o)},setMaxBounds:function(i){return i=Rt(i),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),i.isValid()?(this.options.maxBounds=i,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},setMinZoom:function(i){var o=this.options.minZoom;return this.options.minZoom=i,this._loaded&&o!==i&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(i):this},setMaxZoom:function(i){var o=this.options.maxZoom;return this.options.maxZoom=i,this._loaded&&o!==i&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(i):this},panInsideBounds:function(i,o){this._enforcingBounds=!0;var c=this.getCenter(),f=this._limitCenter(c,this._zoom,Rt(i));return c.equals(f)||this.panTo(f,o),this._enforcingBounds=!1,this},panInside:function(i,o){o=o||{};var c=lt(o.paddingTopLeft||o.padding||[0,0]),f=lt(o.paddingBottomRight||o.padding||[0,0]),x=this.project(this.getCenter()),A=this.project(i),F=this.getPixelBounds(),J=Gt([F.min.add(c),F.max.subtract(f)]),nt=J.getSize();if(!J.contains(A)){this._enforcingBounds=!0;var mt=A.subtract(J.getCenter()),kt=J.extend(A).getSize().subtract(nt);x.x+=mt.x<0?-kt.x:kt.x,x.y+=mt.y<0?-kt.y:kt.y,this.panTo(this.unproject(x),o),this._enforcingBounds=!1}return this},invalidateSize:function(i){if(!this._loaded)return this;i=r({animate:!1,pan:!0},i===!0?{animate:!0}:i);var o=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var c=this.getSize(),f=o.divideBy(2).round(),x=c.divideBy(2).round(),A=f.subtract(x);return!A.x&&!A.y?this:(i.animate&&i.pan?this.panBy(A):(i.pan&&this._rawPanBy(A),this.fire("move"),i.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(l(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:o,newSize:c}))},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(i){if(i=this._locateOptions=r({timeout:1e4,watch:!1},i),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var o=l(this._handleGeolocationResponse,this),c=l(this._handleGeolocationError,this);return i.watch?this._locationWatchId=navigator.geolocation.watchPosition(o,c,i):navigator.geolocation.getCurrentPosition(o,c,i),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(i){if(this._container._leaflet_id){var o=i.code,c=i.message||(o===1?"permission denied":o===2?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:o,message:"Geolocation error: "+c+"."})}},_handleGeolocationResponse:function(i){if(this._container._leaflet_id){var o=i.coords.latitude,c=i.coords.longitude,f=new Y(o,c),x=f.toBounds(i.coords.accuracy*2),A=this._locateOptions;if(A.setView){var F=this.getBoundsZoom(x);this.setView(f,A.maxZoom?Math.min(F,A.maxZoom):F)}var J={latlng:f,bounds:x,timestamp:i.timestamp};for(var nt in i.coords)typeof i.coords[nt]=="number"&&(J[nt]=i.coords[nt]);this.fire("locationfound",J)}},addHandler:function(i,o){if(!o)return this;var c=this[i]=new o(this);return this._handlers.push(c),this.options[i]&&c.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(),se(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(Z(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload");var i;for(i in this._layers)this._layers[i].remove();for(i in this._panes)se(this._panes[i]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(i,o){var c="leaflet-pane"+(i?" leaflet-"+i.replace("Pane","")+"-pane":""),f=Kt("div",c,o||this._mapPane);return i&&(this._panes[i]=f),f},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var i=this.getPixelBounds(),o=this.unproject(i.getBottomLeft()),c=this.unproject(i.getTopRight());return new pt(o,c)},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(i,o,c){i=Rt(i),c=lt(c||[0,0]);var f=this.getZoom()||0,x=this.getMinZoom(),A=this.getMaxZoom(),F=i.getNorthWest(),J=i.getSouthEast(),nt=this.getSize().subtract(c),mt=Gt(this.project(J,f),this.project(F,f)).getSize(),kt=qt.any3d?this.options.zoomSnap:1,re=nt.x/mt.x,me=nt.y/mt.y,dn=o?Math.max(re,me):Math.min(re,me);return f=this.getScaleZoom(dn,f),kt&&(f=Math.round(f/(kt/100))*(kt/100),f=o?Math.ceil(f/kt)*kt:Math.floor(f/kt)*kt),Math.max(x,Math.min(A,f))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new G(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(i,o){var c=this._getTopLeftPoint(i,o);return new Mt(c,c.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(i){return this.options.crs.getProjectedBounds(i===void 0?this.getZoom():i)},getPane:function(i){return typeof i=="string"?this._panes[i]:i},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(i,o){var c=this.options.crs;return o=o===void 0?this._zoom:o,c.scale(i)/c.scale(o)},getScaleZoom:function(i,o){var c=this.options.crs;o=o===void 0?this._zoom:o;var f=c.zoom(i*c.scale(o));return isNaN(f)?1/0:f},project:function(i,o){return o=o===void 0?this._zoom:o,this.options.crs.latLngToPoint(st(i),o)},unproject:function(i,o){return o=o===void 0?this._zoom:o,this.options.crs.pointToLatLng(lt(i),o)},layerPointToLatLng:function(i){var o=lt(i).add(this.getPixelOrigin());return this.unproject(o)},latLngToLayerPoint:function(i){var o=this.project(st(i))._round();return o._subtract(this.getPixelOrigin())},wrapLatLng:function(i){return this.options.crs.wrapLatLng(st(i))},wrapLatLngBounds:function(i){return this.options.crs.wrapLatLngBounds(Rt(i))},distance:function(i,o){return this.options.crs.distance(st(i),st(o))},containerPointToLayerPoint:function(i){return lt(i).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(i){return lt(i).add(this._getMapPanePos())},containerPointToLatLng:function(i){var o=this.containerPointToLayerPoint(lt(i));return this.layerPointToLatLng(o)},latLngToContainerPoint:function(i){return this.layerPointToContainerPoint(this.latLngToLayerPoint(st(i)))},mouseEventToContainerPoint:function(i){return xm(i,this._container)},mouseEventToLayerPoint:function(i){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(i))},mouseEventToLatLng:function(i){return this.layerPointToLatLng(this.mouseEventToLayerPoint(i))},_initContainer:function(i){var o=this._container=fe(i);if(o){if(o._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");he(o,"scroll",this._onScroll,this),this._containerId=u(o)},_initLayout:function(){var i=this._container;this._fadeAnimated=this.options.fadeAnimation&&qt.any3d,te(i,"leaflet-container"+(qt.touch?" leaflet-touch":"")+(qt.retina?" leaflet-retina":"")+(qt.ielt9?" leaflet-oldie":"")+(qt.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var o=xe(i,"position");o!=="absolute"&&o!=="relative"&&o!=="fixed"&&o!=="sticky"&&(i.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var i=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),Ee(this._mapPane,new G(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(te(i.markerPane,"leaflet-zoom-hide"),te(i.shadowPane,"leaflet-zoom-hide"))},_resetView:function(i,o,c){Ee(this._mapPane,new G(0,0));var f=!this._loaded;this._loaded=!0,o=this._limitZoom(o),this.fire("viewprereset");var x=this._zoom!==o;this._moveStart(x,c)._move(i,o)._moveEnd(x),this.fire("viewreset"),f&&this.fire("load")},_moveStart:function(i,o){return i&&this.fire("zoomstart"),o||this.fire("movestart"),this},_move:function(i,o,c,f){o===void 0&&(o=this._zoom);var x=this._zoom!==o;return this._zoom=o,this._lastCenter=i,this._pixelOrigin=this._getNewPixelOrigin(i),f?c&&c.pinch&&this.fire("zoom",c):((x||c&&c.pinch)&&this.fire("zoom",c),this.fire("move",c)),this},_moveEnd:function(i){return i&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return Z(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(i){Ee(this._mapPane,this._getMapPanePos().subtract(i))},_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(i){this._targets={},this._targets[u(this._container)]=this;var o=i?Ue:he;o(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&o(window,"resize",this._onResize,this),qt.any3d&&this.options.transform3DLimit&&(i?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){Z(this._resizeRequest),this._resizeRequest=k(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var i=this._getMapPanePos();Math.max(Math.abs(i.x),Math.abs(i.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(i,o){for(var c=[],f,x=o==="mouseout"||o==="mouseover",A=i.target||i.srcElement,F=!1;A;){if(f=this._targets[u(A)],f&&(o==="click"||o==="preclick")&&this._draggableMoved(f)){F=!0;break}if(f&&f.listens(o,!0)&&(x&&!Ah(A,i)||(c.push(f),x))||A===this._container)break;A=A.parentNode}return!c.length&&!F&&!x&&this.listens(o,!0)&&(c=[this]),c},_isClickDisabled:function(i){for(;i&&i!==this._container;){if(i._leaflet_disable_click)return!0;i=i.parentNode}},_handleDOMEvent:function(i){var o=i.target||i.srcElement;if(!(!this._loaded||o._leaflet_disable_events||i.type==="click"&&this._isClickDisabled(o))){var c=i.type;c==="mousedown"&&xh(o),this._fireDOMEvent(i,c)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(i,o,c){if(i.type==="click"){var f=r({},i);f.type="preclick",this._fireDOMEvent(f,f.type,c)}var x=this._findEventTargets(i,o);if(c){for(var A=[],F=0;F<c.length;F++)c[F].listens(o,!0)&&A.push(c[F]);x=A.concat(x)}if(x.length){o==="contextmenu"&&nn(i);var J=x[0],nt={originalEvent:i};if(i.type!=="keypress"&&i.type!=="keydown"&&i.type!=="keyup"){var mt=J.getLatLng&&(!J._radius||J._radius<=10);nt.containerPoint=mt?this.latLngToContainerPoint(J.getLatLng()):this.mouseEventToContainerPoint(i),nt.layerPoint=this.containerPointToLayerPoint(nt.containerPoint),nt.latlng=mt?J.getLatLng():this.layerPointToLatLng(nt.layerPoint)}for(F=0;F<x.length;F++)if(x[F].fire(o,nt,!0),nt.originalEvent._stopped||x[F].options.bubblingMouseEvents===!1&&M(this._mouseEvents,o)!==-1)return}},_draggableMoved:function(i){return i=i.dragging&&i.dragging.enabled()?i:this,i.dragging&&i.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var i=0,o=this._handlers.length;i<o;i++)this._handlers[i].disable()},whenReady:function(i,o){return this._loaded?i.call(o||this,{target:this}):this.on("load",i,o),this},_getMapPanePos:function(){return Yn(this._mapPane)||new G(0,0)},_moved:function(){var i=this._getMapPanePos();return i&&!i.equals([0,0])},_getTopLeftPoint:function(i,o){var c=i&&o!==void 0?this._getNewPixelOrigin(i,o):this.getPixelOrigin();return c.subtract(this._getMapPanePos())},_getNewPixelOrigin:function(i,o){var c=this.getSize()._divideBy(2);return this.project(i,o)._subtract(c)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(i,o,c){var f=this._getNewPixelOrigin(c,o);return this.project(i,o)._subtract(f)},_latLngBoundsToNewLayerBounds:function(i,o,c){var f=this._getNewPixelOrigin(c,o);return Gt([this.project(i.getSouthWest(),o)._subtract(f),this.project(i.getNorthWest(),o)._subtract(f),this.project(i.getSouthEast(),o)._subtract(f),this.project(i.getNorthEast(),o)._subtract(f)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(i){return this.latLngToLayerPoint(i).subtract(this._getCenterLayerPoint())},_limitCenter:function(i,o,c){if(!c)return i;var f=this.project(i,o),x=this.getSize().divideBy(2),A=new Mt(f.subtract(x),f.add(x)),F=this._getBoundsOffset(A,c,o);return Math.abs(F.x)<=1&&Math.abs(F.y)<=1?i:this.unproject(f.add(F),o)},_limitOffset:function(i,o){if(!o)return i;var c=this.getPixelBounds(),f=new Mt(c.min.add(i),c.max.add(i));return i.add(this._getBoundsOffset(f,o))},_getBoundsOffset:function(i,o,c){var f=Gt(this.project(o.getNorthEast(),c),this.project(o.getSouthWest(),c)),x=f.min.subtract(i.min),A=f.max.subtract(i.max),F=this._rebound(x.x,-A.x),J=this._rebound(x.y,-A.y);return new G(F,J)},_rebound:function(i,o){return i+o>0?Math.round(i-o)/2:Math.max(0,Math.ceil(i))-Math.max(0,Math.floor(o))},_limitZoom:function(i){var o=this.getMinZoom(),c=this.getMaxZoom(),f=qt.any3d?this.options.zoomSnap:1;return f&&(i=Math.round(i/f)*f),Math.max(o,Math.min(c,i))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){ke(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(i,o){var c=this._getCenterOffset(i)._trunc();return(o&&o.animate)!==!0&&!this.getSize().contains(c)?!1:(this.panBy(c,o),!0)},_createAnimProxy:function(){var i=this._proxy=Kt("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(i),this.on("zoomanim",function(o){var c=ee,f=this._proxy.style[c];Fe(this._proxy,this.project(o.center,o.zoom),this.getZoomScale(o.zoom,1)),f===this._proxy.style[c]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){se(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var i=this.getCenter(),o=this.getZoom();Fe(this._proxy,this.project(i,o),this.getZoomScale(o,1))},_catchTransitionEnd:function(i){this._animatingZoom&&i.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(i,o,c){if(this._animatingZoom)return!0;if(c=c||{},!this._zoomAnimated||c.animate===!1||this._nothingToAnimate()||Math.abs(o-this._zoom)>this.options.zoomAnimationThreshold)return!1;var f=this.getZoomScale(o),x=this._getCenterOffset(i)._divideBy(1-1/f);return c.animate!==!0&&!this.getSize().contains(x)?!1:(k(function(){this._moveStart(!0,c.noMoveStart||!1)._animateZoom(i,o,!0)},this),!0)},_animateZoom:function(i,o,c,f){this._mapPane&&(c&&(this._animatingZoom=!0,this._animateToCenter=i,this._animateToZoom=o,te(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:i,zoom:o,noUpdate:f}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(l(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&ke(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 aT(i,o){return new we(i,o)}var qn=V.extend({options:{position:"topright"},initialize:function(i){S(this,i)},getPosition:function(){return this.options.position},setPosition:function(i){var o=this._map;return o&&o.removeControl(this),this.options.position=i,o&&o.addControl(this),this},getContainer:function(){return this._container},addTo:function(i){this.remove(),this._map=i;var o=this._container=this.onAdd(i),c=this.getPosition(),f=i._controlCorners[c];return te(o,"leaflet-control"),c.indexOf("bottom")!==-1?f.insertBefore(o,f.firstChild):f.appendChild(o),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(se(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(i){this._map&&i&&i.screenX>0&&i.screenY>0&&this._map.getContainer().focus()}}),co=function(i){return new qn(i)};we.include({addControl:function(i){return i.addTo(this),this},removeControl:function(i){return i.remove(),this},_initControlPos:function(){var i=this._controlCorners={},o="leaflet-",c=this._controlContainer=Kt("div",o+"control-container",this._container);function f(x,A){var F=o+x+" "+o+A;i[x+A]=Kt("div",F,c)}f("top","left"),f("top","right"),f("bottom","left"),f("bottom","right")},_clearControlPos:function(){for(var i in this._controlCorners)se(this._controlCorners[i]);se(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var Mm=qn.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(i,o,c,f){return c<f?-1:f<c?1:0}},initialize:function(i,o,c){S(this,c),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1;for(var f in i)this._addLayer(i[f],f);for(f in o)this._addLayer(o[f],f,!0)},onAdd:function(i){this._initLayout(),this._update(),this._map=i,i.on("zoomend",this._checkDisabledLayers,this);for(var o=0;o<this._layers.length;o++)this._layers[o].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(i){return qn.prototype.addTo.call(this,i),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var i=0;i<this._layers.length;i++)this._layers[i].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(i,o){return this._addLayer(i,o),this._map?this._update():this},addOverlay:function(i,o){return this._addLayer(i,o,!0),this._map?this._update():this},removeLayer:function(i){i.off("add remove",this._onLayerChange,this);var o=this._getLayer(u(i));return o&&this._layers.splice(this._layers.indexOf(o),1),this._map?this._update():this},expand:function(){te(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var i=this._map.getSize().y-(this._container.offsetTop+50);return i<this._section.clientHeight?(te(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=i+"px"):ke(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return ke(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var i="leaflet-control-layers",o=this._container=Kt("div",i),c=this.options.collapsed;o.setAttribute("aria-haspopup",!0),lo(o),bh(o);var f=this._section=Kt("section",i+"-list");c&&(this._map.on("click",this.collapse,this),he(o,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var x=this._layersLink=Kt("a",i+"-toggle",o);x.href="#",x.title="Layers",x.setAttribute("role","button"),he(x,{keydown:function(A){A.keyCode===13&&this._expandSafely()},click:function(A){nn(A),this._expandSafely()}},this),c||this.expand(),this._baseLayersList=Kt("div",i+"-base",f),this._separator=Kt("div",i+"-separator",f),this._overlaysList=Kt("div",i+"-overlays",f),o.appendChild(f)},_getLayer:function(i){for(var o=0;o<this._layers.length;o++)if(this._layers[o]&&u(this._layers[o].layer)===i)return this._layers[o]},_addLayer:function(i,o,c){this._map&&i.on("add remove",this._onLayerChange,this),this._layers.push({layer:i,name:o,overlay:c}),this.options.sortLayers&&this._layers.sort(l(function(f,x){return this.options.sortFunction(f.layer,x.layer,f.name,x.name)},this)),this.options.autoZIndex&&i.setZIndex&&(this._lastZIndex++,i.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;be(this._baseLayersList),be(this._overlaysList),this._layerControlInputs=[];var i,o,c,f,x=0;for(c=0;c<this._layers.length;c++)f=this._layers[c],this._addItem(f),o=o||f.overlay,i=i||!f.overlay,x+=f.overlay?0:1;return this.options.hideSingleBase&&(i=i&&x>1,this._baseLayersList.style.display=i?"":"none"),this._separator.style.display=o&&i?"":"none",this},_onLayerChange:function(i){this._handlingClick||this._update();var o=this._getLayer(u(i.target)),c=o.overlay?i.type==="add"?"overlayadd":"overlayremove":i.type==="add"?"baselayerchange":null;c&&this._map.fire(c,o)},_createRadioElement:function(i,o){var c='<input type="radio" class="leaflet-control-layers-selector" name="'+i+'"'+(o?' checked="checked"':"")+"/>",f=document.createElement("div");return f.innerHTML=c,f.firstChild},_addItem:function(i){var o=document.createElement("label"),c=this._map.hasLayer(i.layer),f;i.overlay?(f=document.createElement("input"),f.type="checkbox",f.className="leaflet-control-layers-selector",f.defaultChecked=c):f=this._createRadioElement("leaflet-base-layers_"+u(this),c),this._layerControlInputs.push(f),f.layerId=u(i.layer),he(f,"click",this._onInputClick,this);var x=document.createElement("span");x.innerHTML=" "+i.name;var A=document.createElement("span");o.appendChild(A),A.appendChild(f),A.appendChild(x);var F=i.overlay?this._overlaysList:this._baseLayersList;return F.appendChild(o),this._checkDisabledLayers(),o},_onInputClick:function(){if(!this._preventClick){var i=this._layerControlInputs,o,c,f=[],x=[];this._handlingClick=!0;for(var A=i.length-1;A>=0;A--)o=i[A],c=this._getLayer(o.layerId).layer,o.checked?f.push(c):o.checked||x.push(c);for(A=0;A<x.length;A++)this._map.hasLayer(x[A])&&this._map.removeLayer(x[A]);for(A=0;A<f.length;A++)this._map.hasLayer(f[A])||this._map.addLayer(f[A]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var i=this._layerControlInputs,o,c,f=this._map.getZoom(),x=i.length-1;x>=0;x--)o=i[x],c=this._getLayer(o.layerId).layer,o.disabled=c.options.minZoom!==void 0&&f<c.options.minZoom||c.options.maxZoom!==void 0&&f>c.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var i=this._section;this._preventClick=!0,he(i,"click",nn),this.expand();var o=this;setTimeout(function(){Ue(i,"click",nn),o._preventClick=!1})}}),lT=function(i,o,c){return new Mm(i,o,c)},Ch=qn.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">−</span>',zoomOutTitle:"Zoom out"},onAdd:function(i){var o="leaflet-control-zoom",c=Kt("div",o+" leaflet-bar"),f=this.options;return this._zoomInButton=this._createButton(f.zoomInText,f.zoomInTitle,o+"-in",c,this._zoomIn),this._zoomOutButton=this._createButton(f.zoomOutText,f.zoomOutTitle,o+"-out",c,this._zoomOut),this._updateDisabled(),i.on("zoomend zoomlevelschange",this._updateDisabled,this),c},onRemove:function(i){i.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(i){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(i.shiftKey?3:1))},_zoomOut:function(i){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(i.shiftKey?3:1))},_createButton:function(i,o,c,f,x){var A=Kt("a",c,f);return A.innerHTML=i,A.href="#",A.title=o,A.setAttribute("role","button"),A.setAttribute("aria-label",o),lo(A),he(A,"click",Es),he(A,"click",x,this),he(A,"click",this._refocusOnMap,this),A},_updateDisabled:function(){var i=this._map,o="leaflet-disabled";ke(this._zoomInButton,o),ke(this._zoomOutButton,o),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||i._zoom===i.getMinZoom())&&(te(this._zoomOutButton,o),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||i._zoom===i.getMaxZoom())&&(te(this._zoomInButton,o),this._zoomInButton.setAttribute("aria-disabled","true"))}});we.mergeOptions({zoomControl:!0}),we.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new Ch,this.addControl(this.zoomControl))});var cT=function(i){return new Ch(i)},Tm=qn.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(i){var o="leaflet-control-scale",c=Kt("div",o),f=this.options;return this._addScales(f,o+"-line",c),i.on(f.updateWhenIdle?"moveend":"move",this._update,this),i.whenReady(this._update,this),c},onRemove:function(i){i.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(i,o,c){i.metric&&(this._mScale=Kt("div",o,c)),i.imperial&&(this._iScale=Kt("div",o,c))},_update:function(){var i=this._map,o=i.getSize().y/2,c=i.distance(i.containerPointToLatLng([0,o]),i.containerPointToLatLng([this.options.maxWidth,o]));this._updateScales(c)},_updateScales:function(i){this.options.metric&&i&&this._updateMetric(i),this.options.imperial&&i&&this._updateImperial(i)},_updateMetric:function(i){var o=this._getRoundNum(i),c=o<1e3?o+" m":o/1e3+" km";this._updateScale(this._mScale,c,o/i)},_updateImperial:function(i){var o=i*3.2808399,c,f,x;o>5280?(c=o/5280,f=this._getRoundNum(c),this._updateScale(this._iScale,f+" mi",f/c)):(x=this._getRoundNum(o),this._updateScale(this._iScale,x+" ft",x/o))},_updateScale:function(i,o,c){i.style.width=Math.round(this.options.maxWidth*c)+"px",i.innerHTML=o},_getRoundNum:function(i){var o=Math.pow(10,(Math.floor(i)+"").length-1),c=i/o;return c=c>=10?10:c>=5?5:c>=3?3:c>=2?2:1,o*c}}),hT=function(i){return new Tm(i)},uT='<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>',Ph=qn.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(qt.inlineSvg?uT+" ":"")+"Leaflet</a>"},initialize:function(i){S(this,i),this._attributions={}},onAdd:function(i){i.attributionControl=this,this._container=Kt("div","leaflet-control-attribution"),lo(this._container);for(var o in i._layers)i._layers[o].getAttribution&&this.addAttribution(i._layers[o].getAttribution());return this._update(),i.on("layeradd",this._addAttribution,this),this._container},onRemove:function(i){i.off("layeradd",this._addAttribution,this)},_addAttribution:function(i){i.layer.getAttribution&&(this.addAttribution(i.layer.getAttribution()),i.layer.once("remove",function(){this.removeAttribution(i.layer.getAttribution())},this))},setPrefix:function(i){return this.options.prefix=i,this._update(),this},addAttribution:function(i){return i?(this._attributions[i]||(this._attributions[i]=0),this._attributions[i]++,this._update(),this):this},removeAttribution:function(i){return i?(this._attributions[i]&&(this._attributions[i]--,this._update()),this):this},_update:function(){if(this._map){var i=[];for(var o in this._attributions)this._attributions[o]&&i.push(o);var c=[];this.options.prefix&&c.push(this.options.prefix),i.length&&c.push(i.join(", ")),this._container.innerHTML=c.join(' <span aria-hidden="true">|</span> ')}}});we.mergeOptions({attributionControl:!0}),we.addInitHook(function(){this.options.attributionControl&&new Ph().addTo(this)});var dT=function(i){return new Ph(i)};qn.Layers=Mm,qn.Zoom=Ch,qn.Scale=Tm,qn.Attribution=Ph,co.layers=lT,co.zoom=cT,co.scale=hT,co.attribution=dT;var oi=V.extend({initialize:function(i){this._map=i},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}});oi.addTo=function(i,o){return i.addHandler(o,this),this};var fT={Events:K},bm=qt.touch?"touchstart mousedown":"mousedown",Ki=dt.extend({options:{clickTolerance:3},initialize:function(i,o,c,f){S(this,f),this._element=i,this._dragStartTarget=o||i,this._preventOutline=c},enable:function(){this._enabled||(he(this._dragStartTarget,bm,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(Ki._dragging===this&&this.finishDrag(!0),Ue(this._dragStartTarget,bm,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(i){if(this._enabled&&(this._moved=!1,!ve(this._element,"leaflet-zoom-anim"))){if(i.touches&&i.touches.length!==1){Ki._dragging===this&&this.finishDrag();return}if(!(Ki._dragging||i.shiftKey||i.which!==1&&i.button!==1&&!i.touches)&&(Ki._dragging=this,this._preventOutline&&xh(this._element),vh(),Cn(),!this._moving)){this.fire("down");var o=i.touches?i.touches[0]:i,c=vm(this._element);this._startPoint=new G(o.clientX,o.clientY),this._startPos=Yn(this._element),this._parentScale=wh(c);var f=i.type==="mousedown";he(document,f?"mousemove":"touchmove",this._onMove,this),he(document,f?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(i){if(this._enabled){if(i.touches&&i.touches.length>1){this._moved=!0;return}var o=i.touches&&i.touches.length===1?i.touches[0]:i,c=new G(o.clientX,o.clientY)._subtract(this._startPoint);!c.x&&!c.y||Math.abs(c.x)+Math.abs(c.y)<this.options.clickTolerance||(c.x/=this._parentScale.x,c.y/=this._parentScale.y,nn(i),this._moved||(this.fire("dragstart"),this._moved=!0,te(document.body,"leaflet-dragging"),this._lastTarget=i.target||i.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),te(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(c),this._moving=!0,this._lastEvent=i,this._updatePosition())}},_updatePosition:function(){var i={originalEvent:this._lastEvent};this.fire("predrag",i),Ee(this._element,this._newPos),this.fire("drag",i)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(i){ke(document.body,"leaflet-dragging"),this._lastTarget&&(ke(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),Ue(document,"mousemove touchmove",this._onMove,this),Ue(document,"mouseup touchend touchcancel",this._onUp,this),yh(),oo();var o=this._moved&&this._moving;this._moving=!1,Ki._dragging=!1,o&&this.fire("dragend",{noInertia:i,distance:this._newPos.distanceTo(this._startPos)})}});function Am(i,o,c){var f,x=[1,4,2,8],A,F,J,nt,mt,kt,re,me;for(A=0,kt=i.length;A<kt;A++)i[A]._code=xs(i[A],o);for(J=0;J<4;J++){for(re=x[J],f=[],A=0,kt=i.length,F=kt-1;A<kt;F=A++)nt=i[A],mt=i[F],nt._code&re?mt._code&re||(me=Ga(mt,nt,re,o,c),me._code=xs(me,o),f.push(me)):(mt._code&re&&(me=Ga(mt,nt,re,o,c),me._code=xs(me,o),f.push(me)),f.push(nt));i=f}return i}function Cm(i,o){var c,f,x,A,F,J,nt,mt,kt;if(!i||i.length===0)throw new Error("latlngs not passed");Nn(i)||(console.warn("latlngs are not flat! Only the first ring will be used"),i=i[0]);var re=st([0,0]),me=Rt(i),dn=me.getNorthWest().distanceTo(me.getSouthWest())*me.getNorthEast().distanceTo(me.getNorthWest());dn<1700&&(re=Rh(i));var je=i.length,Bn=[];for(c=0;c<je;c++){var vn=st(i[c]);Bn.push(o.project(st([vn.lat-re.lat,vn.lng-re.lng])))}for(J=nt=mt=0,c=0,f=je-1;c<je;f=c++)x=Bn[c],A=Bn[f],F=x.y*A.x-A.y*x.x,nt+=(x.x+A.x)*F,mt+=(x.y+A.y)*F,J+=F*3;J===0?kt=Bn[0]:kt=[nt/J,mt/J];var pr=o.unproject(lt(kt));return st([pr.lat+re.lat,pr.lng+re.lng])}function Rh(i){for(var o=0,c=0,f=0,x=0;x<i.length;x++){var A=st(i[x]);o+=A.lat,c+=A.lng,f++}return st([o/f,c/f])}var pT={__proto__:null,clipPolygon:Am,polygonCenter:Cm,centroid:Rh};function Pm(i,o){if(!o||!i.length)return i.slice();var c=o*o;return i=_T(i,c),i=gT(i,c),i}function Rm(i,o,c){return Math.sqrt(ho(i,o,c,!0))}function mT(i,o,c){return ho(i,o,c)}function gT(i,o){var c=i.length,f=typeof Uint8Array<"u"?Uint8Array:Array,x=new f(c);x[0]=x[c-1]=1,Lh(i,x,o,0,c-1);var A,F=[];for(A=0;A<c;A++)x[A]&&F.push(i[A]);return F}function Lh(i,o,c,f,x){var A=0,F,J,nt;for(J=f+1;J<=x-1;J++)nt=ho(i[J],i[f],i[x],!0),nt>A&&(F=J,A=nt);A>c&&(o[F]=1,Lh(i,o,c,f,F),Lh(i,o,c,F,x))}function _T(i,o){for(var c=[i[0]],f=1,x=0,A=i.length;f<A;f++)vT(i[f],i[x])>o&&(c.push(i[f]),x=f);return x<A-1&&c.push(i[A-1]),c}var Lm;function Im(i,o,c,f,x){var A=f?Lm:xs(i,c),F=xs(o,c),J,nt,mt;for(Lm=F;;){if(!(A|F))return[i,o];if(A&F)return!1;J=A||F,nt=Ga(i,o,J,c,x),mt=xs(nt,c),J===A?(i=nt,A=mt):(o=nt,F=mt)}}function Ga(i,o,c,f,x){var A=o.x-i.x,F=o.y-i.y,J=f.min,nt=f.max,mt,kt;return c&8?(mt=i.x+A*(nt.y-i.y)/F,kt=nt.y):c&4?(mt=i.x+A*(J.y-i.y)/F,kt=J.y):c&2?(mt=nt.x,kt=i.y+F*(nt.x-i.x)/A):c&1&&(mt=J.x,kt=i.y+F*(J.x-i.x)/A),new G(mt,kt,x)}function xs(i,o){var c=0;return i.x<o.min.x?c|=1:i.x>o.max.x&&(c|=2),i.y<o.min.y?c|=4:i.y>o.max.y&&(c|=8),c}function vT(i,o){var c=o.x-i.x,f=o.y-i.y;return c*c+f*f}function ho(i,o,c,f){var x=o.x,A=o.y,F=c.x-x,J=c.y-A,nt=F*F+J*J,mt;return nt>0&&(mt=((i.x-x)*F+(i.y-A)*J)/nt,mt>1?(x=c.x,A=c.y):mt>0&&(x+=F*mt,A+=J*mt)),F=i.x-x,J=i.y-A,f?F*F+J*J:new G(x,A)}function Nn(i){return!P(i[0])||typeof i[0][0]!="object"&&typeof i[0][0]<"u"}function Dm(i){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),Nn(i)}function km(i,o){var c,f,x,A,F,J,nt,mt;if(!i||i.length===0)throw new Error("latlngs not passed");Nn(i)||(console.warn("latlngs are not flat! Only the first ring will be used"),i=i[0]);var kt=st([0,0]),re=Rt(i),me=re.getNorthWest().distanceTo(re.getSouthWest())*re.getNorthEast().distanceTo(re.getNorthWest());me<1700&&(kt=Rh(i));var dn=i.length,je=[];for(c=0;c<dn;c++){var Bn=st(i[c]);je.push(o.project(st([Bn.lat-kt.lat,Bn.lng-kt.lng])))}for(c=0,f=0;c<dn-1;c++)f+=je[c].distanceTo(je[c+1])/2;if(f===0)mt=je[0];else for(c=0,A=0;c<dn-1;c++)if(F=je[c],J=je[c+1],x=F.distanceTo(J),A+=x,A>f){nt=(A-f)/x,mt=[J.x-nt*(J.x-F.x),J.y-nt*(J.y-F.y)];break}var vn=o.unproject(lt(mt));return st([vn.lat+kt.lat,vn.lng+kt.lng])}var yT={__proto__:null,simplify:Pm,pointToSegmentDistance:Rm,closestPointOnSegment:mT,clipSegment:Im,_getEdgeIntersection:Ga,_getBitCode:xs,_sqClosestPointOnSegment:ho,isFlat:Nn,_flat:Dm,polylineCenter:km},Ih={project:function(i){return new G(i.lng,i.lat)},unproject:function(i){return new Y(i.y,i.x)},bounds:new Mt([-180,-90],[180,90])},Dh={R:6378137,R_MINOR:6356752314245179e-9,bounds:new Mt([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project:function(i){var o=Math.PI/180,c=this.R,f=i.lat*o,x=this.R_MINOR/c,A=Math.sqrt(1-x*x),F=A*Math.sin(f),J=Math.tan(Math.PI/4-f/2)/Math.pow((1-F)/(1+F),A/2);return f=-c*Math.log(Math.max(J,1e-10)),new G(i.lng*o*c,f)},unproject:function(i){for(var o=180/Math.PI,c=this.R,f=this.R_MINOR/c,x=Math.sqrt(1-f*f),A=Math.exp(-i.y/c),F=Math.PI/2-2*Math.atan(A),J=0,nt=.1,mt;J<15&&Math.abs(nt)>1e-7;J++)mt=x*Math.sin(F),mt=Math.pow((1-mt)/(1+mt),x/2),nt=Math.PI/2-2*Math.atan(A*mt)-F,F+=nt;return new Y(F*o,i.x*o/c)}},ET={__proto__:null,LonLat:Ih,Mercator:Dh,SphericalMercator:zt},xT=r({},Dt,{code:"EPSG:3395",projection:Dh,transformation:(function(){var i=.5/(Math.PI*Dh.R);return at(i,.5,-i,.5)})()}),Um=r({},Dt,{code:"EPSG:4326",projection:Ih,transformation:at(1/180,1,-1/180,.5)}),wT=r({},ft,{projection:Ih,transformation:at(1,0,-1,0),scale:function(i){return Math.pow(2,i)},zoom:function(i){return Math.log(i)/Math.LN2},distance:function(i,o){var c=o.lng-i.lng,f=o.lat-i.lat;return Math.sqrt(c*c+f*f)},infinite:!0});ft.Earth=Dt,ft.EPSG3395=xT,ft.EPSG3857=C,ft.EPSG900913=it,ft.EPSG4326=Um,ft.Simple=wT;var Qn=dt.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(i){return i.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(i){return i&&i.removeLayer(this),this},getPane:function(i){return this._map.getPane(i?this.options[i]||i:this.options.pane)},addInteractiveTarget:function(i){return this._map._targets[u(i)]=this,this},removeInteractiveTarget:function(i){return delete this._map._targets[u(i)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(i){var o=i.target;if(o.hasLayer(this)){if(this._map=o,this._zoomAnimated=o._zoomAnimated,this.getEvents){var c=this.getEvents();o.on(c,this),this.once("remove",function(){o.off(c,this)},this)}this.onAdd(o),this.fire("add"),o.fire("layeradd",{layer:this})}}});we.include({addLayer:function(i){if(!i._layerAdd)throw new Error("The provided object is not a Layer.");var o=u(i);return this._layers[o]?this:(this._layers[o]=i,i._mapToAdd=this,i.beforeAdd&&i.beforeAdd(this),this.whenReady(i._layerAdd,i),this)},removeLayer:function(i){var o=u(i);return this._layers[o]?(this._loaded&&i.onRemove(this),delete this._layers[o],this._loaded&&(this.fire("layerremove",{layer:i}),i.fire("remove")),i._map=i._mapToAdd=null,this):this},hasLayer:function(i){return u(i)in this._layers},eachLayer:function(i,o){for(var c in this._layers)i.call(o,this._layers[c]);return this},_addLayers:function(i){i=i?P(i)?i:[i]:[];for(var o=0,c=i.length;o<c;o++)this.addLayer(i[o])},_addZoomLimit:function(i){(!isNaN(i.options.maxZoom)||!isNaN(i.options.minZoom))&&(this._zoomBoundLayers[u(i)]=i,this._updateZoomLevels())},_removeZoomLimit:function(i){var o=u(i);this._zoomBoundLayers[o]&&(delete this._zoomBoundLayers[o],this._updateZoomLevels())},_updateZoomLevels:function(){var i=1/0,o=-1/0,c=this._getZoomSpan();for(var f in this._zoomBoundLayers){var x=this._zoomBoundLayers[f].options;i=x.minZoom===void 0?i:Math.min(i,x.minZoom),o=x.maxZoom===void 0?o:Math.max(o,x.maxZoom)}this._layersMaxZoom=o===-1/0?void 0:o,this._layersMinZoom=i===1/0?void 0:i,c!==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 cr=Qn.extend({initialize:function(i,o){S(this,o),this._layers={};var c,f;if(i)for(c=0,f=i.length;c<f;c++)this.addLayer(i[c])},addLayer:function(i){var o=this.getLayerId(i);return this._layers[o]=i,this._map&&this._map.addLayer(i),this},removeLayer:function(i){var o=i in this._layers?i:this.getLayerId(i);return this._map&&this._layers[o]&&this._map.removeLayer(this._layers[o]),delete this._layers[o],this},hasLayer:function(i){var o=typeof i=="number"?i:this.getLayerId(i);return o in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(i){var o=Array.prototype.slice.call(arguments,1),c,f;for(c in this._layers)f=this._layers[c],f[i]&&f[i].apply(f,o);return this},onAdd:function(i){this.eachLayer(i.addLayer,i)},onRemove:function(i){this.eachLayer(i.removeLayer,i)},eachLayer:function(i,o){for(var c in this._layers)i.call(o,this._layers[c]);return this},getLayer:function(i){return this._layers[i]},getLayers:function(){var i=[];return this.eachLayer(i.push,i),i},setZIndex:function(i){return this.invoke("setZIndex",i)},getLayerId:function(i){return u(i)}}),ST=function(i,o){return new cr(i,o)},Si=cr.extend({addLayer:function(i){return this.hasLayer(i)?this:(i.addEventParent(this),cr.prototype.addLayer.call(this,i),this.fire("layeradd",{layer:i}))},removeLayer:function(i){return this.hasLayer(i)?(i in this._layers&&(i=this._layers[i]),i.removeEventParent(this),cr.prototype.removeLayer.call(this,i),this.fire("layerremove",{layer:i})):this},setStyle:function(i){return this.invoke("setStyle",i)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var i=new pt;for(var o in this._layers){var c=this._layers[o];i.extend(c.getBounds?c.getBounds():c.getLatLng())}return i}}),MT=function(i,o){return new Si(i,o)},hr=V.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(i){S(this,i)},createIcon:function(i){return this._createIcon("icon",i)},createShadow:function(i){return this._createIcon("shadow",i)},_createIcon:function(i,o){var c=this._getIconUrl(i);if(!c){if(i==="icon")throw new Error("iconUrl not set in Icon options (see the docs).");return null}var f=this._createImg(c,o&&o.tagName==="IMG"?o:null);return this._setIconStyles(f,i),(this.options.crossOrigin||this.options.crossOrigin==="")&&(f.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),f},_setIconStyles:function(i,o){var c=this.options,f=c[o+"Size"];typeof f=="number"&&(f=[f,f]);var x=lt(f),A=lt(o==="shadow"&&c.shadowAnchor||c.iconAnchor||x&&x.divideBy(2,!0));i.className="leaflet-marker-"+o+" "+(c.className||""),A&&(i.style.marginLeft=-A.x+"px",i.style.marginTop=-A.y+"px"),x&&(i.style.width=x.x+"px",i.style.height=x.y+"px")},_createImg:function(i,o){return o=o||document.createElement("img"),o.src=i,o},_getIconUrl:function(i){return qt.retina&&this.options[i+"RetinaUrl"]||this.options[i+"Url"]}});function TT(i){return new hr(i)}var uo=hr.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(i){return typeof uo.imagePath!="string"&&(uo.imagePath=this._detectIconPath()),(this.options.imagePath||uo.imagePath)+hr.prototype._getIconUrl.call(this,i)},_stripUrl:function(i){var o=function(c,f,x){var A=f.exec(c);return A&&A[x]};return i=o(i,/^url\((['"])?(.+)\1\)$/,2),i&&o(i,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var i=Kt("div","leaflet-default-icon-path",document.body),o=xe(i,"background-image")||xe(i,"backgroundImage");if(document.body.removeChild(i),o=this._stripUrl(o),o)return o;var c=document.querySelector('link[href$="leaflet.css"]');return c?c.href.substring(0,c.href.length-11-1):""}}),Om=oi.extend({initialize:function(i){this._marker=i},addHooks:function(){var i=this._marker._icon;this._draggable||(this._draggable=new Ki(i,i,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),te(i,"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&&ke(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(i){var o=this._marker,c=o._map,f=this._marker.options.autoPanSpeed,x=this._marker.options.autoPanPadding,A=Yn(o._icon),F=c.getPixelBounds(),J=c.getPixelOrigin(),nt=Gt(F.min._subtract(J).add(x),F.max._subtract(J).subtract(x));if(!nt.contains(A)){var mt=lt((Math.max(nt.max.x,A.x)-nt.max.x)/(F.max.x-nt.max.x)-(Math.min(nt.min.x,A.x)-nt.min.x)/(F.min.x-nt.min.x),(Math.max(nt.max.y,A.y)-nt.max.y)/(F.max.y-nt.max.y)-(Math.min(nt.min.y,A.y)-nt.min.y)/(F.min.y-nt.min.y)).multiplyBy(f);c.panBy(mt,{animate:!1}),this._draggable._newPos._add(mt),this._draggable._startPos._add(mt),Ee(o._icon,this._draggable._newPos),this._onDrag(i),this._panRequest=k(this._adjustPan.bind(this,i))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(i){this._marker.options.autoPan&&(Z(this._panRequest),this._panRequest=k(this._adjustPan.bind(this,i)))},_onDrag:function(i){var o=this._marker,c=o._shadow,f=Yn(o._icon),x=o._map.layerPointToLatLng(f);c&&Ee(c,f),o._latlng=x,i.latlng=x,i.oldLatLng=this._oldLatLng,o.fire("move",i).fire("drag",i)},_onDragEnd:function(i){Z(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",i)}}),Wa=Qn.extend({options:{icon:new uo,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(i,o){S(this,o),this._latlng=st(i)},onAdd:function(i){this._zoomAnimated=this._zoomAnimated&&i.options.markerZoomAnimation,this._zoomAnimated&&i.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(i){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&i.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(i){var o=this._latlng;return this._latlng=st(i),this.update(),this.fire("move",{oldLatLng:o,latlng:this._latlng})},setZIndexOffset:function(i){return this.options.zIndexOffset=i,this.update()},getIcon:function(){return this.options.icon},setIcon:function(i){return this.options.icon=i,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 i=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(i)}return this},_initIcon:function(){var i=this.options,o="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),c=i.icon.createIcon(this._icon),f=!1;c!==this._icon&&(this._icon&&this._removeIcon(),f=!0,i.title&&(c.title=i.title),c.tagName==="IMG"&&(c.alt=i.alt||"")),te(c,o),i.keyboard&&(c.tabIndex="0",c.setAttribute("role","button")),this._icon=c,i.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&he(c,"focus",this._panOnFocus,this);var x=i.icon.createShadow(this._shadow),A=!1;x!==this._shadow&&(this._removeShadow(),A=!0),x&&(te(x,o),x.alt=""),this._shadow=x,i.opacity<1&&this._updateOpacity(),f&&this.getPane().appendChild(this._icon),this._initInteraction(),x&&A&&this.getPane(i.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&Ue(this._icon,"focus",this._panOnFocus,this),se(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&se(this._shadow),this._shadow=null},_setPos:function(i){this._icon&&Ee(this._icon,i),this._shadow&&Ee(this._shadow,i),this._zIndex=i.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(i){this._icon&&(this._icon.style.zIndex=this._zIndex+i)},_animateZoom:function(i){var o=this._map._latLngToNewLayerPoint(this._latlng,i.zoom,i.center).round();this._setPos(o)},_initInteraction:function(){if(this.options.interactive&&(te(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),Om)){var i=this.options.draggable;this.dragging&&(i=this.dragging.enabled(),this.dragging.disable()),this.dragging=new Om(this),i&&this.dragging.enable()}},setOpacity:function(i){return this.options.opacity=i,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var i=this.options.opacity;this._icon&&ye(this._icon,i),this._shadow&&ye(this._shadow,i)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var i=this._map;if(i){var o=this.options.icon.options,c=o.iconSize?lt(o.iconSize):lt(0,0),f=o.iconAnchor?lt(o.iconAnchor):lt(0,0);i.panInside(this._latlng,{paddingTopLeft:f,paddingBottomRight:c.subtract(f)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function bT(i,o){return new Wa(i,o)}var $i=Qn.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(i){this._renderer=i.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(i){return S(this,i),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&i&&Object.prototype.hasOwnProperty.call(i,"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)}}),Za=$i.extend({options:{fill:!0,radius:10},initialize:function(i,o){S(this,o),this._latlng=st(i),this._radius=this.options.radius},setLatLng:function(i){var o=this._latlng;return this._latlng=st(i),this.redraw(),this.fire("move",{oldLatLng:o,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(i){return this.options.radius=this._radius=i,this.redraw()},getRadius:function(){return this._radius},setStyle:function(i){var o=i&&i.radius||this._radius;return $i.prototype.setStyle.call(this,i),this.setRadius(o),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var i=this._radius,o=this._radiusY||i,c=this._clickTolerance(),f=[i+c,o+c];this._pxBounds=new Mt(this._point.subtract(f),this._point.add(f))},_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(i){return i.distanceTo(this._point)<=this._radius+this._clickTolerance()}});function AT(i,o){return new Za(i,o)}var kh=Za.extend({initialize:function(i,o,c){if(typeof o=="number"&&(o=r({},c,{radius:o})),S(this,o),this._latlng=st(i),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(i){return this._mRadius=i,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var i=[this._radius,this._radiusY||this._radius];return new pt(this._map.layerPointToLatLng(this._point.subtract(i)),this._map.layerPointToLatLng(this._point.add(i)))},setStyle:$i.prototype.setStyle,_project:function(){var i=this._latlng.lng,o=this._latlng.lat,c=this._map,f=c.options.crs;if(f.distance===Dt.distance){var x=Math.PI/180,A=this._mRadius/Dt.R/x,F=c.project([o+A,i]),J=c.project([o-A,i]),nt=F.add(J).divideBy(2),mt=c.unproject(nt).lat,kt=Math.acos((Math.cos(A*x)-Math.sin(o*x)*Math.sin(mt*x))/(Math.cos(o*x)*Math.cos(mt*x)))/x;(isNaN(kt)||kt===0)&&(kt=A/Math.cos(Math.PI/180*o)),this._point=nt.subtract(c.getPixelOrigin()),this._radius=isNaN(kt)?0:nt.x-c.project([mt,i-kt]).x,this._radiusY=nt.y-F.y}else{var re=f.unproject(f.project(this._latlng).subtract([this._mRadius,0]));this._point=c.latLngToLayerPoint(this._latlng),this._radius=this._point.x-c.latLngToLayerPoint(re).x}this._updateBounds()}});function CT(i,o,c){return new kh(i,o,c)}var Mi=$i.extend({options:{smoothFactor:1,noClip:!1},initialize:function(i,o){S(this,o),this._setLatLngs(i)},getLatLngs:function(){return this._latlngs},setLatLngs:function(i){return this._setLatLngs(i),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(i){for(var o=1/0,c=null,f=ho,x,A,F=0,J=this._parts.length;F<J;F++)for(var nt=this._parts[F],mt=1,kt=nt.length;mt<kt;mt++){x=nt[mt-1],A=nt[mt];var re=f(i,x,A,!0);re<o&&(o=re,c=f(i,x,A))}return c&&(c.distance=Math.sqrt(o)),c},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return km(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(i,o){return o=o||this._defaultShape(),i=st(i),o.push(i),this._bounds.extend(i),this.redraw()},_setLatLngs:function(i){this._bounds=new pt,this._latlngs=this._convertLatLngs(i)},_defaultShape:function(){return Nn(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(i){for(var o=[],c=Nn(i),f=0,x=i.length;f<x;f++)c?(o[f]=st(i[f]),this._bounds.extend(o[f])):o[f]=this._convertLatLngs(i[f]);return o},_project:function(){var i=new Mt;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,i),this._bounds.isValid()&&i.isValid()&&(this._rawPxBounds=i,this._updateBounds())},_updateBounds:function(){var i=this._clickTolerance(),o=new G(i,i);this._rawPxBounds&&(this._pxBounds=new Mt([this._rawPxBounds.min.subtract(o),this._rawPxBounds.max.add(o)]))},_projectLatlngs:function(i,o,c){var f=i[0]instanceof Y,x=i.length,A,F;if(f){for(F=[],A=0;A<x;A++)F[A]=this._map.latLngToLayerPoint(i[A]),c.extend(F[A]);o.push(F)}else for(A=0;A<x;A++)this._projectLatlngs(i[A],o,c)},_clipPoints:function(){var i=this._renderer._bounds;if(this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(i))){if(this.options.noClip){this._parts=this._rings;return}var o=this._parts,c,f,x,A,F,J,nt;for(c=0,x=0,A=this._rings.length;c<A;c++)for(nt=this._rings[c],f=0,F=nt.length;f<F-1;f++)J=Im(nt[f],nt[f+1],i,f,!0),J&&(o[x]=o[x]||[],o[x].push(J[0]),(J[1]!==nt[f+1]||f===F-2)&&(o[x].push(J[1]),x++))}},_simplifyPoints:function(){for(var i=this._parts,o=this.options.smoothFactor,c=0,f=i.length;c<f;c++)i[c]=Pm(i[c],o)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(i,o){var c,f,x,A,F,J,nt=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(i))return!1;for(c=0,A=this._parts.length;c<A;c++)for(J=this._parts[c],f=0,F=J.length,x=F-1;f<F;x=f++)if(!(!o&&f===0)&&Rm(i,J[x],J[f])<=nt)return!0;return!1}});function PT(i,o){return new Mi(i,o)}Mi._flat=Dm;var ur=Mi.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 Cm(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(i){var o=Mi.prototype._convertLatLngs.call(this,i),c=o.length;return c>=2&&o[0]instanceof Y&&o[0].equals(o[c-1])&&o.pop(),o},_setLatLngs:function(i){Mi.prototype._setLatLngs.call(this,i),Nn(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return Nn(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var i=this._renderer._bounds,o=this.options.weight,c=new G(o,o);if(i=new Mt(i.min.subtract(c),i.max.add(c)),this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(i))){if(this.options.noClip){this._parts=this._rings;return}for(var f=0,x=this._rings.length,A;f<x;f++)A=Am(this._rings[f],i,!0),A.length&&this._parts.push(A)}},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(i){var o=!1,c,f,x,A,F,J,nt,mt;if(!this._pxBounds||!this._pxBounds.contains(i))return!1;for(A=0,nt=this._parts.length;A<nt;A++)for(c=this._parts[A],F=0,mt=c.length,J=mt-1;F<mt;J=F++)f=c[F],x=c[J],f.y>i.y!=x.y>i.y&&i.x<(x.x-f.x)*(i.y-f.y)/(x.y-f.y)+f.x&&(o=!o);return o||Mi.prototype._containsPoint.call(this,i,!0)}});function RT(i,o){return new ur(i,o)}var Ti=Si.extend({initialize:function(i,o){S(this,o),this._layers={},i&&this.addData(i)},addData:function(i){var o=P(i)?i:i.features,c,f,x;if(o){for(c=0,f=o.length;c<f;c++)x=o[c],(x.geometries||x.geometry||x.features||x.coordinates)&&this.addData(x);return this}var A=this.options;if(A.filter&&!A.filter(i))return this;var F=Xa(i,A);return F?(F.feature=Qa(i),F.defaultOptions=F.options,this.resetStyle(F),A.onEachFeature&&A.onEachFeature(i,F),this.addLayer(F)):this},resetStyle:function(i){return i===void 0?this.eachLayer(this.resetStyle,this):(i.options=r({},i.defaultOptions),this._setLayerStyle(i,this.options.style),this)},setStyle:function(i){return this.eachLayer(function(o){this._setLayerStyle(o,i)},this)},_setLayerStyle:function(i,o){i.setStyle&&(typeof o=="function"&&(o=o(i.feature)),i.setStyle(o))}});function Xa(i,o){var c=i.type==="Feature"?i.geometry:i,f=c?c.coordinates:null,x=[],A=o&&o.pointToLayer,F=o&&o.coordsToLatLng||Uh,J,nt,mt,kt;if(!f&&!c)return null;switch(c.type){case"Point":return J=F(f),Nm(A,i,J,o);case"MultiPoint":for(mt=0,kt=f.length;mt<kt;mt++)J=F(f[mt]),x.push(Nm(A,i,J,o));return new Si(x);case"LineString":case"MultiLineString":return nt=Ya(f,c.type==="LineString"?0:1,F),new Mi(nt,o);case"Polygon":case"MultiPolygon":return nt=Ya(f,c.type==="Polygon"?1:2,F),new ur(nt,o);case"GeometryCollection":for(mt=0,kt=c.geometries.length;mt<kt;mt++){var re=Xa({geometry:c.geometries[mt],type:"Feature",properties:i.properties},o);re&&x.push(re)}return new Si(x);case"FeatureCollection":for(mt=0,kt=c.features.length;mt<kt;mt++){var me=Xa(c.features[mt],o);me&&x.push(me)}return new Si(x);default:throw new Error("Invalid GeoJSON object.")}}function Nm(i,o,c,f){return i?i(o,c):new Wa(c,f&&f.markersInheritOptions&&f)}function Uh(i){return new Y(i[1],i[0],i[2])}function Ya(i,o,c){for(var f=[],x=0,A=i.length,F;x<A;x++)F=o?Ya(i[x],o-1,c):(c||Uh)(i[x]),f.push(F);return f}function Oh(i,o){return i=st(i),i.alt!==void 0?[_(i.lng,o),_(i.lat,o),_(i.alt,o)]:[_(i.lng,o),_(i.lat,o)]}function qa(i,o,c,f){for(var x=[],A=0,F=i.length;A<F;A++)x.push(o?qa(i[A],Nn(i[A])?0:o-1,c,f):Oh(i[A],f));return!o&&c&&x.length>0&&x.push(x[0].slice()),x}function dr(i,o){return i.feature?r({},i.feature,{geometry:o}):Qa(o)}function Qa(i){return i.type==="Feature"||i.type==="FeatureCollection"?i:{type:"Feature",properties:{},geometry:i}}var Nh={toGeoJSON:function(i){return dr(this,{type:"Point",coordinates:Oh(this.getLatLng(),i)})}};Wa.include(Nh),kh.include(Nh),Za.include(Nh),Mi.include({toGeoJSON:function(i){var o=!Nn(this._latlngs),c=qa(this._latlngs,o?1:0,!1,i);return dr(this,{type:(o?"Multi":"")+"LineString",coordinates:c})}}),ur.include({toGeoJSON:function(i){var o=!Nn(this._latlngs),c=o&&!Nn(this._latlngs[0]),f=qa(this._latlngs,c?2:o?1:0,!0,i);return o||(f=[f]),dr(this,{type:(c?"Multi":"")+"Polygon",coordinates:f})}}),cr.include({toMultiPoint:function(i){var o=[];return this.eachLayer(function(c){o.push(c.toGeoJSON(i).geometry.coordinates)}),dr(this,{type:"MultiPoint",coordinates:o})},toGeoJSON:function(i){var o=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(o==="MultiPoint")return this.toMultiPoint(i);var c=o==="GeometryCollection",f=[];return this.eachLayer(function(x){if(x.toGeoJSON){var A=x.toGeoJSON(i);if(c)f.push(A.geometry);else{var F=Qa(A);F.type==="FeatureCollection"?f.push.apply(f,F.features):f.push(F)}}}),c?dr(this,{geometries:f,type:"GeometryCollection"}):{type:"FeatureCollection",features:f}}});function Bm(i,o){return new Ti(i,o)}var LT=Bm,ja=Qn.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(i,o,c){this._url=i,this._bounds=Rt(o),S(this,c)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(te(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){se(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(i){return this.options.opacity=i,this._image&&this._updateOpacity(),this},setStyle:function(i){return i.opacity&&this.setOpacity(i.opacity),this},bringToFront:function(){return this._map&&Qt(this._image),this},bringToBack:function(){return this._map&&Le(this._image),this},setUrl:function(i){return this._url=i,this._image&&(this._image.src=i),this},setBounds:function(i){return this._bounds=Rt(i),this._map&&this._reset(),this},getEvents:function(){var i={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(i.zoomanim=this._animateZoom),i},setZIndex:function(i){return this.options.zIndex=i,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var i=this._url.tagName==="IMG",o=this._image=i?this._url:Kt("img");if(te(o,"leaflet-image-layer"),this._zoomAnimated&&te(o,"leaflet-zoom-animated"),this.options.className&&te(o,this.options.className),o.onselectstart=m,o.onmousemove=m,o.onload=l(this.fire,this,"load"),o.onerror=l(this._overlayOnError,this,"error"),(this.options.crossOrigin||this.options.crossOrigin==="")&&(o.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),i){this._url=o.src;return}o.src=this._url,o.alt=this.options.alt},_animateZoom:function(i){var o=this._map.getZoomScale(i.zoom),c=this._map._latLngBoundsToNewLayerBounds(this._bounds,i.zoom,i.center).min;Fe(this._image,c,o)},_reset:function(){var i=this._image,o=new Mt(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),c=o.getSize();Ee(i,o.min),i.style.width=c.x+"px",i.style.height=c.y+"px"},_updateOpacity:function(){ye(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 i=this.options.errorOverlayUrl;i&&this._url!==i&&(this._url=i,this._image.src=i)},getCenter:function(){return this._bounds.getCenter()}}),IT=function(i,o,c){return new ja(i,o,c)},Fm=ja.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var i=this._url.tagName==="VIDEO",o=this._image=i?this._url:Kt("video");if(te(o,"leaflet-image-layer"),this._zoomAnimated&&te(o,"leaflet-zoom-animated"),this.options.className&&te(o,this.options.className),o.onselectstart=m,o.onmousemove=m,o.onloadeddata=l(this.fire,this,"load"),i){for(var c=o.getElementsByTagName("source"),f=[],x=0;x<c.length;x++)f.push(c[x].src);this._url=c.length>0?f:[o.src];return}P(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(o.style,"objectFit")&&(o.style.objectFit="fill"),o.autoplay=!!this.options.autoplay,o.loop=!!this.options.loop,o.muted=!!this.options.muted,o.playsInline=!!this.options.playsInline;for(var A=0;A<this._url.length;A++){var F=Kt("source");F.src=this._url[A],o.appendChild(F)}}});function DT(i,o,c){return new Fm(i,o,c)}var zm=ja.extend({_initImage:function(){var i=this._image=this._url;te(i,"leaflet-image-layer"),this._zoomAnimated&&te(i,"leaflet-zoom-animated"),this.options.className&&te(i,this.options.className),i.onselectstart=m,i.onmousemove=m}});function kT(i,o,c){return new zm(i,o,c)}var ai=Qn.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(i,o){i&&(i instanceof Y||P(i))?(this._latlng=st(i),S(this,o)):(S(this,i),this._source=o),this.options.content&&(this._content=this.options.content)},openOn:function(i){return i=arguments.length?i:this._source._map,i.hasLayer(this)||i.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(i){return this._map?this.close():(arguments.length?this._source=i:i=this._source,this._prepareOpen(),this.openOn(i._map)),this},onAdd:function(i){this._zoomAnimated=i._zoomAnimated,this._container||this._initLayout(),i._fadeAnimated&&ye(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),i._fadeAnimated&&ye(this._container,1),this.bringToFront(),this.options.interactive&&(te(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(i){i._fadeAnimated?(ye(this._container,0),this._removeTimeout=setTimeout(l(se,void 0,this._container),200)):se(this._container),this.options.interactive&&(ke(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(i){return this._latlng=st(i),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(i){return this._content=i,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 i={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(i.zoomanim=this._animateZoom),i},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&Qt(this._container),this},bringToBack:function(){return this._map&&Le(this._container),this},_prepareOpen:function(i){var o=this._source;if(!o._map)return!1;if(o instanceof Si){o=null;var c=this._source._layers;for(var f in c)if(c[f]._map){o=c[f];break}if(!o)return!1;this._source=o}if(!i)if(o.getCenter)i=o.getCenter();else if(o.getLatLng)i=o.getLatLng();else if(o.getBounds)i=o.getBounds().getCenter();else throw new Error("Unable to get source layer LatLng.");return this.setLatLng(i),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var i=this._contentNode,o=typeof this._content=="function"?this._content(this._source||this):this._content;if(typeof o=="string")i.innerHTML=o;else{for(;i.hasChildNodes();)i.removeChild(i.firstChild);i.appendChild(o)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var i=this._map.latLngToLayerPoint(this._latlng),o=lt(this.options.offset),c=this._getAnchor();this._zoomAnimated?Ee(this._container,i.add(c)):o=o.add(i).add(c);var f=this._containerBottom=-o.y,x=this._containerLeft=-Math.round(this._containerWidth/2)+o.x;this._container.style.bottom=f+"px",this._container.style.left=x+"px"}},_getAnchor:function(){return[0,0]}});we.include({_initOverlay:function(i,o,c,f){var x=o;return x instanceof i||(x=new i(f).setContent(o)),c&&x.setLatLng(c),x}}),Qn.include({_initOverlay:function(i,o,c,f){var x=c;return x instanceof i?(S(x,f),x._source=this):(x=o&&!f?o:new i(f,this),x.setContent(c)),x}});var Ja=ai.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(i){return i=arguments.length?i:this._source._map,!i.hasLayer(this)&&i._popup&&i._popup.options.autoClose&&i.removeLayer(i._popup),i._popup=this,ai.prototype.openOn.call(this,i)},onAdd:function(i){ai.prototype.onAdd.call(this,i),i.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof $i||this._source.on("preclick",ys))},onRemove:function(i){ai.prototype.onRemove.call(this,i),i.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof $i||this._source.off("preclick",ys))},getEvents:function(){var i=ai.prototype.getEvents.call(this);return(this.options.closeOnClick!==void 0?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(i.preclick=this.close),this.options.keepInView&&(i.moveend=this._adjustPan),i},_initLayout:function(){var i="leaflet-popup",o=this._container=Kt("div",i+" "+(this.options.className||"")+" leaflet-zoom-animated"),c=this._wrapper=Kt("div",i+"-content-wrapper",o);if(this._contentNode=Kt("div",i+"-content",c),lo(o),bh(this._contentNode),he(o,"contextmenu",ys),this._tipContainer=Kt("div",i+"-tip-container",o),this._tip=Kt("div",i+"-tip",this._tipContainer),this.options.closeButton){var f=this._closeButton=Kt("a",i+"-close-button",o);f.setAttribute("role","button"),f.setAttribute("aria-label","Close popup"),f.href="#close",f.innerHTML='<span aria-hidden="true">×</span>',he(f,"click",function(x){nn(x),this.close()},this)}},_updateLayout:function(){var i=this._contentNode,o=i.style;o.width="",o.whiteSpace="nowrap";var c=i.offsetWidth;c=Math.min(c,this.options.maxWidth),c=Math.max(c,this.options.minWidth),o.width=c+1+"px",o.whiteSpace="",o.height="";var f=i.offsetHeight,x=this.options.maxHeight,A="leaflet-popup-scrolled";x&&f>x?(o.height=x+"px",te(i,A)):ke(i,A),this._containerWidth=this._container.offsetWidth},_animateZoom:function(i){var o=this._map._latLngToNewLayerPoint(this._latlng,i.zoom,i.center),c=this._getAnchor();Ee(this._container,o.add(c))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning){this._autopanning=!1;return}var i=this._map,o=parseInt(xe(this._container,"marginBottom"),10)||0,c=this._container.offsetHeight+o,f=this._containerWidth,x=new G(this._containerLeft,-c-this._containerBottom);x._add(Yn(this._container));var A=i.layerPointToContainerPoint(x),F=lt(this.options.autoPanPadding),J=lt(this.options.autoPanPaddingTopLeft||F),nt=lt(this.options.autoPanPaddingBottomRight||F),mt=i.getSize(),kt=0,re=0;A.x+f+nt.x>mt.x&&(kt=A.x+f-mt.x+nt.x),A.x-kt-J.x<0&&(kt=A.x-J.x),A.y+c+nt.y>mt.y&&(re=A.y+c-mt.y+nt.y),A.y-re-J.y<0&&(re=A.y-J.y),(kt||re)&&(this.options.keepInView&&(this._autopanning=!0),i.fire("autopanstart").panBy([kt,re]))}},_getAnchor:function(){return lt(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),UT=function(i,o){return new Ja(i,o)};we.mergeOptions({closePopupOnClick:!0}),we.include({openPopup:function(i,o,c){return this._initOverlay(Ja,i,o,c).openOn(this),this},closePopup:function(i){return i=arguments.length?i:this._popup,i&&i.close(),this}}),Qn.include({bindPopup:function(i,o){return this._popup=this._initOverlay(Ja,this._popup,i,o),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(i){return this._popup&&(this instanceof Si||(this._popup._source=this),this._popup._prepareOpen(i||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(i){return this._popup&&this._popup.setContent(i),this},getPopup:function(){return this._popup},_openPopup:function(i){if(!(!this._popup||!this._map)){Es(i);var o=i.layer||i.target;if(this._popup._source===o&&!(o instanceof $i)){this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(i.latlng);return}this._popup._source=o,this.openPopup(i.latlng)}},_movePopup:function(i){this._popup.setLatLng(i.latlng)},_onKeyPress:function(i){i.originalEvent.keyCode===13&&this._openPopup(i)}});var Ka=ai.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(i){ai.prototype.onAdd.call(this,i),this.setOpacity(this.options.opacity),i.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(i){ai.prototype.onRemove.call(this,i),i.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var i=ai.prototype.getEvents.call(this);return this.options.permanent||(i.preclick=this.close),i},_initLayout:function(){var i="leaflet-tooltip",o=i+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=Kt("div",o),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+u(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(i){var o,c,f=this._map,x=this._container,A=f.latLngToContainerPoint(f.getCenter()),F=f.layerPointToContainerPoint(i),J=this.options.direction,nt=x.offsetWidth,mt=x.offsetHeight,kt=lt(this.options.offset),re=this._getAnchor();J==="top"?(o=nt/2,c=mt):J==="bottom"?(o=nt/2,c=0):J==="center"?(o=nt/2,c=mt/2):J==="right"?(o=0,c=mt/2):J==="left"?(o=nt,c=mt/2):F.x<A.x?(J="right",o=0,c=mt/2):(J="left",o=nt+(kt.x+re.x)*2,c=mt/2),i=i.subtract(lt(o,c,!0)).add(kt).add(re),ke(x,"leaflet-tooltip-right"),ke(x,"leaflet-tooltip-left"),ke(x,"leaflet-tooltip-top"),ke(x,"leaflet-tooltip-bottom"),te(x,"leaflet-tooltip-"+J),Ee(x,i)},_updatePosition:function(){var i=this._map.latLngToLayerPoint(this._latlng);this._setPosition(i)},setOpacity:function(i){this.options.opacity=i,this._container&&ye(this._container,i)},_animateZoom:function(i){var o=this._map._latLngToNewLayerPoint(this._latlng,i.zoom,i.center);this._setPosition(o)},_getAnchor:function(){return lt(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),OT=function(i,o){return new Ka(i,o)};we.include({openTooltip:function(i,o,c){return this._initOverlay(Ka,i,o,c).openOn(this),this},closeTooltip:function(i){return i.close(),this}}),Qn.include({bindTooltip:function(i,o){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(Ka,this._tooltip,i,o),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(i){if(!(!i&&this._tooltipHandlersAdded)){var o=i?"off":"on",c={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?c.add=this._openTooltip:(c.mouseover=this._openTooltip,c.mouseout=this.closeTooltip,c.click=this._openTooltip,this._map?this._addFocusListeners():c.add=this._addFocusListeners),this._tooltip.options.sticky&&(c.mousemove=this._moveTooltip),this[o](c),this._tooltipHandlersAdded=!i}},openTooltip:function(i){return this._tooltip&&(this instanceof Si||(this._tooltip._source=this),this._tooltip._prepareOpen(i)&&(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(i){return this._tooltip&&this._tooltip.setContent(i),this},getTooltip:function(){return this._tooltip},_addFocusListeners:function(){this.getElement?this._addFocusListenersOnLayer(this):this.eachLayer&&this.eachLayer(this._addFocusListenersOnLayer,this)},_addFocusListenersOnLayer:function(i){var o=typeof i.getElement=="function"&&i.getElement();o&&(he(o,"focus",function(){this._tooltip._source=i,this.openTooltip()},this),he(o,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(i){var o=typeof i.getElement=="function"&&i.getElement();o&&o.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(i){if(!(!this._tooltip||!this._map)){if(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag){this._openOnceFlag=!0;var o=this;this._map.once("moveend",function(){o._openOnceFlag=!1,o._openTooltip(i)});return}this._tooltip._source=i.layer||i.target,this.openTooltip(this._tooltip.options.sticky?i.latlng:void 0)}},_moveTooltip:function(i){var o=i.latlng,c,f;this._tooltip.options.sticky&&i.originalEvent&&(c=this._map.mouseEventToContainerPoint(i.originalEvent),f=this._map.containerPointToLayerPoint(c),o=this._map.layerPointToLatLng(f)),this._tooltip.setLatLng(o)}});var Hm=hr.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(i){var o=i&&i.tagName==="DIV"?i:document.createElement("div"),c=this.options;if(c.html instanceof Element?(be(o),o.appendChild(c.html)):o.innerHTML=c.html!==!1?c.html:"",c.bgPos){var f=lt(c.bgPos);o.style.backgroundPosition=-f.x+"px "+-f.y+"px"}return this._setIconStyles(o,"icon"),o},createShadow:function(){return null}});function NT(i){return new Hm(i)}hr.Default=uo;var fo=Qn.extend({options:{tileSize:256,opacity:1,updateWhenIdle:qt.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(i){S(this,i)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(i){i._addZoomLimit(this)},onRemove:function(i){this._removeAllTiles(),se(this._container),i._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(Qt(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(Le(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(i){return this.options.opacity=i,this._updateOpacity(),this},setZIndex:function(i){return this.options.zIndex=i,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var i=this._clampZoom(this._map.getZoom());i!==this._tileZoom&&(this._tileZoom=i,this._updateLevels()),this._update()}return this},getEvents:function(){var i={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=d(this._onMoveEnd,this.options.updateInterval,this)),i.move=this._onMove),this._zoomAnimated&&(i.zoomanim=this._animateZoom),i},createTile:function(){return document.createElement("div")},getTileSize:function(){var i=this.options.tileSize;return i instanceof G?i:new G(i,i)},_updateZIndex:function(){this._container&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(i){for(var o=this.getPane().children,c=-i(-1/0,1/0),f=0,x=o.length,A;f<x;f++)A=o[f].style.zIndex,o[f]!==this._container&&A&&(c=i(c,+A));isFinite(c)&&(this.options.zIndex=c+i(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!qt.ielt9){ye(this._container,this.options.opacity);var i=+new Date,o=!1,c=!1;for(var f in this._tiles){var x=this._tiles[f];if(!(!x.current||!x.loaded)){var A=Math.min(1,(i-x.loaded)/200);ye(x.el,A),A<1?o=!0:(x.active?c=!0:this._onOpaqueTile(x),x.active=!0)}}c&&!this._noPrune&&this._pruneTiles(),o&&(Z(this._fadeFrame),this._fadeFrame=k(this._updateOpacity,this))}},_onOpaqueTile:m,_initContainer:function(){this._container||(this._container=Kt("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var i=this._tileZoom,o=this.options.maxZoom;if(i!==void 0){for(var c in this._levels)c=Number(c),this._levels[c].el.children.length||c===i?(this._levels[c].el.style.zIndex=o-Math.abs(i-c),this._onUpdateLevel(c)):(se(this._levels[c].el),this._removeTilesAtZoom(c),this._onRemoveLevel(c),delete this._levels[c]);var f=this._levels[i],x=this._map;return f||(f=this._levels[i]={},f.el=Kt("div","leaflet-tile-container leaflet-zoom-animated",this._container),f.el.style.zIndex=o,f.origin=x.project(x.unproject(x.getPixelOrigin()),i).round(),f.zoom=i,this._setZoomTransform(f,x.getCenter(),x.getZoom()),m(f.el.offsetWidth),this._onCreateLevel(f)),this._level=f,f}},_onUpdateLevel:m,_onRemoveLevel:m,_onCreateLevel:m,_pruneTiles:function(){if(this._map){var i,o,c=this._map.getZoom();if(c>this.options.maxZoom||c<this.options.minZoom){this._removeAllTiles();return}for(i in this._tiles)o=this._tiles[i],o.retain=o.current;for(i in this._tiles)if(o=this._tiles[i],o.current&&!o.active){var f=o.coords;this._retainParent(f.x,f.y,f.z,f.z-5)||this._retainChildren(f.x,f.y,f.z,f.z+2)}for(i in this._tiles)this._tiles[i].retain||this._removeTile(i)}},_removeTilesAtZoom:function(i){for(var o in this._tiles)this._tiles[o].coords.z===i&&this._removeTile(o)},_removeAllTiles:function(){for(var i in this._tiles)this._removeTile(i)},_invalidateAll:function(){for(var i in this._levels)se(this._levels[i].el),this._onRemoveLevel(Number(i)),delete this._levels[i];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(i,o,c,f){var x=Math.floor(i/2),A=Math.floor(o/2),F=c-1,J=new G(+x,+A);J.z=+F;var nt=this._tileCoordsToKey(J),mt=this._tiles[nt];return mt&&mt.active?(mt.retain=!0,!0):(mt&&mt.loaded&&(mt.retain=!0),F>f?this._retainParent(x,A,F,f):!1)},_retainChildren:function(i,o,c,f){for(var x=2*i;x<2*i+2;x++)for(var A=2*o;A<2*o+2;A++){var F=new G(x,A);F.z=c+1;var J=this._tileCoordsToKey(F),nt=this._tiles[J];if(nt&&nt.active){nt.retain=!0;continue}else nt&&nt.loaded&&(nt.retain=!0);c+1<f&&this._retainChildren(x,A,c+1,f)}},_resetView:function(i){var o=i&&(i.pinch||i.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),o,o)},_animateZoom:function(i){this._setView(i.center,i.zoom,!0,i.noUpdate)},_clampZoom:function(i){var o=this.options;return o.minNativeZoom!==void 0&&i<o.minNativeZoom?o.minNativeZoom:o.maxNativeZoom!==void 0&&o.maxNativeZoom<i?o.maxNativeZoom:i},_setView:function(i,o,c,f){var x=Math.round(o);this.options.maxZoom!==void 0&&x>this.options.maxZoom||this.options.minZoom!==void 0&&x<this.options.minZoom?x=void 0:x=this._clampZoom(x);var A=this.options.updateWhenZooming&&x!==this._tileZoom;(!f||A)&&(this._tileZoom=x,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),x!==void 0&&this._update(i),c||this._pruneTiles(),this._noPrune=!!c),this._setZoomTransforms(i,o)},_setZoomTransforms:function(i,o){for(var c in this._levels)this._setZoomTransform(this._levels[c],i,o)},_setZoomTransform:function(i,o,c){var f=this._map.getZoomScale(c,i.zoom),x=i.origin.multiplyBy(f).subtract(this._map._getNewPixelOrigin(o,c)).round();qt.any3d?Fe(i.el,x,f):Ee(i.el,x)},_resetGrid:function(){var i=this._map,o=i.options.crs,c=this._tileSize=this.getTileSize(),f=this._tileZoom,x=this._map.getPixelWorldBounds(this._tileZoom);x&&(this._globalTileRange=this._pxBoundsToTileRange(x)),this._wrapX=o.wrapLng&&!this.options.noWrap&&[Math.floor(i.project([0,o.wrapLng[0]],f).x/c.x),Math.ceil(i.project([0,o.wrapLng[1]],f).x/c.y)],this._wrapY=o.wrapLat&&!this.options.noWrap&&[Math.floor(i.project([o.wrapLat[0],0],f).y/c.x),Math.ceil(i.project([o.wrapLat[1],0],f).y/c.y)]},_onMoveEnd:function(){!this._map||this._map._animatingZoom||this._update()},_getTiledPixelBounds:function(i){var o=this._map,c=o._animatingZoom?Math.max(o._animateToZoom,o.getZoom()):o.getZoom(),f=o.getZoomScale(c,this._tileZoom),x=o.project(i,this._tileZoom).floor(),A=o.getSize().divideBy(f*2);return new Mt(x.subtract(A),x.add(A))},_update:function(i){var o=this._map;if(o){var c=this._clampZoom(o.getZoom());if(i===void 0&&(i=o.getCenter()),this._tileZoom!==void 0){var f=this._getTiledPixelBounds(i),x=this._pxBoundsToTileRange(f),A=x.getCenter(),F=[],J=this.options.keepBuffer,nt=new Mt(x.getBottomLeft().subtract([J,-J]),x.getTopRight().add([J,-J]));if(!(isFinite(x.min.x)&&isFinite(x.min.y)&&isFinite(x.max.x)&&isFinite(x.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var mt in this._tiles){var kt=this._tiles[mt].coords;(kt.z!==this._tileZoom||!nt.contains(new G(kt.x,kt.y)))&&(this._tiles[mt].current=!1)}if(Math.abs(c-this._tileZoom)>1){this._setView(i,c);return}for(var re=x.min.y;re<=x.max.y;re++)for(var me=x.min.x;me<=x.max.x;me++){var dn=new G(me,re);if(dn.z=this._tileZoom,!!this._isValidTile(dn)){var je=this._tiles[this._tileCoordsToKey(dn)];je?je.current=!0:F.push(dn)}}if(F.sort(function(vn,pr){return vn.distanceTo(A)-pr.distanceTo(A)}),F.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var Bn=document.createDocumentFragment();for(me=0;me<F.length;me++)this._addTile(F[me],Bn);this._level.el.appendChild(Bn)}}}},_isValidTile:function(i){var o=this._map.options.crs;if(!o.infinite){var c=this._globalTileRange;if(!o.wrapLng&&(i.x<c.min.x||i.x>c.max.x)||!o.wrapLat&&(i.y<c.min.y||i.y>c.max.y))return!1}if(!this.options.bounds)return!0;var f=this._tileCoordsToBounds(i);return Rt(this.options.bounds).overlaps(f)},_keyToBounds:function(i){return this._tileCoordsToBounds(this._keyToTileCoords(i))},_tileCoordsToNwSe:function(i){var o=this._map,c=this.getTileSize(),f=i.scaleBy(c),x=f.add(c),A=o.unproject(f,i.z),F=o.unproject(x,i.z);return[A,F]},_tileCoordsToBounds:function(i){var o=this._tileCoordsToNwSe(i),c=new pt(o[0],o[1]);return this.options.noWrap||(c=this._map.wrapLatLngBounds(c)),c},_tileCoordsToKey:function(i){return i.x+":"+i.y+":"+i.z},_keyToTileCoords:function(i){var o=i.split(":"),c=new G(+o[0],+o[1]);return c.z=+o[2],c},_removeTile:function(i){var o=this._tiles[i];o&&(se(o.el),delete this._tiles[i],this.fire("tileunload",{tile:o.el,coords:this._keyToTileCoords(i)}))},_initTile:function(i){te(i,"leaflet-tile");var o=this.getTileSize();i.style.width=o.x+"px",i.style.height=o.y+"px",i.onselectstart=m,i.onmousemove=m,qt.ielt9&&this.options.opacity<1&&ye(i,this.options.opacity)},_addTile:function(i,o){var c=this._getTilePos(i),f=this._tileCoordsToKey(i),x=this.createTile(this._wrapCoords(i),l(this._tileReady,this,i));this._initTile(x),this.createTile.length<2&&k(l(this._tileReady,this,i,null,x)),Ee(x,c),this._tiles[f]={el:x,coords:i,current:!0},o.appendChild(x),this.fire("tileloadstart",{tile:x,coords:i})},_tileReady:function(i,o,c){o&&this.fire("tileerror",{error:o,tile:c,coords:i});var f=this._tileCoordsToKey(i);c=this._tiles[f],c&&(c.loaded=+new Date,this._map._fadeAnimated?(ye(c.el,0),Z(this._fadeFrame),this._fadeFrame=k(this._updateOpacity,this)):(c.active=!0,this._pruneTiles()),o||(te(c.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:c.el,coords:i})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),qt.ielt9||!this._map._fadeAnimated?k(this._pruneTiles,this):setTimeout(l(this._pruneTiles,this),250)))},_getTilePos:function(i){return i.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(i){var o=new G(this._wrapX?p(i.x,this._wrapX):i.x,this._wrapY?p(i.y,this._wrapY):i.y);return o.z=i.z,o},_pxBoundsToTileRange:function(i){var o=this.getTileSize();return new Mt(i.min.unscaleBy(o).floor(),i.max.unscaleBy(o).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var i in this._tiles)if(!this._tiles[i].loaded)return!1;return!0}});function BT(i){return new fo(i)}var fr=fo.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(i,o){this._url=i,o=S(this,o),o.detectRetina&&qt.retina&&o.maxZoom>0?(o.tileSize=Math.floor(o.tileSize/2),o.zoomReverse?(o.zoomOffset--,o.minZoom=Math.min(o.maxZoom,o.minZoom+1)):(o.zoomOffset++,o.maxZoom=Math.max(o.minZoom,o.maxZoom-1)),o.minZoom=Math.max(0,o.minZoom)):o.zoomReverse?o.minZoom=Math.min(o.maxZoom,o.minZoom):o.maxZoom=Math.max(o.minZoom,o.maxZoom),typeof o.subdomains=="string"&&(o.subdomains=o.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(i,o){return this._url===i&&o===void 0&&(o=!0),this._url=i,o||this.redraw(),this},createTile:function(i,o){var c=document.createElement("img");return he(c,"load",l(this._tileOnLoad,this,o,c)),he(c,"error",l(this._tileOnError,this,o,c)),(this.options.crossOrigin||this.options.crossOrigin==="")&&(c.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&(c.referrerPolicy=this.options.referrerPolicy),c.alt="",c.src=this.getTileUrl(i),c},getTileUrl:function(i){var o={r:qt.retina?"@2x":"",s:this._getSubdomain(i),x:i.x,y:i.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var c=this._globalTileRange.max.y-i.y;this.options.tms&&(o.y=c),o["-y"]=c}return R(this._url,r(o,this.options))},_tileOnLoad:function(i,o){qt.ielt9?setTimeout(l(i,this,null,o),0):i(null,o)},_tileOnError:function(i,o,c){var f=this.options.errorTileUrl;f&&o.getAttribute("src")!==f&&(o.src=f),i(c,o)},_onTileRemove:function(i){i.tile.onload=null},_getZoomForUrl:function(){var i=this._tileZoom,o=this.options.maxZoom,c=this.options.zoomReverse,f=this.options.zoomOffset;return c&&(i=o-i),i+f},_getSubdomain:function(i){var o=Math.abs(i.x+i.y)%this.options.subdomains.length;return this.options.subdomains[o]},_abortLoading:function(){var i,o;for(i in this._tiles)if(this._tiles[i].coords.z!==this._tileZoom&&(o=this._tiles[i].el,o.onload=m,o.onerror=m,!o.complete)){o.src=U;var c=this._tiles[i].coords;se(o),delete this._tiles[i],this.fire("tileabort",{tile:o,coords:c})}},_removeTile:function(i){var o=this._tiles[i];if(o)return o.el.setAttribute("src",U),fo.prototype._removeTile.call(this,i)},_tileReady:function(i,o,c){if(!(!this._map||c&&c.getAttribute("src")===U))return fo.prototype._tileReady.call(this,i,o,c)}});function Vm(i,o){return new fr(i,o)}var Gm=fr.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(i,o){this._url=i;var c=r({},this.defaultWmsParams);for(var f in o)f in this.options||(c[f]=o[f]);o=S(this,o);var x=o.detectRetina&&qt.retina?2:1,A=this.getTileSize();c.width=A.x*x,c.height=A.y*x,this.wmsParams=c},onAdd:function(i){this._crs=this.options.crs||i.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var o=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[o]=this._crs.code,fr.prototype.onAdd.call(this,i)},getTileUrl:function(i){var o=this._tileCoordsToNwSe(i),c=this._crs,f=Gt(c.project(o[0]),c.project(o[1])),x=f.min,A=f.max,F=(this._wmsVersion>=1.3&&this._crs===Um?[x.y,x.x,A.y,A.x]:[x.x,x.y,A.x,A.y]).join(","),J=fr.prototype.getTileUrl.call(this,i);return J+v(this.wmsParams,J,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+F},setParams:function(i,o){return r(this.wmsParams,i),o||this.redraw(),this}});function FT(i,o){return new Gm(i,o)}fr.WMS=Gm,Vm.wms=FT;var bi=Qn.extend({options:{padding:.1},initialize:function(i){S(this,i),u(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),te(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 i={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(i.zoomanim=this._onAnimZoom),i},_onAnimZoom:function(i){this._updateTransform(i.center,i.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(i,o){var c=this._map.getZoomScale(o,this._zoom),f=this._map.getSize().multiplyBy(.5+this.options.padding),x=this._map.project(this._center,o),A=f.multiplyBy(-c).add(x).subtract(this._map._getNewPixelOrigin(i,o));qt.any3d?Fe(this._container,A,c):Ee(this._container,A)},_reset:function(){this._update(),this._updateTransform(this._center,this._zoom);for(var i in this._layers)this._layers[i]._reset()},_onZoomEnd:function(){for(var i in this._layers)this._layers[i]._project()},_updatePaths:function(){for(var i in this._layers)this._layers[i]._update()},_update:function(){var i=this.options.padding,o=this._map.getSize(),c=this._map.containerPointToLayerPoint(o.multiplyBy(-i)).round();this._bounds=new Mt(c,c.add(o.multiplyBy(1+i*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),Wm=bi.extend({options:{tolerance:0},getEvents:function(){var i=bi.prototype.getEvents.call(this);return i.viewprereset=this._onViewPreReset,i},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){bi.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var i=this._container=document.createElement("canvas");he(i,"mousemove",this._onMouseMove,this),he(i,"click dblclick mousedown mouseup contextmenu",this._onClick,this),he(i,"mouseout",this._handleMouseOut,this),i._leaflet_disable_events=!0,this._ctx=i.getContext("2d")},_destroyContainer:function(){Z(this._redrawRequest),delete this._ctx,se(this._container),Ue(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var i;this._redrawBounds=null;for(var o in this._layers)i=this._layers[o],i._update();this._redraw()}},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){bi.prototype._update.call(this);var i=this._bounds,o=this._container,c=i.getSize(),f=qt.retina?2:1;Ee(o,i.min),o.width=f*c.x,o.height=f*c.y,o.style.width=c.x+"px",o.style.height=c.y+"px",qt.retina&&this._ctx.scale(2,2),this._ctx.translate(-i.min.x,-i.min.y),this.fire("update")}},_reset:function(){bi.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(i){this._updateDashArray(i),this._layers[u(i)]=i;var o=i._order={layer:i,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=o),this._drawLast=o,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(i){this._requestRedraw(i)},_removePath:function(i){var o=i._order,c=o.next,f=o.prev;c?c.prev=f:this._drawLast=f,f?f.next=c:this._drawFirst=c,delete i._order,delete this._layers[u(i)],this._requestRedraw(i)},_updatePath:function(i){this._extendRedrawBounds(i),i._project(),i._update(),this._requestRedraw(i)},_updateStyle:function(i){this._updateDashArray(i),this._requestRedraw(i)},_updateDashArray:function(i){if(typeof i.options.dashArray=="string"){var o=i.options.dashArray.split(/[, ]+/),c=[],f,x;for(x=0;x<o.length;x++){if(f=Number(o[x]),isNaN(f))return;c.push(f)}i.options._dashArray=c}else i.options._dashArray=i.options.dashArray},_requestRedraw:function(i){this._map&&(this._extendRedrawBounds(i),this._redrawRequest=this._redrawRequest||k(this._redraw,this))},_extendRedrawBounds:function(i){if(i._pxBounds){var o=(i.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new Mt,this._redrawBounds.extend(i._pxBounds.min.subtract([o,o])),this._redrawBounds.extend(i._pxBounds.max.add([o,o]))}},_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 i=this._redrawBounds;if(i){var o=i.getSize();this._ctx.clearRect(i.min.x,i.min.y,o.x,o.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 i,o=this._redrawBounds;if(this._ctx.save(),o){var c=o.getSize();this._ctx.beginPath(),this._ctx.rect(o.min.x,o.min.y,c.x,c.y),this._ctx.clip()}this._drawing=!0;for(var f=this._drawFirst;f;f=f.next)i=f.layer,(!o||i._pxBounds&&i._pxBounds.intersects(o))&&i._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(i,o){if(this._drawing){var c,f,x,A,F=i._parts,J=F.length,nt=this._ctx;if(J){for(nt.beginPath(),c=0;c<J;c++){for(f=0,x=F[c].length;f<x;f++)A=F[c][f],nt[f?"lineTo":"moveTo"](A.x,A.y);o&&nt.closePath()}this._fillStroke(nt,i)}}},_updateCircle:function(i){if(!(!this._drawing||i._empty())){var o=i._point,c=this._ctx,f=Math.max(Math.round(i._radius),1),x=(Math.max(Math.round(i._radiusY),1)||f)/f;x!==1&&(c.save(),c.scale(1,x)),c.beginPath(),c.arc(o.x,o.y/x,f,0,Math.PI*2,!1),x!==1&&c.restore(),this._fillStroke(c,i)}},_fillStroke:function(i,o){var c=o.options;c.fill&&(i.globalAlpha=c.fillOpacity,i.fillStyle=c.fillColor||c.color,i.fill(c.fillRule||"evenodd")),c.stroke&&c.weight!==0&&(i.setLineDash&&i.setLineDash(o.options&&o.options._dashArray||[]),i.globalAlpha=c.opacity,i.lineWidth=c.weight,i.strokeStyle=c.color,i.lineCap=c.lineCap,i.lineJoin=c.lineJoin,i.stroke())},_onClick:function(i){for(var o=this._map.mouseEventToLayerPoint(i),c,f,x=this._drawFirst;x;x=x.next)c=x.layer,c.options.interactive&&c._containsPoint(o)&&(!(i.type==="click"||i.type==="preclick")||!this._map._draggableMoved(c))&&(f=c);this._fireEvent(f?[f]:!1,i)},_onMouseMove:function(i){if(!(!this._map||this._map.dragging.moving()||this._map._animatingZoom)){var o=this._map.mouseEventToLayerPoint(i);this._handleMouseHover(i,o)}},_handleMouseOut:function(i){var o=this._hoveredLayer;o&&(ke(this._container,"leaflet-interactive"),this._fireEvent([o],i,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(i,o){if(!this._mouseHoverThrottled){for(var c,f,x=this._drawFirst;x;x=x.next)c=x.layer,c.options.interactive&&c._containsPoint(o)&&(f=c);f!==this._hoveredLayer&&(this._handleMouseOut(i),f&&(te(this._container,"leaflet-interactive"),this._fireEvent([f],i,"mouseover"),this._hoveredLayer=f)),this._fireEvent(this._hoveredLayer?[this._hoveredLayer]:!1,i),this._mouseHoverThrottled=!0,setTimeout(l(function(){this._mouseHoverThrottled=!1},this),32)}},_fireEvent:function(i,o,c){this._map._fireDOMEvent(o,c||o.type,i)},_bringToFront:function(i){var o=i._order;if(o){var c=o.next,f=o.prev;if(c)c.prev=f;else return;f?f.next=c:c&&(this._drawFirst=c),o.prev=this._drawLast,this._drawLast.next=o,o.next=null,this._drawLast=o,this._requestRedraw(i)}},_bringToBack:function(i){var o=i._order;if(o){var c=o.next,f=o.prev;if(f)f.next=c;else return;c?c.prev=f:f&&(this._drawLast=f),o.prev=null,o.next=this._drawFirst,this._drawFirst.prev=o,this._drawFirst=o,this._requestRedraw(i)}}});function Zm(i){return qt.canvas?new Wm(i):null}var po=(function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(i){return document.createElement("<lvml:"+i+' class="lvml">')}}catch{}return function(i){return document.createElement("<"+i+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}})(),zT={_initContainer:function(){this._container=Kt("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(bi.prototype._update.call(this),this.fire("update"))},_initPath:function(i){var o=i._container=po("shape");te(o,"leaflet-vml-shape "+(this.options.className||"")),o.coordsize="1 1",i._path=po("path"),o.appendChild(i._path),this._updateStyle(i),this._layers[u(i)]=i},_addPath:function(i){var o=i._container;this._container.appendChild(o),i.options.interactive&&i.addInteractiveTarget(o)},_removePath:function(i){var o=i._container;se(o),i.removeInteractiveTarget(o),delete this._layers[u(i)]},_updateStyle:function(i){var o=i._stroke,c=i._fill,f=i.options,x=i._container;x.stroked=!!f.stroke,x.filled=!!f.fill,f.stroke?(o||(o=i._stroke=po("stroke")),x.appendChild(o),o.weight=f.weight+"px",o.color=f.color,o.opacity=f.opacity,f.dashArray?o.dashStyle=P(f.dashArray)?f.dashArray.join(" "):f.dashArray.replace(/( *, *)/g," "):o.dashStyle="",o.endcap=f.lineCap.replace("butt","flat"),o.joinstyle=f.lineJoin):o&&(x.removeChild(o),i._stroke=null),f.fill?(c||(c=i._fill=po("fill")),x.appendChild(c),c.color=f.fillColor||f.color,c.opacity=f.fillOpacity):c&&(x.removeChild(c),i._fill=null)},_updateCircle:function(i){var o=i._point.round(),c=Math.round(i._radius),f=Math.round(i._radiusY||c);this._setPath(i,i._empty()?"M0 0":"AL "+o.x+","+o.y+" "+c+","+f+" 0,"+65535*360)},_setPath:function(i,o){i._path.v=o},_bringToFront:function(i){Qt(i._container)},_bringToBack:function(i){Le(i._container)}},$a=qt.vml?po:ct,mo=bi.extend({_initContainer:function(){this._container=$a("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=$a("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){se(this._container),Ue(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){bi.prototype._update.call(this);var i=this._bounds,o=i.getSize(),c=this._container;(!this._svgSize||!this._svgSize.equals(o))&&(this._svgSize=o,c.setAttribute("width",o.x),c.setAttribute("height",o.y)),Ee(c,i.min),c.setAttribute("viewBox",[i.min.x,i.min.y,o.x,o.y].join(" ")),this.fire("update")}},_initPath:function(i){var o=i._path=$a("path");i.options.className&&te(o,i.options.className),i.options.interactive&&te(o,"leaflet-interactive"),this._updateStyle(i),this._layers[u(i)]=i},_addPath:function(i){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(i._path),i.addInteractiveTarget(i._path)},_removePath:function(i){se(i._path),i.removeInteractiveTarget(i._path),delete this._layers[u(i)]},_updatePath:function(i){i._project(),i._update()},_updateStyle:function(i){var o=i._path,c=i.options;o&&(c.stroke?(o.setAttribute("stroke",c.color),o.setAttribute("stroke-opacity",c.opacity),o.setAttribute("stroke-width",c.weight),o.setAttribute("stroke-linecap",c.lineCap),o.setAttribute("stroke-linejoin",c.lineJoin),c.dashArray?o.setAttribute("stroke-dasharray",c.dashArray):o.removeAttribute("stroke-dasharray"),c.dashOffset?o.setAttribute("stroke-dashoffset",c.dashOffset):o.removeAttribute("stroke-dashoffset")):o.setAttribute("stroke","none"),c.fill?(o.setAttribute("fill",c.fillColor||c.color),o.setAttribute("fill-opacity",c.fillOpacity),o.setAttribute("fill-rule",c.fillRule||"evenodd")):o.setAttribute("fill","none"))},_updatePoly:function(i,o){this._setPath(i,_t(i._parts,o))},_updateCircle:function(i){var o=i._point,c=Math.max(Math.round(i._radius),1),f=Math.max(Math.round(i._radiusY),1)||c,x="a"+c+","+f+" 0 1,0 ",A=i._empty()?"M0 0":"M"+(o.x-c)+","+o.y+x+c*2+",0 "+x+-c*2+",0 ";this._setPath(i,A)},_setPath:function(i,o){i._path.setAttribute("d",o)},_bringToFront:function(i){Qt(i._path)},_bringToBack:function(i){Le(i._path)}});qt.vml&&mo.include(zT);function Xm(i){return qt.svg||qt.vml?new mo(i):null}we.include({getRenderer:function(i){var o=i.options.renderer||this._getPaneRenderer(i.options.pane)||this.options.renderer||this._renderer;return o||(o=this._renderer=this._createRenderer()),this.hasLayer(o)||this.addLayer(o),o},_getPaneRenderer:function(i){if(i==="overlayPane"||i===void 0)return!1;var o=this._paneRenderers[i];return o===void 0&&(o=this._createRenderer({pane:i}),this._paneRenderers[i]=o),o},_createRenderer:function(i){return this.options.preferCanvas&&Zm(i)||Xm(i)}});var Ym=ur.extend({initialize:function(i,o){ur.prototype.initialize.call(this,this._boundsToLatLngs(i),o)},setBounds:function(i){return this.setLatLngs(this._boundsToLatLngs(i))},_boundsToLatLngs:function(i){return i=Rt(i),[i.getSouthWest(),i.getNorthWest(),i.getNorthEast(),i.getSouthEast()]}});function HT(i,o){return new Ym(i,o)}mo.create=$a,mo.pointsToPath=_t,Ti.geometryToLayer=Xa,Ti.coordsToLatLng=Uh,Ti.coordsToLatLngs=Ya,Ti.latLngToCoords=Oh,Ti.latLngsToCoords=qa,Ti.getFeature=dr,Ti.asFeature=Qa,we.mergeOptions({boxZoom:!0});var qm=oi.extend({initialize:function(i){this._map=i,this._container=i._container,this._pane=i._panes.overlayPane,this._resetStateTimeout=0,i.on("unload",this._destroy,this)},addHooks:function(){he(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){Ue(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){se(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(i){if(!i.shiftKey||i.which!==1&&i.button!==1)return!1;this._clearDeferredResetState(),this._resetState(),Cn(),vh(),this._startPoint=this._map.mouseEventToContainerPoint(i),he(document,{contextmenu:Es,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(i){this._moved||(this._moved=!0,this._box=Kt("div","leaflet-zoom-box",this._container),te(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(i);var o=new Mt(this._point,this._startPoint),c=o.getSize();Ee(this._box,o.min),this._box.style.width=c.x+"px",this._box.style.height=c.y+"px"},_finish:function(){this._moved&&(se(this._box),ke(this._container,"leaflet-crosshair")),oo(),yh(),Ue(document,{contextmenu:Es,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(i){if(!(i.which!==1&&i.button!==1)&&(this._finish(),!!this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(l(this._resetState,this),0);var o=new pt(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(o).fire("boxzoomend",{boxZoomBounds:o})}},_onKeyDown:function(i){i.keyCode===27&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});we.addInitHook("addHandler","boxZoom",qm),we.mergeOptions({doubleClickZoom:!0});var Qm=oi.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(i){var o=this._map,c=o.getZoom(),f=o.options.zoomDelta,x=i.originalEvent.shiftKey?c-f:c+f;o.options.doubleClickZoom==="center"?o.setZoom(x):o.setZoomAround(i.containerPoint,x)}});we.addInitHook("addHandler","doubleClickZoom",Qm),we.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var jm=oi.extend({addHooks:function(){if(!this._draggable){var i=this._map;this._draggable=new Ki(i._mapPane,i._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),i.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),i.on("zoomend",this._onZoomEnd,this),i.whenReady(this._onZoomEnd,this))}te(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){ke(this._map._container,"leaflet-grab"),ke(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 i=this._map;if(i._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var o=Rt(this._map.options.maxBounds);this._offsetLimit=Gt(this._map.latLngToContainerPoint(o.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(o.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;i.fire("movestart").fire("dragstart"),i.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(i){if(this._map.options.inertia){var o=this._lastTime=+new Date,c=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(c),this._times.push(o),this._prunePositions(o)}this._map.fire("move",i).fire("drag",i)},_prunePositions:function(i){for(;this._positions.length>1&&i-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var i=this._map.getSize().divideBy(2),o=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=o.subtract(i).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(i,o){return i-(i-o)*this._viscosity},_onPreDragLimit:function(){if(!(!this._viscosity||!this._offsetLimit)){var i=this._draggable._newPos.subtract(this._draggable._startPos),o=this._offsetLimit;i.x<o.min.x&&(i.x=this._viscousLimit(i.x,o.min.x)),i.y<o.min.y&&(i.y=this._viscousLimit(i.y,o.min.y)),i.x>o.max.x&&(i.x=this._viscousLimit(i.x,o.max.x)),i.y>o.max.y&&(i.y=this._viscousLimit(i.y,o.max.y)),this._draggable._newPos=this._draggable._startPos.add(i)}},_onPreDragWrap:function(){var i=this._worldWidth,o=Math.round(i/2),c=this._initialWorldOffset,f=this._draggable._newPos.x,x=(f-o+c)%i+o-c,A=(f+o+c)%i-o-c,F=Math.abs(x+c)<Math.abs(A+c)?x:A;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=F},_onDragEnd:function(i){var o=this._map,c=o.options,f=!c.inertia||i.noInertia||this._times.length<2;if(o.fire("dragend",i),f)o.fire("moveend");else{this._prunePositions(+new Date);var x=this._lastPos.subtract(this._positions[0]),A=(this._lastTime-this._times[0])/1e3,F=c.easeLinearity,J=x.multiplyBy(F/A),nt=J.distanceTo([0,0]),mt=Math.min(c.inertiaMaxSpeed,nt),kt=J.multiplyBy(mt/nt),re=mt/(c.inertiaDeceleration*F),me=kt.multiplyBy(-re/2).round();!me.x&&!me.y?o.fire("moveend"):(me=o._limitOffset(me,o.options.maxBounds),k(function(){o.panBy(me,{duration:re,easeLinearity:F,noMoveStart:!0,animate:!0})}))}}});we.addInitHook("addHandler","dragging",jm),we.mergeOptions({keyboard:!0,keyboardPanDelta:80});var Jm=oi.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(i){this._map=i,this._setPanDelta(i.options.keyboardPanDelta),this._setZoomDelta(i.options.zoomDelta)},addHooks:function(){var i=this._map._container;i.tabIndex<=0&&(i.tabIndex="0"),he(i,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),Ue(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 i=document.body,o=document.documentElement,c=i.scrollTop||o.scrollTop,f=i.scrollLeft||o.scrollLeft;this._map._container.focus(),window.scrollTo(f,c)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(i){var o=this._panKeys={},c=this.keyCodes,f,x;for(f=0,x=c.left.length;f<x;f++)o[c.left[f]]=[-1*i,0];for(f=0,x=c.right.length;f<x;f++)o[c.right[f]]=[i,0];for(f=0,x=c.down.length;f<x;f++)o[c.down[f]]=[0,i];for(f=0,x=c.up.length;f<x;f++)o[c.up[f]]=[0,-1*i]},_setZoomDelta:function(i){var o=this._zoomKeys={},c=this.keyCodes,f,x;for(f=0,x=c.zoomIn.length;f<x;f++)o[c.zoomIn[f]]=i;for(f=0,x=c.zoomOut.length;f<x;f++)o[c.zoomOut[f]]=-i},_addHooks:function(){he(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){Ue(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(i){if(!(i.altKey||i.ctrlKey||i.metaKey)){var o=i.keyCode,c=this._map,f;if(o in this._panKeys){if(!c._panAnim||!c._panAnim._inProgress)if(f=this._panKeys[o],i.shiftKey&&(f=lt(f).multiplyBy(3)),c.options.maxBounds&&(f=c._limitOffset(lt(f),c.options.maxBounds)),c.options.worldCopyJump){var x=c.wrapLatLng(c.unproject(c.project(c.getCenter()).add(f)));c.panTo(x)}else c.panBy(f)}else if(o in this._zoomKeys)c.setZoom(c.getZoom()+(i.shiftKey?3:1)*this._zoomKeys[o]);else if(o===27&&c._popup&&c._popup.options.closeOnEscapeKey)c.closePopup();else return;Es(i)}}});we.addInitHook("addHandler","keyboard",Jm),we.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var Km=oi.extend({addHooks:function(){he(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){Ue(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(i){var o=wm(i),c=this._map.options.wheelDebounceTime;this._delta+=o,this._lastMousePos=this._map.mouseEventToContainerPoint(i),this._startTime||(this._startTime=+new Date);var f=Math.max(c-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(l(this._performZoom,this),f),Es(i)},_performZoom:function(){var i=this._map,o=i.getZoom(),c=this._map.options.zoomSnap||0;i._stop();var f=this._delta/(this._map.options.wheelPxPerZoomLevel*4),x=4*Math.log(2/(1+Math.exp(-Math.abs(f))))/Math.LN2,A=c?Math.ceil(x/c)*c:x,F=i._limitZoom(o+(this._delta>0?A:-A))-o;this._delta=0,this._startTime=null,F&&(i.options.scrollWheelZoom==="center"?i.setZoom(o+F):i.setZoomAround(this._lastMousePos,o+F))}});we.addInitHook("addHandler","scrollWheelZoom",Km);var VT=600;we.mergeOptions({tapHold:qt.touchNative&&qt.safari&&qt.mobile,tapTolerance:15});var $m=oi.extend({addHooks:function(){he(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){Ue(this._map._container,"touchstart",this._onDown,this)},_onDown:function(i){if(clearTimeout(this._holdTimeout),i.touches.length===1){var o=i.touches[0];this._startPos=this._newPos=new G(o.clientX,o.clientY),this._holdTimeout=setTimeout(l(function(){this._cancel(),this._isTapValid()&&(he(document,"touchend",nn),he(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",o))},this),VT),he(document,"touchend touchcancel contextmenu",this._cancel,this),he(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function i(){Ue(document,"touchend",nn),Ue(document,"touchend touchcancel",i)},_cancel:function(){clearTimeout(this._holdTimeout),Ue(document,"touchend touchcancel contextmenu",this._cancel,this),Ue(document,"touchmove",this._onMove,this)},_onMove:function(i){var o=i.touches[0];this._newPos=new G(o.clientX,o.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(i,o){var c=new MouseEvent(i,{bubbles:!0,cancelable:!0,view:window,screenX:o.screenX,screenY:o.screenY,clientX:o.clientX,clientY:o.clientY});c._simulated=!0,o.target.dispatchEvent(c)}});we.addInitHook("addHandler","tapHold",$m),we.mergeOptions({touchZoom:qt.touch,bounceAtZoomLimits:!0});var tg=oi.extend({addHooks:function(){te(this._map._container,"leaflet-touch-zoom"),he(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){ke(this._map._container,"leaflet-touch-zoom"),Ue(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(i){var o=this._map;if(!(!i.touches||i.touches.length!==2||o._animatingZoom||this._zooming)){var c=o.mouseEventToContainerPoint(i.touches[0]),f=o.mouseEventToContainerPoint(i.touches[1]);this._centerPoint=o.getSize()._divideBy(2),this._startLatLng=o.containerPointToLatLng(this._centerPoint),o.options.touchZoom!=="center"&&(this._pinchStartLatLng=o.containerPointToLatLng(c.add(f)._divideBy(2))),this._startDist=c.distanceTo(f),this._startZoom=o.getZoom(),this._moved=!1,this._zooming=!0,o._stop(),he(document,"touchmove",this._onTouchMove,this),he(document,"touchend touchcancel",this._onTouchEnd,this),nn(i)}},_onTouchMove:function(i){if(!(!i.touches||i.touches.length!==2||!this._zooming)){var o=this._map,c=o.mouseEventToContainerPoint(i.touches[0]),f=o.mouseEventToContainerPoint(i.touches[1]),x=c.distanceTo(f)/this._startDist;if(this._zoom=o.getScaleZoom(x,this._startZoom),!o.options.bounceAtZoomLimits&&(this._zoom<o.getMinZoom()&&x<1||this._zoom>o.getMaxZoom()&&x>1)&&(this._zoom=o._limitZoom(this._zoom)),o.options.touchZoom==="center"){if(this._center=this._startLatLng,x===1)return}else{var A=c._add(f)._divideBy(2)._subtract(this._centerPoint);if(x===1&&A.x===0&&A.y===0)return;this._center=o.unproject(o.project(this._pinchStartLatLng,this._zoom).subtract(A),this._zoom)}this._moved||(o._moveStart(!0,!1),this._moved=!0),Z(this._animRequest);var F=l(o._move,o,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=k(F,this,!0),nn(i)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,Z(this._animRequest),Ue(document,"touchmove",this._onTouchMove,this),Ue(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))}});we.addInitHook("addHandler","touchZoom",tg),we.BoxZoom=qm,we.DoubleClickZoom=Qm,we.Drag=jm,we.Keyboard=Jm,we.ScrollWheelZoom=Km,we.TapHold=$m,we.TouchZoom=tg,e.Bounds=Mt,e.Browser=qt,e.CRS=ft,e.Canvas=Wm,e.Circle=kh,e.CircleMarker=Za,e.Class=V,e.Control=qn,e.DivIcon=Hm,e.DivOverlay=ai,e.DomEvent=oT,e.DomUtil=sT,e.Draggable=Ki,e.Evented=dt,e.FeatureGroup=Si,e.GeoJSON=Ti,e.GridLayer=fo,e.Handler=oi,e.Icon=hr,e.ImageOverlay=ja,e.LatLng=Y,e.LatLngBounds=pt,e.Layer=Qn,e.LayerGroup=cr,e.LineUtil=yT,e.Map=we,e.Marker=Wa,e.Mixin=fT,e.Path=$i,e.Point=G,e.PolyUtil=pT,e.Polygon=ur,e.Polyline=Mi,e.Popup=Ja,e.PosAnimation=Sm,e.Projection=ET,e.Rectangle=Ym,e.Renderer=bi,e.SVG=mo,e.SVGOverlay=zm,e.TileLayer=fr,e.Tooltip=Ka,e.Transformation=ce,e.Util=Q,e.VideoOverlay=Fm,e.bind=l,e.bounds=Gt,e.canvas=Zm,e.circle=CT,e.circleMarker=AT,e.control=co,e.divIcon=NT,e.extend=r,e.featureGroup=MT,e.geoJSON=Bm,e.geoJson=LT,e.gridLayer=BT,e.icon=TT,e.imageOverlay=IT,e.latLng=st,e.latLngBounds=Rt,e.layerGroup=ST,e.map=aT,e.marker=bT,e.point=lt,e.polygon=RT,e.polyline=PT,e.popup=UT,e.rectangle=HT,e.setOptions=S,e.stamp=u,e.svg=Xm,e.svgOverlay=kT,e.tileLayer=Vm,e.tooltip=OT,e.transformation=at,e.version=s,e.videoOverlay=DT;var GT=window.L;e.noConflict=function(){return window.L=GT,this},window.L=e}))})(mr,mr.exports)),mr.exports}var R_=P_();const yn=A_(R_);function L_(n,t,e){if(n){const{obsType:s,obsPrefix:r,obsTiles:a}=e||{},{cols:l=8,rows:h=1}=a||{},{width:u=5760,height:d=2880}=t||{};if(s===xt.AppObsType.Hw){const m=ws(n,"x-image-process=image/resize,m_fixed,w_720,h_360,limit_0/marker,u_plus/imageslim");return{width:u,cols:l,rows:h,baseUrl:m,tileUrl:(_,E)=>{const w=u/l,S=d/h,v=`x-image-process=image/crop,x_${_*w},y_${E*S},w_${w},h_${S}/imageslim`;return ws(n,v)}}}else if(s===xt.AppObsType.Ali){const m=ws(n,"x-oss-process=image/resize,m_fixed,w_720,h_360,limit_0/quality,Q_75");return{width:u,cols:l,rows:h,baseUrl:m,tileUrl:(_,E)=>{const w=u/l,S=d/h,v=`x-oss-process=image/crop,x_${_*w},y_${E*S},w_${w},h_${S}/quality,Q_75`;return ws(n,v)}}}else if(s===xt.AppObsType.Hs){const m=ws(n,"x-tos-process=image/resize,m_fixed,w_720,h_360,limit_0/quality,Q_75");return{width:u,cols:l,rows:h,baseUrl:m,tileUrl:(_,E)=>{const w=u/l,S=d/h,v=`x-tos-process=image/crop,x_${_*w},y_${E*S},w_${w},h_${S}/quality,Q_75`;return ws(n,v)}}}else return s===xt.AppObsType.Aws?n:s===xt.AppObsType.Minio?`${r}/plain/${n}`:n}return n}async function I_(n,t){if(n){const{obsType:e}=t||{};if(e===xt.AppObsType.Hw){let s="x-image-process=image/info";s=n.includes("?")?`${n}&${s}`:`${n}?${s}`;const{width:r,height:a}=await xt.api.getImageInfo(s);return{width:r,height:a}}else if(e===xt.AppObsType.Ali){let s="x-oss-process=image/info";s=n.includes("?")?`${n}&${s}`:`${n}?${s}`;const r=await xt.api.getImageInfo(s),{ImageHeight:a,ImageWidth:l}=r;return{...r,width:l.value,height:a.value}}else if(e===xt.AppObsType.Hs){let s="x-tos-process=image/info";s=n.includes("?")?`${n}&${s}`:`${n}?${s}`;const r=await xt.api.getImageInfo(s),{ImageHeight:a,ImageWidth:l}=r;return{...r,width:l.value,height:a.value}}else return e===xt.AppObsType.Aws?{width:5760,height:2880}:e===xt.AppObsType.Minio?{width:5760,height:2880}:{width:5760,height:2880}}}function ws(n,t){return n.includes("?")?`${n}&${t}`:`${n}?${t}`}class D_{marker;options;radarElement;map=null;constructor(t){this.options={radius:t.radius??30,color:t.color??"#108ee9",hFov:t.hFov??90,angle:t.angle??0,className:t.className??"leaflet-radar-marker"},this.radarElement=this.createRadarElement(),this.marker=yn.marker(t.latLng,{icon:yn.divIcon({className:this.options.className,html:this.radarElement,iconSize:[this.options.radius*2,this.options.radius*2],iconAnchor:[this.options.radius,this.options.radius]}),interactive:!1})}createRadarElement(){const t=document.createElement("div");t.style.pointerEvents="none",t.style.position="relative";const e=document.createElement("div");return e.style.transition="all 0.3s ease",e.style.display="block",t.appendChild(e),this.updateRadarStyle(),t}updateRadarStyle(){const t=this?.radarElement?.querySelector("div");if(!t)return;const{radius:e,color:s,hFov:r,angle:a}=this.options,h=`conic-gradient(
|
|
4
|
+
*/var C_=mr.exports,Xh;function P_(){return Xh||(Xh=1,(function(n,t){(function(e,s){s(t)})(C_,(function(e){var s="1.9.4";function r(i){var o,c,f,x;for(c=1,f=arguments.length;c<f;c++){x=arguments[c];for(o in x)i[o]=x[o]}return i}var a=Object.create||(function(){function i(){}return function(o){return i.prototype=o,new i}})();function l(i,o){var c=Array.prototype.slice;if(i.bind)return i.bind.apply(i,c.call(arguments,1));var f=c.call(arguments,2);return function(){return i.apply(o,f.length?f.concat(c.call(arguments)):arguments)}}var h=0;function u(i){return"_leaflet_id"in i||(i._leaflet_id=++h),i._leaflet_id}function d(i,o,c){var f,x,A,F;return F=function(){f=!1,x&&(A.apply(c,x),x=!1)},A=function(){f?x=arguments:(i.apply(c,arguments),setTimeout(F,o),f=!0)},A}function p(i,o,c){var f=o[1],x=o[0],A=f-x;return i===f&&c?i:((i-x)%A+A)%A+x}function m(){return!1}function _(i,o){if(o===!1)return i;var c=Math.pow(10,o===void 0?6:o);return Math.round(i*c)/c}function E(i){return i.trim?i.trim():i.replace(/^\s+|\s+$/g,"")}function w(i){return E(i).split(/\s+/)}function S(i,o){Object.prototype.hasOwnProperty.call(i,"options")||(i.options=i.options?a(i.options):{});for(var c in o)i.options[c]=o[c];return i.options}function v(i,o,c){var f=[];for(var x in i)f.push(encodeURIComponent(c?x.toUpperCase():x)+"="+encodeURIComponent(i[x]));return(!o||o.indexOf("?")===-1?"?":"&")+f.join("&")}var g=/\{ *([\w_ -]+) *\}/g;function R(i,o){return i.replace(g,function(c,f){var x=o[f];if(x===void 0)throw new Error("No value provided for variable "+c);return typeof x=="function"&&(x=x(o)),x})}var P=Array.isArray||function(i){return Object.prototype.toString.call(i)==="[object Array]"};function M(i,o){for(var c=0;c<i.length;c++)if(i[c]===o)return c;return-1}var U="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function B(i){return window["webkit"+i]||window["moz"+i]||window["ms"+i]}var N=0;function z(i){var o=+new Date,c=Math.max(0,16-(o-N));return N=o+c,window.setTimeout(i,c)}var D=window.requestAnimationFrame||B("RequestAnimationFrame")||z,T=window.cancelAnimationFrame||B("CancelAnimationFrame")||B("CancelRequestAnimationFrame")||function(i){window.clearTimeout(i)};function k(i,o,c){if(c&&D===z)i.call(o);else return D.call(window,l(i,o))}function Z(i){i&&T.call(window,i)}var Q={__proto__:null,extend:r,create:a,bind:l,get lastId(){return h},stamp:u,throttle:d,wrapNum:p,falseFn:m,formatNum:_,trim:E,splitWords:w,setOptions:S,getParamString:v,template:R,isArray:P,indexOf:M,emptyImageUrl:U,requestFn:D,cancelFn:T,requestAnimFrame:k,cancelAnimFrame:Z};function V(){}V.extend=function(i){var o=function(){S(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},c=o.__super__=this.prototype,f=a(c);f.constructor=o,o.prototype=f;for(var x in this)Object.prototype.hasOwnProperty.call(this,x)&&x!=="prototype"&&x!=="__super__"&&(o[x]=this[x]);return i.statics&&r(o,i.statics),i.includes&&($(i.includes),r.apply(null,[f].concat(i.includes))),r(f,i),delete f.statics,delete f.includes,f.options&&(f.options=c.options?a(c.options):{},r(f.options,i.options)),f._initHooks=[],f.callInitHooks=function(){if(!this._initHooksCalled){c.callInitHooks&&c.callInitHooks.call(this),this._initHooksCalled=!0;for(var A=0,F=f._initHooks.length;A<F;A++)f._initHooks[A].call(this)}},o},V.include=function(i){var o=this.prototype.options;return r(this.prototype,i),i.options&&(this.prototype.options=o,this.mergeOptions(i.options)),this},V.mergeOptions=function(i){return r(this.prototype.options,i),this},V.addInitHook=function(i){var o=Array.prototype.slice.call(arguments,1),c=typeof i=="function"?i:function(){this[i].apply(this,o)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(c),this};function $(i){if(!(typeof L>"u"||!L||!L.Mixin)){i=P(i)?i:[i];for(var o=0;o<i.length;o++)i[o]===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 K={on:function(i,o,c){if(typeof i=="object")for(var f in i)this._on(f,i[f],o);else{i=w(i);for(var x=0,A=i.length;x<A;x++)this._on(i[x],o,c)}return this},off:function(i,o,c){if(!arguments.length)delete this._events;else if(typeof i=="object")for(var f in i)this._off(f,i[f],o);else{i=w(i);for(var x=arguments.length===1,A=0,F=i.length;A<F;A++)x?this._off(i[A]):this._off(i[A],o,c)}return this},_on:function(i,o,c,f){if(typeof o!="function"){console.warn("wrong listener type: "+typeof o);return}if(this._listens(i,o,c)===!1){c===this&&(c=void 0);var x={fn:o,ctx:c};f&&(x.once=!0),this._events=this._events||{},this._events[i]=this._events[i]||[],this._events[i].push(x)}},_off:function(i,o,c){var f,x,A;if(this._events&&(f=this._events[i],!!f)){if(arguments.length===1){if(this._firingCount)for(x=0,A=f.length;x<A;x++)f[x].fn=m;delete this._events[i];return}if(typeof o!="function"){console.warn("wrong listener type: "+typeof o);return}var F=this._listens(i,o,c);if(F!==!1){var J=f[F];this._firingCount&&(J.fn=m,this._events[i]=f=f.slice()),f.splice(F,1)}}},fire:function(i,o,c){if(!this.listens(i,c))return this;var f=r({},o,{type:i,target:this,sourceTarget:o&&o.sourceTarget||this});if(this._events){var x=this._events[i];if(x){this._firingCount=this._firingCount+1||1;for(var A=0,F=x.length;A<F;A++){var J=x[A],nt=J.fn;J.once&&this.off(i,nt,J.ctx),nt.call(J.ctx||this,f)}this._firingCount--}}return c&&this._propagateEvent(f),this},listens:function(i,o,c,f){typeof i!="string"&&console.warn('"string" type argument expected');var x=o;typeof o!="function"&&(f=!!o,x=void 0,c=void 0);var A=this._events&&this._events[i];if(A&&A.length&&this._listens(i,x,c)!==!1)return!0;if(f){for(var F in this._eventParents)if(this._eventParents[F].listens(i,o,c,f))return!0}return!1},_listens:function(i,o,c){if(!this._events)return!1;var f=this._events[i]||[];if(!o)return!!f.length;c===this&&(c=void 0);for(var x=0,A=f.length;x<A;x++)if(f[x].fn===o&&f[x].ctx===c)return x;return!1},once:function(i,o,c){if(typeof i=="object")for(var f in i)this._on(f,i[f],o,!0);else{i=w(i);for(var x=0,A=i.length;x<A;x++)this._on(i[x],o,c,!0)}return this},addEventParent:function(i){return this._eventParents=this._eventParents||{},this._eventParents[u(i)]=i,this},removeEventParent:function(i){return this._eventParents&&delete this._eventParents[u(i)],this},_propagateEvent:function(i){for(var o in this._eventParents)this._eventParents[o].fire(i.type,r({layer:i.target,propagatedFrom:i.target},i),!0)}};K.addEventListener=K.on,K.removeEventListener=K.clearAllEventListeners=K.off,K.addOneTimeEventListener=K.once,K.fireEvent=K.fire,K.hasEventListeners=K.listens;var dt=V.extend(K);function G(i,o,c){this.x=c?Math.round(i):i,this.y=c?Math.round(o):o}var Tt=Math.trunc||function(i){return i>0?Math.floor(i):Math.ceil(i)};G.prototype={clone:function(){return new G(this.x,this.y)},add:function(i){return this.clone()._add(lt(i))},_add:function(i){return this.x+=i.x,this.y+=i.y,this},subtract:function(i){return this.clone()._subtract(lt(i))},_subtract:function(i){return this.x-=i.x,this.y-=i.y,this},divideBy:function(i){return this.clone()._divideBy(i)},_divideBy:function(i){return this.x/=i,this.y/=i,this},multiplyBy:function(i){return this.clone()._multiplyBy(i)},_multiplyBy:function(i){return this.x*=i,this.y*=i,this},scaleBy:function(i){return new G(this.x*i.x,this.y*i.y)},unscaleBy:function(i){return new G(this.x/i.x,this.y/i.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=Tt(this.x),this.y=Tt(this.y),this},distanceTo:function(i){i=lt(i);var o=i.x-this.x,c=i.y-this.y;return Math.sqrt(o*o+c*c)},equals:function(i){return i=lt(i),i.x===this.x&&i.y===this.y},contains:function(i){return i=lt(i),Math.abs(i.x)<=Math.abs(this.x)&&Math.abs(i.y)<=Math.abs(this.y)},toString:function(){return"Point("+_(this.x)+", "+_(this.y)+")"}};function lt(i,o,c){return i instanceof G?i:P(i)?new G(i[0],i[1]):i==null?i:typeof i=="object"&&"x"in i&&"y"in i?new G(i.x,i.y):new G(i,o,c)}function Mt(i,o){if(i)for(var c=o?[i,o]:i,f=0,x=c.length;f<x;f++)this.extend(c[f])}Mt.prototype={extend:function(i){var o,c;if(!i)return this;if(i instanceof G||typeof i[0]=="number"||"x"in i)o=c=lt(i);else if(i=Gt(i),o=i.min,c=i.max,!o||!c)return this;return!this.min&&!this.max?(this.min=o.clone(),this.max=c.clone()):(this.min.x=Math.min(o.x,this.min.x),this.max.x=Math.max(c.x,this.max.x),this.min.y=Math.min(o.y,this.min.y),this.max.y=Math.max(c.y,this.max.y)),this},getCenter:function(i){return lt((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,i)},getBottomLeft:function(){return lt(this.min.x,this.max.y)},getTopRight:function(){return lt(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(i){var o,c;return typeof i[0]=="number"||i instanceof G?i=lt(i):i=Gt(i),i instanceof Mt?(o=i.min,c=i.max):o=c=i,o.x>=this.min.x&&c.x<=this.max.x&&o.y>=this.min.y&&c.y<=this.max.y},intersects:function(i){i=Gt(i);var o=this.min,c=this.max,f=i.min,x=i.max,A=x.x>=o.x&&f.x<=c.x,F=x.y>=o.y&&f.y<=c.y;return A&&F},overlaps:function(i){i=Gt(i);var o=this.min,c=this.max,f=i.min,x=i.max,A=x.x>o.x&&f.x<c.x,F=x.y>o.y&&f.y<c.y;return A&&F},isValid:function(){return!!(this.min&&this.max)},pad:function(i){var o=this.min,c=this.max,f=Math.abs(o.x-c.x)*i,x=Math.abs(o.y-c.y)*i;return Gt(lt(o.x-f,o.y-x),lt(c.x+f,c.y+x))},equals:function(i){return i?(i=Gt(i),this.min.equals(i.getTopLeft())&&this.max.equals(i.getBottomRight())):!1}};function Gt(i,o){return!i||i instanceof Mt?i:new Mt(i,o)}function pt(i,o){if(i)for(var c=o?[i,o]:i,f=0,x=c.length;f<x;f++)this.extend(c[f])}pt.prototype={extend:function(i){var o=this._southWest,c=this._northEast,f,x;if(i instanceof Y)f=i,x=i;else if(i instanceof pt){if(f=i._southWest,x=i._northEast,!f||!x)return this}else return i?this.extend(st(i)||Rt(i)):this;return!o&&!c?(this._southWest=new Y(f.lat,f.lng),this._northEast=new Y(x.lat,x.lng)):(o.lat=Math.min(f.lat,o.lat),o.lng=Math.min(f.lng,o.lng),c.lat=Math.max(x.lat,c.lat),c.lng=Math.max(x.lng,c.lng)),this},pad:function(i){var o=this._southWest,c=this._northEast,f=Math.abs(o.lat-c.lat)*i,x=Math.abs(o.lng-c.lng)*i;return new pt(new Y(o.lat-f,o.lng-x),new Y(c.lat+f,c.lng+x))},getCenter:function(){return new Y((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 Y(this.getNorth(),this.getWest())},getSouthEast:function(){return new Y(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(i){typeof i[0]=="number"||i instanceof Y||"lat"in i?i=st(i):i=Rt(i);var o=this._southWest,c=this._northEast,f,x;return i instanceof pt?(f=i.getSouthWest(),x=i.getNorthEast()):f=x=i,f.lat>=o.lat&&x.lat<=c.lat&&f.lng>=o.lng&&x.lng<=c.lng},intersects:function(i){i=Rt(i);var o=this._southWest,c=this._northEast,f=i.getSouthWest(),x=i.getNorthEast(),A=x.lat>=o.lat&&f.lat<=c.lat,F=x.lng>=o.lng&&f.lng<=c.lng;return A&&F},overlaps:function(i){i=Rt(i);var o=this._southWest,c=this._northEast,f=i.getSouthWest(),x=i.getNorthEast(),A=x.lat>o.lat&&f.lat<c.lat,F=x.lng>o.lng&&f.lng<c.lng;return A&&F},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(i,o){return i?(i=Rt(i),this._southWest.equals(i.getSouthWest(),o)&&this._northEast.equals(i.getNorthEast(),o)):!1},isValid:function(){return!!(this._southWest&&this._northEast)}};function Rt(i,o){return i instanceof pt?i:new pt(i,o)}function Y(i,o,c){if(isNaN(i)||isNaN(o))throw new Error("Invalid LatLng object: ("+i+", "+o+")");this.lat=+i,this.lng=+o,c!==void 0&&(this.alt=+c)}Y.prototype={equals:function(i,o){if(!i)return!1;i=st(i);var c=Math.max(Math.abs(this.lat-i.lat),Math.abs(this.lng-i.lng));return c<=(o===void 0?1e-9:o)},toString:function(i){return"LatLng("+_(this.lat,i)+", "+_(this.lng,i)+")"},distanceTo:function(i){return Dt.distance(this,st(i))},wrap:function(){return Dt.wrapLatLng(this)},toBounds:function(i){var o=180*i/40075017,c=o/Math.cos(Math.PI/180*this.lat);return Rt([this.lat-o,this.lng-c],[this.lat+o,this.lng+c])},clone:function(){return new Y(this.lat,this.lng,this.alt)}};function st(i,o,c){return i instanceof Y?i:P(i)&&typeof i[0]!="object"?i.length===3?new Y(i[0],i[1],i[2]):i.length===2?new Y(i[0],i[1]):null:i==null?i:typeof i=="object"&&"lat"in i?new Y(i.lat,"lng"in i?i.lng:i.lon,i.alt):o===void 0?null:new Y(i,o,c)}var ft={latLngToPoint:function(i,o){var c=this.projection.project(i),f=this.scale(o);return this.transformation._transform(c,f)},pointToLatLng:function(i,o){var c=this.scale(o),f=this.transformation.untransform(i,c);return this.projection.unproject(f)},project:function(i){return this.projection.project(i)},unproject:function(i){return this.projection.unproject(i)},scale:function(i){return 256*Math.pow(2,i)},zoom:function(i){return Math.log(i/256)/Math.LN2},getProjectedBounds:function(i){if(this.infinite)return null;var o=this.projection.bounds,c=this.scale(i),f=this.transformation.transform(o.min,c),x=this.transformation.transform(o.max,c);return new Mt(f,x)},infinite:!1,wrapLatLng:function(i){var o=this.wrapLng?p(i.lng,this.wrapLng,!0):i.lng,c=this.wrapLat?p(i.lat,this.wrapLat,!0):i.lat,f=i.alt;return new Y(c,o,f)},wrapLatLngBounds:function(i){var o=i.getCenter(),c=this.wrapLatLng(o),f=o.lat-c.lat,x=o.lng-c.lng;if(f===0&&x===0)return i;var A=i.getSouthWest(),F=i.getNorthEast(),J=new Y(A.lat-f,A.lng-x),nt=new Y(F.lat-f,F.lng-x);return new pt(J,nt)}},Dt=r({},ft,{wrapLng:[-180,180],R:6371e3,distance:function(i,o){var c=Math.PI/180,f=i.lat*c,x=o.lat*c,A=Math.sin((o.lat-i.lat)*c/2),F=Math.sin((o.lng-i.lng)*c/2),J=A*A+Math.cos(f)*Math.cos(x)*F*F,nt=2*Math.atan2(Math.sqrt(J),Math.sqrt(1-J));return this.R*nt}}),Ut=6378137,zt={R:Ut,MAX_LATITUDE:85.0511287798,project:function(i){var o=Math.PI/180,c=this.MAX_LATITUDE,f=Math.max(Math.min(c,i.lat),-c),x=Math.sin(f*o);return new G(this.R*i.lng*o,this.R*Math.log((1+x)/(1-x))/2)},unproject:function(i){var o=180/Math.PI;return new Y((2*Math.atan(Math.exp(i.y/this.R))-Math.PI/2)*o,i.x*o/this.R)},bounds:(function(){var i=Ut*Math.PI;return new Mt([-i,-i],[i,i])})()};function ce(i,o,c,f){if(P(i)){this._a=i[0],this._b=i[1],this._c=i[2],this._d=i[3];return}this._a=i,this._b=o,this._c=c,this._d=f}ce.prototype={transform:function(i,o){return this._transform(i.clone(),o)},_transform:function(i,o){return o=o||1,i.x=o*(this._a*i.x+this._b),i.y=o*(this._c*i.y+this._d),i},untransform:function(i,o){return o=o||1,new G((i.x/o-this._b)/this._a,(i.y/o-this._d)/this._c)}};function at(i,o,c,f){return new ce(i,o,c,f)}var C=r({},Dt,{code:"EPSG:3857",projection:zt,transformation:(function(){var i=.5/(Math.PI*zt.R);return at(i,.5,-i,.5)})()}),it=r({},C,{code:"EPSG:900913"});function ct(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function _t(i,o){var c="",f,x,A,F,J,nt;for(f=0,A=i.length;f<A;f++){for(J=i[f],x=0,F=J.length;x<F;x++)nt=J[x],c+=(x?"L":"M")+nt.x+" "+nt.y;c+=o?qt.svg?"z":"x":""}return c||"M0 0"}var ht=document.documentElement.style,Ot="ActiveXObject"in window,yt=Ot&&!document.addEventListener,Nt="msLaunchUri"in navigator&&!("documentMode"in document),pe=An("webkit"),ge=An("android"),O=An("android 2")||An("android 3"),b=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),j=ge&&An("Google")&&b<537&&!("AudioNode"in window),ot=!!window.opera,gt=!Nt&&An("chrome"),rt=An("gecko")&&!pe&&!ot&&!Ot,Zt=!gt&&An("safari"),bt=An("phantom"),Ht="OTransition"in ht,Xt=navigator.platform.indexOf("Win")===0,wt=Ot&&"transition"in ht,Lt="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!O,ie="MozPerspective"in ht,Yt=!window.L_DISABLE_3D&&(wt||Lt||ie)&&!Ht&&!bt,Ct=typeof orientation<"u"||An("mobile"),le=Ct&&pe,H=Ct&&Lt,St=!window.PointerEvent&&window.MSPointerEvent,At=!!(window.PointerEvent||St),Ft="ontouchstart"in window||!!window.TouchEvent,vt=!window.L_NO_TOUCH&&(Ft||At),ut=Ct&&ot,Wt=Ct&&rt,ae=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,De=(function(){var i=!1;try{var o=Object.defineProperty({},"passive",{get:function(){i=!0}});window.addEventListener("testPassiveEventSupport",m,o),window.removeEventListener("testPassiveEventSupport",m,o)}catch{}return i})(),Te=(function(){return!!document.createElement("canvas").getContext})(),bn=!!(document.createElementNS&&ct("svg").createSVGRect),On=!!bn&&(function(){var i=document.createElement("div");return i.innerHTML="<svg/>",(i.firstChild&&i.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"})(),Ba=!bn&&(function(){try{var i=document.createElement("div");i.innerHTML='<v:shape adj="1"/>';var o=i.firstChild;return o.style.behavior="url(#default#VML)",o&&typeof o.adj=="object"}catch{return!1}})(),wi=navigator.platform.indexOf("Mac")===0,io=navigator.platform.indexOf("Linux")===0;function An(i){return navigator.userAgent.toLowerCase().indexOf(i)>=0}var qt={ie:Ot,ielt9:yt,edge:Nt,webkit:pe,android:ge,android23:O,androidStock:j,opera:ot,chrome:gt,gecko:rt,safari:Zt,phantom:bt,opera12:Ht,win:Xt,ie3d:wt,webkit3d:Lt,gecko3d:ie,any3d:Yt,mobile:Ct,mobileWebkit:le,mobileWebkit3d:H,msPointer:St,pointer:At,touch:vt,touchNative:Ft,mobileOpera:ut,mobileGecko:Wt,retina:ae,passiveEvents:De,canvas:Te,svg:bn,vml:Ba,inlineSvg:On,mac:wi,linux:io},_s=qt.msPointer?"MSPointerDown":"pointerdown",so=qt.msPointer?"MSPointerMove":"pointermove",vs=qt.msPointer?"MSPointerUp":"pointerup",ro=qt.msPointer?"MSPointerCancel":"pointercancel",lr={touchstart:_s,touchmove:so,touchend:vs,touchcancel:ro},Fa={touchstart:X,touchmove:tt,touchend:tt,touchcancel:tt},Ji={},za=!1;function ph(i,o,c){return o==="touchstart"&&et(),Fa[o]?(c=Fa[o].bind(this,c),i.addEventListener(lr[o],c,!1),c):(console.warn("wrong event specified:",o),m)}function mh(i,o,c){if(!lr[o]){console.warn("wrong event specified:",o);return}i.removeEventListener(lr[o],c,!1)}function gh(i){Ji[i.pointerId]=i}function I(i){Ji[i.pointerId]&&(Ji[i.pointerId]=i)}function W(i){delete Ji[i.pointerId]}function et(){za||(document.addEventListener(_s,gh,!0),document.addEventListener(so,I,!0),document.addEventListener(vs,W,!0),document.addEventListener(ro,W,!0),za=!0)}function tt(i,o){if(o.pointerType!==(o.MSPOINTER_TYPE_MOUSE||"mouse")){o.touches=[];for(var c in Ji)o.touches.push(Ji[c]);o.changedTouches=[o],i(o)}}function X(i,o){o.MSPOINTER_TYPE_TOUCH&&o.pointerType===o.MSPOINTER_TYPE_TOUCH&&nn(o),tt(i,o)}function Et(i){var o={},c,f;for(f in i)c=i[f],o[f]=c&&c.bind?c.bind(i):c;return i=o,o.type="dblclick",o.detail=2,o.isTrusted=!1,o._simulated=!0,o}var It=200;function Vt(i,o){i.addEventListener("dblclick",o);var c=0,f;function x(A){if(A.detail!==1){f=A.detail;return}if(!(A.pointerType==="mouse"||A.sourceCapabilities&&!A.sourceCapabilities.firesTouchEvents)){var F=Em(A);if(!(F.some(function(nt){return nt instanceof HTMLLabelElement&&nt.attributes.for})&&!F.some(function(nt){return nt instanceof HTMLInputElement||nt instanceof HTMLSelectElement}))){var J=Date.now();J-c<=It?(f++,f===2&&o(Et(A))):f=1,c=J}}}return i.addEventListener("click",x),{dblclick:o,simDblclick:x}}function Bt(i,o){i.removeEventListener("dblclick",o.dblclick),i.removeEventListener("click",o.simDblclick)}var ee=en(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),ne=en(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),Jt=ne==="webkitTransition"||ne==="OTransition"?ne+"End":"transitionend";function fe(i){return typeof i=="string"?document.getElementById(i):i}function xe(i,o){var c=i.style[o]||i.currentStyle&&i.currentStyle[o];if((!c||c==="auto")&&document.defaultView){var f=document.defaultView.getComputedStyle(i,null);c=f?f[o]:null}return c==="auto"?null:c}function Kt(i,o,c){var f=document.createElement(i);return f.className=o||"",c&&c.appendChild(f),f}function se(i){var o=i.parentNode;o&&o.removeChild(i)}function be(i){for(;i.firstChild;)i.removeChild(i.firstChild)}function Qt(i){var o=i.parentNode;o&&o.lastChild!==i&&o.appendChild(i)}function Le(i){var o=i.parentNode;o&&o.firstChild!==i&&o.insertBefore(i,o.firstChild)}function ve(i,o){if(i.classList!==void 0)return i.classList.contains(o);var c=si(i);return c.length>0&&new RegExp("(^|\\s)"+o+"(\\s|$)").test(c)}function te(i,o){if(i.classList!==void 0)for(var c=w(o),f=0,x=c.length;f<x;f++)i.classList.add(c[f]);else if(!ve(i,o)){var A=si(i);tn(i,(A?A+" ":"")+o)}}function ke(i,o){i.classList!==void 0?i.classList.remove(o):tn(i,E((" "+si(i)+" ").replace(" "+o+" "," ")))}function tn(i,o){i.className.baseVal===void 0?i.className=o:i.className.baseVal=o}function si(i){return i.correspondingElement&&(i=i.correspondingElement),i.className.baseVal===void 0?i.className:i.className.baseVal}function ye(i,o){"opacity"in i.style?i.style.opacity=o:"filter"in i.style&&_n(i,o)}function _n(i,o){var c=!1,f="DXImageTransform.Microsoft.Alpha";try{c=i.filters.item(f)}catch{if(o===1)return}o=Math.round(o*100),c?(c.Enabled=o!==100,c.Opacity=o):i.style.filter+=" progid:"+f+"(opacity="+o+")"}function en(i){for(var o=document.documentElement.style,c=0;c<i.length;c++)if(i[c]in o)return i[c];return!1}function Fe(i,o,c){var f=o||new G(0,0);i.style[ee]=(qt.ie3d?"translate("+f.x+"px,"+f.y+"px)":"translate3d("+f.x+"px,"+f.y+"px,0)")+(c?" scale("+c+")":"")}function Ee(i,o){i._leaflet_pos=o,qt.any3d?Fe(i,o):(i.style.left=o.x+"px",i.style.top=o.y+"px")}function Yn(i){return i._leaflet_pos||new G(0,0)}var Cn,oo,_h;if("onselectstart"in document)Cn=function(){he(window,"selectstart",nn)},oo=function(){Ue(window,"selectstart",nn)};else{var ao=en(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);Cn=function(){if(ao){var i=document.documentElement.style;_h=i[ao],i[ao]="none"}},oo=function(){ao&&(document.documentElement.style[ao]=_h,_h=void 0)}}function vh(){he(window,"dragstart",nn)}function yh(){Ue(window,"dragstart",nn)}var Ha,Eh;function xh(i){for(;i.tabIndex===-1;)i=i.parentNode;i.style&&(Va(),Ha=i,Eh=i.style.outlineStyle,i.style.outlineStyle="none",he(window,"keydown",Va))}function Va(){Ha&&(Ha.style.outlineStyle=Eh,Ha=void 0,Eh=void 0,Ue(window,"keydown",Va))}function vm(i){do i=i.parentNode;while((!i.offsetWidth||!i.offsetHeight)&&i!==document.body);return i}function wh(i){var o=i.getBoundingClientRect();return{x:o.width/i.offsetWidth||1,y:o.height/i.offsetHeight||1,boundingClientRect:o}}var sT={__proto__:null,TRANSFORM:ee,TRANSITION:ne,TRANSITION_END:Jt,get:fe,getStyle:xe,create:Kt,remove:se,empty:be,toFront:Qt,toBack:Le,hasClass:ve,addClass:te,removeClass:ke,setClass:tn,getClass:si,setOpacity:ye,testProp:en,setTransform:Fe,setPosition:Ee,getPosition:Yn,get disableTextSelection(){return Cn},get enableTextSelection(){return oo},disableImageDrag:vh,enableImageDrag:yh,preventOutline:xh,restoreOutline:Va,getSizedParentNode:vm,getScale:wh};function he(i,o,c,f){if(o&&typeof o=="object")for(var x in o)Mh(i,x,o[x],c);else{o=w(o);for(var A=0,F=o.length;A<F;A++)Mh(i,o[A],c,f)}return this}var ri="_leaflet_events";function Ue(i,o,c,f){if(arguments.length===1)ym(i),delete i[ri];else if(o&&typeof o=="object")for(var x in o)Th(i,x,o[x],c);else if(o=w(o),arguments.length===2)ym(i,function(J){return M(o,J)!==-1});else for(var A=0,F=o.length;A<F;A++)Th(i,o[A],c,f);return this}function ym(i,o){for(var c in i[ri]){var f=c.split(/\d/)[0];(!o||o(f))&&Th(i,f,null,null,c)}}var Sh={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function Mh(i,o,c,f){var x=o+u(c)+(f?"_"+u(f):"");if(i[ri]&&i[ri][x])return this;var A=function(J){return c.call(f||i,J||window.event)},F=A;!qt.touchNative&&qt.pointer&&o.indexOf("touch")===0?A=ph(i,o,A):qt.touch&&o==="dblclick"?A=Vt(i,A):"addEventListener"in i?o==="touchstart"||o==="touchmove"||o==="wheel"||o==="mousewheel"?i.addEventListener(Sh[o]||o,A,qt.passiveEvents?{passive:!1}:!1):o==="mouseenter"||o==="mouseleave"?(A=function(J){J=J||window.event,Ah(i,J)&&F(J)},i.addEventListener(Sh[o],A,!1)):i.addEventListener(o,F,!1):i.attachEvent("on"+o,A),i[ri]=i[ri]||{},i[ri][x]=A}function Th(i,o,c,f,x){x=x||o+u(c)+(f?"_"+u(f):"");var A=i[ri]&&i[ri][x];if(!A)return this;!qt.touchNative&&qt.pointer&&o.indexOf("touch")===0?mh(i,o,A):qt.touch&&o==="dblclick"?Bt(i,A):"removeEventListener"in i?i.removeEventListener(Sh[o]||o,A,!1):i.detachEvent("on"+o,A),i[ri][x]=null}function ys(i){return i.stopPropagation?i.stopPropagation():i.originalEvent?i.originalEvent._stopped=!0:i.cancelBubble=!0,this}function bh(i){return Mh(i,"wheel",ys),this}function lo(i){return he(i,"mousedown touchstart dblclick contextmenu",ys),i._leaflet_disable_click=!0,this}function nn(i){return i.preventDefault?i.preventDefault():i.returnValue=!1,this}function Es(i){return nn(i),ys(i),this}function Em(i){if(i.composedPath)return i.composedPath();for(var o=[],c=i.target;c;)o.push(c),c=c.parentNode;return o}function xm(i,o){if(!o)return new G(i.clientX,i.clientY);var c=wh(o),f=c.boundingClientRect;return new G((i.clientX-f.left)/c.x-o.clientLeft,(i.clientY-f.top)/c.y-o.clientTop)}var rT=qt.linux&&qt.chrome?window.devicePixelRatio:qt.mac?window.devicePixelRatio*3:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function wm(i){return qt.edge?i.wheelDeltaY/2:i.deltaY&&i.deltaMode===0?-i.deltaY/rT:i.deltaY&&i.deltaMode===1?-i.deltaY*20:i.deltaY&&i.deltaMode===2?-i.deltaY*60:i.deltaX||i.deltaZ?0:i.wheelDelta?(i.wheelDeltaY||i.wheelDelta)/2:i.detail&&Math.abs(i.detail)<32765?-i.detail*20:i.detail?i.detail/-32765*60:0}function Ah(i,o){var c=o.relatedTarget;if(!c)return!0;try{for(;c&&c!==i;)c=c.parentNode}catch{return!1}return c!==i}var oT={__proto__:null,on:he,off:Ue,stopPropagation:ys,disableScrollPropagation:bh,disableClickPropagation:lo,preventDefault:nn,stop:Es,getPropagationPath:Em,getMousePosition:xm,getWheelDelta:wm,isExternalTarget:Ah,addListener:he,removeListener:Ue},Sm=dt.extend({run:function(i,o,c,f){this.stop(),this._el=i,this._inProgress=!0,this._duration=c||.25,this._easeOutPower=1/Math.max(f||.5,.2),this._startPos=Yn(i),this._offset=o.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=k(this._animate,this),this._step()},_step:function(i){var o=+new Date-this._startTime,c=this._duration*1e3;o<c?this._runFrame(this._easeOut(o/c),i):(this._runFrame(1),this._complete())},_runFrame:function(i,o){var c=this._startPos.add(this._offset.multiplyBy(i));o&&c._round(),Ee(this._el,c),this.fire("step")},_complete:function(){Z(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(i){return 1-Math.pow(1-i,this._easeOutPower)}}),we=dt.extend({options:{crs:C,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(i,o){o=S(this,o),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(i),this._initLayout(),this._onResize=l(this._onResize,this),this._initEvents(),o.maxBounds&&this.setMaxBounds(o.maxBounds),o.zoom!==void 0&&(this._zoom=this._limitZoom(o.zoom)),o.center&&o.zoom!==void 0&&this.setView(st(o.center),o.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=ne&&qt.any3d&&!qt.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),he(this._proxy,Jt,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(i,o,c){if(o=o===void 0?this._zoom:this._limitZoom(o),i=this._limitCenter(st(i),o,this.options.maxBounds),c=c||{},this._stop(),this._loaded&&!c.reset&&c!==!0){c.animate!==void 0&&(c.zoom=r({animate:c.animate},c.zoom),c.pan=r({animate:c.animate,duration:c.duration},c.pan));var f=this._zoom!==o?this._tryAnimatedZoom&&this._tryAnimatedZoom(i,o,c.zoom):this._tryAnimatedPan(i,c.pan);if(f)return clearTimeout(this._sizeTimer),this}return this._resetView(i,o,c.pan&&c.pan.noMoveStart),this},setZoom:function(i,o){return this._loaded?this.setView(this.getCenter(),i,{zoom:o}):(this._zoom=i,this)},zoomIn:function(i,o){return i=i||(qt.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+i,o)},zoomOut:function(i,o){return i=i||(qt.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-i,o)},setZoomAround:function(i,o,c){var f=this.getZoomScale(o),x=this.getSize().divideBy(2),A=i instanceof G?i:this.latLngToContainerPoint(i),F=A.subtract(x).multiplyBy(1-1/f),J=this.containerPointToLatLng(x.add(F));return this.setView(J,o,{zoom:c})},_getBoundsCenterZoom:function(i,o){o=o||{},i=i.getBounds?i.getBounds():Rt(i);var c=lt(o.paddingTopLeft||o.padding||[0,0]),f=lt(o.paddingBottomRight||o.padding||[0,0]),x=this.getBoundsZoom(i,!1,c.add(f));if(x=typeof o.maxZoom=="number"?Math.min(o.maxZoom,x):x,x===1/0)return{center:i.getCenter(),zoom:x};var A=f.subtract(c).divideBy(2),F=this.project(i.getSouthWest(),x),J=this.project(i.getNorthEast(),x),nt=this.unproject(F.add(J).divideBy(2).add(A),x);return{center:nt,zoom:x}},fitBounds:function(i,o){if(i=Rt(i),!i.isValid())throw new Error("Bounds are not valid.");var c=this._getBoundsCenterZoom(i,o);return this.setView(c.center,c.zoom,o)},fitWorld:function(i){return this.fitBounds([[-90,-180],[90,180]],i)},panTo:function(i,o){return this.setView(i,this._zoom,{pan:o})},panBy:function(i,o){if(i=lt(i).round(),o=o||{},!i.x&&!i.y)return this.fire("moveend");if(o.animate!==!0&&!this.getSize().contains(i))return this._resetView(this.unproject(this.project(this.getCenter()).add(i)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new Sm,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),o.noMoveStart||this.fire("movestart"),o.animate!==!1){te(this._mapPane,"leaflet-pan-anim");var c=this._getMapPanePos().subtract(i).round();this._panAnim.run(this._mapPane,c,o.duration||.25,o.easeLinearity)}else this._rawPanBy(i),this.fire("move").fire("moveend");return this},flyTo:function(i,o,c){if(c=c||{},c.animate===!1||!qt.any3d)return this.setView(i,o,c);this._stop();var f=this.project(this.getCenter()),x=this.project(i),A=this.getSize(),F=this._zoom;i=st(i),o=o===void 0?F:o;var J=Math.max(A.x,A.y),nt=J*this.getZoomScale(F,o),mt=x.distanceTo(f)||1,kt=1.42,re=kt*kt;function me(We){var tl=We?-1:1,qT=We?nt:J,QT=nt*nt-J*J+tl*re*re*mt*mt,jT=2*qT*re*mt,Bh=QT/jT,ig=Math.sqrt(Bh*Bh+1)-Bh,JT=ig<1e-9?-18:Math.log(ig);return JT}function dn(We){return(Math.exp(We)-Math.exp(-We))/2}function je(We){return(Math.exp(We)+Math.exp(-We))/2}function Bn(We){return dn(We)/je(We)}var vn=me(0);function pr(We){return J*(je(vn)/je(vn+kt*We))}function WT(We){return J*(je(vn)*Bn(vn+kt*We)-dn(vn))/re}function ZT(We){return 1-Math.pow(1-We,1.5)}var XT=Date.now(),eg=(me(1)-vn)/kt,YT=c.duration?1e3*c.duration:1e3*eg*.8;function ng(){var We=(Date.now()-XT)/YT,tl=ZT(We)*eg;We<=1?(this._flyToFrame=k(ng,this),this._move(this.unproject(f.add(x.subtract(f).multiplyBy(WT(tl)/mt)),F),this.getScaleZoom(J/pr(tl),F),{flyTo:!0})):this._move(i,o)._moveEnd(!0)}return this._moveStart(!0,c.noMoveStart),ng.call(this),this},flyToBounds:function(i,o){var c=this._getBoundsCenterZoom(i,o);return this.flyTo(c.center,c.zoom,o)},setMaxBounds:function(i){return i=Rt(i),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),i.isValid()?(this.options.maxBounds=i,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},setMinZoom:function(i){var o=this.options.minZoom;return this.options.minZoom=i,this._loaded&&o!==i&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(i):this},setMaxZoom:function(i){var o=this.options.maxZoom;return this.options.maxZoom=i,this._loaded&&o!==i&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(i):this},panInsideBounds:function(i,o){this._enforcingBounds=!0;var c=this.getCenter(),f=this._limitCenter(c,this._zoom,Rt(i));return c.equals(f)||this.panTo(f,o),this._enforcingBounds=!1,this},panInside:function(i,o){o=o||{};var c=lt(o.paddingTopLeft||o.padding||[0,0]),f=lt(o.paddingBottomRight||o.padding||[0,0]),x=this.project(this.getCenter()),A=this.project(i),F=this.getPixelBounds(),J=Gt([F.min.add(c),F.max.subtract(f)]),nt=J.getSize();if(!J.contains(A)){this._enforcingBounds=!0;var mt=A.subtract(J.getCenter()),kt=J.extend(A).getSize().subtract(nt);x.x+=mt.x<0?-kt.x:kt.x,x.y+=mt.y<0?-kt.y:kt.y,this.panTo(this.unproject(x),o),this._enforcingBounds=!1}return this},invalidateSize:function(i){if(!this._loaded)return this;i=r({animate:!1,pan:!0},i===!0?{animate:!0}:i);var o=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var c=this.getSize(),f=o.divideBy(2).round(),x=c.divideBy(2).round(),A=f.subtract(x);return!A.x&&!A.y?this:(i.animate&&i.pan?this.panBy(A):(i.pan&&this._rawPanBy(A),this.fire("move"),i.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(l(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:o,newSize:c}))},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(i){if(i=this._locateOptions=r({timeout:1e4,watch:!1},i),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var o=l(this._handleGeolocationResponse,this),c=l(this._handleGeolocationError,this);return i.watch?this._locationWatchId=navigator.geolocation.watchPosition(o,c,i):navigator.geolocation.getCurrentPosition(o,c,i),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(i){if(this._container._leaflet_id){var o=i.code,c=i.message||(o===1?"permission denied":o===2?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:o,message:"Geolocation error: "+c+"."})}},_handleGeolocationResponse:function(i){if(this._container._leaflet_id){var o=i.coords.latitude,c=i.coords.longitude,f=new Y(o,c),x=f.toBounds(i.coords.accuracy*2),A=this._locateOptions;if(A.setView){var F=this.getBoundsZoom(x);this.setView(f,A.maxZoom?Math.min(F,A.maxZoom):F)}var J={latlng:f,bounds:x,timestamp:i.timestamp};for(var nt in i.coords)typeof i.coords[nt]=="number"&&(J[nt]=i.coords[nt]);this.fire("locationfound",J)}},addHandler:function(i,o){if(!o)return this;var c=this[i]=new o(this);return this._handlers.push(c),this.options[i]&&c.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(),se(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(Z(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload");var i;for(i in this._layers)this._layers[i].remove();for(i in this._panes)se(this._panes[i]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(i,o){var c="leaflet-pane"+(i?" leaflet-"+i.replace("Pane","")+"-pane":""),f=Kt("div",c,o||this._mapPane);return i&&(this._panes[i]=f),f},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var i=this.getPixelBounds(),o=this.unproject(i.getBottomLeft()),c=this.unproject(i.getTopRight());return new pt(o,c)},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(i,o,c){i=Rt(i),c=lt(c||[0,0]);var f=this.getZoom()||0,x=this.getMinZoom(),A=this.getMaxZoom(),F=i.getNorthWest(),J=i.getSouthEast(),nt=this.getSize().subtract(c),mt=Gt(this.project(J,f),this.project(F,f)).getSize(),kt=qt.any3d?this.options.zoomSnap:1,re=nt.x/mt.x,me=nt.y/mt.y,dn=o?Math.max(re,me):Math.min(re,me);return f=this.getScaleZoom(dn,f),kt&&(f=Math.round(f/(kt/100))*(kt/100),f=o?Math.ceil(f/kt)*kt:Math.floor(f/kt)*kt),Math.max(x,Math.min(A,f))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new G(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(i,o){var c=this._getTopLeftPoint(i,o);return new Mt(c,c.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(i){return this.options.crs.getProjectedBounds(i===void 0?this.getZoom():i)},getPane:function(i){return typeof i=="string"?this._panes[i]:i},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(i,o){var c=this.options.crs;return o=o===void 0?this._zoom:o,c.scale(i)/c.scale(o)},getScaleZoom:function(i,o){var c=this.options.crs;o=o===void 0?this._zoom:o;var f=c.zoom(i*c.scale(o));return isNaN(f)?1/0:f},project:function(i,o){return o=o===void 0?this._zoom:o,this.options.crs.latLngToPoint(st(i),o)},unproject:function(i,o){return o=o===void 0?this._zoom:o,this.options.crs.pointToLatLng(lt(i),o)},layerPointToLatLng:function(i){var o=lt(i).add(this.getPixelOrigin());return this.unproject(o)},latLngToLayerPoint:function(i){var o=this.project(st(i))._round();return o._subtract(this.getPixelOrigin())},wrapLatLng:function(i){return this.options.crs.wrapLatLng(st(i))},wrapLatLngBounds:function(i){return this.options.crs.wrapLatLngBounds(Rt(i))},distance:function(i,o){return this.options.crs.distance(st(i),st(o))},containerPointToLayerPoint:function(i){return lt(i).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(i){return lt(i).add(this._getMapPanePos())},containerPointToLatLng:function(i){var o=this.containerPointToLayerPoint(lt(i));return this.layerPointToLatLng(o)},latLngToContainerPoint:function(i){return this.layerPointToContainerPoint(this.latLngToLayerPoint(st(i)))},mouseEventToContainerPoint:function(i){return xm(i,this._container)},mouseEventToLayerPoint:function(i){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(i))},mouseEventToLatLng:function(i){return this.layerPointToLatLng(this.mouseEventToLayerPoint(i))},_initContainer:function(i){var o=this._container=fe(i);if(o){if(o._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");he(o,"scroll",this._onScroll,this),this._containerId=u(o)},_initLayout:function(){var i=this._container;this._fadeAnimated=this.options.fadeAnimation&&qt.any3d,te(i,"leaflet-container"+(qt.touch?" leaflet-touch":"")+(qt.retina?" leaflet-retina":"")+(qt.ielt9?" leaflet-oldie":"")+(qt.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var o=xe(i,"position");o!=="absolute"&&o!=="relative"&&o!=="fixed"&&o!=="sticky"&&(i.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var i=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),Ee(this._mapPane,new G(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(te(i.markerPane,"leaflet-zoom-hide"),te(i.shadowPane,"leaflet-zoom-hide"))},_resetView:function(i,o,c){Ee(this._mapPane,new G(0,0));var f=!this._loaded;this._loaded=!0,o=this._limitZoom(o),this.fire("viewprereset");var x=this._zoom!==o;this._moveStart(x,c)._move(i,o)._moveEnd(x),this.fire("viewreset"),f&&this.fire("load")},_moveStart:function(i,o){return i&&this.fire("zoomstart"),o||this.fire("movestart"),this},_move:function(i,o,c,f){o===void 0&&(o=this._zoom);var x=this._zoom!==o;return this._zoom=o,this._lastCenter=i,this._pixelOrigin=this._getNewPixelOrigin(i),f?c&&c.pinch&&this.fire("zoom",c):((x||c&&c.pinch)&&this.fire("zoom",c),this.fire("move",c)),this},_moveEnd:function(i){return i&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return Z(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(i){Ee(this._mapPane,this._getMapPanePos().subtract(i))},_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(i){this._targets={},this._targets[u(this._container)]=this;var o=i?Ue:he;o(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&o(window,"resize",this._onResize,this),qt.any3d&&this.options.transform3DLimit&&(i?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){Z(this._resizeRequest),this._resizeRequest=k(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var i=this._getMapPanePos();Math.max(Math.abs(i.x),Math.abs(i.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(i,o){for(var c=[],f,x=o==="mouseout"||o==="mouseover",A=i.target||i.srcElement,F=!1;A;){if(f=this._targets[u(A)],f&&(o==="click"||o==="preclick")&&this._draggableMoved(f)){F=!0;break}if(f&&f.listens(o,!0)&&(x&&!Ah(A,i)||(c.push(f),x))||A===this._container)break;A=A.parentNode}return!c.length&&!F&&!x&&this.listens(o,!0)&&(c=[this]),c},_isClickDisabled:function(i){for(;i&&i!==this._container;){if(i._leaflet_disable_click)return!0;i=i.parentNode}},_handleDOMEvent:function(i){var o=i.target||i.srcElement;if(!(!this._loaded||o._leaflet_disable_events||i.type==="click"&&this._isClickDisabled(o))){var c=i.type;c==="mousedown"&&xh(o),this._fireDOMEvent(i,c)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(i,o,c){if(i.type==="click"){var f=r({},i);f.type="preclick",this._fireDOMEvent(f,f.type,c)}var x=this._findEventTargets(i,o);if(c){for(var A=[],F=0;F<c.length;F++)c[F].listens(o,!0)&&A.push(c[F]);x=A.concat(x)}if(x.length){o==="contextmenu"&&nn(i);var J=x[0],nt={originalEvent:i};if(i.type!=="keypress"&&i.type!=="keydown"&&i.type!=="keyup"){var mt=J.getLatLng&&(!J._radius||J._radius<=10);nt.containerPoint=mt?this.latLngToContainerPoint(J.getLatLng()):this.mouseEventToContainerPoint(i),nt.layerPoint=this.containerPointToLayerPoint(nt.containerPoint),nt.latlng=mt?J.getLatLng():this.layerPointToLatLng(nt.layerPoint)}for(F=0;F<x.length;F++)if(x[F].fire(o,nt,!0),nt.originalEvent._stopped||x[F].options.bubblingMouseEvents===!1&&M(this._mouseEvents,o)!==-1)return}},_draggableMoved:function(i){return i=i.dragging&&i.dragging.enabled()?i:this,i.dragging&&i.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var i=0,o=this._handlers.length;i<o;i++)this._handlers[i].disable()},whenReady:function(i,o){return this._loaded?i.call(o||this,{target:this}):this.on("load",i,o),this},_getMapPanePos:function(){return Yn(this._mapPane)||new G(0,0)},_moved:function(){var i=this._getMapPanePos();return i&&!i.equals([0,0])},_getTopLeftPoint:function(i,o){var c=i&&o!==void 0?this._getNewPixelOrigin(i,o):this.getPixelOrigin();return c.subtract(this._getMapPanePos())},_getNewPixelOrigin:function(i,o){var c=this.getSize()._divideBy(2);return this.project(i,o)._subtract(c)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(i,o,c){var f=this._getNewPixelOrigin(c,o);return this.project(i,o)._subtract(f)},_latLngBoundsToNewLayerBounds:function(i,o,c){var f=this._getNewPixelOrigin(c,o);return Gt([this.project(i.getSouthWest(),o)._subtract(f),this.project(i.getNorthWest(),o)._subtract(f),this.project(i.getSouthEast(),o)._subtract(f),this.project(i.getNorthEast(),o)._subtract(f)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(i){return this.latLngToLayerPoint(i).subtract(this._getCenterLayerPoint())},_limitCenter:function(i,o,c){if(!c)return i;var f=this.project(i,o),x=this.getSize().divideBy(2),A=new Mt(f.subtract(x),f.add(x)),F=this._getBoundsOffset(A,c,o);return Math.abs(F.x)<=1&&Math.abs(F.y)<=1?i:this.unproject(f.add(F),o)},_limitOffset:function(i,o){if(!o)return i;var c=this.getPixelBounds(),f=new Mt(c.min.add(i),c.max.add(i));return i.add(this._getBoundsOffset(f,o))},_getBoundsOffset:function(i,o,c){var f=Gt(this.project(o.getNorthEast(),c),this.project(o.getSouthWest(),c)),x=f.min.subtract(i.min),A=f.max.subtract(i.max),F=this._rebound(x.x,-A.x),J=this._rebound(x.y,-A.y);return new G(F,J)},_rebound:function(i,o){return i+o>0?Math.round(i-o)/2:Math.max(0,Math.ceil(i))-Math.max(0,Math.floor(o))},_limitZoom:function(i){var o=this.getMinZoom(),c=this.getMaxZoom(),f=qt.any3d?this.options.zoomSnap:1;return f&&(i=Math.round(i/f)*f),Math.max(o,Math.min(c,i))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){ke(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(i,o){var c=this._getCenterOffset(i)._trunc();return(o&&o.animate)!==!0&&!this.getSize().contains(c)?!1:(this.panBy(c,o),!0)},_createAnimProxy:function(){var i=this._proxy=Kt("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(i),this.on("zoomanim",function(o){var c=ee,f=this._proxy.style[c];Fe(this._proxy,this.project(o.center,o.zoom),this.getZoomScale(o.zoom,1)),f===this._proxy.style[c]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){se(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var i=this.getCenter(),o=this.getZoom();Fe(this._proxy,this.project(i,o),this.getZoomScale(o,1))},_catchTransitionEnd:function(i){this._animatingZoom&&i.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(i,o,c){if(this._animatingZoom)return!0;if(c=c||{},!this._zoomAnimated||c.animate===!1||this._nothingToAnimate()||Math.abs(o-this._zoom)>this.options.zoomAnimationThreshold)return!1;var f=this.getZoomScale(o),x=this._getCenterOffset(i)._divideBy(1-1/f);return c.animate!==!0&&!this.getSize().contains(x)?!1:(k(function(){this._moveStart(!0,c.noMoveStart||!1)._animateZoom(i,o,!0)},this),!0)},_animateZoom:function(i,o,c,f){this._mapPane&&(c&&(this._animatingZoom=!0,this._animateToCenter=i,this._animateToZoom=o,te(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:i,zoom:o,noUpdate:f}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(l(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&ke(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 aT(i,o){return new we(i,o)}var qn=V.extend({options:{position:"topright"},initialize:function(i){S(this,i)},getPosition:function(){return this.options.position},setPosition:function(i){var o=this._map;return o&&o.removeControl(this),this.options.position=i,o&&o.addControl(this),this},getContainer:function(){return this._container},addTo:function(i){this.remove(),this._map=i;var o=this._container=this.onAdd(i),c=this.getPosition(),f=i._controlCorners[c];return te(o,"leaflet-control"),c.indexOf("bottom")!==-1?f.insertBefore(o,f.firstChild):f.appendChild(o),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(se(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(i){this._map&&i&&i.screenX>0&&i.screenY>0&&this._map.getContainer().focus()}}),co=function(i){return new qn(i)};we.include({addControl:function(i){return i.addTo(this),this},removeControl:function(i){return i.remove(),this},_initControlPos:function(){var i=this._controlCorners={},o="leaflet-",c=this._controlContainer=Kt("div",o+"control-container",this._container);function f(x,A){var F=o+x+" "+o+A;i[x+A]=Kt("div",F,c)}f("top","left"),f("top","right"),f("bottom","left"),f("bottom","right")},_clearControlPos:function(){for(var i in this._controlCorners)se(this._controlCorners[i]);se(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var Mm=qn.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(i,o,c,f){return c<f?-1:f<c?1:0}},initialize:function(i,o,c){S(this,c),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1;for(var f in i)this._addLayer(i[f],f);for(f in o)this._addLayer(o[f],f,!0)},onAdd:function(i){this._initLayout(),this._update(),this._map=i,i.on("zoomend",this._checkDisabledLayers,this);for(var o=0;o<this._layers.length;o++)this._layers[o].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(i){return qn.prototype.addTo.call(this,i),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var i=0;i<this._layers.length;i++)this._layers[i].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(i,o){return this._addLayer(i,o),this._map?this._update():this},addOverlay:function(i,o){return this._addLayer(i,o,!0),this._map?this._update():this},removeLayer:function(i){i.off("add remove",this._onLayerChange,this);var o=this._getLayer(u(i));return o&&this._layers.splice(this._layers.indexOf(o),1),this._map?this._update():this},expand:function(){te(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var i=this._map.getSize().y-(this._container.offsetTop+50);return i<this._section.clientHeight?(te(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=i+"px"):ke(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return ke(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var i="leaflet-control-layers",o=this._container=Kt("div",i),c=this.options.collapsed;o.setAttribute("aria-haspopup",!0),lo(o),bh(o);var f=this._section=Kt("section",i+"-list");c&&(this._map.on("click",this.collapse,this),he(o,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var x=this._layersLink=Kt("a",i+"-toggle",o);x.href="#",x.title="Layers",x.setAttribute("role","button"),he(x,{keydown:function(A){A.keyCode===13&&this._expandSafely()},click:function(A){nn(A),this._expandSafely()}},this),c||this.expand(),this._baseLayersList=Kt("div",i+"-base",f),this._separator=Kt("div",i+"-separator",f),this._overlaysList=Kt("div",i+"-overlays",f),o.appendChild(f)},_getLayer:function(i){for(var o=0;o<this._layers.length;o++)if(this._layers[o]&&u(this._layers[o].layer)===i)return this._layers[o]},_addLayer:function(i,o,c){this._map&&i.on("add remove",this._onLayerChange,this),this._layers.push({layer:i,name:o,overlay:c}),this.options.sortLayers&&this._layers.sort(l(function(f,x){return this.options.sortFunction(f.layer,x.layer,f.name,x.name)},this)),this.options.autoZIndex&&i.setZIndex&&(this._lastZIndex++,i.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;be(this._baseLayersList),be(this._overlaysList),this._layerControlInputs=[];var i,o,c,f,x=0;for(c=0;c<this._layers.length;c++)f=this._layers[c],this._addItem(f),o=o||f.overlay,i=i||!f.overlay,x+=f.overlay?0:1;return this.options.hideSingleBase&&(i=i&&x>1,this._baseLayersList.style.display=i?"":"none"),this._separator.style.display=o&&i?"":"none",this},_onLayerChange:function(i){this._handlingClick||this._update();var o=this._getLayer(u(i.target)),c=o.overlay?i.type==="add"?"overlayadd":"overlayremove":i.type==="add"?"baselayerchange":null;c&&this._map.fire(c,o)},_createRadioElement:function(i,o){var c='<input type="radio" class="leaflet-control-layers-selector" name="'+i+'"'+(o?' checked="checked"':"")+"/>",f=document.createElement("div");return f.innerHTML=c,f.firstChild},_addItem:function(i){var o=document.createElement("label"),c=this._map.hasLayer(i.layer),f;i.overlay?(f=document.createElement("input"),f.type="checkbox",f.className="leaflet-control-layers-selector",f.defaultChecked=c):f=this._createRadioElement("leaflet-base-layers_"+u(this),c),this._layerControlInputs.push(f),f.layerId=u(i.layer),he(f,"click",this._onInputClick,this);var x=document.createElement("span");x.innerHTML=" "+i.name;var A=document.createElement("span");o.appendChild(A),A.appendChild(f),A.appendChild(x);var F=i.overlay?this._overlaysList:this._baseLayersList;return F.appendChild(o),this._checkDisabledLayers(),o},_onInputClick:function(){if(!this._preventClick){var i=this._layerControlInputs,o,c,f=[],x=[];this._handlingClick=!0;for(var A=i.length-1;A>=0;A--)o=i[A],c=this._getLayer(o.layerId).layer,o.checked?f.push(c):o.checked||x.push(c);for(A=0;A<x.length;A++)this._map.hasLayer(x[A])&&this._map.removeLayer(x[A]);for(A=0;A<f.length;A++)this._map.hasLayer(f[A])||this._map.addLayer(f[A]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var i=this._layerControlInputs,o,c,f=this._map.getZoom(),x=i.length-1;x>=0;x--)o=i[x],c=this._getLayer(o.layerId).layer,o.disabled=c.options.minZoom!==void 0&&f<c.options.minZoom||c.options.maxZoom!==void 0&&f>c.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var i=this._section;this._preventClick=!0,he(i,"click",nn),this.expand();var o=this;setTimeout(function(){Ue(i,"click",nn),o._preventClick=!1})}}),lT=function(i,o,c){return new Mm(i,o,c)},Ch=qn.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">−</span>',zoomOutTitle:"Zoom out"},onAdd:function(i){var o="leaflet-control-zoom",c=Kt("div",o+" leaflet-bar"),f=this.options;return this._zoomInButton=this._createButton(f.zoomInText,f.zoomInTitle,o+"-in",c,this._zoomIn),this._zoomOutButton=this._createButton(f.zoomOutText,f.zoomOutTitle,o+"-out",c,this._zoomOut),this._updateDisabled(),i.on("zoomend zoomlevelschange",this._updateDisabled,this),c},onRemove:function(i){i.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(i){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(i.shiftKey?3:1))},_zoomOut:function(i){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(i.shiftKey?3:1))},_createButton:function(i,o,c,f,x){var A=Kt("a",c,f);return A.innerHTML=i,A.href="#",A.title=o,A.setAttribute("role","button"),A.setAttribute("aria-label",o),lo(A),he(A,"click",Es),he(A,"click",x,this),he(A,"click",this._refocusOnMap,this),A},_updateDisabled:function(){var i=this._map,o="leaflet-disabled";ke(this._zoomInButton,o),ke(this._zoomOutButton,o),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||i._zoom===i.getMinZoom())&&(te(this._zoomOutButton,o),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||i._zoom===i.getMaxZoom())&&(te(this._zoomInButton,o),this._zoomInButton.setAttribute("aria-disabled","true"))}});we.mergeOptions({zoomControl:!0}),we.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new Ch,this.addControl(this.zoomControl))});var cT=function(i){return new Ch(i)},Tm=qn.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(i){var o="leaflet-control-scale",c=Kt("div",o),f=this.options;return this._addScales(f,o+"-line",c),i.on(f.updateWhenIdle?"moveend":"move",this._update,this),i.whenReady(this._update,this),c},onRemove:function(i){i.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(i,o,c){i.metric&&(this._mScale=Kt("div",o,c)),i.imperial&&(this._iScale=Kt("div",o,c))},_update:function(){var i=this._map,o=i.getSize().y/2,c=i.distance(i.containerPointToLatLng([0,o]),i.containerPointToLatLng([this.options.maxWidth,o]));this._updateScales(c)},_updateScales:function(i){this.options.metric&&i&&this._updateMetric(i),this.options.imperial&&i&&this._updateImperial(i)},_updateMetric:function(i){var o=this._getRoundNum(i),c=o<1e3?o+" m":o/1e3+" km";this._updateScale(this._mScale,c,o/i)},_updateImperial:function(i){var o=i*3.2808399,c,f,x;o>5280?(c=o/5280,f=this._getRoundNum(c),this._updateScale(this._iScale,f+" mi",f/c)):(x=this._getRoundNum(o),this._updateScale(this._iScale,x+" ft",x/o))},_updateScale:function(i,o,c){i.style.width=Math.round(this.options.maxWidth*c)+"px",i.innerHTML=o},_getRoundNum:function(i){var o=Math.pow(10,(Math.floor(i)+"").length-1),c=i/o;return c=c>=10?10:c>=5?5:c>=3?3:c>=2?2:1,o*c}}),hT=function(i){return new Tm(i)},uT='<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>',Ph=qn.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(qt.inlineSvg?uT+" ":"")+"Leaflet</a>"},initialize:function(i){S(this,i),this._attributions={}},onAdd:function(i){i.attributionControl=this,this._container=Kt("div","leaflet-control-attribution"),lo(this._container);for(var o in i._layers)i._layers[o].getAttribution&&this.addAttribution(i._layers[o].getAttribution());return this._update(),i.on("layeradd",this._addAttribution,this),this._container},onRemove:function(i){i.off("layeradd",this._addAttribution,this)},_addAttribution:function(i){i.layer.getAttribution&&(this.addAttribution(i.layer.getAttribution()),i.layer.once("remove",function(){this.removeAttribution(i.layer.getAttribution())},this))},setPrefix:function(i){return this.options.prefix=i,this._update(),this},addAttribution:function(i){return i?(this._attributions[i]||(this._attributions[i]=0),this._attributions[i]++,this._update(),this):this},removeAttribution:function(i){return i?(this._attributions[i]&&(this._attributions[i]--,this._update()),this):this},_update:function(){if(this._map){var i=[];for(var o in this._attributions)this._attributions[o]&&i.push(o);var c=[];this.options.prefix&&c.push(this.options.prefix),i.length&&c.push(i.join(", ")),this._container.innerHTML=c.join(' <span aria-hidden="true">|</span> ')}}});we.mergeOptions({attributionControl:!0}),we.addInitHook(function(){this.options.attributionControl&&new Ph().addTo(this)});var dT=function(i){return new Ph(i)};qn.Layers=Mm,qn.Zoom=Ch,qn.Scale=Tm,qn.Attribution=Ph,co.layers=lT,co.zoom=cT,co.scale=hT,co.attribution=dT;var oi=V.extend({initialize:function(i){this._map=i},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}});oi.addTo=function(i,o){return i.addHandler(o,this),this};var fT={Events:K},bm=qt.touch?"touchstart mousedown":"mousedown",Ki=dt.extend({options:{clickTolerance:3},initialize:function(i,o,c,f){S(this,f),this._element=i,this._dragStartTarget=o||i,this._preventOutline=c},enable:function(){this._enabled||(he(this._dragStartTarget,bm,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(Ki._dragging===this&&this.finishDrag(!0),Ue(this._dragStartTarget,bm,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(i){if(this._enabled&&(this._moved=!1,!ve(this._element,"leaflet-zoom-anim"))){if(i.touches&&i.touches.length!==1){Ki._dragging===this&&this.finishDrag();return}if(!(Ki._dragging||i.shiftKey||i.which!==1&&i.button!==1&&!i.touches)&&(Ki._dragging=this,this._preventOutline&&xh(this._element),vh(),Cn(),!this._moving)){this.fire("down");var o=i.touches?i.touches[0]:i,c=vm(this._element);this._startPoint=new G(o.clientX,o.clientY),this._startPos=Yn(this._element),this._parentScale=wh(c);var f=i.type==="mousedown";he(document,f?"mousemove":"touchmove",this._onMove,this),he(document,f?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(i){if(this._enabled){if(i.touches&&i.touches.length>1){this._moved=!0;return}var o=i.touches&&i.touches.length===1?i.touches[0]:i,c=new G(o.clientX,o.clientY)._subtract(this._startPoint);!c.x&&!c.y||Math.abs(c.x)+Math.abs(c.y)<this.options.clickTolerance||(c.x/=this._parentScale.x,c.y/=this._parentScale.y,nn(i),this._moved||(this.fire("dragstart"),this._moved=!0,te(document.body,"leaflet-dragging"),this._lastTarget=i.target||i.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),te(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(c),this._moving=!0,this._lastEvent=i,this._updatePosition())}},_updatePosition:function(){var i={originalEvent:this._lastEvent};this.fire("predrag",i),Ee(this._element,this._newPos),this.fire("drag",i)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(i){ke(document.body,"leaflet-dragging"),this._lastTarget&&(ke(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),Ue(document,"mousemove touchmove",this._onMove,this),Ue(document,"mouseup touchend touchcancel",this._onUp,this),yh(),oo();var o=this._moved&&this._moving;this._moving=!1,Ki._dragging=!1,o&&this.fire("dragend",{noInertia:i,distance:this._newPos.distanceTo(this._startPos)})}});function Am(i,o,c){var f,x=[1,4,2,8],A,F,J,nt,mt,kt,re,me;for(A=0,kt=i.length;A<kt;A++)i[A]._code=xs(i[A],o);for(J=0;J<4;J++){for(re=x[J],f=[],A=0,kt=i.length,F=kt-1;A<kt;F=A++)nt=i[A],mt=i[F],nt._code&re?mt._code&re||(me=Ga(mt,nt,re,o,c),me._code=xs(me,o),f.push(me)):(mt._code&re&&(me=Ga(mt,nt,re,o,c),me._code=xs(me,o),f.push(me)),f.push(nt));i=f}return i}function Cm(i,o){var c,f,x,A,F,J,nt,mt,kt;if(!i||i.length===0)throw new Error("latlngs not passed");Nn(i)||(console.warn("latlngs are not flat! Only the first ring will be used"),i=i[0]);var re=st([0,0]),me=Rt(i),dn=me.getNorthWest().distanceTo(me.getSouthWest())*me.getNorthEast().distanceTo(me.getNorthWest());dn<1700&&(re=Rh(i));var je=i.length,Bn=[];for(c=0;c<je;c++){var vn=st(i[c]);Bn.push(o.project(st([vn.lat-re.lat,vn.lng-re.lng])))}for(J=nt=mt=0,c=0,f=je-1;c<je;f=c++)x=Bn[c],A=Bn[f],F=x.y*A.x-A.y*x.x,nt+=(x.x+A.x)*F,mt+=(x.y+A.y)*F,J+=F*3;J===0?kt=Bn[0]:kt=[nt/J,mt/J];var pr=o.unproject(lt(kt));return st([pr.lat+re.lat,pr.lng+re.lng])}function Rh(i){for(var o=0,c=0,f=0,x=0;x<i.length;x++){var A=st(i[x]);o+=A.lat,c+=A.lng,f++}return st([o/f,c/f])}var pT={__proto__:null,clipPolygon:Am,polygonCenter:Cm,centroid:Rh};function Pm(i,o){if(!o||!i.length)return i.slice();var c=o*o;return i=_T(i,c),i=gT(i,c),i}function Rm(i,o,c){return Math.sqrt(ho(i,o,c,!0))}function mT(i,o,c){return ho(i,o,c)}function gT(i,o){var c=i.length,f=typeof Uint8Array<"u"?Uint8Array:Array,x=new f(c);x[0]=x[c-1]=1,Lh(i,x,o,0,c-1);var A,F=[];for(A=0;A<c;A++)x[A]&&F.push(i[A]);return F}function Lh(i,o,c,f,x){var A=0,F,J,nt;for(J=f+1;J<=x-1;J++)nt=ho(i[J],i[f],i[x],!0),nt>A&&(F=J,A=nt);A>c&&(o[F]=1,Lh(i,o,c,f,F),Lh(i,o,c,F,x))}function _T(i,o){for(var c=[i[0]],f=1,x=0,A=i.length;f<A;f++)vT(i[f],i[x])>o&&(c.push(i[f]),x=f);return x<A-1&&c.push(i[A-1]),c}var Lm;function Im(i,o,c,f,x){var A=f?Lm:xs(i,c),F=xs(o,c),J,nt,mt;for(Lm=F;;){if(!(A|F))return[i,o];if(A&F)return!1;J=A||F,nt=Ga(i,o,J,c,x),mt=xs(nt,c),J===A?(i=nt,A=mt):(o=nt,F=mt)}}function Ga(i,o,c,f,x){var A=o.x-i.x,F=o.y-i.y,J=f.min,nt=f.max,mt,kt;return c&8?(mt=i.x+A*(nt.y-i.y)/F,kt=nt.y):c&4?(mt=i.x+A*(J.y-i.y)/F,kt=J.y):c&2?(mt=nt.x,kt=i.y+F*(nt.x-i.x)/A):c&1&&(mt=J.x,kt=i.y+F*(J.x-i.x)/A),new G(mt,kt,x)}function xs(i,o){var c=0;return i.x<o.min.x?c|=1:i.x>o.max.x&&(c|=2),i.y<o.min.y?c|=4:i.y>o.max.y&&(c|=8),c}function vT(i,o){var c=o.x-i.x,f=o.y-i.y;return c*c+f*f}function ho(i,o,c,f){var x=o.x,A=o.y,F=c.x-x,J=c.y-A,nt=F*F+J*J,mt;return nt>0&&(mt=((i.x-x)*F+(i.y-A)*J)/nt,mt>1?(x=c.x,A=c.y):mt>0&&(x+=F*mt,A+=J*mt)),F=i.x-x,J=i.y-A,f?F*F+J*J:new G(x,A)}function Nn(i){return!P(i[0])||typeof i[0][0]!="object"&&typeof i[0][0]<"u"}function Dm(i){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),Nn(i)}function km(i,o){var c,f,x,A,F,J,nt,mt;if(!i||i.length===0)throw new Error("latlngs not passed");Nn(i)||(console.warn("latlngs are not flat! Only the first ring will be used"),i=i[0]);var kt=st([0,0]),re=Rt(i),me=re.getNorthWest().distanceTo(re.getSouthWest())*re.getNorthEast().distanceTo(re.getNorthWest());me<1700&&(kt=Rh(i));var dn=i.length,je=[];for(c=0;c<dn;c++){var Bn=st(i[c]);je.push(o.project(st([Bn.lat-kt.lat,Bn.lng-kt.lng])))}for(c=0,f=0;c<dn-1;c++)f+=je[c].distanceTo(je[c+1])/2;if(f===0)mt=je[0];else for(c=0,A=0;c<dn-1;c++)if(F=je[c],J=je[c+1],x=F.distanceTo(J),A+=x,A>f){nt=(A-f)/x,mt=[J.x-nt*(J.x-F.x),J.y-nt*(J.y-F.y)];break}var vn=o.unproject(lt(mt));return st([vn.lat+kt.lat,vn.lng+kt.lng])}var yT={__proto__:null,simplify:Pm,pointToSegmentDistance:Rm,closestPointOnSegment:mT,clipSegment:Im,_getEdgeIntersection:Ga,_getBitCode:xs,_sqClosestPointOnSegment:ho,isFlat:Nn,_flat:Dm,polylineCenter:km},Ih={project:function(i){return new G(i.lng,i.lat)},unproject:function(i){return new Y(i.y,i.x)},bounds:new Mt([-180,-90],[180,90])},Dh={R:6378137,R_MINOR:6356752314245179e-9,bounds:new Mt([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project:function(i){var o=Math.PI/180,c=this.R,f=i.lat*o,x=this.R_MINOR/c,A=Math.sqrt(1-x*x),F=A*Math.sin(f),J=Math.tan(Math.PI/4-f/2)/Math.pow((1-F)/(1+F),A/2);return f=-c*Math.log(Math.max(J,1e-10)),new G(i.lng*o*c,f)},unproject:function(i){for(var o=180/Math.PI,c=this.R,f=this.R_MINOR/c,x=Math.sqrt(1-f*f),A=Math.exp(-i.y/c),F=Math.PI/2-2*Math.atan(A),J=0,nt=.1,mt;J<15&&Math.abs(nt)>1e-7;J++)mt=x*Math.sin(F),mt=Math.pow((1-mt)/(1+mt),x/2),nt=Math.PI/2-2*Math.atan(A*mt)-F,F+=nt;return new Y(F*o,i.x*o/c)}},ET={__proto__:null,LonLat:Ih,Mercator:Dh,SphericalMercator:zt},xT=r({},Dt,{code:"EPSG:3395",projection:Dh,transformation:(function(){var i=.5/(Math.PI*Dh.R);return at(i,.5,-i,.5)})()}),Um=r({},Dt,{code:"EPSG:4326",projection:Ih,transformation:at(1/180,1,-1/180,.5)}),wT=r({},ft,{projection:Ih,transformation:at(1,0,-1,0),scale:function(i){return Math.pow(2,i)},zoom:function(i){return Math.log(i)/Math.LN2},distance:function(i,o){var c=o.lng-i.lng,f=o.lat-i.lat;return Math.sqrt(c*c+f*f)},infinite:!0});ft.Earth=Dt,ft.EPSG3395=xT,ft.EPSG3857=C,ft.EPSG900913=it,ft.EPSG4326=Um,ft.Simple=wT;var Qn=dt.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(i){return i.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(i){return i&&i.removeLayer(this),this},getPane:function(i){return this._map.getPane(i?this.options[i]||i:this.options.pane)},addInteractiveTarget:function(i){return this._map._targets[u(i)]=this,this},removeInteractiveTarget:function(i){return delete this._map._targets[u(i)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(i){var o=i.target;if(o.hasLayer(this)){if(this._map=o,this._zoomAnimated=o._zoomAnimated,this.getEvents){var c=this.getEvents();o.on(c,this),this.once("remove",function(){o.off(c,this)},this)}this.onAdd(o),this.fire("add"),o.fire("layeradd",{layer:this})}}});we.include({addLayer:function(i){if(!i._layerAdd)throw new Error("The provided object is not a Layer.");var o=u(i);return this._layers[o]?this:(this._layers[o]=i,i._mapToAdd=this,i.beforeAdd&&i.beforeAdd(this),this.whenReady(i._layerAdd,i),this)},removeLayer:function(i){var o=u(i);return this._layers[o]?(this._loaded&&i.onRemove(this),delete this._layers[o],this._loaded&&(this.fire("layerremove",{layer:i}),i.fire("remove")),i._map=i._mapToAdd=null,this):this},hasLayer:function(i){return u(i)in this._layers},eachLayer:function(i,o){for(var c in this._layers)i.call(o,this._layers[c]);return this},_addLayers:function(i){i=i?P(i)?i:[i]:[];for(var o=0,c=i.length;o<c;o++)this.addLayer(i[o])},_addZoomLimit:function(i){(!isNaN(i.options.maxZoom)||!isNaN(i.options.minZoom))&&(this._zoomBoundLayers[u(i)]=i,this._updateZoomLevels())},_removeZoomLimit:function(i){var o=u(i);this._zoomBoundLayers[o]&&(delete this._zoomBoundLayers[o],this._updateZoomLevels())},_updateZoomLevels:function(){var i=1/0,o=-1/0,c=this._getZoomSpan();for(var f in this._zoomBoundLayers){var x=this._zoomBoundLayers[f].options;i=x.minZoom===void 0?i:Math.min(i,x.minZoom),o=x.maxZoom===void 0?o:Math.max(o,x.maxZoom)}this._layersMaxZoom=o===-1/0?void 0:o,this._layersMinZoom=i===1/0?void 0:i,c!==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 cr=Qn.extend({initialize:function(i,o){S(this,o),this._layers={};var c,f;if(i)for(c=0,f=i.length;c<f;c++)this.addLayer(i[c])},addLayer:function(i){var o=this.getLayerId(i);return this._layers[o]=i,this._map&&this._map.addLayer(i),this},removeLayer:function(i){var o=i in this._layers?i:this.getLayerId(i);return this._map&&this._layers[o]&&this._map.removeLayer(this._layers[o]),delete this._layers[o],this},hasLayer:function(i){var o=typeof i=="number"?i:this.getLayerId(i);return o in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(i){var o=Array.prototype.slice.call(arguments,1),c,f;for(c in this._layers)f=this._layers[c],f[i]&&f[i].apply(f,o);return this},onAdd:function(i){this.eachLayer(i.addLayer,i)},onRemove:function(i){this.eachLayer(i.removeLayer,i)},eachLayer:function(i,o){for(var c in this._layers)i.call(o,this._layers[c]);return this},getLayer:function(i){return this._layers[i]},getLayers:function(){var i=[];return this.eachLayer(i.push,i),i},setZIndex:function(i){return this.invoke("setZIndex",i)},getLayerId:function(i){return u(i)}}),ST=function(i,o){return new cr(i,o)},Si=cr.extend({addLayer:function(i){return this.hasLayer(i)?this:(i.addEventParent(this),cr.prototype.addLayer.call(this,i),this.fire("layeradd",{layer:i}))},removeLayer:function(i){return this.hasLayer(i)?(i in this._layers&&(i=this._layers[i]),i.removeEventParent(this),cr.prototype.removeLayer.call(this,i),this.fire("layerremove",{layer:i})):this},setStyle:function(i){return this.invoke("setStyle",i)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var i=new pt;for(var o in this._layers){var c=this._layers[o];i.extend(c.getBounds?c.getBounds():c.getLatLng())}return i}}),MT=function(i,o){return new Si(i,o)},hr=V.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(i){S(this,i)},createIcon:function(i){return this._createIcon("icon",i)},createShadow:function(i){return this._createIcon("shadow",i)},_createIcon:function(i,o){var c=this._getIconUrl(i);if(!c){if(i==="icon")throw new Error("iconUrl not set in Icon options (see the docs).");return null}var f=this._createImg(c,o&&o.tagName==="IMG"?o:null);return this._setIconStyles(f,i),(this.options.crossOrigin||this.options.crossOrigin==="")&&(f.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),f},_setIconStyles:function(i,o){var c=this.options,f=c[o+"Size"];typeof f=="number"&&(f=[f,f]);var x=lt(f),A=lt(o==="shadow"&&c.shadowAnchor||c.iconAnchor||x&&x.divideBy(2,!0));i.className="leaflet-marker-"+o+" "+(c.className||""),A&&(i.style.marginLeft=-A.x+"px",i.style.marginTop=-A.y+"px"),x&&(i.style.width=x.x+"px",i.style.height=x.y+"px")},_createImg:function(i,o){return o=o||document.createElement("img"),o.src=i,o},_getIconUrl:function(i){return qt.retina&&this.options[i+"RetinaUrl"]||this.options[i+"Url"]}});function TT(i){return new hr(i)}var uo=hr.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(i){return typeof uo.imagePath!="string"&&(uo.imagePath=this._detectIconPath()),(this.options.imagePath||uo.imagePath)+hr.prototype._getIconUrl.call(this,i)},_stripUrl:function(i){var o=function(c,f,x){var A=f.exec(c);return A&&A[x]};return i=o(i,/^url\((['"])?(.+)\1\)$/,2),i&&o(i,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var i=Kt("div","leaflet-default-icon-path",document.body),o=xe(i,"background-image")||xe(i,"backgroundImage");if(document.body.removeChild(i),o=this._stripUrl(o),o)return o;var c=document.querySelector('link[href$="leaflet.css"]');return c?c.href.substring(0,c.href.length-11-1):""}}),Om=oi.extend({initialize:function(i){this._marker=i},addHooks:function(){var i=this._marker._icon;this._draggable||(this._draggable=new Ki(i,i,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),te(i,"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&&ke(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(i){var o=this._marker,c=o._map,f=this._marker.options.autoPanSpeed,x=this._marker.options.autoPanPadding,A=Yn(o._icon),F=c.getPixelBounds(),J=c.getPixelOrigin(),nt=Gt(F.min._subtract(J).add(x),F.max._subtract(J).subtract(x));if(!nt.contains(A)){var mt=lt((Math.max(nt.max.x,A.x)-nt.max.x)/(F.max.x-nt.max.x)-(Math.min(nt.min.x,A.x)-nt.min.x)/(F.min.x-nt.min.x),(Math.max(nt.max.y,A.y)-nt.max.y)/(F.max.y-nt.max.y)-(Math.min(nt.min.y,A.y)-nt.min.y)/(F.min.y-nt.min.y)).multiplyBy(f);c.panBy(mt,{animate:!1}),this._draggable._newPos._add(mt),this._draggable._startPos._add(mt),Ee(o._icon,this._draggable._newPos),this._onDrag(i),this._panRequest=k(this._adjustPan.bind(this,i))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(i){this._marker.options.autoPan&&(Z(this._panRequest),this._panRequest=k(this._adjustPan.bind(this,i)))},_onDrag:function(i){var o=this._marker,c=o._shadow,f=Yn(o._icon),x=o._map.layerPointToLatLng(f);c&&Ee(c,f),o._latlng=x,i.latlng=x,i.oldLatLng=this._oldLatLng,o.fire("move",i).fire("drag",i)},_onDragEnd:function(i){Z(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",i)}}),Wa=Qn.extend({options:{icon:new uo,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(i,o){S(this,o),this._latlng=st(i)},onAdd:function(i){this._zoomAnimated=this._zoomAnimated&&i.options.markerZoomAnimation,this._zoomAnimated&&i.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(i){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&i.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(i){var o=this._latlng;return this._latlng=st(i),this.update(),this.fire("move",{oldLatLng:o,latlng:this._latlng})},setZIndexOffset:function(i){return this.options.zIndexOffset=i,this.update()},getIcon:function(){return this.options.icon},setIcon:function(i){return this.options.icon=i,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 i=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(i)}return this},_initIcon:function(){var i=this.options,o="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),c=i.icon.createIcon(this._icon),f=!1;c!==this._icon&&(this._icon&&this._removeIcon(),f=!0,i.title&&(c.title=i.title),c.tagName==="IMG"&&(c.alt=i.alt||"")),te(c,o),i.keyboard&&(c.tabIndex="0",c.setAttribute("role","button")),this._icon=c,i.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&he(c,"focus",this._panOnFocus,this);var x=i.icon.createShadow(this._shadow),A=!1;x!==this._shadow&&(this._removeShadow(),A=!0),x&&(te(x,o),x.alt=""),this._shadow=x,i.opacity<1&&this._updateOpacity(),f&&this.getPane().appendChild(this._icon),this._initInteraction(),x&&A&&this.getPane(i.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&Ue(this._icon,"focus",this._panOnFocus,this),se(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&se(this._shadow),this._shadow=null},_setPos:function(i){this._icon&&Ee(this._icon,i),this._shadow&&Ee(this._shadow,i),this._zIndex=i.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(i){this._icon&&(this._icon.style.zIndex=this._zIndex+i)},_animateZoom:function(i){var o=this._map._latLngToNewLayerPoint(this._latlng,i.zoom,i.center).round();this._setPos(o)},_initInteraction:function(){if(this.options.interactive&&(te(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),Om)){var i=this.options.draggable;this.dragging&&(i=this.dragging.enabled(),this.dragging.disable()),this.dragging=new Om(this),i&&this.dragging.enable()}},setOpacity:function(i){return this.options.opacity=i,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var i=this.options.opacity;this._icon&&ye(this._icon,i),this._shadow&&ye(this._shadow,i)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var i=this._map;if(i){var o=this.options.icon.options,c=o.iconSize?lt(o.iconSize):lt(0,0),f=o.iconAnchor?lt(o.iconAnchor):lt(0,0);i.panInside(this._latlng,{paddingTopLeft:f,paddingBottomRight:c.subtract(f)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function bT(i,o){return new Wa(i,o)}var $i=Qn.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(i){this._renderer=i.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(i){return S(this,i),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&i&&Object.prototype.hasOwnProperty.call(i,"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)}}),Za=$i.extend({options:{fill:!0,radius:10},initialize:function(i,o){S(this,o),this._latlng=st(i),this._radius=this.options.radius},setLatLng:function(i){var o=this._latlng;return this._latlng=st(i),this.redraw(),this.fire("move",{oldLatLng:o,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(i){return this.options.radius=this._radius=i,this.redraw()},getRadius:function(){return this._radius},setStyle:function(i){var o=i&&i.radius||this._radius;return $i.prototype.setStyle.call(this,i),this.setRadius(o),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var i=this._radius,o=this._radiusY||i,c=this._clickTolerance(),f=[i+c,o+c];this._pxBounds=new Mt(this._point.subtract(f),this._point.add(f))},_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(i){return i.distanceTo(this._point)<=this._radius+this._clickTolerance()}});function AT(i,o){return new Za(i,o)}var kh=Za.extend({initialize:function(i,o,c){if(typeof o=="number"&&(o=r({},c,{radius:o})),S(this,o),this._latlng=st(i),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(i){return this._mRadius=i,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var i=[this._radius,this._radiusY||this._radius];return new pt(this._map.layerPointToLatLng(this._point.subtract(i)),this._map.layerPointToLatLng(this._point.add(i)))},setStyle:$i.prototype.setStyle,_project:function(){var i=this._latlng.lng,o=this._latlng.lat,c=this._map,f=c.options.crs;if(f.distance===Dt.distance){var x=Math.PI/180,A=this._mRadius/Dt.R/x,F=c.project([o+A,i]),J=c.project([o-A,i]),nt=F.add(J).divideBy(2),mt=c.unproject(nt).lat,kt=Math.acos((Math.cos(A*x)-Math.sin(o*x)*Math.sin(mt*x))/(Math.cos(o*x)*Math.cos(mt*x)))/x;(isNaN(kt)||kt===0)&&(kt=A/Math.cos(Math.PI/180*o)),this._point=nt.subtract(c.getPixelOrigin()),this._radius=isNaN(kt)?0:nt.x-c.project([mt,i-kt]).x,this._radiusY=nt.y-F.y}else{var re=f.unproject(f.project(this._latlng).subtract([this._mRadius,0]));this._point=c.latLngToLayerPoint(this._latlng),this._radius=this._point.x-c.latLngToLayerPoint(re).x}this._updateBounds()}});function CT(i,o,c){return new kh(i,o,c)}var Mi=$i.extend({options:{smoothFactor:1,noClip:!1},initialize:function(i,o){S(this,o),this._setLatLngs(i)},getLatLngs:function(){return this._latlngs},setLatLngs:function(i){return this._setLatLngs(i),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(i){for(var o=1/0,c=null,f=ho,x,A,F=0,J=this._parts.length;F<J;F++)for(var nt=this._parts[F],mt=1,kt=nt.length;mt<kt;mt++){x=nt[mt-1],A=nt[mt];var re=f(i,x,A,!0);re<o&&(o=re,c=f(i,x,A))}return c&&(c.distance=Math.sqrt(o)),c},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return km(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(i,o){return o=o||this._defaultShape(),i=st(i),o.push(i),this._bounds.extend(i),this.redraw()},_setLatLngs:function(i){this._bounds=new pt,this._latlngs=this._convertLatLngs(i)},_defaultShape:function(){return Nn(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(i){for(var o=[],c=Nn(i),f=0,x=i.length;f<x;f++)c?(o[f]=st(i[f]),this._bounds.extend(o[f])):o[f]=this._convertLatLngs(i[f]);return o},_project:function(){var i=new Mt;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,i),this._bounds.isValid()&&i.isValid()&&(this._rawPxBounds=i,this._updateBounds())},_updateBounds:function(){var i=this._clickTolerance(),o=new G(i,i);this._rawPxBounds&&(this._pxBounds=new Mt([this._rawPxBounds.min.subtract(o),this._rawPxBounds.max.add(o)]))},_projectLatlngs:function(i,o,c){var f=i[0]instanceof Y,x=i.length,A,F;if(f){for(F=[],A=0;A<x;A++)F[A]=this._map.latLngToLayerPoint(i[A]),c.extend(F[A]);o.push(F)}else for(A=0;A<x;A++)this._projectLatlngs(i[A],o,c)},_clipPoints:function(){var i=this._renderer._bounds;if(this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(i))){if(this.options.noClip){this._parts=this._rings;return}var o=this._parts,c,f,x,A,F,J,nt;for(c=0,x=0,A=this._rings.length;c<A;c++)for(nt=this._rings[c],f=0,F=nt.length;f<F-1;f++)J=Im(nt[f],nt[f+1],i,f,!0),J&&(o[x]=o[x]||[],o[x].push(J[0]),(J[1]!==nt[f+1]||f===F-2)&&(o[x].push(J[1]),x++))}},_simplifyPoints:function(){for(var i=this._parts,o=this.options.smoothFactor,c=0,f=i.length;c<f;c++)i[c]=Pm(i[c],o)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(i,o){var c,f,x,A,F,J,nt=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(i))return!1;for(c=0,A=this._parts.length;c<A;c++)for(J=this._parts[c],f=0,F=J.length,x=F-1;f<F;x=f++)if(!(!o&&f===0)&&Rm(i,J[x],J[f])<=nt)return!0;return!1}});function PT(i,o){return new Mi(i,o)}Mi._flat=Dm;var ur=Mi.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 Cm(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(i){var o=Mi.prototype._convertLatLngs.call(this,i),c=o.length;return c>=2&&o[0]instanceof Y&&o[0].equals(o[c-1])&&o.pop(),o},_setLatLngs:function(i){Mi.prototype._setLatLngs.call(this,i),Nn(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return Nn(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var i=this._renderer._bounds,o=this.options.weight,c=new G(o,o);if(i=new Mt(i.min.subtract(c),i.max.add(c)),this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(i))){if(this.options.noClip){this._parts=this._rings;return}for(var f=0,x=this._rings.length,A;f<x;f++)A=Am(this._rings[f],i,!0),A.length&&this._parts.push(A)}},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(i){var o=!1,c,f,x,A,F,J,nt,mt;if(!this._pxBounds||!this._pxBounds.contains(i))return!1;for(A=0,nt=this._parts.length;A<nt;A++)for(c=this._parts[A],F=0,mt=c.length,J=mt-1;F<mt;J=F++)f=c[F],x=c[J],f.y>i.y!=x.y>i.y&&i.x<(x.x-f.x)*(i.y-f.y)/(x.y-f.y)+f.x&&(o=!o);return o||Mi.prototype._containsPoint.call(this,i,!0)}});function RT(i,o){return new ur(i,o)}var Ti=Si.extend({initialize:function(i,o){S(this,o),this._layers={},i&&this.addData(i)},addData:function(i){var o=P(i)?i:i.features,c,f,x;if(o){for(c=0,f=o.length;c<f;c++)x=o[c],(x.geometries||x.geometry||x.features||x.coordinates)&&this.addData(x);return this}var A=this.options;if(A.filter&&!A.filter(i))return this;var F=Xa(i,A);return F?(F.feature=Qa(i),F.defaultOptions=F.options,this.resetStyle(F),A.onEachFeature&&A.onEachFeature(i,F),this.addLayer(F)):this},resetStyle:function(i){return i===void 0?this.eachLayer(this.resetStyle,this):(i.options=r({},i.defaultOptions),this._setLayerStyle(i,this.options.style),this)},setStyle:function(i){return this.eachLayer(function(o){this._setLayerStyle(o,i)},this)},_setLayerStyle:function(i,o){i.setStyle&&(typeof o=="function"&&(o=o(i.feature)),i.setStyle(o))}});function Xa(i,o){var c=i.type==="Feature"?i.geometry:i,f=c?c.coordinates:null,x=[],A=o&&o.pointToLayer,F=o&&o.coordsToLatLng||Uh,J,nt,mt,kt;if(!f&&!c)return null;switch(c.type){case"Point":return J=F(f),Nm(A,i,J,o);case"MultiPoint":for(mt=0,kt=f.length;mt<kt;mt++)J=F(f[mt]),x.push(Nm(A,i,J,o));return new Si(x);case"LineString":case"MultiLineString":return nt=Ya(f,c.type==="LineString"?0:1,F),new Mi(nt,o);case"Polygon":case"MultiPolygon":return nt=Ya(f,c.type==="Polygon"?1:2,F),new ur(nt,o);case"GeometryCollection":for(mt=0,kt=c.geometries.length;mt<kt;mt++){var re=Xa({geometry:c.geometries[mt],type:"Feature",properties:i.properties},o);re&&x.push(re)}return new Si(x);case"FeatureCollection":for(mt=0,kt=c.features.length;mt<kt;mt++){var me=Xa(c.features[mt],o);me&&x.push(me)}return new Si(x);default:throw new Error("Invalid GeoJSON object.")}}function Nm(i,o,c,f){return i?i(o,c):new Wa(c,f&&f.markersInheritOptions&&f)}function Uh(i){return new Y(i[1],i[0],i[2])}function Ya(i,o,c){for(var f=[],x=0,A=i.length,F;x<A;x++)F=o?Ya(i[x],o-1,c):(c||Uh)(i[x]),f.push(F);return f}function Oh(i,o){return i=st(i),i.alt!==void 0?[_(i.lng,o),_(i.lat,o),_(i.alt,o)]:[_(i.lng,o),_(i.lat,o)]}function qa(i,o,c,f){for(var x=[],A=0,F=i.length;A<F;A++)x.push(o?qa(i[A],Nn(i[A])?0:o-1,c,f):Oh(i[A],f));return!o&&c&&x.length>0&&x.push(x[0].slice()),x}function dr(i,o){return i.feature?r({},i.feature,{geometry:o}):Qa(o)}function Qa(i){return i.type==="Feature"||i.type==="FeatureCollection"?i:{type:"Feature",properties:{},geometry:i}}var Nh={toGeoJSON:function(i){return dr(this,{type:"Point",coordinates:Oh(this.getLatLng(),i)})}};Wa.include(Nh),kh.include(Nh),Za.include(Nh),Mi.include({toGeoJSON:function(i){var o=!Nn(this._latlngs),c=qa(this._latlngs,o?1:0,!1,i);return dr(this,{type:(o?"Multi":"")+"LineString",coordinates:c})}}),ur.include({toGeoJSON:function(i){var o=!Nn(this._latlngs),c=o&&!Nn(this._latlngs[0]),f=qa(this._latlngs,c?2:o?1:0,!0,i);return o||(f=[f]),dr(this,{type:(c?"Multi":"")+"Polygon",coordinates:f})}}),cr.include({toMultiPoint:function(i){var o=[];return this.eachLayer(function(c){o.push(c.toGeoJSON(i).geometry.coordinates)}),dr(this,{type:"MultiPoint",coordinates:o})},toGeoJSON:function(i){var o=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(o==="MultiPoint")return this.toMultiPoint(i);var c=o==="GeometryCollection",f=[];return this.eachLayer(function(x){if(x.toGeoJSON){var A=x.toGeoJSON(i);if(c)f.push(A.geometry);else{var F=Qa(A);F.type==="FeatureCollection"?f.push.apply(f,F.features):f.push(F)}}}),c?dr(this,{geometries:f,type:"GeometryCollection"}):{type:"FeatureCollection",features:f}}});function Bm(i,o){return new Ti(i,o)}var LT=Bm,ja=Qn.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(i,o,c){this._url=i,this._bounds=Rt(o),S(this,c)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(te(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){se(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(i){return this.options.opacity=i,this._image&&this._updateOpacity(),this},setStyle:function(i){return i.opacity&&this.setOpacity(i.opacity),this},bringToFront:function(){return this._map&&Qt(this._image),this},bringToBack:function(){return this._map&&Le(this._image),this},setUrl:function(i){return this._url=i,this._image&&(this._image.src=i),this},setBounds:function(i){return this._bounds=Rt(i),this._map&&this._reset(),this},getEvents:function(){var i={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(i.zoomanim=this._animateZoom),i},setZIndex:function(i){return this.options.zIndex=i,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var i=this._url.tagName==="IMG",o=this._image=i?this._url:Kt("img");if(te(o,"leaflet-image-layer"),this._zoomAnimated&&te(o,"leaflet-zoom-animated"),this.options.className&&te(o,this.options.className),o.onselectstart=m,o.onmousemove=m,o.onload=l(this.fire,this,"load"),o.onerror=l(this._overlayOnError,this,"error"),(this.options.crossOrigin||this.options.crossOrigin==="")&&(o.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),i){this._url=o.src;return}o.src=this._url,o.alt=this.options.alt},_animateZoom:function(i){var o=this._map.getZoomScale(i.zoom),c=this._map._latLngBoundsToNewLayerBounds(this._bounds,i.zoom,i.center).min;Fe(this._image,c,o)},_reset:function(){var i=this._image,o=new Mt(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),c=o.getSize();Ee(i,o.min),i.style.width=c.x+"px",i.style.height=c.y+"px"},_updateOpacity:function(){ye(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 i=this.options.errorOverlayUrl;i&&this._url!==i&&(this._url=i,this._image.src=i)},getCenter:function(){return this._bounds.getCenter()}}),IT=function(i,o,c){return new ja(i,o,c)},Fm=ja.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var i=this._url.tagName==="VIDEO",o=this._image=i?this._url:Kt("video");if(te(o,"leaflet-image-layer"),this._zoomAnimated&&te(o,"leaflet-zoom-animated"),this.options.className&&te(o,this.options.className),o.onselectstart=m,o.onmousemove=m,o.onloadeddata=l(this.fire,this,"load"),i){for(var c=o.getElementsByTagName("source"),f=[],x=0;x<c.length;x++)f.push(c[x].src);this._url=c.length>0?f:[o.src];return}P(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(o.style,"objectFit")&&(o.style.objectFit="fill"),o.autoplay=!!this.options.autoplay,o.loop=!!this.options.loop,o.muted=!!this.options.muted,o.playsInline=!!this.options.playsInline;for(var A=0;A<this._url.length;A++){var F=Kt("source");F.src=this._url[A],o.appendChild(F)}}});function DT(i,o,c){return new Fm(i,o,c)}var zm=ja.extend({_initImage:function(){var i=this._image=this._url;te(i,"leaflet-image-layer"),this._zoomAnimated&&te(i,"leaflet-zoom-animated"),this.options.className&&te(i,this.options.className),i.onselectstart=m,i.onmousemove=m}});function kT(i,o,c){return new zm(i,o,c)}var ai=Qn.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(i,o){i&&(i instanceof Y||P(i))?(this._latlng=st(i),S(this,o)):(S(this,i),this._source=o),this.options.content&&(this._content=this.options.content)},openOn:function(i){return i=arguments.length?i:this._source._map,i.hasLayer(this)||i.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(i){return this._map?this.close():(arguments.length?this._source=i:i=this._source,this._prepareOpen(),this.openOn(i._map)),this},onAdd:function(i){this._zoomAnimated=i._zoomAnimated,this._container||this._initLayout(),i._fadeAnimated&&ye(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),i._fadeAnimated&&ye(this._container,1),this.bringToFront(),this.options.interactive&&(te(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(i){i._fadeAnimated?(ye(this._container,0),this._removeTimeout=setTimeout(l(se,void 0,this._container),200)):se(this._container),this.options.interactive&&(ke(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(i){return this._latlng=st(i),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(i){return this._content=i,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 i={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(i.zoomanim=this._animateZoom),i},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&Qt(this._container),this},bringToBack:function(){return this._map&&Le(this._container),this},_prepareOpen:function(i){var o=this._source;if(!o._map)return!1;if(o instanceof Si){o=null;var c=this._source._layers;for(var f in c)if(c[f]._map){o=c[f];break}if(!o)return!1;this._source=o}if(!i)if(o.getCenter)i=o.getCenter();else if(o.getLatLng)i=o.getLatLng();else if(o.getBounds)i=o.getBounds().getCenter();else throw new Error("Unable to get source layer LatLng.");return this.setLatLng(i),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var i=this._contentNode,o=typeof this._content=="function"?this._content(this._source||this):this._content;if(typeof o=="string")i.innerHTML=o;else{for(;i.hasChildNodes();)i.removeChild(i.firstChild);i.appendChild(o)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var i=this._map.latLngToLayerPoint(this._latlng),o=lt(this.options.offset),c=this._getAnchor();this._zoomAnimated?Ee(this._container,i.add(c)):o=o.add(i).add(c);var f=this._containerBottom=-o.y,x=this._containerLeft=-Math.round(this._containerWidth/2)+o.x;this._container.style.bottom=f+"px",this._container.style.left=x+"px"}},_getAnchor:function(){return[0,0]}});we.include({_initOverlay:function(i,o,c,f){var x=o;return x instanceof i||(x=new i(f).setContent(o)),c&&x.setLatLng(c),x}}),Qn.include({_initOverlay:function(i,o,c,f){var x=c;return x instanceof i?(S(x,f),x._source=this):(x=o&&!f?o:new i(f,this),x.setContent(c)),x}});var Ja=ai.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(i){return i=arguments.length?i:this._source._map,!i.hasLayer(this)&&i._popup&&i._popup.options.autoClose&&i.removeLayer(i._popup),i._popup=this,ai.prototype.openOn.call(this,i)},onAdd:function(i){ai.prototype.onAdd.call(this,i),i.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof $i||this._source.on("preclick",ys))},onRemove:function(i){ai.prototype.onRemove.call(this,i),i.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof $i||this._source.off("preclick",ys))},getEvents:function(){var i=ai.prototype.getEvents.call(this);return(this.options.closeOnClick!==void 0?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(i.preclick=this.close),this.options.keepInView&&(i.moveend=this._adjustPan),i},_initLayout:function(){var i="leaflet-popup",o=this._container=Kt("div",i+" "+(this.options.className||"")+" leaflet-zoom-animated"),c=this._wrapper=Kt("div",i+"-content-wrapper",o);if(this._contentNode=Kt("div",i+"-content",c),lo(o),bh(this._contentNode),he(o,"contextmenu",ys),this._tipContainer=Kt("div",i+"-tip-container",o),this._tip=Kt("div",i+"-tip",this._tipContainer),this.options.closeButton){var f=this._closeButton=Kt("a",i+"-close-button",o);f.setAttribute("role","button"),f.setAttribute("aria-label","Close popup"),f.href="#close",f.innerHTML='<span aria-hidden="true">×</span>',he(f,"click",function(x){nn(x),this.close()},this)}},_updateLayout:function(){var i=this._contentNode,o=i.style;o.width="",o.whiteSpace="nowrap";var c=i.offsetWidth;c=Math.min(c,this.options.maxWidth),c=Math.max(c,this.options.minWidth),o.width=c+1+"px",o.whiteSpace="",o.height="";var f=i.offsetHeight,x=this.options.maxHeight,A="leaflet-popup-scrolled";x&&f>x?(o.height=x+"px",te(i,A)):ke(i,A),this._containerWidth=this._container.offsetWidth},_animateZoom:function(i){var o=this._map._latLngToNewLayerPoint(this._latlng,i.zoom,i.center),c=this._getAnchor();Ee(this._container,o.add(c))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning){this._autopanning=!1;return}var i=this._map,o=parseInt(xe(this._container,"marginBottom"),10)||0,c=this._container.offsetHeight+o,f=this._containerWidth,x=new G(this._containerLeft,-c-this._containerBottom);x._add(Yn(this._container));var A=i.layerPointToContainerPoint(x),F=lt(this.options.autoPanPadding),J=lt(this.options.autoPanPaddingTopLeft||F),nt=lt(this.options.autoPanPaddingBottomRight||F),mt=i.getSize(),kt=0,re=0;A.x+f+nt.x>mt.x&&(kt=A.x+f-mt.x+nt.x),A.x-kt-J.x<0&&(kt=A.x-J.x),A.y+c+nt.y>mt.y&&(re=A.y+c-mt.y+nt.y),A.y-re-J.y<0&&(re=A.y-J.y),(kt||re)&&(this.options.keepInView&&(this._autopanning=!0),i.fire("autopanstart").panBy([kt,re]))}},_getAnchor:function(){return lt(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),UT=function(i,o){return new Ja(i,o)};we.mergeOptions({closePopupOnClick:!0}),we.include({openPopup:function(i,o,c){return this._initOverlay(Ja,i,o,c).openOn(this),this},closePopup:function(i){return i=arguments.length?i:this._popup,i&&i.close(),this}}),Qn.include({bindPopup:function(i,o){return this._popup=this._initOverlay(Ja,this._popup,i,o),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(i){return this._popup&&(this instanceof Si||(this._popup._source=this),this._popup._prepareOpen(i||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(i){return this._popup&&this._popup.setContent(i),this},getPopup:function(){return this._popup},_openPopup:function(i){if(!(!this._popup||!this._map)){Es(i);var o=i.layer||i.target;if(this._popup._source===o&&!(o instanceof $i)){this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(i.latlng);return}this._popup._source=o,this.openPopup(i.latlng)}},_movePopup:function(i){this._popup.setLatLng(i.latlng)},_onKeyPress:function(i){i.originalEvent.keyCode===13&&this._openPopup(i)}});var Ka=ai.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(i){ai.prototype.onAdd.call(this,i),this.setOpacity(this.options.opacity),i.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(i){ai.prototype.onRemove.call(this,i),i.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var i=ai.prototype.getEvents.call(this);return this.options.permanent||(i.preclick=this.close),i},_initLayout:function(){var i="leaflet-tooltip",o=i+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=Kt("div",o),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+u(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(i){var o,c,f=this._map,x=this._container,A=f.latLngToContainerPoint(f.getCenter()),F=f.layerPointToContainerPoint(i),J=this.options.direction,nt=x.offsetWidth,mt=x.offsetHeight,kt=lt(this.options.offset),re=this._getAnchor();J==="top"?(o=nt/2,c=mt):J==="bottom"?(o=nt/2,c=0):J==="center"?(o=nt/2,c=mt/2):J==="right"?(o=0,c=mt/2):J==="left"?(o=nt,c=mt/2):F.x<A.x?(J="right",o=0,c=mt/2):(J="left",o=nt+(kt.x+re.x)*2,c=mt/2),i=i.subtract(lt(o,c,!0)).add(kt).add(re),ke(x,"leaflet-tooltip-right"),ke(x,"leaflet-tooltip-left"),ke(x,"leaflet-tooltip-top"),ke(x,"leaflet-tooltip-bottom"),te(x,"leaflet-tooltip-"+J),Ee(x,i)},_updatePosition:function(){var i=this._map.latLngToLayerPoint(this._latlng);this._setPosition(i)},setOpacity:function(i){this.options.opacity=i,this._container&&ye(this._container,i)},_animateZoom:function(i){var o=this._map._latLngToNewLayerPoint(this._latlng,i.zoom,i.center);this._setPosition(o)},_getAnchor:function(){return lt(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),OT=function(i,o){return new Ka(i,o)};we.include({openTooltip:function(i,o,c){return this._initOverlay(Ka,i,o,c).openOn(this),this},closeTooltip:function(i){return i.close(),this}}),Qn.include({bindTooltip:function(i,o){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(Ka,this._tooltip,i,o),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(i){if(!(!i&&this._tooltipHandlersAdded)){var o=i?"off":"on",c={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?c.add=this._openTooltip:(c.mouseover=this._openTooltip,c.mouseout=this.closeTooltip,c.click=this._openTooltip,this._map?this._addFocusListeners():c.add=this._addFocusListeners),this._tooltip.options.sticky&&(c.mousemove=this._moveTooltip),this[o](c),this._tooltipHandlersAdded=!i}},openTooltip:function(i){return this._tooltip&&(this instanceof Si||(this._tooltip._source=this),this._tooltip._prepareOpen(i)&&(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(i){return this._tooltip&&this._tooltip.setContent(i),this},getTooltip:function(){return this._tooltip},_addFocusListeners:function(){this.getElement?this._addFocusListenersOnLayer(this):this.eachLayer&&this.eachLayer(this._addFocusListenersOnLayer,this)},_addFocusListenersOnLayer:function(i){var o=typeof i.getElement=="function"&&i.getElement();o&&(he(o,"focus",function(){this._tooltip._source=i,this.openTooltip()},this),he(o,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(i){var o=typeof i.getElement=="function"&&i.getElement();o&&o.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(i){if(!(!this._tooltip||!this._map)){if(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag){this._openOnceFlag=!0;var o=this;this._map.once("moveend",function(){o._openOnceFlag=!1,o._openTooltip(i)});return}this._tooltip._source=i.layer||i.target,this.openTooltip(this._tooltip.options.sticky?i.latlng:void 0)}},_moveTooltip:function(i){var o=i.latlng,c,f;this._tooltip.options.sticky&&i.originalEvent&&(c=this._map.mouseEventToContainerPoint(i.originalEvent),f=this._map.containerPointToLayerPoint(c),o=this._map.layerPointToLatLng(f)),this._tooltip.setLatLng(o)}});var Hm=hr.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(i){var o=i&&i.tagName==="DIV"?i:document.createElement("div"),c=this.options;if(c.html instanceof Element?(be(o),o.appendChild(c.html)):o.innerHTML=c.html!==!1?c.html:"",c.bgPos){var f=lt(c.bgPos);o.style.backgroundPosition=-f.x+"px "+-f.y+"px"}return this._setIconStyles(o,"icon"),o},createShadow:function(){return null}});function NT(i){return new Hm(i)}hr.Default=uo;var fo=Qn.extend({options:{tileSize:256,opacity:1,updateWhenIdle:qt.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(i){S(this,i)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(i){i._addZoomLimit(this)},onRemove:function(i){this._removeAllTiles(),se(this._container),i._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(Qt(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(Le(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(i){return this.options.opacity=i,this._updateOpacity(),this},setZIndex:function(i){return this.options.zIndex=i,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var i=this._clampZoom(this._map.getZoom());i!==this._tileZoom&&(this._tileZoom=i,this._updateLevels()),this._update()}return this},getEvents:function(){var i={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=d(this._onMoveEnd,this.options.updateInterval,this)),i.move=this._onMove),this._zoomAnimated&&(i.zoomanim=this._animateZoom),i},createTile:function(){return document.createElement("div")},getTileSize:function(){var i=this.options.tileSize;return i instanceof G?i:new G(i,i)},_updateZIndex:function(){this._container&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(i){for(var o=this.getPane().children,c=-i(-1/0,1/0),f=0,x=o.length,A;f<x;f++)A=o[f].style.zIndex,o[f]!==this._container&&A&&(c=i(c,+A));isFinite(c)&&(this.options.zIndex=c+i(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!qt.ielt9){ye(this._container,this.options.opacity);var i=+new Date,o=!1,c=!1;for(var f in this._tiles){var x=this._tiles[f];if(!(!x.current||!x.loaded)){var A=Math.min(1,(i-x.loaded)/200);ye(x.el,A),A<1?o=!0:(x.active?c=!0:this._onOpaqueTile(x),x.active=!0)}}c&&!this._noPrune&&this._pruneTiles(),o&&(Z(this._fadeFrame),this._fadeFrame=k(this._updateOpacity,this))}},_onOpaqueTile:m,_initContainer:function(){this._container||(this._container=Kt("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var i=this._tileZoom,o=this.options.maxZoom;if(i!==void 0){for(var c in this._levels)c=Number(c),this._levels[c].el.children.length||c===i?(this._levels[c].el.style.zIndex=o-Math.abs(i-c),this._onUpdateLevel(c)):(se(this._levels[c].el),this._removeTilesAtZoom(c),this._onRemoveLevel(c),delete this._levels[c]);var f=this._levels[i],x=this._map;return f||(f=this._levels[i]={},f.el=Kt("div","leaflet-tile-container leaflet-zoom-animated",this._container),f.el.style.zIndex=o,f.origin=x.project(x.unproject(x.getPixelOrigin()),i).round(),f.zoom=i,this._setZoomTransform(f,x.getCenter(),x.getZoom()),m(f.el.offsetWidth),this._onCreateLevel(f)),this._level=f,f}},_onUpdateLevel:m,_onRemoveLevel:m,_onCreateLevel:m,_pruneTiles:function(){if(this._map){var i,o,c=this._map.getZoom();if(c>this.options.maxZoom||c<this.options.minZoom){this._removeAllTiles();return}for(i in this._tiles)o=this._tiles[i],o.retain=o.current;for(i in this._tiles)if(o=this._tiles[i],o.current&&!o.active){var f=o.coords;this._retainParent(f.x,f.y,f.z,f.z-5)||this._retainChildren(f.x,f.y,f.z,f.z+2)}for(i in this._tiles)this._tiles[i].retain||this._removeTile(i)}},_removeTilesAtZoom:function(i){for(var o in this._tiles)this._tiles[o].coords.z===i&&this._removeTile(o)},_removeAllTiles:function(){for(var i in this._tiles)this._removeTile(i)},_invalidateAll:function(){for(var i in this._levels)se(this._levels[i].el),this._onRemoveLevel(Number(i)),delete this._levels[i];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(i,o,c,f){var x=Math.floor(i/2),A=Math.floor(o/2),F=c-1,J=new G(+x,+A);J.z=+F;var nt=this._tileCoordsToKey(J),mt=this._tiles[nt];return mt&&mt.active?(mt.retain=!0,!0):(mt&&mt.loaded&&(mt.retain=!0),F>f?this._retainParent(x,A,F,f):!1)},_retainChildren:function(i,o,c,f){for(var x=2*i;x<2*i+2;x++)for(var A=2*o;A<2*o+2;A++){var F=new G(x,A);F.z=c+1;var J=this._tileCoordsToKey(F),nt=this._tiles[J];if(nt&&nt.active){nt.retain=!0;continue}else nt&&nt.loaded&&(nt.retain=!0);c+1<f&&this._retainChildren(x,A,c+1,f)}},_resetView:function(i){var o=i&&(i.pinch||i.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),o,o)},_animateZoom:function(i){this._setView(i.center,i.zoom,!0,i.noUpdate)},_clampZoom:function(i){var o=this.options;return o.minNativeZoom!==void 0&&i<o.minNativeZoom?o.minNativeZoom:o.maxNativeZoom!==void 0&&o.maxNativeZoom<i?o.maxNativeZoom:i},_setView:function(i,o,c,f){var x=Math.round(o);this.options.maxZoom!==void 0&&x>this.options.maxZoom||this.options.minZoom!==void 0&&x<this.options.minZoom?x=void 0:x=this._clampZoom(x);var A=this.options.updateWhenZooming&&x!==this._tileZoom;(!f||A)&&(this._tileZoom=x,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),x!==void 0&&this._update(i),c||this._pruneTiles(),this._noPrune=!!c),this._setZoomTransforms(i,o)},_setZoomTransforms:function(i,o){for(var c in this._levels)this._setZoomTransform(this._levels[c],i,o)},_setZoomTransform:function(i,o,c){var f=this._map.getZoomScale(c,i.zoom),x=i.origin.multiplyBy(f).subtract(this._map._getNewPixelOrigin(o,c)).round();qt.any3d?Fe(i.el,x,f):Ee(i.el,x)},_resetGrid:function(){var i=this._map,o=i.options.crs,c=this._tileSize=this.getTileSize(),f=this._tileZoom,x=this._map.getPixelWorldBounds(this._tileZoom);x&&(this._globalTileRange=this._pxBoundsToTileRange(x)),this._wrapX=o.wrapLng&&!this.options.noWrap&&[Math.floor(i.project([0,o.wrapLng[0]],f).x/c.x),Math.ceil(i.project([0,o.wrapLng[1]],f).x/c.y)],this._wrapY=o.wrapLat&&!this.options.noWrap&&[Math.floor(i.project([o.wrapLat[0],0],f).y/c.x),Math.ceil(i.project([o.wrapLat[1],0],f).y/c.y)]},_onMoveEnd:function(){!this._map||this._map._animatingZoom||this._update()},_getTiledPixelBounds:function(i){var o=this._map,c=o._animatingZoom?Math.max(o._animateToZoom,o.getZoom()):o.getZoom(),f=o.getZoomScale(c,this._tileZoom),x=o.project(i,this._tileZoom).floor(),A=o.getSize().divideBy(f*2);return new Mt(x.subtract(A),x.add(A))},_update:function(i){var o=this._map;if(o){var c=this._clampZoom(o.getZoom());if(i===void 0&&(i=o.getCenter()),this._tileZoom!==void 0){var f=this._getTiledPixelBounds(i),x=this._pxBoundsToTileRange(f),A=x.getCenter(),F=[],J=this.options.keepBuffer,nt=new Mt(x.getBottomLeft().subtract([J,-J]),x.getTopRight().add([J,-J]));if(!(isFinite(x.min.x)&&isFinite(x.min.y)&&isFinite(x.max.x)&&isFinite(x.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var mt in this._tiles){var kt=this._tiles[mt].coords;(kt.z!==this._tileZoom||!nt.contains(new G(kt.x,kt.y)))&&(this._tiles[mt].current=!1)}if(Math.abs(c-this._tileZoom)>1){this._setView(i,c);return}for(var re=x.min.y;re<=x.max.y;re++)for(var me=x.min.x;me<=x.max.x;me++){var dn=new G(me,re);if(dn.z=this._tileZoom,!!this._isValidTile(dn)){var je=this._tiles[this._tileCoordsToKey(dn)];je?je.current=!0:F.push(dn)}}if(F.sort(function(vn,pr){return vn.distanceTo(A)-pr.distanceTo(A)}),F.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var Bn=document.createDocumentFragment();for(me=0;me<F.length;me++)this._addTile(F[me],Bn);this._level.el.appendChild(Bn)}}}},_isValidTile:function(i){var o=this._map.options.crs;if(!o.infinite){var c=this._globalTileRange;if(!o.wrapLng&&(i.x<c.min.x||i.x>c.max.x)||!o.wrapLat&&(i.y<c.min.y||i.y>c.max.y))return!1}if(!this.options.bounds)return!0;var f=this._tileCoordsToBounds(i);return Rt(this.options.bounds).overlaps(f)},_keyToBounds:function(i){return this._tileCoordsToBounds(this._keyToTileCoords(i))},_tileCoordsToNwSe:function(i){var o=this._map,c=this.getTileSize(),f=i.scaleBy(c),x=f.add(c),A=o.unproject(f,i.z),F=o.unproject(x,i.z);return[A,F]},_tileCoordsToBounds:function(i){var o=this._tileCoordsToNwSe(i),c=new pt(o[0],o[1]);return this.options.noWrap||(c=this._map.wrapLatLngBounds(c)),c},_tileCoordsToKey:function(i){return i.x+":"+i.y+":"+i.z},_keyToTileCoords:function(i){var o=i.split(":"),c=new G(+o[0],+o[1]);return c.z=+o[2],c},_removeTile:function(i){var o=this._tiles[i];o&&(se(o.el),delete this._tiles[i],this.fire("tileunload",{tile:o.el,coords:this._keyToTileCoords(i)}))},_initTile:function(i){te(i,"leaflet-tile");var o=this.getTileSize();i.style.width=o.x+"px",i.style.height=o.y+"px",i.onselectstart=m,i.onmousemove=m,qt.ielt9&&this.options.opacity<1&&ye(i,this.options.opacity)},_addTile:function(i,o){var c=this._getTilePos(i),f=this._tileCoordsToKey(i),x=this.createTile(this._wrapCoords(i),l(this._tileReady,this,i));this._initTile(x),this.createTile.length<2&&k(l(this._tileReady,this,i,null,x)),Ee(x,c),this._tiles[f]={el:x,coords:i,current:!0},o.appendChild(x),this.fire("tileloadstart",{tile:x,coords:i})},_tileReady:function(i,o,c){o&&this.fire("tileerror",{error:o,tile:c,coords:i});var f=this._tileCoordsToKey(i);c=this._tiles[f],c&&(c.loaded=+new Date,this._map._fadeAnimated?(ye(c.el,0),Z(this._fadeFrame),this._fadeFrame=k(this._updateOpacity,this)):(c.active=!0,this._pruneTiles()),o||(te(c.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:c.el,coords:i})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),qt.ielt9||!this._map._fadeAnimated?k(this._pruneTiles,this):setTimeout(l(this._pruneTiles,this),250)))},_getTilePos:function(i){return i.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(i){var o=new G(this._wrapX?p(i.x,this._wrapX):i.x,this._wrapY?p(i.y,this._wrapY):i.y);return o.z=i.z,o},_pxBoundsToTileRange:function(i){var o=this.getTileSize();return new Mt(i.min.unscaleBy(o).floor(),i.max.unscaleBy(o).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var i in this._tiles)if(!this._tiles[i].loaded)return!1;return!0}});function BT(i){return new fo(i)}var fr=fo.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(i,o){this._url=i,o=S(this,o),o.detectRetina&&qt.retina&&o.maxZoom>0?(o.tileSize=Math.floor(o.tileSize/2),o.zoomReverse?(o.zoomOffset--,o.minZoom=Math.min(o.maxZoom,o.minZoom+1)):(o.zoomOffset++,o.maxZoom=Math.max(o.minZoom,o.maxZoom-1)),o.minZoom=Math.max(0,o.minZoom)):o.zoomReverse?o.minZoom=Math.min(o.maxZoom,o.minZoom):o.maxZoom=Math.max(o.minZoom,o.maxZoom),typeof o.subdomains=="string"&&(o.subdomains=o.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(i,o){return this._url===i&&o===void 0&&(o=!0),this._url=i,o||this.redraw(),this},createTile:function(i,o){var c=document.createElement("img");return he(c,"load",l(this._tileOnLoad,this,o,c)),he(c,"error",l(this._tileOnError,this,o,c)),(this.options.crossOrigin||this.options.crossOrigin==="")&&(c.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&(c.referrerPolicy=this.options.referrerPolicy),c.alt="",c.src=this.getTileUrl(i),c},getTileUrl:function(i){var o={r:qt.retina?"@2x":"",s:this._getSubdomain(i),x:i.x,y:i.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var c=this._globalTileRange.max.y-i.y;this.options.tms&&(o.y=c),o["-y"]=c}return R(this._url,r(o,this.options))},_tileOnLoad:function(i,o){qt.ielt9?setTimeout(l(i,this,null,o),0):i(null,o)},_tileOnError:function(i,o,c){var f=this.options.errorTileUrl;f&&o.getAttribute("src")!==f&&(o.src=f),i(c,o)},_onTileRemove:function(i){i.tile.onload=null},_getZoomForUrl:function(){var i=this._tileZoom,o=this.options.maxZoom,c=this.options.zoomReverse,f=this.options.zoomOffset;return c&&(i=o-i),i+f},_getSubdomain:function(i){var o=Math.abs(i.x+i.y)%this.options.subdomains.length;return this.options.subdomains[o]},_abortLoading:function(){var i,o;for(i in this._tiles)if(this._tiles[i].coords.z!==this._tileZoom&&(o=this._tiles[i].el,o.onload=m,o.onerror=m,!o.complete)){o.src=U;var c=this._tiles[i].coords;se(o),delete this._tiles[i],this.fire("tileabort",{tile:o,coords:c})}},_removeTile:function(i){var o=this._tiles[i];if(o)return o.el.setAttribute("src",U),fo.prototype._removeTile.call(this,i)},_tileReady:function(i,o,c){if(!(!this._map||c&&c.getAttribute("src")===U))return fo.prototype._tileReady.call(this,i,o,c)}});function Vm(i,o){return new fr(i,o)}var Gm=fr.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(i,o){this._url=i;var c=r({},this.defaultWmsParams);for(var f in o)f in this.options||(c[f]=o[f]);o=S(this,o);var x=o.detectRetina&&qt.retina?2:1,A=this.getTileSize();c.width=A.x*x,c.height=A.y*x,this.wmsParams=c},onAdd:function(i){this._crs=this.options.crs||i.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var o=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[o]=this._crs.code,fr.prototype.onAdd.call(this,i)},getTileUrl:function(i){var o=this._tileCoordsToNwSe(i),c=this._crs,f=Gt(c.project(o[0]),c.project(o[1])),x=f.min,A=f.max,F=(this._wmsVersion>=1.3&&this._crs===Um?[x.y,x.x,A.y,A.x]:[x.x,x.y,A.x,A.y]).join(","),J=fr.prototype.getTileUrl.call(this,i);return J+v(this.wmsParams,J,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+F},setParams:function(i,o){return r(this.wmsParams,i),o||this.redraw(),this}});function FT(i,o){return new Gm(i,o)}fr.WMS=Gm,Vm.wms=FT;var bi=Qn.extend({options:{padding:.1},initialize:function(i){S(this,i),u(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),te(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 i={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(i.zoomanim=this._onAnimZoom),i},_onAnimZoom:function(i){this._updateTransform(i.center,i.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(i,o){var c=this._map.getZoomScale(o,this._zoom),f=this._map.getSize().multiplyBy(.5+this.options.padding),x=this._map.project(this._center,o),A=f.multiplyBy(-c).add(x).subtract(this._map._getNewPixelOrigin(i,o));qt.any3d?Fe(this._container,A,c):Ee(this._container,A)},_reset:function(){this._update(),this._updateTransform(this._center,this._zoom);for(var i in this._layers)this._layers[i]._reset()},_onZoomEnd:function(){for(var i in this._layers)this._layers[i]._project()},_updatePaths:function(){for(var i in this._layers)this._layers[i]._update()},_update:function(){var i=this.options.padding,o=this._map.getSize(),c=this._map.containerPointToLayerPoint(o.multiplyBy(-i)).round();this._bounds=new Mt(c,c.add(o.multiplyBy(1+i*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),Wm=bi.extend({options:{tolerance:0},getEvents:function(){var i=bi.prototype.getEvents.call(this);return i.viewprereset=this._onViewPreReset,i},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){bi.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var i=this._container=document.createElement("canvas");he(i,"mousemove",this._onMouseMove,this),he(i,"click dblclick mousedown mouseup contextmenu",this._onClick,this),he(i,"mouseout",this._handleMouseOut,this),i._leaflet_disable_events=!0,this._ctx=i.getContext("2d")},_destroyContainer:function(){Z(this._redrawRequest),delete this._ctx,se(this._container),Ue(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var i;this._redrawBounds=null;for(var o in this._layers)i=this._layers[o],i._update();this._redraw()}},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){bi.prototype._update.call(this);var i=this._bounds,o=this._container,c=i.getSize(),f=qt.retina?2:1;Ee(o,i.min),o.width=f*c.x,o.height=f*c.y,o.style.width=c.x+"px",o.style.height=c.y+"px",qt.retina&&this._ctx.scale(2,2),this._ctx.translate(-i.min.x,-i.min.y),this.fire("update")}},_reset:function(){bi.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(i){this._updateDashArray(i),this._layers[u(i)]=i;var o=i._order={layer:i,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=o),this._drawLast=o,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(i){this._requestRedraw(i)},_removePath:function(i){var o=i._order,c=o.next,f=o.prev;c?c.prev=f:this._drawLast=f,f?f.next=c:this._drawFirst=c,delete i._order,delete this._layers[u(i)],this._requestRedraw(i)},_updatePath:function(i){this._extendRedrawBounds(i),i._project(),i._update(),this._requestRedraw(i)},_updateStyle:function(i){this._updateDashArray(i),this._requestRedraw(i)},_updateDashArray:function(i){if(typeof i.options.dashArray=="string"){var o=i.options.dashArray.split(/[, ]+/),c=[],f,x;for(x=0;x<o.length;x++){if(f=Number(o[x]),isNaN(f))return;c.push(f)}i.options._dashArray=c}else i.options._dashArray=i.options.dashArray},_requestRedraw:function(i){this._map&&(this._extendRedrawBounds(i),this._redrawRequest=this._redrawRequest||k(this._redraw,this))},_extendRedrawBounds:function(i){if(i._pxBounds){var o=(i.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new Mt,this._redrawBounds.extend(i._pxBounds.min.subtract([o,o])),this._redrawBounds.extend(i._pxBounds.max.add([o,o]))}},_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 i=this._redrawBounds;if(i){var o=i.getSize();this._ctx.clearRect(i.min.x,i.min.y,o.x,o.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 i,o=this._redrawBounds;if(this._ctx.save(),o){var c=o.getSize();this._ctx.beginPath(),this._ctx.rect(o.min.x,o.min.y,c.x,c.y),this._ctx.clip()}this._drawing=!0;for(var f=this._drawFirst;f;f=f.next)i=f.layer,(!o||i._pxBounds&&i._pxBounds.intersects(o))&&i._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(i,o){if(this._drawing){var c,f,x,A,F=i._parts,J=F.length,nt=this._ctx;if(J){for(nt.beginPath(),c=0;c<J;c++){for(f=0,x=F[c].length;f<x;f++)A=F[c][f],nt[f?"lineTo":"moveTo"](A.x,A.y);o&&nt.closePath()}this._fillStroke(nt,i)}}},_updateCircle:function(i){if(!(!this._drawing||i._empty())){var o=i._point,c=this._ctx,f=Math.max(Math.round(i._radius),1),x=(Math.max(Math.round(i._radiusY),1)||f)/f;x!==1&&(c.save(),c.scale(1,x)),c.beginPath(),c.arc(o.x,o.y/x,f,0,Math.PI*2,!1),x!==1&&c.restore(),this._fillStroke(c,i)}},_fillStroke:function(i,o){var c=o.options;c.fill&&(i.globalAlpha=c.fillOpacity,i.fillStyle=c.fillColor||c.color,i.fill(c.fillRule||"evenodd")),c.stroke&&c.weight!==0&&(i.setLineDash&&i.setLineDash(o.options&&o.options._dashArray||[]),i.globalAlpha=c.opacity,i.lineWidth=c.weight,i.strokeStyle=c.color,i.lineCap=c.lineCap,i.lineJoin=c.lineJoin,i.stroke())},_onClick:function(i){for(var o=this._map.mouseEventToLayerPoint(i),c,f,x=this._drawFirst;x;x=x.next)c=x.layer,c.options.interactive&&c._containsPoint(o)&&(!(i.type==="click"||i.type==="preclick")||!this._map._draggableMoved(c))&&(f=c);this._fireEvent(f?[f]:!1,i)},_onMouseMove:function(i){if(!(!this._map||this._map.dragging.moving()||this._map._animatingZoom)){var o=this._map.mouseEventToLayerPoint(i);this._handleMouseHover(i,o)}},_handleMouseOut:function(i){var o=this._hoveredLayer;o&&(ke(this._container,"leaflet-interactive"),this._fireEvent([o],i,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(i,o){if(!this._mouseHoverThrottled){for(var c,f,x=this._drawFirst;x;x=x.next)c=x.layer,c.options.interactive&&c._containsPoint(o)&&(f=c);f!==this._hoveredLayer&&(this._handleMouseOut(i),f&&(te(this._container,"leaflet-interactive"),this._fireEvent([f],i,"mouseover"),this._hoveredLayer=f)),this._fireEvent(this._hoveredLayer?[this._hoveredLayer]:!1,i),this._mouseHoverThrottled=!0,setTimeout(l(function(){this._mouseHoverThrottled=!1},this),32)}},_fireEvent:function(i,o,c){this._map._fireDOMEvent(o,c||o.type,i)},_bringToFront:function(i){var o=i._order;if(o){var c=o.next,f=o.prev;if(c)c.prev=f;else return;f?f.next=c:c&&(this._drawFirst=c),o.prev=this._drawLast,this._drawLast.next=o,o.next=null,this._drawLast=o,this._requestRedraw(i)}},_bringToBack:function(i){var o=i._order;if(o){var c=o.next,f=o.prev;if(f)f.next=c;else return;c?c.prev=f:f&&(this._drawLast=f),o.prev=null,o.next=this._drawFirst,this._drawFirst.prev=o,this._drawFirst=o,this._requestRedraw(i)}}});function Zm(i){return qt.canvas?new Wm(i):null}var po=(function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(i){return document.createElement("<lvml:"+i+' class="lvml">')}}catch{}return function(i){return document.createElement("<"+i+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}})(),zT={_initContainer:function(){this._container=Kt("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(bi.prototype._update.call(this),this.fire("update"))},_initPath:function(i){var o=i._container=po("shape");te(o,"leaflet-vml-shape "+(this.options.className||"")),o.coordsize="1 1",i._path=po("path"),o.appendChild(i._path),this._updateStyle(i),this._layers[u(i)]=i},_addPath:function(i){var o=i._container;this._container.appendChild(o),i.options.interactive&&i.addInteractiveTarget(o)},_removePath:function(i){var o=i._container;se(o),i.removeInteractiveTarget(o),delete this._layers[u(i)]},_updateStyle:function(i){var o=i._stroke,c=i._fill,f=i.options,x=i._container;x.stroked=!!f.stroke,x.filled=!!f.fill,f.stroke?(o||(o=i._stroke=po("stroke")),x.appendChild(o),o.weight=f.weight+"px",o.color=f.color,o.opacity=f.opacity,f.dashArray?o.dashStyle=P(f.dashArray)?f.dashArray.join(" "):f.dashArray.replace(/( *, *)/g," "):o.dashStyle="",o.endcap=f.lineCap.replace("butt","flat"),o.joinstyle=f.lineJoin):o&&(x.removeChild(o),i._stroke=null),f.fill?(c||(c=i._fill=po("fill")),x.appendChild(c),c.color=f.fillColor||f.color,c.opacity=f.fillOpacity):c&&(x.removeChild(c),i._fill=null)},_updateCircle:function(i){var o=i._point.round(),c=Math.round(i._radius),f=Math.round(i._radiusY||c);this._setPath(i,i._empty()?"M0 0":"AL "+o.x+","+o.y+" "+c+","+f+" 0,"+65535*360)},_setPath:function(i,o){i._path.v=o},_bringToFront:function(i){Qt(i._container)},_bringToBack:function(i){Le(i._container)}},$a=qt.vml?po:ct,mo=bi.extend({_initContainer:function(){this._container=$a("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=$a("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){se(this._container),Ue(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){bi.prototype._update.call(this);var i=this._bounds,o=i.getSize(),c=this._container;(!this._svgSize||!this._svgSize.equals(o))&&(this._svgSize=o,c.setAttribute("width",o.x),c.setAttribute("height",o.y)),Ee(c,i.min),c.setAttribute("viewBox",[i.min.x,i.min.y,o.x,o.y].join(" ")),this.fire("update")}},_initPath:function(i){var o=i._path=$a("path");i.options.className&&te(o,i.options.className),i.options.interactive&&te(o,"leaflet-interactive"),this._updateStyle(i),this._layers[u(i)]=i},_addPath:function(i){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(i._path),i.addInteractiveTarget(i._path)},_removePath:function(i){se(i._path),i.removeInteractiveTarget(i._path),delete this._layers[u(i)]},_updatePath:function(i){i._project(),i._update()},_updateStyle:function(i){var o=i._path,c=i.options;o&&(c.stroke?(o.setAttribute("stroke",c.color),o.setAttribute("stroke-opacity",c.opacity),o.setAttribute("stroke-width",c.weight),o.setAttribute("stroke-linecap",c.lineCap),o.setAttribute("stroke-linejoin",c.lineJoin),c.dashArray?o.setAttribute("stroke-dasharray",c.dashArray):o.removeAttribute("stroke-dasharray"),c.dashOffset?o.setAttribute("stroke-dashoffset",c.dashOffset):o.removeAttribute("stroke-dashoffset")):o.setAttribute("stroke","none"),c.fill?(o.setAttribute("fill",c.fillColor||c.color),o.setAttribute("fill-opacity",c.fillOpacity),o.setAttribute("fill-rule",c.fillRule||"evenodd")):o.setAttribute("fill","none"))},_updatePoly:function(i,o){this._setPath(i,_t(i._parts,o))},_updateCircle:function(i){var o=i._point,c=Math.max(Math.round(i._radius),1),f=Math.max(Math.round(i._radiusY),1)||c,x="a"+c+","+f+" 0 1,0 ",A=i._empty()?"M0 0":"M"+(o.x-c)+","+o.y+x+c*2+",0 "+x+-c*2+",0 ";this._setPath(i,A)},_setPath:function(i,o){i._path.setAttribute("d",o)},_bringToFront:function(i){Qt(i._path)},_bringToBack:function(i){Le(i._path)}});qt.vml&&mo.include(zT);function Xm(i){return qt.svg||qt.vml?new mo(i):null}we.include({getRenderer:function(i){var o=i.options.renderer||this._getPaneRenderer(i.options.pane)||this.options.renderer||this._renderer;return o||(o=this._renderer=this._createRenderer()),this.hasLayer(o)||this.addLayer(o),o},_getPaneRenderer:function(i){if(i==="overlayPane"||i===void 0)return!1;var o=this._paneRenderers[i];return o===void 0&&(o=this._createRenderer({pane:i}),this._paneRenderers[i]=o),o},_createRenderer:function(i){return this.options.preferCanvas&&Zm(i)||Xm(i)}});var Ym=ur.extend({initialize:function(i,o){ur.prototype.initialize.call(this,this._boundsToLatLngs(i),o)},setBounds:function(i){return this.setLatLngs(this._boundsToLatLngs(i))},_boundsToLatLngs:function(i){return i=Rt(i),[i.getSouthWest(),i.getNorthWest(),i.getNorthEast(),i.getSouthEast()]}});function HT(i,o){return new Ym(i,o)}mo.create=$a,mo.pointsToPath=_t,Ti.geometryToLayer=Xa,Ti.coordsToLatLng=Uh,Ti.coordsToLatLngs=Ya,Ti.latLngToCoords=Oh,Ti.latLngsToCoords=qa,Ti.getFeature=dr,Ti.asFeature=Qa,we.mergeOptions({boxZoom:!0});var qm=oi.extend({initialize:function(i){this._map=i,this._container=i._container,this._pane=i._panes.overlayPane,this._resetStateTimeout=0,i.on("unload",this._destroy,this)},addHooks:function(){he(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){Ue(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){se(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(i){if(!i.shiftKey||i.which!==1&&i.button!==1)return!1;this._clearDeferredResetState(),this._resetState(),Cn(),vh(),this._startPoint=this._map.mouseEventToContainerPoint(i),he(document,{contextmenu:Es,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(i){this._moved||(this._moved=!0,this._box=Kt("div","leaflet-zoom-box",this._container),te(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(i);var o=new Mt(this._point,this._startPoint),c=o.getSize();Ee(this._box,o.min),this._box.style.width=c.x+"px",this._box.style.height=c.y+"px"},_finish:function(){this._moved&&(se(this._box),ke(this._container,"leaflet-crosshair")),oo(),yh(),Ue(document,{contextmenu:Es,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(i){if(!(i.which!==1&&i.button!==1)&&(this._finish(),!!this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(l(this._resetState,this),0);var o=new pt(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(o).fire("boxzoomend",{boxZoomBounds:o})}},_onKeyDown:function(i){i.keyCode===27&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});we.addInitHook("addHandler","boxZoom",qm),we.mergeOptions({doubleClickZoom:!0});var Qm=oi.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(i){var o=this._map,c=o.getZoom(),f=o.options.zoomDelta,x=i.originalEvent.shiftKey?c-f:c+f;o.options.doubleClickZoom==="center"?o.setZoom(x):o.setZoomAround(i.containerPoint,x)}});we.addInitHook("addHandler","doubleClickZoom",Qm),we.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var jm=oi.extend({addHooks:function(){if(!this._draggable){var i=this._map;this._draggable=new Ki(i._mapPane,i._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),i.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),i.on("zoomend",this._onZoomEnd,this),i.whenReady(this._onZoomEnd,this))}te(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){ke(this._map._container,"leaflet-grab"),ke(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 i=this._map;if(i._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var o=Rt(this._map.options.maxBounds);this._offsetLimit=Gt(this._map.latLngToContainerPoint(o.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(o.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;i.fire("movestart").fire("dragstart"),i.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(i){if(this._map.options.inertia){var o=this._lastTime=+new Date,c=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(c),this._times.push(o),this._prunePositions(o)}this._map.fire("move",i).fire("drag",i)},_prunePositions:function(i){for(;this._positions.length>1&&i-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var i=this._map.getSize().divideBy(2),o=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=o.subtract(i).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(i,o){return i-(i-o)*this._viscosity},_onPreDragLimit:function(){if(!(!this._viscosity||!this._offsetLimit)){var i=this._draggable._newPos.subtract(this._draggable._startPos),o=this._offsetLimit;i.x<o.min.x&&(i.x=this._viscousLimit(i.x,o.min.x)),i.y<o.min.y&&(i.y=this._viscousLimit(i.y,o.min.y)),i.x>o.max.x&&(i.x=this._viscousLimit(i.x,o.max.x)),i.y>o.max.y&&(i.y=this._viscousLimit(i.y,o.max.y)),this._draggable._newPos=this._draggable._startPos.add(i)}},_onPreDragWrap:function(){var i=this._worldWidth,o=Math.round(i/2),c=this._initialWorldOffset,f=this._draggable._newPos.x,x=(f-o+c)%i+o-c,A=(f+o+c)%i-o-c,F=Math.abs(x+c)<Math.abs(A+c)?x:A;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=F},_onDragEnd:function(i){var o=this._map,c=o.options,f=!c.inertia||i.noInertia||this._times.length<2;if(o.fire("dragend",i),f)o.fire("moveend");else{this._prunePositions(+new Date);var x=this._lastPos.subtract(this._positions[0]),A=(this._lastTime-this._times[0])/1e3,F=c.easeLinearity,J=x.multiplyBy(F/A),nt=J.distanceTo([0,0]),mt=Math.min(c.inertiaMaxSpeed,nt),kt=J.multiplyBy(mt/nt),re=mt/(c.inertiaDeceleration*F),me=kt.multiplyBy(-re/2).round();!me.x&&!me.y?o.fire("moveend"):(me=o._limitOffset(me,o.options.maxBounds),k(function(){o.panBy(me,{duration:re,easeLinearity:F,noMoveStart:!0,animate:!0})}))}}});we.addInitHook("addHandler","dragging",jm),we.mergeOptions({keyboard:!0,keyboardPanDelta:80});var Jm=oi.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(i){this._map=i,this._setPanDelta(i.options.keyboardPanDelta),this._setZoomDelta(i.options.zoomDelta)},addHooks:function(){var i=this._map._container;i.tabIndex<=0&&(i.tabIndex="0"),he(i,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),Ue(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 i=document.body,o=document.documentElement,c=i.scrollTop||o.scrollTop,f=i.scrollLeft||o.scrollLeft;this._map._container.focus(),window.scrollTo(f,c)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(i){var o=this._panKeys={},c=this.keyCodes,f,x;for(f=0,x=c.left.length;f<x;f++)o[c.left[f]]=[-1*i,0];for(f=0,x=c.right.length;f<x;f++)o[c.right[f]]=[i,0];for(f=0,x=c.down.length;f<x;f++)o[c.down[f]]=[0,i];for(f=0,x=c.up.length;f<x;f++)o[c.up[f]]=[0,-1*i]},_setZoomDelta:function(i){var o=this._zoomKeys={},c=this.keyCodes,f,x;for(f=0,x=c.zoomIn.length;f<x;f++)o[c.zoomIn[f]]=i;for(f=0,x=c.zoomOut.length;f<x;f++)o[c.zoomOut[f]]=-i},_addHooks:function(){he(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){Ue(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(i){if(!(i.altKey||i.ctrlKey||i.metaKey)){var o=i.keyCode,c=this._map,f;if(o in this._panKeys){if(!c._panAnim||!c._panAnim._inProgress)if(f=this._panKeys[o],i.shiftKey&&(f=lt(f).multiplyBy(3)),c.options.maxBounds&&(f=c._limitOffset(lt(f),c.options.maxBounds)),c.options.worldCopyJump){var x=c.wrapLatLng(c.unproject(c.project(c.getCenter()).add(f)));c.panTo(x)}else c.panBy(f)}else if(o in this._zoomKeys)c.setZoom(c.getZoom()+(i.shiftKey?3:1)*this._zoomKeys[o]);else if(o===27&&c._popup&&c._popup.options.closeOnEscapeKey)c.closePopup();else return;Es(i)}}});we.addInitHook("addHandler","keyboard",Jm),we.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var Km=oi.extend({addHooks:function(){he(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){Ue(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(i){var o=wm(i),c=this._map.options.wheelDebounceTime;this._delta+=o,this._lastMousePos=this._map.mouseEventToContainerPoint(i),this._startTime||(this._startTime=+new Date);var f=Math.max(c-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(l(this._performZoom,this),f),Es(i)},_performZoom:function(){var i=this._map,o=i.getZoom(),c=this._map.options.zoomSnap||0;i._stop();var f=this._delta/(this._map.options.wheelPxPerZoomLevel*4),x=4*Math.log(2/(1+Math.exp(-Math.abs(f))))/Math.LN2,A=c?Math.ceil(x/c)*c:x,F=i._limitZoom(o+(this._delta>0?A:-A))-o;this._delta=0,this._startTime=null,F&&(i.options.scrollWheelZoom==="center"?i.setZoom(o+F):i.setZoomAround(this._lastMousePos,o+F))}});we.addInitHook("addHandler","scrollWheelZoom",Km);var VT=600;we.mergeOptions({tapHold:qt.touchNative&&qt.safari&&qt.mobile,tapTolerance:15});var $m=oi.extend({addHooks:function(){he(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){Ue(this._map._container,"touchstart",this._onDown,this)},_onDown:function(i){if(clearTimeout(this._holdTimeout),i.touches.length===1){var o=i.touches[0];this._startPos=this._newPos=new G(o.clientX,o.clientY),this._holdTimeout=setTimeout(l(function(){this._cancel(),this._isTapValid()&&(he(document,"touchend",nn),he(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",o))},this),VT),he(document,"touchend touchcancel contextmenu",this._cancel,this),he(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function i(){Ue(document,"touchend",nn),Ue(document,"touchend touchcancel",i)},_cancel:function(){clearTimeout(this._holdTimeout),Ue(document,"touchend touchcancel contextmenu",this._cancel,this),Ue(document,"touchmove",this._onMove,this)},_onMove:function(i){var o=i.touches[0];this._newPos=new G(o.clientX,o.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(i,o){var c=new MouseEvent(i,{bubbles:!0,cancelable:!0,view:window,screenX:o.screenX,screenY:o.screenY,clientX:o.clientX,clientY:o.clientY});c._simulated=!0,o.target.dispatchEvent(c)}});we.addInitHook("addHandler","tapHold",$m),we.mergeOptions({touchZoom:qt.touch,bounceAtZoomLimits:!0});var tg=oi.extend({addHooks:function(){te(this._map._container,"leaflet-touch-zoom"),he(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){ke(this._map._container,"leaflet-touch-zoom"),Ue(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(i){var o=this._map;if(!(!i.touches||i.touches.length!==2||o._animatingZoom||this._zooming)){var c=o.mouseEventToContainerPoint(i.touches[0]),f=o.mouseEventToContainerPoint(i.touches[1]);this._centerPoint=o.getSize()._divideBy(2),this._startLatLng=o.containerPointToLatLng(this._centerPoint),o.options.touchZoom!=="center"&&(this._pinchStartLatLng=o.containerPointToLatLng(c.add(f)._divideBy(2))),this._startDist=c.distanceTo(f),this._startZoom=o.getZoom(),this._moved=!1,this._zooming=!0,o._stop(),he(document,"touchmove",this._onTouchMove,this),he(document,"touchend touchcancel",this._onTouchEnd,this),nn(i)}},_onTouchMove:function(i){if(!(!i.touches||i.touches.length!==2||!this._zooming)){var o=this._map,c=o.mouseEventToContainerPoint(i.touches[0]),f=o.mouseEventToContainerPoint(i.touches[1]),x=c.distanceTo(f)/this._startDist;if(this._zoom=o.getScaleZoom(x,this._startZoom),!o.options.bounceAtZoomLimits&&(this._zoom<o.getMinZoom()&&x<1||this._zoom>o.getMaxZoom()&&x>1)&&(this._zoom=o._limitZoom(this._zoom)),o.options.touchZoom==="center"){if(this._center=this._startLatLng,x===1)return}else{var A=c._add(f)._divideBy(2)._subtract(this._centerPoint);if(x===1&&A.x===0&&A.y===0)return;this._center=o.unproject(o.project(this._pinchStartLatLng,this._zoom).subtract(A),this._zoom)}this._moved||(o._moveStart(!0,!1),this._moved=!0),Z(this._animRequest);var F=l(o._move,o,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=k(F,this,!0),nn(i)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,Z(this._animRequest),Ue(document,"touchmove",this._onTouchMove,this),Ue(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))}});we.addInitHook("addHandler","touchZoom",tg),we.BoxZoom=qm,we.DoubleClickZoom=Qm,we.Drag=jm,we.Keyboard=Jm,we.ScrollWheelZoom=Km,we.TapHold=$m,we.TouchZoom=tg,e.Bounds=Mt,e.Browser=qt,e.CRS=ft,e.Canvas=Wm,e.Circle=kh,e.CircleMarker=Za,e.Class=V,e.Control=qn,e.DivIcon=Hm,e.DivOverlay=ai,e.DomEvent=oT,e.DomUtil=sT,e.Draggable=Ki,e.Evented=dt,e.FeatureGroup=Si,e.GeoJSON=Ti,e.GridLayer=fo,e.Handler=oi,e.Icon=hr,e.ImageOverlay=ja,e.LatLng=Y,e.LatLngBounds=pt,e.Layer=Qn,e.LayerGroup=cr,e.LineUtil=yT,e.Map=we,e.Marker=Wa,e.Mixin=fT,e.Path=$i,e.Point=G,e.PolyUtil=pT,e.Polygon=ur,e.Polyline=Mi,e.Popup=Ja,e.PosAnimation=Sm,e.Projection=ET,e.Rectangle=Ym,e.Renderer=bi,e.SVG=mo,e.SVGOverlay=zm,e.TileLayer=fr,e.Tooltip=Ka,e.Transformation=ce,e.Util=Q,e.VideoOverlay=Fm,e.bind=l,e.bounds=Gt,e.canvas=Zm,e.circle=CT,e.circleMarker=AT,e.control=co,e.divIcon=NT,e.extend=r,e.featureGroup=MT,e.geoJSON=Bm,e.geoJson=LT,e.gridLayer=BT,e.icon=TT,e.imageOverlay=IT,e.latLng=st,e.latLngBounds=Rt,e.layerGroup=ST,e.map=aT,e.marker=bT,e.point=lt,e.polygon=RT,e.polyline=PT,e.popup=UT,e.rectangle=HT,e.setOptions=S,e.stamp=u,e.svg=Xm,e.svgOverlay=kT,e.tileLayer=Vm,e.tooltip=OT,e.transformation=at,e.version=s,e.videoOverlay=DT;var GT=window.L;e.noConflict=function(){return window.L=GT,this},window.L=e}))})(mr,mr.exports)),mr.exports}var R_=P_();const yn=A_(R_);function L_(n,t,e){if(n){const{obsType:s,obsPrefix:r,obsTiles:a}=e||{},{cols:l=8,rows:h=1}=a||{},{width:u=5760,height:d=2880}=t||{};if(s===xt.AppObsType.Hw){const m=ws(n,"x-image-process=image/resize,m_fixed,w_720,h_360,limit_0/marker,u_plus/imageslim");return{width:u,cols:l,rows:h,baseUrl:m,tileUrl:(_,E)=>{const w=u/l,S=d/h,v=`x-image-process=image/crop,x_${_*w},y_${E*S},w_${w},h_${S}/imageslim`;return ws(n,v)}}}else if(s===xt.AppObsType.Ali){const m=ws(n,"x-oss-process=image/resize,m_fixed,w_720,h_360,limit_0/quality,Q_75");return{width:u,cols:l,rows:h,baseUrl:m,tileUrl:(_,E)=>{const w=u/l,S=d/h,v=`x-oss-process=image/crop,x_${_*w},y_${E*S},w_${w},h_${S}/quality,Q_75`;return ws(n,v)}}}else if(s===xt.AppObsType.Hs){const m=ws(n,"x-tos-process=image/resize,m_fixed,w_720,h_360,limit_0/quality,Q_75");return{width:u,cols:l,rows:h,baseUrl:m,tileUrl:(_,E)=>{const w=u/l,S=d/h,v=`x-tos-process=image/crop,x_${_*w},y_${E*S},w_${w},h_${S}/quality,Q_75`;return ws(n,v)}}}else return s===xt.AppObsType.Aws?n:s===xt.AppObsType.Minio?`${r}/plain/${n}`:n}return n}async function I_(n,t){if(n){const{obsType:e}=t||{};if(e===xt.AppObsType.Hw){let s="x-image-process=image/info";s=n.includes("?")?`${n}&${s}`:`${n}?${s}`;const{width:r,height:a}=await xt.api.getImageInfo(s);return{width:r,height:a}}else if(e===xt.AppObsType.Ali){let s="x-oss-process=image/info";s=n.includes("?")?`${n}&${s}`:`${n}?${s}`;const r=await xt.api.getImageInfo(s),{ImageHeight:a,ImageWidth:l}=r;return{...r,width:l.value,height:a.value}}else if(e===xt.AppObsType.Hs){let s="x-tos-process=image/info";s=n.includes("?")?`${n}&${s}`:`${n}?${s}`;const r=await xt.api.getImageInfo(s),{ImageHeight:a,ImageWidth:l}=r;return{...r,width:l.value,height:a.value}}else return e===xt.AppObsType.Aws?{width:5760,height:2880}:e===xt.AppObsType.Minio?{width:5760,height:2880}:{width:5760,height:2880}}}function ws(n,t){return n.includes("?")?`${n}&${t}`:`${n}?${t}`}class D_{marker;options;radarElement;map=null;constructor(t){this.options={radius:t.radius??30,color:t.color??"#108ee9",hFov:t.hFov??90,angle:t.angle??0,className:t.className??"leaflet-radar-marker"},this.radarElement=this.createRadarElement(),this.updateRadarStyle(),this.marker=yn.marker(t.latLng,{icon:yn.divIcon({className:this.options.className,html:this.radarElement,iconSize:[this.options.radius*2,this.options.radius*2],iconAnchor:[this.options.radius,this.options.radius]}),interactive:!1})}createRadarElement(){const t=document.createElement("div");t.style.pointerEvents="none",t.style.position="relative";const e=document.createElement("div");return e.style.transition="all 0.3s ease",e.style.display="block",t.appendChild(e),t}updateRadarStyle(){const t=this?.radarElement?.querySelector("div");if(!t)return;const{radius:e,color:s,hFov:r,angle:a}=this.options,h=`conic-gradient(
|
|
5
5
|
from ${this.normalizeAngle(a+90)-r/2}deg,
|
|
6
6
|
white 0deg,
|
|
7
7
|
white ${r}deg,
|
|
@@ -3944,7 +3944,7 @@ void main() {
|
|
|
3944
3944
|
vUv = uv * repeat + offset;
|
|
3945
3945
|
gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );
|
|
3946
3946
|
}
|
|
3947
|
-
`,dM=class extends vi{get map(){return this.uniforms.map.value}set map(n){this.uniforms.map.value=n}set alpha(n){this.uniforms.alpha.value=n}get offset(){return this.uniforms.offset.value}get repeat(){return this.uniforms.repeat.value}set chromaKey(n){this.uniforms.keying.value=n?.enabled===!0,n?.enabled&&(typeof n.color=="object"&&"r"in n.color?this.uniforms.color.value.set(n.color.r/255,n.color.g/255,n.color.b/255):this.uniforms.color.value.set(n.color??65280),this.uniforms.similarity.value=n.similarity??.2,this.uniforms.smoothness.value=n.smoothness??.2)}constructor(n){super({transparent:!0,depthTest:!1,depthWrite:!1,uniforms:{map:{value:n?.map},repeat:{value:new Ae(1,1)},offset:{value:new Ae(0,0)},alpha:{value:n?.alpha??1},keying:{value:!1},color:{value:new Pe(65280)},similarity:{value:.2},smoothness:{value:.2},spill:{value:.1}},vertexShader:uM,fragmentShader:hM}),this.chromaKey=n?.chromaKey}};function fM({src:n,withCredentials:t,muted:e,autoplay:s}){const r=document.createElement("video");return r.crossOrigin=t?"use-credentials":"anonymous",r.loop=!0,r.playsInline=!0,r.autoplay=s,r.muted=e,r.preload="metadata",n instanceof MediaStream?r.srcObject=n:r.src=n,r}function pM(n,t,e){const[s,r]=n,[a,l]=t,h=oe.greatArcDistance(n,t),u=Math.sin((1-e)*h)/Math.sin(h),d=Math.sin(e*h)/Math.sin(h),p=u*Math.cos(r)*Math.cos(s)+d*Math.cos(l)*Math.cos(a),m=u*Math.cos(r)*Math.sin(s)+d*Math.cos(l)*Math.sin(a),_=u*Math.sin(r)+d*Math.sin(l);return[Math.atan2(m,p),Math.atan2(_,Math.sqrt(p*p+m*m))]}function mM(n){const t=[n[0]];let e=0;for(let s=1;s<n.length;s++){const r=n[s-1][0]-n[s][0];r>Math.PI?e+=1:r<-Math.PI&&(e-=1),t.push([n[s][0]+e*2*Math.PI,n[s][1]])}return t}function Zp(n){return n.reduce((t,e)=>t.add(e),new q).normalize()}function gM(n){const t=mM(n);let e=0;const s=[];for(let a=0;a<t.length-1;a++){const l=oe.greatArcDistance(t[a],t[a+1])*Ks.SPHERE_RADIUS;s.push(l),e+=l}let r=0;for(let a=0;a<t.length-1;a++){if(r+s[a]>e/2){const l=(e/2-r)/s[a];return pM(t[a],t[a+1],l)}r+=s[a]}return t[Math.round(t.length/2)]}var ba=new q,Xp=new q,uh=new q,Yp=new q,qp=new q,Qp=new q;function _M(n,t,e){ba.copy(e).normalize(),Xp.crossVectors(n,t).normalize(),uh.crossVectors(Xp,n).normalize(),Yp.copy(n).multiplyScalar(-ba.dot(uh)),qp.copy(uh).multiplyScalar(ba.dot(n));const s=new q().addVectors(Yp,qp).normalize();return Qp.crossVectors(s,ba),s.applyAxisAngle(Qp,.01).multiplyScalar(Ks.SPHERE_RADIUS)}var vM=class extends Wp{get threeElement(){return this.element}get threeMesh(){return this.threeElement.children[0]}get video(){return this.type==="videoLayer"?this.threeMesh.material.map.image:null}constructor(n,t,e){super(n,t,e)}is3d(){return!0}createElement(){const n=new dM({alpha:0}),t=new Ir(1,1),e=new pn(t,n);e.userData={[Ne]:this},Object.defineProperty(e,"visible",{enumerable:!0,get:function(){return this.userData[Ne].config.visible},set:function(s){this.userData[Ne].config.visible=s}}),this.element=new zi().add(e),this.type==="videoLayer"&&this.viewer.needsContinuousUpdate(!0)}destroy(){delete this.threeMesh.userData[Ne],this.type==="videoLayer"&&(this.video.pause(),this.viewer.needsContinuousUpdate(!1)),super.destroy()}render(){return this.viewer.renderer.isObjectVisible(this.threeMesh)?this.viewer.dataHelper.sphericalCoordsToViewerCoords(this.state.position):null}update(n){super.update(n);const t=this.threeMesh,e=t.parent,s=t.material;if(oe.isExtendedPosition(this.config.position)){try{this.state.position=this.viewer.dataHelper.cleanPosition(this.config.position)}catch(a){throw new $t(`invalid marker ${this.id} position`,a)}if(!this.config.size)throw new $t(`missing marker ${this.id} size`);this.state.size=this.config.size,t.scale.set(this.config.size.width/100,this.config.size.height/100,1),t.position.set(t.scale.x*(.5-this.state.anchor.x),t.scale.y*(this.state.anchor.y-.5),0),t.rotation.set(0,0,0),this.viewer.dataHelper.sphericalCoordsToVector3(this.state.position,e.position),e.lookAt(0,e.position.y,0),t.rotateY(-this.config.rotation.yaw),t.rotateX(-this.config.rotation.pitch),t.rotateZ(-this.config.rotation.roll);const r=t.geometry.getAttribute("position");this.state.positions3D=[0,1,3,2].map(a=>{const l=new q;return l.fromBufferAttribute(r,a),t.localToWorld(l)})}else{if(this.config.position?.length!==4)throw new $t(`missing marker ${this.id} position`);let r;try{r=this.config.position.map(u=>this.viewer.dataHelper.cleanPosition(u))}catch(u){throw new $t(`invalid marker ${this.id} position`,u)}const a=r.map(u=>this.viewer.dataHelper.sphericalCoordsToVector3(u)),l=Zp(a);this.state.position=this.viewer.dataHelper.vector3ToSphericalCoords(l),this.state.positions3D=a;const h=t.geometry.getAttribute("position");[a[0],a[1],a[3],a[2]].forEach((u,d)=>{h.setX(d,u.x),h.setY(d,u.y),h.setZ(d,u.z)}),h.needsUpdate=!0,this.__setTextureWrap(s)}switch(this.type){case"videoLayer":if(this.definition!==this.config.videoLayer){s.map?.dispose();const r=fM({src:this.config.videoLayer,withCredentials:this.viewer.config.withCredentials(this.config.videoLayer),muted:!0,autoplay:this.config.autoplay??!0}),a=new N0(r);s.map=a,s.alpha=0,r.addEventListener("loadedmetadata",()=>{this.viewer&&(s.alpha=this.config.opacity,oe.isExtendedPosition(this.config.position)||(t.material.userData[Ne]={width:r.videoWidth,height:r.videoHeight},this.__setTextureWrap(s)))},{once:!0}),r.autoplay&&r.play(),this.definition=this.config.videoLayer}else s.alpha=this.config.opacity;break;case"imageLayer":if(this.definition!==this.config.imageLayer){s.map?.dispose();const r=new Je;s.map=r,s.alpha=0,this.viewer.textureLoader.loadImage(this.config.imageLayer).then(a=>{this.viewer&&(oe.isExtendedPosition(this.config.position)||(t.material.userData[Ne]={width:a.width,height:a.height},this.__setTextureWrap(s)),r.image=a,r.anisotropy=4,r.needsUpdate=!0,s.alpha=this.config.opacity,this.viewer.needsUpdate())}),this.definition=this.config.imageLayer}else s.alpha=this.config.opacity;break}s.chromaKey=this.config.chromaKey,t.renderOrder=1e3+this.config.zIndex,t.geometry.boundingBox=null}__setTextureWrap(n){const t=n.userData[Ne];if(!t||!t.height||!t.width){n.repeat.set(1,1),n.offset.set(0,0);return}const e=this.config.position.map(m=>this.viewer.dataHelper.cleanPosition(m)),s=oe.greatArcDistance([e[0].yaw,e[0].pitch],[e[1].yaw,e[1].pitch]),r=oe.greatArcDistance([e[3].yaw,e[3].pitch],[e[2].yaw,e[2].pitch]),a=oe.greatArcDistance([e[1].yaw,e[1].pitch],[e[2].yaw,e[2].pitch]),l=oe.greatArcDistance([e[0].yaw,e[0].pitch],[e[3].yaw,e[3].pitch]),h=(s+r)/(a+l),u=t.width/t.height;let d=0,p=0;h<u?d=u-h:p=1/u-1/h,n.repeat.set(1-d,1-p),n.offset.set(d/2,p/2)}},yM=class extends hh{constructor(n,t,e){super(n,t,e),this.viewportIntersection=!1}get threeElement(){return this.object}isCss3d(){return!0}createElement(){this.element=document.createElement("div"),this.object=new oM(this.element),this.object.userData={[Ne]:this},Object.defineProperty(this.object,"visible",{enumerable:!0,get:function(){return this.userData[Ne].config.visible},set:function(n){this.userData[Ne].config.visible=n}}),this.afterCreateElement()}destroy(){delete this.object.userData[Ne],delete this.object,super.destroy()}render({viewerPosition:n,zoomLevel:t}){const e=this.domElement;if(this.state.size={width:e.offsetWidth,height:e.offsetHeight},this.state.positions3D[0].dot(this.viewer.state.direction)>0&&this.viewportIntersection){const r=this.viewer.dataHelper.sphericalCoordsToViewerCoords(this.state.position);return this.config.elementLayer.updateMarker?.({marker:this,position:r,viewerPosition:n,zoomLevel:t,viewerSize:this.viewer.state.size}),r}else return null}update(n){if(super.update(n),!oe.isExtendedPosition(this.config.position))throw new $t(`missing marker ${this.id} position`);try{this.state.position=this.viewer.dataHelper.cleanPosition(this.config.position)}catch(s){throw new $t(`invalid marker ${this.id} position`,s)}this.state.positions3D=[this.viewer.dataHelper.sphericalCoordsToVector3(this.state.position)];const t=this.threeElement,e=this.domElement;e.classList.add("psv-marker--css3d"),e.childNodes.forEach(s=>s.remove()),e.appendChild(this.config.elementLayer),this.config.elementLayer.style.display="block",t.position.copy(this.state.positions3D[0]).multiplyScalar(100),t.lookAt(0,this.state.positions3D[0].y*100,0),t.rotateY(-this.config.rotation.yaw),t.rotateX(-this.config.rotation.pitch),t.rotateZ(-this.config.rotation.roll)}},EM=class extends Ta{constructor(n,t,e){super(n,t,e)}isNormal(){return!0}createElement(){this.element=document.createElement("div"),this.afterCreateElement()}render(n){const t=super.render(n);return t&&this.type==="element"&&this.config.element.updateMarker?.({marker:this,position:t,viewerPosition:n.viewerPosition,zoomLevel:n.zoomLevel,viewerSize:this.viewer.state.size}),t}update(n){super.update(n);const t=this.domElement;if(this.config.image&&!this.config.size)throw new $t(`missing marker ${this.id} size`);switch(this.config.size?(this.needsUpdateSize=!1,this.state.size=this.config.size,t.style.width=this.config.size.width+"px",t.style.height=this.config.size.height+"px"):this.needsUpdateSize=!0,this.type){case"image":this.definition=this.config.image,t.style.backgroundImage=`url("${this.config.image}")`;break;case"html":this.definition=this.config.html,t.innerHTML=this.config.html;break;case"element":this.definition!==this.config.element&&(this.definition=this.config.element,t.childNodes.forEach(e=>e.remove()),t.appendChild(this.config.element),this.config.element.style.display="block");break}}},xM=class extends hh{constructor(n,t,e){super(n,t,e)}createElement(){this.element=document.createElementNS(wa,"path"),this.element[Ne]=this}isPoly(){return!0}get isPixels(){return this.type==="polygonPixels"||this.type==="polylinePixels"}get isPolygon(){return this.type==="polygon"||this.type==="polygonPixels"}get isPolyline(){return this.type==="polyline"||this.type==="polylinePixels"}get coords(){return this.definition}render(){const n=this.__getAllPolyPositions();if(n[0].length>(this.isPolygon?2:1)){const e=this.viewer.dataHelper.sphericalCoordsToViewerCoords(this.state.position),s=n.filter(r=>r.length>0).map(r=>{let a="M";return a+=r.map(l=>`${l.x-e.x},${l.y-e.y}`).join("L"),this.isPolygon&&(a+="Z"),a}).join(" ");return this.domElement.setAttributeNS(null,"d",s),this.domElement.setAttributeNS(null,"transform",`translate(${e.x} ${e.y})`),e}else return null}update(n){super.update(n);const t=this.domElement;t.classList.add("psv-marker--poly"),this.config.svgStyle?(Object.entries(this.config.svgStyle).forEach(([e,s])=>{t.setAttributeNS(null,oe.dasherize(e),s)}),this.isPolyline&&!this.config.svgStyle.fill&&t.setAttributeNS(null,"fill","none")):this.isPolygon?t.setAttributeNS(null,"fill","rgba(0,0,0,0.5)"):this.isPolyline&&(t.setAttributeNS(null,"fill","none"),t.setAttributeNS(null,"stroke","rgb(0,0,0)"));try{let e=this.config[this.type];if(!Array.isArray(e[0])&&typeof e[0]!="object")for(let s=0;s<e.length;s++)e.splice(s,2,[e[s],e[s+1]]);if(!Array.isArray(e[0][0])&&typeof e[0][0]!="object"&&(e=[e]),this.isPolyline&&e.length>1)throw new $t("polylines cannot have holes");this.isPixels?this.definition=e.map(s=>s.map(r=>{let a;return oe.isExtendedPosition(r)?a=this.viewer.dataHelper.cleanPosition(r):a=this.viewer.dataHelper.textureCoordsToSphericalCoords({textureX:r[0],textureY:r[1]}),[a.yaw,a.pitch]})):this.definition=e.map(s=>s.map(r=>{let a;return oe.isExtendedPosition(r)?a=this.viewer.dataHelper.cleanPosition(r):a=this.viewer.dataHelper.cleanPosition({yaw:r[0],pitch:r[1]}),[a.yaw,a.pitch]}))}catch(e){throw new $t(`invalid marker ${this.id} position`,e)}if(this.positions3D=this.coords.map(e=>e.map(s=>this.viewer.dataHelper.sphericalCoordsToVector3({yaw:s[0],pitch:s[1]}))),this.isPolygon){const e=Zp(this.positions3D[0]);this.state.position=this.viewer.dataHelper.vector3ToSphericalCoords(e)}else{const e=gM(this.coords[0]);this.state.position={yaw:e[0],pitch:e[1]}}this.state.positions3D=this.positions3D[0]}__getAllPolyPositions(){return this.positions3D.map(n=>this.__getPolyPositions(n))}__getPolyPositions(n){const t=n.length,e=n.map(r=>({vector:r,visible:r.dot(this.viewer.state.direction)>0})),s=[];return e.forEach((r,a)=>{r.visible||[a===0?e[t-1]:e[a-1],a===t-1?e[0]:e[a+1]].forEach(h=>{h.visible&&s.push({visible:h.vector,invisible:r.vector,index:a})})}),s.reverse().forEach(r=>{e.splice(r.index,0,{vector:_M(r.visible,r.invisible,this.viewer.state.direction),visible:!0})}),e.filter(r=>r.visible).map(r=>this.viewer.dataHelper.vector3ToViewerCoords(r.vector))}},wM=class extends Ta{get svgElement(){return this.domElement.firstElementChild}constructor(n,t,e){super(n,t,e)}isSvg(){return!0}createElement(){const n=this.type==="square"?"rect":this.type,t=document.createElementNS(wa,n);this.element=document.createElementNS(wa,"svg"),this.element.appendChild(t),this.afterCreateElement()}update(n){super.update(n);const t=this.svgElement;switch(this.needsUpdateSize=!0,this.type){case"square":this.definition={x:0,y:0,width:this.config.square,height:this.config.square};break;case"rect":Array.isArray(this.config.rect)?this.definition={x:0,y:0,width:this.config.rect[0],height:this.config.rect[1]}:this.definition={x:0,y:0,width:this.config.rect.width,height:this.config.rect.height};break;case"circle":this.definition={cx:this.config.circle,cy:this.config.circle,r:this.config.circle};break;case"ellipse":Array.isArray(this.config.ellipse)?this.definition={cx:this.config.ellipse[0],cy:this.config.ellipse[1],rx:this.config.ellipse[0],ry:this.config.ellipse[1]}:this.definition={cx:this.config.ellipse.rx,cy:this.config.ellipse.ry,rx:this.config.ellipse.rx,ry:this.config.ellipse.ry};break;case"path":this.definition={d:this.config.path};break}Object.entries(this.definition).forEach(([e,s])=>{t.setAttributeNS(null,e,s)}),this.config.svgStyle?Object.entries(this.config.svgStyle).forEach(([e,s])=>{t.setAttributeNS(null,oe.dasherize(e),s)}):t.setAttributeNS(null,"fill","rgba(0,0,0,0.5)")}},SM=oe.getConfigParser({clickEventOnMarker:!1,gotoMarkerSpeed:"8rpm",markers:null,defaultHoverScale:null},{defaultHoverScale(n){return n?(n===!0&&(n=lh),typeof n=="number"&&(n={amount:n}),{...lh,...n}):null}});function MM(n){switch(ch(n,!1)){case"image":case"html":case"element":return EM;case"imageLayer":case"videoLayer":return vM;case"elementLayer":return yM;case"polygon":case"polyline":case"polygonPixels":case"polylinePixels":return xM;case"square":case"rect":case"circle":case"ellipse":case"path":return wM;default:throw new $t("invalid marker type")}}var eo=class Kg extends dp{constructor(t,e){super(t,e),this.markers={},this.state={allVisible:!0,showAllTooltips:!1,currentMarker:null,hoveringMarker:null,needsReRender:!1,lastClientX:null,lastClientY:null},this.container=document.createElement("div"),this.container.className="psv-markers",this.viewer.container.appendChild(this.container),this.container.addEventListener("contextmenu",s=>s.preventDefault()),this.svgContainer=document.createElementNS(wa,"svg"),this.svgContainer.setAttribute("class","psv-markers-svg-container"),this.container.appendChild(this.svgContainer),this.css3DContainer=new cM(t),this.container.appendChild(this.css3DContainer.element),this.container.addEventListener("mouseenter",this,!0),this.container.addEventListener("mouseleave",this,!0),this.container.addEventListener("mousemove",this,!0)}static withConfig(t){return[Kg,t]}init(){super.init(),oe.checkStylesheet(this.viewer.container,"markers-plugin"),this.viewer.addEventListener(jt.ClickEvent.type,this),this.viewer.addEventListener(jt.DoubleClickEvent.type,this),this.viewer.addEventListener(jt.RenderEvent.type,this),this.viewer.addEventListener(jt.ConfigChangedEvent.type,this),this.viewer.addEventListener(jt.ObjectEnterEvent.type,this),this.viewer.addEventListener(jt.ObjectHoverEvent.type,this),this.viewer.addEventListener(jt.ObjectLeaveEvent.type,this),this.viewer.addEventListener(jt.ReadyEvent.type,this,{once:!0})}destroy(){this.clearMarkers(!1),this.viewer.unobserveObjects(Ne),this.viewer.removeEventListener(jt.ClickEvent.type,this),this.viewer.removeEventListener(jt.DoubleClickEvent.type,this),this.viewer.removeEventListener(jt.RenderEvent.type,this),this.viewer.removeEventListener(jt.ObjectEnterEvent.type,this),this.viewer.removeEventListener(jt.ObjectHoverEvent.type,this),this.viewer.removeEventListener(jt.ObjectLeaveEvent.type,this),this.viewer.removeEventListener(jt.ReadyEvent.type,this),this.css3DContainer.destroy(),this.viewer.container.removeChild(this.container),super.destroy()}handleEvent(t){switch(t.type){case jt.ReadyEvent.type:this.config.markers&&(this.setMarkers(this.config.markers),delete this.config.markers);break;case jt.RenderEvent.type:this.renderMarkers();break;case jt.ClickEvent.type:this.__onClick(t,!1);break;case jt.DoubleClickEvent.type:this.__onClick(t,!0);break;case jt.ObjectEnterEvent.type:case jt.ObjectLeaveEvent.type:case jt.ObjectHoverEvent.type:if(t.userDataKey===Ne){const e=t.originalEvent,s=t.object.userData[Ne];switch(t.type){case jt.ObjectEnterEvent.type:s.config.style?.cursor?this.viewer.setCursor(s.config.style.cursor):(s.config.tooltip||s.config.content)&&this.viewer.setCursor("pointer"),this.__onEnterMarker(e,s);break;case jt.ObjectLeaveEvent.type:this.viewer.setCursor(null),this.__onLeaveMarker(s);break;case jt.ObjectHoverEvent.type:this.__onHoverMarker(e,s);break}}break;case"mouseenter":{const e=this.__getTargetMarker(oe.getEventTarget(t));this.__onEnterMarker(t,e);break}case"mouseleave":{const e=this.__getTargetMarker(oe.getEventTarget(t));this.__onLeaveMarker(e);break}case"mousemove":{const e=this.__getTargetMarker(oe.getEventTarget(t),!0);this.__onHoverMarker(t,e);break}}}toggleAllMarkers(){this.state.allVisible?this.hideAllMarkers():this.showAllMarkers()}showAllMarkers(){this.state.allVisible=!0,Object.values(this.markers).forEach(t=>{t.config.visible=!0}),this.renderMarkers(),this.dispatchEvent(new Kr)}hideAllMarkers(){this.state.allVisible=!1,Object.values(this.markers).forEach(t=>{t.config.visible=!1}),this.renderMarkers(),this.dispatchEvent(new Jr)}toggleAllTooltips(){this.state.showAllTooltips?this.hideAllTooltips():this.showAllTooltips()}showAllTooltips(){this.state.showAllTooltips=!0,Object.values(this.markers).forEach(t=>{t.state.staticTooltip=!0,t.showTooltip()})}hideAllTooltips(){this.state.showAllTooltips=!1,Object.values(this.markers).forEach(t=>{t.state.staticTooltip=!1,t.hideTooltip()})}getNbMarkers(){return Object.keys(this.markers).length}getMarkers(){return Object.values(this.markers)}addMarker(t,e=!0){if(this.markers[t.id])throw new $t(`marker "${t.id}" already exists`);const s=new(MM(t))(this.viewer,this,t);s.isPoly()?this.svgContainer.appendChild(s.domElement):s.isCss3d()?this.css3DContainer.addObject(s):s.is3d()?this.viewer.renderer.addObject(s.threeElement):this.container.appendChild(s.domElement),this.markers[s.id]=s,this.state.showAllTooltips&&(s.state.staticTooltip=!0),e&&this.__afterChangeMarkers()}getMarker(t){const e=typeof t=="object"?t.id:t;if(!this.markers[e])throw new $t(`cannot find marker "${e}"`);return this.markers[e]}getCurrentMarker(){return this.state.currentMarker}updateMarker(t,e=!0){const s=this.getMarker(t.id);s.update(t),e&&(this.__afterChangeMarkers(),(s===this.state.hoveringMarker&&s.config.tooltip?.trigger==="hover"||s.state.staticTooltip)&&s.showTooltip(this.state.lastClientX,this.state.lastClientY,!0))}removeMarker(t,e=!0){const s=this.getMarker(t);s.isPoly()?this.svgContainer.removeChild(s.domElement):s.isCss3d()?this.css3DContainer.removeObject(s):s.is3d()?this.viewer.renderer.removeObject(s.threeElement):this.container.removeChild(s.domElement),this.state.hoveringMarker===s&&(this.state.hoveringMarker=null),this.state.currentMarker===s&&(this.state.currentMarker=null),s.destroy(),delete this.markers[s.id],e&&this.__afterChangeMarkers()}removeMarkers(t,e=!0){t.forEach(s=>this.removeMarker(s,!1)),e&&this.__afterChangeMarkers()}setMarkers(t,e=!0){this.clearMarkers(!1),t?.forEach(s=>{this.addMarker(s,!1)}),e&&this.__afterChangeMarkers()}clearMarkers(t=!0){Object.keys(this.markers).forEach(e=>{this.removeMarker(e,!1)}),t&&this.__afterChangeMarkers()}gotoMarker(t,e=this.config.gotoMarkerSpeed){const s=this.getMarker(t);return e?this.viewer.animate({...s.state.position,zoom:s.config.zoomLvl,speed:e}).then(()=>{this.dispatchEvent(new ah(s))}):(this.viewer.rotate(s.state.position),oe.isNil(s.config.zoomLvl)||this.viewer.zoom(s.config.zoomLvl),this.dispatchEvent(new ah(s)),Promise.resolve())}hideMarker(t){this.toggleMarker(t,!1)}showMarker(t){this.toggleMarker(t,!0)}showMarkerTooltip(t){const e=this.getMarker(t);e.state.staticTooltip=!0,e.showTooltip()}hideMarkerTooltip(t){const e=this.getMarker(t);e.state.staticTooltip=!1,e.hideTooltip()}toggleMarker(t,e){const s=this.getMarker(t);s.config.visible=oe.isNil(e)?!s.config.visible:e,this.renderMarkers()}showMarkerPanel(t){const e=this.getMarker(t);e.config.content?this.viewer.panel.show({id:to,content:e.config.content}):this.hideMarkerPanel()}hideMarkerPanel(){this.viewer.panel.hide(to)}toggleMarkersList(){this.viewer.panel.isVisible(nr)?this.hideMarkersList():this.showMarkersList()}showMarkersList(){let t=[];Object.values(this.markers).forEach(s=>{s.config.visible&&!s.config.hideList&&t.push(s)});const e=new zp(t);this.dispatchEvent(e),t=e.markers,this.viewer.panel.show({id:nr,content:sM(t,this.viewer.config.lang[$r.id]),noMargin:!0,clickHandler:s=>{const r=oe.getClosest(s,".psv-panel-menu-item"),a=r?r.dataset[Ne]:void 0;if(a){const l=this.getMarker(a);this.dispatchEvent(new Ip(l)),this.gotoMarker(l.id),this.hideMarkersList()}}})}hideMarkersList(){this.viewer.panel.hide(nr)}renderMarkers(){if(this.state.needsReRender){this.state.needsReRender=!1;return}const t=this.viewer.getZoomLevel(),e=this.viewer.getPosition(),s=this.state.hoveringMarker;Object.values(this.markers).forEach(r=>{let a=r.config.visible,l=!1,h=null;a&&(h=r.render({viewerPosition:e,zoomLevel:t,hoveringMarker:s}),a=!!h),l=r.state.visible!==a,r.state.visible=a,r.state.position2D=h,r.domElement&&oe.toggleClass(r.domElement,"psv-marker--visible",a),a?r.state.staticTooltip?r.showTooltip():r!==this.state.hoveringMarker&&r.hideTooltip():r.hideTooltip(),l&&(this.dispatchEvent(new Sp(r,a)),(r.is3d()||r.isCss3d())&&(this.state.needsReRender=!0))}),this.state.needsReRender&&this.viewer.needsUpdate()}__getTargetMarker(t,e=!1){if(t instanceof Node){const s=e?oe.getClosest(t,".psv-marker"):t;return s?s[Ne]:void 0}else return Array.isArray(t)?t.map(s=>s.userData[Ne]).filter(s=>!!s).sort((s,r)=>r.config.zIndex-s.config.zIndex)[0]:null}__onEnterMarker(t,e){e&&(this.state.hoveringMarker=e,this.state.lastClientX=t.clientX,this.state.lastClientY=t.clientY,this.dispatchEvent(new Cp(e)),e instanceof Ta&&e.applyScale({zoomLevel:this.viewer.getZoomLevel(),viewerPosition:this.viewer.getPosition(),mouseover:!0}),!e.state.staticTooltip&&e.config.tooltip?.trigger==="hover"&&e.showTooltip(t.clientX,t.clientY))}__onLeaveMarker(t){t&&(this.dispatchEvent(new bp(t)),t instanceof Ta&&t.applyScale({zoomLevel:this.viewer.getZoomLevel(),viewerPosition:this.viewer.getPosition(),mouseover:!1}),this.state.hoveringMarker=null,!t.state.staticTooltip&&t.config.tooltip?.trigger==="hover"?t.hideTooltip():t.state.staticTooltip&&t.showTooltip())}__onHoverMarker(t,e){e&&(this.state.lastClientX=t.clientX,this.state.lastClientY=t.clientY,(e.isPoly()||e.is3d()||e.isCss3d())&&e.config.tooltip?.trigger==="hover"&&e.showTooltip(t.clientX,t.clientY))}__onClick(t,e){const s=this.__getTargetMarker(t.data.objects),a=this.__getTargetMarker(t.data.target,!0)||s;this.state.currentMarker&&this.state.currentMarker!==a&&(this.dispatchEvent(new kp(this.state.currentMarker)),this.viewer.panel.hide(to),!this.state.showAllTooltips&&this.state.currentMarker.config.tooltip?.trigger==="click"&&this.hideMarkerTooltip(this.state.currentMarker.id),this.state.currentMarker=null),a&&(this.state.currentMarker=a,this.dispatchEvent(new Rp(a,e,t.data.rightclick)),this.config.clickEventOnMarker?t.data.marker=a:t.stopImmediatePropagation(),this.markers[a.id]&&!t.data.rightclick&&(a.config.tooltip?.trigger==="click"?a.tooltip?this.hideMarkerTooltip(a.id):this.showMarkerTooltip(a.id):this.showMarkerPanel(a.id)))}__afterChangeMarkers(){this.__refreshUi(),this.__checkObjectsObserver(),this.viewer.needsUpdate(),this.dispatchEvent(new Np(this.getMarkers()))}__refreshUi(){const t=Object.values(this.markers).filter(e=>!e.config.hideList).length;t===0?(this.viewer.panel.hide(to),this.viewer.panel.hide(nr)):this.viewer.panel.isVisible(nr)?this.showMarkersList():this.viewer.panel.isVisible(to)&&(this.state.currentMarker?this.showMarkerPanel(this.state.currentMarker.id):this.viewer.panel.hide()),this.viewer.navbar.getButton($r.id,!1)?.toggle(t>0),this.viewer.navbar.getButton(Sa.id,!1)?.toggle(t>0)}__checkObjectsObserver(){Object.values(this.markers).some(e=>e.is3d())?this.viewer.observeObjects(Ne):this.viewer.unobserveObjects(Ne)}};eo.id="markers",eo.VERSION="5.14.0",eo.configParser=SM,eo.readonlyOptions=["markers"];var jp=eo;xi.lang[$r.id]="Markers",xi.lang[Sa.id]="Markers list",ih($r,"caption:left"),ih(Sa,"caption:left");var Jp=(n=>(n[n.Manual=0]="Manual",n[n.Intelligent=1]="Intelligent",n[n.RTK=2]="RTK",n[n.RealTimeTrack=3]="RealTimeTrack",n[n.Drone=4]="Drone",n))(Jp||{}),ze=(n=>(n[n.StoreMissParams=1e4]="StoreMissParams",n[n.StoreNoCSTree=10001]="StoreNoCSTree",n[n.StoreNoRecord=10002]="StoreNoRecord",n[n.StoreInvRecord=10003]="StoreInvRecord",n[n.StoreRecordOutCSTree=10004]="StoreRecordOutCSTree",n[n.StoreNoCSByID=10005]="StoreNoCSByID",n[n.StoreSelectNoRecord=10006]="StoreSelectNoRecord",n[n.StoreSelectNoPoint=10007]="StoreSelectNoPoint",n[n.StoreSelectNoMarker=10008]="StoreSelectNoMarker",n[n.StoreSelectedMarker=10009]="StoreSelectedMarker",n[n.StroeNoModelValue=10010]="StroeNoModelValue",n[n.StoreNoProjectDetail=10011]="StoreNoProjectDetail",n[n.ViewModeNoAuto=10012]="ViewModeNoAuto",n))(ze||{}),Aa=(n=>(n[n.NUMBER=0]="NUMBER",n[n.DISTANCE=1]="DISTANCE",n))(Aa||{}),dh=(n=>(n.pin="pin",n))(dh||{}),Yi=(n=>(n[n.Forward=1]="Forward",n[n.Stationary=0]="Stationary",n[n.Backward=-1]="Backward",n))(Yi||{}),ir=(n=>(n[n.Auto=0]="Auto",n[n.FollowRoad=1]="FollowRoad",n[n.FollowView=2]="FollowView",n))(ir||{});class gs{id="";img="";patrolId="";coordinate=new xt.Coordinate;point=new xt.Point;position;placeholderImg;uxTime;panorama;color;index;rawIndex;constructor(t){this.setState(t)}setState(t){Object.assign(this,t)}static parsedModel(t,e,s,r){const{x:a,y:l,z:h,lon:u,lat:d,alt:p,p:m,img:_,patroIndex:E,...w}=t,S=Number(E)||0,v={...w,rawIndex:S,img:_,coordinate:e},g=xt.Point.toRadians(Number(m)||0),R=new xt.Point({x:a,y:l,z:h,lon:u,lat:d,alt:p,yaw:g});return _&&(v.panorama=L_(_,s,r)),(R.hasXYZ||R.hasXYZ)&&(v.point=R),v}static toSphericalCoord(t,e){const s=e.x-t.x,r=e.y-t.y,a=Math.hypot(s,r);if(a<1e-6)return{d:0,yaw:0,pitch:0};const l=(r<0?-Math.acos(s/a):Math.acos(s/a))-t.yaw,h=-Math.atan(1800/a);return{d:a,yaw:l,pitch:h}}projection(t,e){if(!this.point)return;const s=new gs(this),r=s.point?.projection(t.srcToDstRelativeMap,t.srcCoordinate,t.dstCoordinate),a=s.point?.projection(e.srcToDstRelativeMap,e.srcCoordinate,e.dstCoordinate);if(!(!r||!a))return s.coordinate=t.dstCoordinate,s.point=r,s.position=a,s}}class no{id="";pointId="";patrolId="";coordinateId=0;coordinate=new xt.Coordinate;point=new xt.Point;relativePosition;perspective;photoTime;panorama;markerIcon;markerType;data;constructor(t){this.setState(t)}setState(t){Object.assign(this,t)}static parsedModel(t,e){const{coordinateId:s,relativePosition:r,perspective:a,point:l}=t,h={...t};if(s&&e){let u=e?.findCsById(s);if(xt.RelativeMap.isValid(r)){const d=xt.RelativeMap.toParse(r);u=new xt.Coordinate({parent:u,type:xt.CoordinateType.Data,relativeMap:d})}h.coordinate=u}return a&&(h.perspective=xt.Position.toParse(a)),l&&(h.point=xt.Point.toParse(l)),h}projection(t){if(!this.coordinate||!this.point)return;const e=this.coordinate.getDestRelativeMap(t);if(!e)return;const s=new no(this),r=s.point?.projection(e,s.coordinate,t);if(r)return s.point=r,s.coordinate=t,s}}/**
|
|
3947
|
+
`,dM=class extends vi{get map(){return this.uniforms.map.value}set map(n){this.uniforms.map.value=n}set alpha(n){this.uniforms.alpha.value=n}get offset(){return this.uniforms.offset.value}get repeat(){return this.uniforms.repeat.value}set chromaKey(n){this.uniforms.keying.value=n?.enabled===!0,n?.enabled&&(typeof n.color=="object"&&"r"in n.color?this.uniforms.color.value.set(n.color.r/255,n.color.g/255,n.color.b/255):this.uniforms.color.value.set(n.color??65280),this.uniforms.similarity.value=n.similarity??.2,this.uniforms.smoothness.value=n.smoothness??.2)}constructor(n){super({transparent:!0,depthTest:!1,depthWrite:!1,uniforms:{map:{value:n?.map},repeat:{value:new Ae(1,1)},offset:{value:new Ae(0,0)},alpha:{value:n?.alpha??1},keying:{value:!1},color:{value:new Pe(65280)},similarity:{value:.2},smoothness:{value:.2},spill:{value:.1}},vertexShader:uM,fragmentShader:hM}),this.chromaKey=n?.chromaKey}};function fM({src:n,withCredentials:t,muted:e,autoplay:s}){const r=document.createElement("video");return r.crossOrigin=t?"use-credentials":"anonymous",r.loop=!0,r.playsInline=!0,r.autoplay=s,r.muted=e,r.preload="metadata",n instanceof MediaStream?r.srcObject=n:r.src=n,r}function pM(n,t,e){const[s,r]=n,[a,l]=t,h=oe.greatArcDistance(n,t),u=Math.sin((1-e)*h)/Math.sin(h),d=Math.sin(e*h)/Math.sin(h),p=u*Math.cos(r)*Math.cos(s)+d*Math.cos(l)*Math.cos(a),m=u*Math.cos(r)*Math.sin(s)+d*Math.cos(l)*Math.sin(a),_=u*Math.sin(r)+d*Math.sin(l);return[Math.atan2(m,p),Math.atan2(_,Math.sqrt(p*p+m*m))]}function mM(n){const t=[n[0]];let e=0;for(let s=1;s<n.length;s++){const r=n[s-1][0]-n[s][0];r>Math.PI?e+=1:r<-Math.PI&&(e-=1),t.push([n[s][0]+e*2*Math.PI,n[s][1]])}return t}function Zp(n){return n.reduce((t,e)=>t.add(e),new q).normalize()}function gM(n){const t=mM(n);let e=0;const s=[];for(let a=0;a<t.length-1;a++){const l=oe.greatArcDistance(t[a],t[a+1])*Ks.SPHERE_RADIUS;s.push(l),e+=l}let r=0;for(let a=0;a<t.length-1;a++){if(r+s[a]>e/2){const l=(e/2-r)/s[a];return pM(t[a],t[a+1],l)}r+=s[a]}return t[Math.round(t.length/2)]}var ba=new q,Xp=new q,uh=new q,Yp=new q,qp=new q,Qp=new q;function _M(n,t,e){ba.copy(e).normalize(),Xp.crossVectors(n,t).normalize(),uh.crossVectors(Xp,n).normalize(),Yp.copy(n).multiplyScalar(-ba.dot(uh)),qp.copy(uh).multiplyScalar(ba.dot(n));const s=new q().addVectors(Yp,qp).normalize();return Qp.crossVectors(s,ba),s.applyAxisAngle(Qp,.01).multiplyScalar(Ks.SPHERE_RADIUS)}var vM=class extends Wp{get threeElement(){return this.element}get threeMesh(){return this.threeElement.children[0]}get video(){return this.type==="videoLayer"?this.threeMesh.material.map.image:null}constructor(n,t,e){super(n,t,e)}is3d(){return!0}createElement(){const n=new dM({alpha:0}),t=new Ir(1,1),e=new pn(t,n);e.userData={[Ne]:this},Object.defineProperty(e,"visible",{enumerable:!0,get:function(){return this.userData[Ne].config.visible},set:function(s){this.userData[Ne].config.visible=s}}),this.element=new zi().add(e),this.type==="videoLayer"&&this.viewer.needsContinuousUpdate(!0)}destroy(){delete this.threeMesh.userData[Ne],this.type==="videoLayer"&&(this.video.pause(),this.viewer.needsContinuousUpdate(!1)),super.destroy()}render(){return this.viewer.renderer.isObjectVisible(this.threeMesh)?this.viewer.dataHelper.sphericalCoordsToViewerCoords(this.state.position):null}update(n){super.update(n);const t=this.threeMesh,e=t.parent,s=t.material;if(oe.isExtendedPosition(this.config.position)){try{this.state.position=this.viewer.dataHelper.cleanPosition(this.config.position)}catch(a){throw new $t(`invalid marker ${this.id} position`,a)}if(!this.config.size)throw new $t(`missing marker ${this.id} size`);this.state.size=this.config.size,t.scale.set(this.config.size.width/100,this.config.size.height/100,1),t.position.set(t.scale.x*(.5-this.state.anchor.x),t.scale.y*(this.state.anchor.y-.5),0),t.rotation.set(0,0,0),this.viewer.dataHelper.sphericalCoordsToVector3(this.state.position,e.position),e.lookAt(0,e.position.y,0),t.rotateY(-this.config.rotation.yaw),t.rotateX(-this.config.rotation.pitch),t.rotateZ(-this.config.rotation.roll);const r=t.geometry.getAttribute("position");this.state.positions3D=[0,1,3,2].map(a=>{const l=new q;return l.fromBufferAttribute(r,a),t.localToWorld(l)})}else{if(this.config.position?.length!==4)throw new $t(`missing marker ${this.id} position`);let r;try{r=this.config.position.map(u=>this.viewer.dataHelper.cleanPosition(u))}catch(u){throw new $t(`invalid marker ${this.id} position`,u)}const a=r.map(u=>this.viewer.dataHelper.sphericalCoordsToVector3(u)),l=Zp(a);this.state.position=this.viewer.dataHelper.vector3ToSphericalCoords(l),this.state.positions3D=a;const h=t.geometry.getAttribute("position");[a[0],a[1],a[3],a[2]].forEach((u,d)=>{h.setX(d,u.x),h.setY(d,u.y),h.setZ(d,u.z)}),h.needsUpdate=!0,this.__setTextureWrap(s)}switch(this.type){case"videoLayer":if(this.definition!==this.config.videoLayer){s.map?.dispose();const r=fM({src:this.config.videoLayer,withCredentials:this.viewer.config.withCredentials(this.config.videoLayer),muted:!0,autoplay:this.config.autoplay??!0}),a=new N0(r);s.map=a,s.alpha=0,r.addEventListener("loadedmetadata",()=>{this.viewer&&(s.alpha=this.config.opacity,oe.isExtendedPosition(this.config.position)||(t.material.userData[Ne]={width:r.videoWidth,height:r.videoHeight},this.__setTextureWrap(s)))},{once:!0}),r.autoplay&&r.play(),this.definition=this.config.videoLayer}else s.alpha=this.config.opacity;break;case"imageLayer":if(this.definition!==this.config.imageLayer){s.map?.dispose();const r=new Je;s.map=r,s.alpha=0,this.viewer.textureLoader.loadImage(this.config.imageLayer).then(a=>{this.viewer&&(oe.isExtendedPosition(this.config.position)||(t.material.userData[Ne]={width:a.width,height:a.height},this.__setTextureWrap(s)),r.image=a,r.anisotropy=4,r.needsUpdate=!0,s.alpha=this.config.opacity,this.viewer.needsUpdate())}),this.definition=this.config.imageLayer}else s.alpha=this.config.opacity;break}s.chromaKey=this.config.chromaKey,t.renderOrder=1e3+this.config.zIndex,t.geometry.boundingBox=null}__setTextureWrap(n){const t=n.userData[Ne];if(!t||!t.height||!t.width){n.repeat.set(1,1),n.offset.set(0,0);return}const e=this.config.position.map(m=>this.viewer.dataHelper.cleanPosition(m)),s=oe.greatArcDistance([e[0].yaw,e[0].pitch],[e[1].yaw,e[1].pitch]),r=oe.greatArcDistance([e[3].yaw,e[3].pitch],[e[2].yaw,e[2].pitch]),a=oe.greatArcDistance([e[1].yaw,e[1].pitch],[e[2].yaw,e[2].pitch]),l=oe.greatArcDistance([e[0].yaw,e[0].pitch],[e[3].yaw,e[3].pitch]),h=(s+r)/(a+l),u=t.width/t.height;let d=0,p=0;h<u?d=u-h:p=1/u-1/h,n.repeat.set(1-d,1-p),n.offset.set(d/2,p/2)}},yM=class extends hh{constructor(n,t,e){super(n,t,e),this.viewportIntersection=!1}get threeElement(){return this.object}isCss3d(){return!0}createElement(){this.element=document.createElement("div"),this.object=new oM(this.element),this.object.userData={[Ne]:this},Object.defineProperty(this.object,"visible",{enumerable:!0,get:function(){return this.userData[Ne].config.visible},set:function(n){this.userData[Ne].config.visible=n}}),this.afterCreateElement()}destroy(){delete this.object.userData[Ne],delete this.object,super.destroy()}render({viewerPosition:n,zoomLevel:t}){const e=this.domElement;if(this.state.size={width:e.offsetWidth,height:e.offsetHeight},this.state.positions3D[0].dot(this.viewer.state.direction)>0&&this.viewportIntersection){const r=this.viewer.dataHelper.sphericalCoordsToViewerCoords(this.state.position);return this.config.elementLayer.updateMarker?.({marker:this,position:r,viewerPosition:n,zoomLevel:t,viewerSize:this.viewer.state.size}),r}else return null}update(n){if(super.update(n),!oe.isExtendedPosition(this.config.position))throw new $t(`missing marker ${this.id} position`);try{this.state.position=this.viewer.dataHelper.cleanPosition(this.config.position)}catch(s){throw new $t(`invalid marker ${this.id} position`,s)}this.state.positions3D=[this.viewer.dataHelper.sphericalCoordsToVector3(this.state.position)];const t=this.threeElement,e=this.domElement;e.classList.add("psv-marker--css3d"),e.childNodes.forEach(s=>s.remove()),e.appendChild(this.config.elementLayer),this.config.elementLayer.style.display="block",t.position.copy(this.state.positions3D[0]).multiplyScalar(100),t.lookAt(0,this.state.positions3D[0].y*100,0),t.rotateY(-this.config.rotation.yaw),t.rotateX(-this.config.rotation.pitch),t.rotateZ(-this.config.rotation.roll)}},EM=class extends Ta{constructor(n,t,e){super(n,t,e)}isNormal(){return!0}createElement(){this.element=document.createElement("div"),this.afterCreateElement()}render(n){const t=super.render(n);return t&&this.type==="element"&&this.config.element.updateMarker?.({marker:this,position:t,viewerPosition:n.viewerPosition,zoomLevel:n.zoomLevel,viewerSize:this.viewer.state.size}),t}update(n){super.update(n);const t=this.domElement;if(this.config.image&&!this.config.size)throw new $t(`missing marker ${this.id} size`);switch(this.config.size?(this.needsUpdateSize=!1,this.state.size=this.config.size,t.style.width=this.config.size.width+"px",t.style.height=this.config.size.height+"px"):this.needsUpdateSize=!0,this.type){case"image":this.definition=this.config.image,t.style.backgroundImage=`url("${this.config.image}")`;break;case"html":this.definition=this.config.html,t.innerHTML=this.config.html;break;case"element":this.definition!==this.config.element&&(this.definition=this.config.element,t.childNodes.forEach(e=>e.remove()),t.appendChild(this.config.element),this.config.element.style.display="block");break}}},xM=class extends hh{constructor(n,t,e){super(n,t,e)}createElement(){this.element=document.createElementNS(wa,"path"),this.element[Ne]=this}isPoly(){return!0}get isPixels(){return this.type==="polygonPixels"||this.type==="polylinePixels"}get isPolygon(){return this.type==="polygon"||this.type==="polygonPixels"}get isPolyline(){return this.type==="polyline"||this.type==="polylinePixels"}get coords(){return this.definition}render(){const n=this.__getAllPolyPositions();if(n[0].length>(this.isPolygon?2:1)){const e=this.viewer.dataHelper.sphericalCoordsToViewerCoords(this.state.position),s=n.filter(r=>r.length>0).map(r=>{let a="M";return a+=r.map(l=>`${l.x-e.x},${l.y-e.y}`).join("L"),this.isPolygon&&(a+="Z"),a}).join(" ");return this.domElement.setAttributeNS(null,"d",s),this.domElement.setAttributeNS(null,"transform",`translate(${e.x} ${e.y})`),e}else return null}update(n){super.update(n);const t=this.domElement;t.classList.add("psv-marker--poly"),this.config.svgStyle?(Object.entries(this.config.svgStyle).forEach(([e,s])=>{t.setAttributeNS(null,oe.dasherize(e),s)}),this.isPolyline&&!this.config.svgStyle.fill&&t.setAttributeNS(null,"fill","none")):this.isPolygon?t.setAttributeNS(null,"fill","rgba(0,0,0,0.5)"):this.isPolyline&&(t.setAttributeNS(null,"fill","none"),t.setAttributeNS(null,"stroke","rgb(0,0,0)"));try{let e=this.config[this.type];if(!Array.isArray(e[0])&&typeof e[0]!="object")for(let s=0;s<e.length;s++)e.splice(s,2,[e[s],e[s+1]]);if(!Array.isArray(e[0][0])&&typeof e[0][0]!="object"&&(e=[e]),this.isPolyline&&e.length>1)throw new $t("polylines cannot have holes");this.isPixels?this.definition=e.map(s=>s.map(r=>{let a;return oe.isExtendedPosition(r)?a=this.viewer.dataHelper.cleanPosition(r):a=this.viewer.dataHelper.textureCoordsToSphericalCoords({textureX:r[0],textureY:r[1]}),[a.yaw,a.pitch]})):this.definition=e.map(s=>s.map(r=>{let a;return oe.isExtendedPosition(r)?a=this.viewer.dataHelper.cleanPosition(r):a=this.viewer.dataHelper.cleanPosition({yaw:r[0],pitch:r[1]}),[a.yaw,a.pitch]}))}catch(e){throw new $t(`invalid marker ${this.id} position`,e)}if(this.positions3D=this.coords.map(e=>e.map(s=>this.viewer.dataHelper.sphericalCoordsToVector3({yaw:s[0],pitch:s[1]}))),this.isPolygon){const e=Zp(this.positions3D[0]);this.state.position=this.viewer.dataHelper.vector3ToSphericalCoords(e)}else{const e=gM(this.coords[0]);this.state.position={yaw:e[0],pitch:e[1]}}this.state.positions3D=this.positions3D[0]}__getAllPolyPositions(){return this.positions3D.map(n=>this.__getPolyPositions(n))}__getPolyPositions(n){const t=n.length,e=n.map(r=>({vector:r,visible:r.dot(this.viewer.state.direction)>0})),s=[];return e.forEach((r,a)=>{r.visible||[a===0?e[t-1]:e[a-1],a===t-1?e[0]:e[a+1]].forEach(h=>{h.visible&&s.push({visible:h.vector,invisible:r.vector,index:a})})}),s.reverse().forEach(r=>{e.splice(r.index,0,{vector:_M(r.visible,r.invisible,this.viewer.state.direction),visible:!0})}),e.filter(r=>r.visible).map(r=>this.viewer.dataHelper.vector3ToViewerCoords(r.vector))}},wM=class extends Ta{get svgElement(){return this.domElement.firstElementChild}constructor(n,t,e){super(n,t,e)}isSvg(){return!0}createElement(){const n=this.type==="square"?"rect":this.type,t=document.createElementNS(wa,n);this.element=document.createElementNS(wa,"svg"),this.element.appendChild(t),this.afterCreateElement()}update(n){super.update(n);const t=this.svgElement;switch(this.needsUpdateSize=!0,this.type){case"square":this.definition={x:0,y:0,width:this.config.square,height:this.config.square};break;case"rect":Array.isArray(this.config.rect)?this.definition={x:0,y:0,width:this.config.rect[0],height:this.config.rect[1]}:this.definition={x:0,y:0,width:this.config.rect.width,height:this.config.rect.height};break;case"circle":this.definition={cx:this.config.circle,cy:this.config.circle,r:this.config.circle};break;case"ellipse":Array.isArray(this.config.ellipse)?this.definition={cx:this.config.ellipse[0],cy:this.config.ellipse[1],rx:this.config.ellipse[0],ry:this.config.ellipse[1]}:this.definition={cx:this.config.ellipse.rx,cy:this.config.ellipse.ry,rx:this.config.ellipse.rx,ry:this.config.ellipse.ry};break;case"path":this.definition={d:this.config.path};break}Object.entries(this.definition).forEach(([e,s])=>{t.setAttributeNS(null,e,s)}),this.config.svgStyle?Object.entries(this.config.svgStyle).forEach(([e,s])=>{t.setAttributeNS(null,oe.dasherize(e),s)}):t.setAttributeNS(null,"fill","rgba(0,0,0,0.5)")}},SM=oe.getConfigParser({clickEventOnMarker:!1,gotoMarkerSpeed:"8rpm",markers:null,defaultHoverScale:null},{defaultHoverScale(n){return n?(n===!0&&(n=lh),typeof n=="number"&&(n={amount:n}),{...lh,...n}):null}});function MM(n){switch(ch(n,!1)){case"image":case"html":case"element":return EM;case"imageLayer":case"videoLayer":return vM;case"elementLayer":return yM;case"polygon":case"polyline":case"polygonPixels":case"polylinePixels":return xM;case"square":case"rect":case"circle":case"ellipse":case"path":return wM;default:throw new $t("invalid marker type")}}var eo=class Kg extends dp{constructor(t,e){super(t,e),this.markers={},this.state={allVisible:!0,showAllTooltips:!1,currentMarker:null,hoveringMarker:null,needsReRender:!1,lastClientX:null,lastClientY:null},this.container=document.createElement("div"),this.container.className="psv-markers",this.viewer.container.appendChild(this.container),this.container.addEventListener("contextmenu",s=>s.preventDefault()),this.svgContainer=document.createElementNS(wa,"svg"),this.svgContainer.setAttribute("class","psv-markers-svg-container"),this.container.appendChild(this.svgContainer),this.css3DContainer=new cM(t),this.container.appendChild(this.css3DContainer.element),this.container.addEventListener("mouseenter",this,!0),this.container.addEventListener("mouseleave",this,!0),this.container.addEventListener("mousemove",this,!0)}static withConfig(t){return[Kg,t]}init(){super.init(),oe.checkStylesheet(this.viewer.container,"markers-plugin"),this.viewer.addEventListener(jt.ClickEvent.type,this),this.viewer.addEventListener(jt.DoubleClickEvent.type,this),this.viewer.addEventListener(jt.RenderEvent.type,this),this.viewer.addEventListener(jt.ConfigChangedEvent.type,this),this.viewer.addEventListener(jt.ObjectEnterEvent.type,this),this.viewer.addEventListener(jt.ObjectHoverEvent.type,this),this.viewer.addEventListener(jt.ObjectLeaveEvent.type,this),this.viewer.addEventListener(jt.ReadyEvent.type,this,{once:!0})}destroy(){this.clearMarkers(!1),this.viewer.unobserveObjects(Ne),this.viewer.removeEventListener(jt.ClickEvent.type,this),this.viewer.removeEventListener(jt.DoubleClickEvent.type,this),this.viewer.removeEventListener(jt.RenderEvent.type,this),this.viewer.removeEventListener(jt.ObjectEnterEvent.type,this),this.viewer.removeEventListener(jt.ObjectHoverEvent.type,this),this.viewer.removeEventListener(jt.ObjectLeaveEvent.type,this),this.viewer.removeEventListener(jt.ReadyEvent.type,this),this.css3DContainer.destroy(),this.viewer.container.removeChild(this.container),super.destroy()}handleEvent(t){switch(t.type){case jt.ReadyEvent.type:this.config.markers&&(this.setMarkers(this.config.markers),delete this.config.markers);break;case jt.RenderEvent.type:this.renderMarkers();break;case jt.ClickEvent.type:this.__onClick(t,!1);break;case jt.DoubleClickEvent.type:this.__onClick(t,!0);break;case jt.ObjectEnterEvent.type:case jt.ObjectLeaveEvent.type:case jt.ObjectHoverEvent.type:if(t.userDataKey===Ne){const e=t.originalEvent,s=t.object.userData[Ne];switch(t.type){case jt.ObjectEnterEvent.type:s.config.style?.cursor?this.viewer.setCursor(s.config.style.cursor):(s.config.tooltip||s.config.content)&&this.viewer.setCursor("pointer"),this.__onEnterMarker(e,s);break;case jt.ObjectLeaveEvent.type:this.viewer.setCursor(null),this.__onLeaveMarker(s);break;case jt.ObjectHoverEvent.type:this.__onHoverMarker(e,s);break}}break;case"mouseenter":{const e=this.__getTargetMarker(oe.getEventTarget(t));this.__onEnterMarker(t,e);break}case"mouseleave":{const e=this.__getTargetMarker(oe.getEventTarget(t));this.__onLeaveMarker(e);break}case"mousemove":{const e=this.__getTargetMarker(oe.getEventTarget(t),!0);this.__onHoverMarker(t,e);break}}}toggleAllMarkers(){this.state.allVisible?this.hideAllMarkers():this.showAllMarkers()}showAllMarkers(){this.state.allVisible=!0,Object.values(this.markers).forEach(t=>{t.config.visible=!0}),this.renderMarkers(),this.dispatchEvent(new Kr)}hideAllMarkers(){this.state.allVisible=!1,Object.values(this.markers).forEach(t=>{t.config.visible=!1}),this.renderMarkers(),this.dispatchEvent(new Jr)}toggleAllTooltips(){this.state.showAllTooltips?this.hideAllTooltips():this.showAllTooltips()}showAllTooltips(){this.state.showAllTooltips=!0,Object.values(this.markers).forEach(t=>{t.state.staticTooltip=!0,t.showTooltip()})}hideAllTooltips(){this.state.showAllTooltips=!1,Object.values(this.markers).forEach(t=>{t.state.staticTooltip=!1,t.hideTooltip()})}getNbMarkers(){return Object.keys(this.markers).length}getMarkers(){return Object.values(this.markers)}addMarker(t,e=!0){if(this.markers[t.id])throw new $t(`marker "${t.id}" already exists`);const s=new(MM(t))(this.viewer,this,t);s.isPoly()?this.svgContainer.appendChild(s.domElement):s.isCss3d()?this.css3DContainer.addObject(s):s.is3d()?this.viewer.renderer.addObject(s.threeElement):this.container.appendChild(s.domElement),this.markers[s.id]=s,this.state.showAllTooltips&&(s.state.staticTooltip=!0),e&&this.__afterChangeMarkers()}getMarker(t){const e=typeof t=="object"?t.id:t;if(!this.markers[e])throw new $t(`cannot find marker "${e}"`);return this.markers[e]}getCurrentMarker(){return this.state.currentMarker}updateMarker(t,e=!0){const s=this.getMarker(t.id);s.update(t),e&&(this.__afterChangeMarkers(),(s===this.state.hoveringMarker&&s.config.tooltip?.trigger==="hover"||s.state.staticTooltip)&&s.showTooltip(this.state.lastClientX,this.state.lastClientY,!0))}removeMarker(t,e=!0){const s=this.getMarker(t);s.isPoly()?this.svgContainer.removeChild(s.domElement):s.isCss3d()?this.css3DContainer.removeObject(s):s.is3d()?this.viewer.renderer.removeObject(s.threeElement):this.container.removeChild(s.domElement),this.state.hoveringMarker===s&&(this.state.hoveringMarker=null),this.state.currentMarker===s&&(this.state.currentMarker=null),s.destroy(),delete this.markers[s.id],e&&this.__afterChangeMarkers()}removeMarkers(t,e=!0){t.forEach(s=>this.removeMarker(s,!1)),e&&this.__afterChangeMarkers()}setMarkers(t,e=!0){this.clearMarkers(!1),t?.forEach(s=>{this.addMarker(s,!1)}),e&&this.__afterChangeMarkers()}clearMarkers(t=!0){Object.keys(this.markers).forEach(e=>{this.removeMarker(e,!1)}),t&&this.__afterChangeMarkers()}gotoMarker(t,e=this.config.gotoMarkerSpeed){const s=this.getMarker(t);return e?this.viewer.animate({...s.state.position,zoom:s.config.zoomLvl,speed:e}).then(()=>{this.dispatchEvent(new ah(s))}):(this.viewer.rotate(s.state.position),oe.isNil(s.config.zoomLvl)||this.viewer.zoom(s.config.zoomLvl),this.dispatchEvent(new ah(s)),Promise.resolve())}hideMarker(t){this.toggleMarker(t,!1)}showMarker(t){this.toggleMarker(t,!0)}showMarkerTooltip(t){const e=this.getMarker(t);e.state.staticTooltip=!0,e.showTooltip()}hideMarkerTooltip(t){const e=this.getMarker(t);e.state.staticTooltip=!1,e.hideTooltip()}toggleMarker(t,e){const s=this.getMarker(t);s.config.visible=oe.isNil(e)?!s.config.visible:e,this.renderMarkers()}showMarkerPanel(t){const e=this.getMarker(t);e.config.content?this.viewer.panel.show({id:to,content:e.config.content}):this.hideMarkerPanel()}hideMarkerPanel(){this.viewer.panel.hide(to)}toggleMarkersList(){this.viewer.panel.isVisible(nr)?this.hideMarkersList():this.showMarkersList()}showMarkersList(){let t=[];Object.values(this.markers).forEach(s=>{s.config.visible&&!s.config.hideList&&t.push(s)});const e=new zp(t);this.dispatchEvent(e),t=e.markers,this.viewer.panel.show({id:nr,content:sM(t,this.viewer.config.lang[$r.id]),noMargin:!0,clickHandler:s=>{const r=oe.getClosest(s,".psv-panel-menu-item"),a=r?r.dataset[Ne]:void 0;if(a){const l=this.getMarker(a);this.dispatchEvent(new Ip(l)),this.gotoMarker(l.id),this.hideMarkersList()}}})}hideMarkersList(){this.viewer.panel.hide(nr)}renderMarkers(){if(this.state.needsReRender){this.state.needsReRender=!1;return}const t=this.viewer.getZoomLevel(),e=this.viewer.getPosition(),s=this.state.hoveringMarker;Object.values(this.markers).forEach(r=>{let a=r.config.visible,l=!1,h=null;a&&(h=r.render({viewerPosition:e,zoomLevel:t,hoveringMarker:s}),a=!!h),l=r.state.visible!==a,r.state.visible=a,r.state.position2D=h,r.domElement&&oe.toggleClass(r.domElement,"psv-marker--visible",a),a?r.state.staticTooltip?r.showTooltip():r!==this.state.hoveringMarker&&r.hideTooltip():r.hideTooltip(),l&&(this.dispatchEvent(new Sp(r,a)),(r.is3d()||r.isCss3d())&&(this.state.needsReRender=!0))}),this.state.needsReRender&&this.viewer.needsUpdate()}__getTargetMarker(t,e=!1){if(t instanceof Node){const s=e?oe.getClosest(t,".psv-marker"):t;return s?s[Ne]:void 0}else return Array.isArray(t)?t.map(s=>s.userData[Ne]).filter(s=>!!s).sort((s,r)=>r.config.zIndex-s.config.zIndex)[0]:null}__onEnterMarker(t,e){e&&(this.state.hoveringMarker=e,this.state.lastClientX=t.clientX,this.state.lastClientY=t.clientY,this.dispatchEvent(new Cp(e)),e instanceof Ta&&e.applyScale({zoomLevel:this.viewer.getZoomLevel(),viewerPosition:this.viewer.getPosition(),mouseover:!0}),!e.state.staticTooltip&&e.config.tooltip?.trigger==="hover"&&e.showTooltip(t.clientX,t.clientY))}__onLeaveMarker(t){t&&(this.dispatchEvent(new bp(t)),t instanceof Ta&&t.applyScale({zoomLevel:this.viewer.getZoomLevel(),viewerPosition:this.viewer.getPosition(),mouseover:!1}),this.state.hoveringMarker=null,!t.state.staticTooltip&&t.config.tooltip?.trigger==="hover"?t.hideTooltip():t.state.staticTooltip&&t.showTooltip())}__onHoverMarker(t,e){e&&(this.state.lastClientX=t.clientX,this.state.lastClientY=t.clientY,(e.isPoly()||e.is3d()||e.isCss3d())&&e.config.tooltip?.trigger==="hover"&&e.showTooltip(t.clientX,t.clientY))}__onClick(t,e){const s=this.__getTargetMarker(t.data.objects),a=this.__getTargetMarker(t.data.target,!0)||s;this.state.currentMarker&&this.state.currentMarker!==a&&(this.dispatchEvent(new kp(this.state.currentMarker)),this.viewer.panel.hide(to),!this.state.showAllTooltips&&this.state.currentMarker.config.tooltip?.trigger==="click"&&this.hideMarkerTooltip(this.state.currentMarker.id),this.state.currentMarker=null),a&&(this.state.currentMarker=a,this.dispatchEvent(new Rp(a,e,t.data.rightclick)),this.config.clickEventOnMarker?t.data.marker=a:t.stopImmediatePropagation(),this.markers[a.id]&&!t.data.rightclick&&(a.config.tooltip?.trigger==="click"?a.tooltip?this.hideMarkerTooltip(a.id):this.showMarkerTooltip(a.id):this.showMarkerPanel(a.id)))}__afterChangeMarkers(){this.__refreshUi(),this.__checkObjectsObserver(),this.viewer.needsUpdate(),this.dispatchEvent(new Np(this.getMarkers()))}__refreshUi(){const t=Object.values(this.markers).filter(e=>!e.config.hideList).length;t===0?(this.viewer.panel.hide(to),this.viewer.panel.hide(nr)):this.viewer.panel.isVisible(nr)?this.showMarkersList():this.viewer.panel.isVisible(to)&&(this.state.currentMarker?this.showMarkerPanel(this.state.currentMarker.id):this.viewer.panel.hide()),this.viewer.navbar.getButton($r.id,!1)?.toggle(t>0),this.viewer.navbar.getButton(Sa.id,!1)?.toggle(t>0)}__checkObjectsObserver(){Object.values(this.markers).some(e=>e.is3d())?this.viewer.observeObjects(Ne):this.viewer.unobserveObjects(Ne)}};eo.id="markers",eo.VERSION="5.14.0",eo.configParser=SM,eo.readonlyOptions=["markers"];var jp=eo;xi.lang[$r.id]="Markers",xi.lang[Sa.id]="Markers list",ih($r,"caption:left"),ih(Sa,"caption:left");var Jp=(n=>(n[n.Manual=0]="Manual",n[n.Intelligent=1]="Intelligent",n[n.RTK=2]="RTK",n[n.RealTimeTrack=3]="RealTimeTrack",n[n.Drone=4]="Drone",n))(Jp||{}),ze=(n=>(n[n.StoreMissParams=1e4]="StoreMissParams",n[n.StoreNoCSTree=10001]="StoreNoCSTree",n[n.StoreNoRecord=10002]="StoreNoRecord",n[n.StoreInvRecord=10003]="StoreInvRecord",n[n.StoreRecordOutCSTree=10004]="StoreRecordOutCSTree",n[n.StoreNoCSByID=10005]="StoreNoCSByID",n[n.StoreSelectNoRecord=10006]="StoreSelectNoRecord",n[n.StoreSelectNoPoint=10007]="StoreSelectNoPoint",n[n.StoreSelectNoMarker=10008]="StoreSelectNoMarker",n[n.StoreSelectedMarker=10009]="StoreSelectedMarker",n[n.StroeNoModelValue=10010]="StroeNoModelValue",n[n.StoreNoProjectDetail=10011]="StoreNoProjectDetail",n[n.ViewModeNoAuto=10012]="ViewModeNoAuto",n))(ze||{}),Aa=(n=>(n[n.NUMBER=0]="NUMBER",n[n.DISTANCE=1]="DISTANCE",n))(Aa||{}),dh=(n=>(n.pin="pin",n))(dh||{}),Yi=(n=>(n[n.Forward=1]="Forward",n[n.Stationary=0]="Stationary",n[n.Backward=-1]="Backward",n))(Yi||{}),ir=(n=>(n[n.Auto=0]="Auto",n[n.FollowRoad=1]="FollowRoad",n[n.FollowView=2]="FollowView",n))(ir||{});class gs{id="";img="";patrolId="";coordinate=new xt.Coordinate;point=new xt.Point;position;placeholderImg;uxTime;panorama;color;index;rawIndex;constructor(t){this.setState(t)}setState(t){Object.assign(this,t)}static parsedModel(t,e,s,r){const{x:a,y:l,z:h,lon:u,lat:d,alt:p,p:m,img:_,patroIndex:E,...w}=t,S=Number(E)||0,v={...w,rawIndex:S,img:_,coordinate:e},g=xt.Point.toRadians(Number(m)||0),R=new xt.Point({x:a,y:l,z:h,lon:u,lat:d,alt:p,yaw:g});return _&&(v.panorama=L_(_,s,r)),(R.hasXYZ||R.hasGeo)&&(v.point=R),v}static toSphericalCoord(t,e){const s=e.x-t.x,r=e.y-t.y,a=Math.hypot(s,r);if(a<1e-6)return{d:0,yaw:0,pitch:0};const l=(r<0?-Math.acos(s/a):Math.acos(s/a))-t.yaw,h=-Math.atan(1800/a);return{d:a,yaw:l,pitch:h}}projection(t,e){if(!this.point)return;const s=new gs(this),r=s.point?.projection(t.srcToDstRelativeMap,t.srcCoordinate,t.dstCoordinate),a=s.point?.projection(e.srcToDstRelativeMap,e.srcCoordinate,e.dstCoordinate);if(!(!r||!a))return s.coordinate=t.dstCoordinate,s.point=r,s.position=a,s}}class no{id="";pointId="";patrolId="";coordinateId=0;coordinate=new xt.Coordinate;point=new xt.Point;relativePosition;perspective;photoTime;panorama;markerIcon;markerType;data;constructor(t){this.setState(t)}setState(t){Object.assign(this,t)}static parsedModel(t,e){const{coordinateId:s,relativePosition:r,perspective:a,point:l}=t,h={...t};if(s&&e){let u=e?.findCsById(s);if(xt.RelativeMap.isValid(r)){const d=xt.RelativeMap.toParse(r);u=new xt.Coordinate({parent:u,type:xt.CoordinateType.Data,relativeMap:d})}h.coordinate=u}return a&&(h.perspective=xt.Position.toParse(a)),l&&(h.point=xt.Point.toParse(l)),h}projection(t){if(!this.coordinate||!this.point)return;const e=this.coordinate.getDestRelativeMap(t);if(!e)return;const s=new no(this),r=s.point?.projection(e,s.coordinate,t);if(r)return s.point=r,s.coordinate=t,s}}/**
|
|
3948
3948
|
* @preserve
|
|
3949
3949
|
* gcoord 1.0.7, geographic coordinate library
|
|
3950
3950
|
* Copyright (c) 2025 Jiulong Hu <me@hujiulong.com>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vsleem-realsee-viewer/realsee-plugin",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.31",
|
|
4
4
|
"description": "Realsee plugin for VSLeem RealSee Viewer",
|
|
5
5
|
"main": "./dist/index.umd.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -13,11 +13,11 @@
|
|
|
13
13
|
"dist"
|
|
14
14
|
],
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@vsleem-realsee-viewer/shared": "2.0.
|
|
16
|
+
"@vsleem-realsee-viewer/shared": "2.0.31"
|
|
17
17
|
},
|
|
18
18
|
"peerDependencies": {
|
|
19
19
|
"vue": ">=3.5.0",
|
|
20
|
-
"@vsleem-realsee-viewer/shared": "2.0.
|
|
20
|
+
"@vsleem-realsee-viewer/shared": "2.0.31"
|
|
21
21
|
},
|
|
22
22
|
"peerDependenciesMeta": {
|
|
23
23
|
"vue": {
|