UNPKG

dolphin-leaflet

Version:

leaflet for dmap

6 lines 361 kB
/*! version:1.1.6 */ define(function(){return function(t){function e(i){if(n[i])return n[i].exports;var o=n[i]={i:i,l:!1,exports:{}};return t[i].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var i=window.webpackJsonp;window.webpackJsonp=function(e,n,s){for(var a,r,h=0,l=[];h<e.length;h++)r=e[h],o[r]&&l.push(o[r][0]),o[r]=0;for(a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a]);for(i&&i(e,n,s);l.length;)l.shift()()};var n={},o={4:0};return e.e=function(t){function i(){r.onerror=r.onload=null,clearTimeout(h);var e=o[t];0!==e&&(e&&e[1](new Error("Loading chunk "+t+" failed.")),o[t]=void 0)}var n=o[t];if(0===n)return new Promise(function(t){t()});if(n)return n[2];var s=new Promise(function(e,i){n=o[t]=[e,i]});n[2]=s;var a=document.getElementsByTagName("head")[0],r=document.createElement("script");r.type="text/javascript",r.charset="utf-8",r.async=!0,r.timeout=12e4,e.nc&&r.setAttribute("nonce",e.nc),r.src=e.p+""+({0:"widgets",1:"drawLayer",2:"velocityLayer",3:"esri-leaflet"}[t]||t)+".js";var h=setTimeout(i,12e4);return r.onerror=r.onload=i,a.appendChild(r),s},e.m=t,e.c=n,e.d=function(t,i,n){e.o(t,i)||Object.defineProperty(t,i,{configurable:!1,enumerable:!0,get:n})},e.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(i,"a",i),i},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="./dist/dmap/leaflet/",e.oe=function(t){throw console.error(t),t},e(e.s=42)}([function(t,e,i){"use strict";i.d(e,"e",function(){return n}),i.d(e,"f",function(){return o}),i.d(e,"h",function(){return s}),i.d(e,"g",function(){return a}),i.d(e,"l",function(){return r}),i.d(e,"d",function(){return h}),i.d(e,"m",function(){return l}),i.d(e,"j",function(){return u}),i.d(e,"k",function(){return c}),i.d(e,"b",function(){return d}),i.d(e,"a",function(){return p}),i.d(e,"i",function(){return _}),i.d(e,"c",function(){return f}),i.d(e,"o",function(){return m}),i.d(e,"n",function(){return g});var n=1,o=2,s=4,a=5,r=484813681109536e-20,h=Math.PI/2,l=.16666666666666666,u=.04722222222222222,c=.022156084656084655,d=1e-10,p=.017453292519943295,_=57.29577951308232,f=Math.PI/4,m=2*Math.PI,g=3.14159265359},function(t,e,i){"use strict";var n=i(0),o=i(4);e.a=function(t){return Math.abs(t)<=n.n?t:t-Object(o.a)(t)*n.o}},function(t,e,i){"use strict";e.a=function(t,e,i){var n=t*e;return i/Math.sqrt(1-n*n)}},function(t,e,i){"use strict";e.a=function(t){return Math.abs(t)>1&&(t=t>1?1:-1),Math.asin(t)}},function(t,e,i){"use strict";e.a=function(t){return t<0?-1:1}},function(t,e,i){"use strict";var n=i(0),o=i(4);e.a=function(t){return Math.abs(t)<n.d?t:t-Object(o.a)(t)*Math.PI}},function(t,e){function i(t,e){var i=t[1]||"",o=t[3];if(!o)return i;if(e&&"function"==typeof btoa){var s=n(o);return[i].concat(o.sources.map(function(t){return"/*# sourceURL="+o.sourceRoot+t+" */"})).concat([s]).join("\n")}return[i].join("\n")}function n(t){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(t))))+" */"}t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var n=i(e,t);return e[2]?"@media "+e[2]+"{"+n+"}":n}).join("")},e.i=function(t,i){"string"==typeof t&&(t=[[null,t,""]]);for(var n={},o=0;o<this.length;o++){var s=this[o][0];"number"==typeof s&&(n[s]=!0)}for(o=0;o<t.length;o++){var a=t[o];"number"==typeof a[0]&&n[a[0]]||(i&&!a[2]?a[2]=i:i&&(a[2]="("+a[2]+") and ("+i+")"),e.push(a))}},e}},function(t,e,i){"use strict";function n(t,e,i,n){f=i,g=n||{};var s=Object(l.a)(t,e);return o(s),function(e){for(var i=[],n=0;n<s.length;n++){var a=s[n],r=c[a.id];r.refs--,i.push(r)}e?(s=Object(l.a)(t,e),o(s)):s=[];for(var n=0;n<i.length;n++){var r=i[n];if(0===r.refs){for(var h=0;h<r.parts.length;h++)r.parts[h]();delete c[r.id]}}}}function o(t){for(var e=0;e<t.length;e++){var i=t[e],n=c[i.id];if(n){n.refs++;for(var o=0;o<n.parts.length;o++)n.parts[o](i.parts[o]);for(;o<i.parts.length;o++)n.parts.push(a(i.parts[o]));n.parts.length>i.parts.length&&(n.parts.length=i.parts.length)}else{for(var s=[],o=0;o<i.parts.length;o++)s.push(a(i.parts[o]));c[i.id]={id:i.id,refs:1,parts:s}}}}function s(){var t=document.createElement("style");return t.type="text/css",d.appendChild(t),t}function a(t){var e,i,n=document.querySelector("style["+v+'~="'+t.id+'"]');if(n){if(f)return m;n.parentNode.removeChild(n)}if(y){var o=_++;n=p||(p=s()),e=r.bind(null,n,o,!1),i=r.bind(null,n,o,!0)}else n=s(),e=h.bind(null,n),i=function(){n.parentNode.removeChild(n)};return e(t),function(n){if(n){if(n.css===t.css&&n.media===t.media&&n.sourceMap===t.sourceMap)return;e(t=n)}else i()}}function r(t,e,i,n){var o=i?"":n.css;if(t.styleSheet)t.styleSheet.cssText=b(e,o);else{var s=document.createTextNode(o),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(s,a[e]):t.appendChild(s)}}function h(t,e){var i=e.css,n=e.media,o=e.sourceMap;if(n&&t.setAttribute("media",n),g.ssrId&&t.setAttribute(v,e.id),o&&(i+="\n/*# sourceURL="+o.sources[0]+" */",i+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */"),t.styleSheet)t.styleSheet.cssText=i;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(i))}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=n;var l=i(49),u="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!u)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var c={},d=u&&(document.head||document.getElementsByTagName("head")[0]),p=null,_=0,f=!1,m=function(){},g=null,v="data-vue-ssr-id",y="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase()),b=function(){var t=[];return function(e,i){return t[e]=i,t.filter(Boolean).join("\n")}}()},function(t,e,i){"use strict";var n=i(0);e.a=function(t,e,i){var o=t*i,s=.5*t;return o=Math.pow((1-o)/(1+o),s),Math.tan(.5*(n.d-e))/o}},function(t,e,i){"use strict";var n=i(0);e.a=function(t,e){for(var i,o,s=.5*t,a=n.d-2*Math.atan(e),r=0;r<=15;r++)if(i=t*Math.sin(a),o=n.d-2*Math.atan(e*Math.pow((1-i)/(1+i),s))-a,a+=o,Math.abs(o)<=1e-10)return a;return-9999}},function(t,e,i){"use strict";e.a=function(t,e,i,n,o){return t*o-e*Math.sin(2*o)+i*Math.sin(4*o)-n*Math.sin(6*o)}},function(t,e,i){"use strict";e.a=function(t){return 1-.25*t*(1+t/16*(3+1.25*t))}},function(t,e,i){"use strict";e.a=function(t){return.375*t*(1+.25*t*(1+.46875*t))}},function(t,e,i){"use strict";e.a=function(t){return.05859375*t*t*(1+.75*t)}},function(t,e,i){"use strict";e.a=function(t){return t*t*t*(35/3072)}},function(t,e,i){"use strict";function n(t,e){if(!(this instanceof n))return new n(t);e=e||function(t){if(t)throw t};var i=Object(o.a)(t);if("object"!=typeof i)return void e(t);var a=n.projections.get(i.projName);if(!a)return void e(t);if(i.datumCode&&"none"!==i.datumCode){var c=Object(u.a)(h.a,i.datumCode);c&&(i.datum_params=c.towgs84?c.towgs84.split(","):null,i.ellps=c.ellipse,i.datumName=c.datumName?c.datumName:i.datumCode)}i.k0=i.k0||1,i.axis=i.axis||"enu",i.ellps=i.ellps||"wgs84";var d=Object(r.b)(i.a,i.b,i.rf,i.ellps,i.sphere),p=Object(r.a)(d.a,d.b,d.rf,i.R_A),_=i.datum||Object(l.a)(i.datumCode,i.datum_params,d.a,d.b,p.es,p.ep2);Object(s.a)(this,i),Object(s.a)(this,a),this.a=d.a,this.b=d.b,this.rf=d.rf,this.sphere=d.sphere,this.es=p.es,this.e=p.e,this.ep2=p.ep2,this.datum=_,this.init(),e(null,this)}var o=i(78),s=i(84),a=i(85),r=i(88),h=i(90),l=i(91),u=i(16);n.projections=a.a,n.projections.start(),e.a=n},function(t,e,i){"use strict";function n(t,e){if(t[e])return t[e];for(var i,n=Object.keys(t),s=e.toLowerCase().replace(o,""),a=-1;++a<n.length;)if(i=n[a],i.toLowerCase().replace(o,"")===s)return t[i]}e.a=n;var o=/[\s_\-\/\(\)]/g},function(t,e,i){"use strict";e.a=function(t,e,i,n){return i*=e,e*=e,n[0]*t-i*(n[1]+e*(n[2]+e*(n[3]+e*n[4])))}},function(t,e,i){"use strict";e.a=function(t,e,i){var n=e*i;return t/Math.sqrt(1-n*n)}},function(t,e,i){"use strict";e.a=function(t,e,i,n,o){var s,a;s=t/e;for(var r=0;r<15;r++)if(a=(t-(e*s-i*Math.sin(2*s)+n*Math.sin(4*s)-o*Math.sin(6*s)))/(e-2*i*Math.cos(2*s)+4*n*Math.cos(4*s)-6*o*Math.cos(6*s)),s+=a,Math.abs(a)<=1e-10)return s;return NaN}},function(t,e,i){"use strict";e.a=function(t,e){var i;return t>1e-7?(i=t*e,(1-t*t)*(e/(1-i*i)-.5/t*Math.log((1-i)/(1+i)))):2*e}},function(t,e,i){"use strict";function n(t,e){return e--&&t.map(function(t){return n(t,e)})||s(t)&&r(t[1],t[0])||r(t)}e.a=n;var o=T,s=o.isArray,a=L,r=a.latLng},function(t,e,i){"use strict";var n=i(24),o=L,s=o.CircleMarker,a=o.Path;e.a=s.extend({options:{glow:!1,weight:.5,color:"#000",stroke:!0,radius:5,angle:0},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng);var t=this.options.offset;t&&(this._point=this._point.add(t)),this._updateBounds()},beforeAdd:function(t){var e=this.options;t.options.preferCanvas||e.renderer||(e.renderer=t.__canvas=t.__canvas||L.canvas()),s.prototype.beforeAdd.call(this,t)},_updatePath:function(){var t=this,e=t.options,i=t._renderer,o=e.src;switch(o=o||"circle"){case"triangle":return i._updateTriangle(t);case"rect":return i._updateRect(t);case"circle":return i._updateCircle(t);default:t._loader?i._updateIcon(t):(o&&0!==o.indexOf("/")&&!o.includes("http")&&(o=e.src=T+o),!t.loader&&(t.loader=Object(n.a)(o)).then(function(e){t._loader=e,t._radius=e.width/2,t._radiusY=e.height/2,t.redraw()}))}}}),a.include({onAdd:function(){var t=this.options,e=this._map,i=this._renderer;if(t.glow||t.flow||t.bounce||t.rotate){var n=e.__glow,o=e.__animate;(t.glow||t.flow)&&n._initPath(this),(t.bounce||t.rotate)&&o._initPath(this)}i._initPath(this),this._reset(),i._addPath(this)},onRemove:function(){var t=this._map;this._renderer._removePath(this),t.__glow._removePath(this),t.__animate._removePath(this)}})},function(t,e,i){/* @preserve * Leaflet 1.3.3, a JS library for interactive maps. http://leafletjs.com * (c) 2010-2018 Vladimir Agafonkin, (c) 2010-2011 CloudMade */ !function(t,i){i(e)}(0,function(t){"use strict";function e(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}function i(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)}}function n(t){return t._leaflet_id=t._leaflet_id||++fe,t._leaflet_id}function o(t,e,i){var n,o,s,a;return a=function(){n=!1,o&&(s.apply(i,o),o=!1)},s=function(){n?o=arguments:(t.apply(i,arguments),setTimeout(a,e),n=!0)}}function s(t,e,i){var n=e[1],o=e[0],s=n-o;return t===n&&i?t:((t-o)%s+s)%s+o}function a(){return!1}function r(t,e){var i=Math.pow(10,void 0===e?6:e);return Math.round(t*i)/i}function h(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function l(t){return h(t).split(/\s+/)}function u(t,e){t.hasOwnProperty("options")||(t.options=t.options?_e(t.options):{});for(var i in e)t.options[i]=e[i];return t.options}function c(t,e,i){var n=[];for(var o in t)n.push(encodeURIComponent(i?o.toUpperCase():o)+"="+encodeURIComponent(t[o]));return(e&&-1!==e.indexOf("?")?"&":"?")+n.join("&")}function d(t,e){return t.replace(me,function(t,i){var n=e[i];if(void 0===n)throw new Error("No value provided for variable "+t);return"function"==typeof n&&(n=n(e)),n})}function p(t,e){for(var i=0;i<t.length;i++)if(t[i]===e)return i;return-1}function _(t){return window["webkit"+t]||window["moz"+t]||window["ms"+t]}function f(t){var e=+new Date,i=Math.max(0,16-(e-ye));return ye=e+i,window.setTimeout(t,i)}function m(t,e,n){if(!n||be!==f)return be.call(window,i(t,e));t.call(e)}function g(t){t&&Me.call(window,t)}function v(){}function y(t){if("undefined"!=typeof L&&L&&L.Mixin){t=ge(t)?t:[t];for(var e=0;e<t.length;e++)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)}}function b(t,e,i){this.x=i?Math.round(t):t,this.y=i?Math.round(e):e}function M(t,e,i){return t instanceof b?t:ge(t)?new b(t[0],t[1]):void 0===t||null===t?t:"object"==typeof t&&"x"in t&&"y"in t?new b(t.x,t.y):new b(t,e,i)}function x(t,e){if(t)for(var i=e?[t,e]:t,n=0,o=i.length;n<o;n++)this.extend(i[n])}function w(t,e){return!t||t instanceof x?t:new x(t,e)}function P(t,e){if(t)for(var i=e?[t,e]:t,n=0,o=i.length;n<o;n++)this.extend(i[n])}function C(t,e){return t instanceof P?t:new P(t,e)}function T(t,e,i){if(isNaN(t)||isNaN(e))throw new Error("Invalid LatLng object: ("+t+", "+e+")");this.lat=+t,this.lng=+e,void 0!==i&&(this.alt=+i)}function k(t,e,i){return t instanceof T?t:ge(t)&&"object"!=typeof t[0]?3===t.length?new T(t[0],t[1],t[2]):2===t.length?new T(t[0],t[1]):null:void 0===t||null===t?t:"object"==typeof t&&"lat"in t?new T(t.lat,"lng"in t?t.lng:t.lon,t.alt):void 0===e?null:new T(t,e,i)}function O(t,e,i,n){if(ge(t))return this._a=t[0],this._b=t[1],this._c=t[2],void(this._d=t[3]);this._a=t,this._b=e,this._c=i,this._d=n}function S(t,e,i,n){return new O(t,e,i,n)}function z(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function j(t,e){var i,n,o,s,a,r,h="";for(i=0,o=t.length;i<o;i++){for(a=t[i],n=0,s=a.length;n<s;n++)r=a[n],h+=(n?"L":"M")+r.x+" "+r.y;h+=e?ui?"z":"x":""}return h||"M0 0"}function E(t){return navigator.userAgent.toLowerCase().indexOf(t)>=0}function A(t,e,i,n){return"touchstart"===e?B(t,i,n):"touchmove"===e?G(t,i,n):"touchend"===e&&F(t,i,n),this}function I(t,e,i){var n=t["_leaflet_"+e+i];return"touchstart"===e?t.removeEventListener(pi,n,!1):"touchmove"===e?t.removeEventListener(_i,n,!1):"touchend"===e&&(t.removeEventListener(fi,n,!1),t.removeEventListener(mi,n,!1)),this}function B(t,e,n){var o=i(function(t){if("mouse"!==t.pointerType&&t.MSPOINTER_TYPE_MOUSE&&t.pointerType!==t.MSPOINTER_TYPE_MOUSE){if(!(gi.indexOf(t.target.tagName)<0))return;xt(t)}D(t,e)});t["_leaflet_touchstart"+n]=o,t.addEventListener(pi,o,!1),yi||(document.documentElement.addEventListener(pi,N,!0),document.documentElement.addEventListener(_i,R,!0),document.documentElement.addEventListener(fi,Z,!0),document.documentElement.addEventListener(mi,Z,!0),yi=!0)}function N(t){vi[t.pointerId]=t,bi++}function R(t){vi[t.pointerId]&&(vi[t.pointerId]=t)}function Z(t){delete vi[t.pointerId],bi--}function D(t,e){t.touches=[];for(var i in vi)t.touches.push(vi[i]);t.changedTouches=[t],e(t)}function G(t,e,i){var n=function(t){(t.pointerType!==t.MSPOINTER_TYPE_MOUSE&&"mouse"!==t.pointerType||0!==t.buttons)&&D(t,e)};t["_leaflet_touchmove"+i]=n,t.addEventListener(_i,n,!1)}function F(t,e,i){var n=function(t){D(t,e)};t["_leaflet_touchend"+i]=n,t.addEventListener(fi,n,!1),t.addEventListener(mi,n,!1)}function q(t,e,i){function n(t){var e;if(oi){if(!Ne||"mouse"===t.pointerType)return;e=bi}else e=t.touches.length;if(!(e>1)){var i=Date.now(),n=i-(s||i);a=t.touches?t.touches[0]:t,r=n>0&&n<=h,s=i}}function o(t){if(r&&!a.cancelBubble){if(oi){if(!Ne||"mouse"===t.pointerType)return;var i,n,o={};for(n in a)i=a[n],o[n]=i&&i.bind?i.bind(a):i;a=o}a.type="dblclick",e(a),s=null}}var s,a,r=!1,h=250;return t[Li+Mi+i]=n,t[Li+xi+i]=o,t[Li+"dblclick"+i]=e,t.addEventListener(Mi,n,!1),t.addEventListener(xi,o,!1),t.addEventListener("dblclick",e,!1),this}function H(t,e){var i=t[Li+Mi+e],n=t[Li+xi+e],o=t[Li+"dblclick"+e];return t.removeEventListener(Mi,i,!1),t.removeEventListener(xi,n,!1),Ne||t.removeEventListener("dblclick",o,!1),this}function U(t){return"string"==typeof t?document.getElementById(t):t}function W(t,e){var i=t.style[e]||t.currentStyle&&t.currentStyle[e];if((!i||"auto"===i)&&document.defaultView){var n=document.defaultView.getComputedStyle(t,null);i=n?n[e]:null}return"auto"===i?null:i}function V(t,e,i){var n=document.createElement(t);return n.className=e||"",i&&i.appendChild(n),n}function J(t){var e=t.parentNode;e&&e.removeChild(t)}function K(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function Y(t){var e=t.parentNode;e.lastChild!==t&&e.appendChild(t)}function X(t){var e=t.parentNode;e.firstChild!==t&&e.insertBefore(t,e.firstChild)}function Q(t,e){if(void 0!==t.classList)return t.classList.contains(e);var i=it(t);return i.length>0&&new RegExp("(^|\\s)"+e+"(\\s|$)").test(i)}function $(t,e){if(void 0!==t.classList)for(var i=l(e),n=0,o=i.length;n<o;n++)t.classList.add(i[n]);else if(!Q(t,e)){var s=it(t);et(t,(s?s+" ":"")+e)}}function tt(t,e){void 0!==t.classList?t.classList.remove(e):et(t,h((" "+it(t)+" ").replace(" "+e+" "," ")))}function et(t,e){void 0===t.className.baseVal?t.className=e:t.className.baseVal=e}function it(t){return void 0===t.className.baseVal?t.className:t.className.baseVal}function nt(t,e){"opacity"in t.style?t.style.opacity=e:"filter"in t.style&&ot(t,e)}function ot(t,e){var i=!1,n="DXImageTransform.Microsoft.Alpha";try{i=t.filters.item(n)}catch(t){if(1===e)return}e=Math.round(100*e),i?(i.Enabled=100!==e,i.Opacity=e):t.style.filter+=" progid:"+n+"(opacity="+e+")"}function st(t){for(var e=document.documentElement.style,i=0;i<t.length;i++)if(t[i]in e)return t[i];return!1}function at(t,e,i){var n=e||new b(0,0);t.style[wi]=(Ye?"translate("+n.x+"px,"+n.y+"px)":"translate3d("+n.x+"px,"+n.y+"px,0)")+(i?" scale("+i+")":"")}function rt(t,e){t._leaflet_pos=e,$e?at(t,e):(t.style.left=e.x+"px",t.style.top=e.y+"px")}function ht(t){return t._leaflet_pos||new b(0,0)}function lt(){ft(window,"dragstart",xt)}function ut(){mt(window,"dragstart",xt)}function ct(t){for(;-1===t.tabIndex;)t=t.parentNode;t.style&&(dt(),ki=t,Oi=t.style.outline,t.style.outline="none",ft(window,"keydown",dt))}function dt(){ki&&(ki.style.outline=Oi,ki=void 0,Oi=void 0,mt(window,"keydown",dt))}function pt(t){do{t=t.parentNode}while(!(t.offsetWidth&&t.offsetHeight||t===document.body));return t}function _t(t){var e=t.getBoundingClientRect();return{x:e.width/t.offsetWidth||1,y:e.height/t.offsetHeight||1,boundingClientRect:e}}function ft(t,e,i,n){if("object"==typeof e)for(var o in e)gt(t,o,e[o],i);else{e=l(e);for(var s=0,a=e.length;s<a;s++)gt(t,e[s],i,n)}return this}function mt(t,e,i,n){if("object"==typeof e)for(var o in e)vt(t,o,e[o],i);else if(e){e=l(e);for(var s=0,a=e.length;s<a;s++)vt(t,e[s],i,n)}else{for(var r in t[ji])vt(t,r,t[ji][r]);delete t[ji]}return this}function gt(t,e,i,o){var s=e+n(i)+(o?"_"+n(o):"");if(t[ji]&&t[ji][s])return this;var a=function(e){return i.call(o||t,e||window.event)},r=a;oi&&0===e.indexOf("touch")?A(t,e,a,s):!si||"dblclick"!==e||!q||oi&&He?"addEventListener"in t?"mousewheel"===e?t.addEventListener("onwheel"in t?"wheel":"mousewheel",a,!1):"mouseenter"===e||"mouseleave"===e?(a=function(e){e=e||window.event,kt(t,e)&&r(e)},t.addEventListener("mouseenter"===e?"mouseover":"mouseout",a,!1)):("click"===e&&Ze&&(a=function(t){Ot(t,r)}),t.addEventListener(e,a,!1)):"attachEvent"in t&&t.attachEvent("on"+e,a):q(t,a,s),t[ji]=t[ji]||{},t[ji][s]=a}function vt(t,e,i,o){var s=e+n(i)+(o?"_"+n(o):""),a=t[ji]&&t[ji][s];if(!a)return this;oi&&0===e.indexOf("touch")?I(t,e,s):!si||"dblclick"!==e||!H||oi&&He?"removeEventListener"in t?"mousewheel"===e?t.removeEventListener("onwheel"in t?"wheel":"mousewheel",a,!1):t.removeEventListener("mouseenter"===e?"mouseover":"mouseleave"===e?"mouseout":e,a,!1):"detachEvent"in t&&t.detachEvent("on"+e,a):H(t,s),t[ji][s]=null}function yt(t){return t.stopPropagation?t.stopPropagation():t.originalEvent?t.originalEvent._stopped=!0:t.cancelBubble=!0,Tt(t),this}function bt(t){return gt(t,"mousewheel",yt),this}function Mt(t){return ft(t,"mousedown touchstart dblclick",yt),gt(t,"click",Ct),this}function xt(t){return t.preventDefault?t.preventDefault():t.returnValue=!1,this}function Lt(t){return xt(t),yt(t),this}function wt(t,e){if(!e)return new b(t.clientX,t.clientY);var i=_t(e),n=i.boundingClientRect;return new b((t.clientX-n.left)/i.x-e.clientLeft,(t.clientY-n.top)/i.y-e.clientTop)}function Pt(t){return Ne?t.wheelDeltaY/2:t.deltaY&&0===t.deltaMode?-t.deltaY/Ei:t.deltaY&&1===t.deltaMode?20*-t.deltaY:t.deltaY&&2===t.deltaMode?60*-t.deltaY:t.deltaX||t.deltaZ?0:t.wheelDelta?(t.wheelDeltaY||t.wheelDelta)/2:t.detail&&Math.abs(t.detail)<32765?20*-t.detail:t.detail?t.detail/-32765*60:0}function Ct(t){Ai[t.type]=!0}function Tt(t){var e=Ai[t.type];return Ai[t.type]=!1,e}function kt(t,e){var i=e.relatedTarget;if(!i)return!0;try{for(;i&&i!==t;)i=i.parentNode}catch(t){return!1}return i!==t}function Ot(t,e){var i=t.timeStamp||t.originalEvent&&t.originalEvent.timeStamp,n=Si&&i-Si;if(n&&n>100&&n<500||t.target._simulatedClick&&!t._simulated)return void Lt(t);Si=i,e(t)}function St(t,e){return new Ni(t,e)}function zt(t,e){if(!e||!t.length)return t.slice();var i=e*e;return t=Bt(t,i),t=At(t,i)}function jt(t,e,i){return Math.sqrt(Gt(t,e,i,!0))}function Et(t,e,i){return Gt(t,e,i)}function At(t,e){var i=t.length,n=typeof Uint8Array!=void 0+""?Uint8Array:Array,o=new n(i);o[0]=o[i-1]=1,It(t,o,e,0,i-1);var s,a=[];for(s=0;s<i;s++)o[s]&&a.push(t[s]);return a}function It(t,e,i,n,o){var s,a,r,h=0;for(a=n+1;a<=o-1;a++)(r=Gt(t[a],t[n],t[o],!0))>h&&(s=a,h=r);h>i&&(e[s]=1,It(t,e,i,n,s),It(t,e,i,s,o))}function Bt(t,e){for(var i=[t[0]],n=1,o=0,s=t.length;n<s;n++)Dt(t[n],t[o])>e&&(i.push(t[n]),o=n);return o<s-1&&i.push(t[s-1]),i}function Nt(t,e,i,n,o){var s,a,r,h=n?Ki:Zt(t,i),l=Zt(e,i);for(Ki=l;;){if(!(h|l))return[t,e];if(h&l)return!1;s=h||l,a=Rt(t,e,s,i,o),r=Zt(a,i),s===h?(t=a,h=r):(e=a,l=r)}}function Rt(t,e,i,n,o){var s,a,r=e.x-t.x,h=e.y-t.y,l=n.min,u=n.max;return 8&i?(s=t.x+r*(u.y-t.y)/h,a=u.y):4&i?(s=t.x+r*(l.y-t.y)/h,a=l.y):2&i?(s=u.x,a=t.y+h*(u.x-t.x)/r):1&i&&(s=l.x,a=t.y+h*(l.x-t.x)/r),new b(s,a,o)}function Zt(t,e){var i=0;return t.x<e.min.x?i|=1:t.x>e.max.x&&(i|=2),t.y<e.min.y?i|=4:t.y>e.max.y&&(i|=8),i}function Dt(t,e){var i=e.x-t.x,n=e.y-t.y;return i*i+n*n}function Gt(t,e,i,n){var o,s=e.x,a=e.y,r=i.x-s,h=i.y-a,l=r*r+h*h;return l>0&&(o=((t.x-s)*r+(t.y-a)*h)/l,o>1?(s=i.x,a=i.y):o>0&&(s+=r*o,a+=h*o)),r=t.x-s,h=t.y-a,n?r*r+h*h:new b(s,a)}function Ft(t){return!ge(t[0])||"object"!=typeof t[0][0]&&void 0!==t[0][0]}function qt(t){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),Ft(t)}function Ht(t,e,i){var n,o,s,a,r,h,l,u,c,d=[1,4,2,8];for(o=0,l=t.length;o<l;o++)t[o]._code=Zt(t[o],e);for(a=0;a<4;a++){for(u=d[a],n=[],o=0,l=t.length,s=l-1;o<l;s=o++)r=t[o],h=t[s],r._code&u?h._code&u||(c=Rt(h,r,u,e,i),c._code=Zt(c,e),n.push(c)):(h._code&u&&(c=Rt(h,r,u,e,i),c._code=Zt(c,e),n.push(c)),n.push(r));t=n}return t}function Ut(t){return new fn(t)}function Wt(t,e){return new vn(t,e)}function Vt(t,e){return new bn(t,e)}function Jt(t,e,i){return new Mn(t,e,i)}function Kt(t,e){return new xn(t,e)}function Yt(t,e){return new Ln(t,e)}function Xt(t,e){var i,n,o,s,a="Feature"===t.type?t.geometry:t,r=a?a.coordinates:null,h=[],l=e&&e.pointToLayer,u=e&&e.coordsToLatLng||Qt;if(!r&&!a)return null;switch(a.type){case"Point":return i=u(r),l?l(t,i):new vn(i);case"MultiPoint":for(o=0,s=r.length;o<s;o++)i=u(r[o]),h.push(l?l(t,i):new vn(i));return new pn(h);case"LineString":case"MultiLineString":return n=$t(r,"LineString"===a.type?0:1,u),new xn(n,e);case"Polygon":case"MultiPolygon":return n=$t(r,"Polygon"===a.type?1:2,u),new Ln(n,e);case"GeometryCollection":for(o=0,s=a.geometries.length;o<s;o++){var c=Xt({geometry:a.geometries[o],type:"Feature",properties:t.properties},e);c&&h.push(c)}return new pn(h);default:throw new Error("Invalid GeoJSON object.")}}function Qt(t){return new T(t[1],t[0],t[2])}function $t(t,e,i){for(var n,o=[],s=0,a=t.length;s<a;s++)n=e?$t(t[s],e-1,i):(i||Qt)(t[s]),o.push(n);return o}function te(t,e){return e="number"==typeof e?e:6,void 0!==t.alt?[r(t.lng,e),r(t.lat,e),r(t.alt,e)]:[r(t.lng,e),r(t.lat,e)]}function ee(t,e,i,n){for(var o=[],s=0,a=t.length;s<a;s++)o.push(e?ee(t[s],e-1,i,n):te(t[s],n));return!e&&i&&o.push(o[0]),o}function ie(t,i){return t.feature?e({},t.feature,{geometry:i}):ne(i)}function ne(t){return"Feature"===t.type||"FeatureCollection"===t.type?t:{type:"Feature",properties:{},geometry:t}}function oe(t,e){return new wn(t,e)}function se(t,e,i){return new On(t,e,i)}function ae(t){return new In(t)}function re(t){return new Bn(t)}function he(t,e){return new Nn(t,e)}function le(t,e){return new Rn(t,e)}function ue(t){return li?new Dn(t):null}function ce(t){return ui||ci?new Hn(t):null}function de(t,e){return new Un(t,e)}var pe=Object.freeze;Object.freeze=function(t){return t};var _e=Object.create||function(){function t(){}return function(e){return t.prototype=e,new t}}(),fe=0,me=/\{ *([\w_-]+) *\}/g,ge=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)},ve="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=",ye=0,be=window.requestAnimationFrame||_("RequestAnimationFrame")||f,Me=window.cancelAnimationFrame||_("CancelAnimationFrame")||_("CancelRequestAnimationFrame")||function(t){window.clearTimeout(t)},xe=(Object.freeze||Object)({freeze:pe,extend:e,create:_e,bind:i,lastId:fe,stamp:n,throttle:o,wrapNum:s,falseFn:a,formatNum:r,trim:h,splitWords:l,setOptions:u,getParamString:c,template:d,isArray:ge,indexOf:p,emptyImageUrl:ve,requestFn:be,cancelFn:Me,requestAnimFrame:m,cancelAnimFrame:g});v.extend=function(t){var i=function(){this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},n=i.__super__=this.prototype,o=_e(n);o.constructor=i,i.prototype=o;for(var s in this)this.hasOwnProperty(s)&&"prototype"!==s&&"__super__"!==s&&(i[s]=this[s]);return t.statics&&(e(i,t.statics),delete t.statics),t.includes&&(y(t.includes),e.apply(null,[o].concat(t.includes)),delete t.includes),o.options&&(t.options=e(_e(o.options),t.options)),e(o,t),o._initHooks=[],o.callInitHooks=function(){if(!this._initHooksCalled){n.callInitHooks&&n.callInitHooks.call(this),this._initHooksCalled=!0;for(var t=0,e=o._initHooks.length;t<e;t++)o._initHooks[t].call(this)}},i},v.include=function(t){return e(this.prototype,t),this},v.mergeOptions=function(t){return e(this.prototype.options,t),this},v.addInitHook=function(t){var e=Array.prototype.slice.call(arguments,1),i="function"==typeof t?t:function(){this[t].apply(this,e)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(i),this};var Le={on:function(t,e,i){if("object"==typeof t)for(var n in t)this._on(n,t[n],e);else{t=l(t);for(var o=0,s=t.length;o<s;o++)this._on(t[o],e,i)}return this},off:function(t,e,i){if(t)if("object"==typeof t)for(var n in t)this._off(n,t[n],e);else{t=l(t);for(var o=0,s=t.length;o<s;o++)this._off(t[o],e,i)}else delete this._events;return this},_on:function(t,e,i){this._events=this._events||{};var n=this._events[t];n||(n=[],this._events[t]=n),i===this&&(i=void 0);for(var o={fn:e,ctx:i},s=n,a=0,r=s.length;a<r;a++)if(s[a].fn===e&&s[a].ctx===i)return;s.push(o)},_off:function(t,e,i){var n,o,s;if(this._events&&(n=this._events[t])){if(!e){for(o=0,s=n.length;o<s;o++)n[o].fn=a;return void delete this._events[t]}if(i===this&&(i=void 0),n)for(o=0,s=n.length;o<s;o++){var r=n[o];if(r.ctx===i&&r.fn===e)return r.fn=a,this._firingCount&&(this._events[t]=n=n.slice()),void n.splice(o,1)}}},fire:function(t,i,n){if(!this.listens(t,n))return this;var o=e({},i,{type:t,target:this,sourceTarget:i&&i.sourceTarget||this});if(this._events){var s=this._events[t];if(s){this._firingCount=this._firingCount+1||1;for(var a=0,r=s.length;a<r;a++){var h=s[a];h.fn.call(h.ctx||this,o)}this._firingCount--}}return n&&this._propagateEvent(o),this},listens:function(t,e){var i=this._events&&this._events[t];if(i&&i.length)return!0;if(e)for(var n in this._eventParents)if(this._eventParents[n].listens(t,e))return!0;return!1},once:function(t,e,n){if("object"==typeof t){for(var o in t)this.once(o,t[o],e);return this}var s=i(function(){this.off(t,e,n).off(t,s,n)},this);return this.on(t,e,n).on(t,s,n)},addEventParent:function(t){return this._eventParents=this._eventParents||{},this._eventParents[n(t)]=t,this},removeEventParent:function(t){return this._eventParents&&delete this._eventParents[n(t)],this},_propagateEvent:function(t){for(var i in this._eventParents)this._eventParents[i].fire(t.type,e({layer:t.target,propagatedFrom:t.target},t),!0)}};Le.addEventListener=Le.on,Le.removeEventListener=Le.clearAllEventListeners=Le.off,Le.addOneTimeEventListener=Le.once,Le.fireEvent=Le.fire,Le.hasEventListeners=Le.listens;var we=v.extend(Le),Pe=Math.trunc||function(t){return t>0?Math.floor(t):Math.ceil(t)};b.prototype={clone:function(){return new b(this.x,this.y)},add:function(t){return this.clone()._add(M(t))},_add:function(t){return this.x+=t.x,this.y+=t.y,this},subtract:function(t){return this.clone()._subtract(M(t))},_subtract:function(t){return this.x-=t.x,this.y-=t.y,this},divideBy:function(t){return this.clone()._divideBy(t)},_divideBy:function(t){return this.x/=t,this.y/=t,this},multiplyBy:function(t){return this.clone()._multiplyBy(t)},_multiplyBy:function(t){return this.x*=t,this.y*=t,this},scaleBy:function(t){return new b(this.x*t.x,this.y*t.y)},unscaleBy:function(t){return new b(this.x/t.x,this.y/t.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=Pe(this.x),this.y=Pe(this.y),this},distanceTo:function(t){t=M(t);var e=t.x-this.x,i=t.y-this.y;return Math.sqrt(e*e+i*i)},equals:function(t){return t=M(t),t.x===this.x&&t.y===this.y},contains:function(t){return t=M(t),Math.abs(t.x)<=Math.abs(this.x)&&Math.abs(t.y)<=Math.abs(this.y)},toString:function(){return"Point("+r(this.x)+", "+r(this.y)+")"}},x.prototype={extend:function(t){return t=M(t),this.min||this.max?(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)):(this.min=t.clone(),this.max=t.clone()),this},getCenter:function(t){return new b((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,t)},getBottomLeft:function(){return new b(this.min.x,this.max.y)},getTopRight:function(){return new b(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;return t="number"==typeof t[0]||t instanceof b?M(t):w(t),t instanceof x?(e=t.min,i=t.max):e=i=t,e.x>=this.min.x&&i.x<=this.max.x&&e.y>=this.min.y&&i.y<=this.max.y},intersects:function(t){t=w(t);var e=this.min,i=this.max,n=t.min,o=t.max,s=o.x>=e.x&&n.x<=i.x,a=o.y>=e.y&&n.y<=i.y;return s&&a},overlaps:function(t){t=w(t);var e=this.min,i=this.max,n=t.min,o=t.max,s=o.x>e.x&&n.x<i.x,a=o.y>e.y&&n.y<i.y;return s&&a},isValid:function(){return!(!this.min||!this.max)}},P.prototype={extend:function(t){var e,i,n=this._southWest,o=this._northEast;if(t instanceof T)e=t,i=t;else{if(!(t instanceof P))return t?this.extend(k(t)||C(t)):this;if(e=t._southWest,i=t._northEast,!e||!i)return this}return n||o?(n.lat=Math.min(e.lat,n.lat),n.lng=Math.min(e.lng,n.lng),o.lat=Math.max(i.lat,o.lat),o.lng=Math.max(i.lng,o.lng)):(this._southWest=new T(e.lat,e.lng),this._northEast=new T(i.lat,i.lng)),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 P(new T(e.lat-n,e.lng-o),new T(i.lat+n,i.lng+o))},getCenter:function(){return new T((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 T(this.getNorth(),this.getWest())},getSouthEast:function(){return new T(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(t){t="number"==typeof t[0]||t instanceof T||"lat"in t?k(t):C(t);var e,i,n=this._southWest,o=this._northEast;return t instanceof P?(e=t.getSouthWest(),i=t.getNorthEast()):e=i=t,e.lat>=n.lat&&i.lat<=o.lat&&e.lng>=n.lng&&i.lng<=o.lng},intersects:function(t){t=C(t);var e=this._southWest,i=this._northEast,n=t.getSouthWest(),o=t.getNorthEast(),s=o.lat>=e.lat&&n.lat<=i.lat,a=o.lng>=e.lng&&n.lng<=i.lng;return s&&a},overlaps:function(t){t=C(t);var e=this._southWest,i=this._northEast,n=t.getSouthWest(),o=t.getNorthEast(),s=o.lat>e.lat&&n.lat<i.lat,a=o.lng>e.lng&&n.lng<i.lng;return s&&a},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(t,e){return!!t&&(t=C(t),this._southWest.equals(t.getSouthWest(),e)&&this._northEast.equals(t.getNorthEast(),e))},isValid:function(){return!(!this._southWest||!this._northEast)}},T.prototype={equals:function(t,e){return!!t&&(t=k(t),Math.max(Math.abs(this.lat-t.lat),Math.abs(this.lng-t.lng))<=(void 0===e?1e-9:e))},toString:function(t){return"LatLng("+r(this.lat,t)+", "+r(this.lng,t)+")"},distanceTo:function(t){return Te.distance(this,k(t))},wrap:function(){return Te.wrapLatLng(this)},toBounds:function(t){var e=180*t/40075017,i=e/Math.cos(Math.PI/180*this.lat);return C([this.lat-e,this.lng-i],[this.lat+e,this.lng+i])},clone:function(){return new T(this.lat,this.lng,this.alt)}};var Ce={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);return new x(this.transformation.transform(e.min,i),this.transformation.transform(e.max,i))},infinite:!1,wrapLatLng:function(t){var e=this.wrapLng?s(t.lng,this.wrapLng,!0):t.lng;return new T(this.wrapLat?s(t.lat,this.wrapLat,!0):t.lat,e,t.alt)},wrapLatLngBounds:function(t){var e=t.getCenter(),i=this.wrapLatLng(e),n=e.lat-i.lat,o=e.lng-i.lng;if(0===n&&0===o)return t;var s=t.getSouthWest(),a=t.getNorthEast();return new P(new T(s.lat-n,s.lng-o),new T(a.lat-n,a.lng-o))}},Te=e({},Ce,{wrapLng:[-180,180],R:6371e3,distance:function(t,e){var i=Math.PI/180,n=t.lat*i,o=e.lat*i,s=Math.sin((e.lat-t.lat)*i/2),a=Math.sin((e.lng-t.lng)*i/2),r=s*s+Math.cos(n)*Math.cos(o)*a*a,h=2*Math.atan2(Math.sqrt(r),Math.sqrt(1-r));return this.R*h}}),ke={R:6378137,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 b(this.R*t.lng*e,this.R*Math.log((1+o)/(1-o))/2)},unproject:function(t){var e=180/Math.PI;return new T((2*Math.atan(Math.exp(t.y/this.R))-Math.PI/2)*e,t.x*e/this.R)},bounds:function(){var t=6378137*Math.PI;return new x([-t,-t],[t,t])}()};O.prototype={transform:function(t,e){return this._transform(t.clone(),e)},_transform:function(t,e){return e=e||1,t.x=e*(this._a*t.x+this._b),t.y=e*(this._c*t.y+this._d),t},untransform:function(t,e){return e=e||1,new b((t.x/e-this._b)/this._a,(t.y/e-this._d)/this._c)}};var Oe,Se,ze,je=e({},Te,{code:"EPSG:3857",projection:ke,transformation:function(){var t=.5/(Math.PI*ke.R);return S(t,.5,-t,.5)}()}),Ee=e({},je,{code:"EPSG:900913"}),Ae=document.documentElement.style,Ie="ActiveXObject"in window,Be=Ie&&!document.addEventListener,Ne="msLaunchUri"in navigator&&!("documentMode"in document),Re=E("webkit"),Ze=E("android"),De=E("android 2")||E("android 3"),Ge=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),Fe=Ze&&E("Google")&&Ge<537&&!("AudioNode"in window),qe=!!window.opera,He=E("chrome"),Ue=E("gecko")&&!Re&&!qe&&!Ie,We=!He&&E("safari"),Ve=E("phantom"),Je="OTransition"in Ae,Ke=0===navigator.platform.indexOf("Win"),Ye=Ie&&"transition"in Ae,Xe="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!De,Qe="MozPerspective"in Ae,$e=!window.L_DISABLE_3D&&(Ye||Xe||Qe)&&!Je&&!Ve,ti="undefined"!=typeof orientation||E("mobile"),ei=ti&&Re,ii=ti&&Xe,ni=!window.PointerEvent&&window.MSPointerEvent,oi=!(!window.PointerEvent&&!ni),si=!window.L_NO_TOUCH&&(oi||"ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch),ai=ti&&qe,ri=ti&&Ue,hi=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,li=function(){return!!document.createElement("canvas").getContext}(),ui=!(!document.createElementNS||!z("svg").createSVGRect),ci=!ui&&function(){try{var t=document.createElement("div");t.innerHTML='<v:shape adj="1"/>';var e=t.firstChild;return e.style.behavior="url(#default#VML)",e&&"object"==typeof e.adj}catch(t){return!1}}(),di=(Object.freeze||Object)({ie:Ie,ielt9:Be,edge:Ne,webkit:Re,android:Ze,android23:De,androidStock:Fe,opera:qe,chrome:He,gecko:Ue,safari:We,phantom:Ve,opera12:Je,win:Ke,ie3d:Ye,webkit3d:Xe,gecko3d:Qe,any3d:$e,mobile:ti,mobileWebkit:ei,mobileWebkit3d:ii,msPointer:ni,pointer:oi,touch:si,mobileOpera:ai,mobileGecko:ri,retina:hi,canvas:li,svg:ui,vml:ci}),pi=ni?"MSPointerDown":"pointerdown",_i=ni?"MSPointerMove":"pointermove",fi=ni?"MSPointerUp":"pointerup",mi=ni?"MSPointerCancel":"pointercancel",gi=["INPUT","SELECT","OPTION"],vi={},yi=!1,bi=0,Mi=ni?"MSPointerDown":oi?"pointerdown":"touchstart",xi=ni?"MSPointerUp":oi?"pointerup":"touchend",Li="_leaflet_",wi=st(["transform","WebkitTransform","OTransform","MozTransform","msTransform"]),Pi=st(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),Ci="webkitTransition"===Pi||"OTransition"===Pi?Pi+"End":"transitionend";if("onselectstart"in document)Oe=function(){ft(window,"selectstart",xt)},Se=function(){mt(window,"selectstart",xt)};else{var Ti=st(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);Oe=function(){if(Ti){var t=document.documentElement.style;ze=t[Ti],t[Ti]="none"}},Se=function(){Ti&&(document.documentElement.style[Ti]=ze,ze=void 0)}}var ki,Oi,Si,zi=(Object.freeze||Object)({TRANSFORM:wi,TRANSITION:Pi,TRANSITION_END:Ci,get:U,getStyle:W,create:V,remove:J,empty:K,toFront:Y,toBack:X,hasClass:Q,addClass:$,removeClass:tt,setClass:et,getClass:it,setOpacity:nt,testProp:st,setTransform:at,setPosition:rt,getPosition:ht,disableTextSelection:Oe,enableTextSelection:Se,disableImageDrag:lt,enableImageDrag:ut,preventOutline:ct,restoreOutline:dt,getSizedParentNode:pt,getScale:_t}),ji="_leaflet_events",Ei=Ke&&He?2*window.devicePixelRatio:Ue?window.devicePixelRatio:1,Ai={},Ii=(Object.freeze||Object)({on:ft,off:mt,stopPropagation:yt,disableScrollPropagation:bt,disableClickPropagation:Mt,preventDefault:xt,stop:Lt,getMousePosition:wt,getWheelDelta:Pt,fakeStop:Ct,skipped:Tt,isExternalTarget:kt,addListener:ft,removeListener:mt}),Bi=we.extend({run:function(t,e,i,n){this.stop(),this._el=t,this._inProgress=!0,this._duration=i||.25,this._easeOutPower=1/Math.max(n||.5,.2),this._startPos=ht(t),this._offset=e.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=m(this._animate,this),this._step()},_step:function(t){var e=+new Date-this._startTime,i=1e3*this._duration;e<i?this._runFrame(this._easeOut(e/i),t):(this._runFrame(1),this._complete())},_runFrame:function(t,e){var i=this._startPos.add(this._offset.multiplyBy(t));e&&i._round(),rt(this._el,i),this.fire("step")},_complete:function(){g(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(t){return 1-Math.pow(1-t,this._easeOutPower)}}),Ni=we.extend({options:{crs:je,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(t,e){e=u(this,e),this._initContainer(t),this._initLayout(),this._onResize=i(this._onResize,this),this._initEvents(),e.maxBounds&&this.setMaxBounds(e.maxBounds),void 0!==e.zoom&&(this._zoom=this._limitZoom(e.zoom)),e.center&&void 0!==e.zoom&&this.setView(k(e.center),e.zoom,{reset:!0}),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this.callInitHooks(),this._zoomAnimated=Pi&&$e&&!ai&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),ft(this._proxy,Ci,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(t,i,n){if(i=void 0===i?this._zoom:this._limitZoom(i),t=this._limitCenter(k(t),i,this.options.maxBounds),n=n||{},this._stop(),this._loaded&&!n.reset&&!0!==n){void 0!==n.animate&&(n.zoom=e({animate:n.animate},n.zoom),n.pan=e({animate:n.animate,duration:n.duration},n.pan));if(this._zoom!==i?this._tryAnimatedZoom&&this._tryAnimatedZoom(t,i,n.zoom):this._tryAnimatedPan(t,n.pan))return clearTimeout(this._sizeTimer),this}return this._resetView(t,i),this},setZoom:function(t,e){return this._loaded?this.setView(this.getCenter(),t,{zoom:e}):(this._zoom=t,this)},zoomIn:function(t,e){return t=t||($e?this.options.zoomDelta:1),this.setZoom(this._zoom+t,e)},zoomOut:function(t,e){return t=t||($e?this.options.zoomDelta:1),this.setZoom(this._zoom-t,e)},setZoomAround:function(t,e,i){var n=this.getZoomScale(e),o=this.getSize().divideBy(2),s=t instanceof b?t:this.latLngToContainerPoint(t),a=s.subtract(o).multiplyBy(1-1/n),r=this.containerPointToLatLng(o.add(a));return this.setView(r,e,{zoom:i})},_getBoundsCenterZoom:function(t,e){e=e||{},t=t.getBounds?t.getBounds():C(t);var i=M(e.paddingTopLeft||e.padding||[0,0]),n=M(e.paddingBottomRight||e.padding||[0,0]),o=this.getBoundsZoom(t,!1,i.add(n));if((o="number"==typeof e.maxZoom?Math.min(e.maxZoom,o):o)===1/0)return{center:t.getCenter(),zoom:o};var s=n.subtract(i).divideBy(2),a=this.project(t.getSouthWest(),o),r=this.project(t.getNorthEast(),o);return{center:this.unproject(a.add(r).divideBy(2).add(s),o),zoom:o}},fitBounds:function(t,e){if(t=C(t),!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){if(t=M(t).round(),e=e||{},!t.x&&!t.y)return this.fire("moveend");if(!0!==e.animate&&!this.getSize().contains(t))return this._resetView(this.unproject(this.project(this.getCenter()).add(t)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new Bi,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),e.noMoveStart||this.fire("movestart"),!1!==e.animate){$(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){function n(t){var e=t?-1:1,i=t?g:f,n=g*g-f*f+e*b*b*v*v,o=2*i*b*v,s=n/o,a=Math.sqrt(s*s+1)-s;return a<1e-9?-18:Math.log(a)}function o(t){return(Math.exp(t)-Math.exp(-t))/2}function s(t){return(Math.exp(t)+Math.exp(-t))/2}function a(t){return o(t)/s(t)}function r(t){return f*(s(M)/s(M+y*t))}function h(t){return f*(s(M)*a(M+y*t)-o(M))/b}function l(t){return 1-Math.pow(1-t,1.5)}function u(){var i=(Date.now()-x)/w,n=l(i)*L;i<=1?(this._flyToFrame=m(u,this),this._move(this.unproject(c.add(d.subtract(c).multiplyBy(h(n)/v)),_),this.getScaleZoom(f/r(n),_),{flyTo:!0})):this._move(t,e)._moveEnd(!0)}if(i=i||{},!1===i.animate||!$e)return this.setView(t,e,i);this._stop();var c=this.project(this.getCenter()),d=this.project(t),p=this.getSize(),_=this._zoom;t=k(t),e=void 0===e?_:e;var f=Math.max(p.x,p.y),g=f*this.getZoomScale(_,e),v=d.distanceTo(c)||1,y=1.42,b=y*y,M=n(0),x=Date.now(),L=(n(1)-M)/y,w=i.duration?1e3*i.duration:1e3*L*.8;return this._moveStart(!0,i.noMoveStart),u.call(this),this},flyToBounds:function(t,e){var i=this._getBoundsCenterZoom(t,e);return this.flyTo(i.center,i.zoom,e)},setMaxBounds:function(t){return t=C(t),t.isValid()?(this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this.options.maxBounds=t,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this.off("moveend",this._panInsideMaxBounds))},setMinZoom:function(t){var e=this.options.minZoom;return this.options.minZoom=t,this._loaded&&e!==t&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(t):this},setMaxZoom:function(t){var e=this.options.maxZoom;return this.options.maxZoom=t,this._loaded&&e!==t&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(t):this},panInsideBounds:function(t,e){this._enforcingBounds=!0;var i=this.getCenter(),n=this._limitCenter(i,this._zoom,C(t));return i.equals(n)||this.panTo(n,e),this._enforcingBounds=!1,this},invalidateSize:function(t){if(!this._loaded)return this;t=e({animate:!1,pan:!0},!0===t?{animate:!0}:t);var n=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var o=this.getSize(),s=n.divideBy(2).round(),a=o.divideBy(2).round(),r=s.subtract(a);return r.x||r.y?(t.animate&&t.pan?this.panBy(r):(t.pan&&this._rawPanBy(r),this.fire("move"),t.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(i(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:n,newSize:o})):this},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(t){if(t=this._locateOptions=e({timeout:1e4,watch:!1},t),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var n=i(this._handleGeolocationResponse,this),o=i(this._handleGeolocationError,this);return t.watch?this._locationWatchId=navigator.geolocation.watchPosition(n,o,t):navigator.geolocation.getCurrentPosition(n,o,t),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(t){var e=t.code,i=t.message||(1===e?"permission denied":2===e?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:e,message:"Geolocation error: "+i+"."})},_handleGeolocationResponse:function(t){var e=t.coords.latitude,i=t.coords.longitude,n=new T(e,i),o=n.toBounds(2*t.coords.accuracy),s=this._locateOptions;if(s.setView){var a=this.getBoundsZoom(o);this.setView(n,s.maxZoom?Math.min(a,s.maxZoom):a)}var r={latlng:n,bounds:o,timestamp:t.timestamp};for(var h in t.coords)"number"==typeof t.coords[h]&&(r[h]=t.coords[h]);this.fire("locationfound",r)},addHandler:function(t,e){if(!e)return this;var i=this[t]=new e(this);return this._handlers.push(i),this.options[t]&&i.enable(),this},remove:function(){if(this._initEvents(!0),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch(t){this._container._leaflet_id=void 0,this._containerId=void 0}void 0!==this._locationWatchId&&this.stopLocate(),this._stop(),J(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(g(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload");var t;for(t in this._layers)this._layers[t].remove();for(t in this._panes)J(this._panes[t]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(t,e){var i="leaflet-pane"+(t?" leaflet-"+t.replace("Pane","")+"-pane":""),n=V("div",i,e||this._mapPane);return t&&(this._panes[t]=n),n},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter:this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var t=this.getPixelBounds();return new P(this.unproject(t.getBottomLeft()),this.unproject(t.getTopRight()))},getMinZoom:function(){return void 0===this.options.minZoom?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return void 0===this.options.maxZoom?void 0===this._layersMaxZoom?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(t,e,i){t=C(t),i=M(i||[0,0]);var n=this.getZoom()||0,o=this.getMinZoom(),s=this.getMaxZoom(),a=t.getNorthWest(),r=t.getSouthEast(),h=this.getSize().subtract(i),l=w(this.project(r,n),this.project(a,n)).getSize(),u=$e?this.options.zoomSnap:1,c=h.x/l.x,d=h.y/l.y,p=e?Math.max(c,d):Math.min(c,d);return n=this.getScaleZoom(p,n),u&&(n=Math.round(n/(u/100))*(u/100),n=e?Math.ceil(n/u)*u:Math.floor(n/u)*u),Math.max(o,Math.min(s,n))},getSize:function(){return this._size&&!this._sizeChanged||(this._size=new b(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(t,e){var i=this._getTopLeftPoint(t,e);return new x(i,i.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(t){return this.options.crs.getProjectedBounds(void 0===t?this.getZoom():t)},getPane:function(t){return"string"==typeof t?this._panes[t]:t},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(t,e){var i=this.options.crs;return e=void 0===e?this._zoom:e,i.scale(t)/i.scale(e)},getScaleZoom:function(t,e){var i=this.options.crs;e=void 0===e?this._zoom:e;var n=i.zoom(t*i.scale(e));return isNaN(n)?1/0:n},project:function(t,e){return e=void 0===e?this._zoom:e,this.options.crs.latLngToPoint(k(t),e)},unproject:function(t,e){return e=void 0===e?this._zoom:e,this.options.crs.pointToLatLng(M(t),e)},layerPointToLatLng:function(t){var e=M(t).add(this.getPixelOrigin());return this.unprojec