!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).AILabel=e()}(this,function(){"use strict";function F(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,i)}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _(t,e){for(var n=0;ni&&!o.warned&&(o.warned=!0,(r=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit")).name="MaxListenersExceededWarning",r.emitter=t,r.type=e,r.count=o.length,n=r,console&&console.warn&&console.warn(n))),t}function H(t,e,n){t={fired:!1,wrapFn:void 0,target:t,type:e,listener:n},e=function(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}.bind(t);return e.listener=n,t.wrapFn=e}function $(t,e,n){t=t._events;if(void 0===t)return[];t=t[e];{if(void 0===t)return[];if("function"==typeof t)return n?[t.listener||t]:[t];if(n){for(var r=t,i=new Array(r.length),o=0;o=e.length?t:e,r=t.length>=e.length?e:t,i=!0,o=0;ot.length)&&(e=t.length);for(var n=0,r=new Array(e);no&&((i=parseInt("".concat(this.hoverFeatureIndex),10))===this.hoverFeatureIndex&&(o=Ss(a,function(t,e){return e!==i}),a=I(I({},r),{},{points:o}),this.map.eventsObServer.emit(k.FeatureUpdated,e,a)))}}}},{key:"handleFeatureCapture",value:function(t){var e=(1