@gemafajarramadhan/dynamic-ui 1.4.47 → 1.4.48

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.
@@ -129,7 +129,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`),se=te,ce=re),ge===void
129
129
  `,""),Z=Number(D);return Number.isFinite(Z)?Z:null}return T},ue=T=>{A.value=T,i("update:modelValue",oe(T))},te=(T,D)=>{const Z=g(D);M.value=!0,T.value=Z,ue(Z),queueMicrotask(()=>M.value=!1)},re=(T,D)=>{const Z=T.selectionStart??T.value.length,J=T.selectionEnd??T.value.length;if(m.value>0){const fe=T.value.length-(J-Z),ae=m.value-fe;if(ae<=0)return;D=D.slice(0,ae)}T.setRangeText(D,Z,J,"end"),te(T,q(T.value))},ge=T=>{var fe;const D=X.value;if(!D||C.value||M.value||!((fe=T.inputType)!=null&&fe.startsWith("insert")))return;const Z=T.data;if(Z==null)return;const J=q(Z);J!==Z&&(T.preventDefault(),J.length>0&&re(D,J))},ce=T=>{var fe;const D=X.value;if(!D||C.value||M.value)return;const Z=((fe=T.clipboardData)==null?void 0:fe.getData("text"))??"",J=q(Z);J!==Z&&(T.preventDefault(),J.length>0&&re(D,J))},se=async T=>{const D=X.value;if(!D||C.value||M.value)return;const Z=D.value??"",J=q(Z);if(J===Z){const fe=D.selectionStart??J.length,ae=D.selectionEnd??J.length;te(D,J),await o.nextTick();try{D.setSelectionRange(fe,ae)}catch{}ue(J)}else{const fe=D.selectionStart??J.length,ae=D.selectionEnd??J.length;te(D,J),await o.nextTick();try{D.setSelectionRange(fe,ae)}catch{}}},z=()=>C.value=!0,G=()=>{C.value=!1;const T=X.value;if(!T)return;const D=T.value??"",Z=q(D);Z===D?ue(Z):te(T,Z)};o.onMounted(()=>{const T=X.value;if(!T)return;const D=T.value??"",Z=q(D);Z===D?ue(Z):te(T,Z)}),o.onBeforeUnmount(()=>{});const ee=()=>{A.value="",X.value&&(X.value.value=""),i("update:modelValue",null),i("clear")},K=o.computed(()=>A.value.length),Y=o.computed(()=>r.showCharCount?m.value>0:!1),F=o.computed(()=>Y.value&&K.value>0),_=o.computed(()=>`${K.value} / ${m.value}`),b=o.computed(()=>!!r.error),R=o.computed(()=>{const T=n.rows,D=typeof T=="number"?T:Number.parseInt(String(T??""),10);return Number.isFinite(D)&&D>0?D:3}),S=o.computed(()=>({height:`${R.value*24+16}px`}));return(T,D)=>o.withDirectives((o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["flex flex-col gap-1 w-full",[o.unref(n).class,r.disabled?"cursor-not-allowed":""]]),"aria-busy":r.skeleton},[r.skeleton?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[s.value?(o.openBlock(),o.createElementBlock("div",RG)):o.createCommentVNode("",!0),o.createElementVNode("div",{class:"w-full rounded-lg bg-gray-200 dark:bg-gray-700 animate-pulse",style:o.normalizeStyle(S.value)},null,4)],64)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[s.value?(o.openBlock(),o.createElementBlock("label",{key:0,for:d.value,class:"text-sm font-medium"},[o.createTextVNode(o.toDisplayString(s.value)+" ",1),f.value?(o.openBlock(),o.createElementBlock("span",OG,"*")):o.createCommentVNode("",!0)],8,IG)):o.createCommentVNode("",!0),o.createElementVNode("div",LG,[o.createElementVNode("textarea",o.mergeProps({id:d.value,ref_key:"textareaRef",ref:X,value:A.value,placeholder:a.value},h.value,{onInput:se,onBeforeinput:ge,onPaste:ce,onCompositionstart:z,onCompositionend:G,style:`text-transform: ${P.value}; padding-right: ${y.value?"2.5rem":"0.75rem"} !important; padding-left: 0.75rem !important;`,class:["flex min-h-[120px] w-full rounded-lg border py-2 bg-white dark:bg-neutral-800 text-foreground dark:text-gray-300 border-gray-300 dark:border-neutral-700/50 focus:ring-1 focus:ring-neutral-400 dark:focus:ring-neutral-600 text-sm placeholder:text-muted-foreground focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 readonly:bg-neutral-50/50 dark:readonly:bg-neutral-900/30",b.value?"border-destructive focus-visible:ring-destructive focus:ring-destructive":""]}),null,16,FG),y.value?(o.openBlock(),o.createElementBlock("div",$G,[o.createElementVNode("button",{type:"button",class:"text-muted-foreground hover:text-foreground text-sm leading-none","aria-label":"Clear textarea",onClick:ee}," ✕ ")])):o.createCommentVNode("",!0),F.value&&!b.value?(o.openBlock(),o.createElementBlock("p",zG,o.toDisplayString(_.value),1)):o.createCommentVNode("",!0)]),b.value?(o.openBlock(),o.createElementBlock("p",jG,o.toDisplayString(r.error),1)):o.createCommentVNode("",!0)],64))],10,MG)),[[o.vShow,l.value]])}});var Ff={exports:{}};/* @preserve
130
130
  * Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com
131
131
  * (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade
132
- */var UG=Ff.exports,SS;function WG(){return SS||(SS=1,(function(e,t){(function(n,i){i(t)})(UG,(function(n){var i="1.9.4";function r(u){var p,w,U,Q;for(w=1,U=arguments.length;w<U;w++){Q=arguments[w];for(p in Q)u[p]=Q[p]}return u}var s=Object.create||(function(){function u(){}return function(p){return u.prototype=p,new u}})();function a(u,p){var w=Array.prototype.slice;if(u.bind)return u.bind.apply(u,w.call(arguments,1));var U=w.call(arguments,2);return function(){return u.apply(p,U.length?U.concat(w.call(arguments)):arguments)}}var l=0;function c(u){return"_leaflet_id"in u||(u._leaflet_id=++l),u._leaflet_id}function d(u,p,w){var U,Q,de,Pe;return Pe=function(){U=!1,Q&&(de.apply(w,Q),Q=!1)},de=function(){U?Q=arguments:(u.apply(w,arguments),setTimeout(Pe,p),U=!0)},de}function f(u,p,w){var U=p[1],Q=p[0],de=U-Q;return u===U&&w?u:((u-Q)%de+de)%de+Q}function h(){return!1}function m(u,p){if(p===!1)return u;var w=Math.pow(10,p===void 0?6:p);return Math.round(u*w)/w}function g(u){return u.trim?u.trim():u.replace(/^\s+|\s+$/g,"")}function v(u){return g(u).split(/\s+/)}function y(u,p){Object.prototype.hasOwnProperty.call(u,"options")||(u.options=u.options?s(u.options):{});for(var w in p)u.options[w]=p[w];return u.options}function A(u,p,w){var U=[];for(var Q in u)U.push(encodeURIComponent(w?Q.toUpperCase():Q)+"="+encodeURIComponent(u[Q]));return(!p||p.indexOf("?")===-1?"?":"&")+U.join("&")}var C=/\{ *([\w_ -]+) *\}/g;function M(u,p){return u.replace(C,function(w,U){var Q=p[U];if(Q===void 0)throw new Error("No value provided for variable "+w);return typeof Q=="function"&&(Q=Q(p)),Q})}var B=Array.isArray||function(u){return Object.prototype.toString.call(u)==="[object Array]"};function N(u,p){for(var w=0;w<u.length;w++)if(u[w]===p)return w;return-1}var j="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function W(u){return window["webkit"+u]||window["moz"+u]||window["ms"+u]}var P=0;function E(u){var p=+new Date,w=Math.max(0,16-(p-P));return P=p+w,window.setTimeout(u,w)}var k=window.requestAnimationFrame||W("RequestAnimationFrame")||E,$=window.cancelAnimationFrame||W("CancelAnimationFrame")||W("CancelRequestAnimationFrame")||function(u){window.clearTimeout(u)};function I(u,p,w){if(w&&k===E)u.call(p);else return k.call(window,a(u,p))}function O(u){u&&$.call(window,u)}var q={__proto__:null,extend:r,create:s,bind:a,get lastId(){return l},stamp:c,throttle:d,wrapNum:f,falseFn:h,formatNum:m,trim:g,splitWords:v,setOptions:y,getParamString:A,template:M,isArray:B,indexOf:N,emptyImageUrl:j,requestFn:k,cancelFn:$,requestAnimFrame:I,cancelAnimFrame:O};function X(){}X.extend=function(u){var p=function(){y(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},w=p.__super__=this.prototype,U=s(w);U.constructor=p,p.prototype=U;for(var Q in this)Object.prototype.hasOwnProperty.call(this,Q)&&Q!=="prototype"&&Q!=="__super__"&&(p[Q]=this[Q]);return u.statics&&r(p,u.statics),u.includes&&(oe(u.includes),r.apply(null,[U].concat(u.includes))),r(U,u),delete U.statics,delete U.includes,U.options&&(U.options=w.options?s(w.options):{},r(U.options,u.options)),U._initHooks=[],U.callInitHooks=function(){if(!this._initHooksCalled){w.callInitHooks&&w.callInitHooks.call(this),this._initHooksCalled=!0;for(var de=0,Pe=U._initHooks.length;de<Pe;de++)U._initHooks[de].call(this)}},p},X.include=function(u){var p=this.prototype.options;return r(this.prototype,u),u.options&&(this.prototype.options=p,this.mergeOptions(u.options)),this},X.mergeOptions=function(u){return r(this.prototype.options,u),this},X.addInitHook=function(u){var p=Array.prototype.slice.call(arguments,1),w=typeof u=="function"?u:function(){this[u].apply(this,p)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(w),this};function oe(u){if(!(typeof L>"u"||!L||!L.Mixin)){u=B(u)?u:[u];for(var p=0;p<u.length;p++)u[p]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",new Error().stack)}}var ue={on:function(u,p,w){if(typeof u=="object")for(var U in u)this._on(U,u[U],p);else{u=v(u);for(var Q=0,de=u.length;Q<de;Q++)this._on(u[Q],p,w)}return this},off:function(u,p,w){if(!arguments.length)delete this._events;else if(typeof u=="object")for(var U in u)this._off(U,u[U],p);else{u=v(u);for(var Q=arguments.length===1,de=0,Pe=u.length;de<Pe;de++)Q?this._off(u[de]):this._off(u[de],p,w)}return this},_on:function(u,p,w,U){if(typeof p!="function"){console.warn("wrong listener type: "+typeof p);return}if(this._listens(u,p,w)===!1){w===this&&(w=void 0);var Q={fn:p,ctx:w};U&&(Q.once=!0),this._events=this._events||{},this._events[u]=this._events[u]||[],this._events[u].push(Q)}},_off:function(u,p,w){var U,Q,de;if(this._events&&(U=this._events[u],!!U)){if(arguments.length===1){if(this._firingCount)for(Q=0,de=U.length;Q<de;Q++)U[Q].fn=h;delete this._events[u];return}if(typeof p!="function"){console.warn("wrong listener type: "+typeof p);return}var Pe=this._listens(u,p,w);if(Pe!==!1){var Le=U[Pe];this._firingCount&&(Le.fn=h,this._events[u]=U=U.slice()),U.splice(Pe,1)}}},fire:function(u,p,w){if(!this.listens(u,w))return this;var U=r({},p,{type:u,target:this,sourceTarget:p&&p.sourceTarget||this});if(this._events){var Q=this._events[u];if(Q){this._firingCount=this._firingCount+1||1;for(var de=0,Pe=Q.length;de<Pe;de++){var Le=Q[de],je=Le.fn;Le.once&&this.off(u,je,Le.ctx),je.call(Le.ctx||this,U)}this._firingCount--}}return w&&this._propagateEvent(U),this},listens:function(u,p,w,U){typeof u!="string"&&console.warn('"string" type argument expected');var Q=p;typeof p!="function"&&(U=!!p,Q=void 0,w=void 0);var de=this._events&&this._events[u];if(de&&de.length&&this._listens(u,Q,w)!==!1)return!0;if(U){for(var Pe in this._eventParents)if(this._eventParents[Pe].listens(u,p,w,U))return!0}return!1},_listens:function(u,p,w){if(!this._events)return!1;var U=this._events[u]||[];if(!p)return!!U.length;w===this&&(w=void 0);for(var Q=0,de=U.length;Q<de;Q++)if(U[Q].fn===p&&U[Q].ctx===w)return Q;return!1},once:function(u,p,w){if(typeof u=="object")for(var U in u)this._on(U,u[U],p,!0);else{u=v(u);for(var Q=0,de=u.length;Q<de;Q++)this._on(u[Q],p,w,!0)}return this},addEventParent:function(u){return this._eventParents=this._eventParents||{},this._eventParents[c(u)]=u,this},removeEventParent:function(u){return this._eventParents&&delete this._eventParents[c(u)],this},_propagateEvent:function(u){for(var p in this._eventParents)this._eventParents[p].fire(u.type,r({layer:u.target,propagatedFrom:u.target},u),!0)}};ue.addEventListener=ue.on,ue.removeEventListener=ue.clearAllEventListeners=ue.off,ue.addOneTimeEventListener=ue.once,ue.fireEvent=ue.fire,ue.hasEventListeners=ue.listens;var te=X.extend(ue);function re(u,p,w){this.x=w?Math.round(u):u,this.y=w?Math.round(p):p}var ge=Math.trunc||function(u){return u>0?Math.floor(u):Math.ceil(u)};re.prototype={clone:function(){return new re(this.x,this.y)},add:function(u){return this.clone()._add(ce(u))},_add:function(u){return this.x+=u.x,this.y+=u.y,this},subtract:function(u){return this.clone()._subtract(ce(u))},_subtract:function(u){return this.x-=u.x,this.y-=u.y,this},divideBy:function(u){return this.clone()._divideBy(u)},_divideBy:function(u){return this.x/=u,this.y/=u,this},multiplyBy:function(u){return this.clone()._multiplyBy(u)},_multiplyBy:function(u){return this.x*=u,this.y*=u,this},scaleBy:function(u){return new re(this.x*u.x,this.y*u.y)},unscaleBy:function(u){return new re(this.x/u.x,this.y/u.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=ge(this.x),this.y=ge(this.y),this},distanceTo:function(u){u=ce(u);var p=u.x-this.x,w=u.y-this.y;return Math.sqrt(p*p+w*w)},equals:function(u){return u=ce(u),u.x===this.x&&u.y===this.y},contains:function(u){return u=ce(u),Math.abs(u.x)<=Math.abs(this.x)&&Math.abs(u.y)<=Math.abs(this.y)},toString:function(){return"Point("+m(this.x)+", "+m(this.y)+")"}};function ce(u,p,w){return u instanceof re?u:B(u)?new re(u[0],u[1]):u==null?u:typeof u=="object"&&"x"in u&&"y"in u?new re(u.x,u.y):new re(u,p,w)}function se(u,p){if(u)for(var w=p?[u,p]:u,U=0,Q=w.length;U<Q;U++)this.extend(w[U])}se.prototype={extend:function(u){var p,w;if(!u)return this;if(u instanceof re||typeof u[0]=="number"||"x"in u)p=w=ce(u);else if(u=z(u),p=u.min,w=u.max,!p||!w)return this;return!this.min&&!this.max?(this.min=p.clone(),this.max=w.clone()):(this.min.x=Math.min(p.x,this.min.x),this.max.x=Math.max(w.x,this.max.x),this.min.y=Math.min(p.y,this.min.y),this.max.y=Math.max(w.y,this.max.y)),this},getCenter:function(u){return ce((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,u)},getBottomLeft:function(){return ce(this.min.x,this.max.y)},getTopRight:function(){return ce(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(u){var p,w;return typeof u[0]=="number"||u instanceof re?u=ce(u):u=z(u),u instanceof se?(p=u.min,w=u.max):p=w=u,p.x>=this.min.x&&w.x<=this.max.x&&p.y>=this.min.y&&w.y<=this.max.y},intersects:function(u){u=z(u);var p=this.min,w=this.max,U=u.min,Q=u.max,de=Q.x>=p.x&&U.x<=w.x,Pe=Q.y>=p.y&&U.y<=w.y;return de&&Pe},overlaps:function(u){u=z(u);var p=this.min,w=this.max,U=u.min,Q=u.max,de=Q.x>p.x&&U.x<w.x,Pe=Q.y>p.y&&U.y<w.y;return de&&Pe},isValid:function(){return!!(this.min&&this.max)},pad:function(u){var p=this.min,w=this.max,U=Math.abs(p.x-w.x)*u,Q=Math.abs(p.y-w.y)*u;return z(ce(p.x-U,p.y-Q),ce(w.x+U,w.y+Q))},equals:function(u){return u?(u=z(u),this.min.equals(u.getTopLeft())&&this.max.equals(u.getBottomRight())):!1}};function z(u,p){return!u||u instanceof se?u:new se(u,p)}function G(u,p){if(u)for(var w=p?[u,p]:u,U=0,Q=w.length;U<Q;U++)this.extend(w[U])}G.prototype={extend:function(u){var p=this._southWest,w=this._northEast,U,Q;if(u instanceof K)U=u,Q=u;else if(u instanceof G){if(U=u._southWest,Q=u._northEast,!U||!Q)return this}else return u?this.extend(Y(u)||ee(u)):this;return!p&&!w?(this._southWest=new K(U.lat,U.lng),this._northEast=new K(Q.lat,Q.lng)):(p.lat=Math.min(U.lat,p.lat),p.lng=Math.min(U.lng,p.lng),w.lat=Math.max(Q.lat,w.lat),w.lng=Math.max(Q.lng,w.lng)),this},pad:function(u){var p=this._southWest,w=this._northEast,U=Math.abs(p.lat-w.lat)*u,Q=Math.abs(p.lng-w.lng)*u;return new G(new K(p.lat-U,p.lng-Q),new K(w.lat+U,w.lng+Q))},getCenter:function(){return new K((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new K(this.getNorth(),this.getWest())},getSouthEast:function(){return new K(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(u){typeof u[0]=="number"||u instanceof K||"lat"in u?u=Y(u):u=ee(u);var p=this._southWest,w=this._northEast,U,Q;return u instanceof G?(U=u.getSouthWest(),Q=u.getNorthEast()):U=Q=u,U.lat>=p.lat&&Q.lat<=w.lat&&U.lng>=p.lng&&Q.lng<=w.lng},intersects:function(u){u=ee(u);var p=this._southWest,w=this._northEast,U=u.getSouthWest(),Q=u.getNorthEast(),de=Q.lat>=p.lat&&U.lat<=w.lat,Pe=Q.lng>=p.lng&&U.lng<=w.lng;return de&&Pe},overlaps:function(u){u=ee(u);var p=this._southWest,w=this._northEast,U=u.getSouthWest(),Q=u.getNorthEast(),de=Q.lat>p.lat&&U.lat<w.lat,Pe=Q.lng>p.lng&&U.lng<w.lng;return de&&Pe},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(u,p){return u?(u=ee(u),this._southWest.equals(u.getSouthWest(),p)&&this._northEast.equals(u.getNorthEast(),p)):!1},isValid:function(){return!!(this._southWest&&this._northEast)}};function ee(u,p){return u instanceof G?u:new G(u,p)}function K(u,p,w){if(isNaN(u)||isNaN(p))throw new Error("Invalid LatLng object: ("+u+", "+p+")");this.lat=+u,this.lng=+p,w!==void 0&&(this.alt=+w)}K.prototype={equals:function(u,p){if(!u)return!1;u=Y(u);var w=Math.max(Math.abs(this.lat-u.lat),Math.abs(this.lng-u.lng));return w<=(p===void 0?1e-9:p)},toString:function(u){return"LatLng("+m(this.lat,u)+", "+m(this.lng,u)+")"},distanceTo:function(u){return _.distance(this,Y(u))},wrap:function(){return _.wrapLatLng(this)},toBounds:function(u){var p=180*u/40075017,w=p/Math.cos(Math.PI/180*this.lat);return ee([this.lat-p,this.lng-w],[this.lat+p,this.lng+w])},clone:function(){return new K(this.lat,this.lng,this.alt)}};function Y(u,p,w){return u instanceof K?u:B(u)&&typeof u[0]!="object"?u.length===3?new K(u[0],u[1],u[2]):u.length===2?new K(u[0],u[1]):null:u==null?u:typeof u=="object"&&"lat"in u?new K(u.lat,"lng"in u?u.lng:u.lon,u.alt):p===void 0?null:new K(u,p,w)}var F={latLngToPoint:function(u,p){var w=this.projection.project(u),U=this.scale(p);return this.transformation._transform(w,U)},pointToLatLng:function(u,p){var w=this.scale(p),U=this.transformation.untransform(u,w);return this.projection.unproject(U)},project:function(u){return this.projection.project(u)},unproject:function(u){return this.projection.unproject(u)},scale:function(u){return 256*Math.pow(2,u)},zoom:function(u){return Math.log(u/256)/Math.LN2},getProjectedBounds:function(u){if(this.infinite)return null;var p=this.projection.bounds,w=this.scale(u),U=this.transformation.transform(p.min,w),Q=this.transformation.transform(p.max,w);return new se(U,Q)},infinite:!1,wrapLatLng:function(u){var p=this.wrapLng?f(u.lng,this.wrapLng,!0):u.lng,w=this.wrapLat?f(u.lat,this.wrapLat,!0):u.lat,U=u.alt;return new K(w,p,U)},wrapLatLngBounds:function(u){var p=u.getCenter(),w=this.wrapLatLng(p),U=p.lat-w.lat,Q=p.lng-w.lng;if(U===0&&Q===0)return u;var de=u.getSouthWest(),Pe=u.getNorthEast(),Le=new K(de.lat-U,de.lng-Q),je=new K(Pe.lat-U,Pe.lng-Q);return new G(Le,je)}},_=r({},F,{wrapLng:[-180,180],R:6371e3,distance:function(u,p){var w=Math.PI/180,U=u.lat*w,Q=p.lat*w,de=Math.sin((p.lat-u.lat)*w/2),Pe=Math.sin((p.lng-u.lng)*w/2),Le=de*de+Math.cos(U)*Math.cos(Q)*Pe*Pe,je=2*Math.atan2(Math.sqrt(Le),Math.sqrt(1-Le));return this.R*je}}),b=6378137,R={R:b,MAX_LATITUDE:85.0511287798,project:function(u){var p=Math.PI/180,w=this.MAX_LATITUDE,U=Math.max(Math.min(w,u.lat),-w),Q=Math.sin(U*p);return new re(this.R*u.lng*p,this.R*Math.log((1+Q)/(1-Q))/2)},unproject:function(u){var p=180/Math.PI;return new K((2*Math.atan(Math.exp(u.y/this.R))-Math.PI/2)*p,u.x*p/this.R)},bounds:(function(){var u=b*Math.PI;return new se([-u,-u],[u,u])})()};function S(u,p,w,U){if(B(u)){this._a=u[0],this._b=u[1],this._c=u[2],this._d=u[3];return}this._a=u,this._b=p,this._c=w,this._d=U}S.prototype={transform:function(u,p){return this._transform(u.clone(),p)},_transform:function(u,p){return p=p||1,u.x=p*(this._a*u.x+this._b),u.y=p*(this._c*u.y+this._d),u},untransform:function(u,p){return p=p||1,new re((u.x/p-this._b)/this._a,(u.y/p-this._d)/this._c)}};function T(u,p,w,U){return new S(u,p,w,U)}var D=r({},_,{code:"EPSG:3857",projection:R,transformation:(function(){var u=.5/(Math.PI*R.R);return T(u,.5,-u,.5)})()}),Z=r({},D,{code:"EPSG:900913"});function J(u){return document.createElementNS("http://www.w3.org/2000/svg",u)}function fe(u,p){var w="",U,Q,de,Pe,Le,je;for(U=0,de=u.length;U<de;U++){for(Le=u[U],Q=0,Pe=Le.length;Q<Pe;Q++)je=Le[Q],w+=(Q?"L":"M")+je.x+" "+je.y;w+=p?pt.svg?"z":"x":""}return w||"M0 0"}var ae=document.documentElement.style,we="ActiveXObject"in window,pe=we&&!document.addEventListener,ke="msLaunchUri"in navigator&&!("documentMode"in document),be=ki("webkit"),Se=ki("android"),ve=ki("android 2")||ki("android 3"),Be=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),Ee=Se&&ki("Google")&&Be<537&&!("AudioNode"in window),Oe=!!window.opera,Ae=!ke&&ki("chrome"),Re=ki("gecko")&&!be&&!Oe&&!we,De=!Ae&&ki("safari"),Ie=ki("phantom"),Ce="OTransition"in ae,ne=navigator.platform.indexOf("Win")===0,ye=we&&"transition"in ae,Me="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!ve,Ke="MozPerspective"in ae,$e=!window.L_DISABLE_3D&&(ye||Me||Ke)&&!Ce&&!Ie,He=typeof orientation<"u"||ki("mobile"),rt=He&&be,Ve=He&&Me,Fe=!window.PointerEvent&&window.MSPointerEvent,Ue=!!(window.PointerEvent||Fe),at="ontouchstart"in window||!!window.TouchEvent,nt=!window.L_NO_TOUCH&&(at||Ue),Tt=He&&Oe,fi=He&&Re,hn=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,Jt=(function(){var u=!1;try{var p=Object.defineProperty({},"passive",{get:function(){u=!0}});window.addEventListener("testPassiveEventSupport",h,p),window.removeEventListener("testPassiveEventSupport",h,p)}catch{}return u})(),cn=(function(){return!!document.createElement("canvas").getContext})(),vn=!!(document.createElementNS&&J("svg").createSVGRect),gr=!!vn&&(function(){var u=document.createElement("div");return u.innerHTML="<svg/>",(u.firstChild&&u.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"})(),Do=!vn&&(function(){try{var u=document.createElement("div");u.innerHTML='<v:shape adj="1"/>';var p=u.firstChild;return p.style.behavior="url(#default#VML)",p&&typeof p.adj=="object"}catch{return!1}})(),Bi=navigator.platform.indexOf("Mac")===0,Ic=navigator.platform.indexOf("Linux")===0;function ki(u){return navigator.userAgent.toLowerCase().indexOf(u)>=0}var pt={ie:we,ielt9:pe,edge:ke,webkit:be,android:Se,android23:ve,androidStock:Ee,opera:Oe,chrome:Ae,gecko:Re,safari:De,phantom:Ie,opera12:Ce,win:ne,ie3d:ye,webkit3d:Me,gecko3d:Ke,any3d:$e,mobile:He,mobileWebkit:rt,mobileWebkit3d:Ve,msPointer:Fe,pointer:Ue,touch:nt,touchNative:at,mobileOpera:Tt,mobileGecko:fi,retina:hn,passiveEvents:Jt,canvas:cn,svg:vn,vml:Do,inlineSvg:gr,mac:Bi,linux:Ic},yr=pt.msPointer?"MSPointerDown":"pointerdown",Tu=pt.msPointer?"MSPointerMove":"pointermove",ai=pt.msPointer?"MSPointerUp":"pointerup",cl=pt.msPointer?"MSPointerCancel":"pointercancel",ym={touchstart:yr,touchmove:Tu,touchend:ai,touchcancel:cl},Mo={touchstart:Oc,touchmove:Nu,touchend:Nu,touchcancel:Nu},sa={},Pu=!1;function Bu(u,p,w){return p==="touchstart"&&B1(),Mo[p]?(w=Mo[p].bind(this,w),u.addEventListener(ym[p],w,!1),w):(console.warn("wrong event specified:",p),h)}function Fy(u,p,w){if(!ym[p]){console.warn("wrong event specified:",p);return}u.removeEventListener(ym[p],w,!1)}function T1(u){sa[u.pointerId]=u}function P1(u){sa[u.pointerId]&&(sa[u.pointerId]=u)}function $y(u){delete sa[u.pointerId]}function B1(){Pu||(document.addEventListener(yr,T1,!0),document.addEventListener(Tu,P1,!0),document.addEventListener(ai,$y,!0),document.addEventListener(cl,$y,!0),Pu=!0)}function Nu(u,p){if(p.pointerType!==(p.MSPOINTER_TYPE_MOUSE||"mouse")){p.touches=[];for(var w in sa)p.touches.push(sa[w]);p.changedTouches=[p],u(p)}}function Oc(u,p){p.MSPOINTER_TYPE_TOUCH&&p.pointerType===p.MSPOINTER_TYPE_TOUCH&&hi(p),Nu(u,p)}function On(u){var p={},w,U;for(U in u)w=u[U],p[U]=w&&w.bind?w.bind(u):w;return u=p,p.type="dblclick",p.detail=2,p.isTrusted=!1,p._simulated=!0,p}var Du=200;function N1(u,p){u.addEventListener("dblclick",p);var w=0,U;function Q(de){if(de.detail!==1){U=de.detail;return}if(!(de.pointerType==="mouse"||de.sourceCapabilities&&!de.sourceCapabilities.firesTouchEvents)){var Pe=km(de);if(!(Pe.some(function(je){return je instanceof HTMLLabelElement&&je.attributes.for})&&!Pe.some(function(je){return je instanceof HTMLInputElement||je instanceof HTMLSelectElement}))){var Le=Date.now();Le-w<=Du?(U++,U===2&&p(On(de))):U=1,w=Le}}}return u.addEventListener("click",Q),{dblclick:p,simDblclick:Q}}function D1(u,p){u.removeEventListener("dblclick",p.dblclick),u.removeEventListener("click",p.simDblclick)}var dl=$c(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),aa=$c(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),lo=aa==="webkitTransition"||aa==="OTransition"?aa+"End":"transitionend";function Lc(u){return typeof u=="string"?document.getElementById(u):u}function ul(u,p){var w=u.style[p]||u.currentStyle&&u.currentStyle[p];if((!w||w==="auto")&&document.defaultView){var U=document.defaultView.getComputedStyle(u,null);w=U?U[p]:null}return w==="auto"?null:w}function an(u,p,w){var U=document.createElement(u);return U.className=p||"",w&&w.appendChild(U),U}function Cn(u){var p=u.parentNode;p&&p.removeChild(u)}function Ni(u){for(;u.firstChild;)u.removeChild(u.firstChild)}function co(u){var p=u.parentNode;p&&p.lastChild!==u&&p.appendChild(u)}function Di(u){var p=u.parentNode;p&&p.firstChild!==u&&p.insertBefore(u,p.firstChild)}function Dn(u,p){if(u.classList!==void 0)return u.classList.contains(p);var w=Mu(u);return w.length>0&&new RegExp("(^|\\s)"+p+"(\\s|$)").test(w)}function Lt(u,p){if(u.classList!==void 0)for(var w=v(p),U=0,Q=w.length;U<Q;U++)u.classList.add(w[U]);else if(!Dn(u,p)){var de=Mu(u);Fc(u,(de?de+" ":"")+p)}}function Wn(u,p){u.classList!==void 0?u.classList.remove(p):Fc(u,g((" "+Mu(u)+" ").replace(" "+p+" "," ")))}function Fc(u,p){u.className.baseVal===void 0?u.className=p:u.className.baseVal=p}function Mu(u){return u.correspondingElement&&(u=u.correspondingElement),u.className.baseVal===void 0?u.className:u.className.baseVal}function br(u,p){"opacity"in u.style?u.style.opacity=p:"filter"in u.style&&zy(u,p)}function zy(u,p){var w=!1,U="DXImageTransform.Microsoft.Alpha";try{w=u.filters.item(U)}catch{if(p===1)return}p=Math.round(p*100),w?(w.Enabled=p!==100,w.Opacity=p):u.style.filter+=" progid:"+U+"(opacity="+p+")"}function $c(u){for(var p=document.documentElement.style,w=0;w<u.length;w++)if(u[w]in p)return u[w];return!1}function fs(u,p,w){var U=p||new re(0,0);u.style[dl]=(pt.ie3d?"translate("+U.x+"px,"+U.y+"px)":"translate3d("+U.x+"px,"+U.y+"px,0)")+(w?" scale("+w+")":"")}function Hn(u,p){u._leaflet_pos=p,pt.any3d?fs(u,p):(u.style.left=p.x+"px",u.style.top=p.y+"px")}function Ro(u){return u._leaflet_pos||new re(0,0)}var la,zc,bm;if("onselectstart"in document)la=function(){Dt(window,"selectstart",hi)},zc=function(){_n(window,"selectstart",hi)};else{var jc=$c(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);la=function(){if(jc){var u=document.documentElement.style;bm=u[jc],u[jc]="none"}},zc=function(){jc&&(document.documentElement.style[jc]=bm,bm=void 0)}}function vr(){Dt(window,"dragstart",hi)}function fl(){_n(window,"dragstart",hi)}var Ru,vm;function Qt(u){for(;u.tabIndex===-1;)u=u.parentNode;u.style&&(Iu(),Ru=u,vm=u.style.outlineStyle,u.style.outlineStyle="none",Dt(window,"keydown",Iu))}function Iu(){Ru&&(Ru.style.outlineStyle=vm,Ru=void 0,vm=void 0,_n(window,"keydown",Iu))}function Uc(u){do u=u.parentNode;while((!u.offsetWidth||!u.offsetHeight)&&u!==document.body);return u}function Ou(u){var p=u.getBoundingClientRect();return{x:p.width/u.offsetWidth||1,y:p.height/u.offsetHeight||1,boundingClientRect:p}}var M1={__proto__:null,TRANSFORM:dl,TRANSITION:aa,TRANSITION_END:lo,get:Lc,getStyle:ul,create:an,remove:Cn,empty:Ni,toFront:co,toBack:Di,hasClass:Dn,addClass:Lt,removeClass:Wn,setClass:Fc,getClass:Mu,setOpacity:br,testProp:$c,setTransform:fs,setPosition:Hn,getPosition:Ro,get disableTextSelection(){return la},get enableTextSelection(){return zc},disableImageDrag:vr,enableImageDrag:fl,preventOutline:Qt,restoreOutline:Iu,getSizedParentNode:Uc,getScale:Ou};function Dt(u,p,w,U){if(p&&typeof p=="object")for(var Q in p)_m(u,Q,p[Q],w);else{p=v(p);for(var de=0,Pe=p.length;de<Pe;de++)_m(u,p[de],w,U)}return this}var Ir="_leaflet_events";function _n(u,p,w,U){if(arguments.length===1)wm(u),delete u[Ir];else if(p&&typeof p=="object")for(var Q in p)Hc(u,Q,p[Q],w);else if(p=v(p),arguments.length===2)wm(u,function(Le){return N(p,Le)!==-1});else for(var de=0,Pe=p.length;de<Pe;de++)Hc(u,p[de],w,U);return this}function wm(u,p){for(var w in u[Ir]){var U=w.split(/\d/)[0];(!p||p(U))&&Hc(u,U,null,null,w)}}var Wc={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function _m(u,p,w,U){var Q=p+c(w)+(U?"_"+c(U):"");if(u[Ir]&&u[Ir][Q])return this;var de=function(Le){return w.call(U||u,Le||window.event)},Pe=de;!pt.touchNative&&pt.pointer&&p.indexOf("touch")===0?de=Bu(u,p,de):pt.touch&&p==="dblclick"?de=N1(u,de):"addEventListener"in u?p==="touchstart"||p==="touchmove"||p==="wheel"||p==="mousewheel"?u.addEventListener(Wc[p]||p,de,pt.passiveEvents?{passive:!1}:!1):p==="mouseenter"||p==="mouseleave"?(de=function(Le){Le=Le||window.event,Cm(u,Le)&&Pe(Le)},u.addEventListener(Wc[p],de,!1)):u.addEventListener(p,Pe,!1):u.attachEvent("on"+p,de),u[Ir]=u[Ir]||{},u[Ir][Q]=de}function Hc(u,p,w,U,Q){Q=Q||p+c(w)+(U?"_"+c(U):"");var de=u[Ir]&&u[Ir][Q];if(!de)return this;!pt.touchNative&&pt.pointer&&p.indexOf("touch")===0?Fy(u,p,de):pt.touch&&p==="dblclick"?D1(u,de):"removeEventListener"in u?u.removeEventListener(Wc[p]||p,de,!1):u.detachEvent("on"+p,de),u[Ir][Q]=null}function hs(u){return u.stopPropagation?u.stopPropagation():u.originalEvent?u.originalEvent._stopped=!0:u.cancelBubble=!0,this}function ei(u){return _m(u,"wheel",hs),this}function qc(u){return Dt(u,"mousedown touchstart dblclick contextmenu",hs),u._leaflet_disable_click=!0,this}function hi(u){return u.preventDefault?u.preventDefault():u.returnValue=!1,this}function ms(u){return hi(u),hs(u),this}function km(u){if(u.composedPath)return u.composedPath();for(var p=[],w=u.target;w;)p.push(w),w=w.parentNode;return p}function xm(u,p){if(!p)return new re(u.clientX,u.clientY);var w=Ou(p),U=w.boundingClientRect;return new re((u.clientX-U.left)/w.x-p.clientLeft,(u.clientY-U.top)/w.y-p.clientTop)}var Em=pt.linux&&pt.chrome?window.devicePixelRatio:pt.mac?window.devicePixelRatio*3:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function jy(u){return pt.edge?u.wheelDeltaY/2:u.deltaY&&u.deltaMode===0?-u.deltaY/Em:u.deltaY&&u.deltaMode===1?-u.deltaY*20:u.deltaY&&u.deltaMode===2?-u.deltaY*60:u.deltaX||u.deltaZ?0:u.wheelDelta?(u.wheelDeltaY||u.wheelDelta)/2:u.detail&&Math.abs(u.detail)<32765?-u.detail*20:u.detail?u.detail/-32765*60:0}function Cm(u,p){var w=p.relatedTarget;if(!w)return!0;try{for(;w&&w!==u;)w=w.parentNode}catch{return!1}return w!==u}var R1={__proto__:null,on:Dt,off:_n,stopPropagation:hs,disableScrollPropagation:ei,disableClickPropagation:qc,preventDefault:hi,stop:ms,getPropagationPath:km,getMousePosition:xm,getWheelDelta:jy,isExternalTarget:Cm,addListener:Dt,removeListener:_n},Kc=te.extend({run:function(u,p,w,U){this.stop(),this._el=u,this._inProgress=!0,this._duration=w||.25,this._easeOutPower=1/Math.max(U||.5,.2),this._startPos=Ro(u),this._offset=p.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=I(this._animate,this),this._step()},_step:function(u){var p=+new Date-this._startTime,w=this._duration*1e3;p<w?this._runFrame(this._easeOut(p/w),u):(this._runFrame(1),this._complete())},_runFrame:function(u,p){var w=this._startPos.add(this._offset.multiplyBy(u));p&&w._round(),Hn(this._el,w),this.fire("step")},_complete:function(){O(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(u){return 1-Math.pow(1-u,this._easeOutPower)}}),Rt=te.extend({options:{crs:D,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(u,p){p=y(this,p),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(u),this._initLayout(),this._onResize=a(this._onResize,this),this._initEvents(),p.maxBounds&&this.setMaxBounds(p.maxBounds),p.zoom!==void 0&&(this._zoom=this._limitZoom(p.zoom)),p.center&&p.zoom!==void 0&&this.setView(Y(p.center),p.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=aa&&pt.any3d&&!pt.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),Dt(this._proxy,lo,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(u,p,w){if(p=p===void 0?this._zoom:this._limitZoom(p),u=this._limitCenter(Y(u),p,this.options.maxBounds),w=w||{},this._stop(),this._loaded&&!w.reset&&w!==!0){w.animate!==void 0&&(w.zoom=r({animate:w.animate},w.zoom),w.pan=r({animate:w.animate,duration:w.duration},w.pan));var U=this._zoom!==p?this._tryAnimatedZoom&&this._tryAnimatedZoom(u,p,w.zoom):this._tryAnimatedPan(u,w.pan);if(U)return clearTimeout(this._sizeTimer),this}return this._resetView(u,p,w.pan&&w.pan.noMoveStart),this},setZoom:function(u,p){return this._loaded?this.setView(this.getCenter(),u,{zoom:p}):(this._zoom=u,this)},zoomIn:function(u,p){return u=u||(pt.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+u,p)},zoomOut:function(u,p){return u=u||(pt.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-u,p)},setZoomAround:function(u,p,w){var U=this.getZoomScale(p),Q=this.getSize().divideBy(2),de=u instanceof re?u:this.latLngToContainerPoint(u),Pe=de.subtract(Q).multiplyBy(1-1/U),Le=this.containerPointToLatLng(Q.add(Pe));return this.setView(Le,p,{zoom:w})},_getBoundsCenterZoom:function(u,p){p=p||{},u=u.getBounds?u.getBounds():ee(u);var w=ce(p.paddingTopLeft||p.padding||[0,0]),U=ce(p.paddingBottomRight||p.padding||[0,0]),Q=this.getBoundsZoom(u,!1,w.add(U));if(Q=typeof p.maxZoom=="number"?Math.min(p.maxZoom,Q):Q,Q===1/0)return{center:u.getCenter(),zoom:Q};var de=U.subtract(w).divideBy(2),Pe=this.project(u.getSouthWest(),Q),Le=this.project(u.getNorthEast(),Q),je=this.unproject(Pe.add(Le).divideBy(2).add(de),Q);return{center:je,zoom:Q}},fitBounds:function(u,p){if(u=ee(u),!u.isValid())throw new Error("Bounds are not valid.");var w=this._getBoundsCenterZoom(u,p);return this.setView(w.center,w.zoom,p)},fitWorld:function(u){return this.fitBounds([[-90,-180],[90,180]],u)},panTo:function(u,p){return this.setView(u,this._zoom,{pan:p})},panBy:function(u,p){if(u=ce(u).round(),p=p||{},!u.x&&!u.y)return this.fire("moveend");if(p.animate!==!0&&!this.getSize().contains(u))return this._resetView(this.unproject(this.project(this.getCenter()).add(u)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new Kc,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),p.noMoveStart||this.fire("movestart"),p.animate!==!1){Lt(this._mapPane,"leaflet-pan-anim");var w=this._getMapPanePos().subtract(u).round();this._panAnim.run(this._mapPane,w,p.duration||.25,p.easeLinearity)}else this._rawPanBy(u),this.fire("move").fire("moveend");return this},flyTo:function(u,p,w){if(w=w||{},w.animate===!1||!pt.any3d)return this.setView(u,p,w);this._stop();var U=this.project(this.getCenter()),Q=this.project(u),de=this.getSize(),Pe=this._zoom;u=Y(u),p=p===void 0?Pe:p;var Le=Math.max(de.x,de.y),je=Le*this.getZoomScale(Pe,p),Ze=Q.distanceTo(U)||1,dt=1.42,At=dt*dt;function Yt(mi){var cb=mi?-1:1,sSe=mi?je:Le,aSe=je*je-Le*Le+cb*At*At*Ze*Ze,lSe=2*sSe*At*Ze,U1=aSe/lSe,qR=Math.sqrt(U1*U1+1)-U1,cSe=qR<1e-9?-18:Math.log(qR);return cSe}function tr(mi){return(Math.exp(mi)-Math.exp(-mi))/2}function xi(mi){return(Math.exp(mi)+Math.exp(-mi))/2}function ho(mi){return tr(mi)/xi(mi)}var _r=Yt(0);function ju(mi){return Le*(xi(_r)/xi(_r+dt*mi))}function nSe(mi){return Le*(xi(_r)*ho(_r+dt*mi)-tr(_r))/At}function iSe(mi){return 1-Math.pow(1-mi,1.5)}var rSe=Date.now(),WR=(Yt(1)-_r)/dt,oSe=w.duration?1e3*w.duration:1e3*WR*.8;function HR(){var mi=(Date.now()-rSe)/oSe,cb=iSe(mi)*WR;mi<=1?(this._flyToFrame=I(HR,this),this._move(this.unproject(U.add(Q.subtract(U).multiplyBy(nSe(cb)/Ze)),Pe),this.getScaleZoom(Le/ju(cb),Pe),{flyTo:!0})):this._move(u,p)._moveEnd(!0)}return this._moveStart(!0,w.noMoveStart),HR.call(this),this},flyToBounds:function(u,p){var w=this._getBoundsCenterZoom(u,p);return this.flyTo(w.center,w.zoom,p)},setMaxBounds:function(u){return u=ee(u),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),u.isValid()?(this.options.maxBounds=u,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},setMinZoom:function(u){var p=this.options.minZoom;return this.options.minZoom=u,this._loaded&&p!==u&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(u):this},setMaxZoom:function(u){var p=this.options.maxZoom;return this.options.maxZoom=u,this._loaded&&p!==u&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(u):this},panInsideBounds:function(u,p){this._enforcingBounds=!0;var w=this.getCenter(),U=this._limitCenter(w,this._zoom,ee(u));return w.equals(U)||this.panTo(U,p),this._enforcingBounds=!1,this},panInside:function(u,p){p=p||{};var w=ce(p.paddingTopLeft||p.padding||[0,0]),U=ce(p.paddingBottomRight||p.padding||[0,0]),Q=this.project(this.getCenter()),de=this.project(u),Pe=this.getPixelBounds(),Le=z([Pe.min.add(w),Pe.max.subtract(U)]),je=Le.getSize();if(!Le.contains(de)){this._enforcingBounds=!0;var Ze=de.subtract(Le.getCenter()),dt=Le.extend(de).getSize().subtract(je);Q.x+=Ze.x<0?-dt.x:dt.x,Q.y+=Ze.y<0?-dt.y:dt.y,this.panTo(this.unproject(Q),p),this._enforcingBounds=!1}return this},invalidateSize:function(u){if(!this._loaded)return this;u=r({animate:!1,pan:!0},u===!0?{animate:!0}:u);var p=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var w=this.getSize(),U=p.divideBy(2).round(),Q=w.divideBy(2).round(),de=U.subtract(Q);return!de.x&&!de.y?this:(u.animate&&u.pan?this.panBy(de):(u.pan&&this._rawPanBy(de),this.fire("move"),u.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(a(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:p,newSize:w}))},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(u){if(u=this._locateOptions=r({timeout:1e4,watch:!1},u),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var p=a(this._handleGeolocationResponse,this),w=a(this._handleGeolocationError,this);return u.watch?this._locationWatchId=navigator.geolocation.watchPosition(p,w,u):navigator.geolocation.getCurrentPosition(p,w,u),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(u){if(this._container._leaflet_id){var p=u.code,w=u.message||(p===1?"permission denied":p===2?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:p,message:"Geolocation error: "+w+"."})}},_handleGeolocationResponse:function(u){if(this._container._leaflet_id){var p=u.coords.latitude,w=u.coords.longitude,U=new K(p,w),Q=U.toBounds(u.coords.accuracy*2),de=this._locateOptions;if(de.setView){var Pe=this.getBoundsZoom(Q);this.setView(U,de.maxZoom?Math.min(Pe,de.maxZoom):Pe)}var Le={latlng:U,bounds:Q,timestamp:u.timestamp};for(var je in u.coords)typeof u.coords[je]=="number"&&(Le[je]=u.coords[je]);this.fire("locationfound",Le)}},addHandler:function(u,p){if(!p)return this;var w=this[u]=new p(this);return this._handlers.push(w),this.options[u]&&w.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch{this._container._leaflet_id=void 0,this._containerId=void 0}this._locationWatchId!==void 0&&this.stopLocate(),this._stop(),Cn(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(O(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload");var u;for(u in this._layers)this._layers[u].remove();for(u in this._panes)Cn(this._panes[u]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(u,p){var w="leaflet-pane"+(u?" leaflet-"+u.replace("Pane","")+"-pane":""),U=an("div",w,p||this._mapPane);return u&&(this._panes[u]=U),U},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var u=this.getPixelBounds(),p=this.unproject(u.getBottomLeft()),w=this.unproject(u.getTopRight());return new G(p,w)},getMinZoom:function(){return this.options.minZoom===void 0?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return this.options.maxZoom===void 0?this._layersMaxZoom===void 0?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(u,p,w){u=ee(u),w=ce(w||[0,0]);var U=this.getZoom()||0,Q=this.getMinZoom(),de=this.getMaxZoom(),Pe=u.getNorthWest(),Le=u.getSouthEast(),je=this.getSize().subtract(w),Ze=z(this.project(Le,U),this.project(Pe,U)).getSize(),dt=pt.any3d?this.options.zoomSnap:1,At=je.x/Ze.x,Yt=je.y/Ze.y,tr=p?Math.max(At,Yt):Math.min(At,Yt);return U=this.getScaleZoom(tr,U),dt&&(U=Math.round(U/(dt/100))*(dt/100),U=p?Math.ceil(U/dt)*dt:Math.floor(U/dt)*dt),Math.max(Q,Math.min(de,U))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new re(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(u,p){var w=this._getTopLeftPoint(u,p);return new se(w,w.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(u){return this.options.crs.getProjectedBounds(u===void 0?this.getZoom():u)},getPane:function(u){return typeof u=="string"?this._panes[u]:u},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(u,p){var w=this.options.crs;return p=p===void 0?this._zoom:p,w.scale(u)/w.scale(p)},getScaleZoom:function(u,p){var w=this.options.crs;p=p===void 0?this._zoom:p;var U=w.zoom(u*w.scale(p));return isNaN(U)?1/0:U},project:function(u,p){return p=p===void 0?this._zoom:p,this.options.crs.latLngToPoint(Y(u),p)},unproject:function(u,p){return p=p===void 0?this._zoom:p,this.options.crs.pointToLatLng(ce(u),p)},layerPointToLatLng:function(u){var p=ce(u).add(this.getPixelOrigin());return this.unproject(p)},latLngToLayerPoint:function(u){var p=this.project(Y(u))._round();return p._subtract(this.getPixelOrigin())},wrapLatLng:function(u){return this.options.crs.wrapLatLng(Y(u))},wrapLatLngBounds:function(u){return this.options.crs.wrapLatLngBounds(ee(u))},distance:function(u,p){return this.options.crs.distance(Y(u),Y(p))},containerPointToLayerPoint:function(u){return ce(u).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(u){return ce(u).add(this._getMapPanePos())},containerPointToLatLng:function(u){var p=this.containerPointToLayerPoint(ce(u));return this.layerPointToLatLng(p)},latLngToContainerPoint:function(u){return this.layerPointToContainerPoint(this.latLngToLayerPoint(Y(u)))},mouseEventToContainerPoint:function(u){return xm(u,this._container)},mouseEventToLayerPoint:function(u){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(u))},mouseEventToLatLng:function(u){return this.layerPointToLatLng(this.mouseEventToLayerPoint(u))},_initContainer:function(u){var p=this._container=Lc(u);if(p){if(p._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");Dt(p,"scroll",this._onScroll,this),this._containerId=c(p)},_initLayout:function(){var u=this._container;this._fadeAnimated=this.options.fadeAnimation&&pt.any3d,Lt(u,"leaflet-container"+(pt.touch?" leaflet-touch":"")+(pt.retina?" leaflet-retina":"")+(pt.ielt9?" leaflet-oldie":"")+(pt.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var p=ul(u,"position");p!=="absolute"&&p!=="relative"&&p!=="fixed"&&p!=="sticky"&&(u.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var u=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),Hn(this._mapPane,new re(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(Lt(u.markerPane,"leaflet-zoom-hide"),Lt(u.shadowPane,"leaflet-zoom-hide"))},_resetView:function(u,p,w){Hn(this._mapPane,new re(0,0));var U=!this._loaded;this._loaded=!0,p=this._limitZoom(p),this.fire("viewprereset");var Q=this._zoom!==p;this._moveStart(Q,w)._move(u,p)._moveEnd(Q),this.fire("viewreset"),U&&this.fire("load")},_moveStart:function(u,p){return u&&this.fire("zoomstart"),p||this.fire("movestart"),this},_move:function(u,p,w,U){p===void 0&&(p=this._zoom);var Q=this._zoom!==p;return this._zoom=p,this._lastCenter=u,this._pixelOrigin=this._getNewPixelOrigin(u),U?w&&w.pinch&&this.fire("zoom",w):((Q||w&&w.pinch)&&this.fire("zoom",w),this.fire("move",w)),this},_moveEnd:function(u){return u&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return O(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(u){Hn(this._mapPane,this._getMapPanePos().subtract(u))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(u){this._targets={},this._targets[c(this._container)]=this;var p=u?_n:Dt;p(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&p(window,"resize",this._onResize,this),pt.any3d&&this.options.transform3DLimit&&(u?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){O(this._resizeRequest),this._resizeRequest=I(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var u=this._getMapPanePos();Math.max(Math.abs(u.x),Math.abs(u.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(u,p){for(var w=[],U,Q=p==="mouseout"||p==="mouseover",de=u.target||u.srcElement,Pe=!1;de;){if(U=this._targets[c(de)],U&&(p==="click"||p==="preclick")&&this._draggableMoved(U)){Pe=!0;break}if(U&&U.listens(p,!0)&&(Q&&!Cm(de,u)||(w.push(U),Q))||de===this._container)break;de=de.parentNode}return!w.length&&!Pe&&!Q&&this.listens(p,!0)&&(w=[this]),w},_isClickDisabled:function(u){for(;u&&u!==this._container;){if(u._leaflet_disable_click)return!0;u=u.parentNode}},_handleDOMEvent:function(u){var p=u.target||u.srcElement;if(!(!this._loaded||p._leaflet_disable_events||u.type==="click"&&this._isClickDisabled(p))){var w=u.type;w==="mousedown"&&Qt(p),this._fireDOMEvent(u,w)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(u,p,w){if(u.type==="click"){var U=r({},u);U.type="preclick",this._fireDOMEvent(U,U.type,w)}var Q=this._findEventTargets(u,p);if(w){for(var de=[],Pe=0;Pe<w.length;Pe++)w[Pe].listens(p,!0)&&de.push(w[Pe]);Q=de.concat(Q)}if(Q.length){p==="contextmenu"&&hi(u);var Le=Q[0],je={originalEvent:u};if(u.type!=="keypress"&&u.type!=="keydown"&&u.type!=="keyup"){var Ze=Le.getLatLng&&(!Le._radius||Le._radius<=10);je.containerPoint=Ze?this.latLngToContainerPoint(Le.getLatLng()):this.mouseEventToContainerPoint(u),je.layerPoint=this.containerPointToLayerPoint(je.containerPoint),je.latlng=Ze?Le.getLatLng():this.layerPointToLatLng(je.layerPoint)}for(Pe=0;Pe<Q.length;Pe++)if(Q[Pe].fire(p,je,!0),je.originalEvent._stopped||Q[Pe].options.bubblingMouseEvents===!1&&N(this._mouseEvents,p)!==-1)return}},_draggableMoved:function(u){return u=u.dragging&&u.dragging.enabled()?u:this,u.dragging&&u.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var u=0,p=this._handlers.length;u<p;u++)this._handlers[u].disable()},whenReady:function(u,p){return this._loaded?u.call(p||this,{target:this}):this.on("load",u,p),this},_getMapPanePos:function(){return Ro(this._mapPane)||new re(0,0)},_moved:function(){var u=this._getMapPanePos();return u&&!u.equals([0,0])},_getTopLeftPoint:function(u,p){var w=u&&p!==void 0?this._getNewPixelOrigin(u,p):this.getPixelOrigin();return w.subtract(this._getMapPanePos())},_getNewPixelOrigin:function(u,p){var w=this.getSize()._divideBy(2);return this.project(u,p)._subtract(w)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(u,p,w){var U=this._getNewPixelOrigin(w,p);return this.project(u,p)._subtract(U)},_latLngBoundsToNewLayerBounds:function(u,p,w){var U=this._getNewPixelOrigin(w,p);return z([this.project(u.getSouthWest(),p)._subtract(U),this.project(u.getNorthWest(),p)._subtract(U),this.project(u.getSouthEast(),p)._subtract(U),this.project(u.getNorthEast(),p)._subtract(U)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(u){return this.latLngToLayerPoint(u).subtract(this._getCenterLayerPoint())},_limitCenter:function(u,p,w){if(!w)return u;var U=this.project(u,p),Q=this.getSize().divideBy(2),de=new se(U.subtract(Q),U.add(Q)),Pe=this._getBoundsOffset(de,w,p);return Math.abs(Pe.x)<=1&&Math.abs(Pe.y)<=1?u:this.unproject(U.add(Pe),p)},_limitOffset:function(u,p){if(!p)return u;var w=this.getPixelBounds(),U=new se(w.min.add(u),w.max.add(u));return u.add(this._getBoundsOffset(U,p))},_getBoundsOffset:function(u,p,w){var U=z(this.project(p.getNorthEast(),w),this.project(p.getSouthWest(),w)),Q=U.min.subtract(u.min),de=U.max.subtract(u.max),Pe=this._rebound(Q.x,-de.x),Le=this._rebound(Q.y,-de.y);return new re(Pe,Le)},_rebound:function(u,p){return u+p>0?Math.round(u-p)/2:Math.max(0,Math.ceil(u))-Math.max(0,Math.floor(p))},_limitZoom:function(u){var p=this.getMinZoom(),w=this.getMaxZoom(),U=pt.any3d?this.options.zoomSnap:1;return U&&(u=Math.round(u/U)*U),Math.max(p,Math.min(w,u))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){Wn(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(u,p){var w=this._getCenterOffset(u)._trunc();return(p&&p.animate)!==!0&&!this.getSize().contains(w)?!1:(this.panBy(w,p),!0)},_createAnimProxy:function(){var u=this._proxy=an("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(u),this.on("zoomanim",function(p){var w=dl,U=this._proxy.style[w];fs(this._proxy,this.project(p.center,p.zoom),this.getZoomScale(p.zoom,1)),U===this._proxy.style[w]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){Cn(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var u=this.getCenter(),p=this.getZoom();fs(this._proxy,this.project(u,p),this.getZoomScale(p,1))},_catchTransitionEnd:function(u){this._animatingZoom&&u.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(u,p,w){if(this._animatingZoom)return!0;if(w=w||{},!this._zoomAnimated||w.animate===!1||this._nothingToAnimate()||Math.abs(p-this._zoom)>this.options.zoomAnimationThreshold)return!1;var U=this.getZoomScale(p),Q=this._getCenterOffset(u)._divideBy(1-1/U);return w.animate!==!0&&!this.getSize().contains(Q)?!1:(I(function(){this._moveStart(!0,w.noMoveStart||!1)._animateZoom(u,p,!0)},this),!0)},_animateZoom:function(u,p,w,U){this._mapPane&&(w&&(this._animatingZoom=!0,this._animateToCenter=u,this._animateToZoom=p,Lt(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:u,zoom:p,noUpdate:U}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(a(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&Wn(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}});function I1(u,p){return new Rt(u,p)}var Or=X.extend({options:{position:"topright"},initialize:function(u){y(this,u)},getPosition:function(){return this.options.position},setPosition:function(u){var p=this._map;return p&&p.removeControl(this),this.options.position=u,p&&p.addControl(this),this},getContainer:function(){return this._container},addTo:function(u){this.remove(),this._map=u;var p=this._container=this.onAdd(u),w=this.getPosition(),U=u._controlCorners[w];return Lt(p,"leaflet-control"),w.indexOf("bottom")!==-1?U.insertBefore(p,U.firstChild):U.appendChild(p),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(Cn(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(u){this._map&&u&&u.screenX>0&&u.screenY>0&&this._map.getContainer().focus()}}),hl=function(u){return new Or(u)};Rt.include({addControl:function(u){return u.addTo(this),this},removeControl:function(u){return u.remove(),this},_initControlPos:function(){var u=this._controlCorners={},p="leaflet-",w=this._controlContainer=an("div",p+"control-container",this._container);function U(Q,de){var Pe=p+Q+" "+p+de;u[Q+de]=an("div",Pe,w)}U("top","left"),U("top","right"),U("bottom","left"),U("bottom","right")},_clearControlPos:function(){for(var u in this._controlCorners)Cn(this._controlCorners[u]);Cn(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var Uy=Or.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(u,p,w,U){return w<U?-1:U<w?1:0}},initialize:function(u,p,w){y(this,w),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1;for(var U in u)this._addLayer(u[U],U);for(U in p)this._addLayer(p[U],U,!0)},onAdd:function(u){this._initLayout(),this._update(),this._map=u,u.on("zoomend",this._checkDisabledLayers,this);for(var p=0;p<this._layers.length;p++)this._layers[p].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(u){return Or.prototype.addTo.call(this,u),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var u=0;u<this._layers.length;u++)this._layers[u].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(u,p){return this._addLayer(u,p),this._map?this._update():this},addOverlay:function(u,p){return this._addLayer(u,p,!0),this._map?this._update():this},removeLayer:function(u){u.off("add remove",this._onLayerChange,this);var p=this._getLayer(c(u));return p&&this._layers.splice(this._layers.indexOf(p),1),this._map?this._update():this},expand:function(){Lt(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var u=this._map.getSize().y-(this._container.offsetTop+50);return u<this._section.clientHeight?(Lt(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=u+"px"):Wn(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return Wn(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var u="leaflet-control-layers",p=this._container=an("div",u),w=this.options.collapsed;p.setAttribute("aria-haspopup",!0),qc(p),ei(p);var U=this._section=an("section",u+"-list");w&&(this._map.on("click",this.collapse,this),Dt(p,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var Q=this._layersLink=an("a",u+"-toggle",p);Q.href="#",Q.title="Layers",Q.setAttribute("role","button"),Dt(Q,{keydown:function(de){de.keyCode===13&&this._expandSafely()},click:function(de){hi(de),this._expandSafely()}},this),w||this.expand(),this._baseLayersList=an("div",u+"-base",U),this._separator=an("div",u+"-separator",U),this._overlaysList=an("div",u+"-overlays",U),p.appendChild(U)},_getLayer:function(u){for(var p=0;p<this._layers.length;p++)if(this._layers[p]&&c(this._layers[p].layer)===u)return this._layers[p]},_addLayer:function(u,p,w){this._map&&u.on("add remove",this._onLayerChange,this),this._layers.push({layer:u,name:p,overlay:w}),this.options.sortLayers&&this._layers.sort(a(function(U,Q){return this.options.sortFunction(U.layer,Q.layer,U.name,Q.name)},this)),this.options.autoZIndex&&u.setZIndex&&(this._lastZIndex++,u.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;Ni(this._baseLayersList),Ni(this._overlaysList),this._layerControlInputs=[];var u,p,w,U,Q=0;for(w=0;w<this._layers.length;w++)U=this._layers[w],this._addItem(U),p=p||U.overlay,u=u||!U.overlay,Q+=U.overlay?0:1;return this.options.hideSingleBase&&(u=u&&Q>1,this._baseLayersList.style.display=u?"":"none"),this._separator.style.display=p&&u?"":"none",this},_onLayerChange:function(u){this._handlingClick||this._update();var p=this._getLayer(c(u.target)),w=p.overlay?u.type==="add"?"overlayadd":"overlayremove":u.type==="add"?"baselayerchange":null;w&&this._map.fire(w,p)},_createRadioElement:function(u,p){var w='<input type="radio" class="leaflet-control-layers-selector" name="'+u+'"'+(p?' checked="checked"':"")+"/>",U=document.createElement("div");return U.innerHTML=w,U.firstChild},_addItem:function(u){var p=document.createElement("label"),w=this._map.hasLayer(u.layer),U;u.overlay?(U=document.createElement("input"),U.type="checkbox",U.className="leaflet-control-layers-selector",U.defaultChecked=w):U=this._createRadioElement("leaflet-base-layers_"+c(this),w),this._layerControlInputs.push(U),U.layerId=c(u.layer),Dt(U,"click",this._onInputClick,this);var Q=document.createElement("span");Q.innerHTML=" "+u.name;var de=document.createElement("span");p.appendChild(de),de.appendChild(U),de.appendChild(Q);var Pe=u.overlay?this._overlaysList:this._baseLayersList;return Pe.appendChild(p),this._checkDisabledLayers(),p},_onInputClick:function(){if(!this._preventClick){var u=this._layerControlInputs,p,w,U=[],Q=[];this._handlingClick=!0;for(var de=u.length-1;de>=0;de--)p=u[de],w=this._getLayer(p.layerId).layer,p.checked?U.push(w):p.checked||Q.push(w);for(de=0;de<Q.length;de++)this._map.hasLayer(Q[de])&&this._map.removeLayer(Q[de]);for(de=0;de<U.length;de++)this._map.hasLayer(U[de])||this._map.addLayer(U[de]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var u=this._layerControlInputs,p,w,U=this._map.getZoom(),Q=u.length-1;Q>=0;Q--)p=u[Q],w=this._getLayer(p.layerId).layer,p.disabled=w.options.minZoom!==void 0&&U<w.options.minZoom||w.options.maxZoom!==void 0&&U>w.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var u=this._section;this._preventClick=!0,Dt(u,"click",hi),this.expand();var p=this;setTimeout(function(){_n(u,"click",hi),p._preventClick=!1})}}),Wy=function(u,p,w){return new Uy(u,p,w)},Sm=Or.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">&#x2212;</span>',zoomOutTitle:"Zoom out"},onAdd:function(u){var p="leaflet-control-zoom",w=an("div",p+" leaflet-bar"),U=this.options;return this._zoomInButton=this._createButton(U.zoomInText,U.zoomInTitle,p+"-in",w,this._zoomIn),this._zoomOutButton=this._createButton(U.zoomOutText,U.zoomOutTitle,p+"-out",w,this._zoomOut),this._updateDisabled(),u.on("zoomend zoomlevelschange",this._updateDisabled,this),w},onRemove:function(u){u.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(u){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(u.shiftKey?3:1))},_zoomOut:function(u){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(u.shiftKey?3:1))},_createButton:function(u,p,w,U,Q){var de=an("a",w,U);return de.innerHTML=u,de.href="#",de.title=p,de.setAttribute("role","button"),de.setAttribute("aria-label",p),qc(de),Dt(de,"click",ms),Dt(de,"click",Q,this),Dt(de,"click",this._refocusOnMap,this),de},_updateDisabled:function(){var u=this._map,p="leaflet-disabled";Wn(this._zoomInButton,p),Wn(this._zoomOutButton,p),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||u._zoom===u.getMinZoom())&&(Lt(this._zoomOutButton,p),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||u._zoom===u.getMaxZoom())&&(Lt(this._zoomInButton,p),this._zoomInButton.setAttribute("aria-disabled","true"))}});Rt.mergeOptions({zoomControl:!0}),Rt.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new Sm,this.addControl(this.zoomControl))});var ml=function(u){return new Sm(u)},Hy=Or.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(u){var p="leaflet-control-scale",w=an("div",p),U=this.options;return this._addScales(U,p+"-line",w),u.on(U.updateWhenIdle?"moveend":"move",this._update,this),u.whenReady(this._update,this),w},onRemove:function(u){u.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(u,p,w){u.metric&&(this._mScale=an("div",p,w)),u.imperial&&(this._iScale=an("div",p,w))},_update:function(){var u=this._map,p=u.getSize().y/2,w=u.distance(u.containerPointToLatLng([0,p]),u.containerPointToLatLng([this.options.maxWidth,p]));this._updateScales(w)},_updateScales:function(u){this.options.metric&&u&&this._updateMetric(u),this.options.imperial&&u&&this._updateImperial(u)},_updateMetric:function(u){var p=this._getRoundNum(u),w=p<1e3?p+" m":p/1e3+" km";this._updateScale(this._mScale,w,p/u)},_updateImperial:function(u){var p=u*3.2808399,w,U,Q;p>5280?(w=p/5280,U=this._getRoundNum(w),this._updateScale(this._iScale,U+" mi",U/w)):(Q=this._getRoundNum(p),this._updateScale(this._iScale,Q+" ft",Q/p))},_updateScale:function(u,p,w){u.style.width=Math.round(this.options.maxWidth*w)+"px",u.innerHTML=p},_getRoundNum:function(u){var p=Math.pow(10,(Math.floor(u)+"").length-1),w=u/p;return w=w>=10?10:w>=5?5:w>=3?3:w>=2?2:1,p*w}}),Lu=function(u){return new Hy(u)},qy='<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>',Am=Or.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(pt.inlineSvg?qy+" ":"")+"Leaflet</a>"},initialize:function(u){y(this,u),this._attributions={}},onAdd:function(u){u.attributionControl=this,this._container=an("div","leaflet-control-attribution"),qc(this._container);for(var p in u._layers)u._layers[p].getAttribution&&this.addAttribution(u._layers[p].getAttribution());return this._update(),u.on("layeradd",this._addAttribution,this),this._container},onRemove:function(u){u.off("layeradd",this._addAttribution,this)},_addAttribution:function(u){u.layer.getAttribution&&(this.addAttribution(u.layer.getAttribution()),u.layer.once("remove",function(){this.removeAttribution(u.layer.getAttribution())},this))},setPrefix:function(u){return this.options.prefix=u,this._update(),this},addAttribution:function(u){return u?(this._attributions[u]||(this._attributions[u]=0),this._attributions[u]++,this._update(),this):this},removeAttribution:function(u){return u?(this._attributions[u]&&(this._attributions[u]--,this._update()),this):this},_update:function(){if(this._map){var u=[];for(var p in this._attributions)this._attributions[p]&&u.push(p);var w=[];this.options.prefix&&w.push(this.options.prefix),u.length&&w.push(u.join(", ")),this._container.innerHTML=w.join(' <span aria-hidden="true">|</span> ')}}});Rt.mergeOptions({attributionControl:!0}),Rt.addInitHook(function(){this.options.attributionControl&&new Am().addTo(this)});var O1=function(u){return new Am(u)};Or.Layers=Uy,Or.Zoom=Sm,Or.Scale=Hy,Or.Attribution=Am,hl.layers=Wy,hl.zoom=ml,hl.scale=Lu,hl.attribution=O1;var uo=X.extend({initialize:function(u){this._map=u},enable:function(){return this._enabled?this:(this._enabled=!0,this.addHooks(),this)},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});uo.addTo=function(u,p){return u.addHandler(p,this),this};var L1={Events:ue},pl=pt.touch?"touchstart mousedown":"mousedown",ps=te.extend({options:{clickTolerance:3},initialize:function(u,p,w,U){y(this,U),this._element=u,this._dragStartTarget=p||u,this._preventOutline=w},enable:function(){this._enabled||(Dt(this._dragStartTarget,pl,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(ps._dragging===this&&this.finishDrag(!0),_n(this._dragStartTarget,pl,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(u){if(this._enabled&&(this._moved=!1,!Dn(this._element,"leaflet-zoom-anim"))){if(u.touches&&u.touches.length!==1){ps._dragging===this&&this.finishDrag();return}if(!(ps._dragging||u.shiftKey||u.which!==1&&u.button!==1&&!u.touches)&&(ps._dragging=this,this._preventOutline&&Qt(this._element),vr(),la(),!this._moving)){this.fire("down");var p=u.touches?u.touches[0]:u,w=Uc(this._element);this._startPoint=new re(p.clientX,p.clientY),this._startPos=Ro(this._element),this._parentScale=Ou(w);var U=u.type==="mousedown";Dt(document,U?"mousemove":"touchmove",this._onMove,this),Dt(document,U?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(u){if(this._enabled){if(u.touches&&u.touches.length>1){this._moved=!0;return}var p=u.touches&&u.touches.length===1?u.touches[0]:u,w=new re(p.clientX,p.clientY)._subtract(this._startPoint);!w.x&&!w.y||Math.abs(w.x)+Math.abs(w.y)<this.options.clickTolerance||(w.x/=this._parentScale.x,w.y/=this._parentScale.y,hi(u),this._moved||(this.fire("dragstart"),this._moved=!0,Lt(document.body,"leaflet-dragging"),this._lastTarget=u.target||u.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),Lt(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(w),this._moving=!0,this._lastEvent=u,this._updatePosition())}},_updatePosition:function(){var u={originalEvent:this._lastEvent};this.fire("predrag",u),Hn(this._element,this._newPos),this.fire("drag",u)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(u){Wn(document.body,"leaflet-dragging"),this._lastTarget&&(Wn(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),_n(document,"mousemove touchmove",this._onMove,this),_n(document,"mouseup touchend touchcancel",this._onUp,this),fl(),zc();var p=this._moved&&this._moving;this._moving=!1,ps._dragging=!1,p&&this.fire("dragend",{noInertia:u,distance:this._newPos.distanceTo(this._startPos)})}});function Ky(u,p,w){var U,Q=[1,4,2,8],de,Pe,Le,je,Ze,dt,At,Yt;for(de=0,dt=u.length;de<dt;de++)u[de]._code=ca(u[de],p);for(Le=0;Le<4;Le++){for(At=Q[Le],U=[],de=0,dt=u.length,Pe=dt-1;de<dt;Pe=de++)je=u[de],Ze=u[Pe],je._code&At?Ze._code&At||(Yt=gl(Ze,je,At,p,w),Yt._code=ca(Yt,p),U.push(Yt)):(Ze._code&At&&(Yt=gl(Ze,je,At,p,w),Yt._code=ca(Yt,p),U.push(Yt)),U.push(je));u=U}return u}function Gy(u,p){var w,U,Q,de,Pe,Le,je,Ze,dt;if(!u||u.length===0)throw new Error("latlngs not passed");er(u)||(console.warn("latlngs are not flat! Only the first ring will be used"),u=u[0]);var At=Y([0,0]),Yt=ee(u),tr=Yt.getNorthWest().distanceTo(Yt.getSouthWest())*Yt.getNorthEast().distanceTo(Yt.getNorthWest());tr<1700&&(At=Tm(u));var xi=u.length,ho=[];for(w=0;w<xi;w++){var _r=Y(u[w]);ho.push(p.project(Y([_r.lat-At.lat,_r.lng-At.lng])))}for(Le=je=Ze=0,w=0,U=xi-1;w<xi;U=w++)Q=ho[w],de=ho[U],Pe=Q.y*de.x-de.y*Q.x,je+=(Q.x+de.x)*Pe,Ze+=(Q.y+de.y)*Pe,Le+=Pe*3;Le===0?dt=ho[0]:dt=[je/Le,Ze/Le];var ju=p.unproject(ce(dt));return Y([ju.lat+At.lat,ju.lng+At.lng])}function Tm(u){for(var p=0,w=0,U=0,Q=0;Q<u.length;Q++){var de=Y(u[Q]);p+=de.lat,w+=de.lng,U++}return Y([p/U,w/U])}var F1={__proto__:null,clipPolygon:Ky,polygonCenter:Gy,centroid:Tm};function Pm(u,p){if(!p||!u.length)return u.slice();var w=p*p;return u=Zy(u,w),u=$1(u,w),u}function Bm(u,p,w){return Math.sqrt(Gc(u,p,w,!0))}function Yy(u,p,w){return Gc(u,p,w)}function $1(u,p){var w=u.length,U=typeof Uint8Array<"u"?Uint8Array:Array,Q=new U(w);Q[0]=Q[w-1]=1,Nm(u,Q,p,0,w-1);var de,Pe=[];for(de=0;de<w;de++)Q[de]&&Pe.push(u[de]);return Pe}function Nm(u,p,w,U,Q){var de=0,Pe,Le,je;for(Le=U+1;Le<=Q-1;Le++)je=Gc(u[Le],u[U],u[Q],!0),je>de&&(Pe=Le,de=je);de>w&&(p[Pe]=1,Nm(u,p,w,U,Pe),Nm(u,p,w,Pe,Q))}function Zy(u,p){for(var w=[u[0]],U=1,Q=0,de=u.length;U<de;U++)z1(u[U],u[Q])>p&&(w.push(u[U]),Q=U);return Q<de-1&&w.push(u[de-1]),w}var Xy;function Jy(u,p,w,U,Q){var de=U?Xy:ca(u,w),Pe=ca(p,w),Le,je,Ze;for(Xy=Pe;;){if(!(de|Pe))return[u,p];if(de&Pe)return!1;Le=de||Pe,je=gl(u,p,Le,w,Q),Ze=ca(je,w),Le===de?(u=je,de=Ze):(p=je,Pe=Ze)}}function gl(u,p,w,U,Q){var de=p.x-u.x,Pe=p.y-u.y,Le=U.min,je=U.max,Ze,dt;return w&8?(Ze=u.x+de*(je.y-u.y)/Pe,dt=je.y):w&4?(Ze=u.x+de*(Le.y-u.y)/Pe,dt=Le.y):w&2?(Ze=je.x,dt=u.y+Pe*(je.x-u.x)/de):w&1&&(Ze=Le.x,dt=u.y+Pe*(Le.x-u.x)/de),new re(Ze,dt,Q)}function ca(u,p){var w=0;return u.x<p.min.x?w|=1:u.x>p.max.x&&(w|=2),u.y<p.min.y?w|=4:u.y>p.max.y&&(w|=8),w}function z1(u,p){var w=p.x-u.x,U=p.y-u.y;return w*w+U*U}function Gc(u,p,w,U){var Q=p.x,de=p.y,Pe=w.x-Q,Le=w.y-de,je=Pe*Pe+Le*Le,Ze;return je>0&&(Ze=((u.x-Q)*Pe+(u.y-de)*Le)/je,Ze>1?(Q=w.x,de=w.y):Ze>0&&(Q+=Pe*Ze,de+=Le*Ze)),Pe=u.x-Q,Le=u.y-de,U?Pe*Pe+Le*Le:new re(Q,de)}function er(u){return!B(u[0])||typeof u[0][0]!="object"&&typeof u[0][0]<"u"}function Qy(u){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),er(u)}function Vy(u,p){var w,U,Q,de,Pe,Le,je,Ze;if(!u||u.length===0)throw new Error("latlngs not passed");er(u)||(console.warn("latlngs are not flat! Only the first ring will be used"),u=u[0]);var dt=Y([0,0]),At=ee(u),Yt=At.getNorthWest().distanceTo(At.getSouthWest())*At.getNorthEast().distanceTo(At.getNorthWest());Yt<1700&&(dt=Tm(u));var tr=u.length,xi=[];for(w=0;w<tr;w++){var ho=Y(u[w]);xi.push(p.project(Y([ho.lat-dt.lat,ho.lng-dt.lng])))}for(w=0,U=0;w<tr-1;w++)U+=xi[w].distanceTo(xi[w+1])/2;if(U===0)Ze=xi[0];else for(w=0,de=0;w<tr-1;w++)if(Pe=xi[w],Le=xi[w+1],Q=Pe.distanceTo(Le),de+=Q,de>U){je=(de-U)/Q,Ze=[Le.x-je*(Le.x-Pe.x),Le.y-je*(Le.y-Pe.y)];break}var _r=p.unproject(ce(Ze));return Y([_r.lat+dt.lat,_r.lng+dt.lng])}var da={__proto__:null,simplify:Pm,pointToSegmentDistance:Bm,closestPointOnSegment:Yy,clipSegment:Jy,_getEdgeIntersection:gl,_getBitCode:ca,_sqClosestPointOnSegment:Gc,isFlat:er,_flat:Qy,polylineCenter:Vy},Fu={project:function(u){return new re(u.lng,u.lat)},unproject:function(u){return new K(u.y,u.x)},bounds:new se([-180,-90],[180,90])},$u={R:6378137,R_MINOR:6356752314245179e-9,bounds:new se([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project:function(u){var p=Math.PI/180,w=this.R,U=u.lat*p,Q=this.R_MINOR/w,de=Math.sqrt(1-Q*Q),Pe=de*Math.sin(U),Le=Math.tan(Math.PI/4-U/2)/Math.pow((1-Pe)/(1+Pe),de/2);return U=-w*Math.log(Math.max(Le,1e-10)),new re(u.lng*p*w,U)},unproject:function(u){for(var p=180/Math.PI,w=this.R,U=this.R_MINOR/w,Q=Math.sqrt(1-U*U),de=Math.exp(-u.y/w),Pe=Math.PI/2-2*Math.atan(de),Le=0,je=.1,Ze;Le<15&&Math.abs(je)>1e-7;Le++)Ze=Q*Math.sin(Pe),Ze=Math.pow((1-Ze)/(1+Ze),Q/2),je=Math.PI/2-2*Math.atan(de*Ze)-Pe,Pe+=je;return new K(Pe*p,u.x*p/w)}},eb={__proto__:null,LonLat:Fu,Mercator:$u,SphericalMercator:R},tb=r({},_,{code:"EPSG:3395",projection:$u,transformation:(function(){var u=.5/(Math.PI*$u.R);return T(u,.5,-u,.5)})()}),Dm=r({},_,{code:"EPSG:4326",projection:Fu,transformation:T(1/180,1,-1/180,.5)}),nb=r({},F,{projection:Fu,transformation:T(1,0,-1,0),scale:function(u){return Math.pow(2,u)},zoom:function(u){return Math.log(u)/Math.LN2},distance:function(u,p){var w=p.lng-u.lng,U=p.lat-u.lat;return Math.sqrt(w*w+U*U)},infinite:!0});F.Earth=_,F.EPSG3395=tb,F.EPSG3857=D,F.EPSG900913=Z,F.EPSG4326=Dm,F.Simple=nb;var wr=te.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(u){return u.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(u){return u&&u.removeLayer(this),this},getPane:function(u){return this._map.getPane(u?this.options[u]||u:this.options.pane)},addInteractiveTarget:function(u){return this._map._targets[c(u)]=this,this},removeInteractiveTarget:function(u){return delete this._map._targets[c(u)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(u){var p=u.target;if(p.hasLayer(this)){if(this._map=p,this._zoomAnimated=p._zoomAnimated,this.getEvents){var w=this.getEvents();p.on(w,this),this.once("remove",function(){p.off(w,this)},this)}this.onAdd(p),this.fire("add"),p.fire("layeradd",{layer:this})}}});Rt.include({addLayer:function(u){if(!u._layerAdd)throw new Error("The provided object is not a Layer.");var p=c(u);return this._layers[p]?this:(this._layers[p]=u,u._mapToAdd=this,u.beforeAdd&&u.beforeAdd(this),this.whenReady(u._layerAdd,u),this)},removeLayer:function(u){var p=c(u);return this._layers[p]?(this._loaded&&u.onRemove(this),delete this._layers[p],this._loaded&&(this.fire("layerremove",{layer:u}),u.fire("remove")),u._map=u._mapToAdd=null,this):this},hasLayer:function(u){return c(u)in this._layers},eachLayer:function(u,p){for(var w in this._layers)u.call(p,this._layers[w]);return this},_addLayers:function(u){u=u?B(u)?u:[u]:[];for(var p=0,w=u.length;p<w;p++)this.addLayer(u[p])},_addZoomLimit:function(u){(!isNaN(u.options.maxZoom)||!isNaN(u.options.minZoom))&&(this._zoomBoundLayers[c(u)]=u,this._updateZoomLevels())},_removeZoomLimit:function(u){var p=c(u);this._zoomBoundLayers[p]&&(delete this._zoomBoundLayers[p],this._updateZoomLevels())},_updateZoomLevels:function(){var u=1/0,p=-1/0,w=this._getZoomSpan();for(var U in this._zoomBoundLayers){var Q=this._zoomBoundLayers[U].options;u=Q.minZoom===void 0?u:Math.min(u,Q.minZoom),p=Q.maxZoom===void 0?p:Math.max(p,Q.maxZoom)}this._layersMaxZoom=p===-1/0?void 0:p,this._layersMinZoom=u===1/0?void 0:u,w!==this._getZoomSpan()&&this.fire("zoomlevelschange"),this.options.maxZoom===void 0&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),this.options.minZoom===void 0&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var ua=wr.extend({initialize:function(u,p){y(this,p),this._layers={};var w,U;if(u)for(w=0,U=u.length;w<U;w++)this.addLayer(u[w])},addLayer:function(u){var p=this.getLayerId(u);return this._layers[p]=u,this._map&&this._map.addLayer(u),this},removeLayer:function(u){var p=u in this._layers?u:this.getLayerId(u);return this._map&&this._layers[p]&&this._map.removeLayer(this._layers[p]),delete this._layers[p],this},hasLayer:function(u){var p=typeof u=="number"?u:this.getLayerId(u);return p in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(u){var p=Array.prototype.slice.call(arguments,1),w,U;for(w in this._layers)U=this._layers[w],U[u]&&U[u].apply(U,p);return this},onAdd:function(u){this.eachLayer(u.addLayer,u)},onRemove:function(u){this.eachLayer(u.removeLayer,u)},eachLayer:function(u,p){for(var w in this._layers)u.call(p,this._layers[w]);return this},getLayer:function(u){return this._layers[u]},getLayers:function(){var u=[];return this.eachLayer(u.push,u),u},setZIndex:function(u){return this.invoke("setZIndex",u)},getLayerId:function(u){return c(u)}}),ib=function(u,p){return new ua(u,p)},fo=ua.extend({addLayer:function(u){return this.hasLayer(u)?this:(u.addEventParent(this),ua.prototype.addLayer.call(this,u),this.fire("layeradd",{layer:u}))},removeLayer:function(u){return this.hasLayer(u)?(u in this._layers&&(u=this._layers[u]),u.removeEventParent(this),ua.prototype.removeLayer.call(this,u),this.fire("layerremove",{layer:u})):this},setStyle:function(u){return this.invoke("setStyle",u)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var u=new G;for(var p in this._layers){var w=this._layers[p];u.extend(w.getBounds?w.getBounds():w.getLatLng())}return u}}),rb=function(u,p){return new fo(u,p)},fa=X.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(u){y(this,u)},createIcon:function(u){return this._createIcon("icon",u)},createShadow:function(u){return this._createIcon("shadow",u)},_createIcon:function(u,p){var w=this._getIconUrl(u);if(!w){if(u==="icon")throw new Error("iconUrl not set in Icon options (see the docs).");return null}var U=this._createImg(w,p&&p.tagName==="IMG"?p:null);return this._setIconStyles(U,u),(this.options.crossOrigin||this.options.crossOrigin==="")&&(U.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),U},_setIconStyles:function(u,p){var w=this.options,U=w[p+"Size"];typeof U=="number"&&(U=[U,U]);var Q=ce(U),de=ce(p==="shadow"&&w.shadowAnchor||w.iconAnchor||Q&&Q.divideBy(2,!0));u.className="leaflet-marker-"+p+" "+(w.className||""),de&&(u.style.marginLeft=-de.x+"px",u.style.marginTop=-de.y+"px"),Q&&(u.style.width=Q.x+"px",u.style.height=Q.y+"px")},_createImg:function(u,p){return p=p||document.createElement("img"),p.src=u,p},_getIconUrl:function(u){return pt.retina&&this.options[u+"RetinaUrl"]||this.options[u+"Url"]}});function ob(u){return new fa(u)}var yl=fa.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(u){return typeof yl.imagePath!="string"&&(yl.imagePath=this._detectIconPath()),(this.options.imagePath||yl.imagePath)+fa.prototype._getIconUrl.call(this,u)},_stripUrl:function(u){var p=function(w,U,Q){var de=U.exec(w);return de&&de[Q]};return u=p(u,/^url\((['"])?(.+)\1\)$/,2),u&&p(u,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var u=an("div","leaflet-default-icon-path",document.body),p=ul(u,"background-image")||ul(u,"backgroundImage");if(document.body.removeChild(u),p=this._stripUrl(p),p)return p;var w=document.querySelector('link[href$="leaflet.css"]');return w?w.href.substring(0,w.href.length-11-1):""}}),Mm=uo.extend({initialize:function(u){this._marker=u},addHooks:function(){var u=this._marker._icon;this._draggable||(this._draggable=new ps(u,u,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),Lt(u,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon&&Wn(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(u){var p=this._marker,w=p._map,U=this._marker.options.autoPanSpeed,Q=this._marker.options.autoPanPadding,de=Ro(p._icon),Pe=w.getPixelBounds(),Le=w.getPixelOrigin(),je=z(Pe.min._subtract(Le).add(Q),Pe.max._subtract(Le).subtract(Q));if(!je.contains(de)){var Ze=ce((Math.max(je.max.x,de.x)-je.max.x)/(Pe.max.x-je.max.x)-(Math.min(je.min.x,de.x)-je.min.x)/(Pe.min.x-je.min.x),(Math.max(je.max.y,de.y)-je.max.y)/(Pe.max.y-je.max.y)-(Math.min(je.min.y,de.y)-je.min.y)/(Pe.min.y-je.min.y)).multiplyBy(U);w.panBy(Ze,{animate:!1}),this._draggable._newPos._add(Ze),this._draggable._startPos._add(Ze),Hn(p._icon,this._draggable._newPos),this._onDrag(u),this._panRequest=I(this._adjustPan.bind(this,u))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(u){this._marker.options.autoPan&&(O(this._panRequest),this._panRequest=I(this._adjustPan.bind(this,u)))},_onDrag:function(u){var p=this._marker,w=p._shadow,U=Ro(p._icon),Q=p._map.layerPointToLatLng(U);w&&Hn(w,U),p._latlng=Q,u.latlng=Q,u.oldLatLng=this._oldLatLng,p.fire("move",u).fire("drag",u)},_onDragEnd:function(u){O(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",u)}}),Yc=wr.extend({options:{icon:new yl,interactive:!0,keyboard:!0,title:"",alt:"Marker",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:!1,autoPanOnFocus:!0,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(u,p){y(this,p),this._latlng=Y(u)},onAdd:function(u){this._zoomAnimated=this._zoomAnimated&&u.options.markerZoomAnimation,this._zoomAnimated&&u.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(u){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&u.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(u){var p=this._latlng;return this._latlng=Y(u),this.update(),this.fire("move",{oldLatLng:p,latlng:this._latlng})},setZIndexOffset:function(u){return this.options.zIndexOffset=u,this.update()},getIcon:function(){return this.options.icon},setIcon:function(u){return this.options.icon=u,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){if(this._icon&&this._map){var u=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(u)}return this},_initIcon:function(){var u=this.options,p="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),w=u.icon.createIcon(this._icon),U=!1;w!==this._icon&&(this._icon&&this._removeIcon(),U=!0,u.title&&(w.title=u.title),w.tagName==="IMG"&&(w.alt=u.alt||"")),Lt(w,p),u.keyboard&&(w.tabIndex="0",w.setAttribute("role","button")),this._icon=w,u.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&Dt(w,"focus",this._panOnFocus,this);var Q=u.icon.createShadow(this._shadow),de=!1;Q!==this._shadow&&(this._removeShadow(),de=!0),Q&&(Lt(Q,p),Q.alt=""),this._shadow=Q,u.opacity<1&&this._updateOpacity(),U&&this.getPane().appendChild(this._icon),this._initInteraction(),Q&&de&&this.getPane(u.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&_n(this._icon,"focus",this._panOnFocus,this),Cn(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&Cn(this._shadow),this._shadow=null},_setPos:function(u){this._icon&&Hn(this._icon,u),this._shadow&&Hn(this._shadow,u),this._zIndex=u.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(u){this._icon&&(this._icon.style.zIndex=this._zIndex+u)},_animateZoom:function(u){var p=this._map._latLngToNewLayerPoint(this._latlng,u.zoom,u.center).round();this._setPos(p)},_initInteraction:function(){if(this.options.interactive&&(Lt(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),Mm)){var u=this.options.draggable;this.dragging&&(u=this.dragging.enabled(),this.dragging.disable()),this.dragging=new Mm(this),u&&this.dragging.enable()}},setOpacity:function(u){return this.options.opacity=u,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var u=this.options.opacity;this._icon&&br(this._icon,u),this._shadow&&br(this._shadow,u)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var u=this._map;if(u){var p=this.options.icon.options,w=p.iconSize?ce(p.iconSize):ce(0,0),U=p.iconAnchor?ce(p.iconAnchor):ce(0,0);u.panInside(this._latlng,{paddingTopLeft:U,paddingBottomRight:w.subtract(U)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function sb(u,p){return new Yc(u,p)}var H=wr.extend({options:{stroke:!0,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:!0,bubblingMouseEvents:!0},beforeAdd:function(u){this._renderer=u.getRenderer(this)},onAdd:function(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){return this._map&&this._renderer._updatePath(this),this},setStyle:function(u){return y(this,u),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&u&&Object.prototype.hasOwnProperty.call(u,"weight")&&this._updateBounds()),this},bringToFront:function(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack:function(){return this._renderer&&this._renderer._bringToBack(this),this},getElement:function(){return this._path},_reset:function(){this._project(),this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+(this._renderer.options.tolerance||0)}}),V=H.extend({options:{fill:!0,radius:10},initialize:function(u,p){y(this,p),this._latlng=Y(u),this._radius=this.options.radius},setLatLng:function(u){var p=this._latlng;return this._latlng=Y(u),this.redraw(),this.fire("move",{oldLatLng:p,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(u){return this.options.radius=this._radius=u,this.redraw()},getRadius:function(){return this._radius},setStyle:function(u){var p=u&&u.radius||this._radius;return H.prototype.setStyle.call(this,u),this.setRadius(p),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var u=this._radius,p=this._radiusY||u,w=this._clickTolerance(),U=[u+w,p+w];this._pxBounds=new se(this._point.subtract(U),this._point.add(U))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(u){return u.distanceTo(this._point)<=this._radius+this._clickTolerance()}});function le(u,p){return new V(u,p)}var me=V.extend({initialize:function(u,p,w){if(typeof p=="number"&&(p=r({},w,{radius:p})),y(this,p),this._latlng=Y(u),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(u){return this._mRadius=u,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var u=[this._radius,this._radiusY||this._radius];return new G(this._map.layerPointToLatLng(this._point.subtract(u)),this._map.layerPointToLatLng(this._point.add(u)))},setStyle:H.prototype.setStyle,_project:function(){var u=this._latlng.lng,p=this._latlng.lat,w=this._map,U=w.options.crs;if(U.distance===_.distance){var Q=Math.PI/180,de=this._mRadius/_.R/Q,Pe=w.project([p+de,u]),Le=w.project([p-de,u]),je=Pe.add(Le).divideBy(2),Ze=w.unproject(je).lat,dt=Math.acos((Math.cos(de*Q)-Math.sin(p*Q)*Math.sin(Ze*Q))/(Math.cos(p*Q)*Math.cos(Ze*Q)))/Q;(isNaN(dt)||dt===0)&&(dt=de/Math.cos(Math.PI/180*p)),this._point=je.subtract(w.getPixelOrigin()),this._radius=isNaN(dt)?0:je.x-w.project([Ze,u-dt]).x,this._radiusY=je.y-Pe.y}else{var At=U.unproject(U.project(this._latlng).subtract([this._mRadius,0]));this._point=w.latLngToLayerPoint(this._latlng),this._radius=this._point.x-w.latLngToLayerPoint(At).x}this._updateBounds()}});function xe(u,p,w){return new me(u,p,w)}var ie=H.extend({options:{smoothFactor:1,noClip:!1},initialize:function(u,p){y(this,p),this._setLatLngs(u)},getLatLngs:function(){return this._latlngs},setLatLngs:function(u){return this._setLatLngs(u),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(u){for(var p=1/0,w=null,U=Gc,Q,de,Pe=0,Le=this._parts.length;Pe<Le;Pe++)for(var je=this._parts[Pe],Ze=1,dt=je.length;Ze<dt;Ze++){Q=je[Ze-1],de=je[Ze];var At=U(u,Q,de,!0);At<p&&(p=At,w=U(u,Q,de))}return w&&(w.distance=Math.sqrt(p)),w},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return Vy(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(u,p){return p=p||this._defaultShape(),u=Y(u),p.push(u),this._bounds.extend(u),this.redraw()},_setLatLngs:function(u){this._bounds=new G,this._latlngs=this._convertLatLngs(u)},_defaultShape:function(){return er(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(u){for(var p=[],w=er(u),U=0,Q=u.length;U<Q;U++)w?(p[U]=Y(u[U]),this._bounds.extend(p[U])):p[U]=this._convertLatLngs(u[U]);return p},_project:function(){var u=new se;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,u),this._bounds.isValid()&&u.isValid()&&(this._rawPxBounds=u,this._updateBounds())},_updateBounds:function(){var u=this._clickTolerance(),p=new re(u,u);this._rawPxBounds&&(this._pxBounds=new se([this._rawPxBounds.min.subtract(p),this._rawPxBounds.max.add(p)]))},_projectLatlngs:function(u,p,w){var U=u[0]instanceof K,Q=u.length,de,Pe;if(U){for(Pe=[],de=0;de<Q;de++)Pe[de]=this._map.latLngToLayerPoint(u[de]),w.extend(Pe[de]);p.push(Pe)}else for(de=0;de<Q;de++)this._projectLatlngs(u[de],p,w)},_clipPoints:function(){var u=this._renderer._bounds;if(this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(u))){if(this.options.noClip){this._parts=this._rings;return}var p=this._parts,w,U,Q,de,Pe,Le,je;for(w=0,Q=0,de=this._rings.length;w<de;w++)for(je=this._rings[w],U=0,Pe=je.length;U<Pe-1;U++)Le=Jy(je[U],je[U+1],u,U,!0),Le&&(p[Q]=p[Q]||[],p[Q].push(Le[0]),(Le[1]!==je[U+1]||U===Pe-2)&&(p[Q].push(Le[1]),Q++))}},_simplifyPoints:function(){for(var u=this._parts,p=this.options.smoothFactor,w=0,U=u.length;w<U;w++)u[w]=Pm(u[w],p)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(u,p){var w,U,Q,de,Pe,Le,je=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(u))return!1;for(w=0,de=this._parts.length;w<de;w++)for(Le=this._parts[w],U=0,Pe=Le.length,Q=Pe-1;U<Pe;Q=U++)if(!(!p&&U===0)&&Bm(u,Le[Q],Le[U])<=je)return!0;return!1}});function he(u,p){return new ie(u,p)}ie._flat=Qy;var _e=ie.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return Gy(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(u){var p=ie.prototype._convertLatLngs.call(this,u),w=p.length;return w>=2&&p[0]instanceof K&&p[0].equals(p[w-1])&&p.pop(),p},_setLatLngs:function(u){ie.prototype._setLatLngs.call(this,u),er(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return er(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var u=this._renderer._bounds,p=this.options.weight,w=new re(p,p);if(u=new se(u.min.subtract(w),u.max.add(w)),this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(u))){if(this.options.noClip){this._parts=this._rings;return}for(var U=0,Q=this._rings.length,de;U<Q;U++)de=Ky(this._rings[U],u,!0),de.length&&this._parts.push(de)}},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(u){var p=!1,w,U,Q,de,Pe,Le,je,Ze;if(!this._pxBounds||!this._pxBounds.contains(u))return!1;for(de=0,je=this._parts.length;de<je;de++)for(w=this._parts[de],Pe=0,Ze=w.length,Le=Ze-1;Pe<Ze;Le=Pe++)U=w[Pe],Q=w[Le],U.y>u.y!=Q.y>u.y&&u.x<(Q.x-U.x)*(u.y-U.y)/(Q.y-U.y)+U.x&&(p=!p);return p||ie.prototype._containsPoint.call(this,u,!0)}});function ze(u,p){return new _e(u,p)}var qe=fo.extend({initialize:function(u,p){y(this,p),this._layers={},u&&this.addData(u)},addData:function(u){var p=B(u)?u:u.features,w,U,Q;if(p){for(w=0,U=p.length;w<U;w++)Q=p[w],(Q.geometries||Q.geometry||Q.features||Q.coordinates)&&this.addData(Q);return this}var de=this.options;if(de.filter&&!de.filter(u))return this;var Pe=Qe(u,de);return Pe?(Pe.feature=Ft(u),Pe.defaultOptions=Pe.options,this.resetStyle(Pe),de.onEachFeature&&de.onEachFeature(u,Pe),this.addLayer(Pe)):this},resetStyle:function(u){return u===void 0?this.eachLayer(this.resetStyle,this):(u.options=r({},u.defaultOptions),this._setLayerStyle(u,this.options.style),this)},setStyle:function(u){return this.eachLayer(function(p){this._setLayerStyle(p,u)},this)},_setLayerStyle:function(u,p){u.setStyle&&(typeof p=="function"&&(p=p(u.feature)),u.setStyle(p))}});function Qe(u,p){var w=u.type==="Feature"?u.geometry:u,U=w?w.coordinates:null,Q=[],de=p&&p.pointToLayer,Pe=p&&p.coordsToLatLng||it,Le,je,Ze,dt;if(!U&&!w)return null;switch(w.type){case"Point":return Le=Pe(U),et(de,u,Le,p);case"MultiPoint":for(Ze=0,dt=U.length;Ze<dt;Ze++)Le=Pe(U[Ze]),Q.push(et(de,u,Le,p));return new fo(Q);case"LineString":case"MultiLineString":return je=Et(U,w.type==="LineString"?0:1,Pe),new ie(je,p);case"Polygon":case"MultiPolygon":return je=Et(U,w.type==="Polygon"?1:2,Pe),new _e(je,p);case"GeometryCollection":for(Ze=0,dt=w.geometries.length;Ze<dt;Ze++){var At=Qe({geometry:w.geometries[Ze],type:"Feature",properties:u.properties},p);At&&Q.push(At)}return new fo(Q);case"FeatureCollection":for(Ze=0,dt=w.features.length;Ze<dt;Ze++){var Yt=Qe(w.features[Ze],p);Yt&&Q.push(Yt)}return new fo(Q);default:throw new Error("Invalid GeoJSON object.")}}function et(u,p,w,U){return u?u(p,w):new Yc(w,U&&U.markersInheritOptions&&U)}function it(u){return new K(u[1],u[0],u[2])}function Et(u,p,w){for(var U=[],Q=0,de=u.length,Pe;Q<de;Q++)Pe=p?Et(u[Q],p-1,w):(w||it)(u[Q]),U.push(Pe);return U}function Bt(u,p){return u=Y(u),u.alt!==void 0?[m(u.lng,p),m(u.lat,p),m(u.alt,p)]:[m(u.lng,p),m(u.lat,p)]}function qt(u,p,w,U){for(var Q=[],de=0,Pe=u.length;de<Pe;de++)Q.push(p?qt(u[de],er(u[de])?0:p-1,w,U):Bt(u[de],U));return!p&&w&&Q.length>0&&Q.push(Q[0].slice()),Q}function wt(u,p){return u.feature?r({},u.feature,{geometry:p}):Ft(p)}function Ft(u){return u.type==="Feature"||u.type==="FeatureCollection"?u:{type:"Feature",properties:{},geometry:u}}var St={toGeoJSON:function(u){return wt(this,{type:"Point",coordinates:Bt(this.getLatLng(),u)})}};Yc.include(St),me.include(St),V.include(St),ie.include({toGeoJSON:function(u){var p=!er(this._latlngs),w=qt(this._latlngs,p?1:0,!1,u);return wt(this,{type:(p?"Multi":"")+"LineString",coordinates:w})}}),_e.include({toGeoJSON:function(u){var p=!er(this._latlngs),w=p&&!er(this._latlngs[0]),U=qt(this._latlngs,w?2:p?1:0,!0,u);return p||(U=[U]),wt(this,{type:(w?"Multi":"")+"Polygon",coordinates:U})}}),ua.include({toMultiPoint:function(u){var p=[];return this.eachLayer(function(w){p.push(w.toGeoJSON(u).geometry.coordinates)}),wt(this,{type:"MultiPoint",coordinates:p})},toGeoJSON:function(u){var p=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(p==="MultiPoint")return this.toMultiPoint(u);var w=p==="GeometryCollection",U=[];return this.eachLayer(function(Q){if(Q.toGeoJSON){var de=Q.toGeoJSON(u);if(w)U.push(de.geometry);else{var Pe=Ft(de);Pe.type==="FeatureCollection"?U.push.apply(U,Pe.features):U.push(Pe)}}}),w?wt(this,{geometries:U,type:"GeometryCollection"}):{type:"FeatureCollection",features:U}}});function Mt(u,p){return new qe(u,p)}var Kt=Mt,qn=wr.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(u,p,w){this._url=u,this._bounds=ee(p),y(this,w)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(Lt(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){Cn(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(u){return this.options.opacity=u,this._image&&this._updateOpacity(),this},setStyle:function(u){return u.opacity&&this.setOpacity(u.opacity),this},bringToFront:function(){return this._map&&co(this._image),this},bringToBack:function(){return this._map&&Di(this._image),this},setUrl:function(u){return this._url=u,this._image&&(this._image.src=u),this},setBounds:function(u){return this._bounds=ee(u),this._map&&this._reset(),this},getEvents:function(){var u={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(u.zoomanim=this._animateZoom),u},setZIndex:function(u){return this.options.zIndex=u,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var u=this._url.tagName==="IMG",p=this._image=u?this._url:an("img");if(Lt(p,"leaflet-image-layer"),this._zoomAnimated&&Lt(p,"leaflet-zoom-animated"),this.options.className&&Lt(p,this.options.className),p.onselectstart=h,p.onmousemove=h,p.onload=a(this.fire,this,"load"),p.onerror=a(this._overlayOnError,this,"error"),(this.options.crossOrigin||this.options.crossOrigin==="")&&(p.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),u){this._url=p.src;return}p.src=this._url,p.alt=this.options.alt},_animateZoom:function(u){var p=this._map.getZoomScale(u.zoom),w=this._map._latLngBoundsToNewLayerBounds(this._bounds,u.zoom,u.center).min;fs(this._image,w,p)},_reset:function(){var u=this._image,p=new se(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),w=p.getSize();Hn(u,p.min),u.style.width=w.x+"px",u.style.height=w.y+"px"},_updateOpacity:function(){br(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var u=this.options.errorOverlayUrl;u&&this._url!==u&&(this._url=u,this._image.src=u)},getCenter:function(){return this._bounds.getCenter()}}),Ct=function(u,p,w){return new qn(u,p,w)},ut=qn.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var u=this._url.tagName==="VIDEO",p=this._image=u?this._url:an("video");if(Lt(p,"leaflet-image-layer"),this._zoomAnimated&&Lt(p,"leaflet-zoom-animated"),this.options.className&&Lt(p,this.options.className),p.onselectstart=h,p.onmousemove=h,p.onloadeddata=a(this.fire,this,"load"),u){for(var w=p.getElementsByTagName("source"),U=[],Q=0;Q<w.length;Q++)U.push(w[Q].src);this._url=w.length>0?U:[p.src];return}B(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(p.style,"objectFit")&&(p.style.objectFit="fill"),p.autoplay=!!this.options.autoplay,p.loop=!!this.options.loop,p.muted=!!this.options.muted,p.playsInline=!!this.options.playsInline;for(var de=0;de<this._url.length;de++){var Pe=an("source");Pe.src=this._url[de],p.appendChild(Pe)}}});function bi(u,p,w){return new ut(u,p,w)}var li=qn.extend({_initImage:function(){var u=this._image=this._url;Lt(u,"leaflet-image-layer"),this._zoomAnimated&&Lt(u,"leaflet-zoom-animated"),this.options.className&&Lt(u,this.options.className),u.onselectstart=h,u.onmousemove=h}});function Kn(u,p,w){return new li(u,p,w)}var Pn=wr.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(u,p){u&&(u instanceof K||B(u))?(this._latlng=Y(u),y(this,p)):(y(this,u),this._source=p),this.options.content&&(this._content=this.options.content)},openOn:function(u){return u=arguments.length?u:this._source._map,u.hasLayer(this)||u.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(u){return this._map?this.close():(arguments.length?this._source=u:u=this._source,this._prepareOpen(),this.openOn(u._map)),this},onAdd:function(u){this._zoomAnimated=u._zoomAnimated,this._container||this._initLayout(),u._fadeAnimated&&br(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),u._fadeAnimated&&br(this._container,1),this.bringToFront(),this.options.interactive&&(Lt(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(u){u._fadeAnimated?(br(this._container,0),this._removeTimeout=setTimeout(a(Cn,void 0,this._container),200)):Cn(this._container),this.options.interactive&&(Wn(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(u){return this._latlng=Y(u),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(u){return this._content=u,this.update(),this},getElement:function(){return this._container},update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},getEvents:function(){var u={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(u.zoomanim=this._animateZoom),u},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&co(this._container),this},bringToBack:function(){return this._map&&Di(this._container),this},_prepareOpen:function(u){var p=this._source;if(!p._map)return!1;if(p instanceof fo){p=null;var w=this._source._layers;for(var U in w)if(w[U]._map){p=w[U];break}if(!p)return!1;this._source=p}if(!u)if(p.getCenter)u=p.getCenter();else if(p.getLatLng)u=p.getLatLng();else if(p.getBounds)u=p.getBounds().getCenter();else throw new Error("Unable to get source layer LatLng.");return this.setLatLng(u),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var u=this._contentNode,p=typeof this._content=="function"?this._content(this._source||this):this._content;if(typeof p=="string")u.innerHTML=p;else{for(;u.hasChildNodes();)u.removeChild(u.firstChild);u.appendChild(p)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var u=this._map.latLngToLayerPoint(this._latlng),p=ce(this.options.offset),w=this._getAnchor();this._zoomAnimated?Hn(this._container,u.add(w)):p=p.add(u).add(w);var U=this._containerBottom=-p.y,Q=this._containerLeft=-Math.round(this._containerWidth/2)+p.x;this._container.style.bottom=U+"px",this._container.style.left=Q+"px"}},_getAnchor:function(){return[0,0]}});Rt.include({_initOverlay:function(u,p,w,U){var Q=p;return Q instanceof u||(Q=new u(U).setContent(p)),w&&Q.setLatLng(w),Q}}),wr.include({_initOverlay:function(u,p,w,U){var Q=w;return Q instanceof u?(y(Q,U),Q._source=this):(Q=p&&!U?p:new u(U,this),Q.setContent(w)),Q}});var Lr=Pn.extend({options:{pane:"popupPane",offset:[0,7],maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,autoClose:!0,closeOnEscapeKey:!0,className:""},openOn:function(u){return u=arguments.length?u:this._source._map,!u.hasLayer(this)&&u._popup&&u._popup.options.autoClose&&u.removeLayer(u._popup),u._popup=this,Pn.prototype.openOn.call(this,u)},onAdd:function(u){Pn.prototype.onAdd.call(this,u),u.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof H||this._source.on("preclick",hs))},onRemove:function(u){Pn.prototype.onRemove.call(this,u),u.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof H||this._source.off("preclick",hs))},getEvents:function(){var u=Pn.prototype.getEvents.call(this);return(this.options.closeOnClick!==void 0?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(u.preclick=this.close),this.options.keepInView&&(u.moveend=this._adjustPan),u},_initLayout:function(){var u="leaflet-popup",p=this._container=an("div",u+" "+(this.options.className||"")+" leaflet-zoom-animated"),w=this._wrapper=an("div",u+"-content-wrapper",p);if(this._contentNode=an("div",u+"-content",w),qc(p),ei(this._contentNode),Dt(p,"contextmenu",hs),this._tipContainer=an("div",u+"-tip-container",p),this._tip=an("div",u+"-tip",this._tipContainer),this.options.closeButton){var U=this._closeButton=an("a",u+"-close-button",p);U.setAttribute("role","button"),U.setAttribute("aria-label","Close popup"),U.href="#close",U.innerHTML='<span aria-hidden="true">&#215;</span>',Dt(U,"click",function(Q){hi(Q),this.close()},this)}},_updateLayout:function(){var u=this._contentNode,p=u.style;p.width="",p.whiteSpace="nowrap";var w=u.offsetWidth;w=Math.min(w,this.options.maxWidth),w=Math.max(w,this.options.minWidth),p.width=w+1+"px",p.whiteSpace="",p.height="";var U=u.offsetHeight,Q=this.options.maxHeight,de="leaflet-popup-scrolled";Q&&U>Q?(p.height=Q+"px",Lt(u,de)):Wn(u,de),this._containerWidth=this._container.offsetWidth},_animateZoom:function(u){var p=this._map._latLngToNewLayerPoint(this._latlng,u.zoom,u.center),w=this._getAnchor();Hn(this._container,p.add(w))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning){this._autopanning=!1;return}var u=this._map,p=parseInt(ul(this._container,"marginBottom"),10)||0,w=this._container.offsetHeight+p,U=this._containerWidth,Q=new re(this._containerLeft,-w-this._containerBottom);Q._add(Ro(this._container));var de=u.layerPointToContainerPoint(Q),Pe=ce(this.options.autoPanPadding),Le=ce(this.options.autoPanPaddingTopLeft||Pe),je=ce(this.options.autoPanPaddingBottomRight||Pe),Ze=u.getSize(),dt=0,At=0;de.x+U+je.x>Ze.x&&(dt=de.x+U-Ze.x+je.x),de.x-dt-Le.x<0&&(dt=de.x-Le.x),de.y+w+je.y>Ze.y&&(At=de.y+w-Ze.y+je.y),de.y-At-Le.y<0&&(At=de.y-Le.y),(dt||At)&&(this.options.keepInView&&(this._autopanning=!0),u.fire("autopanstart").panBy([dt,At]))}},_getAnchor:function(){return ce(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),j1=function(u,p){return new Lr(u,p)};Rt.mergeOptions({closePopupOnClick:!0}),Rt.include({openPopup:function(u,p,w){return this._initOverlay(Lr,u,p,w).openOn(this),this},closePopup:function(u){return u=arguments.length?u:this._popup,u&&u.close(),this}}),wr.include({bindPopup:function(u,p){return this._popup=this._initOverlay(Lr,this._popup,u,p),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(u){return this._popup&&(this instanceof fo||(this._popup._source=this),this._popup._prepareOpen(u||this._latlng)&&this._popup.openOn(this._map)),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return this._popup?this._popup.isOpen():!1},setPopupContent:function(u){return this._popup&&this._popup.setContent(u),this},getPopup:function(){return this._popup},_openPopup:function(u){if(!(!this._popup||!this._map)){ms(u);var p=u.layer||u.target;if(this._popup._source===p&&!(p instanceof H)){this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(u.latlng);return}this._popup._source=p,this.openPopup(u.latlng)}},_movePopup:function(u){this._popup.setLatLng(u.latlng)},_onKeyPress:function(u){u.originalEvent.keyCode===13&&this._openPopup(u)}});var ab=Pn.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(u){Pn.prototype.onAdd.call(this,u),this.setOpacity(this.options.opacity),u.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(u){Pn.prototype.onRemove.call(this,u),u.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var u=Pn.prototype.getEvents.call(this);return this.options.permanent||(u.preclick=this.close),u},_initLayout:function(){var u="leaflet-tooltip",p=u+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=an("div",p),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+c(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(u){var p,w,U=this._map,Q=this._container,de=U.latLngToContainerPoint(U.getCenter()),Pe=U.layerPointToContainerPoint(u),Le=this.options.direction,je=Q.offsetWidth,Ze=Q.offsetHeight,dt=ce(this.options.offset),At=this._getAnchor();Le==="top"?(p=je/2,w=Ze):Le==="bottom"?(p=je/2,w=0):Le==="center"?(p=je/2,w=Ze/2):Le==="right"?(p=0,w=Ze/2):Le==="left"?(p=je,w=Ze/2):Pe.x<de.x?(Le="right",p=0,w=Ze/2):(Le="left",p=je+(dt.x+At.x)*2,w=Ze/2),u=u.subtract(ce(p,w,!0)).add(dt).add(At),Wn(Q,"leaflet-tooltip-right"),Wn(Q,"leaflet-tooltip-left"),Wn(Q,"leaflet-tooltip-top"),Wn(Q,"leaflet-tooltip-bottom"),Lt(Q,"leaflet-tooltip-"+Le),Hn(Q,u)},_updatePosition:function(){var u=this._map.latLngToLayerPoint(this._latlng);this._setPosition(u)},setOpacity:function(u){this.options.opacity=u,this._container&&br(this._container,u)},_animateZoom:function(u){var p=this._map._latLngToNewLayerPoint(this._latlng,u.zoom,u.center);this._setPosition(p)},_getAnchor:function(){return ce(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),Y2e=function(u,p){return new ab(u,p)};Rt.include({openTooltip:function(u,p,w){return this._initOverlay(ab,u,p,w).openOn(this),this},closeTooltip:function(u){return u.close(),this}}),wr.include({bindTooltip:function(u,p){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(ab,this._tooltip,u,p),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip:function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions:function(u){if(!(!u&&this._tooltipHandlersAdded)){var p=u?"off":"on",w={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?w.add=this._openTooltip:(w.mouseover=this._openTooltip,w.mouseout=this.closeTooltip,w.click=this._openTooltip,this._map?this._addFocusListeners():w.add=this._addFocusListeners),this._tooltip.options.sticky&&(w.mousemove=this._moveTooltip),this[p](w),this._tooltipHandlersAdded=!u}},openTooltip:function(u){return this._tooltip&&(this instanceof fo||(this._tooltip._source=this),this._tooltip._prepareOpen(u)&&(this._tooltip.openOn(this._map),this.getElement?this._setAriaDescribedByOnLayer(this):this.eachLayer&&this.eachLayer(this._setAriaDescribedByOnLayer,this))),this},closeTooltip:function(){if(this._tooltip)return this._tooltip.close()},toggleTooltip:function(){return this._tooltip&&this._tooltip.toggle(this),this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(u){return this._tooltip&&this._tooltip.setContent(u),this},getTooltip:function(){return this._tooltip},_addFocusListeners:function(){this.getElement?this._addFocusListenersOnLayer(this):this.eachLayer&&this.eachLayer(this._addFocusListenersOnLayer,this)},_addFocusListenersOnLayer:function(u){var p=typeof u.getElement=="function"&&u.getElement();p&&(Dt(p,"focus",function(){this._tooltip._source=u,this.openTooltip()},this),Dt(p,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(u){var p=typeof u.getElement=="function"&&u.getElement();p&&p.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(u){if(!(!this._tooltip||!this._map)){if(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag){this._openOnceFlag=!0;var p=this;this._map.once("moveend",function(){p._openOnceFlag=!1,p._openTooltip(u)});return}this._tooltip._source=u.layer||u.target,this.openTooltip(this._tooltip.options.sticky?u.latlng:void 0)}},_moveTooltip:function(u){var p=u.latlng,w,U;this._tooltip.options.sticky&&u.originalEvent&&(w=this._map.mouseEventToContainerPoint(u.originalEvent),U=this._map.containerPointToLayerPoint(w),p=this._map.layerPointToLatLng(U)),this._tooltip.setLatLng(p)}});var PR=fa.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(u){var p=u&&u.tagName==="DIV"?u:document.createElement("div"),w=this.options;if(w.html instanceof Element?(Ni(p),p.appendChild(w.html)):p.innerHTML=w.html!==!1?w.html:"",w.bgPos){var U=ce(w.bgPos);p.style.backgroundPosition=-U.x+"px "+-U.y+"px"}return this._setIconStyles(p,"icon"),p},createShadow:function(){return null}});function Z2e(u){return new PR(u)}fa.Default=yl;var Rm=wr.extend({options:{tileSize:256,opacity:1,updateWhenIdle:pt.mobile,updateWhenZooming:!0,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:void 0,maxNativeZoom:void 0,minNativeZoom:void 0,noWrap:!1,pane:"tilePane",className:"",keepBuffer:2},initialize:function(u){y(this,u)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(u){u._addZoomLimit(this)},onRemove:function(u){this._removeAllTiles(),Cn(this._container),u._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(co(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(Di(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(u){return this.options.opacity=u,this._updateOpacity(),this},setZIndex:function(u){return this.options.zIndex=u,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var u=this._clampZoom(this._map.getZoom());u!==this._tileZoom&&(this._tileZoom=u,this._updateLevels()),this._update()}return this},getEvents:function(){var u={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=d(this._onMoveEnd,this.options.updateInterval,this)),u.move=this._onMove),this._zoomAnimated&&(u.zoomanim=this._animateZoom),u},createTile:function(){return document.createElement("div")},getTileSize:function(){var u=this.options.tileSize;return u instanceof re?u:new re(u,u)},_updateZIndex:function(){this._container&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(u){for(var p=this.getPane().children,w=-u(-1/0,1/0),U=0,Q=p.length,de;U<Q;U++)de=p[U].style.zIndex,p[U]!==this._container&&de&&(w=u(w,+de));isFinite(w)&&(this.options.zIndex=w+u(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!pt.ielt9){br(this._container,this.options.opacity);var u=+new Date,p=!1,w=!1;for(var U in this._tiles){var Q=this._tiles[U];if(!(!Q.current||!Q.loaded)){var de=Math.min(1,(u-Q.loaded)/200);br(Q.el,de),de<1?p=!0:(Q.active?w=!0:this._onOpaqueTile(Q),Q.active=!0)}}w&&!this._noPrune&&this._pruneTiles(),p&&(O(this._fadeFrame),this._fadeFrame=I(this._updateOpacity,this))}},_onOpaqueTile:h,_initContainer:function(){this._container||(this._container=an("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var u=this._tileZoom,p=this.options.maxZoom;if(u!==void 0){for(var w in this._levels)w=Number(w),this._levels[w].el.children.length||w===u?(this._levels[w].el.style.zIndex=p-Math.abs(u-w),this._onUpdateLevel(w)):(Cn(this._levels[w].el),this._removeTilesAtZoom(w),this._onRemoveLevel(w),delete this._levels[w]);var U=this._levels[u],Q=this._map;return U||(U=this._levels[u]={},U.el=an("div","leaflet-tile-container leaflet-zoom-animated",this._container),U.el.style.zIndex=p,U.origin=Q.project(Q.unproject(Q.getPixelOrigin()),u).round(),U.zoom=u,this._setZoomTransform(U,Q.getCenter(),Q.getZoom()),h(U.el.offsetWidth),this._onCreateLevel(U)),this._level=U,U}},_onUpdateLevel:h,_onRemoveLevel:h,_onCreateLevel:h,_pruneTiles:function(){if(this._map){var u,p,w=this._map.getZoom();if(w>this.options.maxZoom||w<this.options.minZoom){this._removeAllTiles();return}for(u in this._tiles)p=this._tiles[u],p.retain=p.current;for(u in this._tiles)if(p=this._tiles[u],p.current&&!p.active){var U=p.coords;this._retainParent(U.x,U.y,U.z,U.z-5)||this._retainChildren(U.x,U.y,U.z,U.z+2)}for(u in this._tiles)this._tiles[u].retain||this._removeTile(u)}},_removeTilesAtZoom:function(u){for(var p in this._tiles)this._tiles[p].coords.z===u&&this._removeTile(p)},_removeAllTiles:function(){for(var u in this._tiles)this._removeTile(u)},_invalidateAll:function(){for(var u in this._levels)Cn(this._levels[u].el),this._onRemoveLevel(Number(u)),delete this._levels[u];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(u,p,w,U){var Q=Math.floor(u/2),de=Math.floor(p/2),Pe=w-1,Le=new re(+Q,+de);Le.z=+Pe;var je=this._tileCoordsToKey(Le),Ze=this._tiles[je];return Ze&&Ze.active?(Ze.retain=!0,!0):(Ze&&Ze.loaded&&(Ze.retain=!0),Pe>U?this._retainParent(Q,de,Pe,U):!1)},_retainChildren:function(u,p,w,U){for(var Q=2*u;Q<2*u+2;Q++)for(var de=2*p;de<2*p+2;de++){var Pe=new re(Q,de);Pe.z=w+1;var Le=this._tileCoordsToKey(Pe),je=this._tiles[Le];if(je&&je.active){je.retain=!0;continue}else je&&je.loaded&&(je.retain=!0);w+1<U&&this._retainChildren(Q,de,w+1,U)}},_resetView:function(u){var p=u&&(u.pinch||u.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),p,p)},_animateZoom:function(u){this._setView(u.center,u.zoom,!0,u.noUpdate)},_clampZoom:function(u){var p=this.options;return p.minNativeZoom!==void 0&&u<p.minNativeZoom?p.minNativeZoom:p.maxNativeZoom!==void 0&&p.maxNativeZoom<u?p.maxNativeZoom:u},_setView:function(u,p,w,U){var Q=Math.round(p);this.options.maxZoom!==void 0&&Q>this.options.maxZoom||this.options.minZoom!==void 0&&Q<this.options.minZoom?Q=void 0:Q=this._clampZoom(Q);var de=this.options.updateWhenZooming&&Q!==this._tileZoom;(!U||de)&&(this._tileZoom=Q,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),Q!==void 0&&this._update(u),w||this._pruneTiles(),this._noPrune=!!w),this._setZoomTransforms(u,p)},_setZoomTransforms:function(u,p){for(var w in this._levels)this._setZoomTransform(this._levels[w],u,p)},_setZoomTransform:function(u,p,w){var U=this._map.getZoomScale(w,u.zoom),Q=u.origin.multiplyBy(U).subtract(this._map._getNewPixelOrigin(p,w)).round();pt.any3d?fs(u.el,Q,U):Hn(u.el,Q)},_resetGrid:function(){var u=this._map,p=u.options.crs,w=this._tileSize=this.getTileSize(),U=this._tileZoom,Q=this._map.getPixelWorldBounds(this._tileZoom);Q&&(this._globalTileRange=this._pxBoundsToTileRange(Q)),this._wrapX=p.wrapLng&&!this.options.noWrap&&[Math.floor(u.project([0,p.wrapLng[0]],U).x/w.x),Math.ceil(u.project([0,p.wrapLng[1]],U).x/w.y)],this._wrapY=p.wrapLat&&!this.options.noWrap&&[Math.floor(u.project([p.wrapLat[0],0],U).y/w.x),Math.ceil(u.project([p.wrapLat[1],0],U).y/w.y)]},_onMoveEnd:function(){!this._map||this._map._animatingZoom||this._update()},_getTiledPixelBounds:function(u){var p=this._map,w=p._animatingZoom?Math.max(p._animateToZoom,p.getZoom()):p.getZoom(),U=p.getZoomScale(w,this._tileZoom),Q=p.project(u,this._tileZoom).floor(),de=p.getSize().divideBy(U*2);return new se(Q.subtract(de),Q.add(de))},_update:function(u){var p=this._map;if(p){var w=this._clampZoom(p.getZoom());if(u===void 0&&(u=p.getCenter()),this._tileZoom!==void 0){var U=this._getTiledPixelBounds(u),Q=this._pxBoundsToTileRange(U),de=Q.getCenter(),Pe=[],Le=this.options.keepBuffer,je=new se(Q.getBottomLeft().subtract([Le,-Le]),Q.getTopRight().add([Le,-Le]));if(!(isFinite(Q.min.x)&&isFinite(Q.min.y)&&isFinite(Q.max.x)&&isFinite(Q.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var Ze in this._tiles){var dt=this._tiles[Ze].coords;(dt.z!==this._tileZoom||!je.contains(new re(dt.x,dt.y)))&&(this._tiles[Ze].current=!1)}if(Math.abs(w-this._tileZoom)>1){this._setView(u,w);return}for(var At=Q.min.y;At<=Q.max.y;At++)for(var Yt=Q.min.x;Yt<=Q.max.x;Yt++){var tr=new re(Yt,At);if(tr.z=this._tileZoom,!!this._isValidTile(tr)){var xi=this._tiles[this._tileCoordsToKey(tr)];xi?xi.current=!0:Pe.push(tr)}}if(Pe.sort(function(_r,ju){return _r.distanceTo(de)-ju.distanceTo(de)}),Pe.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var ho=document.createDocumentFragment();for(Yt=0;Yt<Pe.length;Yt++)this._addTile(Pe[Yt],ho);this._level.el.appendChild(ho)}}}},_isValidTile:function(u){var p=this._map.options.crs;if(!p.infinite){var w=this._globalTileRange;if(!p.wrapLng&&(u.x<w.min.x||u.x>w.max.x)||!p.wrapLat&&(u.y<w.min.y||u.y>w.max.y))return!1}if(!this.options.bounds)return!0;var U=this._tileCoordsToBounds(u);return ee(this.options.bounds).overlaps(U)},_keyToBounds:function(u){return this._tileCoordsToBounds(this._keyToTileCoords(u))},_tileCoordsToNwSe:function(u){var p=this._map,w=this.getTileSize(),U=u.scaleBy(w),Q=U.add(w),de=p.unproject(U,u.z),Pe=p.unproject(Q,u.z);return[de,Pe]},_tileCoordsToBounds:function(u){var p=this._tileCoordsToNwSe(u),w=new G(p[0],p[1]);return this.options.noWrap||(w=this._map.wrapLatLngBounds(w)),w},_tileCoordsToKey:function(u){return u.x+":"+u.y+":"+u.z},_keyToTileCoords:function(u){var p=u.split(":"),w=new re(+p[0],+p[1]);return w.z=+p[2],w},_removeTile:function(u){var p=this._tiles[u];p&&(Cn(p.el),delete this._tiles[u],this.fire("tileunload",{tile:p.el,coords:this._keyToTileCoords(u)}))},_initTile:function(u){Lt(u,"leaflet-tile");var p=this.getTileSize();u.style.width=p.x+"px",u.style.height=p.y+"px",u.onselectstart=h,u.onmousemove=h,pt.ielt9&&this.options.opacity<1&&br(u,this.options.opacity)},_addTile:function(u,p){var w=this._getTilePos(u),U=this._tileCoordsToKey(u),Q=this.createTile(this._wrapCoords(u),a(this._tileReady,this,u));this._initTile(Q),this.createTile.length<2&&I(a(this._tileReady,this,u,null,Q)),Hn(Q,w),this._tiles[U]={el:Q,coords:u,current:!0},p.appendChild(Q),this.fire("tileloadstart",{tile:Q,coords:u})},_tileReady:function(u,p,w){p&&this.fire("tileerror",{error:p,tile:w,coords:u});var U=this._tileCoordsToKey(u);w=this._tiles[U],w&&(w.loaded=+new Date,this._map._fadeAnimated?(br(w.el,0),O(this._fadeFrame),this._fadeFrame=I(this._updateOpacity,this)):(w.active=!0,this._pruneTiles()),p||(Lt(w.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:w.el,coords:u})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),pt.ielt9||!this._map._fadeAnimated?I(this._pruneTiles,this):setTimeout(a(this._pruneTiles,this),250)))},_getTilePos:function(u){return u.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(u){var p=new re(this._wrapX?f(u.x,this._wrapX):u.x,this._wrapY?f(u.y,this._wrapY):u.y);return p.z=u.z,p},_pxBoundsToTileRange:function(u){var p=this.getTileSize();return new se(u.min.unscaleBy(p).floor(),u.max.unscaleBy(p).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var u in this._tiles)if(!this._tiles[u].loaded)return!1;return!0}});function X2e(u){return new Rm(u)}var zu=Rm.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(u,p){this._url=u,p=y(this,p),p.detectRetina&&pt.retina&&p.maxZoom>0?(p.tileSize=Math.floor(p.tileSize/2),p.zoomReverse?(p.zoomOffset--,p.minZoom=Math.min(p.maxZoom,p.minZoom+1)):(p.zoomOffset++,p.maxZoom=Math.max(p.minZoom,p.maxZoom-1)),p.minZoom=Math.max(0,p.minZoom)):p.zoomReverse?p.minZoom=Math.min(p.maxZoom,p.minZoom):p.maxZoom=Math.max(p.minZoom,p.maxZoom),typeof p.subdomains=="string"&&(p.subdomains=p.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(u,p){return this._url===u&&p===void 0&&(p=!0),this._url=u,p||this.redraw(),this},createTile:function(u,p){var w=document.createElement("img");return Dt(w,"load",a(this._tileOnLoad,this,p,w)),Dt(w,"error",a(this._tileOnError,this,p,w)),(this.options.crossOrigin||this.options.crossOrigin==="")&&(w.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&(w.referrerPolicy=this.options.referrerPolicy),w.alt="",w.src=this.getTileUrl(u),w},getTileUrl:function(u){var p={r:pt.retina?"@2x":"",s:this._getSubdomain(u),x:u.x,y:u.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var w=this._globalTileRange.max.y-u.y;this.options.tms&&(p.y=w),p["-y"]=w}return M(this._url,r(p,this.options))},_tileOnLoad:function(u,p){pt.ielt9?setTimeout(a(u,this,null,p),0):u(null,p)},_tileOnError:function(u,p,w){var U=this.options.errorTileUrl;U&&p.getAttribute("src")!==U&&(p.src=U),u(w,p)},_onTileRemove:function(u){u.tile.onload=null},_getZoomForUrl:function(){var u=this._tileZoom,p=this.options.maxZoom,w=this.options.zoomReverse,U=this.options.zoomOffset;return w&&(u=p-u),u+U},_getSubdomain:function(u){var p=Math.abs(u.x+u.y)%this.options.subdomains.length;return this.options.subdomains[p]},_abortLoading:function(){var u,p;for(u in this._tiles)if(this._tiles[u].coords.z!==this._tileZoom&&(p=this._tiles[u].el,p.onload=h,p.onerror=h,!p.complete)){p.src=j;var w=this._tiles[u].coords;Cn(p),delete this._tiles[u],this.fire("tileabort",{tile:p,coords:w})}},_removeTile:function(u){var p=this._tiles[u];if(p)return p.el.setAttribute("src",j),Rm.prototype._removeTile.call(this,u)},_tileReady:function(u,p,w){if(!(!this._map||w&&w.getAttribute("src")===j))return Rm.prototype._tileReady.call(this,u,p,w)}});function BR(u,p){return new zu(u,p)}var NR=zu.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(u,p){this._url=u;var w=r({},this.defaultWmsParams);for(var U in p)U in this.options||(w[U]=p[U]);p=y(this,p);var Q=p.detectRetina&&pt.retina?2:1,de=this.getTileSize();w.width=de.x*Q,w.height=de.y*Q,this.wmsParams=w},onAdd:function(u){this._crs=this.options.crs||u.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var p=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[p]=this._crs.code,zu.prototype.onAdd.call(this,u)},getTileUrl:function(u){var p=this._tileCoordsToNwSe(u),w=this._crs,U=z(w.project(p[0]),w.project(p[1])),Q=U.min,de=U.max,Pe=(this._wmsVersion>=1.3&&this._crs===Dm?[Q.y,Q.x,de.y,de.x]:[Q.x,Q.y,de.x,de.y]).join(","),Le=zu.prototype.getTileUrl.call(this,u);return Le+A(this.wmsParams,Le,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+Pe},setParams:function(u,p){return r(this.wmsParams,u),p||this.redraw(),this}});function J2e(u,p){return new NR(u,p)}zu.WMS=NR,BR.wms=J2e;var ha=wr.extend({options:{padding:.1},initialize:function(u){y(this,u),c(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),Lt(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var u={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(u.zoomanim=this._onAnimZoom),u},_onAnimZoom:function(u){this._updateTransform(u.center,u.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(u,p){var w=this._map.getZoomScale(p,this._zoom),U=this._map.getSize().multiplyBy(.5+this.options.padding),Q=this._map.project(this._center,p),de=U.multiplyBy(-w).add(Q).subtract(this._map._getNewPixelOrigin(u,p));pt.any3d?fs(this._container,de,w):Hn(this._container,de)},_reset:function(){this._update(),this._updateTransform(this._center,this._zoom);for(var u in this._layers)this._layers[u]._reset()},_onZoomEnd:function(){for(var u in this._layers)this._layers[u]._project()},_updatePaths:function(){for(var u in this._layers)this._layers[u]._update()},_update:function(){var u=this.options.padding,p=this._map.getSize(),w=this._map.containerPointToLayerPoint(p.multiplyBy(-u)).round();this._bounds=new se(w,w.add(p.multiplyBy(1+u*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),DR=ha.extend({options:{tolerance:0},getEvents:function(){var u=ha.prototype.getEvents.call(this);return u.viewprereset=this._onViewPreReset,u},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){ha.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var u=this._container=document.createElement("canvas");Dt(u,"mousemove",this._onMouseMove,this),Dt(u,"click dblclick mousedown mouseup contextmenu",this._onClick,this),Dt(u,"mouseout",this._handleMouseOut,this),u._leaflet_disable_events=!0,this._ctx=u.getContext("2d")},_destroyContainer:function(){O(this._redrawRequest),delete this._ctx,Cn(this._container),_n(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var u;this._redrawBounds=null;for(var p in this._layers)u=this._layers[p],u._update();this._redraw()}},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){ha.prototype._update.call(this);var u=this._bounds,p=this._container,w=u.getSize(),U=pt.retina?2:1;Hn(p,u.min),p.width=U*w.x,p.height=U*w.y,p.style.width=w.x+"px",p.style.height=w.y+"px",pt.retina&&this._ctx.scale(2,2),this._ctx.translate(-u.min.x,-u.min.y),this.fire("update")}},_reset:function(){ha.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(u){this._updateDashArray(u),this._layers[c(u)]=u;var p=u._order={layer:u,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=p),this._drawLast=p,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(u){this._requestRedraw(u)},_removePath:function(u){var p=u._order,w=p.next,U=p.prev;w?w.prev=U:this._drawLast=U,U?U.next=w:this._drawFirst=w,delete u._order,delete this._layers[c(u)],this._requestRedraw(u)},_updatePath:function(u){this._extendRedrawBounds(u),u._project(),u._update(),this._requestRedraw(u)},_updateStyle:function(u){this._updateDashArray(u),this._requestRedraw(u)},_updateDashArray:function(u){if(typeof u.options.dashArray=="string"){var p=u.options.dashArray.split(/[, ]+/),w=[],U,Q;for(Q=0;Q<p.length;Q++){if(U=Number(p[Q]),isNaN(U))return;w.push(U)}u.options._dashArray=w}else u.options._dashArray=u.options.dashArray},_requestRedraw:function(u){this._map&&(this._extendRedrawBounds(u),this._redrawRequest=this._redrawRequest||I(this._redraw,this))},_extendRedrawBounds:function(u){if(u._pxBounds){var p=(u.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new se,this._redrawBounds.extend(u._pxBounds.min.subtract([p,p])),this._redrawBounds.extend(u._pxBounds.max.add([p,p]))}},_redraw:function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear:function(){var u=this._redrawBounds;if(u){var p=u.getSize();this._ctx.clearRect(u.min.x,u.min.y,p.x,p.y)}else this._ctx.save(),this._ctx.setTransform(1,0,0,1,0,0),this._ctx.clearRect(0,0,this._container.width,this._container.height),this._ctx.restore()},_draw:function(){var u,p=this._redrawBounds;if(this._ctx.save(),p){var w=p.getSize();this._ctx.beginPath(),this._ctx.rect(p.min.x,p.min.y,w.x,w.y),this._ctx.clip()}this._drawing=!0;for(var U=this._drawFirst;U;U=U.next)u=U.layer,(!p||u._pxBounds&&u._pxBounds.intersects(p))&&u._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(u,p){if(this._drawing){var w,U,Q,de,Pe=u._parts,Le=Pe.length,je=this._ctx;if(Le){for(je.beginPath(),w=0;w<Le;w++){for(U=0,Q=Pe[w].length;U<Q;U++)de=Pe[w][U],je[U?"lineTo":"moveTo"](de.x,de.y);p&&je.closePath()}this._fillStroke(je,u)}}},_updateCircle:function(u){if(!(!this._drawing||u._empty())){var p=u._point,w=this._ctx,U=Math.max(Math.round(u._radius),1),Q=(Math.max(Math.round(u._radiusY),1)||U)/U;Q!==1&&(w.save(),w.scale(1,Q)),w.beginPath(),w.arc(p.x,p.y/Q,U,0,Math.PI*2,!1),Q!==1&&w.restore(),this._fillStroke(w,u)}},_fillStroke:function(u,p){var w=p.options;w.fill&&(u.globalAlpha=w.fillOpacity,u.fillStyle=w.fillColor||w.color,u.fill(w.fillRule||"evenodd")),w.stroke&&w.weight!==0&&(u.setLineDash&&u.setLineDash(p.options&&p.options._dashArray||[]),u.globalAlpha=w.opacity,u.lineWidth=w.weight,u.strokeStyle=w.color,u.lineCap=w.lineCap,u.lineJoin=w.lineJoin,u.stroke())},_onClick:function(u){for(var p=this._map.mouseEventToLayerPoint(u),w,U,Q=this._drawFirst;Q;Q=Q.next)w=Q.layer,w.options.interactive&&w._containsPoint(p)&&(!(u.type==="click"||u.type==="preclick")||!this._map._draggableMoved(w))&&(U=w);this._fireEvent(U?[U]:!1,u)},_onMouseMove:function(u){if(!(!this._map||this._map.dragging.moving()||this._map._animatingZoom)){var p=this._map.mouseEventToLayerPoint(u);this._handleMouseHover(u,p)}},_handleMouseOut:function(u){var p=this._hoveredLayer;p&&(Wn(this._container,"leaflet-interactive"),this._fireEvent([p],u,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(u,p){if(!this._mouseHoverThrottled){for(var w,U,Q=this._drawFirst;Q;Q=Q.next)w=Q.layer,w.options.interactive&&w._containsPoint(p)&&(U=w);U!==this._hoveredLayer&&(this._handleMouseOut(u),U&&(Lt(this._container,"leaflet-interactive"),this._fireEvent([U],u,"mouseover"),this._hoveredLayer=U)),this._fireEvent(this._hoveredLayer?[this._hoveredLayer]:!1,u),this._mouseHoverThrottled=!0,setTimeout(a(function(){this._mouseHoverThrottled=!1},this),32)}},_fireEvent:function(u,p,w){this._map._fireDOMEvent(p,w||p.type,u)},_bringToFront:function(u){var p=u._order;if(p){var w=p.next,U=p.prev;if(w)w.prev=U;else return;U?U.next=w:w&&(this._drawFirst=w),p.prev=this._drawLast,this._drawLast.next=p,p.next=null,this._drawLast=p,this._requestRedraw(u)}},_bringToBack:function(u){var p=u._order;if(p){var w=p.next,U=p.prev;if(U)U.next=w;else return;w?w.prev=U:U&&(this._drawLast=U),p.prev=null,p.next=this._drawFirst,this._drawFirst.prev=p,this._drawFirst=p,this._requestRedraw(u)}}});function MR(u){return pt.canvas?new DR(u):null}var Im=(function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(u){return document.createElement("<lvml:"+u+' class="lvml">')}}catch{}return function(u){return document.createElement("<"+u+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}})(),Q2e={_initContainer:function(){this._container=an("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(ha.prototype._update.call(this),this.fire("update"))},_initPath:function(u){var p=u._container=Im("shape");Lt(p,"leaflet-vml-shape "+(this.options.className||"")),p.coordsize="1 1",u._path=Im("path"),p.appendChild(u._path),this._updateStyle(u),this._layers[c(u)]=u},_addPath:function(u){var p=u._container;this._container.appendChild(p),u.options.interactive&&u.addInteractiveTarget(p)},_removePath:function(u){var p=u._container;Cn(p),u.removeInteractiveTarget(p),delete this._layers[c(u)]},_updateStyle:function(u){var p=u._stroke,w=u._fill,U=u.options,Q=u._container;Q.stroked=!!U.stroke,Q.filled=!!U.fill,U.stroke?(p||(p=u._stroke=Im("stroke")),Q.appendChild(p),p.weight=U.weight+"px",p.color=U.color,p.opacity=U.opacity,U.dashArray?p.dashStyle=B(U.dashArray)?U.dashArray.join(" "):U.dashArray.replace(/( *, *)/g," "):p.dashStyle="",p.endcap=U.lineCap.replace("butt","flat"),p.joinstyle=U.lineJoin):p&&(Q.removeChild(p),u._stroke=null),U.fill?(w||(w=u._fill=Im("fill")),Q.appendChild(w),w.color=U.fillColor||U.color,w.opacity=U.fillOpacity):w&&(Q.removeChild(w),u._fill=null)},_updateCircle:function(u){var p=u._point.round(),w=Math.round(u._radius),U=Math.round(u._radiusY||w);this._setPath(u,u._empty()?"M0 0":"AL "+p.x+","+p.y+" "+w+","+U+" 0,"+65535*360)},_setPath:function(u,p){u._path.v=p},_bringToFront:function(u){co(u._container)},_bringToBack:function(u){Di(u._container)}},lb=pt.vml?Im:J,Om=ha.extend({_initContainer:function(){this._container=lb("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=lb("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){Cn(this._container),_n(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){ha.prototype._update.call(this);var u=this._bounds,p=u.getSize(),w=this._container;(!this._svgSize||!this._svgSize.equals(p))&&(this._svgSize=p,w.setAttribute("width",p.x),w.setAttribute("height",p.y)),Hn(w,u.min),w.setAttribute("viewBox",[u.min.x,u.min.y,p.x,p.y].join(" ")),this.fire("update")}},_initPath:function(u){var p=u._path=lb("path");u.options.className&&Lt(p,u.options.className),u.options.interactive&&Lt(p,"leaflet-interactive"),this._updateStyle(u),this._layers[c(u)]=u},_addPath:function(u){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(u._path),u.addInteractiveTarget(u._path)},_removePath:function(u){Cn(u._path),u.removeInteractiveTarget(u._path),delete this._layers[c(u)]},_updatePath:function(u){u._project(),u._update()},_updateStyle:function(u){var p=u._path,w=u.options;p&&(w.stroke?(p.setAttribute("stroke",w.color),p.setAttribute("stroke-opacity",w.opacity),p.setAttribute("stroke-width",w.weight),p.setAttribute("stroke-linecap",w.lineCap),p.setAttribute("stroke-linejoin",w.lineJoin),w.dashArray?p.setAttribute("stroke-dasharray",w.dashArray):p.removeAttribute("stroke-dasharray"),w.dashOffset?p.setAttribute("stroke-dashoffset",w.dashOffset):p.removeAttribute("stroke-dashoffset")):p.setAttribute("stroke","none"),w.fill?(p.setAttribute("fill",w.fillColor||w.color),p.setAttribute("fill-opacity",w.fillOpacity),p.setAttribute("fill-rule",w.fillRule||"evenodd")):p.setAttribute("fill","none"))},_updatePoly:function(u,p){this._setPath(u,fe(u._parts,p))},_updateCircle:function(u){var p=u._point,w=Math.max(Math.round(u._radius),1),U=Math.max(Math.round(u._radiusY),1)||w,Q="a"+w+","+U+" 0 1,0 ",de=u._empty()?"M0 0":"M"+(p.x-w)+","+p.y+Q+w*2+",0 "+Q+-w*2+",0 ";this._setPath(u,de)},_setPath:function(u,p){u._path.setAttribute("d",p)},_bringToFront:function(u){co(u._path)},_bringToBack:function(u){Di(u._path)}});pt.vml&&Om.include(Q2e);function RR(u){return pt.svg||pt.vml?new Om(u):null}Rt.include({getRenderer:function(u){var p=u.options.renderer||this._getPaneRenderer(u.options.pane)||this.options.renderer||this._renderer;return p||(p=this._renderer=this._createRenderer()),this.hasLayer(p)||this.addLayer(p),p},_getPaneRenderer:function(u){if(u==="overlayPane"||u===void 0)return!1;var p=this._paneRenderers[u];return p===void 0&&(p=this._createRenderer({pane:u}),this._paneRenderers[u]=p),p},_createRenderer:function(u){return this.options.preferCanvas&&MR(u)||RR(u)}});var IR=_e.extend({initialize:function(u,p){_e.prototype.initialize.call(this,this._boundsToLatLngs(u),p)},setBounds:function(u){return this.setLatLngs(this._boundsToLatLngs(u))},_boundsToLatLngs:function(u){return u=ee(u),[u.getSouthWest(),u.getNorthWest(),u.getNorthEast(),u.getSouthEast()]}});function V2e(u,p){return new IR(u,p)}Om.create=lb,Om.pointsToPath=fe,qe.geometryToLayer=Qe,qe.coordsToLatLng=it,qe.coordsToLatLngs=Et,qe.latLngToCoords=Bt,qe.latLngsToCoords=qt,qe.getFeature=wt,qe.asFeature=Ft,Rt.mergeOptions({boxZoom:!0});var OR=uo.extend({initialize:function(u){this._map=u,this._container=u._container,this._pane=u._panes.overlayPane,this._resetStateTimeout=0,u.on("unload",this._destroy,this)},addHooks:function(){Dt(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){_n(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){Cn(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){this._resetStateTimeout!==0&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(u){if(!u.shiftKey||u.which!==1&&u.button!==1)return!1;this._clearDeferredResetState(),this._resetState(),la(),vr(),this._startPoint=this._map.mouseEventToContainerPoint(u),Dt(document,{contextmenu:ms,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(u){this._moved||(this._moved=!0,this._box=an("div","leaflet-zoom-box",this._container),Lt(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(u);var p=new se(this._point,this._startPoint),w=p.getSize();Hn(this._box,p.min),this._box.style.width=w.x+"px",this._box.style.height=w.y+"px"},_finish:function(){this._moved&&(Cn(this._box),Wn(this._container,"leaflet-crosshair")),zc(),fl(),_n(document,{contextmenu:ms,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(u){if(!(u.which!==1&&u.button!==1)&&(this._finish(),!!this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(a(this._resetState,this),0);var p=new G(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(p).fire("boxzoomend",{boxZoomBounds:p})}},_onKeyDown:function(u){u.keyCode===27&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});Rt.addInitHook("addHandler","boxZoom",OR),Rt.mergeOptions({doubleClickZoom:!0});var LR=uo.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(u){var p=this._map,w=p.getZoom(),U=p.options.zoomDelta,Q=u.originalEvent.shiftKey?w-U:w+U;p.options.doubleClickZoom==="center"?p.setZoom(Q):p.setZoomAround(u.containerPoint,Q)}});Rt.addInitHook("addHandler","doubleClickZoom",LR),Rt.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var FR=uo.extend({addHooks:function(){if(!this._draggable){var u=this._map;this._draggable=new ps(u._mapPane,u._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),u.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),u.on("zoomend",this._onZoomEnd,this),u.whenReady(this._onZoomEnd,this))}Lt(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){Wn(this._map._container,"leaflet-grab"),Wn(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var u=this._map;if(u._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var p=ee(this._map.options.maxBounds);this._offsetLimit=z(this._map.latLngToContainerPoint(p.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(p.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;u.fire("movestart").fire("dragstart"),u.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(u){if(this._map.options.inertia){var p=this._lastTime=+new Date,w=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(w),this._times.push(p),this._prunePositions(p)}this._map.fire("move",u).fire("drag",u)},_prunePositions:function(u){for(;this._positions.length>1&&u-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var u=this._map.getSize().divideBy(2),p=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=p.subtract(u).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(u,p){return u-(u-p)*this._viscosity},_onPreDragLimit:function(){if(!(!this._viscosity||!this._offsetLimit)){var u=this._draggable._newPos.subtract(this._draggable._startPos),p=this._offsetLimit;u.x<p.min.x&&(u.x=this._viscousLimit(u.x,p.min.x)),u.y<p.min.y&&(u.y=this._viscousLimit(u.y,p.min.y)),u.x>p.max.x&&(u.x=this._viscousLimit(u.x,p.max.x)),u.y>p.max.y&&(u.y=this._viscousLimit(u.y,p.max.y)),this._draggable._newPos=this._draggable._startPos.add(u)}},_onPreDragWrap:function(){var u=this._worldWidth,p=Math.round(u/2),w=this._initialWorldOffset,U=this._draggable._newPos.x,Q=(U-p+w)%u+p-w,de=(U+p+w)%u-p-w,Pe=Math.abs(Q+w)<Math.abs(de+w)?Q:de;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=Pe},_onDragEnd:function(u){var p=this._map,w=p.options,U=!w.inertia||u.noInertia||this._times.length<2;if(p.fire("dragend",u),U)p.fire("moveend");else{this._prunePositions(+new Date);var Q=this._lastPos.subtract(this._positions[0]),de=(this._lastTime-this._times[0])/1e3,Pe=w.easeLinearity,Le=Q.multiplyBy(Pe/de),je=Le.distanceTo([0,0]),Ze=Math.min(w.inertiaMaxSpeed,je),dt=Le.multiplyBy(Ze/je),At=Ze/(w.inertiaDeceleration*Pe),Yt=dt.multiplyBy(-At/2).round();!Yt.x&&!Yt.y?p.fire("moveend"):(Yt=p._limitOffset(Yt,p.options.maxBounds),I(function(){p.panBy(Yt,{duration:At,easeLinearity:Pe,noMoveStart:!0,animate:!0})}))}}});Rt.addInitHook("addHandler","dragging",FR),Rt.mergeOptions({keyboard:!0,keyboardPanDelta:80});var $R=uo.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(u){this._map=u,this._setPanDelta(u.options.keyboardPanDelta),this._setZoomDelta(u.options.zoomDelta)},addHooks:function(){var u=this._map._container;u.tabIndex<=0&&(u.tabIndex="0"),Dt(u,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),_n(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(!this._focused){var u=document.body,p=document.documentElement,w=u.scrollTop||p.scrollTop,U=u.scrollLeft||p.scrollLeft;this._map._container.focus(),window.scrollTo(U,w)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(u){var p=this._panKeys={},w=this.keyCodes,U,Q;for(U=0,Q=w.left.length;U<Q;U++)p[w.left[U]]=[-1*u,0];for(U=0,Q=w.right.length;U<Q;U++)p[w.right[U]]=[u,0];for(U=0,Q=w.down.length;U<Q;U++)p[w.down[U]]=[0,u];for(U=0,Q=w.up.length;U<Q;U++)p[w.up[U]]=[0,-1*u]},_setZoomDelta:function(u){var p=this._zoomKeys={},w=this.keyCodes,U,Q;for(U=0,Q=w.zoomIn.length;U<Q;U++)p[w.zoomIn[U]]=u;for(U=0,Q=w.zoomOut.length;U<Q;U++)p[w.zoomOut[U]]=-u},_addHooks:function(){Dt(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){_n(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(u){if(!(u.altKey||u.ctrlKey||u.metaKey)){var p=u.keyCode,w=this._map,U;if(p in this._panKeys){if(!w._panAnim||!w._panAnim._inProgress)if(U=this._panKeys[p],u.shiftKey&&(U=ce(U).multiplyBy(3)),w.options.maxBounds&&(U=w._limitOffset(ce(U),w.options.maxBounds)),w.options.worldCopyJump){var Q=w.wrapLatLng(w.unproject(w.project(w.getCenter()).add(U)));w.panTo(Q)}else w.panBy(U)}else if(p in this._zoomKeys)w.setZoom(w.getZoom()+(u.shiftKey?3:1)*this._zoomKeys[p]);else if(p===27&&w._popup&&w._popup.options.closeOnEscapeKey)w.closePopup();else return;ms(u)}}});Rt.addInitHook("addHandler","keyboard",$R),Rt.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var zR=uo.extend({addHooks:function(){Dt(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){_n(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(u){var p=jy(u),w=this._map.options.wheelDebounceTime;this._delta+=p,this._lastMousePos=this._map.mouseEventToContainerPoint(u),this._startTime||(this._startTime=+new Date);var U=Math.max(w-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(a(this._performZoom,this),U),ms(u)},_performZoom:function(){var u=this._map,p=u.getZoom(),w=this._map.options.zoomSnap||0;u._stop();var U=this._delta/(this._map.options.wheelPxPerZoomLevel*4),Q=4*Math.log(2/(1+Math.exp(-Math.abs(U))))/Math.LN2,de=w?Math.ceil(Q/w)*w:Q,Pe=u._limitZoom(p+(this._delta>0?de:-de))-p;this._delta=0,this._startTime=null,Pe&&(u.options.scrollWheelZoom==="center"?u.setZoom(p+Pe):u.setZoomAround(this._lastMousePos,p+Pe))}});Rt.addInitHook("addHandler","scrollWheelZoom",zR);var eSe=600;Rt.mergeOptions({tapHold:pt.touchNative&&pt.safari&&pt.mobile,tapTolerance:15});var jR=uo.extend({addHooks:function(){Dt(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){_n(this._map._container,"touchstart",this._onDown,this)},_onDown:function(u){if(clearTimeout(this._holdTimeout),u.touches.length===1){var p=u.touches[0];this._startPos=this._newPos=new re(p.clientX,p.clientY),this._holdTimeout=setTimeout(a(function(){this._cancel(),this._isTapValid()&&(Dt(document,"touchend",hi),Dt(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",p))},this),eSe),Dt(document,"touchend touchcancel contextmenu",this._cancel,this),Dt(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function u(){_n(document,"touchend",hi),_n(document,"touchend touchcancel",u)},_cancel:function(){clearTimeout(this._holdTimeout),_n(document,"touchend touchcancel contextmenu",this._cancel,this),_n(document,"touchmove",this._onMove,this)},_onMove:function(u){var p=u.touches[0];this._newPos=new re(p.clientX,p.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(u,p){var w=new MouseEvent(u,{bubbles:!0,cancelable:!0,view:window,screenX:p.screenX,screenY:p.screenY,clientX:p.clientX,clientY:p.clientY});w._simulated=!0,p.target.dispatchEvent(w)}});Rt.addInitHook("addHandler","tapHold",jR),Rt.mergeOptions({touchZoom:pt.touch,bounceAtZoomLimits:!0});var UR=uo.extend({addHooks:function(){Lt(this._map._container,"leaflet-touch-zoom"),Dt(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){Wn(this._map._container,"leaflet-touch-zoom"),_n(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(u){var p=this._map;if(!(!u.touches||u.touches.length!==2||p._animatingZoom||this._zooming)){var w=p.mouseEventToContainerPoint(u.touches[0]),U=p.mouseEventToContainerPoint(u.touches[1]);this._centerPoint=p.getSize()._divideBy(2),this._startLatLng=p.containerPointToLatLng(this._centerPoint),p.options.touchZoom!=="center"&&(this._pinchStartLatLng=p.containerPointToLatLng(w.add(U)._divideBy(2))),this._startDist=w.distanceTo(U),this._startZoom=p.getZoom(),this._moved=!1,this._zooming=!0,p._stop(),Dt(document,"touchmove",this._onTouchMove,this),Dt(document,"touchend touchcancel",this._onTouchEnd,this),hi(u)}},_onTouchMove:function(u){if(!(!u.touches||u.touches.length!==2||!this._zooming)){var p=this._map,w=p.mouseEventToContainerPoint(u.touches[0]),U=p.mouseEventToContainerPoint(u.touches[1]),Q=w.distanceTo(U)/this._startDist;if(this._zoom=p.getScaleZoom(Q,this._startZoom),!p.options.bounceAtZoomLimits&&(this._zoom<p.getMinZoom()&&Q<1||this._zoom>p.getMaxZoom()&&Q>1)&&(this._zoom=p._limitZoom(this._zoom)),p.options.touchZoom==="center"){if(this._center=this._startLatLng,Q===1)return}else{var de=w._add(U)._divideBy(2)._subtract(this._centerPoint);if(Q===1&&de.x===0&&de.y===0)return;this._center=p.unproject(p.project(this._pinchStartLatLng,this._zoom).subtract(de),this._zoom)}this._moved||(p._moveStart(!0,!1),this._moved=!0),O(this._animRequest);var Pe=a(p._move,p,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=I(Pe,this,!0),hi(u)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,O(this._animRequest),_n(document,"touchmove",this._onTouchMove,this),_n(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))}});Rt.addInitHook("addHandler","touchZoom",UR),Rt.BoxZoom=OR,Rt.DoubleClickZoom=LR,Rt.Drag=FR,Rt.Keyboard=$R,Rt.ScrollWheelZoom=zR,Rt.TapHold=jR,Rt.TouchZoom=UR,n.Bounds=se,n.Browser=pt,n.CRS=F,n.Canvas=DR,n.Circle=me,n.CircleMarker=V,n.Class=X,n.Control=Or,n.DivIcon=PR,n.DivOverlay=Pn,n.DomEvent=R1,n.DomUtil=M1,n.Draggable=ps,n.Evented=te,n.FeatureGroup=fo,n.GeoJSON=qe,n.GridLayer=Rm,n.Handler=uo,n.Icon=fa,n.ImageOverlay=qn,n.LatLng=K,n.LatLngBounds=G,n.Layer=wr,n.LayerGroup=ua,n.LineUtil=da,n.Map=Rt,n.Marker=Yc,n.Mixin=L1,n.Path=H,n.Point=re,n.PolyUtil=F1,n.Polygon=_e,n.Polyline=ie,n.Popup=Lr,n.PosAnimation=Kc,n.Projection=eb,n.Rectangle=IR,n.Renderer=ha,n.SVG=Om,n.SVGOverlay=li,n.TileLayer=zu,n.Tooltip=ab,n.Transformation=S,n.Util=q,n.VideoOverlay=ut,n.bind=a,n.bounds=z,n.canvas=MR,n.circle=xe,n.circleMarker=le,n.control=hl,n.divIcon=Z2e,n.extend=r,n.featureGroup=rb,n.geoJSON=Mt,n.geoJson=Kt,n.gridLayer=X2e,n.icon=ob,n.imageOverlay=Ct,n.latLng=Y,n.latLngBounds=ee,n.layerGroup=ib,n.map=I1,n.marker=sb,n.point=ce,n.polygon=ze,n.polyline=he,n.popup=j1,n.rectangle=V2e,n.setOptions=y,n.stamp=c,n.svg=RR,n.svgOverlay=Kn,n.tileLayer=BR,n.tooltip=Y2e,n.transformation=T,n.version=i,n.videoOverlay=bi;var tSe=window.L;n.noConflict=function(){return window.L=tSe,this},window.L=n}))})(Ff,Ff.exports)),Ff.exports}var HG=WG();const rw=Xm(HG),qG={class:"flex flex-col gap-1 w-full relative"},KG={key:0,class:"h-4 w-32 rounded bg-gray-200 dark:bg-gray-700 animate-shimmer mb-1"},GG={class:"flex items-center justify-between mb-0.5"},YG={key:0,class:"text-sm font-medium text-gray-700 dark:text-gray-200"},ZG={key:0,class:"ml-1 text-destructive"},XG={key:0,class:"flex flex-col gap-2 mb-2 w-full relative"},JG={class:"flex flex-col sm:flex-row gap-2 w-full relative"},QG={class:"px-3 py-2 text-sm text-gray-500 dark:text-gray-400 h-10 flex items-center"},VG={key:0},eY={key:1},tY={key:2},nY={key:1,class:"flex-1 grid grid-cols-2 gap-2"},iY=["disabled"],rY=["disabled"],oY={class:"flex gap-2 flex-shrink-0"},sY={key:0,class:"absolute inset-0 z-[1001] bg-transparent cursor-not-allowed pointer-events-auto"},aY={key:1,class:"absolute bottom-2.5 left-2.5 z-[1000] bg-white/95 dark:bg-neutral-900/95 backdrop-blur-sm border border-gray-200 dark:border-neutral-800 rounded-md px-2.5 py-1 text-[11px] font-mono text-gray-700 dark:text-gray-300 shadow-md flex items-center gap-1.5 pointer-events-none select-none"},lY={key:1,class:"text-xs text-destructive mt-1"},kg=o.defineComponent({name:"DCodeMapField",inheritAttrs:!1,__name:"DCodeMapField",props:{modelValue:{},valueFormat:{default:"object-lat-lng"},label:{},placeholder:{default:"Cari alamat atau lokasi..."},disabled:{type:[Boolean,String],default:!1},readonly:{type:Boolean,default:!1},visible:{type:Boolean,default:!0},skeleton:{type:Boolean,default:!1},error:{default:null},height:{default:"320px"},zoom:{default:13},defaultLat:{default:-.9492},defaultLng:{default:100.42},enableSearch:{type:Boolean,default:!0},enableCurrentLocation:{type:Boolean,default:!0},enableManualInput:{type:Boolean,default:!1},required:{type:Boolean,default:!1}},emits:["update:modelValue","change"],setup(e,{emit:t}){const n=o.useAttrs(),i=e,r=t,a=`app-map-container-${Math.random().toString(36).slice(2,7)}`,l=o.computed(()=>i.label??n.label),c=o.computed(()=>{const z=n.required,G=n["aria-required"];return z===""||z===!0||z==="true"||G==="true"||G===!0||i.required}),d=o.ref(!1),f=o.ref(!1),h=o.ref([]),m=o.ref(null),g=o.ref(""),v=o.ref(""),y=o.ref(""),A=o.ref(i.enableManualInput?"manual":"search");o.watch(()=>[i.enableSearch,i.enableManualInput],()=>{i.enableManualInput?A.value="manual":A.value="search"},{immediate:!0});let C=null,M=null,B=null,N=null;const j=z=>{if(!z)return null;if(typeof z=="object"){if(Array.isArray(z)){if(z.length>=2){const K=Number(z[0]),Y=Number(z[1]);if(!isNaN(K)&&!isNaN(Y))return i.valueFormat==="array-lng-lat"?{lat:Y,lng:K}:{lat:K,lng:Y}}return null}const G=Number(z.lat!==void 0?z.lat:z.latitude),ee=Number(z.lng!==void 0?z.lng:z.longitude);if(!isNaN(G)&&!isNaN(ee))return{lat:G,lng:ee}}else if(typeof z=="string"){const G=z.split(",").map(ee=>Number(ee.trim()));if(G.length>=2&&!isNaN(G[0])&&!isNaN(G[1]))return{lat:G[0],lng:G[1]}}return null},W=z=>{const G=Number(z.lat.toFixed(6)),ee=Number(z.lng.toFixed(6));switch(i.valueFormat){case"object-latitude-longitude":return{latitude:G,longitude:ee};case"array-lat-lng":return[G,ee];case"array-lng-lat":return[ee,G];case"string":return`${G},${ee}`;case"object-lat-lng":default:return{lat:G,lng:ee}}},P=o.ref(null);o.watch(()=>i.modelValue,z=>{const G=j(z);G?(!P.value||Math.abs(P.value.lat-G.lat)>1e-6||Math.abs(P.value.lng-G.lng)>1e-6)&&(P.value=G,v.value=G.lat.toFixed(6),y.value=G.lng.toFixed(6),X(G.lat,G.lng,!0)):(z==null||z==="")&&(P.value=null,v.value="",y.value="",m.value=null,M&&C&&(C.removeLayer(M),M=null))},{deep:!0,immediate:!0});const E=(z,G)=>{if(!C||!G)return;const ee=z?"https://{s}.basemaps.cartocdn.com/dark_all/{z}/{x}/{y}{r}.png":"https://{s}.basemaps.cartocdn.com/rastertiles/voyager/{z}/{x}/{y}{r}.png",K=z?'&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors &copy; <a href="https://carto.com/attributions">CARTO</a>':'&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> &copy; <a href="https://carto.com/attributions">CARTO</a>';B&&C.removeLayer(B),B=G.tileLayer(ee,{attribution:K,maxZoom:20}).addTo(C)},k=z=>z.divIcon({className:"custom-map-marker-container",html:`
132
+ */var UG=Ff.exports,SS;function WG(){return SS||(SS=1,(function(e,t){(function(n,i){i(t)})(UG,(function(n){var i="1.9.4";function r(u){var p,w,U,Q;for(w=1,U=arguments.length;w<U;w++){Q=arguments[w];for(p in Q)u[p]=Q[p]}return u}var s=Object.create||(function(){function u(){}return function(p){return u.prototype=p,new u}})();function a(u,p){var w=Array.prototype.slice;if(u.bind)return u.bind.apply(u,w.call(arguments,1));var U=w.call(arguments,2);return function(){return u.apply(p,U.length?U.concat(w.call(arguments)):arguments)}}var l=0;function c(u){return"_leaflet_id"in u||(u._leaflet_id=++l),u._leaflet_id}function d(u,p,w){var U,Q,de,Pe;return Pe=function(){U=!1,Q&&(de.apply(w,Q),Q=!1)},de=function(){U?Q=arguments:(u.apply(w,arguments),setTimeout(Pe,p),U=!0)},de}function f(u,p,w){var U=p[1],Q=p[0],de=U-Q;return u===U&&w?u:((u-Q)%de+de)%de+Q}function h(){return!1}function m(u,p){if(p===!1)return u;var w=Math.pow(10,p===void 0?6:p);return Math.round(u*w)/w}function g(u){return u.trim?u.trim():u.replace(/^\s+|\s+$/g,"")}function v(u){return g(u).split(/\s+/)}function y(u,p){Object.prototype.hasOwnProperty.call(u,"options")||(u.options=u.options?s(u.options):{});for(var w in p)u.options[w]=p[w];return u.options}function A(u,p,w){var U=[];for(var Q in u)U.push(encodeURIComponent(w?Q.toUpperCase():Q)+"="+encodeURIComponent(u[Q]));return(!p||p.indexOf("?")===-1?"?":"&")+U.join("&")}var C=/\{ *([\w_ -]+) *\}/g;function M(u,p){return u.replace(C,function(w,U){var Q=p[U];if(Q===void 0)throw new Error("No value provided for variable "+w);return typeof Q=="function"&&(Q=Q(p)),Q})}var B=Array.isArray||function(u){return Object.prototype.toString.call(u)==="[object Array]"};function N(u,p){for(var w=0;w<u.length;w++)if(u[w]===p)return w;return-1}var j="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function W(u){return window["webkit"+u]||window["moz"+u]||window["ms"+u]}var P=0;function E(u){var p=+new Date,w=Math.max(0,16-(p-P));return P=p+w,window.setTimeout(u,w)}var k=window.requestAnimationFrame||W("RequestAnimationFrame")||E,$=window.cancelAnimationFrame||W("CancelAnimationFrame")||W("CancelRequestAnimationFrame")||function(u){window.clearTimeout(u)};function I(u,p,w){if(w&&k===E)u.call(p);else return k.call(window,a(u,p))}function O(u){u&&$.call(window,u)}var q={__proto__:null,extend:r,create:s,bind:a,get lastId(){return l},stamp:c,throttle:d,wrapNum:f,falseFn:h,formatNum:m,trim:g,splitWords:v,setOptions:y,getParamString:A,template:M,isArray:B,indexOf:N,emptyImageUrl:j,requestFn:k,cancelFn:$,requestAnimFrame:I,cancelAnimFrame:O};function X(){}X.extend=function(u){var p=function(){y(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},w=p.__super__=this.prototype,U=s(w);U.constructor=p,p.prototype=U;for(var Q in this)Object.prototype.hasOwnProperty.call(this,Q)&&Q!=="prototype"&&Q!=="__super__"&&(p[Q]=this[Q]);return u.statics&&r(p,u.statics),u.includes&&(oe(u.includes),r.apply(null,[U].concat(u.includes))),r(U,u),delete U.statics,delete U.includes,U.options&&(U.options=w.options?s(w.options):{},r(U.options,u.options)),U._initHooks=[],U.callInitHooks=function(){if(!this._initHooksCalled){w.callInitHooks&&w.callInitHooks.call(this),this._initHooksCalled=!0;for(var de=0,Pe=U._initHooks.length;de<Pe;de++)U._initHooks[de].call(this)}},p},X.include=function(u){var p=this.prototype.options;return r(this.prototype,u),u.options&&(this.prototype.options=p,this.mergeOptions(u.options)),this},X.mergeOptions=function(u){return r(this.prototype.options,u),this},X.addInitHook=function(u){var p=Array.prototype.slice.call(arguments,1),w=typeof u=="function"?u:function(){this[u].apply(this,p)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(w),this};function oe(u){if(!(typeof L>"u"||!L||!L.Mixin)){u=B(u)?u:[u];for(var p=0;p<u.length;p++)u[p]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",new Error().stack)}}var ue={on:function(u,p,w){if(typeof u=="object")for(var U in u)this._on(U,u[U],p);else{u=v(u);for(var Q=0,de=u.length;Q<de;Q++)this._on(u[Q],p,w)}return this},off:function(u,p,w){if(!arguments.length)delete this._events;else if(typeof u=="object")for(var U in u)this._off(U,u[U],p);else{u=v(u);for(var Q=arguments.length===1,de=0,Pe=u.length;de<Pe;de++)Q?this._off(u[de]):this._off(u[de],p,w)}return this},_on:function(u,p,w,U){if(typeof p!="function"){console.warn("wrong listener type: "+typeof p);return}if(this._listens(u,p,w)===!1){w===this&&(w=void 0);var Q={fn:p,ctx:w};U&&(Q.once=!0),this._events=this._events||{},this._events[u]=this._events[u]||[],this._events[u].push(Q)}},_off:function(u,p,w){var U,Q,de;if(this._events&&(U=this._events[u],!!U)){if(arguments.length===1){if(this._firingCount)for(Q=0,de=U.length;Q<de;Q++)U[Q].fn=h;delete this._events[u];return}if(typeof p!="function"){console.warn("wrong listener type: "+typeof p);return}var Pe=this._listens(u,p,w);if(Pe!==!1){var Le=U[Pe];this._firingCount&&(Le.fn=h,this._events[u]=U=U.slice()),U.splice(Pe,1)}}},fire:function(u,p,w){if(!this.listens(u,w))return this;var U=r({},p,{type:u,target:this,sourceTarget:p&&p.sourceTarget||this});if(this._events){var Q=this._events[u];if(Q){this._firingCount=this._firingCount+1||1;for(var de=0,Pe=Q.length;de<Pe;de++){var Le=Q[de],je=Le.fn;Le.once&&this.off(u,je,Le.ctx),je.call(Le.ctx||this,U)}this._firingCount--}}return w&&this._propagateEvent(U),this},listens:function(u,p,w,U){typeof u!="string"&&console.warn('"string" type argument expected');var Q=p;typeof p!="function"&&(U=!!p,Q=void 0,w=void 0);var de=this._events&&this._events[u];if(de&&de.length&&this._listens(u,Q,w)!==!1)return!0;if(U){for(var Pe in this._eventParents)if(this._eventParents[Pe].listens(u,p,w,U))return!0}return!1},_listens:function(u,p,w){if(!this._events)return!1;var U=this._events[u]||[];if(!p)return!!U.length;w===this&&(w=void 0);for(var Q=0,de=U.length;Q<de;Q++)if(U[Q].fn===p&&U[Q].ctx===w)return Q;return!1},once:function(u,p,w){if(typeof u=="object")for(var U in u)this._on(U,u[U],p,!0);else{u=v(u);for(var Q=0,de=u.length;Q<de;Q++)this._on(u[Q],p,w,!0)}return this},addEventParent:function(u){return this._eventParents=this._eventParents||{},this._eventParents[c(u)]=u,this},removeEventParent:function(u){return this._eventParents&&delete this._eventParents[c(u)],this},_propagateEvent:function(u){for(var p in this._eventParents)this._eventParents[p].fire(u.type,r({layer:u.target,propagatedFrom:u.target},u),!0)}};ue.addEventListener=ue.on,ue.removeEventListener=ue.clearAllEventListeners=ue.off,ue.addOneTimeEventListener=ue.once,ue.fireEvent=ue.fire,ue.hasEventListeners=ue.listens;var te=X.extend(ue);function re(u,p,w){this.x=w?Math.round(u):u,this.y=w?Math.round(p):p}var ge=Math.trunc||function(u){return u>0?Math.floor(u):Math.ceil(u)};re.prototype={clone:function(){return new re(this.x,this.y)},add:function(u){return this.clone()._add(ce(u))},_add:function(u){return this.x+=u.x,this.y+=u.y,this},subtract:function(u){return this.clone()._subtract(ce(u))},_subtract:function(u){return this.x-=u.x,this.y-=u.y,this},divideBy:function(u){return this.clone()._divideBy(u)},_divideBy:function(u){return this.x/=u,this.y/=u,this},multiplyBy:function(u){return this.clone()._multiplyBy(u)},_multiplyBy:function(u){return this.x*=u,this.y*=u,this},scaleBy:function(u){return new re(this.x*u.x,this.y*u.y)},unscaleBy:function(u){return new re(this.x/u.x,this.y/u.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=ge(this.x),this.y=ge(this.y),this},distanceTo:function(u){u=ce(u);var p=u.x-this.x,w=u.y-this.y;return Math.sqrt(p*p+w*w)},equals:function(u){return u=ce(u),u.x===this.x&&u.y===this.y},contains:function(u){return u=ce(u),Math.abs(u.x)<=Math.abs(this.x)&&Math.abs(u.y)<=Math.abs(this.y)},toString:function(){return"Point("+m(this.x)+", "+m(this.y)+")"}};function ce(u,p,w){return u instanceof re?u:B(u)?new re(u[0],u[1]):u==null?u:typeof u=="object"&&"x"in u&&"y"in u?new re(u.x,u.y):new re(u,p,w)}function se(u,p){if(u)for(var w=p?[u,p]:u,U=0,Q=w.length;U<Q;U++)this.extend(w[U])}se.prototype={extend:function(u){var p,w;if(!u)return this;if(u instanceof re||typeof u[0]=="number"||"x"in u)p=w=ce(u);else if(u=z(u),p=u.min,w=u.max,!p||!w)return this;return!this.min&&!this.max?(this.min=p.clone(),this.max=w.clone()):(this.min.x=Math.min(p.x,this.min.x),this.max.x=Math.max(w.x,this.max.x),this.min.y=Math.min(p.y,this.min.y),this.max.y=Math.max(w.y,this.max.y)),this},getCenter:function(u){return ce((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,u)},getBottomLeft:function(){return ce(this.min.x,this.max.y)},getTopRight:function(){return ce(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(u){var p,w;return typeof u[0]=="number"||u instanceof re?u=ce(u):u=z(u),u instanceof se?(p=u.min,w=u.max):p=w=u,p.x>=this.min.x&&w.x<=this.max.x&&p.y>=this.min.y&&w.y<=this.max.y},intersects:function(u){u=z(u);var p=this.min,w=this.max,U=u.min,Q=u.max,de=Q.x>=p.x&&U.x<=w.x,Pe=Q.y>=p.y&&U.y<=w.y;return de&&Pe},overlaps:function(u){u=z(u);var p=this.min,w=this.max,U=u.min,Q=u.max,de=Q.x>p.x&&U.x<w.x,Pe=Q.y>p.y&&U.y<w.y;return de&&Pe},isValid:function(){return!!(this.min&&this.max)},pad:function(u){var p=this.min,w=this.max,U=Math.abs(p.x-w.x)*u,Q=Math.abs(p.y-w.y)*u;return z(ce(p.x-U,p.y-Q),ce(w.x+U,w.y+Q))},equals:function(u){return u?(u=z(u),this.min.equals(u.getTopLeft())&&this.max.equals(u.getBottomRight())):!1}};function z(u,p){return!u||u instanceof se?u:new se(u,p)}function G(u,p){if(u)for(var w=p?[u,p]:u,U=0,Q=w.length;U<Q;U++)this.extend(w[U])}G.prototype={extend:function(u){var p=this._southWest,w=this._northEast,U,Q;if(u instanceof K)U=u,Q=u;else if(u instanceof G){if(U=u._southWest,Q=u._northEast,!U||!Q)return this}else return u?this.extend(Y(u)||ee(u)):this;return!p&&!w?(this._southWest=new K(U.lat,U.lng),this._northEast=new K(Q.lat,Q.lng)):(p.lat=Math.min(U.lat,p.lat),p.lng=Math.min(U.lng,p.lng),w.lat=Math.max(Q.lat,w.lat),w.lng=Math.max(Q.lng,w.lng)),this},pad:function(u){var p=this._southWest,w=this._northEast,U=Math.abs(p.lat-w.lat)*u,Q=Math.abs(p.lng-w.lng)*u;return new G(new K(p.lat-U,p.lng-Q),new K(w.lat+U,w.lng+Q))},getCenter:function(){return new K((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new K(this.getNorth(),this.getWest())},getSouthEast:function(){return new K(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(u){typeof u[0]=="number"||u instanceof K||"lat"in u?u=Y(u):u=ee(u);var p=this._southWest,w=this._northEast,U,Q;return u instanceof G?(U=u.getSouthWest(),Q=u.getNorthEast()):U=Q=u,U.lat>=p.lat&&Q.lat<=w.lat&&U.lng>=p.lng&&Q.lng<=w.lng},intersects:function(u){u=ee(u);var p=this._southWest,w=this._northEast,U=u.getSouthWest(),Q=u.getNorthEast(),de=Q.lat>=p.lat&&U.lat<=w.lat,Pe=Q.lng>=p.lng&&U.lng<=w.lng;return de&&Pe},overlaps:function(u){u=ee(u);var p=this._southWest,w=this._northEast,U=u.getSouthWest(),Q=u.getNorthEast(),de=Q.lat>p.lat&&U.lat<w.lat,Pe=Q.lng>p.lng&&U.lng<w.lng;return de&&Pe},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(u,p){return u?(u=ee(u),this._southWest.equals(u.getSouthWest(),p)&&this._northEast.equals(u.getNorthEast(),p)):!1},isValid:function(){return!!(this._southWest&&this._northEast)}};function ee(u,p){return u instanceof G?u:new G(u,p)}function K(u,p,w){if(isNaN(u)||isNaN(p))throw new Error("Invalid LatLng object: ("+u+", "+p+")");this.lat=+u,this.lng=+p,w!==void 0&&(this.alt=+w)}K.prototype={equals:function(u,p){if(!u)return!1;u=Y(u);var w=Math.max(Math.abs(this.lat-u.lat),Math.abs(this.lng-u.lng));return w<=(p===void 0?1e-9:p)},toString:function(u){return"LatLng("+m(this.lat,u)+", "+m(this.lng,u)+")"},distanceTo:function(u){return _.distance(this,Y(u))},wrap:function(){return _.wrapLatLng(this)},toBounds:function(u){var p=180*u/40075017,w=p/Math.cos(Math.PI/180*this.lat);return ee([this.lat-p,this.lng-w],[this.lat+p,this.lng+w])},clone:function(){return new K(this.lat,this.lng,this.alt)}};function Y(u,p,w){return u instanceof K?u:B(u)&&typeof u[0]!="object"?u.length===3?new K(u[0],u[1],u[2]):u.length===2?new K(u[0],u[1]):null:u==null?u:typeof u=="object"&&"lat"in u?new K(u.lat,"lng"in u?u.lng:u.lon,u.alt):p===void 0?null:new K(u,p,w)}var F={latLngToPoint:function(u,p){var w=this.projection.project(u),U=this.scale(p);return this.transformation._transform(w,U)},pointToLatLng:function(u,p){var w=this.scale(p),U=this.transformation.untransform(u,w);return this.projection.unproject(U)},project:function(u){return this.projection.project(u)},unproject:function(u){return this.projection.unproject(u)},scale:function(u){return 256*Math.pow(2,u)},zoom:function(u){return Math.log(u/256)/Math.LN2},getProjectedBounds:function(u){if(this.infinite)return null;var p=this.projection.bounds,w=this.scale(u),U=this.transformation.transform(p.min,w),Q=this.transformation.transform(p.max,w);return new se(U,Q)},infinite:!1,wrapLatLng:function(u){var p=this.wrapLng?f(u.lng,this.wrapLng,!0):u.lng,w=this.wrapLat?f(u.lat,this.wrapLat,!0):u.lat,U=u.alt;return new K(w,p,U)},wrapLatLngBounds:function(u){var p=u.getCenter(),w=this.wrapLatLng(p),U=p.lat-w.lat,Q=p.lng-w.lng;if(U===0&&Q===0)return u;var de=u.getSouthWest(),Pe=u.getNorthEast(),Le=new K(de.lat-U,de.lng-Q),je=new K(Pe.lat-U,Pe.lng-Q);return new G(Le,je)}},_=r({},F,{wrapLng:[-180,180],R:6371e3,distance:function(u,p){var w=Math.PI/180,U=u.lat*w,Q=p.lat*w,de=Math.sin((p.lat-u.lat)*w/2),Pe=Math.sin((p.lng-u.lng)*w/2),Le=de*de+Math.cos(U)*Math.cos(Q)*Pe*Pe,je=2*Math.atan2(Math.sqrt(Le),Math.sqrt(1-Le));return this.R*je}}),b=6378137,R={R:b,MAX_LATITUDE:85.0511287798,project:function(u){var p=Math.PI/180,w=this.MAX_LATITUDE,U=Math.max(Math.min(w,u.lat),-w),Q=Math.sin(U*p);return new re(this.R*u.lng*p,this.R*Math.log((1+Q)/(1-Q))/2)},unproject:function(u){var p=180/Math.PI;return new K((2*Math.atan(Math.exp(u.y/this.R))-Math.PI/2)*p,u.x*p/this.R)},bounds:(function(){var u=b*Math.PI;return new se([-u,-u],[u,u])})()};function S(u,p,w,U){if(B(u)){this._a=u[0],this._b=u[1],this._c=u[2],this._d=u[3];return}this._a=u,this._b=p,this._c=w,this._d=U}S.prototype={transform:function(u,p){return this._transform(u.clone(),p)},_transform:function(u,p){return p=p||1,u.x=p*(this._a*u.x+this._b),u.y=p*(this._c*u.y+this._d),u},untransform:function(u,p){return p=p||1,new re((u.x/p-this._b)/this._a,(u.y/p-this._d)/this._c)}};function T(u,p,w,U){return new S(u,p,w,U)}var D=r({},_,{code:"EPSG:3857",projection:R,transformation:(function(){var u=.5/(Math.PI*R.R);return T(u,.5,-u,.5)})()}),Z=r({},D,{code:"EPSG:900913"});function J(u){return document.createElementNS("http://www.w3.org/2000/svg",u)}function fe(u,p){var w="",U,Q,de,Pe,Le,je;for(U=0,de=u.length;U<de;U++){for(Le=u[U],Q=0,Pe=Le.length;Q<Pe;Q++)je=Le[Q],w+=(Q?"L":"M")+je.x+" "+je.y;w+=p?pt.svg?"z":"x":""}return w||"M0 0"}var ae=document.documentElement.style,we="ActiveXObject"in window,pe=we&&!document.addEventListener,ke="msLaunchUri"in navigator&&!("documentMode"in document),be=ki("webkit"),Se=ki("android"),ve=ki("android 2")||ki("android 3"),Be=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),Ee=Se&&ki("Google")&&Be<537&&!("AudioNode"in window),Oe=!!window.opera,Ae=!ke&&ki("chrome"),Re=ki("gecko")&&!be&&!Oe&&!we,De=!Ae&&ki("safari"),Ie=ki("phantom"),Ce="OTransition"in ae,ne=navigator.platform.indexOf("Win")===0,ye=we&&"transition"in ae,Me="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!ve,Ke="MozPerspective"in ae,$e=!window.L_DISABLE_3D&&(ye||Me||Ke)&&!Ce&&!Ie,He=typeof orientation<"u"||ki("mobile"),rt=He&&be,Ve=He&&Me,Fe=!window.PointerEvent&&window.MSPointerEvent,Ue=!!(window.PointerEvent||Fe),at="ontouchstart"in window||!!window.TouchEvent,nt=!window.L_NO_TOUCH&&(at||Ue),Tt=He&&Oe,fi=He&&Re,hn=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,Jt=(function(){var u=!1;try{var p=Object.defineProperty({},"passive",{get:function(){u=!0}});window.addEventListener("testPassiveEventSupport",h,p),window.removeEventListener("testPassiveEventSupport",h,p)}catch{}return u})(),cn=(function(){return!!document.createElement("canvas").getContext})(),vn=!!(document.createElementNS&&J("svg").createSVGRect),gr=!!vn&&(function(){var u=document.createElement("div");return u.innerHTML="<svg/>",(u.firstChild&&u.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"})(),Do=!vn&&(function(){try{var u=document.createElement("div");u.innerHTML='<v:shape adj="1"/>';var p=u.firstChild;return p.style.behavior="url(#default#VML)",p&&typeof p.adj=="object"}catch{return!1}})(),Bi=navigator.platform.indexOf("Mac")===0,Ic=navigator.platform.indexOf("Linux")===0;function ki(u){return navigator.userAgent.toLowerCase().indexOf(u)>=0}var pt={ie:we,ielt9:pe,edge:ke,webkit:be,android:Se,android23:ve,androidStock:Ee,opera:Oe,chrome:Ae,gecko:Re,safari:De,phantom:Ie,opera12:Ce,win:ne,ie3d:ye,webkit3d:Me,gecko3d:Ke,any3d:$e,mobile:He,mobileWebkit:rt,mobileWebkit3d:Ve,msPointer:Fe,pointer:Ue,touch:nt,touchNative:at,mobileOpera:Tt,mobileGecko:fi,retina:hn,passiveEvents:Jt,canvas:cn,svg:vn,vml:Do,inlineSvg:gr,mac:Bi,linux:Ic},yr=pt.msPointer?"MSPointerDown":"pointerdown",Tu=pt.msPointer?"MSPointerMove":"pointermove",ai=pt.msPointer?"MSPointerUp":"pointerup",cl=pt.msPointer?"MSPointerCancel":"pointercancel",ym={touchstart:yr,touchmove:Tu,touchend:ai,touchcancel:cl},Mo={touchstart:Oc,touchmove:Nu,touchend:Nu,touchcancel:Nu},sa={},Pu=!1;function Bu(u,p,w){return p==="touchstart"&&B1(),Mo[p]?(w=Mo[p].bind(this,w),u.addEventListener(ym[p],w,!1),w):(console.warn("wrong event specified:",p),h)}function Fy(u,p,w){if(!ym[p]){console.warn("wrong event specified:",p);return}u.removeEventListener(ym[p],w,!1)}function T1(u){sa[u.pointerId]=u}function P1(u){sa[u.pointerId]&&(sa[u.pointerId]=u)}function $y(u){delete sa[u.pointerId]}function B1(){Pu||(document.addEventListener(yr,T1,!0),document.addEventListener(Tu,P1,!0),document.addEventListener(ai,$y,!0),document.addEventListener(cl,$y,!0),Pu=!0)}function Nu(u,p){if(p.pointerType!==(p.MSPOINTER_TYPE_MOUSE||"mouse")){p.touches=[];for(var w in sa)p.touches.push(sa[w]);p.changedTouches=[p],u(p)}}function Oc(u,p){p.MSPOINTER_TYPE_TOUCH&&p.pointerType===p.MSPOINTER_TYPE_TOUCH&&hi(p),Nu(u,p)}function On(u){var p={},w,U;for(U in u)w=u[U],p[U]=w&&w.bind?w.bind(u):w;return u=p,p.type="dblclick",p.detail=2,p.isTrusted=!1,p._simulated=!0,p}var Du=200;function N1(u,p){u.addEventListener("dblclick",p);var w=0,U;function Q(de){if(de.detail!==1){U=de.detail;return}if(!(de.pointerType==="mouse"||de.sourceCapabilities&&!de.sourceCapabilities.firesTouchEvents)){var Pe=km(de);if(!(Pe.some(function(je){return je instanceof HTMLLabelElement&&je.attributes.for})&&!Pe.some(function(je){return je instanceof HTMLInputElement||je instanceof HTMLSelectElement}))){var Le=Date.now();Le-w<=Du?(U++,U===2&&p(On(de))):U=1,w=Le}}}return u.addEventListener("click",Q),{dblclick:p,simDblclick:Q}}function D1(u,p){u.removeEventListener("dblclick",p.dblclick),u.removeEventListener("click",p.simDblclick)}var dl=$c(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),aa=$c(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),lo=aa==="webkitTransition"||aa==="OTransition"?aa+"End":"transitionend";function Lc(u){return typeof u=="string"?document.getElementById(u):u}function ul(u,p){var w=u.style[p]||u.currentStyle&&u.currentStyle[p];if((!w||w==="auto")&&document.defaultView){var U=document.defaultView.getComputedStyle(u,null);w=U?U[p]:null}return w==="auto"?null:w}function an(u,p,w){var U=document.createElement(u);return U.className=p||"",w&&w.appendChild(U),U}function Cn(u){var p=u.parentNode;p&&p.removeChild(u)}function Ni(u){for(;u.firstChild;)u.removeChild(u.firstChild)}function co(u){var p=u.parentNode;p&&p.lastChild!==u&&p.appendChild(u)}function Di(u){var p=u.parentNode;p&&p.firstChild!==u&&p.insertBefore(u,p.firstChild)}function Dn(u,p){if(u.classList!==void 0)return u.classList.contains(p);var w=Mu(u);return w.length>0&&new RegExp("(^|\\s)"+p+"(\\s|$)").test(w)}function Lt(u,p){if(u.classList!==void 0)for(var w=v(p),U=0,Q=w.length;U<Q;U++)u.classList.add(w[U]);else if(!Dn(u,p)){var de=Mu(u);Fc(u,(de?de+" ":"")+p)}}function Wn(u,p){u.classList!==void 0?u.classList.remove(p):Fc(u,g((" "+Mu(u)+" ").replace(" "+p+" "," ")))}function Fc(u,p){u.className.baseVal===void 0?u.className=p:u.className.baseVal=p}function Mu(u){return u.correspondingElement&&(u=u.correspondingElement),u.className.baseVal===void 0?u.className:u.className.baseVal}function br(u,p){"opacity"in u.style?u.style.opacity=p:"filter"in u.style&&zy(u,p)}function zy(u,p){var w=!1,U="DXImageTransform.Microsoft.Alpha";try{w=u.filters.item(U)}catch{if(p===1)return}p=Math.round(p*100),w?(w.Enabled=p!==100,w.Opacity=p):u.style.filter+=" progid:"+U+"(opacity="+p+")"}function $c(u){for(var p=document.documentElement.style,w=0;w<u.length;w++)if(u[w]in p)return u[w];return!1}function fs(u,p,w){var U=p||new re(0,0);u.style[dl]=(pt.ie3d?"translate("+U.x+"px,"+U.y+"px)":"translate3d("+U.x+"px,"+U.y+"px,0)")+(w?" scale("+w+")":"")}function Hn(u,p){u._leaflet_pos=p,pt.any3d?fs(u,p):(u.style.left=p.x+"px",u.style.top=p.y+"px")}function Ro(u){return u._leaflet_pos||new re(0,0)}var la,zc,bm;if("onselectstart"in document)la=function(){Dt(window,"selectstart",hi)},zc=function(){_n(window,"selectstart",hi)};else{var jc=$c(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);la=function(){if(jc){var u=document.documentElement.style;bm=u[jc],u[jc]="none"}},zc=function(){jc&&(document.documentElement.style[jc]=bm,bm=void 0)}}function vr(){Dt(window,"dragstart",hi)}function fl(){_n(window,"dragstart",hi)}var Ru,vm;function Qt(u){for(;u.tabIndex===-1;)u=u.parentNode;u.style&&(Iu(),Ru=u,vm=u.style.outlineStyle,u.style.outlineStyle="none",Dt(window,"keydown",Iu))}function Iu(){Ru&&(Ru.style.outlineStyle=vm,Ru=void 0,vm=void 0,_n(window,"keydown",Iu))}function Uc(u){do u=u.parentNode;while((!u.offsetWidth||!u.offsetHeight)&&u!==document.body);return u}function Ou(u){var p=u.getBoundingClientRect();return{x:p.width/u.offsetWidth||1,y:p.height/u.offsetHeight||1,boundingClientRect:p}}var M1={__proto__:null,TRANSFORM:dl,TRANSITION:aa,TRANSITION_END:lo,get:Lc,getStyle:ul,create:an,remove:Cn,empty:Ni,toFront:co,toBack:Di,hasClass:Dn,addClass:Lt,removeClass:Wn,setClass:Fc,getClass:Mu,setOpacity:br,testProp:$c,setTransform:fs,setPosition:Hn,getPosition:Ro,get disableTextSelection(){return la},get enableTextSelection(){return zc},disableImageDrag:vr,enableImageDrag:fl,preventOutline:Qt,restoreOutline:Iu,getSizedParentNode:Uc,getScale:Ou};function Dt(u,p,w,U){if(p&&typeof p=="object")for(var Q in p)_m(u,Q,p[Q],w);else{p=v(p);for(var de=0,Pe=p.length;de<Pe;de++)_m(u,p[de],w,U)}return this}var Ir="_leaflet_events";function _n(u,p,w,U){if(arguments.length===1)wm(u),delete u[Ir];else if(p&&typeof p=="object")for(var Q in p)Hc(u,Q,p[Q],w);else if(p=v(p),arguments.length===2)wm(u,function(Le){return N(p,Le)!==-1});else for(var de=0,Pe=p.length;de<Pe;de++)Hc(u,p[de],w,U);return this}function wm(u,p){for(var w in u[Ir]){var U=w.split(/\d/)[0];(!p||p(U))&&Hc(u,U,null,null,w)}}var Wc={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function _m(u,p,w,U){var Q=p+c(w)+(U?"_"+c(U):"");if(u[Ir]&&u[Ir][Q])return this;var de=function(Le){return w.call(U||u,Le||window.event)},Pe=de;!pt.touchNative&&pt.pointer&&p.indexOf("touch")===0?de=Bu(u,p,de):pt.touch&&p==="dblclick"?de=N1(u,de):"addEventListener"in u?p==="touchstart"||p==="touchmove"||p==="wheel"||p==="mousewheel"?u.addEventListener(Wc[p]||p,de,pt.passiveEvents?{passive:!1}:!1):p==="mouseenter"||p==="mouseleave"?(de=function(Le){Le=Le||window.event,Cm(u,Le)&&Pe(Le)},u.addEventListener(Wc[p],de,!1)):u.addEventListener(p,Pe,!1):u.attachEvent("on"+p,de),u[Ir]=u[Ir]||{},u[Ir][Q]=de}function Hc(u,p,w,U,Q){Q=Q||p+c(w)+(U?"_"+c(U):"");var de=u[Ir]&&u[Ir][Q];if(!de)return this;!pt.touchNative&&pt.pointer&&p.indexOf("touch")===0?Fy(u,p,de):pt.touch&&p==="dblclick"?D1(u,de):"removeEventListener"in u?u.removeEventListener(Wc[p]||p,de,!1):u.detachEvent("on"+p,de),u[Ir][Q]=null}function hs(u){return u.stopPropagation?u.stopPropagation():u.originalEvent?u.originalEvent._stopped=!0:u.cancelBubble=!0,this}function ei(u){return _m(u,"wheel",hs),this}function qc(u){return Dt(u,"mousedown touchstart dblclick contextmenu",hs),u._leaflet_disable_click=!0,this}function hi(u){return u.preventDefault?u.preventDefault():u.returnValue=!1,this}function ms(u){return hi(u),hs(u),this}function km(u){if(u.composedPath)return u.composedPath();for(var p=[],w=u.target;w;)p.push(w),w=w.parentNode;return p}function xm(u,p){if(!p)return new re(u.clientX,u.clientY);var w=Ou(p),U=w.boundingClientRect;return new re((u.clientX-U.left)/w.x-p.clientLeft,(u.clientY-U.top)/w.y-p.clientTop)}var Em=pt.linux&&pt.chrome?window.devicePixelRatio:pt.mac?window.devicePixelRatio*3:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function jy(u){return pt.edge?u.wheelDeltaY/2:u.deltaY&&u.deltaMode===0?-u.deltaY/Em:u.deltaY&&u.deltaMode===1?-u.deltaY*20:u.deltaY&&u.deltaMode===2?-u.deltaY*60:u.deltaX||u.deltaZ?0:u.wheelDelta?(u.wheelDeltaY||u.wheelDelta)/2:u.detail&&Math.abs(u.detail)<32765?-u.detail*20:u.detail?u.detail/-32765*60:0}function Cm(u,p){var w=p.relatedTarget;if(!w)return!0;try{for(;w&&w!==u;)w=w.parentNode}catch{return!1}return w!==u}var R1={__proto__:null,on:Dt,off:_n,stopPropagation:hs,disableScrollPropagation:ei,disableClickPropagation:qc,preventDefault:hi,stop:ms,getPropagationPath:km,getMousePosition:xm,getWheelDelta:jy,isExternalTarget:Cm,addListener:Dt,removeListener:_n},Kc=te.extend({run:function(u,p,w,U){this.stop(),this._el=u,this._inProgress=!0,this._duration=w||.25,this._easeOutPower=1/Math.max(U||.5,.2),this._startPos=Ro(u),this._offset=p.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=I(this._animate,this),this._step()},_step:function(u){var p=+new Date-this._startTime,w=this._duration*1e3;p<w?this._runFrame(this._easeOut(p/w),u):(this._runFrame(1),this._complete())},_runFrame:function(u,p){var w=this._startPos.add(this._offset.multiplyBy(u));p&&w._round(),Hn(this._el,w),this.fire("step")},_complete:function(){O(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(u){return 1-Math.pow(1-u,this._easeOutPower)}}),Rt=te.extend({options:{crs:D,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(u,p){p=y(this,p),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(u),this._initLayout(),this._onResize=a(this._onResize,this),this._initEvents(),p.maxBounds&&this.setMaxBounds(p.maxBounds),p.zoom!==void 0&&(this._zoom=this._limitZoom(p.zoom)),p.center&&p.zoom!==void 0&&this.setView(Y(p.center),p.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=aa&&pt.any3d&&!pt.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),Dt(this._proxy,lo,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(u,p,w){if(p=p===void 0?this._zoom:this._limitZoom(p),u=this._limitCenter(Y(u),p,this.options.maxBounds),w=w||{},this._stop(),this._loaded&&!w.reset&&w!==!0){w.animate!==void 0&&(w.zoom=r({animate:w.animate},w.zoom),w.pan=r({animate:w.animate,duration:w.duration},w.pan));var U=this._zoom!==p?this._tryAnimatedZoom&&this._tryAnimatedZoom(u,p,w.zoom):this._tryAnimatedPan(u,w.pan);if(U)return clearTimeout(this._sizeTimer),this}return this._resetView(u,p,w.pan&&w.pan.noMoveStart),this},setZoom:function(u,p){return this._loaded?this.setView(this.getCenter(),u,{zoom:p}):(this._zoom=u,this)},zoomIn:function(u,p){return u=u||(pt.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+u,p)},zoomOut:function(u,p){return u=u||(pt.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-u,p)},setZoomAround:function(u,p,w){var U=this.getZoomScale(p),Q=this.getSize().divideBy(2),de=u instanceof re?u:this.latLngToContainerPoint(u),Pe=de.subtract(Q).multiplyBy(1-1/U),Le=this.containerPointToLatLng(Q.add(Pe));return this.setView(Le,p,{zoom:w})},_getBoundsCenterZoom:function(u,p){p=p||{},u=u.getBounds?u.getBounds():ee(u);var w=ce(p.paddingTopLeft||p.padding||[0,0]),U=ce(p.paddingBottomRight||p.padding||[0,0]),Q=this.getBoundsZoom(u,!1,w.add(U));if(Q=typeof p.maxZoom=="number"?Math.min(p.maxZoom,Q):Q,Q===1/0)return{center:u.getCenter(),zoom:Q};var de=U.subtract(w).divideBy(2),Pe=this.project(u.getSouthWest(),Q),Le=this.project(u.getNorthEast(),Q),je=this.unproject(Pe.add(Le).divideBy(2).add(de),Q);return{center:je,zoom:Q}},fitBounds:function(u,p){if(u=ee(u),!u.isValid())throw new Error("Bounds are not valid.");var w=this._getBoundsCenterZoom(u,p);return this.setView(w.center,w.zoom,p)},fitWorld:function(u){return this.fitBounds([[-90,-180],[90,180]],u)},panTo:function(u,p){return this.setView(u,this._zoom,{pan:p})},panBy:function(u,p){if(u=ce(u).round(),p=p||{},!u.x&&!u.y)return this.fire("moveend");if(p.animate!==!0&&!this.getSize().contains(u))return this._resetView(this.unproject(this.project(this.getCenter()).add(u)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new Kc,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),p.noMoveStart||this.fire("movestart"),p.animate!==!1){Lt(this._mapPane,"leaflet-pan-anim");var w=this._getMapPanePos().subtract(u).round();this._panAnim.run(this._mapPane,w,p.duration||.25,p.easeLinearity)}else this._rawPanBy(u),this.fire("move").fire("moveend");return this},flyTo:function(u,p,w){if(w=w||{},w.animate===!1||!pt.any3d)return this.setView(u,p,w);this._stop();var U=this.project(this.getCenter()),Q=this.project(u),de=this.getSize(),Pe=this._zoom;u=Y(u),p=p===void 0?Pe:p;var Le=Math.max(de.x,de.y),je=Le*this.getZoomScale(Pe,p),Ze=Q.distanceTo(U)||1,dt=1.42,At=dt*dt;function Yt(mi){var cb=mi?-1:1,sSe=mi?je:Le,aSe=je*je-Le*Le+cb*At*At*Ze*Ze,lSe=2*sSe*At*Ze,U1=aSe/lSe,qR=Math.sqrt(U1*U1+1)-U1,cSe=qR<1e-9?-18:Math.log(qR);return cSe}function tr(mi){return(Math.exp(mi)-Math.exp(-mi))/2}function xi(mi){return(Math.exp(mi)+Math.exp(-mi))/2}function ho(mi){return tr(mi)/xi(mi)}var _r=Yt(0);function ju(mi){return Le*(xi(_r)/xi(_r+dt*mi))}function nSe(mi){return Le*(xi(_r)*ho(_r+dt*mi)-tr(_r))/At}function iSe(mi){return 1-Math.pow(1-mi,1.5)}var rSe=Date.now(),WR=(Yt(1)-_r)/dt,oSe=w.duration?1e3*w.duration:1e3*WR*.8;function HR(){var mi=(Date.now()-rSe)/oSe,cb=iSe(mi)*WR;mi<=1?(this._flyToFrame=I(HR,this),this._move(this.unproject(U.add(Q.subtract(U).multiplyBy(nSe(cb)/Ze)),Pe),this.getScaleZoom(Le/ju(cb),Pe),{flyTo:!0})):this._move(u,p)._moveEnd(!0)}return this._moveStart(!0,w.noMoveStart),HR.call(this),this},flyToBounds:function(u,p){var w=this._getBoundsCenterZoom(u,p);return this.flyTo(w.center,w.zoom,p)},setMaxBounds:function(u){return u=ee(u),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),u.isValid()?(this.options.maxBounds=u,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},setMinZoom:function(u){var p=this.options.minZoom;return this.options.minZoom=u,this._loaded&&p!==u&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(u):this},setMaxZoom:function(u){var p=this.options.maxZoom;return this.options.maxZoom=u,this._loaded&&p!==u&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(u):this},panInsideBounds:function(u,p){this._enforcingBounds=!0;var w=this.getCenter(),U=this._limitCenter(w,this._zoom,ee(u));return w.equals(U)||this.panTo(U,p),this._enforcingBounds=!1,this},panInside:function(u,p){p=p||{};var w=ce(p.paddingTopLeft||p.padding||[0,0]),U=ce(p.paddingBottomRight||p.padding||[0,0]),Q=this.project(this.getCenter()),de=this.project(u),Pe=this.getPixelBounds(),Le=z([Pe.min.add(w),Pe.max.subtract(U)]),je=Le.getSize();if(!Le.contains(de)){this._enforcingBounds=!0;var Ze=de.subtract(Le.getCenter()),dt=Le.extend(de).getSize().subtract(je);Q.x+=Ze.x<0?-dt.x:dt.x,Q.y+=Ze.y<0?-dt.y:dt.y,this.panTo(this.unproject(Q),p),this._enforcingBounds=!1}return this},invalidateSize:function(u){if(!this._loaded)return this;u=r({animate:!1,pan:!0},u===!0?{animate:!0}:u);var p=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var w=this.getSize(),U=p.divideBy(2).round(),Q=w.divideBy(2).round(),de=U.subtract(Q);return!de.x&&!de.y?this:(u.animate&&u.pan?this.panBy(de):(u.pan&&this._rawPanBy(de),this.fire("move"),u.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(a(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:p,newSize:w}))},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(u){if(u=this._locateOptions=r({timeout:1e4,watch:!1},u),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var p=a(this._handleGeolocationResponse,this),w=a(this._handleGeolocationError,this);return u.watch?this._locationWatchId=navigator.geolocation.watchPosition(p,w,u):navigator.geolocation.getCurrentPosition(p,w,u),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(u){if(this._container._leaflet_id){var p=u.code,w=u.message||(p===1?"permission denied":p===2?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:p,message:"Geolocation error: "+w+"."})}},_handleGeolocationResponse:function(u){if(this._container._leaflet_id){var p=u.coords.latitude,w=u.coords.longitude,U=new K(p,w),Q=U.toBounds(u.coords.accuracy*2),de=this._locateOptions;if(de.setView){var Pe=this.getBoundsZoom(Q);this.setView(U,de.maxZoom?Math.min(Pe,de.maxZoom):Pe)}var Le={latlng:U,bounds:Q,timestamp:u.timestamp};for(var je in u.coords)typeof u.coords[je]=="number"&&(Le[je]=u.coords[je]);this.fire("locationfound",Le)}},addHandler:function(u,p){if(!p)return this;var w=this[u]=new p(this);return this._handlers.push(w),this.options[u]&&w.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch{this._container._leaflet_id=void 0,this._containerId=void 0}this._locationWatchId!==void 0&&this.stopLocate(),this._stop(),Cn(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(O(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload");var u;for(u in this._layers)this._layers[u].remove();for(u in this._panes)Cn(this._panes[u]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(u,p){var w="leaflet-pane"+(u?" leaflet-"+u.replace("Pane","")+"-pane":""),U=an("div",w,p||this._mapPane);return u&&(this._panes[u]=U),U},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var u=this.getPixelBounds(),p=this.unproject(u.getBottomLeft()),w=this.unproject(u.getTopRight());return new G(p,w)},getMinZoom:function(){return this.options.minZoom===void 0?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return this.options.maxZoom===void 0?this._layersMaxZoom===void 0?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(u,p,w){u=ee(u),w=ce(w||[0,0]);var U=this.getZoom()||0,Q=this.getMinZoom(),de=this.getMaxZoom(),Pe=u.getNorthWest(),Le=u.getSouthEast(),je=this.getSize().subtract(w),Ze=z(this.project(Le,U),this.project(Pe,U)).getSize(),dt=pt.any3d?this.options.zoomSnap:1,At=je.x/Ze.x,Yt=je.y/Ze.y,tr=p?Math.max(At,Yt):Math.min(At,Yt);return U=this.getScaleZoom(tr,U),dt&&(U=Math.round(U/(dt/100))*(dt/100),U=p?Math.ceil(U/dt)*dt:Math.floor(U/dt)*dt),Math.max(Q,Math.min(de,U))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new re(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(u,p){var w=this._getTopLeftPoint(u,p);return new se(w,w.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(u){return this.options.crs.getProjectedBounds(u===void 0?this.getZoom():u)},getPane:function(u){return typeof u=="string"?this._panes[u]:u},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(u,p){var w=this.options.crs;return p=p===void 0?this._zoom:p,w.scale(u)/w.scale(p)},getScaleZoom:function(u,p){var w=this.options.crs;p=p===void 0?this._zoom:p;var U=w.zoom(u*w.scale(p));return isNaN(U)?1/0:U},project:function(u,p){return p=p===void 0?this._zoom:p,this.options.crs.latLngToPoint(Y(u),p)},unproject:function(u,p){return p=p===void 0?this._zoom:p,this.options.crs.pointToLatLng(ce(u),p)},layerPointToLatLng:function(u){var p=ce(u).add(this.getPixelOrigin());return this.unproject(p)},latLngToLayerPoint:function(u){var p=this.project(Y(u))._round();return p._subtract(this.getPixelOrigin())},wrapLatLng:function(u){return this.options.crs.wrapLatLng(Y(u))},wrapLatLngBounds:function(u){return this.options.crs.wrapLatLngBounds(ee(u))},distance:function(u,p){return this.options.crs.distance(Y(u),Y(p))},containerPointToLayerPoint:function(u){return ce(u).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(u){return ce(u).add(this._getMapPanePos())},containerPointToLatLng:function(u){var p=this.containerPointToLayerPoint(ce(u));return this.layerPointToLatLng(p)},latLngToContainerPoint:function(u){return this.layerPointToContainerPoint(this.latLngToLayerPoint(Y(u)))},mouseEventToContainerPoint:function(u){return xm(u,this._container)},mouseEventToLayerPoint:function(u){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(u))},mouseEventToLatLng:function(u){return this.layerPointToLatLng(this.mouseEventToLayerPoint(u))},_initContainer:function(u){var p=this._container=Lc(u);if(p){if(p._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");Dt(p,"scroll",this._onScroll,this),this._containerId=c(p)},_initLayout:function(){var u=this._container;this._fadeAnimated=this.options.fadeAnimation&&pt.any3d,Lt(u,"leaflet-container"+(pt.touch?" leaflet-touch":"")+(pt.retina?" leaflet-retina":"")+(pt.ielt9?" leaflet-oldie":"")+(pt.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var p=ul(u,"position");p!=="absolute"&&p!=="relative"&&p!=="fixed"&&p!=="sticky"&&(u.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var u=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),Hn(this._mapPane,new re(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(Lt(u.markerPane,"leaflet-zoom-hide"),Lt(u.shadowPane,"leaflet-zoom-hide"))},_resetView:function(u,p,w){Hn(this._mapPane,new re(0,0));var U=!this._loaded;this._loaded=!0,p=this._limitZoom(p),this.fire("viewprereset");var Q=this._zoom!==p;this._moveStart(Q,w)._move(u,p)._moveEnd(Q),this.fire("viewreset"),U&&this.fire("load")},_moveStart:function(u,p){return u&&this.fire("zoomstart"),p||this.fire("movestart"),this},_move:function(u,p,w,U){p===void 0&&(p=this._zoom);var Q=this._zoom!==p;return this._zoom=p,this._lastCenter=u,this._pixelOrigin=this._getNewPixelOrigin(u),U?w&&w.pinch&&this.fire("zoom",w):((Q||w&&w.pinch)&&this.fire("zoom",w),this.fire("move",w)),this},_moveEnd:function(u){return u&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return O(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(u){Hn(this._mapPane,this._getMapPanePos().subtract(u))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(u){this._targets={},this._targets[c(this._container)]=this;var p=u?_n:Dt;p(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&p(window,"resize",this._onResize,this),pt.any3d&&this.options.transform3DLimit&&(u?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){O(this._resizeRequest),this._resizeRequest=I(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var u=this._getMapPanePos();Math.max(Math.abs(u.x),Math.abs(u.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(u,p){for(var w=[],U,Q=p==="mouseout"||p==="mouseover",de=u.target||u.srcElement,Pe=!1;de;){if(U=this._targets[c(de)],U&&(p==="click"||p==="preclick")&&this._draggableMoved(U)){Pe=!0;break}if(U&&U.listens(p,!0)&&(Q&&!Cm(de,u)||(w.push(U),Q))||de===this._container)break;de=de.parentNode}return!w.length&&!Pe&&!Q&&this.listens(p,!0)&&(w=[this]),w},_isClickDisabled:function(u){for(;u&&u!==this._container;){if(u._leaflet_disable_click)return!0;u=u.parentNode}},_handleDOMEvent:function(u){var p=u.target||u.srcElement;if(!(!this._loaded||p._leaflet_disable_events||u.type==="click"&&this._isClickDisabled(p))){var w=u.type;w==="mousedown"&&Qt(p),this._fireDOMEvent(u,w)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(u,p,w){if(u.type==="click"){var U=r({},u);U.type="preclick",this._fireDOMEvent(U,U.type,w)}var Q=this._findEventTargets(u,p);if(w){for(var de=[],Pe=0;Pe<w.length;Pe++)w[Pe].listens(p,!0)&&de.push(w[Pe]);Q=de.concat(Q)}if(Q.length){p==="contextmenu"&&hi(u);var Le=Q[0],je={originalEvent:u};if(u.type!=="keypress"&&u.type!=="keydown"&&u.type!=="keyup"){var Ze=Le.getLatLng&&(!Le._radius||Le._radius<=10);je.containerPoint=Ze?this.latLngToContainerPoint(Le.getLatLng()):this.mouseEventToContainerPoint(u),je.layerPoint=this.containerPointToLayerPoint(je.containerPoint),je.latlng=Ze?Le.getLatLng():this.layerPointToLatLng(je.layerPoint)}for(Pe=0;Pe<Q.length;Pe++)if(Q[Pe].fire(p,je,!0),je.originalEvent._stopped||Q[Pe].options.bubblingMouseEvents===!1&&N(this._mouseEvents,p)!==-1)return}},_draggableMoved:function(u){return u=u.dragging&&u.dragging.enabled()?u:this,u.dragging&&u.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var u=0,p=this._handlers.length;u<p;u++)this._handlers[u].disable()},whenReady:function(u,p){return this._loaded?u.call(p||this,{target:this}):this.on("load",u,p),this},_getMapPanePos:function(){return Ro(this._mapPane)||new re(0,0)},_moved:function(){var u=this._getMapPanePos();return u&&!u.equals([0,0])},_getTopLeftPoint:function(u,p){var w=u&&p!==void 0?this._getNewPixelOrigin(u,p):this.getPixelOrigin();return w.subtract(this._getMapPanePos())},_getNewPixelOrigin:function(u,p){var w=this.getSize()._divideBy(2);return this.project(u,p)._subtract(w)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(u,p,w){var U=this._getNewPixelOrigin(w,p);return this.project(u,p)._subtract(U)},_latLngBoundsToNewLayerBounds:function(u,p,w){var U=this._getNewPixelOrigin(w,p);return z([this.project(u.getSouthWest(),p)._subtract(U),this.project(u.getNorthWest(),p)._subtract(U),this.project(u.getSouthEast(),p)._subtract(U),this.project(u.getNorthEast(),p)._subtract(U)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(u){return this.latLngToLayerPoint(u).subtract(this._getCenterLayerPoint())},_limitCenter:function(u,p,w){if(!w)return u;var U=this.project(u,p),Q=this.getSize().divideBy(2),de=new se(U.subtract(Q),U.add(Q)),Pe=this._getBoundsOffset(de,w,p);return Math.abs(Pe.x)<=1&&Math.abs(Pe.y)<=1?u:this.unproject(U.add(Pe),p)},_limitOffset:function(u,p){if(!p)return u;var w=this.getPixelBounds(),U=new se(w.min.add(u),w.max.add(u));return u.add(this._getBoundsOffset(U,p))},_getBoundsOffset:function(u,p,w){var U=z(this.project(p.getNorthEast(),w),this.project(p.getSouthWest(),w)),Q=U.min.subtract(u.min),de=U.max.subtract(u.max),Pe=this._rebound(Q.x,-de.x),Le=this._rebound(Q.y,-de.y);return new re(Pe,Le)},_rebound:function(u,p){return u+p>0?Math.round(u-p)/2:Math.max(0,Math.ceil(u))-Math.max(0,Math.floor(p))},_limitZoom:function(u){var p=this.getMinZoom(),w=this.getMaxZoom(),U=pt.any3d?this.options.zoomSnap:1;return U&&(u=Math.round(u/U)*U),Math.max(p,Math.min(w,u))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){Wn(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(u,p){var w=this._getCenterOffset(u)._trunc();return(p&&p.animate)!==!0&&!this.getSize().contains(w)?!1:(this.panBy(w,p),!0)},_createAnimProxy:function(){var u=this._proxy=an("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(u),this.on("zoomanim",function(p){var w=dl,U=this._proxy.style[w];fs(this._proxy,this.project(p.center,p.zoom),this.getZoomScale(p.zoom,1)),U===this._proxy.style[w]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){Cn(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var u=this.getCenter(),p=this.getZoom();fs(this._proxy,this.project(u,p),this.getZoomScale(p,1))},_catchTransitionEnd:function(u){this._animatingZoom&&u.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(u,p,w){if(this._animatingZoom)return!0;if(w=w||{},!this._zoomAnimated||w.animate===!1||this._nothingToAnimate()||Math.abs(p-this._zoom)>this.options.zoomAnimationThreshold)return!1;var U=this.getZoomScale(p),Q=this._getCenterOffset(u)._divideBy(1-1/U);return w.animate!==!0&&!this.getSize().contains(Q)?!1:(I(function(){this._moveStart(!0,w.noMoveStart||!1)._animateZoom(u,p,!0)},this),!0)},_animateZoom:function(u,p,w,U){this._mapPane&&(w&&(this._animatingZoom=!0,this._animateToCenter=u,this._animateToZoom=p,Lt(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:u,zoom:p,noUpdate:U}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(a(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&Wn(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}});function I1(u,p){return new Rt(u,p)}var Or=X.extend({options:{position:"topright"},initialize:function(u){y(this,u)},getPosition:function(){return this.options.position},setPosition:function(u){var p=this._map;return p&&p.removeControl(this),this.options.position=u,p&&p.addControl(this),this},getContainer:function(){return this._container},addTo:function(u){this.remove(),this._map=u;var p=this._container=this.onAdd(u),w=this.getPosition(),U=u._controlCorners[w];return Lt(p,"leaflet-control"),w.indexOf("bottom")!==-1?U.insertBefore(p,U.firstChild):U.appendChild(p),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(Cn(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(u){this._map&&u&&u.screenX>0&&u.screenY>0&&this._map.getContainer().focus()}}),hl=function(u){return new Or(u)};Rt.include({addControl:function(u){return u.addTo(this),this},removeControl:function(u){return u.remove(),this},_initControlPos:function(){var u=this._controlCorners={},p="leaflet-",w=this._controlContainer=an("div",p+"control-container",this._container);function U(Q,de){var Pe=p+Q+" "+p+de;u[Q+de]=an("div",Pe,w)}U("top","left"),U("top","right"),U("bottom","left"),U("bottom","right")},_clearControlPos:function(){for(var u in this._controlCorners)Cn(this._controlCorners[u]);Cn(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var Uy=Or.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(u,p,w,U){return w<U?-1:U<w?1:0}},initialize:function(u,p,w){y(this,w),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1;for(var U in u)this._addLayer(u[U],U);for(U in p)this._addLayer(p[U],U,!0)},onAdd:function(u){this._initLayout(),this._update(),this._map=u,u.on("zoomend",this._checkDisabledLayers,this);for(var p=0;p<this._layers.length;p++)this._layers[p].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(u){return Or.prototype.addTo.call(this,u),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var u=0;u<this._layers.length;u++)this._layers[u].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(u,p){return this._addLayer(u,p),this._map?this._update():this},addOverlay:function(u,p){return this._addLayer(u,p,!0),this._map?this._update():this},removeLayer:function(u){u.off("add remove",this._onLayerChange,this);var p=this._getLayer(c(u));return p&&this._layers.splice(this._layers.indexOf(p),1),this._map?this._update():this},expand:function(){Lt(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var u=this._map.getSize().y-(this._container.offsetTop+50);return u<this._section.clientHeight?(Lt(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=u+"px"):Wn(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return Wn(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var u="leaflet-control-layers",p=this._container=an("div",u),w=this.options.collapsed;p.setAttribute("aria-haspopup",!0),qc(p),ei(p);var U=this._section=an("section",u+"-list");w&&(this._map.on("click",this.collapse,this),Dt(p,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var Q=this._layersLink=an("a",u+"-toggle",p);Q.href="#",Q.title="Layers",Q.setAttribute("role","button"),Dt(Q,{keydown:function(de){de.keyCode===13&&this._expandSafely()},click:function(de){hi(de),this._expandSafely()}},this),w||this.expand(),this._baseLayersList=an("div",u+"-base",U),this._separator=an("div",u+"-separator",U),this._overlaysList=an("div",u+"-overlays",U),p.appendChild(U)},_getLayer:function(u){for(var p=0;p<this._layers.length;p++)if(this._layers[p]&&c(this._layers[p].layer)===u)return this._layers[p]},_addLayer:function(u,p,w){this._map&&u.on("add remove",this._onLayerChange,this),this._layers.push({layer:u,name:p,overlay:w}),this.options.sortLayers&&this._layers.sort(a(function(U,Q){return this.options.sortFunction(U.layer,Q.layer,U.name,Q.name)},this)),this.options.autoZIndex&&u.setZIndex&&(this._lastZIndex++,u.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;Ni(this._baseLayersList),Ni(this._overlaysList),this._layerControlInputs=[];var u,p,w,U,Q=0;for(w=0;w<this._layers.length;w++)U=this._layers[w],this._addItem(U),p=p||U.overlay,u=u||!U.overlay,Q+=U.overlay?0:1;return this.options.hideSingleBase&&(u=u&&Q>1,this._baseLayersList.style.display=u?"":"none"),this._separator.style.display=p&&u?"":"none",this},_onLayerChange:function(u){this._handlingClick||this._update();var p=this._getLayer(c(u.target)),w=p.overlay?u.type==="add"?"overlayadd":"overlayremove":u.type==="add"?"baselayerchange":null;w&&this._map.fire(w,p)},_createRadioElement:function(u,p){var w='<input type="radio" class="leaflet-control-layers-selector" name="'+u+'"'+(p?' checked="checked"':"")+"/>",U=document.createElement("div");return U.innerHTML=w,U.firstChild},_addItem:function(u){var p=document.createElement("label"),w=this._map.hasLayer(u.layer),U;u.overlay?(U=document.createElement("input"),U.type="checkbox",U.className="leaflet-control-layers-selector",U.defaultChecked=w):U=this._createRadioElement("leaflet-base-layers_"+c(this),w),this._layerControlInputs.push(U),U.layerId=c(u.layer),Dt(U,"click",this._onInputClick,this);var Q=document.createElement("span");Q.innerHTML=" "+u.name;var de=document.createElement("span");p.appendChild(de),de.appendChild(U),de.appendChild(Q);var Pe=u.overlay?this._overlaysList:this._baseLayersList;return Pe.appendChild(p),this._checkDisabledLayers(),p},_onInputClick:function(){if(!this._preventClick){var u=this._layerControlInputs,p,w,U=[],Q=[];this._handlingClick=!0;for(var de=u.length-1;de>=0;de--)p=u[de],w=this._getLayer(p.layerId).layer,p.checked?U.push(w):p.checked||Q.push(w);for(de=0;de<Q.length;de++)this._map.hasLayer(Q[de])&&this._map.removeLayer(Q[de]);for(de=0;de<U.length;de++)this._map.hasLayer(U[de])||this._map.addLayer(U[de]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var u=this._layerControlInputs,p,w,U=this._map.getZoom(),Q=u.length-1;Q>=0;Q--)p=u[Q],w=this._getLayer(p.layerId).layer,p.disabled=w.options.minZoom!==void 0&&U<w.options.minZoom||w.options.maxZoom!==void 0&&U>w.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var u=this._section;this._preventClick=!0,Dt(u,"click",hi),this.expand();var p=this;setTimeout(function(){_n(u,"click",hi),p._preventClick=!1})}}),Wy=function(u,p,w){return new Uy(u,p,w)},Sm=Or.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">&#x2212;</span>',zoomOutTitle:"Zoom out"},onAdd:function(u){var p="leaflet-control-zoom",w=an("div",p+" leaflet-bar"),U=this.options;return this._zoomInButton=this._createButton(U.zoomInText,U.zoomInTitle,p+"-in",w,this._zoomIn),this._zoomOutButton=this._createButton(U.zoomOutText,U.zoomOutTitle,p+"-out",w,this._zoomOut),this._updateDisabled(),u.on("zoomend zoomlevelschange",this._updateDisabled,this),w},onRemove:function(u){u.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(u){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(u.shiftKey?3:1))},_zoomOut:function(u){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(u.shiftKey?3:1))},_createButton:function(u,p,w,U,Q){var de=an("a",w,U);return de.innerHTML=u,de.href="#",de.title=p,de.setAttribute("role","button"),de.setAttribute("aria-label",p),qc(de),Dt(de,"click",ms),Dt(de,"click",Q,this),Dt(de,"click",this._refocusOnMap,this),de},_updateDisabled:function(){var u=this._map,p="leaflet-disabled";Wn(this._zoomInButton,p),Wn(this._zoomOutButton,p),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||u._zoom===u.getMinZoom())&&(Lt(this._zoomOutButton,p),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||u._zoom===u.getMaxZoom())&&(Lt(this._zoomInButton,p),this._zoomInButton.setAttribute("aria-disabled","true"))}});Rt.mergeOptions({zoomControl:!0}),Rt.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new Sm,this.addControl(this.zoomControl))});var ml=function(u){return new Sm(u)},Hy=Or.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(u){var p="leaflet-control-scale",w=an("div",p),U=this.options;return this._addScales(U,p+"-line",w),u.on(U.updateWhenIdle?"moveend":"move",this._update,this),u.whenReady(this._update,this),w},onRemove:function(u){u.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(u,p,w){u.metric&&(this._mScale=an("div",p,w)),u.imperial&&(this._iScale=an("div",p,w))},_update:function(){var u=this._map,p=u.getSize().y/2,w=u.distance(u.containerPointToLatLng([0,p]),u.containerPointToLatLng([this.options.maxWidth,p]));this._updateScales(w)},_updateScales:function(u){this.options.metric&&u&&this._updateMetric(u),this.options.imperial&&u&&this._updateImperial(u)},_updateMetric:function(u){var p=this._getRoundNum(u),w=p<1e3?p+" m":p/1e3+" km";this._updateScale(this._mScale,w,p/u)},_updateImperial:function(u){var p=u*3.2808399,w,U,Q;p>5280?(w=p/5280,U=this._getRoundNum(w),this._updateScale(this._iScale,U+" mi",U/w)):(Q=this._getRoundNum(p),this._updateScale(this._iScale,Q+" ft",Q/p))},_updateScale:function(u,p,w){u.style.width=Math.round(this.options.maxWidth*w)+"px",u.innerHTML=p},_getRoundNum:function(u){var p=Math.pow(10,(Math.floor(u)+"").length-1),w=u/p;return w=w>=10?10:w>=5?5:w>=3?3:w>=2?2:1,p*w}}),Lu=function(u){return new Hy(u)},qy='<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>',Am=Or.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(pt.inlineSvg?qy+" ":"")+"Leaflet</a>"},initialize:function(u){y(this,u),this._attributions={}},onAdd:function(u){u.attributionControl=this,this._container=an("div","leaflet-control-attribution"),qc(this._container);for(var p in u._layers)u._layers[p].getAttribution&&this.addAttribution(u._layers[p].getAttribution());return this._update(),u.on("layeradd",this._addAttribution,this),this._container},onRemove:function(u){u.off("layeradd",this._addAttribution,this)},_addAttribution:function(u){u.layer.getAttribution&&(this.addAttribution(u.layer.getAttribution()),u.layer.once("remove",function(){this.removeAttribution(u.layer.getAttribution())},this))},setPrefix:function(u){return this.options.prefix=u,this._update(),this},addAttribution:function(u){return u?(this._attributions[u]||(this._attributions[u]=0),this._attributions[u]++,this._update(),this):this},removeAttribution:function(u){return u?(this._attributions[u]&&(this._attributions[u]--,this._update()),this):this},_update:function(){if(this._map){var u=[];for(var p in this._attributions)this._attributions[p]&&u.push(p);var w=[];this.options.prefix&&w.push(this.options.prefix),u.length&&w.push(u.join(", ")),this._container.innerHTML=w.join(' <span aria-hidden="true">|</span> ')}}});Rt.mergeOptions({attributionControl:!0}),Rt.addInitHook(function(){this.options.attributionControl&&new Am().addTo(this)});var O1=function(u){return new Am(u)};Or.Layers=Uy,Or.Zoom=Sm,Or.Scale=Hy,Or.Attribution=Am,hl.layers=Wy,hl.zoom=ml,hl.scale=Lu,hl.attribution=O1;var uo=X.extend({initialize:function(u){this._map=u},enable:function(){return this._enabled?this:(this._enabled=!0,this.addHooks(),this)},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});uo.addTo=function(u,p){return u.addHandler(p,this),this};var L1={Events:ue},pl=pt.touch?"touchstart mousedown":"mousedown",ps=te.extend({options:{clickTolerance:3},initialize:function(u,p,w,U){y(this,U),this._element=u,this._dragStartTarget=p||u,this._preventOutline=w},enable:function(){this._enabled||(Dt(this._dragStartTarget,pl,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(ps._dragging===this&&this.finishDrag(!0),_n(this._dragStartTarget,pl,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(u){if(this._enabled&&(this._moved=!1,!Dn(this._element,"leaflet-zoom-anim"))){if(u.touches&&u.touches.length!==1){ps._dragging===this&&this.finishDrag();return}if(!(ps._dragging||u.shiftKey||u.which!==1&&u.button!==1&&!u.touches)&&(ps._dragging=this,this._preventOutline&&Qt(this._element),vr(),la(),!this._moving)){this.fire("down");var p=u.touches?u.touches[0]:u,w=Uc(this._element);this._startPoint=new re(p.clientX,p.clientY),this._startPos=Ro(this._element),this._parentScale=Ou(w);var U=u.type==="mousedown";Dt(document,U?"mousemove":"touchmove",this._onMove,this),Dt(document,U?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(u){if(this._enabled){if(u.touches&&u.touches.length>1){this._moved=!0;return}var p=u.touches&&u.touches.length===1?u.touches[0]:u,w=new re(p.clientX,p.clientY)._subtract(this._startPoint);!w.x&&!w.y||Math.abs(w.x)+Math.abs(w.y)<this.options.clickTolerance||(w.x/=this._parentScale.x,w.y/=this._parentScale.y,hi(u),this._moved||(this.fire("dragstart"),this._moved=!0,Lt(document.body,"leaflet-dragging"),this._lastTarget=u.target||u.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),Lt(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(w),this._moving=!0,this._lastEvent=u,this._updatePosition())}},_updatePosition:function(){var u={originalEvent:this._lastEvent};this.fire("predrag",u),Hn(this._element,this._newPos),this.fire("drag",u)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(u){Wn(document.body,"leaflet-dragging"),this._lastTarget&&(Wn(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),_n(document,"mousemove touchmove",this._onMove,this),_n(document,"mouseup touchend touchcancel",this._onUp,this),fl(),zc();var p=this._moved&&this._moving;this._moving=!1,ps._dragging=!1,p&&this.fire("dragend",{noInertia:u,distance:this._newPos.distanceTo(this._startPos)})}});function Ky(u,p,w){var U,Q=[1,4,2,8],de,Pe,Le,je,Ze,dt,At,Yt;for(de=0,dt=u.length;de<dt;de++)u[de]._code=ca(u[de],p);for(Le=0;Le<4;Le++){for(At=Q[Le],U=[],de=0,dt=u.length,Pe=dt-1;de<dt;Pe=de++)je=u[de],Ze=u[Pe],je._code&At?Ze._code&At||(Yt=gl(Ze,je,At,p,w),Yt._code=ca(Yt,p),U.push(Yt)):(Ze._code&At&&(Yt=gl(Ze,je,At,p,w),Yt._code=ca(Yt,p),U.push(Yt)),U.push(je));u=U}return u}function Gy(u,p){var w,U,Q,de,Pe,Le,je,Ze,dt;if(!u||u.length===0)throw new Error("latlngs not passed");er(u)||(console.warn("latlngs are not flat! Only the first ring will be used"),u=u[0]);var At=Y([0,0]),Yt=ee(u),tr=Yt.getNorthWest().distanceTo(Yt.getSouthWest())*Yt.getNorthEast().distanceTo(Yt.getNorthWest());tr<1700&&(At=Tm(u));var xi=u.length,ho=[];for(w=0;w<xi;w++){var _r=Y(u[w]);ho.push(p.project(Y([_r.lat-At.lat,_r.lng-At.lng])))}for(Le=je=Ze=0,w=0,U=xi-1;w<xi;U=w++)Q=ho[w],de=ho[U],Pe=Q.y*de.x-de.y*Q.x,je+=(Q.x+de.x)*Pe,Ze+=(Q.y+de.y)*Pe,Le+=Pe*3;Le===0?dt=ho[0]:dt=[je/Le,Ze/Le];var ju=p.unproject(ce(dt));return Y([ju.lat+At.lat,ju.lng+At.lng])}function Tm(u){for(var p=0,w=0,U=0,Q=0;Q<u.length;Q++){var de=Y(u[Q]);p+=de.lat,w+=de.lng,U++}return Y([p/U,w/U])}var F1={__proto__:null,clipPolygon:Ky,polygonCenter:Gy,centroid:Tm};function Pm(u,p){if(!p||!u.length)return u.slice();var w=p*p;return u=Zy(u,w),u=$1(u,w),u}function Bm(u,p,w){return Math.sqrt(Gc(u,p,w,!0))}function Yy(u,p,w){return Gc(u,p,w)}function $1(u,p){var w=u.length,U=typeof Uint8Array<"u"?Uint8Array:Array,Q=new U(w);Q[0]=Q[w-1]=1,Nm(u,Q,p,0,w-1);var de,Pe=[];for(de=0;de<w;de++)Q[de]&&Pe.push(u[de]);return Pe}function Nm(u,p,w,U,Q){var de=0,Pe,Le,je;for(Le=U+1;Le<=Q-1;Le++)je=Gc(u[Le],u[U],u[Q],!0),je>de&&(Pe=Le,de=je);de>w&&(p[Pe]=1,Nm(u,p,w,U,Pe),Nm(u,p,w,Pe,Q))}function Zy(u,p){for(var w=[u[0]],U=1,Q=0,de=u.length;U<de;U++)z1(u[U],u[Q])>p&&(w.push(u[U]),Q=U);return Q<de-1&&w.push(u[de-1]),w}var Xy;function Jy(u,p,w,U,Q){var de=U?Xy:ca(u,w),Pe=ca(p,w),Le,je,Ze;for(Xy=Pe;;){if(!(de|Pe))return[u,p];if(de&Pe)return!1;Le=de||Pe,je=gl(u,p,Le,w,Q),Ze=ca(je,w),Le===de?(u=je,de=Ze):(p=je,Pe=Ze)}}function gl(u,p,w,U,Q){var de=p.x-u.x,Pe=p.y-u.y,Le=U.min,je=U.max,Ze,dt;return w&8?(Ze=u.x+de*(je.y-u.y)/Pe,dt=je.y):w&4?(Ze=u.x+de*(Le.y-u.y)/Pe,dt=Le.y):w&2?(Ze=je.x,dt=u.y+Pe*(je.x-u.x)/de):w&1&&(Ze=Le.x,dt=u.y+Pe*(Le.x-u.x)/de),new re(Ze,dt,Q)}function ca(u,p){var w=0;return u.x<p.min.x?w|=1:u.x>p.max.x&&(w|=2),u.y<p.min.y?w|=4:u.y>p.max.y&&(w|=8),w}function z1(u,p){var w=p.x-u.x,U=p.y-u.y;return w*w+U*U}function Gc(u,p,w,U){var Q=p.x,de=p.y,Pe=w.x-Q,Le=w.y-de,je=Pe*Pe+Le*Le,Ze;return je>0&&(Ze=((u.x-Q)*Pe+(u.y-de)*Le)/je,Ze>1?(Q=w.x,de=w.y):Ze>0&&(Q+=Pe*Ze,de+=Le*Ze)),Pe=u.x-Q,Le=u.y-de,U?Pe*Pe+Le*Le:new re(Q,de)}function er(u){return!B(u[0])||typeof u[0][0]!="object"&&typeof u[0][0]<"u"}function Qy(u){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),er(u)}function Vy(u,p){var w,U,Q,de,Pe,Le,je,Ze;if(!u||u.length===0)throw new Error("latlngs not passed");er(u)||(console.warn("latlngs are not flat! Only the first ring will be used"),u=u[0]);var dt=Y([0,0]),At=ee(u),Yt=At.getNorthWest().distanceTo(At.getSouthWest())*At.getNorthEast().distanceTo(At.getNorthWest());Yt<1700&&(dt=Tm(u));var tr=u.length,xi=[];for(w=0;w<tr;w++){var ho=Y(u[w]);xi.push(p.project(Y([ho.lat-dt.lat,ho.lng-dt.lng])))}for(w=0,U=0;w<tr-1;w++)U+=xi[w].distanceTo(xi[w+1])/2;if(U===0)Ze=xi[0];else for(w=0,de=0;w<tr-1;w++)if(Pe=xi[w],Le=xi[w+1],Q=Pe.distanceTo(Le),de+=Q,de>U){je=(de-U)/Q,Ze=[Le.x-je*(Le.x-Pe.x),Le.y-je*(Le.y-Pe.y)];break}var _r=p.unproject(ce(Ze));return Y([_r.lat+dt.lat,_r.lng+dt.lng])}var da={__proto__:null,simplify:Pm,pointToSegmentDistance:Bm,closestPointOnSegment:Yy,clipSegment:Jy,_getEdgeIntersection:gl,_getBitCode:ca,_sqClosestPointOnSegment:Gc,isFlat:er,_flat:Qy,polylineCenter:Vy},Fu={project:function(u){return new re(u.lng,u.lat)},unproject:function(u){return new K(u.y,u.x)},bounds:new se([-180,-90],[180,90])},$u={R:6378137,R_MINOR:6356752314245179e-9,bounds:new se([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project:function(u){var p=Math.PI/180,w=this.R,U=u.lat*p,Q=this.R_MINOR/w,de=Math.sqrt(1-Q*Q),Pe=de*Math.sin(U),Le=Math.tan(Math.PI/4-U/2)/Math.pow((1-Pe)/(1+Pe),de/2);return U=-w*Math.log(Math.max(Le,1e-10)),new re(u.lng*p*w,U)},unproject:function(u){for(var p=180/Math.PI,w=this.R,U=this.R_MINOR/w,Q=Math.sqrt(1-U*U),de=Math.exp(-u.y/w),Pe=Math.PI/2-2*Math.atan(de),Le=0,je=.1,Ze;Le<15&&Math.abs(je)>1e-7;Le++)Ze=Q*Math.sin(Pe),Ze=Math.pow((1-Ze)/(1+Ze),Q/2),je=Math.PI/2-2*Math.atan(de*Ze)-Pe,Pe+=je;return new K(Pe*p,u.x*p/w)}},eb={__proto__:null,LonLat:Fu,Mercator:$u,SphericalMercator:R},tb=r({},_,{code:"EPSG:3395",projection:$u,transformation:(function(){var u=.5/(Math.PI*$u.R);return T(u,.5,-u,.5)})()}),Dm=r({},_,{code:"EPSG:4326",projection:Fu,transformation:T(1/180,1,-1/180,.5)}),nb=r({},F,{projection:Fu,transformation:T(1,0,-1,0),scale:function(u){return Math.pow(2,u)},zoom:function(u){return Math.log(u)/Math.LN2},distance:function(u,p){var w=p.lng-u.lng,U=p.lat-u.lat;return Math.sqrt(w*w+U*U)},infinite:!0});F.Earth=_,F.EPSG3395=tb,F.EPSG3857=D,F.EPSG900913=Z,F.EPSG4326=Dm,F.Simple=nb;var wr=te.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(u){return u.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(u){return u&&u.removeLayer(this),this},getPane:function(u){return this._map.getPane(u?this.options[u]||u:this.options.pane)},addInteractiveTarget:function(u){return this._map._targets[c(u)]=this,this},removeInteractiveTarget:function(u){return delete this._map._targets[c(u)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(u){var p=u.target;if(p.hasLayer(this)){if(this._map=p,this._zoomAnimated=p._zoomAnimated,this.getEvents){var w=this.getEvents();p.on(w,this),this.once("remove",function(){p.off(w,this)},this)}this.onAdd(p),this.fire("add"),p.fire("layeradd",{layer:this})}}});Rt.include({addLayer:function(u){if(!u._layerAdd)throw new Error("The provided object is not a Layer.");var p=c(u);return this._layers[p]?this:(this._layers[p]=u,u._mapToAdd=this,u.beforeAdd&&u.beforeAdd(this),this.whenReady(u._layerAdd,u),this)},removeLayer:function(u){var p=c(u);return this._layers[p]?(this._loaded&&u.onRemove(this),delete this._layers[p],this._loaded&&(this.fire("layerremove",{layer:u}),u.fire("remove")),u._map=u._mapToAdd=null,this):this},hasLayer:function(u){return c(u)in this._layers},eachLayer:function(u,p){for(var w in this._layers)u.call(p,this._layers[w]);return this},_addLayers:function(u){u=u?B(u)?u:[u]:[];for(var p=0,w=u.length;p<w;p++)this.addLayer(u[p])},_addZoomLimit:function(u){(!isNaN(u.options.maxZoom)||!isNaN(u.options.minZoom))&&(this._zoomBoundLayers[c(u)]=u,this._updateZoomLevels())},_removeZoomLimit:function(u){var p=c(u);this._zoomBoundLayers[p]&&(delete this._zoomBoundLayers[p],this._updateZoomLevels())},_updateZoomLevels:function(){var u=1/0,p=-1/0,w=this._getZoomSpan();for(var U in this._zoomBoundLayers){var Q=this._zoomBoundLayers[U].options;u=Q.minZoom===void 0?u:Math.min(u,Q.minZoom),p=Q.maxZoom===void 0?p:Math.max(p,Q.maxZoom)}this._layersMaxZoom=p===-1/0?void 0:p,this._layersMinZoom=u===1/0?void 0:u,w!==this._getZoomSpan()&&this.fire("zoomlevelschange"),this.options.maxZoom===void 0&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),this.options.minZoom===void 0&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var ua=wr.extend({initialize:function(u,p){y(this,p),this._layers={};var w,U;if(u)for(w=0,U=u.length;w<U;w++)this.addLayer(u[w])},addLayer:function(u){var p=this.getLayerId(u);return this._layers[p]=u,this._map&&this._map.addLayer(u),this},removeLayer:function(u){var p=u in this._layers?u:this.getLayerId(u);return this._map&&this._layers[p]&&this._map.removeLayer(this._layers[p]),delete this._layers[p],this},hasLayer:function(u){var p=typeof u=="number"?u:this.getLayerId(u);return p in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(u){var p=Array.prototype.slice.call(arguments,1),w,U;for(w in this._layers)U=this._layers[w],U[u]&&U[u].apply(U,p);return this},onAdd:function(u){this.eachLayer(u.addLayer,u)},onRemove:function(u){this.eachLayer(u.removeLayer,u)},eachLayer:function(u,p){for(var w in this._layers)u.call(p,this._layers[w]);return this},getLayer:function(u){return this._layers[u]},getLayers:function(){var u=[];return this.eachLayer(u.push,u),u},setZIndex:function(u){return this.invoke("setZIndex",u)},getLayerId:function(u){return c(u)}}),ib=function(u,p){return new ua(u,p)},fo=ua.extend({addLayer:function(u){return this.hasLayer(u)?this:(u.addEventParent(this),ua.prototype.addLayer.call(this,u),this.fire("layeradd",{layer:u}))},removeLayer:function(u){return this.hasLayer(u)?(u in this._layers&&(u=this._layers[u]),u.removeEventParent(this),ua.prototype.removeLayer.call(this,u),this.fire("layerremove",{layer:u})):this},setStyle:function(u){return this.invoke("setStyle",u)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var u=new G;for(var p in this._layers){var w=this._layers[p];u.extend(w.getBounds?w.getBounds():w.getLatLng())}return u}}),rb=function(u,p){return new fo(u,p)},fa=X.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(u){y(this,u)},createIcon:function(u){return this._createIcon("icon",u)},createShadow:function(u){return this._createIcon("shadow",u)},_createIcon:function(u,p){var w=this._getIconUrl(u);if(!w){if(u==="icon")throw new Error("iconUrl not set in Icon options (see the docs).");return null}var U=this._createImg(w,p&&p.tagName==="IMG"?p:null);return this._setIconStyles(U,u),(this.options.crossOrigin||this.options.crossOrigin==="")&&(U.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),U},_setIconStyles:function(u,p){var w=this.options,U=w[p+"Size"];typeof U=="number"&&(U=[U,U]);var Q=ce(U),de=ce(p==="shadow"&&w.shadowAnchor||w.iconAnchor||Q&&Q.divideBy(2,!0));u.className="leaflet-marker-"+p+" "+(w.className||""),de&&(u.style.marginLeft=-de.x+"px",u.style.marginTop=-de.y+"px"),Q&&(u.style.width=Q.x+"px",u.style.height=Q.y+"px")},_createImg:function(u,p){return p=p||document.createElement("img"),p.src=u,p},_getIconUrl:function(u){return pt.retina&&this.options[u+"RetinaUrl"]||this.options[u+"Url"]}});function ob(u){return new fa(u)}var yl=fa.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(u){return typeof yl.imagePath!="string"&&(yl.imagePath=this._detectIconPath()),(this.options.imagePath||yl.imagePath)+fa.prototype._getIconUrl.call(this,u)},_stripUrl:function(u){var p=function(w,U,Q){var de=U.exec(w);return de&&de[Q]};return u=p(u,/^url\((['"])?(.+)\1\)$/,2),u&&p(u,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var u=an("div","leaflet-default-icon-path",document.body),p=ul(u,"background-image")||ul(u,"backgroundImage");if(document.body.removeChild(u),p=this._stripUrl(p),p)return p;var w=document.querySelector('link[href$="leaflet.css"]');return w?w.href.substring(0,w.href.length-11-1):""}}),Mm=uo.extend({initialize:function(u){this._marker=u},addHooks:function(){var u=this._marker._icon;this._draggable||(this._draggable=new ps(u,u,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),Lt(u,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon&&Wn(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(u){var p=this._marker,w=p._map,U=this._marker.options.autoPanSpeed,Q=this._marker.options.autoPanPadding,de=Ro(p._icon),Pe=w.getPixelBounds(),Le=w.getPixelOrigin(),je=z(Pe.min._subtract(Le).add(Q),Pe.max._subtract(Le).subtract(Q));if(!je.contains(de)){var Ze=ce((Math.max(je.max.x,de.x)-je.max.x)/(Pe.max.x-je.max.x)-(Math.min(je.min.x,de.x)-je.min.x)/(Pe.min.x-je.min.x),(Math.max(je.max.y,de.y)-je.max.y)/(Pe.max.y-je.max.y)-(Math.min(je.min.y,de.y)-je.min.y)/(Pe.min.y-je.min.y)).multiplyBy(U);w.panBy(Ze,{animate:!1}),this._draggable._newPos._add(Ze),this._draggable._startPos._add(Ze),Hn(p._icon,this._draggable._newPos),this._onDrag(u),this._panRequest=I(this._adjustPan.bind(this,u))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(u){this._marker.options.autoPan&&(O(this._panRequest),this._panRequest=I(this._adjustPan.bind(this,u)))},_onDrag:function(u){var p=this._marker,w=p._shadow,U=Ro(p._icon),Q=p._map.layerPointToLatLng(U);w&&Hn(w,U),p._latlng=Q,u.latlng=Q,u.oldLatLng=this._oldLatLng,p.fire("move",u).fire("drag",u)},_onDragEnd:function(u){O(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",u)}}),Yc=wr.extend({options:{icon:new yl,interactive:!0,keyboard:!0,title:"",alt:"Marker",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:!1,autoPanOnFocus:!0,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(u,p){y(this,p),this._latlng=Y(u)},onAdd:function(u){this._zoomAnimated=this._zoomAnimated&&u.options.markerZoomAnimation,this._zoomAnimated&&u.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(u){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&u.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(u){var p=this._latlng;return this._latlng=Y(u),this.update(),this.fire("move",{oldLatLng:p,latlng:this._latlng})},setZIndexOffset:function(u){return this.options.zIndexOffset=u,this.update()},getIcon:function(){return this.options.icon},setIcon:function(u){return this.options.icon=u,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){if(this._icon&&this._map){var u=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(u)}return this},_initIcon:function(){var u=this.options,p="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),w=u.icon.createIcon(this._icon),U=!1;w!==this._icon&&(this._icon&&this._removeIcon(),U=!0,u.title&&(w.title=u.title),w.tagName==="IMG"&&(w.alt=u.alt||"")),Lt(w,p),u.keyboard&&(w.tabIndex="0",w.setAttribute("role","button")),this._icon=w,u.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&Dt(w,"focus",this._panOnFocus,this);var Q=u.icon.createShadow(this._shadow),de=!1;Q!==this._shadow&&(this._removeShadow(),de=!0),Q&&(Lt(Q,p),Q.alt=""),this._shadow=Q,u.opacity<1&&this._updateOpacity(),U&&this.getPane().appendChild(this._icon),this._initInteraction(),Q&&de&&this.getPane(u.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&_n(this._icon,"focus",this._panOnFocus,this),Cn(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&Cn(this._shadow),this._shadow=null},_setPos:function(u){this._icon&&Hn(this._icon,u),this._shadow&&Hn(this._shadow,u),this._zIndex=u.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(u){this._icon&&(this._icon.style.zIndex=this._zIndex+u)},_animateZoom:function(u){var p=this._map._latLngToNewLayerPoint(this._latlng,u.zoom,u.center).round();this._setPos(p)},_initInteraction:function(){if(this.options.interactive&&(Lt(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),Mm)){var u=this.options.draggable;this.dragging&&(u=this.dragging.enabled(),this.dragging.disable()),this.dragging=new Mm(this),u&&this.dragging.enable()}},setOpacity:function(u){return this.options.opacity=u,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var u=this.options.opacity;this._icon&&br(this._icon,u),this._shadow&&br(this._shadow,u)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var u=this._map;if(u){var p=this.options.icon.options,w=p.iconSize?ce(p.iconSize):ce(0,0),U=p.iconAnchor?ce(p.iconAnchor):ce(0,0);u.panInside(this._latlng,{paddingTopLeft:U,paddingBottomRight:w.subtract(U)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function sb(u,p){return new Yc(u,p)}var H=wr.extend({options:{stroke:!0,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:!0,bubblingMouseEvents:!0},beforeAdd:function(u){this._renderer=u.getRenderer(this)},onAdd:function(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){return this._map&&this._renderer._updatePath(this),this},setStyle:function(u){return y(this,u),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&u&&Object.prototype.hasOwnProperty.call(u,"weight")&&this._updateBounds()),this},bringToFront:function(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack:function(){return this._renderer&&this._renderer._bringToBack(this),this},getElement:function(){return this._path},_reset:function(){this._project(),this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+(this._renderer.options.tolerance||0)}}),V=H.extend({options:{fill:!0,radius:10},initialize:function(u,p){y(this,p),this._latlng=Y(u),this._radius=this.options.radius},setLatLng:function(u){var p=this._latlng;return this._latlng=Y(u),this.redraw(),this.fire("move",{oldLatLng:p,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(u){return this.options.radius=this._radius=u,this.redraw()},getRadius:function(){return this._radius},setStyle:function(u){var p=u&&u.radius||this._radius;return H.prototype.setStyle.call(this,u),this.setRadius(p),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var u=this._radius,p=this._radiusY||u,w=this._clickTolerance(),U=[u+w,p+w];this._pxBounds=new se(this._point.subtract(U),this._point.add(U))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(u){return u.distanceTo(this._point)<=this._radius+this._clickTolerance()}});function le(u,p){return new V(u,p)}var me=V.extend({initialize:function(u,p,w){if(typeof p=="number"&&(p=r({},w,{radius:p})),y(this,p),this._latlng=Y(u),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(u){return this._mRadius=u,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var u=[this._radius,this._radiusY||this._radius];return new G(this._map.layerPointToLatLng(this._point.subtract(u)),this._map.layerPointToLatLng(this._point.add(u)))},setStyle:H.prototype.setStyle,_project:function(){var u=this._latlng.lng,p=this._latlng.lat,w=this._map,U=w.options.crs;if(U.distance===_.distance){var Q=Math.PI/180,de=this._mRadius/_.R/Q,Pe=w.project([p+de,u]),Le=w.project([p-de,u]),je=Pe.add(Le).divideBy(2),Ze=w.unproject(je).lat,dt=Math.acos((Math.cos(de*Q)-Math.sin(p*Q)*Math.sin(Ze*Q))/(Math.cos(p*Q)*Math.cos(Ze*Q)))/Q;(isNaN(dt)||dt===0)&&(dt=de/Math.cos(Math.PI/180*p)),this._point=je.subtract(w.getPixelOrigin()),this._radius=isNaN(dt)?0:je.x-w.project([Ze,u-dt]).x,this._radiusY=je.y-Pe.y}else{var At=U.unproject(U.project(this._latlng).subtract([this._mRadius,0]));this._point=w.latLngToLayerPoint(this._latlng),this._radius=this._point.x-w.latLngToLayerPoint(At).x}this._updateBounds()}});function xe(u,p,w){return new me(u,p,w)}var ie=H.extend({options:{smoothFactor:1,noClip:!1},initialize:function(u,p){y(this,p),this._setLatLngs(u)},getLatLngs:function(){return this._latlngs},setLatLngs:function(u){return this._setLatLngs(u),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(u){for(var p=1/0,w=null,U=Gc,Q,de,Pe=0,Le=this._parts.length;Pe<Le;Pe++)for(var je=this._parts[Pe],Ze=1,dt=je.length;Ze<dt;Ze++){Q=je[Ze-1],de=je[Ze];var At=U(u,Q,de,!0);At<p&&(p=At,w=U(u,Q,de))}return w&&(w.distance=Math.sqrt(p)),w},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return Vy(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(u,p){return p=p||this._defaultShape(),u=Y(u),p.push(u),this._bounds.extend(u),this.redraw()},_setLatLngs:function(u){this._bounds=new G,this._latlngs=this._convertLatLngs(u)},_defaultShape:function(){return er(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(u){for(var p=[],w=er(u),U=0,Q=u.length;U<Q;U++)w?(p[U]=Y(u[U]),this._bounds.extend(p[U])):p[U]=this._convertLatLngs(u[U]);return p},_project:function(){var u=new se;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,u),this._bounds.isValid()&&u.isValid()&&(this._rawPxBounds=u,this._updateBounds())},_updateBounds:function(){var u=this._clickTolerance(),p=new re(u,u);this._rawPxBounds&&(this._pxBounds=new se([this._rawPxBounds.min.subtract(p),this._rawPxBounds.max.add(p)]))},_projectLatlngs:function(u,p,w){var U=u[0]instanceof K,Q=u.length,de,Pe;if(U){for(Pe=[],de=0;de<Q;de++)Pe[de]=this._map.latLngToLayerPoint(u[de]),w.extend(Pe[de]);p.push(Pe)}else for(de=0;de<Q;de++)this._projectLatlngs(u[de],p,w)},_clipPoints:function(){var u=this._renderer._bounds;if(this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(u))){if(this.options.noClip){this._parts=this._rings;return}var p=this._parts,w,U,Q,de,Pe,Le,je;for(w=0,Q=0,de=this._rings.length;w<de;w++)for(je=this._rings[w],U=0,Pe=je.length;U<Pe-1;U++)Le=Jy(je[U],je[U+1],u,U,!0),Le&&(p[Q]=p[Q]||[],p[Q].push(Le[0]),(Le[1]!==je[U+1]||U===Pe-2)&&(p[Q].push(Le[1]),Q++))}},_simplifyPoints:function(){for(var u=this._parts,p=this.options.smoothFactor,w=0,U=u.length;w<U;w++)u[w]=Pm(u[w],p)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(u,p){var w,U,Q,de,Pe,Le,je=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(u))return!1;for(w=0,de=this._parts.length;w<de;w++)for(Le=this._parts[w],U=0,Pe=Le.length,Q=Pe-1;U<Pe;Q=U++)if(!(!p&&U===0)&&Bm(u,Le[Q],Le[U])<=je)return!0;return!1}});function he(u,p){return new ie(u,p)}ie._flat=Qy;var _e=ie.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return Gy(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(u){var p=ie.prototype._convertLatLngs.call(this,u),w=p.length;return w>=2&&p[0]instanceof K&&p[0].equals(p[w-1])&&p.pop(),p},_setLatLngs:function(u){ie.prototype._setLatLngs.call(this,u),er(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return er(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var u=this._renderer._bounds,p=this.options.weight,w=new re(p,p);if(u=new se(u.min.subtract(w),u.max.add(w)),this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(u))){if(this.options.noClip){this._parts=this._rings;return}for(var U=0,Q=this._rings.length,de;U<Q;U++)de=Ky(this._rings[U],u,!0),de.length&&this._parts.push(de)}},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(u){var p=!1,w,U,Q,de,Pe,Le,je,Ze;if(!this._pxBounds||!this._pxBounds.contains(u))return!1;for(de=0,je=this._parts.length;de<je;de++)for(w=this._parts[de],Pe=0,Ze=w.length,Le=Ze-1;Pe<Ze;Le=Pe++)U=w[Pe],Q=w[Le],U.y>u.y!=Q.y>u.y&&u.x<(Q.x-U.x)*(u.y-U.y)/(Q.y-U.y)+U.x&&(p=!p);return p||ie.prototype._containsPoint.call(this,u,!0)}});function ze(u,p){return new _e(u,p)}var qe=fo.extend({initialize:function(u,p){y(this,p),this._layers={},u&&this.addData(u)},addData:function(u){var p=B(u)?u:u.features,w,U,Q;if(p){for(w=0,U=p.length;w<U;w++)Q=p[w],(Q.geometries||Q.geometry||Q.features||Q.coordinates)&&this.addData(Q);return this}var de=this.options;if(de.filter&&!de.filter(u))return this;var Pe=Qe(u,de);return Pe?(Pe.feature=Ft(u),Pe.defaultOptions=Pe.options,this.resetStyle(Pe),de.onEachFeature&&de.onEachFeature(u,Pe),this.addLayer(Pe)):this},resetStyle:function(u){return u===void 0?this.eachLayer(this.resetStyle,this):(u.options=r({},u.defaultOptions),this._setLayerStyle(u,this.options.style),this)},setStyle:function(u){return this.eachLayer(function(p){this._setLayerStyle(p,u)},this)},_setLayerStyle:function(u,p){u.setStyle&&(typeof p=="function"&&(p=p(u.feature)),u.setStyle(p))}});function Qe(u,p){var w=u.type==="Feature"?u.geometry:u,U=w?w.coordinates:null,Q=[],de=p&&p.pointToLayer,Pe=p&&p.coordsToLatLng||it,Le,je,Ze,dt;if(!U&&!w)return null;switch(w.type){case"Point":return Le=Pe(U),et(de,u,Le,p);case"MultiPoint":for(Ze=0,dt=U.length;Ze<dt;Ze++)Le=Pe(U[Ze]),Q.push(et(de,u,Le,p));return new fo(Q);case"LineString":case"MultiLineString":return je=Et(U,w.type==="LineString"?0:1,Pe),new ie(je,p);case"Polygon":case"MultiPolygon":return je=Et(U,w.type==="Polygon"?1:2,Pe),new _e(je,p);case"GeometryCollection":for(Ze=0,dt=w.geometries.length;Ze<dt;Ze++){var At=Qe({geometry:w.geometries[Ze],type:"Feature",properties:u.properties},p);At&&Q.push(At)}return new fo(Q);case"FeatureCollection":for(Ze=0,dt=w.features.length;Ze<dt;Ze++){var Yt=Qe(w.features[Ze],p);Yt&&Q.push(Yt)}return new fo(Q);default:throw new Error("Invalid GeoJSON object.")}}function et(u,p,w,U){return u?u(p,w):new Yc(w,U&&U.markersInheritOptions&&U)}function it(u){return new K(u[1],u[0],u[2])}function Et(u,p,w){for(var U=[],Q=0,de=u.length,Pe;Q<de;Q++)Pe=p?Et(u[Q],p-1,w):(w||it)(u[Q]),U.push(Pe);return U}function Bt(u,p){return u=Y(u),u.alt!==void 0?[m(u.lng,p),m(u.lat,p),m(u.alt,p)]:[m(u.lng,p),m(u.lat,p)]}function qt(u,p,w,U){for(var Q=[],de=0,Pe=u.length;de<Pe;de++)Q.push(p?qt(u[de],er(u[de])?0:p-1,w,U):Bt(u[de],U));return!p&&w&&Q.length>0&&Q.push(Q[0].slice()),Q}function wt(u,p){return u.feature?r({},u.feature,{geometry:p}):Ft(p)}function Ft(u){return u.type==="Feature"||u.type==="FeatureCollection"?u:{type:"Feature",properties:{},geometry:u}}var St={toGeoJSON:function(u){return wt(this,{type:"Point",coordinates:Bt(this.getLatLng(),u)})}};Yc.include(St),me.include(St),V.include(St),ie.include({toGeoJSON:function(u){var p=!er(this._latlngs),w=qt(this._latlngs,p?1:0,!1,u);return wt(this,{type:(p?"Multi":"")+"LineString",coordinates:w})}}),_e.include({toGeoJSON:function(u){var p=!er(this._latlngs),w=p&&!er(this._latlngs[0]),U=qt(this._latlngs,w?2:p?1:0,!0,u);return p||(U=[U]),wt(this,{type:(w?"Multi":"")+"Polygon",coordinates:U})}}),ua.include({toMultiPoint:function(u){var p=[];return this.eachLayer(function(w){p.push(w.toGeoJSON(u).geometry.coordinates)}),wt(this,{type:"MultiPoint",coordinates:p})},toGeoJSON:function(u){var p=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(p==="MultiPoint")return this.toMultiPoint(u);var w=p==="GeometryCollection",U=[];return this.eachLayer(function(Q){if(Q.toGeoJSON){var de=Q.toGeoJSON(u);if(w)U.push(de.geometry);else{var Pe=Ft(de);Pe.type==="FeatureCollection"?U.push.apply(U,Pe.features):U.push(Pe)}}}),w?wt(this,{geometries:U,type:"GeometryCollection"}):{type:"FeatureCollection",features:U}}});function Mt(u,p){return new qe(u,p)}var Kt=Mt,qn=wr.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(u,p,w){this._url=u,this._bounds=ee(p),y(this,w)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(Lt(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){Cn(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(u){return this.options.opacity=u,this._image&&this._updateOpacity(),this},setStyle:function(u){return u.opacity&&this.setOpacity(u.opacity),this},bringToFront:function(){return this._map&&co(this._image),this},bringToBack:function(){return this._map&&Di(this._image),this},setUrl:function(u){return this._url=u,this._image&&(this._image.src=u),this},setBounds:function(u){return this._bounds=ee(u),this._map&&this._reset(),this},getEvents:function(){var u={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(u.zoomanim=this._animateZoom),u},setZIndex:function(u){return this.options.zIndex=u,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var u=this._url.tagName==="IMG",p=this._image=u?this._url:an("img");if(Lt(p,"leaflet-image-layer"),this._zoomAnimated&&Lt(p,"leaflet-zoom-animated"),this.options.className&&Lt(p,this.options.className),p.onselectstart=h,p.onmousemove=h,p.onload=a(this.fire,this,"load"),p.onerror=a(this._overlayOnError,this,"error"),(this.options.crossOrigin||this.options.crossOrigin==="")&&(p.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),u){this._url=p.src;return}p.src=this._url,p.alt=this.options.alt},_animateZoom:function(u){var p=this._map.getZoomScale(u.zoom),w=this._map._latLngBoundsToNewLayerBounds(this._bounds,u.zoom,u.center).min;fs(this._image,w,p)},_reset:function(){var u=this._image,p=new se(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),w=p.getSize();Hn(u,p.min),u.style.width=w.x+"px",u.style.height=w.y+"px"},_updateOpacity:function(){br(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var u=this.options.errorOverlayUrl;u&&this._url!==u&&(this._url=u,this._image.src=u)},getCenter:function(){return this._bounds.getCenter()}}),Ct=function(u,p,w){return new qn(u,p,w)},ut=qn.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var u=this._url.tagName==="VIDEO",p=this._image=u?this._url:an("video");if(Lt(p,"leaflet-image-layer"),this._zoomAnimated&&Lt(p,"leaflet-zoom-animated"),this.options.className&&Lt(p,this.options.className),p.onselectstart=h,p.onmousemove=h,p.onloadeddata=a(this.fire,this,"load"),u){for(var w=p.getElementsByTagName("source"),U=[],Q=0;Q<w.length;Q++)U.push(w[Q].src);this._url=w.length>0?U:[p.src];return}B(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(p.style,"objectFit")&&(p.style.objectFit="fill"),p.autoplay=!!this.options.autoplay,p.loop=!!this.options.loop,p.muted=!!this.options.muted,p.playsInline=!!this.options.playsInline;for(var de=0;de<this._url.length;de++){var Pe=an("source");Pe.src=this._url[de],p.appendChild(Pe)}}});function bi(u,p,w){return new ut(u,p,w)}var li=qn.extend({_initImage:function(){var u=this._image=this._url;Lt(u,"leaflet-image-layer"),this._zoomAnimated&&Lt(u,"leaflet-zoom-animated"),this.options.className&&Lt(u,this.options.className),u.onselectstart=h,u.onmousemove=h}});function Kn(u,p,w){return new li(u,p,w)}var Pn=wr.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(u,p){u&&(u instanceof K||B(u))?(this._latlng=Y(u),y(this,p)):(y(this,u),this._source=p),this.options.content&&(this._content=this.options.content)},openOn:function(u){return u=arguments.length?u:this._source._map,u.hasLayer(this)||u.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(u){return this._map?this.close():(arguments.length?this._source=u:u=this._source,this._prepareOpen(),this.openOn(u._map)),this},onAdd:function(u){this._zoomAnimated=u._zoomAnimated,this._container||this._initLayout(),u._fadeAnimated&&br(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),u._fadeAnimated&&br(this._container,1),this.bringToFront(),this.options.interactive&&(Lt(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(u){u._fadeAnimated?(br(this._container,0),this._removeTimeout=setTimeout(a(Cn,void 0,this._container),200)):Cn(this._container),this.options.interactive&&(Wn(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(u){return this._latlng=Y(u),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(u){return this._content=u,this.update(),this},getElement:function(){return this._container},update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},getEvents:function(){var u={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(u.zoomanim=this._animateZoom),u},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&co(this._container),this},bringToBack:function(){return this._map&&Di(this._container),this},_prepareOpen:function(u){var p=this._source;if(!p._map)return!1;if(p instanceof fo){p=null;var w=this._source._layers;for(var U in w)if(w[U]._map){p=w[U];break}if(!p)return!1;this._source=p}if(!u)if(p.getCenter)u=p.getCenter();else if(p.getLatLng)u=p.getLatLng();else if(p.getBounds)u=p.getBounds().getCenter();else throw new Error("Unable to get source layer LatLng.");return this.setLatLng(u),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var u=this._contentNode,p=typeof this._content=="function"?this._content(this._source||this):this._content;if(typeof p=="string")u.innerHTML=p;else{for(;u.hasChildNodes();)u.removeChild(u.firstChild);u.appendChild(p)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var u=this._map.latLngToLayerPoint(this._latlng),p=ce(this.options.offset),w=this._getAnchor();this._zoomAnimated?Hn(this._container,u.add(w)):p=p.add(u).add(w);var U=this._containerBottom=-p.y,Q=this._containerLeft=-Math.round(this._containerWidth/2)+p.x;this._container.style.bottom=U+"px",this._container.style.left=Q+"px"}},_getAnchor:function(){return[0,0]}});Rt.include({_initOverlay:function(u,p,w,U){var Q=p;return Q instanceof u||(Q=new u(U).setContent(p)),w&&Q.setLatLng(w),Q}}),wr.include({_initOverlay:function(u,p,w,U){var Q=w;return Q instanceof u?(y(Q,U),Q._source=this):(Q=p&&!U?p:new u(U,this),Q.setContent(w)),Q}});var Lr=Pn.extend({options:{pane:"popupPane",offset:[0,7],maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,autoClose:!0,closeOnEscapeKey:!0,className:""},openOn:function(u){return u=arguments.length?u:this._source._map,!u.hasLayer(this)&&u._popup&&u._popup.options.autoClose&&u.removeLayer(u._popup),u._popup=this,Pn.prototype.openOn.call(this,u)},onAdd:function(u){Pn.prototype.onAdd.call(this,u),u.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof H||this._source.on("preclick",hs))},onRemove:function(u){Pn.prototype.onRemove.call(this,u),u.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof H||this._source.off("preclick",hs))},getEvents:function(){var u=Pn.prototype.getEvents.call(this);return(this.options.closeOnClick!==void 0?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(u.preclick=this.close),this.options.keepInView&&(u.moveend=this._adjustPan),u},_initLayout:function(){var u="leaflet-popup",p=this._container=an("div",u+" "+(this.options.className||"")+" leaflet-zoom-animated"),w=this._wrapper=an("div",u+"-content-wrapper",p);if(this._contentNode=an("div",u+"-content",w),qc(p),ei(this._contentNode),Dt(p,"contextmenu",hs),this._tipContainer=an("div",u+"-tip-container",p),this._tip=an("div",u+"-tip",this._tipContainer),this.options.closeButton){var U=this._closeButton=an("a",u+"-close-button",p);U.setAttribute("role","button"),U.setAttribute("aria-label","Close popup"),U.href="#close",U.innerHTML='<span aria-hidden="true">&#215;</span>',Dt(U,"click",function(Q){hi(Q),this.close()},this)}},_updateLayout:function(){var u=this._contentNode,p=u.style;p.width="",p.whiteSpace="nowrap";var w=u.offsetWidth;w=Math.min(w,this.options.maxWidth),w=Math.max(w,this.options.minWidth),p.width=w+1+"px",p.whiteSpace="",p.height="";var U=u.offsetHeight,Q=this.options.maxHeight,de="leaflet-popup-scrolled";Q&&U>Q?(p.height=Q+"px",Lt(u,de)):Wn(u,de),this._containerWidth=this._container.offsetWidth},_animateZoom:function(u){var p=this._map._latLngToNewLayerPoint(this._latlng,u.zoom,u.center),w=this._getAnchor();Hn(this._container,p.add(w))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning){this._autopanning=!1;return}var u=this._map,p=parseInt(ul(this._container,"marginBottom"),10)||0,w=this._container.offsetHeight+p,U=this._containerWidth,Q=new re(this._containerLeft,-w-this._containerBottom);Q._add(Ro(this._container));var de=u.layerPointToContainerPoint(Q),Pe=ce(this.options.autoPanPadding),Le=ce(this.options.autoPanPaddingTopLeft||Pe),je=ce(this.options.autoPanPaddingBottomRight||Pe),Ze=u.getSize(),dt=0,At=0;de.x+U+je.x>Ze.x&&(dt=de.x+U-Ze.x+je.x),de.x-dt-Le.x<0&&(dt=de.x-Le.x),de.y+w+je.y>Ze.y&&(At=de.y+w-Ze.y+je.y),de.y-At-Le.y<0&&(At=de.y-Le.y),(dt||At)&&(this.options.keepInView&&(this._autopanning=!0),u.fire("autopanstart").panBy([dt,At]))}},_getAnchor:function(){return ce(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),j1=function(u,p){return new Lr(u,p)};Rt.mergeOptions({closePopupOnClick:!0}),Rt.include({openPopup:function(u,p,w){return this._initOverlay(Lr,u,p,w).openOn(this),this},closePopup:function(u){return u=arguments.length?u:this._popup,u&&u.close(),this}}),wr.include({bindPopup:function(u,p){return this._popup=this._initOverlay(Lr,this._popup,u,p),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(u){return this._popup&&(this instanceof fo||(this._popup._source=this),this._popup._prepareOpen(u||this._latlng)&&this._popup.openOn(this._map)),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return this._popup?this._popup.isOpen():!1},setPopupContent:function(u){return this._popup&&this._popup.setContent(u),this},getPopup:function(){return this._popup},_openPopup:function(u){if(!(!this._popup||!this._map)){ms(u);var p=u.layer||u.target;if(this._popup._source===p&&!(p instanceof H)){this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(u.latlng);return}this._popup._source=p,this.openPopup(u.latlng)}},_movePopup:function(u){this._popup.setLatLng(u.latlng)},_onKeyPress:function(u){u.originalEvent.keyCode===13&&this._openPopup(u)}});var ab=Pn.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(u){Pn.prototype.onAdd.call(this,u),this.setOpacity(this.options.opacity),u.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(u){Pn.prototype.onRemove.call(this,u),u.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var u=Pn.prototype.getEvents.call(this);return this.options.permanent||(u.preclick=this.close),u},_initLayout:function(){var u="leaflet-tooltip",p=u+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=an("div",p),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+c(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(u){var p,w,U=this._map,Q=this._container,de=U.latLngToContainerPoint(U.getCenter()),Pe=U.layerPointToContainerPoint(u),Le=this.options.direction,je=Q.offsetWidth,Ze=Q.offsetHeight,dt=ce(this.options.offset),At=this._getAnchor();Le==="top"?(p=je/2,w=Ze):Le==="bottom"?(p=je/2,w=0):Le==="center"?(p=je/2,w=Ze/2):Le==="right"?(p=0,w=Ze/2):Le==="left"?(p=je,w=Ze/2):Pe.x<de.x?(Le="right",p=0,w=Ze/2):(Le="left",p=je+(dt.x+At.x)*2,w=Ze/2),u=u.subtract(ce(p,w,!0)).add(dt).add(At),Wn(Q,"leaflet-tooltip-right"),Wn(Q,"leaflet-tooltip-left"),Wn(Q,"leaflet-tooltip-top"),Wn(Q,"leaflet-tooltip-bottom"),Lt(Q,"leaflet-tooltip-"+Le),Hn(Q,u)},_updatePosition:function(){var u=this._map.latLngToLayerPoint(this._latlng);this._setPosition(u)},setOpacity:function(u){this.options.opacity=u,this._container&&br(this._container,u)},_animateZoom:function(u){var p=this._map._latLngToNewLayerPoint(this._latlng,u.zoom,u.center);this._setPosition(p)},_getAnchor:function(){return ce(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),Y2e=function(u,p){return new ab(u,p)};Rt.include({openTooltip:function(u,p,w){return this._initOverlay(ab,u,p,w).openOn(this),this},closeTooltip:function(u){return u.close(),this}}),wr.include({bindTooltip:function(u,p){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(ab,this._tooltip,u,p),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip:function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions:function(u){if(!(!u&&this._tooltipHandlersAdded)){var p=u?"off":"on",w={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?w.add=this._openTooltip:(w.mouseover=this._openTooltip,w.mouseout=this.closeTooltip,w.click=this._openTooltip,this._map?this._addFocusListeners():w.add=this._addFocusListeners),this._tooltip.options.sticky&&(w.mousemove=this._moveTooltip),this[p](w),this._tooltipHandlersAdded=!u}},openTooltip:function(u){return this._tooltip&&(this instanceof fo||(this._tooltip._source=this),this._tooltip._prepareOpen(u)&&(this._tooltip.openOn(this._map),this.getElement?this._setAriaDescribedByOnLayer(this):this.eachLayer&&this.eachLayer(this._setAriaDescribedByOnLayer,this))),this},closeTooltip:function(){if(this._tooltip)return this._tooltip.close()},toggleTooltip:function(){return this._tooltip&&this._tooltip.toggle(this),this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(u){return this._tooltip&&this._tooltip.setContent(u),this},getTooltip:function(){return this._tooltip},_addFocusListeners:function(){this.getElement?this._addFocusListenersOnLayer(this):this.eachLayer&&this.eachLayer(this._addFocusListenersOnLayer,this)},_addFocusListenersOnLayer:function(u){var p=typeof u.getElement=="function"&&u.getElement();p&&(Dt(p,"focus",function(){this._tooltip._source=u,this.openTooltip()},this),Dt(p,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(u){var p=typeof u.getElement=="function"&&u.getElement();p&&p.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(u){if(!(!this._tooltip||!this._map)){if(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag){this._openOnceFlag=!0;var p=this;this._map.once("moveend",function(){p._openOnceFlag=!1,p._openTooltip(u)});return}this._tooltip._source=u.layer||u.target,this.openTooltip(this._tooltip.options.sticky?u.latlng:void 0)}},_moveTooltip:function(u){var p=u.latlng,w,U;this._tooltip.options.sticky&&u.originalEvent&&(w=this._map.mouseEventToContainerPoint(u.originalEvent),U=this._map.containerPointToLayerPoint(w),p=this._map.layerPointToLatLng(U)),this._tooltip.setLatLng(p)}});var PR=fa.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(u){var p=u&&u.tagName==="DIV"?u:document.createElement("div"),w=this.options;if(w.html instanceof Element?(Ni(p),p.appendChild(w.html)):p.innerHTML=w.html!==!1?w.html:"",w.bgPos){var U=ce(w.bgPos);p.style.backgroundPosition=-U.x+"px "+-U.y+"px"}return this._setIconStyles(p,"icon"),p},createShadow:function(){return null}});function Z2e(u){return new PR(u)}fa.Default=yl;var Rm=wr.extend({options:{tileSize:256,opacity:1,updateWhenIdle:pt.mobile,updateWhenZooming:!0,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:void 0,maxNativeZoom:void 0,minNativeZoom:void 0,noWrap:!1,pane:"tilePane",className:"",keepBuffer:2},initialize:function(u){y(this,u)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(u){u._addZoomLimit(this)},onRemove:function(u){this._removeAllTiles(),Cn(this._container),u._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(co(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(Di(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(u){return this.options.opacity=u,this._updateOpacity(),this},setZIndex:function(u){return this.options.zIndex=u,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var u=this._clampZoom(this._map.getZoom());u!==this._tileZoom&&(this._tileZoom=u,this._updateLevels()),this._update()}return this},getEvents:function(){var u={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=d(this._onMoveEnd,this.options.updateInterval,this)),u.move=this._onMove),this._zoomAnimated&&(u.zoomanim=this._animateZoom),u},createTile:function(){return document.createElement("div")},getTileSize:function(){var u=this.options.tileSize;return u instanceof re?u:new re(u,u)},_updateZIndex:function(){this._container&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(u){for(var p=this.getPane().children,w=-u(-1/0,1/0),U=0,Q=p.length,de;U<Q;U++)de=p[U].style.zIndex,p[U]!==this._container&&de&&(w=u(w,+de));isFinite(w)&&(this.options.zIndex=w+u(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!pt.ielt9){br(this._container,this.options.opacity);var u=+new Date,p=!1,w=!1;for(var U in this._tiles){var Q=this._tiles[U];if(!(!Q.current||!Q.loaded)){var de=Math.min(1,(u-Q.loaded)/200);br(Q.el,de),de<1?p=!0:(Q.active?w=!0:this._onOpaqueTile(Q),Q.active=!0)}}w&&!this._noPrune&&this._pruneTiles(),p&&(O(this._fadeFrame),this._fadeFrame=I(this._updateOpacity,this))}},_onOpaqueTile:h,_initContainer:function(){this._container||(this._container=an("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var u=this._tileZoom,p=this.options.maxZoom;if(u!==void 0){for(var w in this._levels)w=Number(w),this._levels[w].el.children.length||w===u?(this._levels[w].el.style.zIndex=p-Math.abs(u-w),this._onUpdateLevel(w)):(Cn(this._levels[w].el),this._removeTilesAtZoom(w),this._onRemoveLevel(w),delete this._levels[w]);var U=this._levels[u],Q=this._map;return U||(U=this._levels[u]={},U.el=an("div","leaflet-tile-container leaflet-zoom-animated",this._container),U.el.style.zIndex=p,U.origin=Q.project(Q.unproject(Q.getPixelOrigin()),u).round(),U.zoom=u,this._setZoomTransform(U,Q.getCenter(),Q.getZoom()),h(U.el.offsetWidth),this._onCreateLevel(U)),this._level=U,U}},_onUpdateLevel:h,_onRemoveLevel:h,_onCreateLevel:h,_pruneTiles:function(){if(this._map){var u,p,w=this._map.getZoom();if(w>this.options.maxZoom||w<this.options.minZoom){this._removeAllTiles();return}for(u in this._tiles)p=this._tiles[u],p.retain=p.current;for(u in this._tiles)if(p=this._tiles[u],p.current&&!p.active){var U=p.coords;this._retainParent(U.x,U.y,U.z,U.z-5)||this._retainChildren(U.x,U.y,U.z,U.z+2)}for(u in this._tiles)this._tiles[u].retain||this._removeTile(u)}},_removeTilesAtZoom:function(u){for(var p in this._tiles)this._tiles[p].coords.z===u&&this._removeTile(p)},_removeAllTiles:function(){for(var u in this._tiles)this._removeTile(u)},_invalidateAll:function(){for(var u in this._levels)Cn(this._levels[u].el),this._onRemoveLevel(Number(u)),delete this._levels[u];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(u,p,w,U){var Q=Math.floor(u/2),de=Math.floor(p/2),Pe=w-1,Le=new re(+Q,+de);Le.z=+Pe;var je=this._tileCoordsToKey(Le),Ze=this._tiles[je];return Ze&&Ze.active?(Ze.retain=!0,!0):(Ze&&Ze.loaded&&(Ze.retain=!0),Pe>U?this._retainParent(Q,de,Pe,U):!1)},_retainChildren:function(u,p,w,U){for(var Q=2*u;Q<2*u+2;Q++)for(var de=2*p;de<2*p+2;de++){var Pe=new re(Q,de);Pe.z=w+1;var Le=this._tileCoordsToKey(Pe),je=this._tiles[Le];if(je&&je.active){je.retain=!0;continue}else je&&je.loaded&&(je.retain=!0);w+1<U&&this._retainChildren(Q,de,w+1,U)}},_resetView:function(u){var p=u&&(u.pinch||u.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),p,p)},_animateZoom:function(u){this._setView(u.center,u.zoom,!0,u.noUpdate)},_clampZoom:function(u){var p=this.options;return p.minNativeZoom!==void 0&&u<p.minNativeZoom?p.minNativeZoom:p.maxNativeZoom!==void 0&&p.maxNativeZoom<u?p.maxNativeZoom:u},_setView:function(u,p,w,U){var Q=Math.round(p);this.options.maxZoom!==void 0&&Q>this.options.maxZoom||this.options.minZoom!==void 0&&Q<this.options.minZoom?Q=void 0:Q=this._clampZoom(Q);var de=this.options.updateWhenZooming&&Q!==this._tileZoom;(!U||de)&&(this._tileZoom=Q,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),Q!==void 0&&this._update(u),w||this._pruneTiles(),this._noPrune=!!w),this._setZoomTransforms(u,p)},_setZoomTransforms:function(u,p){for(var w in this._levels)this._setZoomTransform(this._levels[w],u,p)},_setZoomTransform:function(u,p,w){var U=this._map.getZoomScale(w,u.zoom),Q=u.origin.multiplyBy(U).subtract(this._map._getNewPixelOrigin(p,w)).round();pt.any3d?fs(u.el,Q,U):Hn(u.el,Q)},_resetGrid:function(){var u=this._map,p=u.options.crs,w=this._tileSize=this.getTileSize(),U=this._tileZoom,Q=this._map.getPixelWorldBounds(this._tileZoom);Q&&(this._globalTileRange=this._pxBoundsToTileRange(Q)),this._wrapX=p.wrapLng&&!this.options.noWrap&&[Math.floor(u.project([0,p.wrapLng[0]],U).x/w.x),Math.ceil(u.project([0,p.wrapLng[1]],U).x/w.y)],this._wrapY=p.wrapLat&&!this.options.noWrap&&[Math.floor(u.project([p.wrapLat[0],0],U).y/w.x),Math.ceil(u.project([p.wrapLat[1],0],U).y/w.y)]},_onMoveEnd:function(){!this._map||this._map._animatingZoom||this._update()},_getTiledPixelBounds:function(u){var p=this._map,w=p._animatingZoom?Math.max(p._animateToZoom,p.getZoom()):p.getZoom(),U=p.getZoomScale(w,this._tileZoom),Q=p.project(u,this._tileZoom).floor(),de=p.getSize().divideBy(U*2);return new se(Q.subtract(de),Q.add(de))},_update:function(u){var p=this._map;if(p){var w=this._clampZoom(p.getZoom());if(u===void 0&&(u=p.getCenter()),this._tileZoom!==void 0){var U=this._getTiledPixelBounds(u),Q=this._pxBoundsToTileRange(U),de=Q.getCenter(),Pe=[],Le=this.options.keepBuffer,je=new se(Q.getBottomLeft().subtract([Le,-Le]),Q.getTopRight().add([Le,-Le]));if(!(isFinite(Q.min.x)&&isFinite(Q.min.y)&&isFinite(Q.max.x)&&isFinite(Q.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var Ze in this._tiles){var dt=this._tiles[Ze].coords;(dt.z!==this._tileZoom||!je.contains(new re(dt.x,dt.y)))&&(this._tiles[Ze].current=!1)}if(Math.abs(w-this._tileZoom)>1){this._setView(u,w);return}for(var At=Q.min.y;At<=Q.max.y;At++)for(var Yt=Q.min.x;Yt<=Q.max.x;Yt++){var tr=new re(Yt,At);if(tr.z=this._tileZoom,!!this._isValidTile(tr)){var xi=this._tiles[this._tileCoordsToKey(tr)];xi?xi.current=!0:Pe.push(tr)}}if(Pe.sort(function(_r,ju){return _r.distanceTo(de)-ju.distanceTo(de)}),Pe.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var ho=document.createDocumentFragment();for(Yt=0;Yt<Pe.length;Yt++)this._addTile(Pe[Yt],ho);this._level.el.appendChild(ho)}}}},_isValidTile:function(u){var p=this._map.options.crs;if(!p.infinite){var w=this._globalTileRange;if(!p.wrapLng&&(u.x<w.min.x||u.x>w.max.x)||!p.wrapLat&&(u.y<w.min.y||u.y>w.max.y))return!1}if(!this.options.bounds)return!0;var U=this._tileCoordsToBounds(u);return ee(this.options.bounds).overlaps(U)},_keyToBounds:function(u){return this._tileCoordsToBounds(this._keyToTileCoords(u))},_tileCoordsToNwSe:function(u){var p=this._map,w=this.getTileSize(),U=u.scaleBy(w),Q=U.add(w),de=p.unproject(U,u.z),Pe=p.unproject(Q,u.z);return[de,Pe]},_tileCoordsToBounds:function(u){var p=this._tileCoordsToNwSe(u),w=new G(p[0],p[1]);return this.options.noWrap||(w=this._map.wrapLatLngBounds(w)),w},_tileCoordsToKey:function(u){return u.x+":"+u.y+":"+u.z},_keyToTileCoords:function(u){var p=u.split(":"),w=new re(+p[0],+p[1]);return w.z=+p[2],w},_removeTile:function(u){var p=this._tiles[u];p&&(Cn(p.el),delete this._tiles[u],this.fire("tileunload",{tile:p.el,coords:this._keyToTileCoords(u)}))},_initTile:function(u){Lt(u,"leaflet-tile");var p=this.getTileSize();u.style.width=p.x+"px",u.style.height=p.y+"px",u.onselectstart=h,u.onmousemove=h,pt.ielt9&&this.options.opacity<1&&br(u,this.options.opacity)},_addTile:function(u,p){var w=this._getTilePos(u),U=this._tileCoordsToKey(u),Q=this.createTile(this._wrapCoords(u),a(this._tileReady,this,u));this._initTile(Q),this.createTile.length<2&&I(a(this._tileReady,this,u,null,Q)),Hn(Q,w),this._tiles[U]={el:Q,coords:u,current:!0},p.appendChild(Q),this.fire("tileloadstart",{tile:Q,coords:u})},_tileReady:function(u,p,w){p&&this.fire("tileerror",{error:p,tile:w,coords:u});var U=this._tileCoordsToKey(u);w=this._tiles[U],w&&(w.loaded=+new Date,this._map._fadeAnimated?(br(w.el,0),O(this._fadeFrame),this._fadeFrame=I(this._updateOpacity,this)):(w.active=!0,this._pruneTiles()),p||(Lt(w.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:w.el,coords:u})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),pt.ielt9||!this._map._fadeAnimated?I(this._pruneTiles,this):setTimeout(a(this._pruneTiles,this),250)))},_getTilePos:function(u){return u.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(u){var p=new re(this._wrapX?f(u.x,this._wrapX):u.x,this._wrapY?f(u.y,this._wrapY):u.y);return p.z=u.z,p},_pxBoundsToTileRange:function(u){var p=this.getTileSize();return new se(u.min.unscaleBy(p).floor(),u.max.unscaleBy(p).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var u in this._tiles)if(!this._tiles[u].loaded)return!1;return!0}});function X2e(u){return new Rm(u)}var zu=Rm.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(u,p){this._url=u,p=y(this,p),p.detectRetina&&pt.retina&&p.maxZoom>0?(p.tileSize=Math.floor(p.tileSize/2),p.zoomReverse?(p.zoomOffset--,p.minZoom=Math.min(p.maxZoom,p.minZoom+1)):(p.zoomOffset++,p.maxZoom=Math.max(p.minZoom,p.maxZoom-1)),p.minZoom=Math.max(0,p.minZoom)):p.zoomReverse?p.minZoom=Math.min(p.maxZoom,p.minZoom):p.maxZoom=Math.max(p.minZoom,p.maxZoom),typeof p.subdomains=="string"&&(p.subdomains=p.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(u,p){return this._url===u&&p===void 0&&(p=!0),this._url=u,p||this.redraw(),this},createTile:function(u,p){var w=document.createElement("img");return Dt(w,"load",a(this._tileOnLoad,this,p,w)),Dt(w,"error",a(this._tileOnError,this,p,w)),(this.options.crossOrigin||this.options.crossOrigin==="")&&(w.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&(w.referrerPolicy=this.options.referrerPolicy),w.alt="",w.src=this.getTileUrl(u),w},getTileUrl:function(u){var p={r:pt.retina?"@2x":"",s:this._getSubdomain(u),x:u.x,y:u.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var w=this._globalTileRange.max.y-u.y;this.options.tms&&(p.y=w),p["-y"]=w}return M(this._url,r(p,this.options))},_tileOnLoad:function(u,p){pt.ielt9?setTimeout(a(u,this,null,p),0):u(null,p)},_tileOnError:function(u,p,w){var U=this.options.errorTileUrl;U&&p.getAttribute("src")!==U&&(p.src=U),u(w,p)},_onTileRemove:function(u){u.tile.onload=null},_getZoomForUrl:function(){var u=this._tileZoom,p=this.options.maxZoom,w=this.options.zoomReverse,U=this.options.zoomOffset;return w&&(u=p-u),u+U},_getSubdomain:function(u){var p=Math.abs(u.x+u.y)%this.options.subdomains.length;return this.options.subdomains[p]},_abortLoading:function(){var u,p;for(u in this._tiles)if(this._tiles[u].coords.z!==this._tileZoom&&(p=this._tiles[u].el,p.onload=h,p.onerror=h,!p.complete)){p.src=j;var w=this._tiles[u].coords;Cn(p),delete this._tiles[u],this.fire("tileabort",{tile:p,coords:w})}},_removeTile:function(u){var p=this._tiles[u];if(p)return p.el.setAttribute("src",j),Rm.prototype._removeTile.call(this,u)},_tileReady:function(u,p,w){if(!(!this._map||w&&w.getAttribute("src")===j))return Rm.prototype._tileReady.call(this,u,p,w)}});function BR(u,p){return new zu(u,p)}var NR=zu.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(u,p){this._url=u;var w=r({},this.defaultWmsParams);for(var U in p)U in this.options||(w[U]=p[U]);p=y(this,p);var Q=p.detectRetina&&pt.retina?2:1,de=this.getTileSize();w.width=de.x*Q,w.height=de.y*Q,this.wmsParams=w},onAdd:function(u){this._crs=this.options.crs||u.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var p=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[p]=this._crs.code,zu.prototype.onAdd.call(this,u)},getTileUrl:function(u){var p=this._tileCoordsToNwSe(u),w=this._crs,U=z(w.project(p[0]),w.project(p[1])),Q=U.min,de=U.max,Pe=(this._wmsVersion>=1.3&&this._crs===Dm?[Q.y,Q.x,de.y,de.x]:[Q.x,Q.y,de.x,de.y]).join(","),Le=zu.prototype.getTileUrl.call(this,u);return Le+A(this.wmsParams,Le,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+Pe},setParams:function(u,p){return r(this.wmsParams,u),p||this.redraw(),this}});function J2e(u,p){return new NR(u,p)}zu.WMS=NR,BR.wms=J2e;var ha=wr.extend({options:{padding:.1},initialize:function(u){y(this,u),c(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),Lt(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var u={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(u.zoomanim=this._onAnimZoom),u},_onAnimZoom:function(u){this._updateTransform(u.center,u.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(u,p){var w=this._map.getZoomScale(p,this._zoom),U=this._map.getSize().multiplyBy(.5+this.options.padding),Q=this._map.project(this._center,p),de=U.multiplyBy(-w).add(Q).subtract(this._map._getNewPixelOrigin(u,p));pt.any3d?fs(this._container,de,w):Hn(this._container,de)},_reset:function(){this._update(),this._updateTransform(this._center,this._zoom);for(var u in this._layers)this._layers[u]._reset()},_onZoomEnd:function(){for(var u in this._layers)this._layers[u]._project()},_updatePaths:function(){for(var u in this._layers)this._layers[u]._update()},_update:function(){var u=this.options.padding,p=this._map.getSize(),w=this._map.containerPointToLayerPoint(p.multiplyBy(-u)).round();this._bounds=new se(w,w.add(p.multiplyBy(1+u*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),DR=ha.extend({options:{tolerance:0},getEvents:function(){var u=ha.prototype.getEvents.call(this);return u.viewprereset=this._onViewPreReset,u},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){ha.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var u=this._container=document.createElement("canvas");Dt(u,"mousemove",this._onMouseMove,this),Dt(u,"click dblclick mousedown mouseup contextmenu",this._onClick,this),Dt(u,"mouseout",this._handleMouseOut,this),u._leaflet_disable_events=!0,this._ctx=u.getContext("2d")},_destroyContainer:function(){O(this._redrawRequest),delete this._ctx,Cn(this._container),_n(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var u;this._redrawBounds=null;for(var p in this._layers)u=this._layers[p],u._update();this._redraw()}},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){ha.prototype._update.call(this);var u=this._bounds,p=this._container,w=u.getSize(),U=pt.retina?2:1;Hn(p,u.min),p.width=U*w.x,p.height=U*w.y,p.style.width=w.x+"px",p.style.height=w.y+"px",pt.retina&&this._ctx.scale(2,2),this._ctx.translate(-u.min.x,-u.min.y),this.fire("update")}},_reset:function(){ha.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(u){this._updateDashArray(u),this._layers[c(u)]=u;var p=u._order={layer:u,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=p),this._drawLast=p,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(u){this._requestRedraw(u)},_removePath:function(u){var p=u._order,w=p.next,U=p.prev;w?w.prev=U:this._drawLast=U,U?U.next=w:this._drawFirst=w,delete u._order,delete this._layers[c(u)],this._requestRedraw(u)},_updatePath:function(u){this._extendRedrawBounds(u),u._project(),u._update(),this._requestRedraw(u)},_updateStyle:function(u){this._updateDashArray(u),this._requestRedraw(u)},_updateDashArray:function(u){if(typeof u.options.dashArray=="string"){var p=u.options.dashArray.split(/[, ]+/),w=[],U,Q;for(Q=0;Q<p.length;Q++){if(U=Number(p[Q]),isNaN(U))return;w.push(U)}u.options._dashArray=w}else u.options._dashArray=u.options.dashArray},_requestRedraw:function(u){this._map&&(this._extendRedrawBounds(u),this._redrawRequest=this._redrawRequest||I(this._redraw,this))},_extendRedrawBounds:function(u){if(u._pxBounds){var p=(u.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new se,this._redrawBounds.extend(u._pxBounds.min.subtract([p,p])),this._redrawBounds.extend(u._pxBounds.max.add([p,p]))}},_redraw:function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear:function(){var u=this._redrawBounds;if(u){var p=u.getSize();this._ctx.clearRect(u.min.x,u.min.y,p.x,p.y)}else this._ctx.save(),this._ctx.setTransform(1,0,0,1,0,0),this._ctx.clearRect(0,0,this._container.width,this._container.height),this._ctx.restore()},_draw:function(){var u,p=this._redrawBounds;if(this._ctx.save(),p){var w=p.getSize();this._ctx.beginPath(),this._ctx.rect(p.min.x,p.min.y,w.x,w.y),this._ctx.clip()}this._drawing=!0;for(var U=this._drawFirst;U;U=U.next)u=U.layer,(!p||u._pxBounds&&u._pxBounds.intersects(p))&&u._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(u,p){if(this._drawing){var w,U,Q,de,Pe=u._parts,Le=Pe.length,je=this._ctx;if(Le){for(je.beginPath(),w=0;w<Le;w++){for(U=0,Q=Pe[w].length;U<Q;U++)de=Pe[w][U],je[U?"lineTo":"moveTo"](de.x,de.y);p&&je.closePath()}this._fillStroke(je,u)}}},_updateCircle:function(u){if(!(!this._drawing||u._empty())){var p=u._point,w=this._ctx,U=Math.max(Math.round(u._radius),1),Q=(Math.max(Math.round(u._radiusY),1)||U)/U;Q!==1&&(w.save(),w.scale(1,Q)),w.beginPath(),w.arc(p.x,p.y/Q,U,0,Math.PI*2,!1),Q!==1&&w.restore(),this._fillStroke(w,u)}},_fillStroke:function(u,p){var w=p.options;w.fill&&(u.globalAlpha=w.fillOpacity,u.fillStyle=w.fillColor||w.color,u.fill(w.fillRule||"evenodd")),w.stroke&&w.weight!==0&&(u.setLineDash&&u.setLineDash(p.options&&p.options._dashArray||[]),u.globalAlpha=w.opacity,u.lineWidth=w.weight,u.strokeStyle=w.color,u.lineCap=w.lineCap,u.lineJoin=w.lineJoin,u.stroke())},_onClick:function(u){for(var p=this._map.mouseEventToLayerPoint(u),w,U,Q=this._drawFirst;Q;Q=Q.next)w=Q.layer,w.options.interactive&&w._containsPoint(p)&&(!(u.type==="click"||u.type==="preclick")||!this._map._draggableMoved(w))&&(U=w);this._fireEvent(U?[U]:!1,u)},_onMouseMove:function(u){if(!(!this._map||this._map.dragging.moving()||this._map._animatingZoom)){var p=this._map.mouseEventToLayerPoint(u);this._handleMouseHover(u,p)}},_handleMouseOut:function(u){var p=this._hoveredLayer;p&&(Wn(this._container,"leaflet-interactive"),this._fireEvent([p],u,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(u,p){if(!this._mouseHoverThrottled){for(var w,U,Q=this._drawFirst;Q;Q=Q.next)w=Q.layer,w.options.interactive&&w._containsPoint(p)&&(U=w);U!==this._hoveredLayer&&(this._handleMouseOut(u),U&&(Lt(this._container,"leaflet-interactive"),this._fireEvent([U],u,"mouseover"),this._hoveredLayer=U)),this._fireEvent(this._hoveredLayer?[this._hoveredLayer]:!1,u),this._mouseHoverThrottled=!0,setTimeout(a(function(){this._mouseHoverThrottled=!1},this),32)}},_fireEvent:function(u,p,w){this._map._fireDOMEvent(p,w||p.type,u)},_bringToFront:function(u){var p=u._order;if(p){var w=p.next,U=p.prev;if(w)w.prev=U;else return;U?U.next=w:w&&(this._drawFirst=w),p.prev=this._drawLast,this._drawLast.next=p,p.next=null,this._drawLast=p,this._requestRedraw(u)}},_bringToBack:function(u){var p=u._order;if(p){var w=p.next,U=p.prev;if(U)U.next=w;else return;w?w.prev=U:U&&(this._drawLast=U),p.prev=null,p.next=this._drawFirst,this._drawFirst.prev=p,this._drawFirst=p,this._requestRedraw(u)}}});function MR(u){return pt.canvas?new DR(u):null}var Im=(function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(u){return document.createElement("<lvml:"+u+' class="lvml">')}}catch{}return function(u){return document.createElement("<"+u+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}})(),Q2e={_initContainer:function(){this._container=an("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(ha.prototype._update.call(this),this.fire("update"))},_initPath:function(u){var p=u._container=Im("shape");Lt(p,"leaflet-vml-shape "+(this.options.className||"")),p.coordsize="1 1",u._path=Im("path"),p.appendChild(u._path),this._updateStyle(u),this._layers[c(u)]=u},_addPath:function(u){var p=u._container;this._container.appendChild(p),u.options.interactive&&u.addInteractiveTarget(p)},_removePath:function(u){var p=u._container;Cn(p),u.removeInteractiveTarget(p),delete this._layers[c(u)]},_updateStyle:function(u){var p=u._stroke,w=u._fill,U=u.options,Q=u._container;Q.stroked=!!U.stroke,Q.filled=!!U.fill,U.stroke?(p||(p=u._stroke=Im("stroke")),Q.appendChild(p),p.weight=U.weight+"px",p.color=U.color,p.opacity=U.opacity,U.dashArray?p.dashStyle=B(U.dashArray)?U.dashArray.join(" "):U.dashArray.replace(/( *, *)/g," "):p.dashStyle="",p.endcap=U.lineCap.replace("butt","flat"),p.joinstyle=U.lineJoin):p&&(Q.removeChild(p),u._stroke=null),U.fill?(w||(w=u._fill=Im("fill")),Q.appendChild(w),w.color=U.fillColor||U.color,w.opacity=U.fillOpacity):w&&(Q.removeChild(w),u._fill=null)},_updateCircle:function(u){var p=u._point.round(),w=Math.round(u._radius),U=Math.round(u._radiusY||w);this._setPath(u,u._empty()?"M0 0":"AL "+p.x+","+p.y+" "+w+","+U+" 0,"+65535*360)},_setPath:function(u,p){u._path.v=p},_bringToFront:function(u){co(u._container)},_bringToBack:function(u){Di(u._container)}},lb=pt.vml?Im:J,Om=ha.extend({_initContainer:function(){this._container=lb("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=lb("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){Cn(this._container),_n(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){ha.prototype._update.call(this);var u=this._bounds,p=u.getSize(),w=this._container;(!this._svgSize||!this._svgSize.equals(p))&&(this._svgSize=p,w.setAttribute("width",p.x),w.setAttribute("height",p.y)),Hn(w,u.min),w.setAttribute("viewBox",[u.min.x,u.min.y,p.x,p.y].join(" ")),this.fire("update")}},_initPath:function(u){var p=u._path=lb("path");u.options.className&&Lt(p,u.options.className),u.options.interactive&&Lt(p,"leaflet-interactive"),this._updateStyle(u),this._layers[c(u)]=u},_addPath:function(u){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(u._path),u.addInteractiveTarget(u._path)},_removePath:function(u){Cn(u._path),u.removeInteractiveTarget(u._path),delete this._layers[c(u)]},_updatePath:function(u){u._project(),u._update()},_updateStyle:function(u){var p=u._path,w=u.options;p&&(w.stroke?(p.setAttribute("stroke",w.color),p.setAttribute("stroke-opacity",w.opacity),p.setAttribute("stroke-width",w.weight),p.setAttribute("stroke-linecap",w.lineCap),p.setAttribute("stroke-linejoin",w.lineJoin),w.dashArray?p.setAttribute("stroke-dasharray",w.dashArray):p.removeAttribute("stroke-dasharray"),w.dashOffset?p.setAttribute("stroke-dashoffset",w.dashOffset):p.removeAttribute("stroke-dashoffset")):p.setAttribute("stroke","none"),w.fill?(p.setAttribute("fill",w.fillColor||w.color),p.setAttribute("fill-opacity",w.fillOpacity),p.setAttribute("fill-rule",w.fillRule||"evenodd")):p.setAttribute("fill","none"))},_updatePoly:function(u,p){this._setPath(u,fe(u._parts,p))},_updateCircle:function(u){var p=u._point,w=Math.max(Math.round(u._radius),1),U=Math.max(Math.round(u._radiusY),1)||w,Q="a"+w+","+U+" 0 1,0 ",de=u._empty()?"M0 0":"M"+(p.x-w)+","+p.y+Q+w*2+",0 "+Q+-w*2+",0 ";this._setPath(u,de)},_setPath:function(u,p){u._path.setAttribute("d",p)},_bringToFront:function(u){co(u._path)},_bringToBack:function(u){Di(u._path)}});pt.vml&&Om.include(Q2e);function RR(u){return pt.svg||pt.vml?new Om(u):null}Rt.include({getRenderer:function(u){var p=u.options.renderer||this._getPaneRenderer(u.options.pane)||this.options.renderer||this._renderer;return p||(p=this._renderer=this._createRenderer()),this.hasLayer(p)||this.addLayer(p),p},_getPaneRenderer:function(u){if(u==="overlayPane"||u===void 0)return!1;var p=this._paneRenderers[u];return p===void 0&&(p=this._createRenderer({pane:u}),this._paneRenderers[u]=p),p},_createRenderer:function(u){return this.options.preferCanvas&&MR(u)||RR(u)}});var IR=_e.extend({initialize:function(u,p){_e.prototype.initialize.call(this,this._boundsToLatLngs(u),p)},setBounds:function(u){return this.setLatLngs(this._boundsToLatLngs(u))},_boundsToLatLngs:function(u){return u=ee(u),[u.getSouthWest(),u.getNorthWest(),u.getNorthEast(),u.getSouthEast()]}});function V2e(u,p){return new IR(u,p)}Om.create=lb,Om.pointsToPath=fe,qe.geometryToLayer=Qe,qe.coordsToLatLng=it,qe.coordsToLatLngs=Et,qe.latLngToCoords=Bt,qe.latLngsToCoords=qt,qe.getFeature=wt,qe.asFeature=Ft,Rt.mergeOptions({boxZoom:!0});var OR=uo.extend({initialize:function(u){this._map=u,this._container=u._container,this._pane=u._panes.overlayPane,this._resetStateTimeout=0,u.on("unload",this._destroy,this)},addHooks:function(){Dt(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){_n(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){Cn(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){this._resetStateTimeout!==0&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(u){if(!u.shiftKey||u.which!==1&&u.button!==1)return!1;this._clearDeferredResetState(),this._resetState(),la(),vr(),this._startPoint=this._map.mouseEventToContainerPoint(u),Dt(document,{contextmenu:ms,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(u){this._moved||(this._moved=!0,this._box=an("div","leaflet-zoom-box",this._container),Lt(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(u);var p=new se(this._point,this._startPoint),w=p.getSize();Hn(this._box,p.min),this._box.style.width=w.x+"px",this._box.style.height=w.y+"px"},_finish:function(){this._moved&&(Cn(this._box),Wn(this._container,"leaflet-crosshair")),zc(),fl(),_n(document,{contextmenu:ms,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(u){if(!(u.which!==1&&u.button!==1)&&(this._finish(),!!this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(a(this._resetState,this),0);var p=new G(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(p).fire("boxzoomend",{boxZoomBounds:p})}},_onKeyDown:function(u){u.keyCode===27&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});Rt.addInitHook("addHandler","boxZoom",OR),Rt.mergeOptions({doubleClickZoom:!0});var LR=uo.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(u){var p=this._map,w=p.getZoom(),U=p.options.zoomDelta,Q=u.originalEvent.shiftKey?w-U:w+U;p.options.doubleClickZoom==="center"?p.setZoom(Q):p.setZoomAround(u.containerPoint,Q)}});Rt.addInitHook("addHandler","doubleClickZoom",LR),Rt.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var FR=uo.extend({addHooks:function(){if(!this._draggable){var u=this._map;this._draggable=new ps(u._mapPane,u._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),u.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),u.on("zoomend",this._onZoomEnd,this),u.whenReady(this._onZoomEnd,this))}Lt(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){Wn(this._map._container,"leaflet-grab"),Wn(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var u=this._map;if(u._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var p=ee(this._map.options.maxBounds);this._offsetLimit=z(this._map.latLngToContainerPoint(p.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(p.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;u.fire("movestart").fire("dragstart"),u.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(u){if(this._map.options.inertia){var p=this._lastTime=+new Date,w=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(w),this._times.push(p),this._prunePositions(p)}this._map.fire("move",u).fire("drag",u)},_prunePositions:function(u){for(;this._positions.length>1&&u-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var u=this._map.getSize().divideBy(2),p=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=p.subtract(u).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(u,p){return u-(u-p)*this._viscosity},_onPreDragLimit:function(){if(!(!this._viscosity||!this._offsetLimit)){var u=this._draggable._newPos.subtract(this._draggable._startPos),p=this._offsetLimit;u.x<p.min.x&&(u.x=this._viscousLimit(u.x,p.min.x)),u.y<p.min.y&&(u.y=this._viscousLimit(u.y,p.min.y)),u.x>p.max.x&&(u.x=this._viscousLimit(u.x,p.max.x)),u.y>p.max.y&&(u.y=this._viscousLimit(u.y,p.max.y)),this._draggable._newPos=this._draggable._startPos.add(u)}},_onPreDragWrap:function(){var u=this._worldWidth,p=Math.round(u/2),w=this._initialWorldOffset,U=this._draggable._newPos.x,Q=(U-p+w)%u+p-w,de=(U+p+w)%u-p-w,Pe=Math.abs(Q+w)<Math.abs(de+w)?Q:de;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=Pe},_onDragEnd:function(u){var p=this._map,w=p.options,U=!w.inertia||u.noInertia||this._times.length<2;if(p.fire("dragend",u),U)p.fire("moveend");else{this._prunePositions(+new Date);var Q=this._lastPos.subtract(this._positions[0]),de=(this._lastTime-this._times[0])/1e3,Pe=w.easeLinearity,Le=Q.multiplyBy(Pe/de),je=Le.distanceTo([0,0]),Ze=Math.min(w.inertiaMaxSpeed,je),dt=Le.multiplyBy(Ze/je),At=Ze/(w.inertiaDeceleration*Pe),Yt=dt.multiplyBy(-At/2).round();!Yt.x&&!Yt.y?p.fire("moveend"):(Yt=p._limitOffset(Yt,p.options.maxBounds),I(function(){p.panBy(Yt,{duration:At,easeLinearity:Pe,noMoveStart:!0,animate:!0})}))}}});Rt.addInitHook("addHandler","dragging",FR),Rt.mergeOptions({keyboard:!0,keyboardPanDelta:80});var $R=uo.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(u){this._map=u,this._setPanDelta(u.options.keyboardPanDelta),this._setZoomDelta(u.options.zoomDelta)},addHooks:function(){var u=this._map._container;u.tabIndex<=0&&(u.tabIndex="0"),Dt(u,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),_n(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(!this._focused){var u=document.body,p=document.documentElement,w=u.scrollTop||p.scrollTop,U=u.scrollLeft||p.scrollLeft;this._map._container.focus(),window.scrollTo(U,w)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(u){var p=this._panKeys={},w=this.keyCodes,U,Q;for(U=0,Q=w.left.length;U<Q;U++)p[w.left[U]]=[-1*u,0];for(U=0,Q=w.right.length;U<Q;U++)p[w.right[U]]=[u,0];for(U=0,Q=w.down.length;U<Q;U++)p[w.down[U]]=[0,u];for(U=0,Q=w.up.length;U<Q;U++)p[w.up[U]]=[0,-1*u]},_setZoomDelta:function(u){var p=this._zoomKeys={},w=this.keyCodes,U,Q;for(U=0,Q=w.zoomIn.length;U<Q;U++)p[w.zoomIn[U]]=u;for(U=0,Q=w.zoomOut.length;U<Q;U++)p[w.zoomOut[U]]=-u},_addHooks:function(){Dt(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){_n(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(u){if(!(u.altKey||u.ctrlKey||u.metaKey)){var p=u.keyCode,w=this._map,U;if(p in this._panKeys){if(!w._panAnim||!w._panAnim._inProgress)if(U=this._panKeys[p],u.shiftKey&&(U=ce(U).multiplyBy(3)),w.options.maxBounds&&(U=w._limitOffset(ce(U),w.options.maxBounds)),w.options.worldCopyJump){var Q=w.wrapLatLng(w.unproject(w.project(w.getCenter()).add(U)));w.panTo(Q)}else w.panBy(U)}else if(p in this._zoomKeys)w.setZoom(w.getZoom()+(u.shiftKey?3:1)*this._zoomKeys[p]);else if(p===27&&w._popup&&w._popup.options.closeOnEscapeKey)w.closePopup();else return;ms(u)}}});Rt.addInitHook("addHandler","keyboard",$R),Rt.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var zR=uo.extend({addHooks:function(){Dt(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){_n(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(u){var p=jy(u),w=this._map.options.wheelDebounceTime;this._delta+=p,this._lastMousePos=this._map.mouseEventToContainerPoint(u),this._startTime||(this._startTime=+new Date);var U=Math.max(w-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(a(this._performZoom,this),U),ms(u)},_performZoom:function(){var u=this._map,p=u.getZoom(),w=this._map.options.zoomSnap||0;u._stop();var U=this._delta/(this._map.options.wheelPxPerZoomLevel*4),Q=4*Math.log(2/(1+Math.exp(-Math.abs(U))))/Math.LN2,de=w?Math.ceil(Q/w)*w:Q,Pe=u._limitZoom(p+(this._delta>0?de:-de))-p;this._delta=0,this._startTime=null,Pe&&(u.options.scrollWheelZoom==="center"?u.setZoom(p+Pe):u.setZoomAround(this._lastMousePos,p+Pe))}});Rt.addInitHook("addHandler","scrollWheelZoom",zR);var eSe=600;Rt.mergeOptions({tapHold:pt.touchNative&&pt.safari&&pt.mobile,tapTolerance:15});var jR=uo.extend({addHooks:function(){Dt(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){_n(this._map._container,"touchstart",this._onDown,this)},_onDown:function(u){if(clearTimeout(this._holdTimeout),u.touches.length===1){var p=u.touches[0];this._startPos=this._newPos=new re(p.clientX,p.clientY),this._holdTimeout=setTimeout(a(function(){this._cancel(),this._isTapValid()&&(Dt(document,"touchend",hi),Dt(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",p))},this),eSe),Dt(document,"touchend touchcancel contextmenu",this._cancel,this),Dt(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function u(){_n(document,"touchend",hi),_n(document,"touchend touchcancel",u)},_cancel:function(){clearTimeout(this._holdTimeout),_n(document,"touchend touchcancel contextmenu",this._cancel,this),_n(document,"touchmove",this._onMove,this)},_onMove:function(u){var p=u.touches[0];this._newPos=new re(p.clientX,p.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(u,p){var w=new MouseEvent(u,{bubbles:!0,cancelable:!0,view:window,screenX:p.screenX,screenY:p.screenY,clientX:p.clientX,clientY:p.clientY});w._simulated=!0,p.target.dispatchEvent(w)}});Rt.addInitHook("addHandler","tapHold",jR),Rt.mergeOptions({touchZoom:pt.touch,bounceAtZoomLimits:!0});var UR=uo.extend({addHooks:function(){Lt(this._map._container,"leaflet-touch-zoom"),Dt(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){Wn(this._map._container,"leaflet-touch-zoom"),_n(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(u){var p=this._map;if(!(!u.touches||u.touches.length!==2||p._animatingZoom||this._zooming)){var w=p.mouseEventToContainerPoint(u.touches[0]),U=p.mouseEventToContainerPoint(u.touches[1]);this._centerPoint=p.getSize()._divideBy(2),this._startLatLng=p.containerPointToLatLng(this._centerPoint),p.options.touchZoom!=="center"&&(this._pinchStartLatLng=p.containerPointToLatLng(w.add(U)._divideBy(2))),this._startDist=w.distanceTo(U),this._startZoom=p.getZoom(),this._moved=!1,this._zooming=!0,p._stop(),Dt(document,"touchmove",this._onTouchMove,this),Dt(document,"touchend touchcancel",this._onTouchEnd,this),hi(u)}},_onTouchMove:function(u){if(!(!u.touches||u.touches.length!==2||!this._zooming)){var p=this._map,w=p.mouseEventToContainerPoint(u.touches[0]),U=p.mouseEventToContainerPoint(u.touches[1]),Q=w.distanceTo(U)/this._startDist;if(this._zoom=p.getScaleZoom(Q,this._startZoom),!p.options.bounceAtZoomLimits&&(this._zoom<p.getMinZoom()&&Q<1||this._zoom>p.getMaxZoom()&&Q>1)&&(this._zoom=p._limitZoom(this._zoom)),p.options.touchZoom==="center"){if(this._center=this._startLatLng,Q===1)return}else{var de=w._add(U)._divideBy(2)._subtract(this._centerPoint);if(Q===1&&de.x===0&&de.y===0)return;this._center=p.unproject(p.project(this._pinchStartLatLng,this._zoom).subtract(de),this._zoom)}this._moved||(p._moveStart(!0,!1),this._moved=!0),O(this._animRequest);var Pe=a(p._move,p,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=I(Pe,this,!0),hi(u)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,O(this._animRequest),_n(document,"touchmove",this._onTouchMove,this),_n(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))}});Rt.addInitHook("addHandler","touchZoom",UR),Rt.BoxZoom=OR,Rt.DoubleClickZoom=LR,Rt.Drag=FR,Rt.Keyboard=$R,Rt.ScrollWheelZoom=zR,Rt.TapHold=jR,Rt.TouchZoom=UR,n.Bounds=se,n.Browser=pt,n.CRS=F,n.Canvas=DR,n.Circle=me,n.CircleMarker=V,n.Class=X,n.Control=Or,n.DivIcon=PR,n.DivOverlay=Pn,n.DomEvent=R1,n.DomUtil=M1,n.Draggable=ps,n.Evented=te,n.FeatureGroup=fo,n.GeoJSON=qe,n.GridLayer=Rm,n.Handler=uo,n.Icon=fa,n.ImageOverlay=qn,n.LatLng=K,n.LatLngBounds=G,n.Layer=wr,n.LayerGroup=ua,n.LineUtil=da,n.Map=Rt,n.Marker=Yc,n.Mixin=L1,n.Path=H,n.Point=re,n.PolyUtil=F1,n.Polygon=_e,n.Polyline=ie,n.Popup=Lr,n.PosAnimation=Kc,n.Projection=eb,n.Rectangle=IR,n.Renderer=ha,n.SVG=Om,n.SVGOverlay=li,n.TileLayer=zu,n.Tooltip=ab,n.Transformation=S,n.Util=q,n.VideoOverlay=ut,n.bind=a,n.bounds=z,n.canvas=MR,n.circle=xe,n.circleMarker=le,n.control=hl,n.divIcon=Z2e,n.extend=r,n.featureGroup=rb,n.geoJSON=Mt,n.geoJson=Kt,n.gridLayer=X2e,n.icon=ob,n.imageOverlay=Ct,n.latLng=Y,n.latLngBounds=ee,n.layerGroup=ib,n.map=I1,n.marker=sb,n.point=ce,n.polygon=ze,n.polyline=he,n.popup=j1,n.rectangle=V2e,n.setOptions=y,n.stamp=c,n.svg=RR,n.svgOverlay=Kn,n.tileLayer=BR,n.tooltip=Y2e,n.transformation=T,n.version=i,n.videoOverlay=bi;var tSe=window.L;n.noConflict=function(){return window.L=tSe,this},window.L=n}))})(Ff,Ff.exports)),Ff.exports}var HG=WG();const rw=Xm(HG),qG={class:"flex flex-col gap-1 w-full relative"},KG={key:0,class:"h-4 w-32 rounded bg-gray-200 dark:bg-gray-700 animate-shimmer mb-1"},GG={class:"flex items-center justify-between mb-0.5"},YG={key:0,class:"text-sm font-medium text-gray-700 dark:text-gray-200"},ZG={key:0,class:"ml-1 text-destructive"},XG={key:0,class:"flex flex-col gap-2 mb-2 w-full relative"},JG={class:"flex flex-col sm:flex-row gap-2 w-full relative"},QG={class:"px-3 py-2 text-sm text-gray-500 dark:text-gray-400 h-10 flex items-center"},VG={key:0},eY={key:1},tY={key:2},nY={key:1,class:"flex-1 grid grid-cols-2 gap-2"},iY=["disabled"],rY=["disabled"],oY={class:"flex gap-2 flex-shrink-0"},sY={key:0,class:"absolute inset-0 z-[1001] bg-transparent cursor-not-allowed pointer-events-auto"},aY={key:1,class:"absolute bottom-2.5 left-2.5 z-[1000] bg-white/95 dark:bg-neutral-900/95 backdrop-blur-sm border border-gray-200 dark:border-neutral-800 rounded-md px-2.5 py-1 text-[11px] font-mono text-gray-700 dark:text-gray-300 shadow-md flex items-center gap-1.5 pointer-events-none select-none"},lY={key:1,class:"text-xs text-destructive mt-1"},kg=o.defineComponent({name:"DCodeMapField",inheritAttrs:!1,__name:"DCodeMapField",props:{modelValue:{},valueFormat:{default:"object-lat-lng"},label:{},placeholder:{default:"Cari alamat atau lokasi..."},disabled:{type:[Boolean,String],default:!1},readonly:{type:Boolean,default:!1},visible:{type:Boolean,default:!0},skeleton:{type:Boolean,default:!1},error:{default:null},height:{default:"320px"},zoom:{default:13},defaultLat:{default:-.9492},defaultLng:{default:100.42},enableSearch:{type:Boolean,default:!0},enableCurrentLocation:{type:Boolean,default:!0},enableManualInput:{type:Boolean,default:!1},required:{type:Boolean,default:!1}},emits:["update:modelValue","change"],setup(e,{emit:t}){const n=o.useAttrs(),i=e,r=t,a=`app-map-container-${Math.random().toString(36).slice(2,7)}`,l=o.computed(()=>i.label??n.label),c=o.computed(()=>{const z=n.required,G=n["aria-required"];return z===""||z===!0||z==="true"||G==="true"||G===!0||i.required}),d=o.ref(!1),f=o.ref(!1),h=o.ref([]),m=o.ref(null),g=o.ref(""),v=o.ref(""),y=o.ref(""),A=o.ref(i.enableManualInput?"manual":"search");o.watch(()=>[i.enableSearch,i.enableManualInput],()=>{i.enableManualInput?A.value="manual":A.value="search"},{immediate:!0});let C=null,M=null,B=null,N=null;const j=z=>{if(!z)return null;if(typeof z=="object"){if(Array.isArray(z)){if(z.length>=2){const K=Number(z[0]),Y=Number(z[1]);if(!isNaN(K)&&!isNaN(Y))return i.valueFormat==="array-lng-lat"?{lat:Y,lng:K}:{lat:K,lng:Y}}return null}const G=Number(z.lat!==void 0?z.lat:z.latitude),ee=Number(z.lng!==void 0?z.lng:z.longitude);if(!isNaN(G)&&!isNaN(ee))return{lat:G,lng:ee}}else if(typeof z=="string"){const G=z.split(",").map(ee=>Number(ee.trim()));if(G.length>=2&&!isNaN(G[0])&&!isNaN(G[1]))return{lat:G[0],lng:G[1]}}return null},W=z=>{const G=Number(z.lat.toFixed(6)),ee=Number(z.lng.toFixed(6));switch(i.valueFormat){case"object-latitude-longitude":return{latitude:G,longitude:ee};case"array-lat-lng":return[G,ee];case"array-lng-lat":return[ee,G];case"string":return`${G},${ee}`;case"object-lat-lng":default:return{lat:G,lng:ee}}},P=o.ref(null);o.watch(()=>i.modelValue,z=>{const G=j(z);G?(!P.value||Math.abs(P.value.lat-G.lat)>1e-6||Math.abs(P.value.lng-G.lng)>1e-6)&&(P.value=G,v.value=G.lat.toFixed(6),y.value=G.lng.toFixed(6),X(G.lat,G.lng,!0)):(z==null||z==="")&&(P.value=null,v.value="",y.value="",m.value=null,M&&C&&(C.removeLayer(M),M=null))},{deep:!0,immediate:!0});const E=(z,G)=>{if(!C||!G)return;const ee="https://tile.openstreetmap.org/{z}/{x}/{y}.png",K='&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors';B&&C.removeLayer(B),B=G.tileLayer(ee,{attribution:K,maxZoom:19}).addTo(C)},k=z=>z.divIcon({className:"custom-map-marker-container",html:`
133
133
  <div class="relative flex items-center justify-center -top-4">
134
134
  <!-- Ping Ripple -->
135
135
  <span class="absolute inline-flex h-8 w-8 rounded-full bg-blue-500 opacity-40 animate-ping"></span>
@@ -141,7 +141,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`),se=te,ce=re),ge===void
141
141
  </svg>
142
142
  </div>
143
143
  </div>
144
- `,iconSize:[32,32],iconAnchor:[16,16]}),$=()=>{if(N&&(N.disconnect(),N=null),C){try{C.off(),C.remove()}catch(z){console.warn("Error removing map instance:",z)}C=null}M=null,B=null},I=z=>{if(C)try{z?(C.dragging&&C.dragging.enable(),C.touchZoom&&C.touchZoom.enable(),C.doubleClickZoom&&C.doubleClickZoom.enable(),C.scrollWheelZoom&&C.scrollWheelZoom.enable(),C.boxZoom&&C.boxZoom.enable(),C.keyboard&&C.keyboard.enable(),M&&M.dragging&&M.dragging.enable()):(C.dragging&&C.dragging.disable(),C.touchZoom&&C.touchZoom.disable(),C.doubleClickZoom&&C.doubleClickZoom.disable(),C.scrollWheelZoom&&C.scrollWheelZoom.disable(),C.boxZoom&&C.boxZoom.disable(),C.keyboard&&C.keyboard.disable(),M&&M.dragging&&M.dragging.disable())}catch(G){console.error("Error toggling map interactivity:",G)}},O=z=>{var Y,F;if(C)return;if(!document.getElementById(a)){console.warn(`Map container #${a} not found in DOM yet.`);return}const ee=Number(((Y=P.value)==null?void 0:Y.lat)??i.defaultLat),K=Number(((F=P.value)==null?void 0:F.lng)??i.defaultLng);try{const b=!(i.disabled===!0||i.disabled==="true");C=z.map(a,{center:[ee,K],zoom:Number(i.zoom),zoomControl:!0,attributionControl:!1});const R=document.documentElement.classList.contains("dark");E(R,z),P.value&&X(P.value.lat,P.value.lng,!1),I(b),C.on("click",S=>{if(i.disabled||i.readonly)return;const{lat:T,lng:D}=S.latlng;q(T,D)}),N=new MutationObserver(()=>{const S=document.documentElement.classList.contains("dark");E(S,z)}),N.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]}),setTimeout(()=>{C==null||C.invalidateSize()},100)}catch(_){console.error("Failed to initialize Leaflet map:",_)}},q=(z,G,ee=!0,K=null)=>{const Y={lat:z,lng:G};P.value=Y,ee&&(v.value=z.toFixed(6),y.value=G.toFixed(6)),X(z,G,!0),m.value=K;const F=W(Y);r("update:modelValue",F),r("change",F)},X=(z,G,ee=!0)=>{if(!C||!window.L)return;const K=window.L;ee&&C.setView([z,G],C.getZoom()),M?M.setLatLng([z,G]):(M=K.marker([z,G],{icon:k(K),draggable:!i.disabled&&!i.readonly}).addTo(C),M.on("dragend",()=>{const Y=M.getLatLng();q(Y.lat,Y.lng)}))};let oe=null;const ue=z=>{const G=z.target.value;if(g.value=G,oe&&clearTimeout(oe),!G.trim()){h.value=[],d.value=!1;return}d.value=!0,oe=setTimeout(()=>{te(G)},500)},te=async z=>{d.value=!0;try{const G=await fetch(`https://nominatim.openstreetmap.org/search?format=json&q=${encodeURIComponent(z)}&limit=7`);if(G.ok){const ee=await G.json();h.value=ee}}catch(G){console.error("Nominatim geocoding error:",G)}finally{d.value=!1}},re=z=>{if(!z){se();return}const G=Number(z.lat),ee=Number(z.lon);!isNaN(G)&&!isNaN(ee)&&(g.value=z.display_name,q(G,ee,!0,z))},ge=()=>{if(!(i.disabled||i.readonly)){if(!navigator.geolocation){alert("Perangkat Anda tidak mendukung pelacakan lokasi.");return}f.value=!0,navigator.geolocation.getCurrentPosition(z=>{const{latitude:G,longitude:ee}=z.coords;q(G,ee),f.value=!1},z=>{console.error("Geolocation error:",z),alert(`Gagal mengambil lokasi: ${z.message}`),f.value=!1},{enableHighAccuracy:!1,timeout:5e3})}};o.watch(()=>[i.disabled,i.readonly],([z,G])=>{I(!(z===!0||z==="true")&&!(G===!0||G==="true"))}),o.watch(()=>i.skeleton,z=>{z?$():setTimeout(()=>{O(rw)},50)}),o.watch(()=>i.visible,z=>{z?setTimeout(()=>{O(rw),C==null||C.invalidateSize()},50):$()}),o.onMounted(()=>{!i.skeleton&&i.visible&&setTimeout(()=>{O(rw)},50)}),o.onBeforeUnmount(()=>{$(),oe&&clearTimeout(oe)});const ce=()=>{const z=Number(v.value),G=Number(y.value);!isNaN(z)&&!isNaN(G)&&z>=-90&&z<=90&&G>=-180&&G<=180&&q(z,G,!1)},se=()=>{i.disabled||i.readonly||(P.value=null,v.value="",y.value="",h.value=[],m.value=null,g.value="",M&&C&&(C.removeLayer(M),M=null),r("update:modelValue",null),r("change",null))};return(z,G)=>o.withDirectives((o.openBlock(),o.createElementBlock("div",qG,[i.skeleton?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[l.value?(o.openBlock(),o.createElementBlock("div",KG)):o.createCommentVNode("",!0),G[3]||(G[3]=o.createElementVNode("div",{class:"h-10 w-full rounded-lg bg-gray-200 dark:bg-gray-700 animate-shimmer mb-2"},null,-1)),o.createElementVNode("div",{style:o.normalizeStyle({height:i.height}),class:"w-full rounded-lg bg-gray-200 dark:bg-gray-700 animate-shimmer"},null,4)],64)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createElementVNode("div",GG,[l.value?(o.openBlock(),o.createElementBlock("label",YG,[o.createTextVNode(o.toDisplayString(l.value)+" ",1),c.value?(o.openBlock(),o.createElementBlock("span",ZG,"*")):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0)]),i.enableSearch||i.enableManualInput?(o.openBlock(),o.createElementBlock("div",XG,[o.createElementVNode("div",JG,[i.enableSearch&&A.value==="search"?(o.openBlock(),o.createBlock(Qu,{key:0,modelValue:m.value,"onUpdate:modelValue":[G[0]||(G[0]=ee=>m.value=ee),re],placeholder:i.placeholder,disabled:i.disabled||i.readonly,items:h.value,loading:d.value,icon:o.unref(Ne.Search),"item-title":"display_name","item-value":"place_id","return-object":"",clearable:"",onInput:ue,class:"flex-1"},{"no-data":o.withCtx(()=>[o.createElementVNode("div",QG,[d.value?(o.openBlock(),o.createElementBlock("span",VG,"Mencari lokasi...")):g.value.trim()?(o.openBlock(),o.createElementBlock("span",tY,"Lokasi tidak ditemukan")):(o.openBlock(),o.createElementBlock("span",eY,"Ketik untuk mencari lokasi..."))])]),_:1},8,["modelValue","placeholder","disabled","items","loading","icon"])):o.createCommentVNode("",!0),i.enableManualInput&&A.value==="manual"?(o.openBlock(),o.createElementBlock("div",nY,[o.withDirectives(o.createElementVNode("input",{type:"text","onUpdate:modelValue":G[1]||(G[1]=ee=>v.value=ee),placeholder:"Latitude (e.g. -6.2088)",disabled:i.disabled||i.readonly,onInput:ce,class:"w-full h-10 px-3 text-sm bg-white dark:bg-neutral-800 text-foreground dark:text-gray-300 border border-gray-300 dark:border-neutral-700/50 rounded-lg focus:outline-none focus:ring-1 focus:ring-primary focus:border-primary transition duration-200 disabled:opacity-50 disabled:cursor-not-allowed font-mono"},null,40,iY),[[o.vModelText,v.value]]),o.withDirectives(o.createElementVNode("input",{type:"text","onUpdate:modelValue":G[2]||(G[2]=ee=>y.value=ee),placeholder:"Longitude (e.g. 106.8456)",disabled:i.disabled||i.readonly,onInput:ce,class:"w-full h-10 px-3 text-sm bg-white dark:bg-neutral-800 text-foreground dark:text-gray-300 border border-gray-300 dark:border-neutral-700/50 rounded-lg focus:outline-none focus:ring-1 focus:ring-primary focus:border-primary transition duration-200 disabled:opacity-50 disabled:cursor-not-allowed font-mono"},null,40,rY),[[o.vModelText,y.value]])])):o.createCommentVNode("",!0),o.createElementVNode("div",oY,[i.enableCurrentLocation?(o.openBlock(),o.createBlock(Vt,{key:0,onClick:ge,disabled:i.disabled||i.readonly||f.value,variant:"secondary",class:"h-10 px-3 flex items-center justify-center gap-1.5 bg-white dark:bg-neutral-800 text-gray-700 dark:text-gray-200 border border-gray-300 dark:border-neutral-700/50 hover:bg-gray-50 dark:hover:bg-neutral-800/80 font-medium rounded-lg text-sm transition-all duration-200 disabled:opacity-50 disabled:cursor-not-allowed shadow-none",title:"Dapatkan lokasi saat ini"},{default:o.withCtx(()=>[o.createVNode(o.unref(Ne.Compass),{class:o.normalizeClass(["h-4 w-4",{"animate-spin":f.value}])},null,8,["class"]),G[4]||(G[4]=o.createElementVNode("span",{class:"hidden sm:inline"},"Lokasi Saya",-1))]),_:1},8,["disabled"])):o.createCommentVNode("",!0),P.value?(o.openBlock(),o.createBlock(Vt,{key:1,onClick:se,disabled:i.disabled||i.readonly,variant:"secondary",class:"h-10 px-3 flex items-center justify-center bg-white dark:bg-neutral-800 text-gray-700 dark:text-gray-200 border border-gray-300 dark:border-neutral-700/50 hover:bg-gray-50 dark:hover:bg-neutral-800/80 rounded-lg text-sm transition disabled:opacity-50 shadow-none",title:"Hapus pilihan"},{default:o.withCtx(()=>[...G[5]||(G[5]=[o.createTextVNode(" Reset ",-1)])]),_:1},8,["disabled"])):o.createCommentVNode("",!0)])])])):o.createCommentVNode("",!0),o.createElementVNode("div",{class:o.normalizeClass(["relative w-full rounded-lg border border-gray-300 dark:border-neutral-700/50 overflow-hidden shadow-sm z-10",[i.disabled===!0||i.disabled==="true"||i.readonly===!0||i.readonly==="true"?"map-locked opacity-70":""]])},[o.createElementVNode("div",{id:a,style:o.normalizeStyle({height:i.height}),class:"w-full"},null,4),i.disabled===!0||i.disabled==="true"||i.readonly===!0||i.readonly==="true"?(o.openBlock(),o.createElementBlock("div",sY)):o.createCommentVNode("",!0),P.value?(o.openBlock(),o.createElementBlock("div",aY,[G[6]||(G[6]=o.createElementVNode("span",{class:"w-1.5 h-1.5 bg-blue-500 rounded-full animate-pulse"},null,-1)),o.createElementVNode("span",null,"Lat: "+o.toDisplayString(P.value.lat.toFixed(6)),1),G[7]||(G[7]=o.createElementVNode("span",{class:"text-gray-300 dark:text-gray-700"},"|",-1)),o.createElementVNode("span",null,"Lng: "+o.toDisplayString(P.value.lng.toFixed(6)),1)])):o.createCommentVNode("",!0)],2),i.error?(o.openBlock(),o.createElementBlock("p",lY,o.toDisplayString(i.error),1)):o.createCommentVNode("",!0)],64))],512)),[[o.vShow,i.visible]])}});new Array(256).fill("").map((e,t)=>("0"+t.toString(16)).slice(-2));function ow(e){return!!e&&/^\d+\.\d+\.\d+/.test(e)}function sw(e){if(!ow(e))throw new Error(`Invalid semantic version: ${e||"<blank>"}.`);const[t,n,i]=e.split(".");return{major:Number.parseInt(t,10),minor:Number.parseInt(n,10),patch:Number.parseInt(i,10)}}function cY(e,t){const n=sw(e),i=sw(t);return Math.sign(n.major-i.major||n.minor-i.minor||n.patch-i.patch)}function AS(e){return e?["nightly","alpha","internal","nightly-","staging"].some(t=>e.includes(t)):!1}function TS(e){return!!(e!=null&&e.startsWith("0.0.0-"))}function dY(e){return ow(e)||AS(e)}function uY(e,t){const n=e.extraPlugins||[];return{...e,extraPlugins:[...n,...t.filter(i=>!n.includes(i))]}}function fY(e){if(AS(e))return 3;const{major:t}=sw(e);switch(!0){case t>=44:return 3;case t>=38:return 2;default:return 1}}function PS(){const{CKEDITOR_VERSION:e,CKEDITOR:t}=window;return dY(e)?{source:t?"cdn":"npm",version:e}:null}function hY(){const e=PS();return e?fY(e.version):null}function BS(e,t){switch(t||(t=hY()||void 0),t){case 1:case 2:return e===void 0;case 3:return e==="GPL";default:return!1}}function mY(e,t){return function(i){BS(i.config.get("licenseKey"))||i.on("collectUsageData",(r,{setUsageData:s})=>{s(`integration.${e}`,t)})}}function NS(e){var n;const t=(n=PS())==null?void 0:n.version;return t?TS(e)?-1:!ow(t)||TS(t)?1:cY(t,e):null}function aw(){const e=NS("48.0.0"),t=e!==null&&e>=0;return{rootsConfigEntry:t,elementConfigAttachment:t}}function pY(e,t,n){var r;if(!e.editorName||e.editorName==="ClassicEditor")return{...n,attachTo:t};const i={...n,roots:{...n.roots,main:{...n.root,...(r=n.roots)==null?void 0:r.main,element:t}}};return delete i.root,i}function gY(e){var n,i,r;return aw().rootsConfigEntry&&(((i=(n=e.roots)==null?void 0:n.main)==null?void 0:i.initialData)||((r=e.root)==null?void 0:r.initialData))||e.initialData}function yY(e,t,n){var s;const i=aw(),r=n?null:gY(e);if(i.rootsConfigEntry){const a={...e,roots:{...e.roots,main:{...e.root,...(s=e.roots)==null?void 0:s.main,initialData:r||t||""}}};return t&&r&&console.warn("Editor data should be provided either via the config (`config.root.initialData`) or the component's `data` property, but not both. The configuration value takes precedence."),delete a.root,delete a.initialData,a}return t&&r&&console.warn("Editor data should be provided either via the config (`config.initialData`) or the component's `data` property, but not both. The configuration value takes precedence."),{...e,initialData:r||t||""}}var bY=typeof global=="object"&&global&&global.Object===Object&&global,vY=typeof self=="object"&&self&&self.Object===Object&&self,DS=bY||vY||Function("return this")(),xg=DS.Symbol,MS=Object.prototype,wY=MS.hasOwnProperty,_Y=MS.toString,$f=xg?xg.toStringTag:void 0;function kY(e){var t=wY.call(e,$f),n=e[$f];try{e[$f]=void 0;var i=!0}catch{}var r=_Y.call(e);return i&&(t?e[$f]=n:delete e[$f]),r}var xY=Object.prototype,EY=xY.toString;function CY(e){return EY.call(e)}var SY="[object Null]",AY="[object Undefined]",RS=xg?xg.toStringTag:void 0;function TY(e){return e==null?e===void 0?AY:SY:RS&&RS in Object(e)?kY(e):CY(e)}function PY(e){return e!=null&&typeof e=="object"}var BY="[object Symbol]";function NY(e){return typeof e=="symbol"||PY(e)&&TY(e)==BY}var DY=/\s/;function MY(e){for(var t=e.length;t--&&DY.test(e.charAt(t)););return t}var RY=/^\s+/;function IY(e){return e&&e.slice(0,MY(e)+1).replace(RY,"")}function lw(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var IS=NaN,OY=/^[-+]0x[0-9a-f]+$/i,LY=/^0b[01]+$/i,FY=/^0o[0-7]+$/i,$Y=parseInt;function OS(e){if(typeof e=="number")return e;if(NY(e))return IS;if(lw(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=lw(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=IY(e);var n=LY.test(e);return n||FY.test(e)?$Y(e.slice(2),n?2:8):OY.test(e)?IS:+e}var cw=function(){return DS.Date.now()},zY="Expected a function",jY=Math.max,UY=Math.min;function WY(e,t,n){var i,r,s,a,l,c,d=0,f=!1,h=!1,m=!0;if(typeof e!="function")throw new TypeError(zY);t=OS(t)||0,lw(n)&&(f=!0,h="maxWait"in n,s=h?jY(OS(n.maxWait)||0,t):s,m="trailing"in n?!!n.trailing:m);function g(W){var P=i,E=r;return i=r=void 0,d=W,a=e.apply(E,P),a}function v(W){return d=W,l=setTimeout(C,t),f?g(W):a}function y(W){var P=W-c,E=W-d,k=t-P;return h?UY(k,s-E):k}function A(W){var P=W-c,E=W-d;return c===void 0||P>=t||P<0||h&&E>=s}function C(){var W=cw();if(A(W))return M(W);l=setTimeout(C,y(W))}function M(W){return l=void 0,m&&i?g(W):(i=r=void 0,a)}function B(){l!==void 0&&clearTimeout(l),d=0,i=c=r=l=void 0}function N(){return l===void 0?a:M(cw())}function j(){var W=cw(),P=A(W);if(i=arguments,r=this,c=W,P){if(l===void 0)return v(c);if(h)return clearTimeout(l),l=setTimeout(C,t),g(c)}return l===void 0&&(l=setTimeout(C,t)),a}return j.cancel=B,j.flush=N,j}/**
144
+ `,iconSize:[32,32],iconAnchor:[16,16]}),$=()=>{if(N&&(N.disconnect(),N=null),C){try{C.off(),C.remove()}catch(z){console.warn("Error removing map instance:",z)}C=null}M=null,B=null},I=z=>{if(C)try{z?(C.dragging&&C.dragging.enable(),C.touchZoom&&C.touchZoom.enable(),C.doubleClickZoom&&C.doubleClickZoom.enable(),C.scrollWheelZoom&&C.scrollWheelZoom.enable(),C.boxZoom&&C.boxZoom.enable(),C.keyboard&&C.keyboard.enable(),M&&M.dragging&&M.dragging.enable()):(C.dragging&&C.dragging.disable(),C.touchZoom&&C.touchZoom.disable(),C.doubleClickZoom&&C.doubleClickZoom.disable(),C.scrollWheelZoom&&C.scrollWheelZoom.disable(),C.boxZoom&&C.boxZoom.disable(),C.keyboard&&C.keyboard.disable(),M&&M.dragging&&M.dragging.disable())}catch(G){console.error("Error toggling map interactivity:",G)}},O=z=>{var Y,F;if(C)return;if(!document.getElementById(a)){console.warn(`Map container #${a} not found in DOM yet.`);return}const ee=Number(((Y=P.value)==null?void 0:Y.lat)??i.defaultLat),K=Number(((F=P.value)==null?void 0:F.lng)??i.defaultLng);try{const b=!(i.disabled===!0||i.disabled==="true");C=z.map(a,{center:[ee,K],zoom:Number(i.zoom),zoomControl:!0,attributionControl:!1});const R=document.documentElement.classList.contains("dark");E(R,z),P.value&&X(P.value.lat,P.value.lng,!1),I(b),C.on("click",S=>{if(i.disabled||i.readonly)return;const{lat:T,lng:D}=S.latlng;q(T,D)}),N=new MutationObserver(()=>{const S=document.documentElement.classList.contains("dark");E(S,z)}),N.observe(document.documentElement,{attributes:!0,attributeFilter:["class"]}),setTimeout(()=>{C==null||C.invalidateSize()},100)}catch(_){console.error("Failed to initialize Leaflet map:",_)}},q=(z,G,ee=!0,K=null)=>{const Y={lat:z,lng:G};P.value=Y,ee&&(v.value=z.toFixed(6),y.value=G.toFixed(6)),X(z,G,!0),m.value=K;const F=W(Y);r("update:modelValue",F),r("change",F)},X=(z,G,ee=!0)=>{if(!C||!window.L)return;const K=window.L;ee&&C.setView([z,G],C.getZoom()),M?M.setLatLng([z,G]):(M=K.marker([z,G],{icon:k(K),draggable:!i.disabled&&!i.readonly}).addTo(C),M.on("dragend",()=>{const Y=M.getLatLng();q(Y.lat,Y.lng)}))};let oe=null;const ue=z=>{const G=z.target.value;if(g.value=G,oe&&clearTimeout(oe),!G.trim()){h.value=[],d.value=!1;return}d.value=!0,oe=setTimeout(()=>{te(G)},500)},te=async z=>{d.value=!0;try{const G=await fetch(`https://nominatim.openstreetmap.org/search?format=json&q=${encodeURIComponent(z)}&limit=7`);if(G.ok){const ee=await G.json();h.value=ee}}catch(G){console.error("Nominatim geocoding error:",G)}finally{d.value=!1}},re=z=>{if(!z){se();return}const G=Number(z.lat),ee=Number(z.lon);!isNaN(G)&&!isNaN(ee)&&(g.value=z.display_name,q(G,ee,!0,z))},ge=()=>{if(!(i.disabled||i.readonly)){if(!navigator.geolocation){alert("Perangkat Anda tidak mendukung pelacakan lokasi.");return}f.value=!0,navigator.geolocation.getCurrentPosition(z=>{const{latitude:G,longitude:ee}=z.coords;q(G,ee),f.value=!1},z=>{console.error("Geolocation error:",z),alert(`Gagal mengambil lokasi: ${z.message}`),f.value=!1},{enableHighAccuracy:!1,timeout:5e3})}};o.watch(()=>[i.disabled,i.readonly],([z,G])=>{I(!(z===!0||z==="true")&&!(G===!0||G==="true"))}),o.watch(()=>i.skeleton,z=>{z?$():setTimeout(()=>{O(rw)},50)}),o.watch(()=>i.visible,z=>{z?setTimeout(()=>{O(rw),C==null||C.invalidateSize()},50):$()}),o.onMounted(()=>{!i.skeleton&&i.visible&&setTimeout(()=>{O(rw)},50)}),o.onBeforeUnmount(()=>{$(),oe&&clearTimeout(oe)});const ce=()=>{const z=Number(v.value),G=Number(y.value);!isNaN(z)&&!isNaN(G)&&z>=-90&&z<=90&&G>=-180&&G<=180&&q(z,G,!1)},se=()=>{i.disabled||i.readonly||(P.value=null,v.value="",y.value="",h.value=[],m.value=null,g.value="",M&&C&&(C.removeLayer(M),M=null),r("update:modelValue",null),r("change",null))};return(z,G)=>o.withDirectives((o.openBlock(),o.createElementBlock("div",qG,[i.skeleton?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[l.value?(o.openBlock(),o.createElementBlock("div",KG)):o.createCommentVNode("",!0),G[3]||(G[3]=o.createElementVNode("div",{class:"h-10 w-full rounded-lg bg-gray-200 dark:bg-gray-700 animate-shimmer mb-2"},null,-1)),o.createElementVNode("div",{style:o.normalizeStyle({height:i.height}),class:"w-full rounded-lg bg-gray-200 dark:bg-gray-700 animate-shimmer"},null,4)],64)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createElementVNode("div",GG,[l.value?(o.openBlock(),o.createElementBlock("label",YG,[o.createTextVNode(o.toDisplayString(l.value)+" ",1),c.value?(o.openBlock(),o.createElementBlock("span",ZG,"*")):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0)]),i.enableSearch||i.enableManualInput?(o.openBlock(),o.createElementBlock("div",XG,[o.createElementVNode("div",JG,[i.enableSearch&&A.value==="search"?(o.openBlock(),o.createBlock(Qu,{key:0,modelValue:m.value,"onUpdate:modelValue":[G[0]||(G[0]=ee=>m.value=ee),re],placeholder:i.placeholder,disabled:i.disabled||i.readonly,items:h.value,loading:d.value,icon:o.unref(Ne.Search),"item-title":"display_name","item-value":"place_id","return-object":"",clearable:"",onInput:ue,class:"flex-1"},{"no-data":o.withCtx(()=>[o.createElementVNode("div",QG,[d.value?(o.openBlock(),o.createElementBlock("span",VG,"Mencari lokasi...")):g.value.trim()?(o.openBlock(),o.createElementBlock("span",tY,"Lokasi tidak ditemukan")):(o.openBlock(),o.createElementBlock("span",eY,"Ketik untuk mencari lokasi..."))])]),_:1},8,["modelValue","placeholder","disabled","items","loading","icon"])):o.createCommentVNode("",!0),i.enableManualInput&&A.value==="manual"?(o.openBlock(),o.createElementBlock("div",nY,[o.withDirectives(o.createElementVNode("input",{type:"text","onUpdate:modelValue":G[1]||(G[1]=ee=>v.value=ee),placeholder:"Latitude (e.g. -6.2088)",disabled:i.disabled||i.readonly,onInput:ce,class:"w-full h-10 px-3 text-sm bg-white dark:bg-neutral-800 text-foreground dark:text-gray-300 border border-gray-300 dark:border-neutral-700/50 rounded-lg focus:outline-none focus:ring-1 focus:ring-primary focus:border-primary transition duration-200 disabled:opacity-50 disabled:cursor-not-allowed font-mono"},null,40,iY),[[o.vModelText,v.value]]),o.withDirectives(o.createElementVNode("input",{type:"text","onUpdate:modelValue":G[2]||(G[2]=ee=>y.value=ee),placeholder:"Longitude (e.g. 106.8456)",disabled:i.disabled||i.readonly,onInput:ce,class:"w-full h-10 px-3 text-sm bg-white dark:bg-neutral-800 text-foreground dark:text-gray-300 border border-gray-300 dark:border-neutral-700/50 rounded-lg focus:outline-none focus:ring-1 focus:ring-primary focus:border-primary transition duration-200 disabled:opacity-50 disabled:cursor-not-allowed font-mono"},null,40,rY),[[o.vModelText,y.value]])])):o.createCommentVNode("",!0),o.createElementVNode("div",oY,[i.enableCurrentLocation?(o.openBlock(),o.createBlock(Vt,{key:0,onClick:ge,disabled:i.disabled||i.readonly||f.value,variant:"secondary",class:"h-10 px-3 flex items-center justify-center gap-1.5 bg-white dark:bg-neutral-800 text-gray-700 dark:text-gray-200 border border-gray-300 dark:border-neutral-700/50 hover:bg-gray-50 dark:hover:bg-neutral-800/80 font-medium rounded-lg text-sm transition-all duration-200 disabled:opacity-50 disabled:cursor-not-allowed shadow-none",title:"Dapatkan lokasi saat ini"},{default:o.withCtx(()=>[o.createVNode(o.unref(Ne.Compass),{class:o.normalizeClass(["h-4 w-4",{"animate-spin":f.value}])},null,8,["class"]),G[4]||(G[4]=o.createElementVNode("span",{class:"hidden sm:inline"},"Lokasi Saya",-1))]),_:1},8,["disabled"])):o.createCommentVNode("",!0),P.value?(o.openBlock(),o.createBlock(Vt,{key:1,onClick:se,disabled:i.disabled||i.readonly,variant:"secondary",class:"h-10 px-3 flex items-center justify-center bg-white dark:bg-neutral-800 text-gray-700 dark:text-gray-200 border border-gray-300 dark:border-neutral-700/50 hover:bg-gray-50 dark:hover:bg-neutral-800/80 rounded-lg text-sm transition disabled:opacity-50 shadow-none",title:"Hapus pilihan"},{default:o.withCtx(()=>[...G[5]||(G[5]=[o.createTextVNode(" Reset ",-1)])]),_:1},8,["disabled"])):o.createCommentVNode("",!0)])])])):o.createCommentVNode("",!0),o.createElementVNode("div",{class:o.normalizeClass(["relative w-full rounded-lg border border-gray-300 dark:border-neutral-700/50 overflow-hidden shadow-sm z-10 dcode-map-container",[i.disabled===!0||i.disabled==="true"||i.readonly===!0||i.readonly==="true"?"map-locked opacity-70":""]])},[o.createElementVNode("div",{id:a,style:o.normalizeStyle({height:i.height}),class:"w-full"},null,4),i.disabled===!0||i.disabled==="true"||i.readonly===!0||i.readonly==="true"?(o.openBlock(),o.createElementBlock("div",sY)):o.createCommentVNode("",!0),P.value?(o.openBlock(),o.createElementBlock("div",aY,[G[6]||(G[6]=o.createElementVNode("span",{class:"w-1.5 h-1.5 bg-blue-500 rounded-full animate-pulse"},null,-1)),o.createElementVNode("span",null,"Lat: "+o.toDisplayString(P.value.lat.toFixed(6)),1),G[7]||(G[7]=o.createElementVNode("span",{class:"text-gray-300 dark:text-gray-700"},"|",-1)),o.createElementVNode("span",null,"Lng: "+o.toDisplayString(P.value.lng.toFixed(6)),1)])):o.createCommentVNode("",!0)],2),i.error?(o.openBlock(),o.createElementBlock("p",lY,o.toDisplayString(i.error),1)):o.createCommentVNode("",!0)],64))],512)),[[o.vShow,i.visible]])}});new Array(256).fill("").map((e,t)=>("0"+t.toString(16)).slice(-2));function ow(e){return!!e&&/^\d+\.\d+\.\d+/.test(e)}function sw(e){if(!ow(e))throw new Error(`Invalid semantic version: ${e||"<blank>"}.`);const[t,n,i]=e.split(".");return{major:Number.parseInt(t,10),minor:Number.parseInt(n,10),patch:Number.parseInt(i,10)}}function cY(e,t){const n=sw(e),i=sw(t);return Math.sign(n.major-i.major||n.minor-i.minor||n.patch-i.patch)}function AS(e){return e?["nightly","alpha","internal","nightly-","staging"].some(t=>e.includes(t)):!1}function TS(e){return!!(e!=null&&e.startsWith("0.0.0-"))}function dY(e){return ow(e)||AS(e)}function uY(e,t){const n=e.extraPlugins||[];return{...e,extraPlugins:[...n,...t.filter(i=>!n.includes(i))]}}function fY(e){if(AS(e))return 3;const{major:t}=sw(e);switch(!0){case t>=44:return 3;case t>=38:return 2;default:return 1}}function PS(){const{CKEDITOR_VERSION:e,CKEDITOR:t}=window;return dY(e)?{source:t?"cdn":"npm",version:e}:null}function hY(){const e=PS();return e?fY(e.version):null}function BS(e,t){switch(t||(t=hY()||void 0),t){case 1:case 2:return e===void 0;case 3:return e==="GPL";default:return!1}}function mY(e,t){return function(i){BS(i.config.get("licenseKey"))||i.on("collectUsageData",(r,{setUsageData:s})=>{s(`integration.${e}`,t)})}}function NS(e){var n;const t=(n=PS())==null?void 0:n.version;return t?TS(e)?-1:!ow(t)||TS(t)?1:cY(t,e):null}function aw(){const e=NS("48.0.0"),t=e!==null&&e>=0;return{rootsConfigEntry:t,elementConfigAttachment:t}}function pY(e,t,n){var r;if(!e.editorName||e.editorName==="ClassicEditor")return{...n,attachTo:t};const i={...n,roots:{...n.roots,main:{...n.root,...(r=n.roots)==null?void 0:r.main,element:t}}};return delete i.root,i}function gY(e){var n,i,r;return aw().rootsConfigEntry&&(((i=(n=e.roots)==null?void 0:n.main)==null?void 0:i.initialData)||((r=e.root)==null?void 0:r.initialData))||e.initialData}function yY(e,t,n){var s;const i=aw(),r=n?null:gY(e);if(i.rootsConfigEntry){const a={...e,roots:{...e.roots,main:{...e.root,...(s=e.roots)==null?void 0:s.main,initialData:r||t||""}}};return t&&r&&console.warn("Editor data should be provided either via the config (`config.root.initialData`) or the component's `data` property, but not both. The configuration value takes precedence."),delete a.root,delete a.initialData,a}return t&&r&&console.warn("Editor data should be provided either via the config (`config.initialData`) or the component's `data` property, but not both. The configuration value takes precedence."),{...e,initialData:r||t||""}}var bY=typeof global=="object"&&global&&global.Object===Object&&global,vY=typeof self=="object"&&self&&self.Object===Object&&self,DS=bY||vY||Function("return this")(),xg=DS.Symbol,MS=Object.prototype,wY=MS.hasOwnProperty,_Y=MS.toString,$f=xg?xg.toStringTag:void 0;function kY(e){var t=wY.call(e,$f),n=e[$f];try{e[$f]=void 0;var i=!0}catch{}var r=_Y.call(e);return i&&(t?e[$f]=n:delete e[$f]),r}var xY=Object.prototype,EY=xY.toString;function CY(e){return EY.call(e)}var SY="[object Null]",AY="[object Undefined]",RS=xg?xg.toStringTag:void 0;function TY(e){return e==null?e===void 0?AY:SY:RS&&RS in Object(e)?kY(e):CY(e)}function PY(e){return e!=null&&typeof e=="object"}var BY="[object Symbol]";function NY(e){return typeof e=="symbol"||PY(e)&&TY(e)==BY}var DY=/\s/;function MY(e){for(var t=e.length;t--&&DY.test(e.charAt(t)););return t}var RY=/^\s+/;function IY(e){return e&&e.slice(0,MY(e)+1).replace(RY,"")}function lw(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var IS=NaN,OY=/^[-+]0x[0-9a-f]+$/i,LY=/^0b[01]+$/i,FY=/^0o[0-7]+$/i,$Y=parseInt;function OS(e){if(typeof e=="number")return e;if(NY(e))return IS;if(lw(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=lw(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=IY(e);var n=LY.test(e);return n||FY.test(e)?$Y(e.slice(2),n?2:8):OY.test(e)?IS:+e}var cw=function(){return DS.Date.now()},zY="Expected a function",jY=Math.max,UY=Math.min;function WY(e,t,n){var i,r,s,a,l,c,d=0,f=!1,h=!1,m=!0;if(typeof e!="function")throw new TypeError(zY);t=OS(t)||0,lw(n)&&(f=!0,h="maxWait"in n,s=h?jY(OS(n.maxWait)||0,t):s,m="trailing"in n?!!n.trailing:m);function g(W){var P=i,E=r;return i=r=void 0,d=W,a=e.apply(E,P),a}function v(W){return d=W,l=setTimeout(C,t),f?g(W):a}function y(W){var P=W-c,E=W-d,k=t-P;return h?UY(k,s-E):k}function A(W){var P=W-c,E=W-d;return c===void 0||P>=t||P<0||h&&E>=s}function C(){var W=cw();if(A(W))return M(W);l=setTimeout(C,y(W))}function M(W){return l=void 0,m&&i?g(W):(i=r=void 0,a)}function B(){l!==void 0&&clearTimeout(l),d=0,i=c=r=l=void 0}function N(){return l===void 0?a:M(cw())}function j(){var W=cw(),P=A(W);if(i=arguments,r=this,c=W,P){if(l===void 0)return v(c);if(h)return clearTimeout(l),l=setTimeout(C,t),g(c)}return l===void 0&&(l=setTimeout(C,t)),a}return j.cancel=B,j.flush=N,j}/**
145
145
  * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
146
146
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
147
147
  */var HY=mY("vue",{version:"8.2.0",frameworkVersion:o.version});function qY(e){return BS(e.licenseKey)?e:uY(e,[HY])}/**