@hpcc-js/map 3.1.0 → 3.1.1

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.js CHANGED
@@ -1,4 +1,4 @@
1
- var Up=Object.create;var Gn=Object.defineProperty;var Wp=Object.getOwnPropertyDescriptor;var jp=Object.getOwnPropertyNames;var Vp=Object.getPrototypeOf,qp=Object.prototype.hasOwnProperty;var e=(s,n)=>Gn(s,"name",{value:n,configurable:!0});var Hn=(s,n)=>()=>(n||s((n={exports:{}}).exports,n),n.exports),Hh=(s,n)=>{for(var l in n)Gn(s,l,{get:n[l],enumerable:!0})},Yp=(s,n,l,o)=>{if(n&&typeof n=="object"||typeof n=="function")for(let i of jp(n))!qp.call(s,i)&&i!==l&&Gn(s,i,{get:()=>n[i],enumerable:!(o=Wp(n,i))||o.enumerable});return s};var vi=(s,n,l)=>(l=s!=null?Up(Vp(s)):{},Yp(n||!s||!s.__esModule?Gn(l,"default",{value:s,enumerable:!0}):l,s));var ec=Hn((Qu,tc)=>{(function(s,n){if(s===null)throw new Error("Google-maps package can be used only in browser");typeof define=="function"&&define.amd?define(n):typeof Qu=="object"?tc.exports=n():s.GoogleMapsLoader=n()})(typeof window<"u"?window:null,function(){"use strict";var s="3.31",n=null,l=null,o=!1,i=[],a=[],u=null,p={};p.URL="https://maps.googleapis.com/maps/api/js",p.KEY=null,p.LIBRARIES=[],p.CLIENT=null,p.CHANNEL=null,p.LANGUAGE=null,p.REGION=null,p.VERSION=s,p.WINDOW_CALLBACK_NAME="__google_maps_api_provider_initializator__",p._googleMockApiObject={},p.load=function(d){l===null?o===!0?d&&i.push(d):(o=!0,window[p.WINDOW_CALLBACK_NAME]=function(){g(d)},p.createLoader()):d&&d(l)},p.createLoader=function(){n=document.createElement("script"),n.type="text/javascript",n.src=p.createUrl(),document.body.appendChild(n)},p.isLoaded=function(){return l!==null},p.createUrl=function(){var d=p.URL;return d+="?callback="+p.WINDOW_CALLBACK_NAME,p.KEY&&(d+="&key="+p.KEY),p.LIBRARIES.length>0&&(d+="&libraries="+p.LIBRARIES.join(",")),p.CLIENT&&(d+="&client="+p.CLIENT),p.CHANNEL&&(d+="&channel="+p.CHANNEL),p.LANGUAGE&&(d+="&language="+p.LANGUAGE),p.REGION&&(d+="&region="+p.REGION),p.VERSION&&(d+="&v="+p.VERSION),d},p.release=function(d){var f=e(function(){p.KEY=null,p.LIBRARIES=[],p.CLIENT=null,p.CHANNEL=null,p.LANGUAGE=null,p.REGION=null,p.VERSION=s,l=null,o=!1,i=[],a=[],typeof window.google<"u"&&delete window.google,typeof window[p.WINDOW_CALLBACK_NAME]<"u"&&delete window[p.WINDOW_CALLBACK_NAME],u!==null&&(p.createLoader=u,u=null),n!==null&&(n.parentElement.removeChild(n),n=null),d&&d()},"release");o?p.load(function(){f()}):f()},p.onLoad=function(d){a.push(d)},p.makeMock=function(){u=p.createLoader,p.createLoader=function(){window.google=p._googleMockApiObject,window[p.WINDOW_CALLBACK_NAME]()}};var g=e(function(d){var f;for(o=!1,l===null&&(l=window.google),f=0;f<a.length;f++)a[f](l);for(d&&d(l),f=0;f<i.length;f++)i[f](l);i=[]},"ready");return p})});var dn=Hn((Hr,ac)=>{(function(s,n){typeof Hr=="object"&&typeof ac<"u"?n(Hr):typeof define=="function"&&define.amd?define(["exports"],n):(s=typeof globalThis<"u"?globalThis:s||self,n(s.leaflet={}))})(Hr,function(s){"use strict";var n="1.9.4";function l(t){var r,h,c,m;for(h=1,c=arguments.length;h<c;h++){m=arguments[h];for(r in m)t[r]=m[r]}return t}e(l,"extend");var o=Object.create||function(){function t(){}return e(t,"F"),function(r){return t.prototype=r,new t}}();function i(t,r){var h=Array.prototype.slice;if(t.bind)return t.bind.apply(t,h.call(arguments,1));var c=h.call(arguments,2);return function(){return t.apply(r,c.length?c.concat(h.call(arguments)):arguments)}}e(i,"bind");var a=0;function u(t){return"_leaflet_id"in t||(t._leaflet_id=++a),t._leaflet_id}e(u,"stamp");function p(t,r,h){var c,m,v,w;return w=e(function(){c=!1,m&&(v.apply(h,m),m=!1)},"later"),v=e(function(){c?m=arguments:(t.apply(h,arguments),setTimeout(w,r),c=!0)},"wrapperFn"),v}e(p,"throttle");function g(t,r,h){var c=r[1],m=r[0],v=c-m;return t===c&&h?t:((t-m)%v+v)%v+m}e(g,"wrapNum");function d(){return!1}e(d,"falseFn");function f(t,r){if(r===!1)return t;var h=Math.pow(10,r===void 0?6:r);return Math.round(t*h)/h}e(f,"formatNum");function _(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}e(_,"trim");function b(t){return _(t).split(/\s+/)}e(b,"splitWords");function y(t,r){Object.prototype.hasOwnProperty.call(t,"options")||(t.options=t.options?o(t.options):{});for(var h in r)t.options[h]=r[h];return t.options}e(y,"setOptions");function x(t,r,h){var c=[];for(var m in t)c.push(encodeURIComponent(h?m.toUpperCase():m)+"="+encodeURIComponent(t[m]));return(!r||r.indexOf("?")===-1?"?":"&")+c.join("&")}e(x,"getParamString");var k=/\{ *([\w_ -]+) *\}/g;function C(t,r){return t.replace(k,function(h,c){var m=r[c];if(m===void 0)throw new Error("No value provided for variable "+h);return typeof m=="function"&&(m=m(r)),m})}e(C,"template");var P=Array.isArray||function(t){return Object.prototype.toString.call(t)==="[object Array]"};function T(t,r){for(var h=0;h<t.length;h++)if(t[h]===r)return h;return-1}e(T,"indexOf");var E="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function O(t){return window["webkit"+t]||window["moz"+t]||window["ms"+t]}e(O,"getPrefixed");var B=0;function G(t){var r=+new Date,h=Math.max(0,16-(r-B));return B=r+h,window.setTimeout(t,h)}e(G,"timeoutDefer");var J=window.requestAnimationFrame||O("RequestAnimationFrame")||G,st=window.cancelAnimationFrame||O("CancelAnimationFrame")||O("CancelRequestAnimationFrame")||function(t){window.clearTimeout(t)};function X(t,r,h){if(h&&J===G)t.call(r);else return J.call(window,i(t,r))}e(X,"requestAnimFrame");function ot(t){t&&st.call(window,t)}e(ot,"cancelAnimFrame");var K={__proto__:null,extend:l,create:o,bind:i,get lastId(){return a},stamp:u,throttle:p,wrapNum:g,falseFn:d,formatNum:f,trim:_,splitWords:b,setOptions:y,getParamString:x,template:C,isArray:P,indexOf:T,emptyImageUrl:E,requestFn:J,cancelFn:st,requestAnimFrame:X,cancelAnimFrame:ot};function xt(){}e(xt,"Class"),xt.extend=function(t){var r=e(function(){y(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},"NewClass"),h=r.__super__=this.prototype,c=o(h);c.constructor=r,r.prototype=c;for(var m in this)Object.prototype.hasOwnProperty.call(this,m)&&m!=="prototype"&&m!=="__super__"&&(r[m]=this[m]);return t.statics&&l(r,t.statics),t.includes&&(St(t.includes),l.apply(null,[c].concat(t.includes))),l(c,t),delete c.statics,delete c.includes,c.options&&(c.options=h.options?o(h.options):{},l(c.options,t.options)),c._initHooks=[],c.callInitHooks=function(){if(!this._initHooksCalled){h.callInitHooks&&h.callInitHooks.call(this),this._initHooksCalled=!0;for(var v=0,w=c._initHooks.length;v<w;v++)c._initHooks[v].call(this)}},r},xt.include=function(t){var r=this.prototype.options;return l(this.prototype,t),t.options&&(this.prototype.options=r,this.mergeOptions(t.options)),this},xt.mergeOptions=function(t){return l(this.prototype.options,t),this},xt.addInitHook=function(t){var r=Array.prototype.slice.call(arguments,1),h=typeof t=="function"?t:function(){this[t].apply(this,r)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(h),this};function St(t){if(!(typeof L>"u"||!L||!L.Mixin)){t=P(t)?t:[t];for(var r=0;r<t.length;r++)t[r]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",new Error().stack)}}e(St,"checkDeprecatedMixinEvents");var Q={on:e(function(t,r,h){if(typeof t=="object")for(var c in t)this._on(c,t[c],r);else{t=b(t);for(var m=0,v=t.length;m<v;m++)this._on(t[m],r,h)}return this},"on"),off:e(function(t,r,h){if(!arguments.length)delete this._events;else if(typeof t=="object")for(var c in t)this._off(c,t[c],r);else{t=b(t);for(var m=arguments.length===1,v=0,w=t.length;v<w;v++)m?this._off(t[v]):this._off(t[v],r,h)}return this},"off"),_on:e(function(t,r,h,c){if(typeof r!="function"){console.warn("wrong listener type: "+typeof r);return}if(this._listens(t,r,h)===!1){h===this&&(h=void 0);var m={fn:r,ctx:h};c&&(m.once=!0),this._events=this._events||{},this._events[t]=this._events[t]||[],this._events[t].push(m)}},"_on"),_off:e(function(t,r,h){var c,m,v;if(this._events&&(c=this._events[t],!!c)){if(arguments.length===1){if(this._firingCount)for(m=0,v=c.length;m<v;m++)c[m].fn=d;delete this._events[t];return}if(typeof r!="function"){console.warn("wrong listener type: "+typeof r);return}var w=this._listens(t,r,h);if(w!==!1){var M=c[w];this._firingCount&&(M.fn=d,this._events[t]=c=c.slice()),c.splice(w,1)}}},"_off"),fire:e(function(t,r,h){if(!this.listens(t,h))return this;var c=l({},r,{type:t,target:this,sourceTarget:r&&r.sourceTarget||this});if(this._events){var m=this._events[t];if(m){this._firingCount=this._firingCount+1||1;for(var v=0,w=m.length;v<w;v++){var M=m[v],S=M.fn;M.once&&this.off(t,S,M.ctx),S.call(M.ctx||this,c)}this._firingCount--}}return h&&this._propagateEvent(c),this},"fire"),listens:e(function(t,r,h,c){typeof t!="string"&&console.warn('"string" type argument expected');var m=r;typeof r!="function"&&(c=!!r,m=void 0,h=void 0);var v=this._events&&this._events[t];if(v&&v.length&&this._listens(t,m,h)!==!1)return!0;if(c){for(var w in this._eventParents)if(this._eventParents[w].listens(t,r,h,c))return!0}return!1},"listens"),_listens:e(function(t,r,h){if(!this._events)return!1;var c=this._events[t]||[];if(!r)return!!c.length;h===this&&(h=void 0);for(var m=0,v=c.length;m<v;m++)if(c[m].fn===r&&c[m].ctx===h)return m;return!1},"_listens"),once:e(function(t,r,h){if(typeof t=="object")for(var c in t)this._on(c,t[c],r,!0);else{t=b(t);for(var m=0,v=t.length;m<v;m++)this._on(t[m],r,h,!0)}return this},"once"),addEventParent:e(function(t){return this._eventParents=this._eventParents||{},this._eventParents[u(t)]=t,this},"addEventParent"),removeEventParent:e(function(t){return this._eventParents&&delete this._eventParents[u(t)],this},"removeEventParent"),_propagateEvent:e(function(t){for(var r in this._eventParents)this._eventParents[r].fire(t.type,l({layer:t.target,propagatedFrom:t.target},t),!0)},"_propagateEvent")};Q.addEventListener=Q.on,Q.removeEventListener=Q.clearAllEventListeners=Q.off,Q.addOneTimeEventListener=Q.once,Q.fireEvent=Q.fire,Q.hasEventListeners=Q.listens;var I=xt.extend(Q);function N(t,r,h){this.x=h?Math.round(t):t,this.y=h?Math.round(r):r}e(N,"Point");var Tt=Math.trunc||function(t){return t>0?Math.floor(t):Math.ceil(t)};N.prototype={clone:e(function(){return new N(this.x,this.y)},"clone"),add:e(function(t){return this.clone()._add(U(t))},"add"),_add:e(function(t){return this.x+=t.x,this.y+=t.y,this},"_add"),subtract:e(function(t){return this.clone()._subtract(U(t))},"subtract"),_subtract:e(function(t){return this.x-=t.x,this.y-=t.y,this},"_subtract"),divideBy:e(function(t){return this.clone()._divideBy(t)},"divideBy"),_divideBy:e(function(t){return this.x/=t,this.y/=t,this},"_divideBy"),multiplyBy:e(function(t){return this.clone()._multiplyBy(t)},"multiplyBy"),_multiplyBy:e(function(t){return this.x*=t,this.y*=t,this},"_multiplyBy"),scaleBy:e(function(t){return new N(this.x*t.x,this.y*t.y)},"scaleBy"),unscaleBy:e(function(t){return new N(this.x/t.x,this.y/t.y)},"unscaleBy"),round:e(function(){return this.clone()._round()},"round"),_round:e(function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},"_round"),floor:e(function(){return this.clone()._floor()},"floor"),_floor:e(function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},"_floor"),ceil:e(function(){return this.clone()._ceil()},"ceil"),_ceil:e(function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},"_ceil"),trunc:e(function(){return this.clone()._trunc()},"trunc"),_trunc:e(function(){return this.x=Tt(this.x),this.y=Tt(this.y),this},"_trunc"),distanceTo:e(function(t){t=U(t);var r=t.x-this.x,h=t.y-this.y;return Math.sqrt(r*r+h*h)},"distanceTo"),equals:e(function(t){return t=U(t),t.x===this.x&&t.y===this.y},"equals"),contains:e(function(t){return t=U(t),Math.abs(t.x)<=Math.abs(this.x)&&Math.abs(t.y)<=Math.abs(this.y)},"contains"),toString:e(function(){return"Point("+f(this.x)+", "+f(this.y)+")"},"toString")};function U(t,r,h){return t instanceof N?t:P(t)?new N(t[0],t[1]):t==null?t:typeof t=="object"&&"x"in t&&"y"in t?new N(t.x,t.y):new N(t,r,h)}e(U,"toPoint");function at(t,r){if(t)for(var h=r?[t,r]:t,c=0,m=h.length;c<m;c++)this.extend(h[c])}e(at,"Bounds"),at.prototype={extend:e(function(t){var r,h;if(!t)return this;if(t instanceof N||typeof t[0]=="number"||"x"in t)r=h=U(t);else if(t=At(t),r=t.min,h=t.max,!r||!h)return this;return!this.min&&!this.max?(this.min=r.clone(),this.max=h.clone()):(this.min.x=Math.min(r.x,this.min.x),this.max.x=Math.max(h.x,this.max.x),this.min.y=Math.min(r.y,this.min.y),this.max.y=Math.max(h.y,this.max.y)),this},"extend"),getCenter:e(function(t){return U((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,t)},"getCenter"),getBottomLeft:e(function(){return U(this.min.x,this.max.y)},"getBottomLeft"),getTopRight:e(function(){return U(this.max.x,this.min.y)},"getTopRight"),getTopLeft:e(function(){return this.min},"getTopLeft"),getBottomRight:e(function(){return this.max},"getBottomRight"),getSize:e(function(){return this.max.subtract(this.min)},"getSize"),contains:e(function(t){var r,h;return typeof t[0]=="number"||t instanceof N?t=U(t):t=At(t),t instanceof at?(r=t.min,h=t.max):r=h=t,r.x>=this.min.x&&h.x<=this.max.x&&r.y>=this.min.y&&h.y<=this.max.y},"contains"),intersects:e(function(t){t=At(t);var r=this.min,h=this.max,c=t.min,m=t.max,v=m.x>=r.x&&c.x<=h.x,w=m.y>=r.y&&c.y<=h.y;return v&&w},"intersects"),overlaps:e(function(t){t=At(t);var r=this.min,h=this.max,c=t.min,m=t.max,v=m.x>r.x&&c.x<h.x,w=m.y>r.y&&c.y<h.y;return v&&w},"overlaps"),isValid:e(function(){return!!(this.min&&this.max)},"isValid"),pad:e(function(t){var r=this.min,h=this.max,c=Math.abs(r.x-h.x)*t,m=Math.abs(r.y-h.y)*t;return At(U(r.x-c,r.y-m),U(h.x+c,h.y+m))},"pad"),equals:e(function(t){return t?(t=At(t),this.min.equals(t.getTopLeft())&&this.max.equals(t.getBottomRight())):!1},"equals")};function At(t,r){return!t||t instanceof at?t:new at(t,r)}e(At,"toBounds");function Ct(t,r){if(t)for(var h=r?[t,r]:t,c=0,m=h.length;c<m;c++)this.extend(h[c])}e(Ct,"LatLngBounds"),Ct.prototype={extend:e(function(t){var r=this._southWest,h=this._northEast,c,m;if(t instanceof nt)c=t,m=t;else if(t instanceof Ct){if(c=t._southWest,m=t._northEast,!c||!m)return this}else return t?this.extend(it(t)||_t(t)):this;return!r&&!h?(this._southWest=new nt(c.lat,c.lng),this._northEast=new nt(m.lat,m.lng)):(r.lat=Math.min(c.lat,r.lat),r.lng=Math.min(c.lng,r.lng),h.lat=Math.max(m.lat,h.lat),h.lng=Math.max(m.lng,h.lng)),this},"extend"),pad:e(function(t){var r=this._southWest,h=this._northEast,c=Math.abs(r.lat-h.lat)*t,m=Math.abs(r.lng-h.lng)*t;return new Ct(new nt(r.lat-c,r.lng-m),new nt(h.lat+c,h.lng+m))},"pad"),getCenter:e(function(){return new nt((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},"getCenter"),getSouthWest:e(function(){return this._southWest},"getSouthWest"),getNorthEast:e(function(){return this._northEast},"getNorthEast"),getNorthWest:e(function(){return new nt(this.getNorth(),this.getWest())},"getNorthWest"),getSouthEast:e(function(){return new nt(this.getSouth(),this.getEast())},"getSouthEast"),getWest:e(function(){return this._southWest.lng},"getWest"),getSouth:e(function(){return this._southWest.lat},"getSouth"),getEast:e(function(){return this._northEast.lng},"getEast"),getNorth:e(function(){return this._northEast.lat},"getNorth"),contains:e(function(t){typeof t[0]=="number"||t instanceof nt||"lat"in t?t=it(t):t=_t(t);var r=this._southWest,h=this._northEast,c,m;return t instanceof Ct?(c=t.getSouthWest(),m=t.getNorthEast()):c=m=t,c.lat>=r.lat&&m.lat<=h.lat&&c.lng>=r.lng&&m.lng<=h.lng},"contains"),intersects:e(function(t){t=_t(t);var r=this._southWest,h=this._northEast,c=t.getSouthWest(),m=t.getNorthEast(),v=m.lat>=r.lat&&c.lat<=h.lat,w=m.lng>=r.lng&&c.lng<=h.lng;return v&&w},"intersects"),overlaps:e(function(t){t=_t(t);var r=this._southWest,h=this._northEast,c=t.getSouthWest(),m=t.getNorthEast(),v=m.lat>r.lat&&c.lat<h.lat,w=m.lng>r.lng&&c.lng<h.lng;return v&&w},"overlaps"),toBBoxString:e(function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},"toBBoxString"),equals:e(function(t,r){return t?(t=_t(t),this._southWest.equals(t.getSouthWest(),r)&&this._northEast.equals(t.getNorthEast(),r)):!1},"equals"),isValid:e(function(){return!!(this._southWest&&this._northEast)},"isValid")};function _t(t,r){return t instanceof Ct?t:new Ct(t,r)}e(_t,"toLatLngBounds");function nt(t,r,h){if(isNaN(t)||isNaN(r))throw new Error("Invalid LatLng object: ("+t+", "+r+")");this.lat=+t,this.lng=+r,h!==void 0&&(this.alt=+h)}e(nt,"LatLng"),nt.prototype={equals:e(function(t,r){if(!t)return!1;t=it(t);var h=Math.max(Math.abs(this.lat-t.lat),Math.abs(this.lng-t.lng));return h<=(r===void 0?1e-9:r)},"equals"),toString:e(function(t){return"LatLng("+f(this.lat,t)+", "+f(this.lng,t)+")"},"toString"),distanceTo:e(function(t){return ii.distance(this,it(t))},"distanceTo"),wrap:e(function(){return ii.wrapLatLng(this)},"wrap"),toBounds:e(function(t){var r=180*t/40075017,h=r/Math.cos(Math.PI/180*this.lat);return _t([this.lat-r,this.lng-h],[this.lat+r,this.lng+h])},"toBounds"),clone:e(function(){return new nt(this.lat,this.lng,this.alt)},"clone")};function it(t,r,h){return t instanceof nt?t:P(t)&&typeof t[0]!="object"?t.length===3?new nt(t[0],t[1],t[2]):t.length===2?new nt(t[0],t[1]):null:t==null?t:typeof t=="object"&&"lat"in t?new nt(t.lat,"lng"in t?t.lng:t.lon,t.alt):r===void 0?null:new nt(t,r,h)}e(it,"toLatLng");var Qt={latLngToPoint:e(function(t,r){var h=this.projection.project(t),c=this.scale(r);return this.transformation._transform(h,c)},"latLngToPoint"),pointToLatLng:e(function(t,r){var h=this.scale(r),c=this.transformation.untransform(t,h);return this.projection.unproject(c)},"pointToLatLng"),project:e(function(t){return this.projection.project(t)},"project"),unproject:e(function(t){return this.projection.unproject(t)},"unproject"),scale:e(function(t){return 256*Math.pow(2,t)},"scale"),zoom:e(function(t){return Math.log(t/256)/Math.LN2},"zoom"),getProjectedBounds:e(function(t){if(this.infinite)return null;var r=this.projection.bounds,h=this.scale(t),c=this.transformation.transform(r.min,h),m=this.transformation.transform(r.max,h);return new at(c,m)},"getProjectedBounds"),infinite:!1,wrapLatLng:e(function(t){var r=this.wrapLng?g(t.lng,this.wrapLng,!0):t.lng,h=this.wrapLat?g(t.lat,this.wrapLat,!0):t.lat,c=t.alt;return new nt(h,r,c)},"wrapLatLng"),wrapLatLngBounds:e(function(t){var r=t.getCenter(),h=this.wrapLatLng(r),c=r.lat-h.lat,m=r.lng-h.lng;if(c===0&&m===0)return t;var v=t.getSouthWest(),w=t.getNorthEast(),M=new nt(v.lat-c,v.lng-m),S=new nt(w.lat-c,w.lng-m);return new Ct(M,S)},"wrapLatLngBounds")},ii=l({},Qt,{wrapLng:[-180,180],R:6371e3,distance:e(function(t,r){var h=Math.PI/180,c=t.lat*h,m=r.lat*h,v=Math.sin((r.lat-t.lat)*h/2),w=Math.sin((r.lng-t.lng)*h/2),M=v*v+Math.cos(c)*Math.cos(m)*w*w,S=2*Math.atan2(Math.sqrt(M),Math.sqrt(1-M));return this.R*S},"distance")}),zl=6378137,os={R:zl,MAX_LATITUDE:85.0511287798,project:e(function(t){var r=Math.PI/180,h=this.MAX_LATITUDE,c=Math.max(Math.min(h,t.lat),-h),m=Math.sin(c*r);return new N(this.R*t.lng*r,this.R*Math.log((1+m)/(1-m))/2)},"project"),unproject:e(function(t){var r=180/Math.PI;return new nt((2*Math.atan(Math.exp(t.y/this.R))-Math.PI/2)*r,t.x*r/this.R)},"unproject"),bounds:function(){var t=zl*Math.PI;return new at([-t,-t],[t,t])}()};function ns(t,r,h,c){if(P(t)){this._a=t[0],this._b=t[1],this._c=t[2],this._d=t[3];return}this._a=t,this._b=r,this._c=h,this._d=c}e(ns,"Transformation"),ns.prototype={transform:e(function(t,r){return this._transform(t.clone(),r)},"transform"),_transform:e(function(t,r){return r=r||1,t.x=r*(this._a*t.x+this._b),t.y=r*(this._c*t.y+this._d),t},"_transform"),untransform:e(function(t,r){return r=r||1,new N((t.x/r-this._b)/this._a,(t.y/r-this._d)/this._c)},"untransform")};function go(t,r,h,c){return new ns(t,r,h,c)}e(go,"toTransformation");var rs=l({},ii,{code:"EPSG:3857",projection:os,transformation:function(){var t=.5/(Math.PI*os.R);return go(t,.5,-t,.5)}()}),vc=l({},rs,{code:"EPSG:900913"});function Il(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}e(Il,"svgCreate");function Dl(t,r){var h="",c,m,v,w,M,S;for(c=0,v=t.length;c<v;c++){for(M=t[c],m=0,w=M.length;m<w;m++)S=M[m],h+=(m?"L":"M")+S.x+" "+S.y;h+=r?W.svg?"z":"x":""}return h||"M0 0"}e(Dl,"pointsToPath");var ss=document.documentElement.style,Ln="ActiveXObject"in window,bc=Ln&&!document.addEventListener,Al="msLaunchUri"in navigator&&!("documentMode"in document),as=Ie("webkit"),Bl=Ie("android"),Rl=Ie("android 2")||Ie("android 3"),xc=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),Lc=Bl&&Ie("Google")&&xc<537&&!("AudioNode"in window),ls=!!window.opera,Nl=!Al&&Ie("chrome"),Zl=Ie("gecko")&&!as&&!ls&&!Ln,wc=!Nl&&Ie("safari"),Fl=Ie("phantom"),Gl="OTransition"in ss,Cc=navigator.platform.indexOf("Win")===0,Hl=Ln&&"transition"in ss,hs="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!Rl,Ul="MozPerspective"in ss,kc=!window.L_DISABLE_3D&&(Hl||hs||Ul)&&!Gl&&!Fl,yo=typeof orientation<"u"||Ie("mobile"),Mc=yo&&as,Pc=yo&&hs,Wl=!window.PointerEvent&&window.MSPointerEvent,jl=!!(window.PointerEvent||Wl),Vl="ontouchstart"in window||!!window.TouchEvent,Ec=!window.L_NO_TOUCH&&(Vl||jl),Sc=yo&&ls,Tc=yo&&Zl,Oc=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,zc=function(){var t=!1;try{var r=Object.defineProperty({},"passive",{get:e(function(){t=!0},"get")});window.addEventListener("testPassiveEventSupport",d,r),window.removeEventListener("testPassiveEventSupport",d,r)}catch{}return t}(),Ic=function(){return!!document.createElement("canvas").getContext}(),us=!!(document.createElementNS&&Il("svg").createSVGRect),Dc=!!us&&function(){var t=document.createElement("div");return t.innerHTML="<svg/>",(t.firstChild&&t.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"}(),Ac=!us&&function(){try{var t=document.createElement("div");t.innerHTML='<v:shape adj="1"/>';var r=t.firstChild;return r.style.behavior="url(#default#VML)",r&&typeof r.adj=="object"}catch{return!1}}(),Bc=navigator.platform.indexOf("Mac")===0,Rc=navigator.platform.indexOf("Linux")===0;function Ie(t){return navigator.userAgent.toLowerCase().indexOf(t)>=0}e(Ie,"userAgentContains");var W={ie:Ln,ielt9:bc,edge:Al,webkit:as,android:Bl,android23:Rl,androidStock:Lc,opera:ls,chrome:Nl,gecko:Zl,safari:wc,phantom:Fl,opera12:Gl,win:Cc,ie3d:Hl,webkit3d:hs,gecko3d:Ul,any3d:kc,mobile:yo,mobileWebkit:Mc,mobileWebkit3d:Pc,msPointer:Wl,pointer:jl,touch:Ec,touchNative:Vl,mobileOpera:Sc,mobileGecko:Tc,retina:Oc,passiveEvents:zc,canvas:Ic,svg:us,vml:Ac,inlineSvg:Dc,mac:Bc,linux:Rc},ql=W.msPointer?"MSPointerDown":"pointerdown",Yl=W.msPointer?"MSPointerMove":"pointermove",Xl=W.msPointer?"MSPointerUp":"pointerup",Jl=W.msPointer?"MSPointerCancel":"pointercancel",cs={touchstart:ql,touchmove:Yl,touchend:Xl,touchcancel:Jl},Kl={touchstart:Uc,touchmove:wn,touchend:wn,touchcancel:wn},Ai={},$l=!1;function Nc(t,r,h){return r==="touchstart"&&Hc(),Kl[r]?(h=Kl[r].bind(this,h),t.addEventListener(cs[r],h,!1),h):(console.warn("wrong event specified:",r),d)}e(Nc,"addPointerListener");function Zc(t,r,h){if(!cs[r]){console.warn("wrong event specified:",r);return}t.removeEventListener(cs[r],h,!1)}e(Zc,"removePointerListener");function Fc(t){Ai[t.pointerId]=t}e(Fc,"_globalPointerDown");function Gc(t){Ai[t.pointerId]&&(Ai[t.pointerId]=t)}e(Gc,"_globalPointerMove");function Ql(t){delete Ai[t.pointerId]}e(Ql,"_globalPointerUp");function Hc(){$l||(document.addEventListener(ql,Fc,!0),document.addEventListener(Yl,Gc,!0),document.addEventListener(Xl,Ql,!0),document.addEventListener(Jl,Ql,!0),$l=!0)}e(Hc,"_addPointerDocListener");function wn(t,r){if(r.pointerType!==(r.MSPOINTER_TYPE_MOUSE||"mouse")){r.touches=[];for(var h in Ai)r.touches.push(Ai[h]);r.changedTouches=[r],t(r)}}e(wn,"_handlePointer");function Uc(t,r){r.MSPOINTER_TYPE_TOUCH&&r.pointerType===r.MSPOINTER_TYPE_TOUCH&&$t(r),wn(t,r)}e(Uc,"_onPointerStart");function Wc(t){var r={},h,c;for(c in t)h=t[c],r[c]=h&&h.bind?h.bind(t):h;return t=r,r.type="dblclick",r.detail=2,r.isTrusted=!1,r._simulated=!0,r}e(Wc,"makeDblclick");var jc=200;function Vc(t,r){t.addEventListener("dblclick",r);var h=0,c;function m(v){if(v.detail!==1){c=v.detail;return}if(!(v.pointerType==="mouse"||v.sourceCapabilities&&!v.sourceCapabilities.firesTouchEvents)){var w=nh(v);if(!(w.some(function(S){return S instanceof HTMLLabelElement&&S.attributes.for})&&!w.some(function(S){return S instanceof HTMLInputElement||S instanceof HTMLSelectElement}))){var M=Date.now();M-h<=jc?(c++,c===2&&r(Wc(v))):c=1,h=M}}}return e(m,"simDblclick"),t.addEventListener("click",m),{dblclick:r,simDblclick:m}}e(Vc,"addDoubleTapListener");function qc(t,r){t.removeEventListener("dblclick",r.dblclick),t.removeEventListener("click",r.simDblclick)}e(qc,"removeDoubleTapListener");var ps=Mn(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),vo=Mn(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),th=vo==="webkitTransition"||vo==="OTransition"?vo+"End":"transitionend";function eh(t){return typeof t=="string"?document.getElementById(t):t}e(eh,"get");function bo(t,r){var h=t.style[r]||t.currentStyle&&t.currentStyle[r];if((!h||h==="auto")&&document.defaultView){var c=document.defaultView.getComputedStyle(t,null);h=c?c[r]:null}return h==="auto"?null:h}e(bo,"getStyle");function pt(t,r,h){var c=document.createElement(t);return c.className=r||"",h&&h.appendChild(c),c}e(pt,"create$1");function kt(t){var r=t.parentNode;r&&r.removeChild(t)}e(kt,"remove");function Cn(t){for(;t.firstChild;)t.removeChild(t.firstChild)}e(Cn,"empty");function Bi(t){var r=t.parentNode;r&&r.lastChild!==t&&r.appendChild(t)}e(Bi,"toFront");function Ri(t){var r=t.parentNode;r&&r.firstChild!==t&&r.insertBefore(t,r.firstChild)}e(Ri,"toBack");function ds(t,r){if(t.classList!==void 0)return t.classList.contains(r);var h=kn(t);return h.length>0&&new RegExp("(^|\\s)"+r+"(\\s|$)").test(h)}e(ds,"hasClass");function et(t,r){if(t.classList!==void 0)for(var h=b(r),c=0,m=h.length;c<m;c++)t.classList.add(h[c]);else if(!ds(t,r)){var v=kn(t);fs(t,(v?v+" ":"")+r)}}e(et,"addClass");function Ot(t,r){t.classList!==void 0?t.classList.remove(r):fs(t,_((" "+kn(t)+" ").replace(" "+r+" "," ")))}e(Ot,"removeClass");function fs(t,r){t.className.baseVal===void 0?t.className=r:t.className.baseVal=r}e(fs,"setClass");function kn(t){return t.correspondingElement&&(t=t.correspondingElement),t.className.baseVal===void 0?t.className:t.className.baseVal}e(kn,"getClass");function ve(t,r){"opacity"in t.style?t.style.opacity=r:"filter"in t.style&&Yc(t,r)}e(ve,"setOpacity");function Yc(t,r){var h=!1,c="DXImageTransform.Microsoft.Alpha";try{h=t.filters.item(c)}catch{if(r===1)return}r=Math.round(r*100),h?(h.Enabled=r!==100,h.Opacity=r):t.style.filter+=" progid:"+c+"(opacity="+r+")"}e(Yc,"_setOpacityIE");function Mn(t){for(var r=document.documentElement.style,h=0;h<t.length;h++)if(t[h]in r)return t[h];return!1}e(Mn,"testProp");function fi(t,r,h){var c=r||new N(0,0);t.style[ps]=(W.ie3d?"translate("+c.x+"px,"+c.y+"px)":"translate3d("+c.x+"px,"+c.y+"px,0)")+(h?" scale("+h+")":"")}e(fi,"setTransform");function Bt(t,r){t._leaflet_pos=r,W.any3d?fi(t,r):(t.style.left=r.x+"px",t.style.top=r.y+"px")}e(Bt,"setPosition");function mi(t){return t._leaflet_pos||new N(0,0)}e(mi,"getPosition");var xo,Lo,ms;if("onselectstart"in document)xo=e(function(){$(window,"selectstart",$t)},"disableTextSelection"),Lo=e(function(){Lt(window,"selectstart",$t)},"enableTextSelection");else{var wo=Mn(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);xo=e(function(){if(wo){var t=document.documentElement.style;ms=t[wo],t[wo]="none"}},"disableTextSelection"),Lo=e(function(){wo&&(document.documentElement.style[wo]=ms,ms=void 0)},"enableTextSelection")}function _s(){$(window,"dragstart",$t)}e(_s,"disableImageDrag");function gs(){Lt(window,"dragstart",$t)}e(gs,"enableImageDrag");var Pn,ys;function vs(t){for(;t.tabIndex===-1;)t=t.parentNode;t.style&&(En(),Pn=t,ys=t.style.outlineStyle,t.style.outlineStyle="none",$(window,"keydown",En))}e(vs,"preventOutline");function En(){Pn&&(Pn.style.outlineStyle=ys,Pn=void 0,ys=void 0,Lt(window,"keydown",En))}e(En,"restoreOutline");function ih(t){do t=t.parentNode;while((!t.offsetWidth||!t.offsetHeight)&&t!==document.body);return t}e(ih,"getSizedParentNode");function bs(t){var r=t.getBoundingClientRect();return{x:r.width/t.offsetWidth||1,y:r.height/t.offsetHeight||1,boundingClientRect:r}}e(bs,"getScale");var Xc={__proto__:null,TRANSFORM:ps,TRANSITION:vo,TRANSITION_END:th,get:eh,getStyle:bo,create:pt,remove:kt,empty:Cn,toFront:Bi,toBack:Ri,hasClass:ds,addClass:et,removeClass:Ot,setClass:fs,getClass:kn,setOpacity:ve,testProp:Mn,setTransform:fi,setPosition:Bt,getPosition:mi,get disableTextSelection(){return xo},get enableTextSelection(){return Lo},disableImageDrag:_s,enableImageDrag:gs,preventOutline:vs,restoreOutline:En,getSizedParentNode:ih,getScale:bs};function $(t,r,h,c){if(r&&typeof r=="object")for(var m in r)Ls(t,m,r[m],h);else{r=b(r);for(var v=0,w=r.length;v<w;v++)Ls(t,r[v],h,c)}return this}e($,"on");var De="_leaflet_events";function Lt(t,r,h,c){if(arguments.length===1)oh(t),delete t[De];else if(r&&typeof r=="object")for(var m in r)ws(t,m,r[m],h);else if(r=b(r),arguments.length===2)oh(t,function(M){return T(r,M)!==-1});else for(var v=0,w=r.length;v<w;v++)ws(t,r[v],h,c);return this}e(Lt,"off");function oh(t,r){for(var h in t[De]){var c=h.split(/\d/)[0];(!r||r(c))&&ws(t,c,null,null,h)}}e(oh,"batchRemove");var xs={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function Ls(t,r,h,c){var m=r+u(h)+(c?"_"+u(c):"");if(t[De]&&t[De][m])return this;var v=e(function(M){return h.call(c||t,M||window.event)},"handler"),w=v;!W.touchNative&&W.pointer&&r.indexOf("touch")===0?v=Nc(t,r,v):W.touch&&r==="dblclick"?v=Vc(t,v):"addEventListener"in t?r==="touchstart"||r==="touchmove"||r==="wheel"||r==="mousewheel"?t.addEventListener(xs[r]||r,v,W.passiveEvents?{passive:!1}:!1):r==="mouseenter"||r==="mouseleave"?(v=e(function(M){M=M||window.event,ks(t,M)&&w(M)},"handler"),t.addEventListener(xs[r],v,!1)):t.addEventListener(r,w,!1):t.attachEvent("on"+r,v),t[De]=t[De]||{},t[De][m]=v}e(Ls,"addOne");function ws(t,r,h,c,m){m=m||r+u(h)+(c?"_"+u(c):"");var v=t[De]&&t[De][m];if(!v)return this;!W.touchNative&&W.pointer&&r.indexOf("touch")===0?Zc(t,r,v):W.touch&&r==="dblclick"?qc(t,v):"removeEventListener"in t?t.removeEventListener(xs[r]||r,v,!1):t.detachEvent("on"+r,v),t[De][m]=null}e(ws,"removeOne");function _i(t){return t.stopPropagation?t.stopPropagation():t.originalEvent?t.originalEvent._stopped=!0:t.cancelBubble=!0,this}e(_i,"stopPropagation");function Cs(t){return Ls(t,"wheel",_i),this}e(Cs,"disableScrollPropagation");function Co(t){return $(t,"mousedown touchstart dblclick contextmenu",_i),t._leaflet_disable_click=!0,this}e(Co,"disableClickPropagation");function $t(t){return t.preventDefault?t.preventDefault():t.returnValue=!1,this}e($t,"preventDefault");function gi(t){return $t(t),_i(t),this}e(gi,"stop");function nh(t){if(t.composedPath)return t.composedPath();for(var r=[],h=t.target;h;)r.push(h),h=h.parentNode;return r}e(nh,"getPropagationPath");function rh(t,r){if(!r)return new N(t.clientX,t.clientY);var h=bs(r),c=h.boundingClientRect;return new N((t.clientX-c.left)/h.x-r.clientLeft,(t.clientY-c.top)/h.y-r.clientTop)}e(rh,"getMousePosition");var Jc=W.linux&&W.chrome?window.devicePixelRatio:W.mac?window.devicePixelRatio*3:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function sh(t){return W.edge?t.wheelDeltaY/2:t.deltaY&&t.deltaMode===0?-t.deltaY/Jc:t.deltaY&&t.deltaMode===1?-t.deltaY*20:t.deltaY&&t.deltaMode===2?-t.deltaY*60:t.deltaX||t.deltaZ?0:t.wheelDelta?(t.wheelDeltaY||t.wheelDelta)/2:t.detail&&Math.abs(t.detail)<32765?-t.detail*20:t.detail?t.detail/-32765*60:0}e(sh,"getWheelDelta");function ks(t,r){var h=r.relatedTarget;if(!h)return!0;try{for(;h&&h!==t;)h=h.parentNode}catch{return!1}return h!==t}e(ks,"isExternalTarget");var Kc={__proto__:null,on:$,off:Lt,stopPropagation:_i,disableScrollPropagation:Cs,disableClickPropagation:Co,preventDefault:$t,stop:gi,getPropagationPath:nh,getMousePosition:rh,getWheelDelta:sh,isExternalTarget:ks,addListener:$,removeListener:Lt},ah=I.extend({run:e(function(t,r,h,c){this.stop(),this._el=t,this._inProgress=!0,this._duration=h||.25,this._easeOutPower=1/Math.max(c||.5,.2),this._startPos=mi(t),this._offset=r.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},"run"),stop:e(function(){this._inProgress&&(this._step(!0),this._complete())},"stop"),_animate:e(function(){this._animId=X(this._animate,this),this._step()},"_animate"),_step:e(function(t){var r=+new Date-this._startTime,h=this._duration*1e3;r<h?this._runFrame(this._easeOut(r/h),t):(this._runFrame(1),this._complete())},"_step"),_runFrame:e(function(t,r){var h=this._startPos.add(this._offset.multiplyBy(t));r&&h._round(),Bt(this._el,h),this.fire("step")},"_runFrame"),_complete:e(function(){ot(this._animId),this._inProgress=!1,this.fire("end")},"_complete"),_easeOut:e(function(t){return 1-Math.pow(1-t,this._easeOutPower)},"_easeOut")}),ct=I.extend({options:{crs:rs,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:e(function(t,r){r=y(this,r),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(t),this._initLayout(),this._onResize=i(this._onResize,this),this._initEvents(),r.maxBounds&&this.setMaxBounds(r.maxBounds),r.zoom!==void 0&&(this._zoom=this._limitZoom(r.zoom)),r.center&&r.zoom!==void 0&&this.setView(it(r.center),r.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=vo&&W.any3d&&!W.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),$(this._proxy,th,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},"initialize"),setView:e(function(t,r,h){if(r=r===void 0?this._zoom:this._limitZoom(r),t=this._limitCenter(it(t),r,this.options.maxBounds),h=h||{},this._stop(),this._loaded&&!h.reset&&h!==!0){h.animate!==void 0&&(h.zoom=l({animate:h.animate},h.zoom),h.pan=l({animate:h.animate,duration:h.duration},h.pan));var c=this._zoom!==r?this._tryAnimatedZoom&&this._tryAnimatedZoom(t,r,h.zoom):this._tryAnimatedPan(t,h.pan);if(c)return clearTimeout(this._sizeTimer),this}return this._resetView(t,r,h.pan&&h.pan.noMoveStart),this},"setView"),setZoom:e(function(t,r){return this._loaded?this.setView(this.getCenter(),t,{zoom:r}):(this._zoom=t,this)},"setZoom"),zoomIn:e(function(t,r){return t=t||(W.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+t,r)},"zoomIn"),zoomOut:e(function(t,r){return t=t||(W.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-t,r)},"zoomOut"),setZoomAround:e(function(t,r,h){var c=this.getZoomScale(r),m=this.getSize().divideBy(2),v=t instanceof N?t:this.latLngToContainerPoint(t),w=v.subtract(m).multiplyBy(1-1/c),M=this.containerPointToLatLng(m.add(w));return this.setView(M,r,{zoom:h})},"setZoomAround"),_getBoundsCenterZoom:e(function(t,r){r=r||{},t=t.getBounds?t.getBounds():_t(t);var h=U(r.paddingTopLeft||r.padding||[0,0]),c=U(r.paddingBottomRight||r.padding||[0,0]),m=this.getBoundsZoom(t,!1,h.add(c));if(m=typeof r.maxZoom=="number"?Math.min(r.maxZoom,m):m,m===1/0)return{center:t.getCenter(),zoom:m};var v=c.subtract(h).divideBy(2),w=this.project(t.getSouthWest(),m),M=this.project(t.getNorthEast(),m),S=this.unproject(w.add(M).divideBy(2).add(v),m);return{center:S,zoom:m}},"_getBoundsCenterZoom"),fitBounds:e(function(t,r){if(t=_t(t),!t.isValid())throw new Error("Bounds are not valid.");var h=this._getBoundsCenterZoom(t,r);return this.setView(h.center,h.zoom,r)},"fitBounds"),fitWorld:e(function(t){return this.fitBounds([[-90,-180],[90,180]],t)},"fitWorld"),panTo:e(function(t,r){return this.setView(t,this._zoom,{pan:r})},"panTo"),panBy:e(function(t,r){if(t=U(t).round(),r=r||{},!t.x&&!t.y)return this.fire("moveend");if(r.animate!==!0&&!this.getSize().contains(t))return this._resetView(this.unproject(this.project(this.getCenter()).add(t)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new ah,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),r.noMoveStart||this.fire("movestart"),r.animate!==!1){et(this._mapPane,"leaflet-pan-anim");var h=this._getMapPanePos().subtract(t).round();this._panAnim.run(this._mapPane,h,r.duration||.25,r.easeLinearity)}else this._rawPanBy(t),this.fire("move").fire("moveend");return this},"panBy"),flyTo:e(function(t,r,h){if(h=h||{},h.animate===!1||!W.any3d)return this.setView(t,r,h);this._stop();var c=this.project(this.getCenter()),m=this.project(t),v=this.getSize(),w=this._zoom;t=it(t),r=r===void 0?w:r;var M=Math.max(v.x,v.y),S=M*this.getZoomScale(w,r),z=m.distanceTo(c)||1,F=1.42,V=F*F;function rt(Rt){var Fn=Rt?-1:1,Zp=Rt?S:M,Fp=S*S-M*M+Fn*V*V*z*z,Gp=2*Zp*V*z,Bs=Fp/Gp,Gh=Math.sqrt(Bs*Bs+1)-Bs,Hp=Gh<1e-9?-18:Math.log(Gh);return Hp}e(rt,"r");function ee(Rt){return(Math.exp(Rt)-Math.exp(-Rt))/2}e(ee,"sinh");function qt(Rt){return(Math.exp(Rt)+Math.exp(-Rt))/2}e(qt,"cosh");function xe(Rt){return ee(Rt)/qt(Rt)}e(xe,"tanh");var ae=rt(0);function Ui(Rt){return M*(qt(ae)/qt(ae+F*Rt))}e(Ui,"w");function Ap(Rt){return M*(qt(ae)*xe(ae+F*Rt)-ee(ae))/V}e(Ap,"u");function Bp(Rt){return 1-Math.pow(1-Rt,1.5)}e(Bp,"easeOut");var Rp=Date.now(),Zh=(rt(1)-ae)/F,Np=h.duration?1e3*h.duration:1e3*Zh*.8;function Fh(){var Rt=(Date.now()-Rp)/Np,Fn=Bp(Rt)*Zh;Rt<=1?(this._flyToFrame=X(Fh,this),this._move(this.unproject(c.add(m.subtract(c).multiplyBy(Ap(Fn)/z)),w),this.getScaleZoom(M/Ui(Fn),w),{flyTo:!0})):this._move(t,r)._moveEnd(!0)}return e(Fh,"frame"),this._moveStart(!0,h.noMoveStart),Fh.call(this),this},"flyTo"),flyToBounds:e(function(t,r){var h=this._getBoundsCenterZoom(t,r);return this.flyTo(h.center,h.zoom,r)},"flyToBounds"),setMaxBounds:e(function(t){return t=_t(t),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),t.isValid()?(this.options.maxBounds=t,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},"setMaxBounds"),setMinZoom:e(function(t){var r=this.options.minZoom;return this.options.minZoom=t,this._loaded&&r!==t&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(t):this},"setMinZoom"),setMaxZoom:e(function(t){var r=this.options.maxZoom;return this.options.maxZoom=t,this._loaded&&r!==t&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(t):this},"setMaxZoom"),panInsideBounds:e(function(t,r){this._enforcingBounds=!0;var h=this.getCenter(),c=this._limitCenter(h,this._zoom,_t(t));return h.equals(c)||this.panTo(c,r),this._enforcingBounds=!1,this},"panInsideBounds"),panInside:e(function(t,r){r=r||{};var h=U(r.paddingTopLeft||r.padding||[0,0]),c=U(r.paddingBottomRight||r.padding||[0,0]),m=this.project(this.getCenter()),v=this.project(t),w=this.getPixelBounds(),M=At([w.min.add(h),w.max.subtract(c)]),S=M.getSize();if(!M.contains(v)){this._enforcingBounds=!0;var z=v.subtract(M.getCenter()),F=M.extend(v).getSize().subtract(S);m.x+=z.x<0?-F.x:F.x,m.y+=z.y<0?-F.y:F.y,this.panTo(this.unproject(m),r),this._enforcingBounds=!1}return this},"panInside"),invalidateSize:e(function(t){if(!this._loaded)return this;t=l({animate:!1,pan:!0},t===!0?{animate:!0}:t);var r=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var h=this.getSize(),c=r.divideBy(2).round(),m=h.divideBy(2).round(),v=c.subtract(m);return!v.x&&!v.y?this:(t.animate&&t.pan?this.panBy(v):(t.pan&&this._rawPanBy(v),this.fire("move"),t.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(i(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:r,newSize:h}))},"invalidateSize"),stop:e(function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},"stop"),locate:e(function(t){if(t=this._locateOptions=l({timeout:1e4,watch:!1},t),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var r=i(this._handleGeolocationResponse,this),h=i(this._handleGeolocationError,this);return t.watch?this._locationWatchId=navigator.geolocation.watchPosition(r,h,t):navigator.geolocation.getCurrentPosition(r,h,t),this},"locate"),stopLocate:e(function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},"stopLocate"),_handleGeolocationError:e(function(t){if(this._container._leaflet_id){var r=t.code,h=t.message||(r===1?"permission denied":r===2?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:r,message:"Geolocation error: "+h+"."})}},"_handleGeolocationError"),_handleGeolocationResponse:e(function(t){if(this._container._leaflet_id){var r=t.coords.latitude,h=t.coords.longitude,c=new nt(r,h),m=c.toBounds(t.coords.accuracy*2),v=this._locateOptions;if(v.setView){var w=this.getBoundsZoom(m);this.setView(c,v.maxZoom?Math.min(w,v.maxZoom):w)}var M={latlng:c,bounds:m,timestamp:t.timestamp};for(var S in t.coords)typeof t.coords[S]=="number"&&(M[S]=t.coords[S]);this.fire("locationfound",M)}},"_handleGeolocationResponse"),addHandler:e(function(t,r){if(!r)return this;var h=this[t]=new r(this);return this._handlers.push(h),this.options[t]&&h.enable(),this},"addHandler"),remove:e(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(),kt(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(ot(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload");var t;for(t in this._layers)this._layers[t].remove();for(t in this._panes)kt(this._panes[t]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},"remove"),createPane:e(function(t,r){var h="leaflet-pane"+(t?" leaflet-"+t.replace("Pane","")+"-pane":""),c=pt("div",h,r||this._mapPane);return t&&(this._panes[t]=c),c},"createPane"),getCenter:e(function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},"getCenter"),getZoom:e(function(){return this._zoom},"getZoom"),getBounds:e(function(){var t=this.getPixelBounds(),r=this.unproject(t.getBottomLeft()),h=this.unproject(t.getTopRight());return new Ct(r,h)},"getBounds"),getMinZoom:e(function(){return this.options.minZoom===void 0?this._layersMinZoom||0:this.options.minZoom},"getMinZoom"),getMaxZoom:e(function(){return this.options.maxZoom===void 0?this._layersMaxZoom===void 0?1/0:this._layersMaxZoom:this.options.maxZoom},"getMaxZoom"),getBoundsZoom:e(function(t,r,h){t=_t(t),h=U(h||[0,0]);var c=this.getZoom()||0,m=this.getMinZoom(),v=this.getMaxZoom(),w=t.getNorthWest(),M=t.getSouthEast(),S=this.getSize().subtract(h),z=At(this.project(M,c),this.project(w,c)).getSize(),F=W.any3d?this.options.zoomSnap:1,V=S.x/z.x,rt=S.y/z.y,ee=r?Math.max(V,rt):Math.min(V,rt);return c=this.getScaleZoom(ee,c),F&&(c=Math.round(c/(F/100))*(F/100),c=r?Math.ceil(c/F)*F:Math.floor(c/F)*F),Math.max(m,Math.min(v,c))},"getBoundsZoom"),getSize:e(function(){return(!this._size||this._sizeChanged)&&(this._size=new N(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},"getSize"),getPixelBounds:e(function(t,r){var h=this._getTopLeftPoint(t,r);return new at(h,h.add(this.getSize()))},"getPixelBounds"),getPixelOrigin:e(function(){return this._checkIfLoaded(),this._pixelOrigin},"getPixelOrigin"),getPixelWorldBounds:e(function(t){return this.options.crs.getProjectedBounds(t===void 0?this.getZoom():t)},"getPixelWorldBounds"),getPane:e(function(t){return typeof t=="string"?this._panes[t]:t},"getPane"),getPanes:e(function(){return this._panes},"getPanes"),getContainer:e(function(){return this._container},"getContainer"),getZoomScale:e(function(t,r){var h=this.options.crs;return r=r===void 0?this._zoom:r,h.scale(t)/h.scale(r)},"getZoomScale"),getScaleZoom:e(function(t,r){var h=this.options.crs;r=r===void 0?this._zoom:r;var c=h.zoom(t*h.scale(r));return isNaN(c)?1/0:c},"getScaleZoom"),project:e(function(t,r){return r=r===void 0?this._zoom:r,this.options.crs.latLngToPoint(it(t),r)},"project"),unproject:e(function(t,r){return r=r===void 0?this._zoom:r,this.options.crs.pointToLatLng(U(t),r)},"unproject"),layerPointToLatLng:e(function(t){var r=U(t).add(this.getPixelOrigin());return this.unproject(r)},"layerPointToLatLng"),latLngToLayerPoint:e(function(t){var r=this.project(it(t))._round();return r._subtract(this.getPixelOrigin())},"latLngToLayerPoint"),wrapLatLng:e(function(t){return this.options.crs.wrapLatLng(it(t))},"wrapLatLng"),wrapLatLngBounds:e(function(t){return this.options.crs.wrapLatLngBounds(_t(t))},"wrapLatLngBounds"),distance:e(function(t,r){return this.options.crs.distance(it(t),it(r))},"distance"),containerPointToLayerPoint:e(function(t){return U(t).subtract(this._getMapPanePos())},"containerPointToLayerPoint"),layerPointToContainerPoint:e(function(t){return U(t).add(this._getMapPanePos())},"layerPointToContainerPoint"),containerPointToLatLng:e(function(t){var r=this.containerPointToLayerPoint(U(t));return this.layerPointToLatLng(r)},"containerPointToLatLng"),latLngToContainerPoint:e(function(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint(it(t)))},"latLngToContainerPoint"),mouseEventToContainerPoint:e(function(t){return rh(t,this._container)},"mouseEventToContainerPoint"),mouseEventToLayerPoint:e(function(t){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(t))},"mouseEventToLayerPoint"),mouseEventToLatLng:e(function(t){return this.layerPointToLatLng(this.mouseEventToLayerPoint(t))},"mouseEventToLatLng"),_initContainer:e(function(t){var r=this._container=eh(t);if(r){if(r._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");$(r,"scroll",this._onScroll,this),this._containerId=u(r)},"_initContainer"),_initLayout:e(function(){var t=this._container;this._fadeAnimated=this.options.fadeAnimation&&W.any3d,et(t,"leaflet-container"+(W.touch?" leaflet-touch":"")+(W.retina?" leaflet-retina":"")+(W.ielt9?" leaflet-oldie":"")+(W.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var r=bo(t,"position");r!=="absolute"&&r!=="relative"&&r!=="fixed"&&r!=="sticky"&&(t.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},"_initLayout"),_initPanes:e(function(){var t=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),Bt(this._mapPane,new N(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(et(t.markerPane,"leaflet-zoom-hide"),et(t.shadowPane,"leaflet-zoom-hide"))},"_initPanes"),_resetView:e(function(t,r,h){Bt(this._mapPane,new N(0,0));var c=!this._loaded;this._loaded=!0,r=this._limitZoom(r),this.fire("viewprereset");var m=this._zoom!==r;this._moveStart(m,h)._move(t,r)._moveEnd(m),this.fire("viewreset"),c&&this.fire("load")},"_resetView"),_moveStart:e(function(t,r){return t&&this.fire("zoomstart"),r||this.fire("movestart"),this},"_moveStart"),_move:e(function(t,r,h,c){r===void 0&&(r=this._zoom);var m=this._zoom!==r;return this._zoom=r,this._lastCenter=t,this._pixelOrigin=this._getNewPixelOrigin(t),c?h&&h.pinch&&this.fire("zoom",h):((m||h&&h.pinch)&&this.fire("zoom",h),this.fire("move",h)),this},"_move"),_moveEnd:e(function(t){return t&&this.fire("zoomend"),this.fire("moveend")},"_moveEnd"),_stop:e(function(){return ot(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},"_stop"),_rawPanBy:e(function(t){Bt(this._mapPane,this._getMapPanePos().subtract(t))},"_rawPanBy"),_getZoomSpan:e(function(){return this.getMaxZoom()-this.getMinZoom()},"_getZoomSpan"),_panInsideMaxBounds:e(function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},"_panInsideMaxBounds"),_checkIfLoaded:e(function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},"_checkIfLoaded"),_initEvents:e(function(t){this._targets={},this._targets[u(this._container)]=this;var r=t?Lt:$;r(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&r(window,"resize",this._onResize,this),W.any3d&&this.options.transform3DLimit&&(t?this.off:this.on).call(this,"moveend",this._onMoveEnd)},"_initEvents"),_onResize:e(function(){ot(this._resizeRequest),this._resizeRequest=X(function(){this.invalidateSize({debounceMoveend:!0})},this)},"_onResize"),_onScroll:e(function(){this._container.scrollTop=0,this._container.scrollLeft=0},"_onScroll"),_onMoveEnd:e(function(){var t=this._getMapPanePos();Math.max(Math.abs(t.x),Math.abs(t.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},"_onMoveEnd"),_findEventTargets:e(function(t,r){for(var h=[],c,m=r==="mouseout"||r==="mouseover",v=t.target||t.srcElement,w=!1;v;){if(c=this._targets[u(v)],c&&(r==="click"||r==="preclick")&&this._draggableMoved(c)){w=!0;break}if(c&&c.listens(r,!0)&&(m&&!ks(v,t)||(h.push(c),m))||v===this._container)break;v=v.parentNode}return!h.length&&!w&&!m&&this.listens(r,!0)&&(h=[this]),h},"_findEventTargets"),_isClickDisabled:e(function(t){for(;t&&t!==this._container;){if(t._leaflet_disable_click)return!0;t=t.parentNode}},"_isClickDisabled"),_handleDOMEvent:e(function(t){var r=t.target||t.srcElement;if(!(!this._loaded||r._leaflet_disable_events||t.type==="click"&&this._isClickDisabled(r))){var h=t.type;h==="mousedown"&&vs(r),this._fireDOMEvent(t,h)}},"_handleDOMEvent"),_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:e(function(t,r,h){if(t.type==="click"){var c=l({},t);c.type="preclick",this._fireDOMEvent(c,c.type,h)}var m=this._findEventTargets(t,r);if(h){for(var v=[],w=0;w<h.length;w++)h[w].listens(r,!0)&&v.push(h[w]);m=v.concat(m)}if(m.length){r==="contextmenu"&&$t(t);var M=m[0],S={originalEvent:t};if(t.type!=="keypress"&&t.type!=="keydown"&&t.type!=="keyup"){var z=M.getLatLng&&(!M._radius||M._radius<=10);S.containerPoint=z?this.latLngToContainerPoint(M.getLatLng()):this.mouseEventToContainerPoint(t),S.layerPoint=this.containerPointToLayerPoint(S.containerPoint),S.latlng=z?M.getLatLng():this.layerPointToLatLng(S.layerPoint)}for(w=0;w<m.length;w++)if(m[w].fire(r,S,!0),S.originalEvent._stopped||m[w].options.bubblingMouseEvents===!1&&T(this._mouseEvents,r)!==-1)return}},"_fireDOMEvent"),_draggableMoved:e(function(t){return t=t.dragging&&t.dragging.enabled()?t:this,t.dragging&&t.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},"_draggableMoved"),_clearHandlers:e(function(){for(var t=0,r=this._handlers.length;t<r;t++)this._handlers[t].disable()},"_clearHandlers"),whenReady:e(function(t,r){return this._loaded?t.call(r||this,{target:this}):this.on("load",t,r),this},"whenReady"),_getMapPanePos:e(function(){return mi(this._mapPane)||new N(0,0)},"_getMapPanePos"),_moved:e(function(){var t=this._getMapPanePos();return t&&!t.equals([0,0])},"_moved"),_getTopLeftPoint:e(function(t,r){var h=t&&r!==void 0?this._getNewPixelOrigin(t,r):this.getPixelOrigin();return h.subtract(this._getMapPanePos())},"_getTopLeftPoint"),_getNewPixelOrigin:e(function(t,r){var h=this.getSize()._divideBy(2);return this.project(t,r)._subtract(h)._add(this._getMapPanePos())._round()},"_getNewPixelOrigin"),_latLngToNewLayerPoint:e(function(t,r,h){var c=this._getNewPixelOrigin(h,r);return this.project(t,r)._subtract(c)},"_latLngToNewLayerPoint"),_latLngBoundsToNewLayerBounds:e(function(t,r,h){var c=this._getNewPixelOrigin(h,r);return At([this.project(t.getSouthWest(),r)._subtract(c),this.project(t.getNorthWest(),r)._subtract(c),this.project(t.getSouthEast(),r)._subtract(c),this.project(t.getNorthEast(),r)._subtract(c)])},"_latLngBoundsToNewLayerBounds"),_getCenterLayerPoint:e(function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},"_getCenterLayerPoint"),_getCenterOffset:e(function(t){return this.latLngToLayerPoint(t).subtract(this._getCenterLayerPoint())},"_getCenterOffset"),_limitCenter:e(function(t,r,h){if(!h)return t;var c=this.project(t,r),m=this.getSize().divideBy(2),v=new at(c.subtract(m),c.add(m)),w=this._getBoundsOffset(v,h,r);return Math.abs(w.x)<=1&&Math.abs(w.y)<=1?t:this.unproject(c.add(w),r)},"_limitCenter"),_limitOffset:e(function(t,r){if(!r)return t;var h=this.getPixelBounds(),c=new at(h.min.add(t),h.max.add(t));return t.add(this._getBoundsOffset(c,r))},"_limitOffset"),_getBoundsOffset:e(function(t,r,h){var c=At(this.project(r.getNorthEast(),h),this.project(r.getSouthWest(),h)),m=c.min.subtract(t.min),v=c.max.subtract(t.max),w=this._rebound(m.x,-v.x),M=this._rebound(m.y,-v.y);return new N(w,M)},"_getBoundsOffset"),_rebound:e(function(t,r){return t+r>0?Math.round(t-r)/2:Math.max(0,Math.ceil(t))-Math.max(0,Math.floor(r))},"_rebound"),_limitZoom:e(function(t){var r=this.getMinZoom(),h=this.getMaxZoom(),c=W.any3d?this.options.zoomSnap:1;return c&&(t=Math.round(t/c)*c),Math.max(r,Math.min(h,t))},"_limitZoom"),_onPanTransitionStep:e(function(){this.fire("move")},"_onPanTransitionStep"),_onPanTransitionEnd:e(function(){Ot(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},"_onPanTransitionEnd"),_tryAnimatedPan:e(function(t,r){var h=this._getCenterOffset(t)._trunc();return(r&&r.animate)!==!0&&!this.getSize().contains(h)?!1:(this.panBy(h,r),!0)},"_tryAnimatedPan"),_createAnimProxy:e(function(){var t=this._proxy=pt("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(t),this.on("zoomanim",function(r){var h=ps,c=this._proxy.style[h];fi(this._proxy,this.project(r.center,r.zoom),this.getZoomScale(r.zoom,1)),c===this._proxy.style[h]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},"_createAnimProxy"),_destroyAnimProxy:e(function(){kt(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},"_destroyAnimProxy"),_animMoveEnd:e(function(){var t=this.getCenter(),r=this.getZoom();fi(this._proxy,this.project(t,r),this.getZoomScale(r,1))},"_animMoveEnd"),_catchTransitionEnd:e(function(t){this._animatingZoom&&t.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},"_catchTransitionEnd"),_nothingToAnimate:e(function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},"_nothingToAnimate"),_tryAnimatedZoom:e(function(t,r,h){if(this._animatingZoom)return!0;if(h=h||{},!this._zoomAnimated||h.animate===!1||this._nothingToAnimate()||Math.abs(r-this._zoom)>this.options.zoomAnimationThreshold)return!1;var c=this.getZoomScale(r),m=this._getCenterOffset(t)._divideBy(1-1/c);return h.animate!==!0&&!this.getSize().contains(m)?!1:(X(function(){this._moveStart(!0,h.noMoveStart||!1)._animateZoom(t,r,!0)},this),!0)},"_tryAnimatedZoom"),_animateZoom:e(function(t,r,h,c){this._mapPane&&(h&&(this._animatingZoom=!0,this._animateToCenter=t,this._animateToZoom=r,et(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:t,zoom:r,noUpdate:c}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(i(this._onZoomTransitionEnd,this),250))},"_animateZoom"),_onZoomTransitionEnd:e(function(){this._animatingZoom&&(this._mapPane&&Ot(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))},"_onZoomTransitionEnd")});function $c(t,r){return new ct(t,r)}e($c,"createMap");var ke=xt.extend({options:{position:"topright"},initialize:e(function(t){y(this,t)},"initialize"),getPosition:e(function(){return this.options.position},"getPosition"),setPosition:e(function(t){var r=this._map;return r&&r.removeControl(this),this.options.position=t,r&&r.addControl(this),this},"setPosition"),getContainer:e(function(){return this._container},"getContainer"),addTo:e(function(t){this.remove(),this._map=t;var r=this._container=this.onAdd(t),h=this.getPosition(),c=t._controlCorners[h];return et(r,"leaflet-control"),h.indexOf("bottom")!==-1?c.insertBefore(r,c.firstChild):c.appendChild(r),this._map.on("unload",this.remove,this),this},"addTo"),remove:e(function(){return this._map?(kt(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},"remove"),_refocusOnMap:e(function(t){this._map&&t&&t.screenX>0&&t.screenY>0&&this._map.getContainer().focus()},"_refocusOnMap")}),ko=e(function(t){return new ke(t)},"control");ct.include({addControl:e(function(t){return t.addTo(this),this},"addControl"),removeControl:e(function(t){return t.remove(),this},"removeControl"),_initControlPos:e(function(){var t=this._controlCorners={},r="leaflet-",h=this._controlContainer=pt("div",r+"control-container",this._container);function c(m,v){var w=r+m+" "+r+v;t[m+v]=pt("div",w,h)}e(c,"createCorner"),c("top","left"),c("top","right"),c("bottom","left"),c("bottom","right")},"_initControlPos"),_clearControlPos:e(function(){for(var t in this._controlCorners)kt(this._controlCorners[t]);kt(this._controlContainer),delete this._controlCorners,delete this._controlContainer},"_clearControlPos")});var lh=ke.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:e(function(t,r,h,c){return h<c?-1:c<h?1:0},"sortFunction")},initialize:e(function(t,r,h){y(this,h),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1;for(var c in t)this._addLayer(t[c],c);for(c in r)this._addLayer(r[c],c,!0)},"initialize"),onAdd:e(function(t){this._initLayout(),this._update(),this._map=t,t.on("zoomend",this._checkDisabledLayers,this);for(var r=0;r<this._layers.length;r++)this._layers[r].layer.on("add remove",this._onLayerChange,this);return this._container},"onAdd"),addTo:e(function(t){return ke.prototype.addTo.call(this,t),this._expandIfNotCollapsed()},"addTo"),onRemove:e(function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var t=0;t<this._layers.length;t++)this._layers[t].layer.off("add remove",this._onLayerChange,this)},"onRemove"),addBaseLayer:e(function(t,r){return this._addLayer(t,r),this._map?this._update():this},"addBaseLayer"),addOverlay:e(function(t,r){return this._addLayer(t,r,!0),this._map?this._update():this},"addOverlay"),removeLayer:e(function(t){t.off("add remove",this._onLayerChange,this);var r=this._getLayer(u(t));return r&&this._layers.splice(this._layers.indexOf(r),1),this._map?this._update():this},"removeLayer"),expand:e(function(){et(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var t=this._map.getSize().y-(this._container.offsetTop+50);return t<this._section.clientHeight?(et(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=t+"px"):Ot(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},"expand"),collapse:e(function(){return Ot(this._container,"leaflet-control-layers-expanded"),this},"collapse"),_initLayout:e(function(){var t="leaflet-control-layers",r=this._container=pt("div",t),h=this.options.collapsed;r.setAttribute("aria-haspopup",!0),Co(r),Cs(r);var c=this._section=pt("section",t+"-list");h&&(this._map.on("click",this.collapse,this),$(r,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var m=this._layersLink=pt("a",t+"-toggle",r);m.href="#",m.title="Layers",m.setAttribute("role","button"),$(m,{keydown:e(function(v){v.keyCode===13&&this._expandSafely()},"keydown"),click:e(function(v){$t(v),this._expandSafely()},"click")},this),h||this.expand(),this._baseLayersList=pt("div",t+"-base",c),this._separator=pt("div",t+"-separator",c),this._overlaysList=pt("div",t+"-overlays",c),r.appendChild(c)},"_initLayout"),_getLayer:e(function(t){for(var r=0;r<this._layers.length;r++)if(this._layers[r]&&u(this._layers[r].layer)===t)return this._layers[r]},"_getLayer"),_addLayer:e(function(t,r,h){this._map&&t.on("add remove",this._onLayerChange,this),this._layers.push({layer:t,name:r,overlay:h}),this.options.sortLayers&&this._layers.sort(i(function(c,m){return this.options.sortFunction(c.layer,m.layer,c.name,m.name)},this)),this.options.autoZIndex&&t.setZIndex&&(this._lastZIndex++,t.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},"_addLayer"),_update:e(function(){if(!this._container)return this;Cn(this._baseLayersList),Cn(this._overlaysList),this._layerControlInputs=[];var t,r,h,c,m=0;for(h=0;h<this._layers.length;h++)c=this._layers[h],this._addItem(c),r=r||c.overlay,t=t||!c.overlay,m+=c.overlay?0:1;return this.options.hideSingleBase&&(t=t&&m>1,this._baseLayersList.style.display=t?"":"none"),this._separator.style.display=r&&t?"":"none",this},"_update"),_onLayerChange:e(function(t){this._handlingClick||this._update();var r=this._getLayer(u(t.target)),h=r.overlay?t.type==="add"?"overlayadd":"overlayremove":t.type==="add"?"baselayerchange":null;h&&this._map.fire(h,r)},"_onLayerChange"),_createRadioElement:e(function(t,r){var h='<input type="radio" class="leaflet-control-layers-selector" name="'+t+'"'+(r?' checked="checked"':"")+"/>",c=document.createElement("div");return c.innerHTML=h,c.firstChild},"_createRadioElement"),_addItem:e(function(t){var r=document.createElement("label"),h=this._map.hasLayer(t.layer),c;t.overlay?(c=document.createElement("input"),c.type="checkbox",c.className="leaflet-control-layers-selector",c.defaultChecked=h):c=this._createRadioElement("leaflet-base-layers_"+u(this),h),this._layerControlInputs.push(c),c.layerId=u(t.layer),$(c,"click",this._onInputClick,this);var m=document.createElement("span");m.innerHTML=" "+t.name;var v=document.createElement("span");r.appendChild(v),v.appendChild(c),v.appendChild(m);var w=t.overlay?this._overlaysList:this._baseLayersList;return w.appendChild(r),this._checkDisabledLayers(),r},"_addItem"),_onInputClick:e(function(){if(!this._preventClick){var t=this._layerControlInputs,r,h,c=[],m=[];this._handlingClick=!0;for(var v=t.length-1;v>=0;v--)r=t[v],h=this._getLayer(r.layerId).layer,r.checked?c.push(h):r.checked||m.push(h);for(v=0;v<m.length;v++)this._map.hasLayer(m[v])&&this._map.removeLayer(m[v]);for(v=0;v<c.length;v++)this._map.hasLayer(c[v])||this._map.addLayer(c[v]);this._handlingClick=!1,this._refocusOnMap()}},"_onInputClick"),_checkDisabledLayers:e(function(){for(var t=this._layerControlInputs,r,h,c=this._map.getZoom(),m=t.length-1;m>=0;m--)r=t[m],h=this._getLayer(r.layerId).layer,r.disabled=h.options.minZoom!==void 0&&c<h.options.minZoom||h.options.maxZoom!==void 0&&c>h.options.maxZoom},"_checkDisabledLayers"),_expandIfNotCollapsed:e(function(){return this._map&&!this.options.collapsed&&this.expand(),this},"_expandIfNotCollapsed"),_expandSafely:e(function(){var t=this._section;this._preventClick=!0,$(t,"click",$t),this.expand();var r=this;setTimeout(function(){Lt(t,"click",$t),r._preventClick=!1})},"_expandSafely")}),Qc=e(function(t,r,h){return new lh(t,r,h)},"layers"),Ms=ke.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">&#x2212;</span>',zoomOutTitle:"Zoom out"},onAdd:e(function(t){var r="leaflet-control-zoom",h=pt("div",r+" leaflet-bar"),c=this.options;return this._zoomInButton=this._createButton(c.zoomInText,c.zoomInTitle,r+"-in",h,this._zoomIn),this._zoomOutButton=this._createButton(c.zoomOutText,c.zoomOutTitle,r+"-out",h,this._zoomOut),this._updateDisabled(),t.on("zoomend zoomlevelschange",this._updateDisabled,this),h},"onAdd"),onRemove:e(function(t){t.off("zoomend zoomlevelschange",this._updateDisabled,this)},"onRemove"),disable:e(function(){return this._disabled=!0,this._updateDisabled(),this},"disable"),enable:e(function(){return this._disabled=!1,this._updateDisabled(),this},"enable"),_zoomIn:e(function(t){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(t.shiftKey?3:1))},"_zoomIn"),_zoomOut:e(function(t){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(t.shiftKey?3:1))},"_zoomOut"),_createButton:e(function(t,r,h,c,m){var v=pt("a",h,c);return v.innerHTML=t,v.href="#",v.title=r,v.setAttribute("role","button"),v.setAttribute("aria-label",r),Co(v),$(v,"click",gi),$(v,"click",m,this),$(v,"click",this._refocusOnMap,this),v},"_createButton"),_updateDisabled:e(function(){var t=this._map,r="leaflet-disabled";Ot(this._zoomInButton,r),Ot(this._zoomOutButton,r),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||t._zoom===t.getMinZoom())&&(et(this._zoomOutButton,r),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||t._zoom===t.getMaxZoom())&&(et(this._zoomInButton,r),this._zoomInButton.setAttribute("aria-disabled","true"))},"_updateDisabled")});ct.mergeOptions({zoomControl:!0}),ct.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new Ms,this.addControl(this.zoomControl))});var tp=e(function(t){return new Ms(t)},"zoom"),hh=ke.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:e(function(t){var r="leaflet-control-scale",h=pt("div",r),c=this.options;return this._addScales(c,r+"-line",h),t.on(c.updateWhenIdle?"moveend":"move",this._update,this),t.whenReady(this._update,this),h},"onAdd"),onRemove:e(function(t){t.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},"onRemove"),_addScales:e(function(t,r,h){t.metric&&(this._mScale=pt("div",r,h)),t.imperial&&(this._iScale=pt("div",r,h))},"_addScales"),_update:e(function(){var t=this._map,r=t.getSize().y/2,h=t.distance(t.containerPointToLatLng([0,r]),t.containerPointToLatLng([this.options.maxWidth,r]));this._updateScales(h)},"_update"),_updateScales:e(function(t){this.options.metric&&t&&this._updateMetric(t),this.options.imperial&&t&&this._updateImperial(t)},"_updateScales"),_updateMetric:e(function(t){var r=this._getRoundNum(t),h=r<1e3?r+" m":r/1e3+" km";this._updateScale(this._mScale,h,r/t)},"_updateMetric"),_updateImperial:e(function(t){var r=t*3.2808399,h,c,m;r>5280?(h=r/5280,c=this._getRoundNum(h),this._updateScale(this._iScale,c+" mi",c/h)):(m=this._getRoundNum(r),this._updateScale(this._iScale,m+" ft",m/r))},"_updateImperial"),_updateScale:e(function(t,r,h){t.style.width=Math.round(this.options.maxWidth*h)+"px",t.innerHTML=r},"_updateScale"),_getRoundNum:e(function(t){var r=Math.pow(10,(Math.floor(t)+"").length-1),h=t/r;return h=h>=10?10:h>=5?5:h>=3?3:h>=2?2:1,r*h},"_getRoundNum")}),ep=e(function(t){return new hh(t)},"scale"),ip='<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>',Ps=ke.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(W.inlineSvg?ip+" ":"")+"Leaflet</a>"},initialize:e(function(t){y(this,t),this._attributions={}},"initialize"),onAdd:e(function(t){t.attributionControl=this,this._container=pt("div","leaflet-control-attribution"),Co(this._container);for(var r in t._layers)t._layers[r].getAttribution&&this.addAttribution(t._layers[r].getAttribution());return this._update(),t.on("layeradd",this._addAttribution,this),this._container},"onAdd"),onRemove:e(function(t){t.off("layeradd",this._addAttribution,this)},"onRemove"),_addAttribution:e(function(t){t.layer.getAttribution&&(this.addAttribution(t.layer.getAttribution()),t.layer.once("remove",function(){this.removeAttribution(t.layer.getAttribution())},this))},"_addAttribution"),setPrefix:e(function(t){return this.options.prefix=t,this._update(),this},"setPrefix"),addAttribution:e(function(t){return t?(this._attributions[t]||(this._attributions[t]=0),this._attributions[t]++,this._update(),this):this},"addAttribution"),removeAttribution:e(function(t){return t?(this._attributions[t]&&(this._attributions[t]--,this._update()),this):this},"removeAttribution"),_update:e(function(){if(this._map){var t=[];for(var r in this._attributions)this._attributions[r]&&t.push(r);var h=[];this.options.prefix&&h.push(this.options.prefix),t.length&&h.push(t.join(", ")),this._container.innerHTML=h.join(' <span aria-hidden="true">|</span> ')}},"_update")});ct.mergeOptions({attributionControl:!0}),ct.addInitHook(function(){this.options.attributionControl&&new Ps().addTo(this)});var op=e(function(t){return new Ps(t)},"attribution");ke.Layers=lh,ke.Zoom=Ms,ke.Scale=hh,ke.Attribution=Ps,ko.layers=Qc,ko.zoom=tp,ko.scale=ep,ko.attribution=op;var Ae=xt.extend({initialize:e(function(t){this._map=t},"initialize"),enable:e(function(){return this._enabled?this:(this._enabled=!0,this.addHooks(),this)},"enable"),disable:e(function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},"disable"),enabled:e(function(){return!!this._enabled},"enabled")});Ae.addTo=function(t,r){return t.addHandler(r,this),this};var np={Events:Q},uh=W.touch?"touchstart mousedown":"mousedown",oi=I.extend({options:{clickTolerance:3},initialize:e(function(t,r,h,c){y(this,c),this._element=t,this._dragStartTarget=r||t,this._preventOutline=h},"initialize"),enable:e(function(){this._enabled||($(this._dragStartTarget,uh,this._onDown,this),this._enabled=!0)},"enable"),disable:e(function(){this._enabled&&(oi._dragging===this&&this.finishDrag(!0),Lt(this._dragStartTarget,uh,this._onDown,this),this._enabled=!1,this._moved=!1)},"disable"),_onDown:e(function(t){if(this._enabled&&(this._moved=!1,!ds(this._element,"leaflet-zoom-anim"))){if(t.touches&&t.touches.length!==1){oi._dragging===this&&this.finishDrag();return}if(!(oi._dragging||t.shiftKey||t.which!==1&&t.button!==1&&!t.touches)&&(oi._dragging=this,this._preventOutline&&vs(this._element),_s(),xo(),!this._moving)){this.fire("down");var r=t.touches?t.touches[0]:t,h=ih(this._element);this._startPoint=new N(r.clientX,r.clientY),this._startPos=mi(this._element),this._parentScale=bs(h);var c=t.type==="mousedown";$(document,c?"mousemove":"touchmove",this._onMove,this),$(document,c?"mouseup":"touchend touchcancel",this._onUp,this)}}},"_onDown"),_onMove:e(function(t){if(this._enabled){if(t.touches&&t.touches.length>1){this._moved=!0;return}var r=t.touches&&t.touches.length===1?t.touches[0]:t,h=new N(r.clientX,r.clientY)._subtract(this._startPoint);!h.x&&!h.y||Math.abs(h.x)+Math.abs(h.y)<this.options.clickTolerance||(h.x/=this._parentScale.x,h.y/=this._parentScale.y,$t(t),this._moved||(this.fire("dragstart"),this._moved=!0,et(document.body,"leaflet-dragging"),this._lastTarget=t.target||t.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),et(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(h),this._moving=!0,this._lastEvent=t,this._updatePosition())}},"_onMove"),_updatePosition:e(function(){var t={originalEvent:this._lastEvent};this.fire("predrag",t),Bt(this._element,this._newPos),this.fire("drag",t)},"_updatePosition"),_onUp:e(function(){this._enabled&&this.finishDrag()},"_onUp"),finishDrag:e(function(t){Ot(document.body,"leaflet-dragging"),this._lastTarget&&(Ot(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),Lt(document,"mousemove touchmove",this._onMove,this),Lt(document,"mouseup touchend touchcancel",this._onUp,this),gs(),Lo();var r=this._moved&&this._moving;this._moving=!1,oi._dragging=!1,r&&this.fire("dragend",{noInertia:t,distance:this._newPos.distanceTo(this._startPos)})},"finishDrag")});function ch(t,r,h){var c,m=[1,4,2,8],v,w,M,S,z,F,V,rt;for(v=0,F=t.length;v<F;v++)t[v]._code=yi(t[v],r);for(M=0;M<4;M++){for(V=m[M],c=[],v=0,F=t.length,w=F-1;v<F;w=v++)S=t[v],z=t[w],S._code&V?z._code&V||(rt=Sn(z,S,V,r,h),rt._code=yi(rt,r),c.push(rt)):(z._code&V&&(rt=Sn(z,S,V,r,h),rt._code=yi(rt,r),c.push(rt)),c.push(S));t=c}return t}e(ch,"clipPolygon");function ph(t,r){var h,c,m,v,w,M,S,z,F;if(!t||t.length===0)throw new Error("latlngs not passed");be(t)||(console.warn("latlngs are not flat! Only the first ring will be used"),t=t[0]);var V=it([0,0]),rt=_t(t),ee=rt.getNorthWest().distanceTo(rt.getSouthWest())*rt.getNorthEast().distanceTo(rt.getNorthWest());ee<1700&&(V=Es(t));var qt=t.length,xe=[];for(h=0;h<qt;h++){var ae=it(t[h]);xe.push(r.project(it([ae.lat-V.lat,ae.lng-V.lng])))}for(M=S=z=0,h=0,c=qt-1;h<qt;c=h++)m=xe[h],v=xe[c],w=m.y*v.x-v.y*m.x,S+=(m.x+v.x)*w,z+=(m.y+v.y)*w,M+=w*3;M===0?F=xe[0]:F=[S/M,z/M];var Ui=r.unproject(U(F));return it([Ui.lat+V.lat,Ui.lng+V.lng])}e(ph,"polygonCenter");function Es(t){for(var r=0,h=0,c=0,m=0;m<t.length;m++){var v=it(t[m]);r+=v.lat,h+=v.lng,c++}return it([r/c,h/c])}e(Es,"centroid");var rp={__proto__:null,clipPolygon:ch,polygonCenter:ph,centroid:Es};function dh(t,r){if(!r||!t.length)return t.slice();var h=r*r;return t=lp(t,h),t=ap(t,h),t}e(dh,"simplify");function fh(t,r,h){return Math.sqrt(Mo(t,r,h,!0))}e(fh,"pointToSegmentDistance");function sp(t,r,h){return Mo(t,r,h)}e(sp,"closestPointOnSegment");function ap(t,r){var h=t.length,c=typeof Uint8Array<"u"?Uint8Array:Array,m=new c(h);m[0]=m[h-1]=1,Ss(t,m,r,0,h-1);var v,w=[];for(v=0;v<h;v++)m[v]&&w.push(t[v]);return w}e(ap,"_simplifyDP");function Ss(t,r,h,c,m){var v=0,w,M,S;for(M=c+1;M<=m-1;M++)S=Mo(t[M],t[c],t[m],!0),S>v&&(w=M,v=S);v>h&&(r[w]=1,Ss(t,r,h,c,w),Ss(t,r,h,w,m))}e(Ss,"_simplifyDPStep");function lp(t,r){for(var h=[t[0]],c=1,m=0,v=t.length;c<v;c++)hp(t[c],t[m])>r&&(h.push(t[c]),m=c);return m<v-1&&h.push(t[v-1]),h}e(lp,"_reducePoints");var mh;function _h(t,r,h,c,m){var v=c?mh:yi(t,h),w=yi(r,h),M,S,z;for(mh=w;;){if(!(v|w))return[t,r];if(v&w)return!1;M=v||w,S=Sn(t,r,M,h,m),z=yi(S,h),M===v?(t=S,v=z):(r=S,w=z)}}e(_h,"clipSegment");function Sn(t,r,h,c,m){var v=r.x-t.x,w=r.y-t.y,M=c.min,S=c.max,z,F;return h&8?(z=t.x+v*(S.y-t.y)/w,F=S.y):h&4?(z=t.x+v*(M.y-t.y)/w,F=M.y):h&2?(z=S.x,F=t.y+w*(S.x-t.x)/v):h&1&&(z=M.x,F=t.y+w*(M.x-t.x)/v),new N(z,F,m)}e(Sn,"_getEdgeIntersection");function yi(t,r){var h=0;return t.x<r.min.x?h|=1:t.x>r.max.x&&(h|=2),t.y<r.min.y?h|=4:t.y>r.max.y&&(h|=8),h}e(yi,"_getBitCode");function hp(t,r){var h=r.x-t.x,c=r.y-t.y;return h*h+c*c}e(hp,"_sqDist");function Mo(t,r,h,c){var m=r.x,v=r.y,w=h.x-m,M=h.y-v,S=w*w+M*M,z;return S>0&&(z=((t.x-m)*w+(t.y-v)*M)/S,z>1?(m=h.x,v=h.y):z>0&&(m+=w*z,v+=M*z)),w=t.x-m,M=t.y-v,c?w*w+M*M:new N(m,v)}e(Mo,"_sqClosestPointOnSegment");function be(t){return!P(t[0])||typeof t[0][0]!="object"&&typeof t[0][0]<"u"}e(be,"isFlat");function gh(t){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),be(t)}e(gh,"_flat");function yh(t,r){var h,c,m,v,w,M,S,z;if(!t||t.length===0)throw new Error("latlngs not passed");be(t)||(console.warn("latlngs are not flat! Only the first ring will be used"),t=t[0]);var F=it([0,0]),V=_t(t),rt=V.getNorthWest().distanceTo(V.getSouthWest())*V.getNorthEast().distanceTo(V.getNorthWest());rt<1700&&(F=Es(t));var ee=t.length,qt=[];for(h=0;h<ee;h++){var xe=it(t[h]);qt.push(r.project(it([xe.lat-F.lat,xe.lng-F.lng])))}for(h=0,c=0;h<ee-1;h++)c+=qt[h].distanceTo(qt[h+1])/2;if(c===0)z=qt[0];else for(h=0,v=0;h<ee-1;h++)if(w=qt[h],M=qt[h+1],m=w.distanceTo(M),v+=m,v>c){S=(v-c)/m,z=[M.x-S*(M.x-w.x),M.y-S*(M.y-w.y)];break}var ae=r.unproject(U(z));return it([ae.lat+F.lat,ae.lng+F.lng])}e(yh,"polylineCenter");var up={__proto__:null,simplify:dh,pointToSegmentDistance:fh,closestPointOnSegment:sp,clipSegment:_h,_getEdgeIntersection:Sn,_getBitCode:yi,_sqClosestPointOnSegment:Mo,isFlat:be,_flat:gh,polylineCenter:yh},Ts={project:e(function(t){return new N(t.lng,t.lat)},"project"),unproject:e(function(t){return new nt(t.y,t.x)},"unproject"),bounds:new at([-180,-90],[180,90])},Os={R:6378137,R_MINOR:6356752314245179e-9,bounds:new at([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project:e(function(t){var r=Math.PI/180,h=this.R,c=t.lat*r,m=this.R_MINOR/h,v=Math.sqrt(1-m*m),w=v*Math.sin(c),M=Math.tan(Math.PI/4-c/2)/Math.pow((1-w)/(1+w),v/2);return c=-h*Math.log(Math.max(M,1e-10)),new N(t.lng*r*h,c)},"project"),unproject:e(function(t){for(var r=180/Math.PI,h=this.R,c=this.R_MINOR/h,m=Math.sqrt(1-c*c),v=Math.exp(-t.y/h),w=Math.PI/2-2*Math.atan(v),M=0,S=.1,z;M<15&&Math.abs(S)>1e-7;M++)z=m*Math.sin(w),z=Math.pow((1-z)/(1+z),m/2),S=Math.PI/2-2*Math.atan(v*z)-w,w+=S;return new nt(w*r,t.x*r/h)},"unproject")},cp={__proto__:null,LonLat:Ts,Mercator:Os,SphericalMercator:os},pp=l({},ii,{code:"EPSG:3395",projection:Os,transformation:function(){var t=.5/(Math.PI*Os.R);return go(t,.5,-t,.5)}()}),vh=l({},ii,{code:"EPSG:4326",projection:Ts,transformation:go(1/180,1,-1/180,.5)}),dp=l({},Qt,{projection:Ts,transformation:go(1,0,-1,0),scale:e(function(t){return Math.pow(2,t)},"scale"),zoom:e(function(t){return Math.log(t)/Math.LN2},"zoom"),distance:e(function(t,r){var h=r.lng-t.lng,c=r.lat-t.lat;return Math.sqrt(h*h+c*c)},"distance"),infinite:!0});Qt.Earth=ii,Qt.EPSG3395=pp,Qt.EPSG3857=rs,Qt.EPSG900913=vc,Qt.EPSG4326=vh,Qt.Simple=dp;var Me=I.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:e(function(t){return t.addLayer(this),this},"addTo"),remove:e(function(){return this.removeFrom(this._map||this._mapToAdd)},"remove"),removeFrom:e(function(t){return t&&t.removeLayer(this),this},"removeFrom"),getPane:e(function(t){return this._map.getPane(t?this.options[t]||t:this.options.pane)},"getPane"),addInteractiveTarget:e(function(t){return this._map._targets[u(t)]=this,this},"addInteractiveTarget"),removeInteractiveTarget:e(function(t){return delete this._map._targets[u(t)],this},"removeInteractiveTarget"),getAttribution:e(function(){return this.options.attribution},"getAttribution"),_layerAdd:e(function(t){var r=t.target;if(r.hasLayer(this)){if(this._map=r,this._zoomAnimated=r._zoomAnimated,this.getEvents){var h=this.getEvents();r.on(h,this),this.once("remove",function(){r.off(h,this)},this)}this.onAdd(r),this.fire("add"),r.fire("layeradd",{layer:this})}},"_layerAdd")});ct.include({addLayer:e(function(t){if(!t._layerAdd)throw new Error("The provided object is not a Layer.");var r=u(t);return this._layers[r]?this:(this._layers[r]=t,t._mapToAdd=this,t.beforeAdd&&t.beforeAdd(this),this.whenReady(t._layerAdd,t),this)},"addLayer"),removeLayer:e(function(t){var r=u(t);return this._layers[r]?(this._loaded&&t.onRemove(this),delete this._layers[r],this._loaded&&(this.fire("layerremove",{layer:t}),t.fire("remove")),t._map=t._mapToAdd=null,this):this},"removeLayer"),hasLayer:e(function(t){return u(t)in this._layers},"hasLayer"),eachLayer:e(function(t,r){for(var h in this._layers)t.call(r,this._layers[h]);return this},"eachLayer"),_addLayers:e(function(t){t=t?P(t)?t:[t]:[];for(var r=0,h=t.length;r<h;r++)this.addLayer(t[r])},"_addLayers"),_addZoomLimit:e(function(t){(!isNaN(t.options.maxZoom)||!isNaN(t.options.minZoom))&&(this._zoomBoundLayers[u(t)]=t,this._updateZoomLevels())},"_addZoomLimit"),_removeZoomLimit:e(function(t){var r=u(t);this._zoomBoundLayers[r]&&(delete this._zoomBoundLayers[r],this._updateZoomLevels())},"_removeZoomLimit"),_updateZoomLevels:e(function(){var t=1/0,r=-1/0,h=this._getZoomSpan();for(var c in this._zoomBoundLayers){var m=this._zoomBoundLayers[c].options;t=m.minZoom===void 0?t:Math.min(t,m.minZoom),r=m.maxZoom===void 0?r:Math.max(r,m.maxZoom)}this._layersMaxZoom=r===-1/0?void 0:r,this._layersMinZoom=t===1/0?void 0:t,h!==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)},"_updateZoomLevels")});var Ni=Me.extend({initialize:e(function(t,r){y(this,r),this._layers={};var h,c;if(t)for(h=0,c=t.length;h<c;h++)this.addLayer(t[h])},"initialize"),addLayer:e(function(t){var r=this.getLayerId(t);return this._layers[r]=t,this._map&&this._map.addLayer(t),this},"addLayer"),removeLayer:e(function(t){var r=t in this._layers?t:this.getLayerId(t);return this._map&&this._layers[r]&&this._map.removeLayer(this._layers[r]),delete this._layers[r],this},"removeLayer"),hasLayer:e(function(t){var r=typeof t=="number"?t:this.getLayerId(t);return r in this._layers},"hasLayer"),clearLayers:e(function(){return this.eachLayer(this.removeLayer,this)},"clearLayers"),invoke:e(function(t){var r=Array.prototype.slice.call(arguments,1),h,c;for(h in this._layers)c=this._layers[h],c[t]&&c[t].apply(c,r);return this},"invoke"),onAdd:e(function(t){this.eachLayer(t.addLayer,t)},"onAdd"),onRemove:e(function(t){this.eachLayer(t.removeLayer,t)},"onRemove"),eachLayer:e(function(t,r){for(var h in this._layers)t.call(r,this._layers[h]);return this},"eachLayer"),getLayer:e(function(t){return this._layers[t]},"getLayer"),getLayers:e(function(){var t=[];return this.eachLayer(t.push,t),t},"getLayers"),setZIndex:e(function(t){return this.invoke("setZIndex",t)},"setZIndex"),getLayerId:e(function(t){return u(t)},"getLayerId")}),fp=e(function(t,r){return new Ni(t,r)},"layerGroup"),Ge=Ni.extend({addLayer:e(function(t){return this.hasLayer(t)?this:(t.addEventParent(this),Ni.prototype.addLayer.call(this,t),this.fire("layeradd",{layer:t}))},"addLayer"),removeLayer:e(function(t){return this.hasLayer(t)?(t in this._layers&&(t=this._layers[t]),t.removeEventParent(this),Ni.prototype.removeLayer.call(this,t),this.fire("layerremove",{layer:t})):this},"removeLayer"),setStyle:e(function(t){return this.invoke("setStyle",t)},"setStyle"),bringToFront:e(function(){return this.invoke("bringToFront")},"bringToFront"),bringToBack:e(function(){return this.invoke("bringToBack")},"bringToBack"),getBounds:e(function(){var t=new Ct;for(var r in this._layers){var h=this._layers[r];t.extend(h.getBounds?h.getBounds():h.getLatLng())}return t},"getBounds")}),mp=e(function(t,r){return new Ge(t,r)},"featureGroup"),Zi=xt.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:e(function(t){y(this,t)},"initialize"),createIcon:e(function(t){return this._createIcon("icon",t)},"createIcon"),createShadow:e(function(t){return this._createIcon("shadow",t)},"createShadow"),_createIcon:e(function(t,r){var h=this._getIconUrl(t);if(!h){if(t==="icon")throw new Error("iconUrl not set in Icon options (see the docs).");return null}var c=this._createImg(h,r&&r.tagName==="IMG"?r:null);return this._setIconStyles(c,t),(this.options.crossOrigin||this.options.crossOrigin==="")&&(c.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),c},"_createIcon"),_setIconStyles:e(function(t,r){var h=this.options,c=h[r+"Size"];typeof c=="number"&&(c=[c,c]);var m=U(c),v=U(r==="shadow"&&h.shadowAnchor||h.iconAnchor||m&&m.divideBy(2,!0));t.className="leaflet-marker-"+r+" "+(h.className||""),v&&(t.style.marginLeft=-v.x+"px",t.style.marginTop=-v.y+"px"),m&&(t.style.width=m.x+"px",t.style.height=m.y+"px")},"_setIconStyles"),_createImg:e(function(t,r){return r=r||document.createElement("img"),r.src=t,r},"_createImg"),_getIconUrl:e(function(t){return W.retina&&this.options[t+"RetinaUrl"]||this.options[t+"Url"]},"_getIconUrl")});function _p(t){return new Zi(t)}e(_p,"icon");var Po=Zi.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:e(function(t){return typeof Po.imagePath!="string"&&(Po.imagePath=this._detectIconPath()),(this.options.imagePath||Po.imagePath)+Zi.prototype._getIconUrl.call(this,t)},"_getIconUrl"),_stripUrl:e(function(t){var r=e(function(h,c,m){var v=c.exec(h);return v&&v[m]},"strip");return t=r(t,/^url\((['"])?(.+)\1\)$/,2),t&&r(t,/^(.*)marker-icon\.png$/,1)},"_stripUrl"),_detectIconPath:e(function(){var t=pt("div","leaflet-default-icon-path",document.body),r=bo(t,"background-image")||bo(t,"backgroundImage");if(document.body.removeChild(t),r=this._stripUrl(r),r)return r;var h=document.querySelector('link[href$="leaflet.css"]');return h?h.href.substring(0,h.href.length-11-1):""},"_detectIconPath")}),bh=Ae.extend({initialize:e(function(t){this._marker=t},"initialize"),addHooks:e(function(){var t=this._marker._icon;this._draggable||(this._draggable=new oi(t,t,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),et(t,"leaflet-marker-draggable")},"addHooks"),removeHooks:e(function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon&&Ot(this._marker._icon,"leaflet-marker-draggable")},"removeHooks"),moved:e(function(){return this._draggable&&this._draggable._moved},"moved"),_adjustPan:e(function(t){var r=this._marker,h=r._map,c=this._marker.options.autoPanSpeed,m=this._marker.options.autoPanPadding,v=mi(r._icon),w=h.getPixelBounds(),M=h.getPixelOrigin(),S=At(w.min._subtract(M).add(m),w.max._subtract(M).subtract(m));if(!S.contains(v)){var z=U((Math.max(S.max.x,v.x)-S.max.x)/(w.max.x-S.max.x)-(Math.min(S.min.x,v.x)-S.min.x)/(w.min.x-S.min.x),(Math.max(S.max.y,v.y)-S.max.y)/(w.max.y-S.max.y)-(Math.min(S.min.y,v.y)-S.min.y)/(w.min.y-S.min.y)).multiplyBy(c);h.panBy(z,{animate:!1}),this._draggable._newPos._add(z),this._draggable._startPos._add(z),Bt(r._icon,this._draggable._newPos),this._onDrag(t),this._panRequest=X(this._adjustPan.bind(this,t))}},"_adjustPan"),_onDragStart:e(function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},"_onDragStart"),_onPreDrag:e(function(t){this._marker.options.autoPan&&(ot(this._panRequest),this._panRequest=X(this._adjustPan.bind(this,t)))},"_onPreDrag"),_onDrag:e(function(t){var r=this._marker,h=r._shadow,c=mi(r._icon),m=r._map.layerPointToLatLng(c);h&&Bt(h,c),r._latlng=m,t.latlng=m,t.oldLatLng=this._oldLatLng,r.fire("move",t).fire("drag",t)},"_onDrag"),_onDragEnd:e(function(t){ot(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",t)},"_onDragEnd")}),Tn=Me.extend({options:{icon:new Po,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:e(function(t,r){y(this,r),this._latlng=it(t)},"initialize"),onAdd:e(function(t){this._zoomAnimated=this._zoomAnimated&&t.options.markerZoomAnimation,this._zoomAnimated&&t.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},"onAdd"),onRemove:e(function(t){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&t.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()},"onRemove"),getEvents:e(function(){return{zoom:this.update,viewreset:this.update}},"getEvents"),getLatLng:e(function(){return this._latlng},"getLatLng"),setLatLng:e(function(t){var r=this._latlng;return this._latlng=it(t),this.update(),this.fire("move",{oldLatLng:r,latlng:this._latlng})},"setLatLng"),setZIndexOffset:e(function(t){return this.options.zIndexOffset=t,this.update()},"setZIndexOffset"),getIcon:e(function(){return this.options.icon},"getIcon"),setIcon:e(function(t){return this.options.icon=t,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},"setIcon"),getElement:e(function(){return this._icon},"getElement"),update:e(function(){if(this._icon&&this._map){var t=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(t)}return this},"update"),_initIcon:e(function(){var t=this.options,r="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),h=t.icon.createIcon(this._icon),c=!1;h!==this._icon&&(this._icon&&this._removeIcon(),c=!0,t.title&&(h.title=t.title),h.tagName==="IMG"&&(h.alt=t.alt||"")),et(h,r),t.keyboard&&(h.tabIndex="0",h.setAttribute("role","button")),this._icon=h,t.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&$(h,"focus",this._panOnFocus,this);var m=t.icon.createShadow(this._shadow),v=!1;m!==this._shadow&&(this._removeShadow(),v=!0),m&&(et(m,r),m.alt=""),this._shadow=m,t.opacity<1&&this._updateOpacity(),c&&this.getPane().appendChild(this._icon),this._initInteraction(),m&&v&&this.getPane(t.shadowPane).appendChild(this._shadow)},"_initIcon"),_removeIcon:e(function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&Lt(this._icon,"focus",this._panOnFocus,this),kt(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},"_removeIcon"),_removeShadow:e(function(){this._shadow&&kt(this._shadow),this._shadow=null},"_removeShadow"),_setPos:e(function(t){this._icon&&Bt(this._icon,t),this._shadow&&Bt(this._shadow,t),this._zIndex=t.y+this.options.zIndexOffset,this._resetZIndex()},"_setPos"),_updateZIndex:e(function(t){this._icon&&(this._icon.style.zIndex=this._zIndex+t)},"_updateZIndex"),_animateZoom:e(function(t){var r=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center).round();this._setPos(r)},"_animateZoom"),_initInteraction:e(function(){if(this.options.interactive&&(et(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),bh)){var t=this.options.draggable;this.dragging&&(t=this.dragging.enabled(),this.dragging.disable()),this.dragging=new bh(this),t&&this.dragging.enable()}},"_initInteraction"),setOpacity:e(function(t){return this.options.opacity=t,this._map&&this._updateOpacity(),this},"setOpacity"),_updateOpacity:e(function(){var t=this.options.opacity;this._icon&&ve(this._icon,t),this._shadow&&ve(this._shadow,t)},"_updateOpacity"),_bringToFront:e(function(){this._updateZIndex(this.options.riseOffset)},"_bringToFront"),_resetZIndex:e(function(){this._updateZIndex(0)},"_resetZIndex"),_panOnFocus:e(function(){var t=this._map;if(t){var r=this.options.icon.options,h=r.iconSize?U(r.iconSize):U(0,0),c=r.iconAnchor?U(r.iconAnchor):U(0,0);t.panInside(this._latlng,{paddingTopLeft:c,paddingBottomRight:h.subtract(c)})}},"_panOnFocus"),_getPopupAnchor:e(function(){return this.options.icon.options.popupAnchor},"_getPopupAnchor"),_getTooltipAnchor:e(function(){return this.options.icon.options.tooltipAnchor},"_getTooltipAnchor")});function gp(t,r){return new Tn(t,r)}e(gp,"marker");var ni=Me.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:e(function(t){this._renderer=t.getRenderer(this)},"beforeAdd"),onAdd:e(function(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},"onAdd"),onRemove:e(function(){this._renderer._removePath(this)},"onRemove"),redraw:e(function(){return this._map&&this._renderer._updatePath(this),this},"redraw"),setStyle:e(function(t){return y(this,t),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&t&&Object.prototype.hasOwnProperty.call(t,"weight")&&this._updateBounds()),this},"setStyle"),bringToFront:e(function(){return this._renderer&&this._renderer._bringToFront(this),this},"bringToFront"),bringToBack:e(function(){return this._renderer&&this._renderer._bringToBack(this),this},"bringToBack"),getElement:e(function(){return this._path},"getElement"),_reset:e(function(){this._project(),this._update()},"_reset"),_clickTolerance:e(function(){return(this.options.stroke?this.options.weight/2:0)+(this._renderer.options.tolerance||0)},"_clickTolerance")}),On=ni.extend({options:{fill:!0,radius:10},initialize:e(function(t,r){y(this,r),this._latlng=it(t),this._radius=this.options.radius},"initialize"),setLatLng:e(function(t){var r=this._latlng;return this._latlng=it(t),this.redraw(),this.fire("move",{oldLatLng:r,latlng:this._latlng})},"setLatLng"),getLatLng:e(function(){return this._latlng},"getLatLng"),setRadius:e(function(t){return this.options.radius=this._radius=t,this.redraw()},"setRadius"),getRadius:e(function(){return this._radius},"getRadius"),setStyle:e(function(t){var r=t&&t.radius||this._radius;return ni.prototype.setStyle.call(this,t),this.setRadius(r),this},"setStyle"),_project:e(function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},"_project"),_updateBounds:e(function(){var t=this._radius,r=this._radiusY||t,h=this._clickTolerance(),c=[t+h,r+h];this._pxBounds=new at(this._point.subtract(c),this._point.add(c))},"_updateBounds"),_update:e(function(){this._map&&this._updatePath()},"_update"),_updatePath:e(function(){this._renderer._updateCircle(this)},"_updatePath"),_empty:e(function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},"_empty"),_containsPoint:e(function(t){return t.distanceTo(this._point)<=this._radius+this._clickTolerance()},"_containsPoint")});function yp(t,r){return new On(t,r)}e(yp,"circleMarker");var zs=On.extend({initialize:e(function(t,r,h){if(typeof r=="number"&&(r=l({},h,{radius:r})),y(this,r),this._latlng=it(t),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},"initialize"),setRadius:e(function(t){return this._mRadius=t,this.redraw()},"setRadius"),getRadius:e(function(){return this._mRadius},"getRadius"),getBounds:e(function(){var t=[this._radius,this._radiusY||this._radius];return new Ct(this._map.layerPointToLatLng(this._point.subtract(t)),this._map.layerPointToLatLng(this._point.add(t)))},"getBounds"),setStyle:ni.prototype.setStyle,_project:e(function(){var t=this._latlng.lng,r=this._latlng.lat,h=this._map,c=h.options.crs;if(c.distance===ii.distance){var m=Math.PI/180,v=this._mRadius/ii.R/m,w=h.project([r+v,t]),M=h.project([r-v,t]),S=w.add(M).divideBy(2),z=h.unproject(S).lat,F=Math.acos((Math.cos(v*m)-Math.sin(r*m)*Math.sin(z*m))/(Math.cos(r*m)*Math.cos(z*m)))/m;(isNaN(F)||F===0)&&(F=v/Math.cos(Math.PI/180*r)),this._point=S.subtract(h.getPixelOrigin()),this._radius=isNaN(F)?0:S.x-h.project([z,t-F]).x,this._radiusY=S.y-w.y}else{var V=c.unproject(c.project(this._latlng).subtract([this._mRadius,0]));this._point=h.latLngToLayerPoint(this._latlng),this._radius=this._point.x-h.latLngToLayerPoint(V).x}this._updateBounds()},"_project")});function vp(t,r,h){return new zs(t,r,h)}e(vp,"circle");var He=ni.extend({options:{smoothFactor:1,noClip:!1},initialize:e(function(t,r){y(this,r),this._setLatLngs(t)},"initialize"),getLatLngs:e(function(){return this._latlngs},"getLatLngs"),setLatLngs:e(function(t){return this._setLatLngs(t),this.redraw()},"setLatLngs"),isEmpty:e(function(){return!this._latlngs.length},"isEmpty"),closestLayerPoint:e(function(t){for(var r=1/0,h=null,c=Mo,m,v,w=0,M=this._parts.length;w<M;w++)for(var S=this._parts[w],z=1,F=S.length;z<F;z++){m=S[z-1],v=S[z];var V=c(t,m,v,!0);V<r&&(r=V,h=c(t,m,v))}return h&&(h.distance=Math.sqrt(r)),h},"closestLayerPoint"),getCenter:e(function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return yh(this._defaultShape(),this._map.options.crs)},"getCenter"),getBounds:e(function(){return this._bounds},"getBounds"),addLatLng:e(function(t,r){return r=r||this._defaultShape(),t=it(t),r.push(t),this._bounds.extend(t),this.redraw()},"addLatLng"),_setLatLngs:e(function(t){this._bounds=new Ct,this._latlngs=this._convertLatLngs(t)},"_setLatLngs"),_defaultShape:e(function(){return be(this._latlngs)?this._latlngs:this._latlngs[0]},"_defaultShape"),_convertLatLngs:e(function(t){for(var r=[],h=be(t),c=0,m=t.length;c<m;c++)h?(r[c]=it(t[c]),this._bounds.extend(r[c])):r[c]=this._convertLatLngs(t[c]);return r},"_convertLatLngs"),_project:e(function(){var t=new at;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,t),this._bounds.isValid()&&t.isValid()&&(this._rawPxBounds=t,this._updateBounds())},"_project"),_updateBounds:e(function(){var t=this._clickTolerance(),r=new N(t,t);this._rawPxBounds&&(this._pxBounds=new at([this._rawPxBounds.min.subtract(r),this._rawPxBounds.max.add(r)]))},"_updateBounds"),_projectLatlngs:e(function(t,r,h){var c=t[0]instanceof nt,m=t.length,v,w;if(c){for(w=[],v=0;v<m;v++)w[v]=this._map.latLngToLayerPoint(t[v]),h.extend(w[v]);r.push(w)}else for(v=0;v<m;v++)this._projectLatlngs(t[v],r,h)},"_projectLatlngs"),_clipPoints:e(function(){var t=this._renderer._bounds;if(this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(t))){if(this.options.noClip){this._parts=this._rings;return}var r=this._parts,h,c,m,v,w,M,S;for(h=0,m=0,v=this._rings.length;h<v;h++)for(S=this._rings[h],c=0,w=S.length;c<w-1;c++)M=_h(S[c],S[c+1],t,c,!0),M&&(r[m]=r[m]||[],r[m].push(M[0]),(M[1]!==S[c+1]||c===w-2)&&(r[m].push(M[1]),m++))}},"_clipPoints"),_simplifyPoints:e(function(){for(var t=this._parts,r=this.options.smoothFactor,h=0,c=t.length;h<c;h++)t[h]=dh(t[h],r)},"_simplifyPoints"),_update:e(function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},"_update"),_updatePath:e(function(){this._renderer._updatePoly(this)},"_updatePath"),_containsPoint:e(function(t,r){var h,c,m,v,w,M,S=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(h=0,v=this._parts.length;h<v;h++)for(M=this._parts[h],c=0,w=M.length,m=w-1;c<w;m=c++)if(!(!r&&c===0)&&fh(t,M[m],M[c])<=S)return!0;return!1},"_containsPoint")});function bp(t,r){return new He(t,r)}e(bp,"polyline"),He._flat=gh;var Fi=He.extend({options:{fill:!0},isEmpty:e(function(){return!this._latlngs.length||!this._latlngs[0].length},"isEmpty"),getCenter:e(function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return ph(this._defaultShape(),this._map.options.crs)},"getCenter"),_convertLatLngs:e(function(t){var r=He.prototype._convertLatLngs.call(this,t),h=r.length;return h>=2&&r[0]instanceof nt&&r[0].equals(r[h-1])&&r.pop(),r},"_convertLatLngs"),_setLatLngs:e(function(t){He.prototype._setLatLngs.call(this,t),be(this._latlngs)&&(this._latlngs=[this._latlngs])},"_setLatLngs"),_defaultShape:e(function(){return be(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},"_defaultShape"),_clipPoints:e(function(){var t=this._renderer._bounds,r=this.options.weight,h=new N(r,r);if(t=new at(t.min.subtract(h),t.max.add(h)),this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(t))){if(this.options.noClip){this._parts=this._rings;return}for(var c=0,m=this._rings.length,v;c<m;c++)v=ch(this._rings[c],t,!0),v.length&&this._parts.push(v)}},"_clipPoints"),_updatePath:e(function(){this._renderer._updatePoly(this,!0)},"_updatePath"),_containsPoint:e(function(t){var r=!1,h,c,m,v,w,M,S,z;if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(v=0,S=this._parts.length;v<S;v++)for(h=this._parts[v],w=0,z=h.length,M=z-1;w<z;M=w++)c=h[w],m=h[M],c.y>t.y!=m.y>t.y&&t.x<(m.x-c.x)*(t.y-c.y)/(m.y-c.y)+c.x&&(r=!r);return r||He.prototype._containsPoint.call(this,t,!0)},"_containsPoint")});function xp(t,r){return new Fi(t,r)}e(xp,"polygon");var Ue=Ge.extend({initialize:e(function(t,r){y(this,r),this._layers={},t&&this.addData(t)},"initialize"),addData:e(function(t){var r=P(t)?t:t.features,h,c,m;if(r){for(h=0,c=r.length;h<c;h++)m=r[h],(m.geometries||m.geometry||m.features||m.coordinates)&&this.addData(m);return this}var v=this.options;if(v.filter&&!v.filter(t))return this;var w=zn(t,v);return w?(w.feature=An(t),w.defaultOptions=w.options,this.resetStyle(w),v.onEachFeature&&v.onEachFeature(t,w),this.addLayer(w)):this},"addData"),resetStyle:e(function(t){return t===void 0?this.eachLayer(this.resetStyle,this):(t.options=l({},t.defaultOptions),this._setLayerStyle(t,this.options.style),this)},"resetStyle"),setStyle:e(function(t){return this.eachLayer(function(r){this._setLayerStyle(r,t)},this)},"setStyle"),_setLayerStyle:e(function(t,r){t.setStyle&&(typeof r=="function"&&(r=r(t.feature)),t.setStyle(r))},"_setLayerStyle")});function zn(t,r){var h=t.type==="Feature"?t.geometry:t,c=h?h.coordinates:null,m=[],v=r&&r.pointToLayer,w=r&&r.coordsToLatLng||Is,M,S,z,F;if(!c&&!h)return null;switch(h.type){case"Point":return M=w(c),xh(v,t,M,r);case"MultiPoint":for(z=0,F=c.length;z<F;z++)M=w(c[z]),m.push(xh(v,t,M,r));return new Ge(m);case"LineString":case"MultiLineString":return S=In(c,h.type==="LineString"?0:1,w),new He(S,r);case"Polygon":case"MultiPolygon":return S=In(c,h.type==="Polygon"?1:2,w),new Fi(S,r);case"GeometryCollection":for(z=0,F=h.geometries.length;z<F;z++){var V=zn({geometry:h.geometries[z],type:"Feature",properties:t.properties},r);V&&m.push(V)}return new Ge(m);case"FeatureCollection":for(z=0,F=h.features.length;z<F;z++){var rt=zn(h.features[z],r);rt&&m.push(rt)}return new Ge(m);default:throw new Error("Invalid GeoJSON object.")}}e(zn,"geometryToLayer");function xh(t,r,h,c){return t?t(r,h):new Tn(h,c&&c.markersInheritOptions&&c)}e(xh,"_pointToLayer");function Is(t){return new nt(t[1],t[0],t[2])}e(Is,"coordsToLatLng");function In(t,r,h){for(var c=[],m=0,v=t.length,w;m<v;m++)w=r?In(t[m],r-1,h):(h||Is)(t[m]),c.push(w);return c}e(In,"coordsToLatLngs");function Ds(t,r){return t=it(t),t.alt!==void 0?[f(t.lng,r),f(t.lat,r),f(t.alt,r)]:[f(t.lng,r),f(t.lat,r)]}e(Ds,"latLngToCoords");function Dn(t,r,h,c){for(var m=[],v=0,w=t.length;v<w;v++)m.push(r?Dn(t[v],be(t[v])?0:r-1,h,c):Ds(t[v],c));return!r&&h&&m.length>0&&m.push(m[0].slice()),m}e(Dn,"latLngsToCoords");function Gi(t,r){return t.feature?l({},t.feature,{geometry:r}):An(r)}e(Gi,"getFeature");function An(t){return t.type==="Feature"||t.type==="FeatureCollection"?t:{type:"Feature",properties:{},geometry:t}}e(An,"asFeature");var As={toGeoJSON:e(function(t){return Gi(this,{type:"Point",coordinates:Ds(this.getLatLng(),t)})},"toGeoJSON")};Tn.include(As),zs.include(As),On.include(As),He.include({toGeoJSON:e(function(t){var r=!be(this._latlngs),h=Dn(this._latlngs,r?1:0,!1,t);return Gi(this,{type:(r?"Multi":"")+"LineString",coordinates:h})},"toGeoJSON")}),Fi.include({toGeoJSON:e(function(t){var r=!be(this._latlngs),h=r&&!be(this._latlngs[0]),c=Dn(this._latlngs,h?2:r?1:0,!0,t);return r||(c=[c]),Gi(this,{type:(h?"Multi":"")+"Polygon",coordinates:c})},"toGeoJSON")}),Ni.include({toMultiPoint:e(function(t){var r=[];return this.eachLayer(function(h){r.push(h.toGeoJSON(t).geometry.coordinates)}),Gi(this,{type:"MultiPoint",coordinates:r})},"toMultiPoint"),toGeoJSON:e(function(t){var r=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(r==="MultiPoint")return this.toMultiPoint(t);var h=r==="GeometryCollection",c=[];return this.eachLayer(function(m){if(m.toGeoJSON){var v=m.toGeoJSON(t);if(h)c.push(v.geometry);else{var w=An(v);w.type==="FeatureCollection"?c.push.apply(c,w.features):c.push(w)}}}),h?Gi(this,{geometries:c,type:"GeometryCollection"}):{type:"FeatureCollection",features:c}},"toGeoJSON")});function Lh(t,r){return new Ue(t,r)}e(Lh,"geoJSON");var Lp=Lh,Bn=Me.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:e(function(t,r,h){this._url=t,this._bounds=_t(r),y(this,h)},"initialize"),onAdd:e(function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(et(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},"onAdd"),onRemove:e(function(){kt(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},"onRemove"),setOpacity:e(function(t){return this.options.opacity=t,this._image&&this._updateOpacity(),this},"setOpacity"),setStyle:e(function(t){return t.opacity&&this.setOpacity(t.opacity),this},"setStyle"),bringToFront:e(function(){return this._map&&Bi(this._image),this},"bringToFront"),bringToBack:e(function(){return this._map&&Ri(this._image),this},"bringToBack"),setUrl:e(function(t){return this._url=t,this._image&&(this._image.src=t),this},"setUrl"),setBounds:e(function(t){return this._bounds=_t(t),this._map&&this._reset(),this},"setBounds"),getEvents:e(function(){var t={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},"getEvents"),setZIndex:e(function(t){return this.options.zIndex=t,this._updateZIndex(),this},"setZIndex"),getBounds:e(function(){return this._bounds},"getBounds"),getElement:e(function(){return this._image},"getElement"),_initImage:e(function(){var t=this._url.tagName==="IMG",r=this._image=t?this._url:pt("img");if(et(r,"leaflet-image-layer"),this._zoomAnimated&&et(r,"leaflet-zoom-animated"),this.options.className&&et(r,this.options.className),r.onselectstart=d,r.onmousemove=d,r.onload=i(this.fire,this,"load"),r.onerror=i(this._overlayOnError,this,"error"),(this.options.crossOrigin||this.options.crossOrigin==="")&&(r.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),t){this._url=r.src;return}r.src=this._url,r.alt=this.options.alt},"_initImage"),_animateZoom:e(function(t){var r=this._map.getZoomScale(t.zoom),h=this._map._latLngBoundsToNewLayerBounds(this._bounds,t.zoom,t.center).min;fi(this._image,h,r)},"_animateZoom"),_reset:e(function(){var t=this._image,r=new at(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),h=r.getSize();Bt(t,r.min),t.style.width=h.x+"px",t.style.height=h.y+"px"},"_reset"),_updateOpacity:e(function(){ve(this._image,this.options.opacity)},"_updateOpacity"),_updateZIndex:e(function(){this._image&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._image.style.zIndex=this.options.zIndex)},"_updateZIndex"),_overlayOnError:e(function(){this.fire("error");var t=this.options.errorOverlayUrl;t&&this._url!==t&&(this._url=t,this._image.src=t)},"_overlayOnError"),getCenter:e(function(){return this._bounds.getCenter()},"getCenter")}),wp=e(function(t,r,h){return new Bn(t,r,h)},"imageOverlay"),wh=Bn.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:e(function(){var t=this._url.tagName==="VIDEO",r=this._image=t?this._url:pt("video");if(et(r,"leaflet-image-layer"),this._zoomAnimated&&et(r,"leaflet-zoom-animated"),this.options.className&&et(r,this.options.className),r.onselectstart=d,r.onmousemove=d,r.onloadeddata=i(this.fire,this,"load"),t){for(var h=r.getElementsByTagName("source"),c=[],m=0;m<h.length;m++)c.push(h[m].src);this._url=h.length>0?c:[r.src];return}P(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(r.style,"objectFit")&&(r.style.objectFit="fill"),r.autoplay=!!this.options.autoplay,r.loop=!!this.options.loop,r.muted=!!this.options.muted,r.playsInline=!!this.options.playsInline;for(var v=0;v<this._url.length;v++){var w=pt("source");w.src=this._url[v],r.appendChild(w)}},"_initImage")});function Cp(t,r,h){return new wh(t,r,h)}e(Cp,"videoOverlay");var Ch=Bn.extend({_initImage:e(function(){var t=this._image=this._url;et(t,"leaflet-image-layer"),this._zoomAnimated&&et(t,"leaflet-zoom-animated"),this.options.className&&et(t,this.options.className),t.onselectstart=d,t.onmousemove=d},"_initImage")});function kp(t,r,h){return new Ch(t,r,h)}e(kp,"svgOverlay");var Be=Me.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:e(function(t,r){t&&(t instanceof nt||P(t))?(this._latlng=it(t),y(this,r)):(y(this,t),this._source=r),this.options.content&&(this._content=this.options.content)},"initialize"),openOn:e(function(t){return t=arguments.length?t:this._source._map,t.hasLayer(this)||t.addLayer(this),this},"openOn"),close:e(function(){return this._map&&this._map.removeLayer(this),this},"close"),toggle:e(function(t){return this._map?this.close():(arguments.length?this._source=t:t=this._source,this._prepareOpen(),this.openOn(t._map)),this},"toggle"),onAdd:e(function(t){this._zoomAnimated=t._zoomAnimated,this._container||this._initLayout(),t._fadeAnimated&&ve(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),t._fadeAnimated&&ve(this._container,1),this.bringToFront(),this.options.interactive&&(et(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},"onAdd"),onRemove:e(function(t){t._fadeAnimated?(ve(this._container,0),this._removeTimeout=setTimeout(i(kt,void 0,this._container),200)):kt(this._container),this.options.interactive&&(Ot(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},"onRemove"),getLatLng:e(function(){return this._latlng},"getLatLng"),setLatLng:e(function(t){return this._latlng=it(t),this._map&&(this._updatePosition(),this._adjustPan()),this},"setLatLng"),getContent:e(function(){return this._content},"getContent"),setContent:e(function(t){return this._content=t,this.update(),this},"setContent"),getElement:e(function(){return this._container},"getElement"),update:e(function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},"update"),getEvents:e(function(){var t={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},"getEvents"),isOpen:e(function(){return!!this._map&&this._map.hasLayer(this)},"isOpen"),bringToFront:e(function(){return this._map&&Bi(this._container),this},"bringToFront"),bringToBack:e(function(){return this._map&&Ri(this._container),this},"bringToBack"),_prepareOpen:e(function(t){var r=this._source;if(!r._map)return!1;if(r instanceof Ge){r=null;var h=this._source._layers;for(var c in h)if(h[c]._map){r=h[c];break}if(!r)return!1;this._source=r}if(!t)if(r.getCenter)t=r.getCenter();else if(r.getLatLng)t=r.getLatLng();else if(r.getBounds)t=r.getBounds().getCenter();else throw new Error("Unable to get source layer LatLng.");return this.setLatLng(t),this._map&&this.update(),!0},"_prepareOpen"),_updateContent:e(function(){if(this._content){var t=this._contentNode,r=typeof this._content=="function"?this._content(this._source||this):this._content;if(typeof r=="string")t.innerHTML=r;else{for(;t.hasChildNodes();)t.removeChild(t.firstChild);t.appendChild(r)}this.fire("contentupdate")}},"_updateContent"),_updatePosition:e(function(){if(this._map){var t=this._map.latLngToLayerPoint(this._latlng),r=U(this.options.offset),h=this._getAnchor();this._zoomAnimated?Bt(this._container,t.add(h)):r=r.add(t).add(h);var c=this._containerBottom=-r.y,m=this._containerLeft=-Math.round(this._containerWidth/2)+r.x;this._container.style.bottom=c+"px",this._container.style.left=m+"px"}},"_updatePosition"),_getAnchor:e(function(){return[0,0]},"_getAnchor")});ct.include({_initOverlay:e(function(t,r,h,c){var m=r;return m instanceof t||(m=new t(c).setContent(r)),h&&m.setLatLng(h),m},"_initOverlay")}),Me.include({_initOverlay:e(function(t,r,h,c){var m=h;return m instanceof t?(y(m,c),m._source=this):(m=r&&!c?r:new t(c,this),m.setContent(h)),m},"_initOverlay")});var Rn=Be.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:e(function(t){return t=arguments.length?t:this._source._map,!t.hasLayer(this)&&t._popup&&t._popup.options.autoClose&&t.removeLayer(t._popup),t._popup=this,Be.prototype.openOn.call(this,t)},"openOn"),onAdd:e(function(t){Be.prototype.onAdd.call(this,t),t.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof ni||this._source.on("preclick",_i))},"onAdd"),onRemove:e(function(t){Be.prototype.onRemove.call(this,t),t.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof ni||this._source.off("preclick",_i))},"onRemove"),getEvents:e(function(){var t=Be.prototype.getEvents.call(this);return(this.options.closeOnClick!==void 0?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(t.preclick=this.close),this.options.keepInView&&(t.moveend=this._adjustPan),t},"getEvents"),_initLayout:e(function(){var t="leaflet-popup",r=this._container=pt("div",t+" "+(this.options.className||"")+" leaflet-zoom-animated"),h=this._wrapper=pt("div",t+"-content-wrapper",r);if(this._contentNode=pt("div",t+"-content",h),Co(r),Cs(this._contentNode),$(r,"contextmenu",_i),this._tipContainer=pt("div",t+"-tip-container",r),this._tip=pt("div",t+"-tip",this._tipContainer),this.options.closeButton){var c=this._closeButton=pt("a",t+"-close-button",r);c.setAttribute("role","button"),c.setAttribute("aria-label","Close popup"),c.href="#close",c.innerHTML='<span aria-hidden="true">&#215;</span>',$(c,"click",function(m){$t(m),this.close()},this)}},"_initLayout"),_updateLayout:e(function(){var t=this._contentNode,r=t.style;r.width="",r.whiteSpace="nowrap";var h=t.offsetWidth;h=Math.min(h,this.options.maxWidth),h=Math.max(h,this.options.minWidth),r.width=h+1+"px",r.whiteSpace="",r.height="";var c=t.offsetHeight,m=this.options.maxHeight,v="leaflet-popup-scrolled";m&&c>m?(r.height=m+"px",et(t,v)):Ot(t,v),this._containerWidth=this._container.offsetWidth},"_updateLayout"),_animateZoom:e(function(t){var r=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center),h=this._getAnchor();Bt(this._container,r.add(h))},"_animateZoom"),_adjustPan:e(function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning){this._autopanning=!1;return}var t=this._map,r=parseInt(bo(this._container,"marginBottom"),10)||0,h=this._container.offsetHeight+r,c=this._containerWidth,m=new N(this._containerLeft,-h-this._containerBottom);m._add(mi(this._container));var v=t.layerPointToContainerPoint(m),w=U(this.options.autoPanPadding),M=U(this.options.autoPanPaddingTopLeft||w),S=U(this.options.autoPanPaddingBottomRight||w),z=t.getSize(),F=0,V=0;v.x+c+S.x>z.x&&(F=v.x+c-z.x+S.x),v.x-F-M.x<0&&(F=v.x-M.x),v.y+h+S.y>z.y&&(V=v.y+h-z.y+S.y),v.y-V-M.y<0&&(V=v.y-M.y),(F||V)&&(this.options.keepInView&&(this._autopanning=!0),t.fire("autopanstart").panBy([F,V]))}},"_adjustPan"),_getAnchor:e(function(){return U(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])},"_getAnchor")}),Mp=e(function(t,r){return new Rn(t,r)},"popup");ct.mergeOptions({closePopupOnClick:!0}),ct.include({openPopup:e(function(t,r,h){return this._initOverlay(Rn,t,r,h).openOn(this),this},"openPopup"),closePopup:e(function(t){return t=arguments.length?t:this._popup,t&&t.close(),this},"closePopup")}),Me.include({bindPopup:e(function(t,r){return this._popup=this._initOverlay(Rn,this._popup,t,r),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},"bindPopup"),unbindPopup:e(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},"unbindPopup"),openPopup:e(function(t){return this._popup&&(this instanceof Ge||(this._popup._source=this),this._popup._prepareOpen(t||this._latlng)&&this._popup.openOn(this._map)),this},"openPopup"),closePopup:e(function(){return this._popup&&this._popup.close(),this},"closePopup"),togglePopup:e(function(){return this._popup&&this._popup.toggle(this),this},"togglePopup"),isPopupOpen:e(function(){return this._popup?this._popup.isOpen():!1},"isPopupOpen"),setPopupContent:e(function(t){return this._popup&&this._popup.setContent(t),this},"setPopupContent"),getPopup:e(function(){return this._popup},"getPopup"),_openPopup:e(function(t){if(!(!this._popup||!this._map)){gi(t);var r=t.layer||t.target;if(this._popup._source===r&&!(r instanceof ni)){this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(t.latlng);return}this._popup._source=r,this.openPopup(t.latlng)}},"_openPopup"),_movePopup:e(function(t){this._popup.setLatLng(t.latlng)},"_movePopup"),_onKeyPress:e(function(t){t.originalEvent.keyCode===13&&this._openPopup(t)},"_onKeyPress")});var Nn=Be.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:e(function(t){Be.prototype.onAdd.call(this,t),this.setOpacity(this.options.opacity),t.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},"onAdd"),onRemove:e(function(t){Be.prototype.onRemove.call(this,t),t.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},"onRemove"),getEvents:e(function(){var t=Be.prototype.getEvents.call(this);return this.options.permanent||(t.preclick=this.close),t},"getEvents"),_initLayout:e(function(){var t="leaflet-tooltip",r=t+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=pt("div",r),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+u(this))},"_initLayout"),_updateLayout:e(function(){},"_updateLayout"),_adjustPan:e(function(){},"_adjustPan"),_setPosition:e(function(t){var r,h,c=this._map,m=this._container,v=c.latLngToContainerPoint(c.getCenter()),w=c.layerPointToContainerPoint(t),M=this.options.direction,S=m.offsetWidth,z=m.offsetHeight,F=U(this.options.offset),V=this._getAnchor();M==="top"?(r=S/2,h=z):M==="bottom"?(r=S/2,h=0):M==="center"?(r=S/2,h=z/2):M==="right"?(r=0,h=z/2):M==="left"?(r=S,h=z/2):w.x<v.x?(M="right",r=0,h=z/2):(M="left",r=S+(F.x+V.x)*2,h=z/2),t=t.subtract(U(r,h,!0)).add(F).add(V),Ot(m,"leaflet-tooltip-right"),Ot(m,"leaflet-tooltip-left"),Ot(m,"leaflet-tooltip-top"),Ot(m,"leaflet-tooltip-bottom"),et(m,"leaflet-tooltip-"+M),Bt(m,t)},"_setPosition"),_updatePosition:e(function(){var t=this._map.latLngToLayerPoint(this._latlng);this._setPosition(t)},"_updatePosition"),setOpacity:e(function(t){this.options.opacity=t,this._container&&ve(this._container,t)},"setOpacity"),_animateZoom:e(function(t){var r=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center);this._setPosition(r)},"_animateZoom"),_getAnchor:e(function(){return U(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])},"_getAnchor")}),Pp=e(function(t,r){return new Nn(t,r)},"tooltip");ct.include({openTooltip:e(function(t,r,h){return this._initOverlay(Nn,t,r,h).openOn(this),this},"openTooltip"),closeTooltip:e(function(t){return t.close(),this},"closeTooltip")}),Me.include({bindTooltip:e(function(t,r){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(Nn,this._tooltip,t,r),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},"bindTooltip"),unbindTooltip:e(function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},"unbindTooltip"),_initTooltipInteractions:e(function(t){if(!(!t&&this._tooltipHandlersAdded)){var r=t?"off":"on",h={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?h.add=this._openTooltip:(h.mouseover=this._openTooltip,h.mouseout=this.closeTooltip,h.click=this._openTooltip,this._map?this._addFocusListeners():h.add=this._addFocusListeners),this._tooltip.options.sticky&&(h.mousemove=this._moveTooltip),this[r](h),this._tooltipHandlersAdded=!t}},"_initTooltipInteractions"),openTooltip:e(function(t){return this._tooltip&&(this instanceof Ge||(this._tooltip._source=this),this._tooltip._prepareOpen(t)&&(this._tooltip.openOn(this._map),this.getElement?this._setAriaDescribedByOnLayer(this):this.eachLayer&&this.eachLayer(this._setAriaDescribedByOnLayer,this))),this},"openTooltip"),closeTooltip:e(function(){if(this._tooltip)return this._tooltip.close()},"closeTooltip"),toggleTooltip:e(function(){return this._tooltip&&this._tooltip.toggle(this),this},"toggleTooltip"),isTooltipOpen:e(function(){return this._tooltip.isOpen()},"isTooltipOpen"),setTooltipContent:e(function(t){return this._tooltip&&this._tooltip.setContent(t),this},"setTooltipContent"),getTooltip:e(function(){return this._tooltip},"getTooltip"),_addFocusListeners:e(function(){this.getElement?this._addFocusListenersOnLayer(this):this.eachLayer&&this.eachLayer(this._addFocusListenersOnLayer,this)},"_addFocusListeners"),_addFocusListenersOnLayer:e(function(t){var r=typeof t.getElement=="function"&&t.getElement();r&&($(r,"focus",function(){this._tooltip._source=t,this.openTooltip()},this),$(r,"blur",this.closeTooltip,this))},"_addFocusListenersOnLayer"),_setAriaDescribedByOnLayer:e(function(t){var r=typeof t.getElement=="function"&&t.getElement();r&&r.setAttribute("aria-describedby",this._tooltip._container.id)},"_setAriaDescribedByOnLayer"),_openTooltip:e(function(t){if(!(!this._tooltip||!this._map)){if(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag){this._openOnceFlag=!0;var r=this;this._map.once("moveend",function(){r._openOnceFlag=!1,r._openTooltip(t)});return}this._tooltip._source=t.layer||t.target,this.openTooltip(this._tooltip.options.sticky?t.latlng:void 0)}},"_openTooltip"),_moveTooltip:e(function(t){var r=t.latlng,h,c;this._tooltip.options.sticky&&t.originalEvent&&(h=this._map.mouseEventToContainerPoint(t.originalEvent),c=this._map.containerPointToLayerPoint(h),r=this._map.layerPointToLatLng(c)),this._tooltip.setLatLng(r)},"_moveTooltip")});var kh=Zi.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:e(function(t){var r=t&&t.tagName==="DIV"?t:document.createElement("div"),h=this.options;if(h.html instanceof Element?(Cn(r),r.appendChild(h.html)):r.innerHTML=h.html!==!1?h.html:"",h.bgPos){var c=U(h.bgPos);r.style.backgroundPosition=-c.x+"px "+-c.y+"px"}return this._setIconStyles(r,"icon"),r},"createIcon"),createShadow:e(function(){return null},"createShadow")});function Ep(t){return new kh(t)}e(Ep,"divIcon"),Zi.Default=Po;var Eo=Me.extend({options:{tileSize:256,opacity:1,updateWhenIdle:W.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:e(function(t){y(this,t)},"initialize"),onAdd:e(function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},"onAdd"),beforeAdd:e(function(t){t._addZoomLimit(this)},"beforeAdd"),onRemove:e(function(t){this._removeAllTiles(),kt(this._container),t._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},"onRemove"),bringToFront:e(function(){return this._map&&(Bi(this._container),this._setAutoZIndex(Math.max)),this},"bringToFront"),bringToBack:e(function(){return this._map&&(Ri(this._container),this._setAutoZIndex(Math.min)),this},"bringToBack"),getContainer:e(function(){return this._container},"getContainer"),setOpacity:e(function(t){return this.options.opacity=t,this._updateOpacity(),this},"setOpacity"),setZIndex:e(function(t){return this.options.zIndex=t,this._updateZIndex(),this},"setZIndex"),isLoading:e(function(){return this._loading},"isLoading"),redraw:e(function(){if(this._map){this._removeAllTiles();var t=this._clampZoom(this._map.getZoom());t!==this._tileZoom&&(this._tileZoom=t,this._updateLevels()),this._update()}return this},"redraw"),getEvents:e(function(){var t={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=p(this._onMoveEnd,this.options.updateInterval,this)),t.move=this._onMove),this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},"getEvents"),createTile:e(function(){return document.createElement("div")},"createTile"),getTileSize:e(function(){var t=this.options.tileSize;return t instanceof N?t:new N(t,t)},"getTileSize"),_updateZIndex:e(function(){this._container&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._container.style.zIndex=this.options.zIndex)},"_updateZIndex"),_setAutoZIndex:e(function(t){for(var r=this.getPane().children,h=-t(-1/0,1/0),c=0,m=r.length,v;c<m;c++)v=r[c].style.zIndex,r[c]!==this._container&&v&&(h=t(h,+v));isFinite(h)&&(this.options.zIndex=h+t(-1,1),this._updateZIndex())},"_setAutoZIndex"),_updateOpacity:e(function(){if(this._map&&!W.ielt9){ve(this._container,this.options.opacity);var t=+new Date,r=!1,h=!1;for(var c in this._tiles){var m=this._tiles[c];if(!(!m.current||!m.loaded)){var v=Math.min(1,(t-m.loaded)/200);ve(m.el,v),v<1?r=!0:(m.active?h=!0:this._onOpaqueTile(m),m.active=!0)}}h&&!this._noPrune&&this._pruneTiles(),r&&(ot(this._fadeFrame),this._fadeFrame=X(this._updateOpacity,this))}},"_updateOpacity"),_onOpaqueTile:d,_initContainer:e(function(){this._container||(this._container=pt("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},"_initContainer"),_updateLevels:e(function(){var t=this._tileZoom,r=this.options.maxZoom;if(t!==void 0){for(var h in this._levels)h=Number(h),this._levels[h].el.children.length||h===t?(this._levels[h].el.style.zIndex=r-Math.abs(t-h),this._onUpdateLevel(h)):(kt(this._levels[h].el),this._removeTilesAtZoom(h),this._onRemoveLevel(h),delete this._levels[h]);var c=this._levels[t],m=this._map;return c||(c=this._levels[t]={},c.el=pt("div","leaflet-tile-container leaflet-zoom-animated",this._container),c.el.style.zIndex=r,c.origin=m.project(m.unproject(m.getPixelOrigin()),t).round(),c.zoom=t,this._setZoomTransform(c,m.getCenter(),m.getZoom()),d(c.el.offsetWidth),this._onCreateLevel(c)),this._level=c,c}},"_updateLevels"),_onUpdateLevel:d,_onRemoveLevel:d,_onCreateLevel:d,_pruneTiles:e(function(){if(this._map){var t,r,h=this._map.getZoom();if(h>this.options.maxZoom||h<this.options.minZoom){this._removeAllTiles();return}for(t in this._tiles)r=this._tiles[t],r.retain=r.current;for(t in this._tiles)if(r=this._tiles[t],r.current&&!r.active){var c=r.coords;this._retainParent(c.x,c.y,c.z,c.z-5)||this._retainChildren(c.x,c.y,c.z,c.z+2)}for(t in this._tiles)this._tiles[t].retain||this._removeTile(t)}},"_pruneTiles"),_removeTilesAtZoom:e(function(t){for(var r in this._tiles)this._tiles[r].coords.z===t&&this._removeTile(r)},"_removeTilesAtZoom"),_removeAllTiles:e(function(){for(var t in this._tiles)this._removeTile(t)},"_removeAllTiles"),_invalidateAll:e(function(){for(var t in this._levels)kt(this._levels[t].el),this._onRemoveLevel(Number(t)),delete this._levels[t];this._removeAllTiles(),this._tileZoom=void 0},"_invalidateAll"),_retainParent:e(function(t,r,h,c){var m=Math.floor(t/2),v=Math.floor(r/2),w=h-1,M=new N(+m,+v);M.z=+w;var S=this._tileCoordsToKey(M),z=this._tiles[S];return z&&z.active?(z.retain=!0,!0):(z&&z.loaded&&(z.retain=!0),w>c?this._retainParent(m,v,w,c):!1)},"_retainParent"),_retainChildren:e(function(t,r,h,c){for(var m=2*t;m<2*t+2;m++)for(var v=2*r;v<2*r+2;v++){var w=new N(m,v);w.z=h+1;var M=this._tileCoordsToKey(w),S=this._tiles[M];if(S&&S.active){S.retain=!0;continue}else S&&S.loaded&&(S.retain=!0);h+1<c&&this._retainChildren(m,v,h+1,c)}},"_retainChildren"),_resetView:e(function(t){var r=t&&(t.pinch||t.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),r,r)},"_resetView"),_animateZoom:e(function(t){this._setView(t.center,t.zoom,!0,t.noUpdate)},"_animateZoom"),_clampZoom:e(function(t){var r=this.options;return r.minNativeZoom!==void 0&&t<r.minNativeZoom?r.minNativeZoom:r.maxNativeZoom!==void 0&&r.maxNativeZoom<t?r.maxNativeZoom:t},"_clampZoom"),_setView:e(function(t,r,h,c){var m=Math.round(r);this.options.maxZoom!==void 0&&m>this.options.maxZoom||this.options.minZoom!==void 0&&m<this.options.minZoom?m=void 0:m=this._clampZoom(m);var v=this.options.updateWhenZooming&&m!==this._tileZoom;(!c||v)&&(this._tileZoom=m,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),m!==void 0&&this._update(t),h||this._pruneTiles(),this._noPrune=!!h),this._setZoomTransforms(t,r)},"_setView"),_setZoomTransforms:e(function(t,r){for(var h in this._levels)this._setZoomTransform(this._levels[h],t,r)},"_setZoomTransforms"),_setZoomTransform:e(function(t,r,h){var c=this._map.getZoomScale(h,t.zoom),m=t.origin.multiplyBy(c).subtract(this._map._getNewPixelOrigin(r,h)).round();W.any3d?fi(t.el,m,c):Bt(t.el,m)},"_setZoomTransform"),_resetGrid:e(function(){var t=this._map,r=t.options.crs,h=this._tileSize=this.getTileSize(),c=this._tileZoom,m=this._map.getPixelWorldBounds(this._tileZoom);m&&(this._globalTileRange=this._pxBoundsToTileRange(m)),this._wrapX=r.wrapLng&&!this.options.noWrap&&[Math.floor(t.project([0,r.wrapLng[0]],c).x/h.x),Math.ceil(t.project([0,r.wrapLng[1]],c).x/h.y)],this._wrapY=r.wrapLat&&!this.options.noWrap&&[Math.floor(t.project([r.wrapLat[0],0],c).y/h.x),Math.ceil(t.project([r.wrapLat[1],0],c).y/h.y)]},"_resetGrid"),_onMoveEnd:e(function(){!this._map||this._map._animatingZoom||this._update()},"_onMoveEnd"),_getTiledPixelBounds:e(function(t){var r=this._map,h=r._animatingZoom?Math.max(r._animateToZoom,r.getZoom()):r.getZoom(),c=r.getZoomScale(h,this._tileZoom),m=r.project(t,this._tileZoom).floor(),v=r.getSize().divideBy(c*2);return new at(m.subtract(v),m.add(v))},"_getTiledPixelBounds"),_update:e(function(t){var r=this._map;if(r){var h=this._clampZoom(r.getZoom());if(t===void 0&&(t=r.getCenter()),this._tileZoom!==void 0){var c=this._getTiledPixelBounds(t),m=this._pxBoundsToTileRange(c),v=m.getCenter(),w=[],M=this.options.keepBuffer,S=new at(m.getBottomLeft().subtract([M,-M]),m.getTopRight().add([M,-M]));if(!(isFinite(m.min.x)&&isFinite(m.min.y)&&isFinite(m.max.x)&&isFinite(m.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var z in this._tiles){var F=this._tiles[z].coords;(F.z!==this._tileZoom||!S.contains(new N(F.x,F.y)))&&(this._tiles[z].current=!1)}if(Math.abs(h-this._tileZoom)>1){this._setView(t,h);return}for(var V=m.min.y;V<=m.max.y;V++)for(var rt=m.min.x;rt<=m.max.x;rt++){var ee=new N(rt,V);if(ee.z=this._tileZoom,!!this._isValidTile(ee)){var qt=this._tiles[this._tileCoordsToKey(ee)];qt?qt.current=!0:w.push(ee)}}if(w.sort(function(ae,Ui){return ae.distanceTo(v)-Ui.distanceTo(v)}),w.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var xe=document.createDocumentFragment();for(rt=0;rt<w.length;rt++)this._addTile(w[rt],xe);this._level.el.appendChild(xe)}}}},"_update"),_isValidTile:e(function(t){var r=this._map.options.crs;if(!r.infinite){var h=this._globalTileRange;if(!r.wrapLng&&(t.x<h.min.x||t.x>h.max.x)||!r.wrapLat&&(t.y<h.min.y||t.y>h.max.y))return!1}if(!this.options.bounds)return!0;var c=this._tileCoordsToBounds(t);return _t(this.options.bounds).overlaps(c)},"_isValidTile"),_keyToBounds:e(function(t){return this._tileCoordsToBounds(this._keyToTileCoords(t))},"_keyToBounds"),_tileCoordsToNwSe:e(function(t){var r=this._map,h=this.getTileSize(),c=t.scaleBy(h),m=c.add(h),v=r.unproject(c,t.z),w=r.unproject(m,t.z);return[v,w]},"_tileCoordsToNwSe"),_tileCoordsToBounds:e(function(t){var r=this._tileCoordsToNwSe(t),h=new Ct(r[0],r[1]);return this.options.noWrap||(h=this._map.wrapLatLngBounds(h)),h},"_tileCoordsToBounds"),_tileCoordsToKey:e(function(t){return t.x+":"+t.y+":"+t.z},"_tileCoordsToKey"),_keyToTileCoords:e(function(t){var r=t.split(":"),h=new N(+r[0],+r[1]);return h.z=+r[2],h},"_keyToTileCoords"),_removeTile:e(function(t){var r=this._tiles[t];r&&(kt(r.el),delete this._tiles[t],this.fire("tileunload",{tile:r.el,coords:this._keyToTileCoords(t)}))},"_removeTile"),_initTile:e(function(t){et(t,"leaflet-tile");var r=this.getTileSize();t.style.width=r.x+"px",t.style.height=r.y+"px",t.onselectstart=d,t.onmousemove=d,W.ielt9&&this.options.opacity<1&&ve(t,this.options.opacity)},"_initTile"),_addTile:e(function(t,r){var h=this._getTilePos(t),c=this._tileCoordsToKey(t),m=this.createTile(this._wrapCoords(t),i(this._tileReady,this,t));this._initTile(m),this.createTile.length<2&&X(i(this._tileReady,this,t,null,m)),Bt(m,h),this._tiles[c]={el:m,coords:t,current:!0},r.appendChild(m),this.fire("tileloadstart",{tile:m,coords:t})},"_addTile"),_tileReady:e(function(t,r,h){r&&this.fire("tileerror",{error:r,tile:h,coords:t});var c=this._tileCoordsToKey(t);h=this._tiles[c],h&&(h.loaded=+new Date,this._map._fadeAnimated?(ve(h.el,0),ot(this._fadeFrame),this._fadeFrame=X(this._updateOpacity,this)):(h.active=!0,this._pruneTiles()),r||(et(h.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:h.el,coords:t})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),W.ielt9||!this._map._fadeAnimated?X(this._pruneTiles,this):setTimeout(i(this._pruneTiles,this),250)))},"_tileReady"),_getTilePos:e(function(t){return t.scaleBy(this.getTileSize()).subtract(this._level.origin)},"_getTilePos"),_wrapCoords:e(function(t){var r=new N(this._wrapX?g(t.x,this._wrapX):t.x,this._wrapY?g(t.y,this._wrapY):t.y);return r.z=t.z,r},"_wrapCoords"),_pxBoundsToTileRange:e(function(t){var r=this.getTileSize();return new at(t.min.unscaleBy(r).floor(),t.max.unscaleBy(r).ceil().subtract([1,1]))},"_pxBoundsToTileRange"),_noTilesToLoad:e(function(){for(var t in this._tiles)if(!this._tiles[t].loaded)return!1;return!0},"_noTilesToLoad")});function Sp(t){return new Eo(t)}e(Sp,"gridLayer");var Hi=Eo.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:e(function(t,r){this._url=t,r=y(this,r),r.detectRetina&&W.retina&&r.maxZoom>0?(r.tileSize=Math.floor(r.tileSize/2),r.zoomReverse?(r.zoomOffset--,r.minZoom=Math.min(r.maxZoom,r.minZoom+1)):(r.zoomOffset++,r.maxZoom=Math.max(r.minZoom,r.maxZoom-1)),r.minZoom=Math.max(0,r.minZoom)):r.zoomReverse?r.minZoom=Math.min(r.maxZoom,r.minZoom):r.maxZoom=Math.max(r.minZoom,r.maxZoom),typeof r.subdomains=="string"&&(r.subdomains=r.subdomains.split("")),this.on("tileunload",this._onTileRemove)},"initialize"),setUrl:e(function(t,r){return this._url===t&&r===void 0&&(r=!0),this._url=t,r||this.redraw(),this},"setUrl"),createTile:e(function(t,r){var h=document.createElement("img");return $(h,"load",i(this._tileOnLoad,this,r,h)),$(h,"error",i(this._tileOnError,this,r,h)),(this.options.crossOrigin||this.options.crossOrigin==="")&&(h.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&(h.referrerPolicy=this.options.referrerPolicy),h.alt="",h.src=this.getTileUrl(t),h},"createTile"),getTileUrl:e(function(t){var r={r:W.retina?"@2x":"",s:this._getSubdomain(t),x:t.x,y:t.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var h=this._globalTileRange.max.y-t.y;this.options.tms&&(r.y=h),r["-y"]=h}return C(this._url,l(r,this.options))},"getTileUrl"),_tileOnLoad:e(function(t,r){W.ielt9?setTimeout(i(t,this,null,r),0):t(null,r)},"_tileOnLoad"),_tileOnError:e(function(t,r,h){var c=this.options.errorTileUrl;c&&r.getAttribute("src")!==c&&(r.src=c),t(h,r)},"_tileOnError"),_onTileRemove:e(function(t){t.tile.onload=null},"_onTileRemove"),_getZoomForUrl:e(function(){var t=this._tileZoom,r=this.options.maxZoom,h=this.options.zoomReverse,c=this.options.zoomOffset;return h&&(t=r-t),t+c},"_getZoomForUrl"),_getSubdomain:e(function(t){var r=Math.abs(t.x+t.y)%this.options.subdomains.length;return this.options.subdomains[r]},"_getSubdomain"),_abortLoading:e(function(){var t,r;for(t in this._tiles)if(this._tiles[t].coords.z!==this._tileZoom&&(r=this._tiles[t].el,r.onload=d,r.onerror=d,!r.complete)){r.src=E;var h=this._tiles[t].coords;kt(r),delete this._tiles[t],this.fire("tileabort",{tile:r,coords:h})}},"_abortLoading"),_removeTile:e(function(t){var r=this._tiles[t];if(r)return r.el.setAttribute("src",E),Eo.prototype._removeTile.call(this,t)},"_removeTile"),_tileReady:e(function(t,r,h){if(!(!this._map||h&&h.getAttribute("src")===E))return Eo.prototype._tileReady.call(this,t,r,h)},"_tileReady")});function Mh(t,r){return new Hi(t,r)}e(Mh,"tileLayer");var Ph=Hi.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:e(function(t,r){this._url=t;var h=l({},this.defaultWmsParams);for(var c in r)c in this.options||(h[c]=r[c]);r=y(this,r);var m=r.detectRetina&&W.retina?2:1,v=this.getTileSize();h.width=v.x*m,h.height=v.y*m,this.wmsParams=h},"initialize"),onAdd:e(function(t){this._crs=this.options.crs||t.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var r=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[r]=this._crs.code,Hi.prototype.onAdd.call(this,t)},"onAdd"),getTileUrl:e(function(t){var r=this._tileCoordsToNwSe(t),h=this._crs,c=At(h.project(r[0]),h.project(r[1])),m=c.min,v=c.max,w=(this._wmsVersion>=1.3&&this._crs===vh?[m.y,m.x,v.y,v.x]:[m.x,m.y,v.x,v.y]).join(","),M=Hi.prototype.getTileUrl.call(this,t);return M+x(this.wmsParams,M,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+w},"getTileUrl"),setParams:e(function(t,r){return l(this.wmsParams,t),r||this.redraw(),this},"setParams")});function Tp(t,r){return new Ph(t,r)}e(Tp,"tileLayerWMS"),Hi.WMS=Ph,Mh.wms=Tp;var We=Me.extend({options:{padding:.1},initialize:e(function(t){y(this,t),u(this),this._layers=this._layers||{}},"initialize"),onAdd:e(function(){this._container||(this._initContainer(),et(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},"onAdd"),onRemove:e(function(){this.off("update",this._updatePaths,this),this._destroyContainer()},"onRemove"),getEvents:e(function(){var t={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(t.zoomanim=this._onAnimZoom),t},"getEvents"),_onAnimZoom:e(function(t){this._updateTransform(t.center,t.zoom)},"_onAnimZoom"),_onZoom:e(function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},"_onZoom"),_updateTransform:e(function(t,r){var h=this._map.getZoomScale(r,this._zoom),c=this._map.getSize().multiplyBy(.5+this.options.padding),m=this._map.project(this._center,r),v=c.multiplyBy(-h).add(m).subtract(this._map._getNewPixelOrigin(t,r));W.any3d?fi(this._container,v,h):Bt(this._container,v)},"_updateTransform"),_reset:e(function(){this._update(),this._updateTransform(this._center,this._zoom);for(var t in this._layers)this._layers[t]._reset()},"_reset"),_onZoomEnd:e(function(){for(var t in this._layers)this._layers[t]._project()},"_onZoomEnd"),_updatePaths:e(function(){for(var t in this._layers)this._layers[t]._update()},"_updatePaths"),_update:e(function(){var t=this.options.padding,r=this._map.getSize(),h=this._map.containerPointToLayerPoint(r.multiplyBy(-t)).round();this._bounds=new at(h,h.add(r.multiplyBy(1+t*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()},"_update")}),Eh=We.extend({options:{tolerance:0},getEvents:e(function(){var t=We.prototype.getEvents.call(this);return t.viewprereset=this._onViewPreReset,t},"getEvents"),_onViewPreReset:e(function(){this._postponeUpdatePaths=!0},"_onViewPreReset"),onAdd:e(function(){We.prototype.onAdd.call(this),this._draw()},"onAdd"),_initContainer:e(function(){var t=this._container=document.createElement("canvas");$(t,"mousemove",this._onMouseMove,this),$(t,"click dblclick mousedown mouseup contextmenu",this._onClick,this),$(t,"mouseout",this._handleMouseOut,this),t._leaflet_disable_events=!0,this._ctx=t.getContext("2d")},"_initContainer"),_destroyContainer:e(function(){ot(this._redrawRequest),delete this._ctx,kt(this._container),Lt(this._container),delete this._container},"_destroyContainer"),_updatePaths:e(function(){if(!this._postponeUpdatePaths){var t;this._redrawBounds=null;for(var r in this._layers)t=this._layers[r],t._update();this._redraw()}},"_updatePaths"),_update:e(function(){if(!(this._map._animatingZoom&&this._bounds)){We.prototype._update.call(this);var t=this._bounds,r=this._container,h=t.getSize(),c=W.retina?2:1;Bt(r,t.min),r.width=c*h.x,r.height=c*h.y,r.style.width=h.x+"px",r.style.height=h.y+"px",W.retina&&this._ctx.scale(2,2),this._ctx.translate(-t.min.x,-t.min.y),this.fire("update")}},"_update"),_reset:e(function(){We.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},"_reset"),_initPath:e(function(t){this._updateDashArray(t),this._layers[u(t)]=t;var r=t._order={layer:t,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=r),this._drawLast=r,this._drawFirst=this._drawFirst||this._drawLast},"_initPath"),_addPath:e(function(t){this._requestRedraw(t)},"_addPath"),_removePath:e(function(t){var r=t._order,h=r.next,c=r.prev;h?h.prev=c:this._drawLast=c,c?c.next=h:this._drawFirst=h,delete t._order,delete this._layers[u(t)],this._requestRedraw(t)},"_removePath"),_updatePath:e(function(t){this._extendRedrawBounds(t),t._project(),t._update(),this._requestRedraw(t)},"_updatePath"),_updateStyle:e(function(t){this._updateDashArray(t),this._requestRedraw(t)},"_updateStyle"),_updateDashArray:e(function(t){if(typeof t.options.dashArray=="string"){var r=t.options.dashArray.split(/[, ]+/),h=[],c,m;for(m=0;m<r.length;m++){if(c=Number(r[m]),isNaN(c))return;h.push(c)}t.options._dashArray=h}else t.options._dashArray=t.options.dashArray},"_updateDashArray"),_requestRedraw:e(function(t){this._map&&(this._extendRedrawBounds(t),this._redrawRequest=this._redrawRequest||X(this._redraw,this))},"_requestRedraw"),_extendRedrawBounds:e(function(t){if(t._pxBounds){var r=(t.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new at,this._redrawBounds.extend(t._pxBounds.min.subtract([r,r])),this._redrawBounds.extend(t._pxBounds.max.add([r,r]))}},"_extendRedrawBounds"),_redraw:e(function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},"_redraw"),_clear:e(function(){var t=this._redrawBounds;if(t){var r=t.getSize();this._ctx.clearRect(t.min.x,t.min.y,r.x,r.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()},"_clear"),_draw:e(function(){var t,r=this._redrawBounds;if(this._ctx.save(),r){var h=r.getSize();this._ctx.beginPath(),this._ctx.rect(r.min.x,r.min.y,h.x,h.y),this._ctx.clip()}this._drawing=!0;for(var c=this._drawFirst;c;c=c.next)t=c.layer,(!r||t._pxBounds&&t._pxBounds.intersects(r))&&t._updatePath();this._drawing=!1,this._ctx.restore()},"_draw"),_updatePoly:e(function(t,r){if(this._drawing){var h,c,m,v,w=t._parts,M=w.length,S=this._ctx;if(M){for(S.beginPath(),h=0;h<M;h++){for(c=0,m=w[h].length;c<m;c++)v=w[h][c],S[c?"lineTo":"moveTo"](v.x,v.y);r&&S.closePath()}this._fillStroke(S,t)}}},"_updatePoly"),_updateCircle:e(function(t){if(!(!this._drawing||t._empty())){var r=t._point,h=this._ctx,c=Math.max(Math.round(t._radius),1),m=(Math.max(Math.round(t._radiusY),1)||c)/c;m!==1&&(h.save(),h.scale(1,m)),h.beginPath(),h.arc(r.x,r.y/m,c,0,Math.PI*2,!1),m!==1&&h.restore(),this._fillStroke(h,t)}},"_updateCircle"),_fillStroke:e(function(t,r){var h=r.options;h.fill&&(t.globalAlpha=h.fillOpacity,t.fillStyle=h.fillColor||h.color,t.fill(h.fillRule||"evenodd")),h.stroke&&h.weight!==0&&(t.setLineDash&&t.setLineDash(r.options&&r.options._dashArray||[]),t.globalAlpha=h.opacity,t.lineWidth=h.weight,t.strokeStyle=h.color,t.lineCap=h.lineCap,t.lineJoin=h.lineJoin,t.stroke())},"_fillStroke"),_onClick:e(function(t){for(var r=this._map.mouseEventToLayerPoint(t),h,c,m=this._drawFirst;m;m=m.next)h=m.layer,h.options.interactive&&h._containsPoint(r)&&(!(t.type==="click"||t.type==="preclick")||!this._map._draggableMoved(h))&&(c=h);this._fireEvent(c?[c]:!1,t)},"_onClick"),_onMouseMove:e(function(t){if(!(!this._map||this._map.dragging.moving()||this._map._animatingZoom)){var r=this._map.mouseEventToLayerPoint(t);this._handleMouseHover(t,r)}},"_onMouseMove"),_handleMouseOut:e(function(t){var r=this._hoveredLayer;r&&(Ot(this._container,"leaflet-interactive"),this._fireEvent([r],t,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},"_handleMouseOut"),_handleMouseHover:e(function(t,r){if(!this._mouseHoverThrottled){for(var h,c,m=this._drawFirst;m;m=m.next)h=m.layer,h.options.interactive&&h._containsPoint(r)&&(c=h);c!==this._hoveredLayer&&(this._handleMouseOut(t),c&&(et(this._container,"leaflet-interactive"),this._fireEvent([c],t,"mouseover"),this._hoveredLayer=c)),this._fireEvent(this._hoveredLayer?[this._hoveredLayer]:!1,t),this._mouseHoverThrottled=!0,setTimeout(i(function(){this._mouseHoverThrottled=!1},this),32)}},"_handleMouseHover"),_fireEvent:e(function(t,r,h){this._map._fireDOMEvent(r,h||r.type,t)},"_fireEvent"),_bringToFront:e(function(t){var r=t._order;if(r){var h=r.next,c=r.prev;if(h)h.prev=c;else return;c?c.next=h:h&&(this._drawFirst=h),r.prev=this._drawLast,this._drawLast.next=r,r.next=null,this._drawLast=r,this._requestRedraw(t)}},"_bringToFront"),_bringToBack:e(function(t){var r=t._order;if(r){var h=r.next,c=r.prev;if(c)c.next=h;else return;h?h.prev=c:c&&(this._drawLast=c),r.prev=null,r.next=this._drawFirst,this._drawFirst.prev=r,this._drawFirst=r,this._requestRedraw(t)}},"_bringToBack")});function Sh(t){return W.canvas?new Eh(t):null}e(Sh,"canvas");var So=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(t){return document.createElement("<lvml:"+t+' class="lvml">')}}catch{}return function(t){return document.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),Op={_initContainer:e(function(){this._container=pt("div","leaflet-vml-container")},"_initContainer"),_update:e(function(){this._map._animatingZoom||(We.prototype._update.call(this),this.fire("update"))},"_update"),_initPath:e(function(t){var r=t._container=So("shape");et(r,"leaflet-vml-shape "+(this.options.className||"")),r.coordsize="1 1",t._path=So("path"),r.appendChild(t._path),this._updateStyle(t),this._layers[u(t)]=t},"_initPath"),_addPath:e(function(t){var r=t._container;this._container.appendChild(r),t.options.interactive&&t.addInteractiveTarget(r)},"_addPath"),_removePath:e(function(t){var r=t._container;kt(r),t.removeInteractiveTarget(r),delete this._layers[u(t)]},"_removePath"),_updateStyle:e(function(t){var r=t._stroke,h=t._fill,c=t.options,m=t._container;m.stroked=!!c.stroke,m.filled=!!c.fill,c.stroke?(r||(r=t._stroke=So("stroke")),m.appendChild(r),r.weight=c.weight+"px",r.color=c.color,r.opacity=c.opacity,c.dashArray?r.dashStyle=P(c.dashArray)?c.dashArray.join(" "):c.dashArray.replace(/( *, *)/g," "):r.dashStyle="",r.endcap=c.lineCap.replace("butt","flat"),r.joinstyle=c.lineJoin):r&&(m.removeChild(r),t._stroke=null),c.fill?(h||(h=t._fill=So("fill")),m.appendChild(h),h.color=c.fillColor||c.color,h.opacity=c.fillOpacity):h&&(m.removeChild(h),t._fill=null)},"_updateStyle"),_updateCircle:e(function(t){var r=t._point.round(),h=Math.round(t._radius),c=Math.round(t._radiusY||h);this._setPath(t,t._empty()?"M0 0":"AL "+r.x+","+r.y+" "+h+","+c+" 0,"+65535*360)},"_updateCircle"),_setPath:e(function(t,r){t._path.v=r},"_setPath"),_bringToFront:e(function(t){Bi(t._container)},"_bringToFront"),_bringToBack:e(function(t){Ri(t._container)},"_bringToBack")},Zn=W.vml?So:Il,To=We.extend({_initContainer:e(function(){this._container=Zn("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=Zn("g"),this._container.appendChild(this._rootGroup)},"_initContainer"),_destroyContainer:e(function(){kt(this._container),Lt(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},"_destroyContainer"),_update:e(function(){if(!(this._map._animatingZoom&&this._bounds)){We.prototype._update.call(this);var t=this._bounds,r=t.getSize(),h=this._container;(!this._svgSize||!this._svgSize.equals(r))&&(this._svgSize=r,h.setAttribute("width",r.x),h.setAttribute("height",r.y)),Bt(h,t.min),h.setAttribute("viewBox",[t.min.x,t.min.y,r.x,r.y].join(" ")),this.fire("update")}},"_update"),_initPath:e(function(t){var r=t._path=Zn("path");t.options.className&&et(r,t.options.className),t.options.interactive&&et(r,"leaflet-interactive"),this._updateStyle(t),this._layers[u(t)]=t},"_initPath"),_addPath:e(function(t){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(t._path),t.addInteractiveTarget(t._path)},"_addPath"),_removePath:e(function(t){kt(t._path),t.removeInteractiveTarget(t._path),delete this._layers[u(t)]},"_removePath"),_updatePath:e(function(t){t._project(),t._update()},"_updatePath"),_updateStyle:e(function(t){var r=t._path,h=t.options;r&&(h.stroke?(r.setAttribute("stroke",h.color),r.setAttribute("stroke-opacity",h.opacity),r.setAttribute("stroke-width",h.weight),r.setAttribute("stroke-linecap",h.lineCap),r.setAttribute("stroke-linejoin",h.lineJoin),h.dashArray?r.setAttribute("stroke-dasharray",h.dashArray):r.removeAttribute("stroke-dasharray"),h.dashOffset?r.setAttribute("stroke-dashoffset",h.dashOffset):r.removeAttribute("stroke-dashoffset")):r.setAttribute("stroke","none"),h.fill?(r.setAttribute("fill",h.fillColor||h.color),r.setAttribute("fill-opacity",h.fillOpacity),r.setAttribute("fill-rule",h.fillRule||"evenodd")):r.setAttribute("fill","none"))},"_updateStyle"),_updatePoly:e(function(t,r){this._setPath(t,Dl(t._parts,r))},"_updatePoly"),_updateCircle:e(function(t){var r=t._point,h=Math.max(Math.round(t._radius),1),c=Math.max(Math.round(t._radiusY),1)||h,m="a"+h+","+c+" 0 1,0 ",v=t._empty()?"M0 0":"M"+(r.x-h)+","+r.y+m+h*2+",0 "+m+-h*2+",0 ";this._setPath(t,v)},"_updateCircle"),_setPath:e(function(t,r){t._path.setAttribute("d",r)},"_setPath"),_bringToFront:e(function(t){Bi(t._path)},"_bringToFront"),_bringToBack:e(function(t){Ri(t._path)},"_bringToBack")});W.vml&&To.include(Op);function Th(t){return W.svg||W.vml?new To(t):null}e(Th,"svg"),ct.include({getRenderer:e(function(t){var r=t.options.renderer||this._getPaneRenderer(t.options.pane)||this.options.renderer||this._renderer;return r||(r=this._renderer=this._createRenderer()),this.hasLayer(r)||this.addLayer(r),r},"getRenderer"),_getPaneRenderer:e(function(t){if(t==="overlayPane"||t===void 0)return!1;var r=this._paneRenderers[t];return r===void 0&&(r=this._createRenderer({pane:t}),this._paneRenderers[t]=r),r},"_getPaneRenderer"),_createRenderer:e(function(t){return this.options.preferCanvas&&Sh(t)||Th(t)},"_createRenderer")});var Oh=Fi.extend({initialize:e(function(t,r){Fi.prototype.initialize.call(this,this._boundsToLatLngs(t),r)},"initialize"),setBounds:e(function(t){return this.setLatLngs(this._boundsToLatLngs(t))},"setBounds"),_boundsToLatLngs:e(function(t){return t=_t(t),[t.getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]},"_boundsToLatLngs")});function zp(t,r){return new Oh(t,r)}e(zp,"rectangle"),To.create=Zn,To.pointsToPath=Dl,Ue.geometryToLayer=zn,Ue.coordsToLatLng=Is,Ue.coordsToLatLngs=In,Ue.latLngToCoords=Ds,Ue.latLngsToCoords=Dn,Ue.getFeature=Gi,Ue.asFeature=An,ct.mergeOptions({boxZoom:!0});var zh=Ae.extend({initialize:e(function(t){this._map=t,this._container=t._container,this._pane=t._panes.overlayPane,this._resetStateTimeout=0,t.on("unload",this._destroy,this)},"initialize"),addHooks:e(function(){$(this._container,"mousedown",this._onMouseDown,this)},"addHooks"),removeHooks:e(function(){Lt(this._container,"mousedown",this._onMouseDown,this)},"removeHooks"),moved:e(function(){return this._moved},"moved"),_destroy:e(function(){kt(this._pane),delete this._pane},"_destroy"),_resetState:e(function(){this._resetStateTimeout=0,this._moved=!1},"_resetState"),_clearDeferredResetState:e(function(){this._resetStateTimeout!==0&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},"_clearDeferredResetState"),_onMouseDown:e(function(t){if(!t.shiftKey||t.which!==1&&t.button!==1)return!1;this._clearDeferredResetState(),this._resetState(),xo(),_s(),this._startPoint=this._map.mouseEventToContainerPoint(t),$(document,{contextmenu:gi,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},"_onMouseDown"),_onMouseMove:e(function(t){this._moved||(this._moved=!0,this._box=pt("div","leaflet-zoom-box",this._container),et(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(t);var r=new at(this._point,this._startPoint),h=r.getSize();Bt(this._box,r.min),this._box.style.width=h.x+"px",this._box.style.height=h.y+"px"},"_onMouseMove"),_finish:e(function(){this._moved&&(kt(this._box),Ot(this._container,"leaflet-crosshair")),Lo(),gs(),Lt(document,{contextmenu:gi,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},"_finish"),_onMouseUp:e(function(t){if(!(t.which!==1&&t.button!==1)&&(this._finish(),!!this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(i(this._resetState,this),0);var r=new Ct(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(r).fire("boxzoomend",{boxZoomBounds:r})}},"_onMouseUp"),_onKeyDown:e(function(t){t.keyCode===27&&(this._finish(),this._clearDeferredResetState(),this._resetState())},"_onKeyDown")});ct.addInitHook("addHandler","boxZoom",zh),ct.mergeOptions({doubleClickZoom:!0});var Ih=Ae.extend({addHooks:e(function(){this._map.on("dblclick",this._onDoubleClick,this)},"addHooks"),removeHooks:e(function(){this._map.off("dblclick",this._onDoubleClick,this)},"removeHooks"),_onDoubleClick:e(function(t){var r=this._map,h=r.getZoom(),c=r.options.zoomDelta,m=t.originalEvent.shiftKey?h-c:h+c;r.options.doubleClickZoom==="center"?r.setZoom(m):r.setZoomAround(t.containerPoint,m)},"_onDoubleClick")});ct.addInitHook("addHandler","doubleClickZoom",Ih),ct.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var Dh=Ae.extend({addHooks:e(function(){if(!this._draggable){var t=this._map;this._draggable=new oi(t._mapPane,t._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),t.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),t.on("zoomend",this._onZoomEnd,this),t.whenReady(this._onZoomEnd,this))}et(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},"addHooks"),removeHooks:e(function(){Ot(this._map._container,"leaflet-grab"),Ot(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},"removeHooks"),moved:e(function(){return this._draggable&&this._draggable._moved},"moved"),moving:e(function(){return this._draggable&&this._draggable._moving},"moving"),_onDragStart:e(function(){var t=this._map;if(t._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var r=_t(this._map.options.maxBounds);this._offsetLimit=At(this._map.latLngToContainerPoint(r.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(r.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;t.fire("movestart").fire("dragstart"),t.options.inertia&&(this._positions=[],this._times=[])},"_onDragStart"),_onDrag:e(function(t){if(this._map.options.inertia){var r=this._lastTime=+new Date,h=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(h),this._times.push(r),this._prunePositions(r)}this._map.fire("move",t).fire("drag",t)},"_onDrag"),_prunePositions:e(function(t){for(;this._positions.length>1&&t-this._times[0]>50;)this._positions.shift(),this._times.shift()},"_prunePositions"),_onZoomEnd:e(function(){var t=this._map.getSize().divideBy(2),r=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=r.subtract(t).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},"_onZoomEnd"),_viscousLimit:e(function(t,r){return t-(t-r)*this._viscosity},"_viscousLimit"),_onPreDragLimit:e(function(){if(!(!this._viscosity||!this._offsetLimit)){var t=this._draggable._newPos.subtract(this._draggable._startPos),r=this._offsetLimit;t.x<r.min.x&&(t.x=this._viscousLimit(t.x,r.min.x)),t.y<r.min.y&&(t.y=this._viscousLimit(t.y,r.min.y)),t.x>r.max.x&&(t.x=this._viscousLimit(t.x,r.max.x)),t.y>r.max.y&&(t.y=this._viscousLimit(t.y,r.max.y)),this._draggable._newPos=this._draggable._startPos.add(t)}},"_onPreDragLimit"),_onPreDragWrap:e(function(){var t=this._worldWidth,r=Math.round(t/2),h=this._initialWorldOffset,c=this._draggable._newPos.x,m=(c-r+h)%t+r-h,v=(c+r+h)%t-r-h,w=Math.abs(m+h)<Math.abs(v+h)?m:v;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=w},"_onPreDragWrap"),_onDragEnd:e(function(t){var r=this._map,h=r.options,c=!h.inertia||t.noInertia||this._times.length<2;if(r.fire("dragend",t),c)r.fire("moveend");else{this._prunePositions(+new Date);var m=this._lastPos.subtract(this._positions[0]),v=(this._lastTime-this._times[0])/1e3,w=h.easeLinearity,M=m.multiplyBy(w/v),S=M.distanceTo([0,0]),z=Math.min(h.inertiaMaxSpeed,S),F=M.multiplyBy(z/S),V=z/(h.inertiaDeceleration*w),rt=F.multiplyBy(-V/2).round();!rt.x&&!rt.y?r.fire("moveend"):(rt=r._limitOffset(rt,r.options.maxBounds),X(function(){r.panBy(rt,{duration:V,easeLinearity:w,noMoveStart:!0,animate:!0})}))}},"_onDragEnd")});ct.addInitHook("addHandler","dragging",Dh),ct.mergeOptions({keyboard:!0,keyboardPanDelta:80});var Ah=Ae.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:e(function(t){this._map=t,this._setPanDelta(t.options.keyboardPanDelta),this._setZoomDelta(t.options.zoomDelta)},"initialize"),addHooks:e(function(){var t=this._map._container;t.tabIndex<=0&&(t.tabIndex="0"),$(t,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},"addHooks"),removeHooks:e(function(){this._removeHooks(),Lt(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},"removeHooks"),_onMouseDown:e(function(){if(!this._focused){var t=document.body,r=document.documentElement,h=t.scrollTop||r.scrollTop,c=t.scrollLeft||r.scrollLeft;this._map._container.focus(),window.scrollTo(c,h)}},"_onMouseDown"),_onFocus:e(function(){this._focused=!0,this._map.fire("focus")},"_onFocus"),_onBlur:e(function(){this._focused=!1,this._map.fire("blur")},"_onBlur"),_setPanDelta:e(function(t){var r=this._panKeys={},h=this.keyCodes,c,m;for(c=0,m=h.left.length;c<m;c++)r[h.left[c]]=[-1*t,0];for(c=0,m=h.right.length;c<m;c++)r[h.right[c]]=[t,0];for(c=0,m=h.down.length;c<m;c++)r[h.down[c]]=[0,t];for(c=0,m=h.up.length;c<m;c++)r[h.up[c]]=[0,-1*t]},"_setPanDelta"),_setZoomDelta:e(function(t){var r=this._zoomKeys={},h=this.keyCodes,c,m;for(c=0,m=h.zoomIn.length;c<m;c++)r[h.zoomIn[c]]=t;for(c=0,m=h.zoomOut.length;c<m;c++)r[h.zoomOut[c]]=-t},"_setZoomDelta"),_addHooks:e(function(){$(document,"keydown",this._onKeyDown,this)},"_addHooks"),_removeHooks:e(function(){Lt(document,"keydown",this._onKeyDown,this)},"_removeHooks"),_onKeyDown:e(function(t){if(!(t.altKey||t.ctrlKey||t.metaKey)){var r=t.keyCode,h=this._map,c;if(r in this._panKeys){if(!h._panAnim||!h._panAnim._inProgress)if(c=this._panKeys[r],t.shiftKey&&(c=U(c).multiplyBy(3)),h.options.maxBounds&&(c=h._limitOffset(U(c),h.options.maxBounds)),h.options.worldCopyJump){var m=h.wrapLatLng(h.unproject(h.project(h.getCenter()).add(c)));h.panTo(m)}else h.panBy(c)}else if(r in this._zoomKeys)h.setZoom(h.getZoom()+(t.shiftKey?3:1)*this._zoomKeys[r]);else if(r===27&&h._popup&&h._popup.options.closeOnEscapeKey)h.closePopup();else return;gi(t)}},"_onKeyDown")});ct.addInitHook("addHandler","keyboard",Ah),ct.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var Bh=Ae.extend({addHooks:e(function(){$(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},"addHooks"),removeHooks:e(function(){Lt(this._map._container,"wheel",this._onWheelScroll,this)},"removeHooks"),_onWheelScroll:e(function(t){var r=sh(t),h=this._map.options.wheelDebounceTime;this._delta+=r,this._lastMousePos=this._map.mouseEventToContainerPoint(t),this._startTime||(this._startTime=+new Date);var c=Math.max(h-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(i(this._performZoom,this),c),gi(t)},"_onWheelScroll"),_performZoom:e(function(){var t=this._map,r=t.getZoom(),h=this._map.options.zoomSnap||0;t._stop();var c=this._delta/(this._map.options.wheelPxPerZoomLevel*4),m=4*Math.log(2/(1+Math.exp(-Math.abs(c))))/Math.LN2,v=h?Math.ceil(m/h)*h:m,w=t._limitZoom(r+(this._delta>0?v:-v))-r;this._delta=0,this._startTime=null,w&&(t.options.scrollWheelZoom==="center"?t.setZoom(r+w):t.setZoomAround(this._lastMousePos,r+w))},"_performZoom")});ct.addInitHook("addHandler","scrollWheelZoom",Bh);var Ip=600;ct.mergeOptions({tapHold:W.touchNative&&W.safari&&W.mobile,tapTolerance:15});var Rh=Ae.extend({addHooks:e(function(){$(this._map._container,"touchstart",this._onDown,this)},"addHooks"),removeHooks:e(function(){Lt(this._map._container,"touchstart",this._onDown,this)},"removeHooks"),_onDown:e(function(t){if(clearTimeout(this._holdTimeout),t.touches.length===1){var r=t.touches[0];this._startPos=this._newPos=new N(r.clientX,r.clientY),this._holdTimeout=setTimeout(i(function(){this._cancel(),this._isTapValid()&&($(document,"touchend",$t),$(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",r))},this),Ip),$(document,"touchend touchcancel contextmenu",this._cancel,this),$(document,"touchmove",this._onMove,this)}},"_onDown"),_cancelClickPrevent:e(function t(){Lt(document,"touchend",$t),Lt(document,"touchend touchcancel",t)},"cancelClickPrevent"),_cancel:e(function(){clearTimeout(this._holdTimeout),Lt(document,"touchend touchcancel contextmenu",this._cancel,this),Lt(document,"touchmove",this._onMove,this)},"_cancel"),_onMove:e(function(t){var r=t.touches[0];this._newPos=new N(r.clientX,r.clientY)},"_onMove"),_isTapValid:e(function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},"_isTapValid"),_simulateEvent:e(function(t,r){var h=new MouseEvent(t,{bubbles:!0,cancelable:!0,view:window,screenX:r.screenX,screenY:r.screenY,clientX:r.clientX,clientY:r.clientY});h._simulated=!0,r.target.dispatchEvent(h)},"_simulateEvent")});ct.addInitHook("addHandler","tapHold",Rh),ct.mergeOptions({touchZoom:W.touch,bounceAtZoomLimits:!0});var Nh=Ae.extend({addHooks:e(function(){et(this._map._container,"leaflet-touch-zoom"),$(this._map._container,"touchstart",this._onTouchStart,this)},"addHooks"),removeHooks:e(function(){Ot(this._map._container,"leaflet-touch-zoom"),Lt(this._map._container,"touchstart",this._onTouchStart,this)},"removeHooks"),_onTouchStart:e(function(t){var r=this._map;if(!(!t.touches||t.touches.length!==2||r._animatingZoom||this._zooming)){var h=r.mouseEventToContainerPoint(t.touches[0]),c=r.mouseEventToContainerPoint(t.touches[1]);this._centerPoint=r.getSize()._divideBy(2),this._startLatLng=r.containerPointToLatLng(this._centerPoint),r.options.touchZoom!=="center"&&(this._pinchStartLatLng=r.containerPointToLatLng(h.add(c)._divideBy(2))),this._startDist=h.distanceTo(c),this._startZoom=r.getZoom(),this._moved=!1,this._zooming=!0,r._stop(),$(document,"touchmove",this._onTouchMove,this),$(document,"touchend touchcancel",this._onTouchEnd,this),$t(t)}},"_onTouchStart"),_onTouchMove:e(function(t){if(!(!t.touches||t.touches.length!==2||!this._zooming)){var r=this._map,h=r.mouseEventToContainerPoint(t.touches[0]),c=r.mouseEventToContainerPoint(t.touches[1]),m=h.distanceTo(c)/this._startDist;if(this._zoom=r.getScaleZoom(m,this._startZoom),!r.options.bounceAtZoomLimits&&(this._zoom<r.getMinZoom()&&m<1||this._zoom>r.getMaxZoom()&&m>1)&&(this._zoom=r._limitZoom(this._zoom)),r.options.touchZoom==="center"){if(this._center=this._startLatLng,m===1)return}else{var v=h._add(c)._divideBy(2)._subtract(this._centerPoint);if(m===1&&v.x===0&&v.y===0)return;this._center=r.unproject(r.project(this._pinchStartLatLng,this._zoom).subtract(v),this._zoom)}this._moved||(r._moveStart(!0,!1),this._moved=!0),ot(this._animRequest);var w=i(r._move,r,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=X(w,this,!0),$t(t)}},"_onTouchMove"),_onTouchEnd:e(function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,ot(this._animRequest),Lt(document,"touchmove",this._onTouchMove,this),Lt(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))},"_onTouchEnd")});ct.addInitHook("addHandler","touchZoom",Nh),ct.BoxZoom=zh,ct.DoubleClickZoom=Ih,ct.Drag=Dh,ct.Keyboard=Ah,ct.ScrollWheelZoom=Bh,ct.TapHold=Rh,ct.TouchZoom=Nh,s.Bounds=at,s.Browser=W,s.CRS=Qt,s.Canvas=Eh,s.Circle=zs,s.CircleMarker=On,s.Class=xt,s.Control=ke,s.DivIcon=kh,s.DivOverlay=Be,s.DomEvent=Kc,s.DomUtil=Xc,s.Draggable=oi,s.Evented=I,s.FeatureGroup=Ge,s.GeoJSON=Ue,s.GridLayer=Eo,s.Handler=Ae,s.Icon=Zi,s.ImageOverlay=Bn,s.LatLng=nt,s.LatLngBounds=Ct,s.Layer=Me,s.LayerGroup=Ni,s.LineUtil=up,s.Map=ct,s.Marker=Tn,s.Mixin=np,s.Path=ni,s.Point=N,s.PolyUtil=rp,s.Polygon=Fi,s.Polyline=He,s.Popup=Rn,s.PosAnimation=ah,s.Projection=cp,s.Rectangle=Oh,s.Renderer=We,s.SVG=To,s.SVGOverlay=Ch,s.TileLayer=Hi,s.Tooltip=Nn,s.Transformation=ns,s.Util=K,s.VideoOverlay=wh,s.bind=i,s.bounds=At,s.canvas=Sh,s.circle=vp,s.circleMarker=yp,s.control=ko,s.divIcon=Ep,s.extend=l,s.featureGroup=mp,s.geoJSON=Lh,s.geoJson=Lp,s.gridLayer=Sp,s.icon=_p,s.imageOverlay=wp,s.latLng=it,s.latLngBounds=_t,s.layerGroup=fp,s.map=$c,s.marker=gp,s.point=U,s.polygon=xp,s.polyline=bp,s.popup=Mp,s.rectangle=zp,s.setOptions=y,s.stamp=u,s.svg=Th,s.svgOverlay=kp,s.tileLayer=Mh,s.tooltip=Pp,s.transformation=go,s.version=n,s.videoOverlay=Cp;var Dp=window.L;s.noConflict=function(){return window.L=Dp,this},window.L=s})});var hc=Hn((Ur,lc)=>{(function(s,n){typeof Ur=="object"&&typeof lc<"u"?n(Ur):typeof define=="function"&&define.amd?define(["exports"],n):(s=s||self,n((s.Leaflet=s.Leaflet||{},s.Leaflet.markercluster={})))})(Ur,function(s){"use strict";var n=L.MarkerClusterGroup=L.FeatureGroup.extend({options:{maxClusterRadius:80,iconCreateFunction:null,clusterPane:L.Marker.prototype.options.pane,spiderfyOnEveryZoom:!1,spiderfyOnMaxZoom:!0,showCoverageOnHover:!0,zoomToBoundsOnClick:!0,singleMarkerMode:!1,disableClusteringAtZoom:null,removeOutsideVisibleBounds:!0,animate:!0,animateAddingMarkers:!1,spiderfyShapePositions:null,spiderfyDistanceMultiplier:1,spiderLegPolylineOptions:{weight:1.5,color:"#222",opacity:.5},chunkedLoading:!1,chunkInterval:200,chunkDelay:50,chunkProgress:null,polygonOptions:{}},initialize:e(function(o){L.Util.setOptions(this,o),this.options.iconCreateFunction||(this.options.iconCreateFunction=this._defaultIconCreateFunction),this._featureGroup=L.featureGroup(),this._featureGroup.addEventParent(this),this._nonPointGroup=L.featureGroup(),this._nonPointGroup.addEventParent(this),this._inZoomAnimation=0,this._needsClustering=[],this._needsRemoving=[],this._currentShownBounds=null,this._queue=[],this._childMarkerEventHandlers={dragstart:this._childMarkerDragStart,move:this._childMarkerMoved,dragend:this._childMarkerDragEnd};var i=L.DomUtil.TRANSITION&&this.options.animate;L.extend(this,i?this._withAnimation:this._noAnimation),this._markerCluster=i?L.MarkerCluster:L.MarkerClusterNonAnimated},"initialize"),addLayer:e(function(o){if(o instanceof L.LayerGroup)return this.addLayers([o]);if(!o.getLatLng)return this._nonPointGroup.addLayer(o),this.fire("layeradd",{layer:o}),this;if(!this._map)return this._needsClustering.push(o),this.fire("layeradd",{layer:o}),this;if(this.hasLayer(o))return this;this._unspiderfy&&this._unspiderfy(),this._addLayer(o,this._maxZoom),this.fire("layeradd",{layer:o}),this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons();var i=o,a=this._zoom;if(o.__parent)for(;i.__parent._zoom>=a;)i=i.__parent;return this._currentShownBounds.contains(i.getLatLng())&&(this.options.animateAddingMarkers?this._animationAddLayer(o,i):this._animationAddLayerNonAnimated(o,i)),this},"addLayer"),removeLayer:e(function(o){return o instanceof L.LayerGroup?this.removeLayers([o]):o.getLatLng?this._map?o.__parent?(this._unspiderfy&&(this._unspiderfy(),this._unspiderfyLayer(o)),this._removeLayer(o,!0),this.fire("layerremove",{layer:o}),this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),o.off(this._childMarkerEventHandlers,this),this._featureGroup.hasLayer(o)&&(this._featureGroup.removeLayer(o),o.clusterShow&&o.clusterShow()),this):this:(!this._arraySplice(this._needsClustering,o)&&this.hasLayer(o)&&this._needsRemoving.push({layer:o,latlng:o._latlng}),this.fire("layerremove",{layer:o}),this):(this._nonPointGroup.removeLayer(o),this.fire("layerremove",{layer:o}),this)},"removeLayer"),addLayers:e(function(o,i){if(!L.Util.isArray(o))return this.addLayer(o);var a=this._featureGroup,u=this._nonPointGroup,p=this.options.chunkedLoading,g=this.options.chunkInterval,d=this.options.chunkProgress,f=o.length,_=0,b=!0,y;if(this._map){var x=new Date().getTime(),k=L.bind(function(){var P=new Date().getTime();for(this._map&&this._unspiderfy&&this._unspiderfy();_<f;_++){if(p&&_%200===0){var T=new Date().getTime()-P;if(T>g)break}if(y=o[_],y instanceof L.LayerGroup){b&&(o=o.slice(),b=!1),this._extractNonGroupLayers(y,o),f=o.length;continue}if(!y.getLatLng){u.addLayer(y),i||this.fire("layeradd",{layer:y});continue}if(!this.hasLayer(y)&&(this._addLayer(y,this._maxZoom),i||this.fire("layeradd",{layer:y}),y.__parent&&y.__parent.getChildCount()===2)){var E=y.__parent.getAllChildMarkers(),O=E[0]===y?E[1]:E[0];a.removeLayer(O)}}d&&d(_,f,new Date().getTime()-x),_===f?(this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),this._topClusterLevel._recursivelyAddChildrenToMap(null,this._zoom,this._currentShownBounds)):setTimeout(k,this.options.chunkDelay)},this);k()}else for(var C=this._needsClustering;_<f;_++){if(y=o[_],y instanceof L.LayerGroup){b&&(o=o.slice(),b=!1),this._extractNonGroupLayers(y,o),f=o.length;continue}if(!y.getLatLng){u.addLayer(y);continue}this.hasLayer(y)||C.push(y)}return this},"addLayers"),removeLayers:e(function(o){var i,a,u=o.length,p=this._featureGroup,g=this._nonPointGroup,d=!0;if(!this._map){for(i=0;i<u;i++){if(a=o[i],a instanceof L.LayerGroup){d&&(o=o.slice(),d=!1),this._extractNonGroupLayers(a,o),u=o.length;continue}this._arraySplice(this._needsClustering,a),g.removeLayer(a),this.hasLayer(a)&&this._needsRemoving.push({layer:a,latlng:a._latlng}),this.fire("layerremove",{layer:a})}return this}if(this._unspiderfy){this._unspiderfy();var f=o.slice(),_=u;for(i=0;i<_;i++){if(a=f[i],a instanceof L.LayerGroup){this._extractNonGroupLayers(a,f),_=f.length;continue}this._unspiderfyLayer(a)}}for(i=0;i<u;i++){if(a=o[i],a instanceof L.LayerGroup){d&&(o=o.slice(),d=!1),this._extractNonGroupLayers(a,o),u=o.length;continue}if(!a.__parent){g.removeLayer(a),this.fire("layerremove",{layer:a});continue}this._removeLayer(a,!0,!0),this.fire("layerremove",{layer:a}),p.hasLayer(a)&&(p.removeLayer(a),a.clusterShow&&a.clusterShow())}return this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),this._topClusterLevel._recursivelyAddChildrenToMap(null,this._zoom,this._currentShownBounds),this},"removeLayers"),clearLayers:e(function(){return this._map||(this._needsClustering=[],this._needsRemoving=[],delete this._gridClusters,delete this._gridUnclustered),this._noanimationUnspiderfy&&this._noanimationUnspiderfy(),this._featureGroup.clearLayers(),this._nonPointGroup.clearLayers(),this.eachLayer(function(o){o.off(this._childMarkerEventHandlers,this),delete o.__parent},this),this._map&&this._generateInitialClusters(),this},"clearLayers"),getBounds:e(function(){var o=new L.LatLngBounds;this._topClusterLevel&&o.extend(this._topClusterLevel._bounds);for(var i=this._needsClustering.length-1;i>=0;i--)o.extend(this._needsClustering[i].getLatLng());return o.extend(this._nonPointGroup.getBounds()),o},"getBounds"),eachLayer:e(function(o,i){var a=this._needsClustering.slice(),u=this._needsRemoving,p,g,d;for(this._topClusterLevel&&this._topClusterLevel.getAllChildMarkers(a),g=a.length-1;g>=0;g--){for(p=!0,d=u.length-1;d>=0;d--)if(u[d].layer===a[g]){p=!1;break}p&&o.call(i,a[g])}this._nonPointGroup.eachLayer(o,i)},"eachLayer"),getLayers:e(function(){var o=[];return this.eachLayer(function(i){o.push(i)}),o},"getLayers"),getLayer:e(function(o){var i=null;return o=parseInt(o,10),this.eachLayer(function(a){L.stamp(a)===o&&(i=a)}),i},"getLayer"),hasLayer:e(function(o){if(!o)return!1;var i,a=this._needsClustering;for(i=a.length-1;i>=0;i--)if(a[i]===o)return!0;for(a=this._needsRemoving,i=a.length-1;i>=0;i--)if(a[i].layer===o)return!1;return!!(o.__parent&&o.__parent._group===this)||this._nonPointGroup.hasLayer(o)},"hasLayer"),zoomToShowLayer:e(function(o,i){var a=this._map;typeof i!="function"&&(i=e(function(){},"callback"));var u=e(function(){(a.hasLayer(o)||a.hasLayer(o.__parent))&&!this._inZoomAnimation&&(this._map.off("moveend",u,this),this.off("animationend",u,this),a.hasLayer(o)?i():o.__parent._icon&&(this.once("spiderfied",i,this),o.__parent.spiderfy()))},"showMarker");o._icon&&this._map.getBounds().contains(o.getLatLng())?i():o.__parent._zoom<Math.round(this._map._zoom)?(this._map.on("moveend",u,this),this._map.panTo(o.getLatLng())):(this._map.on("moveend",u,this),this.on("animationend",u,this),o.__parent.zoomToBounds())},"zoomToShowLayer"),onAdd:e(function(o){this._map=o;var i,a,u;if(!isFinite(this._map.getMaxZoom()))throw"Map has no maxZoom specified";for(this._featureGroup.addTo(o),this._nonPointGroup.addTo(o),this._gridClusters||this._generateInitialClusters(),this._maxLat=o.options.crs.projection.MAX_LATITUDE,i=0,a=this._needsRemoving.length;i<a;i++)u=this._needsRemoving[i],u.newlatlng=u.layer._latlng,u.layer._latlng=u.latlng;for(i=0,a=this._needsRemoving.length;i<a;i++)u=this._needsRemoving[i],this._removeLayer(u.layer,!0),u.layer._latlng=u.newlatlng;this._needsRemoving=[],this._zoom=Math.round(this._map._zoom),this._currentShownBounds=this._getExpandedVisibleBounds(),this._map.on("zoomend",this._zoomEnd,this),this._map.on("moveend",this._moveEnd,this),this._spiderfierOnAdd&&this._spiderfierOnAdd(),this._bindEvents(),a=this._needsClustering,this._needsClustering=[],this.addLayers(a,!0)},"onAdd"),onRemove:e(function(o){o.off("zoomend",this._zoomEnd,this),o.off("moveend",this._moveEnd,this),this._unbindEvents(),this._map._mapPane.className=this._map._mapPane.className.replace(" leaflet-cluster-anim",""),this._spiderfierOnRemove&&this._spiderfierOnRemove(),delete this._maxLat,this._hideCoverage(),this._featureGroup.remove(),this._nonPointGroup.remove(),this._featureGroup.clearLayers(),this._map=null},"onRemove"),getVisibleParent:e(function(o){for(var i=o;i&&!i._icon;)i=i.__parent;return i||null},"getVisibleParent"),_arraySplice:e(function(o,i){for(var a=o.length-1;a>=0;a--)if(o[a]===i)return o.splice(a,1),!0},"_arraySplice"),_removeFromGridUnclustered:e(function(o,i){for(var a=this._map,u=this._gridUnclustered,p=Math.floor(this._map.getMinZoom());i>=p&&u[i].removeObject(o,a.project(o.getLatLng(),i));i--);},"_removeFromGridUnclustered"),_childMarkerDragStart:e(function(o){o.target.__dragStart=o.target._latlng},"_childMarkerDragStart"),_childMarkerMoved:e(function(o){if(!this._ignoreMove&&!o.target.__dragStart){var i=o.target._popup&&o.target._popup.isOpen();this._moveChild(o.target,o.oldLatLng,o.latlng),i&&o.target.openPopup()}},"_childMarkerMoved"),_moveChild:e(function(o,i,a){o._latlng=i,this.removeLayer(o),o._latlng=a,this.addLayer(o)},"_moveChild"),_childMarkerDragEnd:e(function(o){var i=o.target.__dragStart;delete o.target.__dragStart,i&&this._moveChild(o.target,i,o.target._latlng)},"_childMarkerDragEnd"),_removeLayer:e(function(o,i,a){var u=this._gridClusters,p=this._gridUnclustered,g=this._featureGroup,d=this._map,f=Math.floor(this._map.getMinZoom());i&&this._removeFromGridUnclustered(o,this._maxZoom);var _=o.__parent,b=_._markers,y;for(this._arraySplice(b,o);_&&(_._childCount--,_._boundsNeedUpdate=!0,!(_._zoom<f));)i&&_._childCount<=1?(y=_._markers[0]===o?_._markers[1]:_._markers[0],u[_._zoom].removeObject(_,d.project(_._cLatLng,_._zoom)),p[_._zoom].addObject(y,d.project(y.getLatLng(),_._zoom)),this._arraySplice(_.__parent._childClusters,_),_.__parent._markers.push(y),y.__parent=_.__parent,_._icon&&(g.removeLayer(_),a||g.addLayer(y))):_._iconNeedsUpdate=!0,_=_.__parent;delete o.__parent},"_removeLayer"),_isOrIsParent:e(function(o,i){for(;i;){if(o===i)return!0;i=i.parentNode}return!1},"_isOrIsParent"),fire:e(function(o,i,a){if(i&&i.layer instanceof L.MarkerCluster){if(i.originalEvent&&this._isOrIsParent(i.layer._icon,i.originalEvent.relatedTarget))return;o="cluster"+o}L.FeatureGroup.prototype.fire.call(this,o,i,a)},"fire"),listens:e(function(o,i){return L.FeatureGroup.prototype.listens.call(this,o,i)||L.FeatureGroup.prototype.listens.call(this,"cluster"+o,i)},"listens"),_defaultIconCreateFunction:e(function(o){var i=o.getChildCount(),a=" marker-cluster-";return i<10?a+="small":i<100?a+="medium":a+="large",new L.DivIcon({html:"<div><span>"+i+"</span></div>",className:"marker-cluster"+a,iconSize:new L.Point(40,40)})},"_defaultIconCreateFunction"),_bindEvents:e(function(){var o=this._map,i=this.options.spiderfyOnMaxZoom,a=this.options.showCoverageOnHover,u=this.options.zoomToBoundsOnClick,p=this.options.spiderfyOnEveryZoom;(i||u||p)&&this.on("clusterclick clusterkeypress",this._zoomOrSpiderfy,this),a&&(this.on("clustermouseover",this._showCoverage,this),this.on("clustermouseout",this._hideCoverage,this),o.on("zoomend",this._hideCoverage,this))},"_bindEvents"),_zoomOrSpiderfy:e(function(o){var i=o.layer,a=i;if(!(o.type==="clusterkeypress"&&o.originalEvent&&o.originalEvent.keyCode!==13)){for(;a._childClusters.length===1;)a=a._childClusters[0];a._zoom===this._maxZoom&&a._childCount===i._childCount&&this.options.spiderfyOnMaxZoom?i.spiderfy():this.options.zoomToBoundsOnClick&&i.zoomToBounds(),this.options.spiderfyOnEveryZoom&&i.spiderfy(),o.originalEvent&&o.originalEvent.keyCode===13&&this._map._container.focus()}},"_zoomOrSpiderfy"),_showCoverage:e(function(o){var i=this._map;this._inZoomAnimation||(this._shownPolygon&&i.removeLayer(this._shownPolygon),o.layer.getChildCount()>2&&o.layer!==this._spiderfied&&(this._shownPolygon=new L.Polygon(o.layer.getConvexHull(),this.options.polygonOptions),i.addLayer(this._shownPolygon)))},"_showCoverage"),_hideCoverage:e(function(){this._shownPolygon&&(this._map.removeLayer(this._shownPolygon),this._shownPolygon=null)},"_hideCoverage"),_unbindEvents:e(function(){var o=this.options.spiderfyOnMaxZoom,i=this.options.showCoverageOnHover,a=this.options.zoomToBoundsOnClick,u=this.options.spiderfyOnEveryZoom,p=this._map;(o||a||u)&&this.off("clusterclick clusterkeypress",this._zoomOrSpiderfy,this),i&&(this.off("clustermouseover",this._showCoverage,this),this.off("clustermouseout",this._hideCoverage,this),p.off("zoomend",this._hideCoverage,this))},"_unbindEvents"),_zoomEnd:e(function(){this._map&&(this._mergeSplitClusters(),this._zoom=Math.round(this._map._zoom),this._currentShownBounds=this._getExpandedVisibleBounds())},"_zoomEnd"),_moveEnd:e(function(){if(!this._inZoomAnimation){var o=this._getExpandedVisibleBounds();this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),this._zoom,o),this._topClusterLevel._recursivelyAddChildrenToMap(null,Math.round(this._map._zoom),o),this._currentShownBounds=o}},"_moveEnd"),_generateInitialClusters:e(function(){var o=Math.ceil(this._map.getMaxZoom()),i=Math.floor(this._map.getMinZoom()),a=this.options.maxClusterRadius,u=a;typeof a!="function"&&(u=e(function(){return a},"radiusFn")),this.options.disableClusteringAtZoom!==null&&(o=this.options.disableClusteringAtZoom-1),this._maxZoom=o,this._gridClusters={},this._gridUnclustered={};for(var p=o;p>=i;p--)this._gridClusters[p]=new L.DistanceGrid(u(p)),this._gridUnclustered[p]=new L.DistanceGrid(u(p));this._topClusterLevel=new this._markerCluster(this,i-1)},"_generateInitialClusters"),_addLayer:e(function(o,i){var a=this._gridClusters,u=this._gridUnclustered,p=Math.floor(this._map.getMinZoom()),g,d;for(this.options.singleMarkerMode&&this._overrideMarkerIcon(o),o.on(this._childMarkerEventHandlers,this);i>=p;i--){g=this._map.project(o.getLatLng(),i);var f=a[i].getNearObject(g);if(f){f._addChild(o),o.__parent=f;return}if(f=u[i].getNearObject(g),f){var _=f.__parent;_&&this._removeLayer(f,!1);var b=new this._markerCluster(this,i,f,o);a[i].addObject(b,this._map.project(b._cLatLng,i)),f.__parent=b,o.__parent=b;var y=b;for(d=i-1;d>_._zoom;d--)y=new this._markerCluster(this,d,y),a[d].addObject(y,this._map.project(f.getLatLng(),d));_._addChild(y),this._removeFromGridUnclustered(f,i);return}u[i].addObject(o,g)}this._topClusterLevel._addChild(o),o.__parent=this._topClusterLevel},"_addLayer"),_refreshClustersIcons:e(function(){this._featureGroup.eachLayer(function(o){o instanceof L.MarkerCluster&&o._iconNeedsUpdate&&o._updateIcon()})},"_refreshClustersIcons"),_enqueue:e(function(o){this._queue.push(o),this._queueTimeout||(this._queueTimeout=setTimeout(L.bind(this._processQueue,this),300))},"_enqueue"),_processQueue:e(function(){for(var o=0;o<this._queue.length;o++)this._queue[o].call(this);this._queue.length=0,clearTimeout(this._queueTimeout),this._queueTimeout=null},"_processQueue"),_mergeSplitClusters:e(function(){var o=Math.round(this._map._zoom);this._processQueue(),this._zoom<o&&this._currentShownBounds.intersects(this._getExpandedVisibleBounds())?(this._animationStart(),this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),this._zoom,this._getExpandedVisibleBounds()),this._animationZoomIn(this._zoom,o)):this._zoom>o?(this._animationStart(),this._animationZoomOut(this._zoom,o)):this._moveEnd()},"_mergeSplitClusters"),_getExpandedVisibleBounds:e(function(){if(this.options.removeOutsideVisibleBounds){if(L.Browser.mobile)return this._checkBoundsMaxLat(this._map.getBounds())}else return this._mapBoundsInfinite;return this._checkBoundsMaxLat(this._map.getBounds().pad(1))},"_getExpandedVisibleBounds"),_checkBoundsMaxLat:e(function(o){var i=this._maxLat;return i!==void 0&&(o.getNorth()>=i&&(o._northEast.lat=1/0),o.getSouth()<=-i&&(o._southWest.lat=-1/0)),o},"_checkBoundsMaxLat"),_animationAddLayerNonAnimated:e(function(o,i){if(i===o)this._featureGroup.addLayer(o);else if(i._childCount===2){i._addToMap();var a=i.getAllChildMarkers();this._featureGroup.removeLayer(a[0]),this._featureGroup.removeLayer(a[1])}else i._updateIcon()},"_animationAddLayerNonAnimated"),_extractNonGroupLayers:e(function(o,i){var a=o.getLayers(),u=0,p;for(i=i||[];u<a.length;u++){if(p=a[u],p instanceof L.LayerGroup){this._extractNonGroupLayers(p,i);continue}i.push(p)}return i},"_extractNonGroupLayers"),_overrideMarkerIcon:e(function(o){var i=o.options.icon=this.options.iconCreateFunction({getChildCount:e(function(){return 1},"getChildCount"),getAllChildMarkers:e(function(){return[o]},"getAllChildMarkers")});return i},"_overrideMarkerIcon")});L.MarkerClusterGroup.include({_mapBoundsInfinite:new L.LatLngBounds(new L.LatLng(-1/0,-1/0),new L.LatLng(1/0,1/0))}),L.MarkerClusterGroup.include({_noAnimation:{_animationStart:e(function(){},"_animationStart"),_animationZoomIn:e(function(o,i){this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),o),this._topClusterLevel._recursivelyAddChildrenToMap(null,i,this._getExpandedVisibleBounds()),this.fire("animationend")},"_animationZoomIn"),_animationZoomOut:e(function(o,i){this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),o),this._topClusterLevel._recursivelyAddChildrenToMap(null,i,this._getExpandedVisibleBounds()),this.fire("animationend")},"_animationZoomOut"),_animationAddLayer:e(function(o,i){this._animationAddLayerNonAnimated(o,i)},"_animationAddLayer")},_withAnimation:{_animationStart:e(function(){this._map._mapPane.className+=" leaflet-cluster-anim",this._inZoomAnimation++},"_animationStart"),_animationZoomIn:e(function(o,i){var a=this._getExpandedVisibleBounds(),u=this._featureGroup,p=Math.floor(this._map.getMinZoom()),g;this._ignoreMove=!0,this._topClusterLevel._recursively(a,o,p,function(d){var f=d._latlng,_=d._markers,b;for(a.contains(f)||(f=null),d._isSingleParent()&&o+1===i?(u.removeLayer(d),d._recursivelyAddChildrenToMap(null,i,a)):(d.clusterHide(),d._recursivelyAddChildrenToMap(f,i,a)),g=_.length-1;g>=0;g--)b=_[g],a.contains(b._latlng)||u.removeLayer(b)}),this._forceLayout(),this._topClusterLevel._recursivelyBecomeVisible(a,i),u.eachLayer(function(d){!(d instanceof L.MarkerCluster)&&d._icon&&d.clusterShow()}),this._topClusterLevel._recursively(a,o,i,function(d){d._recursivelyRestoreChildPositions(i)}),this._ignoreMove=!1,this._enqueue(function(){this._topClusterLevel._recursively(a,o,p,function(d){u.removeLayer(d),d.clusterShow()}),this._animationEnd()})},"_animationZoomIn"),_animationZoomOut:e(function(o,i){this._animationZoomOutSingle(this._topClusterLevel,o-1,i),this._topClusterLevel._recursivelyAddChildrenToMap(null,i,this._getExpandedVisibleBounds()),this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),o,this._getExpandedVisibleBounds())},"_animationZoomOut"),_animationAddLayer:e(function(o,i){var a=this,u=this._featureGroup;u.addLayer(o),i!==o&&(i._childCount>2?(i._updateIcon(),this._forceLayout(),this._animationStart(),o._setPos(this._map.latLngToLayerPoint(i.getLatLng())),o.clusterHide(),this._enqueue(function(){u.removeLayer(o),o.clusterShow(),a._animationEnd()})):(this._forceLayout(),a._animationStart(),a._animationZoomOutSingle(i,this._map.getMaxZoom(),this._zoom)))},"_animationAddLayer")},_animationZoomOutSingle:e(function(o,i,a){var u=this._getExpandedVisibleBounds(),p=Math.floor(this._map.getMinZoom());o._recursivelyAnimateChildrenInAndAddSelfToMap(u,p,i+1,a);var g=this;this._forceLayout(),o._recursivelyBecomeVisible(u,a),this._enqueue(function(){if(o._childCount===1){var d=o._markers[0];this._ignoreMove=!0,d.setLatLng(d.getLatLng()),this._ignoreMove=!1,d.clusterShow&&d.clusterShow()}else o._recursively(u,a,p,function(f){f._recursivelyRemoveChildrenFromMap(u,p,i+1)});g._animationEnd()})},"_animationZoomOutSingle"),_animationEnd:e(function(){this._map&&(this._map._mapPane.className=this._map._mapPane.className.replace(" leaflet-cluster-anim","")),this._inZoomAnimation--,this.fire("animationend")},"_animationEnd"),_forceLayout:e(function(){L.Util.falseFn(document.body.offsetWidth)},"_forceLayout")}),L.markerClusterGroup=function(o){return new L.MarkerClusterGroup(o)};var l=L.MarkerCluster=L.Marker.extend({options:L.Icon.prototype.options,initialize:e(function(o,i,a,u){L.Marker.prototype.initialize.call(this,a?a._cLatLng||a.getLatLng():new L.LatLng(0,0),{icon:this,pane:o.options.clusterPane}),this._group=o,this._zoom=i,this._markers=[],this._childClusters=[],this._childCount=0,this._iconNeedsUpdate=!0,this._boundsNeedUpdate=!0,this._bounds=new L.LatLngBounds,a&&this._addChild(a),u&&this._addChild(u)},"initialize"),getAllChildMarkers:e(function(o,i){o=o||[];for(var a=this._childClusters.length-1;a>=0;a--)this._childClusters[a].getAllChildMarkers(o,i);for(var u=this._markers.length-1;u>=0;u--)i&&this._markers[u].__dragStart||o.push(this._markers[u]);return o},"getAllChildMarkers"),getChildCount:e(function(){return this._childCount},"getChildCount"),zoomToBounds:e(function(o){for(var i=this._childClusters.slice(),a=this._group._map,u=a.getBoundsZoom(this._bounds),p=this._zoom+1,g=a.getZoom(),d;i.length>0&&u>p;){p++;var f=[];for(d=0;d<i.length;d++)f=f.concat(i[d]._childClusters);i=f}u>p?this._group._map.setView(this._latlng,p):u<=g?this._group._map.setView(this._latlng,g+1):this._group._map.fitBounds(this._bounds,o)},"zoomToBounds"),getBounds:e(function(){var o=new L.LatLngBounds;return o.extend(this._bounds),o},"getBounds"),_updateIcon:e(function(){this._iconNeedsUpdate=!0,this._icon&&this.setIcon(this)},"_updateIcon"),createIcon:e(function(){return this._iconNeedsUpdate&&(this._iconObj=this._group.options.iconCreateFunction(this),this._iconNeedsUpdate=!1),this._iconObj.createIcon()},"createIcon"),createShadow:e(function(){return this._iconObj.createShadow()},"createShadow"),_addChild:e(function(o,i){this._iconNeedsUpdate=!0,this._boundsNeedUpdate=!0,this._setClusterCenter(o),o instanceof L.MarkerCluster?(i||(this._childClusters.push(o),o.__parent=this),this._childCount+=o._childCount):(i||this._markers.push(o),this._childCount++),this.__parent&&this.__parent._addChild(o,!0)},"_addChild"),_setClusterCenter:e(function(o){this._cLatLng||(this._cLatLng=o._cLatLng||o._latlng)},"_setClusterCenter"),_resetBounds:e(function(){var o=this._bounds;o._southWest&&(o._southWest.lat=1/0,o._southWest.lng=1/0),o._northEast&&(o._northEast.lat=-1/0,o._northEast.lng=-1/0)},"_resetBounds"),_recalculateBounds:e(function(){var o=this._markers,i=this._childClusters,a=0,u=0,p=this._childCount,g,d,f,_;if(p!==0){for(this._resetBounds(),g=0;g<o.length;g++)f=o[g]._latlng,this._bounds.extend(f),a+=f.lat,u+=f.lng;for(g=0;g<i.length;g++)d=i[g],d._boundsNeedUpdate&&d._recalculateBounds(),this._bounds.extend(d._bounds),f=d._wLatLng,_=d._childCount,a+=f.lat*_,u+=f.lng*_;this._latlng=this._wLatLng=new L.LatLng(a/p,u/p),this._boundsNeedUpdate=!1}},"_recalculateBounds"),_addToMap:e(function(o){o&&(this._backupLatlng=this._latlng,this.setLatLng(o)),this._group._featureGroup.addLayer(this)},"_addToMap"),_recursivelyAnimateChildrenIn:e(function(o,i,a){this._recursively(o,this._group._map.getMinZoom(),a-1,function(u){var p=u._markers,g,d;for(g=p.length-1;g>=0;g--)d=p[g],d._icon&&(d._setPos(i),d.clusterHide())},function(u){var p=u._childClusters,g,d;for(g=p.length-1;g>=0;g--)d=p[g],d._icon&&(d._setPos(i),d.clusterHide())})},"_recursivelyAnimateChildrenIn"),_recursivelyAnimateChildrenInAndAddSelfToMap:e(function(o,i,a,u){this._recursively(o,u,i,function(p){p._recursivelyAnimateChildrenIn(o,p._group._map.latLngToLayerPoint(p.getLatLng()).round(),a),p._isSingleParent()&&a-1===u?(p.clusterShow(),p._recursivelyRemoveChildrenFromMap(o,i,a)):p.clusterHide(),p._addToMap()})},"_recursivelyAnimateChildrenInAndAddSelfToMap"),_recursivelyBecomeVisible:e(function(o,i){this._recursively(o,this._group._map.getMinZoom(),i,null,function(a){a.clusterShow()})},"_recursivelyBecomeVisible"),_recursivelyAddChildrenToMap:e(function(o,i,a){this._recursively(a,this._group._map.getMinZoom()-1,i,function(u){if(i!==u._zoom)for(var p=u._markers.length-1;p>=0;p--){var g=u._markers[p];a.contains(g._latlng)&&(o&&(g._backupLatlng=g.getLatLng(),g.setLatLng(o),g.clusterHide&&g.clusterHide()),u._group._featureGroup.addLayer(g))}},function(u){u._addToMap(o)})},"_recursivelyAddChildrenToMap"),_recursivelyRestoreChildPositions:e(function(o){for(var i=this._markers.length-1;i>=0;i--){var a=this._markers[i];a._backupLatlng&&(a.setLatLng(a._backupLatlng),delete a._backupLatlng)}if(o-1===this._zoom)for(var u=this._childClusters.length-1;u>=0;u--)this._childClusters[u]._restorePosition();else for(var p=this._childClusters.length-1;p>=0;p--)this._childClusters[p]._recursivelyRestoreChildPositions(o)},"_recursivelyRestoreChildPositions"),_restorePosition:e(function(){this._backupLatlng&&(this.setLatLng(this._backupLatlng),delete this._backupLatlng)},"_restorePosition"),_recursivelyRemoveChildrenFromMap:e(function(o,i,a,u){var p,g;this._recursively(o,i-1,a-1,function(d){for(g=d._markers.length-1;g>=0;g--)p=d._markers[g],(!u||!u.contains(p._latlng))&&(d._group._featureGroup.removeLayer(p),p.clusterShow&&p.clusterShow())},function(d){for(g=d._childClusters.length-1;g>=0;g--)p=d._childClusters[g],(!u||!u.contains(p._latlng))&&(d._group._featureGroup.removeLayer(p),p.clusterShow&&p.clusterShow())})},"_recursivelyRemoveChildrenFromMap"),_recursively:e(function(o,i,a,u,p){var g=this._childClusters,d=this._zoom,f,_;if(i<=d&&(u&&u(this),p&&d===a&&p(this)),d<i||d<a)for(f=g.length-1;f>=0;f--)_=g[f],_._boundsNeedUpdate&&_._recalculateBounds(),o.intersects(_._bounds)&&_._recursively(o,i,a,u,p)},"_recursively"),_isSingleParent:e(function(){return this._childClusters.length>0&&this._childClusters[0]._childCount===this._childCount},"_isSingleParent")});L.Marker.include({clusterHide:e(function(){var o=this.options.opacity;return this.setOpacity(0),this.options.opacity=o,this},"clusterHide"),clusterShow:e(function(){return this.setOpacity(this.options.opacity)},"clusterShow")}),L.DistanceGrid=function(o){this._cellSize=o,this._sqCellSize=o*o,this._grid={},this._objectPoint={}},L.DistanceGrid.prototype={addObject:e(function(o,i){var a=this._getCoord(i.x),u=this._getCoord(i.y),p=this._grid,g=p[u]=p[u]||{},d=g[a]=g[a]||[],f=L.Util.stamp(o);this._objectPoint[f]=i,d.push(o)},"addObject"),updateObject:e(function(o,i){this.removeObject(o),this.addObject(o,i)},"updateObject"),removeObject:e(function(o,i){var a=this._getCoord(i.x),u=this._getCoord(i.y),p=this._grid,g=p[u]=p[u]||{},d=g[a]=g[a]||[],f,_;for(delete this._objectPoint[L.Util.stamp(o)],f=0,_=d.length;f<_;f++)if(d[f]===o)return d.splice(f,1),_===1&&delete g[a],!0},"removeObject"),eachObject:e(function(o,i){var a,u,p,g,d,f,_,b=this._grid;for(a in b){d=b[a];for(u in d)for(f=d[u],p=0,g=f.length;p<g;p++)_=o.call(i,f[p]),_&&(p--,g--)}},"eachObject"),getNearObject:e(function(o){var i=this._getCoord(o.x),a=this._getCoord(o.y),u,p,g,d,f,_,b,y,x=this._objectPoint,k=this._sqCellSize,C=null;for(u=a-1;u<=a+1;u++)if(d=this._grid[u],d){for(p=i-1;p<=i+1;p++)if(f=d[p],f)for(g=0,_=f.length;g<_;g++)b=f[g],y=this._sqDist(x[L.Util.stamp(b)],o),(y<k||y<=k&&C===null)&&(k=y,C=b)}return C},"getNearObject"),_getCoord:e(function(o){var i=Math.floor(o/this._cellSize);return isFinite(i)?i:o},"_getCoord"),_sqDist:e(function(o,i){var a=i.x-o.x,u=i.y-o.y;return a*a+u*u},"_sqDist")},function(){L.QuickHull={getDistant:e(function(o,i){var a=i[1].lat-i[0].lat,u=i[0].lng-i[1].lng;return u*(o.lat-i[0].lat)+a*(o.lng-i[0].lng)},"getDistant"),findMostDistantPointFromBaseLine:e(function(o,i){var a=0,u=null,p=[],g,d,f;for(g=i.length-1;g>=0;g--){if(d=i[g],f=this.getDistant(d,o),f>0)p.push(d);else continue;f>a&&(a=f,u=d)}return{maxPoint:u,newPoints:p}},"findMostDistantPointFromBaseLine"),buildConvexHull:e(function(o,i){var a=[],u=this.findMostDistantPointFromBaseLine(o,i);return u.maxPoint?(a=a.concat(this.buildConvexHull([o[0],u.maxPoint],u.newPoints)),a=a.concat(this.buildConvexHull([u.maxPoint,o[1]],u.newPoints)),a):[o[0]]},"buildConvexHull"),getConvexHull:e(function(o){var i=!1,a=!1,u=!1,p=!1,g=null,d=null,f=null,_=null,b=null,y=null,x;for(x=o.length-1;x>=0;x--){var k=o[x];(i===!1||k.lat>i)&&(g=k,i=k.lat),(a===!1||k.lat<a)&&(d=k,a=k.lat),(u===!1||k.lng>u)&&(f=k,u=k.lng),(p===!1||k.lng<p)&&(_=k,p=k.lng)}a!==i?(y=d,b=g):(y=_,b=f);var C=[].concat(this.buildConvexHull([y,b],o),this.buildConvexHull([b,y],o));return C},"getConvexHull")}}(),L.MarkerCluster.include({getConvexHull:e(function(){var o=this.getAllChildMarkers(),i=[],a,u;for(u=o.length-1;u>=0;u--)a=o[u].getLatLng(),i.push(a);return L.QuickHull.getConvexHull(i)},"getConvexHull")}),L.MarkerCluster.include({_2PI:Math.PI*2,_circleFootSeparation:25,_circleStartAngle:0,_spiralFootSeparation:28,_spiralLengthStart:11,_spiralLengthFactor:5,_circleSpiralSwitchover:9,spiderfy:e(function(){if(!(this._group._spiderfied===this||this._group._inZoomAnimation)){var o=this.getAllChildMarkers(null,!0),i=this._group,a=i._map,u=a.latLngToLayerPoint(this._latlng),p;this._group._unspiderfy(),this._group._spiderfied=this,this._group.options.spiderfyShapePositions?p=this._group.options.spiderfyShapePositions(o.length,u):o.length>=this._circleSpiralSwitchover?p=this._generatePointsSpiral(o.length,u):(u.y+=10,p=this._generatePointsCircle(o.length,u)),this._animationSpiderfy(o,p)}},"spiderfy"),unspiderfy:e(function(o){this._group._inZoomAnimation||(this._animationUnspiderfy(o),this._group._spiderfied=null)},"unspiderfy"),_generatePointsCircle:e(function(o,i){var a=this._group.options.spiderfyDistanceMultiplier*this._circleFootSeparation*(2+o),u=a/this._2PI,p=this._2PI/o,g=[],d,f;for(u=Math.max(u,35),g.length=o,d=0;d<o;d++)f=this._circleStartAngle+d*p,g[d]=new L.Point(i.x+u*Math.cos(f),i.y+u*Math.sin(f))._round();return g},"_generatePointsCircle"),_generatePointsSpiral:e(function(o,i){var a=this._group.options.spiderfyDistanceMultiplier,u=a*this._spiralLengthStart,p=a*this._spiralFootSeparation,g=a*this._spiralLengthFactor*this._2PI,d=0,f=[],_;for(f.length=o,_=o;_>=0;_--)_<o&&(f[_]=new L.Point(i.x+u*Math.cos(d),i.y+u*Math.sin(d))._round()),d+=p/u+_*5e-4,u+=g/d;return f},"_generatePointsSpiral"),_noanimationUnspiderfy:e(function(){var o=this._group,i=o._map,a=o._featureGroup,u=this.getAllChildMarkers(null,!0),p,g;for(o._ignoreMove=!0,this.setOpacity(1),g=u.length-1;g>=0;g--)p=u[g],a.removeLayer(p),p._preSpiderfyLatlng&&(p.setLatLng(p._preSpiderfyLatlng),delete p._preSpiderfyLatlng),p.setZIndexOffset&&p.setZIndexOffset(0),p._spiderLeg&&(i.removeLayer(p._spiderLeg),delete p._spiderLeg);o.fire("unspiderfied",{cluster:this,markers:u}),o._ignoreMove=!1,o._spiderfied=null},"_noanimationUnspiderfy")}),L.MarkerClusterNonAnimated=L.MarkerCluster.extend({_animationSpiderfy:e(function(o,i){var a=this._group,u=a._map,p=a._featureGroup,g=this._group.options.spiderLegPolylineOptions,d,f,_,b;for(a._ignoreMove=!0,d=0;d<o.length;d++)b=u.layerPointToLatLng(i[d]),f=o[d],_=new L.Polyline([this._latlng,b],g),u.addLayer(_),f._spiderLeg=_,f._preSpiderfyLatlng=f._latlng,f.setLatLng(b),f.setZIndexOffset&&f.setZIndexOffset(1e6),p.addLayer(f);this.setOpacity(.3),a._ignoreMove=!1,a.fire("spiderfied",{cluster:this,markers:o})},"_animationSpiderfy"),_animationUnspiderfy:e(function(){this._noanimationUnspiderfy()},"_animationUnspiderfy")}),L.MarkerCluster.include({_animationSpiderfy:e(function(o,i){var a=this,u=this._group,p=u._map,g=u._featureGroup,d=this._latlng,f=p.latLngToLayerPoint(d),_=L.Path.SVG,b=L.extend({},this._group.options.spiderLegPolylineOptions),y=b.opacity,x,k,C,P,T,E;for(y===void 0&&(y=L.MarkerClusterGroup.prototype.options.spiderLegPolylineOptions.opacity),_?(b.opacity=0,b.className=(b.className||"")+" leaflet-cluster-spider-leg"):b.opacity=y,u._ignoreMove=!0,x=0;x<o.length;x++)k=o[x],E=p.layerPointToLatLng(i[x]),C=new L.Polyline([d,E],b),p.addLayer(C),k._spiderLeg=C,_&&(P=C._path,T=P.getTotalLength()+.1,P.style.strokeDasharray=T,P.style.strokeDashoffset=T),k.setZIndexOffset&&k.setZIndexOffset(1e6),k.clusterHide&&k.clusterHide(),g.addLayer(k),k._setPos&&k._setPos(f);for(u._forceLayout(),u._animationStart(),x=o.length-1;x>=0;x--)E=p.layerPointToLatLng(i[x]),k=o[x],k._preSpiderfyLatlng=k._latlng,k.setLatLng(E),k.clusterShow&&k.clusterShow(),_&&(C=k._spiderLeg,P=C._path,P.style.strokeDashoffset=0,C.setStyle({opacity:y}));this.setOpacity(.3),u._ignoreMove=!1,setTimeout(function(){u._animationEnd(),u.fire("spiderfied",{cluster:a,markers:o})},200)},"_animationSpiderfy"),_animationUnspiderfy:e(function(o){var i=this,a=this._group,u=a._map,p=a._featureGroup,g=o?u._latLngToNewLayerPoint(this._latlng,o.zoom,o.center):u.latLngToLayerPoint(this._latlng),d=this.getAllChildMarkers(null,!0),f=L.Path.SVG,_,b,y,x,k,C;for(a._ignoreMove=!0,a._animationStart(),this.setOpacity(1),b=d.length-1;b>=0;b--)_=d[b],_._preSpiderfyLatlng&&(_.closePopup(),_.setLatLng(_._preSpiderfyLatlng),delete _._preSpiderfyLatlng,C=!0,_._setPos&&(_._setPos(g),C=!1),_.clusterHide&&(_.clusterHide(),C=!1),C&&p.removeLayer(_),f&&(y=_._spiderLeg,x=y._path,k=x.getTotalLength()+.1,x.style.strokeDashoffset=k,y.setStyle({opacity:0})));a._ignoreMove=!1,setTimeout(function(){var P=0;for(b=d.length-1;b>=0;b--)_=d[b],_._spiderLeg&&P++;for(b=d.length-1;b>=0;b--)_=d[b],_._spiderLeg&&(_.clusterShow&&_.clusterShow(),_.setZIndexOffset&&_.setZIndexOffset(0),P>1&&p.removeLayer(_),u.removeLayer(_._spiderLeg),delete _._spiderLeg);a._animationEnd(),a.fire("unspiderfied",{cluster:i,markers:d})},200)},"_animationUnspiderfy")}),L.MarkerClusterGroup.include({_spiderfied:null,unspiderfy:e(function(){this._unspiderfy.apply(this,arguments)},"unspiderfy"),_spiderfierOnAdd:e(function(){this._map.on("click",this._unspiderfyWrapper,this),this._map.options.zoomAnimation&&this._map.on("zoomstart",this._unspiderfyZoomStart,this),this._map.on("zoomend",this._noanimationUnspiderfy,this),L.Browser.touch||this._map.getRenderer(this)},"_spiderfierOnAdd"),_spiderfierOnRemove:e(function(){this._map.off("click",this._unspiderfyWrapper,this),this._map.off("zoomstart",this._unspiderfyZoomStart,this),this._map.off("zoomanim",this._unspiderfyZoomAnim,this),this._map.off("zoomend",this._noanimationUnspiderfy,this),this._noanimationUnspiderfy()},"_spiderfierOnRemove"),_unspiderfyZoomStart:e(function(){this._map&&this._map.on("zoomanim",this._unspiderfyZoomAnim,this)},"_unspiderfyZoomStart"),_unspiderfyZoomAnim:e(function(o){L.DomUtil.hasClass(this._map._mapPane,"leaflet-touching")||(this._map.off("zoomanim",this._unspiderfyZoomAnim,this),this._unspiderfy(o))},"_unspiderfyZoomAnim"),_unspiderfyWrapper:e(function(){this._unspiderfy()},"_unspiderfyWrapper"),_unspiderfy:e(function(o){this._spiderfied&&this._spiderfied.unspiderfy(o)},"_unspiderfy"),_noanimationUnspiderfy:e(function(){this._spiderfied&&this._spiderfied._noanimationUnspiderfy()},"_noanimationUnspiderfy"),_unspiderfyLayer:e(function(o){o._spiderLeg&&(this._featureGroup.removeLayer(o),o.clusterShow&&o.clusterShow(),o.setZIndexOffset&&o.setZIndexOffset(0),this._map.removeLayer(o._spiderLeg),delete o._spiderLeg)},"_unspiderfyLayer")}),L.MarkerClusterGroup.include({refreshClusters:e(function(o){return o?o instanceof L.MarkerClusterGroup?o=o._topClusterLevel.getAllChildMarkers():o instanceof L.LayerGroup?o=o._layers:o instanceof L.MarkerCluster?o=o.getAllChildMarkers():o instanceof L.Marker&&(o=[o]):o=this._topClusterLevel.getAllChildMarkers(),this._flagParentsIconsNeedUpdate(o),this._refreshClustersIcons(),this.options.singleMarkerMode&&this._refreshSingleMarkerModeMarkers(o),this},"refreshClusters"),_flagParentsIconsNeedUpdate:e(function(o){var i,a;for(i in o)for(a=o[i].__parent;a;)a._iconNeedsUpdate=!0,a=a.__parent},"_flagParentsIconsNeedUpdate"),_refreshSingleMarkerModeMarkers:e(function(o){var i,a;for(i in o)a=o[i],this.hasLayer(a)&&a.setIcon(this._overrideMarkerIcon(a))},"_refreshSingleMarkerModeMarkers")}),L.Marker.include({refreshIconOptions:e(function(o,i){var a=this.options.icon;return L.setOptions(a,o),this.setIcon(a),i&&this.__parent&&this.__parent._group.refreshClusters(this),this},"refreshIconOptions")}),s.MarkerClusterGroup=n,s.MarkerCluster=l,Object.defineProperty(s,"__esModule",{value:!0})})});var uc=Hn((FC,Ml)=>{"use strict";typeof Ml<"u"&&(Ml.exports=Vr);function Vr(s){if(!(this instanceof Vr))return new Vr(s);this._canvas=s=typeof s=="string"?document.getElementById(s):s,this._ctx=s.getContext("2d"),this._width=s.width,this._height=s.height,this._max=1,this._data=[]}e(Vr,"simpleheat");Vr.prototype={defaultRadius:25,defaultGradient:{.4:"blue",.6:"cyan",.7:"lime",.8:"yellow",1:"red"},data:e(function(s){return this._data=s,this},"data"),max:e(function(s){return this._max=s,this},"max"),add:e(function(s){return this._data.push(s),this},"add"),clear:e(function(){return this._data=[],this},"clear"),radius:e(function(s,n){n=n===void 0?15:n;var l=this._circle=this._createCanvas(),o=l.getContext("2d"),i=this._r=s+n;return l.width=l.height=i*2,o.shadowOffsetX=o.shadowOffsetY=i*2,o.shadowBlur=n,o.shadowColor="black",o.beginPath(),o.arc(-i,-i,s,0,Math.PI*2,!0),o.closePath(),o.fill(),this},"radius"),resize:e(function(){this._width=this._canvas.width,this._height=this._canvas.height},"resize"),gradient:e(function(s){var n=this._createCanvas(),l=n.getContext("2d"),o=l.createLinearGradient(0,0,0,256);n.width=1,n.height=256;for(var i in s)o.addColorStop(+i,s[i]);return l.fillStyle=o,l.fillRect(0,0,1,256),this._grad=l.getImageData(0,0,1,256).data,this},"gradient"),draw:e(function(s){this._circle||this.radius(this.defaultRadius),this._grad||this.gradient(this.defaultGradient);var n=this._ctx;n.clearRect(0,0,this._width,this._height);for(var l=0,o=this._data.length,i;l<o;l++)i=this._data[l],n.globalAlpha=Math.max(i[2]/this._max,s===void 0?.05:s),n.drawImage(this._circle,i[0]-this._r,i[1]-this._r);var a=n.getImageData(0,0,this._width,this._height);return this._colorize(a.data,this._grad),n.putImageData(a,0,0),this},"draw"),_colorize:e(function(s,n){for(var l=0,o=s.length,i;l<o;l+=4)i=s[l+3]*4,i&&(s[l]=n[i],s[l+1]=n[i+1],s[l+2]=n[i+2])},"_colorize"),_createCanvas:e(function(){return typeof document<"u"?document.createElement("canvas"):new this._canvas.constructor},"_createCanvas")}});var am="@hpcc-js/map",lm="3.1.0",hm="3.2.0";import{CanvasWidget as Xp}from"@hpcc-js/common";function Rs(s){var n=+this._x.call(null,s),l=+this._y.call(null,s);return Uh(this.cover(n,l),n,l,s)}e(Rs,"default");function Uh(s,n,l,o){if(isNaN(n)||isNaN(l))return s;var i,a=s._root,u={data:o},p=s._x0,g=s._y0,d=s._x1,f=s._y1,_,b,y,x,k,C,P,T;if(!a)return s._root=u,s;for(;a.length;)if((k=n>=(_=(p+d)/2))?p=_:d=_,(C=l>=(b=(g+f)/2))?g=b:f=b,i=a,!(a=a[P=C<<1|k]))return i[P]=u,s;if(y=+s._x.call(null,a.data),x=+s._y.call(null,a.data),n===y&&l===x)return u.next=a,i?i[P]=u:s._root=u,s;do i=i?i[P]=new Array(4):s._root=new Array(4),(k=n>=(_=(p+d)/2))?p=_:d=_,(C=l>=(b=(g+f)/2))?g=b:f=b;while((P=C<<1|k)===(T=(x>=b)<<1|y>=_));return i[T]=a,i[P]=u,s}e(Uh,"add");function Wh(s){var n,l,o=s.length,i,a,u=new Array(o),p=new Array(o),g=1/0,d=1/0,f=-1/0,_=-1/0;for(l=0;l<o;++l)isNaN(i=+this._x.call(null,n=s[l]))||isNaN(a=+this._y.call(null,n))||(u[l]=i,p[l]=a,i<g&&(g=i),i>f&&(f=i),a<d&&(d=a),a>_&&(_=a));if(g>f||d>_)return this;for(this.cover(g,d).cover(f,_),l=0;l<o;++l)Uh(this,u[l],p[l],s[l]);return this}e(Wh,"addAll");function Ns(s,n){if(isNaN(s=+s)||isNaN(n=+n))return this;var l=this._x0,o=this._y0,i=this._x1,a=this._y1;if(isNaN(l))i=(l=Math.floor(s))+1,a=(o=Math.floor(n))+1;else{for(var u=i-l,p=this._root,g,d;l>s||s>=i||o>n||n>=a;)switch(d=(n<o)<<1|s<l,g=new Array(4),g[d]=p,p=g,u*=2,d){case 0:i=l+u,a=o+u;break;case 1:l=i-u,a=o+u;break;case 2:i=l+u,o=a-u;break;case 3:l=i-u,o=a-u;break}this._root&&this._root.length&&(this._root=p)}return this._x0=l,this._y0=o,this._x1=i,this._y1=a,this}e(Ns,"default");function Zs(){var s=[];return this.visit(function(n){if(!n.length)do s.push(n.data);while(n=n.next)}),s}e(Zs,"default");function Fs(s){return arguments.length?this.cover(+s[0][0],+s[0][1]).cover(+s[1][0],+s[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]}e(Fs,"default");function Wt(s,n,l,o,i){this.node=s,this.x0=n,this.y0=l,this.x1=o,this.y1=i}e(Wt,"default");function Gs(s,n,l){var o,i=this._x0,a=this._y0,u,p,g,d,f=this._x1,_=this._y1,b=[],y=this._root,x,k;for(y&&b.push(new Wt(y,i,a,f,_)),l==null?l=1/0:(i=s-l,a=n-l,f=s+l,_=n+l,l*=l);x=b.pop();)if(!(!(y=x.node)||(u=x.x0)>f||(p=x.y0)>_||(g=x.x1)<i||(d=x.y1)<a))if(y.length){var C=(u+g)/2,P=(p+d)/2;b.push(new Wt(y[3],C,P,g,d),new Wt(y[2],u,P,C,d),new Wt(y[1],C,p,g,P),new Wt(y[0],u,p,C,P)),(k=(n>=P)<<1|s>=C)&&(x=b[b.length-1],b[b.length-1]=b[b.length-1-k],b[b.length-1-k]=x)}else{var T=s-+this._x.call(null,y.data),E=n-+this._y.call(null,y.data),O=T*T+E*E;if(O<l){var B=Math.sqrt(l=O);i=s-B,a=n-B,f=s+B,_=n+B,o=y.data}}return o}e(Gs,"default");function Hs(s){if(isNaN(f=+this._x.call(null,s))||isNaN(_=+this._y.call(null,s)))return this;var n,l=this._root,o,i,a,u=this._x0,p=this._y0,g=this._x1,d=this._y1,f,_,b,y,x,k,C,P;if(!l)return this;if(l.length)for(;;){if((x=f>=(b=(u+g)/2))?u=b:g=b,(k=_>=(y=(p+d)/2))?p=y:d=y,n=l,!(l=l[C=k<<1|x]))return this;if(!l.length)break;(n[C+1&3]||n[C+2&3]||n[C+3&3])&&(o=n,P=C)}for(;l.data!==s;)if(i=l,!(l=l.next))return this;return(a=l.next)&&delete l.next,i?(a?i.next=a:delete i.next,this):n?(a?n[C]=a:delete n[C],(l=n[0]||n[1]||n[2]||n[3])&&l===(n[3]||n[2]||n[1]||n[0])&&!l.length&&(o?o[P]=l:this._root=l),this):(this._root=a,this)}e(Hs,"default");function jh(s){for(var n=0,l=s.length;n<l;++n)this.remove(s[n]);return this}e(jh,"removeAll");function Us(){return this._root}e(Us,"default");function Ws(){var s=0;return this.visit(function(n){if(!n.length)do++s;while(n=n.next)}),s}e(Ws,"default");function js(s){var n=[],l,o=this._root,i,a,u,p,g;for(o&&n.push(new Wt(o,this._x0,this._y0,this._x1,this._y1));l=n.pop();)if(!s(o=l.node,a=l.x0,u=l.y0,p=l.x1,g=l.y1)&&o.length){var d=(a+p)/2,f=(u+g)/2;(i=o[3])&&n.push(new Wt(i,d,f,p,g)),(i=o[2])&&n.push(new Wt(i,a,f,d,g)),(i=o[1])&&n.push(new Wt(i,d,u,p,f)),(i=o[0])&&n.push(new Wt(i,a,u,d,f))}return this}e(js,"default");function Vs(s){var n=[],l=[],o;for(this._root&&n.push(new Wt(this._root,this._x0,this._y0,this._x1,this._y1));o=n.pop();){var i=o.node;if(i.length){var a,u=o.x0,p=o.y0,g=o.x1,d=o.y1,f=(u+g)/2,_=(p+d)/2;(a=i[0])&&n.push(new Wt(a,u,p,f,_)),(a=i[1])&&n.push(new Wt(a,f,p,g,_)),(a=i[2])&&n.push(new Wt(a,u,_,f,d)),(a=i[3])&&n.push(new Wt(a,f,_,g,d))}l.push(o)}for(;o=l.pop();)s(o.node,o.x0,o.y0,o.x1,o.y1);return this}e(Vs,"default");function Vh(s){return s[0]}e(Vh,"defaultX");function qs(s){return arguments.length?(this._x=s,this):this._x}e(qs,"default");function qh(s){return s[1]}e(qh,"defaultY");function Ys(s){return arguments.length?(this._y=s,this):this._y}e(Ys,"default");function Oo(s,n,l){var o=new Xs(n??Vh,l??qh,NaN,NaN,NaN,NaN);return s==null?o:o.addAll(s)}e(Oo,"quadtree");function Xs(s,n,l,o,i,a){this._x=s,this._y=n,this._x0=l,this._y0=o,this._x1=i,this._y1=a,this._root=void 0}e(Xs,"Quadtree");function Yh(s){for(var n={data:s.data},l=n;s=s.next;)l=l.next={data:s.data};return n}e(Yh,"leaf_copy");var ie=Oo.prototype=Xs.prototype;ie.copy=function(){var s=new Xs(this._x,this._y,this._x0,this._y0,this._x1,this._y1),n=this._root,l,o;if(!n)return s;if(!n.length)return s._root=Yh(n),s;for(l=[{source:n,target:s._root=new Array(4)}];n=l.pop();)for(var i=0;i<4;++i)(o=n.source[i])&&(o.length?l.push({source:o,target:n.target[i]=new Array(4)}):n.target[i]=Yh(o));return s};ie.add=Rs;ie.addAll=Wh;ie.cover=Ns;ie.data=Zs;ie.extent=Fs;ie.find=Gs;ie.remove=Hs;ie.removeAll=jh;ie.root=Us;ie.size=Ws;ie.visit=js;ie.visitAfter=Vs;ie.x=qs;ie.y=Ys;var Js=class{static{e(this,"Quadtree")}_pin_h=0;_pin_w=0;_tree;constructor(n,l,o,i){this._pin_h=o,this._pin_w=i,this._tree=Oo().extent(n).addAll(l)}searchRect(n,l,o,i){let a=[];return this._tree.visit((p,g,d,f,_)=>{let b=!1;do p.length||p.data&&!p.data.already_flagged&&u({left:n,right:o,top:l,bottom:i},p.data)&&(p.data.already_flagged=!0,a.push(p.data)),b=p=p.next;while(b);return g>=o||d>=i||f<n||_<l}),a;function u(p,g){return(g[0]<p.right||g[0]>p.left)&&(g[1]<p.bottom||g[1]>p.top)}e(u,"overlaps")}getTreeRects(){let n=[];return this._tree.visit((l,o,i,a,u)=>{n.push([o,i,a-o,u-i])}),n}},wt=class extends Xp{static{e(this,"CanvasPins")}_quadtree_rect_arr;_drawData;_overlap_count=0;_sub_overlap_count=0;constructor(){super()}enter(n,l){super.enter.apply(this,arguments),this.resize(this._size)}update(n,l){super.update.apply(this,arguments),this._ctx=this.element().node().getContext("2d");let i=(this.topLeftX_exists()&&this.topLeftY_exists()&&this.bottomRightX_exists()&&this.bottomRightY_exists()?this.skewedData():this.data()).map(a=>[...a]).map(a=>(a.is_cluster=!1,a.already_flagged=!1,a.weight=a[2],a.fillStyle="#FFFFFF",a.strokeStyle="#000000",a.overlap_arr=[],a));this._ctx.clearRect(0,0,this.width(),this.height()),this._drawData=this.enableClustering()?this.applyClustering(i):i,this.draw(this._drawData)}applyClustering(n){let l=this;this._overlap_count=0;let o=8,i=this.pinHeight(),a=this.pinWidth(),u=a/2,p=i/2,g=new Js([[0,0],[this.size().width,this.size().height]],n,i,a);switch(this._quadtree_rect_arr=g.getTreeRects(),this.clusterMode()){case"default":let f=n.map(C=>{if(!C.already_flagged){let P=this.searchRectMult(),T=C[0]-u*P,E=C[1]-p*P-o,O=C[0]+u*P,B=C[1]+p*P-o;C.overlap_arr=g.searchRect(T,E,O,B).filter(G=>G!==C),C.overlap_arr.length===0&&(C.already_flagged=!1)}return C});return f.forEach(C=>{C.already_flagged&&C.overlap_arr.length&&f.push(d([C,...C.overlap_arr]))}),f;case"grid":let _=[...n],b=this.gridCellSize(),y=this.gridCellSize(),x=Math.ceil(this.size().width/b),k=Math.ceil(this.size().height/y);for(let C=0;C<k;C++)for(let P=0;P<x;P++){let T=b*P,E=y*C,O=b*(P+1),B=y*(C+1),G=g.searchRect(T,E,O,B);if(G.length>1){let J=T+b/2,st=E+y/2;_.push(d(G,J,st))}}return _}return n;function d(f,_,b){let y=f.reduce((C,P)=>(P.already_flagged=!0,C+P[2]),0),x=typeof _<"u"?_:l.useAveragePos()?f.reduce((C,P)=>C+P[0]*P[2],0)/y:f[0][0],k=typeof b<"u"?b:l.useAveragePos()?f.reduce((C,P)=>C+P[1]*P[2],0)/y:f[0][1];return{0:x,1:k,weight:f.reduce((C,P)=>C+P[2],0),is_cluster:!0,already_flagged:!1,fillStyle:"#FFFFFF",strokeStyle:"#000000",overlap_arr:[]}}}drawQuadtree(){this._quadtree_rect_arr&&(this._ctx.strokeStyle="#000000",this._quadtree_rect_arr.forEach(n=>{this._ctx.strokeRect(n[0],n[1],n[2],n[3])}))}draw(n){let l=this,o=this._ctx;this.showQuadtree()&&this.drawQuadtree();let i=this.arrowHeight(),a=this.arrowWidth(),u=this.pinHeight(),p=this.pinWidth(),g=this.radiusWeightMult(),d=0;this.useWeightedRadius()&&n.filter(x=>x.is_cluster).forEach(x=>{d<x.weight&&(d=x.weight)}),n.filter(x=>!x.already_flagged).sort((x,k)=>x[1]>k[1]?1:-1).forEach(x=>{if(x.is_cluster||this.allCircles()){let k=p/2;this.useWeightedRadius()&&(k+=p*(g*x.weight/d)),f({icon:x.weight,left:Math.floor(x[0]-k)+.5,top:Math.floor(x[1]-k-i)+.5,radius:k,arrow_height:i,arrow_width:a})}else _({fillStyle:x.fillStyle,strokeStyle:x.strokeStyle,icon:x.weight,left:Math.floor(x[0]-p/2)+.5,top:Math.floor(x[1]-u-i)+.5,width:p,height:u,arrow_height:i,arrow_width:a})});function f(x){x.width=x.radius*2,x.height=x.width,o.fillStyle="#FFFFFF",o.strokeStyle="#000000",o.beginPath(),o.arc(x.left+x.width/2,x.top+x.height/2,x.radius,0,2*Math.PI),o.closePath(),o.fill(),o.stroke(),y(x)}e(f,"drawCirclePin");function _(x){o.fillStyle=x.fillStyle,o.strokeStyle="#000000",o.fillRect(x.left,x.top,x.width,x.height),o.strokeRect(x.left,x.top,x.width,x.height),b(x),y(x)}e(_,"drawSquarePin");function b(x,k){let C=x.left+x.width/2-x.arrow_width/2,P=x.left+x.width/2,T=x.left+x.width/2+x.arrow_width/2,E=x.top+x.height,O=E+x.arrow_height,B=E;k?(o.fillStyle="#FFFFFF",o.strokeStyle="#FFFFFF",E-=2,O-=2,B-=2):(o.fillStyle="#FFFFFF",o.strokeStyle="#000000"),o.beginPath(),o.moveTo(C,E),o.lineTo(P,O),o.lineTo(T,B),o.lineTo(C,E),o.closePath(),o.stroke(),o.fill(),k||b(x,!0)}e(b,"drawArrow");function y(x){o.font=`${l.pinFontSize()}px '${l.pinFontFamily()}'`;let k=x.left+x.width/2,C=x.top+x.height/2;o.textAlign="center",o.textBaseline="middle",o.fillStyle="#000000";let P=0,T=o.measureText(x.icon).width;for(;T>x.width||!l.shrinkFontToPin();)P++,o.font=`${l.pinFontSize()-P}px '${l.pinFontFamily()}'`,T=o.measureText(x.icon).width;o.fillText(x.icon,k,C)}e(y,"drawPinText")}skewedData(){let n=this,l=[],o=this.data(),i=this.size(),a=this.bottomRightX()-this.topLeftX(),u=this.bottomRightY()-this.topLeftY(),p=a/i.width,g=u/i.height;return o.forEach(function(d){let f=Math.abs(d[0]-n.topLeftX()),_=Math.abs(d[1]-n.topLeftY()),b=f/p,y=_/g;l.push([b,y,d[2]])}),l}};wt.prototype._class+=" map_CanvasPins";wt.prototype.publish("clusterMode","default","set","clusterMode",["defualt","grid"],{tags:["Basic"],optional:!0});wt.prototype.publish("gridCellSize",80,"number","gridCellSize",null,{tags:["Basic"],optional:!0});wt.prototype.publish("allCircles",!1,"boolean","allCircles",null,{tags:["Basic"],optional:!0});wt.prototype.publish("showQuadtree",!1,"boolean","showQuadtree",null,{tags:["Basic"],optional:!0});wt.prototype.publish("useAveragePos",!1,"boolean","useAveragePos",null,{tags:["Basic"],optional:!0});wt.prototype.publish("shrinkFontToPin",!0,"boolean","shrinkFontToPin",null,{tags:["Basic"],optional:!0});wt.prototype.publish("enableClustering",!0,"boolean","enableClustering",null,{tags:["Basic"],optional:!0});wt.prototype.publish("useWeightedRadius",!1,"boolean","useWeightedRadius",null,{tags:["Basic"],optional:!0});wt.prototype.publish("radiusWeightMult",.5,"number","radiusWeightMult",null,{tags:["Basic"],optional:!0});wt.prototype.publish("searchRectMult",3,"number","searchRectMult",null,{tags:["Basic"],optional:!0});wt.prototype.publish("bottomRightX",null,"number","Bottom right x-value",null,{tags:["Basic"],optional:!0});wt.prototype.publish("bottomRightY",null,"number","Bottom right y-value",null,{tags:["Basic"],optional:!0});wt.prototype.publish("topLeftX",null,"number","Top left x-value",null,{tags:["Basic"],optional:!0});wt.prototype.publish("topLeftY",null,"number","Top left y-value",null,{tags:["Basic"],optional:!0});wt.prototype.publish("pinHeight",20,"number","pinHeight",null,{tags:["Basic"],optional:!0});wt.prototype.publish("pinWidth",20,"number","pinWidth",null,{tags:["Basic"],optional:!0});wt.prototype.publish("pinFontFamily","Arial","string","pinFontFamily",null,{tags:["Basic"],optional:!0});wt.prototype.publish("pinFontSize",14,"number","pinFontSize",null,{tags:["Basic"],optional:!0});wt.prototype.publish("arrowHeight",8,"number","arrowHeight",null,{tags:["Basic"],optional:!0});wt.prototype.publish("arrowWidth",8,"number","arrowWidth",null,{tags:["Basic"],optional:!0});import{ITooltip as Xu}from"@hpcc-js/api";import{SVGZoomWidget as Yu}from"@hpcc-js/common";var tl={};Hh(tl,{geoAlbers:()=>Si,geoAlbersUsa:()=>Na,geoArea:()=>ia,geoAzimuthalEqualArea:()=>Za,geoAzimuthalEqualAreaRaw:()=>yr,geoAzimuthalEquidistant:()=>Fa,geoAzimuthalEquidistantRaw:()=>vr,geoBounds:()=>na,geoCentroid:()=>ha,geoCircle:()=>pa,geoClipAntimeridian:()=>jo,geoClipCircle:()=>Vo,geoClipExtent:()=>_a,geoClipRectangle:()=>Ye,geoConicConformal:()=>Ua,geoConicConformalRaw:()=>Ha,geoConicEqualArea:()=>Ce,geoConicEqualAreaRaw:()=>Ra,geoConicEquidistant:()=>Va,geoConicEquidistantRaw:()=>ja,geoContains:()=>ba,geoDistance:()=>Mi,geoEqualEarth:()=>qa,geoEqualEarthRaw:()=>Lr,geoEquirectangular:()=>Wa,geoEquirectangularRaw:()=>Oi,geoGnomonic:()=>Ya,geoGnomonicRaw:()=>wr,geoGraticule:()=>Ji,geoGraticule10:()=>Pu,geoIdentity:()=>Xa,geoInterpolate:()=>xa,geoLength:()=>Yo,geoMercator:()=>on,geoMercatorRaw:()=>Ti,geoNaturalEarth1:()=>Ja,geoNaturalEarth1Raw:()=>Cr,geoOrthographic:()=>Ka,geoOrthographicRaw:()=>kr,geoPath:()=>Je,geoProjection:()=>Dt,geoProjectionMutator:()=>en,geoRotation:()=>Fo,geoStereographic:()=>$a,geoStereographicRaw:()=>Mr,geoStream:()=>It,geoTransform:()=>tn,geoTransverseMercator:()=>Qa,geoTransverseMercatorRaw:()=>Pr});function oe(){return new Wn}e(oe,"default");function Wn(){this.reset()}e(Wn,"Adder");Wn.prototype={constructor:Wn,reset:e(function(){this.s=this.t=0},"reset"),add:e(function(s){Xh(Un,s,this.t),Xh(this,Un.s,this.s),this.s?this.t+=Un.t:this.s=Un.t},"add"),valueOf:e(function(){return this.s},"valueOf")};var Un=new Wn;function Xh(s,n,l){var o=s.s=n+l,i=o-n,a=o-i;s.t=n-a+(l-i)}e(Xh,"add");var Z=1e-6,bi=1e-12,Y=Math.PI,gt=Y/2,Wi=Y/4,zt=Y*2,lt=180/Y,H=Y/180,j=Math.abs,Le=Math.atan,yt=Math.atan2,R=Math.cos,zo=Math.ceil,jn=Math.exp;var xi=Math.log,Vn=Math.pow,A=Math.sin,te=Math.sign||function(s){return s>0?1:s<0?-1:0},ht=Math.sqrt,ji=Math.tan;function qn(s){return s>1?0:s<-1?Y:Math.acos(s)}e(qn,"acos");function vt(s){return s>1?gt:s<-1?-gt:Math.asin(s)}e(vt,"asin");function Ks(s){return(s=A(s/2))*s}e(Ks,"haversin");function dt(){}e(dt,"noop");function Yn(s,n){s&&Kh.hasOwnProperty(s.type)&&Kh[s.type](s,n)}e(Yn,"streamGeometry");var Jh={Feature:e(function(s,n){Yn(s.geometry,n)},"Feature"),FeatureCollection:e(function(s,n){for(var l=s.features,o=-1,i=l.length;++o<i;)Yn(l[o].geometry,n)},"FeatureCollection")},Kh={Sphere:e(function(s,n){n.sphere()},"Sphere"),Point:e(function(s,n){s=s.coordinates,n.point(s[0],s[1],s[2])},"Point"),MultiPoint:e(function(s,n){for(var l=s.coordinates,o=-1,i=l.length;++o<i;)s=l[o],n.point(s[0],s[1],s[2])},"MultiPoint"),LineString:e(function(s,n){$s(s.coordinates,n,0)},"LineString"),MultiLineString:e(function(s,n){for(var l=s.coordinates,o=-1,i=l.length;++o<i;)$s(l[o],n,0)},"MultiLineString"),Polygon:e(function(s,n){$h(s.coordinates,n)},"Polygon"),MultiPolygon:e(function(s,n){for(var l=s.coordinates,o=-1,i=l.length;++o<i;)$h(l[o],n)},"MultiPolygon"),GeometryCollection:e(function(s,n){for(var l=s.geometries,o=-1,i=l.length;++o<i;)Yn(l[o],n)},"GeometryCollection")};function $s(s,n,l){var o=-1,i=s.length-l,a;for(n.lineStart();++o<i;)a=s[o],n.point(a[0],a[1],a[2]);n.lineEnd()}e($s,"streamLine");function $h(s,n){var l=-1,o=s.length;for(n.polygonStart();++l<o;)$s(s[l],n,1);n.polygonEnd()}e($h,"streamPolygon");function It(s,n){s&&Jh.hasOwnProperty(s.type)?Jh[s.type](s,n):Yn(s,n)}e(It,"default");var Io=oe(),Xn=oe(),Qh,tu,Qs,ta,ea,Pe={point:dt,lineStart:dt,lineEnd:dt,polygonStart:e(function(){Io.reset(),Pe.lineStart=Jp,Pe.lineEnd=Kp},"polygonStart"),polygonEnd:e(function(){var s=+Io;Xn.add(s<0?zt+s:s),this.lineStart=this.lineEnd=this.point=dt},"polygonEnd"),sphere:e(function(){Xn.add(zt)},"sphere")};function Jp(){Pe.point=$p}e(Jp,"areaRingStart");function Kp(){eu(Qh,tu)}e(Kp,"areaRingEnd");function $p(s,n){Pe.point=eu,Qh=s,tu=n,s*=H,n*=H,Qs=s,ta=R(n=n/2+Wi),ea=A(n)}e($p,"areaPointFirst");function eu(s,n){s*=H,n*=H,n=n/2+Wi;var l=s-Qs,o=l>=0?1:-1,i=o*l,a=R(n),u=A(n),p=ea*u,g=ta*a+p*R(i),d=p*o*A(i);Io.add(yt(d,g)),Qs=s,ta=a,ea=u}e(eu,"areaPoint");function ia(s){return Xn.reset(),It(s,Pe),Xn*2}e(ia,"default");function Li(s){return[yt(s[1],s[0]),vt(s[2])]}e(Li,"spherical");function we(s){var n=s[0],l=s[1],o=R(l);return[o*R(n),o*A(n),A(l)]}e(we,"cartesian");function Do(s,n){return s[0]*n[0]+s[1]*n[1]+s[2]*n[2]}e(Do,"cartesianDot");function je(s,n){return[s[1]*n[2]-s[2]*n[1],s[2]*n[0]-s[0]*n[2],s[0]*n[1]-s[1]*n[0]]}e(je,"cartesianCross");function Jn(s,n){s[0]+=n[0],s[1]+=n[1],s[2]+=n[2]}e(Jn,"cartesianAddInPlace");function Ao(s,n){return[s[0]*n,s[1]*n,s[2]*n]}e(Ao,"cartesianScale");function wi(s){var n=ht(s[0]*s[0]+s[1]*s[1]+s[2]*s[2]);s[0]/=n,s[1]/=n,s[2]/=n}e(wi,"cartesianNormalizeInPlace");var Mt,le,Pt,de,Ci,ru,su,Vi,Bo=oe(),ri,qe,Ve={point:oa,lineStart:iu,lineEnd:ou,polygonStart:e(function(){Ve.point=lu,Ve.lineStart=Qp,Ve.lineEnd=td,Bo.reset(),Pe.polygonStart()},"polygonStart"),polygonEnd:e(function(){Pe.polygonEnd(),Ve.point=oa,Ve.lineStart=iu,Ve.lineEnd=ou,Io<0?(Mt=-(Pt=180),le=-(de=90)):Bo>Z?de=90:Bo<-Z&&(le=-90),qe[0]=Mt,qe[1]=Pt},"polygonEnd"),sphere:e(function(){Mt=-(Pt=180),le=-(de=90)},"sphere")};function oa(s,n){ri.push(qe=[Mt=s,Pt=s]),n<le&&(le=n),n>de&&(de=n)}e(oa,"boundsPoint");function au(s,n){var l=we([s*H,n*H]);if(Vi){var o=je(Vi,l),i=[o[1],-o[0],0],a=je(i,o);wi(a),a=Li(a);var u=s-Ci,p=u>0?1:-1,g=a[0]*lt*p,d,f=j(u)>180;f^(p*Ci<g&&g<p*s)?(d=a[1]*lt,d>de&&(de=d)):(g=(g+360)%360-180,f^(p*Ci<g&&g<p*s)?(d=-a[1]*lt,d<le&&(le=d)):(n<le&&(le=n),n>de&&(de=n))),f?s<Ci?pe(Mt,s)>pe(Mt,Pt)&&(Pt=s):pe(s,Pt)>pe(Mt,Pt)&&(Mt=s):Pt>=Mt?(s<Mt&&(Mt=s),s>Pt&&(Pt=s)):s>Ci?pe(Mt,s)>pe(Mt,Pt)&&(Pt=s):pe(s,Pt)>pe(Mt,Pt)&&(Mt=s)}else ri.push(qe=[Mt=s,Pt=s]);n<le&&(le=n),n>de&&(de=n),Vi=l,Ci=s}e(au,"linePoint");function iu(){Ve.point=au}e(iu,"boundsLineStart");function ou(){qe[0]=Mt,qe[1]=Pt,Ve.point=oa,Vi=null}e(ou,"boundsLineEnd");function lu(s,n){if(Vi){var l=s-Ci;Bo.add(j(l)>180?l+(l>0?360:-360):l)}else ru=s,su=n;Pe.point(s,n),au(s,n)}e(lu,"boundsRingPoint");function Qp(){Pe.lineStart()}e(Qp,"boundsRingStart");function td(){lu(ru,su),Pe.lineEnd(),j(Bo)>Z&&(Mt=-(Pt=180)),qe[0]=Mt,qe[1]=Pt,Vi=null}e(td,"boundsRingEnd");function pe(s,n){return(n-=s)<0?n+360:n}e(pe,"angle");function ed(s,n){return s[0]-n[0]}e(ed,"rangeCompare");function nu(s,n){return s[0]<=s[1]?s[0]<=n&&n<=s[1]:n<s[0]||s[1]<n}e(nu,"rangeContains");function na(s){var n,l,o,i,a,u,p;if(de=Pt=-(Mt=le=1/0),ri=[],It(s,Ve),l=ri.length){for(ri.sort(ed),n=1,o=ri[0],a=[o];n<l;++n)i=ri[n],nu(o,i[0])||nu(o,i[1])?(pe(o[0],i[1])>pe(o[0],o[1])&&(o[1]=i[1]),pe(i[0],o[1])>pe(o[0],o[1])&&(o[0]=i[0])):a.push(o=i);for(u=-1/0,l=a.length-1,n=0,o=a[l];n<=l;o=i,++n)i=a[n],(p=pe(o[1],i[0]))>u&&(u=p,Mt=i[0],Pt=o[1])}return ri=qe=null,Mt===1/0||le===1/0?[[NaN,NaN],[NaN,NaN]]:[[Mt,le],[Pt,de]]}e(na,"default");var Ro,Kn,$n,Qn,tr,er,ir,or,ra,sa,aa,cu,pu,ne,re,se,Ee={sphere:dt,point:la,lineStart:hu,lineEnd:uu,polygonStart:e(function(){Ee.lineStart=nd,Ee.lineEnd=rd},"polygonStart"),polygonEnd:e(function(){Ee.lineStart=hu,Ee.lineEnd=uu},"polygonEnd")};function la(s,n){s*=H,n*=H;var l=R(n);No(l*R(s),l*A(s),A(n))}e(la,"centroidPoint");function No(s,n,l){++Ro,$n+=(s-$n)/Ro,Qn+=(n-Qn)/Ro,tr+=(l-tr)/Ro}e(No,"centroidPointCartesian");function hu(){Ee.point=id}e(hu,"centroidLineStart");function id(s,n){s*=H,n*=H;var l=R(n);ne=l*R(s),re=l*A(s),se=A(n),Ee.point=od,No(ne,re,se)}e(id,"centroidLinePointFirst");function od(s,n){s*=H,n*=H;var l=R(n),o=l*R(s),i=l*A(s),a=A(n),u=yt(ht((u=re*a-se*i)*u+(u=se*o-ne*a)*u+(u=ne*i-re*o)*u),ne*o+re*i+se*a);Kn+=u,er+=u*(ne+(ne=o)),ir+=u*(re+(re=i)),or+=u*(se+(se=a)),No(ne,re,se)}e(od,"centroidLinePoint");function uu(){Ee.point=la}e(uu,"centroidLineEnd");function nd(){Ee.point=sd}e(nd,"centroidRingStart");function rd(){du(cu,pu),Ee.point=la}e(rd,"centroidRingEnd");function sd(s,n){cu=s,pu=n,s*=H,n*=H,Ee.point=du;var l=R(n);ne=l*R(s),re=l*A(s),se=A(n),No(ne,re,se)}e(sd,"centroidRingPointFirst");function du(s,n){s*=H,n*=H;var l=R(n),o=l*R(s),i=l*A(s),a=A(n),u=re*a-se*i,p=se*o-ne*a,g=ne*i-re*o,d=ht(u*u+p*p+g*g),f=vt(d),_=d&&-f/d;ra+=_*u,sa+=_*p,aa+=_*g,Kn+=f,er+=f*(ne+(ne=o)),ir+=f*(re+(re=i)),or+=f*(se+(se=a)),No(ne,re,se)}e(du,"centroidRingPoint");function ha(s){Ro=Kn=$n=Qn=tr=er=ir=or=ra=sa=aa=0,It(s,Ee);var n=ra,l=sa,o=aa,i=n*n+l*l+o*o;return i<bi&&(n=er,l=ir,o=or,Kn<Z&&(n=$n,l=Qn,o=tr),i=n*n+l*l+o*o,i<bi)?[NaN,NaN]:[yt(l,n)*lt,vt(o/ht(i))*lt]}e(ha,"default");function si(s){return function(){return s}}e(si,"default");function qi(s,n){function l(o,i){return o=s(o,i),n(o[0],o[1])}return e(l,"compose"),s.invert&&n.invert&&(l.invert=function(o,i){return o=n.invert(o,i),o&&s.invert(o[0],o[1])}),l}e(qi,"default");function ua(s,n){return[j(s)>Y?s+Math.round(-s/zt)*zt:s,n]}e(ua,"rotationIdentity");ua.invert=ua;function Zo(s,n,l){return(s%=zt)?n||l?qi(mu(s),_u(n,l)):mu(s):n||l?_u(n,l):ua}e(Zo,"rotateRadians");function fu(s){return function(n,l){return n+=s,[n>Y?n-zt:n<-Y?n+zt:n,l]}}e(fu,"forwardRotationLambda");function mu(s){var n=fu(s);return n.invert=fu(-s),n}e(mu,"rotationLambda");function _u(s,n){var l=R(s),o=A(s),i=R(n),a=A(n);function u(p,g){var d=R(g),f=R(p)*d,_=A(p)*d,b=A(g),y=b*l+f*o;return[yt(_*i-y*a,f*l-b*o),vt(y*i+_*a)]}return e(u,"rotation"),u.invert=function(p,g){var d=R(g),f=R(p)*d,_=A(p)*d,b=A(g),y=b*i-_*a;return[yt(_*i+b*a,f*l+y*o),vt(y*l-f*o)]},u}e(_u,"rotationPhiGamma");function Fo(s){s=Zo(s[0]*H,s[1]*H,s.length>2?s[2]*H:0);function n(l){return l=s(l[0]*H,l[1]*H),l[0]*=lt,l[1]*=lt,l}return e(n,"forward"),n.invert=function(l){return l=s.invert(l[0]*H,l[1]*H),l[0]*=lt,l[1]*=lt,l},n}e(Fo,"default");function ca(s,n,l,o,i,a){if(l){var u=R(n),p=A(n),g=o*l;i==null?(i=n+o*zt,a=n-g/2):(i=gu(u,i),a=gu(u,a),(o>0?i<a:i>a)&&(i+=o*zt));for(var d,f=i;o>0?f>a:f<a;f-=g)d=Li([u,-p*R(f),-p*A(f)]),s.point(d[0],d[1])}}e(ca,"circleStream");function gu(s,n){n=we(n),n[0]-=s,wi(n);var l=qn(-n[1]);return((-n[2]<0?-l:l)+zt-Z)%zt}e(gu,"circleRadius");function pa(){var s=si([0,0]),n=si(90),l=si(6),o,i,a={point:u};function u(g,d){o.push(g=i(g,d)),g[0]*=lt,g[1]*=lt}e(u,"point");function p(){var g=s.apply(this,arguments),d=n.apply(this,arguments)*H,f=l.apply(this,arguments)*H;return o=[],i=Zo(-g[0]*H,-g[1]*H,0).invert,ca(a,d,f,1),g={type:"Polygon",coordinates:[o]},o=i=null,g}return e(p,"circle"),p.center=function(g){return arguments.length?(s=typeof g=="function"?g:si([+g[0],+g[1]]),p):s},p.radius=function(g){return arguments.length?(n=typeof g=="function"?g:si(+g),p):n},p.precision=function(g){return arguments.length?(l=typeof g=="function"?g:si(+g),p):l},p}e(pa,"default");function Go(){var s=[],n;return{point:e(function(l,o,i){n.push([l,o,i])},"point"),lineStart:e(function(){s.push(n=[])},"lineStart"),lineEnd:dt,rejoin:e(function(){s.length>1&&s.push(s.pop().concat(s.shift()))},"rejoin"),result:e(function(){var l=s;return s=[],n=null,l},"result")}}e(Go,"default");function ki(s,n){return j(s[0]-n[0])<Z&&j(s[1]-n[1])<Z}e(ki,"default");function nr(s,n,l,o){this.x=s,this.z=n,this.o=l,this.e=o,this.v=!1,this.n=this.p=null}e(nr,"Intersection");function Ho(s,n,l,o,i){var a=[],u=[],p,g;if(s.forEach(function(x){if(!((k=x.length-1)<=0)){var k,C=x[0],P=x[k],T;if(ki(C,P)){if(!C[2]&&!P[2]){for(i.lineStart(),p=0;p<k;++p)i.point((C=x[p])[0],C[1]);i.lineEnd();return}P[0]+=2*Z}a.push(T=new nr(C,x,null,!0)),u.push(T.o=new nr(C,null,T,!1)),a.push(T=new nr(P,x,null,!1)),u.push(T.o=new nr(P,null,T,!0))}}),!!a.length){for(u.sort(n),yu(a),yu(u),p=0,g=u.length;p<g;++p)u[p].e=l=!l;for(var d=a[0],f,_;;){for(var b=d,y=!0;b.v;)if((b=b.n)===d)return;f=b.z,i.lineStart();do{if(b.v=b.o.v=!0,b.e){if(y)for(p=0,g=f.length;p<g;++p)i.point((_=f[p])[0],_[1]);else o(b.x,b.n.x,1,i);b=b.n}else{if(y)for(f=b.p.z,p=f.length-1;p>=0;--p)i.point((_=f[p])[0],_[1]);else o(b.x,b.p.x,-1,i);b=b.p}b=b.o,f=b.z,y=!y}while(!b.v);i.lineEnd()}}}e(Ho,"default");function yu(s){if(n=s.length){for(var n,l=0,o=s[0],i;++l<n;)o.n=i=s[l],i.p=o,o=i;o.n=i=s[0],i.p=o}}e(yu,"link");var da=oe();function fa(s){return j(s[0])<=Y?s[0]:te(s[0])*((j(s[0])+Y)%zt-Y)}e(fa,"longitude");function Uo(s,n){var l=fa(n),o=n[1],i=A(o),a=[A(l),-R(l),0],u=0,p=0;da.reset(),i===1?o=gt+Z:i===-1&&(o=-gt-Z);for(var g=0,d=s.length;g<d;++g)if(_=(f=s[g]).length)for(var f,_,b=f[_-1],y=fa(b),x=b[1]/2+Wi,k=A(x),C=R(x),P=0;P<_;++P,y=E,k=B,C=G,b=T){var T=f[P],E=fa(T),O=T[1]/2+Wi,B=A(O),G=R(O),J=E-y,st=J>=0?1:-1,X=st*J,ot=X>Y,K=k*B;if(da.add(yt(K*st*A(X),C*G+K*R(X))),u+=ot?J+st*zt:J,ot^y>=l^E>=l){var xt=je(we(b),we(T));wi(xt);var St=je(a,xt);wi(St);var Q=(ot^J>=0?-1:1)*vt(St[2]);(o>Q||o===Q&&(xt[0]||xt[1]))&&(p+=ot^J>=0?1:-1)}}return(u<-Z||u<Z&&da<-Z)^p&1}e(Uo,"default");import{merge as ad}from"@hpcc-js/common";function Wo(s,n,l,o){return function(i){var a=n(i),u=Go(),p=n(u),g=!1,d,f,_,b={point:y,lineStart:k,lineEnd:C,polygonStart:e(function(){b.point=P,b.lineStart=T,b.lineEnd=E,f=[],d=[]},"polygonStart"),polygonEnd:e(function(){b.point=y,b.lineStart=k,b.lineEnd=C,f=ad(f);var O=Uo(d,o);f.length?(g||(i.polygonStart(),g=!0),Ho(f,hd,O,l,i)):O&&(g||(i.polygonStart(),g=!0),i.lineStart(),l(null,null,1,i),i.lineEnd()),g&&(i.polygonEnd(),g=!1),f=d=null},"polygonEnd"),sphere:e(function(){i.polygonStart(),i.lineStart(),l(null,null,1,i),i.lineEnd(),i.polygonEnd()},"sphere")};function y(O,B){s(O,B)&&i.point(O,B)}e(y,"point");function x(O,B){a.point(O,B)}e(x,"pointLine");function k(){b.point=x,a.lineStart()}e(k,"lineStart");function C(){b.point=y,a.lineEnd()}e(C,"lineEnd");function P(O,B){_.push([O,B]),p.point(O,B)}e(P,"pointRing");function T(){p.lineStart(),_=[]}e(T,"ringStart");function E(){P(_[0][0],_[0][1]),p.lineEnd();var O=p.clean(),B=u.result(),G,J=B.length,st,X,ot;if(_.pop(),d.push(_),_=null,!!J){if(O&1){if(X=B[0],(st=X.length-1)>0){for(g||(i.polygonStart(),g=!0),i.lineStart(),G=0;G<st;++G)i.point((ot=X[G])[0],ot[1]);i.lineEnd()}return}J>1&&O&2&&B.push(B.pop().concat(B.shift())),f.push(B.filter(ld))}}return e(E,"ringEnd"),b}}e(Wo,"default");function ld(s){return s.length>1}e(ld,"validSegment");function hd(s,n){return((s=s.x)[0]<0?s[1]-gt-Z:gt-s[1])-((n=n.x)[0]<0?n[1]-gt-Z:gt-n[1])}e(hd,"compareIntersection");var jo=Wo(function(){return!0},ud,pd,[-Y,-gt]);function ud(s){var n=NaN,l=NaN,o=NaN,i;return{lineStart:e(function(){s.lineStart(),i=1},"lineStart"),point:e(function(a,u){var p=a>0?Y:-Y,g=j(a-n);j(g-Y)<Z?(s.point(n,l=(l+u)/2>0?gt:-gt),s.point(o,l),s.lineEnd(),s.lineStart(),s.point(p,l),s.point(a,l),i=0):o!==p&&g>=Y&&(j(n-o)<Z&&(n-=o*Z),j(a-p)<Z&&(a-=p*Z),l=cd(n,l,a,u),s.point(o,l),s.lineEnd(),s.lineStart(),s.point(p,l),i=0),s.point(n=a,l=u),o=p},"point"),lineEnd:e(function(){s.lineEnd(),n=l=NaN},"lineEnd"),clean:e(function(){return 2-i},"clean")}}e(ud,"clipAntimeridianLine");function cd(s,n,l,o){var i,a,u=A(s-l);return j(u)>Z?Le((A(n)*(a=R(o))*A(l)-A(o)*(i=R(n))*A(s))/(i*a*u)):(n+o)/2}e(cd,"clipAntimeridianIntersect");function pd(s,n,l,o){var i;if(s==null)i=l*gt,o.point(-Y,i),o.point(0,i),o.point(Y,i),o.point(Y,0),o.point(Y,-i),o.point(0,-i),o.point(-Y,-i),o.point(-Y,0),o.point(-Y,i);else if(j(s[0]-n[0])>Z){var a=s[0]<n[0]?Y:-Y;i=l*a/2,o.point(-a,i),o.point(0,i),o.point(a,i)}else o.point(n[0],n[1])}e(pd,"clipAntimeridianInterpolate");function Vo(s){var n=R(s),l=6*H,o=n>0,i=j(n)>Z;function a(f,_,b,y){ca(y,s,l,b,f,_)}e(a,"interpolate");function u(f,_){return R(f)*R(_)>n}e(u,"visible");function p(f){var _,b,y,x,k;return{lineStart:e(function(){x=y=!1,k=1},"lineStart"),point:e(function(C,P){var T=[C,P],E,O=u(C,P),B=o?O?0:d(C,P):O?d(C+(C<0?Y:-Y),P):0;if(!_&&(x=y=O)&&f.lineStart(),O!==y&&(E=g(_,T),(!E||ki(_,E)||ki(T,E))&&(T[2]=1)),O!==y)k=0,O?(f.lineStart(),E=g(T,_),f.point(E[0],E[1])):(E=g(_,T),f.point(E[0],E[1],2),f.lineEnd()),_=E;else if(i&&_&&o^O){var G;!(B&b)&&(G=g(T,_,!0))&&(k=0,o?(f.lineStart(),f.point(G[0][0],G[0][1]),f.point(G[1][0],G[1][1]),f.lineEnd()):(f.point(G[1][0],G[1][1]),f.lineEnd(),f.lineStart(),f.point(G[0][0],G[0][1],3)))}O&&(!_||!ki(_,T))&&f.point(T[0],T[1]),_=T,y=O,b=B},"point"),lineEnd:e(function(){y&&f.lineEnd(),_=null},"lineEnd"),clean:e(function(){return k|(x&&y)<<1},"clean")}}e(p,"clipLine");function g(f,_,b){var y=we(f),x=we(_),k=[1,0,0],C=je(y,x),P=Do(C,C),T=C[0],E=P-T*T;if(!E)return!b&&f;var O=n*P/E,B=-n*T/E,G=je(k,C),J=Ao(k,O),st=Ao(C,B);Jn(J,st);var X=G,ot=Do(J,X),K=Do(X,X),xt=ot*ot-K*(Do(J,J)-1);if(!(xt<0)){var St=ht(xt),Q=Ao(X,(-ot-St)/K);if(Jn(Q,J),Q=Li(Q),!b)return Q;var I=f[0],N=_[0],Tt=f[1],U=_[1],at;N<I&&(at=I,I=N,N=at);var At=N-I,Ct=j(At-Y)<Z,_t=Ct||At<Z;if(!Ct&&U<Tt&&(at=Tt,Tt=U,U=at),_t?Ct?Tt+U>0^Q[1]<(j(Q[0]-I)<Z?Tt:U):Tt<=Q[1]&&Q[1]<=U:At>Y^(I<=Q[0]&&Q[0]<=N)){var nt=Ao(X,(-ot+St)/K);return Jn(nt,J),[Q,Li(nt)]}}}e(g,"intersect");function d(f,_){var b=o?s:Y-s,y=0;return f<-b?y|=1:f>b&&(y|=2),_<-b?y|=4:_>b&&(y|=8),y}return e(d,"code"),Wo(u,p,a,o?[0,-s]:[-Y,s-Y])}e(Vo,"default");function ma(s,n,l,o,i,a){var u=s[0],p=s[1],g=n[0],d=n[1],f=0,_=1,b=g-u,y=d-p,x;if(x=l-u,!(!b&&x>0)){if(x/=b,b<0){if(x<f)return;x<_&&(_=x)}else if(b>0){if(x>_)return;x>f&&(f=x)}if(x=i-u,!(!b&&x<0)){if(x/=b,b<0){if(x>_)return;x>f&&(f=x)}else if(b>0){if(x<f)return;x<_&&(_=x)}if(x=o-p,!(!y&&x>0)){if(x/=y,y<0){if(x<f)return;x<_&&(_=x)}else if(y>0){if(x>_)return;x>f&&(f=x)}if(x=a-p,!(!y&&x<0)){if(x/=y,y<0){if(x>_)return;x>f&&(f=x)}else if(y>0){if(x<f)return;x<_&&(_=x)}return f>0&&(s[0]=u+f*b,s[1]=p+f*y),_<1&&(n[0]=u+_*b,n[1]=p+_*y),!0}}}}}e(ma,"default");import{merge as dd}from"@hpcc-js/common";var qo=1e9,rr=-qo;function Ye(s,n,l,o){function i(d,f){return s<=d&&d<=l&&n<=f&&f<=o}e(i,"visible");function a(d,f,_,b){var y=0,x=0;if(d==null||(y=u(d,_))!==(x=u(f,_))||g(d,f)<0^_>0)do b.point(y===0||y===3?s:l,y>1?o:n);while((y=(y+_+4)%4)!==x);else b.point(f[0],f[1])}e(a,"interpolate");function u(d,f){return j(d[0]-s)<Z?f>0?0:3:j(d[0]-l)<Z?f>0?2:1:j(d[1]-n)<Z?f>0?1:0:f>0?3:2}e(u,"corner");function p(d,f){return g(d.x,f.x)}e(p,"compareIntersection");function g(d,f){var _=u(d,1),b=u(f,1);return _!==b?_-b:_===0?f[1]-d[1]:_===1?d[0]-f[0]:_===2?d[1]-f[1]:f[0]-d[0]}return e(g,"comparePoint"),function(d){var f=d,_=Go(),b,y,x,k,C,P,T,E,O,B,G,J={point:st,lineStart:xt,lineEnd:St,polygonStart:ot,polygonEnd:K};function st(I,N){i(I,N)&&f.point(I,N)}e(st,"point");function X(){for(var I=0,N=0,Tt=y.length;N<Tt;++N)for(var U=y[N],at=1,At=U.length,Ct=U[0],_t,nt,it=Ct[0],Qt=Ct[1];at<At;++at)_t=it,nt=Qt,Ct=U[at],it=Ct[0],Qt=Ct[1],nt<=o?Qt>o&&(it-_t)*(o-nt)>(Qt-nt)*(s-_t)&&++I:Qt<=o&&(it-_t)*(o-nt)<(Qt-nt)*(s-_t)&&--I;return I}e(X,"polygonInside");function ot(){f=_,b=[],y=[],G=!0}e(ot,"polygonStart");function K(){var I=X(),N=G&&I,Tt=(b=dd(b)).length;(N||Tt)&&(d.polygonStart(),N&&(d.lineStart(),a(null,null,1,d),d.lineEnd()),Tt&&Ho(b,p,I,a,d),d.polygonEnd()),f=d,b=y=x=null}e(K,"polygonEnd");function xt(){J.point=Q,y&&y.push(x=[]),B=!0,O=!1,T=E=NaN}e(xt,"lineStart");function St(){b&&(Q(k,C),P&&O&&_.rejoin(),b.push(_.result())),J.point=st,O&&f.lineEnd()}e(St,"lineEnd");function Q(I,N){var Tt=i(I,N);if(y&&x.push([I,N]),B)k=I,C=N,P=Tt,B=!1,Tt&&(f.lineStart(),f.point(I,N));else if(Tt&&O)f.point(I,N);else{var U=[T=Math.max(rr,Math.min(qo,T)),E=Math.max(rr,Math.min(qo,E))],at=[I=Math.max(rr,Math.min(qo,I)),N=Math.max(rr,Math.min(qo,N))];ma(U,at,s,n,l,o)?(O||(f.lineStart(),f.point(U[0],U[1])),f.point(at[0],at[1]),Tt||f.lineEnd(),G=!1):Tt&&(f.lineStart(),f.point(I,N),G=!1)}T=I,E=N,O=Tt}return e(Q,"linePoint"),J}}e(Ye,"clipRectangle");function _a(){var s=0,n=0,l=960,o=500,i,a,u;return u={stream:e(function(p){return i&&a===p?i:i=Ye(s,n,l,o)(a=p)},"stream"),extent:e(function(p){return arguments.length?(s=+p[0][0],n=+p[0][1],l=+p[1][0],o=+p[1][1],i=a=null,u):[[s,n],[l,o]]},"extent")}}e(_a,"default");var ga=oe(),ya,sr,ar,Yi={sphere:dt,point:dt,lineStart:fd,lineEnd:dt,polygonStart:dt,polygonEnd:dt};function fd(){Yi.point=_d,Yi.lineEnd=md}e(fd,"lengthLineStart");function md(){Yi.point=Yi.lineEnd=dt}e(md,"lengthLineEnd");function _d(s,n){s*=H,n*=H,ya=s,sr=A(n),ar=R(n),Yi.point=gd}e(_d,"lengthPointFirst");function gd(s,n){s*=H,n*=H;var l=A(n),o=R(n),i=j(s-ya),a=R(i),u=A(i),p=o*u,g=ar*l-sr*o*a,d=sr*l+ar*o*a;ga.add(yt(ht(p*p+g*g),d)),ya=s,sr=l,ar=o}e(gd,"lengthPoint");function Yo(s){return ga.reset(),It(s,Yi),+ga}e(Yo,"default");var va=[null,null],yd={type:"LineString",coordinates:va};function Mi(s,n){return va[0]=s,va[1]=n,Yo(yd)}e(Mi,"default");var vu={Feature:e(function(s,n){return lr(s.geometry,n)},"Feature"),FeatureCollection:e(function(s,n){for(var l=s.features,o=-1,i=l.length;++o<i;)if(lr(l[o].geometry,n))return!0;return!1},"FeatureCollection")},bu={Sphere:e(function(){return!0},"Sphere"),Point:e(function(s,n){return xu(s.coordinates,n)},"Point"),MultiPoint:e(function(s,n){for(var l=s.coordinates,o=-1,i=l.length;++o<i;)if(xu(l[o],n))return!0;return!1},"MultiPoint"),LineString:e(function(s,n){return Lu(s.coordinates,n)},"LineString"),MultiLineString:e(function(s,n){for(var l=s.coordinates,o=-1,i=l.length;++o<i;)if(Lu(l[o],n))return!0;return!1},"MultiLineString"),Polygon:e(function(s,n){return wu(s.coordinates,n)},"Polygon"),MultiPolygon:e(function(s,n){for(var l=s.coordinates,o=-1,i=l.length;++o<i;)if(wu(l[o],n))return!0;return!1},"MultiPolygon"),GeometryCollection:e(function(s,n){for(var l=s.geometries,o=-1,i=l.length;++o<i;)if(lr(l[o],n))return!0;return!1},"GeometryCollection")};function lr(s,n){return s&&bu.hasOwnProperty(s.type)?bu[s.type](s,n):!1}e(lr,"containsGeometry");function xu(s,n){return Mi(s,n)===0}e(xu,"containsPoint");function Lu(s,n){for(var l,o,i,a=0,u=s.length;a<u;a++){if(o=Mi(s[a],n),o===0||a>0&&(i=Mi(s[a],s[a-1]),i>0&&l<=i&&o<=i&&(l+o-i)*(1-Math.pow((l-o)/i,2))<bi*i))return!0;l=o}return!1}e(Lu,"containsLine");function wu(s,n){return!!Uo(s.map(vd),Cu(n))}e(wu,"containsPolygon");function vd(s){return s=s.map(Cu),s.pop(),s}e(vd,"ringRadians");function Cu(s){return[s[0]*H,s[1]*H]}e(Cu,"pointRadians");function ba(s,n){return(s&&vu.hasOwnProperty(s.type)?vu[s.type]:lr)(s,n)}e(ba,"default");import{range as Xi}from"@hpcc-js/common";function ku(s,n,l){var o=Xi(s,n-Z,l).concat(n);return function(i){return o.map(function(a){return[i,a]})}}e(ku,"graticuleX");function Mu(s,n,l){var o=Xi(s,n-Z,l).concat(n);return function(i){return o.map(function(a){return[a,i]})}}e(Mu,"graticuleY");function Ji(){var s,n,l,o,i,a,u,p,g=10,d=g,f=90,_=360,b,y,x,k,C=2.5;function P(){return{type:"MultiLineString",coordinates:T()}}e(P,"graticule");function T(){return Xi(zo(o/f)*f,l,f).map(x).concat(Xi(zo(p/_)*_,u,_).map(k)).concat(Xi(zo(n/g)*g,s,g).filter(function(E){return j(E%f)>Z}).map(b)).concat(Xi(zo(a/d)*d,i,d).filter(function(E){return j(E%_)>Z}).map(y))}return e(T,"lines"),P.lines=function(){return T().map(function(E){return{type:"LineString",coordinates:E}})},P.outline=function(){return{type:"Polygon",coordinates:[x(o).concat(k(u).slice(1),x(l).reverse().slice(1),k(p).reverse().slice(1))]}},P.extent=function(E){return arguments.length?P.extentMajor(E).extentMinor(E):P.extentMinor()},P.extentMajor=function(E){return arguments.length?(o=+E[0][0],l=+E[1][0],p=+E[0][1],u=+E[1][1],o>l&&(E=o,o=l,l=E),p>u&&(E=p,p=u,u=E),P.precision(C)):[[o,p],[l,u]]},P.extentMinor=function(E){return arguments.length?(n=+E[0][0],s=+E[1][0],a=+E[0][1],i=+E[1][1],n>s&&(E=n,n=s,s=E),a>i&&(E=a,a=i,i=E),P.precision(C)):[[n,a],[s,i]]},P.step=function(E){return arguments.length?P.stepMajor(E).stepMinor(E):P.stepMinor()},P.stepMajor=function(E){return arguments.length?(f=+E[0],_=+E[1],P):[f,_]},P.stepMinor=function(E){return arguments.length?(g=+E[0],d=+E[1],P):[g,d]},P.precision=function(E){return arguments.length?(C=+E,b=ku(a,i,90),y=Mu(n,s,C),x=ku(p,u,90),k=Mu(o,l,C),P):C},P.extentMajor([[-180,-90+Z],[180,90-Z]]).extentMinor([[-180,-80-Z],[180,80+Z]])}e(Ji,"graticule");function Pu(){return Ji()()}e(Pu,"graticule10");function xa(s,n){var l=s[0]*H,o=s[1]*H,i=n[0]*H,a=n[1]*H,u=R(o),p=A(o),g=R(a),d=A(a),f=u*R(l),_=u*A(l),b=g*R(i),y=g*A(i),x=2*vt(ht(Ks(a-o)+u*g*Ks(i-l))),k=A(x),C=x?function(P){var T=A(P*=x)/k,E=A(x-P)/k,O=E*f+T*b,B=E*_+T*y,G=E*p+T*d;return[yt(B,O)*lt,yt(G,ht(O*O+B*B))*lt]}:function(){return[l*lt,o*lt]};return C.distance=x,C}e(xa,"default");function Xe(s){return s}e(Xe,"default");var La=oe(),wa=oe(),Eu,Su,Ca,ka,ai={point:dt,lineStart:dt,lineEnd:dt,polygonStart:e(function(){ai.lineStart=bd,ai.lineEnd=Ld},"polygonStart"),polygonEnd:e(function(){ai.lineStart=ai.lineEnd=ai.point=dt,La.add(j(wa)),wa.reset()},"polygonEnd"),result:e(function(){var s=La/2;return La.reset(),s},"result")};function bd(){ai.point=xd}e(bd,"areaRingStart");function xd(s,n){ai.point=Tu,Eu=Ca=s,Su=ka=n}e(xd,"areaPointFirst");function Tu(s,n){wa.add(ka*s-Ca*n),Ca=s,ka=n}e(Tu,"areaPoint");function Ld(){Tu(Eu,Su)}e(Ld,"areaRingEnd");var Ma=ai;var Ki=1/0,hr=Ki,Xo=-Ki,ur=Xo,wd={point:Cd,lineStart:dt,lineEnd:dt,polygonStart:dt,polygonEnd:dt,result:e(function(){var s=[[Ki,hr],[Xo,ur]];return Xo=ur=-(hr=Ki=1/0),s},"result")};function Cd(s,n){s<Ki&&(Ki=s),s>Xo&&(Xo=s),n<hr&&(hr=n),n>ur&&(ur=n)}e(Cd,"boundsPoint");var $i=wd;var Pa=0,Ea=0,Jo=0,cr=0,pr=0,Qi=0,Sa=0,Ta=0,Ko=0,Iu,Du,Re,Ne,Se={point:Pi,lineStart:Ou,lineEnd:zu,polygonStart:e(function(){Se.lineStart=Pd,Se.lineEnd=Ed},"polygonStart"),polygonEnd:e(function(){Se.point=Pi,Se.lineStart=Ou,Se.lineEnd=zu},"polygonEnd"),result:e(function(){var s=Ko?[Sa/Ko,Ta/Ko]:Qi?[cr/Qi,pr/Qi]:Jo?[Pa/Jo,Ea/Jo]:[NaN,NaN];return Pa=Ea=Jo=cr=pr=Qi=Sa=Ta=Ko=0,s},"result")};function Pi(s,n){Pa+=s,Ea+=n,++Jo}e(Pi,"centroidPoint");function Ou(){Se.point=kd}e(Ou,"centroidLineStart");function kd(s,n){Se.point=Md,Pi(Re=s,Ne=n)}e(kd,"centroidPointFirstLine");function Md(s,n){var l=s-Re,o=n-Ne,i=ht(l*l+o*o);cr+=i*(Re+s)/2,pr+=i*(Ne+n)/2,Qi+=i,Pi(Re=s,Ne=n)}e(Md,"centroidPointLine");function zu(){Se.point=Pi}e(zu,"centroidLineEnd");function Pd(){Se.point=Sd}e(Pd,"centroidRingStart");function Ed(){Au(Iu,Du)}e(Ed,"centroidRingEnd");function Sd(s,n){Se.point=Au,Pi(Iu=Re=s,Du=Ne=n)}e(Sd,"centroidPointFirstRing");function Au(s,n){var l=s-Re,o=n-Ne,i=ht(l*l+o*o);cr+=i*(Re+s)/2,pr+=i*(Ne+n)/2,Qi+=i,i=Ne*s-Re*n,Sa+=i*(Re+s),Ta+=i*(Ne+n),Ko+=i*3,Pi(Re=s,Ne=n)}e(Au,"centroidPointRing");var Oa=Se;function dr(s){this._context=s}e(dr,"PathContext");dr.prototype={_radius:4.5,pointRadius:e(function(s){return this._radius=s,this},"pointRadius"),polygonStart:e(function(){this._line=0},"polygonStart"),polygonEnd:e(function(){this._line=NaN},"polygonEnd"),lineStart:e(function(){this._point=0},"lineStart"),lineEnd:e(function(){this._line===0&&this._context.closePath(),this._point=NaN},"lineEnd"),point:e(function(s,n){switch(this._point){case 0:{this._context.moveTo(s,n),this._point=1;break}case 1:{this._context.lineTo(s,n);break}default:{this._context.moveTo(s+this._radius,n),this._context.arc(s,n,this._radius,0,zt);break}}},"point"),result:dt};var Ia=oe(),za,Bu,Ru,$o,Qo,fr={point:dt,lineStart:e(function(){fr.point=Td},"lineStart"),lineEnd:e(function(){za&&Nu(Bu,Ru),fr.point=dt},"lineEnd"),polygonStart:e(function(){za=!0},"polygonStart"),polygonEnd:e(function(){za=null},"polygonEnd"),result:e(function(){var s=+Ia;return Ia.reset(),s},"result")};function Td(s,n){fr.point=Nu,Bu=$o=s,Ru=Qo=n}e(Td,"lengthPointFirst");function Nu(s,n){$o-=s,Qo-=n,Ia.add(ht($o*$o+Qo*Qo)),$o=s,Qo=n}e(Nu,"lengthPoint");var Da=fr;function mr(){this._string=[]}e(mr,"PathString");mr.prototype={_radius:4.5,_circle:Zu(4.5),pointRadius:e(function(s){return(s=+s)!==this._radius&&(this._radius=s,this._circle=null),this},"pointRadius"),polygonStart:e(function(){this._line=0},"polygonStart"),polygonEnd:e(function(){this._line=NaN},"polygonEnd"),lineStart:e(function(){this._point=0},"lineStart"),lineEnd:e(function(){this._line===0&&this._string.push("Z"),this._point=NaN},"lineEnd"),point:e(function(s,n){switch(this._point){case 0:{this._string.push("M",s,",",n),this._point=1;break}case 1:{this._string.push("L",s,",",n);break}default:{this._circle==null&&(this._circle=Zu(this._radius)),this._string.push("M",s,",",n,this._circle);break}}},"point"),result:e(function(){if(this._string.length){var s=this._string.join("");return this._string=[],s}else return null},"result")};function Zu(s){return"m0,"+s+"a"+s+","+s+" 0 1,1 0,"+-2*s+"a"+s+","+s+" 0 1,1 0,"+2*s+"z"}e(Zu,"circle");function Je(s,n){var l=4.5,o,i;function a(u){return u&&(typeof l=="function"&&i.pointRadius(+l.apply(this,arguments)),It(u,o(i))),i.result()}return e(a,"path"),a.area=function(u){return It(u,o(Ma)),Ma.result()},a.measure=function(u){return It(u,o(Da)),Da.result()},a.bounds=function(u){return It(u,o($i)),$i.result()},a.centroid=function(u){return It(u,o(Oa)),Oa.result()},a.projection=function(u){return arguments.length?(o=u==null?(s=null,Xe):(s=u).stream,a):s},a.context=function(u){return arguments.length?(i=u==null?(n=null,new mr):new dr(n=u),typeof l!="function"&&i.pointRadius(l),a):n},a.pointRadius=function(u){return arguments.length?(l=typeof u=="function"?u:(i.pointRadius(+u),+u),a):l},a.projection(s).context(n)}e(Je,"default");function tn(s){return{stream:li(s)}}e(tn,"default");function li(s){return function(n){var l=new Aa;for(var o in s)l[o]=s[o];return l.stream=n,l}}e(li,"transformer");function Aa(){}e(Aa,"TransformStream");Aa.prototype={constructor:Aa,point:e(function(s,n){this.stream.point(s,n)},"point"),sphere:e(function(){this.stream.sphere()},"sphere"),lineStart:e(function(){this.stream.lineStart()},"lineStart"),lineEnd:e(function(){this.stream.lineEnd()},"lineEnd"),polygonStart:e(function(){this.stream.polygonStart()},"polygonStart"),polygonEnd:e(function(){this.stream.polygonEnd()},"polygonEnd")};function Ba(s,n,l){var o=s.clipExtent&&s.clipExtent();return s.scale(150).translate([0,0]),o!=null&&s.clipExtent(null),It(l,s.stream($i)),n($i.result()),o!=null&&s.clipExtent(o),s}e(Ba,"fit");function Ei(s,n,l){return Ba(s,function(o){var i=n[1][0]-n[0][0],a=n[1][1]-n[0][1],u=Math.min(i/(o[1][0]-o[0][0]),a/(o[1][1]-o[0][1])),p=+n[0][0]+(i-u*(o[1][0]+o[0][0]))/2,g=+n[0][1]+(a-u*(o[1][1]+o[0][1]))/2;s.scale(150*u).translate([p,g])},l)}e(Ei,"fitExtent");function to(s,n,l){return Ei(s,[[0,0],n],l)}e(to,"fitSize");function eo(s,n,l){return Ba(s,function(o){var i=+n,a=i/(o[1][0]-o[0][0]),u=(i-a*(o[1][0]+o[0][0]))/2,p=-a*o[0][1];s.scale(150*a).translate([u,p])},l)}e(eo,"fitWidth");function io(s,n,l){return Ba(s,function(o){var i=+n,a=i/(o[1][1]-o[0][1]),u=-a*o[0][0],p=(i-a*(o[1][1]+o[0][1]))/2;s.scale(150*a).translate([u,p])},l)}e(io,"fitHeight");var Fu=16,Od=R(30*H);function _r(s,n){return+n?Id(s,n):zd(s)}e(_r,"default");function zd(s){return li({point:e(function(n,l){n=s(n,l),this.stream.point(n[0],n[1])},"point")})}e(zd,"resampleNone");function Id(s,n){function l(o,i,a,u,p,g,d,f,_,b,y,x,k,C){var P=d-o,T=f-i,E=P*P+T*T;if(E>4*n&&k--){var O=u+b,B=p+y,G=g+x,J=ht(O*O+B*B+G*G),st=vt(G/=J),X=j(j(G)-1)<Z||j(a-_)<Z?(a+_)/2:yt(B,O),ot=s(X,st),K=ot[0],xt=ot[1],St=K-o,Q=xt-i,I=T*St-P*Q;(I*I/E>n||j((P*St+T*Q)/E-.5)>.3||u*b+p*y+g*x<Od)&&(l(o,i,a,u,p,g,K,xt,X,O/=J,B/=J,G,k,C),C.point(K,xt),l(K,xt,X,O,B,G,d,f,_,b,y,x,k,C))}}return e(l,"resampleLineTo"),function(o){var i,a,u,p,g,d,f,_,b,y,x,k,C={point:P,lineStart:T,lineEnd:O,polygonStart:e(function(){o.polygonStart(),C.lineStart=B},"polygonStart"),polygonEnd:e(function(){o.polygonEnd(),C.lineStart=T},"polygonEnd")};function P(st,X){st=s(st,X),o.point(st[0],st[1])}e(P,"point");function T(){_=NaN,C.point=E,o.lineStart()}e(T,"lineStart");function E(st,X){var ot=we([st,X]),K=s(st,X);l(_,b,f,y,x,k,_=K[0],b=K[1],f=st,y=ot[0],x=ot[1],k=ot[2],Fu,o),o.point(_,b)}e(E,"linePoint");function O(){C.point=P,o.lineEnd()}e(O,"lineEnd");function B(){T(),C.point=G,C.lineEnd=J}e(B,"ringStart");function G(st,X){E(i=st,X),a=_,u=b,p=y,g=x,d=k,C.point=E}e(G,"ringPoint");function J(){l(_,b,f,y,x,k,a,u,i,p,g,d,Fu,o),C.lineEnd=O,O()}return e(J,"ringEnd"),C}}e(Id,"resample");var Dd=li({point:e(function(s,n){this.stream.point(s*H,n*H)},"point")});function Ad(s){return li({point:e(function(n,l){var o=s(n,l);return this.stream.point(o[0],o[1])},"point")})}e(Ad,"transformRotate");function Bd(s,n,l,o,i){function a(u,p){return u*=o,p*=i,[n+s*u,l-s*p]}return e(a,"transform"),a.invert=function(u,p){return[(u-n)/s*o,(l-p)/s*i]},a}e(Bd,"scaleTranslate");function Gu(s,n,l,o,i,a){var u=R(a),p=A(a),g=u*s,d=p*s,f=u/s,_=p/s,b=(p*l-u*n)/s,y=(p*n+u*l)/s;function x(k,C){return k*=o,C*=i,[g*k-d*C+n,l-d*k-g*C]}return e(x,"transform"),x.invert=function(k,C){return[o*(f*k-_*C+b),i*(y-_*k-f*C)]},x}e(Gu,"scaleTranslateRotate");function Dt(s){return en(function(){return s})()}e(Dt,"projection");function en(s){var n,l=150,o=480,i=250,a=0,u=0,p=0,g=0,d=0,f,_=0,b=1,y=1,x=null,k=jo,C=null,P,T,E,O=Xe,B=.5,G,J,st,X,ot;function K(I){return st(I[0]*H,I[1]*H)}e(K,"projection");function xt(I){return I=st.invert(I[0],I[1]),I&&[I[0]*lt,I[1]*lt]}e(xt,"invert"),K.stream=function(I){return X&&ot===I?X:X=Dd(Ad(f)(k(G(O(ot=I)))))},K.preclip=function(I){return arguments.length?(k=I,x=void 0,Q()):k},K.postclip=function(I){return arguments.length?(O=I,C=P=T=E=null,Q()):O},K.clipAngle=function(I){return arguments.length?(k=+I?Vo(x=I*H):(x=null,jo),Q()):x*lt},K.clipExtent=function(I){return arguments.length?(O=I==null?(C=P=T=E=null,Xe):Ye(C=+I[0][0],P=+I[0][1],T=+I[1][0],E=+I[1][1]),Q()):C==null?null:[[C,P],[T,E]]},K.scale=function(I){return arguments.length?(l=+I,St()):l},K.translate=function(I){return arguments.length?(o=+I[0],i=+I[1],St()):[o,i]},K.center=function(I){return arguments.length?(a=I[0]%360*H,u=I[1]%360*H,St()):[a*lt,u*lt]},K.rotate=function(I){return arguments.length?(p=I[0]%360*H,g=I[1]%360*H,d=I.length>2?I[2]%360*H:0,St()):[p*lt,g*lt,d*lt]},K.angle=function(I){return arguments.length?(_=I%360*H,St()):_*lt},K.reflectX=function(I){return arguments.length?(b=I?-1:1,St()):b<0},K.reflectY=function(I){return arguments.length?(y=I?-1:1,St()):y<0},K.precision=function(I){return arguments.length?(G=_r(J,B=I*I),Q()):ht(B)},K.fitExtent=function(I,N){return Ei(K,I,N)},K.fitSize=function(I,N){return to(K,I,N)},K.fitWidth=function(I,N){return eo(K,I,N)},K.fitHeight=function(I,N){return io(K,I,N)};function St(){var I=Gu(l,0,0,b,y,_).apply(null,n(a,u)),N=(_?Gu:Bd)(l,o-I[0],i-I[1],b,y,_);return f=Zo(p,g,d),J=qi(n,N),st=qi(f,J),G=_r(J,B),Q()}e(St,"recenter");function Q(){return X=ot=null,K}return e(Q,"reset"),function(){return n=s.apply(this,arguments),K.invert=n.invert&&xt,St()}}e(en,"projectionMutator");function oo(s){var n=0,l=Y/3,o=en(s),i=o(n,l);return i.parallels=function(a){return arguments.length?o(n=a[0]*H,l=a[1]*H):[n*lt,l*lt]},i}e(oo,"conicProjection");function Hu(s){var n=R(s);function l(o,i){return[o*n,A(i)/n]}return e(l,"forward"),l.invert=function(o,i){return[o/n,vt(i*n)]},l}e(Hu,"cylindricalEqualAreaRaw");function Ra(s,n){var l=A(s),o=(l+A(n))/2;if(j(o)<Z)return Hu(s);var i=1+l*(2*o-l),a=ht(i)/o;function u(p,g){var d=ht(i-2*o*A(g))/o;return[d*A(p*=o),a-d*R(p)]}return e(u,"project"),u.invert=function(p,g){var d=a-g,f=yt(p,j(d))*te(d);return d*o<0&&(f-=Y*te(p)*te(d)),[f/o,vt((i-(p*p+d*d)*o*o)/(2*o))]},u}e(Ra,"conicEqualAreaRaw");function Ce(){return oo(Ra).scale(155.424).center([0,33.6442])}e(Ce,"default");function Si(){return Ce().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}e(Si,"default");function Rd(s){var n=s.length;return{point:e(function(l,o){for(var i=-1;++i<n;)s[i].point(l,o)},"point"),sphere:e(function(){for(var l=-1;++l<n;)s[l].sphere()},"sphere"),lineStart:e(function(){for(var l=-1;++l<n;)s[l].lineStart()},"lineStart"),lineEnd:e(function(){for(var l=-1;++l<n;)s[l].lineEnd()},"lineEnd"),polygonStart:e(function(){for(var l=-1;++l<n;)s[l].polygonStart()},"polygonStart"),polygonEnd:e(function(){for(var l=-1;++l<n;)s[l].polygonEnd()},"polygonEnd")}}e(Rd,"multiplex");function Na(){var s,n,l=Si(),o,i=Ce().rotate([154,0]).center([-2,58.5]).parallels([55,65]),a,u=Ce().rotate([157,0]).center([-3,19.9]).parallels([8,18]),p,g,d={point:e(function(b,y){g=[b,y]},"point")};function f(b){var y=b[0],x=b[1];return g=null,o.point(y,x),g||(a.point(y,x),g)||(p.point(y,x),g)}e(f,"albersUsa"),f.invert=function(b){var y=l.scale(),x=l.translate(),k=(b[0]-x[0])/y,C=(b[1]-x[1])/y;return(C>=.12&&C<.234&&k>=-.425&&k<-.214?i:C>=.166&&C<.234&&k>=-.214&&k<-.115?u:l).invert(b)},f.stream=function(b){return s&&n===b?s:s=Rd([l.stream(n=b),i.stream(b),u.stream(b)])},f.precision=function(b){return arguments.length?(l.precision(b),i.precision(b),u.precision(b),_()):l.precision()},f.scale=function(b){return arguments.length?(l.scale(b),i.scale(b*.35),u.scale(b),f.translate(l.translate())):l.scale()},f.translate=function(b){if(!arguments.length)return l.translate();var y=l.scale(),x=+b[0],k=+b[1];return o=l.translate(b).clipExtent([[x-.455*y,k-.238*y],[x+.455*y,k+.238*y]]).stream(d),a=i.translate([x-.307*y,k+.201*y]).clipExtent([[x-.425*y+Z,k+.12*y+Z],[x-.214*y-Z,k+.234*y-Z]]).stream(d),p=u.translate([x-.205*y,k+.212*y]).clipExtent([[x-.214*y+Z,k+.166*y+Z],[x-.115*y-Z,k+.234*y-Z]]).stream(d),_()},f.fitExtent=function(b,y){return Ei(f,b,y)},f.fitSize=function(b,y){return to(f,b,y)},f.fitWidth=function(b,y){return eo(f,b,y)},f.fitHeight=function(b,y){return io(f,b,y)};function _(){return s=n=null,f}return e(_,"reset"),f.scale(1070)}e(Na,"default");function gr(s){return function(n,l){var o=R(n),i=R(l),a=s(o*i);return[a*i*A(n),a*A(l)]}}e(gr,"azimuthalRaw");function Ze(s){return function(n,l){var o=ht(n*n+l*l),i=s(o),a=A(i),u=R(i);return[yt(n*a,o*u),vt(o&&l*a/o)]}}e(Ze,"azimuthalInvert");var yr=gr(function(s){return ht(2/(1+s))});yr.invert=Ze(function(s){return 2*vt(s/2)});function Za(){return Dt(yr).scale(124.75).clipAngle(180-.001)}e(Za,"default");var vr=gr(function(s){return(s=qn(s))&&s/A(s)});vr.invert=Ze(function(s){return s});function Fa(){return Dt(vr).scale(79.4188).clipAngle(180-.001)}e(Fa,"default");function Ti(s,n){return[s,xi(ji((gt+n)/2))]}e(Ti,"mercatorRaw");Ti.invert=function(s,n){return[s,2*Le(jn(n))-gt]};function on(){return Ga(Ti).scale(961/zt)}e(on,"default");function Ga(s){var n=Dt(s),l=n.center,o=n.scale,i=n.translate,a=n.clipExtent,u=null,p,g,d;n.scale=function(_){return arguments.length?(o(_),f()):o()},n.translate=function(_){return arguments.length?(i(_),f()):i()},n.center=function(_){return arguments.length?(l(_),f()):l()},n.clipExtent=function(_){return arguments.length?(_==null?u=p=g=d=null:(u=+_[0][0],p=+_[0][1],g=+_[1][0],d=+_[1][1]),f()):u==null?null:[[u,p],[g,d]]};function f(){var _=Y*o(),b=n(Fo(n.rotate()).invert([0,0]));return a(u==null?[[b[0]-_,b[1]-_],[b[0]+_,b[1]+_]]:s===Ti?[[Math.max(b[0]-_,u),p],[Math.min(b[0]+_,g),d]]:[[u,Math.max(b[1]-_,p)],[g,Math.min(b[1]+_,d)]])}return e(f,"reclip"),f()}e(Ga,"mercatorProjection");function br(s){return ji((gt+s)/2)}e(br,"tany");function Ha(s,n){var l=R(s),o=s===n?A(s):xi(l/R(n))/xi(br(n)/br(s)),i=l*Vn(br(s),o)/o;if(!o)return Ti;function a(u,p){i>0?p<-gt+Z&&(p=-gt+Z):p>gt-Z&&(p=gt-Z);var g=i/Vn(br(p),o);return[g*A(o*u),i-g*R(o*u)]}return e(a,"project"),a.invert=function(u,p){var g=i-p,d=te(o)*ht(u*u+g*g),f=yt(u,j(g))*te(g);return g*o<0&&(f-=Y*te(u)*te(g)),[f/o,2*Le(Vn(i/d,1/o))-gt]},a}e(Ha,"conicConformalRaw");function Ua(){return oo(Ha).scale(109.5).parallels([30,30])}e(Ua,"default");function Oi(s,n){return[s,n]}e(Oi,"equirectangularRaw");Oi.invert=Oi;function Wa(){return Dt(Oi).scale(152.63)}e(Wa,"default");function ja(s,n){var l=R(s),o=s===n?A(s):(l-R(n))/(n-s),i=l/o+s;if(j(o)<Z)return Oi;function a(u,p){var g=i-p,d=o*u;return[g*A(d),i-g*R(d)]}return e(a,"project"),a.invert=function(u,p){var g=i-p,d=yt(u,j(g))*te(g);return g*o<0&&(d-=Y*te(u)*te(g)),[d/o,i-te(o)*ht(u*u+g*g)]},a}e(ja,"conicEquidistantRaw");function Va(){return oo(ja).scale(131.154).center([0,13.9389])}e(Va,"default");var nn=1.340264,rn=-.081106,sn=893e-6,an=.003796,xr=ht(3)/2,Nd=12;function Lr(s,n){var l=vt(xr*A(n)),o=l*l,i=o*o*o;return[s*R(l)/(xr*(nn+3*rn*o+i*(7*sn+9*an*o))),l*(nn+rn*o+i*(sn+an*o))]}e(Lr,"equalEarthRaw");Lr.invert=function(s,n){for(var l=n,o=l*l,i=o*o*o,a=0,u,p,g;a<Nd&&(p=l*(nn+rn*o+i*(sn+an*o))-n,g=nn+3*rn*o+i*(7*sn+9*an*o),l-=u=p/g,o=l*l,i=o*o*o,!(j(u)<bi));++a);return[xr*s*(nn+3*rn*o+i*(7*sn+9*an*o))/R(l),vt(A(l)/xr)]};function qa(){return Dt(Lr).scale(177.158)}e(qa,"default");function wr(s,n){var l=R(n),o=R(s)*l;return[l*A(s)/o,A(n)/o]}e(wr,"gnomonicRaw");wr.invert=Ze(Le);function Ya(){return Dt(wr).scale(144.049).clipAngle(60)}e(Ya,"default");function Xa(){var s=1,n=0,l=0,o=1,i=1,a=0,u,p,g=null,d,f,_,b=1,y=1,x=li({point:e(function(O,B){var G=E([O,B]);this.stream.point(G[0],G[1])},"point")}),k=Xe,C,P;function T(){return b=s*o,y=s*i,C=P=null,E}e(T,"reset");function E(O){var B=O[0]*b,G=O[1]*y;if(a){var J=G*u-B*p;B=B*u+G*p,G=J}return[B+n,G+l]}return e(E,"projection"),E.invert=function(O){var B=O[0]-n,G=O[1]-l;if(a){var J=G*u+B*p;B=B*u-G*p,G=J}return[B/b,G/y]},E.stream=function(O){return C&&P===O?C:C=x(k(P=O))},E.postclip=function(O){return arguments.length?(k=O,g=d=f=_=null,T()):k},E.clipExtent=function(O){return arguments.length?(k=O==null?(g=d=f=_=null,Xe):Ye(g=+O[0][0],d=+O[0][1],f=+O[1][0],_=+O[1][1]),T()):g==null?null:[[g,d],[f,_]]},E.scale=function(O){return arguments.length?(s=+O,T()):s},E.translate=function(O){return arguments.length?(n=+O[0],l=+O[1],T()):[n,l]},E.angle=function(O){return arguments.length?(a=O%360*H,p=A(a),u=R(a),T()):a*lt},E.reflectX=function(O){return arguments.length?(o=O?-1:1,T()):o<0},E.reflectY=function(O){return arguments.length?(i=O?-1:1,T()):i<0},E.fitExtent=function(O,B){return Ei(E,O,B)},E.fitSize=function(O,B){return to(E,O,B)},E.fitWidth=function(O,B){return eo(E,O,B)},E.fitHeight=function(O,B){return io(E,O,B)},E}e(Xa,"default");function Cr(s,n){var l=n*n,o=l*l;return[s*(.8707-.131979*l+o*(-.013791+o*(.003971*l-.001529*o))),n*(1.007226+l*(.015085+o*(-.044475+.028874*l-.005916*o)))]}e(Cr,"naturalEarth1Raw");Cr.invert=function(s,n){var l=n,o=25,i;do{var a=l*l,u=a*a;l-=i=(l*(1.007226+a*(.015085+u*(-.044475+.028874*a-.005916*u)))-n)/(1.007226+a*(.015085*3+u*(-.044475*7+.028874*9*a-.005916*11*u)))}while(j(i)>Z&&--o>0);return[s/(.8707+(a=l*l)*(-.131979+a*(-.013791+a*a*a*(.003971-.001529*a)))),l]};function Ja(){return Dt(Cr).scale(175.295)}e(Ja,"default");function kr(s,n){return[R(n)*A(s),A(n)]}e(kr,"orthographicRaw");kr.invert=Ze(vt);function Ka(){return Dt(kr).scale(249.5).clipAngle(90+Z)}e(Ka,"default");function Mr(s,n){var l=R(n),o=1+R(s)*l;return[l*A(s)/o,A(n)/o]}e(Mr,"stereographicRaw");Mr.invert=Ze(function(s){return 2*Le(s)});function $a(){return Dt(Mr).scale(250).clipAngle(142)}e($a,"default");function Pr(s,n){return[xi(ji((gt+n)/2)),-s]}e(Pr,"transverseMercatorRaw");Pr.invert=function(s,n){return[-n,2*Le(jn(s))-gt]};function Qa(){var s=Ga(Pr),n=s.center,l=s.rotate;return s.center=function(o){return arguments.length?n([-o[1],o[0]]):(o=n(),[o[1],-o[0]])},s.rotate=function(o){return arguments.length?l([o[0],o[1],o.length>2?o[2]+90:90]):(o=l(),[o[0],o[1],o[2]-90])},l([0,0,90]).scale(159.155)}e(Qa,"default");import{select as Hd}from"@hpcc-js/common";function Er(){}e(Er,"noop");var no=1/0,Sr=no,ln=-no,Tr=ln;function Zd(s,n){s<no&&(no=s),s>ln&&(ln=s),n<Sr&&(Sr=n),n>Tr&&(Tr=n)}e(Zd,"boundsPoint");var Uu={point:Zd,lineStart:Er,lineEnd:Er,polygonStart:Er,polygonEnd:Er,result(){let s=[[no,Sr],[ln,Tr]];return ln=Tr=-(Sr=no=1/0),s}};function Wu(s,n,l){let o=n[1][0]-n[0][0],i=n[1][1]-n[0][1],a=s.clipExtent&&s.clipExtent();s.scale(150).translate([0,0]),a!=null&&s.clipExtent(null),It(l,s.stream(Uu));let u=Uu.result(),p=Math.min(o/(u[1][0]-u[0][0]),i/(u[1][1]-u[0][1])),g=+n[0][0]+(o-p*(u[1][0]+u[0][0]))/2,d=+n[0][1]+(i-p*(u[1][1]+u[0][1]))/2;return a!=null&&s.clipExtent(a),s.scale(p*150).translate([g,d])}e(Wu,"fitExtent");function Fd(s,n,l){return Wu(s,[[0,0],n],l)}e(Fd,"fitSize");var ro=class s{static{e(this,"Geohash")}static base32="0123456789bcdefghjkmnpqrstuvwxyz";encode(n,l,o){if(typeof o>"u"){for(let b=1;b<=12;b++){let y=this.encode(n,l,b),x=this.decode(y);if(x.lat===n&&x.lon===l)return y}o=12}if(n=Number(n),l=Number(l),o=Number(o),isNaN(n)||isNaN(l)||isNaN(o))throw new Error("Invalid geohash");let i=0,a=0,u=!0,p="",g=-90,d=90,f=-180,_=180;for(;p.length<o;){if(u){let b=(f+_)/2;l>b?(i=i*2+1,f=b):(i=i*2,_=b)}else{let b=(g+d)/2;n>b?(i=i*2+1,g=b):(i=i*2,d=b)}u=!u,++a===5&&(p+=s.base32.charAt(i),a=0,i=0)}return p}decode(n){let l=this.bounds(n),o=l.sw.lat,i=l.sw.lon,a=l.ne.lat,u=l.ne.lon,p=(o+a)/2,g=(i+u)/2;return p=Number(p.toFixed(Math.floor(2-Math.log(a-o)/Math.LN10))),g=Number(g.toFixed(Math.floor(2-Math.log(u-i)/Math.LN10))),{lat:p,lon:g}}bounds(n){if(n.length===0)throw new Error("Invalid geohash");n=n.toLowerCase();let l=!0,o=-90,i=90,a=-180,u=180;for(let g=0;g<n.length;g++){let d=n.charAt(g),f=s.base32.indexOf(d);if(f===-1)throw new Error("Invalid geohash");for(let _=4;_>=0;_--){let b=f>>_&1;if(l){let y=(a+u)/2;b===1?a=y:u=y}else{let y=(o+i)/2;b===1?o=y:i=y}l=!l}}return{sw:{lat:o,lon:a},ne:{lat:i,lon:u}}}adjacent(n,l){if(n=n.toLowerCase(),l=l.toLowerCase(),n.length===0)throw new Error("Invalid geohash");if("nsew".indexOf(l)===-1)throw new Error("Invalid direction");let o={n:["p0r21436x8zb9dcf5h7kjnmqesgutwvy","bc01fg45238967deuvhjyznpkmstqrwx"],s:["14365h7k9dcfesgujnmqp0r2twvyx8zb","238967debc01fg45kmstqrwxuvhjyznp"],e:["bc01fg45238967deuvhjyznpkmstqrwx","p0r21436x8zb9dcf5h7kjnmqesgutwvy"],w:["238967debc01fg45kmstqrwxuvhjyznp","14365h7k9dcfesgujnmqp0r2twvyx8zb"]},i={n:["prxz","bcfguvyz"],s:["028b","0145hjnp"],e:["bcfguvyz","prxz"],w:["0145hjnp","028b"]},a=n.slice(-1),u=n.slice(0,-1),p=n.length%2;return i[l][p].indexOf(a)!==-1&&u!==""&&(u=this.adjacent(u,l)),u+s.base32.charAt(o[l][p].indexOf(a))}neighbours(n){return{n:this.adjacent(n,"n"),ne:this.adjacent(this.adjacent(n,"n"),"e"),e:this.adjacent(n,"e"),se:this.adjacent(this.adjacent(n,"s"),"e"),s:this.adjacent(n,"s"),sw:this.adjacent(this.adjacent(n,"s"),"w"),w:this.adjacent(n,"w"),nw:this.adjacent(this.adjacent(n,"n"),"w")}}contained(n,l,o,i,a){(isNaN(l)||l>=90)&&(l=89),(isNaN(o)||o>180)&&(o=180),(isNaN(i)||i<=-90)&&(i=-89),(isNaN(n)||n<-180)&&(n=-180),a=a||1;let u=this.encode(l,n,a),p=this.encode(l,o,a),g=this.encode(i,o,a),d=u,f=0,_=-1,b=[u,g],y=this.adjacent(u,"e");for(;y!==g;)b.push(y),++f,y===p||_===f?(_=f+1,f=0,y=this.adjacent(d,"s"),d=y):y=this.adjacent(y,"e");return b}calculateWidthDegrees(n){let l;return n%2===0?l=-1:l=-.5,180/Math.pow(2,2.5*n+l)}width(n){let l=n%2;return 180/(2^(5*n+l)/2-1)}};function Gd(s){let n=s.length;return{point(l,o){let i=-1;for(;++i<n;)s[i].point(l,o)},sphere(){let l=-1;for(;++l<n;)s[l].sphere()},lineStart(){let l=-1;for(;++l<n;)s[l].lineStart()},lineEnd(){let l=-1;for(;++l<n;)s[l].lineEnd()},polygonStart(){let l=-1;for(;++l<n;)s[l].polygonStart()},polygonEnd(){let l=-1;for(;++l<n;)s[l].polygonEnd()}}}e(Gd,"multiplex");function ju(){let s,n,o=Si(),i,a=Ce().rotate([154,0]).center([-2,58.5]).parallels([55,65]),u,p=Ce().rotate([157,0]).center([-3,19.9]).parallels([8,18]),g,d=Ce().rotate([66,0]).center([0,18]).parallels([8,18]),f,_,b={point:e((k,C)=>{_=[k,C]},"point")},y=e(function(k){let C=k[0],P=k[1];return _=null,i.point(C,P),_||(u.point(C,P),_)||(g.point(C,P),_)||f.point(C,P),_},"albersUsa");y.invert=function(k){let C=o.scale(),P=o.translate(),T=(k[0]-P[0])/C,E=(k[1]-P[1])/C;return(E>=.12&&E<.234&&T>=-.425&&T<-.214?a:E>=.166&&E<.234&&T>=-.214&&T<-.115?p:E>=.204&&E<.234&&T>=.32&&T<.38?d:o).invert(k)},y.stream=function(k){return s&&n===k?s:s=Gd([o.stream(n=k),a.stream(k),p.stream(k),d.stream(k)])},y.precision=function(k){return arguments.length?(o.precision(k),a.precision(k),p.precision(k),d.precision(k),x()):o.precision()},y.scale=function(k){return arguments.length?(o.scale(k),a.scale(k*.35),p.scale(k),d.scale(k),y.translate(o.translate())):o.scale()},y.translate=function(k){if(!arguments.length)return o.translate();let C=o.scale(),P=+k[0],T=+k[1];return i=o.translate(k).clipExtent([[P-.455*C,T-.238*C],[P+.455*C,T+.238*C]]).stream(b),u=a.translate([P-.307*C,T+.201*C]).clipExtent([[P-.425*C+1e-6,T+.12*C+1e-6],[P-.214*C-1e-6,T+.234*C-1e-6]]).stream(b),g=p.translate([P-.205*C,T+.212*C]).clipExtent([[P-.214*C+1e-6,T+.166*C+1e-6],[P-.115*C-1e-6,T+.234*C-1e-6]]).stream(b),f=d.translate([P+.35*C,T+.224*C]).clipExtent([[P+.32*C,T+.204*C],[P+.38*C,T+.234*C]]).stream(b),x()},y.fitExtent=function(k,C){return Wu(y,k,C)},y.fitSize=function(k,C){return Fd(y,k,C)};function x(){return s=n=null,y}return e(x,"reset"),y.scale(1070)}e(ju,"albersUsaPr");var qu=(x=>(x[x.AzimuthalEqualArea=0]="AzimuthalEqualArea",x[x.AzimuthalEquidistant=1]="AzimuthalEquidistant",x[x.Gnomonic=2]="Gnomonic",x[x.Orthographic=3]="Orthographic",x[x.Stereographic=4]="Stereographic",x[x.AlbersUsa=5]="AlbersUsa",x[x.AlbersUsaPr=6]="AlbersUsaPr",x[x.Albers=7]="Albers",x[x.ConicConformal=8]="ConicConformal",x[x.ConicEqualArea=9]="ConicEqualArea",x[x.ConicEquidistant=10]="ConicEquidistant",x[x.Equirectangular=11]="Equirectangular",x[x.Mercator=12]="Mercator",x[x.TransverseMercator=13]="TransverseMercator",x))(qu||{}),il=[],el={};for(let s in qu)typeof s=="string"&&(il.push(s),s==="AlbersUsaPr"?el[s]=ju:el[s]=tl[`geo${s}`]);function zi(s){let n=el[s];return n?n():(console.warn("Unknown projection: "+s),on())}e(zi,"resolve");(function(){if(!document.getElementById("1fe8ba4c")){var s=document.createElement("style");s.id="1fe8ba4c",s.textContent=`.map_Layered .background {
1
+ var Up=Object.create;var Gn=Object.defineProperty;var Wp=Object.getOwnPropertyDescriptor;var jp=Object.getOwnPropertyNames;var Vp=Object.getPrototypeOf,qp=Object.prototype.hasOwnProperty;var e=(s,n)=>Gn(s,"name",{value:n,configurable:!0});var Hn=(s,n)=>()=>(n||s((n={exports:{}}).exports,n),n.exports),Hh=(s,n)=>{for(var l in n)Gn(s,l,{get:n[l],enumerable:!0})},Yp=(s,n,l,o)=>{if(n&&typeof n=="object"||typeof n=="function")for(let i of jp(n))!qp.call(s,i)&&i!==l&&Gn(s,i,{get:()=>n[i],enumerable:!(o=Wp(n,i))||o.enumerable});return s};var vi=(s,n,l)=>(l=s!=null?Up(Vp(s)):{},Yp(n||!s||!s.__esModule?Gn(l,"default",{value:s,enumerable:!0}):l,s));var ec=Hn((Qu,tc)=>{(function(s,n){if(s===null)throw new Error("Google-maps package can be used only in browser");typeof define=="function"&&define.amd?define(n):typeof Qu=="object"?tc.exports=n():s.GoogleMapsLoader=n()})(typeof window<"u"?window:null,function(){"use strict";var s="3.31",n=null,l=null,o=!1,i=[],a=[],u=null,p={};p.URL="https://maps.googleapis.com/maps/api/js",p.KEY=null,p.LIBRARIES=[],p.CLIENT=null,p.CHANNEL=null,p.LANGUAGE=null,p.REGION=null,p.VERSION=s,p.WINDOW_CALLBACK_NAME="__google_maps_api_provider_initializator__",p._googleMockApiObject={},p.load=function(d){l===null?o===!0?d&&i.push(d):(o=!0,window[p.WINDOW_CALLBACK_NAME]=function(){g(d)},p.createLoader()):d&&d(l)},p.createLoader=function(){n=document.createElement("script"),n.type="text/javascript",n.src=p.createUrl(),document.body.appendChild(n)},p.isLoaded=function(){return l!==null},p.createUrl=function(){var d=p.URL;return d+="?callback="+p.WINDOW_CALLBACK_NAME,p.KEY&&(d+="&key="+p.KEY),p.LIBRARIES.length>0&&(d+="&libraries="+p.LIBRARIES.join(",")),p.CLIENT&&(d+="&client="+p.CLIENT),p.CHANNEL&&(d+="&channel="+p.CHANNEL),p.LANGUAGE&&(d+="&language="+p.LANGUAGE),p.REGION&&(d+="&region="+p.REGION),p.VERSION&&(d+="&v="+p.VERSION),d},p.release=function(d){var f=e(function(){p.KEY=null,p.LIBRARIES=[],p.CLIENT=null,p.CHANNEL=null,p.LANGUAGE=null,p.REGION=null,p.VERSION=s,l=null,o=!1,i=[],a=[],typeof window.google<"u"&&delete window.google,typeof window[p.WINDOW_CALLBACK_NAME]<"u"&&delete window[p.WINDOW_CALLBACK_NAME],u!==null&&(p.createLoader=u,u=null),n!==null&&(n.parentElement.removeChild(n),n=null),d&&d()},"release");o?p.load(function(){f()}):f()},p.onLoad=function(d){a.push(d)},p.makeMock=function(){u=p.createLoader,p.createLoader=function(){window.google=p._googleMockApiObject,window[p.WINDOW_CALLBACK_NAME]()}};var g=e(function(d){var f;for(o=!1,l===null&&(l=window.google),f=0;f<a.length;f++)a[f](l);for(d&&d(l),f=0;f<i.length;f++)i[f](l);i=[]},"ready");return p})});var dn=Hn((Hr,ac)=>{(function(s,n){typeof Hr=="object"&&typeof ac<"u"?n(Hr):typeof define=="function"&&define.amd?define(["exports"],n):(s=typeof globalThis<"u"?globalThis:s||self,n(s.leaflet={}))})(Hr,function(s){"use strict";var n="1.9.4";function l(t){var r,h,c,m;for(h=1,c=arguments.length;h<c;h++){m=arguments[h];for(r in m)t[r]=m[r]}return t}e(l,"extend");var o=Object.create||function(){function t(){}return e(t,"F"),function(r){return t.prototype=r,new t}}();function i(t,r){var h=Array.prototype.slice;if(t.bind)return t.bind.apply(t,h.call(arguments,1));var c=h.call(arguments,2);return function(){return t.apply(r,c.length?c.concat(h.call(arguments)):arguments)}}e(i,"bind");var a=0;function u(t){return"_leaflet_id"in t||(t._leaflet_id=++a),t._leaflet_id}e(u,"stamp");function p(t,r,h){var c,m,v,w;return w=e(function(){c=!1,m&&(v.apply(h,m),m=!1)},"later"),v=e(function(){c?m=arguments:(t.apply(h,arguments),setTimeout(w,r),c=!0)},"wrapperFn"),v}e(p,"throttle");function g(t,r,h){var c=r[1],m=r[0],v=c-m;return t===c&&h?t:((t-m)%v+v)%v+m}e(g,"wrapNum");function d(){return!1}e(d,"falseFn");function f(t,r){if(r===!1)return t;var h=Math.pow(10,r===void 0?6:r);return Math.round(t*h)/h}e(f,"formatNum");function _(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}e(_,"trim");function b(t){return _(t).split(/\s+/)}e(b,"splitWords");function y(t,r){Object.prototype.hasOwnProperty.call(t,"options")||(t.options=t.options?o(t.options):{});for(var h in r)t.options[h]=r[h];return t.options}e(y,"setOptions");function x(t,r,h){var c=[];for(var m in t)c.push(encodeURIComponent(h?m.toUpperCase():m)+"="+encodeURIComponent(t[m]));return(!r||r.indexOf("?")===-1?"?":"&")+c.join("&")}e(x,"getParamString");var k=/\{ *([\w_ -]+) *\}/g;function C(t,r){return t.replace(k,function(h,c){var m=r[c];if(m===void 0)throw new Error("No value provided for variable "+h);return typeof m=="function"&&(m=m(r)),m})}e(C,"template");var P=Array.isArray||function(t){return Object.prototype.toString.call(t)==="[object Array]"};function T(t,r){for(var h=0;h<t.length;h++)if(t[h]===r)return h;return-1}e(T,"indexOf");var E="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function O(t){return window["webkit"+t]||window["moz"+t]||window["ms"+t]}e(O,"getPrefixed");var B=0;function G(t){var r=+new Date,h=Math.max(0,16-(r-B));return B=r+h,window.setTimeout(t,h)}e(G,"timeoutDefer");var J=window.requestAnimationFrame||O("RequestAnimationFrame")||G,st=window.cancelAnimationFrame||O("CancelAnimationFrame")||O("CancelRequestAnimationFrame")||function(t){window.clearTimeout(t)};function X(t,r,h){if(h&&J===G)t.call(r);else return J.call(window,i(t,r))}e(X,"requestAnimFrame");function ot(t){t&&st.call(window,t)}e(ot,"cancelAnimFrame");var K={__proto__:null,extend:l,create:o,bind:i,get lastId(){return a},stamp:u,throttle:p,wrapNum:g,falseFn:d,formatNum:f,trim:_,splitWords:b,setOptions:y,getParamString:x,template:C,isArray:P,indexOf:T,emptyImageUrl:E,requestFn:J,cancelFn:st,requestAnimFrame:X,cancelAnimFrame:ot};function xt(){}e(xt,"Class"),xt.extend=function(t){var r=e(function(){y(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},"NewClass"),h=r.__super__=this.prototype,c=o(h);c.constructor=r,r.prototype=c;for(var m in this)Object.prototype.hasOwnProperty.call(this,m)&&m!=="prototype"&&m!=="__super__"&&(r[m]=this[m]);return t.statics&&l(r,t.statics),t.includes&&(St(t.includes),l.apply(null,[c].concat(t.includes))),l(c,t),delete c.statics,delete c.includes,c.options&&(c.options=h.options?o(h.options):{},l(c.options,t.options)),c._initHooks=[],c.callInitHooks=function(){if(!this._initHooksCalled){h.callInitHooks&&h.callInitHooks.call(this),this._initHooksCalled=!0;for(var v=0,w=c._initHooks.length;v<w;v++)c._initHooks[v].call(this)}},r},xt.include=function(t){var r=this.prototype.options;return l(this.prototype,t),t.options&&(this.prototype.options=r,this.mergeOptions(t.options)),this},xt.mergeOptions=function(t){return l(this.prototype.options,t),this},xt.addInitHook=function(t){var r=Array.prototype.slice.call(arguments,1),h=typeof t=="function"?t:function(){this[t].apply(this,r)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(h),this};function St(t){if(!(typeof L>"u"||!L||!L.Mixin)){t=P(t)?t:[t];for(var r=0;r<t.length;r++)t[r]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",new Error().stack)}}e(St,"checkDeprecatedMixinEvents");var Q={on:e(function(t,r,h){if(typeof t=="object")for(var c in t)this._on(c,t[c],r);else{t=b(t);for(var m=0,v=t.length;m<v;m++)this._on(t[m],r,h)}return this},"on"),off:e(function(t,r,h){if(!arguments.length)delete this._events;else if(typeof t=="object")for(var c in t)this._off(c,t[c],r);else{t=b(t);for(var m=arguments.length===1,v=0,w=t.length;v<w;v++)m?this._off(t[v]):this._off(t[v],r,h)}return this},"off"),_on:e(function(t,r,h,c){if(typeof r!="function"){console.warn("wrong listener type: "+typeof r);return}if(this._listens(t,r,h)===!1){h===this&&(h=void 0);var m={fn:r,ctx:h};c&&(m.once=!0),this._events=this._events||{},this._events[t]=this._events[t]||[],this._events[t].push(m)}},"_on"),_off:e(function(t,r,h){var c,m,v;if(this._events&&(c=this._events[t],!!c)){if(arguments.length===1){if(this._firingCount)for(m=0,v=c.length;m<v;m++)c[m].fn=d;delete this._events[t];return}if(typeof r!="function"){console.warn("wrong listener type: "+typeof r);return}var w=this._listens(t,r,h);if(w!==!1){var M=c[w];this._firingCount&&(M.fn=d,this._events[t]=c=c.slice()),c.splice(w,1)}}},"_off"),fire:e(function(t,r,h){if(!this.listens(t,h))return this;var c=l({},r,{type:t,target:this,sourceTarget:r&&r.sourceTarget||this});if(this._events){var m=this._events[t];if(m){this._firingCount=this._firingCount+1||1;for(var v=0,w=m.length;v<w;v++){var M=m[v],S=M.fn;M.once&&this.off(t,S,M.ctx),S.call(M.ctx||this,c)}this._firingCount--}}return h&&this._propagateEvent(c),this},"fire"),listens:e(function(t,r,h,c){typeof t!="string"&&console.warn('"string" type argument expected');var m=r;typeof r!="function"&&(c=!!r,m=void 0,h=void 0);var v=this._events&&this._events[t];if(v&&v.length&&this._listens(t,m,h)!==!1)return!0;if(c){for(var w in this._eventParents)if(this._eventParents[w].listens(t,r,h,c))return!0}return!1},"listens"),_listens:e(function(t,r,h){if(!this._events)return!1;var c=this._events[t]||[];if(!r)return!!c.length;h===this&&(h=void 0);for(var m=0,v=c.length;m<v;m++)if(c[m].fn===r&&c[m].ctx===h)return m;return!1},"_listens"),once:e(function(t,r,h){if(typeof t=="object")for(var c in t)this._on(c,t[c],r,!0);else{t=b(t);for(var m=0,v=t.length;m<v;m++)this._on(t[m],r,h,!0)}return this},"once"),addEventParent:e(function(t){return this._eventParents=this._eventParents||{},this._eventParents[u(t)]=t,this},"addEventParent"),removeEventParent:e(function(t){return this._eventParents&&delete this._eventParents[u(t)],this},"removeEventParent"),_propagateEvent:e(function(t){for(var r in this._eventParents)this._eventParents[r].fire(t.type,l({layer:t.target,propagatedFrom:t.target},t),!0)},"_propagateEvent")};Q.addEventListener=Q.on,Q.removeEventListener=Q.clearAllEventListeners=Q.off,Q.addOneTimeEventListener=Q.once,Q.fireEvent=Q.fire,Q.hasEventListeners=Q.listens;var I=xt.extend(Q);function N(t,r,h){this.x=h?Math.round(t):t,this.y=h?Math.round(r):r}e(N,"Point");var Tt=Math.trunc||function(t){return t>0?Math.floor(t):Math.ceil(t)};N.prototype={clone:e(function(){return new N(this.x,this.y)},"clone"),add:e(function(t){return this.clone()._add(U(t))},"add"),_add:e(function(t){return this.x+=t.x,this.y+=t.y,this},"_add"),subtract:e(function(t){return this.clone()._subtract(U(t))},"subtract"),_subtract:e(function(t){return this.x-=t.x,this.y-=t.y,this},"_subtract"),divideBy:e(function(t){return this.clone()._divideBy(t)},"divideBy"),_divideBy:e(function(t){return this.x/=t,this.y/=t,this},"_divideBy"),multiplyBy:e(function(t){return this.clone()._multiplyBy(t)},"multiplyBy"),_multiplyBy:e(function(t){return this.x*=t,this.y*=t,this},"_multiplyBy"),scaleBy:e(function(t){return new N(this.x*t.x,this.y*t.y)},"scaleBy"),unscaleBy:e(function(t){return new N(this.x/t.x,this.y/t.y)},"unscaleBy"),round:e(function(){return this.clone()._round()},"round"),_round:e(function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},"_round"),floor:e(function(){return this.clone()._floor()},"floor"),_floor:e(function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},"_floor"),ceil:e(function(){return this.clone()._ceil()},"ceil"),_ceil:e(function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},"_ceil"),trunc:e(function(){return this.clone()._trunc()},"trunc"),_trunc:e(function(){return this.x=Tt(this.x),this.y=Tt(this.y),this},"_trunc"),distanceTo:e(function(t){t=U(t);var r=t.x-this.x,h=t.y-this.y;return Math.sqrt(r*r+h*h)},"distanceTo"),equals:e(function(t){return t=U(t),t.x===this.x&&t.y===this.y},"equals"),contains:e(function(t){return t=U(t),Math.abs(t.x)<=Math.abs(this.x)&&Math.abs(t.y)<=Math.abs(this.y)},"contains"),toString:e(function(){return"Point("+f(this.x)+", "+f(this.y)+")"},"toString")};function U(t,r,h){return t instanceof N?t:P(t)?new N(t[0],t[1]):t==null?t:typeof t=="object"&&"x"in t&&"y"in t?new N(t.x,t.y):new N(t,r,h)}e(U,"toPoint");function at(t,r){if(t)for(var h=r?[t,r]:t,c=0,m=h.length;c<m;c++)this.extend(h[c])}e(at,"Bounds"),at.prototype={extend:e(function(t){var r,h;if(!t)return this;if(t instanceof N||typeof t[0]=="number"||"x"in t)r=h=U(t);else if(t=At(t),r=t.min,h=t.max,!r||!h)return this;return!this.min&&!this.max?(this.min=r.clone(),this.max=h.clone()):(this.min.x=Math.min(r.x,this.min.x),this.max.x=Math.max(h.x,this.max.x),this.min.y=Math.min(r.y,this.min.y),this.max.y=Math.max(h.y,this.max.y)),this},"extend"),getCenter:e(function(t){return U((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,t)},"getCenter"),getBottomLeft:e(function(){return U(this.min.x,this.max.y)},"getBottomLeft"),getTopRight:e(function(){return U(this.max.x,this.min.y)},"getTopRight"),getTopLeft:e(function(){return this.min},"getTopLeft"),getBottomRight:e(function(){return this.max},"getBottomRight"),getSize:e(function(){return this.max.subtract(this.min)},"getSize"),contains:e(function(t){var r,h;return typeof t[0]=="number"||t instanceof N?t=U(t):t=At(t),t instanceof at?(r=t.min,h=t.max):r=h=t,r.x>=this.min.x&&h.x<=this.max.x&&r.y>=this.min.y&&h.y<=this.max.y},"contains"),intersects:e(function(t){t=At(t);var r=this.min,h=this.max,c=t.min,m=t.max,v=m.x>=r.x&&c.x<=h.x,w=m.y>=r.y&&c.y<=h.y;return v&&w},"intersects"),overlaps:e(function(t){t=At(t);var r=this.min,h=this.max,c=t.min,m=t.max,v=m.x>r.x&&c.x<h.x,w=m.y>r.y&&c.y<h.y;return v&&w},"overlaps"),isValid:e(function(){return!!(this.min&&this.max)},"isValid"),pad:e(function(t){var r=this.min,h=this.max,c=Math.abs(r.x-h.x)*t,m=Math.abs(r.y-h.y)*t;return At(U(r.x-c,r.y-m),U(h.x+c,h.y+m))},"pad"),equals:e(function(t){return t?(t=At(t),this.min.equals(t.getTopLeft())&&this.max.equals(t.getBottomRight())):!1},"equals")};function At(t,r){return!t||t instanceof at?t:new at(t,r)}e(At,"toBounds");function Ct(t,r){if(t)for(var h=r?[t,r]:t,c=0,m=h.length;c<m;c++)this.extend(h[c])}e(Ct,"LatLngBounds"),Ct.prototype={extend:e(function(t){var r=this._southWest,h=this._northEast,c,m;if(t instanceof nt)c=t,m=t;else if(t instanceof Ct){if(c=t._southWest,m=t._northEast,!c||!m)return this}else return t?this.extend(it(t)||_t(t)):this;return!r&&!h?(this._southWest=new nt(c.lat,c.lng),this._northEast=new nt(m.lat,m.lng)):(r.lat=Math.min(c.lat,r.lat),r.lng=Math.min(c.lng,r.lng),h.lat=Math.max(m.lat,h.lat),h.lng=Math.max(m.lng,h.lng)),this},"extend"),pad:e(function(t){var r=this._southWest,h=this._northEast,c=Math.abs(r.lat-h.lat)*t,m=Math.abs(r.lng-h.lng)*t;return new Ct(new nt(r.lat-c,r.lng-m),new nt(h.lat+c,h.lng+m))},"pad"),getCenter:e(function(){return new nt((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},"getCenter"),getSouthWest:e(function(){return this._southWest},"getSouthWest"),getNorthEast:e(function(){return this._northEast},"getNorthEast"),getNorthWest:e(function(){return new nt(this.getNorth(),this.getWest())},"getNorthWest"),getSouthEast:e(function(){return new nt(this.getSouth(),this.getEast())},"getSouthEast"),getWest:e(function(){return this._southWest.lng},"getWest"),getSouth:e(function(){return this._southWest.lat},"getSouth"),getEast:e(function(){return this._northEast.lng},"getEast"),getNorth:e(function(){return this._northEast.lat},"getNorth"),contains:e(function(t){typeof t[0]=="number"||t instanceof nt||"lat"in t?t=it(t):t=_t(t);var r=this._southWest,h=this._northEast,c,m;return t instanceof Ct?(c=t.getSouthWest(),m=t.getNorthEast()):c=m=t,c.lat>=r.lat&&m.lat<=h.lat&&c.lng>=r.lng&&m.lng<=h.lng},"contains"),intersects:e(function(t){t=_t(t);var r=this._southWest,h=this._northEast,c=t.getSouthWest(),m=t.getNorthEast(),v=m.lat>=r.lat&&c.lat<=h.lat,w=m.lng>=r.lng&&c.lng<=h.lng;return v&&w},"intersects"),overlaps:e(function(t){t=_t(t);var r=this._southWest,h=this._northEast,c=t.getSouthWest(),m=t.getNorthEast(),v=m.lat>r.lat&&c.lat<h.lat,w=m.lng>r.lng&&c.lng<h.lng;return v&&w},"overlaps"),toBBoxString:e(function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},"toBBoxString"),equals:e(function(t,r){return t?(t=_t(t),this._southWest.equals(t.getSouthWest(),r)&&this._northEast.equals(t.getNorthEast(),r)):!1},"equals"),isValid:e(function(){return!!(this._southWest&&this._northEast)},"isValid")};function _t(t,r){return t instanceof Ct?t:new Ct(t,r)}e(_t,"toLatLngBounds");function nt(t,r,h){if(isNaN(t)||isNaN(r))throw new Error("Invalid LatLng object: ("+t+", "+r+")");this.lat=+t,this.lng=+r,h!==void 0&&(this.alt=+h)}e(nt,"LatLng"),nt.prototype={equals:e(function(t,r){if(!t)return!1;t=it(t);var h=Math.max(Math.abs(this.lat-t.lat),Math.abs(this.lng-t.lng));return h<=(r===void 0?1e-9:r)},"equals"),toString:e(function(t){return"LatLng("+f(this.lat,t)+", "+f(this.lng,t)+")"},"toString"),distanceTo:e(function(t){return ii.distance(this,it(t))},"distanceTo"),wrap:e(function(){return ii.wrapLatLng(this)},"wrap"),toBounds:e(function(t){var r=180*t/40075017,h=r/Math.cos(Math.PI/180*this.lat);return _t([this.lat-r,this.lng-h],[this.lat+r,this.lng+h])},"toBounds"),clone:e(function(){return new nt(this.lat,this.lng,this.alt)},"clone")};function it(t,r,h){return t instanceof nt?t:P(t)&&typeof t[0]!="object"?t.length===3?new nt(t[0],t[1],t[2]):t.length===2?new nt(t[0],t[1]):null:t==null?t:typeof t=="object"&&"lat"in t?new nt(t.lat,"lng"in t?t.lng:t.lon,t.alt):r===void 0?null:new nt(t,r,h)}e(it,"toLatLng");var Qt={latLngToPoint:e(function(t,r){var h=this.projection.project(t),c=this.scale(r);return this.transformation._transform(h,c)},"latLngToPoint"),pointToLatLng:e(function(t,r){var h=this.scale(r),c=this.transformation.untransform(t,h);return this.projection.unproject(c)},"pointToLatLng"),project:e(function(t){return this.projection.project(t)},"project"),unproject:e(function(t){return this.projection.unproject(t)},"unproject"),scale:e(function(t){return 256*Math.pow(2,t)},"scale"),zoom:e(function(t){return Math.log(t/256)/Math.LN2},"zoom"),getProjectedBounds:e(function(t){if(this.infinite)return null;var r=this.projection.bounds,h=this.scale(t),c=this.transformation.transform(r.min,h),m=this.transformation.transform(r.max,h);return new at(c,m)},"getProjectedBounds"),infinite:!1,wrapLatLng:e(function(t){var r=this.wrapLng?g(t.lng,this.wrapLng,!0):t.lng,h=this.wrapLat?g(t.lat,this.wrapLat,!0):t.lat,c=t.alt;return new nt(h,r,c)},"wrapLatLng"),wrapLatLngBounds:e(function(t){var r=t.getCenter(),h=this.wrapLatLng(r),c=r.lat-h.lat,m=r.lng-h.lng;if(c===0&&m===0)return t;var v=t.getSouthWest(),w=t.getNorthEast(),M=new nt(v.lat-c,v.lng-m),S=new nt(w.lat-c,w.lng-m);return new Ct(M,S)},"wrapLatLngBounds")},ii=l({},Qt,{wrapLng:[-180,180],R:6371e3,distance:e(function(t,r){var h=Math.PI/180,c=t.lat*h,m=r.lat*h,v=Math.sin((r.lat-t.lat)*h/2),w=Math.sin((r.lng-t.lng)*h/2),M=v*v+Math.cos(c)*Math.cos(m)*w*w,S=2*Math.atan2(Math.sqrt(M),Math.sqrt(1-M));return this.R*S},"distance")}),zl=6378137,os={R:zl,MAX_LATITUDE:85.0511287798,project:e(function(t){var r=Math.PI/180,h=this.MAX_LATITUDE,c=Math.max(Math.min(h,t.lat),-h),m=Math.sin(c*r);return new N(this.R*t.lng*r,this.R*Math.log((1+m)/(1-m))/2)},"project"),unproject:e(function(t){var r=180/Math.PI;return new nt((2*Math.atan(Math.exp(t.y/this.R))-Math.PI/2)*r,t.x*r/this.R)},"unproject"),bounds:function(){var t=zl*Math.PI;return new at([-t,-t],[t,t])}()};function ns(t,r,h,c){if(P(t)){this._a=t[0],this._b=t[1],this._c=t[2],this._d=t[3];return}this._a=t,this._b=r,this._c=h,this._d=c}e(ns,"Transformation"),ns.prototype={transform:e(function(t,r){return this._transform(t.clone(),r)},"transform"),_transform:e(function(t,r){return r=r||1,t.x=r*(this._a*t.x+this._b),t.y=r*(this._c*t.y+this._d),t},"_transform"),untransform:e(function(t,r){return r=r||1,new N((t.x/r-this._b)/this._a,(t.y/r-this._d)/this._c)},"untransform")};function go(t,r,h,c){return new ns(t,r,h,c)}e(go,"toTransformation");var rs=l({},ii,{code:"EPSG:3857",projection:os,transformation:function(){var t=.5/(Math.PI*os.R);return go(t,.5,-t,.5)}()}),vc=l({},rs,{code:"EPSG:900913"});function Il(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}e(Il,"svgCreate");function Dl(t,r){var h="",c,m,v,w,M,S;for(c=0,v=t.length;c<v;c++){for(M=t[c],m=0,w=M.length;m<w;m++)S=M[m],h+=(m?"L":"M")+S.x+" "+S.y;h+=r?W.svg?"z":"x":""}return h||"M0 0"}e(Dl,"pointsToPath");var ss=document.documentElement.style,Ln="ActiveXObject"in window,bc=Ln&&!document.addEventListener,Al="msLaunchUri"in navigator&&!("documentMode"in document),as=Ie("webkit"),Bl=Ie("android"),Rl=Ie("android 2")||Ie("android 3"),xc=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),Lc=Bl&&Ie("Google")&&xc<537&&!("AudioNode"in window),ls=!!window.opera,Nl=!Al&&Ie("chrome"),Zl=Ie("gecko")&&!as&&!ls&&!Ln,wc=!Nl&&Ie("safari"),Fl=Ie("phantom"),Gl="OTransition"in ss,Cc=navigator.platform.indexOf("Win")===0,Hl=Ln&&"transition"in ss,hs="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!Rl,Ul="MozPerspective"in ss,kc=!window.L_DISABLE_3D&&(Hl||hs||Ul)&&!Gl&&!Fl,yo=typeof orientation<"u"||Ie("mobile"),Mc=yo&&as,Pc=yo&&hs,Wl=!window.PointerEvent&&window.MSPointerEvent,jl=!!(window.PointerEvent||Wl),Vl="ontouchstart"in window||!!window.TouchEvent,Ec=!window.L_NO_TOUCH&&(Vl||jl),Sc=yo&&ls,Tc=yo&&Zl,Oc=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,zc=function(){var t=!1;try{var r=Object.defineProperty({},"passive",{get:e(function(){t=!0},"get")});window.addEventListener("testPassiveEventSupport",d,r),window.removeEventListener("testPassiveEventSupport",d,r)}catch{}return t}(),Ic=function(){return!!document.createElement("canvas").getContext}(),us=!!(document.createElementNS&&Il("svg").createSVGRect),Dc=!!us&&function(){var t=document.createElement("div");return t.innerHTML="<svg/>",(t.firstChild&&t.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"}(),Ac=!us&&function(){try{var t=document.createElement("div");t.innerHTML='<v:shape adj="1"/>';var r=t.firstChild;return r.style.behavior="url(#default#VML)",r&&typeof r.adj=="object"}catch{return!1}}(),Bc=navigator.platform.indexOf("Mac")===0,Rc=navigator.platform.indexOf("Linux")===0;function Ie(t){return navigator.userAgent.toLowerCase().indexOf(t)>=0}e(Ie,"userAgentContains");var W={ie:Ln,ielt9:bc,edge:Al,webkit:as,android:Bl,android23:Rl,androidStock:Lc,opera:ls,chrome:Nl,gecko:Zl,safari:wc,phantom:Fl,opera12:Gl,win:Cc,ie3d:Hl,webkit3d:hs,gecko3d:Ul,any3d:kc,mobile:yo,mobileWebkit:Mc,mobileWebkit3d:Pc,msPointer:Wl,pointer:jl,touch:Ec,touchNative:Vl,mobileOpera:Sc,mobileGecko:Tc,retina:Oc,passiveEvents:zc,canvas:Ic,svg:us,vml:Ac,inlineSvg:Dc,mac:Bc,linux:Rc},ql=W.msPointer?"MSPointerDown":"pointerdown",Yl=W.msPointer?"MSPointerMove":"pointermove",Xl=W.msPointer?"MSPointerUp":"pointerup",Jl=W.msPointer?"MSPointerCancel":"pointercancel",cs={touchstart:ql,touchmove:Yl,touchend:Xl,touchcancel:Jl},Kl={touchstart:Uc,touchmove:wn,touchend:wn,touchcancel:wn},Ai={},$l=!1;function Nc(t,r,h){return r==="touchstart"&&Hc(),Kl[r]?(h=Kl[r].bind(this,h),t.addEventListener(cs[r],h,!1),h):(console.warn("wrong event specified:",r),d)}e(Nc,"addPointerListener");function Zc(t,r,h){if(!cs[r]){console.warn("wrong event specified:",r);return}t.removeEventListener(cs[r],h,!1)}e(Zc,"removePointerListener");function Fc(t){Ai[t.pointerId]=t}e(Fc,"_globalPointerDown");function Gc(t){Ai[t.pointerId]&&(Ai[t.pointerId]=t)}e(Gc,"_globalPointerMove");function Ql(t){delete Ai[t.pointerId]}e(Ql,"_globalPointerUp");function Hc(){$l||(document.addEventListener(ql,Fc,!0),document.addEventListener(Yl,Gc,!0),document.addEventListener(Xl,Ql,!0),document.addEventListener(Jl,Ql,!0),$l=!0)}e(Hc,"_addPointerDocListener");function wn(t,r){if(r.pointerType!==(r.MSPOINTER_TYPE_MOUSE||"mouse")){r.touches=[];for(var h in Ai)r.touches.push(Ai[h]);r.changedTouches=[r],t(r)}}e(wn,"_handlePointer");function Uc(t,r){r.MSPOINTER_TYPE_TOUCH&&r.pointerType===r.MSPOINTER_TYPE_TOUCH&&$t(r),wn(t,r)}e(Uc,"_onPointerStart");function Wc(t){var r={},h,c;for(c in t)h=t[c],r[c]=h&&h.bind?h.bind(t):h;return t=r,r.type="dblclick",r.detail=2,r.isTrusted=!1,r._simulated=!0,r}e(Wc,"makeDblclick");var jc=200;function Vc(t,r){t.addEventListener("dblclick",r);var h=0,c;function m(v){if(v.detail!==1){c=v.detail;return}if(!(v.pointerType==="mouse"||v.sourceCapabilities&&!v.sourceCapabilities.firesTouchEvents)){var w=nh(v);if(!(w.some(function(S){return S instanceof HTMLLabelElement&&S.attributes.for})&&!w.some(function(S){return S instanceof HTMLInputElement||S instanceof HTMLSelectElement}))){var M=Date.now();M-h<=jc?(c++,c===2&&r(Wc(v))):c=1,h=M}}}return e(m,"simDblclick"),t.addEventListener("click",m),{dblclick:r,simDblclick:m}}e(Vc,"addDoubleTapListener");function qc(t,r){t.removeEventListener("dblclick",r.dblclick),t.removeEventListener("click",r.simDblclick)}e(qc,"removeDoubleTapListener");var ps=Mn(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),vo=Mn(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),th=vo==="webkitTransition"||vo==="OTransition"?vo+"End":"transitionend";function eh(t){return typeof t=="string"?document.getElementById(t):t}e(eh,"get");function bo(t,r){var h=t.style[r]||t.currentStyle&&t.currentStyle[r];if((!h||h==="auto")&&document.defaultView){var c=document.defaultView.getComputedStyle(t,null);h=c?c[r]:null}return h==="auto"?null:h}e(bo,"getStyle");function pt(t,r,h){var c=document.createElement(t);return c.className=r||"",h&&h.appendChild(c),c}e(pt,"create$1");function kt(t){var r=t.parentNode;r&&r.removeChild(t)}e(kt,"remove");function Cn(t){for(;t.firstChild;)t.removeChild(t.firstChild)}e(Cn,"empty");function Bi(t){var r=t.parentNode;r&&r.lastChild!==t&&r.appendChild(t)}e(Bi,"toFront");function Ri(t){var r=t.parentNode;r&&r.firstChild!==t&&r.insertBefore(t,r.firstChild)}e(Ri,"toBack");function ds(t,r){if(t.classList!==void 0)return t.classList.contains(r);var h=kn(t);return h.length>0&&new RegExp("(^|\\s)"+r+"(\\s|$)").test(h)}e(ds,"hasClass");function et(t,r){if(t.classList!==void 0)for(var h=b(r),c=0,m=h.length;c<m;c++)t.classList.add(h[c]);else if(!ds(t,r)){var v=kn(t);fs(t,(v?v+" ":"")+r)}}e(et,"addClass");function Ot(t,r){t.classList!==void 0?t.classList.remove(r):fs(t,_((" "+kn(t)+" ").replace(" "+r+" "," ")))}e(Ot,"removeClass");function fs(t,r){t.className.baseVal===void 0?t.className=r:t.className.baseVal=r}e(fs,"setClass");function kn(t){return t.correspondingElement&&(t=t.correspondingElement),t.className.baseVal===void 0?t.className:t.className.baseVal}e(kn,"getClass");function ve(t,r){"opacity"in t.style?t.style.opacity=r:"filter"in t.style&&Yc(t,r)}e(ve,"setOpacity");function Yc(t,r){var h=!1,c="DXImageTransform.Microsoft.Alpha";try{h=t.filters.item(c)}catch{if(r===1)return}r=Math.round(r*100),h?(h.Enabled=r!==100,h.Opacity=r):t.style.filter+=" progid:"+c+"(opacity="+r+")"}e(Yc,"_setOpacityIE");function Mn(t){for(var r=document.documentElement.style,h=0;h<t.length;h++)if(t[h]in r)return t[h];return!1}e(Mn,"testProp");function fi(t,r,h){var c=r||new N(0,0);t.style[ps]=(W.ie3d?"translate("+c.x+"px,"+c.y+"px)":"translate3d("+c.x+"px,"+c.y+"px,0)")+(h?" scale("+h+")":"")}e(fi,"setTransform");function Bt(t,r){t._leaflet_pos=r,W.any3d?fi(t,r):(t.style.left=r.x+"px",t.style.top=r.y+"px")}e(Bt,"setPosition");function mi(t){return t._leaflet_pos||new N(0,0)}e(mi,"getPosition");var xo,Lo,ms;if("onselectstart"in document)xo=e(function(){$(window,"selectstart",$t)},"disableTextSelection"),Lo=e(function(){Lt(window,"selectstart",$t)},"enableTextSelection");else{var wo=Mn(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);xo=e(function(){if(wo){var t=document.documentElement.style;ms=t[wo],t[wo]="none"}},"disableTextSelection"),Lo=e(function(){wo&&(document.documentElement.style[wo]=ms,ms=void 0)},"enableTextSelection")}function _s(){$(window,"dragstart",$t)}e(_s,"disableImageDrag");function gs(){Lt(window,"dragstart",$t)}e(gs,"enableImageDrag");var Pn,ys;function vs(t){for(;t.tabIndex===-1;)t=t.parentNode;t.style&&(En(),Pn=t,ys=t.style.outlineStyle,t.style.outlineStyle="none",$(window,"keydown",En))}e(vs,"preventOutline");function En(){Pn&&(Pn.style.outlineStyle=ys,Pn=void 0,ys=void 0,Lt(window,"keydown",En))}e(En,"restoreOutline");function ih(t){do t=t.parentNode;while((!t.offsetWidth||!t.offsetHeight)&&t!==document.body);return t}e(ih,"getSizedParentNode");function bs(t){var r=t.getBoundingClientRect();return{x:r.width/t.offsetWidth||1,y:r.height/t.offsetHeight||1,boundingClientRect:r}}e(bs,"getScale");var Xc={__proto__:null,TRANSFORM:ps,TRANSITION:vo,TRANSITION_END:th,get:eh,getStyle:bo,create:pt,remove:kt,empty:Cn,toFront:Bi,toBack:Ri,hasClass:ds,addClass:et,removeClass:Ot,setClass:fs,getClass:kn,setOpacity:ve,testProp:Mn,setTransform:fi,setPosition:Bt,getPosition:mi,get disableTextSelection(){return xo},get enableTextSelection(){return Lo},disableImageDrag:_s,enableImageDrag:gs,preventOutline:vs,restoreOutline:En,getSizedParentNode:ih,getScale:bs};function $(t,r,h,c){if(r&&typeof r=="object")for(var m in r)Ls(t,m,r[m],h);else{r=b(r);for(var v=0,w=r.length;v<w;v++)Ls(t,r[v],h,c)}return this}e($,"on");var De="_leaflet_events";function Lt(t,r,h,c){if(arguments.length===1)oh(t),delete t[De];else if(r&&typeof r=="object")for(var m in r)ws(t,m,r[m],h);else if(r=b(r),arguments.length===2)oh(t,function(M){return T(r,M)!==-1});else for(var v=0,w=r.length;v<w;v++)ws(t,r[v],h,c);return this}e(Lt,"off");function oh(t,r){for(var h in t[De]){var c=h.split(/\d/)[0];(!r||r(c))&&ws(t,c,null,null,h)}}e(oh,"batchRemove");var xs={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function Ls(t,r,h,c){var m=r+u(h)+(c?"_"+u(c):"");if(t[De]&&t[De][m])return this;var v=e(function(M){return h.call(c||t,M||window.event)},"handler"),w=v;!W.touchNative&&W.pointer&&r.indexOf("touch")===0?v=Nc(t,r,v):W.touch&&r==="dblclick"?v=Vc(t,v):"addEventListener"in t?r==="touchstart"||r==="touchmove"||r==="wheel"||r==="mousewheel"?t.addEventListener(xs[r]||r,v,W.passiveEvents?{passive:!1}:!1):r==="mouseenter"||r==="mouseleave"?(v=e(function(M){M=M||window.event,ks(t,M)&&w(M)},"handler"),t.addEventListener(xs[r],v,!1)):t.addEventListener(r,w,!1):t.attachEvent("on"+r,v),t[De]=t[De]||{},t[De][m]=v}e(Ls,"addOne");function ws(t,r,h,c,m){m=m||r+u(h)+(c?"_"+u(c):"");var v=t[De]&&t[De][m];if(!v)return this;!W.touchNative&&W.pointer&&r.indexOf("touch")===0?Zc(t,r,v):W.touch&&r==="dblclick"?qc(t,v):"removeEventListener"in t?t.removeEventListener(xs[r]||r,v,!1):t.detachEvent("on"+r,v),t[De][m]=null}e(ws,"removeOne");function _i(t){return t.stopPropagation?t.stopPropagation():t.originalEvent?t.originalEvent._stopped=!0:t.cancelBubble=!0,this}e(_i,"stopPropagation");function Cs(t){return Ls(t,"wheel",_i),this}e(Cs,"disableScrollPropagation");function Co(t){return $(t,"mousedown touchstart dblclick contextmenu",_i),t._leaflet_disable_click=!0,this}e(Co,"disableClickPropagation");function $t(t){return t.preventDefault?t.preventDefault():t.returnValue=!1,this}e($t,"preventDefault");function gi(t){return $t(t),_i(t),this}e(gi,"stop");function nh(t){if(t.composedPath)return t.composedPath();for(var r=[],h=t.target;h;)r.push(h),h=h.parentNode;return r}e(nh,"getPropagationPath");function rh(t,r){if(!r)return new N(t.clientX,t.clientY);var h=bs(r),c=h.boundingClientRect;return new N((t.clientX-c.left)/h.x-r.clientLeft,(t.clientY-c.top)/h.y-r.clientTop)}e(rh,"getMousePosition");var Jc=W.linux&&W.chrome?window.devicePixelRatio:W.mac?window.devicePixelRatio*3:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function sh(t){return W.edge?t.wheelDeltaY/2:t.deltaY&&t.deltaMode===0?-t.deltaY/Jc:t.deltaY&&t.deltaMode===1?-t.deltaY*20:t.deltaY&&t.deltaMode===2?-t.deltaY*60:t.deltaX||t.deltaZ?0:t.wheelDelta?(t.wheelDeltaY||t.wheelDelta)/2:t.detail&&Math.abs(t.detail)<32765?-t.detail*20:t.detail?t.detail/-32765*60:0}e(sh,"getWheelDelta");function ks(t,r){var h=r.relatedTarget;if(!h)return!0;try{for(;h&&h!==t;)h=h.parentNode}catch{return!1}return h!==t}e(ks,"isExternalTarget");var Kc={__proto__:null,on:$,off:Lt,stopPropagation:_i,disableScrollPropagation:Cs,disableClickPropagation:Co,preventDefault:$t,stop:gi,getPropagationPath:nh,getMousePosition:rh,getWheelDelta:sh,isExternalTarget:ks,addListener:$,removeListener:Lt},ah=I.extend({run:e(function(t,r,h,c){this.stop(),this._el=t,this._inProgress=!0,this._duration=h||.25,this._easeOutPower=1/Math.max(c||.5,.2),this._startPos=mi(t),this._offset=r.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},"run"),stop:e(function(){this._inProgress&&(this._step(!0),this._complete())},"stop"),_animate:e(function(){this._animId=X(this._animate,this),this._step()},"_animate"),_step:e(function(t){var r=+new Date-this._startTime,h=this._duration*1e3;r<h?this._runFrame(this._easeOut(r/h),t):(this._runFrame(1),this._complete())},"_step"),_runFrame:e(function(t,r){var h=this._startPos.add(this._offset.multiplyBy(t));r&&h._round(),Bt(this._el,h),this.fire("step")},"_runFrame"),_complete:e(function(){ot(this._animId),this._inProgress=!1,this.fire("end")},"_complete"),_easeOut:e(function(t){return 1-Math.pow(1-t,this._easeOutPower)},"_easeOut")}),ct=I.extend({options:{crs:rs,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:e(function(t,r){r=y(this,r),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(t),this._initLayout(),this._onResize=i(this._onResize,this),this._initEvents(),r.maxBounds&&this.setMaxBounds(r.maxBounds),r.zoom!==void 0&&(this._zoom=this._limitZoom(r.zoom)),r.center&&r.zoom!==void 0&&this.setView(it(r.center),r.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=vo&&W.any3d&&!W.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),$(this._proxy,th,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},"initialize"),setView:e(function(t,r,h){if(r=r===void 0?this._zoom:this._limitZoom(r),t=this._limitCenter(it(t),r,this.options.maxBounds),h=h||{},this._stop(),this._loaded&&!h.reset&&h!==!0){h.animate!==void 0&&(h.zoom=l({animate:h.animate},h.zoom),h.pan=l({animate:h.animate,duration:h.duration},h.pan));var c=this._zoom!==r?this._tryAnimatedZoom&&this._tryAnimatedZoom(t,r,h.zoom):this._tryAnimatedPan(t,h.pan);if(c)return clearTimeout(this._sizeTimer),this}return this._resetView(t,r,h.pan&&h.pan.noMoveStart),this},"setView"),setZoom:e(function(t,r){return this._loaded?this.setView(this.getCenter(),t,{zoom:r}):(this._zoom=t,this)},"setZoom"),zoomIn:e(function(t,r){return t=t||(W.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+t,r)},"zoomIn"),zoomOut:e(function(t,r){return t=t||(W.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-t,r)},"zoomOut"),setZoomAround:e(function(t,r,h){var c=this.getZoomScale(r),m=this.getSize().divideBy(2),v=t instanceof N?t:this.latLngToContainerPoint(t),w=v.subtract(m).multiplyBy(1-1/c),M=this.containerPointToLatLng(m.add(w));return this.setView(M,r,{zoom:h})},"setZoomAround"),_getBoundsCenterZoom:e(function(t,r){r=r||{},t=t.getBounds?t.getBounds():_t(t);var h=U(r.paddingTopLeft||r.padding||[0,0]),c=U(r.paddingBottomRight||r.padding||[0,0]),m=this.getBoundsZoom(t,!1,h.add(c));if(m=typeof r.maxZoom=="number"?Math.min(r.maxZoom,m):m,m===1/0)return{center:t.getCenter(),zoom:m};var v=c.subtract(h).divideBy(2),w=this.project(t.getSouthWest(),m),M=this.project(t.getNorthEast(),m),S=this.unproject(w.add(M).divideBy(2).add(v),m);return{center:S,zoom:m}},"_getBoundsCenterZoom"),fitBounds:e(function(t,r){if(t=_t(t),!t.isValid())throw new Error("Bounds are not valid.");var h=this._getBoundsCenterZoom(t,r);return this.setView(h.center,h.zoom,r)},"fitBounds"),fitWorld:e(function(t){return this.fitBounds([[-90,-180],[90,180]],t)},"fitWorld"),panTo:e(function(t,r){return this.setView(t,this._zoom,{pan:r})},"panTo"),panBy:e(function(t,r){if(t=U(t).round(),r=r||{},!t.x&&!t.y)return this.fire("moveend");if(r.animate!==!0&&!this.getSize().contains(t))return this._resetView(this.unproject(this.project(this.getCenter()).add(t)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new ah,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),r.noMoveStart||this.fire("movestart"),r.animate!==!1){et(this._mapPane,"leaflet-pan-anim");var h=this._getMapPanePos().subtract(t).round();this._panAnim.run(this._mapPane,h,r.duration||.25,r.easeLinearity)}else this._rawPanBy(t),this.fire("move").fire("moveend");return this},"panBy"),flyTo:e(function(t,r,h){if(h=h||{},h.animate===!1||!W.any3d)return this.setView(t,r,h);this._stop();var c=this.project(this.getCenter()),m=this.project(t),v=this.getSize(),w=this._zoom;t=it(t),r=r===void 0?w:r;var M=Math.max(v.x,v.y),S=M*this.getZoomScale(w,r),z=m.distanceTo(c)||1,F=1.42,V=F*F;function rt(Rt){var Fn=Rt?-1:1,Zp=Rt?S:M,Fp=S*S-M*M+Fn*V*V*z*z,Gp=2*Zp*V*z,Bs=Fp/Gp,Gh=Math.sqrt(Bs*Bs+1)-Bs,Hp=Gh<1e-9?-18:Math.log(Gh);return Hp}e(rt,"r");function ee(Rt){return(Math.exp(Rt)-Math.exp(-Rt))/2}e(ee,"sinh");function qt(Rt){return(Math.exp(Rt)+Math.exp(-Rt))/2}e(qt,"cosh");function xe(Rt){return ee(Rt)/qt(Rt)}e(xe,"tanh");var ae=rt(0);function Ui(Rt){return M*(qt(ae)/qt(ae+F*Rt))}e(Ui,"w");function Ap(Rt){return M*(qt(ae)*xe(ae+F*Rt)-ee(ae))/V}e(Ap,"u");function Bp(Rt){return 1-Math.pow(1-Rt,1.5)}e(Bp,"easeOut");var Rp=Date.now(),Zh=(rt(1)-ae)/F,Np=h.duration?1e3*h.duration:1e3*Zh*.8;function Fh(){var Rt=(Date.now()-Rp)/Np,Fn=Bp(Rt)*Zh;Rt<=1?(this._flyToFrame=X(Fh,this),this._move(this.unproject(c.add(m.subtract(c).multiplyBy(Ap(Fn)/z)),w),this.getScaleZoom(M/Ui(Fn),w),{flyTo:!0})):this._move(t,r)._moveEnd(!0)}return e(Fh,"frame"),this._moveStart(!0,h.noMoveStart),Fh.call(this),this},"flyTo"),flyToBounds:e(function(t,r){var h=this._getBoundsCenterZoom(t,r);return this.flyTo(h.center,h.zoom,r)},"flyToBounds"),setMaxBounds:e(function(t){return t=_t(t),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),t.isValid()?(this.options.maxBounds=t,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},"setMaxBounds"),setMinZoom:e(function(t){var r=this.options.minZoom;return this.options.minZoom=t,this._loaded&&r!==t&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(t):this},"setMinZoom"),setMaxZoom:e(function(t){var r=this.options.maxZoom;return this.options.maxZoom=t,this._loaded&&r!==t&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(t):this},"setMaxZoom"),panInsideBounds:e(function(t,r){this._enforcingBounds=!0;var h=this.getCenter(),c=this._limitCenter(h,this._zoom,_t(t));return h.equals(c)||this.panTo(c,r),this._enforcingBounds=!1,this},"panInsideBounds"),panInside:e(function(t,r){r=r||{};var h=U(r.paddingTopLeft||r.padding||[0,0]),c=U(r.paddingBottomRight||r.padding||[0,0]),m=this.project(this.getCenter()),v=this.project(t),w=this.getPixelBounds(),M=At([w.min.add(h),w.max.subtract(c)]),S=M.getSize();if(!M.contains(v)){this._enforcingBounds=!0;var z=v.subtract(M.getCenter()),F=M.extend(v).getSize().subtract(S);m.x+=z.x<0?-F.x:F.x,m.y+=z.y<0?-F.y:F.y,this.panTo(this.unproject(m),r),this._enforcingBounds=!1}return this},"panInside"),invalidateSize:e(function(t){if(!this._loaded)return this;t=l({animate:!1,pan:!0},t===!0?{animate:!0}:t);var r=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var h=this.getSize(),c=r.divideBy(2).round(),m=h.divideBy(2).round(),v=c.subtract(m);return!v.x&&!v.y?this:(t.animate&&t.pan?this.panBy(v):(t.pan&&this._rawPanBy(v),this.fire("move"),t.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(i(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:r,newSize:h}))},"invalidateSize"),stop:e(function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},"stop"),locate:e(function(t){if(t=this._locateOptions=l({timeout:1e4,watch:!1},t),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var r=i(this._handleGeolocationResponse,this),h=i(this._handleGeolocationError,this);return t.watch?this._locationWatchId=navigator.geolocation.watchPosition(r,h,t):navigator.geolocation.getCurrentPosition(r,h,t),this},"locate"),stopLocate:e(function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},"stopLocate"),_handleGeolocationError:e(function(t){if(this._container._leaflet_id){var r=t.code,h=t.message||(r===1?"permission denied":r===2?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:r,message:"Geolocation error: "+h+"."})}},"_handleGeolocationError"),_handleGeolocationResponse:e(function(t){if(this._container._leaflet_id){var r=t.coords.latitude,h=t.coords.longitude,c=new nt(r,h),m=c.toBounds(t.coords.accuracy*2),v=this._locateOptions;if(v.setView){var w=this.getBoundsZoom(m);this.setView(c,v.maxZoom?Math.min(w,v.maxZoom):w)}var M={latlng:c,bounds:m,timestamp:t.timestamp};for(var S in t.coords)typeof t.coords[S]=="number"&&(M[S]=t.coords[S]);this.fire("locationfound",M)}},"_handleGeolocationResponse"),addHandler:e(function(t,r){if(!r)return this;var h=this[t]=new r(this);return this._handlers.push(h),this.options[t]&&h.enable(),this},"addHandler"),remove:e(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(),kt(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(ot(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload");var t;for(t in this._layers)this._layers[t].remove();for(t in this._panes)kt(this._panes[t]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},"remove"),createPane:e(function(t,r){var h="leaflet-pane"+(t?" leaflet-"+t.replace("Pane","")+"-pane":""),c=pt("div",h,r||this._mapPane);return t&&(this._panes[t]=c),c},"createPane"),getCenter:e(function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},"getCenter"),getZoom:e(function(){return this._zoom},"getZoom"),getBounds:e(function(){var t=this.getPixelBounds(),r=this.unproject(t.getBottomLeft()),h=this.unproject(t.getTopRight());return new Ct(r,h)},"getBounds"),getMinZoom:e(function(){return this.options.minZoom===void 0?this._layersMinZoom||0:this.options.minZoom},"getMinZoom"),getMaxZoom:e(function(){return this.options.maxZoom===void 0?this._layersMaxZoom===void 0?1/0:this._layersMaxZoom:this.options.maxZoom},"getMaxZoom"),getBoundsZoom:e(function(t,r,h){t=_t(t),h=U(h||[0,0]);var c=this.getZoom()||0,m=this.getMinZoom(),v=this.getMaxZoom(),w=t.getNorthWest(),M=t.getSouthEast(),S=this.getSize().subtract(h),z=At(this.project(M,c),this.project(w,c)).getSize(),F=W.any3d?this.options.zoomSnap:1,V=S.x/z.x,rt=S.y/z.y,ee=r?Math.max(V,rt):Math.min(V,rt);return c=this.getScaleZoom(ee,c),F&&(c=Math.round(c/(F/100))*(F/100),c=r?Math.ceil(c/F)*F:Math.floor(c/F)*F),Math.max(m,Math.min(v,c))},"getBoundsZoom"),getSize:e(function(){return(!this._size||this._sizeChanged)&&(this._size=new N(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},"getSize"),getPixelBounds:e(function(t,r){var h=this._getTopLeftPoint(t,r);return new at(h,h.add(this.getSize()))},"getPixelBounds"),getPixelOrigin:e(function(){return this._checkIfLoaded(),this._pixelOrigin},"getPixelOrigin"),getPixelWorldBounds:e(function(t){return this.options.crs.getProjectedBounds(t===void 0?this.getZoom():t)},"getPixelWorldBounds"),getPane:e(function(t){return typeof t=="string"?this._panes[t]:t},"getPane"),getPanes:e(function(){return this._panes},"getPanes"),getContainer:e(function(){return this._container},"getContainer"),getZoomScale:e(function(t,r){var h=this.options.crs;return r=r===void 0?this._zoom:r,h.scale(t)/h.scale(r)},"getZoomScale"),getScaleZoom:e(function(t,r){var h=this.options.crs;r=r===void 0?this._zoom:r;var c=h.zoom(t*h.scale(r));return isNaN(c)?1/0:c},"getScaleZoom"),project:e(function(t,r){return r=r===void 0?this._zoom:r,this.options.crs.latLngToPoint(it(t),r)},"project"),unproject:e(function(t,r){return r=r===void 0?this._zoom:r,this.options.crs.pointToLatLng(U(t),r)},"unproject"),layerPointToLatLng:e(function(t){var r=U(t).add(this.getPixelOrigin());return this.unproject(r)},"layerPointToLatLng"),latLngToLayerPoint:e(function(t){var r=this.project(it(t))._round();return r._subtract(this.getPixelOrigin())},"latLngToLayerPoint"),wrapLatLng:e(function(t){return this.options.crs.wrapLatLng(it(t))},"wrapLatLng"),wrapLatLngBounds:e(function(t){return this.options.crs.wrapLatLngBounds(_t(t))},"wrapLatLngBounds"),distance:e(function(t,r){return this.options.crs.distance(it(t),it(r))},"distance"),containerPointToLayerPoint:e(function(t){return U(t).subtract(this._getMapPanePos())},"containerPointToLayerPoint"),layerPointToContainerPoint:e(function(t){return U(t).add(this._getMapPanePos())},"layerPointToContainerPoint"),containerPointToLatLng:e(function(t){var r=this.containerPointToLayerPoint(U(t));return this.layerPointToLatLng(r)},"containerPointToLatLng"),latLngToContainerPoint:e(function(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint(it(t)))},"latLngToContainerPoint"),mouseEventToContainerPoint:e(function(t){return rh(t,this._container)},"mouseEventToContainerPoint"),mouseEventToLayerPoint:e(function(t){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(t))},"mouseEventToLayerPoint"),mouseEventToLatLng:e(function(t){return this.layerPointToLatLng(this.mouseEventToLayerPoint(t))},"mouseEventToLatLng"),_initContainer:e(function(t){var r=this._container=eh(t);if(r){if(r._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");$(r,"scroll",this._onScroll,this),this._containerId=u(r)},"_initContainer"),_initLayout:e(function(){var t=this._container;this._fadeAnimated=this.options.fadeAnimation&&W.any3d,et(t,"leaflet-container"+(W.touch?" leaflet-touch":"")+(W.retina?" leaflet-retina":"")+(W.ielt9?" leaflet-oldie":"")+(W.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var r=bo(t,"position");r!=="absolute"&&r!=="relative"&&r!=="fixed"&&r!=="sticky"&&(t.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},"_initLayout"),_initPanes:e(function(){var t=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),Bt(this._mapPane,new N(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(et(t.markerPane,"leaflet-zoom-hide"),et(t.shadowPane,"leaflet-zoom-hide"))},"_initPanes"),_resetView:e(function(t,r,h){Bt(this._mapPane,new N(0,0));var c=!this._loaded;this._loaded=!0,r=this._limitZoom(r),this.fire("viewprereset");var m=this._zoom!==r;this._moveStart(m,h)._move(t,r)._moveEnd(m),this.fire("viewreset"),c&&this.fire("load")},"_resetView"),_moveStart:e(function(t,r){return t&&this.fire("zoomstart"),r||this.fire("movestart"),this},"_moveStart"),_move:e(function(t,r,h,c){r===void 0&&(r=this._zoom);var m=this._zoom!==r;return this._zoom=r,this._lastCenter=t,this._pixelOrigin=this._getNewPixelOrigin(t),c?h&&h.pinch&&this.fire("zoom",h):((m||h&&h.pinch)&&this.fire("zoom",h),this.fire("move",h)),this},"_move"),_moveEnd:e(function(t){return t&&this.fire("zoomend"),this.fire("moveend")},"_moveEnd"),_stop:e(function(){return ot(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},"_stop"),_rawPanBy:e(function(t){Bt(this._mapPane,this._getMapPanePos().subtract(t))},"_rawPanBy"),_getZoomSpan:e(function(){return this.getMaxZoom()-this.getMinZoom()},"_getZoomSpan"),_panInsideMaxBounds:e(function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},"_panInsideMaxBounds"),_checkIfLoaded:e(function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},"_checkIfLoaded"),_initEvents:e(function(t){this._targets={},this._targets[u(this._container)]=this;var r=t?Lt:$;r(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&r(window,"resize",this._onResize,this),W.any3d&&this.options.transform3DLimit&&(t?this.off:this.on).call(this,"moveend",this._onMoveEnd)},"_initEvents"),_onResize:e(function(){ot(this._resizeRequest),this._resizeRequest=X(function(){this.invalidateSize({debounceMoveend:!0})},this)},"_onResize"),_onScroll:e(function(){this._container.scrollTop=0,this._container.scrollLeft=0},"_onScroll"),_onMoveEnd:e(function(){var t=this._getMapPanePos();Math.max(Math.abs(t.x),Math.abs(t.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},"_onMoveEnd"),_findEventTargets:e(function(t,r){for(var h=[],c,m=r==="mouseout"||r==="mouseover",v=t.target||t.srcElement,w=!1;v;){if(c=this._targets[u(v)],c&&(r==="click"||r==="preclick")&&this._draggableMoved(c)){w=!0;break}if(c&&c.listens(r,!0)&&(m&&!ks(v,t)||(h.push(c),m))||v===this._container)break;v=v.parentNode}return!h.length&&!w&&!m&&this.listens(r,!0)&&(h=[this]),h},"_findEventTargets"),_isClickDisabled:e(function(t){for(;t&&t!==this._container;){if(t._leaflet_disable_click)return!0;t=t.parentNode}},"_isClickDisabled"),_handleDOMEvent:e(function(t){var r=t.target||t.srcElement;if(!(!this._loaded||r._leaflet_disable_events||t.type==="click"&&this._isClickDisabled(r))){var h=t.type;h==="mousedown"&&vs(r),this._fireDOMEvent(t,h)}},"_handleDOMEvent"),_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:e(function(t,r,h){if(t.type==="click"){var c=l({},t);c.type="preclick",this._fireDOMEvent(c,c.type,h)}var m=this._findEventTargets(t,r);if(h){for(var v=[],w=0;w<h.length;w++)h[w].listens(r,!0)&&v.push(h[w]);m=v.concat(m)}if(m.length){r==="contextmenu"&&$t(t);var M=m[0],S={originalEvent:t};if(t.type!=="keypress"&&t.type!=="keydown"&&t.type!=="keyup"){var z=M.getLatLng&&(!M._radius||M._radius<=10);S.containerPoint=z?this.latLngToContainerPoint(M.getLatLng()):this.mouseEventToContainerPoint(t),S.layerPoint=this.containerPointToLayerPoint(S.containerPoint),S.latlng=z?M.getLatLng():this.layerPointToLatLng(S.layerPoint)}for(w=0;w<m.length;w++)if(m[w].fire(r,S,!0),S.originalEvent._stopped||m[w].options.bubblingMouseEvents===!1&&T(this._mouseEvents,r)!==-1)return}},"_fireDOMEvent"),_draggableMoved:e(function(t){return t=t.dragging&&t.dragging.enabled()?t:this,t.dragging&&t.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},"_draggableMoved"),_clearHandlers:e(function(){for(var t=0,r=this._handlers.length;t<r;t++)this._handlers[t].disable()},"_clearHandlers"),whenReady:e(function(t,r){return this._loaded?t.call(r||this,{target:this}):this.on("load",t,r),this},"whenReady"),_getMapPanePos:e(function(){return mi(this._mapPane)||new N(0,0)},"_getMapPanePos"),_moved:e(function(){var t=this._getMapPanePos();return t&&!t.equals([0,0])},"_moved"),_getTopLeftPoint:e(function(t,r){var h=t&&r!==void 0?this._getNewPixelOrigin(t,r):this.getPixelOrigin();return h.subtract(this._getMapPanePos())},"_getTopLeftPoint"),_getNewPixelOrigin:e(function(t,r){var h=this.getSize()._divideBy(2);return this.project(t,r)._subtract(h)._add(this._getMapPanePos())._round()},"_getNewPixelOrigin"),_latLngToNewLayerPoint:e(function(t,r,h){var c=this._getNewPixelOrigin(h,r);return this.project(t,r)._subtract(c)},"_latLngToNewLayerPoint"),_latLngBoundsToNewLayerBounds:e(function(t,r,h){var c=this._getNewPixelOrigin(h,r);return At([this.project(t.getSouthWest(),r)._subtract(c),this.project(t.getNorthWest(),r)._subtract(c),this.project(t.getSouthEast(),r)._subtract(c),this.project(t.getNorthEast(),r)._subtract(c)])},"_latLngBoundsToNewLayerBounds"),_getCenterLayerPoint:e(function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},"_getCenterLayerPoint"),_getCenterOffset:e(function(t){return this.latLngToLayerPoint(t).subtract(this._getCenterLayerPoint())},"_getCenterOffset"),_limitCenter:e(function(t,r,h){if(!h)return t;var c=this.project(t,r),m=this.getSize().divideBy(2),v=new at(c.subtract(m),c.add(m)),w=this._getBoundsOffset(v,h,r);return Math.abs(w.x)<=1&&Math.abs(w.y)<=1?t:this.unproject(c.add(w),r)},"_limitCenter"),_limitOffset:e(function(t,r){if(!r)return t;var h=this.getPixelBounds(),c=new at(h.min.add(t),h.max.add(t));return t.add(this._getBoundsOffset(c,r))},"_limitOffset"),_getBoundsOffset:e(function(t,r,h){var c=At(this.project(r.getNorthEast(),h),this.project(r.getSouthWest(),h)),m=c.min.subtract(t.min),v=c.max.subtract(t.max),w=this._rebound(m.x,-v.x),M=this._rebound(m.y,-v.y);return new N(w,M)},"_getBoundsOffset"),_rebound:e(function(t,r){return t+r>0?Math.round(t-r)/2:Math.max(0,Math.ceil(t))-Math.max(0,Math.floor(r))},"_rebound"),_limitZoom:e(function(t){var r=this.getMinZoom(),h=this.getMaxZoom(),c=W.any3d?this.options.zoomSnap:1;return c&&(t=Math.round(t/c)*c),Math.max(r,Math.min(h,t))},"_limitZoom"),_onPanTransitionStep:e(function(){this.fire("move")},"_onPanTransitionStep"),_onPanTransitionEnd:e(function(){Ot(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},"_onPanTransitionEnd"),_tryAnimatedPan:e(function(t,r){var h=this._getCenterOffset(t)._trunc();return(r&&r.animate)!==!0&&!this.getSize().contains(h)?!1:(this.panBy(h,r),!0)},"_tryAnimatedPan"),_createAnimProxy:e(function(){var t=this._proxy=pt("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(t),this.on("zoomanim",function(r){var h=ps,c=this._proxy.style[h];fi(this._proxy,this.project(r.center,r.zoom),this.getZoomScale(r.zoom,1)),c===this._proxy.style[h]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},"_createAnimProxy"),_destroyAnimProxy:e(function(){kt(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},"_destroyAnimProxy"),_animMoveEnd:e(function(){var t=this.getCenter(),r=this.getZoom();fi(this._proxy,this.project(t,r),this.getZoomScale(r,1))},"_animMoveEnd"),_catchTransitionEnd:e(function(t){this._animatingZoom&&t.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},"_catchTransitionEnd"),_nothingToAnimate:e(function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},"_nothingToAnimate"),_tryAnimatedZoom:e(function(t,r,h){if(this._animatingZoom)return!0;if(h=h||{},!this._zoomAnimated||h.animate===!1||this._nothingToAnimate()||Math.abs(r-this._zoom)>this.options.zoomAnimationThreshold)return!1;var c=this.getZoomScale(r),m=this._getCenterOffset(t)._divideBy(1-1/c);return h.animate!==!0&&!this.getSize().contains(m)?!1:(X(function(){this._moveStart(!0,h.noMoveStart||!1)._animateZoom(t,r,!0)},this),!0)},"_tryAnimatedZoom"),_animateZoom:e(function(t,r,h,c){this._mapPane&&(h&&(this._animatingZoom=!0,this._animateToCenter=t,this._animateToZoom=r,et(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:t,zoom:r,noUpdate:c}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(i(this._onZoomTransitionEnd,this),250))},"_animateZoom"),_onZoomTransitionEnd:e(function(){this._animatingZoom&&(this._mapPane&&Ot(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))},"_onZoomTransitionEnd")});function $c(t,r){return new ct(t,r)}e($c,"createMap");var ke=xt.extend({options:{position:"topright"},initialize:e(function(t){y(this,t)},"initialize"),getPosition:e(function(){return this.options.position},"getPosition"),setPosition:e(function(t){var r=this._map;return r&&r.removeControl(this),this.options.position=t,r&&r.addControl(this),this},"setPosition"),getContainer:e(function(){return this._container},"getContainer"),addTo:e(function(t){this.remove(),this._map=t;var r=this._container=this.onAdd(t),h=this.getPosition(),c=t._controlCorners[h];return et(r,"leaflet-control"),h.indexOf("bottom")!==-1?c.insertBefore(r,c.firstChild):c.appendChild(r),this._map.on("unload",this.remove,this),this},"addTo"),remove:e(function(){return this._map?(kt(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},"remove"),_refocusOnMap:e(function(t){this._map&&t&&t.screenX>0&&t.screenY>0&&this._map.getContainer().focus()},"_refocusOnMap")}),ko=e(function(t){return new ke(t)},"control");ct.include({addControl:e(function(t){return t.addTo(this),this},"addControl"),removeControl:e(function(t){return t.remove(),this},"removeControl"),_initControlPos:e(function(){var t=this._controlCorners={},r="leaflet-",h=this._controlContainer=pt("div",r+"control-container",this._container);function c(m,v){var w=r+m+" "+r+v;t[m+v]=pt("div",w,h)}e(c,"createCorner"),c("top","left"),c("top","right"),c("bottom","left"),c("bottom","right")},"_initControlPos"),_clearControlPos:e(function(){for(var t in this._controlCorners)kt(this._controlCorners[t]);kt(this._controlContainer),delete this._controlCorners,delete this._controlContainer},"_clearControlPos")});var lh=ke.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:e(function(t,r,h,c){return h<c?-1:c<h?1:0},"sortFunction")},initialize:e(function(t,r,h){y(this,h),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1;for(var c in t)this._addLayer(t[c],c);for(c in r)this._addLayer(r[c],c,!0)},"initialize"),onAdd:e(function(t){this._initLayout(),this._update(),this._map=t,t.on("zoomend",this._checkDisabledLayers,this);for(var r=0;r<this._layers.length;r++)this._layers[r].layer.on("add remove",this._onLayerChange,this);return this._container},"onAdd"),addTo:e(function(t){return ke.prototype.addTo.call(this,t),this._expandIfNotCollapsed()},"addTo"),onRemove:e(function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var t=0;t<this._layers.length;t++)this._layers[t].layer.off("add remove",this._onLayerChange,this)},"onRemove"),addBaseLayer:e(function(t,r){return this._addLayer(t,r),this._map?this._update():this},"addBaseLayer"),addOverlay:e(function(t,r){return this._addLayer(t,r,!0),this._map?this._update():this},"addOverlay"),removeLayer:e(function(t){t.off("add remove",this._onLayerChange,this);var r=this._getLayer(u(t));return r&&this._layers.splice(this._layers.indexOf(r),1),this._map?this._update():this},"removeLayer"),expand:e(function(){et(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var t=this._map.getSize().y-(this._container.offsetTop+50);return t<this._section.clientHeight?(et(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=t+"px"):Ot(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},"expand"),collapse:e(function(){return Ot(this._container,"leaflet-control-layers-expanded"),this},"collapse"),_initLayout:e(function(){var t="leaflet-control-layers",r=this._container=pt("div",t),h=this.options.collapsed;r.setAttribute("aria-haspopup",!0),Co(r),Cs(r);var c=this._section=pt("section",t+"-list");h&&(this._map.on("click",this.collapse,this),$(r,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var m=this._layersLink=pt("a",t+"-toggle",r);m.href="#",m.title="Layers",m.setAttribute("role","button"),$(m,{keydown:e(function(v){v.keyCode===13&&this._expandSafely()},"keydown"),click:e(function(v){$t(v),this._expandSafely()},"click")},this),h||this.expand(),this._baseLayersList=pt("div",t+"-base",c),this._separator=pt("div",t+"-separator",c),this._overlaysList=pt("div",t+"-overlays",c),r.appendChild(c)},"_initLayout"),_getLayer:e(function(t){for(var r=0;r<this._layers.length;r++)if(this._layers[r]&&u(this._layers[r].layer)===t)return this._layers[r]},"_getLayer"),_addLayer:e(function(t,r,h){this._map&&t.on("add remove",this._onLayerChange,this),this._layers.push({layer:t,name:r,overlay:h}),this.options.sortLayers&&this._layers.sort(i(function(c,m){return this.options.sortFunction(c.layer,m.layer,c.name,m.name)},this)),this.options.autoZIndex&&t.setZIndex&&(this._lastZIndex++,t.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},"_addLayer"),_update:e(function(){if(!this._container)return this;Cn(this._baseLayersList),Cn(this._overlaysList),this._layerControlInputs=[];var t,r,h,c,m=0;for(h=0;h<this._layers.length;h++)c=this._layers[h],this._addItem(c),r=r||c.overlay,t=t||!c.overlay,m+=c.overlay?0:1;return this.options.hideSingleBase&&(t=t&&m>1,this._baseLayersList.style.display=t?"":"none"),this._separator.style.display=r&&t?"":"none",this},"_update"),_onLayerChange:e(function(t){this._handlingClick||this._update();var r=this._getLayer(u(t.target)),h=r.overlay?t.type==="add"?"overlayadd":"overlayremove":t.type==="add"?"baselayerchange":null;h&&this._map.fire(h,r)},"_onLayerChange"),_createRadioElement:e(function(t,r){var h='<input type="radio" class="leaflet-control-layers-selector" name="'+t+'"'+(r?' checked="checked"':"")+"/>",c=document.createElement("div");return c.innerHTML=h,c.firstChild},"_createRadioElement"),_addItem:e(function(t){var r=document.createElement("label"),h=this._map.hasLayer(t.layer),c;t.overlay?(c=document.createElement("input"),c.type="checkbox",c.className="leaflet-control-layers-selector",c.defaultChecked=h):c=this._createRadioElement("leaflet-base-layers_"+u(this),h),this._layerControlInputs.push(c),c.layerId=u(t.layer),$(c,"click",this._onInputClick,this);var m=document.createElement("span");m.innerHTML=" "+t.name;var v=document.createElement("span");r.appendChild(v),v.appendChild(c),v.appendChild(m);var w=t.overlay?this._overlaysList:this._baseLayersList;return w.appendChild(r),this._checkDisabledLayers(),r},"_addItem"),_onInputClick:e(function(){if(!this._preventClick){var t=this._layerControlInputs,r,h,c=[],m=[];this._handlingClick=!0;for(var v=t.length-1;v>=0;v--)r=t[v],h=this._getLayer(r.layerId).layer,r.checked?c.push(h):r.checked||m.push(h);for(v=0;v<m.length;v++)this._map.hasLayer(m[v])&&this._map.removeLayer(m[v]);for(v=0;v<c.length;v++)this._map.hasLayer(c[v])||this._map.addLayer(c[v]);this._handlingClick=!1,this._refocusOnMap()}},"_onInputClick"),_checkDisabledLayers:e(function(){for(var t=this._layerControlInputs,r,h,c=this._map.getZoom(),m=t.length-1;m>=0;m--)r=t[m],h=this._getLayer(r.layerId).layer,r.disabled=h.options.minZoom!==void 0&&c<h.options.minZoom||h.options.maxZoom!==void 0&&c>h.options.maxZoom},"_checkDisabledLayers"),_expandIfNotCollapsed:e(function(){return this._map&&!this.options.collapsed&&this.expand(),this},"_expandIfNotCollapsed"),_expandSafely:e(function(){var t=this._section;this._preventClick=!0,$(t,"click",$t),this.expand();var r=this;setTimeout(function(){Lt(t,"click",$t),r._preventClick=!1})},"_expandSafely")}),Qc=e(function(t,r,h){return new lh(t,r,h)},"layers"),Ms=ke.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">&#x2212;</span>',zoomOutTitle:"Zoom out"},onAdd:e(function(t){var r="leaflet-control-zoom",h=pt("div",r+" leaflet-bar"),c=this.options;return this._zoomInButton=this._createButton(c.zoomInText,c.zoomInTitle,r+"-in",h,this._zoomIn),this._zoomOutButton=this._createButton(c.zoomOutText,c.zoomOutTitle,r+"-out",h,this._zoomOut),this._updateDisabled(),t.on("zoomend zoomlevelschange",this._updateDisabled,this),h},"onAdd"),onRemove:e(function(t){t.off("zoomend zoomlevelschange",this._updateDisabled,this)},"onRemove"),disable:e(function(){return this._disabled=!0,this._updateDisabled(),this},"disable"),enable:e(function(){return this._disabled=!1,this._updateDisabled(),this},"enable"),_zoomIn:e(function(t){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(t.shiftKey?3:1))},"_zoomIn"),_zoomOut:e(function(t){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(t.shiftKey?3:1))},"_zoomOut"),_createButton:e(function(t,r,h,c,m){var v=pt("a",h,c);return v.innerHTML=t,v.href="#",v.title=r,v.setAttribute("role","button"),v.setAttribute("aria-label",r),Co(v),$(v,"click",gi),$(v,"click",m,this),$(v,"click",this._refocusOnMap,this),v},"_createButton"),_updateDisabled:e(function(){var t=this._map,r="leaflet-disabled";Ot(this._zoomInButton,r),Ot(this._zoomOutButton,r),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||t._zoom===t.getMinZoom())&&(et(this._zoomOutButton,r),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||t._zoom===t.getMaxZoom())&&(et(this._zoomInButton,r),this._zoomInButton.setAttribute("aria-disabled","true"))},"_updateDisabled")});ct.mergeOptions({zoomControl:!0}),ct.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new Ms,this.addControl(this.zoomControl))});var tp=e(function(t){return new Ms(t)},"zoom"),hh=ke.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:e(function(t){var r="leaflet-control-scale",h=pt("div",r),c=this.options;return this._addScales(c,r+"-line",h),t.on(c.updateWhenIdle?"moveend":"move",this._update,this),t.whenReady(this._update,this),h},"onAdd"),onRemove:e(function(t){t.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},"onRemove"),_addScales:e(function(t,r,h){t.metric&&(this._mScale=pt("div",r,h)),t.imperial&&(this._iScale=pt("div",r,h))},"_addScales"),_update:e(function(){var t=this._map,r=t.getSize().y/2,h=t.distance(t.containerPointToLatLng([0,r]),t.containerPointToLatLng([this.options.maxWidth,r]));this._updateScales(h)},"_update"),_updateScales:e(function(t){this.options.metric&&t&&this._updateMetric(t),this.options.imperial&&t&&this._updateImperial(t)},"_updateScales"),_updateMetric:e(function(t){var r=this._getRoundNum(t),h=r<1e3?r+" m":r/1e3+" km";this._updateScale(this._mScale,h,r/t)},"_updateMetric"),_updateImperial:e(function(t){var r=t*3.2808399,h,c,m;r>5280?(h=r/5280,c=this._getRoundNum(h),this._updateScale(this._iScale,c+" mi",c/h)):(m=this._getRoundNum(r),this._updateScale(this._iScale,m+" ft",m/r))},"_updateImperial"),_updateScale:e(function(t,r,h){t.style.width=Math.round(this.options.maxWidth*h)+"px",t.innerHTML=r},"_updateScale"),_getRoundNum:e(function(t){var r=Math.pow(10,(Math.floor(t)+"").length-1),h=t/r;return h=h>=10?10:h>=5?5:h>=3?3:h>=2?2:1,r*h},"_getRoundNum")}),ep=e(function(t){return new hh(t)},"scale"),ip='<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>',Ps=ke.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(W.inlineSvg?ip+" ":"")+"Leaflet</a>"},initialize:e(function(t){y(this,t),this._attributions={}},"initialize"),onAdd:e(function(t){t.attributionControl=this,this._container=pt("div","leaflet-control-attribution"),Co(this._container);for(var r in t._layers)t._layers[r].getAttribution&&this.addAttribution(t._layers[r].getAttribution());return this._update(),t.on("layeradd",this._addAttribution,this),this._container},"onAdd"),onRemove:e(function(t){t.off("layeradd",this._addAttribution,this)},"onRemove"),_addAttribution:e(function(t){t.layer.getAttribution&&(this.addAttribution(t.layer.getAttribution()),t.layer.once("remove",function(){this.removeAttribution(t.layer.getAttribution())},this))},"_addAttribution"),setPrefix:e(function(t){return this.options.prefix=t,this._update(),this},"setPrefix"),addAttribution:e(function(t){return t?(this._attributions[t]||(this._attributions[t]=0),this._attributions[t]++,this._update(),this):this},"addAttribution"),removeAttribution:e(function(t){return t?(this._attributions[t]&&(this._attributions[t]--,this._update()),this):this},"removeAttribution"),_update:e(function(){if(this._map){var t=[];for(var r in this._attributions)this._attributions[r]&&t.push(r);var h=[];this.options.prefix&&h.push(this.options.prefix),t.length&&h.push(t.join(", ")),this._container.innerHTML=h.join(' <span aria-hidden="true">|</span> ')}},"_update")});ct.mergeOptions({attributionControl:!0}),ct.addInitHook(function(){this.options.attributionControl&&new Ps().addTo(this)});var op=e(function(t){return new Ps(t)},"attribution");ke.Layers=lh,ke.Zoom=Ms,ke.Scale=hh,ke.Attribution=Ps,ko.layers=Qc,ko.zoom=tp,ko.scale=ep,ko.attribution=op;var Ae=xt.extend({initialize:e(function(t){this._map=t},"initialize"),enable:e(function(){return this._enabled?this:(this._enabled=!0,this.addHooks(),this)},"enable"),disable:e(function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},"disable"),enabled:e(function(){return!!this._enabled},"enabled")});Ae.addTo=function(t,r){return t.addHandler(r,this),this};var np={Events:Q},uh=W.touch?"touchstart mousedown":"mousedown",oi=I.extend({options:{clickTolerance:3},initialize:e(function(t,r,h,c){y(this,c),this._element=t,this._dragStartTarget=r||t,this._preventOutline=h},"initialize"),enable:e(function(){this._enabled||($(this._dragStartTarget,uh,this._onDown,this),this._enabled=!0)},"enable"),disable:e(function(){this._enabled&&(oi._dragging===this&&this.finishDrag(!0),Lt(this._dragStartTarget,uh,this._onDown,this),this._enabled=!1,this._moved=!1)},"disable"),_onDown:e(function(t){if(this._enabled&&(this._moved=!1,!ds(this._element,"leaflet-zoom-anim"))){if(t.touches&&t.touches.length!==1){oi._dragging===this&&this.finishDrag();return}if(!(oi._dragging||t.shiftKey||t.which!==1&&t.button!==1&&!t.touches)&&(oi._dragging=this,this._preventOutline&&vs(this._element),_s(),xo(),!this._moving)){this.fire("down");var r=t.touches?t.touches[0]:t,h=ih(this._element);this._startPoint=new N(r.clientX,r.clientY),this._startPos=mi(this._element),this._parentScale=bs(h);var c=t.type==="mousedown";$(document,c?"mousemove":"touchmove",this._onMove,this),$(document,c?"mouseup":"touchend touchcancel",this._onUp,this)}}},"_onDown"),_onMove:e(function(t){if(this._enabled){if(t.touches&&t.touches.length>1){this._moved=!0;return}var r=t.touches&&t.touches.length===1?t.touches[0]:t,h=new N(r.clientX,r.clientY)._subtract(this._startPoint);!h.x&&!h.y||Math.abs(h.x)+Math.abs(h.y)<this.options.clickTolerance||(h.x/=this._parentScale.x,h.y/=this._parentScale.y,$t(t),this._moved||(this.fire("dragstart"),this._moved=!0,et(document.body,"leaflet-dragging"),this._lastTarget=t.target||t.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),et(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(h),this._moving=!0,this._lastEvent=t,this._updatePosition())}},"_onMove"),_updatePosition:e(function(){var t={originalEvent:this._lastEvent};this.fire("predrag",t),Bt(this._element,this._newPos),this.fire("drag",t)},"_updatePosition"),_onUp:e(function(){this._enabled&&this.finishDrag()},"_onUp"),finishDrag:e(function(t){Ot(document.body,"leaflet-dragging"),this._lastTarget&&(Ot(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),Lt(document,"mousemove touchmove",this._onMove,this),Lt(document,"mouseup touchend touchcancel",this._onUp,this),gs(),Lo();var r=this._moved&&this._moving;this._moving=!1,oi._dragging=!1,r&&this.fire("dragend",{noInertia:t,distance:this._newPos.distanceTo(this._startPos)})},"finishDrag")});function ch(t,r,h){var c,m=[1,4,2,8],v,w,M,S,z,F,V,rt;for(v=0,F=t.length;v<F;v++)t[v]._code=yi(t[v],r);for(M=0;M<4;M++){for(V=m[M],c=[],v=0,F=t.length,w=F-1;v<F;w=v++)S=t[v],z=t[w],S._code&V?z._code&V||(rt=Sn(z,S,V,r,h),rt._code=yi(rt,r),c.push(rt)):(z._code&V&&(rt=Sn(z,S,V,r,h),rt._code=yi(rt,r),c.push(rt)),c.push(S));t=c}return t}e(ch,"clipPolygon");function ph(t,r){var h,c,m,v,w,M,S,z,F;if(!t||t.length===0)throw new Error("latlngs not passed");be(t)||(console.warn("latlngs are not flat! Only the first ring will be used"),t=t[0]);var V=it([0,0]),rt=_t(t),ee=rt.getNorthWest().distanceTo(rt.getSouthWest())*rt.getNorthEast().distanceTo(rt.getNorthWest());ee<1700&&(V=Es(t));var qt=t.length,xe=[];for(h=0;h<qt;h++){var ae=it(t[h]);xe.push(r.project(it([ae.lat-V.lat,ae.lng-V.lng])))}for(M=S=z=0,h=0,c=qt-1;h<qt;c=h++)m=xe[h],v=xe[c],w=m.y*v.x-v.y*m.x,S+=(m.x+v.x)*w,z+=(m.y+v.y)*w,M+=w*3;M===0?F=xe[0]:F=[S/M,z/M];var Ui=r.unproject(U(F));return it([Ui.lat+V.lat,Ui.lng+V.lng])}e(ph,"polygonCenter");function Es(t){for(var r=0,h=0,c=0,m=0;m<t.length;m++){var v=it(t[m]);r+=v.lat,h+=v.lng,c++}return it([r/c,h/c])}e(Es,"centroid");var rp={__proto__:null,clipPolygon:ch,polygonCenter:ph,centroid:Es};function dh(t,r){if(!r||!t.length)return t.slice();var h=r*r;return t=lp(t,h),t=ap(t,h),t}e(dh,"simplify");function fh(t,r,h){return Math.sqrt(Mo(t,r,h,!0))}e(fh,"pointToSegmentDistance");function sp(t,r,h){return Mo(t,r,h)}e(sp,"closestPointOnSegment");function ap(t,r){var h=t.length,c=typeof Uint8Array<"u"?Uint8Array:Array,m=new c(h);m[0]=m[h-1]=1,Ss(t,m,r,0,h-1);var v,w=[];for(v=0;v<h;v++)m[v]&&w.push(t[v]);return w}e(ap,"_simplifyDP");function Ss(t,r,h,c,m){var v=0,w,M,S;for(M=c+1;M<=m-1;M++)S=Mo(t[M],t[c],t[m],!0),S>v&&(w=M,v=S);v>h&&(r[w]=1,Ss(t,r,h,c,w),Ss(t,r,h,w,m))}e(Ss,"_simplifyDPStep");function lp(t,r){for(var h=[t[0]],c=1,m=0,v=t.length;c<v;c++)hp(t[c],t[m])>r&&(h.push(t[c]),m=c);return m<v-1&&h.push(t[v-1]),h}e(lp,"_reducePoints");var mh;function _h(t,r,h,c,m){var v=c?mh:yi(t,h),w=yi(r,h),M,S,z;for(mh=w;;){if(!(v|w))return[t,r];if(v&w)return!1;M=v||w,S=Sn(t,r,M,h,m),z=yi(S,h),M===v?(t=S,v=z):(r=S,w=z)}}e(_h,"clipSegment");function Sn(t,r,h,c,m){var v=r.x-t.x,w=r.y-t.y,M=c.min,S=c.max,z,F;return h&8?(z=t.x+v*(S.y-t.y)/w,F=S.y):h&4?(z=t.x+v*(M.y-t.y)/w,F=M.y):h&2?(z=S.x,F=t.y+w*(S.x-t.x)/v):h&1&&(z=M.x,F=t.y+w*(M.x-t.x)/v),new N(z,F,m)}e(Sn,"_getEdgeIntersection");function yi(t,r){var h=0;return t.x<r.min.x?h|=1:t.x>r.max.x&&(h|=2),t.y<r.min.y?h|=4:t.y>r.max.y&&(h|=8),h}e(yi,"_getBitCode");function hp(t,r){var h=r.x-t.x,c=r.y-t.y;return h*h+c*c}e(hp,"_sqDist");function Mo(t,r,h,c){var m=r.x,v=r.y,w=h.x-m,M=h.y-v,S=w*w+M*M,z;return S>0&&(z=((t.x-m)*w+(t.y-v)*M)/S,z>1?(m=h.x,v=h.y):z>0&&(m+=w*z,v+=M*z)),w=t.x-m,M=t.y-v,c?w*w+M*M:new N(m,v)}e(Mo,"_sqClosestPointOnSegment");function be(t){return!P(t[0])||typeof t[0][0]!="object"&&typeof t[0][0]<"u"}e(be,"isFlat");function gh(t){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),be(t)}e(gh,"_flat");function yh(t,r){var h,c,m,v,w,M,S,z;if(!t||t.length===0)throw new Error("latlngs not passed");be(t)||(console.warn("latlngs are not flat! Only the first ring will be used"),t=t[0]);var F=it([0,0]),V=_t(t),rt=V.getNorthWest().distanceTo(V.getSouthWest())*V.getNorthEast().distanceTo(V.getNorthWest());rt<1700&&(F=Es(t));var ee=t.length,qt=[];for(h=0;h<ee;h++){var xe=it(t[h]);qt.push(r.project(it([xe.lat-F.lat,xe.lng-F.lng])))}for(h=0,c=0;h<ee-1;h++)c+=qt[h].distanceTo(qt[h+1])/2;if(c===0)z=qt[0];else for(h=0,v=0;h<ee-1;h++)if(w=qt[h],M=qt[h+1],m=w.distanceTo(M),v+=m,v>c){S=(v-c)/m,z=[M.x-S*(M.x-w.x),M.y-S*(M.y-w.y)];break}var ae=r.unproject(U(z));return it([ae.lat+F.lat,ae.lng+F.lng])}e(yh,"polylineCenter");var up={__proto__:null,simplify:dh,pointToSegmentDistance:fh,closestPointOnSegment:sp,clipSegment:_h,_getEdgeIntersection:Sn,_getBitCode:yi,_sqClosestPointOnSegment:Mo,isFlat:be,_flat:gh,polylineCenter:yh},Ts={project:e(function(t){return new N(t.lng,t.lat)},"project"),unproject:e(function(t){return new nt(t.y,t.x)},"unproject"),bounds:new at([-180,-90],[180,90])},Os={R:6378137,R_MINOR:6356752314245179e-9,bounds:new at([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project:e(function(t){var r=Math.PI/180,h=this.R,c=t.lat*r,m=this.R_MINOR/h,v=Math.sqrt(1-m*m),w=v*Math.sin(c),M=Math.tan(Math.PI/4-c/2)/Math.pow((1-w)/(1+w),v/2);return c=-h*Math.log(Math.max(M,1e-10)),new N(t.lng*r*h,c)},"project"),unproject:e(function(t){for(var r=180/Math.PI,h=this.R,c=this.R_MINOR/h,m=Math.sqrt(1-c*c),v=Math.exp(-t.y/h),w=Math.PI/2-2*Math.atan(v),M=0,S=.1,z;M<15&&Math.abs(S)>1e-7;M++)z=m*Math.sin(w),z=Math.pow((1-z)/(1+z),m/2),S=Math.PI/2-2*Math.atan(v*z)-w,w+=S;return new nt(w*r,t.x*r/h)},"unproject")},cp={__proto__:null,LonLat:Ts,Mercator:Os,SphericalMercator:os},pp=l({},ii,{code:"EPSG:3395",projection:Os,transformation:function(){var t=.5/(Math.PI*Os.R);return go(t,.5,-t,.5)}()}),vh=l({},ii,{code:"EPSG:4326",projection:Ts,transformation:go(1/180,1,-1/180,.5)}),dp=l({},Qt,{projection:Ts,transformation:go(1,0,-1,0),scale:e(function(t){return Math.pow(2,t)},"scale"),zoom:e(function(t){return Math.log(t)/Math.LN2},"zoom"),distance:e(function(t,r){var h=r.lng-t.lng,c=r.lat-t.lat;return Math.sqrt(h*h+c*c)},"distance"),infinite:!0});Qt.Earth=ii,Qt.EPSG3395=pp,Qt.EPSG3857=rs,Qt.EPSG900913=vc,Qt.EPSG4326=vh,Qt.Simple=dp;var Me=I.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:e(function(t){return t.addLayer(this),this},"addTo"),remove:e(function(){return this.removeFrom(this._map||this._mapToAdd)},"remove"),removeFrom:e(function(t){return t&&t.removeLayer(this),this},"removeFrom"),getPane:e(function(t){return this._map.getPane(t?this.options[t]||t:this.options.pane)},"getPane"),addInteractiveTarget:e(function(t){return this._map._targets[u(t)]=this,this},"addInteractiveTarget"),removeInteractiveTarget:e(function(t){return delete this._map._targets[u(t)],this},"removeInteractiveTarget"),getAttribution:e(function(){return this.options.attribution},"getAttribution"),_layerAdd:e(function(t){var r=t.target;if(r.hasLayer(this)){if(this._map=r,this._zoomAnimated=r._zoomAnimated,this.getEvents){var h=this.getEvents();r.on(h,this),this.once("remove",function(){r.off(h,this)},this)}this.onAdd(r),this.fire("add"),r.fire("layeradd",{layer:this})}},"_layerAdd")});ct.include({addLayer:e(function(t){if(!t._layerAdd)throw new Error("The provided object is not a Layer.");var r=u(t);return this._layers[r]?this:(this._layers[r]=t,t._mapToAdd=this,t.beforeAdd&&t.beforeAdd(this),this.whenReady(t._layerAdd,t),this)},"addLayer"),removeLayer:e(function(t){var r=u(t);return this._layers[r]?(this._loaded&&t.onRemove(this),delete this._layers[r],this._loaded&&(this.fire("layerremove",{layer:t}),t.fire("remove")),t._map=t._mapToAdd=null,this):this},"removeLayer"),hasLayer:e(function(t){return u(t)in this._layers},"hasLayer"),eachLayer:e(function(t,r){for(var h in this._layers)t.call(r,this._layers[h]);return this},"eachLayer"),_addLayers:e(function(t){t=t?P(t)?t:[t]:[];for(var r=0,h=t.length;r<h;r++)this.addLayer(t[r])},"_addLayers"),_addZoomLimit:e(function(t){(!isNaN(t.options.maxZoom)||!isNaN(t.options.minZoom))&&(this._zoomBoundLayers[u(t)]=t,this._updateZoomLevels())},"_addZoomLimit"),_removeZoomLimit:e(function(t){var r=u(t);this._zoomBoundLayers[r]&&(delete this._zoomBoundLayers[r],this._updateZoomLevels())},"_removeZoomLimit"),_updateZoomLevels:e(function(){var t=1/0,r=-1/0,h=this._getZoomSpan();for(var c in this._zoomBoundLayers){var m=this._zoomBoundLayers[c].options;t=m.minZoom===void 0?t:Math.min(t,m.minZoom),r=m.maxZoom===void 0?r:Math.max(r,m.maxZoom)}this._layersMaxZoom=r===-1/0?void 0:r,this._layersMinZoom=t===1/0?void 0:t,h!==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)},"_updateZoomLevels")});var Ni=Me.extend({initialize:e(function(t,r){y(this,r),this._layers={};var h,c;if(t)for(h=0,c=t.length;h<c;h++)this.addLayer(t[h])},"initialize"),addLayer:e(function(t){var r=this.getLayerId(t);return this._layers[r]=t,this._map&&this._map.addLayer(t),this},"addLayer"),removeLayer:e(function(t){var r=t in this._layers?t:this.getLayerId(t);return this._map&&this._layers[r]&&this._map.removeLayer(this._layers[r]),delete this._layers[r],this},"removeLayer"),hasLayer:e(function(t){var r=typeof t=="number"?t:this.getLayerId(t);return r in this._layers},"hasLayer"),clearLayers:e(function(){return this.eachLayer(this.removeLayer,this)},"clearLayers"),invoke:e(function(t){var r=Array.prototype.slice.call(arguments,1),h,c;for(h in this._layers)c=this._layers[h],c[t]&&c[t].apply(c,r);return this},"invoke"),onAdd:e(function(t){this.eachLayer(t.addLayer,t)},"onAdd"),onRemove:e(function(t){this.eachLayer(t.removeLayer,t)},"onRemove"),eachLayer:e(function(t,r){for(var h in this._layers)t.call(r,this._layers[h]);return this},"eachLayer"),getLayer:e(function(t){return this._layers[t]},"getLayer"),getLayers:e(function(){var t=[];return this.eachLayer(t.push,t),t},"getLayers"),setZIndex:e(function(t){return this.invoke("setZIndex",t)},"setZIndex"),getLayerId:e(function(t){return u(t)},"getLayerId")}),fp=e(function(t,r){return new Ni(t,r)},"layerGroup"),Ge=Ni.extend({addLayer:e(function(t){return this.hasLayer(t)?this:(t.addEventParent(this),Ni.prototype.addLayer.call(this,t),this.fire("layeradd",{layer:t}))},"addLayer"),removeLayer:e(function(t){return this.hasLayer(t)?(t in this._layers&&(t=this._layers[t]),t.removeEventParent(this),Ni.prototype.removeLayer.call(this,t),this.fire("layerremove",{layer:t})):this},"removeLayer"),setStyle:e(function(t){return this.invoke("setStyle",t)},"setStyle"),bringToFront:e(function(){return this.invoke("bringToFront")},"bringToFront"),bringToBack:e(function(){return this.invoke("bringToBack")},"bringToBack"),getBounds:e(function(){var t=new Ct;for(var r in this._layers){var h=this._layers[r];t.extend(h.getBounds?h.getBounds():h.getLatLng())}return t},"getBounds")}),mp=e(function(t,r){return new Ge(t,r)},"featureGroup"),Zi=xt.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:e(function(t){y(this,t)},"initialize"),createIcon:e(function(t){return this._createIcon("icon",t)},"createIcon"),createShadow:e(function(t){return this._createIcon("shadow",t)},"createShadow"),_createIcon:e(function(t,r){var h=this._getIconUrl(t);if(!h){if(t==="icon")throw new Error("iconUrl not set in Icon options (see the docs).");return null}var c=this._createImg(h,r&&r.tagName==="IMG"?r:null);return this._setIconStyles(c,t),(this.options.crossOrigin||this.options.crossOrigin==="")&&(c.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),c},"_createIcon"),_setIconStyles:e(function(t,r){var h=this.options,c=h[r+"Size"];typeof c=="number"&&(c=[c,c]);var m=U(c),v=U(r==="shadow"&&h.shadowAnchor||h.iconAnchor||m&&m.divideBy(2,!0));t.className="leaflet-marker-"+r+" "+(h.className||""),v&&(t.style.marginLeft=-v.x+"px",t.style.marginTop=-v.y+"px"),m&&(t.style.width=m.x+"px",t.style.height=m.y+"px")},"_setIconStyles"),_createImg:e(function(t,r){return r=r||document.createElement("img"),r.src=t,r},"_createImg"),_getIconUrl:e(function(t){return W.retina&&this.options[t+"RetinaUrl"]||this.options[t+"Url"]},"_getIconUrl")});function _p(t){return new Zi(t)}e(_p,"icon");var Po=Zi.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:e(function(t){return typeof Po.imagePath!="string"&&(Po.imagePath=this._detectIconPath()),(this.options.imagePath||Po.imagePath)+Zi.prototype._getIconUrl.call(this,t)},"_getIconUrl"),_stripUrl:e(function(t){var r=e(function(h,c,m){var v=c.exec(h);return v&&v[m]},"strip");return t=r(t,/^url\((['"])?(.+)\1\)$/,2),t&&r(t,/^(.*)marker-icon\.png$/,1)},"_stripUrl"),_detectIconPath:e(function(){var t=pt("div","leaflet-default-icon-path",document.body),r=bo(t,"background-image")||bo(t,"backgroundImage");if(document.body.removeChild(t),r=this._stripUrl(r),r)return r;var h=document.querySelector('link[href$="leaflet.css"]');return h?h.href.substring(0,h.href.length-11-1):""},"_detectIconPath")}),bh=Ae.extend({initialize:e(function(t){this._marker=t},"initialize"),addHooks:e(function(){var t=this._marker._icon;this._draggable||(this._draggable=new oi(t,t,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),et(t,"leaflet-marker-draggable")},"addHooks"),removeHooks:e(function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon&&Ot(this._marker._icon,"leaflet-marker-draggable")},"removeHooks"),moved:e(function(){return this._draggable&&this._draggable._moved},"moved"),_adjustPan:e(function(t){var r=this._marker,h=r._map,c=this._marker.options.autoPanSpeed,m=this._marker.options.autoPanPadding,v=mi(r._icon),w=h.getPixelBounds(),M=h.getPixelOrigin(),S=At(w.min._subtract(M).add(m),w.max._subtract(M).subtract(m));if(!S.contains(v)){var z=U((Math.max(S.max.x,v.x)-S.max.x)/(w.max.x-S.max.x)-(Math.min(S.min.x,v.x)-S.min.x)/(w.min.x-S.min.x),(Math.max(S.max.y,v.y)-S.max.y)/(w.max.y-S.max.y)-(Math.min(S.min.y,v.y)-S.min.y)/(w.min.y-S.min.y)).multiplyBy(c);h.panBy(z,{animate:!1}),this._draggable._newPos._add(z),this._draggable._startPos._add(z),Bt(r._icon,this._draggable._newPos),this._onDrag(t),this._panRequest=X(this._adjustPan.bind(this,t))}},"_adjustPan"),_onDragStart:e(function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},"_onDragStart"),_onPreDrag:e(function(t){this._marker.options.autoPan&&(ot(this._panRequest),this._panRequest=X(this._adjustPan.bind(this,t)))},"_onPreDrag"),_onDrag:e(function(t){var r=this._marker,h=r._shadow,c=mi(r._icon),m=r._map.layerPointToLatLng(c);h&&Bt(h,c),r._latlng=m,t.latlng=m,t.oldLatLng=this._oldLatLng,r.fire("move",t).fire("drag",t)},"_onDrag"),_onDragEnd:e(function(t){ot(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",t)},"_onDragEnd")}),Tn=Me.extend({options:{icon:new Po,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:e(function(t,r){y(this,r),this._latlng=it(t)},"initialize"),onAdd:e(function(t){this._zoomAnimated=this._zoomAnimated&&t.options.markerZoomAnimation,this._zoomAnimated&&t.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},"onAdd"),onRemove:e(function(t){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&t.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()},"onRemove"),getEvents:e(function(){return{zoom:this.update,viewreset:this.update}},"getEvents"),getLatLng:e(function(){return this._latlng},"getLatLng"),setLatLng:e(function(t){var r=this._latlng;return this._latlng=it(t),this.update(),this.fire("move",{oldLatLng:r,latlng:this._latlng})},"setLatLng"),setZIndexOffset:e(function(t){return this.options.zIndexOffset=t,this.update()},"setZIndexOffset"),getIcon:e(function(){return this.options.icon},"getIcon"),setIcon:e(function(t){return this.options.icon=t,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},"setIcon"),getElement:e(function(){return this._icon},"getElement"),update:e(function(){if(this._icon&&this._map){var t=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(t)}return this},"update"),_initIcon:e(function(){var t=this.options,r="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),h=t.icon.createIcon(this._icon),c=!1;h!==this._icon&&(this._icon&&this._removeIcon(),c=!0,t.title&&(h.title=t.title),h.tagName==="IMG"&&(h.alt=t.alt||"")),et(h,r),t.keyboard&&(h.tabIndex="0",h.setAttribute("role","button")),this._icon=h,t.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&$(h,"focus",this._panOnFocus,this);var m=t.icon.createShadow(this._shadow),v=!1;m!==this._shadow&&(this._removeShadow(),v=!0),m&&(et(m,r),m.alt=""),this._shadow=m,t.opacity<1&&this._updateOpacity(),c&&this.getPane().appendChild(this._icon),this._initInteraction(),m&&v&&this.getPane(t.shadowPane).appendChild(this._shadow)},"_initIcon"),_removeIcon:e(function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&Lt(this._icon,"focus",this._panOnFocus,this),kt(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},"_removeIcon"),_removeShadow:e(function(){this._shadow&&kt(this._shadow),this._shadow=null},"_removeShadow"),_setPos:e(function(t){this._icon&&Bt(this._icon,t),this._shadow&&Bt(this._shadow,t),this._zIndex=t.y+this.options.zIndexOffset,this._resetZIndex()},"_setPos"),_updateZIndex:e(function(t){this._icon&&(this._icon.style.zIndex=this._zIndex+t)},"_updateZIndex"),_animateZoom:e(function(t){var r=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center).round();this._setPos(r)},"_animateZoom"),_initInteraction:e(function(){if(this.options.interactive&&(et(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),bh)){var t=this.options.draggable;this.dragging&&(t=this.dragging.enabled(),this.dragging.disable()),this.dragging=new bh(this),t&&this.dragging.enable()}},"_initInteraction"),setOpacity:e(function(t){return this.options.opacity=t,this._map&&this._updateOpacity(),this},"setOpacity"),_updateOpacity:e(function(){var t=this.options.opacity;this._icon&&ve(this._icon,t),this._shadow&&ve(this._shadow,t)},"_updateOpacity"),_bringToFront:e(function(){this._updateZIndex(this.options.riseOffset)},"_bringToFront"),_resetZIndex:e(function(){this._updateZIndex(0)},"_resetZIndex"),_panOnFocus:e(function(){var t=this._map;if(t){var r=this.options.icon.options,h=r.iconSize?U(r.iconSize):U(0,0),c=r.iconAnchor?U(r.iconAnchor):U(0,0);t.panInside(this._latlng,{paddingTopLeft:c,paddingBottomRight:h.subtract(c)})}},"_panOnFocus"),_getPopupAnchor:e(function(){return this.options.icon.options.popupAnchor},"_getPopupAnchor"),_getTooltipAnchor:e(function(){return this.options.icon.options.tooltipAnchor},"_getTooltipAnchor")});function gp(t,r){return new Tn(t,r)}e(gp,"marker");var ni=Me.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:e(function(t){this._renderer=t.getRenderer(this)},"beforeAdd"),onAdd:e(function(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},"onAdd"),onRemove:e(function(){this._renderer._removePath(this)},"onRemove"),redraw:e(function(){return this._map&&this._renderer._updatePath(this),this},"redraw"),setStyle:e(function(t){return y(this,t),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&t&&Object.prototype.hasOwnProperty.call(t,"weight")&&this._updateBounds()),this},"setStyle"),bringToFront:e(function(){return this._renderer&&this._renderer._bringToFront(this),this},"bringToFront"),bringToBack:e(function(){return this._renderer&&this._renderer._bringToBack(this),this},"bringToBack"),getElement:e(function(){return this._path},"getElement"),_reset:e(function(){this._project(),this._update()},"_reset"),_clickTolerance:e(function(){return(this.options.stroke?this.options.weight/2:0)+(this._renderer.options.tolerance||0)},"_clickTolerance")}),On=ni.extend({options:{fill:!0,radius:10},initialize:e(function(t,r){y(this,r),this._latlng=it(t),this._radius=this.options.radius},"initialize"),setLatLng:e(function(t){var r=this._latlng;return this._latlng=it(t),this.redraw(),this.fire("move",{oldLatLng:r,latlng:this._latlng})},"setLatLng"),getLatLng:e(function(){return this._latlng},"getLatLng"),setRadius:e(function(t){return this.options.radius=this._radius=t,this.redraw()},"setRadius"),getRadius:e(function(){return this._radius},"getRadius"),setStyle:e(function(t){var r=t&&t.radius||this._radius;return ni.prototype.setStyle.call(this,t),this.setRadius(r),this},"setStyle"),_project:e(function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},"_project"),_updateBounds:e(function(){var t=this._radius,r=this._radiusY||t,h=this._clickTolerance(),c=[t+h,r+h];this._pxBounds=new at(this._point.subtract(c),this._point.add(c))},"_updateBounds"),_update:e(function(){this._map&&this._updatePath()},"_update"),_updatePath:e(function(){this._renderer._updateCircle(this)},"_updatePath"),_empty:e(function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},"_empty"),_containsPoint:e(function(t){return t.distanceTo(this._point)<=this._radius+this._clickTolerance()},"_containsPoint")});function yp(t,r){return new On(t,r)}e(yp,"circleMarker");var zs=On.extend({initialize:e(function(t,r,h){if(typeof r=="number"&&(r=l({},h,{radius:r})),y(this,r),this._latlng=it(t),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},"initialize"),setRadius:e(function(t){return this._mRadius=t,this.redraw()},"setRadius"),getRadius:e(function(){return this._mRadius},"getRadius"),getBounds:e(function(){var t=[this._radius,this._radiusY||this._radius];return new Ct(this._map.layerPointToLatLng(this._point.subtract(t)),this._map.layerPointToLatLng(this._point.add(t)))},"getBounds"),setStyle:ni.prototype.setStyle,_project:e(function(){var t=this._latlng.lng,r=this._latlng.lat,h=this._map,c=h.options.crs;if(c.distance===ii.distance){var m=Math.PI/180,v=this._mRadius/ii.R/m,w=h.project([r+v,t]),M=h.project([r-v,t]),S=w.add(M).divideBy(2),z=h.unproject(S).lat,F=Math.acos((Math.cos(v*m)-Math.sin(r*m)*Math.sin(z*m))/(Math.cos(r*m)*Math.cos(z*m)))/m;(isNaN(F)||F===0)&&(F=v/Math.cos(Math.PI/180*r)),this._point=S.subtract(h.getPixelOrigin()),this._radius=isNaN(F)?0:S.x-h.project([z,t-F]).x,this._radiusY=S.y-w.y}else{var V=c.unproject(c.project(this._latlng).subtract([this._mRadius,0]));this._point=h.latLngToLayerPoint(this._latlng),this._radius=this._point.x-h.latLngToLayerPoint(V).x}this._updateBounds()},"_project")});function vp(t,r,h){return new zs(t,r,h)}e(vp,"circle");var He=ni.extend({options:{smoothFactor:1,noClip:!1},initialize:e(function(t,r){y(this,r),this._setLatLngs(t)},"initialize"),getLatLngs:e(function(){return this._latlngs},"getLatLngs"),setLatLngs:e(function(t){return this._setLatLngs(t),this.redraw()},"setLatLngs"),isEmpty:e(function(){return!this._latlngs.length},"isEmpty"),closestLayerPoint:e(function(t){for(var r=1/0,h=null,c=Mo,m,v,w=0,M=this._parts.length;w<M;w++)for(var S=this._parts[w],z=1,F=S.length;z<F;z++){m=S[z-1],v=S[z];var V=c(t,m,v,!0);V<r&&(r=V,h=c(t,m,v))}return h&&(h.distance=Math.sqrt(r)),h},"closestLayerPoint"),getCenter:e(function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return yh(this._defaultShape(),this._map.options.crs)},"getCenter"),getBounds:e(function(){return this._bounds},"getBounds"),addLatLng:e(function(t,r){return r=r||this._defaultShape(),t=it(t),r.push(t),this._bounds.extend(t),this.redraw()},"addLatLng"),_setLatLngs:e(function(t){this._bounds=new Ct,this._latlngs=this._convertLatLngs(t)},"_setLatLngs"),_defaultShape:e(function(){return be(this._latlngs)?this._latlngs:this._latlngs[0]},"_defaultShape"),_convertLatLngs:e(function(t){for(var r=[],h=be(t),c=0,m=t.length;c<m;c++)h?(r[c]=it(t[c]),this._bounds.extend(r[c])):r[c]=this._convertLatLngs(t[c]);return r},"_convertLatLngs"),_project:e(function(){var t=new at;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,t),this._bounds.isValid()&&t.isValid()&&(this._rawPxBounds=t,this._updateBounds())},"_project"),_updateBounds:e(function(){var t=this._clickTolerance(),r=new N(t,t);this._rawPxBounds&&(this._pxBounds=new at([this._rawPxBounds.min.subtract(r),this._rawPxBounds.max.add(r)]))},"_updateBounds"),_projectLatlngs:e(function(t,r,h){var c=t[0]instanceof nt,m=t.length,v,w;if(c){for(w=[],v=0;v<m;v++)w[v]=this._map.latLngToLayerPoint(t[v]),h.extend(w[v]);r.push(w)}else for(v=0;v<m;v++)this._projectLatlngs(t[v],r,h)},"_projectLatlngs"),_clipPoints:e(function(){var t=this._renderer._bounds;if(this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(t))){if(this.options.noClip){this._parts=this._rings;return}var r=this._parts,h,c,m,v,w,M,S;for(h=0,m=0,v=this._rings.length;h<v;h++)for(S=this._rings[h],c=0,w=S.length;c<w-1;c++)M=_h(S[c],S[c+1],t,c,!0),M&&(r[m]=r[m]||[],r[m].push(M[0]),(M[1]!==S[c+1]||c===w-2)&&(r[m].push(M[1]),m++))}},"_clipPoints"),_simplifyPoints:e(function(){for(var t=this._parts,r=this.options.smoothFactor,h=0,c=t.length;h<c;h++)t[h]=dh(t[h],r)},"_simplifyPoints"),_update:e(function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},"_update"),_updatePath:e(function(){this._renderer._updatePoly(this)},"_updatePath"),_containsPoint:e(function(t,r){var h,c,m,v,w,M,S=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(h=0,v=this._parts.length;h<v;h++)for(M=this._parts[h],c=0,w=M.length,m=w-1;c<w;m=c++)if(!(!r&&c===0)&&fh(t,M[m],M[c])<=S)return!0;return!1},"_containsPoint")});function bp(t,r){return new He(t,r)}e(bp,"polyline"),He._flat=gh;var Fi=He.extend({options:{fill:!0},isEmpty:e(function(){return!this._latlngs.length||!this._latlngs[0].length},"isEmpty"),getCenter:e(function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return ph(this._defaultShape(),this._map.options.crs)},"getCenter"),_convertLatLngs:e(function(t){var r=He.prototype._convertLatLngs.call(this,t),h=r.length;return h>=2&&r[0]instanceof nt&&r[0].equals(r[h-1])&&r.pop(),r},"_convertLatLngs"),_setLatLngs:e(function(t){He.prototype._setLatLngs.call(this,t),be(this._latlngs)&&(this._latlngs=[this._latlngs])},"_setLatLngs"),_defaultShape:e(function(){return be(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},"_defaultShape"),_clipPoints:e(function(){var t=this._renderer._bounds,r=this.options.weight,h=new N(r,r);if(t=new at(t.min.subtract(h),t.max.add(h)),this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(t))){if(this.options.noClip){this._parts=this._rings;return}for(var c=0,m=this._rings.length,v;c<m;c++)v=ch(this._rings[c],t,!0),v.length&&this._parts.push(v)}},"_clipPoints"),_updatePath:e(function(){this._renderer._updatePoly(this,!0)},"_updatePath"),_containsPoint:e(function(t){var r=!1,h,c,m,v,w,M,S,z;if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(v=0,S=this._parts.length;v<S;v++)for(h=this._parts[v],w=0,z=h.length,M=z-1;w<z;M=w++)c=h[w],m=h[M],c.y>t.y!=m.y>t.y&&t.x<(m.x-c.x)*(t.y-c.y)/(m.y-c.y)+c.x&&(r=!r);return r||He.prototype._containsPoint.call(this,t,!0)},"_containsPoint")});function xp(t,r){return new Fi(t,r)}e(xp,"polygon");var Ue=Ge.extend({initialize:e(function(t,r){y(this,r),this._layers={},t&&this.addData(t)},"initialize"),addData:e(function(t){var r=P(t)?t:t.features,h,c,m;if(r){for(h=0,c=r.length;h<c;h++)m=r[h],(m.geometries||m.geometry||m.features||m.coordinates)&&this.addData(m);return this}var v=this.options;if(v.filter&&!v.filter(t))return this;var w=zn(t,v);return w?(w.feature=An(t),w.defaultOptions=w.options,this.resetStyle(w),v.onEachFeature&&v.onEachFeature(t,w),this.addLayer(w)):this},"addData"),resetStyle:e(function(t){return t===void 0?this.eachLayer(this.resetStyle,this):(t.options=l({},t.defaultOptions),this._setLayerStyle(t,this.options.style),this)},"resetStyle"),setStyle:e(function(t){return this.eachLayer(function(r){this._setLayerStyle(r,t)},this)},"setStyle"),_setLayerStyle:e(function(t,r){t.setStyle&&(typeof r=="function"&&(r=r(t.feature)),t.setStyle(r))},"_setLayerStyle")});function zn(t,r){var h=t.type==="Feature"?t.geometry:t,c=h?h.coordinates:null,m=[],v=r&&r.pointToLayer,w=r&&r.coordsToLatLng||Is,M,S,z,F;if(!c&&!h)return null;switch(h.type){case"Point":return M=w(c),xh(v,t,M,r);case"MultiPoint":for(z=0,F=c.length;z<F;z++)M=w(c[z]),m.push(xh(v,t,M,r));return new Ge(m);case"LineString":case"MultiLineString":return S=In(c,h.type==="LineString"?0:1,w),new He(S,r);case"Polygon":case"MultiPolygon":return S=In(c,h.type==="Polygon"?1:2,w),new Fi(S,r);case"GeometryCollection":for(z=0,F=h.geometries.length;z<F;z++){var V=zn({geometry:h.geometries[z],type:"Feature",properties:t.properties},r);V&&m.push(V)}return new Ge(m);case"FeatureCollection":for(z=0,F=h.features.length;z<F;z++){var rt=zn(h.features[z],r);rt&&m.push(rt)}return new Ge(m);default:throw new Error("Invalid GeoJSON object.")}}e(zn,"geometryToLayer");function xh(t,r,h,c){return t?t(r,h):new Tn(h,c&&c.markersInheritOptions&&c)}e(xh,"_pointToLayer");function Is(t){return new nt(t[1],t[0],t[2])}e(Is,"coordsToLatLng");function In(t,r,h){for(var c=[],m=0,v=t.length,w;m<v;m++)w=r?In(t[m],r-1,h):(h||Is)(t[m]),c.push(w);return c}e(In,"coordsToLatLngs");function Ds(t,r){return t=it(t),t.alt!==void 0?[f(t.lng,r),f(t.lat,r),f(t.alt,r)]:[f(t.lng,r),f(t.lat,r)]}e(Ds,"latLngToCoords");function Dn(t,r,h,c){for(var m=[],v=0,w=t.length;v<w;v++)m.push(r?Dn(t[v],be(t[v])?0:r-1,h,c):Ds(t[v],c));return!r&&h&&m.length>0&&m.push(m[0].slice()),m}e(Dn,"latLngsToCoords");function Gi(t,r){return t.feature?l({},t.feature,{geometry:r}):An(r)}e(Gi,"getFeature");function An(t){return t.type==="Feature"||t.type==="FeatureCollection"?t:{type:"Feature",properties:{},geometry:t}}e(An,"asFeature");var As={toGeoJSON:e(function(t){return Gi(this,{type:"Point",coordinates:Ds(this.getLatLng(),t)})},"toGeoJSON")};Tn.include(As),zs.include(As),On.include(As),He.include({toGeoJSON:e(function(t){var r=!be(this._latlngs),h=Dn(this._latlngs,r?1:0,!1,t);return Gi(this,{type:(r?"Multi":"")+"LineString",coordinates:h})},"toGeoJSON")}),Fi.include({toGeoJSON:e(function(t){var r=!be(this._latlngs),h=r&&!be(this._latlngs[0]),c=Dn(this._latlngs,h?2:r?1:0,!0,t);return r||(c=[c]),Gi(this,{type:(h?"Multi":"")+"Polygon",coordinates:c})},"toGeoJSON")}),Ni.include({toMultiPoint:e(function(t){var r=[];return this.eachLayer(function(h){r.push(h.toGeoJSON(t).geometry.coordinates)}),Gi(this,{type:"MultiPoint",coordinates:r})},"toMultiPoint"),toGeoJSON:e(function(t){var r=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(r==="MultiPoint")return this.toMultiPoint(t);var h=r==="GeometryCollection",c=[];return this.eachLayer(function(m){if(m.toGeoJSON){var v=m.toGeoJSON(t);if(h)c.push(v.geometry);else{var w=An(v);w.type==="FeatureCollection"?c.push.apply(c,w.features):c.push(w)}}}),h?Gi(this,{geometries:c,type:"GeometryCollection"}):{type:"FeatureCollection",features:c}},"toGeoJSON")});function Lh(t,r){return new Ue(t,r)}e(Lh,"geoJSON");var Lp=Lh,Bn=Me.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:e(function(t,r,h){this._url=t,this._bounds=_t(r),y(this,h)},"initialize"),onAdd:e(function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(et(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},"onAdd"),onRemove:e(function(){kt(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},"onRemove"),setOpacity:e(function(t){return this.options.opacity=t,this._image&&this._updateOpacity(),this},"setOpacity"),setStyle:e(function(t){return t.opacity&&this.setOpacity(t.opacity),this},"setStyle"),bringToFront:e(function(){return this._map&&Bi(this._image),this},"bringToFront"),bringToBack:e(function(){return this._map&&Ri(this._image),this},"bringToBack"),setUrl:e(function(t){return this._url=t,this._image&&(this._image.src=t),this},"setUrl"),setBounds:e(function(t){return this._bounds=_t(t),this._map&&this._reset(),this},"setBounds"),getEvents:e(function(){var t={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},"getEvents"),setZIndex:e(function(t){return this.options.zIndex=t,this._updateZIndex(),this},"setZIndex"),getBounds:e(function(){return this._bounds},"getBounds"),getElement:e(function(){return this._image},"getElement"),_initImage:e(function(){var t=this._url.tagName==="IMG",r=this._image=t?this._url:pt("img");if(et(r,"leaflet-image-layer"),this._zoomAnimated&&et(r,"leaflet-zoom-animated"),this.options.className&&et(r,this.options.className),r.onselectstart=d,r.onmousemove=d,r.onload=i(this.fire,this,"load"),r.onerror=i(this._overlayOnError,this,"error"),(this.options.crossOrigin||this.options.crossOrigin==="")&&(r.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),t){this._url=r.src;return}r.src=this._url,r.alt=this.options.alt},"_initImage"),_animateZoom:e(function(t){var r=this._map.getZoomScale(t.zoom),h=this._map._latLngBoundsToNewLayerBounds(this._bounds,t.zoom,t.center).min;fi(this._image,h,r)},"_animateZoom"),_reset:e(function(){var t=this._image,r=new at(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),h=r.getSize();Bt(t,r.min),t.style.width=h.x+"px",t.style.height=h.y+"px"},"_reset"),_updateOpacity:e(function(){ve(this._image,this.options.opacity)},"_updateOpacity"),_updateZIndex:e(function(){this._image&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._image.style.zIndex=this.options.zIndex)},"_updateZIndex"),_overlayOnError:e(function(){this.fire("error");var t=this.options.errorOverlayUrl;t&&this._url!==t&&(this._url=t,this._image.src=t)},"_overlayOnError"),getCenter:e(function(){return this._bounds.getCenter()},"getCenter")}),wp=e(function(t,r,h){return new Bn(t,r,h)},"imageOverlay"),wh=Bn.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:e(function(){var t=this._url.tagName==="VIDEO",r=this._image=t?this._url:pt("video");if(et(r,"leaflet-image-layer"),this._zoomAnimated&&et(r,"leaflet-zoom-animated"),this.options.className&&et(r,this.options.className),r.onselectstart=d,r.onmousemove=d,r.onloadeddata=i(this.fire,this,"load"),t){for(var h=r.getElementsByTagName("source"),c=[],m=0;m<h.length;m++)c.push(h[m].src);this._url=h.length>0?c:[r.src];return}P(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(r.style,"objectFit")&&(r.style.objectFit="fill"),r.autoplay=!!this.options.autoplay,r.loop=!!this.options.loop,r.muted=!!this.options.muted,r.playsInline=!!this.options.playsInline;for(var v=0;v<this._url.length;v++){var w=pt("source");w.src=this._url[v],r.appendChild(w)}},"_initImage")});function Cp(t,r,h){return new wh(t,r,h)}e(Cp,"videoOverlay");var Ch=Bn.extend({_initImage:e(function(){var t=this._image=this._url;et(t,"leaflet-image-layer"),this._zoomAnimated&&et(t,"leaflet-zoom-animated"),this.options.className&&et(t,this.options.className),t.onselectstart=d,t.onmousemove=d},"_initImage")});function kp(t,r,h){return new Ch(t,r,h)}e(kp,"svgOverlay");var Be=Me.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:e(function(t,r){t&&(t instanceof nt||P(t))?(this._latlng=it(t),y(this,r)):(y(this,t),this._source=r),this.options.content&&(this._content=this.options.content)},"initialize"),openOn:e(function(t){return t=arguments.length?t:this._source._map,t.hasLayer(this)||t.addLayer(this),this},"openOn"),close:e(function(){return this._map&&this._map.removeLayer(this),this},"close"),toggle:e(function(t){return this._map?this.close():(arguments.length?this._source=t:t=this._source,this._prepareOpen(),this.openOn(t._map)),this},"toggle"),onAdd:e(function(t){this._zoomAnimated=t._zoomAnimated,this._container||this._initLayout(),t._fadeAnimated&&ve(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),t._fadeAnimated&&ve(this._container,1),this.bringToFront(),this.options.interactive&&(et(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},"onAdd"),onRemove:e(function(t){t._fadeAnimated?(ve(this._container,0),this._removeTimeout=setTimeout(i(kt,void 0,this._container),200)):kt(this._container),this.options.interactive&&(Ot(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},"onRemove"),getLatLng:e(function(){return this._latlng},"getLatLng"),setLatLng:e(function(t){return this._latlng=it(t),this._map&&(this._updatePosition(),this._adjustPan()),this},"setLatLng"),getContent:e(function(){return this._content},"getContent"),setContent:e(function(t){return this._content=t,this.update(),this},"setContent"),getElement:e(function(){return this._container},"getElement"),update:e(function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},"update"),getEvents:e(function(){var t={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},"getEvents"),isOpen:e(function(){return!!this._map&&this._map.hasLayer(this)},"isOpen"),bringToFront:e(function(){return this._map&&Bi(this._container),this},"bringToFront"),bringToBack:e(function(){return this._map&&Ri(this._container),this},"bringToBack"),_prepareOpen:e(function(t){var r=this._source;if(!r._map)return!1;if(r instanceof Ge){r=null;var h=this._source._layers;for(var c in h)if(h[c]._map){r=h[c];break}if(!r)return!1;this._source=r}if(!t)if(r.getCenter)t=r.getCenter();else if(r.getLatLng)t=r.getLatLng();else if(r.getBounds)t=r.getBounds().getCenter();else throw new Error("Unable to get source layer LatLng.");return this.setLatLng(t),this._map&&this.update(),!0},"_prepareOpen"),_updateContent:e(function(){if(this._content){var t=this._contentNode,r=typeof this._content=="function"?this._content(this._source||this):this._content;if(typeof r=="string")t.innerHTML=r;else{for(;t.hasChildNodes();)t.removeChild(t.firstChild);t.appendChild(r)}this.fire("contentupdate")}},"_updateContent"),_updatePosition:e(function(){if(this._map){var t=this._map.latLngToLayerPoint(this._latlng),r=U(this.options.offset),h=this._getAnchor();this._zoomAnimated?Bt(this._container,t.add(h)):r=r.add(t).add(h);var c=this._containerBottom=-r.y,m=this._containerLeft=-Math.round(this._containerWidth/2)+r.x;this._container.style.bottom=c+"px",this._container.style.left=m+"px"}},"_updatePosition"),_getAnchor:e(function(){return[0,0]},"_getAnchor")});ct.include({_initOverlay:e(function(t,r,h,c){var m=r;return m instanceof t||(m=new t(c).setContent(r)),h&&m.setLatLng(h),m},"_initOverlay")}),Me.include({_initOverlay:e(function(t,r,h,c){var m=h;return m instanceof t?(y(m,c),m._source=this):(m=r&&!c?r:new t(c,this),m.setContent(h)),m},"_initOverlay")});var Rn=Be.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:e(function(t){return t=arguments.length?t:this._source._map,!t.hasLayer(this)&&t._popup&&t._popup.options.autoClose&&t.removeLayer(t._popup),t._popup=this,Be.prototype.openOn.call(this,t)},"openOn"),onAdd:e(function(t){Be.prototype.onAdd.call(this,t),t.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof ni||this._source.on("preclick",_i))},"onAdd"),onRemove:e(function(t){Be.prototype.onRemove.call(this,t),t.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof ni||this._source.off("preclick",_i))},"onRemove"),getEvents:e(function(){var t=Be.prototype.getEvents.call(this);return(this.options.closeOnClick!==void 0?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(t.preclick=this.close),this.options.keepInView&&(t.moveend=this._adjustPan),t},"getEvents"),_initLayout:e(function(){var t="leaflet-popup",r=this._container=pt("div",t+" "+(this.options.className||"")+" leaflet-zoom-animated"),h=this._wrapper=pt("div",t+"-content-wrapper",r);if(this._contentNode=pt("div",t+"-content",h),Co(r),Cs(this._contentNode),$(r,"contextmenu",_i),this._tipContainer=pt("div",t+"-tip-container",r),this._tip=pt("div",t+"-tip",this._tipContainer),this.options.closeButton){var c=this._closeButton=pt("a",t+"-close-button",r);c.setAttribute("role","button"),c.setAttribute("aria-label","Close popup"),c.href="#close",c.innerHTML='<span aria-hidden="true">&#215;</span>',$(c,"click",function(m){$t(m),this.close()},this)}},"_initLayout"),_updateLayout:e(function(){var t=this._contentNode,r=t.style;r.width="",r.whiteSpace="nowrap";var h=t.offsetWidth;h=Math.min(h,this.options.maxWidth),h=Math.max(h,this.options.minWidth),r.width=h+1+"px",r.whiteSpace="",r.height="";var c=t.offsetHeight,m=this.options.maxHeight,v="leaflet-popup-scrolled";m&&c>m?(r.height=m+"px",et(t,v)):Ot(t,v),this._containerWidth=this._container.offsetWidth},"_updateLayout"),_animateZoom:e(function(t){var r=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center),h=this._getAnchor();Bt(this._container,r.add(h))},"_animateZoom"),_adjustPan:e(function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning){this._autopanning=!1;return}var t=this._map,r=parseInt(bo(this._container,"marginBottom"),10)||0,h=this._container.offsetHeight+r,c=this._containerWidth,m=new N(this._containerLeft,-h-this._containerBottom);m._add(mi(this._container));var v=t.layerPointToContainerPoint(m),w=U(this.options.autoPanPadding),M=U(this.options.autoPanPaddingTopLeft||w),S=U(this.options.autoPanPaddingBottomRight||w),z=t.getSize(),F=0,V=0;v.x+c+S.x>z.x&&(F=v.x+c-z.x+S.x),v.x-F-M.x<0&&(F=v.x-M.x),v.y+h+S.y>z.y&&(V=v.y+h-z.y+S.y),v.y-V-M.y<0&&(V=v.y-M.y),(F||V)&&(this.options.keepInView&&(this._autopanning=!0),t.fire("autopanstart").panBy([F,V]))}},"_adjustPan"),_getAnchor:e(function(){return U(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])},"_getAnchor")}),Mp=e(function(t,r){return new Rn(t,r)},"popup");ct.mergeOptions({closePopupOnClick:!0}),ct.include({openPopup:e(function(t,r,h){return this._initOverlay(Rn,t,r,h).openOn(this),this},"openPopup"),closePopup:e(function(t){return t=arguments.length?t:this._popup,t&&t.close(),this},"closePopup")}),Me.include({bindPopup:e(function(t,r){return this._popup=this._initOverlay(Rn,this._popup,t,r),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},"bindPopup"),unbindPopup:e(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},"unbindPopup"),openPopup:e(function(t){return this._popup&&(this instanceof Ge||(this._popup._source=this),this._popup._prepareOpen(t||this._latlng)&&this._popup.openOn(this._map)),this},"openPopup"),closePopup:e(function(){return this._popup&&this._popup.close(),this},"closePopup"),togglePopup:e(function(){return this._popup&&this._popup.toggle(this),this},"togglePopup"),isPopupOpen:e(function(){return this._popup?this._popup.isOpen():!1},"isPopupOpen"),setPopupContent:e(function(t){return this._popup&&this._popup.setContent(t),this},"setPopupContent"),getPopup:e(function(){return this._popup},"getPopup"),_openPopup:e(function(t){if(!(!this._popup||!this._map)){gi(t);var r=t.layer||t.target;if(this._popup._source===r&&!(r instanceof ni)){this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(t.latlng);return}this._popup._source=r,this.openPopup(t.latlng)}},"_openPopup"),_movePopup:e(function(t){this._popup.setLatLng(t.latlng)},"_movePopup"),_onKeyPress:e(function(t){t.originalEvent.keyCode===13&&this._openPopup(t)},"_onKeyPress")});var Nn=Be.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:e(function(t){Be.prototype.onAdd.call(this,t),this.setOpacity(this.options.opacity),t.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},"onAdd"),onRemove:e(function(t){Be.prototype.onRemove.call(this,t),t.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},"onRemove"),getEvents:e(function(){var t=Be.prototype.getEvents.call(this);return this.options.permanent||(t.preclick=this.close),t},"getEvents"),_initLayout:e(function(){var t="leaflet-tooltip",r=t+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=pt("div",r),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+u(this))},"_initLayout"),_updateLayout:e(function(){},"_updateLayout"),_adjustPan:e(function(){},"_adjustPan"),_setPosition:e(function(t){var r,h,c=this._map,m=this._container,v=c.latLngToContainerPoint(c.getCenter()),w=c.layerPointToContainerPoint(t),M=this.options.direction,S=m.offsetWidth,z=m.offsetHeight,F=U(this.options.offset),V=this._getAnchor();M==="top"?(r=S/2,h=z):M==="bottom"?(r=S/2,h=0):M==="center"?(r=S/2,h=z/2):M==="right"?(r=0,h=z/2):M==="left"?(r=S,h=z/2):w.x<v.x?(M="right",r=0,h=z/2):(M="left",r=S+(F.x+V.x)*2,h=z/2),t=t.subtract(U(r,h,!0)).add(F).add(V),Ot(m,"leaflet-tooltip-right"),Ot(m,"leaflet-tooltip-left"),Ot(m,"leaflet-tooltip-top"),Ot(m,"leaflet-tooltip-bottom"),et(m,"leaflet-tooltip-"+M),Bt(m,t)},"_setPosition"),_updatePosition:e(function(){var t=this._map.latLngToLayerPoint(this._latlng);this._setPosition(t)},"_updatePosition"),setOpacity:e(function(t){this.options.opacity=t,this._container&&ve(this._container,t)},"setOpacity"),_animateZoom:e(function(t){var r=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center);this._setPosition(r)},"_animateZoom"),_getAnchor:e(function(){return U(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])},"_getAnchor")}),Pp=e(function(t,r){return new Nn(t,r)},"tooltip");ct.include({openTooltip:e(function(t,r,h){return this._initOverlay(Nn,t,r,h).openOn(this),this},"openTooltip"),closeTooltip:e(function(t){return t.close(),this},"closeTooltip")}),Me.include({bindTooltip:e(function(t,r){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(Nn,this._tooltip,t,r),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},"bindTooltip"),unbindTooltip:e(function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},"unbindTooltip"),_initTooltipInteractions:e(function(t){if(!(!t&&this._tooltipHandlersAdded)){var r=t?"off":"on",h={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?h.add=this._openTooltip:(h.mouseover=this._openTooltip,h.mouseout=this.closeTooltip,h.click=this._openTooltip,this._map?this._addFocusListeners():h.add=this._addFocusListeners),this._tooltip.options.sticky&&(h.mousemove=this._moveTooltip),this[r](h),this._tooltipHandlersAdded=!t}},"_initTooltipInteractions"),openTooltip:e(function(t){return this._tooltip&&(this instanceof Ge||(this._tooltip._source=this),this._tooltip._prepareOpen(t)&&(this._tooltip.openOn(this._map),this.getElement?this._setAriaDescribedByOnLayer(this):this.eachLayer&&this.eachLayer(this._setAriaDescribedByOnLayer,this))),this},"openTooltip"),closeTooltip:e(function(){if(this._tooltip)return this._tooltip.close()},"closeTooltip"),toggleTooltip:e(function(){return this._tooltip&&this._tooltip.toggle(this),this},"toggleTooltip"),isTooltipOpen:e(function(){return this._tooltip.isOpen()},"isTooltipOpen"),setTooltipContent:e(function(t){return this._tooltip&&this._tooltip.setContent(t),this},"setTooltipContent"),getTooltip:e(function(){return this._tooltip},"getTooltip"),_addFocusListeners:e(function(){this.getElement?this._addFocusListenersOnLayer(this):this.eachLayer&&this.eachLayer(this._addFocusListenersOnLayer,this)},"_addFocusListeners"),_addFocusListenersOnLayer:e(function(t){var r=typeof t.getElement=="function"&&t.getElement();r&&($(r,"focus",function(){this._tooltip._source=t,this.openTooltip()},this),$(r,"blur",this.closeTooltip,this))},"_addFocusListenersOnLayer"),_setAriaDescribedByOnLayer:e(function(t){var r=typeof t.getElement=="function"&&t.getElement();r&&r.setAttribute("aria-describedby",this._tooltip._container.id)},"_setAriaDescribedByOnLayer"),_openTooltip:e(function(t){if(!(!this._tooltip||!this._map)){if(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag){this._openOnceFlag=!0;var r=this;this._map.once("moveend",function(){r._openOnceFlag=!1,r._openTooltip(t)});return}this._tooltip._source=t.layer||t.target,this.openTooltip(this._tooltip.options.sticky?t.latlng:void 0)}},"_openTooltip"),_moveTooltip:e(function(t){var r=t.latlng,h,c;this._tooltip.options.sticky&&t.originalEvent&&(h=this._map.mouseEventToContainerPoint(t.originalEvent),c=this._map.containerPointToLayerPoint(h),r=this._map.layerPointToLatLng(c)),this._tooltip.setLatLng(r)},"_moveTooltip")});var kh=Zi.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:e(function(t){var r=t&&t.tagName==="DIV"?t:document.createElement("div"),h=this.options;if(h.html instanceof Element?(Cn(r),r.appendChild(h.html)):r.innerHTML=h.html!==!1?h.html:"",h.bgPos){var c=U(h.bgPos);r.style.backgroundPosition=-c.x+"px "+-c.y+"px"}return this._setIconStyles(r,"icon"),r},"createIcon"),createShadow:e(function(){return null},"createShadow")});function Ep(t){return new kh(t)}e(Ep,"divIcon"),Zi.Default=Po;var Eo=Me.extend({options:{tileSize:256,opacity:1,updateWhenIdle:W.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:e(function(t){y(this,t)},"initialize"),onAdd:e(function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},"onAdd"),beforeAdd:e(function(t){t._addZoomLimit(this)},"beforeAdd"),onRemove:e(function(t){this._removeAllTiles(),kt(this._container),t._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},"onRemove"),bringToFront:e(function(){return this._map&&(Bi(this._container),this._setAutoZIndex(Math.max)),this},"bringToFront"),bringToBack:e(function(){return this._map&&(Ri(this._container),this._setAutoZIndex(Math.min)),this},"bringToBack"),getContainer:e(function(){return this._container},"getContainer"),setOpacity:e(function(t){return this.options.opacity=t,this._updateOpacity(),this},"setOpacity"),setZIndex:e(function(t){return this.options.zIndex=t,this._updateZIndex(),this},"setZIndex"),isLoading:e(function(){return this._loading},"isLoading"),redraw:e(function(){if(this._map){this._removeAllTiles();var t=this._clampZoom(this._map.getZoom());t!==this._tileZoom&&(this._tileZoom=t,this._updateLevels()),this._update()}return this},"redraw"),getEvents:e(function(){var t={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=p(this._onMoveEnd,this.options.updateInterval,this)),t.move=this._onMove),this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},"getEvents"),createTile:e(function(){return document.createElement("div")},"createTile"),getTileSize:e(function(){var t=this.options.tileSize;return t instanceof N?t:new N(t,t)},"getTileSize"),_updateZIndex:e(function(){this._container&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._container.style.zIndex=this.options.zIndex)},"_updateZIndex"),_setAutoZIndex:e(function(t){for(var r=this.getPane().children,h=-t(-1/0,1/0),c=0,m=r.length,v;c<m;c++)v=r[c].style.zIndex,r[c]!==this._container&&v&&(h=t(h,+v));isFinite(h)&&(this.options.zIndex=h+t(-1,1),this._updateZIndex())},"_setAutoZIndex"),_updateOpacity:e(function(){if(this._map&&!W.ielt9){ve(this._container,this.options.opacity);var t=+new Date,r=!1,h=!1;for(var c in this._tiles){var m=this._tiles[c];if(!(!m.current||!m.loaded)){var v=Math.min(1,(t-m.loaded)/200);ve(m.el,v),v<1?r=!0:(m.active?h=!0:this._onOpaqueTile(m),m.active=!0)}}h&&!this._noPrune&&this._pruneTiles(),r&&(ot(this._fadeFrame),this._fadeFrame=X(this._updateOpacity,this))}},"_updateOpacity"),_onOpaqueTile:d,_initContainer:e(function(){this._container||(this._container=pt("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},"_initContainer"),_updateLevels:e(function(){var t=this._tileZoom,r=this.options.maxZoom;if(t!==void 0){for(var h in this._levels)h=Number(h),this._levels[h].el.children.length||h===t?(this._levels[h].el.style.zIndex=r-Math.abs(t-h),this._onUpdateLevel(h)):(kt(this._levels[h].el),this._removeTilesAtZoom(h),this._onRemoveLevel(h),delete this._levels[h]);var c=this._levels[t],m=this._map;return c||(c=this._levels[t]={},c.el=pt("div","leaflet-tile-container leaflet-zoom-animated",this._container),c.el.style.zIndex=r,c.origin=m.project(m.unproject(m.getPixelOrigin()),t).round(),c.zoom=t,this._setZoomTransform(c,m.getCenter(),m.getZoom()),d(c.el.offsetWidth),this._onCreateLevel(c)),this._level=c,c}},"_updateLevels"),_onUpdateLevel:d,_onRemoveLevel:d,_onCreateLevel:d,_pruneTiles:e(function(){if(this._map){var t,r,h=this._map.getZoom();if(h>this.options.maxZoom||h<this.options.minZoom){this._removeAllTiles();return}for(t in this._tiles)r=this._tiles[t],r.retain=r.current;for(t in this._tiles)if(r=this._tiles[t],r.current&&!r.active){var c=r.coords;this._retainParent(c.x,c.y,c.z,c.z-5)||this._retainChildren(c.x,c.y,c.z,c.z+2)}for(t in this._tiles)this._tiles[t].retain||this._removeTile(t)}},"_pruneTiles"),_removeTilesAtZoom:e(function(t){for(var r in this._tiles)this._tiles[r].coords.z===t&&this._removeTile(r)},"_removeTilesAtZoom"),_removeAllTiles:e(function(){for(var t in this._tiles)this._removeTile(t)},"_removeAllTiles"),_invalidateAll:e(function(){for(var t in this._levels)kt(this._levels[t].el),this._onRemoveLevel(Number(t)),delete this._levels[t];this._removeAllTiles(),this._tileZoom=void 0},"_invalidateAll"),_retainParent:e(function(t,r,h,c){var m=Math.floor(t/2),v=Math.floor(r/2),w=h-1,M=new N(+m,+v);M.z=+w;var S=this._tileCoordsToKey(M),z=this._tiles[S];return z&&z.active?(z.retain=!0,!0):(z&&z.loaded&&(z.retain=!0),w>c?this._retainParent(m,v,w,c):!1)},"_retainParent"),_retainChildren:e(function(t,r,h,c){for(var m=2*t;m<2*t+2;m++)for(var v=2*r;v<2*r+2;v++){var w=new N(m,v);w.z=h+1;var M=this._tileCoordsToKey(w),S=this._tiles[M];if(S&&S.active){S.retain=!0;continue}else S&&S.loaded&&(S.retain=!0);h+1<c&&this._retainChildren(m,v,h+1,c)}},"_retainChildren"),_resetView:e(function(t){var r=t&&(t.pinch||t.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),r,r)},"_resetView"),_animateZoom:e(function(t){this._setView(t.center,t.zoom,!0,t.noUpdate)},"_animateZoom"),_clampZoom:e(function(t){var r=this.options;return r.minNativeZoom!==void 0&&t<r.minNativeZoom?r.minNativeZoom:r.maxNativeZoom!==void 0&&r.maxNativeZoom<t?r.maxNativeZoom:t},"_clampZoom"),_setView:e(function(t,r,h,c){var m=Math.round(r);this.options.maxZoom!==void 0&&m>this.options.maxZoom||this.options.minZoom!==void 0&&m<this.options.minZoom?m=void 0:m=this._clampZoom(m);var v=this.options.updateWhenZooming&&m!==this._tileZoom;(!c||v)&&(this._tileZoom=m,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),m!==void 0&&this._update(t),h||this._pruneTiles(),this._noPrune=!!h),this._setZoomTransforms(t,r)},"_setView"),_setZoomTransforms:e(function(t,r){for(var h in this._levels)this._setZoomTransform(this._levels[h],t,r)},"_setZoomTransforms"),_setZoomTransform:e(function(t,r,h){var c=this._map.getZoomScale(h,t.zoom),m=t.origin.multiplyBy(c).subtract(this._map._getNewPixelOrigin(r,h)).round();W.any3d?fi(t.el,m,c):Bt(t.el,m)},"_setZoomTransform"),_resetGrid:e(function(){var t=this._map,r=t.options.crs,h=this._tileSize=this.getTileSize(),c=this._tileZoom,m=this._map.getPixelWorldBounds(this._tileZoom);m&&(this._globalTileRange=this._pxBoundsToTileRange(m)),this._wrapX=r.wrapLng&&!this.options.noWrap&&[Math.floor(t.project([0,r.wrapLng[0]],c).x/h.x),Math.ceil(t.project([0,r.wrapLng[1]],c).x/h.y)],this._wrapY=r.wrapLat&&!this.options.noWrap&&[Math.floor(t.project([r.wrapLat[0],0],c).y/h.x),Math.ceil(t.project([r.wrapLat[1],0],c).y/h.y)]},"_resetGrid"),_onMoveEnd:e(function(){!this._map||this._map._animatingZoom||this._update()},"_onMoveEnd"),_getTiledPixelBounds:e(function(t){var r=this._map,h=r._animatingZoom?Math.max(r._animateToZoom,r.getZoom()):r.getZoom(),c=r.getZoomScale(h,this._tileZoom),m=r.project(t,this._tileZoom).floor(),v=r.getSize().divideBy(c*2);return new at(m.subtract(v),m.add(v))},"_getTiledPixelBounds"),_update:e(function(t){var r=this._map;if(r){var h=this._clampZoom(r.getZoom());if(t===void 0&&(t=r.getCenter()),this._tileZoom!==void 0){var c=this._getTiledPixelBounds(t),m=this._pxBoundsToTileRange(c),v=m.getCenter(),w=[],M=this.options.keepBuffer,S=new at(m.getBottomLeft().subtract([M,-M]),m.getTopRight().add([M,-M]));if(!(isFinite(m.min.x)&&isFinite(m.min.y)&&isFinite(m.max.x)&&isFinite(m.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var z in this._tiles){var F=this._tiles[z].coords;(F.z!==this._tileZoom||!S.contains(new N(F.x,F.y)))&&(this._tiles[z].current=!1)}if(Math.abs(h-this._tileZoom)>1){this._setView(t,h);return}for(var V=m.min.y;V<=m.max.y;V++)for(var rt=m.min.x;rt<=m.max.x;rt++){var ee=new N(rt,V);if(ee.z=this._tileZoom,!!this._isValidTile(ee)){var qt=this._tiles[this._tileCoordsToKey(ee)];qt?qt.current=!0:w.push(ee)}}if(w.sort(function(ae,Ui){return ae.distanceTo(v)-Ui.distanceTo(v)}),w.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var xe=document.createDocumentFragment();for(rt=0;rt<w.length;rt++)this._addTile(w[rt],xe);this._level.el.appendChild(xe)}}}},"_update"),_isValidTile:e(function(t){var r=this._map.options.crs;if(!r.infinite){var h=this._globalTileRange;if(!r.wrapLng&&(t.x<h.min.x||t.x>h.max.x)||!r.wrapLat&&(t.y<h.min.y||t.y>h.max.y))return!1}if(!this.options.bounds)return!0;var c=this._tileCoordsToBounds(t);return _t(this.options.bounds).overlaps(c)},"_isValidTile"),_keyToBounds:e(function(t){return this._tileCoordsToBounds(this._keyToTileCoords(t))},"_keyToBounds"),_tileCoordsToNwSe:e(function(t){var r=this._map,h=this.getTileSize(),c=t.scaleBy(h),m=c.add(h),v=r.unproject(c,t.z),w=r.unproject(m,t.z);return[v,w]},"_tileCoordsToNwSe"),_tileCoordsToBounds:e(function(t){var r=this._tileCoordsToNwSe(t),h=new Ct(r[0],r[1]);return this.options.noWrap||(h=this._map.wrapLatLngBounds(h)),h},"_tileCoordsToBounds"),_tileCoordsToKey:e(function(t){return t.x+":"+t.y+":"+t.z},"_tileCoordsToKey"),_keyToTileCoords:e(function(t){var r=t.split(":"),h=new N(+r[0],+r[1]);return h.z=+r[2],h},"_keyToTileCoords"),_removeTile:e(function(t){var r=this._tiles[t];r&&(kt(r.el),delete this._tiles[t],this.fire("tileunload",{tile:r.el,coords:this._keyToTileCoords(t)}))},"_removeTile"),_initTile:e(function(t){et(t,"leaflet-tile");var r=this.getTileSize();t.style.width=r.x+"px",t.style.height=r.y+"px",t.onselectstart=d,t.onmousemove=d,W.ielt9&&this.options.opacity<1&&ve(t,this.options.opacity)},"_initTile"),_addTile:e(function(t,r){var h=this._getTilePos(t),c=this._tileCoordsToKey(t),m=this.createTile(this._wrapCoords(t),i(this._tileReady,this,t));this._initTile(m),this.createTile.length<2&&X(i(this._tileReady,this,t,null,m)),Bt(m,h),this._tiles[c]={el:m,coords:t,current:!0},r.appendChild(m),this.fire("tileloadstart",{tile:m,coords:t})},"_addTile"),_tileReady:e(function(t,r,h){r&&this.fire("tileerror",{error:r,tile:h,coords:t});var c=this._tileCoordsToKey(t);h=this._tiles[c],h&&(h.loaded=+new Date,this._map._fadeAnimated?(ve(h.el,0),ot(this._fadeFrame),this._fadeFrame=X(this._updateOpacity,this)):(h.active=!0,this._pruneTiles()),r||(et(h.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:h.el,coords:t})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),W.ielt9||!this._map._fadeAnimated?X(this._pruneTiles,this):setTimeout(i(this._pruneTiles,this),250)))},"_tileReady"),_getTilePos:e(function(t){return t.scaleBy(this.getTileSize()).subtract(this._level.origin)},"_getTilePos"),_wrapCoords:e(function(t){var r=new N(this._wrapX?g(t.x,this._wrapX):t.x,this._wrapY?g(t.y,this._wrapY):t.y);return r.z=t.z,r},"_wrapCoords"),_pxBoundsToTileRange:e(function(t){var r=this.getTileSize();return new at(t.min.unscaleBy(r).floor(),t.max.unscaleBy(r).ceil().subtract([1,1]))},"_pxBoundsToTileRange"),_noTilesToLoad:e(function(){for(var t in this._tiles)if(!this._tiles[t].loaded)return!1;return!0},"_noTilesToLoad")});function Sp(t){return new Eo(t)}e(Sp,"gridLayer");var Hi=Eo.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:e(function(t,r){this._url=t,r=y(this,r),r.detectRetina&&W.retina&&r.maxZoom>0?(r.tileSize=Math.floor(r.tileSize/2),r.zoomReverse?(r.zoomOffset--,r.minZoom=Math.min(r.maxZoom,r.minZoom+1)):(r.zoomOffset++,r.maxZoom=Math.max(r.minZoom,r.maxZoom-1)),r.minZoom=Math.max(0,r.minZoom)):r.zoomReverse?r.minZoom=Math.min(r.maxZoom,r.minZoom):r.maxZoom=Math.max(r.minZoom,r.maxZoom),typeof r.subdomains=="string"&&(r.subdomains=r.subdomains.split("")),this.on("tileunload",this._onTileRemove)},"initialize"),setUrl:e(function(t,r){return this._url===t&&r===void 0&&(r=!0),this._url=t,r||this.redraw(),this},"setUrl"),createTile:e(function(t,r){var h=document.createElement("img");return $(h,"load",i(this._tileOnLoad,this,r,h)),$(h,"error",i(this._tileOnError,this,r,h)),(this.options.crossOrigin||this.options.crossOrigin==="")&&(h.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&(h.referrerPolicy=this.options.referrerPolicy),h.alt="",h.src=this.getTileUrl(t),h},"createTile"),getTileUrl:e(function(t){var r={r:W.retina?"@2x":"",s:this._getSubdomain(t),x:t.x,y:t.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var h=this._globalTileRange.max.y-t.y;this.options.tms&&(r.y=h),r["-y"]=h}return C(this._url,l(r,this.options))},"getTileUrl"),_tileOnLoad:e(function(t,r){W.ielt9?setTimeout(i(t,this,null,r),0):t(null,r)},"_tileOnLoad"),_tileOnError:e(function(t,r,h){var c=this.options.errorTileUrl;c&&r.getAttribute("src")!==c&&(r.src=c),t(h,r)},"_tileOnError"),_onTileRemove:e(function(t){t.tile.onload=null},"_onTileRemove"),_getZoomForUrl:e(function(){var t=this._tileZoom,r=this.options.maxZoom,h=this.options.zoomReverse,c=this.options.zoomOffset;return h&&(t=r-t),t+c},"_getZoomForUrl"),_getSubdomain:e(function(t){var r=Math.abs(t.x+t.y)%this.options.subdomains.length;return this.options.subdomains[r]},"_getSubdomain"),_abortLoading:e(function(){var t,r;for(t in this._tiles)if(this._tiles[t].coords.z!==this._tileZoom&&(r=this._tiles[t].el,r.onload=d,r.onerror=d,!r.complete)){r.src=E;var h=this._tiles[t].coords;kt(r),delete this._tiles[t],this.fire("tileabort",{tile:r,coords:h})}},"_abortLoading"),_removeTile:e(function(t){var r=this._tiles[t];if(r)return r.el.setAttribute("src",E),Eo.prototype._removeTile.call(this,t)},"_removeTile"),_tileReady:e(function(t,r,h){if(!(!this._map||h&&h.getAttribute("src")===E))return Eo.prototype._tileReady.call(this,t,r,h)},"_tileReady")});function Mh(t,r){return new Hi(t,r)}e(Mh,"tileLayer");var Ph=Hi.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:e(function(t,r){this._url=t;var h=l({},this.defaultWmsParams);for(var c in r)c in this.options||(h[c]=r[c]);r=y(this,r);var m=r.detectRetina&&W.retina?2:1,v=this.getTileSize();h.width=v.x*m,h.height=v.y*m,this.wmsParams=h},"initialize"),onAdd:e(function(t){this._crs=this.options.crs||t.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var r=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[r]=this._crs.code,Hi.prototype.onAdd.call(this,t)},"onAdd"),getTileUrl:e(function(t){var r=this._tileCoordsToNwSe(t),h=this._crs,c=At(h.project(r[0]),h.project(r[1])),m=c.min,v=c.max,w=(this._wmsVersion>=1.3&&this._crs===vh?[m.y,m.x,v.y,v.x]:[m.x,m.y,v.x,v.y]).join(","),M=Hi.prototype.getTileUrl.call(this,t);return M+x(this.wmsParams,M,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+w},"getTileUrl"),setParams:e(function(t,r){return l(this.wmsParams,t),r||this.redraw(),this},"setParams")});function Tp(t,r){return new Ph(t,r)}e(Tp,"tileLayerWMS"),Hi.WMS=Ph,Mh.wms=Tp;var We=Me.extend({options:{padding:.1},initialize:e(function(t){y(this,t),u(this),this._layers=this._layers||{}},"initialize"),onAdd:e(function(){this._container||(this._initContainer(),et(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},"onAdd"),onRemove:e(function(){this.off("update",this._updatePaths,this),this._destroyContainer()},"onRemove"),getEvents:e(function(){var t={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(t.zoomanim=this._onAnimZoom),t},"getEvents"),_onAnimZoom:e(function(t){this._updateTransform(t.center,t.zoom)},"_onAnimZoom"),_onZoom:e(function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},"_onZoom"),_updateTransform:e(function(t,r){var h=this._map.getZoomScale(r,this._zoom),c=this._map.getSize().multiplyBy(.5+this.options.padding),m=this._map.project(this._center,r),v=c.multiplyBy(-h).add(m).subtract(this._map._getNewPixelOrigin(t,r));W.any3d?fi(this._container,v,h):Bt(this._container,v)},"_updateTransform"),_reset:e(function(){this._update(),this._updateTransform(this._center,this._zoom);for(var t in this._layers)this._layers[t]._reset()},"_reset"),_onZoomEnd:e(function(){for(var t in this._layers)this._layers[t]._project()},"_onZoomEnd"),_updatePaths:e(function(){for(var t in this._layers)this._layers[t]._update()},"_updatePaths"),_update:e(function(){var t=this.options.padding,r=this._map.getSize(),h=this._map.containerPointToLayerPoint(r.multiplyBy(-t)).round();this._bounds=new at(h,h.add(r.multiplyBy(1+t*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()},"_update")}),Eh=We.extend({options:{tolerance:0},getEvents:e(function(){var t=We.prototype.getEvents.call(this);return t.viewprereset=this._onViewPreReset,t},"getEvents"),_onViewPreReset:e(function(){this._postponeUpdatePaths=!0},"_onViewPreReset"),onAdd:e(function(){We.prototype.onAdd.call(this),this._draw()},"onAdd"),_initContainer:e(function(){var t=this._container=document.createElement("canvas");$(t,"mousemove",this._onMouseMove,this),$(t,"click dblclick mousedown mouseup contextmenu",this._onClick,this),$(t,"mouseout",this._handleMouseOut,this),t._leaflet_disable_events=!0,this._ctx=t.getContext("2d")},"_initContainer"),_destroyContainer:e(function(){ot(this._redrawRequest),delete this._ctx,kt(this._container),Lt(this._container),delete this._container},"_destroyContainer"),_updatePaths:e(function(){if(!this._postponeUpdatePaths){var t;this._redrawBounds=null;for(var r in this._layers)t=this._layers[r],t._update();this._redraw()}},"_updatePaths"),_update:e(function(){if(!(this._map._animatingZoom&&this._bounds)){We.prototype._update.call(this);var t=this._bounds,r=this._container,h=t.getSize(),c=W.retina?2:1;Bt(r,t.min),r.width=c*h.x,r.height=c*h.y,r.style.width=h.x+"px",r.style.height=h.y+"px",W.retina&&this._ctx.scale(2,2),this._ctx.translate(-t.min.x,-t.min.y),this.fire("update")}},"_update"),_reset:e(function(){We.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},"_reset"),_initPath:e(function(t){this._updateDashArray(t),this._layers[u(t)]=t;var r=t._order={layer:t,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=r),this._drawLast=r,this._drawFirst=this._drawFirst||this._drawLast},"_initPath"),_addPath:e(function(t){this._requestRedraw(t)},"_addPath"),_removePath:e(function(t){var r=t._order,h=r.next,c=r.prev;h?h.prev=c:this._drawLast=c,c?c.next=h:this._drawFirst=h,delete t._order,delete this._layers[u(t)],this._requestRedraw(t)},"_removePath"),_updatePath:e(function(t){this._extendRedrawBounds(t),t._project(),t._update(),this._requestRedraw(t)},"_updatePath"),_updateStyle:e(function(t){this._updateDashArray(t),this._requestRedraw(t)},"_updateStyle"),_updateDashArray:e(function(t){if(typeof t.options.dashArray=="string"){var r=t.options.dashArray.split(/[, ]+/),h=[],c,m;for(m=0;m<r.length;m++){if(c=Number(r[m]),isNaN(c))return;h.push(c)}t.options._dashArray=h}else t.options._dashArray=t.options.dashArray},"_updateDashArray"),_requestRedraw:e(function(t){this._map&&(this._extendRedrawBounds(t),this._redrawRequest=this._redrawRequest||X(this._redraw,this))},"_requestRedraw"),_extendRedrawBounds:e(function(t){if(t._pxBounds){var r=(t.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new at,this._redrawBounds.extend(t._pxBounds.min.subtract([r,r])),this._redrawBounds.extend(t._pxBounds.max.add([r,r]))}},"_extendRedrawBounds"),_redraw:e(function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},"_redraw"),_clear:e(function(){var t=this._redrawBounds;if(t){var r=t.getSize();this._ctx.clearRect(t.min.x,t.min.y,r.x,r.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()},"_clear"),_draw:e(function(){var t,r=this._redrawBounds;if(this._ctx.save(),r){var h=r.getSize();this._ctx.beginPath(),this._ctx.rect(r.min.x,r.min.y,h.x,h.y),this._ctx.clip()}this._drawing=!0;for(var c=this._drawFirst;c;c=c.next)t=c.layer,(!r||t._pxBounds&&t._pxBounds.intersects(r))&&t._updatePath();this._drawing=!1,this._ctx.restore()},"_draw"),_updatePoly:e(function(t,r){if(this._drawing){var h,c,m,v,w=t._parts,M=w.length,S=this._ctx;if(M){for(S.beginPath(),h=0;h<M;h++){for(c=0,m=w[h].length;c<m;c++)v=w[h][c],S[c?"lineTo":"moveTo"](v.x,v.y);r&&S.closePath()}this._fillStroke(S,t)}}},"_updatePoly"),_updateCircle:e(function(t){if(!(!this._drawing||t._empty())){var r=t._point,h=this._ctx,c=Math.max(Math.round(t._radius),1),m=(Math.max(Math.round(t._radiusY),1)||c)/c;m!==1&&(h.save(),h.scale(1,m)),h.beginPath(),h.arc(r.x,r.y/m,c,0,Math.PI*2,!1),m!==1&&h.restore(),this._fillStroke(h,t)}},"_updateCircle"),_fillStroke:e(function(t,r){var h=r.options;h.fill&&(t.globalAlpha=h.fillOpacity,t.fillStyle=h.fillColor||h.color,t.fill(h.fillRule||"evenodd")),h.stroke&&h.weight!==0&&(t.setLineDash&&t.setLineDash(r.options&&r.options._dashArray||[]),t.globalAlpha=h.opacity,t.lineWidth=h.weight,t.strokeStyle=h.color,t.lineCap=h.lineCap,t.lineJoin=h.lineJoin,t.stroke())},"_fillStroke"),_onClick:e(function(t){for(var r=this._map.mouseEventToLayerPoint(t),h,c,m=this._drawFirst;m;m=m.next)h=m.layer,h.options.interactive&&h._containsPoint(r)&&(!(t.type==="click"||t.type==="preclick")||!this._map._draggableMoved(h))&&(c=h);this._fireEvent(c?[c]:!1,t)},"_onClick"),_onMouseMove:e(function(t){if(!(!this._map||this._map.dragging.moving()||this._map._animatingZoom)){var r=this._map.mouseEventToLayerPoint(t);this._handleMouseHover(t,r)}},"_onMouseMove"),_handleMouseOut:e(function(t){var r=this._hoveredLayer;r&&(Ot(this._container,"leaflet-interactive"),this._fireEvent([r],t,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},"_handleMouseOut"),_handleMouseHover:e(function(t,r){if(!this._mouseHoverThrottled){for(var h,c,m=this._drawFirst;m;m=m.next)h=m.layer,h.options.interactive&&h._containsPoint(r)&&(c=h);c!==this._hoveredLayer&&(this._handleMouseOut(t),c&&(et(this._container,"leaflet-interactive"),this._fireEvent([c],t,"mouseover"),this._hoveredLayer=c)),this._fireEvent(this._hoveredLayer?[this._hoveredLayer]:!1,t),this._mouseHoverThrottled=!0,setTimeout(i(function(){this._mouseHoverThrottled=!1},this),32)}},"_handleMouseHover"),_fireEvent:e(function(t,r,h){this._map._fireDOMEvent(r,h||r.type,t)},"_fireEvent"),_bringToFront:e(function(t){var r=t._order;if(r){var h=r.next,c=r.prev;if(h)h.prev=c;else return;c?c.next=h:h&&(this._drawFirst=h),r.prev=this._drawLast,this._drawLast.next=r,r.next=null,this._drawLast=r,this._requestRedraw(t)}},"_bringToFront"),_bringToBack:e(function(t){var r=t._order;if(r){var h=r.next,c=r.prev;if(c)c.next=h;else return;h?h.prev=c:c&&(this._drawLast=c),r.prev=null,r.next=this._drawFirst,this._drawFirst.prev=r,this._drawFirst=r,this._requestRedraw(t)}},"_bringToBack")});function Sh(t){return W.canvas?new Eh(t):null}e(Sh,"canvas");var So=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(t){return document.createElement("<lvml:"+t+' class="lvml">')}}catch{}return function(t){return document.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),Op={_initContainer:e(function(){this._container=pt("div","leaflet-vml-container")},"_initContainer"),_update:e(function(){this._map._animatingZoom||(We.prototype._update.call(this),this.fire("update"))},"_update"),_initPath:e(function(t){var r=t._container=So("shape");et(r,"leaflet-vml-shape "+(this.options.className||"")),r.coordsize="1 1",t._path=So("path"),r.appendChild(t._path),this._updateStyle(t),this._layers[u(t)]=t},"_initPath"),_addPath:e(function(t){var r=t._container;this._container.appendChild(r),t.options.interactive&&t.addInteractiveTarget(r)},"_addPath"),_removePath:e(function(t){var r=t._container;kt(r),t.removeInteractiveTarget(r),delete this._layers[u(t)]},"_removePath"),_updateStyle:e(function(t){var r=t._stroke,h=t._fill,c=t.options,m=t._container;m.stroked=!!c.stroke,m.filled=!!c.fill,c.stroke?(r||(r=t._stroke=So("stroke")),m.appendChild(r),r.weight=c.weight+"px",r.color=c.color,r.opacity=c.opacity,c.dashArray?r.dashStyle=P(c.dashArray)?c.dashArray.join(" "):c.dashArray.replace(/( *, *)/g," "):r.dashStyle="",r.endcap=c.lineCap.replace("butt","flat"),r.joinstyle=c.lineJoin):r&&(m.removeChild(r),t._stroke=null),c.fill?(h||(h=t._fill=So("fill")),m.appendChild(h),h.color=c.fillColor||c.color,h.opacity=c.fillOpacity):h&&(m.removeChild(h),t._fill=null)},"_updateStyle"),_updateCircle:e(function(t){var r=t._point.round(),h=Math.round(t._radius),c=Math.round(t._radiusY||h);this._setPath(t,t._empty()?"M0 0":"AL "+r.x+","+r.y+" "+h+","+c+" 0,"+65535*360)},"_updateCircle"),_setPath:e(function(t,r){t._path.v=r},"_setPath"),_bringToFront:e(function(t){Bi(t._container)},"_bringToFront"),_bringToBack:e(function(t){Ri(t._container)},"_bringToBack")},Zn=W.vml?So:Il,To=We.extend({_initContainer:e(function(){this._container=Zn("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=Zn("g"),this._container.appendChild(this._rootGroup)},"_initContainer"),_destroyContainer:e(function(){kt(this._container),Lt(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},"_destroyContainer"),_update:e(function(){if(!(this._map._animatingZoom&&this._bounds)){We.prototype._update.call(this);var t=this._bounds,r=t.getSize(),h=this._container;(!this._svgSize||!this._svgSize.equals(r))&&(this._svgSize=r,h.setAttribute("width",r.x),h.setAttribute("height",r.y)),Bt(h,t.min),h.setAttribute("viewBox",[t.min.x,t.min.y,r.x,r.y].join(" ")),this.fire("update")}},"_update"),_initPath:e(function(t){var r=t._path=Zn("path");t.options.className&&et(r,t.options.className),t.options.interactive&&et(r,"leaflet-interactive"),this._updateStyle(t),this._layers[u(t)]=t},"_initPath"),_addPath:e(function(t){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(t._path),t.addInteractiveTarget(t._path)},"_addPath"),_removePath:e(function(t){kt(t._path),t.removeInteractiveTarget(t._path),delete this._layers[u(t)]},"_removePath"),_updatePath:e(function(t){t._project(),t._update()},"_updatePath"),_updateStyle:e(function(t){var r=t._path,h=t.options;r&&(h.stroke?(r.setAttribute("stroke",h.color),r.setAttribute("stroke-opacity",h.opacity),r.setAttribute("stroke-width",h.weight),r.setAttribute("stroke-linecap",h.lineCap),r.setAttribute("stroke-linejoin",h.lineJoin),h.dashArray?r.setAttribute("stroke-dasharray",h.dashArray):r.removeAttribute("stroke-dasharray"),h.dashOffset?r.setAttribute("stroke-dashoffset",h.dashOffset):r.removeAttribute("stroke-dashoffset")):r.setAttribute("stroke","none"),h.fill?(r.setAttribute("fill",h.fillColor||h.color),r.setAttribute("fill-opacity",h.fillOpacity),r.setAttribute("fill-rule",h.fillRule||"evenodd")):r.setAttribute("fill","none"))},"_updateStyle"),_updatePoly:e(function(t,r){this._setPath(t,Dl(t._parts,r))},"_updatePoly"),_updateCircle:e(function(t){var r=t._point,h=Math.max(Math.round(t._radius),1),c=Math.max(Math.round(t._radiusY),1)||h,m="a"+h+","+c+" 0 1,0 ",v=t._empty()?"M0 0":"M"+(r.x-h)+","+r.y+m+h*2+",0 "+m+-h*2+",0 ";this._setPath(t,v)},"_updateCircle"),_setPath:e(function(t,r){t._path.setAttribute("d",r)},"_setPath"),_bringToFront:e(function(t){Bi(t._path)},"_bringToFront"),_bringToBack:e(function(t){Ri(t._path)},"_bringToBack")});W.vml&&To.include(Op);function Th(t){return W.svg||W.vml?new To(t):null}e(Th,"svg"),ct.include({getRenderer:e(function(t){var r=t.options.renderer||this._getPaneRenderer(t.options.pane)||this.options.renderer||this._renderer;return r||(r=this._renderer=this._createRenderer()),this.hasLayer(r)||this.addLayer(r),r},"getRenderer"),_getPaneRenderer:e(function(t){if(t==="overlayPane"||t===void 0)return!1;var r=this._paneRenderers[t];return r===void 0&&(r=this._createRenderer({pane:t}),this._paneRenderers[t]=r),r},"_getPaneRenderer"),_createRenderer:e(function(t){return this.options.preferCanvas&&Sh(t)||Th(t)},"_createRenderer")});var Oh=Fi.extend({initialize:e(function(t,r){Fi.prototype.initialize.call(this,this._boundsToLatLngs(t),r)},"initialize"),setBounds:e(function(t){return this.setLatLngs(this._boundsToLatLngs(t))},"setBounds"),_boundsToLatLngs:e(function(t){return t=_t(t),[t.getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]},"_boundsToLatLngs")});function zp(t,r){return new Oh(t,r)}e(zp,"rectangle"),To.create=Zn,To.pointsToPath=Dl,Ue.geometryToLayer=zn,Ue.coordsToLatLng=Is,Ue.coordsToLatLngs=In,Ue.latLngToCoords=Ds,Ue.latLngsToCoords=Dn,Ue.getFeature=Gi,Ue.asFeature=An,ct.mergeOptions({boxZoom:!0});var zh=Ae.extend({initialize:e(function(t){this._map=t,this._container=t._container,this._pane=t._panes.overlayPane,this._resetStateTimeout=0,t.on("unload",this._destroy,this)},"initialize"),addHooks:e(function(){$(this._container,"mousedown",this._onMouseDown,this)},"addHooks"),removeHooks:e(function(){Lt(this._container,"mousedown",this._onMouseDown,this)},"removeHooks"),moved:e(function(){return this._moved},"moved"),_destroy:e(function(){kt(this._pane),delete this._pane},"_destroy"),_resetState:e(function(){this._resetStateTimeout=0,this._moved=!1},"_resetState"),_clearDeferredResetState:e(function(){this._resetStateTimeout!==0&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},"_clearDeferredResetState"),_onMouseDown:e(function(t){if(!t.shiftKey||t.which!==1&&t.button!==1)return!1;this._clearDeferredResetState(),this._resetState(),xo(),_s(),this._startPoint=this._map.mouseEventToContainerPoint(t),$(document,{contextmenu:gi,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},"_onMouseDown"),_onMouseMove:e(function(t){this._moved||(this._moved=!0,this._box=pt("div","leaflet-zoom-box",this._container),et(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(t);var r=new at(this._point,this._startPoint),h=r.getSize();Bt(this._box,r.min),this._box.style.width=h.x+"px",this._box.style.height=h.y+"px"},"_onMouseMove"),_finish:e(function(){this._moved&&(kt(this._box),Ot(this._container,"leaflet-crosshair")),Lo(),gs(),Lt(document,{contextmenu:gi,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},"_finish"),_onMouseUp:e(function(t){if(!(t.which!==1&&t.button!==1)&&(this._finish(),!!this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(i(this._resetState,this),0);var r=new Ct(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(r).fire("boxzoomend",{boxZoomBounds:r})}},"_onMouseUp"),_onKeyDown:e(function(t){t.keyCode===27&&(this._finish(),this._clearDeferredResetState(),this._resetState())},"_onKeyDown")});ct.addInitHook("addHandler","boxZoom",zh),ct.mergeOptions({doubleClickZoom:!0});var Ih=Ae.extend({addHooks:e(function(){this._map.on("dblclick",this._onDoubleClick,this)},"addHooks"),removeHooks:e(function(){this._map.off("dblclick",this._onDoubleClick,this)},"removeHooks"),_onDoubleClick:e(function(t){var r=this._map,h=r.getZoom(),c=r.options.zoomDelta,m=t.originalEvent.shiftKey?h-c:h+c;r.options.doubleClickZoom==="center"?r.setZoom(m):r.setZoomAround(t.containerPoint,m)},"_onDoubleClick")});ct.addInitHook("addHandler","doubleClickZoom",Ih),ct.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var Dh=Ae.extend({addHooks:e(function(){if(!this._draggable){var t=this._map;this._draggable=new oi(t._mapPane,t._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),t.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),t.on("zoomend",this._onZoomEnd,this),t.whenReady(this._onZoomEnd,this))}et(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},"addHooks"),removeHooks:e(function(){Ot(this._map._container,"leaflet-grab"),Ot(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},"removeHooks"),moved:e(function(){return this._draggable&&this._draggable._moved},"moved"),moving:e(function(){return this._draggable&&this._draggable._moving},"moving"),_onDragStart:e(function(){var t=this._map;if(t._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var r=_t(this._map.options.maxBounds);this._offsetLimit=At(this._map.latLngToContainerPoint(r.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(r.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;t.fire("movestart").fire("dragstart"),t.options.inertia&&(this._positions=[],this._times=[])},"_onDragStart"),_onDrag:e(function(t){if(this._map.options.inertia){var r=this._lastTime=+new Date,h=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(h),this._times.push(r),this._prunePositions(r)}this._map.fire("move",t).fire("drag",t)},"_onDrag"),_prunePositions:e(function(t){for(;this._positions.length>1&&t-this._times[0]>50;)this._positions.shift(),this._times.shift()},"_prunePositions"),_onZoomEnd:e(function(){var t=this._map.getSize().divideBy(2),r=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=r.subtract(t).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},"_onZoomEnd"),_viscousLimit:e(function(t,r){return t-(t-r)*this._viscosity},"_viscousLimit"),_onPreDragLimit:e(function(){if(!(!this._viscosity||!this._offsetLimit)){var t=this._draggable._newPos.subtract(this._draggable._startPos),r=this._offsetLimit;t.x<r.min.x&&(t.x=this._viscousLimit(t.x,r.min.x)),t.y<r.min.y&&(t.y=this._viscousLimit(t.y,r.min.y)),t.x>r.max.x&&(t.x=this._viscousLimit(t.x,r.max.x)),t.y>r.max.y&&(t.y=this._viscousLimit(t.y,r.max.y)),this._draggable._newPos=this._draggable._startPos.add(t)}},"_onPreDragLimit"),_onPreDragWrap:e(function(){var t=this._worldWidth,r=Math.round(t/2),h=this._initialWorldOffset,c=this._draggable._newPos.x,m=(c-r+h)%t+r-h,v=(c+r+h)%t-r-h,w=Math.abs(m+h)<Math.abs(v+h)?m:v;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=w},"_onPreDragWrap"),_onDragEnd:e(function(t){var r=this._map,h=r.options,c=!h.inertia||t.noInertia||this._times.length<2;if(r.fire("dragend",t),c)r.fire("moveend");else{this._prunePositions(+new Date);var m=this._lastPos.subtract(this._positions[0]),v=(this._lastTime-this._times[0])/1e3,w=h.easeLinearity,M=m.multiplyBy(w/v),S=M.distanceTo([0,0]),z=Math.min(h.inertiaMaxSpeed,S),F=M.multiplyBy(z/S),V=z/(h.inertiaDeceleration*w),rt=F.multiplyBy(-V/2).round();!rt.x&&!rt.y?r.fire("moveend"):(rt=r._limitOffset(rt,r.options.maxBounds),X(function(){r.panBy(rt,{duration:V,easeLinearity:w,noMoveStart:!0,animate:!0})}))}},"_onDragEnd")});ct.addInitHook("addHandler","dragging",Dh),ct.mergeOptions({keyboard:!0,keyboardPanDelta:80});var Ah=Ae.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:e(function(t){this._map=t,this._setPanDelta(t.options.keyboardPanDelta),this._setZoomDelta(t.options.zoomDelta)},"initialize"),addHooks:e(function(){var t=this._map._container;t.tabIndex<=0&&(t.tabIndex="0"),$(t,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},"addHooks"),removeHooks:e(function(){this._removeHooks(),Lt(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},"removeHooks"),_onMouseDown:e(function(){if(!this._focused){var t=document.body,r=document.documentElement,h=t.scrollTop||r.scrollTop,c=t.scrollLeft||r.scrollLeft;this._map._container.focus(),window.scrollTo(c,h)}},"_onMouseDown"),_onFocus:e(function(){this._focused=!0,this._map.fire("focus")},"_onFocus"),_onBlur:e(function(){this._focused=!1,this._map.fire("blur")},"_onBlur"),_setPanDelta:e(function(t){var r=this._panKeys={},h=this.keyCodes,c,m;for(c=0,m=h.left.length;c<m;c++)r[h.left[c]]=[-1*t,0];for(c=0,m=h.right.length;c<m;c++)r[h.right[c]]=[t,0];for(c=0,m=h.down.length;c<m;c++)r[h.down[c]]=[0,t];for(c=0,m=h.up.length;c<m;c++)r[h.up[c]]=[0,-1*t]},"_setPanDelta"),_setZoomDelta:e(function(t){var r=this._zoomKeys={},h=this.keyCodes,c,m;for(c=0,m=h.zoomIn.length;c<m;c++)r[h.zoomIn[c]]=t;for(c=0,m=h.zoomOut.length;c<m;c++)r[h.zoomOut[c]]=-t},"_setZoomDelta"),_addHooks:e(function(){$(document,"keydown",this._onKeyDown,this)},"_addHooks"),_removeHooks:e(function(){Lt(document,"keydown",this._onKeyDown,this)},"_removeHooks"),_onKeyDown:e(function(t){if(!(t.altKey||t.ctrlKey||t.metaKey)){var r=t.keyCode,h=this._map,c;if(r in this._panKeys){if(!h._panAnim||!h._panAnim._inProgress)if(c=this._panKeys[r],t.shiftKey&&(c=U(c).multiplyBy(3)),h.options.maxBounds&&(c=h._limitOffset(U(c),h.options.maxBounds)),h.options.worldCopyJump){var m=h.wrapLatLng(h.unproject(h.project(h.getCenter()).add(c)));h.panTo(m)}else h.panBy(c)}else if(r in this._zoomKeys)h.setZoom(h.getZoom()+(t.shiftKey?3:1)*this._zoomKeys[r]);else if(r===27&&h._popup&&h._popup.options.closeOnEscapeKey)h.closePopup();else return;gi(t)}},"_onKeyDown")});ct.addInitHook("addHandler","keyboard",Ah),ct.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var Bh=Ae.extend({addHooks:e(function(){$(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},"addHooks"),removeHooks:e(function(){Lt(this._map._container,"wheel",this._onWheelScroll,this)},"removeHooks"),_onWheelScroll:e(function(t){var r=sh(t),h=this._map.options.wheelDebounceTime;this._delta+=r,this._lastMousePos=this._map.mouseEventToContainerPoint(t),this._startTime||(this._startTime=+new Date);var c=Math.max(h-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(i(this._performZoom,this),c),gi(t)},"_onWheelScroll"),_performZoom:e(function(){var t=this._map,r=t.getZoom(),h=this._map.options.zoomSnap||0;t._stop();var c=this._delta/(this._map.options.wheelPxPerZoomLevel*4),m=4*Math.log(2/(1+Math.exp(-Math.abs(c))))/Math.LN2,v=h?Math.ceil(m/h)*h:m,w=t._limitZoom(r+(this._delta>0?v:-v))-r;this._delta=0,this._startTime=null,w&&(t.options.scrollWheelZoom==="center"?t.setZoom(r+w):t.setZoomAround(this._lastMousePos,r+w))},"_performZoom")});ct.addInitHook("addHandler","scrollWheelZoom",Bh);var Ip=600;ct.mergeOptions({tapHold:W.touchNative&&W.safari&&W.mobile,tapTolerance:15});var Rh=Ae.extend({addHooks:e(function(){$(this._map._container,"touchstart",this._onDown,this)},"addHooks"),removeHooks:e(function(){Lt(this._map._container,"touchstart",this._onDown,this)},"removeHooks"),_onDown:e(function(t){if(clearTimeout(this._holdTimeout),t.touches.length===1){var r=t.touches[0];this._startPos=this._newPos=new N(r.clientX,r.clientY),this._holdTimeout=setTimeout(i(function(){this._cancel(),this._isTapValid()&&($(document,"touchend",$t),$(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",r))},this),Ip),$(document,"touchend touchcancel contextmenu",this._cancel,this),$(document,"touchmove",this._onMove,this)}},"_onDown"),_cancelClickPrevent:e(function t(){Lt(document,"touchend",$t),Lt(document,"touchend touchcancel",t)},"cancelClickPrevent"),_cancel:e(function(){clearTimeout(this._holdTimeout),Lt(document,"touchend touchcancel contextmenu",this._cancel,this),Lt(document,"touchmove",this._onMove,this)},"_cancel"),_onMove:e(function(t){var r=t.touches[0];this._newPos=new N(r.clientX,r.clientY)},"_onMove"),_isTapValid:e(function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},"_isTapValid"),_simulateEvent:e(function(t,r){var h=new MouseEvent(t,{bubbles:!0,cancelable:!0,view:window,screenX:r.screenX,screenY:r.screenY,clientX:r.clientX,clientY:r.clientY});h._simulated=!0,r.target.dispatchEvent(h)},"_simulateEvent")});ct.addInitHook("addHandler","tapHold",Rh),ct.mergeOptions({touchZoom:W.touch,bounceAtZoomLimits:!0});var Nh=Ae.extend({addHooks:e(function(){et(this._map._container,"leaflet-touch-zoom"),$(this._map._container,"touchstart",this._onTouchStart,this)},"addHooks"),removeHooks:e(function(){Ot(this._map._container,"leaflet-touch-zoom"),Lt(this._map._container,"touchstart",this._onTouchStart,this)},"removeHooks"),_onTouchStart:e(function(t){var r=this._map;if(!(!t.touches||t.touches.length!==2||r._animatingZoom||this._zooming)){var h=r.mouseEventToContainerPoint(t.touches[0]),c=r.mouseEventToContainerPoint(t.touches[1]);this._centerPoint=r.getSize()._divideBy(2),this._startLatLng=r.containerPointToLatLng(this._centerPoint),r.options.touchZoom!=="center"&&(this._pinchStartLatLng=r.containerPointToLatLng(h.add(c)._divideBy(2))),this._startDist=h.distanceTo(c),this._startZoom=r.getZoom(),this._moved=!1,this._zooming=!0,r._stop(),$(document,"touchmove",this._onTouchMove,this),$(document,"touchend touchcancel",this._onTouchEnd,this),$t(t)}},"_onTouchStart"),_onTouchMove:e(function(t){if(!(!t.touches||t.touches.length!==2||!this._zooming)){var r=this._map,h=r.mouseEventToContainerPoint(t.touches[0]),c=r.mouseEventToContainerPoint(t.touches[1]),m=h.distanceTo(c)/this._startDist;if(this._zoom=r.getScaleZoom(m,this._startZoom),!r.options.bounceAtZoomLimits&&(this._zoom<r.getMinZoom()&&m<1||this._zoom>r.getMaxZoom()&&m>1)&&(this._zoom=r._limitZoom(this._zoom)),r.options.touchZoom==="center"){if(this._center=this._startLatLng,m===1)return}else{var v=h._add(c)._divideBy(2)._subtract(this._centerPoint);if(m===1&&v.x===0&&v.y===0)return;this._center=r.unproject(r.project(this._pinchStartLatLng,this._zoom).subtract(v),this._zoom)}this._moved||(r._moveStart(!0,!1),this._moved=!0),ot(this._animRequest);var w=i(r._move,r,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=X(w,this,!0),$t(t)}},"_onTouchMove"),_onTouchEnd:e(function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,ot(this._animRequest),Lt(document,"touchmove",this._onTouchMove,this),Lt(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))},"_onTouchEnd")});ct.addInitHook("addHandler","touchZoom",Nh),ct.BoxZoom=zh,ct.DoubleClickZoom=Ih,ct.Drag=Dh,ct.Keyboard=Ah,ct.ScrollWheelZoom=Bh,ct.TapHold=Rh,ct.TouchZoom=Nh,s.Bounds=at,s.Browser=W,s.CRS=Qt,s.Canvas=Eh,s.Circle=zs,s.CircleMarker=On,s.Class=xt,s.Control=ke,s.DivIcon=kh,s.DivOverlay=Be,s.DomEvent=Kc,s.DomUtil=Xc,s.Draggable=oi,s.Evented=I,s.FeatureGroup=Ge,s.GeoJSON=Ue,s.GridLayer=Eo,s.Handler=Ae,s.Icon=Zi,s.ImageOverlay=Bn,s.LatLng=nt,s.LatLngBounds=Ct,s.Layer=Me,s.LayerGroup=Ni,s.LineUtil=up,s.Map=ct,s.Marker=Tn,s.Mixin=np,s.Path=ni,s.Point=N,s.PolyUtil=rp,s.Polygon=Fi,s.Polyline=He,s.Popup=Rn,s.PosAnimation=ah,s.Projection=cp,s.Rectangle=Oh,s.Renderer=We,s.SVG=To,s.SVGOverlay=Ch,s.TileLayer=Hi,s.Tooltip=Nn,s.Transformation=ns,s.Util=K,s.VideoOverlay=wh,s.bind=i,s.bounds=At,s.canvas=Sh,s.circle=vp,s.circleMarker=yp,s.control=ko,s.divIcon=Ep,s.extend=l,s.featureGroup=mp,s.geoJSON=Lh,s.geoJson=Lp,s.gridLayer=Sp,s.icon=_p,s.imageOverlay=wp,s.latLng=it,s.latLngBounds=_t,s.layerGroup=fp,s.map=$c,s.marker=gp,s.point=U,s.polygon=xp,s.polyline=bp,s.popup=Mp,s.rectangle=zp,s.setOptions=y,s.stamp=u,s.svg=Th,s.svgOverlay=kp,s.tileLayer=Mh,s.tooltip=Pp,s.transformation=go,s.version=n,s.videoOverlay=Cp;var Dp=window.L;s.noConflict=function(){return window.L=Dp,this},window.L=s})});var hc=Hn((Ur,lc)=>{(function(s,n){typeof Ur=="object"&&typeof lc<"u"?n(Ur):typeof define=="function"&&define.amd?define(["exports"],n):(s=s||self,n((s.Leaflet=s.Leaflet||{},s.Leaflet.markercluster={})))})(Ur,function(s){"use strict";var n=L.MarkerClusterGroup=L.FeatureGroup.extend({options:{maxClusterRadius:80,iconCreateFunction:null,clusterPane:L.Marker.prototype.options.pane,spiderfyOnEveryZoom:!1,spiderfyOnMaxZoom:!0,showCoverageOnHover:!0,zoomToBoundsOnClick:!0,singleMarkerMode:!1,disableClusteringAtZoom:null,removeOutsideVisibleBounds:!0,animate:!0,animateAddingMarkers:!1,spiderfyShapePositions:null,spiderfyDistanceMultiplier:1,spiderLegPolylineOptions:{weight:1.5,color:"#222",opacity:.5},chunkedLoading:!1,chunkInterval:200,chunkDelay:50,chunkProgress:null,polygonOptions:{}},initialize:e(function(o){L.Util.setOptions(this,o),this.options.iconCreateFunction||(this.options.iconCreateFunction=this._defaultIconCreateFunction),this._featureGroup=L.featureGroup(),this._featureGroup.addEventParent(this),this._nonPointGroup=L.featureGroup(),this._nonPointGroup.addEventParent(this),this._inZoomAnimation=0,this._needsClustering=[],this._needsRemoving=[],this._currentShownBounds=null,this._queue=[],this._childMarkerEventHandlers={dragstart:this._childMarkerDragStart,move:this._childMarkerMoved,dragend:this._childMarkerDragEnd};var i=L.DomUtil.TRANSITION&&this.options.animate;L.extend(this,i?this._withAnimation:this._noAnimation),this._markerCluster=i?L.MarkerCluster:L.MarkerClusterNonAnimated},"initialize"),addLayer:e(function(o){if(o instanceof L.LayerGroup)return this.addLayers([o]);if(!o.getLatLng)return this._nonPointGroup.addLayer(o),this.fire("layeradd",{layer:o}),this;if(!this._map)return this._needsClustering.push(o),this.fire("layeradd",{layer:o}),this;if(this.hasLayer(o))return this;this._unspiderfy&&this._unspiderfy(),this._addLayer(o,this._maxZoom),this.fire("layeradd",{layer:o}),this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons();var i=o,a=this._zoom;if(o.__parent)for(;i.__parent._zoom>=a;)i=i.__parent;return this._currentShownBounds.contains(i.getLatLng())&&(this.options.animateAddingMarkers?this._animationAddLayer(o,i):this._animationAddLayerNonAnimated(o,i)),this},"addLayer"),removeLayer:e(function(o){return o instanceof L.LayerGroup?this.removeLayers([o]):o.getLatLng?this._map?o.__parent?(this._unspiderfy&&(this._unspiderfy(),this._unspiderfyLayer(o)),this._removeLayer(o,!0),this.fire("layerremove",{layer:o}),this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),o.off(this._childMarkerEventHandlers,this),this._featureGroup.hasLayer(o)&&(this._featureGroup.removeLayer(o),o.clusterShow&&o.clusterShow()),this):this:(!this._arraySplice(this._needsClustering,o)&&this.hasLayer(o)&&this._needsRemoving.push({layer:o,latlng:o._latlng}),this.fire("layerremove",{layer:o}),this):(this._nonPointGroup.removeLayer(o),this.fire("layerremove",{layer:o}),this)},"removeLayer"),addLayers:e(function(o,i){if(!L.Util.isArray(o))return this.addLayer(o);var a=this._featureGroup,u=this._nonPointGroup,p=this.options.chunkedLoading,g=this.options.chunkInterval,d=this.options.chunkProgress,f=o.length,_=0,b=!0,y;if(this._map){var x=new Date().getTime(),k=L.bind(function(){var P=new Date().getTime();for(this._map&&this._unspiderfy&&this._unspiderfy();_<f;_++){if(p&&_%200===0){var T=new Date().getTime()-P;if(T>g)break}if(y=o[_],y instanceof L.LayerGroup){b&&(o=o.slice(),b=!1),this._extractNonGroupLayers(y,o),f=o.length;continue}if(!y.getLatLng){u.addLayer(y),i||this.fire("layeradd",{layer:y});continue}if(!this.hasLayer(y)&&(this._addLayer(y,this._maxZoom),i||this.fire("layeradd",{layer:y}),y.__parent&&y.__parent.getChildCount()===2)){var E=y.__parent.getAllChildMarkers(),O=E[0]===y?E[1]:E[0];a.removeLayer(O)}}d&&d(_,f,new Date().getTime()-x),_===f?(this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),this._topClusterLevel._recursivelyAddChildrenToMap(null,this._zoom,this._currentShownBounds)):setTimeout(k,this.options.chunkDelay)},this);k()}else for(var C=this._needsClustering;_<f;_++){if(y=o[_],y instanceof L.LayerGroup){b&&(o=o.slice(),b=!1),this._extractNonGroupLayers(y,o),f=o.length;continue}if(!y.getLatLng){u.addLayer(y);continue}this.hasLayer(y)||C.push(y)}return this},"addLayers"),removeLayers:e(function(o){var i,a,u=o.length,p=this._featureGroup,g=this._nonPointGroup,d=!0;if(!this._map){for(i=0;i<u;i++){if(a=o[i],a instanceof L.LayerGroup){d&&(o=o.slice(),d=!1),this._extractNonGroupLayers(a,o),u=o.length;continue}this._arraySplice(this._needsClustering,a),g.removeLayer(a),this.hasLayer(a)&&this._needsRemoving.push({layer:a,latlng:a._latlng}),this.fire("layerremove",{layer:a})}return this}if(this._unspiderfy){this._unspiderfy();var f=o.slice(),_=u;for(i=0;i<_;i++){if(a=f[i],a instanceof L.LayerGroup){this._extractNonGroupLayers(a,f),_=f.length;continue}this._unspiderfyLayer(a)}}for(i=0;i<u;i++){if(a=o[i],a instanceof L.LayerGroup){d&&(o=o.slice(),d=!1),this._extractNonGroupLayers(a,o),u=o.length;continue}if(!a.__parent){g.removeLayer(a),this.fire("layerremove",{layer:a});continue}this._removeLayer(a,!0,!0),this.fire("layerremove",{layer:a}),p.hasLayer(a)&&(p.removeLayer(a),a.clusterShow&&a.clusterShow())}return this._topClusterLevel._recalculateBounds(),this._refreshClustersIcons(),this._topClusterLevel._recursivelyAddChildrenToMap(null,this._zoom,this._currentShownBounds),this},"removeLayers"),clearLayers:e(function(){return this._map||(this._needsClustering=[],this._needsRemoving=[],delete this._gridClusters,delete this._gridUnclustered),this._noanimationUnspiderfy&&this._noanimationUnspiderfy(),this._featureGroup.clearLayers(),this._nonPointGroup.clearLayers(),this.eachLayer(function(o){o.off(this._childMarkerEventHandlers,this),delete o.__parent},this),this._map&&this._generateInitialClusters(),this},"clearLayers"),getBounds:e(function(){var o=new L.LatLngBounds;this._topClusterLevel&&o.extend(this._topClusterLevel._bounds);for(var i=this._needsClustering.length-1;i>=0;i--)o.extend(this._needsClustering[i].getLatLng());return o.extend(this._nonPointGroup.getBounds()),o},"getBounds"),eachLayer:e(function(o,i){var a=this._needsClustering.slice(),u=this._needsRemoving,p,g,d;for(this._topClusterLevel&&this._topClusterLevel.getAllChildMarkers(a),g=a.length-1;g>=0;g--){for(p=!0,d=u.length-1;d>=0;d--)if(u[d].layer===a[g]){p=!1;break}p&&o.call(i,a[g])}this._nonPointGroup.eachLayer(o,i)},"eachLayer"),getLayers:e(function(){var o=[];return this.eachLayer(function(i){o.push(i)}),o},"getLayers"),getLayer:e(function(o){var i=null;return o=parseInt(o,10),this.eachLayer(function(a){L.stamp(a)===o&&(i=a)}),i},"getLayer"),hasLayer:e(function(o){if(!o)return!1;var i,a=this._needsClustering;for(i=a.length-1;i>=0;i--)if(a[i]===o)return!0;for(a=this._needsRemoving,i=a.length-1;i>=0;i--)if(a[i].layer===o)return!1;return!!(o.__parent&&o.__parent._group===this)||this._nonPointGroup.hasLayer(o)},"hasLayer"),zoomToShowLayer:e(function(o,i){var a=this._map;typeof i!="function"&&(i=e(function(){},"callback"));var u=e(function(){(a.hasLayer(o)||a.hasLayer(o.__parent))&&!this._inZoomAnimation&&(this._map.off("moveend",u,this),this.off("animationend",u,this),a.hasLayer(o)?i():o.__parent._icon&&(this.once("spiderfied",i,this),o.__parent.spiderfy()))},"showMarker");o._icon&&this._map.getBounds().contains(o.getLatLng())?i():o.__parent._zoom<Math.round(this._map._zoom)?(this._map.on("moveend",u,this),this._map.panTo(o.getLatLng())):(this._map.on("moveend",u,this),this.on("animationend",u,this),o.__parent.zoomToBounds())},"zoomToShowLayer"),onAdd:e(function(o){this._map=o;var i,a,u;if(!isFinite(this._map.getMaxZoom()))throw"Map has no maxZoom specified";for(this._featureGroup.addTo(o),this._nonPointGroup.addTo(o),this._gridClusters||this._generateInitialClusters(),this._maxLat=o.options.crs.projection.MAX_LATITUDE,i=0,a=this._needsRemoving.length;i<a;i++)u=this._needsRemoving[i],u.newlatlng=u.layer._latlng,u.layer._latlng=u.latlng;for(i=0,a=this._needsRemoving.length;i<a;i++)u=this._needsRemoving[i],this._removeLayer(u.layer,!0),u.layer._latlng=u.newlatlng;this._needsRemoving=[],this._zoom=Math.round(this._map._zoom),this._currentShownBounds=this._getExpandedVisibleBounds(),this._map.on("zoomend",this._zoomEnd,this),this._map.on("moveend",this._moveEnd,this),this._spiderfierOnAdd&&this._spiderfierOnAdd(),this._bindEvents(),a=this._needsClustering,this._needsClustering=[],this.addLayers(a,!0)},"onAdd"),onRemove:e(function(o){o.off("zoomend",this._zoomEnd,this),o.off("moveend",this._moveEnd,this),this._unbindEvents(),this._map._mapPane.className=this._map._mapPane.className.replace(" leaflet-cluster-anim",""),this._spiderfierOnRemove&&this._spiderfierOnRemove(),delete this._maxLat,this._hideCoverage(),this._featureGroup.remove(),this._nonPointGroup.remove(),this._featureGroup.clearLayers(),this._map=null},"onRemove"),getVisibleParent:e(function(o){for(var i=o;i&&!i._icon;)i=i.__parent;return i||null},"getVisibleParent"),_arraySplice:e(function(o,i){for(var a=o.length-1;a>=0;a--)if(o[a]===i)return o.splice(a,1),!0},"_arraySplice"),_removeFromGridUnclustered:e(function(o,i){for(var a=this._map,u=this._gridUnclustered,p=Math.floor(this._map.getMinZoom());i>=p&&u[i].removeObject(o,a.project(o.getLatLng(),i));i--);},"_removeFromGridUnclustered"),_childMarkerDragStart:e(function(o){o.target.__dragStart=o.target._latlng},"_childMarkerDragStart"),_childMarkerMoved:e(function(o){if(!this._ignoreMove&&!o.target.__dragStart){var i=o.target._popup&&o.target._popup.isOpen();this._moveChild(o.target,o.oldLatLng,o.latlng),i&&o.target.openPopup()}},"_childMarkerMoved"),_moveChild:e(function(o,i,a){o._latlng=i,this.removeLayer(o),o._latlng=a,this.addLayer(o)},"_moveChild"),_childMarkerDragEnd:e(function(o){var i=o.target.__dragStart;delete o.target.__dragStart,i&&this._moveChild(o.target,i,o.target._latlng)},"_childMarkerDragEnd"),_removeLayer:e(function(o,i,a){var u=this._gridClusters,p=this._gridUnclustered,g=this._featureGroup,d=this._map,f=Math.floor(this._map.getMinZoom());i&&this._removeFromGridUnclustered(o,this._maxZoom);var _=o.__parent,b=_._markers,y;for(this._arraySplice(b,o);_&&(_._childCount--,_._boundsNeedUpdate=!0,!(_._zoom<f));)i&&_._childCount<=1?(y=_._markers[0]===o?_._markers[1]:_._markers[0],u[_._zoom].removeObject(_,d.project(_._cLatLng,_._zoom)),p[_._zoom].addObject(y,d.project(y.getLatLng(),_._zoom)),this._arraySplice(_.__parent._childClusters,_),_.__parent._markers.push(y),y.__parent=_.__parent,_._icon&&(g.removeLayer(_),a||g.addLayer(y))):_._iconNeedsUpdate=!0,_=_.__parent;delete o.__parent},"_removeLayer"),_isOrIsParent:e(function(o,i){for(;i;){if(o===i)return!0;i=i.parentNode}return!1},"_isOrIsParent"),fire:e(function(o,i,a){if(i&&i.layer instanceof L.MarkerCluster){if(i.originalEvent&&this._isOrIsParent(i.layer._icon,i.originalEvent.relatedTarget))return;o="cluster"+o}L.FeatureGroup.prototype.fire.call(this,o,i,a)},"fire"),listens:e(function(o,i){return L.FeatureGroup.prototype.listens.call(this,o,i)||L.FeatureGroup.prototype.listens.call(this,"cluster"+o,i)},"listens"),_defaultIconCreateFunction:e(function(o){var i=o.getChildCount(),a=" marker-cluster-";return i<10?a+="small":i<100?a+="medium":a+="large",new L.DivIcon({html:"<div><span>"+i+"</span></div>",className:"marker-cluster"+a,iconSize:new L.Point(40,40)})},"_defaultIconCreateFunction"),_bindEvents:e(function(){var o=this._map,i=this.options.spiderfyOnMaxZoom,a=this.options.showCoverageOnHover,u=this.options.zoomToBoundsOnClick,p=this.options.spiderfyOnEveryZoom;(i||u||p)&&this.on("clusterclick clusterkeypress",this._zoomOrSpiderfy,this),a&&(this.on("clustermouseover",this._showCoverage,this),this.on("clustermouseout",this._hideCoverage,this),o.on("zoomend",this._hideCoverage,this))},"_bindEvents"),_zoomOrSpiderfy:e(function(o){var i=o.layer,a=i;if(!(o.type==="clusterkeypress"&&o.originalEvent&&o.originalEvent.keyCode!==13)){for(;a._childClusters.length===1;)a=a._childClusters[0];a._zoom===this._maxZoom&&a._childCount===i._childCount&&this.options.spiderfyOnMaxZoom?i.spiderfy():this.options.zoomToBoundsOnClick&&i.zoomToBounds(),this.options.spiderfyOnEveryZoom&&i.spiderfy(),o.originalEvent&&o.originalEvent.keyCode===13&&this._map._container.focus()}},"_zoomOrSpiderfy"),_showCoverage:e(function(o){var i=this._map;this._inZoomAnimation||(this._shownPolygon&&i.removeLayer(this._shownPolygon),o.layer.getChildCount()>2&&o.layer!==this._spiderfied&&(this._shownPolygon=new L.Polygon(o.layer.getConvexHull(),this.options.polygonOptions),i.addLayer(this._shownPolygon)))},"_showCoverage"),_hideCoverage:e(function(){this._shownPolygon&&(this._map.removeLayer(this._shownPolygon),this._shownPolygon=null)},"_hideCoverage"),_unbindEvents:e(function(){var o=this.options.spiderfyOnMaxZoom,i=this.options.showCoverageOnHover,a=this.options.zoomToBoundsOnClick,u=this.options.spiderfyOnEveryZoom,p=this._map;(o||a||u)&&this.off("clusterclick clusterkeypress",this._zoomOrSpiderfy,this),i&&(this.off("clustermouseover",this._showCoverage,this),this.off("clustermouseout",this._hideCoverage,this),p.off("zoomend",this._hideCoverage,this))},"_unbindEvents"),_zoomEnd:e(function(){this._map&&(this._mergeSplitClusters(),this._zoom=Math.round(this._map._zoom),this._currentShownBounds=this._getExpandedVisibleBounds())},"_zoomEnd"),_moveEnd:e(function(){if(!this._inZoomAnimation){var o=this._getExpandedVisibleBounds();this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),this._zoom,o),this._topClusterLevel._recursivelyAddChildrenToMap(null,Math.round(this._map._zoom),o),this._currentShownBounds=o}},"_moveEnd"),_generateInitialClusters:e(function(){var o=Math.ceil(this._map.getMaxZoom()),i=Math.floor(this._map.getMinZoom()),a=this.options.maxClusterRadius,u=a;typeof a!="function"&&(u=e(function(){return a},"radiusFn")),this.options.disableClusteringAtZoom!==null&&(o=this.options.disableClusteringAtZoom-1),this._maxZoom=o,this._gridClusters={},this._gridUnclustered={};for(var p=o;p>=i;p--)this._gridClusters[p]=new L.DistanceGrid(u(p)),this._gridUnclustered[p]=new L.DistanceGrid(u(p));this._topClusterLevel=new this._markerCluster(this,i-1)},"_generateInitialClusters"),_addLayer:e(function(o,i){var a=this._gridClusters,u=this._gridUnclustered,p=Math.floor(this._map.getMinZoom()),g,d;for(this.options.singleMarkerMode&&this._overrideMarkerIcon(o),o.on(this._childMarkerEventHandlers,this);i>=p;i--){g=this._map.project(o.getLatLng(),i);var f=a[i].getNearObject(g);if(f){f._addChild(o),o.__parent=f;return}if(f=u[i].getNearObject(g),f){var _=f.__parent;_&&this._removeLayer(f,!1);var b=new this._markerCluster(this,i,f,o);a[i].addObject(b,this._map.project(b._cLatLng,i)),f.__parent=b,o.__parent=b;var y=b;for(d=i-1;d>_._zoom;d--)y=new this._markerCluster(this,d,y),a[d].addObject(y,this._map.project(f.getLatLng(),d));_._addChild(y),this._removeFromGridUnclustered(f,i);return}u[i].addObject(o,g)}this._topClusterLevel._addChild(o),o.__parent=this._topClusterLevel},"_addLayer"),_refreshClustersIcons:e(function(){this._featureGroup.eachLayer(function(o){o instanceof L.MarkerCluster&&o._iconNeedsUpdate&&o._updateIcon()})},"_refreshClustersIcons"),_enqueue:e(function(o){this._queue.push(o),this._queueTimeout||(this._queueTimeout=setTimeout(L.bind(this._processQueue,this),300))},"_enqueue"),_processQueue:e(function(){for(var o=0;o<this._queue.length;o++)this._queue[o].call(this);this._queue.length=0,clearTimeout(this._queueTimeout),this._queueTimeout=null},"_processQueue"),_mergeSplitClusters:e(function(){var o=Math.round(this._map._zoom);this._processQueue(),this._zoom<o&&this._currentShownBounds.intersects(this._getExpandedVisibleBounds())?(this._animationStart(),this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),this._zoom,this._getExpandedVisibleBounds()),this._animationZoomIn(this._zoom,o)):this._zoom>o?(this._animationStart(),this._animationZoomOut(this._zoom,o)):this._moveEnd()},"_mergeSplitClusters"),_getExpandedVisibleBounds:e(function(){if(this.options.removeOutsideVisibleBounds){if(L.Browser.mobile)return this._checkBoundsMaxLat(this._map.getBounds())}else return this._mapBoundsInfinite;return this._checkBoundsMaxLat(this._map.getBounds().pad(1))},"_getExpandedVisibleBounds"),_checkBoundsMaxLat:e(function(o){var i=this._maxLat;return i!==void 0&&(o.getNorth()>=i&&(o._northEast.lat=1/0),o.getSouth()<=-i&&(o._southWest.lat=-1/0)),o},"_checkBoundsMaxLat"),_animationAddLayerNonAnimated:e(function(o,i){if(i===o)this._featureGroup.addLayer(o);else if(i._childCount===2){i._addToMap();var a=i.getAllChildMarkers();this._featureGroup.removeLayer(a[0]),this._featureGroup.removeLayer(a[1])}else i._updateIcon()},"_animationAddLayerNonAnimated"),_extractNonGroupLayers:e(function(o,i){var a=o.getLayers(),u=0,p;for(i=i||[];u<a.length;u++){if(p=a[u],p instanceof L.LayerGroup){this._extractNonGroupLayers(p,i);continue}i.push(p)}return i},"_extractNonGroupLayers"),_overrideMarkerIcon:e(function(o){var i=o.options.icon=this.options.iconCreateFunction({getChildCount:e(function(){return 1},"getChildCount"),getAllChildMarkers:e(function(){return[o]},"getAllChildMarkers")});return i},"_overrideMarkerIcon")});L.MarkerClusterGroup.include({_mapBoundsInfinite:new L.LatLngBounds(new L.LatLng(-1/0,-1/0),new L.LatLng(1/0,1/0))}),L.MarkerClusterGroup.include({_noAnimation:{_animationStart:e(function(){},"_animationStart"),_animationZoomIn:e(function(o,i){this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),o),this._topClusterLevel._recursivelyAddChildrenToMap(null,i,this._getExpandedVisibleBounds()),this.fire("animationend")},"_animationZoomIn"),_animationZoomOut:e(function(o,i){this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),o),this._topClusterLevel._recursivelyAddChildrenToMap(null,i,this._getExpandedVisibleBounds()),this.fire("animationend")},"_animationZoomOut"),_animationAddLayer:e(function(o,i){this._animationAddLayerNonAnimated(o,i)},"_animationAddLayer")},_withAnimation:{_animationStart:e(function(){this._map._mapPane.className+=" leaflet-cluster-anim",this._inZoomAnimation++},"_animationStart"),_animationZoomIn:e(function(o,i){var a=this._getExpandedVisibleBounds(),u=this._featureGroup,p=Math.floor(this._map.getMinZoom()),g;this._ignoreMove=!0,this._topClusterLevel._recursively(a,o,p,function(d){var f=d._latlng,_=d._markers,b;for(a.contains(f)||(f=null),d._isSingleParent()&&o+1===i?(u.removeLayer(d),d._recursivelyAddChildrenToMap(null,i,a)):(d.clusterHide(),d._recursivelyAddChildrenToMap(f,i,a)),g=_.length-1;g>=0;g--)b=_[g],a.contains(b._latlng)||u.removeLayer(b)}),this._forceLayout(),this._topClusterLevel._recursivelyBecomeVisible(a,i),u.eachLayer(function(d){!(d instanceof L.MarkerCluster)&&d._icon&&d.clusterShow()}),this._topClusterLevel._recursively(a,o,i,function(d){d._recursivelyRestoreChildPositions(i)}),this._ignoreMove=!1,this._enqueue(function(){this._topClusterLevel._recursively(a,o,p,function(d){u.removeLayer(d),d.clusterShow()}),this._animationEnd()})},"_animationZoomIn"),_animationZoomOut:e(function(o,i){this._animationZoomOutSingle(this._topClusterLevel,o-1,i),this._topClusterLevel._recursivelyAddChildrenToMap(null,i,this._getExpandedVisibleBounds()),this._topClusterLevel._recursivelyRemoveChildrenFromMap(this._currentShownBounds,Math.floor(this._map.getMinZoom()),o,this._getExpandedVisibleBounds())},"_animationZoomOut"),_animationAddLayer:e(function(o,i){var a=this,u=this._featureGroup;u.addLayer(o),i!==o&&(i._childCount>2?(i._updateIcon(),this._forceLayout(),this._animationStart(),o._setPos(this._map.latLngToLayerPoint(i.getLatLng())),o.clusterHide(),this._enqueue(function(){u.removeLayer(o),o.clusterShow(),a._animationEnd()})):(this._forceLayout(),a._animationStart(),a._animationZoomOutSingle(i,this._map.getMaxZoom(),this._zoom)))},"_animationAddLayer")},_animationZoomOutSingle:e(function(o,i,a){var u=this._getExpandedVisibleBounds(),p=Math.floor(this._map.getMinZoom());o._recursivelyAnimateChildrenInAndAddSelfToMap(u,p,i+1,a);var g=this;this._forceLayout(),o._recursivelyBecomeVisible(u,a),this._enqueue(function(){if(o._childCount===1){var d=o._markers[0];this._ignoreMove=!0,d.setLatLng(d.getLatLng()),this._ignoreMove=!1,d.clusterShow&&d.clusterShow()}else o._recursively(u,a,p,function(f){f._recursivelyRemoveChildrenFromMap(u,p,i+1)});g._animationEnd()})},"_animationZoomOutSingle"),_animationEnd:e(function(){this._map&&(this._map._mapPane.className=this._map._mapPane.className.replace(" leaflet-cluster-anim","")),this._inZoomAnimation--,this.fire("animationend")},"_animationEnd"),_forceLayout:e(function(){L.Util.falseFn(document.body.offsetWidth)},"_forceLayout")}),L.markerClusterGroup=function(o){return new L.MarkerClusterGroup(o)};var l=L.MarkerCluster=L.Marker.extend({options:L.Icon.prototype.options,initialize:e(function(o,i,a,u){L.Marker.prototype.initialize.call(this,a?a._cLatLng||a.getLatLng():new L.LatLng(0,0),{icon:this,pane:o.options.clusterPane}),this._group=o,this._zoom=i,this._markers=[],this._childClusters=[],this._childCount=0,this._iconNeedsUpdate=!0,this._boundsNeedUpdate=!0,this._bounds=new L.LatLngBounds,a&&this._addChild(a),u&&this._addChild(u)},"initialize"),getAllChildMarkers:e(function(o,i){o=o||[];for(var a=this._childClusters.length-1;a>=0;a--)this._childClusters[a].getAllChildMarkers(o,i);for(var u=this._markers.length-1;u>=0;u--)i&&this._markers[u].__dragStart||o.push(this._markers[u]);return o},"getAllChildMarkers"),getChildCount:e(function(){return this._childCount},"getChildCount"),zoomToBounds:e(function(o){for(var i=this._childClusters.slice(),a=this._group._map,u=a.getBoundsZoom(this._bounds),p=this._zoom+1,g=a.getZoom(),d;i.length>0&&u>p;){p++;var f=[];for(d=0;d<i.length;d++)f=f.concat(i[d]._childClusters);i=f}u>p?this._group._map.setView(this._latlng,p):u<=g?this._group._map.setView(this._latlng,g+1):this._group._map.fitBounds(this._bounds,o)},"zoomToBounds"),getBounds:e(function(){var o=new L.LatLngBounds;return o.extend(this._bounds),o},"getBounds"),_updateIcon:e(function(){this._iconNeedsUpdate=!0,this._icon&&this.setIcon(this)},"_updateIcon"),createIcon:e(function(){return this._iconNeedsUpdate&&(this._iconObj=this._group.options.iconCreateFunction(this),this._iconNeedsUpdate=!1),this._iconObj.createIcon()},"createIcon"),createShadow:e(function(){return this._iconObj.createShadow()},"createShadow"),_addChild:e(function(o,i){this._iconNeedsUpdate=!0,this._boundsNeedUpdate=!0,this._setClusterCenter(o),o instanceof L.MarkerCluster?(i||(this._childClusters.push(o),o.__parent=this),this._childCount+=o._childCount):(i||this._markers.push(o),this._childCount++),this.__parent&&this.__parent._addChild(o,!0)},"_addChild"),_setClusterCenter:e(function(o){this._cLatLng||(this._cLatLng=o._cLatLng||o._latlng)},"_setClusterCenter"),_resetBounds:e(function(){var o=this._bounds;o._southWest&&(o._southWest.lat=1/0,o._southWest.lng=1/0),o._northEast&&(o._northEast.lat=-1/0,o._northEast.lng=-1/0)},"_resetBounds"),_recalculateBounds:e(function(){var o=this._markers,i=this._childClusters,a=0,u=0,p=this._childCount,g,d,f,_;if(p!==0){for(this._resetBounds(),g=0;g<o.length;g++)f=o[g]._latlng,this._bounds.extend(f),a+=f.lat,u+=f.lng;for(g=0;g<i.length;g++)d=i[g],d._boundsNeedUpdate&&d._recalculateBounds(),this._bounds.extend(d._bounds),f=d._wLatLng,_=d._childCount,a+=f.lat*_,u+=f.lng*_;this._latlng=this._wLatLng=new L.LatLng(a/p,u/p),this._boundsNeedUpdate=!1}},"_recalculateBounds"),_addToMap:e(function(o){o&&(this._backupLatlng=this._latlng,this.setLatLng(o)),this._group._featureGroup.addLayer(this)},"_addToMap"),_recursivelyAnimateChildrenIn:e(function(o,i,a){this._recursively(o,this._group._map.getMinZoom(),a-1,function(u){var p=u._markers,g,d;for(g=p.length-1;g>=0;g--)d=p[g],d._icon&&(d._setPos(i),d.clusterHide())},function(u){var p=u._childClusters,g,d;for(g=p.length-1;g>=0;g--)d=p[g],d._icon&&(d._setPos(i),d.clusterHide())})},"_recursivelyAnimateChildrenIn"),_recursivelyAnimateChildrenInAndAddSelfToMap:e(function(o,i,a,u){this._recursively(o,u,i,function(p){p._recursivelyAnimateChildrenIn(o,p._group._map.latLngToLayerPoint(p.getLatLng()).round(),a),p._isSingleParent()&&a-1===u?(p.clusterShow(),p._recursivelyRemoveChildrenFromMap(o,i,a)):p.clusterHide(),p._addToMap()})},"_recursivelyAnimateChildrenInAndAddSelfToMap"),_recursivelyBecomeVisible:e(function(o,i){this._recursively(o,this._group._map.getMinZoom(),i,null,function(a){a.clusterShow()})},"_recursivelyBecomeVisible"),_recursivelyAddChildrenToMap:e(function(o,i,a){this._recursively(a,this._group._map.getMinZoom()-1,i,function(u){if(i!==u._zoom)for(var p=u._markers.length-1;p>=0;p--){var g=u._markers[p];a.contains(g._latlng)&&(o&&(g._backupLatlng=g.getLatLng(),g.setLatLng(o),g.clusterHide&&g.clusterHide()),u._group._featureGroup.addLayer(g))}},function(u){u._addToMap(o)})},"_recursivelyAddChildrenToMap"),_recursivelyRestoreChildPositions:e(function(o){for(var i=this._markers.length-1;i>=0;i--){var a=this._markers[i];a._backupLatlng&&(a.setLatLng(a._backupLatlng),delete a._backupLatlng)}if(o-1===this._zoom)for(var u=this._childClusters.length-1;u>=0;u--)this._childClusters[u]._restorePosition();else for(var p=this._childClusters.length-1;p>=0;p--)this._childClusters[p]._recursivelyRestoreChildPositions(o)},"_recursivelyRestoreChildPositions"),_restorePosition:e(function(){this._backupLatlng&&(this.setLatLng(this._backupLatlng),delete this._backupLatlng)},"_restorePosition"),_recursivelyRemoveChildrenFromMap:e(function(o,i,a,u){var p,g;this._recursively(o,i-1,a-1,function(d){for(g=d._markers.length-1;g>=0;g--)p=d._markers[g],(!u||!u.contains(p._latlng))&&(d._group._featureGroup.removeLayer(p),p.clusterShow&&p.clusterShow())},function(d){for(g=d._childClusters.length-1;g>=0;g--)p=d._childClusters[g],(!u||!u.contains(p._latlng))&&(d._group._featureGroup.removeLayer(p),p.clusterShow&&p.clusterShow())})},"_recursivelyRemoveChildrenFromMap"),_recursively:e(function(o,i,a,u,p){var g=this._childClusters,d=this._zoom,f,_;if(i<=d&&(u&&u(this),p&&d===a&&p(this)),d<i||d<a)for(f=g.length-1;f>=0;f--)_=g[f],_._boundsNeedUpdate&&_._recalculateBounds(),o.intersects(_._bounds)&&_._recursively(o,i,a,u,p)},"_recursively"),_isSingleParent:e(function(){return this._childClusters.length>0&&this._childClusters[0]._childCount===this._childCount},"_isSingleParent")});L.Marker.include({clusterHide:e(function(){var o=this.options.opacity;return this.setOpacity(0),this.options.opacity=o,this},"clusterHide"),clusterShow:e(function(){return this.setOpacity(this.options.opacity)},"clusterShow")}),L.DistanceGrid=function(o){this._cellSize=o,this._sqCellSize=o*o,this._grid={},this._objectPoint={}},L.DistanceGrid.prototype={addObject:e(function(o,i){var a=this._getCoord(i.x),u=this._getCoord(i.y),p=this._grid,g=p[u]=p[u]||{},d=g[a]=g[a]||[],f=L.Util.stamp(o);this._objectPoint[f]=i,d.push(o)},"addObject"),updateObject:e(function(o,i){this.removeObject(o),this.addObject(o,i)},"updateObject"),removeObject:e(function(o,i){var a=this._getCoord(i.x),u=this._getCoord(i.y),p=this._grid,g=p[u]=p[u]||{},d=g[a]=g[a]||[],f,_;for(delete this._objectPoint[L.Util.stamp(o)],f=0,_=d.length;f<_;f++)if(d[f]===o)return d.splice(f,1),_===1&&delete g[a],!0},"removeObject"),eachObject:e(function(o,i){var a,u,p,g,d,f,_,b=this._grid;for(a in b){d=b[a];for(u in d)for(f=d[u],p=0,g=f.length;p<g;p++)_=o.call(i,f[p]),_&&(p--,g--)}},"eachObject"),getNearObject:e(function(o){var i=this._getCoord(o.x),a=this._getCoord(o.y),u,p,g,d,f,_,b,y,x=this._objectPoint,k=this._sqCellSize,C=null;for(u=a-1;u<=a+1;u++)if(d=this._grid[u],d){for(p=i-1;p<=i+1;p++)if(f=d[p],f)for(g=0,_=f.length;g<_;g++)b=f[g],y=this._sqDist(x[L.Util.stamp(b)],o),(y<k||y<=k&&C===null)&&(k=y,C=b)}return C},"getNearObject"),_getCoord:e(function(o){var i=Math.floor(o/this._cellSize);return isFinite(i)?i:o},"_getCoord"),_sqDist:e(function(o,i){var a=i.x-o.x,u=i.y-o.y;return a*a+u*u},"_sqDist")},function(){L.QuickHull={getDistant:e(function(o,i){var a=i[1].lat-i[0].lat,u=i[0].lng-i[1].lng;return u*(o.lat-i[0].lat)+a*(o.lng-i[0].lng)},"getDistant"),findMostDistantPointFromBaseLine:e(function(o,i){var a=0,u=null,p=[],g,d,f;for(g=i.length-1;g>=0;g--){if(d=i[g],f=this.getDistant(d,o),f>0)p.push(d);else continue;f>a&&(a=f,u=d)}return{maxPoint:u,newPoints:p}},"findMostDistantPointFromBaseLine"),buildConvexHull:e(function(o,i){var a=[],u=this.findMostDistantPointFromBaseLine(o,i);return u.maxPoint?(a=a.concat(this.buildConvexHull([o[0],u.maxPoint],u.newPoints)),a=a.concat(this.buildConvexHull([u.maxPoint,o[1]],u.newPoints)),a):[o[0]]},"buildConvexHull"),getConvexHull:e(function(o){var i=!1,a=!1,u=!1,p=!1,g=null,d=null,f=null,_=null,b=null,y=null,x;for(x=o.length-1;x>=0;x--){var k=o[x];(i===!1||k.lat>i)&&(g=k,i=k.lat),(a===!1||k.lat<a)&&(d=k,a=k.lat),(u===!1||k.lng>u)&&(f=k,u=k.lng),(p===!1||k.lng<p)&&(_=k,p=k.lng)}a!==i?(y=d,b=g):(y=_,b=f);var C=[].concat(this.buildConvexHull([y,b],o),this.buildConvexHull([b,y],o));return C},"getConvexHull")}}(),L.MarkerCluster.include({getConvexHull:e(function(){var o=this.getAllChildMarkers(),i=[],a,u;for(u=o.length-1;u>=0;u--)a=o[u].getLatLng(),i.push(a);return L.QuickHull.getConvexHull(i)},"getConvexHull")}),L.MarkerCluster.include({_2PI:Math.PI*2,_circleFootSeparation:25,_circleStartAngle:0,_spiralFootSeparation:28,_spiralLengthStart:11,_spiralLengthFactor:5,_circleSpiralSwitchover:9,spiderfy:e(function(){if(!(this._group._spiderfied===this||this._group._inZoomAnimation)){var o=this.getAllChildMarkers(null,!0),i=this._group,a=i._map,u=a.latLngToLayerPoint(this._latlng),p;this._group._unspiderfy(),this._group._spiderfied=this,this._group.options.spiderfyShapePositions?p=this._group.options.spiderfyShapePositions(o.length,u):o.length>=this._circleSpiralSwitchover?p=this._generatePointsSpiral(o.length,u):(u.y+=10,p=this._generatePointsCircle(o.length,u)),this._animationSpiderfy(o,p)}},"spiderfy"),unspiderfy:e(function(o){this._group._inZoomAnimation||(this._animationUnspiderfy(o),this._group._spiderfied=null)},"unspiderfy"),_generatePointsCircle:e(function(o,i){var a=this._group.options.spiderfyDistanceMultiplier*this._circleFootSeparation*(2+o),u=a/this._2PI,p=this._2PI/o,g=[],d,f;for(u=Math.max(u,35),g.length=o,d=0;d<o;d++)f=this._circleStartAngle+d*p,g[d]=new L.Point(i.x+u*Math.cos(f),i.y+u*Math.sin(f))._round();return g},"_generatePointsCircle"),_generatePointsSpiral:e(function(o,i){var a=this._group.options.spiderfyDistanceMultiplier,u=a*this._spiralLengthStart,p=a*this._spiralFootSeparation,g=a*this._spiralLengthFactor*this._2PI,d=0,f=[],_;for(f.length=o,_=o;_>=0;_--)_<o&&(f[_]=new L.Point(i.x+u*Math.cos(d),i.y+u*Math.sin(d))._round()),d+=p/u+_*5e-4,u+=g/d;return f},"_generatePointsSpiral"),_noanimationUnspiderfy:e(function(){var o=this._group,i=o._map,a=o._featureGroup,u=this.getAllChildMarkers(null,!0),p,g;for(o._ignoreMove=!0,this.setOpacity(1),g=u.length-1;g>=0;g--)p=u[g],a.removeLayer(p),p._preSpiderfyLatlng&&(p.setLatLng(p._preSpiderfyLatlng),delete p._preSpiderfyLatlng),p.setZIndexOffset&&p.setZIndexOffset(0),p._spiderLeg&&(i.removeLayer(p._spiderLeg),delete p._spiderLeg);o.fire("unspiderfied",{cluster:this,markers:u}),o._ignoreMove=!1,o._spiderfied=null},"_noanimationUnspiderfy")}),L.MarkerClusterNonAnimated=L.MarkerCluster.extend({_animationSpiderfy:e(function(o,i){var a=this._group,u=a._map,p=a._featureGroup,g=this._group.options.spiderLegPolylineOptions,d,f,_,b;for(a._ignoreMove=!0,d=0;d<o.length;d++)b=u.layerPointToLatLng(i[d]),f=o[d],_=new L.Polyline([this._latlng,b],g),u.addLayer(_),f._spiderLeg=_,f._preSpiderfyLatlng=f._latlng,f.setLatLng(b),f.setZIndexOffset&&f.setZIndexOffset(1e6),p.addLayer(f);this.setOpacity(.3),a._ignoreMove=!1,a.fire("spiderfied",{cluster:this,markers:o})},"_animationSpiderfy"),_animationUnspiderfy:e(function(){this._noanimationUnspiderfy()},"_animationUnspiderfy")}),L.MarkerCluster.include({_animationSpiderfy:e(function(o,i){var a=this,u=this._group,p=u._map,g=u._featureGroup,d=this._latlng,f=p.latLngToLayerPoint(d),_=L.Path.SVG,b=L.extend({},this._group.options.spiderLegPolylineOptions),y=b.opacity,x,k,C,P,T,E;for(y===void 0&&(y=L.MarkerClusterGroup.prototype.options.spiderLegPolylineOptions.opacity),_?(b.opacity=0,b.className=(b.className||"")+" leaflet-cluster-spider-leg"):b.opacity=y,u._ignoreMove=!0,x=0;x<o.length;x++)k=o[x],E=p.layerPointToLatLng(i[x]),C=new L.Polyline([d,E],b),p.addLayer(C),k._spiderLeg=C,_&&(P=C._path,T=P.getTotalLength()+.1,P.style.strokeDasharray=T,P.style.strokeDashoffset=T),k.setZIndexOffset&&k.setZIndexOffset(1e6),k.clusterHide&&k.clusterHide(),g.addLayer(k),k._setPos&&k._setPos(f);for(u._forceLayout(),u._animationStart(),x=o.length-1;x>=0;x--)E=p.layerPointToLatLng(i[x]),k=o[x],k._preSpiderfyLatlng=k._latlng,k.setLatLng(E),k.clusterShow&&k.clusterShow(),_&&(C=k._spiderLeg,P=C._path,P.style.strokeDashoffset=0,C.setStyle({opacity:y}));this.setOpacity(.3),u._ignoreMove=!1,setTimeout(function(){u._animationEnd(),u.fire("spiderfied",{cluster:a,markers:o})},200)},"_animationSpiderfy"),_animationUnspiderfy:e(function(o){var i=this,a=this._group,u=a._map,p=a._featureGroup,g=o?u._latLngToNewLayerPoint(this._latlng,o.zoom,o.center):u.latLngToLayerPoint(this._latlng),d=this.getAllChildMarkers(null,!0),f=L.Path.SVG,_,b,y,x,k,C;for(a._ignoreMove=!0,a._animationStart(),this.setOpacity(1),b=d.length-1;b>=0;b--)_=d[b],_._preSpiderfyLatlng&&(_.closePopup(),_.setLatLng(_._preSpiderfyLatlng),delete _._preSpiderfyLatlng,C=!0,_._setPos&&(_._setPos(g),C=!1),_.clusterHide&&(_.clusterHide(),C=!1),C&&p.removeLayer(_),f&&(y=_._spiderLeg,x=y._path,k=x.getTotalLength()+.1,x.style.strokeDashoffset=k,y.setStyle({opacity:0})));a._ignoreMove=!1,setTimeout(function(){var P=0;for(b=d.length-1;b>=0;b--)_=d[b],_._spiderLeg&&P++;for(b=d.length-1;b>=0;b--)_=d[b],_._spiderLeg&&(_.clusterShow&&_.clusterShow(),_.setZIndexOffset&&_.setZIndexOffset(0),P>1&&p.removeLayer(_),u.removeLayer(_._spiderLeg),delete _._spiderLeg);a._animationEnd(),a.fire("unspiderfied",{cluster:i,markers:d})},200)},"_animationUnspiderfy")}),L.MarkerClusterGroup.include({_spiderfied:null,unspiderfy:e(function(){this._unspiderfy.apply(this,arguments)},"unspiderfy"),_spiderfierOnAdd:e(function(){this._map.on("click",this._unspiderfyWrapper,this),this._map.options.zoomAnimation&&this._map.on("zoomstart",this._unspiderfyZoomStart,this),this._map.on("zoomend",this._noanimationUnspiderfy,this),L.Browser.touch||this._map.getRenderer(this)},"_spiderfierOnAdd"),_spiderfierOnRemove:e(function(){this._map.off("click",this._unspiderfyWrapper,this),this._map.off("zoomstart",this._unspiderfyZoomStart,this),this._map.off("zoomanim",this._unspiderfyZoomAnim,this),this._map.off("zoomend",this._noanimationUnspiderfy,this),this._noanimationUnspiderfy()},"_spiderfierOnRemove"),_unspiderfyZoomStart:e(function(){this._map&&this._map.on("zoomanim",this._unspiderfyZoomAnim,this)},"_unspiderfyZoomStart"),_unspiderfyZoomAnim:e(function(o){L.DomUtil.hasClass(this._map._mapPane,"leaflet-touching")||(this._map.off("zoomanim",this._unspiderfyZoomAnim,this),this._unspiderfy(o))},"_unspiderfyZoomAnim"),_unspiderfyWrapper:e(function(){this._unspiderfy()},"_unspiderfyWrapper"),_unspiderfy:e(function(o){this._spiderfied&&this._spiderfied.unspiderfy(o)},"_unspiderfy"),_noanimationUnspiderfy:e(function(){this._spiderfied&&this._spiderfied._noanimationUnspiderfy()},"_noanimationUnspiderfy"),_unspiderfyLayer:e(function(o){o._spiderLeg&&(this._featureGroup.removeLayer(o),o.clusterShow&&o.clusterShow(),o.setZIndexOffset&&o.setZIndexOffset(0),this._map.removeLayer(o._spiderLeg),delete o._spiderLeg)},"_unspiderfyLayer")}),L.MarkerClusterGroup.include({refreshClusters:e(function(o){return o?o instanceof L.MarkerClusterGroup?o=o._topClusterLevel.getAllChildMarkers():o instanceof L.LayerGroup?o=o._layers:o instanceof L.MarkerCluster?o=o.getAllChildMarkers():o instanceof L.Marker&&(o=[o]):o=this._topClusterLevel.getAllChildMarkers(),this._flagParentsIconsNeedUpdate(o),this._refreshClustersIcons(),this.options.singleMarkerMode&&this._refreshSingleMarkerModeMarkers(o),this},"refreshClusters"),_flagParentsIconsNeedUpdate:e(function(o){var i,a;for(i in o)for(a=o[i].__parent;a;)a._iconNeedsUpdate=!0,a=a.__parent},"_flagParentsIconsNeedUpdate"),_refreshSingleMarkerModeMarkers:e(function(o){var i,a;for(i in o)a=o[i],this.hasLayer(a)&&a.setIcon(this._overrideMarkerIcon(a))},"_refreshSingleMarkerModeMarkers")}),L.Marker.include({refreshIconOptions:e(function(o,i){var a=this.options.icon;return L.setOptions(a,o),this.setIcon(a),i&&this.__parent&&this.__parent._group.refreshClusters(this),this},"refreshIconOptions")}),s.MarkerClusterGroup=n,s.MarkerCluster=l,Object.defineProperty(s,"__esModule",{value:!0})})});var uc=Hn((FC,Ml)=>{"use strict";typeof Ml<"u"&&(Ml.exports=Vr);function Vr(s){if(!(this instanceof Vr))return new Vr(s);this._canvas=s=typeof s=="string"?document.getElementById(s):s,this._ctx=s.getContext("2d"),this._width=s.width,this._height=s.height,this._max=1,this._data=[]}e(Vr,"simpleheat");Vr.prototype={defaultRadius:25,defaultGradient:{.4:"blue",.6:"cyan",.7:"lime",.8:"yellow",1:"red"},data:e(function(s){return this._data=s,this},"data"),max:e(function(s){return this._max=s,this},"max"),add:e(function(s){return this._data.push(s),this},"add"),clear:e(function(){return this._data=[],this},"clear"),radius:e(function(s,n){n=n===void 0?15:n;var l=this._circle=this._createCanvas(),o=l.getContext("2d"),i=this._r=s+n;return l.width=l.height=i*2,o.shadowOffsetX=o.shadowOffsetY=i*2,o.shadowBlur=n,o.shadowColor="black",o.beginPath(),o.arc(-i,-i,s,0,Math.PI*2,!0),o.closePath(),o.fill(),this},"radius"),resize:e(function(){this._width=this._canvas.width,this._height=this._canvas.height},"resize"),gradient:e(function(s){var n=this._createCanvas(),l=n.getContext("2d"),o=l.createLinearGradient(0,0,0,256);n.width=1,n.height=256;for(var i in s)o.addColorStop(+i,s[i]);return l.fillStyle=o,l.fillRect(0,0,1,256),this._grad=l.getImageData(0,0,1,256).data,this},"gradient"),draw:e(function(s){this._circle||this.radius(this.defaultRadius),this._grad||this.gradient(this.defaultGradient);var n=this._ctx;n.clearRect(0,0,this._width,this._height);for(var l=0,o=this._data.length,i;l<o;l++)i=this._data[l],n.globalAlpha=Math.max(i[2]/this._max,s===void 0?.05:s),n.drawImage(this._circle,i[0]-this._r,i[1]-this._r);var a=n.getImageData(0,0,this._width,this._height);return this._colorize(a.data,this._grad),n.putImageData(a,0,0),this},"draw"),_colorize:e(function(s,n){for(var l=0,o=s.length,i;l<o;l+=4)i=s[l+3]*4,i&&(s[l]=n[i],s[l+1]=n[i+1],s[l+2]=n[i+2])},"_colorize"),_createCanvas:e(function(){return typeof document<"u"?document.createElement("canvas"):new this._canvas.constructor},"_createCanvas")}});var am="@hpcc-js/map",lm="3.1.1",hm="3.2.1";import{CanvasWidget as Xp}from"@hpcc-js/common";function Rs(s){var n=+this._x.call(null,s),l=+this._y.call(null,s);return Uh(this.cover(n,l),n,l,s)}e(Rs,"default");function Uh(s,n,l,o){if(isNaN(n)||isNaN(l))return s;var i,a=s._root,u={data:o},p=s._x0,g=s._y0,d=s._x1,f=s._y1,_,b,y,x,k,C,P,T;if(!a)return s._root=u,s;for(;a.length;)if((k=n>=(_=(p+d)/2))?p=_:d=_,(C=l>=(b=(g+f)/2))?g=b:f=b,i=a,!(a=a[P=C<<1|k]))return i[P]=u,s;if(y=+s._x.call(null,a.data),x=+s._y.call(null,a.data),n===y&&l===x)return u.next=a,i?i[P]=u:s._root=u,s;do i=i?i[P]=new Array(4):s._root=new Array(4),(k=n>=(_=(p+d)/2))?p=_:d=_,(C=l>=(b=(g+f)/2))?g=b:f=b;while((P=C<<1|k)===(T=(x>=b)<<1|y>=_));return i[T]=a,i[P]=u,s}e(Uh,"add");function Wh(s){var n,l,o=s.length,i,a,u=new Array(o),p=new Array(o),g=1/0,d=1/0,f=-1/0,_=-1/0;for(l=0;l<o;++l)isNaN(i=+this._x.call(null,n=s[l]))||isNaN(a=+this._y.call(null,n))||(u[l]=i,p[l]=a,i<g&&(g=i),i>f&&(f=i),a<d&&(d=a),a>_&&(_=a));if(g>f||d>_)return this;for(this.cover(g,d).cover(f,_),l=0;l<o;++l)Uh(this,u[l],p[l],s[l]);return this}e(Wh,"addAll");function Ns(s,n){if(isNaN(s=+s)||isNaN(n=+n))return this;var l=this._x0,o=this._y0,i=this._x1,a=this._y1;if(isNaN(l))i=(l=Math.floor(s))+1,a=(o=Math.floor(n))+1;else{for(var u=i-l,p=this._root,g,d;l>s||s>=i||o>n||n>=a;)switch(d=(n<o)<<1|s<l,g=new Array(4),g[d]=p,p=g,u*=2,d){case 0:i=l+u,a=o+u;break;case 1:l=i-u,a=o+u;break;case 2:i=l+u,o=a-u;break;case 3:l=i-u,o=a-u;break}this._root&&this._root.length&&(this._root=p)}return this._x0=l,this._y0=o,this._x1=i,this._y1=a,this}e(Ns,"default");function Zs(){var s=[];return this.visit(function(n){if(!n.length)do s.push(n.data);while(n=n.next)}),s}e(Zs,"default");function Fs(s){return arguments.length?this.cover(+s[0][0],+s[0][1]).cover(+s[1][0],+s[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]}e(Fs,"default");function Wt(s,n,l,o,i){this.node=s,this.x0=n,this.y0=l,this.x1=o,this.y1=i}e(Wt,"default");function Gs(s,n,l){var o,i=this._x0,a=this._y0,u,p,g,d,f=this._x1,_=this._y1,b=[],y=this._root,x,k;for(y&&b.push(new Wt(y,i,a,f,_)),l==null?l=1/0:(i=s-l,a=n-l,f=s+l,_=n+l,l*=l);x=b.pop();)if(!(!(y=x.node)||(u=x.x0)>f||(p=x.y0)>_||(g=x.x1)<i||(d=x.y1)<a))if(y.length){var C=(u+g)/2,P=(p+d)/2;b.push(new Wt(y[3],C,P,g,d),new Wt(y[2],u,P,C,d),new Wt(y[1],C,p,g,P),new Wt(y[0],u,p,C,P)),(k=(n>=P)<<1|s>=C)&&(x=b[b.length-1],b[b.length-1]=b[b.length-1-k],b[b.length-1-k]=x)}else{var T=s-+this._x.call(null,y.data),E=n-+this._y.call(null,y.data),O=T*T+E*E;if(O<l){var B=Math.sqrt(l=O);i=s-B,a=n-B,f=s+B,_=n+B,o=y.data}}return o}e(Gs,"default");function Hs(s){if(isNaN(f=+this._x.call(null,s))||isNaN(_=+this._y.call(null,s)))return this;var n,l=this._root,o,i,a,u=this._x0,p=this._y0,g=this._x1,d=this._y1,f,_,b,y,x,k,C,P;if(!l)return this;if(l.length)for(;;){if((x=f>=(b=(u+g)/2))?u=b:g=b,(k=_>=(y=(p+d)/2))?p=y:d=y,n=l,!(l=l[C=k<<1|x]))return this;if(!l.length)break;(n[C+1&3]||n[C+2&3]||n[C+3&3])&&(o=n,P=C)}for(;l.data!==s;)if(i=l,!(l=l.next))return this;return(a=l.next)&&delete l.next,i?(a?i.next=a:delete i.next,this):n?(a?n[C]=a:delete n[C],(l=n[0]||n[1]||n[2]||n[3])&&l===(n[3]||n[2]||n[1]||n[0])&&!l.length&&(o?o[P]=l:this._root=l),this):(this._root=a,this)}e(Hs,"default");function jh(s){for(var n=0,l=s.length;n<l;++n)this.remove(s[n]);return this}e(jh,"removeAll");function Us(){return this._root}e(Us,"default");function Ws(){var s=0;return this.visit(function(n){if(!n.length)do++s;while(n=n.next)}),s}e(Ws,"default");function js(s){var n=[],l,o=this._root,i,a,u,p,g;for(o&&n.push(new Wt(o,this._x0,this._y0,this._x1,this._y1));l=n.pop();)if(!s(o=l.node,a=l.x0,u=l.y0,p=l.x1,g=l.y1)&&o.length){var d=(a+p)/2,f=(u+g)/2;(i=o[3])&&n.push(new Wt(i,d,f,p,g)),(i=o[2])&&n.push(new Wt(i,a,f,d,g)),(i=o[1])&&n.push(new Wt(i,d,u,p,f)),(i=o[0])&&n.push(new Wt(i,a,u,d,f))}return this}e(js,"default");function Vs(s){var n=[],l=[],o;for(this._root&&n.push(new Wt(this._root,this._x0,this._y0,this._x1,this._y1));o=n.pop();){var i=o.node;if(i.length){var a,u=o.x0,p=o.y0,g=o.x1,d=o.y1,f=(u+g)/2,_=(p+d)/2;(a=i[0])&&n.push(new Wt(a,u,p,f,_)),(a=i[1])&&n.push(new Wt(a,f,p,g,_)),(a=i[2])&&n.push(new Wt(a,u,_,f,d)),(a=i[3])&&n.push(new Wt(a,f,_,g,d))}l.push(o)}for(;o=l.pop();)s(o.node,o.x0,o.y0,o.x1,o.y1);return this}e(Vs,"default");function Vh(s){return s[0]}e(Vh,"defaultX");function qs(s){return arguments.length?(this._x=s,this):this._x}e(qs,"default");function qh(s){return s[1]}e(qh,"defaultY");function Ys(s){return arguments.length?(this._y=s,this):this._y}e(Ys,"default");function Oo(s,n,l){var o=new Xs(n??Vh,l??qh,NaN,NaN,NaN,NaN);return s==null?o:o.addAll(s)}e(Oo,"quadtree");function Xs(s,n,l,o,i,a){this._x=s,this._y=n,this._x0=l,this._y0=o,this._x1=i,this._y1=a,this._root=void 0}e(Xs,"Quadtree");function Yh(s){for(var n={data:s.data},l=n;s=s.next;)l=l.next={data:s.data};return n}e(Yh,"leaf_copy");var ie=Oo.prototype=Xs.prototype;ie.copy=function(){var s=new Xs(this._x,this._y,this._x0,this._y0,this._x1,this._y1),n=this._root,l,o;if(!n)return s;if(!n.length)return s._root=Yh(n),s;for(l=[{source:n,target:s._root=new Array(4)}];n=l.pop();)for(var i=0;i<4;++i)(o=n.source[i])&&(o.length?l.push({source:o,target:n.target[i]=new Array(4)}):n.target[i]=Yh(o));return s};ie.add=Rs;ie.addAll=Wh;ie.cover=Ns;ie.data=Zs;ie.extent=Fs;ie.find=Gs;ie.remove=Hs;ie.removeAll=jh;ie.root=Us;ie.size=Ws;ie.visit=js;ie.visitAfter=Vs;ie.x=qs;ie.y=Ys;var Js=class{static{e(this,"Quadtree")}_pin_h=0;_pin_w=0;_tree;constructor(n,l,o,i){this._pin_h=o,this._pin_w=i,this._tree=Oo().extent(n).addAll(l)}searchRect(n,l,o,i){let a=[];return this._tree.visit((p,g,d,f,_)=>{let b=!1;do p.length||p.data&&!p.data.already_flagged&&u({left:n,right:o,top:l,bottom:i},p.data)&&(p.data.already_flagged=!0,a.push(p.data)),b=p=p.next;while(b);return g>=o||d>=i||f<n||_<l}),a;function u(p,g){return(g[0]<p.right||g[0]>p.left)&&(g[1]<p.bottom||g[1]>p.top)}e(u,"overlaps")}getTreeRects(){let n=[];return this._tree.visit((l,o,i,a,u)=>{n.push([o,i,a-o,u-i])}),n}},wt=class extends Xp{static{e(this,"CanvasPins")}_quadtree_rect_arr;_drawData;_overlap_count=0;_sub_overlap_count=0;constructor(){super()}enter(n,l){super.enter.apply(this,arguments),this.resize(this._size)}update(n,l){super.update.apply(this,arguments),this._ctx=this.element().node().getContext("2d");let i=(this.topLeftX_exists()&&this.topLeftY_exists()&&this.bottomRightX_exists()&&this.bottomRightY_exists()?this.skewedData():this.data()).map(a=>[...a]).map(a=>(a.is_cluster=!1,a.already_flagged=!1,a.weight=a[2],a.fillStyle="#FFFFFF",a.strokeStyle="#000000",a.overlap_arr=[],a));this._ctx.clearRect(0,0,this.width(),this.height()),this._drawData=this.enableClustering()?this.applyClustering(i):i,this.draw(this._drawData)}applyClustering(n){let l=this;this._overlap_count=0;let o=8,i=this.pinHeight(),a=this.pinWidth(),u=a/2,p=i/2,g=new Js([[0,0],[this.size().width,this.size().height]],n,i,a);switch(this._quadtree_rect_arr=g.getTreeRects(),this.clusterMode()){case"default":let f=n.map(C=>{if(!C.already_flagged){let P=this.searchRectMult(),T=C[0]-u*P,E=C[1]-p*P-o,O=C[0]+u*P,B=C[1]+p*P-o;C.overlap_arr=g.searchRect(T,E,O,B).filter(G=>G!==C),C.overlap_arr.length===0&&(C.already_flagged=!1)}return C});return f.forEach(C=>{C.already_flagged&&C.overlap_arr.length&&f.push(d([C,...C.overlap_arr]))}),f;case"grid":let _=[...n],b=this.gridCellSize(),y=this.gridCellSize(),x=Math.ceil(this.size().width/b),k=Math.ceil(this.size().height/y);for(let C=0;C<k;C++)for(let P=0;P<x;P++){let T=b*P,E=y*C,O=b*(P+1),B=y*(C+1),G=g.searchRect(T,E,O,B);if(G.length>1){let J=T+b/2,st=E+y/2;_.push(d(G,J,st))}}return _}return n;function d(f,_,b){let y=f.reduce((C,P)=>(P.already_flagged=!0,C+P[2]),0),x=typeof _<"u"?_:l.useAveragePos()?f.reduce((C,P)=>C+P[0]*P[2],0)/y:f[0][0],k=typeof b<"u"?b:l.useAveragePos()?f.reduce((C,P)=>C+P[1]*P[2],0)/y:f[0][1];return{0:x,1:k,weight:f.reduce((C,P)=>C+P[2],0),is_cluster:!0,already_flagged:!1,fillStyle:"#FFFFFF",strokeStyle:"#000000",overlap_arr:[]}}}drawQuadtree(){this._quadtree_rect_arr&&(this._ctx.strokeStyle="#000000",this._quadtree_rect_arr.forEach(n=>{this._ctx.strokeRect(n[0],n[1],n[2],n[3])}))}draw(n){let l=this,o=this._ctx;this.showQuadtree()&&this.drawQuadtree();let i=this.arrowHeight(),a=this.arrowWidth(),u=this.pinHeight(),p=this.pinWidth(),g=this.radiusWeightMult(),d=0;this.useWeightedRadius()&&n.filter(x=>x.is_cluster).forEach(x=>{d<x.weight&&(d=x.weight)}),n.filter(x=>!x.already_flagged).sort((x,k)=>x[1]>k[1]?1:-1).forEach(x=>{if(x.is_cluster||this.allCircles()){let k=p/2;this.useWeightedRadius()&&(k+=p*(g*x.weight/d)),f({icon:x.weight,left:Math.floor(x[0]-k)+.5,top:Math.floor(x[1]-k-i)+.5,radius:k,arrow_height:i,arrow_width:a})}else _({fillStyle:x.fillStyle,strokeStyle:x.strokeStyle,icon:x.weight,left:Math.floor(x[0]-p/2)+.5,top:Math.floor(x[1]-u-i)+.5,width:p,height:u,arrow_height:i,arrow_width:a})});function f(x){x.width=x.radius*2,x.height=x.width,o.fillStyle="#FFFFFF",o.strokeStyle="#000000",o.beginPath(),o.arc(x.left+x.width/2,x.top+x.height/2,x.radius,0,2*Math.PI),o.closePath(),o.fill(),o.stroke(),y(x)}e(f,"drawCirclePin");function _(x){o.fillStyle=x.fillStyle,o.strokeStyle="#000000",o.fillRect(x.left,x.top,x.width,x.height),o.strokeRect(x.left,x.top,x.width,x.height),b(x),y(x)}e(_,"drawSquarePin");function b(x,k){let C=x.left+x.width/2-x.arrow_width/2,P=x.left+x.width/2,T=x.left+x.width/2+x.arrow_width/2,E=x.top+x.height,O=E+x.arrow_height,B=E;k?(o.fillStyle="#FFFFFF",o.strokeStyle="#FFFFFF",E-=2,O-=2,B-=2):(o.fillStyle="#FFFFFF",o.strokeStyle="#000000"),o.beginPath(),o.moveTo(C,E),o.lineTo(P,O),o.lineTo(T,B),o.lineTo(C,E),o.closePath(),o.stroke(),o.fill(),k||b(x,!0)}e(b,"drawArrow");function y(x){o.font=`${l.pinFontSize()}px '${l.pinFontFamily()}'`;let k=x.left+x.width/2,C=x.top+x.height/2;o.textAlign="center",o.textBaseline="middle",o.fillStyle="#000000";let P=0,T=o.measureText(x.icon).width;for(;T>x.width||!l.shrinkFontToPin();)P++,o.font=`${l.pinFontSize()-P}px '${l.pinFontFamily()}'`,T=o.measureText(x.icon).width;o.fillText(x.icon,k,C)}e(y,"drawPinText")}skewedData(){let n=this,l=[],o=this.data(),i=this.size(),a=this.bottomRightX()-this.topLeftX(),u=this.bottomRightY()-this.topLeftY(),p=a/i.width,g=u/i.height;return o.forEach(function(d){let f=Math.abs(d[0]-n.topLeftX()),_=Math.abs(d[1]-n.topLeftY()),b=f/p,y=_/g;l.push([b,y,d[2]])}),l}};wt.prototype._class+=" map_CanvasPins";wt.prototype.publish("clusterMode","default","set","clusterMode",["defualt","grid"],{tags:["Basic"],optional:!0});wt.prototype.publish("gridCellSize",80,"number","gridCellSize",null,{tags:["Basic"],optional:!0});wt.prototype.publish("allCircles",!1,"boolean","allCircles",null,{tags:["Basic"],optional:!0});wt.prototype.publish("showQuadtree",!1,"boolean","showQuadtree",null,{tags:["Basic"],optional:!0});wt.prototype.publish("useAveragePos",!1,"boolean","useAveragePos",null,{tags:["Basic"],optional:!0});wt.prototype.publish("shrinkFontToPin",!0,"boolean","shrinkFontToPin",null,{tags:["Basic"],optional:!0});wt.prototype.publish("enableClustering",!0,"boolean","enableClustering",null,{tags:["Basic"],optional:!0});wt.prototype.publish("useWeightedRadius",!1,"boolean","useWeightedRadius",null,{tags:["Basic"],optional:!0});wt.prototype.publish("radiusWeightMult",.5,"number","radiusWeightMult",null,{tags:["Basic"],optional:!0});wt.prototype.publish("searchRectMult",3,"number","searchRectMult",null,{tags:["Basic"],optional:!0});wt.prototype.publish("bottomRightX",null,"number","Bottom right x-value",null,{tags:["Basic"],optional:!0});wt.prototype.publish("bottomRightY",null,"number","Bottom right y-value",null,{tags:["Basic"],optional:!0});wt.prototype.publish("topLeftX",null,"number","Top left x-value",null,{tags:["Basic"],optional:!0});wt.prototype.publish("topLeftY",null,"number","Top left y-value",null,{tags:["Basic"],optional:!0});wt.prototype.publish("pinHeight",20,"number","pinHeight",null,{tags:["Basic"],optional:!0});wt.prototype.publish("pinWidth",20,"number","pinWidth",null,{tags:["Basic"],optional:!0});wt.prototype.publish("pinFontFamily","Arial","string","pinFontFamily",null,{tags:["Basic"],optional:!0});wt.prototype.publish("pinFontSize",14,"number","pinFontSize",null,{tags:["Basic"],optional:!0});wt.prototype.publish("arrowHeight",8,"number","arrowHeight",null,{tags:["Basic"],optional:!0});wt.prototype.publish("arrowWidth",8,"number","arrowWidth",null,{tags:["Basic"],optional:!0});import{ITooltip as Xu}from"@hpcc-js/api";import{SVGZoomWidget as Yu}from"@hpcc-js/common";var tl={};Hh(tl,{geoAlbers:()=>Si,geoAlbersUsa:()=>Na,geoArea:()=>ia,geoAzimuthalEqualArea:()=>Za,geoAzimuthalEqualAreaRaw:()=>yr,geoAzimuthalEquidistant:()=>Fa,geoAzimuthalEquidistantRaw:()=>vr,geoBounds:()=>na,geoCentroid:()=>ha,geoCircle:()=>pa,geoClipAntimeridian:()=>jo,geoClipCircle:()=>Vo,geoClipExtent:()=>_a,geoClipRectangle:()=>Ye,geoConicConformal:()=>Ua,geoConicConformalRaw:()=>Ha,geoConicEqualArea:()=>Ce,geoConicEqualAreaRaw:()=>Ra,geoConicEquidistant:()=>Va,geoConicEquidistantRaw:()=>ja,geoContains:()=>ba,geoDistance:()=>Mi,geoEqualEarth:()=>qa,geoEqualEarthRaw:()=>Lr,geoEquirectangular:()=>Wa,geoEquirectangularRaw:()=>Oi,geoGnomonic:()=>Ya,geoGnomonicRaw:()=>wr,geoGraticule:()=>Ji,geoGraticule10:()=>Pu,geoIdentity:()=>Xa,geoInterpolate:()=>xa,geoLength:()=>Yo,geoMercator:()=>on,geoMercatorRaw:()=>Ti,geoNaturalEarth1:()=>Ja,geoNaturalEarth1Raw:()=>Cr,geoOrthographic:()=>Ka,geoOrthographicRaw:()=>kr,geoPath:()=>Je,geoProjection:()=>Dt,geoProjectionMutator:()=>en,geoRotation:()=>Fo,geoStereographic:()=>$a,geoStereographicRaw:()=>Mr,geoStream:()=>It,geoTransform:()=>tn,geoTransverseMercator:()=>Qa,geoTransverseMercatorRaw:()=>Pr});function oe(){return new Wn}e(oe,"default");function Wn(){this.reset()}e(Wn,"Adder");Wn.prototype={constructor:Wn,reset:e(function(){this.s=this.t=0},"reset"),add:e(function(s){Xh(Un,s,this.t),Xh(this,Un.s,this.s),this.s?this.t+=Un.t:this.s=Un.t},"add"),valueOf:e(function(){return this.s},"valueOf")};var Un=new Wn;function Xh(s,n,l){var o=s.s=n+l,i=o-n,a=o-i;s.t=n-a+(l-i)}e(Xh,"add");var Z=1e-6,bi=1e-12,Y=Math.PI,gt=Y/2,Wi=Y/4,zt=Y*2,lt=180/Y,H=Y/180,j=Math.abs,Le=Math.atan,yt=Math.atan2,R=Math.cos,zo=Math.ceil,jn=Math.exp;var xi=Math.log,Vn=Math.pow,A=Math.sin,te=Math.sign||function(s){return s>0?1:s<0?-1:0},ht=Math.sqrt,ji=Math.tan;function qn(s){return s>1?0:s<-1?Y:Math.acos(s)}e(qn,"acos");function vt(s){return s>1?gt:s<-1?-gt:Math.asin(s)}e(vt,"asin");function Ks(s){return(s=A(s/2))*s}e(Ks,"haversin");function dt(){}e(dt,"noop");function Yn(s,n){s&&Kh.hasOwnProperty(s.type)&&Kh[s.type](s,n)}e(Yn,"streamGeometry");var Jh={Feature:e(function(s,n){Yn(s.geometry,n)},"Feature"),FeatureCollection:e(function(s,n){for(var l=s.features,o=-1,i=l.length;++o<i;)Yn(l[o].geometry,n)},"FeatureCollection")},Kh={Sphere:e(function(s,n){n.sphere()},"Sphere"),Point:e(function(s,n){s=s.coordinates,n.point(s[0],s[1],s[2])},"Point"),MultiPoint:e(function(s,n){for(var l=s.coordinates,o=-1,i=l.length;++o<i;)s=l[o],n.point(s[0],s[1],s[2])},"MultiPoint"),LineString:e(function(s,n){$s(s.coordinates,n,0)},"LineString"),MultiLineString:e(function(s,n){for(var l=s.coordinates,o=-1,i=l.length;++o<i;)$s(l[o],n,0)},"MultiLineString"),Polygon:e(function(s,n){$h(s.coordinates,n)},"Polygon"),MultiPolygon:e(function(s,n){for(var l=s.coordinates,o=-1,i=l.length;++o<i;)$h(l[o],n)},"MultiPolygon"),GeometryCollection:e(function(s,n){for(var l=s.geometries,o=-1,i=l.length;++o<i;)Yn(l[o],n)},"GeometryCollection")};function $s(s,n,l){var o=-1,i=s.length-l,a;for(n.lineStart();++o<i;)a=s[o],n.point(a[0],a[1],a[2]);n.lineEnd()}e($s,"streamLine");function $h(s,n){var l=-1,o=s.length;for(n.polygonStart();++l<o;)$s(s[l],n,1);n.polygonEnd()}e($h,"streamPolygon");function It(s,n){s&&Jh.hasOwnProperty(s.type)?Jh[s.type](s,n):Yn(s,n)}e(It,"default");var Io=oe(),Xn=oe(),Qh,tu,Qs,ta,ea,Pe={point:dt,lineStart:dt,lineEnd:dt,polygonStart:e(function(){Io.reset(),Pe.lineStart=Jp,Pe.lineEnd=Kp},"polygonStart"),polygonEnd:e(function(){var s=+Io;Xn.add(s<0?zt+s:s),this.lineStart=this.lineEnd=this.point=dt},"polygonEnd"),sphere:e(function(){Xn.add(zt)},"sphere")};function Jp(){Pe.point=$p}e(Jp,"areaRingStart");function Kp(){eu(Qh,tu)}e(Kp,"areaRingEnd");function $p(s,n){Pe.point=eu,Qh=s,tu=n,s*=H,n*=H,Qs=s,ta=R(n=n/2+Wi),ea=A(n)}e($p,"areaPointFirst");function eu(s,n){s*=H,n*=H,n=n/2+Wi;var l=s-Qs,o=l>=0?1:-1,i=o*l,a=R(n),u=A(n),p=ea*u,g=ta*a+p*R(i),d=p*o*A(i);Io.add(yt(d,g)),Qs=s,ta=a,ea=u}e(eu,"areaPoint");function ia(s){return Xn.reset(),It(s,Pe),Xn*2}e(ia,"default");function Li(s){return[yt(s[1],s[0]),vt(s[2])]}e(Li,"spherical");function we(s){var n=s[0],l=s[1],o=R(l);return[o*R(n),o*A(n),A(l)]}e(we,"cartesian");function Do(s,n){return s[0]*n[0]+s[1]*n[1]+s[2]*n[2]}e(Do,"cartesianDot");function je(s,n){return[s[1]*n[2]-s[2]*n[1],s[2]*n[0]-s[0]*n[2],s[0]*n[1]-s[1]*n[0]]}e(je,"cartesianCross");function Jn(s,n){s[0]+=n[0],s[1]+=n[1],s[2]+=n[2]}e(Jn,"cartesianAddInPlace");function Ao(s,n){return[s[0]*n,s[1]*n,s[2]*n]}e(Ao,"cartesianScale");function wi(s){var n=ht(s[0]*s[0]+s[1]*s[1]+s[2]*s[2]);s[0]/=n,s[1]/=n,s[2]/=n}e(wi,"cartesianNormalizeInPlace");var Mt,le,Pt,de,Ci,ru,su,Vi,Bo=oe(),ri,qe,Ve={point:oa,lineStart:iu,lineEnd:ou,polygonStart:e(function(){Ve.point=lu,Ve.lineStart=Qp,Ve.lineEnd=td,Bo.reset(),Pe.polygonStart()},"polygonStart"),polygonEnd:e(function(){Pe.polygonEnd(),Ve.point=oa,Ve.lineStart=iu,Ve.lineEnd=ou,Io<0?(Mt=-(Pt=180),le=-(de=90)):Bo>Z?de=90:Bo<-Z&&(le=-90),qe[0]=Mt,qe[1]=Pt},"polygonEnd"),sphere:e(function(){Mt=-(Pt=180),le=-(de=90)},"sphere")};function oa(s,n){ri.push(qe=[Mt=s,Pt=s]),n<le&&(le=n),n>de&&(de=n)}e(oa,"boundsPoint");function au(s,n){var l=we([s*H,n*H]);if(Vi){var o=je(Vi,l),i=[o[1],-o[0],0],a=je(i,o);wi(a),a=Li(a);var u=s-Ci,p=u>0?1:-1,g=a[0]*lt*p,d,f=j(u)>180;f^(p*Ci<g&&g<p*s)?(d=a[1]*lt,d>de&&(de=d)):(g=(g+360)%360-180,f^(p*Ci<g&&g<p*s)?(d=-a[1]*lt,d<le&&(le=d)):(n<le&&(le=n),n>de&&(de=n))),f?s<Ci?pe(Mt,s)>pe(Mt,Pt)&&(Pt=s):pe(s,Pt)>pe(Mt,Pt)&&(Mt=s):Pt>=Mt?(s<Mt&&(Mt=s),s>Pt&&(Pt=s)):s>Ci?pe(Mt,s)>pe(Mt,Pt)&&(Pt=s):pe(s,Pt)>pe(Mt,Pt)&&(Mt=s)}else ri.push(qe=[Mt=s,Pt=s]);n<le&&(le=n),n>de&&(de=n),Vi=l,Ci=s}e(au,"linePoint");function iu(){Ve.point=au}e(iu,"boundsLineStart");function ou(){qe[0]=Mt,qe[1]=Pt,Ve.point=oa,Vi=null}e(ou,"boundsLineEnd");function lu(s,n){if(Vi){var l=s-Ci;Bo.add(j(l)>180?l+(l>0?360:-360):l)}else ru=s,su=n;Pe.point(s,n),au(s,n)}e(lu,"boundsRingPoint");function Qp(){Pe.lineStart()}e(Qp,"boundsRingStart");function td(){lu(ru,su),Pe.lineEnd(),j(Bo)>Z&&(Mt=-(Pt=180)),qe[0]=Mt,qe[1]=Pt,Vi=null}e(td,"boundsRingEnd");function pe(s,n){return(n-=s)<0?n+360:n}e(pe,"angle");function ed(s,n){return s[0]-n[0]}e(ed,"rangeCompare");function nu(s,n){return s[0]<=s[1]?s[0]<=n&&n<=s[1]:n<s[0]||s[1]<n}e(nu,"rangeContains");function na(s){var n,l,o,i,a,u,p;if(de=Pt=-(Mt=le=1/0),ri=[],It(s,Ve),l=ri.length){for(ri.sort(ed),n=1,o=ri[0],a=[o];n<l;++n)i=ri[n],nu(o,i[0])||nu(o,i[1])?(pe(o[0],i[1])>pe(o[0],o[1])&&(o[1]=i[1]),pe(i[0],o[1])>pe(o[0],o[1])&&(o[0]=i[0])):a.push(o=i);for(u=-1/0,l=a.length-1,n=0,o=a[l];n<=l;o=i,++n)i=a[n],(p=pe(o[1],i[0]))>u&&(u=p,Mt=i[0],Pt=o[1])}return ri=qe=null,Mt===1/0||le===1/0?[[NaN,NaN],[NaN,NaN]]:[[Mt,le],[Pt,de]]}e(na,"default");var Ro,Kn,$n,Qn,tr,er,ir,or,ra,sa,aa,cu,pu,ne,re,se,Ee={sphere:dt,point:la,lineStart:hu,lineEnd:uu,polygonStart:e(function(){Ee.lineStart=nd,Ee.lineEnd=rd},"polygonStart"),polygonEnd:e(function(){Ee.lineStart=hu,Ee.lineEnd=uu},"polygonEnd")};function la(s,n){s*=H,n*=H;var l=R(n);No(l*R(s),l*A(s),A(n))}e(la,"centroidPoint");function No(s,n,l){++Ro,$n+=(s-$n)/Ro,Qn+=(n-Qn)/Ro,tr+=(l-tr)/Ro}e(No,"centroidPointCartesian");function hu(){Ee.point=id}e(hu,"centroidLineStart");function id(s,n){s*=H,n*=H;var l=R(n);ne=l*R(s),re=l*A(s),se=A(n),Ee.point=od,No(ne,re,se)}e(id,"centroidLinePointFirst");function od(s,n){s*=H,n*=H;var l=R(n),o=l*R(s),i=l*A(s),a=A(n),u=yt(ht((u=re*a-se*i)*u+(u=se*o-ne*a)*u+(u=ne*i-re*o)*u),ne*o+re*i+se*a);Kn+=u,er+=u*(ne+(ne=o)),ir+=u*(re+(re=i)),or+=u*(se+(se=a)),No(ne,re,se)}e(od,"centroidLinePoint");function uu(){Ee.point=la}e(uu,"centroidLineEnd");function nd(){Ee.point=sd}e(nd,"centroidRingStart");function rd(){du(cu,pu),Ee.point=la}e(rd,"centroidRingEnd");function sd(s,n){cu=s,pu=n,s*=H,n*=H,Ee.point=du;var l=R(n);ne=l*R(s),re=l*A(s),se=A(n),No(ne,re,se)}e(sd,"centroidRingPointFirst");function du(s,n){s*=H,n*=H;var l=R(n),o=l*R(s),i=l*A(s),a=A(n),u=re*a-se*i,p=se*o-ne*a,g=ne*i-re*o,d=ht(u*u+p*p+g*g),f=vt(d),_=d&&-f/d;ra+=_*u,sa+=_*p,aa+=_*g,Kn+=f,er+=f*(ne+(ne=o)),ir+=f*(re+(re=i)),or+=f*(se+(se=a)),No(ne,re,se)}e(du,"centroidRingPoint");function ha(s){Ro=Kn=$n=Qn=tr=er=ir=or=ra=sa=aa=0,It(s,Ee);var n=ra,l=sa,o=aa,i=n*n+l*l+o*o;return i<bi&&(n=er,l=ir,o=or,Kn<Z&&(n=$n,l=Qn,o=tr),i=n*n+l*l+o*o,i<bi)?[NaN,NaN]:[yt(l,n)*lt,vt(o/ht(i))*lt]}e(ha,"default");function si(s){return function(){return s}}e(si,"default");function qi(s,n){function l(o,i){return o=s(o,i),n(o[0],o[1])}return e(l,"compose"),s.invert&&n.invert&&(l.invert=function(o,i){return o=n.invert(o,i),o&&s.invert(o[0],o[1])}),l}e(qi,"default");function ua(s,n){return[j(s)>Y?s+Math.round(-s/zt)*zt:s,n]}e(ua,"rotationIdentity");ua.invert=ua;function Zo(s,n,l){return(s%=zt)?n||l?qi(mu(s),_u(n,l)):mu(s):n||l?_u(n,l):ua}e(Zo,"rotateRadians");function fu(s){return function(n,l){return n+=s,[n>Y?n-zt:n<-Y?n+zt:n,l]}}e(fu,"forwardRotationLambda");function mu(s){var n=fu(s);return n.invert=fu(-s),n}e(mu,"rotationLambda");function _u(s,n){var l=R(s),o=A(s),i=R(n),a=A(n);function u(p,g){var d=R(g),f=R(p)*d,_=A(p)*d,b=A(g),y=b*l+f*o;return[yt(_*i-y*a,f*l-b*o),vt(y*i+_*a)]}return e(u,"rotation"),u.invert=function(p,g){var d=R(g),f=R(p)*d,_=A(p)*d,b=A(g),y=b*i-_*a;return[yt(_*i+b*a,f*l+y*o),vt(y*l-f*o)]},u}e(_u,"rotationPhiGamma");function Fo(s){s=Zo(s[0]*H,s[1]*H,s.length>2?s[2]*H:0);function n(l){return l=s(l[0]*H,l[1]*H),l[0]*=lt,l[1]*=lt,l}return e(n,"forward"),n.invert=function(l){return l=s.invert(l[0]*H,l[1]*H),l[0]*=lt,l[1]*=lt,l},n}e(Fo,"default");function ca(s,n,l,o,i,a){if(l){var u=R(n),p=A(n),g=o*l;i==null?(i=n+o*zt,a=n-g/2):(i=gu(u,i),a=gu(u,a),(o>0?i<a:i>a)&&(i+=o*zt));for(var d,f=i;o>0?f>a:f<a;f-=g)d=Li([u,-p*R(f),-p*A(f)]),s.point(d[0],d[1])}}e(ca,"circleStream");function gu(s,n){n=we(n),n[0]-=s,wi(n);var l=qn(-n[1]);return((-n[2]<0?-l:l)+zt-Z)%zt}e(gu,"circleRadius");function pa(){var s=si([0,0]),n=si(90),l=si(6),o,i,a={point:u};function u(g,d){o.push(g=i(g,d)),g[0]*=lt,g[1]*=lt}e(u,"point");function p(){var g=s.apply(this,arguments),d=n.apply(this,arguments)*H,f=l.apply(this,arguments)*H;return o=[],i=Zo(-g[0]*H,-g[1]*H,0).invert,ca(a,d,f,1),g={type:"Polygon",coordinates:[o]},o=i=null,g}return e(p,"circle"),p.center=function(g){return arguments.length?(s=typeof g=="function"?g:si([+g[0],+g[1]]),p):s},p.radius=function(g){return arguments.length?(n=typeof g=="function"?g:si(+g),p):n},p.precision=function(g){return arguments.length?(l=typeof g=="function"?g:si(+g),p):l},p}e(pa,"default");function Go(){var s=[],n;return{point:e(function(l,o,i){n.push([l,o,i])},"point"),lineStart:e(function(){s.push(n=[])},"lineStart"),lineEnd:dt,rejoin:e(function(){s.length>1&&s.push(s.pop().concat(s.shift()))},"rejoin"),result:e(function(){var l=s;return s=[],n=null,l},"result")}}e(Go,"default");function ki(s,n){return j(s[0]-n[0])<Z&&j(s[1]-n[1])<Z}e(ki,"default");function nr(s,n,l,o){this.x=s,this.z=n,this.o=l,this.e=o,this.v=!1,this.n=this.p=null}e(nr,"Intersection");function Ho(s,n,l,o,i){var a=[],u=[],p,g;if(s.forEach(function(x){if(!((k=x.length-1)<=0)){var k,C=x[0],P=x[k],T;if(ki(C,P)){if(!C[2]&&!P[2]){for(i.lineStart(),p=0;p<k;++p)i.point((C=x[p])[0],C[1]);i.lineEnd();return}P[0]+=2*Z}a.push(T=new nr(C,x,null,!0)),u.push(T.o=new nr(C,null,T,!1)),a.push(T=new nr(P,x,null,!1)),u.push(T.o=new nr(P,null,T,!0))}}),!!a.length){for(u.sort(n),yu(a),yu(u),p=0,g=u.length;p<g;++p)u[p].e=l=!l;for(var d=a[0],f,_;;){for(var b=d,y=!0;b.v;)if((b=b.n)===d)return;f=b.z,i.lineStart();do{if(b.v=b.o.v=!0,b.e){if(y)for(p=0,g=f.length;p<g;++p)i.point((_=f[p])[0],_[1]);else o(b.x,b.n.x,1,i);b=b.n}else{if(y)for(f=b.p.z,p=f.length-1;p>=0;--p)i.point((_=f[p])[0],_[1]);else o(b.x,b.p.x,-1,i);b=b.p}b=b.o,f=b.z,y=!y}while(!b.v);i.lineEnd()}}}e(Ho,"default");function yu(s){if(n=s.length){for(var n,l=0,o=s[0],i;++l<n;)o.n=i=s[l],i.p=o,o=i;o.n=i=s[0],i.p=o}}e(yu,"link");var da=oe();function fa(s){return j(s[0])<=Y?s[0]:te(s[0])*((j(s[0])+Y)%zt-Y)}e(fa,"longitude");function Uo(s,n){var l=fa(n),o=n[1],i=A(o),a=[A(l),-R(l),0],u=0,p=0;da.reset(),i===1?o=gt+Z:i===-1&&(o=-gt-Z);for(var g=0,d=s.length;g<d;++g)if(_=(f=s[g]).length)for(var f,_,b=f[_-1],y=fa(b),x=b[1]/2+Wi,k=A(x),C=R(x),P=0;P<_;++P,y=E,k=B,C=G,b=T){var T=f[P],E=fa(T),O=T[1]/2+Wi,B=A(O),G=R(O),J=E-y,st=J>=0?1:-1,X=st*J,ot=X>Y,K=k*B;if(da.add(yt(K*st*A(X),C*G+K*R(X))),u+=ot?J+st*zt:J,ot^y>=l^E>=l){var xt=je(we(b),we(T));wi(xt);var St=je(a,xt);wi(St);var Q=(ot^J>=0?-1:1)*vt(St[2]);(o>Q||o===Q&&(xt[0]||xt[1]))&&(p+=ot^J>=0?1:-1)}}return(u<-Z||u<Z&&da<-Z)^p&1}e(Uo,"default");import{merge as ad}from"@hpcc-js/common";function Wo(s,n,l,o){return function(i){var a=n(i),u=Go(),p=n(u),g=!1,d,f,_,b={point:y,lineStart:k,lineEnd:C,polygonStart:e(function(){b.point=P,b.lineStart=T,b.lineEnd=E,f=[],d=[]},"polygonStart"),polygonEnd:e(function(){b.point=y,b.lineStart=k,b.lineEnd=C,f=ad(f);var O=Uo(d,o);f.length?(g||(i.polygonStart(),g=!0),Ho(f,hd,O,l,i)):O&&(g||(i.polygonStart(),g=!0),i.lineStart(),l(null,null,1,i),i.lineEnd()),g&&(i.polygonEnd(),g=!1),f=d=null},"polygonEnd"),sphere:e(function(){i.polygonStart(),i.lineStart(),l(null,null,1,i),i.lineEnd(),i.polygonEnd()},"sphere")};function y(O,B){s(O,B)&&i.point(O,B)}e(y,"point");function x(O,B){a.point(O,B)}e(x,"pointLine");function k(){b.point=x,a.lineStart()}e(k,"lineStart");function C(){b.point=y,a.lineEnd()}e(C,"lineEnd");function P(O,B){_.push([O,B]),p.point(O,B)}e(P,"pointRing");function T(){p.lineStart(),_=[]}e(T,"ringStart");function E(){P(_[0][0],_[0][1]),p.lineEnd();var O=p.clean(),B=u.result(),G,J=B.length,st,X,ot;if(_.pop(),d.push(_),_=null,!!J){if(O&1){if(X=B[0],(st=X.length-1)>0){for(g||(i.polygonStart(),g=!0),i.lineStart(),G=0;G<st;++G)i.point((ot=X[G])[0],ot[1]);i.lineEnd()}return}J>1&&O&2&&B.push(B.pop().concat(B.shift())),f.push(B.filter(ld))}}return e(E,"ringEnd"),b}}e(Wo,"default");function ld(s){return s.length>1}e(ld,"validSegment");function hd(s,n){return((s=s.x)[0]<0?s[1]-gt-Z:gt-s[1])-((n=n.x)[0]<0?n[1]-gt-Z:gt-n[1])}e(hd,"compareIntersection");var jo=Wo(function(){return!0},ud,pd,[-Y,-gt]);function ud(s){var n=NaN,l=NaN,o=NaN,i;return{lineStart:e(function(){s.lineStart(),i=1},"lineStart"),point:e(function(a,u){var p=a>0?Y:-Y,g=j(a-n);j(g-Y)<Z?(s.point(n,l=(l+u)/2>0?gt:-gt),s.point(o,l),s.lineEnd(),s.lineStart(),s.point(p,l),s.point(a,l),i=0):o!==p&&g>=Y&&(j(n-o)<Z&&(n-=o*Z),j(a-p)<Z&&(a-=p*Z),l=cd(n,l,a,u),s.point(o,l),s.lineEnd(),s.lineStart(),s.point(p,l),i=0),s.point(n=a,l=u),o=p},"point"),lineEnd:e(function(){s.lineEnd(),n=l=NaN},"lineEnd"),clean:e(function(){return 2-i},"clean")}}e(ud,"clipAntimeridianLine");function cd(s,n,l,o){var i,a,u=A(s-l);return j(u)>Z?Le((A(n)*(a=R(o))*A(l)-A(o)*(i=R(n))*A(s))/(i*a*u)):(n+o)/2}e(cd,"clipAntimeridianIntersect");function pd(s,n,l,o){var i;if(s==null)i=l*gt,o.point(-Y,i),o.point(0,i),o.point(Y,i),o.point(Y,0),o.point(Y,-i),o.point(0,-i),o.point(-Y,-i),o.point(-Y,0),o.point(-Y,i);else if(j(s[0]-n[0])>Z){var a=s[0]<n[0]?Y:-Y;i=l*a/2,o.point(-a,i),o.point(0,i),o.point(a,i)}else o.point(n[0],n[1])}e(pd,"clipAntimeridianInterpolate");function Vo(s){var n=R(s),l=6*H,o=n>0,i=j(n)>Z;function a(f,_,b,y){ca(y,s,l,b,f,_)}e(a,"interpolate");function u(f,_){return R(f)*R(_)>n}e(u,"visible");function p(f){var _,b,y,x,k;return{lineStart:e(function(){x=y=!1,k=1},"lineStart"),point:e(function(C,P){var T=[C,P],E,O=u(C,P),B=o?O?0:d(C,P):O?d(C+(C<0?Y:-Y),P):0;if(!_&&(x=y=O)&&f.lineStart(),O!==y&&(E=g(_,T),(!E||ki(_,E)||ki(T,E))&&(T[2]=1)),O!==y)k=0,O?(f.lineStart(),E=g(T,_),f.point(E[0],E[1])):(E=g(_,T),f.point(E[0],E[1],2),f.lineEnd()),_=E;else if(i&&_&&o^O){var G;!(B&b)&&(G=g(T,_,!0))&&(k=0,o?(f.lineStart(),f.point(G[0][0],G[0][1]),f.point(G[1][0],G[1][1]),f.lineEnd()):(f.point(G[1][0],G[1][1]),f.lineEnd(),f.lineStart(),f.point(G[0][0],G[0][1],3)))}O&&(!_||!ki(_,T))&&f.point(T[0],T[1]),_=T,y=O,b=B},"point"),lineEnd:e(function(){y&&f.lineEnd(),_=null},"lineEnd"),clean:e(function(){return k|(x&&y)<<1},"clean")}}e(p,"clipLine");function g(f,_,b){var y=we(f),x=we(_),k=[1,0,0],C=je(y,x),P=Do(C,C),T=C[0],E=P-T*T;if(!E)return!b&&f;var O=n*P/E,B=-n*T/E,G=je(k,C),J=Ao(k,O),st=Ao(C,B);Jn(J,st);var X=G,ot=Do(J,X),K=Do(X,X),xt=ot*ot-K*(Do(J,J)-1);if(!(xt<0)){var St=ht(xt),Q=Ao(X,(-ot-St)/K);if(Jn(Q,J),Q=Li(Q),!b)return Q;var I=f[0],N=_[0],Tt=f[1],U=_[1],at;N<I&&(at=I,I=N,N=at);var At=N-I,Ct=j(At-Y)<Z,_t=Ct||At<Z;if(!Ct&&U<Tt&&(at=Tt,Tt=U,U=at),_t?Ct?Tt+U>0^Q[1]<(j(Q[0]-I)<Z?Tt:U):Tt<=Q[1]&&Q[1]<=U:At>Y^(I<=Q[0]&&Q[0]<=N)){var nt=Ao(X,(-ot+St)/K);return Jn(nt,J),[Q,Li(nt)]}}}e(g,"intersect");function d(f,_){var b=o?s:Y-s,y=0;return f<-b?y|=1:f>b&&(y|=2),_<-b?y|=4:_>b&&(y|=8),y}return e(d,"code"),Wo(u,p,a,o?[0,-s]:[-Y,s-Y])}e(Vo,"default");function ma(s,n,l,o,i,a){var u=s[0],p=s[1],g=n[0],d=n[1],f=0,_=1,b=g-u,y=d-p,x;if(x=l-u,!(!b&&x>0)){if(x/=b,b<0){if(x<f)return;x<_&&(_=x)}else if(b>0){if(x>_)return;x>f&&(f=x)}if(x=i-u,!(!b&&x<0)){if(x/=b,b<0){if(x>_)return;x>f&&(f=x)}else if(b>0){if(x<f)return;x<_&&(_=x)}if(x=o-p,!(!y&&x>0)){if(x/=y,y<0){if(x<f)return;x<_&&(_=x)}else if(y>0){if(x>_)return;x>f&&(f=x)}if(x=a-p,!(!y&&x<0)){if(x/=y,y<0){if(x>_)return;x>f&&(f=x)}else if(y>0){if(x<f)return;x<_&&(_=x)}return f>0&&(s[0]=u+f*b,s[1]=p+f*y),_<1&&(n[0]=u+_*b,n[1]=p+_*y),!0}}}}}e(ma,"default");import{merge as dd}from"@hpcc-js/common";var qo=1e9,rr=-qo;function Ye(s,n,l,o){function i(d,f){return s<=d&&d<=l&&n<=f&&f<=o}e(i,"visible");function a(d,f,_,b){var y=0,x=0;if(d==null||(y=u(d,_))!==(x=u(f,_))||g(d,f)<0^_>0)do b.point(y===0||y===3?s:l,y>1?o:n);while((y=(y+_+4)%4)!==x);else b.point(f[0],f[1])}e(a,"interpolate");function u(d,f){return j(d[0]-s)<Z?f>0?0:3:j(d[0]-l)<Z?f>0?2:1:j(d[1]-n)<Z?f>0?1:0:f>0?3:2}e(u,"corner");function p(d,f){return g(d.x,f.x)}e(p,"compareIntersection");function g(d,f){var _=u(d,1),b=u(f,1);return _!==b?_-b:_===0?f[1]-d[1]:_===1?d[0]-f[0]:_===2?d[1]-f[1]:f[0]-d[0]}return e(g,"comparePoint"),function(d){var f=d,_=Go(),b,y,x,k,C,P,T,E,O,B,G,J={point:st,lineStart:xt,lineEnd:St,polygonStart:ot,polygonEnd:K};function st(I,N){i(I,N)&&f.point(I,N)}e(st,"point");function X(){for(var I=0,N=0,Tt=y.length;N<Tt;++N)for(var U=y[N],at=1,At=U.length,Ct=U[0],_t,nt,it=Ct[0],Qt=Ct[1];at<At;++at)_t=it,nt=Qt,Ct=U[at],it=Ct[0],Qt=Ct[1],nt<=o?Qt>o&&(it-_t)*(o-nt)>(Qt-nt)*(s-_t)&&++I:Qt<=o&&(it-_t)*(o-nt)<(Qt-nt)*(s-_t)&&--I;return I}e(X,"polygonInside");function ot(){f=_,b=[],y=[],G=!0}e(ot,"polygonStart");function K(){var I=X(),N=G&&I,Tt=(b=dd(b)).length;(N||Tt)&&(d.polygonStart(),N&&(d.lineStart(),a(null,null,1,d),d.lineEnd()),Tt&&Ho(b,p,I,a,d),d.polygonEnd()),f=d,b=y=x=null}e(K,"polygonEnd");function xt(){J.point=Q,y&&y.push(x=[]),B=!0,O=!1,T=E=NaN}e(xt,"lineStart");function St(){b&&(Q(k,C),P&&O&&_.rejoin(),b.push(_.result())),J.point=st,O&&f.lineEnd()}e(St,"lineEnd");function Q(I,N){var Tt=i(I,N);if(y&&x.push([I,N]),B)k=I,C=N,P=Tt,B=!1,Tt&&(f.lineStart(),f.point(I,N));else if(Tt&&O)f.point(I,N);else{var U=[T=Math.max(rr,Math.min(qo,T)),E=Math.max(rr,Math.min(qo,E))],at=[I=Math.max(rr,Math.min(qo,I)),N=Math.max(rr,Math.min(qo,N))];ma(U,at,s,n,l,o)?(O||(f.lineStart(),f.point(U[0],U[1])),f.point(at[0],at[1]),Tt||f.lineEnd(),G=!1):Tt&&(f.lineStart(),f.point(I,N),G=!1)}T=I,E=N,O=Tt}return e(Q,"linePoint"),J}}e(Ye,"clipRectangle");function _a(){var s=0,n=0,l=960,o=500,i,a,u;return u={stream:e(function(p){return i&&a===p?i:i=Ye(s,n,l,o)(a=p)},"stream"),extent:e(function(p){return arguments.length?(s=+p[0][0],n=+p[0][1],l=+p[1][0],o=+p[1][1],i=a=null,u):[[s,n],[l,o]]},"extent")}}e(_a,"default");var ga=oe(),ya,sr,ar,Yi={sphere:dt,point:dt,lineStart:fd,lineEnd:dt,polygonStart:dt,polygonEnd:dt};function fd(){Yi.point=_d,Yi.lineEnd=md}e(fd,"lengthLineStart");function md(){Yi.point=Yi.lineEnd=dt}e(md,"lengthLineEnd");function _d(s,n){s*=H,n*=H,ya=s,sr=A(n),ar=R(n),Yi.point=gd}e(_d,"lengthPointFirst");function gd(s,n){s*=H,n*=H;var l=A(n),o=R(n),i=j(s-ya),a=R(i),u=A(i),p=o*u,g=ar*l-sr*o*a,d=sr*l+ar*o*a;ga.add(yt(ht(p*p+g*g),d)),ya=s,sr=l,ar=o}e(gd,"lengthPoint");function Yo(s){return ga.reset(),It(s,Yi),+ga}e(Yo,"default");var va=[null,null],yd={type:"LineString",coordinates:va};function Mi(s,n){return va[0]=s,va[1]=n,Yo(yd)}e(Mi,"default");var vu={Feature:e(function(s,n){return lr(s.geometry,n)},"Feature"),FeatureCollection:e(function(s,n){for(var l=s.features,o=-1,i=l.length;++o<i;)if(lr(l[o].geometry,n))return!0;return!1},"FeatureCollection")},bu={Sphere:e(function(){return!0},"Sphere"),Point:e(function(s,n){return xu(s.coordinates,n)},"Point"),MultiPoint:e(function(s,n){for(var l=s.coordinates,o=-1,i=l.length;++o<i;)if(xu(l[o],n))return!0;return!1},"MultiPoint"),LineString:e(function(s,n){return Lu(s.coordinates,n)},"LineString"),MultiLineString:e(function(s,n){for(var l=s.coordinates,o=-1,i=l.length;++o<i;)if(Lu(l[o],n))return!0;return!1},"MultiLineString"),Polygon:e(function(s,n){return wu(s.coordinates,n)},"Polygon"),MultiPolygon:e(function(s,n){for(var l=s.coordinates,o=-1,i=l.length;++o<i;)if(wu(l[o],n))return!0;return!1},"MultiPolygon"),GeometryCollection:e(function(s,n){for(var l=s.geometries,o=-1,i=l.length;++o<i;)if(lr(l[o],n))return!0;return!1},"GeometryCollection")};function lr(s,n){return s&&bu.hasOwnProperty(s.type)?bu[s.type](s,n):!1}e(lr,"containsGeometry");function xu(s,n){return Mi(s,n)===0}e(xu,"containsPoint");function Lu(s,n){for(var l,o,i,a=0,u=s.length;a<u;a++){if(o=Mi(s[a],n),o===0||a>0&&(i=Mi(s[a],s[a-1]),i>0&&l<=i&&o<=i&&(l+o-i)*(1-Math.pow((l-o)/i,2))<bi*i))return!0;l=o}return!1}e(Lu,"containsLine");function wu(s,n){return!!Uo(s.map(vd),Cu(n))}e(wu,"containsPolygon");function vd(s){return s=s.map(Cu),s.pop(),s}e(vd,"ringRadians");function Cu(s){return[s[0]*H,s[1]*H]}e(Cu,"pointRadians");function ba(s,n){return(s&&vu.hasOwnProperty(s.type)?vu[s.type]:lr)(s,n)}e(ba,"default");import{range as Xi}from"@hpcc-js/common";function ku(s,n,l){var o=Xi(s,n-Z,l).concat(n);return function(i){return o.map(function(a){return[i,a]})}}e(ku,"graticuleX");function Mu(s,n,l){var o=Xi(s,n-Z,l).concat(n);return function(i){return o.map(function(a){return[a,i]})}}e(Mu,"graticuleY");function Ji(){var s,n,l,o,i,a,u,p,g=10,d=g,f=90,_=360,b,y,x,k,C=2.5;function P(){return{type:"MultiLineString",coordinates:T()}}e(P,"graticule");function T(){return Xi(zo(o/f)*f,l,f).map(x).concat(Xi(zo(p/_)*_,u,_).map(k)).concat(Xi(zo(n/g)*g,s,g).filter(function(E){return j(E%f)>Z}).map(b)).concat(Xi(zo(a/d)*d,i,d).filter(function(E){return j(E%_)>Z}).map(y))}return e(T,"lines"),P.lines=function(){return T().map(function(E){return{type:"LineString",coordinates:E}})},P.outline=function(){return{type:"Polygon",coordinates:[x(o).concat(k(u).slice(1),x(l).reverse().slice(1),k(p).reverse().slice(1))]}},P.extent=function(E){return arguments.length?P.extentMajor(E).extentMinor(E):P.extentMinor()},P.extentMajor=function(E){return arguments.length?(o=+E[0][0],l=+E[1][0],p=+E[0][1],u=+E[1][1],o>l&&(E=o,o=l,l=E),p>u&&(E=p,p=u,u=E),P.precision(C)):[[o,p],[l,u]]},P.extentMinor=function(E){return arguments.length?(n=+E[0][0],s=+E[1][0],a=+E[0][1],i=+E[1][1],n>s&&(E=n,n=s,s=E),a>i&&(E=a,a=i,i=E),P.precision(C)):[[n,a],[s,i]]},P.step=function(E){return arguments.length?P.stepMajor(E).stepMinor(E):P.stepMinor()},P.stepMajor=function(E){return arguments.length?(f=+E[0],_=+E[1],P):[f,_]},P.stepMinor=function(E){return arguments.length?(g=+E[0],d=+E[1],P):[g,d]},P.precision=function(E){return arguments.length?(C=+E,b=ku(a,i,90),y=Mu(n,s,C),x=ku(p,u,90),k=Mu(o,l,C),P):C},P.extentMajor([[-180,-90+Z],[180,90-Z]]).extentMinor([[-180,-80-Z],[180,80+Z]])}e(Ji,"graticule");function Pu(){return Ji()()}e(Pu,"graticule10");function xa(s,n){var l=s[0]*H,o=s[1]*H,i=n[0]*H,a=n[1]*H,u=R(o),p=A(o),g=R(a),d=A(a),f=u*R(l),_=u*A(l),b=g*R(i),y=g*A(i),x=2*vt(ht(Ks(a-o)+u*g*Ks(i-l))),k=A(x),C=x?function(P){var T=A(P*=x)/k,E=A(x-P)/k,O=E*f+T*b,B=E*_+T*y,G=E*p+T*d;return[yt(B,O)*lt,yt(G,ht(O*O+B*B))*lt]}:function(){return[l*lt,o*lt]};return C.distance=x,C}e(xa,"default");function Xe(s){return s}e(Xe,"default");var La=oe(),wa=oe(),Eu,Su,Ca,ka,ai={point:dt,lineStart:dt,lineEnd:dt,polygonStart:e(function(){ai.lineStart=bd,ai.lineEnd=Ld},"polygonStart"),polygonEnd:e(function(){ai.lineStart=ai.lineEnd=ai.point=dt,La.add(j(wa)),wa.reset()},"polygonEnd"),result:e(function(){var s=La/2;return La.reset(),s},"result")};function bd(){ai.point=xd}e(bd,"areaRingStart");function xd(s,n){ai.point=Tu,Eu=Ca=s,Su=ka=n}e(xd,"areaPointFirst");function Tu(s,n){wa.add(ka*s-Ca*n),Ca=s,ka=n}e(Tu,"areaPoint");function Ld(){Tu(Eu,Su)}e(Ld,"areaRingEnd");var Ma=ai;var Ki=1/0,hr=Ki,Xo=-Ki,ur=Xo,wd={point:Cd,lineStart:dt,lineEnd:dt,polygonStart:dt,polygonEnd:dt,result:e(function(){var s=[[Ki,hr],[Xo,ur]];return Xo=ur=-(hr=Ki=1/0),s},"result")};function Cd(s,n){s<Ki&&(Ki=s),s>Xo&&(Xo=s),n<hr&&(hr=n),n>ur&&(ur=n)}e(Cd,"boundsPoint");var $i=wd;var Pa=0,Ea=0,Jo=0,cr=0,pr=0,Qi=0,Sa=0,Ta=0,Ko=0,Iu,Du,Re,Ne,Se={point:Pi,lineStart:Ou,lineEnd:zu,polygonStart:e(function(){Se.lineStart=Pd,Se.lineEnd=Ed},"polygonStart"),polygonEnd:e(function(){Se.point=Pi,Se.lineStart=Ou,Se.lineEnd=zu},"polygonEnd"),result:e(function(){var s=Ko?[Sa/Ko,Ta/Ko]:Qi?[cr/Qi,pr/Qi]:Jo?[Pa/Jo,Ea/Jo]:[NaN,NaN];return Pa=Ea=Jo=cr=pr=Qi=Sa=Ta=Ko=0,s},"result")};function Pi(s,n){Pa+=s,Ea+=n,++Jo}e(Pi,"centroidPoint");function Ou(){Se.point=kd}e(Ou,"centroidLineStart");function kd(s,n){Se.point=Md,Pi(Re=s,Ne=n)}e(kd,"centroidPointFirstLine");function Md(s,n){var l=s-Re,o=n-Ne,i=ht(l*l+o*o);cr+=i*(Re+s)/2,pr+=i*(Ne+n)/2,Qi+=i,Pi(Re=s,Ne=n)}e(Md,"centroidPointLine");function zu(){Se.point=Pi}e(zu,"centroidLineEnd");function Pd(){Se.point=Sd}e(Pd,"centroidRingStart");function Ed(){Au(Iu,Du)}e(Ed,"centroidRingEnd");function Sd(s,n){Se.point=Au,Pi(Iu=Re=s,Du=Ne=n)}e(Sd,"centroidPointFirstRing");function Au(s,n){var l=s-Re,o=n-Ne,i=ht(l*l+o*o);cr+=i*(Re+s)/2,pr+=i*(Ne+n)/2,Qi+=i,i=Ne*s-Re*n,Sa+=i*(Re+s),Ta+=i*(Ne+n),Ko+=i*3,Pi(Re=s,Ne=n)}e(Au,"centroidPointRing");var Oa=Se;function dr(s){this._context=s}e(dr,"PathContext");dr.prototype={_radius:4.5,pointRadius:e(function(s){return this._radius=s,this},"pointRadius"),polygonStart:e(function(){this._line=0},"polygonStart"),polygonEnd:e(function(){this._line=NaN},"polygonEnd"),lineStart:e(function(){this._point=0},"lineStart"),lineEnd:e(function(){this._line===0&&this._context.closePath(),this._point=NaN},"lineEnd"),point:e(function(s,n){switch(this._point){case 0:{this._context.moveTo(s,n),this._point=1;break}case 1:{this._context.lineTo(s,n);break}default:{this._context.moveTo(s+this._radius,n),this._context.arc(s,n,this._radius,0,zt);break}}},"point"),result:dt};var Ia=oe(),za,Bu,Ru,$o,Qo,fr={point:dt,lineStart:e(function(){fr.point=Td},"lineStart"),lineEnd:e(function(){za&&Nu(Bu,Ru),fr.point=dt},"lineEnd"),polygonStart:e(function(){za=!0},"polygonStart"),polygonEnd:e(function(){za=null},"polygonEnd"),result:e(function(){var s=+Ia;return Ia.reset(),s},"result")};function Td(s,n){fr.point=Nu,Bu=$o=s,Ru=Qo=n}e(Td,"lengthPointFirst");function Nu(s,n){$o-=s,Qo-=n,Ia.add(ht($o*$o+Qo*Qo)),$o=s,Qo=n}e(Nu,"lengthPoint");var Da=fr;function mr(){this._string=[]}e(mr,"PathString");mr.prototype={_radius:4.5,_circle:Zu(4.5),pointRadius:e(function(s){return(s=+s)!==this._radius&&(this._radius=s,this._circle=null),this},"pointRadius"),polygonStart:e(function(){this._line=0},"polygonStart"),polygonEnd:e(function(){this._line=NaN},"polygonEnd"),lineStart:e(function(){this._point=0},"lineStart"),lineEnd:e(function(){this._line===0&&this._string.push("Z"),this._point=NaN},"lineEnd"),point:e(function(s,n){switch(this._point){case 0:{this._string.push("M",s,",",n),this._point=1;break}case 1:{this._string.push("L",s,",",n);break}default:{this._circle==null&&(this._circle=Zu(this._radius)),this._string.push("M",s,",",n,this._circle);break}}},"point"),result:e(function(){if(this._string.length){var s=this._string.join("");return this._string=[],s}else return null},"result")};function Zu(s){return"m0,"+s+"a"+s+","+s+" 0 1,1 0,"+-2*s+"a"+s+","+s+" 0 1,1 0,"+2*s+"z"}e(Zu,"circle");function Je(s,n){var l=4.5,o,i;function a(u){return u&&(typeof l=="function"&&i.pointRadius(+l.apply(this,arguments)),It(u,o(i))),i.result()}return e(a,"path"),a.area=function(u){return It(u,o(Ma)),Ma.result()},a.measure=function(u){return It(u,o(Da)),Da.result()},a.bounds=function(u){return It(u,o($i)),$i.result()},a.centroid=function(u){return It(u,o(Oa)),Oa.result()},a.projection=function(u){return arguments.length?(o=u==null?(s=null,Xe):(s=u).stream,a):s},a.context=function(u){return arguments.length?(i=u==null?(n=null,new mr):new dr(n=u),typeof l!="function"&&i.pointRadius(l),a):n},a.pointRadius=function(u){return arguments.length?(l=typeof u=="function"?u:(i.pointRadius(+u),+u),a):l},a.projection(s).context(n)}e(Je,"default");function tn(s){return{stream:li(s)}}e(tn,"default");function li(s){return function(n){var l=new Aa;for(var o in s)l[o]=s[o];return l.stream=n,l}}e(li,"transformer");function Aa(){}e(Aa,"TransformStream");Aa.prototype={constructor:Aa,point:e(function(s,n){this.stream.point(s,n)},"point"),sphere:e(function(){this.stream.sphere()},"sphere"),lineStart:e(function(){this.stream.lineStart()},"lineStart"),lineEnd:e(function(){this.stream.lineEnd()},"lineEnd"),polygonStart:e(function(){this.stream.polygonStart()},"polygonStart"),polygonEnd:e(function(){this.stream.polygonEnd()},"polygonEnd")};function Ba(s,n,l){var o=s.clipExtent&&s.clipExtent();return s.scale(150).translate([0,0]),o!=null&&s.clipExtent(null),It(l,s.stream($i)),n($i.result()),o!=null&&s.clipExtent(o),s}e(Ba,"fit");function Ei(s,n,l){return Ba(s,function(o){var i=n[1][0]-n[0][0],a=n[1][1]-n[0][1],u=Math.min(i/(o[1][0]-o[0][0]),a/(o[1][1]-o[0][1])),p=+n[0][0]+(i-u*(o[1][0]+o[0][0]))/2,g=+n[0][1]+(a-u*(o[1][1]+o[0][1]))/2;s.scale(150*u).translate([p,g])},l)}e(Ei,"fitExtent");function to(s,n,l){return Ei(s,[[0,0],n],l)}e(to,"fitSize");function eo(s,n,l){return Ba(s,function(o){var i=+n,a=i/(o[1][0]-o[0][0]),u=(i-a*(o[1][0]+o[0][0]))/2,p=-a*o[0][1];s.scale(150*a).translate([u,p])},l)}e(eo,"fitWidth");function io(s,n,l){return Ba(s,function(o){var i=+n,a=i/(o[1][1]-o[0][1]),u=-a*o[0][0],p=(i-a*(o[1][1]+o[0][1]))/2;s.scale(150*a).translate([u,p])},l)}e(io,"fitHeight");var Fu=16,Od=R(30*H);function _r(s,n){return+n?Id(s,n):zd(s)}e(_r,"default");function zd(s){return li({point:e(function(n,l){n=s(n,l),this.stream.point(n[0],n[1])},"point")})}e(zd,"resampleNone");function Id(s,n){function l(o,i,a,u,p,g,d,f,_,b,y,x,k,C){var P=d-o,T=f-i,E=P*P+T*T;if(E>4*n&&k--){var O=u+b,B=p+y,G=g+x,J=ht(O*O+B*B+G*G),st=vt(G/=J),X=j(j(G)-1)<Z||j(a-_)<Z?(a+_)/2:yt(B,O),ot=s(X,st),K=ot[0],xt=ot[1],St=K-o,Q=xt-i,I=T*St-P*Q;(I*I/E>n||j((P*St+T*Q)/E-.5)>.3||u*b+p*y+g*x<Od)&&(l(o,i,a,u,p,g,K,xt,X,O/=J,B/=J,G,k,C),C.point(K,xt),l(K,xt,X,O,B,G,d,f,_,b,y,x,k,C))}}return e(l,"resampleLineTo"),function(o){var i,a,u,p,g,d,f,_,b,y,x,k,C={point:P,lineStart:T,lineEnd:O,polygonStart:e(function(){o.polygonStart(),C.lineStart=B},"polygonStart"),polygonEnd:e(function(){o.polygonEnd(),C.lineStart=T},"polygonEnd")};function P(st,X){st=s(st,X),o.point(st[0],st[1])}e(P,"point");function T(){_=NaN,C.point=E,o.lineStart()}e(T,"lineStart");function E(st,X){var ot=we([st,X]),K=s(st,X);l(_,b,f,y,x,k,_=K[0],b=K[1],f=st,y=ot[0],x=ot[1],k=ot[2],Fu,o),o.point(_,b)}e(E,"linePoint");function O(){C.point=P,o.lineEnd()}e(O,"lineEnd");function B(){T(),C.point=G,C.lineEnd=J}e(B,"ringStart");function G(st,X){E(i=st,X),a=_,u=b,p=y,g=x,d=k,C.point=E}e(G,"ringPoint");function J(){l(_,b,f,y,x,k,a,u,i,p,g,d,Fu,o),C.lineEnd=O,O()}return e(J,"ringEnd"),C}}e(Id,"resample");var Dd=li({point:e(function(s,n){this.stream.point(s*H,n*H)},"point")});function Ad(s){return li({point:e(function(n,l){var o=s(n,l);return this.stream.point(o[0],o[1])},"point")})}e(Ad,"transformRotate");function Bd(s,n,l,o,i){function a(u,p){return u*=o,p*=i,[n+s*u,l-s*p]}return e(a,"transform"),a.invert=function(u,p){return[(u-n)/s*o,(l-p)/s*i]},a}e(Bd,"scaleTranslate");function Gu(s,n,l,o,i,a){var u=R(a),p=A(a),g=u*s,d=p*s,f=u/s,_=p/s,b=(p*l-u*n)/s,y=(p*n+u*l)/s;function x(k,C){return k*=o,C*=i,[g*k-d*C+n,l-d*k-g*C]}return e(x,"transform"),x.invert=function(k,C){return[o*(f*k-_*C+b),i*(y-_*k-f*C)]},x}e(Gu,"scaleTranslateRotate");function Dt(s){return en(function(){return s})()}e(Dt,"projection");function en(s){var n,l=150,o=480,i=250,a=0,u=0,p=0,g=0,d=0,f,_=0,b=1,y=1,x=null,k=jo,C=null,P,T,E,O=Xe,B=.5,G,J,st,X,ot;function K(I){return st(I[0]*H,I[1]*H)}e(K,"projection");function xt(I){return I=st.invert(I[0],I[1]),I&&[I[0]*lt,I[1]*lt]}e(xt,"invert"),K.stream=function(I){return X&&ot===I?X:X=Dd(Ad(f)(k(G(O(ot=I)))))},K.preclip=function(I){return arguments.length?(k=I,x=void 0,Q()):k},K.postclip=function(I){return arguments.length?(O=I,C=P=T=E=null,Q()):O},K.clipAngle=function(I){return arguments.length?(k=+I?Vo(x=I*H):(x=null,jo),Q()):x*lt},K.clipExtent=function(I){return arguments.length?(O=I==null?(C=P=T=E=null,Xe):Ye(C=+I[0][0],P=+I[0][1],T=+I[1][0],E=+I[1][1]),Q()):C==null?null:[[C,P],[T,E]]},K.scale=function(I){return arguments.length?(l=+I,St()):l},K.translate=function(I){return arguments.length?(o=+I[0],i=+I[1],St()):[o,i]},K.center=function(I){return arguments.length?(a=I[0]%360*H,u=I[1]%360*H,St()):[a*lt,u*lt]},K.rotate=function(I){return arguments.length?(p=I[0]%360*H,g=I[1]%360*H,d=I.length>2?I[2]%360*H:0,St()):[p*lt,g*lt,d*lt]},K.angle=function(I){return arguments.length?(_=I%360*H,St()):_*lt},K.reflectX=function(I){return arguments.length?(b=I?-1:1,St()):b<0},K.reflectY=function(I){return arguments.length?(y=I?-1:1,St()):y<0},K.precision=function(I){return arguments.length?(G=_r(J,B=I*I),Q()):ht(B)},K.fitExtent=function(I,N){return Ei(K,I,N)},K.fitSize=function(I,N){return to(K,I,N)},K.fitWidth=function(I,N){return eo(K,I,N)},K.fitHeight=function(I,N){return io(K,I,N)};function St(){var I=Gu(l,0,0,b,y,_).apply(null,n(a,u)),N=(_?Gu:Bd)(l,o-I[0],i-I[1],b,y,_);return f=Zo(p,g,d),J=qi(n,N),st=qi(f,J),G=_r(J,B),Q()}e(St,"recenter");function Q(){return X=ot=null,K}return e(Q,"reset"),function(){return n=s.apply(this,arguments),K.invert=n.invert&&xt,St()}}e(en,"projectionMutator");function oo(s){var n=0,l=Y/3,o=en(s),i=o(n,l);return i.parallels=function(a){return arguments.length?o(n=a[0]*H,l=a[1]*H):[n*lt,l*lt]},i}e(oo,"conicProjection");function Hu(s){var n=R(s);function l(o,i){return[o*n,A(i)/n]}return e(l,"forward"),l.invert=function(o,i){return[o/n,vt(i*n)]},l}e(Hu,"cylindricalEqualAreaRaw");function Ra(s,n){var l=A(s),o=(l+A(n))/2;if(j(o)<Z)return Hu(s);var i=1+l*(2*o-l),a=ht(i)/o;function u(p,g){var d=ht(i-2*o*A(g))/o;return[d*A(p*=o),a-d*R(p)]}return e(u,"project"),u.invert=function(p,g){var d=a-g,f=yt(p,j(d))*te(d);return d*o<0&&(f-=Y*te(p)*te(d)),[f/o,vt((i-(p*p+d*d)*o*o)/(2*o))]},u}e(Ra,"conicEqualAreaRaw");function Ce(){return oo(Ra).scale(155.424).center([0,33.6442])}e(Ce,"default");function Si(){return Ce().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}e(Si,"default");function Rd(s){var n=s.length;return{point:e(function(l,o){for(var i=-1;++i<n;)s[i].point(l,o)},"point"),sphere:e(function(){for(var l=-1;++l<n;)s[l].sphere()},"sphere"),lineStart:e(function(){for(var l=-1;++l<n;)s[l].lineStart()},"lineStart"),lineEnd:e(function(){for(var l=-1;++l<n;)s[l].lineEnd()},"lineEnd"),polygonStart:e(function(){for(var l=-1;++l<n;)s[l].polygonStart()},"polygonStart"),polygonEnd:e(function(){for(var l=-1;++l<n;)s[l].polygonEnd()},"polygonEnd")}}e(Rd,"multiplex");function Na(){var s,n,l=Si(),o,i=Ce().rotate([154,0]).center([-2,58.5]).parallels([55,65]),a,u=Ce().rotate([157,0]).center([-3,19.9]).parallels([8,18]),p,g,d={point:e(function(b,y){g=[b,y]},"point")};function f(b){var y=b[0],x=b[1];return g=null,o.point(y,x),g||(a.point(y,x),g)||(p.point(y,x),g)}e(f,"albersUsa"),f.invert=function(b){var y=l.scale(),x=l.translate(),k=(b[0]-x[0])/y,C=(b[1]-x[1])/y;return(C>=.12&&C<.234&&k>=-.425&&k<-.214?i:C>=.166&&C<.234&&k>=-.214&&k<-.115?u:l).invert(b)},f.stream=function(b){return s&&n===b?s:s=Rd([l.stream(n=b),i.stream(b),u.stream(b)])},f.precision=function(b){return arguments.length?(l.precision(b),i.precision(b),u.precision(b),_()):l.precision()},f.scale=function(b){return arguments.length?(l.scale(b),i.scale(b*.35),u.scale(b),f.translate(l.translate())):l.scale()},f.translate=function(b){if(!arguments.length)return l.translate();var y=l.scale(),x=+b[0],k=+b[1];return o=l.translate(b).clipExtent([[x-.455*y,k-.238*y],[x+.455*y,k+.238*y]]).stream(d),a=i.translate([x-.307*y,k+.201*y]).clipExtent([[x-.425*y+Z,k+.12*y+Z],[x-.214*y-Z,k+.234*y-Z]]).stream(d),p=u.translate([x-.205*y,k+.212*y]).clipExtent([[x-.214*y+Z,k+.166*y+Z],[x-.115*y-Z,k+.234*y-Z]]).stream(d),_()},f.fitExtent=function(b,y){return Ei(f,b,y)},f.fitSize=function(b,y){return to(f,b,y)},f.fitWidth=function(b,y){return eo(f,b,y)},f.fitHeight=function(b,y){return io(f,b,y)};function _(){return s=n=null,f}return e(_,"reset"),f.scale(1070)}e(Na,"default");function gr(s){return function(n,l){var o=R(n),i=R(l),a=s(o*i);return[a*i*A(n),a*A(l)]}}e(gr,"azimuthalRaw");function Ze(s){return function(n,l){var o=ht(n*n+l*l),i=s(o),a=A(i),u=R(i);return[yt(n*a,o*u),vt(o&&l*a/o)]}}e(Ze,"azimuthalInvert");var yr=gr(function(s){return ht(2/(1+s))});yr.invert=Ze(function(s){return 2*vt(s/2)});function Za(){return Dt(yr).scale(124.75).clipAngle(180-.001)}e(Za,"default");var vr=gr(function(s){return(s=qn(s))&&s/A(s)});vr.invert=Ze(function(s){return s});function Fa(){return Dt(vr).scale(79.4188).clipAngle(180-.001)}e(Fa,"default");function Ti(s,n){return[s,xi(ji((gt+n)/2))]}e(Ti,"mercatorRaw");Ti.invert=function(s,n){return[s,2*Le(jn(n))-gt]};function on(){return Ga(Ti).scale(961/zt)}e(on,"default");function Ga(s){var n=Dt(s),l=n.center,o=n.scale,i=n.translate,a=n.clipExtent,u=null,p,g,d;n.scale=function(_){return arguments.length?(o(_),f()):o()},n.translate=function(_){return arguments.length?(i(_),f()):i()},n.center=function(_){return arguments.length?(l(_),f()):l()},n.clipExtent=function(_){return arguments.length?(_==null?u=p=g=d=null:(u=+_[0][0],p=+_[0][1],g=+_[1][0],d=+_[1][1]),f()):u==null?null:[[u,p],[g,d]]};function f(){var _=Y*o(),b=n(Fo(n.rotate()).invert([0,0]));return a(u==null?[[b[0]-_,b[1]-_],[b[0]+_,b[1]+_]]:s===Ti?[[Math.max(b[0]-_,u),p],[Math.min(b[0]+_,g),d]]:[[u,Math.max(b[1]-_,p)],[g,Math.min(b[1]+_,d)]])}return e(f,"reclip"),f()}e(Ga,"mercatorProjection");function br(s){return ji((gt+s)/2)}e(br,"tany");function Ha(s,n){var l=R(s),o=s===n?A(s):xi(l/R(n))/xi(br(n)/br(s)),i=l*Vn(br(s),o)/o;if(!o)return Ti;function a(u,p){i>0?p<-gt+Z&&(p=-gt+Z):p>gt-Z&&(p=gt-Z);var g=i/Vn(br(p),o);return[g*A(o*u),i-g*R(o*u)]}return e(a,"project"),a.invert=function(u,p){var g=i-p,d=te(o)*ht(u*u+g*g),f=yt(u,j(g))*te(g);return g*o<0&&(f-=Y*te(u)*te(g)),[f/o,2*Le(Vn(i/d,1/o))-gt]},a}e(Ha,"conicConformalRaw");function Ua(){return oo(Ha).scale(109.5).parallels([30,30])}e(Ua,"default");function Oi(s,n){return[s,n]}e(Oi,"equirectangularRaw");Oi.invert=Oi;function Wa(){return Dt(Oi).scale(152.63)}e(Wa,"default");function ja(s,n){var l=R(s),o=s===n?A(s):(l-R(n))/(n-s),i=l/o+s;if(j(o)<Z)return Oi;function a(u,p){var g=i-p,d=o*u;return[g*A(d),i-g*R(d)]}return e(a,"project"),a.invert=function(u,p){var g=i-p,d=yt(u,j(g))*te(g);return g*o<0&&(d-=Y*te(u)*te(g)),[d/o,i-te(o)*ht(u*u+g*g)]},a}e(ja,"conicEquidistantRaw");function Va(){return oo(ja).scale(131.154).center([0,13.9389])}e(Va,"default");var nn=1.340264,rn=-.081106,sn=893e-6,an=.003796,xr=ht(3)/2,Nd=12;function Lr(s,n){var l=vt(xr*A(n)),o=l*l,i=o*o*o;return[s*R(l)/(xr*(nn+3*rn*o+i*(7*sn+9*an*o))),l*(nn+rn*o+i*(sn+an*o))]}e(Lr,"equalEarthRaw");Lr.invert=function(s,n){for(var l=n,o=l*l,i=o*o*o,a=0,u,p,g;a<Nd&&(p=l*(nn+rn*o+i*(sn+an*o))-n,g=nn+3*rn*o+i*(7*sn+9*an*o),l-=u=p/g,o=l*l,i=o*o*o,!(j(u)<bi));++a);return[xr*s*(nn+3*rn*o+i*(7*sn+9*an*o))/R(l),vt(A(l)/xr)]};function qa(){return Dt(Lr).scale(177.158)}e(qa,"default");function wr(s,n){var l=R(n),o=R(s)*l;return[l*A(s)/o,A(n)/o]}e(wr,"gnomonicRaw");wr.invert=Ze(Le);function Ya(){return Dt(wr).scale(144.049).clipAngle(60)}e(Ya,"default");function Xa(){var s=1,n=0,l=0,o=1,i=1,a=0,u,p,g=null,d,f,_,b=1,y=1,x=li({point:e(function(O,B){var G=E([O,B]);this.stream.point(G[0],G[1])},"point")}),k=Xe,C,P;function T(){return b=s*o,y=s*i,C=P=null,E}e(T,"reset");function E(O){var B=O[0]*b,G=O[1]*y;if(a){var J=G*u-B*p;B=B*u+G*p,G=J}return[B+n,G+l]}return e(E,"projection"),E.invert=function(O){var B=O[0]-n,G=O[1]-l;if(a){var J=G*u+B*p;B=B*u-G*p,G=J}return[B/b,G/y]},E.stream=function(O){return C&&P===O?C:C=x(k(P=O))},E.postclip=function(O){return arguments.length?(k=O,g=d=f=_=null,T()):k},E.clipExtent=function(O){return arguments.length?(k=O==null?(g=d=f=_=null,Xe):Ye(g=+O[0][0],d=+O[0][1],f=+O[1][0],_=+O[1][1]),T()):g==null?null:[[g,d],[f,_]]},E.scale=function(O){return arguments.length?(s=+O,T()):s},E.translate=function(O){return arguments.length?(n=+O[0],l=+O[1],T()):[n,l]},E.angle=function(O){return arguments.length?(a=O%360*H,p=A(a),u=R(a),T()):a*lt},E.reflectX=function(O){return arguments.length?(o=O?-1:1,T()):o<0},E.reflectY=function(O){return arguments.length?(i=O?-1:1,T()):i<0},E.fitExtent=function(O,B){return Ei(E,O,B)},E.fitSize=function(O,B){return to(E,O,B)},E.fitWidth=function(O,B){return eo(E,O,B)},E.fitHeight=function(O,B){return io(E,O,B)},E}e(Xa,"default");function Cr(s,n){var l=n*n,o=l*l;return[s*(.8707-.131979*l+o*(-.013791+o*(.003971*l-.001529*o))),n*(1.007226+l*(.015085+o*(-.044475+.028874*l-.005916*o)))]}e(Cr,"naturalEarth1Raw");Cr.invert=function(s,n){var l=n,o=25,i;do{var a=l*l,u=a*a;l-=i=(l*(1.007226+a*(.015085+u*(-.044475+.028874*a-.005916*u)))-n)/(1.007226+a*(.015085*3+u*(-.044475*7+.028874*9*a-.005916*11*u)))}while(j(i)>Z&&--o>0);return[s/(.8707+(a=l*l)*(-.131979+a*(-.013791+a*a*a*(.003971-.001529*a)))),l]};function Ja(){return Dt(Cr).scale(175.295)}e(Ja,"default");function kr(s,n){return[R(n)*A(s),A(n)]}e(kr,"orthographicRaw");kr.invert=Ze(vt);function Ka(){return Dt(kr).scale(249.5).clipAngle(90+Z)}e(Ka,"default");function Mr(s,n){var l=R(n),o=1+R(s)*l;return[l*A(s)/o,A(n)/o]}e(Mr,"stereographicRaw");Mr.invert=Ze(function(s){return 2*Le(s)});function $a(){return Dt(Mr).scale(250).clipAngle(142)}e($a,"default");function Pr(s,n){return[xi(ji((gt+n)/2)),-s]}e(Pr,"transverseMercatorRaw");Pr.invert=function(s,n){return[-n,2*Le(jn(s))-gt]};function Qa(){var s=Ga(Pr),n=s.center,l=s.rotate;return s.center=function(o){return arguments.length?n([-o[1],o[0]]):(o=n(),[o[1],-o[0]])},s.rotate=function(o){return arguments.length?l([o[0],o[1],o.length>2?o[2]+90:90]):(o=l(),[o[0],o[1],o[2]-90])},l([0,0,90]).scale(159.155)}e(Qa,"default");import{select as Hd}from"@hpcc-js/common";function Er(){}e(Er,"noop");var no=1/0,Sr=no,ln=-no,Tr=ln;function Zd(s,n){s<no&&(no=s),s>ln&&(ln=s),n<Sr&&(Sr=n),n>Tr&&(Tr=n)}e(Zd,"boundsPoint");var Uu={point:Zd,lineStart:Er,lineEnd:Er,polygonStart:Er,polygonEnd:Er,result(){let s=[[no,Sr],[ln,Tr]];return ln=Tr=-(Sr=no=1/0),s}};function Wu(s,n,l){let o=n[1][0]-n[0][0],i=n[1][1]-n[0][1],a=s.clipExtent&&s.clipExtent();s.scale(150).translate([0,0]),a!=null&&s.clipExtent(null),It(l,s.stream(Uu));let u=Uu.result(),p=Math.min(o/(u[1][0]-u[0][0]),i/(u[1][1]-u[0][1])),g=+n[0][0]+(o-p*(u[1][0]+u[0][0]))/2,d=+n[0][1]+(i-p*(u[1][1]+u[0][1]))/2;return a!=null&&s.clipExtent(a),s.scale(p*150).translate([g,d])}e(Wu,"fitExtent");function Fd(s,n,l){return Wu(s,[[0,0],n],l)}e(Fd,"fitSize");var ro=class s{static{e(this,"Geohash")}static base32="0123456789bcdefghjkmnpqrstuvwxyz";encode(n,l,o){if(typeof o>"u"){for(let b=1;b<=12;b++){let y=this.encode(n,l,b),x=this.decode(y);if(x.lat===n&&x.lon===l)return y}o=12}if(n=Number(n),l=Number(l),o=Number(o),isNaN(n)||isNaN(l)||isNaN(o))throw new Error("Invalid geohash");let i=0,a=0,u=!0,p="",g=-90,d=90,f=-180,_=180;for(;p.length<o;){if(u){let b=(f+_)/2;l>b?(i=i*2+1,f=b):(i=i*2,_=b)}else{let b=(g+d)/2;n>b?(i=i*2+1,g=b):(i=i*2,d=b)}u=!u,++a===5&&(p+=s.base32.charAt(i),a=0,i=0)}return p}decode(n){let l=this.bounds(n),o=l.sw.lat,i=l.sw.lon,a=l.ne.lat,u=l.ne.lon,p=(o+a)/2,g=(i+u)/2;return p=Number(p.toFixed(Math.floor(2-Math.log(a-o)/Math.LN10))),g=Number(g.toFixed(Math.floor(2-Math.log(u-i)/Math.LN10))),{lat:p,lon:g}}bounds(n){if(n.length===0)throw new Error("Invalid geohash");n=n.toLowerCase();let l=!0,o=-90,i=90,a=-180,u=180;for(let g=0;g<n.length;g++){let d=n.charAt(g),f=s.base32.indexOf(d);if(f===-1)throw new Error("Invalid geohash");for(let _=4;_>=0;_--){let b=f>>_&1;if(l){let y=(a+u)/2;b===1?a=y:u=y}else{let y=(o+i)/2;b===1?o=y:i=y}l=!l}}return{sw:{lat:o,lon:a},ne:{lat:i,lon:u}}}adjacent(n,l){if(n=n.toLowerCase(),l=l.toLowerCase(),n.length===0)throw new Error("Invalid geohash");if("nsew".indexOf(l)===-1)throw new Error("Invalid direction");let o={n:["p0r21436x8zb9dcf5h7kjnmqesgutwvy","bc01fg45238967deuvhjyznpkmstqrwx"],s:["14365h7k9dcfesgujnmqp0r2twvyx8zb","238967debc01fg45kmstqrwxuvhjyznp"],e:["bc01fg45238967deuvhjyznpkmstqrwx","p0r21436x8zb9dcf5h7kjnmqesgutwvy"],w:["238967debc01fg45kmstqrwxuvhjyznp","14365h7k9dcfesgujnmqp0r2twvyx8zb"]},i={n:["prxz","bcfguvyz"],s:["028b","0145hjnp"],e:["bcfguvyz","prxz"],w:["0145hjnp","028b"]},a=n.slice(-1),u=n.slice(0,-1),p=n.length%2;return i[l][p].indexOf(a)!==-1&&u!==""&&(u=this.adjacent(u,l)),u+s.base32.charAt(o[l][p].indexOf(a))}neighbours(n){return{n:this.adjacent(n,"n"),ne:this.adjacent(this.adjacent(n,"n"),"e"),e:this.adjacent(n,"e"),se:this.adjacent(this.adjacent(n,"s"),"e"),s:this.adjacent(n,"s"),sw:this.adjacent(this.adjacent(n,"s"),"w"),w:this.adjacent(n,"w"),nw:this.adjacent(this.adjacent(n,"n"),"w")}}contained(n,l,o,i,a){(isNaN(l)||l>=90)&&(l=89),(isNaN(o)||o>180)&&(o=180),(isNaN(i)||i<=-90)&&(i=-89),(isNaN(n)||n<-180)&&(n=-180),a=a||1;let u=this.encode(l,n,a),p=this.encode(l,o,a),g=this.encode(i,o,a),d=u,f=0,_=-1,b=[u,g],y=this.adjacent(u,"e");for(;y!==g;)b.push(y),++f,y===p||_===f?(_=f+1,f=0,y=this.adjacent(d,"s"),d=y):y=this.adjacent(y,"e");return b}calculateWidthDegrees(n){let l;return n%2===0?l=-1:l=-.5,180/Math.pow(2,2.5*n+l)}width(n){let l=n%2;return 180/(2^(5*n+l)/2-1)}};function Gd(s){let n=s.length;return{point(l,o){let i=-1;for(;++i<n;)s[i].point(l,o)},sphere(){let l=-1;for(;++l<n;)s[l].sphere()},lineStart(){let l=-1;for(;++l<n;)s[l].lineStart()},lineEnd(){let l=-1;for(;++l<n;)s[l].lineEnd()},polygonStart(){let l=-1;for(;++l<n;)s[l].polygonStart()},polygonEnd(){let l=-1;for(;++l<n;)s[l].polygonEnd()}}}e(Gd,"multiplex");function ju(){let s,n,o=Si(),i,a=Ce().rotate([154,0]).center([-2,58.5]).parallels([55,65]),u,p=Ce().rotate([157,0]).center([-3,19.9]).parallels([8,18]),g,d=Ce().rotate([66,0]).center([0,18]).parallels([8,18]),f,_,b={point:e((k,C)=>{_=[k,C]},"point")},y=e(function(k){let C=k[0],P=k[1];return _=null,i.point(C,P),_||(u.point(C,P),_)||(g.point(C,P),_)||f.point(C,P),_},"albersUsa");y.invert=function(k){let C=o.scale(),P=o.translate(),T=(k[0]-P[0])/C,E=(k[1]-P[1])/C;return(E>=.12&&E<.234&&T>=-.425&&T<-.214?a:E>=.166&&E<.234&&T>=-.214&&T<-.115?p:E>=.204&&E<.234&&T>=.32&&T<.38?d:o).invert(k)},y.stream=function(k){return s&&n===k?s:s=Gd([o.stream(n=k),a.stream(k),p.stream(k),d.stream(k)])},y.precision=function(k){return arguments.length?(o.precision(k),a.precision(k),p.precision(k),d.precision(k),x()):o.precision()},y.scale=function(k){return arguments.length?(o.scale(k),a.scale(k*.35),p.scale(k),d.scale(k),y.translate(o.translate())):o.scale()},y.translate=function(k){if(!arguments.length)return o.translate();let C=o.scale(),P=+k[0],T=+k[1];return i=o.translate(k).clipExtent([[P-.455*C,T-.238*C],[P+.455*C,T+.238*C]]).stream(b),u=a.translate([P-.307*C,T+.201*C]).clipExtent([[P-.425*C+1e-6,T+.12*C+1e-6],[P-.214*C-1e-6,T+.234*C-1e-6]]).stream(b),g=p.translate([P-.205*C,T+.212*C]).clipExtent([[P-.214*C+1e-6,T+.166*C+1e-6],[P-.115*C-1e-6,T+.234*C-1e-6]]).stream(b),f=d.translate([P+.35*C,T+.224*C]).clipExtent([[P+.32*C,T+.204*C],[P+.38*C,T+.234*C]]).stream(b),x()},y.fitExtent=function(k,C){return Wu(y,k,C)},y.fitSize=function(k,C){return Fd(y,k,C)};function x(){return s=n=null,y}return e(x,"reset"),y.scale(1070)}e(ju,"albersUsaPr");var qu=(x=>(x[x.AzimuthalEqualArea=0]="AzimuthalEqualArea",x[x.AzimuthalEquidistant=1]="AzimuthalEquidistant",x[x.Gnomonic=2]="Gnomonic",x[x.Orthographic=3]="Orthographic",x[x.Stereographic=4]="Stereographic",x[x.AlbersUsa=5]="AlbersUsa",x[x.AlbersUsaPr=6]="AlbersUsaPr",x[x.Albers=7]="Albers",x[x.ConicConformal=8]="ConicConformal",x[x.ConicEqualArea=9]="ConicEqualArea",x[x.ConicEquidistant=10]="ConicEquidistant",x[x.Equirectangular=11]="Equirectangular",x[x.Mercator=12]="Mercator",x[x.TransverseMercator=13]="TransverseMercator",x))(qu||{}),il=[],el={};for(let s in qu)typeof s=="string"&&(il.push(s),s==="AlbersUsaPr"?el[s]=ju:el[s]=tl[`geo${s}`]);function zi(s){let n=el[s];return n?n():(console.warn("Unknown projection: "+s),on())}e(zi,"resolve");(function(){if(!document.getElementById("1fe8ba4c")){var s=document.createElement("style");s.id="1fe8ba4c",s.textContent=`.map_Layered .background {
2
2
  fill: none;
3
3
  }
4
4