HomeDashboard/.venv/lib/python3.12/site-packages/nicegui/elements/leaflet/dist/index.js

7 lines
145 KiB
JavaScript
Raw Normal View History

2026-01-03 14:54:18 +01:00
/* @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(t){var i,e,n,o;for(e=1,n=arguments.length;e<n;e++)for(i in o=arguments[e])t[i]=o[i];return t}var i=Object.create||function(){function t(){}return function(i){return t.prototype=i,new t}}();function e(t,i){var e=Array.prototype.slice;if(t.bind)return t.bind.apply(t,e.call(arguments,1));var n=e.call(arguments,2);return function(){return t.apply(i,n.length?n.concat(e.call(arguments)):arguments)}}var n=0;function o(t){return"_leaflet_id"in t||(t._leaflet_id=++n),t._leaflet_id}function s(t,i,e){var n,o,s,r;return r=function(){n=!1,o&&(s.apply(e,o),o=!1)},s=function(){n?o=arguments:(t.apply(e,arguments),setTimeout(r,i),n=!0)},s}function r(t,i,e){var n=i[1],o=i[0],s=n-o;return t===n&&e?t:((t-o)%s+s)%s+o}function a(){return!1}function h(t,i){if(!1===i)return t;var e=Math.pow(10,void 0===i?6:i);return Math.round(t*e)/e}function l(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function u(t){return l(t).split(/\s+/)}function c(t,e){for(var n in Object.prototype.hasOwnProperty.call(t,"options")||(t.options=t.options?i(t.options):{}),e)t.options[n]=e[n];return t.options}function _(t,i,e){var n=[];for(var o in t)n.push(encodeURIComponent(e?o.toUpperCase():o)+"="+encodeURIComponent(t[o]));return(i&&-1!==i.indexOf("?")?"&":"?")+n.join("&")}var d=/\{ *([\w_ -]+) *\}/g;function p(t,i){return t.replace(d,function(t,e){var n=i[e];if(void 0===n)throw new Error("No value provided for variable "+t);return"function"==typeof n&&(n=n(i)),n})}var m=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function f(t,i){for(var e=0;e<t.length;e++)if(t[e]===i)return e;return-1}var g="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function v(t){return window["webkit"+t]||window["moz"+t]||window["ms"+t]}var y=0;function x(t){var i=+new Date,e=Math.max(0,16-(i-y));return y=i+e,window.setTimeout(t,e)}var w=window.requestAnimationFrame||v("RequestAnimationFrame")||x,b=window.cancelAnimationFrame||v("CancelAnimationFrame")||v("CancelRequestAnimationFrame")||function(t){window.clearTimeout(t)};function P(t,i,n){if(!n||w!==x)return w.call(window,e(t,i));t.call(i)}function T(t){t&&b.call(window,t)}var M={__proto__:null,extend:t,create:i,bind:e,get lastId(){return n},stamp:o,throttle:s,wrapNum:r,falseFn:a,formatNum:h,trim:l,splitWords:u,setOptions:c,getParamString:_,template:p,isArray:m,indexOf:f,emptyImageUrl:g,requestFn:w,cancelFn:b,requestAnimFrame:P,cancelAnimFrame:T};function z(){}z.extend=function(e){var n=function(){c(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},o=n.__super__=this.prototype,s=i(o);for(var r in s.constructor=n,n.prototype=s,this)Object.prototype.hasOwnProperty.call(this,r)&&"prototype"!==r&&"__super__"!==r&&(n[r]=this[r]);return e.statics&&t(n,e.statics),e.includes&&(!function(t){if("undefined"==typeof L||!L||!L.Mixin)return;t=m(t)?t:[t];for(var i=0;i<t.length;i++)t[i]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",(new Error).stack)}(e.includes),t.apply(null,[s].concat(e.includes))),t(s,e),delete s.statics,delete s.includes,s.options&&(s.options=o.options?i(o.options):{},t(s.options,e.options)),s._initHooks=[],s.callInitHooks=function(){if(!this._initHooksCalled){o.callInitHooks&&o.callInitHooks.call(this),this._initHooksCalled=!0;for(var t=0,i=s._initHooks.length;t<i;t++)s._initHooks[t].call(this)}},n},z.include=function(i){var e=this.prototype.options;return t(this.prototype,i),i.options&&(this.prototype.options=e,this.mergeOptions(i.options)),this},z.mergeOptions=function(i){return t(this.prototype.options,i),this},z.addInitHook=function(t){var i=Array.prototype.slice.call(arguments,1),e="function"==typeof t?t:function(){this[t].apply(this,i)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(e),this};var C={on:function(t,i,e){if("object"==typeof t)for(var n in t)this._on(n,t[n],i);else for(var o=0,s=(t=u(t)).length;o<s;o++)this._on(t[o],i,e);return this},off:function(t,i,e){if(ar
//# sourceMappingURL=index.js.map