UNPKG

node-haxball

Version:

The most powerful and lightweight API that allows you to develop your original Haxball(www.haxball.com) host, client, and standalone applications both on node.js and browser environments and also includes every possible hack and functionality that you can

1 lines 153 kB
var iX=(()=>{var jDo={};var T5=(D,J)=>()=>(J||D((J={oX:{}}).oX,J),J.oX);var dJ=T5((Q5,B5)=>{var V5=(()=>{var D=(I,V)=>()=>(V||I((V={oX:{}}).oX,V),V.oX),J=D((I,V)=>{function w(C,E){this.x=C,this.y=E}w.prototype={A6:function(){this.x=-this.x,this.y=-this.y}},V.oX=w}),A=D((I,V)=>{var w=J();V.oX=function(C){var{T:E=32,c:O=63,m:_=1,SD:e=0,eD:u=0}=C||{};this.T=E,this.c=O,this.m=_,this.v=new w(e,u)}}),n=D((I,V)=>{function w(E){var{T:O=32,c:_=63,m:e=1,ND:u=0,s:Q=null,p:X=null}=E||{};this.LY=this.yY=this.qD=null,this.Nn=0,this.Ct=null,this.s=Q,this.p=X,this.ND=u,this.m=e,this.c=_,this.T=O,this.iD=1/0}var C=J();w.prototype={Et:function(E){if(E*=.017453292519943295,0>E){E=-E;var O=this.s;this.s=this.p,this.p=O,this.ND=-this.ND}.17435839227423353<E&&5.934119456780721>E&&(this.iD=1/Math.tan(E/2))},Y6:function(){return isFinite(this.iD)?114.59155902616465*Math.atan(1/this.iD):0},l5:function(){var{iD:E,p:{v:O},s:{v:_}}=this,e,u,Q,X;isFinite(E)?(Q=.5*(O.x-_.x),X=.5*(O.y-_.y),e=_.x+Q-X*E,u=_.y+X+Q*E,Q=_.x-e,X=_.y-u,this.Nn=Math.sqrt(Q*Q+X*X),this.LY=new C(u-_.y,_.x-e),this.yY=new C(O.y-u,e-O.x),0>=E&&(this.LY.A6(),this.yY.A6()),this.Ct=new C(e,u)):(Q=_.x-O.x,X=_.y-O.y,u=Math.sqrt(X*X+Q*Q),this.qD=new C(-X/u,Q/u))}},V.oX=w}),t=D((I,V)=>{var w=J();V.oX=function(C){var{T:E=32,c:O=63,m:_=1,cD:e=0,T5:u=0,v5:Q=0}=C||{};this.T=E,this.c=O,this.m=_,this.cD=e,this.qD=new w(u,Q)}}),m=D((I,V)=>{function w(E){var{nv:O=0,cv:_=0,jv:e=0,mv:u=0}=E||{};this.S5=new C(e,u),this.e5=new C(O,_)}var C=J();w.prototype={Tv:function({x:E,y:O},{x:_,y:e}){var{e5:{x:u,y:Q},S5:{x:X,y:x}}=this,R=_-E,B=e-O;return 0<B*(u-E)-R*(Q-O)==0<B*(X-E)-R*(x-O)?!1:(R=X-u,B=x-Q,0<B*(E-u)-R*(O-Q)!=0<B*(_-u)-R*(e-Q))}},V.oX=w}),T=D((I,V)=>{var w=J();V.oX=function(C){var{T:E=63,c:O=63,a:_=.99,f:e=1,m:u=.5,G:Q=10,Dr:X=0,Jr:x=0,Ar:R=0,Yr:B=0,SD:i=0,eD:b=0}=C||{};this.T=E,this.c=O,this.a=_,this.f=e,this.m=u,this.G=Q,this.X=new w(X,x),this.z=new w(R,B),this.v=new w(i,b)}}),S=D((I,V)=>{V.oX=function(w){var{o5:C=1/0,XD:E=100,CD:O=100,pD:_=0,PD:e=0}=w||{};this.o5=C,this.XD=E,this.CD=O,this.pD=_,this.PD=e}}),L=D((I,V)=>{function w(E){C.apply(this,[E])}var C=T();w.prototype={t6:function(E,O,_){var{z:e,f:u}=this;e.x+=E*O*u,e.y+=E*_*u},vv:function(E,O){var{z:_}=this;_.x+=E,_.y+=O},Sv:function(){var{x:E,y:O}=this.z;return 0<E*E+O*O}},V.oX=w}),r=D((I,V)=>{function w(){this.Q=[],this.O=[],this.N=[],this.d=[],this.LD=[]}w.prototype={$D:function(C,E){var O,_,e,u,Q,X,{Q:x,N:R,d:B,O:i,LD:b}=this;x.forEach(({v:d,z:q,X:M,a:s})=>{var{x:tD,y:cD}=q;d.x+=C*tD,d.y+=C*cD,q.x=s*(tD+M.x),q.y=s*(cD+M.y)}),x.forEach((d,q)=>{var{m:M,G:s,c:tD,T:cD,f:rD,v:jD,z:YD}=d;for(O=q+1;O<x.length;O++)if(e=x[O],e.c&cD&&e.T&tD){var{v:f,z:VD}=e,QD=jD.x-f.x,zD=jD.y-f.y,BD=QD*QD+zD*zD,Z=e.G+s;if(0<BD&&BD<=Z*Z){BD=Math.sqrt(BD),QD/=BD,zD/=BD;var _D=rD/(rD+e.f);Z-=BD,BD=Z*_D,jD.x+=QD*BD,jD.y+=zD*BD,Z-=BD,f.x-=QD*Z,f.y-=zD*Z,Z=QD*(YD.x-VD.x)+zD*(YD.y-VD.y),0>Z&&(Z*=M*e.m+1,_D*=Z,YD.x-=QD*_D,YD.y-=zD*_D,_D=Z-_D,VD.x+=QD*_D,VD.y+=zD*_D,E?.$n?.(q,d,O,e))}}if(rD!=0){R.forEach((a,SD)=>{if(a.c&cD&&a.T&tD){var{qD:{x:F,y:l}}=a;u=a.cD-(F*jD.x+l*jD.y)+s,0<u&&(jD.x+=F*u,jD.y+=l*u,u=YD.x*F+YD.y*l,0>u&&(u*=M*a.m+1,YD.x-=u*F,YD.y-=u*l,E?.an?.(q,d,SD)))}}),B.forEach((a,SD)=>{if(a.c&cD&&a.T&tD){var F,l,P,{x:TD,y:yD}=jD;if(isFinite(a.iD)){if(l=a.Ct,F=TD-l.x,l=yD-l.y,P=a.LY,Z=a.yY,(0<P.x*F+P.y*l&&0<Z.x*F+Z.y*l)==0>=a.iD||(Z=Math.sqrt(F*F+l*l),Z==0))return;P=Z-a.Nn,F/=Z,l/=Z}else{var{x:oD,y:qD}=a.s.v,{x:dD,y:ZD}=a.p.v;if(l=dD-oD,F=ZD-qD,P=TD-dD,Z=yD-ZD,0>=(TD-oD)*l+(yD-qD)*F||0<=P*l+Z*F)return;l=a.qD,F=l.x,l=l.y,P=F*P+l*Z}if(Z=a.ND,Z==0)0>P&&(P=-P,F=-F,l=-l);else if(0>Z&&(Z=-Z,P=-P,F=-F,l=-l),P<-Z)return;P>=s||(P=s-P,jD.x+=F*P,jD.y+=l*P,P=F*YD.x+l*YD.y,0>P&&(P*=M*a.m+1,YD.x-=F*P,YD.y-=l*P,E?.hn?.(q,d,SD)))}});var LD=s*s;i.forEach((a,SD)=>{if(a.c&cD&&a.T&tD&&(u=jD.x-a.v.x,Q=jD.y-a.v.y,X=u*u+Q*Q,0<X&&X<=LD)){X=Math.sqrt(X),u/=X,Q/=X,X=s-X,jD.x+=u*X,jD.y+=Q*X,X=u*YD.x+Q*YD.y;var F=0>X;F&&(X*=M*a.m+1,YD.x-=u*X,YD.y-=Q*X),E?.Hn?.(q,d,SD,F)}})}});for(var eD=0;2>eD;eD++)b.forEach(({PD:d,pD:q,o5:M,CD:s,XD:tD},cD)=>{if(d=x[d],q=x[q],d&&q){var{v:rD,z:jD,f:YD}=d,{v:f,z:VD,f:QD}=q;if(_=rD.x-f.x,q=rD.y-f.y,e=Math.sqrt(_*_+q*q),!(0>=e)){if(_/=e,q/=e,O=YD/(YD+QD),O!=O&&(O=.5),s>=tD)u=s,Q=0;else if(e<=s)u=s,Q=1;else if(e>=tD)u=tD,Q=-1;else return;e=u-e,isFinite(M)?(O=M*e*.5,_*=O,q*=O,jD.x+=_*YD,jD.y+=q*YD,VD.x-=_*QD,VD.y-=q*QD,E?.Ot?.(cD,!1,!0)):(u=e*O,rD.x+=_*u*.5,rD.y+=q*u*.5,e-=u,f.x-=_*e*.5,f.y-=q*e*.5,e=_*(jD.x-VD.x)+q*(jD.y-VD.y),(M=0>=Q*e)&&(O*=e,jD.x-=_*O,jD.y-=q*O,O=e-O,VD.x+=_*O,VD.y+=q*O),E?.Ot?.(cD,!0,M))}}})},uY:function(C){this.Q.push(C)},Wt:function(C){C=this.Q.indexOf(C),0>C||this.Q.splice(C,1)}},V.oX=w});return D((I,V)=>{V.oX={dA:J(),ot:A(),qt:n(),Xt:t(),ev:m(),zt:T(),_t:S(),Ut:L(),kt:r()}})()})();typeof Q5<"u"?(typeof B5<"u"&&B5.oX&&(Q5=B5.oX=V5),Q5.n6=V5):typeof root<"u"?root.nago=V5:window.nago=V5});var TA=T5((Rc,mA)=>{function sD(D,J){return J={oX:{}},D(J,J.oX),J.oX}Object.assign(jDo,{q5:null,Q5:{IY:"www.haxball.com",c6:"p2p.haxball.com",iA:!0},c5:null,j6:9,MA:null,Fn:[{urls:"stun:stun.l.google.com:19302"}],m6:"",dt:"",L5:null,y5:null,it:null,rY:null,Lv:null,gn:null,VY:null,Mt:null,T6:null,tA:null,QY:null,UD:null,v6:null,aD:null,S6:null,BY:null,sn:null});var uY=(D,J)=>{var A=jDo,n=J?.backend;n&&(n.hostname!=null&&(A.Q5.IY=n.hostname),n.hostnameWs!=null&&(A.Q5.c6=n.hostnameWs),n.secure!=null&&(A.Q5.iA=n.secure)),n=J?.proxy,n&&(A.q5={yv:n.HttpUrl,wY:n.WebSocketUrl,xt:n.WebSocketChangeOriginAllowed}),J?.version!=null&&(A.j6=J.version),A.m6=(A.Q5.iA?"wss":"ws")+"://"+A.Q5.c6+"/",A.dt=A?.q5?.yv||(A.Q5.iA?"https":"http")+"://"+A.Q5.IY+"/rs/",J?.stunServer!=null&&(A.Fn=[{urls:J.stunServer}]),A.L5=D.setTimeout?.bind(D),A.y5=D.clearTimeout?.bind(D),A.it=D.setInterval?.bind(D),A.rY=D.clearInterval?.bind(D),A.Lv=D.console?.log?.bind(D),A.gn=D.console?.warn?.bind(D),A.VY=D.requestAnimationFrame?.bind(D),A.Mt=D.cancelAnimationFrame?.bind(D),A.T6=D.fetch?.bind(D),A.tA=D.crypto?.subtle,A.QY=D.WebSocket,A.UD=D.performance,A.v6=D.JSON5,A.aD=D.pako,A.c5=J?.proxyAgent,A.MA=J?.identityToken;var t=D.webkitRTCPeerConnection||D.mozRTCPeerConnection||D.RTCPeerConnection,m=D.webkitRTCIceCandidate||D.mozRTCIceCandidate||D.RTCIceCandidate,T=D.webkitRTCSessionDescription||D.mozRTCSessionDescription||D.RTCSessionDescription;return A.S6=t,A.BY=m,A.sn=T,A},K=sD(function(D){D.oX=D.pn||(D.pn={xA:0,CY:1,EY:2,e6:-1,L6:0,y6:1,u6:2,I6:3,r6:4,V6:0,Gt:1,Q6:2,B6:3,w6:4,C6:5,E6:6,O6:7,W6:8,o6:9,Pn:10,q6:12,Zn:14,X6:18,z6:20,_6:21,U6:22,k6:23,d6:24,i6:25,M6:26,x6:27,G6:31,b6:32,xJ:33,R6:36,Dc:38,K6:40,f6:41,l6:51,N6:55,$6:56,Jc:59,a6:2,h6:6,H6:17})}),AJ=null;function FD(D,J=null){this.abbr=D,this.api={errors:{}},this.defineMetadata(J)}Object.defineProperty(FD,"current",{get:function(){return AJ},set:function(D){AJ=D,FD.uv?.(D)}});FD.prototype.defineMetadata=function(D){};FD.resolveText=function(D,J){if(D){J=J.map(S=>S?.tr||S);for(var A=/\$([\d]+)\?\("([^"]*)":"([^"]*)"\)/gm,n=/\$([\d]+)/gm,t,m="",T=0;(t=A.exec(D))!=null;)m+=D.substring(T,t.index)+(J[t[1]-1]?t[2]:t[3]),T=t.index+t[0].length;for(m+=D.substring(T),D="",T=0;(t=n.exec(m))!=null;)D+=m.substring(T,t.index)+J[t[1]-1],T=t.index+t[0].length;return D+=m.substring(T),D}};FD.Ac=(D,J)=>FD.resolveText(AJ?.api?.errors?.[D],J||[]);var aJ=FD,GD=sD(function(D){var{b:J}=jDo,{Ac:A}=aJ;function n(){this.F6=K.V6,this.g6=null;var m=this;this.toString=()=>A(m.F6,m.g6)}function t(m,...T){var S=new n;return S.F6=m,S.g6=T,S}J(n,[],["code","params"],[]),D.oX=D.Iv||(D.Iv={hD:t,OY:n})}),XD=sD(function(D){var{L5:J,y5:A,UD:n,b:t}=jDo,{hD:m}=GD;let T=.97;function S(e,u){var Q=e.indexOf(u);return Q<0?!1:(e.splice(Q,1),!0)}function L(e,u=1){if(u<=0){e();return}Promise.resolve().then(()=>{L(e,u-1)})}function r(e,u=!1){this.W=e,this.MD=u,this.S=0}r.xD=function(e,u){var Q=e.getUint8(u),X=u;if(!(Q&128))u++;else if((Q&224)==192)Q=(Q&31)<<6|e.getUint8(u+1)&63,u+=2;else if((Q&240)==224)Q=(Q&15)<<12|(e.getUint8(u+1)&63)<<6|e.getUint8(u+2)&63,u+=3;else if((Q&248)==240)Q=(Q&7)<<18|(e.getUint8(u+1)&63)<<12|(e.getUint8(u+2)&63)<<6|e.getUint8(u+3)&63,u+=4;else if((Q&252)==248)Q=(Q&3)<<24|(e.getUint8(u+1)&63)<<18|(e.getUint8(u+2)&63)<<12|(e.getUint8(u+3)&63)<<6|e.getUint8(u+4)&63,u+=5;else if((Q&254)==252)Q=(Q&1)<<30|(e.getUint8(u+1)&63)<<24|(e.getUint8(u+2)&63)<<18|(e.getUint8(u+3)&63)<<12|(e.getUint8(u+4)&63)<<6|e.getUint8(u+5)&63,u+=6;else throw m(K.z6,u,Q);return{rv:Q,Vv:u-X}},r.prototype={fD:function(e){if(e==null&&(e=this.W.byteLength-this.S),this.S+e>this.W.byteLength)throw m(K._6);var u=new Uint8Array(this.W.buffer,this.W.byteOffset+this.S,e);return this.S+=e,u},s6:function(e){var u=this.fD(e);return e=new ArrayBuffer(e),new Uint8Array(e).set(u),e},WY:function(){return this.W.getInt8(this.S++)},o:function(){return this.W.getUint8(this.S++)},Yc:function(){var e=this.W.getInt16(this.S,this.MD);return this.S+=2,e},HD:function(){var e=this.W.getUint16(this.S,this.MD);return this.S+=2,e},i:function(){var e=this.W.getInt32(this.S,this.MD);return this.S+=4,e},TD:function(){var e=this.W.getUint32(this.S,this.MD);return this.S+=4,e},tc:function(){var e=this.W.getFloat32(this.S,this.MD);return this.S+=4,e},C:function(){var e=this.W.getFloat64(this.S,this.MD);return this.S+=8,e},xD:function(){var{S:e,W:u}=this,Q=0,X,x=0;do X=u.getUint8(e+Q),Q<5&&(x|=(X&127)<<7*Q>>>0),++Q;while(X&128);return this.S+=Q,x|0},nA:function(e){for(var{S:u,W:Q}=this,X,x="",R=u+e;u<R;)X=r.xD(Q,u),u+=X.Vv,x+=String.fromCodePoint(X.rv);if(u!=R)throw m(K.U6,u-R);return this.S=u,x},u5:function(){var e=this.xD();return e<=0?null:this.nA(e-1)},B5:function(){return this.nA(this.xD())},p6:function(){return this.nA(this.o())},oY:function(){return JSON.parse(this.B5())}};function I(e,u=!1){this.W=e,this.MD=u,this.S=0}I.A=function(e=16,u=!1){return new I(new DataView(new ArrayBuffer(e)),u)},I.kD=function(e,u,Q){var X=Q;if(e<0)throw m(K.k6,e);if(e<128)u.setUint8(Q,e&127),++Q;else if(e<2048)u.setUint8(Q,e>>6&31|192),u.setUint8(Q+1,e&63|128),Q+=2;else if(e<65536)u.setUint8(Q,e>>12&15|224),u.setUint8(Q+1,e>>6&63|128),u.setUint8(Q+2,e&63|128),Q+=3;else if(e<2097152)u.setUint8(Q,e>>18&7|240),u.setUint8(Q+1,e>>12&63|128),u.setUint8(Q+2,e>>6&63|128),u.setUint8(Q+3,e&63|128),Q+=4;else if(e<67108864)u.setUint8(Q,e>>24&3|248),u.setUint8(Q+1,e>>18&63|128),u.setUint8(Q+2,e>>12&63|128),u.setUint8(Q+3,e>>6&63|128),u.setUint8(Q+4,e&63|128),Q+=5;else if(e<-2147483648)u.setUint8(Q,e>>30&1|252),u.setUint8(Q+1,e>>24&63|128),u.setUint8(Q+2,e>>18&63|128),u.setUint8(Q+3,e>>12&63|128),u.setUint8(Q+4,e>>6&63|128),u.setUint8(Q+5,e&63|128),Q+=6;else throw m(K.d6,e);return Q-X},I.Qv=function(e){if(e<0)throw m(K.i6,e);if(e<128)return 1;if(e<2048)return 2;if(e<65536)return 3;if(e<2097152)return 4;if(e<67108864)return 5;if(e<-2147483648)return 6;throw m(K.M6,e)},I.bt=function(e){for(var u=0,Q=e.length,X=0;X<Q;X++)u+=I.Qv(e.charCodeAt(X));return u},I.Bv=function(e){return e>>>=0,e<128?1:e<16384?2:e<2097152?3:e<268435456?4:5},I.prototype={Rt:function(){var e=new ArrayBuffer(this.S),u=new Uint8Array(this.W.buffer,this.W.byteOffset,this.S);return new Uint8Array(e).set(u),e},GD:function(){return new Uint8Array(this.W.buffer,this.W.byteOffset,this.S)},cA:function(){return new DataView(this.W.buffer,this.W.byteOffset,this.S)},wv:function(){return new r(this.cA(),this.MD)},P5:function(e){this.W.byteLength>=e||this.Cv(2*this.W.byteLength>=e?2*this.W.byteLength:e)},Cv:function(e){if(e<1)throw m(K.x6);if(!(this.W.byteLength>=e)){var u=new Uint8Array(this.W.buffer);e=new ArrayBuffer(e),new Uint8Array(e).set(u),this.W=new DataView(e)}},e:function(e){var u=this.S++;this.P5(this.S),this.W.setUint8(u,e)},nc:function(e){var u=this.S;this.S+=2,this.P5(this.S),this.W.setInt16(u,e,this.MD)},lD:function(e){var u=this.S;this.S+=2,this.P5(this.S),this.W.setUint16(u,e,this.MD)},R:function(e){var u=this.S;this.S+=4,this.P5(this.S),this.W.setInt32(u,e,this.MD)},ED:function(e){var u=this.S;this.S+=4,this.P5(this.S),this.W.setUint32(u,e,this.MD)},cc:function(e){var u=this.S;this.S+=4,this.P5(this.S),this.W.setFloat32(u,e,this.MD)},V:function(e){var u=this.S;this.S+=8,this.P5(this.S),this.W.setFloat64(u,e,this.MD)},ZD:function(e){var u=this.S;this.S+=e.byteLength,this.P5(this.S),new Uint8Array(this.W.buffer,this.W.byteOffset,this.W.byteLength).set(e,u)},Kt:function(e){this.ZD(new Uint8Array(e))},w5:function(e){this.kD(I.bt(e)),this.ft(e)},I5:function(e){if(e==null){this.kD(0);return}this.kD(I.bt(e)+1),this.ft(e)},P6:function(e){var u=I.bt(e);if(u>255)throw null;this.e(u),this.ft(e)},lt:function(e){this.w5(JSON.stringify(e))},ft:function(e){var{S:u}=this,Q=e.length;this.P5(u+I.bt(e));for(var{W:X}=this,x=0;x<Q;x++)u+=I.kD(e.charCodeAt(x),X,u);this.S=u},kD:function(e){var{S:u}=this;e>>>=0,this.P5(u+I.Bv(e));var{W:Q}=this;Q.setUint8(u,e|128),e>=128?(Q.setUint8(u+1,e>>7|128),e>=16384?(Q.setUint8(u+2,e>>14|128),e>=2097152?(Q.setUint8(u+3,e>>21|128),e>=268435456?(Q.setUint8(u+4,e>>28&127),e=5):(Q.setUint8(u+3,Q.getUint8(u+3)&127),e=4)):(Q.setUint8(u+2,Q.getUint8(u+2)&127),e=3)):(Q.setUint8(u+1,Q.getUint8(u+1)&127),e=2)):(Q.setUint8(u,Q.getUint8(u)&127),e=1),this.S+=e}};function V(e){this.qY=[];for(var u=0;u<e;u++)this.qY.push(0);this.XY=0,this.jc=0}V.prototype={Ev:function(e){this.jc-=this.qY[this.XY],this.qY[this.XY]=e,this.jc+=e,this.XY++,this.XY>=this.qY.length&&(this.XY=0)},Ov:function(){return this.jc/this.qY.length}};function w(e){this.Wv=e,this.FD=[],this.zY=0}w.prototype={Z6:function(e){this.zY=0;var u=0;this.FD.forEach((X,x)=>{X.mc++,X.GA*=T,this.FD[u].mc<X.mc&&(u=x),this.zY+=X.GA});var Q;for(this.FD.length>=this.Wv?(Q=this.FD[u],this.zY-=Q.GA,this.FD.splice(u,1)):Q={},Q.value=e,Q.GA=1,Q.mc=0,this.zY+=Q.GA,e=0;e<this.FD.length&&this.FD[e].value<=Q.value;++e);this.FD.splice(e,0,Q)},Nt:function(e){if(this.FD.length==0)return 0;if(this.FD.length==1)return this.FD[0].value;e*=this.zY;for(var u=this.FD[0].GA,Q=0;Q<this.FD.length-1&&!(u>=e);)u+=this.FD[++Q].GA;return this.FD[Q].value},ov:function(){return this.FD.length==0?0:this.FD[this.FD.length-1].value}};function C(e,u){this.Dm=e,this.Jm=u,this._Y=e,this.Tc=jDo.UD.now()}C.prototype={Am:function(e=1){return this.$D(),e>this._Y?!1:(this._Y-=e,!0)},$D:function(){var e=jDo.UD.now(),u=Math.floor((e-this.Tc)/this.Jm);this.Tc+=u*this.Jm,this._Y+=u,this._Y>=this.Dm&&(this._Y=this.Dm,this.Tc=e)}};let E="0123456789ABCDEF";var O=e=>(e=parseInt(e),isNaN(e)?null:e),_={name:"Integer"};t(r,[],["dataView","littleEndian","offset"],["readUint8Array","readArrayBuffer","readInt8","readUint8","readInt16","readUint16","readInt32","readUint32","readFloat32","readFloat64","readUTF8Char","readStringContents","readNullableString","readString","readString2","readJSON"]),t(I,[],["dataView","littleEndian","offset"],["toArrayBuffer","toUint8Array","toDataView","createStreamReader","doubleSizeIfNecessary","resize","writeUint8","writeInt16","writeUint16","writeInt32","writeUint32","writeFloat32","writeFloat64","writeUint8Array","writeArrayBuffer","writeString","writeNullableString","writeString2","writeJSON","writeStringContents","writeUTF8Char"]),I.create=I.A,D.oX=D.qv||(D.qv={$t:(e,u,Q)=>e<u?u:e>Q?Q:e,UY:S,GJ:r,bJ:I,Xv:V,zv:w,_v:C,at:_,ht:(e,u)=>{var Q=u!=null;if(Q){switch(u){case Array:Q=e instanceof Array;break;case Boolean:Q=typeof e=="boolean";break;case Number:Q=typeof e=="number";break;case _:Q=typeof e=="number"&&(e|0)===e;break;case String:Q=typeof e=="string";break;default:Q=!1}if(Q)return e}throw m(K.X6,JSON.stringify(e),u.name||JSON.stringify(u))},Ht:(e,u)=>new Promise((Q,X)=>{var x=jDo.L5(()=>{X("Timed out")},u);e.then(R=>{jDo.y5(x),Q(R)},R=>{jDo.y5(x),X(R)})}),Z5:(e,u)=>{var Q=Object.create(e);for(var X in u)Q[X]=u[X];return u.toString!==Object.prototype.toString&&(Q.toString=u.toString),Q},Ft:e=>{for(var u="",Q=0;Q<e.length;)u+=String.fromCharCode(E.indexOf(e.charAt(Q++))<<4|E.indexOf(e.charAt(Q++)));return u},gt:e=>e.reduce((u,Q)=>u+String.fromCharCode(Q),""),st:O,nr:e=>O("0x"+e),kY:(e,u)=>{var Q="";do Q=E.charAt(e&15)+Q,e>>>=4;while(e>0);if(u!=null)for(;Q.length<u;)Q="0"+Q;return Q},pt:e=>{var u;if(e?.includes(".")){if(u=e.split("."),u.length>4)return;for(;u.length<4;)u.splice(0,0,"");return u.reduce((R,B,i)=>{if(R!=null){var b=parseInt(B.length>0?B:"0");return isNaN(b)||b<0||b>255?null:(R|=b<<24-i*8,R)}},0)}if(e?.includes(":")){u=e.split(":");var Q=e.indexOf("::");if(Q!=e.lastIndexOf("::"))return;if(Q>=0){var X=u.length;if(X>9)return;Q=u.findIndex(R=>R.length==0),(Q==0||Q==X-2&&u[X-1].length==0)&&(u.splice(Q,1),X--),u[Q]="0";for(var x=0;x<8-X;x++)u.splice(Q+1,0,"0")}return u.length!=8?void 0:u.reduce((R,B,i)=>{if(R!=null){var b=parseInt(B,16);if(!(isNaN(b)||b<0||b>65535))return R|=BigInt(b)<<112n-BigInt(i)*16n,R}},0n)}},Pt:e=>{var u=e?.__proto__.constructor.name,Q,X;if(u=="BigInt"){var x={dY:-1,N5:0},R={dY:-1,N5:0};for(X=[],Q=0;Q<8;Q++){var B=e&65535n;B==0?(R.N5==0&&(R.dY=7-Q),R.N5++,R.N5>x.N5&&(x.N5=R.N5,x.dY=R.dY)):R.N5=0,X.splice(0,0,B.toString(16)),e>>=16n}x.N5>0&&(Q=x.dY-x.N5+1,X.splice(Q,x.N5-1),X[Q]="");var i=X.join(":");return i.length==0?i="::":i.charAt(i.length-1)==":"?i+=":":i.charAt(0)==":"&&(i=":"+i),i}else if(u=="Number"){for(X=[],Q=0;Q<4;Q++)X.splice(0,0,""+(e&255)),e>>=8;return X.join(".")}},vc:e=>{if(e.length==43){for(var u=0n,Q=0,X=252;Q<43;Q++,X-=6){var x=e.charCodeAt(Q);if(x==45)x=0;else if(x==95)x=63;else if(x>=48&&x<=57)x-=47;else if(x>=65&&x<=90)x-=54;else if(x>=97&&x<=122)x-=60;else return;u|=BigInt(x)<<BigInt(X)}return u}},Sc:e=>{var u=e?.__proto__.constructor.name;if(u=="BigInt"){for(var Q="",X=0;X<43;X++){if(u=Number(e&63n),u==0)u=45;else if(u==63)u=95;else if(u>=1&&u<=10)u+=47;else if(u>=11&&u<=36)u+=54;else if(u>=37&&u<=62)u+=60;else return;Q=String.fromCharCode(u)+Q,e>>=6n}return Q}},Zt:(e,u,Q)=>!((e^u)&Q),iY:(e,u,Q=!0)=>!e&&Q?null:(typeof e=="string"&&(e=JSON.parse(e)),{lat:e?.lat||u?.lat||40,lon:e?.lon||u?.lon||40,flag:e?.flag||u?.flag||"tr"}),ec:L})}),{GJ:iJ,bJ:IY}=XD,{hD:rY}=GD,nJ={name:"ECDSA",namedCurve:"P-256"},hJ={name:"ECDSA",hash:{name:"SHA-256"}};function VY(D,J,A){try{return jDo.tA.importKey("jwk",{crv:"P-256",ext:!0,key_ops:["sign"],kty:"EC",d:A,x:D,y:J},nJ,!0,["sign"])}catch(n){return Promise.reject(n)}}function QY(D,J){try{return jDo.tA.importKey("jwk",{crv:"P-256",ext:!0,key_ops:["verify"],kty:"EC",x:D,y:J},nJ,!0,["verify"])}catch(A){return Promise.reject(A)}}function gD(){this.x=null,this.y=null,this.Lc=null,this.yc=null}gD.Uv=function(){try{return jDo.tA.generateKey(nJ,!0,["sign","verify"]).then(function(D){var J=D.privateKey;return jDo.tA.exportKey("jwk",J).then(function(A){var n=new gD;return n.x=A.x,n.y=A.y,n.Lc=A.d,n.yc=J,n})})}catch(D){return Promise.reject(D)}};gD.kv=function(D){var J=D.split(".");if(J.length!=4||J[0]!="idkey")return Promise.reject(rY(K.l6));var A=J[1],n=J[2],t=J[3];return VY(A,n,t).then(function(m){var T=new gD;return T.x=A,T.y=n,T.Lc=t,T.yc=m,T})};gD.dv=function(D,J){try{var A=new iJ(new DataView(D.buffer,D.byteOffset,D.byteLength),!1);A.o();var n=A.fD(A.HD()),t=A.fD();A=new iJ(new DataView(n.buffer,n.byteOffset,n.byteLength),!1);var m=A.B5(),T=A.B5(),S=A.fD();if(S.byteLength!=J.byteLength)return Promise.reject(null);for(var L=0;L<S.byteLength;L++)if(S[L]!=J[L])return Promise.reject(null);return QY(m,T).then(function(r){return jDo.tA.verify(hJ,r,t,n)}).then(function(r){if(!r)throw null;return m})}catch(r){return Promise.reject(r)}};gD.prototype={iv:function(){return"idkey."+this.x+"."+this.y+"."+this.Lc},Mv:function(D){try{var J=IY.A(1024);J.e(1);var A=J.S;J.lD(0);var n=J.S;J.w5(this.x),J.w5(this.y),J.ZD(D);var t=J.S-n;return J.W.setUint16(A,t,J.MD),jDo.tA.sign(hJ,this.yc,new Uint8Array(J.W.buffer,J.W.byteOffset+n,t)).then(function(m){return J.Kt(m),J.GD()})}catch(m){return Promise.reject(m)}}};var HJ=gD,YJ=sD(function(D){function J(T,S,L,r,I,V,w){return new Promise(function(C,E){var O={method:L,body:I};T!=null&&(O.agent=T);var _=w||{};V!=null&&Object.assign(_,{"Content-type":V}),O.headers=_,jDo.T6(S,O).then(async e=>{e.status>=200&&e.status<300?C(await e[r]()):E("status: "+e.status)}).catch(e=>{E(e)})})}function A(T,S,L,r){return J(T,S,"GET",L,null,null,r)}function n(T,S,L){return A(T,S,"json",L).then(function(r){if(r.error!=null)throw r.error;return r.data})}function t(T,S,L,r,I){return J(T,S,"POST","json",L,r,I).then(function(V){if(V.error!=null)throw V.error;return V.data})}function m({Ym:T,X5:S,tm:L,c5:r,xv:I,bA:V,DJ:w,RA:C,KA:E}){var O;if(r||jDo.q5?.xt){var _={};r&&(_.agent=r);var e=I||{};jDo.q5.xt&&Object.assign(e,{Origin:(jDo.Q5.iA?"https":"http")+"://"+jDo.Q5.IY}),_.headers=e,O=new jDo.QY(T+"?token="+S,L,_)}else O=new jDo.QY(T+"?token="+S,L);return O.binaryType="arraybuffer",O.onopen=V,O.onclose=w,O.onerror=C,O.onmessage=E,O}D.oX=D.Gv||(D.Gv={uc:T=>A(T,jDo.dt+"api/list","arrayBuffer"),Ic:T=>n(T,jDo.dt+"api/geo").then(S=>({lat:S.lat,lon:S.lon,flag:S.code.toLowerCase()})),rc:({c5:T,X5:S,bv:L=""},r,I)=>t(T,jDo.dt+"api/host","token="+S+"&rcr="+L,"application/x-www-form-urlencoded",{Accept:"*/*","Content-length":"11","Content-type":"application/x-www-form-urlencoded",Priority:"u=1, i","User-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36"}).then(V=>{switch(V.action){case"connect":r(V.url,V.token);break;case"recaptcha":I(V.sitekey);break}}),nm:m})}),{hD:J5}=GD,{Z5:BY}=XD;function CD(){this.A5=0}CD.Dn=new Map;CD.Rv=function(D){if(D.JJ==null)throw J5(K.G6);D.prototype.JJ=D.JJ,CD.Dn.set(D.prototype.type,D)};CD.u=function(D,J){var A=D?.fA?.prototype?.type;if(A==null)throw J5(K.b6);J.e(A),D.u(J)};CD.I=function(D,J){var A=fD.Jn(D.o());return A.BD=0,A.I(D,J),A};CD.prototype={k:function(){throw J5(K.xJ)},I:function(){throw J5(K.xJ)},u:function(){throw J5(K.xJ)},copy:function(){throw J5(K.xJ)},fA:CD};CD.prototype.type=null;function fD(){}fD.h=CD;fD.yD=function({J:D,jD:J,JD:A,K:n,uD:t,ID:m,k:T,u:S,I:L}){function r(){this.A5=0,n.call(this)}return r.A=function(...I){return t(new r,...I)},r.prototype=BY(CD.prototype,{k:function(I){T.call(this,I)},u:function(I){S.call(this,I)},I:function(I,V){L.call(this,I,V)},copy:function(){var I=r.A(...m.call(this));return I.A5=this.A5,I.BD=this.BD,I.Y=this.Y,I.An=this.An,to},fA:r}),r.prototype.type=D,r.JJ={jD:J,JD:A},CD.Rv(r),r};fD.MY=function(D,J){CD.Dn.delete(D.prototype.type),D.prototype.type=J,CD.Dn.set(J,D)};fD.Jn=D=>{var J=CD.Dn.get(D);if(J){var A=Object.create(J.prototype);return A.A5=0,A}};fD.Vc=CD.I;fD.Qc=CD.u;var lD=fD,cJ=sD(function(D){var{hD:J}=GD,{yD:A}=lD,n=A({J:K.a6,jD:!1,JD:!1,K:function(){this.nD=null},uD:function(T,S){return T.nD=S,T},ID:function(){var T=null;return this.nD&&(T=new ArrayBuffer(this.nD.byteLength),new Uint8Array(T).set(new Uint8Array(this.nD))),[T]},k:function(T){T.Kv(this.nD)},u:function(T){T.kD(this.nD.byteLength),T.Kt(this.nD)},I:function(T){this.nD=T.s6(T.xD())}}),t=A({J:K.h6,jD:!1,JD:!1,K:function(){this.J=0,this.AJ=null,this.xY=!1,this.Y=0},uD:function(T,S,L,r){return T.J=S,T.AJ=L,T.xY=r,T},ID:function(){return[this.J,this.AJ,this.xY]},k:function(T){T.z5(this.Y,128)&&T.fv(T.g(this.J),this.AJ,this.xY,T.g(this.Y))},u:function(T){this.AJ!=null&&(this.AJ=this.AJ.substring(0,100)),T.R(this.J),T.I5(this.AJ),T.e(this.xY?1:0)},I:function(T){if(this.J=T.i(),this.AJ=T.u5(),this.xY=T.o()!=0,this.AJ!=null&&this.AJ.length>100)throw J(K.R6)}}),m=A({J:K.H6,jD:!1,JD:!1,K:function(){this.CJ=null,this.Y=0},uD:function(T,S){return T.CJ=S,T},ID:function(){return[this.CJ.slice()]},k:function(T){this.Y==0&&T.lv(this.CJ)},u:function(T){T.kD(this.CJ.length),this.CJ.forEach(S=>T.kD(S))},I:function(T){var S=T.xD();this.CJ=[];for(var L=0;L<S;L++)this.CJ.push(T.xD())}});D.oX=D.Nv||(D.Nv={jA:n,mA:t,TA:m})});function FJ(){}FJ.Bc=function({K:D,C5:J}){function A(){this.r5=-1,this.P=null,this.J=0,this.w="Player",this.lA=0,this.OD=null,this.YJ=!1,this.RJ=null,this.gD=null,this.wc=null,D?.call(this)}return A.C5=function(n,t,m){n.J=t.J,n.w=t.w,n.lA=t.lA,n.OD=t.OD,n.YJ=t.YJ,J?.(n,t,m)},A.prototype={E5:function(n){return n!=this.r5&&(this.P||(this.P=new A),this.r5=n,A.C5(this.P,this,n)),this.P}},A};var wY=FJ,gJ=sD(function(D){var{b:J}=jDo;function A(){this.$5=0,this.w="",this.OD="",this.Yn=0,this.tn=0,this._5=!1,this.Cc=0,this.U=0}A.prototype={cm:function(){this.w=this.w.substring(0,40),this.OD=this.OD.substring(0,3)},u:function(t){this.cm(),t.MD=!0,t.lD(this.$5),t.P6(this.w),t.P6(this.OD),t.cc(this.Yn),t.cc(this.tn),t.e(this._5?1:0),t.e(this.Cc),t.e(this.U),t.MD=!1},I:function(t){t.MD=!0,this.$5=t.HD(),this.w=t.p6(),this.OD=t.p6(),this.Yn=t.tc(),this.tn=t.tc(),this._5=t.o()!=0,this.Cc=t.o(),this.U=t.o(),t.MD=!1,this.cm()}};function n(){this.nD=null,this.J="",this.cD=1/0}J(A,[],["version","name","flag","lat","lon","password","maxPlayers","players"],[]),J(n,[],["data","id","dist"],[]),D.oX=D.$v||(D.$v={jm:A,mm:n})}),{GJ:g5,bJ:s5}=XD,{h:MJ}=lD;function CY(D,{K:J,GY:A,bY:n,RY:t,Ec:m,Oc:T}){function S(){this.n=new D.tJ(D),this.nJ=[],this.NA=0,J?.call(this)}return S.prototype={av:function(L){var r=0,I=new g5(new DataView(L.buffer),!1);A?.call(this,I),this.NA=I.TD();var V,w=jDo.aD.inflateRaw(I.fD());I=new g5(new DataView(w.buffer,w.byteOffset,w.byteLength)),n?.call(this,I);var C=null;for(w=I.fD(),I=new g5(new DataView(w.buffer,w.byteOffset,w.byteLength),!1),this.n.I(I);I.S<I.W.byteLength;)V=I.xD(),r+=V,V=I.HD(),C=MJ.I(I,!0),C.Y=V,C.frameNo=r,this.nJ.push(C)},hv:function(){var L=s5.A(16384),r=0;this.n.u(L),this.nJ.forEach(C=>{var E=C.frameNo;E<r||(L.kD(E-r),r=E,L.lD(C.Y),MJ.u(C,L))});var I=s5.A(1e3);m?.call(this,I),I.ZD(L.GD());var V=jDo.aD.deflateRaw(I.GD()),w=s5.A(V.byteLength+32);return t?.call(this,w),w.ED(this.NA),w.ZD(V),w.GD()},Hv:function(L){var{n:r,nJ:I,NA:V}=this,w=L?.beginFrameNo||0;w<0&&(w=0);var C=L?.endFrameNo||V-1;if(C>=V&&(C=V-1),!(C<w)){for(var E=0,O=0,_=I[0];O<w;){for(;O==_?.frameNo;)_.k(r),_=I[++E];O++,r.bD(1)}I=I.filter(e=>e.frameNo>=w&&e.frameNo<=C),I.forEach(e=>{e.frameNo-=w}),this.nJ=I,T?.call(this,w,C),this.NA=C-w+1}},Fv:function(L){var{n:r,nJ:I,NA:V}=this,w=L?.beginFrameNo||0;w<0&&(w=0);var C=L?.endFrameNo||V-1;if(C>=V&&(C=V-1),C<w)return Promise.resolve();var E=0,O=0,_=I[0];return new Promise((e,u)=>{var Q;Q=_setInterval(()=>{if(O>=w){_clearInterval(Q),I=I.filter(X=>X.frameNo>=w&&X.frameNo<=C),I.forEach(X=>{X.frameNo-=w}),this.nJ=I,T?.call(this,w,C),this.NA=C-w+1,e();return}for(;O==_?.frameNo;)_.k(r),_=I[++E];O++,r.bD(1)},0)})}},S}function sJ(){}sJ.gv=CY;var EY=sJ,{h:OY}=lD,{bJ:p5}=XD;function WY({K:D,RY:J,$A:A}){function n(t){this.sv=t?.B,this.vA=p5.A(1e3),this.KY=p5.A(16384),this.n=t;var m=this,T=t.B;t.t.u(this.KY),t.cJ=S=>{var L=t.B;m.KY.kD(L-T),T=L,m.KY.lD(S.Y),OY.u(S,m.KY)},D?.call(this)}return n.prototype={$A:function(){this.n.cJ=null,A?.call(this),this.vA.ZD(this.KY.GD());var t=jDo.aD.deflateRaw(this.vA.GD()),m=p5.A(t.byteLength+32);return J?.call(this,m),m.ED(this.n.B-this.sv),m.ZD(t),m.GD()}},n}function pJ(){}pJ.pv=WY;var oY=pJ;function PJ(){this.D5=[]}PJ.prototype={Wc:function(D){var J=0,{BD:A,A5:n}=D;this.D5.find(t=>{var m=t.BD;if(m>A)return!0;if(m==A){if(m=t.A5,m>n)return!0;m==n&&n++}J++}),D.A5=n,this.D5.splice(J,0,D)},Pv:function(D){var J=this.D5.findIndex(A=>A.BD>=D);J<0?this.D5.length=0:this.D5.splice(0,J)},Zv:function(D,J){var{D5:A}=this;if(A.length=0,D=D.D5,J=J.D5,D.length==0){J.forEach(r=>A.push(r));return}if(J.length==0){D.forEach(r=>A.push(r));return}for(var n=0,t=D.length,m=0,T=J.length;;){var S=D[n],L=J[m];if(S.BD<=L.BD){if(A.push(S),n++,n>=t){for(;m<T;)A.push(J[m++]);break}}else if(A.push(L),m++,m>=T){for(;n<t;)A.push(D[n++]);break}}},DS:function(D){var J=0,{D5:A}=this;A.forEach(n=>{n.SA!=D&&(A[J++]=n)}),A.length=J},JS:function(D){var J=this.D5.findIndex(A=>A.BD>=D);return J<0?this.D5.length:J}};var tJ=PJ,{hD:P5}=GD;function ZJ(D){this.oc=new tJ,this.eA=0,this.j5=0,this.EJ=new tJ,this.U5=0,this.OJ=0,this.jJ=.06,this.qc=16.666666666666668,this.nn=120,this.B=0,this.t=D,this.Xc=0,this.zc=null}ZJ.prototype={KJ:function(){throw P5(K.xJ)},mJ:function(D=0){throw P5(K.xJ)},$D:function(){throw P5(K.xJ)},Tm:function(D){this.zc=null;for(var{D5:J}=this.EJ,A=0,n=J.length,t,m=0;m<D;m++){for(;A<n&&(t=J[A],t.BD==this.B);)t.k(this.t),this.cJ?.(t),this.j5++,A++;this.t.bD(1),this.eA+=this.j5,this.j5=0,this.B++}for(;A<n&&(t=J[A],!(t.BD!=this.B||t.A5!=this.j5));)t.k(this.t),this.cJ?.(t),this.j5++,A++;J.splice(0,A)},fY:function(D){D.BD==this.B&&D.A5<=this.j5?(D.A5=this.j5++,D.k(this.t),this.cJ?.(D)):this.EJ.Wc(D)},vm:function(D,J){if(D<=0)return this.t;D>this.nn&&(D=this.nn);var A=this.zc=this.t.E5(++this.Xc),n;J!=null?(this.oc.Zv(this.EJ,J),n=this.oc):n=this.EJ,n=n.D5;for(var t=0,m=n.length,T=D|0,S=this.B,L=S+T;S<=L;S++){for(;t<m;){var r=n[t];if(r.BD>S)break;r.JJ.jD&&r.k(A),t++}A.bD(S!=L?1:D-T)}return this.oc.D5.length=0,A},AS:function(D){this.U5=D*this.jJ|0,this.t._c?.(D)}};var xD=ZJ,{OY:qY,hD:XY}=GD,{GJ:Z5,Z5:zY}=XD,{h:_Y}=lD;function UY(D,{GY:J,bY:A,fJ:n,WJ:t}){function m(L,r,I){this.cn=0,this.aA=-1,this.TJ=0,this.Uc=0,this.vJ=0,this.kc=0,xD.call(this,r);var V=new Z5(new DataView(L.buffer),!1);J?.call(this,V),this.dc=V.TD();var w=jDo.aD.inflateRaw(V.fD());this.hA=new Z5(new DataView(w.buffer,w.byteOffset,w.byteLength)),A?.call(this,this.hA),w=this.hA.fD(),this.hA=new Z5(new DataView(w.buffer,w.byteOffset,w.byteLength),!1),this.jn(),this.Uc=jDo.UD.now(),this.OJ=-1,this.cr=I,this.HA=null,this.ic=null}m.prototype=zY(xD.prototype,{Sm:function(){var{hA:L}=this;if(L.W.byteLength>L.S){this.kc+=L.xD();var r=L.HD();this.lY=_Y.I(L,!0),this.lY.Y=r}else this.lY=null},KJ:function(){},mJ:function(L=0){this.$D();var r=this.t.E5(++this.Xc);return r.bD(this.TJ),r},$D:function(){var L=jDo.UD.now(),r=L-this.Uc;this.Uc=L;var I=!1,V=!1;this.aA>=0?(this.vJ+=1e4,this.vJ>this.aA&&(this.vJ=this.aA,this.aA=-1,I=!0)):this.vJ+=r*this.cn;var w=this.dc*this.qc;for(this.vJ>w&&(this.vJ=w,V=!0),r=this.vJ*this.jJ,w=r|0,this.TJ=r-w;this.B<w;){for(;this.lY!=null&&this.kc==this.B;)this.lY.k(this.t),this.cJ?.(this.lY),this.Sm();this.B++,this.t.bD(1)}I&&(this.HA.fJ(),this.ic?.onDestinationTimeReached?.()),V&&(this.cn=0,this.HA.WJ(),this.ic?.onEnd?.())},em:function(L){this.HA.WJ(),this.aA=L,this.vJ>L&&this.jn()},jn:function(){this.kc=0,this.hA.S=0,this.B=0,this.vJ=0,this.t.I(this.hA),this.Sm()}});function T(L,r,I){var V=0,w=I?.requestAnimationFrame||jDo.VY,C=I?.cancelAnimationFrame||jDo.Mt,E=r?.render,O=E&&function(){L.aA>0||E()},_=function(){V=w(_),L.$D(),O?.()};V=w(_),this.WJ=function(){t?.(L)},this.fJ=function(){n?.(L,r)},this.AD=function(){C(V),this.WJ()},this.jn=()=>{L.jn()}}function S(L,r,I){var V,w=new D.tJ(D);try{V=new m(L,w,r),V.HA=new T(V,r,I)}catch(E){throw E instanceof qY?E:XY(K.K6,E)}var C={state:w,extrapolate:E=>V.mJ(E),getSpeed:()=>V.cn,setSpeed:E=>{V.HA.fJ(),V.cn=E},getTime:()=>V.vJ,length:()=>V.qc*V.dc,setTime:E=>{V.em(E)},getCurrentFrameNo:()=>V.B,setCurrentFrameNo:E=>{V.em(V.qc*E)},destroy:()=>{V.HA.AD()}};return Object.defineProperty(C,"gameState",{get(){return w.j}}),Object.defineProperty(C,"currentPlayerId",{get(){return V.OJ}}),Object.defineProperty(C,"maxFrameNo",{get(){return V.dc}}),V.ic=C,C}return S}function DA(){}DA.YS=UY;var kY=DA,{gv:dY}=EY,{pv:iY}=oY,{YS:MY}=kY;function xY(D,{GY:J,RY:A,nD:{K:n,bY:t,Ec:m,Oc:T},tS:{K:S,$A:L},nS:{fJ:r,WJ:I}}){var V=dY(D,{K:n,GY:J,RY:A,bY:t,Ec:m,Oc:T});return{cS:V,jS:iY({K:S,RY:A,$A:L}),mS:MY(D,{GY:J,bY:t,fJ:r,WJ:I}),TS:function(w){var C=new V;return C.av(w),C},vS:function(w){return w.hv()},SS:function(w,C){w?.Hv(C)},eS:function(w,C){return w?.Fv(C)||Promise.resolve()}}}function JA(){}JA.Mc=xY;var GY=JA,{UY:bY,GJ:RY,bJ:xJ}=XD;function AA(){}AA.xc=function({K:D,C5:J,LA:A,bD:n,LS:t,yS:m}){function T(S){this.r5=-1,this.P=null,this.w="",this.U=[],this.lJ=S,D?.call(this)}return T.C5=function(S,L,r){if(S.w=L.w,!L.U)S.U=null;else{S.U||(S.U=[]);for(var I=S.U,V=L.U,w=V.length;I.length>w;)I.pop();for(var C=0;C<w;C++)I[C]=V[C].E5(r)}J?.(S,L,r)},T.prototype={fv:function(S,L,r,I){S?.J&&(bY(this.U,S),A?.call(this,S),this.LA?.(S,L,r,I))},uS:function(S,L,r,I,V,w){var C=new this.lJ.yA;C.J=S,C.w=L,C.OD=r,C.QD=I,C.RJ=V,C.gD=w,this.U.push(C),this.NY?.(C)},Lm:function(S,L,r){var I=this.g(S);I&&(I.wc=L,this.Gc?.(S,L,r))},g:function(S){return this.U.find(L=>L.J==S)},bD:function(S){n?.call(this,S)},u:function(S){S.I5(this.w),t?.call(this,S)},I:function(S){this.w=S.u5(),m?.call(this,S)},ym:function(){var S=0,L=xJ.A();for(this.u(L),L=L.wv();L.S<=L.W.byteLength-4;)S^=L.i();return S},IS:function(){var S=xJ.A(4);return S.R(this.ym()),S.Rt()},Kv:function(S){this.um?.(this.ym()!=new RY(new DataView(S)).i())},z5:function(S){return S==0||this.g(S)?.k5},E5:function(S){return S!=this.r5&&(this.P||(this.P=new this.lJ.tJ(this.lJ)),this.r5=S,T.C5(this.P,this,S)),this.P}},T};var KY=AA,{b:q5}=jDo,{pt:kD,Pt:fY,Zt:lY,Ft:NY}=XD,W5=340282366920938463463374607431768211455n;function e5(){this.mn=!1,this.value=null,this.d5=null}e5.A=function(D,J){if(D==null)return;let A=new e5,n=D.__proto__.constructor.name;return A.mn=n=="BigInt",A.value=D,A.d5=n!=J?.__proto__.constructor.name?A.mn?W5:-1:J,A};function KD(){this.J=null,this.H=null,this.value=null}KD.A=function(D,J,A){var n=new KD;return n.J=D,n.H=J,n.value=A,n};KD.prototype={$Y:function(){var D=new KD;return D.J=this.J,D.H=this.H,D.value=this.value.$Y?this.value.$Y():this.value,D}};function o5(){this.NJ=null,this.d5=null}o5.A=function(D,J){var A=new o5;return A.NJ=D,A.d5=J,A};function A5(){this.aY=null,this.bc=null,this.uA=null,this.gD=null}A5.A=function(D,J,A,n){var t=new A5;return t.aY=D,t.bc=J,t.uA=A,t.gD=n,t};A5.prototype={$Y:function(){var D=new A5;return D.aY=this.aY,D.bc=this.bc,D.uA=this.uA,D.gD=this.gD,D}};function $Y(D){var J=[],A=1,n=new Set,t=[];this.Tn=S=>{var L=D.IA.get(S?.J)?.YD;if(!(!L||J.findIndex(I=>I.H==K.xA&&I.value.aY==S.J)>-1)){var r=[];return L.rA&&r.push(NY(L.rA)),L.hY.forEach(I=>{r.includes(I)||r.push(I)}),r.forEach(I=>{var V=kD(I);V&&t.push(e5.A(V))}),n.add(S.gD),J.push(KD.A(A,K.xA,A5.A(S.J,S.name,r,S.gD))),A++}},this.Im=(...S)=>S.map(L=>{var r=typeof L;if(r=="string")L={NJ:L};else if(r=="object")L={NJ:L.ip,d5:L.mask};else return;var I=kD(L.NJ);if(I==null)return;let V=I.__proto__.constructor.name=="BigInt";var w=kD(L.d5);I.__proto__.constructor.name!=w?.__proto__.constructor.name&&(w=V?W5:-1,L.d5=fY(w));for(var C=0;C<J.length;C++){let E=J[C];if(E.H==K.CY&&I==kD(E.value.NJ)&&w==kD(E.value.d5))return}return t.push(e5.A(I,w)),J.push(KD.A(A,K.CY,o5.A(L.NJ,L.d5))),A++}),this.rS=(...S)=>S.map(L=>{if(!n.has(L))return J.push(KD.A(A,K.EY,L)),n.add(L),A++}),this.Rc=S=>{let L=kD(S);if(L==null)return!1;let r=L.__proto__.constructor.name=="BigInt";for(var I=0;I<t.length;I++){let V=t[I];if(r==V.mn&&lY(L,V.value,V.d5))return!0}return!1},this.VS=S=>n.has(S);let m=(S,L)=>{let r=kD(S);if(r==null)return;let I=r.__proto__.constructor.name=="BigInt";var V=kD(L);V==null&&(V=I?W5:-1);let w=V==(I?W5:-1);for(var C=[],E=0;E<t.length;E++){let O=t[E];I==O.mn&&r==O.value&&V==O.d5&&C.push(E)}for(;C.length>0;)t.splice(C.pop(),1);for(C.length=0,J.forEach((O,_)=>{w&&O.H==K.xA&&O.value.uA.findIndex(e=>kD(e)==r)>-1?(O.H=K.EY,O.value=O.value.gD):O.H==K.CY&&r==kD(O.value.NJ)&&V==kD(O.value.d5)&&C.push(_)});C.length>0;)J.splice(C.pop(),1)},T=S=>{n.delete(S);var L=[],r=[];for(J.forEach((I,V)=>{I.H==K.xA&&S==I.value.gD?(r.splice(r.length,0,...I.value.uA),L.push(V)):I.H==K.EY&&S==I.value&&L.push(V)});L.length>0;)J.splice(L.pop(),1);this.Im(...r)};this.QS=S=>{var L=J.findIndex(V=>V.J==S);if(L<0)return!1;var{H:r,value:I}=J.splice(L,1)[0];switch(r){case K.xA:I.uA.forEach(V=>{m(V)}),T(I.gD);break;case K.CY:m(I.NJ,I.d5);break;case K.EY:T(I);break}return!0},this.Kc=S=>{var L=J.findIndex(I=>I.H==0&&I.value?.aY==S);if(L<0)return!1;var{value:r}=J.splice(L,1)[0];return r.uA.forEach(I=>{m(I)}),T(r.gD),!0},this.BS=()=>{n.clear(),t.length=0,J.length=0},this.wS=()=>J.map(S=>S.$Y())}q5(e5,[],["ipv6","value","mask"],[]);q5(KD,[],["id","type","value"],[]);q5(o5,[],["ip","mask"],[]);q5(A5,[],["pId","pName","ips","auth"],[]);var aY=$Y,YA=sD(function(D){function A(n){this.vn=!0,n.rm(),this.wD=n.wD,this.$J=n.$J,this.hY=n.hY,this.rA=n.rA,this.Vm=jDo.UD.now();var t=this,m,m=function(){var T=1e4-(jDo.UD.now()-t.Vm);T<=0?t.AD():(jDo.y5(t.Qm),t.Qm=jDo.L5(m,T+1e3))};m(),this.wD.oniceconnectionstatechange=function(){var T=t.wD.iceConnectionState;T!="closed"&&T!="failed"||t.AD()},this.$J.forEach(T=>{T.onmessage=function(S){t.vn&&(t.Vm=jDo.UD.now(),t.KA?.(S.data))},T.onclose=function(){t.AD()}})}A.prototype={V5:function(n,t){if(this.vn){var m=this.$J[n];if(m.readyState=="open")try{m.send(t.Rt())}catch{}}},AD:function(){jDo.y5(this.Qm),this.vn&&(this.vn=!1,this.wD.close(),this.Sn?.())}},D.oX=D.CS||(D.CS={Bm:[{w:"c1",fc:!0,lc:!0},{w:"c2",fc:!0,lc:!1},{w:"c3",fc:!1,lc:!1}],wm:A})}),{b:hY}=jDo,{Ht:HY}=XD;function L5(D,J,A){this.FA=null,this.rA=null,this.hY=[],this.Cm=0,this.Em=!1,this.en=[],this.$J=[],this.wD=J&&new jDo.S6({iceServers:J},L5.ES);var n=this;this.Nc=new Promise(t=>{n.OS=t}),this.J=D,J&&(this.wD.onicecandidate=function(t){if(!t.candidate){n.OS(n.en);return}t=t.candidate,t.candidate&&(n.$c?.(t),n.en.push(t))},A.forEach(t=>n.WS(t)))}L5.ES={mandatory:{OfferToReceiveAudio:!1,OfferToReceiveVideo:!1}};L5.prototype={ac:function(D=1e4){jDo.y5(this.FA),this.FA=jDo.L5(this.Ln.bind(this),D)},oS:function(D,J){var A=this;this.Om(this.wD.setRemoteDescription(D).then(()=>A.wD.createAnswer()),J,500)},qS:function(){this.Om(this.wD.createOffer(),[],1e3)},Om:function(D,J,A){var n=this;D.then(t=>n.wD.setLocalDescription(t).then(()=>t)).then(t=>(J.forEach(m=>n.Wm(m)),HY(n.Nc,A).then(()=>t,()=>t))).then(t=>{n.HY(t)}).catch(()=>{n.yn()})},WS:function(D){var J=this,A={id:this.$J.length,negotiated:!0,ordered:D.lc};D.fc||(A.maxRetransmits=0);var n=this.wD.createDataChannel(D.w,A);n.binaryType="arraybuffer",n.onopen=function(){J.$J.find(t=>t.readyState!="open")||J.FY?.()},n.onclose=this.yn,n.onmessage=this.yn,this.$J.push(n)},Wm:function(D,J){var A=this;jDo.L5(()=>{A.wD.addIceCandidate(D).catch(n=>J?.(n))},this.Cm)},Ln:function(){this.yn()},yn:function(){this.gA?.(),this.AD?.()},AD:function(){if(this.wD){this.rm();var D=this.wD;this.wD=null,Promise.resolve().then(()=>D.close())}},rm:function(){jDo.y5(this.FA),this.HY=this.FY=this.$c=this.gA=null,this.wD.onicecandidate=null,this.wD.ondatachannel=null,this.wD.onsignalingstatechange=null,this.wD.oniceconnectionstatechange=null,this.$J.forEach(D=>{D.onopen=null,D.onclose=null,D.onmessage=null})}};hY(L5,[],[null,null,null,null,null,null,null,null,null,"id"],[]);var tA=L5,{h:w5}=lD,{hD:C5}=GD,{UY:GJ,GJ:v5,bJ:ID,Xv:FY,_v:bJ,$t:RJ,Z5:gY,gt:sY,kY:pY}=XD,{jA:PY}=cJ,{Bm:ZY,wm:Dt}=YA,Jt=2e4;function At(D){function J(t,m){this.O5=t,this.hc=!1,this.sA=!1,this.un=!1,this.aJ=null,this.J="",this.Hc=null,this.VA=new Map,this.X5=m||"",this.In()}J.om=function(t){try{if(t=t.candidate.split(" "),t[6]!="typ")throw null;if(t[7]=="srflx")return t[4]}catch{}return null},J.prototype={AD:function(){if(jDo.y5(this.Hc),jDo.y5(this.pA),this.pA=null,jDo.rY(this.qm),this.Z!=null)try{this.Z.onmessage=null,this.Z.onerror=null,this.Z.onclose=null,this.Z.onopen=null,this.Z.close(),this.Z=null}catch{}this.Xm()},Fc:function(t){if(!(!this.aJ&&!t)){var m=this;if(this.aJ!=null&&t!=null&&this.aJ.byteLength==t.byteLength){var T=new Uint8Array(this.aJ),S=new Uint8Array(t);if(T.findIndex((L,r)=>L!=S[r])<0)return}this.aJ=t.slice(0),this.un=!0,this.Z!=null&&this.Z.readyState==1&&!this.pA&&(this.gc(),this.pA=jDo.L5(function(){m.pA=null,m.Z.readyState==1&&m.un&&m.gc()},1e4))}},sc:function(t){var m=this;function T(){m.Z!=null&&m.Z.readyState==1&&m.sA!=m.hc&&m.zm(),m._m=null}this.sA=t,!this._m&&(T(),this._m=jDo.L5(T,1e3))},In:function(t){var m=this;YJ.rc({c5:m.O5.rD.c5,X5:t||this.X5||""},(T,S)=>{if(m.O5.rn.useRecaptchaToken=null,!T||!S)throw null;jDo.q5?.wY&&(T=jDo.q5?.wY),T.endsWith("host")||(T.endsWith("/")||(T+="/"),T+="host"),m.Z=YJ.nm({Ym:T,X5:S,tm:D?.(m.O5.rD)||[],c5:m.O5.rD.c5,xv:{"Cache-control":"no-cache",Pragma:"no-cache","User-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36"},bA:function(){m.XS()},DJ:function(L){m.gY(L.code!=4001)},RA:function(L){m.gY(!0),m.O5.rD.DJ?.(C5(K.Jc,L))},KA:m.pc.bind(m)})},T=>{if(!T)throw null;m.O5.rn.useRecaptchaToken=S=>{m.O5.rn.useRecaptchaToken=null,m.In(S)},m.gY(!1),m.O5.rD.DJ?.(C5(K.Dc,T))}).catch(function(T){m.O5.rn.useRecaptchaToken=null,m.gY(!0),m.O5.rD.DJ?.(C5(K.Jc,T))})},XS:function(){var t=this;this.aJ!=null&&this.gc(),this.sA!=0&&this.zm(),this.qm=jDo.it(function(){t.zS()},4e4)},pc:function(t){var m=new v5(new DataView(t.data),!1);switch(m.o()){case 1:this.Pc(m);break;case 4:this.Zc(m);break;case 5:this._S(m);break;case 6:this.US(m);break;case 111:this.kS(m);break}},kS:function(t,m){var T=this;jDo.L5(()=>{try{T.O5.rD?.state.Lm(t.TD(),t.oY())}catch{m&&T.PA(m,4111)}},3e3)},Pc:function(t){var m=t.TD(),T=sY(t.fD(t.o()));try{t=new v5(new DataView(jDo.aD.inflateRaw(t.fD()).buffer),!1);var S=t.o()!=0,L=t.B5(),r=[];t.oY().forEach(I=>r.push(new jDo.BY(I))),this.dS(m,T,L,r,t,S)}catch{this.PA(m,0)}},dS:function(t,m,T,S,L,r){var I=this;if(this.VA.size>=16){this.PA(t,4104);return}else if(this.i5.Rc(m)){this.PA(t,4102);return}for(var V=[],w=0;w<S.length;w++){var C=J.om(S[w]);if(C!=null){if(this.i5.Rc(C)){this.PA(t,4102);return}V.push(C)}}var E=this.Dj?.(L);if(E!=null){this.PA(t,E);return}var O=new tA(t,jDo.Fn,ZY);for(r&&(O.Cm=2500),O.hY=V,O.rA="",w=0;w<m.length;w++)O.rA+=pY(m.charCodeAt(w));this.VA.set(t,O),O.gA=()=>{I.oJ(0,O,null),I.VA.delete(O.J)},O.FY=()=>{I.VA.delete(O.J),I.oJ(0,O,null),I.Jj?.(new Dt(O))},O.HY=_=>{I.Aj(O,_,O.en,null),O.Nc.then(()=>{I.oJ(0,O,null)}),O.$c=e=>{I.Yj(O,e)}},O.ac(),O.oS(new jDo.sn({sdp:T,type:"offer"}),S)},Zc:function(t){var m=t.TD(),T;try{t=new v5(new DataView(jDo.aD.inflateRaw(t.fD()).buffer),!1),T=new jDo.BY(t.oY())}catch{return}this.iS(m,T)},iS:function(t,m){var T=this.VA.get(t);if(T){var S=J.om(m);S!=null&&(T.hY.push(S),this.i5.Rc(S))||T.Wm(m)}},_S:function(t){this.J=t.nA(t.o()),this.tj?.(this.J)},US:function(t){this.X5=t.nA(t.W.byteLength-t.S)},oJ:function(t,m,T){if(!m.Em){t==0&&(m.Em=!0);var S=ID.A(32,!1);S.e(t),S.ED(m.J),T!=null&&S.ZD(jDo.aD.deflateRaw(T.GD())),this.Z.send(S.cA())}},PA:function(t,m){var T=ID.A(16,!1);T.e(0),T.ED(t),T.lD(m),this.Z.send(T.cA())},zS:function(){var t=ID.A(1,!1);t.e(8),this.Z.send(t.cA())},gc:function(){this.un=!1;var t=ID.A(256,!1);t.e(7),this.aJ!=null&&t.Kt(this.aJ),this.Z.send(t.cA())},zm:function(){var t=ID.A(2,!1);t.e(this.O5.rD?.$5),t.e(this.sA?1:0),this.Z.send(t.cA()),this.hc=this.sA,this.O5.rD?._onRoomRecaptchaModeChange?.(this.sA)},Aj:function(t,m,T,S){var L=ID.A(32,!1);L.w5(m.sdp),L.lt(T),S!=null&&L.ZD(S.GD()),this.oJ(1,t,L)},Yj:function(t,m){var T=ID.A(32,!1);T.lt(m),this.oJ(4,t,T)},Xm:function(){for(var t of this.VA)t[1].AD();this.VA.clear()},gY:function(t){this.Xm(),jDo.y5(this.pA),this.pA=null,this.un=!1,jDo.rY(this.qm),jDo.y5(this.Hc);var m=this;t&&(this.Hc=jDo.L5(()=>m.In(),Jt))}};function A(t){this.Um=new FY(15),this.nj=0,this.km=new Map,this.MS=new bJ(100,16),this.qJ=!1,this.lA=0,this.YD=t;var m=ID.A(8);m.V(Math.random()),this.sY=m.GD()}A.prototype={V5:function(t,m=0){this.YD.V5(m,t)}};function n(t,m){this.rn=t,this._5=null,this.QA=32,this.IA=new Map,this.W5=[],this.hJ=4,this.xS=600,xD.call(this,m),this.GS=1,this.dm=0,this.ZA=!1,this.Vn=!0,this.pY=null,this.DY=null,this.BA=0,this.DD=null,this.rD=null}return n.prototype=gY(xD.prototype,{wA:function(t){this.BA=jDo.UD.now(),this.DD=new J(this,t),this.DD.i5=new aY(this),this.DD.Dj=this.Dj.bind(this);var m=this;this.DD.Jj=function(T){m.Jj(T)},this.DD.tj=function(T){m.tj?.(T)}},AD:function(){this.DD.AD(),this.W5.forEach(({YD:t})=>{t.Sn=null,t.KA=null,t.AD()}),this.rD=null},bS:function(t,m,T,S){var L=this.IA.get(t.J);if(L){S&&this.DD.i5.Tn(t);var r=ID.A();r.e(5),r.e(S?1:0),r.w5(m),r.w5(T||""),L.V5(r),L.YD.AD()}},RS:function(){this.DD.i5.BS()&&this.rD?._onBansClear?.()},KS:function(t){this.DD.i5.Kc(t)&&this.rD?._onBanClear?.(t)},fS:function(t){return this.DD.i5.Tn(t)},lS:function(...t){return this.DD.i5.Im(...t)},NS:function(...t){return this.DD.i5.rS(...t)},$S:function(t){return this.DD.i5.QS(t)},Fc:function(t){this.DD.Fc(t)},sc:function(t){this.DD.sc(t)},KJ:function(t){t.BD=t.JJ.JD?this.B+this.hJ+this.U5:this.B,this.fY(t),this.Qn(),this.W5.length>0&&this.PY(this.Bn(t),1)},im:function(t,m,T){if(t.Y=m,T)t.k(this.t),this.aS(t,1);else{if(this.W5.length==0)return;t.BD=t.JJ.JD?this.B+this.hJ+this.U5:this.B,this.fY(t),this.Qn(),this.PY(this.Bn(t),1)}},cj:function(t,m,T){if(m==0){t.k(this.t);return}var S=this.IA.get(m);if(S){T||(t.Y=0);var L=ID.A();L.e(6),w5.u(t,L),S.V5(L,0)}},$D:function(){var t=((jDo.UD.now()-this.BA)*this.jJ|0)-this.B;t>0&&this.Tm(t),this.B-this.Mm>=7&&this.Qn(),this.B-this.dm>=this.xS&&(this.Qn(),this.hS())},mJ:function(t=0){return this.U5<0&&(this.U5=0),this.vm((jDo.UD.now()-this.BA+t)*this.jJ-this.B+this.hJ+this.U5)},Dj:function(t){if(!this.ZA&&this.W5.length>=this.QA)return 4100;try{if(t.HD()!=this.rD?.$5)throw null}catch{return 4103}try{var m=t.u5();if(this._5!=null&&m!=this._5)throw null}catch{return 4101}},Jj:function(t){var m=this;if(!this.ZA&&this.W5.length>=this.QA){t.AD();return}var T=new A(t);this.W5.push(T),t.KA=L=>{m.HS(new v5(new DataView(L)),T)},t.Sn=()=>{GJ(m.W5,T),m.IA.delete(T.J),m.LA?.(T.J)};var S=ID.A(T.sY.byteLength+1);S.e(0),S.kD(T.sY.byteLength),S.ZD(T.sY),T.V5(S)},Bn:function(t){var m=ID.A();return m.e(2),this.jj(t,m),m},jj:function(t,m){m.ED(t.BD),m.kD(t.A5),m.lD(t.Y),m.ED(t.SA),w5.u(t,m)},Qn:function(){if(!(this.B<=this.Mm||this.W5.length==0)){var t=ID.A();t.e(3),t.ED(this.B),t.ED(this.eA),this.PY(t,2),this.Mm=this.B}},PY:function(t,m=0){this.W5.forEach(T=>{T.qJ&&T.V5(t,m)})},aS:function(t){var m=ID.A();m.e(6),w5.u(t,m);var T=this.rD.ZY;this.W5.forEach(S=>{S.qJ&&T.has(S.J)&&S.V5(m,0)})},FS:function(t){var m=ID.A();m.e(1);var T=ID.A();T.lD(t.J),T.ED(this.B),T.ED(this.eA),T.kD(this.j5),this.t.u(T);var S=this;this.EJ.D5.forEach(L=>{S.jj(L,T)}),m.ZD(jDo.aD.deflateRaw(T.GD())),t.V5(m)},gS:function(t){t.ED(this.B),t.ED(this.eA),t.kD(this.j5),this.t.u(t);var m=this;this.EJ.D5.forEach(T=>{m.jj(T,t)})},sS:function(t){var m=this;jDo.L5(()=>{m.t.U.forEach(T=>{T.wc&&m.rD.setPlayerIdentity(T.J,T.wc,t.J)})},3e3)},hS:function(){if(this.dm=this.B,this.W5.length!=0){var t=PY.A(this.t.IS());t.BD=this.B,t.A5=this.j5++,t.Y=0,this.PY(this.Bn(t))}},pS:function(t,m){var T=this,S=t.fD(t.xD()),L=t.fD(t.xD()),r=m.sY;m.sY=null,HJ.dv(S,r).catch(()=>null).then(I=>{try{if(T.DD.i5.VS(I))throw C5(K.$6,I);if(T.W5.indexOf(m)<0)return;var V=T.GS++;m.J=V,T.IA.set(V,m),(T.NY?.(V,new v5(new DataView(L.buffer,L.byteOffset,L.byteLength),!1),m.YD.rA,I)||Promise.resolve()).then(()=>{m.qJ=!0,T.FS(m),T.sS(m)}).catch(w=>{T.RA(m,w)})}catch(w){T.RA(m,w)}})},HS:function(t,m){this.$D();try{if(!m.MS.Am())throw 1;var T=t.o();if(m.qJ)switch(T){case 1:this.PS(t,m);break;case 2:this.ZS(t,m);break;default:throw 0}else if(T==0)this.pS(t,m);else throw 0;if(t.W.byteLength>t.S)throw 2}catch(S){this.RA(m,S)}},RA:function(t,m){this.De?.(m,t.J),this.IA.delete(t.J),GJ(this.W5,t),t.qJ&&this.Je?.(t.J),t.YD.AD()},ZS:function(t,m){var T=t.C(),S=this.rD?._modifyPlayerPing;S&&(m.lA=S(m.J,t.xD()));var L=ID.A();L.e(4),L.V((jDo.UD.now()-this.BA)*this.jJ+this.hJ),L.V(T),m.V5(L,2)},PS:function(t,m){var T=t.TD(),S=t.TD(),L=w5.I(t),r=L.JJ.wn;if(r!=null){var I=m.km.get(r);if(I||(I=new bJ(r.Cn,r.En),m.km.set(r,I)),!I.Am())throw 3}var V=RJ(T,this.B,this.B+20);if(L.JJ.JD){var w=this.B+this.hJ,C=T-w;C<-this.hJ-3?V=w:m.Um.Ev(RJ(C,-this.hJ,this.hJ)),V<w&&m.Um.Ov()<-.85&&(V=w),V<m.nj&&(V=m.nj),m.nj=V}L.Y=m.J,L.SA=S,L.BD=V,this.rD?.Ae(L,T)&&(this.fY(L),this.PY(this.Bn(L),1))}}),n}var Yt=At,{L6:tt,y6:KJ,u6:nt,I6:S5,r6:ct}=K,wD=K,{h:DJ}=lD,{hD:MD}=GD,{GJ:E5,bJ:HD,zv:fJ,Z5:jt}=XD,{Bm:mt,wm:Tt}=YA,lJ={4001:wD.B6,4004:wD.Dc,4100:wD.w6,4101:wD.C6,4102:wD.E6,4103:wD.O6};function vt(D){function J(n,t,m,T){this.rD=n,this.qJ=!1,this.Dt=!1;var S=this;this.YD=new tA(0,jDo.Fn,mt),this.YD.gA=function(){S.Jt(MD(wD.W6))},this.YD.FY=function(){S.FY?.(new Tt(S.YD)),S.YD=null,S.Ln()},this.YD.HY=function(L){S.xm=L;var r=jDo.q5?.wY||jDo.m6;r.endsWith("client")||(r.endsWith("/")||(r+="/"),r+="client");var I=D?.(n.rD)||[];if(n.c5||jDo.q5?.xt){var V={},w={"Cache-control":"no-cache",Pragma:"no-cache","User-agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36"};n.c5&&(V.agent=n.c5),jDo.q5.xt&&Object.assign(w,{Origin:(jDo.Q5.iA?"https":"http")+"://"+jDo.Q5.IY}),V.headers=w,S.Z=new jDo.QY(r+"?id="+t+(T==null?"":"&token="+T),I,V)}else S.Z=new jDo.QY(r+"?id="+t+(T==null?"":"&token="+T),I);S.Z.binaryType="arraybuffer",S.Z.onclose=function(C){var E=O=>lJ[O]?MD(lJ[O]):MD(wD.Gt,O);S.qJ||S.Jt(E(C.code))},S.Z.onerror=function(C){S.qJ||S.Jt(MD(wD.Zn))},S.Z.onmessage=S.pc.bind(S),S.Z.onopen=function(){S.Ye?.(),S.YD.ac(),S.Aj(S.xm,S.YD.en,m),S.YD.$c=S.Yj.bind(S),S.YD.Nc.then(function(){S.oJ(0,null)})}},this.YD.qS()}J.prototype={te:function(){this.Jt(MD(wD.Pn))},Ln:function(){if(this.Z!=null)try{this.Z.onclose=null,this.Z.onmessage=null,this.Z.onerror=null,this.Z.onopen=null,this.Z.close(),this.Z=null}catch{}this.YD!=null&&(this.YD.AD(),this.YD=null)},Jt:function(n){this.gA?.(n),this.Ln()},pc:function(n){var t=new E5(new DataView(n.data)),m=t.o();switch(t.W.byteLength>t.S&&(t=new E5(new DataView(jDo.aD.inflateRaw(t.fD()).buffer),!1)),m){case 1:{var T=[],S=t.B5();t.oY().forEach(L=>{T.push(new jDo.BY(L))}),this.Pc(S,T);break}case 4:{this.Zc(new jDo.BY(t.oY()));break}}},Pc:function(n,t){var m=this;this.YD.ac(this.Dt?1e4:4e3),this.qJ=!0,this.HY?.(),this.YD.wD.setRemoteDescription(new jDo.sn({sdp:n,type:"answer"}),()=>{t.forEach(T=>{m.YD.wD.addIceCandidate(T).catch(()=>{})})},()=>{m.Jt(MD(wD.Zn))})},Zc:function(n){this.YD.wD.addIceCandidate(n).catch(()=>{})},oJ:function(n,t){if(this.Z){var m=HD.A(32,!1);m.e(n),t!=null&&m.ZD(jDo.aD.deflateRaw(t.GD())),this.Z.send(m.cA())}},Aj:function(n,t,m){var T=HD.A(32,!1);T.e(this.Dt?1:0),T.w5(n.sdp),T.lt(t),m!=null&&T.ZD(m.GD()),this.oJ(1,T)},Yj:function(n){var t=HD.A(32,!1);t.lt(n),this.oJ(4,t)}};function A(n,t){this.mj=[],this.At=[],this.On=new tJ,this.ne=1,this.Gm=0,this.CA=null,this.Tj=new fJ(50),this.Wn=new fJ(50),this.ce=1e3,xD.call(this,n),this.on=null,this.je=t,this.rD=null}return A.prototype=jt(xD.prototype,{wA:function(n,