!function(e){if("object"==typeofexports&&"undefined"!=typeofmodule)module.exports=e();elseif("function"==typeofdefine&&define.amd)define([],e);else{("undefined"!=typeofwindow?window:"undefined"!=typeofglobal?global:"undefined"!=typeofself?self:this).EventEmitter3=e()}}(function(){returnfunctioni(s,f,c){functionu(t,e){if(!f[t]){if(!s[t]){varn="function"==typeofrequire&&require;if(!e&&n)returnn(t,!0);if(a)returna(t,!0);varr=newError("Cannot find module '"+t+"'");throwr.code="MODULE_NOT_FOUND",r}varo=f[t]={exports:{}};s[t][0].call(o.exports,function(e){returnu(s[t][1][e]||e)},o,o.exports,i,s,f,c)}returnf[t].exports}for(vara="function"==typeofrequire&&require,e=0;e<c.length;e++)u(c[e]);returnu}({1:[function(e,t,n){"use strict";varr=Object.prototype.hasOwnProperty,v="~";functiono(){}functionf(e,t,n){this.fn=e,this.context=t,this.once=n||!1}functioni(e,t,n,r,o){if("function"!=typeofn)thrownewTypeError("The listener must be a function");vari=newf(n,r||e,o),s=v?v+t:t;returne._events[s]?e._events[s].fn?e._events[s]=[e._events[s],i]:e._events[s].push(i):(e._events[s]=i,e._eventsCount++),e}functionu(e,t){0==--e._eventsCount?e._events=newo:deletee._events[t]}functions(){this._events=newo,this._eventsCount=0}Object.create&&(o.prototype=Object.create(null),(newo).__proto__||(v=!1)),s.prototype.eventNames=function(){vare,t,n=[];if(0===this._eventsCount)returnn;for(tine=this._events)r.call(e,t)&&n.push(v?t.slice(1):t);returnObject.getOwnPropertySymbols?n.concat(Object.getOwnPropertySymbols(e)):n},s.prototype.listeners=function(e){vart=v?v+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(varr=0,o=n.length,i=newArray(o);r<o;r++)i[r]=n[r].fn;returni},s.prototype.listenerCount=function(e){vart=v?v+e:e,n=this._events[t];returnn?n.fn?1:n.length:0},s.prototype.emit=function(e,t,n,r,o,i){vars=v?v+e:e;if(!this._events[s])return!1;varf,c,u=this._events[s],a=arguments.length;if(u.fn){switch(u.once&&this.removeListener(e,u.fn,void0,!0),a){case1:returnu.fn.call(u.context),!0;case2:returnu.fn.call(u.context,t),!0;case3:returnu.fn.call(u.context,t,n),!0;case4:returnu.fn.call(u.context,t,n,r),!0;case5:returnu.fn.call(u.context,t,n,r,o),!0;case6:returnu.fn.call(u.context,t,n,r,o,i),!0}for(c=1,f=newArray(a-1);c<a;c++)f[c-1]=arguments[c];u.fn.apply(u.context,f)}else{varl,p=u.length;for(c=0;c<p;c++)switch(u[c].once&&this.removeListener(e,u[c].fn,void0,!0),a){case1:u[c].fn.call(u[c].context);break;case2:u[c].fn.call(u[c].context,t);break;case3:u[c].fn.call(u[c].context,t,n);break;case4:u[c].fn.call(u[c].context,t,n,r);break;default:if(!f)for(l=1,f=newArray(a-1);l<a;l++)f[l-1]=arguments[l];u[c].fn.apply(u[c].context,f)}}return!0},s.prototype.on=function(e,t,n){returni(this,e,t,n,!1)},s.prototype.once=function(e,t,n){returni(this,e,t,n,!0)},s.prototype.removeListener=function(e,t,n,r){varo=v?v+e:e;if(!this._events[o])returnthis;if(!t)returnu(this,o),this;vari=this._events[o];if(i.fn)i.fn!==t||r&&!i.once||n&&i.context!==n||u(this,o);else{for(vars=0,f=[],c=i.length;s<c;s++)(i[s].fn!==t||r&&!i[s].once||n&&i[s].context!==n)&&f.push(i[s]);f.length?this._events[o]=1===f.length?f[0]:f:u(this,o)}returnthis},s.prototype.removeAllListeners=function(e){vart;returne?(t=v?v+e:e,this._events[t]&&u(this,t)):(this._events=newo,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=v,s.EventEmitter=s,void0!==t&&(t.exports=s)},{}]},{},[1])(1)});