!function(e){if("object"==typeofexports&&"undefined"!=typeofmodule)module.exports=e();elseif("function"==typeofdefine&&define.amd)define([],e);else{varf;"undefined"!=typeofwindow?f=window:"undefined"!=typeofglobal?f=global:"undefined"!=typeofself&&(f=self),f.io=e()}}(function(){vardefine,module,exports;returnfunctione(t,n,r){functions(o,u){if(!n[o]){if(!t[o]){vara=typeofrequire=="function"&&require;if(!u&&a)returna(o,!0);if(i)returni(o,!0);thrownewError("Cannot find module '"+o+"'")}varf=n[o]={exports:{}};t[o][0].call(f.exports,function(e){varn=t[o][1][e];returns(n?n:e)},f,f.exports,e,t,n,r)}returnn[o].exports}vari=typeofrequire=="function"&&require;for(varo=0;o<r.length;o++)s(r[o]);returns}({1:[function(_dereq_,module,exports){module.exports=_dereq_("./lib/")},{"./lib/":2}],2:[function(_dereq_,module,exports){varurl=_dereq_("./url");varparser=_dereq_("socket.io-parser");varManager=_dereq_("./manager");vardebug=_dereq_("debug")("socket.io-client");module.exports=exports=lookup;varcache=exports.managers={};functionlookup(uri,opts){if(typeofuri=="object"){opts=uri;uri=undefined}opts=opts||{};varparsed=url(uri);varsource=parsed.source;varid=parsed.id;vario;if(opts.forceNew||opts["force new connection"]||false===opts.multiplex){debug("ignoring socket cache for %s",source);io=Manager(source,opts)}else{if(!cache[id]){debug("new io instance for %s",source);cache[id]=Manager(source,opts)}io=cache[id]}returnio.socket(parsed.path)}exports.protocol=parser.protocol;exports.connect=lookup;exports.Manager=_dereq_("./manager");exports.Socket=_dereq_("./socket")},{"./manager":3,"./socket":5,"./url":6,debug:10,"socket.io-parser":44}],3:[function(_dereq_,module,exports){varurl=_dereq_("./url");vareio=_dereq_("engine.io-client");varSocket=_dereq_("./socket");varEmitter=_dereq_("component-emitter");varparser=_dereq_("socket.io-parser");varon=_dereq_("./on");varbind=_dereq_("component-bind");varobject=_dereq_("object-component");vardebug=_dereq_("debug")("socket.io-client:manager");varindexOf=_dereq_("indexof");varBackoff=_dereq_("backo2");module.exports=Manager;functionManager(uri,opts){if(!(thisinstanceofManager))returnnewManager(uri,opts);if(uri&&"object"==typeofuri){opts=uri;uri=undefined}opts=opts||{};opts.path=opts.path||"/socket.io";this.nsps={};this.subs=[];this.opts=opts;this.reconnection(opts.reconnection!==false);this.reconnectionAttempts(opts.reconnectionAttempts||Infinity);this.reconnectionDelay(opts.reconnectionDelay||1e3);this.reconnectionDelayMax(opts.reconnectionDelayMax||5e3);this.randomizationFactor(opts.randomizationFactor||.5);this.backoff=newBackoff({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()});this.timeout(null==opts.timeout?2e4:opts.timeout);this.readyState="closed";this.uri=uri;this.connected=[];this.encoding=false;this.packetBuffer=[];this.encoder=newparser.Encoder;this.decoder=newparser.Decoder;this.autoConnect=opts.autoConnect!==false;if(this.autoConnect)this.open()}Manager.prototype.emitAll=function(){this.emit.apply(this,arguments);for(varnspinthis.nsps){this.nsps[nsp].emit.apply(this.nsps[nsp],arguments)}};Manager.prototype.updateSocketIds=function(){for(varnspinthis.nsps){this.nsps[nsp].id=this.engine.id}};Emitter(Manager.prototype);Manager.prototype.reconnection=function(v){if(!arguments.length)returnthis._reconnection;this._reconnection=!!v;returnthis};Manager.prototype.reconnectionAttempts=function(v){if(!arguments.length)returnthis._reconnectionAttempts;this._reconnectionAttempts=v;returnthis};Manager.prototype.reconnectionDelay=function(v){if(!arguments.length)returnthis._reconnectionDelay;this._reconnectionDelay=v;this.backoff&&this.backoff.setMin(v);returnthis};Manager.prototype.randomizationFactor=function(v){if(!arguments.length)returnthis._randomizationFactor;this._randomizationFactor=v;this.backoff&&this.backoff.setJitter(v);returnthis};Manager.prototype.reconnectionDelayMax=function(v){if(!arguments.length)returnthis._reconnectionDelayMax;this._reconnectionDelayMax=v;this.ba