@nil-/xit 0.1.13 → 0.1.14

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,7 +1,7 @@
1
1
  var gI=Object.defineProperty;var AI=Bg=>{throw TypeError(Bg)};var iI=(Bg,ag,ig)=>ag in Bg?gI(Bg,ag,{enumerable:!0,configurable:!0,writable:!0,value:ig}):Bg[ag]=ig;var rg=(Bg,ag,ig)=>iI(Bg,typeof ag!="symbol"?ag+"":ag,ig),Hg=(Bg,ag,ig)=>ag.has(Bg)||AI("Cannot "+ig);var Ig=(Bg,ag,ig)=>(Hg(Bg,ag,"read from private field"),ig?ig.call(Bg):ag.get(Bg)),Gg=(Bg,ag,ig)=>ag.has(Bg)?AI("Cannot add the same private member more than once"):ag instanceof WeakSet?ag.add(Bg):ag.set(Bg,ig),cg=(Bg,ag,ig,mg)=>(Hg(Bg,ag,"write to private field"),mg?mg.call(Bg,ig):ag.set(Bg,ig),ig),Vg=(Bg,ag,ig)=>(Hg(Bg,ag,"access private method"),ig);(function(){"use strict";var Bg,Og,ig,mg,Ng,Sg,Rg,lg,Pg,Yg,jg;let Service$1=(Pg=class{constructor({host:AA,port:tA}){Gg(this,Bg);Gg(this,ig);Gg(this,mg);Gg(this,Ng);Gg(this,Sg);Gg(this,Rg);Gg(this,lg);cg(this,Rg,`${AA??"localhost"}${tA!=null?`:${tA}`:""}`),cg(this,ig,0),cg(this,mg,null),cg(this,Ng,null),cg(this,Sg,null),cg(this,lg,null)}on_message(AA){cg(this,Sg,AA)}on_connect(AA){cg(this,mg,AA)}on_disconnect(AA){cg(this,Ng,AA)}start(){Ig(this,lg)==null&&Ig(this,ig)!==1&&Ig(this,ig)!==3&&(cg(this,lg,new WebSocket(`ws://${Ig(this,Rg)}`)),Ig(this,lg).binaryType="arraybuffer",Ig(this,lg).onopen=()=>{cg(this,ig,1),Ig(this,mg)&&Ig(this,mg).call(this,Ig(this,Rg))},Ig(this,lg).onclose=()=>{Ig(this,ig)===1&&(Ig(this,Ng)&&Ig(this,Ng).call(this,Ig(this,Rg)),cg(this,ig,2),Vg(this,Bg,Og).call(this))},Ig(this,lg).onerror=()=>{Ig(this,ig)!==1&&Ig(this,ig)!==3&&(cg(this,ig,2),Vg(this,Bg,Og).call(this))},Ig(this,lg).onmessage=AA=>{Ig(this,Sg)&&Ig(this,Sg).call(this,Ig(this,Rg),new Uint8Array(AA.data))})}stop(){cg(this,ig,3),Ig(this,lg)!=null&&(Ig(this,lg).close(),cg(this,lg,null))}restart(){cg(this,ig,0)}publish(AA){Ig(this,lg)!=null&&Ig(this,ig)==1&&Ig(this,lg).send(AA)}send(AA,tA){AA===Ig(this,Rg)&&this.publish(tA)}},Bg=new WeakSet,Og=function(){Ig(this,lg)!=null&&(Ig(this,lg).close(),cg(this,lg,null)),setTimeout(()=>this.start(),1e3)},ig=new WeakMap,mg=new WeakMap,Ng=new WeakMap,Sg=new WeakMap,Rg=new WeakMap,lg=new WeakMap,Pg);const header=eA=>{const AA=new Uint8Array(4);return new DataView(AA.buffer).setUint32(0,eA,!1),AA},concat=eA=>{const AA=new Uint8Array(eA.reduce((gA,iA)=>gA+iA.length,0));let tA=0;for(const gA of eA)AA.set(gA,tA),tA+=gA.length;return AA},service_fetch=async(eA,AA,tA)=>new Promise((gA,iA)=>{const IA=new Service$1(eA),BA=setTimeout(()=>{IA.stop(),iA("timed out, cancelled")},2500);IA.on_connect(()=>IA.publish(AA)),IA.on_message((sA,QA)=>{const CA=new DataView(QA.buffer).getUint32(0,!1),oA=QA.slice(4),EA=tA(CA,oA);EA!=null&&(clearTimeout(BA),IA.stop(),gA(EA))}),IA.start()});var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(eA){return eA&&eA.__esModule&&Object.prototype.hasOwnProperty.call(eA,"default")?eA.default:eA}var indexLight={exports:{}},indexMinimal={},minimal={},aspromise=asPromise$1;function asPromise$1(eA,AA){for(var tA=new Array(arguments.length-1),gA=0,iA=2,IA=!0;iA<arguments.length;)tA[gA++]=arguments[iA++];return new Promise(function(sA,QA){tA[gA]=function(oA){if(IA)if(IA=!1,oA)QA(oA);else{for(var EA=new Array(arguments.length-1),nA=0;nA<EA.length;)EA[nA++]=arguments[nA];sA.apply(null,EA)}};try{eA.apply(AA||null,tA)}catch(CA){IA&&(IA=!1,QA(CA))}})}var base64$1={};(function(eA){var AA=eA;AA.length=function(sA){var QA=sA.length;if(!QA)return 0;for(var CA=0;--QA%4>1&&sA.charAt(QA)==="=";)++CA;return Math.ceil(sA.length*3)/4-CA};for(var tA=new Array(64),gA=new Array(123),iA=0;iA<64;)gA[tA[iA]=iA<26?iA+65:iA<52?iA+71:iA<62?iA-4:iA-59|43]=iA++;AA.encode=function(sA,QA,CA){for(var oA=null,EA=[],nA=0,cA=0,uA;QA<CA;){var lA=sA[QA++];switch(cA){case 0:EA[nA++]=tA[lA>>2],uA=(lA&3)<<4,cA=1;break;case 1:EA[nA++]=tA[uA|lA>>4],uA=(lA&15)<<2,cA=2;break;case 2:EA[nA++]=tA[uA|lA>>6],EA[nA++]=tA[lA&63],cA=0;break}nA>8191&&((oA||(oA=[])).push(String.fromCharCode.apply(String,EA)),nA=0)}return cA&&(EA[nA++]=tA[uA],EA[nA++]=61,cA===1&&(EA[nA++]=61)),oA?(nA&&oA.push(String.fromCharCode.apply(String,EA.slice(0,nA))),oA.join("")):String.fromCharCode.apply(String,EA.slice(0,nA))};var IA="invalid encoding";AA.decode=function(sA,QA,CA){for(var oA=CA,EA=0,nA,cA=0;cA<sA.length;){var uA=sA.charCodeAt(cA++);if(uA===61&&EA>1)break;if((uA=gA[uA])===void 0)throw Error(IA);switch(EA){case 0:nA=uA,EA=1;break;case 1:QA[CA++]=nA<<2|(uA&48)>>4,nA=uA,EA=2;break;case 2:QA[CA++]=(nA&15)<<4|(uA&60)>>2,nA=uA,EA=3;break;case 3:QA[CA++]=(nA&3)<<6|uA,EA=0;break}}if(EA===1)throw Error(IA);return CA-oA},AA.test=function(sA){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(sA)}})(base64$1);var eventemitter=EventEmitter;function EventEmitter(){this._listeners={}}EventEmitter.prototype.on=function(AA,tA,gA){return(this._listeners[AA]||(this._listeners[AA]=[])).push({fn:tA,ctx:gA||this}),this},EventEmitter.prototype.off=function(AA,tA){if(AA===void 0)this._listeners={};else if(tA===void 0)this._listeners[AA]=[];else for(var gA=this._listeners[AA],iA=0;iA<gA.length;)gA[iA].fn===tA?gA.splice(iA,1):++iA;return this},EventEmitter.prototype.emit=function(AA){var tA=this._listeners[AA];if(tA){for(var gA=[],iA=1;iA<arguments.length;)gA.push(arguments[iA++]);for(iA=0;iA<tA.length;)tA[iA].fn.apply(tA[iA++].ctx,gA)}return this};var float=factory(factory);function factory(eA){return typeof Float32Array<"u"?function(){var AA=new Float32Array([-0]),tA=new Uint8Array(AA.buffer),gA=tA[3]===128;function iA(QA,CA,oA){AA[0]=QA,CA[oA]=tA[0],CA[oA+1]=tA[1],CA[oA+2]=tA[2],CA[oA+3]=tA[3]}function IA(QA,CA,oA){AA[0]=QA,CA[oA]=tA[3],CA[oA+1]=tA[2],CA[oA+2]=tA[1],CA[oA+3]=tA[0]}eA.writeFloatLE=gA?iA:IA,eA.writeFloatBE=gA?IA:iA;function BA(QA,CA){return tA[0]=QA[CA],tA[1]=QA[CA+1],tA[2]=QA[CA+2],tA[3]=QA[CA+3],AA[0]}function sA(QA,CA){return tA[3]=QA[CA],tA[2]=QA[CA+1],tA[1]=QA[CA+2],tA[0]=QA[CA+3],AA[0]}eA.readFloatLE=gA?BA:sA,eA.readFloatBE=gA?sA:BA}():function(){function AA(gA,iA,IA,BA){var sA=iA<0?1:0;if(sA&&(iA=-iA),iA===0)gA(1/iA>0?0:2147483648,IA,BA);else if(isNaN(iA))gA(2143289344,IA,BA);else if(iA>34028234663852886e22)gA((sA<<31|2139095040)>>>0,IA,BA);else if(iA<11754943508222875e-54)gA((sA<<31|Math.round(iA/1401298464324817e-60))>>>0,IA,BA);else{var QA=Math.floor(Math.log(iA)/Math.LN2),CA=Math.round(iA*Math.pow(2,-QA)*8388608)&8388607;gA((sA<<31|QA+127<<23|CA)>>>0,IA,BA)}}eA.writeFloatLE=AA.bind(null,writeUintLE),eA.writeFloatBE=AA.bind(null,writeUintBE);function tA(gA,iA,IA){var BA=gA(iA,IA),sA=(BA>>31)*2+1,QA=BA>>>23&255,CA=BA&8388607;return QA===255?CA?NaN:sA*(1/0):QA===0?sA*1401298464324817e-60*CA:sA*Math.pow(2,QA-150)*(CA+8388608)}eA.readFloatLE=tA.bind(null,readUintLE),eA.readFloatBE=tA.bind(null,readUintBE)}(),typeof Float64Array<"u"?function(){var AA=new Float64Array([-0]),tA=new Uint8Array(AA.buffer),gA=tA[7]===128;function iA(QA,CA,oA){AA[0]=QA,CA[oA]=tA[0],CA[oA+1]=tA[1],CA[oA+2]=tA[2],CA[oA+3]=tA[3],CA[oA+4]=tA[4],CA[oA+5]=tA[5],CA[oA+6]=tA[6],CA[oA+7]=tA[7]}function IA(QA,CA,oA){AA[0]=QA,CA[oA]=tA[7],CA[oA+1]=tA[6],CA[oA+2]=tA[5],CA[oA+3]=tA[4],CA[oA+4]=tA[3],CA[oA+5]=tA[2],CA[oA+6]=tA[1],CA[oA+7]=tA[0]}eA.writeDoubleLE=gA?iA:IA,eA.writeDoubleBE=gA?IA:iA;function BA(QA,CA){return tA[0]=QA[CA],tA[1]=QA[CA+1],tA[2]=QA[CA+2],tA[3]=QA[CA+3],tA[4]=QA[CA+4],tA[5]=QA[CA+5],tA[6]=QA[CA+6],tA[7]=QA[CA+7],AA[0]}function sA(QA,CA){return tA[7]=QA[CA],tA[6]=QA[CA+1],tA[5]=QA[CA+2],tA[4]=QA[CA+3],tA[3]=QA[CA+4],tA[2]=QA[CA+5],tA[1]=QA[CA+6],tA[0]=QA[CA+7],AA[0]}eA.readDoubleLE=gA?BA:sA,eA.readDoubleBE=gA?sA:BA}():function(){function AA(gA,iA,IA,BA,sA,QA){var CA=BA<0?1:0;if(CA&&(BA=-BA),BA===0)gA(0,sA,QA+iA),gA(1/BA>0?0:2147483648,sA,QA+IA);else if(isNaN(BA))gA(0,sA,QA+iA),gA(2146959360,sA,QA+IA);else if(BA>17976931348623157e292)gA(0,sA,QA+iA),gA((CA<<31|2146435072)>>>0,sA,QA+IA);else{var oA;if(BA<22250738585072014e-324)oA=BA/5e-324,gA(oA>>>0,sA,QA+iA),gA((CA<<31|oA/4294967296)>>>0,sA,QA+IA);else{var EA=Math.floor(Math.log(BA)/Math.LN2);EA===1024&&(EA=1023),oA=BA*Math.pow(2,-EA),gA(oA*4503599627370496>>>0,sA,QA+iA),gA((CA<<31|EA+1023<<20|oA*1048576&1048575)>>>0,sA,QA+IA)}}}eA.writeDoubleLE=AA.bind(null,writeUintLE,0,4),eA.writeDoubleBE=AA.bind(null,writeUintBE,4,0);function tA(gA,iA,IA,BA,sA){var QA=gA(BA,sA+iA),CA=gA(BA,sA+IA),oA=(CA>>31)*2+1,EA=CA>>>20&2047,nA=4294967296*(CA&1048575)+QA;return EA===2047?nA?NaN:oA*(1/0):EA===0?oA*5e-324*nA:oA*Math.pow(2,EA-1075)*(nA+4503599627370496)}eA.readDoubleLE=tA.bind(null,readUintLE,0,4),eA.readDoubleBE=tA.bind(null,readUintBE,4,0)}(),eA}function writeUintLE(eA,AA,tA){AA[tA]=eA&255,AA[tA+1]=eA>>>8&255,AA[tA+2]=eA>>>16&255,AA[tA+3]=eA>>>24}function writeUintBE(eA,AA,tA){AA[tA]=eA>>>24,AA[tA+1]=eA>>>16&255,AA[tA+2]=eA>>>8&255,AA[tA+3]=eA&255}function readUintLE(eA,AA){return(eA[AA]|eA[AA+1]<<8|eA[AA+2]<<16|eA[AA+3]<<24)>>>0}function readUintBE(eA,AA){return(eA[AA]<<24|eA[AA+1]<<16|eA[AA+2]<<8|eA[AA+3])>>>0}var inquire_1=inquire$1;function inquire$1(moduleName){try{var mod=eval("quire".replace(/^/,"re"))(moduleName);if(mod&&(mod.length||Object.keys(mod).length))return mod}catch(eA){}return null}var utf8$2={};(function(eA){var AA=eA;AA.length=function(gA){for(var iA=0,IA=0,BA=0;BA<gA.length;++BA)IA=gA.charCodeAt(BA),IA<128?iA+=1:IA<2048?iA+=2:(IA&64512)===55296&&(gA.charCodeAt(BA+1)&64512)===56320?(++BA,iA+=4):iA+=3;return iA},AA.read=function(gA,iA,IA){var BA=IA-iA;if(BA<1)return"";for(var sA=null,QA=[],CA=0,oA;iA<IA;)oA=gA[iA++],oA<128?QA[CA++]=oA:oA>191&&oA<224?QA[CA++]=(oA&31)<<6|gA[iA++]&63:oA>239&&oA<365?(oA=((oA&7)<<18|(gA[iA++]&63)<<12|(gA[iA++]&63)<<6|gA[iA++]&63)-65536,QA[CA++]=55296+(oA>>10),QA[CA++]=56320+(oA&1023)):QA[CA++]=(oA&15)<<12|(gA[iA++]&63)<<6|gA[iA++]&63,CA>8191&&((sA||(sA=[])).push(String.fromCharCode.apply(String,QA)),CA=0);return sA?(CA&&sA.push(String.fromCharCode.apply(String,QA.slice(0,CA))),sA.join("")):String.fromCharCode.apply(String,QA.slice(0,CA))},AA.write=function(gA,iA,IA){for(var BA=IA,sA,QA,CA=0;CA<gA.length;++CA)sA=gA.charCodeAt(CA),sA<128?iA[IA++]=sA:sA<2048?(iA[IA++]=sA>>6|192,iA[IA++]=sA&63|128):(sA&64512)===55296&&((QA=gA.charCodeAt(CA+1))&64512)===56320?(sA=65536+((sA&1023)<<10)+(QA&1023),++CA,iA[IA++]=sA>>18|240,iA[IA++]=sA>>12&63|128,iA[IA++]=sA>>6&63|128,iA[IA++]=sA&63|128):(iA[IA++]=sA>>12|224,iA[IA++]=sA>>6&63|128,iA[IA++]=sA&63|128);return IA-BA}})(utf8$2);var pool_1=pool;function pool(eA,AA,tA){var gA=tA||8192,iA=gA>>>1,IA=null,BA=gA;return function(QA){if(QA<1||QA>iA)return eA(QA);BA+QA>gA&&(IA=eA(gA),BA=0);var CA=AA.call(IA,BA,BA+=QA);return BA&7&&(BA=(BA|7)+1),CA}}var longbits,hasRequiredLongbits;function requireLongbits(){if(hasRequiredLongbits)return longbits;hasRequiredLongbits=1,longbits=AA;var eA=requireMinimal();function AA(IA,BA){this.lo=IA>>>0,this.hi=BA>>>0}var tA=AA.zero=new AA(0,0);tA.toNumber=function(){return 0},tA.zzEncode=tA.zzDecode=function(){return this},tA.length=function(){return 1};var gA=AA.zeroHash="\0\0\0\0\0\0\0\0";AA.fromNumber=function(BA){if(BA===0)return tA;var sA=BA<0;sA&&(BA=-BA);var QA=BA>>>0,CA=(BA-QA)/4294967296>>>0;return sA&&(CA=~CA>>>0,QA=~QA>>>0,++QA>4294967295&&(QA=0,++CA>4294967295&&(CA=0))),new AA(QA,CA)},AA.from=function(BA){if(typeof BA=="number")return AA.fromNumber(BA);if(eA.isString(BA))if(eA.Long)BA=eA.Long.fromString(BA);else return AA.fromNumber(parseInt(BA,10));return BA.low||BA.high?new AA(BA.low>>>0,BA.high>>>0):tA},AA.prototype.toNumber=function(BA){if(!BA&&this.hi>>>31){var sA=~this.lo+1>>>0,QA=~this.hi>>>0;return sA||(QA=QA+1>>>0),-(sA+QA*4294967296)}return this.lo+this.hi*4294967296},AA.prototype.toLong=function(BA){return eA.Long?new eA.Long(this.lo|0,this.hi|0,!!BA):{low:this.lo|0,high:this.hi|0,unsigned:!!BA}};var iA=String.prototype.charCodeAt;return AA.fromHash=function(BA){return BA===gA?tA:new AA((iA.call(BA,0)|iA.call(BA,1)<<8|iA.call(BA,2)<<16|iA.call(BA,3)<<24)>>>0,(iA.call(BA,4)|iA.call(BA,5)<<8|iA.call(BA,6)<<16|iA.call(BA,7)<<24)>>>0)},AA.prototype.toHash=function(){return String.fromCharCode(this.lo&255,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,this.hi&255,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},AA.prototype.zzEncode=function(){var BA=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^BA)>>>0,this.lo=(this.lo<<1^BA)>>>0,this},AA.prototype.zzDecode=function(){var BA=-(this.lo&1);return this.lo=((this.lo>>>1|this.hi<<31)^BA)>>>0,this.hi=(this.hi>>>1^BA)>>>0,this},AA.prototype.length=function(){var BA=this.lo,sA=(this.lo>>>28|this.hi<<4)>>>0,QA=this.hi>>>24;return QA===0?sA===0?BA<16384?BA<128?1:2:BA<2097152?3:4:sA<16384?sA<128?5:6:sA<2097152?7:8:QA<128?9:10},longbits}var hasRequiredMinimal;function requireMinimal(){return hasRequiredMinimal||(hasRequiredMinimal=1,function(eA){var AA=eA;AA.asPromise=aspromise,AA.base64=base64$1,AA.EventEmitter=eventemitter,AA.float=float,AA.inquire=inquire_1,AA.utf8=utf8$2,AA.pool=pool_1,AA.LongBits=requireLongbits(),AA.isNode=!!(typeof commonjsGlobal<"u"&&commonjsGlobal&&commonjsGlobal.process&&commonjsGlobal.process.versions&&commonjsGlobal.process.versions.node),AA.global=AA.isNode&&commonjsGlobal||typeof window<"u"&&window||typeof self<"u"&&self||commonjsGlobal,AA.emptyArray=Object.freeze?Object.freeze([]):[],AA.emptyObject=Object.freeze?Object.freeze({}):{},AA.isInteger=Number.isInteger||function(IA){return typeof IA=="number"&&isFinite(IA)&&Math.floor(IA)===IA},AA.isString=function(IA){return typeof IA=="string"||IA instanceof String},AA.isObject=function(IA){return IA&&typeof IA=="object"},AA.isset=AA.isSet=function(IA,BA){var sA=IA[BA];return sA!=null&&IA.hasOwnProperty(BA)?typeof sA!="object"||(Array.isArray(sA)?sA.length:Object.keys(sA).length)>0:!1},AA.Buffer=function(){try{var iA=AA.inquire("buffer").Buffer;return iA.prototype.utf8Write?iA:null}catch{return null}}(),AA._Buffer_from=null,AA._Buffer_allocUnsafe=null,AA.newBuffer=function(IA){return typeof IA=="number"?AA.Buffer?AA._Buffer_allocUnsafe(IA):new AA.Array(IA):AA.Buffer?AA._Buffer_from(IA):typeof Uint8Array>"u"?IA:new Uint8Array(IA)},AA.Array=typeof Uint8Array<"u"?Uint8Array:Array,AA.Long=AA.global.dcodeIO&&AA.global.dcodeIO.Long||AA.global.Long||AA.inquire("long"),AA.key2Re=/^true|false|0|1$/,AA.key32Re=/^-?(?:0|[1-9][0-9]*)$/,AA.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,AA.longToHash=function(IA){return IA?AA.LongBits.from(IA).toHash():AA.LongBits.zeroHash},AA.longFromHash=function(IA,BA){var sA=AA.LongBits.fromHash(IA);return AA.Long?AA.Long.fromBits(sA.lo,sA.hi,BA):sA.toNumber(!!BA)};function tA(iA,IA,BA){for(var sA=Object.keys(IA),QA=0;QA<sA.length;++QA)(iA[sA[QA]]===void 0||!BA)&&(iA[sA[QA]]=IA[sA[QA]]);return iA}AA.merge=tA,AA.lcFirst=function(IA){return IA.charAt(0).toLowerCase()+IA.substring(1)};function gA(iA){function IA(BA,sA){if(!(this instanceof IA))return new IA(BA,sA);Object.defineProperty(this,"message",{get:function(){return BA}}),Error.captureStackTrace?Error.captureStackTrace(this,IA):Object.defineProperty(this,"stack",{value:new Error().stack||""}),sA&&tA(this,sA)}return IA.prototype=Object.create(Error.prototype,{constructor:{value:IA,writable:!0,enumerable:!1,configurable:!0},name:{get:function(){return iA},set:void 0,enumerable:!1,configurable:!0},toString:{value:function(){return this.name+": "+this.message},writable:!0,enumerable:!1,configurable:!0}}),IA}AA.newError=gA,AA.ProtocolError=gA("ProtocolError"),AA.oneOfGetter=function(IA){for(var BA={},sA=0;sA<IA.length;++sA)BA[IA[sA]]=1;return function(){for(var QA=Object.keys(this),CA=QA.length-1;CA>-1;--CA)if(BA[QA[CA]]===1&&this[QA[CA]]!==void 0&&this[QA[CA]]!==null)return QA[CA]}},AA.oneOfSetter=function(IA){return function(BA){for(var sA=0;sA<IA.length;++sA)IA[sA]!==BA&&delete this[IA[sA]]}},AA.toJSONOptions={longs:String,enums:String,bytes:String,json:!0},AA._configure=function(){var iA=AA.Buffer;if(!iA){AA._Buffer_from=AA._Buffer_allocUnsafe=null;return}AA._Buffer_from=iA.from!==Uint8Array.from&&iA.from||function(BA,sA){return new iA(BA,sA)},AA._Buffer_allocUnsafe=iA.allocUnsafe||function(BA){return new iA(BA)}}}(minimal)),minimal}var writer=Writer$1,util$6=requireMinimal(),BufferWriter$1,LongBits$1=util$6.LongBits,base64=util$6.base64,utf8$1=util$6.utf8;function Op(eA,AA,tA){this.fn=eA,this.len=AA,this.next=void 0,this.val=tA}function noop(){}function State(eA){this.head=eA.head,this.tail=eA.tail,this.len=eA.len,this.next=eA.states}function Writer$1(){this.len=0,this.head=new Op(noop,0,0),this.tail=this.head,this.states=null}var create$1=function eA(){return util$6.Buffer?function(){return(Writer$1.create=function(){return new BufferWriter$1})()}:function(){return new Writer$1}};Writer$1.create=create$1(),Writer$1.alloc=function eA(AA){return new util$6.Array(AA)},util$6.Array!==Array&&(Writer$1.alloc=util$6.pool(Writer$1.alloc,util$6.Array.prototype.subarray)),Writer$1.prototype._push=function eA(AA,tA,gA){return this.tail=this.tail.next=new Op(AA,tA,gA),this.len+=tA,this};function writeByte(eA,AA,tA){AA[tA]=eA&255}function writeVarint32(eA,AA,tA){for(;eA>127;)AA[tA++]=eA&127|128,eA>>>=7;AA[tA]=eA}function VarintOp(eA,AA){this.len=eA,this.next=void 0,this.val=AA}VarintOp.prototype=Object.create(Op.prototype),VarintOp.prototype.fn=writeVarint32,Writer$1.prototype.uint32=function eA(AA){return this.len+=(this.tail=this.tail.next=new VarintOp((AA=AA>>>0)<128?1:AA<16384?2:AA<2097152?3:AA<268435456?4:5,AA)).len,this},Writer$1.prototype.int32=function eA(AA){return AA<0?this._push(writeVarint64,10,LongBits$1.fromNumber(AA)):this.uint32(AA)},Writer$1.prototype.sint32=function eA(AA){return this.uint32((AA<<1^AA>>31)>>>0)};function writeVarint64(eA,AA,tA){for(;eA.hi;)AA[tA++]=eA.lo&127|128,eA.lo=(eA.lo>>>7|eA.hi<<25)>>>0,eA.hi>>>=7;for(;eA.lo>127;)AA[tA++]=eA.lo&127|128,eA.lo=eA.lo>>>7;AA[tA++]=eA.lo}Writer$1.prototype.uint64=function eA(AA){var tA=LongBits$1.from(AA);return this._push(writeVarint64,tA.length(),tA)},Writer$1.prototype.int64=Writer$1.prototype.uint64,Writer$1.prototype.sint64=function eA(AA){var tA=LongBits$1.from(AA).zzEncode();return this._push(writeVarint64,tA.length(),tA)},Writer$1.prototype.bool=function eA(AA){return this._push(writeByte,1,AA?1:0)};function writeFixed32(eA,AA,tA){AA[tA]=eA&255,AA[tA+1]=eA>>>8&255,AA[tA+2]=eA>>>16&255,AA[tA+3]=eA>>>24}Writer$1.prototype.fixed32=function eA(AA){return this._push(writeFixed32,4,AA>>>0)},Writer$1.prototype.sfixed32=Writer$1.prototype.fixed32,Writer$1.prototype.fixed64=function eA(AA){var tA=LongBits$1.from(AA);return this._push(writeFixed32,4,tA.lo)._push(writeFixed32,4,tA.hi)},Writer$1.prototype.sfixed64=Writer$1.prototype.fixed64,Writer$1.prototype.float=function eA(AA){return this._push(util$6.float.writeFloatLE,4,AA)},Writer$1.prototype.double=function eA(AA){return this._push(util$6.float.writeDoubleLE,8,AA)};var writeBytes=util$6.Array.prototype.set?function eA(AA,tA,gA){tA.set(AA,gA)}:function eA(AA,tA,gA){for(var iA=0;iA<AA.length;++iA)tA[gA+iA]=AA[iA]};Writer$1.prototype.bytes=function eA(AA){var tA=AA.length>>>0;if(!tA)return this._push(writeByte,1,0);if(util$6.isString(AA)){var gA=Writer$1.alloc(tA=base64.length(AA));base64.decode(AA,gA,0),AA=gA}return this.uint32(tA)._push(writeBytes,tA,AA)},Writer$1.prototype.string=function eA(AA){var tA=utf8$1.length(AA);return tA?this.uint32(tA)._push(utf8$1.write,tA,AA):this._push(writeByte,1,0)},Writer$1.prototype.fork=function eA(){return this.states=new State(this),this.head=this.tail=new Op(noop,0,0),this.len=0,this},Writer$1.prototype.reset=function eA(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new Op(noop,0,0),this.len=0),this},Writer$1.prototype.ldelim=function eA(){var AA=this.head,tA=this.tail,gA=this.len;return this.reset().uint32(gA),gA&&(this.tail.next=AA.next,this.tail=tA,this.len+=gA),this},Writer$1.prototype.finish=function eA(){for(var AA=this.head.next,tA=this.constructor.alloc(this.len),gA=0;AA;)AA.fn(AA.val,tA,gA),gA+=AA.len,AA=AA.next;return tA},Writer$1._configure=function(eA){BufferWriter$1=eA,Writer$1.create=create$1(),BufferWriter$1._configure()};var writer_buffer=BufferWriter,Writer=writer;(BufferWriter.prototype=Object.create(Writer.prototype)).constructor=BufferWriter;var util$5=requireMinimal();function BufferWriter(){Writer.call(this)}BufferWriter._configure=function(){BufferWriter.alloc=util$5._Buffer_allocUnsafe,BufferWriter.writeBytesBuffer=util$5.Buffer&&util$5.Buffer.prototype instanceof Uint8Array&&util$5.Buffer.prototype.set.name==="set"?function(AA,tA,gA){tA.set(AA,gA)}:function(AA,tA,gA){if(AA.copy)AA.copy(tA,gA,0,AA.length);else for(var iA=0;iA<AA.length;)tA[gA++]=AA[iA++]}},BufferWriter.prototype.bytes=function eA(AA){util$5.isString(AA)&&(AA=util$5._Buffer_from(AA,"base64"));var tA=AA.length>>>0;return this.uint32(tA),tA&&this._push(BufferWriter.writeBytesBuffer,tA,AA),this};function writeStringBuffer(eA,AA,tA){eA.length<40?util$5.utf8.write(eA,AA,tA):AA.utf8Write?AA.utf8Write(eA,tA):AA.write(eA,tA)}BufferWriter.prototype.string=function eA(AA){var tA=util$5.Buffer.byteLength(AA);return this.uint32(tA),tA&&this._push(writeStringBuffer,tA,AA),this},BufferWriter._configure();var reader=Reader$1,util$4=requireMinimal(),BufferReader$1,LongBits=util$4.LongBits,utf8=util$4.utf8;function indexOutOfRange(eA,AA){return RangeError("index out of range: "+eA.pos+" + "+(AA||1)+" > "+eA.len)}function Reader$1(eA){this.buf=eA,this.pos=0,this.len=eA.length}var create_array=typeof Uint8Array<"u"?function eA(AA){if(AA instanceof Uint8Array||Array.isArray(AA))return new Reader$1(AA);throw Error("illegal buffer")}:function eA(AA){if(Array.isArray(AA))return new Reader$1(AA);throw Error("illegal buffer")},create=function eA(){return util$4.Buffer?function(tA){return(Reader$1.create=function(iA){return util$4.Buffer.isBuffer(iA)?new BufferReader$1(iA):create_array(iA)})(tA)}:create_array};Reader$1.create=create(),Reader$1.prototype._slice=util$4.Array.prototype.subarray||util$4.Array.prototype.slice,Reader$1.prototype.uint32=function eA(){var AA=4294967295;return function(){if(AA=(this.buf[this.pos]&127)>>>0,this.buf[this.pos++]<128||(AA=(AA|(this.buf[this.pos]&127)<<7)>>>0,this.buf[this.pos++]<128)||(AA=(AA|(this.buf[this.pos]&127)<<14)>>>0,this.buf[this.pos++]<128)||(AA=(AA|(this.buf[this.pos]&127)<<21)>>>0,this.buf[this.pos++]<128)||(AA=(AA|(this.buf[this.pos]&15)<<28)>>>0,this.buf[this.pos++]<128))return AA;if((this.pos+=5)>this.len)throw this.pos=this.len,indexOutOfRange(this,10);return AA}}(),Reader$1.prototype.int32=function eA(){return this.uint32()|0},Reader$1.prototype.sint32=function eA(){var AA=this.uint32();return AA>>>1^-(AA&1)|0};function readLongVarint(){var eA=new LongBits(0,0),AA=0;if(this.len-this.pos>4){for(;AA<4;++AA)if(eA.lo=(eA.lo|(this.buf[this.pos]&127)<<AA*7)>>>0,this.buf[this.pos++]<128)return eA;if(eA.lo=(eA.lo|(this.buf[this.pos]&127)<<28)>>>0,eA.hi=(eA.hi|(this.buf[this.pos]&127)>>4)>>>0,this.buf[this.pos++]<128)return eA;AA=0}else{for(;AA<3;++AA){if(this.pos>=this.len)throw indexOutOfRange(this);if(eA.lo=(eA.lo|(this.buf[this.pos]&127)<<AA*7)>>>0,this.buf[this.pos++]<128)return eA}return eA.lo=(eA.lo|(this.buf[this.pos++]&127)<<AA*7)>>>0,eA}if(this.len-this.pos>4){for(;AA<5;++AA)if(eA.hi=(eA.hi|(this.buf[this.pos]&127)<<AA*7+3)>>>0,this.buf[this.pos++]<128)return eA}else for(;AA<5;++AA){if(this.pos>=this.len)throw indexOutOfRange(this);if(eA.hi=(eA.hi|(this.buf[this.pos]&127)<<AA*7+3)>>>0,this.buf[this.pos++]<128)return eA}throw Error("invalid varint encoding")}Reader$1.prototype.bool=function eA(){return this.uint32()!==0};function readFixed32_end(eA,AA){return(eA[AA-4]|eA[AA-3]<<8|eA[AA-2]<<16|eA[AA-1]<<24)>>>0}Reader$1.prototype.fixed32=function eA(){if(this.pos+4>this.len)throw indexOutOfRange(this,4);return readFixed32_end(this.buf,this.pos+=4)},Reader$1.prototype.sfixed32=function eA(){if(this.pos+4>this.len)throw indexOutOfRange(this,4);return readFixed32_end(this.buf,this.pos+=4)|0};function readFixed64(){if(this.pos+8>this.len)throw indexOutOfRange(this,8);return new LongBits(readFixed32_end(this.buf,this.pos+=4),readFixed32_end(this.buf,this.pos+=4))}Reader$1.prototype.float=function eA(){if(this.pos+4>this.len)throw indexOutOfRange(this,4);var AA=util$4.float.readFloatLE(this.buf,this.pos);return this.pos+=4,AA},Reader$1.prototype.double=function eA(){if(this.pos+8>this.len)throw indexOutOfRange(this,4);var AA=util$4.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,AA},Reader$1.prototype.bytes=function eA(){var AA=this.uint32(),tA=this.pos,gA=this.pos+AA;if(gA>this.len)throw indexOutOfRange(this,AA);if(this.pos+=AA,Array.isArray(this.buf))return this.buf.slice(tA,gA);if(tA===gA){var iA=util$4.Buffer;return iA?iA.alloc(0):new this.buf.constructor(0)}return this._slice.call(this.buf,tA,gA)},Reader$1.prototype.string=function eA(){var AA=this.bytes();return utf8.read(AA,0,AA.length)},Reader$1.prototype.skip=function eA(AA){if(typeof AA=="number"){if(this.pos+AA>this.len)throw indexOutOfRange(this,AA);this.pos+=AA}else do if(this.pos>=this.len)throw indexOutOfRange(this);while(this.buf[this.pos++]&128);return this},Reader$1.prototype.skipType=function(eA){switch(eA){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;(eA=this.uint32()&7)!==4;)this.skipType(eA);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+eA+" at offset "+this.pos)}return this},Reader$1._configure=function(eA){BufferReader$1=eA,Reader$1.create=create(),BufferReader$1._configure();var AA=util$4.Long?"toLong":"toNumber";util$4.merge(Reader$1.prototype,{int64:function(){return readLongVarint.call(this)[AA](!1)},uint64:function(){return readLongVarint.call(this)[AA](!0)},sint64:function(){return readLongVarint.call(this).zzDecode()[AA](!1)},fixed64:function(){return readFixed64.call(this)[AA](!0)},sfixed64:function(){return readFixed64.call(this)[AA](!1)}})};var reader_buffer=BufferReader,Reader=reader;(BufferReader.prototype=Object.create(Reader.prototype)).constructor=BufferReader;var util$3=requireMinimal();function BufferReader(eA){Reader.call(this,eA)}BufferReader._configure=function(){util$3.Buffer&&(BufferReader.prototype._slice=util$3.Buffer.prototype.slice)},BufferReader.prototype.string=function eA(){var AA=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+AA,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+AA,this.len))},BufferReader._configure();var rpc={},service$1=Service,util$2=requireMinimal();(Service.prototype=Object.create(util$2.EventEmitter.prototype)).constructor=Service;function Service(eA,AA,tA){if(typeof eA!="function")throw TypeError("rpcImpl must be a function");util$2.EventEmitter.call(this),this.rpcImpl=eA,this.requestDelimited=!!AA,this.responseDelimited=!!tA}Service.prototype.rpcCall=function eA(AA,tA,gA,iA,IA){if(!iA)throw TypeError("request must be specified");var BA=this;if(!IA)return util$2.asPromise(eA,BA,AA,tA,gA,iA);if(!BA.rpcImpl){setTimeout(function(){IA(Error("already ended"))},0);return}try{return BA.rpcImpl(AA,tA[BA.requestDelimited?"encodeDelimited":"encode"](iA).finish(),function(QA,CA){if(QA)return BA.emit("error",QA,AA),IA(QA);if(CA===null){BA.end(!0);return}if(!(CA instanceof gA))try{CA=gA[BA.responseDelimited?"decodeDelimited":"decode"](CA)}catch(oA){return BA.emit("error",oA,AA),IA(oA)}return BA.emit("data",CA,AA),IA(null,CA)})}catch(sA){BA.emit("error",sA,AA),setTimeout(function(){IA(sA)},0);return}},Service.prototype.end=function eA(AA){return this.rpcImpl&&(AA||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this},function(eA){var AA=eA;AA.Service=service$1}(rpc);var roots={};(function(eA){var AA=eA;AA.build="minimal",AA.Writer=writer,AA.BufferWriter=writer_buffer,AA.Reader=reader,AA.BufferReader=reader_buffer,AA.util=requireMinimal(),AA.rpc=rpc,AA.roots=roots,AA.configure=tA;function tA(){AA.util._configure(),AA.Writer._configure(AA.BufferWriter),AA.Reader._configure(AA.BufferReader)}tA()})(indexMinimal);var util$1={exports:{}},codegen_1=codegen;function codegen(eA,AA){typeof eA=="string"&&(AA=eA,eA=void 0);var tA=[];function gA(IA){if(typeof IA!="string"){var BA=iA();if(codegen.verbose&&console.log("codegen: "+BA),BA="return "+BA,IA){for(var sA=Object.keys(IA),QA=new Array(sA.length+1),CA=new Array(sA.length),oA=0;oA<sA.length;)QA[oA]=sA[oA],CA[oA]=IA[sA[oA++]];return QA[oA]=BA,Function.apply(null,QA).apply(null,CA)}return Function(BA)()}for(var EA=new Array(arguments.length-1),nA=0;nA<EA.length;)EA[nA]=arguments[++nA];if(nA=0,IA=IA.replace(/%([%dfijs])/g,function(uA,lA){var hA=EA[nA++];switch(lA){case"d":case"f":return String(Number(hA));case"i":return String(Math.floor(hA));case"j":return JSON.stringify(hA);case"s":return String(hA)}return"%"}),nA!==EA.length)throw Error("parameter count mismatch");return tA.push(IA),gA}function iA(IA){return"function "+(IA||AA||"")+"("+(eA&&eA.join(",")||"")+`){
2
2
  `+tA.join(`
3
3
  `)+`
4
- }`}return gA.toString=iA,gA}codegen.verbose=!1;var fetch_1=fetch$1,asPromise=aspromise,inquire=inquire_1,fs$1=inquire("fs");function fetch$1(eA,AA,tA){return typeof AA=="function"?(tA=AA,AA={}):AA||(AA={}),tA?!AA.xhr&&fs$1&&fs$1.readFile?fs$1.readFile(eA,function(iA,IA){return iA&&typeof XMLHttpRequest<"u"?fetch$1.xhr(eA,AA,tA):iA?tA(iA):tA(null,AA.binary?IA:IA.toString("utf8"))}):fetch$1.xhr(eA,AA,tA):asPromise(fetch$1,this,eA,AA)}fetch$1.xhr=function eA(AA,tA,gA){var iA=new XMLHttpRequest;iA.onreadystatechange=function(){if(iA.readyState===4){if(iA.status!==0&&iA.status!==200)return gA(Error("status "+iA.status));if(tA.binary){var BA=iA.response;if(!BA){BA=[];for(var sA=0;sA<iA.responseText.length;++sA)BA.push(iA.responseText.charCodeAt(sA)&255)}return gA(null,typeof Uint8Array<"u"?new Uint8Array(BA):BA)}return gA(null,iA.responseText)}},tA.binary&&("overrideMimeType"in iA&&iA.overrideMimeType("text/plain; charset=x-user-defined"),iA.responseType="arraybuffer"),iA.open("GET",AA),iA.send()};var path={};(function(eA){var AA=eA,tA=AA.isAbsolute=function(IA){return/^(?:\/|\w+:)/.test(IA)},gA=AA.normalize=function(IA){IA=IA.replace(/\\/g,"/").replace(/\/{2,}/g,"/");var BA=IA.split("/"),sA=tA(IA),QA="";sA&&(QA=BA.shift()+"/");for(var CA=0;CA<BA.length;)BA[CA]===".."?CA>0&&BA[CA-1]!==".."?BA.splice(--CA,2):sA?BA.splice(CA,1):++CA:BA[CA]==="."?BA.splice(CA,1):++CA;return QA+BA.join("/")};AA.resolve=function(IA,BA,sA){return sA||(BA=gA(BA)),tA(BA)?BA:(sA||(IA=gA(IA)),(IA=IA.replace(/(?:\/|^)[^/]+$/,"")).length?gA(IA+"/"+BA):BA)}})(path);var types$2={},hasRequiredTypes;function requireTypes(){return hasRequiredTypes||(hasRequiredTypes=1,function(eA){var AA=eA,tA=requireUtil(),gA=["double","float","int32","uint32","sint32","fixed32","sfixed32","int64","uint64","sint64","fixed64","sfixed64","bool","string","bytes"];function iA(IA,BA){var sA=0,QA={};for(BA|=0;sA<IA.length;)QA[gA[sA+BA]]=IA[sA++];return QA}AA.basic=iA([1,5,0,0,0,5,5,0,0,0,1,1,0,2,2]),AA.defaults=iA([0,0,0,0,0,0,0,0,0,0,0,0,!1,"",tA.emptyArray,null]),AA.long=iA([0,0,0,1,1],7),AA.mapKey=iA([0,0,0,5,5,0,0,0,1,1,0,2],2),AA.packed=iA([1,5,0,0,0,5,5,0,0,0,1,1,0])}(types$2)),types$2}var field,hasRequiredField;function requireField(){if(hasRequiredField)return field;hasRequiredField=1,field=BA;var eA=requireObject();((BA.prototype=Object.create(eA.prototype)).constructor=BA).className="Field";var AA=require_enum(),tA=requireTypes(),gA=requireUtil(),iA,IA=/^required|optional|repeated$/;BA.fromJSON=function(QA,CA){return new BA(QA,CA.id,CA.type,CA.rule,CA.extend,CA.options,CA.comment)};function BA(sA,QA,CA,oA,EA,nA,cA){if(gA.isObject(oA)?(cA=EA,nA=oA,oA=EA=void 0):gA.isObject(EA)&&(cA=nA,nA=EA,EA=void 0),eA.call(this,sA,nA),!gA.isInteger(QA)||QA<0)throw TypeError("id must be a non-negative integer");if(!gA.isString(CA))throw TypeError("type must be a string");if(oA!==void 0&&!IA.test(oA=oA.toString().toLowerCase()))throw TypeError("rule must be a string rule");if(EA!==void 0&&!gA.isString(EA))throw TypeError("extend must be a string");oA==="proto3_optional"&&(oA="optional"),this.rule=oA&&oA!=="optional"?oA:void 0,this.type=CA,this.id=QA,this.extend=EA||void 0,this.required=oA==="required",this.optional=!this.required,this.repeated=oA==="repeated",this.map=!1,this.message=null,this.partOf=null,this.typeDefault=null,this.defaultValue=null,this.long=gA.Long?tA.long[CA]!==void 0:!1,this.bytes=CA==="bytes",this.resolvedType=null,this.extensionField=null,this.declaringField=null,this._packed=null,this.comment=cA}return Object.defineProperty(BA.prototype,"packed",{get:function(){return this._packed===null&&(this._packed=this.getOption("packed")!==!1),this._packed}}),BA.prototype.setOption=function(QA,CA,oA){return QA==="packed"&&(this._packed=null),eA.prototype.setOption.call(this,QA,CA,oA)},BA.prototype.toJSON=function(QA){var CA=QA?!!QA.keepComments:!1;return gA.toObject(["rule",this.rule!=="optional"&&this.rule||void 0,"type",this.type,"id",this.id,"extend",this.extend,"options",this.options,"comment",CA?this.comment:void 0])},BA.prototype.resolve=function(){if(this.resolved)return this;if((this.typeDefault=tA.defaults[this.type])===void 0?(this.resolvedType=(this.declaringField?this.declaringField.parent:this.parent).lookupTypeOrEnum(this.type),this.resolvedType instanceof iA?this.typeDefault=null:this.typeDefault=this.resolvedType.values[Object.keys(this.resolvedType.values)[0]]):this.options&&this.options.proto3_optional&&(this.typeDefault=null),this.options&&this.options.default!=null&&(this.typeDefault=this.options.default,this.resolvedType instanceof AA&&typeof this.typeDefault=="string"&&(this.typeDefault=this.resolvedType.values[this.typeDefault])),this.options&&((this.options.packed===!0||this.options.packed!==void 0&&this.resolvedType&&!(this.resolvedType instanceof AA))&&delete this.options.packed,Object.keys(this.options).length||(this.options=void 0)),this.long)this.typeDefault=gA.Long.fromNumber(this.typeDefault,this.type.charAt(0)==="u"),Object.freeze&&Object.freeze(this.typeDefault);else if(this.bytes&&typeof this.typeDefault=="string"){var QA;gA.base64.test(this.typeDefault)?gA.base64.decode(this.typeDefault,QA=gA.newBuffer(gA.base64.length(this.typeDefault)),0):gA.utf8.write(this.typeDefault,QA=gA.newBuffer(gA.utf8.length(this.typeDefault)),0),this.typeDefault=QA}return this.map?this.defaultValue=gA.emptyObject:this.repeated?this.defaultValue=gA.emptyArray:this.defaultValue=this.typeDefault,this.parent instanceof iA&&(this.parent.ctor.prototype[this.name]=this.defaultValue),eA.prototype.resolve.call(this)},BA.d=function(QA,CA,oA,EA){return typeof CA=="function"?CA=gA.decorateType(CA).name:CA&&typeof CA=="object"&&(CA=gA.decorateEnum(CA).name),function(cA,uA){gA.decorateType(cA.constructor).add(new BA(uA,QA,CA,oA,{default:EA}))}},BA._configure=function(QA){iA=QA},field}var oneof,hasRequiredOneof;function requireOneof(){if(hasRequiredOneof)return oneof;hasRequiredOneof=1,oneof=gA;var eA=requireObject();((gA.prototype=Object.create(eA.prototype)).constructor=gA).className="OneOf";var AA=requireField(),tA=requireUtil();function gA(IA,BA,sA,QA){if(Array.isArray(BA)||(sA=BA,BA=void 0),eA.call(this,IA,sA),!(BA===void 0||Array.isArray(BA)))throw TypeError("fieldNames must be an Array");this.oneof=BA||[],this.fieldsArray=[],this.comment=QA}gA.fromJSON=function(BA,sA){return new gA(BA,sA.oneof,sA.options,sA.comment)},gA.prototype.toJSON=function(BA){var sA=BA?!!BA.keepComments:!1;return tA.toObject(["options",this.options,"oneof",this.oneof,"comment",sA?this.comment:void 0])};function iA(IA){if(IA.parent)for(var BA=0;BA<IA.fieldsArray.length;++BA)IA.fieldsArray[BA].parent||IA.parent.add(IA.fieldsArray[BA])}return gA.prototype.add=function(BA){if(!(BA instanceof AA))throw TypeError("field must be a Field");return BA.parent&&BA.parent!==this.parent&&BA.parent.remove(BA),this.oneof.push(BA.name),this.fieldsArray.push(BA),BA.partOf=this,iA(this),this},gA.prototype.remove=function(BA){if(!(BA instanceof AA))throw TypeError("field must be a Field");var sA=this.fieldsArray.indexOf(BA);if(sA<0)throw Error(BA+" is not a member of "+this);return this.fieldsArray.splice(sA,1),sA=this.oneof.indexOf(BA.name),sA>-1&&this.oneof.splice(sA,1),BA.partOf=null,this},gA.prototype.onAdd=function(BA){eA.prototype.onAdd.call(this,BA);for(var sA=this,QA=0;QA<this.oneof.length;++QA){var CA=BA.get(this.oneof[QA]);CA&&!CA.partOf&&(CA.partOf=sA,sA.fieldsArray.push(CA))}iA(this)},gA.prototype.onRemove=function(BA){for(var sA=0,QA;sA<this.fieldsArray.length;++sA)(QA=this.fieldsArray[sA]).parent&&QA.parent.remove(QA);eA.prototype.onRemove.call(this,BA)},gA.d=function(){for(var BA=new Array(arguments.length),sA=0;sA<arguments.length;)BA[sA]=arguments[sA++];return function(CA,oA){tA.decorateType(CA.constructor).add(new gA(oA,BA)),Object.defineProperty(CA,oA,{get:tA.oneOfGetter(BA),set:tA.oneOfSetter(BA)})}},oneof}var namespace,hasRequiredNamespace;function requireNamespace(){if(hasRequiredNamespace)return namespace;hasRequiredNamespace=1,namespace=QA;var eA=requireObject();((QA.prototype=Object.create(eA.prototype)).constructor=QA).className="Namespace";var AA=requireField(),tA=requireUtil(),gA=requireOneof(),iA,IA,BA;QA.fromJSON=function(EA,nA){return new QA(EA,nA.options).addJSON(nA.nested)};function sA(oA,EA){if(oA&&oA.length){for(var nA={},cA=0;cA<oA.length;++cA)nA[oA[cA].name]=oA[cA].toJSON(EA);return nA}}QA.arrayToJSON=sA,QA.isReservedId=function(EA,nA){if(EA){for(var cA=0;cA<EA.length;++cA)if(typeof EA[cA]!="string"&&EA[cA][0]<=nA&&EA[cA][1]>nA)return!0}return!1},QA.isReservedName=function(EA,nA){if(EA){for(var cA=0;cA<EA.length;++cA)if(EA[cA]===nA)return!0}return!1};function QA(oA,EA){eA.call(this,oA,EA),this.nested=void 0,this._nestedArray=null}function CA(oA){return oA._nestedArray=null,oA}return Object.defineProperty(QA.prototype,"nestedArray",{get:function(){return this._nestedArray||(this._nestedArray=tA.toArray(this.nested))}}),QA.prototype.toJSON=function(EA){return tA.toObject(["options",this.options,"nested",sA(this.nestedArray,EA)])},QA.prototype.addJSON=function(EA){var nA=this;if(EA)for(var cA=Object.keys(EA),uA=0,lA;uA<cA.length;++uA)lA=EA[cA[uA]],nA.add((lA.fields!==void 0?iA.fromJSON:lA.values!==void 0?BA.fromJSON:lA.methods!==void 0?IA.fromJSON:lA.id!==void 0?AA.fromJSON:QA.fromJSON)(cA[uA],lA));return this},QA.prototype.get=function(EA){return this.nested&&this.nested[EA]||null},QA.prototype.getEnum=function(EA){if(this.nested&&this.nested[EA]instanceof BA)return this.nested[EA].values;throw Error("no such enum: "+EA)},QA.prototype.add=function(EA){if(!(EA instanceof AA&&EA.extend!==void 0||EA instanceof iA||EA instanceof gA||EA instanceof BA||EA instanceof IA||EA instanceof QA))throw TypeError("object must be a valid nested object");if(!this.nested)this.nested={};else{var nA=this.get(EA.name);if(nA)if(nA instanceof QA&&EA instanceof QA&&!(nA instanceof iA||nA instanceof IA)){for(var cA=nA.nestedArray,uA=0;uA<cA.length;++uA)EA.add(cA[uA]);this.remove(nA),this.nested||(this.nested={}),EA.setOptions(nA.options,!0)}else throw Error("duplicate name '"+EA.name+"' in "+this)}return this.nested[EA.name]=EA,EA.onAdd(this),CA(this)},QA.prototype.remove=function(EA){if(!(EA instanceof eA))throw TypeError("object must be a ReflectionObject");if(EA.parent!==this)throw Error(EA+" is not a member of "+this);return delete this.nested[EA.name],Object.keys(this.nested).length||(this.nested=void 0),EA.onRemove(this),CA(this)},QA.prototype.define=function(EA,nA){if(tA.isString(EA))EA=EA.split(".");else if(!Array.isArray(EA))throw TypeError("illegal path");if(EA&&EA.length&&EA[0]==="")throw Error("path must be relative");for(var cA=this;EA.length>0;){var uA=EA.shift();if(cA.nested&&cA.nested[uA]){if(cA=cA.nested[uA],!(cA instanceof QA))throw Error("path conflicts with non-namespace objects")}else cA.add(cA=new QA(uA))}return nA&&cA.addJSON(nA),cA},QA.prototype.resolveAll=function(){for(var EA=this.nestedArray,nA=0;nA<EA.length;)EA[nA]instanceof QA?EA[nA++].resolveAll():EA[nA++].resolve();return this.resolve()},QA.prototype.lookup=function(EA,nA,cA){if(typeof nA=="boolean"?(cA=nA,nA=void 0):nA&&!Array.isArray(nA)&&(nA=[nA]),tA.isString(EA)&&EA.length){if(EA===".")return this.root;EA=EA.split(".")}else if(!EA.length)return this;if(EA[0]==="")return this.root.lookup(EA.slice(1),nA);var uA=this.get(EA[0]);if(uA){if(EA.length===1){if(!nA||nA.indexOf(uA.constructor)>-1)return uA}else if(uA instanceof QA&&(uA=uA.lookup(EA.slice(1),nA,!0)))return uA}else for(var lA=0;lA<this.nestedArray.length;++lA)if(this._nestedArray[lA]instanceof QA&&(uA=this._nestedArray[lA].lookup(EA,nA,!0)))return uA;return this.parent===null||cA?null:this.parent.lookup(EA,nA)},QA.prototype.lookupType=function(EA){var nA=this.lookup(EA,[iA]);if(!nA)throw Error("no such type: "+EA);return nA},QA.prototype.lookupEnum=function(EA){var nA=this.lookup(EA,[BA]);if(!nA)throw Error("no such Enum '"+EA+"' in "+this);return nA},QA.prototype.lookupTypeOrEnum=function(EA){var nA=this.lookup(EA,[iA,BA]);if(!nA)throw Error("no such Type or Enum '"+EA+"' in "+this);return nA},QA.prototype.lookupService=function(EA){var nA=this.lookup(EA,[IA]);if(!nA)throw Error("no such Service '"+EA+"' in "+this);return nA},QA._configure=function(oA,EA,nA){iA=oA,IA=EA,BA=nA},namespace}var mapfield,hasRequiredMapfield;function requireMapfield(){if(hasRequiredMapfield)return mapfield;hasRequiredMapfield=1,mapfield=gA;var eA=requireField();((gA.prototype=Object.create(eA.prototype)).constructor=gA).className="MapField";var AA=requireTypes(),tA=requireUtil();function gA(iA,IA,BA,sA,QA,CA){if(eA.call(this,iA,IA,sA,void 0,void 0,QA,CA),!tA.isString(BA))throw TypeError("keyType must be a string");this.keyType=BA,this.resolvedKeyType=null,this.map=!0}return gA.fromJSON=function(IA,BA){return new gA(IA,BA.id,BA.keyType,BA.type,BA.options,BA.comment)},gA.prototype.toJSON=function(IA){var BA=IA?!!IA.keepComments:!1;return tA.toObject(["keyType",this.keyType,"type",this.type,"id",this.id,"extend",this.extend,"options",this.options,"comment",BA?this.comment:void 0])},gA.prototype.resolve=function(){if(this.resolved)return this;if(AA.mapKey[this.keyType]===void 0)throw Error("invalid key type: "+this.keyType);return eA.prototype.resolve.call(this)},gA.d=function(IA,BA,sA){return typeof sA=="function"?sA=tA.decorateType(sA).name:sA&&typeof sA=="object"&&(sA=tA.decorateEnum(sA).name),function(CA,oA){tA.decorateType(CA.constructor).add(new gA(oA,IA,BA,sA))}},mapfield}var method$1,hasRequiredMethod;function requireMethod(){if(hasRequiredMethod)return method$1;hasRequiredMethod=1,method$1=tA;var eA=requireObject();((tA.prototype=Object.create(eA.prototype)).constructor=tA).className="Method";var AA=requireUtil();function tA(gA,iA,IA,BA,sA,QA,CA,oA,EA){if(AA.isObject(sA)?(CA=sA,sA=QA=void 0):AA.isObject(QA)&&(CA=QA,QA=void 0),!(iA===void 0||AA.isString(iA)))throw TypeError("type must be a string");if(!AA.isString(IA))throw TypeError("requestType must be a string");if(!AA.isString(BA))throw TypeError("responseType must be a string");eA.call(this,gA,CA),this.type=iA||"rpc",this.requestType=IA,this.requestStream=sA?!0:void 0,this.responseType=BA,this.responseStream=QA?!0:void 0,this.resolvedRequestType=null,this.resolvedResponseType=null,this.comment=oA,this.parsedOptions=EA}return tA.fromJSON=function(iA,IA){return new tA(iA,IA.type,IA.requestType,IA.responseType,IA.requestStream,IA.responseStream,IA.options,IA.comment,IA.parsedOptions)},tA.prototype.toJSON=function(iA){var IA=iA?!!iA.keepComments:!1;return AA.toObject(["type",this.type!=="rpc"&&this.type||void 0,"requestType",this.requestType,"requestStream",this.requestStream,"responseType",this.responseType,"responseStream",this.responseStream,"options",this.options,"comment",IA?this.comment:void 0,"parsedOptions",this.parsedOptions])},tA.prototype.resolve=function(){return this.resolved?this:(this.resolvedRequestType=this.parent.lookupType(this.requestType),this.resolvedResponseType=this.parent.lookupType(this.responseType),eA.prototype.resolve.call(this))},method$1}var service,hasRequiredService;function requireService(){if(hasRequiredService)return service;hasRequiredService=1,service=iA;var eA=requireNamespace();((iA.prototype=Object.create(eA.prototype)).constructor=iA).className="Service";var AA=requireMethod(),tA=requireUtil(),gA=rpc;function iA(BA,sA){eA.call(this,BA,sA),this.methods={},this._methodsArray=null}iA.fromJSON=function(sA,QA){var CA=new iA(sA,QA.options);if(QA.methods)for(var oA=Object.keys(QA.methods),EA=0;EA<oA.length;++EA)CA.add(AA.fromJSON(oA[EA],QA.methods[oA[EA]]));return QA.nested&&CA.addJSON(QA.nested),CA.comment=QA.comment,CA},iA.prototype.toJSON=function(sA){var QA=eA.prototype.toJSON.call(this,sA),CA=sA?!!sA.keepComments:!1;return tA.toObject(["options",QA&&QA.options||void 0,"methods",eA.arrayToJSON(this.methodsArray,sA)||{},"nested",QA&&QA.nested||void 0,"comment",CA?this.comment:void 0])},Object.defineProperty(iA.prototype,"methodsArray",{get:function(){return this._methodsArray||(this._methodsArray=tA.toArray(this.methods))}});function IA(BA){return BA._methodsArray=null,BA}return iA.prototype.get=function(sA){return this.methods[sA]||eA.prototype.get.call(this,sA)},iA.prototype.resolveAll=function(){for(var sA=this.methodsArray,QA=0;QA<sA.length;++QA)sA[QA].resolve();return eA.prototype.resolve.call(this)},iA.prototype.add=function(sA){if(this.get(sA.name))throw Error("duplicate name '"+sA.name+"' in "+this);return sA instanceof AA?(this.methods[sA.name]=sA,sA.parent=this,IA(this)):eA.prototype.add.call(this,sA)},iA.prototype.remove=function(sA){if(sA instanceof AA){if(this.methods[sA.name]!==sA)throw Error(sA+" is not a member of "+this);return delete this.methods[sA.name],sA.parent=null,IA(this)}return eA.prototype.remove.call(this,sA)},iA.prototype.create=function(sA,QA,CA){for(var oA=new gA.Service(sA,QA,CA),EA=0,nA;EA<this.methodsArray.length;++EA){var cA=tA.lcFirst((nA=this._methodsArray[EA]).resolve().name).replace(/[^$\w_]/g,"");oA[cA]=tA.codegen(["r","c"],tA.isReserved(cA)?cA+"_":cA)("return this.rpcCall(m,q,s,r,c)")({m:nA,q:nA.resolvedRequestType.ctor,s:nA.resolvedResponseType.ctor})}return oA},service}var message=Message,util=requireMinimal();function Message(eA){if(eA)for(var AA=Object.keys(eA),tA=0;tA<AA.length;++tA)this[AA[tA]]=eA[AA[tA]]}Message.create=function eA(AA){return this.$type.create(AA)},Message.encode=function eA(AA,tA){return this.$type.encode(AA,tA)},Message.encodeDelimited=function eA(AA,tA){return this.$type.encodeDelimited(AA,tA)},Message.decode=function eA(AA){return this.$type.decode(AA)},Message.decodeDelimited=function eA(AA){return this.$type.decodeDelimited(AA)},Message.verify=function eA(AA){return this.$type.verify(AA)},Message.fromObject=function eA(AA){return this.$type.fromObject(AA)},Message.toObject=function eA(AA,tA){return this.$type.toObject(AA,tA)},Message.prototype.toJSON=function eA(){return this.$type.toObject(this,util.toJSONOptions)};var decoder_1,hasRequiredDecoder;function requireDecoder(){if(hasRequiredDecoder)return decoder_1;hasRequiredDecoder=1,decoder_1=iA;var eA=require_enum(),AA=requireTypes(),tA=requireUtil();function gA(IA){return"missing required '"+IA.name+"'"}function iA(IA){var BA=tA.codegen(["r","l"],IA.name+"$decode")("if(!(r instanceof Reader))")("r=Reader.create(r)")("var c=l===undefined?r.len:r.pos+l,m=new this.ctor"+(IA.fieldsArray.filter(function(nA){return nA.map}).length?",k,value":""))("while(r.pos<c){")("var t=r.uint32()");IA.group&&BA("if((t&7)===4)")("break"),BA("switch(t>>>3){");for(var sA=0;sA<IA.fieldsArray.length;++sA){var QA=IA._fieldsArray[sA].resolve(),CA=QA.resolvedType instanceof eA?"int32":QA.type,oA="m"+tA.safeProp(QA.name);BA("case %i: {",QA.id),QA.map?(BA("if(%s===util.emptyObject)",oA)("%s={}",oA)("var c2 = r.uint32()+r.pos"),AA.defaults[QA.keyType]!==void 0?BA("k=%j",AA.defaults[QA.keyType]):BA("k=null"),AA.defaults[CA]!==void 0?BA("value=%j",AA.defaults[CA]):BA("value=null"),BA("while(r.pos<c2){")("var tag2=r.uint32()")("switch(tag2>>>3){")("case 1: k=r.%s(); break",QA.keyType)("case 2:"),AA.basic[CA]===void 0?BA("value=types[%i].decode(r,r.uint32())",sA):BA("value=r.%s()",CA),BA("break")("default:")("r.skipType(tag2&7)")("break")("}")("}"),AA.long[QA.keyType]!==void 0?BA('%s[typeof k==="object"?util.longToHash(k):k]=value',oA):BA("%s[k]=value",oA)):QA.repeated?(BA("if(!(%s&&%s.length))",oA,oA)("%s=[]",oA),AA.packed[CA]!==void 0&&BA("if((t&7)===2){")("var c2=r.uint32()+r.pos")("while(r.pos<c2)")("%s.push(r.%s())",oA,CA)("}else"),AA.basic[CA]===void 0?BA(QA.resolvedType.group?"%s.push(types[%i].decode(r))":"%s.push(types[%i].decode(r,r.uint32()))",oA,sA):BA("%s.push(r.%s())",oA,CA)):AA.basic[CA]===void 0?BA(QA.resolvedType.group?"%s=types[%i].decode(r)":"%s=types[%i].decode(r,r.uint32())",oA,sA):BA("%s=r.%s()",oA,CA),BA("break")("}")}for(BA("default:")("r.skipType(t&7)")("break")("}")("}"),sA=0;sA<IA._fieldsArray.length;++sA){var EA=IA._fieldsArray[sA];EA.required&&BA("if(!m.hasOwnProperty(%j))",EA.name)("throw util.ProtocolError(%j,{instance:m})",gA(EA))}return BA("return m")}return decoder_1}var verifier_1,hasRequiredVerifier;function requireVerifier(){if(hasRequiredVerifier)return verifier_1;hasRequiredVerifier=1,verifier_1=IA;var eA=require_enum(),AA=requireUtil();function tA(BA,sA){return BA.name+": "+sA+(BA.repeated&&sA!=="array"?"[]":BA.map&&sA!=="object"?"{k:"+BA.keyType+"}":"")+" expected"}function gA(BA,sA,QA,CA){if(sA.resolvedType)if(sA.resolvedType instanceof eA){BA("switch(%s){",CA)("default:")("return%j",tA(sA,"enum value"));for(var oA=Object.keys(sA.resolvedType.values),EA=0;EA<oA.length;++EA)BA("case %i:",sA.resolvedType.values[oA[EA]]);BA("break")("}")}else BA("{")("var e=types[%i].verify(%s);",QA,CA)("if(e)")("return%j+e",sA.name+".")("}");else switch(sA.type){case"int32":case"uint32":case"sint32":case"fixed32":case"sfixed32":BA("if(!util.isInteger(%s))",CA)("return%j",tA(sA,"integer"));break;case"int64":case"uint64":case"sint64":case"fixed64":case"sfixed64":BA("if(!util.isInteger(%s)&&!(%s&&util.isInteger(%s.low)&&util.isInteger(%s.high)))",CA,CA,CA,CA)("return%j",tA(sA,"integer|Long"));break;case"float":case"double":BA('if(typeof %s!=="number")',CA)("return%j",tA(sA,"number"));break;case"bool":BA('if(typeof %s!=="boolean")',CA)("return%j",tA(sA,"boolean"));break;case"string":BA("if(!util.isString(%s))",CA)("return%j",tA(sA,"string"));break;case"bytes":BA('if(!(%s&&typeof %s.length==="number"||util.isString(%s)))',CA,CA,CA)("return%j",tA(sA,"buffer"));break}return BA}function iA(BA,sA,QA){switch(sA.keyType){case"int32":case"uint32":case"sint32":case"fixed32":case"sfixed32":BA("if(!util.key32Re.test(%s))",QA)("return%j",tA(sA,"integer key"));break;case"int64":case"uint64":case"sint64":case"fixed64":case"sfixed64":BA("if(!util.key64Re.test(%s))",QA)("return%j",tA(sA,"integer|Long key"));break;case"bool":BA("if(!util.key2Re.test(%s))",QA)("return%j",tA(sA,"boolean key"));break}return BA}function IA(BA){var sA=AA.codegen(["m"],BA.name+"$verify")('if(typeof m!=="object"||m===null)')("return%j","object expected"),QA=BA.oneofsArray,CA={};QA.length&&sA("var p={}");for(var oA=0;oA<BA.fieldsArray.length;++oA){var EA=BA._fieldsArray[oA].resolve(),nA="m"+AA.safeProp(EA.name);if(EA.optional&&sA("if(%s!=null&&m.hasOwnProperty(%j)){",nA,EA.name),EA.map)sA("if(!util.isObject(%s))",nA)("return%j",tA(EA,"object"))("var k=Object.keys(%s)",nA)("for(var i=0;i<k.length;++i){"),iA(sA,EA,"k[i]"),gA(sA,EA,oA,nA+"[k[i]]")("}");else if(EA.repeated)sA("if(!Array.isArray(%s))",nA)("return%j",tA(EA,"array"))("for(var i=0;i<%s.length;++i){",nA),gA(sA,EA,oA,nA+"[i]")("}");else{if(EA.partOf){var cA=AA.safeProp(EA.partOf.name);CA[EA.partOf.name]===1&&sA("if(p%s===1)",cA)("return%j",EA.partOf.name+": multiple values"),CA[EA.partOf.name]=1,sA("p%s=1",cA)}gA(sA,EA,oA,nA)}EA.optional&&sA("}")}return sA("return null")}return verifier_1}var converter={},hasRequiredConverter;function requireConverter(){return hasRequiredConverter||(hasRequiredConverter=1,function(eA){var AA=eA,tA=require_enum(),gA=requireUtil();function iA(BA,sA,QA,CA){var oA=!1;if(sA.resolvedType)if(sA.resolvedType instanceof tA){BA("switch(d%s){",CA);for(var EA=sA.resolvedType.values,nA=Object.keys(EA),cA=0;cA<nA.length;++cA)EA[nA[cA]]===sA.typeDefault&&!oA&&(BA("default:")('if(typeof(d%s)==="number"){m%s=d%s;break}',CA,CA,CA),sA.repeated||BA("break"),oA=!0),BA("case%j:",nA[cA])("case %i:",EA[nA[cA]])("m%s=%j",CA,EA[nA[cA]])("break");BA("}")}else BA('if(typeof d%s!=="object")',CA)("throw TypeError(%j)",sA.fullName+": object expected")("m%s=types[%i].fromObject(d%s)",CA,QA,CA);else{var uA=!1;switch(sA.type){case"double":case"float":BA("m%s=Number(d%s)",CA,CA);break;case"uint32":case"fixed32":BA("m%s=d%s>>>0",CA,CA);break;case"int32":case"sint32":case"sfixed32":BA("m%s=d%s|0",CA,CA);break;case"uint64":uA=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":BA("if(util.Long)")("(m%s=util.Long.fromValue(d%s)).unsigned=%j",CA,CA,uA)('else if(typeof d%s==="string")',CA)("m%s=parseInt(d%s,10)",CA,CA)('else if(typeof d%s==="number")',CA)("m%s=d%s",CA,CA)('else if(typeof d%s==="object")',CA)("m%s=new util.LongBits(d%s.low>>>0,d%s.high>>>0).toNumber(%s)",CA,CA,CA,uA?"true":"");break;case"bytes":BA('if(typeof d%s==="string")',CA)("util.base64.decode(d%s,m%s=util.newBuffer(util.base64.length(d%s)),0)",CA,CA,CA)("else if(d%s.length >= 0)",CA)("m%s=d%s",CA,CA);break;case"string":BA("m%s=String(d%s)",CA,CA);break;case"bool":BA("m%s=Boolean(d%s)",CA,CA);break}}return BA}AA.fromObject=function(sA){var QA=sA.fieldsArray,CA=gA.codegen(["d"],sA.name+"$fromObject")("if(d instanceof this.ctor)")("return d");if(!QA.length)return CA("return new this.ctor");CA("var m=new this.ctor");for(var oA=0;oA<QA.length;++oA){var EA=QA[oA].resolve(),nA=gA.safeProp(EA.name);EA.map?(CA("if(d%s){",nA)('if(typeof d%s!=="object")',nA)("throw TypeError(%j)",EA.fullName+": object expected")("m%s={}",nA)("for(var ks=Object.keys(d%s),i=0;i<ks.length;++i){",nA),iA(CA,EA,oA,nA+"[ks[i]]")("}")("}")):EA.repeated?(CA("if(d%s){",nA)("if(!Array.isArray(d%s))",nA)("throw TypeError(%j)",EA.fullName+": array expected")("m%s=[]",nA)("for(var i=0;i<d%s.length;++i){",nA),iA(CA,EA,oA,nA+"[i]")("}")("}")):(EA.resolvedType instanceof tA||CA("if(d%s!=null){",nA),iA(CA,EA,oA,nA),EA.resolvedType instanceof tA||CA("}"))}return CA("return m")};function IA(BA,sA,QA,CA){if(sA.resolvedType)sA.resolvedType instanceof tA?BA("d%s=o.enums===String?(types[%i].values[m%s]===undefined?m%s:types[%i].values[m%s]):m%s",CA,QA,CA,CA,QA,CA,CA):BA("d%s=types[%i].toObject(m%s,o)",CA,QA,CA);else{var oA=!1;switch(sA.type){case"double":case"float":BA("d%s=o.json&&!isFinite(m%s)?String(m%s):m%s",CA,CA,CA,CA);break;case"uint64":oA=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":BA('if(typeof m%s==="number")',CA)("d%s=o.longs===String?String(m%s):m%s",CA,CA,CA)("else")("d%s=o.longs===String?util.Long.prototype.toString.call(m%s):o.longs===Number?new util.LongBits(m%s.low>>>0,m%s.high>>>0).toNumber(%s):m%s",CA,CA,CA,CA,oA?"true":"",CA);break;case"bytes":BA("d%s=o.bytes===String?util.base64.encode(m%s,0,m%s.length):o.bytes===Array?Array.prototype.slice.call(m%s):m%s",CA,CA,CA,CA,CA);break;default:BA("d%s=m%s",CA,CA);break}}return BA}AA.toObject=function(sA){var QA=sA.fieldsArray.slice().sort(gA.compareFieldsById);if(!QA.length)return gA.codegen()("return {}");for(var CA=gA.codegen(["m","o"],sA.name+"$toObject")("if(!o)")("o={}")("var d={}"),oA=[],EA=[],nA=[],cA=0;cA<QA.length;++cA)QA[cA].partOf||(QA[cA].resolve().repeated?oA:QA[cA].map?EA:nA).push(QA[cA]);if(oA.length){for(CA("if(o.arrays||o.defaults){"),cA=0;cA<oA.length;++cA)CA("d%s=[]",gA.safeProp(oA[cA].name));CA("}")}if(EA.length){for(CA("if(o.objects||o.defaults){"),cA=0;cA<EA.length;++cA)CA("d%s={}",gA.safeProp(EA[cA].name));CA("}")}if(nA.length){for(CA("if(o.defaults){"),cA=0;cA<nA.length;++cA){var uA=nA[cA],lA=gA.safeProp(uA.name);if(uA.resolvedType instanceof tA)CA("d%s=o.enums===String?%j:%j",lA,uA.resolvedType.valuesById[uA.typeDefault],uA.typeDefault);else if(uA.long)CA("if(util.Long){")("var n=new util.Long(%i,%i,%j)",uA.typeDefault.low,uA.typeDefault.high,uA.typeDefault.unsigned)("d%s=o.longs===String?n.toString():o.longs===Number?n.toNumber():n",lA)("}else")("d%s=o.longs===String?%j:%i",lA,uA.typeDefault.toString(),uA.typeDefault.toNumber());else if(uA.bytes){var hA="["+Array.prototype.slice.call(uA.typeDefault).join(",")+"]";CA("if(o.bytes===String)d%s=%j",lA,String.fromCharCode.apply(String,uA.typeDefault))("else{")("d%s=%s",lA,hA)("if(o.bytes!==Array)d%s=util.newBuffer(d%s)",lA,lA)("}")}else CA("d%s=%j",lA,uA.typeDefault)}CA("}")}var dA=!1;for(cA=0;cA<QA.length;++cA){var uA=QA[cA],DA=sA._fieldsArray.indexOf(uA),lA=gA.safeProp(uA.name);uA.map?(dA||(dA=!0,CA("var ks2")),CA("if(m%s&&(ks2=Object.keys(m%s)).length){",lA,lA)("d%s={}",lA)("for(var j=0;j<ks2.length;++j){"),IA(CA,uA,DA,lA+"[ks2[j]]")("}")):uA.repeated?(CA("if(m%s&&m%s.length){",lA,lA)("d%s=[]",lA)("for(var j=0;j<m%s.length;++j){",lA),IA(CA,uA,DA,lA+"[j]")("}")):(CA("if(m%s!=null&&m.hasOwnProperty(%j)){",lA,uA.name),IA(CA,uA,DA,lA),uA.partOf&&CA("if(o.oneofs)")("d%s=%j",gA.safeProp(uA.partOf.name),uA.name)),CA("}")}return CA("return d")}}(converter)),converter}var wrappers={};(function(eA){var AA=eA,tA=message;AA[".google.protobuf.Any"]={fromObject:function(gA){if(gA&&gA["@type"]){var iA=gA["@type"].substring(gA["@type"].lastIndexOf("/")+1),IA=this.lookup(iA);if(IA){var BA=gA["@type"].charAt(0)==="."?gA["@type"].slice(1):gA["@type"];return BA.indexOf("/")===-1&&(BA="/"+BA),this.create({type_url:BA,value:IA.encode(IA.fromObject(gA)).finish()})}}return this.fromObject(gA)},toObject:function(gA,iA){var IA="type.googleapis.com/",BA="",sA="";if(iA&&iA.json&&gA.type_url&&gA.value){sA=gA.type_url.substring(gA.type_url.lastIndexOf("/")+1),BA=gA.type_url.substring(0,gA.type_url.lastIndexOf("/")+1);var QA=this.lookup(sA);QA&&(gA=QA.decode(gA.value))}if(!(gA instanceof this.ctor)&&gA instanceof tA){var CA=gA.$type.toObject(gA,iA),oA=gA.$type.fullName[0]==="."?gA.$type.fullName.slice(1):gA.$type.fullName;return BA===""&&(BA=IA),sA=BA+oA,CA["@type"]=sA,CA}return this.toObject(gA,iA)}}})(wrappers);var type,hasRequiredType;function requireType(){if(hasRequiredType)return type;hasRequiredType=1,type=lA;var eA=requireNamespace();((lA.prototype=Object.create(eA.prototype)).constructor=lA).className="Type";var AA=require_enum(),tA=requireOneof(),gA=requireField(),iA=requireMapfield(),IA=requireService(),BA=message,sA=reader,QA=writer,CA=requireUtil(),oA=requireEncoder(),EA=requireDecoder(),nA=requireVerifier(),cA=requireConverter(),uA=wrappers;function lA(dA,DA){eA.call(this,dA,DA),this.fields={},this.oneofs=void 0,this.extensions=void 0,this.reserved=void 0,this.group=void 0,this._fieldsById=null,this._fieldsArray=null,this._oneofsArray=null,this._ctor=null}Object.defineProperties(lA.prototype,{fieldsById:{get:function(){if(this._fieldsById)return this._fieldsById;this._fieldsById={};for(var dA=Object.keys(this.fields),DA=0;DA<dA.length;++DA){var wA=this.fields[dA[DA]],RA=wA.id;if(this._fieldsById[RA])throw Error("duplicate id "+RA+" in "+this);this._fieldsById[RA]=wA}return this._fieldsById}},fieldsArray:{get:function(){return this._fieldsArray||(this._fieldsArray=CA.toArray(this.fields))}},oneofsArray:{get:function(){return this._oneofsArray||(this._oneofsArray=CA.toArray(this.oneofs))}},ctor:{get:function(){return this._ctor||(this.ctor=lA.generateConstructor(this)())},set:function(dA){var DA=dA.prototype;DA instanceof BA||((dA.prototype=new BA).constructor=dA,CA.merge(dA.prototype,DA)),dA.$type=dA.prototype.$type=this,CA.merge(dA,BA,!0),this._ctor=dA;for(var wA=0;wA<this.fieldsArray.length;++wA)this._fieldsArray[wA].resolve();var RA={};for(wA=0;wA<this.oneofsArray.length;++wA)RA[this._oneofsArray[wA].resolve().name]={get:CA.oneOfGetter(this._oneofsArray[wA].oneof),set:CA.oneOfSetter(this._oneofsArray[wA].oneof)};wA&&Object.defineProperties(dA.prototype,RA)}}}),lA.generateConstructor=function(DA){for(var wA=CA.codegen(["p"],DA.name),RA=0,GA;RA<DA.fieldsArray.length;++RA)(GA=DA._fieldsArray[RA]).map?wA("this%s={}",CA.safeProp(GA.name)):GA.repeated&&wA("this%s=[]",CA.safeProp(GA.name));return wA("if(p)for(var ks=Object.keys(p),i=0;i<ks.length;++i)if(p[ks[i]]!=null)")("this[ks[i]]=p[ks[i]]")};function hA(dA){return dA._fieldsById=dA._fieldsArray=dA._oneofsArray=null,delete dA.encode,delete dA.decode,delete dA.verify,dA}return lA.fromJSON=function(DA,wA){var RA=new lA(DA,wA.options);RA.extensions=wA.extensions,RA.reserved=wA.reserved;for(var GA=Object.keys(wA.fields),yA=0;yA<GA.length;++yA)RA.add((typeof wA.fields[GA[yA]].keyType<"u"?iA.fromJSON:gA.fromJSON)(GA[yA],wA.fields[GA[yA]]));if(wA.oneofs)for(GA=Object.keys(wA.oneofs),yA=0;yA<GA.length;++yA)RA.add(tA.fromJSON(GA[yA],wA.oneofs[GA[yA]]));if(wA.nested)for(GA=Object.keys(wA.nested),yA=0;yA<GA.length;++yA){var LA=wA.nested[GA[yA]];RA.add((LA.id!==void 0?gA.fromJSON:LA.fields!==void 0?lA.fromJSON:LA.values!==void 0?AA.fromJSON:LA.methods!==void 0?IA.fromJSON:eA.fromJSON)(GA[yA],LA))}return wA.extensions&&wA.extensions.length&&(RA.extensions=wA.extensions),wA.reserved&&wA.reserved.length&&(RA.reserved=wA.reserved),wA.group&&(RA.group=!0),wA.comment&&(RA.comment=wA.comment),RA},lA.prototype.toJSON=function(DA){var wA=eA.prototype.toJSON.call(this,DA),RA=DA?!!DA.keepComments:!1;return CA.toObject(["options",wA&&wA.options||void 0,"oneofs",eA.arrayToJSON(this.oneofsArray,DA),"fields",eA.arrayToJSON(this.fieldsArray.filter(function(GA){return!GA.declaringField}),DA)||{},"extensions",this.extensions&&this.extensions.length?this.extensions:void 0,"reserved",this.reserved&&this.reserved.length?this.reserved:void 0,"group",this.group||void 0,"nested",wA&&wA.nested||void 0,"comment",RA?this.comment:void 0])},lA.prototype.resolveAll=function(){for(var DA=this.fieldsArray,wA=0;wA<DA.length;)DA[wA++].resolve();var RA=this.oneofsArray;for(wA=0;wA<RA.length;)RA[wA++].resolve();return eA.prototype.resolveAll.call(this)},lA.prototype.get=function(DA){return this.fields[DA]||this.oneofs&&this.oneofs[DA]||this.nested&&this.nested[DA]||null},lA.prototype.add=function(DA){if(this.get(DA.name))throw Error("duplicate name '"+DA.name+"' in "+this);if(DA instanceof gA&&DA.extend===void 0){if(this._fieldsById?this._fieldsById[DA.id]:this.fieldsById[DA.id])throw Error("duplicate id "+DA.id+" in "+this);if(this.isReservedId(DA.id))throw Error("id "+DA.id+" is reserved in "+this);if(this.isReservedName(DA.name))throw Error("name '"+DA.name+"' is reserved in "+this);return DA.parent&&DA.parent.remove(DA),this.fields[DA.name]=DA,DA.message=this,DA.onAdd(this),hA(this)}return DA instanceof tA?(this.oneofs||(this.oneofs={}),this.oneofs[DA.name]=DA,DA.onAdd(this),hA(this)):eA.prototype.add.call(this,DA)},lA.prototype.remove=function(DA){if(DA instanceof gA&&DA.extend===void 0){if(!this.fields||this.fields[DA.name]!==DA)throw Error(DA+" is not a member of "+this);return delete this.fields[DA.name],DA.parent=null,DA.onRemove(this),hA(this)}if(DA instanceof tA){if(!this.oneofs||this.oneofs[DA.name]!==DA)throw Error(DA+" is not a member of "+this);return delete this.oneofs[DA.name],DA.parent=null,DA.onRemove(this),hA(this)}return eA.prototype.remove.call(this,DA)},lA.prototype.isReservedId=function(DA){return eA.isReservedId(this.reserved,DA)},lA.prototype.isReservedName=function(DA){return eA.isReservedName(this.reserved,DA)},lA.prototype.create=function(DA){return new this.ctor(DA)},lA.prototype.setup=function(){for(var DA=this.fullName,wA=[],RA=0;RA<this.fieldsArray.length;++RA)wA.push(this._fieldsArray[RA].resolve().resolvedType);this.encode=oA(this)({Writer:QA,types:wA,util:CA}),this.decode=EA(this)({Reader:sA,types:wA,util:CA}),this.verify=nA(this)({types:wA,util:CA}),this.fromObject=cA.fromObject(this)({types:wA,util:CA}),this.toObject=cA.toObject(this)({types:wA,util:CA});var GA=uA[DA];if(GA){var yA=Object.create(this);yA.fromObject=this.fromObject,this.fromObject=GA.fromObject.bind(yA),yA.toObject=this.toObject,this.toObject=GA.toObject.bind(yA)}return this},lA.prototype.encode=function(DA,wA){return this.setup().encode(DA,wA)},lA.prototype.encodeDelimited=function(DA,wA){return this.encode(DA,wA&&wA.len?wA.fork():wA).ldelim()},lA.prototype.decode=function(DA,wA){return this.setup().decode(DA,wA)},lA.prototype.decodeDelimited=function(DA){return DA instanceof sA||(DA=sA.create(DA)),this.decode(DA,DA.uint32())},lA.prototype.verify=function(DA){return this.setup().verify(DA)},lA.prototype.fromObject=function(DA){return this.setup().fromObject(DA)},lA.prototype.toObject=function(DA,wA){return this.setup().toObject(DA,wA)},lA.d=function(DA){return function(RA){CA.decorateType(RA,DA)}},type}var root,hasRequiredRoot;function requireRoot(){if(hasRequiredRoot)return root;hasRequiredRoot=1,root=QA;var eA=requireNamespace();((QA.prototype=Object.create(eA.prototype)).constructor=QA).className="Root";var AA=requireField(),tA=require_enum(),gA=requireOneof(),iA=requireUtil(),IA,BA,sA;function QA(nA){eA.call(this,"",nA),this.deferred=[],this.files=[]}QA.fromJSON=function(cA,uA){return uA||(uA=new QA),cA.options&&uA.setOptions(cA.options),uA.addJSON(cA.nested)},QA.prototype.resolvePath=iA.path.resolve,QA.prototype.fetch=iA.fetch;function CA(){}QA.prototype.load=function nA(cA,uA,lA){typeof uA=="function"&&(lA=uA,uA=void 0);var hA=this;if(!lA)return iA.asPromise(nA,hA,cA,uA);var dA=lA===CA;function DA(bA,SA){if(lA){if(dA)throw bA;var MA=lA;lA=null,MA(bA,SA)}}function wA(bA){var SA=bA.lastIndexOf("google/protobuf/");if(SA>-1){var MA=bA.substring(SA);if(MA in sA)return MA}return null}function RA(bA,SA){try{if(iA.isString(SA)&&SA.charAt(0)==="{"&&(SA=JSON.parse(SA)),!iA.isString(SA))hA.setOptions(SA.options).addJSON(SA.nested);else{BA.filename=bA;var MA=BA(SA,hA,uA),NA,FA=0;if(MA.imports)for(;FA<MA.imports.length;++FA)(NA=wA(MA.imports[FA])||hA.resolvePath(bA,MA.imports[FA]))&&GA(NA);if(MA.weakImports)for(FA=0;FA<MA.weakImports.length;++FA)(NA=wA(MA.weakImports[FA])||hA.resolvePath(bA,MA.weakImports[FA]))&&GA(NA,!0)}}catch(qA){DA(qA)}!dA&&!yA&&DA(null,hA)}function GA(bA,SA){if(bA=wA(bA)||bA,!(hA.files.indexOf(bA)>-1)){if(hA.files.push(bA),bA in sA){dA?RA(bA,sA[bA]):(++yA,setTimeout(function(){--yA,RA(bA,sA[bA])}));return}if(dA){var MA;try{MA=iA.fs.readFileSync(bA).toString("utf8")}catch(NA){SA||DA(NA);return}RA(bA,MA)}else++yA,hA.fetch(bA,function(NA,FA){if(--yA,!!lA){if(NA){SA?yA||DA(null,hA):DA(NA);return}RA(bA,FA)}})}}var yA=0;iA.isString(cA)&&(cA=[cA]);for(var LA=0,KA;LA<cA.length;++LA)(KA=hA.resolvePath("",cA[LA]))&&GA(KA);if(dA)return hA;yA||DA(null,hA)},QA.prototype.loadSync=function(cA,uA){if(!iA.isNode)throw Error("not supported");return this.load(cA,uA,CA)},QA.prototype.resolveAll=function(){if(this.deferred.length)throw Error("unresolvable extensions: "+this.deferred.map(function(cA){return"'extend "+cA.extend+"' in "+cA.parent.fullName}).join(", "));return eA.prototype.resolveAll.call(this)};var oA=/^[A-Z]/;function EA(nA,cA){var uA=cA.parent.lookup(cA.extend);if(uA){var lA=new AA(cA.fullName,cA.id,cA.type,cA.rule,void 0,cA.options);return uA.get(lA.name)||(lA.declaringField=cA,cA.extensionField=lA,uA.add(lA)),!0}return!1}return QA.prototype._handleAdd=function(cA){if(cA instanceof AA)cA.extend!==void 0&&!cA.extensionField&&(EA(this,cA)||this.deferred.push(cA));else if(cA instanceof tA)oA.test(cA.name)&&(cA.parent[cA.name]=cA.values);else if(!(cA instanceof gA)){if(cA instanceof IA)for(var uA=0;uA<this.deferred.length;)EA(this,this.deferred[uA])?this.deferred.splice(uA,1):++uA;for(var lA=0;lA<cA.nestedArray.length;++lA)this._handleAdd(cA._nestedArray[lA]);oA.test(cA.name)&&(cA.parent[cA.name]=cA)}},QA.prototype._handleRemove=function(cA){if(cA instanceof AA){if(cA.extend!==void 0)if(cA.extensionField)cA.extensionField.parent.remove(cA.extensionField),cA.extensionField=null;else{var uA=this.deferred.indexOf(cA);uA>-1&&this.deferred.splice(uA,1)}}else if(cA instanceof tA)oA.test(cA.name)&&delete cA.parent[cA.name];else if(cA instanceof eA){for(var lA=0;lA<cA.nestedArray.length;++lA)this._handleRemove(cA._nestedArray[lA]);oA.test(cA.name)&&delete cA.parent[cA.name]}},QA._configure=function(nA,cA,uA){IA=nA,BA=cA,sA=uA},root}var hasRequiredUtil;function requireUtil(){if(hasRequiredUtil)return util$1.exports;hasRequiredUtil=1;var eA=util$1.exports=requireMinimal(),AA=roots,tA,gA;eA.codegen=codegen_1,eA.fetch=fetch_1,eA.path=path,eA.fs=eA.inquire("fs"),eA.toArray=function(CA){if(CA){for(var oA=Object.keys(CA),EA=new Array(oA.length),nA=0;nA<oA.length;)EA[nA]=CA[oA[nA++]];return EA}return[]},eA.toObject=function(CA){for(var oA={},EA=0;EA<CA.length;){var nA=CA[EA++],cA=CA[EA++];cA!==void 0&&(oA[nA]=cA)}return oA};var iA=/\\/g,IA=/"/g;eA.isReserved=function(CA){return/^(?:do|if|in|for|let|new|try|var|case|else|enum|eval|false|null|this|true|void|with|break|catch|class|const|super|throw|while|yield|delete|export|import|public|return|static|switch|typeof|default|extends|finally|package|private|continue|debugger|function|arguments|interface|protected|implements|instanceof)$/.test(CA)},eA.safeProp=function(CA){return!/^[$\w_]+$/.test(CA)||eA.isReserved(CA)?'["'+CA.replace(iA,"\\\\").replace(IA,'\\"')+'"]':"."+CA},eA.ucFirst=function(CA){return CA.charAt(0).toUpperCase()+CA.substring(1)};var BA=/_([a-z])/g;eA.camelCase=function(CA){return CA.substring(0,1)+CA.substring(1).replace(BA,function(oA,EA){return EA.toUpperCase()})},eA.compareFieldsById=function(CA,oA){return CA.id-oA.id},eA.decorateType=function(CA,oA){if(CA.$type)return oA&&CA.$type.name!==oA&&(eA.decorateRoot.remove(CA.$type),CA.$type.name=oA,eA.decorateRoot.add(CA.$type)),CA.$type;tA||(tA=requireType());var EA=new tA(oA||CA.name);return eA.decorateRoot.add(EA),EA.ctor=CA,Object.defineProperty(CA,"$type",{value:EA,enumerable:!1}),Object.defineProperty(CA.prototype,"$type",{value:EA,enumerable:!1}),EA};var sA=0;return eA.decorateEnum=function(CA){if(CA.$type)return CA.$type;gA||(gA=require_enum());var oA=new gA("Enum"+sA++,CA);return eA.decorateRoot.add(oA),Object.defineProperty(CA,"$type",{value:oA,enumerable:!1}),oA},eA.setProperty=function(CA,oA,EA){function nA(cA,uA,lA){var hA=uA.shift();if(hA==="__proto__"||hA==="prototype")return cA;if(uA.length>0)cA[hA]=nA(cA[hA]||{},uA,lA);else{var dA=cA[hA];dA&&(lA=[].concat(dA).concat(lA)),cA[hA]=lA}return cA}if(typeof CA!="object")throw TypeError("dst must be an object");if(!oA)throw TypeError("path must be specified");return oA=oA.split("."),nA(CA,oA,EA)},Object.defineProperty(eA,"decorateRoot",{get:function(){return AA.decorated||(AA.decorated=new(requireRoot()))}}),util$1.exports}var object$3,hasRequiredObject;function requireObject(){if(hasRequiredObject)return object$3;hasRequiredObject=1,object$3=tA,tA.className="ReflectionObject";var eA=requireUtil(),AA;function tA(gA,iA){if(!eA.isString(gA))throw TypeError("name must be a string");if(iA&&!eA.isObject(iA))throw TypeError("options must be an object");this.options=iA,this.parsedOptions=null,this.name=gA,this.parent=null,this.resolved=!1,this.comment=null,this.filename=null}return Object.defineProperties(tA.prototype,{root:{get:function(){for(var gA=this;gA.parent!==null;)gA=gA.parent;return gA}},fullName:{get:function(){for(var gA=[this.name],iA=this.parent;iA;)gA.unshift(iA.name),iA=iA.parent;return gA.join(".")}}}),tA.prototype.toJSON=function(){throw Error()},tA.prototype.onAdd=function(iA){this.parent&&this.parent!==iA&&this.parent.remove(this),this.parent=iA,this.resolved=!1;var IA=iA.root;IA instanceof AA&&IA._handleAdd(this)},tA.prototype.onRemove=function(iA){var IA=iA.root;IA instanceof AA&&IA._handleRemove(this),this.parent=null,this.resolved=!1},tA.prototype.resolve=function(){return this.resolved?this:(this.root instanceof AA&&(this.resolved=!0),this)},tA.prototype.getOption=function(iA){if(this.options)return this.options[iA]},tA.prototype.setOption=function(iA,IA,BA){return(!BA||!this.options||this.options[iA]===void 0)&&((this.options||(this.options={}))[iA]=IA),this},tA.prototype.setParsedOption=function(iA,IA,BA){this.parsedOptions||(this.parsedOptions=[]);var sA=this.parsedOptions;if(BA){var QA=sA.find(function(EA){return Object.prototype.hasOwnProperty.call(EA,iA)});if(QA){var CA=QA[iA];eA.setProperty(CA,BA,IA)}else QA={},QA[iA]=eA.setProperty({},BA,IA),sA.push(QA)}else{var oA={};oA[iA]=IA,sA.push(oA)}return this},tA.prototype.setOptions=function(iA,IA){if(iA)for(var BA=Object.keys(iA),sA=0;sA<BA.length;++sA)this.setOption(BA[sA],iA[BA[sA]],IA);return this},tA.prototype.toString=function(){var iA=this.constructor.className,IA=this.fullName;return IA.length?iA+" "+IA:iA},tA._configure=function(gA){AA=gA},object$3}var _enum,hasRequired_enum;function require_enum(){if(hasRequired_enum)return _enum;hasRequired_enum=1,_enum=gA;var eA=requireObject();((gA.prototype=Object.create(eA.prototype)).constructor=gA).className="Enum";var AA=requireNamespace(),tA=requireUtil();function gA(iA,IA,BA,sA,QA,CA){if(eA.call(this,iA,BA),IA&&typeof IA!="object")throw TypeError("values must be an object");if(this.valuesById={},this.values=Object.create(this.valuesById),this.comment=sA,this.comments=QA||{},this.valuesOptions=CA,this.reserved=void 0,IA)for(var oA=Object.keys(IA),EA=0;EA<oA.length;++EA)typeof IA[oA[EA]]=="number"&&(this.valuesById[this.values[oA[EA]]=IA[oA[EA]]]=oA[EA])}return gA.fromJSON=function(IA,BA){var sA=new gA(IA,BA.values,BA.options,BA.comment,BA.comments);return sA.reserved=BA.reserved,sA},gA.prototype.toJSON=function(IA){var BA=IA?!!IA.keepComments:!1;return tA.toObject(["options",this.options,"valuesOptions",this.valuesOptions,"values",this.values,"reserved",this.reserved&&this.reserved.length?this.reserved:void 0,"comment",BA?this.comment:void 0,"comments",BA?this.comments:void 0])},gA.prototype.add=function(IA,BA,sA,QA){if(!tA.isString(IA))throw TypeError("name must be a string");if(!tA.isInteger(BA))throw TypeError("id must be an integer");if(this.values[IA]!==void 0)throw Error("duplicate name '"+IA+"' in "+this);if(this.isReservedId(BA))throw Error("id "+BA+" is reserved in "+this);if(this.isReservedName(IA))throw Error("name '"+IA+"' is reserved in "+this);if(this.valuesById[BA]!==void 0){if(!(this.options&&this.options.allow_alias))throw Error("duplicate id "+BA+" in "+this);this.values[IA]=BA}else this.valuesById[this.values[IA]=BA]=IA;return QA&&(this.valuesOptions===void 0&&(this.valuesOptions={}),this.valuesOptions[IA]=QA||null),this.comments[IA]=sA||null,this},gA.prototype.remove=function(IA){if(!tA.isString(IA))throw TypeError("name must be a string");var BA=this.values[IA];if(BA==null)throw Error("name '"+IA+"' does not exist in "+this);return delete this.valuesById[BA],delete this.values[IA],delete this.comments[IA],this.valuesOptions&&delete this.valuesOptions[IA],this},gA.prototype.isReservedId=function(IA){return AA.isReservedId(this.reserved,IA)},gA.prototype.isReservedName=function(IA){return AA.isReservedName(this.reserved,IA)},_enum}var encoder_1,hasRequiredEncoder;function requireEncoder(){if(hasRequiredEncoder)return encoder_1;hasRequiredEncoder=1,encoder_1=iA;var eA=require_enum(),AA=requireTypes(),tA=requireUtil();function gA(IA,BA,sA,QA){return BA.resolvedType.group?IA("types[%i].encode(%s,w.uint32(%i)).uint32(%i)",sA,QA,(BA.id<<3|3)>>>0,(BA.id<<3|4)>>>0):IA("types[%i].encode(%s,w.uint32(%i).fork()).ldelim()",sA,QA,(BA.id<<3|2)>>>0)}function iA(IA){for(var BA=tA.codegen(["m","w"],IA.name+"$encode")("if(!w)")("w=Writer.create()"),sA,QA,CA=IA.fieldsArray.slice().sort(tA.compareFieldsById),sA=0;sA<CA.length;++sA){var oA=CA[sA].resolve(),EA=IA._fieldsArray.indexOf(oA),nA=oA.resolvedType instanceof eA?"int32":oA.type,cA=AA.basic[nA];QA="m"+tA.safeProp(oA.name),oA.map?(BA("if(%s!=null&&Object.hasOwnProperty.call(m,%j)){",QA,oA.name)("for(var ks=Object.keys(%s),i=0;i<ks.length;++i){",QA)("w.uint32(%i).fork().uint32(%i).%s(ks[i])",(oA.id<<3|2)>>>0,8|AA.mapKey[oA.keyType],oA.keyType),cA===void 0?BA("types[%i].encode(%s[ks[i]],w.uint32(18).fork()).ldelim().ldelim()",EA,QA):BA(".uint32(%i).%s(%s[ks[i]]).ldelim()",16|cA,nA,QA),BA("}")("}")):oA.repeated?(BA("if(%s!=null&&%s.length){",QA,QA),oA.packed&&AA.packed[nA]!==void 0?BA("w.uint32(%i).fork()",(oA.id<<3|2)>>>0)("for(var i=0;i<%s.length;++i)",QA)("w.%s(%s[i])",nA,QA)("w.ldelim()"):(BA("for(var i=0;i<%s.length;++i)",QA),cA===void 0?gA(BA,oA,EA,QA+"[i]"):BA("w.uint32(%i).%s(%s[i])",(oA.id<<3|cA)>>>0,nA,QA)),BA("}")):(oA.optional&&BA("if(%s!=null&&Object.hasOwnProperty.call(m,%j))",QA,oA.name),cA===void 0?gA(BA,oA,EA,QA):BA("w.uint32(%i).%s(%s)",(oA.id<<3|cA)>>>0,nA,QA))}return BA("return w")}return encoder_1}var protobuf=indexLight.exports=indexMinimal;protobuf.build="light";function load$1(eA,AA,tA){return typeof AA=="function"?(tA=AA,AA=new protobuf.Root):AA||(AA=new protobuf.Root),AA.load(eA,tA)}protobuf.load=load$1;function loadSync(eA,AA){return AA||(AA=new protobuf.Root),AA.loadSync(eA)}protobuf.loadSync=loadSync,protobuf.encoder=requireEncoder(),protobuf.decoder=requireDecoder(),protobuf.verifier=requireVerifier(),protobuf.converter=requireConverter(),protobuf.ReflectionObject=requireObject(),protobuf.Namespace=requireNamespace(),protobuf.Root=requireRoot(),protobuf.Enum=require_enum(),protobuf.Type=requireType(),protobuf.Field=requireField(),protobuf.OneOf=requireOneof(),protobuf.MapField=requireMapfield(),protobuf.Service=requireService(),protobuf.Method=requireMethod(),protobuf.Message=message,protobuf.wrappers=wrappers,protobuf.types=requireTypes(),protobuf.util=requireUtil(),protobuf.ReflectionObject._configure(protobuf.Root),protobuf.Namespace._configure(protobuf.Type,protobuf.Service,protobuf.Enum),protobuf.Root._configure(protobuf.Type),protobuf.Field._configure(protobuf.Type);var indexLightExports=indexLight.exports,light=indexLightExports,protobufjs=getDefaultExportFromCjs(light);const proto_data={options:{syntax:"proto3",optimize_for:"LITE_RUNTIME"},nested:{nil:{nested:{xit:{nested:{proto:{nested:{MessageType:{values:{MessageType_FrameRequest:0,MessageType_FrameResponse:1,MessageType_FrameCache:2,MessageType_FrameLoaded:3,MessageType_ValueRequest:4,MessageType_ValueResponse:5,MessageType_ValueUpdate:6,MessageType_SignalRequest:7,MessageType_SignalResponse:8,MessageType_SignalNotify:9,MessageType_FileRequest:10,MessageType_FileResponse:11}},FrameRequest:{fields:{id:{type:"string",id:1}}},FrameResponse:{oneofs:{value:{oneof:["file","content"]}},fields:{id:{type:"string",id:1},file:{type:"string",id:2},content:{type:"string",id:3}}},FrameCache:{fields:{id:{type:"string",id:1},content:{type:"string",id:2},files:{rule:"repeated",type:"FileInfo",id:3}}},FrameLoaded:{oneofs:{_tag:{oneof:["tag"]}},fields:{id:{type:"string",id:1},tag:{type:"string",id:2,options:{proto3_optional:!0}}}},Value:{oneofs:{value:{oneof:["value_boolean","value_number","value_double","value_string","value_buffer"]}},fields:{id:{type:"string",id:1},value_boolean:{type:"bool",id:2},value_number:{type:"int64",id:3},value_double:{type:"double",id:4},value_string:{type:"string",id:5},value_buffer:{type:"bytes",id:6}}},ValueRequest:{oneofs:{_tag:{oneof:["tag"]}},fields:{id:{type:"string",id:1},tag:{type:"string",id:2,options:{proto3_optional:!0}}}},ValueResponse:{oneofs:{_tag:{oneof:["tag"]}},fields:{id:{type:"string",id:1},tag:{type:"string",id:2,options:{proto3_optional:!0}},values:{rule:"repeated",type:"Value",id:3}}},ValueUpdate:{oneofs:{_tag:{oneof:["tag"]}},fields:{id:{type:"string",id:1},tag:{type:"string",id:2,options:{proto3_optional:!0}},value:{type:"Value",id:3}}},SignalRequest:{fields:{id:{type:"string",id:1}}},Signal:{oneofs:{_type:{oneof:["type"]}},fields:{id:{type:"string",id:1},type:{type:"string",id:2,options:{proto3_optional:!0}}}},SignalResponse:{oneofs:{_tag:{oneof:["tag"]}},fields:{id:{type:"string",id:1},tag:{type:"string",id:2,options:{proto3_optional:!0}},signals:{rule:"repeated",type:"Signal",id:3}}},SignalNotify:{oneofs:{_tag:{oneof:["tag"]},arg:{oneof:["arg_boolean","arg_number","arg_double","arg_string","arg_buffer"]}},fields:{frame_id:{type:"string",id:1},tag:{type:"string",id:2,options:{proto3_optional:!0}},signal_id:{type:"string",id:3},arg_boolean:{type:"bool",id:4},arg_number:{type:"int64",id:5},arg_double:{type:"double",id:6},arg_string:{type:"string",id:7},arg_buffer:{type:"bytes",id:8}}},FileRequest:{fields:{target:{type:"string",id:1}}},FileResponse:{fields:{target:{type:"string",id:1},content:{type:"string",id:2},metadata:{type:"bytes",id:3}}},FileInfo:{fields:{target:{type:"string",id:1},metadata:{type:"bytes",id:2}}}}}}}}}}},nil_xit_proto=protobufjs.Root.fromJSON(proto_data).lookup("nil.xit.proto");var astralIdentifierCodes=[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],astralIdentifierStartCodes=[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],nonASCIIidentifierChars="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・",nonASCIIidentifierStartChars="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟍꟐꟑꟓꟕ-Ƛꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",reservedWords={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"},ecma5AndLessKeywords="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",keywords$1={5:ecma5AndLessKeywords,"5module":ecma5AndLessKeywords+" export import",6:ecma5AndLessKeywords+" const class extends export import super"},keywordRelationalOperator=/^in(stanceof)?$/,nonASCIIidentifierStart=new RegExp("["+nonASCIIidentifierStartChars+"]"),nonASCIIidentifier=new RegExp("["+nonASCIIidentifierStartChars+nonASCIIidentifierChars+"]");function isInAstralSet(eA,AA){for(var tA=65536,gA=0;gA<AA.length;gA+=2){if(tA+=AA[gA],tA>eA)return!1;if(tA+=AA[gA+1],tA>=eA)return!0}return!1}function isIdentifierStart(eA,AA){return eA<65?eA===36:eA<91?!0:eA<97?eA===95:eA<123?!0:eA<=65535?eA>=170&&nonASCIIidentifierStart.test(String.fromCharCode(eA)):AA===!1?!1:isInAstralSet(eA,astralIdentifierStartCodes)}function isIdentifierChar(eA,AA){return eA<48?eA===36:eA<58?!0:eA<65?!1:eA<91?!0:eA<97?eA===95:eA<123?!0:eA<=65535?eA>=170&&nonASCIIidentifier.test(String.fromCharCode(eA)):AA===!1?!1:isInAstralSet(eA,astralIdentifierStartCodes)||isInAstralSet(eA,astralIdentifierCodes)}var TokenType=function eA(AA,tA){tA===void 0&&(tA={}),this.label=AA,this.keyword=tA.keyword,this.beforeExpr=!!tA.beforeExpr,this.startsExpr=!!tA.startsExpr,this.isLoop=!!tA.isLoop,this.isAssign=!!tA.isAssign,this.prefix=!!tA.prefix,this.postfix=!!tA.postfix,this.binop=tA.binop||null,this.updateContext=null};function binop(eA,AA){return new TokenType(eA,{beforeExpr:!0,binop:AA})}var beforeExpr={beforeExpr:!0},startsExpr={startsExpr:!0},keywords={};function kw(eA,AA){return AA===void 0&&(AA={}),AA.keyword=eA,keywords[eA]=new TokenType(eA,AA)}var types$1={num:new TokenType("num",startsExpr),regexp:new TokenType("regexp",startsExpr),string:new TokenType("string",startsExpr),name:new TokenType("name",startsExpr),privateId:new TokenType("privateId",startsExpr),eof:new TokenType("eof"),bracketL:new TokenType("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new TokenType("]"),braceL:new TokenType("{",{beforeExpr:!0,startsExpr:!0}),braceR:new TokenType("}"),parenL:new TokenType("(",{beforeExpr:!0,startsExpr:!0}),parenR:new TokenType(")"),comma:new TokenType(",",beforeExpr),semi:new TokenType(";",beforeExpr),colon:new TokenType(":",beforeExpr),dot:new TokenType("."),question:new TokenType("?",beforeExpr),questionDot:new TokenType("?."),arrow:new TokenType("=>",beforeExpr),template:new TokenType("template"),invalidTemplate:new TokenType("invalidTemplate"),ellipsis:new TokenType("...",beforeExpr),backQuote:new TokenType("`",startsExpr),dollarBraceL:new TokenType("${",{beforeExpr:!0,startsExpr:!0}),eq:new TokenType("=",{beforeExpr:!0,isAssign:!0}),assign:new TokenType("_=",{beforeExpr:!0,isAssign:!0}),incDec:new TokenType("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new TokenType("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:binop("||",1),logicalAND:binop("&&",2),bitwiseOR:binop("|",3),bitwiseXOR:binop("^",4),bitwiseAND:binop("&",5),equality:binop("==/!=/===/!==",6),relational:binop("</>/<=/>=",7),bitShift:binop("<</>>/>>>",8),plusMin:new TokenType("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:binop("%",10),star:binop("*",10),slash:binop("/",10),starstar:new TokenType("**",{beforeExpr:!0}),coalesce:binop("??",1),_break:kw("break"),_case:kw("case",beforeExpr),_catch:kw("catch"),_continue:kw("continue"),_debugger:kw("debugger"),_default:kw("default",beforeExpr),_do:kw("do",{isLoop:!0,beforeExpr:!0}),_else:kw("else",beforeExpr),_finally:kw("finally"),_for:kw("for",{isLoop:!0}),_function:kw("function",startsExpr),_if:kw("if"),_return:kw("return",beforeExpr),_switch:kw("switch"),_throw:kw("throw",beforeExpr),_try:kw("try"),_var:kw("var"),_const:kw("const"),_while:kw("while",{isLoop:!0}),_with:kw("with"),_new:kw("new",{beforeExpr:!0,startsExpr:!0}),_this:kw("this",startsExpr),_super:kw("super",startsExpr),_class:kw("class",startsExpr),_extends:kw("extends",beforeExpr),_export:kw("export"),_import:kw("import",startsExpr),_null:kw("null",startsExpr),_true:kw("true",startsExpr),_false:kw("false",startsExpr),_in:kw("in",{beforeExpr:!0,binop:7}),_instanceof:kw("instanceof",{beforeExpr:!0,binop:7}),_typeof:kw("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:kw("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:kw("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},lineBreak=/\r\n?|\n|\u2028|\u2029/,lineBreakG=new RegExp(lineBreak.source,"g");function isNewLine(eA){return eA===10||eA===13||eA===8232||eA===8233}function nextLineBreak(eA,AA,tA){tA===void 0&&(tA=eA.length);for(var gA=AA;gA<tA;gA++){var iA=eA.charCodeAt(gA);if(isNewLine(iA))return gA<tA-1&&iA===13&&eA.charCodeAt(gA+1)===10?gA+2:gA+1}return-1}var nonASCIIwhitespace=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,skipWhiteSpace=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,ref=Object.prototype,hasOwnProperty=ref.hasOwnProperty,toString$1=ref.toString,hasOwn=Object.hasOwn||function(eA,AA){return hasOwnProperty.call(eA,AA)},isArray=Array.isArray||function(eA){return toString$1.call(eA)==="[object Array]"},regexpCache=Object.create(null);function wordsRegexp(eA){return regexpCache[eA]||(regexpCache[eA]=new RegExp("^(?:"+eA.replace(/ /g,"|")+")$"))}function codePointToString(eA){return eA<=65535?String.fromCharCode(eA):(eA-=65536,String.fromCharCode((eA>>10)+55296,(eA&1023)+56320))}var loneSurrogate=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,Position=function eA(AA,tA){this.line=AA,this.column=tA};Position.prototype.offset=function eA(AA){return new Position(this.line,this.column+AA)};var SourceLocation=function eA(AA,tA,gA){this.start=tA,this.end=gA,AA.sourceFile!==null&&(this.source=AA.sourceFile)};function getLineInfo(eA,AA){for(var tA=1,gA=0;;){var iA=nextLineBreak(eA,gA,AA);if(iA<0)return new Position(tA,AA-gA);++tA,gA=iA}}var defaultOptions={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},warnedAboutEcmaVersion=!1;function getOptions(eA){var AA={};for(var tA in defaultOptions)AA[tA]=eA&&hasOwn(eA,tA)?eA[tA]:defaultOptions[tA];if(AA.ecmaVersion==="latest"?AA.ecmaVersion=1e8:AA.ecmaVersion==null?(!warnedAboutEcmaVersion&&typeof console=="object"&&console.warn&&(warnedAboutEcmaVersion=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
4
+ }`}return gA.toString=iA,gA}codegen.verbose=!1;var fetch_1=fetch$1,asPromise=aspromise,inquire=inquire_1,fs$1=inquire("fs");function fetch$1(eA,AA,tA){return typeof AA=="function"?(tA=AA,AA={}):AA||(AA={}),tA?!AA.xhr&&fs$1&&fs$1.readFile?fs$1.readFile(eA,function(iA,IA){return iA&&typeof XMLHttpRequest<"u"?fetch$1.xhr(eA,AA,tA):iA?tA(iA):tA(null,AA.binary?IA:IA.toString("utf8"))}):fetch$1.xhr(eA,AA,tA):asPromise(fetch$1,this,eA,AA)}fetch$1.xhr=function eA(AA,tA,gA){var iA=new XMLHttpRequest;iA.onreadystatechange=function(){if(iA.readyState===4){if(iA.status!==0&&iA.status!==200)return gA(Error("status "+iA.status));if(tA.binary){var BA=iA.response;if(!BA){BA=[];for(var sA=0;sA<iA.responseText.length;++sA)BA.push(iA.responseText.charCodeAt(sA)&255)}return gA(null,typeof Uint8Array<"u"?new Uint8Array(BA):BA)}return gA(null,iA.responseText)}},tA.binary&&("overrideMimeType"in iA&&iA.overrideMimeType("text/plain; charset=x-user-defined"),iA.responseType="arraybuffer"),iA.open("GET",AA),iA.send()};var path={};(function(eA){var AA=eA,tA=AA.isAbsolute=function(IA){return/^(?:\/|\w+:)/.test(IA)},gA=AA.normalize=function(IA){IA=IA.replace(/\\/g,"/").replace(/\/{2,}/g,"/");var BA=IA.split("/"),sA=tA(IA),QA="";sA&&(QA=BA.shift()+"/");for(var CA=0;CA<BA.length;)BA[CA]===".."?CA>0&&BA[CA-1]!==".."?BA.splice(--CA,2):sA?BA.splice(CA,1):++CA:BA[CA]==="."?BA.splice(CA,1):++CA;return QA+BA.join("/")};AA.resolve=function(IA,BA,sA){return sA||(BA=gA(BA)),tA(BA)?BA:(sA||(IA=gA(IA)),(IA=IA.replace(/(?:\/|^)[^/]+$/,"")).length?gA(IA+"/"+BA):BA)}})(path);var types$2={},hasRequiredTypes;function requireTypes(){return hasRequiredTypes||(hasRequiredTypes=1,function(eA){var AA=eA,tA=requireUtil(),gA=["double","float","int32","uint32","sint32","fixed32","sfixed32","int64","uint64","sint64","fixed64","sfixed64","bool","string","bytes"];function iA(IA,BA){var sA=0,QA={};for(BA|=0;sA<IA.length;)QA[gA[sA+BA]]=IA[sA++];return QA}AA.basic=iA([1,5,0,0,0,5,5,0,0,0,1,1,0,2,2]),AA.defaults=iA([0,0,0,0,0,0,0,0,0,0,0,0,!1,"",tA.emptyArray,null]),AA.long=iA([0,0,0,1,1],7),AA.mapKey=iA([0,0,0,5,5,0,0,0,1,1,0,2],2),AA.packed=iA([1,5,0,0,0,5,5,0,0,0,1,1,0])}(types$2)),types$2}var field,hasRequiredField;function requireField(){if(hasRequiredField)return field;hasRequiredField=1,field=BA;var eA=requireObject();((BA.prototype=Object.create(eA.prototype)).constructor=BA).className="Field";var AA=require_enum(),tA=requireTypes(),gA=requireUtil(),iA,IA=/^required|optional|repeated$/;BA.fromJSON=function(QA,CA){return new BA(QA,CA.id,CA.type,CA.rule,CA.extend,CA.options,CA.comment)};function BA(sA,QA,CA,oA,EA,nA,cA){if(gA.isObject(oA)?(cA=EA,nA=oA,oA=EA=void 0):gA.isObject(EA)&&(cA=nA,nA=EA,EA=void 0),eA.call(this,sA,nA),!gA.isInteger(QA)||QA<0)throw TypeError("id must be a non-negative integer");if(!gA.isString(CA))throw TypeError("type must be a string");if(oA!==void 0&&!IA.test(oA=oA.toString().toLowerCase()))throw TypeError("rule must be a string rule");if(EA!==void 0&&!gA.isString(EA))throw TypeError("extend must be a string");oA==="proto3_optional"&&(oA="optional"),this.rule=oA&&oA!=="optional"?oA:void 0,this.type=CA,this.id=QA,this.extend=EA||void 0,this.required=oA==="required",this.optional=!this.required,this.repeated=oA==="repeated",this.map=!1,this.message=null,this.partOf=null,this.typeDefault=null,this.defaultValue=null,this.long=gA.Long?tA.long[CA]!==void 0:!1,this.bytes=CA==="bytes",this.resolvedType=null,this.extensionField=null,this.declaringField=null,this._packed=null,this.comment=cA}return Object.defineProperty(BA.prototype,"packed",{get:function(){return this._packed===null&&(this._packed=this.getOption("packed")!==!1),this._packed}}),BA.prototype.setOption=function(QA,CA,oA){return QA==="packed"&&(this._packed=null),eA.prototype.setOption.call(this,QA,CA,oA)},BA.prototype.toJSON=function(QA){var CA=QA?!!QA.keepComments:!1;return gA.toObject(["rule",this.rule!=="optional"&&this.rule||void 0,"type",this.type,"id",this.id,"extend",this.extend,"options",this.options,"comment",CA?this.comment:void 0])},BA.prototype.resolve=function(){if(this.resolved)return this;if((this.typeDefault=tA.defaults[this.type])===void 0?(this.resolvedType=(this.declaringField?this.declaringField.parent:this.parent).lookupTypeOrEnum(this.type),this.resolvedType instanceof iA?this.typeDefault=null:this.typeDefault=this.resolvedType.values[Object.keys(this.resolvedType.values)[0]]):this.options&&this.options.proto3_optional&&(this.typeDefault=null),this.options&&this.options.default!=null&&(this.typeDefault=this.options.default,this.resolvedType instanceof AA&&typeof this.typeDefault=="string"&&(this.typeDefault=this.resolvedType.values[this.typeDefault])),this.options&&((this.options.packed===!0||this.options.packed!==void 0&&this.resolvedType&&!(this.resolvedType instanceof AA))&&delete this.options.packed,Object.keys(this.options).length||(this.options=void 0)),this.long)this.typeDefault=gA.Long.fromNumber(this.typeDefault,this.type.charAt(0)==="u"),Object.freeze&&Object.freeze(this.typeDefault);else if(this.bytes&&typeof this.typeDefault=="string"){var QA;gA.base64.test(this.typeDefault)?gA.base64.decode(this.typeDefault,QA=gA.newBuffer(gA.base64.length(this.typeDefault)),0):gA.utf8.write(this.typeDefault,QA=gA.newBuffer(gA.utf8.length(this.typeDefault)),0),this.typeDefault=QA}return this.map?this.defaultValue=gA.emptyObject:this.repeated?this.defaultValue=gA.emptyArray:this.defaultValue=this.typeDefault,this.parent instanceof iA&&(this.parent.ctor.prototype[this.name]=this.defaultValue),eA.prototype.resolve.call(this)},BA.d=function(QA,CA,oA,EA){return typeof CA=="function"?CA=gA.decorateType(CA).name:CA&&typeof CA=="object"&&(CA=gA.decorateEnum(CA).name),function(cA,uA){gA.decorateType(cA.constructor).add(new BA(uA,QA,CA,oA,{default:EA}))}},BA._configure=function(QA){iA=QA},field}var oneof,hasRequiredOneof;function requireOneof(){if(hasRequiredOneof)return oneof;hasRequiredOneof=1,oneof=gA;var eA=requireObject();((gA.prototype=Object.create(eA.prototype)).constructor=gA).className="OneOf";var AA=requireField(),tA=requireUtil();function gA(IA,BA,sA,QA){if(Array.isArray(BA)||(sA=BA,BA=void 0),eA.call(this,IA,sA),!(BA===void 0||Array.isArray(BA)))throw TypeError("fieldNames must be an Array");this.oneof=BA||[],this.fieldsArray=[],this.comment=QA}gA.fromJSON=function(BA,sA){return new gA(BA,sA.oneof,sA.options,sA.comment)},gA.prototype.toJSON=function(BA){var sA=BA?!!BA.keepComments:!1;return tA.toObject(["options",this.options,"oneof",this.oneof,"comment",sA?this.comment:void 0])};function iA(IA){if(IA.parent)for(var BA=0;BA<IA.fieldsArray.length;++BA)IA.fieldsArray[BA].parent||IA.parent.add(IA.fieldsArray[BA])}return gA.prototype.add=function(BA){if(!(BA instanceof AA))throw TypeError("field must be a Field");return BA.parent&&BA.parent!==this.parent&&BA.parent.remove(BA),this.oneof.push(BA.name),this.fieldsArray.push(BA),BA.partOf=this,iA(this),this},gA.prototype.remove=function(BA){if(!(BA instanceof AA))throw TypeError("field must be a Field");var sA=this.fieldsArray.indexOf(BA);if(sA<0)throw Error(BA+" is not a member of "+this);return this.fieldsArray.splice(sA,1),sA=this.oneof.indexOf(BA.name),sA>-1&&this.oneof.splice(sA,1),BA.partOf=null,this},gA.prototype.onAdd=function(BA){eA.prototype.onAdd.call(this,BA);for(var sA=this,QA=0;QA<this.oneof.length;++QA){var CA=BA.get(this.oneof[QA]);CA&&!CA.partOf&&(CA.partOf=sA,sA.fieldsArray.push(CA))}iA(this)},gA.prototype.onRemove=function(BA){for(var sA=0,QA;sA<this.fieldsArray.length;++sA)(QA=this.fieldsArray[sA]).parent&&QA.parent.remove(QA);eA.prototype.onRemove.call(this,BA)},gA.d=function(){for(var BA=new Array(arguments.length),sA=0;sA<arguments.length;)BA[sA]=arguments[sA++];return function(CA,oA){tA.decorateType(CA.constructor).add(new gA(oA,BA)),Object.defineProperty(CA,oA,{get:tA.oneOfGetter(BA),set:tA.oneOfSetter(BA)})}},oneof}var namespace,hasRequiredNamespace;function requireNamespace(){if(hasRequiredNamespace)return namespace;hasRequiredNamespace=1,namespace=QA;var eA=requireObject();((QA.prototype=Object.create(eA.prototype)).constructor=QA).className="Namespace";var AA=requireField(),tA=requireUtil(),gA=requireOneof(),iA,IA,BA;QA.fromJSON=function(EA,nA){return new QA(EA,nA.options).addJSON(nA.nested)};function sA(oA,EA){if(oA&&oA.length){for(var nA={},cA=0;cA<oA.length;++cA)nA[oA[cA].name]=oA[cA].toJSON(EA);return nA}}QA.arrayToJSON=sA,QA.isReservedId=function(EA,nA){if(EA){for(var cA=0;cA<EA.length;++cA)if(typeof EA[cA]!="string"&&EA[cA][0]<=nA&&EA[cA][1]>nA)return!0}return!1},QA.isReservedName=function(EA,nA){if(EA){for(var cA=0;cA<EA.length;++cA)if(EA[cA]===nA)return!0}return!1};function QA(oA,EA){eA.call(this,oA,EA),this.nested=void 0,this._nestedArray=null}function CA(oA){return oA._nestedArray=null,oA}return Object.defineProperty(QA.prototype,"nestedArray",{get:function(){return this._nestedArray||(this._nestedArray=tA.toArray(this.nested))}}),QA.prototype.toJSON=function(EA){return tA.toObject(["options",this.options,"nested",sA(this.nestedArray,EA)])},QA.prototype.addJSON=function(EA){var nA=this;if(EA)for(var cA=Object.keys(EA),uA=0,lA;uA<cA.length;++uA)lA=EA[cA[uA]],nA.add((lA.fields!==void 0?iA.fromJSON:lA.values!==void 0?BA.fromJSON:lA.methods!==void 0?IA.fromJSON:lA.id!==void 0?AA.fromJSON:QA.fromJSON)(cA[uA],lA));return this},QA.prototype.get=function(EA){return this.nested&&this.nested[EA]||null},QA.prototype.getEnum=function(EA){if(this.nested&&this.nested[EA]instanceof BA)return this.nested[EA].values;throw Error("no such enum: "+EA)},QA.prototype.add=function(EA){if(!(EA instanceof AA&&EA.extend!==void 0||EA instanceof iA||EA instanceof gA||EA instanceof BA||EA instanceof IA||EA instanceof QA))throw TypeError("object must be a valid nested object");if(!this.nested)this.nested={};else{var nA=this.get(EA.name);if(nA)if(nA instanceof QA&&EA instanceof QA&&!(nA instanceof iA||nA instanceof IA)){for(var cA=nA.nestedArray,uA=0;uA<cA.length;++uA)EA.add(cA[uA]);this.remove(nA),this.nested||(this.nested={}),EA.setOptions(nA.options,!0)}else throw Error("duplicate name '"+EA.name+"' in "+this)}return this.nested[EA.name]=EA,EA.onAdd(this),CA(this)},QA.prototype.remove=function(EA){if(!(EA instanceof eA))throw TypeError("object must be a ReflectionObject");if(EA.parent!==this)throw Error(EA+" is not a member of "+this);return delete this.nested[EA.name],Object.keys(this.nested).length||(this.nested=void 0),EA.onRemove(this),CA(this)},QA.prototype.define=function(EA,nA){if(tA.isString(EA))EA=EA.split(".");else if(!Array.isArray(EA))throw TypeError("illegal path");if(EA&&EA.length&&EA[0]==="")throw Error("path must be relative");for(var cA=this;EA.length>0;){var uA=EA.shift();if(cA.nested&&cA.nested[uA]){if(cA=cA.nested[uA],!(cA instanceof QA))throw Error("path conflicts with non-namespace objects")}else cA.add(cA=new QA(uA))}return nA&&cA.addJSON(nA),cA},QA.prototype.resolveAll=function(){for(var EA=this.nestedArray,nA=0;nA<EA.length;)EA[nA]instanceof QA?EA[nA++].resolveAll():EA[nA++].resolve();return this.resolve()},QA.prototype.lookup=function(EA,nA,cA){if(typeof nA=="boolean"?(cA=nA,nA=void 0):nA&&!Array.isArray(nA)&&(nA=[nA]),tA.isString(EA)&&EA.length){if(EA===".")return this.root;EA=EA.split(".")}else if(!EA.length)return this;if(EA[0]==="")return this.root.lookup(EA.slice(1),nA);var uA=this.get(EA[0]);if(uA){if(EA.length===1){if(!nA||nA.indexOf(uA.constructor)>-1)return uA}else if(uA instanceof QA&&(uA=uA.lookup(EA.slice(1),nA,!0)))return uA}else for(var lA=0;lA<this.nestedArray.length;++lA)if(this._nestedArray[lA]instanceof QA&&(uA=this._nestedArray[lA].lookup(EA,nA,!0)))return uA;return this.parent===null||cA?null:this.parent.lookup(EA,nA)},QA.prototype.lookupType=function(EA){var nA=this.lookup(EA,[iA]);if(!nA)throw Error("no such type: "+EA);return nA},QA.prototype.lookupEnum=function(EA){var nA=this.lookup(EA,[BA]);if(!nA)throw Error("no such Enum '"+EA+"' in "+this);return nA},QA.prototype.lookupTypeOrEnum=function(EA){var nA=this.lookup(EA,[iA,BA]);if(!nA)throw Error("no such Type or Enum '"+EA+"' in "+this);return nA},QA.prototype.lookupService=function(EA){var nA=this.lookup(EA,[IA]);if(!nA)throw Error("no such Service '"+EA+"' in "+this);return nA},QA._configure=function(oA,EA,nA){iA=oA,IA=EA,BA=nA},namespace}var mapfield,hasRequiredMapfield;function requireMapfield(){if(hasRequiredMapfield)return mapfield;hasRequiredMapfield=1,mapfield=gA;var eA=requireField();((gA.prototype=Object.create(eA.prototype)).constructor=gA).className="MapField";var AA=requireTypes(),tA=requireUtil();function gA(iA,IA,BA,sA,QA,CA){if(eA.call(this,iA,IA,sA,void 0,void 0,QA,CA),!tA.isString(BA))throw TypeError("keyType must be a string");this.keyType=BA,this.resolvedKeyType=null,this.map=!0}return gA.fromJSON=function(IA,BA){return new gA(IA,BA.id,BA.keyType,BA.type,BA.options,BA.comment)},gA.prototype.toJSON=function(IA){var BA=IA?!!IA.keepComments:!1;return tA.toObject(["keyType",this.keyType,"type",this.type,"id",this.id,"extend",this.extend,"options",this.options,"comment",BA?this.comment:void 0])},gA.prototype.resolve=function(){if(this.resolved)return this;if(AA.mapKey[this.keyType]===void 0)throw Error("invalid key type: "+this.keyType);return eA.prototype.resolve.call(this)},gA.d=function(IA,BA,sA){return typeof sA=="function"?sA=tA.decorateType(sA).name:sA&&typeof sA=="object"&&(sA=tA.decorateEnum(sA).name),function(CA,oA){tA.decorateType(CA.constructor).add(new gA(oA,IA,BA,sA))}},mapfield}var method$1,hasRequiredMethod;function requireMethod(){if(hasRequiredMethod)return method$1;hasRequiredMethod=1,method$1=tA;var eA=requireObject();((tA.prototype=Object.create(eA.prototype)).constructor=tA).className="Method";var AA=requireUtil();function tA(gA,iA,IA,BA,sA,QA,CA,oA,EA){if(AA.isObject(sA)?(CA=sA,sA=QA=void 0):AA.isObject(QA)&&(CA=QA,QA=void 0),!(iA===void 0||AA.isString(iA)))throw TypeError("type must be a string");if(!AA.isString(IA))throw TypeError("requestType must be a string");if(!AA.isString(BA))throw TypeError("responseType must be a string");eA.call(this,gA,CA),this.type=iA||"rpc",this.requestType=IA,this.requestStream=sA?!0:void 0,this.responseType=BA,this.responseStream=QA?!0:void 0,this.resolvedRequestType=null,this.resolvedResponseType=null,this.comment=oA,this.parsedOptions=EA}return tA.fromJSON=function(iA,IA){return new tA(iA,IA.type,IA.requestType,IA.responseType,IA.requestStream,IA.responseStream,IA.options,IA.comment,IA.parsedOptions)},tA.prototype.toJSON=function(iA){var IA=iA?!!iA.keepComments:!1;return AA.toObject(["type",this.type!=="rpc"&&this.type||void 0,"requestType",this.requestType,"requestStream",this.requestStream,"responseType",this.responseType,"responseStream",this.responseStream,"options",this.options,"comment",IA?this.comment:void 0,"parsedOptions",this.parsedOptions])},tA.prototype.resolve=function(){return this.resolved?this:(this.resolvedRequestType=this.parent.lookupType(this.requestType),this.resolvedResponseType=this.parent.lookupType(this.responseType),eA.prototype.resolve.call(this))},method$1}var service,hasRequiredService;function requireService(){if(hasRequiredService)return service;hasRequiredService=1,service=iA;var eA=requireNamespace();((iA.prototype=Object.create(eA.prototype)).constructor=iA).className="Service";var AA=requireMethod(),tA=requireUtil(),gA=rpc;function iA(BA,sA){eA.call(this,BA,sA),this.methods={},this._methodsArray=null}iA.fromJSON=function(sA,QA){var CA=new iA(sA,QA.options);if(QA.methods)for(var oA=Object.keys(QA.methods),EA=0;EA<oA.length;++EA)CA.add(AA.fromJSON(oA[EA],QA.methods[oA[EA]]));return QA.nested&&CA.addJSON(QA.nested),CA.comment=QA.comment,CA},iA.prototype.toJSON=function(sA){var QA=eA.prototype.toJSON.call(this,sA),CA=sA?!!sA.keepComments:!1;return tA.toObject(["options",QA&&QA.options||void 0,"methods",eA.arrayToJSON(this.methodsArray,sA)||{},"nested",QA&&QA.nested||void 0,"comment",CA?this.comment:void 0])},Object.defineProperty(iA.prototype,"methodsArray",{get:function(){return this._methodsArray||(this._methodsArray=tA.toArray(this.methods))}});function IA(BA){return BA._methodsArray=null,BA}return iA.prototype.get=function(sA){return this.methods[sA]||eA.prototype.get.call(this,sA)},iA.prototype.resolveAll=function(){for(var sA=this.methodsArray,QA=0;QA<sA.length;++QA)sA[QA].resolve();return eA.prototype.resolve.call(this)},iA.prototype.add=function(sA){if(this.get(sA.name))throw Error("duplicate name '"+sA.name+"' in "+this);return sA instanceof AA?(this.methods[sA.name]=sA,sA.parent=this,IA(this)):eA.prototype.add.call(this,sA)},iA.prototype.remove=function(sA){if(sA instanceof AA){if(this.methods[sA.name]!==sA)throw Error(sA+" is not a member of "+this);return delete this.methods[sA.name],sA.parent=null,IA(this)}return eA.prototype.remove.call(this,sA)},iA.prototype.create=function(sA,QA,CA){for(var oA=new gA.Service(sA,QA,CA),EA=0,nA;EA<this.methodsArray.length;++EA){var cA=tA.lcFirst((nA=this._methodsArray[EA]).resolve().name).replace(/[^$\w_]/g,"");oA[cA]=tA.codegen(["r","c"],tA.isReserved(cA)?cA+"_":cA)("return this.rpcCall(m,q,s,r,c)")({m:nA,q:nA.resolvedRequestType.ctor,s:nA.resolvedResponseType.ctor})}return oA},service}var message=Message,util=requireMinimal();function Message(eA){if(eA)for(var AA=Object.keys(eA),tA=0;tA<AA.length;++tA)this[AA[tA]]=eA[AA[tA]]}Message.create=function eA(AA){return this.$type.create(AA)},Message.encode=function eA(AA,tA){return this.$type.encode(AA,tA)},Message.encodeDelimited=function eA(AA,tA){return this.$type.encodeDelimited(AA,tA)},Message.decode=function eA(AA){return this.$type.decode(AA)},Message.decodeDelimited=function eA(AA){return this.$type.decodeDelimited(AA)},Message.verify=function eA(AA){return this.$type.verify(AA)},Message.fromObject=function eA(AA){return this.$type.fromObject(AA)},Message.toObject=function eA(AA,tA){return this.$type.toObject(AA,tA)},Message.prototype.toJSON=function eA(){return this.$type.toObject(this,util.toJSONOptions)};var decoder_1,hasRequiredDecoder;function requireDecoder(){if(hasRequiredDecoder)return decoder_1;hasRequiredDecoder=1,decoder_1=iA;var eA=require_enum(),AA=requireTypes(),tA=requireUtil();function gA(IA){return"missing required '"+IA.name+"'"}function iA(IA){var BA=tA.codegen(["r","l"],IA.name+"$decode")("if(!(r instanceof Reader))")("r=Reader.create(r)")("var c=l===undefined?r.len:r.pos+l,m=new this.ctor"+(IA.fieldsArray.filter(function(nA){return nA.map}).length?",k,value":""))("while(r.pos<c){")("var t=r.uint32()");IA.group&&BA("if((t&7)===4)")("break"),BA("switch(t>>>3){");for(var sA=0;sA<IA.fieldsArray.length;++sA){var QA=IA._fieldsArray[sA].resolve(),CA=QA.resolvedType instanceof eA?"int32":QA.type,oA="m"+tA.safeProp(QA.name);BA("case %i: {",QA.id),QA.map?(BA("if(%s===util.emptyObject)",oA)("%s={}",oA)("var c2 = r.uint32()+r.pos"),AA.defaults[QA.keyType]!==void 0?BA("k=%j",AA.defaults[QA.keyType]):BA("k=null"),AA.defaults[CA]!==void 0?BA("value=%j",AA.defaults[CA]):BA("value=null"),BA("while(r.pos<c2){")("var tag2=r.uint32()")("switch(tag2>>>3){")("case 1: k=r.%s(); break",QA.keyType)("case 2:"),AA.basic[CA]===void 0?BA("value=types[%i].decode(r,r.uint32())",sA):BA("value=r.%s()",CA),BA("break")("default:")("r.skipType(tag2&7)")("break")("}")("}"),AA.long[QA.keyType]!==void 0?BA('%s[typeof k==="object"?util.longToHash(k):k]=value',oA):BA("%s[k]=value",oA)):QA.repeated?(BA("if(!(%s&&%s.length))",oA,oA)("%s=[]",oA),AA.packed[CA]!==void 0&&BA("if((t&7)===2){")("var c2=r.uint32()+r.pos")("while(r.pos<c2)")("%s.push(r.%s())",oA,CA)("}else"),AA.basic[CA]===void 0?BA(QA.resolvedType.group?"%s.push(types[%i].decode(r))":"%s.push(types[%i].decode(r,r.uint32()))",oA,sA):BA("%s.push(r.%s())",oA,CA)):AA.basic[CA]===void 0?BA(QA.resolvedType.group?"%s=types[%i].decode(r)":"%s=types[%i].decode(r,r.uint32())",oA,sA):BA("%s=r.%s()",oA,CA),BA("break")("}")}for(BA("default:")("r.skipType(t&7)")("break")("}")("}"),sA=0;sA<IA._fieldsArray.length;++sA){var EA=IA._fieldsArray[sA];EA.required&&BA("if(!m.hasOwnProperty(%j))",EA.name)("throw util.ProtocolError(%j,{instance:m})",gA(EA))}return BA("return m")}return decoder_1}var verifier_1,hasRequiredVerifier;function requireVerifier(){if(hasRequiredVerifier)return verifier_1;hasRequiredVerifier=1,verifier_1=IA;var eA=require_enum(),AA=requireUtil();function tA(BA,sA){return BA.name+": "+sA+(BA.repeated&&sA!=="array"?"[]":BA.map&&sA!=="object"?"{k:"+BA.keyType+"}":"")+" expected"}function gA(BA,sA,QA,CA){if(sA.resolvedType)if(sA.resolvedType instanceof eA){BA("switch(%s){",CA)("default:")("return%j",tA(sA,"enum value"));for(var oA=Object.keys(sA.resolvedType.values),EA=0;EA<oA.length;++EA)BA("case %i:",sA.resolvedType.values[oA[EA]]);BA("break")("}")}else BA("{")("var e=types[%i].verify(%s);",QA,CA)("if(e)")("return%j+e",sA.name+".")("}");else switch(sA.type){case"int32":case"uint32":case"sint32":case"fixed32":case"sfixed32":BA("if(!util.isInteger(%s))",CA)("return%j",tA(sA,"integer"));break;case"int64":case"uint64":case"sint64":case"fixed64":case"sfixed64":BA("if(!util.isInteger(%s)&&!(%s&&util.isInteger(%s.low)&&util.isInteger(%s.high)))",CA,CA,CA,CA)("return%j",tA(sA,"integer|Long"));break;case"float":case"double":BA('if(typeof %s!=="number")',CA)("return%j",tA(sA,"number"));break;case"bool":BA('if(typeof %s!=="boolean")',CA)("return%j",tA(sA,"boolean"));break;case"string":BA("if(!util.isString(%s))",CA)("return%j",tA(sA,"string"));break;case"bytes":BA('if(!(%s&&typeof %s.length==="number"||util.isString(%s)))',CA,CA,CA)("return%j",tA(sA,"buffer"));break}return BA}function iA(BA,sA,QA){switch(sA.keyType){case"int32":case"uint32":case"sint32":case"fixed32":case"sfixed32":BA("if(!util.key32Re.test(%s))",QA)("return%j",tA(sA,"integer key"));break;case"int64":case"uint64":case"sint64":case"fixed64":case"sfixed64":BA("if(!util.key64Re.test(%s))",QA)("return%j",tA(sA,"integer|Long key"));break;case"bool":BA("if(!util.key2Re.test(%s))",QA)("return%j",tA(sA,"boolean key"));break}return BA}function IA(BA){var sA=AA.codegen(["m"],BA.name+"$verify")('if(typeof m!=="object"||m===null)')("return%j","object expected"),QA=BA.oneofsArray,CA={};QA.length&&sA("var p={}");for(var oA=0;oA<BA.fieldsArray.length;++oA){var EA=BA._fieldsArray[oA].resolve(),nA="m"+AA.safeProp(EA.name);if(EA.optional&&sA("if(%s!=null&&m.hasOwnProperty(%j)){",nA,EA.name),EA.map)sA("if(!util.isObject(%s))",nA)("return%j",tA(EA,"object"))("var k=Object.keys(%s)",nA)("for(var i=0;i<k.length;++i){"),iA(sA,EA,"k[i]"),gA(sA,EA,oA,nA+"[k[i]]")("}");else if(EA.repeated)sA("if(!Array.isArray(%s))",nA)("return%j",tA(EA,"array"))("for(var i=0;i<%s.length;++i){",nA),gA(sA,EA,oA,nA+"[i]")("}");else{if(EA.partOf){var cA=AA.safeProp(EA.partOf.name);CA[EA.partOf.name]===1&&sA("if(p%s===1)",cA)("return%j",EA.partOf.name+": multiple values"),CA[EA.partOf.name]=1,sA("p%s=1",cA)}gA(sA,EA,oA,nA)}EA.optional&&sA("}")}return sA("return null")}return verifier_1}var converter={},hasRequiredConverter;function requireConverter(){return hasRequiredConverter||(hasRequiredConverter=1,function(eA){var AA=eA,tA=require_enum(),gA=requireUtil();function iA(BA,sA,QA,CA){var oA=!1;if(sA.resolvedType)if(sA.resolvedType instanceof tA){BA("switch(d%s){",CA);for(var EA=sA.resolvedType.values,nA=Object.keys(EA),cA=0;cA<nA.length;++cA)EA[nA[cA]]===sA.typeDefault&&!oA&&(BA("default:")('if(typeof(d%s)==="number"){m%s=d%s;break}',CA,CA,CA),sA.repeated||BA("break"),oA=!0),BA("case%j:",nA[cA])("case %i:",EA[nA[cA]])("m%s=%j",CA,EA[nA[cA]])("break");BA("}")}else BA('if(typeof d%s!=="object")',CA)("throw TypeError(%j)",sA.fullName+": object expected")("m%s=types[%i].fromObject(d%s)",CA,QA,CA);else{var uA=!1;switch(sA.type){case"double":case"float":BA("m%s=Number(d%s)",CA,CA);break;case"uint32":case"fixed32":BA("m%s=d%s>>>0",CA,CA);break;case"int32":case"sint32":case"sfixed32":BA("m%s=d%s|0",CA,CA);break;case"uint64":uA=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":BA("if(util.Long)")("(m%s=util.Long.fromValue(d%s)).unsigned=%j",CA,CA,uA)('else if(typeof d%s==="string")',CA)("m%s=parseInt(d%s,10)",CA,CA)('else if(typeof d%s==="number")',CA)("m%s=d%s",CA,CA)('else if(typeof d%s==="object")',CA)("m%s=new util.LongBits(d%s.low>>>0,d%s.high>>>0).toNumber(%s)",CA,CA,CA,uA?"true":"");break;case"bytes":BA('if(typeof d%s==="string")',CA)("util.base64.decode(d%s,m%s=util.newBuffer(util.base64.length(d%s)),0)",CA,CA,CA)("else if(d%s.length >= 0)",CA)("m%s=d%s",CA,CA);break;case"string":BA("m%s=String(d%s)",CA,CA);break;case"bool":BA("m%s=Boolean(d%s)",CA,CA);break}}return BA}AA.fromObject=function(sA){var QA=sA.fieldsArray,CA=gA.codegen(["d"],sA.name+"$fromObject")("if(d instanceof this.ctor)")("return d");if(!QA.length)return CA("return new this.ctor");CA("var m=new this.ctor");for(var oA=0;oA<QA.length;++oA){var EA=QA[oA].resolve(),nA=gA.safeProp(EA.name);EA.map?(CA("if(d%s){",nA)('if(typeof d%s!=="object")',nA)("throw TypeError(%j)",EA.fullName+": object expected")("m%s={}",nA)("for(var ks=Object.keys(d%s),i=0;i<ks.length;++i){",nA),iA(CA,EA,oA,nA+"[ks[i]]")("}")("}")):EA.repeated?(CA("if(d%s){",nA)("if(!Array.isArray(d%s))",nA)("throw TypeError(%j)",EA.fullName+": array expected")("m%s=[]",nA)("for(var i=0;i<d%s.length;++i){",nA),iA(CA,EA,oA,nA+"[i]")("}")("}")):(EA.resolvedType instanceof tA||CA("if(d%s!=null){",nA),iA(CA,EA,oA,nA),EA.resolvedType instanceof tA||CA("}"))}return CA("return m")};function IA(BA,sA,QA,CA){if(sA.resolvedType)sA.resolvedType instanceof tA?BA("d%s=o.enums===String?(types[%i].values[m%s]===undefined?m%s:types[%i].values[m%s]):m%s",CA,QA,CA,CA,QA,CA,CA):BA("d%s=types[%i].toObject(m%s,o)",CA,QA,CA);else{var oA=!1;switch(sA.type){case"double":case"float":BA("d%s=o.json&&!isFinite(m%s)?String(m%s):m%s",CA,CA,CA,CA);break;case"uint64":oA=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":BA('if(typeof m%s==="number")',CA)("d%s=o.longs===String?String(m%s):m%s",CA,CA,CA)("else")("d%s=o.longs===String?util.Long.prototype.toString.call(m%s):o.longs===Number?new util.LongBits(m%s.low>>>0,m%s.high>>>0).toNumber(%s):m%s",CA,CA,CA,CA,oA?"true":"",CA);break;case"bytes":BA("d%s=o.bytes===String?util.base64.encode(m%s,0,m%s.length):o.bytes===Array?Array.prototype.slice.call(m%s):m%s",CA,CA,CA,CA,CA);break;default:BA("d%s=m%s",CA,CA);break}}return BA}AA.toObject=function(sA){var QA=sA.fieldsArray.slice().sort(gA.compareFieldsById);if(!QA.length)return gA.codegen()("return {}");for(var CA=gA.codegen(["m","o"],sA.name+"$toObject")("if(!o)")("o={}")("var d={}"),oA=[],EA=[],nA=[],cA=0;cA<QA.length;++cA)QA[cA].partOf||(QA[cA].resolve().repeated?oA:QA[cA].map?EA:nA).push(QA[cA]);if(oA.length){for(CA("if(o.arrays||o.defaults){"),cA=0;cA<oA.length;++cA)CA("d%s=[]",gA.safeProp(oA[cA].name));CA("}")}if(EA.length){for(CA("if(o.objects||o.defaults){"),cA=0;cA<EA.length;++cA)CA("d%s={}",gA.safeProp(EA[cA].name));CA("}")}if(nA.length){for(CA("if(o.defaults){"),cA=0;cA<nA.length;++cA){var uA=nA[cA],lA=gA.safeProp(uA.name);if(uA.resolvedType instanceof tA)CA("d%s=o.enums===String?%j:%j",lA,uA.resolvedType.valuesById[uA.typeDefault],uA.typeDefault);else if(uA.long)CA("if(util.Long){")("var n=new util.Long(%i,%i,%j)",uA.typeDefault.low,uA.typeDefault.high,uA.typeDefault.unsigned)("d%s=o.longs===String?n.toString():o.longs===Number?n.toNumber():n",lA)("}else")("d%s=o.longs===String?%j:%i",lA,uA.typeDefault.toString(),uA.typeDefault.toNumber());else if(uA.bytes){var hA="["+Array.prototype.slice.call(uA.typeDefault).join(",")+"]";CA("if(o.bytes===String)d%s=%j",lA,String.fromCharCode.apply(String,uA.typeDefault))("else{")("d%s=%s",lA,hA)("if(o.bytes!==Array)d%s=util.newBuffer(d%s)",lA,lA)("}")}else CA("d%s=%j",lA,uA.typeDefault)}CA("}")}var dA=!1;for(cA=0;cA<QA.length;++cA){var uA=QA[cA],DA=sA._fieldsArray.indexOf(uA),lA=gA.safeProp(uA.name);uA.map?(dA||(dA=!0,CA("var ks2")),CA("if(m%s&&(ks2=Object.keys(m%s)).length){",lA,lA)("d%s={}",lA)("for(var j=0;j<ks2.length;++j){"),IA(CA,uA,DA,lA+"[ks2[j]]")("}")):uA.repeated?(CA("if(m%s&&m%s.length){",lA,lA)("d%s=[]",lA)("for(var j=0;j<m%s.length;++j){",lA),IA(CA,uA,DA,lA+"[j]")("}")):(CA("if(m%s!=null&&m.hasOwnProperty(%j)){",lA,uA.name),IA(CA,uA,DA,lA),uA.partOf&&CA("if(o.oneofs)")("d%s=%j",gA.safeProp(uA.partOf.name),uA.name)),CA("}")}return CA("return d")}}(converter)),converter}var wrappers={};(function(eA){var AA=eA,tA=message;AA[".google.protobuf.Any"]={fromObject:function(gA){if(gA&&gA["@type"]){var iA=gA["@type"].substring(gA["@type"].lastIndexOf("/")+1),IA=this.lookup(iA);if(IA){var BA=gA["@type"].charAt(0)==="."?gA["@type"].slice(1):gA["@type"];return BA.indexOf("/")===-1&&(BA="/"+BA),this.create({type_url:BA,value:IA.encode(IA.fromObject(gA)).finish()})}}return this.fromObject(gA)},toObject:function(gA,iA){var IA="type.googleapis.com/",BA="",sA="";if(iA&&iA.json&&gA.type_url&&gA.value){sA=gA.type_url.substring(gA.type_url.lastIndexOf("/")+1),BA=gA.type_url.substring(0,gA.type_url.lastIndexOf("/")+1);var QA=this.lookup(sA);QA&&(gA=QA.decode(gA.value))}if(!(gA instanceof this.ctor)&&gA instanceof tA){var CA=gA.$type.toObject(gA,iA),oA=gA.$type.fullName[0]==="."?gA.$type.fullName.slice(1):gA.$type.fullName;return BA===""&&(BA=IA),sA=BA+oA,CA["@type"]=sA,CA}return this.toObject(gA,iA)}}})(wrappers);var type,hasRequiredType;function requireType(){if(hasRequiredType)return type;hasRequiredType=1,type=lA;var eA=requireNamespace();((lA.prototype=Object.create(eA.prototype)).constructor=lA).className="Type";var AA=require_enum(),tA=requireOneof(),gA=requireField(),iA=requireMapfield(),IA=requireService(),BA=message,sA=reader,QA=writer,CA=requireUtil(),oA=requireEncoder(),EA=requireDecoder(),nA=requireVerifier(),cA=requireConverter(),uA=wrappers;function lA(dA,DA){eA.call(this,dA,DA),this.fields={},this.oneofs=void 0,this.extensions=void 0,this.reserved=void 0,this.group=void 0,this._fieldsById=null,this._fieldsArray=null,this._oneofsArray=null,this._ctor=null}Object.defineProperties(lA.prototype,{fieldsById:{get:function(){if(this._fieldsById)return this._fieldsById;this._fieldsById={};for(var dA=Object.keys(this.fields),DA=0;DA<dA.length;++DA){var wA=this.fields[dA[DA]],RA=wA.id;if(this._fieldsById[RA])throw Error("duplicate id "+RA+" in "+this);this._fieldsById[RA]=wA}return this._fieldsById}},fieldsArray:{get:function(){return this._fieldsArray||(this._fieldsArray=CA.toArray(this.fields))}},oneofsArray:{get:function(){return this._oneofsArray||(this._oneofsArray=CA.toArray(this.oneofs))}},ctor:{get:function(){return this._ctor||(this.ctor=lA.generateConstructor(this)())},set:function(dA){var DA=dA.prototype;DA instanceof BA||((dA.prototype=new BA).constructor=dA,CA.merge(dA.prototype,DA)),dA.$type=dA.prototype.$type=this,CA.merge(dA,BA,!0),this._ctor=dA;for(var wA=0;wA<this.fieldsArray.length;++wA)this._fieldsArray[wA].resolve();var RA={};for(wA=0;wA<this.oneofsArray.length;++wA)RA[this._oneofsArray[wA].resolve().name]={get:CA.oneOfGetter(this._oneofsArray[wA].oneof),set:CA.oneOfSetter(this._oneofsArray[wA].oneof)};wA&&Object.defineProperties(dA.prototype,RA)}}}),lA.generateConstructor=function(DA){for(var wA=CA.codegen(["p"],DA.name),RA=0,GA;RA<DA.fieldsArray.length;++RA)(GA=DA._fieldsArray[RA]).map?wA("this%s={}",CA.safeProp(GA.name)):GA.repeated&&wA("this%s=[]",CA.safeProp(GA.name));return wA("if(p)for(var ks=Object.keys(p),i=0;i<ks.length;++i)if(p[ks[i]]!=null)")("this[ks[i]]=p[ks[i]]")};function hA(dA){return dA._fieldsById=dA._fieldsArray=dA._oneofsArray=null,delete dA.encode,delete dA.decode,delete dA.verify,dA}return lA.fromJSON=function(DA,wA){var RA=new lA(DA,wA.options);RA.extensions=wA.extensions,RA.reserved=wA.reserved;for(var GA=Object.keys(wA.fields),yA=0;yA<GA.length;++yA)RA.add((typeof wA.fields[GA[yA]].keyType<"u"?iA.fromJSON:gA.fromJSON)(GA[yA],wA.fields[GA[yA]]));if(wA.oneofs)for(GA=Object.keys(wA.oneofs),yA=0;yA<GA.length;++yA)RA.add(tA.fromJSON(GA[yA],wA.oneofs[GA[yA]]));if(wA.nested)for(GA=Object.keys(wA.nested),yA=0;yA<GA.length;++yA){var LA=wA.nested[GA[yA]];RA.add((LA.id!==void 0?gA.fromJSON:LA.fields!==void 0?lA.fromJSON:LA.values!==void 0?AA.fromJSON:LA.methods!==void 0?IA.fromJSON:eA.fromJSON)(GA[yA],LA))}return wA.extensions&&wA.extensions.length&&(RA.extensions=wA.extensions),wA.reserved&&wA.reserved.length&&(RA.reserved=wA.reserved),wA.group&&(RA.group=!0),wA.comment&&(RA.comment=wA.comment),RA},lA.prototype.toJSON=function(DA){var wA=eA.prototype.toJSON.call(this,DA),RA=DA?!!DA.keepComments:!1;return CA.toObject(["options",wA&&wA.options||void 0,"oneofs",eA.arrayToJSON(this.oneofsArray,DA),"fields",eA.arrayToJSON(this.fieldsArray.filter(function(GA){return!GA.declaringField}),DA)||{},"extensions",this.extensions&&this.extensions.length?this.extensions:void 0,"reserved",this.reserved&&this.reserved.length?this.reserved:void 0,"group",this.group||void 0,"nested",wA&&wA.nested||void 0,"comment",RA?this.comment:void 0])},lA.prototype.resolveAll=function(){for(var DA=this.fieldsArray,wA=0;wA<DA.length;)DA[wA++].resolve();var RA=this.oneofsArray;for(wA=0;wA<RA.length;)RA[wA++].resolve();return eA.prototype.resolveAll.call(this)},lA.prototype.get=function(DA){return this.fields[DA]||this.oneofs&&this.oneofs[DA]||this.nested&&this.nested[DA]||null},lA.prototype.add=function(DA){if(this.get(DA.name))throw Error("duplicate name '"+DA.name+"' in "+this);if(DA instanceof gA&&DA.extend===void 0){if(this._fieldsById?this._fieldsById[DA.id]:this.fieldsById[DA.id])throw Error("duplicate id "+DA.id+" in "+this);if(this.isReservedId(DA.id))throw Error("id "+DA.id+" is reserved in "+this);if(this.isReservedName(DA.name))throw Error("name '"+DA.name+"' is reserved in "+this);return DA.parent&&DA.parent.remove(DA),this.fields[DA.name]=DA,DA.message=this,DA.onAdd(this),hA(this)}return DA instanceof tA?(this.oneofs||(this.oneofs={}),this.oneofs[DA.name]=DA,DA.onAdd(this),hA(this)):eA.prototype.add.call(this,DA)},lA.prototype.remove=function(DA){if(DA instanceof gA&&DA.extend===void 0){if(!this.fields||this.fields[DA.name]!==DA)throw Error(DA+" is not a member of "+this);return delete this.fields[DA.name],DA.parent=null,DA.onRemove(this),hA(this)}if(DA instanceof tA){if(!this.oneofs||this.oneofs[DA.name]!==DA)throw Error(DA+" is not a member of "+this);return delete this.oneofs[DA.name],DA.parent=null,DA.onRemove(this),hA(this)}return eA.prototype.remove.call(this,DA)},lA.prototype.isReservedId=function(DA){return eA.isReservedId(this.reserved,DA)},lA.prototype.isReservedName=function(DA){return eA.isReservedName(this.reserved,DA)},lA.prototype.create=function(DA){return new this.ctor(DA)},lA.prototype.setup=function(){for(var DA=this.fullName,wA=[],RA=0;RA<this.fieldsArray.length;++RA)wA.push(this._fieldsArray[RA].resolve().resolvedType);this.encode=oA(this)({Writer:QA,types:wA,util:CA}),this.decode=EA(this)({Reader:sA,types:wA,util:CA}),this.verify=nA(this)({types:wA,util:CA}),this.fromObject=cA.fromObject(this)({types:wA,util:CA}),this.toObject=cA.toObject(this)({types:wA,util:CA});var GA=uA[DA];if(GA){var yA=Object.create(this);yA.fromObject=this.fromObject,this.fromObject=GA.fromObject.bind(yA),yA.toObject=this.toObject,this.toObject=GA.toObject.bind(yA)}return this},lA.prototype.encode=function(DA,wA){return this.setup().encode(DA,wA)},lA.prototype.encodeDelimited=function(DA,wA){return this.encode(DA,wA&&wA.len?wA.fork():wA).ldelim()},lA.prototype.decode=function(DA,wA){return this.setup().decode(DA,wA)},lA.prototype.decodeDelimited=function(DA){return DA instanceof sA||(DA=sA.create(DA)),this.decode(DA,DA.uint32())},lA.prototype.verify=function(DA){return this.setup().verify(DA)},lA.prototype.fromObject=function(DA){return this.setup().fromObject(DA)},lA.prototype.toObject=function(DA,wA){return this.setup().toObject(DA,wA)},lA.d=function(DA){return function(RA){CA.decorateType(RA,DA)}},type}var root,hasRequiredRoot;function requireRoot(){if(hasRequiredRoot)return root;hasRequiredRoot=1,root=QA;var eA=requireNamespace();((QA.prototype=Object.create(eA.prototype)).constructor=QA).className="Root";var AA=requireField(),tA=require_enum(),gA=requireOneof(),iA=requireUtil(),IA,BA,sA;function QA(nA){eA.call(this,"",nA),this.deferred=[],this.files=[]}QA.fromJSON=function(cA,uA){return uA||(uA=new QA),cA.options&&uA.setOptions(cA.options),uA.addJSON(cA.nested)},QA.prototype.resolvePath=iA.path.resolve,QA.prototype.fetch=iA.fetch;function CA(){}QA.prototype.load=function nA(cA,uA,lA){typeof uA=="function"&&(lA=uA,uA=void 0);var hA=this;if(!lA)return iA.asPromise(nA,hA,cA,uA);var dA=lA===CA;function DA(bA,SA){if(lA){if(dA)throw bA;var MA=lA;lA=null,MA(bA,SA)}}function wA(bA){var SA=bA.lastIndexOf("google/protobuf/");if(SA>-1){var MA=bA.substring(SA);if(MA in sA)return MA}return null}function RA(bA,SA){try{if(iA.isString(SA)&&SA.charAt(0)==="{"&&(SA=JSON.parse(SA)),!iA.isString(SA))hA.setOptions(SA.options).addJSON(SA.nested);else{BA.filename=bA;var MA=BA(SA,hA,uA),NA,FA=0;if(MA.imports)for(;FA<MA.imports.length;++FA)(NA=wA(MA.imports[FA])||hA.resolvePath(bA,MA.imports[FA]))&&GA(NA);if(MA.weakImports)for(FA=0;FA<MA.weakImports.length;++FA)(NA=wA(MA.weakImports[FA])||hA.resolvePath(bA,MA.weakImports[FA]))&&GA(NA,!0)}}catch(qA){DA(qA)}!dA&&!yA&&DA(null,hA)}function GA(bA,SA){if(bA=wA(bA)||bA,!(hA.files.indexOf(bA)>-1)){if(hA.files.push(bA),bA in sA){dA?RA(bA,sA[bA]):(++yA,setTimeout(function(){--yA,RA(bA,sA[bA])}));return}if(dA){var MA;try{MA=iA.fs.readFileSync(bA).toString("utf8")}catch(NA){SA||DA(NA);return}RA(bA,MA)}else++yA,hA.fetch(bA,function(NA,FA){if(--yA,!!lA){if(NA){SA?yA||DA(null,hA):DA(NA);return}RA(bA,FA)}})}}var yA=0;iA.isString(cA)&&(cA=[cA]);for(var LA=0,KA;LA<cA.length;++LA)(KA=hA.resolvePath("",cA[LA]))&&GA(KA);if(dA)return hA;yA||DA(null,hA)},QA.prototype.loadSync=function(cA,uA){if(!iA.isNode)throw Error("not supported");return this.load(cA,uA,CA)},QA.prototype.resolveAll=function(){if(this.deferred.length)throw Error("unresolvable extensions: "+this.deferred.map(function(cA){return"'extend "+cA.extend+"' in "+cA.parent.fullName}).join(", "));return eA.prototype.resolveAll.call(this)};var oA=/^[A-Z]/;function EA(nA,cA){var uA=cA.parent.lookup(cA.extend);if(uA){var lA=new AA(cA.fullName,cA.id,cA.type,cA.rule,void 0,cA.options);return uA.get(lA.name)||(lA.declaringField=cA,cA.extensionField=lA,uA.add(lA)),!0}return!1}return QA.prototype._handleAdd=function(cA){if(cA instanceof AA)cA.extend!==void 0&&!cA.extensionField&&(EA(this,cA)||this.deferred.push(cA));else if(cA instanceof tA)oA.test(cA.name)&&(cA.parent[cA.name]=cA.values);else if(!(cA instanceof gA)){if(cA instanceof IA)for(var uA=0;uA<this.deferred.length;)EA(this,this.deferred[uA])?this.deferred.splice(uA,1):++uA;for(var lA=0;lA<cA.nestedArray.length;++lA)this._handleAdd(cA._nestedArray[lA]);oA.test(cA.name)&&(cA.parent[cA.name]=cA)}},QA.prototype._handleRemove=function(cA){if(cA instanceof AA){if(cA.extend!==void 0)if(cA.extensionField)cA.extensionField.parent.remove(cA.extensionField),cA.extensionField=null;else{var uA=this.deferred.indexOf(cA);uA>-1&&this.deferred.splice(uA,1)}}else if(cA instanceof tA)oA.test(cA.name)&&delete cA.parent[cA.name];else if(cA instanceof eA){for(var lA=0;lA<cA.nestedArray.length;++lA)this._handleRemove(cA._nestedArray[lA]);oA.test(cA.name)&&delete cA.parent[cA.name]}},QA._configure=function(nA,cA,uA){IA=nA,BA=cA,sA=uA},root}var hasRequiredUtil;function requireUtil(){if(hasRequiredUtil)return util$1.exports;hasRequiredUtil=1;var eA=util$1.exports=requireMinimal(),AA=roots,tA,gA;eA.codegen=codegen_1,eA.fetch=fetch_1,eA.path=path,eA.fs=eA.inquire("fs"),eA.toArray=function(CA){if(CA){for(var oA=Object.keys(CA),EA=new Array(oA.length),nA=0;nA<oA.length;)EA[nA]=CA[oA[nA++]];return EA}return[]},eA.toObject=function(CA){for(var oA={},EA=0;EA<CA.length;){var nA=CA[EA++],cA=CA[EA++];cA!==void 0&&(oA[nA]=cA)}return oA};var iA=/\\/g,IA=/"/g;eA.isReserved=function(CA){return/^(?:do|if|in|for|let|new|try|var|case|else|enum|eval|false|null|this|true|void|with|break|catch|class|const|super|throw|while|yield|delete|export|import|public|return|static|switch|typeof|default|extends|finally|package|private|continue|debugger|function|arguments|interface|protected|implements|instanceof)$/.test(CA)},eA.safeProp=function(CA){return!/^[$\w_]+$/.test(CA)||eA.isReserved(CA)?'["'+CA.replace(iA,"\\\\").replace(IA,'\\"')+'"]':"."+CA},eA.ucFirst=function(CA){return CA.charAt(0).toUpperCase()+CA.substring(1)};var BA=/_([a-z])/g;eA.camelCase=function(CA){return CA.substring(0,1)+CA.substring(1).replace(BA,function(oA,EA){return EA.toUpperCase()})},eA.compareFieldsById=function(CA,oA){return CA.id-oA.id},eA.decorateType=function(CA,oA){if(CA.$type)return oA&&CA.$type.name!==oA&&(eA.decorateRoot.remove(CA.$type),CA.$type.name=oA,eA.decorateRoot.add(CA.$type)),CA.$type;tA||(tA=requireType());var EA=new tA(oA||CA.name);return eA.decorateRoot.add(EA),EA.ctor=CA,Object.defineProperty(CA,"$type",{value:EA,enumerable:!1}),Object.defineProperty(CA.prototype,"$type",{value:EA,enumerable:!1}),EA};var sA=0;return eA.decorateEnum=function(CA){if(CA.$type)return CA.$type;gA||(gA=require_enum());var oA=new gA("Enum"+sA++,CA);return eA.decorateRoot.add(oA),Object.defineProperty(CA,"$type",{value:oA,enumerable:!1}),oA},eA.setProperty=function(CA,oA,EA){function nA(cA,uA,lA){var hA=uA.shift();if(hA==="__proto__"||hA==="prototype")return cA;if(uA.length>0)cA[hA]=nA(cA[hA]||{},uA,lA);else{var dA=cA[hA];dA&&(lA=[].concat(dA).concat(lA)),cA[hA]=lA}return cA}if(typeof CA!="object")throw TypeError("dst must be an object");if(!oA)throw TypeError("path must be specified");return oA=oA.split("."),nA(CA,oA,EA)},Object.defineProperty(eA,"decorateRoot",{get:function(){return AA.decorated||(AA.decorated=new(requireRoot()))}}),util$1.exports}var object$3,hasRequiredObject;function requireObject(){if(hasRequiredObject)return object$3;hasRequiredObject=1,object$3=tA,tA.className="ReflectionObject";var eA=requireUtil(),AA;function tA(gA,iA){if(!eA.isString(gA))throw TypeError("name must be a string");if(iA&&!eA.isObject(iA))throw TypeError("options must be an object");this.options=iA,this.parsedOptions=null,this.name=gA,this.parent=null,this.resolved=!1,this.comment=null,this.filename=null}return Object.defineProperties(tA.prototype,{root:{get:function(){for(var gA=this;gA.parent!==null;)gA=gA.parent;return gA}},fullName:{get:function(){for(var gA=[this.name],iA=this.parent;iA;)gA.unshift(iA.name),iA=iA.parent;return gA.join(".")}}}),tA.prototype.toJSON=function(){throw Error()},tA.prototype.onAdd=function(iA){this.parent&&this.parent!==iA&&this.parent.remove(this),this.parent=iA,this.resolved=!1;var IA=iA.root;IA instanceof AA&&IA._handleAdd(this)},tA.prototype.onRemove=function(iA){var IA=iA.root;IA instanceof AA&&IA._handleRemove(this),this.parent=null,this.resolved=!1},tA.prototype.resolve=function(){return this.resolved?this:(this.root instanceof AA&&(this.resolved=!0),this)},tA.prototype.getOption=function(iA){if(this.options)return this.options[iA]},tA.prototype.setOption=function(iA,IA,BA){return(!BA||!this.options||this.options[iA]===void 0)&&((this.options||(this.options={}))[iA]=IA),this},tA.prototype.setParsedOption=function(iA,IA,BA){this.parsedOptions||(this.parsedOptions=[]);var sA=this.parsedOptions;if(BA){var QA=sA.find(function(EA){return Object.prototype.hasOwnProperty.call(EA,iA)});if(QA){var CA=QA[iA];eA.setProperty(CA,BA,IA)}else QA={},QA[iA]=eA.setProperty({},BA,IA),sA.push(QA)}else{var oA={};oA[iA]=IA,sA.push(oA)}return this},tA.prototype.setOptions=function(iA,IA){if(iA)for(var BA=Object.keys(iA),sA=0;sA<BA.length;++sA)this.setOption(BA[sA],iA[BA[sA]],IA);return this},tA.prototype.toString=function(){var iA=this.constructor.className,IA=this.fullName;return IA.length?iA+" "+IA:iA},tA._configure=function(gA){AA=gA},object$3}var _enum,hasRequired_enum;function require_enum(){if(hasRequired_enum)return _enum;hasRequired_enum=1,_enum=gA;var eA=requireObject();((gA.prototype=Object.create(eA.prototype)).constructor=gA).className="Enum";var AA=requireNamespace(),tA=requireUtil();function gA(iA,IA,BA,sA,QA,CA){if(eA.call(this,iA,BA),IA&&typeof IA!="object")throw TypeError("values must be an object");if(this.valuesById={},this.values=Object.create(this.valuesById),this.comment=sA,this.comments=QA||{},this.valuesOptions=CA,this.reserved=void 0,IA)for(var oA=Object.keys(IA),EA=0;EA<oA.length;++EA)typeof IA[oA[EA]]=="number"&&(this.valuesById[this.values[oA[EA]]=IA[oA[EA]]]=oA[EA])}return gA.fromJSON=function(IA,BA){var sA=new gA(IA,BA.values,BA.options,BA.comment,BA.comments);return sA.reserved=BA.reserved,sA},gA.prototype.toJSON=function(IA){var BA=IA?!!IA.keepComments:!1;return tA.toObject(["options",this.options,"valuesOptions",this.valuesOptions,"values",this.values,"reserved",this.reserved&&this.reserved.length?this.reserved:void 0,"comment",BA?this.comment:void 0,"comments",BA?this.comments:void 0])},gA.prototype.add=function(IA,BA,sA,QA){if(!tA.isString(IA))throw TypeError("name must be a string");if(!tA.isInteger(BA))throw TypeError("id must be an integer");if(this.values[IA]!==void 0)throw Error("duplicate name '"+IA+"' in "+this);if(this.isReservedId(BA))throw Error("id "+BA+" is reserved in "+this);if(this.isReservedName(IA))throw Error("name '"+IA+"' is reserved in "+this);if(this.valuesById[BA]!==void 0){if(!(this.options&&this.options.allow_alias))throw Error("duplicate id "+BA+" in "+this);this.values[IA]=BA}else this.valuesById[this.values[IA]=BA]=IA;return QA&&(this.valuesOptions===void 0&&(this.valuesOptions={}),this.valuesOptions[IA]=QA||null),this.comments[IA]=sA||null,this},gA.prototype.remove=function(IA){if(!tA.isString(IA))throw TypeError("name must be a string");var BA=this.values[IA];if(BA==null)throw Error("name '"+IA+"' does not exist in "+this);return delete this.valuesById[BA],delete this.values[IA],delete this.comments[IA],this.valuesOptions&&delete this.valuesOptions[IA],this},gA.prototype.isReservedId=function(IA){return AA.isReservedId(this.reserved,IA)},gA.prototype.isReservedName=function(IA){return AA.isReservedName(this.reserved,IA)},_enum}var encoder_1,hasRequiredEncoder;function requireEncoder(){if(hasRequiredEncoder)return encoder_1;hasRequiredEncoder=1,encoder_1=iA;var eA=require_enum(),AA=requireTypes(),tA=requireUtil();function gA(IA,BA,sA,QA){return BA.resolvedType.group?IA("types[%i].encode(%s,w.uint32(%i)).uint32(%i)",sA,QA,(BA.id<<3|3)>>>0,(BA.id<<3|4)>>>0):IA("types[%i].encode(%s,w.uint32(%i).fork()).ldelim()",sA,QA,(BA.id<<3|2)>>>0)}function iA(IA){for(var BA=tA.codegen(["m","w"],IA.name+"$encode")("if(!w)")("w=Writer.create()"),sA,QA,CA=IA.fieldsArray.slice().sort(tA.compareFieldsById),sA=0;sA<CA.length;++sA){var oA=CA[sA].resolve(),EA=IA._fieldsArray.indexOf(oA),nA=oA.resolvedType instanceof eA?"int32":oA.type,cA=AA.basic[nA];QA="m"+tA.safeProp(oA.name),oA.map?(BA("if(%s!=null&&Object.hasOwnProperty.call(m,%j)){",QA,oA.name)("for(var ks=Object.keys(%s),i=0;i<ks.length;++i){",QA)("w.uint32(%i).fork().uint32(%i).%s(ks[i])",(oA.id<<3|2)>>>0,8|AA.mapKey[oA.keyType],oA.keyType),cA===void 0?BA("types[%i].encode(%s[ks[i]],w.uint32(18).fork()).ldelim().ldelim()",EA,QA):BA(".uint32(%i).%s(%s[ks[i]]).ldelim()",16|cA,nA,QA),BA("}")("}")):oA.repeated?(BA("if(%s!=null&&%s.length){",QA,QA),oA.packed&&AA.packed[nA]!==void 0?BA("w.uint32(%i).fork()",(oA.id<<3|2)>>>0)("for(var i=0;i<%s.length;++i)",QA)("w.%s(%s[i])",nA,QA)("w.ldelim()"):(BA("for(var i=0;i<%s.length;++i)",QA),cA===void 0?gA(BA,oA,EA,QA+"[i]"):BA("w.uint32(%i).%s(%s[i])",(oA.id<<3|cA)>>>0,nA,QA)),BA("}")):(oA.optional&&BA("if(%s!=null&&Object.hasOwnProperty.call(m,%j))",QA,oA.name),cA===void 0?gA(BA,oA,EA,QA):BA("w.uint32(%i).%s(%s)",(oA.id<<3|cA)>>>0,nA,QA))}return BA("return w")}return encoder_1}var protobuf=indexLight.exports=indexMinimal;protobuf.build="light";function load$1(eA,AA,tA){return typeof AA=="function"?(tA=AA,AA=new protobuf.Root):AA||(AA=new protobuf.Root),AA.load(eA,tA)}protobuf.load=load$1;function loadSync(eA,AA){return AA||(AA=new protobuf.Root),AA.loadSync(eA)}protobuf.loadSync=loadSync,protobuf.encoder=requireEncoder(),protobuf.decoder=requireDecoder(),protobuf.verifier=requireVerifier(),protobuf.converter=requireConverter(),protobuf.ReflectionObject=requireObject(),protobuf.Namespace=requireNamespace(),protobuf.Root=requireRoot(),protobuf.Enum=require_enum(),protobuf.Type=requireType(),protobuf.Field=requireField(),protobuf.OneOf=requireOneof(),protobuf.MapField=requireMapfield(),protobuf.Service=requireService(),protobuf.Method=requireMethod(),protobuf.Message=message,protobuf.wrappers=wrappers,protobuf.types=requireTypes(),protobuf.util=requireUtil(),protobuf.ReflectionObject._configure(protobuf.Root),protobuf.Namespace._configure(protobuf.Type,protobuf.Service,protobuf.Enum),protobuf.Root._configure(protobuf.Type),protobuf.Field._configure(protobuf.Type);var indexLightExports=indexLight.exports,light=indexLightExports,protobufjs=getDefaultExportFromCjs(light);const proto_data={options:{syntax:"proto3",optimize_for:"LITE_RUNTIME"},nested:{nil:{nested:{xit:{nested:{proto:{nested:{MessageType:{values:{MessageType_FrameRequest:0,MessageType_FrameResponse:1,MessageType_FrameCache:2,MessageType_FrameLoaded:3,MessageType_FrameSubscribe:4,MessageType_FrameUnsubscribe:5,MessageType_ValueRequest:6,MessageType_ValueResponse:7,MessageType_ValueUpdate:8,MessageType_SignalRequest:9,MessageType_SignalResponse:10,MessageType_SignalNotify:11,MessageType_FileRequest:12,MessageType_FileResponse:13}},FrameRequest:{fields:{id:{type:"string",id:1}}},FrameResponse:{oneofs:{value:{oneof:["file","content"]}},fields:{id:{type:"string",id:1},file:{type:"string",id:2},content:{type:"string",id:3}}},FrameCache:{fields:{id:{type:"string",id:1},content:{type:"string",id:2},files:{rule:"repeated",type:"FileInfo",id:3}}},FrameLoaded:{oneofs:{_tag:{oneof:["tag"]}},fields:{id:{type:"string",id:1},tag:{type:"string",id:2,options:{proto3_optional:!0}}}},FrameSubscribe:{oneofs:{_tag:{oneof:["tag"]}},fields:{id:{type:"string",id:1},tag:{type:"string",id:2,options:{proto3_optional:!0}}}},FrameUnsubscribe:{oneofs:{_tag:{oneof:["tag"]}},fields:{id:{type:"string",id:1},tag:{type:"string",id:2,options:{proto3_optional:!0}}}},Value:{oneofs:{value:{oneof:["value_boolean","value_number","value_double","value_string","value_buffer"]}},fields:{id:{type:"string",id:1},value_boolean:{type:"bool",id:2},value_number:{type:"int64",id:3},value_double:{type:"double",id:4},value_string:{type:"string",id:5},value_buffer:{type:"bytes",id:6}}},ValueRequest:{oneofs:{_tag:{oneof:["tag"]}},fields:{id:{type:"string",id:1},tag:{type:"string",id:2,options:{proto3_optional:!0}}}},ValueResponse:{oneofs:{_tag:{oneof:["tag"]}},fields:{id:{type:"string",id:1},tag:{type:"string",id:2,options:{proto3_optional:!0}},values:{rule:"repeated",type:"Value",id:3}}},ValueUpdate:{oneofs:{_tag:{oneof:["tag"]}},fields:{id:{type:"string",id:1},tag:{type:"string",id:2,options:{proto3_optional:!0}},value:{type:"Value",id:3}}},SignalRequest:{fields:{id:{type:"string",id:1}}},Signal:{oneofs:{_type:{oneof:["type"]}},fields:{id:{type:"string",id:1},type:{type:"string",id:2,options:{proto3_optional:!0}}}},SignalResponse:{oneofs:{_tag:{oneof:["tag"]}},fields:{id:{type:"string",id:1},tag:{type:"string",id:2,options:{proto3_optional:!0}},signals:{rule:"repeated",type:"Signal",id:3}}},SignalNotify:{oneofs:{_tag:{oneof:["tag"]},arg:{oneof:["arg_boolean","arg_number","arg_double","arg_string","arg_buffer"]}},fields:{frame_id:{type:"string",id:1},tag:{type:"string",id:2,options:{proto3_optional:!0}},signal_id:{type:"string",id:3},arg_boolean:{type:"bool",id:4},arg_number:{type:"int64",id:5},arg_double:{type:"double",id:6},arg_string:{type:"string",id:7},arg_buffer:{type:"bytes",id:8}}},FileRequest:{fields:{target:{type:"string",id:1}}},FileResponse:{fields:{target:{type:"string",id:1},content:{type:"string",id:2},metadata:{type:"bytes",id:3}}},FileInfo:{fields:{target:{type:"string",id:1},metadata:{type:"bytes",id:2}}}}}}}}}}},nil_xit_proto=protobufjs.Root.fromJSON(proto_data).lookup("nil.xit.proto");var astralIdentifierCodes=[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],astralIdentifierStartCodes=[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],nonASCIIidentifierChars="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・",nonASCIIidentifierStartChars="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟍꟐꟑꟓꟕ-Ƛꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",reservedWords={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"},ecma5AndLessKeywords="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",keywords$1={5:ecma5AndLessKeywords,"5module":ecma5AndLessKeywords+" export import",6:ecma5AndLessKeywords+" const class extends export import super"},keywordRelationalOperator=/^in(stanceof)?$/,nonASCIIidentifierStart=new RegExp("["+nonASCIIidentifierStartChars+"]"),nonASCIIidentifier=new RegExp("["+nonASCIIidentifierStartChars+nonASCIIidentifierChars+"]");function isInAstralSet(eA,AA){for(var tA=65536,gA=0;gA<AA.length;gA+=2){if(tA+=AA[gA],tA>eA)return!1;if(tA+=AA[gA+1],tA>=eA)return!0}return!1}function isIdentifierStart(eA,AA){return eA<65?eA===36:eA<91?!0:eA<97?eA===95:eA<123?!0:eA<=65535?eA>=170&&nonASCIIidentifierStart.test(String.fromCharCode(eA)):AA===!1?!1:isInAstralSet(eA,astralIdentifierStartCodes)}function isIdentifierChar(eA,AA){return eA<48?eA===36:eA<58?!0:eA<65?!1:eA<91?!0:eA<97?eA===95:eA<123?!0:eA<=65535?eA>=170&&nonASCIIidentifier.test(String.fromCharCode(eA)):AA===!1?!1:isInAstralSet(eA,astralIdentifierStartCodes)||isInAstralSet(eA,astralIdentifierCodes)}var TokenType=function eA(AA,tA){tA===void 0&&(tA={}),this.label=AA,this.keyword=tA.keyword,this.beforeExpr=!!tA.beforeExpr,this.startsExpr=!!tA.startsExpr,this.isLoop=!!tA.isLoop,this.isAssign=!!tA.isAssign,this.prefix=!!tA.prefix,this.postfix=!!tA.postfix,this.binop=tA.binop||null,this.updateContext=null};function binop(eA,AA){return new TokenType(eA,{beforeExpr:!0,binop:AA})}var beforeExpr={beforeExpr:!0},startsExpr={startsExpr:!0},keywords={};function kw(eA,AA){return AA===void 0&&(AA={}),AA.keyword=eA,keywords[eA]=new TokenType(eA,AA)}var types$1={num:new TokenType("num",startsExpr),regexp:new TokenType("regexp",startsExpr),string:new TokenType("string",startsExpr),name:new TokenType("name",startsExpr),privateId:new TokenType("privateId",startsExpr),eof:new TokenType("eof"),bracketL:new TokenType("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new TokenType("]"),braceL:new TokenType("{",{beforeExpr:!0,startsExpr:!0}),braceR:new TokenType("}"),parenL:new TokenType("(",{beforeExpr:!0,startsExpr:!0}),parenR:new TokenType(")"),comma:new TokenType(",",beforeExpr),semi:new TokenType(";",beforeExpr),colon:new TokenType(":",beforeExpr),dot:new TokenType("."),question:new TokenType("?",beforeExpr),questionDot:new TokenType("?."),arrow:new TokenType("=>",beforeExpr),template:new TokenType("template"),invalidTemplate:new TokenType("invalidTemplate"),ellipsis:new TokenType("...",beforeExpr),backQuote:new TokenType("`",startsExpr),dollarBraceL:new TokenType("${",{beforeExpr:!0,startsExpr:!0}),eq:new TokenType("=",{beforeExpr:!0,isAssign:!0}),assign:new TokenType("_=",{beforeExpr:!0,isAssign:!0}),incDec:new TokenType("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new TokenType("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:binop("||",1),logicalAND:binop("&&",2),bitwiseOR:binop("|",3),bitwiseXOR:binop("^",4),bitwiseAND:binop("&",5),equality:binop("==/!=/===/!==",6),relational:binop("</>/<=/>=",7),bitShift:binop("<</>>/>>>",8),plusMin:new TokenType("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:binop("%",10),star:binop("*",10),slash:binop("/",10),starstar:new TokenType("**",{beforeExpr:!0}),coalesce:binop("??",1),_break:kw("break"),_case:kw("case",beforeExpr),_catch:kw("catch"),_continue:kw("continue"),_debugger:kw("debugger"),_default:kw("default",beforeExpr),_do:kw("do",{isLoop:!0,beforeExpr:!0}),_else:kw("else",beforeExpr),_finally:kw("finally"),_for:kw("for",{isLoop:!0}),_function:kw("function",startsExpr),_if:kw("if"),_return:kw("return",beforeExpr),_switch:kw("switch"),_throw:kw("throw",beforeExpr),_try:kw("try"),_var:kw("var"),_const:kw("const"),_while:kw("while",{isLoop:!0}),_with:kw("with"),_new:kw("new",{beforeExpr:!0,startsExpr:!0}),_this:kw("this",startsExpr),_super:kw("super",startsExpr),_class:kw("class",startsExpr),_extends:kw("extends",beforeExpr),_export:kw("export"),_import:kw("import",startsExpr),_null:kw("null",startsExpr),_true:kw("true",startsExpr),_false:kw("false",startsExpr),_in:kw("in",{beforeExpr:!0,binop:7}),_instanceof:kw("instanceof",{beforeExpr:!0,binop:7}),_typeof:kw("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:kw("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:kw("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},lineBreak=/\r\n?|\n|\u2028|\u2029/,lineBreakG=new RegExp(lineBreak.source,"g");function isNewLine(eA){return eA===10||eA===13||eA===8232||eA===8233}function nextLineBreak(eA,AA,tA){tA===void 0&&(tA=eA.length);for(var gA=AA;gA<tA;gA++){var iA=eA.charCodeAt(gA);if(isNewLine(iA))return gA<tA-1&&iA===13&&eA.charCodeAt(gA+1)===10?gA+2:gA+1}return-1}var nonASCIIwhitespace=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,skipWhiteSpace=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,ref=Object.prototype,hasOwnProperty=ref.hasOwnProperty,toString$1=ref.toString,hasOwn=Object.hasOwn||function(eA,AA){return hasOwnProperty.call(eA,AA)},isArray=Array.isArray||function(eA){return toString$1.call(eA)==="[object Array]"},regexpCache=Object.create(null);function wordsRegexp(eA){return regexpCache[eA]||(regexpCache[eA]=new RegExp("^(?:"+eA.replace(/ /g,"|")+")$"))}function codePointToString(eA){return eA<=65535?String.fromCharCode(eA):(eA-=65536,String.fromCharCode((eA>>10)+55296,(eA&1023)+56320))}var loneSurrogate=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,Position=function eA(AA,tA){this.line=AA,this.column=tA};Position.prototype.offset=function eA(AA){return new Position(this.line,this.column+AA)};var SourceLocation=function eA(AA,tA,gA){this.start=tA,this.end=gA,AA.sourceFile!==null&&(this.source=AA.sourceFile)};function getLineInfo(eA,AA){for(var tA=1,gA=0;;){var iA=nextLineBreak(eA,gA,AA);if(iA<0)return new Position(tA,AA-gA);++tA,gA=iA}}var defaultOptions={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},warnedAboutEcmaVersion=!1;function getOptions(eA){var AA={};for(var tA in defaultOptions)AA[tA]=eA&&hasOwn(eA,tA)?eA[tA]:defaultOptions[tA];if(AA.ecmaVersion==="latest"?AA.ecmaVersion=1e8:AA.ecmaVersion==null?(!warnedAboutEcmaVersion&&typeof console=="object"&&console.warn&&(warnedAboutEcmaVersion=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
5
5
  Defaulting to 2020, but this will stop working in the future.`)),AA.ecmaVersion=11):AA.ecmaVersion>=2015&&(AA.ecmaVersion-=2009),AA.allowReserved==null&&(AA.allowReserved=AA.ecmaVersion<5),(!eA||eA.allowHashBang==null)&&(AA.allowHashBang=AA.ecmaVersion>=14),isArray(AA.onToken)){var gA=AA.onToken;AA.onToken=function(iA){return gA.push(iA)}}return isArray(AA.onComment)&&(AA.onComment=pushComment(AA,AA.onComment)),AA}function pushComment(eA,AA){return function(tA,gA,iA,IA,BA,sA){var QA={type:tA?"Block":"Line",value:gA,start:iA,end:IA};eA.locations&&(QA.loc=new SourceLocation(this,BA,sA)),eA.ranges&&(QA.range=[iA,IA]),AA.push(QA)}}var SCOPE_TOP=1,SCOPE_FUNCTION=2,SCOPE_ASYNC=4,SCOPE_GENERATOR=8,SCOPE_ARROW=16,SCOPE_SIMPLE_CATCH=32,SCOPE_SUPER=64,SCOPE_DIRECT_SUPER=128,SCOPE_CLASS_STATIC_BLOCK=256,SCOPE_VAR=SCOPE_TOP|SCOPE_FUNCTION|SCOPE_CLASS_STATIC_BLOCK;function functionFlags(eA,AA){return SCOPE_FUNCTION|(eA?SCOPE_ASYNC:0)|(AA?SCOPE_GENERATOR:0)}var BIND_NONE=0,BIND_VAR=1,BIND_LEXICAL=2,BIND_FUNCTION=3,BIND_SIMPLE_CATCH=4,BIND_OUTSIDE=5,Parser$1=function eA(AA,tA,gA){this.options=AA=getOptions(AA),this.sourceFile=AA.sourceFile,this.keywords=wordsRegexp(keywords$1[AA.ecmaVersion>=6?6:AA.sourceType==="module"?"5module":5]);var iA="";AA.allowReserved!==!0&&(iA=reservedWords[AA.ecmaVersion>=6?6:AA.ecmaVersion===5?5:3],AA.sourceType==="module"&&(iA+=" await")),this.reservedWords=wordsRegexp(iA);var IA=(iA?iA+" ":"")+reservedWords.strict;this.reservedWordsStrict=wordsRegexp(IA),this.reservedWordsStrictBind=wordsRegexp(IA+" "+reservedWords.strictBind),this.input=String(tA),this.containsEsc=!1,gA?(this.pos=gA,this.lineStart=this.input.lastIndexOf(`
6
6
  `,gA-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(lineBreak).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=types$1.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=AA.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&&AA.allowHashBang&&this.input.slice(0,2)==="#!"&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(SCOPE_TOP),this.regexpState=null,this.privateNameStack=[]},prototypeAccessors={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}};Parser$1.prototype.parse=function eA(){var AA=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(AA)},prototypeAccessors.inFunction.get=function(){return(this.currentVarScope().flags&SCOPE_FUNCTION)>0},prototypeAccessors.inGenerator.get=function(){return(this.currentVarScope().flags&SCOPE_GENERATOR)>0&&!this.currentVarScope().inClassFieldInit},prototypeAccessors.inAsync.get=function(){return(this.currentVarScope().flags&SCOPE_ASYNC)>0&&!this.currentVarScope().inClassFieldInit},prototypeAccessors.canAwait.get=function(){for(var eA=this.scopeStack.length-1;eA>=0;eA--){var AA=this.scopeStack[eA];if(AA.inClassFieldInit||AA.flags&SCOPE_CLASS_STATIC_BLOCK)return!1;if(AA.flags&SCOPE_FUNCTION)return(AA.flags&SCOPE_ASYNC)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},prototypeAccessors.allowSuper.get=function(){var eA=this.currentThisScope(),AA=eA.flags,tA=eA.inClassFieldInit;return(AA&SCOPE_SUPER)>0||tA||this.options.allowSuperOutsideMethod},prototypeAccessors.allowDirectSuper.get=function(){return(this.currentThisScope().flags&SCOPE_DIRECT_SUPER)>0},prototypeAccessors.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},prototypeAccessors.allowNewDotTarget.get=function(){var eA=this.currentThisScope(),AA=eA.flags,tA=eA.inClassFieldInit;return(AA&(SCOPE_FUNCTION|SCOPE_CLASS_STATIC_BLOCK))>0||tA},prototypeAccessors.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&SCOPE_CLASS_STATIC_BLOCK)>0},Parser$1.extend=function eA(){for(var AA=[],tA=arguments.length;tA--;)AA[tA]=arguments[tA];for(var gA=this,iA=0;iA<AA.length;iA++)gA=AA[iA](gA);return gA},Parser$1.parse=function eA(AA,tA){return new this(tA,AA).parse()},Parser$1.parseExpressionAt=function eA(AA,tA,gA){var iA=new this(gA,AA,tA);return iA.nextToken(),iA.parseExpression()},Parser$1.tokenizer=function eA(AA,tA){return new this(tA,AA)},Object.defineProperties(Parser$1.prototype,prototypeAccessors);var pp$9=Parser$1.prototype,literal$1=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;pp$9.strictDirective=function(eA){if(this.options.ecmaVersion<5)return!1;for(;;){skipWhiteSpace.lastIndex=eA,eA+=skipWhiteSpace.exec(this.input)[0].length;var AA=literal$1.exec(this.input.slice(eA));if(!AA)return!1;if((AA[1]||AA[2])==="use strict"){skipWhiteSpace.lastIndex=eA+AA[0].length;var tA=skipWhiteSpace.exec(this.input),gA=tA.index+tA[0].length,iA=this.input.charAt(gA);return iA===";"||iA==="}"||lineBreak.test(tA[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(iA)||iA==="!"&&this.input.charAt(gA+1)==="=")}eA+=AA[0].length,skipWhiteSpace.lastIndex=eA,eA+=skipWhiteSpace.exec(this.input)[0].length,this.input[eA]===";"&&eA++}},pp$9.eat=function(eA){return this.type===eA?(this.next(),!0):!1},pp$9.isContextual=function(eA){return this.type===types$1.name&&this.value===eA&&!this.containsEsc},pp$9.eatContextual=function(eA){return this.isContextual(eA)?(this.next(),!0):!1},pp$9.expectContextual=function(eA){this.eatContextual(eA)||this.unexpected()},pp$9.canInsertSemicolon=function(){return this.type===types$1.eof||this.type===types$1.braceR||lineBreak.test(this.input.slice(this.lastTokEnd,this.start))},pp$9.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},pp$9.semicolon=function(){!this.eat(types$1.semi)&&!this.insertSemicolon()&&this.unexpected()},pp$9.afterTrailingComma=function(eA,AA){if(this.type===eA)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),AA||this.next(),!0},pp$9.expect=function(eA){this.eat(eA)||this.unexpected()},pp$9.unexpected=function(eA){this.raise(eA??this.start,"Unexpected token")};var DestructuringErrors=function eA(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};pp$9.checkPatternErrors=function(eA,AA){if(eA){eA.trailingComma>-1&&this.raiseRecoverable(eA.trailingComma,"Comma is not permitted after the rest element");var tA=AA?eA.parenthesizedAssign:eA.parenthesizedBind;tA>-1&&this.raiseRecoverable(tA,AA?"Assigning to rvalue":"Parenthesized pattern")}},pp$9.checkExpressionErrors=function(eA,AA){if(!eA)return!1;var tA=eA.shorthandAssign,gA=eA.doubleProto;if(!AA)return tA>=0||gA>=0;tA>=0&&this.raise(tA,"Shorthand property assignments are valid only in destructuring patterns"),gA>=0&&this.raiseRecoverable(gA,"Redefinition of __proto__ property")},pp$9.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")},pp$9.isSimpleAssignTarget=function(eA){return eA.type==="ParenthesizedExpression"?this.isSimpleAssignTarget(eA.expression):eA.type==="Identifier"||eA.type==="MemberExpression"};var pp$8=Parser$1.prototype;pp$8.parseTopLevel=function(eA){var AA=Object.create(null);for(eA.body||(eA.body=[]);this.type!==types$1.eof;){var tA=this.parseStatement(null,!0,AA);eA.body.push(tA)}if(this.inModule)for(var gA=0,iA=Object.keys(this.undefinedExports);gA<iA.length;gA+=1){var IA=iA[gA];this.raiseRecoverable(this.undefinedExports[IA].start,"Export '"+IA+"' is not defined")}return this.adaptDirectivePrologue(eA.body),this.next(),eA.sourceType=this.options.sourceType,this.finishNode(eA,"Program")};var loopLabel={kind:"loop"},switchLabel={kind:"switch"};pp$8.isLet=function(eA){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;skipWhiteSpace.lastIndex=this.pos;var AA=skipWhiteSpace.exec(this.input),tA=this.pos+AA[0].length,gA=this.input.charCodeAt(tA);if(gA===91||gA===92)return!0;if(eA)return!1;if(gA===123||gA>55295&&gA<56320)return!0;if(isIdentifierStart(gA,!0)){for(var iA=tA+1;isIdentifierChar(gA=this.input.charCodeAt(iA),!0);)++iA;if(gA===92||gA>55295&&gA<56320)return!0;var IA=this.input.slice(tA,iA);if(!keywordRelationalOperator.test(IA))return!0}return!1},pp$8.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;skipWhiteSpace.lastIndex=this.pos;var eA=skipWhiteSpace.exec(this.input),AA=this.pos+eA[0].length,tA;return!lineBreak.test(this.input.slice(this.pos,AA))&&this.input.slice(AA,AA+8)==="function"&&(AA+8===this.input.length||!(isIdentifierChar(tA=this.input.charCodeAt(AA+8))||tA>55295&&tA<56320))},pp$8.parseStatement=function(eA,AA,tA){var gA=this.type,iA=this.startNode(),IA;switch(this.isLet(eA)&&(gA=types$1._var,IA="let"),gA){case types$1._break:case types$1._continue:return this.parseBreakContinueStatement(iA,gA.keyword);case types$1._debugger:return this.parseDebuggerStatement(iA);case types$1._do:return this.parseDoStatement(iA);case types$1._for:return this.parseForStatement(iA);case types$1._function:return eA&&(this.strict||eA!=="if"&&eA!=="label")&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(iA,!1,!eA);case types$1._class:return eA&&this.unexpected(),this.parseClass(iA,!0);case types$1._if:return this.parseIfStatement(iA);case types$1._return:return this.parseReturnStatement(iA);case types$1._switch:return this.parseSwitchStatement(iA);case types$1._throw:return this.parseThrowStatement(iA);case types$1._try:return this.parseTryStatement(iA);case types$1._const:case types$1._var:return IA=IA||this.value,eA&&IA!=="var"&&this.unexpected(),this.parseVarStatement(iA,IA);case types$1._while:return this.parseWhileStatement(iA);case types$1._with:return this.parseWithStatement(iA);case types$1.braceL:return this.parseBlock(!0,iA);case types$1.semi:return this.parseEmptyStatement(iA);case types$1._export:case types$1._import:if(this.options.ecmaVersion>10&&gA===types$1._import){skipWhiteSpace.lastIndex=this.pos;var BA=skipWhiteSpace.exec(this.input),sA=this.pos+BA[0].length,QA=this.input.charCodeAt(sA);if(QA===40||QA===46)return this.parseExpressionStatement(iA,this.parseExpression())}return this.options.allowImportExportEverywhere||(AA||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'")),gA===types$1._import?this.parseImport(iA):this.parseExport(iA,tA);default:if(this.isAsyncFunction())return eA&&this.unexpected(),this.next(),this.parseFunctionStatement(iA,!0,!eA);var CA=this.value,oA=this.parseExpression();return gA===types$1.name&&oA.type==="Identifier"&&this.eat(types$1.colon)?this.parseLabeledStatement(iA,CA,oA,eA):this.parseExpressionStatement(iA,oA)}},pp$8.parseBreakContinueStatement=function(eA,AA){var tA=AA==="break";this.next(),this.eat(types$1.semi)||this.insertSemicolon()?eA.label=null:this.type!==types$1.name?this.unexpected():(eA.label=this.parseIdent(),this.semicolon());for(var gA=0;gA<this.labels.length;++gA){var iA=this.labels[gA];if((eA.label==null||iA.name===eA.label.name)&&(iA.kind!=null&&(tA||iA.kind==="loop")||eA.label&&tA))break}return gA===this.labels.length&&this.raise(eA.start,"Unsyntactic "+AA),this.finishNode(eA,tA?"BreakStatement":"ContinueStatement")},pp$8.parseDebuggerStatement=function(eA){return this.next(),this.semicolon(),this.finishNode(eA,"DebuggerStatement")},pp$8.parseDoStatement=function(eA){return this.next(),this.labels.push(loopLabel),eA.body=this.parseStatement("do"),this.labels.pop(),this.expect(types$1._while),eA.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(types$1.semi):this.semicolon(),this.finishNode(eA,"DoWhileStatement")},pp$8.parseForStatement=function(eA){this.next();var AA=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(loopLabel),this.enterScope(0),this.expect(types$1.parenL),this.type===types$1.semi)return AA>-1&&this.unexpected(AA),this.parseFor(eA,null);var tA=this.isLet();if(this.type===types$1._var||this.type===types$1._const||tA){var gA=this.startNode(),iA=tA?"let":this.value;return this.next(),this.parseVar(gA,!0,iA),this.finishNode(gA,"VariableDeclaration"),(this.type===types$1._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&gA.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===types$1._in?AA>-1&&this.unexpected(AA):eA.await=AA>-1),this.parseForIn(eA,gA)):(AA>-1&&this.unexpected(AA),this.parseFor(eA,gA))}var IA=this.isContextual("let"),BA=!1,sA=this.containsEsc,QA=new DestructuringErrors,CA=this.start,oA=AA>-1?this.parseExprSubscripts(QA,"await"):this.parseExpression(!0,QA);return this.type===types$1._in||(BA=this.options.ecmaVersion>=6&&this.isContextual("of"))?(AA>-1?(this.type===types$1._in&&this.unexpected(AA),eA.await=!0):BA&&this.options.ecmaVersion>=8&&(oA.start===CA&&!sA&&oA.type==="Identifier"&&oA.name==="async"?this.unexpected():this.options.ecmaVersion>=9&&(eA.await=!1)),IA&&BA&&this.raise(oA.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(oA,!1,QA),this.checkLValPattern(oA),this.parseForIn(eA,oA)):(this.checkExpressionErrors(QA,!0),AA>-1&&this.unexpected(AA),this.parseFor(eA,oA))},pp$8.parseFunctionStatement=function(eA,AA,tA){return this.next(),this.parseFunction(eA,FUNC_STATEMENT|(tA?0:FUNC_HANGING_STATEMENT),!1,AA)},pp$8.parseIfStatement=function(eA){return this.next(),eA.test=this.parseParenExpression(),eA.consequent=this.parseStatement("if"),eA.alternate=this.eat(types$1._else)?this.parseStatement("if"):null,this.finishNode(eA,"IfStatement")},pp$8.parseReturnStatement=function(eA){return!this.inFunction&&!this.options.allowReturnOutsideFunction&&this.raise(this.start,"'return' outside of function"),this.next(),this.eat(types$1.semi)||this.insertSemicolon()?eA.argument=null:(eA.argument=this.parseExpression(),this.semicolon()),this.finishNode(eA,"ReturnStatement")},pp$8.parseSwitchStatement=function(eA){this.next(),eA.discriminant=this.parseParenExpression(),eA.cases=[],this.expect(types$1.braceL),this.labels.push(switchLabel),this.enterScope(0);for(var AA,tA=!1;this.type!==types$1.braceR;)if(this.type===types$1._case||this.type===types$1._default){var gA=this.type===types$1._case;AA&&this.finishNode(AA,"SwitchCase"),eA.cases.push(AA=this.startNode()),AA.consequent=[],this.next(),gA?AA.test=this.parseExpression():(tA&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),tA=!0,AA.test=null),this.expect(types$1.colon)}else AA||this.unexpected(),AA.consequent.push(this.parseStatement(null));return this.exitScope(),AA&&this.finishNode(AA,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(eA,"SwitchStatement")},pp$8.parseThrowStatement=function(eA){return this.next(),lineBreak.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),eA.argument=this.parseExpression(),this.semicolon(),this.finishNode(eA,"ThrowStatement")};var empty$1=[];pp$8.parseCatchClauseParam=function(){var eA=this.parseBindingAtom(),AA=eA.type==="Identifier";return this.enterScope(AA?SCOPE_SIMPLE_CATCH:0),this.checkLValPattern(eA,AA?BIND_SIMPLE_CATCH:BIND_LEXICAL),this.expect(types$1.parenR),eA},pp$8.parseTryStatement=function(eA){if(this.next(),eA.block=this.parseBlock(),eA.handler=null,this.type===types$1._catch){var AA=this.startNode();this.next(),this.eat(types$1.parenL)?AA.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),AA.param=null,this.enterScope(0)),AA.body=this.parseBlock(!1),this.exitScope(),eA.handler=this.finishNode(AA,"CatchClause")}return eA.finalizer=this.eat(types$1._finally)?this.parseBlock():null,!eA.handler&&!eA.finalizer&&this.raise(eA.start,"Missing catch or finally clause"),this.finishNode(eA,"TryStatement")},pp$8.parseVarStatement=function(eA,AA,tA){return this.next(),this.parseVar(eA,!1,AA,tA),this.semicolon(),this.finishNode(eA,"VariableDeclaration")},pp$8.parseWhileStatement=function(eA){return this.next(),eA.test=this.parseParenExpression(),this.labels.push(loopLabel),eA.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(eA,"WhileStatement")},pp$8.parseWithStatement=function(eA){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),eA.object=this.parseParenExpression(),eA.body=this.parseStatement("with"),this.finishNode(eA,"WithStatement")},pp$8.parseEmptyStatement=function(eA){return this.next(),this.finishNode(eA,"EmptyStatement")},pp$8.parseLabeledStatement=function(eA,AA,tA,gA){for(var iA=0,IA=this.labels;iA<IA.length;iA+=1){var BA=IA[iA];BA.name===AA&&this.raise(tA.start,"Label '"+AA+"' is already declared")}for(var sA=this.type.isLoop?"loop":this.type===types$1._switch?"switch":null,QA=this.labels.length-1;QA>=0;QA--){var CA=this.labels[QA];if(CA.statementStart===eA.start)CA.statementStart=this.start,CA.kind=sA;else break}return this.labels.push({name:AA,kind:sA,statementStart:this.start}),eA.body=this.parseStatement(gA?gA.indexOf("label")===-1?gA+"label":gA:"label"),this.labels.pop(),eA.label=tA,this.finishNode(eA,"LabeledStatement")},pp$8.parseExpressionStatement=function(eA,AA){return eA.expression=AA,this.semicolon(),this.finishNode(eA,"ExpressionStatement")},pp$8.parseBlock=function(eA,AA,tA){for(eA===void 0&&(eA=!0),AA===void 0&&(AA=this.startNode()),AA.body=[],this.expect(types$1.braceL),eA&&this.enterScope(0);this.type!==types$1.braceR;){var gA=this.parseStatement(null);AA.body.push(gA)}return tA&&(this.strict=!1),this.next(),eA&&this.exitScope(),this.finishNode(AA,"BlockStatement")},pp$8.parseFor=function(eA,AA){return eA.init=AA,this.expect(types$1.semi),eA.test=this.type===types$1.semi?null:this.parseExpression(),this.expect(types$1.semi),eA.update=this.type===types$1.parenR?null:this.parseExpression(),this.expect(types$1.parenR),eA.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(eA,"ForStatement")},pp$8.parseForIn=function(eA,AA){var tA=this.type===types$1._in;return this.next(),AA.type==="VariableDeclaration"&&AA.declarations[0].init!=null&&(!tA||this.options.ecmaVersion<8||this.strict||AA.kind!=="var"||AA.declarations[0].id.type!=="Identifier")&&this.raise(AA.start,(tA?"for-in":"for-of")+" loop variable declaration may not have an initializer"),eA.left=AA,eA.right=tA?this.parseExpression():this.parseMaybeAssign(),this.expect(types$1.parenR),eA.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(eA,tA?"ForInStatement":"ForOfStatement")},pp$8.parseVar=function(eA,AA,tA,gA){for(eA.declarations=[],eA.kind=tA;;){var iA=this.startNode();if(this.parseVarId(iA,tA),this.eat(types$1.eq)?iA.init=this.parseMaybeAssign(AA):!gA&&tA==="const"&&!(this.type===types$1._in||this.options.ecmaVersion>=6&&this.isContextual("of"))?this.unexpected():!gA&&iA.id.type!=="Identifier"&&!(AA&&(this.type===types$1._in||this.isContextual("of")))?this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):iA.init=null,eA.declarations.push(this.finishNode(iA,"VariableDeclarator")),!this.eat(types$1.comma))break}return eA},pp$8.parseVarId=function(eA,AA){eA.id=this.parseBindingAtom(),this.checkLValPattern(eA.id,AA==="var"?BIND_VAR:BIND_LEXICAL,!1)};var FUNC_STATEMENT=1,FUNC_HANGING_STATEMENT=2,FUNC_NULLABLE_ID=4;pp$8.parseFunction=function(eA,AA,tA,gA,iA){this.initFunction(eA),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!gA)&&(this.type===types$1.star&&AA&FUNC_HANGING_STATEMENT&&this.unexpected(),eA.generator=this.eat(types$1.star)),this.options.ecmaVersion>=8&&(eA.async=!!gA),AA&FUNC_STATEMENT&&(eA.id=AA&FUNC_NULLABLE_ID&&this.type!==types$1.name?null:this.parseIdent(),eA.id&&!(AA&FUNC_HANGING_STATEMENT)&&this.checkLValSimple(eA.id,this.strict||eA.generator||eA.async?this.treatFunctionsAsVar?BIND_VAR:BIND_LEXICAL:BIND_FUNCTION));var IA=this.yieldPos,BA=this.awaitPos,sA=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(functionFlags(eA.async,eA.generator)),AA&FUNC_STATEMENT||(eA.id=this.type===types$1.name?this.parseIdent():null),this.parseFunctionParams(eA),this.parseFunctionBody(eA,tA,!1,iA),this.yieldPos=IA,this.awaitPos=BA,this.awaitIdentPos=sA,this.finishNode(eA,AA&FUNC_STATEMENT?"FunctionDeclaration":"FunctionExpression")},pp$8.parseFunctionParams=function(eA){this.expect(types$1.parenL),eA.params=this.parseBindingList(types$1.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},pp$8.parseClass=function(eA,AA){this.next();var tA=this.strict;this.strict=!0,this.parseClassId(eA,AA),this.parseClassSuper(eA);var gA=this.enterClassBody(),iA=this.startNode(),IA=!1;for(iA.body=[],this.expect(types$1.braceL);this.type!==types$1.braceR;){var BA=this.parseClassElement(eA.superClass!==null);BA&&(iA.body.push(BA),BA.type==="MethodDefinition"&&BA.kind==="constructor"?(IA&&this.raiseRecoverable(BA.start,"Duplicate constructor in the same class"),IA=!0):BA.key&&BA.key.type==="PrivateIdentifier"&&isPrivateNameConflicted(gA,BA)&&this.raiseRecoverable(BA.key.start,"Identifier '#"+BA.key.name+"' has already been declared"))}return this.strict=tA,this.next(),eA.body=this.finishNode(iA,"ClassBody"),this.exitClassBody(),this.finishNode(eA,AA?"ClassDeclaration":"ClassExpression")},pp$8.parseClassElement=function(eA){if(this.eat(types$1.semi))return null;var AA=this.options.ecmaVersion,tA=this.startNode(),gA="",iA=!1,IA=!1,BA="method",sA=!1;if(this.eatContextual("static")){if(AA>=13&&this.eat(types$1.braceL))return this.parseClassStaticBlock(tA),tA;this.isClassElementNameStart()||this.type===types$1.star?sA=!0:gA="static"}if(tA.static=sA,!gA&&AA>=8&&this.eatContextual("async")&&((this.isClassElementNameStart()||this.type===types$1.star)&&!this.canInsertSemicolon()?IA=!0:gA="async"),!gA&&(AA>=9||!IA)&&this.eat(types$1.star)&&(iA=!0),!gA&&!IA&&!iA){var QA=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?BA=QA:gA=QA)}if(gA?(tA.computed=!1,tA.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),tA.key.name=gA,this.finishNode(tA.key,"Identifier")):this.parseClassElementName(tA),AA<13||this.type===types$1.parenL||BA!=="method"||iA||IA){var CA=!tA.static&&checkKeyName(tA,"constructor"),oA=CA&&eA;CA&&BA!=="method"&&this.raise(tA.key.start,"Constructor can't have get/set modifier"),tA.kind=CA?"constructor":BA,this.parseClassMethod(tA,iA,IA,oA)}else this.parseClassField(tA);return tA},pp$8.isClassElementNameStart=function(){return this.type===types$1.name||this.type===types$1.privateId||this.type===types$1.num||this.type===types$1.string||this.type===types$1.bracketL||this.type.keyword},pp$8.parseClassElementName=function(eA){this.type===types$1.privateId?(this.value==="constructor"&&this.raise(this.start,"Classes can't have an element named '#constructor'"),eA.computed=!1,eA.key=this.parsePrivateIdent()):this.parsePropertyName(eA)},pp$8.parseClassMethod=function(eA,AA,tA,gA){var iA=eA.key;eA.kind==="constructor"?(AA&&this.raise(iA.start,"Constructor can't be a generator"),tA&&this.raise(iA.start,"Constructor can't be an async method")):eA.static&&checkKeyName(eA,"prototype")&&this.raise(iA.start,"Classes may not have a static property named prototype");var IA=eA.value=this.parseMethod(AA,tA,gA);return eA.kind==="get"&&IA.params.length!==0&&this.raiseRecoverable(IA.start,"getter should have no params"),eA.kind==="set"&&IA.params.length!==1&&this.raiseRecoverable(IA.start,"setter should have exactly one param"),eA.kind==="set"&&IA.params[0].type==="RestElement"&&this.raiseRecoverable(IA.params[0].start,"Setter cannot use rest params"),this.finishNode(eA,"MethodDefinition")},pp$8.parseClassField=function(eA){if(checkKeyName(eA,"constructor")?this.raise(eA.key.start,"Classes can't have a field named 'constructor'"):eA.static&&checkKeyName(eA,"prototype")&&this.raise(eA.key.start,"Classes can't have a static field named 'prototype'"),this.eat(types$1.eq)){var AA=this.currentThisScope(),tA=AA.inClassFieldInit;AA.inClassFieldInit=!0,eA.value=this.parseMaybeAssign(),AA.inClassFieldInit=tA}else eA.value=null;return this.semicolon(),this.finishNode(eA,"PropertyDefinition")},pp$8.parseClassStaticBlock=function(eA){eA.body=[];var AA=this.labels;for(this.labels=[],this.enterScope(SCOPE_CLASS_STATIC_BLOCK|SCOPE_SUPER);this.type!==types$1.braceR;){var tA=this.parseStatement(null);eA.body.push(tA)}return this.next(),this.exitScope(),this.labels=AA,this.finishNode(eA,"StaticBlock")},pp$8.parseClassId=function(eA,AA){this.type===types$1.name?(eA.id=this.parseIdent(),AA&&this.checkLValSimple(eA.id,BIND_LEXICAL,!1)):(AA===!0&&this.unexpected(),eA.id=null)},pp$8.parseClassSuper=function(eA){eA.superClass=this.eat(types$1._extends)?this.parseExprSubscripts(null,!1):null},pp$8.enterClassBody=function(){var eA={declared:Object.create(null),used:[]};return this.privateNameStack.push(eA),eA.declared},pp$8.exitClassBody=function(){var eA=this.privateNameStack.pop(),AA=eA.declared,tA=eA.used;if(this.options.checkPrivateFields)for(var gA=this.privateNameStack.length,iA=gA===0?null:this.privateNameStack[gA-1],IA=0;IA<tA.length;++IA){var BA=tA[IA];hasOwn(AA,BA.name)||(iA?iA.used.push(BA):this.raiseRecoverable(BA.start,"Private field '#"+BA.name+"' must be declared in an enclosing class"))}};function isPrivateNameConflicted(eA,AA){var tA=AA.key.name,gA=eA[tA],iA="true";return AA.type==="MethodDefinition"&&(AA.kind==="get"||AA.kind==="set")&&(iA=(AA.static?"s":"i")+AA.kind),gA==="iget"&&iA==="iset"||gA==="iset"&&iA==="iget"||gA==="sget"&&iA==="sset"||gA==="sset"&&iA==="sget"?(eA[tA]="true",!1):gA?!0:(eA[tA]=iA,!1)}function checkKeyName(eA,AA){var tA=eA.computed,gA=eA.key;return!tA&&(gA.type==="Identifier"&&gA.name===AA||gA.type==="Literal"&&gA.value===AA)}pp$8.parseExportAllDeclaration=function(eA,AA){return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(eA.exported=this.parseModuleExportName(),this.checkExport(AA,eA.exported,this.lastTokStart)):eA.exported=null),this.expectContextual("from"),this.type!==types$1.string&&this.unexpected(),eA.source=this.parseExprAtom(),this.semicolon(),this.finishNode(eA,"ExportAllDeclaration")},pp$8.parseExport=function(eA,AA){if(this.next(),this.eat(types$1.star))return this.parseExportAllDeclaration(eA,AA);if(this.eat(types$1._default))return this.checkExport(AA,"default",this.lastTokStart),eA.declaration=this.parseExportDefaultDeclaration(),this.finishNode(eA,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())eA.declaration=this.parseExportDeclaration(eA),eA.declaration.type==="VariableDeclaration"?this.checkVariableExport(AA,eA.declaration.declarations):this.checkExport(AA,eA.declaration.id,eA.declaration.id.start),eA.specifiers=[],eA.source=null;else{if(eA.declaration=null,eA.specifiers=this.parseExportSpecifiers(AA),this.eatContextual("from"))this.type!==types$1.string&&this.unexpected(),eA.source=this.parseExprAtom();else{for(var tA=0,gA=eA.specifiers;tA<gA.length;tA+=1){var iA=gA[tA];this.checkUnreserved(iA.local),this.checkLocalExport(iA.local),iA.local.type==="Literal"&&this.raise(iA.local.start,"A string literal cannot be used as an exported binding without `from`.")}eA.source=null}this.semicolon()}return this.finishNode(eA,"ExportNamedDeclaration")},pp$8.parseExportDeclaration=function(eA){return this.parseStatement(null)},pp$8.parseExportDefaultDeclaration=function(){var eA;if(this.type===types$1._function||(eA=this.isAsyncFunction())){var AA=this.startNode();return this.next(),eA&&this.next(),this.parseFunction(AA,FUNC_STATEMENT|FUNC_NULLABLE_ID,!1,eA)}else if(this.type===types$1._class){var tA=this.startNode();return this.parseClass(tA,"nullableID")}else{var gA=this.parseMaybeAssign();return this.semicolon(),gA}},pp$8.checkExport=function(eA,AA,tA){eA&&(typeof AA!="string"&&(AA=AA.type==="Identifier"?AA.name:AA.value),hasOwn(eA,AA)&&this.raiseRecoverable(tA,"Duplicate export '"+AA+"'"),eA[AA]=!0)},pp$8.checkPatternExport=function(eA,AA){var tA=AA.type;if(tA==="Identifier")this.checkExport(eA,AA,AA.start);else if(tA==="ObjectPattern")for(var gA=0,iA=AA.properties;gA<iA.length;gA+=1){var IA=iA[gA];this.checkPatternExport(eA,IA)}else if(tA==="ArrayPattern")for(var BA=0,sA=AA.elements;BA<sA.length;BA+=1){var QA=sA[BA];QA&&this.checkPatternExport(eA,QA)}else tA==="Property"?this.checkPatternExport(eA,AA.value):tA==="AssignmentPattern"?this.checkPatternExport(eA,AA.left):tA==="RestElement"&&this.checkPatternExport(eA,AA.argument)},pp$8.checkVariableExport=function(eA,AA){if(eA)for(var tA=0,gA=AA;tA<gA.length;tA+=1){var iA=gA[tA];this.checkPatternExport(eA,iA.id)}},pp$8.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()},pp$8.parseExportSpecifier=function(eA){var AA=this.startNode();return AA.local=this.parseModuleExportName(),AA.exported=this.eatContextual("as")?this.parseModuleExportName():AA.local,this.checkExport(eA,AA.exported,AA.exported.start),this.finishNode(AA,"ExportSpecifier")},pp$8.parseExportSpecifiers=function(eA){var AA=[],tA=!0;for(this.expect(types$1.braceL);!this.eat(types$1.braceR);){if(tA)tA=!1;else if(this.expect(types$1.comma),this.afterTrailingComma(types$1.braceR))break;AA.push(this.parseExportSpecifier(eA))}return AA},pp$8.parseImport=function(eA){return this.next(),this.type===types$1.string?(eA.specifiers=empty$1,eA.source=this.parseExprAtom()):(eA.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),eA.source=this.type===types$1.string?this.parseExprAtom():this.unexpected()),this.semicolon(),this.finishNode(eA,"ImportDeclaration")},pp$8.parseImportSpecifier=function(){var eA=this.startNode();return eA.imported=this.parseModuleExportName(),this.eatContextual("as")?eA.local=this.parseIdent():(this.checkUnreserved(eA.imported),eA.local=eA.imported),this.checkLValSimple(eA.local,BIND_LEXICAL),this.finishNode(eA,"ImportSpecifier")},pp$8.parseImportDefaultSpecifier=function(){var eA=this.startNode();return eA.local=this.parseIdent(),this.checkLValSimple(eA.local,BIND_LEXICAL),this.finishNode(eA,"ImportDefaultSpecifier")},pp$8.parseImportNamespaceSpecifier=function(){var eA=this.startNode();return this.next(),this.expectContextual("as"),eA.local=this.parseIdent(),this.checkLValSimple(eA.local,BIND_LEXICAL),this.finishNode(eA,"ImportNamespaceSpecifier")},pp$8.parseImportSpecifiers=function(){var eA=[],AA=!0;if(this.type===types$1.name&&(eA.push(this.parseImportDefaultSpecifier()),!this.eat(types$1.comma)))return eA;if(this.type===types$1.star)return eA.push(this.parseImportNamespaceSpecifier()),eA;for(this.expect(types$1.braceL);!this.eat(types$1.braceR);){if(AA)AA=!1;else if(this.expect(types$1.comma),this.afterTrailingComma(types$1.braceR))break;eA.push(this.parseImportSpecifier())}return eA},pp$8.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===types$1.string){var eA=this.parseLiteral(this.value);return loneSurrogate.test(eA.value)&&this.raise(eA.start,"An export name cannot include a lone surrogate."),eA}return this.parseIdent(!0)},pp$8.adaptDirectivePrologue=function(eA){for(var AA=0;AA<eA.length&&this.isDirectiveCandidate(eA[AA]);++AA)eA[AA].directive=eA[AA].expression.raw.slice(1,-1)},pp$8.isDirectiveCandidate=function(eA){return this.options.ecmaVersion>=5&&eA.type==="ExpressionStatement"&&eA.expression.type==="Literal"&&typeof eA.expression.value=="string"&&(this.input[eA.start]==='"'||this.input[eA.start]==="'")};var pp$7=Parser$1.prototype;pp$7.toAssignable=function(eA,AA,tA){if(this.options.ecmaVersion>=6&&eA)switch(eA.type){case"Identifier":this.inAsync&&eA.name==="await"&&this.raise(eA.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":eA.type="ObjectPattern",tA&&this.checkPatternErrors(tA,!0);for(var gA=0,iA=eA.properties;gA<iA.length;gA+=1){var IA=iA[gA];this.toAssignable(IA,AA),IA.type==="RestElement"&&(IA.argument.type==="ArrayPattern"||IA.argument.type==="ObjectPattern")&&this.raise(IA.argument.start,"Unexpected token")}break;case"Property":eA.kind!=="init"&&this.raise(eA.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(eA.value,AA);break;case"ArrayExpression":eA.type="ArrayPattern",tA&&this.checkPatternErrors(tA,!0),this.toAssignableList(eA.elements,AA);break;case"SpreadElement":eA.type="RestElement",this.toAssignable(eA.argument,AA),eA.argument.type==="AssignmentPattern"&&this.raise(eA.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":eA.operator!=="="&&this.raise(eA.left.end,"Only '=' operator can be used for specifying default value."),eA.type="AssignmentPattern",delete eA.operator,this.toAssignable(eA.left,AA);break;case"ParenthesizedExpression":this.toAssignable(eA.expression,AA,tA);break;case"ChainExpression":this.raiseRecoverable(eA.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!AA)break;default:this.raise(eA.start,"Assigning to rvalue")}else tA&&this.checkPatternErrors(tA,!0);return eA},pp$7.toAssignableList=function(eA,AA){for(var tA=eA.length,gA=0;gA<tA;gA++){var iA=eA[gA];iA&&this.toAssignable(iA,AA)}if(tA){var IA=eA[tA-1];this.options.ecmaVersion===6&&AA&&IA&&IA.type==="RestElement"&&IA.argument.type!=="Identifier"&&this.unexpected(IA.argument.start)}return eA},pp$7.parseSpread=function(eA){var AA=this.startNode();return this.next(),AA.argument=this.parseMaybeAssign(!1,eA),this.finishNode(AA,"SpreadElement")},pp$7.parseRestBinding=function(){var eA=this.startNode();return this.next(),this.options.ecmaVersion===6&&this.type!==types$1.name&&this.unexpected(),eA.argument=this.parseBindingAtom(),this.finishNode(eA,"RestElement")},pp$7.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case types$1.bracketL:var eA=this.startNode();return this.next(),eA.elements=this.parseBindingList(types$1.bracketR,!0,!0),this.finishNode(eA,"ArrayPattern");case types$1.braceL:return this.parseObj(!0)}return this.parseIdent()},pp$7.parseBindingList=function(eA,AA,tA,gA){for(var iA=[],IA=!0;!this.eat(eA);)if(IA?IA=!1:this.expect(types$1.comma),AA&&this.type===types$1.comma)iA.push(null);else{if(tA&&this.afterTrailingComma(eA))break;if(this.type===types$1.ellipsis){var BA=this.parseRestBinding();this.parseBindingListItem(BA),iA.push(BA),this.type===types$1.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.expect(eA);break}else iA.push(this.parseAssignableListItem(gA))}return iA},pp$7.parseAssignableListItem=function(eA){var AA=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(AA),AA},pp$7.parseBindingListItem=function(eA){return eA},pp$7.parseMaybeDefault=function(eA,AA,tA){if(tA=tA||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(types$1.eq))return tA;var gA=this.startNodeAt(eA,AA);return gA.left=tA,gA.right=this.parseMaybeAssign(),this.finishNode(gA,"AssignmentPattern")},pp$7.checkLValSimple=function(eA,AA,tA){AA===void 0&&(AA=BIND_NONE);var gA=AA!==BIND_NONE;switch(eA.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(eA.name)&&this.raiseRecoverable(eA.start,(gA?"Binding ":"Assigning to ")+eA.name+" in strict mode"),gA&&(AA===BIND_LEXICAL&&eA.name==="let"&&this.raiseRecoverable(eA.start,"let is disallowed as a lexically bound name"),tA&&(hasOwn(tA,eA.name)&&this.raiseRecoverable(eA.start,"Argument name clash"),tA[eA.name]=!0),AA!==BIND_OUTSIDE&&this.declareName(eA.name,AA,eA.start));break;case"ChainExpression":this.raiseRecoverable(eA.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":gA&&this.raiseRecoverable(eA.start,"Binding member expression");break;case"ParenthesizedExpression":return gA&&this.raiseRecoverable(eA.start,"Binding parenthesized expression"),this.checkLValSimple(eA.expression,AA,tA);default:this.raise(eA.start,(gA?"Binding":"Assigning to")+" rvalue")}},pp$7.checkLValPattern=function(eA,AA,tA){switch(AA===void 0&&(AA=BIND_NONE),eA.type){case"ObjectPattern":for(var gA=0,iA=eA.properties;gA<iA.length;gA+=1){var IA=iA[gA];this.checkLValInnerPattern(IA,AA,tA)}break;case"ArrayPattern":for(var BA=0,sA=eA.elements;BA<sA.length;BA+=1){var QA=sA[BA];QA&&this.checkLValInnerPattern(QA,AA,tA)}break;default:this.checkLValSimple(eA,AA,tA)}},pp$7.checkLValInnerPattern=function(eA,AA,tA){switch(AA===void 0&&(AA=BIND_NONE),eA.type){case"Property":this.checkLValInnerPattern(eA.value,AA,tA);break;case"AssignmentPattern":this.checkLValPattern(eA.left,AA,tA);break;case"RestElement":this.checkLValPattern(eA.argument,AA,tA);break;default:this.checkLValPattern(eA,AA,tA)}};var TokContext=function eA(AA,tA,gA,iA,IA){this.token=AA,this.isExpr=!!tA,this.preserveSpace=!!gA,this.override=iA,this.generator=!!IA},types={b_stat:new TokContext("{",!1),b_expr:new TokContext("{",!0),b_tmpl:new TokContext("${",!1),p_stat:new TokContext("(",!1),p_expr:new TokContext("(",!0),q_tmpl:new TokContext("`",!0,!0,function(eA){return eA.tryReadTemplateToken()}),f_stat:new TokContext("function",!1),f_expr:new TokContext("function",!0),f_expr_gen:new TokContext("function",!0,!1,null,!0),f_gen:new TokContext("function",!1,!1,null,!0)},pp$6=Parser$1.prototype;pp$6.initialContext=function(){return[types.b_stat]},pp$6.curContext=function(){return this.context[this.context.length-1]},pp$6.braceIsBlock=function(eA){var AA=this.curContext();return AA===types.f_expr||AA===types.f_stat?!0:eA===types$1.colon&&(AA===types.b_stat||AA===types.b_expr)?!AA.isExpr:eA===types$1._return||eA===types$1.name&&this.exprAllowed?lineBreak.test(this.input.slice(this.lastTokEnd,this.start)):eA===types$1._else||eA===types$1.semi||eA===types$1.eof||eA===types$1.parenR||eA===types$1.arrow?!0:eA===types$1.braceL?AA===types.b_stat:eA===types$1._var||eA===types$1._const||eA===types$1.name?!1:!this.exprAllowed},pp$6.inGeneratorContext=function(){for(var eA=this.context.length-1;eA>=1;eA--){var AA=this.context[eA];if(AA.token==="function")return AA.generator}return!1},pp$6.updateContext=function(eA){var AA,tA=this.type;tA.keyword&&eA===types$1.dot?this.exprAllowed=!1:(AA=tA.updateContext)?AA.call(this,eA):this.exprAllowed=tA.beforeExpr},pp$6.overrideContext=function(eA){this.curContext()!==eA&&(this.context[this.context.length-1]=eA)},types$1.parenR.updateContext=types$1.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=!0;return}var eA=this.context.pop();eA===types.b_stat&&this.curContext().token==="function"&&(eA=this.context.pop()),this.exprAllowed=!eA.isExpr},types$1.braceL.updateContext=function(eA){this.context.push(this.braceIsBlock(eA)?types.b_stat:types.b_expr),this.exprAllowed=!0},types$1.dollarBraceL.updateContext=function(){this.context.push(types.b_tmpl),this.exprAllowed=!0},types$1.parenL.updateContext=function(eA){var AA=eA===types$1._if||eA===types$1._for||eA===types$1._with||eA===types$1._while;this.context.push(AA?types.p_stat:types.p_expr),this.exprAllowed=!0},types$1.incDec.updateContext=function(){},types$1._function.updateContext=types$1._class.updateContext=function(eA){eA.beforeExpr&&eA!==types$1._else&&!(eA===types$1.semi&&this.curContext()!==types.p_stat)&&!(eA===types$1._return&&lineBreak.test(this.input.slice(this.lastTokEnd,this.start)))&&!((eA===types$1.colon||eA===types$1.braceL)&&this.curContext()===types.b_stat)?this.context.push(types.f_expr):this.context.push(types.f_stat),this.exprAllowed=!1},types$1.colon.updateContext=function(){this.curContext().token==="function"&&this.context.pop(),this.exprAllowed=!0},types$1.backQuote.updateContext=function(){this.curContext()===types.q_tmpl?this.context.pop():this.context.push(types.q_tmpl),this.exprAllowed=!1},types$1.star.updateContext=function(eA){if(eA===types$1._function){var AA=this.context.length-1;this.context[AA]===types.f_expr?this.context[AA]=types.f_expr_gen:this.context[AA]=types.f_gen}this.exprAllowed=!0},types$1.name.updateContext=function(eA){var AA=!1;this.options.ecmaVersion>=6&&eA!==types$1.dot&&(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())&&(AA=!0),this.exprAllowed=AA};var pp$5=Parser$1.prototype;pp$5.checkPropClash=function(eA,AA,tA){if(!(this.options.ecmaVersion>=9&&eA.type==="SpreadElement")&&!(this.options.ecmaVersion>=6&&(eA.computed||eA.method||eA.shorthand))){var gA=eA.key,iA;switch(gA.type){case"Identifier":iA=gA.name;break;case"Literal":iA=String(gA.value);break;default:return}var IA=eA.kind;if(this.options.ecmaVersion>=6){iA==="__proto__"&&IA==="init"&&(AA.proto&&(tA?tA.doubleProto<0&&(tA.doubleProto=gA.start):this.raiseRecoverable(gA.start,"Redefinition of __proto__ property")),AA.proto=!0);return}iA="$"+iA;var BA=AA[iA];if(BA){var sA;IA==="init"?sA=this.strict&&BA.init||BA.get||BA.set:sA=BA.init||BA[IA],sA&&this.raiseRecoverable(gA.start,"Redefinition of property")}else BA=AA[iA]={init:!1,get:!1,set:!1};BA[IA]=!0}},pp$5.parseExpression=function(eA,AA){var tA=this.start,gA=this.startLoc,iA=this.parseMaybeAssign(eA,AA);if(this.type===types$1.comma){var IA=this.startNodeAt(tA,gA);for(IA.expressions=[iA];this.eat(types$1.comma);)IA.expressions.push(this.parseMaybeAssign(eA,AA));return this.finishNode(IA,"SequenceExpression")}return iA},pp$5.parseMaybeAssign=function(eA,AA,tA){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(eA);this.exprAllowed=!1}var gA=!1,iA=-1,IA=-1,BA=-1;AA?(iA=AA.parenthesizedAssign,IA=AA.trailingComma,BA=AA.doubleProto,AA.parenthesizedAssign=AA.trailingComma=-1):(AA=new DestructuringErrors,gA=!0);var sA=this.start,QA=this.startLoc;(this.type===types$1.parenL||this.type===types$1.name)&&(this.potentialArrowAt=this.start,this.potentialArrowInForAwait=eA==="await");var CA=this.parseMaybeConditional(eA,AA);if(tA&&(CA=tA.call(this,CA,sA,QA)),this.type.isAssign){var oA=this.startNodeAt(sA,QA);return oA.operator=this.value,this.type===types$1.eq&&(CA=this.toAssignable(CA,!1,AA)),gA||(AA.parenthesizedAssign=AA.trailingComma=AA.doubleProto=-1),AA.shorthandAssign>=CA.start&&(AA.shorthandAssign=-1),this.type===types$1.eq?this.checkLValPattern(CA):this.checkLValSimple(CA),oA.left=CA,this.next(),oA.right=this.parseMaybeAssign(eA),BA>-1&&(AA.doubleProto=BA),this.finishNode(oA,"AssignmentExpression")}else gA&&this.checkExpressionErrors(AA,!0);return iA>-1&&(AA.parenthesizedAssign=iA),IA>-1&&(AA.trailingComma=IA),CA},pp$5.parseMaybeConditional=function(eA,AA){var tA=this.start,gA=this.startLoc,iA=this.parseExprOps(eA,AA);if(this.checkExpressionErrors(AA))return iA;if(this.eat(types$1.question)){var IA=this.startNodeAt(tA,gA);return IA.test=iA,IA.consequent=this.parseMaybeAssign(),this.expect(types$1.colon),IA.alternate=this.parseMaybeAssign(eA),this.finishNode(IA,"ConditionalExpression")}return iA},pp$5.parseExprOps=function(eA,AA){var tA=this.start,gA=this.startLoc,iA=this.parseMaybeUnary(AA,!1,!1,eA);return this.checkExpressionErrors(AA)||iA.start===tA&&iA.type==="ArrowFunctionExpression"?iA:this.parseExprOp(iA,tA,gA,-1,eA)},pp$5.parseExprOp=function(eA,AA,tA,gA,iA){var IA=this.type.binop;if(IA!=null&&(!iA||this.type!==types$1._in)&&IA>gA){var BA=this.type===types$1.logicalOR||this.type===types$1.logicalAND,sA=this.type===types$1.coalesce;sA&&(IA=types$1.logicalAND.binop);var QA=this.value;this.next();var CA=this.start,oA=this.startLoc,EA=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,iA),CA,oA,IA,iA),nA=this.buildBinary(AA,tA,eA,EA,QA,BA||sA);return(BA&&this.type===types$1.coalesce||sA&&(this.type===types$1.logicalOR||this.type===types$1.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(nA,AA,tA,gA,iA)}return eA},pp$5.buildBinary=function(eA,AA,tA,gA,iA,IA){gA.type==="PrivateIdentifier"&&this.raise(gA.start,"Private identifier can only be left side of binary expression");var BA=this.startNodeAt(eA,AA);return BA.left=tA,BA.operator=iA,BA.right=gA,this.finishNode(BA,IA?"LogicalExpression":"BinaryExpression")},pp$5.parseMaybeUnary=function(eA,AA,tA,gA){var iA=this.start,IA=this.startLoc,BA;if(this.isContextual("await")&&this.canAwait)BA=this.parseAwait(gA),AA=!0;else if(this.type.prefix){var sA=this.startNode(),QA=this.type===types$1.incDec;sA.operator=this.value,sA.prefix=!0,this.next(),sA.argument=this.parseMaybeUnary(null,!0,QA,gA),this.checkExpressionErrors(eA,!0),QA?this.checkLValSimple(sA.argument):this.strict&&sA.operator==="delete"&&isLocalVariableAccess(sA.argument)?this.raiseRecoverable(sA.start,"Deleting local variable in strict mode"):sA.operator==="delete"&&isPrivateFieldAccess(sA.argument)?this.raiseRecoverable(sA.start,"Private fields can not be deleted"):AA=!0,BA=this.finishNode(sA,QA?"UpdateExpression":"UnaryExpression")}else if(!AA&&this.type===types$1.privateId)(gA||this.privateNameStack.length===0)&&this.options.checkPrivateFields&&this.unexpected(),BA=this.parsePrivateIdent(),this.type!==types$1._in&&this.unexpected();else{if(BA=this.parseExprSubscripts(eA,gA),this.checkExpressionErrors(eA))return BA;for(;this.type.postfix&&!this.canInsertSemicolon();){var CA=this.startNodeAt(iA,IA);CA.operator=this.value,CA.prefix=!1,CA.argument=BA,this.checkLValSimple(BA),this.next(),BA=this.finishNode(CA,"UpdateExpression")}}if(!tA&&this.eat(types$1.starstar))if(AA)this.unexpected(this.lastTokStart);else return this.buildBinary(iA,IA,BA,this.parseMaybeUnary(null,!1,!1,gA),"**",!1);else return BA};function isLocalVariableAccess(eA){return eA.type==="Identifier"||eA.type==="ParenthesizedExpression"&&isLocalVariableAccess(eA.expression)}function isPrivateFieldAccess(eA){return eA.type==="MemberExpression"&&eA.property.type==="PrivateIdentifier"||eA.type==="ChainExpression"&&isPrivateFieldAccess(eA.expression)||eA.type==="ParenthesizedExpression"&&isPrivateFieldAccess(eA.expression)}pp$5.parseExprSubscripts=function(eA,AA){var tA=this.start,gA=this.startLoc,iA=this.parseExprAtom(eA,AA);if(iA.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return iA;var IA=this.parseSubscripts(iA,tA,gA,!1,AA);return eA&&IA.type==="MemberExpression"&&(eA.parenthesizedAssign>=IA.start&&(eA.parenthesizedAssign=-1),eA.parenthesizedBind>=IA.start&&(eA.parenthesizedBind=-1),eA.trailingComma>=IA.start&&(eA.trailingComma=-1)),IA},pp$5.parseSubscripts=function(eA,AA,tA,gA,iA){for(var IA=this.options.ecmaVersion>=8&&eA.type==="Identifier"&&eA.name==="async"&&this.lastTokEnd===eA.end&&!this.canInsertSemicolon()&&eA.end-eA.start===5&&this.potentialArrowAt===eA.start,BA=!1;;){var sA=this.parseSubscript(eA,AA,tA,gA,IA,BA,iA);if(sA.optional&&(BA=!0),sA===eA||sA.type==="ArrowFunctionExpression"){if(BA){var QA=this.startNodeAt(AA,tA);QA.expression=sA,sA=this.finishNode(QA,"ChainExpression")}return sA}eA=sA}},pp$5.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(types$1.arrow)},pp$5.parseSubscriptAsyncArrow=function(eA,AA,tA,gA){return this.parseArrowExpression(this.startNodeAt(eA,AA),tA,!0,gA)},pp$5.parseSubscript=function(eA,AA,tA,gA,iA,IA,BA){var sA=this.options.ecmaVersion>=11,QA=sA&&this.eat(types$1.questionDot);gA&&QA&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var CA=this.eat(types$1.bracketL);if(CA||QA&&this.type!==types$1.parenL&&this.type!==types$1.backQuote||this.eat(types$1.dot)){var oA=this.startNodeAt(AA,tA);oA.object=eA,CA?(oA.property=this.parseExpression(),this.expect(types$1.bracketR)):this.type===types$1.privateId&&eA.type!=="Super"?oA.property=this.parsePrivateIdent():oA.property=this.parseIdent(this.options.allowReserved!=="never"),oA.computed=!!CA,sA&&(oA.optional=QA),eA=this.finishNode(oA,"MemberExpression")}else if(!gA&&this.eat(types$1.parenL)){var EA=new DestructuringErrors,nA=this.yieldPos,cA=this.awaitPos,uA=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var lA=this.parseExprList(types$1.parenR,this.options.ecmaVersion>=8,!1,EA);if(iA&&!QA&&this.shouldParseAsyncArrow())return this.checkPatternErrors(EA,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=nA,this.awaitPos=cA,this.awaitIdentPos=uA,this.parseSubscriptAsyncArrow(AA,tA,lA,BA);this.checkExpressionErrors(EA,!0),this.yieldPos=nA||this.yieldPos,this.awaitPos=cA||this.awaitPos,this.awaitIdentPos=uA||this.awaitIdentPos;var hA=this.startNodeAt(AA,tA);hA.callee=eA,hA.arguments=lA,sA&&(hA.optional=QA),eA=this.finishNode(hA,"CallExpression")}else if(this.type===types$1.backQuote){(QA||IA)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var dA=this.startNodeAt(AA,tA);dA.tag=eA,dA.quasi=this.parseTemplate({isTagged:!0}),eA=this.finishNode(dA,"TaggedTemplateExpression")}return eA},pp$5.parseExprAtom=function(eA,AA,tA){this.type===types$1.slash&&this.readRegexp();var gA,iA=this.potentialArrowAt===this.start;switch(this.type){case types$1._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),gA=this.startNode(),this.next(),this.type===types$1.parenL&&!this.allowDirectSuper&&this.raise(gA.start,"super() call outside constructor of a subclass"),this.type!==types$1.dot&&this.type!==types$1.bracketL&&this.type!==types$1.parenL&&this.unexpected(),this.finishNode(gA,"Super");case types$1._this:return gA=this.startNode(),this.next(),this.finishNode(gA,"ThisExpression");case types$1.name:var IA=this.start,BA=this.startLoc,sA=this.containsEsc,QA=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!sA&&QA.name==="async"&&!this.canInsertSemicolon()&&this.eat(types$1._function))return this.overrideContext(types.f_expr),this.parseFunction(this.startNodeAt(IA,BA),0,!1,!0,AA);if(iA&&!this.canInsertSemicolon()){if(this.eat(types$1.arrow))return this.parseArrowExpression(this.startNodeAt(IA,BA),[QA],!1,AA);if(this.options.ecmaVersion>=8&&QA.name==="async"&&this.type===types$1.name&&!sA&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc))return QA=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(types$1.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(IA,BA),[QA],!0,AA)}return QA;case types$1.regexp:var CA=this.value;return gA=this.parseLiteral(CA.value),gA.regex={pattern:CA.pattern,flags:CA.flags},gA;case types$1.num:case types$1.string:return this.parseLiteral(this.value);case types$1._null:case types$1._true:case types$1._false:return gA=this.startNode(),gA.value=this.type===types$1._null?null:this.type===types$1._true,gA.raw=this.type.keyword,this.next(),this.finishNode(gA,"Literal");case types$1.parenL:var oA=this.start,EA=this.parseParenAndDistinguishExpression(iA,AA);return eA&&(eA.parenthesizedAssign<0&&!this.isSimpleAssignTarget(EA)&&(eA.parenthesizedAssign=oA),eA.parenthesizedBind<0&&(eA.parenthesizedBind=oA)),EA;case types$1.bracketL:return gA=this.startNode(),this.next(),gA.elements=this.parseExprList(types$1.bracketR,!0,!0,eA),this.finishNode(gA,"ArrayExpression");case types$1.braceL:return this.overrideContext(types.b_expr),this.parseObj(!1,eA);case types$1._function:return gA=this.startNode(),this.next(),this.parseFunction(gA,0);case types$1._class:return this.parseClass(this.startNode(),!1);case types$1._new:return this.parseNew();case types$1.backQuote:return this.parseTemplate();case types$1._import:return this.options.ecmaVersion>=11?this.parseExprImport(tA):this.unexpected();default:return this.parseExprAtomDefault()}},pp$5.parseExprAtomDefault=function(){this.unexpected()},pp$5.parseExprImport=function(eA){var AA=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===types$1.parenL&&!eA)return this.parseDynamicImport(AA);if(this.type===types$1.dot){var tA=this.startNodeAt(AA.start,AA.loc&&AA.loc.start);return tA.name="import",AA.meta=this.finishNode(tA,"Identifier"),this.parseImportMeta(AA)}else this.unexpected()},pp$5.parseDynamicImport=function(eA){if(this.next(),eA.source=this.parseMaybeAssign(),!this.eat(types$1.parenR)){var AA=this.start;this.eat(types$1.comma)&&this.eat(types$1.parenR)?this.raiseRecoverable(AA,"Trailing comma is not allowed in import()"):this.unexpected(AA)}return this.finishNode(eA,"ImportExpression")},pp$5.parseImportMeta=function(eA){this.next();var AA=this.containsEsc;return eA.property=this.parseIdent(!0),eA.property.name!=="meta"&&this.raiseRecoverable(eA.property.start,"The only valid meta property for import is 'import.meta'"),AA&&this.raiseRecoverable(eA.start,"'import.meta' must not contain escaped characters"),this.options.sourceType!=="module"&&!this.options.allowImportExportEverywhere&&this.raiseRecoverable(eA.start,"Cannot use 'import.meta' outside a module"),this.finishNode(eA,"MetaProperty")},pp$5.parseLiteral=function(eA){var AA=this.startNode();return AA.value=eA,AA.raw=this.input.slice(this.start,this.end),AA.raw.charCodeAt(AA.raw.length-1)===110&&(AA.bigint=AA.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(AA,"Literal")},pp$5.parseParenExpression=function(){this.expect(types$1.parenL);var eA=this.parseExpression();return this.expect(types$1.parenR),eA},pp$5.shouldParseArrow=function(eA){return!this.canInsertSemicolon()},pp$5.parseParenAndDistinguishExpression=function(eA,AA){var tA=this.start,gA=this.startLoc,iA,IA=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var BA=this.start,sA=this.startLoc,QA=[],CA=!0,oA=!1,EA=new DestructuringErrors,nA=this.yieldPos,cA=this.awaitPos,uA;for(this.yieldPos=0,this.awaitPos=0;this.type!==types$1.parenR;)if(CA?CA=!1:this.expect(types$1.comma),IA&&this.afterTrailingComma(types$1.parenR,!0)){oA=!0;break}else if(this.type===types$1.ellipsis){uA=this.start,QA.push(this.parseParenItem(this.parseRestBinding())),this.type===types$1.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}else QA.push(this.parseMaybeAssign(!1,EA,this.parseParenItem));var lA=this.lastTokEnd,hA=this.lastTokEndLoc;if(this.expect(types$1.parenR),eA&&this.shouldParseArrow(QA)&&this.eat(types$1.arrow))return this.checkPatternErrors(EA,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=nA,this.awaitPos=cA,this.parseParenArrowList(tA,gA,QA,AA);(!QA.length||oA)&&this.unexpected(this.lastTokStart),uA&&this.unexpected(uA),this.checkExpressionErrors(EA,!0),this.yieldPos=nA||this.yieldPos,this.awaitPos=cA||this.awaitPos,QA.length>1?(iA=this.startNodeAt(BA,sA),iA.expressions=QA,this.finishNodeAt(iA,"SequenceExpression",lA,hA)):iA=QA[0]}else iA=this.parseParenExpression();if(this.options.preserveParens){var dA=this.startNodeAt(tA,gA);return dA.expression=iA,this.finishNode(dA,"ParenthesizedExpression")}else return iA},pp$5.parseParenItem=function(eA){return eA},pp$5.parseParenArrowList=function(eA,AA,tA,gA){return this.parseArrowExpression(this.startNodeAt(eA,AA),tA,!1,gA)};var empty$2=[];pp$5.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var eA=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===types$1.dot){var AA=this.startNodeAt(eA.start,eA.loc&&eA.loc.start);AA.name="new",eA.meta=this.finishNode(AA,"Identifier"),this.next();var tA=this.containsEsc;return eA.property=this.parseIdent(!0),eA.property.name!=="target"&&this.raiseRecoverable(eA.property.start,"The only valid meta property for new is 'new.target'"),tA&&this.raiseRecoverable(eA.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(eA.start,"'new.target' can only be used in functions and class static block"),this.finishNode(eA,"MetaProperty")}var gA=this.start,iA=this.startLoc;return eA.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),gA,iA,!0,!1),this.eat(types$1.parenL)?eA.arguments=this.parseExprList(types$1.parenR,this.options.ecmaVersion>=8,!1):eA.arguments=empty$2,this.finishNode(eA,"NewExpression")},pp$5.parseTemplateElement=function(eA){var AA=eA.isTagged,tA=this.startNode();return this.type===types$1.invalidTemplate?(AA||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),tA.value={raw:this.value.replace(/\r\n?/g,`
7
7
  `),cooked:null}):tA.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
package/assets/index.js CHANGED
@@ -2,58 +2,58 @@ var P = (i) => {
2
2
  throw TypeError(i);
3
3
  };
4
4
  var C = (i, e, n) => e.has(i) || P("Cannot " + n);
5
- var w = (i, e, n) => (C(i, e, "read from private field"), n ? n.call(i) : e.get(i)), F = (i, e, n) => e.has(i) ? P("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(i) : e.set(i, n), S = (i, e, n, a) => (C(i, e, "write to private field"), a ? a.call(i, n) : e.set(i, n), n), W = (i, e, n) => (C(i, e, "access private method"), n);
5
+ var w = (i, e, n) => (C(i, e, "read from private field"), n ? n.call(i) : e.get(i)), F = (i, e, n) => e.has(i) ? P("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(i) : e.set(i, n), $ = (i, e, n, a) => (C(i, e, "write to private field"), a ? a.call(i, n) : e.set(i, n), n), W = (i, e, n) => (C(i, e, "access private method"), n);
6
6
  import { w as writable, g as get } from "./svelte/store.js";
7
- var j, I, E, M, D, L, N, $, U;
7
+ var j, I, x, M, D, L, N, S, U;
8
8
  let Service$1 = (U = class {
9
9
  constructor({ host: e, port: n }) {
10
10
  F(this, j);
11
- F(this, E);
11
+ F(this, x);
12
12
  // 0 idle, 1 has connected, 2 keep reconnecting, 3 stopped
13
13
  F(this, M);
14
14
  F(this, D);
15
15
  F(this, L);
16
16
  F(this, N);
17
- F(this, $);
18
- S(this, N, `${e ?? "localhost"}${n != null ? `:${n}` : ""}`), S(this, E, 0), S(this, M, null), S(this, D, null), S(this, L, null), S(this, $, null);
17
+ F(this, S);
18
+ $(this, N, `${e ?? "localhost"}${n != null ? `:${n}` : ""}`), $(this, x, 0), $(this, M, null), $(this, D, null), $(this, L, null), $(this, S, null);
19
19
  }
20
20
  on_message(e) {
21
- S(this, L, e);
21
+ $(this, L, e);
22
22
  }
23
23
  on_connect(e) {
24
- S(this, M, e);
24
+ $(this, M, e);
25
25
  }
26
26
  on_disconnect(e) {
27
- S(this, D, e);
27
+ $(this, D, e);
28
28
  }
29
29
  // non-blocking (run is blocking in c++)
30
30
  // calling it again should not do anything
31
31
  start() {
32
- w(this, $) == null && w(this, E) !== 1 && w(this, E) !== 3 && (S(this, $, new WebSocket(`ws://${w(this, N)}`)), w(this, $).binaryType = "arraybuffer", w(this, $).onopen = () => {
33
- S(this, E, 1), w(this, M) && w(this, M).call(this, w(this, N));
34
- }, w(this, $).onclose = () => {
35
- w(this, E) === 1 && (w(this, D) && w(this, D).call(this, w(this, N)), S(this, E, 2), W(this, j, I).call(this));
36
- }, w(this, $).onerror = () => {
37
- w(this, E) !== 1 && w(this, E) !== 3 && (S(this, E, 2), W(this, j, I).call(this));
38
- }, w(this, $).onmessage = (e) => {
32
+ w(this, S) == null && w(this, x) !== 1 && w(this, x) !== 3 && ($(this, S, new WebSocket(`ws://${w(this, N)}`)), w(this, S).binaryType = "arraybuffer", w(this, S).onopen = () => {
33
+ $(this, x, 1), w(this, M) && w(this, M).call(this, w(this, N));
34
+ }, w(this, S).onclose = () => {
35
+ w(this, x) === 1 && (w(this, D) && w(this, D).call(this, w(this, N)), $(this, x, 2), W(this, j, I).call(this));
36
+ }, w(this, S).onerror = () => {
37
+ w(this, x) !== 1 && w(this, x) !== 3 && ($(this, x, 2), W(this, j, I).call(this));
38
+ }, w(this, S).onmessage = (e) => {
39
39
  w(this, L) && w(this, L).call(this, w(this, N), new Uint8Array(e.data));
40
40
  });
41
41
  }
42
42
  stop() {
43
- S(this, E, 3), w(this, $) != null && (w(this, $).close(), S(this, $, null));
43
+ $(this, x, 3), w(this, S) != null && (w(this, S).close(), $(this, S, null));
44
44
  }
45
45
  restart() {
46
- S(this, E, 0);
46
+ $(this, x, 0);
47
47
  }
48
48
  publish(e) {
49
- w(this, $) != null && w(this, E) == 1 && w(this, $).send(e);
49
+ w(this, S) != null && w(this, x) == 1 && w(this, S).send(e);
50
50
  }
51
51
  send(e, n) {
52
52
  e === w(this, N) && this.publish(n);
53
53
  }
54
54
  }, j = new WeakSet(), I = function() {
55
- w(this, $) != null && (w(this, $).close(), S(this, $, null)), setTimeout(() => this.start(), 1e3);
56
- }, E = new WeakMap(), M = new WeakMap(), D = new WeakMap(), L = new WeakMap(), N = new WeakMap(), $ = new WeakMap(), U);
55
+ w(this, S) != null && (w(this, S).close(), $(this, S, null)), setTimeout(() => this.start(), 1e3);
56
+ }, x = new WeakMap(), M = new WeakMap(), D = new WeakMap(), L = new WeakMap(), N = new WeakMap(), S = new WeakMap(), U);
57
57
  const header = (i) => {
58
58
  const e = new Uint8Array(4);
59
59
  return new DataView(e.buffer).setUint32(0, i, !1), e;
@@ -989,17 +989,17 @@ function codegen(i, e) {
989
989
  for (var d = new Array(arguments.length - 1), c = 0; c < d.length; )
990
990
  d[c] = arguments[++c];
991
991
  if (c = 0, u = u.replace(/%([%dfijs])/g, function(p, m) {
992
- var b = d[c++];
992
+ var _ = d[c++];
993
993
  switch (m) {
994
994
  case "d":
995
995
  case "f":
996
- return String(Number(b));
996
+ return String(Number(_));
997
997
  case "i":
998
- return String(Math.floor(b));
998
+ return String(Math.floor(_));
999
999
  case "j":
1000
- return JSON.stringify(b);
1000
+ return JSON.stringify(_);
1001
1001
  case "s":
1002
- return String(b);
1002
+ return String(_);
1003
1003
  }
1004
1004
  return "%";
1005
1005
  }), c !== d.length)
@@ -1948,8 +1948,8 @@ function requireConverter() {
1948
1948
  if (p.resolvedType instanceof n) r("d%s=o.enums===String?%j:%j", m, p.resolvedType.valuesById[p.typeDefault], p.typeDefault);
1949
1949
  else if (p.long) r("if(util.Long){")("var n=new util.Long(%i,%i,%j)", p.typeDefault.low, p.typeDefault.high, p.typeDefault.unsigned)("d%s=o.longs===String?n.toString():o.longs===Number?n.toNumber():n", m)("}else")("d%s=o.longs===String?%j:%i", m, p.typeDefault.toString(), p.typeDefault.toNumber());
1950
1950
  else if (p.bytes) {
1951
- var b = "[" + Array.prototype.slice.call(p.typeDefault).join(",") + "]";
1952
- r("if(o.bytes===String)d%s=%j", m, String.fromCharCode.apply(String, p.typeDefault))("else{")("d%s=%s", m, b)("if(o.bytes!==Array)d%s=util.newBuffer(d%s)", m, m)("}");
1951
+ var _ = "[" + Array.prototype.slice.call(p.typeDefault).join(",") + "]";
1952
+ r("if(o.bytes===String)d%s=%j", m, String.fromCharCode.apply(String, p.typeDefault))("else{")("d%s=%s", m, _)("if(o.bytes!==Array)d%s=util.newBuffer(d%s)", m, m)("}");
1953
1953
  } else r("d%s=%j", m, p.typeDefault);
1954
1954
  }
1955
1955
  r("}");
@@ -2036,10 +2036,10 @@ function requireType() {
2036
2036
  return this._fieldsById;
2037
2037
  this._fieldsById = {};
2038
2038
  for (var v = Object.keys(this.fields), y = 0; y < v.length; ++y) {
2039
- var g = this.fields[v[y]], _ = g.id;
2040
- if (this._fieldsById[_])
2041
- throw Error("duplicate id " + _ + " in " + this);
2042
- this._fieldsById[_] = g;
2039
+ var g = this.fields[v[y]], b = g.id;
2040
+ if (this._fieldsById[b])
2041
+ throw Error("duplicate id " + b + " in " + this);
2042
+ this._fieldsById[b] = g;
2043
2043
  }
2044
2044
  return this._fieldsById;
2045
2045
  }
@@ -2082,45 +2082,45 @@ function requireType() {
2082
2082
  for (var g = 0; g < /* initializes */
2083
2083
  this.fieldsArray.length; ++g)
2084
2084
  this._fieldsArray[g].resolve();
2085
- var _ = {};
2085
+ var b = {};
2086
2086
  for (g = 0; g < /* initializes */
2087
2087
  this.oneofsArray.length; ++g)
2088
- _[this._oneofsArray[g].resolve().name] = {
2088
+ b[this._oneofsArray[g].resolve().name] = {
2089
2089
  get: r.oneOfGetter(this._oneofsArray[g].oneof),
2090
2090
  set: r.oneOfSetter(this._oneofsArray[g].oneof)
2091
2091
  };
2092
- g && Object.defineProperties(v.prototype, _);
2092
+ g && Object.defineProperties(v.prototype, b);
2093
2093
  }
2094
2094
  }
2095
2095
  }), m.generateConstructor = function(y) {
2096
- for (var g = r.codegen(["p"], y.name), _ = 0, R; _ < y.fieldsArray.length; ++_)
2097
- (R = y._fieldsArray[_]).map ? g("this%s={}", r.safeProp(R.name)) : R.repeated && g("this%s=[]", r.safeProp(R.name));
2096
+ for (var g = r.codegen(["p"], y.name), b = 0, R; b < y.fieldsArray.length; ++b)
2097
+ (R = y._fieldsArray[b]).map ? g("this%s={}", r.safeProp(R.name)) : R.repeated && g("this%s=[]", r.safeProp(R.name));
2098
2098
  return g("if(p)for(var ks=Object.keys(p),i=0;i<ks.length;++i)if(p[ks[i]]!=null)")("this[ks[i]]=p[ks[i]]");
2099
2099
  };
2100
- function b(v) {
2100
+ function _(v) {
2101
2101
  return v._fieldsById = v._fieldsArray = v._oneofsArray = null, delete v.encode, delete v.decode, delete v.verify, v;
2102
2102
  }
2103
2103
  return m.fromJSON = function(y, g) {
2104
- var _ = new m(y, g.options);
2105
- _.extensions = g.extensions, _.reserved = g.reserved;
2104
+ var b = new m(y, g.options);
2105
+ b.extensions = g.extensions, b.reserved = g.reserved;
2106
2106
  for (var R = Object.keys(g.fields), O = 0; O < R.length; ++O)
2107
- _.add(
2107
+ b.add(
2108
2108
  (typeof g.fields[R[O]].keyType < "u" ? f.fromJSON : a.fromJSON)(R[O], g.fields[R[O]])
2109
2109
  );
2110
2110
  if (g.oneofs)
2111
2111
  for (R = Object.keys(g.oneofs), O = 0; O < R.length; ++O)
2112
- _.add(n.fromJSON(R[O], g.oneofs[R[O]]));
2112
+ b.add(n.fromJSON(R[O], g.oneofs[R[O]]));
2113
2113
  if (g.nested)
2114
2114
  for (R = Object.keys(g.nested), O = 0; O < R.length; ++O) {
2115
2115
  var T = g.nested[R[O]];
2116
- _.add(
2116
+ b.add(
2117
2117
  // most to least likely
2118
2118
  (T.id !== void 0 ? a.fromJSON : T.fields !== void 0 ? m.fromJSON : T.values !== void 0 ? e.fromJSON : T.methods !== void 0 ? u.fromJSON : i.fromJSON)(R[O], T)
2119
2119
  );
2120
2120
  }
2121
- return g.extensions && g.extensions.length && (_.extensions = g.extensions), g.reserved && g.reserved.length && (_.reserved = g.reserved), g.group && (_.group = !0), g.comment && (_.comment = g.comment), _;
2121
+ return g.extensions && g.extensions.length && (b.extensions = g.extensions), g.reserved && g.reserved.length && (b.reserved = g.reserved), g.group && (b.group = !0), g.comment && (b.comment = g.comment), b;
2122
2122
  }, m.prototype.toJSON = function(y) {
2123
- var g = i.prototype.toJSON.call(this, y), _ = y ? !!y.keepComments : !1;
2123
+ var g = i.prototype.toJSON.call(this, y), b = y ? !!y.keepComments : !1;
2124
2124
  return r.toObject([
2125
2125
  "options",
2126
2126
  g && g.options || void 0,
@@ -2139,14 +2139,14 @@ function requireType() {
2139
2139
  "nested",
2140
2140
  g && g.nested || void 0,
2141
2141
  "comment",
2142
- _ ? this.comment : void 0
2142
+ b ? this.comment : void 0
2143
2143
  ]);
2144
2144
  }, m.prototype.resolveAll = function() {
2145
2145
  for (var y = this.fieldsArray, g = 0; g < y.length; )
2146
2146
  y[g++].resolve();
2147
- var _ = this.oneofsArray;
2148
- for (g = 0; g < _.length; )
2149
- _[g++].resolve();
2147
+ var b = this.oneofsArray;
2148
+ for (g = 0; g < b.length; )
2149
+ b[g++].resolve();
2150
2150
  return i.prototype.resolveAll.call(this);
2151
2151
  }, m.prototype.get = function(y) {
2152
2152
  return this.fields[y] || this.oneofs && this.oneofs[y] || this.nested && this.nested[y] || null;
@@ -2163,19 +2163,19 @@ function requireType() {
2163
2163
  throw Error("id " + y.id + " is reserved in " + this);
2164
2164
  if (this.isReservedName(y.name))
2165
2165
  throw Error("name '" + y.name + "' is reserved in " + this);
2166
- return y.parent && y.parent.remove(y), this.fields[y.name] = y, y.message = this, y.onAdd(this), b(this);
2166
+ return y.parent && y.parent.remove(y), this.fields[y.name] = y, y.message = this, y.onAdd(this), _(this);
2167
2167
  }
2168
- return y instanceof n ? (this.oneofs || (this.oneofs = {}), this.oneofs[y.name] = y, y.onAdd(this), b(this)) : i.prototype.add.call(this, y);
2168
+ return y instanceof n ? (this.oneofs || (this.oneofs = {}), this.oneofs[y.name] = y, y.onAdd(this), _(this)) : i.prototype.add.call(this, y);
2169
2169
  }, m.prototype.remove = function(y) {
2170
2170
  if (y instanceof a && y.extend === void 0) {
2171
2171
  if (!this.fields || this.fields[y.name] !== y)
2172
2172
  throw Error(y + " is not a member of " + this);
2173
- return delete this.fields[y.name], y.parent = null, y.onRemove(this), b(this);
2173
+ return delete this.fields[y.name], y.parent = null, y.onRemove(this), _(this);
2174
2174
  }
2175
2175
  if (y instanceof n) {
2176
2176
  if (!this.oneofs || this.oneofs[y.name] !== y)
2177
2177
  throw Error(y + " is not a member of " + this);
2178
- return delete this.oneofs[y.name], y.parent = null, y.onRemove(this), b(this);
2178
+ return delete this.oneofs[y.name], y.parent = null, y.onRemove(this), _(this);
2179
2179
  }
2180
2180
  return i.prototype.remove.call(this, y);
2181
2181
  }, m.prototype.isReservedId = function(y) {
@@ -2185,9 +2185,9 @@ function requireType() {
2185
2185
  }, m.prototype.create = function(y) {
2186
2186
  return new this.ctor(y);
2187
2187
  }, m.prototype.setup = function() {
2188
- for (var y = this.fullName, g = [], _ = 0; _ < /* initializes */
2189
- this.fieldsArray.length; ++_)
2190
- g.push(this._fieldsArray[_].resolve().resolvedType);
2188
+ for (var y = this.fullName, g = [], b = 0; b < /* initializes */
2189
+ this.fieldsArray.length; ++b)
2190
+ g.push(this._fieldsArray[b].resolve().resolvedType);
2191
2191
  this.encode = l(this)({
2192
2192
  Writer: o,
2193
2193
  types: g,
@@ -2227,8 +2227,8 @@ function requireType() {
2227
2227
  }, m.prototype.toObject = function(y, g) {
2228
2228
  return this.setup().toObject(y, g);
2229
2229
  }, m.d = function(y) {
2230
- return function(_) {
2231
- r.decorateType(_, y);
2230
+ return function(b) {
2231
+ r.decorateType(b, y);
2232
2232
  };
2233
2233
  }, type;
2234
2234
  }
@@ -2249,70 +2249,70 @@ function requireRoot() {
2249
2249
  }
2250
2250
  o.prototype.load = function c(h, p, m) {
2251
2251
  typeof p == "function" && (m = p, p = void 0);
2252
- var b = this;
2252
+ var _ = this;
2253
2253
  if (!m)
2254
- return f.asPromise(c, b, h, p);
2254
+ return f.asPromise(c, _, h, p);
2255
2255
  var v = m === r;
2256
- function y(q, A) {
2256
+ function y(q, k) {
2257
2257
  if (m) {
2258
2258
  if (v)
2259
2259
  throw q;
2260
- var k = m;
2261
- m = null, k(q, A);
2260
+ var A = m;
2261
+ m = null, A(q, k);
2262
2262
  }
2263
2263
  }
2264
2264
  function g(q) {
2265
- var A = q.lastIndexOf("google/protobuf/");
2266
- if (A > -1) {
2267
- var k = q.substring(A);
2268
- if (k in s) return k;
2265
+ var k = q.lastIndexOf("google/protobuf/");
2266
+ if (k > -1) {
2267
+ var A = q.substring(k);
2268
+ if (A in s) return A;
2269
2269
  }
2270
2270
  return null;
2271
2271
  }
2272
- function _(q, A) {
2272
+ function b(q, k) {
2273
2273
  try {
2274
- if (f.isString(A) && A.charAt(0) === "{" && (A = JSON.parse(A)), !f.isString(A))
2275
- b.setOptions(A.options).addJSON(A.nested);
2274
+ if (f.isString(k) && k.charAt(0) === "{" && (k = JSON.parse(k)), !f.isString(k))
2275
+ _.setOptions(k.options).addJSON(k.nested);
2276
2276
  else {
2277
2277
  t.filename = q;
2278
- var k = t(A, b, p), B, x = 0;
2279
- if (k.imports)
2280
- for (; x < k.imports.length; ++x)
2281
- (B = g(k.imports[x]) || b.resolvePath(q, k.imports[x])) && R(B);
2282
- if (k.weakImports)
2283
- for (x = 0; x < k.weakImports.length; ++x)
2284
- (B = g(k.weakImports[x]) || b.resolvePath(q, k.weakImports[x])) && R(B, !0);
2278
+ var A = t(k, _, p), B, E = 0;
2279
+ if (A.imports)
2280
+ for (; E < A.imports.length; ++E)
2281
+ (B = g(A.imports[E]) || _.resolvePath(q, A.imports[E])) && R(B);
2282
+ if (A.weakImports)
2283
+ for (E = 0; E < A.weakImports.length; ++E)
2284
+ (B = g(A.weakImports[E]) || _.resolvePath(q, A.weakImports[E])) && R(B, !0);
2285
2285
  }
2286
2286
  } catch (V) {
2287
2287
  y(V);
2288
2288
  }
2289
- !v && !O && y(null, b);
2289
+ !v && !O && y(null, _);
2290
2290
  }
2291
- function R(q, A) {
2292
- if (q = g(q) || q, !(b.files.indexOf(q) > -1)) {
2293
- if (b.files.push(q), q in s) {
2294
- v ? _(q, s[q]) : (++O, setTimeout(function() {
2295
- --O, _(q, s[q]);
2291
+ function R(q, k) {
2292
+ if (q = g(q) || q, !(_.files.indexOf(q) > -1)) {
2293
+ if (_.files.push(q), q in s) {
2294
+ v ? b(q, s[q]) : (++O, setTimeout(function() {
2295
+ --O, b(q, s[q]);
2296
2296
  }));
2297
2297
  return;
2298
2298
  }
2299
2299
  if (v) {
2300
- var k;
2300
+ var A;
2301
2301
  try {
2302
- k = f.fs.readFileSync(q).toString("utf8");
2302
+ A = f.fs.readFileSync(q).toString("utf8");
2303
2303
  } catch (B) {
2304
- A || y(B);
2304
+ k || y(B);
2305
2305
  return;
2306
2306
  }
2307
- _(q, k);
2307
+ b(q, A);
2308
2308
  } else
2309
- ++O, b.fetch(q, function(B, x) {
2309
+ ++O, _.fetch(q, function(B, E) {
2310
2310
  if (--O, !!m) {
2311
2311
  if (B) {
2312
- A ? O || y(null, b) : y(B);
2312
+ k ? O || y(null, _) : y(B);
2313
2313
  return;
2314
2314
  }
2315
- _(q, x);
2315
+ b(q, E);
2316
2316
  }
2317
2317
  });
2318
2318
  }
@@ -2320,10 +2320,10 @@ function requireRoot() {
2320
2320
  var O = 0;
2321
2321
  f.isString(h) && (h = [h]);
2322
2322
  for (var T = 0, J; T < h.length; ++T)
2323
- (J = b.resolvePath("", h[T])) && R(J);
2323
+ (J = _.resolvePath("", h[T])) && R(J);
2324
2324
  if (v)
2325
- return b;
2326
- O || y(null, b);
2325
+ return _;
2326
+ O || y(null, _);
2327
2327
  }, o.prototype.loadSync = function(h, p) {
2328
2328
  if (!f.isNode)
2329
2329
  throw Error("not supported");
@@ -2437,14 +2437,14 @@ function requireUtil() {
2437
2437
  return i.decorateRoot.add(l), Object.defineProperty(r, "$type", { value: l, enumerable: !1 }), l;
2438
2438
  }, i.setProperty = function(r, l, d) {
2439
2439
  function c(h, p, m) {
2440
- var b = p.shift();
2441
- if (b === "__proto__" || b === "prototype")
2440
+ var _ = p.shift();
2441
+ if (_ === "__proto__" || _ === "prototype")
2442
2442
  return h;
2443
2443
  if (p.length > 0)
2444
- h[b] = c(h[b] || {}, p, m);
2444
+ h[_] = c(h[_] || {}, p, m);
2445
2445
  else {
2446
- var v = h[b];
2447
- v && (m = [].concat(v).concat(m)), h[b] = m;
2446
+ var v = h[_];
2447
+ v && (m = [].concat(v).concat(m)), h[_] = m;
2448
2448
  }
2449
2449
  return h;
2450
2450
  }
@@ -2661,7 +2661,7 @@ protobuf.Namespace._configure(protobuf.Type, protobuf.Service, protobuf.Enum);
2661
2661
  protobuf.Root._configure(protobuf.Type);
2662
2662
  protobuf.Field._configure(protobuf.Type);
2663
2663
  var indexLightExports = indexLight.exports, light = indexLightExports;
2664
- const protobufjs = /* @__PURE__ */ getDefaultExportFromCjs(light), proto_data = { options: { syntax: "proto3", optimize_for: "LITE_RUNTIME" }, nested: { nil: { nested: { xit: { nested: { proto: { nested: { MessageType: { values: { MessageType_FrameRequest: 0, MessageType_FrameResponse: 1, MessageType_FrameCache: 2, MessageType_FrameLoaded: 3, MessageType_ValueRequest: 4, MessageType_ValueResponse: 5, MessageType_ValueUpdate: 6, MessageType_SignalRequest: 7, MessageType_SignalResponse: 8, MessageType_SignalNotify: 9, MessageType_FileRequest: 10, MessageType_FileResponse: 11 } }, FrameRequest: { fields: { id: { type: "string", id: 1 } } }, FrameResponse: { oneofs: { value: { oneof: ["file", "content"] } }, fields: { id: { type: "string", id: 1 }, file: { type: "string", id: 2 }, content: { type: "string", id: 3 } } }, FrameCache: { fields: { id: { type: "string", id: 1 }, content: { type: "string", id: 2 }, files: { rule: "repeated", type: "FileInfo", id: 3 } } }, FrameLoaded: { oneofs: { _tag: { oneof: ["tag"] } }, fields: { id: { type: "string", id: 1 }, tag: { type: "string", id: 2, options: { proto3_optional: !0 } } } }, Value: { oneofs: { value: { oneof: ["value_boolean", "value_number", "value_double", "value_string", "value_buffer"] } }, fields: { id: { type: "string", id: 1 }, value_boolean: { type: "bool", id: 2 }, value_number: { type: "int64", id: 3 }, value_double: { type: "double", id: 4 }, value_string: { type: "string", id: 5 }, value_buffer: { type: "bytes", id: 6 } } }, ValueRequest: { oneofs: { _tag: { oneof: ["tag"] } }, fields: { id: { type: "string", id: 1 }, tag: { type: "string", id: 2, options: { proto3_optional: !0 } } } }, ValueResponse: { oneofs: { _tag: { oneof: ["tag"] } }, fields: { id: { type: "string", id: 1 }, tag: { type: "string", id: 2, options: { proto3_optional: !0 } }, values: { rule: "repeated", type: "Value", id: 3 } } }, ValueUpdate: { oneofs: { _tag: { oneof: ["tag"] } }, fields: { id: { type: "string", id: 1 }, tag: { type: "string", id: 2, options: { proto3_optional: !0 } }, value: { type: "Value", id: 3 } } }, SignalRequest: { fields: { id: { type: "string", id: 1 } } }, Signal: { oneofs: { _type: { oneof: ["type"] } }, fields: { id: { type: "string", id: 1 }, type: { type: "string", id: 2, options: { proto3_optional: !0 } } } }, SignalResponse: { oneofs: { _tag: { oneof: ["tag"] } }, fields: { id: { type: "string", id: 1 }, tag: { type: "string", id: 2, options: { proto3_optional: !0 } }, signals: { rule: "repeated", type: "Signal", id: 3 } } }, SignalNotify: { oneofs: { _tag: { oneof: ["tag"] }, arg: { oneof: ["arg_boolean", "arg_number", "arg_double", "arg_string", "arg_buffer"] } }, fields: { frame_id: { type: "string", id: 1 }, tag: { type: "string", id: 2, options: { proto3_optional: !0 } }, signal_id: { type: "string", id: 3 }, arg_boolean: { type: "bool", id: 4 }, arg_number: { type: "int64", id: 5 }, arg_double: { type: "double", id: 6 }, arg_string: { type: "string", id: 7 }, arg_buffer: { type: "bytes", id: 8 } } }, FileRequest: { fields: { target: { type: "string", id: 1 } } }, FileResponse: { fields: { target: { type: "string", id: 1 }, content: { type: "string", id: 2 }, metadata: { type: "bytes", id: 3 } } }, FileInfo: { fields: { target: { type: "string", id: 1 }, metadata: { type: "bytes", id: 2 } } } } } } } } } } }, nil_xit_proto = protobufjs.Root.fromJSON(proto_data).lookup(
2664
+ const protobufjs = /* @__PURE__ */ getDefaultExportFromCjs(light), proto_data = { options: { syntax: "proto3", optimize_for: "LITE_RUNTIME" }, nested: { nil: { nested: { xit: { nested: { proto: { nested: { MessageType: { values: { MessageType_FrameRequest: 0, MessageType_FrameResponse: 1, MessageType_FrameCache: 2, MessageType_FrameLoaded: 3, MessageType_FrameSubscribe: 4, MessageType_FrameUnsubscribe: 5, MessageType_ValueRequest: 6, MessageType_ValueResponse: 7, MessageType_ValueUpdate: 8, MessageType_SignalRequest: 9, MessageType_SignalResponse: 10, MessageType_SignalNotify: 11, MessageType_FileRequest: 12, MessageType_FileResponse: 13 } }, FrameRequest: { fields: { id: { type: "string", id: 1 } } }, FrameResponse: { oneofs: { value: { oneof: ["file", "content"] } }, fields: { id: { type: "string", id: 1 }, file: { type: "string", id: 2 }, content: { type: "string", id: 3 } } }, FrameCache: { fields: { id: { type: "string", id: 1 }, content: { type: "string", id: 2 }, files: { rule: "repeated", type: "FileInfo", id: 3 } } }, FrameLoaded: { oneofs: { _tag: { oneof: ["tag"] } }, fields: { id: { type: "string", id: 1 }, tag: { type: "string", id: 2, options: { proto3_optional: !0 } } } }, FrameSubscribe: { oneofs: { _tag: { oneof: ["tag"] } }, fields: { id: { type: "string", id: 1 }, tag: { type: "string", id: 2, options: { proto3_optional: !0 } } } }, FrameUnsubscribe: { oneofs: { _tag: { oneof: ["tag"] } }, fields: { id: { type: "string", id: 1 }, tag: { type: "string", id: 2, options: { proto3_optional: !0 } } } }, Value: { oneofs: { value: { oneof: ["value_boolean", "value_number", "value_double", "value_string", "value_buffer"] } }, fields: { id: { type: "string", id: 1 }, value_boolean: { type: "bool", id: 2 }, value_number: { type: "int64", id: 3 }, value_double: { type: "double", id: 4 }, value_string: { type: "string", id: 5 }, value_buffer: { type: "bytes", id: 6 } } }, ValueRequest: { oneofs: { _tag: { oneof: ["tag"] } }, fields: { id: { type: "string", id: 1 }, tag: { type: "string", id: 2, options: { proto3_optional: !0 } } } }, ValueResponse: { oneofs: { _tag: { oneof: ["tag"] } }, fields: { id: { type: "string", id: 1 }, tag: { type: "string", id: 2, options: { proto3_optional: !0 } }, values: { rule: "repeated", type: "Value", id: 3 } } }, ValueUpdate: { oneofs: { _tag: { oneof: ["tag"] } }, fields: { id: { type: "string", id: 1 }, tag: { type: "string", id: 2, options: { proto3_optional: !0 } }, value: { type: "Value", id: 3 } } }, SignalRequest: { fields: { id: { type: "string", id: 1 } } }, Signal: { oneofs: { _type: { oneof: ["type"] } }, fields: { id: { type: "string", id: 1 }, type: { type: "string", id: 2, options: { proto3_optional: !0 } } } }, SignalResponse: { oneofs: { _tag: { oneof: ["tag"] } }, fields: { id: { type: "string", id: 1 }, tag: { type: "string", id: 2, options: { proto3_optional: !0 } }, signals: { rule: "repeated", type: "Signal", id: 3 } } }, SignalNotify: { oneofs: { _tag: { oneof: ["tag"] }, arg: { oneof: ["arg_boolean", "arg_number", "arg_double", "arg_string", "arg_buffer"] } }, fields: { frame_id: { type: "string", id: 1 }, tag: { type: "string", id: 2, options: { proto3_optional: !0 } }, signal_id: { type: "string", id: 3 }, arg_boolean: { type: "bool", id: 4 }, arg_number: { type: "int64", id: 5 }, arg_double: { type: "double", id: 6 }, arg_string: { type: "string", id: 7 }, arg_buffer: { type: "bytes", id: 8 } } }, FileRequest: { fields: { target: { type: "string", id: 1 } } }, FileResponse: { fields: { target: { type: "string", id: 1 }, content: { type: "string", id: 2 }, metadata: { type: "bytes", id: 3 } } }, FileInfo: { fields: { target: { type: "string", id: 1 }, metadata: { type: "bytes", id: 2 } } } } } } } } } } }, nil_xit_proto = protobufjs.Root.fromJSON(proto_data).lookup(
2665
2665
  "nil.xit.proto"
2666
2666
  ), bundle = async (i) => new Promise((e, n) => {
2667
2667
  const a = new WorkerWrapper();
@@ -2699,11 +2699,11 @@ const protobufjs = /* @__PURE__ */ getDefaultExportFromCjs(light), proto_data =
2699
2699
  header(nil_xit_proto.MessageType.MessageType_ValueRequest),
2700
2700
  nil_xit_proto.ValueRequest.encode({ id: i, tag: e }).finish()
2701
2701
  ]),
2702
- (t, s) => {
2703
- if (t === nil_xit_proto.MessageType.MessageType_ValueResponse) {
2704
- const o = nil_xit_proto.ValueResponse.decode(s);
2705
- if (o.id === i && e === o.tag)
2706
- return o.values;
2702
+ (s, o) => {
2703
+ if (s === nil_xit_proto.MessageType.MessageType_ValueResponse) {
2704
+ const r = nil_xit_proto.ValueResponse.decode(o);
2705
+ if (r.id === i && e === r.tag)
2706
+ return r.values;
2707
2707
  }
2708
2708
  }
2709
2709
  ), u = {
@@ -2713,26 +2713,46 @@ const protobufjs = /* @__PURE__ */ getDefaultExportFromCjs(light), proto_data =
2713
2713
  value_string: /* @__PURE__ */ new Map(),
2714
2714
  value_buffer: /* @__PURE__ */ new Map()
2715
2715
  };
2716
- for (const t of f) {
2717
- const s = t.id, o = t.value, r = writable(t[o]);
2718
- r.subscribe((l) => {
2719
- const d = { id: s, [o]: l, value: o }, c = { id: i, tag: e, value: d };
2716
+ let t = !1;
2717
+ for (const s of f) {
2718
+ const o = s.id, r = s.value, l = writable(s[r]);
2719
+ l.subscribe((d) => {
2720
+ if (t)
2721
+ return;
2722
+ const c = { id: o, [r]: d, value: r }, h = { id: i, tag: e, value: c };
2720
2723
  a.publish(
2721
2724
  concat([
2722
2725
  header(nil_xit_proto.MessageType.MessageType_ValueUpdate),
2723
- nil_xit_proto.ValueUpdate.encode(c).finish()
2726
+ nil_xit_proto.ValueUpdate.encode(h).finish()
2724
2727
  ])
2725
2728
  );
2726
- }), u[o].set(s, r);
2729
+ }), u[r].set(o, l);
2727
2730
  }
2728
- return a.on_message((t, s) => {
2729
- var l;
2730
- const o = new DataView(s.buffer).getUint32(0, !1), r = s.slice(4);
2731
- if (o === nil_xit_proto.MessageType.MessageType_ValueUpdate) {
2732
- const d = nil_xit_proto.ValueUpdate.decode(r);
2733
- if (d.id === i && e === d.tag) {
2734
- const c = d.value.value, h = (l = u[c]) == null ? void 0 : l.get(d.value.id);
2735
- h == null || h.set(d.value[c]);
2731
+ return a.on_message((s, o) => {
2732
+ var d;
2733
+ const r = new DataView(o.buffer).getUint32(0, !1), l = o.slice(4);
2734
+ if (r === nil_xit_proto.MessageType.MessageType_ValueUpdate) {
2735
+ const c = nil_xit_proto.ValueUpdate.decode(l);
2736
+ if (c.id === i && (c.tag === null || e === c.tag)) {
2737
+ t = !0;
2738
+ const h = c.value.value, p = (d = u[h]) == null ? void 0 : d.get(c.value.id);
2739
+ if (h === "value_buffer") {
2740
+ const m = c.value[h], _ = get(p);
2741
+ let v = !0;
2742
+ if (m.length != _.length)
2743
+ v = !1;
2744
+ else {
2745
+ const y = m.length;
2746
+ for (let g = 0; g < y; g++)
2747
+ if (m[g] !== _[g]) {
2748
+ v = !1;
2749
+ break;
2750
+ }
2751
+ }
2752
+ v || p == null || p.set(m);
2753
+ } else
2754
+ p == null || p.set(c.value[h]);
2755
+ t = !1;
2736
2756
  }
2737
2757
  }
2738
2758
  }), u;
@@ -2848,13 +2868,19 @@ const protobufjs = /* @__PURE__ */ getDefaultExportFromCjs(light), proto_data =
2848
2868
  header(nil_xit_proto.MessageType.MessageType_FrameLoaded),
2849
2869
  nil_xit_proto.FrameLoaded.encode({ id: e, tag: n }).finish()
2850
2870
  ]);
2851
- return t.start(), service_publish(u, h), (p) => {
2871
+ return t.start(), t.on_connect(() => {
2872
+ const p = concat([
2873
+ header(nil_xit_proto.MessageType.MessageType_FrameSubscribe),
2874
+ nil_xit_proto.FrameLoaded.encode({ id: e, tag: n }).finish()
2875
+ ]);
2876
+ t.publish(p);
2877
+ }), service_publish(u, h), (p) => {
2852
2878
  const m = /* @__PURE__ */ new Map();
2853
2879
  m.set("nil.xit", create_context(s, o, f));
2854
- const { destroy: b } = c(p, m);
2880
+ const { destroy: _ } = c(p, m);
2855
2881
  return {
2856
2882
  destroy: () => {
2857
- t.stop(), b();
2883
+ t.stop(), _();
2858
2884
  }
2859
2885
  };
2860
2886
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nil-/xit",
3
- "version": "0.1.13",
3
+ "version": "0.1.14",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  "./package.json": "./package.json",