this.conditionStack=["INITIAL"];this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0};if(this.options.ranges)this.yylloc.range=[0,0];this.offset=0;returnthis},input:function(){vara=this._input[0];this.yytext+=a;this.yyleng++;this.offset++;this.match+=a;this.matched+=a;varb=a.match(/(?:\r\n?|\n).*/g);if(b){this.yylineno++;this.yylloc.last_line++}else{this.yylloc.last_column++}if(this.options.ranges)this.yylloc.range[1]++;this._input=this._input.slice(1);returna},unput:function(a){varb=a.length;varc=a.split(/(?:\r\n?|\n)/g);this._input=a+this._input;this.yytext=this.yytext.substr(0,this.yytext.length-b-1);this.offset-=b;vard=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1);this.matched=this.matched.substr(0,this.matched.length-1);if(c.length-1)this.yylineno-=c.length-1;vare=this.yylloc.range;this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===d.length?this.yylloc.first_column:0)+d[d.length-c.length].length-c[0].length:this.yylloc.first_column-b};if(this.options.ranges){this.yylloc.range=[e[0],e[0]+this.yyleng-b]}returnthis},more:function(){this._more=true;returnthis},less:function(a){this.unput(this.match.slice(a))},pastInput:function(){vara=this.matched.substr(0,this.matched.length-this.match.length);return(a.length>20?"...":"")+a.substr(-20).replace(/\n/g,"")},upcomingInput:function(){vara=this.match;if(a.length<20){a+=this._input.substr(0,20-a.length)}return(a.substr(0,20)+(a.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){vara=this.pastInput();varb=newArray(a.length+1).join("-");returna+this.upcomingInput()+"\n"+b+"^"},next:function(){if(this.done){returnthis.EOF}if(!this._input)this.done=true;vara,b,c,d,e,f;if(!this._more){this.yytext="";this.match=""}varg=this._currentRules();for(varh=0;h<g.length;h++){c=this._input.match(this.rules[g[h]]);if(c&&(!b||c[0].length>b[0].length)){b=c;d=h;if(!this.options.flex)break}}if(b){f=b[0].match(/(?:\r\n?|\n).*/g);if(f)this.yylineno+=f.length;this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:f?f[f.length-1].length-f[f.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+b[0].length};this.yytext+=b[0];this.match+=b[0];this.matches=b;this.yyleng=this.yytext.length;if(this.options.ranges){this.yylloc.range=[this.offset,this.offset+=this.yyleng]}this._more=false;this._input=this._input.slice(b[0].length);this.matched+=b[0];a=this.performAction.call(this,this.yy,this,g[d],this.conditionStack[this.conditionStack.length-1]);if(this.done&&this._input)this.done=false;if(a)returna;elsereturn}if(this._input===""){returnthis.EOF}else{returnthis.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})}},lex:functionc(){vara=this.next();if(typeofa!=="undefined"){returna}else{returnthis.lex()}},begin:functiond(a){this.conditionStack.push(a)},popState:functione(){returnthis.conditionStack.pop()},_currentRules:functionf(){returnthis.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){returnthis.conditionStack[this.conditionStack.length-2]},pushState:functiong(a){this.begin(a)}};a.options={};a.performAction=functionh(a,b,c,d){functione(a,c){returnb.yytext=b.yytext.substr(a,b.yyleng-c)}varf=d;switch(c){case0:if(b.yytext.slice(-2)==="\\\\"){e(0,1);this.begin("mu")}elseif(b.yytext.slice(-1)==="\\"){e(0,1);this.begin("emu")}else{this.begin("mu")}if(b.yytext)return10;break;case1:return10;break;case2:this.popState();return10;break;case3:b.yytext=b.yytext.substr(5,b.yyleng-9);this.popState();return11;break;case4:return10;break;case5:e(0,4);this.popState();return17;break;case6:return40;break;case7:return41;break;case8:return18;break;case9:this.popState();this.begin("raw");return20;break;case10:b.yytext=b.yytext.substr(4,b.yyleng-8);this.popState();return"RAW_BLOCK";break;case11:return29;break;case12
vare=a("socket.io-parser");varf=a("./manager");varg=a("debug")("socket.io-client");b.exports=c=i;varh=c.managers={};functioni(a,b){if(typeofa=="object"){b=a;a=undefined}b=b||{};varc=d(a);vare=c.source;vari=c.id;varj;if(b.forceNew||b["force new connection"]||false===b.multiplex){g("ignoring socket cache for %s",e);j=f(e,b)}else{if(!h[i]){g("new io instance for %s",e);h[i]=f(e,b)}j=h[i]}returnj.socket(c.path)}c.protocol=e.protocol;c.connect=i;c.Manager=a("./manager");c.Socket=a("./socket")},{"./manager":3,"./socket":5,"./url":6,debug:9,"socket.io-parser":40}],3:[function(a,b,c){vard=a("./url");vare=a("engine.io-client");varf=a("./socket");varg=a("component-emitter");varh=a("socket.io-parser");vari=a("./on");varj=a("component-bind");vark=a("object-component");varl=a("debug")("socket.io-client:manager");b.exports=m;functionm(a,b){if(!(thisinstanceofm))returnnewm(a,b);if(a&&"object"==typeofa){b=a;a=undefined}b=b||{};b.path=b.path||"/socket.io";this.nsps={};this.subs=[];this.opts=b;this.reconnection(b.reconnection!==false);this.reconnectionAttempts(b.reconnectionAttempts||Infinity);this.reconnectionDelay(b.reconnectionDelay||1e3);this.reconnectionDelayMax(b.reconnectionDelayMax||5e3);this.timeout(null==b.timeout?2e4:b.timeout);this.readyState="closed";this.uri=a;this.connected=0;this.attempts=0;this.encoding=false;this.packetBuffer=[];this.encoder=newh.Encoder;this.decoder=newh.Decoder;this.open()}m.prototype.emitAll=function(){this.emit.apply(this,arguments);for(varainthis.nsps){this.nsps[a].emit.apply(this.nsps[a],arguments)}};g(m.prototype);m.prototype.reconnection=function(a){if(!arguments.length)returnthis._reconnection;this._reconnection=!!a;returnthis};m.prototype.reconnectionAttempts=function(a){if(!arguments.length)returnthis._reconnectionAttempts;this._reconnectionAttempts=a;returnthis};m.prototype.reconnectionDelay=function(a){if(!arguments.length)returnthis._reconnectionDelay;this._reconnectionDelay=a;returnthis};m.prototype.reconnectionDelayMax=function(a){if(!arguments.length)returnthis._reconnectionDelayMax;this._reconnectionDelayMax=a;returnthis};m.prototype.timeout=function(a){if(!arguments.length)returnthis._timeout;this._timeout=a;returnthis};m.prototype.maybeReconnectOnOpen=function(){if(!this.openReconnect&&!this.reconnecting&&this._reconnection){this.openReconnect=true;this.reconnect()}};m.prototype.open=m.prototype.connect=function(a){l("readyState %s",this.readyState);if(~this.readyState.indexOf("open"))returnthis;l("opening %s",this.uri);this.engine=e(this.uri,this.opts);varb=this.engine;varc=this;this.readyState="opening";vard=i(b,"open",function(){c.onopen();a&&a()});varf=i(b,"error",function(b){l("connect_error");c.cleanup();c.readyState="closed";c.emitAll("connect_error",b);if(a){vard=newError("Connection error");d.data=b;a(d)}c.maybeReconnectOnOpen()});if(false!==this._timeout){varg=this._timeout;l("connect attempt will timeout after %d",g);varh=setTimeout(function(){l("connect attempt timed out after %d",g);d.destroy();b.close();b.emit("error","timeout");c.emitAll("connect_timeout",g)},g);this.subs.push({destroy:function(){clearTimeout(h)}})}this.subs.push(d);this.subs.push(f);returnthis};m.prototype.onopen=function(){l("open");this.cleanup();this.readyState="open";this.emit("open");vara=this.engine;this.subs.push(i(a,"data",j(this,"ondata")));this.subs.push(i(this.decoder,"decoded",j(this,"ondecoded")));this.subs.push(i(a,"error",j(this,"onerror")));this.subs.push(i(a,"close",j(this,"onclose")))};m.prototype.ondata=function(a){this.decoder.add(a)};m.prototype.ondecoded=function(a){this.emit("packet",a)};m.prototype.onerror=function(a){l("error",a);this.emitAll("error",a)};m.prototype.socket=function(a){varb=this.nsps[a];if(!b){b=newf(this,a);this.nsps[a]=b;varc=this;b.on("connect",function(){c.connected++})}returnb};m.prototype.destroy=function(a){--this.connected||this.close()};m.prototype.packet=function(a){l("writing packet %j",a);varb=this;if(!b.encoding){b.encoding=true;this.encoder.encode(a,function(a){for(varc=0;c<a.length;c++){b.
}d.call(this,a)}g(j,d);j.prototype.name="websocket";j.prototype.supportsBinary=true;j.prototype.doOpen=function(){if(!this.check()){return}vara=this;varb=this.uri();varc=void0;vard={agent:this.agent};this.ws=newi(b,c,d);if(this.ws.binaryType===undefined){this.supportsBinary=false}this.ws.binaryType="arraybuffer";this.addEventListeners()};j.prototype.addEventListeners=function(){vara=this;this.ws.onopen=function(){a.onOpen()};this.ws.onclose=function(){a.onClose()};this.ws.onmessage=function(b){a.onData(b.data)};this.ws.onerror=function(b){a.onError("websocket error",b)}};if("undefined"!=typeofnavigator&&/iPad|iPhone|iPod/i.test(navigator.userAgent)){j.prototype.onData=function(a){varb=this;setTimeout(function(){d.prototype.onData.call(b,a)},0)}}j.prototype.write=function(a){varb=this;this.writable=false;for(varc=0,d=a.length;c<d;c++){e.encodePacket(a[c],this.supportsBinary,function(a){try{b.ws.send(a)}catch(c){h("websocket closed before onclose event")}})}functionf(){b.writable=true;b.emit("drain")}setTimeout(f,0)};j.prototype.onClose=function(){d.prototype.onClose.call(this)};j.prototype.doClose=function(){if(typeofthis.ws!=="undefined"){this.ws.close()}};j.prototype.uri=function(){vara=this.query||{};varb=this.secure?"wss":"ws";varc="";if(this.port&&("wss"==b&&this.port!=443||"ws"==b&&this.port!=80)){c=":"+this.port}if(this.timestampRequests){a[this.timestampParam]=+newDate}if(!this.supportsBinary){a.b64=1}a=f.encode(a);if(a.length){a="?"+a}returnb+"://"+this.hostname+c+this.path+a};j.prototype.check=function(){return!!i&&!("__initialize"ini&&this.name===j.prototype.name)}},{"../transport":14,"component-inherit":21,debug:9,"engine.io-parser":22,parseqs:30,ws:31}],20:[function(a,b,c){vard=a("has-cors");b.exports=function(a){varb=a.xdomain;try{if("undefined"!=typeofXMLHttpRequest&&(!b||d)){returnnewXMLHttpRequest}}catch(c){}if(!b){try{returnnewActiveXObject("Microsoft.XMLHTTP")}catch(c){}}}},{"has-cors":34}],21:[function(a,b,c){b.exports=function(a,b){varc=function(){};c.prototype=b.prototype;a.prototype=newc;a.prototype.constructor=a}},{}],22:[function(a,b,c){vard=typeofself!=="undefined"?self:typeofwindow!=="undefined"?window:{};vare=a("./keys");varf=a("arraybuffer.slice");varg=a("base64-arraybuffer");varh=a("after");vari=a("utf8");varj=navigator.userAgent.match(/Android/i);c.protocol=2;vark=c.packets={open:0,close:1,ping:2,pong:3,message:4,upgrade:5,noop:6};varl=e(k);varm={type:"error",data:"parser error"};varn=a("blob");c.encodePacket=function(a,b,c){if(typeofb=="function"){c=b;b=false}vare=a.data===undefined?undefined:a.data.buffer||a.data;if(d.ArrayBuffer&&einstanceofArrayBuffer){returno(a,b,c)}elseif(n&&einstanceofd.Blob){returnq(a,b,c)}varf=k[a.type];if(undefined!==a.data){f+=i.encode(String(a.data))}returnc(""+f)};functiono(a,b,d){if(!b){returnc.encodeBase64Packet(a,d)}vare=a.data;varf=newUint8Array(e);varg=newUint8Array(1+e.byteLength);g[0]=k[a.type];for(varh=0;h<f.length;h++){g[h+1]=f[h]}returnd(g.buffer)}functionp(a,b,d){if(!b){returnc.encodeBase64Packet(a,d)}vare=newFileReader;e.onload=function(){a.data=e.result;c.encodePacket(a,b,d)};returne.readAsArrayBuffer(a.data)}functionq(a,b,d){if(!b){returnc.encodeBase64Packet(a,d)}if(j){returnp(a,b,d)}vare=newUint8Array(1);e[0]=k[a.type];varf=newn([e.buffer,a.data]);returnd(f)}c.encodeBase64Packet=function(a,b){vare="b"+c.packets[a.type];if(n&&a.datainstanceofn){varf=newFileReader;f.onload=function(){vara=f.result.split(",")[1];b(e+a)};returnf.readAsDataURL(a.data)}varg;try{g=String.fromCharCode.apply(null,newUint8Array(a.data))}catch(h){vari=newUint8Array(a.data);varj=newArray(i.length);for(vark=0;k<i.length;k++){j[k]=i[k]}g=String.fromCharCode.apply(null,j)}e+=d.btoa(g);returnb(e)};c.decodePacket=function(a,b){if(typeofa=="string"||a===undefined){if(a.charAt(0)=="b"){returnc.decodeBase64Packet(a.substr(1),b)}a=i.decode(a);vard=a.charAt(0);if(Number(d)!=d||!l[d]){returnm}if(a.length>1){return{type:l[d],data:a.substring(1)}}else{return{type:l[d]}}}vare=newUint8Array(a);va
if(c>-1){b.fragment=a.substring(c+1)||null;a=a.substring(0,c)}c=a.indexOf("?");if(c>-1){b.query=a.substring(c+1)||null;a=a.substring(0,c)}if(a.substring(0,2)==="//"){b.protocol=null;a=a.substring(2);a=f.parseAuthority(a,b)}else{c=a.indexOf(":");if(c>-1){b.protocol=a.substring(0,c)||null;if(b.protocol&&!b.protocol.match(f.protocol_expression)){b.protocol=undefined}elseif(b.protocol==="file"){a=a.substring(c+3)}elseif(a.substring(c+1,c+3)==="//"){a=a.substring(c+3);a=f.parseAuthority(a,b)}else{a=a.substring(c+1);b.urn=true}}}b.path=a;returnb};f.parseHost=function(a,b){varc=a.indexOf("/");vard;vare;if(c===-1){c=a.length}if(a.charAt(0)==="["){d=a.indexOf("]");b.hostname=a.substring(1,d)||null;b.port=a.substring(d+2,c)||null;if(b.port==="/"){b.port=null}}elseif(a.indexOf(":")!==a.lastIndexOf(":")){b.hostname=a.substring(0,c)||null;b.port=null}else{e=a.substring(0,c).split(":");b.hostname=e[0]||null;b.port=e[1]||null}if(b.hostname&&a.substring(c).charAt(0)!=="/"){c++;a="/"+a}returna.substring(c)||"/"};f.parseAuthority=function(a,b){a=f.parseUserinfo(a,b);returnf.parseHost(a,b)};f.parseUserinfo=function(a,b){varc=a.indexOf("/");vard=c>-1?a.lastIndexOf("@",c):a.indexOf("@");vare;if(d>-1&&(c===-1||d<c)){e=a.substring(0,d).split(":");b.username=e[0]?f.decode(e[0]):null;e.shift();b.password=e[0]?f.decode(e.join(":")):null;a=a.substring(d+1)}else{b.username=null;b.password=null}returna};f.parseQuery=function(a,b){if(!a){return{}}a=a.replace(/&+/g,"&").replace(/^\?*&*|&+$/g,"");if(!a){return{}}varc={};vard=a.split("&");vare=d.length;varg,h,i;for(varj=0;j<e;j++){g=d[j].split("=");h=f.decodeQuery(g.shift(),b);i=g.length?f.decodeQuery(g.join("="),b):null;if(c[h]){if(typeofc[h]==="string"){c[h]=[c[h]]}c[h].push(i)}else{c[h]=i}}returnc};f.build=function(a){varb="";if(a.protocol){b+=a.protocol+":"}if(!a.urn&&(b||a.hostname)){b+="//"}b+=f.buildAuthority(a)||"";if(typeofa.path==="string"){if(a.path.charAt(0)!=="/"&&typeofa.hostname==="string"){b+="/"}b+=a.path}if(typeofa.query==="string"&&a.query){b+="?"+a.query}if(typeofa.fragment==="string"&&a.fragment){b+="#"+a.fragment}returnb};f.buildHost=function(a){varb="";if(!a.hostname){return""}elseif(f.ip6_expression.test(a.hostname)){b+="["+a.hostname+"]"}else{b+=a.hostname}if(a.port){b+=":"+a.port}returnb};f.buildAuthority=function(a){returnf.buildUserinfo(a)+f.buildHost(a)};f.buildUserinfo=function(a){varb="";if(a.username){b+=f.encode(a.username);if(a.password){b+=":"+f.encode(a.password)}b+="@"}returnb};f.buildQuery=function(a,b,c){vard="";vare,g,i,j;for(gina){if(h.call(a,g)&&g){if(k(a[g])){e={};for(i=0,j=a[g].length;i<j;i++){if(a[g][i]!==undefined&&e[a[g][i]+""]===undefined){d+="&"+f.buildQueryParameter(g,a[g][i],c);if(b!==true){e[a[g][i]+""]=true}}}}elseif(a[g]!==undefined){d+="&"+f.buildQueryParameter(g,a[g],c)}}}returnd.substring(1)};f.buildQueryParameter=function(a,b,c){returnf.encodeQuery(a,c)+(b!==null?"="+f.encodeQuery(b,c):"")};f.addQuery=function(a,b,c){if(typeofb==="object"){for(vardinb){if(h.call(b,d)){f.addQuery(a,d,b[d])}}}elseif(typeofb==="string"){if(a[b]===undefined){a[b]=c;return}elseif(typeofa[b]==="string"){a[b]=[a[b]]}if(!k(c)){c=[c]}a[b]=a[b].concat(c)}else{thrownewTypeError("URI.addQuery() accepts an object, string as the name parameter")}};f.removeQuery=function(a,b,c){vard,e,g;if(k(b)){for(d=0,e=b.length;d<e;d++){a[b[d]]=undefined}}elseif(typeofb==="object"){for(ginb){if(h.call(b,g)){f.removeQuery(a,g,b[g])}}}elseif(typeofb==="string"){if(c!==undefined){if(a[b]===c){a[b]=undefined}elseif(k(a[b])){a[b]=l(a[b],c)}}else{a[b]=undefined}}else{thrownewTypeError("URI.addQuery() accepts an object, string as the first parameter")}};f.hasQuery=function(a,b,c,d){if(typeofb==="object"){for(vareinb){if(h.call(b,e)){if(!f.hasQuery(a,e,b[e])){returnfalse}}}returntrue}elseif(typeofb!=="string"){thrownewTypeError("URI.hasQuery() accepts an object, string as the name parameter")}switch(j(c)){case"Undefined":returnbina;case"Boolean":varg=Boolean(k(a[b])?a[b].length:a[b]);returnc===g;case"Function":return!!c(a[b],