(function(f){if(typeofexports==="object"&&typeofmodule!=="undefined"){module.exports=f()}elseif(typeofdefine==="function"&&define.amd){define([],f)}else{varg;if(typeofwindow!=="undefined"){g=window}elseif(typeofglobal!=="undefined"){g=global}elseif(typeofself!=="undefined"){g=self}else{g=this}g.GIF=f()}})(function(){vardefine,module,exports;returnfunction(){functionr(e,n,t){functiono(i,f){if(!n[i]){if(!e[i]){varc="function"==typeofrequire&&require;if(!f&&c)returnc(i,!0);if(u)returnu(i,!0);vara=newError("Cannot find module '"+i+"'");throwa.code="MODULE_NOT_FOUND",a}varp=n[i]={exports:{}};e[i][0].call(p.exports,function(r){varn=e[i][1][r];returno(n||r)},p,p.exports,r,e,n,t)}returnn[i].exports}for(varu="function"==typeofrequire&&require,i=0;i<t.length;i++)o(t[i]);returno}returnr}()({1:[function(require,module,exports){functionEventEmitter(){this._events=this._events||{};this._maxListeners=this._maxListeners||undefined}module.exports=EventEmitter;EventEmitter.EventEmitter=EventEmitter;EventEmitter.prototype._events=undefined;EventEmitter.prototype._maxListeners=undefined;EventEmitter.defaultMaxListeners=10;EventEmitter.prototype.setMaxListeners=function(n){if(!isNumber(n)||n<0||isNaN(n))throwTypeError("n must be a positive number");this._maxListeners=n;returnthis};EventEmitter.prototype.emit=function(type){varer,handler,len,args,i,listeners;if(!this._events)this._events={};if(type==="error"){if(!this._events.error||isObject(this._events.error)&&!this._events.error.length){er=arguments[1];if(erinstanceofError){thrower}else{varerr=newError('Uncaught, unspecified "error" event. ('+er+")");err.context=er;throwerr}}}handler=this._events[type];if(isUndefined(handler))returnfalse;if(isFunction(handler)){switch(arguments.length){case1:handler.call(this);break;case2:handler.call(this,arguments[1]);break;case3:handler.call(this,arguments[1],arguments[2]);break;default:args=Array.prototype.slice.call(arguments,1);handler.apply(this,args)}}elseif(isObject(handler)){args=Array.prototype.slice.call(arguments,1);listeners=handler.slice();len=listeners.length;for(i=0;i<len;i++)listeners[i].apply(this,args)}returntrue};EventEmitter.prototype.addListener=function(type,listener){varm;if(!isFunction(listener))throwTypeError("listener must be a function");if(!this._events)this._events={};if(this._events.newListener)this.emit("newListener",type,isFunction(listener.listener)?listener.listener:listener);if(!this._events[type])this._events[type]=listener;elseif(isObject(this._events[type]))this._events[type].push(listener);elsethis._events[type]=[this._events[type],listener];if(isObject(this._events[type])&&!this._events[type].warned){if(!isUndefined(this._maxListeners)){m=this._maxListeners}else{m=EventEmitter.defaultMaxListeners}if(m&&m>0&&this._events[type].length>m){this._events[type].warned=true;console.error("(node) warning: possible EventEmitter memory "+"leak detected. %d listeners added. "+"Use emitter.setMaxListeners() to increase limit.",this._events[type].length);if(typeofconsole.trace==="function"){console.trace()}}}returnthis};EventEmitter.prototype.on=EventEmitter.prototype.addListener;EventEmitter.prototype.once=function(type,listener){if(!isFunction(listener))throwTypeError("listener must be a function");varfired=false;functiong(){this.removeListener(type,g);if(!fired){fired=true;listener.apply(this,arguments)}}g.listener=listener;this.on(type,g);returnthis};EventEmitter.prototype.removeListener=function(type,listener){varlist,position,length,i;if(!isFunction(listener))throwTypeError("listener must be a function");if(!this._events||!this._events[type])returnthis;list=this._events[type];length=list.length;position=-1;if(list===listener||isFunction(list.listener)&&list.listener===listener){deletethis._events[type];if(this._events.removeListener)this.emit("removeListener",type,listener)}elseif(isObject(list)){for(i=length;i-->0;){if(list[i]===listener||list[i].listener&&list[i].listener===listener){position=i;break}}if(position<0)returnthis;if(list.length===1){list.length=0