@nil-/xit 0.2.4 → 0.2.6

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 CHANGED
@@ -1,4 +1,4 @@
1
- var G4=Object.defineProperty;var gJ=Fe=>{throw TypeError(Fe)};var k4=(Fe,Ye,Ze)=>Ye in Fe?G4(Fe,Ye,{enumerable:!0,configurable:!0,writable:!0,value:Ze}):Fe[Ye]=Ze;var lA=(Fe,Ye,Ze)=>k4(Fe,typeof Ye!="symbol"?Ye+"":Ye,Ze),Fd=(Fe,Ye,Ze)=>Ye.has(Fe)||gJ("Cannot "+Ze);var ZA=(Fe,Ye,Ze)=>(Fd(Fe,Ye,"read from private field"),Ze?Ze.call(Fe):Ye.get(Fe)),Mg=(Fe,Ye,Ze)=>Ye.has(Fe)?gJ("Cannot add the same private member more than once"):Ye instanceof WeakSet?Ye.add(Fe):Ye.set(Fe,Ze),Oe=(Fe,Ye,Ze,Bn)=>(Fd(Fe,Ye,"write to private field"),Bn?Bn.call(Fe,Ze):Ye.set(Fe,Ze),Ze),Yd=(Fe,Ye,Ze)=>(Fd(Fe,Ye,"access private method"),Ze);(function(){"use strict";var tn,Ld,it,mI,GI,kI,Bi,je,RI,GB,eJ;class Ye{constructor(A){Mg(this,tn);Mg(this,it);Mg(this,mI);Mg(this,GI);Mg(this,kI);Mg(this,Bi);Mg(this,je);Oe(this,Bi,A),Oe(this,it,0),Oe(this,mI,null),Oe(this,GI,null),Oe(this,kI,null),Oe(this,je,null)}on_message(A){Oe(this,kI,A)}on_connect(A){Oe(this,mI,A)}on_disconnect(A){Oe(this,GI,A)}start(){ZA(this,je)==null&&ZA(this,it)!==1&&ZA(this,it)!==3&&(Oe(this,je,new WebSocket(`ws://${ZA(this,Bi)}`)),ZA(this,je).binaryType="arraybuffer",ZA(this,je).onopen=()=>{ZA(this,it)==3?this.stop():(Oe(this,it,1),ZA(this,mI)&&ZA(this,mI).call(this,ZA(this,Bi)))},ZA(this,je).onclose=()=>{ZA(this,it)===1&&(ZA(this,GI)&&ZA(this,GI).call(this,ZA(this,Bi)),Oe(this,it,2),Yd(this,tn,Ld).call(this))},ZA(this,je).onerror=()=>{ZA(this,it)!==1&&ZA(this,it)!==3?(Oe(this,it,2),Yd(this,tn,Ld).call(this)):ZA(this,it)===3&&this.stop()},ZA(this,je).onmessage=A=>{ZA(this,kI)&&ZA(this,kI).call(this,ZA(this,Bi),new Uint8Array(A.data))})}stop(){Oe(this,it,3),ZA(this,je)!=null&&ZA(this,je).readyState!==WebSocket.CONNECTING&&(ZA(this,je).close(),Oe(this,je,null))}restart(){Oe(this,it,0)}publish(A){ZA(this,je)!=null&&ZA(this,it)==1&&ZA(this,je).send(A)}send(A,t){A===ZA(this,Bi)&&this.publish(t)}}tn=new WeakSet,Ld=function(){ZA(this,je)!=null&&(ZA(this,je).close(),Oe(this,je,null)),setTimeout(()=>this.start(),1e3)},it=new WeakMap,mI=new WeakMap,GI=new WeakMap,kI=new WeakMap,Bi=new WeakMap,je=new WeakMap;const Ze=e=>{const A=new Uint8Array(4);return new DataView(A.buffer).setUint32(0,e,!1),A},Bn=e=>{const A=new Uint8Array(e.reduce((g,i)=>g+i.length,0));let t=0;for(const g of e)A.set(g,t),t+=g.length;return A},Ud=async(e,A,t,g)=>new Promise((i,I)=>{const B=new Ye(e),C=setTimeout(()=>{B.stop(),I("timed out, cancelled")},2500),s=Bn([Ze(A),t]);B.on_connect(()=>B.publish(s)),B.on_message((Q,o)=>{const n=new DataView(o.buffer).getUint32(0,!1),a=o.slice(4),h=g(n,a);h!=null&&(clearTimeout(C),B.stop(),i(h))}),B.start()}),zc=2,tg=4,Sg=4,Ui=4,Ci=new Int32Array(2),Kd=new Float32Array(Ci.buffer),vd=new Float64Array(Ci.buffer),Cn=new Uint16Array(new Uint8Array([1,0]).buffer)[0]===1;var Xc;(function(e){e[e.UTF8_BYTES=1]="UTF8_BYTES",e[e.UTF16_STRING=2]="UTF16_STRING"})(Xc||(Xc={}));class Jg{constructor(A){this.bytes_=A,this.position_=0,this.text_decoder_=new TextDecoder}static allocate(A){return new Jg(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 Ci[0]=this.readInt32(A),Kd[0]}readFloat64(A){return Ci[Cn?0:1]=this.readInt32(A),Ci[Cn?1:0]=this.readInt32(A+4),vd[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){Kd[0]=t,this.writeInt32(A,Ci[0])}writeFloat64(A,t){vd[0]=t,this.writeInt32(A,Ci[Cn?0:1]),this.writeInt32(A+4,Ci[Cn?1:0])}getBufferIdentifier(){if(this.bytes_.length<this.position_+tg+Sg)throw new Error("FlatBuffers: ByteBuffer is too short to contain an identifier.");let A="";for(let t=0;t<Sg;t++)A+=String.fromCharCode(this.readInt8(this.position_+tg+t));return A}__offset(A,t){const g=A-this.readInt32(A);return t<this.readInt16(g)?this.readInt16(g+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 g=this.readInt32(A);A+=tg;const i=this.bytes_.subarray(A,A+g);return t===Xc.UTF8_BYTES?i:this.text_decoder_.decode(i)}__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)+tg}__vector_len(A){return this.readInt32(A+this.readInt32(A))}__has_identifier(A){if(A.length!=Sg)throw new Error("FlatBuffers: file identifier must be length "+Sg);for(let t=0;t<Sg;t++)if(A.charCodeAt(t)!=this.readInt8(this.position()+tg+t))return!1;return!0}createScalarList(A,t){const g=[];for(let i=0;i<t;++i){const I=A(i);I!==null&&g.push(I)}return g}createObjList(A,t){const g=[];for(let i=0;i<t;++i){const I=A(i);I!==null&&g.push(I.unpack())}return g}}class sn{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=Jg.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 g=~(this.bb.capacity()-this.space+t)+1&A-1;for(;this.space<g+A+t;){const i=this.bb.capacity();this.bb=sn.growByteBuffer(this.bb),this.space+=this.bb.capacity()-i}this.pad(g)}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,g){(this.force_defaults||t!=g)&&(this.addInt8(t),this.slot(A))}addFieldInt16(A,t,g){(this.force_defaults||t!=g)&&(this.addInt16(t),this.slot(A))}addFieldInt32(A,t,g){(this.force_defaults||t!=g)&&(this.addInt32(t),this.slot(A))}addFieldInt64(A,t,g){(this.force_defaults||t!==g)&&(this.addInt64(t),this.slot(A))}addFieldFloat32(A,t,g){(this.force_defaults||t!=g)&&(this.addFloat32(t),this.slot(A))}addFieldFloat64(A,t,g){(this.force_defaults||t!=g)&&(this.addFloat64(t),this.slot(A))}addFieldOffset(A,t,g){(this.force_defaults||t!=g)&&(this.addOffset(t),this.slot(A))}addFieldStruct(A,t,g){t!=g&&(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 g=t<<1,i=Jg.allocate(g);return i.setPosition(g-t),i.bytes().set(A.bytes(),g-t),i}addOffset(A){this.prep(tg,0),this.writeInt32(this.offset()-A+tg)}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 g=t+1;for(;t>=0;t--)this.addInt16(this.vtable[t]!=0?A-this.vtable[t]:0);const i=2;this.addInt16(A-this.object_start);const I=(g+i)*zc;this.addInt16(I);let B=0;const C=this.space;A:for(t=0;t<this.vtables.length;t++){const s=this.bb.capacity()-this.vtables[t];if(I==this.bb.readInt16(s)){for(let Q=zc;Q<I;Q+=zc)if(this.bb.readInt16(C+Q)!=this.bb.readInt16(s+Q))continue A;B=this.vtables[t];break}}return B?(this.space=this.bb.capacity()-A,this.bb.writeInt32(this.space,B-A)):(this.vtables.push(this.offset()),this.bb.writeInt32(this.bb.capacity()-A,this.offset()-A)),this.isNested=!1,A}finish(A,t,g){const i=g?Ui:0;if(t){const I=t;if(this.prep(this.minalign,tg+Sg+i),I.length!=Sg)throw new TypeError("FlatBuffers: file identifier must be length "+Sg);for(let B=Sg-1;B>=0;B--)this.writeInt8(I.charCodeAt(B))}this.prep(this.minalign,tg+i),this.addOffset(A),i&&this.addInt32(this.bb.capacity()-this.space),this.bb.setPosition(this.space)}finishSizePrefixed(A,t){this.finish(A,t,!0)}requiredField(A,t){const g=this.bb.capacity()-A,i=g-this.bb.readInt32(g);if(!(t<this.bb.readInt16(i)&&this.bb.readInt16(i+t)!=0))throw new TypeError("FlatBuffers: field "+t+" must be set")}startVector(A,t,g){this.notNested(),this.vector_num_elems=t,this.prep(tg,A*t),this.prep(g,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 g=0;g<A.length;++g){const i=A[g];if(i!==null)t.push(this.createObjectOffset(i));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 Ki{constructor(){lA(this,"bb",null);lA(this,"bb_pos",0)}__init(A,t){return this.bb_pos=A,this.bb=t,this}static getRootAsFileRequest(A,t){return(t||new Ki).__init(A.readInt32(A.position())+A.position(),A)}static getSizePrefixedRootAsFileRequest(A,t){return A.setPosition(A.position()+Ui),(t||new Ki).__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 Ki.startFileRequest(A),Ki.addTarget(A,t),Ki.endFileRequest(A)}unpack(){return new qd(this.target())}unpackTo(A){A.target=this.target()}}class qd{constructor(A=null){lA(this,"target");this.target=A}pack(A){const t=this.target!==null?A.createString(this.target):0;return Ki.createFileRequest(A,t)}}class xt{constructor(){lA(this,"bb",null);lA(this,"bb_pos",0)}__init(A,t){return this.bb_pos=A,this.bb=t,this}static getRootAsFileResponse(A,t){return(t||new xt).__init(A.readInt32(A.position())+A.position(),A)}static getSizePrefixedRootAsFileResponse(A,t){return A.setPosition(A.position()+Ui),(t||new xt).__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 g=t.length-1;g>=0;g--)A.addInt8(t[g]);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,g,i){return xt.startFileResponse(A),xt.addTarget(A,t),xt.addContent(A,g),xt.addMetadata(A,i),xt.endFileResponse(A)}unpack(){return new IJ(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 IJ{constructor(A=null,t=null,g=[]){lA(this,"target");lA(this,"content");lA(this,"metadata");this.target=A,this.content=t,this.metadata=g}pack(A){const t=this.target!==null?A.createString(this.target):0,g=this.content!==null?A.createString(this.content):0,i=xt.createMetadataVector(A,this.metadata);return xt.createFileResponse(A,t,g,i)}}var gg;(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_Unique_FrameCache=8]="Client_Unique_FrameCache",e[e.Client_Tagged_FrameCache=9]="Client_Tagged_FrameCache",e[e.Client_Unique_Frame_Loaded=10]="Client_Unique_Frame_Loaded",e[e.Client_Tagged_Frame_Loaded=11]="Client_Tagged_Frame_Loaded",e[e.Client_Unique_Frame_Subscribe=12]="Client_Unique_Frame_Subscribe",e[e.Client_Tagged_Frame_Subscribe=13]="Client_Tagged_Frame_Subscribe",e[e.Client_Unique_Frame_Unsubscribe=14]="Client_Unique_Frame_Unsubscribe",e[e.Client_Tagged_Frame_Unsubscribe=15]="Client_Tagged_Frame_Unsubscribe",e[e.Client_Unique_Value_Request=16]="Client_Unique_Value_Request",e[e.Client_Tagged_Value_Request=17]="Client_Tagged_Value_Request",e[e.Server_Unique_Value_Response=18]="Server_Unique_Value_Response",e[e.Server_Tagged_Value_Response=19]="Server_Tagged_Value_Response",e[e.Unique_Value_Update=20]="Unique_Value_Update",e[e.Tagged_Value_Update=21]="Tagged_Value_Update",e[e.Client_Unique_Signal_Request=22]="Client_Unique_Signal_Request",e[e.Client_Tagged_Signal_Request=23]="Client_Tagged_Signal_Request",e[e.Server_Unique_Signal_Response=24]="Server_Unique_Signal_Response",e[e.Server_Tagged_Signal_Response=25]="Server_Tagged_Signal_Response",e[e.Client_Unique_Signal_Notify=26]="Client_Unique_Signal_Notify",e[e.Client_Tagged_Signal_Notify=27]="Client_Tagged_Signal_Notify"})(gg||(gg={}));var xd;(function(e){e[e.None=0]="None",e[e.Boolean=1]="Boolean",e[e.Number=2]="Number",e[e.Double=3]="Double",e[e.String=4]="String",e[e.Buffer=5]="Buffer"})(xd||(xd={}));class si{constructor(){lA(this,"bb",null);lA(this,"bb_pos",0)}__init(A,t){return this.bb_pos=A,this.bb=t,this}static getRootAsTaggedFrameInfoRequest(A,t){return(t||new si).__init(A.readInt32(A.position())+A.position(),A)}static getSizePrefixedRootAsTaggedFrameInfoRequest(A,t){return A.setPosition(A.position()+Ui),(t||new si).__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,g){return si.startTaggedFrameInfoRequest(A),si.addId(A,t),si.addTag(A,g),si.endTaggedFrameInfoRequest(A)}unpack(){return new Hd(this.id(),this.tag())}unpackTo(A){A.id=this.id(),A.tag=this.tag()}}class Hd{constructor(A=null,t=null){lA(this,"id");lA(this,"tag");this.id=A,this.tag=t}pack(A){const t=this.id!==null?A.createString(this.id):0,g=this.tag!==null?A.createString(this.tag):0;return si.createTaggedFrameInfoRequest(A,t,g)}}class Ht{constructor(){lA(this,"bb",null);lA(this,"bb_pos",0)}__init(A,t){return this.bb_pos=A,this.bb=t,this}static getRootAsTaggedFrameInfoResponse(A,t){return(t||new Ht).__init(A.readInt32(A.position())+A.position(),A)}static getSizePrefixedRootAsTaggedFrameInfoResponse(A,t){return A.setPosition(A.position()+Ui),(t||new Ht).__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,g,i){return Ht.startTaggedFrameInfoResponse(A),Ht.addId(A,t),Ht.addTag(A,g),Ht.addValue(A,i),Ht.endTaggedFrameInfoResponse(A)}unpack(){return new BJ(this.id(),this.tag(),this.value())}unpackTo(A){A.id=this.id(),A.tag=this.tag(),A.value=this.value()}}class BJ{constructor(A=null,t=null,g=null){lA(this,"id");lA(this,"tag");lA(this,"value");this.id=A,this.tag=t,this.value=g}pack(A){const t=this.id!==null?A.createString(this.id):0,g=this.tag!==null?A.createString(this.tag):0,i=this.value!==null?A.createString(this.value):0;return Ht.createTaggedFrameInfoResponse(A,t,g,i)}}var _d;(function(e){e[e.NONE=0]="NONE",e[e.ValueBoolean=1]="ValueBoolean",e[e.ValueNumber=2]="ValueNumber",e[e.ValueDouble=3]="ValueDouble",e[e.ValueString=4]="ValueString",e[e.ValueBuffer=5]="ValueBuffer"})(_d||(_d={}));class vi{constructor(){lA(this,"bb",null);lA(this,"bb_pos",0)}__init(A,t){return this.bb_pos=A,this.bb=t,this}static getRootAsUniqueFrameInfoRequest(A,t){return(t||new vi).__init(A.readInt32(A.position())+A.position(),A)}static getSizePrefixedRootAsUniqueFrameInfoRequest(A,t){return A.setPosition(A.position()+Ui),(t||new vi).__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 vi.startUniqueFrameInfoRequest(A),vi.addId(A,t),vi.endUniqueFrameInfoRequest(A)}unpack(){return new Pd(this.id())}unpackTo(A){A.id=this.id()}}class Pd{constructor(A=null){lA(this,"id");this.id=A}pack(A){const t=this.id!==null?A.createString(this.id):0;return vi.createUniqueFrameInfoRequest(A,t)}}class ig{constructor(){lA(this,"bb",null);lA(this,"bb_pos",0)}__init(A,t){return this.bb_pos=A,this.bb=t,this}static getRootAsUniqueFrameInfoResponse(A,t){return(t||new ig).__init(A.readInt32(A.position())+A.position(),A)}static getSizePrefixedRootAsUniqueFrameInfoResponse(A,t){return A.setPosition(A.position()+Ui),(t||new ig).__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,g){return ig.startUniqueFrameInfoResponse(A),ig.addId(A,t),ig.addValue(A,g),ig.endUniqueFrameInfoResponse(A)}unpack(){return new CJ(this.id(),this.value())}unpackTo(A){A.id=this.id(),A.value=this.value()}}class CJ{constructor(A=null,t=null){lA(this,"id");lA(this,"value");this.id=A,this.value=t}pack(A){const t=this.id!==null?A.createString(this.id):0,g=this.value!==null?A.createString(this.value):0;return ig.createUniqueFrameInfoResponse(A,t,g)}}var sJ=[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,80,3,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,343,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,330,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,726,6,110,6,6,9,4759,9,787719,239],Td=[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,71,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,2,60,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,328,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,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,42,9,8936,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,496,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,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],QJ="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・",jd="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟍꟐꟑꟓꟕ-Ƛꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",$c={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"},Al="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",oJ={5:Al,"5module":Al+" export import",6:Al+" const class extends export import super"},EJ=/^in(stanceof)?$/,aJ=new RegExp("["+jd+"]"),nJ=new RegExp("["+jd+QJ+"]");function el(e,A){for(var t=65536,g=0;g<A.length;g+=2){if(t+=A[g],t>e)return!1;if(t+=A[g+1],t>=e)return!0}return!1}function _t(e,A){return e<65?e===36:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&aJ.test(String.fromCharCode(e)):A===!1?!1:el(e,Td)}function Qi(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&&nJ.test(String.fromCharCode(e)):A===!1?!1:el(e,Td)||el(e,sJ)}var HA=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 Ft(e,A){return new HA(e,{beforeExpr:!0,binop:A})}var Yt={beforeExpr:!0},lt={startsExpr:!0},SI={};function ee(e,A){return A===void 0&&(A={}),A.keyword=e,SI[e]=new HA(e,A)}var S={num:new HA("num",lt),regexp:new HA("regexp",lt),string:new HA("string",lt),name:new HA("name",lt),privateId:new HA("privateId",lt),eof:new HA("eof"),bracketL:new HA("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new HA("]"),braceL:new HA("{",{beforeExpr:!0,startsExpr:!0}),braceR:new HA("}"),parenL:new HA("(",{beforeExpr:!0,startsExpr:!0}),parenR:new HA(")"),comma:new HA(",",Yt),semi:new HA(";",Yt),colon:new HA(":",Yt),dot:new HA("."),question:new HA("?",Yt),questionDot:new HA("?."),arrow:new HA("=>",Yt),template:new HA("template"),invalidTemplate:new HA("invalidTemplate"),ellipsis:new HA("...",Yt),backQuote:new HA("`",lt),dollarBraceL:new HA("${",{beforeExpr:!0,startsExpr:!0}),eq:new HA("=",{beforeExpr:!0,isAssign:!0}),assign:new HA("_=",{beforeExpr:!0,isAssign:!0}),incDec:new HA("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new HA("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:Ft("||",1),logicalAND:Ft("&&",2),bitwiseOR:Ft("|",3),bitwiseXOR:Ft("^",4),bitwiseAND:Ft("&",5),equality:Ft("==/!=/===/!==",6),relational:Ft("</>/<=/>=",7),bitShift:Ft("<</>>/>>>",8),plusMin:new HA("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:Ft("%",10),star:Ft("*",10),slash:Ft("/",10),starstar:new HA("**",{beforeExpr:!0}),coalesce:Ft("??",1),_break:ee("break"),_case:ee("case",Yt),_catch:ee("catch"),_continue:ee("continue"),_debugger:ee("debugger"),_default:ee("default",Yt),_do:ee("do",{isLoop:!0,beforeExpr:!0}),_else:ee("else",Yt),_finally:ee("finally"),_for:ee("for",{isLoop:!0}),_function:ee("function",lt),_if:ee("if"),_return:ee("return",Yt),_switch:ee("switch"),_throw:ee("throw",Yt),_try:ee("try"),_var:ee("var"),_const:ee("const"),_while:ee("while",{isLoop:!0}),_with:ee("with"),_new:ee("new",{beforeExpr:!0,startsExpr:!0}),_this:ee("this",lt),_super:ee("super",lt),_class:ee("class",lt),_extends:ee("extends",Yt),_export:ee("export"),_import:ee("import",lt),_null:ee("null",lt),_true:ee("true",lt),_false:ee("false",lt),_in:ee("in",{beforeExpr:!0,binop:7}),_instanceof:ee("instanceof",{beforeExpr:!0,binop:7}),_typeof:ee("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:ee("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:ee("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},yt=/\r\n?|\n|\u2028|\u2029/,Od=new RegExp(yt.source,"g");function qi(e){return e===10||e===13||e===8232||e===8233}function Zd(e,A,t){t===void 0&&(t=e.length);for(var g=A;g<t;g++){var i=e.charCodeAt(g);if(qi(i))return g<t-1&&i===13&&e.charCodeAt(g+1)===10?g+2:g+1}return-1}var tl=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,Lt=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,Vd=Object.prototype,rJ=Vd.hasOwnProperty,cJ=Vd.toString,JI=Object.hasOwn||function(e,A){return rJ.call(e,A)},Wd=Array.isArray||function(e){return cJ.call(e)==="[object Array]"},zd=Object.create(null);function oi(e){return zd[e]||(zd[e]=new RegExp("^(?:"+e.replace(/ /g,"|")+")$"))}function Fg(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10)+55296,(e&1023)+56320))}var lJ=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,FI=function(A,t){this.line=A,this.column=t};FI.prototype.offset=function(A){return new FI(this.line,this.column+A)};var SB=function(A,t,g){this.start=t,this.end=g,A.sourceFile!==null&&(this.source=A.sourceFile)};function gl(e,A){for(var t=1,g=0;;){var i=Zd(e,g,A);if(i<0)return new FI(t,A-g);++t,g=i}}var Qn={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},Xd=!1;function hJ(e){var A={};for(var t in Qn)A[t]=e&&JI(e,t)?e[t]:Qn[t];if(A.ecmaVersion==="latest"?A.ecmaVersion=1e8:A.ecmaVersion==null?(!Xd&&typeof console=="object"&&console.warn&&(Xd=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
1
+ var G4=Object.defineProperty;var gJ=Fe=>{throw TypeError(Fe)};var k4=(Fe,Ye,Ze)=>Ye in Fe?G4(Fe,Ye,{enumerable:!0,configurable:!0,writable:!0,value:Ze}):Fe[Ye]=Ze;var lA=(Fe,Ye,Ze)=>k4(Fe,typeof Ye!="symbol"?Ye+"":Ye,Ze),Fd=(Fe,Ye,Ze)=>Ye.has(Fe)||gJ("Cannot "+Ze);var ZA=(Fe,Ye,Ze)=>(Fd(Fe,Ye,"read from private field"),Ze?Ze.call(Fe):Ye.get(Fe)),Mg=(Fe,Ye,Ze)=>Ye.has(Fe)?gJ("Cannot add the same private member more than once"):Ye instanceof WeakSet?Ye.add(Fe):Ye.set(Fe,Ze),Oe=(Fe,Ye,Ze,Bn)=>(Fd(Fe,Ye,"write to private field"),Bn?Bn.call(Fe,Ze):Ye.set(Fe,Ze),Ze),Yd=(Fe,Ye,Ze)=>(Fd(Fe,Ye,"access private method"),Ze);(function(){"use strict";var tn,Ld,it,mI,GI,kI,Bi,je,RI,GB,eJ;class Ye{constructor(A){Mg(this,tn);Mg(this,it);Mg(this,mI);Mg(this,GI);Mg(this,kI);Mg(this,Bi);Mg(this,je);Oe(this,Bi,A),Oe(this,it,0),Oe(this,mI,null),Oe(this,GI,null),Oe(this,kI,null),Oe(this,je,null)}on_message(A){Oe(this,kI,A)}on_connect(A){Oe(this,mI,A)}on_disconnect(A){Oe(this,GI,A)}start(){ZA(this,je)==null&&ZA(this,it)!==1&&ZA(this,it)!==3&&(Oe(this,je,new WebSocket(ZA(this,Bi))),ZA(this,je).binaryType="arraybuffer",ZA(this,je).onopen=()=>{ZA(this,it)==3?this.stop():(Oe(this,it,1),ZA(this,mI)&&ZA(this,mI).call(this,ZA(this,Bi)))},ZA(this,je).onclose=()=>{ZA(this,it)===1&&(ZA(this,GI)&&ZA(this,GI).call(this,ZA(this,Bi)),Oe(this,it,2),Yd(this,tn,Ld).call(this))},ZA(this,je).onerror=()=>{ZA(this,it)!==1&&ZA(this,it)!==3?(Oe(this,it,2),Yd(this,tn,Ld).call(this)):ZA(this,it)===3&&this.stop()},ZA(this,je).onmessage=A=>{ZA(this,kI)&&ZA(this,kI).call(this,ZA(this,Bi),new Uint8Array(A.data))})}stop(){Oe(this,it,3),ZA(this,je)!=null&&ZA(this,je).readyState!==WebSocket.CONNECTING&&(ZA(this,je).close(),Oe(this,je,null))}restart(){Oe(this,it,0)}publish(A){ZA(this,je)!=null&&ZA(this,it)==1&&ZA(this,je).send(A)}send(A,t){A===ZA(this,Bi)&&this.publish(t)}}tn=new WeakSet,Ld=function(){ZA(this,je)!=null&&(ZA(this,je).close(),Oe(this,je,null)),setTimeout(()=>this.start(),1e3)},it=new WeakMap,mI=new WeakMap,GI=new WeakMap,kI=new WeakMap,Bi=new WeakMap,je=new WeakMap;const Ze=e=>{const A=new Uint8Array(4);return new DataView(A.buffer).setUint32(0,e,!1),A},Bn=e=>{const A=new Uint8Array(e.reduce((g,i)=>g+i.length,0));let t=0;for(const g of e)A.set(g,t),t+=g.length;return A},Ud=async(e,A,t,g)=>new Promise((i,I)=>{const B=new Ye(e),C=setTimeout(()=>{B.stop(),I("timed out, cancelled")},2500),s=Bn([Ze(A),t]);B.on_connect(()=>B.publish(s)),B.on_message((Q,o)=>{const n=new DataView(o.buffer).getUint32(0,!1),a=o.slice(4),h=g(n,a);h!=null&&(clearTimeout(C),B.stop(),i(h))}),B.start()}),zc=2,tg=4,Sg=4,Ui=4,Ci=new Int32Array(2),Kd=new Float32Array(Ci.buffer),vd=new Float64Array(Ci.buffer),Cn=new Uint16Array(new Uint8Array([1,0]).buffer)[0]===1;var Xc;(function(e){e[e.UTF8_BYTES=1]="UTF8_BYTES",e[e.UTF16_STRING=2]="UTF16_STRING"})(Xc||(Xc={}));class Jg{constructor(A){this.bytes_=A,this.position_=0,this.text_decoder_=new TextDecoder}static allocate(A){return new Jg(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 Ci[0]=this.readInt32(A),Kd[0]}readFloat64(A){return Ci[Cn?0:1]=this.readInt32(A),Ci[Cn?1:0]=this.readInt32(A+4),vd[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){Kd[0]=t,this.writeInt32(A,Ci[0])}writeFloat64(A,t){vd[0]=t,this.writeInt32(A,Ci[Cn?0:1]),this.writeInt32(A+4,Ci[Cn?1:0])}getBufferIdentifier(){if(this.bytes_.length<this.position_+tg+Sg)throw new Error("FlatBuffers: ByteBuffer is too short to contain an identifier.");let A="";for(let t=0;t<Sg;t++)A+=String.fromCharCode(this.readInt8(this.position_+tg+t));return A}__offset(A,t){const g=A-this.readInt32(A);return t<this.readInt16(g)?this.readInt16(g+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 g=this.readInt32(A);A+=tg;const i=this.bytes_.subarray(A,A+g);return t===Xc.UTF8_BYTES?i:this.text_decoder_.decode(i)}__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)+tg}__vector_len(A){return this.readInt32(A+this.readInt32(A))}__has_identifier(A){if(A.length!=Sg)throw new Error("FlatBuffers: file identifier must be length "+Sg);for(let t=0;t<Sg;t++)if(A.charCodeAt(t)!=this.readInt8(this.position()+tg+t))return!1;return!0}createScalarList(A,t){const g=[];for(let i=0;i<t;++i){const I=A(i);I!==null&&g.push(I)}return g}createObjList(A,t){const g=[];for(let i=0;i<t;++i){const I=A(i);I!==null&&g.push(I.unpack())}return g}}class sn{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=Jg.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 g=~(this.bb.capacity()-this.space+t)+1&A-1;for(;this.space<g+A+t;){const i=this.bb.capacity();this.bb=sn.growByteBuffer(this.bb),this.space+=this.bb.capacity()-i}this.pad(g)}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,g){(this.force_defaults||t!=g)&&(this.addInt8(t),this.slot(A))}addFieldInt16(A,t,g){(this.force_defaults||t!=g)&&(this.addInt16(t),this.slot(A))}addFieldInt32(A,t,g){(this.force_defaults||t!=g)&&(this.addInt32(t),this.slot(A))}addFieldInt64(A,t,g){(this.force_defaults||t!==g)&&(this.addInt64(t),this.slot(A))}addFieldFloat32(A,t,g){(this.force_defaults||t!=g)&&(this.addFloat32(t),this.slot(A))}addFieldFloat64(A,t,g){(this.force_defaults||t!=g)&&(this.addFloat64(t),this.slot(A))}addFieldOffset(A,t,g){(this.force_defaults||t!=g)&&(this.addOffset(t),this.slot(A))}addFieldStruct(A,t,g){t!=g&&(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 g=t<<1,i=Jg.allocate(g);return i.setPosition(g-t),i.bytes().set(A.bytes(),g-t),i}addOffset(A){this.prep(tg,0),this.writeInt32(this.offset()-A+tg)}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 g=t+1;for(;t>=0;t--)this.addInt16(this.vtable[t]!=0?A-this.vtable[t]:0);const i=2;this.addInt16(A-this.object_start);const I=(g+i)*zc;this.addInt16(I);let B=0;const C=this.space;A:for(t=0;t<this.vtables.length;t++){const s=this.bb.capacity()-this.vtables[t];if(I==this.bb.readInt16(s)){for(let Q=zc;Q<I;Q+=zc)if(this.bb.readInt16(C+Q)!=this.bb.readInt16(s+Q))continue A;B=this.vtables[t];break}}return B?(this.space=this.bb.capacity()-A,this.bb.writeInt32(this.space,B-A)):(this.vtables.push(this.offset()),this.bb.writeInt32(this.bb.capacity()-A,this.offset()-A)),this.isNested=!1,A}finish(A,t,g){const i=g?Ui:0;if(t){const I=t;if(this.prep(this.minalign,tg+Sg+i),I.length!=Sg)throw new TypeError("FlatBuffers: file identifier must be length "+Sg);for(let B=Sg-1;B>=0;B--)this.writeInt8(I.charCodeAt(B))}this.prep(this.minalign,tg+i),this.addOffset(A),i&&this.addInt32(this.bb.capacity()-this.space),this.bb.setPosition(this.space)}finishSizePrefixed(A,t){this.finish(A,t,!0)}requiredField(A,t){const g=this.bb.capacity()-A,i=g-this.bb.readInt32(g);if(!(t<this.bb.readInt16(i)&&this.bb.readInt16(i+t)!=0))throw new TypeError("FlatBuffers: field "+t+" must be set")}startVector(A,t,g){this.notNested(),this.vector_num_elems=t,this.prep(tg,A*t),this.prep(g,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 g=0;g<A.length;++g){const i=A[g];if(i!==null)t.push(this.createObjectOffset(i));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 Ki{constructor(){lA(this,"bb",null);lA(this,"bb_pos",0)}__init(A,t){return this.bb_pos=A,this.bb=t,this}static getRootAsFileRequest(A,t){return(t||new Ki).__init(A.readInt32(A.position())+A.position(),A)}static getSizePrefixedRootAsFileRequest(A,t){return A.setPosition(A.position()+Ui),(t||new Ki).__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 Ki.startFileRequest(A),Ki.addTarget(A,t),Ki.endFileRequest(A)}unpack(){return new qd(this.target())}unpackTo(A){A.target=this.target()}}class qd{constructor(A=null){lA(this,"target");this.target=A}pack(A){const t=this.target!==null?A.createString(this.target):0;return Ki.createFileRequest(A,t)}}class xt{constructor(){lA(this,"bb",null);lA(this,"bb_pos",0)}__init(A,t){return this.bb_pos=A,this.bb=t,this}static getRootAsFileResponse(A,t){return(t||new xt).__init(A.readInt32(A.position())+A.position(),A)}static getSizePrefixedRootAsFileResponse(A,t){return A.setPosition(A.position()+Ui),(t||new xt).__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 g=t.length-1;g>=0;g--)A.addInt8(t[g]);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,g,i){return xt.startFileResponse(A),xt.addTarget(A,t),xt.addContent(A,g),xt.addMetadata(A,i),xt.endFileResponse(A)}unpack(){return new IJ(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 IJ{constructor(A=null,t=null,g=[]){lA(this,"target");lA(this,"content");lA(this,"metadata");this.target=A,this.content=t,this.metadata=g}pack(A){const t=this.target!==null?A.createString(this.target):0,g=this.content!==null?A.createString(this.content):0,i=xt.createMetadataVector(A,this.metadata);return xt.createFileResponse(A,t,g,i)}}var gg;(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_Unique_FrameCache=8]="Client_Unique_FrameCache",e[e.Client_Tagged_FrameCache=9]="Client_Tagged_FrameCache",e[e.Client_Unique_Frame_Loaded=10]="Client_Unique_Frame_Loaded",e[e.Client_Tagged_Frame_Loaded=11]="Client_Tagged_Frame_Loaded",e[e.Client_Unique_Frame_Subscribe=12]="Client_Unique_Frame_Subscribe",e[e.Client_Tagged_Frame_Subscribe=13]="Client_Tagged_Frame_Subscribe",e[e.Client_Unique_Frame_Unsubscribe=14]="Client_Unique_Frame_Unsubscribe",e[e.Client_Tagged_Frame_Unsubscribe=15]="Client_Tagged_Frame_Unsubscribe",e[e.Client_Unique_Value_Request=16]="Client_Unique_Value_Request",e[e.Client_Tagged_Value_Request=17]="Client_Tagged_Value_Request",e[e.Server_Unique_Value_Response=18]="Server_Unique_Value_Response",e[e.Server_Tagged_Value_Response=19]="Server_Tagged_Value_Response",e[e.Unique_Value_Update=20]="Unique_Value_Update",e[e.Tagged_Value_Update=21]="Tagged_Value_Update",e[e.Client_Unique_Signal_Request=22]="Client_Unique_Signal_Request",e[e.Client_Tagged_Signal_Request=23]="Client_Tagged_Signal_Request",e[e.Server_Unique_Signal_Response=24]="Server_Unique_Signal_Response",e[e.Server_Tagged_Signal_Response=25]="Server_Tagged_Signal_Response",e[e.Client_Unique_Signal_Notify=26]="Client_Unique_Signal_Notify",e[e.Client_Tagged_Signal_Notify=27]="Client_Tagged_Signal_Notify"})(gg||(gg={}));var xd;(function(e){e[e.None=0]="None",e[e.Boolean=1]="Boolean",e[e.Number=2]="Number",e[e.Double=3]="Double",e[e.String=4]="String",e[e.Buffer=5]="Buffer"})(xd||(xd={}));class si{constructor(){lA(this,"bb",null);lA(this,"bb_pos",0)}__init(A,t){return this.bb_pos=A,this.bb=t,this}static getRootAsTaggedFrameInfoRequest(A,t){return(t||new si).__init(A.readInt32(A.position())+A.position(),A)}static getSizePrefixedRootAsTaggedFrameInfoRequest(A,t){return A.setPosition(A.position()+Ui),(t||new si).__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,g){return si.startTaggedFrameInfoRequest(A),si.addId(A,t),si.addTag(A,g),si.endTaggedFrameInfoRequest(A)}unpack(){return new Hd(this.id(),this.tag())}unpackTo(A){A.id=this.id(),A.tag=this.tag()}}class Hd{constructor(A=null,t=null){lA(this,"id");lA(this,"tag");this.id=A,this.tag=t}pack(A){const t=this.id!==null?A.createString(this.id):0,g=this.tag!==null?A.createString(this.tag):0;return si.createTaggedFrameInfoRequest(A,t,g)}}class Ht{constructor(){lA(this,"bb",null);lA(this,"bb_pos",0)}__init(A,t){return this.bb_pos=A,this.bb=t,this}static getRootAsTaggedFrameInfoResponse(A,t){return(t||new Ht).__init(A.readInt32(A.position())+A.position(),A)}static getSizePrefixedRootAsTaggedFrameInfoResponse(A,t){return A.setPosition(A.position()+Ui),(t||new Ht).__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,g,i){return Ht.startTaggedFrameInfoResponse(A),Ht.addId(A,t),Ht.addTag(A,g),Ht.addValue(A,i),Ht.endTaggedFrameInfoResponse(A)}unpack(){return new BJ(this.id(),this.tag(),this.value())}unpackTo(A){A.id=this.id(),A.tag=this.tag(),A.value=this.value()}}class BJ{constructor(A=null,t=null,g=null){lA(this,"id");lA(this,"tag");lA(this,"value");this.id=A,this.tag=t,this.value=g}pack(A){const t=this.id!==null?A.createString(this.id):0,g=this.tag!==null?A.createString(this.tag):0,i=this.value!==null?A.createString(this.value):0;return Ht.createTaggedFrameInfoResponse(A,t,g,i)}}var _d;(function(e){e[e.NONE=0]="NONE",e[e.ValueBoolean=1]="ValueBoolean",e[e.ValueNumber=2]="ValueNumber",e[e.ValueDouble=3]="ValueDouble",e[e.ValueString=4]="ValueString",e[e.ValueBuffer=5]="ValueBuffer"})(_d||(_d={}));class vi{constructor(){lA(this,"bb",null);lA(this,"bb_pos",0)}__init(A,t){return this.bb_pos=A,this.bb=t,this}static getRootAsUniqueFrameInfoRequest(A,t){return(t||new vi).__init(A.readInt32(A.position())+A.position(),A)}static getSizePrefixedRootAsUniqueFrameInfoRequest(A,t){return A.setPosition(A.position()+Ui),(t||new vi).__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 vi.startUniqueFrameInfoRequest(A),vi.addId(A,t),vi.endUniqueFrameInfoRequest(A)}unpack(){return new Pd(this.id())}unpackTo(A){A.id=this.id()}}class Pd{constructor(A=null){lA(this,"id");this.id=A}pack(A){const t=this.id!==null?A.createString(this.id):0;return vi.createUniqueFrameInfoRequest(A,t)}}class ig{constructor(){lA(this,"bb",null);lA(this,"bb_pos",0)}__init(A,t){return this.bb_pos=A,this.bb=t,this}static getRootAsUniqueFrameInfoResponse(A,t){return(t||new ig).__init(A.readInt32(A.position())+A.position(),A)}static getSizePrefixedRootAsUniqueFrameInfoResponse(A,t){return A.setPosition(A.position()+Ui),(t||new ig).__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,g){return ig.startUniqueFrameInfoResponse(A),ig.addId(A,t),ig.addValue(A,g),ig.endUniqueFrameInfoResponse(A)}unpack(){return new CJ(this.id(),this.value())}unpackTo(A){A.id=this.id(),A.value=this.value()}}class CJ{constructor(A=null,t=null){lA(this,"id");lA(this,"value");this.id=A,this.value=t}pack(A){const t=this.id!==null?A.createString(this.id):0,g=this.value!==null?A.createString(this.value):0;return ig.createUniqueFrameInfoResponse(A,t,g)}}var sJ=[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,80,3,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,343,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,330,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,726,6,110,6,6,9,4759,9,787719,239],Td=[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,71,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,2,60,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,328,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,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,42,9,8936,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,496,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,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],QJ="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・",jd="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟍꟐꟑꟓꟕ-Ƛꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",$c={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"},Al="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",oJ={5:Al,"5module":Al+" export import",6:Al+" const class extends export import super"},EJ=/^in(stanceof)?$/,aJ=new RegExp("["+jd+"]"),nJ=new RegExp("["+jd+QJ+"]");function el(e,A){for(var t=65536,g=0;g<A.length;g+=2){if(t+=A[g],t>e)return!1;if(t+=A[g+1],t>=e)return!0}return!1}function _t(e,A){return e<65?e===36:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&aJ.test(String.fromCharCode(e)):A===!1?!1:el(e,Td)}function Qi(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&&nJ.test(String.fromCharCode(e)):A===!1?!1:el(e,Td)||el(e,sJ)}var HA=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 Ft(e,A){return new HA(e,{beforeExpr:!0,binop:A})}var Yt={beforeExpr:!0},lt={startsExpr:!0},SI={};function ee(e,A){return A===void 0&&(A={}),A.keyword=e,SI[e]=new HA(e,A)}var S={num:new HA("num",lt),regexp:new HA("regexp",lt),string:new HA("string",lt),name:new HA("name",lt),privateId:new HA("privateId",lt),eof:new HA("eof"),bracketL:new HA("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new HA("]"),braceL:new HA("{",{beforeExpr:!0,startsExpr:!0}),braceR:new HA("}"),parenL:new HA("(",{beforeExpr:!0,startsExpr:!0}),parenR:new HA(")"),comma:new HA(",",Yt),semi:new HA(";",Yt),colon:new HA(":",Yt),dot:new HA("."),question:new HA("?",Yt),questionDot:new HA("?."),arrow:new HA("=>",Yt),template:new HA("template"),invalidTemplate:new HA("invalidTemplate"),ellipsis:new HA("...",Yt),backQuote:new HA("`",lt),dollarBraceL:new HA("${",{beforeExpr:!0,startsExpr:!0}),eq:new HA("=",{beforeExpr:!0,isAssign:!0}),assign:new HA("_=",{beforeExpr:!0,isAssign:!0}),incDec:new HA("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new HA("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:Ft("||",1),logicalAND:Ft("&&",2),bitwiseOR:Ft("|",3),bitwiseXOR:Ft("^",4),bitwiseAND:Ft("&",5),equality:Ft("==/!=/===/!==",6),relational:Ft("</>/<=/>=",7),bitShift:Ft("<</>>/>>>",8),plusMin:new HA("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:Ft("%",10),star:Ft("*",10),slash:Ft("/",10),starstar:new HA("**",{beforeExpr:!0}),coalesce:Ft("??",1),_break:ee("break"),_case:ee("case",Yt),_catch:ee("catch"),_continue:ee("continue"),_debugger:ee("debugger"),_default:ee("default",Yt),_do:ee("do",{isLoop:!0,beforeExpr:!0}),_else:ee("else",Yt),_finally:ee("finally"),_for:ee("for",{isLoop:!0}),_function:ee("function",lt),_if:ee("if"),_return:ee("return",Yt),_switch:ee("switch"),_throw:ee("throw",Yt),_try:ee("try"),_var:ee("var"),_const:ee("const"),_while:ee("while",{isLoop:!0}),_with:ee("with"),_new:ee("new",{beforeExpr:!0,startsExpr:!0}),_this:ee("this",lt),_super:ee("super",lt),_class:ee("class",lt),_extends:ee("extends",Yt),_export:ee("export"),_import:ee("import",lt),_null:ee("null",lt),_true:ee("true",lt),_false:ee("false",lt),_in:ee("in",{beforeExpr:!0,binop:7}),_instanceof:ee("instanceof",{beforeExpr:!0,binop:7}),_typeof:ee("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:ee("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:ee("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},yt=/\r\n?|\n|\u2028|\u2029/,Od=new RegExp(yt.source,"g");function qi(e){return e===10||e===13||e===8232||e===8233}function Zd(e,A,t){t===void 0&&(t=e.length);for(var g=A;g<t;g++){var i=e.charCodeAt(g);if(qi(i))return g<t-1&&i===13&&e.charCodeAt(g+1)===10?g+2:g+1}return-1}var tl=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,Lt=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,Vd=Object.prototype,rJ=Vd.hasOwnProperty,cJ=Vd.toString,JI=Object.hasOwn||function(e,A){return rJ.call(e,A)},Wd=Array.isArray||function(e){return cJ.call(e)==="[object Array]"},zd=Object.create(null);function oi(e){return zd[e]||(zd[e]=new RegExp("^(?:"+e.replace(/ /g,"|")+")$"))}function Fg(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10)+55296,(e&1023)+56320))}var lJ=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,FI=function(A,t){this.line=A,this.column=t};FI.prototype.offset=function(A){return new FI(this.line,this.column+A)};var SB=function(A,t,g){this.start=t,this.end=g,A.sourceFile!==null&&(this.source=A.sourceFile)};function gl(e,A){for(var t=1,g=0;;){var i=Zd(e,g,A);if(i<0)return new FI(t,A-g);++t,g=i}}var Qn={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},Xd=!1;function hJ(e){var A={};for(var t in Qn)A[t]=e&&JI(e,t)?e[t]:Qn[t];if(A.ecmaVersion==="latest"?A.ecmaVersion=1e8:A.ecmaVersion==null?(!Xd&&typeof console=="object"&&console.warn&&(Xd=!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),Wd(A.onToken)){var g=A.onToken;A.onToken=function(i){return g.push(i)}}return Wd(A.onComment)&&(A.onComment=uJ(A,A.onComment)),A}function uJ(e,A){return function(t,g,i,I,B,C){var s={type:t?"Block":"Line",value:g,start:i,end:I};e.locations&&(s.loc=new SB(this,B,C)),e.ranges&&(s.range=[i,I]),A.push(s)}}var JB=1,YI=2,il=4,$d=8,Il=16,Ap=32,on=64,ep=128,xi=256,FB=512,En=JB|YI|xi;function Bl(e,A){return YI|(e?il:0)|(A?$d:0)}var an=0,Cl=1,Yg=2,tp=3,gp=4,ip=5,Ge=function(A,t,g){this.options=A=hJ(A),this.sourceFile=A.sourceFile,this.keywords=oi(oJ[A.ecmaVersion>=6?6:A.sourceType==="module"?"5module":5]);var i="";A.allowReserved!==!0&&(i=$c[A.ecmaVersion>=6?6:A.ecmaVersion===5?5:3],A.sourceType==="module"&&(i+=" await")),this.reservedWords=oi(i);var I=(i?i+" ":"")+$c.strict;this.reservedWordsStrict=oi(I),this.reservedWordsStrictBind=oi(I+" "+$c.strictBind),this.input=String(t),this.containsEsc=!1,g?(this.pos=g,this.lineStart=this.input.lastIndexOf(`
3
3
  `,g-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(yt).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=S.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(JB),this.regexpState=null,this.privateNameStack=[]},Ig={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},inClassStaticBlock:{configurable:!0}};Ge.prototype.parse=function(){var A=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(A)},Ig.inFunction.get=function(){return(this.currentVarScope().flags&YI)>0},Ig.inGenerator.get=function(){return(this.currentVarScope().flags&$d)>0},Ig.inAsync.get=function(){return(this.currentVarScope().flags&il)>0},Ig.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var A=this.scopeStack[e],t=A.flags;if(t&(xi|FB))return!1;if(t&YI)return(t&il)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},Ig.allowSuper.get=function(){var e=this.currentThisScope(),A=e.flags;return(A&on)>0||this.options.allowSuperOutsideMethod},Ig.allowDirectSuper.get=function(){return(this.currentThisScope().flags&ep)>0},Ig.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},Ig.allowNewDotTarget.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var A=this.scopeStack[e],t=A.flags;if(t&(xi|FB)||t&YI&&!(t&Il))return!0}return!1},Ig.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&xi)>0},Ge.extend=function(){for(var A=[],t=arguments.length;t--;)A[t]=arguments[t];for(var g=this,i=0;i<A.length;i++)g=A[i](g);return g},Ge.parse=function(A,t){return new this(t,A).parse()},Ge.parseExpressionAt=function(A,t,g){var i=new this(g,A,t);return i.nextToken(),i.parseExpression()},Ge.tokenizer=function(A,t){return new this(t,A)},Object.defineProperties(Ge.prototype,Ig);var Et=Ge.prototype,dJ=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;Et.strictDirective=function(e){if(this.options.ecmaVersion<5)return!1;for(;;){Lt.lastIndex=e,e+=Lt.exec(this.input)[0].length;var A=dJ.exec(this.input.slice(e));if(!A)return!1;if((A[1]||A[2])==="use strict"){Lt.lastIndex=e+A[0].length;var t=Lt.exec(this.input),g=t.index+t[0].length,i=this.input.charAt(g);return i===";"||i==="}"||yt.test(t[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(i)||i==="!"&&this.input.charAt(g+1)==="=")}e+=A[0].length,Lt.lastIndex=e,e+=Lt.exec(this.input)[0].length,this.input[e]===";"&&e++}},Et.eat=function(e){return this.type===e?(this.next(),!0):!1},Et.isContextual=function(e){return this.type===S.name&&this.value===e&&!this.containsEsc},Et.eatContextual=function(e){return this.isContextual(e)?(this.next(),!0):!1},Et.expectContextual=function(e){this.eatContextual(e)||this.unexpected()},Et.canInsertSemicolon=function(){return this.type===S.eof||this.type===S.braceR||yt.test(this.input.slice(this.lastTokEnd,this.start))},Et.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},Et.semicolon=function(){!this.eat(S.semi)&&!this.insertSemicolon()&&this.unexpected()},Et.afterTrailingComma=function(e,A){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),A||this.next(),!0},Et.expect=function(e){this.eat(e)||this.unexpected()},Et.unexpected=function(e){this.raise(e??this.start,"Unexpected token")};var nn=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};Et.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")}},Et.checkExpressionErrors=function(e,A){if(!e)return!1;var t=e.shorthandAssign,g=e.doubleProto;if(!A)return t>=0||g>=0;t>=0&&this.raise(t,"Shorthand property assignments are valid only in destructuring patterns"),g>=0&&this.raiseRecoverable(g,"Redefinition of __proto__ property")},Et.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")},Et.isSimpleAssignTarget=function(e){return e.type==="ParenthesizedExpression"?this.isSimpleAssignTarget(e.expression):e.type==="Identifier"||e.type==="MemberExpression"};var wA=Ge.prototype;wA.parseTopLevel=function(e){var A=Object.create(null);for(e.body||(e.body=[]);this.type!==S.eof;){var t=this.parseStatement(null,!0,A);e.body.push(t)}if(this.inModule)for(var g=0,i=Object.keys(this.undefinedExports);g<i.length;g+=1){var I=i[g];this.raiseRecoverable(this.undefinedExports[I].start,"Export '"+I+"' is not defined")}return this.adaptDirectivePrologue(e.body),this.next(),e.sourceType=this.options.sourceType,this.finishNode(e,"Program")};var sl={kind:"loop"},pJ={kind:"switch"};wA.isLet=function(e){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;Lt.lastIndex=this.pos;var A=Lt.exec(this.input),t=this.pos+A[0].length,g=this.input.charCodeAt(t);if(g===91||g===92)return!0;if(e)return!1;if(g===123||g>55295&&g<56320)return!0;if(_t(g,!0)){for(var i=t+1;Qi(g=this.input.charCodeAt(i),!0);)++i;if(g===92||g>55295&&g<56320)return!0;var I=this.input.slice(t,i);if(!EJ.test(I))return!0}return!1},wA.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;Lt.lastIndex=this.pos;var e=Lt.exec(this.input),A=this.pos+e[0].length,t;return!yt.test(this.input.slice(this.pos,A))&&this.input.slice(A,A+8)==="function"&&(A+8===this.input.length||!(Qi(t=this.input.charCodeAt(A+8))||t>55295&&t<56320))},wA.parseStatement=function(e,A,t){var g=this.type,i=this.startNode(),I;switch(this.isLet(e)&&(g=S._var,I="let"),g){case S._break:case S._continue:return this.parseBreakContinueStatement(i,g.keyword);case S._debugger:return this.parseDebuggerStatement(i);case S._do:return this.parseDoStatement(i);case S._for:return this.parseForStatement(i);case S._function:return e&&(this.strict||e!=="if"&&e!=="label")&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(i,!1,!e);case S._class:return e&&this.unexpected(),this.parseClass(i,!0);case S._if:return this.parseIfStatement(i);case S._return:return this.parseReturnStatement(i);case S._switch:return this.parseSwitchStatement(i);case S._throw:return this.parseThrowStatement(i);case S._try:return this.parseTryStatement(i);case S._const:case S._var:return I=I||this.value,e&&I!=="var"&&this.unexpected(),this.parseVarStatement(i,I);case S._while:return this.parseWhileStatement(i);case S._with:return this.parseWithStatement(i);case S.braceL:return this.parseBlock(!0,i);case S.semi:return this.parseEmptyStatement(i);case S._export:case S._import:if(this.options.ecmaVersion>10&&g===S._import){Lt.lastIndex=this.pos;var B=Lt.exec(this.input),C=this.pos+B[0].length,s=this.input.charCodeAt(C);if(s===40||s===46)return this.parseExpressionStatement(i,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'")),g===S._import?this.parseImport(i):this.parseExport(i,t);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(i,!0,!e);var Q=this.value,o=this.parseExpression();return g===S.name&&o.type==="Identifier"&&this.eat(S.colon)?this.parseLabeledStatement(i,Q,o,e):this.parseExpressionStatement(i,o)}},wA.parseBreakContinueStatement=function(e,A){var t=A==="break";this.next(),this.eat(S.semi)||this.insertSemicolon()?e.label=null:this.type!==S.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var g=0;g<this.labels.length;++g){var i=this.labels[g];if((e.label==null||i.name===e.label.name)&&(i.kind!=null&&(t||i.kind==="loop")||e.label&&t))break}return g===this.labels.length&&this.raise(e.start,"Unsyntactic "+A),this.finishNode(e,t?"BreakStatement":"ContinueStatement")},wA.parseDebuggerStatement=function(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")},wA.parseDoStatement=function(e){return this.next(),this.labels.push(sl),e.body=this.parseStatement("do"),this.labels.pop(),this.expect(S._while),e.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(S.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")},wA.parseForStatement=function(e){this.next();var A=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(sl),this.enterScope(0),this.expect(S.parenL),this.type===S.semi)return A>-1&&this.unexpected(A),this.parseFor(e,null);var t=this.isLet();if(this.type===S._var||this.type===S._const||t){var g=this.startNode(),i=t?"let":this.value;return this.next(),this.parseVar(g,!0,i),this.finishNode(g,"VariableDeclaration"),(this.type===S._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&g.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===S._in?A>-1&&this.unexpected(A):e.await=A>-1),this.parseForIn(e,g)):(A>-1&&this.unexpected(A),this.parseFor(e,g))}var I=this.isContextual("let"),B=!1,C=this.containsEsc,s=new nn,Q=this.start,o=A>-1?this.parseExprSubscripts(s,"await"):this.parseExpression(!0,s);return this.type===S._in||(B=this.options.ecmaVersion>=6&&this.isContextual("of"))?(A>-1?(this.type===S._in&&this.unexpected(A),e.await=!0):B&&this.options.ecmaVersion>=8&&(o.start===Q&&!C&&o.type==="Identifier"&&o.name==="async"?this.unexpected():this.options.ecmaVersion>=9&&(e.await=!1)),I&&B&&this.raise(o.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(o,!1,s),this.checkLValPattern(o),this.parseForIn(e,o)):(this.checkExpressionErrors(s,!0),A>-1&&this.unexpected(A),this.parseFor(e,o))},wA.parseFunctionStatement=function(e,A,t){return this.next(),this.parseFunction(e,YB|(t?0:Ql),!1,A)},wA.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(S._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")},wA.parseReturnStatement=function(e){return!this.inFunction&&!this.options.allowReturnOutsideFunction&&this.raise(this.start,"'return' outside of function"),this.next(),this.eat(S.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")},wA.parseSwitchStatement=function(e){this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(S.braceL),this.labels.push(pJ),this.enterScope(0);for(var A,t=!1;this.type!==S.braceR;)if(this.type===S._case||this.type===S._default){var g=this.type===S._case;A&&this.finishNode(A,"SwitchCase"),e.cases.push(A=this.startNode()),A.consequent=[],this.next(),g?A.test=this.parseExpression():(t&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),t=!0,A.test=null),this.expect(S.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")},wA.parseThrowStatement=function(e){return this.next(),yt.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 DJ=[];wA.parseCatchClauseParam=function(){var e=this.parseBindingAtom(),A=e.type==="Identifier";return this.enterScope(A?Ap:0),this.checkLValPattern(e,A?gp:Yg),this.expect(S.parenR),e},wA.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===S._catch){var A=this.startNode();this.next(),this.eat(S.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(S._finally)?this.parseBlock():null,!e.handler&&!e.finalizer&&this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")},wA.parseVarStatement=function(e,A,t){return this.next(),this.parseVar(e,!1,A,t),this.semicolon(),this.finishNode(e,"VariableDeclaration")},wA.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(sl),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")},wA.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")},wA.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")},wA.parseLabeledStatement=function(e,A,t,g){for(var i=0,I=this.labels;i<I.length;i+=1){var B=I[i];B.name===A&&this.raise(t.start,"Label '"+A+"' is already declared")}for(var C=this.type.isLoop?"loop":this.type===S._switch?"switch":null,s=this.labels.length-1;s>=0;s--){var Q=this.labels[s];if(Q.statementStart===e.start)Q.statementStart=this.start,Q.kind=C;else break}return this.labels.push({name:A,kind:C,statementStart:this.start}),e.body=this.parseStatement(g?g.indexOf("label")===-1?g+"label":g:"label"),this.labels.pop(),e.label=t,this.finishNode(e,"LabeledStatement")},wA.parseExpressionStatement=function(e,A){return e.expression=A,this.semicolon(),this.finishNode(e,"ExpressionStatement")},wA.parseBlock=function(e,A,t){for(e===void 0&&(e=!0),A===void 0&&(A=this.startNode()),A.body=[],this.expect(S.braceL),e&&this.enterScope(0);this.type!==S.braceR;){var g=this.parseStatement(null);A.body.push(g)}return t&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(A,"BlockStatement")},wA.parseFor=function(e,A){return e.init=A,this.expect(S.semi),e.test=this.type===S.semi?null:this.parseExpression(),this.expect(S.semi),e.update=this.type===S.parenR?null:this.parseExpression(),this.expect(S.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,"ForStatement")},wA.parseForIn=function(e,A){var t=this.type===S._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(S.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,t?"ForInStatement":"ForOfStatement")},wA.parseVar=function(e,A,t,g){for(e.declarations=[],e.kind=t;;){var i=this.startNode();if(this.parseVarId(i,t),this.eat(S.eq)?i.init=this.parseMaybeAssign(A):!g&&t==="const"&&!(this.type===S._in||this.options.ecmaVersion>=6&&this.isContextual("of"))?this.unexpected():!g&&i.id.type!=="Identifier"&&!(A&&(this.type===S._in||this.isContextual("of")))?this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):i.init=null,e.declarations.push(this.finishNode(i,"VariableDeclarator")),!this.eat(S.comma))break}return e},wA.parseVarId=function(e,A){e.id=this.parseBindingAtom(),this.checkLValPattern(e.id,A==="var"?Cl:Yg,!1)};var YB=1,Ql=2,Ip=4;wA.parseFunction=function(e,A,t,g,i){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!g)&&(this.type===S.star&&A&Ql&&this.unexpected(),e.generator=this.eat(S.star)),this.options.ecmaVersion>=8&&(e.async=!!g),A&YB&&(e.id=A&Ip&&this.type!==S.name?null:this.parseIdent(),e.id&&!(A&Ql)&&this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?Cl:Yg:tp));var I=this.yieldPos,B=this.awaitPos,C=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Bl(e.async,e.generator)),A&YB||(e.id=this.type===S.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,t,!1,i),this.yieldPos=I,this.awaitPos=B,this.awaitIdentPos=C,this.finishNode(e,A&YB?"FunctionDeclaration":"FunctionExpression")},wA.parseFunctionParams=function(e){this.expect(S.parenL),e.params=this.parseBindingList(S.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},wA.parseClass=function(e,A){this.next();var t=this.strict;this.strict=!0,this.parseClassId(e,A),this.parseClassSuper(e);var g=this.enterClassBody(),i=this.startNode(),I=!1;for(i.body=[],this.expect(S.braceL);this.type!==S.braceR;){var B=this.parseClassElement(e.superClass!==null);B&&(i.body.push(B),B.type==="MethodDefinition"&&B.kind==="constructor"?(I&&this.raiseRecoverable(B.start,"Duplicate constructor in the same class"),I=!0):B.key&&B.key.type==="PrivateIdentifier"&&wJ(g,B)&&this.raiseRecoverable(B.key.start,"Identifier '#"+B.key.name+"' has already been declared"))}return this.strict=t,this.next(),e.body=this.finishNode(i,"ClassBody"),this.exitClassBody(),this.finishNode(e,A?"ClassDeclaration":"ClassExpression")},wA.parseClassElement=function(e){if(this.eat(S.semi))return null;var A=this.options.ecmaVersion,t=this.startNode(),g="",i=!1,I=!1,B="method",C=!1;if(this.eatContextual("static")){if(A>=13&&this.eat(S.braceL))return this.parseClassStaticBlock(t),t;this.isClassElementNameStart()||this.type===S.star?C=!0:g="static"}if(t.static=C,!g&&A>=8&&this.eatContextual("async")&&((this.isClassElementNameStart()||this.type===S.star)&&!this.canInsertSemicolon()?I=!0:g="async"),!g&&(A>=9||!I)&&this.eat(S.star)&&(i=!0),!g&&!I&&!i){var s=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?B=s:g=s)}if(g?(t.computed=!1,t.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),t.key.name=g,this.finishNode(t.key,"Identifier")):this.parseClassElementName(t),A<13||this.type===S.parenL||B!=="method"||i||I){var Q=!t.static&&rn(t,"constructor"),o=Q&&e;Q&&B!=="method"&&this.raise(t.key.start,"Constructor can't have get/set modifier"),t.kind=Q?"constructor":B,this.parseClassMethod(t,i,I,o)}else this.parseClassField(t);return t},wA.isClassElementNameStart=function(){return this.type===S.name||this.type===S.privateId||this.type===S.num||this.type===S.string||this.type===S.bracketL||this.type.keyword},wA.parseClassElementName=function(e){this.type===S.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)},wA.parseClassMethod=function(e,A,t,g){var i=e.key;e.kind==="constructor"?(A&&this.raise(i.start,"Constructor can't be a generator"),t&&this.raise(i.start,"Constructor can't be an async method")):e.static&&rn(e,"prototype")&&this.raise(i.start,"Classes may not have a static property named prototype");var I=e.value=this.parseMethod(A,t,g);return e.kind==="get"&&I.params.length!==0&&this.raiseRecoverable(I.start,"getter should have no params"),e.kind==="set"&&I.params.length!==1&&this.raiseRecoverable(I.start,"setter should have exactly one param"),e.kind==="set"&&I.params[0].type==="RestElement"&&this.raiseRecoverable(I.params[0].start,"Setter cannot use rest params"),this.finishNode(e,"MethodDefinition")},wA.parseClassField=function(e){return rn(e,"constructor")?this.raise(e.key.start,"Classes can't have a field named 'constructor'"):e.static&&rn(e,"prototype")&&this.raise(e.key.start,"Classes can't have a static field named 'prototype'"),this.eat(S.eq)?(this.enterScope(FB|on),e.value=this.parseMaybeAssign(),this.exitScope()):e.value=null,this.semicolon(),this.finishNode(e,"PropertyDefinition")},wA.parseClassStaticBlock=function(e){e.body=[];var A=this.labels;for(this.labels=[],this.enterScope(xi|on);this.type!==S.braceR;){var t=this.parseStatement(null);e.body.push(t)}return this.next(),this.exitScope(),this.labels=A,this.finishNode(e,"StaticBlock")},wA.parseClassId=function(e,A){this.type===S.name?(e.id=this.parseIdent(),A&&this.checkLValSimple(e.id,Yg,!1)):(A===!0&&this.unexpected(),e.id=null)},wA.parseClassSuper=function(e){e.superClass=this.eat(S._extends)?this.parseExprSubscripts(null,!1):null},wA.enterClassBody=function(){var e={declared:Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared},wA.exitClassBody=function(){var e=this.privateNameStack.pop(),A=e.declared,t=e.used;if(this.options.checkPrivateFields)for(var g=this.privateNameStack.length,i=g===0?null:this.privateNameStack[g-1],I=0;I<t.length;++I){var B=t[I];JI(A,B.name)||(i?i.used.push(B):this.raiseRecoverable(B.start,"Private field '#"+B.name+"' must be declared in an enclosing class"))}};function wJ(e,A){var t=A.key.name,g=e[t],i="true";return A.type==="MethodDefinition"&&(A.kind==="get"||A.kind==="set")&&(i=(A.static?"s":"i")+A.kind),g==="iget"&&i==="iset"||g==="iset"&&i==="iget"||g==="sget"&&i==="sset"||g==="sset"&&i==="sget"?(e[t]="true",!1):g?!0:(e[t]=i,!1)}function rn(e,A){var t=e.computed,g=e.key;return!t&&(g.type==="Identifier"&&g.name===A||g.type==="Literal"&&g.value===A)}wA.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!==S.string&&this.unexpected(),e.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(e,"ExportAllDeclaration")},wA.parseExport=function(e,A){if(this.next(),this.eat(S.star))return this.parseExportAllDeclaration(e,A);if(this.eat(S._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!==S.string&&this.unexpected(),e.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause());else{for(var t=0,g=e.specifiers;t<g.length;t+=1){var i=g[t];this.checkUnreserved(i.local),this.checkLocalExport(i.local),i.local.type==="Literal"&&this.raise(i.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")},wA.parseExportDeclaration=function(e){return this.parseStatement(null)},wA.parseExportDefaultDeclaration=function(){var e;if(this.type===S._function||(e=this.isAsyncFunction())){var A=this.startNode();return this.next(),e&&this.next(),this.parseFunction(A,YB|Ip,!1,e)}else if(this.type===S._class){var t=this.startNode();return this.parseClass(t,"nullableID")}else{var g=this.parseMaybeAssign();return this.semicolon(),g}},wA.checkExport=function(e,A,t){e&&(typeof A!="string"&&(A=A.type==="Identifier"?A.name:A.value),JI(e,A)&&this.raiseRecoverable(t,"Duplicate export '"+A+"'"),e[A]=!0)},wA.checkPatternExport=function(e,A){var t=A.type;if(t==="Identifier")this.checkExport(e,A,A.start);else if(t==="ObjectPattern")for(var g=0,i=A.properties;g<i.length;g+=1){var I=i[g];this.checkPatternExport(e,I)}else if(t==="ArrayPattern")for(var B=0,C=A.elements;B<C.length;B+=1){var s=C[B];s&&this.checkPatternExport(e,s)}else t==="Property"?this.checkPatternExport(e,A.value):t==="AssignmentPattern"?this.checkPatternExport(e,A.left):t==="RestElement"&&this.checkPatternExport(e,A.argument)},wA.checkVariableExport=function(e,A){if(e)for(var t=0,g=A;t<g.length;t+=1){var i=g[t];this.checkPatternExport(e,i.id)}},wA.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()},wA.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")},wA.parseExportSpecifiers=function(e){var A=[],t=!0;for(this.expect(S.braceL);!this.eat(S.braceR);){if(t)t=!1;else if(this.expect(S.comma),this.afterTrailingComma(S.braceR))break;A.push(this.parseExportSpecifier(e))}return A},wA.parseImport=function(e){return this.next(),this.type===S.string?(e.specifiers=DJ,e.source=this.parseExprAtom()):(e.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),e.source=this.type===S.string?this.parseExprAtom():this.unexpected()),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(e,"ImportDeclaration")},wA.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,Yg),this.finishNode(e,"ImportSpecifier")},wA.parseImportDefaultSpecifier=function(){var e=this.startNode();return e.local=this.parseIdent(),this.checkLValSimple(e.local,Yg),this.finishNode(e,"ImportDefaultSpecifier")},wA.parseImportNamespaceSpecifier=function(){var e=this.startNode();return this.next(),this.expectContextual("as"),e.local=this.parseIdent(),this.checkLValSimple(e.local,Yg),this.finishNode(e,"ImportNamespaceSpecifier")},wA.parseImportSpecifiers=function(){var e=[],A=!0;if(this.type===S.name&&(e.push(this.parseImportDefaultSpecifier()),!this.eat(S.comma)))return e;if(this.type===S.star)return e.push(this.parseImportNamespaceSpecifier()),e;for(this.expect(S.braceL);!this.eat(S.braceR);){if(A)A=!1;else if(this.expect(S.comma),this.afterTrailingComma(S.braceR))break;e.push(this.parseImportSpecifier())}return e},wA.parseWithClause=function(){var e=[];if(!this.eat(S._with))return e;this.expect(S.braceL);for(var A={},t=!0;!this.eat(S.braceR);){if(t)t=!1;else if(this.expect(S.comma),this.afterTrailingComma(S.braceR))break;var g=this.parseImportAttribute(),i=g.key.type==="Identifier"?g.key.name:g.key.value;JI(A,i)&&this.raiseRecoverable(g.key.start,"Duplicate attribute key '"+i+"'"),A[i]=!0,e.push(g)}return e},wA.parseImportAttribute=function(){var e=this.startNode();return e.key=this.type===S.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never"),this.expect(S.colon),this.type!==S.string&&this.unexpected(),e.value=this.parseExprAtom(),this.finishNode(e,"ImportAttribute")},wA.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===S.string){var e=this.parseLiteral(this.value);return lJ.test(e.value)&&this.raise(e.start,"An export name cannot include a lone surrogate."),e}return this.parseIdent(!0)},wA.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)},wA.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 bt=Ge.prototype;bt.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 g=0,i=e.properties;g<i.length;g+=1){var I=i[g];this.toAssignable(I,A),I.type==="RestElement"&&(I.argument.type==="ArrayPattern"||I.argument.type==="ObjectPattern")&&this.raise(I.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},bt.toAssignableList=function(e,A){for(var t=e.length,g=0;g<t;g++){var i=e[g];i&&this.toAssignable(i,A)}if(t){var I=e[t-1];this.options.ecmaVersion===6&&A&&I&&I.type==="RestElement"&&I.argument.type!=="Identifier"&&this.unexpected(I.argument.start)}return e},bt.parseSpread=function(e){var A=this.startNode();return this.next(),A.argument=this.parseMaybeAssign(!1,e),this.finishNode(A,"SpreadElement")},bt.parseRestBinding=function(){var e=this.startNode();return this.next(),this.options.ecmaVersion===6&&this.type!==S.name&&this.unexpected(),e.argument=this.parseBindingAtom(),this.finishNode(e,"RestElement")},bt.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case S.bracketL:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(S.bracketR,!0,!0),this.finishNode(e,"ArrayPattern");case S.braceL:return this.parseObj(!0)}return this.parseIdent()},bt.parseBindingList=function(e,A,t,g){for(var i=[],I=!0;!this.eat(e);)if(I?I=!1:this.expect(S.comma),A&&this.type===S.comma)i.push(null);else{if(t&&this.afterTrailingComma(e))break;if(this.type===S.ellipsis){var B=this.parseRestBinding();this.parseBindingListItem(B),i.push(B),this.type===S.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.expect(e);break}else i.push(this.parseAssignableListItem(g))}return i},bt.parseAssignableListItem=function(e){var A=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(A),A},bt.parseBindingListItem=function(e){return e},bt.parseMaybeDefault=function(e,A,t){if(t=t||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(S.eq))return t;var g=this.startNodeAt(e,A);return g.left=t,g.right=this.parseMaybeAssign(),this.finishNode(g,"AssignmentPattern")},bt.checkLValSimple=function(e,A,t){A===void 0&&(A=an);var g=A!==an;switch(e.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(e.name)&&this.raiseRecoverable(e.start,(g?"Binding ":"Assigning to ")+e.name+" in strict mode"),g&&(A===Yg&&e.name==="let"&&this.raiseRecoverable(e.start,"let is disallowed as a lexically bound name"),t&&(JI(t,e.name)&&this.raiseRecoverable(e.start,"Argument name clash"),t[e.name]=!0),A!==ip&&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":g&&this.raiseRecoverable(e.start,"Binding member expression");break;case"ParenthesizedExpression":return g&&this.raiseRecoverable(e.start,"Binding parenthesized expression"),this.checkLValSimple(e.expression,A,t);default:this.raise(e.start,(g?"Binding":"Assigning to")+" rvalue")}},bt.checkLValPattern=function(e,A,t){switch(A===void 0&&(A=an),e.type){case"ObjectPattern":for(var g=0,i=e.properties;g<i.length;g+=1){var I=i[g];this.checkLValInnerPattern(I,A,t)}break;case"ArrayPattern":for(var B=0,C=e.elements;B<C.length;B+=1){var s=C[B];s&&this.checkLValInnerPattern(s,A,t)}break;default:this.checkLValSimple(e,A,t)}},bt.checkLValInnerPattern=function(e,A,t){switch(A===void 0&&(A=an),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 at=function(A,t,g,i,I){this.token=A,this.isExpr=!!t,this.preserveSpace=!!g,this.override=i,this.generator=!!I},ke={b_stat:new at("{",!1),b_expr:new at("{",!0),b_tmpl:new at("${",!1),p_stat:new at("(",!1),p_expr:new at("(",!0),q_tmpl:new at("`",!0,!0,function(e){return e.tryReadTemplateToken()}),f_stat:new at("function",!1),f_expr:new at("function",!0),f_expr_gen:new at("function",!0,!1,null,!0),f_gen:new at("function",!1,!1,null,!0)},LI=Ge.prototype;LI.initialContext=function(){return[ke.b_stat]},LI.curContext=function(){return this.context[this.context.length-1]},LI.braceIsBlock=function(e){var A=this.curContext();return A===ke.f_expr||A===ke.f_stat?!0:e===S.colon&&(A===ke.b_stat||A===ke.b_expr)?!A.isExpr:e===S._return||e===S.name&&this.exprAllowed?yt.test(this.input.slice(this.lastTokEnd,this.start)):e===S._else||e===S.semi||e===S.eof||e===S.parenR||e===S.arrow?!0:e===S.braceL?A===ke.b_stat:e===S._var||e===S._const||e===S.name?!1:!this.exprAllowed},LI.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},LI.updateContext=function(e){var A,t=this.type;t.keyword&&e===S.dot?this.exprAllowed=!1:(A=t.updateContext)?A.call(this,e):this.exprAllowed=t.beforeExpr},LI.overrideContext=function(e){this.curContext()!==e&&(this.context[this.context.length-1]=e)},S.parenR.updateContext=S.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=!0;return}var e=this.context.pop();e===ke.b_stat&&this.curContext().token==="function"&&(e=this.context.pop()),this.exprAllowed=!e.isExpr},S.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?ke.b_stat:ke.b_expr),this.exprAllowed=!0},S.dollarBraceL.updateContext=function(){this.context.push(ke.b_tmpl),this.exprAllowed=!0},S.parenL.updateContext=function(e){var A=e===S._if||e===S._for||e===S._with||e===S._while;this.context.push(A?ke.p_stat:ke.p_expr),this.exprAllowed=!0},S.incDec.updateContext=function(){},S._function.updateContext=S._class.updateContext=function(e){e.beforeExpr&&e!==S._else&&!(e===S.semi&&this.curContext()!==ke.p_stat)&&!(e===S._return&&yt.test(this.input.slice(this.lastTokEnd,this.start)))&&!((e===S.colon||e===S.braceL)&&this.curContext()===ke.b_stat)?this.context.push(ke.f_expr):this.context.push(ke.f_stat),this.exprAllowed=!1},S.colon.updateContext=function(){this.curContext().token==="function"&&this.context.pop(),this.exprAllowed=!0},S.backQuote.updateContext=function(){this.curContext()===ke.q_tmpl?this.context.pop():this.context.push(ke.q_tmpl),this.exprAllowed=!1},S.star.updateContext=function(e){if(e===S._function){var A=this.context.length-1;this.context[A]===ke.f_expr?this.context[A]=ke.f_expr_gen:this.context[A]=ke.f_gen}this.exprAllowed=!0},S.name.updateContext=function(e){var A=!1;this.options.ecmaVersion>=6&&e!==S.dot&&(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())&&(A=!0),this.exprAllowed=A};var YA=Ge.prototype;YA.checkPropClash=function(e,A,t){if(!(this.options.ecmaVersion>=9&&e.type==="SpreadElement")&&!(this.options.ecmaVersion>=6&&(e.computed||e.method||e.shorthand))){var g=e.key,i;switch(g.type){case"Identifier":i=g.name;break;case"Literal":i=String(g.value);break;default:return}var I=e.kind;if(this.options.ecmaVersion>=6){i==="__proto__"&&I==="init"&&(A.proto&&(t?t.doubleProto<0&&(t.doubleProto=g.start):this.raiseRecoverable(g.start,"Redefinition of __proto__ property")),A.proto=!0);return}i="$"+i;var B=A[i];if(B){var C;I==="init"?C=this.strict&&B.init||B.get||B.set:C=B.init||B[I],C&&this.raiseRecoverable(g.start,"Redefinition of property")}else B=A[i]={init:!1,get:!1,set:!1};B[I]=!0}},YA.parseExpression=function(e,A){var t=this.start,g=this.startLoc,i=this.parseMaybeAssign(e,A);if(this.type===S.comma){var I=this.startNodeAt(t,g);for(I.expressions=[i];this.eat(S.comma);)I.expressions.push(this.parseMaybeAssign(e,A));return this.finishNode(I,"SequenceExpression")}return i},YA.parseMaybeAssign=function(e,A,t){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(e);this.exprAllowed=!1}var g=!1,i=-1,I=-1,B=-1;A?(i=A.parenthesizedAssign,I=A.trailingComma,B=A.doubleProto,A.parenthesizedAssign=A.trailingComma=-1):(A=new nn,g=!0);var C=this.start,s=this.startLoc;(this.type===S.parenL||this.type===S.name)&&(this.potentialArrowAt=this.start,this.potentialArrowInForAwait=e==="await");var Q=this.parseMaybeConditional(e,A);if(t&&(Q=t.call(this,Q,C,s)),this.type.isAssign){var o=this.startNodeAt(C,s);return o.operator=this.value,this.type===S.eq&&(Q=this.toAssignable(Q,!1,A)),g||(A.parenthesizedAssign=A.trailingComma=A.doubleProto=-1),A.shorthandAssign>=Q.start&&(A.shorthandAssign=-1),this.type===S.eq?this.checkLValPattern(Q):this.checkLValSimple(Q),o.left=Q,this.next(),o.right=this.parseMaybeAssign(e),B>-1&&(A.doubleProto=B),this.finishNode(o,"AssignmentExpression")}else g&&this.checkExpressionErrors(A,!0);return i>-1&&(A.parenthesizedAssign=i),I>-1&&(A.trailingComma=I),Q},YA.parseMaybeConditional=function(e,A){var t=this.start,g=this.startLoc,i=this.parseExprOps(e,A);if(this.checkExpressionErrors(A))return i;if(this.eat(S.question)){var I=this.startNodeAt(t,g);return I.test=i,I.consequent=this.parseMaybeAssign(),this.expect(S.colon),I.alternate=this.parseMaybeAssign(e),this.finishNode(I,"ConditionalExpression")}return i},YA.parseExprOps=function(e,A){var t=this.start,g=this.startLoc,i=this.parseMaybeUnary(A,!1,!1,e);return this.checkExpressionErrors(A)||i.start===t&&i.type==="ArrowFunctionExpression"?i:this.parseExprOp(i,t,g,-1,e)},YA.parseExprOp=function(e,A,t,g,i){var I=this.type.binop;if(I!=null&&(!i||this.type!==S._in)&&I>g){var B=this.type===S.logicalOR||this.type===S.logicalAND,C=this.type===S.coalesce;C&&(I=S.logicalAND.binop);var s=this.value;this.next();var Q=this.start,o=this.startLoc,n=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,i),Q,o,I,i),a=this.buildBinary(A,t,e,n,s,B||C);return(B&&this.type===S.coalesce||C&&(this.type===S.logicalOR||this.type===S.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(a,A,t,g,i)}return e},YA.buildBinary=function(e,A,t,g,i,I){g.type==="PrivateIdentifier"&&this.raise(g.start,"Private identifier can only be left side of binary expression");var B=this.startNodeAt(e,A);return B.left=t,B.operator=i,B.right=g,this.finishNode(B,I?"LogicalExpression":"BinaryExpression")},YA.parseMaybeUnary=function(e,A,t,g){var i=this.start,I=this.startLoc,B;if(this.isContextual("await")&&this.canAwait)B=this.parseAwait(g),A=!0;else if(this.type.prefix){var C=this.startNode(),s=this.type===S.incDec;C.operator=this.value,C.prefix=!0,this.next(),C.argument=this.parseMaybeUnary(null,!0,s,g),this.checkExpressionErrors(e,!0),s?this.checkLValSimple(C.argument):this.strict&&C.operator==="delete"&&Bp(C.argument)?this.raiseRecoverable(C.start,"Deleting local variable in strict mode"):C.operator==="delete"&&ol(C.argument)?this.raiseRecoverable(C.start,"Private fields can not be deleted"):A=!0,B=this.finishNode(C,s?"UpdateExpression":"UnaryExpression")}else if(!A&&this.type===S.privateId)(g||this.privateNameStack.length===0)&&this.options.checkPrivateFields&&this.unexpected(),B=this.parsePrivateIdent(),this.type!==S._in&&this.unexpected();else{if(B=this.parseExprSubscripts(e,g),this.checkExpressionErrors(e))return B;for(;this.type.postfix&&!this.canInsertSemicolon();){var Q=this.startNodeAt(i,I);Q.operator=this.value,Q.prefix=!1,Q.argument=B,this.checkLValSimple(B),this.next(),B=this.finishNode(Q,"UpdateExpression")}}if(!t&&this.eat(S.starstar))if(A)this.unexpected(this.lastTokStart);else return this.buildBinary(i,I,B,this.parseMaybeUnary(null,!1,!1,g),"**",!1);else return B};function Bp(e){return e.type==="Identifier"||e.type==="ParenthesizedExpression"&&Bp(e.expression)}function ol(e){return e.type==="MemberExpression"&&e.property.type==="PrivateIdentifier"||e.type==="ChainExpression"&&ol(e.expression)||e.type==="ParenthesizedExpression"&&ol(e.expression)}YA.parseExprSubscripts=function(e,A){var t=this.start,g=this.startLoc,i=this.parseExprAtom(e,A);if(i.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return i;var I=this.parseSubscripts(i,t,g,!1,A);return e&&I.type==="MemberExpression"&&(e.parenthesizedAssign>=I.start&&(e.parenthesizedAssign=-1),e.parenthesizedBind>=I.start&&(e.parenthesizedBind=-1),e.trailingComma>=I.start&&(e.trailingComma=-1)),I},YA.parseSubscripts=function(e,A,t,g,i){for(var I=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,B=!1;;){var C=this.parseSubscript(e,A,t,g,I,B,i);if(C.optional&&(B=!0),C===e||C.type==="ArrowFunctionExpression"){if(B){var s=this.startNodeAt(A,t);s.expression=C,C=this.finishNode(s,"ChainExpression")}return C}e=C}},YA.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(S.arrow)},YA.parseSubscriptAsyncArrow=function(e,A,t,g){return this.parseArrowExpression(this.startNodeAt(e,A),t,!0,g)},YA.parseSubscript=function(e,A,t,g,i,I,B){var C=this.options.ecmaVersion>=11,s=C&&this.eat(S.questionDot);g&&s&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var Q=this.eat(S.bracketL);if(Q||s&&this.type!==S.parenL&&this.type!==S.backQuote||this.eat(S.dot)){var o=this.startNodeAt(A,t);o.object=e,Q?(o.property=this.parseExpression(),this.expect(S.bracketR)):this.type===S.privateId&&e.type!=="Super"?o.property=this.parsePrivateIdent():o.property=this.parseIdent(this.options.allowReserved!=="never"),o.computed=!!Q,C&&(o.optional=s),e=this.finishNode(o,"MemberExpression")}else if(!g&&this.eat(S.parenL)){var n=new nn,a=this.yieldPos,h=this.awaitPos,w=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var p=this.parseExprList(S.parenR,this.options.ecmaVersion>=8,!1,n);if(i&&!s&&this.shouldParseAsyncArrow())return this.checkPatternErrors(n,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=a,this.awaitPos=h,this.awaitIdentPos=w,this.parseSubscriptAsyncArrow(A,t,p,B);this.checkExpressionErrors(n,!0),this.yieldPos=a||this.yieldPos,this.awaitPos=h||this.awaitPos,this.awaitIdentPos=w||this.awaitIdentPos;var u=this.startNodeAt(A,t);u.callee=e,u.arguments=p,C&&(u.optional=s),e=this.finishNode(u,"CallExpression")}else if(this.type===S.backQuote){(s||I)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var c=this.startNodeAt(A,t);c.tag=e,c.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(c,"TaggedTemplateExpression")}return e},YA.parseExprAtom=function(e,A,t){this.type===S.slash&&this.readRegexp();var g,i=this.potentialArrowAt===this.start;switch(this.type){case S._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),g=this.startNode(),this.next(),this.type===S.parenL&&!this.allowDirectSuper&&this.raise(g.start,"super() call outside constructor of a subclass"),this.type!==S.dot&&this.type!==S.bracketL&&this.type!==S.parenL&&this.unexpected(),this.finishNode(g,"Super");case S._this:return g=this.startNode(),this.next(),this.finishNode(g,"ThisExpression");case S.name:var I=this.start,B=this.startLoc,C=this.containsEsc,s=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!C&&s.name==="async"&&!this.canInsertSemicolon()&&this.eat(S._function))return this.overrideContext(ke.f_expr),this.parseFunction(this.startNodeAt(I,B),0,!1,!0,A);if(i&&!this.canInsertSemicolon()){if(this.eat(S.arrow))return this.parseArrowExpression(this.startNodeAt(I,B),[s],!1,A);if(this.options.ecmaVersion>=8&&s.name==="async"&&this.type===S.name&&!C&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc))return s=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(S.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(I,B),[s],!0,A)}return s;case S.regexp:var Q=this.value;return g=this.parseLiteral(Q.value),g.regex={pattern:Q.pattern,flags:Q.flags},g;case S.num:case S.string:return this.parseLiteral(this.value);case S._null:case S._true:case S._false:return g=this.startNode(),g.value=this.type===S._null?null:this.type===S._true,g.raw=this.type.keyword,this.next(),this.finishNode(g,"Literal");case S.parenL:var o=this.start,n=this.parseParenAndDistinguishExpression(i,A);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(n)&&(e.parenthesizedAssign=o),e.parenthesizedBind<0&&(e.parenthesizedBind=o)),n;case S.bracketL:return g=this.startNode(),this.next(),g.elements=this.parseExprList(S.bracketR,!0,!0,e),this.finishNode(g,"ArrayExpression");case S.braceL:return this.overrideContext(ke.b_expr),this.parseObj(!1,e);case S._function:return g=this.startNode(),this.next(),this.parseFunction(g,0);case S._class:return this.parseClass(this.startNode(),!1);case S._new:return this.parseNew();case S.backQuote:return this.parseTemplate();case S._import:return this.options.ecmaVersion>=11?this.parseExprImport(t):this.unexpected();default:return this.parseExprAtomDefault()}},YA.parseExprAtomDefault=function(){this.unexpected()},YA.parseExprImport=function(e){var A=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===S.parenL&&!e)return this.parseDynamicImport(A);if(this.type===S.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()},YA.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),this.options.ecmaVersion>=16)this.eat(S.parenR)?e.options=null:(this.expect(S.comma),this.afterTrailingComma(S.parenR)?e.options=null:(e.options=this.parseMaybeAssign(),this.eat(S.parenR)||(this.expect(S.comma),this.afterTrailingComma(S.parenR)||this.unexpected())));else if(!this.eat(S.parenR)){var A=this.start;this.eat(S.comma)&&this.eat(S.parenR)?this.raiseRecoverable(A,"Trailing comma is not allowed in import()"):this.unexpected(A)}return this.finishNode(e,"ImportExpression")},YA.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")},YA.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.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(A,"Literal")},YA.parseParenExpression=function(){this.expect(S.parenL);var e=this.parseExpression();return this.expect(S.parenR),e},YA.shouldParseArrow=function(e){return!this.canInsertSemicolon()},YA.parseParenAndDistinguishExpression=function(e,A){var t=this.start,g=this.startLoc,i,I=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var B=this.start,C=this.startLoc,s=[],Q=!0,o=!1,n=new nn,a=this.yieldPos,h=this.awaitPos,w;for(this.yieldPos=0,this.awaitPos=0;this.type!==S.parenR;)if(Q?Q=!1:this.expect(S.comma),I&&this.afterTrailingComma(S.parenR,!0)){o=!0;break}else if(this.type===S.ellipsis){w=this.start,s.push(this.parseParenItem(this.parseRestBinding())),this.type===S.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}else s.push(this.parseMaybeAssign(!1,n,this.parseParenItem));var p=this.lastTokEnd,u=this.lastTokEndLoc;if(this.expect(S.parenR),e&&this.shouldParseArrow(s)&&this.eat(S.arrow))return this.checkPatternErrors(n,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=a,this.awaitPos=h,this.parseParenArrowList(t,g,s,A);(!s.length||o)&&this.unexpected(this.lastTokStart),w&&this.unexpected(w),this.checkExpressionErrors(n,!0),this.yieldPos=a||this.yieldPos,this.awaitPos=h||this.awaitPos,s.length>1?(i=this.startNodeAt(B,C),i.expressions=s,this.finishNodeAt(i,"SequenceExpression",p,u)):i=s[0]}else i=this.parseParenExpression();if(this.options.preserveParens){var c=this.startNodeAt(t,g);return c.expression=i,this.finishNode(c,"ParenthesizedExpression")}else return i},YA.parseParenItem=function(e){return e},YA.parseParenArrowList=function(e,A,t,g){return this.parseArrowExpression(this.startNodeAt(e,A),t,!1,g)};var fJ=[];YA.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===S.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 g=this.start,i=this.startLoc;return e.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),g,i,!0,!1),this.eat(S.parenL)?e.arguments=this.parseExprList(S.parenR,this.options.ecmaVersion>=8,!1):e.arguments=fJ,this.finishNode(e,"NewExpression")},YA.parseTemplateElement=function(e){var A=e.isTagged,t=this.startNode();return this.type===S.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,`
package/assets/index.html CHANGED
@@ -21,7 +21,7 @@
21
21
  import { create_component } from "/assets/index.js";
22
22
  const params = new URLSearchParams(location.search);
23
23
  const destroy = await create_component(document.getElementById("xit"), {
24
- host: `${location.host}/ws`,
24
+ host: "/ws",
25
25
  frame: params.get("frame") ?? "index",
26
26
  tag: params.get("tag"),
27
27
  cdn_url: "https://unpkg.com"
package/assets/index.js CHANGED
@@ -32,7 +32,7 @@ class ft {
32
32
  // non-blocking (run is blocking in c++)
33
33
  // calling it again should not do anything
34
34
  start() {
35
- u(this, g) == null && u(this, v) !== 1 && u(this, v) !== 3 && (w(this, g, new WebSocket(`ws://${u(this, x)}`)), u(this, g).binaryType = "arraybuffer", u(this, g).onopen = () => {
35
+ u(this, g) == null && u(this, v) !== 1 && u(this, v) !== 3 && (w(this, g, new WebSocket(u(this, x))), u(this, g).binaryType = "arraybuffer", u(this, g).onopen = () => {
36
36
  u(this, v) == 3 ? this.stop() : (w(this, v, 1), u(this, rt) && u(this, rt).call(this, u(this, x)));
37
37
  }, u(this, g).onclose = () => {
38
38
  u(this, v) === 1 && (u(this, ot) && u(this, ot).call(this, u(this, x)), w(this, v, 2), wt(this, _t, Ft).call(this));
@@ -2230,9 +2230,7 @@ const _e = async (s) => new Promise((t, e) => {
2230
2230
  const r = new k(), o = new Ct(
2231
2231
  s.id,
2232
2232
  a.data.code,
2233
- a.data.files.map(
2234
- (h) => new Bt(h.target, h.metadata)
2235
- )
2233
+ a.data.files.map((h) => new Bt(h.target, h.metadata))
2236
2234
  );
2237
2235
  r.finish(o.pack(r)), St(
2238
2236
  s.host,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nil-/xit",
3
- "version": "0.2.4",
3
+ "version": "0.2.6",
4
4
  "peerDependencies": {
5
5
  "svelte": "^5.7.1"
6
6
  },
@@ -11,9 +11,9 @@
11
11
  "types": "./index.d.ts",
12
12
  "default": "./index.js"
13
13
  },
14
- "./test": {
15
- "types": "./test.d.ts",
16
- "default": "./test.js"
14
+ "./test/Frame.svelte": {
15
+ "types": "./test/Frame.svelte.d.ts",
16
+ "svelte": "./test/Frame.svelte"
17
17
  },
18
18
  "./components/layouts/Container.svelte": {
19
19
  "types": "./components/layouts/Container.svelte.d.ts",
@@ -0,0 +1,78 @@
1
+ <script lang="ts">import { xit } from "../index";
2
+ import { get } from "svelte/store";
3
+ let {
4
+ decoder,
5
+ selected = -1,
6
+ load
7
+ } = $props();
8
+ let { signals, values, frame, frame_ui } = xit();
9
+ const frame_info = async (tag, decoder2) => {
10
+ const { values: values2, unsub } = await frame("frame_info", tag);
11
+ const load2 = async (key) => {
12
+ const v = values2.json(key, [], {
13
+ decode: decoder2,
14
+ encode: () => {
15
+ return new Uint8Array();
16
+ }
17
+ });
18
+ return Promise.all(
19
+ get(v).map((v2) => {
20
+ const [frame_id, mark, g] = v2.split(":");
21
+ if (g !== "V") {
22
+ return;
23
+ }
24
+ if (mark === "T") {
25
+ return frame_ui(frame_id, tag);
26
+ } else if (mark === "U") {
27
+ return frame_ui(frame_id);
28
+ }
29
+ }).filter((v2) => v2 != null)
30
+ );
31
+ };
32
+ const [inputs, outputs] = await Promise.all([load2("inputs"), load2("outputs")]);
33
+ unsub();
34
+ return { inputs, outputs };
35
+ };
36
+ const tags = values.json("tags", [], {
37
+ decode: decoder,
38
+ encode: () => new Uint8Array()
39
+ });
40
+ const finalize = signals.string("finalize");
41
+ let a_inputs = $state(null);
42
+ let a_outputs = $state(null);
43
+ let title = $state("");
44
+ const update = (v) => {
45
+ a_inputs = null;
46
+ a_outputs = null;
47
+ const t = $tags;
48
+ if (0 <= v && v < t.length) {
49
+ frame_info(t[v], decoder).then(({ inputs, outputs }) => {
50
+ a_inputs = inputs;
51
+ a_outputs = outputs;
52
+ });
53
+ title = t[selected];
54
+ } else {
55
+ title = "";
56
+ }
57
+ };
58
+ $effect(() => {
59
+ update(selected);
60
+ });
61
+ </script>
62
+
63
+ <svelte:head>
64
+ <title>nil - xit {title}</title>
65
+ </svelte:head>
66
+
67
+ <svelte:window
68
+ onkeydown={(event) => {
69
+ if ((event.ctrlKey || event.metaKey) && event.key === "s") {
70
+ if (0 <= selected && selected < $tags.length) {
71
+ finalize($tags[selected]);
72
+ event.preventDefault();
73
+ }
74
+ }
75
+ }}
76
+ />
77
+
78
+ {@render load($tags.sort(), { inputs: a_inputs, outputs: a_outputs })}
@@ -0,0 +1,16 @@
1
+ import type { Snippet } from "svelte";
2
+ import type { CoDec, Action } from "../index";
3
+ type $$ComponentProps = {
4
+ decoder: CoDec<any>["decode"];
5
+ selected?: number;
6
+ load: Snippet<[
7
+ string[],
8
+ {
9
+ inputs: Action<HTMLElement>[] | null;
10
+ outputs: Action<HTMLElement>[] | null;
11
+ }
12
+ ]>;
13
+ };
14
+ declare const Frame: import("svelte").Component<$$ComponentProps, {}, "">;
15
+ type Frame = ReturnType<typeof Frame>;
16
+ export default Frame;
package/test.d.ts DELETED
@@ -1,8 +0,0 @@
1
- import type { CoDec } from "./index";
2
- export declare const xit_test: () => {
3
- xit: import("./index").Context;
4
- frame_info: (tag: string, decoder: CoDec<any>["decode"]) => Promise<{
5
- inputs: import("./index").Action<HTMLElement>[];
6
- outputs: import("./index").Action<HTMLElement>[];
7
- }>;
8
- };
package/test.js DELETED
@@ -1,31 +0,0 @@
1
- import { xit } from "./index";
2
- import { get } from "svelte/store";
3
- export const xit_test = () => {
4
- const x = xit();
5
- return {
6
- xit: x,
7
- frame_info: async (tag, decoder) => {
8
- const { values, unsub } = await x.frame("frame_info", tag);
9
- const load = async (key) => {
10
- const v = values.json(key, [], { decode: decoder, encode: () => { return new Uint8Array(); } });
11
- return Promise.all(get(v)
12
- .map(v => {
13
- const [frame_id, mark, g] = v.split(":");
14
- if (g !== "V") {
15
- return;
16
- }
17
- if (mark === "T") {
18
- return x.frame_ui(frame_id, tag);
19
- }
20
- else if (mark === "U") {
21
- return x.frame_ui(frame_id);
22
- }
23
- })
24
- .filter(v => v != null));
25
- };
26
- const [inputs, outputs] = await Promise.all([load("inputs"), load("outputs")]);
27
- unsub();
28
- return { inputs, outputs };
29
- }
30
- };
31
- };