import{rasO}from"./@socket.io.573b606e.js";import{rasv}from"./debug.b392f131.js";var_={},y={},d={},g;functionC(){if(g)returnd;g=1,Object.defineProperty(d,"__esModule",{value:!0}),d.hasBinary=d.isBinary=void0;constu=typeofArrayBuffer=="function",E=e=>typeofArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.bufferinstanceofArrayBuffer,a=Object.prototype.toString,N=typeofBlob=="function"||typeofBlob<"u"&&a.call(Blob)==="[object BlobConstructor]",p=typeofFile=="function"||typeofFile<"u"&&a.call(File)==="[object FileConstructor]";functionn(e){returnu&&(einstanceofArrayBuffer||E(e))||N&&einstanceofBlob||p&&einstanceofFile}d.isBinary=n;functioni(e,o){if(!e||typeofe!="object")return!1;if(Array.isArray(e)){for(letf=0,B=e.length;f<B;f++)if(i(e[f]))return!0;return!1}if(n(e))return!0;if(e.toJSON&&typeofe.toJSON=="function"&&arguments.length===1)returni(e.toJSON(),!0);for(constfine)if(Object.prototype.hasOwnProperty.call(e,f)&&i(e[f]))return!0;return!1}returnd.hasBinary=i,d}varw;functionk(){if(w)returny;w=1,Object.defineProperty(y,"__esModule",{value:!0}),y.reconstructPacket=y.deconstructPacket=void0;constu=C();functionE(n){consti=[],e=n.data,o=n;returno.data=a(e,i),o.attachments=i.length,{packet:o,buffers:i}}y.deconstructPacket=E;functiona(n,i){if(!n)returnn;if((0,u.isBinary)(n)){conste={_placeholder:!0,num:i.length};returni.push(n),e}elseif(Array.isArray(n)){conste=newArray(n.length);for(leto=0;o<n.length;o++)e[o]=a(n[o],i);returne}elseif(typeofn=="object"&&!(ninstanceofDate)){conste={};for(constoinn)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=a(n[o],i));returne}returnn}functionN(n,i){returnn.data=p(n.data,i),deleten.attachments,n}y.reconstructPacket=N;functionp(n,i){if(!n)returnn;if(n&&n._placeholder===!0){if(typeofn.num=="number"&&n.num>=0&&n.num<i.length)returni[n.num];thrownewError("illegal attachments")}elseif(Array.isArray(n))for(lete=0;e<n.length;e++)n[e]=p(n[e],i);elseif(typeofn=="object")for(consteinn)Object.prototype.hasOwnProperty.call(n,e)&&(n[e]=p(n[e],i));returnn}returny}varR;functionS(){returnR||(R=1,function(u){Object.defineProperty(u,"__esModule",{value:!0}),u.Decoder=u.Encoder=u.PacketType=u.protocol=void0;constE=O,a=k(),N=C(),n=(0,v().default)("socket.io-parser"),i=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"];u.protocol=5;vare;(function(c){c[c.CONNECT=0]="CONNECT",c[c.DISCONNECT=1]="DISCONNECT",c[c.EVENT=2]="EVENT",c[c.ACK=3]="ACK",c[c.CONNECT_ERROR=4]="CONNECT_ERROR",c[c.BINARY_EVENT=5]="BINARY_EVENT",c[c.BINARY_ACK=6]="BINARY_ACK"})(e=u.PacketType||(u.PacketType={}));classo{constructor(t){this.replacer=t}encode(t){returnn("encoding packet %j",t),(t.type===e.EVENT||t.type===e.ACK)&&(0,N.hasBinary)(t)?this.encodeAsBinary({type:t.type===e.EVENT?e.BINARY_EVENT:e.BINARY_ACK,nsp:t.nsp,data:t.data,id:t.id}):[this.encodeAsString(t)]}encodeAsString(t){letr=""+t.type;return(t.type===e.BINARY_EVENT||t.type===e.BINARY_ACK)&&(r+=t.attachments+"-"),t.nsp&&t.nsp!=="/"&&(r+=t.nsp+","),t.id!=null&&(r+=t.id),t.data!=null&&(r+=JSON.stringify(t.data,this.replacer)),n("encoded %j as %s",t,r),r}encodeAsBinary(t){constr=(0,a.deconstructPacket)(t),s=this.encodeAsString(r.packet),A=r.buffers;returnA.unshift(s),A}}u.Encoder=o;functionf(c){returnObject.prototype.toString.call(c)==="[object Object]"}classBextendsE.Emitter{constructor(t){super(),this.reviver=t}add(t){letr;if(typeoft=="string"){if(this.reconstructor)thrownewError("got plaintext data when reconstructing a packet");r=this.decodeString(t);consts=r.type===e.BINARY_EVENT;s||r.type===e.BINARY_ACK?(r.type=s?e.EVENT:e.ACK,this.reconstructor=newm(r),r.attachments===0&&super.emitReserved("decoded",r)):super.emitReserved("decoded",r)}elseif((0,N.isBinary)(t)||t.base64)if(this.reconstructor)r=this.reconstructor.takeBinaryData(t),r&&(this.reconstructor=null,super.emitReserved("decoded",r));elsethrownewError("got binary data when not reconstructing a packet");elsethrownewError("Unknown type: "+t)}decodeString(t){letr=0;consts={