update socials section
This commit is contained in:
		
							
								
								
									
										347
									
								
								node_modules/eventemitter3/dist/eventemitter3.esm.js
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										347
									
								
								node_modules/eventemitter3/dist/eventemitter3.esm.js
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,347 @@ | ||||
| var eventemitter3Exports = {}; | ||||
| var eventemitter3 = { | ||||
|   get exports(){ return eventemitter3Exports; }, | ||||
|   set exports(v){ eventemitter3Exports = v; }, | ||||
| }; | ||||
|  | ||||
| (function (module) { | ||||
|  | ||||
| 	var has = Object.prototype.hasOwnProperty | ||||
| 	  , prefix = '~'; | ||||
|  | ||||
| 	/** | ||||
| 	 * Constructor to create a storage for our `EE` objects. | ||||
| 	 * An `Events` instance is a plain object whose properties are event names. | ||||
| 	 * | ||||
| 	 * @constructor | ||||
| 	 * @private | ||||
| 	 */ | ||||
| 	function Events() {} | ||||
|  | ||||
| 	// | ||||
| 	// We try to not inherit from `Object.prototype`. In some engines creating an | ||||
| 	// instance in this way is faster than calling `Object.create(null)` directly. | ||||
| 	// If `Object.create(null)` is not supported we prefix the event names with a | ||||
| 	// character to make sure that the built-in object properties are not | ||||
| 	// overridden or used as an attack vector. | ||||
| 	// | ||||
| 	if (Object.create) { | ||||
| 	  Events.prototype = Object.create(null); | ||||
|  | ||||
| 	  // | ||||
| 	  // This hack is needed because the `__proto__` property is still inherited in | ||||
| 	  // some old browsers like Android 4, iPhone 5.1, Opera 11 and Safari 5. | ||||
| 	  // | ||||
| 	  if (!new Events().__proto__) prefix = false; | ||||
| 	} | ||||
|  | ||||
| 	/** | ||||
| 	 * Representation of a single event listener. | ||||
| 	 * | ||||
| 	 * @param {Function} fn The listener function. | ||||
| 	 * @param {*} context The context to invoke the listener with. | ||||
| 	 * @param {Boolean} [once=false] Specify if the listener is a one-time listener. | ||||
| 	 * @constructor | ||||
| 	 * @private | ||||
| 	 */ | ||||
| 	function EE(fn, context, once) { | ||||
| 	  this.fn = fn; | ||||
| 	  this.context = context; | ||||
| 	  this.once = once || false; | ||||
| 	} | ||||
|  | ||||
| 	/** | ||||
| 	 * Add a listener for a given event. | ||||
| 	 * | ||||
| 	 * @param {EventEmitter} emitter Reference to the `EventEmitter` instance. | ||||
| 	 * @param {(String|Symbol)} event The event name. | ||||
| 	 * @param {Function} fn The listener function. | ||||
| 	 * @param {*} context The context to invoke the listener with. | ||||
| 	 * @param {Boolean} once Specify if the listener is a one-time listener. | ||||
| 	 * @returns {EventEmitter} | ||||
| 	 * @private | ||||
| 	 */ | ||||
| 	function addListener(emitter, event, fn, context, once) { | ||||
| 	  if (typeof fn !== 'function') { | ||||
| 	    throw new TypeError('The listener must be a function'); | ||||
| 	  } | ||||
|  | ||||
| 	  var listener = new EE(fn, context || emitter, once) | ||||
| 	    , evt = prefix ? prefix + event : event; | ||||
|  | ||||
| 	  if (!emitter._events[evt]) emitter._events[evt] = listener, emitter._eventsCount++; | ||||
| 	  else if (!emitter._events[evt].fn) emitter._events[evt].push(listener); | ||||
| 	  else emitter._events[evt] = [emitter._events[evt], listener]; | ||||
|  | ||||
| 	  return emitter; | ||||
| 	} | ||||
|  | ||||
| 	/** | ||||
| 	 * Clear event by name. | ||||
| 	 * | ||||
| 	 * @param {EventEmitter} emitter Reference to the `EventEmitter` instance. | ||||
| 	 * @param {(String|Symbol)} evt The Event name. | ||||
| 	 * @private | ||||
| 	 */ | ||||
| 	function clearEvent(emitter, evt) { | ||||
| 	  if (--emitter._eventsCount === 0) emitter._events = new Events(); | ||||
| 	  else delete emitter._events[evt]; | ||||
| 	} | ||||
|  | ||||
| 	/** | ||||
| 	 * Minimal `EventEmitter` interface that is molded against the Node.js | ||||
| 	 * `EventEmitter` interface. | ||||
| 	 * | ||||
| 	 * @constructor | ||||
| 	 * @public | ||||
| 	 */ | ||||
| 	function EventEmitter() { | ||||
| 	  this._events = new Events(); | ||||
| 	  this._eventsCount = 0; | ||||
| 	} | ||||
|  | ||||
| 	/** | ||||
| 	 * Return an array listing the events for which the emitter has registered | ||||
| 	 * listeners. | ||||
| 	 * | ||||
| 	 * @returns {Array} | ||||
| 	 * @public | ||||
| 	 */ | ||||
| 	EventEmitter.prototype.eventNames = function eventNames() { | ||||
| 	  var names = [] | ||||
| 	    , events | ||||
| 	    , name; | ||||
|  | ||||
| 	  if (this._eventsCount === 0) return names; | ||||
|  | ||||
| 	  for (name in (events = this._events)) { | ||||
| 	    if (has.call(events, name)) names.push(prefix ? name.slice(1) : name); | ||||
| 	  } | ||||
|  | ||||
| 	  if (Object.getOwnPropertySymbols) { | ||||
| 	    return names.concat(Object.getOwnPropertySymbols(events)); | ||||
| 	  } | ||||
|  | ||||
| 	  return names; | ||||
| 	}; | ||||
|  | ||||
| 	/** | ||||
| 	 * Return the listeners registered for a given event. | ||||
| 	 * | ||||
| 	 * @param {(String|Symbol)} event The event name. | ||||
| 	 * @returns {Array} The registered listeners. | ||||
| 	 * @public | ||||
| 	 */ | ||||
| 	EventEmitter.prototype.listeners = function listeners(event) { | ||||
| 	  var evt = prefix ? prefix + event : event | ||||
| 	    , handlers = this._events[evt]; | ||||
|  | ||||
| 	  if (!handlers) return []; | ||||
| 	  if (handlers.fn) return [handlers.fn]; | ||||
|  | ||||
| 	  for (var i = 0, l = handlers.length, ee = new Array(l); i < l; i++) { | ||||
| 	    ee[i] = handlers[i].fn; | ||||
| 	  } | ||||
|  | ||||
| 	  return ee; | ||||
| 	}; | ||||
|  | ||||
| 	/** | ||||
| 	 * Return the number of listeners listening to a given event. | ||||
| 	 * | ||||
| 	 * @param {(String|Symbol)} event The event name. | ||||
| 	 * @returns {Number} The number of listeners. | ||||
| 	 * @public | ||||
| 	 */ | ||||
| 	EventEmitter.prototype.listenerCount = function listenerCount(event) { | ||||
| 	  var evt = prefix ? prefix + event : event | ||||
| 	    , listeners = this._events[evt]; | ||||
|  | ||||
| 	  if (!listeners) return 0; | ||||
| 	  if (listeners.fn) return 1; | ||||
| 	  return listeners.length; | ||||
| 	}; | ||||
|  | ||||
| 	/** | ||||
| 	 * Calls each of the listeners registered for a given event. | ||||
| 	 * | ||||
| 	 * @param {(String|Symbol)} event The event name. | ||||
| 	 * @returns {Boolean} `true` if the event had listeners, else `false`. | ||||
| 	 * @public | ||||
| 	 */ | ||||
| 	EventEmitter.prototype.emit = function emit(event, a1, a2, a3, a4, a5) { | ||||
| 	  var evt = prefix ? prefix + event : event; | ||||
|  | ||||
| 	  if (!this._events[evt]) return false; | ||||
|  | ||||
| 	  var listeners = this._events[evt] | ||||
| 	    , len = arguments.length | ||||
| 	    , args | ||||
| 	    , i; | ||||
|  | ||||
| 	  if (listeners.fn) { | ||||
| 	    if (listeners.once) this.removeListener(event, listeners.fn, undefined, true); | ||||
|  | ||||
| 	    switch (len) { | ||||
| 	      case 1: return listeners.fn.call(listeners.context), true; | ||||
| 	      case 2: return listeners.fn.call(listeners.context, a1), true; | ||||
| 	      case 3: return listeners.fn.call(listeners.context, a1, a2), true; | ||||
| 	      case 4: return listeners.fn.call(listeners.context, a1, a2, a3), true; | ||||
| 	      case 5: return listeners.fn.call(listeners.context, a1, a2, a3, a4), true; | ||||
| 	      case 6: return listeners.fn.call(listeners.context, a1, a2, a3, a4, a5), true; | ||||
| 	    } | ||||
|  | ||||
| 	    for (i = 1, args = new Array(len -1); i < len; i++) { | ||||
| 	      args[i - 1] = arguments[i]; | ||||
| 	    } | ||||
|  | ||||
| 	    listeners.fn.apply(listeners.context, args); | ||||
| 	  } else { | ||||
| 	    var length = listeners.length | ||||
| 	      , j; | ||||
|  | ||||
| 	    for (i = 0; i < length; i++) { | ||||
| 	      if (listeners[i].once) this.removeListener(event, listeners[i].fn, undefined, true); | ||||
|  | ||||
| 	      switch (len) { | ||||
| 	        case 1: listeners[i].fn.call(listeners[i].context); break; | ||||
| 	        case 2: listeners[i].fn.call(listeners[i].context, a1); break; | ||||
| 	        case 3: listeners[i].fn.call(listeners[i].context, a1, a2); break; | ||||
| 	        case 4: listeners[i].fn.call(listeners[i].context, a1, a2, a3); break; | ||||
| 	        default: | ||||
| 	          if (!args) for (j = 1, args = new Array(len -1); j < len; j++) { | ||||
| 	            args[j - 1] = arguments[j]; | ||||
| 	          } | ||||
|  | ||||
| 	          listeners[i].fn.apply(listeners[i].context, args); | ||||
| 	      } | ||||
| 	    } | ||||
| 	  } | ||||
|  | ||||
| 	  return true; | ||||
| 	}; | ||||
|  | ||||
| 	/** | ||||
| 	 * Add a listener for a given event. | ||||
| 	 * | ||||
| 	 * @param {(String|Symbol)} event The event name. | ||||
| 	 * @param {Function} fn The listener function. | ||||
| 	 * @param {*} [context=this] The context to invoke the listener with. | ||||
| 	 * @returns {EventEmitter} `this`. | ||||
| 	 * @public | ||||
| 	 */ | ||||
| 	EventEmitter.prototype.on = function on(event, fn, context) { | ||||
| 	  return addListener(this, event, fn, context, false); | ||||
| 	}; | ||||
|  | ||||
| 	/** | ||||
| 	 * Add a one-time listener for a given event. | ||||
| 	 * | ||||
| 	 * @param {(String|Symbol)} event The event name. | ||||
| 	 * @param {Function} fn The listener function. | ||||
| 	 * @param {*} [context=this] The context to invoke the listener with. | ||||
| 	 * @returns {EventEmitter} `this`. | ||||
| 	 * @public | ||||
| 	 */ | ||||
| 	EventEmitter.prototype.once = function once(event, fn, context) { | ||||
| 	  return addListener(this, event, fn, context, true); | ||||
| 	}; | ||||
|  | ||||
| 	/** | ||||
| 	 * Remove the listeners of a given event. | ||||
| 	 * | ||||
| 	 * @param {(String|Symbol)} event The event name. | ||||
| 	 * @param {Function} fn Only remove the listeners that match this function. | ||||
| 	 * @param {*} context Only remove the listeners that have this context. | ||||
| 	 * @param {Boolean} once Only remove one-time listeners. | ||||
| 	 * @returns {EventEmitter} `this`. | ||||
| 	 * @public | ||||
| 	 */ | ||||
| 	EventEmitter.prototype.removeListener = function removeListener(event, fn, context, once) { | ||||
| 	  var evt = prefix ? prefix + event : event; | ||||
|  | ||||
| 	  if (!this._events[evt]) return this; | ||||
| 	  if (!fn) { | ||||
| 	    clearEvent(this, evt); | ||||
| 	    return this; | ||||
| 	  } | ||||
|  | ||||
| 	  var listeners = this._events[evt]; | ||||
|  | ||||
| 	  if (listeners.fn) { | ||||
| 	    if ( | ||||
| 	      listeners.fn === fn && | ||||
| 	      (!once || listeners.once) && | ||||
| 	      (!context || listeners.context === context) | ||||
| 	    ) { | ||||
| 	      clearEvent(this, evt); | ||||
| 	    } | ||||
| 	  } else { | ||||
| 	    for (var i = 0, events = [], length = listeners.length; i < length; i++) { | ||||
| 	      if ( | ||||
| 	        listeners[i].fn !== fn || | ||||
| 	        (once && !listeners[i].once) || | ||||
| 	        (context && listeners[i].context !== context) | ||||
| 	      ) { | ||||
| 	        events.push(listeners[i]); | ||||
| 	      } | ||||
| 	    } | ||||
|  | ||||
| 	    // | ||||
| 	    // Reset the array, or remove it completely if we have no more listeners. | ||||
| 	    // | ||||
| 	    if (events.length) this._events[evt] = events.length === 1 ? events[0] : events; | ||||
| 	    else clearEvent(this, evt); | ||||
| 	  } | ||||
|  | ||||
| 	  return this; | ||||
| 	}; | ||||
|  | ||||
| 	/** | ||||
| 	 * Remove all listeners, or those of the specified event. | ||||
| 	 * | ||||
| 	 * @param {(String|Symbol)} [event] The event name. | ||||
| 	 * @returns {EventEmitter} `this`. | ||||
| 	 * @public | ||||
| 	 */ | ||||
| 	EventEmitter.prototype.removeAllListeners = function removeAllListeners(event) { | ||||
| 	  var evt; | ||||
|  | ||||
| 	  if (event) { | ||||
| 	    evt = prefix ? prefix + event : event; | ||||
| 	    if (this._events[evt]) clearEvent(this, evt); | ||||
| 	  } else { | ||||
| 	    this._events = new Events(); | ||||
| 	    this._eventsCount = 0; | ||||
| 	  } | ||||
|  | ||||
| 	  return this; | ||||
| 	}; | ||||
|  | ||||
| 	// | ||||
| 	// Alias methods names because people roll like that. | ||||
| 	// | ||||
| 	EventEmitter.prototype.off = EventEmitter.prototype.removeListener; | ||||
| 	EventEmitter.prototype.addListener = EventEmitter.prototype.on; | ||||
|  | ||||
| 	// | ||||
| 	// Expose the prefix. | ||||
| 	// | ||||
| 	EventEmitter.prefixed = prefix; | ||||
|  | ||||
| 	// | ||||
| 	// Allow `EventEmitter` to be imported as module namespace. | ||||
| 	// | ||||
| 	EventEmitter.EventEmitter = EventEmitter; | ||||
|  | ||||
| 	// | ||||
| 	// Expose the module. | ||||
| 	// | ||||
| 	{ | ||||
| 	  module.exports = EventEmitter; | ||||
| 	} | ||||
| } (eventemitter3)); | ||||
|  | ||||
| var EventEmitter = eventemitter3Exports; | ||||
|  | ||||
| export { EventEmitter, EventEmitter as default }; | ||||
							
								
								
									
										1
									
								
								node_modules/eventemitter3/dist/eventemitter3.esm.min.js
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								node_modules/eventemitter3/dist/eventemitter3.esm.min.js
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1 @@ | ||||
| var e={};!function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}function o(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function s(e,t,r,s,i){if("function"!=typeof r)throw new TypeError("The listener must be a function");var c=new o(r,s||e,i),f=n?n+t:t;return e._events[f]?e._events[f].fn?e._events[f]=[e._events[f],c]:e._events[f].push(c):(e._events[f]=c,e._eventsCount++),e}function i(e,t){0==--e._eventsCount?e._events=new r:delete e._events[t]}function c(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),c.prototype.eventNames=function(){var e,r,o=[];if(0===this._eventsCount)return o;for(r in e=this._events)t.call(e,r)&&o.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(e)):o},c.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var o=0,s=r.length,i=new Array(s);o<s;o++)i[o]=r[o].fn;return i},c.prototype.listenerCount=function(e){var t=n?n+e:e,r=this._events[t];return r?r.fn?1:r.length:0},c.prototype.emit=function(e,t,r,o,s,i){var c=n?n+e:e;if(!this._events[c])return!1;var f,a,u=this._events[c],v=arguments.length;if(u.fn){switch(u.once&&this.removeListener(e,u.fn,void 0,!0),v){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,t),!0;case 3:return u.fn.call(u.context,t,r),!0;case 4:return u.fn.call(u.context,t,r,o),!0;case 5:return u.fn.call(u.context,t,r,o,s),!0;case 6:return u.fn.call(u.context,t,r,o,s,i),!0}for(a=1,f=new Array(v-1);a<v;a++)f[a-1]=arguments[a];u.fn.apply(u.context,f)}else{var l,p=u.length;for(a=0;a<p;a++)switch(u[a].once&&this.removeListener(e,u[a].fn,void 0,!0),v){case 1:u[a].fn.call(u[a].context);break;case 2:u[a].fn.call(u[a].context,t);break;case 3:u[a].fn.call(u[a].context,t,r);break;case 4:u[a].fn.call(u[a].context,t,r,o);break;default:if(!f)for(l=1,f=new Array(v-1);l<v;l++)f[l-1]=arguments[l];u[a].fn.apply(u[a].context,f)}}return!0},c.prototype.on=function(e,t,n){return s(this,e,t,n,!1)},c.prototype.once=function(e,t,n){return s(this,e,t,n,!0)},c.prototype.removeListener=function(e,t,r,o){var s=n?n+e:e;if(!this._events[s])return this;if(!t)return i(this,s),this;var c=this._events[s];if(c.fn)c.fn!==t||o&&!c.once||r&&c.context!==r||i(this,s);else{for(var f=0,a=[],u=c.length;f<u;f++)(c[f].fn!==t||o&&!c[f].once||r&&c[f].context!==r)&&a.push(c[f]);a.length?this._events[s]=1===a.length?a[0]:a:i(this,s)}return this},c.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&i(this,t)):(this._events=new r,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prefixed=n,c.EventEmitter=c,e.exports=c}({get exports(){return e},set exports(t){e=t}});var t=e;export{t as EventEmitter,t as default};//# sourceMappingURL=eventemitter3.esm.min.js.map | ||||
							
								
								
									
										1
									
								
								node_modules/eventemitter3/dist/eventemitter3.esm.min.js.map
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								node_modules/eventemitter3/dist/eventemitter3.esm.min.js.map
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
							
								
								
									
										355
									
								
								node_modules/eventemitter3/dist/eventemitter3.umd.js
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										355
									
								
								node_modules/eventemitter3/dist/eventemitter3.umd.js
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,355 @@ | ||||
| (function (global, factory) { | ||||
|   typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : | ||||
|   typeof define === 'function' && define.amd ? define(factory) : | ||||
|   (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.EventEmitter3 = factory()); | ||||
| })(this, (function () { 'use strict'; | ||||
|  | ||||
|   var eventemitter3Exports = {}; | ||||
|   var eventemitter3$1 = { | ||||
|     get exports(){ return eventemitter3Exports; }, | ||||
|     set exports(v){ eventemitter3Exports = v; }, | ||||
|   }; | ||||
|  | ||||
|   (function (module) { | ||||
|  | ||||
|   	var has = Object.prototype.hasOwnProperty | ||||
|   	  , prefix = '~'; | ||||
|  | ||||
|   	/** | ||||
|   	 * Constructor to create a storage for our `EE` objects. | ||||
|   	 * An `Events` instance is a plain object whose properties are event names. | ||||
|   	 * | ||||
|   	 * @constructor | ||||
|   	 * @private | ||||
|   	 */ | ||||
|   	function Events() {} | ||||
|  | ||||
|   	// | ||||
|   	// We try to not inherit from `Object.prototype`. In some engines creating an | ||||
|   	// instance in this way is faster than calling `Object.create(null)` directly. | ||||
|   	// If `Object.create(null)` is not supported we prefix the event names with a | ||||
|   	// character to make sure that the built-in object properties are not | ||||
|   	// overridden or used as an attack vector. | ||||
|   	// | ||||
|   	if (Object.create) { | ||||
|   	  Events.prototype = Object.create(null); | ||||
|  | ||||
|   	  // | ||||
|   	  // This hack is needed because the `__proto__` property is still inherited in | ||||
|   	  // some old browsers like Android 4, iPhone 5.1, Opera 11 and Safari 5. | ||||
|   	  // | ||||
|   	  if (!new Events().__proto__) prefix = false; | ||||
|   	} | ||||
|  | ||||
|   	/** | ||||
|   	 * Representation of a single event listener. | ||||
|   	 * | ||||
|   	 * @param {Function} fn The listener function. | ||||
|   	 * @param {*} context The context to invoke the listener with. | ||||
|   	 * @param {Boolean} [once=false] Specify if the listener is a one-time listener. | ||||
|   	 * @constructor | ||||
|   	 * @private | ||||
|   	 */ | ||||
|   	function EE(fn, context, once) { | ||||
|   	  this.fn = fn; | ||||
|   	  this.context = context; | ||||
|   	  this.once = once || false; | ||||
|   	} | ||||
|  | ||||
|   	/** | ||||
|   	 * Add a listener for a given event. | ||||
|   	 * | ||||
|   	 * @param {EventEmitter} emitter Reference to the `EventEmitter` instance. | ||||
|   	 * @param {(String|Symbol)} event The event name. | ||||
|   	 * @param {Function} fn The listener function. | ||||
|   	 * @param {*} context The context to invoke the listener with. | ||||
|   	 * @param {Boolean} once Specify if the listener is a one-time listener. | ||||
|   	 * @returns {EventEmitter} | ||||
|   	 * @private | ||||
|   	 */ | ||||
|   	function addListener(emitter, event, fn, context, once) { | ||||
|   	  if (typeof fn !== 'function') { | ||||
|   	    throw new TypeError('The listener must be a function'); | ||||
|   	  } | ||||
|  | ||||
|   	  var listener = new EE(fn, context || emitter, once) | ||||
|   	    , evt = prefix ? prefix + event : event; | ||||
|  | ||||
|   	  if (!emitter._events[evt]) emitter._events[evt] = listener, emitter._eventsCount++; | ||||
|   	  else if (!emitter._events[evt].fn) emitter._events[evt].push(listener); | ||||
|   	  else emitter._events[evt] = [emitter._events[evt], listener]; | ||||
|  | ||||
|   	  return emitter; | ||||
|   	} | ||||
|  | ||||
|   	/** | ||||
|   	 * Clear event by name. | ||||
|   	 * | ||||
|   	 * @param {EventEmitter} emitter Reference to the `EventEmitter` instance. | ||||
|   	 * @param {(String|Symbol)} evt The Event name. | ||||
|   	 * @private | ||||
|   	 */ | ||||
|   	function clearEvent(emitter, evt) { | ||||
|   	  if (--emitter._eventsCount === 0) emitter._events = new Events(); | ||||
|   	  else delete emitter._events[evt]; | ||||
|   	} | ||||
|  | ||||
|   	/** | ||||
|   	 * Minimal `EventEmitter` interface that is molded against the Node.js | ||||
|   	 * `EventEmitter` interface. | ||||
|   	 * | ||||
|   	 * @constructor | ||||
|   	 * @public | ||||
|   	 */ | ||||
|   	function EventEmitter() { | ||||
|   	  this._events = new Events(); | ||||
|   	  this._eventsCount = 0; | ||||
|   	} | ||||
|  | ||||
|   	/** | ||||
|   	 * Return an array listing the events for which the emitter has registered | ||||
|   	 * listeners. | ||||
|   	 * | ||||
|   	 * @returns {Array} | ||||
|   	 * @public | ||||
|   	 */ | ||||
|   	EventEmitter.prototype.eventNames = function eventNames() { | ||||
|   	  var names = [] | ||||
|   	    , events | ||||
|   	    , name; | ||||
|  | ||||
|   	  if (this._eventsCount === 0) return names; | ||||
|  | ||||
|   	  for (name in (events = this._events)) { | ||||
|   	    if (has.call(events, name)) names.push(prefix ? name.slice(1) : name); | ||||
|   	  } | ||||
|  | ||||
|   	  if (Object.getOwnPropertySymbols) { | ||||
|   	    return names.concat(Object.getOwnPropertySymbols(events)); | ||||
|   	  } | ||||
|  | ||||
|   	  return names; | ||||
|   	}; | ||||
|  | ||||
|   	/** | ||||
|   	 * Return the listeners registered for a given event. | ||||
|   	 * | ||||
|   	 * @param {(String|Symbol)} event The event name. | ||||
|   	 * @returns {Array} The registered listeners. | ||||
|   	 * @public | ||||
|   	 */ | ||||
|   	EventEmitter.prototype.listeners = function listeners(event) { | ||||
|   	  var evt = prefix ? prefix + event : event | ||||
|   	    , handlers = this._events[evt]; | ||||
|  | ||||
|   	  if (!handlers) return []; | ||||
|   	  if (handlers.fn) return [handlers.fn]; | ||||
|  | ||||
|   	  for (var i = 0, l = handlers.length, ee = new Array(l); i < l; i++) { | ||||
|   	    ee[i] = handlers[i].fn; | ||||
|   	  } | ||||
|  | ||||
|   	  return ee; | ||||
|   	}; | ||||
|  | ||||
|   	/** | ||||
|   	 * Return the number of listeners listening to a given event. | ||||
|   	 * | ||||
|   	 * @param {(String|Symbol)} event The event name. | ||||
|   	 * @returns {Number} The number of listeners. | ||||
|   	 * @public | ||||
|   	 */ | ||||
|   	EventEmitter.prototype.listenerCount = function listenerCount(event) { | ||||
|   	  var evt = prefix ? prefix + event : event | ||||
|   	    , listeners = this._events[evt]; | ||||
|  | ||||
|   	  if (!listeners) return 0; | ||||
|   	  if (listeners.fn) return 1; | ||||
|   	  return listeners.length; | ||||
|   	}; | ||||
|  | ||||
|   	/** | ||||
|   	 * Calls each of the listeners registered for a given event. | ||||
|   	 * | ||||
|   	 * @param {(String|Symbol)} event The event name. | ||||
|   	 * @returns {Boolean} `true` if the event had listeners, else `false`. | ||||
|   	 * @public | ||||
|   	 */ | ||||
|   	EventEmitter.prototype.emit = function emit(event, a1, a2, a3, a4, a5) { | ||||
|   	  var evt = prefix ? prefix + event : event; | ||||
|  | ||||
|   	  if (!this._events[evt]) return false; | ||||
|  | ||||
|   	  var listeners = this._events[evt] | ||||
|   	    , len = arguments.length | ||||
|   	    , args | ||||
|   	    , i; | ||||
|  | ||||
|   	  if (listeners.fn) { | ||||
|   	    if (listeners.once) this.removeListener(event, listeners.fn, undefined, true); | ||||
|  | ||||
|   	    switch (len) { | ||||
|   	      case 1: return listeners.fn.call(listeners.context), true; | ||||
|   	      case 2: return listeners.fn.call(listeners.context, a1), true; | ||||
|   	      case 3: return listeners.fn.call(listeners.context, a1, a2), true; | ||||
|   	      case 4: return listeners.fn.call(listeners.context, a1, a2, a3), true; | ||||
|   	      case 5: return listeners.fn.call(listeners.context, a1, a2, a3, a4), true; | ||||
|   	      case 6: return listeners.fn.call(listeners.context, a1, a2, a3, a4, a5), true; | ||||
|   	    } | ||||
|  | ||||
|   	    for (i = 1, args = new Array(len -1); i < len; i++) { | ||||
|   	      args[i - 1] = arguments[i]; | ||||
|   	    } | ||||
|  | ||||
|   	    listeners.fn.apply(listeners.context, args); | ||||
|   	  } else { | ||||
|   	    var length = listeners.length | ||||
|   	      , j; | ||||
|  | ||||
|   	    for (i = 0; i < length; i++) { | ||||
|   	      if (listeners[i].once) this.removeListener(event, listeners[i].fn, undefined, true); | ||||
|  | ||||
|   	      switch (len) { | ||||
|   	        case 1: listeners[i].fn.call(listeners[i].context); break; | ||||
|   	        case 2: listeners[i].fn.call(listeners[i].context, a1); break; | ||||
|   	        case 3: listeners[i].fn.call(listeners[i].context, a1, a2); break; | ||||
|   	        case 4: listeners[i].fn.call(listeners[i].context, a1, a2, a3); break; | ||||
|   	        default: | ||||
|   	          if (!args) for (j = 1, args = new Array(len -1); j < len; j++) { | ||||
|   	            args[j - 1] = arguments[j]; | ||||
|   	          } | ||||
|  | ||||
|   	          listeners[i].fn.apply(listeners[i].context, args); | ||||
|   	      } | ||||
|   	    } | ||||
|   	  } | ||||
|  | ||||
|   	  return true; | ||||
|   	}; | ||||
|  | ||||
|   	/** | ||||
|   	 * Add a listener for a given event. | ||||
|   	 * | ||||
|   	 * @param {(String|Symbol)} event The event name. | ||||
|   	 * @param {Function} fn The listener function. | ||||
|   	 * @param {*} [context=this] The context to invoke the listener with. | ||||
|   	 * @returns {EventEmitter} `this`. | ||||
|   	 * @public | ||||
|   	 */ | ||||
|   	EventEmitter.prototype.on = function on(event, fn, context) { | ||||
|   	  return addListener(this, event, fn, context, false); | ||||
|   	}; | ||||
|  | ||||
|   	/** | ||||
|   	 * Add a one-time listener for a given event. | ||||
|   	 * | ||||
|   	 * @param {(String|Symbol)} event The event name. | ||||
|   	 * @param {Function} fn The listener function. | ||||
|   	 * @param {*} [context=this] The context to invoke the listener with. | ||||
|   	 * @returns {EventEmitter} `this`. | ||||
|   	 * @public | ||||
|   	 */ | ||||
|   	EventEmitter.prototype.once = function once(event, fn, context) { | ||||
|   	  return addListener(this, event, fn, context, true); | ||||
|   	}; | ||||
|  | ||||
|   	/** | ||||
|   	 * Remove the listeners of a given event. | ||||
|   	 * | ||||
|   	 * @param {(String|Symbol)} event The event name. | ||||
|   	 * @param {Function} fn Only remove the listeners that match this function. | ||||
|   	 * @param {*} context Only remove the listeners that have this context. | ||||
|   	 * @param {Boolean} once Only remove one-time listeners. | ||||
|   	 * @returns {EventEmitter} `this`. | ||||
|   	 * @public | ||||
|   	 */ | ||||
|   	EventEmitter.prototype.removeListener = function removeListener(event, fn, context, once) { | ||||
|   	  var evt = prefix ? prefix + event : event; | ||||
|  | ||||
|   	  if (!this._events[evt]) return this; | ||||
|   	  if (!fn) { | ||||
|   	    clearEvent(this, evt); | ||||
|   	    return this; | ||||
|   	  } | ||||
|  | ||||
|   	  var listeners = this._events[evt]; | ||||
|  | ||||
|   	  if (listeners.fn) { | ||||
|   	    if ( | ||||
|   	      listeners.fn === fn && | ||||
|   	      (!once || listeners.once) && | ||||
|   	      (!context || listeners.context === context) | ||||
|   	    ) { | ||||
|   	      clearEvent(this, evt); | ||||
|   	    } | ||||
|   	  } else { | ||||
|   	    for (var i = 0, events = [], length = listeners.length; i < length; i++) { | ||||
|   	      if ( | ||||
|   	        listeners[i].fn !== fn || | ||||
|   	        (once && !listeners[i].once) || | ||||
|   	        (context && listeners[i].context !== context) | ||||
|   	      ) { | ||||
|   	        events.push(listeners[i]); | ||||
|   	      } | ||||
|   	    } | ||||
|  | ||||
|   	    // | ||||
|   	    // Reset the array, or remove it completely if we have no more listeners. | ||||
|   	    // | ||||
|   	    if (events.length) this._events[evt] = events.length === 1 ? events[0] : events; | ||||
|   	    else clearEvent(this, evt); | ||||
|   	  } | ||||
|  | ||||
|   	  return this; | ||||
|   	}; | ||||
|  | ||||
|   	/** | ||||
|   	 * Remove all listeners, or those of the specified event. | ||||
|   	 * | ||||
|   	 * @param {(String|Symbol)} [event] The event name. | ||||
|   	 * @returns {EventEmitter} `this`. | ||||
|   	 * @public | ||||
|   	 */ | ||||
|   	EventEmitter.prototype.removeAllListeners = function removeAllListeners(event) { | ||||
|   	  var evt; | ||||
|  | ||||
|   	  if (event) { | ||||
|   	    evt = prefix ? prefix + event : event; | ||||
|   	    if (this._events[evt]) clearEvent(this, evt); | ||||
|   	  } else { | ||||
|   	    this._events = new Events(); | ||||
|   	    this._eventsCount = 0; | ||||
|   	  } | ||||
|  | ||||
|   	  return this; | ||||
|   	}; | ||||
|  | ||||
|   	// | ||||
|   	// Alias methods names because people roll like that. | ||||
|   	// | ||||
|   	EventEmitter.prototype.off = EventEmitter.prototype.removeListener; | ||||
|   	EventEmitter.prototype.addListener = EventEmitter.prototype.on; | ||||
|  | ||||
|   	// | ||||
|   	// Expose the prefix. | ||||
|   	// | ||||
|   	EventEmitter.prefixed = prefix; | ||||
|  | ||||
|   	// | ||||
|   	// Allow `EventEmitter` to be imported as module namespace. | ||||
|   	// | ||||
|   	EventEmitter.EventEmitter = EventEmitter; | ||||
|  | ||||
|   	// | ||||
|   	// Expose the module. | ||||
|   	// | ||||
|   	{ | ||||
|   	  module.exports = EventEmitter; | ||||
|   	} | ||||
|   } (eventemitter3$1)); | ||||
|  | ||||
|   var eventemitter3 = eventemitter3Exports; | ||||
|  | ||||
|   return eventemitter3; | ||||
|  | ||||
| })); | ||||
							
								
								
									
										1
									
								
								node_modules/eventemitter3/dist/eventemitter3.umd.min.js
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								node_modules/eventemitter3/dist/eventemitter3.umd.min.js
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1 @@ | ||||
| !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).EventEmitter3=t()}(this,(function(){"use strict";var e={};return function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}function o(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function s(e,t,r,s,i){if("function"!=typeof r)throw new TypeError("The listener must be a function");var c=new o(r,s||e,i),f=n?n+t:t;return e._events[f]?e._events[f].fn?e._events[f]=[e._events[f],c]:e._events[f].push(c):(e._events[f]=c,e._eventsCount++),e}function i(e,t){0==--e._eventsCount?e._events=new r:delete e._events[t]}function c(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),c.prototype.eventNames=function(){var e,r,o=[];if(0===this._eventsCount)return o;for(r in e=this._events)t.call(e,r)&&o.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(e)):o},c.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var o=0,s=r.length,i=new Array(s);o<s;o++)i[o]=r[o].fn;return i},c.prototype.listenerCount=function(e){var t=n?n+e:e,r=this._events[t];return r?r.fn?1:r.length:0},c.prototype.emit=function(e,t,r,o,s,i){var c=n?n+e:e;if(!this._events[c])return!1;var f,u,a=this._events[c],l=arguments.length;if(a.fn){switch(a.once&&this.removeListener(e,a.fn,void 0,!0),l){case 1:return a.fn.call(a.context),!0;case 2:return a.fn.call(a.context,t),!0;case 3:return a.fn.call(a.context,t,r),!0;case 4:return a.fn.call(a.context,t,r,o),!0;case 5:return a.fn.call(a.context,t,r,o,s),!0;case 6:return a.fn.call(a.context,t,r,o,s,i),!0}for(u=1,f=new Array(l-1);u<l;u++)f[u-1]=arguments[u];a.fn.apply(a.context,f)}else{var p,v=a.length;for(u=0;u<v;u++)switch(a[u].once&&this.removeListener(e,a[u].fn,void 0,!0),l){case 1:a[u].fn.call(a[u].context);break;case 2:a[u].fn.call(a[u].context,t);break;case 3:a[u].fn.call(a[u].context,t,r);break;case 4:a[u].fn.call(a[u].context,t,r,o);break;default:if(!f)for(p=1,f=new Array(l-1);p<l;p++)f[p-1]=arguments[p];a[u].fn.apply(a[u].context,f)}}return!0},c.prototype.on=function(e,t,n){return s(this,e,t,n,!1)},c.prototype.once=function(e,t,n){return s(this,e,t,n,!0)},c.prototype.removeListener=function(e,t,r,o){var s=n?n+e:e;if(!this._events[s])return this;if(!t)return i(this,s),this;var c=this._events[s];if(c.fn)c.fn!==t||o&&!c.once||r&&c.context!==r||i(this,s);else{for(var f=0,u=[],a=c.length;f<a;f++)(c[f].fn!==t||o&&!c[f].once||r&&c[f].context!==r)&&u.push(c[f]);u.length?this._events[s]=1===u.length?u[0]:u:i(this,s)}return this},c.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&i(this,t)):(this._events=new r,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prefixed=n,c.EventEmitter=c,e.exports=c}({get exports(){return e},set exports(t){e=t}}),e}));//# sourceMappingURL=eventemitter3.umd.min.js.map | ||||
							
								
								
									
										1
									
								
								node_modules/eventemitter3/dist/eventemitter3.umd.min.js.map
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								node_modules/eventemitter3/dist/eventemitter3.umd.min.js.map
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
		Reference in New Issue
	
	Block a user