@geotrekce/geotrek-rando-widget 0.0.12 → 0.0.13

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 (50) hide show
  1. package/dist/cjs/geotrek-rando-widget.cjs.js +1 -1
  2. package/dist/cjs/grw-app.cjs.entry.js +13 -11
  3. package/dist/cjs/grw-filter_6.cjs.entry.js +2 -3
  4. package/dist/cjs/grw-information-desk-detail_3.cjs.entry.js +8 -3
  5. package/dist/cjs/grw-trek-card.cjs.entry.js +2 -2
  6. package/dist/cjs/{index-2c4fcc1d.js → index-66d58516.js} +3 -0
  7. package/dist/cjs/loader.cjs.js +1 -1
  8. package/dist/cjs/{store-b55b295a.js → store-d301af22.js} +1 -1
  9. package/dist/collection/components/grw-app/grw-app.js +12 -10
  10. package/dist/collection/components/grw-sensitive-area-detail/grw-sensitive-area-detail.js +6 -1
  11. package/dist/collection/store/grw-trek-provider.js +0 -1
  12. package/dist/components/grw-app.js +11 -9
  13. package/dist/components/grw-sensitive-area-detail2.js +6 -1
  14. package/dist/components/grw-trek-provider2.js +0 -1
  15. package/dist/esm/geotrek-rando-widget.js +1 -1
  16. package/dist/esm/grw-app.entry.js +13 -11
  17. package/dist/esm/grw-filter_6.entry.js +2 -3
  18. package/dist/esm/grw-information-desk-detail_3.entry.js +8 -3
  19. package/dist/esm/grw-trek-card.entry.js +2 -2
  20. package/dist/esm/{index-2762ee98.js → index-899307bb.js} +3 -0
  21. package/dist/esm/loader.js +1 -1
  22. package/dist/esm/{store-c98ddf7e.js → store-70461a28.js} +1 -1
  23. package/dist/esm-es5/geotrek-rando-widget.js +1 -1
  24. package/dist/esm-es5/grw-app.entry.js +1 -1
  25. package/dist/esm-es5/grw-filter_6.entry.js +2 -2
  26. package/dist/esm-es5/grw-information-desk-detail_3.entry.js +1 -1
  27. package/dist/esm-es5/grw-trek-card.entry.js +1 -1
  28. package/dist/esm-es5/{index-2762ee98.js → index-899307bb.js} +1 -1
  29. package/dist/esm-es5/loader.js +1 -1
  30. package/dist/esm-es5/{store-c98ddf7e.js → store-70461a28.js} +1 -1
  31. package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js +1 -1
  32. package/dist/geotrek-rando-widget/geotrek-rando-widget.js +1 -1
  33. package/dist/geotrek-rando-widget/{p-8f56c5dc.system.js → p-067c02c4.system.js} +1 -1
  34. package/dist/geotrek-rando-widget/{p-2e151f05.js → p-18038011.js} +1 -1
  35. package/dist/geotrek-rando-widget/{p-df08ffe5.system.entry.js → p-2712caa8.system.entry.js} +2 -2
  36. package/dist/geotrek-rando-widget/{p-a4852254.system.entry.js → p-2bd0278f.system.entry.js} +1 -1
  37. package/dist/geotrek-rando-widget/{p-e69e41d7.entry.js → p-3ed52659.entry.js} +1 -1
  38. package/dist/geotrek-rando-widget/p-4690907e.js +2 -0
  39. package/dist/geotrek-rando-widget/{p-a869fc72.entry.js → p-48d5dde7.entry.js} +1 -1
  40. package/dist/geotrek-rando-widget/{p-9453dd9d.entry.js → p-533fc2bb.entry.js} +1 -1
  41. package/dist/geotrek-rando-widget/{p-61e3f612.system.js → p-82ca029f.system.js} +1 -1
  42. package/dist/geotrek-rando-widget/{p-ef1f14b8.system.js → p-8f9914f4.system.js} +2 -2
  43. package/dist/geotrek-rando-widget/{p-b10f0740.system.entry.js → p-e1431f36.system.entry.js} +1 -1
  44. package/dist/geotrek-rando-widget/{p-55413f00.system.entry.js → p-e38f4ff4.system.entry.js} +1 -1
  45. package/dist/geotrek-rando-widget/p-f5d98aae.entry.js +1 -0
  46. package/dist/types/components/grw-app/grw-app.d.ts +1 -0
  47. package/dist/types/store/grw-trek-provider.d.ts +0 -1
  48. package/package.json +1 -1
  49. package/dist/geotrek-rando-widget/p-11e1961e.entry.js +0 -1
  50. package/dist/geotrek-rando-widget/p-5af3d927.js +0 -2
@@ -1,6 +1,6 @@
1
- var __spreadArray=this&&this.__spreadArray||function(t,e,i){if(i||arguments.length===2)for(var n=0,o=e.length,r;n<o;n++){if(r||!(n in e)){if(!r)r=Array.prototype.slice.call(e,0,n);r[n]=e[n]}}return t.concat(r||Array.prototype.slice.call(e))};System.register(["./p-ef1f14b8.system.js","./p-61e3f612.system.js","./p-a99db140.system.js"],(function(t){"use strict";var e,i,n,o,r,s,a,l,h,c,u,d,f;return{setters:[function(t){e=t.r;i=t.h;n=t.H;o=t.e;r=t.g},function(t){s=t.s;a=t.o},function(t){l=t.d;h=t.f;c=t.l;u=t.a;d=t.b;f=t.c}],execute:function(){var p=".filter-name{margin-left:8px;color:var(--color-primary);font-size:24px;font-weight:bold}.filter-button-container{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap}.filter-button-container .filter-button,.filter-button-container .selected-filter-button{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;border:1px var(--color-primary) solid;border-radius:8px;margin:8px 0px 0px 8px;padding:8px}.filter-button-container .filter-button{color:var(--color-primary);background-color:#ffffff}.filter-button-container .selected-filter-button{color:#ffffff;background-color:var(--color-primary)}";var m=t("grw_filter",function(){function t(t){e(this,t);this.filters=[{property:"practices",trekProperty:"practice",type:"include"},{property:"difficulties",trekProperty:"difficulty",type:"include"},{property:"durations",trekProperty:"duration",type:"interval"}]}t.prototype.handleFilter=function(t,e){var i=__spreadArray([],s[this.filterType],true);i.find((function(t){return t.id===e.id})).selected=!i.find((function(t){return t.id===e.id})).selected;s[this.filterType]=i;var n=false;var o=[];var r=function(t){var e=s[t.property].filter((function(t){return t.selected})).map((function(t){return t.id}));if(e.length>0){if(o.length>0){if(t.type==="include"){o=__spreadArray([],o.filter((function(i){return e.includes(i[t.trekProperty])})),true)}else if(t.type==="interval"){o=__spreadArray([],o.filter((function(i){var n=function(e){var n=s[t.property].find((function(t){return t.id===e}));if(i[t.trekProperty]>=n.minValue&&i[t.trekProperty]<=n.maxValue){return{value:true}}};for(var o=0,r=e;o<r.length;o++){var a=r[o];var l=n(a);if(typeof l==="object")return l.value}return false})),true)}}else{if(!n){n=true}if(t.type==="include"){o=__spreadArray([],s.treks.filter((function(i){return e.includes(i[t.trekProperty])})),true)}else if(t.type==="interval"){var i;var r;var a=function(e){var n=s[t.property].find((function(t){return t.id===e}));if(isNaN(i)||n.minValue<i){i=n.minValue}if(isNaN(r)||n.maxValue>r){r=n.maxValue}};for(var l=0,h=e;l<h.length;l++){var c=h[l];a(c)}o=__spreadArray([],s.treks.filter((function(e){return e[t.trekProperty]>=i&&e[t.trekProperty]<=r})),true)}}}};for(var a=0,l=this.filters;a<l.length;a++){var h=l[a];r(h)}s.currentTreks=n?o:s.treks};t.prototype.render=function(){var t=this;return i(n,null,i("div",{class:"filter-name"},this.filterName),i("div",{class:"filter-button-container"},s[this.filterType].map((function(e){return i("div",{onClick:function(i){return t.handleFilter(i,e)},class:e.selected?"selected-filter-button":"filter-button"},e[t.filterNameProperty])}))))};return t}());m.style=p;var _=typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{};function g(t,e,i){return i={path:e,exports:{},require:function(t,e){return v()}},t(i,i.exports),i.exports}function v(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var y=g((function(t,e){
1
+ var __spreadArray=this&&this.__spreadArray||function(t,e,i){if(i||arguments.length===2)for(var n=0,o=e.length,r;n<o;n++){if(r||!(n in e)){if(!r)r=Array.prototype.slice.call(e,0,n);r[n]=e[n]}}return t.concat(r||Array.prototype.slice.call(e))};System.register(["./p-8f9914f4.system.js","./p-82ca029f.system.js","./p-a99db140.system.js"],(function(t){"use strict";var e,i,n,o,r,s,a,l,h,c,u,d,f;return{setters:[function(t){e=t.r;i=t.h;n=t.H;o=t.e;r=t.g},function(t){s=t.s;a=t.o},function(t){l=t.d;h=t.f;c=t.l;u=t.a;d=t.b;f=t.c}],execute:function(){var p=".filter-name{margin-left:8px;color:var(--color-primary);font-size:24px;font-weight:bold}.filter-button-container{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap}.filter-button-container .filter-button,.filter-button-container .selected-filter-button{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;border:1px var(--color-primary) solid;border-radius:8px;margin:8px 0px 0px 8px;padding:8px}.filter-button-container .filter-button{color:var(--color-primary);background-color:#ffffff}.filter-button-container .selected-filter-button{color:#ffffff;background-color:var(--color-primary)}";var m=t("grw_filter",function(){function t(t){e(this,t);this.filters=[{property:"practices",trekProperty:"practice",type:"include"},{property:"difficulties",trekProperty:"difficulty",type:"include"},{property:"durations",trekProperty:"duration",type:"interval"}]}t.prototype.handleFilter=function(t,e){var i=__spreadArray([],s[this.filterType],true);i.find((function(t){return t.id===e.id})).selected=!i.find((function(t){return t.id===e.id})).selected;s[this.filterType]=i;var n=false;var o=[];var r=function(t){var e=s[t.property].filter((function(t){return t.selected})).map((function(t){return t.id}));if(e.length>0){if(o.length>0){if(t.type==="include"){o=__spreadArray([],o.filter((function(i){return e.includes(i[t.trekProperty])})),true)}else if(t.type==="interval"){o=__spreadArray([],o.filter((function(i){var n=function(e){var n=s[t.property].find((function(t){return t.id===e}));if(i[t.trekProperty]>=n.minValue&&i[t.trekProperty]<=n.maxValue){return{value:true}}};for(var o=0,r=e;o<r.length;o++){var a=r[o];var l=n(a);if(typeof l==="object")return l.value}return false})),true)}}else{if(!n){n=true}if(t.type==="include"){o=__spreadArray([],s.treks.filter((function(i){return e.includes(i[t.trekProperty])})),true)}else if(t.type==="interval"){var i;var r;var a=function(e){var n=s[t.property].find((function(t){return t.id===e}));if(isNaN(i)||n.minValue<i){i=n.minValue}if(isNaN(r)||n.maxValue>r){r=n.maxValue}};for(var l=0,h=e;l<h.length;l++){var c=h[l];a(c)}o=__spreadArray([],s.treks.filter((function(e){return e[t.trekProperty]>=i&&e[t.trekProperty]<=r})),true)}}}};for(var a=0,l=this.filters;a<l.length;a++){var h=l[a];r(h)}s.currentTreks=n?o:s.treks};t.prototype.render=function(){var t=this;return i(n,null,i("div",{class:"filter-name"},this.filterName),i("div",{class:"filter-button-container"},s[this.filterType].map((function(e){return i("div",{onClick:function(i){return t.handleFilter(i,e)},class:e.selected?"selected-filter-button":"filter-button"},e[t.filterNameProperty])}))))};return t}());m.style=p;var _=typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{};function g(t,e,i){return i={path:e,exports:{},require:function(t,e){return v()}},t(i,i.exports),i.exports}function v(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var y=g((function(t,e){
2
2
  /* @preserve
3
3
  * Leaflet 1.8.0, a JS library for interactive maps. https://leafletjs.com
4
4
  * (c) 2010-2022 Vladimir Agafonkin, (c) 2010-2011 CloudMade
5
5
  */
6
- (function(t,i){i(e)})(_,(function(t){var e="1.8.0";function i(t){var e,i,n,o;for(i=1,n=arguments.length;i<n;i++){o=arguments[i];for(e in o){t[e]=o[e]}}return t}var n=Object.create||function(){function t(){}return function(e){t.prototype=e;return new t}}();function o(t,e){var i=Array.prototype.slice;if(t.bind){return t.bind.apply(t,i.call(arguments,1))}var n=i.call(arguments,2);return function(){return t.apply(e,n.length?n.concat(i.call(arguments)):arguments)}}var r=0;function s(t){if(!("_leaflet_id"in t)){t["_leaflet_id"]=++r}return t._leaflet_id}function a(t,e,i){var n,o,r,s;s=function(){n=false;if(o){r.apply(i,o);o=false}};r=function(){if(n){o=arguments}else{t.apply(i,arguments);setTimeout(s,e);n=true}};return r}function l(t,e,i){var n=e[1],o=e[0],r=n-o;return t===n&&i?t:((t-o)%r+r)%r+o}function h(){return false}function c(t,e){if(e===false){return t}var i=Math.pow(10,e===undefined?6:e);return Math.round(t*i)/i}function u(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function d(t){return u(t).split(/\s+/)}function f(t,e){if(!Object.prototype.hasOwnProperty.call(t,"options")){t.options=t.options?n(t.options):{}}for(var i in e){t.options[i]=e[i]}return t.options}function p(t,e,i){var n=[];for(var o in t){n.push(encodeURIComponent(i?o.toUpperCase():o)+"="+encodeURIComponent(t[o]))}return(!e||e.indexOf("?")===-1?"?":"&")+n.join("&")}var m=/\{ *([\w_ -]+) *\}/g;function _(t,e){return t.replace(m,(function(t,i){var n=e[i];if(n===undefined){throw new Error("No value provided for variable "+t)}else if(typeof n==="function"){n=n(e)}return n}))}var g=Array.isArray||function(t){return Object.prototype.toString.call(t)==="[object Array]"};function v(t,e){for(var i=0;i<t.length;i++){if(t[i]===e){return i}}return-1}var y="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function b(t){return window["webkit"+t]||window["moz"+t]||window["ms"+t]}var x=0;function w(t){var e=+new Date,i=Math.max(0,16-(e-x));x=e+i;return window.setTimeout(t,i)}var k=window.requestAnimationFrame||b("RequestAnimationFrame")||w;var T=window.cancelAnimationFrame||b("CancelAnimationFrame")||b("CancelRequestAnimationFrame")||function(t){window.clearTimeout(t)};function P(t,e,i){if(i&&k===w){t.call(e)}else{return k.call(window,o(t,e))}}function z(t){if(t){T.call(window,t)}}var M={__proto__:null,extend:i,create:n,bind:o,get lastId(){return r},stamp:s,throttle:a,wrapNum:l,falseFn:h,formatNum:c,trim:u,splitWords:d,setOptions:f,getParamString:p,template:_,isArray:g,indexOf:v,emptyImageUrl:y,requestFn:k,cancelFn:T,requestAnimFrame:P,cancelAnimFrame:z};function C(){}C.extend=function(t){var e=function(){f(this);if(this.initialize){this.initialize.apply(this,arguments)}this.callInitHooks()};var o=e.__super__=this.prototype;var r=n(o);r.constructor=e;e.prototype=r;for(var s in this){if(Object.prototype.hasOwnProperty.call(this,s)&&s!=="prototype"&&s!=="__super__"){e[s]=this[s]}}if(t.statics){i(e,t.statics)}if(t.includes){S(t.includes);i.apply(null,[r].concat(t.includes))}i(r,t);delete r.statics;delete r.includes;if(r.options){r.options=o.options?n(o.options):{};i(r.options,t.options)}r._initHooks=[];r.callInitHooks=function(){if(this._initHooksCalled){return}if(o.callInitHooks){o.callInitHooks.call(this)}this._initHooksCalled=true;for(var t=0,e=r._initHooks.length;t<e;t++){r._initHooks[t].call(this)}};return e};C.include=function(t){var e=this.prototype.options;i(this.prototype,t);if(t.options){this.prototype.options=e;this.mergeOptions(t.options)}return this};C.mergeOptions=function(t){i(this.prototype.options,t);return this};C.addInitHook=function(t){var e=Array.prototype.slice.call(arguments,1);var i=typeof t==="function"?t:function(){this[t].apply(this,e)};this.prototype._initHooks=this.prototype._initHooks||[];this.prototype._initHooks.push(i);return this};function S(t){if(typeof L==="undefined"||!L||!L.Mixin){return}t=g(t)?t:[t];for(var e=0;e<t.length;e++){if(t[e]===L.Mixin.Events){console.warn("Deprecated include of L.Mixin.Events: "+"this property will be removed in future releases, "+"please inherit from L.Evented instead.",(new Error).stack)}}}var A={on:function(t,e,i){if(typeof t==="object"){for(var n in t){this._on(n,t[n],e)}}else{t=d(t);for(var o=0,r=t.length;o<r;o++){this._on(t[o],e,i)}}return this},off:function(t,e,i){if(!arguments.length){delete this._events}else if(typeof t==="object"){for(var n in t){this._off(n,t[n],e)}}else{t=d(t);var o=arguments.length===1;for(var r=0,s=t.length;r<s;r++){if(o){this._off(t[r])}else{this._off(t[r],e,i)}}}return this},_on:function(t,e,i){if(typeof e!=="function"){console.warn("wrong listener type: "+typeof e);return}this._events=this._events||{};var n=this._events[t];if(!n){n=[];this._events[t]=n}if(i===this){i=undefined}var o={fn:e,ctx:i},r=n;for(var s=0,a=r.length;s<a;s++){if(r[s].fn===e&&r[s].ctx===i){return}}r.push(o)},_off:function(t,e,i){var n,o,r;if(!this._events){return}n=this._events[t];if(!n){return}if(arguments.length===1){if(this._firingCount){for(o=0,r=n.length;o<r;o++){n[o].fn=h}}delete this._events[t];return}if(i===this){i=undefined}if(typeof e!=="function"){console.warn("wrong listener type: "+typeof e);return}for(o=0,r=n.length;o<r;o++){var s=n[o];if(s.ctx!==i){continue}if(s.fn===e){if(this._firingCount){s.fn=h;this._events[t]=n=n.slice()}n.splice(o,1);return}}console.warn("listener not found")},fire:function(t,e,n){if(!this.listens(t,n)){return this}var o=i({},e,{type:t,target:this,sourceTarget:e&&e.sourceTarget||this});if(this._events){var r=this._events[t];if(r){this._firingCount=this._firingCount+1||1;for(var s=0,a=r.length;s<a;s++){var l=r[s];l.fn.call(l.ctx||this,o)}this._firingCount--}}if(n){this._propagateEvent(o)}return this},listens:function(t,e){if(typeof t!=="string"){console.warn('"string" type argument expected')}var i=this._events&&this._events[t];if(i&&i.length){return true}if(e){for(var n in this._eventParents){if(this._eventParents[n].listens(t,e)){return true}}}return false},once:function(t,e,i){if(typeof t==="object"){for(var n in t){this.once(n,t[n],e)}return this}var r=o((function(){this.off(t,e,i).off(t,r,i)}),this);return this.on(t,e,i).on(t,r,i)},addEventParent:function(t){this._eventParents=this._eventParents||{};this._eventParents[s(t)]=t;return this},removeEventParent:function(t){if(this._eventParents){delete this._eventParents[s(t)]}return this},_propagateEvent:function(t){for(var e in this._eventParents){this._eventParents[e].fire(t.type,i({layer:t.target,propagatedFrom:t.target},t),true)}}};A.addEventListener=A.on;A.removeEventListener=A.clearAllEventListeners=A.off;A.addOneTimeEventListener=A.once;A.fireEvent=A.fire;A.hasEventListeners=A.listens;var I=C.extend(A);function E(t,e,i){this.x=i?Math.round(t):t;this.y=i?Math.round(e):e}var Z=Math.trunc||function(t){return t>0?Math.floor(t):Math.ceil(t)};E.prototype={clone:function(){return new E(this.x,this.y)},add:function(t){return this.clone()._add(B(t))},_add:function(t){this.x+=t.x;this.y+=t.y;return this},subtract:function(t){return this.clone()._subtract(B(t))},_subtract:function(t){this.x-=t.x;this.y-=t.y;return this},divideBy:function(t){return this.clone()._divideBy(t)},_divideBy:function(t){this.x/=t;this.y/=t;return this},multiplyBy:function(t){return this.clone()._multiplyBy(t)},_multiplyBy:function(t){this.x*=t;this.y*=t;return this},scaleBy:function(t){return new E(this.x*t.x,this.y*t.y)},unscaleBy:function(t){return new E(this.x/t.x,this.y/t.y)},round:function(){return this.clone()._round()},_round:function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this},floor:function(){return this.clone()._floor()},_floor:function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this},ceil:function(){return this.clone()._ceil()},_ceil:function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this},trunc:function(){return this.clone()._trunc()},_trunc:function(){this.x=Z(this.x);this.y=Z(this.y);return this},distanceTo:function(t){t=B(t);var e=t.x-this.x,i=t.y-this.y;return Math.sqrt(e*e+i*i)},equals:function(t){t=B(t);return t.x===this.x&&t.y===this.y},contains:function(t){t=B(t);return Math.abs(t.x)<=Math.abs(this.x)&&Math.abs(t.y)<=Math.abs(this.y)},toString:function(){return"Point("+c(this.x)+", "+c(this.y)+")"}};function B(t,e,i){if(t instanceof E){return t}if(g(t)){return new E(t[0],t[1])}if(t===undefined||t===null){return t}if(typeof t==="object"&&"x"in t&&"y"in t){return new E(t.x,t.y)}return new E(t,e,i)}function O(t,e){if(!t){return}var i=e?[t,e]:t;for(var n=0,o=i.length;n<o;n++){this.extend(i[n])}}O.prototype={extend:function(t){t=B(t);if(!this.min&&!this.max){this.min=t.clone();this.max=t.clone()}else{this.min.x=Math.min(t.x,this.min.x);this.max.x=Math.max(t.x,this.max.x);this.min.y=Math.min(t.y,this.min.y);this.max.y=Math.max(t.y,this.max.y)}return this},getCenter:function(t){return new E((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,t)},getBottomLeft:function(){return new E(this.min.x,this.max.y)},getTopRight:function(){return new E(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(t){var e,i;if(typeof t[0]==="number"||t instanceof E){t=B(t)}else{t=N(t)}if(t instanceof O){e=t.min;i=t.max}else{e=i=t}return e.x>=this.min.x&&i.x<=this.max.x&&e.y>=this.min.y&&i.y<=this.max.y},intersects:function(t){t=N(t);var e=this.min,i=this.max,n=t.min,o=t.max,r=o.x>=e.x&&n.x<=i.x,s=o.y>=e.y&&n.y<=i.y;return r&&s},overlaps:function(t){t=N(t);var e=this.min,i=this.max,n=t.min,o=t.max,r=o.x>e.x&&n.x<i.x,s=o.y>e.y&&n.y<i.y;return r&&s},isValid:function(){return!!(this.min&&this.max)}};function N(t,e){if(!t||t instanceof O){return t}return new O(t,e)}function D(t,e){if(!t){return}var i=e?[t,e]:t;for(var n=0,o=i.length;n<o;n++){this.extend(i[n])}}D.prototype={extend:function(t){var e=this._southWest,i=this._northEast,n,o;if(t instanceof j){n=t;o=t}else if(t instanceof D){n=t._southWest;o=t._northEast;if(!n||!o){return this}}else{return t?this.extend(H(t)||R(t)):this}if(!e&&!i){this._southWest=new j(n.lat,n.lng);this._northEast=new j(o.lat,o.lng)}else{e.lat=Math.min(n.lat,e.lat);e.lng=Math.min(n.lng,e.lng);i.lat=Math.max(o.lat,i.lat);i.lng=Math.max(o.lng,i.lng)}return this},pad:function(t){var e=this._southWest,i=this._northEast,n=Math.abs(e.lat-i.lat)*t,o=Math.abs(e.lng-i.lng)*t;return new D(new j(e.lat-n,e.lng-o),new j(i.lat+n,i.lng+o))},getCenter:function(){return new j((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 j(this.getNorth(),this.getWest())},getSouthEast:function(){return new j(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){if(typeof t[0]==="number"||t instanceof j||"lat"in t){t=H(t)}else{t=R(t)}var e=this._southWest,i=this._northEast,n,o;if(t instanceof D){n=t.getSouthWest();o=t.getNorthEast()}else{n=o=t}return n.lat>=e.lat&&o.lat<=i.lat&&n.lng>=e.lng&&o.lng<=i.lng},intersects:function(t){t=R(t);var e=this._southWest,i=this._northEast,n=t.getSouthWest(),o=t.getNorthEast(),r=o.lat>=e.lat&&n.lat<=i.lat,s=o.lng>=e.lng&&n.lng<=i.lng;return r&&s},overlaps:function(t){t=R(t);var e=this._southWest,i=this._northEast,n=t.getSouthWest(),o=t.getNorthEast(),r=o.lat>e.lat&&n.lat<i.lat,s=o.lng>e.lng&&n.lng<i.lng;return r&&s},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(t,e){if(!t){return false}t=R(t);return this._southWest.equals(t.getSouthWest(),e)&&this._northEast.equals(t.getNorthEast(),e)},isValid:function(){return!!(this._southWest&&this._northEast)}};function R(t,e){if(t instanceof D){return t}return new D(t,e)}function j(t,e,i){if(isNaN(t)||isNaN(e)){throw new Error("Invalid LatLng object: ("+t+", "+e+")")}this.lat=+t;this.lng=+e;if(i!==undefined){this.alt=+i}}j.prototype={equals:function(t,e){if(!t){return false}t=H(t);var i=Math.max(Math.abs(this.lat-t.lat),Math.abs(this.lng-t.lng));return i<=(e===undefined?1e-9:e)},toString:function(t){return"LatLng("+c(this.lat,t)+", "+c(this.lng,t)+")"},distanceTo:function(t){return W.distance(this,H(t))},wrap:function(){return W.wrapLatLng(this)},toBounds:function(t){var e=180*t/40075017,i=e/Math.cos(Math.PI/180*this.lat);return R([this.lat-e,this.lng-i],[this.lat+e,this.lng+i])},clone:function(){return new j(this.lat,this.lng,this.alt)}};function H(t,e,i){if(t instanceof j){return t}if(g(t)&&typeof t[0]!=="object"){if(t.length===3){return new j(t[0],t[1],t[2])}if(t.length===2){return new j(t[0],t[1])}return null}if(t===undefined||t===null){return t}if(typeof t==="object"&&"lat"in t){return new j(t.lat,"lng"in t?t.lng:t.lon,t.alt)}if(e===undefined){return null}return new j(t,e,i)}var F={latLngToPoint:function(t,e){var i=this.projection.project(t),n=this.scale(e);return this.transformation._transform(i,n)},pointToLatLng:function(t,e){var i=this.scale(e),n=this.transformation.untransform(t,i);return this.projection.unproject(n)},project:function(t){return this.projection.project(t)},unproject:function(t){return this.projection.unproject(t)},scale:function(t){return 256*Math.pow(2,t)},zoom:function(t){return Math.log(t/256)/Math.LN2},getProjectedBounds:function(t){if(this.infinite){return null}var e=this.projection.bounds,i=this.scale(t),n=this.transformation.transform(e.min,i),o=this.transformation.transform(e.max,i);return new O(n,o)},infinite:false,wrapLatLng:function(t){var e=this.wrapLng?l(t.lng,this.wrapLng,true):t.lng,i=this.wrapLat?l(t.lat,this.wrapLat,true):t.lat,n=t.alt;return new j(i,e,n)},wrapLatLngBounds:function(t){var e=t.getCenter(),i=this.wrapLatLng(e),n=e.lat-i.lat,o=e.lng-i.lng;if(n===0&&o===0){return t}var r=t.getSouthWest(),s=t.getNorthEast(),a=new j(r.lat-n,r.lng-o),l=new j(s.lat-n,s.lng-o);return new D(a,l)}};var W=i({},F,{wrapLng:[-180,180],R:6371e3,distance:function(t,e){var i=Math.PI/180,n=t.lat*i,o=e.lat*i,r=Math.sin((e.lat-t.lat)*i/2),s=Math.sin((e.lng-t.lng)*i/2),a=r*r+Math.cos(n)*Math.cos(o)*s*s,l=2*Math.atan2(Math.sqrt(a),Math.sqrt(1-a));return this.R*l}});var V=6378137;var U={R:V,MAX_LATITUDE:85.0511287798,project:function(t){var e=Math.PI/180,i=this.MAX_LATITUDE,n=Math.max(Math.min(i,t.lat),-i),o=Math.sin(n*e);return new E(this.R*t.lng*e,this.R*Math.log((1+o)/(1-o))/2)},unproject:function(t){var e=180/Math.PI;return new j((2*Math.atan(Math.exp(t.y/this.R))-Math.PI/2)*e,t.x*e/this.R)},bounds:function(){var t=V*Math.PI;return new O([-t,-t],[t,t])}()};function q(t,e,i,n){if(g(t)){this._a=t[0];this._b=t[1];this._c=t[2];this._d=t[3];return}this._a=t;this._b=e;this._c=i;this._d=n}q.prototype={transform:function(t,e){return this._transform(t.clone(),e)},_transform:function(t,e){e=e||1;t.x=e*(this._a*t.x+this._b);t.y=e*(this._c*t.y+this._d);return t},untransform:function(t,e){e=e||1;return new E((t.x/e-this._b)/this._a,(t.y/e-this._d)/this._c)}};function G(t,e,i,n){return new q(t,e,i,n)}var K=i({},W,{code:"EPSG:3857",projection:U,transformation:function(){var t=.5/(Math.PI*U.R);return G(t,.5,-t,.5)}()});var Y=i({},K,{code:"EPSG:900913"});function J(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function X(t,e){var i="",n,o,r,s,a,l;for(n=0,r=t.length;n<r;n++){a=t[n];for(o=0,s=a.length;o<s;o++){l=a[o];i+=(o?"L":"M")+l.x+" "+l.y}i+=e?Zt.svg?"z":"x":""}return i||"M0 0"}var $=document.documentElement.style;var Q="ActiveXObject"in window;var tt=Q&&!document.addEventListener;var et="msLaunchUri"in navigator&&!("documentMode"in document);var it=Et("webkit");var nt=Et("android");var ot=Et("android 2")||Et("android 3");var rt=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10);var st=nt&&Et("Google")&&rt<537&&!("AudioNode"in window);var at=!!window.opera;var lt=!et&&Et("chrome");var ht=Et("gecko")&&!it&&!at&&!Q;var ct=!lt&&Et("safari");var ut=Et("phantom");var dt="OTransition"in $;var ft=navigator.platform.indexOf("Win")===0;var pt=Q&&"transition"in $;var mt="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!ot;var _t="MozPerspective"in $;var gt=!window.L_DISABLE_3D&&(pt||mt||_t)&&!dt&&!ut;var vt=typeof orientation!=="undefined"||Et("mobile");var yt=vt&&it;var bt=vt&&mt;var xt=!window.PointerEvent&&window.MSPointerEvent;var wt=!!(window.PointerEvent||xt);var kt="ontouchstart"in window||!!window.TouchEvent;var Tt=!window.L_NO_TOUCH&&(kt||wt);var Lt=vt&&at;var Pt=vt&&ht;var zt=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1;var Mt=function(){var t=false;try{var e=Object.defineProperty({},"passive",{get:function(){t=true}});window.addEventListener("testPassiveEventSupport",h,e);window.removeEventListener("testPassiveEventSupport",h,e)}catch(i){}return t}();var Ct=function(){return!!document.createElement("canvas").getContext}();var St=!!(document.createElementNS&&J("svg").createSVGRect);var At=!!St&&function(){var t=document.createElement("div");t.innerHTML="<svg/>";return(t.firstChild&&t.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"}();var It=!St&&function(){try{var t=document.createElement("div");t.innerHTML='<v:shape adj="1"/>';var e=t.firstChild;e.style.behavior="url(#default#VML)";return e&&typeof e.adj==="object"}catch(i){return false}}();function Et(t){return navigator.userAgent.toLowerCase().indexOf(t)>=0}var Zt={ie:Q,ielt9:tt,edge:et,webkit:it,android:nt,android23:ot,androidStock:st,opera:at,chrome:lt,gecko:ht,safari:ct,phantom:ut,opera12:dt,win:ft,ie3d:pt,webkit3d:mt,gecko3d:_t,any3d:gt,mobile:vt,mobileWebkit:yt,mobileWebkit3d:bt,msPointer:xt,pointer:wt,touch:Tt,touchNative:kt,mobileOpera:Lt,mobileGecko:Pt,retina:zt,passiveEvents:Mt,canvas:Ct,svg:St,vml:It,inlineSvg:At};var Bt=Zt.msPointer?"MSPointerDown":"pointerdown";var Ot=Zt.msPointer?"MSPointerMove":"pointermove";var Nt=Zt.msPointer?"MSPointerUp":"pointerup";var Dt=Zt.msPointer?"MSPointerCancel":"pointercancel";var Rt={touchstart:Bt,touchmove:Ot,touchend:Nt,touchcancel:Dt};var jt={touchstart:Jt,touchmove:Yt,touchend:Yt,touchcancel:Yt};var Ht={};var Ft=false;function Wt(t,e,i){if(e==="touchstart"){Kt()}if(!jt[e]){console.warn("wrong event specified:",e);return L.Util.falseFn}i=jt[e].bind(this,i);t.addEventListener(Rt[e],i,false);return i}function Vt(t,e,i){if(!Rt[e]){console.warn("wrong event specified:",e);return}t.removeEventListener(Rt[e],i,false)}function Ut(t){Ht[t.pointerId]=t}function qt(t){if(Ht[t.pointerId]){Ht[t.pointerId]=t}}function Gt(t){delete Ht[t.pointerId]}function Kt(){if(!Ft){document.addEventListener(Bt,Ut,true);document.addEventListener(Ot,qt,true);document.addEventListener(Nt,Gt,true);document.addEventListener(Dt,Gt,true);Ft=true}}function Yt(t,e){if(e.pointerType===(e.MSPOINTER_TYPE_MOUSE||"mouse")){return}e.touches=[];for(var i in Ht){e.touches.push(Ht[i])}e.changedTouches=[e];t(e)}function Jt(t,e){if(e.MSPOINTER_TYPE_TOUCH&&e.pointerType===e.MSPOINTER_TYPE_TOUCH){Ue(e)}Yt(t,e)}function Xt(t){var e={},i,n;for(n in t){i=t[n];e[n]=i&&i.bind?i.bind(t):i}t=e;e.type="dblclick";e.detail=2;e.isTrusted=false;e._simulated=true;return e}var $t=200;function Qt(t,e){t.addEventListener("dblclick",e);var i=0,n;function o(t){if(t.detail!==1){n=t.detail;return}if(t.pointerType==="mouse"||t.sourceCapabilities&&!t.sourceCapabilities.firesTouchEvents){return}var o=Date.now();if(o-i<=$t){n++;if(n===2){e(Xt(t))}}else{n=1}i=o}t.addEventListener("click",o);return{dblclick:e,simDblclick:o}}function te(t,e){t.removeEventListener("dblclick",e.dblclick);t.removeEventListener("click",e.simDblclick)}var ee=ve(["transform","webkitTransform","OTransform","MozTransform","msTransform"]);var ie=ve(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);var ne=ie==="webkitTransition"||ie==="OTransition"?ie+"End":"transitionend";function oe(t){return typeof t==="string"?document.getElementById(t):t}function re(t,e){var i=t.style[e]||t.currentStyle&&t.currentStyle[e];if((!i||i==="auto")&&document.defaultView){var n=document.defaultView.getComputedStyle(t,null);i=n?n[e]:null}return i==="auto"?null:i}function se(t,e,i){var n=document.createElement(t);n.className=e||"";if(i){i.appendChild(n)}return n}function ae(t){var e=t.parentNode;if(e){e.removeChild(t)}}function le(t){while(t.firstChild){t.removeChild(t.firstChild)}}function he(t){var e=t.parentNode;if(e&&e.lastChild!==t){e.appendChild(t)}}function ce(t){var e=t.parentNode;if(e&&e.firstChild!==t){e.insertBefore(t,e.firstChild)}}function ue(t,e){if(t.classList!==undefined){return t.classList.contains(e)}var i=me(t);return i.length>0&&new RegExp("(^|\\s)"+e+"(\\s|$)").test(i)}function de(t,e){if(t.classList!==undefined){var i=d(e);for(var n=0,o=i.length;n<o;n++){t.classList.add(i[n])}}else if(!ue(t,e)){var r=me(t);pe(t,(r?r+" ":"")+e)}}function fe(t,e){if(t.classList!==undefined){t.classList.remove(e)}else{pe(t,u((" "+me(t)+" ").replace(" "+e+" "," ")))}}function pe(t,e){if(t.className.baseVal===undefined){t.className=e}else{t.className.baseVal=e}}function me(t){if(t.correspondingElement){t=t.correspondingElement}return t.className.baseVal===undefined?t.className:t.className.baseVal}function _e(t,e){if("opacity"in t.style){t.style.opacity=e}else if("filter"in t.style){ge(t,e)}}function ge(t,e){var i=false,n="DXImageTransform.Microsoft.Alpha";try{i=t.filters.item(n)}catch(o){if(e===1){return}}e=Math.round(e*100);if(i){i.Enabled=e!==100;i.Opacity=e}else{t.style.filter+=" progid:"+n+"(opacity="+e+")"}}function ve(t){var e=document.documentElement.style;for(var i=0;i<t.length;i++){if(t[i]in e){return t[i]}}return false}function ye(t,e,i){var n=e||new E(0,0);t.style[ee]=(Zt.ie3d?"translate("+n.x+"px,"+n.y+"px)":"translate3d("+n.x+"px,"+n.y+"px,0)")+(i?" scale("+i+")":"")}function be(t,e){t._leaflet_pos=e;if(Zt.any3d){ye(t,e)}else{t.style.left=e.x+"px";t.style.top=e.y+"px"}}function xe(t){return t._leaflet_pos||new E(0,0)}var we;var ke;var Te;if("onselectstart"in document){we=function(){Be(window,"selectstart",Ue)};ke=function(){Ne(window,"selectstart",Ue)}}else{var Le=ve(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);we=function(){if(Le){var t=document.documentElement.style;Te=t[Le];t[Le]="none"}};ke=function(){if(Le){document.documentElement.style[Le]=Te;Te=undefined}}}function Pe(){Be(window,"dragstart",Ue)}function ze(){Ne(window,"dragstart",Ue)}var Me,Ce;function Se(t){while(t.tabIndex===-1){t=t.parentNode}if(!t.style){return}Ae();Me=t;Ce=t.style.outline;t.style.outline="none";Be(window,"keydown",Ae)}function Ae(){if(!Me){return}Me.style.outline=Ce;Me=undefined;Ce=undefined;Ne(window,"keydown",Ae)}function Ie(t){do{t=t.parentNode}while((!t.offsetWidth||!t.offsetHeight)&&t!==document.body);return t}function Ee(t){var e=t.getBoundingClientRect();return{x:e.width/t.offsetWidth||1,y:e.height/t.offsetHeight||1,boundingClientRect:e}}var Ze={__proto__:null,TRANSFORM:ee,TRANSITION:ie,TRANSITION_END:ne,get:oe,getStyle:re,create:se,remove:ae,empty:le,toFront:he,toBack:ce,hasClass:ue,addClass:de,removeClass:fe,setClass:pe,getClass:me,setOpacity:_e,testProp:ve,setTransform:ye,setPosition:be,getPosition:xe,get disableTextSelection(){return we},get enableTextSelection(){return ke},disableImageDrag:Pe,enableImageDrag:ze,preventOutline:Se,restoreOutline:Ae,getSizedParentNode:Ie,getScale:Ee};function Be(t,e,i,n){if(e&&typeof e==="object"){for(var o in e){je(t,o,e[o],i)}}else{e=d(e);for(var r=0,s=e.length;r<s;r++){je(t,e[r],i,n)}}return this}var Oe="_leaflet_events";function Ne(t,e,i,n){if(arguments.length===1){De(t);delete t[Oe]}else if(e&&typeof e==="object"){for(var o in e){He(t,o,e[o],i)}}else{e=d(e);if(arguments.length===2){De(t,(function(t){return v(e,t)!==-1}))}else{for(var r=0,s=e.length;r<s;r++){He(t,e[r],i,n)}}}return this}function De(t,e){for(var i in t[Oe]){var n=i.split(/\d/)[0];if(!e||e(n)){He(t,n,null,null,i)}}}var Re={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function je(t,e,i,n){var o=e+s(i)+(n?"_"+s(n):"");if(t[Oe]&&t[Oe][o]){return this}var r=function(e){return i.call(n||t,e||window.event)};var a=r;if(!Zt.touchNative&&Zt.pointer&&e.indexOf("touch")===0){r=Wt(t,e,r)}else if(Zt.touch&&e==="dblclick"){r=Qt(t,r)}else if("addEventListener"in t){if(e==="touchstart"||e==="touchmove"||e==="wheel"||e==="mousewheel"){t.addEventListener(Re[e]||e,r,Zt.passiveEvents?{passive:false}:false)}else if(e==="mouseenter"||e==="mouseleave"){r=function(e){e=e||window.event;if(Je(t,e)){a(e)}};t.addEventListener(Re[e],r,false)}else{t.addEventListener(e,a,false)}}else{t.attachEvent("on"+e,r)}t[Oe]=t[Oe]||{};t[Oe][o]=r}function He(t,e,i,n,o){o=o||e+s(i)+(n?"_"+s(n):"");var r=t[Oe]&&t[Oe][o];if(!r){return this}if(!Zt.touchNative&&Zt.pointer&&e.indexOf("touch")===0){Vt(t,e,r)}else if(Zt.touch&&e==="dblclick"){te(t,r)}else if("removeEventListener"in t){t.removeEventListener(Re[e]||e,r,false)}else{t.detachEvent("on"+e,r)}t[Oe][o]=null}function Fe(t){if(t.stopPropagation){t.stopPropagation()}else if(t.originalEvent){t.originalEvent._stopped=true}else{t.cancelBubble=true}return this}function We(t){je(t,"wheel",Fe);return this}function Ve(t){Be(t,"mousedown touchstart dblclick contextmenu",Fe);t["_leaflet_disable_click"]=true;return this}function Ue(t){if(t.preventDefault){t.preventDefault()}else{t.returnValue=false}return this}function qe(t){Ue(t);Fe(t);return this}function Ge(t,e){if(!e){return new E(t.clientX,t.clientY)}var i=Ee(e),n=i.boundingClientRect;return new E((t.clientX-n.left)/i.x-e.clientLeft,(t.clientY-n.top)/i.y-e.clientTop)}var Ke=Zt.win&&Zt.chrome?2*window.devicePixelRatio:Zt.gecko?window.devicePixelRatio:1;function Ye(t){return Zt.edge?t.wheelDeltaY/2:t.deltaY&&t.deltaMode===0?-t.deltaY/Ke:t.deltaY&&t.deltaMode===1?-t.deltaY*20:t.deltaY&&t.deltaMode===2?-t.deltaY*60:t.deltaX||t.deltaZ?0:t.wheelDelta?(t.wheelDeltaY||t.wheelDelta)/2:t.detail&&Math.abs(t.detail)<32765?-t.detail*20:t.detail?t.detail/-32765*60:0}function Je(t,e){var i=e.relatedTarget;if(!i){return true}try{while(i&&i!==t){i=i.parentNode}}catch(n){return false}return i!==t}var Xe={__proto__:null,on:Be,off:Ne,stopPropagation:Fe,disableScrollPropagation:We,disableClickPropagation:Ve,preventDefault:Ue,stop:qe,getMousePosition:Ge,getWheelDelta:Ye,isExternalTarget:Je,addListener:Be,removeListener:Ne};var $e=I.extend({run:function(t,e,i,n){this.stop();this._el=t;this._inProgress=true;this._duration=i||.25;this._easeOutPower=1/Math.max(n||.5,.2);this._startPos=xe(t);this._offset=e.subtract(this._startPos);this._startTime=+new Date;this.fire("start");this._animate()},stop:function(){if(!this._inProgress){return}this._step(true);this._complete()},_animate:function(){this._animId=P(this._animate,this);this._step()},_step:function(t){var e=+new Date-this._startTime,i=this._duration*1e3;if(e<i){this._runFrame(this._easeOut(e/i),t)}else{this._runFrame(1);this._complete()}},_runFrame:function(t,e){var i=this._startPos.add(this._offset.multiplyBy(t));if(e){i._round()}be(this._el,i);this.fire("step")},_complete:function(){z(this._animId);this._inProgress=false;this.fire("end")},_easeOut:function(t){return 1-Math.pow(1-t,this._easeOutPower)}});var Qe=I.extend({options:{crs:K,center:undefined,zoom:undefined,minZoom:undefined,maxZoom:undefined,layers:[],maxBounds:undefined,renderer:undefined,zoomAnimation:true,zoomAnimationThreshold:4,fadeAnimation:true,markerZoomAnimation:true,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:true},initialize:function(t,e){e=f(this,e);this._handlers=[];this._layers={};this._zoomBoundLayers={};this._sizeChanged=true;this._initContainer(t);this._initLayout();this._onResize=o(this._onResize,this);this._initEvents();if(e.maxBounds){this.setMaxBounds(e.maxBounds)}if(e.zoom!==undefined){this._zoom=this._limitZoom(e.zoom)}if(e.center&&e.zoom!==undefined){this.setView(H(e.center),e.zoom,{reset:true})}this.callInitHooks();this._zoomAnimated=ie&&Zt.any3d&&!Zt.mobileOpera&&this.options.zoomAnimation;if(this._zoomAnimated){this._createAnimProxy();Be(this._proxy,ne,this._catchTransitionEnd,this)}this._addLayers(this.options.layers)},setView:function(t,e,n){e=e===undefined?this._zoom:this._limitZoom(e);t=this._limitCenter(H(t),e,this.options.maxBounds);n=n||{};this._stop();if(this._loaded&&!n.reset&&n!==true){if(n.animate!==undefined){n.zoom=i({animate:n.animate},n.zoom);n.pan=i({animate:n.animate,duration:n.duration},n.pan)}var o=this._zoom!==e?this._tryAnimatedZoom&&this._tryAnimatedZoom(t,e,n.zoom):this._tryAnimatedPan(t,n.pan);if(o){clearTimeout(this._sizeTimer);return this}}this._resetView(t,e);return this},setZoom:function(t,e){if(!this._loaded){this._zoom=t;return this}return this.setView(this.getCenter(),t,{zoom:e})},zoomIn:function(t,e){t=t||(Zt.any3d?this.options.zoomDelta:1);return this.setZoom(this._zoom+t,e)},zoomOut:function(t,e){t=t||(Zt.any3d?this.options.zoomDelta:1);return this.setZoom(this._zoom-t,e)},setZoomAround:function(t,e,i){var n=this.getZoomScale(e),o=this.getSize().divideBy(2),r=t instanceof E?t:this.latLngToContainerPoint(t),s=r.subtract(o).multiplyBy(1-1/n),a=this.containerPointToLatLng(o.add(s));return this.setView(a,e,{zoom:i})},_getBoundsCenterZoom:function(t,e){e=e||{};t=t.getBounds?t.getBounds():R(t);var i=B(e.paddingTopLeft||e.padding||[0,0]),n=B(e.paddingBottomRight||e.padding||[0,0]),o=this.getBoundsZoom(t,false,i.add(n));o=typeof e.maxZoom==="number"?Math.min(e.maxZoom,o):o;if(o===Infinity){return{center:t.getCenter(),zoom:o}}var r=n.subtract(i).divideBy(2),s=this.project(t.getSouthWest(),o),a=this.project(t.getNorthEast(),o),l=this.unproject(s.add(a).divideBy(2).add(r),o);return{center:l,zoom:o}},fitBounds:function(t,e){t=R(t);if(!t.isValid()){throw new Error("Bounds are not valid.")}var i=this._getBoundsCenterZoom(t,e);return this.setView(i.center,i.zoom,e)},fitWorld:function(t){return this.fitBounds([[-90,-180],[90,180]],t)},panTo:function(t,e){return this.setView(t,this._zoom,{pan:e})},panBy:function(t,e){t=B(t).round();e=e||{};if(!t.x&&!t.y){return this.fire("moveend")}if(e.animate!==true&&!this.getSize().contains(t)){this._resetView(this.unproject(this.project(this.getCenter()).add(t)),this.getZoom());return this}if(!this._panAnim){this._panAnim=new $e;this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)}if(!e.noMoveStart){this.fire("movestart")}if(e.animate!==false){de(this._mapPane,"leaflet-pan-anim");var i=this._getMapPanePos().subtract(t).round();this._panAnim.run(this._mapPane,i,e.duration||.25,e.easeLinearity)}else{this._rawPanBy(t);this.fire("move").fire("moveend")}return this},flyTo:function(t,e,i){i=i||{};if(i.animate===false||!Zt.any3d){return this.setView(t,e,i)}this._stop();var n=this.project(this.getCenter()),o=this.project(t),r=this.getSize(),s=this._zoom;t=H(t);e=e===undefined?s:e;var a=Math.max(r.x,r.y),l=a*this.getZoomScale(s,e),h=o.distanceTo(n)||1,c=1.42,u=c*c;function d(t){var e=t?-1:1,i=t?l:a,n=l*l-a*a+e*u*u*h*h,o=2*i*u*h,r=n/o,s=Math.sqrt(r*r+1)-r;var c=s<1e-9?-18:Math.log(s);return c}function f(t){return(Math.exp(t)-Math.exp(-t))/2}function p(t){return(Math.exp(t)+Math.exp(-t))/2}function m(t){return f(t)/p(t)}var _=d(0);function g(t){return a*(p(_)/p(_+c*t))}function v(t){return a*(p(_)*m(_+c*t)-f(_))/u}function y(t){return 1-Math.pow(1-t,1.5)}var b=Date.now(),x=(d(1)-_)/c,w=i.duration?1e3*i.duration:1e3*x*.8;function k(){var i=(Date.now()-b)/w,r=y(i)*x;if(i<=1){this._flyToFrame=P(k,this);this._move(this.unproject(n.add(o.subtract(n).multiplyBy(v(r)/h)),s),this.getScaleZoom(a/g(r),s),{flyTo:true})}else{this._move(t,e)._moveEnd(true)}}this._moveStart(true,i.noMoveStart);k.call(this);return this},flyToBounds:function(t,e){var i=this._getBoundsCenterZoom(t,e);return this.flyTo(i.center,i.zoom,e)},setMaxBounds:function(t){t=R(t);if(!t.isValid()){this.options.maxBounds=null;return this.off("moveend",this._panInsideMaxBounds)}else if(this.options.maxBounds){this.off("moveend",this._panInsideMaxBounds)}this.options.maxBounds=t;if(this._loaded){this._panInsideMaxBounds()}return this.on("moveend",this._panInsideMaxBounds)},setMinZoom:function(t){var e=this.options.minZoom;this.options.minZoom=t;if(this._loaded&&e!==t){this.fire("zoomlevelschange");if(this.getZoom()<this.options.minZoom){return this.setZoom(t)}}return this},setMaxZoom:function(t){var e=this.options.maxZoom;this.options.maxZoom=t;if(this._loaded&&e!==t){this.fire("zoomlevelschange");if(this.getZoom()>this.options.maxZoom){return this.setZoom(t)}}return this},panInsideBounds:function(t,e){this._enforcingBounds=true;var i=this.getCenter(),n=this._limitCenter(i,this._zoom,R(t));if(!i.equals(n)){this.panTo(n,e)}this._enforcingBounds=false;return this},panInside:function(t,e){e=e||{};var i=B(e.paddingTopLeft||e.padding||[0,0]),n=B(e.paddingBottomRight||e.padding||[0,0]),o=this.project(this.getCenter()),r=this.project(t),s=this.getPixelBounds(),a=N([s.min.add(i),s.max.subtract(n)]),l=a.getSize();if(!a.contains(r)){this._enforcingBounds=true;var h=r.subtract(a.getCenter());var c=a.extend(r).getSize().subtract(l);o.x+=h.x<0?-c.x:c.x;o.y+=h.y<0?-c.y:c.y;this.panTo(this.unproject(o),e);this._enforcingBounds=false}return this},invalidateSize:function(t){if(!this._loaded){return this}t=i({animate:false,pan:true},t===true?{animate:true}:t);var e=this.getSize();this._sizeChanged=true;this._lastCenter=null;var n=this.getSize(),r=e.divideBy(2).round(),s=n.divideBy(2).round(),a=r.subtract(s);if(!a.x&&!a.y){return this}if(t.animate&&t.pan){this.panBy(a)}else{if(t.pan){this._rawPanBy(a)}this.fire("move");if(t.debounceMoveend){clearTimeout(this._sizeTimer);this._sizeTimer=setTimeout(o(this.fire,this,"moveend"),200)}else{this.fire("moveend")}}return this.fire("resize",{oldSize:e,newSize:n})},stop:function(){this.setZoom(this._limitZoom(this._zoom));if(!this.options.zoomSnap){this.fire("viewreset")}return this._stop()},locate:function(t){t=this._locateOptions=i({timeout:1e4,watch:false},t);if(!("geolocation"in navigator)){this._handleGeolocationError({code:0,message:"Geolocation not supported."});return this}var e=o(this._handleGeolocationResponse,this),n=o(this._handleGeolocationError,this);if(t.watch){this._locationWatchId=navigator.geolocation.watchPosition(e,n,t)}else{navigator.geolocation.getCurrentPosition(e,n,t)}return this},stopLocate:function(){if(navigator.geolocation&&navigator.geolocation.clearWatch){navigator.geolocation.clearWatch(this._locationWatchId)}if(this._locateOptions){this._locateOptions.setView=false}return this},_handleGeolocationError:function(t){if(!this._container._leaflet_id){return}var e=t.code,i=t.message||(e===1?"permission denied":e===2?"position unavailable":"timeout");if(this._locateOptions.setView&&!this._loaded){this.fitWorld()}this.fire("locationerror",{code:e,message:"Geolocation error: "+i+"."})},_handleGeolocationResponse:function(t){if(!this._container._leaflet_id){return}var e=t.coords.latitude,i=t.coords.longitude,n=new j(e,i),o=n.toBounds(t.coords.accuracy*2),r=this._locateOptions;if(r.setView){var s=this.getBoundsZoom(o);this.setView(n,r.maxZoom?Math.min(s,r.maxZoom):s)}var a={latlng:n,bounds:o,timestamp:t.timestamp};for(var l in t.coords){if(typeof t.coords[l]==="number"){a[l]=t.coords[l]}}this.fire("locationfound",a)},addHandler:function(t,e){if(!e){return this}var i=this[t]=new e(this);this._handlers.push(i);if(this.options[t]){i.enable()}return this},remove:function(){this._initEvents(true);if(this.options.maxBounds){this.off("moveend",this._panInsideMaxBounds)}if(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(e){this._container._leaflet_id=undefined;this._containerId=undefined}if(this._locationWatchId!==undefined){this.stopLocate()}this._stop();ae(this._mapPane);if(this._clearControlPos){this._clearControlPos()}if(this._resizeRequest){z(this._resizeRequest);this._resizeRequest=null}this._clearHandlers();if(this._loaded){this.fire("unload")}var t;for(t in this._layers){this._layers[t].remove()}for(t in this._panes){ae(this._panes[t])}this._layers=[];this._panes=[];delete this._mapPane;delete this._renderer;return this},createPane:function(t,e){var i="leaflet-pane"+(t?" leaflet-"+t.replace("Pane","")+"-pane":""),n=se("div",i,e||this._mapPane);if(t){this._panes[t]=n}return n},getCenter:function(){this._checkIfLoaded();if(this._lastCenter&&!this._moved()){return this._lastCenter}return this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var t=this.getPixelBounds(),e=this.unproject(t.getBottomLeft()),i=this.unproject(t.getTopRight());return new D(e,i)},getMinZoom:function(){return this.options.minZoom===undefined?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return this.options.maxZoom===undefined?this._layersMaxZoom===undefined?Infinity:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(t,e,i){t=R(t);i=B(i||[0,0]);var n=this.getZoom()||0,o=this.getMinZoom(),r=this.getMaxZoom(),s=t.getNorthWest(),a=t.getSouthEast(),l=this.getSize().subtract(i),h=N(this.project(a,n),this.project(s,n)).getSize(),c=Zt.any3d?this.options.zoomSnap:1,u=l.x/h.x,d=l.y/h.y,f=e?Math.max(u,d):Math.min(u,d);n=this.getScaleZoom(f,n);if(c){n=Math.round(n/(c/100))*(c/100);n=e?Math.ceil(n/c)*c:Math.floor(n/c)*c}return Math.max(o,Math.min(r,n))},getSize:function(){if(!this._size||this._sizeChanged){this._size=new E(this._container.clientWidth||0,this._container.clientHeight||0);this._sizeChanged=false}return this._size.clone()},getPixelBounds:function(t,e){var i=this._getTopLeftPoint(t,e);return new O(i,i.add(this.getSize()))},getPixelOrigin:function(){this._checkIfLoaded();return this._pixelOrigin},getPixelWorldBounds:function(t){return this.options.crs.getProjectedBounds(t===undefined?this.getZoom():t)},getPane:function(t){return typeof t==="string"?this._panes[t]:t},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(t,e){var i=this.options.crs;e=e===undefined?this._zoom:e;return i.scale(t)/i.scale(e)},getScaleZoom:function(t,e){var i=this.options.crs;e=e===undefined?this._zoom:e;var n=i.zoom(t*i.scale(e));return isNaN(n)?Infinity:n},project:function(t,e){e=e===undefined?this._zoom:e;return this.options.crs.latLngToPoint(H(t),e)},unproject:function(t,e){e=e===undefined?this._zoom:e;return this.options.crs.pointToLatLng(B(t),e)},layerPointToLatLng:function(t){var e=B(t).add(this.getPixelOrigin());return this.unproject(e)},latLngToLayerPoint:function(t){var e=this.project(H(t))._round();return e._subtract(this.getPixelOrigin())},wrapLatLng:function(t){return this.options.crs.wrapLatLng(H(t))},wrapLatLngBounds:function(t){return this.options.crs.wrapLatLngBounds(R(t))},distance:function(t,e){return this.options.crs.distance(H(t),H(e))},containerPointToLayerPoint:function(t){return B(t).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(t){return B(t).add(this._getMapPanePos())},containerPointToLatLng:function(t){var e=this.containerPointToLayerPoint(B(t));return this.layerPointToLatLng(e)},latLngToContainerPoint:function(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint(H(t)))},mouseEventToContainerPoint:function(t){return Ge(t,this._container)},mouseEventToLayerPoint:function(t){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(t))},mouseEventToLatLng:function(t){return this.layerPointToLatLng(this.mouseEventToLayerPoint(t))},_initContainer:function(t){var e=this._container=oe(t);if(!e){throw new Error("Map container not found.")}else if(e._leaflet_id){throw new Error("Map container is already initialized.")}Be(e,"scroll",this._onScroll,this);this._containerId=s(e)},_initLayout:function(){var t=this._container;this._fadeAnimated=this.options.fadeAnimation&&Zt.any3d;de(t,"leaflet-container"+(Zt.touch?" leaflet-touch":"")+(Zt.retina?" leaflet-retina":"")+(Zt.ielt9?" leaflet-oldie":"")+(Zt.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var e=re(t,"position");if(e!=="absolute"&&e!=="relative"&&e!=="fixed"){t.style.position="relative"}this._initPanes();if(this._initControlPos){this._initControlPos()}},_initPanes:function(){var t=this._panes={};this._paneRenderers={};this._mapPane=this.createPane("mapPane",this._container);be(this._mapPane,new E(0,0));this.createPane("tilePane");this.createPane("overlayPane");this.createPane("shadowPane");this.createPane("markerPane");this.createPane("tooltipPane");this.createPane("popupPane");if(!this.options.markerZoomAnimation){de(t.markerPane,"leaflet-zoom-hide");de(t.shadowPane,"leaflet-zoom-hide")}},_resetView:function(t,e){be(this._mapPane,new E(0,0));var i=!this._loaded;this._loaded=true;e=this._limitZoom(e);this.fire("viewprereset");var n=this._zoom!==e;this._moveStart(n,false)._move(t,e)._moveEnd(n);this.fire("viewreset");if(i){this.fire("load")}},_moveStart:function(t,e){if(t){this.fire("zoomstart")}if(!e){this.fire("movestart")}return this},_move:function(t,e,i,n){if(e===undefined){e=this._zoom}var o=this._zoom!==e;this._zoom=e;this._lastCenter=t;this._pixelOrigin=this._getNewPixelOrigin(t);if(!n){if(o||i&&i.pinch){this.fire("zoom",i)}this.fire("move",i)}else if(i&&i.pinch){this.fire("zoom",i)}return this},_moveEnd:function(t){if(t){this.fire("zoomend")}return this.fire("moveend")},_stop:function(){z(this._flyToFrame);if(this._panAnim){this._panAnim.stop()}return this},_rawPanBy:function(t){be(this._mapPane,this._getMapPanePos().subtract(t))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){if(!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[s(this._container)]=this;var e=t?Ne:Be;e(this._container,"click dblclick mousedown mouseup "+"mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this);if(this.options.trackResize){e(window,"resize",this._onResize,this)}if(Zt.any3d&&this.options.transform3DLimit){(t?this.off:this.on).call(this,"moveend",this._onMoveEnd)}},_onResize:function(){z(this._resizeRequest);this._resizeRequest=P((function(){this.invalidateSize({debounceMoveend:true})}),this)},_onScroll:function(){this._container.scrollTop=0;this._container.scrollLeft=0},_onMoveEnd:function(){var t=this._getMapPanePos();if(Math.max(Math.abs(t.x),Math.abs(t.y))>=this.options.transform3DLimit){this._resetView(this.getCenter(),this.getZoom())}},_findEventTargets:function(t,e){var i=[],n,o=e==="mouseout"||e==="mouseover",r=t.target||t.srcElement,a=false;while(r){n=this._targets[s(r)];if(n&&(e==="click"||e==="preclick")&&this._draggableMoved(n)){a=true;break}if(n&&n.listens(e,true)){if(o&&!Je(r,t)){break}i.push(n);if(o){break}}if(r===this._container){break}r=r.parentNode}if(!i.length&&!a&&!o&&this.listens(e,true)){i=[this]}return i},_isClickDisabled:function(t){while(t!==this._container){if(t["_leaflet_disable_click"]){return true}t=t.parentNode}},_handleDOMEvent:function(t){var e=t.target||t.srcElement;if(!this._loaded||e["_leaflet_disable_events"]||t.type==="click"&&this._isClickDisabled(e)){return}var i=t.type;if(i==="mousedown"){Se(e)}this._fireDOMEvent(t,i)},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(t,e,n){if(t.type==="click"){var o=i({},t);o.type="preclick";this._fireDOMEvent(o,o.type,n)}var r=this._findEventTargets(t,e);if(n){var s=[];for(var a=0;a<n.length;a++){if(n[a].listens(e,true)){s.push(n[a])}}r=s.concat(r)}if(!r.length){return}if(e==="contextmenu"){Ue(t)}var l=r[0];var h={originalEvent:t};if(t.type!=="keypress"&&t.type!=="keydown"&&t.type!=="keyup"){var c=l.getLatLng&&(!l._radius||l._radius<=10);h.containerPoint=c?this.latLngToContainerPoint(l.getLatLng()):this.mouseEventToContainerPoint(t);h.layerPoint=this.containerPointToLayerPoint(h.containerPoint);h.latlng=c?l.getLatLng():this.layerPointToLatLng(h.layerPoint)}for(a=0;a<r.length;a++){r[a].fire(e,h,true);if(h.originalEvent._stopped||r[a].options.bubblingMouseEvents===false&&v(this._mouseEvents,e)!==-1){return}}},_draggableMoved:function(t){t=t.dragging&&t.dragging.enabled()?t:this;return t.dragging&&t.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var t=0,e=this._handlers.length;t<e;t++){this._handlers[t].disable()}},whenReady:function(t,e){if(this._loaded){t.call(e||this,{target:this})}else{this.on("load",t,e)}return this},_getMapPanePos:function(){return xe(this._mapPane)||new E(0,0)},_moved:function(){var t=this._getMapPanePos();return t&&!t.equals([0,0])},_getTopLeftPoint:function(t,e){var i=t&&e!==undefined?this._getNewPixelOrigin(t,e):this.getPixelOrigin();return i.subtract(this._getMapPanePos())},_getNewPixelOrigin:function(t,e){var i=this.getSize()._divideBy(2);return this.project(t,e)._subtract(i)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(t,e,i){var n=this._getNewPixelOrigin(i,e);return this.project(t,e)._subtract(n)},_latLngBoundsToNewLayerBounds:function(t,e,i){var n=this._getNewPixelOrigin(i,e);return N([this.project(t.getSouthWest(),e)._subtract(n),this.project(t.getNorthWest(),e)._subtract(n),this.project(t.getSouthEast(),e)._subtract(n),this.project(t.getNorthEast(),e)._subtract(n)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(t){return this.latLngToLayerPoint(t).subtract(this._getCenterLayerPoint())},_limitCenter:function(t,e,i){if(!i){return t}var n=this.project(t,e),o=this.getSize().divideBy(2),r=new O(n.subtract(o),n.add(o)),s=this._getBoundsOffset(r,i,e);if(s.round().equals([0,0])){return t}return this.unproject(n.add(s),e)},_limitOffset:function(t,e){if(!e){return t}var i=this.getPixelBounds(),n=new O(i.min.add(t),i.max.add(t));return t.add(this._getBoundsOffset(n,e))},_getBoundsOffset:function(t,e,i){var n=N(this.project(e.getNorthEast(),i),this.project(e.getSouthWest(),i)),o=n.min.subtract(t.min),r=n.max.subtract(t.max),s=this._rebound(o.x,-r.x),a=this._rebound(o.y,-r.y);return new E(s,a)},_rebound:function(t,e){return t+e>0?Math.round(t-e)/2:Math.max(0,Math.ceil(t))-Math.max(0,Math.floor(e))},_limitZoom:function(t){var e=this.getMinZoom(),i=this.getMaxZoom(),n=Zt.any3d?this.options.zoomSnap:1;if(n){t=Math.round(t/n)*n}return Math.max(e,Math.min(i,t))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){fe(this._mapPane,"leaflet-pan-anim");this.fire("moveend")},_tryAnimatedPan:function(t,e){var i=this._getCenterOffset(t)._trunc();if((e&&e.animate)!==true&&!this.getSize().contains(i)){return false}this.panBy(i,e);return true},_createAnimProxy:function(){var t=this._proxy=se("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(t);this.on("zoomanim",(function(t){var e=ee,i=this._proxy.style[e];ye(this._proxy,this.project(t.center,t.zoom),this.getZoomScale(t.zoom,1));if(i===this._proxy.style[e]&&this._animatingZoom){this._onZoomTransitionEnd()}}),this);this.on("load moveend",this._animMoveEnd,this);this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){ae(this._proxy);this.off("load moveend",this._animMoveEnd,this);delete this._proxy},_animMoveEnd:function(){var t=this.getCenter(),e=this.getZoom();ye(this._proxy,this.project(t,e),this.getZoomScale(e,1))},_catchTransitionEnd:function(t){if(this._animatingZoom&&t.propertyName.indexOf("transform")>=0){this._onZoomTransitionEnd()}},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(t,e,i){if(this._animatingZoom){return true}i=i||{};if(!this._zoomAnimated||i.animate===false||this._nothingToAnimate()||Math.abs(e-this._zoom)>this.options.zoomAnimationThreshold){return false}var n=this.getZoomScale(e),o=this._getCenterOffset(t)._divideBy(1-1/n);if(i.animate!==true&&!this.getSize().contains(o)){return false}P((function(){this._moveStart(true,false)._animateZoom(t,e,true)}),this);return true},_animateZoom:function(t,e,i,n){if(!this._mapPane){return}if(i){this._animatingZoom=true;this._animateToCenter=t;this._animateToZoom=e;de(this._mapPane,"leaflet-zoom-anim")}this.fire("zoomanim",{center:t,zoom:e,noUpdate:n});if(!this._tempFireZoomEvent){this._tempFireZoomEvent=this._zoom!==this._animateToZoom}this._move(this._animateToCenter,this._animateToZoom,undefined,true);setTimeout(o(this._onZoomTransitionEnd,this),250)},_onZoomTransitionEnd:function(){if(!this._animatingZoom){return}if(this._mapPane){fe(this._mapPane,"leaflet-zoom-anim")}this._animatingZoom=false;this._move(this._animateToCenter,this._animateToZoom,undefined,true);if(this._tempFireZoomEvent){this.fire("zoom")}delete this._tempFireZoomEvent;this.fire("move");this._moveEnd(true)}});function ti(t,e){return new Qe(t,e)}var ei=C.extend({options:{position:"topright"},initialize:function(t){f(this,t)},getPosition:function(){return this.options.position},setPosition:function(t){var e=this._map;if(e){e.removeControl(this)}this.options.position=t;if(e){e.addControl(this)}return this},getContainer:function(){return this._container},addTo:function(t){this.remove();this._map=t;var e=this._container=this.onAdd(t),i=this.getPosition(),n=t._controlCorners[i];de(e,"leaflet-control");if(i.indexOf("bottom")!==-1){n.insertBefore(e,n.firstChild)}else{n.appendChild(e)}this._map.on("unload",this.remove,this);return this},remove:function(){if(!this._map){return this}ae(this._container);if(this.onRemove){this.onRemove(this._map)}this._map.off("unload",this.remove,this);this._map=null;return this},_refocusOnMap:function(t){if(this._map&&t&&t.screenX>0&&t.screenY>0){this._map.getContainer().focus()}}});var ii=function(t){return new ei(t)};Qe.include({addControl:function(t){t.addTo(this);return this},removeControl:function(t){t.remove();return this},_initControlPos:function(){var t=this._controlCorners={},e="leaflet-",i=this._controlContainer=se("div",e+"control-container",this._container);function n(n,o){var r=e+n+" "+e+o;t[n+o]=se("div",r,i)}n("top","left");n("top","right");n("bottom","left");n("bottom","right")},_clearControlPos:function(){for(var t in this._controlCorners){ae(this._controlCorners[t])}ae(this._controlContainer);delete this._controlCorners;delete this._controlContainer}});var ni=ei.extend({options:{collapsed:true,position:"topright",autoZIndex:true,hideSingleBase:false,sortLayers:false,sortFunction:function(t,e,i,n){return i<n?-1:n<i?1:0}},initialize:function(t,e,i){f(this,i);this._layerControlInputs=[];this._layers=[];this._lastZIndex=0;this._handlingClick=false;for(var n in t){this._addLayer(t[n],n)}for(n in e){this._addLayer(e[n],n,true)}},onAdd:function(t){this._initLayout();this._update();this._map=t;t.on("zoomend",this._checkDisabledLayers,this);for(var e=0;e<this._layers.length;e++){this._layers[e].layer.on("add remove",this._onLayerChange,this)}return this._container},addTo:function(t){ei.prototype.addTo.call(this,t);return this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var t=0;t<this._layers.length;t++){this._layers[t].layer.off("add remove",this._onLayerChange,this)}},addBaseLayer:function(t,e){this._addLayer(t,e);return this._map?this._update():this},addOverlay:function(t,e){this._addLayer(t,e,true);return this._map?this._update():this},removeLayer:function(t){t.off("add remove",this._onLayerChange,this);var e=this._getLayer(s(t));if(e){this._layers.splice(this._layers.indexOf(e),1)}return this._map?this._update():this},expand:function(){de(this._container,"leaflet-control-layers-expanded");this._section.style.height=null;var t=this._map.getSize().y-(this._container.offsetTop+50);if(t<this._section.clientHeight){de(this._section,"leaflet-control-layers-scrollbar");this._section.style.height=t+"px"}else{fe(this._section,"leaflet-control-layers-scrollbar")}this._checkDisabledLayers();return this},collapse:function(){fe(this._container,"leaflet-control-layers-expanded");return this},_initLayout:function(){var t="leaflet-control-layers",e=this._container=se("div",t),i=this.options.collapsed;e.setAttribute("aria-haspopup",true);Ve(e);We(e);var n=this._section=se("section",t+"-list");if(i){this._map.on("click",this.collapse,this);Be(e,{mouseenter:function(){Be(n,"click",Ue);this.expand();setTimeout((function(){Ne(n,"click",Ue)}))},mouseleave:this.collapse},this)}var o=this._layersLink=se("a",t+"-toggle",e);o.href="#";o.title="Layers";o.setAttribute("role","button");Be(o,"click",Ue);Be(o,"focus",this.expand,this);if(!i){this.expand()}this._baseLayersList=se("div",t+"-base",n);this._separator=se("div",t+"-separator",n);this._overlaysList=se("div",t+"-overlays",n);e.appendChild(n)},_getLayer:function(t){for(var e=0;e<this._layers.length;e++){if(this._layers[e]&&s(this._layers[e].layer)===t){return this._layers[e]}}},_addLayer:function(t,e,i){if(this._map){t.on("add remove",this._onLayerChange,this)}this._layers.push({layer:t,name:e,overlay:i});if(this.options.sortLayers){this._layers.sort(o((function(t,e){return this.options.sortFunction(t.layer,e.layer,t.name,e.name)}),this))}if(this.options.autoZIndex&&t.setZIndex){this._lastZIndex++;t.setZIndex(this._lastZIndex)}this._expandIfNotCollapsed()},_update:function(){if(!this._container){return this}le(this._baseLayersList);le(this._overlaysList);this._layerControlInputs=[];var t,e,i,n,o=0;for(i=0;i<this._layers.length;i++){n=this._layers[i];this._addItem(n);e=e||n.overlay;t=t||!n.overlay;o+=!n.overlay?1:0}if(this.options.hideSingleBase){t=t&&o>1;this._baseLayersList.style.display=t?"":"none"}this._separator.style.display=e&&t?"":"none";return this},_onLayerChange:function(t){if(!this._handlingClick){this._update()}var e=this._getLayer(s(t.target));var i=e.overlay?t.type==="add"?"overlayadd":"overlayremove":t.type==="add"?"baselayerchange":null;if(i){this._map.fire(i,e)}},_createRadioElement:function(t,e){var i='<input type="radio" class="leaflet-control-layers-selector" name="'+t+'"'+(e?' checked="checked"':"")+"/>";var n=document.createElement("div");n.innerHTML=i;return n.firstChild},_addItem:function(t){var e=document.createElement("label"),i=this._map.hasLayer(t.layer),n;if(t.overlay){n=document.createElement("input");n.type="checkbox";n.className="leaflet-control-layers-selector";n.defaultChecked=i}else{n=this._createRadioElement("leaflet-base-layers_"+s(this),i)}this._layerControlInputs.push(n);n.layerId=s(t.layer);Be(n,"click",this._onInputClick,this);var o=document.createElement("span");o.innerHTML=" "+t.name;var r=document.createElement("span");e.appendChild(r);r.appendChild(n);r.appendChild(o);var a=t.overlay?this._overlaysList:this._baseLayersList;a.appendChild(e);this._checkDisabledLayers();return e},_onInputClick:function(){var t=this._layerControlInputs,e,i;var n=[],o=[];this._handlingClick=true;for(var r=t.length-1;r>=0;r--){e=t[r];i=this._getLayer(e.layerId).layer;if(e.checked){n.push(i)}else if(!e.checked){o.push(i)}}for(r=0;r<o.length;r++){if(this._map.hasLayer(o[r])){this._map.removeLayer(o[r])}}for(r=0;r<n.length;r++){if(!this._map.hasLayer(n[r])){this._map.addLayer(n[r])}}this._handlingClick=false;this._refocusOnMap()},_checkDisabledLayers:function(){var t=this._layerControlInputs,e,i,n=this._map.getZoom();for(var o=t.length-1;o>=0;o--){e=t[o];i=this._getLayer(e.layerId).layer;e.disabled=i.options.minZoom!==undefined&&n<i.options.minZoom||i.options.maxZoom!==undefined&&n>i.options.maxZoom}},_expandIfNotCollapsed:function(){if(this._map&&!this.options.collapsed){this.expand()}return this}});var oi=function(t,e,i){return new ni(t,e,i)};var ri=ei.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">&#x2212;</span>',zoomOutTitle:"Zoom out"},onAdd:function(t){var e="leaflet-control-zoom",i=se("div",e+" leaflet-bar"),n=this.options;this._zoomInButton=this._createButton(n.zoomInText,n.zoomInTitle,e+"-in",i,this._zoomIn);this._zoomOutButton=this._createButton(n.zoomOutText,n.zoomOutTitle,e+"-out",i,this._zoomOut);this._updateDisabled();t.on("zoomend zoomlevelschange",this._updateDisabled,this);return i},onRemove:function(t){t.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){this._disabled=true;this._updateDisabled();return this},enable:function(){this._disabled=false;this._updateDisabled();return this},_zoomIn:function(t){if(!this._disabled&&this._map._zoom<this._map.getMaxZoom()){this._map.zoomIn(this._map.options.zoomDelta*(t.shiftKey?3:1))}},_zoomOut:function(t){if(!this._disabled&&this._map._zoom>this._map.getMinZoom()){this._map.zoomOut(this._map.options.zoomDelta*(t.shiftKey?3:1))}},_createButton:function(t,e,i,n,o){var r=se("a",i,n);r.innerHTML=t;r.href="#";r.title=e;r.setAttribute("role","button");r.setAttribute("aria-label",e);Ve(r);Be(r,"click",qe);Be(r,"click",o,this);Be(r,"click",this._refocusOnMap,this);return r},_updateDisabled:function(){var t=this._map,e="leaflet-disabled";fe(this._zoomInButton,e);fe(this._zoomOutButton,e);this._zoomInButton.setAttribute("aria-disabled","false");this._zoomOutButton.setAttribute("aria-disabled","false");if(this._disabled||t._zoom===t.getMinZoom()){de(this._zoomOutButton,e);this._zoomOutButton.setAttribute("aria-disabled","true")}if(this._disabled||t._zoom===t.getMaxZoom()){de(this._zoomInButton,e);this._zoomInButton.setAttribute("aria-disabled","true")}}});Qe.mergeOptions({zoomControl:true});Qe.addInitHook((function(){if(this.options.zoomControl){this.zoomControl=new ri;this.addControl(this.zoomControl)}}));var si=function(t){return new ri(t)};var ai=ei.extend({options:{position:"bottomleft",maxWidth:100,metric:true,imperial:true},onAdd:function(t){var e="leaflet-control-scale",i=se("div",e),n=this.options;this._addScales(n,e+"-line",i);t.on(n.updateWhenIdle?"moveend":"move",this._update,this);t.whenReady(this._update,this);return i},onRemove:function(t){t.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(t,e,i){if(t.metric){this._mScale=se("div",e,i)}if(t.imperial){this._iScale=se("div",e,i)}},_update:function(){var t=this._map,e=t.getSize().y/2;var i=t.distance(t.containerPointToLatLng([0,e]),t.containerPointToLatLng([this.options.maxWidth,e]));this._updateScales(i)},_updateScales:function(t){if(this.options.metric&&t){this._updateMetric(t)}if(this.options.imperial&&t){this._updateImperial(t)}},_updateMetric:function(t){var e=this._getRoundNum(t),i=e<1e3?e+" m":e/1e3+" km";this._updateScale(this._mScale,i,e/t)},_updateImperial:function(t){var e=t*3.2808399,i,n,o;if(e>5280){i=e/5280;n=this._getRoundNum(i);this._updateScale(this._iScale,n+" mi",n/i)}else{o=this._getRoundNum(e);this._updateScale(this._iScale,o+" ft",o/e)}},_updateScale:function(t,e,i){t.style.width=Math.round(this.options.maxWidth*i)+"px";t.innerHTML=e},_getRoundNum:function(t){var e=Math.pow(10,(Math.floor(t)+"").length-1),i=t/e;i=i>=10?10:i>=5?5:i>=3?3:i>=2?2:1;return e*i}});var li=function(t){return new ai(t)};var hi='<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="12" height="8"><path fill="#4C7BE1" d="M0 0h12v4H0z"/><path fill="#FFD500" d="M0 4h12v3H0z"/><path fill="#E0BC00" d="M0 7h12v1H0z"/></svg>';var ci=ei.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(Zt.inlineSvg?hi+" ":"")+"Leaflet</a>"},initialize:function(t){f(this,t);this._attributions={}},onAdd:function(t){t.attributionControl=this;this._container=se("div","leaflet-control-attribution");Ve(this._container);for(var e in t._layers){if(t._layers[e].getAttribution){this.addAttribution(t._layers[e].getAttribution())}}this._update();t.on("layeradd",this._addAttribution,this);return this._container},onRemove:function(t){t.off("layeradd",this._addAttribution,this)},_addAttribution:function(t){if(t.layer.getAttribution){this.addAttribution(t.layer.getAttribution());t.layer.once("remove",(function(){this.removeAttribution(t.layer.getAttribution())}),this)}},setPrefix:function(t){this.options.prefix=t;this._update();return this},addAttribution:function(t){if(!t){return this}if(!this._attributions[t]){this._attributions[t]=0}this._attributions[t]++;this._update();return this},removeAttribution:function(t){if(!t){return this}if(this._attributions[t]){this._attributions[t]--;this._update()}return this},_update:function(){if(!this._map){return}var t=[];for(var e in this._attributions){if(this._attributions[e]){t.push(e)}}var i=[];if(this.options.prefix){i.push(this.options.prefix)}if(t.length){i.push(t.join(", "))}this._container.innerHTML=i.join(' <span aria-hidden="true">|</span> ')}});Qe.mergeOptions({attributionControl:true});Qe.addInitHook((function(){if(this.options.attributionControl){(new ci).addTo(this)}}));var ui=function(t){return new ci(t)};ei.Layers=ni;ei.Zoom=ri;ei.Scale=ai;ei.Attribution=ci;ii.layers=oi;ii.zoom=si;ii.scale=li;ii.attribution=ui;var di=C.extend({initialize:function(t){this._map=t},enable:function(){if(this._enabled){return this}this._enabled=true;this.addHooks();return this},disable:function(){if(!this._enabled){return this}this._enabled=false;this.removeHooks();return this},enabled:function(){return!!this._enabled}});di.addTo=function(t,e){t.addHandler(e,this);return this};var fi={Events:A};var pi=Zt.touch?"touchstart mousedown":"mousedown";var mi=I.extend({options:{clickTolerance:3},initialize:function(t,e,i,n){f(this,n);this._element=t;this._dragStartTarget=e||t;this._preventOutline=i},enable:function(){if(this._enabled){return}Be(this._dragStartTarget,pi,this._onDown,this);this._enabled=true},disable:function(){if(!this._enabled){return}if(mi._dragging===this){this.finishDrag(true)}Ne(this._dragStartTarget,pi,this._onDown,this);this._enabled=false;this._moved=false},_onDown:function(t){if(!this._enabled){return}this._moved=false;if(ue(this._element,"leaflet-zoom-anim")){return}if(t.touches&&t.touches.length!==1){if(mi._dragging===this){this.finishDrag()}return}if(mi._dragging||t.shiftKey||t.which!==1&&t.button!==1&&!t.touches){return}mi._dragging=this;if(this._preventOutline){Se(this._element)}Pe();we();if(this._moving){return}this.fire("down");var e=t.touches?t.touches[0]:t,i=Ie(this._element);this._startPoint=new E(e.clientX,e.clientY);this._startPos=xe(this._element);this._parentScale=Ee(i);var n=t.type==="mousedown";Be(document,n?"mousemove":"touchmove",this._onMove,this);Be(document,n?"mouseup":"touchend touchcancel",this._onUp,this)},_onMove:function(t){if(!this._enabled){return}if(t.touches&&t.touches.length>1){this._moved=true;return}var e=t.touches&&t.touches.length===1?t.touches[0]:t,i=new E(e.clientX,e.clientY)._subtract(this._startPoint);if(!i.x&&!i.y){return}if(Math.abs(i.x)+Math.abs(i.y)<this.options.clickTolerance){return}i.x/=this._parentScale.x;i.y/=this._parentScale.y;Ue(t);if(!this._moved){this.fire("dragstart");this._moved=true;de(document.body,"leaflet-dragging");this._lastTarget=t.target||t.srcElement;if(window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance){this._lastTarget=this._lastTarget.correspondingUseElement}de(this._lastTarget,"leaflet-drag-target")}this._newPos=this._startPos.add(i);this._moving=true;this._lastEvent=t;this._updatePosition()},_updatePosition:function(){var t={originalEvent:this._lastEvent};this.fire("predrag",t);be(this._element,this._newPos);this.fire("drag",t)},_onUp:function(){if(!this._enabled){return}this.finishDrag()},finishDrag:function(t){fe(document.body,"leaflet-dragging");if(this._lastTarget){fe(this._lastTarget,"leaflet-drag-target");this._lastTarget=null}Ne(document,"mousemove touchmove",this._onMove,this);Ne(document,"mouseup touchend touchcancel",this._onUp,this);ze();ke();if(this._moved&&this._moving){this.fire("dragend",{noInertia:t,distance:this._newPos.distanceTo(this._startPos)})}this._moving=false;mi._dragging=false}});function _i(t,e){if(!e||!t.length){return t.slice()}var i=e*e;t=xi(t,i);t=yi(t,i);return t}function gi(t,e,i){return Math.sqrt(zi(t,e,i,true))}function vi(t,e,i){return zi(t,e,i)}function yi(t,e){var i=t.length,n=typeof Uint8Array!==undefined+""?Uint8Array:Array,o=new n(i);o[0]=o[i-1]=1;bi(t,o,e,0,i-1);var r,s=[];for(r=0;r<i;r++){if(o[r]){s.push(t[r])}}return s}function bi(t,e,i,n,o){var r=0,s,a,l;for(a=n+1;a<=o-1;a++){l=zi(t[a],t[n],t[o],true);if(l>r){s=a;r=l}}if(r>i){e[s]=1;bi(t,e,i,n,s);bi(t,e,i,s,o)}}function xi(t,e){var i=[t[0]];for(var n=1,o=0,r=t.length;n<r;n++){if(Pi(t[n],t[o])>e){i.push(t[n]);o=n}}if(o<r-1){i.push(t[r-1])}return i}var wi;function ki(t,e,i,n,o){var r=n?wi:Li(t,i),s=Li(e,i),a,l,h;wi=s;while(true){if(!(r|s)){return[t,e]}if(r&s){return false}a=r||s;l=Ti(t,e,a,i,o);h=Li(l,i);if(a===r){t=l;r=h}else{e=l;s=h}}}function Ti(t,e,i,n,o){var r=e.x-t.x,s=e.y-t.y,a=n.min,l=n.max,h,c;if(i&8){h=t.x+r*(l.y-t.y)/s;c=l.y}else if(i&4){h=t.x+r*(a.y-t.y)/s;c=a.y}else if(i&2){h=l.x;c=t.y+s*(l.x-t.x)/r}else if(i&1){h=a.x;c=t.y+s*(a.x-t.x)/r}return new E(h,c,o)}function Li(t,e){var i=0;if(t.x<e.min.x){i|=1}else if(t.x>e.max.x){i|=2}if(t.y<e.min.y){i|=4}else if(t.y>e.max.y){i|=8}return i}function Pi(t,e){var i=e.x-t.x,n=e.y-t.y;return i*i+n*n}function zi(t,e,i,n){var o=e.x,r=e.y,s=i.x-o,a=i.y-r,l=s*s+a*a,h;if(l>0){h=((t.x-o)*s+(t.y-r)*a)/l;if(h>1){o=i.x;r=i.y}else if(h>0){o+=s*h;r+=a*h}}s=t.x-o;a=t.y-r;return n?s*s+a*a:new E(o,r)}function Mi(t){return!g(t[0])||typeof t[0][0]!=="object"&&typeof t[0][0]!=="undefined"}function Ci(t){console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead.");return Mi(t)}var Si={__proto__:null,simplify:_i,pointToSegmentDistance:gi,closestPointOnSegment:vi,clipSegment:ki,_getEdgeIntersection:Ti,_getBitCode:Li,_sqClosestPointOnSegment:zi,isFlat:Mi,_flat:Ci};function Ai(t,e,i){var n,o=[1,4,2,8],r,s,a,l,h,c,u,d;for(r=0,c=t.length;r<c;r++){t[r]._code=Li(t[r],e)}for(a=0;a<4;a++){u=o[a];n=[];for(r=0,c=t.length,s=c-1;r<c;s=r++){l=t[r];h=t[s];if(!(l._code&u)){if(h._code&u){d=Ti(h,l,u,e,i);d._code=Li(d,e);n.push(d)}n.push(l)}else if(!(h._code&u)){d=Ti(h,l,u,e,i);d._code=Li(d,e);n.push(d)}}t=n}return t}var Ii={__proto__:null,clipPolygon:Ai};var Ei={project:function(t){return new E(t.lng,t.lat)},unproject:function(t){return new j(t.y,t.x)},bounds:new O([-180,-90],[180,90])};var Zi={R:6378137,R_MINOR:6356752.314245179,bounds:new O([-20037508.34279,-15496570.73972],[20037508.34279,18764656.23138]),project:function(t){var e=Math.PI/180,i=this.R,n=t.lat*e,o=this.R_MINOR/i,r=Math.sqrt(1-o*o),s=r*Math.sin(n);var a=Math.tan(Math.PI/4-n/2)/Math.pow((1-s)/(1+s),r/2);n=-i*Math.log(Math.max(a,1e-10));return new E(t.lng*e*i,n)},unproject:function(t){var e=180/Math.PI,i=this.R,n=this.R_MINOR/i,o=Math.sqrt(1-n*n),r=Math.exp(-t.y/i),s=Math.PI/2-2*Math.atan(r);for(var a=0,l=.1,h;a<15&&Math.abs(l)>1e-7;a++){h=o*Math.sin(s);h=Math.pow((1-h)/(1+h),o/2);l=Math.PI/2-2*Math.atan(r*h)-s;s+=l}return new j(s*e,t.x*e/i)}};var Bi={__proto__:null,LonLat:Ei,Mercator:Zi,SphericalMercator:U};var Oi=i({},W,{code:"EPSG:3395",projection:Zi,transformation:function(){var t=.5/(Math.PI*Zi.R);return G(t,.5,-t,.5)}()});var Ni=i({},W,{code:"EPSG:4326",projection:Ei,transformation:G(1/180,1,-1/180,.5)});var Di=i({},F,{projection:Ei,transformation:G(1,0,-1,0),scale:function(t){return Math.pow(2,t)},zoom:function(t){return Math.log(t)/Math.LN2},distance:function(t,e){var i=e.lng-t.lng,n=e.lat-t.lat;return Math.sqrt(i*i+n*n)},infinite:true});F.Earth=W;F.EPSG3395=Oi;F.EPSG3857=K;F.EPSG900913=Y;F.EPSG4326=Ni;F.Simple=Di;var Ri=I.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:true},addTo:function(t){t.addLayer(this);return this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(t){if(t){t.removeLayer(this)}return this},getPane:function(t){return this._map.getPane(t?this.options[t]||t:this.options.pane)},addInteractiveTarget:function(t){this._map._targets[s(t)]=this;return this},removeInteractiveTarget:function(t){delete this._map._targets[s(t)];return this},getAttribution:function(){return this.options.attribution},_layerAdd:function(t){var e=t.target;if(!e.hasLayer(this)){return}this._map=e;this._zoomAnimated=e._zoomAnimated;if(this.getEvents){var i=this.getEvents();e.on(i,this);this.once("remove",(function(){e.off(i,this)}),this)}this.onAdd(e);this.fire("add");e.fire("layeradd",{layer:this})}});Qe.include({addLayer:function(t){if(!t._layerAdd){throw new Error("The provided object is not a Layer.")}var e=s(t);if(this._layers[e]){return this}this._layers[e]=t;t._mapToAdd=this;if(t.beforeAdd){t.beforeAdd(this)}this.whenReady(t._layerAdd,t);return this},removeLayer:function(t){var e=s(t);if(!this._layers[e]){return this}if(this._loaded){t.onRemove(this)}delete this._layers[e];if(this._loaded){this.fire("layerremove",{layer:t});t.fire("remove")}t._map=t._mapToAdd=null;return this},hasLayer:function(t){return s(t)in this._layers},eachLayer:function(t,e){for(var i in this._layers){t.call(e,this._layers[i])}return this},_addLayers:function(t){t=t?g(t)?t:[t]:[];for(var e=0,i=t.length;e<i;e++){this.addLayer(t[e])}},_addZoomLimit:function(t){if(!isNaN(t.options.maxZoom)||!isNaN(t.options.minZoom)){this._zoomBoundLayers[s(t)]=t;this._updateZoomLevels()}},_removeZoomLimit:function(t){var e=s(t);if(this._zoomBoundLayers[e]){delete this._zoomBoundLayers[e];this._updateZoomLevels()}},_updateZoomLevels:function(){var t=Infinity,e=-Infinity,i=this._getZoomSpan();for(var n in this._zoomBoundLayers){var o=this._zoomBoundLayers[n].options;t=o.minZoom===undefined?t:Math.min(t,o.minZoom);e=o.maxZoom===undefined?e:Math.max(e,o.maxZoom)}this._layersMaxZoom=e===-Infinity?undefined:e;this._layersMinZoom=t===Infinity?undefined:t;if(i!==this._getZoomSpan()){this.fire("zoomlevelschange")}if(this.options.maxZoom===undefined&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom){this.setZoom(this._layersMaxZoom)}if(this.options.minZoom===undefined&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom){this.setZoom(this._layersMinZoom)}}});var ji=Ri.extend({initialize:function(t,e){f(this,e);this._layers={};var i,n;if(t){for(i=0,n=t.length;i<n;i++){this.addLayer(t[i])}}},addLayer:function(t){var e=this.getLayerId(t);this._layers[e]=t;if(this._map){this._map.addLayer(t)}return this},removeLayer:function(t){var e=t in this._layers?t:this.getLayerId(t);if(this._map&&this._layers[e]){this._map.removeLayer(this._layers[e])}delete this._layers[e];return this},hasLayer:function(t){var e=typeof t==="number"?t:this.getLayerId(t);return e in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(t){var e=Array.prototype.slice.call(arguments,1),i,n;for(i in this._layers){n=this._layers[i];if(n[t]){n[t].apply(n,e)}}return this},onAdd:function(t){this.eachLayer(t.addLayer,t)},onRemove:function(t){this.eachLayer(t.removeLayer,t)},eachLayer:function(t,e){for(var i in this._layers){t.call(e,this._layers[i])}return this},getLayer:function(t){return this._layers[t]},getLayers:function(){var t=[];this.eachLayer(t.push,t);return t},setZIndex:function(t){return this.invoke("setZIndex",t)},getLayerId:function(t){return s(t)}});var Hi=function(t,e){return new ji(t,e)};var Fi=ji.extend({addLayer:function(t){if(this.hasLayer(t)){return this}t.addEventParent(this);ji.prototype.addLayer.call(this,t);return this.fire("layeradd",{layer:t})},removeLayer:function(t){if(!this.hasLayer(t)){return this}if(t in this._layers){t=this._layers[t]}t.removeEventParent(this);ji.prototype.removeLayer.call(this,t);return this.fire("layerremove",{layer:t})},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 D;for(var e in this._layers){var i=this._layers[e];t.extend(i.getBounds?i.getBounds():i.getLatLng())}return t}});var Wi=function(t,e){return new Fi(t,e)};var Vi=C.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:false},initialize:function(t){f(this,t)},createIcon:function(t){return this._createIcon("icon",t)},createShadow:function(t){return this._createIcon("shadow",t)},_createIcon:function(t,e){var i=this._getIconUrl(t);if(!i){if(t==="icon"){throw new Error("iconUrl not set in Icon options (see the docs).")}return null}var n=this._createImg(i,e&&e.tagName==="IMG"?e:null);this._setIconStyles(n,t);if(this.options.crossOrigin||this.options.crossOrigin===""){n.crossOrigin=this.options.crossOrigin===true?"":this.options.crossOrigin}return n},_setIconStyles:function(t,e){var i=this.options;var n=i[e+"Size"];if(typeof n==="number"){n=[n,n]}var o=B(n),r=B(e==="shadow"&&i.shadowAnchor||i.iconAnchor||o&&o.divideBy(2,true));t.className="leaflet-marker-"+e+" "+(i.className||"");if(r){t.style.marginLeft=-r.x+"px";t.style.marginTop=-r.y+"px"}if(o){t.style.width=o.x+"px";t.style.height=o.y+"px"}},_createImg:function(t,e){e=e||document.createElement("img");e.src=t;return e},_getIconUrl:function(t){return Zt.retina&&this.options[t+"RetinaUrl"]||this.options[t+"Url"]}});function Ui(t){return new Vi(t)}var qi=Vi.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){if(typeof qi.imagePath!=="string"){qi.imagePath=this._detectIconPath()}return(this.options.imagePath||qi.imagePath)+Vi.prototype._getIconUrl.call(this,t)},_stripUrl:function(t){var e=function(t,e,i){var n=e.exec(t);return n&&n[i]};t=e(t,/^url\((['"])?(.+)\1\)$/,2);return t&&e(t,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var t=se("div","leaflet-default-icon-path",document.body);var e=re(t,"background-image")||re(t,"backgroundImage");document.body.removeChild(t);e=this._stripUrl(e);if(e){return e}var i=document.querySelector('link[href$="leaflet.css"]');if(!i){return""}return i.href.substring(0,i.href.length-"leaflet.css".length-1)}});var Gi=di.extend({initialize:function(t){this._marker=t},addHooks:function(){var t=this._marker._icon;if(!this._draggable){this._draggable=new mi(t,t,true)}this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable();de(t,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable();if(this._marker._icon){fe(this._marker._icon,"leaflet-marker-draggable")}},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(t){var e=this._marker,i=e._map,n=this._marker.options.autoPanSpeed,o=this._marker.options.autoPanPadding,r=xe(e._icon),s=i.getPixelBounds(),a=i.getPixelOrigin();var l=N(s.min._subtract(a).add(o),s.max._subtract(a).subtract(o));if(!l.contains(r)){var h=B((Math.max(l.max.x,r.x)-l.max.x)/(s.max.x-l.max.x)-(Math.min(l.min.x,r.x)-l.min.x)/(s.min.x-l.min.x),(Math.max(l.max.y,r.y)-l.max.y)/(s.max.y-l.max.y)-(Math.min(l.min.y,r.y)-l.min.y)/(s.min.y-l.min.y)).multiplyBy(n);i.panBy(h,{animate:false});this._draggable._newPos._add(h);this._draggable._startPos._add(h);be(e._icon,this._draggable._newPos);this._onDrag(t);this._panRequest=P(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){if(this._marker.options.autoPan){z(this._panRequest);this._panRequest=P(this._adjustPan.bind(this,t))}},_onDrag:function(t){var e=this._marker,i=e._shadow,n=xe(e._icon),o=e._map.layerPointToLatLng(n);if(i){be(i,n)}e._latlng=o;t.latlng=o;t.oldLatLng=this._oldLatLng;e.fire("move",t).fire("drag",t)},_onDragEnd:function(t){z(this._panRequest);delete this._oldLatLng;this._marker.fire("moveend").fire("dragend",t)}});var Ki=Ri.extend({options:{icon:new qi,interactive:true,keyboard:true,title:"",alt:"Marker",zIndexOffset:0,opacity:1,riseOnHover:false,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:false,autoPanOnFocus:true,draggable:false,autoPan:false,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(t,e){f(this,e);this._latlng=H(t)},onAdd:function(t){this._zoomAnimated=this._zoomAnimated&&t.options.markerZoomAnimation;if(this._zoomAnimated){t.on("zoomanim",this._animateZoom,this)}this._initIcon();this.update()},onRemove:function(t){if(this.dragging&&this.dragging.enabled()){this.options.draggable=true;this.dragging.removeHooks()}delete this.dragging;if(this._zoomAnimated){t.off("zoomanim",this._animateZoom,this)}this._removeIcon();this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(t){var e=this._latlng;this._latlng=H(t);this.update();return this.fire("move",{oldLatLng:e,latlng:this._latlng})},setZIndexOffset:function(t){this.options.zIndexOffset=t;return this.update()},getIcon:function(){return this.options.icon},setIcon:function(t){this.options.icon=t;if(this._map){this._initIcon();this.update()}if(this._popup){this.bindPopup(this._popup,this._popup.options)}return this},getElement:function(){return this._icon},update:function(){if(this._icon&&this._map){var t=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(t)}return this},_initIcon:function(){var t=this.options,e="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");var i=t.icon.createIcon(this._icon),n=false;if(i!==this._icon){if(this._icon){this._removeIcon()}n=true;if(t.title){i.title=t.title}if(i.tagName==="IMG"){i.alt=t.alt||""}}de(i,e);if(t.keyboard){i.tabIndex="0";i.setAttribute("role","button")}this._icon=i;if(t.riseOnHover){this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex})}if(this.options.autoPanOnFocus){Be(i,"focus",this._panOnFocus,this)}var o=t.icon.createShadow(this._shadow),r=false;if(o!==this._shadow){this._removeShadow();r=true}if(o){de(o,e);o.alt=""}this._shadow=o;if(t.opacity<1){this._updateOpacity()}if(n){this.getPane().appendChild(this._icon)}this._initInteraction();if(o&&r){this.getPane(t.shadowPane).appendChild(this._shadow)}},_removeIcon:function(){if(this.options.riseOnHover){this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex})}if(this.options.autoPanOnFocus){Ne(this._icon,"focus",this._panOnFocus,this)}ae(this._icon);this.removeInteractiveTarget(this._icon);this._icon=null},_removeShadow:function(){if(this._shadow){ae(this._shadow)}this._shadow=null},_setPos:function(t){if(this._icon){be(this._icon,t)}if(this._shadow){be(this._shadow,t)}this._zIndex=t.y+this.options.zIndexOffset;this._resetZIndex()},_updateZIndex:function(t){if(this._icon){this._icon.style.zIndex=this._zIndex+t}},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center).round();this._setPos(e)},_initInteraction:function(){if(!this.options.interactive){return}de(this._icon,"leaflet-interactive");this.addInteractiveTarget(this._icon);if(Gi){var t=this.options.draggable;if(this.dragging){t=this.dragging.enabled();this.dragging.disable()}this.dragging=new Gi(this);if(t){this.dragging.enable()}}},setOpacity:function(t){this.options.opacity=t;if(this._map){this._updateOpacity()}return this},_updateOpacity:function(){var t=this.options.opacity;if(this._icon){_e(this._icon,t)}if(this._shadow){_e(this._shadow,t)}},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var t=this._map;if(!t){return}var e=this.options.icon.options;var i=e.iconSize?B(e.iconSize):B(0,0);var n=e.iconAnchor?B(e.iconAnchor):B(0,0);t.panInside(this._latlng,{paddingTopLeft:n,paddingBottomRight:i.subtract(n)})},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function Yi(t,e){return new Ki(t,e)}var Ji=Ri.extend({options:{stroke:true,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:false,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:true,bubblingMouseEvents:true},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(){if(this._map){this._renderer._updatePath(this)}return this},setStyle:function(t){f(this,t);if(this._renderer){this._renderer._updateStyle(this);if(this.options.stroke&&t&&Object.prototype.hasOwnProperty.call(t,"weight")){this._updateBounds()}}return this},bringToFront:function(){if(this._renderer){this._renderer._bringToFront(this)}return this},bringToBack:function(){if(this._renderer){this._renderer._bringToBack(this)}return 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)}});var Xi=Ji.extend({options:{fill:true,radius:10},initialize:function(t,e){f(this,e);this._latlng=H(t);this._radius=this.options.radius},setLatLng:function(t){var e=this._latlng;this._latlng=H(t);this.redraw();return this.fire("move",{oldLatLng:e,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(t){this.options.radius=this._radius=t;return this.redraw()},getRadius:function(){return this._radius},setStyle:function(t){var e=t&&t.radius||this._radius;Ji.prototype.setStyle.call(this,t);this.setRadius(e);return this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng);this._updateBounds()},_updateBounds:function(){var t=this._radius,e=this._radiusY||t,i=this._clickTolerance(),n=[t+i,e+i];this._pxBounds=new O(this._point.subtract(n),this._point.add(n))},_update:function(){if(this._map){this._updatePath()}},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(t){return t.distanceTo(this._point)<=this._radius+this._clickTolerance()}});function $i(t,e){return new Xi(t,e)}var Qi=Xi.extend({initialize:function(t,e,n){if(typeof e==="number"){e=i({},n,{radius:e})}f(this,e);this._latlng=H(t);if(isNaN(this.options.radius)){throw new Error("Circle radius cannot be NaN")}this._mRadius=this.options.radius},setRadius:function(t){this._mRadius=t;return this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var t=[this._radius,this._radiusY||this._radius];return new D(this._map.layerPointToLatLng(this._point.subtract(t)),this._map.layerPointToLatLng(this._point.add(t)))},setStyle:Ji.prototype.setStyle,_project:function(){var t=this._latlng.lng,e=this._latlng.lat,i=this._map,n=i.options.crs;if(n.distance===W.distance){var o=Math.PI/180,r=this._mRadius/W.R/o,s=i.project([e+r,t]),a=i.project([e-r,t]),l=s.add(a).divideBy(2),h=i.unproject(l).lat,c=Math.acos((Math.cos(r*o)-Math.sin(e*o)*Math.sin(h*o))/(Math.cos(e*o)*Math.cos(h*o)))/o;if(isNaN(c)||c===0){c=r/Math.cos(Math.PI/180*e)}this._point=l.subtract(i.getPixelOrigin());this._radius=isNaN(c)?0:l.x-i.project([h,t-c]).x;this._radiusY=l.y-s.y}else{var u=n.unproject(n.project(this._latlng).subtract([this._mRadius,0]));this._point=i.latLngToLayerPoint(this._latlng);this._radius=this._point.x-i.latLngToLayerPoint(u).x}this._updateBounds()}});function tn(t,e,i){return new Qi(t,e,i)}var en=Ji.extend({options:{smoothFactor:1,noClip:false},initialize:function(t,e){f(this,e);this._setLatLngs(t)},getLatLngs:function(){return this._latlngs},setLatLngs:function(t){this._setLatLngs(t);return this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(t){var e=Infinity,i=null,n=zi,o,r;for(var s=0,a=this._parts.length;s<a;s++){var l=this._parts[s];for(var h=1,c=l.length;h<c;h++){o=l[h-1];r=l[h];var u=n(t,o,r,true);if(u<e){e=u;i=n(t,o,r)}}}if(i){i.distance=Math.sqrt(e)}return i},getCenter:function(){if(!this._map){throw new Error("Must add layer to map before using getCenter()")}var t,e,i,n,o,r,s,a=this._rings[0],l=a.length;if(!l){return null}for(t=0,e=0;t<l-1;t++){e+=a[t].distanceTo(a[t+1])/2}if(e===0){return this._map.layerPointToLatLng(a[0])}for(t=0,n=0;t<l-1;t++){o=a[t];r=a[t+1];i=o.distanceTo(r);n+=i;if(n>e){s=(n-e)/i;return this._map.layerPointToLatLng([r.x-s*(r.x-o.x),r.y-s*(r.y-o.y)])}}},getBounds:function(){return this._bounds},addLatLng:function(t,e){e=e||this._defaultShape();t=H(t);e.push(t);this._bounds.extend(t);return this.redraw()},_setLatLngs:function(t){this._bounds=new D;this._latlngs=this._convertLatLngs(t)},_defaultShape:function(){return Mi(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(t){var e=[],i=Mi(t);for(var n=0,o=t.length;n<o;n++){if(i){e[n]=H(t[n]);this._bounds.extend(e[n])}else{e[n]=this._convertLatLngs(t[n])}}return e},_project:function(){var t=new O;this._rings=[];this._projectLatlngs(this._latlngs,this._rings,t);if(this._bounds.isValid()&&t.isValid()){this._rawPxBounds=t;this._updateBounds()}},_updateBounds:function(){var t=this._clickTolerance(),e=new E(t,t);if(!this._rawPxBounds){return}this._pxBounds=new O([this._rawPxBounds.min.subtract(e),this._rawPxBounds.max.add(e)])},_projectLatlngs:function(t,e,i){var n=t[0]instanceof j,o=t.length,r,s;if(n){s=[];for(r=0;r<o;r++){s[r]=this._map.latLngToLayerPoint(t[r]);i.extend(s[r])}e.push(s)}else{for(r=0;r<o;r++){this._projectLatlngs(t[r],e,i)}}},_clipPoints:function(){var t=this._renderer._bounds;this._parts=[];if(!this._pxBounds||!this._pxBounds.intersects(t)){return}if(this.options.noClip){this._parts=this._rings;return}var e=this._parts,i,n,o,r,s,a,l;for(i=0,o=0,r=this._rings.length;i<r;i++){l=this._rings[i];for(n=0,s=l.length;n<s-1;n++){a=ki(l[n],l[n+1],t,n,true);if(!a){continue}e[o]=e[o]||[];e[o].push(a[0]);if(a[1]!==l[n+1]||n===s-2){e[o].push(a[1]);o++}}}},_simplifyPoints:function(){var t=this._parts,e=this.options.smoothFactor;for(var i=0,n=t.length;i<n;i++){t[i]=_i(t[i],e)}},_update:function(){if(!this._map){return}this._clipPoints();this._simplifyPoints();this._updatePath()},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(t,e){var i,n,o,r,s,a,l=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(t)){return false}for(i=0,r=this._parts.length;i<r;i++){a=this._parts[i];for(n=0,s=a.length,o=s-1;n<s;o=n++){if(!e&&n===0){continue}if(gi(t,a[o],a[n])<=l){return true}}}return false}});function nn(t,e){return new en(t,e)}en._flat=Ci;var on=en.extend({options:{fill:true},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()")}var t,e,i,n,o,r,s,a,l,h=this._rings[0],c=h.length;if(!c){return null}r=s=a=0;for(t=0,e=c-1;t<c;e=t++){i=h[t];n=h[e];o=i.y*n.x-n.y*i.x;s+=(i.x+n.x)*o;a+=(i.y+n.y)*o;r+=o*3}if(r===0){l=h[0]}else{l=[s/r,a/r]}return this._map.layerPointToLatLng(l)},_convertLatLngs:function(t){var e=en.prototype._convertLatLngs.call(this,t),i=e.length;if(i>=2&&e[0]instanceof j&&e[0].equals(e[i-1])){e.pop()}return e},_setLatLngs:function(t){en.prototype._setLatLngs.call(this,t);if(Mi(this._latlngs)){this._latlngs=[this._latlngs]}},_defaultShape:function(){return Mi(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var t=this._renderer._bounds,e=this.options.weight,i=new E(e,e);t=new O(t.min.subtract(i),t.max.add(i));this._parts=[];if(!this._pxBounds||!this._pxBounds.intersects(t)){return}if(this.options.noClip){this._parts=this._rings;return}for(var n=0,o=this._rings.length,r;n<o;n++){r=Ai(this._rings[n],t,true);if(r.length){this._parts.push(r)}}},_updatePath:function(){this._renderer._updatePoly(this,true)},_containsPoint:function(t){var e=false,i,n,o,r,s,a,l,h;if(!this._pxBounds||!this._pxBounds.contains(t)){return false}for(r=0,l=this._parts.length;r<l;r++){i=this._parts[r];for(s=0,h=i.length,a=h-1;s<h;a=s++){n=i[s];o=i[a];if(n.y>t.y!==o.y>t.y&&t.x<(o.x-n.x)*(t.y-n.y)/(o.y-n.y)+n.x){e=!e}}}return e||en.prototype._containsPoint.call(this,t,true)}});function rn(t,e){return new on(t,e)}var sn=Fi.extend({initialize:function(t,e){f(this,e);this._layers={};if(t){this.addData(t)}},addData:function(t){var e=g(t)?t:t.features,i,n,o;if(e){for(i=0,n=e.length;i<n;i++){o=e[i];if(o.geometries||o.geometry||o.features||o.coordinates){this.addData(o)}}return this}var r=this.options;if(r.filter&&!r.filter(t)){return this}var s=an(t,r);if(!s){return this}s.feature=pn(t);s.defaultOptions=s.options;this.resetStyle(s);if(r.onEachFeature){r.onEachFeature(t,s)}return this.addLayer(s)},resetStyle:function(t){if(t===undefined){return this.eachLayer(this.resetStyle,this)}t.options=i({},t.defaultOptions);this._setLayerStyle(t,this.options.style);return this},setStyle:function(t){return this.eachLayer((function(e){this._setLayerStyle(e,t)}),this)},_setLayerStyle:function(t,e){if(t.setStyle){if(typeof e==="function"){e=e(t.feature)}t.setStyle(e)}}});function an(t,e){var i=t.type==="Feature"?t.geometry:t,n=i?i.coordinates:null,o=[],r=e&&e.pointToLayer,s=e&&e.coordsToLatLng||hn,a,l,h,c;if(!n&&!i){return null}switch(i.type){case"Point":a=s(n);return ln(r,t,a,e);case"MultiPoint":for(h=0,c=n.length;h<c;h++){a=s(n[h]);o.push(ln(r,t,a,e))}return new Fi(o);case"LineString":case"MultiLineString":l=cn(n,i.type==="LineString"?0:1,s);return new en(l,e);case"Polygon":case"MultiPolygon":l=cn(n,i.type==="Polygon"?1:2,s);return new on(l,e);case"GeometryCollection":for(h=0,c=i.geometries.length;h<c;h++){var u=an({geometry:i.geometries[h],type:"Feature",properties:t.properties},e);if(u){o.push(u)}}return new Fi(o);default:throw new Error("Invalid GeoJSON object.")}}function ln(t,e,i,n){return t?t(e,i):new Ki(i,n&&n.markersInheritOptions&&n)}function hn(t){return new j(t[1],t[0],t[2])}function cn(t,e,i){var n=[];for(var o=0,r=t.length,s;o<r;o++){s=e?cn(t[o],e-1,i):(i||hn)(t[o]);n.push(s)}return n}function un(t,e){t=H(t);return t.alt!==undefined?[c(t.lng,e),c(t.lat,e),c(t.alt,e)]:[c(t.lng,e),c(t.lat,e)]}function dn(t,e,i,n){var o=[];for(var r=0,s=t.length;r<s;r++){o.push(e?dn(t[r],e-1,i,n):un(t[r],n))}if(!e&&i){o.push(o[0])}return o}function fn(t,e){return t.feature?i({},t.feature,{geometry:e}):pn(e)}function pn(t){if(t.type==="Feature"||t.type==="FeatureCollection"){return t}return{type:"Feature",properties:{},geometry:t}}var mn={toGeoJSON:function(t){return fn(this,{type:"Point",coordinates:un(this.getLatLng(),t)})}};Ki.include(mn);Qi.include(mn);Xi.include(mn);en.include({toGeoJSON:function(t){var e=!Mi(this._latlngs);var i=dn(this._latlngs,e?1:0,false,t);return fn(this,{type:(e?"Multi":"")+"LineString",coordinates:i})}});on.include({toGeoJSON:function(t){var e=!Mi(this._latlngs),i=e&&!Mi(this._latlngs[0]);var n=dn(this._latlngs,i?2:e?1:0,true,t);if(!e){n=[n]}return fn(this,{type:(i?"Multi":"")+"Polygon",coordinates:n})}});ji.include({toMultiPoint:function(t){var e=[];this.eachLayer((function(i){e.push(i.toGeoJSON(t).geometry.coordinates)}));return fn(this,{type:"MultiPoint",coordinates:e})},toGeoJSON:function(t){var e=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(e==="MultiPoint"){return this.toMultiPoint(t)}var i=e==="GeometryCollection",n=[];this.eachLayer((function(e){if(e.toGeoJSON){var o=e.toGeoJSON(t);if(i){n.push(o.geometry)}else{var r=pn(o);if(r.type==="FeatureCollection"){n.push.apply(n,r.features)}else{n.push(r)}}}}));if(i){return fn(this,{geometries:n,type:"GeometryCollection"})}return{type:"FeatureCollection",features:n}}});function _n(t,e){return new sn(t,e)}var gn=_n;var vn=Ri.extend({options:{opacity:1,alt:"",interactive:false,crossOrigin:false,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(t,e,i){this._url=t;this._bounds=R(e);f(this,i)},onAdd:function(){if(!this._image){this._initImage();if(this.options.opacity<1){this._updateOpacity()}}if(this.options.interactive){de(this._image,"leaflet-interactive");this.addInteractiveTarget(this._image)}this.getPane().appendChild(this._image);this._reset()},onRemove:function(){ae(this._image);if(this.options.interactive){this.removeInteractiveTarget(this._image)}},setOpacity:function(t){this.options.opacity=t;if(this._image){this._updateOpacity()}return this},setStyle:function(t){if(t.opacity){this.setOpacity(t.opacity)}return this},bringToFront:function(){if(this._map){he(this._image)}return this},bringToBack:function(){if(this._map){ce(this._image)}return this},setUrl:function(t){this._url=t;if(this._image){this._image.src=t}return this},setBounds:function(t){this._bounds=R(t);if(this._map){this._reset()}return this},getEvents:function(){var t={zoom:this._reset,viewreset:this._reset};if(this._zoomAnimated){t.zoomanim=this._animateZoom}return t},setZIndex:function(t){this.options.zIndex=t;this._updateZIndex();return this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var t=this._url.tagName==="IMG";var e=this._image=t?this._url:se("img");de(e,"leaflet-image-layer");if(this._zoomAnimated){de(e,"leaflet-zoom-animated")}if(this.options.className){de(e,this.options.className)}e.onselectstart=h;e.onmousemove=h;e.onload=o(this.fire,this,"load");e.onerror=o(this._overlayOnError,this,"error");if(this.options.crossOrigin||this.options.crossOrigin===""){e.crossOrigin=this.options.crossOrigin===true?"":this.options.crossOrigin}if(this.options.zIndex){this._updateZIndex()}if(t){this._url=e.src;return}e.src=this._url;e.alt=this.options.alt},_animateZoom:function(t){var e=this._map.getZoomScale(t.zoom),i=this._map._latLngBoundsToNewLayerBounds(this._bounds,t.zoom,t.center).min;ye(this._image,i,e)},_reset:function(){var t=this._image,e=new O(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),i=e.getSize();be(t,e.min);t.style.width=i.x+"px";t.style.height=i.y+"px"},_updateOpacity:function(){_e(this._image,this.options.opacity)},_updateZIndex:function(){if(this._image&&this.options.zIndex!==undefined&&this.options.zIndex!==null){this._image.style.zIndex=this.options.zIndex}},_overlayOnError:function(){this.fire("error");var t=this.options.errorOverlayUrl;if(t&&this._url!==t){this._url=t;this._image.src=t}},getCenter:function(){return this._bounds.getCenter()}});var yn=function(t,e,i){return new vn(t,e,i)};var bn=vn.extend({options:{autoplay:true,loop:true,keepAspectRatio:true,muted:false,playsInline:true},_initImage:function(){var t=this._url.tagName==="VIDEO";var e=this._image=t?this._url:se("video");de(e,"leaflet-image-layer");if(this._zoomAnimated){de(e,"leaflet-zoom-animated")}if(this.options.className){de(e,this.options.className)}e.onselectstart=h;e.onmousemove=h;e.onloadeddata=o(this.fire,this,"load");if(t){var i=e.getElementsByTagName("source");var n=[];for(var r=0;r<i.length;r++){n.push(i[r].src)}this._url=i.length>0?n:[e.src];return}if(!g(this._url)){this._url=[this._url]}if(!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(e.style,"objectFit")){e.style["objectFit"]="fill"}e.autoplay=!!this.options.autoplay;e.loop=!!this.options.loop;e.muted=!!this.options.muted;e.playsInline=!!this.options.playsInline;for(var s=0;s<this._url.length;s++){var a=se("source");a.src=this._url[s];e.appendChild(a)}}});function xn(t,e,i){return new bn(t,e,i)}var wn=vn.extend({_initImage:function(){var t=this._image=this._url;de(t,"leaflet-image-layer");if(this._zoomAnimated){de(t,"leaflet-zoom-animated")}if(this.options.className){de(t,this.options.className)}t.onselectstart=h;t.onmousemove=h}});function kn(t,e,i){return new wn(t,e,i)}var Tn=Ri.extend({options:{interactive:false,offset:[0,0],className:"",pane:undefined},initialize:function(t,e){f(this,t);this._source=e},openOn:function(t){t=arguments.length?t:this._source._map;if(!t.hasLayer(this)){t.addLayer(this)}return this},close:function(){if(this._map){this._map.removeLayer(this)}return this},toggle:function(t){if(this._map){this.close()}else{if(arguments.length){this._source=t}else{t=this._source}this._prepareOpen();this.openOn(t._map)}return this},onAdd:function(t){this._zoomAnimated=t._zoomAnimated;if(!this._container){this._initLayout()}if(t._fadeAnimated){_e(this._container,0)}clearTimeout(this._removeTimeout);this.getPane().appendChild(this._container);this.update();if(t._fadeAnimated){_e(this._container,1)}this.bringToFront();if(this.options.interactive){de(this._container,"leaflet-interactive");this.addInteractiveTarget(this._container)}},onRemove:function(t){if(t._fadeAnimated){_e(this._container,0);this._removeTimeout=setTimeout(o(ae,undefined,this._container),200)}else{ae(this._container)}if(this.options.interactive){fe(this._container,"leaflet-interactive");this.removeInteractiveTarget(this._container)}},getLatLng:function(){return this._latlng},setLatLng:function(t){this._latlng=H(t);if(this._map){this._updatePosition();this._adjustPan()}return this},getContent:function(){return this._content},setContent:function(t){this._content=t;this.update();return this},getElement:function(){return this._container},update:function(){if(!this._map){return}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};if(this._zoomAnimated){t.zoomanim=this._animateZoom}return t},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){if(this._map){he(this._container)}return this},bringToBack:function(){if(this._map){ce(this._container)}return this},_prepareOpen:function(t){var e=this._source;if(!e._map){return false}if(e instanceof Fi){e=null;var i=this._source._layers;for(var n in i){if(i[n]._map){e=i[n];break}}if(!e){return false}this._source=e}if(!t){if(e.getCenter){t=e.getCenter()}else if(e.getLatLng){t=e.getLatLng()}else if(e.getBounds){t=e.getBounds().getCenter()}else{throw new Error("Unable to get source layer LatLng.")}}this.setLatLng(t);if(this._map){this.update()}return true},_updateContent:function(){if(!this._content){return}var t=this._contentNode;var e=typeof this._content==="function"?this._content(this._source||this):this._content;if(typeof e==="string"){t.innerHTML=e}else{while(t.hasChildNodes()){t.removeChild(t.firstChild)}t.appendChild(e)}this.fire("contentupdate")},_updatePosition:function(){if(!this._map){return}var t=this._map.latLngToLayerPoint(this._latlng),e=B(this.options.offset),i=this._getAnchor();if(this._zoomAnimated){be(this._container,t.add(i))}else{e=e.add(t).add(i)}var n=this._containerBottom=-e.y,o=this._containerLeft=-Math.round(this._containerWidth/2)+e.x;this._container.style.bottom=n+"px";this._container.style.left=o+"px"},_getAnchor:function(){return[0,0]}});Qe.include({_initOverlay:function(t,e,i,n){var o=e;if(!(o instanceof t)){o=new t(n).setContent(e)}if(i){o.setLatLng(i)}return o}});Ri.include({_initOverlay:function(t,e,i,n){var o=i;if(o instanceof t){f(o,n);o._source=this}else{o=e&&!n?e:new t(n,this);o.setContent(i)}return o}});var Ln=Tn.extend({options:{pane:"popupPane",offset:[0,7],maxWidth:300,minWidth:50,maxHeight:null,autoPan:true,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:false,closeButton:true,autoClose:true,closeOnEscapeKey:true,className:""},openOn:function(t){t=arguments.length?t:this._source._map;if(!t.hasLayer(this)&&t._popup&&t._popup.options.autoClose){t.removeLayer(t._popup)}t._popup=this;return Tn.prototype.openOn.call(this,t)},onAdd:function(t){Tn.prototype.onAdd.call(this,t);t.fire("popupopen",{popup:this});if(this._source){this._source.fire("popupopen",{popup:this},true);if(!(this._source instanceof Ji)){this._source.on("preclick",Fe)}}},onRemove:function(t){Tn.prototype.onRemove.call(this,t);t.fire("popupclose",{popup:this});if(this._source){this._source.fire("popupclose",{popup:this},true);if(!(this._source instanceof Ji)){this._source.off("preclick",Fe)}}},getEvents:function(){var t=Tn.prototype.getEvents.call(this);if(this.options.closeOnClick!==undefined?this.options.closeOnClick:this._map.options.closePopupOnClick){t.preclick=this.close}if(this.options.keepInView){t.moveend=this._adjustPan}return t},_initLayout:function(){var t="leaflet-popup",e=this._container=se("div",t+" "+(this.options.className||"")+" leaflet-zoom-animated");var i=this._wrapper=se("div",t+"-content-wrapper",e);this._contentNode=se("div",t+"-content",i);Ve(e);We(this._contentNode);Be(e,"contextmenu",Fe);this._tipContainer=se("div",t+"-tip-container",e);this._tip=se("div",t+"-tip",this._tipContainer);if(this.options.closeButton){var n=this._closeButton=se("a",t+"-close-button",e);n.setAttribute("role","button");n.setAttribute("aria-label","Close popup");n.href="#close";n.innerHTML='<span aria-hidden="true">&#215;</span>';Be(n,"click",this.close,this)}},_updateLayout:function(){var t=this._contentNode,e=t.style;e.width="";e.whiteSpace="nowrap";var i=t.offsetWidth;i=Math.min(i,this.options.maxWidth);i=Math.max(i,this.options.minWidth);e.width=i+1+"px";e.whiteSpace="";e.height="";var n=t.offsetHeight,o=this.options.maxHeight,r="leaflet-popup-scrolled";if(o&&n>o){e.height=o+"px";de(t,r)}else{fe(t,r)}this._containerWidth=this._container.offsetWidth},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center),i=this._getAnchor();be(this._container,e.add(i))},_adjustPan:function(t){if(!this.options.autoPan){return}if(this._map._panAnim){this._map._panAnim.stop()}var e=this._map,i=parseInt(re(this._container,"marginBottom"),10)||0,n=this._container.offsetHeight+i,o=this._containerWidth,r=new E(this._containerLeft,-n-this._containerBottom);r._add(xe(this._container));var s=e.layerPointToContainerPoint(r),a=B(this.options.autoPanPadding),l=B(this.options.autoPanPaddingTopLeft||a),h=B(this.options.autoPanPaddingBottomRight||a),c=e.getSize(),u=0,d=0;if(s.x+o+h.x>c.x){u=s.x+o-c.x+h.x}if(s.x-u-l.x<0){u=s.x-l.x}if(s.y+n+h.y>c.y){d=s.y+n-c.y+h.y}if(s.y-d-l.y<0){d=s.y-l.y}if(u||d){e.fire("autopanstart").panBy([u,d],{animate:t&&t.type==="moveend"})}},_getAnchor:function(){return B(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}});var Pn=function(t,e){return new Ln(t,e)};Qe.mergeOptions({closePopupOnClick:true});Qe.include({openPopup:function(t,e,i){this._initOverlay(Ln,t,e,i).openOn(this);return this},closePopup:function(t){t=arguments.length?t:this._popup;if(t){t.close()}return this}});Ri.include({bindPopup:function(t,e){this._popup=this._initOverlay(Ln,this._popup,t,e);if(!this._popupHandlersAdded){this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup});this._popupHandlersAdded=true}return this},unbindPopup:function(){if(this._popup){this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup});this._popupHandlersAdded=false;this._popup=null}return this},openPopup:function(t){if(this._popup&&this._popup._prepareOpen(t)){this._popup.openOn(this._map)}return this},closePopup:function(){if(this._popup){this._popup.close()}return this},togglePopup:function(){if(this._popup){this._popup.toggle(this)}return this},isPopupOpen:function(){return this._popup?this._popup.isOpen():false},setPopupContent:function(t){if(this._popup){this._popup.setContent(t)}return this},getPopup:function(){return this._popup},_openPopup:function(t){if(!this._popup||!this._map){return}qe(t);var e=t.layer||t.target;if(this._popup._source===e&&!(e instanceof Ji)){if(this._map.hasLayer(this._popup)){this.closePopup()}else{this.openPopup(t.latlng)}return}this._popup._source=e;this.openPopup(t.latlng)},_movePopup:function(t){this._popup.setLatLng(t.latlng)},_onKeyPress:function(t){if(t.originalEvent.keyCode===13){this._openPopup(t)}}});var zn=Tn.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:false,sticky:false,opacity:.9},onAdd:function(t){Tn.prototype.onAdd.call(this,t);this.setOpacity(this.options.opacity);t.fire("tooltipopen",{tooltip:this});if(this._source){this.addEventParent(this._source);this._source.fire("tooltipopen",{tooltip:this},true)}},onRemove:function(t){Tn.prototype.onRemove.call(this,t);t.fire("tooltipclose",{tooltip:this});if(this._source){this.removeEventParent(this._source);this._source.fire("tooltipclose",{tooltip:this},true)}},getEvents:function(){var t=Tn.prototype.getEvents.call(this);if(!this.options.permanent){t.preclick=this.close}return t},_initLayout:function(){var t="leaflet-tooltip",e=t+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=se("div",e)},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(t){var e,i,n=this._map,o=this._container,r=n.latLngToContainerPoint(n.getCenter()),s=n.layerPointToContainerPoint(t),a=this.options.direction,l=o.offsetWidth,h=o.offsetHeight,c=B(this.options.offset),u=this._getAnchor();if(a==="top"){e=l/2;i=h}else if(a==="bottom"){e=l/2;i=0}else if(a==="center"){e=l/2;i=h/2}else if(a==="right"){e=0;i=h/2}else if(a==="left"){e=l;i=h/2}else if(s.x<r.x){a="right";e=0;i=h/2}else{a="left";e=l+(c.x+u.x)*2;i=h/2}t=t.subtract(B(e,i,true)).add(c).add(u);fe(o,"leaflet-tooltip-right");fe(o,"leaflet-tooltip-left");fe(o,"leaflet-tooltip-top");fe(o,"leaflet-tooltip-bottom");de(o,"leaflet-tooltip-"+a);be(o,t)},_updatePosition:function(){var t=this._map.latLngToLayerPoint(this._latlng);this._setPosition(t)},setOpacity:function(t){this.options.opacity=t;if(this._container){_e(this._container,t)}},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center);this._setPosition(e)},_getAnchor:function(){return B(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}});var Mn=function(t,e){return new zn(t,e)};Qe.include({openTooltip:function(t,e,i){this._initOverlay(zn,t,e,i).openOn(this);return this},closeTooltip:function(t){t.close();return this}});Ri.include({bindTooltip:function(t,e){if(this._tooltip&&this.isTooltipOpen()){this.unbindTooltip()}this._tooltip=this._initOverlay(zn,this._tooltip,t,e);this._initTooltipInteractions();if(this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)){this.openTooltip()}return this},unbindTooltip:function(){if(this._tooltip){this._initTooltipInteractions(true);this.closeTooltip();this._tooltip=null}return this},_initTooltipInteractions:function(t){if(!t&&this._tooltipHandlersAdded){return}var e=t?"off":"on",i={remove:this.closeTooltip,move:this._moveTooltip};if(!this._tooltip.options.permanent){i.mouseover=this._openTooltip;i.mouseout=this.closeTooltip;i.click=this._openTooltip}else{i.add=this._openTooltip}if(this._tooltip.options.sticky){i.mousemove=this._moveTooltip}this[e](i);this._tooltipHandlersAdded=!t},openTooltip:function(t){if(this._tooltip&&this._tooltip._prepareOpen(t)){this._tooltip.openOn(this._map)}return this},closeTooltip:function(){if(this._tooltip){return this._tooltip.close()}},toggleTooltip:function(){if(this._tooltip){this._tooltip.toggle(this)}return this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(t){if(this._tooltip){this._tooltip.setContent(t)}return this},getTooltip:function(){return this._tooltip},_openTooltip:function(t){if(!this._tooltip||!this._map||this._map.dragging&&this._map.dragging.moving()){return}this._tooltip._source=t.layer||t.target;this.openTooltip(this._tooltip.options.sticky?t.latlng:undefined)},_moveTooltip:function(t){var e=t.latlng,i,n;if(this._tooltip.options.sticky&&t.originalEvent){i=this._map.mouseEventToContainerPoint(t.originalEvent);n=this._map.containerPointToLayerPoint(i);e=this._map.layerPointToLatLng(n)}this._tooltip.setLatLng(e)}});var Cn=Vi.extend({options:{iconSize:[12,12],html:false,bgPos:null,className:"leaflet-div-icon"},createIcon:function(t){var e=t&&t.tagName==="DIV"?t:document.createElement("div"),i=this.options;if(i.html instanceof Element){le(e);e.appendChild(i.html)}else{e.innerHTML=i.html!==false?i.html:""}if(i.bgPos){var n=B(i.bgPos);e.style.backgroundPosition=-n.x+"px "+-n.y+"px"}this._setIconStyles(e,"icon");return e},createShadow:function(){return null}});function Sn(t){return new Cn(t)}Vi.Default=qi;var An=Ri.extend({options:{tileSize:256,opacity:1,updateWhenIdle:Zt.mobile,updateWhenZooming:true,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:undefined,maxNativeZoom:undefined,minNativeZoom:undefined,noWrap:false,pane:"tilePane",className:"",keepBuffer:2},initialize:function(t){f(this,t)},onAdd:function(){this._initContainer();this._levels={};this._tiles={};this._resetView()},beforeAdd:function(t){t._addZoomLimit(this)},onRemove:function(t){this._removeAllTiles();ae(this._container);t._removeZoomLimit(this);this._container=null;this._tileZoom=undefined},bringToFront:function(){if(this._map){he(this._container);this._setAutoZIndex(Math.max)}return this},bringToBack:function(){if(this._map){ce(this._container);this._setAutoZIndex(Math.min)}return this},getContainer:function(){return this._container},setOpacity:function(t){this.options.opacity=t;this._updateOpacity();return this},setZIndex:function(t){this.options.zIndex=t;this._updateZIndex();return this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var t=this._clampZoom(this._map.getZoom());if(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};if(!this.options.updateWhenIdle){if(!this._onMove){this._onMove=a(this._onMoveEnd,this.options.updateInterval,this)}t.move=this._onMove}if(this._zoomAnimated){t.zoomanim=this._animateZoom}return t},createTile:function(){return document.createElement("div")},getTileSize:function(){var t=this.options.tileSize;return t instanceof E?t:new E(t,t)},_updateZIndex:function(){if(this._container&&this.options.zIndex!==undefined&&this.options.zIndex!==null){this._container.style.zIndex=this.options.zIndex}},_setAutoZIndex:function(t){var e=this.getPane().children,i=-t(-Infinity,Infinity);for(var n=0,o=e.length,r;n<o;n++){r=e[n].style.zIndex;if(e[n]!==this._container&&r){i=t(i,+r)}}if(isFinite(i)){this.options.zIndex=i+t(-1,1);this._updateZIndex()}},_updateOpacity:function(){if(!this._map){return}if(Zt.ielt9){return}_e(this._container,this.options.opacity);var t=+new Date,e=false,i=false;for(var n in this._tiles){var o=this._tiles[n];if(!o.current||!o.loaded){continue}var r=Math.min(1,(t-o.loaded)/200);_e(o.el,r);if(r<1){e=true}else{if(o.active){i=true}else{this._onOpaqueTile(o)}o.active=true}}if(i&&!this._noPrune){this._pruneTiles()}if(e){z(this._fadeFrame);this._fadeFrame=P(this._updateOpacity,this)}},_onOpaqueTile:h,_initContainer:function(){if(this._container){return}this._container=se("div","leaflet-layer "+(this.options.className||""));this._updateZIndex();if(this.options.opacity<1){this._updateOpacity()}this.getPane().appendChild(this._container)},_updateLevels:function(){var t=this._tileZoom,e=this.options.maxZoom;if(t===undefined){return undefined}for(var i in this._levels){i=Number(i);if(this._levels[i].el.children.length||i===t){this._levels[i].el.style.zIndex=e-Math.abs(t-i);this._onUpdateLevel(i)}else{ae(this._levels[i].el);this._removeTilesAtZoom(i);this._onRemoveLevel(i);delete this._levels[i]}}var n=this._levels[t],o=this._map;if(!n){n=this._levels[t]={};n.el=se("div","leaflet-tile-container leaflet-zoom-animated",this._container);n.el.style.zIndex=e;n.origin=o.project(o.unproject(o.getPixelOrigin()),t).round();n.zoom=t;this._setZoomTransform(n,o.getCenter(),o.getZoom());this._onCreateLevel(n)}this._level=n;return n},_onUpdateLevel:h,_onRemoveLevel:h,_onCreateLevel:h,_pruneTiles:function(){if(!this._map){return}var t,e;var i=this._map.getZoom();if(i>this.options.maxZoom||i<this.options.minZoom){this._removeAllTiles();return}for(t in this._tiles){e=this._tiles[t];e.retain=e.current}for(t in this._tiles){e=this._tiles[t];if(e.current&&!e.active){var n=e.coords;if(!this._retainParent(n.x,n.y,n.z,n.z-5)){this._retainChildren(n.x,n.y,n.z,n.z+2)}}}for(t in this._tiles){if(!this._tiles[t].retain){this._removeTile(t)}}},_removeTilesAtZoom:function(t){for(var e in this._tiles){if(this._tiles[e].coords.z!==t){continue}this._removeTile(e)}},_removeAllTiles:function(){for(var t in this._tiles){this._removeTile(t)}},_invalidateAll:function(){for(var t in this._levels){ae(this._levels[t].el);this._onRemoveLevel(Number(t));delete this._levels[t]}this._removeAllTiles();this._tileZoom=undefined},_retainParent:function(t,e,i,n){var o=Math.floor(t/2),r=Math.floor(e/2),s=i-1,a=new E(+o,+r);a.z=+s;var l=this._tileCoordsToKey(a),h=this._tiles[l];if(h&&h.active){h.retain=true;return true}else if(h&&h.loaded){h.retain=true}if(s>n){return this._retainParent(o,r,s,n)}return false},_retainChildren:function(t,e,i,n){for(var o=2*t;o<2*t+2;o++){for(var r=2*e;r<2*e+2;r++){var s=new E(o,r);s.z=i+1;var a=this._tileCoordsToKey(s),l=this._tiles[a];if(l&&l.active){l.retain=true;continue}else if(l&&l.loaded){l.retain=true}if(i+1<n){this._retainChildren(o,r,i+1,n)}}}},_resetView:function(t){var e=t&&(t.pinch||t.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),e,e)},_animateZoom:function(t){this._setView(t.center,t.zoom,true,t.noUpdate)},_clampZoom:function(t){var e=this.options;if(undefined!==e.minNativeZoom&&t<e.minNativeZoom){return e.minNativeZoom}if(undefined!==e.maxNativeZoom&&e.maxNativeZoom<t){return e.maxNativeZoom}return t},_setView:function(t,e,i,n){var o=Math.round(e);if(this.options.maxZoom!==undefined&&o>this.options.maxZoom||this.options.minZoom!==undefined&&o<this.options.minZoom){o=undefined}else{o=this._clampZoom(o)}var r=this.options.updateWhenZooming&&o!==this._tileZoom;if(!n||r){this._tileZoom=o;if(this._abortLoading){this._abortLoading()}this._updateLevels();this._resetGrid();if(o!==undefined){this._update(t)}if(!i){this._pruneTiles()}this._noPrune=!!i}this._setZoomTransforms(t,e)},_setZoomTransforms:function(t,e){for(var i in this._levels){this._setZoomTransform(this._levels[i],t,e)}},_setZoomTransform:function(t,e,i){var n=this._map.getZoomScale(i,t.zoom),o=t.origin.multiplyBy(n).subtract(this._map._getNewPixelOrigin(e,i)).round();if(Zt.any3d){ye(t.el,o,n)}else{be(t.el,o)}},_resetGrid:function(){var t=this._map,e=t.options.crs,i=this._tileSize=this.getTileSize(),n=this._tileZoom;var o=this._map.getPixelWorldBounds(this._tileZoom);if(o){this._globalTileRange=this._pxBoundsToTileRange(o)}this._wrapX=e.wrapLng&&!this.options.noWrap&&[Math.floor(t.project([0,e.wrapLng[0]],n).x/i.x),Math.ceil(t.project([0,e.wrapLng[1]],n).x/i.y)];this._wrapY=e.wrapLat&&!this.options.noWrap&&[Math.floor(t.project([e.wrapLat[0],0],n).y/i.x),Math.ceil(t.project([e.wrapLat[1],0],n).y/i.y)]},_onMoveEnd:function(){if(!this._map||this._map._animatingZoom){return}this._update()},_getTiledPixelBounds:function(t){var e=this._map,i=e._animatingZoom?Math.max(e._animateToZoom,e.getZoom()):e.getZoom(),n=e.getZoomScale(i,this._tileZoom),o=e.project(t,this._tileZoom).floor(),r=e.getSize().divideBy(n*2);return new O(o.subtract(r),o.add(r))},_update:function(t){var e=this._map;if(!e){return}var i=this._clampZoom(e.getZoom());if(t===undefined){t=e.getCenter()}if(this._tileZoom===undefined){return}var n=this._getTiledPixelBounds(t),o=this._pxBoundsToTileRange(n),r=o.getCenter(),s=[],a=this.options.keepBuffer,l=new O(o.getBottomLeft().subtract([a,-a]),o.getTopRight().add([a,-a]));if(!(isFinite(o.min.x)&&isFinite(o.min.y)&&isFinite(o.max.x)&&isFinite(o.max.y))){throw new Error("Attempted to load an infinite number of tiles")}for(var h in this._tiles){var c=this._tiles[h].coords;if(c.z!==this._tileZoom||!l.contains(new E(c.x,c.y))){this._tiles[h].current=false}}if(Math.abs(i-this._tileZoom)>1){this._setView(t,i);return}for(var u=o.min.y;u<=o.max.y;u++){for(var d=o.min.x;d<=o.max.x;d++){var f=new E(d,u);f.z=this._tileZoom;if(!this._isValidTile(f)){continue}var p=this._tiles[this._tileCoordsToKey(f)];if(p){p.current=true}else{s.push(f)}}}s.sort((function(t,e){return t.distanceTo(r)-e.distanceTo(r)}));if(s.length!==0){if(!this._loading){this._loading=true;this.fire("loading")}var m=document.createDocumentFragment();for(d=0;d<s.length;d++){this._addTile(s[d],m)}this._level.el.appendChild(m)}},_isValidTile:function(t){var e=this._map.options.crs;if(!e.infinite){var i=this._globalTileRange;if(!e.wrapLng&&(t.x<i.min.x||t.x>i.max.x)||!e.wrapLat&&(t.y<i.min.y||t.y>i.max.y)){return false}}if(!this.options.bounds){return true}var n=this._tileCoordsToBounds(t);return R(this.options.bounds).overlaps(n)},_keyToBounds:function(t){return this._tileCoordsToBounds(this._keyToTileCoords(t))},_tileCoordsToNwSe:function(t){var e=this._map,i=this.getTileSize(),n=t.scaleBy(i),o=n.add(i),r=e.unproject(n,t.z),s=e.unproject(o,t.z);return[r,s]},_tileCoordsToBounds:function(t){var e=this._tileCoordsToNwSe(t),i=new D(e[0],e[1]);if(!this.options.noWrap){i=this._map.wrapLatLngBounds(i)}return i},_tileCoordsToKey:function(t){return t.x+":"+t.y+":"+t.z},_keyToTileCoords:function(t){var e=t.split(":"),i=new E(+e[0],+e[1]);i.z=+e[2];return i},_removeTile:function(t){var e=this._tiles[t];if(!e){return}ae(e.el);delete this._tiles[t];this.fire("tileunload",{tile:e.el,coords:this._keyToTileCoords(t)})},_initTile:function(t){de(t,"leaflet-tile");var e=this.getTileSize();t.style.width=e.x+"px";t.style.height=e.y+"px";t.onselectstart=h;t.onmousemove=h;if(Zt.ielt9&&this.options.opacity<1){_e(t,this.options.opacity)}},_addTile:function(t,e){var i=this._getTilePos(t),n=this._tileCoordsToKey(t);var r=this.createTile(this._wrapCoords(t),o(this._tileReady,this,t));this._initTile(r);if(this.createTile.length<2){P(o(this._tileReady,this,t,null,r))}be(r,i);this._tiles[n]={el:r,coords:t,current:true};e.appendChild(r);this.fire("tileloadstart",{tile:r,coords:t})},_tileReady:function(t,e,i){if(e){this.fire("tileerror",{error:e,tile:i,coords:t})}var n=this._tileCoordsToKey(t);i=this._tiles[n];if(!i){return}i.loaded=+new Date;if(this._map._fadeAnimated){_e(i.el,0);z(this._fadeFrame);this._fadeFrame=P(this._updateOpacity,this)}else{i.active=true;this._pruneTiles()}if(!e){de(i.el,"leaflet-tile-loaded");this.fire("tileload",{tile:i.el,coords:t})}if(this._noTilesToLoad()){this._loading=false;this.fire("load");if(Zt.ielt9||!this._map._fadeAnimated){P(this._pruneTiles,this)}else{setTimeout(o(this._pruneTiles,this),250)}}},_getTilePos:function(t){return t.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(t){var e=new E(this._wrapX?l(t.x,this._wrapX):t.x,this._wrapY?l(t.y,this._wrapY):t.y);e.z=t.z;return e},_pxBoundsToTileRange:function(t){var e=this.getTileSize();return new O(t.min.unscaleBy(e).floor(),t.max.unscaleBy(e).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var t in this._tiles){if(!this._tiles[t].loaded){return false}}return true}});function In(t){return new An(t)}var En=An.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:false,zoomReverse:false,detectRetina:false,crossOrigin:false,referrerPolicy:false},initialize:function(t,e){this._url=t;e=f(this,e);if(e.detectRetina&&Zt.retina&&e.maxZoom>0){e.tileSize=Math.floor(e.tileSize/2);if(!e.zoomReverse){e.zoomOffset++;e.maxZoom--}else{e.zoomOffset--;e.minZoom++}e.minZoom=Math.max(0,e.minZoom)}if(typeof e.subdomains==="string"){e.subdomains=e.subdomains.split("")}this.on("tileunload",this._onTileRemove)},setUrl:function(t,e){if(this._url===t&&e===undefined){e=true}this._url=t;if(!e){this.redraw()}return this},createTile:function(t,e){var i=document.createElement("img");Be(i,"load",o(this._tileOnLoad,this,e,i));Be(i,"error",o(this._tileOnError,this,e,i));if(this.options.crossOrigin||this.options.crossOrigin===""){i.crossOrigin=this.options.crossOrigin===true?"":this.options.crossOrigin}if(typeof this.options.referrerPolicy==="string"){i.referrerPolicy=this.options.referrerPolicy}i.alt="";i.setAttribute("role","presentation");i.src=this.getTileUrl(t);return i},getTileUrl:function(t){var e={r:Zt.retina?"@2x":"",s:this._getSubdomain(t),x:t.x,y:t.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var n=this._globalTileRange.max.y-t.y;if(this.options.tms){e["y"]=n}e["-y"]=n}return _(this._url,i(e,this.options))},_tileOnLoad:function(t,e){if(Zt.ielt9){setTimeout(o(t,this,null,e),0)}else{t(null,e)}},_tileOnError:function(t,e,i){var n=this.options.errorTileUrl;if(n&&e.getAttribute("src")!==n){e.src=n}t(i,e)},_onTileRemove:function(t){t.tile.onload=null},_getZoomForUrl:function(){var t=this._tileZoom,e=this.options.maxZoom,i=this.options.zoomReverse,n=this.options.zoomOffset;if(i){t=e-t}return t+n},_getSubdomain:function(t){var e=Math.abs(t.x+t.y)%this.options.subdomains.length;return this.options.subdomains[e]},_abortLoading:function(){var t,e;for(t in this._tiles){if(this._tiles[t].coords.z!==this._tileZoom){e=this._tiles[t].el;e.onload=h;e.onerror=h;if(!e.complete){e.src=y;var i=this._tiles[t].coords;ae(e);delete this._tiles[t];this.fire("tileabort",{tile:e,coords:i})}}}},_removeTile:function(t){var e=this._tiles[t];if(!e){return}e.el.setAttribute("src",y);return An.prototype._removeTile.call(this,t)},_tileReady:function(t,e,i){if(!this._map||i&&i.getAttribute("src")===y){return}return An.prototype._tileReady.call(this,t,e,i)}});function Zn(t,e){return new En(t,e)}var Bn=En.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:false,version:"1.1.1"},options:{crs:null,uppercase:false},initialize:function(t,e){this._url=t;var n=i({},this.defaultWmsParams);for(var o in e){if(!(o in this.options)){n[o]=e[o]}}e=f(this,e);var r=e.detectRetina&&Zt.retina?2:1;var s=this.getTileSize();n.width=s.x*r;n.height=s.y*r;this.wmsParams=n},onAdd:function(t){this._crs=this.options.crs||t.options.crs;this._wmsVersion=parseFloat(this.wmsParams.version);var e=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[e]=this._crs.code;En.prototype.onAdd.call(this,t)},getTileUrl:function(t){var e=this._tileCoordsToNwSe(t),i=this._crs,n=N(i.project(e[0]),i.project(e[1])),o=n.min,r=n.max,s=(this._wmsVersion>=1.3&&this._crs===Ni?[o.y,o.x,r.y,r.x]:[o.x,o.y,r.x,r.y]).join(","),a=En.prototype.getTileUrl.call(this,t);return a+p(this.wmsParams,a,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+s},setParams:function(t,e){i(this.wmsParams,t);if(!e){this.redraw()}return this}});function On(t,e){return new Bn(t,e)}En.WMS=Bn;Zn.wms=On;var Nn=Ri.extend({options:{padding:.1},initialize:function(t){f(this,t);s(this);this._layers=this._layers||{}},onAdd:function(){if(!this._container){this._initContainer();if(this._zoomAnimated){de(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};if(this._zoomAnimated){t.zoomanim=this._onAnimZoom}return t},_onAnimZoom:function(t){this._updateTransform(t.center,t.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(t,e){var i=this._map.getZoomScale(e,this._zoom),n=this._map.getSize().multiplyBy(.5+this.options.padding),o=this._map.project(this._center,e),r=n.multiplyBy(-i).add(o).subtract(this._map._getNewPixelOrigin(t,e));if(Zt.any3d){ye(this._container,r,i)}else{be(this._container,r)}},_reset:function(){this._update();this._updateTransform(this._center,this._zoom);for(var t in this._layers){this._layers[t]._reset()}},_onZoomEnd:function(){for(var t in this._layers){this._layers[t]._project()}},_updatePaths:function(){for(var t in this._layers){this._layers[t]._update()}},_update:function(){var t=this.options.padding,e=this._map.getSize(),i=this._map.containerPointToLayerPoint(e.multiplyBy(-t)).round();this._bounds=new O(i,i.add(e.multiplyBy(1+t*2)).round());this._center=this._map.getCenter();this._zoom=this._map.getZoom()}});var Dn=Nn.extend({options:{tolerance:0},getEvents:function(){var t=Nn.prototype.getEvents.call(this);t.viewprereset=this._onViewPreReset;return t},_onViewPreReset:function(){this._postponeUpdatePaths=true},onAdd:function(){Nn.prototype.onAdd.call(this);this._draw()},_initContainer:function(){var t=this._container=document.createElement("canvas");Be(t,"mousemove",this._onMouseMove,this);Be(t,"click dblclick mousedown mouseup contextmenu",this._onClick,this);Be(t,"mouseout",this._handleMouseOut,this);t["_leaflet_disable_events"]=true;this._ctx=t.getContext("2d")},_destroyContainer:function(){z(this._redrawRequest);delete this._ctx;ae(this._container);Ne(this._container);delete this._container},_updatePaths:function(){if(this._postponeUpdatePaths){return}var t;this._redrawBounds=null;for(var e in this._layers){t=this._layers[e];t._update()}this._redraw()},_update:function(){if(this._map._animatingZoom&&this._bounds){return}Nn.prototype._update.call(this);var t=this._bounds,e=this._container,i=t.getSize(),n=Zt.retina?2:1;be(e,t.min);e.width=n*i.x;e.height=n*i.y;e.style.width=i.x+"px";e.style.height=i.y+"px";if(Zt.retina){this._ctx.scale(2,2)}this._ctx.translate(-t.min.x,-t.min.y);this.fire("update")},_reset:function(){Nn.prototype._reset.call(this);if(this._postponeUpdatePaths){this._postponeUpdatePaths=false;this._updatePaths()}},_initPath:function(t){this._updateDashArray(t);this._layers[s(t)]=t;var e=t._order={layer:t,prev:this._drawLast,next:null};if(this._drawLast){this._drawLast.next=e}this._drawLast=e;this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(t){this._requestRedraw(t)},_removePath:function(t){var e=t._order;var i=e.next;var n=e.prev;if(i){i.prev=n}else{this._drawLast=n}if(n){n.next=i}else{this._drawFirst=i}delete t._order;delete this._layers[s(t)];this._requestRedraw(t)},_updatePath:function(t){this._extendRedrawBounds(t);t._project();t._update();this._requestRedraw(t)},_updateStyle:function(t){this._updateDashArray(t);this._requestRedraw(t)},_updateDashArray:function(t){if(typeof t.options.dashArray==="string"){var e=t.options.dashArray.split(/[, ]+/),i=[],n,o;for(o=0;o<e.length;o++){n=Number(e[o]);if(isNaN(n)){return}i.push(n)}t.options._dashArray=i}else{t.options._dashArray=t.options.dashArray}},_requestRedraw:function(t){if(!this._map){return}this._extendRedrawBounds(t);this._redrawRequest=this._redrawRequest||P(this._redraw,this)},_extendRedrawBounds:function(t){if(t._pxBounds){var e=(t.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new O;this._redrawBounds.extend(t._pxBounds.min.subtract([e,e]));this._redrawBounds.extend(t._pxBounds.max.add([e,e]))}},_redraw:function(){this._redrawRequest=null;if(this._redrawBounds){this._redrawBounds.min._floor();this._redrawBounds.max._ceil()}this._clear();this._draw();this._redrawBounds=null},_clear:function(){var t=this._redrawBounds;if(t){var e=t.getSize();this._ctx.clearRect(t.min.x,t.min.y,e.x,e.y)}else{this._ctx.save();this._ctx.setTransform(1,0,0,1,0,0);this._ctx.clearRect(0,0,this._container.width,this._container.height);this._ctx.restore()}},_draw:function(){var t,e=this._redrawBounds;this._ctx.save();if(e){var i=e.getSize();this._ctx.beginPath();this._ctx.rect(e.min.x,e.min.y,i.x,i.y);this._ctx.clip()}this._drawing=true;for(var n=this._drawFirst;n;n=n.next){t=n.layer;if(!e||t._pxBounds&&t._pxBounds.intersects(e)){t._updatePath()}}this._drawing=false;this._ctx.restore()},_updatePoly:function(t,e){if(!this._drawing){return}var i,n,o,r,s=t._parts,a=s.length,l=this._ctx;if(!a){return}l.beginPath();for(i=0;i<a;i++){for(n=0,o=s[i].length;n<o;n++){r=s[i][n];l[n?"lineTo":"moveTo"](r.x,r.y)}if(e){l.closePath()}}this._fillStroke(l,t)},_updateCircle:function(t){if(!this._drawing||t._empty()){return}var e=t._point,i=this._ctx,n=Math.max(Math.round(t._radius),1),o=(Math.max(Math.round(t._radiusY),1)||n)/n;if(o!==1){i.save();i.scale(1,o)}i.beginPath();i.arc(e.x,e.y/o,n,0,Math.PI*2,false);if(o!==1){i.restore()}this._fillStroke(i,t)},_fillStroke:function(t,e){var i=e.options;if(i.fill){t.globalAlpha=i.fillOpacity;t.fillStyle=i.fillColor||i.color;t.fill(i.fillRule||"evenodd")}if(i.stroke&&i.weight!==0){if(t.setLineDash){t.setLineDash(e.options&&e.options._dashArray||[])}t.globalAlpha=i.opacity;t.lineWidth=i.weight;t.strokeStyle=i.color;t.lineCap=i.lineCap;t.lineJoin=i.lineJoin;t.stroke()}},_onClick:function(t){var e=this._map.mouseEventToLayerPoint(t),i,n;for(var o=this._drawFirst;o;o=o.next){i=o.layer;if(i.options.interactive&&i._containsPoint(e)){if(!(t.type==="click"||t.type==="preclick")||!this._map._draggableMoved(i)){n=i}}}this._fireEvent(n?[n]:false,t)},_onMouseMove:function(t){if(!this._map||this._map.dragging.moving()||this._map._animatingZoom){return}var e=this._map.mouseEventToLayerPoint(t);this._handleMouseHover(t,e)},_handleMouseOut:function(t){var e=this._hoveredLayer;if(e){fe(this._container,"leaflet-interactive");this._fireEvent([e],t,"mouseout");this._hoveredLayer=null;this._mouseHoverThrottled=false}},_handleMouseHover:function(t,e){if(this._mouseHoverThrottled){return}var i,n;for(var r=this._drawFirst;r;r=r.next){i=r.layer;if(i.options.interactive&&i._containsPoint(e)){n=i}}if(n!==this._hoveredLayer){this._handleMouseOut(t);if(n){de(this._container,"leaflet-interactive");this._fireEvent([n],t,"mouseover");this._hoveredLayer=n}}this._fireEvent(this._hoveredLayer?[this._hoveredLayer]:false,t);this._mouseHoverThrottled=true;setTimeout(o((function(){this._mouseHoverThrottled=false}),this),32)},_fireEvent:function(t,e,i){this._map._fireDOMEvent(e,i||e.type,t)},_bringToFront:function(t){var e=t._order;if(!e){return}var i=e.next;var n=e.prev;if(i){i.prev=n}else{return}if(n){n.next=i}else if(i){this._drawFirst=i}e.prev=this._drawLast;this._drawLast.next=e;e.next=null;this._drawLast=e;this._requestRedraw(t)},_bringToBack:function(t){var e=t._order;if(!e){return}var i=e.next;var n=e.prev;if(n){n.next=i}else{return}if(i){i.prev=n}else if(n){this._drawLast=n}e.prev=null;e.next=this._drawFirst;this._drawFirst.prev=e;this._drawFirst=e;this._requestRedraw(t)}});function Rn(t){return Zt.canvas?new Dn(t):null}var jn=function(){try{document.namespaces.add("lvml","urn:schemas-microsoft-com:vml");return 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">')}}();var Hn={_initContainer:function(){this._container=se("div","leaflet-vml-container")},_update:function(){if(this._map._animatingZoom){return}Nn.prototype._update.call(this);this.fire("update")},_initPath:function(t){var e=t._container=jn("shape");de(e,"leaflet-vml-shape "+(this.options.className||""));e.coordsize="1 1";t._path=jn("path");e.appendChild(t._path);this._updateStyle(t);this._layers[s(t)]=t},_addPath:function(t){var e=t._container;this._container.appendChild(e);if(t.options.interactive){t.addInteractiveTarget(e)}},_removePath:function(t){var e=t._container;ae(e);t.removeInteractiveTarget(e);delete this._layers[s(t)]},_updateStyle:function(t){var e=t._stroke,i=t._fill,n=t.options,o=t._container;o.stroked=!!n.stroke;o.filled=!!n.fill;if(n.stroke){if(!e){e=t._stroke=jn("stroke")}o.appendChild(e);e.weight=n.weight+"px";e.color=n.color;e.opacity=n.opacity;if(n.dashArray){e.dashStyle=g(n.dashArray)?n.dashArray.join(" "):n.dashArray.replace(/( *, *)/g," ")}else{e.dashStyle=""}e.endcap=n.lineCap.replace("butt","flat");e.joinstyle=n.lineJoin}else if(e){o.removeChild(e);t._stroke=null}if(n.fill){if(!i){i=t._fill=jn("fill")}o.appendChild(i);i.color=n.fillColor||n.color;i.opacity=n.fillOpacity}else if(i){o.removeChild(i);t._fill=null}},_updateCircle:function(t){var e=t._point.round(),i=Math.round(t._radius),n=Math.round(t._radiusY||i);this._setPath(t,t._empty()?"M0 0":"AL "+e.x+","+e.y+" "+i+","+n+" 0,"+65535*360)},_setPath:function(t,e){t._path.v=e},_bringToFront:function(t){he(t._container)},_bringToBack:function(t){ce(t._container)}};var Fn=Zt.vml?jn:J;var Wn=Nn.extend({_initContainer:function(){this._container=Fn("svg");this._container.setAttribute("pointer-events","none");this._rootGroup=Fn("g");this._container.appendChild(this._rootGroup)},_destroyContainer:function(){ae(this._container);Ne(this._container);delete this._container;delete this._rootGroup;delete this._svgSize},_update:function(){if(this._map._animatingZoom&&this._bounds){return}Nn.prototype._update.call(this);var t=this._bounds,e=t.getSize(),i=this._container;if(!this._svgSize||!this._svgSize.equals(e)){this._svgSize=e;i.setAttribute("width",e.x);i.setAttribute("height",e.y)}be(i,t.min);i.setAttribute("viewBox",[t.min.x,t.min.y,e.x,e.y].join(" "));this.fire("update")},_initPath:function(t){var e=t._path=Fn("path");if(t.options.className){de(e,t.options.className)}if(t.options.interactive){de(e,"leaflet-interactive")}this._updateStyle(t);this._layers[s(t)]=t},_addPath:function(t){if(!this._rootGroup){this._initContainer()}this._rootGroup.appendChild(t._path);t.addInteractiveTarget(t._path)},_removePath:function(t){ae(t._path);t.removeInteractiveTarget(t._path);delete this._layers[s(t)]},_updatePath:function(t){t._project();t._update()},_updateStyle:function(t){var e=t._path,i=t.options;if(!e){return}if(i.stroke){e.setAttribute("stroke",i.color);e.setAttribute("stroke-opacity",i.opacity);e.setAttribute("stroke-width",i.weight);e.setAttribute("stroke-linecap",i.lineCap);e.setAttribute("stroke-linejoin",i.lineJoin);if(i.dashArray){e.setAttribute("stroke-dasharray",i.dashArray)}else{e.removeAttribute("stroke-dasharray")}if(i.dashOffset){e.setAttribute("stroke-dashoffset",i.dashOffset)}else{e.removeAttribute("stroke-dashoffset")}}else{e.setAttribute("stroke","none")}if(i.fill){e.setAttribute("fill",i.fillColor||i.color);e.setAttribute("fill-opacity",i.fillOpacity);e.setAttribute("fill-rule",i.fillRule||"evenodd")}else{e.setAttribute("fill","none")}},_updatePoly:function(t,e){this._setPath(t,X(t._parts,e))},_updateCircle:function(t){var e=t._point,i=Math.max(Math.round(t._radius),1),n=Math.max(Math.round(t._radiusY),1)||i,o="a"+i+","+n+" 0 1,0 ";var r=t._empty()?"M0 0":"M"+(e.x-i)+","+e.y+o+i*2+",0 "+o+-i*2+",0 ";this._setPath(t,r)},_setPath:function(t,e){t._path.setAttribute("d",e)},_bringToFront:function(t){he(t._path)},_bringToBack:function(t){ce(t._path)}});if(Zt.vml){Wn.include(Hn)}function Vn(t){return Zt.svg||Zt.vml?new Wn(t):null}Qe.include({getRenderer:function(t){var e=t.options.renderer||this._getPaneRenderer(t.options.pane)||this.options.renderer||this._renderer;if(!e){e=this._renderer=this._createRenderer()}if(!this.hasLayer(e)){this.addLayer(e)}return e},_getPaneRenderer:function(t){if(t==="overlayPane"||t===undefined){return false}var e=this._paneRenderers[t];if(e===undefined){e=this._createRenderer({pane:t});this._paneRenderers[t]=e}return e},_createRenderer:function(t){return this.options.preferCanvas&&Rn(t)||Vn(t)}});var Un=on.extend({initialize:function(t,e){on.prototype.initialize.call(this,this._boundsToLatLngs(t),e)},setBounds:function(t){return this.setLatLngs(this._boundsToLatLngs(t))},_boundsToLatLngs:function(t){t=R(t);return[t.getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}});function qn(t,e){return new Un(t,e)}Wn.create=Fn;Wn.pointsToPath=X;sn.geometryToLayer=an;sn.coordsToLatLng=hn;sn.coordsToLatLngs=cn;sn.latLngToCoords=un;sn.latLngsToCoords=dn;sn.getFeature=fn;sn.asFeature=pn;Qe.mergeOptions({boxZoom:true});var Gn=di.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(){Be(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){Ne(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){ae(this._pane);delete this._pane},_resetState:function(){this._resetStateTimeout=0;this._moved=false},_clearDeferredResetState:function(){if(this._resetStateTimeout!==0){clearTimeout(this._resetStateTimeout);this._resetStateTimeout=0}},_onMouseDown:function(t){if(!t.shiftKey||t.which!==1&&t.button!==1){return false}this._clearDeferredResetState();this._resetState();we();Pe();this._startPoint=this._map.mouseEventToContainerPoint(t);Be(document,{contextmenu:qe,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(t){if(!this._moved){this._moved=true;this._box=se("div","leaflet-zoom-box",this._container);de(this._container,"leaflet-crosshair");this._map.fire("boxzoomstart")}this._point=this._map.mouseEventToContainerPoint(t);var e=new O(this._point,this._startPoint),i=e.getSize();be(this._box,e.min);this._box.style.width=i.x+"px";this._box.style.height=i.y+"px"},_finish:function(){if(this._moved){ae(this._box);fe(this._container,"leaflet-crosshair")}ke();ze();Ne(document,{contextmenu:qe,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(t){if(t.which!==1&&t.button!==1){return}this._finish();if(!this._moved){return}this._clearDeferredResetState();this._resetStateTimeout=setTimeout(o(this._resetState,this),0);var e=new D(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(e).fire("boxzoomend",{boxZoomBounds:e})},_onKeyDown:function(t){if(t.keyCode===27){this._finish();this._clearDeferredResetState();this._resetState()}}});Qe.addInitHook("addHandler","boxZoom",Gn);Qe.mergeOptions({doubleClickZoom:true});var Kn=di.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(t){var e=this._map,i=e.getZoom(),n=e.options.zoomDelta,o=t.originalEvent.shiftKey?i-n:i+n;if(e.options.doubleClickZoom==="center"){e.setZoom(o)}else{e.setZoomAround(t.containerPoint,o)}}});Qe.addInitHook("addHandler","doubleClickZoom",Kn);Qe.mergeOptions({dragging:true,inertia:true,inertiaDeceleration:3400,inertiaMaxSpeed:Infinity,easeLinearity:.2,worldCopyJump:false,maxBoundsViscosity:0});var Yn=di.extend({addHooks:function(){if(!this._draggable){var t=this._map;this._draggable=new mi(t._mapPane,t._container);this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this);this._draggable.on("predrag",this._onPreDragLimit,this);if(t.options.worldCopyJump){this._draggable.on("predrag",this._onPreDragWrap,this);t.on("zoomend",this._onZoomEnd,this);t.whenReady(this._onZoomEnd,this)}}de(this._map._container,"leaflet-grab leaflet-touch-drag");this._draggable.enable();this._positions=[];this._times=[]},removeHooks:function(){fe(this._map._container,"leaflet-grab");fe(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;t._stop();if(this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var e=R(this._map.options.maxBounds);this._offsetLimit=N(this._map.latLngToContainerPoint(e.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(e.getSouthEast()).multiplyBy(-1).add(this._map.getSize()));this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else{this._offsetLimit=null}t.fire("movestart").fire("dragstart");if(t.options.inertia){this._positions=[];this._times=[]}},_onDrag:function(t){if(this._map.options.inertia){var e=this._lastTime=+new Date,i=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(i);this._times.push(e);this._prunePositions(e)}this._map.fire("move",t).fire("drag",t)},_prunePositions:function(t){while(this._positions.length>1&&t-this._times[0]>50){this._positions.shift();this._times.shift()}},_onZoomEnd:function(){var t=this._map.getSize().divideBy(2),e=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=e.subtract(t).x;this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(t,e){return t-(t-e)*this._viscosity},_onPreDragLimit:function(){if(!this._viscosity||!this._offsetLimit){return}var t=this._draggable._newPos.subtract(this._draggable._startPos);var e=this._offsetLimit;if(t.x<e.min.x){t.x=this._viscousLimit(t.x,e.min.x)}if(t.y<e.min.y){t.y=this._viscousLimit(t.y,e.min.y)}if(t.x>e.max.x){t.x=this._viscousLimit(t.x,e.max.x)}if(t.y>e.max.y){t.y=this._viscousLimit(t.y,e.max.y)}this._draggable._newPos=this._draggable._startPos.add(t)},_onPreDragWrap:function(){var t=this._worldWidth,e=Math.round(t/2),i=this._initialWorldOffset,n=this._draggable._newPos.x,o=(n-e+i)%t+e-i,r=(n+e+i)%t-e-i,s=Math.abs(o+i)<Math.abs(r+i)?o:r;this._draggable._absPos=this._draggable._newPos.clone();this._draggable._newPos.x=s},_onDragEnd:function(t){var e=this._map,i=e.options,n=!i.inertia||t.noInertia||this._times.length<2;e.fire("dragend",t);if(n){e.fire("moveend")}else{this._prunePositions(+new Date);var o=this._lastPos.subtract(this._positions[0]),r=(this._lastTime-this._times[0])/1e3,s=i.easeLinearity,a=o.multiplyBy(s/r),l=a.distanceTo([0,0]),h=Math.min(i.inertiaMaxSpeed,l),c=a.multiplyBy(h/l),u=h/(i.inertiaDeceleration*s),d=c.multiplyBy(-u/2).round();if(!d.x&&!d.y){e.fire("moveend")}else{d=e._limitOffset(d,e.options.maxBounds);P((function(){e.panBy(d,{duration:u,easeLinearity:s,noMoveStart:true,animate:true})}))}}}});Qe.addInitHook("addHandler","dragging",Yn);Qe.mergeOptions({keyboard:true,keyboardPanDelta:80});var Jn=di.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;if(t.tabIndex<=0){t.tabIndex="0"}Be(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();Ne(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){return}var t=document.body,e=document.documentElement,i=t.scrollTop||e.scrollTop,n=t.scrollLeft||e.scrollLeft;this._map._container.focus();window.scrollTo(n,i)},_onFocus:function(){this._focused=true;this._map.fire("focus")},_onBlur:function(){this._focused=false;this._map.fire("blur")},_setPanDelta:function(t){var e=this._panKeys={},i=this.keyCodes,n,o;for(n=0,o=i.left.length;n<o;n++){e[i.left[n]]=[-1*t,0]}for(n=0,o=i.right.length;n<o;n++){e[i.right[n]]=[t,0]}for(n=0,o=i.down.length;n<o;n++){e[i.down[n]]=[0,t]}for(n=0,o=i.up.length;n<o;n++){e[i.up[n]]=[0,-1*t]}},_setZoomDelta:function(t){var e=this._zoomKeys={},i=this.keyCodes,n,o;for(n=0,o=i.zoomIn.length;n<o;n++){e[i.zoomIn[n]]=t}for(n=0,o=i.zoomOut.length;n<o;n++){e[i.zoomOut[n]]=-t}},_addHooks:function(){Be(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){Ne(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(t){if(t.altKey||t.ctrlKey||t.metaKey){return}var e=t.keyCode,i=this._map,n;if(e in this._panKeys){if(!i._panAnim||!i._panAnim._inProgress){n=this._panKeys[e];if(t.shiftKey){n=B(n).multiplyBy(3)}i.panBy(n);if(i.options.maxBounds){i.panInsideBounds(i.options.maxBounds)}}}else if(e in this._zoomKeys){i.setZoom(i.getZoom()+(t.shiftKey?3:1)*this._zoomKeys[e])}else if(e===27&&i._popup&&i._popup.options.closeOnEscapeKey){i.closePopup()}else{return}qe(t)}});Qe.addInitHook("addHandler","keyboard",Jn);Qe.mergeOptions({scrollWheelZoom:true,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var Xn=di.extend({addHooks:function(){Be(this._map._container,"wheel",this._onWheelScroll,this);this._delta=0},removeHooks:function(){Ne(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(t){var e=Ye(t);var i=this._map.options.wheelDebounceTime;this._delta+=e;this._lastMousePos=this._map.mouseEventToContainerPoint(t);if(!this._startTime){this._startTime=+new Date}var n=Math.max(i-(+new Date-this._startTime),0);clearTimeout(this._timer);this._timer=setTimeout(o(this._performZoom,this),n);qe(t)},_performZoom:function(){var t=this._map,e=t.getZoom(),i=this._map.options.zoomSnap||0;t._stop();var n=this._delta/(this._map.options.wheelPxPerZoomLevel*4),o=4*Math.log(2/(1+Math.exp(-Math.abs(n))))/Math.LN2,r=i?Math.ceil(o/i)*i:o,s=t._limitZoom(e+(this._delta>0?r:-r))-e;this._delta=0;this._startTime=null;if(!s){return}if(t.options.scrollWheelZoom==="center"){t.setZoom(e+s)}else{t.setZoomAround(this._lastMousePos,e+s)}}});Qe.addInitHook("addHandler","scrollWheelZoom",Xn);var $n=600;Qe.mergeOptions({tapHold:Zt.touchNative&&Zt.safari&&Zt.mobile,tapTolerance:15});var Qn=di.extend({addHooks:function(){Be(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){Ne(this._map._container,"touchstart",this._onDown,this)},_onDown:function(t){clearTimeout(this._holdTimeout);if(t.touches.length!==1){return}var e=t.touches[0];this._startPos=this._newPos=new E(e.clientX,e.clientY);this._holdTimeout=setTimeout(o((function(){this._cancel();if(!this._isTapValid()){return}Be(document,"touchend",Ue);Be(document,"touchend touchcancel",this._cancelClickPrevent);this._simulateEvent("contextmenu",e)}),this),$n);Be(document,"touchend touchcancel contextmenu",this._cancel,this);Be(document,"touchmove",this._onMove,this)},_cancelClickPrevent:function t(){Ne(document,"touchend",Ue);Ne(document,"touchend touchcancel",t)},_cancel:function(){clearTimeout(this._holdTimeout);Ne(document,"touchend touchcancel contextmenu",this._cancel,this);Ne(document,"touchmove",this._onMove,this)},_onMove:function(t){var e=t.touches[0];this._newPos=new E(e.clientX,e.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(t,e){var i=new MouseEvent(t,{bubbles:true,cancelable:true,view:window,screenX:e.screenX,screenY:e.screenY,clientX:e.clientX,clientY:e.clientY});i._simulated=true;e.target.dispatchEvent(i)}});Qe.addInitHook("addHandler","tapHold",Qn);Qe.mergeOptions({touchZoom:Zt.touch,bounceAtZoomLimits:true});var to=di.extend({addHooks:function(){de(this._map._container,"leaflet-touch-zoom");Be(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){fe(this._map._container,"leaflet-touch-zoom");Ne(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(t){var e=this._map;if(!t.touches||t.touches.length!==2||e._animatingZoom||this._zooming){return}var i=e.mouseEventToContainerPoint(t.touches[0]),n=e.mouseEventToContainerPoint(t.touches[1]);this._centerPoint=e.getSize()._divideBy(2);this._startLatLng=e.containerPointToLatLng(this._centerPoint);if(e.options.touchZoom!=="center"){this._pinchStartLatLng=e.containerPointToLatLng(i.add(n)._divideBy(2))}this._startDist=i.distanceTo(n);this._startZoom=e.getZoom();this._moved=false;this._zooming=true;e._stop();Be(document,"touchmove",this._onTouchMove,this);Be(document,"touchend touchcancel",this._onTouchEnd,this);Ue(t)},_onTouchMove:function(t){if(!t.touches||t.touches.length!==2||!this._zooming){return}var e=this._map,i=e.mouseEventToContainerPoint(t.touches[0]),n=e.mouseEventToContainerPoint(t.touches[1]),r=i.distanceTo(n)/this._startDist;this._zoom=e.getScaleZoom(r,this._startZoom);if(!e.options.bounceAtZoomLimits&&(this._zoom<e.getMinZoom()&&r<1||this._zoom>e.getMaxZoom()&&r>1)){this._zoom=e._limitZoom(this._zoom)}if(e.options.touchZoom==="center"){this._center=this._startLatLng;if(r===1){return}}else{var s=i._add(n)._divideBy(2)._subtract(this._centerPoint);if(r===1&&s.x===0&&s.y===0){return}this._center=e.unproject(e.project(this._pinchStartLatLng,this._zoom).subtract(s),this._zoom)}if(!this._moved){e._moveStart(true,false);this._moved=true}z(this._animRequest);var a=o(e._move,e,this._center,this._zoom,{pinch:true,round:false});this._animRequest=P(a,this,true);Ue(t)},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=false;return}this._zooming=false;z(this._animRequest);Ne(document,"touchmove",this._onTouchMove,this);Ne(document,"touchend touchcancel",this._onTouchEnd,this);if(this._map.options.zoomAnimation){this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),true,this._map.options.zoomSnap)}else{this._map._resetView(this._center,this._map._limitZoom(this._zoom))}}});Qe.addInitHook("addHandler","touchZoom",to);Qe.BoxZoom=Gn;Qe.DoubleClickZoom=Kn;Qe.Drag=Yn;Qe.Keyboard=Jn;Qe.ScrollWheelZoom=Xn;Qe.TapHold=Qn;Qe.TouchZoom=to;t.Bounds=O;t.Browser=Zt;t.CRS=F;t.Canvas=Dn;t.Circle=Qi;t.CircleMarker=Xi;t.Class=C;t.Control=ei;t.DivIcon=Cn;t.DivOverlay=Tn;t.DomEvent=Xe;t.DomUtil=Ze;t.Draggable=mi;t.Evented=I;t.FeatureGroup=Fi;t.GeoJSON=sn;t.GridLayer=An;t.Handler=di;t.Icon=Vi;t.ImageOverlay=vn;t.LatLng=j;t.LatLngBounds=D;t.Layer=Ri;t.LayerGroup=ji;t.LineUtil=Si;t.Map=Qe;t.Marker=Ki;t.Mixin=fi;t.Path=Ji;t.Point=E;t.PolyUtil=Ii;t.Polygon=on;t.Polyline=en;t.Popup=Ln;t.PosAnimation=$e;t.Projection=Bi;t.Rectangle=Un;t.Renderer=Nn;t.SVG=Wn;t.SVGOverlay=wn;t.TileLayer=En;t.Tooltip=zn;t.Transformation=q;t.Util=M;t.VideoOverlay=bn;t.bind=o;t.bounds=N;t.canvas=Rn;t.circle=tn;t.circleMarker=$i;t.control=ii;t.divIcon=Sn;t.extend=i;t.featureGroup=Wi;t.geoJSON=_n;t.geoJson=gn;t.gridLayer=In;t.icon=Ui;t.imageOverlay=yn;t.latLng=H;t.latLngBounds=R;t.layerGroup=Hi;t.map=ti;t.marker=Yi;t.point=B;t.polygon=rn;t.polyline=nn;t.popup=Pn;t.rectangle=qn;t.setOptions=f;t.stamp=s;t.svg=Vn;t.svgOverlay=kn;t.tileLayer=Zn;t.tooltip=Mn;t.transformation=G;t.version=e;t.videoOverlay=xn;var eo=window.L;t.noConflict=function(){window.L=eo;return this};window.L=t}))}));var b='<svg xmlns="http://www.w3.org/2000/svg" width="512" height="512" viewBox="0 0 512 512"><path d="M80,464V68.14a8,8,0,0,1,4-6.9C91.81,56.66,112.92,48,160,48c64,0,145,48,192,48a199.53,199.53,0,0,0,77.23-15.77A2,2,0,0,1,432,82.08V301.44a4,4,0,0,1-2.39,3.65C421.37,308.7,392.33,320,352,320c-48,0-128-32-192-32s-80,16-80,16" style=";fill:#ffffff;stroke:currentColor;stroke-linecap:round;stroke-miterlimit:10;stroke-width:32px"/></svg>';var x='.leaflet-pane,.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-tile-container,.leaflet-pane>svg,.leaflet-pane>canvas,.leaflet-zoom-box,.leaflet-image-layer,.leaflet-layer{position:absolute;left:0;top:0}.leaflet-container{overflow:hidden}.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-drag:none}.leaflet-tile::-moz-selection{background:transparent}.leaflet-tile::selection{background:transparent}.leaflet-safari .leaflet-tile{image-rendering:-webkit-optimize-contrast}.leaflet-safari .leaflet-tile-container{width:1600px;height:1600px;-webkit-transform-origin:0 0}.leaflet-marker-icon,.leaflet-marker-shadow{display:block}.leaflet-container .leaflet-overlay-pane svg{max-width:none !important;max-height:none !important}.leaflet-container .leaflet-marker-pane img,.leaflet-container .leaflet-shadow-pane img,.leaflet-container .leaflet-tile-pane img,.leaflet-container img.leaflet-image-layer,.leaflet-container .leaflet-tile{max-width:none !important;max-height:none !important;width:auto;padding:0}.leaflet-container.leaflet-touch-zoom{-ms-touch-action:pan-x pan-y;touch-action:pan-x pan-y}.leaflet-container.leaflet-touch-drag{-ms-touch-action:pinch-zoom;touch-action:none;touch-action:pinch-zoom}.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom{-ms-touch-action:none;touch-action:none}.leaflet-container{-webkit-tap-highlight-color:transparent}.leaflet-container a{-webkit-tap-highlight-color:rgba(51, 181, 229, 0.4)}.leaflet-tile{-webkit-filter:inherit;filter:inherit;visibility:hidden}.leaflet-tile-loaded{visibility:inherit}.leaflet-zoom-box{width:0;height:0;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;z-index:800}.leaflet-overlay-pane svg{-moz-user-select:none}.leaflet-pane{z-index:400}.leaflet-tile-pane{z-index:200}.leaflet-overlay-pane{z-index:400}.leaflet-shadow-pane{z-index:500}.leaflet-marker-pane{z-index:600}.leaflet-tooltip-pane{z-index:650}.leaflet-popup-pane{z-index:700}.leaflet-map-pane canvas{z-index:100}.leaflet-map-pane svg{z-index:200}.leaflet-vml-shape{width:1px;height:1px}.lvml{behavior:url(#default#VML);display:inline-block;position:absolute}.leaflet-control{position:relative;z-index:800;pointer-events:visiblePainted;pointer-events:auto}.leaflet-top,.leaflet-bottom{position:absolute;z-index:1000;pointer-events:none}.leaflet-top{top:0}.leaflet-right{right:0}.leaflet-bottom{bottom:0}.leaflet-left{left:0}.leaflet-control{float:left;clear:both}.leaflet-right .leaflet-control{float:right}.leaflet-top .leaflet-control{margin-top:10px}.leaflet-bottom .leaflet-control{margin-bottom:10px}.leaflet-left .leaflet-control{margin-left:10px}.leaflet-right .leaflet-control{margin-right:10px}.leaflet-fade-anim .leaflet-popup{opacity:0;-webkit-transition:opacity 0.2s linear;-moz-transition:opacity 0.2s linear;transition:opacity 0.2s linear}.leaflet-fade-anim .leaflet-map-pane .leaflet-popup{opacity:1}.leaflet-zoom-animated{-webkit-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0}svg.leaflet-zoom-animated{will-change:transform}.leaflet-zoom-anim .leaflet-zoom-animated{-webkit-transition:-webkit-transform 0.25s cubic-bezier(0,0,0.25,1);-moz-transition:-moz-transform 0.25s cubic-bezier(0,0,0.25,1);transition:-webkit-transform 0.25s cubic-bezier(0,0,0.25,1);transition:transform 0.25s cubic-bezier(0,0,0.25,1);transition:transform 0.25s cubic-bezier(0,0,0.25,1), -webkit-transform 0.25s cubic-bezier(0,0,0.25,1)}.leaflet-zoom-anim .leaflet-tile,.leaflet-pan-anim .leaflet-tile{-webkit-transition:none;-moz-transition:none;transition:none}.leaflet-zoom-anim .leaflet-zoom-hide{visibility:hidden}.leaflet-interactive{cursor:pointer}.leaflet-grab{cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.leaflet-crosshair,.leaflet-crosshair .leaflet-interactive{cursor:crosshair}.leaflet-popup-pane,.leaflet-control{cursor:auto}.leaflet-dragging .leaflet-grab,.leaflet-dragging .leaflet-grab .leaflet-interactive,.leaflet-dragging .leaflet-marker-draggable{cursor:move;cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-image-layer,.leaflet-pane>svg path,.leaflet-tile-container{pointer-events:none}.leaflet-marker-icon.leaflet-interactive,.leaflet-image-layer.leaflet-interactive,.leaflet-pane>svg path.leaflet-interactive,svg.leaflet-image-layer.leaflet-interactive path{pointer-events:visiblePainted;pointer-events:auto}.leaflet-container{background:#ddd;outline-offset:1px}.leaflet-container a{color:#0078A8}.leaflet-zoom-box{border:2px dotted #38f;background:rgba(255,255,255,0.5)}.leaflet-container{font-family:"Helvetica Neue", Arial, Helvetica, sans-serif;font-size:12px;font-size:0.75rem;line-height:1.5}.leaflet-bar{-webkit-box-shadow:0 1px 5px rgba(0,0,0,0.65);box-shadow:0 1px 5px rgba(0,0,0,0.65);border-radius:4px}.leaflet-bar a{background-color:#fff;border-bottom:1px solid #ccc;width:26px;height:26px;line-height:26px;display:block;text-align:center;text-decoration:none;color:black}.leaflet-bar a,.leaflet-control-layers-toggle{background-position:50% 50%;background-repeat:no-repeat;display:block}.leaflet-bar a:hover,.leaflet-bar a:focus{background-color:#f4f4f4}.leaflet-bar a:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.leaflet-bar a:last-child{border-bottom-left-radius:4px;border-bottom-right-radius:4px;border-bottom:none}.leaflet-bar a.leaflet-disabled{cursor:default;background-color:#f4f4f4;color:#bbb}.leaflet-touch .leaflet-bar a{width:30px;height:30px;line-height:30px}.leaflet-touch .leaflet-bar a:first-child{border-top-left-radius:2px;border-top-right-radius:2px}.leaflet-touch .leaflet-bar a:last-child{border-bottom-left-radius:2px;border-bottom-right-radius:2px}.leaflet-control-zoom-in,.leaflet-control-zoom-out{font:bold 18px \'Lucida Console\', Monaco, monospace;text-indent:1px}.leaflet-touch .leaflet-control-zoom-in,.leaflet-touch .leaflet-control-zoom-out{font-size:22px}.leaflet-control-layers{-webkit-box-shadow:0 1px 5px rgba(0,0,0,0.4);box-shadow:0 1px 5px rgba(0,0,0,0.4);background:#fff;border-radius:5px}.leaflet-control-layers-toggle{background-image:url(images/layers.png);width:36px;height:36px}.leaflet-retina .leaflet-control-layers-toggle{background-image:url(images/layers-2x.png);background-size:26px 26px}.leaflet-touch .leaflet-control-layers-toggle{width:44px;height:44px}.leaflet-control-layers .leaflet-control-layers-list,.leaflet-control-layers-expanded .leaflet-control-layers-toggle{display:none}.leaflet-control-layers-expanded .leaflet-control-layers-list{display:block;position:relative}.leaflet-control-layers-expanded{padding:6px 10px 6px 6px;color:#333;background:#fff}.leaflet-control-layers-scrollbar{overflow-y:scroll;overflow-x:hidden;padding-right:5px}.leaflet-control-layers-selector{margin-top:2px;position:relative;top:1px}.leaflet-control-layers label{display:block;font-size:13px;font-size:1.08333em}.leaflet-control-layers-separator{height:0;border-top:1px solid #ddd;margin:5px -10px 5px -6px}.leaflet-default-icon-path{background-image:url(images/marker-icon.png)}.leaflet-container .leaflet-control-attribution{background:#fff;background:rgba(255, 255, 255, 0.8);margin:0}.leaflet-control-attribution,.leaflet-control-scale-line{padding:0 5px;color:#333;line-height:1.4}.leaflet-control-attribution a{text-decoration:none}.leaflet-control-attribution a:hover,.leaflet-control-attribution a:focus{text-decoration:underline}.leaflet-control-attribution svg{display:inline !important}.leaflet-left .leaflet-control-scale{margin-left:5px}.leaflet-bottom .leaflet-control-scale{margin-bottom:5px}.leaflet-control-scale-line{border:2px solid #777;border-top:none;line-height:1.1;padding:2px 5px 1px;white-space:nowrap;overflow:hidden;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;background:#fff;background:rgba(255, 255, 255, 0.5)}.leaflet-control-scale-line:not(:first-child){border-top:2px solid #777;border-bottom:none;margin-top:-2px}.leaflet-control-scale-line:not(:first-child):not(:last-child){border-bottom:2px solid #777}.leaflet-touch .leaflet-control-attribution,.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{-webkit-box-shadow:none;box-shadow:none}.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{border:2px solid rgba(0,0,0,0.2);background-clip:padding-box}.leaflet-popup{position:absolute;text-align:center;margin-bottom:20px}.leaflet-popup-content-wrapper{padding:1px;text-align:left;border-radius:12px}.leaflet-popup-content{margin:13px 24px 13px 20px;line-height:1.3;font-size:13px;font-size:1.08333em;min-height:1px}.leaflet-popup-content p{margin:17px 0;margin:1.3em 0}.leaflet-popup-tip-container{width:40px;height:20px;position:absolute;left:50%;margin-top:-1px;margin-left:-20px;overflow:hidden;pointer-events:none}.leaflet-popup-tip{width:17px;height:17px;padding:1px;margin:-10px auto 0;pointer-events:auto;-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.leaflet-popup-content-wrapper,.leaflet-popup-tip{background:white;color:#333;-webkit-box-shadow:0 3px 14px rgba(0,0,0,0.4);box-shadow:0 3px 14px rgba(0,0,0,0.4)}.leaflet-container a.leaflet-popup-close-button{position:absolute;top:0;right:0;border:none;text-align:center;width:24px;height:24px;font:16px/24px Tahoma, Verdana, sans-serif;color:#757575;text-decoration:none;background:transparent}.leaflet-container a.leaflet-popup-close-button:hover,.leaflet-container a.leaflet-popup-close-button:focus{color:#585858}.leaflet-popup-scrolled{overflow:auto;border-bottom:1px solid #ddd;border-top:1px solid #ddd}.leaflet-oldie .leaflet-popup-content-wrapper{-ms-zoom:1}.leaflet-oldie .leaflet-popup-tip{width:24px;margin:0 auto;-ms-filter:"progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";filter:progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)}.leaflet-oldie .leaflet-control-zoom,.leaflet-oldie .leaflet-control-layers,.leaflet-oldie .leaflet-popup-content-wrapper,.leaflet-oldie .leaflet-popup-tip{border:1px solid #999}.leaflet-div-icon{background:#fff;border:1px solid #666}.leaflet-tooltip{position:absolute;padding:6px;background-color:#fff;border:1px solid #fff;border-radius:3px;color:#222;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none;-webkit-box-shadow:0 1px 3px rgba(0,0,0,0.4);box-shadow:0 1px 3px rgba(0,0,0,0.4)}.leaflet-tooltip.leaflet-interactive{cursor:pointer;pointer-events:auto}.leaflet-tooltip-top:before,.leaflet-tooltip-bottom:before,.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{position:absolute;pointer-events:none;border:6px solid transparent;background:transparent;content:""}.leaflet-tooltip-bottom{margin-top:6px}.leaflet-tooltip-top{margin-top:-6px}.leaflet-tooltip-bottom:before,.leaflet-tooltip-top:before{left:50%;margin-left:-6px}.leaflet-tooltip-top:before{bottom:0;margin-bottom:-12px;border-top-color:#fff}.leaflet-tooltip-bottom:before{top:0;margin-top:-12px;margin-left:-6px;border-bottom-color:#fff}.leaflet-tooltip-left{margin-left:-6px}.leaflet-tooltip-right{margin-left:6px}.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{top:50%;margin-top:-6px}.leaflet-tooltip-left:before{right:0;margin-right:-12px;border-left-color:#fff}.leaflet-tooltip-right:before{left:0;margin-left:-12px;border-right-color:#fff}@media print{.leaflet-control{-webkit-print-color-adjust:exact;color-adjust:exact}}grw-map{font-family:"Roboto";display:block;height:100%;max-height:100vh}.departure-icon svg,.arrival-icon svg{width:48px;height:48px}.departure-icon svg path,.arrival-icon svg path{fill:currentColor;stroke:currentColor}.departure-icon{color:var(--color-departure-icon)}.arrival-icon{color:var(--color-arrival-icon)}.trek-marker{background-color:var(--color-primary);border-radius:50%;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.trek-marker img{width:36px !important}.map-loader-container{position:absolute;z-index:500;width:100%;height:100%;background:rgba(255, 255, 255, 0.5);display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.map-loader-container .loader{width:48px;height:48px;border:5px solid var(--color-primary-tint);border-bottom-color:var(--color-primary);border-radius:50%;display:inline-block;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-animation:rotation 1s linear infinite;animation:rotation 1s linear infinite}@-webkit-keyframes rotation{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes rotation{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.leaflet-popup-content{width:144px;margin:0}.trek-departure-popup{position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;width:100px;height:auto;padding:24px}.trek-departure-popup img{border-radius:8px;-webkit-box-shadow:4px 8px 24px rgba(0, 0, 0, 0.25);box-shadow:4px 8px 24px rgba(0, 0, 0, 0.25)}.trek-departure-popup .trek-name{color:var(--color-primary);font-weight:bold;font-size:12px}.trek-departure-popup .trek-name-margin-top{margin-top:12px}.poi-tooltip .poi-name,.poi-tooltip .information-desks-name,.poi-tooltip .sensitive-area-name,.information-desks-tooltip .poi-name,.information-desks-tooltip .information-desks-name,.information-desks-tooltip .sensitive-area-name,.sensitive-area-tooltip .poi-name,.sensitive-area-tooltip .information-desks-name,.sensitive-area-tooltip .sensitive-area-name{color:var(--color-primary);font-weight:bold;font-size:12px}.sensitiveAreasCheckboxContainer{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;background-color:#ffffff;padding:8px;border-radius:8px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.sensitiveAreasCheckboxContainer input,.sensitiveAreasCheckboxContainer label{cursor:pointer}.sensitiveAreasCheckboxContainer input{margin:0}.sensitiveAreasCheckboxContainer label{padding-left:8px}.poi-icon,.information-desks-icon{background-color:var(--color-poi-icon);border-radius:50%;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.poi-icon img,.information-desks-icon img{width:36px !important}.parking-icon{background-color:#0000ff;border-radius:50%;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;width:48px;height:48px;font-size:24px;color:#ffffff}.point-reference-icon{background-color:#ff0000;border:1px solid #ffffff;border-radius:50%;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;width:24px;height:24px;font-size:18px;color:#ffffff}';var w=t("grw_map",function(){function t(t){e(this,t);this.trekCardPress=o(this,"trekCardPress",7);this.mapIsReady=false;this.center="1, 1";this.zoom=10;this.colorPrimary="#6b0030";this.colorPrimaryTint="#974c6e";this.colorTrekLine="#6b0030";this.colorDepartureIcon="#006b3b";this.colorArrivalIcon="#85003b";this.colorSensitiveArea="\t#4974a5";this.colorPoiIcon="#974c6e";this.handleTreksWithinBoundsBind=this.handleTreksWithinBounds.bind(this)}t.prototype.connectedCallback=function(){var t=this;this.map=y.map(this.element,{center:this.center.split(",").map(Number),zoom:this.zoom});y.control.scale().addTo(this.map);y.tileLayer(this.urlLayer,{maxZoom:19,attribution:this.attribution}).addTo(this.map);if(s.currentTrek){this.addTrek()}else if(s.currentTreks){this.addTreks()}a("currentTreks",(function(){if(s.currentTrek){t.removeTreks();t.addTrek()}else if(s.currentTreks){t.removeTrek();t.addTreks()}}));a("currentTrek",(function(){if(s.currentTrek){t.removeTreks();t.addTrek()}else{t.removeTrek();t.addTreks()}}))};t.prototype.addTreks=function(){var t=this;var e;var i=[];var n={type:"FeatureCollection",features:[]};if(s.currentTreks){var o=function(t){i.push(t.departure_geom);n.features.push({type:"Feature",geometry:{type:"Point",coordinates:t.departure_geom},properties:{id:t.id,name:t.name,practice:(e=s.practices.find((function(e){return e.id===t.practice})))===null||e===void 0?void 0:e.pictogram,imgSrc:t.attachments&&t.attachments.length>0&&t.attachments[0].thumbnail}})};for(var r=0,a=s.currentTreks;r<a.length;r++){var l=a[r];o(l)}}if(!this.treksLayer){if(i.length>0&&!s.currentMapTreksBounds){var h=y.latLngBounds(i.map((function(t){return[t[1],t[0]]})));this.map.fitBounds(h)}else{if(s.currentMapTreksBounds){this.map.fitBounds(s.currentMapTreksBounds)}}this.treksLayer=y.geoJSON(n,{pointToLayer:function(t,e){return y.marker(e,{icon:y.divIcon({html:t.properties.practice?"<img src=".concat(t.properties.practice," />"):"<img />",className:"trek-marker",iconSize:48}),autoPanOnFocus:false})},onEachFeature:function(e,i){i.once("click",(function(){var n=y.DomUtil.create("div");n.className="trek-departure-popup";n.onclick=function(){return t.trekCardPress.emit(e.properties.id)};var o=y.DomUtil.create("div");o.innerHTML=e.properties.name;o.className="trek-name";if(e.properties.imgSrc){o.className+=" trek-name-margin-top";var r=y.DomUtil.create("img");r.src=e.properties.imgSrc;n.appendChild(r)}n.appendChild(o);i.bindPopup(n,{interactive:true,autoPan:false,closeButton:false}).openPopup()}))}}).addTo(this.map)}else{if(i.length>0){var h=y.latLngBounds(i.map((function(t){return[t[1],t[0]]})));this.map.fitBounds(h)}else{this.map.fire("moveend")}this.treksLayer.clearLayers();this.treksLayer.addData(n)}!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady);this.map.on("moveend",this.handleTreksWithinBoundsBind)};t.prototype.removeTreks=function(){if(this.treksLayer){s.currentMapTreksBounds=this.map.getBounds();this.map.removeLayer(this.treksLayer);this.treksLayer=null;this.map.off("moveend",this.handleTreksWithinBoundsBind)}};t.prototype.handleTreksWithinBounds=function(){var t=this;if(!s.currentMapTreksBounds||s.currentMapTreksBounds.toBBoxString()!==this.map.getBounds().toBBoxString()){s.treksWithinBounds=s.currentTreks.filter((function(e){return t.map.getBounds().contains(y.latLng(e.departure_geom[1],e.departure_geom[0]))}))}};t.prototype.addTrek=function(){var t=this;var e;var i={type:"Feature",geometry:s.currentTrek.geometry,properties:{}};this.currentTrekLayer=y.geoJSON(i,{style:function(){return{color:t.colorTrekLine}},interactive:false}).addTo(this.map);var n=y.latLngBounds(s.currentTrek.geometry.coordinates.map((function(t){return[t[1],t[0]]})));this.map.fitBounds(n);var o=[s.currentTrek.geometry.coordinates.at(0)[0],s.currentTrek.geometry.coordinates.at(0)[1]];var r=[s.currentTrek.geometry.coordinates.at(-1)[0],s.currentTrek.geometry.coordinates.at(-1)[1]];var a={type:"FeatureCollection",features:[{type:"Feature",properties:{type:"departure"},geometry:{type:"Point",coordinates:o}}]};if(o[0]!==r[0]||o[1]!==r[1]){a.features.push({type:"Feature",properties:{type:"arrival"},geometry:{type:"Point",coordinates:r}})}this.currentDepartureArrivalLayer=y.geoJSON(a,{pointToLayer:function(t,e){return y.marker(e,{icon:y.divIcon({html:b,className:t.properties.type==="departure"?"departure-icon":"arrival-icon",iconSize:48,iconAnchor:[0,48]}),autoPanOnFocus:false,interactive:false})}}).addTo(this.map);if(s.currentTrek.parking_location){var l={type:"Feature",properties:{},geometry:{type:"Point",coordinates:s.currentTrek.parking_location}};this.currentParkingLayer=y.geoJSON(l,{pointToLayer:function(t,e){return y.marker(e,{icon:y.divIcon({html:"<div>P</div>",className:"parking-icon",iconSize:48,iconAnchor:[0,48]}),autoPanOnFocus:false,interactive:false})}}).addTo(this.map)}if(s.currentSensitiveAreas&&s.currentSensitiveAreas.length>0){var h={type:"FeatureCollection",features:[]};for(var c=0,u=s.currentSensitiveAreas;c<u.length;c++){var d=u[c];h.features.push({type:"Feature",properties:{name:d.name},geometry:d.geometry})}this.currentSensitiveAreasLayer=y.geoJSON(h,{onEachFeature:function(t,e){e.once("mouseover",(function(){var i=y.DomUtil.create("div");i.className="sensitive-area-tooltip";var n=y.DomUtil.create("div");n.innerHTML=t.properties.name;n.className="sensitive-area-name";i.appendChild(n);e.bindTooltip(i).openTooltip()}))},style:function(){return{color:t.colorSensitiveArea}}}).addTo(this.map);y.Control.SensitiveAreasCheckboxContainer=y.Control.extend({onAdd:function(){var e=y.DomUtil.create("div");e.className="sensitiveAreasCheckboxContainer";var i=y.DomUtil.create("input");i.setAttribute("id","sensitiveAreasCheckbox");i.setAttribute("type","checkbox");i.setAttribute("checked","true");i.onclick=function(e){return e.composedPath()[0].checked?t.map.addLayer(t.currentSensitiveAreasLayer):t.map.removeLayer(t.currentSensitiveAreasLayer)};var n=y.DomUtil.create("label");n.setAttribute("for","sensitiveAreasCheckbox");n.innerHTML=h.features.length>1||h.features[0].geometry.type==="MultiPolygon"?"Afficher les zones sensibles":"Afficher la zone sensible";e.appendChild(i);e.appendChild(n);return e}});y.control.sensitiveAreasCheckboxContainer=function(){return new y.Control.SensitiveAreasCheckboxContainer};this.sensitiveAreasControl=y.control.sensitiveAreasCheckboxContainer({position:"topright"}).addTo(this.map)}if(s.currentPois&&s.currentPois.length>0){var f={type:"FeatureCollection",features:[]};var p=function(t){f.features.push({type:"Feature",properties:{name:t.name,type_pictogram:(e=s.poiTypes.find((function(e){return e.id===t.type})))===null||e===void 0?void 0:e.pictogram},geometry:t.geometry})};for(var m=0,_=s.currentPois;m<_.length;m++){var g=_[m];p(g)}this.currentPoisLayer=y.geoJSON(f,{pointToLayer:function(t,e){return y.marker(e,{icon:y.divIcon({html:t.properties.type_pictogram?"<img src=".concat(t.properties.type_pictogram," />"):"<img />",className:"poi-icon",iconSize:48}),autoPanOnFocus:false})},onEachFeature:function(t,e){e.once("mouseover",(function(){var i=y.DomUtil.create("div");i.className="poi-tooltip";var n=y.DomUtil.create("div");n.innerHTML=t.properties.name;n.className="poi-name";i.appendChild(n);e.bindTooltip(i).openTooltip()}))}}).addTo(this.map)}if(s.currentInformationDesks&&s.currentInformationDesks.length>0){var v={type:"FeatureCollection",features:[]};for(var x=0,w=s.currentInformationDesks;x<w.length;x++){var k=w[x];v.features.push({type:"Feature",properties:{name:k.name,type_pictogram:k.type.pictogram},geometry:{type:"Point",coordinates:[Number(k.longitude),Number(k.latitude)]}})}this.currentInformationDesksLayer=y.geoJSON(v,{pointToLayer:function(t,e){return y.marker(e,{icon:y.divIcon({html:t.properties.type_pictogram?"<img src=".concat(t.properties.type_pictogram," />"):"<img />",className:"information-desks-icon",iconSize:48}),autoPanOnFocus:false})},onEachFeature:function(t,e){e.once("mouseover",(function(){var i=y.DomUtil.create("div");i.className="information-desks-tooltip";var n=y.DomUtil.create("div");n.innerHTML=t.properties.name;n.className="information-desks-name";i.appendChild(n);e.bindTooltip(i).openTooltip()}))}}).addTo(this.map)}if(s.currentTrek.points_reference){var T={type:"FeatureCollection",features:[]};T.features.push({type:"Feature",properties:{},geometry:s.currentTrek.points_reference});var L=0;this.currentPointsReferenceLayer=y.geoJSON(T,{pointToLayer:function(t,e){L+=1;return y.marker(e,{icon:y.divIcon({html:L,className:"point-reference-icon",iconSize:24}),autoPanOnFocus:false,interactive:false})}}).addTo(this.map)}!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady)};t.prototype.removeTrek=function(){if(this.currentTrekLayer){this.map.removeLayer(this.currentTrekLayer);this.currentTrekLayer=null}if(this.currentDepartureArrivalLayer){this.map.removeLayer(this.currentDepartureArrivalLayer);this.currentDepartureArrivalLayer=null}if(this.currentParkingLayer){this.map.removeLayer(this.currentParkingLayer);this.currentParkingLayer=null}if(this.currentSensitiveAreasLayer){this.map.removeLayer(this.currentSensitiveAreasLayer);this.currentSensitiveAreasLayer=null;this.map.removeControl(this.sensitiveAreasControl);this.sensitiveAreasControl=null}if(this.currentPoisLayer){this.map.removeLayer(this.currentPoisLayer);this.currentPoisLayer=null}if(this.currentInformationDesksLayer){this.map.removeLayer(this.currentInformationDesksLayer);this.currentInformationDesksLayer=null}if(this.currentPointsReferenceLayer){this.map.removeLayer(this.currentPointsReferenceLayer);this.currentPointsReferenceLayer=null}};t.prototype.render=function(){return i(n,{style:{"--color-primary":this.colorPrimary,"--color-primary-tint":this.colorPrimaryTint,"--color-departure-icon":this.colorDepartureIcon,"--color-arrival-icon":this.colorArrivalIcon,"--color-poi-icon":this.colorPoiIcon}},!this.mapIsReady&&i("div",{class:"map-loader-container"},i("span",{class:"loader"})))};Object.defineProperty(t.prototype,"element",{get:function(){return r(this)},enumerable:false,configurable:true});return t}());w.style=x;var k='grw-sensitive-area-detail,grw-information-desk-detail,grw-poi-detail{margin-top:12px}.trek-detail-container{font-family:"Roboto";display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;height:100%;overflow-y:auto}.trek-detail-container .name{color:var(--color-primary);font-size:48px;font-weight:bold;padding:24px}.trek-detail-container .image{border-radius:8px;-ms-flex-item-align:center;align-self:center;width:100%;max-width:700px;height:auto;-webkit-box-shadow:4px 8px 24px rgba(0, 0, 0, 0.25);box-shadow:4px 8px 24px rgba(0, 0, 0, 0.25)}.trek-detail-container .sub-container{padding:24px}.trek-detail-container .sub-container .icons-labels-container{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center;-ms-flex-wrap:wrap;flex-wrap:wrap}.trek-detail-container .sub-container .icons-labels-container .row{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center;width:100%}.trek-detail-container .sub-container .icons-labels-container .row:not(:last-child){margin-bottom:24px}.trek-detail-container .sub-container .icons-labels-container .row .icon-label{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;width:33.3333333333%}.trek-detail-container .sub-container .icons-labels-container .row .icon-label:nth-child(2){margin:0px 8px}.trek-detail-container .sub-container .icons-labels-container .row .icon-label img,.trek-detail-container .sub-container .icons-labels-container .row .icon-label .svg-icon svg{width:24px;height:auto;margin-right:24px}.trek-detail-container .sub-container .icons-labels-container .row .practice img{background-color:var(--color-primary)}.trek-detail-container .downloads-container{padding:0px 24px 24px 24px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.trek-detail-container .downloads-container .download-title{color:var(--color-primary);font-size:18px;margin-bottom:12px}.trek-detail-container .downloads-container .links-container{display:-ms-flexbox;display:flex}.trek-detail-container .downloads-container .links-container a{background-color:var(--color-primary);padding:8px;color:#ffffff;text-decoration:none;border-radius:8px}.trek-detail-container .downloads-container .links-container a:nth-child(2){margin:0px 12px}.trek-detail-container .downloads-container .links-container a:hover{background-color:var(--color-primary-shade)}.trek-detail-container .themes-container{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center;-ms-flex-wrap:wrap;flex-wrap:wrap;padding:0px 24px 24px 24px}.trek-detail-container .themes-container .theme{background-color:var(--color-primary-tint);color:#ffffff;border-radius:8px;padding:8px;margin:0px 8px 8px 0px}.trek-detail-container .ambiance,.trek-detail-container .description-teaser,.trek-detail-container .description-container,.trek-detail-container .altimetric-profile-container,.trek-detail-container .access-container,.trek-detail-container .public-transport-container,.trek-detail-container .advice-container,.trek-detail-container .advised-parking-container,.trek-detail-container .gear-container,.trek-detail-container .pois-container,.trek-detail-container .sensitive-areas-container,.trek-detail-container .information-desks-container,.trek-detail-container .source-container,.trek-detail-container .accessibilities-container{padding:0px 24px 24px 24px}.trek-detail-container .ambiance a,.trek-detail-container .description-teaser a,.trek-detail-container .description-container a,.trek-detail-container .altimetric-profile-container a,.trek-detail-container .access-container a,.trek-detail-container .public-transport-container a,.trek-detail-container .advice-container a,.trek-detail-container .advised-parking-container a,.trek-detail-container .gear-container a,.trek-detail-container .pois-container a,.trek-detail-container .sensitive-areas-container a,.trek-detail-container .information-desks-container a,.trek-detail-container .source-container a,.trek-detail-container .accessibilities-container a{color:var(--color-primary)}.trek-detail-container .description-title,.trek-detail-container .altimetric-profile-title,.trek-detail-container .access-title,.trek-detail-container .public-transport-title,.trek-detail-container .advice-title,.trek-detail-container .advised-parking-title,.trek-detail-container .gear-title,.trek-detail-container .pois-title,.trek-detail-container .sensitive-areas-title,.trek-detail-container .information-desks-title,.trek-detail-container .source-title,.trek-detail-container .accessibilities-title{color:var(--color-primary);font-size:36px;font-weight:bold;margin:12px 0px}.label-container .label-sub-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.label-container .label-sub-container img{width:26px;margin-right:16px}.label-container .label-sub-container .label-name{color:var(--color-primary);font-size:24px;font-weight:bold;padding:12px 0px}.source-container .source-sub-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.source-container .source-sub-container img{width:26px;margin-right:16px}.source-container .source-sub-container .source-name{color:var(--color-primary);font-size:24px;font-weight:bold;padding:12px 0px}.departure-container,.arrival-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding:0px 24px 24px 24px}.departure-container .departure-title,.departure-container .arrival-title,.arrival-container .departure-title,.arrival-container .arrival-title{color:var(--color-primary);font-weight:bold}.accessibilities-container .accessibilities-content-container{padding:12px 0px 0px 0px;display:-ms-flexbox;display:flex}.accessibilities-container .accessibilities-content-container .accessibility-content-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;margin:0px 8px 8px 0px}.accessibilities-container .accessibilities-content-container .accessibility-content-container img{margin-right:16px;width:26px}.accessibilities-container .accessibility-level-title,.accessibilities-container .accessibility-slope-title,.accessibilities-container .accessibility-width-title,.accessibilities-container .accessibility-signage-title,.accessibilities-container .accessibility-covering-title,.accessibilities-container .accessibility-exposure-title,.accessibilities-container .accessibility-advice-title{color:var(--color-primary);font-size:24px;padding:12px 0px}';var T=t("grw_trek_detail",function(){function t(t){e(this,t);this.colorPrimary="#6b0030";this.colorPrimaryShade="#4a0021";this.colorPrimaryTint="#974c6e"}t.prototype.connectedCallback=function(){var t=this;this.currentTrek=this.trek?this.trek:s.currentTrek;if(this.currentTrek){this.difficulty=s.difficulties.find((function(e){return e.id===t.currentTrek.difficulty}));this.route=s.routes.find((function(e){return e.id===t.currentTrek.route}));this.practice=s.practices.find((function(e){return e.id===t.currentTrek.practice}));this.themes=s.themes.filter((function(e){return t.currentTrek.themes.includes(e.id)}));this.labels=s.labels.filter((function(e){return t.currentTrek.labels.includes(e.id)}));this.sources=s.sources.filter((function(e){return t.currentTrek.source.includes(e.id)}));this.accessibilities=s.accessibilities.filter((function(e){return t.currentTrek.accessibilities.includes(e.id)}));if(s.accessibilitiesLevel){this.accessibilityLevel=s.accessibilitiesLevel.find((function(e){return t.currentTrek.accessibility_level===e.id}))}}a("currentTrek",(function(){t.currentTrek=t.trek?t.trek:s.currentTrek;if(t.currentTrek){t.difficulty=s.difficulties.find((function(e){return e.id===t.currentTrek.difficulty}));t.route=s.routes.find((function(e){return e.id===t.currentTrek.route}));t.practice=s.practices.find((function(e){return e.id===t.currentTrek.practice}));t.themes=s.themes.filter((function(e){return t.currentTrek.themes.includes(e.id)}));t.labels=s.labels.filter((function(e){return t.currentTrek.labels.includes(e.id)}));t.sources=s.sources.filter((function(e){return t.currentTrek.source.includes(e.id)}));t.accessibilities=s.accessibilities.filter((function(e){return t.currentTrek.accessibilities.includes(e.id)}));if(s.accessibilitiesLevel){t.accessibilityLevel=s.accessibilitiesLevel.find((function(e){return t.currentTrek.accessibility_level===e.id}))}}}))};t.prototype.render=function(){var t,e,o,r,a,p,m;return i(n,{style:{"--color-primary":this.colorPrimary,"--color-primary-shade":this.colorPrimaryShade,"--color-primary-tint":this.colorPrimaryTint}},this.currentTrek&&i("div",{class:"trek-detail-container"},i("div",{class:"name"},this.currentTrek.name),this.currentTrek.attachments&&this.currentTrek.attachments[0]&&this.currentTrek.attachments[0].url&&i("img",{class:"image",src:this.currentTrek.attachments[0].url,loading:"lazy"}),i("div",{class:"sub-container"},i("div",{class:"icons-labels-container"},i("div",{class:"row"},i("div",{class:"icon-label difficulty"},((t=this.difficulty)===null||t===void 0?void 0:t.pictogram)&&i("img",{src:this.difficulty.pictogram}),(e=this.difficulty)===null||e===void 0?void 0:e.label),i("div",{class:"icon-label duration"},i("div",{class:"svg-icon",innerHTML:l}),h((o=this.currentTrek)===null||o===void 0?void 0:o.duration)),i("div",{class:"icon-label route"},((r=this.route)===null||r===void 0?void 0:r.pictogram)&&i("img",{src:this.route.pictogram}),(a=this.route)===null||a===void 0?void 0:a.route)),i("div",{class:"row"},i("div",{class:"icon-label length"},i("div",{class:"svg-icon",innerHTML:c}),u(this.currentTrek.length_2d)),i("div",{class:"icon-label ascent"},i("div",{class:"svg-icon",innerHTML:d}),f(this.currentTrek.ascent)),i("div",{class:"icon-label practice"},((p=this.practice)===null||p===void 0?void 0:p.pictogram)&&i("img",{src:this.practice.pictogram}),(m=this.practice)===null||m===void 0?void 0:m.name)))),i("div",{class:"downloads-container"},i("div",{class:"download-title"},"Téléchargements"),i("div",{class:"links-container"},i("a",{href:"".concat(this.currentTrek.gpx)},"GPX"),i("a",{href:"".concat(this.currentTrek.kml)},"KML"),i("a",{href:"".concat(this.currentTrek.pdf)},"PDF"))),this.themes.length>0&&i("div",{class:"themes-container"},this.themes.map((function(t){return i("div",{class:"theme"},t.label)}))),this.currentTrek.description_teaser&&i("div",{class:"description-teaser",innerHTML:this.currentTrek.description_teaser}),this.currentTrek.ambiance&&i("div",{class:"ambiance",innerHTML:this.currentTrek.ambiance}),this.currentTrek.description&&i("div",{class:"description-container"},i("div",{class:"description-title"},"Description"),i("div",{class:"description",innerHTML:this.currentTrek.description})),this.currentTrek.departure&&i("div",{class:"departure-container"},i("div",{class:"departure-title"},"Départ : "),i("div",{innerHTML:this.currentTrek.departure})),this.currentTrek.arrival&&i("div",{class:"arrival-container"},i("div",{class:"arrival-title"},"Arrivée : "),i("div",{innerHTML:this.currentTrek.arrival})),this.currentTrek.altimetric_profile&&i("div",{class:"altimetric-profile-container"},i("div",{class:"altimetric-profile-title"},"Profil altimétrique"),i("img",{src:this.currentTrek.altimetric_profile.endsWith(".json")?this.currentTrek.altimetric_profile.replace(".json",".svg"):"".concat(this.currentTrek.altimetric_profile,"?format=svg")})),this.currentTrek.access&&i("div",{class:"access-container"},i("div",{class:"access-title"},"Accès routier"),i("div",{class:"access",innerHTML:this.currentTrek.access})),this.currentTrek.public_transport&&i("div",{class:"public-transport-container"},i("div",{class:"public-transport-title"},"Transport"),i("div",{class:"public-transport",innerHTML:this.currentTrek.public_transport})),(this.currentTrek.advice||this.labels.length>0)&&i("div",{class:"advice-container"},i("div",{class:"advice-title"},"Recommandations"),this.currentTrek.advice&&i("div",{class:"advice",innerHTML:this.currentTrek.advice}),this.labels.map((function(t){return i("div",{class:"label-container"},i("div",{class:"label-sub-container"},t.pictogram&&i("img",{src:t.pictogram}),i("div",{class:"label-name",innerHTML:t.name})),i("div",{class:"label-advice",innerHTML:t.advice}))}))),this.currentTrek.advised_parking&&i("div",{class:"advised-parking-container"},i("div",{class:"advised-parking-title"},"Parking conseillé"),i("div",{class:"advised_parking",innerHTML:this.currentTrek.advised_parking})),this.currentTrek.gear&&i("div",{class:"gear-container"},i("div",{class:"gear-title"},"Équipements"),i("div",{class:"gear",innerHTML:this.currentTrek.gear})),s.currentSensitiveAreas&&s.currentSensitiveAreas.length>0&&i("div",{class:"sensitive-areas-container"},i("div",{class:"sensitive-areas-title"},"Zones de sensibilité environnementale"),s.currentSensitiveAreas.map((function(t){return i("grw-sensitive-area-detail",{sensitiveArea:t})}))),s.currentInformationDesks&&s.currentInformationDesks.length>0&&i("div",{class:"information-desks-container"},i("div",{class:"information-desks-title"},"Lieux de renseignement"),s.currentInformationDesks.map((function(t){return i("grw-information-desk-detail",{informationDesk:t})}))),(this.currentTrek.disabled_infrastructure||this.accessibilities&&this.accessibilities.length>0||this.currentTrek.accessibility_level||this.currentTrek.accessibility_slope||this.currentTrek.accessibility_width||this.currentTrek.accessibility_signage||this.currentTrek.accessibility_covering||this.currentTrek.accessibility_exposure||this.currentTrek.accessibility_advice)&&i("div",{class:"accessibilities-container"},i("div",{class:"accessibilities-title"},"Accessibilité"),this.currentTrek.disabled_infrastructure&&i("div",{innerHTML:this.currentTrek.disabled_infrastructure}),i("div",{class:"accessibilities-content-container"},this.accessibilities.map((function(t){return i("div",{class:"accessibility-content-container"},i("img",{src:t.pictogram}),i("div",{innerHTML:t.name}))}))),this.currentTrek.accessibility_level&&i("div",{class:"accessibility-level-container"},i("div",{class:"accessibility-level-title"},"Niveau d'accessibilité"),i("div",{innerHTML:this.accessibilityLevel.name})),this.currentTrek.accessibility_slope&&i("div",{class:"accessibility-slope-container"},i("div",{class:"accessibility-slope-title"},"Pente"),i("div",{innerHTML:this.currentTrek.accessibility_slope})),this.currentTrek.accessibility_width&&i("div",{class:"accessibility-width-container"},i("div",{class:"accessibility-width-title"},"Largeur"),i("div",{innerHTML:this.currentTrek.accessibility_width})),this.currentTrek.accessibility_signage&&i("div",{class:"accessibility-signage-container"},i("div",{class:"accessibility-signage-title"},"Pente"),i("div",{innerHTML:this.currentTrek.accessibility_signage})),this.currentTrek.accessibility_covering&&i("div",{class:"accessibility-covering-container"},i("div",{class:"accessibility-covering-title"},"Revêtement"),i("div",{innerHTML:this.currentTrek.accessibility_covering})),this.currentTrek.accessibility_exposure&&i("div",{class:"accessibility-exposure-container"},i("div",{class:"accessibility-exposure-title"},"Exposition"),i("div",{innerHTML:this.currentTrek.accessibility_exposure})),this.currentTrek.accessibility_advice&&i("div",{class:"accessibility-advice-container"},i("div",{class:"accessibility-advice-title"},"Conseils"),i("div",{innerHTML:this.currentTrek.accessibility_advice}))),s.currentPois&&s.currentPois.length>0&&i("div",{class:"pois-container"},i("div",{class:"pois-title"},"Points d'intérêts"),s.currentPois.map((function(t){return i("grw-poi-detail",{poi:t})}))),this.currentTrek.source&&this.currentTrek.source.length>0&&i("div",{class:"source-container"},i("div",{class:"source-title"},"Sources"),this.sources.map((function(t){return i("div",{class:"source-sub-container"},t.pictogram&&i("img",{src:t.pictogram}),i("div",null,i("div",{class:"source-name",innerHTML:t.name}),i("a",{class:"source-advice",innerHTML:t.website})))})))))};return t}());T.style=k;var P=t("grw_trek_provider",function(){function t(t){e(this,t);this.language="fr";this.trekNetworkError=false;this.controller=new AbortController;this.signal=this.controller.signal}t.prototype.connectedCallback=function(){s.api=this.api;var t=[];t.push(!s.difficulties?fetch("".concat(this.api,"trek_difficulty/?language=").concat(this.language,"&fields=id,label,pictogram"),{signal:this.signal}):new Response("null"));t.push(!s.routes?fetch("".concat(this.api,"trek_route/?language=").concat(this.language,"&fields=id,route,pictogram"),{signal:this.signal}):new Response("null"));t.push(!s.practices?fetch("".concat(this.api,"trek_practice/?language=").concat(this.language,"&fields=id,name,pictogram"),{signal:this.signal}):new Response("null"));t.push(!s.themes?fetch("".concat(this.api,"theme/?language=").concat(this.language,"&fields=id,label,pictogram"),{signal:this.signal}):new Response("null"));Promise.all(__spreadArray(__spreadArray([],t,true),[fetch("".concat(this.api,"sensitivearea/?language=").concat(this.language,"&published=true&trek=").concat(this.trekId,"&fields=id,geometry,name,description,contact,info_url,period,practices"),{signal:this.signal}).catch((function(){return new Response("null")})),fetch("".concat(this.api,"label/?language=").concat(this.language,"&fields=id,name,advice,pictogram"),{signal:this.signal}),fetch("".concat(this.api,"source/?language=").concat(this.language,"&fields=id,name,website,pictogram"),{signal:this.signal}),fetch("".concat(this.api,"trek_accessibility/?language=").concat(this.language,"&fields=id,name,pictogram"),{signal:this.signal}),fetch("".concat(this.api,"trek_accessibility_level/?language=").concat(this.language,"&fields=id,name"),{signal:this.signal}).catch((function(){return new Response("null")})),fetch("".concat(this.api,"poi/?language=").concat(this.language,"&trek=").concat(this.trekId,"&published=true&fields=id,name,description,attachments,type,geometry&page_size=999"),{signal:this.signal}),fetch("".concat(this.api,"poi_type/?language=").concat(this.language,"&fields=id,pictogram"),{signal:this.signal}),fetch("".concat(this.api,"informationdesk/?language=").concat(this.language,"&near_trek=").concat(this.trekId,"&fields=id,name,description,type,phone,email,website,municipality,postal_code,street,photo_url,latitude,longitude&page_size=999"),{signal:this.signal}),fetch("".concat(this.api,"trek/").concat(this.trekId,"/?language=").concat(this.language,"&published=true&fields=id,name,attachments,description,description_teaser,difficulty,duration,ascent,length_2d,practice,themes,route,geometry,gpx,kml,pdf,parking_location,departure,arrival,altimetric_profile,ambiance,access,public_transport,advice,advised_parking,gear,labels,source,points_reference,disabled_infrastructure,accessibility_level,accessibility_slope,accessibility_width,accessibility_signage,accessibility_covering,accessibility_exposure,accessibility_advice,accessibilities"),{signal:this.signal})],false)).then((function(t){return Promise.all(t.map((function(t){return t.json()})))})).then((function(t){var e=t[0],i=t[1],n=t[2],o=t[3],r=t[4],a=t[5],l=t[6],h=t[7],c=t[8],u=t[9],d=t[10],f=t[11],p=t[12];s.trekNetworkError=false;if(e){s.difficulties=e.results}if(i){s.routes=i.results}if(n){s.practices=n.results.map((function(t){return Object.assign(Object.assign({},t),{selected:false})}))}if(o){s.themes=o.results}if(r){s.currentSensitiveAreas=r.results}s.labels=a.results;s.sources=l.results;s.accessibilities=h.results;if(c){s.accessibilitiesLevel=c.results}s.currentPois=u.results;s.poiTypes=d.results;s.currentInformationDesks=f.results;s.currentTrek=p})).catch((function(){s.trekNetworkError=true}))};t.prototype.disconnectedCallback=function(){this.controller.abort();s.currentTrek=null;s.trekNetworkError=false};t.prototype.render=function(){return i(n,null)};return t}());var z=':host{font-family:"Roboto";width:100%;height:100%;max-height:100vh;overflow-y:auto;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-pack:distribute;justify-content:space-around}grw-trek-card{margin:6px}';var M=t("grw_treks_list",function(){function t(t){e(this,t);this.treksToDisplay=[];this.colorPrimary="#6b0030";this.colorPrimaryTint="#974c6e";this.isLargeView=false;this.step=10;this.handleInfiniteScrollBind=this.handleInfiniteScroll.bind(this);this.shouldAddInfiniteScrollEvent=true}t.prototype.connectedCallback=function(){var t=this;this.handleInfiniteScrollEvent(true);if(s.currentTreks){this.treksToDisplay=__spreadArray([],s.currentTreks.slice(0,this.step),true)}a("currentTreks",(function(){t.handleInfiniteScrollEvent(true);t.element.scroll({top:0});if(s.currentTreks){t.treksToDisplay=__spreadArray([],s.currentTreks.slice(0,t.step),true)}}));a("treksWithinBounds",(function(){t.handleInfiniteScrollEvent(true);t.element.scroll({top:0});if(s.treksWithinBounds){t.treksToDisplay=__spreadArray([],s.treksWithinBounds.slice(0,t.step),true)}}))};t.prototype.handleInfiniteScroll=function(t){if(t.composedPath()[0].scrollTop+t.composedPath()[0].scrollHeight/2>=t.composedPath()[0].scrollHeight){if(this.treksToDisplay.length<s.treksWithinBounds.length){this.treksToDisplay=s.treksWithinBounds.slice(0,this.treksToDisplay.length+this.step>=s.treksWithinBounds.length?s.treksWithinBounds.length:this.treksToDisplay.length+this.step)}else{this.handleInfiniteScrollEvent(false)}}};t.prototype.handleInfiniteScrollEvent=function(t){if(t){if(this.shouldAddInfiniteScrollEvent){this.element.addEventListener("scroll",this.handleInfiniteScrollBind);this.shouldAddInfiniteScrollEvent=!t}}else{this.element.removeEventListener("scroll",this.handleInfiniteScrollBind);this.shouldAddInfiniteScrollEvent=!t}};t.prototype.disconnectedCallback=function(){this.handleInfiniteScrollEvent(false)};t.prototype.render=function(){var t=this;return i(n,{style:{"--color-primary":this.colorPrimary,"--color-primary-tint":this.colorPrimaryTint}},this.treksToDisplay.map((function(e){return i("grw-trek-card",{key:"trek-".concat(e.id),trek:e,"is-large-view":t.isLargeView,"color-primary":t.colorPrimary,"color-primary-tint":t.colorPrimaryTint})})))};Object.defineProperty(t.prototype,"element",{get:function(){return r(this)},enumerable:false,configurable:true});return t}());M.style=z;var C=t("grw_treks_provider",function(){function t(t){e(this,t);this.language="fr";this.controller=new AbortController;this.signal=this.controller.signal}t.prototype.connectedCallback=function(){s.api=this.api;var t="".concat(this.api,"trek/?language=").concat(this.language,"&published=true");this.inBbox&&(t+="&in_bbox=".concat(this.inBbox));this.cities&&(t+="&cities=".concat(this.cities));this.districts&&(t+="&districts=".concat(this.districts));this.structures&&(t+="&structures=".concat(this.structures));this.themes&&(t+="&themes=".concat(this.themes));this.portals&&(t+="&portals=".concat(this.portals));this.routes&&(t+="&routes=".concat(this.routes));this.practices&&(t+="&practices=".concat(this.practices));t+="&fields=id,name,attachments,description_teaser,difficulty,duration,ascent,length_2d,practice,themes,route,departure,departure_geom&page_size=999";Promise.all([fetch("".concat(this.api,"trek_difficulty/?language=").concat(this.language,"&fields=id,label,pictogram"),{signal:this.signal}),fetch("".concat(this.api,"trek_route/?language=").concat(this.language,"&fields=id,route,pictogram"),{signal:this.signal}),fetch("".concat(this.api,"trek_practice/?language=").concat(this.language,"&fields=id,name,pictogram"),{signal:this.signal}),fetch("".concat(this.api,"theme/?language=").concat(this.language,"&fields=id,label,pictogram"),{signal:this.signal}),fetch(t,{signal:this.signal})]).then((function(t){return Promise.all(t.map((function(t){return t.json()})))})).then((function(t){var e=t[0],i=t[1],n=t[2],o=t[3],r=t[4];s.treksNetworkError=false;s.difficulties=e.results;s.routes=i.results;s.practices=n.results.map((function(t){return Object.assign(Object.assign({},t),{selected:false})}));s.themes=o.results;s.durations=[{id:1,name:"0 - 1h",minValue:0,maxValue:1,selected:false},{id:2,name:"1 - 2h",minValue:1,maxValue:2,selected:false},{id:3,name:"2 - 5h",minValue:2,maxValue:5,selected:false},{id:4,name:"5 - 10h",minValue:5,maxValue:10,selected:false}];s.treks=r.results;s.currentTreks=r.results;s.treksWithinBounds=r.results})).catch((function(){return s.treksNetworkError=true}))};t.prototype.disconnectedCallback=function(){this.controller.abort();s.treksNetworkError=false};t.prototype.render=function(){return i(n,null)};return t}())}}}));
6
+ (function(t,i){i(e)})(_,(function(t){var e="1.8.0";function i(t){var e,i,n,o;for(i=1,n=arguments.length;i<n;i++){o=arguments[i];for(e in o){t[e]=o[e]}}return t}var n=Object.create||function(){function t(){}return function(e){t.prototype=e;return new t}}();function o(t,e){var i=Array.prototype.slice;if(t.bind){return t.bind.apply(t,i.call(arguments,1))}var n=i.call(arguments,2);return function(){return t.apply(e,n.length?n.concat(i.call(arguments)):arguments)}}var r=0;function s(t){if(!("_leaflet_id"in t)){t["_leaflet_id"]=++r}return t._leaflet_id}function a(t,e,i){var n,o,r,s;s=function(){n=false;if(o){r.apply(i,o);o=false}};r=function(){if(n){o=arguments}else{t.apply(i,arguments);setTimeout(s,e);n=true}};return r}function l(t,e,i){var n=e[1],o=e[0],r=n-o;return t===n&&i?t:((t-o)%r+r)%r+o}function h(){return false}function c(t,e){if(e===false){return t}var i=Math.pow(10,e===undefined?6:e);return Math.round(t*i)/i}function u(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function d(t){return u(t).split(/\s+/)}function f(t,e){if(!Object.prototype.hasOwnProperty.call(t,"options")){t.options=t.options?n(t.options):{}}for(var i in e){t.options[i]=e[i]}return t.options}function p(t,e,i){var n=[];for(var o in t){n.push(encodeURIComponent(i?o.toUpperCase():o)+"="+encodeURIComponent(t[o]))}return(!e||e.indexOf("?")===-1?"?":"&")+n.join("&")}var m=/\{ *([\w_ -]+) *\}/g;function _(t,e){return t.replace(m,(function(t,i){var n=e[i];if(n===undefined){throw new Error("No value provided for variable "+t)}else if(typeof n==="function"){n=n(e)}return n}))}var g=Array.isArray||function(t){return Object.prototype.toString.call(t)==="[object Array]"};function v(t,e){for(var i=0;i<t.length;i++){if(t[i]===e){return i}}return-1}var y="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function b(t){return window["webkit"+t]||window["moz"+t]||window["ms"+t]}var x=0;function w(t){var e=+new Date,i=Math.max(0,16-(e-x));x=e+i;return window.setTimeout(t,i)}var k=window.requestAnimationFrame||b("RequestAnimationFrame")||w;var T=window.cancelAnimationFrame||b("CancelAnimationFrame")||b("CancelRequestAnimationFrame")||function(t){window.clearTimeout(t)};function P(t,e,i){if(i&&k===w){t.call(e)}else{return k.call(window,o(t,e))}}function z(t){if(t){T.call(window,t)}}var M={__proto__:null,extend:i,create:n,bind:o,get lastId(){return r},stamp:s,throttle:a,wrapNum:l,falseFn:h,formatNum:c,trim:u,splitWords:d,setOptions:f,getParamString:p,template:_,isArray:g,indexOf:v,emptyImageUrl:y,requestFn:k,cancelFn:T,requestAnimFrame:P,cancelAnimFrame:z};function C(){}C.extend=function(t){var e=function(){f(this);if(this.initialize){this.initialize.apply(this,arguments)}this.callInitHooks()};var o=e.__super__=this.prototype;var r=n(o);r.constructor=e;e.prototype=r;for(var s in this){if(Object.prototype.hasOwnProperty.call(this,s)&&s!=="prototype"&&s!=="__super__"){e[s]=this[s]}}if(t.statics){i(e,t.statics)}if(t.includes){S(t.includes);i.apply(null,[r].concat(t.includes))}i(r,t);delete r.statics;delete r.includes;if(r.options){r.options=o.options?n(o.options):{};i(r.options,t.options)}r._initHooks=[];r.callInitHooks=function(){if(this._initHooksCalled){return}if(o.callInitHooks){o.callInitHooks.call(this)}this._initHooksCalled=true;for(var t=0,e=r._initHooks.length;t<e;t++){r._initHooks[t].call(this)}};return e};C.include=function(t){var e=this.prototype.options;i(this.prototype,t);if(t.options){this.prototype.options=e;this.mergeOptions(t.options)}return this};C.mergeOptions=function(t){i(this.prototype.options,t);return this};C.addInitHook=function(t){var e=Array.prototype.slice.call(arguments,1);var i=typeof t==="function"?t:function(){this[t].apply(this,e)};this.prototype._initHooks=this.prototype._initHooks||[];this.prototype._initHooks.push(i);return this};function S(t){if(typeof L==="undefined"||!L||!L.Mixin){return}t=g(t)?t:[t];for(var e=0;e<t.length;e++){if(t[e]===L.Mixin.Events){console.warn("Deprecated include of L.Mixin.Events: "+"this property will be removed in future releases, "+"please inherit from L.Evented instead.",(new Error).stack)}}}var A={on:function(t,e,i){if(typeof t==="object"){for(var n in t){this._on(n,t[n],e)}}else{t=d(t);for(var o=0,r=t.length;o<r;o++){this._on(t[o],e,i)}}return this},off:function(t,e,i){if(!arguments.length){delete this._events}else if(typeof t==="object"){for(var n in t){this._off(n,t[n],e)}}else{t=d(t);var o=arguments.length===1;for(var r=0,s=t.length;r<s;r++){if(o){this._off(t[r])}else{this._off(t[r],e,i)}}}return this},_on:function(t,e,i){if(typeof e!=="function"){console.warn("wrong listener type: "+typeof e);return}this._events=this._events||{};var n=this._events[t];if(!n){n=[];this._events[t]=n}if(i===this){i=undefined}var o={fn:e,ctx:i},r=n;for(var s=0,a=r.length;s<a;s++){if(r[s].fn===e&&r[s].ctx===i){return}}r.push(o)},_off:function(t,e,i){var n,o,r;if(!this._events){return}n=this._events[t];if(!n){return}if(arguments.length===1){if(this._firingCount){for(o=0,r=n.length;o<r;o++){n[o].fn=h}}delete this._events[t];return}if(i===this){i=undefined}if(typeof e!=="function"){console.warn("wrong listener type: "+typeof e);return}for(o=0,r=n.length;o<r;o++){var s=n[o];if(s.ctx!==i){continue}if(s.fn===e){if(this._firingCount){s.fn=h;this._events[t]=n=n.slice()}n.splice(o,1);return}}console.warn("listener not found")},fire:function(t,e,n){if(!this.listens(t,n)){return this}var o=i({},e,{type:t,target:this,sourceTarget:e&&e.sourceTarget||this});if(this._events){var r=this._events[t];if(r){this._firingCount=this._firingCount+1||1;for(var s=0,a=r.length;s<a;s++){var l=r[s];l.fn.call(l.ctx||this,o)}this._firingCount--}}if(n){this._propagateEvent(o)}return this},listens:function(t,e){if(typeof t!=="string"){console.warn('"string" type argument expected')}var i=this._events&&this._events[t];if(i&&i.length){return true}if(e){for(var n in this._eventParents){if(this._eventParents[n].listens(t,e)){return true}}}return false},once:function(t,e,i){if(typeof t==="object"){for(var n in t){this.once(n,t[n],e)}return this}var r=o((function(){this.off(t,e,i).off(t,r,i)}),this);return this.on(t,e,i).on(t,r,i)},addEventParent:function(t){this._eventParents=this._eventParents||{};this._eventParents[s(t)]=t;return this},removeEventParent:function(t){if(this._eventParents){delete this._eventParents[s(t)]}return this},_propagateEvent:function(t){for(var e in this._eventParents){this._eventParents[e].fire(t.type,i({layer:t.target,propagatedFrom:t.target},t),true)}}};A.addEventListener=A.on;A.removeEventListener=A.clearAllEventListeners=A.off;A.addOneTimeEventListener=A.once;A.fireEvent=A.fire;A.hasEventListeners=A.listens;var I=C.extend(A);function E(t,e,i){this.x=i?Math.round(t):t;this.y=i?Math.round(e):e}var Z=Math.trunc||function(t){return t>0?Math.floor(t):Math.ceil(t)};E.prototype={clone:function(){return new E(this.x,this.y)},add:function(t){return this.clone()._add(B(t))},_add:function(t){this.x+=t.x;this.y+=t.y;return this},subtract:function(t){return this.clone()._subtract(B(t))},_subtract:function(t){this.x-=t.x;this.y-=t.y;return this},divideBy:function(t){return this.clone()._divideBy(t)},_divideBy:function(t){this.x/=t;this.y/=t;return this},multiplyBy:function(t){return this.clone()._multiplyBy(t)},_multiplyBy:function(t){this.x*=t;this.y*=t;return this},scaleBy:function(t){return new E(this.x*t.x,this.y*t.y)},unscaleBy:function(t){return new E(this.x/t.x,this.y/t.y)},round:function(){return this.clone()._round()},_round:function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this},floor:function(){return this.clone()._floor()},_floor:function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this},ceil:function(){return this.clone()._ceil()},_ceil:function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this},trunc:function(){return this.clone()._trunc()},_trunc:function(){this.x=Z(this.x);this.y=Z(this.y);return this},distanceTo:function(t){t=B(t);var e=t.x-this.x,i=t.y-this.y;return Math.sqrt(e*e+i*i)},equals:function(t){t=B(t);return t.x===this.x&&t.y===this.y},contains:function(t){t=B(t);return Math.abs(t.x)<=Math.abs(this.x)&&Math.abs(t.y)<=Math.abs(this.y)},toString:function(){return"Point("+c(this.x)+", "+c(this.y)+")"}};function B(t,e,i){if(t instanceof E){return t}if(g(t)){return new E(t[0],t[1])}if(t===undefined||t===null){return t}if(typeof t==="object"&&"x"in t&&"y"in t){return new E(t.x,t.y)}return new E(t,e,i)}function O(t,e){if(!t){return}var i=e?[t,e]:t;for(var n=0,o=i.length;n<o;n++){this.extend(i[n])}}O.prototype={extend:function(t){t=B(t);if(!this.min&&!this.max){this.min=t.clone();this.max=t.clone()}else{this.min.x=Math.min(t.x,this.min.x);this.max.x=Math.max(t.x,this.max.x);this.min.y=Math.min(t.y,this.min.y);this.max.y=Math.max(t.y,this.max.y)}return this},getCenter:function(t){return new E((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,t)},getBottomLeft:function(){return new E(this.min.x,this.max.y)},getTopRight:function(){return new E(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(t){var e,i;if(typeof t[0]==="number"||t instanceof E){t=B(t)}else{t=N(t)}if(t instanceof O){e=t.min;i=t.max}else{e=i=t}return e.x>=this.min.x&&i.x<=this.max.x&&e.y>=this.min.y&&i.y<=this.max.y},intersects:function(t){t=N(t);var e=this.min,i=this.max,n=t.min,o=t.max,r=o.x>=e.x&&n.x<=i.x,s=o.y>=e.y&&n.y<=i.y;return r&&s},overlaps:function(t){t=N(t);var e=this.min,i=this.max,n=t.min,o=t.max,r=o.x>e.x&&n.x<i.x,s=o.y>e.y&&n.y<i.y;return r&&s},isValid:function(){return!!(this.min&&this.max)}};function N(t,e){if(!t||t instanceof O){return t}return new O(t,e)}function D(t,e){if(!t){return}var i=e?[t,e]:t;for(var n=0,o=i.length;n<o;n++){this.extend(i[n])}}D.prototype={extend:function(t){var e=this._southWest,i=this._northEast,n,o;if(t instanceof j){n=t;o=t}else if(t instanceof D){n=t._southWest;o=t._northEast;if(!n||!o){return this}}else{return t?this.extend(H(t)||R(t)):this}if(!e&&!i){this._southWest=new j(n.lat,n.lng);this._northEast=new j(o.lat,o.lng)}else{e.lat=Math.min(n.lat,e.lat);e.lng=Math.min(n.lng,e.lng);i.lat=Math.max(o.lat,i.lat);i.lng=Math.max(o.lng,i.lng)}return this},pad:function(t){var e=this._southWest,i=this._northEast,n=Math.abs(e.lat-i.lat)*t,o=Math.abs(e.lng-i.lng)*t;return new D(new j(e.lat-n,e.lng-o),new j(i.lat+n,i.lng+o))},getCenter:function(){return new j((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 j(this.getNorth(),this.getWest())},getSouthEast:function(){return new j(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){if(typeof t[0]==="number"||t instanceof j||"lat"in t){t=H(t)}else{t=R(t)}var e=this._southWest,i=this._northEast,n,o;if(t instanceof D){n=t.getSouthWest();o=t.getNorthEast()}else{n=o=t}return n.lat>=e.lat&&o.lat<=i.lat&&n.lng>=e.lng&&o.lng<=i.lng},intersects:function(t){t=R(t);var e=this._southWest,i=this._northEast,n=t.getSouthWest(),o=t.getNorthEast(),r=o.lat>=e.lat&&n.lat<=i.lat,s=o.lng>=e.lng&&n.lng<=i.lng;return r&&s},overlaps:function(t){t=R(t);var e=this._southWest,i=this._northEast,n=t.getSouthWest(),o=t.getNorthEast(),r=o.lat>e.lat&&n.lat<i.lat,s=o.lng>e.lng&&n.lng<i.lng;return r&&s},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(t,e){if(!t){return false}t=R(t);return this._southWest.equals(t.getSouthWest(),e)&&this._northEast.equals(t.getNorthEast(),e)},isValid:function(){return!!(this._southWest&&this._northEast)}};function R(t,e){if(t instanceof D){return t}return new D(t,e)}function j(t,e,i){if(isNaN(t)||isNaN(e)){throw new Error("Invalid LatLng object: ("+t+", "+e+")")}this.lat=+t;this.lng=+e;if(i!==undefined){this.alt=+i}}j.prototype={equals:function(t,e){if(!t){return false}t=H(t);var i=Math.max(Math.abs(this.lat-t.lat),Math.abs(this.lng-t.lng));return i<=(e===undefined?1e-9:e)},toString:function(t){return"LatLng("+c(this.lat,t)+", "+c(this.lng,t)+")"},distanceTo:function(t){return W.distance(this,H(t))},wrap:function(){return W.wrapLatLng(this)},toBounds:function(t){var e=180*t/40075017,i=e/Math.cos(Math.PI/180*this.lat);return R([this.lat-e,this.lng-i],[this.lat+e,this.lng+i])},clone:function(){return new j(this.lat,this.lng,this.alt)}};function H(t,e,i){if(t instanceof j){return t}if(g(t)&&typeof t[0]!=="object"){if(t.length===3){return new j(t[0],t[1],t[2])}if(t.length===2){return new j(t[0],t[1])}return null}if(t===undefined||t===null){return t}if(typeof t==="object"&&"lat"in t){return new j(t.lat,"lng"in t?t.lng:t.lon,t.alt)}if(e===undefined){return null}return new j(t,e,i)}var F={latLngToPoint:function(t,e){var i=this.projection.project(t),n=this.scale(e);return this.transformation._transform(i,n)},pointToLatLng:function(t,e){var i=this.scale(e),n=this.transformation.untransform(t,i);return this.projection.unproject(n)},project:function(t){return this.projection.project(t)},unproject:function(t){return this.projection.unproject(t)},scale:function(t){return 256*Math.pow(2,t)},zoom:function(t){return Math.log(t/256)/Math.LN2},getProjectedBounds:function(t){if(this.infinite){return null}var e=this.projection.bounds,i=this.scale(t),n=this.transformation.transform(e.min,i),o=this.transformation.transform(e.max,i);return new O(n,o)},infinite:false,wrapLatLng:function(t){var e=this.wrapLng?l(t.lng,this.wrapLng,true):t.lng,i=this.wrapLat?l(t.lat,this.wrapLat,true):t.lat,n=t.alt;return new j(i,e,n)},wrapLatLngBounds:function(t){var e=t.getCenter(),i=this.wrapLatLng(e),n=e.lat-i.lat,o=e.lng-i.lng;if(n===0&&o===0){return t}var r=t.getSouthWest(),s=t.getNorthEast(),a=new j(r.lat-n,r.lng-o),l=new j(s.lat-n,s.lng-o);return new D(a,l)}};var W=i({},F,{wrapLng:[-180,180],R:6371e3,distance:function(t,e){var i=Math.PI/180,n=t.lat*i,o=e.lat*i,r=Math.sin((e.lat-t.lat)*i/2),s=Math.sin((e.lng-t.lng)*i/2),a=r*r+Math.cos(n)*Math.cos(o)*s*s,l=2*Math.atan2(Math.sqrt(a),Math.sqrt(1-a));return this.R*l}});var V=6378137;var U={R:V,MAX_LATITUDE:85.0511287798,project:function(t){var e=Math.PI/180,i=this.MAX_LATITUDE,n=Math.max(Math.min(i,t.lat),-i),o=Math.sin(n*e);return new E(this.R*t.lng*e,this.R*Math.log((1+o)/(1-o))/2)},unproject:function(t){var e=180/Math.PI;return new j((2*Math.atan(Math.exp(t.y/this.R))-Math.PI/2)*e,t.x*e/this.R)},bounds:function(){var t=V*Math.PI;return new O([-t,-t],[t,t])}()};function q(t,e,i,n){if(g(t)){this._a=t[0];this._b=t[1];this._c=t[2];this._d=t[3];return}this._a=t;this._b=e;this._c=i;this._d=n}q.prototype={transform:function(t,e){return this._transform(t.clone(),e)},_transform:function(t,e){e=e||1;t.x=e*(this._a*t.x+this._b);t.y=e*(this._c*t.y+this._d);return t},untransform:function(t,e){e=e||1;return new E((t.x/e-this._b)/this._a,(t.y/e-this._d)/this._c)}};function G(t,e,i,n){return new q(t,e,i,n)}var K=i({},W,{code:"EPSG:3857",projection:U,transformation:function(){var t=.5/(Math.PI*U.R);return G(t,.5,-t,.5)}()});var Y=i({},K,{code:"EPSG:900913"});function J(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function X(t,e){var i="",n,o,r,s,a,l;for(n=0,r=t.length;n<r;n++){a=t[n];for(o=0,s=a.length;o<s;o++){l=a[o];i+=(o?"L":"M")+l.x+" "+l.y}i+=e?Zt.svg?"z":"x":""}return i||"M0 0"}var $=document.documentElement.style;var Q="ActiveXObject"in window;var tt=Q&&!document.addEventListener;var et="msLaunchUri"in navigator&&!("documentMode"in document);var it=Et("webkit");var nt=Et("android");var ot=Et("android 2")||Et("android 3");var rt=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10);var st=nt&&Et("Google")&&rt<537&&!("AudioNode"in window);var at=!!window.opera;var lt=!et&&Et("chrome");var ht=Et("gecko")&&!it&&!at&&!Q;var ct=!lt&&Et("safari");var ut=Et("phantom");var dt="OTransition"in $;var ft=navigator.platform.indexOf("Win")===0;var pt=Q&&"transition"in $;var mt="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!ot;var _t="MozPerspective"in $;var gt=!window.L_DISABLE_3D&&(pt||mt||_t)&&!dt&&!ut;var vt=typeof orientation!=="undefined"||Et("mobile");var yt=vt&&it;var bt=vt&&mt;var xt=!window.PointerEvent&&window.MSPointerEvent;var wt=!!(window.PointerEvent||xt);var kt="ontouchstart"in window||!!window.TouchEvent;var Tt=!window.L_NO_TOUCH&&(kt||wt);var Lt=vt&&at;var Pt=vt&&ht;var zt=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1;var Mt=function(){var t=false;try{var e=Object.defineProperty({},"passive",{get:function(){t=true}});window.addEventListener("testPassiveEventSupport",h,e);window.removeEventListener("testPassiveEventSupport",h,e)}catch(i){}return t}();var Ct=function(){return!!document.createElement("canvas").getContext}();var St=!!(document.createElementNS&&J("svg").createSVGRect);var At=!!St&&function(){var t=document.createElement("div");t.innerHTML="<svg/>";return(t.firstChild&&t.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"}();var It=!St&&function(){try{var t=document.createElement("div");t.innerHTML='<v:shape adj="1"/>';var e=t.firstChild;e.style.behavior="url(#default#VML)";return e&&typeof e.adj==="object"}catch(i){return false}}();function Et(t){return navigator.userAgent.toLowerCase().indexOf(t)>=0}var Zt={ie:Q,ielt9:tt,edge:et,webkit:it,android:nt,android23:ot,androidStock:st,opera:at,chrome:lt,gecko:ht,safari:ct,phantom:ut,opera12:dt,win:ft,ie3d:pt,webkit3d:mt,gecko3d:_t,any3d:gt,mobile:vt,mobileWebkit:yt,mobileWebkit3d:bt,msPointer:xt,pointer:wt,touch:Tt,touchNative:kt,mobileOpera:Lt,mobileGecko:Pt,retina:zt,passiveEvents:Mt,canvas:Ct,svg:St,vml:It,inlineSvg:At};var Bt=Zt.msPointer?"MSPointerDown":"pointerdown";var Ot=Zt.msPointer?"MSPointerMove":"pointermove";var Nt=Zt.msPointer?"MSPointerUp":"pointerup";var Dt=Zt.msPointer?"MSPointerCancel":"pointercancel";var Rt={touchstart:Bt,touchmove:Ot,touchend:Nt,touchcancel:Dt};var jt={touchstart:Jt,touchmove:Yt,touchend:Yt,touchcancel:Yt};var Ht={};var Ft=false;function Wt(t,e,i){if(e==="touchstart"){Kt()}if(!jt[e]){console.warn("wrong event specified:",e);return L.Util.falseFn}i=jt[e].bind(this,i);t.addEventListener(Rt[e],i,false);return i}function Vt(t,e,i){if(!Rt[e]){console.warn("wrong event specified:",e);return}t.removeEventListener(Rt[e],i,false)}function Ut(t){Ht[t.pointerId]=t}function qt(t){if(Ht[t.pointerId]){Ht[t.pointerId]=t}}function Gt(t){delete Ht[t.pointerId]}function Kt(){if(!Ft){document.addEventListener(Bt,Ut,true);document.addEventListener(Ot,qt,true);document.addEventListener(Nt,Gt,true);document.addEventListener(Dt,Gt,true);Ft=true}}function Yt(t,e){if(e.pointerType===(e.MSPOINTER_TYPE_MOUSE||"mouse")){return}e.touches=[];for(var i in Ht){e.touches.push(Ht[i])}e.changedTouches=[e];t(e)}function Jt(t,e){if(e.MSPOINTER_TYPE_TOUCH&&e.pointerType===e.MSPOINTER_TYPE_TOUCH){Ue(e)}Yt(t,e)}function Xt(t){var e={},i,n;for(n in t){i=t[n];e[n]=i&&i.bind?i.bind(t):i}t=e;e.type="dblclick";e.detail=2;e.isTrusted=false;e._simulated=true;return e}var $t=200;function Qt(t,e){t.addEventListener("dblclick",e);var i=0,n;function o(t){if(t.detail!==1){n=t.detail;return}if(t.pointerType==="mouse"||t.sourceCapabilities&&!t.sourceCapabilities.firesTouchEvents){return}var o=Date.now();if(o-i<=$t){n++;if(n===2){e(Xt(t))}}else{n=1}i=o}t.addEventListener("click",o);return{dblclick:e,simDblclick:o}}function te(t,e){t.removeEventListener("dblclick",e.dblclick);t.removeEventListener("click",e.simDblclick)}var ee=ve(["transform","webkitTransform","OTransform","MozTransform","msTransform"]);var ie=ve(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);var ne=ie==="webkitTransition"||ie==="OTransition"?ie+"End":"transitionend";function oe(t){return typeof t==="string"?document.getElementById(t):t}function re(t,e){var i=t.style[e]||t.currentStyle&&t.currentStyle[e];if((!i||i==="auto")&&document.defaultView){var n=document.defaultView.getComputedStyle(t,null);i=n?n[e]:null}return i==="auto"?null:i}function se(t,e,i){var n=document.createElement(t);n.className=e||"";if(i){i.appendChild(n)}return n}function ae(t){var e=t.parentNode;if(e){e.removeChild(t)}}function le(t){while(t.firstChild){t.removeChild(t.firstChild)}}function he(t){var e=t.parentNode;if(e&&e.lastChild!==t){e.appendChild(t)}}function ce(t){var e=t.parentNode;if(e&&e.firstChild!==t){e.insertBefore(t,e.firstChild)}}function ue(t,e){if(t.classList!==undefined){return t.classList.contains(e)}var i=me(t);return i.length>0&&new RegExp("(^|\\s)"+e+"(\\s|$)").test(i)}function de(t,e){if(t.classList!==undefined){var i=d(e);for(var n=0,o=i.length;n<o;n++){t.classList.add(i[n])}}else if(!ue(t,e)){var r=me(t);pe(t,(r?r+" ":"")+e)}}function fe(t,e){if(t.classList!==undefined){t.classList.remove(e)}else{pe(t,u((" "+me(t)+" ").replace(" "+e+" "," ")))}}function pe(t,e){if(t.className.baseVal===undefined){t.className=e}else{t.className.baseVal=e}}function me(t){if(t.correspondingElement){t=t.correspondingElement}return t.className.baseVal===undefined?t.className:t.className.baseVal}function _e(t,e){if("opacity"in t.style){t.style.opacity=e}else if("filter"in t.style){ge(t,e)}}function ge(t,e){var i=false,n="DXImageTransform.Microsoft.Alpha";try{i=t.filters.item(n)}catch(o){if(e===1){return}}e=Math.round(e*100);if(i){i.Enabled=e!==100;i.Opacity=e}else{t.style.filter+=" progid:"+n+"(opacity="+e+")"}}function ve(t){var e=document.documentElement.style;for(var i=0;i<t.length;i++){if(t[i]in e){return t[i]}}return false}function ye(t,e,i){var n=e||new E(0,0);t.style[ee]=(Zt.ie3d?"translate("+n.x+"px,"+n.y+"px)":"translate3d("+n.x+"px,"+n.y+"px,0)")+(i?" scale("+i+")":"")}function be(t,e){t._leaflet_pos=e;if(Zt.any3d){ye(t,e)}else{t.style.left=e.x+"px";t.style.top=e.y+"px"}}function xe(t){return t._leaflet_pos||new E(0,0)}var we;var ke;var Te;if("onselectstart"in document){we=function(){Be(window,"selectstart",Ue)};ke=function(){Ne(window,"selectstart",Ue)}}else{var Le=ve(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);we=function(){if(Le){var t=document.documentElement.style;Te=t[Le];t[Le]="none"}};ke=function(){if(Le){document.documentElement.style[Le]=Te;Te=undefined}}}function Pe(){Be(window,"dragstart",Ue)}function ze(){Ne(window,"dragstart",Ue)}var Me,Ce;function Se(t){while(t.tabIndex===-1){t=t.parentNode}if(!t.style){return}Ae();Me=t;Ce=t.style.outline;t.style.outline="none";Be(window,"keydown",Ae)}function Ae(){if(!Me){return}Me.style.outline=Ce;Me=undefined;Ce=undefined;Ne(window,"keydown",Ae)}function Ie(t){do{t=t.parentNode}while((!t.offsetWidth||!t.offsetHeight)&&t!==document.body);return t}function Ee(t){var e=t.getBoundingClientRect();return{x:e.width/t.offsetWidth||1,y:e.height/t.offsetHeight||1,boundingClientRect:e}}var Ze={__proto__:null,TRANSFORM:ee,TRANSITION:ie,TRANSITION_END:ne,get:oe,getStyle:re,create:se,remove:ae,empty:le,toFront:he,toBack:ce,hasClass:ue,addClass:de,removeClass:fe,setClass:pe,getClass:me,setOpacity:_e,testProp:ve,setTransform:ye,setPosition:be,getPosition:xe,get disableTextSelection(){return we},get enableTextSelection(){return ke},disableImageDrag:Pe,enableImageDrag:ze,preventOutline:Se,restoreOutline:Ae,getSizedParentNode:Ie,getScale:Ee};function Be(t,e,i,n){if(e&&typeof e==="object"){for(var o in e){je(t,o,e[o],i)}}else{e=d(e);for(var r=0,s=e.length;r<s;r++){je(t,e[r],i,n)}}return this}var Oe="_leaflet_events";function Ne(t,e,i,n){if(arguments.length===1){De(t);delete t[Oe]}else if(e&&typeof e==="object"){for(var o in e){He(t,o,e[o],i)}}else{e=d(e);if(arguments.length===2){De(t,(function(t){return v(e,t)!==-1}))}else{for(var r=0,s=e.length;r<s;r++){He(t,e[r],i,n)}}}return this}function De(t,e){for(var i in t[Oe]){var n=i.split(/\d/)[0];if(!e||e(n)){He(t,n,null,null,i)}}}var Re={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function je(t,e,i,n){var o=e+s(i)+(n?"_"+s(n):"");if(t[Oe]&&t[Oe][o]){return this}var r=function(e){return i.call(n||t,e||window.event)};var a=r;if(!Zt.touchNative&&Zt.pointer&&e.indexOf("touch")===0){r=Wt(t,e,r)}else if(Zt.touch&&e==="dblclick"){r=Qt(t,r)}else if("addEventListener"in t){if(e==="touchstart"||e==="touchmove"||e==="wheel"||e==="mousewheel"){t.addEventListener(Re[e]||e,r,Zt.passiveEvents?{passive:false}:false)}else if(e==="mouseenter"||e==="mouseleave"){r=function(e){e=e||window.event;if(Je(t,e)){a(e)}};t.addEventListener(Re[e],r,false)}else{t.addEventListener(e,a,false)}}else{t.attachEvent("on"+e,r)}t[Oe]=t[Oe]||{};t[Oe][o]=r}function He(t,e,i,n,o){o=o||e+s(i)+(n?"_"+s(n):"");var r=t[Oe]&&t[Oe][o];if(!r){return this}if(!Zt.touchNative&&Zt.pointer&&e.indexOf("touch")===0){Vt(t,e,r)}else if(Zt.touch&&e==="dblclick"){te(t,r)}else if("removeEventListener"in t){t.removeEventListener(Re[e]||e,r,false)}else{t.detachEvent("on"+e,r)}t[Oe][o]=null}function Fe(t){if(t.stopPropagation){t.stopPropagation()}else if(t.originalEvent){t.originalEvent._stopped=true}else{t.cancelBubble=true}return this}function We(t){je(t,"wheel",Fe);return this}function Ve(t){Be(t,"mousedown touchstart dblclick contextmenu",Fe);t["_leaflet_disable_click"]=true;return this}function Ue(t){if(t.preventDefault){t.preventDefault()}else{t.returnValue=false}return this}function qe(t){Ue(t);Fe(t);return this}function Ge(t,e){if(!e){return new E(t.clientX,t.clientY)}var i=Ee(e),n=i.boundingClientRect;return new E((t.clientX-n.left)/i.x-e.clientLeft,(t.clientY-n.top)/i.y-e.clientTop)}var Ke=Zt.win&&Zt.chrome?2*window.devicePixelRatio:Zt.gecko?window.devicePixelRatio:1;function Ye(t){return Zt.edge?t.wheelDeltaY/2:t.deltaY&&t.deltaMode===0?-t.deltaY/Ke:t.deltaY&&t.deltaMode===1?-t.deltaY*20:t.deltaY&&t.deltaMode===2?-t.deltaY*60:t.deltaX||t.deltaZ?0:t.wheelDelta?(t.wheelDeltaY||t.wheelDelta)/2:t.detail&&Math.abs(t.detail)<32765?-t.detail*20:t.detail?t.detail/-32765*60:0}function Je(t,e){var i=e.relatedTarget;if(!i){return true}try{while(i&&i!==t){i=i.parentNode}}catch(n){return false}return i!==t}var Xe={__proto__:null,on:Be,off:Ne,stopPropagation:Fe,disableScrollPropagation:We,disableClickPropagation:Ve,preventDefault:Ue,stop:qe,getMousePosition:Ge,getWheelDelta:Ye,isExternalTarget:Je,addListener:Be,removeListener:Ne};var $e=I.extend({run:function(t,e,i,n){this.stop();this._el=t;this._inProgress=true;this._duration=i||.25;this._easeOutPower=1/Math.max(n||.5,.2);this._startPos=xe(t);this._offset=e.subtract(this._startPos);this._startTime=+new Date;this.fire("start");this._animate()},stop:function(){if(!this._inProgress){return}this._step(true);this._complete()},_animate:function(){this._animId=P(this._animate,this);this._step()},_step:function(t){var e=+new Date-this._startTime,i=this._duration*1e3;if(e<i){this._runFrame(this._easeOut(e/i),t)}else{this._runFrame(1);this._complete()}},_runFrame:function(t,e){var i=this._startPos.add(this._offset.multiplyBy(t));if(e){i._round()}be(this._el,i);this.fire("step")},_complete:function(){z(this._animId);this._inProgress=false;this.fire("end")},_easeOut:function(t){return 1-Math.pow(1-t,this._easeOutPower)}});var Qe=I.extend({options:{crs:K,center:undefined,zoom:undefined,minZoom:undefined,maxZoom:undefined,layers:[],maxBounds:undefined,renderer:undefined,zoomAnimation:true,zoomAnimationThreshold:4,fadeAnimation:true,markerZoomAnimation:true,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:true},initialize:function(t,e){e=f(this,e);this._handlers=[];this._layers={};this._zoomBoundLayers={};this._sizeChanged=true;this._initContainer(t);this._initLayout();this._onResize=o(this._onResize,this);this._initEvents();if(e.maxBounds){this.setMaxBounds(e.maxBounds)}if(e.zoom!==undefined){this._zoom=this._limitZoom(e.zoom)}if(e.center&&e.zoom!==undefined){this.setView(H(e.center),e.zoom,{reset:true})}this.callInitHooks();this._zoomAnimated=ie&&Zt.any3d&&!Zt.mobileOpera&&this.options.zoomAnimation;if(this._zoomAnimated){this._createAnimProxy();Be(this._proxy,ne,this._catchTransitionEnd,this)}this._addLayers(this.options.layers)},setView:function(t,e,n){e=e===undefined?this._zoom:this._limitZoom(e);t=this._limitCenter(H(t),e,this.options.maxBounds);n=n||{};this._stop();if(this._loaded&&!n.reset&&n!==true){if(n.animate!==undefined){n.zoom=i({animate:n.animate},n.zoom);n.pan=i({animate:n.animate,duration:n.duration},n.pan)}var o=this._zoom!==e?this._tryAnimatedZoom&&this._tryAnimatedZoom(t,e,n.zoom):this._tryAnimatedPan(t,n.pan);if(o){clearTimeout(this._sizeTimer);return this}}this._resetView(t,e);return this},setZoom:function(t,e){if(!this._loaded){this._zoom=t;return this}return this.setView(this.getCenter(),t,{zoom:e})},zoomIn:function(t,e){t=t||(Zt.any3d?this.options.zoomDelta:1);return this.setZoom(this._zoom+t,e)},zoomOut:function(t,e){t=t||(Zt.any3d?this.options.zoomDelta:1);return this.setZoom(this._zoom-t,e)},setZoomAround:function(t,e,i){var n=this.getZoomScale(e),o=this.getSize().divideBy(2),r=t instanceof E?t:this.latLngToContainerPoint(t),s=r.subtract(o).multiplyBy(1-1/n),a=this.containerPointToLatLng(o.add(s));return this.setView(a,e,{zoom:i})},_getBoundsCenterZoom:function(t,e){e=e||{};t=t.getBounds?t.getBounds():R(t);var i=B(e.paddingTopLeft||e.padding||[0,0]),n=B(e.paddingBottomRight||e.padding||[0,0]),o=this.getBoundsZoom(t,false,i.add(n));o=typeof e.maxZoom==="number"?Math.min(e.maxZoom,o):o;if(o===Infinity){return{center:t.getCenter(),zoom:o}}var r=n.subtract(i).divideBy(2),s=this.project(t.getSouthWest(),o),a=this.project(t.getNorthEast(),o),l=this.unproject(s.add(a).divideBy(2).add(r),o);return{center:l,zoom:o}},fitBounds:function(t,e){t=R(t);if(!t.isValid()){throw new Error("Bounds are not valid.")}var i=this._getBoundsCenterZoom(t,e);return this.setView(i.center,i.zoom,e)},fitWorld:function(t){return this.fitBounds([[-90,-180],[90,180]],t)},panTo:function(t,e){return this.setView(t,this._zoom,{pan:e})},panBy:function(t,e){t=B(t).round();e=e||{};if(!t.x&&!t.y){return this.fire("moveend")}if(e.animate!==true&&!this.getSize().contains(t)){this._resetView(this.unproject(this.project(this.getCenter()).add(t)),this.getZoom());return this}if(!this._panAnim){this._panAnim=new $e;this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)}if(!e.noMoveStart){this.fire("movestart")}if(e.animate!==false){de(this._mapPane,"leaflet-pan-anim");var i=this._getMapPanePos().subtract(t).round();this._panAnim.run(this._mapPane,i,e.duration||.25,e.easeLinearity)}else{this._rawPanBy(t);this.fire("move").fire("moveend")}return this},flyTo:function(t,e,i){i=i||{};if(i.animate===false||!Zt.any3d){return this.setView(t,e,i)}this._stop();var n=this.project(this.getCenter()),o=this.project(t),r=this.getSize(),s=this._zoom;t=H(t);e=e===undefined?s:e;var a=Math.max(r.x,r.y),l=a*this.getZoomScale(s,e),h=o.distanceTo(n)||1,c=1.42,u=c*c;function d(t){var e=t?-1:1,i=t?l:a,n=l*l-a*a+e*u*u*h*h,o=2*i*u*h,r=n/o,s=Math.sqrt(r*r+1)-r;var c=s<1e-9?-18:Math.log(s);return c}function f(t){return(Math.exp(t)-Math.exp(-t))/2}function p(t){return(Math.exp(t)+Math.exp(-t))/2}function m(t){return f(t)/p(t)}var _=d(0);function g(t){return a*(p(_)/p(_+c*t))}function v(t){return a*(p(_)*m(_+c*t)-f(_))/u}function y(t){return 1-Math.pow(1-t,1.5)}var b=Date.now(),x=(d(1)-_)/c,w=i.duration?1e3*i.duration:1e3*x*.8;function k(){var i=(Date.now()-b)/w,r=y(i)*x;if(i<=1){this._flyToFrame=P(k,this);this._move(this.unproject(n.add(o.subtract(n).multiplyBy(v(r)/h)),s),this.getScaleZoom(a/g(r),s),{flyTo:true})}else{this._move(t,e)._moveEnd(true)}}this._moveStart(true,i.noMoveStart);k.call(this);return this},flyToBounds:function(t,e){var i=this._getBoundsCenterZoom(t,e);return this.flyTo(i.center,i.zoom,e)},setMaxBounds:function(t){t=R(t);if(!t.isValid()){this.options.maxBounds=null;return this.off("moveend",this._panInsideMaxBounds)}else if(this.options.maxBounds){this.off("moveend",this._panInsideMaxBounds)}this.options.maxBounds=t;if(this._loaded){this._panInsideMaxBounds()}return this.on("moveend",this._panInsideMaxBounds)},setMinZoom:function(t){var e=this.options.minZoom;this.options.minZoom=t;if(this._loaded&&e!==t){this.fire("zoomlevelschange");if(this.getZoom()<this.options.minZoom){return this.setZoom(t)}}return this},setMaxZoom:function(t){var e=this.options.maxZoom;this.options.maxZoom=t;if(this._loaded&&e!==t){this.fire("zoomlevelschange");if(this.getZoom()>this.options.maxZoom){return this.setZoom(t)}}return this},panInsideBounds:function(t,e){this._enforcingBounds=true;var i=this.getCenter(),n=this._limitCenter(i,this._zoom,R(t));if(!i.equals(n)){this.panTo(n,e)}this._enforcingBounds=false;return this},panInside:function(t,e){e=e||{};var i=B(e.paddingTopLeft||e.padding||[0,0]),n=B(e.paddingBottomRight||e.padding||[0,0]),o=this.project(this.getCenter()),r=this.project(t),s=this.getPixelBounds(),a=N([s.min.add(i),s.max.subtract(n)]),l=a.getSize();if(!a.contains(r)){this._enforcingBounds=true;var h=r.subtract(a.getCenter());var c=a.extend(r).getSize().subtract(l);o.x+=h.x<0?-c.x:c.x;o.y+=h.y<0?-c.y:c.y;this.panTo(this.unproject(o),e);this._enforcingBounds=false}return this},invalidateSize:function(t){if(!this._loaded){return this}t=i({animate:false,pan:true},t===true?{animate:true}:t);var e=this.getSize();this._sizeChanged=true;this._lastCenter=null;var n=this.getSize(),r=e.divideBy(2).round(),s=n.divideBy(2).round(),a=r.subtract(s);if(!a.x&&!a.y){return this}if(t.animate&&t.pan){this.panBy(a)}else{if(t.pan){this._rawPanBy(a)}this.fire("move");if(t.debounceMoveend){clearTimeout(this._sizeTimer);this._sizeTimer=setTimeout(o(this.fire,this,"moveend"),200)}else{this.fire("moveend")}}return this.fire("resize",{oldSize:e,newSize:n})},stop:function(){this.setZoom(this._limitZoom(this._zoom));if(!this.options.zoomSnap){this.fire("viewreset")}return this._stop()},locate:function(t){t=this._locateOptions=i({timeout:1e4,watch:false},t);if(!("geolocation"in navigator)){this._handleGeolocationError({code:0,message:"Geolocation not supported."});return this}var e=o(this._handleGeolocationResponse,this),n=o(this._handleGeolocationError,this);if(t.watch){this._locationWatchId=navigator.geolocation.watchPosition(e,n,t)}else{navigator.geolocation.getCurrentPosition(e,n,t)}return this},stopLocate:function(){if(navigator.geolocation&&navigator.geolocation.clearWatch){navigator.geolocation.clearWatch(this._locationWatchId)}if(this._locateOptions){this._locateOptions.setView=false}return this},_handleGeolocationError:function(t){if(!this._container._leaflet_id){return}var e=t.code,i=t.message||(e===1?"permission denied":e===2?"position unavailable":"timeout");if(this._locateOptions.setView&&!this._loaded){this.fitWorld()}this.fire("locationerror",{code:e,message:"Geolocation error: "+i+"."})},_handleGeolocationResponse:function(t){if(!this._container._leaflet_id){return}var e=t.coords.latitude,i=t.coords.longitude,n=new j(e,i),o=n.toBounds(t.coords.accuracy*2),r=this._locateOptions;if(r.setView){var s=this.getBoundsZoom(o);this.setView(n,r.maxZoom?Math.min(s,r.maxZoom):s)}var a={latlng:n,bounds:o,timestamp:t.timestamp};for(var l in t.coords){if(typeof t.coords[l]==="number"){a[l]=t.coords[l]}}this.fire("locationfound",a)},addHandler:function(t,e){if(!e){return this}var i=this[t]=new e(this);this._handlers.push(i);if(this.options[t]){i.enable()}return this},remove:function(){this._initEvents(true);if(this.options.maxBounds){this.off("moveend",this._panInsideMaxBounds)}if(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(e){this._container._leaflet_id=undefined;this._containerId=undefined}if(this._locationWatchId!==undefined){this.stopLocate()}this._stop();ae(this._mapPane);if(this._clearControlPos){this._clearControlPos()}if(this._resizeRequest){z(this._resizeRequest);this._resizeRequest=null}this._clearHandlers();if(this._loaded){this.fire("unload")}var t;for(t in this._layers){this._layers[t].remove()}for(t in this._panes){ae(this._panes[t])}this._layers=[];this._panes=[];delete this._mapPane;delete this._renderer;return this},createPane:function(t,e){var i="leaflet-pane"+(t?" leaflet-"+t.replace("Pane","")+"-pane":""),n=se("div",i,e||this._mapPane);if(t){this._panes[t]=n}return n},getCenter:function(){this._checkIfLoaded();if(this._lastCenter&&!this._moved()){return this._lastCenter}return this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var t=this.getPixelBounds(),e=this.unproject(t.getBottomLeft()),i=this.unproject(t.getTopRight());return new D(e,i)},getMinZoom:function(){return this.options.minZoom===undefined?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return this.options.maxZoom===undefined?this._layersMaxZoom===undefined?Infinity:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(t,e,i){t=R(t);i=B(i||[0,0]);var n=this.getZoom()||0,o=this.getMinZoom(),r=this.getMaxZoom(),s=t.getNorthWest(),a=t.getSouthEast(),l=this.getSize().subtract(i),h=N(this.project(a,n),this.project(s,n)).getSize(),c=Zt.any3d?this.options.zoomSnap:1,u=l.x/h.x,d=l.y/h.y,f=e?Math.max(u,d):Math.min(u,d);n=this.getScaleZoom(f,n);if(c){n=Math.round(n/(c/100))*(c/100);n=e?Math.ceil(n/c)*c:Math.floor(n/c)*c}return Math.max(o,Math.min(r,n))},getSize:function(){if(!this._size||this._sizeChanged){this._size=new E(this._container.clientWidth||0,this._container.clientHeight||0);this._sizeChanged=false}return this._size.clone()},getPixelBounds:function(t,e){var i=this._getTopLeftPoint(t,e);return new O(i,i.add(this.getSize()))},getPixelOrigin:function(){this._checkIfLoaded();return this._pixelOrigin},getPixelWorldBounds:function(t){return this.options.crs.getProjectedBounds(t===undefined?this.getZoom():t)},getPane:function(t){return typeof t==="string"?this._panes[t]:t},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(t,e){var i=this.options.crs;e=e===undefined?this._zoom:e;return i.scale(t)/i.scale(e)},getScaleZoom:function(t,e){var i=this.options.crs;e=e===undefined?this._zoom:e;var n=i.zoom(t*i.scale(e));return isNaN(n)?Infinity:n},project:function(t,e){e=e===undefined?this._zoom:e;return this.options.crs.latLngToPoint(H(t),e)},unproject:function(t,e){e=e===undefined?this._zoom:e;return this.options.crs.pointToLatLng(B(t),e)},layerPointToLatLng:function(t){var e=B(t).add(this.getPixelOrigin());return this.unproject(e)},latLngToLayerPoint:function(t){var e=this.project(H(t))._round();return e._subtract(this.getPixelOrigin())},wrapLatLng:function(t){return this.options.crs.wrapLatLng(H(t))},wrapLatLngBounds:function(t){return this.options.crs.wrapLatLngBounds(R(t))},distance:function(t,e){return this.options.crs.distance(H(t),H(e))},containerPointToLayerPoint:function(t){return B(t).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(t){return B(t).add(this._getMapPanePos())},containerPointToLatLng:function(t){var e=this.containerPointToLayerPoint(B(t));return this.layerPointToLatLng(e)},latLngToContainerPoint:function(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint(H(t)))},mouseEventToContainerPoint:function(t){return Ge(t,this._container)},mouseEventToLayerPoint:function(t){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(t))},mouseEventToLatLng:function(t){return this.layerPointToLatLng(this.mouseEventToLayerPoint(t))},_initContainer:function(t){var e=this._container=oe(t);if(!e){throw new Error("Map container not found.")}else if(e._leaflet_id){throw new Error("Map container is already initialized.")}Be(e,"scroll",this._onScroll,this);this._containerId=s(e)},_initLayout:function(){var t=this._container;this._fadeAnimated=this.options.fadeAnimation&&Zt.any3d;de(t,"leaflet-container"+(Zt.touch?" leaflet-touch":"")+(Zt.retina?" leaflet-retina":"")+(Zt.ielt9?" leaflet-oldie":"")+(Zt.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var e=re(t,"position");if(e!=="absolute"&&e!=="relative"&&e!=="fixed"){t.style.position="relative"}this._initPanes();if(this._initControlPos){this._initControlPos()}},_initPanes:function(){var t=this._panes={};this._paneRenderers={};this._mapPane=this.createPane("mapPane",this._container);be(this._mapPane,new E(0,0));this.createPane("tilePane");this.createPane("overlayPane");this.createPane("shadowPane");this.createPane("markerPane");this.createPane("tooltipPane");this.createPane("popupPane");if(!this.options.markerZoomAnimation){de(t.markerPane,"leaflet-zoom-hide");de(t.shadowPane,"leaflet-zoom-hide")}},_resetView:function(t,e){be(this._mapPane,new E(0,0));var i=!this._loaded;this._loaded=true;e=this._limitZoom(e);this.fire("viewprereset");var n=this._zoom!==e;this._moveStart(n,false)._move(t,e)._moveEnd(n);this.fire("viewreset");if(i){this.fire("load")}},_moveStart:function(t,e){if(t){this.fire("zoomstart")}if(!e){this.fire("movestart")}return this},_move:function(t,e,i,n){if(e===undefined){e=this._zoom}var o=this._zoom!==e;this._zoom=e;this._lastCenter=t;this._pixelOrigin=this._getNewPixelOrigin(t);if(!n){if(o||i&&i.pinch){this.fire("zoom",i)}this.fire("move",i)}else if(i&&i.pinch){this.fire("zoom",i)}return this},_moveEnd:function(t){if(t){this.fire("zoomend")}return this.fire("moveend")},_stop:function(){z(this._flyToFrame);if(this._panAnim){this._panAnim.stop()}return this},_rawPanBy:function(t){be(this._mapPane,this._getMapPanePos().subtract(t))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){if(!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[s(this._container)]=this;var e=t?Ne:Be;e(this._container,"click dblclick mousedown mouseup "+"mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this);if(this.options.trackResize){e(window,"resize",this._onResize,this)}if(Zt.any3d&&this.options.transform3DLimit){(t?this.off:this.on).call(this,"moveend",this._onMoveEnd)}},_onResize:function(){z(this._resizeRequest);this._resizeRequest=P((function(){this.invalidateSize({debounceMoveend:true})}),this)},_onScroll:function(){this._container.scrollTop=0;this._container.scrollLeft=0},_onMoveEnd:function(){var t=this._getMapPanePos();if(Math.max(Math.abs(t.x),Math.abs(t.y))>=this.options.transform3DLimit){this._resetView(this.getCenter(),this.getZoom())}},_findEventTargets:function(t,e){var i=[],n,o=e==="mouseout"||e==="mouseover",r=t.target||t.srcElement,a=false;while(r){n=this._targets[s(r)];if(n&&(e==="click"||e==="preclick")&&this._draggableMoved(n)){a=true;break}if(n&&n.listens(e,true)){if(o&&!Je(r,t)){break}i.push(n);if(o){break}}if(r===this._container){break}r=r.parentNode}if(!i.length&&!a&&!o&&this.listens(e,true)){i=[this]}return i},_isClickDisabled:function(t){while(t!==this._container){if(t["_leaflet_disable_click"]){return true}t=t.parentNode}},_handleDOMEvent:function(t){var e=t.target||t.srcElement;if(!this._loaded||e["_leaflet_disable_events"]||t.type==="click"&&this._isClickDisabled(e)){return}var i=t.type;if(i==="mousedown"){Se(e)}this._fireDOMEvent(t,i)},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(t,e,n){if(t.type==="click"){var o=i({},t);o.type="preclick";this._fireDOMEvent(o,o.type,n)}var r=this._findEventTargets(t,e);if(n){var s=[];for(var a=0;a<n.length;a++){if(n[a].listens(e,true)){s.push(n[a])}}r=s.concat(r)}if(!r.length){return}if(e==="contextmenu"){Ue(t)}var l=r[0];var h={originalEvent:t};if(t.type!=="keypress"&&t.type!=="keydown"&&t.type!=="keyup"){var c=l.getLatLng&&(!l._radius||l._radius<=10);h.containerPoint=c?this.latLngToContainerPoint(l.getLatLng()):this.mouseEventToContainerPoint(t);h.layerPoint=this.containerPointToLayerPoint(h.containerPoint);h.latlng=c?l.getLatLng():this.layerPointToLatLng(h.layerPoint)}for(a=0;a<r.length;a++){r[a].fire(e,h,true);if(h.originalEvent._stopped||r[a].options.bubblingMouseEvents===false&&v(this._mouseEvents,e)!==-1){return}}},_draggableMoved:function(t){t=t.dragging&&t.dragging.enabled()?t:this;return t.dragging&&t.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var t=0,e=this._handlers.length;t<e;t++){this._handlers[t].disable()}},whenReady:function(t,e){if(this._loaded){t.call(e||this,{target:this})}else{this.on("load",t,e)}return this},_getMapPanePos:function(){return xe(this._mapPane)||new E(0,0)},_moved:function(){var t=this._getMapPanePos();return t&&!t.equals([0,0])},_getTopLeftPoint:function(t,e){var i=t&&e!==undefined?this._getNewPixelOrigin(t,e):this.getPixelOrigin();return i.subtract(this._getMapPanePos())},_getNewPixelOrigin:function(t,e){var i=this.getSize()._divideBy(2);return this.project(t,e)._subtract(i)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(t,e,i){var n=this._getNewPixelOrigin(i,e);return this.project(t,e)._subtract(n)},_latLngBoundsToNewLayerBounds:function(t,e,i){var n=this._getNewPixelOrigin(i,e);return N([this.project(t.getSouthWest(),e)._subtract(n),this.project(t.getNorthWest(),e)._subtract(n),this.project(t.getSouthEast(),e)._subtract(n),this.project(t.getNorthEast(),e)._subtract(n)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(t){return this.latLngToLayerPoint(t).subtract(this._getCenterLayerPoint())},_limitCenter:function(t,e,i){if(!i){return t}var n=this.project(t,e),o=this.getSize().divideBy(2),r=new O(n.subtract(o),n.add(o)),s=this._getBoundsOffset(r,i,e);if(s.round().equals([0,0])){return t}return this.unproject(n.add(s),e)},_limitOffset:function(t,e){if(!e){return t}var i=this.getPixelBounds(),n=new O(i.min.add(t),i.max.add(t));return t.add(this._getBoundsOffset(n,e))},_getBoundsOffset:function(t,e,i){var n=N(this.project(e.getNorthEast(),i),this.project(e.getSouthWest(),i)),o=n.min.subtract(t.min),r=n.max.subtract(t.max),s=this._rebound(o.x,-r.x),a=this._rebound(o.y,-r.y);return new E(s,a)},_rebound:function(t,e){return t+e>0?Math.round(t-e)/2:Math.max(0,Math.ceil(t))-Math.max(0,Math.floor(e))},_limitZoom:function(t){var e=this.getMinZoom(),i=this.getMaxZoom(),n=Zt.any3d?this.options.zoomSnap:1;if(n){t=Math.round(t/n)*n}return Math.max(e,Math.min(i,t))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){fe(this._mapPane,"leaflet-pan-anim");this.fire("moveend")},_tryAnimatedPan:function(t,e){var i=this._getCenterOffset(t)._trunc();if((e&&e.animate)!==true&&!this.getSize().contains(i)){return false}this.panBy(i,e);return true},_createAnimProxy:function(){var t=this._proxy=se("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(t);this.on("zoomanim",(function(t){var e=ee,i=this._proxy.style[e];ye(this._proxy,this.project(t.center,t.zoom),this.getZoomScale(t.zoom,1));if(i===this._proxy.style[e]&&this._animatingZoom){this._onZoomTransitionEnd()}}),this);this.on("load moveend",this._animMoveEnd,this);this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){ae(this._proxy);this.off("load moveend",this._animMoveEnd,this);delete this._proxy},_animMoveEnd:function(){var t=this.getCenter(),e=this.getZoom();ye(this._proxy,this.project(t,e),this.getZoomScale(e,1))},_catchTransitionEnd:function(t){if(this._animatingZoom&&t.propertyName.indexOf("transform")>=0){this._onZoomTransitionEnd()}},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(t,e,i){if(this._animatingZoom){return true}i=i||{};if(!this._zoomAnimated||i.animate===false||this._nothingToAnimate()||Math.abs(e-this._zoom)>this.options.zoomAnimationThreshold){return false}var n=this.getZoomScale(e),o=this._getCenterOffset(t)._divideBy(1-1/n);if(i.animate!==true&&!this.getSize().contains(o)){return false}P((function(){this._moveStart(true,false)._animateZoom(t,e,true)}),this);return true},_animateZoom:function(t,e,i,n){if(!this._mapPane){return}if(i){this._animatingZoom=true;this._animateToCenter=t;this._animateToZoom=e;de(this._mapPane,"leaflet-zoom-anim")}this.fire("zoomanim",{center:t,zoom:e,noUpdate:n});if(!this._tempFireZoomEvent){this._tempFireZoomEvent=this._zoom!==this._animateToZoom}this._move(this._animateToCenter,this._animateToZoom,undefined,true);setTimeout(o(this._onZoomTransitionEnd,this),250)},_onZoomTransitionEnd:function(){if(!this._animatingZoom){return}if(this._mapPane){fe(this._mapPane,"leaflet-zoom-anim")}this._animatingZoom=false;this._move(this._animateToCenter,this._animateToZoom,undefined,true);if(this._tempFireZoomEvent){this.fire("zoom")}delete this._tempFireZoomEvent;this.fire("move");this._moveEnd(true)}});function ti(t,e){return new Qe(t,e)}var ei=C.extend({options:{position:"topright"},initialize:function(t){f(this,t)},getPosition:function(){return this.options.position},setPosition:function(t){var e=this._map;if(e){e.removeControl(this)}this.options.position=t;if(e){e.addControl(this)}return this},getContainer:function(){return this._container},addTo:function(t){this.remove();this._map=t;var e=this._container=this.onAdd(t),i=this.getPosition(),n=t._controlCorners[i];de(e,"leaflet-control");if(i.indexOf("bottom")!==-1){n.insertBefore(e,n.firstChild)}else{n.appendChild(e)}this._map.on("unload",this.remove,this);return this},remove:function(){if(!this._map){return this}ae(this._container);if(this.onRemove){this.onRemove(this._map)}this._map.off("unload",this.remove,this);this._map=null;return this},_refocusOnMap:function(t){if(this._map&&t&&t.screenX>0&&t.screenY>0){this._map.getContainer().focus()}}});var ii=function(t){return new ei(t)};Qe.include({addControl:function(t){t.addTo(this);return this},removeControl:function(t){t.remove();return this},_initControlPos:function(){var t=this._controlCorners={},e="leaflet-",i=this._controlContainer=se("div",e+"control-container",this._container);function n(n,o){var r=e+n+" "+e+o;t[n+o]=se("div",r,i)}n("top","left");n("top","right");n("bottom","left");n("bottom","right")},_clearControlPos:function(){for(var t in this._controlCorners){ae(this._controlCorners[t])}ae(this._controlContainer);delete this._controlCorners;delete this._controlContainer}});var ni=ei.extend({options:{collapsed:true,position:"topright",autoZIndex:true,hideSingleBase:false,sortLayers:false,sortFunction:function(t,e,i,n){return i<n?-1:n<i?1:0}},initialize:function(t,e,i){f(this,i);this._layerControlInputs=[];this._layers=[];this._lastZIndex=0;this._handlingClick=false;for(var n in t){this._addLayer(t[n],n)}for(n in e){this._addLayer(e[n],n,true)}},onAdd:function(t){this._initLayout();this._update();this._map=t;t.on("zoomend",this._checkDisabledLayers,this);for(var e=0;e<this._layers.length;e++){this._layers[e].layer.on("add remove",this._onLayerChange,this)}return this._container},addTo:function(t){ei.prototype.addTo.call(this,t);return this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var t=0;t<this._layers.length;t++){this._layers[t].layer.off("add remove",this._onLayerChange,this)}},addBaseLayer:function(t,e){this._addLayer(t,e);return this._map?this._update():this},addOverlay:function(t,e){this._addLayer(t,e,true);return this._map?this._update():this},removeLayer:function(t){t.off("add remove",this._onLayerChange,this);var e=this._getLayer(s(t));if(e){this._layers.splice(this._layers.indexOf(e),1)}return this._map?this._update():this},expand:function(){de(this._container,"leaflet-control-layers-expanded");this._section.style.height=null;var t=this._map.getSize().y-(this._container.offsetTop+50);if(t<this._section.clientHeight){de(this._section,"leaflet-control-layers-scrollbar");this._section.style.height=t+"px"}else{fe(this._section,"leaflet-control-layers-scrollbar")}this._checkDisabledLayers();return this},collapse:function(){fe(this._container,"leaflet-control-layers-expanded");return this},_initLayout:function(){var t="leaflet-control-layers",e=this._container=se("div",t),i=this.options.collapsed;e.setAttribute("aria-haspopup",true);Ve(e);We(e);var n=this._section=se("section",t+"-list");if(i){this._map.on("click",this.collapse,this);Be(e,{mouseenter:function(){Be(n,"click",Ue);this.expand();setTimeout((function(){Ne(n,"click",Ue)}))},mouseleave:this.collapse},this)}var o=this._layersLink=se("a",t+"-toggle",e);o.href="#";o.title="Layers";o.setAttribute("role","button");Be(o,"click",Ue);Be(o,"focus",this.expand,this);if(!i){this.expand()}this._baseLayersList=se("div",t+"-base",n);this._separator=se("div",t+"-separator",n);this._overlaysList=se("div",t+"-overlays",n);e.appendChild(n)},_getLayer:function(t){for(var e=0;e<this._layers.length;e++){if(this._layers[e]&&s(this._layers[e].layer)===t){return this._layers[e]}}},_addLayer:function(t,e,i){if(this._map){t.on("add remove",this._onLayerChange,this)}this._layers.push({layer:t,name:e,overlay:i});if(this.options.sortLayers){this._layers.sort(o((function(t,e){return this.options.sortFunction(t.layer,e.layer,t.name,e.name)}),this))}if(this.options.autoZIndex&&t.setZIndex){this._lastZIndex++;t.setZIndex(this._lastZIndex)}this._expandIfNotCollapsed()},_update:function(){if(!this._container){return this}le(this._baseLayersList);le(this._overlaysList);this._layerControlInputs=[];var t,e,i,n,o=0;for(i=0;i<this._layers.length;i++){n=this._layers[i];this._addItem(n);e=e||n.overlay;t=t||!n.overlay;o+=!n.overlay?1:0}if(this.options.hideSingleBase){t=t&&o>1;this._baseLayersList.style.display=t?"":"none"}this._separator.style.display=e&&t?"":"none";return this},_onLayerChange:function(t){if(!this._handlingClick){this._update()}var e=this._getLayer(s(t.target));var i=e.overlay?t.type==="add"?"overlayadd":"overlayremove":t.type==="add"?"baselayerchange":null;if(i){this._map.fire(i,e)}},_createRadioElement:function(t,e){var i='<input type="radio" class="leaflet-control-layers-selector" name="'+t+'"'+(e?' checked="checked"':"")+"/>";var n=document.createElement("div");n.innerHTML=i;return n.firstChild},_addItem:function(t){var e=document.createElement("label"),i=this._map.hasLayer(t.layer),n;if(t.overlay){n=document.createElement("input");n.type="checkbox";n.className="leaflet-control-layers-selector";n.defaultChecked=i}else{n=this._createRadioElement("leaflet-base-layers_"+s(this),i)}this._layerControlInputs.push(n);n.layerId=s(t.layer);Be(n,"click",this._onInputClick,this);var o=document.createElement("span");o.innerHTML=" "+t.name;var r=document.createElement("span");e.appendChild(r);r.appendChild(n);r.appendChild(o);var a=t.overlay?this._overlaysList:this._baseLayersList;a.appendChild(e);this._checkDisabledLayers();return e},_onInputClick:function(){var t=this._layerControlInputs,e,i;var n=[],o=[];this._handlingClick=true;for(var r=t.length-1;r>=0;r--){e=t[r];i=this._getLayer(e.layerId).layer;if(e.checked){n.push(i)}else if(!e.checked){o.push(i)}}for(r=0;r<o.length;r++){if(this._map.hasLayer(o[r])){this._map.removeLayer(o[r])}}for(r=0;r<n.length;r++){if(!this._map.hasLayer(n[r])){this._map.addLayer(n[r])}}this._handlingClick=false;this._refocusOnMap()},_checkDisabledLayers:function(){var t=this._layerControlInputs,e,i,n=this._map.getZoom();for(var o=t.length-1;o>=0;o--){e=t[o];i=this._getLayer(e.layerId).layer;e.disabled=i.options.minZoom!==undefined&&n<i.options.minZoom||i.options.maxZoom!==undefined&&n>i.options.maxZoom}},_expandIfNotCollapsed:function(){if(this._map&&!this.options.collapsed){this.expand()}return this}});var oi=function(t,e,i){return new ni(t,e,i)};var ri=ei.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">&#x2212;</span>',zoomOutTitle:"Zoom out"},onAdd:function(t){var e="leaflet-control-zoom",i=se("div",e+" leaflet-bar"),n=this.options;this._zoomInButton=this._createButton(n.zoomInText,n.zoomInTitle,e+"-in",i,this._zoomIn);this._zoomOutButton=this._createButton(n.zoomOutText,n.zoomOutTitle,e+"-out",i,this._zoomOut);this._updateDisabled();t.on("zoomend zoomlevelschange",this._updateDisabled,this);return i},onRemove:function(t){t.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){this._disabled=true;this._updateDisabled();return this},enable:function(){this._disabled=false;this._updateDisabled();return this},_zoomIn:function(t){if(!this._disabled&&this._map._zoom<this._map.getMaxZoom()){this._map.zoomIn(this._map.options.zoomDelta*(t.shiftKey?3:1))}},_zoomOut:function(t){if(!this._disabled&&this._map._zoom>this._map.getMinZoom()){this._map.zoomOut(this._map.options.zoomDelta*(t.shiftKey?3:1))}},_createButton:function(t,e,i,n,o){var r=se("a",i,n);r.innerHTML=t;r.href="#";r.title=e;r.setAttribute("role","button");r.setAttribute("aria-label",e);Ve(r);Be(r,"click",qe);Be(r,"click",o,this);Be(r,"click",this._refocusOnMap,this);return r},_updateDisabled:function(){var t=this._map,e="leaflet-disabled";fe(this._zoomInButton,e);fe(this._zoomOutButton,e);this._zoomInButton.setAttribute("aria-disabled","false");this._zoomOutButton.setAttribute("aria-disabled","false");if(this._disabled||t._zoom===t.getMinZoom()){de(this._zoomOutButton,e);this._zoomOutButton.setAttribute("aria-disabled","true")}if(this._disabled||t._zoom===t.getMaxZoom()){de(this._zoomInButton,e);this._zoomInButton.setAttribute("aria-disabled","true")}}});Qe.mergeOptions({zoomControl:true});Qe.addInitHook((function(){if(this.options.zoomControl){this.zoomControl=new ri;this.addControl(this.zoomControl)}}));var si=function(t){return new ri(t)};var ai=ei.extend({options:{position:"bottomleft",maxWidth:100,metric:true,imperial:true},onAdd:function(t){var e="leaflet-control-scale",i=se("div",e),n=this.options;this._addScales(n,e+"-line",i);t.on(n.updateWhenIdle?"moveend":"move",this._update,this);t.whenReady(this._update,this);return i},onRemove:function(t){t.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(t,e,i){if(t.metric){this._mScale=se("div",e,i)}if(t.imperial){this._iScale=se("div",e,i)}},_update:function(){var t=this._map,e=t.getSize().y/2;var i=t.distance(t.containerPointToLatLng([0,e]),t.containerPointToLatLng([this.options.maxWidth,e]));this._updateScales(i)},_updateScales:function(t){if(this.options.metric&&t){this._updateMetric(t)}if(this.options.imperial&&t){this._updateImperial(t)}},_updateMetric:function(t){var e=this._getRoundNum(t),i=e<1e3?e+" m":e/1e3+" km";this._updateScale(this._mScale,i,e/t)},_updateImperial:function(t){var e=t*3.2808399,i,n,o;if(e>5280){i=e/5280;n=this._getRoundNum(i);this._updateScale(this._iScale,n+" mi",n/i)}else{o=this._getRoundNum(e);this._updateScale(this._iScale,o+" ft",o/e)}},_updateScale:function(t,e,i){t.style.width=Math.round(this.options.maxWidth*i)+"px";t.innerHTML=e},_getRoundNum:function(t){var e=Math.pow(10,(Math.floor(t)+"").length-1),i=t/e;i=i>=10?10:i>=5?5:i>=3?3:i>=2?2:1;return e*i}});var li=function(t){return new ai(t)};var hi='<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="12" height="8"><path fill="#4C7BE1" d="M0 0h12v4H0z"/><path fill="#FFD500" d="M0 4h12v3H0z"/><path fill="#E0BC00" d="M0 7h12v1H0z"/></svg>';var ci=ei.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(Zt.inlineSvg?hi+" ":"")+"Leaflet</a>"},initialize:function(t){f(this,t);this._attributions={}},onAdd:function(t){t.attributionControl=this;this._container=se("div","leaflet-control-attribution");Ve(this._container);for(var e in t._layers){if(t._layers[e].getAttribution){this.addAttribution(t._layers[e].getAttribution())}}this._update();t.on("layeradd",this._addAttribution,this);return this._container},onRemove:function(t){t.off("layeradd",this._addAttribution,this)},_addAttribution:function(t){if(t.layer.getAttribution){this.addAttribution(t.layer.getAttribution());t.layer.once("remove",(function(){this.removeAttribution(t.layer.getAttribution())}),this)}},setPrefix:function(t){this.options.prefix=t;this._update();return this},addAttribution:function(t){if(!t){return this}if(!this._attributions[t]){this._attributions[t]=0}this._attributions[t]++;this._update();return this},removeAttribution:function(t){if(!t){return this}if(this._attributions[t]){this._attributions[t]--;this._update()}return this},_update:function(){if(!this._map){return}var t=[];for(var e in this._attributions){if(this._attributions[e]){t.push(e)}}var i=[];if(this.options.prefix){i.push(this.options.prefix)}if(t.length){i.push(t.join(", "))}this._container.innerHTML=i.join(' <span aria-hidden="true">|</span> ')}});Qe.mergeOptions({attributionControl:true});Qe.addInitHook((function(){if(this.options.attributionControl){(new ci).addTo(this)}}));var ui=function(t){return new ci(t)};ei.Layers=ni;ei.Zoom=ri;ei.Scale=ai;ei.Attribution=ci;ii.layers=oi;ii.zoom=si;ii.scale=li;ii.attribution=ui;var di=C.extend({initialize:function(t){this._map=t},enable:function(){if(this._enabled){return this}this._enabled=true;this.addHooks();return this},disable:function(){if(!this._enabled){return this}this._enabled=false;this.removeHooks();return this},enabled:function(){return!!this._enabled}});di.addTo=function(t,e){t.addHandler(e,this);return this};var fi={Events:A};var pi=Zt.touch?"touchstart mousedown":"mousedown";var mi=I.extend({options:{clickTolerance:3},initialize:function(t,e,i,n){f(this,n);this._element=t;this._dragStartTarget=e||t;this._preventOutline=i},enable:function(){if(this._enabled){return}Be(this._dragStartTarget,pi,this._onDown,this);this._enabled=true},disable:function(){if(!this._enabled){return}if(mi._dragging===this){this.finishDrag(true)}Ne(this._dragStartTarget,pi,this._onDown,this);this._enabled=false;this._moved=false},_onDown:function(t){if(!this._enabled){return}this._moved=false;if(ue(this._element,"leaflet-zoom-anim")){return}if(t.touches&&t.touches.length!==1){if(mi._dragging===this){this.finishDrag()}return}if(mi._dragging||t.shiftKey||t.which!==1&&t.button!==1&&!t.touches){return}mi._dragging=this;if(this._preventOutline){Se(this._element)}Pe();we();if(this._moving){return}this.fire("down");var e=t.touches?t.touches[0]:t,i=Ie(this._element);this._startPoint=new E(e.clientX,e.clientY);this._startPos=xe(this._element);this._parentScale=Ee(i);var n=t.type==="mousedown";Be(document,n?"mousemove":"touchmove",this._onMove,this);Be(document,n?"mouseup":"touchend touchcancel",this._onUp,this)},_onMove:function(t){if(!this._enabled){return}if(t.touches&&t.touches.length>1){this._moved=true;return}var e=t.touches&&t.touches.length===1?t.touches[0]:t,i=new E(e.clientX,e.clientY)._subtract(this._startPoint);if(!i.x&&!i.y){return}if(Math.abs(i.x)+Math.abs(i.y)<this.options.clickTolerance){return}i.x/=this._parentScale.x;i.y/=this._parentScale.y;Ue(t);if(!this._moved){this.fire("dragstart");this._moved=true;de(document.body,"leaflet-dragging");this._lastTarget=t.target||t.srcElement;if(window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance){this._lastTarget=this._lastTarget.correspondingUseElement}de(this._lastTarget,"leaflet-drag-target")}this._newPos=this._startPos.add(i);this._moving=true;this._lastEvent=t;this._updatePosition()},_updatePosition:function(){var t={originalEvent:this._lastEvent};this.fire("predrag",t);be(this._element,this._newPos);this.fire("drag",t)},_onUp:function(){if(!this._enabled){return}this.finishDrag()},finishDrag:function(t){fe(document.body,"leaflet-dragging");if(this._lastTarget){fe(this._lastTarget,"leaflet-drag-target");this._lastTarget=null}Ne(document,"mousemove touchmove",this._onMove,this);Ne(document,"mouseup touchend touchcancel",this._onUp,this);ze();ke();if(this._moved&&this._moving){this.fire("dragend",{noInertia:t,distance:this._newPos.distanceTo(this._startPos)})}this._moving=false;mi._dragging=false}});function _i(t,e){if(!e||!t.length){return t.slice()}var i=e*e;t=xi(t,i);t=yi(t,i);return t}function gi(t,e,i){return Math.sqrt(zi(t,e,i,true))}function vi(t,e,i){return zi(t,e,i)}function yi(t,e){var i=t.length,n=typeof Uint8Array!==undefined+""?Uint8Array:Array,o=new n(i);o[0]=o[i-1]=1;bi(t,o,e,0,i-1);var r,s=[];for(r=0;r<i;r++){if(o[r]){s.push(t[r])}}return s}function bi(t,e,i,n,o){var r=0,s,a,l;for(a=n+1;a<=o-1;a++){l=zi(t[a],t[n],t[o],true);if(l>r){s=a;r=l}}if(r>i){e[s]=1;bi(t,e,i,n,s);bi(t,e,i,s,o)}}function xi(t,e){var i=[t[0]];for(var n=1,o=0,r=t.length;n<r;n++){if(Pi(t[n],t[o])>e){i.push(t[n]);o=n}}if(o<r-1){i.push(t[r-1])}return i}var wi;function ki(t,e,i,n,o){var r=n?wi:Li(t,i),s=Li(e,i),a,l,h;wi=s;while(true){if(!(r|s)){return[t,e]}if(r&s){return false}a=r||s;l=Ti(t,e,a,i,o);h=Li(l,i);if(a===r){t=l;r=h}else{e=l;s=h}}}function Ti(t,e,i,n,o){var r=e.x-t.x,s=e.y-t.y,a=n.min,l=n.max,h,c;if(i&8){h=t.x+r*(l.y-t.y)/s;c=l.y}else if(i&4){h=t.x+r*(a.y-t.y)/s;c=a.y}else if(i&2){h=l.x;c=t.y+s*(l.x-t.x)/r}else if(i&1){h=a.x;c=t.y+s*(a.x-t.x)/r}return new E(h,c,o)}function Li(t,e){var i=0;if(t.x<e.min.x){i|=1}else if(t.x>e.max.x){i|=2}if(t.y<e.min.y){i|=4}else if(t.y>e.max.y){i|=8}return i}function Pi(t,e){var i=e.x-t.x,n=e.y-t.y;return i*i+n*n}function zi(t,e,i,n){var o=e.x,r=e.y,s=i.x-o,a=i.y-r,l=s*s+a*a,h;if(l>0){h=((t.x-o)*s+(t.y-r)*a)/l;if(h>1){o=i.x;r=i.y}else if(h>0){o+=s*h;r+=a*h}}s=t.x-o;a=t.y-r;return n?s*s+a*a:new E(o,r)}function Mi(t){return!g(t[0])||typeof t[0][0]!=="object"&&typeof t[0][0]!=="undefined"}function Ci(t){console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead.");return Mi(t)}var Si={__proto__:null,simplify:_i,pointToSegmentDistance:gi,closestPointOnSegment:vi,clipSegment:ki,_getEdgeIntersection:Ti,_getBitCode:Li,_sqClosestPointOnSegment:zi,isFlat:Mi,_flat:Ci};function Ai(t,e,i){var n,o=[1,4,2,8],r,s,a,l,h,c,u,d;for(r=0,c=t.length;r<c;r++){t[r]._code=Li(t[r],e)}for(a=0;a<4;a++){u=o[a];n=[];for(r=0,c=t.length,s=c-1;r<c;s=r++){l=t[r];h=t[s];if(!(l._code&u)){if(h._code&u){d=Ti(h,l,u,e,i);d._code=Li(d,e);n.push(d)}n.push(l)}else if(!(h._code&u)){d=Ti(h,l,u,e,i);d._code=Li(d,e);n.push(d)}}t=n}return t}var Ii={__proto__:null,clipPolygon:Ai};var Ei={project:function(t){return new E(t.lng,t.lat)},unproject:function(t){return new j(t.y,t.x)},bounds:new O([-180,-90],[180,90])};var Zi={R:6378137,R_MINOR:6356752.314245179,bounds:new O([-20037508.34279,-15496570.73972],[20037508.34279,18764656.23138]),project:function(t){var e=Math.PI/180,i=this.R,n=t.lat*e,o=this.R_MINOR/i,r=Math.sqrt(1-o*o),s=r*Math.sin(n);var a=Math.tan(Math.PI/4-n/2)/Math.pow((1-s)/(1+s),r/2);n=-i*Math.log(Math.max(a,1e-10));return new E(t.lng*e*i,n)},unproject:function(t){var e=180/Math.PI,i=this.R,n=this.R_MINOR/i,o=Math.sqrt(1-n*n),r=Math.exp(-t.y/i),s=Math.PI/2-2*Math.atan(r);for(var a=0,l=.1,h;a<15&&Math.abs(l)>1e-7;a++){h=o*Math.sin(s);h=Math.pow((1-h)/(1+h),o/2);l=Math.PI/2-2*Math.atan(r*h)-s;s+=l}return new j(s*e,t.x*e/i)}};var Bi={__proto__:null,LonLat:Ei,Mercator:Zi,SphericalMercator:U};var Oi=i({},W,{code:"EPSG:3395",projection:Zi,transformation:function(){var t=.5/(Math.PI*Zi.R);return G(t,.5,-t,.5)}()});var Ni=i({},W,{code:"EPSG:4326",projection:Ei,transformation:G(1/180,1,-1/180,.5)});var Di=i({},F,{projection:Ei,transformation:G(1,0,-1,0),scale:function(t){return Math.pow(2,t)},zoom:function(t){return Math.log(t)/Math.LN2},distance:function(t,e){var i=e.lng-t.lng,n=e.lat-t.lat;return Math.sqrt(i*i+n*n)},infinite:true});F.Earth=W;F.EPSG3395=Oi;F.EPSG3857=K;F.EPSG900913=Y;F.EPSG4326=Ni;F.Simple=Di;var Ri=I.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:true},addTo:function(t){t.addLayer(this);return this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(t){if(t){t.removeLayer(this)}return this},getPane:function(t){return this._map.getPane(t?this.options[t]||t:this.options.pane)},addInteractiveTarget:function(t){this._map._targets[s(t)]=this;return this},removeInteractiveTarget:function(t){delete this._map._targets[s(t)];return this},getAttribution:function(){return this.options.attribution},_layerAdd:function(t){var e=t.target;if(!e.hasLayer(this)){return}this._map=e;this._zoomAnimated=e._zoomAnimated;if(this.getEvents){var i=this.getEvents();e.on(i,this);this.once("remove",(function(){e.off(i,this)}),this)}this.onAdd(e);this.fire("add");e.fire("layeradd",{layer:this})}});Qe.include({addLayer:function(t){if(!t._layerAdd){throw new Error("The provided object is not a Layer.")}var e=s(t);if(this._layers[e]){return this}this._layers[e]=t;t._mapToAdd=this;if(t.beforeAdd){t.beforeAdd(this)}this.whenReady(t._layerAdd,t);return this},removeLayer:function(t){var e=s(t);if(!this._layers[e]){return this}if(this._loaded){t.onRemove(this)}delete this._layers[e];if(this._loaded){this.fire("layerremove",{layer:t});t.fire("remove")}t._map=t._mapToAdd=null;return this},hasLayer:function(t){return s(t)in this._layers},eachLayer:function(t,e){for(var i in this._layers){t.call(e,this._layers[i])}return this},_addLayers:function(t){t=t?g(t)?t:[t]:[];for(var e=0,i=t.length;e<i;e++){this.addLayer(t[e])}},_addZoomLimit:function(t){if(!isNaN(t.options.maxZoom)||!isNaN(t.options.minZoom)){this._zoomBoundLayers[s(t)]=t;this._updateZoomLevels()}},_removeZoomLimit:function(t){var e=s(t);if(this._zoomBoundLayers[e]){delete this._zoomBoundLayers[e];this._updateZoomLevels()}},_updateZoomLevels:function(){var t=Infinity,e=-Infinity,i=this._getZoomSpan();for(var n in this._zoomBoundLayers){var o=this._zoomBoundLayers[n].options;t=o.minZoom===undefined?t:Math.min(t,o.minZoom);e=o.maxZoom===undefined?e:Math.max(e,o.maxZoom)}this._layersMaxZoom=e===-Infinity?undefined:e;this._layersMinZoom=t===Infinity?undefined:t;if(i!==this._getZoomSpan()){this.fire("zoomlevelschange")}if(this.options.maxZoom===undefined&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom){this.setZoom(this._layersMaxZoom)}if(this.options.minZoom===undefined&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom){this.setZoom(this._layersMinZoom)}}});var ji=Ri.extend({initialize:function(t,e){f(this,e);this._layers={};var i,n;if(t){for(i=0,n=t.length;i<n;i++){this.addLayer(t[i])}}},addLayer:function(t){var e=this.getLayerId(t);this._layers[e]=t;if(this._map){this._map.addLayer(t)}return this},removeLayer:function(t){var e=t in this._layers?t:this.getLayerId(t);if(this._map&&this._layers[e]){this._map.removeLayer(this._layers[e])}delete this._layers[e];return this},hasLayer:function(t){var e=typeof t==="number"?t:this.getLayerId(t);return e in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(t){var e=Array.prototype.slice.call(arguments,1),i,n;for(i in this._layers){n=this._layers[i];if(n[t]){n[t].apply(n,e)}}return this},onAdd:function(t){this.eachLayer(t.addLayer,t)},onRemove:function(t){this.eachLayer(t.removeLayer,t)},eachLayer:function(t,e){for(var i in this._layers){t.call(e,this._layers[i])}return this},getLayer:function(t){return this._layers[t]},getLayers:function(){var t=[];this.eachLayer(t.push,t);return t},setZIndex:function(t){return this.invoke("setZIndex",t)},getLayerId:function(t){return s(t)}});var Hi=function(t,e){return new ji(t,e)};var Fi=ji.extend({addLayer:function(t){if(this.hasLayer(t)){return this}t.addEventParent(this);ji.prototype.addLayer.call(this,t);return this.fire("layeradd",{layer:t})},removeLayer:function(t){if(!this.hasLayer(t)){return this}if(t in this._layers){t=this._layers[t]}t.removeEventParent(this);ji.prototype.removeLayer.call(this,t);return this.fire("layerremove",{layer:t})},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 D;for(var e in this._layers){var i=this._layers[e];t.extend(i.getBounds?i.getBounds():i.getLatLng())}return t}});var Wi=function(t,e){return new Fi(t,e)};var Vi=C.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:false},initialize:function(t){f(this,t)},createIcon:function(t){return this._createIcon("icon",t)},createShadow:function(t){return this._createIcon("shadow",t)},_createIcon:function(t,e){var i=this._getIconUrl(t);if(!i){if(t==="icon"){throw new Error("iconUrl not set in Icon options (see the docs).")}return null}var n=this._createImg(i,e&&e.tagName==="IMG"?e:null);this._setIconStyles(n,t);if(this.options.crossOrigin||this.options.crossOrigin===""){n.crossOrigin=this.options.crossOrigin===true?"":this.options.crossOrigin}return n},_setIconStyles:function(t,e){var i=this.options;var n=i[e+"Size"];if(typeof n==="number"){n=[n,n]}var o=B(n),r=B(e==="shadow"&&i.shadowAnchor||i.iconAnchor||o&&o.divideBy(2,true));t.className="leaflet-marker-"+e+" "+(i.className||"");if(r){t.style.marginLeft=-r.x+"px";t.style.marginTop=-r.y+"px"}if(o){t.style.width=o.x+"px";t.style.height=o.y+"px"}},_createImg:function(t,e){e=e||document.createElement("img");e.src=t;return e},_getIconUrl:function(t){return Zt.retina&&this.options[t+"RetinaUrl"]||this.options[t+"Url"]}});function Ui(t){return new Vi(t)}var qi=Vi.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){if(typeof qi.imagePath!=="string"){qi.imagePath=this._detectIconPath()}return(this.options.imagePath||qi.imagePath)+Vi.prototype._getIconUrl.call(this,t)},_stripUrl:function(t){var e=function(t,e,i){var n=e.exec(t);return n&&n[i]};t=e(t,/^url\((['"])?(.+)\1\)$/,2);return t&&e(t,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var t=se("div","leaflet-default-icon-path",document.body);var e=re(t,"background-image")||re(t,"backgroundImage");document.body.removeChild(t);e=this._stripUrl(e);if(e){return e}var i=document.querySelector('link[href$="leaflet.css"]');if(!i){return""}return i.href.substring(0,i.href.length-"leaflet.css".length-1)}});var Gi=di.extend({initialize:function(t){this._marker=t},addHooks:function(){var t=this._marker._icon;if(!this._draggable){this._draggable=new mi(t,t,true)}this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable();de(t,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable();if(this._marker._icon){fe(this._marker._icon,"leaflet-marker-draggable")}},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(t){var e=this._marker,i=e._map,n=this._marker.options.autoPanSpeed,o=this._marker.options.autoPanPadding,r=xe(e._icon),s=i.getPixelBounds(),a=i.getPixelOrigin();var l=N(s.min._subtract(a).add(o),s.max._subtract(a).subtract(o));if(!l.contains(r)){var h=B((Math.max(l.max.x,r.x)-l.max.x)/(s.max.x-l.max.x)-(Math.min(l.min.x,r.x)-l.min.x)/(s.min.x-l.min.x),(Math.max(l.max.y,r.y)-l.max.y)/(s.max.y-l.max.y)-(Math.min(l.min.y,r.y)-l.min.y)/(s.min.y-l.min.y)).multiplyBy(n);i.panBy(h,{animate:false});this._draggable._newPos._add(h);this._draggable._startPos._add(h);be(e._icon,this._draggable._newPos);this._onDrag(t);this._panRequest=P(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){if(this._marker.options.autoPan){z(this._panRequest);this._panRequest=P(this._adjustPan.bind(this,t))}},_onDrag:function(t){var e=this._marker,i=e._shadow,n=xe(e._icon),o=e._map.layerPointToLatLng(n);if(i){be(i,n)}e._latlng=o;t.latlng=o;t.oldLatLng=this._oldLatLng;e.fire("move",t).fire("drag",t)},_onDragEnd:function(t){z(this._panRequest);delete this._oldLatLng;this._marker.fire("moveend").fire("dragend",t)}});var Ki=Ri.extend({options:{icon:new qi,interactive:true,keyboard:true,title:"",alt:"Marker",zIndexOffset:0,opacity:1,riseOnHover:false,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:false,autoPanOnFocus:true,draggable:false,autoPan:false,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(t,e){f(this,e);this._latlng=H(t)},onAdd:function(t){this._zoomAnimated=this._zoomAnimated&&t.options.markerZoomAnimation;if(this._zoomAnimated){t.on("zoomanim",this._animateZoom,this)}this._initIcon();this.update()},onRemove:function(t){if(this.dragging&&this.dragging.enabled()){this.options.draggable=true;this.dragging.removeHooks()}delete this.dragging;if(this._zoomAnimated){t.off("zoomanim",this._animateZoom,this)}this._removeIcon();this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(t){var e=this._latlng;this._latlng=H(t);this.update();return this.fire("move",{oldLatLng:e,latlng:this._latlng})},setZIndexOffset:function(t){this.options.zIndexOffset=t;return this.update()},getIcon:function(){return this.options.icon},setIcon:function(t){this.options.icon=t;if(this._map){this._initIcon();this.update()}if(this._popup){this.bindPopup(this._popup,this._popup.options)}return this},getElement:function(){return this._icon},update:function(){if(this._icon&&this._map){var t=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(t)}return this},_initIcon:function(){var t=this.options,e="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");var i=t.icon.createIcon(this._icon),n=false;if(i!==this._icon){if(this._icon){this._removeIcon()}n=true;if(t.title){i.title=t.title}if(i.tagName==="IMG"){i.alt=t.alt||""}}de(i,e);if(t.keyboard){i.tabIndex="0";i.setAttribute("role","button")}this._icon=i;if(t.riseOnHover){this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex})}if(this.options.autoPanOnFocus){Be(i,"focus",this._panOnFocus,this)}var o=t.icon.createShadow(this._shadow),r=false;if(o!==this._shadow){this._removeShadow();r=true}if(o){de(o,e);o.alt=""}this._shadow=o;if(t.opacity<1){this._updateOpacity()}if(n){this.getPane().appendChild(this._icon)}this._initInteraction();if(o&&r){this.getPane(t.shadowPane).appendChild(this._shadow)}},_removeIcon:function(){if(this.options.riseOnHover){this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex})}if(this.options.autoPanOnFocus){Ne(this._icon,"focus",this._panOnFocus,this)}ae(this._icon);this.removeInteractiveTarget(this._icon);this._icon=null},_removeShadow:function(){if(this._shadow){ae(this._shadow)}this._shadow=null},_setPos:function(t){if(this._icon){be(this._icon,t)}if(this._shadow){be(this._shadow,t)}this._zIndex=t.y+this.options.zIndexOffset;this._resetZIndex()},_updateZIndex:function(t){if(this._icon){this._icon.style.zIndex=this._zIndex+t}},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center).round();this._setPos(e)},_initInteraction:function(){if(!this.options.interactive){return}de(this._icon,"leaflet-interactive");this.addInteractiveTarget(this._icon);if(Gi){var t=this.options.draggable;if(this.dragging){t=this.dragging.enabled();this.dragging.disable()}this.dragging=new Gi(this);if(t){this.dragging.enable()}}},setOpacity:function(t){this.options.opacity=t;if(this._map){this._updateOpacity()}return this},_updateOpacity:function(){var t=this.options.opacity;if(this._icon){_e(this._icon,t)}if(this._shadow){_e(this._shadow,t)}},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var t=this._map;if(!t){return}var e=this.options.icon.options;var i=e.iconSize?B(e.iconSize):B(0,0);var n=e.iconAnchor?B(e.iconAnchor):B(0,0);t.panInside(this._latlng,{paddingTopLeft:n,paddingBottomRight:i.subtract(n)})},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function Yi(t,e){return new Ki(t,e)}var Ji=Ri.extend({options:{stroke:true,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:false,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:true,bubblingMouseEvents:true},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(){if(this._map){this._renderer._updatePath(this)}return this},setStyle:function(t){f(this,t);if(this._renderer){this._renderer._updateStyle(this);if(this.options.stroke&&t&&Object.prototype.hasOwnProperty.call(t,"weight")){this._updateBounds()}}return this},bringToFront:function(){if(this._renderer){this._renderer._bringToFront(this)}return this},bringToBack:function(){if(this._renderer){this._renderer._bringToBack(this)}return 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)}});var Xi=Ji.extend({options:{fill:true,radius:10},initialize:function(t,e){f(this,e);this._latlng=H(t);this._radius=this.options.radius},setLatLng:function(t){var e=this._latlng;this._latlng=H(t);this.redraw();return this.fire("move",{oldLatLng:e,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(t){this.options.radius=this._radius=t;return this.redraw()},getRadius:function(){return this._radius},setStyle:function(t){var e=t&&t.radius||this._radius;Ji.prototype.setStyle.call(this,t);this.setRadius(e);return this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng);this._updateBounds()},_updateBounds:function(){var t=this._radius,e=this._radiusY||t,i=this._clickTolerance(),n=[t+i,e+i];this._pxBounds=new O(this._point.subtract(n),this._point.add(n))},_update:function(){if(this._map){this._updatePath()}},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(t){return t.distanceTo(this._point)<=this._radius+this._clickTolerance()}});function $i(t,e){return new Xi(t,e)}var Qi=Xi.extend({initialize:function(t,e,n){if(typeof e==="number"){e=i({},n,{radius:e})}f(this,e);this._latlng=H(t);if(isNaN(this.options.radius)){throw new Error("Circle radius cannot be NaN")}this._mRadius=this.options.radius},setRadius:function(t){this._mRadius=t;return this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var t=[this._radius,this._radiusY||this._radius];return new D(this._map.layerPointToLatLng(this._point.subtract(t)),this._map.layerPointToLatLng(this._point.add(t)))},setStyle:Ji.prototype.setStyle,_project:function(){var t=this._latlng.lng,e=this._latlng.lat,i=this._map,n=i.options.crs;if(n.distance===W.distance){var o=Math.PI/180,r=this._mRadius/W.R/o,s=i.project([e+r,t]),a=i.project([e-r,t]),l=s.add(a).divideBy(2),h=i.unproject(l).lat,c=Math.acos((Math.cos(r*o)-Math.sin(e*o)*Math.sin(h*o))/(Math.cos(e*o)*Math.cos(h*o)))/o;if(isNaN(c)||c===0){c=r/Math.cos(Math.PI/180*e)}this._point=l.subtract(i.getPixelOrigin());this._radius=isNaN(c)?0:l.x-i.project([h,t-c]).x;this._radiusY=l.y-s.y}else{var u=n.unproject(n.project(this._latlng).subtract([this._mRadius,0]));this._point=i.latLngToLayerPoint(this._latlng);this._radius=this._point.x-i.latLngToLayerPoint(u).x}this._updateBounds()}});function tn(t,e,i){return new Qi(t,e,i)}var en=Ji.extend({options:{smoothFactor:1,noClip:false},initialize:function(t,e){f(this,e);this._setLatLngs(t)},getLatLngs:function(){return this._latlngs},setLatLngs:function(t){this._setLatLngs(t);return this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(t){var e=Infinity,i=null,n=zi,o,r;for(var s=0,a=this._parts.length;s<a;s++){var l=this._parts[s];for(var h=1,c=l.length;h<c;h++){o=l[h-1];r=l[h];var u=n(t,o,r,true);if(u<e){e=u;i=n(t,o,r)}}}if(i){i.distance=Math.sqrt(e)}return i},getCenter:function(){if(!this._map){throw new Error("Must add layer to map before using getCenter()")}var t,e,i,n,o,r,s,a=this._rings[0],l=a.length;if(!l){return null}for(t=0,e=0;t<l-1;t++){e+=a[t].distanceTo(a[t+1])/2}if(e===0){return this._map.layerPointToLatLng(a[0])}for(t=0,n=0;t<l-1;t++){o=a[t];r=a[t+1];i=o.distanceTo(r);n+=i;if(n>e){s=(n-e)/i;return this._map.layerPointToLatLng([r.x-s*(r.x-o.x),r.y-s*(r.y-o.y)])}}},getBounds:function(){return this._bounds},addLatLng:function(t,e){e=e||this._defaultShape();t=H(t);e.push(t);this._bounds.extend(t);return this.redraw()},_setLatLngs:function(t){this._bounds=new D;this._latlngs=this._convertLatLngs(t)},_defaultShape:function(){return Mi(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(t){var e=[],i=Mi(t);for(var n=0,o=t.length;n<o;n++){if(i){e[n]=H(t[n]);this._bounds.extend(e[n])}else{e[n]=this._convertLatLngs(t[n])}}return e},_project:function(){var t=new O;this._rings=[];this._projectLatlngs(this._latlngs,this._rings,t);if(this._bounds.isValid()&&t.isValid()){this._rawPxBounds=t;this._updateBounds()}},_updateBounds:function(){var t=this._clickTolerance(),e=new E(t,t);if(!this._rawPxBounds){return}this._pxBounds=new O([this._rawPxBounds.min.subtract(e),this._rawPxBounds.max.add(e)])},_projectLatlngs:function(t,e,i){var n=t[0]instanceof j,o=t.length,r,s;if(n){s=[];for(r=0;r<o;r++){s[r]=this._map.latLngToLayerPoint(t[r]);i.extend(s[r])}e.push(s)}else{for(r=0;r<o;r++){this._projectLatlngs(t[r],e,i)}}},_clipPoints:function(){var t=this._renderer._bounds;this._parts=[];if(!this._pxBounds||!this._pxBounds.intersects(t)){return}if(this.options.noClip){this._parts=this._rings;return}var e=this._parts,i,n,o,r,s,a,l;for(i=0,o=0,r=this._rings.length;i<r;i++){l=this._rings[i];for(n=0,s=l.length;n<s-1;n++){a=ki(l[n],l[n+1],t,n,true);if(!a){continue}e[o]=e[o]||[];e[o].push(a[0]);if(a[1]!==l[n+1]||n===s-2){e[o].push(a[1]);o++}}}},_simplifyPoints:function(){var t=this._parts,e=this.options.smoothFactor;for(var i=0,n=t.length;i<n;i++){t[i]=_i(t[i],e)}},_update:function(){if(!this._map){return}this._clipPoints();this._simplifyPoints();this._updatePath()},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(t,e){var i,n,o,r,s,a,l=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(t)){return false}for(i=0,r=this._parts.length;i<r;i++){a=this._parts[i];for(n=0,s=a.length,o=s-1;n<s;o=n++){if(!e&&n===0){continue}if(gi(t,a[o],a[n])<=l){return true}}}return false}});function nn(t,e){return new en(t,e)}en._flat=Ci;var on=en.extend({options:{fill:true},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()")}var t,e,i,n,o,r,s,a,l,h=this._rings[0],c=h.length;if(!c){return null}r=s=a=0;for(t=0,e=c-1;t<c;e=t++){i=h[t];n=h[e];o=i.y*n.x-n.y*i.x;s+=(i.x+n.x)*o;a+=(i.y+n.y)*o;r+=o*3}if(r===0){l=h[0]}else{l=[s/r,a/r]}return this._map.layerPointToLatLng(l)},_convertLatLngs:function(t){var e=en.prototype._convertLatLngs.call(this,t),i=e.length;if(i>=2&&e[0]instanceof j&&e[0].equals(e[i-1])){e.pop()}return e},_setLatLngs:function(t){en.prototype._setLatLngs.call(this,t);if(Mi(this._latlngs)){this._latlngs=[this._latlngs]}},_defaultShape:function(){return Mi(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var t=this._renderer._bounds,e=this.options.weight,i=new E(e,e);t=new O(t.min.subtract(i),t.max.add(i));this._parts=[];if(!this._pxBounds||!this._pxBounds.intersects(t)){return}if(this.options.noClip){this._parts=this._rings;return}for(var n=0,o=this._rings.length,r;n<o;n++){r=Ai(this._rings[n],t,true);if(r.length){this._parts.push(r)}}},_updatePath:function(){this._renderer._updatePoly(this,true)},_containsPoint:function(t){var e=false,i,n,o,r,s,a,l,h;if(!this._pxBounds||!this._pxBounds.contains(t)){return false}for(r=0,l=this._parts.length;r<l;r++){i=this._parts[r];for(s=0,h=i.length,a=h-1;s<h;a=s++){n=i[s];o=i[a];if(n.y>t.y!==o.y>t.y&&t.x<(o.x-n.x)*(t.y-n.y)/(o.y-n.y)+n.x){e=!e}}}return e||en.prototype._containsPoint.call(this,t,true)}});function rn(t,e){return new on(t,e)}var sn=Fi.extend({initialize:function(t,e){f(this,e);this._layers={};if(t){this.addData(t)}},addData:function(t){var e=g(t)?t:t.features,i,n,o;if(e){for(i=0,n=e.length;i<n;i++){o=e[i];if(o.geometries||o.geometry||o.features||o.coordinates){this.addData(o)}}return this}var r=this.options;if(r.filter&&!r.filter(t)){return this}var s=an(t,r);if(!s){return this}s.feature=pn(t);s.defaultOptions=s.options;this.resetStyle(s);if(r.onEachFeature){r.onEachFeature(t,s)}return this.addLayer(s)},resetStyle:function(t){if(t===undefined){return this.eachLayer(this.resetStyle,this)}t.options=i({},t.defaultOptions);this._setLayerStyle(t,this.options.style);return this},setStyle:function(t){return this.eachLayer((function(e){this._setLayerStyle(e,t)}),this)},_setLayerStyle:function(t,e){if(t.setStyle){if(typeof e==="function"){e=e(t.feature)}t.setStyle(e)}}});function an(t,e){var i=t.type==="Feature"?t.geometry:t,n=i?i.coordinates:null,o=[],r=e&&e.pointToLayer,s=e&&e.coordsToLatLng||hn,a,l,h,c;if(!n&&!i){return null}switch(i.type){case"Point":a=s(n);return ln(r,t,a,e);case"MultiPoint":for(h=0,c=n.length;h<c;h++){a=s(n[h]);o.push(ln(r,t,a,e))}return new Fi(o);case"LineString":case"MultiLineString":l=cn(n,i.type==="LineString"?0:1,s);return new en(l,e);case"Polygon":case"MultiPolygon":l=cn(n,i.type==="Polygon"?1:2,s);return new on(l,e);case"GeometryCollection":for(h=0,c=i.geometries.length;h<c;h++){var u=an({geometry:i.geometries[h],type:"Feature",properties:t.properties},e);if(u){o.push(u)}}return new Fi(o);default:throw new Error("Invalid GeoJSON object.")}}function ln(t,e,i,n){return t?t(e,i):new Ki(i,n&&n.markersInheritOptions&&n)}function hn(t){return new j(t[1],t[0],t[2])}function cn(t,e,i){var n=[];for(var o=0,r=t.length,s;o<r;o++){s=e?cn(t[o],e-1,i):(i||hn)(t[o]);n.push(s)}return n}function un(t,e){t=H(t);return t.alt!==undefined?[c(t.lng,e),c(t.lat,e),c(t.alt,e)]:[c(t.lng,e),c(t.lat,e)]}function dn(t,e,i,n){var o=[];for(var r=0,s=t.length;r<s;r++){o.push(e?dn(t[r],e-1,i,n):un(t[r],n))}if(!e&&i){o.push(o[0])}return o}function fn(t,e){return t.feature?i({},t.feature,{geometry:e}):pn(e)}function pn(t){if(t.type==="Feature"||t.type==="FeatureCollection"){return t}return{type:"Feature",properties:{},geometry:t}}var mn={toGeoJSON:function(t){return fn(this,{type:"Point",coordinates:un(this.getLatLng(),t)})}};Ki.include(mn);Qi.include(mn);Xi.include(mn);en.include({toGeoJSON:function(t){var e=!Mi(this._latlngs);var i=dn(this._latlngs,e?1:0,false,t);return fn(this,{type:(e?"Multi":"")+"LineString",coordinates:i})}});on.include({toGeoJSON:function(t){var e=!Mi(this._latlngs),i=e&&!Mi(this._latlngs[0]);var n=dn(this._latlngs,i?2:e?1:0,true,t);if(!e){n=[n]}return fn(this,{type:(i?"Multi":"")+"Polygon",coordinates:n})}});ji.include({toMultiPoint:function(t){var e=[];this.eachLayer((function(i){e.push(i.toGeoJSON(t).geometry.coordinates)}));return fn(this,{type:"MultiPoint",coordinates:e})},toGeoJSON:function(t){var e=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(e==="MultiPoint"){return this.toMultiPoint(t)}var i=e==="GeometryCollection",n=[];this.eachLayer((function(e){if(e.toGeoJSON){var o=e.toGeoJSON(t);if(i){n.push(o.geometry)}else{var r=pn(o);if(r.type==="FeatureCollection"){n.push.apply(n,r.features)}else{n.push(r)}}}}));if(i){return fn(this,{geometries:n,type:"GeometryCollection"})}return{type:"FeatureCollection",features:n}}});function _n(t,e){return new sn(t,e)}var gn=_n;var vn=Ri.extend({options:{opacity:1,alt:"",interactive:false,crossOrigin:false,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(t,e,i){this._url=t;this._bounds=R(e);f(this,i)},onAdd:function(){if(!this._image){this._initImage();if(this.options.opacity<1){this._updateOpacity()}}if(this.options.interactive){de(this._image,"leaflet-interactive");this.addInteractiveTarget(this._image)}this.getPane().appendChild(this._image);this._reset()},onRemove:function(){ae(this._image);if(this.options.interactive){this.removeInteractiveTarget(this._image)}},setOpacity:function(t){this.options.opacity=t;if(this._image){this._updateOpacity()}return this},setStyle:function(t){if(t.opacity){this.setOpacity(t.opacity)}return this},bringToFront:function(){if(this._map){he(this._image)}return this},bringToBack:function(){if(this._map){ce(this._image)}return this},setUrl:function(t){this._url=t;if(this._image){this._image.src=t}return this},setBounds:function(t){this._bounds=R(t);if(this._map){this._reset()}return this},getEvents:function(){var t={zoom:this._reset,viewreset:this._reset};if(this._zoomAnimated){t.zoomanim=this._animateZoom}return t},setZIndex:function(t){this.options.zIndex=t;this._updateZIndex();return this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var t=this._url.tagName==="IMG";var e=this._image=t?this._url:se("img");de(e,"leaflet-image-layer");if(this._zoomAnimated){de(e,"leaflet-zoom-animated")}if(this.options.className){de(e,this.options.className)}e.onselectstart=h;e.onmousemove=h;e.onload=o(this.fire,this,"load");e.onerror=o(this._overlayOnError,this,"error");if(this.options.crossOrigin||this.options.crossOrigin===""){e.crossOrigin=this.options.crossOrigin===true?"":this.options.crossOrigin}if(this.options.zIndex){this._updateZIndex()}if(t){this._url=e.src;return}e.src=this._url;e.alt=this.options.alt},_animateZoom:function(t){var e=this._map.getZoomScale(t.zoom),i=this._map._latLngBoundsToNewLayerBounds(this._bounds,t.zoom,t.center).min;ye(this._image,i,e)},_reset:function(){var t=this._image,e=new O(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),i=e.getSize();be(t,e.min);t.style.width=i.x+"px";t.style.height=i.y+"px"},_updateOpacity:function(){_e(this._image,this.options.opacity)},_updateZIndex:function(){if(this._image&&this.options.zIndex!==undefined&&this.options.zIndex!==null){this._image.style.zIndex=this.options.zIndex}},_overlayOnError:function(){this.fire("error");var t=this.options.errorOverlayUrl;if(t&&this._url!==t){this._url=t;this._image.src=t}},getCenter:function(){return this._bounds.getCenter()}});var yn=function(t,e,i){return new vn(t,e,i)};var bn=vn.extend({options:{autoplay:true,loop:true,keepAspectRatio:true,muted:false,playsInline:true},_initImage:function(){var t=this._url.tagName==="VIDEO";var e=this._image=t?this._url:se("video");de(e,"leaflet-image-layer");if(this._zoomAnimated){de(e,"leaflet-zoom-animated")}if(this.options.className){de(e,this.options.className)}e.onselectstart=h;e.onmousemove=h;e.onloadeddata=o(this.fire,this,"load");if(t){var i=e.getElementsByTagName("source");var n=[];for(var r=0;r<i.length;r++){n.push(i[r].src)}this._url=i.length>0?n:[e.src];return}if(!g(this._url)){this._url=[this._url]}if(!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(e.style,"objectFit")){e.style["objectFit"]="fill"}e.autoplay=!!this.options.autoplay;e.loop=!!this.options.loop;e.muted=!!this.options.muted;e.playsInline=!!this.options.playsInline;for(var s=0;s<this._url.length;s++){var a=se("source");a.src=this._url[s];e.appendChild(a)}}});function xn(t,e,i){return new bn(t,e,i)}var wn=vn.extend({_initImage:function(){var t=this._image=this._url;de(t,"leaflet-image-layer");if(this._zoomAnimated){de(t,"leaflet-zoom-animated")}if(this.options.className){de(t,this.options.className)}t.onselectstart=h;t.onmousemove=h}});function kn(t,e,i){return new wn(t,e,i)}var Tn=Ri.extend({options:{interactive:false,offset:[0,0],className:"",pane:undefined},initialize:function(t,e){f(this,t);this._source=e},openOn:function(t){t=arguments.length?t:this._source._map;if(!t.hasLayer(this)){t.addLayer(this)}return this},close:function(){if(this._map){this._map.removeLayer(this)}return this},toggle:function(t){if(this._map){this.close()}else{if(arguments.length){this._source=t}else{t=this._source}this._prepareOpen();this.openOn(t._map)}return this},onAdd:function(t){this._zoomAnimated=t._zoomAnimated;if(!this._container){this._initLayout()}if(t._fadeAnimated){_e(this._container,0)}clearTimeout(this._removeTimeout);this.getPane().appendChild(this._container);this.update();if(t._fadeAnimated){_e(this._container,1)}this.bringToFront();if(this.options.interactive){de(this._container,"leaflet-interactive");this.addInteractiveTarget(this._container)}},onRemove:function(t){if(t._fadeAnimated){_e(this._container,0);this._removeTimeout=setTimeout(o(ae,undefined,this._container),200)}else{ae(this._container)}if(this.options.interactive){fe(this._container,"leaflet-interactive");this.removeInteractiveTarget(this._container)}},getLatLng:function(){return this._latlng},setLatLng:function(t){this._latlng=H(t);if(this._map){this._updatePosition();this._adjustPan()}return this},getContent:function(){return this._content},setContent:function(t){this._content=t;this.update();return this},getElement:function(){return this._container},update:function(){if(!this._map){return}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};if(this._zoomAnimated){t.zoomanim=this._animateZoom}return t},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){if(this._map){he(this._container)}return this},bringToBack:function(){if(this._map){ce(this._container)}return this},_prepareOpen:function(t){var e=this._source;if(!e._map){return false}if(e instanceof Fi){e=null;var i=this._source._layers;for(var n in i){if(i[n]._map){e=i[n];break}}if(!e){return false}this._source=e}if(!t){if(e.getCenter){t=e.getCenter()}else if(e.getLatLng){t=e.getLatLng()}else if(e.getBounds){t=e.getBounds().getCenter()}else{throw new Error("Unable to get source layer LatLng.")}}this.setLatLng(t);if(this._map){this.update()}return true},_updateContent:function(){if(!this._content){return}var t=this._contentNode;var e=typeof this._content==="function"?this._content(this._source||this):this._content;if(typeof e==="string"){t.innerHTML=e}else{while(t.hasChildNodes()){t.removeChild(t.firstChild)}t.appendChild(e)}this.fire("contentupdate")},_updatePosition:function(){if(!this._map){return}var t=this._map.latLngToLayerPoint(this._latlng),e=B(this.options.offset),i=this._getAnchor();if(this._zoomAnimated){be(this._container,t.add(i))}else{e=e.add(t).add(i)}var n=this._containerBottom=-e.y,o=this._containerLeft=-Math.round(this._containerWidth/2)+e.x;this._container.style.bottom=n+"px";this._container.style.left=o+"px"},_getAnchor:function(){return[0,0]}});Qe.include({_initOverlay:function(t,e,i,n){var o=e;if(!(o instanceof t)){o=new t(n).setContent(e)}if(i){o.setLatLng(i)}return o}});Ri.include({_initOverlay:function(t,e,i,n){var o=i;if(o instanceof t){f(o,n);o._source=this}else{o=e&&!n?e:new t(n,this);o.setContent(i)}return o}});var Ln=Tn.extend({options:{pane:"popupPane",offset:[0,7],maxWidth:300,minWidth:50,maxHeight:null,autoPan:true,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:false,closeButton:true,autoClose:true,closeOnEscapeKey:true,className:""},openOn:function(t){t=arguments.length?t:this._source._map;if(!t.hasLayer(this)&&t._popup&&t._popup.options.autoClose){t.removeLayer(t._popup)}t._popup=this;return Tn.prototype.openOn.call(this,t)},onAdd:function(t){Tn.prototype.onAdd.call(this,t);t.fire("popupopen",{popup:this});if(this._source){this._source.fire("popupopen",{popup:this},true);if(!(this._source instanceof Ji)){this._source.on("preclick",Fe)}}},onRemove:function(t){Tn.prototype.onRemove.call(this,t);t.fire("popupclose",{popup:this});if(this._source){this._source.fire("popupclose",{popup:this},true);if(!(this._source instanceof Ji)){this._source.off("preclick",Fe)}}},getEvents:function(){var t=Tn.prototype.getEvents.call(this);if(this.options.closeOnClick!==undefined?this.options.closeOnClick:this._map.options.closePopupOnClick){t.preclick=this.close}if(this.options.keepInView){t.moveend=this._adjustPan}return t},_initLayout:function(){var t="leaflet-popup",e=this._container=se("div",t+" "+(this.options.className||"")+" leaflet-zoom-animated");var i=this._wrapper=se("div",t+"-content-wrapper",e);this._contentNode=se("div",t+"-content",i);Ve(e);We(this._contentNode);Be(e,"contextmenu",Fe);this._tipContainer=se("div",t+"-tip-container",e);this._tip=se("div",t+"-tip",this._tipContainer);if(this.options.closeButton){var n=this._closeButton=se("a",t+"-close-button",e);n.setAttribute("role","button");n.setAttribute("aria-label","Close popup");n.href="#close";n.innerHTML='<span aria-hidden="true">&#215;</span>';Be(n,"click",this.close,this)}},_updateLayout:function(){var t=this._contentNode,e=t.style;e.width="";e.whiteSpace="nowrap";var i=t.offsetWidth;i=Math.min(i,this.options.maxWidth);i=Math.max(i,this.options.minWidth);e.width=i+1+"px";e.whiteSpace="";e.height="";var n=t.offsetHeight,o=this.options.maxHeight,r="leaflet-popup-scrolled";if(o&&n>o){e.height=o+"px";de(t,r)}else{fe(t,r)}this._containerWidth=this._container.offsetWidth},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center),i=this._getAnchor();be(this._container,e.add(i))},_adjustPan:function(t){if(!this.options.autoPan){return}if(this._map._panAnim){this._map._panAnim.stop()}var e=this._map,i=parseInt(re(this._container,"marginBottom"),10)||0,n=this._container.offsetHeight+i,o=this._containerWidth,r=new E(this._containerLeft,-n-this._containerBottom);r._add(xe(this._container));var s=e.layerPointToContainerPoint(r),a=B(this.options.autoPanPadding),l=B(this.options.autoPanPaddingTopLeft||a),h=B(this.options.autoPanPaddingBottomRight||a),c=e.getSize(),u=0,d=0;if(s.x+o+h.x>c.x){u=s.x+o-c.x+h.x}if(s.x-u-l.x<0){u=s.x-l.x}if(s.y+n+h.y>c.y){d=s.y+n-c.y+h.y}if(s.y-d-l.y<0){d=s.y-l.y}if(u||d){e.fire("autopanstart").panBy([u,d],{animate:t&&t.type==="moveend"})}},_getAnchor:function(){return B(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}});var Pn=function(t,e){return new Ln(t,e)};Qe.mergeOptions({closePopupOnClick:true});Qe.include({openPopup:function(t,e,i){this._initOverlay(Ln,t,e,i).openOn(this);return this},closePopup:function(t){t=arguments.length?t:this._popup;if(t){t.close()}return this}});Ri.include({bindPopup:function(t,e){this._popup=this._initOverlay(Ln,this._popup,t,e);if(!this._popupHandlersAdded){this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup});this._popupHandlersAdded=true}return this},unbindPopup:function(){if(this._popup){this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup});this._popupHandlersAdded=false;this._popup=null}return this},openPopup:function(t){if(this._popup&&this._popup._prepareOpen(t)){this._popup.openOn(this._map)}return this},closePopup:function(){if(this._popup){this._popup.close()}return this},togglePopup:function(){if(this._popup){this._popup.toggle(this)}return this},isPopupOpen:function(){return this._popup?this._popup.isOpen():false},setPopupContent:function(t){if(this._popup){this._popup.setContent(t)}return this},getPopup:function(){return this._popup},_openPopup:function(t){if(!this._popup||!this._map){return}qe(t);var e=t.layer||t.target;if(this._popup._source===e&&!(e instanceof Ji)){if(this._map.hasLayer(this._popup)){this.closePopup()}else{this.openPopup(t.latlng)}return}this._popup._source=e;this.openPopup(t.latlng)},_movePopup:function(t){this._popup.setLatLng(t.latlng)},_onKeyPress:function(t){if(t.originalEvent.keyCode===13){this._openPopup(t)}}});var zn=Tn.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:false,sticky:false,opacity:.9},onAdd:function(t){Tn.prototype.onAdd.call(this,t);this.setOpacity(this.options.opacity);t.fire("tooltipopen",{tooltip:this});if(this._source){this.addEventParent(this._source);this._source.fire("tooltipopen",{tooltip:this},true)}},onRemove:function(t){Tn.prototype.onRemove.call(this,t);t.fire("tooltipclose",{tooltip:this});if(this._source){this.removeEventParent(this._source);this._source.fire("tooltipclose",{tooltip:this},true)}},getEvents:function(){var t=Tn.prototype.getEvents.call(this);if(!this.options.permanent){t.preclick=this.close}return t},_initLayout:function(){var t="leaflet-tooltip",e=t+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=se("div",e)},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(t){var e,i,n=this._map,o=this._container,r=n.latLngToContainerPoint(n.getCenter()),s=n.layerPointToContainerPoint(t),a=this.options.direction,l=o.offsetWidth,h=o.offsetHeight,c=B(this.options.offset),u=this._getAnchor();if(a==="top"){e=l/2;i=h}else if(a==="bottom"){e=l/2;i=0}else if(a==="center"){e=l/2;i=h/2}else if(a==="right"){e=0;i=h/2}else if(a==="left"){e=l;i=h/2}else if(s.x<r.x){a="right";e=0;i=h/2}else{a="left";e=l+(c.x+u.x)*2;i=h/2}t=t.subtract(B(e,i,true)).add(c).add(u);fe(o,"leaflet-tooltip-right");fe(o,"leaflet-tooltip-left");fe(o,"leaflet-tooltip-top");fe(o,"leaflet-tooltip-bottom");de(o,"leaflet-tooltip-"+a);be(o,t)},_updatePosition:function(){var t=this._map.latLngToLayerPoint(this._latlng);this._setPosition(t)},setOpacity:function(t){this.options.opacity=t;if(this._container){_e(this._container,t)}},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center);this._setPosition(e)},_getAnchor:function(){return B(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}});var Mn=function(t,e){return new zn(t,e)};Qe.include({openTooltip:function(t,e,i){this._initOverlay(zn,t,e,i).openOn(this);return this},closeTooltip:function(t){t.close();return this}});Ri.include({bindTooltip:function(t,e){if(this._tooltip&&this.isTooltipOpen()){this.unbindTooltip()}this._tooltip=this._initOverlay(zn,this._tooltip,t,e);this._initTooltipInteractions();if(this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)){this.openTooltip()}return this},unbindTooltip:function(){if(this._tooltip){this._initTooltipInteractions(true);this.closeTooltip();this._tooltip=null}return this},_initTooltipInteractions:function(t){if(!t&&this._tooltipHandlersAdded){return}var e=t?"off":"on",i={remove:this.closeTooltip,move:this._moveTooltip};if(!this._tooltip.options.permanent){i.mouseover=this._openTooltip;i.mouseout=this.closeTooltip;i.click=this._openTooltip}else{i.add=this._openTooltip}if(this._tooltip.options.sticky){i.mousemove=this._moveTooltip}this[e](i);this._tooltipHandlersAdded=!t},openTooltip:function(t){if(this._tooltip&&this._tooltip._prepareOpen(t)){this._tooltip.openOn(this._map)}return this},closeTooltip:function(){if(this._tooltip){return this._tooltip.close()}},toggleTooltip:function(){if(this._tooltip){this._tooltip.toggle(this)}return this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(t){if(this._tooltip){this._tooltip.setContent(t)}return this},getTooltip:function(){return this._tooltip},_openTooltip:function(t){if(!this._tooltip||!this._map||this._map.dragging&&this._map.dragging.moving()){return}this._tooltip._source=t.layer||t.target;this.openTooltip(this._tooltip.options.sticky?t.latlng:undefined)},_moveTooltip:function(t){var e=t.latlng,i,n;if(this._tooltip.options.sticky&&t.originalEvent){i=this._map.mouseEventToContainerPoint(t.originalEvent);n=this._map.containerPointToLayerPoint(i);e=this._map.layerPointToLatLng(n)}this._tooltip.setLatLng(e)}});var Cn=Vi.extend({options:{iconSize:[12,12],html:false,bgPos:null,className:"leaflet-div-icon"},createIcon:function(t){var e=t&&t.tagName==="DIV"?t:document.createElement("div"),i=this.options;if(i.html instanceof Element){le(e);e.appendChild(i.html)}else{e.innerHTML=i.html!==false?i.html:""}if(i.bgPos){var n=B(i.bgPos);e.style.backgroundPosition=-n.x+"px "+-n.y+"px"}this._setIconStyles(e,"icon");return e},createShadow:function(){return null}});function Sn(t){return new Cn(t)}Vi.Default=qi;var An=Ri.extend({options:{tileSize:256,opacity:1,updateWhenIdle:Zt.mobile,updateWhenZooming:true,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:undefined,maxNativeZoom:undefined,minNativeZoom:undefined,noWrap:false,pane:"tilePane",className:"",keepBuffer:2},initialize:function(t){f(this,t)},onAdd:function(){this._initContainer();this._levels={};this._tiles={};this._resetView()},beforeAdd:function(t){t._addZoomLimit(this)},onRemove:function(t){this._removeAllTiles();ae(this._container);t._removeZoomLimit(this);this._container=null;this._tileZoom=undefined},bringToFront:function(){if(this._map){he(this._container);this._setAutoZIndex(Math.max)}return this},bringToBack:function(){if(this._map){ce(this._container);this._setAutoZIndex(Math.min)}return this},getContainer:function(){return this._container},setOpacity:function(t){this.options.opacity=t;this._updateOpacity();return this},setZIndex:function(t){this.options.zIndex=t;this._updateZIndex();return this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var t=this._clampZoom(this._map.getZoom());if(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};if(!this.options.updateWhenIdle){if(!this._onMove){this._onMove=a(this._onMoveEnd,this.options.updateInterval,this)}t.move=this._onMove}if(this._zoomAnimated){t.zoomanim=this._animateZoom}return t},createTile:function(){return document.createElement("div")},getTileSize:function(){var t=this.options.tileSize;return t instanceof E?t:new E(t,t)},_updateZIndex:function(){if(this._container&&this.options.zIndex!==undefined&&this.options.zIndex!==null){this._container.style.zIndex=this.options.zIndex}},_setAutoZIndex:function(t){var e=this.getPane().children,i=-t(-Infinity,Infinity);for(var n=0,o=e.length,r;n<o;n++){r=e[n].style.zIndex;if(e[n]!==this._container&&r){i=t(i,+r)}}if(isFinite(i)){this.options.zIndex=i+t(-1,1);this._updateZIndex()}},_updateOpacity:function(){if(!this._map){return}if(Zt.ielt9){return}_e(this._container,this.options.opacity);var t=+new Date,e=false,i=false;for(var n in this._tiles){var o=this._tiles[n];if(!o.current||!o.loaded){continue}var r=Math.min(1,(t-o.loaded)/200);_e(o.el,r);if(r<1){e=true}else{if(o.active){i=true}else{this._onOpaqueTile(o)}o.active=true}}if(i&&!this._noPrune){this._pruneTiles()}if(e){z(this._fadeFrame);this._fadeFrame=P(this._updateOpacity,this)}},_onOpaqueTile:h,_initContainer:function(){if(this._container){return}this._container=se("div","leaflet-layer "+(this.options.className||""));this._updateZIndex();if(this.options.opacity<1){this._updateOpacity()}this.getPane().appendChild(this._container)},_updateLevels:function(){var t=this._tileZoom,e=this.options.maxZoom;if(t===undefined){return undefined}for(var i in this._levels){i=Number(i);if(this._levels[i].el.children.length||i===t){this._levels[i].el.style.zIndex=e-Math.abs(t-i);this._onUpdateLevel(i)}else{ae(this._levels[i].el);this._removeTilesAtZoom(i);this._onRemoveLevel(i);delete this._levels[i]}}var n=this._levels[t],o=this._map;if(!n){n=this._levels[t]={};n.el=se("div","leaflet-tile-container leaflet-zoom-animated",this._container);n.el.style.zIndex=e;n.origin=o.project(o.unproject(o.getPixelOrigin()),t).round();n.zoom=t;this._setZoomTransform(n,o.getCenter(),o.getZoom());this._onCreateLevel(n)}this._level=n;return n},_onUpdateLevel:h,_onRemoveLevel:h,_onCreateLevel:h,_pruneTiles:function(){if(!this._map){return}var t,e;var i=this._map.getZoom();if(i>this.options.maxZoom||i<this.options.minZoom){this._removeAllTiles();return}for(t in this._tiles){e=this._tiles[t];e.retain=e.current}for(t in this._tiles){e=this._tiles[t];if(e.current&&!e.active){var n=e.coords;if(!this._retainParent(n.x,n.y,n.z,n.z-5)){this._retainChildren(n.x,n.y,n.z,n.z+2)}}}for(t in this._tiles){if(!this._tiles[t].retain){this._removeTile(t)}}},_removeTilesAtZoom:function(t){for(var e in this._tiles){if(this._tiles[e].coords.z!==t){continue}this._removeTile(e)}},_removeAllTiles:function(){for(var t in this._tiles){this._removeTile(t)}},_invalidateAll:function(){for(var t in this._levels){ae(this._levels[t].el);this._onRemoveLevel(Number(t));delete this._levels[t]}this._removeAllTiles();this._tileZoom=undefined},_retainParent:function(t,e,i,n){var o=Math.floor(t/2),r=Math.floor(e/2),s=i-1,a=new E(+o,+r);a.z=+s;var l=this._tileCoordsToKey(a),h=this._tiles[l];if(h&&h.active){h.retain=true;return true}else if(h&&h.loaded){h.retain=true}if(s>n){return this._retainParent(o,r,s,n)}return false},_retainChildren:function(t,e,i,n){for(var o=2*t;o<2*t+2;o++){for(var r=2*e;r<2*e+2;r++){var s=new E(o,r);s.z=i+1;var a=this._tileCoordsToKey(s),l=this._tiles[a];if(l&&l.active){l.retain=true;continue}else if(l&&l.loaded){l.retain=true}if(i+1<n){this._retainChildren(o,r,i+1,n)}}}},_resetView:function(t){var e=t&&(t.pinch||t.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),e,e)},_animateZoom:function(t){this._setView(t.center,t.zoom,true,t.noUpdate)},_clampZoom:function(t){var e=this.options;if(undefined!==e.minNativeZoom&&t<e.minNativeZoom){return e.minNativeZoom}if(undefined!==e.maxNativeZoom&&e.maxNativeZoom<t){return e.maxNativeZoom}return t},_setView:function(t,e,i,n){var o=Math.round(e);if(this.options.maxZoom!==undefined&&o>this.options.maxZoom||this.options.minZoom!==undefined&&o<this.options.minZoom){o=undefined}else{o=this._clampZoom(o)}var r=this.options.updateWhenZooming&&o!==this._tileZoom;if(!n||r){this._tileZoom=o;if(this._abortLoading){this._abortLoading()}this._updateLevels();this._resetGrid();if(o!==undefined){this._update(t)}if(!i){this._pruneTiles()}this._noPrune=!!i}this._setZoomTransforms(t,e)},_setZoomTransforms:function(t,e){for(var i in this._levels){this._setZoomTransform(this._levels[i],t,e)}},_setZoomTransform:function(t,e,i){var n=this._map.getZoomScale(i,t.zoom),o=t.origin.multiplyBy(n).subtract(this._map._getNewPixelOrigin(e,i)).round();if(Zt.any3d){ye(t.el,o,n)}else{be(t.el,o)}},_resetGrid:function(){var t=this._map,e=t.options.crs,i=this._tileSize=this.getTileSize(),n=this._tileZoom;var o=this._map.getPixelWorldBounds(this._tileZoom);if(o){this._globalTileRange=this._pxBoundsToTileRange(o)}this._wrapX=e.wrapLng&&!this.options.noWrap&&[Math.floor(t.project([0,e.wrapLng[0]],n).x/i.x),Math.ceil(t.project([0,e.wrapLng[1]],n).x/i.y)];this._wrapY=e.wrapLat&&!this.options.noWrap&&[Math.floor(t.project([e.wrapLat[0],0],n).y/i.x),Math.ceil(t.project([e.wrapLat[1],0],n).y/i.y)]},_onMoveEnd:function(){if(!this._map||this._map._animatingZoom){return}this._update()},_getTiledPixelBounds:function(t){var e=this._map,i=e._animatingZoom?Math.max(e._animateToZoom,e.getZoom()):e.getZoom(),n=e.getZoomScale(i,this._tileZoom),o=e.project(t,this._tileZoom).floor(),r=e.getSize().divideBy(n*2);return new O(o.subtract(r),o.add(r))},_update:function(t){var e=this._map;if(!e){return}var i=this._clampZoom(e.getZoom());if(t===undefined){t=e.getCenter()}if(this._tileZoom===undefined){return}var n=this._getTiledPixelBounds(t),o=this._pxBoundsToTileRange(n),r=o.getCenter(),s=[],a=this.options.keepBuffer,l=new O(o.getBottomLeft().subtract([a,-a]),o.getTopRight().add([a,-a]));if(!(isFinite(o.min.x)&&isFinite(o.min.y)&&isFinite(o.max.x)&&isFinite(o.max.y))){throw new Error("Attempted to load an infinite number of tiles")}for(var h in this._tiles){var c=this._tiles[h].coords;if(c.z!==this._tileZoom||!l.contains(new E(c.x,c.y))){this._tiles[h].current=false}}if(Math.abs(i-this._tileZoom)>1){this._setView(t,i);return}for(var u=o.min.y;u<=o.max.y;u++){for(var d=o.min.x;d<=o.max.x;d++){var f=new E(d,u);f.z=this._tileZoom;if(!this._isValidTile(f)){continue}var p=this._tiles[this._tileCoordsToKey(f)];if(p){p.current=true}else{s.push(f)}}}s.sort((function(t,e){return t.distanceTo(r)-e.distanceTo(r)}));if(s.length!==0){if(!this._loading){this._loading=true;this.fire("loading")}var m=document.createDocumentFragment();for(d=0;d<s.length;d++){this._addTile(s[d],m)}this._level.el.appendChild(m)}},_isValidTile:function(t){var e=this._map.options.crs;if(!e.infinite){var i=this._globalTileRange;if(!e.wrapLng&&(t.x<i.min.x||t.x>i.max.x)||!e.wrapLat&&(t.y<i.min.y||t.y>i.max.y)){return false}}if(!this.options.bounds){return true}var n=this._tileCoordsToBounds(t);return R(this.options.bounds).overlaps(n)},_keyToBounds:function(t){return this._tileCoordsToBounds(this._keyToTileCoords(t))},_tileCoordsToNwSe:function(t){var e=this._map,i=this.getTileSize(),n=t.scaleBy(i),o=n.add(i),r=e.unproject(n,t.z),s=e.unproject(o,t.z);return[r,s]},_tileCoordsToBounds:function(t){var e=this._tileCoordsToNwSe(t),i=new D(e[0],e[1]);if(!this.options.noWrap){i=this._map.wrapLatLngBounds(i)}return i},_tileCoordsToKey:function(t){return t.x+":"+t.y+":"+t.z},_keyToTileCoords:function(t){var e=t.split(":"),i=new E(+e[0],+e[1]);i.z=+e[2];return i},_removeTile:function(t){var e=this._tiles[t];if(!e){return}ae(e.el);delete this._tiles[t];this.fire("tileunload",{tile:e.el,coords:this._keyToTileCoords(t)})},_initTile:function(t){de(t,"leaflet-tile");var e=this.getTileSize();t.style.width=e.x+"px";t.style.height=e.y+"px";t.onselectstart=h;t.onmousemove=h;if(Zt.ielt9&&this.options.opacity<1){_e(t,this.options.opacity)}},_addTile:function(t,e){var i=this._getTilePos(t),n=this._tileCoordsToKey(t);var r=this.createTile(this._wrapCoords(t),o(this._tileReady,this,t));this._initTile(r);if(this.createTile.length<2){P(o(this._tileReady,this,t,null,r))}be(r,i);this._tiles[n]={el:r,coords:t,current:true};e.appendChild(r);this.fire("tileloadstart",{tile:r,coords:t})},_tileReady:function(t,e,i){if(e){this.fire("tileerror",{error:e,tile:i,coords:t})}var n=this._tileCoordsToKey(t);i=this._tiles[n];if(!i){return}i.loaded=+new Date;if(this._map._fadeAnimated){_e(i.el,0);z(this._fadeFrame);this._fadeFrame=P(this._updateOpacity,this)}else{i.active=true;this._pruneTiles()}if(!e){de(i.el,"leaflet-tile-loaded");this.fire("tileload",{tile:i.el,coords:t})}if(this._noTilesToLoad()){this._loading=false;this.fire("load");if(Zt.ielt9||!this._map._fadeAnimated){P(this._pruneTiles,this)}else{setTimeout(o(this._pruneTiles,this),250)}}},_getTilePos:function(t){return t.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(t){var e=new E(this._wrapX?l(t.x,this._wrapX):t.x,this._wrapY?l(t.y,this._wrapY):t.y);e.z=t.z;return e},_pxBoundsToTileRange:function(t){var e=this.getTileSize();return new O(t.min.unscaleBy(e).floor(),t.max.unscaleBy(e).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var t in this._tiles){if(!this._tiles[t].loaded){return false}}return true}});function In(t){return new An(t)}var En=An.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:false,zoomReverse:false,detectRetina:false,crossOrigin:false,referrerPolicy:false},initialize:function(t,e){this._url=t;e=f(this,e);if(e.detectRetina&&Zt.retina&&e.maxZoom>0){e.tileSize=Math.floor(e.tileSize/2);if(!e.zoomReverse){e.zoomOffset++;e.maxZoom--}else{e.zoomOffset--;e.minZoom++}e.minZoom=Math.max(0,e.minZoom)}if(typeof e.subdomains==="string"){e.subdomains=e.subdomains.split("")}this.on("tileunload",this._onTileRemove)},setUrl:function(t,e){if(this._url===t&&e===undefined){e=true}this._url=t;if(!e){this.redraw()}return this},createTile:function(t,e){var i=document.createElement("img");Be(i,"load",o(this._tileOnLoad,this,e,i));Be(i,"error",o(this._tileOnError,this,e,i));if(this.options.crossOrigin||this.options.crossOrigin===""){i.crossOrigin=this.options.crossOrigin===true?"":this.options.crossOrigin}if(typeof this.options.referrerPolicy==="string"){i.referrerPolicy=this.options.referrerPolicy}i.alt="";i.setAttribute("role","presentation");i.src=this.getTileUrl(t);return i},getTileUrl:function(t){var e={r:Zt.retina?"@2x":"",s:this._getSubdomain(t),x:t.x,y:t.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var n=this._globalTileRange.max.y-t.y;if(this.options.tms){e["y"]=n}e["-y"]=n}return _(this._url,i(e,this.options))},_tileOnLoad:function(t,e){if(Zt.ielt9){setTimeout(o(t,this,null,e),0)}else{t(null,e)}},_tileOnError:function(t,e,i){var n=this.options.errorTileUrl;if(n&&e.getAttribute("src")!==n){e.src=n}t(i,e)},_onTileRemove:function(t){t.tile.onload=null},_getZoomForUrl:function(){var t=this._tileZoom,e=this.options.maxZoom,i=this.options.zoomReverse,n=this.options.zoomOffset;if(i){t=e-t}return t+n},_getSubdomain:function(t){var e=Math.abs(t.x+t.y)%this.options.subdomains.length;return this.options.subdomains[e]},_abortLoading:function(){var t,e;for(t in this._tiles){if(this._tiles[t].coords.z!==this._tileZoom){e=this._tiles[t].el;e.onload=h;e.onerror=h;if(!e.complete){e.src=y;var i=this._tiles[t].coords;ae(e);delete this._tiles[t];this.fire("tileabort",{tile:e,coords:i})}}}},_removeTile:function(t){var e=this._tiles[t];if(!e){return}e.el.setAttribute("src",y);return An.prototype._removeTile.call(this,t)},_tileReady:function(t,e,i){if(!this._map||i&&i.getAttribute("src")===y){return}return An.prototype._tileReady.call(this,t,e,i)}});function Zn(t,e){return new En(t,e)}var Bn=En.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:false,version:"1.1.1"},options:{crs:null,uppercase:false},initialize:function(t,e){this._url=t;var n=i({},this.defaultWmsParams);for(var o in e){if(!(o in this.options)){n[o]=e[o]}}e=f(this,e);var r=e.detectRetina&&Zt.retina?2:1;var s=this.getTileSize();n.width=s.x*r;n.height=s.y*r;this.wmsParams=n},onAdd:function(t){this._crs=this.options.crs||t.options.crs;this._wmsVersion=parseFloat(this.wmsParams.version);var e=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[e]=this._crs.code;En.prototype.onAdd.call(this,t)},getTileUrl:function(t){var e=this._tileCoordsToNwSe(t),i=this._crs,n=N(i.project(e[0]),i.project(e[1])),o=n.min,r=n.max,s=(this._wmsVersion>=1.3&&this._crs===Ni?[o.y,o.x,r.y,r.x]:[o.x,o.y,r.x,r.y]).join(","),a=En.prototype.getTileUrl.call(this,t);return a+p(this.wmsParams,a,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+s},setParams:function(t,e){i(this.wmsParams,t);if(!e){this.redraw()}return this}});function On(t,e){return new Bn(t,e)}En.WMS=Bn;Zn.wms=On;var Nn=Ri.extend({options:{padding:.1},initialize:function(t){f(this,t);s(this);this._layers=this._layers||{}},onAdd:function(){if(!this._container){this._initContainer();if(this._zoomAnimated){de(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};if(this._zoomAnimated){t.zoomanim=this._onAnimZoom}return t},_onAnimZoom:function(t){this._updateTransform(t.center,t.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(t,e){var i=this._map.getZoomScale(e,this._zoom),n=this._map.getSize().multiplyBy(.5+this.options.padding),o=this._map.project(this._center,e),r=n.multiplyBy(-i).add(o).subtract(this._map._getNewPixelOrigin(t,e));if(Zt.any3d){ye(this._container,r,i)}else{be(this._container,r)}},_reset:function(){this._update();this._updateTransform(this._center,this._zoom);for(var t in this._layers){this._layers[t]._reset()}},_onZoomEnd:function(){for(var t in this._layers){this._layers[t]._project()}},_updatePaths:function(){for(var t in this._layers){this._layers[t]._update()}},_update:function(){var t=this.options.padding,e=this._map.getSize(),i=this._map.containerPointToLayerPoint(e.multiplyBy(-t)).round();this._bounds=new O(i,i.add(e.multiplyBy(1+t*2)).round());this._center=this._map.getCenter();this._zoom=this._map.getZoom()}});var Dn=Nn.extend({options:{tolerance:0},getEvents:function(){var t=Nn.prototype.getEvents.call(this);t.viewprereset=this._onViewPreReset;return t},_onViewPreReset:function(){this._postponeUpdatePaths=true},onAdd:function(){Nn.prototype.onAdd.call(this);this._draw()},_initContainer:function(){var t=this._container=document.createElement("canvas");Be(t,"mousemove",this._onMouseMove,this);Be(t,"click dblclick mousedown mouseup contextmenu",this._onClick,this);Be(t,"mouseout",this._handleMouseOut,this);t["_leaflet_disable_events"]=true;this._ctx=t.getContext("2d")},_destroyContainer:function(){z(this._redrawRequest);delete this._ctx;ae(this._container);Ne(this._container);delete this._container},_updatePaths:function(){if(this._postponeUpdatePaths){return}var t;this._redrawBounds=null;for(var e in this._layers){t=this._layers[e];t._update()}this._redraw()},_update:function(){if(this._map._animatingZoom&&this._bounds){return}Nn.prototype._update.call(this);var t=this._bounds,e=this._container,i=t.getSize(),n=Zt.retina?2:1;be(e,t.min);e.width=n*i.x;e.height=n*i.y;e.style.width=i.x+"px";e.style.height=i.y+"px";if(Zt.retina){this._ctx.scale(2,2)}this._ctx.translate(-t.min.x,-t.min.y);this.fire("update")},_reset:function(){Nn.prototype._reset.call(this);if(this._postponeUpdatePaths){this._postponeUpdatePaths=false;this._updatePaths()}},_initPath:function(t){this._updateDashArray(t);this._layers[s(t)]=t;var e=t._order={layer:t,prev:this._drawLast,next:null};if(this._drawLast){this._drawLast.next=e}this._drawLast=e;this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(t){this._requestRedraw(t)},_removePath:function(t){var e=t._order;var i=e.next;var n=e.prev;if(i){i.prev=n}else{this._drawLast=n}if(n){n.next=i}else{this._drawFirst=i}delete t._order;delete this._layers[s(t)];this._requestRedraw(t)},_updatePath:function(t){this._extendRedrawBounds(t);t._project();t._update();this._requestRedraw(t)},_updateStyle:function(t){this._updateDashArray(t);this._requestRedraw(t)},_updateDashArray:function(t){if(typeof t.options.dashArray==="string"){var e=t.options.dashArray.split(/[, ]+/),i=[],n,o;for(o=0;o<e.length;o++){n=Number(e[o]);if(isNaN(n)){return}i.push(n)}t.options._dashArray=i}else{t.options._dashArray=t.options.dashArray}},_requestRedraw:function(t){if(!this._map){return}this._extendRedrawBounds(t);this._redrawRequest=this._redrawRequest||P(this._redraw,this)},_extendRedrawBounds:function(t){if(t._pxBounds){var e=(t.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new O;this._redrawBounds.extend(t._pxBounds.min.subtract([e,e]));this._redrawBounds.extend(t._pxBounds.max.add([e,e]))}},_redraw:function(){this._redrawRequest=null;if(this._redrawBounds){this._redrawBounds.min._floor();this._redrawBounds.max._ceil()}this._clear();this._draw();this._redrawBounds=null},_clear:function(){var t=this._redrawBounds;if(t){var e=t.getSize();this._ctx.clearRect(t.min.x,t.min.y,e.x,e.y)}else{this._ctx.save();this._ctx.setTransform(1,0,0,1,0,0);this._ctx.clearRect(0,0,this._container.width,this._container.height);this._ctx.restore()}},_draw:function(){var t,e=this._redrawBounds;this._ctx.save();if(e){var i=e.getSize();this._ctx.beginPath();this._ctx.rect(e.min.x,e.min.y,i.x,i.y);this._ctx.clip()}this._drawing=true;for(var n=this._drawFirst;n;n=n.next){t=n.layer;if(!e||t._pxBounds&&t._pxBounds.intersects(e)){t._updatePath()}}this._drawing=false;this._ctx.restore()},_updatePoly:function(t,e){if(!this._drawing){return}var i,n,o,r,s=t._parts,a=s.length,l=this._ctx;if(!a){return}l.beginPath();for(i=0;i<a;i++){for(n=0,o=s[i].length;n<o;n++){r=s[i][n];l[n?"lineTo":"moveTo"](r.x,r.y)}if(e){l.closePath()}}this._fillStroke(l,t)},_updateCircle:function(t){if(!this._drawing||t._empty()){return}var e=t._point,i=this._ctx,n=Math.max(Math.round(t._radius),1),o=(Math.max(Math.round(t._radiusY),1)||n)/n;if(o!==1){i.save();i.scale(1,o)}i.beginPath();i.arc(e.x,e.y/o,n,0,Math.PI*2,false);if(o!==1){i.restore()}this._fillStroke(i,t)},_fillStroke:function(t,e){var i=e.options;if(i.fill){t.globalAlpha=i.fillOpacity;t.fillStyle=i.fillColor||i.color;t.fill(i.fillRule||"evenodd")}if(i.stroke&&i.weight!==0){if(t.setLineDash){t.setLineDash(e.options&&e.options._dashArray||[])}t.globalAlpha=i.opacity;t.lineWidth=i.weight;t.strokeStyle=i.color;t.lineCap=i.lineCap;t.lineJoin=i.lineJoin;t.stroke()}},_onClick:function(t){var e=this._map.mouseEventToLayerPoint(t),i,n;for(var o=this._drawFirst;o;o=o.next){i=o.layer;if(i.options.interactive&&i._containsPoint(e)){if(!(t.type==="click"||t.type==="preclick")||!this._map._draggableMoved(i)){n=i}}}this._fireEvent(n?[n]:false,t)},_onMouseMove:function(t){if(!this._map||this._map.dragging.moving()||this._map._animatingZoom){return}var e=this._map.mouseEventToLayerPoint(t);this._handleMouseHover(t,e)},_handleMouseOut:function(t){var e=this._hoveredLayer;if(e){fe(this._container,"leaflet-interactive");this._fireEvent([e],t,"mouseout");this._hoveredLayer=null;this._mouseHoverThrottled=false}},_handleMouseHover:function(t,e){if(this._mouseHoverThrottled){return}var i,n;for(var r=this._drawFirst;r;r=r.next){i=r.layer;if(i.options.interactive&&i._containsPoint(e)){n=i}}if(n!==this._hoveredLayer){this._handleMouseOut(t);if(n){de(this._container,"leaflet-interactive");this._fireEvent([n],t,"mouseover");this._hoveredLayer=n}}this._fireEvent(this._hoveredLayer?[this._hoveredLayer]:false,t);this._mouseHoverThrottled=true;setTimeout(o((function(){this._mouseHoverThrottled=false}),this),32)},_fireEvent:function(t,e,i){this._map._fireDOMEvent(e,i||e.type,t)},_bringToFront:function(t){var e=t._order;if(!e){return}var i=e.next;var n=e.prev;if(i){i.prev=n}else{return}if(n){n.next=i}else if(i){this._drawFirst=i}e.prev=this._drawLast;this._drawLast.next=e;e.next=null;this._drawLast=e;this._requestRedraw(t)},_bringToBack:function(t){var e=t._order;if(!e){return}var i=e.next;var n=e.prev;if(n){n.next=i}else{return}if(i){i.prev=n}else if(n){this._drawLast=n}e.prev=null;e.next=this._drawFirst;this._drawFirst.prev=e;this._drawFirst=e;this._requestRedraw(t)}});function Rn(t){return Zt.canvas?new Dn(t):null}var jn=function(){try{document.namespaces.add("lvml","urn:schemas-microsoft-com:vml");return 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">')}}();var Hn={_initContainer:function(){this._container=se("div","leaflet-vml-container")},_update:function(){if(this._map._animatingZoom){return}Nn.prototype._update.call(this);this.fire("update")},_initPath:function(t){var e=t._container=jn("shape");de(e,"leaflet-vml-shape "+(this.options.className||""));e.coordsize="1 1";t._path=jn("path");e.appendChild(t._path);this._updateStyle(t);this._layers[s(t)]=t},_addPath:function(t){var e=t._container;this._container.appendChild(e);if(t.options.interactive){t.addInteractiveTarget(e)}},_removePath:function(t){var e=t._container;ae(e);t.removeInteractiveTarget(e);delete this._layers[s(t)]},_updateStyle:function(t){var e=t._stroke,i=t._fill,n=t.options,o=t._container;o.stroked=!!n.stroke;o.filled=!!n.fill;if(n.stroke){if(!e){e=t._stroke=jn("stroke")}o.appendChild(e);e.weight=n.weight+"px";e.color=n.color;e.opacity=n.opacity;if(n.dashArray){e.dashStyle=g(n.dashArray)?n.dashArray.join(" "):n.dashArray.replace(/( *, *)/g," ")}else{e.dashStyle=""}e.endcap=n.lineCap.replace("butt","flat");e.joinstyle=n.lineJoin}else if(e){o.removeChild(e);t._stroke=null}if(n.fill){if(!i){i=t._fill=jn("fill")}o.appendChild(i);i.color=n.fillColor||n.color;i.opacity=n.fillOpacity}else if(i){o.removeChild(i);t._fill=null}},_updateCircle:function(t){var e=t._point.round(),i=Math.round(t._radius),n=Math.round(t._radiusY||i);this._setPath(t,t._empty()?"M0 0":"AL "+e.x+","+e.y+" "+i+","+n+" 0,"+65535*360)},_setPath:function(t,e){t._path.v=e},_bringToFront:function(t){he(t._container)},_bringToBack:function(t){ce(t._container)}};var Fn=Zt.vml?jn:J;var Wn=Nn.extend({_initContainer:function(){this._container=Fn("svg");this._container.setAttribute("pointer-events","none");this._rootGroup=Fn("g");this._container.appendChild(this._rootGroup)},_destroyContainer:function(){ae(this._container);Ne(this._container);delete this._container;delete this._rootGroup;delete this._svgSize},_update:function(){if(this._map._animatingZoom&&this._bounds){return}Nn.prototype._update.call(this);var t=this._bounds,e=t.getSize(),i=this._container;if(!this._svgSize||!this._svgSize.equals(e)){this._svgSize=e;i.setAttribute("width",e.x);i.setAttribute("height",e.y)}be(i,t.min);i.setAttribute("viewBox",[t.min.x,t.min.y,e.x,e.y].join(" "));this.fire("update")},_initPath:function(t){var e=t._path=Fn("path");if(t.options.className){de(e,t.options.className)}if(t.options.interactive){de(e,"leaflet-interactive")}this._updateStyle(t);this._layers[s(t)]=t},_addPath:function(t){if(!this._rootGroup){this._initContainer()}this._rootGroup.appendChild(t._path);t.addInteractiveTarget(t._path)},_removePath:function(t){ae(t._path);t.removeInteractiveTarget(t._path);delete this._layers[s(t)]},_updatePath:function(t){t._project();t._update()},_updateStyle:function(t){var e=t._path,i=t.options;if(!e){return}if(i.stroke){e.setAttribute("stroke",i.color);e.setAttribute("stroke-opacity",i.opacity);e.setAttribute("stroke-width",i.weight);e.setAttribute("stroke-linecap",i.lineCap);e.setAttribute("stroke-linejoin",i.lineJoin);if(i.dashArray){e.setAttribute("stroke-dasharray",i.dashArray)}else{e.removeAttribute("stroke-dasharray")}if(i.dashOffset){e.setAttribute("stroke-dashoffset",i.dashOffset)}else{e.removeAttribute("stroke-dashoffset")}}else{e.setAttribute("stroke","none")}if(i.fill){e.setAttribute("fill",i.fillColor||i.color);e.setAttribute("fill-opacity",i.fillOpacity);e.setAttribute("fill-rule",i.fillRule||"evenodd")}else{e.setAttribute("fill","none")}},_updatePoly:function(t,e){this._setPath(t,X(t._parts,e))},_updateCircle:function(t){var e=t._point,i=Math.max(Math.round(t._radius),1),n=Math.max(Math.round(t._radiusY),1)||i,o="a"+i+","+n+" 0 1,0 ";var r=t._empty()?"M0 0":"M"+(e.x-i)+","+e.y+o+i*2+",0 "+o+-i*2+",0 ";this._setPath(t,r)},_setPath:function(t,e){t._path.setAttribute("d",e)},_bringToFront:function(t){he(t._path)},_bringToBack:function(t){ce(t._path)}});if(Zt.vml){Wn.include(Hn)}function Vn(t){return Zt.svg||Zt.vml?new Wn(t):null}Qe.include({getRenderer:function(t){var e=t.options.renderer||this._getPaneRenderer(t.options.pane)||this.options.renderer||this._renderer;if(!e){e=this._renderer=this._createRenderer()}if(!this.hasLayer(e)){this.addLayer(e)}return e},_getPaneRenderer:function(t){if(t==="overlayPane"||t===undefined){return false}var e=this._paneRenderers[t];if(e===undefined){e=this._createRenderer({pane:t});this._paneRenderers[t]=e}return e},_createRenderer:function(t){return this.options.preferCanvas&&Rn(t)||Vn(t)}});var Un=on.extend({initialize:function(t,e){on.prototype.initialize.call(this,this._boundsToLatLngs(t),e)},setBounds:function(t){return this.setLatLngs(this._boundsToLatLngs(t))},_boundsToLatLngs:function(t){t=R(t);return[t.getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}});function qn(t,e){return new Un(t,e)}Wn.create=Fn;Wn.pointsToPath=X;sn.geometryToLayer=an;sn.coordsToLatLng=hn;sn.coordsToLatLngs=cn;sn.latLngToCoords=un;sn.latLngsToCoords=dn;sn.getFeature=fn;sn.asFeature=pn;Qe.mergeOptions({boxZoom:true});var Gn=di.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(){Be(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){Ne(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){ae(this._pane);delete this._pane},_resetState:function(){this._resetStateTimeout=0;this._moved=false},_clearDeferredResetState:function(){if(this._resetStateTimeout!==0){clearTimeout(this._resetStateTimeout);this._resetStateTimeout=0}},_onMouseDown:function(t){if(!t.shiftKey||t.which!==1&&t.button!==1){return false}this._clearDeferredResetState();this._resetState();we();Pe();this._startPoint=this._map.mouseEventToContainerPoint(t);Be(document,{contextmenu:qe,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(t){if(!this._moved){this._moved=true;this._box=se("div","leaflet-zoom-box",this._container);de(this._container,"leaflet-crosshair");this._map.fire("boxzoomstart")}this._point=this._map.mouseEventToContainerPoint(t);var e=new O(this._point,this._startPoint),i=e.getSize();be(this._box,e.min);this._box.style.width=i.x+"px";this._box.style.height=i.y+"px"},_finish:function(){if(this._moved){ae(this._box);fe(this._container,"leaflet-crosshair")}ke();ze();Ne(document,{contextmenu:qe,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(t){if(t.which!==1&&t.button!==1){return}this._finish();if(!this._moved){return}this._clearDeferredResetState();this._resetStateTimeout=setTimeout(o(this._resetState,this),0);var e=new D(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(e).fire("boxzoomend",{boxZoomBounds:e})},_onKeyDown:function(t){if(t.keyCode===27){this._finish();this._clearDeferredResetState();this._resetState()}}});Qe.addInitHook("addHandler","boxZoom",Gn);Qe.mergeOptions({doubleClickZoom:true});var Kn=di.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(t){var e=this._map,i=e.getZoom(),n=e.options.zoomDelta,o=t.originalEvent.shiftKey?i-n:i+n;if(e.options.doubleClickZoom==="center"){e.setZoom(o)}else{e.setZoomAround(t.containerPoint,o)}}});Qe.addInitHook("addHandler","doubleClickZoom",Kn);Qe.mergeOptions({dragging:true,inertia:true,inertiaDeceleration:3400,inertiaMaxSpeed:Infinity,easeLinearity:.2,worldCopyJump:false,maxBoundsViscosity:0});var Yn=di.extend({addHooks:function(){if(!this._draggable){var t=this._map;this._draggable=new mi(t._mapPane,t._container);this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this);this._draggable.on("predrag",this._onPreDragLimit,this);if(t.options.worldCopyJump){this._draggable.on("predrag",this._onPreDragWrap,this);t.on("zoomend",this._onZoomEnd,this);t.whenReady(this._onZoomEnd,this)}}de(this._map._container,"leaflet-grab leaflet-touch-drag");this._draggable.enable();this._positions=[];this._times=[]},removeHooks:function(){fe(this._map._container,"leaflet-grab");fe(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;t._stop();if(this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var e=R(this._map.options.maxBounds);this._offsetLimit=N(this._map.latLngToContainerPoint(e.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(e.getSouthEast()).multiplyBy(-1).add(this._map.getSize()));this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else{this._offsetLimit=null}t.fire("movestart").fire("dragstart");if(t.options.inertia){this._positions=[];this._times=[]}},_onDrag:function(t){if(this._map.options.inertia){var e=this._lastTime=+new Date,i=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(i);this._times.push(e);this._prunePositions(e)}this._map.fire("move",t).fire("drag",t)},_prunePositions:function(t){while(this._positions.length>1&&t-this._times[0]>50){this._positions.shift();this._times.shift()}},_onZoomEnd:function(){var t=this._map.getSize().divideBy(2),e=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=e.subtract(t).x;this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(t,e){return t-(t-e)*this._viscosity},_onPreDragLimit:function(){if(!this._viscosity||!this._offsetLimit){return}var t=this._draggable._newPos.subtract(this._draggable._startPos);var e=this._offsetLimit;if(t.x<e.min.x){t.x=this._viscousLimit(t.x,e.min.x)}if(t.y<e.min.y){t.y=this._viscousLimit(t.y,e.min.y)}if(t.x>e.max.x){t.x=this._viscousLimit(t.x,e.max.x)}if(t.y>e.max.y){t.y=this._viscousLimit(t.y,e.max.y)}this._draggable._newPos=this._draggable._startPos.add(t)},_onPreDragWrap:function(){var t=this._worldWidth,e=Math.round(t/2),i=this._initialWorldOffset,n=this._draggable._newPos.x,o=(n-e+i)%t+e-i,r=(n+e+i)%t-e-i,s=Math.abs(o+i)<Math.abs(r+i)?o:r;this._draggable._absPos=this._draggable._newPos.clone();this._draggable._newPos.x=s},_onDragEnd:function(t){var e=this._map,i=e.options,n=!i.inertia||t.noInertia||this._times.length<2;e.fire("dragend",t);if(n){e.fire("moveend")}else{this._prunePositions(+new Date);var o=this._lastPos.subtract(this._positions[0]),r=(this._lastTime-this._times[0])/1e3,s=i.easeLinearity,a=o.multiplyBy(s/r),l=a.distanceTo([0,0]),h=Math.min(i.inertiaMaxSpeed,l),c=a.multiplyBy(h/l),u=h/(i.inertiaDeceleration*s),d=c.multiplyBy(-u/2).round();if(!d.x&&!d.y){e.fire("moveend")}else{d=e._limitOffset(d,e.options.maxBounds);P((function(){e.panBy(d,{duration:u,easeLinearity:s,noMoveStart:true,animate:true})}))}}}});Qe.addInitHook("addHandler","dragging",Yn);Qe.mergeOptions({keyboard:true,keyboardPanDelta:80});var Jn=di.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;if(t.tabIndex<=0){t.tabIndex="0"}Be(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();Ne(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){return}var t=document.body,e=document.documentElement,i=t.scrollTop||e.scrollTop,n=t.scrollLeft||e.scrollLeft;this._map._container.focus();window.scrollTo(n,i)},_onFocus:function(){this._focused=true;this._map.fire("focus")},_onBlur:function(){this._focused=false;this._map.fire("blur")},_setPanDelta:function(t){var e=this._panKeys={},i=this.keyCodes,n,o;for(n=0,o=i.left.length;n<o;n++){e[i.left[n]]=[-1*t,0]}for(n=0,o=i.right.length;n<o;n++){e[i.right[n]]=[t,0]}for(n=0,o=i.down.length;n<o;n++){e[i.down[n]]=[0,t]}for(n=0,o=i.up.length;n<o;n++){e[i.up[n]]=[0,-1*t]}},_setZoomDelta:function(t){var e=this._zoomKeys={},i=this.keyCodes,n,o;for(n=0,o=i.zoomIn.length;n<o;n++){e[i.zoomIn[n]]=t}for(n=0,o=i.zoomOut.length;n<o;n++){e[i.zoomOut[n]]=-t}},_addHooks:function(){Be(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){Ne(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(t){if(t.altKey||t.ctrlKey||t.metaKey){return}var e=t.keyCode,i=this._map,n;if(e in this._panKeys){if(!i._panAnim||!i._panAnim._inProgress){n=this._panKeys[e];if(t.shiftKey){n=B(n).multiplyBy(3)}i.panBy(n);if(i.options.maxBounds){i.panInsideBounds(i.options.maxBounds)}}}else if(e in this._zoomKeys){i.setZoom(i.getZoom()+(t.shiftKey?3:1)*this._zoomKeys[e])}else if(e===27&&i._popup&&i._popup.options.closeOnEscapeKey){i.closePopup()}else{return}qe(t)}});Qe.addInitHook("addHandler","keyboard",Jn);Qe.mergeOptions({scrollWheelZoom:true,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var Xn=di.extend({addHooks:function(){Be(this._map._container,"wheel",this._onWheelScroll,this);this._delta=0},removeHooks:function(){Ne(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(t){var e=Ye(t);var i=this._map.options.wheelDebounceTime;this._delta+=e;this._lastMousePos=this._map.mouseEventToContainerPoint(t);if(!this._startTime){this._startTime=+new Date}var n=Math.max(i-(+new Date-this._startTime),0);clearTimeout(this._timer);this._timer=setTimeout(o(this._performZoom,this),n);qe(t)},_performZoom:function(){var t=this._map,e=t.getZoom(),i=this._map.options.zoomSnap||0;t._stop();var n=this._delta/(this._map.options.wheelPxPerZoomLevel*4),o=4*Math.log(2/(1+Math.exp(-Math.abs(n))))/Math.LN2,r=i?Math.ceil(o/i)*i:o,s=t._limitZoom(e+(this._delta>0?r:-r))-e;this._delta=0;this._startTime=null;if(!s){return}if(t.options.scrollWheelZoom==="center"){t.setZoom(e+s)}else{t.setZoomAround(this._lastMousePos,e+s)}}});Qe.addInitHook("addHandler","scrollWheelZoom",Xn);var $n=600;Qe.mergeOptions({tapHold:Zt.touchNative&&Zt.safari&&Zt.mobile,tapTolerance:15});var Qn=di.extend({addHooks:function(){Be(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){Ne(this._map._container,"touchstart",this._onDown,this)},_onDown:function(t){clearTimeout(this._holdTimeout);if(t.touches.length!==1){return}var e=t.touches[0];this._startPos=this._newPos=new E(e.clientX,e.clientY);this._holdTimeout=setTimeout(o((function(){this._cancel();if(!this._isTapValid()){return}Be(document,"touchend",Ue);Be(document,"touchend touchcancel",this._cancelClickPrevent);this._simulateEvent("contextmenu",e)}),this),$n);Be(document,"touchend touchcancel contextmenu",this._cancel,this);Be(document,"touchmove",this._onMove,this)},_cancelClickPrevent:function t(){Ne(document,"touchend",Ue);Ne(document,"touchend touchcancel",t)},_cancel:function(){clearTimeout(this._holdTimeout);Ne(document,"touchend touchcancel contextmenu",this._cancel,this);Ne(document,"touchmove",this._onMove,this)},_onMove:function(t){var e=t.touches[0];this._newPos=new E(e.clientX,e.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(t,e){var i=new MouseEvent(t,{bubbles:true,cancelable:true,view:window,screenX:e.screenX,screenY:e.screenY,clientX:e.clientX,clientY:e.clientY});i._simulated=true;e.target.dispatchEvent(i)}});Qe.addInitHook("addHandler","tapHold",Qn);Qe.mergeOptions({touchZoom:Zt.touch,bounceAtZoomLimits:true});var to=di.extend({addHooks:function(){de(this._map._container,"leaflet-touch-zoom");Be(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){fe(this._map._container,"leaflet-touch-zoom");Ne(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(t){var e=this._map;if(!t.touches||t.touches.length!==2||e._animatingZoom||this._zooming){return}var i=e.mouseEventToContainerPoint(t.touches[0]),n=e.mouseEventToContainerPoint(t.touches[1]);this._centerPoint=e.getSize()._divideBy(2);this._startLatLng=e.containerPointToLatLng(this._centerPoint);if(e.options.touchZoom!=="center"){this._pinchStartLatLng=e.containerPointToLatLng(i.add(n)._divideBy(2))}this._startDist=i.distanceTo(n);this._startZoom=e.getZoom();this._moved=false;this._zooming=true;e._stop();Be(document,"touchmove",this._onTouchMove,this);Be(document,"touchend touchcancel",this._onTouchEnd,this);Ue(t)},_onTouchMove:function(t){if(!t.touches||t.touches.length!==2||!this._zooming){return}var e=this._map,i=e.mouseEventToContainerPoint(t.touches[0]),n=e.mouseEventToContainerPoint(t.touches[1]),r=i.distanceTo(n)/this._startDist;this._zoom=e.getScaleZoom(r,this._startZoom);if(!e.options.bounceAtZoomLimits&&(this._zoom<e.getMinZoom()&&r<1||this._zoom>e.getMaxZoom()&&r>1)){this._zoom=e._limitZoom(this._zoom)}if(e.options.touchZoom==="center"){this._center=this._startLatLng;if(r===1){return}}else{var s=i._add(n)._divideBy(2)._subtract(this._centerPoint);if(r===1&&s.x===0&&s.y===0){return}this._center=e.unproject(e.project(this._pinchStartLatLng,this._zoom).subtract(s),this._zoom)}if(!this._moved){e._moveStart(true,false);this._moved=true}z(this._animRequest);var a=o(e._move,e,this._center,this._zoom,{pinch:true,round:false});this._animRequest=P(a,this,true);Ue(t)},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=false;return}this._zooming=false;z(this._animRequest);Ne(document,"touchmove",this._onTouchMove,this);Ne(document,"touchend touchcancel",this._onTouchEnd,this);if(this._map.options.zoomAnimation){this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),true,this._map.options.zoomSnap)}else{this._map._resetView(this._center,this._map._limitZoom(this._zoom))}}});Qe.addInitHook("addHandler","touchZoom",to);Qe.BoxZoom=Gn;Qe.DoubleClickZoom=Kn;Qe.Drag=Yn;Qe.Keyboard=Jn;Qe.ScrollWheelZoom=Xn;Qe.TapHold=Qn;Qe.TouchZoom=to;t.Bounds=O;t.Browser=Zt;t.CRS=F;t.Canvas=Dn;t.Circle=Qi;t.CircleMarker=Xi;t.Class=C;t.Control=ei;t.DivIcon=Cn;t.DivOverlay=Tn;t.DomEvent=Xe;t.DomUtil=Ze;t.Draggable=mi;t.Evented=I;t.FeatureGroup=Fi;t.GeoJSON=sn;t.GridLayer=An;t.Handler=di;t.Icon=Vi;t.ImageOverlay=vn;t.LatLng=j;t.LatLngBounds=D;t.Layer=Ri;t.LayerGroup=ji;t.LineUtil=Si;t.Map=Qe;t.Marker=Ki;t.Mixin=fi;t.Path=Ji;t.Point=E;t.PolyUtil=Ii;t.Polygon=on;t.Polyline=en;t.Popup=Ln;t.PosAnimation=$e;t.Projection=Bi;t.Rectangle=Un;t.Renderer=Nn;t.SVG=Wn;t.SVGOverlay=wn;t.TileLayer=En;t.Tooltip=zn;t.Transformation=q;t.Util=M;t.VideoOverlay=bn;t.bind=o;t.bounds=N;t.canvas=Rn;t.circle=tn;t.circleMarker=$i;t.control=ii;t.divIcon=Sn;t.extend=i;t.featureGroup=Wi;t.geoJSON=_n;t.geoJson=gn;t.gridLayer=In;t.icon=Ui;t.imageOverlay=yn;t.latLng=H;t.latLngBounds=R;t.layerGroup=Hi;t.map=ti;t.marker=Yi;t.point=B;t.polygon=rn;t.polyline=nn;t.popup=Pn;t.rectangle=qn;t.setOptions=f;t.stamp=s;t.svg=Vn;t.svgOverlay=kn;t.tileLayer=Zn;t.tooltip=Mn;t.transformation=G;t.version=e;t.videoOverlay=xn;var eo=window.L;t.noConflict=function(){window.L=eo;return this};window.L=t}))}));var b='<svg xmlns="http://www.w3.org/2000/svg" width="512" height="512" viewBox="0 0 512 512"><path d="M80,464V68.14a8,8,0,0,1,4-6.9C91.81,56.66,112.92,48,160,48c64,0,145,48,192,48a199.53,199.53,0,0,0,77.23-15.77A2,2,0,0,1,432,82.08V301.44a4,4,0,0,1-2.39,3.65C421.37,308.7,392.33,320,352,320c-48,0-128-32-192-32s-80,16-80,16" style=";fill:#ffffff;stroke:currentColor;stroke-linecap:round;stroke-miterlimit:10;stroke-width:32px"/></svg>';var x='.leaflet-pane,.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-tile-container,.leaflet-pane>svg,.leaflet-pane>canvas,.leaflet-zoom-box,.leaflet-image-layer,.leaflet-layer{position:absolute;left:0;top:0}.leaflet-container{overflow:hidden}.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-drag:none}.leaflet-tile::-moz-selection{background:transparent}.leaflet-tile::selection{background:transparent}.leaflet-safari .leaflet-tile{image-rendering:-webkit-optimize-contrast}.leaflet-safari .leaflet-tile-container{width:1600px;height:1600px;-webkit-transform-origin:0 0}.leaflet-marker-icon,.leaflet-marker-shadow{display:block}.leaflet-container .leaflet-overlay-pane svg{max-width:none !important;max-height:none !important}.leaflet-container .leaflet-marker-pane img,.leaflet-container .leaflet-shadow-pane img,.leaflet-container .leaflet-tile-pane img,.leaflet-container img.leaflet-image-layer,.leaflet-container .leaflet-tile{max-width:none !important;max-height:none !important;width:auto;padding:0}.leaflet-container.leaflet-touch-zoom{-ms-touch-action:pan-x pan-y;touch-action:pan-x pan-y}.leaflet-container.leaflet-touch-drag{-ms-touch-action:pinch-zoom;touch-action:none;touch-action:pinch-zoom}.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom{-ms-touch-action:none;touch-action:none}.leaflet-container{-webkit-tap-highlight-color:transparent}.leaflet-container a{-webkit-tap-highlight-color:rgba(51, 181, 229, 0.4)}.leaflet-tile{-webkit-filter:inherit;filter:inherit;visibility:hidden}.leaflet-tile-loaded{visibility:inherit}.leaflet-zoom-box{width:0;height:0;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;z-index:800}.leaflet-overlay-pane svg{-moz-user-select:none}.leaflet-pane{z-index:400}.leaflet-tile-pane{z-index:200}.leaflet-overlay-pane{z-index:400}.leaflet-shadow-pane{z-index:500}.leaflet-marker-pane{z-index:600}.leaflet-tooltip-pane{z-index:650}.leaflet-popup-pane{z-index:700}.leaflet-map-pane canvas{z-index:100}.leaflet-map-pane svg{z-index:200}.leaflet-vml-shape{width:1px;height:1px}.lvml{behavior:url(#default#VML);display:inline-block;position:absolute}.leaflet-control{position:relative;z-index:800;pointer-events:visiblePainted;pointer-events:auto}.leaflet-top,.leaflet-bottom{position:absolute;z-index:1000;pointer-events:none}.leaflet-top{top:0}.leaflet-right{right:0}.leaflet-bottom{bottom:0}.leaflet-left{left:0}.leaflet-control{float:left;clear:both}.leaflet-right .leaflet-control{float:right}.leaflet-top .leaflet-control{margin-top:10px}.leaflet-bottom .leaflet-control{margin-bottom:10px}.leaflet-left .leaflet-control{margin-left:10px}.leaflet-right .leaflet-control{margin-right:10px}.leaflet-fade-anim .leaflet-popup{opacity:0;-webkit-transition:opacity 0.2s linear;-moz-transition:opacity 0.2s linear;transition:opacity 0.2s linear}.leaflet-fade-anim .leaflet-map-pane .leaflet-popup{opacity:1}.leaflet-zoom-animated{-webkit-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0}svg.leaflet-zoom-animated{will-change:transform}.leaflet-zoom-anim .leaflet-zoom-animated{-webkit-transition:-webkit-transform 0.25s cubic-bezier(0,0,0.25,1);-moz-transition:-moz-transform 0.25s cubic-bezier(0,0,0.25,1);transition:-webkit-transform 0.25s cubic-bezier(0,0,0.25,1);transition:transform 0.25s cubic-bezier(0,0,0.25,1);transition:transform 0.25s cubic-bezier(0,0,0.25,1), -webkit-transform 0.25s cubic-bezier(0,0,0.25,1)}.leaflet-zoom-anim .leaflet-tile,.leaflet-pan-anim .leaflet-tile{-webkit-transition:none;-moz-transition:none;transition:none}.leaflet-zoom-anim .leaflet-zoom-hide{visibility:hidden}.leaflet-interactive{cursor:pointer}.leaflet-grab{cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.leaflet-crosshair,.leaflet-crosshair .leaflet-interactive{cursor:crosshair}.leaflet-popup-pane,.leaflet-control{cursor:auto}.leaflet-dragging .leaflet-grab,.leaflet-dragging .leaflet-grab .leaflet-interactive,.leaflet-dragging .leaflet-marker-draggable{cursor:move;cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-image-layer,.leaflet-pane>svg path,.leaflet-tile-container{pointer-events:none}.leaflet-marker-icon.leaflet-interactive,.leaflet-image-layer.leaflet-interactive,.leaflet-pane>svg path.leaflet-interactive,svg.leaflet-image-layer.leaflet-interactive path{pointer-events:visiblePainted;pointer-events:auto}.leaflet-container{background:#ddd;outline-offset:1px}.leaflet-container a{color:#0078A8}.leaflet-zoom-box{border:2px dotted #38f;background:rgba(255,255,255,0.5)}.leaflet-container{font-family:"Helvetica Neue", Arial, Helvetica, sans-serif;font-size:12px;font-size:0.75rem;line-height:1.5}.leaflet-bar{-webkit-box-shadow:0 1px 5px rgba(0,0,0,0.65);box-shadow:0 1px 5px rgba(0,0,0,0.65);border-radius:4px}.leaflet-bar a{background-color:#fff;border-bottom:1px solid #ccc;width:26px;height:26px;line-height:26px;display:block;text-align:center;text-decoration:none;color:black}.leaflet-bar a,.leaflet-control-layers-toggle{background-position:50% 50%;background-repeat:no-repeat;display:block}.leaflet-bar a:hover,.leaflet-bar a:focus{background-color:#f4f4f4}.leaflet-bar a:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.leaflet-bar a:last-child{border-bottom-left-radius:4px;border-bottom-right-radius:4px;border-bottom:none}.leaflet-bar a.leaflet-disabled{cursor:default;background-color:#f4f4f4;color:#bbb}.leaflet-touch .leaflet-bar a{width:30px;height:30px;line-height:30px}.leaflet-touch .leaflet-bar a:first-child{border-top-left-radius:2px;border-top-right-radius:2px}.leaflet-touch .leaflet-bar a:last-child{border-bottom-left-radius:2px;border-bottom-right-radius:2px}.leaflet-control-zoom-in,.leaflet-control-zoom-out{font:bold 18px \'Lucida Console\', Monaco, monospace;text-indent:1px}.leaflet-touch .leaflet-control-zoom-in,.leaflet-touch .leaflet-control-zoom-out{font-size:22px}.leaflet-control-layers{-webkit-box-shadow:0 1px 5px rgba(0,0,0,0.4);box-shadow:0 1px 5px rgba(0,0,0,0.4);background:#fff;border-radius:5px}.leaflet-control-layers-toggle{background-image:url(images/layers.png);width:36px;height:36px}.leaflet-retina .leaflet-control-layers-toggle{background-image:url(images/layers-2x.png);background-size:26px 26px}.leaflet-touch .leaflet-control-layers-toggle{width:44px;height:44px}.leaflet-control-layers .leaflet-control-layers-list,.leaflet-control-layers-expanded .leaflet-control-layers-toggle{display:none}.leaflet-control-layers-expanded .leaflet-control-layers-list{display:block;position:relative}.leaflet-control-layers-expanded{padding:6px 10px 6px 6px;color:#333;background:#fff}.leaflet-control-layers-scrollbar{overflow-y:scroll;overflow-x:hidden;padding-right:5px}.leaflet-control-layers-selector{margin-top:2px;position:relative;top:1px}.leaflet-control-layers label{display:block;font-size:13px;font-size:1.08333em}.leaflet-control-layers-separator{height:0;border-top:1px solid #ddd;margin:5px -10px 5px -6px}.leaflet-default-icon-path{background-image:url(images/marker-icon.png)}.leaflet-container .leaflet-control-attribution{background:#fff;background:rgba(255, 255, 255, 0.8);margin:0}.leaflet-control-attribution,.leaflet-control-scale-line{padding:0 5px;color:#333;line-height:1.4}.leaflet-control-attribution a{text-decoration:none}.leaflet-control-attribution a:hover,.leaflet-control-attribution a:focus{text-decoration:underline}.leaflet-control-attribution svg{display:inline !important}.leaflet-left .leaflet-control-scale{margin-left:5px}.leaflet-bottom .leaflet-control-scale{margin-bottom:5px}.leaflet-control-scale-line{border:2px solid #777;border-top:none;line-height:1.1;padding:2px 5px 1px;white-space:nowrap;overflow:hidden;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;background:#fff;background:rgba(255, 255, 255, 0.5)}.leaflet-control-scale-line:not(:first-child){border-top:2px solid #777;border-bottom:none;margin-top:-2px}.leaflet-control-scale-line:not(:first-child):not(:last-child){border-bottom:2px solid #777}.leaflet-touch .leaflet-control-attribution,.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{-webkit-box-shadow:none;box-shadow:none}.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{border:2px solid rgba(0,0,0,0.2);background-clip:padding-box}.leaflet-popup{position:absolute;text-align:center;margin-bottom:20px}.leaflet-popup-content-wrapper{padding:1px;text-align:left;border-radius:12px}.leaflet-popup-content{margin:13px 24px 13px 20px;line-height:1.3;font-size:13px;font-size:1.08333em;min-height:1px}.leaflet-popup-content p{margin:17px 0;margin:1.3em 0}.leaflet-popup-tip-container{width:40px;height:20px;position:absolute;left:50%;margin-top:-1px;margin-left:-20px;overflow:hidden;pointer-events:none}.leaflet-popup-tip{width:17px;height:17px;padding:1px;margin:-10px auto 0;pointer-events:auto;-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.leaflet-popup-content-wrapper,.leaflet-popup-tip{background:white;color:#333;-webkit-box-shadow:0 3px 14px rgba(0,0,0,0.4);box-shadow:0 3px 14px rgba(0,0,0,0.4)}.leaflet-container a.leaflet-popup-close-button{position:absolute;top:0;right:0;border:none;text-align:center;width:24px;height:24px;font:16px/24px Tahoma, Verdana, sans-serif;color:#757575;text-decoration:none;background:transparent}.leaflet-container a.leaflet-popup-close-button:hover,.leaflet-container a.leaflet-popup-close-button:focus{color:#585858}.leaflet-popup-scrolled{overflow:auto;border-bottom:1px solid #ddd;border-top:1px solid #ddd}.leaflet-oldie .leaflet-popup-content-wrapper{-ms-zoom:1}.leaflet-oldie .leaflet-popup-tip{width:24px;margin:0 auto;-ms-filter:"progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";filter:progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)}.leaflet-oldie .leaflet-control-zoom,.leaflet-oldie .leaflet-control-layers,.leaflet-oldie .leaflet-popup-content-wrapper,.leaflet-oldie .leaflet-popup-tip{border:1px solid #999}.leaflet-div-icon{background:#fff;border:1px solid #666}.leaflet-tooltip{position:absolute;padding:6px;background-color:#fff;border:1px solid #fff;border-radius:3px;color:#222;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none;-webkit-box-shadow:0 1px 3px rgba(0,0,0,0.4);box-shadow:0 1px 3px rgba(0,0,0,0.4)}.leaflet-tooltip.leaflet-interactive{cursor:pointer;pointer-events:auto}.leaflet-tooltip-top:before,.leaflet-tooltip-bottom:before,.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{position:absolute;pointer-events:none;border:6px solid transparent;background:transparent;content:""}.leaflet-tooltip-bottom{margin-top:6px}.leaflet-tooltip-top{margin-top:-6px}.leaflet-tooltip-bottom:before,.leaflet-tooltip-top:before{left:50%;margin-left:-6px}.leaflet-tooltip-top:before{bottom:0;margin-bottom:-12px;border-top-color:#fff}.leaflet-tooltip-bottom:before{top:0;margin-top:-12px;margin-left:-6px;border-bottom-color:#fff}.leaflet-tooltip-left{margin-left:-6px}.leaflet-tooltip-right{margin-left:6px}.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{top:50%;margin-top:-6px}.leaflet-tooltip-left:before{right:0;margin-right:-12px;border-left-color:#fff}.leaflet-tooltip-right:before{left:0;margin-left:-12px;border-right-color:#fff}@media print{.leaflet-control{-webkit-print-color-adjust:exact;color-adjust:exact}}grw-map{font-family:"Roboto";display:block;height:100%;max-height:100vh}.departure-icon svg,.arrival-icon svg{width:48px;height:48px}.departure-icon svg path,.arrival-icon svg path{fill:currentColor;stroke:currentColor}.departure-icon{color:var(--color-departure-icon)}.arrival-icon{color:var(--color-arrival-icon)}.trek-marker{background-color:var(--color-primary);border-radius:50%;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.trek-marker img{width:36px !important}.map-loader-container{position:absolute;z-index:500;width:100%;height:100%;background:rgba(255, 255, 255, 0.5);display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.map-loader-container .loader{width:48px;height:48px;border:5px solid var(--color-primary-tint);border-bottom-color:var(--color-primary);border-radius:50%;display:inline-block;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-animation:rotation 1s linear infinite;animation:rotation 1s linear infinite}@-webkit-keyframes rotation{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes rotation{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.leaflet-popup-content{width:144px;margin:0}.trek-departure-popup{position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;width:100px;height:auto;padding:24px}.trek-departure-popup img{border-radius:8px;-webkit-box-shadow:4px 8px 24px rgba(0, 0, 0, 0.25);box-shadow:4px 8px 24px rgba(0, 0, 0, 0.25)}.trek-departure-popup .trek-name{color:var(--color-primary);font-weight:bold;font-size:12px}.trek-departure-popup .trek-name-margin-top{margin-top:12px}.poi-tooltip .poi-name,.poi-tooltip .information-desks-name,.poi-tooltip .sensitive-area-name,.information-desks-tooltip .poi-name,.information-desks-tooltip .information-desks-name,.information-desks-tooltip .sensitive-area-name,.sensitive-area-tooltip .poi-name,.sensitive-area-tooltip .information-desks-name,.sensitive-area-tooltip .sensitive-area-name{color:var(--color-primary);font-weight:bold;font-size:12px}.sensitiveAreasCheckboxContainer{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;background-color:#ffffff;padding:8px;border-radius:8px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.sensitiveAreasCheckboxContainer input,.sensitiveAreasCheckboxContainer label{cursor:pointer}.sensitiveAreasCheckboxContainer input{margin:0}.sensitiveAreasCheckboxContainer label{padding-left:8px}.poi-icon,.information-desks-icon{background-color:var(--color-poi-icon);border-radius:50%;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.poi-icon img,.information-desks-icon img{width:36px !important}.parking-icon{background-color:#0000ff;border-radius:50%;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;width:48px;height:48px;font-size:24px;color:#ffffff}.point-reference-icon{background-color:#ff0000;border:1px solid #ffffff;border-radius:50%;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;width:24px;height:24px;font-size:18px;color:#ffffff}';var w=t("grw_map",function(){function t(t){e(this,t);this.trekCardPress=o(this,"trekCardPress",7);this.mapIsReady=false;this.center="1, 1";this.zoom=10;this.colorPrimary="#6b0030";this.colorPrimaryTint="#974c6e";this.colorTrekLine="#6b0030";this.colorDepartureIcon="#006b3b";this.colorArrivalIcon="#85003b";this.colorSensitiveArea="\t#4974a5";this.colorPoiIcon="#974c6e";this.handleTreksWithinBoundsBind=this.handleTreksWithinBounds.bind(this)}t.prototype.connectedCallback=function(){var t=this;this.map=y.map(this.element,{center:this.center.split(",").map(Number),zoom:this.zoom});y.control.scale().addTo(this.map);y.tileLayer(this.urlLayer,{maxZoom:19,attribution:this.attribution}).addTo(this.map);if(s.currentTrek){this.addTrek()}else if(s.currentTreks){this.addTreks()}a("currentTreks",(function(){if(s.currentTrek){t.removeTreks();t.addTrek()}else if(s.currentTreks){t.removeTrek();t.addTreks()}}));a("currentTrek",(function(){if(s.currentTrek){t.removeTreks();t.addTrek()}else{t.removeTrek();t.addTreks()}}))};t.prototype.addTreks=function(){var t=this;var e;var i=[];var n={type:"FeatureCollection",features:[]};if(s.currentTreks){var o=function(t){i.push(t.departure_geom);n.features.push({type:"Feature",geometry:{type:"Point",coordinates:t.departure_geom},properties:{id:t.id,name:t.name,practice:(e=s.practices.find((function(e){return e.id===t.practice})))===null||e===void 0?void 0:e.pictogram,imgSrc:t.attachments&&t.attachments.length>0&&t.attachments[0].thumbnail}})};for(var r=0,a=s.currentTreks;r<a.length;r++){var l=a[r];o(l)}}if(!this.treksLayer){if(i.length>0&&!s.currentMapTreksBounds){var h=y.latLngBounds(i.map((function(t){return[t[1],t[0]]})));this.map.fitBounds(h)}else{if(s.currentMapTreksBounds){this.map.fitBounds(s.currentMapTreksBounds)}}this.treksLayer=y.geoJSON(n,{pointToLayer:function(t,e){return y.marker(e,{icon:y.divIcon({html:t.properties.practice?"<img src=".concat(t.properties.practice," />"):"<img />",className:"trek-marker",iconSize:48}),autoPanOnFocus:false})},onEachFeature:function(e,i){i.once("click",(function(){var n=y.DomUtil.create("div");n.className="trek-departure-popup";n.onclick=function(){return t.trekCardPress.emit(e.properties.id)};var o=y.DomUtil.create("div");o.innerHTML=e.properties.name;o.className="trek-name";if(e.properties.imgSrc){o.className+=" trek-name-margin-top";var r=y.DomUtil.create("img");r.src=e.properties.imgSrc;n.appendChild(r)}n.appendChild(o);i.bindPopup(n,{interactive:true,autoPan:false,closeButton:false}).openPopup()}))}}).addTo(this.map)}else{if(i.length>0){var h=y.latLngBounds(i.map((function(t){return[t[1],t[0]]})));this.map.fitBounds(h)}else{this.map.fire("moveend")}this.treksLayer.clearLayers();this.treksLayer.addData(n)}!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady);this.map.on("moveend",this.handleTreksWithinBoundsBind)};t.prototype.removeTreks=function(){if(this.treksLayer){s.currentMapTreksBounds=this.map.getBounds();this.map.removeLayer(this.treksLayer);this.treksLayer=null;this.map.off("moveend",this.handleTreksWithinBoundsBind)}};t.prototype.handleTreksWithinBounds=function(){var t=this;if(!s.currentMapTreksBounds||s.currentMapTreksBounds.toBBoxString()!==this.map.getBounds().toBBoxString()){s.treksWithinBounds=s.currentTreks.filter((function(e){return t.map.getBounds().contains(y.latLng(e.departure_geom[1],e.departure_geom[0]))}))}};t.prototype.addTrek=function(){var t=this;var e;var i={type:"Feature",geometry:s.currentTrek.geometry,properties:{}};this.currentTrekLayer=y.geoJSON(i,{style:function(){return{color:t.colorTrekLine}},interactive:false}).addTo(this.map);var n=y.latLngBounds(s.currentTrek.geometry.coordinates.map((function(t){return[t[1],t[0]]})));this.map.fitBounds(n);var o=[s.currentTrek.geometry.coordinates.at(0)[0],s.currentTrek.geometry.coordinates.at(0)[1]];var r=[s.currentTrek.geometry.coordinates.at(-1)[0],s.currentTrek.geometry.coordinates.at(-1)[1]];var a={type:"FeatureCollection",features:[{type:"Feature",properties:{type:"departure"},geometry:{type:"Point",coordinates:o}}]};if(o[0]!==r[0]||o[1]!==r[1]){a.features.push({type:"Feature",properties:{type:"arrival"},geometry:{type:"Point",coordinates:r}})}this.currentDepartureArrivalLayer=y.geoJSON(a,{pointToLayer:function(t,e){return y.marker(e,{icon:y.divIcon({html:b,className:t.properties.type==="departure"?"departure-icon":"arrival-icon",iconSize:48,iconAnchor:[0,48]}),autoPanOnFocus:false,interactive:false})}}).addTo(this.map);if(s.currentTrek.parking_location){var l={type:"Feature",properties:{},geometry:{type:"Point",coordinates:s.currentTrek.parking_location}};this.currentParkingLayer=y.geoJSON(l,{pointToLayer:function(t,e){return y.marker(e,{icon:y.divIcon({html:"<div>P</div>",className:"parking-icon",iconSize:48,iconAnchor:[0,48]}),autoPanOnFocus:false,interactive:false})}}).addTo(this.map)}if(s.currentSensitiveAreas&&s.currentSensitiveAreas.length>0){var h={type:"FeatureCollection",features:[]};for(var c=0,u=s.currentSensitiveAreas;c<u.length;c++){var d=u[c];h.features.push({type:"Feature",properties:{name:d.name},geometry:d.geometry})}this.currentSensitiveAreasLayer=y.geoJSON(h,{onEachFeature:function(t,e){e.once("mouseover",(function(){var i=y.DomUtil.create("div");i.className="sensitive-area-tooltip";var n=y.DomUtil.create("div");n.innerHTML=t.properties.name;n.className="sensitive-area-name";i.appendChild(n);e.bindTooltip(i).openTooltip()}))},style:function(){return{color:t.colorSensitiveArea}}}).addTo(this.map);y.Control.SensitiveAreasCheckboxContainer=y.Control.extend({onAdd:function(){var e=y.DomUtil.create("div");e.className="sensitiveAreasCheckboxContainer";var i=y.DomUtil.create("input");i.setAttribute("id","sensitiveAreasCheckbox");i.setAttribute("type","checkbox");i.setAttribute("checked","true");i.onclick=function(e){return e.composedPath()[0].checked?t.map.addLayer(t.currentSensitiveAreasLayer):t.map.removeLayer(t.currentSensitiveAreasLayer)};var n=y.DomUtil.create("label");n.setAttribute("for","sensitiveAreasCheckbox");n.innerHTML=h.features.length>1||h.features[0].geometry.type==="MultiPolygon"?"Afficher les zones sensibles":"Afficher la zone sensible";e.appendChild(i);e.appendChild(n);return e}});y.control.sensitiveAreasCheckboxContainer=function(){return new y.Control.SensitiveAreasCheckboxContainer};this.sensitiveAreasControl=y.control.sensitiveAreasCheckboxContainer({position:"topright"}).addTo(this.map)}if(s.currentPois&&s.currentPois.length>0){var f={type:"FeatureCollection",features:[]};var p=function(t){f.features.push({type:"Feature",properties:{name:t.name,type_pictogram:(e=s.poiTypes.find((function(e){return e.id===t.type})))===null||e===void 0?void 0:e.pictogram},geometry:t.geometry})};for(var m=0,_=s.currentPois;m<_.length;m++){var g=_[m];p(g)}this.currentPoisLayer=y.geoJSON(f,{pointToLayer:function(t,e){return y.marker(e,{icon:y.divIcon({html:t.properties.type_pictogram?"<img src=".concat(t.properties.type_pictogram," />"):"<img />",className:"poi-icon",iconSize:48}),autoPanOnFocus:false})},onEachFeature:function(t,e){e.once("mouseover",(function(){var i=y.DomUtil.create("div");i.className="poi-tooltip";var n=y.DomUtil.create("div");n.innerHTML=t.properties.name;n.className="poi-name";i.appendChild(n);e.bindTooltip(i).openTooltip()}))}}).addTo(this.map)}if(s.currentInformationDesks&&s.currentInformationDesks.length>0){var v={type:"FeatureCollection",features:[]};for(var x=0,w=s.currentInformationDesks;x<w.length;x++){var k=w[x];v.features.push({type:"Feature",properties:{name:k.name,type_pictogram:k.type.pictogram},geometry:{type:"Point",coordinates:[Number(k.longitude),Number(k.latitude)]}})}this.currentInformationDesksLayer=y.geoJSON(v,{pointToLayer:function(t,e){return y.marker(e,{icon:y.divIcon({html:t.properties.type_pictogram?"<img src=".concat(t.properties.type_pictogram," />"):"<img />",className:"information-desks-icon",iconSize:48}),autoPanOnFocus:false})},onEachFeature:function(t,e){e.once("mouseover",(function(){var i=y.DomUtil.create("div");i.className="information-desks-tooltip";var n=y.DomUtil.create("div");n.innerHTML=t.properties.name;n.className="information-desks-name";i.appendChild(n);e.bindTooltip(i).openTooltip()}))}}).addTo(this.map)}if(s.currentTrek.points_reference){var T={type:"FeatureCollection",features:[]};T.features.push({type:"Feature",properties:{},geometry:s.currentTrek.points_reference});var L=0;this.currentPointsReferenceLayer=y.geoJSON(T,{pointToLayer:function(t,e){L+=1;return y.marker(e,{icon:y.divIcon({html:L,className:"point-reference-icon",iconSize:24}),autoPanOnFocus:false,interactive:false})}}).addTo(this.map)}!this.mapIsReady&&(this.mapIsReady=!this.mapIsReady)};t.prototype.removeTrek=function(){if(this.currentTrekLayer){this.map.removeLayer(this.currentTrekLayer);this.currentTrekLayer=null}if(this.currentDepartureArrivalLayer){this.map.removeLayer(this.currentDepartureArrivalLayer);this.currentDepartureArrivalLayer=null}if(this.currentParkingLayer){this.map.removeLayer(this.currentParkingLayer);this.currentParkingLayer=null}if(this.currentSensitiveAreasLayer){this.map.removeLayer(this.currentSensitiveAreasLayer);this.currentSensitiveAreasLayer=null;this.map.removeControl(this.sensitiveAreasControl);this.sensitiveAreasControl=null}if(this.currentPoisLayer){this.map.removeLayer(this.currentPoisLayer);this.currentPoisLayer=null}if(this.currentInformationDesksLayer){this.map.removeLayer(this.currentInformationDesksLayer);this.currentInformationDesksLayer=null}if(this.currentPointsReferenceLayer){this.map.removeLayer(this.currentPointsReferenceLayer);this.currentPointsReferenceLayer=null}};t.prototype.render=function(){return i(n,{style:{"--color-primary":this.colorPrimary,"--color-primary-tint":this.colorPrimaryTint,"--color-departure-icon":this.colorDepartureIcon,"--color-arrival-icon":this.colorArrivalIcon,"--color-poi-icon":this.colorPoiIcon}},!this.mapIsReady&&i("div",{class:"map-loader-container"},i("span",{class:"loader"})))};Object.defineProperty(t.prototype,"element",{get:function(){return r(this)},enumerable:false,configurable:true});return t}());w.style=x;var k='grw-sensitive-area-detail,grw-information-desk-detail,grw-poi-detail{margin-top:12px}.trek-detail-container{font-family:"Roboto";display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;height:100%;overflow-y:auto}.trek-detail-container .name{color:var(--color-primary);font-size:48px;font-weight:bold;padding:24px}.trek-detail-container .image{border-radius:8px;-ms-flex-item-align:center;align-self:center;width:100%;max-width:700px;height:auto;-webkit-box-shadow:4px 8px 24px rgba(0, 0, 0, 0.25);box-shadow:4px 8px 24px rgba(0, 0, 0, 0.25)}.trek-detail-container .sub-container{padding:24px}.trek-detail-container .sub-container .icons-labels-container{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center;-ms-flex-wrap:wrap;flex-wrap:wrap}.trek-detail-container .sub-container .icons-labels-container .row{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center;width:100%}.trek-detail-container .sub-container .icons-labels-container .row:not(:last-child){margin-bottom:24px}.trek-detail-container .sub-container .icons-labels-container .row .icon-label{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;width:33.3333333333%}.trek-detail-container .sub-container .icons-labels-container .row .icon-label:nth-child(2){margin:0px 8px}.trek-detail-container .sub-container .icons-labels-container .row .icon-label img,.trek-detail-container .sub-container .icons-labels-container .row .icon-label .svg-icon svg{width:24px;height:auto;margin-right:24px}.trek-detail-container .sub-container .icons-labels-container .row .practice img{background-color:var(--color-primary)}.trek-detail-container .downloads-container{padding:0px 24px 24px 24px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.trek-detail-container .downloads-container .download-title{color:var(--color-primary);font-size:18px;margin-bottom:12px}.trek-detail-container .downloads-container .links-container{display:-ms-flexbox;display:flex}.trek-detail-container .downloads-container .links-container a{background-color:var(--color-primary);padding:8px;color:#ffffff;text-decoration:none;border-radius:8px}.trek-detail-container .downloads-container .links-container a:nth-child(2){margin:0px 12px}.trek-detail-container .downloads-container .links-container a:hover{background-color:var(--color-primary-shade)}.trek-detail-container .themes-container{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center;-ms-flex-wrap:wrap;flex-wrap:wrap;padding:0px 24px 24px 24px}.trek-detail-container .themes-container .theme{background-color:var(--color-primary-tint);color:#ffffff;border-radius:8px;padding:8px;margin:0px 8px 8px 0px}.trek-detail-container .ambiance,.trek-detail-container .description-teaser,.trek-detail-container .description-container,.trek-detail-container .altimetric-profile-container,.trek-detail-container .access-container,.trek-detail-container .public-transport-container,.trek-detail-container .advice-container,.trek-detail-container .advised-parking-container,.trek-detail-container .gear-container,.trek-detail-container .pois-container,.trek-detail-container .sensitive-areas-container,.trek-detail-container .information-desks-container,.trek-detail-container .source-container,.trek-detail-container .accessibilities-container{padding:0px 24px 24px 24px}.trek-detail-container .ambiance a,.trek-detail-container .description-teaser a,.trek-detail-container .description-container a,.trek-detail-container .altimetric-profile-container a,.trek-detail-container .access-container a,.trek-detail-container .public-transport-container a,.trek-detail-container .advice-container a,.trek-detail-container .advised-parking-container a,.trek-detail-container .gear-container a,.trek-detail-container .pois-container a,.trek-detail-container .sensitive-areas-container a,.trek-detail-container .information-desks-container a,.trek-detail-container .source-container a,.trek-detail-container .accessibilities-container a{color:var(--color-primary)}.trek-detail-container .description-title,.trek-detail-container .altimetric-profile-title,.trek-detail-container .access-title,.trek-detail-container .public-transport-title,.trek-detail-container .advice-title,.trek-detail-container .advised-parking-title,.trek-detail-container .gear-title,.trek-detail-container .pois-title,.trek-detail-container .sensitive-areas-title,.trek-detail-container .information-desks-title,.trek-detail-container .source-title,.trek-detail-container .accessibilities-title{color:var(--color-primary);font-size:36px;font-weight:bold;margin:12px 0px}.label-container .label-sub-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.label-container .label-sub-container img{width:26px;margin-right:16px}.label-container .label-sub-container .label-name{color:var(--color-primary);font-size:24px;font-weight:bold;padding:12px 0px}.source-container .source-sub-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.source-container .source-sub-container img{width:26px;margin-right:16px}.source-container .source-sub-container .source-name{color:var(--color-primary);font-size:24px;font-weight:bold;padding:12px 0px}.departure-container,.arrival-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding:0px 24px 24px 24px}.departure-container .departure-title,.departure-container .arrival-title,.arrival-container .departure-title,.arrival-container .arrival-title{color:var(--color-primary);font-weight:bold}.accessibilities-container .accessibilities-content-container{padding:12px 0px 0px 0px;display:-ms-flexbox;display:flex}.accessibilities-container .accessibilities-content-container .accessibility-content-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;margin:0px 8px 8px 0px}.accessibilities-container .accessibilities-content-container .accessibility-content-container img{margin-right:16px;width:26px}.accessibilities-container .accessibility-level-title,.accessibilities-container .accessibility-slope-title,.accessibilities-container .accessibility-width-title,.accessibilities-container .accessibility-signage-title,.accessibilities-container .accessibility-covering-title,.accessibilities-container .accessibility-exposure-title,.accessibilities-container .accessibility-advice-title{color:var(--color-primary);font-size:24px;padding:12px 0px}';var T=t("grw_trek_detail",function(){function t(t){e(this,t);this.colorPrimary="#6b0030";this.colorPrimaryShade="#4a0021";this.colorPrimaryTint="#974c6e"}t.prototype.connectedCallback=function(){var t=this;this.currentTrek=this.trek?this.trek:s.currentTrek;if(this.currentTrek){this.difficulty=s.difficulties.find((function(e){return e.id===t.currentTrek.difficulty}));this.route=s.routes.find((function(e){return e.id===t.currentTrek.route}));this.practice=s.practices.find((function(e){return e.id===t.currentTrek.practice}));this.themes=s.themes.filter((function(e){return t.currentTrek.themes.includes(e.id)}));this.labels=s.labels.filter((function(e){return t.currentTrek.labels.includes(e.id)}));this.sources=s.sources.filter((function(e){return t.currentTrek.source.includes(e.id)}));this.accessibilities=s.accessibilities.filter((function(e){return t.currentTrek.accessibilities.includes(e.id)}));if(s.accessibilitiesLevel){this.accessibilityLevel=s.accessibilitiesLevel.find((function(e){return t.currentTrek.accessibility_level===e.id}))}}a("currentTrek",(function(){t.currentTrek=t.trek?t.trek:s.currentTrek;if(t.currentTrek){t.difficulty=s.difficulties.find((function(e){return e.id===t.currentTrek.difficulty}));t.route=s.routes.find((function(e){return e.id===t.currentTrek.route}));t.practice=s.practices.find((function(e){return e.id===t.currentTrek.practice}));t.themes=s.themes.filter((function(e){return t.currentTrek.themes.includes(e.id)}));t.labels=s.labels.filter((function(e){return t.currentTrek.labels.includes(e.id)}));t.sources=s.sources.filter((function(e){return t.currentTrek.source.includes(e.id)}));t.accessibilities=s.accessibilities.filter((function(e){return t.currentTrek.accessibilities.includes(e.id)}));if(s.accessibilitiesLevel){t.accessibilityLevel=s.accessibilitiesLevel.find((function(e){return t.currentTrek.accessibility_level===e.id}))}}}))};t.prototype.render=function(){var t,e,o,r,a,p,m;return i(n,{style:{"--color-primary":this.colorPrimary,"--color-primary-shade":this.colorPrimaryShade,"--color-primary-tint":this.colorPrimaryTint}},this.currentTrek&&i("div",{class:"trek-detail-container"},i("div",{class:"name"},this.currentTrek.name),this.currentTrek.attachments&&this.currentTrek.attachments[0]&&this.currentTrek.attachments[0].url&&i("img",{class:"image",src:this.currentTrek.attachments[0].url,loading:"lazy"}),i("div",{class:"sub-container"},i("div",{class:"icons-labels-container"},i("div",{class:"row"},i("div",{class:"icon-label difficulty"},((t=this.difficulty)===null||t===void 0?void 0:t.pictogram)&&i("img",{src:this.difficulty.pictogram}),(e=this.difficulty)===null||e===void 0?void 0:e.label),i("div",{class:"icon-label duration"},i("div",{class:"svg-icon",innerHTML:l}),h((o=this.currentTrek)===null||o===void 0?void 0:o.duration)),i("div",{class:"icon-label route"},((r=this.route)===null||r===void 0?void 0:r.pictogram)&&i("img",{src:this.route.pictogram}),(a=this.route)===null||a===void 0?void 0:a.route)),i("div",{class:"row"},i("div",{class:"icon-label length"},i("div",{class:"svg-icon",innerHTML:c}),u(this.currentTrek.length_2d)),i("div",{class:"icon-label ascent"},i("div",{class:"svg-icon",innerHTML:d}),f(this.currentTrek.ascent)),i("div",{class:"icon-label practice"},((p=this.practice)===null||p===void 0?void 0:p.pictogram)&&i("img",{src:this.practice.pictogram}),(m=this.practice)===null||m===void 0?void 0:m.name)))),i("div",{class:"downloads-container"},i("div",{class:"download-title"},"Téléchargements"),i("div",{class:"links-container"},i("a",{href:"".concat(this.currentTrek.gpx)},"GPX"),i("a",{href:"".concat(this.currentTrek.kml)},"KML"),i("a",{href:"".concat(this.currentTrek.pdf)},"PDF"))),this.themes.length>0&&i("div",{class:"themes-container"},this.themes.map((function(t){return i("div",{class:"theme"},t.label)}))),this.currentTrek.description_teaser&&i("div",{class:"description-teaser",innerHTML:this.currentTrek.description_teaser}),this.currentTrek.ambiance&&i("div",{class:"ambiance",innerHTML:this.currentTrek.ambiance}),this.currentTrek.description&&i("div",{class:"description-container"},i("div",{class:"description-title"},"Description"),i("div",{class:"description",innerHTML:this.currentTrek.description})),this.currentTrek.departure&&i("div",{class:"departure-container"},i("div",{class:"departure-title"},"Départ : "),i("div",{innerHTML:this.currentTrek.departure})),this.currentTrek.arrival&&i("div",{class:"arrival-container"},i("div",{class:"arrival-title"},"Arrivée : "),i("div",{innerHTML:this.currentTrek.arrival})),this.currentTrek.altimetric_profile&&i("div",{class:"altimetric-profile-container"},i("div",{class:"altimetric-profile-title"},"Profil altimétrique"),i("img",{src:this.currentTrek.altimetric_profile.endsWith(".json")?this.currentTrek.altimetric_profile.replace(".json",".svg"):"".concat(this.currentTrek.altimetric_profile,"?format=svg")})),this.currentTrek.access&&i("div",{class:"access-container"},i("div",{class:"access-title"},"Accès routier"),i("div",{class:"access",innerHTML:this.currentTrek.access})),this.currentTrek.public_transport&&i("div",{class:"public-transport-container"},i("div",{class:"public-transport-title"},"Transport"),i("div",{class:"public-transport",innerHTML:this.currentTrek.public_transport})),(this.currentTrek.advice||this.labels.length>0)&&i("div",{class:"advice-container"},i("div",{class:"advice-title"},"Recommandations"),this.currentTrek.advice&&i("div",{class:"advice",innerHTML:this.currentTrek.advice}),this.labels.map((function(t){return i("div",{class:"label-container"},i("div",{class:"label-sub-container"},t.pictogram&&i("img",{src:t.pictogram}),i("div",{class:"label-name",innerHTML:t.name})),i("div",{class:"label-advice",innerHTML:t.advice}))}))),this.currentTrek.advised_parking&&i("div",{class:"advised-parking-container"},i("div",{class:"advised-parking-title"},"Parking conseillé"),i("div",{class:"advised_parking",innerHTML:this.currentTrek.advised_parking})),this.currentTrek.gear&&i("div",{class:"gear-container"},i("div",{class:"gear-title"},"Équipements"),i("div",{class:"gear",innerHTML:this.currentTrek.gear})),s.currentSensitiveAreas&&s.currentSensitiveAreas.length>0&&i("div",{class:"sensitive-areas-container"},i("div",{class:"sensitive-areas-title"},"Zones de sensibilité environnementale"),s.currentSensitiveAreas.map((function(t){return i("grw-sensitive-area-detail",{sensitiveArea:t})}))),s.currentInformationDesks&&s.currentInformationDesks.length>0&&i("div",{class:"information-desks-container"},i("div",{class:"information-desks-title"},"Lieux de renseignement"),s.currentInformationDesks.map((function(t){return i("grw-information-desk-detail",{informationDesk:t})}))),(this.currentTrek.disabled_infrastructure||this.accessibilities&&this.accessibilities.length>0||this.currentTrek.accessibility_level||this.currentTrek.accessibility_slope||this.currentTrek.accessibility_width||this.currentTrek.accessibility_signage||this.currentTrek.accessibility_covering||this.currentTrek.accessibility_exposure||this.currentTrek.accessibility_advice)&&i("div",{class:"accessibilities-container"},i("div",{class:"accessibilities-title"},"Accessibilité"),this.currentTrek.disabled_infrastructure&&i("div",{innerHTML:this.currentTrek.disabled_infrastructure}),i("div",{class:"accessibilities-content-container"},this.accessibilities.map((function(t){return i("div",{class:"accessibility-content-container"},i("img",{src:t.pictogram}),i("div",{innerHTML:t.name}))}))),this.currentTrek.accessibility_level&&i("div",{class:"accessibility-level-container"},i("div",{class:"accessibility-level-title"},"Niveau d'accessibilité"),i("div",{innerHTML:this.accessibilityLevel.name})),this.currentTrek.accessibility_slope&&i("div",{class:"accessibility-slope-container"},i("div",{class:"accessibility-slope-title"},"Pente"),i("div",{innerHTML:this.currentTrek.accessibility_slope})),this.currentTrek.accessibility_width&&i("div",{class:"accessibility-width-container"},i("div",{class:"accessibility-width-title"},"Largeur"),i("div",{innerHTML:this.currentTrek.accessibility_width})),this.currentTrek.accessibility_signage&&i("div",{class:"accessibility-signage-container"},i("div",{class:"accessibility-signage-title"},"Pente"),i("div",{innerHTML:this.currentTrek.accessibility_signage})),this.currentTrek.accessibility_covering&&i("div",{class:"accessibility-covering-container"},i("div",{class:"accessibility-covering-title"},"Revêtement"),i("div",{innerHTML:this.currentTrek.accessibility_covering})),this.currentTrek.accessibility_exposure&&i("div",{class:"accessibility-exposure-container"},i("div",{class:"accessibility-exposure-title"},"Exposition"),i("div",{innerHTML:this.currentTrek.accessibility_exposure})),this.currentTrek.accessibility_advice&&i("div",{class:"accessibility-advice-container"},i("div",{class:"accessibility-advice-title"},"Conseils"),i("div",{innerHTML:this.currentTrek.accessibility_advice}))),s.currentPois&&s.currentPois.length>0&&i("div",{class:"pois-container"},i("div",{class:"pois-title"},"Points d'intérêts"),s.currentPois.map((function(t){return i("grw-poi-detail",{poi:t})}))),this.currentTrek.source&&this.currentTrek.source.length>0&&i("div",{class:"source-container"},i("div",{class:"source-title"},"Sources"),this.sources.map((function(t){return i("div",{class:"source-sub-container"},t.pictogram&&i("img",{src:t.pictogram}),i("div",null,i("div",{class:"source-name",innerHTML:t.name}),i("a",{class:"source-advice",innerHTML:t.website})))})))))};return t}());T.style=k;var P=t("grw_trek_provider",function(){function t(t){e(this,t);this.language="fr";this.controller=new AbortController;this.signal=this.controller.signal}t.prototype.connectedCallback=function(){s.api=this.api;var t=[];t.push(!s.difficulties?fetch("".concat(this.api,"trek_difficulty/?language=").concat(this.language,"&fields=id,label,pictogram"),{signal:this.signal}):new Response("null"));t.push(!s.routes?fetch("".concat(this.api,"trek_route/?language=").concat(this.language,"&fields=id,route,pictogram"),{signal:this.signal}):new Response("null"));t.push(!s.practices?fetch("".concat(this.api,"trek_practice/?language=").concat(this.language,"&fields=id,name,pictogram"),{signal:this.signal}):new Response("null"));t.push(!s.themes?fetch("".concat(this.api,"theme/?language=").concat(this.language,"&fields=id,label,pictogram"),{signal:this.signal}):new Response("null"));Promise.all(__spreadArray(__spreadArray([],t,true),[fetch("".concat(this.api,"sensitivearea/?language=").concat(this.language,"&published=true&trek=").concat(this.trekId,"&fields=id,geometry,name,description,contact,info_url,period,practices"),{signal:this.signal}).catch((function(){return new Response("null")})),fetch("".concat(this.api,"label/?language=").concat(this.language,"&fields=id,name,advice,pictogram"),{signal:this.signal}),fetch("".concat(this.api,"source/?language=").concat(this.language,"&fields=id,name,website,pictogram"),{signal:this.signal}),fetch("".concat(this.api,"trek_accessibility/?language=").concat(this.language,"&fields=id,name,pictogram"),{signal:this.signal}),fetch("".concat(this.api,"trek_accessibility_level/?language=").concat(this.language,"&fields=id,name"),{signal:this.signal}).catch((function(){return new Response("null")})),fetch("".concat(this.api,"poi/?language=").concat(this.language,"&trek=").concat(this.trekId,"&published=true&fields=id,name,description,attachments,type,geometry&page_size=999"),{signal:this.signal}),fetch("".concat(this.api,"poi_type/?language=").concat(this.language,"&fields=id,pictogram"),{signal:this.signal}),fetch("".concat(this.api,"informationdesk/?language=").concat(this.language,"&near_trek=").concat(this.trekId,"&fields=id,name,description,type,phone,email,website,municipality,postal_code,street,photo_url,latitude,longitude&page_size=999"),{signal:this.signal}),fetch("".concat(this.api,"trek/").concat(this.trekId,"/?language=").concat(this.language,"&published=true&fields=id,name,attachments,description,description_teaser,difficulty,duration,ascent,length_2d,practice,themes,route,geometry,gpx,kml,pdf,parking_location,departure,arrival,altimetric_profile,ambiance,access,public_transport,advice,advised_parking,gear,labels,source,points_reference,disabled_infrastructure,accessibility_level,accessibility_slope,accessibility_width,accessibility_signage,accessibility_covering,accessibility_exposure,accessibility_advice,accessibilities"),{signal:this.signal})],false)).then((function(t){return Promise.all(t.map((function(t){return t.json()})))})).then((function(t){var e=t[0],i=t[1],n=t[2],o=t[3],r=t[4],a=t[5],l=t[6],h=t[7],c=t[8],u=t[9],d=t[10],f=t[11],p=t[12];s.trekNetworkError=false;if(e){s.difficulties=e.results}if(i){s.routes=i.results}if(n){s.practices=n.results.map((function(t){return Object.assign(Object.assign({},t),{selected:false})}))}if(o){s.themes=o.results}if(r){s.currentSensitiveAreas=r.results}s.labels=a.results;s.sources=l.results;s.accessibilities=h.results;if(c){s.accessibilitiesLevel=c.results}s.currentPois=u.results;s.poiTypes=d.results;s.currentInformationDesks=f.results;s.currentTrek=p})).catch((function(){s.trekNetworkError=true}))};t.prototype.disconnectedCallback=function(){this.controller.abort();s.currentTrek=null;s.trekNetworkError=false};t.prototype.render=function(){return i(n,null)};return t}());var z=':host{font-family:"Roboto";width:100%;height:100%;max-height:100vh;overflow-y:auto;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-pack:distribute;justify-content:space-around}grw-trek-card{margin:6px}';var M=t("grw_treks_list",function(){function t(t){e(this,t);this.treksToDisplay=[];this.colorPrimary="#6b0030";this.colorPrimaryTint="#974c6e";this.isLargeView=false;this.step=10;this.handleInfiniteScrollBind=this.handleInfiniteScroll.bind(this);this.shouldAddInfiniteScrollEvent=true}t.prototype.connectedCallback=function(){var t=this;this.handleInfiniteScrollEvent(true);if(s.currentTreks){this.treksToDisplay=__spreadArray([],s.currentTreks.slice(0,this.step),true)}a("currentTreks",(function(){t.handleInfiniteScrollEvent(true);t.element.scroll({top:0});if(s.currentTreks){t.treksToDisplay=__spreadArray([],s.currentTreks.slice(0,t.step),true)}}));a("treksWithinBounds",(function(){t.handleInfiniteScrollEvent(true);t.element.scroll({top:0});if(s.treksWithinBounds){t.treksToDisplay=__spreadArray([],s.treksWithinBounds.slice(0,t.step),true)}}))};t.prototype.handleInfiniteScroll=function(t){if(t.composedPath()[0].scrollTop+t.composedPath()[0].scrollHeight/2>=t.composedPath()[0].scrollHeight){if(this.treksToDisplay.length<s.treksWithinBounds.length){this.treksToDisplay=s.treksWithinBounds.slice(0,this.treksToDisplay.length+this.step>=s.treksWithinBounds.length?s.treksWithinBounds.length:this.treksToDisplay.length+this.step)}else{this.handleInfiniteScrollEvent(false)}}};t.prototype.handleInfiniteScrollEvent=function(t){if(t){if(this.shouldAddInfiniteScrollEvent){this.element.addEventListener("scroll",this.handleInfiniteScrollBind);this.shouldAddInfiniteScrollEvent=!t}}else{this.element.removeEventListener("scroll",this.handleInfiniteScrollBind);this.shouldAddInfiniteScrollEvent=!t}};t.prototype.disconnectedCallback=function(){this.handleInfiniteScrollEvent(false)};t.prototype.render=function(){var t=this;return i(n,{style:{"--color-primary":this.colorPrimary,"--color-primary-tint":this.colorPrimaryTint}},this.treksToDisplay.map((function(e){return i("grw-trek-card",{key:"trek-".concat(e.id),trek:e,"is-large-view":t.isLargeView,"color-primary":t.colorPrimary,"color-primary-tint":t.colorPrimaryTint})})))};Object.defineProperty(t.prototype,"element",{get:function(){return r(this)},enumerable:false,configurable:true});return t}());M.style=z;var C=t("grw_treks_provider",function(){function t(t){e(this,t);this.language="fr";this.controller=new AbortController;this.signal=this.controller.signal}t.prototype.connectedCallback=function(){s.api=this.api;var t="".concat(this.api,"trek/?language=").concat(this.language,"&published=true");this.inBbox&&(t+="&in_bbox=".concat(this.inBbox));this.cities&&(t+="&cities=".concat(this.cities));this.districts&&(t+="&districts=".concat(this.districts));this.structures&&(t+="&structures=".concat(this.structures));this.themes&&(t+="&themes=".concat(this.themes));this.portals&&(t+="&portals=".concat(this.portals));this.routes&&(t+="&routes=".concat(this.routes));this.practices&&(t+="&practices=".concat(this.practices));t+="&fields=id,name,attachments,description_teaser,difficulty,duration,ascent,length_2d,practice,themes,route,departure,departure_geom&page_size=999";Promise.all([fetch("".concat(this.api,"trek_difficulty/?language=").concat(this.language,"&fields=id,label,pictogram"),{signal:this.signal}),fetch("".concat(this.api,"trek_route/?language=").concat(this.language,"&fields=id,route,pictogram"),{signal:this.signal}),fetch("".concat(this.api,"trek_practice/?language=").concat(this.language,"&fields=id,name,pictogram"),{signal:this.signal}),fetch("".concat(this.api,"theme/?language=").concat(this.language,"&fields=id,label,pictogram"),{signal:this.signal}),fetch(t,{signal:this.signal})]).then((function(t){return Promise.all(t.map((function(t){return t.json()})))})).then((function(t){var e=t[0],i=t[1],n=t[2],o=t[3],r=t[4];s.treksNetworkError=false;s.difficulties=e.results;s.routes=i.results;s.practices=n.results.map((function(t){return Object.assign(Object.assign({},t),{selected:false})}));s.themes=o.results;s.durations=[{id:1,name:"0 - 1h",minValue:0,maxValue:1,selected:false},{id:2,name:"1 - 2h",minValue:1,maxValue:2,selected:false},{id:3,name:"2 - 5h",minValue:2,maxValue:5,selected:false},{id:4,name:"5 - 10h",minValue:5,maxValue:10,selected:false}];s.treks=r.results;s.currentTreks=r.results;s.treksWithinBounds=r.results})).catch((function(){return s.treksNetworkError=true}))};t.prototype.disconnectedCallback=function(){this.controller.abort();s.treksNetworkError=false};t.prototype.render=function(){return i(n,null)};return t}())}}}));