@nil-/xit 0.4.20 → 0.4.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/bundler.js +2 -2
- package/assets/index.js +40 -40
- package/package.json +1 -1
package/assets/bundler.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var n9=Object.defineProperty;var Jb=pe=>{throw TypeError(pe)};var o9=(pe,fe,Ke)=>fe in pe?n9(pe,fe,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):pe[fe]=Ke;var X=(pe,fe,Ke)=>o9(pe,typeof fe!="symbol"?fe+"":fe,Ke),bp=(pe,fe,Ke)=>fe.has(pe)||Jb("Cannot "+Ke);var aA=(pe,fe,Ke)=>(bp(pe,fe,"read from private field"),Ke?Ke.call(pe):fe.get(pe)),ye=(pe,fe,Ke)=>fe.has(pe)?Jb("Cannot add the same private member more than once"):fe instanceof WeakSet?fe.add(pe):fe.set(pe,Ke),Ce=(pe,fe,Ke,NQ)=>(bp(pe,fe,"write to private field"),NQ?NQ.call(pe,Ke):fe.set(pe,Ke),Ke),Gi=(pe,fe,Ke)=>(bp(pe,fe,"access private method"),Ke);(function(){"use strict";var yQ,vp,Ve,Ra,Na,Ga,as,_e,Sa,Ms,Fs,Jr,Sr,Ma,bs,Xe,Mr,Fr,kQ,Lp,vs,Ls,br,vr,Fa,rs,Ub;class fe{constructor(A){ye(this,yQ);ye(this,Ve);ye(this,Ra);ye(this,Na);ye(this,Ga);ye(this,as);ye(this,_e);Ce(this,as,A),Ce(this,Ve,0),Ce(this,Ra,null),Ce(this,Na,null),Ce(this,Ga,null),Ce(this,_e,null)}on_message(A){Ce(this,Ga,A)}on_connect(A){Ce(this,Ra,A)}on_disconnect(A){Ce(this,Na,A)}start(){aA(this,_e)==null&&aA(this,Ve)!==1&&aA(this,Ve)!==3&&(Ce(this,_e,new WebSocket(aA(this,as))),aA(this,_e).binaryType="arraybuffer",aA(this,_e).onopen=()=>{aA(this,Ve)==3?this.stop():(Ce(this,Ve,1),aA(this,Ra)&&aA(this,Ra).call(this,aA(this,as)))},aA(this,_e).onclose=()=>{aA(this,Ve)===1&&(aA(this,Na)&&aA(this,Na).call(this,aA(this,as)),Ce(this,Ve,2),Gi(this,yQ,vp).call(this))},aA(this,_e).onerror=()=>{aA(this,Ve)!==1&&aA(this,Ve)!==3?(Ce(this,Ve,2),Gi(this,yQ,vp).call(this)):aA(this,Ve)===3&&this.stop()},aA(this,_e).onmessage=A=>{aA(this,Ga)&&aA(this,Ga).call(this,aA(this,as),new Uint8Array(A.data))})}stop(){Ce(this,Ve,3),aA(this,_e)!=null&&aA(this,_e).readyState!==WebSocket.CONNECTING&&(aA(this,_e).close(),Ce(this,_e,null))}restart(){Ce(this,Ve,0)}publish(A){aA(this,_e)!=null&&aA(this,Ve)==1&&aA(this,_e).send(A)}send(A,t){A===aA(this,as)&&this.publish(t)}}yQ=new WeakSet,vp=function(){aA(this,_e)!=null&&(aA(this,_e).close(),Ce(this,_e,null)),setTimeout(()=>this.start(),1e3)},Ve=new WeakMap,Ra=new WeakMap,Na=new WeakMap,Ga=new WeakMap,as=new WeakMap,_e=new WeakMap;const Ke=e=>{const A=new Uint8Array(4);return new DataView(A.buffer).setUint32(0,e,!1),A},NQ=e=>{const A=new Uint8Array(e.reduce((i,s)=>i+s.length,0));let t=0;for(const i of e)A.set(i,t),t+=i.length;return A},pc=async(e,A,t,i)=>new Promise((s,a)=>{const r=new fe(e),g=setTimeout(()=>{r.stop(),a("timed out, cancelled")},1e4),n=NQ([Ke(A),t]);r.on_connect(()=>r.publish(n)),r.on_message((C,B)=>{const E=new DataView(B.buffer).getUint32(0,!1),o=B.slice(4),I=i(E,o);I!=null&&(clearTimeout(g),r.stop(),s(I))}),r.start()}),fc=2,ni=4,Si=4,oi=4,gs=new Int32Array(2),Yp=new Float32Array(gs.buffer),Jp=new Float64Array(gs.buffer),GQ=new Uint16Array(new Uint8Array([1,0]).buffer)[0]===1;var wc;(function(e){e[e.UTF8_BYTES=1]="UTF8_BYTES",e[e.UTF16_STRING=2]="UTF16_STRING"})(wc||(wc={}));class Ii{constructor(A){this.bytes_=A,this.position_=0,this.text_decoder_=new TextDecoder}static allocate(A){return new Ii(new Uint8Array(A))}clear(){this.position_=0}bytes(){return this.bytes_}position(){return this.position_}setPosition(A){this.position_=A}capacity(){return this.bytes_.length}readInt8(A){return this.readUint8(A)<<24>>24}readUint8(A){return this.bytes_[A]}readInt16(A){return this.readUint16(A)<<16>>16}readUint16(A){return this.bytes_[A]|this.bytes_[A+1]<<8}readInt32(A){return this.bytes_[A]|this.bytes_[A+1]<<8|this.bytes_[A+2]<<16|this.bytes_[A+3]<<24}readUint32(A){return this.readInt32(A)>>>0}readInt64(A){return BigInt.asIntN(64,BigInt(this.readUint32(A))+(BigInt(this.readUint32(A+4))<<BigInt(32)))}readUint64(A){return BigInt.asUintN(64,BigInt(this.readUint32(A))+(BigInt(this.readUint32(A+4))<<BigInt(32)))}readFloat32(A){return gs[0]=this.readInt32(A),Yp[0]}readFloat64(A){return gs[GQ?0:1]=this.readInt32(A),gs[GQ?1:0]=this.readInt32(A+4),Jp[0]}writeInt8(A,t){this.bytes_[A]=t}writeUint8(A,t){this.bytes_[A]=t}writeInt16(A,t){this.bytes_[A]=t,this.bytes_[A+1]=t>>8}writeUint16(A,t){this.bytes_[A]=t,this.bytes_[A+1]=t>>8}writeInt32(A,t){this.bytes_[A]=t,this.bytes_[A+1]=t>>8,this.bytes_[A+2]=t>>16,this.bytes_[A+3]=t>>24}writeUint32(A,t){this.bytes_[A]=t,this.bytes_[A+1]=t>>8,this.bytes_[A+2]=t>>16,this.bytes_[A+3]=t>>24}writeInt64(A,t){this.writeInt32(A,Number(BigInt.asIntN(32,t))),this.writeInt32(A+4,Number(BigInt.asIntN(32,t>>BigInt(32))))}writeUint64(A,t){this.writeUint32(A,Number(BigInt.asUintN(32,t))),this.writeUint32(A+4,Number(BigInt.asUintN(32,t>>BigInt(32))))}writeFloat32(A,t){Yp[0]=t,this.writeInt32(A,gs[0])}writeFloat64(A,t){Jp[0]=t,this.writeInt32(A,gs[GQ?0:1]),this.writeInt32(A+4,gs[GQ?1:0])}getBufferIdentifier(){if(this.bytes_.length<this.position_+ni+Si)throw new Error("FlatBuffers: ByteBuffer is too short to contain an identifier.");let A="";for(let t=0;t<Si;t++)A+=String.fromCharCode(this.readInt8(this.position_+ni+t));return A}__offset(A,t){const i=A-this.readInt32(A);return t<this.readInt16(i)?this.readInt16(i+t):0}__union(A,t){return A.bb_pos=t+this.readInt32(t),A.bb=this,A}__string(A,t){A+=this.readInt32(A);const i=this.readInt32(A);A+=ni;const s=this.bytes_.subarray(A,A+i);return t===wc.UTF8_BYTES?s:this.text_decoder_.decode(s)}__union_with_string(A,t){return typeof A=="string"?this.__string(t):this.__union(A,t)}__indirect(A){return A+this.readInt32(A)}__vector(A){return A+this.readInt32(A)+ni}__vector_len(A){return this.readInt32(A+this.readInt32(A))}__has_identifier(A){if(A.length!=Si)throw new Error("FlatBuffers: file identifier must be length "+Si);for(let t=0;t<Si;t++)if(A.charCodeAt(t)!=this.readInt8(this.position()+ni+t))return!1;return!0}createScalarList(A,t){const i=[];for(let s=0;s<t;++s){const a=A(s);a!==null&&i.push(a)}return i}createObjList(A,t){const i=[];for(let s=0;s<t;++s){const a=A(s);a!==null&&i.push(a.unpack())}return i}}class _r{constructor(A){this.minalign=1,this.vtable=null,this.vtable_in_use=0,this.isNested=!1,this.object_start=0,this.vtables=[],this.vector_num_elems=0,this.force_defaults=!1,this.string_maps=null,this.text_encoder=new TextEncoder;let t;A?t=A:t=1024,this.bb=Ii.allocate(t),this.space=t}clear(){this.bb.clear(),this.space=this.bb.capacity(),this.minalign=1,this.vtable=null,this.vtable_in_use=0,this.isNested=!1,this.object_start=0,this.vtables=[],this.vector_num_elems=0,this.force_defaults=!1,this.string_maps=null}forceDefaults(A){this.force_defaults=A}dataBuffer(){return this.bb}asUint8Array(){return this.bb.bytes().subarray(this.bb.position(),this.bb.position()+this.offset())}prep(A,t){A>this.minalign&&(this.minalign=A);const i=~(this.bb.capacity()-this.space+t)+1&A-1;for(;this.space<i+A+t;){const s=this.bb.capacity();this.bb=_r.growByteBuffer(this.bb),this.space+=this.bb.capacity()-s}this.pad(i)}pad(A){for(let t=0;t<A;t++)this.bb.writeInt8(--this.space,0)}writeInt8(A){this.bb.writeInt8(this.space-=1,A)}writeInt16(A){this.bb.writeInt16(this.space-=2,A)}writeInt32(A){this.bb.writeInt32(this.space-=4,A)}writeInt64(A){this.bb.writeInt64(this.space-=8,A)}writeFloat32(A){this.bb.writeFloat32(this.space-=4,A)}writeFloat64(A){this.bb.writeFloat64(this.space-=8,A)}addInt8(A){this.prep(1,0),this.writeInt8(A)}addInt16(A){this.prep(2,0),this.writeInt16(A)}addInt32(A){this.prep(4,0),this.writeInt32(A)}addInt64(A){this.prep(8,0),this.writeInt64(A)}addFloat32(A){this.prep(4,0),this.writeFloat32(A)}addFloat64(A){this.prep(8,0),this.writeFloat64(A)}addFieldInt8(A,t,i){(this.force_defaults||t!=i)&&(this.addInt8(t),this.slot(A))}addFieldInt16(A,t,i){(this.force_defaults||t!=i)&&(this.addInt16(t),this.slot(A))}addFieldInt32(A,t,i){(this.force_defaults||t!=i)&&(this.addInt32(t),this.slot(A))}addFieldInt64(A,t,i){(this.force_defaults||t!==i)&&(this.addInt64(t),this.slot(A))}addFieldFloat32(A,t,i){(this.force_defaults||t!=i)&&(this.addFloat32(t),this.slot(A))}addFieldFloat64(A,t,i){(this.force_defaults||t!=i)&&(this.addFloat64(t),this.slot(A))}addFieldOffset(A,t,i){(this.force_defaults||t!=i)&&(this.addOffset(t),this.slot(A))}addFieldStruct(A,t,i){t!=i&&(this.nested(t),this.slot(A))}nested(A){if(A!=this.offset())throw new TypeError("FlatBuffers: struct must be serialized inline.")}notNested(){if(this.isNested)throw new TypeError("FlatBuffers: object serialization must not be nested.")}slot(A){this.vtable!==null&&(this.vtable[A]=this.offset())}offset(){return this.bb.capacity()-this.space}static growByteBuffer(A){const t=A.capacity();if(t&3221225472)throw new Error("FlatBuffers: cannot grow buffer beyond 2 gigabytes.");const i=t<<1,s=Ii.allocate(i);return s.setPosition(i-t),s.bytes().set(A.bytes(),i-t),s}addOffset(A){this.prep(ni,0),this.writeInt32(this.offset()-A+ni)}startObject(A){this.notNested(),this.vtable==null&&(this.vtable=[]),this.vtable_in_use=A;for(let t=0;t<A;t++)this.vtable[t]=0;this.isNested=!0,this.object_start=this.offset()}endObject(){if(this.vtable==null||!this.isNested)throw new Error("FlatBuffers: endObject called without startObject");this.addInt32(0);const A=this.offset();let t=this.vtable_in_use-1;for(;t>=0&&this.vtable[t]==0;t--);const i=t+1;for(;t>=0;t--)this.addInt16(this.vtable[t]!=0?A-this.vtable[t]:0);const s=2;this.addInt16(A-this.object_start);const a=(i+s)*fc;this.addInt16(a);let r=0;const g=this.space;A:for(t=0;t<this.vtables.length;t++){const n=this.bb.capacity()-this.vtables[t];if(a==this.bb.readInt16(n)){for(let C=fc;C<a;C+=fc)if(this.bb.readInt16(g+C)!=this.bb.readInt16(n+C))continue A;r=this.vtables[t];break}}return r?(this.space=this.bb.capacity()-A,this.bb.writeInt32(this.space,r-A)):(this.vtables.push(this.offset()),this.bb.writeInt32(this.bb.capacity()-A,this.offset()-A)),this.isNested=!1,A}finish(A,t,i){const s=i?oi:0;if(t){const a=t;if(this.prep(this.minalign,ni+Si+s),a.length!=Si)throw new TypeError("FlatBuffers: file identifier must be length "+Si);for(let r=Si-1;r>=0;r--)this.writeInt8(a.charCodeAt(r))}this.prep(this.minalign,ni+s),this.addOffset(A),s&&this.addInt32(this.bb.capacity()-this.space),this.bb.setPosition(this.space)}finishSizePrefixed(A,t){this.finish(A,t,!0)}requiredField(A,t){const i=this.bb.capacity()-A,s=i-this.bb.readInt32(i);if(!(t<this.bb.readInt16(s)&&this.bb.readInt16(s+t)!=0))throw new TypeError("FlatBuffers: field "+t+" must be set")}startVector(A,t,i){this.notNested(),this.vector_num_elems=t,this.prep(ni,A*t),this.prep(i,A*t)}endVector(){return this.writeInt32(this.vector_num_elems),this.offset()}createSharedString(A){if(!A)return 0;if(this.string_maps||(this.string_maps=new Map),this.string_maps.has(A))return this.string_maps.get(A);const t=this.createString(A);return this.string_maps.set(A,t),t}createString(A){if(A==null)return 0;let t;return A instanceof Uint8Array?t=A:t=this.text_encoder.encode(A),this.addInt8(0),this.startVector(1,t.length,1),this.bb.setPosition(this.space-=t.length),this.bb.bytes().set(t,this.space),this.endVector()}createByteVector(A){return A==null?0:(this.startVector(1,A.length,1),this.bb.setPosition(this.space-=A.length),this.bb.bytes().set(A,this.space),this.endVector())}createObjectOffset(A){return A===null?0:typeof A=="string"?this.createString(A):A.pack(this)}createObjectOffsetList(A){const t=[];for(let i=0;i<A.length;++i){const s=A[i];if(s!==null)t.push(this.createObjectOffset(s));else throw new TypeError("FlatBuffers: Argument for createObjectOffsetList cannot contain null.")}return t}createStructOffsetList(A,t){return t(this,A.length),this.createObjectOffsetList(A.slice().reverse()),this.endVector()}}class Mi{constructor(){X(this,"bb",null);X(this,"bb_pos",0)}__init(A,t){return this.bb_pos=A,this.bb=t,this}static getRootAsFileAlias(A,t){return(t||new Mi).__init(A.readInt32(A.position())+A.position(),A)}static getSizePrefixedRootAsFileAlias(A,t){return A.setPosition(A.position()+oi),(t||new Mi).__init(A.readInt32(A.position())+A.position(),A)}key(A){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.__string(this.bb_pos+t,A):null}value(A){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.__string(this.bb_pos+t,A):null}static startFileAlias(A){A.startObject(2)}static addKey(A,t){A.addFieldOffset(0,t,0)}static addValue(A,t){A.addFieldOffset(1,t,0)}static endFileAlias(A){const t=A.endObject();return A.requiredField(t,4),A.requiredField(t,6),t}static createFileAlias(A,t,i){return Mi.startFileAlias(A),Mi.addKey(A,t),Mi.addValue(A,i),Mi.endFileAlias(A)}unpack(){return new Kb(this.key(),this.value())}unpackTo(A){A.key=this.key(),A.value=this.value()}}class Kb{constructor(A=null,t=null){X(this,"key");X(this,"value");this.key=A,this.value=t}pack(A){const t=this.key!==null?A.createString(this.key):0,i=this.value!==null?A.createString(this.value):0;return Mi.createFileAlias(A,t,i)}}class va{constructor(){X(this,"bb",null);X(this,"bb_pos",0)}__init(A,t){return this.bb_pos=A,this.bb=t,this}static getRootAsFileAliasRequest(A,t){return(t||new va).__init(A.readInt32(A.position())+A.position(),A)}static getSizePrefixedRootAsFileAliasRequest(A,t){return A.setPosition(A.position()+oi),(t||new va).__init(A.readInt32(A.position())+A.position(),A)}static startFileAliasRequest(A){A.startObject(0)}static endFileAliasRequest(A){return A.endObject()}static createFileAliasRequest(A){return va.startFileAliasRequest(A),va.endFileAliasRequest(A)}unpack(){return new _p}unpackTo(A){}}class _p{constructor(){}pack(A){return va.createFileAliasRequest(A)}}class Fi{constructor(){X(this,"bb",null);X(this,"bb_pos",0)}__init(A,t){return this.bb_pos=A,this.bb=t,this}static getRootAsFileAliasResponse(A,t){return(t||new Fi).__init(A.readInt32(A.position())+A.position(),A)}static getSizePrefixedRootAsFileAliasResponse(A,t){return A.setPosition(A.position()+oi),(t||new Fi).__init(A.readInt32(A.position())+A.position(),A)}aliases(A,t){const i=this.bb.__offset(this.bb_pos,4);return i?(t||new Mi).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+i)+A*4),this.bb):null}aliasesLength(){const A=this.bb.__offset(this.bb_pos,4);return A?this.bb.__vector_len(this.bb_pos+A):0}static startFileAliasResponse(A){A.startObject(1)}static addAliases(A,t){A.addFieldOffset(0,t,0)}static createAliasesVector(A,t){A.startVector(4,t.length,4);for(let i=t.length-1;i>=0;i--)A.addOffset(t[i]);return A.endVector()}static startAliasesVector(A,t){A.startVector(4,t,4)}static endFileAliasResponse(A){const t=A.endObject();return A.requiredField(t,4),t}static createFileAliasResponse(A,t){return Fi.startFileAliasResponse(A),Fi.addAliases(A,t),Fi.endFileAliasResponse(A)}unpack(){return new qb(this.bb.createObjList(this.aliases.bind(this),this.aliasesLength()))}unpackTo(A){A.aliases=this.bb.createObjList(this.aliases.bind(this),this.aliasesLength())}}class qb{constructor(A=[]){X(this,"aliases");this.aliases=A}pack(A){const t=Fi.createAliasesVector(A,A.createObjectOffsetList(this.aliases));return Fi.createFileAliasResponse(A,t)}}class Us{constructor(){X(this,"bb",null);X(this,"bb_pos",0)}__init(A,t){return this.bb_pos=A,this.bb=t,this}static getRootAsFileRequest(A,t){return(t||new Us).__init(A.readInt32(A.position())+A.position(),A)}static getSizePrefixedRootAsFileRequest(A,t){return A.setPosition(A.position()+oi),(t||new Us).__init(A.readInt32(A.position())+A.position(),A)}target(A){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.__string(this.bb_pos+t,A):null}static startFileRequest(A){A.startObject(1)}static addTarget(A,t){A.addFieldOffset(0,t,0)}static endFileRequest(A){const t=A.endObject();return A.requiredField(t,4),t}static createFileRequest(A,t){return Us.startFileRequest(A),Us.addTarget(A,t),Us.endFileRequest(A)}unpack(){return new Kp(this.target())}unpackTo(A){A.target=this.target()}}class Kp{constructor(A=null){X(this,"target");this.target=A}pack(A){const t=this.target!==null?A.createString(this.target):0;return Us.createFileRequest(A,t)}}class Tt{constructor(){X(this,"bb",null);X(this,"bb_pos",0)}__init(A,t){return this.bb_pos=A,this.bb=t,this}static getRootAsFileResponse(A,t){return(t||new Tt).__init(A.readInt32(A.position())+A.position(),A)}static getSizePrefixedRootAsFileResponse(A,t){return A.setPosition(A.position()+oi),(t||new Tt).__init(A.readInt32(A.position())+A.position(),A)}target(A){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.__string(this.bb_pos+t,A):null}content(A){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.__string(this.bb_pos+t,A):null}metadata(A){const t=this.bb.__offset(this.bb_pos,8);return t?this.bb.readUint8(this.bb.__vector(this.bb_pos+t)+A):0}metadataLength(){const A=this.bb.__offset(this.bb_pos,8);return A?this.bb.__vector_len(this.bb_pos+A):0}metadataArray(){const A=this.bb.__offset(this.bb_pos,8);return A?new Uint8Array(this.bb.bytes().buffer,this.bb.bytes().byteOffset+this.bb.__vector(this.bb_pos+A),this.bb.__vector_len(this.bb_pos+A)):null}static startFileResponse(A){A.startObject(3)}static addTarget(A,t){A.addFieldOffset(0,t,0)}static addContent(A,t){A.addFieldOffset(1,t,0)}static addMetadata(A,t){A.addFieldOffset(2,t,0)}static createMetadataVector(A,t){A.startVector(1,t.length,1);for(let i=t.length-1;i>=0;i--)A.addInt8(t[i]);return A.endVector()}static startMetadataVector(A,t){A.startVector(1,t,1)}static endFileResponse(A){const t=A.endObject();return A.requiredField(t,4),A.requiredField(t,6),A.requiredField(t,8),t}static createFileResponse(A,t,i,s){return Tt.startFileResponse(A),Tt.addTarget(A,t),Tt.addContent(A,i),Tt.addMetadata(A,s),Tt.endFileResponse(A)}unpack(){return new xb(this.target(),this.content(),this.bb.createScalarList(this.metadata.bind(this),this.metadataLength()))}unpackTo(A){A.target=this.target(),A.content=this.content(),A.metadata=this.bb.createScalarList(this.metadata.bind(this),this.metadataLength())}}class xb{constructor(A=null,t=null,i=[]){X(this,"target");X(this,"content");X(this,"metadata");this.target=A,this.content=t,this.metadata=i}pack(A){const t=this.target!==null?A.createString(this.target):0,i=this.content!==null?A.createString(this.content):0,s=Tt.createMetadataVector(A,this.metadata);return Tt.createFileResponse(A,t,i,s)}}var Gt;(function(e){e[e.Client_Unique_FrameInfo_Request=0]="Client_Unique_FrameInfo_Request",e[e.Client_Tagged_FrameInfo_Request=1]="Client_Tagged_FrameInfo_Request",e[e.Server_Unique_FrameInfo_File_Response=2]="Server_Unique_FrameInfo_File_Response",e[e.Server_Tagged_FrameInfo_File_Response=3]="Server_Tagged_FrameInfo_File_Response",e[e.Server_Unique_FrameInfo_Content_Response=4]="Server_Unique_FrameInfo_Content_Response",e[e.Server_Tagged_FrameInfo_Content_Response=5]="Server_Tagged_FrameInfo_Content_Response",e[e.Client_File_Request=6]="Client_File_Request",e[e.Server_File_Response=7]="Server_File_Response",e[e.Client_File_Alias_Request=8]="Client_File_Alias_Request",e[e.Server_File_Alias_Response=9]="Server_File_Alias_Response",e[e.Client_Unique_FrameCache=10]="Client_Unique_FrameCache",e[e.Client_Tagged_FrameCache=11]="Client_Tagged_FrameCache",e[e.Client_Unique_Frame_Loaded=12]="Client_Unique_Frame_Loaded",e[e.Client_Tagged_Frame_Loaded=13]="Client_Tagged_Frame_Loaded",e[e.Client_Unique_Frame_Subscribe=14]="Client_Unique_Frame_Subscribe",e[e.Client_Tagged_Frame_Subscribe=15]="Client_Tagged_Frame_Subscribe",e[e.Client_Unique_Frame_Unsubscribe=16]="Client_Unique_Frame_Unsubscribe",e[e.Client_Tagged_Frame_Unsubscribe=17]="Client_Tagged_Frame_Unsubscribe",e[e.Client_Unique_Value_Request=18]="Client_Unique_Value_Request",e[e.Client_Tagged_Value_Request=19]="Client_Tagged_Value_Request",e[e.Server_Unique_Value_Response=20]="Server_Unique_Value_Response",e[e.Server_Tagged_Value_Response=21]="Server_Tagged_Value_Response",e[e.Unique_Value_Update=22]="Unique_Value_Update",e[e.Tagged_Value_Update=23]="Tagged_Value_Update",e[e.Client_Unique_Signal_Request=24]="Client_Unique_Signal_Request",e[e.Client_Tagged_Signal_Request=25]="Client_Tagged_Signal_Request",e[e.Server_Unique_Signal_Response=26]="Server_Unique_Signal_Response",e[e.Server_Tagged_Signal_Response=27]="Server_Tagged_Signal_Response",e[e.Client_Unique_Signal_Notify=28]="Client_Unique_Signal_Notify",e[e.Client_Tagged_Signal_Notify=29]="Client_Tagged_Signal_Notify"})(Gt||(Gt={}));class ns{constructor(){X(this,"bb",null);X(this,"bb_pos",0)}__init(A,t){return this.bb_pos=A,this.bb=t,this}static getRootAsTaggedFrameInfoRequest(A,t){return(t||new ns).__init(A.readInt32(A.position())+A.position(),A)}static getSizePrefixedRootAsTaggedFrameInfoRequest(A,t){return A.setPosition(A.position()+oi),(t||new ns).__init(A.readInt32(A.position())+A.position(),A)}id(A){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.__string(this.bb_pos+t,A):null}tag(A){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.__string(this.bb_pos+t,A):null}static startTaggedFrameInfoRequest(A){A.startObject(2)}static addId(A,t){A.addFieldOffset(0,t,0)}static addTag(A,t){A.addFieldOffset(1,t,0)}static endTaggedFrameInfoRequest(A){const t=A.endObject();return A.requiredField(t,4),A.requiredField(t,6),t}static createTaggedFrameInfoRequest(A,t,i){return ns.startTaggedFrameInfoRequest(A),ns.addId(A,t),ns.addTag(A,i),ns.endTaggedFrameInfoRequest(A)}unpack(){return new qp(this.id(),this.tag())}unpackTo(A){A.id=this.id(),A.tag=this.tag()}}class qp{constructor(A=null,t=null){X(this,"id");X(this,"tag");this.id=A,this.tag=t}pack(A){const t=this.id!==null?A.createString(this.id):0,i=this.tag!==null?A.createString(this.tag):0;return ns.createTaggedFrameInfoRequest(A,t,i)}}class Ot{constructor(){X(this,"bb",null);X(this,"bb_pos",0)}__init(A,t){return this.bb_pos=A,this.bb=t,this}static getRootAsTaggedFrameInfoResponse(A,t){return(t||new Ot).__init(A.readInt32(A.position())+A.position(),A)}static getSizePrefixedRootAsTaggedFrameInfoResponse(A,t){return A.setPosition(A.position()+oi),(t||new Ot).__init(A.readInt32(A.position())+A.position(),A)}id(A){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.__string(this.bb_pos+t,A):null}tag(A){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.__string(this.bb_pos+t,A):null}value(A){const t=this.bb.__offset(this.bb_pos,8);return t?this.bb.__string(this.bb_pos+t,A):null}static startTaggedFrameInfoResponse(A){A.startObject(3)}static addId(A,t){A.addFieldOffset(0,t,0)}static addTag(A,t){A.addFieldOffset(1,t,0)}static addValue(A,t){A.addFieldOffset(2,t,0)}static endTaggedFrameInfoResponse(A){const t=A.endObject();return A.requiredField(t,4),A.requiredField(t,6),A.requiredField(t,8),t}static createTaggedFrameInfoResponse(A,t,i,s){return Ot.startTaggedFrameInfoResponse(A),Ot.addId(A,t),Ot.addTag(A,i),Ot.addValue(A,s),Ot.endTaggedFrameInfoResponse(A)}unpack(){return new Hb(this.id(),this.tag(),this.value())}unpackTo(A){A.id=this.id(),A.tag=this.tag(),A.value=this.value()}}class Hb{constructor(A=null,t=null,i=null){X(this,"id");X(this,"tag");X(this,"value");this.id=A,this.tag=t,this.value=i}pack(A){const t=this.id!==null?A.createString(this.id):0,i=this.tag!==null?A.createString(this.tag):0,s=this.value!==null?A.createString(this.value):0;return Ot.createTaggedFrameInfoResponse(A,t,i,s)}}class Ys{constructor(){X(this,"bb",null);X(this,"bb_pos",0)}__init(A,t){return this.bb_pos=A,this.bb=t,this}static getRootAsUniqueFrameInfoRequest(A,t){return(t||new Ys).__init(A.readInt32(A.position())+A.position(),A)}static getSizePrefixedRootAsUniqueFrameInfoRequest(A,t){return A.setPosition(A.position()+oi),(t||new Ys).__init(A.readInt32(A.position())+A.position(),A)}id(A){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.__string(this.bb_pos+t,A):null}static startUniqueFrameInfoRequest(A){A.startObject(1)}static addId(A,t){A.addFieldOffset(0,t,0)}static endUniqueFrameInfoRequest(A){const t=A.endObject();return A.requiredField(t,4),t}static createUniqueFrameInfoRequest(A,t){return Ys.startUniqueFrameInfoRequest(A),Ys.addId(A,t),Ys.endUniqueFrameInfoRequest(A)}unpack(){return new xp(this.id())}unpackTo(A){A.id=this.id()}}class xp{constructor(A=null){X(this,"id");this.id=A}pack(A){const t=this.id!==null?A.createString(this.id):0;return Ys.createUniqueFrameInfoRequest(A,t)}}class Ci{constructor(){X(this,"bb",null);X(this,"bb_pos",0)}__init(A,t){return this.bb_pos=A,this.bb=t,this}static getRootAsUniqueFrameInfoResponse(A,t){return(t||new Ci).__init(A.readInt32(A.position())+A.position(),A)}static getSizePrefixedRootAsUniqueFrameInfoResponse(A,t){return A.setPosition(A.position()+oi),(t||new Ci).__init(A.readInt32(A.position())+A.position(),A)}id(A){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.__string(this.bb_pos+t,A):null}value(A){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.__string(this.bb_pos+t,A):null}static startUniqueFrameInfoResponse(A){A.startObject(2)}static addId(A,t){A.addFieldOffset(0,t,0)}static addValue(A,t){A.addFieldOffset(1,t,0)}static endUniqueFrameInfoResponse(A){const t=A.endObject();return A.requiredField(t,4),A.requiredField(t,6),t}static createUniqueFrameInfoResponse(A,t,i){return Ci.startUniqueFrameInfoResponse(A),Ci.addId(A,t),Ci.addValue(A,i),Ci.endUniqueFrameInfoResponse(A)}unpack(){return new Pb(this.id(),this.value())}unpackTo(A){A.id=this.id(),A.value=this.value()}}class Pb{constructor(A=null,t=null){X(this,"id");X(this,"value");this.id=A,this.value=t}pack(A){const t=this.id!==null?A.createString(this.id):0,i=this.value!==null?A.createString(this.value):0;return Ci.createUniqueFrameInfoResponse(A,t,i)}}var Tb=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,78,5,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,199,7,137,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,55,9,266,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239],Hp=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,7,25,39,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,5,57,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,24,43,261,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7381,42,31,98,114,8702,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,208,30,2,2,2,1,2,6,3,4,10,1,225,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4381,3,5773,3,7472,16,621,2467,541,1507,4938,6,8489],Ob="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ--ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・",Pp="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ--ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",Dc={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},mc="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",jb={5:mc,"5module":mc+" export import",6:mc+" const class extends export import super"},Tp=/^in(stanceof)?$/,Vb=new RegExp("["+Pp+"]"),$b=new RegExp("["+Pp+Ob+"]");function yc(e,A){for(var t=65536,i=0;i<A.length;i+=2){if(t+=A[i],t>e)return!1;if(t+=A[i+1],t>=e)return!0}return!1}function St(e,A){return e<65?e===36:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&Vb.test(String.fromCharCode(e)):A===!1?!1:yc(e,Hp)}function Bi(e,A){return e<48?e===36:e<58?!0:e<65?!1:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&$b.test(String.fromCharCode(e)):A===!1?!1:yc(e,Hp)||yc(e,Tb)}var _A=function(A,t){t===void 0&&(t={}),this.label=A,this.keyword=t.keyword,this.beforeExpr=!!t.beforeExpr,this.startsExpr=!!t.startsExpr,this.isLoop=!!t.isLoop,this.isAssign=!!t.isAssign,this.prefix=!!t.prefix,this.postfix=!!t.postfix,this.binop=t.binop||null,this.updateContext=null};function Mt(e,A){return new _A(e,{beforeExpr:!0,binop:A})}var Ft={beforeExpr:!0},It={startsExpr:!0},Kr={};function PA(e,A){return A===void 0&&(A={}),A.keyword=e,Kr[e]=new _A(e,A)}var F={num:new _A("num",It),regexp:new _A("regexp",It),string:new _A("string",It),name:new _A("name",It),privateId:new _A("privateId",It),eof:new _A("eof"),bracketL:new _A("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new _A("]"),braceL:new _A("{",{beforeExpr:!0,startsExpr:!0}),braceR:new _A("}"),parenL:new _A("(",{beforeExpr:!0,startsExpr:!0}),parenR:new _A(")"),comma:new _A(",",Ft),semi:new _A(";",Ft),colon:new _A(":",Ft),dot:new _A("."),question:new _A("?",Ft),questionDot:new _A("?."),arrow:new _A("=>",Ft),template:new _A("template"),invalidTemplate:new _A("invalidTemplate"),ellipsis:new _A("...",Ft),backQuote:new _A("`",It),dollarBraceL:new _A("${",{beforeExpr:!0,startsExpr:!0}),eq:new _A("=",{beforeExpr:!0,isAssign:!0}),assign:new _A("_=",{beforeExpr:!0,isAssign:!0}),incDec:new _A("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new _A("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:Mt("||",1),logicalAND:Mt("&&",2),bitwiseOR:Mt("|",3),bitwiseXOR:Mt("^",4),bitwiseAND:Mt("&",5),equality:Mt("==/!=/===/!==",6),relational:Mt("</>/<=/>=",7),bitShift:Mt("<</>>/>>>",8),plusMin:new _A("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:Mt("%",10),star:Mt("*",10),slash:Mt("/",10),starstar:new _A("**",{beforeExpr:!0}),coalesce:Mt("??",1),_break:PA("break"),_case:PA("case",Ft),_catch:PA("catch"),_continue:PA("continue"),_debugger:PA("debugger"),_default:PA("default",Ft),_do:PA("do",{isLoop:!0,beforeExpr:!0}),_else:PA("else",Ft),_finally:PA("finally"),_for:PA("for",{isLoop:!0}),_function:PA("function",It),_if:PA("if"),_return:PA("return",Ft),_switch:PA("switch"),_throw:PA("throw",Ft),_try:PA("try"),_var:PA("var"),_const:PA("const"),_while:PA("while",{isLoop:!0}),_with:PA("with"),_new:PA("new",{beforeExpr:!0,startsExpr:!0}),_this:PA("this",It),_super:PA("super",It),_class:PA("class",It),_extends:PA("extends",Ft),_export:PA("export"),_import:PA("import",It),_null:PA("null",It),_true:PA("true",It),_false:PA("false",It),_in:PA("in",{beforeExpr:!0,binop:7}),_instanceof:PA("instanceof",{beforeExpr:!0,binop:7}),_typeof:PA("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:PA("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:PA("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},et=/\r\n?|\n|\u2028|\u2029/,Op=new RegExp(et.source,"g");function Js(e){return e===10||e===13||e===8232||e===8233}function jp(e,A,t){t===void 0&&(t=e.length);for(var i=A;i<t;i++){var s=e.charCodeAt(i);if(Js(s))return i<t-1&&s===13&&e.charCodeAt(i+1)===10?i+2:i+1}return-1}var kc=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,ze=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,Vp=Object.prototype,Wb=Vp.hasOwnProperty,zb=Vp.toString,La=Object.hasOwn||(function(e,A){return Wb.call(e,A)}),$p=Array.isArray||(function(e){return zb.call(e)==="[object Array]"}),Wp=Object.create(null);function os(e){return Wp[e]||(Wp[e]=new RegExp("^(?:"+e.replace(/ /g,"|")+")$"))}function bi(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10)+55296,(e&1023)+56320))}var Zb=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,Ua=function(A,t){this.line=A,this.column=t};Ua.prototype.offset=function(A){return new Ua(this.line,this.column+A)};var qr=function(A,t,i){this.start=t,this.end=i,A.sourceFile!==null&&(this.source=A.sourceFile)};function Rc(e,A){for(var t=1,i=0;;){var s=jp(e,i,A);if(s<0)return new Ua(t,A-i);++t,i=s}}var SQ={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},zp=!1;function Xb(e){var A={};for(var t in SQ)A[t]=e&&La(e,t)?e[t]:SQ[t];if(A.ecmaVersion==="latest"?A.ecmaVersion=1e8:A.ecmaVersion==null?(!zp&&typeof console=="object"&&console.warn&&(zp=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
|
|
1
|
+
var n9=Object.defineProperty;var Jb=pe=>{throw TypeError(pe)};var o9=(pe,fe,Ke)=>fe in pe?n9(pe,fe,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):pe[fe]=Ke;var X=(pe,fe,Ke)=>o9(pe,typeof fe!="symbol"?fe+"":fe,Ke),bp=(pe,fe,Ke)=>fe.has(pe)||Jb("Cannot "+Ke);var aA=(pe,fe,Ke)=>(bp(pe,fe,"read from private field"),Ke?Ke.call(pe):fe.get(pe)),ye=(pe,fe,Ke)=>fe.has(pe)?Jb("Cannot add the same private member more than once"):fe instanceof WeakSet?fe.add(pe):fe.set(pe,Ke),Ce=(pe,fe,Ke,NQ)=>(bp(pe,fe,"write to private field"),NQ?NQ.call(pe,Ke):fe.set(pe,Ke),Ke),Gi=(pe,fe,Ke)=>(bp(pe,fe,"access private method"),Ke);(function(){"use strict";var yQ,vp,Ve,Ra,Na,Ga,as,_e,Sa,Ms,Fs,Jr,Sr,Ma,bs,Xe,Mr,Fr,kQ,Lp,vs,Ls,br,vr,Fa,rs,Ub;class fe{constructor(A){ye(this,yQ);ye(this,Ve);ye(this,Ra);ye(this,Na);ye(this,Ga);ye(this,as);ye(this,_e);Ce(this,as,A),Ce(this,Ve,0),Ce(this,Ra,null),Ce(this,Na,null),Ce(this,Ga,null),Ce(this,_e,null)}on_message(A){Ce(this,Ga,A)}on_connect(A){Ce(this,Ra,A)}on_disconnect(A){Ce(this,Na,A)}start(){aA(this,_e)==null&&aA(this,Ve)!==1&&aA(this,Ve)!==3&&(Ce(this,_e,new WebSocket(aA(this,as))),aA(this,_e).binaryType="arraybuffer",aA(this,_e).onopen=()=>{aA(this,Ve)==3?this.stop():(Ce(this,Ve,1),aA(this,Ra)&&aA(this,Ra).call(this,aA(this,as)))},aA(this,_e).onclose=()=>{aA(this,Ve)===1&&(aA(this,Na)&&aA(this,Na).call(this,aA(this,as)),Ce(this,Ve,2),Gi(this,yQ,vp).call(this))},aA(this,_e).onerror=()=>{aA(this,Ve)!==1&&aA(this,Ve)!==3?(Ce(this,Ve,2),Gi(this,yQ,vp).call(this)):aA(this,Ve)===3&&this.stop()},aA(this,_e).onmessage=A=>{aA(this,Ga)&&aA(this,Ga).call(this,aA(this,as),new Uint8Array(A.data))})}stop(){Ce(this,Ve,3),aA(this,_e)!=null&&aA(this,_e).readyState!==WebSocket.CONNECTING&&(aA(this,_e).close(),Ce(this,_e,null))}restart(){Ce(this,Ve,0)}publish(A){aA(this,_e)!=null&&aA(this,Ve)==1&&aA(this,_e).send(A)}send(A,t){A===aA(this,as)&&this.publish(t)}}yQ=new WeakSet,vp=function(){aA(this,_e)!=null&&(aA(this,_e).close(),Ce(this,_e,null)),setTimeout(()=>this.start(),1e3)},Ve=new WeakMap,Ra=new WeakMap,Na=new WeakMap,Ga=new WeakMap,as=new WeakMap,_e=new WeakMap;const Ke=e=>{const A=new Uint8Array(4);return new DataView(A.buffer).setUint32(0,e,!0),A},NQ=e=>{const A=new Uint8Array(e.reduce((i,s)=>i+s.length,0));let t=0;for(const i of e)A.set(i,t),t+=i.length;return A},pc=async(e,A,t,i)=>new Promise((s,a)=>{const r=new fe(e),g=setTimeout(()=>{r.stop(),a("timed out, cancelled")},1e4),n=NQ([Ke(A),t]);r.on_connect(()=>r.publish(n)),r.on_message((C,B)=>{const E=new DataView(B.buffer).getUint32(0,!0),o=B.slice(4),I=i(E,o);I!=null&&(clearTimeout(g),r.stop(),s(I))}),r.start()}),fc=2,ni=4,Si=4,oi=4,gs=new Int32Array(2),Yp=new Float32Array(gs.buffer),Jp=new Float64Array(gs.buffer),GQ=new Uint16Array(new Uint8Array([1,0]).buffer)[0]===1;var wc;(function(e){e[e.UTF8_BYTES=1]="UTF8_BYTES",e[e.UTF16_STRING=2]="UTF16_STRING"})(wc||(wc={}));class Ii{constructor(A){this.bytes_=A,this.position_=0,this.text_decoder_=new TextDecoder}static allocate(A){return new Ii(new Uint8Array(A))}clear(){this.position_=0}bytes(){return this.bytes_}position(){return this.position_}setPosition(A){this.position_=A}capacity(){return this.bytes_.length}readInt8(A){return this.readUint8(A)<<24>>24}readUint8(A){return this.bytes_[A]}readInt16(A){return this.readUint16(A)<<16>>16}readUint16(A){return this.bytes_[A]|this.bytes_[A+1]<<8}readInt32(A){return this.bytes_[A]|this.bytes_[A+1]<<8|this.bytes_[A+2]<<16|this.bytes_[A+3]<<24}readUint32(A){return this.readInt32(A)>>>0}readInt64(A){return BigInt.asIntN(64,BigInt(this.readUint32(A))+(BigInt(this.readUint32(A+4))<<BigInt(32)))}readUint64(A){return BigInt.asUintN(64,BigInt(this.readUint32(A))+(BigInt(this.readUint32(A+4))<<BigInt(32)))}readFloat32(A){return gs[0]=this.readInt32(A),Yp[0]}readFloat64(A){return gs[GQ?0:1]=this.readInt32(A),gs[GQ?1:0]=this.readInt32(A+4),Jp[0]}writeInt8(A,t){this.bytes_[A]=t}writeUint8(A,t){this.bytes_[A]=t}writeInt16(A,t){this.bytes_[A]=t,this.bytes_[A+1]=t>>8}writeUint16(A,t){this.bytes_[A]=t,this.bytes_[A+1]=t>>8}writeInt32(A,t){this.bytes_[A]=t,this.bytes_[A+1]=t>>8,this.bytes_[A+2]=t>>16,this.bytes_[A+3]=t>>24}writeUint32(A,t){this.bytes_[A]=t,this.bytes_[A+1]=t>>8,this.bytes_[A+2]=t>>16,this.bytes_[A+3]=t>>24}writeInt64(A,t){this.writeInt32(A,Number(BigInt.asIntN(32,t))),this.writeInt32(A+4,Number(BigInt.asIntN(32,t>>BigInt(32))))}writeUint64(A,t){this.writeUint32(A,Number(BigInt.asUintN(32,t))),this.writeUint32(A+4,Number(BigInt.asUintN(32,t>>BigInt(32))))}writeFloat32(A,t){Yp[0]=t,this.writeInt32(A,gs[0])}writeFloat64(A,t){Jp[0]=t,this.writeInt32(A,gs[GQ?0:1]),this.writeInt32(A+4,gs[GQ?1:0])}getBufferIdentifier(){if(this.bytes_.length<this.position_+ni+Si)throw new Error("FlatBuffers: ByteBuffer is too short to contain an identifier.");let A="";for(let t=0;t<Si;t++)A+=String.fromCharCode(this.readInt8(this.position_+ni+t));return A}__offset(A,t){const i=A-this.readInt32(A);return t<this.readInt16(i)?this.readInt16(i+t):0}__union(A,t){return A.bb_pos=t+this.readInt32(t),A.bb=this,A}__string(A,t){A+=this.readInt32(A);const i=this.readInt32(A);A+=ni;const s=this.bytes_.subarray(A,A+i);return t===wc.UTF8_BYTES?s:this.text_decoder_.decode(s)}__union_with_string(A,t){return typeof A=="string"?this.__string(t):this.__union(A,t)}__indirect(A){return A+this.readInt32(A)}__vector(A){return A+this.readInt32(A)+ni}__vector_len(A){return this.readInt32(A+this.readInt32(A))}__has_identifier(A){if(A.length!=Si)throw new Error("FlatBuffers: file identifier must be length "+Si);for(let t=0;t<Si;t++)if(A.charCodeAt(t)!=this.readInt8(this.position()+ni+t))return!1;return!0}createScalarList(A,t){const i=[];for(let s=0;s<t;++s){const a=A(s);a!==null&&i.push(a)}return i}createObjList(A,t){const i=[];for(let s=0;s<t;++s){const a=A(s);a!==null&&i.push(a.unpack())}return i}}class _r{constructor(A){this.minalign=1,this.vtable=null,this.vtable_in_use=0,this.isNested=!1,this.object_start=0,this.vtables=[],this.vector_num_elems=0,this.force_defaults=!1,this.string_maps=null,this.text_encoder=new TextEncoder;let t;A?t=A:t=1024,this.bb=Ii.allocate(t),this.space=t}clear(){this.bb.clear(),this.space=this.bb.capacity(),this.minalign=1,this.vtable=null,this.vtable_in_use=0,this.isNested=!1,this.object_start=0,this.vtables=[],this.vector_num_elems=0,this.force_defaults=!1,this.string_maps=null}forceDefaults(A){this.force_defaults=A}dataBuffer(){return this.bb}asUint8Array(){return this.bb.bytes().subarray(this.bb.position(),this.bb.position()+this.offset())}prep(A,t){A>this.minalign&&(this.minalign=A);const i=~(this.bb.capacity()-this.space+t)+1&A-1;for(;this.space<i+A+t;){const s=this.bb.capacity();this.bb=_r.growByteBuffer(this.bb),this.space+=this.bb.capacity()-s}this.pad(i)}pad(A){for(let t=0;t<A;t++)this.bb.writeInt8(--this.space,0)}writeInt8(A){this.bb.writeInt8(this.space-=1,A)}writeInt16(A){this.bb.writeInt16(this.space-=2,A)}writeInt32(A){this.bb.writeInt32(this.space-=4,A)}writeInt64(A){this.bb.writeInt64(this.space-=8,A)}writeFloat32(A){this.bb.writeFloat32(this.space-=4,A)}writeFloat64(A){this.bb.writeFloat64(this.space-=8,A)}addInt8(A){this.prep(1,0),this.writeInt8(A)}addInt16(A){this.prep(2,0),this.writeInt16(A)}addInt32(A){this.prep(4,0),this.writeInt32(A)}addInt64(A){this.prep(8,0),this.writeInt64(A)}addFloat32(A){this.prep(4,0),this.writeFloat32(A)}addFloat64(A){this.prep(8,0),this.writeFloat64(A)}addFieldInt8(A,t,i){(this.force_defaults||t!=i)&&(this.addInt8(t),this.slot(A))}addFieldInt16(A,t,i){(this.force_defaults||t!=i)&&(this.addInt16(t),this.slot(A))}addFieldInt32(A,t,i){(this.force_defaults||t!=i)&&(this.addInt32(t),this.slot(A))}addFieldInt64(A,t,i){(this.force_defaults||t!==i)&&(this.addInt64(t),this.slot(A))}addFieldFloat32(A,t,i){(this.force_defaults||t!=i)&&(this.addFloat32(t),this.slot(A))}addFieldFloat64(A,t,i){(this.force_defaults||t!=i)&&(this.addFloat64(t),this.slot(A))}addFieldOffset(A,t,i){(this.force_defaults||t!=i)&&(this.addOffset(t),this.slot(A))}addFieldStruct(A,t,i){t!=i&&(this.nested(t),this.slot(A))}nested(A){if(A!=this.offset())throw new TypeError("FlatBuffers: struct must be serialized inline.")}notNested(){if(this.isNested)throw new TypeError("FlatBuffers: object serialization must not be nested.")}slot(A){this.vtable!==null&&(this.vtable[A]=this.offset())}offset(){return this.bb.capacity()-this.space}static growByteBuffer(A){const t=A.capacity();if(t&3221225472)throw new Error("FlatBuffers: cannot grow buffer beyond 2 gigabytes.");const i=t<<1,s=Ii.allocate(i);return s.setPosition(i-t),s.bytes().set(A.bytes(),i-t),s}addOffset(A){this.prep(ni,0),this.writeInt32(this.offset()-A+ni)}startObject(A){this.notNested(),this.vtable==null&&(this.vtable=[]),this.vtable_in_use=A;for(let t=0;t<A;t++)this.vtable[t]=0;this.isNested=!0,this.object_start=this.offset()}endObject(){if(this.vtable==null||!this.isNested)throw new Error("FlatBuffers: endObject called without startObject");this.addInt32(0);const A=this.offset();let t=this.vtable_in_use-1;for(;t>=0&&this.vtable[t]==0;t--);const i=t+1;for(;t>=0;t--)this.addInt16(this.vtable[t]!=0?A-this.vtable[t]:0);const s=2;this.addInt16(A-this.object_start);const a=(i+s)*fc;this.addInt16(a);let r=0;const g=this.space;A:for(t=0;t<this.vtables.length;t++){const n=this.bb.capacity()-this.vtables[t];if(a==this.bb.readInt16(n)){for(let C=fc;C<a;C+=fc)if(this.bb.readInt16(g+C)!=this.bb.readInt16(n+C))continue A;r=this.vtables[t];break}}return r?(this.space=this.bb.capacity()-A,this.bb.writeInt32(this.space,r-A)):(this.vtables.push(this.offset()),this.bb.writeInt32(this.bb.capacity()-A,this.offset()-A)),this.isNested=!1,A}finish(A,t,i){const s=i?oi:0;if(t){const a=t;if(this.prep(this.minalign,ni+Si+s),a.length!=Si)throw new TypeError("FlatBuffers: file identifier must be length "+Si);for(let r=Si-1;r>=0;r--)this.writeInt8(a.charCodeAt(r))}this.prep(this.minalign,ni+s),this.addOffset(A),s&&this.addInt32(this.bb.capacity()-this.space),this.bb.setPosition(this.space)}finishSizePrefixed(A,t){this.finish(A,t,!0)}requiredField(A,t){const i=this.bb.capacity()-A,s=i-this.bb.readInt32(i);if(!(t<this.bb.readInt16(s)&&this.bb.readInt16(s+t)!=0))throw new TypeError("FlatBuffers: field "+t+" must be set")}startVector(A,t,i){this.notNested(),this.vector_num_elems=t,this.prep(ni,A*t),this.prep(i,A*t)}endVector(){return this.writeInt32(this.vector_num_elems),this.offset()}createSharedString(A){if(!A)return 0;if(this.string_maps||(this.string_maps=new Map),this.string_maps.has(A))return this.string_maps.get(A);const t=this.createString(A);return this.string_maps.set(A,t),t}createString(A){if(A==null)return 0;let t;return A instanceof Uint8Array?t=A:t=this.text_encoder.encode(A),this.addInt8(0),this.startVector(1,t.length,1),this.bb.setPosition(this.space-=t.length),this.bb.bytes().set(t,this.space),this.endVector()}createByteVector(A){return A==null?0:(this.startVector(1,A.length,1),this.bb.setPosition(this.space-=A.length),this.bb.bytes().set(A,this.space),this.endVector())}createObjectOffset(A){return A===null?0:typeof A=="string"?this.createString(A):A.pack(this)}createObjectOffsetList(A){const t=[];for(let i=0;i<A.length;++i){const s=A[i];if(s!==null)t.push(this.createObjectOffset(s));else throw new TypeError("FlatBuffers: Argument for createObjectOffsetList cannot contain null.")}return t}createStructOffsetList(A,t){return t(this,A.length),this.createObjectOffsetList(A.slice().reverse()),this.endVector()}}class Mi{constructor(){X(this,"bb",null);X(this,"bb_pos",0)}__init(A,t){return this.bb_pos=A,this.bb=t,this}static getRootAsFileAlias(A,t){return(t||new Mi).__init(A.readInt32(A.position())+A.position(),A)}static getSizePrefixedRootAsFileAlias(A,t){return A.setPosition(A.position()+oi),(t||new Mi).__init(A.readInt32(A.position())+A.position(),A)}key(A){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.__string(this.bb_pos+t,A):null}value(A){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.__string(this.bb_pos+t,A):null}static startFileAlias(A){A.startObject(2)}static addKey(A,t){A.addFieldOffset(0,t,0)}static addValue(A,t){A.addFieldOffset(1,t,0)}static endFileAlias(A){const t=A.endObject();return A.requiredField(t,4),A.requiredField(t,6),t}static createFileAlias(A,t,i){return Mi.startFileAlias(A),Mi.addKey(A,t),Mi.addValue(A,i),Mi.endFileAlias(A)}unpack(){return new Kb(this.key(),this.value())}unpackTo(A){A.key=this.key(),A.value=this.value()}}class Kb{constructor(A=null,t=null){X(this,"key");X(this,"value");this.key=A,this.value=t}pack(A){const t=this.key!==null?A.createString(this.key):0,i=this.value!==null?A.createString(this.value):0;return Mi.createFileAlias(A,t,i)}}class va{constructor(){X(this,"bb",null);X(this,"bb_pos",0)}__init(A,t){return this.bb_pos=A,this.bb=t,this}static getRootAsFileAliasRequest(A,t){return(t||new va).__init(A.readInt32(A.position())+A.position(),A)}static getSizePrefixedRootAsFileAliasRequest(A,t){return A.setPosition(A.position()+oi),(t||new va).__init(A.readInt32(A.position())+A.position(),A)}static startFileAliasRequest(A){A.startObject(0)}static endFileAliasRequest(A){return A.endObject()}static createFileAliasRequest(A){return va.startFileAliasRequest(A),va.endFileAliasRequest(A)}unpack(){return new _p}unpackTo(A){}}class _p{constructor(){}pack(A){return va.createFileAliasRequest(A)}}class Fi{constructor(){X(this,"bb",null);X(this,"bb_pos",0)}__init(A,t){return this.bb_pos=A,this.bb=t,this}static getRootAsFileAliasResponse(A,t){return(t||new Fi).__init(A.readInt32(A.position())+A.position(),A)}static getSizePrefixedRootAsFileAliasResponse(A,t){return A.setPosition(A.position()+oi),(t||new Fi).__init(A.readInt32(A.position())+A.position(),A)}aliases(A,t){const i=this.bb.__offset(this.bb_pos,4);return i?(t||new Mi).__init(this.bb.__indirect(this.bb.__vector(this.bb_pos+i)+A*4),this.bb):null}aliasesLength(){const A=this.bb.__offset(this.bb_pos,4);return A?this.bb.__vector_len(this.bb_pos+A):0}static startFileAliasResponse(A){A.startObject(1)}static addAliases(A,t){A.addFieldOffset(0,t,0)}static createAliasesVector(A,t){A.startVector(4,t.length,4);for(let i=t.length-1;i>=0;i--)A.addOffset(t[i]);return A.endVector()}static startAliasesVector(A,t){A.startVector(4,t,4)}static endFileAliasResponse(A){const t=A.endObject();return A.requiredField(t,4),t}static createFileAliasResponse(A,t){return Fi.startFileAliasResponse(A),Fi.addAliases(A,t),Fi.endFileAliasResponse(A)}unpack(){return new qb(this.bb.createObjList(this.aliases.bind(this),this.aliasesLength()))}unpackTo(A){A.aliases=this.bb.createObjList(this.aliases.bind(this),this.aliasesLength())}}class qb{constructor(A=[]){X(this,"aliases");this.aliases=A}pack(A){const t=Fi.createAliasesVector(A,A.createObjectOffsetList(this.aliases));return Fi.createFileAliasResponse(A,t)}}class Us{constructor(){X(this,"bb",null);X(this,"bb_pos",0)}__init(A,t){return this.bb_pos=A,this.bb=t,this}static getRootAsFileRequest(A,t){return(t||new Us).__init(A.readInt32(A.position())+A.position(),A)}static getSizePrefixedRootAsFileRequest(A,t){return A.setPosition(A.position()+oi),(t||new Us).__init(A.readInt32(A.position())+A.position(),A)}target(A){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.__string(this.bb_pos+t,A):null}static startFileRequest(A){A.startObject(1)}static addTarget(A,t){A.addFieldOffset(0,t,0)}static endFileRequest(A){const t=A.endObject();return A.requiredField(t,4),t}static createFileRequest(A,t){return Us.startFileRequest(A),Us.addTarget(A,t),Us.endFileRequest(A)}unpack(){return new Kp(this.target())}unpackTo(A){A.target=this.target()}}class Kp{constructor(A=null){X(this,"target");this.target=A}pack(A){const t=this.target!==null?A.createString(this.target):0;return Us.createFileRequest(A,t)}}class Tt{constructor(){X(this,"bb",null);X(this,"bb_pos",0)}__init(A,t){return this.bb_pos=A,this.bb=t,this}static getRootAsFileResponse(A,t){return(t||new Tt).__init(A.readInt32(A.position())+A.position(),A)}static getSizePrefixedRootAsFileResponse(A,t){return A.setPosition(A.position()+oi),(t||new Tt).__init(A.readInt32(A.position())+A.position(),A)}target(A){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.__string(this.bb_pos+t,A):null}content(A){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.__string(this.bb_pos+t,A):null}metadata(A){const t=this.bb.__offset(this.bb_pos,8);return t?this.bb.readUint8(this.bb.__vector(this.bb_pos+t)+A):0}metadataLength(){const A=this.bb.__offset(this.bb_pos,8);return A?this.bb.__vector_len(this.bb_pos+A):0}metadataArray(){const A=this.bb.__offset(this.bb_pos,8);return A?new Uint8Array(this.bb.bytes().buffer,this.bb.bytes().byteOffset+this.bb.__vector(this.bb_pos+A),this.bb.__vector_len(this.bb_pos+A)):null}static startFileResponse(A){A.startObject(3)}static addTarget(A,t){A.addFieldOffset(0,t,0)}static addContent(A,t){A.addFieldOffset(1,t,0)}static addMetadata(A,t){A.addFieldOffset(2,t,0)}static createMetadataVector(A,t){A.startVector(1,t.length,1);for(let i=t.length-1;i>=0;i--)A.addInt8(t[i]);return A.endVector()}static startMetadataVector(A,t){A.startVector(1,t,1)}static endFileResponse(A){const t=A.endObject();return A.requiredField(t,4),A.requiredField(t,6),A.requiredField(t,8),t}static createFileResponse(A,t,i,s){return Tt.startFileResponse(A),Tt.addTarget(A,t),Tt.addContent(A,i),Tt.addMetadata(A,s),Tt.endFileResponse(A)}unpack(){return new xb(this.target(),this.content(),this.bb.createScalarList(this.metadata.bind(this),this.metadataLength()))}unpackTo(A){A.target=this.target(),A.content=this.content(),A.metadata=this.bb.createScalarList(this.metadata.bind(this),this.metadataLength())}}class xb{constructor(A=null,t=null,i=[]){X(this,"target");X(this,"content");X(this,"metadata");this.target=A,this.content=t,this.metadata=i}pack(A){const t=this.target!==null?A.createString(this.target):0,i=this.content!==null?A.createString(this.content):0,s=Tt.createMetadataVector(A,this.metadata);return Tt.createFileResponse(A,t,i,s)}}var Gt;(function(e){e[e.Client_Unique_FrameInfo_Request=0]="Client_Unique_FrameInfo_Request",e[e.Client_Tagged_FrameInfo_Request=1]="Client_Tagged_FrameInfo_Request",e[e.Server_Unique_FrameInfo_File_Response=2]="Server_Unique_FrameInfo_File_Response",e[e.Server_Tagged_FrameInfo_File_Response=3]="Server_Tagged_FrameInfo_File_Response",e[e.Server_Unique_FrameInfo_Content_Response=4]="Server_Unique_FrameInfo_Content_Response",e[e.Server_Tagged_FrameInfo_Content_Response=5]="Server_Tagged_FrameInfo_Content_Response",e[e.Client_File_Request=6]="Client_File_Request",e[e.Server_File_Response=7]="Server_File_Response",e[e.Client_File_Alias_Request=8]="Client_File_Alias_Request",e[e.Server_File_Alias_Response=9]="Server_File_Alias_Response",e[e.Client_Unique_FrameCache=10]="Client_Unique_FrameCache",e[e.Client_Tagged_FrameCache=11]="Client_Tagged_FrameCache",e[e.Client_Unique_Frame_Loaded=12]="Client_Unique_Frame_Loaded",e[e.Client_Tagged_Frame_Loaded=13]="Client_Tagged_Frame_Loaded",e[e.Client_Unique_Frame_Subscribe=14]="Client_Unique_Frame_Subscribe",e[e.Client_Tagged_Frame_Subscribe=15]="Client_Tagged_Frame_Subscribe",e[e.Client_Unique_Frame_Unsubscribe=16]="Client_Unique_Frame_Unsubscribe",e[e.Client_Tagged_Frame_Unsubscribe=17]="Client_Tagged_Frame_Unsubscribe",e[e.Client_Unique_Value_Request=18]="Client_Unique_Value_Request",e[e.Client_Tagged_Value_Request=19]="Client_Tagged_Value_Request",e[e.Server_Unique_Value_Response=20]="Server_Unique_Value_Response",e[e.Server_Tagged_Value_Response=21]="Server_Tagged_Value_Response",e[e.Unique_Value_Update=22]="Unique_Value_Update",e[e.Tagged_Value_Update=23]="Tagged_Value_Update",e[e.Client_Unique_Signal_Request=24]="Client_Unique_Signal_Request",e[e.Client_Tagged_Signal_Request=25]="Client_Tagged_Signal_Request",e[e.Server_Unique_Signal_Response=26]="Server_Unique_Signal_Response",e[e.Server_Tagged_Signal_Response=27]="Server_Tagged_Signal_Response",e[e.Client_Unique_Signal_Notify=28]="Client_Unique_Signal_Notify",e[e.Client_Tagged_Signal_Notify=29]="Client_Tagged_Signal_Notify"})(Gt||(Gt={}));class ns{constructor(){X(this,"bb",null);X(this,"bb_pos",0)}__init(A,t){return this.bb_pos=A,this.bb=t,this}static getRootAsTaggedFrameInfoRequest(A,t){return(t||new ns).__init(A.readInt32(A.position())+A.position(),A)}static getSizePrefixedRootAsTaggedFrameInfoRequest(A,t){return A.setPosition(A.position()+oi),(t||new ns).__init(A.readInt32(A.position())+A.position(),A)}id(A){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.__string(this.bb_pos+t,A):null}tag(A){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.__string(this.bb_pos+t,A):null}static startTaggedFrameInfoRequest(A){A.startObject(2)}static addId(A,t){A.addFieldOffset(0,t,0)}static addTag(A,t){A.addFieldOffset(1,t,0)}static endTaggedFrameInfoRequest(A){const t=A.endObject();return A.requiredField(t,4),A.requiredField(t,6),t}static createTaggedFrameInfoRequest(A,t,i){return ns.startTaggedFrameInfoRequest(A),ns.addId(A,t),ns.addTag(A,i),ns.endTaggedFrameInfoRequest(A)}unpack(){return new qp(this.id(),this.tag())}unpackTo(A){A.id=this.id(),A.tag=this.tag()}}class qp{constructor(A=null,t=null){X(this,"id");X(this,"tag");this.id=A,this.tag=t}pack(A){const t=this.id!==null?A.createString(this.id):0,i=this.tag!==null?A.createString(this.tag):0;return ns.createTaggedFrameInfoRequest(A,t,i)}}class Ot{constructor(){X(this,"bb",null);X(this,"bb_pos",0)}__init(A,t){return this.bb_pos=A,this.bb=t,this}static getRootAsTaggedFrameInfoResponse(A,t){return(t||new Ot).__init(A.readInt32(A.position())+A.position(),A)}static getSizePrefixedRootAsTaggedFrameInfoResponse(A,t){return A.setPosition(A.position()+oi),(t||new Ot).__init(A.readInt32(A.position())+A.position(),A)}id(A){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.__string(this.bb_pos+t,A):null}tag(A){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.__string(this.bb_pos+t,A):null}value(A){const t=this.bb.__offset(this.bb_pos,8);return t?this.bb.__string(this.bb_pos+t,A):null}static startTaggedFrameInfoResponse(A){A.startObject(3)}static addId(A,t){A.addFieldOffset(0,t,0)}static addTag(A,t){A.addFieldOffset(1,t,0)}static addValue(A,t){A.addFieldOffset(2,t,0)}static endTaggedFrameInfoResponse(A){const t=A.endObject();return A.requiredField(t,4),A.requiredField(t,6),A.requiredField(t,8),t}static createTaggedFrameInfoResponse(A,t,i,s){return Ot.startTaggedFrameInfoResponse(A),Ot.addId(A,t),Ot.addTag(A,i),Ot.addValue(A,s),Ot.endTaggedFrameInfoResponse(A)}unpack(){return new Hb(this.id(),this.tag(),this.value())}unpackTo(A){A.id=this.id(),A.tag=this.tag(),A.value=this.value()}}class Hb{constructor(A=null,t=null,i=null){X(this,"id");X(this,"tag");X(this,"value");this.id=A,this.tag=t,this.value=i}pack(A){const t=this.id!==null?A.createString(this.id):0,i=this.tag!==null?A.createString(this.tag):0,s=this.value!==null?A.createString(this.value):0;return Ot.createTaggedFrameInfoResponse(A,t,i,s)}}class Ys{constructor(){X(this,"bb",null);X(this,"bb_pos",0)}__init(A,t){return this.bb_pos=A,this.bb=t,this}static getRootAsUniqueFrameInfoRequest(A,t){return(t||new Ys).__init(A.readInt32(A.position())+A.position(),A)}static getSizePrefixedRootAsUniqueFrameInfoRequest(A,t){return A.setPosition(A.position()+oi),(t||new Ys).__init(A.readInt32(A.position())+A.position(),A)}id(A){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.__string(this.bb_pos+t,A):null}static startUniqueFrameInfoRequest(A){A.startObject(1)}static addId(A,t){A.addFieldOffset(0,t,0)}static endUniqueFrameInfoRequest(A){const t=A.endObject();return A.requiredField(t,4),t}static createUniqueFrameInfoRequest(A,t){return Ys.startUniqueFrameInfoRequest(A),Ys.addId(A,t),Ys.endUniqueFrameInfoRequest(A)}unpack(){return new xp(this.id())}unpackTo(A){A.id=this.id()}}class xp{constructor(A=null){X(this,"id");this.id=A}pack(A){const t=this.id!==null?A.createString(this.id):0;return Ys.createUniqueFrameInfoRequest(A,t)}}class Ci{constructor(){X(this,"bb",null);X(this,"bb_pos",0)}__init(A,t){return this.bb_pos=A,this.bb=t,this}static getRootAsUniqueFrameInfoResponse(A,t){return(t||new Ci).__init(A.readInt32(A.position())+A.position(),A)}static getSizePrefixedRootAsUniqueFrameInfoResponse(A,t){return A.setPosition(A.position()+oi),(t||new Ci).__init(A.readInt32(A.position())+A.position(),A)}id(A){const t=this.bb.__offset(this.bb_pos,4);return t?this.bb.__string(this.bb_pos+t,A):null}value(A){const t=this.bb.__offset(this.bb_pos,6);return t?this.bb.__string(this.bb_pos+t,A):null}static startUniqueFrameInfoResponse(A){A.startObject(2)}static addId(A,t){A.addFieldOffset(0,t,0)}static addValue(A,t){A.addFieldOffset(1,t,0)}static endUniqueFrameInfoResponse(A){const t=A.endObject();return A.requiredField(t,4),A.requiredField(t,6),t}static createUniqueFrameInfoResponse(A,t,i){return Ci.startUniqueFrameInfoResponse(A),Ci.addId(A,t),Ci.addValue(A,i),Ci.endUniqueFrameInfoResponse(A)}unpack(){return new Pb(this.id(),this.value())}unpackTo(A){A.id=this.id(),A.value=this.value()}}class Pb{constructor(A=null,t=null){X(this,"id");X(this,"value");this.id=A,this.value=t}pack(A){const t=this.id!==null?A.createString(this.id):0,i=this.value!==null?A.createString(this.value):0;return Ci.createUniqueFrameInfoResponse(A,t,i)}}var Tb=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,78,5,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,199,7,137,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,55,9,266,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239],Hp=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,7,25,39,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,5,57,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,24,43,261,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7381,42,31,98,114,8702,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,208,30,2,2,2,1,2,6,3,4,10,1,225,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4381,3,5773,3,7472,16,621,2467,541,1507,4938,6,8489],Ob="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ--ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・",Pp="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ--ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",Dc={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},mc="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",jb={5:mc,"5module":mc+" export import",6:mc+" const class extends export import super"},Tp=/^in(stanceof)?$/,Vb=new RegExp("["+Pp+"]"),$b=new RegExp("["+Pp+Ob+"]");function yc(e,A){for(var t=65536,i=0;i<A.length;i+=2){if(t+=A[i],t>e)return!1;if(t+=A[i+1],t>=e)return!0}return!1}function St(e,A){return e<65?e===36:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&Vb.test(String.fromCharCode(e)):A===!1?!1:yc(e,Hp)}function Bi(e,A){return e<48?e===36:e<58?!0:e<65?!1:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&$b.test(String.fromCharCode(e)):A===!1?!1:yc(e,Hp)||yc(e,Tb)}var _A=function(A,t){t===void 0&&(t={}),this.label=A,this.keyword=t.keyword,this.beforeExpr=!!t.beforeExpr,this.startsExpr=!!t.startsExpr,this.isLoop=!!t.isLoop,this.isAssign=!!t.isAssign,this.prefix=!!t.prefix,this.postfix=!!t.postfix,this.binop=t.binop||null,this.updateContext=null};function Mt(e,A){return new _A(e,{beforeExpr:!0,binop:A})}var Ft={beforeExpr:!0},It={startsExpr:!0},Kr={};function PA(e,A){return A===void 0&&(A={}),A.keyword=e,Kr[e]=new _A(e,A)}var F={num:new _A("num",It),regexp:new _A("regexp",It),string:new _A("string",It),name:new _A("name",It),privateId:new _A("privateId",It),eof:new _A("eof"),bracketL:new _A("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new _A("]"),braceL:new _A("{",{beforeExpr:!0,startsExpr:!0}),braceR:new _A("}"),parenL:new _A("(",{beforeExpr:!0,startsExpr:!0}),parenR:new _A(")"),comma:new _A(",",Ft),semi:new _A(";",Ft),colon:new _A(":",Ft),dot:new _A("."),question:new _A("?",Ft),questionDot:new _A("?."),arrow:new _A("=>",Ft),template:new _A("template"),invalidTemplate:new _A("invalidTemplate"),ellipsis:new _A("...",Ft),backQuote:new _A("`",It),dollarBraceL:new _A("${",{beforeExpr:!0,startsExpr:!0}),eq:new _A("=",{beforeExpr:!0,isAssign:!0}),assign:new _A("_=",{beforeExpr:!0,isAssign:!0}),incDec:new _A("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new _A("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:Mt("||",1),logicalAND:Mt("&&",2),bitwiseOR:Mt("|",3),bitwiseXOR:Mt("^",4),bitwiseAND:Mt("&",5),equality:Mt("==/!=/===/!==",6),relational:Mt("</>/<=/>=",7),bitShift:Mt("<</>>/>>>",8),plusMin:new _A("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:Mt("%",10),star:Mt("*",10),slash:Mt("/",10),starstar:new _A("**",{beforeExpr:!0}),coalesce:Mt("??",1),_break:PA("break"),_case:PA("case",Ft),_catch:PA("catch"),_continue:PA("continue"),_debugger:PA("debugger"),_default:PA("default",Ft),_do:PA("do",{isLoop:!0,beforeExpr:!0}),_else:PA("else",Ft),_finally:PA("finally"),_for:PA("for",{isLoop:!0}),_function:PA("function",It),_if:PA("if"),_return:PA("return",Ft),_switch:PA("switch"),_throw:PA("throw",Ft),_try:PA("try"),_var:PA("var"),_const:PA("const"),_while:PA("while",{isLoop:!0}),_with:PA("with"),_new:PA("new",{beforeExpr:!0,startsExpr:!0}),_this:PA("this",It),_super:PA("super",It),_class:PA("class",It),_extends:PA("extends",Ft),_export:PA("export"),_import:PA("import",It),_null:PA("null",It),_true:PA("true",It),_false:PA("false",It),_in:PA("in",{beforeExpr:!0,binop:7}),_instanceof:PA("instanceof",{beforeExpr:!0,binop:7}),_typeof:PA("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:PA("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:PA("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},et=/\r\n?|\n|\u2028|\u2029/,Op=new RegExp(et.source,"g");function Js(e){return e===10||e===13||e===8232||e===8233}function jp(e,A,t){t===void 0&&(t=e.length);for(var i=A;i<t;i++){var s=e.charCodeAt(i);if(Js(s))return i<t-1&&s===13&&e.charCodeAt(i+1)===10?i+2:i+1}return-1}var kc=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,ze=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,Vp=Object.prototype,Wb=Vp.hasOwnProperty,zb=Vp.toString,La=Object.hasOwn||(function(e,A){return Wb.call(e,A)}),$p=Array.isArray||(function(e){return zb.call(e)==="[object Array]"}),Wp=Object.create(null);function os(e){return Wp[e]||(Wp[e]=new RegExp("^(?:"+e.replace(/ /g,"|")+")$"))}function bi(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10)+55296,(e&1023)+56320))}var Zb=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,Ua=function(A,t){this.line=A,this.column=t};Ua.prototype.offset=function(A){return new Ua(this.line,this.column+A)};var qr=function(A,t,i){this.start=t,this.end=i,A.sourceFile!==null&&(this.source=A.sourceFile)};function Rc(e,A){for(var t=1,i=0;;){var s=jp(e,i,A);if(s<0)return new Ua(t,A-i);++t,i=s}}var SQ={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},zp=!1;function Xb(e){var A={};for(var t in SQ)A[t]=e&&La(e,t)?e[t]:SQ[t];if(A.ecmaVersion==="latest"?A.ecmaVersion=1e8:A.ecmaVersion==null?(!zp&&typeof console=="object"&&console.warn&&(zp=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
|
|
2
2
|
Defaulting to 2020, but this will stop working in the future.`)),A.ecmaVersion=11):A.ecmaVersion>=2015&&(A.ecmaVersion-=2009),A.allowReserved==null&&(A.allowReserved=A.ecmaVersion<5),(!e||e.allowHashBang==null)&&(A.allowHashBang=A.ecmaVersion>=14),$p(A.onToken)){var i=A.onToken;A.onToken=function(s){return i.push(s)}}if($p(A.onComment)&&(A.onComment=Av(A,A.onComment)),A.sourceType==="commonjs"&&A.allowAwaitOutsideFunction)throw new Error("Cannot use allowAwaitOutsideFunction with sourceType: commonjs");return A}function Av(e,A){return function(t,i,s,a,r,g){var n={type:t?"Block":"Line",value:i,start:s,end:a};e.locations&&(n.loc=new qr(this,r,g)),e.ranges&&(n.range=[s,a]),A.push(n)}}var _s=1,Ks=2,Nc=4,Zp=8,Gc=16,Xp=32,MQ=64,Af=128,qs=256,xr=512,ef=1024,FQ=_s|Ks|qs;function Sc(e,A){return Ks|(e?Nc:0)|(A?Zp:0)}var bQ=0,Mc=1,vi=2,tf=3,sf=4,af=5,ke=function(A,t,i){this.options=A=Xb(A),this.sourceFile=A.sourceFile,this.keywords=os(jb[A.ecmaVersion>=6?6:A.sourceType==="module"?"5module":5]);var s="";A.allowReserved!==!0&&(s=Dc[A.ecmaVersion>=6?6:A.ecmaVersion===5?5:3],A.sourceType==="module"&&(s+=" await")),this.reservedWords=os(s);var a=(s?s+" ":"")+Dc.strict;this.reservedWordsStrict=os(a),this.reservedWordsStrictBind=os(a+" "+Dc.strictBind),this.input=String(t),this.containsEsc=!1,i?(this.pos=i,this.lineStart=this.input.lastIndexOf(`
|
|
3
3
|
`,i-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(et).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=F.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule=A.sourceType==="module",this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),this.pos===0&&A.allowHashBang&&this.input.slice(0,2)==="#!"&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(this.options.sourceType==="commonjs"?Ks:_s),this.regexpState=null,this.privateNameStack=[]},bt={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowReturn:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},allowUsing:{configurable:!0},inClassStaticBlock:{configurable:!0}};ke.prototype.parse=function(){var A=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(A)},bt.inFunction.get=function(){return(this.currentVarScope().flags&Ks)>0},bt.inGenerator.get=function(){return(this.currentVarScope().flags&Zp)>0},bt.inAsync.get=function(){return(this.currentVarScope().flags&Nc)>0},bt.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var A=this.scopeStack[e],t=A.flags;if(t&(qs|xr))return!1;if(t&Ks)return(t&Nc)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},bt.allowReturn.get=function(){return!!(this.inFunction||this.options.allowReturnOutsideFunction&&this.currentVarScope().flags&_s)},bt.allowSuper.get=function(){var e=this.currentThisScope(),A=e.flags;return(A&MQ)>0||this.options.allowSuperOutsideMethod},bt.allowDirectSuper.get=function(){return(this.currentThisScope().flags&Af)>0},bt.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},bt.allowNewDotTarget.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var A=this.scopeStack[e],t=A.flags;if(t&(qs|xr)||t&Ks&&!(t&Gc))return!0}return!1},bt.allowUsing.get=function(){var e=this.currentScope(),A=e.flags;return!(A&ef||!this.inModule&&A&_s)},bt.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&qs)>0},ke.extend=function(){for(var A=[],t=arguments.length;t--;)A[t]=arguments[t];for(var i=this,s=0;s<A.length;s++)i=A[s](i);return i},ke.parse=function(A,t){return new this(t,A).parse()},ke.parseExpressionAt=function(A,t,i){var s=new this(i,A,t);return s.nextToken(),s.parseExpression()},ke.tokenizer=function(A,t){return new this(t,A)},Object.defineProperties(ke.prototype,bt);var tt=ke.prototype,ev=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;tt.strictDirective=function(e){if(this.options.ecmaVersion<5)return!1;for(;;){ze.lastIndex=e,e+=ze.exec(this.input)[0].length;var A=ev.exec(this.input.slice(e));if(!A)return!1;if((A[1]||A[2])==="use strict"){ze.lastIndex=e+A[0].length;var t=ze.exec(this.input),i=t.index+t[0].length,s=this.input.charAt(i);return s===";"||s==="}"||et.test(t[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(s)||s==="!"&&this.input.charAt(i+1)==="=")}e+=A[0].length,ze.lastIndex=e,e+=ze.exec(this.input)[0].length,this.input[e]===";"&&e++}},tt.eat=function(e){return this.type===e?(this.next(),!0):!1},tt.isContextual=function(e){return this.type===F.name&&this.value===e&&!this.containsEsc},tt.eatContextual=function(e){return this.isContextual(e)?(this.next(),!0):!1},tt.expectContextual=function(e){this.eatContextual(e)||this.unexpected()},tt.canInsertSemicolon=function(){return this.type===F.eof||this.type===F.braceR||et.test(this.input.slice(this.lastTokEnd,this.start))},tt.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},tt.semicolon=function(){!this.eat(F.semi)&&!this.insertSemicolon()&&this.unexpected()},tt.afterTrailingComma=function(e,A){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),A||this.next(),!0},tt.expect=function(e){this.eat(e)||this.unexpected()},tt.unexpected=function(e){this.raise(e??this.start,"Unexpected token")};var vQ=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};tt.checkPatternErrors=function(e,A){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element");var t=A?e.parenthesizedAssign:e.parenthesizedBind;t>-1&&this.raiseRecoverable(t,A?"Assigning to rvalue":"Parenthesized pattern")}},tt.checkExpressionErrors=function(e,A){if(!e)return!1;var t=e.shorthandAssign,i=e.doubleProto;if(!A)return t>=0||i>=0;t>=0&&this.raise(t,"Shorthand property assignments are valid only in destructuring patterns"),i>=0&&this.raiseRecoverable(i,"Redefinition of __proto__ property")},tt.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")},tt.isSimpleAssignTarget=function(e){return e.type==="ParenthesizedExpression"?this.isSimpleAssignTarget(e.expression):e.type==="Identifier"||e.type==="MemberExpression"};var uA=ke.prototype;uA.parseTopLevel=function(e){var A=Object.create(null);for(e.body||(e.body=[]);this.type!==F.eof;){var t=this.parseStatement(null,!0,A);e.body.push(t)}if(this.inModule)for(var i=0,s=Object.keys(this.undefinedExports);i<s.length;i+=1){var a=s[i];this.raiseRecoverable(this.undefinedExports[a].start,"Export '"+a+"' is not defined")}return this.adaptDirectivePrologue(e.body),this.next(),e.sourceType=this.options.sourceType==="commonjs"?"script":this.options.sourceType,this.finishNode(e,"Program")};var Fc={kind:"loop"},tv={kind:"switch"};uA.isLet=function(e){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;ze.lastIndex=this.pos;var A=ze.exec(this.input),t=this.pos+A[0].length,i=this.fullCharCodeAt(t);if(i===91||i===92)return!0;if(e)return!1;if(i===123)return!0;if(St(i)){var s=t;do t+=i<=65535?1:2;while(Bi(i=this.fullCharCodeAt(t)));if(i===92)return!0;var a=this.input.slice(s,t);if(!Tp.test(a))return!0}return!1},uA.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;ze.lastIndex=this.pos;var e=ze.exec(this.input),A=this.pos+e[0].length,t;return!et.test(this.input.slice(this.pos,A))&&this.input.slice(A,A+8)==="function"&&(A+8===this.input.length||!(Bi(t=this.fullCharCodeAt(A+8))||t===92))},uA.isUsingKeyword=function(e,A){if(this.options.ecmaVersion<17||!this.isContextual(e?"await":"using"))return!1;ze.lastIndex=this.pos;var t=ze.exec(this.input),i=this.pos+t[0].length;if(et.test(this.input.slice(this.pos,i)))return!1;if(e){var s=i+5,a;if(this.input.slice(i,s)!=="using"||s===this.input.length||Bi(a=this.fullCharCodeAt(s))||a===92)return!1;ze.lastIndex=s;var r=ze.exec(this.input);if(i=s+r[0].length,r&&et.test(this.input.slice(s,i)))return!1}var g=this.fullCharCodeAt(i);if(!St(g)&&g!==92)return!1;var n=i;do i+=g<=65535?1:2;while(Bi(g=this.fullCharCodeAt(i)));if(g===92)return!0;var C=this.input.slice(n,i);return!(Tp.test(C)||A&&C==="of")},uA.isAwaitUsing=function(e){return this.isUsingKeyword(!0,e)},uA.isUsing=function(e){return this.isUsingKeyword(!1,e)},uA.parseStatement=function(e,A,t){var i=this.type,s=this.startNode(),a;switch(this.isLet(e)&&(i=F._var,a="let"),i){case F._break:case F._continue:return this.parseBreakContinueStatement(s,i.keyword);case F._debugger:return this.parseDebuggerStatement(s);case F._do:return this.parseDoStatement(s);case F._for:return this.parseForStatement(s);case F._function:return e&&(this.strict||e!=="if"&&e!=="label")&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(s,!1,!e);case F._class:return e&&this.unexpected(),this.parseClass(s,!0);case F._if:return this.parseIfStatement(s);case F._return:return this.parseReturnStatement(s);case F._switch:return this.parseSwitchStatement(s);case F._throw:return this.parseThrowStatement(s);case F._try:return this.parseTryStatement(s);case F._const:case F._var:return a=a||this.value,e&&a!=="var"&&this.unexpected(),this.parseVarStatement(s,a);case F._while:return this.parseWhileStatement(s);case F._with:return this.parseWithStatement(s);case F.braceL:return this.parseBlock(!0,s);case F.semi:return this.parseEmptyStatement(s);case F._export:case F._import:if(this.options.ecmaVersion>10&&i===F._import){ze.lastIndex=this.pos;var r=ze.exec(this.input),g=this.pos+r[0].length,n=this.input.charCodeAt(g);if(n===40||n===46)return this.parseExpressionStatement(s,this.parseExpression())}return this.options.allowImportExportEverywhere||(A||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),i===F._import?this.parseImport(s):this.parseExport(s,t);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(s,!0,!e);var C=this.isAwaitUsing(!1)?"await using":this.isUsing(!1)?"using":null;if(C)return this.allowUsing||this.raise(this.start,"Using declaration cannot appear in the top level when source type is `script` or in the bare case statement"),C==="await using"&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.next(),this.parseVar(s,!1,C),this.semicolon(),this.finishNode(s,"VariableDeclaration");var B=this.value,E=this.parseExpression();return i===F.name&&E.type==="Identifier"&&this.eat(F.colon)?this.parseLabeledStatement(s,B,E,e):this.parseExpressionStatement(s,E)}},uA.parseBreakContinueStatement=function(e,A){var t=A==="break";this.next(),this.eat(F.semi)||this.insertSemicolon()?e.label=null:this.type!==F.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var i=0;i<this.labels.length;++i){var s=this.labels[i];if((e.label==null||s.name===e.label.name)&&(s.kind!=null&&(t||s.kind==="loop")||e.label&&t))break}return i===this.labels.length&&this.raise(e.start,"Unsyntactic "+A),this.finishNode(e,t?"BreakStatement":"ContinueStatement")},uA.parseDebuggerStatement=function(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")},uA.parseDoStatement=function(e){return this.next(),this.labels.push(Fc),e.body=this.parseStatement("do"),this.labels.pop(),this.expect(F._while),e.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(F.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")},uA.parseForStatement=function(e){this.next();var A=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(Fc),this.enterScope(0),this.expect(F.parenL),this.type===F.semi)return A>-1&&this.unexpected(A),this.parseFor(e,null);var t=this.isLet();if(this.type===F._var||this.type===F._const||t){var i=this.startNode(),s=t?"let":this.value;return this.next(),this.parseVar(i,!0,s),this.finishNode(i,"VariableDeclaration"),this.parseForAfterInit(e,i,A)}var a=this.isContextual("let"),r=!1,g=this.isUsing(!0)?"using":this.isAwaitUsing(!0)?"await using":null;if(g){var n=this.startNode();return this.next(),g==="await using"&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.parseVar(n,!0,g),this.finishNode(n,"VariableDeclaration"),this.parseForAfterInit(e,n,A)}var C=this.containsEsc,B=new vQ,E=this.start,o=A>-1?this.parseExprSubscripts(B,"await"):this.parseExpression(!0,B);return this.type===F._in||(r=this.options.ecmaVersion>=6&&this.isContextual("of"))?(A>-1?(this.type===F._in&&this.unexpected(A),e.await=!0):r&&this.options.ecmaVersion>=8&&(o.start===E&&!C&&o.type==="Identifier"&&o.name==="async"?this.unexpected():this.options.ecmaVersion>=9&&(e.await=!1)),a&&r&&this.raise(o.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(o,!1,B),this.checkLValPattern(o),this.parseForIn(e,o)):(this.checkExpressionErrors(B,!0),A>-1&&this.unexpected(A),this.parseFor(e,o))},uA.parseForAfterInit=function(e,A,t){return(this.type===F._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&A.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===F._in?t>-1&&this.unexpected(t):e.await=t>-1),this.parseForIn(e,A)):(t>-1&&this.unexpected(t),this.parseFor(e,A))},uA.parseFunctionStatement=function(e,A,t){return this.next(),this.parseFunction(e,Hr|(t?0:bc),!1,A)},uA.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(F._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")},uA.parseReturnStatement=function(e){return this.allowReturn||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(F.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")},uA.parseSwitchStatement=function(e){this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(F.braceL),this.labels.push(tv),this.enterScope(ef);for(var A,t=!1;this.type!==F.braceR;)if(this.type===F._case||this.type===F._default){var i=this.type===F._case;A&&this.finishNode(A,"SwitchCase"),e.cases.push(A=this.startNode()),A.consequent=[],this.next(),i?A.test=this.parseExpression():(t&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),t=!0,A.test=null),this.expect(F.colon)}else A||this.unexpected(),A.consequent.push(this.parseStatement(null));return this.exitScope(),A&&this.finishNode(A,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(e,"SwitchStatement")},uA.parseThrowStatement=function(e){return this.next(),et.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")};var iv=[];uA.parseCatchClauseParam=function(){var e=this.parseBindingAtom(),A=e.type==="Identifier";return this.enterScope(A?Xp:0),this.checkLValPattern(e,A?sf:vi),this.expect(F.parenR),e},uA.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===F._catch){var A=this.startNode();this.next(),this.eat(F.parenL)?A.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),A.param=null,this.enterScope(0)),A.body=this.parseBlock(!1),this.exitScope(),e.handler=this.finishNode(A,"CatchClause")}return e.finalizer=this.eat(F._finally)?this.parseBlock():null,!e.handler&&!e.finalizer&&this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")},uA.parseVarStatement=function(e,A,t){return this.next(),this.parseVar(e,!1,A,t),this.semicolon(),this.finishNode(e,"VariableDeclaration")},uA.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(Fc),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")},uA.parseWithStatement=function(e){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement("with"),this.finishNode(e,"WithStatement")},uA.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")},uA.parseLabeledStatement=function(e,A,t,i){for(var s=0,a=this.labels;s<a.length;s+=1){var r=a[s];r.name===A&&this.raise(t.start,"Label '"+A+"' is already declared")}for(var g=this.type.isLoop?"loop":this.type===F._switch?"switch":null,n=this.labels.length-1;n>=0;n--){var C=this.labels[n];if(C.statementStart===e.start)C.statementStart=this.start,C.kind=g;else break}return this.labels.push({name:A,kind:g,statementStart:this.start}),e.body=this.parseStatement(i?i.indexOf("label")===-1?i+"label":i:"label"),this.labels.pop(),e.label=t,this.finishNode(e,"LabeledStatement")},uA.parseExpressionStatement=function(e,A){return e.expression=A,this.semicolon(),this.finishNode(e,"ExpressionStatement")},uA.parseBlock=function(e,A,t){for(e===void 0&&(e=!0),A===void 0&&(A=this.startNode()),A.body=[],this.expect(F.braceL),e&&this.enterScope(0);this.type!==F.braceR;){var i=this.parseStatement(null);A.body.push(i)}return t&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(A,"BlockStatement")},uA.parseFor=function(e,A){return e.init=A,this.expect(F.semi),e.test=this.type===F.semi?null:this.parseExpression(),this.expect(F.semi),e.update=this.type===F.parenR?null:this.parseExpression(),this.expect(F.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,"ForStatement")},uA.parseForIn=function(e,A){var t=this.type===F._in;return this.next(),A.type==="VariableDeclaration"&&A.declarations[0].init!=null&&(!t||this.options.ecmaVersion<8||this.strict||A.kind!=="var"||A.declarations[0].id.type!=="Identifier")&&this.raise(A.start,(t?"for-in":"for-of")+" loop variable declaration may not have an initializer"),e.left=A,e.right=t?this.parseExpression():this.parseMaybeAssign(),this.expect(F.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,t?"ForInStatement":"ForOfStatement")},uA.parseVar=function(e,A,t,i){for(e.declarations=[],e.kind=t;;){var s=this.startNode();if(this.parseVarId(s,t),this.eat(F.eq)?s.init=this.parseMaybeAssign(A):!i&&t==="const"&&!(this.type===F._in||this.options.ecmaVersion>=6&&this.isContextual("of"))?this.unexpected():!i&&(t==="using"||t==="await using")&&this.options.ecmaVersion>=17&&this.type!==F._in&&!this.isContextual("of")?this.raise(this.lastTokEnd,"Missing initializer in "+t+" declaration"):!i&&s.id.type!=="Identifier"&&!(A&&(this.type===F._in||this.isContextual("of")))?this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):s.init=null,e.declarations.push(this.finishNode(s,"VariableDeclarator")),!this.eat(F.comma))break}return e},uA.parseVarId=function(e,A){e.id=A==="using"||A==="await using"?this.parseIdent():this.parseBindingAtom(),this.checkLValPattern(e.id,A==="var"?Mc:vi,!1)};var Hr=1,bc=2,rf=4;uA.parseFunction=function(e,A,t,i,s){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!i)&&(this.type===F.star&&A&bc&&this.unexpected(),e.generator=this.eat(F.star)),this.options.ecmaVersion>=8&&(e.async=!!i),A&Hr&&(e.id=A&rf&&this.type!==F.name?null:this.parseIdent(),e.id&&!(A&bc)&&this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?Mc:vi:tf));var a=this.yieldPos,r=this.awaitPos,g=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Sc(e.async,e.generator)),A&Hr||(e.id=this.type===F.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,t,!1,s),this.yieldPos=a,this.awaitPos=r,this.awaitIdentPos=g,this.finishNode(e,A&Hr?"FunctionDeclaration":"FunctionExpression")},uA.parseFunctionParams=function(e){this.expect(F.parenL),e.params=this.parseBindingList(F.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},uA.parseClass=function(e,A){this.next();var t=this.strict;this.strict=!0,this.parseClassId(e,A),this.parseClassSuper(e);var i=this.enterClassBody(),s=this.startNode(),a=!1;for(s.body=[],this.expect(F.braceL);this.type!==F.braceR;){var r=this.parseClassElement(e.superClass!==null);r&&(s.body.push(r),r.type==="MethodDefinition"&&r.kind==="constructor"?(a&&this.raiseRecoverable(r.start,"Duplicate constructor in the same class"),a=!0):r.key&&r.key.type==="PrivateIdentifier"&&sv(i,r)&&this.raiseRecoverable(r.key.start,"Identifier '#"+r.key.name+"' has already been declared"))}return this.strict=t,this.next(),e.body=this.finishNode(s,"ClassBody"),this.exitClassBody(),this.finishNode(e,A?"ClassDeclaration":"ClassExpression")},uA.parseClassElement=function(e){if(this.eat(F.semi))return null;var A=this.options.ecmaVersion,t=this.startNode(),i="",s=!1,a=!1,r="method",g=!1;if(this.eatContextual("static")){if(A>=13&&this.eat(F.braceL))return this.parseClassStaticBlock(t),t;this.isClassElementNameStart()||this.type===F.star?g=!0:i="static"}if(t.static=g,!i&&A>=8&&this.eatContextual("async")&&((this.isClassElementNameStart()||this.type===F.star)&&!this.canInsertSemicolon()?a=!0:i="async"),!i&&(A>=9||!a)&&this.eat(F.star)&&(s=!0),!i&&!a&&!s){var n=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?r=n:i=n)}if(i?(t.computed=!1,t.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),t.key.name=i,this.finishNode(t.key,"Identifier")):this.parseClassElementName(t),A<13||this.type===F.parenL||r!=="method"||s||a){var C=!t.static&&LQ(t,"constructor"),B=C&&e;C&&r!=="method"&&this.raise(t.key.start,"Constructor can't have get/set modifier"),t.kind=C?"constructor":r,this.parseClassMethod(t,s,a,B)}else this.parseClassField(t);return t},uA.isClassElementNameStart=function(){return this.type===F.name||this.type===F.privateId||this.type===F.num||this.type===F.string||this.type===F.bracketL||this.type.keyword},uA.parseClassElementName=function(e){this.type===F.privateId?(this.value==="constructor"&&this.raise(this.start,"Classes can't have an element named '#constructor'"),e.computed=!1,e.key=this.parsePrivateIdent()):this.parsePropertyName(e)},uA.parseClassMethod=function(e,A,t,i){var s=e.key;e.kind==="constructor"?(A&&this.raise(s.start,"Constructor can't be a generator"),t&&this.raise(s.start,"Constructor can't be an async method")):e.static&&LQ(e,"prototype")&&this.raise(s.start,"Classes may not have a static property named prototype");var a=e.value=this.parseMethod(A,t,i);return e.kind==="get"&&a.params.length!==0&&this.raiseRecoverable(a.start,"getter should have no params"),e.kind==="set"&&a.params.length!==1&&this.raiseRecoverable(a.start,"setter should have exactly one param"),e.kind==="set"&&a.params[0].type==="RestElement"&&this.raiseRecoverable(a.params[0].start,"Setter cannot use rest params"),this.finishNode(e,"MethodDefinition")},uA.parseClassField=function(e){return LQ(e,"constructor")?this.raise(e.key.start,"Classes can't have a field named 'constructor'"):e.static&&LQ(e,"prototype")&&this.raise(e.key.start,"Classes can't have a static field named 'prototype'"),this.eat(F.eq)?(this.enterScope(xr|MQ),e.value=this.parseMaybeAssign(),this.exitScope()):e.value=null,this.semicolon(),this.finishNode(e,"PropertyDefinition")},uA.parseClassStaticBlock=function(e){e.body=[];var A=this.labels;for(this.labels=[],this.enterScope(qs|MQ);this.type!==F.braceR;){var t=this.parseStatement(null);e.body.push(t)}return this.next(),this.exitScope(),this.labels=A,this.finishNode(e,"StaticBlock")},uA.parseClassId=function(e,A){this.type===F.name?(e.id=this.parseIdent(),A&&this.checkLValSimple(e.id,vi,!1)):(A===!0&&this.unexpected(),e.id=null)},uA.parseClassSuper=function(e){e.superClass=this.eat(F._extends)?this.parseExprSubscripts(null,!1):null},uA.enterClassBody=function(){var e={declared:Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared},uA.exitClassBody=function(){var e=this.privateNameStack.pop(),A=e.declared,t=e.used;if(this.options.checkPrivateFields)for(var i=this.privateNameStack.length,s=i===0?null:this.privateNameStack[i-1],a=0;a<t.length;++a){var r=t[a];La(A,r.name)||(s?s.used.push(r):this.raiseRecoverable(r.start,"Private field '#"+r.name+"' must be declared in an enclosing class"))}};function sv(e,A){var t=A.key.name,i=e[t],s="true";return A.type==="MethodDefinition"&&(A.kind==="get"||A.kind==="set")&&(s=(A.static?"s":"i")+A.kind),i==="iget"&&s==="iset"||i==="iset"&&s==="iget"||i==="sget"&&s==="sset"||i==="sset"&&s==="sget"?(e[t]="true",!1):i?!0:(e[t]=s,!1)}function LQ(e,A){var t=e.computed,i=e.key;return!t&&(i.type==="Identifier"&&i.name===A||i.type==="Literal"&&i.value===A)}uA.parseExportAllDeclaration=function(e,A){return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(e.exported=this.parseModuleExportName(),this.checkExport(A,e.exported,this.lastTokStart)):e.exported=null),this.expectContextual("from"),this.type!==F.string&&this.unexpected(),e.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(e,"ExportAllDeclaration")},uA.parseExport=function(e,A){if(this.next(),this.eat(F.star))return this.parseExportAllDeclaration(e,A);if(this.eat(F._default))return this.checkExport(A,"default",this.lastTokStart),e.declaration=this.parseExportDefaultDeclaration(),this.finishNode(e,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())e.declaration=this.parseExportDeclaration(e),e.declaration.type==="VariableDeclaration"?this.checkVariableExport(A,e.declaration.declarations):this.checkExport(A,e.declaration.id,e.declaration.id.start),e.specifiers=[],e.source=null,this.options.ecmaVersion>=16&&(e.attributes=[]);else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(A),this.eatContextual("from"))this.type!==F.string&&this.unexpected(),e.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause());else{for(var t=0,i=e.specifiers;t<i.length;t+=1){var s=i[t];this.checkUnreserved(s.local),this.checkLocalExport(s.local),s.local.type==="Literal"&&this.raise(s.local.start,"A string literal cannot be used as an exported binding without `from`.")}e.source=null,this.options.ecmaVersion>=16&&(e.attributes=[])}this.semicolon()}return this.finishNode(e,"ExportNamedDeclaration")},uA.parseExportDeclaration=function(e){return this.parseStatement(null)},uA.parseExportDefaultDeclaration=function(){var e;if(this.type===F._function||(e=this.isAsyncFunction())){var A=this.startNode();return this.next(),e&&this.next(),this.parseFunction(A,Hr|rf,!1,e)}else if(this.type===F._class){var t=this.startNode();return this.parseClass(t,"nullableID")}else{var i=this.parseMaybeAssign();return this.semicolon(),i}},uA.checkExport=function(e,A,t){e&&(typeof A!="string"&&(A=A.type==="Identifier"?A.name:A.value),La(e,A)&&this.raiseRecoverable(t,"Duplicate export '"+A+"'"),e[A]=!0)},uA.checkPatternExport=function(e,A){var t=A.type;if(t==="Identifier")this.checkExport(e,A,A.start);else if(t==="ObjectPattern")for(var i=0,s=A.properties;i<s.length;i+=1){var a=s[i];this.checkPatternExport(e,a)}else if(t==="ArrayPattern")for(var r=0,g=A.elements;r<g.length;r+=1){var n=g[r];n&&this.checkPatternExport(e,n)}else t==="Property"?this.checkPatternExport(e,A.value):t==="AssignmentPattern"?this.checkPatternExport(e,A.left):t==="RestElement"&&this.checkPatternExport(e,A.argument)},uA.checkVariableExport=function(e,A){if(e)for(var t=0,i=A;t<i.length;t+=1){var s=i[t];this.checkPatternExport(e,s.id)}},uA.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()},uA.parseExportSpecifier=function(e){var A=this.startNode();return A.local=this.parseModuleExportName(),A.exported=this.eatContextual("as")?this.parseModuleExportName():A.local,this.checkExport(e,A.exported,A.exported.start),this.finishNode(A,"ExportSpecifier")},uA.parseExportSpecifiers=function(e){var A=[],t=!0;for(this.expect(F.braceL);!this.eat(F.braceR);){if(t)t=!1;else if(this.expect(F.comma),this.afterTrailingComma(F.braceR))break;A.push(this.parseExportSpecifier(e))}return A},uA.parseImport=function(e){return this.next(),this.type===F.string?(e.specifiers=iv,e.source=this.parseExprAtom()):(e.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),e.source=this.type===F.string?this.parseExprAtom():this.unexpected()),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(e,"ImportDeclaration")},uA.parseImportSpecifier=function(){var e=this.startNode();return e.imported=this.parseModuleExportName(),this.eatContextual("as")?e.local=this.parseIdent():(this.checkUnreserved(e.imported),e.local=e.imported),this.checkLValSimple(e.local,vi),this.finishNode(e,"ImportSpecifier")},uA.parseImportDefaultSpecifier=function(){var e=this.startNode();return e.local=this.parseIdent(),this.checkLValSimple(e.local,vi),this.finishNode(e,"ImportDefaultSpecifier")},uA.parseImportNamespaceSpecifier=function(){var e=this.startNode();return this.next(),this.expectContextual("as"),e.local=this.parseIdent(),this.checkLValSimple(e.local,vi),this.finishNode(e,"ImportNamespaceSpecifier")},uA.parseImportSpecifiers=function(){var e=[],A=!0;if(this.type===F.name&&(e.push(this.parseImportDefaultSpecifier()),!this.eat(F.comma)))return e;if(this.type===F.star)return e.push(this.parseImportNamespaceSpecifier()),e;for(this.expect(F.braceL);!this.eat(F.braceR);){if(A)A=!1;else if(this.expect(F.comma),this.afterTrailingComma(F.braceR))break;e.push(this.parseImportSpecifier())}return e},uA.parseWithClause=function(){var e=[];if(!this.eat(F._with))return e;this.expect(F.braceL);for(var A={},t=!0;!this.eat(F.braceR);){if(t)t=!1;else if(this.expect(F.comma),this.afterTrailingComma(F.braceR))break;var i=this.parseImportAttribute(),s=i.key.type==="Identifier"?i.key.name:i.key.value;La(A,s)&&this.raiseRecoverable(i.key.start,"Duplicate attribute key '"+s+"'"),A[s]=!0,e.push(i)}return e},uA.parseImportAttribute=function(){var e=this.startNode();return e.key=this.type===F.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never"),this.expect(F.colon),this.type!==F.string&&this.unexpected(),e.value=this.parseExprAtom(),this.finishNode(e,"ImportAttribute")},uA.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===F.string){var e=this.parseLiteral(this.value);return Zb.test(e.value)&&this.raise(e.start,"An export name cannot include a lone surrogate."),e}return this.parseIdent(!0)},uA.adaptDirectivePrologue=function(e){for(var A=0;A<e.length&&this.isDirectiveCandidate(e[A]);++A)e[A].directive=e[A].expression.raw.slice(1,-1)},uA.isDirectiveCandidate=function(e){return this.options.ecmaVersion>=5&&e.type==="ExpressionStatement"&&e.expression.type==="Literal"&&typeof e.expression.value=="string"&&(this.input[e.start]==='"'||this.input[e.start]==="'")};var vt=ke.prototype;vt.toAssignable=function(e,A,t){if(this.options.ecmaVersion>=6&&e)switch(e.type){case"Identifier":this.inAsync&&e.name==="await"&&this.raise(e.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern",t&&this.checkPatternErrors(t,!0);for(var i=0,s=e.properties;i<s.length;i+=1){var a=s[i];this.toAssignable(a,A),a.type==="RestElement"&&(a.argument.type==="ArrayPattern"||a.argument.type==="ObjectPattern")&&this.raise(a.argument.start,"Unexpected token")}break;case"Property":e.kind!=="init"&&this.raise(e.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(e.value,A);break;case"ArrayExpression":e.type="ArrayPattern",t&&this.checkPatternErrors(t,!0),this.toAssignableList(e.elements,A);break;case"SpreadElement":e.type="RestElement",this.toAssignable(e.argument,A),e.argument.type==="AssignmentPattern"&&this.raise(e.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":e.operator!=="="&&this.raise(e.left.end,"Only '=' operator can be used for specifying default value."),e.type="AssignmentPattern",delete e.operator,this.toAssignable(e.left,A);break;case"ParenthesizedExpression":this.toAssignable(e.expression,A,t);break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!A)break;default:this.raise(e.start,"Assigning to rvalue")}else t&&this.checkPatternErrors(t,!0);return e},vt.toAssignableList=function(e,A){for(var t=e.length,i=0;i<t;i++){var s=e[i];s&&this.toAssignable(s,A)}if(t){var a=e[t-1];this.options.ecmaVersion===6&&A&&a&&a.type==="RestElement"&&a.argument.type!=="Identifier"&&this.unexpected(a.argument.start)}return e},vt.parseSpread=function(e){var A=this.startNode();return this.next(),A.argument=this.parseMaybeAssign(!1,e),this.finishNode(A,"SpreadElement")},vt.parseRestBinding=function(){var e=this.startNode();return this.next(),this.options.ecmaVersion===6&&this.type!==F.name&&this.unexpected(),e.argument=this.parseBindingAtom(),this.finishNode(e,"RestElement")},vt.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case F.bracketL:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(F.bracketR,!0,!0),this.finishNode(e,"ArrayPattern");case F.braceL:return this.parseObj(!0)}return this.parseIdent()},vt.parseBindingList=function(e,A,t,i){for(var s=[],a=!0;!this.eat(e);)if(a?a=!1:this.expect(F.comma),A&&this.type===F.comma)s.push(null);else{if(t&&this.afterTrailingComma(e))break;if(this.type===F.ellipsis){var r=this.parseRestBinding();this.parseBindingListItem(r),s.push(r),this.type===F.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.expect(e);break}else s.push(this.parseAssignableListItem(i))}return s},vt.parseAssignableListItem=function(e){var A=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(A),A},vt.parseBindingListItem=function(e){return e},vt.parseMaybeDefault=function(e,A,t){if(t=t||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(F.eq))return t;var i=this.startNodeAt(e,A);return i.left=t,i.right=this.parseMaybeAssign(),this.finishNode(i,"AssignmentPattern")},vt.checkLValSimple=function(e,A,t){A===void 0&&(A=bQ);var i=A!==bQ;switch(e.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(e.name)&&this.raiseRecoverable(e.start,(i?"Binding ":"Assigning to ")+e.name+" in strict mode"),i&&(A===vi&&e.name==="let"&&this.raiseRecoverable(e.start,"let is disallowed as a lexically bound name"),t&&(La(t,e.name)&&this.raiseRecoverable(e.start,"Argument name clash"),t[e.name]=!0),A!==af&&this.declareName(e.name,A,e.start));break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":i&&this.raiseRecoverable(e.start,"Binding member expression");break;case"ParenthesizedExpression":return i&&this.raiseRecoverable(e.start,"Binding parenthesized expression"),this.checkLValSimple(e.expression,A,t);default:this.raise(e.start,(i?"Binding":"Assigning to")+" rvalue")}},vt.checkLValPattern=function(e,A,t){switch(A===void 0&&(A=bQ),e.type){case"ObjectPattern":for(var i=0,s=e.properties;i<s.length;i+=1){var a=s[i];this.checkLValInnerPattern(a,A,t)}break;case"ArrayPattern":for(var r=0,g=e.elements;r<g.length;r+=1){var n=g[r];n&&this.checkLValInnerPattern(n,A,t)}break;default:this.checkLValSimple(e,A,t)}},vt.checkLValInnerPattern=function(e,A,t){switch(A===void 0&&(A=bQ),e.type){case"Property":this.checkLValInnerPattern(e.value,A,t);break;case"AssignmentPattern":this.checkLValPattern(e.left,A,t);break;case"RestElement":this.checkLValPattern(e.argument,A,t);break;default:this.checkLValPattern(e,A,t)}};var it=function(A,t,i,s,a){this.token=A,this.isExpr=!!t,this.preserveSpace=!!i,this.override=s,this.generator=!!a},ce={b_stat:new it("{",!1),b_expr:new it("{",!0),b_tmpl:new it("${",!1),p_stat:new it("(",!1),p_expr:new it("(",!0),q_tmpl:new it("`",!0,!0,function(e){return e.tryReadTemplateToken()}),f_stat:new it("function",!1),f_expr:new it("function",!0),f_expr_gen:new it("function",!0,!1,null,!0),f_gen:new it("function",!1,!1,null,!0)},Ya=ke.prototype;Ya.initialContext=function(){return[ce.b_stat]},Ya.curContext=function(){return this.context[this.context.length-1]},Ya.braceIsBlock=function(e){var A=this.curContext();return A===ce.f_expr||A===ce.f_stat?!0:e===F.colon&&(A===ce.b_stat||A===ce.b_expr)?!A.isExpr:e===F._return||e===F.name&&this.exprAllowed?et.test(this.input.slice(this.lastTokEnd,this.start)):e===F._else||e===F.semi||e===F.eof||e===F.parenR||e===F.arrow?!0:e===F.braceL?A===ce.b_stat:e===F._var||e===F._const||e===F.name?!1:!this.exprAllowed},Ya.inGeneratorContext=function(){for(var e=this.context.length-1;e>=1;e--){var A=this.context[e];if(A.token==="function")return A.generator}return!1},Ya.updateContext=function(e){var A,t=this.type;t.keyword&&e===F.dot?this.exprAllowed=!1:(A=t.updateContext)?A.call(this,e):this.exprAllowed=t.beforeExpr},Ya.overrideContext=function(e){this.curContext()!==e&&(this.context[this.context.length-1]=e)},F.parenR.updateContext=F.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=!0;return}var e=this.context.pop();e===ce.b_stat&&this.curContext().token==="function"&&(e=this.context.pop()),this.exprAllowed=!e.isExpr},F.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?ce.b_stat:ce.b_expr),this.exprAllowed=!0},F.dollarBraceL.updateContext=function(){this.context.push(ce.b_tmpl),this.exprAllowed=!0},F.parenL.updateContext=function(e){var A=e===F._if||e===F._for||e===F._with||e===F._while;this.context.push(A?ce.p_stat:ce.p_expr),this.exprAllowed=!0},F.incDec.updateContext=function(){},F._function.updateContext=F._class.updateContext=function(e){e.beforeExpr&&e!==F._else&&!(e===F.semi&&this.curContext()!==ce.p_stat)&&!(e===F._return&&et.test(this.input.slice(this.lastTokEnd,this.start)))&&!((e===F.colon||e===F.braceL)&&this.curContext()===ce.b_stat)?this.context.push(ce.f_expr):this.context.push(ce.f_stat),this.exprAllowed=!1},F.colon.updateContext=function(){this.curContext().token==="function"&&this.context.pop(),this.exprAllowed=!0},F.backQuote.updateContext=function(){this.curContext()===ce.q_tmpl?this.context.pop():this.context.push(ce.q_tmpl),this.exprAllowed=!1},F.star.updateContext=function(e){if(e===F._function){var A=this.context.length-1;this.context[A]===ce.f_expr?this.context[A]=ce.f_expr_gen:this.context[A]=ce.f_gen}this.exprAllowed=!0},F.name.updateContext=function(e){var A=!1;this.options.ecmaVersion>=6&&e!==F.dot&&(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())&&(A=!0),this.exprAllowed=A};var NA=ke.prototype;NA.checkPropClash=function(e,A,t){if(!(this.options.ecmaVersion>=9&&e.type==="SpreadElement")&&!(this.options.ecmaVersion>=6&&(e.computed||e.method||e.shorthand))){var i=e.key,s;switch(i.type){case"Identifier":s=i.name;break;case"Literal":s=String(i.value);break;default:return}var a=e.kind;if(this.options.ecmaVersion>=6){s==="__proto__"&&a==="init"&&(A.proto&&(t?t.doubleProto<0&&(t.doubleProto=i.start):this.raiseRecoverable(i.start,"Redefinition of __proto__ property")),A.proto=!0);return}s="$"+s;var r=A[s];if(r){var g;a==="init"?g=this.strict&&r.init||r.get||r.set:g=r.init||r[a],g&&this.raiseRecoverable(i.start,"Redefinition of property")}else r=A[s]={init:!1,get:!1,set:!1};r[a]=!0}},NA.parseExpression=function(e,A){var t=this.start,i=this.startLoc,s=this.parseMaybeAssign(e,A);if(this.type===F.comma){var a=this.startNodeAt(t,i);for(a.expressions=[s];this.eat(F.comma);)a.expressions.push(this.parseMaybeAssign(e,A));return this.finishNode(a,"SequenceExpression")}return s},NA.parseMaybeAssign=function(e,A,t){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(e);this.exprAllowed=!1}var i=!1,s=-1,a=-1,r=-1;A?(s=A.parenthesizedAssign,a=A.trailingComma,r=A.doubleProto,A.parenthesizedAssign=A.trailingComma=-1):(A=new vQ,i=!0);var g=this.start,n=this.startLoc;(this.type===F.parenL||this.type===F.name)&&(this.potentialArrowAt=this.start,this.potentialArrowInForAwait=e==="await");var C=this.parseMaybeConditional(e,A);if(t&&(C=t.call(this,C,g,n)),this.type.isAssign){var B=this.startNodeAt(g,n);return B.operator=this.value,this.type===F.eq&&(C=this.toAssignable(C,!1,A)),i||(A.parenthesizedAssign=A.trailingComma=A.doubleProto=-1),A.shorthandAssign>=C.start&&(A.shorthandAssign=-1),this.type===F.eq?this.checkLValPattern(C):this.checkLValSimple(C),B.left=C,this.next(),B.right=this.parseMaybeAssign(e),r>-1&&(A.doubleProto=r),this.finishNode(B,"AssignmentExpression")}else i&&this.checkExpressionErrors(A,!0);return s>-1&&(A.parenthesizedAssign=s),a>-1&&(A.trailingComma=a),C},NA.parseMaybeConditional=function(e,A){var t=this.start,i=this.startLoc,s=this.parseExprOps(e,A);if(this.checkExpressionErrors(A))return s;if(this.eat(F.question)){var a=this.startNodeAt(t,i);return a.test=s,a.consequent=this.parseMaybeAssign(),this.expect(F.colon),a.alternate=this.parseMaybeAssign(e),this.finishNode(a,"ConditionalExpression")}return s},NA.parseExprOps=function(e,A){var t=this.start,i=this.startLoc,s=this.parseMaybeUnary(A,!1,!1,e);return this.checkExpressionErrors(A)||s.start===t&&s.type==="ArrowFunctionExpression"?s:this.parseExprOp(s,t,i,-1,e)},NA.parseExprOp=function(e,A,t,i,s){var a=this.type.binop;if(a!=null&&(!s||this.type!==F._in)&&a>i){var r=this.type===F.logicalOR||this.type===F.logicalAND,g=this.type===F.coalesce;g&&(a=F.logicalAND.binop);var n=this.value;this.next();var C=this.start,B=this.startLoc,E=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,s),C,B,a,s),o=this.buildBinary(A,t,e,E,n,r||g);return(r&&this.type===F.coalesce||g&&(this.type===F.logicalOR||this.type===F.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(o,A,t,i,s)}return e},NA.buildBinary=function(e,A,t,i,s,a){i.type==="PrivateIdentifier"&&this.raise(i.start,"Private identifier can only be left side of binary expression");var r=this.startNodeAt(e,A);return r.left=t,r.operator=s,r.right=i,this.finishNode(r,a?"LogicalExpression":"BinaryExpression")},NA.parseMaybeUnary=function(e,A,t,i){var s=this.start,a=this.startLoc,r;if(this.isContextual("await")&&this.canAwait)r=this.parseAwait(i),A=!0;else if(this.type.prefix){var g=this.startNode(),n=this.type===F.incDec;g.operator=this.value,g.prefix=!0,this.next(),g.argument=this.parseMaybeUnary(null,!0,n,i),this.checkExpressionErrors(e,!0),n?this.checkLValSimple(g.argument):this.strict&&g.operator==="delete"&&gf(g.argument)?this.raiseRecoverable(g.start,"Deleting local variable in strict mode"):g.operator==="delete"&&vc(g.argument)?this.raiseRecoverable(g.start,"Private fields can not be deleted"):A=!0,r=this.finishNode(g,n?"UpdateExpression":"UnaryExpression")}else if(!A&&this.type===F.privateId)(i||this.privateNameStack.length===0)&&this.options.checkPrivateFields&&this.unexpected(),r=this.parsePrivateIdent(),this.type!==F._in&&this.unexpected();else{if(r=this.parseExprSubscripts(e,i),this.checkExpressionErrors(e))return r;for(;this.type.postfix&&!this.canInsertSemicolon();){var C=this.startNodeAt(s,a);C.operator=this.value,C.prefix=!1,C.argument=r,this.checkLValSimple(r),this.next(),r=this.finishNode(C,"UpdateExpression")}}if(!t&&this.eat(F.starstar))if(A)this.unexpected(this.lastTokStart);else return this.buildBinary(s,a,r,this.parseMaybeUnary(null,!1,!1,i),"**",!1);else return r};function gf(e){return e.type==="Identifier"||e.type==="ParenthesizedExpression"&&gf(e.expression)}function vc(e){return e.type==="MemberExpression"&&e.property.type==="PrivateIdentifier"||e.type==="ChainExpression"&&vc(e.expression)||e.type==="ParenthesizedExpression"&&vc(e.expression)}NA.parseExprSubscripts=function(e,A){var t=this.start,i=this.startLoc,s=this.parseExprAtom(e,A);if(s.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return s;var a=this.parseSubscripts(s,t,i,!1,A);return e&&a.type==="MemberExpression"&&(e.parenthesizedAssign>=a.start&&(e.parenthesizedAssign=-1),e.parenthesizedBind>=a.start&&(e.parenthesizedBind=-1),e.trailingComma>=a.start&&(e.trailingComma=-1)),a},NA.parseSubscripts=function(e,A,t,i,s){for(var a=this.options.ecmaVersion>=8&&e.type==="Identifier"&&e.name==="async"&&this.lastTokEnd===e.end&&!this.canInsertSemicolon()&&e.end-e.start===5&&this.potentialArrowAt===e.start,r=!1;;){var g=this.parseSubscript(e,A,t,i,a,r,s);if(g.optional&&(r=!0),g===e||g.type==="ArrowFunctionExpression"){if(r){var n=this.startNodeAt(A,t);n.expression=g,g=this.finishNode(n,"ChainExpression")}return g}e=g}},NA.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(F.arrow)},NA.parseSubscriptAsyncArrow=function(e,A,t,i){return this.parseArrowExpression(this.startNodeAt(e,A),t,!0,i)},NA.parseSubscript=function(e,A,t,i,s,a,r){var g=this.options.ecmaVersion>=11,n=g&&this.eat(F.questionDot);i&&n&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var C=this.eat(F.bracketL);if(C||n&&this.type!==F.parenL&&this.type!==F.backQuote||this.eat(F.dot)){var B=this.startNodeAt(A,t);B.object=e,C?(B.property=this.parseExpression(),this.expect(F.bracketR)):this.type===F.privateId&&e.type!=="Super"?B.property=this.parsePrivateIdent():B.property=this.parseIdent(this.options.allowReserved!=="never"),B.computed=!!C,g&&(B.optional=n),e=this.finishNode(B,"MemberExpression")}else if(!i&&this.eat(F.parenL)){var E=new vQ,o=this.yieldPos,I=this.awaitPos,h=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var w=this.parseExprList(F.parenR,this.options.ecmaVersion>=8,!1,E);if(s&&!n&&this.shouldParseAsyncArrow())return this.checkPatternErrors(E,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=o,this.awaitPos=I,this.awaitIdentPos=h,this.parseSubscriptAsyncArrow(A,t,w,r);this.checkExpressionErrors(E,!0),this.yieldPos=o||this.yieldPos,this.awaitPos=I||this.awaitPos,this.awaitIdentPos=h||this.awaitIdentPos;var u=this.startNodeAt(A,t);u.callee=e,u.arguments=w,g&&(u.optional=n),e=this.finishNode(u,"CallExpression")}else if(this.type===F.backQuote){(n||a)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var d=this.startNodeAt(A,t);d.tag=e,d.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(d,"TaggedTemplateExpression")}return e},NA.parseExprAtom=function(e,A,t){this.type===F.slash&&this.readRegexp();var i,s=this.potentialArrowAt===this.start;switch(this.type){case F._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),i=this.startNode(),this.next(),this.type===F.parenL&&!this.allowDirectSuper&&this.raise(i.start,"super() call outside constructor of a subclass"),this.type!==F.dot&&this.type!==F.bracketL&&this.type!==F.parenL&&this.unexpected(),this.finishNode(i,"Super");case F._this:return i=this.startNode(),this.next(),this.finishNode(i,"ThisExpression");case F.name:var a=this.start,r=this.startLoc,g=this.containsEsc,n=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!g&&n.name==="async"&&!this.canInsertSemicolon()&&this.eat(F._function))return this.overrideContext(ce.f_expr),this.parseFunction(this.startNodeAt(a,r),0,!1,!0,A);if(s&&!this.canInsertSemicolon()){if(this.eat(F.arrow))return this.parseArrowExpression(this.startNodeAt(a,r),[n],!1,A);if(this.options.ecmaVersion>=8&&n.name==="async"&&this.type===F.name&&!g&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc))return n=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(F.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(a,r),[n],!0,A)}return n;case F.regexp:var C=this.value;return i=this.parseLiteral(C.value),i.regex={pattern:C.pattern,flags:C.flags},i;case F.num:case F.string:return this.parseLiteral(this.value);case F._null:case F._true:case F._false:return i=this.startNode(),i.value=this.type===F._null?null:this.type===F._true,i.raw=this.type.keyword,this.next(),this.finishNode(i,"Literal");case F.parenL:var B=this.start,E=this.parseParenAndDistinguishExpression(s,A);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(E)&&(e.parenthesizedAssign=B),e.parenthesizedBind<0&&(e.parenthesizedBind=B)),E;case F.bracketL:return i=this.startNode(),this.next(),i.elements=this.parseExprList(F.bracketR,!0,!0,e),this.finishNode(i,"ArrayExpression");case F.braceL:return this.overrideContext(ce.b_expr),this.parseObj(!1,e);case F._function:return i=this.startNode(),this.next(),this.parseFunction(i,0);case F._class:return this.parseClass(this.startNode(),!1);case F._new:return this.parseNew();case F.backQuote:return this.parseTemplate();case F._import:return this.options.ecmaVersion>=11?this.parseExprImport(t):this.unexpected();default:return this.parseExprAtomDefault()}},NA.parseExprAtomDefault=function(){this.unexpected()},NA.parseExprImport=function(e){var A=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===F.parenL&&!e)return this.parseDynamicImport(A);if(this.type===F.dot){var t=this.startNodeAt(A.start,A.loc&&A.loc.start);return t.name="import",A.meta=this.finishNode(t,"Identifier"),this.parseImportMeta(A)}else this.unexpected()},NA.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),this.options.ecmaVersion>=16)this.eat(F.parenR)?e.options=null:(this.expect(F.comma),this.afterTrailingComma(F.parenR)?e.options=null:(e.options=this.parseMaybeAssign(),this.eat(F.parenR)||(this.expect(F.comma),this.afterTrailingComma(F.parenR)||this.unexpected())));else if(!this.eat(F.parenR)){var A=this.start;this.eat(F.comma)&&this.eat(F.parenR)?this.raiseRecoverable(A,"Trailing comma is not allowed in import()"):this.unexpected(A)}return this.finishNode(e,"ImportExpression")},NA.parseImportMeta=function(e){this.next();var A=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!=="meta"&&this.raiseRecoverable(e.property.start,"The only valid meta property for import is 'import.meta'"),A&&this.raiseRecoverable(e.start,"'import.meta' must not contain escaped characters"),this.options.sourceType!=="module"&&!this.options.allowImportExportEverywhere&&this.raiseRecoverable(e.start,"Cannot use 'import.meta' outside a module"),this.finishNode(e,"MetaProperty")},NA.parseLiteral=function(e){var A=this.startNode();return A.value=e,A.raw=this.input.slice(this.start,this.end),A.raw.charCodeAt(A.raw.length-1)===110&&(A.bigint=A.value!=null?A.value.toString():A.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(A,"Literal")},NA.parseParenExpression=function(){this.expect(F.parenL);var e=this.parseExpression();return this.expect(F.parenR),e},NA.shouldParseArrow=function(e){return!this.canInsertSemicolon()},NA.parseParenAndDistinguishExpression=function(e,A){var t=this.start,i=this.startLoc,s,a=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var r=this.start,g=this.startLoc,n=[],C=!0,B=!1,E=new vQ,o=this.yieldPos,I=this.awaitPos,h;for(this.yieldPos=0,this.awaitPos=0;this.type!==F.parenR;)if(C?C=!1:this.expect(F.comma),a&&this.afterTrailingComma(F.parenR,!0)){B=!0;break}else if(this.type===F.ellipsis){h=this.start,n.push(this.parseParenItem(this.parseRestBinding())),this.type===F.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}else n.push(this.parseMaybeAssign(!1,E,this.parseParenItem));var w=this.lastTokEnd,u=this.lastTokEndLoc;if(this.expect(F.parenR),e&&this.shouldParseArrow(n)&&this.eat(F.arrow))return this.checkPatternErrors(E,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=o,this.awaitPos=I,this.parseParenArrowList(t,i,n,A);(!n.length||B)&&this.unexpected(this.lastTokStart),h&&this.unexpected(h),this.checkExpressionErrors(E,!0),this.yieldPos=o||this.yieldPos,this.awaitPos=I||this.awaitPos,n.length>1?(s=this.startNodeAt(r,g),s.expressions=n,this.finishNodeAt(s,"SequenceExpression",w,u)):s=n[0]}else s=this.parseParenExpression();if(this.options.preserveParens){var d=this.startNodeAt(t,i);return d.expression=s,this.finishNode(d,"ParenthesizedExpression")}else return s},NA.parseParenItem=function(e){return e},NA.parseParenArrowList=function(e,A,t,i){return this.parseArrowExpression(this.startNodeAt(e,A),t,!1,i)};var av=[];NA.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var e=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===F.dot){var A=this.startNodeAt(e.start,e.loc&&e.loc.start);A.name="new",e.meta=this.finishNode(A,"Identifier"),this.next();var t=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!=="target"&&this.raiseRecoverable(e.property.start,"The only valid meta property for new is 'new.target'"),t&&this.raiseRecoverable(e.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(e.start,"'new.target' can only be used in functions and class static block"),this.finishNode(e,"MetaProperty")}var i=this.start,s=this.startLoc;return e.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),i,s,!0,!1),this.eat(F.parenL)?e.arguments=this.parseExprList(F.parenR,this.options.ecmaVersion>=8,!1):e.arguments=av,this.finishNode(e,"NewExpression")},NA.parseTemplateElement=function(e){var A=e.isTagged,t=this.startNode();return this.type===F.invalidTemplate?(A||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),t.value={raw:this.value.replace(/\r\n?/g,`
|
|
4
4
|
`),cooked:null}):t.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
|
|
@@ -21,7 +21,7 @@ if (window.process == null) {
|
|
|
21
21
|
export const action = (target, context) => {
|
|
22
22
|
const ref = mount(Component, { target, context });
|
|
23
23
|
return { destroy: () => unmount(ref) };
|
|
24
|
-
};`,Yc=new Map,_v=/^(@[^/]*\/[^/]*)(?:\/(.*))?$/s,Kv=/^([^/]*)(?:\/(.*))?$/s,qv=async(e,A)=>{if(A!=null){const t=new URL(A);return new URL(e,t).href}return e},qQ=async(e,A)=>e.endsWith("..")?(await fetch(new URL(`${e}/index.js`,A),{method:"HEAD"})).url:e.endsWith(".")?(await fetch(new URL(`${e}/index.js`,A),{method:"HEAD"})).url:e.endsWith("/")?(await fetch(new URL(`${e}index.js`,A),{method:"HEAD"})).url:(await fetch(new URL(e,A),{method:"HEAD"})).url,xv=async e=>{const A=await fetch(e);if(A.ok)return JSON.parse(await A.text())},Hv=async(e,A)=>{const[t,i,s=""]=e.split(e.startsWith("@")?_v:Kv),a=i=="@nil-/xit"?`${A}/${i}@0.4.
|
|
24
|
+
};`,Yc=new Map,_v=/^(@[^/]*\/[^/]*)(?:\/(.*))?$/s,Kv=/^([^/]*)(?:\/(.*))?$/s,qv=async(e,A)=>{if(A!=null){const t=new URL(A);return new URL(e,t).href}return e},qQ=async(e,A)=>e.endsWith("..")?(await fetch(new URL(`${e}/index.js`,A),{method:"HEAD"})).url:e.endsWith(".")?(await fetch(new URL(`${e}/index.js`,A),{method:"HEAD"})).url:e.endsWith("/")?(await fetch(new URL(`${e}index.js`,A),{method:"HEAD"})).url:(await fetch(new URL(e,A),{method:"HEAD"})).url,xv=async e=>{const A=await fetch(e);if(A.ok)return JSON.parse(await A.text())},Hv=async(e,A)=>{const[t,i,s=""]=e.split(e.startsWith("@")?_v:Kv),a=i=="@nil-/xit"?`${A}/${i}@0.4.21`:`${A}/${i}`,r=`${a}/package.json`;if(Yc.has(r))return{...Yc.get(r),rest:s};const g=await xv(r);if(g!=null)return Yc.set(r,{base:a,json:g}),{base:a,json:g,rest:s}},Pv=(e,A)=>({input:t=>({resolved:t}),hook:async(t,i)=>{if(t.startsWith(Uf))return t;if(t.startsWith(".")){if(i!=null&&i.startsWith(KQ))return await qv(t,i);if(i!=null&&i.startsWith(Cs))return`${Cs}${await qQ(t,i.slice(Cs.length))}`}if(t.startsWith("$")){const a=t.indexOf("/"),r=t.slice(1,a);return r in A?`${KQ}${A[r]}${t.slice(a)}`:null}if(t.startsWith("https://"))return null;const s=await Hv(t,e);if(s!=null){const a=Yv(s.json,s.rest,{browser:!0,conditions:["svelte","production"]});if(a!=null){if(Array.isArray(a)&&a.length>0)return`${Cs}${await qQ(`${s.base}/${a[0]}`)}`;if(typeof a=="string")return`${Cs}${await qQ(`${s.base}/${a}`)}`}else{const r=Uv(s.json);if(r!=null)return`${Cs}${await qQ(`${s.base}/${r}`)}`}}throw"unknown file, should be unreachable"}});function LA(e,A,t){const i=t._;let s=!1;function a(g,{next:n,state:C}){n(C)}function r(g,n,C){if(s||!g.type)return;let B;const E={},o={path:n,state:C,next:(h=C)=>{n.push(g);for(const w in g){if(w==="type")continue;const u=g[w];if(u&&typeof u=="object")if(Array.isArray(u)){const d={},c=u.length;let p=!1;for(let m=0;m<c;m++){const D=u[m];if(D&&typeof D=="object"){const G=r(D,n,h);G&&(d[m]=G,p=!0)}}p&&(E[w]=u.map((m,D)=>d[D]??m))}else{const d=r(u,n,h);d&&(E[w]=d)}}if(n.pop(),Object.keys(E).length>0)return Yf(g,E)},stop:()=>{s=!0},visit:(h,w=C)=>{n.push(g);const u=r(h,n,w)??h;return n.pop(),u}};let I=t[g.type]??a;if(i){let h;B=i(g,{...o,next:(w=C)=>(C=w,h=I(g,{...o,state:w}),h)}),!B&&h&&(B=h)}else B=I(g,o);if(B||Object.keys(E).length>0&&(B=Yf(g,E)),B)return B}return r(e,[],A)??e}function Yf(e,A){const t={},i=Object.getOwnPropertyDescriptors(e);for(const s in i)Object.defineProperty(t,s,i[s]);for(const s in A)t[s]=A[s];return t}const Jc=/\s+/,xQ=/^\r?\n/,Tv=/^\s/,Or=/^[ \t\r\n]+/,Jf=/\s$/,Ja=/[ \t\r\n]+$/,_a=/[^ \t\r\n]/,_f=/[ \t\n\r\f]+/g,Ov=/^[ \t\n\r\f]+$/,Kf=/[^\n]/g,qf=/^[a-zA-Z_$][a-zA-Z_$0-9]*$/,jv=/(^[^a-zA-Z_$]|[^a-zA-Z0-9_$])/g,Vv=/^[aeiou]/,$v=/^h[1-6]$/,Wv=/(^[0-9-.])|[\^$@%&#?!|()[\]{}^*+~;]/,HQ=/[\u202a\u202b\u202c\u202d\u202e\u2066\u2067\u2068\u2069]+/g,zv=/^\W*javascript:/i,Zv=/\b(image|picture|photo)\b/i,_c=1,PQ=2,Xv=4,AL=8,eL=16,tL=1,iL=2,sL=4,aL=8,rL=16,gL=1,nL=2,oL=4,xf=1,Hf=2,IL=4,CL=8,BL="[",QL="[!",EL="]",lL=1,Pf=2,cL=4,Tf="http://www.w3.org/2000/svg",Of="http://www.w3.org/1998/Math/MathML",uL=["await_waterfall","await_reactivity_loss","state_snapshot_uncloneable","binding_property_non_reactive","hydration_attribute_changed","hydration_html_changed","ownership_invalid_binding","ownership_invalid_mutation"];function TQ(e,A){if(A.length===0)return null;const i=new wL(A).get(e);return i&&i[0][0]>.7?i[0][1]:null}const Kc=2,qc=3;function hL(e,A){if(e===null&&A===null)throw"Trying to compare two null values";return e===null||A===null?0:(e=String(e),A=String(A),1-dL(e,A)/Math.max(e.length,A.length))}function dL(e,A){const t=[];let i=0;for(let s=0;s<=A.length;s++)for(let a=0;a<=e.length;a++){let r;s&&a?e.charAt(a-1)===A.charAt(s-1)?r=i:r=Math.min(t[a],t[a-1],i)+1:r=s+a,i=t[a],t[a]=r}return t.pop()}const pL=/[^\w, ]+/;function fL(e,A=2){const t="-"+e.toLowerCase().replace(pL,"")+"-",i=A-t.length,s=[];if(i>0)for(let a=0;a<i;++a)e+="-";for(let a=0;a<t.length-A+1;++a)s.push(t.slice(a,a+A));return s}function jf(e,A=2){const t={},i=fL(e,A);let s=0;for(s;s<i.length;++s)i[s]in t?t[i[s]]+=1:t[i[s]]=1;return t}function Vf(e,A){return A[0]-e[0]}class wL{constructor(A){X(this,"exact_set",{});X(this,"match_dict",{});X(this,"items",{});for(let t=Kc;t<qc+1;++t)this.items[t]=[];for(let t=0;t<A.length;++t)this.add(A[t])}add(A){if(A.toLowerCase()in this.exact_set)return!1;let i=Kc;for(i;i<qc+1;++i)this._add(A,i)}_add(A,t){const i=A.toLowerCase(),s=this.items[t]||[],a=s.length;s.push(0);const r=jf(i,t);let g=0,n,C;for(n in r)C=r[n],g+=Math.pow(C,2),n in this.match_dict?this.match_dict[n].push([a,C]):this.match_dict[n]=[[a,C]];const B=Math.sqrt(g);s[a]=[B,i],this.items[t]=s,this.exact_set[i]=A}get(A){const t=A.toLowerCase(),i=this.exact_set[t];if(i)return[[1,i]];for(let s=qc;s>=Kc;--s){const a=this.__get(A,s);if(a.length>0)return a}return null}__get(A,t){const i=A.toLowerCase(),s={},a=jf(i,t),r=this.items[t];let g=0,n,C,B,E,o;for(n in a)if(C=a[n],g+=Math.pow(C,2),n in this.match_dict)for(B=0;B<this.match_dict[n].length;++B)E=this.match_dict[n][B][0],o=this.match_dict[n][B][1],E in s?s[E]+=C*o:s[E]=C*o;const I=Math.sqrt(g);let h=[],w;for(const c in s)w=s[c],h.push([w/(I*r[c][0]),r[c][1]]);h.sort(Vf);let u=[];const d=Math.min(50,h.length);for(let c=0;c<d;++c)u.push([hL(h[c][1],i),h[c][1]]);h=u,h.sort(Vf),u=[];for(let c=0;c<h.length;++c)h[c][0]===h[0][0]&&u.push([h[c][0],this.exact_set[h[c][1]]]);return u}}function DL(e,A){return e.start<=A&&A<e.end}function mL(e,A={}){const{offsetLine:t=0,offsetColumn:i=0}=A;let s=0;const a=e.split(`
|
|
25
25
|
`).map((n,C)=>{const B=s+n.length+1,E={start:s,end:B,line:C};return s=B,E});let r=0;function g(n,C){if(typeof n=="string"&&(n=e.indexOf(n,C??0)),n===-1)return;let B=a[r];const E=n>=B.end?1:-1;for(;B;){if(DL(B,n))return{line:t+B.line,column:i+n-B.start,character:n};r+=E,B=a[r]}}return g}const yL=/\r/g;function xc(e){e=e.replace(yL,"");let A=5381,t=e.length;for(;t--;)A=(A<<5)-A^e.charCodeAt(t);return(A>>>0).toString(36)}const kL=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"];function jr(e){return kL.includes(e)||e.toLowerCase()==="!doctype"}const RL=["arguments","await","break","case","catch","class","const","continue","debugger","default","delete","do","else","enum","eval","export","extends","false","finally","for","function","if","implements","import","in","instanceof","interface","let","new","null","package","private","protected","public","return","static","super","switch","this","throw","true","try","typeof","var","void","while","with","yield"];function $f(e){return RL.includes(e)}function NL(e){return e.endsWith("capture")&&e!=="gotpointercapture"&&e!=="lostpointercapture"}const GL=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function SL(e){return GL.includes(e)}const Wf=["allowfullscreen","async","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","indeterminate","inert","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected","webkitdirectory","defer","disablepictureinpicture","disableremoteplayback"];function ML(e){return Wf.includes(e)}const FL={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject",novalidate:"noValidate",allowfullscreen:"allowFullscreen",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback"};function bL(e){return e=e.toLowerCase(),FL[e]??e}const vL=[...Wf,"formNoValidate","isMap","noModule","playsInline","readOnly","value","volume","defaultValue","defaultChecked","srcObject","noValidate","allowFullscreen","disablePictureInPicture","disableRemotePlayback"];function LL(e){return vL.includes(e)}const UL=["autofocus","muted","defaultValue","defaultChecked"];function Hc(e){return UL.includes(e)}const YL=["touchstart","touchmove"];function JL(e){return YL.includes(e)}const _L=["textContent","innerHTML","innerText"];function Pc(e){return _L.includes(e)}const KL=["body","embed","iframe","img","link","object","script","style","track"];function OQ(e){return KL.includes(e)}const qL=["altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","discard","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignObject","g","glyph","glyphRef","hatch","hatchpath","hkern","image","line","linearGradient","marker","mask","mesh","meshgradient","meshpatch","meshrow","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","set","solidcolor","stop","svg","switch","symbol","text","textPath","tref","tspan","unknown","use","view","vkern"];function Tc(e){return qL.includes(e)}const xL=["annotation","annotation-xml","maction","math","merror","mfrac","mi","mmultiscripts","mn","mo","mover","mpadded","mphantom","mprescripts","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msubsup","msup","mtable","mtd","mtext","mtr","munder","munderover","semantics"];function zf(e){return xL.includes(e)}const Zf=["$state","$state.raw","$derived","$derived.by"],HL=[...Zf,"$state.eager","$state.snapshot","$props","$props.id","$bindable","$effect","$effect.pre","$effect.tracking","$effect.root","$effect.pending","$inspect","$inspect().with","$inspect.trace","$host"];function Bs(e){return HL.includes(e)}function PL(e){return Zf.includes(e)}const TL=/^[a-zA-Z][a-zA-Z0-9]*(-[a-zA-Z0-9.\-_\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u{10000}-\u{EFFFF}]+)*$/u;function OL(e){return e==null?void 0:e.replace(/\//g,"/")}let Ka=[],st;const qa="(unknown)";let Vr="<unknown>",$r,Oc=[],lA,jc=!1,Re;function Xf(e){$r=e,Oc=$r.split(`
|
|
26
26
|
`);const A=mL($r,{offsetLine:1});Re=t=>{const i=A(t);if(!i)throw new Error("An impossible situation occurred");return i}}function jQ(e){const A=Re(e.start);return`${OL(st)}:${A==null?void 0:A.line}:${A.column}`}let Aw,xs=[],VQ=new Map,xa=null;function jL(){return xa===null&&(xa=xs.map(e=>new Set(e))),xa}function VL(e){const A=new Set([...xs.at(-1)||[],...e]);xs.push(A),xa=null}function $L(){xs.pop(),xa=null}function dt(e,A){var t;return lA&&!!((t=VQ.get(e))!=null&&t.some(i=>i.has(A)))}function ew(e){lA=!1,jc=!1,Vr=qa,$r="",Oc=[],st=(e.filename??qa).replace(/\\/g,"/"),Aw=e.warning??(()=>!0),Ka=[]}function tw(e){var t;const A=(t=e.rootDir)==null?void 0:t.replace(/\\/g,"/");lA=e.dev,jc=e.runes,Vr=e.component_name??qa,typeof A=="string"&&st.startsWith(A)&&(st=st.replace(A,"").replace(/^[/\\]/,"")),xs=[],VQ.clear(),xa=null}const WL=/^\t+/;function Vc(e){return e.replace(WL,A=>A.split(" ").join(" "))}function zL(e,A){const t=Oc,i=Math.max(0,e-2),s=Math.min(e+3,t.length),a=String(s+1).length;return t.slice(i,s).map((r,g)=>{const n=i+g===e,C=String(g+i+1).padStart(a," ");if(n){const B=" ".repeat(a+2+Vc(r.slice(0,A)).length)+"^";return`${C}: ${Vc(r)}
|
|
27
27
|
${B}`}return`${C}: ${Vc(r)}`}).join(`
|
package/assets/index.js
CHANGED
|
@@ -7,39 +7,39 @@ var a = (i, t, e) => Ht(i, typeof t != "symbol" ? t + "" : t, e), ct = (i, t, e)
|
|
|
7
7
|
var l = (i, t, e) => (ct(i, t, "read from private field"), e ? e.call(i) : t.get(i)), z = (i, t, e) => t.has(i) ? Ft("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(i) : t.set(i, e), p = (i, t, e, s) => (ct(i, t, "write to private field"), s ? s.call(i, e) : t.set(i, e), e), lt = (i, t, e) => (ct(i, t, "access private method"), e);
|
|
8
8
|
import { cF as dt, cG as qt } from "./svelte/store.js";
|
|
9
9
|
const ft = 1e4;
|
|
10
|
-
var it, ut, w,
|
|
10
|
+
var it, ut, w, Q, M, tt, j, g;
|
|
11
11
|
class nt {
|
|
12
12
|
constructor(t) {
|
|
13
13
|
z(this, it);
|
|
14
14
|
z(this, w);
|
|
15
15
|
// 0 idle, 1 has connected, 2 keep reconnecting, 3 stopped
|
|
16
|
-
z(this, K);
|
|
17
16
|
z(this, Q);
|
|
18
17
|
z(this, M);
|
|
18
|
+
z(this, tt);
|
|
19
19
|
z(this, j);
|
|
20
20
|
z(this, g);
|
|
21
|
-
p(this, j, t), p(this, w, 0), p(this,
|
|
21
|
+
p(this, j, t), p(this, w, 0), p(this, Q, null), p(this, M, null), p(this, tt, null), p(this, g, null);
|
|
22
22
|
}
|
|
23
23
|
on_message(t) {
|
|
24
|
-
p(this,
|
|
24
|
+
p(this, tt, t);
|
|
25
25
|
}
|
|
26
26
|
on_connect(t) {
|
|
27
|
-
p(this,
|
|
27
|
+
p(this, Q, t);
|
|
28
28
|
}
|
|
29
29
|
on_disconnect(t) {
|
|
30
|
-
p(this,
|
|
30
|
+
p(this, M, t);
|
|
31
31
|
}
|
|
32
32
|
// non-blocking (run is blocking in c++)
|
|
33
33
|
// calling it again should not do anything
|
|
34
34
|
start() {
|
|
35
35
|
l(this, g) == null && l(this, w) !== 1 && l(this, w) !== 3 && (p(this, g, new WebSocket(l(this, j))), l(this, g).binaryType = "arraybuffer", l(this, g).onopen = () => {
|
|
36
|
-
l(this, w) == 3 ? this.stop() : (p(this, w, 1), l(this,
|
|
36
|
+
l(this, w) == 3 ? this.stop() : (p(this, w, 1), l(this, Q) && l(this, Q).call(this, l(this, j)));
|
|
37
37
|
}, l(this, g).onclose = () => {
|
|
38
|
-
l(this, w) === 1 && (l(this,
|
|
38
|
+
l(this, w) === 1 && (l(this, M) && l(this, M).call(this, l(this, j)), p(this, w, 2), lt(this, it, ut).call(this));
|
|
39
39
|
}, l(this, g).onerror = () => {
|
|
40
40
|
l(this, w) !== 1 && l(this, w) !== 3 ? (p(this, w, 2), lt(this, it, ut).call(this)) : l(this, w) === 3 && this.stop();
|
|
41
41
|
}, l(this, g).onmessage = (t) => {
|
|
42
|
-
l(this,
|
|
42
|
+
l(this, tt) && l(this, tt).call(this, l(this, j), new Uint8Array(t.data));
|
|
43
43
|
});
|
|
44
44
|
}
|
|
45
45
|
stop() {
|
|
@@ -57,10 +57,10 @@ class nt {
|
|
|
57
57
|
}
|
|
58
58
|
it = new WeakSet(), ut = function() {
|
|
59
59
|
l(this, g) != null && (l(this, g).close(), p(this, g, null)), setTimeout(() => this.start(), 1e3);
|
|
60
|
-
}, w = new WeakMap(),
|
|
60
|
+
}, w = new WeakMap(), Q = new WeakMap(), M = new WeakMap(), tt = new WeakMap(), j = new WeakMap(), g = new WeakMap();
|
|
61
61
|
const et = (i) => {
|
|
62
62
|
const t = new Uint8Array(4);
|
|
63
|
-
return new DataView(t.buffer).setUint32(0, i, !
|
|
63
|
+
return new DataView(t.buffer).setUint32(0, i, !0), t;
|
|
64
64
|
}, st = (i) => {
|
|
65
65
|
const t = new Uint8Array(i.reduce((s, n) => s + n.length, 0));
|
|
66
66
|
let e = 0;
|
|
@@ -79,7 +79,7 @@ const et = (i) => {
|
|
|
79
79
|
o.stop(), r("timed out, cancelled");
|
|
80
80
|
}, ft), c = st([et(t), e]);
|
|
81
81
|
o.on_connect(() => o.publish(c)), o.on_message((d, _) => {
|
|
82
|
-
const F = new DataView(_.buffer).getUint32(0, !
|
|
82
|
+
const F = new DataView(_.buffer).getUint32(0, !0), m = _.slice(4), I = s(F, m);
|
|
83
83
|
I != null && (clearTimeout(h), o.stop(), n(I));
|
|
84
84
|
}), o.start();
|
|
85
85
|
}), bt = (i, t, e) => {
|
|
@@ -1494,7 +1494,7 @@ class yt {
|
|
|
1494
1494
|
return N.startTaggedValueUpdate(t), N.addId(t, e), N.addTag(t, s), N.addValue(t, n), N.endTaggedValueUpdate(t);
|
|
1495
1495
|
}
|
|
1496
1496
|
}
|
|
1497
|
-
class
|
|
1497
|
+
class X {
|
|
1498
1498
|
constructor() {
|
|
1499
1499
|
a(this, "bb", null);
|
|
1500
1500
|
a(this, "bb_pos", 0);
|
|
@@ -1503,10 +1503,10 @@ class Z {
|
|
|
1503
1503
|
return this.bb_pos = t, this.bb = e, this;
|
|
1504
1504
|
}
|
|
1505
1505
|
static getRootAsUniqueFrameLoaded(t, e) {
|
|
1506
|
-
return (e || new
|
|
1506
|
+
return (e || new X()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
1507
1507
|
}
|
|
1508
1508
|
static getSizePrefixedRootAsUniqueFrameLoaded(t, e) {
|
|
1509
|
-
return t.setPosition(t.position() + f), (e || new
|
|
1509
|
+
return t.setPosition(t.position() + f), (e || new X()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
1510
1510
|
}
|
|
1511
1511
|
id(t) {
|
|
1512
1512
|
const e = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -1523,7 +1523,7 @@ class Z {
|
|
|
1523
1523
|
return t.requiredField(e, 4), e;
|
|
1524
1524
|
}
|
|
1525
1525
|
static createUniqueFrameLoaded(t, e) {
|
|
1526
|
-
return
|
|
1526
|
+
return X.startUniqueFrameLoaded(t), X.addId(t, e), X.endUniqueFrameLoaded(t);
|
|
1527
1527
|
}
|
|
1528
1528
|
unpack() {
|
|
1529
1529
|
return new It(this.id());
|
|
@@ -1539,10 +1539,10 @@ class It {
|
|
|
1539
1539
|
}
|
|
1540
1540
|
pack(t) {
|
|
1541
1541
|
const e = this.id !== null ? t.createString(this.id) : 0;
|
|
1542
|
-
return
|
|
1542
|
+
return X.createUniqueFrameLoaded(t, e);
|
|
1543
1543
|
}
|
|
1544
1544
|
}
|
|
1545
|
-
class
|
|
1545
|
+
class $ {
|
|
1546
1546
|
constructor() {
|
|
1547
1547
|
a(this, "bb", null);
|
|
1548
1548
|
a(this, "bb_pos", 0);
|
|
@@ -1551,10 +1551,10 @@ class X {
|
|
|
1551
1551
|
return this.bb_pos = t, this.bb = e, this;
|
|
1552
1552
|
}
|
|
1553
1553
|
static getRootAsUniqueFrameSubscribe(t, e) {
|
|
1554
|
-
return (e || new
|
|
1554
|
+
return (e || new $()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
1555
1555
|
}
|
|
1556
1556
|
static getSizePrefixedRootAsUniqueFrameSubscribe(t, e) {
|
|
1557
|
-
return t.setPosition(t.position() + f), (e || new
|
|
1557
|
+
return t.setPosition(t.position() + f), (e || new $()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
1558
1558
|
}
|
|
1559
1559
|
id(t) {
|
|
1560
1560
|
const e = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -1571,7 +1571,7 @@ class X {
|
|
|
1571
1571
|
return t.requiredField(e, 4), e;
|
|
1572
1572
|
}
|
|
1573
1573
|
static createUniqueFrameSubscribe(t, e) {
|
|
1574
|
-
return
|
|
1574
|
+
return $.startUniqueFrameSubscribe(t), $.addId(t, e), $.endUniqueFrameSubscribe(t);
|
|
1575
1575
|
}
|
|
1576
1576
|
unpack() {
|
|
1577
1577
|
return new wt(this.id());
|
|
@@ -1587,7 +1587,7 @@ class wt {
|
|
|
1587
1587
|
}
|
|
1588
1588
|
pack(t) {
|
|
1589
1589
|
const e = this.id !== null ? t.createString(this.id) : 0;
|
|
1590
|
-
return
|
|
1590
|
+
return $.createUniqueFrameSubscribe(t, e);
|
|
1591
1591
|
}
|
|
1592
1592
|
}
|
|
1593
1593
|
class R {
|
|
@@ -1671,7 +1671,7 @@ class Lt {
|
|
|
1671
1671
|
return R.createUniqueSignalNotify(t, e, s, n);
|
|
1672
1672
|
}
|
|
1673
1673
|
}
|
|
1674
|
-
class
|
|
1674
|
+
class J {
|
|
1675
1675
|
constructor() {
|
|
1676
1676
|
a(this, "bb", null);
|
|
1677
1677
|
a(this, "bb_pos", 0);
|
|
@@ -1680,10 +1680,10 @@ class $ {
|
|
|
1680
1680
|
return this.bb_pos = t, this.bb = e, this;
|
|
1681
1681
|
}
|
|
1682
1682
|
static getRootAsUniqueSignalRequest(t, e) {
|
|
1683
|
-
return (e || new
|
|
1683
|
+
return (e || new J()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
1684
1684
|
}
|
|
1685
1685
|
static getSizePrefixedRootAsUniqueSignalRequest(t, e) {
|
|
1686
|
-
return t.setPosition(t.position() + f), (e || new
|
|
1686
|
+
return t.setPosition(t.position() + f), (e || new J()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
1687
1687
|
}
|
|
1688
1688
|
id(t) {
|
|
1689
1689
|
const e = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -1700,7 +1700,7 @@ class $ {
|
|
|
1700
1700
|
return t.requiredField(e, 4), e;
|
|
1701
1701
|
}
|
|
1702
1702
|
static createUniqueSignalRequest(t, e) {
|
|
1703
|
-
return
|
|
1703
|
+
return J.startUniqueSignalRequest(t), J.addId(t, e), J.endUniqueSignalRequest(t);
|
|
1704
1704
|
}
|
|
1705
1705
|
unpack() {
|
|
1706
1706
|
return new Ct(this.id());
|
|
@@ -1716,7 +1716,7 @@ class Ct {
|
|
|
1716
1716
|
}
|
|
1717
1717
|
pack(t) {
|
|
1718
1718
|
const e = this.id !== null ? t.createString(this.id) : 0;
|
|
1719
|
-
return
|
|
1719
|
+
return J.createUniqueSignalRequest(t, e);
|
|
1720
1720
|
}
|
|
1721
1721
|
}
|
|
1722
1722
|
class k {
|
|
@@ -1788,7 +1788,7 @@ class Kt {
|
|
|
1788
1788
|
return k.createUniqueSignalResponse(t, e, s);
|
|
1789
1789
|
}
|
|
1790
1790
|
}
|
|
1791
|
-
class
|
|
1791
|
+
class K {
|
|
1792
1792
|
constructor() {
|
|
1793
1793
|
a(this, "bb", null);
|
|
1794
1794
|
a(this, "bb_pos", 0);
|
|
@@ -1797,10 +1797,10 @@ class J {
|
|
|
1797
1797
|
return this.bb_pos = t, this.bb = e, this;
|
|
1798
1798
|
}
|
|
1799
1799
|
static getRootAsUniqueValueRequest(t, e) {
|
|
1800
|
-
return (e || new
|
|
1800
|
+
return (e || new K()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
1801
1801
|
}
|
|
1802
1802
|
static getSizePrefixedRootAsUniqueValueRequest(t, e) {
|
|
1803
|
-
return t.setPosition(t.position() + f), (e || new
|
|
1803
|
+
return t.setPosition(t.position() + f), (e || new K()).__init(t.readInt32(t.position()) + t.position(), t);
|
|
1804
1804
|
}
|
|
1805
1805
|
id(t) {
|
|
1806
1806
|
const e = this.bb.__offset(this.bb_pos, 4);
|
|
@@ -1817,7 +1817,7 @@ class J {
|
|
|
1817
1817
|
return t.requiredField(e, 4), e;
|
|
1818
1818
|
}
|
|
1819
1819
|
static createUniqueValueRequest(t, e) {
|
|
1820
|
-
return
|
|
1820
|
+
return K.startUniqueValueRequest(t), K.addId(t, e), K.endUniqueValueRequest(t);
|
|
1821
1821
|
}
|
|
1822
1822
|
unpack() {
|
|
1823
1823
|
return new jt(this.id());
|
|
@@ -1833,7 +1833,7 @@ class jt {
|
|
|
1833
1833
|
}
|
|
1834
1834
|
pack(t) {
|
|
1835
1835
|
const e = this.id !== null ? t.createString(this.id) : 0;
|
|
1836
|
-
return
|
|
1836
|
+
return K.createUniqueValueRequest(t, e);
|
|
1837
1837
|
}
|
|
1838
1838
|
}
|
|
1839
1839
|
class A {
|
|
@@ -2039,19 +2039,19 @@ const Mt = async (i) => new Promise((t, e) => {
|
|
|
2039
2039
|
}), r.set(_, F);
|
|
2040
2040
|
}
|
|
2041
2041
|
return s.on_message((c, d) => {
|
|
2042
|
-
const _ = new DataView(d.buffer).getUint32(0, !
|
|
2042
|
+
const _ = new DataView(d.buffer).getUint32(0, !0), F = d.slice(4), m = t != null ? u.Tagged_Value_Update : u.Unique_Value_Update;
|
|
2043
2043
|
if (_ === m) {
|
|
2044
2044
|
const I = t !== null ? N.getRootAsTaggedValueUpdate(new L(F)) : Y.getRootAsUniqueValueUpdate(new L(F));
|
|
2045
2045
|
if (I.id() === i && (t == null || t === I.tag())) {
|
|
2046
2046
|
o = !0;
|
|
2047
|
-
const B = I.value().id(), b = r.get(B), C = new Uint8Array(I.unpack().value.value),
|
|
2047
|
+
const B = I.value().id(), b = r.get(B), C = new Uint8Array(I.unpack().value.value), Z = qt(b);
|
|
2048
2048
|
let ot = !0;
|
|
2049
|
-
if (C.length !=
|
|
2049
|
+
if (Z == null || C.length != Z.length)
|
|
2050
2050
|
ot = !1;
|
|
2051
2051
|
else {
|
|
2052
2052
|
const Gt = C.length;
|
|
2053
2053
|
for (let at = 0; at < Gt; at++)
|
|
2054
|
-
if (C[at] !==
|
|
2054
|
+
if (C[at] !== Z[at]) {
|
|
2055
2055
|
ot = !1;
|
|
2056
2056
|
break;
|
|
2057
2057
|
}
|
|
@@ -2141,8 +2141,8 @@ const Mt = async (i) => new Promise((t, e) => {
|
|
|
2141
2141
|
o.on_connect(() => {
|
|
2142
2142
|
const b = new O(), C = e != null ? new pt(t, e) : new wt(t);
|
|
2143
2143
|
b.finish(C.pack(b));
|
|
2144
|
-
const
|
|
2145
|
-
o.publish(st([et(
|
|
2144
|
+
const Z = e != null ? u.Client_Tagged_Frame_Subscribe : u.Client_Unique_Frame_Subscribe;
|
|
2145
|
+
o.publish(st([et(Z), b.asUint8Array()]));
|
|
2146
2146
|
}), o.start();
|
|
2147
2147
|
const I = new O(), B = e != null ? new gt(t, e) : new It(t);
|
|
2148
2148
|
return I.finish(B.pack(I)), bt(
|
|
@@ -2161,10 +2161,10 @@ const Mt = async (i) => new Promise((t, e) => {
|
|
|
2161
2161
|
load_frame_ui: n,
|
|
2162
2162
|
load_frame_data: r
|
|
2163
2163
|
});
|
|
2164
|
-
const { destroy:
|
|
2164
|
+
const { destroy: Z } = m(b, C);
|
|
2165
2165
|
return {
|
|
2166
2166
|
destroy: () => {
|
|
2167
|
-
o.stop(),
|
|
2167
|
+
o.stop(), Z();
|
|
2168
2168
|
}
|
|
2169
2169
|
};
|
|
2170
2170
|
};
|