dawarich/vendor/javascript/leaflet.js

7 lines
169 KiB
JavaScript
Raw Normal View History

var t="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:global;var e={};
/* @preserve
* Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com
* (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade
*/(function(t,i){i(e)})(0,(function(e){var i="1.9.4";function extend(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 F(){}return function(t){F.prototype=t;return new F}}();function bind(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 o=0;function stamp(t){"_leaflet_id"in t||(t._leaflet_id=++o);return t._leaflet_id}function throttle(t,e,i){var n,o,s,a;a=function(){n=false;if(o){s.apply(i,o);o=false}};s=function(){if(n)o=arguments;else{t.apply(i,arguments);setTimeout(a,e);n=true}};return s}function wrapNum(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 falseFn(){return false}function formatNum(t,e){if(false===e)return t;var i=Math.pow(10,void 0===e?6:e);return Math.round(t*i)/i}function trim(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function splitWords(t){return trim(t).split(/\s+/)}function setOptions(t,e){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 getParamString(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("&")}var s=/\{ *([\w_ -]+) *\}/g;function template(t,e){return t.replace(s,(function(t,i){var n=e[i];if(void 0===n)throw new Error("No value provided for variable "+t);"function"===typeof n&&(n=n(e));return n}))}var a=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function indexOf(t,e){for(var i=0;i<t.length;i++)if(t[i]===e)return i;return-1}var h="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function getPrefixed(t){return window["webkit"+t]||window["moz"+t]||window["ms"+t]}var l=0;function timeoutDefer(t){var e=+new Date,i=Math.max(0,16-(e-l));l=e+i;return window.setTimeout(t,i)}var c=window.requestAnimationFrame||getPrefixed("RequestAnimationFrame")||timeoutDefer;var d=window.cancelAnimationFrame||getPrefixed("CancelAnimationFrame")||getPrefixed("CancelRequestAnimationFrame")||function(t){window.clearTimeout(t)};function requestAnimFrame(t,e,i){if(!i||c!==timeoutDefer)return c.call(window,bind(t,e));t.call(e)}function cancelAnimFrame(t){t&&d.call(window,t)}var _={__proto__:null,extend:extend,create:n,bind:bind,get lastId(){return o},stamp:stamp,throttle:throttle,wrapNum:wrapNum,falseFn:falseFn,formatNum:formatNum,trim:trim,splitWords:splitWords,setOptions:setOptions,getParamString:getParamString,template:template,isArray:a,indexOf:indexOf,emptyImageUrl:h,requestFn:c,cancelFn:d,requestAnimFrame:requestAnimFrame,cancelAnimFrame:cancelAnimFrame};function Class(){}Class.extend=function(e){var NewClass=function(){setOptions(this||t);(this||t).initialize&&(this||t).initialize.apply(this||t,arguments);this.callInitHooks()};var i=NewClass.__super__=(this||t).prototype;var o=n(i);o.constructor=NewClass;NewClass.prototype=o;for(var s in this||t)Object.prototype.hasOwnProperty.call(this||t,s)&&"prototype"!==s&&"__super__"!==s&&(NewClass[s]=(this||t)[s]);e.statics&&extend(NewClass,e.statics);if(e.includes){checkDeprecatedMixinEvents(e.includes);extend.apply(null,[o].concat(e.includes))}extend(o,e);delete o.statics;delete o.includes;if(o.options){o.options=i.options?n(i.options):{};extend(o.options,e.options)}o._initHooks=[];o.callInitHooks=function(){if(!(this||t)._initHooksCalled){i.callInitHooks&&i.callInitHooks.call(this||t);(this||t)._initHooksCalled=true;for(var e=0,n=o._initHooks.length;e<n;e++)o._initHooks[e].call(this||t)}};return NewClass};Class.include=function(e){var i=(this||t).prototype.options;extend((this||t).prototype,e);if(e.options){(this||t).prototype.options=i;this.mergeOptions(e.options)}return this||t};Class.mergeOptions=function(e){extend((this||t).prototype.options,e);return this||t};Class.addInitHook=function(e){var i=Array.prototype.slice.call(arguments,1);var n="