@streamline-pulse/formkrafter-wc 0.28.1 → 0.30.0

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.
Files changed (64) hide show
  1. package/dist/components/fk-address-search.js +1 -1
  2. package/dist/components/fk-brick-actions.js +1 -1
  3. package/dist/components/fk-brick-list.js +1 -1
  4. package/dist/components/fk-brick-mold-item.js +1 -1
  5. package/dist/components/fk-brick-not-found.js +1 -1
  6. package/dist/components/fk-brick-render.js +1 -1
  7. package/dist/components/fk-data-grid.js +1 -1
  8. package/dist/components/fk-document-reader.d.ts +11 -0
  9. package/dist/components/fk-document-reader.js +1 -0
  10. package/dist/components/fk-drop-area.js +1 -1
  11. package/dist/components/fk-empty-form.js +1 -1
  12. package/dist/components/fk-file-input.js +1 -1
  13. package/dist/components/fk-form-builder.js +1 -1
  14. package/dist/components/fk-form-render.js +1 -1
  15. package/dist/components/fk-form-review.js +1 -1
  16. package/dist/components/fk-geo-map.js +1 -1
  17. package/dist/components/fk-property-panel.js +1 -1
  18. package/dist/components/fk-rules-editor.js +1 -1
  19. package/dist/components/fk-select-input.js +1 -1
  20. package/dist/components/fk-signature-input.js +1 -1
  21. package/dist/components/fk-slot-picker.js +1 -1
  22. package/dist/components/fk-stepper.js +1 -1
  23. package/dist/components/fk-tabs.js +1 -1
  24. package/dist/components/fk-variable-picker.js +1 -1
  25. package/dist/components/index.js +1 -1
  26. package/dist/components/{p-CuF0gbWB.js → p-66Xzy1Vh.js} +1 -1
  27. package/dist/components/{p-Di7uMflS.js → p-BFnqPIpW.js} +1 -1
  28. package/dist/components/{p-lOT7NMxD.js → p-BJuHN3Uu.js} +1 -1
  29. package/dist/components/{p-YMLbA4H2.js → p-BO5VWpZE.js} +1 -1
  30. package/dist/components/{p-xvN-OJAU.js → p-BRITIZrd.js} +1 -1
  31. package/dist/components/{p-DK2UgrV9.js → p-BSdc_x3o.js} +1 -1
  32. package/dist/components/{p-CIZUeonQ.js → p-BUgHGozZ.js} +1 -1
  33. package/dist/components/p-BY2wuPHY.js +1 -0
  34. package/dist/components/{p-CVsWXbzX.js → p-BYCjTLjB.js} +1 -1
  35. package/dist/components/{p-DtPhC0nx.js → p-BlgDQ0t7.js} +1 -1
  36. package/dist/components/{p-BGax6QkM.js → p-BuoiPCr-.js} +1 -1
  37. package/dist/components/p-CIgvEKbO.js +1 -0
  38. package/dist/components/{p-Dt5tFknh.js → p-CuWGcxtN.js} +1 -1
  39. package/dist/components/{p-B5gG7fHb.js → p-Cys4PksI.js} +1 -1
  40. package/dist/components/{p-DJxeNTfC.js → p-D6W-SOWV.js} +1 -1
  41. package/dist/components/p-DGCzE6o_.js +1 -0
  42. package/dist/components/{p-C8yXvs3g.js → p-DMwau-fb.js} +1 -1
  43. package/dist/components/{p-BEft-cf2.js → p-DPidm5sJ.js} +1 -1
  44. package/dist/components/{p-DskfAsd6.js → p-DPz8CWwm.js} +1 -1
  45. package/dist/components/p-D_BgQRLv.js +1 -0
  46. package/dist/components/{p-Ddiv4Djm.js → p-DdGjQ53Y.js} +7 -7
  47. package/dist/components/p-bOrdd5ri.js +1 -0
  48. package/dist/formkrafter-wc/formkrafter-wc.esm.js +1 -1
  49. package/dist/formkrafter-wc/index.esm.js +1 -1
  50. package/dist/formkrafter-wc/p-3a516b41.entry.js +1 -0
  51. package/dist/formkrafter-wc/p-96c82d88.entry.js +1 -0
  52. package/dist/formkrafter-wc/{p-730cac62.entry.js → p-996cdc3f.entry.js} +1 -1
  53. package/dist/formkrafter-wc/{p-D3ItRsmP.js → p-Dozlw09a.js} +7 -7
  54. package/dist/formkrafter-wc/{p-CiXmtjEN.js → p-FupO-_0D.js} +1 -1
  55. package/dist/types/components/fk-document-reader/fk-document-reader.d.ts +44 -0
  56. package/dist/types/components.d.ts +135 -2
  57. package/dist/types/registry/default-bricks.d.ts +72 -0
  58. package/package.json +2 -2
  59. package/dist/components/p-DIW5FtAy.js +0 -1
  60. package/dist/components/p-DMLnAgzb.js +0 -1
  61. package/dist/components/p-FSCguIuu.js +0 -1
  62. package/dist/components/p-t-OoJsHu.js +0 -1
  63. package/dist/formkrafter-wc/p-7bc82da2.entry.js +0 -1
  64. package/dist/formkrafter-wc/p-f867357b.entry.js +0 -1
@@ -1,4 +1,4 @@
1
- import{g as t}from"./p-D3ItRsmP.js";function i(t,i){return i.forEach((function(i){i&&"string"!=typeof i&&!Array.isArray(i)&&Object.keys(i).forEach((function(n){if("default"!==n&&!(n in t)){var s=Object.getOwnPropertyDescriptor(i,n);Object.defineProperty(t,n,s.get?s:{enumerable:!0,get:function(){return i[n]}})}}))})),Object.freeze(t)}var n,s={exports:{}},e=(n||(n=1,function(t){function i(t){var i,n,s,e;for(n=1,s=arguments.length;n<s;n++)for(i in e=arguments[n])t[i]=e[i];return t}var n=Object.create||function(){function t(){}return function(i){return t.prototype=i,new t}}();function s(t,i){var n=Array.prototype.slice;if(t.bind)return t.bind.apply(t,n.call(arguments,1));var s=n.call(arguments,2);return function(){return t.apply(i,s.length?s.concat(n.call(arguments)):arguments)}}var e=0;function h(t){return"_leaflet_id"in t||(t._leaflet_id=++e),t._leaflet_id}function o(t,i,n){var s,e,h,o;return o=function(){s=!1,e&&(h.apply(n,e),e=!1)},h=function(){s?e=arguments:(t.apply(n,arguments),setTimeout(o,i),s=!0)},h}function r(t,i,n){var s=i[1],e=i[0],h=s-e;return t===s&&n?t:((t-e)%h+h)%h+e}function a(){return!1}function u(t,i){if(!1===i)return t;var n=Math.pow(10,void 0===i?6:i);return Math.round(t*n)/n}function c(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function f(t){return c(t).split(/\s+/)}function l(t,i){for(var s in Object.prototype.hasOwnProperty.call(t,"options")||(t.options=t.options?n(t.options):{}),i)t.options[s]=i[s];return t.options}function d(t,i,n){var s=[];for(var e in t)s.push(encodeURIComponent(n?e.toUpperCase():e)+"="+encodeURIComponent(t[e]));return(i&&-1!==i.indexOf("?")?"&":"?")+s.join("&")}var v=/\{ *([\w_ -]+) *\}/g;function m(t,i){return t.replace(v,(function(t,n){var s=i[n];if(void 0===s)throw new Error("No value provided for variable "+t);return"function"==typeof s&&(s=s(i)),s}))}var p=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function g(t,i){for(var n=0;n<t.length;n++)if(t[n]===i)return n;return-1}var w="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function _(t){return window["webkit"+t]||window["moz"+t]||window["ms"+t]}var y=0;function M(t){var i=+new Date,n=Math.max(0,16-(i-y));return y=i+n,window.setTimeout(t,n)}var b=window.requestAnimationFrame||_("RequestAnimationFrame")||M,P=window.cancelAnimationFrame||_("CancelAnimationFrame")||_("CancelRequestAnimationFrame")||function(t){window.clearTimeout(t)};function k(t,i,n){if(!n||b!==M)return b.call(window,s(t,i));t.call(i)}function T(t){t&&P.call(window,t)}var x={__proto__:null,extend:i,create:n,bind:s,get lastId(){return e},stamp:h,throttle:o,wrapNum:r,falseFn:a,formatNum:u,trim:c,splitWords:f,setOptions:l,getParamString:d,template:m,isArray:p,indexOf:g,emptyImageUrl:w,requestFn:b,cancelFn:P,requestAnimFrame:k,cancelAnimFrame:T};function z(){}z.extend=function(t){var s=function(){l(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},e=s.__super__=this.prototype,h=n(e);for(var o in h.constructor=s,s.prototype=h,this)Object.prototype.hasOwnProperty.call(this,o)&&"prototype"!==o&&"__super__"!==o&&(s[o]=this[o]);return t.statics&&i(s,t.statics),t.includes&&(function(t){if("undefined"!=typeof L&&L&&L.Mixin){t=p(t)?t:[t];for(var i=0;i<t.length;i++)t[i]===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)}}(t.includes),i.apply(null,[h].concat(t.includes))),i(h,t),delete h.statics,delete h.includes,h.options&&(h.options=e.options?n(e.options):{},i(h.options,t.options)),h._initHooks=[],h.callInitHooks=function(){if(!this._initHooksCalled){e.callInitHooks&&e.callInitHooks.call(this),this._initHooksCalled=!0;for(var t=0,i=h._initHooks.length;t<i;t++)h._initHooks[t].call(this)}},s},z.include=function(t){var n=this.prototype.options;return i(this.prototype,t),t.options&&(this.prototype.options=n,this.mergeOptions(t.options)),this},z.mergeOptions=function(t){return i(this.prototype.options,t),this},z.addInitHook=function(t){var i=Array.prototype.slice.call(arguments,1),n="function"==typeof t?t:function(){this[t].apply(this,i)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(n),this};var S={on:function(t,i,n){if("object"==typeof t)for(var s in t)this._on(s,t[s],i);else for(var e=0,h=(t=f(t)).length;e<h;e++)this._on(t[e],i,n);return this},off:function(t,i,n){if(arguments.length)if("object"==typeof t)for(var s in t)this._off(s,t[s],i);else{t=f(t);for(var e=1===arguments.length,h=0,o=t.length;h<o;h++)e?this._off(t[h]):this._off(t[h],i,n)}else delete this._events;return this},_on:function(t,i,n,s){if("function"==typeof i){if(!1===this._listens(t,i,n)){n===this&&(n=void 0);var e={fn:i,ctx:n};s&&(e.once=!0),this._events=this._events||{},this._events[t]=this._events[t]||[],this._events[t].push(e)}}else console.warn("wrong listener type: "+typeof i)},_off:function(t,i,n){var s,e,h;if(this._events&&(s=this._events[t]))if(1!==arguments.length)if("function"==typeof i){var o=this._listens(t,i,n);!1!==o&&(this._firingCount&&(s[o].fn=a,this._events[t]=s=s.slice()),s.splice(o,1))}else console.warn("wrong listener type: "+typeof i);else{if(this._firingCount)for(e=0,h=s.length;e<h;e++)s[e].fn=a;delete this._events[t]}},fire:function(t,n,s){if(!this.listens(t,s))return this;var e=i({},n,{type:t,target:this,sourceTarget:n&&n.sourceTarget||this});if(this._events){var h=this._events[t];if(h){this._firingCount=this._firingCount+1||1;for(var o=0,r=h.length;o<r;o++){var a=h[o],u=a.fn;a.once&&this.off(t,u,a.ctx),u.call(a.ctx||this,e)}this._firingCount--}}return s&&this._propagateEvent(e),this},listens:function(t,i,n,s){"string"!=typeof t&&console.warn('"string" type argument expected');var e=i;"function"!=typeof i&&(s=!!i,e=void 0,n=void 0);var h=this._events&&this._events[t];if(h&&h.length&&!1!==this._listens(t,e,n))return!0;if(s)for(var o in this._eventParents)if(this._eventParents[o].listens(t,i,n,s))return!0;return!1},_listens:function(t,i,n){if(!this._events)return!1;var s=this._events[t]||[];if(!i)return!!s.length;n===this&&(n=void 0);for(var e=0,h=s.length;e<h;e++)if(s[e].fn===i&&s[e].ctx===n)return e;return!1},once:function(t,i,n){if("object"==typeof t)for(var s in t)this._on(s,t[s],i,!0);else for(var e=0,h=(t=f(t)).length;e<h;e++)this._on(t[e],i,n,!0);return this},addEventParent:function(t){return this._eventParents=this._eventParents||{},this._eventParents[h(t)]=t,this},removeEventParent:function(t){return this._eventParents&&delete this._eventParents[h(t)],this},_propagateEvent:function(t){for(var n in this._eventParents)this._eventParents[n].fire(t.type,i({layer:t.target,propagatedFrom:t.target},t),!0)}};S.addEventListener=S.on,S.removeEventListener=S.clearAllEventListeners=S.off,S.addOneTimeEventListener=S.once,S.fireEvent=S.fire,S.hasEventListeners=S.listens;var E=z.extend(S);function A(t,i,n){this.x=n?Math.round(t):t,this.y=n?Math.round(i):i}var C=Math.trunc||function(t){return t>0?Math.floor(t):Math.ceil(t)};function O(t,i,n){return t instanceof A?t:p(t)?new A(t[0],t[1]):null==t?t:"object"==typeof t&&"x"in t&&"y"in t?new A(t.x,t.y):new A(t,i,n)}function I(t,i){if(t)for(var n=i?[t,i]:t,s=0,e=n.length;s<e;s++)this.extend(n[s])}function B(t,i){return!t||t instanceof I?t:new I(t,i)}function Z(t,i){if(t)for(var n=i?[t,i]:t,s=0,e=n.length;s<e;s++)this.extend(n[s])}function D(t,i){return t instanceof Z?t:new Z(t,i)}function R(t,i,n){if(isNaN(t)||isNaN(i))throw new Error("Invalid LatLng object: ("+t+", "+i+")");this.lat=+t,this.lng=+i,void 0!==n&&(this.alt=+n)}function N(t,i,n){return t instanceof R?t:p(t)&&"object"!=typeof t[0]?3===t.length?new R(t[0],t[1],t[2]):2===t.length?new R(t[0],t[1]):null:null==t?t:"object"==typeof t&&"lat"in t?new R(t.lat,"lng"in t?t.lng:t.lon,t.alt):void 0===i?null:new R(t,i,n)}A.prototype={clone:function(){return new A(this.x,this.y)},add:function(t){return this.clone()._add(O(t))},_add:function(t){return this.x+=t.x,this.y+=t.y,this},subtract:function(t){return this.clone()._subtract(O(t))},_subtract:function(t){return this.x-=t.x,this.y-=t.y,this},divideBy:function(t){return this.clone()._divideBy(t)},_divideBy:function(t){return this.x/=t,this.y/=t,this},multiplyBy:function(t){return this.clone()._multiplyBy(t)},_multiplyBy:function(t){return this.x*=t,this.y*=t,this},scaleBy:function(t){return new A(this.x*t.x,this.y*t.y)},unscaleBy:function(t){return new A(this.x/t.x,this.y/t.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=C(this.x),this.y=C(this.y),this},distanceTo:function(t){var i=(t=O(t)).x-this.x,n=t.y-this.y;return Math.sqrt(i*i+n*n)},equals:function(t){return(t=O(t)).x===this.x&&t.y===this.y},contains:function(t){return t=O(t),Math.abs(t.x)<=Math.abs(this.x)&&Math.abs(t.y)<=Math.abs(this.y)},toString:function(){return"Point("+u(this.x)+", "+u(this.y)+")"}},I.prototype={extend:function(t){var i,n;if(!t)return this;if(t instanceof A||"number"==typeof t[0]||"x"in t)i=n=O(t);else if(n=(t=B(t)).max,!(i=t.min)||!n)return this;return this.min||this.max?(this.min.x=Math.min(i.x,this.min.x),this.max.x=Math.max(n.x,this.max.x),this.min.y=Math.min(i.y,this.min.y),this.max.y=Math.max(n.y,this.max.y)):(this.min=i.clone(),this.max=n.clone()),this},getCenter:function(t){return O((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,t)},getBottomLeft:function(){return O(this.min.x,this.max.y)},getTopRight:function(){return O(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(t){var i,n;return(t="number"==typeof t[0]||t instanceof A?O(t):B(t))instanceof I?(i=t.min,n=t.max):i=n=t,i.x>=this.min.x&&n.x<=this.max.x&&i.y>=this.min.y&&n.y<=this.max.y},intersects:function(t){t=B(t);var i=this.min,n=this.max,s=t.min,e=t.max;return e.x>=i.x&&s.x<=n.x&&e.y>=i.y&&s.y<=n.y},overlaps:function(t){t=B(t);var i=this.min,n=this.max,s=t.min,e=t.max;return e.x>i.x&&s.x<n.x&&e.y>i.y&&s.y<n.y},isValid:function(){return!(!this.min||!this.max)},pad:function(t){var i=this.min,n=this.max,s=Math.abs(i.x-n.x)*t,e=Math.abs(i.y-n.y)*t;return B(O(i.x-s,i.y-e),O(n.x+s,n.y+e))},equals:function(t){return!!t&&(t=B(t),this.min.equals(t.getTopLeft())&&this.max.equals(t.getBottomRight()))}},Z.prototype={extend:function(t){var i,n,s=this._southWest,e=this._northEast;if(t instanceof R)i=t,n=t;else{if(!(t instanceof Z))return t?this.extend(N(t)||D(t)):this;if(n=t._northEast,!(i=t._southWest)||!n)return this}return s||e?(s.lat=Math.min(i.lat,s.lat),s.lng=Math.min(i.lng,s.lng),e.lat=Math.max(n.lat,e.lat),e.lng=Math.max(n.lng,e.lng)):(this._southWest=new R(i.lat,i.lng),this._northEast=new R(n.lat,n.lng)),this},pad:function(t){var i=this._southWest,n=this._northEast,s=Math.abs(i.lat-n.lat)*t,e=Math.abs(i.lng-n.lng)*t;return new Z(new R(i.lat-s,i.lng-e),new R(n.lat+s,n.lng+e))},getCenter:function(){return new R((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 R(this.getNorth(),this.getWest())},getSouthEast:function(){return new R(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(t){t="number"==typeof t[0]||t instanceof R||"lat"in t?N(t):D(t);var i,n,s=this._southWest,e=this._northEast;return t instanceof Z?(i=t.getSouthWest(),n=t.getNorthEast()):i=n=t,i.lat>=s.lat&&n.lat<=e.lat&&i.lng>=s.lng&&n.lng<=e.lng},intersects:function(t){t=D(t);var i=this._southWest,n=this._northEast,s=t.getSouthWest(),e=t.getNorthEast();return e.lat>=i.lat&&s.lat<=n.lat&&e.lng>=i.lng&&s.lng<=n.lng},overlaps:function(t){t=D(t);var i=this._southWest,n=this._northEast,s=t.getSouthWest(),e=t.getNorthEast();return e.lat>i.lat&&s.lat<n.lat&&e.lng>i.lng&&s.lng<n.lng},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(t,i){return!!t&&(t=D(t),this._southWest.equals(t.getSouthWest(),i)&&this._northEast.equals(t.getNorthEast(),i))},isValid:function(){return!(!this._southWest||!this._northEast)}},R.prototype={equals:function(t,i){return!!t&&(t=N(t),Math.max(Math.abs(this.lat-t.lat),Math.abs(this.lng-t.lng))<=(void 0===i?1e-9:i))},toString:function(t){return"LatLng("+u(this.lat,t)+", "+u(this.lng,t)+")"},distanceTo:function(t){return H.distance(this,N(t))},wrap:function(){return H.wrapLatLng(this)},toBounds:function(t){var i=180*t/40075017,n=i/Math.cos(Math.PI/180*this.lat);return D([this.lat-i,this.lng-n],[this.lat+i,this.lng+n])},clone:function(){return new R(this.lat,this.lng,this.alt)}};var j,F={latLngToPoint:function(t,i){var n=this.projection.project(t),s=this.scale(i);return this.transformation._transform(n,s)},pointToLatLng:function(t,i){var n=this.scale(i),s=this.transformation.untransform(t,n);return this.projection.unproject(s)},project:function(t){return this.projection.project(t)},unproject:function(t){return this.projection.unproject(t)},scale:function(t){return 256*Math.pow(2,t)},zoom:function(t){return Math.log(t/256)/Math.LN2},getProjectedBounds:function(t){if(this.infinite)return null;var i=this.projection.bounds,n=this.scale(t);return new I(this.transformation.transform(i.min,n),this.transformation.transform(i.max,n))},infinite:!1,wrapLatLng:function(t){var i=this.wrapLng?r(t.lng,this.wrapLng,!0):t.lng;return new R(this.wrapLat?r(t.lat,this.wrapLat,!0):t.lat,i,t.alt)},wrapLatLngBounds:function(t){var i=t.getCenter(),n=this.wrapLatLng(i),s=i.lat-n.lat,e=i.lng-n.lng;if(0===s&&0===e)return t;var h=t.getSouthWest(),o=t.getNorthEast();return new Z(new R(h.lat-s,h.lng-e),new R(o.lat-s,o.lng-e))}},H=i({},F,{wrapLng:[-180,180],R:6371e3,distance:function(t,i){var n=Math.PI/180,s=t.lat*n,e=i.lat*n,h=Math.sin((i.lat-t.lat)*n/2),o=Math.sin((i.lng-t.lng)*n/2),r=h*h+Math.cos(s)*Math.cos(e)*o*o,a=2*Math.atan2(Math.sqrt(r),Math.sqrt(1-r));return this.R*a}}),U=6378137,W={R:U,MAX_LATITUDE:85.0511287798,project:function(t){var i=Math.PI/180,n=this.MAX_LATITUDE,s=Math.max(Math.min(n,t.lat),-n),e=Math.sin(s*i);return new A(this.R*t.lng*i,this.R*Math.log((1+e)/(1-e))/2)},unproject:function(t){var i=180/Math.PI;return new R((2*Math.atan(Math.exp(t.y/this.R))-Math.PI/2)*i,t.x*i/this.R)},bounds:(j=U*Math.PI,new I([-j,-j],[j,j]))};function G(t,i,n,s){if(p(t))return this._a=t[0],this._b=t[1],this._c=t[2],void(this._d=t[3]);this._a=t,this._b=i,this._c=n,this._d=s}function V(t,i,n,s){return new G(t,i,n,s)}G.prototype={transform:function(t,i){return this._transform(t.clone(),i)},_transform:function(t,i){return t.x=(i=i||1)*(this._a*t.x+this._b),t.y=i*(this._c*t.y+this._d),t},untransform:function(t,i){return new A((t.x/(i=i||1)-this._b)/this._a,(t.y/i-this._d)/this._c)}};var q=i({},H,{code:"EPSG:3857",projection:W,transformation:function(){var t=.5/(Math.PI*W.R);return V(t,.5,-t,.5)}()}),J=i({},q,{code:"EPSG:900913"});function K(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function X(t,i){var n,s,e,h,o,r,a="";for(n=0,e=t.length;n<e;n++){for(s=0,h=(o=t[n]).length;s<h;s++)a+=(s?"L":"M")+(r=o[s]).x+" "+r.y;a+=i?It.svg?"z":"x":""}return a||"M0 0"}var $,Q=document.documentElement.style,Y="ActiveXObject"in window,tt=Y&&!document.addEventListener,it="msLaunchUri"in navigator&&!("documentMode"in document),nt=Ot("webkit"),st=Ot("android"),et=Ot("android 2")||Ot("android 3"),ht=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),ot=st&&Ot("Google")&&ht<537&&!("AudioNode"in window),rt=!!window.opera,at=!it&&Ot("chrome"),ut=Ot("gecko")&&!nt&&!rt&&!Y,ct=!at&&Ot("safari"),ft=Ot("phantom"),lt="OTransition"in Q,dt=0===navigator.platform.indexOf("Win"),vt=Y&&"transition"in Q,mt="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!et,pt="MozPerspective"in Q,gt=!window.L_DISABLE_3D&&(vt||mt||pt)&&!lt&&!ft,wt="undefined"!=typeof orientation||Ot("mobile"),_t=wt&&nt,yt=wt&&mt,Mt=!window.PointerEvent&&window.MSPointerEvent,bt=!(!window.PointerEvent&&!Mt),Pt="ontouchstart"in window||!!window.TouchEvent,kt=!window.L_NO_TOUCH&&(Pt||bt),Tt=wt&&rt,Lt=wt&&ut,xt=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,zt=function(){var t=!1;try{var i=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("testPassiveEventSupport",a,i),window.removeEventListener("testPassiveEventSupport",a,i)}catch(t){}return t}(),St=!!document.createElement("canvas").getContext,Et=!(!document.createElementNS||!K("svg").createSVGRect),At=!!Et&&(($=document.createElement("div")).innerHTML="<svg/>","http://www.w3.org/2000/svg"===($.firstChild&&$.firstChild.namespaceURI)),Ct=!Et&&function(){try{var t=document.createElement("div");t.innerHTML='<v:shape adj="1"/>';var i=t.firstChild;return i.style.behavior="url(#default#VML)",i&&"object"==typeof i.adj}catch(t){return!1}}();function Ot(t){return navigator.userAgent.toLowerCase().indexOf(t)>=0}var It={ie:Y,ielt9:tt,edge:it,webkit:nt,android:st,android23:et,androidStock:ot,opera:rt,chrome:at,gecko:ut,safari:ct,phantom:ft,opera12:lt,win:dt,ie3d:vt,webkit3d:mt,gecko3d:pt,any3d:gt,mobile:wt,mobileWebkit:_t,mobileWebkit3d:yt,msPointer:Mt,pointer:bt,touch:kt,touchNative:Pt,mobileOpera:Tt,mobileGecko:Lt,retina:xt,passiveEvents:zt,canvas:St,svg:Et,vml:Ct,inlineSvg:At,mac:0===navigator.platform.indexOf("Mac"),linux:0===navigator.platform.indexOf("Linux")},Bt=It.msPointer?"MSPointerDown":"pointerdown",Zt=It.msPointer?"MSPointerMove":"pointermove",Dt=It.msPointer?"MSPointerUp":"pointerup",Rt=It.msPointer?"MSPointerCancel":"pointercancel",Nt={touchstart:Bt,touchmove:Zt,touchend:Dt,touchcancel:Rt},jt={touchstart:function(t,i){i.MSPOINTER_TYPE_TOUCH&&i.pointerType===i.MSPOINTER_TYPE_TOUCH&&Di(i),qt(t,i)},touchmove:qt,touchend:qt,touchcancel:qt},Ft={},Ht=!1;function Ut(t,i,n){return"touchstart"===i&&(Ht||(document.addEventListener(Bt,Wt,!0),document.addEventListener(Zt,Gt,!0),document.addEventListener(Dt,Vt,!0),document.addEventListener(Rt,Vt,!0),Ht=!0)),jt[i]?(n=jt[i].bind(this,n),t.addEventListener(Nt[i],n,!1),n):(console.warn("wrong event specified:",i),a)}function Wt(t){Ft[t.pointerId]=t}function Gt(t){Ft[t.pointerId]&&(Ft[t.pointerId]=t)}function Vt(t){delete Ft[t.pointerId]}function qt(t,i){if(i.pointerType!==(i.MSPOINTER_TYPE_MOUSE||"mouse")){for(var n in i.touches=[],Ft)i.touches.push(Ft[n]);i.changedTouches=[i],t(i)}}var Jt,Kt,Xt,$t,Qt,Yt=mi(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),ti=mi(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),ii="webkitTransition"===ti||"OTransition"===ti?ti+"End":"transitionend";function ni(t){return"string"==typeof t?document.getElementById(t):t}function si(t,i){var n=t.style[i]||t.currentStyle&&t.currentStyle[i];if((!n||"auto"===n)&&document.defaultView){var s=document.defaultView.getComputedStyle(t,null);n=s?s[i]:null}return"auto"===n?null:n}function ei(t,i,n){var s=document.createElement(t);return s.className=i||"",n&&n.appendChild(s),s}function hi(t){var i=t.parentNode;i&&i.removeChild(t)}function oi(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function ri(t){var i=t.parentNode;i&&i.lastChild!==t&&i.appendChild(t)}function ai(t){var i=t.parentNode;i&&i.firstChild!==t&&i.insertBefore(t,i.firstChild)}function ui(t,i){if(void 0!==t.classList)return t.classList.contains(i);var n=di(t);return n.length>0&&new RegExp("(^|\\s)"+i+"(\\s|$)").test(n)}function ci(t,i){if(void 0!==t.classList)for(var n=f(i),s=0,e=n.length;s<e;s++)t.classList.add(n[s]);else if(!ui(t,i)){var h=di(t);li(t,(h?h+" ":"")+i)}}function fi(t,i){void 0!==t.classList?t.classList.remove(i):li(t,c((" "+di(t)+" ").replace(" "+i+" "," ")))}function li(t,i){void 0===t.className.baseVal?t.className=i:t.className.baseVal=i}function di(t){return t.correspondingElement&&(t=t.correspondingElement),void 0===t.className.baseVal?t.className:t.className.baseVal}function vi(t,i){"opacity"in t.style?t.style.opacity=i:"filter"in t.style&&function(t,i){var n=!1,s="DXImageTransform.Microsoft.Alpha";try{n=t.filters.item(s)}catch(t){if(1===i)return}i=Math.round(100*i),n?(n.Enabled=100!==i,n.Opacity=i):t.style.filter+=" progid:"+s+"(opacity="+i+")"}(t,i)}function mi(t){for(var i=document.documentElement.style,n=0;n<t.length;n++)if(t[n]in i)return t[n];return!1}function pi(t,i,n){var s=i||new A(0,0);t.style[Yt]=(It.ie3d?"translate("+s.x+"px,"+s.y+"px)":"translate3d("+s.x+"px,"+s.y+"px,0)")+(n?" scale("+n+")":"")}function gi(t,i){t._leaflet_pos=i,It.any3d?pi(t,i):(t.style.left=i.x+"px",t.style.top=i.y+"px")}function wi(t){return t._leaflet_pos||new A(0,0)}if("onselectstart"in document)Jt=function(){xi(window,"selectstart",Di)},Kt=function(){Si(window,"selectstart",Di)};else{var _i=mi(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);Jt=function(){if(_i){var t=document.documentElement.style;Xt=t[_i],t[_i]="none"}},Kt=function(){_i&&(document.documentElement.style[_i]=Xt,Xt=void 0)}}function yi(){xi(window,"dragstart",Di)}function Mi(){Si(window,"dragstart",Di)}function bi(t){for(;-1===t.tabIndex;)t=t.parentNode;t.style&&(Pi(),$t=t,Qt=t.style.outlineStyle,t.style.outlineStyle="none",xi(window,"keydown",Pi))}function Pi(){$t&&($t.style.outlineStyle=Qt,$t=void 0,Qt=void 0,Si(window,"keydown",Pi))}function ki(t){do{t=t.parentNode}while(!(t.offsetWidth&&t.offsetHeight||t===document.body));return t}function Ti(t){var i=t.getBoundingClientRect();return{x:i.width/t.offsetWidth||1,y:i.height/t.offsetHeight||1,boundingClientRect:i}}var Li={__proto__:null,TRANSFORM:Yt,TRANSITION:ti,TRANSITION_END:ii,get:ni,getStyle:si,create:ei,remove:hi,empty:oi,toFront:ri,toBack:ai,hasClass:ui,addClass:ci,removeClass:fi,setClass:li,getClass:di,setOpacity:vi,testProp:mi,setTransform:pi,setPosition:gi,getPosition:wi,get disableTextSelection(){return Jt},get enableTextSelection(){return Kt},disableImageDrag:yi,enableImageDrag:Mi,preventOutline:bi,restoreOutline:Pi,getSizedParentNode:ki,getScale:Ti};function xi(t,i,n,s){if(i&&"object"==typeof i)for(var e in i)Ci(t,e,i[e],n);else for(var h=0,o=(i=f(i)).length;h<o;h++)Ci(t,i[h],n,s);return this}var zi="_leaflet_events";function Si(t,i,n,s){if(1===arguments.length)Ei(t),delete t[zi];else if(i&&"object"==typeof i)for(var e in i)Oi(t,e,i[e],n);else if(i=f(i),2===arguments.length)Ei(t,(function(t){return-1!==g(i,t)}));else for(var h=0,o=i.length;h<o;h++)Oi(t,i[h],n,s);return this}function Ei(t,i){for(var n in t[zi]){var s=n.split(/\d/)[0];i&&!i(s)||Oi(t,s,null,null,n)}}var Ai={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function Ci(t,i,n,s){var e=i+h(n)+(s?"_"+h(s):"");if(t[zi]&&t[zi][e])return this;var o=function(i){return n.call(s||t,i||window.event)},r=o;!It.touchNative&&It.pointer&&0===i.indexOf("touch")?o=Ut(t,i,o):It.touch&&"dblclick"===i?o=function(t,i){t.addEventListener("dblclick",i);var n,s=0;function e(t){if(1===t.detail){if("mouse"!==t.pointerType&&(!t.sourceCapabilities||t.sourceCapabilities.firesTouchEvents)){var e=Ni(t);if(!e.some((function(t){return t instanceof HTMLLabelElement&&t.attributes.for}))||e.some((function(t){return t instanceof HTMLInputElement||t instanceof HTMLSelectElement}))){var h=Date.now();h-s<=200?2==++n&&i(function(t){var i,n,s={};for(n in t)s[n]=(i=t[n])&&i.bind?i.bind(t):i;return t=s,s.type="dblclick",s.detail=2,s.isTrusted=!1,s._simulated=!0,s}(t)):n=1,s=h}}}else n=t.detail}return t.addEventListener("click",e),{dblclick:i,simDblclick:e}}(t,o):"addEventListener"in t?"touchstart"===i||"touchmove"===i||"wheel"===i||"mousewheel"===i?t.addEventListener(Ai[i]||i,o,!!It.passiveEvents&&{passive:!1}):"mouseenter"===i||"mouseleave"===i?t.addEventListener(Ai[i],o=function(i){i=i||window.event,Ui(t,i)&&r(i)},!1):t.addEventListener(i,r,!1):t.attachEvent("on"+i,o),t[zi]=t[zi]||{},t[zi][e]=o}function Oi(t,i,n,s,e){e=e||i+h(n)+(s?"_"+h(s):"");var o=t[zi]&&t[zi][e];if(!o)return this;!It.touchNative&&It.pointer&&0===i.indexOf("touch")?function(t,i,n){Nt[i]?t.removeEventListener(Nt[i],n,!1):console.warn("wrong event specified:",i)}(t,i,o):It.touch&&"dblclick"===i?function(t,i){t.removeEventListener("dblclick",i.dblclick),t.removeEventListener("click",i.simDblclick)}(t,o):"removeEventListener"in t?t.removeEventListener(Ai[i]||i,o,!1):t.detachEvent("on"+i,o),t[zi][e]=null}function Ii(t){return t.stopPropagation?t.stopPropagation():t.originalEvent?t.originalEvent._stopped=!0:t.cancelBubble=!0,this}function Bi(t){return Ci(t,"wheel",Ii),this}function Zi(t){return xi(t,"mousedown touchstart dblclick contextmenu",Ii),t._leaflet_disable_click=!0,this}function Di(t){return t.preventDefault?t.preventDefault():t.returnValue=!1,this}function Ri(t){return Di(t),Ii(t),this}function Ni(t){if(t.composedPath)return t.composedPath();for(var i=[],n=t.target;n;)i.push(n),n=n.parentNode;return i}function ji(t,i){if(!i)return new A(t.clientX,t.clientY);var n=Ti(i),s=n.boundingClientRect;return new A((t.clientX-s.left)/n.x-i.clientLeft,(t.clientY-s.top)/n.y-i.clientTop)}var Fi=It.linux&&It.chrome?window.devicePixelRatio:It.mac?3*window.devicePixelRatio:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function Hi(t){return It.edge?t.wheelDeltaY/2:t.deltaY&&0===t.deltaMode?-t.deltaY/Fi:t.deltaY&&1===t.deltaMode?20*-t.deltaY:t.deltaY&&2===t.deltaMode?60*-t.deltaY:t.deltaX||t.deltaZ?0:t.wheelDelta?(t.wheelDeltaY||t.wheelDelta)/2:t.detail&&Math.abs(t.detail)<32765?20*-t.detail:t.detail?t.detail/-32765*60:0}function Ui(t,i){var n=i.relatedTarget;if(!n)return!0;try{for(;n&&n!==t;)n=n.parentNode}catch(t){return!1}return n!==t}var Wi={__proto__:null,on:xi,off:Si,stopPropagation:Ii,disableScrollPropagation:Bi,disableClickPropagation:Zi,preventDefault:Di,stop:Ri,getPropagationPath:Ni,getMousePosition:ji,getWheelDelta:Hi,isExternalTarget:Ui,addListener:xi,removeListener:Si},Gi=E.extend({run:function(t,i,n,s){this.stop(),this._el=t,this._inProgress=!0,this._duration=n||.25,this._easeOutPower=1/Math.max(s||.5,.2),this._startPos=wi(t),this._offset=i.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=k(this._animate,this),this._step()},_step:function(t){var i=+new Date-this._startTime,n=1e3*this._duration;i<n?this._runFrame(this._easeOut(i/n),t):(this._runFrame(1),this._complete())},_runFrame:function(t,i){var n=this._startPos.add(this._offset.multiplyBy(t));i&&n._round(),gi(this._el,n),this.fire("step")},_complete:function(){T(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(t){return 1-Math.pow(1-t,this._easeOutPower)}}),Vi=E.extend({options:{crs:q,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(t,i){i=l(this,i),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(t),this._initLayout(),this._onResize=s(this._onResize,this),this._initEvents(),i.maxBounds&&this.setMaxBounds(i.maxBounds),void 0!==i.zoom&&(this._zoom=this._limitZoom(i.zoom)),i.center&&void 0!==i.zoom&&this.setView(N(i.center),i.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=ti&&It.any3d&&!It.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),xi(this._proxy,ii,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(t,n,s){return n=void 0===n?this._zoom:this._limitZoom(n),t=this._limitCenter(N(t),n,this.options.maxBounds),s=s||{},this._stop(),this._loaded&&!s.reset&&!0!==s&&(void 0!==s.animate&&(s.zoom=i({animate:s.animate},s.zoom),s.pan=i({animate:s.animate,duration:s.duration},s.pan)),this._zoom!==n?this._tryAnimatedZoom&&this._tryAnimatedZoom(t,n,s.zoom):this._tryAnimatedPan(t,s.pan))?(clearTimeout(this._sizeTimer),this):(this._resetView(t,n,s.pan&&s.pan.noMoveStart),this)},setZoom:function(t,i){return this._loaded?this.setView(this.getCenter(),t,{zoom:i}):(this._zoom=t,this)},zoomIn:function(t,i){return this.setZoom(this._zoom+(t=t||(It.any3d?this.options.zoomDelta:1)),i)},zoomOut:function(t,i){return this.setZoom(this._zoom-(t=t||(It.any3d?this.options.zoomDelta:1)),i)},setZoomAround:function(t,i,n){var s=this.getZoomScale(i),e=this.getSize().divideBy(2),h=(t instanceof A?t:this.latLngToContainerPoint(t)).subtract(e).multiplyBy(1-1/s),o=this.containerPointToLatLng(e.add(h));return this.setView(o,i,{zoom:n})},_getBoundsCenterZoom:function(t,i){i=i||{},t=t.getBounds?t.getBounds():D(t);var n=O(i.paddingTopLeft||i.padding||[0,0]),s=O(i.paddingBottomRight||i.padding||[0,0]),e=this.getBoundsZoom(t,!1,n.add(s));if((e="number"==typeof i.maxZoom?Math.min(i.maxZoom,e):e)===1/0)return{center:t.getCenter(),zoom:e};var h=s.subtract(n).divideBy(2),o=this.project(t.getSouthWest(),e),r=this.project(t.getNorthEast(),e);return{center:this.unproject(o.add(r).divideBy(2).add(h),e),zoom:e}},fitBounds:function(t,i){if(!(t=D(t)).isValid())throw new Error("Bounds are not valid.");var n=this._getBoundsCenterZoom(t,i);return this.setView(n.center,n.zoom,i)},fitWorld:function(t){return this.fitBounds([[-90,-180],[90,180]],t)},panTo:function(t,i){return this.setView(t,this._zoom,{pan:i})},panBy:function(t,i){if(i=i||{},!(t=O(t).round()).x&&!t.y)return this.fire("moveend");if(!0!==i.animate&&!this.getSize().contains(t))return this._resetView(this.unproject(this.project(this.getCenter()).add(t)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new Gi,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),i.noMoveStart||this.fire("movestart"),!1!==i.animate){ci(this._mapPane,"leaflet-pan-anim");var n=this._getMapPanePos().subtract(t).round();this._panAnim.run(this._mapPane,n,i.duration||.25,i.easeLinearity)}else this._rawPanBy(t),this.fire("move").fire("moveend");return this},flyTo:function(t,i,n){if(!1===(n=n||{}).animate||!It.any3d)return this.setView(t,i,n);this._stop();var s=this.project(this.getCenter()),e=this.project(t),h=this.getSize(),o=this._zoom;t=N(t),i=void 0===i?o:i;var r=Math.max(h.x,h.y),a=r*this.getZoomScale(o,i),u=e.distanceTo(s)||1,c=1.42,f=2.0164;function l(t){var i=(a*a-r*r+(t?-1:1)*f*f*u*u)/(2*(t?a:r)*f*u),n=Math.sqrt(i*i+1)-i;return n<1e-9?-18:Math.log(n)}function d(t){return(Math.exp(t)-Math.exp(-t))/2}function v(t){return(Math.exp(t)+Math.exp(-t))/2}var m=l(0);function p(t){return r*(v(m)*(d(i=m+c*t)/v(i))-d(m))/f;var i}var g=Date.now(),w=(l(1)-m)/c,_=n.duration?1e3*n.duration:1e3*w*.8;return this._moveStart(!0,n.noMoveStart),function n(){var h=(Date.now()-g)/_,a=function(t){return 1-Math.pow(1-t,1.5)}(h)*w;h<=1?(this._flyToFrame=k(n,this),this._move(this.unproject(s.add(e.subtract(s).multiplyBy(p(a)/u)),o),this.getScaleZoom(r/function(t){return r*(v(m)/v(m+c*t))}(a),o),{flyTo:!0})):this._move(t,i)._moveEnd(!0)}.call(this),this},flyToBounds:function(t,i){var n=this._getBoundsCenterZoom(t,i);return this.flyTo(n.center,n.zoom,i)},setMaxBounds:function(t){return t=D(t),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),t.isValid()?(this.options.maxBounds=t,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},setMinZoom:function(t){var i=this.options.minZoom;return this.options.minZoom=t,this._loaded&&i!==t&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(t):this},setMaxZoom:function(t){var i=this.options.maxZoom;return this.options.maxZoom=t,this._loaded&&i!==t&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(t):this},panInsideBounds:function(t,i){this._enforcingBounds=!0;var n=this.getCenter(),s=this._limitCenter(n,this._zoom,D(t));return n.equals(s)||this.panTo(s,i),this._enforcingBounds=!1,this},panInside:function(t,i){var n=O((i=i||{}).paddingTopLeft||i.padding||[0,0]),s=O(i.paddingBottomRight||i.padding||[0,0]),e=this.project(this.getCenter()),h=this.project(t),o=this.getPixelBounds(),r=B([o.min.add(n),o.max.subtract(s)]),a=r.getSize();if(!r.contains(h)){this._enforcingBounds=!0;var u=h.subtract(r.getCenter()),c=r.extend(h).getSize().subtract(a);e.x+=u.x<0?-c.x:c.x,e.y+=u.y<0?-c.y:c.y,this.panTo(this.unproject(e),i),this._enforcingBounds=!1}return this},invalidateSize:function(t){if(!this._loaded)return this;t=i({animate:!1,pan:!0},!0===t?{animate:!0}:t);var n=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var e=this.getSize(),h=n.divideBy(2).round(),o=e.divideBy(2).round(),r=h.subtract(o);return r.x||r.y?(t.animate&&t.pan?this.panBy(r):(t.pan&&this._rawPanBy(r),this.fire("move"),t.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(s(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:n,newSize:e})):this},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(t){if(t=this._locateOptions=i({timeout:1e4,watch:!1},t),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var n=s(this._handleGeolocationResponse,this),e=s(this._handleGeolocationError,this);return t.watch?this._locationWatchId=navigator.geolocation.watchPosition(n,e,t):navigator.geolocation.getCurrentPosition(n,e,t),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(t){if(this._container._leaflet_id){var i=t.code,n=t.message||(1===i?"permission denied":2===i?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:i,message:"Geolocation error: "+n+"."})}},_handleGeolocationResponse:function(t){if(this._container._leaflet_id){var i=new R(t.coords.latitude,t.coords.longitude),n=i.toBounds(2*t.coords.accuracy),s=this._locateOptions;if(s.setView){var e=this.getBoundsZoom(n);this.setView(i,s.maxZoom?Math.min(e,s.maxZoom):e)}var h={latlng:i,bounds:n,timestamp:t.timestamp};for(var o in t.coords)"number"==typeof t.coords[o]&&(h[o]=t.coords[o]);this.fire("locationfound",h)}},addHandler:function(t,i){if(!i)return this;var n=this[t]=new i(this);return this._handlers.push(n),this.options[t]&&n.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(t){this._container._leaflet_id=void 0,this._containerId=void 0}var t;for(t in void 0!==this._locationWatchId&&this.stopLocate(),this._stop(),hi(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(T(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload"),this._layers)this._layers[t].remove();for(t in this._panes)hi(this._panes[t]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(t,i){var n=ei("div","leaflet-pane"+(t?" leaflet-"+t.replace("Pane","")+"-pane":""),i||this._mapPane);return t&&(this._panes[t]=n),n},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var t=this.getPixelBounds();return new Z(this.unproject(t.getBottomLeft()),this.unproject(t.getTopRight()))},getMinZoom:function(){return void 0===this.options.minZoom?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return void 0===this.options.maxZoom?void 0===this._layersMaxZoom?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(t,i,n){t=D(t),n=O(n||[0,0]);var s=this.getZoom()||0,e=this.getMinZoom(),h=this.getMaxZoom(),o=t.getNorthWest(),r=t.getSouthEast(),a=this.getSize().subtract(n),u=B(this.project(r,s),this.project(o,s)).getSize(),c=It.any3d?this.options.zoomSnap:1,f=a.x/u.x,l=a.y/u.y,d=i?Math.max(f,l):Math.min(f,l);return s=this.getScaleZoom(d,s),c&&(s=Math.round(s/(c/100))*(c/100),s=i?Math.ceil(s/c)*c:Math.floor(s/c)*c),Math.max(e,Math.min(h,s))},getSize:function(){return this._size&&!this._sizeChanged||(this._size=new A(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(t,i){var n=this._getTopLeftPoint(t,i);return new I(n,n.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(t){return this.options.crs.getProjectedBounds(void 0===t?this.getZoom():t)},getPane:function(t){return"string"==typeof t?this._panes[t]:t},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(t,i){var n=this.options.crs;return i=void 0===i?this._zoom:i,n.scale(t)/n.scale(i)},getScaleZoom:function(t,i){var n=this.options.crs,s=n.zoom(t*n.scale(i=void 0===i?this._zoom:i));return isNaN(s)?1/0:s},project:function(t,i){return i=void 0===i?this._zoom:i,this.options.crs.latLngToPoint(N(t),i)},unproject:function(t,i){return i=void 0===i?this._zoom:i,this.options.crs.pointToLatLng(O(t),i)},layerPointToLatLng:function(t){var i=O(t).add(this.getPixelOrigin());return this.unproject(i)},latLngToLayerPoint:function(t){return this.project(N(t))._round()._subtract(this.getPixelOrigin())},wrapLatLng:function(t){return this.options.crs.wrapLatLng(N(t))},wrapLatLngBounds:function(t){return this.options.crs.wrapLatLngBounds(D(t))},distance:function(t,i){return this.options.crs.distance(N(t),N(i))},containerPointToLayerPoint:function(t){return O(t).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(t){return O(t).add(this._getMapPanePos())},containerPointToLatLng:function(t){var i=this.containerPointToLayerPoint(O(t));return this.layerPointToLatLng(i)},latLngToContainerPoint:function(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint(N(t)))},mouseEventToContainerPoint:function(t){return ji(t,this._container)},mouseEventToLayerPoint:function(t){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(t))},mouseEventToLatLng:function(t){return this.layerPointToLatLng(this.mouseEventToLayerPoint(t))},_initContainer:function(t){var i=this._container=ni(t);if(!i)throw new Error("Map container not found.");if(i._leaflet_id)throw new Error("Map container is already initialized.");xi(i,"scroll",this._onScroll,this),this._containerId=h(i)},_initLayout:function(){var t=this._container;this._fadeAnimated=this.options.fadeAnimation&&It.any3d,ci(t,"leaflet-container"+(It.touch?" leaflet-touch":"")+(It.retina?" leaflet-retina":"")+(It.ielt9?" leaflet-oldie":"")+(It.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var i=si(t,"position");"absolute"!==i&&"relative"!==i&&"fixed"!==i&&"sticky"!==i&&(t.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var t=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),gi(this._mapPane,new A(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(ci(t.markerPane,"leaflet-zoom-hide"),ci(t.shadowPane,"leaflet-zoom-hide"))},_resetView:function(t,i,n){gi(this._mapPane,new A(0,0));var s=!this._loaded;this._loaded=!0,i=this._limitZoom(i),this.fire("viewprereset");var e=this._zoom!==i;this._moveStart(e,n)._move(t,i)._moveEnd(e),this.fire("viewreset"),s&&this.fire("load")},_moveStart:function(t,i){return t&&this.fire("zoomstart"),i||this.fire("movestart"),this},_move:function(t,i,n,s){void 0===i&&(i=this._zoom);var e=this._zoom!==i;return this._zoom=i,this._lastCenter=t,this._pixelOrigin=this._getNewPixelOrigin(t),s?n&&n.pinch&&this.fire("zoom",n):((e||n&&n.pinch)&&this.fire("zoom",n),this.fire("move",n)),this},_moveEnd:function(t){return t&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return T(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(t){gi(this._mapPane,this._getMapPanePos().subtract(t))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(t){this._targets={},this._targets[h(this._container)]=this;var i=t?Si:xi;i(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&i(window,"resize",this._onResize,this),It.any3d&&this.options.transform3DLimit&&(t?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){T(this._resizeRequest),this._resizeRequest=k((function(){this.invalidateSize({debounceMoveend:!0})}),this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var t=this._getMapPanePos();Math.max(Math.abs(t.x),Math.abs(t.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(t,i){for(var n,s=[],e="mouseout"===i||"mouseover"===i,o=t.target||t.srcElement,r=!1;o;){if((n=this._targets[h(o)])&&("click"===i||"preclick"===i)&&this._draggableMoved(n)){r=!0;break}if(n&&n.listens(i,!0)){if(e&&!Ui(o,t))break;if(s.push(n),e)break}if(o===this._container)break;o=o.parentNode}return s.length||r||e||!this.listens(i,!0)||(s=[this]),s},_isClickDisabled:function(t){for(;t&&t!==this._container;){if(t._leaflet_disable_click)return!0;t=t.parentNode}},_handleDOMEvent:function(t){var i=t.target||t.srcElement;if(!(!this._loaded||i._leaflet_disable_events||"click"===t.type&&this._isClickDisabled(i))){var n=t.type;"mousedown"===n&&bi(i),this._fireDOMEvent(t,n)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(t,n,s){if("click"===t.type){var e=i({},t);e.type="preclick",this._fireDOMEvent(e,e.type,s)}var h=this._findEventTargets(t,n);if(s){for(var o=[],r=0;r<s.length;r++)s[r].listens(n,!0)&&o.push(s[r]);h=o.concat(h)}if(h.length){"contextmenu"===n&&Di(t);var a=h[0],u={originalEvent:t};if("keypress"!==t.type&&"keydown"!==t.type&&"keyup"!==t.type){var c=a.getLatLng&&(!a._radius||a._radius<=10);u.containerPoint=c?this.latLngToContainerPoint(a.getLatLng()):this.mouseEventToContainerPoint(t),u.layerPoint=this.containerPointToLayerPoint(u.containerPoint),u.latlng=c?a.getLatLng():this.layerPointToLatLng(u.layerPoint)}for(r=0;r<h.length;r++)if(h[r].fire(n,u,!0),u.originalEvent._stopped||!1===h[r].options.bubblingMouseEvents&&-1!==g(this._mouseEvents,n))return}},_draggableMoved:function(t){return(t=t.dragging&&t.dragging.enabled()?t:this).dragging&&t.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var t=0,i=this._handlers.length;t<i;t++)this._handlers[t].disable()},whenReady:function(t,i){return this._loaded?t.call(i||this,{target:this}):this.on("load",t,i),this},_getMapPanePos:function(){return wi(this._mapPane)||new A(0,0)},_moved:function(){var t=this._getMapPanePos();return t&&!t.equals([0,0])},_getTopLeftPoint:function(t,i){return(t&&void 0!==i?this._getNewPixelOrigin(t,i):this.getPixelOrigin()).subtract(this._getMapPanePos())},_getNewPixelOrigin:function(t,i){var n=this.getSize()._divideBy(2);return this.project(t,i)._subtract(n)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(t,i,n){var s=this._getNewPixelOrigin(n,i);return this.project(t,i)._subtract(s)},_latLngBoundsToNewLayerBounds:function(t,i,n){var s=this._getNewPixelOrigin(n,i);return B([this.project(t.getSouthWest(),i)._subtract(s),this.project(t.getNorthWest(),i)._subtract(s),this.project(t.getSouthEast(),i)._subtract(s),this.project(t.getNorthEast(),i)._subtract(s)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(t){return this.latLngToLayerPoint(t).subtract(this._getCenterLayerPoint())},_limitCenter:function(t,i,n){if(!n)return t;var s=this.project(t,i),e=this.getSize().divideBy(2),h=new I(s.subtract(e),s.add(e)),o=this._getBoundsOffset(h,n,i);return Math.abs(o.x)<=1&&Math.abs(o.y)<=1?t:this.unproject(s.add(o),i)},_limitOffset:function(t,i){if(!i)return t;var n=this.getPixelBounds(),s=new I(n.min.add(t),n.max.add(t));return t.add(this._getBoundsOffset(s,i))},_getBoundsOffset:function(t,i,n){var s=B(this.project(i.getNorthEast(),n),this.project(i.getSouthWest(),n)),e=s.min.subtract(t.min),h=s.max.subtract(t.max);return new A(this._rebound(e.x,-h.x),this._rebound(e.y,-h.y))},_rebound:function(t,i){return t+i>0?Math.round(t-i)/2:Math.max(0,Math.ceil(t))-Math.max(0,Math.floor(i))},_limitZoom:function(t){var i=this.getMinZoom(),n=this.getMaxZoom(),s=It.any3d?this.options.zoomSnap:1;return s&&(t=Math.round(t/s)*s),Math.max(i,Math.min(n,t))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){fi(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(t,i){var n=this._getCenterOffset(t)._trunc();return!(!0!==(i&&i.animate)&&!this.getSize().contains(n)||(this.panBy(n,i),0))},_createAnimProxy:function(){var t=this._proxy=ei("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(t),this.on("zoomanim",(function(t){var i=Yt,n=this._proxy.style[i];pi(this._proxy,this.project(t.center,t.zoom),this.getZoomScale(t.zoom,1)),n===this._proxy.style[i]&&this._animatingZoom&&this._onZoomTransitionEnd()}),this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){hi(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var t=this.getCenter(),i=this.getZoom();pi(this._proxy,this.project(t,i),this.getZoomScale(i,1))},_catchTransitionEnd:function(t){this._animatingZoom&&t.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(t,i,n){if(this._animatingZoom)return!0;if(n=n||{},!this._zoomAnimated||!1===n.animate||this._nothingToAnimate()||Math.abs(i-this._zoom)>this.options.zoomAnimationThreshold)return!1;var s=this.getZoomScale(i),e=this._getCenterOffset(t)._divideBy(1-1/s);return!(!0!==n.animate&&!this.getSize().contains(e)||(k((function(){this._moveStart(!0,n.noMoveStart||!1)._animateZoom(t,i,!0)}),this),0))},_animateZoom:function(t,i,n,e){this._mapPane&&(n&&(this._animatingZoom=!0,this._animateToCenter=t,this._animateToZoom=i,ci(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:t,zoom:i,noUpdate:e}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(s(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&fi(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))}});var qi=z.extend({options:{position:"topright"},initialize:function(t){l(this,t)},getPosition:function(){return this.options.position},setPosition:function(t){var i=this._map;return i&&i.removeControl(this),this.options.position=t,i&&i.addControl(this),this},getContainer:function(){return this._container},addTo:function(t){this.remove(),this._map=t;var i=this._container=this.onAdd(t),n=this.getPosition(),s=t._controlCorners[n];return ci(i,"leaflet-control"),-1!==n.indexOf("bottom")?s.insertBefore(i,s.firstChild):s.appendChild(i),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(hi(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(t){this._map&&t&&t.screenX>0&&t.screenY>0&&this._map.getContainer().focus()}}),Ji=function(t){return new qi(t)};Vi.include({addControl:function(t){return t.addTo(this),this},removeControl:function(t){return t.remove(),this},_initControlPos:function(){var t=this._controlCorners={},i="leaflet-",n=this._controlContainer=ei("div",i+"control-container",this._container);function s(s,e){t[s+e]=ei("div",i+s+" "+i+e,n)}s("top","left"),s("top","right"),s("bottom","left"),s("bottom","right")},_clearControlPos:function(){for(var t in this._controlCorners)hi(this._controlCorners[t]);hi(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var Ki=qi.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(t,i,n,s){return n<s?-1:s<n?1:0}},initialize:function(t,i,n){for(var s in l(this,n),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1,t)this._addLayer(t[s],s);for(s in i)this._addLayer(i[s],s,!0)},onAdd:function(t){this._initLayout(),this._update(),this._map=t,t.on("zoomend",this._checkDisabledLayers,this);for(var i=0;i<this._layers.length;i++)this._layers[i].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(t){return qi.prototype.addTo.call(this,t),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var t=0;t<this._layers.length;t++)this._layers[t].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(t,i){return this._addLayer(t,i),this._map?this._update():this},addOverlay:function(t,i){return this._addLayer(t,i,!0),this._map?this._update():this},removeLayer:function(t){t.off("add remove",this._onLayerChange,this);var i=this._getLayer(h(t));return i&&this._layers.splice(this._layers.indexOf(i),1),this._map?this._update():this},expand:function(){ci(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var t=this._map.getSize().y-(this._container.offsetTop+50);return t<this._section.clientHeight?(ci(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=t+"px"):fi(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return fi(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var t="leaflet-control-layers",i=this._container=ei("div",t),n=this.options.collapsed;i.setAttribute("aria-haspopup",!0),Zi(i),Bi(i);var s=this._section=ei("section",t+"-list");n&&(this._map.on("click",this.collapse,this),xi(i,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var e=this._layersLink=ei("a",t+"-toggle",i);e.href="#",e.title="Layers",e.setAttribute("role","button"),xi(e,{keydown:function(t){13===t.keyCode&&this._expandSafely()},click:function(t){Di(t),this._expandSafely()}},this),n||this.expand(),this._baseLayersList=ei("div",t+"-base",s),this._separator=ei("div",t+"-separator",s),this._overlaysList=ei("div",t+"-overlays",s),i.appendChild(s)},_getLayer:function(t){for(var i=0;i<this._layers.length;i++)if(this._layers[i]&&h(this._layers[i].layer)===t)return this._layers[i]},_addLayer:function(t,i,n){this._map&&t.on("add remove",this._onLayerChange,this),this._layers.push({layer:t,name:i,overlay:n}),this.options.sortLayers&&this._layers.sort(s((function(t,i){return this.options.sortFunction(t.layer,i.layer,t.name,i.name)}),this)),this.options.autoZIndex&&t.setZIndex&&(this._lastZIndex++,t.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;oi(this._baseLayersList),oi(this._overlaysList),this._layerControlInputs=[];var t,i,n,s,e=0;for(n=0;n<this._layers.length;n++)this._addItem(s=this._layers[n]),i=i||s.overlay,t=t||!s.overlay,e+=s.overlay?0:1;return this.options.hideSingleBase&&(this._baseLayersList.style.display=(t=t&&e>1)?"":"none"),this._separator.style.display=i&&t?"":"none",this},_onLayerChange:function(t){this._handlingClick||this._update();var i=this._getLayer(h(t.target)),n=i.overlay?"add"===t.type?"overlayadd":"overlayremove":"add"===t.type?"baselayerchange":null;n&&this._map.fire(n,i)},_createRadioElement:function(t,i){var n='<input type="radio" class="leaflet-control-layers-selector" name="'+t+'"'+(i?' checked="checked"':"")+"/>",s=document.createElement("div");return s.innerHTML=n,s.firstChild},_addItem:function(t){var i,n=document.createElement("label"),s=this._map.hasLayer(t.layer);t.overlay?((i=document.createElement("input")).type="checkbox",i.className="leaflet-control-layers-selector",i.defaultChecked=s):i=this._createRadioElement("leaflet-base-layers_"+h(this),s),this._layerControlInputs.push(i),i.layerId=h(t.layer),xi(i,"click",this._onInputClick,this);var e=document.createElement("span");e.innerHTML=" "+t.name;var o=document.createElement("span");return n.appendChild(o),o.appendChild(i),o.appendChild(e),(t.overlay?this._overlaysList:this._baseLayersList).appendChild(n),this._checkDisabledLayers(),n},_onInputClick:function(){if(!this._preventClick){var t,i,n=this._layerControlInputs,s=[],e=[];this._handlingClick=!0;for(var h=n.length-1;h>=0;h--)i=this._getLayer((t=n[h]).layerId).layer,t.checked?s.push(i):t.checked||e.push(i);for(h=0;h<e.length;h++)this._map.hasLayer(e[h])&&this._map.removeLayer(e[h]);for(h=0;h<s.length;h++)this._map.hasLayer(s[h])||this._map.addLayer(s[h]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var t,i,n=this._layerControlInputs,s=this._map.getZoom(),e=n.length-1;e>=0;e--)i=this._getLayer((t=n[e]).layerId).layer,t.disabled=void 0!==i.options.minZoom&&s<i.options.minZoom||void 0!==i.options.maxZoom&&s>i.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var t=this._section;this._preventClick=!0,xi(t,"click",Di),this.expand();var i=this;setTimeout((function(){Si(t,"click",Di),i._preventClick=!1}))}}),Xi=qi.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">&#x2212;</span>',zoomOutTitle:"Zoom out"},onAdd:function(t){var i="leaflet-control-zoom",n=ei("div",i+" leaflet-bar"),s=this.options;return this._zoomInButton=this._createButton(s.zoomInText,s.zoomInTitle,i+"-in",n,this._zoomIn),this._zoomOutButton=this._createButton(s.zoomOutText,s.zoomOutTitle,i+"-out",n,this._zoomOut),this._updateDisabled(),t.on("zoomend zoomlevelschange",this._updateDisabled,this),n},onRemove:function(t){t.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(t){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(t.shiftKey?3:1))},_zoomOut:function(t){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(t.shiftKey?3:1))},_createButton:function(t,i,n,s,e){var h=ei("a",n,s);return h.innerHTML=t,h.href="#",h.title=i,h.setAttribute("role","button"),h.setAttribute("aria-label",i),Zi(h),xi(h,"click",Ri),xi(h,"click",e,this),xi(h,"click",this._refocusOnMap,this),h},_updateDisabled:function(){var t=this._map,i="leaflet-disabled";fi(this._zoomInButton,i),fi(this._zoomOutButton,i),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||t._zoom===t.getMinZoom())&&(ci(this._zoomOutButton,i),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||t._zoom===t.getMaxZoom())&&(ci(this._zoomInButton,i),this._zoomInButton.setAttribute("aria-disabled","true"))}});Vi.mergeOptions({zoomControl:!0}),Vi.addInitHook((function(){this.options.zoomControl&&(this.zoomControl=new Xi,this.addControl(this.zoomControl))}));var $i=qi.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(t){var i="leaflet-control-scale",n=ei("div",i),s=this.options;return this._addScales(s,i+"-line",n),t.on(s.updateWhenIdle?"moveend":"move",this._update,this),t.whenReady(this._update,this),n},onRemove:function(t){t.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(t,i,n){t.metric&&(this._mScale=ei("div",i,n)),t.imperial&&(this._iScale=ei("div",i,n))},_update:function(){var t=this._map,i=t.getSize().y/2,n=t.distance(t.containerPointToLatLng([0,i]),t.containerPointToLatLng([this.options.maxWidth,i]));this._updateScales(n)},_updateScales:function(t){this.options.metric&&t&&this._updateMetric(t),this.options.imperial&&t&&this._updateImperial(t)},_updateMetric:function(t){var i=this._getRoundNum(t);this._updateScale(this._mScale,i<1e3?i+" m":i/1e3+" km",i/t)},_updateImperial:function(t){var i,n,s,e=3.2808399*t;e>5280?(n=this._getRoundNum(i=e/5280),this._updateScale(this._iScale,n+" mi",n/i)):(s=this._getRoundNum(e),this._updateScale(this._iScale,s+" ft",s/e))},_updateScale:function(t,i,n){t.style.width=Math.round(this.options.maxWidth*n)+"px",t.innerHTML=i},_getRoundNum:function(t){var i=Math.pow(10,(Math.floor(t)+"").length-1),n=t/i;return i*(n>=10?10:n>=5?5:n>=3?3:n>=2?2:1)}}),Qi=qi.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(It.inlineSvg?'<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> ':"")+"Leaflet</a>"},initialize:function(t){l(this,t),this._attributions={}},onAdd:function(t){for(var i in t.attributionControl=this,this._container=ei("div","leaflet-control-attribution"),Zi(this._container),t._layers)t._layers[i].getAttribution&&this.addAttribution(t._layers[i].getAttribution());return this._update(),t.on("layeradd",this._addAttribution,this),this._container},onRemove:function(t){t.off("layeradd",this._addAttribution,this)},_addAttribution:function(t){t.layer.getAttribution&&(this.addAttribution(t.layer.getAttribution()),t.layer.once("remove",(function(){this.removeAttribution(t.layer.getAttribution())}),this))},setPrefix:function(t){return this.options.prefix=t,this._update(),this},addAttribution:function(t){return t?(this._attributions[t]||(this._attributions[t]=0),this._attributions[t]++,this._update(),this):this},removeAttribution:function(t){return t?(this._attributions[t]&&(this._attributions[t]--,this._update()),this):this},_update:function(){if(this._map){var t=[];for(var i in this._attributions)this._attributions[i]&&t.push(i);var n=[];this.options.prefix&&n.push(this.options.prefix),t.length&&n.push(t.join(", ")),this._container.innerHTML=n.join(' <span aria-hidden="true">|</span> ')}}});Vi.mergeOptions({attributionControl:!0}),Vi.addInitHook((function(){this.options.attributionControl&&(new Qi).addTo(this)}));qi.Layers=Ki,qi.Zoom=Xi,qi.Scale=$i,qi.Attribution=Qi,Ji.layers=function(t,i,n){return new Ki(t,i,n)},Ji.zoom=function(t){return new Xi(t)},Ji.scale=function(t){return new $i(t)},Ji.attribution=function(t){return new Qi(t)};var Yi=z.extend({initialize:function(t){this._map=t},enable:function(){return this._enabled||(this._enabled=!0,this.addHooks()),this},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});Yi.addTo=function(t,i){return t.addHandler(i,this),this};var tn={Events:S},nn=It.touch?"touchstart mousedown":"mousedown",sn=E.extend({options:{clickTolerance:3},initialize:function(t,i,n,s){l(this,s),this._element=t,this._dragStartTarget=i||t,this._preventOutline=n},enable:function(){this._enabled||(xi(this._dragStartTarget,nn,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(sn._dragging===this&&this.finishDrag(!0),Si(this._dragStartTarget,nn,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(t){if(this._enabled&&(this._moved=!1,!ui(this._element,"leaflet-zoom-anim")))if(t.touches&&1!==t.touches.length)sn._dragging===this&&this.finishDrag();else if(!(sn._dragging||t.shiftKey||1!==t.which&&1!==t.button&&!t.touches||(sn._dragging=this,this._preventOutline&&bi(this._element),yi(),Jt(),this._moving))){this.fire("down");var i=t.touches?t.touches[0]:t,n=ki(this._element);this._startPoint=new A(i.clientX,i.clientY),this._startPos=wi(this._element),this._parentScale=Ti(n);var s="mousedown"===t.type;xi(document,s?"mousemove":"touchmove",this._onMove,this),xi(document,s?"mouseup":"touchend touchcancel",this._onUp,this)}},_onMove:function(t){if(this._enabled)if(t.touches&&t.touches.length>1)this._moved=!0;else{var i=t.touches&&1===t.touches.length?t.touches[0]:t,n=new A(i.clientX,i.clientY)._subtract(this._startPoint);(n.x||n.y)&&(Math.abs(n.x)+Math.abs(n.y)<this.options.clickTolerance||(n.x/=this._parentScale.x,n.y/=this._parentScale.y,Di(t),this._moved||(this.fire("dragstart"),this._moved=!0,ci(document.body,"leaflet-dragging"),this._lastTarget=t.target||t.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),ci(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(n),this._moving=!0,this._lastEvent=t,this._updatePosition()))}},_updatePosition:function(){var t={originalEvent:this._lastEvent};this.fire("predrag",t),gi(this._element,this._newPos),this.fire("drag",t)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(t){fi(document.body,"leaflet-dragging"),this._lastTarget&&(fi(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),Si(document,"mousemove touchmove",this._onMove,this),Si(document,"mouseup touchend touchcancel",this._onUp,this),Mi(),Kt();var i=this._moved&&this._moving;this._moving=!1,sn._dragging=!1,i&&this.fire("dragend",{noInertia:t,distance:this._newPos.distanceTo(this._startPos)})}});function en(t,i,n){var s,e,h,o,r,a,u,c,f,l=[1,4,2,8];for(e=0,u=t.length;e<u;e++)t[e]._code=vn(t[e],i);for(o=0;o<4;o++){for(c=l[o],s=[],e=0,h=(u=t.length)-1;e<u;h=e++)a=t[h],(r=t[e])._code&c?a._code&c||((f=dn(a,r,c,i,n))._code=vn(f,i),s.push(f)):(a._code&c&&((f=dn(a,r,c,i,n))._code=vn(f,i),s.push(f)),s.push(r));t=s}return t}function hn(t,i){var n,s,e,h,o,r,a,u;if(!t||0===t.length)throw new Error("latlngs not passed");gn(t)||(console.warn("latlngs are not flat! Only the first ring will be used"),t=t[0]);var c=N([0,0]),f=D(t);f.getNorthWest().distanceTo(f.getSouthWest())*f.getNorthEast().distanceTo(f.getNorthWest())<1700&&(c=on(t));var l=t.length,d=[];for(n=0;n<l;n++){var v=N(t[n]);d.push(i.project(N([v.lat-c.lat,v.lng-c.lng])))}for(r=a=u=0,n=0,s=l-1;n<l;s=n++)a+=((e=d[n]).x+(h=d[s]).x)*(o=e.y*h.x-h.y*e.x),u+=(e.y+h.y)*o,r+=3*o;var m=i.unproject(O(0===r?d[0]:[a/r,u/r]));return N([m.lat+c.lat,m.lng+c.lng])}function on(t){for(var i=0,n=0,s=0,e=0;e<t.length;e++){var h=N(t[e]);i+=h.lat,n+=h.lng,s++}return N([i/s,n/s])}var rn,an={__proto__:null,clipPolygon:en,polygonCenter:hn,centroid:on};function un(t,i){if(!i||!t.length)return t.slice();var n=i*i;return function(t,i){var n=t.length,s=new(typeof Uint8Array!=void 0+""?Uint8Array:Array)(n);s[0]=s[n-1]=1,fn(t,s,i,0,n-1);var e,h=[];for(e=0;e<n;e++)s[e]&&h.push(t[e]);return h}(t=function(t,i){for(var n=[t[0]],s=1,e=0,h=t.length;s<h;s++)mn(t[s],t[e])>i&&(n.push(t[s]),e=s);return e<h-1&&n.push(t[h-1]),n}(t,n),n)}function cn(t,i,n){return Math.sqrt(pn(t,i,n,!0))}function fn(t,i,n,s,e){var h,o,r,a=0;for(o=s+1;o<=e-1;o++)(r=pn(t[o],t[s],t[e],!0))>a&&(h=o,a=r);a>n&&(i[h]=1,fn(t,i,n,s,h),fn(t,i,n,h,e))}function ln(t,i,n,s,e){var h,o,r,a=s?rn:vn(t,n),u=vn(i,n);for(rn=u;;){if(!(a|u))return[t,i];if(a&u)return!1;r=vn(o=dn(t,i,h=a||u,n,e),n),h===a?(t=o,a=r):(i=o,u=r)}}function dn(t,i,n,s,e){var h,o,r=i.x-t.x,a=i.y-t.y,u=s.min,c=s.max;return 8&n?(h=t.x+r*(c.y-t.y)/a,o=c.y):4&n?(h=t.x+r*(u.y-t.y)/a,o=u.y):2&n?(h=c.x,o=t.y+a*(c.x-t.x)/r):1&n&&(h=u.x,o=t.y+a*(u.x-t.x)/r),new A(h,o,e)}function vn(t,i){var n=0;return t.x<i.min.x?n|=1:t.x>i.max.x&&(n|=2),t.y<i.min.y?n|=4:t.y>i.max.y&&(n|=8),n}function mn(t,i){var n=i.x-t.x,s=i.y-t.y;return n*n+s*s}function pn(t,i,n,s){var e,h=i.x,o=i.y,r=n.x-h,a=n.y-o,u=r*r+a*a;return u>0&&((e=((t.x-h)*r+(t.y-o)*a)/u)>1?(h=n.x,o=n.y):e>0&&(h+=r*e,o+=a*e)),r=t.x-h,a=t.y-o,s?r*r+a*a:new A(h,o)}function gn(t){return!p(t[0])||"object"!=typeof t[0][0]&&void 0!==t[0][0]}function wn(t){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),gn(t)}function _n(t,i){var n,s,e,h,o,r,a,u;if(!t||0===t.length)throw new Error("latlngs not passed");gn(t)||(console.warn("latlngs are not flat! Only the first ring will be used"),t=t[0]);var c=N([0,0]),f=D(t);f.getNorthWest().distanceTo(f.getSouthWest())*f.getNorthEast().distanceTo(f.getNorthWest())<1700&&(c=on(t));var l=t.length,d=[];for(n=0;n<l;n++){var v=N(t[n]);d.push(i.project(N([v.lat-c.lat,v.lng-c.lng])))}for(n=0,s=0;n<l-1;n++)s+=d[n].distanceTo(d[n+1])/2;if(0===s)u=d[0];else for(n=0,h=0;n<l-1;n++)if((h+=e=(o=d[n]).distanceTo(r=d[n+1]))>s){u=[r.x-(a=(h-s)/e)*(r.x-o.x),r.y-a*(r.y-o.y)];break}var m=i.unproject(O(u));return N([m.lat+c.lat,m.lng+c.lng])}var yn={__proto__:null,simplify:un,pointToSegmentDistance:cn,closestPointOnSegment:function(t,i,n){return pn(t,i,n)},clipSegment:ln,_getEdgeIntersection:dn,_getBitCode:vn,_sqClosestPointOnSegment:pn,isFlat:gn,_flat:wn,polylineCenter:_n},Mn={project:function(t){return new A(t.lng,t.lat)},unproject:function(t){return new R(t.y,t.x)},bounds:new I([-180,-90],[180,90])},bn={R:6378137,R_MINOR:6356752.314245179,bounds:new I([-20037508.34279,-15496570.73972],[20037508.34279,18764656.23138]),project:function(t){var i=Math.PI/180,n=this.R,s=t.lat*i,e=this.R_MINOR/n,h=Math.sqrt(1-e*e),o=h*Math.sin(s),r=Math.tan(Math.PI/4-s/2)/Math.pow((1-o)/(1+o),h/2);return s=-n*Math.log(Math.max(r,1e-10)),new A(t.lng*i*n,s)},unproject:function(t){for(var i,n=180/Math.PI,s=this.R,e=this.R_MINOR/s,h=Math.sqrt(1-e*e),o=Math.exp(-t.y/s),r=Math.PI/2-2*Math.atan(o),a=0,u=.1;a<15&&Math.abs(u)>1e-7;a++)i=h*Math.sin(r),i=Math.pow((1-i)/(1+i),h/2),r+=u=Math.PI/2-2*Math.atan(o*i)-r;return new R(r*n,t.x*n/s)}},Pn={__proto__:null,LonLat:Mn,Mercator:bn,SphericalMercator:W},kn=i({},H,{code:"EPSG:3395",projection:bn,transformation:function(){var t=.5/(Math.PI*bn.R);return V(t,.5,-t,.5)}()}),Tn=i({},H,{code:"EPSG:4326",projection:Mn,transformation:V(1/180,1,-1/180,.5)}),Ln=i({},F,{projection:Mn,transformation:V(1,0,-1,0),scale:function(t){return Math.pow(2,t)},zoom:function(t){return Math.log(t)/Math.LN2},distance:function(t,i){var n=i.lng-t.lng,s=i.lat-t.lat;return Math.sqrt(n*n+s*s)},infinite:!0});F.Earth=H,F.EPSG3395=kn,F.EPSG3857=q,F.EPSG900913=J,F.EPSG4326=Tn,F.Simple=Ln;var xn=E.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(t){return t.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(t){return t&&t.removeLayer(this),this},getPane:function(t){return this._map.getPane(t?this.options[t]||t:this.options.pane)},addInteractiveTarget:function(t){return this._map._targets[h(t)]=this,this},removeInteractiveTarget:function(t){return delete this._map._targets[h(t)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(t){var i=t.target;if(i.hasLayer(this)){if(this._map=i,this._zoomAnimated=i._zoomAnimated,this.getEvents){var n=this.getEvents();i.on(n,this),this.once("remove",(function(){i.off(n,this)}),this)}this.onAdd(i),this.fire("add"),i.fire("layeradd",{layer:this})}}});Vi.include({addLayer:function(t){if(!t._layerAdd)throw new Error("The provided object is not a Layer.");var i=h(t);return this._layers[i]||(this._layers[i]=t,t._mapToAdd=this,t.beforeAdd&&t.beforeAdd(this),this.whenReady(t._layerAdd,t)),this},removeLayer:function(t){var i=h(t);return this._layers[i]?(this._loaded&&t.onRemove(this),delete this._layers[i],this._loaded&&(this.fire("layerremove",{layer:t}),t.fire("remove")),t._map=t._mapToAdd=null,this):this},hasLayer:function(t){return h(t)in this._layers},eachLayer:function(t,i){for(var n in this._layers)t.call(i,this._layers[n]);return this},_addLayers:function(t){for(var i=0,n=(t=t?p(t)?t:[t]:[]).length;i<n;i++)this.addLayer(t[i])},_addZoomLimit:function(t){isNaN(t.options.maxZoom)&&isNaN(t.options.minZoom)||(this._zoomBoundLayers[h(t)]=t,this._updateZoomLevels())},_removeZoomLimit:function(t){var i=h(t);this._zoomBoundLayers[i]&&(delete this._zoomBoundLayers[i],this._updateZoomLevels())},_updateZoomLevels:function(){var t=1/0,i=-1/0,n=this._getZoomSpan();for(var s in this._zoomBoundLayers){var e=this._zoomBoundLayers[s].options;t=void 0===e.minZoom?t:Math.min(t,e.minZoom),i=void 0===e.maxZoom?i:Math.max(i,e.maxZoom)}this._layersMaxZoom=i===-1/0?void 0:i,this._layersMinZoom=t===1/0?void 0:t,n!==this._getZoomSpan()&&this.fire("zoomlevelschange"),void 0===this.options.maxZoom&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),void 0===this.options.minZoom&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var zn=xn.extend({initialize:function(t,i){var n,s;if(l(this,i),this._layers={},t)for(n=0,s=t.length;n<s;n++)this.addLayer(t[n])},addLayer:function(t){var i=this.getLayerId(t);return this._layers[i]=t,this._map&&this._map.addLayer(t),this},removeLayer:function(t){var i=t in this._layers?t:this.getLayerId(t);return this._map&&this._layers[i]&&this._map.removeLayer(this._layers[i]),delete this._layers[i],this},hasLayer:function(t){return("number"==typeof t?t:this.getLayerId(t))in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(t){var i,n,s=Array.prototype.slice.call(arguments,1);for(i in this._layers)(n=this._layers[i])[t]&&n[t].apply(n,s);return this},onAdd:function(t){this.eachLayer(t.addLayer,t)},onRemove:function(t){this.eachLayer(t.removeLayer,t)},eachLayer:function(t,i){for(var n in this._layers)t.call(i,this._layers[n]);return this},getLayer:function(t){return this._layers[t]},getLayers:function(){var t=[];return this.eachLayer(t.push,t),t},setZIndex:function(t){return this.invoke("setZIndex",t)},getLayerId:function(t){return h(t)}}),Sn=zn.extend({addLayer:function(t){return this.hasLayer(t)?this:(t.addEventParent(this),zn.prototype.addLayer.call(this,t),this.fire("layeradd",{layer:t}))},removeLayer:function(t){return this.hasLayer(t)?(t in this._layers&&(t=this._layers[t]),t.removeEventParent(this),zn.prototype.removeLayer.call(this,t),this.fire("layerremove",{layer:t})):this},setStyle:function(t){return this.invoke("setStyle",t)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var t=new Z;for(var i in this._layers){var n=this._layers[i];t.extend(n.getBounds?n.getBounds():n.getLatLng())}return t}}),En=z.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(t){l(this,t)},createIcon:function(t){return this._createIcon("icon",t)},createShadow:function(t){return this._createIcon("shadow",t)},_createIcon:function(t,i){var n=this._getIconUrl(t);if(!n){if("icon"===t)throw new Error("iconUrl not set in Icon options (see the docs).");return null}var s=this._createImg(n,i&&"IMG"===i.tagName?i:null);return this._setIconStyles(s,t),(this.options.crossOrigin||""===this.options.crossOrigin)&&(s.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),s},_setIconStyles:function(t,i){var n=this.options,s=n[i+"Size"];"number"==typeof s&&(s=[s,s]);var e=O(s),h=O("shadow"===i&&n.shadowAnchor||n.iconAnchor||e&&e.divideBy(2,!0));t.className="leaflet-marker-"+i+" "+(n.className||""),h&&(t.style.marginLeft=-h.x+"px",t.style.marginTop=-h.y+"px"),e&&(t.style.width=e.x+"px",t.style.height=e.y+"px")},_createImg:function(t,i){return(i=i||document.createElement("img")).src=t,i},_getIconUrl:function(t){return It.retina&&this.options[t+"RetinaUrl"]||this.options[t+"Url"]}});var An=En.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(t){return"string"!=typeof An.imagePath&&(An.imagePath=this._detectIconPath()),(this.options.imagePath||An.imagePath)+En.prototype._getIconUrl.call(this,t)},_stripUrl:function(t){var i=function(t,i,n){var s=i.exec(t);return s&&s[n]};return(t=i(t,/^url\((['"])?(.+)\1\)$/,2))&&i(t,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var t=ei("div","leaflet-default-icon-path",document.body),i=si(t,"background-image")||si(t,"backgroundImage");if(document.body.removeChild(t),i=this._stripUrl(i))return i;var n=document.querySelector('link[href$="leaflet.css"]');return n?n.href.substring(0,n.href.length-11-1):""}}),Cn=Yi.extend({initialize:function(t){this._marker=t},addHooks:function(){var t=this._marker._icon;this._draggable||(this._draggable=new sn(t,t,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),ci(t,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon&&fi(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(t){var i=this._marker,n=i._map,s=this._marker.options.autoPanSpeed,e=this._marker.options.autoPanPadding,h=wi(i._icon),o=n.getPixelBounds(),r=n.getPixelOrigin(),a=B(o.min._subtract(r).add(e),o.max._subtract(r).subtract(e));if(!a.contains(h)){var u=O((Math.max(a.max.x,h.x)-a.max.x)/(o.max.x-a.max.x)-(Math.min(a.min.x,h.x)-a.min.x)/(o.min.x-a.min.x),(Math.max(a.max.y,h.y)-a.max.y)/(o.max.y-a.max.y)-(Math.min(a.min.y,h.y)-a.min.y)/(o.min.y-a.min.y)).multiplyBy(s);n.panBy(u,{animate:!1}),this._draggable._newPos._add(u),this._draggable._startPos._add(u),gi(i._icon,this._draggable._newPos),this._onDrag(t),this._panRequest=k(this._adjustPan.bind(this,t))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(t){this._marker.options.autoPan&&(T(this._panRequest),this._panRequest=k(this._adjustPan.bind(this,t)))},_onDrag:function(t){var i=this._marker,n=i._shadow,s=wi(i._icon),e=i._map.layerPointToLatLng(s);n&&gi(n,s),i._latlng=e,t.latlng=e,t.oldLatLng=this._oldLatLng,i.fire("move",t).fire("drag",t)},_onDragEnd:function(t){T(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",t)}}),On=xn.extend({options:{icon:new An,interactive:!0,keyboard:!0,title:"",alt:"Marker",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:!1,autoPanOnFocus:!0,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(t,i){l(this,i),this._latlng=N(t)},onAdd:function(t){this._zoomAnimated=this._zoomAnimated&&t.options.markerZoomAnimation,this._zoomAnimated&&t.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(t){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&t.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(t){var i=this._latlng;return this._latlng=N(t),this.update(),this.fire("move",{oldLatLng:i,latlng:this._latlng})},setZIndexOffset:function(t){return this.options.zIndexOffset=t,this.update()},getIcon:function(){return this.options.icon},setIcon:function(t){return this.options.icon=t,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){if(this._icon&&this._map){var t=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(t)}return this},_initIcon:function(){var t=this.options,i="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),n=t.icon.createIcon(this._icon),s=!1;n!==this._icon&&(this._icon&&this._removeIcon(),s=!0,t.title&&(n.title=t.title),"IMG"===n.tagName&&(n.alt=t.alt||"")),ci(n,i),t.keyboard&&(n.tabIndex="0",n.setAttribute("role","button")),this._icon=n,t.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&xi(n,"focus",this._panOnFocus,this);var e=t.icon.createShadow(this._shadow),h=!1;e!==this._shadow&&(this._removeShadow(),h=!0),e&&(ci(e,i),e.alt=""),this._shadow=e,t.opacity<1&&this._updateOpacity(),s&&this.getPane().appendChild(this._icon),this._initInteraction(),e&&h&&this.getPane(t.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&Si(this._icon,"focus",this._panOnFocus,this),hi(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&hi(this._shadow),this._shadow=null},_setPos:function(t){this._icon&&gi(this._icon,t),this._shadow&&gi(this._shadow,t),this._zIndex=t.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(t){this._icon&&(this._icon.style.zIndex=this._zIndex+t)},_animateZoom:function(t){var i=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center).round();this._setPos(i)},_initInteraction:function(){if(this.options.interactive&&(ci(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),Cn)){var t=this.options.draggable;this.dragging&&(t=this.dragging.enabled(),this.dragging.disable()),this.dragging=new Cn(this),t&&this.dragging.enable()}},setOpacity:function(t){return this.options.opacity=t,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var t=this.options.opacity;this._icon&&vi(this._icon,t),this._shadow&&vi(this._shadow,t)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var t=this._map;if(t){var i=this.options.icon.options,n=i.iconSize?O(i.iconSize):O(0,0),s=i.iconAnchor?O(i.iconAnchor):O(0,0);t.panInside(this._latlng,{paddingTopLeft:s,paddingBottomRight:n.subtract(s)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});var In=xn.extend({options:{stroke:!0,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:!0,bubblingMouseEvents:!0},beforeAdd:function(t){this._renderer=t.getRenderer(this)},onAdd:function(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){return this._map&&this._renderer._updatePath(this),this},setStyle:function(t){return l(this,t),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&t&&Object.prototype.hasOwnProperty.call(t,"weight")&&this._updateBounds()),this},bringToFront:function(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack:function(){return this._renderer&&this._renderer._bringToBack(this),this},getElement:function(){return this._path},_reset:function(){this._project(),this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+(this._renderer.options.tolerance||0)}}),Bn=In.extend({options:{fill:!0,radius:10},initialize:function(t,i){l(this,i),this._latlng=N(t),this._radius=this.options.radius},setLatLng:function(t){var i=this._latlng;return this._latlng=N(t),this.redraw(),this.fire("move",{oldLatLng:i,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(t){return this.options.radius=this._radius=t,this.redraw()},getRadius:function(){return this._radius},setStyle:function(t){var i=t&&t.radius||this._radius;return In.prototype.setStyle.call(this,t),this.setRadius(i),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var t=this._radius,i=this._radiusY||t,n=this._clickTolerance(),s=[t+n,i+n];this._pxBounds=new I(this._point.subtract(s),this._point.add(s))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(t){return t.distanceTo(this._point)<=this._radius+this._clickTolerance()}});var Zn=Bn.extend({initialize:function(t,n,s){if("number"==typeof n&&(n=i({},s,{radius:n})),l(this,n),this._latlng=N(t),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(t){return this._mRadius=t,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var t=[this._radius,this._radiusY||this._radius];return new Z(this._map.layerPointToLatLng(this._point.subtract(t)),this._map.layerPointToLatLng(this._point.add(t)))},setStyle:In.prototype.setStyle,_project:function(){var t=this._latlng.lng,i=this._latlng.lat,n=this._map,s=n.options.crs;if(s.distance===H.distance){var e=Math.PI/180,h=this._mRadius/H.R/e,o=n.project([i+h,t]),r=n.project([i-h,t]),a=o.add(r).divideBy(2),u=n.unproject(a).lat,c=Math.acos((Math.cos(h*e)-Math.sin(i*e)*Math.sin(u*e))/(Math.cos(i*e)*Math.cos(u*e)))/e;(isNaN(c)||0===c)&&(c=h/Math.cos(Math.PI/180*i)),this._point=a.subtract(n.getPixelOrigin()),this._radius=isNaN(c)?0:a.x-n.project([u,t-c]).x,this._radiusY=a.y-o.y}else{var f=s.unproject(s.project(this._latlng).subtract([this._mRadius,0]));this._point=n.latLngToLayerPoint(this._latlng),this._radius=this._point.x-n.latLngToLayerPoint(f).x}this._updateBounds()}});var Dn=In.extend({options:{smoothFactor:1,noClip:!1},initialize:function(t,i){l(this,i),this._setLatLngs(t)},getLatLngs:function(){return this._latlngs},setLatLngs:function(t){return this._setLatLngs(t),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(t){for(var i,n,s=1/0,e=null,h=pn,o=0,r=this._parts.length;o<r;o++)for(var a=this._parts[o],u=1,c=a.length;u<c;u++){var f=h(t,i=a[u-1],n=a[u],!0);f<s&&(s=f,e=h(t,i,n))}return e&&(e.distance=Math.sqrt(s)),e},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return _n(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(t,i){return i=i||this._defaultShape(),t=N(t),i.push(t),this._bounds.extend(t),this.redraw()},_setLatLngs:function(t){this._bounds=new Z,this._latlngs=this._convertLatLngs(t)},_defaultShape:function(){return gn(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(t){for(var i=[],n=gn(t),s=0,e=t.length;s<e;s++)n?(i[s]=N(t[s]),this._bounds.extend(i[s])):i[s]=this._convertLatLngs(t[s]);return i},_project:function(){var t=new I;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,t),this._bounds.isValid()&&t.isValid()&&(this._rawPxBounds=t,this._updateBounds())},_updateBounds:function(){var t=this._clickTolerance(),i=new A(t,t);this._rawPxBounds&&(this._pxBounds=new I([this._rawPxBounds.min.subtract(i),this._rawPxBounds.max.add(i)]))},_projectLatlngs:function(t,i,n){var s,e,h=t.length;if(t[0]instanceof R){for(e=[],s=0;s<h;s++)e[s]=this._map.latLngToLayerPoint(t[s]),n.extend(e[s]);i.push(e)}else for(s=0;s<h;s++)this._projectLatlngs(t[s],i,n)},_clipPoints:function(){var t=this._renderer._bounds;if(this._parts=[],this._pxBounds&&this._pxBounds.intersects(t))if(this.options.noClip)this._parts=this._rings;else{var i,n,s,e,h,o,r,a=this._parts;for(i=0,s=0,e=this._rings.length;i<e;i++)for(n=0,h=(r=this._rings[i]).length;n<h-1;n++)(o=ln(r[n],r[n+1],t,n,!0))&&(a[s]=a[s]||[],a[s].push(o[0]),o[1]===r[n+1]&&n!==h-2||(a[s].push(o[1]),s++))}},_simplifyPoints:function(){for(var t=this._parts,i=this.options.smoothFactor,n=0,s=t.length;n<s;n++)t[n]=un(t[n],i)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(t,i){var n,s,e,h,o,r,a=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(n=0,h=this._parts.length;n<h;n++)for(s=0,e=(o=(r=this._parts[n]).length)-1;s<o;e=s++)if((i||0!==s)&&cn(t,r[e],r[s])<=a)return!0;return!1}});Dn._flat=wn;var Rn=Dn.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 hn(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(t){var i=Dn.prototype._convertLatLngs.call(this,t),n=i.length;return n>=2&&i[0]instanceof R&&i[0].equals(i[n-1])&&i.pop(),i},_setLatLngs:function(t){Dn.prototype._setLatLngs.call(this,t),gn(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return gn(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var t=this._renderer._bounds,i=this.options.weight,n=new A(i,i);if(t=new I(t.min.subtract(n),t.max.add(n)),this._parts=[],this._pxBounds&&this._pxBounds.intersects(t))if(this.options.noClip)this._parts=this._rings;else for(var s,e=0,h=this._rings.length;e<h;e++)(s=en(this._rings[e],t,!0)).length&&this._parts.push(s)},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(t){var i,n,s,e,h,o,r,a,u=!1;if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(e=0,r=this._parts.length;e<r;e++)for(h=0,o=(a=(i=this._parts[e]).length)-1;h<a;o=h++)(n=i[h]).y>t.y!=(s=i[o]).y>t.y&&t.x<(s.x-n.x)*(t.y-n.y)/(s.y-n.y)+n.x&&(u=!u);return u||Dn.prototype._containsPoint.call(this,t,!0)}});var Nn=Sn.extend({initialize:function(t,i){l(this,i),this._layers={},t&&this.addData(t)},addData:function(t){var i,n,s,e=p(t)?t:t.features;if(e){for(i=0,n=e.length;i<n;i++)((s=e[i]).geometries||s.geometry||s.features||s.coordinates)&&this.addData(s);return this}var h=this.options;if(h.filter&&!h.filter(t))return this;var o=jn(t,h);return o?(o.feature=qn(t),o.defaultOptions=o.options,this.resetStyle(o),h.onEachFeature&&h.onEachFeature(t,o),this.addLayer(o)):this},resetStyle:function(t){return void 0===t?this.eachLayer(this.resetStyle,this):(t.options=i({},t.defaultOptions),this._setLayerStyle(t,this.options.style),this)},setStyle:function(t){return this.eachLayer((function(i){this._setLayerStyle(i,t)}),this)},_setLayerStyle:function(t,i){t.setStyle&&("function"==typeof i&&(i=i(t.feature)),t.setStyle(i))}});function jn(t,i){var n,s,e,h,o="Feature"===t.type?t.geometry:t,r=o?o.coordinates:null,a=[],u=i&&i.pointToLayer,c=i&&i.coordsToLatLng||Hn;if(!r&&!o)return null;switch(o.type){case"Point":return Fn(u,t,n=c(r),i);case"MultiPoint":for(e=0,h=r.length;e<h;e++)n=c(r[e]),a.push(Fn(u,t,n,i));return new Sn(a);case"LineString":case"MultiLineString":return s=Un(r,"LineString"===o.type?0:1,c),new Dn(s,i);case"Polygon":case"MultiPolygon":return s=Un(r,"Polygon"===o.type?1:2,c),new Rn(s,i);case"GeometryCollection":for(e=0,h=o.geometries.length;e<h;e++){var f=jn({geometry:o.geometries[e],type:"Feature",properties:t.properties},i);f&&a.push(f)}return new Sn(a);case"FeatureCollection":for(e=0,h=o.features.length;e<h;e++){var l=jn(o.features[e],i);l&&a.push(l)}return new Sn(a);default:throw new Error("Invalid GeoJSON object.")}}function Fn(t,i,n,s){return t?t(i,n):new On(n,s&&s.markersInheritOptions&&s)}function Hn(t){return new R(t[1],t[0],t[2])}function Un(t,i,n){for(var s,e=[],h=0,o=t.length;h<o;h++)s=i?Un(t[h],i-1,n):(n||Hn)(t[h]),e.push(s);return e}function Wn(t,i){return void 0!==(t=N(t)).alt?[u(t.lng,i),u(t.lat,i),u(t.alt,i)]:[u(t.lng,i),u(t.lat,i)]}function Gn(t,i,n,s){for(var e=[],h=0,o=t.length;h<o;h++)e.push(i?Gn(t[h],gn(t[h])?0:i-1,n,s):Wn(t[h],s));return!i&&n&&e.length>0&&e.push(e[0].slice()),e}function Vn(t,n){return t.feature?i({},t.feature,{geometry:n}):qn(n)}function qn(t){return"Feature"===t.type||"FeatureCollection"===t.type?t:{type:"Feature",properties:{},geometry:t}}var Jn={toGeoJSON:function(t){return Vn(this,{type:"Point",coordinates:Wn(this.getLatLng(),t)})}};function Kn(t,i){return new Nn(t,i)}On.include(Jn),Zn.include(Jn),Bn.include(Jn),Dn.include({toGeoJSON:function(t){var i=!gn(this._latlngs);return Vn(this,{type:(i?"Multi":"")+"LineString",coordinates:Gn(this._latlngs,i?1:0,!1,t)})}}),Rn.include({toGeoJSON:function(t){var i=!gn(this._latlngs),n=i&&!gn(this._latlngs[0]),s=Gn(this._latlngs,n?2:i?1:0,!0,t);return i||(s=[s]),Vn(this,{type:(n?"Multi":"")+"Polygon",coordinates:s})}}),zn.include({toMultiPoint:function(t){var i=[];return this.eachLayer((function(n){i.push(n.toGeoJSON(t).geometry.coordinates)})),Vn(this,{type:"MultiPoint",coordinates:i})},toGeoJSON:function(t){var i=this.feature&&this.feature.geometry&&this.feature.geometry.type;if("MultiPoint"===i)return this.toMultiPoint(t);var n="GeometryCollection"===i,s=[];return this.eachLayer((function(i){if(i.toGeoJSON){var e=i.toGeoJSON(t);if(n)s.push(e.geometry);else{var h=qn(e);"FeatureCollection"===h.type?s.push.apply(s,h.features):s.push(h)}}})),n?Vn(this,{geometries:s,type:"GeometryCollection"}):{type:"FeatureCollection",features:s}}});var Xn=Kn,$n=xn.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(t,i,n){this._url=t,this._bounds=D(i),l(this,n)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(ci(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){hi(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(t){return this.options.opacity=t,this._image&&this._updateOpacity(),this},setStyle:function(t){return t.opacity&&this.setOpacity(t.opacity),this},bringToFront:function(){return this._map&&ri(this._image),this},bringToBack:function(){return this._map&&ai(this._image),this},setUrl:function(t){return this._url=t,this._image&&(this._image.src=t),this},setBounds:function(t){return this._bounds=D(t),this._map&&this._reset(),this},getEvents:function(){var t={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var t="IMG"===this._url.tagName,i=this._image=t?this._url:ei("img");ci(i,"leaflet-image-layer"),this._zoomAnimated&&ci(i,"leaflet-zoom-animated"),this.options.className&&ci(i,this.options.className),i.onselectstart=a,i.onmousemove=a,i.onload=s(this.fire,this,"load"),i.onerror=s(this._overlayOnError,this,"error"),(this.options.crossOrigin||""===this.options.crossOrigin)&&(i.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),t?this._url=i.src:(i.src=this._url,i.alt=this.options.alt)},_animateZoom:function(t){var i=this._map.getZoomScale(t.zoom),n=this._map._latLngBoundsToNewLayerBounds(this._bounds,t.zoom,t.center).min;pi(this._image,n,i)},_reset:function(){var t=this._image,i=new I(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),n=i.getSize();gi(t,i.min),t.style.width=n.x+"px",t.style.height=n.y+"px"},_updateOpacity:function(){vi(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&null!=this.options.zIndex&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var t=this.options.errorOverlayUrl;t&&this._url!==t&&(this._url=t,this._image.src=t)},getCenter:function(){return this._bounds.getCenter()}}),Qn=$n.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var t="VIDEO"===this._url.tagName,i=this._image=t?this._url:ei("video");if(ci(i,"leaflet-image-layer"),this._zoomAnimated&&ci(i,"leaflet-zoom-animated"),this.options.className&&ci(i,this.options.className),i.onselectstart=a,i.onmousemove=a,i.onloadeddata=s(this.fire,this,"load"),t){for(var n=i.getElementsByTagName("source"),e=[],h=0;h<n.length;h++)e.push(n[h].src);this._url=n.length>0?e:[i.src]}else{p(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(i.style,"objectFit")&&(i.style.objectFit="fill"),i.autoplay=!!this.options.autoplay,i.loop=!!this.options.loop,i.muted=!!this.options.muted,i.playsInline=!!this.options.playsInline;for(var o=0;o<this._url.length;o++){var r=ei("source");r.src=this._url[o],i.appendChild(r)}}}});var Yn=$n.extend({_initImage:function(){var t=this._image=this._url;ci(t,"leaflet-image-layer"),this._zoomAnimated&&ci(t,"leaflet-zoom-animated"),this.options.className&&ci(t,this.options.className),t.onselectstart=a,t.onmousemove=a}});var ts=xn.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(t,i){t&&(t instanceof R||p(t))?(this._latlng=N(t),l(this,i)):(l(this,t),this._source=i),this.options.content&&(this._content=this.options.content)},openOn:function(t){return(t=arguments.length?t:this._source._map).hasLayer(this)||t.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(t){return this._map?this.close():(arguments.length?this._source=t:t=this._source,this._prepareOpen(),this.openOn(t._map)),this},onAdd:function(t){this._zoomAnimated=t._zoomAnimated,this._container||this._initLayout(),t._fadeAnimated&&vi(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),t._fadeAnimated&&vi(this._container,1),this.bringToFront(),this.options.interactive&&(ci(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(t){t._fadeAnimated?(vi(this._container,0),this._removeTimeout=setTimeout(s(hi,void 0,this._container),200)):hi(this._container),this.options.interactive&&(fi(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(t){return this._latlng=N(t),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(t){return this._content=t,this.update(),this},getElement:function(){return this._container},update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},getEvents:function(){var t={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&ri(this._container),this},bringToBack:function(){return this._map&&ai(this._container),this},_prepareOpen:function(t){var i=this._source;if(!i._map)return!1;if(i instanceof Sn){i=null;var n=this._source._layers;for(var s in n)if(n[s]._map){i=n[s];break}if(!i)return!1;this._source=i}if(!t)if(i.getCenter)t=i.getCenter();else if(i.getLatLng)t=i.getLatLng();else{if(!i.getBounds)throw new Error("Unable to get source layer LatLng.");t=i.getBounds().getCenter()}return this.setLatLng(t),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var t=this._contentNode,i="function"==typeof this._content?this._content(this._source||this):this._content;if("string"==typeof i)t.innerHTML=i;else{for(;t.hasChildNodes();)t.removeChild(t.firstChild);t.appendChild(i)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var t=this._map.latLngToLayerPoint(this._latlng),i=O(this.options.offset),n=this._getAnchor();this._zoomAnimated?gi(this._container,t.add(n)):i=i.add(t).add(n);var s=this._containerBottom=-i.y,e=this._containerLeft=-Math.round(this._containerWidth/2)+i.x;this._container.style.bottom=s+"px",this._container.style.left=e+"px"}},_getAnchor:function(){return[0,0]}});Vi.include({_initOverlay:function(t,i,n,s){var e=i;return e instanceof t||(e=new t(s).setContent(i)),n&&e.setLatLng(n),e}}),xn.include({_initOverlay:function(t,i,n,s){var e=n;return e instanceof t?(l(e,s),e._source=this):(e=i&&!s?i:new t(s,this)).setContent(n),e}});var is=ts.extend({options:{pane:"popupPane",offset:[0,7],maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,autoClose:!0,closeOnEscapeKey:!0,className:""},openOn:function(t){return!(t=arguments.length?t:this._source._map).hasLayer(this)&&t._popup&&t._popup.options.autoClose&&t.removeLayer(t._popup),t._popup=this,ts.prototype.openOn.call(this,t)},onAdd:function(t){ts.prototype.onAdd.call(this,t),t.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof In||this._source.on("preclick",Ii))},onRemove:function(t){ts.prototype.onRemove.call(this,t),t.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof In||this._source.off("preclick",Ii))},getEvents:function(){var t=ts.prototype.getEvents.call(this);return(void 0!==this.options.closeOnClick?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(t.preclick=this.close),this.options.keepInView&&(t.moveend=this._adjustPan),t},_initLayout:function(){var t="leaflet-popup",i=this._container=ei("div",t+" "+(this.options.className||"")+" leaflet-zoom-animated"),n=this._wrapper=ei("div",t+"-content-wrapper",i);if(this._contentNode=ei("div",t+"-content",n),Zi(i),Bi(this._contentNode),xi(i,"contextmenu",Ii),this._tipContainer=ei("div",t+"-tip-container",i),this._tip=ei("div",t+"-tip",this._tipContainer),this.options.closeButton){var s=this._closeButton=ei("a",t+"-close-button",i);s.setAttribute("role","button"),s.setAttribute("aria-label","Close popup"),s.href="#close",s.innerHTML='<span aria-hidden="true">&#215;</span>',xi(s,"click",(function(t){Di(t),this.close()}),this)}},_updateLayout:function(){var t=this._contentNode,i=t.style;i.width="",i.whiteSpace="nowrap";var n=t.offsetWidth;n=Math.min(n,this.options.maxWidth),n=Math.max(n,this.options.minWidth),i.width=n+1+"px",i.whiteSpace="",i.height="";var s=this.options.maxHeight,e="leaflet-popup-scrolled";s&&t.offsetHeight>s?(i.height=s+"px",ci(t,e)):fi(t,e),this._containerWidth=this._container.offsetWidth},_animateZoom:function(t){var i=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center),n=this._getAnchor();gi(this._container,i.add(n))},_adjustPan:function(){if(this.options.autoPan)if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning)this._autopanning=!1;else{var t=this._map,i=parseInt(si(this._container,"marginBottom"),10)||0,n=this._container.offsetHeight+i,s=this._containerWidth,e=new A(this._containerLeft,-n-this._containerBottom);e._add(wi(this._container));var h=t.layerPointToContainerPoint(e),o=O(this.options.autoPanPadding),r=O(this.options.autoPanPaddingTopLeft||o),a=O(this.options.autoPanPaddingBottomRight||o),u=t.getSize(),c=0,f=0;h.x+s+a.x>u.x&&(c=h.x+s-u.x+a.x),h.x-c-r.x<0&&(c=h.x-r.x),h.y+n+a.y>u.y&&(f=h.y+n-u.y+a.y),h.y-f-r.y<0&&(f=h.y-r.y),(c||f)&&(this.options.keepInView&&(this._autopanning=!0),t.fire("autopanstart").panBy([c,f]))}},_getAnchor:function(){return O(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}});Vi.mergeOptions({closePopupOnClick:!0}),Vi.include({openPopup:function(t,i,n){return this._initOverlay(is,t,i,n).openOn(this),this},closePopup:function(t){return(t=arguments.length?t:this._popup)&&t.close(),this}}),xn.include({bindPopup:function(t,i){return this._popup=this._initOverlay(is,this._popup,t,i),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(t){return this._popup&&(this instanceof Sn||(this._popup._source=this),this._popup._prepareOpen(t||this._latlng)&&this._popup.openOn(this._map)),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return!!this._popup&&this._popup.isOpen()},setPopupContent:function(t){return this._popup&&this._popup.setContent(t),this},getPopup:function(){return this._popup},_openPopup:function(t){if(this._popup&&this._map){Ri(t);var i=t.layer||t.target;this._popup._source!==i||i instanceof In?(this._popup._source=i,this.openPopup(t.latlng)):this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(t.latlng)}},_movePopup:function(t){this._popup.setLatLng(t.latlng)},_onKeyPress:function(t){13===t.originalEvent.keyCode&&this._openPopup(t)}});var ns=ts.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(t){ts.prototype.onAdd.call(this,t),this.setOpacity(this.options.opacity),t.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(t){ts.prototype.onRemove.call(this,t),t.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var t=ts.prototype.getEvents.call(this);return this.options.permanent||(t.preclick=this.close),t},_initLayout:function(){this._contentNode=this._container=ei("div","leaflet-tooltip "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide")),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+h(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(t){var i,n,s=this._map,e=this._container,h=s.latLngToContainerPoint(s.getCenter()),o=s.layerPointToContainerPoint(t),r=this.options.direction,a=e.offsetWidth,u=e.offsetHeight,c=O(this.options.offset),f=this._getAnchor();"top"===r?(i=a/2,n=u):"bottom"===r?(i=a/2,n=0):"center"===r?(i=a/2,n=u/2):"right"===r?(i=0,n=u/2):"left"===r?(i=a,n=u/2):o.x<h.x?(r="right",i=0,n=u/2):(r="left",i=a+2*(c.x+f.x),n=u/2),t=t.subtract(O(i,n,!0)).add(c).add(f),fi(e,"leaflet-tooltip-right"),fi(e,"leaflet-tooltip-left"),fi(e,"leaflet-tooltip-top"),fi(e,"leaflet-tooltip-bottom"),ci(e,"leaflet-tooltip-"+r),gi(e,t)},_updatePosition:function(){var t=this._map.latLngToLayerPoint(this._latlng);this._setPosition(t)},setOpacity:function(t){this.options.opacity=t,this._container&&vi(this._container,t)},_animateZoom:function(t){var i=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center);this._setPosition(i)},_getAnchor:function(){return O(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}});Vi.include({openTooltip:function(t,i,n){return this._initOverlay(ns,t,i,n).openOn(this),this},closeTooltip:function(t){return t.close(),this}}),xn.include({bindTooltip:function(t,i){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(ns,this._tooltip,t,i),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip:function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions:function(t){if(t||!this._tooltipHandlersAdded){var i=t?"off":"on",n={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?n.add=this._openTooltip:(n.mouseover=this._openTooltip,n.mouseout=this.closeTooltip,n.click=this._openTooltip,this._map?this._addFocusListeners():n.add=this._addFocusListeners),this._tooltip.options.sticky&&(n.mousemove=this._moveTooltip),this[i](n),this._tooltipHandlersAdded=!t}},openTooltip:function(t){return this._tooltip&&(this instanceof Sn||(this._tooltip._source=this),this._tooltip._prepareOpen(t)&&(this._tooltip.openOn(this._map),this.getElement?this._setAriaDescribedByOnLayer(this):this.eachLayer&&this.eachLayer(this._setAriaDescribedByOnLayer,this))),this},closeTooltip:function(){if(this._tooltip)return this._tooltip.close()},toggleTooltip:function(){return this._tooltip&&this._tooltip.toggle(this),this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(t){return this._tooltip&&this._tooltip.setContent(t),this},getTooltip:function(){return this._tooltip},_addFocusListeners:function(){this.getElement?this._addFocusListenersOnLayer(this):this.eachLayer&&this.eachLayer(this._addFocusListenersOnLayer,this)},_addFocusListenersOnLayer:function(t){var i="function"==typeof t.getElement&&t.getElement();i&&(xi(i,"focus",(function(){this._tooltip._source=t,this.openTooltip()}),this),xi(i,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(t){var i="function"==typeof t.getElement&&t.getElement();i&&i.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(t){if(this._tooltip&&this._map)if(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag){this._openOnceFlag=!0;var i=this;this._map.once("moveend",(function(){i._openOnceFlag=!1,i._openTooltip(t)}))}else this._tooltip._source=t.layer||t.target,this.openTooltip(this._tooltip.options.sticky?t.latlng:void 0)},_moveTooltip:function(t){var i,n,s=t.latlng;this._tooltip.options.sticky&&t.originalEvent&&(i=this._map.mouseEventToContainerPoint(t.originalEvent),n=this._map.containerPointToLayerPoint(i),s=this._map.layerPointToLatLng(n)),this._tooltip.setLatLng(s)}});var ss=En.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(t){var i=t&&"DIV"===t.tagName?t:document.createElement("div"),n=this.options;if(n.html instanceof Element?(oi(i),i.appendChild(n.html)):i.innerHTML=!1!==n.html?n.html:"",n.bgPos){var s=O(n.bgPos);i.style.backgroundPosition=-s.x+"px "+-s.y+"px"}return this._setIconStyles(i,"icon"),i},createShadow:function(){return null}});En.Default=An;var es=xn.extend({options:{tileSize:256,opacity:1,updateWhenIdle:It.mobile,updateWhenZooming:!0,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:void 0,maxNativeZoom:void 0,minNativeZoom:void 0,noWrap:!1,pane:"tilePane",className:"",keepBuffer:2},initialize:function(t){l(this,t)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(t){t._addZoomLimit(this)},onRemove:function(t){this._removeAllTiles(),hi(this._container),t._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(ri(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(ai(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(t){return this.options.opacity=t,this._updateOpacity(),this},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var t=this._clampZoom(this._map.getZoom());t!==this._tileZoom&&(this._tileZoom=t,this._updateLevels()),this._update()}return this},getEvents:function(){var t={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=o(this._onMoveEnd,this.options.updateInterval,this)),t.move=this._onMove),this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},createTile:function(){return document.createElement("div")},getTileSize:function(){var t=this.options.tileSize;return t instanceof A?t:new A(t,t)},_updateZIndex:function(){this._container&&null!=this.options.zIndex&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(t){for(var i,n=this.getPane().children,s=-t(-1/0,1/0),e=0,h=n.length;e<h;e++)i=n[e].style.zIndex,n[e]!==this._container&&i&&(s=t(s,+i));isFinite(s)&&(this.options.zIndex=s+t(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!It.ielt9){vi(this._container,this.options.opacity);var t=+new Date,i=!1,n=!1;for(var s in this._tiles){var e=this._tiles[s];if(e.current&&e.loaded){var h=Math.min(1,(t-e.loaded)/200);vi(e.el,h),h<1?i=!0:(e.active?n=!0:this._onOpaqueTile(e),e.active=!0)}}n&&!this._noPrune&&this._pruneTiles(),i&&(T(this._fadeFrame),this._fadeFrame=k(this._updateOpacity,this))}},_onOpaqueTile:a,_initContainer:function(){this._container||(this._container=ei("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var t=this._tileZoom,i=this.options.maxZoom;if(void 0!==t){for(var n in this._levels)n=Number(n),this._levels[n].el.children.length||n===t?(this._levels[n].el.style.zIndex=i-Math.abs(t-n),this._onUpdateLevel(n)):(hi(this._levels[n].el),this._removeTilesAtZoom(n),this._onRemoveLevel(n),delete this._levels[n]);var s=this._levels[t],e=this._map;return s||((s=this._levels[t]={}).el=ei("div","leaflet-tile-container leaflet-zoom-animated",this._container),s.el.style.zIndex=i,s.origin=e.project(e.unproject(e.getPixelOrigin()),t).round(),s.zoom=t,this._setZoomTransform(s,e.getCenter(),e.getZoom()),this._onCreateLevel(s)),this._level=s,s}},_onUpdateLevel:a,_onRemoveLevel:a,_onCreateLevel:a,_pruneTiles:function(){if(this._map){var t,i,n=this._map.getZoom();if(n>this.options.maxZoom||n<this.options.minZoom)this._removeAllTiles();else{for(t in this._tiles)(i=this._tiles[t]).retain=i.current;for(t in this._tiles)if((i=this._tiles[t]).current&&!i.active){var s=i.coords;this._retainParent(s.x,s.y,s.z,s.z-5)||this._retainChildren(s.x,s.y,s.z,s.z+2)}for(t in this._tiles)this._tiles[t].retain||this._removeTile(t)}}},_removeTilesAtZoom:function(t){for(var i in this._tiles)this._tiles[i].coords.z===t&&this._removeTile(i)},_removeAllTiles:function(){for(var t in this._tiles)this._removeTile(t)},_invalidateAll:function(){for(var t in this._levels)hi(this._levels[t].el),this._onRemoveLevel(Number(t)),delete this._levels[t];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(t,i,n,s){var e=Math.floor(t/2),h=Math.floor(i/2),o=n-1,r=new A(+e,+h);r.z=+o;var a=this._tileCoordsToKey(r),u=this._tiles[a];return u&&u.active?(u.retain=!0,!0):(u&&u.loaded&&(u.retain=!0),o>s&&this._retainParent(e,h,o,s))},_retainChildren:function(t,i,n,s){for(var e=2*t;e<2*t+2;e++)for(var h=2*i;h<2*i+2;h++){var o=new A(e,h);o.z=n+1;var r=this._tileCoordsToKey(o),a=this._tiles[r];a&&a.active?a.retain=!0:(a&&a.loaded&&(a.retain=!0),n+1<s&&this._retainChildren(e,h,n+1,s))}},_resetView:function(t){var i=t&&(t.pinch||t.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),i,i)},_animateZoom:function(t){this._setView(t.center,t.zoom,!0,t.noUpdate)},_clampZoom:function(t){var i=this.options;return void 0!==i.minNativeZoom&&t<i.minNativeZoom?i.minNativeZoom:void 0!==i.maxNativeZoom&&i.maxNativeZoom<t?i.maxNativeZoom:t},_setView:function(t,i,n,s){var e=Math.round(i);e=void 0!==this.options.maxZoom&&e>this.options.maxZoom||void 0!==this.options.minZoom&&e<this.options.minZoom?void 0:this._clampZoom(e),s&&!(this.options.updateWhenZooming&&e!==this._tileZoom)||(this._tileZoom=e,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),void 0!==e&&this._update(t),n||this._pruneTiles(),this._noPrune=!!n),this._setZoomTransforms(t,i)},_setZoomTransforms:function(t,i){for(var n in this._levels)this._setZoomTransform(this._levels[n],t,i)},_setZoomTransform:function(t,i,n){var s=this._map.getZoomScale(n,t.zoom),e=t.origin.multiplyBy(s).subtract(this._map._getNewPixelOrigin(i,n)).round();It.any3d?pi(t.el,e,s):gi(t.el,e)},_resetGrid:function(){var t=this._map,i=t.options.crs,n=this._tileSize=this.getTileSize(),s=this._tileZoom,e=this._map.getPixelWorldBounds(this._tileZoom);e&&(this._globalTileRange=this._pxBoundsToTileRange(e)),this._wrapX=i.wrapLng&&!this.options.noWrap&&[Math.floor(t.project([0,i.wrapLng[0]],s).x/n.x),Math.ceil(t.project([0,i.wrapLng[1]],s).x/n.y)],this._wrapY=i.wrapLat&&!this.options.noWrap&&[Math.floor(t.project([i.wrapLat[0],0],s).y/n.x),Math.ceil(t.project([i.wrapLat[1],0],s).y/n.y)]},_onMoveEnd:function(){this._map&&!this._map._animatingZoom&&this._update()},_getTiledPixelBounds:function(t){var i=this._map,n=i._animatingZoom?Math.max(i._animateToZoom,i.getZoom()):i.getZoom(),s=i.getZoomScale(n,this._tileZoom),e=i.project(t,this._tileZoom).floor(),h=i.getSize().divideBy(2*s);return new I(e.subtract(h),e.add(h))},_update:function(t){var i=this._map;if(i){var n=this._clampZoom(i.getZoom());if(void 0===t&&(t=i.getCenter()),void 0!==this._tileZoom){var s=this._getTiledPixelBounds(t),e=this._pxBoundsToTileRange(s),h=e.getCenter(),o=[],r=this.options.keepBuffer,a=new I(e.getBottomLeft().subtract([r,-r]),e.getTopRight().add([r,-r]));if(!(isFinite(e.min.x)&&isFinite(e.min.y)&&isFinite(e.max.x)&&isFinite(e.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var u in this._tiles){var c=this._tiles[u].coords;c.z===this._tileZoom&&a.contains(new A(c.x,c.y))||(this._tiles[u].current=!1)}if(Math.abs(n-this._tileZoom)>1)this._setView(t,n);else{for(var f=e.min.y;f<=e.max.y;f++)for(var l=e.min.x;l<=e.max.x;l++){var d=new A(l,f);if(d.z=this._tileZoom,this._isValidTile(d)){var v=this._tiles[this._tileCoordsToKey(d)];v?v.current=!0:o.push(d)}}if(o.sort((function(t,i){return t.distanceTo(h)-i.distanceTo(h)})),0!==o.length){this._loading||(this._loading=!0,this.fire("loading"));var m=document.createDocumentFragment();for(l=0;l<o.length;l++)this._addTile(o[l],m);this._level.el.appendChild(m)}}}}},_isValidTile:function(t){var i=this._map.options.crs;if(!i.infinite){var n=this._globalTileRange;if(!i.wrapLng&&(t.x<n.min.x||t.x>n.max.x)||!i.wrapLat&&(t.y<n.min.y||t.y>n.max.y))return!1}if(!this.options.bounds)return!0;var s=this._tileCoordsToBounds(t);return D(this.options.bounds).overlaps(s)},_keyToBounds:function(t){return this._tileCoordsToBounds(this._keyToTileCoords(t))},_tileCoordsToNwSe:function(t){var i=this._map,n=this.getTileSize(),s=t.scaleBy(n),e=s.add(n);return[i.unproject(s,t.z),i.unproject(e,t.z)]},_tileCoordsToBounds:function(t){var i=this._tileCoordsToNwSe(t),n=new Z(i[0],i[1]);return this.options.noWrap||(n=this._map.wrapLatLngBounds(n)),n},_tileCoordsToKey:function(t){return t.x+":"+t.y+":"+t.z},_keyToTileCoords:function(t){var i=t.split(":"),n=new A(+i[0],+i[1]);return n.z=+i[2],n},_removeTile:function(t){var i=this._tiles[t];i&&(hi(i.el),delete this._tiles[t],this.fire("tileunload",{tile:i.el,coords:this._keyToTileCoords(t)}))},_initTile:function(t){ci(t,"leaflet-tile");var i=this.getTileSize();t.style.width=i.x+"px",t.style.height=i.y+"px",t.onselectstart=a,t.onmousemove=a,It.ielt9&&this.options.opacity<1&&vi(t,this.options.opacity)},_addTile:function(t,i){var n=this._getTilePos(t),e=this._tileCoordsToKey(t),h=this.createTile(this._wrapCoords(t),s(this._tileReady,this,t));this._initTile(h),this.createTile.length<2&&k(s(this._tileReady,this,t,null,h)),gi(h,n),this._tiles[e]={el:h,coords:t,current:!0},i.appendChild(h),this.fire("tileloadstart",{tile:h,coords:t})},_tileReady:function(t,i,n){i&&this.fire("tileerror",{error:i,tile:n,coords:t});var e=this._tileCoordsToKey(t);(n=this._tiles[e])&&(n.loaded=+new Date,this._map._fadeAnimated?(vi(n.el,0),T(this._fadeFrame),this._fadeFrame=k(this._updateOpacity,this)):(n.active=!0,this._pruneTiles()),i||(ci(n.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:n.el,coords:t})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),It.ielt9||!this._map._fadeAnimated?k(this._pruneTiles,this):setTimeout(s(this._pruneTiles,this),250)))},_getTilePos:function(t){return t.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(t){var i=new A(this._wrapX?r(t.x,this._wrapX):t.x,this._wrapY?r(t.y,this._wrapY):t.y);return i.z=t.z,i},_pxBoundsToTileRange:function(t){var i=this.getTileSize();return new I(t.min.unscaleBy(i).floor(),t.max.unscaleBy(i).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var t in this._tiles)if(!this._tiles[t].loaded)return!1;return!0}});var hs=es.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(t,i){this._url=t,(i=l(this,i)).detectRetina&&It.retina&&i.maxZoom>0?(i.tileSize=Math.floor(i.tileSize/2),i.zoomReverse?(i.zoomOffset--,i.minZoom=Math.min(i.maxZoom,i.minZoom+1)):(i.zoomOffset++,i.maxZoom=Math.max(i.minZoom,i.maxZoom-1)),i.minZoom=Math.max(0,i.minZoom)):i.zoomReverse?i.minZoom=Math.min(i.maxZoom,i.minZoom):i.maxZoom=Math.max(i.minZoom,i.maxZoom),"string"==typeof i.subdomains&&(i.subdomains=i.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(t,i){return this._url===t&&void 0===i&&(i=!0),this._url=t,i||this.redraw(),this},createTile:function(t,i){var n=document.createElement("img");return xi(n,"load",s(this._tileOnLoad,this,i,n)),xi(n,"error",s(this._tileOnError,this,i,n)),(this.options.crossOrigin||""===this.options.crossOrigin)&&(n.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),"string"==typeof this.options.referrerPolicy&&(n.referrerPolicy=this.options.referrerPolicy),n.alt="",n.src=this.getTileUrl(t),n},getTileUrl:function(t){var n={r:It.retina?"@2x":"",s:this._getSubdomain(t),x:t.x,y:t.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var s=this._globalTileRange.max.y-t.y;this.options.tms&&(n.y=s),n["-y"]=s}return m(this._url,i(n,this.options))},_tileOnLoad:function(t,i){It.ielt9?setTimeout(s(t,this,null,i),0):t(null,i)},_tileOnError:function(t,i,n){var s=this.options.errorTileUrl;s&&i.getAttribute("src")!==s&&(i.src=s),t(n,i)},_onTileRemove:function(t){t.tile.onload=null},_getZoomForUrl:function(){var t=this._tileZoom;return this.options.zoomReverse&&(t=this.options.maxZoom-t),t+this.options.zoomOffset},_getSubdomain:function(t){var i=Math.abs(t.x+t.y)%this.options.subdomains.length;return this.options.subdomains[i]},_abortLoading:function(){var t,i;for(t in this._tiles)if(this._tiles[t].coords.z!==this._tileZoom&&((i=this._tiles[t].el).onload=a,i.onerror=a,!i.complete)){i.src=w;var n=this._tiles[t].coords;hi(i),delete this._tiles[t],this.fire("tileabort",{tile:i,coords:n})}},_removeTile:function(t){var i=this._tiles[t];if(i)return i.el.setAttribute("src",w),es.prototype._removeTile.call(this,t)},_tileReady:function(t,i,n){if(this._map&&(!n||n.getAttribute("src")!==w))return es.prototype._tileReady.call(this,t,i,n)}});function os(t,i){return new hs(t,i)}var rs=hs.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(t,n){this._url=t;var s=i({},this.defaultWmsParams);for(var e in n)e in this.options||(s[e]=n[e]);var h=(n=l(this,n)).detectRetina&&It.retina?2:1,o=this.getTileSize();s.width=o.x*h,s.height=o.y*h,this.wmsParams=s},onAdd:function(t){this._crs=this.options.crs||t.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version),this.wmsParams[this._wmsVersion>=1.3?"crs":"srs"]=this._crs.code,hs.prototype.onAdd.call(this,t)},getTileUrl:function(t){var i=this._tileCoordsToNwSe(t),n=this._crs,s=B(n.project(i[0]),n.project(i[1])),e=s.min,h=s.max,o=(this._wmsVersion>=1.3&&this._crs===Tn?[e.y,e.x,h.y,h.x]:[e.x,e.y,h.x,h.y]).join(","),r=hs.prototype.getTileUrl.call(this,t);return r+d(this.wmsParams,r,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+o},setParams:function(t,n){return i(this.wmsParams,t),n||this.redraw(),this}});hs.WMS=rs,os.wms=function(t,i){return new rs(t,i)};var as=xn.extend({options:{padding:.1},initialize:function(t){l(this,t),h(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),ci(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var t={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(t.zoomanim=this._onAnimZoom),t},_onAnimZoom:function(t){this._updateTransform(t.center,t.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(t,i){var n=this._map.getZoomScale(i,this._zoom),s=this._map.getSize().multiplyBy(.5+this.options.padding),e=this._map.project(this._center,i),h=s.multiplyBy(-n).add(e).subtract(this._map._getNewPixelOrigin(t,i));It.any3d?pi(this._container,h,n):gi(this._container,h)},_reset:function(){for(var t in this._update(),this._updateTransform(this._center,this._zoom),this._layers)this._layers[t]._reset()},_onZoomEnd:function(){for(var t in this._layers)this._layers[t]._project()},_updatePaths:function(){for(var t in this._layers)this._layers[t]._update()},_update:function(){var t=this.options.padding,i=this._map.getSize(),n=this._map.containerPointToLayerPoint(i.multiplyBy(-t)).round();this._bounds=new I(n,n.add(i.multiplyBy(1+2*t)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),us=as.extend({options:{tolerance:0},getEvents:function(){var t=as.prototype.getEvents.call(this);return t.viewprereset=this._onViewPreReset,t},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){as.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var t=this._container=document.createElement("canvas");xi(t,"mousemove",this._onMouseMove,this),xi(t,"click dblclick mousedown mouseup contextmenu",this._onClick,this),xi(t,"mouseout",this._handleMouseOut,this),t._leaflet_disable_events=!0,this._ctx=t.getContext("2d")},_destroyContainer:function(){T(this._redrawRequest),delete this._ctx,hi(this._container),Si(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){for(var t in this._redrawBounds=null,this._layers)this._layers[t]._update();this._redraw()}},_update:function(){if(!this._map._animatingZoom||!this._bounds){as.prototype._update.call(this);var t=this._bounds,i=this._container,n=t.getSize(),s=It.retina?2:1;gi(i,t.min),i.width=s*n.x,i.height=s*n.y,i.style.width=n.x+"px",i.style.height=n.y+"px",It.retina&&this._ctx.scale(2,2),this._ctx.translate(-t.min.x,-t.min.y),this.fire("update")}},_reset:function(){as.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(t){this._updateDashArray(t),this._layers[h(t)]=t;var i=t._order={layer:t,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=i),this._drawLast=i,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(t){this._requestRedraw(t)},_removePath:function(t){var i=t._order,n=i.next,s=i.prev;n?n.prev=s:this._drawLast=s,s?s.next=n:this._drawFirst=n,delete t._order,delete this._layers[h(t)],this._requestRedraw(t)},_updatePath:function(t){this._extendRedrawBounds(t),t._project(),t._update(),this._requestRedraw(t)},_updateStyle:function(t){this._updateDashArray(t),this._requestRedraw(t)},_updateDashArray:function(t){if("string"==typeof t.options.dashArray){var i,n,s=t.options.dashArray.split(/[, ]+/),e=[];for(n=0;n<s.length;n++){if(i=Number(s[n]),isNaN(i))return;e.push(i)}t.options._dashArray=e}else t.options._dashArray=t.options.dashArray},_requestRedraw:function(t){this._map&&(this._extendRedrawBounds(t),this._redrawRequest=this._redrawRequest||k(this._redraw,this))},_extendRedrawBounds:function(t){if(t._pxBounds){var i=(t.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new I,this._redrawBounds.extend(t._pxBounds.min.subtract([i,i])),this._redrawBounds.extend(t._pxBounds.max.add([i,i]))}},_redraw:function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear:function(){var t=this._redrawBounds;if(t){var i=t.getSize();this._ctx.clearRect(t.min.x,t.min.y,i.x,i.y)}else this._ctx.save(),this._ctx.setTransform(1,0,0,1,0,0),this._ctx.clearRect(0,0,this._container.width,this._container.height),this._ctx.restore()},_draw:function(){var t,i=this._redrawBounds;if(this._ctx.save(),i){var n=i.getSize();this._ctx.beginPath(),this._ctx.rect(i.min.x,i.min.y,n.x,n.y),this._ctx.clip()}this._drawing=!0;for(var s=this._drawFirst;s;s=s.next)t=s.layer,(!i||t._pxBounds&&t._pxBounds.intersects(i))&&t._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(t,i){if(this._drawing){var n,s,e,h,o=t._parts,r=o.length,a=this._ctx;if(r){for(a.beginPath(),n=0;n<r;n++){for(s=0,e=o[n].length;s<e;s++)a[s?"lineTo":"moveTo"]((h=o[n][s]).x,h.y);i&&a.closePath()}this._fillStroke(a,t)}}},_updateCircle:function(t){if(this._drawing&&!t._empty()){var i=t._point,n=this._ctx,s=Math.max(Math.round(t._radius),1),e=(Math.max(Math.round(t._radiusY),1)||s)/s;1!==e&&(n.save(),n.scale(1,e)),n.beginPath(),n.arc(i.x,i.y/e,s,0,2*Math.PI,!1),1!==e&&n.restore(),this._fillStroke(n,t)}},_fillStroke:function(t,i){var n=i.options;n.fill&&(t.globalAlpha=n.fillOpacity,t.fillStyle=n.fillColor||n.color,t.fill(n.fillRule||"evenodd")),n.stroke&&0!==n.weight&&(t.setLineDash&&t.setLineDash(i.options&&i.options._dashArray||[]),t.globalAlpha=n.opacity,t.lineWidth=n.weight,t.strokeStyle=n.color,t.lineCap=n.lineCap,t.lineJoin=n.lineJoin,t.stroke())},_onClick:function(t){for(var i,n,s=this._map.mouseEventToLayerPoint(t),e=this._drawFirst;e;e=e.next)(i=e.layer).options.interactive&&i._containsPoint(s)&&("click"!==t.type&&"preclick"!==t.type||!this._map._draggableMoved(i))&&(n=i);this._fireEvent(!!n&&[n],t)},_onMouseMove:function(t){if(this._map&&!this._map.dragging.moving()&&!this._map._animatingZoom){var i=this._map.mouseEventToLayerPoint(t);this._handleMouseHover(t,i)}},_handleMouseOut:function(t){var i=this._hoveredLayer;i&&(fi(this._container,"leaflet-interactive"),this._fireEvent([i],t,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(t,i){if(!this._mouseHoverThrottled){for(var n,e,h=this._drawFirst;h;h=h.next)(n=h.layer).options.interactive&&n._containsPoint(i)&&(e=n);e!==this._hoveredLayer&&(this._handleMouseOut(t),e&&(ci(this._container,"leaflet-interactive"),this._fireEvent([e],t,"mouseover"),this._hoveredLayer=e)),this._fireEvent(!!this._hoveredLayer&&[this._hoveredLayer],t),this._mouseHoverThrottled=!0,setTimeout(s((function(){this._mouseHoverThrottled=!1}),this),32)}},_fireEvent:function(t,i,n){this._map._fireDOMEvent(i,n||i.type,t)},_bringToFront:function(t){var i=t._order;if(i){var n=i.next,s=i.prev;n&&(n.prev=s,s?s.next=n:n&&(this._drawFirst=n),i.prev=this._drawLast,this._drawLast.next=i,i.next=null,this._drawLast=i,this._requestRedraw(t))}},_bringToBack:function(t){var i=t._order;if(i){var n=i.next,s=i.prev;s&&(s.next=n,n?n.prev=s:s&&(this._drawLast=s),i.prev=null,i.next=this._drawFirst,this._drawFirst.prev=i,this._drawFirst=i,this._requestRedraw(t))}}});function cs(t){return It.canvas?new us(t):null}var fs=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(t){return document.createElement("<lvml:"+t+' class="lvml">')}}catch(t){}return function(t){return document.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),ls={_initContainer:function(){this._container=ei("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(as.prototype._update.call(this),this.fire("update"))},_initPath:function(t){var i=t._container=fs("shape");ci(i,"leaflet-vml-shape "+(this.options.className||"")),i.coordsize="1 1",t._path=fs("path"),i.appendChild(t._path),this._updateStyle(t),this._layers[h(t)]=t},_addPath:function(t){var i=t._container;this._container.appendChild(i),t.options.interactive&&t.addInteractiveTarget(i)},_removePath:function(t){var i=t._container;hi(i),t.removeInteractiveTarget(i),delete this._layers[h(t)]},_updateStyle:function(t){var i=t._stroke,n=t._fill,s=t.options,e=t._container;e.stroked=!!s.stroke,e.filled=!!s.fill,s.stroke?(i||(i=t._stroke=fs("stroke")),e.appendChild(i),i.weight=s.weight+"px",i.color=s.color,i.opacity=s.opacity,i.dashStyle=s.dashArray?p(s.dashArray)?s.dashArray.join(" "):s.dashArray.replace(/( *, *)/g," "):"",i.endcap=s.lineCap.replace("butt","flat"),i.joinstyle=s.lineJoin):i&&(e.removeChild(i),t._stroke=null),s.fill?(n||(n=t._fill=fs("fill")),e.appendChild(n),n.color=s.fillColor||s.color,n.opacity=s.fillOpacity):n&&(e.removeChild(n),t._fill=null)},_updateCircle:function(t){var i=t._point.round(),n=Math.round(t._radius),s=Math.round(t._radiusY||n);this._setPath(t,t._empty()?"M0 0":"AL "+i.x+","+i.y+" "+n+","+s+" 0,23592600")},_setPath:function(t,i){t._path.v=i},_bringToFront:function(t){ri(t._container)},_bringToBack:function(t){ai(t._container)}},ds=It.vml?fs:K,vs=as.extend({_initContainer:function(){this._container=ds("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=ds("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){hi(this._container),Si(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!this._map._animatingZoom||!this._bounds){as.prototype._update.call(this);var t=this._bounds,i=t.getSize(),n=this._container;this._svgSize&&this._svgSize.equals(i)||(this._svgSize=i,n.setAttribute("width",i.x),n.setAttribute("height",i.y)),gi(n,t.min),n.setAttribute("viewBox",[t.min.x,t.min.y,i.x,i.y].join(" ")),this.fire("update")}},_initPath:function(t){var i=t._path=ds("path");t.options.className&&ci(i,t.options.className),t.options.interactive&&ci(i,"leaflet-interactive"),this._updateStyle(t),this._layers[h(t)]=t},_addPath:function(t){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(t._path),t.addInteractiveTarget(t._path)},_removePath:function(t){hi(t._path),t.removeInteractiveTarget(t._path),delete this._layers[h(t)]},_updatePath:function(t){t._project(),t._update()},_updateStyle:function(t){var i=t._path,n=t.options;i&&(n.stroke?(i.setAttribute("stroke",n.color),i.setAttribute("stroke-opacity",n.opacity),i.setAttribute("stroke-width",n.weight),i.setAttribute("stroke-linecap",n.lineCap),i.setAttribute("stroke-linejoin",n.lineJoin),n.dashArray?i.setAttribute("stroke-dasharray",n.dashArray):i.removeAttribute("stroke-dasharray"),n.dashOffset?i.setAttribute("stroke-dashoffset",n.dashOffset):i.removeAttribute("stroke-dashoffset")):i.setAttribute("stroke","none"),n.fill?(i.setAttribute("fill",n.fillColor||n.color),i.setAttribute("fill-opacity",n.fillOpacity),i.setAttribute("fill-rule",n.fillRule||"evenodd")):i.setAttribute("fill","none"))},_updatePoly:function(t,i){this._setPath(t,X(t._parts,i))},_updateCircle:function(t){var i=t._point,n=Math.max(Math.round(t._radius),1),s="a"+n+","+(Math.max(Math.round(t._radiusY),1)||n)+" 0 1,0 ",e=t._empty()?"M0 0":"M"+(i.x-n)+","+i.y+s+2*n+",0 "+s+2*-n+",0 ";this._setPath(t,e)},_setPath:function(t,i){t._path.setAttribute("d",i)},_bringToFront:function(t){ri(t._path)},_bringToBack:function(t){ai(t._path)}});function ms(t){return It.svg||It.vml?new vs(t):null}It.vml&&vs.include(ls),Vi.include({getRenderer:function(t){var i=t.options.renderer||this._getPaneRenderer(t.options.pane)||this.options.renderer||this._renderer;return i||(i=this._renderer=this._createRenderer()),this.hasLayer(i)||this.addLayer(i),i},_getPaneRenderer:function(t){if("overlayPane"===t||void 0===t)return!1;var i=this._paneRenderers[t];return void 0===i&&(i=this._createRenderer({pane:t}),this._paneRenderers[t]=i),i},_createRenderer:function(t){return this.options.preferCanvas&&cs(t)||ms(t)}});var ps=Rn.extend({initialize:function(t,i){Rn.prototype.initialize.call(this,this._boundsToLatLngs(t),i)},setBounds:function(t){return this.setLatLngs(this._boundsToLatLngs(t))},_boundsToLatLngs:function(t){return[(t=D(t)).getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}});vs.create=ds,vs.pointsToPath=X,Nn.geometryToLayer=jn,Nn.coordsToLatLng=Hn,Nn.coordsToLatLngs=Un,Nn.latLngToCoords=Wn,Nn.latLngsToCoords=Gn,Nn.getFeature=Vn,Nn.asFeature=qn,Vi.mergeOptions({boxZoom:!0});var gs=Yi.extend({initialize:function(t){this._map=t,this._container=t._container,this._pane=t._panes.overlayPane,this._resetStateTimeout=0,t.on("unload",this._destroy,this)},addHooks:function(){xi(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){Si(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){hi(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){0!==this._resetStateTimeout&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(t){if(!t.shiftKey||1!==t.which&&1!==t.button)return!1;this._clearDeferredResetState(),this._resetState(),Jt(),yi(),this._startPoint=this._map.mouseEventToContainerPoint(t),xi(document,{contextmenu:Ri,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(t){this._moved||(this._moved=!0,this._box=ei("div","leaflet-zoom-box",this._container),ci(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(t);var i=new I(this._point,this._startPoint),n=i.getSize();gi(this._box,i.min),this._box.style.width=n.x+"px",this._box.style.height=n.y+"px"},_finish:function(){this._moved&&(hi(this._box),fi(this._container,"leaflet-crosshair")),Kt(),Mi(),Si(document,{contextmenu:Ri,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(t){if((1===t.which||1===t.button)&&(this._finish(),this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(s(this._resetState,this),0);var i=new Z(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(i).fire("boxzoomend",{boxZoomBounds:i})}},_onKeyDown:function(t){27===t.keyCode&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});Vi.addInitHook("addHandler","boxZoom",gs),Vi.mergeOptions({doubleClickZoom:!0});var ws=Yi.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(t){var i=this._map,n=i.getZoom(),s=i.options.zoomDelta,e=t.originalEvent.shiftKey?n-s:n+s;"center"===i.options.doubleClickZoom?i.setZoom(e):i.setZoomAround(t.containerPoint,e)}});Vi.addInitHook("addHandler","doubleClickZoom",ws),Vi.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var _s=Yi.extend({addHooks:function(){if(!this._draggable){var t=this._map;this._draggable=new sn(t._mapPane,t._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),t.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),t.on("zoomend",this._onZoomEnd,this),t.whenReady(this._onZoomEnd,this))}ci(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){fi(this._map._container,"leaflet-grab"),fi(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var t=this._map;if(t._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var i=D(this._map.options.maxBounds);this._offsetLimit=B(this._map.latLngToContainerPoint(i.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(i.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;t.fire("movestart").fire("dragstart"),t.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(t){if(this._map.options.inertia){var i=this._lastTime=+new Date,n=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(n),this._times.push(i),this._prunePositions(i)}this._map.fire("move",t).fire("drag",t)},_prunePositions:function(t){for(;this._positions.length>1&&t-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var t=this._map.getSize().divideBy(2),i=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=i.subtract(t).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(t,i){return t-(t-i)*this._viscosity},_onPreDragLimit:function(){if(this._viscosity&&this._offsetLimit){var t=this._draggable._newPos.subtract(this._draggable._startPos),i=this._offsetLimit;t.x<i.min.x&&(t.x=this._viscousLimit(t.x,i.min.x)),t.y<i.min.y&&(t.y=this._viscousLimit(t.y,i.min.y)),t.x>i.max.x&&(t.x=this._viscousLimit(t.x,i.max.x)),t.y>i.max.y&&(t.y=this._viscousLimit(t.y,i.max.y)),this._draggable._newPos=this._draggable._startPos.add(t)}},_onPreDragWrap:function(){var t=this._worldWidth,i=Math.round(t/2),n=this._initialWorldOffset,s=this._draggable._newPos.x,e=(s-i+n)%t+i-n,h=(s+i+n)%t-i-n,o=Math.abs(e+n)<Math.abs(h+n)?e:h;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=o},_onDragEnd:function(t){var i=this._map,n=i.options,s=!n.inertia||t.noInertia||this._times.length<2;if(i.fire("dragend",t),s)i.fire("moveend");else{this._prunePositions(+new Date);var e=this._lastPos.subtract(this._positions[0]),h=n.easeLinearity,o=e.multiplyBy(h/((this._lastTime-this._times[0])/1e3)),r=o.distanceTo([0,0]),a=Math.min(n.inertiaMaxSpeed,r),u=o.multiplyBy(a/r),c=a/(n.inertiaDeceleration*h),f=u.multiplyBy(-c/2).round();f.x||f.y?(f=i._limitOffset(f,i.options.maxBounds),k((function(){i.panBy(f,{duration:c,easeLinearity:h,noMoveStart:!0,animate:!0})}))):i.fire("moveend")}}});Vi.addInitHook("addHandler","dragging",_s),Vi.mergeOptions({keyboard:!0,keyboardPanDelta:80});var ys=Yi.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(t){this._map=t,this._setPanDelta(t.options.keyboardPanDelta),this._setZoomDelta(t.options.zoomDelta)},addHooks:function(){var t=this._map._container;t.tabIndex<=0&&(t.tabIndex="0"),xi(t,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),Si(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(!this._focused){var t=document.body,i=document.documentElement,n=t.scrollTop||i.scrollTop,s=t.scrollLeft||i.scrollLeft;this._map._container.focus(),window.scrollTo(s,n)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(t){var i,n,s=this._panKeys={},e=this.keyCodes;for(i=0,n=e.left.length;i<n;i++)s[e.left[i]]=[-1*t,0];for(i=0,n=e.right.length;i<n;i++)s[e.right[i]]=[t,0];for(i=0,n=e.down.length;i<n;i++)s[e.down[i]]=[0,t];for(i=0,n=e.up.length;i<n;i++)s[e.up[i]]=[0,-1*t]},_setZoomDelta:function(t){var i,n,s=this._zoomKeys={},e=this.keyCodes;for(i=0,n=e.zoomIn.length;i<n;i++)s[e.zoomIn[i]]=t;for(i=0,n=e.zoomOut.length;i<n;i++)s[e.zoomOut[i]]=-t},_addHooks:function(){xi(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){Si(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(t){if(!(t.altKey||t.ctrlKey||t.metaKey)){var i,n=t.keyCode,s=this._map;if(n in this._panKeys){if(!s._panAnim||!s._panAnim._inProgress)if(i=this._panKeys[n],t.shiftKey&&(i=O(i).multiplyBy(3)),s.options.maxBounds&&(i=s._limitOffset(O(i),s.options.maxBounds)),s.options.worldCopyJump){var e=s.wrapLatLng(s.unproject(s.project(s.getCenter()).add(i)));s.panTo(e)}else s.panBy(i)}else if(n in this._zoomKeys)s.setZoom(s.getZoom()+(t.shiftKey?3:1)*this._zoomKeys[n]);else{if(27!==n||!s._popup||!s._popup.options.closeOnEscapeKey)return;s.closePopup()}Ri(t)}}});Vi.addInitHook("addHandler","keyboard",ys),Vi.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var Ms=Yi.extend({addHooks:function(){xi(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){Si(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(t){var i=Hi(t),n=this._map.options.wheelDebounceTime;this._delta+=i,this._lastMousePos=this._map.mouseEventToContainerPoint(t),this._startTime||(this._startTime=+new Date);var e=Math.max(n-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(s(this._performZoom,this),e),Ri(t)},_performZoom:function(){var t=this._map,i=t.getZoom(),n=this._map.options.zoomSnap||0;t._stop();var s=4*Math.log(2/(1+Math.exp(-Math.abs(this._delta/(4*this._map.options.wheelPxPerZoomLevel)))))/Math.LN2,e=n?Math.ceil(s/n)*n:s,h=t._limitZoom(i+(this._delta>0?e:-e))-i;this._delta=0,this._startTime=null,h&&("center"===t.options.scrollWheelZoom?t.setZoom(i+h):t.setZoomAround(this._lastMousePos,i+h))}});Vi.addInitHook("addHandler","scrollWheelZoom",Ms);Vi.mergeOptions({tapHold:It.touchNative&&It.safari&&It.mobile,tapTolerance:15});var bs=Yi.extend({addHooks:function(){xi(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){Si(this._map._container,"touchstart",this._onDown,this)},_onDown:function(t){if(clearTimeout(this._holdTimeout),1===t.touches.length){var i=t.touches[0];this._startPos=this._newPos=new A(i.clientX,i.clientY),this._holdTimeout=setTimeout(s((function(){this._cancel(),this._isTapValid()&&(xi(document,"touchend",Di),xi(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",i))}),this),600),xi(document,"touchend touchcancel contextmenu",this._cancel,this),xi(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function t(){Si(document,"touchend",Di),Si(document,"touchend touchcancel",t)},_cancel:function(){clearTimeout(this._holdTimeout),Si(document,"touchend touchcancel contextmenu",this._cancel,this),Si(document,"touchmove",this._onMove,this)},_onMove:function(t){var i=t.touches[0];this._newPos=new A(i.clientX,i.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(t,i){var n=new MouseEvent(t,{bubbles:!0,cancelable:!0,view:window,screenX:i.screenX,screenY:i.screenY,clientX:i.clientX,clientY:i.clientY});n._simulated=!0,i.target.dispatchEvent(n)}});Vi.addInitHook("addHandler","tapHold",bs),Vi.mergeOptions({touchZoom:It.touch,bounceAtZoomLimits:!0});var Ps=Yi.extend({addHooks:function(){ci(this._map._container,"leaflet-touch-zoom"),xi(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){fi(this._map._container,"leaflet-touch-zoom"),Si(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(t){var i=this._map;if(t.touches&&2===t.touches.length&&!i._animatingZoom&&!this._zooming){var n=i.mouseEventToContainerPoint(t.touches[0]),s=i.mouseEventToContainerPoint(t.touches[1]);this._centerPoint=i.getSize()._divideBy(2),this._startLatLng=i.containerPointToLatLng(this._centerPoint),"center"!==i.options.touchZoom&&(this._pinchStartLatLng=i.containerPointToLatLng(n.add(s)._divideBy(2))),this._startDist=n.distanceTo(s),this._startZoom=i.getZoom(),this._moved=!1,this._zooming=!0,i._stop(),xi(document,"touchmove",this._onTouchMove,this),xi(document,"touchend touchcancel",this._onTouchEnd,this),Di(t)}},_onTouchMove:function(t){if(t.touches&&2===t.touches.length&&this._zooming){var i=this._map,n=i.mouseEventToContainerPoint(t.touches[0]),e=i.mouseEventToContainerPoint(t.touches[1]),h=n.distanceTo(e)/this._startDist;if(this._zoom=i.getScaleZoom(h,this._startZoom),!i.options.bounceAtZoomLimits&&(this._zoom<i.getMinZoom()&&h<1||this._zoom>i.getMaxZoom()&&h>1)&&(this._zoom=i._limitZoom(this._zoom)),"center"===i.options.touchZoom){if(this._center=this._startLatLng,1===h)return}else{var o=n._add(e)._divideBy(2)._subtract(this._centerPoint);if(1===h&&0===o.x&&0===o.y)return;this._center=i.unproject(i.project(this._pinchStartLatLng,this._zoom).subtract(o),this._zoom)}this._moved||(i._moveStart(!0,!1),this._moved=!0),T(this._animRequest);var r=s(i._move,i,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=k(r,this,!0),Di(t)}},_onTouchEnd:function(){this._moved&&this._zooming?(this._zooming=!1,T(this._animRequest),Si(document,"touchmove",this._onTouchMove,this),Si(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))):this._zooming=!1}});Vi.addInitHook("addHandler","touchZoom",Ps),Vi.BoxZoom=gs,Vi.DoubleClickZoom=ws,Vi.Drag=_s,Vi.Keyboard=ys,Vi.ScrollWheelZoom=Ms,Vi.TapHold=bs,Vi.TouchZoom=Ps,t.Bounds=I,t.Browser=It,t.CRS=F,t.Canvas=us,t.Circle=Zn,t.CircleMarker=Bn,t.Class=z,t.Control=qi,t.DivIcon=ss,t.DivOverlay=ts,t.DomEvent=Wi,t.DomUtil=Li,t.Draggable=sn,t.Evented=E,t.FeatureGroup=Sn,t.GeoJSON=Nn,t.GridLayer=es,t.Handler=Yi,t.Icon=En,t.ImageOverlay=$n,t.LatLng=R,t.LatLngBounds=Z,t.Layer=xn,t.LayerGroup=zn,t.LineUtil=yn,t.Map=Vi,t.Marker=On,t.Mixin=tn,t.Path=In,t.Point=A,t.PolyUtil=an,t.Polygon=Rn,t.Polyline=Dn,t.Popup=is,t.PosAnimation=Gi,t.Projection=Pn,t.Rectangle=ps,t.Renderer=as,t.SVG=vs,t.SVGOverlay=Yn,t.TileLayer=hs,t.Tooltip=ns,t.Transformation=G,t.Util=x,t.VideoOverlay=Qn,t.bind=s,t.bounds=B,t.canvas=cs,t.circle=function(t,i,n){return new Zn(t,i,n)},t.circleMarker=function(t,i){return new Bn(t,i)},t.control=Ji,t.divIcon=function(t){return new ss(t)},t.extend=i,t.featureGroup=function(t,i){return new Sn(t,i)},t.geoJSON=Kn,t.geoJson=Xn,t.gridLayer=function(t){return new es(t)},t.icon=function(t){return new En(t)},t.imageOverlay=function(t,i,n){return new $n(t,i,n)},t.latLng=N,t.latLngBounds=D,t.layerGroup=function(t,i){return new zn(t,i)},t.map=function(t,i){return new Vi(t,i)},t.marker=function(t,i){return new On(t,i)},t.point=O,t.polygon=function(t,i){return new Rn(t,i)},t.polyline=function(t,i){return new Dn(t,i)},t.popup=function(t,i){return new is(t,i)},t.rectangle=function(t,i){return new ps(t,i)},t.setOptions=l,t.stamp=h,t.svg=ms,t.svgOverlay=function(t,i,n){return new Yn(t,i,n)},t.tileLayer=os,t.tooltip=function(t,i){return new ns(t,i)},t.transformation=V,t.version="1.9.4",t.videoOverlay=function(t,i,n){return new Qn(t,i,n)};var ks=window.L;t.noConflict=function(){return window.L=ks,this},window.L=t}(s.exports)),s.exports),h=i({__proto__:null,default:t(e)},[e]);
1
+ import{g as t}from"./p-Dozlw09a.js";function i(t,i){return i.forEach((function(i){i&&"string"!=typeof i&&!Array.isArray(i)&&Object.keys(i).forEach((function(n){if("default"!==n&&!(n in t)){var s=Object.getOwnPropertyDescriptor(i,n);Object.defineProperty(t,n,s.get?s:{enumerable:!0,get:function(){return i[n]}})}}))})),Object.freeze(t)}var n,s={exports:{}},e=(n||(n=1,function(t){function i(t){var i,n,s,e;for(n=1,s=arguments.length;n<s;n++)for(i in e=arguments[n])t[i]=e[i];return t}var n=Object.create||function(){function t(){}return function(i){return t.prototype=i,new t}}();function s(t,i){var n=Array.prototype.slice;if(t.bind)return t.bind.apply(t,n.call(arguments,1));var s=n.call(arguments,2);return function(){return t.apply(i,s.length?s.concat(n.call(arguments)):arguments)}}var e=0;function h(t){return"_leaflet_id"in t||(t._leaflet_id=++e),t._leaflet_id}function o(t,i,n){var s,e,h,o;return o=function(){s=!1,e&&(h.apply(n,e),e=!1)},h=function(){s?e=arguments:(t.apply(n,arguments),setTimeout(o,i),s=!0)},h}function r(t,i,n){var s=i[1],e=i[0],h=s-e;return t===s&&n?t:((t-e)%h+h)%h+e}function a(){return!1}function u(t,i){if(!1===i)return t;var n=Math.pow(10,void 0===i?6:i);return Math.round(t*n)/n}function c(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function f(t){return c(t).split(/\s+/)}function l(t,i){for(var s in Object.prototype.hasOwnProperty.call(t,"options")||(t.options=t.options?n(t.options):{}),i)t.options[s]=i[s];return t.options}function d(t,i,n){var s=[];for(var e in t)s.push(encodeURIComponent(n?e.toUpperCase():e)+"="+encodeURIComponent(t[e]));return(i&&-1!==i.indexOf("?")?"&":"?")+s.join("&")}var v=/\{ *([\w_ -]+) *\}/g;function m(t,i){return t.replace(v,(function(t,n){var s=i[n];if(void 0===s)throw new Error("No value provided for variable "+t);return"function"==typeof s&&(s=s(i)),s}))}var p=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function g(t,i){for(var n=0;n<t.length;n++)if(t[n]===i)return n;return-1}var w="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function _(t){return window["webkit"+t]||window["moz"+t]||window["ms"+t]}var y=0;function M(t){var i=+new Date,n=Math.max(0,16-(i-y));return y=i+n,window.setTimeout(t,n)}var b=window.requestAnimationFrame||_("RequestAnimationFrame")||M,P=window.cancelAnimationFrame||_("CancelAnimationFrame")||_("CancelRequestAnimationFrame")||function(t){window.clearTimeout(t)};function k(t,i,n){if(!n||b!==M)return b.call(window,s(t,i));t.call(i)}function T(t){t&&P.call(window,t)}var z={__proto__:null,extend:i,create:n,bind:s,get lastId(){return e},stamp:h,throttle:o,wrapNum:r,falseFn:a,formatNum:u,trim:c,splitWords:f,setOptions:l,getParamString:d,template:m,isArray:p,indexOf:g,emptyImageUrl:w,requestFn:b,cancelFn:P,requestAnimFrame:k,cancelAnimFrame:T};function x(){}x.extend=function(t){var s=function(){l(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},e=s.__super__=this.prototype,h=n(e);for(var o in h.constructor=s,s.prototype=h,this)Object.prototype.hasOwnProperty.call(this,o)&&"prototype"!==o&&"__super__"!==o&&(s[o]=this[o]);return t.statics&&i(s,t.statics),t.includes&&(function(t){if("undefined"!=typeof L&&L&&L.Mixin){t=p(t)?t:[t];for(var i=0;i<t.length;i++)t[i]===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)}}(t.includes),i.apply(null,[h].concat(t.includes))),i(h,t),delete h.statics,delete h.includes,h.options&&(h.options=e.options?n(e.options):{},i(h.options,t.options)),h._initHooks=[],h.callInitHooks=function(){if(!this._initHooksCalled){e.callInitHooks&&e.callInitHooks.call(this),this._initHooksCalled=!0;for(var t=0,i=h._initHooks.length;t<i;t++)h._initHooks[t].call(this)}},s},x.include=function(t){var n=this.prototype.options;return i(this.prototype,t),t.options&&(this.prototype.options=n,this.mergeOptions(t.options)),this},x.mergeOptions=function(t){return i(this.prototype.options,t),this},x.addInitHook=function(t){var i=Array.prototype.slice.call(arguments,1),n="function"==typeof t?t:function(){this[t].apply(this,i)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(n),this};var S={on:function(t,i,n){if("object"==typeof t)for(var s in t)this._on(s,t[s],i);else for(var e=0,h=(t=f(t)).length;e<h;e++)this._on(t[e],i,n);return this},off:function(t,i,n){if(arguments.length)if("object"==typeof t)for(var s in t)this._off(s,t[s],i);else{t=f(t);for(var e=1===arguments.length,h=0,o=t.length;h<o;h++)e?this._off(t[h]):this._off(t[h],i,n)}else delete this._events;return this},_on:function(t,i,n,s){if("function"==typeof i){if(!1===this._listens(t,i,n)){n===this&&(n=void 0);var e={fn:i,ctx:n};s&&(e.once=!0),this._events=this._events||{},this._events[t]=this._events[t]||[],this._events[t].push(e)}}else console.warn("wrong listener type: "+typeof i)},_off:function(t,i,n){var s,e,h;if(this._events&&(s=this._events[t]))if(1!==arguments.length)if("function"==typeof i){var o=this._listens(t,i,n);!1!==o&&(this._firingCount&&(s[o].fn=a,this._events[t]=s=s.slice()),s.splice(o,1))}else console.warn("wrong listener type: "+typeof i);else{if(this._firingCount)for(e=0,h=s.length;e<h;e++)s[e].fn=a;delete this._events[t]}},fire:function(t,n,s){if(!this.listens(t,s))return this;var e=i({},n,{type:t,target:this,sourceTarget:n&&n.sourceTarget||this});if(this._events){var h=this._events[t];if(h){this._firingCount=this._firingCount+1||1;for(var o=0,r=h.length;o<r;o++){var a=h[o],u=a.fn;a.once&&this.off(t,u,a.ctx),u.call(a.ctx||this,e)}this._firingCount--}}return s&&this._propagateEvent(e),this},listens:function(t,i,n,s){"string"!=typeof t&&console.warn('"string" type argument expected');var e=i;"function"!=typeof i&&(s=!!i,e=void 0,n=void 0);var h=this._events&&this._events[t];if(h&&h.length&&!1!==this._listens(t,e,n))return!0;if(s)for(var o in this._eventParents)if(this._eventParents[o].listens(t,i,n,s))return!0;return!1},_listens:function(t,i,n){if(!this._events)return!1;var s=this._events[t]||[];if(!i)return!!s.length;n===this&&(n=void 0);for(var e=0,h=s.length;e<h;e++)if(s[e].fn===i&&s[e].ctx===n)return e;return!1},once:function(t,i,n){if("object"==typeof t)for(var s in t)this._on(s,t[s],i,!0);else for(var e=0,h=(t=f(t)).length;e<h;e++)this._on(t[e],i,n,!0);return this},addEventParent:function(t){return this._eventParents=this._eventParents||{},this._eventParents[h(t)]=t,this},removeEventParent:function(t){return this._eventParents&&delete this._eventParents[h(t)],this},_propagateEvent:function(t){for(var n in this._eventParents)this._eventParents[n].fire(t.type,i({layer:t.target,propagatedFrom:t.target},t),!0)}};S.addEventListener=S.on,S.removeEventListener=S.clearAllEventListeners=S.off,S.addOneTimeEventListener=S.once,S.fireEvent=S.fire,S.hasEventListeners=S.listens;var E=x.extend(S);function A(t,i,n){this.x=n?Math.round(t):t,this.y=n?Math.round(i):i}var C=Math.trunc||function(t){return t>0?Math.floor(t):Math.ceil(t)};function O(t,i,n){return t instanceof A?t:p(t)?new A(t[0],t[1]):null==t?t:"object"==typeof t&&"x"in t&&"y"in t?new A(t.x,t.y):new A(t,i,n)}function I(t,i){if(t)for(var n=i?[t,i]:t,s=0,e=n.length;s<e;s++)this.extend(n[s])}function B(t,i){return!t||t instanceof I?t:new I(t,i)}function Z(t,i){if(t)for(var n=i?[t,i]:t,s=0,e=n.length;s<e;s++)this.extend(n[s])}function D(t,i){return t instanceof Z?t:new Z(t,i)}function R(t,i,n){if(isNaN(t)||isNaN(i))throw new Error("Invalid LatLng object: ("+t+", "+i+")");this.lat=+t,this.lng=+i,void 0!==n&&(this.alt=+n)}function N(t,i,n){return t instanceof R?t:p(t)&&"object"!=typeof t[0]?3===t.length?new R(t[0],t[1],t[2]):2===t.length?new R(t[0],t[1]):null:null==t?t:"object"==typeof t&&"lat"in t?new R(t.lat,"lng"in t?t.lng:t.lon,t.alt):void 0===i?null:new R(t,i,n)}A.prototype={clone:function(){return new A(this.x,this.y)},add:function(t){return this.clone()._add(O(t))},_add:function(t){return this.x+=t.x,this.y+=t.y,this},subtract:function(t){return this.clone()._subtract(O(t))},_subtract:function(t){return this.x-=t.x,this.y-=t.y,this},divideBy:function(t){return this.clone()._divideBy(t)},_divideBy:function(t){return this.x/=t,this.y/=t,this},multiplyBy:function(t){return this.clone()._multiplyBy(t)},_multiplyBy:function(t){return this.x*=t,this.y*=t,this},scaleBy:function(t){return new A(this.x*t.x,this.y*t.y)},unscaleBy:function(t){return new A(this.x/t.x,this.y/t.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=C(this.x),this.y=C(this.y),this},distanceTo:function(t){var i=(t=O(t)).x-this.x,n=t.y-this.y;return Math.sqrt(i*i+n*n)},equals:function(t){return(t=O(t)).x===this.x&&t.y===this.y},contains:function(t){return t=O(t),Math.abs(t.x)<=Math.abs(this.x)&&Math.abs(t.y)<=Math.abs(this.y)},toString:function(){return"Point("+u(this.x)+", "+u(this.y)+")"}},I.prototype={extend:function(t){var i,n;if(!t)return this;if(t instanceof A||"number"==typeof t[0]||"x"in t)i=n=O(t);else if(n=(t=B(t)).max,!(i=t.min)||!n)return this;return this.min||this.max?(this.min.x=Math.min(i.x,this.min.x),this.max.x=Math.max(n.x,this.max.x),this.min.y=Math.min(i.y,this.min.y),this.max.y=Math.max(n.y,this.max.y)):(this.min=i.clone(),this.max=n.clone()),this},getCenter:function(t){return O((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,t)},getBottomLeft:function(){return O(this.min.x,this.max.y)},getTopRight:function(){return O(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(t){var i,n;return(t="number"==typeof t[0]||t instanceof A?O(t):B(t))instanceof I?(i=t.min,n=t.max):i=n=t,i.x>=this.min.x&&n.x<=this.max.x&&i.y>=this.min.y&&n.y<=this.max.y},intersects:function(t){t=B(t);var i=this.min,n=this.max,s=t.min,e=t.max;return e.x>=i.x&&s.x<=n.x&&e.y>=i.y&&s.y<=n.y},overlaps:function(t){t=B(t);var i=this.min,n=this.max,s=t.min,e=t.max;return e.x>i.x&&s.x<n.x&&e.y>i.y&&s.y<n.y},isValid:function(){return!(!this.min||!this.max)},pad:function(t){var i=this.min,n=this.max,s=Math.abs(i.x-n.x)*t,e=Math.abs(i.y-n.y)*t;return B(O(i.x-s,i.y-e),O(n.x+s,n.y+e))},equals:function(t){return!!t&&(t=B(t),this.min.equals(t.getTopLeft())&&this.max.equals(t.getBottomRight()))}},Z.prototype={extend:function(t){var i,n,s=this._southWest,e=this._northEast;if(t instanceof R)i=t,n=t;else{if(!(t instanceof Z))return t?this.extend(N(t)||D(t)):this;if(n=t._northEast,!(i=t._southWest)||!n)return this}return s||e?(s.lat=Math.min(i.lat,s.lat),s.lng=Math.min(i.lng,s.lng),e.lat=Math.max(n.lat,e.lat),e.lng=Math.max(n.lng,e.lng)):(this._southWest=new R(i.lat,i.lng),this._northEast=new R(n.lat,n.lng)),this},pad:function(t){var i=this._southWest,n=this._northEast,s=Math.abs(i.lat-n.lat)*t,e=Math.abs(i.lng-n.lng)*t;return new Z(new R(i.lat-s,i.lng-e),new R(n.lat+s,n.lng+e))},getCenter:function(){return new R((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 R(this.getNorth(),this.getWest())},getSouthEast:function(){return new R(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(t){t="number"==typeof t[0]||t instanceof R||"lat"in t?N(t):D(t);var i,n,s=this._southWest,e=this._northEast;return t instanceof Z?(i=t.getSouthWest(),n=t.getNorthEast()):i=n=t,i.lat>=s.lat&&n.lat<=e.lat&&i.lng>=s.lng&&n.lng<=e.lng},intersects:function(t){t=D(t);var i=this._southWest,n=this._northEast,s=t.getSouthWest(),e=t.getNorthEast();return e.lat>=i.lat&&s.lat<=n.lat&&e.lng>=i.lng&&s.lng<=n.lng},overlaps:function(t){t=D(t);var i=this._southWest,n=this._northEast,s=t.getSouthWest(),e=t.getNorthEast();return e.lat>i.lat&&s.lat<n.lat&&e.lng>i.lng&&s.lng<n.lng},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(t,i){return!!t&&(t=D(t),this._southWest.equals(t.getSouthWest(),i)&&this._northEast.equals(t.getNorthEast(),i))},isValid:function(){return!(!this._southWest||!this._northEast)}},R.prototype={equals:function(t,i){return!!t&&(t=N(t),Math.max(Math.abs(this.lat-t.lat),Math.abs(this.lng-t.lng))<=(void 0===i?1e-9:i))},toString:function(t){return"LatLng("+u(this.lat,t)+", "+u(this.lng,t)+")"},distanceTo:function(t){return H.distance(this,N(t))},wrap:function(){return H.wrapLatLng(this)},toBounds:function(t){var i=180*t/40075017,n=i/Math.cos(Math.PI/180*this.lat);return D([this.lat-i,this.lng-n],[this.lat+i,this.lng+n])},clone:function(){return new R(this.lat,this.lng,this.alt)}};var j,F={latLngToPoint:function(t,i){var n=this.projection.project(t),s=this.scale(i);return this.transformation._transform(n,s)},pointToLatLng:function(t,i){var n=this.scale(i),s=this.transformation.untransform(t,n);return this.projection.unproject(s)},project:function(t){return this.projection.project(t)},unproject:function(t){return this.projection.unproject(t)},scale:function(t){return 256*Math.pow(2,t)},zoom:function(t){return Math.log(t/256)/Math.LN2},getProjectedBounds:function(t){if(this.infinite)return null;var i=this.projection.bounds,n=this.scale(t);return new I(this.transformation.transform(i.min,n),this.transformation.transform(i.max,n))},infinite:!1,wrapLatLng:function(t){var i=this.wrapLng?r(t.lng,this.wrapLng,!0):t.lng;return new R(this.wrapLat?r(t.lat,this.wrapLat,!0):t.lat,i,t.alt)},wrapLatLngBounds:function(t){var i=t.getCenter(),n=this.wrapLatLng(i),s=i.lat-n.lat,e=i.lng-n.lng;if(0===s&&0===e)return t;var h=t.getSouthWest(),o=t.getNorthEast();return new Z(new R(h.lat-s,h.lng-e),new R(o.lat-s,o.lng-e))}},H=i({},F,{wrapLng:[-180,180],R:6371e3,distance:function(t,i){var n=Math.PI/180,s=t.lat*n,e=i.lat*n,h=Math.sin((i.lat-t.lat)*n/2),o=Math.sin((i.lng-t.lng)*n/2),r=h*h+Math.cos(s)*Math.cos(e)*o*o,a=2*Math.atan2(Math.sqrt(r),Math.sqrt(1-r));return this.R*a}}),U=6378137,W={R:U,MAX_LATITUDE:85.0511287798,project:function(t){var i=Math.PI/180,n=this.MAX_LATITUDE,s=Math.max(Math.min(n,t.lat),-n),e=Math.sin(s*i);return new A(this.R*t.lng*i,this.R*Math.log((1+e)/(1-e))/2)},unproject:function(t){var i=180/Math.PI;return new R((2*Math.atan(Math.exp(t.y/this.R))-Math.PI/2)*i,t.x*i/this.R)},bounds:(j=U*Math.PI,new I([-j,-j],[j,j]))};function G(t,i,n,s){if(p(t))return this._a=t[0],this._b=t[1],this._c=t[2],void(this._d=t[3]);this._a=t,this._b=i,this._c=n,this._d=s}function V(t,i,n,s){return new G(t,i,n,s)}G.prototype={transform:function(t,i){return this._transform(t.clone(),i)},_transform:function(t,i){return t.x=(i=i||1)*(this._a*t.x+this._b),t.y=i*(this._c*t.y+this._d),t},untransform:function(t,i){return new A((t.x/(i=i||1)-this._b)/this._a,(t.y/i-this._d)/this._c)}};var q=i({},H,{code:"EPSG:3857",projection:W,transformation:function(){var t=.5/(Math.PI*W.R);return V(t,.5,-t,.5)}()}),J=i({},q,{code:"EPSG:900913"});function K(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function X(t,i){var n,s,e,h,o,r,a="";for(n=0,e=t.length;n<e;n++){for(s=0,h=(o=t[n]).length;s<h;s++)a+=(s?"L":"M")+(r=o[s]).x+" "+r.y;a+=i?It.svg?"z":"x":""}return a||"M0 0"}var $,Q=document.documentElement.style,Y="ActiveXObject"in window,tt=Y&&!document.addEventListener,it="msLaunchUri"in navigator&&!("documentMode"in document),nt=Ot("webkit"),st=Ot("android"),et=Ot("android 2")||Ot("android 3"),ht=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),ot=st&&Ot("Google")&&ht<537&&!("AudioNode"in window),rt=!!window.opera,at=!it&&Ot("chrome"),ut=Ot("gecko")&&!nt&&!rt&&!Y,ct=!at&&Ot("safari"),ft=Ot("phantom"),lt="OTransition"in Q,dt=0===navigator.platform.indexOf("Win"),vt=Y&&"transition"in Q,mt="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!et,pt="MozPerspective"in Q,gt=!window.L_DISABLE_3D&&(vt||mt||pt)&&!lt&&!ft,wt="undefined"!=typeof orientation||Ot("mobile"),_t=wt&&nt,yt=wt&&mt,Mt=!window.PointerEvent&&window.MSPointerEvent,bt=!(!window.PointerEvent&&!Mt),Pt="ontouchstart"in window||!!window.TouchEvent,kt=!window.L_NO_TOUCH&&(Pt||bt),Tt=wt&&rt,Lt=wt&&ut,zt=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,xt=function(){var t=!1;try{var i=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("testPassiveEventSupport",a,i),window.removeEventListener("testPassiveEventSupport",a,i)}catch(t){}return t}(),St=!!document.createElement("canvas").getContext,Et=!(!document.createElementNS||!K("svg").createSVGRect),At=!!Et&&(($=document.createElement("div")).innerHTML="<svg/>","http://www.w3.org/2000/svg"===($.firstChild&&$.firstChild.namespaceURI)),Ct=!Et&&function(){try{var t=document.createElement("div");t.innerHTML='<v:shape adj="1"/>';var i=t.firstChild;return i.style.behavior="url(#default#VML)",i&&"object"==typeof i.adj}catch(t){return!1}}();function Ot(t){return navigator.userAgent.toLowerCase().indexOf(t)>=0}var It={ie:Y,ielt9:tt,edge:it,webkit:nt,android:st,android23:et,androidStock:ot,opera:rt,chrome:at,gecko:ut,safari:ct,phantom:ft,opera12:lt,win:dt,ie3d:vt,webkit3d:mt,gecko3d:pt,any3d:gt,mobile:wt,mobileWebkit:_t,mobileWebkit3d:yt,msPointer:Mt,pointer:bt,touch:kt,touchNative:Pt,mobileOpera:Tt,mobileGecko:Lt,retina:zt,passiveEvents:xt,canvas:St,svg:Et,vml:Ct,inlineSvg:At,mac:0===navigator.platform.indexOf("Mac"),linux:0===navigator.platform.indexOf("Linux")},Bt=It.msPointer?"MSPointerDown":"pointerdown",Zt=It.msPointer?"MSPointerMove":"pointermove",Dt=It.msPointer?"MSPointerUp":"pointerup",Rt=It.msPointer?"MSPointerCancel":"pointercancel",Nt={touchstart:Bt,touchmove:Zt,touchend:Dt,touchcancel:Rt},jt={touchstart:function(t,i){i.MSPOINTER_TYPE_TOUCH&&i.pointerType===i.MSPOINTER_TYPE_TOUCH&&Di(i),qt(t,i)},touchmove:qt,touchend:qt,touchcancel:qt},Ft={},Ht=!1;function Ut(t,i,n){return"touchstart"===i&&(Ht||(document.addEventListener(Bt,Wt,!0),document.addEventListener(Zt,Gt,!0),document.addEventListener(Dt,Vt,!0),document.addEventListener(Rt,Vt,!0),Ht=!0)),jt[i]?(n=jt[i].bind(this,n),t.addEventListener(Nt[i],n,!1),n):(console.warn("wrong event specified:",i),a)}function Wt(t){Ft[t.pointerId]=t}function Gt(t){Ft[t.pointerId]&&(Ft[t.pointerId]=t)}function Vt(t){delete Ft[t.pointerId]}function qt(t,i){if(i.pointerType!==(i.MSPOINTER_TYPE_MOUSE||"mouse")){for(var n in i.touches=[],Ft)i.touches.push(Ft[n]);i.changedTouches=[i],t(i)}}var Jt,Kt,Xt,$t,Qt,Yt=mi(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),ti=mi(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),ii="webkitTransition"===ti||"OTransition"===ti?ti+"End":"transitionend";function ni(t){return"string"==typeof t?document.getElementById(t):t}function si(t,i){var n=t.style[i]||t.currentStyle&&t.currentStyle[i];if((!n||"auto"===n)&&document.defaultView){var s=document.defaultView.getComputedStyle(t,null);n=s?s[i]:null}return"auto"===n?null:n}function ei(t,i,n){var s=document.createElement(t);return s.className=i||"",n&&n.appendChild(s),s}function hi(t){var i=t.parentNode;i&&i.removeChild(t)}function oi(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function ri(t){var i=t.parentNode;i&&i.lastChild!==t&&i.appendChild(t)}function ai(t){var i=t.parentNode;i&&i.firstChild!==t&&i.insertBefore(t,i.firstChild)}function ui(t,i){if(void 0!==t.classList)return t.classList.contains(i);var n=di(t);return n.length>0&&new RegExp("(^|\\s)"+i+"(\\s|$)").test(n)}function ci(t,i){if(void 0!==t.classList)for(var n=f(i),s=0,e=n.length;s<e;s++)t.classList.add(n[s]);else if(!ui(t,i)){var h=di(t);li(t,(h?h+" ":"")+i)}}function fi(t,i){void 0!==t.classList?t.classList.remove(i):li(t,c((" "+di(t)+" ").replace(" "+i+" "," ")))}function li(t,i){void 0===t.className.baseVal?t.className=i:t.className.baseVal=i}function di(t){return t.correspondingElement&&(t=t.correspondingElement),void 0===t.className.baseVal?t.className:t.className.baseVal}function vi(t,i){"opacity"in t.style?t.style.opacity=i:"filter"in t.style&&function(t,i){var n=!1,s="DXImageTransform.Microsoft.Alpha";try{n=t.filters.item(s)}catch(t){if(1===i)return}i=Math.round(100*i),n?(n.Enabled=100!==i,n.Opacity=i):t.style.filter+=" progid:"+s+"(opacity="+i+")"}(t,i)}function mi(t){for(var i=document.documentElement.style,n=0;n<t.length;n++)if(t[n]in i)return t[n];return!1}function pi(t,i,n){var s=i||new A(0,0);t.style[Yt]=(It.ie3d?"translate("+s.x+"px,"+s.y+"px)":"translate3d("+s.x+"px,"+s.y+"px,0)")+(n?" scale("+n+")":"")}function gi(t,i){t._leaflet_pos=i,It.any3d?pi(t,i):(t.style.left=i.x+"px",t.style.top=i.y+"px")}function wi(t){return t._leaflet_pos||new A(0,0)}if("onselectstart"in document)Jt=function(){zi(window,"selectstart",Di)},Kt=function(){Si(window,"selectstart",Di)};else{var _i=mi(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);Jt=function(){if(_i){var t=document.documentElement.style;Xt=t[_i],t[_i]="none"}},Kt=function(){_i&&(document.documentElement.style[_i]=Xt,Xt=void 0)}}function yi(){zi(window,"dragstart",Di)}function Mi(){Si(window,"dragstart",Di)}function bi(t){for(;-1===t.tabIndex;)t=t.parentNode;t.style&&(Pi(),$t=t,Qt=t.style.outlineStyle,t.style.outlineStyle="none",zi(window,"keydown",Pi))}function Pi(){$t&&($t.style.outlineStyle=Qt,$t=void 0,Qt=void 0,Si(window,"keydown",Pi))}function ki(t){do{t=t.parentNode}while(!(t.offsetWidth&&t.offsetHeight||t===document.body));return t}function Ti(t){var i=t.getBoundingClientRect();return{x:i.width/t.offsetWidth||1,y:i.height/t.offsetHeight||1,boundingClientRect:i}}var Li={__proto__:null,TRANSFORM:Yt,TRANSITION:ti,TRANSITION_END:ii,get:ni,getStyle:si,create:ei,remove:hi,empty:oi,toFront:ri,toBack:ai,hasClass:ui,addClass:ci,removeClass:fi,setClass:li,getClass:di,setOpacity:vi,testProp:mi,setTransform:pi,setPosition:gi,getPosition:wi,get disableTextSelection(){return Jt},get enableTextSelection(){return Kt},disableImageDrag:yi,enableImageDrag:Mi,preventOutline:bi,restoreOutline:Pi,getSizedParentNode:ki,getScale:Ti};function zi(t,i,n,s){if(i&&"object"==typeof i)for(var e in i)Ci(t,e,i[e],n);else for(var h=0,o=(i=f(i)).length;h<o;h++)Ci(t,i[h],n,s);return this}var xi="_leaflet_events";function Si(t,i,n,s){if(1===arguments.length)Ei(t),delete t[xi];else if(i&&"object"==typeof i)for(var e in i)Oi(t,e,i[e],n);else if(i=f(i),2===arguments.length)Ei(t,(function(t){return-1!==g(i,t)}));else for(var h=0,o=i.length;h<o;h++)Oi(t,i[h],n,s);return this}function Ei(t,i){for(var n in t[xi]){var s=n.split(/\d/)[0];i&&!i(s)||Oi(t,s,null,null,n)}}var Ai={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function Ci(t,i,n,s){var e=i+h(n)+(s?"_"+h(s):"");if(t[xi]&&t[xi][e])return this;var o=function(i){return n.call(s||t,i||window.event)},r=o;!It.touchNative&&It.pointer&&0===i.indexOf("touch")?o=Ut(t,i,o):It.touch&&"dblclick"===i?o=function(t,i){t.addEventListener("dblclick",i);var n,s=0;function e(t){if(1===t.detail){if("mouse"!==t.pointerType&&(!t.sourceCapabilities||t.sourceCapabilities.firesTouchEvents)){var e=Ni(t);if(!e.some((function(t){return t instanceof HTMLLabelElement&&t.attributes.for}))||e.some((function(t){return t instanceof HTMLInputElement||t instanceof HTMLSelectElement}))){var h=Date.now();h-s<=200?2==++n&&i(function(t){var i,n,s={};for(n in t)s[n]=(i=t[n])&&i.bind?i.bind(t):i;return t=s,s.type="dblclick",s.detail=2,s.isTrusted=!1,s._simulated=!0,s}(t)):n=1,s=h}}}else n=t.detail}return t.addEventListener("click",e),{dblclick:i,simDblclick:e}}(t,o):"addEventListener"in t?"touchstart"===i||"touchmove"===i||"wheel"===i||"mousewheel"===i?t.addEventListener(Ai[i]||i,o,!!It.passiveEvents&&{passive:!1}):"mouseenter"===i||"mouseleave"===i?t.addEventListener(Ai[i],o=function(i){i=i||window.event,Ui(t,i)&&r(i)},!1):t.addEventListener(i,r,!1):t.attachEvent("on"+i,o),t[xi]=t[xi]||{},t[xi][e]=o}function Oi(t,i,n,s,e){e=e||i+h(n)+(s?"_"+h(s):"");var o=t[xi]&&t[xi][e];if(!o)return this;!It.touchNative&&It.pointer&&0===i.indexOf("touch")?function(t,i,n){Nt[i]?t.removeEventListener(Nt[i],n,!1):console.warn("wrong event specified:",i)}(t,i,o):It.touch&&"dblclick"===i?function(t,i){t.removeEventListener("dblclick",i.dblclick),t.removeEventListener("click",i.simDblclick)}(t,o):"removeEventListener"in t?t.removeEventListener(Ai[i]||i,o,!1):t.detachEvent("on"+i,o),t[xi][e]=null}function Ii(t){return t.stopPropagation?t.stopPropagation():t.originalEvent?t.originalEvent._stopped=!0:t.cancelBubble=!0,this}function Bi(t){return Ci(t,"wheel",Ii),this}function Zi(t){return zi(t,"mousedown touchstart dblclick contextmenu",Ii),t._leaflet_disable_click=!0,this}function Di(t){return t.preventDefault?t.preventDefault():t.returnValue=!1,this}function Ri(t){return Di(t),Ii(t),this}function Ni(t){if(t.composedPath)return t.composedPath();for(var i=[],n=t.target;n;)i.push(n),n=n.parentNode;return i}function ji(t,i){if(!i)return new A(t.clientX,t.clientY);var n=Ti(i),s=n.boundingClientRect;return new A((t.clientX-s.left)/n.x-i.clientLeft,(t.clientY-s.top)/n.y-i.clientTop)}var Fi=It.linux&&It.chrome?window.devicePixelRatio:It.mac?3*window.devicePixelRatio:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function Hi(t){return It.edge?t.wheelDeltaY/2:t.deltaY&&0===t.deltaMode?-t.deltaY/Fi:t.deltaY&&1===t.deltaMode?20*-t.deltaY:t.deltaY&&2===t.deltaMode?60*-t.deltaY:t.deltaX||t.deltaZ?0:t.wheelDelta?(t.wheelDeltaY||t.wheelDelta)/2:t.detail&&Math.abs(t.detail)<32765?20*-t.detail:t.detail?t.detail/-32765*60:0}function Ui(t,i){var n=i.relatedTarget;if(!n)return!0;try{for(;n&&n!==t;)n=n.parentNode}catch(t){return!1}return n!==t}var Wi={__proto__:null,on:zi,off:Si,stopPropagation:Ii,disableScrollPropagation:Bi,disableClickPropagation:Zi,preventDefault:Di,stop:Ri,getPropagationPath:Ni,getMousePosition:ji,getWheelDelta:Hi,isExternalTarget:Ui,addListener:zi,removeListener:Si},Gi=E.extend({run:function(t,i,n,s){this.stop(),this._el=t,this._inProgress=!0,this._duration=n||.25,this._easeOutPower=1/Math.max(s||.5,.2),this._startPos=wi(t),this._offset=i.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=k(this._animate,this),this._step()},_step:function(t){var i=+new Date-this._startTime,n=1e3*this._duration;i<n?this._runFrame(this._easeOut(i/n),t):(this._runFrame(1),this._complete())},_runFrame:function(t,i){var n=this._startPos.add(this._offset.multiplyBy(t));i&&n._round(),gi(this._el,n),this.fire("step")},_complete:function(){T(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(t){return 1-Math.pow(1-t,this._easeOutPower)}}),Vi=E.extend({options:{crs:q,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(t,i){i=l(this,i),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(t),this._initLayout(),this._onResize=s(this._onResize,this),this._initEvents(),i.maxBounds&&this.setMaxBounds(i.maxBounds),void 0!==i.zoom&&(this._zoom=this._limitZoom(i.zoom)),i.center&&void 0!==i.zoom&&this.setView(N(i.center),i.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=ti&&It.any3d&&!It.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),zi(this._proxy,ii,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(t,n,s){return n=void 0===n?this._zoom:this._limitZoom(n),t=this._limitCenter(N(t),n,this.options.maxBounds),s=s||{},this._stop(),this._loaded&&!s.reset&&!0!==s&&(void 0!==s.animate&&(s.zoom=i({animate:s.animate},s.zoom),s.pan=i({animate:s.animate,duration:s.duration},s.pan)),this._zoom!==n?this._tryAnimatedZoom&&this._tryAnimatedZoom(t,n,s.zoom):this._tryAnimatedPan(t,s.pan))?(clearTimeout(this._sizeTimer),this):(this._resetView(t,n,s.pan&&s.pan.noMoveStart),this)},setZoom:function(t,i){return this._loaded?this.setView(this.getCenter(),t,{zoom:i}):(this._zoom=t,this)},zoomIn:function(t,i){return this.setZoom(this._zoom+(t=t||(It.any3d?this.options.zoomDelta:1)),i)},zoomOut:function(t,i){return this.setZoom(this._zoom-(t=t||(It.any3d?this.options.zoomDelta:1)),i)},setZoomAround:function(t,i,n){var s=this.getZoomScale(i),e=this.getSize().divideBy(2),h=(t instanceof A?t:this.latLngToContainerPoint(t)).subtract(e).multiplyBy(1-1/s),o=this.containerPointToLatLng(e.add(h));return this.setView(o,i,{zoom:n})},_getBoundsCenterZoom:function(t,i){i=i||{},t=t.getBounds?t.getBounds():D(t);var n=O(i.paddingTopLeft||i.padding||[0,0]),s=O(i.paddingBottomRight||i.padding||[0,0]),e=this.getBoundsZoom(t,!1,n.add(s));if((e="number"==typeof i.maxZoom?Math.min(i.maxZoom,e):e)===1/0)return{center:t.getCenter(),zoom:e};var h=s.subtract(n).divideBy(2),o=this.project(t.getSouthWest(),e),r=this.project(t.getNorthEast(),e);return{center:this.unproject(o.add(r).divideBy(2).add(h),e),zoom:e}},fitBounds:function(t,i){if(!(t=D(t)).isValid())throw new Error("Bounds are not valid.");var n=this._getBoundsCenterZoom(t,i);return this.setView(n.center,n.zoom,i)},fitWorld:function(t){return this.fitBounds([[-90,-180],[90,180]],t)},panTo:function(t,i){return this.setView(t,this._zoom,{pan:i})},panBy:function(t,i){if(i=i||{},!(t=O(t).round()).x&&!t.y)return this.fire("moveend");if(!0!==i.animate&&!this.getSize().contains(t))return this._resetView(this.unproject(this.project(this.getCenter()).add(t)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new Gi,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),i.noMoveStart||this.fire("movestart"),!1!==i.animate){ci(this._mapPane,"leaflet-pan-anim");var n=this._getMapPanePos().subtract(t).round();this._panAnim.run(this._mapPane,n,i.duration||.25,i.easeLinearity)}else this._rawPanBy(t),this.fire("move").fire("moveend");return this},flyTo:function(t,i,n){if(!1===(n=n||{}).animate||!It.any3d)return this.setView(t,i,n);this._stop();var s=this.project(this.getCenter()),e=this.project(t),h=this.getSize(),o=this._zoom;t=N(t),i=void 0===i?o:i;var r=Math.max(h.x,h.y),a=r*this.getZoomScale(o,i),u=e.distanceTo(s)||1,c=1.42,f=2.0164;function l(t){var i=(a*a-r*r+(t?-1:1)*f*f*u*u)/(2*(t?a:r)*f*u),n=Math.sqrt(i*i+1)-i;return n<1e-9?-18:Math.log(n)}function d(t){return(Math.exp(t)-Math.exp(-t))/2}function v(t){return(Math.exp(t)+Math.exp(-t))/2}var m=l(0);function p(t){return r*(v(m)*(d(i=m+c*t)/v(i))-d(m))/f;var i}var g=Date.now(),w=(l(1)-m)/c,_=n.duration?1e3*n.duration:1e3*w*.8;return this._moveStart(!0,n.noMoveStart),function n(){var h=(Date.now()-g)/_,a=function(t){return 1-Math.pow(1-t,1.5)}(h)*w;h<=1?(this._flyToFrame=k(n,this),this._move(this.unproject(s.add(e.subtract(s).multiplyBy(p(a)/u)),o),this.getScaleZoom(r/function(t){return r*(v(m)/v(m+c*t))}(a),o),{flyTo:!0})):this._move(t,i)._moveEnd(!0)}.call(this),this},flyToBounds:function(t,i){var n=this._getBoundsCenterZoom(t,i);return this.flyTo(n.center,n.zoom,i)},setMaxBounds:function(t){return t=D(t),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),t.isValid()?(this.options.maxBounds=t,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},setMinZoom:function(t){var i=this.options.minZoom;return this.options.minZoom=t,this._loaded&&i!==t&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(t):this},setMaxZoom:function(t){var i=this.options.maxZoom;return this.options.maxZoom=t,this._loaded&&i!==t&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(t):this},panInsideBounds:function(t,i){this._enforcingBounds=!0;var n=this.getCenter(),s=this._limitCenter(n,this._zoom,D(t));return n.equals(s)||this.panTo(s,i),this._enforcingBounds=!1,this},panInside:function(t,i){var n=O((i=i||{}).paddingTopLeft||i.padding||[0,0]),s=O(i.paddingBottomRight||i.padding||[0,0]),e=this.project(this.getCenter()),h=this.project(t),o=this.getPixelBounds(),r=B([o.min.add(n),o.max.subtract(s)]),a=r.getSize();if(!r.contains(h)){this._enforcingBounds=!0;var u=h.subtract(r.getCenter()),c=r.extend(h).getSize().subtract(a);e.x+=u.x<0?-c.x:c.x,e.y+=u.y<0?-c.y:c.y,this.panTo(this.unproject(e),i),this._enforcingBounds=!1}return this},invalidateSize:function(t){if(!this._loaded)return this;t=i({animate:!1,pan:!0},!0===t?{animate:!0}:t);var n=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var e=this.getSize(),h=n.divideBy(2).round(),o=e.divideBy(2).round(),r=h.subtract(o);return r.x||r.y?(t.animate&&t.pan?this.panBy(r):(t.pan&&this._rawPanBy(r),this.fire("move"),t.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(s(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:n,newSize:e})):this},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(t){if(t=this._locateOptions=i({timeout:1e4,watch:!1},t),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var n=s(this._handleGeolocationResponse,this),e=s(this._handleGeolocationError,this);return t.watch?this._locationWatchId=navigator.geolocation.watchPosition(n,e,t):navigator.geolocation.getCurrentPosition(n,e,t),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(t){if(this._container._leaflet_id){var i=t.code,n=t.message||(1===i?"permission denied":2===i?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:i,message:"Geolocation error: "+n+"."})}},_handleGeolocationResponse:function(t){if(this._container._leaflet_id){var i=new R(t.coords.latitude,t.coords.longitude),n=i.toBounds(2*t.coords.accuracy),s=this._locateOptions;if(s.setView){var e=this.getBoundsZoom(n);this.setView(i,s.maxZoom?Math.min(e,s.maxZoom):e)}var h={latlng:i,bounds:n,timestamp:t.timestamp};for(var o in t.coords)"number"==typeof t.coords[o]&&(h[o]=t.coords[o]);this.fire("locationfound",h)}},addHandler:function(t,i){if(!i)return this;var n=this[t]=new i(this);return this._handlers.push(n),this.options[t]&&n.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(t){this._container._leaflet_id=void 0,this._containerId=void 0}var t;for(t in void 0!==this._locationWatchId&&this.stopLocate(),this._stop(),hi(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(T(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload"),this._layers)this._layers[t].remove();for(t in this._panes)hi(this._panes[t]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(t,i){var n=ei("div","leaflet-pane"+(t?" leaflet-"+t.replace("Pane","")+"-pane":""),i||this._mapPane);return t&&(this._panes[t]=n),n},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var t=this.getPixelBounds();return new Z(this.unproject(t.getBottomLeft()),this.unproject(t.getTopRight()))},getMinZoom:function(){return void 0===this.options.minZoom?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return void 0===this.options.maxZoom?void 0===this._layersMaxZoom?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(t,i,n){t=D(t),n=O(n||[0,0]);var s=this.getZoom()||0,e=this.getMinZoom(),h=this.getMaxZoom(),o=t.getNorthWest(),r=t.getSouthEast(),a=this.getSize().subtract(n),u=B(this.project(r,s),this.project(o,s)).getSize(),c=It.any3d?this.options.zoomSnap:1,f=a.x/u.x,l=a.y/u.y,d=i?Math.max(f,l):Math.min(f,l);return s=this.getScaleZoom(d,s),c&&(s=Math.round(s/(c/100))*(c/100),s=i?Math.ceil(s/c)*c:Math.floor(s/c)*c),Math.max(e,Math.min(h,s))},getSize:function(){return this._size&&!this._sizeChanged||(this._size=new A(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(t,i){var n=this._getTopLeftPoint(t,i);return new I(n,n.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(t){return this.options.crs.getProjectedBounds(void 0===t?this.getZoom():t)},getPane:function(t){return"string"==typeof t?this._panes[t]:t},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(t,i){var n=this.options.crs;return i=void 0===i?this._zoom:i,n.scale(t)/n.scale(i)},getScaleZoom:function(t,i){var n=this.options.crs,s=n.zoom(t*n.scale(i=void 0===i?this._zoom:i));return isNaN(s)?1/0:s},project:function(t,i){return i=void 0===i?this._zoom:i,this.options.crs.latLngToPoint(N(t),i)},unproject:function(t,i){return i=void 0===i?this._zoom:i,this.options.crs.pointToLatLng(O(t),i)},layerPointToLatLng:function(t){var i=O(t).add(this.getPixelOrigin());return this.unproject(i)},latLngToLayerPoint:function(t){return this.project(N(t))._round()._subtract(this.getPixelOrigin())},wrapLatLng:function(t){return this.options.crs.wrapLatLng(N(t))},wrapLatLngBounds:function(t){return this.options.crs.wrapLatLngBounds(D(t))},distance:function(t,i){return this.options.crs.distance(N(t),N(i))},containerPointToLayerPoint:function(t){return O(t).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(t){return O(t).add(this._getMapPanePos())},containerPointToLatLng:function(t){var i=this.containerPointToLayerPoint(O(t));return this.layerPointToLatLng(i)},latLngToContainerPoint:function(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint(N(t)))},mouseEventToContainerPoint:function(t){return ji(t,this._container)},mouseEventToLayerPoint:function(t){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(t))},mouseEventToLatLng:function(t){return this.layerPointToLatLng(this.mouseEventToLayerPoint(t))},_initContainer:function(t){var i=this._container=ni(t);if(!i)throw new Error("Map container not found.");if(i._leaflet_id)throw new Error("Map container is already initialized.");zi(i,"scroll",this._onScroll,this),this._containerId=h(i)},_initLayout:function(){var t=this._container;this._fadeAnimated=this.options.fadeAnimation&&It.any3d,ci(t,"leaflet-container"+(It.touch?" leaflet-touch":"")+(It.retina?" leaflet-retina":"")+(It.ielt9?" leaflet-oldie":"")+(It.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var i=si(t,"position");"absolute"!==i&&"relative"!==i&&"fixed"!==i&&"sticky"!==i&&(t.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var t=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),gi(this._mapPane,new A(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(ci(t.markerPane,"leaflet-zoom-hide"),ci(t.shadowPane,"leaflet-zoom-hide"))},_resetView:function(t,i,n){gi(this._mapPane,new A(0,0));var s=!this._loaded;this._loaded=!0,i=this._limitZoom(i),this.fire("viewprereset");var e=this._zoom!==i;this._moveStart(e,n)._move(t,i)._moveEnd(e),this.fire("viewreset"),s&&this.fire("load")},_moveStart:function(t,i){return t&&this.fire("zoomstart"),i||this.fire("movestart"),this},_move:function(t,i,n,s){void 0===i&&(i=this._zoom);var e=this._zoom!==i;return this._zoom=i,this._lastCenter=t,this._pixelOrigin=this._getNewPixelOrigin(t),s?n&&n.pinch&&this.fire("zoom",n):((e||n&&n.pinch)&&this.fire("zoom",n),this.fire("move",n)),this},_moveEnd:function(t){return t&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return T(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(t){gi(this._mapPane,this._getMapPanePos().subtract(t))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(t){this._targets={},this._targets[h(this._container)]=this;var i=t?Si:zi;i(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&i(window,"resize",this._onResize,this),It.any3d&&this.options.transform3DLimit&&(t?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){T(this._resizeRequest),this._resizeRequest=k((function(){this.invalidateSize({debounceMoveend:!0})}),this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var t=this._getMapPanePos();Math.max(Math.abs(t.x),Math.abs(t.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(t,i){for(var n,s=[],e="mouseout"===i||"mouseover"===i,o=t.target||t.srcElement,r=!1;o;){if((n=this._targets[h(o)])&&("click"===i||"preclick"===i)&&this._draggableMoved(n)){r=!0;break}if(n&&n.listens(i,!0)){if(e&&!Ui(o,t))break;if(s.push(n),e)break}if(o===this._container)break;o=o.parentNode}return s.length||r||e||!this.listens(i,!0)||(s=[this]),s},_isClickDisabled:function(t){for(;t&&t!==this._container;){if(t._leaflet_disable_click)return!0;t=t.parentNode}},_handleDOMEvent:function(t){var i=t.target||t.srcElement;if(!(!this._loaded||i._leaflet_disable_events||"click"===t.type&&this._isClickDisabled(i))){var n=t.type;"mousedown"===n&&bi(i),this._fireDOMEvent(t,n)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(t,n,s){if("click"===t.type){var e=i({},t);e.type="preclick",this._fireDOMEvent(e,e.type,s)}var h=this._findEventTargets(t,n);if(s){for(var o=[],r=0;r<s.length;r++)s[r].listens(n,!0)&&o.push(s[r]);h=o.concat(h)}if(h.length){"contextmenu"===n&&Di(t);var a=h[0],u={originalEvent:t};if("keypress"!==t.type&&"keydown"!==t.type&&"keyup"!==t.type){var c=a.getLatLng&&(!a._radius||a._radius<=10);u.containerPoint=c?this.latLngToContainerPoint(a.getLatLng()):this.mouseEventToContainerPoint(t),u.layerPoint=this.containerPointToLayerPoint(u.containerPoint),u.latlng=c?a.getLatLng():this.layerPointToLatLng(u.layerPoint)}for(r=0;r<h.length;r++)if(h[r].fire(n,u,!0),u.originalEvent._stopped||!1===h[r].options.bubblingMouseEvents&&-1!==g(this._mouseEvents,n))return}},_draggableMoved:function(t){return(t=t.dragging&&t.dragging.enabled()?t:this).dragging&&t.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var t=0,i=this._handlers.length;t<i;t++)this._handlers[t].disable()},whenReady:function(t,i){return this._loaded?t.call(i||this,{target:this}):this.on("load",t,i),this},_getMapPanePos:function(){return wi(this._mapPane)||new A(0,0)},_moved:function(){var t=this._getMapPanePos();return t&&!t.equals([0,0])},_getTopLeftPoint:function(t,i){return(t&&void 0!==i?this._getNewPixelOrigin(t,i):this.getPixelOrigin()).subtract(this._getMapPanePos())},_getNewPixelOrigin:function(t,i){var n=this.getSize()._divideBy(2);return this.project(t,i)._subtract(n)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(t,i,n){var s=this._getNewPixelOrigin(n,i);return this.project(t,i)._subtract(s)},_latLngBoundsToNewLayerBounds:function(t,i,n){var s=this._getNewPixelOrigin(n,i);return B([this.project(t.getSouthWest(),i)._subtract(s),this.project(t.getNorthWest(),i)._subtract(s),this.project(t.getSouthEast(),i)._subtract(s),this.project(t.getNorthEast(),i)._subtract(s)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(t){return this.latLngToLayerPoint(t).subtract(this._getCenterLayerPoint())},_limitCenter:function(t,i,n){if(!n)return t;var s=this.project(t,i),e=this.getSize().divideBy(2),h=new I(s.subtract(e),s.add(e)),o=this._getBoundsOffset(h,n,i);return Math.abs(o.x)<=1&&Math.abs(o.y)<=1?t:this.unproject(s.add(o),i)},_limitOffset:function(t,i){if(!i)return t;var n=this.getPixelBounds(),s=new I(n.min.add(t),n.max.add(t));return t.add(this._getBoundsOffset(s,i))},_getBoundsOffset:function(t,i,n){var s=B(this.project(i.getNorthEast(),n),this.project(i.getSouthWest(),n)),e=s.min.subtract(t.min),h=s.max.subtract(t.max);return new A(this._rebound(e.x,-h.x),this._rebound(e.y,-h.y))},_rebound:function(t,i){return t+i>0?Math.round(t-i)/2:Math.max(0,Math.ceil(t))-Math.max(0,Math.floor(i))},_limitZoom:function(t){var i=this.getMinZoom(),n=this.getMaxZoom(),s=It.any3d?this.options.zoomSnap:1;return s&&(t=Math.round(t/s)*s),Math.max(i,Math.min(n,t))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){fi(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(t,i){var n=this._getCenterOffset(t)._trunc();return!(!0!==(i&&i.animate)&&!this.getSize().contains(n)||(this.panBy(n,i),0))},_createAnimProxy:function(){var t=this._proxy=ei("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(t),this.on("zoomanim",(function(t){var i=Yt,n=this._proxy.style[i];pi(this._proxy,this.project(t.center,t.zoom),this.getZoomScale(t.zoom,1)),n===this._proxy.style[i]&&this._animatingZoom&&this._onZoomTransitionEnd()}),this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){hi(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var t=this.getCenter(),i=this.getZoom();pi(this._proxy,this.project(t,i),this.getZoomScale(i,1))},_catchTransitionEnd:function(t){this._animatingZoom&&t.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(t,i,n){if(this._animatingZoom)return!0;if(n=n||{},!this._zoomAnimated||!1===n.animate||this._nothingToAnimate()||Math.abs(i-this._zoom)>this.options.zoomAnimationThreshold)return!1;var s=this.getZoomScale(i),e=this._getCenterOffset(t)._divideBy(1-1/s);return!(!0!==n.animate&&!this.getSize().contains(e)||(k((function(){this._moveStart(!0,n.noMoveStart||!1)._animateZoom(t,i,!0)}),this),0))},_animateZoom:function(t,i,n,e){this._mapPane&&(n&&(this._animatingZoom=!0,this._animateToCenter=t,this._animateToZoom=i,ci(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:t,zoom:i,noUpdate:e}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(s(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&fi(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))}});var qi=x.extend({options:{position:"topright"},initialize:function(t){l(this,t)},getPosition:function(){return this.options.position},setPosition:function(t){var i=this._map;return i&&i.removeControl(this),this.options.position=t,i&&i.addControl(this),this},getContainer:function(){return this._container},addTo:function(t){this.remove(),this._map=t;var i=this._container=this.onAdd(t),n=this.getPosition(),s=t._controlCorners[n];return ci(i,"leaflet-control"),-1!==n.indexOf("bottom")?s.insertBefore(i,s.firstChild):s.appendChild(i),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(hi(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(t){this._map&&t&&t.screenX>0&&t.screenY>0&&this._map.getContainer().focus()}}),Ji=function(t){return new qi(t)};Vi.include({addControl:function(t){return t.addTo(this),this},removeControl:function(t){return t.remove(),this},_initControlPos:function(){var t=this._controlCorners={},i="leaflet-",n=this._controlContainer=ei("div",i+"control-container",this._container);function s(s,e){t[s+e]=ei("div",i+s+" "+i+e,n)}s("top","left"),s("top","right"),s("bottom","left"),s("bottom","right")},_clearControlPos:function(){for(var t in this._controlCorners)hi(this._controlCorners[t]);hi(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var Ki=qi.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(t,i,n,s){return n<s?-1:s<n?1:0}},initialize:function(t,i,n){for(var s in l(this,n),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1,t)this._addLayer(t[s],s);for(s in i)this._addLayer(i[s],s,!0)},onAdd:function(t){this._initLayout(),this._update(),this._map=t,t.on("zoomend",this._checkDisabledLayers,this);for(var i=0;i<this._layers.length;i++)this._layers[i].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(t){return qi.prototype.addTo.call(this,t),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var t=0;t<this._layers.length;t++)this._layers[t].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(t,i){return this._addLayer(t,i),this._map?this._update():this},addOverlay:function(t,i){return this._addLayer(t,i,!0),this._map?this._update():this},removeLayer:function(t){t.off("add remove",this._onLayerChange,this);var i=this._getLayer(h(t));return i&&this._layers.splice(this._layers.indexOf(i),1),this._map?this._update():this},expand:function(){ci(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var t=this._map.getSize().y-(this._container.offsetTop+50);return t<this._section.clientHeight?(ci(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=t+"px"):fi(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return fi(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var t="leaflet-control-layers",i=this._container=ei("div",t),n=this.options.collapsed;i.setAttribute("aria-haspopup",!0),Zi(i),Bi(i);var s=this._section=ei("section",t+"-list");n&&(this._map.on("click",this.collapse,this),zi(i,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var e=this._layersLink=ei("a",t+"-toggle",i);e.href="#",e.title="Layers",e.setAttribute("role","button"),zi(e,{keydown:function(t){13===t.keyCode&&this._expandSafely()},click:function(t){Di(t),this._expandSafely()}},this),n||this.expand(),this._baseLayersList=ei("div",t+"-base",s),this._separator=ei("div",t+"-separator",s),this._overlaysList=ei("div",t+"-overlays",s),i.appendChild(s)},_getLayer:function(t){for(var i=0;i<this._layers.length;i++)if(this._layers[i]&&h(this._layers[i].layer)===t)return this._layers[i]},_addLayer:function(t,i,n){this._map&&t.on("add remove",this._onLayerChange,this),this._layers.push({layer:t,name:i,overlay:n}),this.options.sortLayers&&this._layers.sort(s((function(t,i){return this.options.sortFunction(t.layer,i.layer,t.name,i.name)}),this)),this.options.autoZIndex&&t.setZIndex&&(this._lastZIndex++,t.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;oi(this._baseLayersList),oi(this._overlaysList),this._layerControlInputs=[];var t,i,n,s,e=0;for(n=0;n<this._layers.length;n++)this._addItem(s=this._layers[n]),i=i||s.overlay,t=t||!s.overlay,e+=s.overlay?0:1;return this.options.hideSingleBase&&(this._baseLayersList.style.display=(t=t&&e>1)?"":"none"),this._separator.style.display=i&&t?"":"none",this},_onLayerChange:function(t){this._handlingClick||this._update();var i=this._getLayer(h(t.target)),n=i.overlay?"add"===t.type?"overlayadd":"overlayremove":"add"===t.type?"baselayerchange":null;n&&this._map.fire(n,i)},_createRadioElement:function(t,i){var n='<input type="radio" class="leaflet-control-layers-selector" name="'+t+'"'+(i?' checked="checked"':"")+"/>",s=document.createElement("div");return s.innerHTML=n,s.firstChild},_addItem:function(t){var i,n=document.createElement("label"),s=this._map.hasLayer(t.layer);t.overlay?((i=document.createElement("input")).type="checkbox",i.className="leaflet-control-layers-selector",i.defaultChecked=s):i=this._createRadioElement("leaflet-base-layers_"+h(this),s),this._layerControlInputs.push(i),i.layerId=h(t.layer),zi(i,"click",this._onInputClick,this);var e=document.createElement("span");e.innerHTML=" "+t.name;var o=document.createElement("span");return n.appendChild(o),o.appendChild(i),o.appendChild(e),(t.overlay?this._overlaysList:this._baseLayersList).appendChild(n),this._checkDisabledLayers(),n},_onInputClick:function(){if(!this._preventClick){var t,i,n=this._layerControlInputs,s=[],e=[];this._handlingClick=!0;for(var h=n.length-1;h>=0;h--)i=this._getLayer((t=n[h]).layerId).layer,t.checked?s.push(i):t.checked||e.push(i);for(h=0;h<e.length;h++)this._map.hasLayer(e[h])&&this._map.removeLayer(e[h]);for(h=0;h<s.length;h++)this._map.hasLayer(s[h])||this._map.addLayer(s[h]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var t,i,n=this._layerControlInputs,s=this._map.getZoom(),e=n.length-1;e>=0;e--)i=this._getLayer((t=n[e]).layerId).layer,t.disabled=void 0!==i.options.minZoom&&s<i.options.minZoom||void 0!==i.options.maxZoom&&s>i.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var t=this._section;this._preventClick=!0,zi(t,"click",Di),this.expand();var i=this;setTimeout((function(){Si(t,"click",Di),i._preventClick=!1}))}}),Xi=qi.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">&#x2212;</span>',zoomOutTitle:"Zoom out"},onAdd:function(t){var i="leaflet-control-zoom",n=ei("div",i+" leaflet-bar"),s=this.options;return this._zoomInButton=this._createButton(s.zoomInText,s.zoomInTitle,i+"-in",n,this._zoomIn),this._zoomOutButton=this._createButton(s.zoomOutText,s.zoomOutTitle,i+"-out",n,this._zoomOut),this._updateDisabled(),t.on("zoomend zoomlevelschange",this._updateDisabled,this),n},onRemove:function(t){t.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(t){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(t.shiftKey?3:1))},_zoomOut:function(t){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(t.shiftKey?3:1))},_createButton:function(t,i,n,s,e){var h=ei("a",n,s);return h.innerHTML=t,h.href="#",h.title=i,h.setAttribute("role","button"),h.setAttribute("aria-label",i),Zi(h),zi(h,"click",Ri),zi(h,"click",e,this),zi(h,"click",this._refocusOnMap,this),h},_updateDisabled:function(){var t=this._map,i="leaflet-disabled";fi(this._zoomInButton,i),fi(this._zoomOutButton,i),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||t._zoom===t.getMinZoom())&&(ci(this._zoomOutButton,i),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||t._zoom===t.getMaxZoom())&&(ci(this._zoomInButton,i),this._zoomInButton.setAttribute("aria-disabled","true"))}});Vi.mergeOptions({zoomControl:!0}),Vi.addInitHook((function(){this.options.zoomControl&&(this.zoomControl=new Xi,this.addControl(this.zoomControl))}));var $i=qi.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(t){var i="leaflet-control-scale",n=ei("div",i),s=this.options;return this._addScales(s,i+"-line",n),t.on(s.updateWhenIdle?"moveend":"move",this._update,this),t.whenReady(this._update,this),n},onRemove:function(t){t.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(t,i,n){t.metric&&(this._mScale=ei("div",i,n)),t.imperial&&(this._iScale=ei("div",i,n))},_update:function(){var t=this._map,i=t.getSize().y/2,n=t.distance(t.containerPointToLatLng([0,i]),t.containerPointToLatLng([this.options.maxWidth,i]));this._updateScales(n)},_updateScales:function(t){this.options.metric&&t&&this._updateMetric(t),this.options.imperial&&t&&this._updateImperial(t)},_updateMetric:function(t){var i=this._getRoundNum(t);this._updateScale(this._mScale,i<1e3?i+" m":i/1e3+" km",i/t)},_updateImperial:function(t){var i,n,s,e=3.2808399*t;e>5280?(n=this._getRoundNum(i=e/5280),this._updateScale(this._iScale,n+" mi",n/i)):(s=this._getRoundNum(e),this._updateScale(this._iScale,s+" ft",s/e))},_updateScale:function(t,i,n){t.style.width=Math.round(this.options.maxWidth*n)+"px",t.innerHTML=i},_getRoundNum:function(t){var i=Math.pow(10,(Math.floor(t)+"").length-1),n=t/i;return i*(n>=10?10:n>=5?5:n>=3?3:n>=2?2:1)}}),Qi=qi.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(It.inlineSvg?'<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> ':"")+"Leaflet</a>"},initialize:function(t){l(this,t),this._attributions={}},onAdd:function(t){for(var i in t.attributionControl=this,this._container=ei("div","leaflet-control-attribution"),Zi(this._container),t._layers)t._layers[i].getAttribution&&this.addAttribution(t._layers[i].getAttribution());return this._update(),t.on("layeradd",this._addAttribution,this),this._container},onRemove:function(t){t.off("layeradd",this._addAttribution,this)},_addAttribution:function(t){t.layer.getAttribution&&(this.addAttribution(t.layer.getAttribution()),t.layer.once("remove",(function(){this.removeAttribution(t.layer.getAttribution())}),this))},setPrefix:function(t){return this.options.prefix=t,this._update(),this},addAttribution:function(t){return t?(this._attributions[t]||(this._attributions[t]=0),this._attributions[t]++,this._update(),this):this},removeAttribution:function(t){return t?(this._attributions[t]&&(this._attributions[t]--,this._update()),this):this},_update:function(){if(this._map){var t=[];for(var i in this._attributions)this._attributions[i]&&t.push(i);var n=[];this.options.prefix&&n.push(this.options.prefix),t.length&&n.push(t.join(", ")),this._container.innerHTML=n.join(' <span aria-hidden="true">|</span> ')}}});Vi.mergeOptions({attributionControl:!0}),Vi.addInitHook((function(){this.options.attributionControl&&(new Qi).addTo(this)}));qi.Layers=Ki,qi.Zoom=Xi,qi.Scale=$i,qi.Attribution=Qi,Ji.layers=function(t,i,n){return new Ki(t,i,n)},Ji.zoom=function(t){return new Xi(t)},Ji.scale=function(t){return new $i(t)},Ji.attribution=function(t){return new Qi(t)};var Yi=x.extend({initialize:function(t){this._map=t},enable:function(){return this._enabled||(this._enabled=!0,this.addHooks()),this},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});Yi.addTo=function(t,i){return t.addHandler(i,this),this};var tn={Events:S},nn=It.touch?"touchstart mousedown":"mousedown",sn=E.extend({options:{clickTolerance:3},initialize:function(t,i,n,s){l(this,s),this._element=t,this._dragStartTarget=i||t,this._preventOutline=n},enable:function(){this._enabled||(zi(this._dragStartTarget,nn,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(sn._dragging===this&&this.finishDrag(!0),Si(this._dragStartTarget,nn,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(t){if(this._enabled&&(this._moved=!1,!ui(this._element,"leaflet-zoom-anim")))if(t.touches&&1!==t.touches.length)sn._dragging===this&&this.finishDrag();else if(!(sn._dragging||t.shiftKey||1!==t.which&&1!==t.button&&!t.touches||(sn._dragging=this,this._preventOutline&&bi(this._element),yi(),Jt(),this._moving))){this.fire("down");var i=t.touches?t.touches[0]:t,n=ki(this._element);this._startPoint=new A(i.clientX,i.clientY),this._startPos=wi(this._element),this._parentScale=Ti(n);var s="mousedown"===t.type;zi(document,s?"mousemove":"touchmove",this._onMove,this),zi(document,s?"mouseup":"touchend touchcancel",this._onUp,this)}},_onMove:function(t){if(this._enabled)if(t.touches&&t.touches.length>1)this._moved=!0;else{var i=t.touches&&1===t.touches.length?t.touches[0]:t,n=new A(i.clientX,i.clientY)._subtract(this._startPoint);(n.x||n.y)&&(Math.abs(n.x)+Math.abs(n.y)<this.options.clickTolerance||(n.x/=this._parentScale.x,n.y/=this._parentScale.y,Di(t),this._moved||(this.fire("dragstart"),this._moved=!0,ci(document.body,"leaflet-dragging"),this._lastTarget=t.target||t.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),ci(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(n),this._moving=!0,this._lastEvent=t,this._updatePosition()))}},_updatePosition:function(){var t={originalEvent:this._lastEvent};this.fire("predrag",t),gi(this._element,this._newPos),this.fire("drag",t)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(t){fi(document.body,"leaflet-dragging"),this._lastTarget&&(fi(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),Si(document,"mousemove touchmove",this._onMove,this),Si(document,"mouseup touchend touchcancel",this._onUp,this),Mi(),Kt();var i=this._moved&&this._moving;this._moving=!1,sn._dragging=!1,i&&this.fire("dragend",{noInertia:t,distance:this._newPos.distanceTo(this._startPos)})}});function en(t,i,n){var s,e,h,o,r,a,u,c,f,l=[1,4,2,8];for(e=0,u=t.length;e<u;e++)t[e]._code=vn(t[e],i);for(o=0;o<4;o++){for(c=l[o],s=[],e=0,h=(u=t.length)-1;e<u;h=e++)a=t[h],(r=t[e])._code&c?a._code&c||((f=dn(a,r,c,i,n))._code=vn(f,i),s.push(f)):(a._code&c&&((f=dn(a,r,c,i,n))._code=vn(f,i),s.push(f)),s.push(r));t=s}return t}function hn(t,i){var n,s,e,h,o,r,a,u;if(!t||0===t.length)throw new Error("latlngs not passed");gn(t)||(console.warn("latlngs are not flat! Only the first ring will be used"),t=t[0]);var c=N([0,0]),f=D(t);f.getNorthWest().distanceTo(f.getSouthWest())*f.getNorthEast().distanceTo(f.getNorthWest())<1700&&(c=on(t));var l=t.length,d=[];for(n=0;n<l;n++){var v=N(t[n]);d.push(i.project(N([v.lat-c.lat,v.lng-c.lng])))}for(r=a=u=0,n=0,s=l-1;n<l;s=n++)a+=((e=d[n]).x+(h=d[s]).x)*(o=e.y*h.x-h.y*e.x),u+=(e.y+h.y)*o,r+=3*o;var m=i.unproject(O(0===r?d[0]:[a/r,u/r]));return N([m.lat+c.lat,m.lng+c.lng])}function on(t){for(var i=0,n=0,s=0,e=0;e<t.length;e++){var h=N(t[e]);i+=h.lat,n+=h.lng,s++}return N([i/s,n/s])}var rn,an={__proto__:null,clipPolygon:en,polygonCenter:hn,centroid:on};function un(t,i){if(!i||!t.length)return t.slice();var n=i*i;return function(t,i){var n=t.length,s=new(typeof Uint8Array!=void 0+""?Uint8Array:Array)(n);s[0]=s[n-1]=1,fn(t,s,i,0,n-1);var e,h=[];for(e=0;e<n;e++)s[e]&&h.push(t[e]);return h}(t=function(t,i){for(var n=[t[0]],s=1,e=0,h=t.length;s<h;s++)mn(t[s],t[e])>i&&(n.push(t[s]),e=s);return e<h-1&&n.push(t[h-1]),n}(t,n),n)}function cn(t,i,n){return Math.sqrt(pn(t,i,n,!0))}function fn(t,i,n,s,e){var h,o,r,a=0;for(o=s+1;o<=e-1;o++)(r=pn(t[o],t[s],t[e],!0))>a&&(h=o,a=r);a>n&&(i[h]=1,fn(t,i,n,s,h),fn(t,i,n,h,e))}function ln(t,i,n,s,e){var h,o,r,a=s?rn:vn(t,n),u=vn(i,n);for(rn=u;;){if(!(a|u))return[t,i];if(a&u)return!1;r=vn(o=dn(t,i,h=a||u,n,e),n),h===a?(t=o,a=r):(i=o,u=r)}}function dn(t,i,n,s,e){var h,o,r=i.x-t.x,a=i.y-t.y,u=s.min,c=s.max;return 8&n?(h=t.x+r*(c.y-t.y)/a,o=c.y):4&n?(h=t.x+r*(u.y-t.y)/a,o=u.y):2&n?(h=c.x,o=t.y+a*(c.x-t.x)/r):1&n&&(h=u.x,o=t.y+a*(u.x-t.x)/r),new A(h,o,e)}function vn(t,i){var n=0;return t.x<i.min.x?n|=1:t.x>i.max.x&&(n|=2),t.y<i.min.y?n|=4:t.y>i.max.y&&(n|=8),n}function mn(t,i){var n=i.x-t.x,s=i.y-t.y;return n*n+s*s}function pn(t,i,n,s){var e,h=i.x,o=i.y,r=n.x-h,a=n.y-o,u=r*r+a*a;return u>0&&((e=((t.x-h)*r+(t.y-o)*a)/u)>1?(h=n.x,o=n.y):e>0&&(h+=r*e,o+=a*e)),r=t.x-h,a=t.y-o,s?r*r+a*a:new A(h,o)}function gn(t){return!p(t[0])||"object"!=typeof t[0][0]&&void 0!==t[0][0]}function wn(t){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),gn(t)}function _n(t,i){var n,s,e,h,o,r,a,u;if(!t||0===t.length)throw new Error("latlngs not passed");gn(t)||(console.warn("latlngs are not flat! Only the first ring will be used"),t=t[0]);var c=N([0,0]),f=D(t);f.getNorthWest().distanceTo(f.getSouthWest())*f.getNorthEast().distanceTo(f.getNorthWest())<1700&&(c=on(t));var l=t.length,d=[];for(n=0;n<l;n++){var v=N(t[n]);d.push(i.project(N([v.lat-c.lat,v.lng-c.lng])))}for(n=0,s=0;n<l-1;n++)s+=d[n].distanceTo(d[n+1])/2;if(0===s)u=d[0];else for(n=0,h=0;n<l-1;n++)if((h+=e=(o=d[n]).distanceTo(r=d[n+1]))>s){u=[r.x-(a=(h-s)/e)*(r.x-o.x),r.y-a*(r.y-o.y)];break}var m=i.unproject(O(u));return N([m.lat+c.lat,m.lng+c.lng])}var yn={__proto__:null,simplify:un,pointToSegmentDistance:cn,closestPointOnSegment:function(t,i,n){return pn(t,i,n)},clipSegment:ln,_getEdgeIntersection:dn,_getBitCode:vn,_sqClosestPointOnSegment:pn,isFlat:gn,_flat:wn,polylineCenter:_n},Mn={project:function(t){return new A(t.lng,t.lat)},unproject:function(t){return new R(t.y,t.x)},bounds:new I([-180,-90],[180,90])},bn={R:6378137,R_MINOR:6356752.314245179,bounds:new I([-20037508.34279,-15496570.73972],[20037508.34279,18764656.23138]),project:function(t){var i=Math.PI/180,n=this.R,s=t.lat*i,e=this.R_MINOR/n,h=Math.sqrt(1-e*e),o=h*Math.sin(s),r=Math.tan(Math.PI/4-s/2)/Math.pow((1-o)/(1+o),h/2);return s=-n*Math.log(Math.max(r,1e-10)),new A(t.lng*i*n,s)},unproject:function(t){for(var i,n=180/Math.PI,s=this.R,e=this.R_MINOR/s,h=Math.sqrt(1-e*e),o=Math.exp(-t.y/s),r=Math.PI/2-2*Math.atan(o),a=0,u=.1;a<15&&Math.abs(u)>1e-7;a++)i=h*Math.sin(r),i=Math.pow((1-i)/(1+i),h/2),r+=u=Math.PI/2-2*Math.atan(o*i)-r;return new R(r*n,t.x*n/s)}},Pn={__proto__:null,LonLat:Mn,Mercator:bn,SphericalMercator:W},kn=i({},H,{code:"EPSG:3395",projection:bn,transformation:function(){var t=.5/(Math.PI*bn.R);return V(t,.5,-t,.5)}()}),Tn=i({},H,{code:"EPSG:4326",projection:Mn,transformation:V(1/180,1,-1/180,.5)}),Ln=i({},F,{projection:Mn,transformation:V(1,0,-1,0),scale:function(t){return Math.pow(2,t)},zoom:function(t){return Math.log(t)/Math.LN2},distance:function(t,i){var n=i.lng-t.lng,s=i.lat-t.lat;return Math.sqrt(n*n+s*s)},infinite:!0});F.Earth=H,F.EPSG3395=kn,F.EPSG3857=q,F.EPSG900913=J,F.EPSG4326=Tn,F.Simple=Ln;var zn=E.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(t){return t.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(t){return t&&t.removeLayer(this),this},getPane:function(t){return this._map.getPane(t?this.options[t]||t:this.options.pane)},addInteractiveTarget:function(t){return this._map._targets[h(t)]=this,this},removeInteractiveTarget:function(t){return delete this._map._targets[h(t)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(t){var i=t.target;if(i.hasLayer(this)){if(this._map=i,this._zoomAnimated=i._zoomAnimated,this.getEvents){var n=this.getEvents();i.on(n,this),this.once("remove",(function(){i.off(n,this)}),this)}this.onAdd(i),this.fire("add"),i.fire("layeradd",{layer:this})}}});Vi.include({addLayer:function(t){if(!t._layerAdd)throw new Error("The provided object is not a Layer.");var i=h(t);return this._layers[i]||(this._layers[i]=t,t._mapToAdd=this,t.beforeAdd&&t.beforeAdd(this),this.whenReady(t._layerAdd,t)),this},removeLayer:function(t){var i=h(t);return this._layers[i]?(this._loaded&&t.onRemove(this),delete this._layers[i],this._loaded&&(this.fire("layerremove",{layer:t}),t.fire("remove")),t._map=t._mapToAdd=null,this):this},hasLayer:function(t){return h(t)in this._layers},eachLayer:function(t,i){for(var n in this._layers)t.call(i,this._layers[n]);return this},_addLayers:function(t){for(var i=0,n=(t=t?p(t)?t:[t]:[]).length;i<n;i++)this.addLayer(t[i])},_addZoomLimit:function(t){isNaN(t.options.maxZoom)&&isNaN(t.options.minZoom)||(this._zoomBoundLayers[h(t)]=t,this._updateZoomLevels())},_removeZoomLimit:function(t){var i=h(t);this._zoomBoundLayers[i]&&(delete this._zoomBoundLayers[i],this._updateZoomLevels())},_updateZoomLevels:function(){var t=1/0,i=-1/0,n=this._getZoomSpan();for(var s in this._zoomBoundLayers){var e=this._zoomBoundLayers[s].options;t=void 0===e.minZoom?t:Math.min(t,e.minZoom),i=void 0===e.maxZoom?i:Math.max(i,e.maxZoom)}this._layersMaxZoom=i===-1/0?void 0:i,this._layersMinZoom=t===1/0?void 0:t,n!==this._getZoomSpan()&&this.fire("zoomlevelschange"),void 0===this.options.maxZoom&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),void 0===this.options.minZoom&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var xn=zn.extend({initialize:function(t,i){var n,s;if(l(this,i),this._layers={},t)for(n=0,s=t.length;n<s;n++)this.addLayer(t[n])},addLayer:function(t){var i=this.getLayerId(t);return this._layers[i]=t,this._map&&this._map.addLayer(t),this},removeLayer:function(t){var i=t in this._layers?t:this.getLayerId(t);return this._map&&this._layers[i]&&this._map.removeLayer(this._layers[i]),delete this._layers[i],this},hasLayer:function(t){return("number"==typeof t?t:this.getLayerId(t))in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(t){var i,n,s=Array.prototype.slice.call(arguments,1);for(i in this._layers)(n=this._layers[i])[t]&&n[t].apply(n,s);return this},onAdd:function(t){this.eachLayer(t.addLayer,t)},onRemove:function(t){this.eachLayer(t.removeLayer,t)},eachLayer:function(t,i){for(var n in this._layers)t.call(i,this._layers[n]);return this},getLayer:function(t){return this._layers[t]},getLayers:function(){var t=[];return this.eachLayer(t.push,t),t},setZIndex:function(t){return this.invoke("setZIndex",t)},getLayerId:function(t){return h(t)}}),Sn=xn.extend({addLayer:function(t){return this.hasLayer(t)?this:(t.addEventParent(this),xn.prototype.addLayer.call(this,t),this.fire("layeradd",{layer:t}))},removeLayer:function(t){return this.hasLayer(t)?(t in this._layers&&(t=this._layers[t]),t.removeEventParent(this),xn.prototype.removeLayer.call(this,t),this.fire("layerremove",{layer:t})):this},setStyle:function(t){return this.invoke("setStyle",t)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var t=new Z;for(var i in this._layers){var n=this._layers[i];t.extend(n.getBounds?n.getBounds():n.getLatLng())}return t}}),En=x.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(t){l(this,t)},createIcon:function(t){return this._createIcon("icon",t)},createShadow:function(t){return this._createIcon("shadow",t)},_createIcon:function(t,i){var n=this._getIconUrl(t);if(!n){if("icon"===t)throw new Error("iconUrl not set in Icon options (see the docs).");return null}var s=this._createImg(n,i&&"IMG"===i.tagName?i:null);return this._setIconStyles(s,t),(this.options.crossOrigin||""===this.options.crossOrigin)&&(s.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),s},_setIconStyles:function(t,i){var n=this.options,s=n[i+"Size"];"number"==typeof s&&(s=[s,s]);var e=O(s),h=O("shadow"===i&&n.shadowAnchor||n.iconAnchor||e&&e.divideBy(2,!0));t.className="leaflet-marker-"+i+" "+(n.className||""),h&&(t.style.marginLeft=-h.x+"px",t.style.marginTop=-h.y+"px"),e&&(t.style.width=e.x+"px",t.style.height=e.y+"px")},_createImg:function(t,i){return(i=i||document.createElement("img")).src=t,i},_getIconUrl:function(t){return It.retina&&this.options[t+"RetinaUrl"]||this.options[t+"Url"]}});var An=En.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(t){return"string"!=typeof An.imagePath&&(An.imagePath=this._detectIconPath()),(this.options.imagePath||An.imagePath)+En.prototype._getIconUrl.call(this,t)},_stripUrl:function(t){var i=function(t,i,n){var s=i.exec(t);return s&&s[n]};return(t=i(t,/^url\((['"])?(.+)\1\)$/,2))&&i(t,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var t=ei("div","leaflet-default-icon-path",document.body),i=si(t,"background-image")||si(t,"backgroundImage");if(document.body.removeChild(t),i=this._stripUrl(i))return i;var n=document.querySelector('link[href$="leaflet.css"]');return n?n.href.substring(0,n.href.length-11-1):""}}),Cn=Yi.extend({initialize:function(t){this._marker=t},addHooks:function(){var t=this._marker._icon;this._draggable||(this._draggable=new sn(t,t,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),ci(t,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon&&fi(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(t){var i=this._marker,n=i._map,s=this._marker.options.autoPanSpeed,e=this._marker.options.autoPanPadding,h=wi(i._icon),o=n.getPixelBounds(),r=n.getPixelOrigin(),a=B(o.min._subtract(r).add(e),o.max._subtract(r).subtract(e));if(!a.contains(h)){var u=O((Math.max(a.max.x,h.x)-a.max.x)/(o.max.x-a.max.x)-(Math.min(a.min.x,h.x)-a.min.x)/(o.min.x-a.min.x),(Math.max(a.max.y,h.y)-a.max.y)/(o.max.y-a.max.y)-(Math.min(a.min.y,h.y)-a.min.y)/(o.min.y-a.min.y)).multiplyBy(s);n.panBy(u,{animate:!1}),this._draggable._newPos._add(u),this._draggable._startPos._add(u),gi(i._icon,this._draggable._newPos),this._onDrag(t),this._panRequest=k(this._adjustPan.bind(this,t))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(t){this._marker.options.autoPan&&(T(this._panRequest),this._panRequest=k(this._adjustPan.bind(this,t)))},_onDrag:function(t){var i=this._marker,n=i._shadow,s=wi(i._icon),e=i._map.layerPointToLatLng(s);n&&gi(n,s),i._latlng=e,t.latlng=e,t.oldLatLng=this._oldLatLng,i.fire("move",t).fire("drag",t)},_onDragEnd:function(t){T(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",t)}}),On=zn.extend({options:{icon:new An,interactive:!0,keyboard:!0,title:"",alt:"Marker",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:!1,autoPanOnFocus:!0,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(t,i){l(this,i),this._latlng=N(t)},onAdd:function(t){this._zoomAnimated=this._zoomAnimated&&t.options.markerZoomAnimation,this._zoomAnimated&&t.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(t){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&t.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(t){var i=this._latlng;return this._latlng=N(t),this.update(),this.fire("move",{oldLatLng:i,latlng:this._latlng})},setZIndexOffset:function(t){return this.options.zIndexOffset=t,this.update()},getIcon:function(){return this.options.icon},setIcon:function(t){return this.options.icon=t,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){if(this._icon&&this._map){var t=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(t)}return this},_initIcon:function(){var t=this.options,i="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),n=t.icon.createIcon(this._icon),s=!1;n!==this._icon&&(this._icon&&this._removeIcon(),s=!0,t.title&&(n.title=t.title),"IMG"===n.tagName&&(n.alt=t.alt||"")),ci(n,i),t.keyboard&&(n.tabIndex="0",n.setAttribute("role","button")),this._icon=n,t.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&zi(n,"focus",this._panOnFocus,this);var e=t.icon.createShadow(this._shadow),h=!1;e!==this._shadow&&(this._removeShadow(),h=!0),e&&(ci(e,i),e.alt=""),this._shadow=e,t.opacity<1&&this._updateOpacity(),s&&this.getPane().appendChild(this._icon),this._initInteraction(),e&&h&&this.getPane(t.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&Si(this._icon,"focus",this._panOnFocus,this),hi(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&hi(this._shadow),this._shadow=null},_setPos:function(t){this._icon&&gi(this._icon,t),this._shadow&&gi(this._shadow,t),this._zIndex=t.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(t){this._icon&&(this._icon.style.zIndex=this._zIndex+t)},_animateZoom:function(t){var i=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center).round();this._setPos(i)},_initInteraction:function(){if(this.options.interactive&&(ci(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),Cn)){var t=this.options.draggable;this.dragging&&(t=this.dragging.enabled(),this.dragging.disable()),this.dragging=new Cn(this),t&&this.dragging.enable()}},setOpacity:function(t){return this.options.opacity=t,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var t=this.options.opacity;this._icon&&vi(this._icon,t),this._shadow&&vi(this._shadow,t)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var t=this._map;if(t){var i=this.options.icon.options,n=i.iconSize?O(i.iconSize):O(0,0),s=i.iconAnchor?O(i.iconAnchor):O(0,0);t.panInside(this._latlng,{paddingTopLeft:s,paddingBottomRight:n.subtract(s)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});var In=zn.extend({options:{stroke:!0,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:!0,bubblingMouseEvents:!0},beforeAdd:function(t){this._renderer=t.getRenderer(this)},onAdd:function(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){return this._map&&this._renderer._updatePath(this),this},setStyle:function(t){return l(this,t),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&t&&Object.prototype.hasOwnProperty.call(t,"weight")&&this._updateBounds()),this},bringToFront:function(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack:function(){return this._renderer&&this._renderer._bringToBack(this),this},getElement:function(){return this._path},_reset:function(){this._project(),this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+(this._renderer.options.tolerance||0)}}),Bn=In.extend({options:{fill:!0,radius:10},initialize:function(t,i){l(this,i),this._latlng=N(t),this._radius=this.options.radius},setLatLng:function(t){var i=this._latlng;return this._latlng=N(t),this.redraw(),this.fire("move",{oldLatLng:i,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(t){return this.options.radius=this._radius=t,this.redraw()},getRadius:function(){return this._radius},setStyle:function(t){var i=t&&t.radius||this._radius;return In.prototype.setStyle.call(this,t),this.setRadius(i),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var t=this._radius,i=this._radiusY||t,n=this._clickTolerance(),s=[t+n,i+n];this._pxBounds=new I(this._point.subtract(s),this._point.add(s))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(t){return t.distanceTo(this._point)<=this._radius+this._clickTolerance()}});var Zn=Bn.extend({initialize:function(t,n,s){if("number"==typeof n&&(n=i({},s,{radius:n})),l(this,n),this._latlng=N(t),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(t){return this._mRadius=t,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var t=[this._radius,this._radiusY||this._radius];return new Z(this._map.layerPointToLatLng(this._point.subtract(t)),this._map.layerPointToLatLng(this._point.add(t)))},setStyle:In.prototype.setStyle,_project:function(){var t=this._latlng.lng,i=this._latlng.lat,n=this._map,s=n.options.crs;if(s.distance===H.distance){var e=Math.PI/180,h=this._mRadius/H.R/e,o=n.project([i+h,t]),r=n.project([i-h,t]),a=o.add(r).divideBy(2),u=n.unproject(a).lat,c=Math.acos((Math.cos(h*e)-Math.sin(i*e)*Math.sin(u*e))/(Math.cos(i*e)*Math.cos(u*e)))/e;(isNaN(c)||0===c)&&(c=h/Math.cos(Math.PI/180*i)),this._point=a.subtract(n.getPixelOrigin()),this._radius=isNaN(c)?0:a.x-n.project([u,t-c]).x,this._radiusY=a.y-o.y}else{var f=s.unproject(s.project(this._latlng).subtract([this._mRadius,0]));this._point=n.latLngToLayerPoint(this._latlng),this._radius=this._point.x-n.latLngToLayerPoint(f).x}this._updateBounds()}});var Dn=In.extend({options:{smoothFactor:1,noClip:!1},initialize:function(t,i){l(this,i),this._setLatLngs(t)},getLatLngs:function(){return this._latlngs},setLatLngs:function(t){return this._setLatLngs(t),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(t){for(var i,n,s=1/0,e=null,h=pn,o=0,r=this._parts.length;o<r;o++)for(var a=this._parts[o],u=1,c=a.length;u<c;u++){var f=h(t,i=a[u-1],n=a[u],!0);f<s&&(s=f,e=h(t,i,n))}return e&&(e.distance=Math.sqrt(s)),e},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return _n(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(t,i){return i=i||this._defaultShape(),t=N(t),i.push(t),this._bounds.extend(t),this.redraw()},_setLatLngs:function(t){this._bounds=new Z,this._latlngs=this._convertLatLngs(t)},_defaultShape:function(){return gn(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(t){for(var i=[],n=gn(t),s=0,e=t.length;s<e;s++)n?(i[s]=N(t[s]),this._bounds.extend(i[s])):i[s]=this._convertLatLngs(t[s]);return i},_project:function(){var t=new I;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,t),this._bounds.isValid()&&t.isValid()&&(this._rawPxBounds=t,this._updateBounds())},_updateBounds:function(){var t=this._clickTolerance(),i=new A(t,t);this._rawPxBounds&&(this._pxBounds=new I([this._rawPxBounds.min.subtract(i),this._rawPxBounds.max.add(i)]))},_projectLatlngs:function(t,i,n){var s,e,h=t.length;if(t[0]instanceof R){for(e=[],s=0;s<h;s++)e[s]=this._map.latLngToLayerPoint(t[s]),n.extend(e[s]);i.push(e)}else for(s=0;s<h;s++)this._projectLatlngs(t[s],i,n)},_clipPoints:function(){var t=this._renderer._bounds;if(this._parts=[],this._pxBounds&&this._pxBounds.intersects(t))if(this.options.noClip)this._parts=this._rings;else{var i,n,s,e,h,o,r,a=this._parts;for(i=0,s=0,e=this._rings.length;i<e;i++)for(n=0,h=(r=this._rings[i]).length;n<h-1;n++)(o=ln(r[n],r[n+1],t,n,!0))&&(a[s]=a[s]||[],a[s].push(o[0]),o[1]===r[n+1]&&n!==h-2||(a[s].push(o[1]),s++))}},_simplifyPoints:function(){for(var t=this._parts,i=this.options.smoothFactor,n=0,s=t.length;n<s;n++)t[n]=un(t[n],i)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(t,i){var n,s,e,h,o,r,a=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(n=0,h=this._parts.length;n<h;n++)for(s=0,e=(o=(r=this._parts[n]).length)-1;s<o;e=s++)if((i||0!==s)&&cn(t,r[e],r[s])<=a)return!0;return!1}});Dn._flat=wn;var Rn=Dn.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 hn(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(t){var i=Dn.prototype._convertLatLngs.call(this,t),n=i.length;return n>=2&&i[0]instanceof R&&i[0].equals(i[n-1])&&i.pop(),i},_setLatLngs:function(t){Dn.prototype._setLatLngs.call(this,t),gn(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return gn(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var t=this._renderer._bounds,i=this.options.weight,n=new A(i,i);if(t=new I(t.min.subtract(n),t.max.add(n)),this._parts=[],this._pxBounds&&this._pxBounds.intersects(t))if(this.options.noClip)this._parts=this._rings;else for(var s,e=0,h=this._rings.length;e<h;e++)(s=en(this._rings[e],t,!0)).length&&this._parts.push(s)},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(t){var i,n,s,e,h,o,r,a,u=!1;if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(e=0,r=this._parts.length;e<r;e++)for(h=0,o=(a=(i=this._parts[e]).length)-1;h<a;o=h++)(n=i[h]).y>t.y!=(s=i[o]).y>t.y&&t.x<(s.x-n.x)*(t.y-n.y)/(s.y-n.y)+n.x&&(u=!u);return u||Dn.prototype._containsPoint.call(this,t,!0)}});var Nn=Sn.extend({initialize:function(t,i){l(this,i),this._layers={},t&&this.addData(t)},addData:function(t){var i,n,s,e=p(t)?t:t.features;if(e){for(i=0,n=e.length;i<n;i++)((s=e[i]).geometries||s.geometry||s.features||s.coordinates)&&this.addData(s);return this}var h=this.options;if(h.filter&&!h.filter(t))return this;var o=jn(t,h);return o?(o.feature=qn(t),o.defaultOptions=o.options,this.resetStyle(o),h.onEachFeature&&h.onEachFeature(t,o),this.addLayer(o)):this},resetStyle:function(t){return void 0===t?this.eachLayer(this.resetStyle,this):(t.options=i({},t.defaultOptions),this._setLayerStyle(t,this.options.style),this)},setStyle:function(t){return this.eachLayer((function(i){this._setLayerStyle(i,t)}),this)},_setLayerStyle:function(t,i){t.setStyle&&("function"==typeof i&&(i=i(t.feature)),t.setStyle(i))}});function jn(t,i){var n,s,e,h,o="Feature"===t.type?t.geometry:t,r=o?o.coordinates:null,a=[],u=i&&i.pointToLayer,c=i&&i.coordsToLatLng||Hn;if(!r&&!o)return null;switch(o.type){case"Point":return Fn(u,t,n=c(r),i);case"MultiPoint":for(e=0,h=r.length;e<h;e++)n=c(r[e]),a.push(Fn(u,t,n,i));return new Sn(a);case"LineString":case"MultiLineString":return s=Un(r,"LineString"===o.type?0:1,c),new Dn(s,i);case"Polygon":case"MultiPolygon":return s=Un(r,"Polygon"===o.type?1:2,c),new Rn(s,i);case"GeometryCollection":for(e=0,h=o.geometries.length;e<h;e++){var f=jn({geometry:o.geometries[e],type:"Feature",properties:t.properties},i);f&&a.push(f)}return new Sn(a);case"FeatureCollection":for(e=0,h=o.features.length;e<h;e++){var l=jn(o.features[e],i);l&&a.push(l)}return new Sn(a);default:throw new Error("Invalid GeoJSON object.")}}function Fn(t,i,n,s){return t?t(i,n):new On(n,s&&s.markersInheritOptions&&s)}function Hn(t){return new R(t[1],t[0],t[2])}function Un(t,i,n){for(var s,e=[],h=0,o=t.length;h<o;h++)s=i?Un(t[h],i-1,n):(n||Hn)(t[h]),e.push(s);return e}function Wn(t,i){return void 0!==(t=N(t)).alt?[u(t.lng,i),u(t.lat,i),u(t.alt,i)]:[u(t.lng,i),u(t.lat,i)]}function Gn(t,i,n,s){for(var e=[],h=0,o=t.length;h<o;h++)e.push(i?Gn(t[h],gn(t[h])?0:i-1,n,s):Wn(t[h],s));return!i&&n&&e.length>0&&e.push(e[0].slice()),e}function Vn(t,n){return t.feature?i({},t.feature,{geometry:n}):qn(n)}function qn(t){return"Feature"===t.type||"FeatureCollection"===t.type?t:{type:"Feature",properties:{},geometry:t}}var Jn={toGeoJSON:function(t){return Vn(this,{type:"Point",coordinates:Wn(this.getLatLng(),t)})}};function Kn(t,i){return new Nn(t,i)}On.include(Jn),Zn.include(Jn),Bn.include(Jn),Dn.include({toGeoJSON:function(t){var i=!gn(this._latlngs);return Vn(this,{type:(i?"Multi":"")+"LineString",coordinates:Gn(this._latlngs,i?1:0,!1,t)})}}),Rn.include({toGeoJSON:function(t){var i=!gn(this._latlngs),n=i&&!gn(this._latlngs[0]),s=Gn(this._latlngs,n?2:i?1:0,!0,t);return i||(s=[s]),Vn(this,{type:(n?"Multi":"")+"Polygon",coordinates:s})}}),xn.include({toMultiPoint:function(t){var i=[];return this.eachLayer((function(n){i.push(n.toGeoJSON(t).geometry.coordinates)})),Vn(this,{type:"MultiPoint",coordinates:i})},toGeoJSON:function(t){var i=this.feature&&this.feature.geometry&&this.feature.geometry.type;if("MultiPoint"===i)return this.toMultiPoint(t);var n="GeometryCollection"===i,s=[];return this.eachLayer((function(i){if(i.toGeoJSON){var e=i.toGeoJSON(t);if(n)s.push(e.geometry);else{var h=qn(e);"FeatureCollection"===h.type?s.push.apply(s,h.features):s.push(h)}}})),n?Vn(this,{geometries:s,type:"GeometryCollection"}):{type:"FeatureCollection",features:s}}});var Xn=Kn,$n=zn.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(t,i,n){this._url=t,this._bounds=D(i),l(this,n)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(ci(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){hi(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(t){return this.options.opacity=t,this._image&&this._updateOpacity(),this},setStyle:function(t){return t.opacity&&this.setOpacity(t.opacity),this},bringToFront:function(){return this._map&&ri(this._image),this},bringToBack:function(){return this._map&&ai(this._image),this},setUrl:function(t){return this._url=t,this._image&&(this._image.src=t),this},setBounds:function(t){return this._bounds=D(t),this._map&&this._reset(),this},getEvents:function(){var t={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var t="IMG"===this._url.tagName,i=this._image=t?this._url:ei("img");ci(i,"leaflet-image-layer"),this._zoomAnimated&&ci(i,"leaflet-zoom-animated"),this.options.className&&ci(i,this.options.className),i.onselectstart=a,i.onmousemove=a,i.onload=s(this.fire,this,"load"),i.onerror=s(this._overlayOnError,this,"error"),(this.options.crossOrigin||""===this.options.crossOrigin)&&(i.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),t?this._url=i.src:(i.src=this._url,i.alt=this.options.alt)},_animateZoom:function(t){var i=this._map.getZoomScale(t.zoom),n=this._map._latLngBoundsToNewLayerBounds(this._bounds,t.zoom,t.center).min;pi(this._image,n,i)},_reset:function(){var t=this._image,i=new I(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),n=i.getSize();gi(t,i.min),t.style.width=n.x+"px",t.style.height=n.y+"px"},_updateOpacity:function(){vi(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&null!=this.options.zIndex&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var t=this.options.errorOverlayUrl;t&&this._url!==t&&(this._url=t,this._image.src=t)},getCenter:function(){return this._bounds.getCenter()}}),Qn=$n.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var t="VIDEO"===this._url.tagName,i=this._image=t?this._url:ei("video");if(ci(i,"leaflet-image-layer"),this._zoomAnimated&&ci(i,"leaflet-zoom-animated"),this.options.className&&ci(i,this.options.className),i.onselectstart=a,i.onmousemove=a,i.onloadeddata=s(this.fire,this,"load"),t){for(var n=i.getElementsByTagName("source"),e=[],h=0;h<n.length;h++)e.push(n[h].src);this._url=n.length>0?e:[i.src]}else{p(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(i.style,"objectFit")&&(i.style.objectFit="fill"),i.autoplay=!!this.options.autoplay,i.loop=!!this.options.loop,i.muted=!!this.options.muted,i.playsInline=!!this.options.playsInline;for(var o=0;o<this._url.length;o++){var r=ei("source");r.src=this._url[o],i.appendChild(r)}}}});var Yn=$n.extend({_initImage:function(){var t=this._image=this._url;ci(t,"leaflet-image-layer"),this._zoomAnimated&&ci(t,"leaflet-zoom-animated"),this.options.className&&ci(t,this.options.className),t.onselectstart=a,t.onmousemove=a}});var ts=zn.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(t,i){t&&(t instanceof R||p(t))?(this._latlng=N(t),l(this,i)):(l(this,t),this._source=i),this.options.content&&(this._content=this.options.content)},openOn:function(t){return(t=arguments.length?t:this._source._map).hasLayer(this)||t.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(t){return this._map?this.close():(arguments.length?this._source=t:t=this._source,this._prepareOpen(),this.openOn(t._map)),this},onAdd:function(t){this._zoomAnimated=t._zoomAnimated,this._container||this._initLayout(),t._fadeAnimated&&vi(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),t._fadeAnimated&&vi(this._container,1),this.bringToFront(),this.options.interactive&&(ci(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(t){t._fadeAnimated?(vi(this._container,0),this._removeTimeout=setTimeout(s(hi,void 0,this._container),200)):hi(this._container),this.options.interactive&&(fi(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(t){return this._latlng=N(t),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(t){return this._content=t,this.update(),this},getElement:function(){return this._container},update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},getEvents:function(){var t={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&ri(this._container),this},bringToBack:function(){return this._map&&ai(this._container),this},_prepareOpen:function(t){var i=this._source;if(!i._map)return!1;if(i instanceof Sn){i=null;var n=this._source._layers;for(var s in n)if(n[s]._map){i=n[s];break}if(!i)return!1;this._source=i}if(!t)if(i.getCenter)t=i.getCenter();else if(i.getLatLng)t=i.getLatLng();else{if(!i.getBounds)throw new Error("Unable to get source layer LatLng.");t=i.getBounds().getCenter()}return this.setLatLng(t),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var t=this._contentNode,i="function"==typeof this._content?this._content(this._source||this):this._content;if("string"==typeof i)t.innerHTML=i;else{for(;t.hasChildNodes();)t.removeChild(t.firstChild);t.appendChild(i)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var t=this._map.latLngToLayerPoint(this._latlng),i=O(this.options.offset),n=this._getAnchor();this._zoomAnimated?gi(this._container,t.add(n)):i=i.add(t).add(n);var s=this._containerBottom=-i.y,e=this._containerLeft=-Math.round(this._containerWidth/2)+i.x;this._container.style.bottom=s+"px",this._container.style.left=e+"px"}},_getAnchor:function(){return[0,0]}});Vi.include({_initOverlay:function(t,i,n,s){var e=i;return e instanceof t||(e=new t(s).setContent(i)),n&&e.setLatLng(n),e}}),zn.include({_initOverlay:function(t,i,n,s){var e=n;return e instanceof t?(l(e,s),e._source=this):(e=i&&!s?i:new t(s,this)).setContent(n),e}});var is=ts.extend({options:{pane:"popupPane",offset:[0,7],maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,autoClose:!0,closeOnEscapeKey:!0,className:""},openOn:function(t){return!(t=arguments.length?t:this._source._map).hasLayer(this)&&t._popup&&t._popup.options.autoClose&&t.removeLayer(t._popup),t._popup=this,ts.prototype.openOn.call(this,t)},onAdd:function(t){ts.prototype.onAdd.call(this,t),t.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof In||this._source.on("preclick",Ii))},onRemove:function(t){ts.prototype.onRemove.call(this,t),t.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof In||this._source.off("preclick",Ii))},getEvents:function(){var t=ts.prototype.getEvents.call(this);return(void 0!==this.options.closeOnClick?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(t.preclick=this.close),this.options.keepInView&&(t.moveend=this._adjustPan),t},_initLayout:function(){var t="leaflet-popup",i=this._container=ei("div",t+" "+(this.options.className||"")+" leaflet-zoom-animated"),n=this._wrapper=ei("div",t+"-content-wrapper",i);if(this._contentNode=ei("div",t+"-content",n),Zi(i),Bi(this._contentNode),zi(i,"contextmenu",Ii),this._tipContainer=ei("div",t+"-tip-container",i),this._tip=ei("div",t+"-tip",this._tipContainer),this.options.closeButton){var s=this._closeButton=ei("a",t+"-close-button",i);s.setAttribute("role","button"),s.setAttribute("aria-label","Close popup"),s.href="#close",s.innerHTML='<span aria-hidden="true">&#215;</span>',zi(s,"click",(function(t){Di(t),this.close()}),this)}},_updateLayout:function(){var t=this._contentNode,i=t.style;i.width="",i.whiteSpace="nowrap";var n=t.offsetWidth;n=Math.min(n,this.options.maxWidth),n=Math.max(n,this.options.minWidth),i.width=n+1+"px",i.whiteSpace="",i.height="";var s=this.options.maxHeight,e="leaflet-popup-scrolled";s&&t.offsetHeight>s?(i.height=s+"px",ci(t,e)):fi(t,e),this._containerWidth=this._container.offsetWidth},_animateZoom:function(t){var i=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center),n=this._getAnchor();gi(this._container,i.add(n))},_adjustPan:function(){if(this.options.autoPan)if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning)this._autopanning=!1;else{var t=this._map,i=parseInt(si(this._container,"marginBottom"),10)||0,n=this._container.offsetHeight+i,s=this._containerWidth,e=new A(this._containerLeft,-n-this._containerBottom);e._add(wi(this._container));var h=t.layerPointToContainerPoint(e),o=O(this.options.autoPanPadding),r=O(this.options.autoPanPaddingTopLeft||o),a=O(this.options.autoPanPaddingBottomRight||o),u=t.getSize(),c=0,f=0;h.x+s+a.x>u.x&&(c=h.x+s-u.x+a.x),h.x-c-r.x<0&&(c=h.x-r.x),h.y+n+a.y>u.y&&(f=h.y+n-u.y+a.y),h.y-f-r.y<0&&(f=h.y-r.y),(c||f)&&(this.options.keepInView&&(this._autopanning=!0),t.fire("autopanstart").panBy([c,f]))}},_getAnchor:function(){return O(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}});Vi.mergeOptions({closePopupOnClick:!0}),Vi.include({openPopup:function(t,i,n){return this._initOverlay(is,t,i,n).openOn(this),this},closePopup:function(t){return(t=arguments.length?t:this._popup)&&t.close(),this}}),zn.include({bindPopup:function(t,i){return this._popup=this._initOverlay(is,this._popup,t,i),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(t){return this._popup&&(this instanceof Sn||(this._popup._source=this),this._popup._prepareOpen(t||this._latlng)&&this._popup.openOn(this._map)),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return!!this._popup&&this._popup.isOpen()},setPopupContent:function(t){return this._popup&&this._popup.setContent(t),this},getPopup:function(){return this._popup},_openPopup:function(t){if(this._popup&&this._map){Ri(t);var i=t.layer||t.target;this._popup._source!==i||i instanceof In?(this._popup._source=i,this.openPopup(t.latlng)):this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(t.latlng)}},_movePopup:function(t){this._popup.setLatLng(t.latlng)},_onKeyPress:function(t){13===t.originalEvent.keyCode&&this._openPopup(t)}});var ns=ts.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(t){ts.prototype.onAdd.call(this,t),this.setOpacity(this.options.opacity),t.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(t){ts.prototype.onRemove.call(this,t),t.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var t=ts.prototype.getEvents.call(this);return this.options.permanent||(t.preclick=this.close),t},_initLayout:function(){this._contentNode=this._container=ei("div","leaflet-tooltip "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide")),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+h(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(t){var i,n,s=this._map,e=this._container,h=s.latLngToContainerPoint(s.getCenter()),o=s.layerPointToContainerPoint(t),r=this.options.direction,a=e.offsetWidth,u=e.offsetHeight,c=O(this.options.offset),f=this._getAnchor();"top"===r?(i=a/2,n=u):"bottom"===r?(i=a/2,n=0):"center"===r?(i=a/2,n=u/2):"right"===r?(i=0,n=u/2):"left"===r?(i=a,n=u/2):o.x<h.x?(r="right",i=0,n=u/2):(r="left",i=a+2*(c.x+f.x),n=u/2),t=t.subtract(O(i,n,!0)).add(c).add(f),fi(e,"leaflet-tooltip-right"),fi(e,"leaflet-tooltip-left"),fi(e,"leaflet-tooltip-top"),fi(e,"leaflet-tooltip-bottom"),ci(e,"leaflet-tooltip-"+r),gi(e,t)},_updatePosition:function(){var t=this._map.latLngToLayerPoint(this._latlng);this._setPosition(t)},setOpacity:function(t){this.options.opacity=t,this._container&&vi(this._container,t)},_animateZoom:function(t){var i=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center);this._setPosition(i)},_getAnchor:function(){return O(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}});Vi.include({openTooltip:function(t,i,n){return this._initOverlay(ns,t,i,n).openOn(this),this},closeTooltip:function(t){return t.close(),this}}),zn.include({bindTooltip:function(t,i){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(ns,this._tooltip,t,i),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip:function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions:function(t){if(t||!this._tooltipHandlersAdded){var i=t?"off":"on",n={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?n.add=this._openTooltip:(n.mouseover=this._openTooltip,n.mouseout=this.closeTooltip,n.click=this._openTooltip,this._map?this._addFocusListeners():n.add=this._addFocusListeners),this._tooltip.options.sticky&&(n.mousemove=this._moveTooltip),this[i](n),this._tooltipHandlersAdded=!t}},openTooltip:function(t){return this._tooltip&&(this instanceof Sn||(this._tooltip._source=this),this._tooltip._prepareOpen(t)&&(this._tooltip.openOn(this._map),this.getElement?this._setAriaDescribedByOnLayer(this):this.eachLayer&&this.eachLayer(this._setAriaDescribedByOnLayer,this))),this},closeTooltip:function(){if(this._tooltip)return this._tooltip.close()},toggleTooltip:function(){return this._tooltip&&this._tooltip.toggle(this),this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(t){return this._tooltip&&this._tooltip.setContent(t),this},getTooltip:function(){return this._tooltip},_addFocusListeners:function(){this.getElement?this._addFocusListenersOnLayer(this):this.eachLayer&&this.eachLayer(this._addFocusListenersOnLayer,this)},_addFocusListenersOnLayer:function(t){var i="function"==typeof t.getElement&&t.getElement();i&&(zi(i,"focus",(function(){this._tooltip._source=t,this.openTooltip()}),this),zi(i,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(t){var i="function"==typeof t.getElement&&t.getElement();i&&i.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(t){if(this._tooltip&&this._map)if(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag){this._openOnceFlag=!0;var i=this;this._map.once("moveend",(function(){i._openOnceFlag=!1,i._openTooltip(t)}))}else this._tooltip._source=t.layer||t.target,this.openTooltip(this._tooltip.options.sticky?t.latlng:void 0)},_moveTooltip:function(t){var i,n,s=t.latlng;this._tooltip.options.sticky&&t.originalEvent&&(i=this._map.mouseEventToContainerPoint(t.originalEvent),n=this._map.containerPointToLayerPoint(i),s=this._map.layerPointToLatLng(n)),this._tooltip.setLatLng(s)}});var ss=En.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(t){var i=t&&"DIV"===t.tagName?t:document.createElement("div"),n=this.options;if(n.html instanceof Element?(oi(i),i.appendChild(n.html)):i.innerHTML=!1!==n.html?n.html:"",n.bgPos){var s=O(n.bgPos);i.style.backgroundPosition=-s.x+"px "+-s.y+"px"}return this._setIconStyles(i,"icon"),i},createShadow:function(){return null}});En.Default=An;var es=zn.extend({options:{tileSize:256,opacity:1,updateWhenIdle:It.mobile,updateWhenZooming:!0,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:void 0,maxNativeZoom:void 0,minNativeZoom:void 0,noWrap:!1,pane:"tilePane",className:"",keepBuffer:2},initialize:function(t){l(this,t)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(t){t._addZoomLimit(this)},onRemove:function(t){this._removeAllTiles(),hi(this._container),t._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(ri(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(ai(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(t){return this.options.opacity=t,this._updateOpacity(),this},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var t=this._clampZoom(this._map.getZoom());t!==this._tileZoom&&(this._tileZoom=t,this._updateLevels()),this._update()}return this},getEvents:function(){var t={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=o(this._onMoveEnd,this.options.updateInterval,this)),t.move=this._onMove),this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},createTile:function(){return document.createElement("div")},getTileSize:function(){var t=this.options.tileSize;return t instanceof A?t:new A(t,t)},_updateZIndex:function(){this._container&&null!=this.options.zIndex&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(t){for(var i,n=this.getPane().children,s=-t(-1/0,1/0),e=0,h=n.length;e<h;e++)i=n[e].style.zIndex,n[e]!==this._container&&i&&(s=t(s,+i));isFinite(s)&&(this.options.zIndex=s+t(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!It.ielt9){vi(this._container,this.options.opacity);var t=+new Date,i=!1,n=!1;for(var s in this._tiles){var e=this._tiles[s];if(e.current&&e.loaded){var h=Math.min(1,(t-e.loaded)/200);vi(e.el,h),h<1?i=!0:(e.active?n=!0:this._onOpaqueTile(e),e.active=!0)}}n&&!this._noPrune&&this._pruneTiles(),i&&(T(this._fadeFrame),this._fadeFrame=k(this._updateOpacity,this))}},_onOpaqueTile:a,_initContainer:function(){this._container||(this._container=ei("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var t=this._tileZoom,i=this.options.maxZoom;if(void 0!==t){for(var n in this._levels)n=Number(n),this._levels[n].el.children.length||n===t?(this._levels[n].el.style.zIndex=i-Math.abs(t-n),this._onUpdateLevel(n)):(hi(this._levels[n].el),this._removeTilesAtZoom(n),this._onRemoveLevel(n),delete this._levels[n]);var s=this._levels[t],e=this._map;return s||((s=this._levels[t]={}).el=ei("div","leaflet-tile-container leaflet-zoom-animated",this._container),s.el.style.zIndex=i,s.origin=e.project(e.unproject(e.getPixelOrigin()),t).round(),s.zoom=t,this._setZoomTransform(s,e.getCenter(),e.getZoom()),this._onCreateLevel(s)),this._level=s,s}},_onUpdateLevel:a,_onRemoveLevel:a,_onCreateLevel:a,_pruneTiles:function(){if(this._map){var t,i,n=this._map.getZoom();if(n>this.options.maxZoom||n<this.options.minZoom)this._removeAllTiles();else{for(t in this._tiles)(i=this._tiles[t]).retain=i.current;for(t in this._tiles)if((i=this._tiles[t]).current&&!i.active){var s=i.coords;this._retainParent(s.x,s.y,s.z,s.z-5)||this._retainChildren(s.x,s.y,s.z,s.z+2)}for(t in this._tiles)this._tiles[t].retain||this._removeTile(t)}}},_removeTilesAtZoom:function(t){for(var i in this._tiles)this._tiles[i].coords.z===t&&this._removeTile(i)},_removeAllTiles:function(){for(var t in this._tiles)this._removeTile(t)},_invalidateAll:function(){for(var t in this._levels)hi(this._levels[t].el),this._onRemoveLevel(Number(t)),delete this._levels[t];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(t,i,n,s){var e=Math.floor(t/2),h=Math.floor(i/2),o=n-1,r=new A(+e,+h);r.z=+o;var a=this._tileCoordsToKey(r),u=this._tiles[a];return u&&u.active?(u.retain=!0,!0):(u&&u.loaded&&(u.retain=!0),o>s&&this._retainParent(e,h,o,s))},_retainChildren:function(t,i,n,s){for(var e=2*t;e<2*t+2;e++)for(var h=2*i;h<2*i+2;h++){var o=new A(e,h);o.z=n+1;var r=this._tileCoordsToKey(o),a=this._tiles[r];a&&a.active?a.retain=!0:(a&&a.loaded&&(a.retain=!0),n+1<s&&this._retainChildren(e,h,n+1,s))}},_resetView:function(t){var i=t&&(t.pinch||t.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),i,i)},_animateZoom:function(t){this._setView(t.center,t.zoom,!0,t.noUpdate)},_clampZoom:function(t){var i=this.options;return void 0!==i.minNativeZoom&&t<i.minNativeZoom?i.minNativeZoom:void 0!==i.maxNativeZoom&&i.maxNativeZoom<t?i.maxNativeZoom:t},_setView:function(t,i,n,s){var e=Math.round(i);e=void 0!==this.options.maxZoom&&e>this.options.maxZoom||void 0!==this.options.minZoom&&e<this.options.minZoom?void 0:this._clampZoom(e),s&&!(this.options.updateWhenZooming&&e!==this._tileZoom)||(this._tileZoom=e,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),void 0!==e&&this._update(t),n||this._pruneTiles(),this._noPrune=!!n),this._setZoomTransforms(t,i)},_setZoomTransforms:function(t,i){for(var n in this._levels)this._setZoomTransform(this._levels[n],t,i)},_setZoomTransform:function(t,i,n){var s=this._map.getZoomScale(n,t.zoom),e=t.origin.multiplyBy(s).subtract(this._map._getNewPixelOrigin(i,n)).round();It.any3d?pi(t.el,e,s):gi(t.el,e)},_resetGrid:function(){var t=this._map,i=t.options.crs,n=this._tileSize=this.getTileSize(),s=this._tileZoom,e=this._map.getPixelWorldBounds(this._tileZoom);e&&(this._globalTileRange=this._pxBoundsToTileRange(e)),this._wrapX=i.wrapLng&&!this.options.noWrap&&[Math.floor(t.project([0,i.wrapLng[0]],s).x/n.x),Math.ceil(t.project([0,i.wrapLng[1]],s).x/n.y)],this._wrapY=i.wrapLat&&!this.options.noWrap&&[Math.floor(t.project([i.wrapLat[0],0],s).y/n.x),Math.ceil(t.project([i.wrapLat[1],0],s).y/n.y)]},_onMoveEnd:function(){this._map&&!this._map._animatingZoom&&this._update()},_getTiledPixelBounds:function(t){var i=this._map,n=i._animatingZoom?Math.max(i._animateToZoom,i.getZoom()):i.getZoom(),s=i.getZoomScale(n,this._tileZoom),e=i.project(t,this._tileZoom).floor(),h=i.getSize().divideBy(2*s);return new I(e.subtract(h),e.add(h))},_update:function(t){var i=this._map;if(i){var n=this._clampZoom(i.getZoom());if(void 0===t&&(t=i.getCenter()),void 0!==this._tileZoom){var s=this._getTiledPixelBounds(t),e=this._pxBoundsToTileRange(s),h=e.getCenter(),o=[],r=this.options.keepBuffer,a=new I(e.getBottomLeft().subtract([r,-r]),e.getTopRight().add([r,-r]));if(!(isFinite(e.min.x)&&isFinite(e.min.y)&&isFinite(e.max.x)&&isFinite(e.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var u in this._tiles){var c=this._tiles[u].coords;c.z===this._tileZoom&&a.contains(new A(c.x,c.y))||(this._tiles[u].current=!1)}if(Math.abs(n-this._tileZoom)>1)this._setView(t,n);else{for(var f=e.min.y;f<=e.max.y;f++)for(var l=e.min.x;l<=e.max.x;l++){var d=new A(l,f);if(d.z=this._tileZoom,this._isValidTile(d)){var v=this._tiles[this._tileCoordsToKey(d)];v?v.current=!0:o.push(d)}}if(o.sort((function(t,i){return t.distanceTo(h)-i.distanceTo(h)})),0!==o.length){this._loading||(this._loading=!0,this.fire("loading"));var m=document.createDocumentFragment();for(l=0;l<o.length;l++)this._addTile(o[l],m);this._level.el.appendChild(m)}}}}},_isValidTile:function(t){var i=this._map.options.crs;if(!i.infinite){var n=this._globalTileRange;if(!i.wrapLng&&(t.x<n.min.x||t.x>n.max.x)||!i.wrapLat&&(t.y<n.min.y||t.y>n.max.y))return!1}if(!this.options.bounds)return!0;var s=this._tileCoordsToBounds(t);return D(this.options.bounds).overlaps(s)},_keyToBounds:function(t){return this._tileCoordsToBounds(this._keyToTileCoords(t))},_tileCoordsToNwSe:function(t){var i=this._map,n=this.getTileSize(),s=t.scaleBy(n),e=s.add(n);return[i.unproject(s,t.z),i.unproject(e,t.z)]},_tileCoordsToBounds:function(t){var i=this._tileCoordsToNwSe(t),n=new Z(i[0],i[1]);return this.options.noWrap||(n=this._map.wrapLatLngBounds(n)),n},_tileCoordsToKey:function(t){return t.x+":"+t.y+":"+t.z},_keyToTileCoords:function(t){var i=t.split(":"),n=new A(+i[0],+i[1]);return n.z=+i[2],n},_removeTile:function(t){var i=this._tiles[t];i&&(hi(i.el),delete this._tiles[t],this.fire("tileunload",{tile:i.el,coords:this._keyToTileCoords(t)}))},_initTile:function(t){ci(t,"leaflet-tile");var i=this.getTileSize();t.style.width=i.x+"px",t.style.height=i.y+"px",t.onselectstart=a,t.onmousemove=a,It.ielt9&&this.options.opacity<1&&vi(t,this.options.opacity)},_addTile:function(t,i){var n=this._getTilePos(t),e=this._tileCoordsToKey(t),h=this.createTile(this._wrapCoords(t),s(this._tileReady,this,t));this._initTile(h),this.createTile.length<2&&k(s(this._tileReady,this,t,null,h)),gi(h,n),this._tiles[e]={el:h,coords:t,current:!0},i.appendChild(h),this.fire("tileloadstart",{tile:h,coords:t})},_tileReady:function(t,i,n){i&&this.fire("tileerror",{error:i,tile:n,coords:t});var e=this._tileCoordsToKey(t);(n=this._tiles[e])&&(n.loaded=+new Date,this._map._fadeAnimated?(vi(n.el,0),T(this._fadeFrame),this._fadeFrame=k(this._updateOpacity,this)):(n.active=!0,this._pruneTiles()),i||(ci(n.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:n.el,coords:t})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),It.ielt9||!this._map._fadeAnimated?k(this._pruneTiles,this):setTimeout(s(this._pruneTiles,this),250)))},_getTilePos:function(t){return t.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(t){var i=new A(this._wrapX?r(t.x,this._wrapX):t.x,this._wrapY?r(t.y,this._wrapY):t.y);return i.z=t.z,i},_pxBoundsToTileRange:function(t){var i=this.getTileSize();return new I(t.min.unscaleBy(i).floor(),t.max.unscaleBy(i).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var t in this._tiles)if(!this._tiles[t].loaded)return!1;return!0}});var hs=es.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(t,i){this._url=t,(i=l(this,i)).detectRetina&&It.retina&&i.maxZoom>0?(i.tileSize=Math.floor(i.tileSize/2),i.zoomReverse?(i.zoomOffset--,i.minZoom=Math.min(i.maxZoom,i.minZoom+1)):(i.zoomOffset++,i.maxZoom=Math.max(i.minZoom,i.maxZoom-1)),i.minZoom=Math.max(0,i.minZoom)):i.zoomReverse?i.minZoom=Math.min(i.maxZoom,i.minZoom):i.maxZoom=Math.max(i.minZoom,i.maxZoom),"string"==typeof i.subdomains&&(i.subdomains=i.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(t,i){return this._url===t&&void 0===i&&(i=!0),this._url=t,i||this.redraw(),this},createTile:function(t,i){var n=document.createElement("img");return zi(n,"load",s(this._tileOnLoad,this,i,n)),zi(n,"error",s(this._tileOnError,this,i,n)),(this.options.crossOrigin||""===this.options.crossOrigin)&&(n.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),"string"==typeof this.options.referrerPolicy&&(n.referrerPolicy=this.options.referrerPolicy),n.alt="",n.src=this.getTileUrl(t),n},getTileUrl:function(t){var n={r:It.retina?"@2x":"",s:this._getSubdomain(t),x:t.x,y:t.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var s=this._globalTileRange.max.y-t.y;this.options.tms&&(n.y=s),n["-y"]=s}return m(this._url,i(n,this.options))},_tileOnLoad:function(t,i){It.ielt9?setTimeout(s(t,this,null,i),0):t(null,i)},_tileOnError:function(t,i,n){var s=this.options.errorTileUrl;s&&i.getAttribute("src")!==s&&(i.src=s),t(n,i)},_onTileRemove:function(t){t.tile.onload=null},_getZoomForUrl:function(){var t=this._tileZoom;return this.options.zoomReverse&&(t=this.options.maxZoom-t),t+this.options.zoomOffset},_getSubdomain:function(t){var i=Math.abs(t.x+t.y)%this.options.subdomains.length;return this.options.subdomains[i]},_abortLoading:function(){var t,i;for(t in this._tiles)if(this._tiles[t].coords.z!==this._tileZoom&&((i=this._tiles[t].el).onload=a,i.onerror=a,!i.complete)){i.src=w;var n=this._tiles[t].coords;hi(i),delete this._tiles[t],this.fire("tileabort",{tile:i,coords:n})}},_removeTile:function(t){var i=this._tiles[t];if(i)return i.el.setAttribute("src",w),es.prototype._removeTile.call(this,t)},_tileReady:function(t,i,n){if(this._map&&(!n||n.getAttribute("src")!==w))return es.prototype._tileReady.call(this,t,i,n)}});function os(t,i){return new hs(t,i)}var rs=hs.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(t,n){this._url=t;var s=i({},this.defaultWmsParams);for(var e in n)e in this.options||(s[e]=n[e]);var h=(n=l(this,n)).detectRetina&&It.retina?2:1,o=this.getTileSize();s.width=o.x*h,s.height=o.y*h,this.wmsParams=s},onAdd:function(t){this._crs=this.options.crs||t.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version),this.wmsParams[this._wmsVersion>=1.3?"crs":"srs"]=this._crs.code,hs.prototype.onAdd.call(this,t)},getTileUrl:function(t){var i=this._tileCoordsToNwSe(t),n=this._crs,s=B(n.project(i[0]),n.project(i[1])),e=s.min,h=s.max,o=(this._wmsVersion>=1.3&&this._crs===Tn?[e.y,e.x,h.y,h.x]:[e.x,e.y,h.x,h.y]).join(","),r=hs.prototype.getTileUrl.call(this,t);return r+d(this.wmsParams,r,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+o},setParams:function(t,n){return i(this.wmsParams,t),n||this.redraw(),this}});hs.WMS=rs,os.wms=function(t,i){return new rs(t,i)};var as=zn.extend({options:{padding:.1},initialize:function(t){l(this,t),h(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),ci(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var t={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(t.zoomanim=this._onAnimZoom),t},_onAnimZoom:function(t){this._updateTransform(t.center,t.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(t,i){var n=this._map.getZoomScale(i,this._zoom),s=this._map.getSize().multiplyBy(.5+this.options.padding),e=this._map.project(this._center,i),h=s.multiplyBy(-n).add(e).subtract(this._map._getNewPixelOrigin(t,i));It.any3d?pi(this._container,h,n):gi(this._container,h)},_reset:function(){for(var t in this._update(),this._updateTransform(this._center,this._zoom),this._layers)this._layers[t]._reset()},_onZoomEnd:function(){for(var t in this._layers)this._layers[t]._project()},_updatePaths:function(){for(var t in this._layers)this._layers[t]._update()},_update:function(){var t=this.options.padding,i=this._map.getSize(),n=this._map.containerPointToLayerPoint(i.multiplyBy(-t)).round();this._bounds=new I(n,n.add(i.multiplyBy(1+2*t)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),us=as.extend({options:{tolerance:0},getEvents:function(){var t=as.prototype.getEvents.call(this);return t.viewprereset=this._onViewPreReset,t},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){as.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var t=this._container=document.createElement("canvas");zi(t,"mousemove",this._onMouseMove,this),zi(t,"click dblclick mousedown mouseup contextmenu",this._onClick,this),zi(t,"mouseout",this._handleMouseOut,this),t._leaflet_disable_events=!0,this._ctx=t.getContext("2d")},_destroyContainer:function(){T(this._redrawRequest),delete this._ctx,hi(this._container),Si(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){for(var t in this._redrawBounds=null,this._layers)this._layers[t]._update();this._redraw()}},_update:function(){if(!this._map._animatingZoom||!this._bounds){as.prototype._update.call(this);var t=this._bounds,i=this._container,n=t.getSize(),s=It.retina?2:1;gi(i,t.min),i.width=s*n.x,i.height=s*n.y,i.style.width=n.x+"px",i.style.height=n.y+"px",It.retina&&this._ctx.scale(2,2),this._ctx.translate(-t.min.x,-t.min.y),this.fire("update")}},_reset:function(){as.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(t){this._updateDashArray(t),this._layers[h(t)]=t;var i=t._order={layer:t,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=i),this._drawLast=i,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(t){this._requestRedraw(t)},_removePath:function(t){var i=t._order,n=i.next,s=i.prev;n?n.prev=s:this._drawLast=s,s?s.next=n:this._drawFirst=n,delete t._order,delete this._layers[h(t)],this._requestRedraw(t)},_updatePath:function(t){this._extendRedrawBounds(t),t._project(),t._update(),this._requestRedraw(t)},_updateStyle:function(t){this._updateDashArray(t),this._requestRedraw(t)},_updateDashArray:function(t){if("string"==typeof t.options.dashArray){var i,n,s=t.options.dashArray.split(/[, ]+/),e=[];for(n=0;n<s.length;n++){if(i=Number(s[n]),isNaN(i))return;e.push(i)}t.options._dashArray=e}else t.options._dashArray=t.options.dashArray},_requestRedraw:function(t){this._map&&(this._extendRedrawBounds(t),this._redrawRequest=this._redrawRequest||k(this._redraw,this))},_extendRedrawBounds:function(t){if(t._pxBounds){var i=(t.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new I,this._redrawBounds.extend(t._pxBounds.min.subtract([i,i])),this._redrawBounds.extend(t._pxBounds.max.add([i,i]))}},_redraw:function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear:function(){var t=this._redrawBounds;if(t){var i=t.getSize();this._ctx.clearRect(t.min.x,t.min.y,i.x,i.y)}else this._ctx.save(),this._ctx.setTransform(1,0,0,1,0,0),this._ctx.clearRect(0,0,this._container.width,this._container.height),this._ctx.restore()},_draw:function(){var t,i=this._redrawBounds;if(this._ctx.save(),i){var n=i.getSize();this._ctx.beginPath(),this._ctx.rect(i.min.x,i.min.y,n.x,n.y),this._ctx.clip()}this._drawing=!0;for(var s=this._drawFirst;s;s=s.next)t=s.layer,(!i||t._pxBounds&&t._pxBounds.intersects(i))&&t._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(t,i){if(this._drawing){var n,s,e,h,o=t._parts,r=o.length,a=this._ctx;if(r){for(a.beginPath(),n=0;n<r;n++){for(s=0,e=o[n].length;s<e;s++)a[s?"lineTo":"moveTo"]((h=o[n][s]).x,h.y);i&&a.closePath()}this._fillStroke(a,t)}}},_updateCircle:function(t){if(this._drawing&&!t._empty()){var i=t._point,n=this._ctx,s=Math.max(Math.round(t._radius),1),e=(Math.max(Math.round(t._radiusY),1)||s)/s;1!==e&&(n.save(),n.scale(1,e)),n.beginPath(),n.arc(i.x,i.y/e,s,0,2*Math.PI,!1),1!==e&&n.restore(),this._fillStroke(n,t)}},_fillStroke:function(t,i){var n=i.options;n.fill&&(t.globalAlpha=n.fillOpacity,t.fillStyle=n.fillColor||n.color,t.fill(n.fillRule||"evenodd")),n.stroke&&0!==n.weight&&(t.setLineDash&&t.setLineDash(i.options&&i.options._dashArray||[]),t.globalAlpha=n.opacity,t.lineWidth=n.weight,t.strokeStyle=n.color,t.lineCap=n.lineCap,t.lineJoin=n.lineJoin,t.stroke())},_onClick:function(t){for(var i,n,s=this._map.mouseEventToLayerPoint(t),e=this._drawFirst;e;e=e.next)(i=e.layer).options.interactive&&i._containsPoint(s)&&("click"!==t.type&&"preclick"!==t.type||!this._map._draggableMoved(i))&&(n=i);this._fireEvent(!!n&&[n],t)},_onMouseMove:function(t){if(this._map&&!this._map.dragging.moving()&&!this._map._animatingZoom){var i=this._map.mouseEventToLayerPoint(t);this._handleMouseHover(t,i)}},_handleMouseOut:function(t){var i=this._hoveredLayer;i&&(fi(this._container,"leaflet-interactive"),this._fireEvent([i],t,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(t,i){if(!this._mouseHoverThrottled){for(var n,e,h=this._drawFirst;h;h=h.next)(n=h.layer).options.interactive&&n._containsPoint(i)&&(e=n);e!==this._hoveredLayer&&(this._handleMouseOut(t),e&&(ci(this._container,"leaflet-interactive"),this._fireEvent([e],t,"mouseover"),this._hoveredLayer=e)),this._fireEvent(!!this._hoveredLayer&&[this._hoveredLayer],t),this._mouseHoverThrottled=!0,setTimeout(s((function(){this._mouseHoverThrottled=!1}),this),32)}},_fireEvent:function(t,i,n){this._map._fireDOMEvent(i,n||i.type,t)},_bringToFront:function(t){var i=t._order;if(i){var n=i.next,s=i.prev;n&&(n.prev=s,s?s.next=n:n&&(this._drawFirst=n),i.prev=this._drawLast,this._drawLast.next=i,i.next=null,this._drawLast=i,this._requestRedraw(t))}},_bringToBack:function(t){var i=t._order;if(i){var n=i.next,s=i.prev;s&&(s.next=n,n?n.prev=s:s&&(this._drawLast=s),i.prev=null,i.next=this._drawFirst,this._drawFirst.prev=i,this._drawFirst=i,this._requestRedraw(t))}}});function cs(t){return It.canvas?new us(t):null}var fs=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(t){return document.createElement("<lvml:"+t+' class="lvml">')}}catch(t){}return function(t){return document.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),ls={_initContainer:function(){this._container=ei("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(as.prototype._update.call(this),this.fire("update"))},_initPath:function(t){var i=t._container=fs("shape");ci(i,"leaflet-vml-shape "+(this.options.className||"")),i.coordsize="1 1",t._path=fs("path"),i.appendChild(t._path),this._updateStyle(t),this._layers[h(t)]=t},_addPath:function(t){var i=t._container;this._container.appendChild(i),t.options.interactive&&t.addInteractiveTarget(i)},_removePath:function(t){var i=t._container;hi(i),t.removeInteractiveTarget(i),delete this._layers[h(t)]},_updateStyle:function(t){var i=t._stroke,n=t._fill,s=t.options,e=t._container;e.stroked=!!s.stroke,e.filled=!!s.fill,s.stroke?(i||(i=t._stroke=fs("stroke")),e.appendChild(i),i.weight=s.weight+"px",i.color=s.color,i.opacity=s.opacity,i.dashStyle=s.dashArray?p(s.dashArray)?s.dashArray.join(" "):s.dashArray.replace(/( *, *)/g," "):"",i.endcap=s.lineCap.replace("butt","flat"),i.joinstyle=s.lineJoin):i&&(e.removeChild(i),t._stroke=null),s.fill?(n||(n=t._fill=fs("fill")),e.appendChild(n),n.color=s.fillColor||s.color,n.opacity=s.fillOpacity):n&&(e.removeChild(n),t._fill=null)},_updateCircle:function(t){var i=t._point.round(),n=Math.round(t._radius),s=Math.round(t._radiusY||n);this._setPath(t,t._empty()?"M0 0":"AL "+i.x+","+i.y+" "+n+","+s+" 0,23592600")},_setPath:function(t,i){t._path.v=i},_bringToFront:function(t){ri(t._container)},_bringToBack:function(t){ai(t._container)}},ds=It.vml?fs:K,vs=as.extend({_initContainer:function(){this._container=ds("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=ds("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){hi(this._container),Si(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!this._map._animatingZoom||!this._bounds){as.prototype._update.call(this);var t=this._bounds,i=t.getSize(),n=this._container;this._svgSize&&this._svgSize.equals(i)||(this._svgSize=i,n.setAttribute("width",i.x),n.setAttribute("height",i.y)),gi(n,t.min),n.setAttribute("viewBox",[t.min.x,t.min.y,i.x,i.y].join(" ")),this.fire("update")}},_initPath:function(t){var i=t._path=ds("path");t.options.className&&ci(i,t.options.className),t.options.interactive&&ci(i,"leaflet-interactive"),this._updateStyle(t),this._layers[h(t)]=t},_addPath:function(t){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(t._path),t.addInteractiveTarget(t._path)},_removePath:function(t){hi(t._path),t.removeInteractiveTarget(t._path),delete this._layers[h(t)]},_updatePath:function(t){t._project(),t._update()},_updateStyle:function(t){var i=t._path,n=t.options;i&&(n.stroke?(i.setAttribute("stroke",n.color),i.setAttribute("stroke-opacity",n.opacity),i.setAttribute("stroke-width",n.weight),i.setAttribute("stroke-linecap",n.lineCap),i.setAttribute("stroke-linejoin",n.lineJoin),n.dashArray?i.setAttribute("stroke-dasharray",n.dashArray):i.removeAttribute("stroke-dasharray"),n.dashOffset?i.setAttribute("stroke-dashoffset",n.dashOffset):i.removeAttribute("stroke-dashoffset")):i.setAttribute("stroke","none"),n.fill?(i.setAttribute("fill",n.fillColor||n.color),i.setAttribute("fill-opacity",n.fillOpacity),i.setAttribute("fill-rule",n.fillRule||"evenodd")):i.setAttribute("fill","none"))},_updatePoly:function(t,i){this._setPath(t,X(t._parts,i))},_updateCircle:function(t){var i=t._point,n=Math.max(Math.round(t._radius),1),s="a"+n+","+(Math.max(Math.round(t._radiusY),1)||n)+" 0 1,0 ",e=t._empty()?"M0 0":"M"+(i.x-n)+","+i.y+s+2*n+",0 "+s+2*-n+",0 ";this._setPath(t,e)},_setPath:function(t,i){t._path.setAttribute("d",i)},_bringToFront:function(t){ri(t._path)},_bringToBack:function(t){ai(t._path)}});function ms(t){return It.svg||It.vml?new vs(t):null}It.vml&&vs.include(ls),Vi.include({getRenderer:function(t){var i=t.options.renderer||this._getPaneRenderer(t.options.pane)||this.options.renderer||this._renderer;return i||(i=this._renderer=this._createRenderer()),this.hasLayer(i)||this.addLayer(i),i},_getPaneRenderer:function(t){if("overlayPane"===t||void 0===t)return!1;var i=this._paneRenderers[t];return void 0===i&&(i=this._createRenderer({pane:t}),this._paneRenderers[t]=i),i},_createRenderer:function(t){return this.options.preferCanvas&&cs(t)||ms(t)}});var ps=Rn.extend({initialize:function(t,i){Rn.prototype.initialize.call(this,this._boundsToLatLngs(t),i)},setBounds:function(t){return this.setLatLngs(this._boundsToLatLngs(t))},_boundsToLatLngs:function(t){return[(t=D(t)).getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}});vs.create=ds,vs.pointsToPath=X,Nn.geometryToLayer=jn,Nn.coordsToLatLng=Hn,Nn.coordsToLatLngs=Un,Nn.latLngToCoords=Wn,Nn.latLngsToCoords=Gn,Nn.getFeature=Vn,Nn.asFeature=qn,Vi.mergeOptions({boxZoom:!0});var gs=Yi.extend({initialize:function(t){this._map=t,this._container=t._container,this._pane=t._panes.overlayPane,this._resetStateTimeout=0,t.on("unload",this._destroy,this)},addHooks:function(){zi(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){Si(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){hi(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){0!==this._resetStateTimeout&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(t){if(!t.shiftKey||1!==t.which&&1!==t.button)return!1;this._clearDeferredResetState(),this._resetState(),Jt(),yi(),this._startPoint=this._map.mouseEventToContainerPoint(t),zi(document,{contextmenu:Ri,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(t){this._moved||(this._moved=!0,this._box=ei("div","leaflet-zoom-box",this._container),ci(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(t);var i=new I(this._point,this._startPoint),n=i.getSize();gi(this._box,i.min),this._box.style.width=n.x+"px",this._box.style.height=n.y+"px"},_finish:function(){this._moved&&(hi(this._box),fi(this._container,"leaflet-crosshair")),Kt(),Mi(),Si(document,{contextmenu:Ri,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(t){if((1===t.which||1===t.button)&&(this._finish(),this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(s(this._resetState,this),0);var i=new Z(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(i).fire("boxzoomend",{boxZoomBounds:i})}},_onKeyDown:function(t){27===t.keyCode&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});Vi.addInitHook("addHandler","boxZoom",gs),Vi.mergeOptions({doubleClickZoom:!0});var ws=Yi.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(t){var i=this._map,n=i.getZoom(),s=i.options.zoomDelta,e=t.originalEvent.shiftKey?n-s:n+s;"center"===i.options.doubleClickZoom?i.setZoom(e):i.setZoomAround(t.containerPoint,e)}});Vi.addInitHook("addHandler","doubleClickZoom",ws),Vi.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var _s=Yi.extend({addHooks:function(){if(!this._draggable){var t=this._map;this._draggable=new sn(t._mapPane,t._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),t.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),t.on("zoomend",this._onZoomEnd,this),t.whenReady(this._onZoomEnd,this))}ci(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){fi(this._map._container,"leaflet-grab"),fi(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var t=this._map;if(t._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var i=D(this._map.options.maxBounds);this._offsetLimit=B(this._map.latLngToContainerPoint(i.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(i.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;t.fire("movestart").fire("dragstart"),t.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(t){if(this._map.options.inertia){var i=this._lastTime=+new Date,n=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(n),this._times.push(i),this._prunePositions(i)}this._map.fire("move",t).fire("drag",t)},_prunePositions:function(t){for(;this._positions.length>1&&t-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var t=this._map.getSize().divideBy(2),i=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=i.subtract(t).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(t,i){return t-(t-i)*this._viscosity},_onPreDragLimit:function(){if(this._viscosity&&this._offsetLimit){var t=this._draggable._newPos.subtract(this._draggable._startPos),i=this._offsetLimit;t.x<i.min.x&&(t.x=this._viscousLimit(t.x,i.min.x)),t.y<i.min.y&&(t.y=this._viscousLimit(t.y,i.min.y)),t.x>i.max.x&&(t.x=this._viscousLimit(t.x,i.max.x)),t.y>i.max.y&&(t.y=this._viscousLimit(t.y,i.max.y)),this._draggable._newPos=this._draggable._startPos.add(t)}},_onPreDragWrap:function(){var t=this._worldWidth,i=Math.round(t/2),n=this._initialWorldOffset,s=this._draggable._newPos.x,e=(s-i+n)%t+i-n,h=(s+i+n)%t-i-n,o=Math.abs(e+n)<Math.abs(h+n)?e:h;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=o},_onDragEnd:function(t){var i=this._map,n=i.options,s=!n.inertia||t.noInertia||this._times.length<2;if(i.fire("dragend",t),s)i.fire("moveend");else{this._prunePositions(+new Date);var e=this._lastPos.subtract(this._positions[0]),h=n.easeLinearity,o=e.multiplyBy(h/((this._lastTime-this._times[0])/1e3)),r=o.distanceTo([0,0]),a=Math.min(n.inertiaMaxSpeed,r),u=o.multiplyBy(a/r),c=a/(n.inertiaDeceleration*h),f=u.multiplyBy(-c/2).round();f.x||f.y?(f=i._limitOffset(f,i.options.maxBounds),k((function(){i.panBy(f,{duration:c,easeLinearity:h,noMoveStart:!0,animate:!0})}))):i.fire("moveend")}}});Vi.addInitHook("addHandler","dragging",_s),Vi.mergeOptions({keyboard:!0,keyboardPanDelta:80});var ys=Yi.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(t){this._map=t,this._setPanDelta(t.options.keyboardPanDelta),this._setZoomDelta(t.options.zoomDelta)},addHooks:function(){var t=this._map._container;t.tabIndex<=0&&(t.tabIndex="0"),zi(t,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),Si(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(!this._focused){var t=document.body,i=document.documentElement,n=t.scrollTop||i.scrollTop,s=t.scrollLeft||i.scrollLeft;this._map._container.focus(),window.scrollTo(s,n)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(t){var i,n,s=this._panKeys={},e=this.keyCodes;for(i=0,n=e.left.length;i<n;i++)s[e.left[i]]=[-1*t,0];for(i=0,n=e.right.length;i<n;i++)s[e.right[i]]=[t,0];for(i=0,n=e.down.length;i<n;i++)s[e.down[i]]=[0,t];for(i=0,n=e.up.length;i<n;i++)s[e.up[i]]=[0,-1*t]},_setZoomDelta:function(t){var i,n,s=this._zoomKeys={},e=this.keyCodes;for(i=0,n=e.zoomIn.length;i<n;i++)s[e.zoomIn[i]]=t;for(i=0,n=e.zoomOut.length;i<n;i++)s[e.zoomOut[i]]=-t},_addHooks:function(){zi(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){Si(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(t){if(!(t.altKey||t.ctrlKey||t.metaKey)){var i,n=t.keyCode,s=this._map;if(n in this._panKeys){if(!s._panAnim||!s._panAnim._inProgress)if(i=this._panKeys[n],t.shiftKey&&(i=O(i).multiplyBy(3)),s.options.maxBounds&&(i=s._limitOffset(O(i),s.options.maxBounds)),s.options.worldCopyJump){var e=s.wrapLatLng(s.unproject(s.project(s.getCenter()).add(i)));s.panTo(e)}else s.panBy(i)}else if(n in this._zoomKeys)s.setZoom(s.getZoom()+(t.shiftKey?3:1)*this._zoomKeys[n]);else{if(27!==n||!s._popup||!s._popup.options.closeOnEscapeKey)return;s.closePopup()}Ri(t)}}});Vi.addInitHook("addHandler","keyboard",ys),Vi.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var Ms=Yi.extend({addHooks:function(){zi(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){Si(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(t){var i=Hi(t),n=this._map.options.wheelDebounceTime;this._delta+=i,this._lastMousePos=this._map.mouseEventToContainerPoint(t),this._startTime||(this._startTime=+new Date);var e=Math.max(n-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(s(this._performZoom,this),e),Ri(t)},_performZoom:function(){var t=this._map,i=t.getZoom(),n=this._map.options.zoomSnap||0;t._stop();var s=4*Math.log(2/(1+Math.exp(-Math.abs(this._delta/(4*this._map.options.wheelPxPerZoomLevel)))))/Math.LN2,e=n?Math.ceil(s/n)*n:s,h=t._limitZoom(i+(this._delta>0?e:-e))-i;this._delta=0,this._startTime=null,h&&("center"===t.options.scrollWheelZoom?t.setZoom(i+h):t.setZoomAround(this._lastMousePos,i+h))}});Vi.addInitHook("addHandler","scrollWheelZoom",Ms);Vi.mergeOptions({tapHold:It.touchNative&&It.safari&&It.mobile,tapTolerance:15});var bs=Yi.extend({addHooks:function(){zi(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){Si(this._map._container,"touchstart",this._onDown,this)},_onDown:function(t){if(clearTimeout(this._holdTimeout),1===t.touches.length){var i=t.touches[0];this._startPos=this._newPos=new A(i.clientX,i.clientY),this._holdTimeout=setTimeout(s((function(){this._cancel(),this._isTapValid()&&(zi(document,"touchend",Di),zi(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",i))}),this),600),zi(document,"touchend touchcancel contextmenu",this._cancel,this),zi(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function t(){Si(document,"touchend",Di),Si(document,"touchend touchcancel",t)},_cancel:function(){clearTimeout(this._holdTimeout),Si(document,"touchend touchcancel contextmenu",this._cancel,this),Si(document,"touchmove",this._onMove,this)},_onMove:function(t){var i=t.touches[0];this._newPos=new A(i.clientX,i.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(t,i){var n=new MouseEvent(t,{bubbles:!0,cancelable:!0,view:window,screenX:i.screenX,screenY:i.screenY,clientX:i.clientX,clientY:i.clientY});n._simulated=!0,i.target.dispatchEvent(n)}});Vi.addInitHook("addHandler","tapHold",bs),Vi.mergeOptions({touchZoom:It.touch,bounceAtZoomLimits:!0});var Ps=Yi.extend({addHooks:function(){ci(this._map._container,"leaflet-touch-zoom"),zi(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){fi(this._map._container,"leaflet-touch-zoom"),Si(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(t){var i=this._map;if(t.touches&&2===t.touches.length&&!i._animatingZoom&&!this._zooming){var n=i.mouseEventToContainerPoint(t.touches[0]),s=i.mouseEventToContainerPoint(t.touches[1]);this._centerPoint=i.getSize()._divideBy(2),this._startLatLng=i.containerPointToLatLng(this._centerPoint),"center"!==i.options.touchZoom&&(this._pinchStartLatLng=i.containerPointToLatLng(n.add(s)._divideBy(2))),this._startDist=n.distanceTo(s),this._startZoom=i.getZoom(),this._moved=!1,this._zooming=!0,i._stop(),zi(document,"touchmove",this._onTouchMove,this),zi(document,"touchend touchcancel",this._onTouchEnd,this),Di(t)}},_onTouchMove:function(t){if(t.touches&&2===t.touches.length&&this._zooming){var i=this._map,n=i.mouseEventToContainerPoint(t.touches[0]),e=i.mouseEventToContainerPoint(t.touches[1]),h=n.distanceTo(e)/this._startDist;if(this._zoom=i.getScaleZoom(h,this._startZoom),!i.options.bounceAtZoomLimits&&(this._zoom<i.getMinZoom()&&h<1||this._zoom>i.getMaxZoom()&&h>1)&&(this._zoom=i._limitZoom(this._zoom)),"center"===i.options.touchZoom){if(this._center=this._startLatLng,1===h)return}else{var o=n._add(e)._divideBy(2)._subtract(this._centerPoint);if(1===h&&0===o.x&&0===o.y)return;this._center=i.unproject(i.project(this._pinchStartLatLng,this._zoom).subtract(o),this._zoom)}this._moved||(i._moveStart(!0,!1),this._moved=!0),T(this._animRequest);var r=s(i._move,i,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=k(r,this,!0),Di(t)}},_onTouchEnd:function(){this._moved&&this._zooming?(this._zooming=!1,T(this._animRequest),Si(document,"touchmove",this._onTouchMove,this),Si(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))):this._zooming=!1}});Vi.addInitHook("addHandler","touchZoom",Ps),Vi.BoxZoom=gs,Vi.DoubleClickZoom=ws,Vi.Drag=_s,Vi.Keyboard=ys,Vi.ScrollWheelZoom=Ms,Vi.TapHold=bs,Vi.TouchZoom=Ps,t.Bounds=I,t.Browser=It,t.CRS=F,t.Canvas=us,t.Circle=Zn,t.CircleMarker=Bn,t.Class=x,t.Control=qi,t.DivIcon=ss,t.DivOverlay=ts,t.DomEvent=Wi,t.DomUtil=Li,t.Draggable=sn,t.Evented=E,t.FeatureGroup=Sn,t.GeoJSON=Nn,t.GridLayer=es,t.Handler=Yi,t.Icon=En,t.ImageOverlay=$n,t.LatLng=R,t.LatLngBounds=Z,t.Layer=zn,t.LayerGroup=xn,t.LineUtil=yn,t.Map=Vi,t.Marker=On,t.Mixin=tn,t.Path=In,t.Point=A,t.PolyUtil=an,t.Polygon=Rn,t.Polyline=Dn,t.Popup=is,t.PosAnimation=Gi,t.Projection=Pn,t.Rectangle=ps,t.Renderer=as,t.SVG=vs,t.SVGOverlay=Yn,t.TileLayer=hs,t.Tooltip=ns,t.Transformation=G,t.Util=z,t.VideoOverlay=Qn,t.bind=s,t.bounds=B,t.canvas=cs,t.circle=function(t,i,n){return new Zn(t,i,n)},t.circleMarker=function(t,i){return new Bn(t,i)},t.control=Ji,t.divIcon=function(t){return new ss(t)},t.extend=i,t.featureGroup=function(t,i){return new Sn(t,i)},t.geoJSON=Kn,t.geoJson=Xn,t.gridLayer=function(t){return new es(t)},t.icon=function(t){return new En(t)},t.imageOverlay=function(t,i,n){return new $n(t,i,n)},t.latLng=N,t.latLngBounds=D,t.layerGroup=function(t,i){return new xn(t,i)},t.map=function(t,i){return new Vi(t,i)},t.marker=function(t,i){return new On(t,i)},t.point=O,t.polygon=function(t,i){return new Rn(t,i)},t.polyline=function(t,i){return new Dn(t,i)},t.popup=function(t,i){return new is(t,i)},t.rectangle=function(t,i){return new ps(t,i)},t.setOptions=l,t.stamp=h,t.svg=ms,t.svgOverlay=function(t,i,n){return new Yn(t,i,n)},t.tileLayer=os,t.tooltip=function(t,i){return new ns(t,i)},t.transformation=V,t.version="1.9.4",t.videoOverlay=function(t,i,n){return new Qn(t,i,n)};var ks=window.L;t.noConflict=function(){return window.L=ks,this},window.L=t}(s.exports)),s.exports),h=i({__proto__:null,default:t(e)},[e]);
2
2
  /* @preserve
3
3
  * Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com
4
4
  * (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade