@nil-/xit 0.1.5 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/bundler.js +13 -8
- package/assets/index-client.js +77 -0
- package/assets/index-client2.js +63 -0
- package/assets/index.js +2 -3787
- package/assets/index2.js +4994 -0
- package/assets/index3.js +2113 -0
- package/assets/snippet.js +42 -0
- package/package.json +1 -1
package/assets/bundler.js
CHANGED
|
@@ -1,7 +1,17 @@
|
|
|
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),rA=0;rA<EA.length;)EA[rA++]=arguments[rA];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=[],rA=0,cA=0,uA;QA<CA;){var lA=sA[QA++];switch(cA){case 0:EA[rA++]=tA[lA>>2],uA=(lA&3)<<4,cA=1;break;case 1:EA[rA++]=tA[uA|lA>>4],uA=(lA&15)<<2,cA=2;break;case 2:EA[rA++]=tA[uA|lA>>6],EA[rA++]=tA[lA&63],cA=0;break}rA>8191&&((oA||(oA=[])).push(String.fromCharCode.apply(String,EA)),rA=0)}return cA&&(EA[rA++]=tA[uA],EA[rA++]=61,cA===1&&(EA[rA++]=61)),oA?(rA&&oA.push(String.fromCharCode.apply(String,EA.slice(0,rA))),oA.join("")):String.fromCharCode.apply(String,EA.slice(0,rA))};var IA="invalid encoding";AA.decode=function(sA,QA,CA){for(var oA=CA,EA=0,rA,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:rA=uA,EA=1;break;case 1:QA[CA++]=rA<<2|(uA&48)>>4,rA=uA,EA=2;break;case 2:QA[CA++]=(rA&15)<<4|(uA&60)>>2,rA=uA,EA=3;break;case 3:QA[CA++]=(rA&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,rA=4294967296*(CA&1048575)+QA;return EA===2047?rA?NaN:oA*(1/0):EA===0?oA*5e-324*rA:oA*Math.pow(2,EA-1075)*(rA+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),rA=0;rA<EA.length;)EA[rA]=arguments[++rA];if(rA=0,IA=IA.replace(/%([%dfijs])/g,function(uA,lA){var hA=EA[rA++];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"%"}),rA!==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,rA,cA){if(gA.isObject(oA)?(cA=EA,rA=oA,oA=EA=void 0):gA.isObject(EA)&&(cA=rA,rA=EA,EA=void 0),eA.call(this,sA,rA),!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,rA){return new QA(EA,rA.options).addJSON(rA.nested)};function sA(oA,EA){if(oA&&oA.length){for(var rA={},cA=0;cA<oA.length;++cA)rA[oA[cA].name]=oA[cA].toJSON(EA);return rA}}QA.arrayToJSON=sA,QA.isReservedId=function(EA,rA){if(EA){for(var cA=0;cA<EA.length;++cA)if(typeof EA[cA]!="string"&&EA[cA][0]<=rA&&EA[cA][1]>rA)return!0}return!1},QA.isReservedName=function(EA,rA){if(EA){for(var cA=0;cA<EA.length;++cA)if(EA[cA]===rA)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 rA=this;if(EA)for(var cA=Object.keys(EA),uA=0,lA;uA<cA.length;++uA)lA=EA[cA[uA]],rA.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 rA=this.get(EA.name);if(rA)if(rA instanceof QA&&EA instanceof QA&&!(rA instanceof iA||rA instanceof IA)){for(var cA=rA.nestedArray,uA=0;uA<cA.length;++uA)EA.add(cA[uA]);this.remove(rA),this.nested||(this.nested={}),EA.setOptions(rA.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,rA){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 rA&&cA.addJSON(rA),cA},QA.prototype.resolveAll=function(){for(var EA=this.nestedArray,rA=0;rA<EA.length;)EA[rA]instanceof QA?EA[rA++].resolveAll():EA[rA++].resolve();return this.resolve()},QA.prototype.lookup=function(EA,rA,cA){if(typeof rA=="boolean"?(cA=rA,rA=void 0):rA&&!Array.isArray(rA)&&(rA=[rA]),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),rA);var uA=this.get(EA[0]);if(uA){if(EA.length===1){if(!rA||rA.indexOf(uA.constructor)>-1)return uA}else if(uA instanceof QA&&(uA=uA.lookup(EA.slice(1),rA,!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,rA,!0)))return uA;return this.parent===null||cA?null:this.parent.lookup(EA,rA)},QA.prototype.lookupType=function(EA){var rA=this.lookup(EA,[iA]);if(!rA)throw Error("no such type: "+EA);return rA},QA.prototype.lookupEnum=function(EA){var rA=this.lookup(EA,[BA]);if(!rA)throw Error("no such Enum '"+EA+"' in "+this);return rA},QA.prototype.lookupTypeOrEnum=function(EA){var rA=this.lookup(EA,[iA,BA]);if(!rA)throw Error("no such Type or Enum '"+EA+"' in "+this);return rA},QA.prototype.lookupService=function(EA){var rA=this.lookup(EA,[IA]);if(!rA)throw Error("no such Service '"+EA+"' in "+this);return rA},QA._configure=function(oA,EA,rA){iA=oA,IA=EA,BA=rA},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,rA;EA<this.methodsArray.length;++EA){var cA=tA.lcFirst((rA=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:rA,q:rA.resolvedRequestType.ctor,s:rA.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(rA){return rA.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(),rA="m"+AA.safeProp(EA.name);if(EA.optional&&sA("if(%s!=null&&m.hasOwnProperty(%j)){",rA,EA.name),EA.map)sA("if(!util.isObject(%s))",rA)("return%j",tA(EA,"object"))("var k=Object.keys(%s)",rA)("for(var i=0;i<k.length;++i){"),iA(sA,EA,"k[i]"),gA(sA,EA,oA,rA+"[k[i]]")("}");else if(EA.repeated)sA("if(!Array.isArray(%s))",rA)("return%j",tA(EA,"array"))("for(var i=0;i<%s.length;++i){",rA),gA(sA,EA,oA,rA+"[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,rA)}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,rA=Object.keys(EA),cA=0;cA<rA.length;++cA)EA[rA[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:",rA[cA])("case %i:",EA[rA[cA]])("m%s=%j",CA,EA[rA[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(),rA=gA.safeProp(EA.name);EA.map?(CA("if(d%s){",rA)('if(typeof d%s!=="object")',rA)("throw TypeError(%j)",EA.fullName+": object expected")("m%s={}",rA)("for(var ks=Object.keys(d%s),i=0;i<ks.length;++i){",rA),iA(CA,EA,oA,rA+"[ks[i]]")("}")("}")):EA.repeated?(CA("if(d%s){",rA)("if(!Array.isArray(d%s))",rA)("throw TypeError(%j)",EA.fullName+": array expected")("m%s=[]",rA)("for(var i=0;i<d%s.length;++i){",rA),iA(CA,EA,oA,rA+"[i]")("}")("}")):(EA.resolvedType instanceof tA||CA("if(d%s!=null){",rA),iA(CA,EA,oA,rA),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=[],rA=[],cA=0;cA<QA.length;++cA)QA[cA].partOf||(QA[cA].resolve().repeated?oA:QA[cA].map?EA:rA).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(rA.length){for(CA("if(o.defaults){"),cA=0;cA<rA.length;++cA){var uA=rA[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(),rA=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,yA;RA<DA.fieldsArray.length;++RA)(yA=DA._fieldsArray[RA]).map?wA("this%s={}",CA.safeProp(yA.name)):yA.repeated&&wA("this%s=[]",CA.safeProp(yA.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 yA=Object.keys(wA.fields),kA=0;kA<yA.length;++kA)RA.add((typeof wA.fields[yA[kA]].keyType<"u"?iA.fromJSON:gA.fromJSON)(yA[kA],wA.fields[yA[kA]]));if(wA.oneofs)for(yA=Object.keys(wA.oneofs),kA=0;kA<yA.length;++kA)RA.add(tA.fromJSON(yA[kA],wA.oneofs[yA[kA]]));if(wA.nested)for(yA=Object.keys(wA.nested),kA=0;kA<yA.length;++kA){var LA=wA.nested[yA[kA]];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)(yA[kA],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(yA){return!yA.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=rA(this)({types:wA,util:CA}),this.fromObject=cA.fromObject(this)({types:wA,util:CA}),this.toObject=cA.toObject(this)({types:wA,util:CA});var yA=uA[DA];if(yA){var kA=Object.create(this);kA.fromObject=this.fromObject,this.fromObject=yA.fromObject.bind(kA),kA.toObject=this.toObject,this.toObject=yA.toObject.bind(kA)}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(rA){eA.call(this,"",rA),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 rA(cA,uA,lA){typeof uA=="function"&&(lA=uA,uA=void 0);var hA=this;if(!lA)return iA.asPromise(rA,hA,cA,uA);var dA=lA===CA;function DA(bA,JA){if(lA){if(dA)throw bA;var MA=lA;lA=null,MA(bA,JA)}}function wA(bA){var JA=bA.lastIndexOf("google/protobuf/");if(JA>-1){var MA=bA.substring(JA);if(MA in sA)return MA}return null}function RA(bA,JA){try{if(iA.isString(JA)&&JA.charAt(0)==="{"&&(JA=JSON.parse(JA)),!iA.isString(JA))hA.setOptions(JA.options).addJSON(JA.nested);else{BA.filename=bA;var MA=BA(JA,hA,uA),NA,SA=0;if(MA.imports)for(;SA<MA.imports.length;++SA)(NA=wA(MA.imports[SA])||hA.resolvePath(bA,MA.imports[SA]))&&yA(NA);if(MA.weakImports)for(SA=0;SA<MA.weakImports.length;++SA)(NA=wA(MA.weakImports[SA])||hA.resolvePath(bA,MA.weakImports[SA]))&&yA(NA,!0)}}catch(qA){DA(qA)}!dA&&!kA&&DA(null,hA)}function yA(bA,JA){if(bA=wA(bA)||bA,!(hA.files.indexOf(bA)>-1)){if(hA.files.push(bA),bA in sA){dA?RA(bA,sA[bA]):(++kA,setTimeout(function(){--kA,RA(bA,sA[bA])}));return}if(dA){var MA;try{MA=iA.fs.readFileSync(bA).toString("utf8")}catch(NA){JA||DA(NA);return}RA(bA,MA)}else++kA,hA.fetch(bA,function(NA,SA){if(--kA,!!lA){if(NA){JA?kA||DA(null,hA):DA(NA);return}RA(bA,SA)}})}}var kA=0;iA.isString(cA)&&(cA=[cA]);for(var LA=0,KA;LA<cA.length;++LA)(KA=hA.resolvePath("",cA[LA]))&&yA(KA);if(dA)return hA;kA||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(rA,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(rA,cA,uA){IA=rA,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),rA=0;rA<oA.length;)EA[rA]=CA[oA[rA++]];return EA}return[]},eA.toObject=function(CA){for(var oA={},EA=0;EA<CA.length;){var rA=CA[EA++],cA=CA[EA++];cA!==void 0&&(oA[rA]=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 rA(cA,uA,lA){var hA=uA.shift();if(hA==="__proto__"||hA==="prototype")return cA;if(uA.length>0)cA[hA]=rA(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("."),rA(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),rA=oA.resolvedType instanceof eA?"int32":oA.type,cA=AA.basic[rA];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,rA,QA),BA("}")("}")):oA.repeated?(BA("if(%s!=null&&%s.length){",QA,QA),oA.packed&&AA.packed[rA]!==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])",rA,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,rA,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,rA,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_ValueRequest:3,MessageType_ValueResponse:4,MessageType_ValueUpdate:5,MessageType_SignalRequest:6,MessageType_SignalResponse:7,MessageType_SignalNotify:8,MessageType_FileRequest:9,MessageType_FileResponse:10}},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}}},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}}},FrameCache:{fields:{id:{type:"string",id:1},content:{type:"string",id:2},files:{rule:"repeated",type:"FileInfo",id:3}}}}}}}}}}},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,rA,cA){if(gA.isObject(oA)?(cA=EA,rA=oA,oA=EA=void 0):gA.isObject(EA)&&(cA=rA,rA=EA,EA=void 0),eA.call(this,sA,rA),!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,rA){return new QA(EA,rA.options).addJSON(rA.nested)};function sA(oA,EA){if(oA&&oA.length){for(var rA={},cA=0;cA<oA.length;++cA)rA[oA[cA].name]=oA[cA].toJSON(EA);return rA}}QA.arrayToJSON=sA,QA.isReservedId=function(EA,rA){if(EA){for(var cA=0;cA<EA.length;++cA)if(typeof EA[cA]!="string"&&EA[cA][0]<=rA&&EA[cA][1]>rA)return!0}return!1},QA.isReservedName=function(EA,rA){if(EA){for(var cA=0;cA<EA.length;++cA)if(EA[cA]===rA)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 rA=this;if(EA)for(var cA=Object.keys(EA),uA=0,lA;uA<cA.length;++uA)lA=EA[cA[uA]],rA.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 rA=this.get(EA.name);if(rA)if(rA instanceof QA&&EA instanceof QA&&!(rA instanceof iA||rA instanceof IA)){for(var cA=rA.nestedArray,uA=0;uA<cA.length;++uA)EA.add(cA[uA]);this.remove(rA),this.nested||(this.nested={}),EA.setOptions(rA.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,rA){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 rA&&cA.addJSON(rA),cA},QA.prototype.resolveAll=function(){for(var EA=this.nestedArray,rA=0;rA<EA.length;)EA[rA]instanceof QA?EA[rA++].resolveAll():EA[rA++].resolve();return this.resolve()},QA.prototype.lookup=function(EA,rA,cA){if(typeof rA=="boolean"?(cA=rA,rA=void 0):rA&&!Array.isArray(rA)&&(rA=[rA]),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),rA);var uA=this.get(EA[0]);if(uA){if(EA.length===1){if(!rA||rA.indexOf(uA.constructor)>-1)return uA}else if(uA instanceof QA&&(uA=uA.lookup(EA.slice(1),rA,!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,rA,!0)))return uA;return this.parent===null||cA?null:this.parent.lookup(EA,rA)},QA.prototype.lookupType=function(EA){var rA=this.lookup(EA,[iA]);if(!rA)throw Error("no such type: "+EA);return rA},QA.prototype.lookupEnum=function(EA){var rA=this.lookup(EA,[BA]);if(!rA)throw Error("no such Enum '"+EA+"' in "+this);return rA},QA.prototype.lookupTypeOrEnum=function(EA){var rA=this.lookup(EA,[iA,BA]);if(!rA)throw Error("no such Type or Enum '"+EA+"' in "+this);return rA},QA.prototype.lookupService=function(EA){var rA=this.lookup(EA,[IA]);if(!rA)throw Error("no such Service '"+EA+"' in "+this);return rA},QA._configure=function(oA,EA,rA){iA=oA,IA=EA,BA=rA},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,rA;EA<this.methodsArray.length;++EA){var cA=tA.lcFirst((rA=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:rA,q:rA.resolvedRequestType.ctor,s:rA.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(rA){return rA.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(),rA="m"+AA.safeProp(EA.name);if(EA.optional&&sA("if(%s!=null&&m.hasOwnProperty(%j)){",rA,EA.name),EA.map)sA("if(!util.isObject(%s))",rA)("return%j",tA(EA,"object"))("var k=Object.keys(%s)",rA)("for(var i=0;i<k.length;++i){"),iA(sA,EA,"k[i]"),gA(sA,EA,oA,rA+"[k[i]]")("}");else if(EA.repeated)sA("if(!Array.isArray(%s))",rA)("return%j",tA(EA,"array"))("for(var i=0;i<%s.length;++i){",rA),gA(sA,EA,oA,rA+"[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,rA)}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,rA=Object.keys(EA),cA=0;cA<rA.length;++cA)EA[rA[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:",rA[cA])("case %i:",EA[rA[cA]])("m%s=%j",CA,EA[rA[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(),rA=gA.safeProp(EA.name);EA.map?(CA("if(d%s){",rA)('if(typeof d%s!=="object")',rA)("throw TypeError(%j)",EA.fullName+": object expected")("m%s={}",rA)("for(var ks=Object.keys(d%s),i=0;i<ks.length;++i){",rA),iA(CA,EA,oA,rA+"[ks[i]]")("}")("}")):EA.repeated?(CA("if(d%s){",rA)("if(!Array.isArray(d%s))",rA)("throw TypeError(%j)",EA.fullName+": array expected")("m%s=[]",rA)("for(var i=0;i<d%s.length;++i){",rA),iA(CA,EA,oA,rA+"[i]")("}")("}")):(EA.resolvedType instanceof tA||CA("if(d%s!=null){",rA),iA(CA,EA,oA,rA),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=[],rA=[],cA=0;cA<QA.length;++cA)QA[cA].partOf||(QA[cA].resolve().repeated?oA:QA[cA].map?EA:rA).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(rA.length){for(CA("if(o.defaults){"),cA=0;cA<rA.length;++cA){var uA=rA[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(),rA=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,yA;RA<DA.fieldsArray.length;++RA)(yA=DA._fieldsArray[RA]).map?wA("this%s={}",CA.safeProp(yA.name)):yA.repeated&&wA("this%s=[]",CA.safeProp(yA.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 yA=Object.keys(wA.fields),kA=0;kA<yA.length;++kA)RA.add((typeof wA.fields[yA[kA]].keyType<"u"?iA.fromJSON:gA.fromJSON)(yA[kA],wA.fields[yA[kA]]));if(wA.oneofs)for(yA=Object.keys(wA.oneofs),kA=0;kA<yA.length;++kA)RA.add(tA.fromJSON(yA[kA],wA.oneofs[yA[kA]]));if(wA.nested)for(yA=Object.keys(wA.nested),kA=0;kA<yA.length;++kA){var LA=wA.nested[yA[kA]];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)(yA[kA],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(yA){return!yA.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=rA(this)({types:wA,util:CA}),this.fromObject=cA.fromObject(this)({types:wA,util:CA}),this.toObject=cA.toObject(this)({types:wA,util:CA});var yA=uA[DA];if(yA){var kA=Object.create(this);kA.fromObject=this.fromObject,this.fromObject=yA.fromObject.bind(kA),kA.toObject=this.toObject,this.toObject=yA.toObject.bind(kA)}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(rA){eA.call(this,"",rA),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 rA(cA,uA,lA){typeof uA=="function"&&(lA=uA,uA=void 0);var hA=this;if(!lA)return iA.asPromise(rA,hA,cA,uA);var dA=lA===CA;function DA(bA,JA){if(lA){if(dA)throw bA;var MA=lA;lA=null,MA(bA,JA)}}function wA(bA){var JA=bA.lastIndexOf("google/protobuf/");if(JA>-1){var MA=bA.substring(JA);if(MA in sA)return MA}return null}function RA(bA,JA){try{if(iA.isString(JA)&&JA.charAt(0)==="{"&&(JA=JSON.parse(JA)),!iA.isString(JA))hA.setOptions(JA.options).addJSON(JA.nested);else{BA.filename=bA;var MA=BA(JA,hA,uA),NA,SA=0;if(MA.imports)for(;SA<MA.imports.length;++SA)(NA=wA(MA.imports[SA])||hA.resolvePath(bA,MA.imports[SA]))&&yA(NA);if(MA.weakImports)for(SA=0;SA<MA.weakImports.length;++SA)(NA=wA(MA.weakImports[SA])||hA.resolvePath(bA,MA.weakImports[SA]))&&yA(NA,!0)}}catch(qA){DA(qA)}!dA&&!kA&&DA(null,hA)}function yA(bA,JA){if(bA=wA(bA)||bA,!(hA.files.indexOf(bA)>-1)){if(hA.files.push(bA),bA in sA){dA?RA(bA,sA[bA]):(++kA,setTimeout(function(){--kA,RA(bA,sA[bA])}));return}if(dA){var MA;try{MA=iA.fs.readFileSync(bA).toString("utf8")}catch(NA){JA||DA(NA);return}RA(bA,MA)}else++kA,hA.fetch(bA,function(NA,SA){if(--kA,!!lA){if(NA){JA?kA||DA(null,hA):DA(NA);return}RA(bA,SA)}})}}var kA=0;iA.isString(cA)&&(cA=[cA]);for(var LA=0,KA;LA<cA.length;++LA)(KA=hA.resolvePath("",cA[LA]))&&yA(KA);if(dA)return hA;kA||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(rA,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(rA,cA,uA){IA=rA,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),rA=0;rA<oA.length;)EA[rA]=CA[oA[rA++]];return EA}return[]},eA.toObject=function(CA){for(var oA={},EA=0;EA<CA.length;){var rA=CA[EA++],cA=CA[EA++];cA!==void 0&&(oA[rA]=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 rA(cA,uA,lA){var hA=uA.shift();if(hA==="__proto__"||hA==="prototype")return cA;if(uA.length>0)cA[hA]=rA(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("."),rA(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),rA=oA.resolvedType instanceof eA?"int32":oA.type,cA=AA.basic[rA];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,rA,QA),BA("}")("}")):oA.repeated?(BA("if(%s!=null&&%s.length){",QA,QA),oA.packed&&AA.packed[rA]!==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])",rA,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,rA,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,rA,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_ValueRequest:3,MessageType_ValueResponse:4,MessageType_ValueUpdate:5,MessageType_SignalRequest:6,MessageType_SignalResponse:7,MessageType_SignalNotify:8,MessageType_FileRequest:9,MessageType_FileResponse:10}},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}}},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}}},FrameCache:{fields:{id:{type:"string",id:1},content:{type:"string",id:2},files:{rule:"repeated",type:"FileInfo",id:3}}}}}}}}}}},nil_xit_proto=protobufjs.Root.fromJSON(proto_data).lookup("nil.xit.proto"),USER_TAG="<nil_xit_user>",RESOURCE_TAG="<nil_xit_resource>",INTERNAL_TAG="<nil_xit_internal>",SVELTE_VERSION="5",ROOT_FILE=eA=>`import { mount, unmount } from 'svelte';
|
|
5
|
+
import Component from "${USER_TAG}${eA.replace(/\\/g,"/")}";
|
|
6
|
+
export const action = (target, context) => {
|
|
7
|
+
let ref = mount(Component, { target, context });
|
|
8
|
+
return { destroy: () => unmount(ref) }
|
|
9
|
+
};`,AMD_BANNER=()=>`const define = ([_, ...imports], func) => (async (import_map) => {
|
|
10
|
+
const exports = {};
|
|
11
|
+
func(exports, ...(await Promise.all(imports.map(i => import_map[i]()))));
|
|
12
|
+
return exports;
|
|
13
|
+
});
|
|
14
|
+
export const nil_xit_fn = `;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
15
|
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
16
|
`,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),rA=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(rA,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,rA=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=rA,this.awaitPos=cA,this.awaitIdentPos=uA,this.parseSubscriptAsyncArrow(AA,tA,lA,BA);this.checkExpressionErrors(EA,!0),this.yieldPos=rA||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,rA=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=rA,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=rA||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
17
|
`),cooked:null}):tA.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
|
|
@@ -12,12 +22,7 @@ Defaulting to 2020, but this will stop working in the future.`)),AA.ecmaVersion=
|
|
|
12
22
|
`;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return codePointToString(this.readCodePoint());case 116:return" ";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,"Invalid escape sequence"),eA){var tA=this.pos-1;this.invalidStringToken(tA,"Invalid escape sequence in template string")}default:if(AA>=48&&AA<=55){var gA=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],iA=parseInt(gA,8);return iA>255&&(gA=gA.slice(0,-1),iA=parseInt(gA,8)),this.pos+=gA.length-1,AA=this.input.charCodeAt(this.pos),(gA!=="0"||AA===56||AA===57)&&(this.strict||eA)&&this.invalidStringToken(this.pos-1-gA.length,eA?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(iA)}return isNewLine(AA)?(this.options.locations&&(this.lineStart=this.pos,++this.curLine),""):String.fromCharCode(AA)}},pp.readHexChar=function(eA){var AA=this.pos,tA=this.readInt(16,eA);return tA===null&&this.invalidStringToken(AA,"Bad character escape sequence"),tA},pp.readWord1=function(){this.containsEsc=!1;for(var eA="",AA=!0,tA=this.pos,gA=this.options.ecmaVersion>=6;this.pos<this.input.length;){var iA=this.fullCharCodeAtPos();if(isIdentifierChar(iA,gA))this.pos+=iA<=65535?1:2;else if(iA===92){this.containsEsc=!0,eA+=this.input.slice(tA,this.pos);var IA=this.pos;this.input.charCodeAt(++this.pos)!==117&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var BA=this.readCodePoint();(AA?isIdentifierStart:isIdentifierChar)(BA,gA)||this.invalidStringToken(IA,"Invalid Unicode escape"),eA+=codePointToString(BA),tA=this.pos}else break;AA=!1}return eA+this.input.slice(tA,this.pos)},pp.readWord=function(){var eA=this.readWord1(),AA=types$1.name;return this.keywords.test(eA)&&(AA=keywords[eA]),this.finishToken(AA,eA)};var version="8.13.0";Parser$1.acorn={Parser:Parser$1,version,defaultOptions,Position,SourceLocation,getLineInfo,Node,TokenType,tokTypes:types$1,keywordTypes:keywords,TokContext,tokContexts:types,isIdentifierChar,isIdentifierStart,Token,isNewLine,lineBreak,lineBreakG,nonASCIIwhitespace};function parse$2(eA,AA){return Parser$1.parse(eA,AA)}function parseExpressionAt(eA,AA,tA){return Parser$1.parseExpressionAt(eA,AA,tA)}function tokenizer(eA,AA){return Parser$1.tokenizer(eA,AA)}var t$2=Object.freeze({__proto__:null,Node,Parser:Parser$1,Position,SourceLocation,TokContext,Token,TokenType,defaultOptions,getLineInfo,isIdentifierChar,isIdentifierStart,isNewLine,keywordTypes:keywords,lineBreak,lineBreakG,nonASCIIwhitespace,parse:parse$2,parseExpressionAt,tokContexts:types,tokTypes:types$1,tokenizer,version});class WalkerBase{constructor(){this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.context={skip:()=>this.should_skip=!0,remove:()=>this.should_remove=!0,replace:AA=>this.replacement=AA}}replace(AA,tA,gA,iA){AA&&tA&&(gA!=null?AA[tA][gA]=iA:AA[tA]=iA)}remove(AA,tA,gA){AA&&tA&&(gA!=null?AA[tA].splice(gA,1):delete AA[tA])}}class SyncWalker extends WalkerBase{constructor(AA,tA){super(),this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.context={skip:()=>this.should_skip=!0,remove:()=>this.should_remove=!0,replace:gA=>this.replacement=gA},this.enter=AA,this.leave=tA}visit(AA,tA,gA,iA){if(AA){if(this.enter){const BA=this.should_skip,sA=this.should_remove,QA=this.replacement;this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.enter.call(this.context,AA,tA,gA,iA),this.replacement&&(AA=this.replacement,this.replace(tA,gA,iA,AA)),this.should_remove&&this.remove(tA,gA,iA);const CA=this.should_skip,oA=this.should_remove;if(this.should_skip=BA,this.should_remove=sA,this.replacement=QA,CA)return AA;if(oA)return null}let IA;for(IA in AA){const BA=AA[IA];if(BA&&typeof BA=="object")if(Array.isArray(BA)){const sA=BA;for(let QA=0;QA<sA.length;QA+=1){const CA=sA[QA];isNode(CA)&&(this.visit(CA,AA,IA,QA)||QA--)}}else isNode(BA)&&this.visit(BA,AA,IA,null)}if(this.leave){const BA=this.replacement,sA=this.should_remove;this.replacement=null,this.should_remove=!1,this.leave.call(this.context,AA,tA,gA,iA),this.replacement&&(AA=this.replacement,this.replace(tA,gA,iA,AA)),this.should_remove&&this.remove(tA,gA,iA);const QA=this.should_remove;if(this.replacement=BA,this.should_remove=sA,QA)return null}}return AA}}function isNode(eA){return eA!==null&&typeof eA=="object"&&"type"in eA&&typeof eA.type=="string"}function walk$1(eA,{enter:AA,leave:tA}){return new SyncWalker(AA,tA).visit(eA,null)}const require="function require(id) {\n if (id in __repl_lookup) return __repl_lookup[id];\n throw new Error(`Cannot require modules dynamically (${id})`);\n}",plugin$1=()=>({name:"commonjs",transform:(eA,AA)=>{if(/\b(require|module|exports)\b/.test(eA))try{const tA=parse$2(eA,{ecmaVersion:"latest"}),gA=[];walk$1(tA,{enter:sA=>{if(sA.type==="CallExpression"&&sA.callee.name==="require"){if(sA.arguments.length!==1)return;const QA=sA.arguments[0];if(QA.type!=="Literal"||typeof QA.value!="string")return;gA.push(QA.value)}}});const iA=gA.map((sA,QA)=>`import __repl_${QA} from '${sA}';`).join(`
|
|
13
23
|
`),IA=`const __repl_lookup = { ${gA.map((sA,QA)=>`'${sA}': __repl_${QA}`).join(", ")} };`;return{code:[iA,IA,require,"const exports = {}; const module = { exports };",eA,"export default module.exports;"].join(`
|
|
14
24
|
|
|
15
|
-
`),map:null}}catch{return null}}});function e$2(eA,AA,tA){throw new Error(tA?`No known conditions for "${AA}" specifier in "${eA}" package`:`Missing "${AA}" specifier in "${eA}" package`)}function n$3(eA,AA,tA,gA){let iA,IA,BA=r$1(eA,tA),sA=function(CA){let oA=new Set(["default",...CA.conditions||[]]);return CA.unsafe||oA.add(CA.require?"require":"import"),CA.unsafe||oA.add(CA.browser?"browser":"node"),oA}(gA||{}),QA=AA[BA];if(QA===void 0){let CA,oA,EA,rA;for(rA in AA)oA&&rA.length<oA.length||(rA[rA.length-1]==="/"&&BA.startsWith(rA)?(IA=BA.substring(rA.length),oA=rA):rA.length>1&&(EA=rA.indexOf("*",1),~EA&&(CA=RegExp("^"+rA.substring(0,EA)+"(.*)"+rA.substring(1+EA)).exec(BA),CA&&CA[1]&&(IA=CA[1],oA=rA))));QA=AA[oA]}return QA||e$2(eA,BA),iA=t$1(QA,sA),iA||e$2(eA,BA,1),IA&&function(CA,oA){let EA,rA=0,cA=CA.length,uA=/[*]/g,lA=/[/]$/;for(;rA<cA;rA++)CA[rA]=uA.test(EA=CA[rA])?EA.replace(uA,oA):lA.test(EA)?EA+oA:EA}(iA,IA),iA}function r$1(eA,AA,tA){if(eA===AA||AA===".")return".";let gA=eA+"/",iA=gA.length,IA=AA.slice(0,iA)===gA,BA=IA?AA.slice(iA):AA;return BA[0]==="#"?BA:IA||!tA?BA.slice(0,2)==="./"?BA:"./"+BA:BA}function t$1(eA,AA,tA){if(eA){if(typeof eA=="string")return tA&&tA.add(eA),[eA];let gA,iA;if(Array.isArray(eA)){for(iA=tA||new Set,gA=0;gA<eA.length;gA++)t$1(eA[gA],AA,iA);if(!tA&&iA.size)return[...iA]}else for(gA in eA)if(AA.has(gA))return t$1(eA[gA],AA,tA)}}function o$2(eA,AA,tA){let gA,iA=eA.exports;if(iA){if(typeof iA=="string")iA={".":iA};else for(gA in iA){gA[0]!=="."&&(iA={".":iA});break}return n$3(eA.name,iA,AA||".",tA)}}const
|
|
16
|
-
import Component from "${USER_TAG}${eA.replace(/\\/g,"/")}";
|
|
17
|
-
export const action = (target, context) => {
|
|
18
|
-
let ref = mount(Component, { target, context });
|
|
19
|
-
return { destroy: () => unmount(ref) }
|
|
20
|
-
};`,JSON_PKG_CACHE=new Map,SCOPED_PKG_REGEX=/^(@[^/]*\/[^/]*)(?:\/(.*))?$/s,PKG_REGEX=/^([^/]*)(?:\/(.*))?$/s,FILE_PREFIX="file:/",WIN_FILE_PREFIX="file:///",resolve_local=async(eA,AA)=>{if(AA!=null){const tA=new URL(`${FILE_PREFIX}${AA}`),gA=new URL(eA,tA).href;return gA.startsWith(WIN_FILE_PREFIX)?gA.slice(8):gA.slice(6)}return eA},resolve_remote=async(eA,AA)=>(await fetch(new URL(eA,AA),{method:"HEAD"})).url,fetch_json_remote=async eA=>{const AA=await fetch(eA);if(AA.ok)return JSON.parse(await AA.text())},fetch_package_json=async(eA,AA)=>{const[tA,gA,iA=""]=eA.split(eA.startsWith("@")?SCOPED_PKG_REGEX:PKG_REGEX),IA=`${AA}/${gA}`,BA=`${IA}/package.json`;if(JSON_PKG_CACHE.has(BA))return JSON_PKG_CACHE.get(BA);const sA=await fetch_json_remote(BA);if(sA!=null)return JSON_PKG_CACHE.set(BA,{base:IA,rest:iA,json:sA}),JSON_PKG_CACHE.get(BA)},resolve_id=eA=>({input:AA=>({resolved:AA}),hook:async(AA,tA)=>{if(AA.startsWith(INTERNAL_TAG)||AA.startsWith(USER_TAG))return AA;if(AA.startsWith("svelte")&&(AA=`svelte@${SVELTE_VERSION}${AA.slice(6)}`),AA.startsWith(".")){if(tA!=null&&tA.startsWith(USER_TAG))return`${USER_TAG}${await resolve_local(AA,tA.slice(USER_TAG.length))}`;if(tA!=null&&tA.startsWith(RESOURCE_TAG))return`${RESOURCE_TAG}${await resolve_remote(AA,tA.slice(RESOURCE_TAG.length))}`}const gA=await fetch_package_json(AA,eA.cdn_url);if(gA!=null){const iA=o$2(gA.json,gA.rest,{browser:!0,conditions:["svelte","production"]});if(Array.isArray(iA)&&iA.length>0)return`${RESOURCE_TAG}${await resolve_remote(`${gA.base}/${iA[0]}`)}`;if(typeof iA=="string")return`${RESOURCE_TAG}${await resolve_remote(`${gA.base}/${iA}`)}`}throw"unknown file, should be unreachable"}});function walk(eA,AA,tA){const gA=tA._;let iA=!1;function IA(sA,{next:QA,state:CA}){QA(CA)}function BA(sA,QA,CA){if(iA||!sA.type)return;let oA;const EA={},rA={path:QA,state:CA,next:(uA=CA)=>{QA.push(sA);for(const lA in sA){if(lA==="type")continue;const hA=sA[lA];if(hA&&typeof hA=="object")if(Array.isArray(hA)){const dA={};hA.forEach((DA,wA)=>{if(DA&&typeof DA=="object"){const RA=BA(DA,QA,uA);RA&&(dA[wA]=RA)}}),Object.keys(dA).length>0&&(EA[lA]=hA.map((DA,wA)=>dA[wA]??DA))}else{const dA=BA(hA,QA,uA);dA&&(EA[lA]=dA)}}if(QA.pop(),Object.keys(EA).length>0)return apply_mutations(sA,EA)},stop:()=>{iA=!0},visit:(uA,lA=CA)=>{QA.push(sA);const hA=BA(uA,QA,lA)??uA;return QA.pop(),hA}};let cA=tA[sA.type]??IA;if(gA){let uA;oA=gA(sA,{...rA,next:(lA=CA)=>(CA=lA,uA=cA(sA,{...rA,state:lA}),uA)}),!oA&&uA&&(oA=uA)}else oA=cA(sA,rA);if(oA||Object.keys(EA).length>0&&(oA=apply_mutations(sA,EA)),oA)return oA}return BA(eA,[],AA)??eA}function apply_mutations(eA,AA){const tA={},gA=Object.getOwnPropertyDescriptors(eA);for(const iA in gA)Object.defineProperty(tA,iA,gA[iA]);for(const iA in AA)tA[iA]=AA[iA];return tA}const regex_whitespace=/\s/,regex_whitespaces=/\s+/,regex_starts_with_newline=/^\r?\n/,regex_starts_with_whitespace=/^\s/,regex_starts_with_whitespaces=/^[ \t\r\n]+/,regex_ends_with_whitespace=/\s$/,regex_ends_with_whitespaces=/[ \t\r\n]+$/,regex_not_whitespace=/[^ \t\r\n]/,regex_whitespaces_strict=/[ \t\n\r\f]+/g,regex_only_whitespaces=/^[ \t\n\r\f]+$/,regex_not_newline_characters=/[^\n]/g,regex_is_valid_identifier=/^[a-zA-Z_$][a-zA-Z_$0-9]*$/,regex_invalid_identifier_chars=/(^[^a-zA-Z_$]|[^a-zA-Z0-9_$])/g,regex_starts_with_vowel=/^[aeiou]/,regex_heading_tags=/^h[1-6]$/,regex_illegal_attribute_character=/(^[0-9-.])|[\^$@%&#?!|()[\]{}^*+~;]/,EACH_ITEM_REACTIVE=1,EACH_INDEX_REACTIVE=2,EACH_IS_CONTROLLED=4,EACH_IS_ANIMATED=8,EACH_ITEM_IMMUTABLE=16,PROPS_IS_IMMUTABLE=1,PROPS_IS_RUNES=2,PROPS_IS_UPDATED=4,PROPS_IS_BINDABLE=8,PROPS_IS_LAZY_INITIAL=16,TRANSITION_IN=1,TRANSITION_OUT=2,TRANSITION_GLOBAL=4,TEMPLATE_FRAGMENT=1,TEMPLATE_USE_IMPORT_NODE=2,HYDRATION_START="[",HYDRATION_START_ELSE="[!",HYDRATION_END="]",ELEMENT_IS_NAMESPACED=1,ELEMENT_PRESERVE_ATTRIBUTE_CASE=2,NAMESPACE_SVG="http://www.w3.org/2000/svg",NAMESPACE_MATHML="http://www.w3.org/1998/Math/MathML",IGNORABLE_RUNTIME_WARNINGS=["state_snapshot_uncloneable","binding_property_non_reactive","hydration_attribute_changed","hydration_html_changed","ownership_invalid_binding","ownership_invalid_mutation"];function fuzzymatch(eA,AA){if(AA.length===0)return null;const gA=new FuzzySet(AA).get(eA);return gA&&gA[0][0]>.7?gA[0][1]:null}const GRAM_SIZE_LOWER=2,GRAM_SIZE_UPPER=3;function _distance(eA,AA){if(eA===null&&AA===null)throw"Trying to compare two null values";return eA===null||AA===null?0:(eA=String(eA),AA=String(AA),1-levenshtein(eA,AA)/Math.max(eA.length,AA.length))}function levenshtein(eA,AA){const tA=[];let gA=0,iA=0;for(let IA=0;IA<=AA.length;IA++)for(let BA=0;BA<=eA.length;BA++)IA&&BA?eA.charAt(BA-1)===AA.charAt(IA-1)?iA=gA:iA=Math.min(tA[BA],tA[BA-1],gA)+1:iA=IA+BA,gA=tA[BA],tA[BA]=iA;return tA.pop()}const non_word_regex=/[^\w, ]+/;function iterate_grams(eA,AA=2){const tA="-"+eA.toLowerCase().replace(non_word_regex,"")+"-",gA=AA-tA.length,iA=[];if(gA>0)for(let IA=0;IA<gA;++IA)eA+="-";for(let IA=0;IA<tA.length-AA+1;++IA)iA.push(tA.slice(IA,IA+AA));return iA}function gram_counter(eA,AA=2){const tA={},gA=iterate_grams(eA,AA);let iA=0;for(iA;iA<gA.length;++iA)gA[iA]in tA?tA[gA[iA]]+=1:tA[gA[iA]]=1;return tA}function sort_descending(eA,AA){return AA[0]-eA[0]}class FuzzySet{constructor(AA){rg(this,"exact_set",{});rg(this,"match_dict",{});rg(this,"items",{});for(let tA=GRAM_SIZE_LOWER;tA<GRAM_SIZE_UPPER+1;++tA)this.items[tA]=[];for(let tA=0;tA<AA.length;++tA)this.add(AA[tA])}add(AA){if(AA.toLowerCase()in this.exact_set)return!1;let gA=GRAM_SIZE_LOWER;for(gA;gA<GRAM_SIZE_UPPER+1;++gA)this._add(AA,gA)}_add(AA,tA){const gA=AA.toLowerCase(),iA=this.items[tA]||[],IA=iA.length;iA.push(0);const BA=gram_counter(gA,tA);let sA=0,QA,CA;for(QA in BA)CA=BA[QA],sA+=Math.pow(CA,2),QA in this.match_dict?this.match_dict[QA].push([IA,CA]):this.match_dict[QA]=[[IA,CA]];const oA=Math.sqrt(sA);iA[IA]=[oA,gA],this.items[tA]=iA,this.exact_set[gA]=AA}get(AA){const tA=AA.toLowerCase(),gA=this.exact_set[tA];if(gA)return[[1,gA]];for(let iA=GRAM_SIZE_UPPER;iA>=GRAM_SIZE_LOWER;--iA){const IA=this.__get(AA,iA);if(IA.length>0)return IA}return null}__get(AA,tA){const gA=AA.toLowerCase(),iA={},IA=gram_counter(gA,tA),BA=this.items[tA];let sA=0,QA,CA,oA,EA,rA;for(QA in IA)if(CA=IA[QA],sA+=Math.pow(CA,2),QA in this.match_dict)for(oA=0;oA<this.match_dict[QA].length;++oA)EA=this.match_dict[QA][oA][0],rA=this.match_dict[QA][oA][1],EA in iA?iA[EA]+=CA*rA:iA[EA]=CA*rA;const cA=Math.sqrt(sA);let uA=[],lA;for(const DA in iA)lA=iA[DA],uA.push([lA/(cA*BA[DA][0]),BA[DA][1]]);uA.sort(sort_descending);let hA=[];const dA=Math.min(50,uA.length);for(let DA=0;DA<dA;++DA)hA.push([_distance(uA[DA][1],gA),uA[DA][1]]);uA=hA,uA.sort(sort_descending),hA=[];for(let DA=0;DA<uA.length;++DA)uA[DA][0]===uA[0][0]&&hA.push([uA[DA][0],this.exact_set[uA[DA][1]]]);return hA}}function rangeContains(eA,AA){return eA.start<=AA&&AA<eA.end}function getLocator$1(eA,AA={}){const{offsetLine:tA=0,offsetColumn:gA=0}=AA;let iA=0;const IA=eA.split(`
|
|
25
|
+
`),map:null}}catch{return null}}});function e$2(eA,AA,tA){throw new Error(tA?`No known conditions for "${AA}" specifier in "${eA}" package`:`Missing "${AA}" specifier in "${eA}" package`)}function n$3(eA,AA,tA,gA){let iA,IA,BA=r$1(eA,tA),sA=function(CA){let oA=new Set(["default",...CA.conditions||[]]);return CA.unsafe||oA.add(CA.require?"require":"import"),CA.unsafe||oA.add(CA.browser?"browser":"node"),oA}(gA||{}),QA=AA[BA];if(QA===void 0){let CA,oA,EA,rA;for(rA in AA)oA&&rA.length<oA.length||(rA[rA.length-1]==="/"&&BA.startsWith(rA)?(IA=BA.substring(rA.length),oA=rA):rA.length>1&&(EA=rA.indexOf("*",1),~EA&&(CA=RegExp("^"+rA.substring(0,EA)+"(.*)"+rA.substring(1+EA)).exec(BA),CA&&CA[1]&&(IA=CA[1],oA=rA))));QA=AA[oA]}return QA||e$2(eA,BA),iA=t$1(QA,sA),iA||e$2(eA,BA,1),IA&&function(CA,oA){let EA,rA=0,cA=CA.length,uA=/[*]/g,lA=/[/]$/;for(;rA<cA;rA++)CA[rA]=uA.test(EA=CA[rA])?EA.replace(uA,oA):lA.test(EA)?EA+oA:EA}(iA,IA),iA}function r$1(eA,AA,tA){if(eA===AA||AA===".")return".";let gA=eA+"/",iA=gA.length,IA=AA.slice(0,iA)===gA,BA=IA?AA.slice(iA):AA;return BA[0]==="#"?BA:IA||!tA?BA.slice(0,2)==="./"?BA:"./"+BA:BA}function t$1(eA,AA,tA){if(eA){if(typeof eA=="string")return tA&&tA.add(eA),[eA];let gA,iA;if(Array.isArray(eA)){for(iA=tA||new Set,gA=0;gA<eA.length;gA++)t$1(eA[gA],AA,iA);if(!tA&&iA.size)return[...iA]}else for(gA in eA)if(AA.has(gA))return t$1(eA[gA],AA,tA)}}function o$2(eA,AA,tA){let gA,iA=eA.exports;if(iA){if(typeof iA=="string")iA={".":iA};else for(gA in iA){gA[0]!=="."&&(iA={".":iA});break}return n$3(eA.name,iA,AA||".",tA)}}const JSON_PKG_CACHE=new Map,SCOPED_PKG_REGEX=/^(@[^/]*\/[^/]*)(?:\/(.*))?$/s,PKG_REGEX=/^([^/]*)(?:\/(.*))?$/s,FILE_PREFIX="file:/",WIN_FILE_PREFIX="file:///",resolve_local=async(eA,AA)=>{if(AA!=null){const tA=new URL(`${FILE_PREFIX}${AA}`),gA=new URL(eA,tA).href;return gA.startsWith(WIN_FILE_PREFIX)?gA.slice(8):gA.slice(6)}return eA},resolve_remote=async(eA,AA)=>(await fetch(new URL(eA,AA),{method:"HEAD"})).url,fetch_json_remote=async eA=>{const AA=await fetch(eA);if(AA.ok)return JSON.parse(await AA.text())},fetch_package_json=async(eA,AA)=>{const[tA,gA,iA=""]=eA.split(eA.startsWith("@")?SCOPED_PKG_REGEX:PKG_REGEX),IA=`${AA}/${gA}`,BA=`${IA}/package.json`;if(JSON_PKG_CACHE.has(BA))return JSON_PKG_CACHE.get(BA);const sA=await fetch_json_remote(BA);if(sA!=null)return JSON_PKG_CACHE.set(BA,{base:IA,rest:iA,json:sA}),JSON_PKG_CACHE.get(BA)},resolve_id=eA=>({input:AA=>({resolved:AA}),hook:async(AA,tA)=>{if(AA.startsWith(INTERNAL_TAG)||AA.startsWith(USER_TAG))return AA;if(AA.startsWith("svelte")&&(AA=`svelte@${SVELTE_VERSION}${AA.slice(6)}`),AA.startsWith(".")){if(tA!=null&&tA.startsWith(USER_TAG))return`${USER_TAG}${await resolve_local(AA,tA.slice(USER_TAG.length))}`;if(tA!=null&&tA.startsWith(RESOURCE_TAG))return`${RESOURCE_TAG}${await resolve_remote(AA,tA.slice(RESOURCE_TAG.length))}`}const gA=await fetch_package_json(AA,eA.cdn_url);if(gA!=null){const iA=o$2(gA.json,gA.rest,{browser:!0,conditions:["svelte","production"]});if(Array.isArray(iA)&&iA.length>0)return`${RESOURCE_TAG}${await resolve_remote(`${gA.base}/${iA[0]}`)}`;if(typeof iA=="string")return`${RESOURCE_TAG}${await resolve_remote(`${gA.base}/${iA}`)}`}throw"unknown file, should be unreachable"}});function walk(eA,AA,tA){const gA=tA._;let iA=!1;function IA(sA,{next:QA,state:CA}){QA(CA)}function BA(sA,QA,CA){if(iA||!sA.type)return;let oA;const EA={},rA={path:QA,state:CA,next:(uA=CA)=>{QA.push(sA);for(const lA in sA){if(lA==="type")continue;const hA=sA[lA];if(hA&&typeof hA=="object")if(Array.isArray(hA)){const dA={};hA.forEach((DA,wA)=>{if(DA&&typeof DA=="object"){const RA=BA(DA,QA,uA);RA&&(dA[wA]=RA)}}),Object.keys(dA).length>0&&(EA[lA]=hA.map((DA,wA)=>dA[wA]??DA))}else{const dA=BA(hA,QA,uA);dA&&(EA[lA]=dA)}}if(QA.pop(),Object.keys(EA).length>0)return apply_mutations(sA,EA)},stop:()=>{iA=!0},visit:(uA,lA=CA)=>{QA.push(sA);const hA=BA(uA,QA,lA)??uA;return QA.pop(),hA}};let cA=tA[sA.type]??IA;if(gA){let uA;oA=gA(sA,{...rA,next:(lA=CA)=>(CA=lA,uA=cA(sA,{...rA,state:lA}),uA)}),!oA&&uA&&(oA=uA)}else oA=cA(sA,rA);if(oA||Object.keys(EA).length>0&&(oA=apply_mutations(sA,EA)),oA)return oA}return BA(eA,[],AA)??eA}function apply_mutations(eA,AA){const tA={},gA=Object.getOwnPropertyDescriptors(eA);for(const iA in gA)Object.defineProperty(tA,iA,gA[iA]);for(const iA in AA)tA[iA]=AA[iA];return tA}const regex_whitespace=/\s/,regex_whitespaces=/\s+/,regex_starts_with_newline=/^\r?\n/,regex_starts_with_whitespace=/^\s/,regex_starts_with_whitespaces=/^[ \t\r\n]+/,regex_ends_with_whitespace=/\s$/,regex_ends_with_whitespaces=/[ \t\r\n]+$/,regex_not_whitespace=/[^ \t\r\n]/,regex_whitespaces_strict=/[ \t\n\r\f]+/g,regex_only_whitespaces=/^[ \t\n\r\f]+$/,regex_not_newline_characters=/[^\n]/g,regex_is_valid_identifier=/^[a-zA-Z_$][a-zA-Z_$0-9]*$/,regex_invalid_identifier_chars=/(^[^a-zA-Z_$]|[^a-zA-Z0-9_$])/g,regex_starts_with_vowel=/^[aeiou]/,regex_heading_tags=/^h[1-6]$/,regex_illegal_attribute_character=/(^[0-9-.])|[\^$@%&#?!|()[\]{}^*+~;]/,EACH_ITEM_REACTIVE=1,EACH_INDEX_REACTIVE=2,EACH_IS_CONTROLLED=4,EACH_IS_ANIMATED=8,EACH_ITEM_IMMUTABLE=16,PROPS_IS_IMMUTABLE=1,PROPS_IS_RUNES=2,PROPS_IS_UPDATED=4,PROPS_IS_BINDABLE=8,PROPS_IS_LAZY_INITIAL=16,TRANSITION_IN=1,TRANSITION_OUT=2,TRANSITION_GLOBAL=4,TEMPLATE_FRAGMENT=1,TEMPLATE_USE_IMPORT_NODE=2,HYDRATION_START="[",HYDRATION_START_ELSE="[!",HYDRATION_END="]",ELEMENT_IS_NAMESPACED=1,ELEMENT_PRESERVE_ATTRIBUTE_CASE=2,NAMESPACE_SVG="http://www.w3.org/2000/svg",NAMESPACE_MATHML="http://www.w3.org/1998/Math/MathML",IGNORABLE_RUNTIME_WARNINGS=["state_snapshot_uncloneable","binding_property_non_reactive","hydration_attribute_changed","hydration_html_changed","ownership_invalid_binding","ownership_invalid_mutation"];function fuzzymatch(eA,AA){if(AA.length===0)return null;const gA=new FuzzySet(AA).get(eA);return gA&&gA[0][0]>.7?gA[0][1]:null}const GRAM_SIZE_LOWER=2,GRAM_SIZE_UPPER=3;function _distance(eA,AA){if(eA===null&&AA===null)throw"Trying to compare two null values";return eA===null||AA===null?0:(eA=String(eA),AA=String(AA),1-levenshtein(eA,AA)/Math.max(eA.length,AA.length))}function levenshtein(eA,AA){const tA=[];let gA=0,iA=0;for(let IA=0;IA<=AA.length;IA++)for(let BA=0;BA<=eA.length;BA++)IA&&BA?eA.charAt(BA-1)===AA.charAt(IA-1)?iA=gA:iA=Math.min(tA[BA],tA[BA-1],gA)+1:iA=IA+BA,gA=tA[BA],tA[BA]=iA;return tA.pop()}const non_word_regex=/[^\w, ]+/;function iterate_grams(eA,AA=2){const tA="-"+eA.toLowerCase().replace(non_word_regex,"")+"-",gA=AA-tA.length,iA=[];if(gA>0)for(let IA=0;IA<gA;++IA)eA+="-";for(let IA=0;IA<tA.length-AA+1;++IA)iA.push(tA.slice(IA,IA+AA));return iA}function gram_counter(eA,AA=2){const tA={},gA=iterate_grams(eA,AA);let iA=0;for(iA;iA<gA.length;++iA)gA[iA]in tA?tA[gA[iA]]+=1:tA[gA[iA]]=1;return tA}function sort_descending(eA,AA){return AA[0]-eA[0]}class FuzzySet{constructor(AA){rg(this,"exact_set",{});rg(this,"match_dict",{});rg(this,"items",{});for(let tA=GRAM_SIZE_LOWER;tA<GRAM_SIZE_UPPER+1;++tA)this.items[tA]=[];for(let tA=0;tA<AA.length;++tA)this.add(AA[tA])}add(AA){if(AA.toLowerCase()in this.exact_set)return!1;let gA=GRAM_SIZE_LOWER;for(gA;gA<GRAM_SIZE_UPPER+1;++gA)this._add(AA,gA)}_add(AA,tA){const gA=AA.toLowerCase(),iA=this.items[tA]||[],IA=iA.length;iA.push(0);const BA=gram_counter(gA,tA);let sA=0,QA,CA;for(QA in BA)CA=BA[QA],sA+=Math.pow(CA,2),QA in this.match_dict?this.match_dict[QA].push([IA,CA]):this.match_dict[QA]=[[IA,CA]];const oA=Math.sqrt(sA);iA[IA]=[oA,gA],this.items[tA]=iA,this.exact_set[gA]=AA}get(AA){const tA=AA.toLowerCase(),gA=this.exact_set[tA];if(gA)return[[1,gA]];for(let iA=GRAM_SIZE_UPPER;iA>=GRAM_SIZE_LOWER;--iA){const IA=this.__get(AA,iA);if(IA.length>0)return IA}return null}__get(AA,tA){const gA=AA.toLowerCase(),iA={},IA=gram_counter(gA,tA),BA=this.items[tA];let sA=0,QA,CA,oA,EA,rA;for(QA in IA)if(CA=IA[QA],sA+=Math.pow(CA,2),QA in this.match_dict)for(oA=0;oA<this.match_dict[QA].length;++oA)EA=this.match_dict[QA][oA][0],rA=this.match_dict[QA][oA][1],EA in iA?iA[EA]+=CA*rA:iA[EA]=CA*rA;const cA=Math.sqrt(sA);let uA=[],lA;for(const DA in iA)lA=iA[DA],uA.push([lA/(cA*BA[DA][0]),BA[DA][1]]);uA.sort(sort_descending);let hA=[];const dA=Math.min(50,uA.length);for(let DA=0;DA<dA;++DA)hA.push([_distance(uA[DA][1],gA),uA[DA][1]]);uA=hA,uA.sort(sort_descending),hA=[];for(let DA=0;DA<uA.length;++DA)uA[DA][0]===uA[0][0]&&hA.push([uA[DA][0],this.exact_set[uA[DA][1]]]);return hA}}function rangeContains(eA,AA){return eA.start<=AA&&AA<eA.end}function getLocator$1(eA,AA={}){const{offsetLine:tA=0,offsetColumn:gA=0}=AA;let iA=0;const IA=eA.split(`
|
|
21
26
|
`).map((QA,CA)=>{const oA=iA+QA.length+1,EA={start:iA,end:oA,line:CA};return iA=oA,EA});let BA=0;function sA(QA,CA){if(typeof QA=="string"&&(QA=eA.indexOf(QA,CA??0)),QA===-1)return;let oA=IA[BA];const EA=QA>=oA.end?1:-1;for(;oA;){if(rangeContains(oA,QA))return{line:tA+oA.line,column:gA+QA-oA.start,character:QA};BA+=EA,oA=IA[BA]}}return sA}let warnings=[],filename,source,dev,locator=getLocator$1("",{offsetLine:1}),warning_filter,ignore_stack=[],ignore_map=new Map;function push_ignore(eA){const AA=new Set([...ignore_stack.at(-1)||[],...eA]);ignore_stack.push(AA)}function pop_ignore(){ignore_stack.pop()}function reset_warning_filter(eA=()=>!0){warning_filter=eA}function is_ignored(eA,AA){var tA;return dev&&!!((tA=ignore_map.get(eA))!=null&&tA.some(gA=>gA.has(AA)))}function reset(eA,AA){var gA;source=eA;const tA=(gA=AA.rootDir)==null?void 0:gA.replace(/\\/g,"/");filename=AA.filename.replace(/\\/g,"/"),dev=!!AA.dev,typeof tA=="string"&&filename.startsWith(tA)&&(filename=filename.replace(tA,"").replace(/^[/\\]/,"")),locator=getLocator$1(source,{offsetLine:1}),warnings=[],ignore_stack=[],ignore_map.clear()}const regex_tabs=/^\t+/;function tabs_to_spaces(eA){return eA.replace(regex_tabs,AA=>AA.split(" ").join(" "))}function get_code_frame(eA,AA,tA){const gA=eA.split(`
|
|
22
27
|
`),iA=Math.max(0,AA-2),IA=Math.min(AA+3,gA.length),BA=String(IA+1).length;return gA.slice(iA,IA).map((sA,QA)=>{const CA=iA+QA===AA,oA=String(QA+iA+1).padStart(BA," ");if(CA){const EA=" ".repeat(BA+2+tabs_to_spaces(sA.slice(0,tA)).length)+"^";return`${oA}: ${tabs_to_spaces(sA)}
|
|
23
28
|
${EA}`}return`${oA}: ${tabs_to_spaces(sA)}`}).join(`
|
|
@@ -104,4 +109,4 @@ Either change the import in "${ge(sA)}" to point directly to the exporting modul
|
|
|
104
109
|
`||(CA+=`
|
|
105
110
|
`),cA){let DA;El("sourcemaps",3),DA=rA?M(lA||rA):EA?M(EA,AA):M(AA),sA=function(wA,RA,yA,kA,LA,KA){const bA=mc(KA),JA=yA.filter(aA=>!aA.excludeFromSourcemap).map(aA=>gc(aA.id,aA.originalCode,aA.originalSourcemap,aA.sourcemapChain,bA)),MA=new fc(RA,JA),NA=kA.reduce(bA,MA);let{sources:SA,sourcesContent:qA,names:UA,mappings:mA}=NA.traceMappings();if(wA){const aA=C(wA);SA=SA.map(nA=>D(aA,nA)),wA=N(wA)}qA=LA?null:qA;for(const aA of yA)il(aA.originalSourcemap,aA.sourcemapChain);return new c({file:wA,mappings:mA,names:UA,sources:SA,sourcesContent:qA})}(DA,eA.generateDecodedMap({}),tA,QA,uA,BA);for(let wA=0;wA<sA.sources.length;++wA){let RA=sA.sources[wA];const yA=`${DA}.map`,kA=dA(RA,yA);typeof kA!="boolean"&&Me(bt("sourcemapIgnoreList function must return a boolean.")),kA&&(sA.x_google_ignoreList===void 0&&(sA.x_google_ignoreList=[]),sA.x_google_ignoreList.includes(wA)||sA.x_google_ignoreList.push(wA)),hA&&(RA=hA(RA,yA),typeof RA!="string"&&Me(bt("sourcemapPathTransform function must return a string."))),sA.sources[wA]=k(RA)}xl("sourcemaps",3)}return{code:CA,map:sA}}function vc(eA,AA,tA,{sourcemap:gA,sourcemapBaseUrl:iA}){let IA;if(gA==="inline")IA=AA.toUrl();else{const BA=N(eA);IA=iA?new URL(BA,iA).toString():BA,tA.emitFile({fileName:eA,originalFileName:null,source:AA.toString(),type:"asset"})}return gA==="hidden"?"":`//# sourceMappingURL=${IA}
|
|
106
111
|
`}class wc{constructor(AA,tA,gA,iA,IA){this.outputOptions=AA,this.unsetOptions=tA,this.inputOptions=gA,this.pluginDriver=iA,this.graph=IA,this.facadeChunkByModule=new Map,this.includedNamespaces=new Set}async generate(AA){El("GENERATE",1);const tA=Object.create(null),gA=(iA=>{const IA=new Set;return new Proxy(iA,{deleteProperty:(BA,sA)=>(typeof sA=="string"&&IA.delete(sA.toLowerCase()),Reflect.deleteProperty(BA,sA)),get:(BA,sA)=>sA===Ul?IA:Reflect.get(BA,sA),set:(BA,sA,QA)=>(typeof sA=="string"&&IA.add(sA.toLowerCase()),Reflect.set(BA,sA,QA))})})(tA);this.pluginDriver.setOutputBundle(gA,this.outputOptions);try{El("initialize render",2),await this.pluginDriver.hookParallel("renderStart",[this.outputOptions,this.inputOptions]),xl("initialize render",2),El("generate chunks",2);const iA=(()=>{let BA=0;return(sA,QA)=>{if(QA>22)return Me(bt(`Hashes cannot be longer than 22 characters, received ${QA}. Check the "${sA}" option.`));const CA=`${Bl}${Ds(++BA).padStart(QA-5,"0")}${zl}`;return CA.length>QA?Me(bt(`To generate hashes for this number of chunks (currently ${BA}), you need a minimum hash size of ${CA.length}, received ${QA}. Check the "${sA}" option.`)):CA}})(),IA=await this.generateChunks(gA,iA);IA.length>1&&function(BA,sA){if(BA.format==="umd"||BA.format==="iife")return Me(ot("output.format",Ie,"UMD and IIFE output formats are not supported for code-splitting builds",BA.format));if(typeof BA.file=="string")return Me(ot("output.file",ve,'when building multiple chunks, the "output.dir" option must be used, not "output.file". To inline dynamic imports, set the "inlineDynamicImports" option'));if(BA.sourcemapFile)return Me(ot("output.sourcemapFile",Oe,'"output.sourcemapFile" is only supported for single-file builds'));!BA.amd.autoId&&BA.amd.id&&sA(de,ot("output.amd.id",$e,'this option is only properly supported for single-file builds. Use "output.amd.autoId" and "output.amd.basePath" instead'))}(this.outputOptions,this.inputOptions.onLog),this.pluginDriver.setChunkInformation(this.facadeChunkByModule);for(const BA of IA)BA.generateExports();xl("generate chunks",2),await Ac(IA,gA,this.pluginDriver,this.outputOptions,this.inputOptions.onLog)}catch(iA){throw await this.pluginDriver.hookParallel("renderError",[iA]),iA}return(iA=>{const IA=new Set,BA=Object.values(iA);for(const sA of BA)sA.type==="asset"&&sA.needsCodeReference&&IA.add(sA.fileName);for(const sA of BA)if(sA.type==="chunk")for(const QA of sA.referencedFiles)IA.has(QA)&&IA.delete(QA);for(const sA of IA)delete iA[sA]})(gA),El("generate bundle",2),await this.pluginDriver.hookSeq("generateBundle",[this.outputOptions,gA,AA]),this.finaliseAssets(gA),xl("generate bundle",2),xl("GENERATE",1),tA}async addManualChunks(AA){const tA=new Map,gA=await Promise.all(Object.entries(AA).map(async([iA,IA])=>({alias:iA,entries:await this.graph.moduleLoader.addAdditionalModules(IA,!0)})));for(const{alias:iA,entries:IA}of gA)for(const BA of IA)Ic(iA,BA,tA);return tA}assignManualChunks(AA){const tA=[],gA={getModuleIds:()=>this.graph.modulesById.keys(),getModuleInfo:this.graph.getModuleInfo};for(const IA of this.graph.modulesById.values())if(IA instanceof Il){const BA=AA(IA.id,gA);typeof BA=="string"&&tA.push([BA,IA])}tA.sort(([IA],[BA])=>IA>BA?1:IA<BA?-1:0);const iA=new Map;for(const[IA,BA]of tA)Ic(IA,BA,iA);return iA}finaliseAssets(AA){if(this.outputOptions.validate){for(const tA of Object.values(AA))if("code"in tA)try{al(tA.code,{jsx:this.inputOptions.jsx!==!1})}catch(gA){this.inputOptions.onLog(de,Xe(tA,gA))}}this.pluginDriver.finaliseAssets()}async generateChunks(AA,tA){const{experimentalMinChunkSize:gA,inlineDynamicImports:iA,manualChunks:IA,preserveModules:BA}=this.outputOptions,sA=typeof IA=="object"?await this.addManualChunks(IA):this.assignManualChunks(IA),QA=function({compact:lA,generatedCode:{arrowFunctions:hA,constBindings:dA,objectShorthand:DA,reservedNamesAsProps:wA}}){const{_:RA,n:yA,s:kA}=lA?{_:"",n:"",s:""}:{_:" ",n:`
|
|
107
|
-
`,s:";"},LA=dA?"const":"var",KA=(NA,{isAsync:SA,name:qA})=>`${SA?"async ":""}function${qA?` ${qA}`:""}${RA}(${NA.join(`,${RA}`)})${RA}`,bA=hA?(NA,{isAsync:SA,name:qA})=>{const UA=NA.length===1;return`${qA?`${LA} ${qA}${RA}=${RA}`:""}${SA?`async${UA?" ":RA}`:""}${UA?NA[0]:`(${NA.join(`,${RA}`)})`}${RA}=>${RA}`}:KA,JA=(NA,{functionReturn:SA,lineBreakIndent:qA,name:UA})=>[`${bA(NA,{isAsync:!1,name:UA})}${hA?qA?`${yA}${qA.base}${qA.t}`:"":`{${qA?`${yA}${qA.base}${qA.t}`:RA}${SA?"return ":""}`}`,hA?`${UA?";":""}${qA?`${yA}${qA.base}`:""}`:`${kA}${qA?`${yA}${qA.base}`:RA}}`],MA=wA?NA=>en.test(NA):NA=>!Xt.has(NA)&&en.test(NA);return{_:RA,cnst:LA,getDirectReturnFunction:JA,getDirectReturnIifeLeft:(NA,SA,{needsArrowReturnParens:qA,needsWrappedFunction:UA})=>{const[mA,aA]=JA(NA,{functionReturn:!0,lineBreakIndent:null,name:null});return`${hc(`${mA}${hc(SA,hA&&qA)}${aA}`,hA||UA)}(`},getFunctionIntro:bA,getNonArrowFunctionIntro:KA,getObject(NA,{lineBreakIndent:SA}){const qA=SA?`${yA}${SA.base}${SA.t}`:RA;return`{${NA.map(([UA,mA])=>{if(UA===null)return`${qA}${mA}`;const aA=nn(UA);return UA===mA&&DA&&UA===aA?qA+UA:`${qA}${aA}:${RA}${mA}`}).join(",")}${NA.length===0?"":SA?`${yA}${SA.base}`:RA}}`},getPropertyAccess:NA=>MA(NA)?`.${NA}`:`[${JSON.stringify(NA)}]`,n:yA,s:kA}}(this.outputOptions),CA=function(lA){const hA=[];for(const dA of lA.values())dA instanceof Il&&(dA.isIncluded()||dA.info.isEntry||dA.includedDynamicImporters.length>0)&&hA.push(dA);return hA}(this.graph.modulesById),oA=function(lA){if(lA.length===0)return"/";if(lA.length===1)return C(lA[0]);const hA=lA.slice(1).reduce((dA,DA)=>{const wA=DA.split(/\/+|\\+/);let RA;for(RA=0;dA[RA]===wA[RA]&&RA<Math.min(dA.length,wA.length);RA++);return dA.slice(0,RA)},lA[0].split(/\/+|\\+/));return hA.length>1?hA.join("/"):"/"}(function(lA,hA){const dA=[];for(const DA of lA)(DA.info.isEntry||hA)&&I(DA.id)&&dA.push(DA.id);return dA}(CA,BA)),EA=function(lA,hA,dA){const DA=new Map;for(const wA of lA.values())wA instanceof rn&&DA.set(wA,new hr(wA,hA,dA));return DA}(this.graph.modulesById,this.outputOptions,oA),rA=[],cA=new Map;for(const{alias:lA,modules:hA}of iA?[{alias:null,modules:CA}]:BA?CA.map(dA=>({alias:null,modules:[dA]})):nc(this.graph.entryModules,sA,gA,this.inputOptions.onLog)){hA.sort(dc);const dA=new Kl(hA,this.inputOptions,this.outputOptions,this.unsetOptions,this.pluginDriver,this.graph.modulesById,cA,EA,this.facadeChunkByModule,this.includedNamespaces,lA,tA,AA,oA,QA);rA.push(dA)}for(const lA of rA)lA.link();const uA=[];for(const lA of rA)uA.push(...lA.generateFacades());return[...rA,...uA]}}function Ic(eA,AA,tA){const gA=tA.get(AA);if(typeof gA=="string"&&gA!==eA)return Me((iA=AA.id,IA=eA,BA=gA,{code:"INVALID_CHUNK",message:`Cannot assign "${ge(iA)}" to the "${IA}" chunk as it is already in the "${BA}" chunk.`}));var iA,IA,BA;tA.set(AA,eA)}class Pc extends Rs{constructor(){super(),this.parent=null,this.variables.set("undefined",new lr)}findVariable(AA){let tA=this.variables.get(AA);return tA||(tA=new Is(AA),this.variables.set(AA,tA)),tA}}const kc=eA=>()=>Me(function(AA){return{code:"NO_FS_IN_BROWSER",message:`Cannot access the file system (via "${AA}") when using the browser build of Rollup. Make sure you supply a plugin with custom resolveId and load hooks to Rollup.`,url:xe("plugin-development/#a-simple-example")}}(eA)),Nc=kc("fs.mkdir"),Cc=kc("fs.readFile"),Oc=kc("fs.writeFile");async function Dc(eA,AA,tA,gA,iA,IA,BA,sA,QA){const CA=await function(oA,EA,rA,cA,uA,lA,hA,dA){let DA=null,wA=null;if(uA){DA=new Set;for(const RA of uA)oA===RA.source&&EA===RA.importer&&DA.add(RA.plugin);wA=(RA,yA)=>({...RA,resolve:(kA,LA,{attributes:KA,custom:bA,isEntry:JA,skipSelf:MA}=J)=>(MA??(MA=!0),cA(kA,LA,bA,JA,KA||K,MA?[...uA,{importer:LA,plugin:yA,source:kA}]:uA))})}return rA.hookFirstAndGetPlugin("resolveId",[oA,EA,{attributes:dA,custom:lA,isEntry:hA}],wA,DA)}(eA,AA,gA,iA,IA,BA,sA,QA);return CA==null?kc("path.resolve")():CA[0]}const Mc="at position ",Rc="at output position ",_c={delete:()=>!1,get(){},has:()=>!1,set(){}};function Lc(eA){return eA.startsWith(Mc)||eA.startsWith(Rc)?Me({code:"ANONYMOUS_PLUGIN_CACHE",message:"A plugin is trying to use the Rollup cache but is not declaring a plugin name or cacheKey."}):Me({code:"DUPLICATE_PLUGIN_NAME",message:`The plugin name ${eA} is being used twice in the same build. Plugin names must be distinct or provide a cacheKey (please post an issue to the plugin if you are a plugin user).`})}const Tc=(eA,AA,tA=Fc)=>{const{onwarn:gA,onLog:iA}=eA,IA=Bc(tA,gA);if(iA){const BA=pe[AA];return(sA,QA)=>iA(sA,zc(QA),(CA,oA)=>{if(CA==="error")return Me(Vc(oA));pe[CA]>=BA&&IA(CA,Vc(oA))})}return IA},Bc=(eA,AA)=>AA?(tA,gA)=>{tA===de?AA(zc(gA),iA=>eA(de,Vc(iA))):eA(tA,gA)}:eA,zc=eA=>(Object.defineProperty(eA,"toString",{value:()=>eA.message,writable:!0}),eA),Vc=eA=>typeof eA=="string"?{message:eA}:typeof eA=="function"?Vc(eA()):eA,Fc=(eA,{message:AA})=>{switch(eA){case de:return console.warn(AA);case he:return console.debug(AA);default:return console.info(AA)}};function jc(eA,AA,tA,gA,iA=/$./){const IA=new Set(AA),BA=Object.keys(eA).filter(sA=>!(IA.has(sA)||iA.test(sA)));BA.length>0&&gA(de,function(sA,QA,CA){return{code:"UNKNOWN_OPTION",message:`Unknown ${sA}: ${QA.join(", ")}. Allowed options: ${CA.join(", ")}`}}(tA,BA,[...IA].sort()))}const Uc={recommended:{annotations:!0,correctVarValueBeforeDeclaration:!1,manualPureFunctions:X,moduleSideEffects:()=>!0,propertyReadSideEffects:!0,tryCatchDeoptimization:!0,unknownGlobalSideEffects:!1},safest:{annotations:!0,correctVarValueBeforeDeclaration:!0,manualPureFunctions:X,moduleSideEffects:()=>!0,propertyReadSideEffects:!0,tryCatchDeoptimization:!0,unknownGlobalSideEffects:!0},smallest:{annotations:!0,correctVarValueBeforeDeclaration:!1,manualPureFunctions:X,moduleSideEffects:()=>!1,propertyReadSideEffects:!1,tryCatchDeoptimization:!1,unknownGlobalSideEffects:!1}},Gc={preserve:{factory:null,fragment:null,importSource:null,mode:"preserve"},"preserve-react":{factory:"React.createElement",fragment:"React.Fragment",importSource:"react",mode:"preserve"},react:{factory:"React.createElement",fragment:"React.Fragment",importSource:"react",mode:"classic"},"react-jsx":{factory:"React.createElement",importSource:"react",jsxImportSource:"react/jsx-runtime",mode:"automatic"}},Wc={es2015:{arrowFunctions:!0,constBindings:!0,objectShorthand:!0,reservedNamesAsProps:!0,symbols:!0},es5:{arrowFunctions:!1,constBindings:!1,objectShorthand:!1,reservedNamesAsProps:!0,symbols:!1}},Hc=(eA,AA,tA,gA,iA)=>{const IA=eA==null?void 0:eA.preset;if(IA){const BA=AA[IA];if(BA)return{...BA,...eA};Me(ot(`${tA}.preset`,gA,`valid values are ${fe(Object.keys(AA))}`,IA))}return((BA,sA,QA,CA)=>oA=>{if(typeof oA=="string"){const EA=BA[oA];if(EA)return EA;Me(ot(sA,QA,`valid values are ${CA}${fe(Object.keys(BA))}. You can also supply an object for more fine-grained control`,oA))}return(EA=>EA&&typeof EA=="object"?EA:{})(oA)})(AA,tA,gA,iA)(eA)},qc=async eA=>(await async function(AA){do AA=(await Promise.all(AA)).flat(1/0);while(AA.some(tA=>tA==null?void 0:tA.then));return AA}([eA])).filter(Boolean);async function Jc(eA,AA,tA,gA){const iA=AA.id,IA=[];let BA=eA.map===null?null:rl(eA.map);const sA=eA.code;let QA=eA.ast;const CA=[],oA=[];let EA=!1;const rA=()=>EA=!0;let cA="",uA=eA.code;const lA=dA=>(DA,wA)=>{DA=Vc(DA),wA&&_e(DA,wA,uA,iA),DA.id=iA,DA.hook="transform",dA(DA)};let hA;try{hA=await tA.hookReduceArg0("transform",[uA,iA],function(dA,DA,wA){let RA,yA;if(typeof DA=="string")RA=DA;else{if(!DA||typeof DA!="object")return dA;if(AA.updateOptions(DA),DA.code==null)return(DA.map||DA.ast)&&gA(de,function(kA){return{code:"NO_TRANSFORM_MAP_OR_AST_WITHOUT_CODE",message:`The plugin "${kA}" returned a "map" or "ast" without returning a "code". This will be ignored.`}}(wA.name)),dA;({code:RA,map:yA,ast:QA}=DA)}return yA!==null&&IA.push(rl(typeof yA=="string"?JSON.parse(yA):yA)||{missing:!0,plugin:wA.name}),uA=RA,RA},(dA,DA)=>{return cA=DA.name,{...dA,addWatchFile(yA){CA.push(yA),dA.addWatchFile(yA)},cache:EA?dA.cache:(wA=dA.cache,RA=rA,{delete:yA=>(RA(),wA.delete(yA)),get:yA=>(RA(),wA.get(yA)),has:yA=>(RA(),wA.has(yA)),set:(yA,kA)=>(RA(),wA.set(yA,kA))}),debug:lA(dA.debug),emitFile:yA=>(oA.push(yA),tA.emitFile(yA)),error:(yA,kA)=>(typeof yA=="string"&&(yA={message:yA}),kA&&_e(yA,kA,uA,iA),yA.id=iA,yA.hook="transform",dA.error(yA)),getCombinedSourcemap(){const yA=function(kA,LA,KA,bA,JA){return bA.length===0?KA:rl({version:3,...gc(kA,LA,KA,bA,mc(JA)).traceMappings()})}(iA,sA,BA,IA,gA);return yA?(BA!==yA&&(BA=yA,IA.length=0),new c({...yA,file:null,sourcesContent:yA.sourcesContent})):new b(sA).generateMap({hires:!0,includeContent:!0,source:iA})},info:lA(dA.info),setAssetSource(){return this.error({code:"INVALID_SETASSETSOURCE",message:"setAssetSource cannot be called in transform for caching reasons. Use emitFile with a source, or call setAssetSource in another hook."})},warn:lA(dA.warn)};var wA,RA})}catch(dA){return Me(ft(dA,cA,{hook:"transform",id:iA}))}return!EA&&oA.length>0&&(AA.transformFiles=oA),{ast:QA,code:hA,customTransformCache:EA,originalCode:sA,originalSourcemap:BA,sourcemapChain:IA,transformDependencies:CA}}const Kc="resolveDependencies";class Xc{constructor(AA,tA,gA,iA){this.graph=AA,this.modulesById=tA,this.options=gA,this.pluginDriver=iA,this.implicitEntryModules=new Set,this.indexedEntryModules=[],this.latestLoadModulesPromise=Promise.resolve(),this.moduleLoadPromises=new Map,this.modulesWithLoadedDependencies=new Set,this.nextChunkNamePriority=0,this.nextEntryModuleIndex=0,this.resolveId=async(IA,BA,sA,QA,CA,oA=null)=>this.getResolvedIdWithDefaults(this.getNormalizedResolvedIdWithoutDefaults(!this.options.external(IA,BA,!1)&&await Dc(IA,BA,this.options.preserveSymlinks,this.pluginDriver,this.resolveId,oA,sA,typeof QA=="boolean"?QA:!BA,CA),BA,IA),CA),this.hasModuleSideEffects=gA.treeshake?gA.treeshake.moduleSideEffects:()=>!0}async addAdditionalModules(AA,tA){const gA=this.extendLoadModulesPromise(Promise.all(AA.map(iA=>this.loadEntryModule(iA,!1,void 0,null,tA))));return await this.awaitLoadModulesPromise(),gA}async addEntryModules(AA,tA){const gA=this.nextEntryModuleIndex;this.nextEntryModuleIndex+=AA.length;const iA=this.nextChunkNamePriority;this.nextChunkNamePriority+=AA.length;const IA=await this.extendLoadModulesPromise(Promise.all(AA.map(({id:BA,importer:sA})=>this.loadEntryModule(BA,!0,sA,null))).then(BA=>{for(const[sA,QA]of BA.entries()){QA.isUserDefinedEntryPoint=QA.isUserDefinedEntryPoint||tA,Zc(QA,AA[sA],tA,iA+sA);const CA=this.indexedEntryModules.find(oA=>oA.module===QA);CA?CA.index=Math.min(CA.index,gA+sA):this.indexedEntryModules.push({index:gA+sA,module:QA})}return this.indexedEntryModules.sort(({index:sA},{index:QA})=>sA>QA?1:-1),BA}));return await this.awaitLoadModulesPromise(),{entryModules:this.indexedEntryModules.map(({module:BA})=>BA),implicitEntryModules:[...this.implicitEntryModules],newEntryModules:IA}}async emitChunk({fileName:AA,id:tA,importer:gA,name:iA,implicitlyLoadedAfterOneOf:IA,preserveSignature:BA}){const sA={fileName:AA||null,id:tA,importer:gA,name:iA||null},QA=IA?await this.addEntryWithImplicitDependants(sA,IA):(await this.addEntryModules([sA],!1)).newEntryModules[0];return BA!=null&&(QA.preserveSignature=BA),QA}async preloadModule(AA){return(await this.fetchModule(this.getResolvedIdWithDefaults(AA,K),void 0,!1,!AA.resolveDependencies||Kc)).info}addEntryWithImplicitDependants(AA,tA){const gA=this.nextChunkNamePriority++;return this.extendLoadModulesPromise(this.loadEntryModule(AA.id,!1,AA.importer,null).then(async iA=>{if(Zc(iA,AA,!1,gA),!iA.info.isEntry){const IA=await Promise.all(tA.map(BA=>this.loadEntryModule(BA,!1,AA.importer,iA.id)));if(!iA.info.isEntry){this.implicitEntryModules.add(iA);for(const BA of IA)iA.implicitlyLoadedAfter.add(BA);for(const BA of iA.implicitlyLoadedAfter)BA.implicitlyLoadedBefore.add(iA)}}return iA}))}async addModuleSource(AA,tA,gA){let iA;try{iA=await this.graph.fileOperationQueue.run(async()=>{const QA=await this.pluginDriver.hookFirst("load",[AA]);return QA!==null?QA:(this.graph.watchFiles[AA]=!0,await Cc(AA,"utf8"))})}catch(QA){let CA=`Could not load ${AA}`;throw tA&&(CA+=` (imported by ${ge(tA)})`),CA+=`: ${QA.message}`,QA.message=CA,QA}const IA=typeof iA=="string"?{code:iA}:iA!=null&&typeof iA=="object"&&typeof iA.code=="string"?iA:Me(function(QA){return{code:"BAD_LOADER",message:`Error loading "${ge(QA)}": plugin load hook should return a string, a { code, map } object, or nothing/null.`}}(AA)),BA=IA.code;BA.charCodeAt(0)===65279&&(IA.code=BA.slice(1));const sA=this.graph.cachedModules.get(AA);if(!sA||sA.customTransformCache||sA.originalCode!==IA.code||await this.pluginDriver.hookFirst("shouldTransformCachedModule",[{ast:sA.ast,code:sA.code,id:sA.id,meta:sA.meta,moduleSideEffects:sA.moduleSideEffects,resolvedSources:sA.resolvedIds,syntheticNamedExports:sA.syntheticNamedExports}]))gA.updateOptions(IA),await gA.setSource(await Jc(IA,gA,this.pluginDriver,this.options.onLog));else{if(sA.transformFiles)for(const QA of sA.transformFiles)this.pluginDriver.emitFile(QA);await gA.setSource(sA)}}async awaitLoadModulesPromise(){let AA;do AA=this.latestLoadModulesPromise,await AA;while(AA!==this.latestLoadModulesPromise)}extendLoadModulesPromise(AA){return this.latestLoadModulesPromise=Promise.all([AA,this.latestLoadModulesPromise]),this.latestLoadModulesPromise.catch(()=>{}),AA}async fetchDynamicDependencies(AA,tA){const gA=await Promise.all(tA.map(iA=>iA.then(async([IA,BA])=>BA===null?null:typeof BA=="string"?(IA.resolution=BA,null):IA.resolution=await this.fetchResolvedDependency(ge(BA.id),AA.id,BA))));for(const iA of gA)iA&&(AA.dynamicDependencies.add(iA),iA.dynamicImporters.push(AA.id))}async fetchModule({attributes:AA,id:tA,meta:gA,moduleSideEffects:iA,syntheticNamedExports:IA},BA,sA,QA){const CA=this.modulesById.get(tA);if(CA instanceof Il)return BA&&ul(AA,CA.info.attributes)&&this.options.onLog(de,et(CA.info.attributes,AA,tA,BA)),await this.handleExistingModule(CA,sA,QA),CA;if(CA instanceof rn)return Me({code:"EXTERNAL_MODULES_CANNOT_BE_TRANSFORMED_TO_MODULES",message:`${CA.id} is resolved as a module now, but it was an external module before. Please check whether there are conflicts in your Rollup options "external" and "manualChunks", manualChunks cannot include external modules.`});const oA=new Il(this.graph,tA,this.options,sA,iA,IA,gA,AA);this.modulesById.set(tA,oA);const EA=this.addModuleSource(tA,BA,oA).then(()=>[this.getResolveStaticDependencyPromises(oA),this.getResolveDynamicImportPromises(oA),rA]),rA=ed(EA).then(()=>this.pluginDriver.hookParallel("moduleParsed",[oA.info]));rA.catch(()=>{}),this.moduleLoadPromises.set(oA,EA);const cA=await EA;return QA?QA===Kc&&await rA:await this.fetchModuleDependencies(oA,...cA),oA}async fetchModuleDependencies(AA,tA,gA,iA){this.modulesWithLoadedDependencies.has(AA)||(this.modulesWithLoadedDependencies.add(AA),await Promise.all([this.fetchStaticDependencies(AA,tA),this.fetchDynamicDependencies(AA,gA)]),AA.linkImports(),await iA)}fetchResolvedDependency(AA,tA,gA){if(gA.external){const{attributes:iA,external:IA,id:BA,moduleSideEffects:sA,meta:QA}=gA;let CA=this.modulesById.get(BA);if(CA){if(!(CA instanceof rn))return Me(function(oA,EA){return{code:"INVALID_EXTERNAL_ID",message:`"${oA}" is imported as an external by "${ge(EA)}", but is already an existing non-external module id.`}}(AA,tA));ul(CA.info.attributes,iA)&&this.options.onLog(de,et(CA.info.attributes,iA,AA,tA))}else CA=new rn(this.options,BA,sA,QA,IA!=="absolute"&&I(BA),iA),this.modulesById.set(BA,CA);return Promise.resolve(CA)}return this.fetchModule(gA,tA,!1,!1)}async fetchStaticDependencies(AA,tA){for(const gA of await Promise.all(tA.map(iA=>iA.then(([IA,BA])=>this.fetchResolvedDependency(IA,AA.id,BA)))))AA.dependencies.add(gA),gA.importers.push(AA.id);if(!this.options.treeshake||AA.info.moduleSideEffects==="no-treeshake")for(const gA of AA.dependencies)gA instanceof Il&&(gA.importedFromNotTreeshaken=!0)}getNormalizedResolvedIdWithoutDefaults(AA,tA,gA){const{makeAbsoluteExternalsRelative:iA}=this.options;if(AA){if(typeof AA=="object"){const sA=AA.external||this.options.external(AA.id,tA,!0);return{...AA,external:sA&&(sA==="relative"||!I(AA.id)||sA===!0&&Qc(AA.id,gA,iA)||"absolute")}}const BA=this.options.external(AA,tA,!0);return{external:BA&&(Qc(AA,gA,iA)||"absolute"),id:BA&&iA?Yc(AA,tA):AA}}const IA=iA?Yc(gA,tA):gA;return AA===!1||this.options.external(IA,tA,!0)?{external:Qc(IA,gA,iA)||"absolute",id:IA}:null}getResolveDynamicImportPromises(AA){return AA.dynamicImports.map(async tA=>{const gA=await this.resolveDynamicImport(AA,tA.argument,AA.id,cl(tA.node));return gA&&typeof gA=="object"&&(tA.id=gA.id),[tA,gA]})}getResolveStaticDependencyPromises(AA){return Array.from(AA.sourcesWithAttributes,async([tA,gA])=>[tA,AA.resolvedIds[tA]=AA.resolvedIds[tA]||this.handleInvalidResolvedId(await this.resolveId(tA,AA.id,K,!1,gA),tA,AA.id,gA)])}getResolvedIdWithDefaults(AA,tA){if(!AA)return null;const gA=AA.external||!1;return{attributes:AA.attributes||tA,external:gA,id:AA.id,meta:AA.meta||{},moduleSideEffects:AA.moduleSideEffects??this.hasModuleSideEffects(AA.id,!!gA),resolvedBy:AA.resolvedBy??"rollup",syntheticNamedExports:AA.syntheticNamedExports??!1}}async handleExistingModule(AA,tA,gA){const iA=this.moduleLoadPromises.get(AA);if(gA)return gA===Kc?ed(iA):iA;if(tA){AA.info.isEntry=!0,this.implicitEntryModules.delete(AA);for(const IA of AA.implicitlyLoadedAfter)IA.implicitlyLoadedBefore.delete(AA);AA.implicitlyLoadedAfter.clear()}return this.fetchModuleDependencies(AA,...await iA)}handleInvalidResolvedId(AA,tA,gA,iA){return AA===null?P(tA)?Me(function(IA,BA){return{code:Je,exporter:IA,id:BA,message:`Could not resolve "${IA}" from "${ge(BA)}"`}}(tA,gA)):(this.options.onLog(de,function(IA,BA){return{code:Je,exporter:IA,id:BA,message:`"${IA}" is imported by "${ge(BA)}", but could not be resolved – treating it as an external dependency.`,url:xe("troubleshooting/#warning-treating-module-as-external-dependency")}}(tA,gA)),{attributes:iA,external:!0,id:tA,meta:{},moduleSideEffects:this.hasModuleSideEffects(tA,!0),resolvedBy:"rollup",syntheticNamedExports:!1}):(AA.external&&AA.syntheticNamedExports&&this.options.onLog(de,function(IA,BA){return{code:"EXTERNAL_SYNTHETIC_EXPORTS",exporter:IA,message:`External "${IA}" cannot have "syntheticNamedExports" enabled (imported by "${ge(BA)}").`}}(tA,gA)),AA)}async loadEntryModule(AA,tA,gA,iA,IA=!1){const BA=await Dc(AA,gA,this.options.preserveSymlinks,this.pluginDriver,this.resolveId,null,K,!0,K);if(BA==null)return Me(iA===null?function(QA){return{code:qe,message:`Could not resolve entry module "${ge(QA)}".`}}(AA):function(QA,CA){return{code:je,message:`Module "${ge(QA)}" that should be implicitly loaded before "${ge(CA)}" could not be resolved.`}}(AA,iA));const sA=typeof BA=="object"&&BA.external;return BA===!1||sA?Me(iA===null?sA&&IA?{code:"EXTERNAL_MODULES_CANNOT_BE_INCLUDED_IN_MANUAL_CHUNKS",message:`"${AA}" cannot be included in manualChunks because it is resolved as an external module by the "external" option or plugins.`}:function(QA){return{code:qe,message:`Entry module "${ge(QA)}" cannot be external.`}}(AA):function(QA,CA){return{code:je,message:`Module "${ge(QA)}" that should be implicitly loaded before "${ge(CA)}" cannot be external.`}}(AA,iA)):this.fetchModule(this.getResolvedIdWithDefaults(typeof BA=="object"?BA:{id:BA},K),void 0,tA,!1)}async resolveDynamicImport(AA,tA,gA,iA){const IA=await this.pluginDriver.hookFirst("resolveDynamicImport",[tA,gA,{attributes:iA}]);if(typeof tA!="string")return typeof IA=="string"?IA:IA?this.getResolvedIdWithDefaults(IA,iA):null;if(IA==null){const BA=AA.resolvedIds[tA];return BA?(ul(BA.attributes,iA)&&this.options.onLog(de,et(BA.attributes,iA,tA,gA)),BA):AA.resolvedIds[tA]=this.handleInvalidResolvedId(await this.resolveId(tA,AA.id,K,!1,iA),tA,AA.id,iA)}return this.handleInvalidResolvedId(this.getResolvedIdWithDefaults(this.getNormalizedResolvedIdWithoutDefaults(IA,gA,tA),iA),tA,gA,iA)}}function Yc(eA,AA){return P(eA)?AA?M(AA,"..",eA):M(eA):eA}function Zc(eA,{fileName:AA,name:tA},gA,iA){var IA;if(AA!==null)eA.chunkFileNames.add(AA);else if(tA!==null){let BA=0;for(;((IA=eA.chunkNames[BA])==null?void 0:IA.priority)<iA;)BA++;eA.chunkNames.splice(BA,0,{isUserDefined:gA,name:tA,priority:iA})}}function Qc(eA,AA,tA){return tA===!0||tA==="ifRelativeSource"&&P(AA)||!I(eA)}async function ed(eA){const[AA,tA]=await eA;return Promise.all([...AA,...tA])}function td(eA,AA,tA,gA,iA,IA,BA,sA,QA){const CA=BA.sanitizeFileName(eA||"asset");return Hl(Wl(typeof BA.assetFileNames=="function"?BA.assetFileNames({get name(){return Et('Accessing the "name" property of emitted assets when generating the file name is deprecated. Use the "names" property instead.',De,!1,QA),eA},names:AA,get originalFileName(){return Et('Accessing the "originalFileName" property of emitted assets when generating the file name is deprecated. Use the "originalFileNames" property instead.',De,!1,QA),gA},originalFileNames:iA,source:tA,type:"asset"}):BA.assetFileNames,"output.assetFileNames",{ext:()=>O(CA).slice(1),extname:()=>O(CA),hash:oA=>IA.slice(0,Math.max(0,oA||8)),name:()=>CA.slice(0,Math.max(0,CA.length-O(CA).length))}),sA)}function nd(eA,{bundle:AA},tA){AA[Ul].has(eA.toLowerCase())?tA(de,function(gA){return{code:"FILE_NAME_CONFLICT",message:`The emitted file "${gA}" overwrites a previously emitted file of the same name.`}}(eA)):AA[eA]=Gl}const sd=new Set(["chunk","asset","prebuilt-chunk"]);function id(eA,AA,tA){if(!(typeof eA=="string"||eA instanceof Uint8Array)){const gA=AA.fileName||AA.name||tA;return Me(bt(`Could not set source for ${typeof gA=="string"?`asset "${gA}"`:"unnamed asset"}, asset source needs to be a string, Uint8Array or Buffer.`))}return eA}class rd{constructor(AA,tA,gA){this.graph=AA,this.options=tA,this.facadeChunkByModule=null,this.nextIdBase=1,this.output=null,this.outputFileEmitters=[],this.emitFile=iA=>function(IA){return!!(IA&&sd.has(IA.type))}(iA)?iA.type==="prebuilt-chunk"?this.emitPrebuiltChunk(iA):function(IA){const BA=IA.fileName||IA.name;return!BA||typeof BA=="string"&&!ye(BA)}(iA)?iA.type==="chunk"?this.emitChunk(iA):this.emitAsset(iA):Me(bt(`The "fileName" or "name" properties of emitted chunks and assets must be strings that are neither absolute nor relative paths, received "${iA.fileName||iA.name}".`)):Me(bt(`Emitted files must be of type "asset", "chunk" or "prebuilt-chunk", received "${iA&&iA.type}".`)),this.finaliseAssets=()=>{for(const[iA,IA]of this.filesByReferenceId)if(IA.type==="asset"&&typeof IA.fileName!="string")return Me({code:"ASSET_SOURCE_MISSING",message:`Plugin error creating asset "${IA.name||iA}" - no asset source set.`})},this.getFileName=iA=>{const IA=this.filesByReferenceId.get(iA);return IA?IA.type==="chunk"?(BA=IA,sA=this.facadeChunkByModule,BA.fileName?BA.fileName:sA?sA.get(BA.module).getFileName():Me({code:"CHUNK_NOT_GENERATED",message:`Plugin error - Unable to get file name for emitted chunk "${BA.fileName||BA.name}". You can only get file names once chunks have been generated after the "renderStart" hook.`})):IA.type==="prebuilt-chunk"?IA.fileName:function(QA,CA){return typeof QA.fileName!="string"?Me({code:"ASSET_NOT_FINALISED",message:`Plugin error - Unable to get file name for asset "${QA.name||CA}". Ensure that the source is set and that generate is called first. If you reference assets via import.meta.ROLLUP_FILE_URL_<referenceId>, you need to either have set their source after "renderStart" or need to provide an explicit "fileName" when emitting them.`}):QA.fileName}(IA,iA):Me({code:"FILE_NOT_FOUND",message:`Plugin error - Unable to get file name for unknown file "${iA}".`});var BA,sA},this.setAssetSource=(iA,IA)=>{const BA=this.filesByReferenceId.get(iA);if(!BA)return Me({code:"ASSET_NOT_FOUND",message:`Plugin error - Unable to set the source for unknown asset "${iA}".`});if(BA.type!=="asset")return Me(bt(`Asset sources can only be set for emitted assets but "${iA}" is an emitted chunk.`));if(BA.source!==void 0)return Me({code:"ASSET_SOURCE_ALREADY_SET",message:`Unable to set the source for asset "${BA.name||iA}", source already set.`});const sA=id(IA,BA,iA);if(this.output)this.finalizeAdditionalAsset(BA,sA,this.output);else{BA.source=sA;for(const QA of this.outputFileEmitters)QA.finalizeAdditionalAsset(BA,sA,QA.output)}},this.setChunkInformation=iA=>{this.facadeChunkByModule=iA},this.setOutputBundle=(iA,IA)=>{const BA=Ec[IA.hashCharacters],sA=this.output={bundle:iA,fileNamesBySourceHash:new Map,getHash:BA,outputOptions:IA};for(const CA of this.filesByReferenceId.values())CA.fileName&&nd(CA.fileName,sA,this.options.onLog);const QA=new Map;for(const CA of this.filesByReferenceId.values())CA.type==="asset"&&CA.source!==void 0?CA.fileName?this.finalizeAdditionalAsset(CA,CA.source,sA):St(QA,BA(CA.source),()=>[]).push(CA):CA.type==="prebuilt-chunk"&&(this.output.bundle[CA.fileName]=this.createPrebuiltChunk(CA));for(const[CA,oA]of QA)this.finalizeAssetsWithSameSource(oA,CA,sA)},this.filesByReferenceId=gA?new Map(gA.filesByReferenceId):new Map,gA==null||gA.addOutputFileEmitter(this)}addOutputFileEmitter(AA){this.outputFileEmitters.push(AA)}assignReferenceId(AA,tA){let gA=tA;do gA=bc(gA).slice(0,8).replaceAll("-","$");while(this.filesByReferenceId.has(gA)||this.outputFileEmitters.some(({filesByReferenceId:iA})=>iA.has(gA)));AA.referenceId=gA,this.filesByReferenceId.set(gA,AA);for(const{filesByReferenceId:iA}of this.outputFileEmitters)iA.set(gA,AA);return gA}createPrebuiltChunk(AA){return{code:AA.code,dynamicImports:[],exports:AA.exports||[],facadeModuleId:null,fileName:AA.fileName,implicitlyLoadedBefore:[],importedBindings:{},imports:[],isDynamicEntry:!1,isEntry:!1,isImplicitEntry:!1,map:AA.map||null,moduleIds:[],modules:{},name:AA.fileName,preliminaryFileName:AA.fileName,referencedFiles:[],sourcemapFileName:AA.sourcemapFileName||null,type:"chunk"}}emitAsset(AA){const tA=AA.source===void 0?void 0:id(AA.source,AA,null),gA=AA.originalFileName||null;typeof gA=="string"&&(this.graph.watchFiles[gA]=!0);const iA={fileName:AA.fileName,name:AA.name,needsCodeReference:!!AA.needsCodeReference,originalFileName:gA,referenceId:"",source:tA,type:"asset"},IA=this.assignReferenceId(iA,AA.fileName||AA.name||String(this.nextIdBase++));if(this.output)this.emitAssetWithReferenceId(iA,this.output);else for(const BA of this.outputFileEmitters)BA.emitAssetWithReferenceId(iA,BA.output);return IA}emitAssetWithReferenceId(AA,tA){const{fileName:gA,source:iA}=AA;gA&&nd(gA,tA,this.options.onLog),iA!==void 0&&this.finalizeAdditionalAsset(AA,iA,tA)}emitChunk(AA){if(this.graph.phase>nl.LOAD_AND_PARSE)return Me({code:"INVALID_ROLLUP_PHASE",message:"Cannot emit chunks after module loading has finished."});if(typeof AA.id!="string")return Me(bt(`Emitted chunks need to have a valid string id, received "${AA.id}"`));const tA={fileName:AA.fileName,module:null,name:AA.name||AA.id,referenceId:"",type:"chunk"};return this.graph.moduleLoader.emitChunk(AA).then(gA=>tA.module=gA).catch(()=>{}),this.assignReferenceId(tA,AA.id)}emitPrebuiltChunk(AA){if(typeof AA.code!="string")return Me(bt(`Emitted prebuilt chunks need to have a valid string code, received "${AA.code}".`));if(typeof AA.fileName!="string"||ye(AA.fileName))return Me(bt(`The "fileName" property of emitted prebuilt chunks must be strings that are neither absolute nor relative paths, received "${AA.fileName}".`));const tA={code:AA.code,exports:AA.exports,fileName:AA.fileName,map:AA.map,referenceId:"",type:"prebuilt-chunk"},gA=this.assignReferenceId(tA,tA.fileName);return this.output&&(this.output.bundle[tA.fileName]=this.createPrebuiltChunk(tA)),gA}finalizeAdditionalAsset(AA,tA,{bundle:gA,fileNamesBySourceHash:iA,getHash:IA,outputOptions:BA}){let{fileName:sA,name:QA,needsCodeReference:CA,originalFileName:oA,referenceId:EA}=AA;if(!sA){const uA=IA(tA);sA=iA.get(uA),sA||(sA=td(QA,QA?[QA]:[],tA,oA,oA?[oA]:[],uA,BA,gA,this.options),iA.set(uA,sA))}const rA={...AA,fileName:sA,source:tA};this.filesByReferenceId.set(EA,rA);const cA=gA[sA];if((cA==null?void 0:cA.type)==="asset")cA.needsCodeReference&&(cA.needsCodeReference=CA),QA&&cA.names.push(QA),oA&&cA.originalFileNames.push(oA);else{const{options:uA}=this;gA[sA]={fileName:sA,get name(){return Et('Accessing the "name" property of emitted assets in the bundle is deprecated. Use the "names" property instead.',De,!1,uA),QA},names:QA?[QA]:[],needsCodeReference:CA,get originalFileName(){return Et('Accessing the "originalFileName" property of emitted assets in the bundle is deprecated. Use the "originalFileNames" property instead.',De,!1,uA),oA},originalFileNames:oA?[oA]:[],source:tA,type:"asset"}}}finalizeAssetsWithSameSource(AA,tA,{bundle:gA,fileNamesBySourceHash:iA,outputOptions:IA}){const{names:BA,originalFileNames:sA}=function(rA){const cA=[],uA=[];for(const{name:lA,originalFileName:hA}of rA)typeof lA=="string"&&cA.push(lA),hA&&uA.push(hA);return uA.sort(),cA.sort((lA,hA)=>lA.length-hA.length||(lA>hA?1:lA===hA?0:-1)),{names:cA,originalFileNames:uA}}(AA);let QA,CA="",oA=!0;for(const rA of AA){oA&&(oA=rA.needsCodeReference);const cA=td(rA.name,BA,rA.source,rA.originalFileName,sA,tA,IA,gA,this.options);(!CA||cA.length<CA.length||cA.length===CA.length&&cA<CA)&&(CA=cA,QA=rA)}iA.set(tA,CA);for(const rA of AA){const cA={...rA,fileName:CA};this.filesByReferenceId.set(rA.referenceId,cA)}const{options:EA}=this;gA[CA]={fileName:CA,get name(){return Et('Accessing the "name" property of emitted assets in the bundle is deprecated. Use the "names" property instead.',De,!1,EA),QA.name},names:BA,needsCodeReference:oA,get originalFileName(){return Et('Accessing the "originalFileName" property of emitted assets in the bundle is deprecated. Use the "originalFileNames" property instead.',De,!1,EA),QA.originalFileName},originalFileNames:sA,source:QA.source,type:"asset"}}}function od(eA,AA,tA,gA,iA){return pe[eA]<pe[iA]?an:(IA,BA)=>{BA!=null&&tA(de,{code:"INVALID_LOG_POSITION",message:`Plugin "${gA}" tried to add a file position to a log or warning. This is only supported in the "transform" hook at the moment and will be ignored.`}),(IA=Vc(IA)).code&&!IA.pluginCode&&(IA.pluginCode=IA.code),IA.code=AA,IA.plugin=gA,tA(eA,IA)}}function ad(eA,AA,tA,gA,iA,IA){const{logLevel:BA,onLog:sA}=gA;let QA,CA=!0;if(typeof eA.cacheKey!="string"&&(eA.name.startsWith(Mc)||eA.name.startsWith(Rc)||IA.has(eA.name)?CA=!1:IA.add(eA.name)),AA)if(CA){const rA=eA.cacheKey||eA.name;EA=AA[rA]||(AA[rA]=Object.create(null)),QA={delete:cA=>delete EA[cA],get(cA){const uA=EA[cA];if(uA)return uA[0]=0,uA[1]},has(cA){const uA=EA[cA];return!!uA&&(uA[0]=0,!0)},set(cA,uA){EA[cA]=[0,uA]}}}else oA=eA.name,QA={delete:()=>Lc(oA),get:()=>Lc(oA),has:()=>Lc(oA),set:()=>Lc(oA)};else QA=_c;var oA,EA;return{addWatchFile(rA){tA.watchFiles[rA]=!0},cache:QA,debug:od(he,"PLUGIN_LOG",sA,eA.name,BA),emitFile:iA.emitFile.bind(iA),error:rA=>Me(ft(Vc(rA),eA.name)),getFileName:iA.getFileName,getModuleIds:()=>tA.modulesById.keys(),getModuleInfo:tA.getModuleInfo,getWatchFiles:()=>Object.keys(tA.watchFiles),info:od(ue,"PLUGIN_LOG",sA,eA.name,BA),load:rA=>tA.moduleLoader.preloadModule(rA),meta:{rollupVersion:t,watchMode:tA.watchMode},parse:al,resolve:(rA,cA,{attributes:uA,custom:lA,isEntry:hA,skipSelf:dA}=J)=>(dA??(dA=!0),tA.moduleLoader.resolveId(rA,cA,lA,hA,uA||K,dA?[{importer:cA,plugin:eA,source:rA}]:null)),setAssetSource:iA.setAssetSource,warn:od(de,"PLUGIN_WARNING",sA,eA.name,BA)}}const ld=Object.keys({buildEnd:1,buildStart:1,closeBundle:1,closeWatcher:1,load:1,moduleParsed:1,onLog:1,options:1,resolveDynamicImport:1,resolveId:1,shouldTransformCachedModule:1,transform:1,watchChange:1});class cd{constructor(AA,tA,gA,iA,IA){this.graph=AA,this.options=tA,this.pluginCache=iA,this.sortedPlugins=new Map,this.unfulfilledActions=new Set,this.fileEmitter=new rd(AA,tA,IA&&IA.fileEmitter),this.emitFile=this.fileEmitter.emitFile.bind(this.fileEmitter),this.getFileName=this.fileEmitter.getFileName.bind(this.fileEmitter),this.finaliseAssets=this.fileEmitter.finaliseAssets.bind(this.fileEmitter),this.setChunkInformation=this.fileEmitter.setChunkInformation.bind(this.fileEmitter),this.setOutputBundle=this.fileEmitter.setOutputBundle.bind(this.fileEmitter),this.plugins=[...IA?IA.plugins:[],...gA];const BA=new Set;if(this.pluginContexts=new Map(this.plugins.map(QA=>[QA,ad(QA,iA,AA,tA,this.fileEmitter,BA)])),IA)for(const QA of gA)for(const CA of ld)CA in QA&&tA.onLog(de,(sA=QA.name,{code:"INPUT_HOOK_IN_OUTPUT_PLUGIN",message:`The "${CA}" hook used by the output plugin ${sA} is a build time hook and will not be run for that plugin. Either this plugin cannot be used as an output plugin, or it should have an option to configure it as an output plugin.`}));var sA}createOutputPluginDriver(AA){return new cd(this.graph,this.options,AA,this.pluginCache,this)}getUnfulfilledHookActions(){return this.unfulfilledActions}hookFirst(AA,tA,gA,iA){return this.hookFirstAndGetPlugin(AA,tA,gA,iA).then(IA=>IA&&IA[0])}async hookFirstAndGetPlugin(AA,tA,gA,iA){for(const IA of this.getSortedPlugins(AA)){if(iA!=null&&iA.has(IA))continue;const BA=await this.runHook(AA,tA,IA,gA);if(BA!=null)return[BA,IA]}return null}hookFirstSync(AA,tA,gA){for(const iA of this.getSortedPlugins(AA)){const IA=this.runHookSync(AA,tA,iA,gA);if(IA!=null)return IA}return null}async hookParallel(AA,tA,gA){const iA=[];for(const IA of this.getSortedPlugins(AA))IA[AA].sequential?(await Promise.all(iA),iA.length=0,await this.runHook(AA,tA,IA,gA)):iA.push(this.runHook(AA,tA,IA,gA));await Promise.all(iA)}hookReduceArg0(AA,[tA,...gA],iA,IA){let BA=Promise.resolve(tA);for(const sA of this.getSortedPlugins(AA))BA=BA.then(QA=>this.runHook(AA,[QA,...gA],sA,IA).then(CA=>iA.call(this.pluginContexts.get(sA),QA,CA,sA)));return BA}hookReduceArg0Sync(AA,[tA,...gA],iA,IA){for(const BA of this.getSortedPlugins(AA)){const sA=[tA,...gA],QA=this.runHookSync(AA,sA,BA,IA);tA=iA.call(this.pluginContexts.get(BA),tA,QA,BA)}return tA}async hookReduceValue(AA,tA,gA,iA){const IA=[],BA=[];for(const sA of this.getSortedPlugins(AA,hd))sA[AA].sequential?(IA.push(...await Promise.all(BA)),BA.length=0,IA.push(await this.runHook(AA,gA,sA))):BA.push(this.runHook(AA,gA,sA));return IA.push(...await Promise.all(BA)),IA.reduce(iA,await tA)}hookReduceValueSync(AA,tA,gA,iA,IA){let BA=tA;for(const sA of this.getSortedPlugins(AA)){const QA=this.runHookSync(AA,gA,sA,IA);BA=iA.call(this.pluginContexts.get(sA),BA,QA,sA)}return BA}hookSeq(AA,tA,gA){let iA=Promise.resolve();for(const IA of this.getSortedPlugins(AA))iA=iA.then(()=>this.runHook(AA,tA,IA,gA));return iA.then(pd)}getSortedPlugins(AA,tA){return St(this.sortedPlugins,AA,()=>dd(AA,this.plugins,tA))}runHook(AA,tA,gA,iA){const IA=gA[AA],BA=typeof IA=="object"?IA.handler:IA;let sA=this.pluginContexts.get(gA);iA&&(sA=iA(sA,gA));let QA=null;return Promise.resolve().then(()=>{if(typeof BA!="function")return BA;const CA=BA.apply(sA,tA);return CA!=null&&CA.then?(QA=[gA.name,AA,tA],this.unfulfilledActions.add(QA),Promise.resolve(CA).then(oA=>(this.unfulfilledActions.delete(QA),oA))):CA}).catch(CA=>(QA!==null&&this.unfulfilledActions.delete(QA),Me(ft(CA,gA.name,{hook:AA}))))}runHookSync(AA,tA,gA,iA){const IA=gA[AA],BA=typeof IA=="object"?IA.handler:IA;let sA=this.pluginContexts.get(gA);iA&&(sA=iA(sA,gA));try{return BA.apply(sA,tA)}catch(QA){return Me(ft(QA,gA.name,{hook:AA}))}}}function dd(eA,AA,tA=ud){const gA=[],iA=[],IA=[];for(const BA of AA){const sA=BA[eA];if(sA){if(typeof sA=="object"){if(tA(sA.handler,eA,BA),sA.order==="pre"){gA.push(BA);continue}if(sA.order==="post"){IA.push(BA);continue}}else tA(sA,eA,BA);iA.push(BA)}}return[...gA,...iA,...IA]}function ud(eA,AA,tA){typeof eA!="function"&&Me(function(gA,iA){return{code:Ve,hook:gA,message:`Error running plugin hook "${gA}" for plugin "${iA}", expected a function hook or an object with a "handler" function.`,plugin:iA}}(AA,tA.name))}function hd(eA,AA,tA){if(typeof eA!="string"&&typeof eA!="function")return Me(function(gA,iA){return{code:Ve,hook:gA,message:`Error running plugin hook "${gA}" for plugin "${iA}", expected a string, a function hook or an object with a "handler" string or function.`,plugin:iA}}(AA,tA.name))}function pd(){}class fd{constructor(AA){this.maxParallel=AA,this.queue=[],this.workerCount=0}run(AA){return new Promise((tA,gA)=>{this.queue.push({reject:gA,resolve:tA,task:AA}),this.work()})}async work(){if(this.workerCount>=this.maxParallel)return;let AA;for(this.workerCount++;AA=this.queue.shift();){const{reject:tA,resolve:gA,task:iA}=AA;try{gA(await iA())}catch(IA){tA(IA)}}this.workerCount--}}class md{constructor(AA,tA){var gA,iA;if(this.options=AA,this.astLru=function(IA){var BA,sA,QA,CA=IA;function oA(rA,cA){++BA>CA&&(QA=sA,EA(1),++BA),sA[rA]=cA}function EA(rA){BA=0,sA=Object.create(null),rA||(QA=Object.create(null))}return EA(),{clear:EA,has:function(rA){return sA[rA]!==void 0||QA[rA]!==void 0},get:function(rA){var cA=sA[rA];return cA!==void 0?cA:(cA=QA[rA])!==void 0?(oA(rA,cA),cA):void 0},set:function(rA,cA){sA[rA]!==void 0?sA[rA]=cA:oA(rA,cA)}}}(5),this.cachedModules=new Map,this.deoptimizationTracker=new Mt,this.entryModules=[],this.modulesById=new Map,this.needsTreeshakingPass=!1,this.phase=nl.LOAD_AND_PARSE,this.scope=new Pc,this.watchFiles=Object.create(null),this.watchMode=!1,this.externalModules=[],this.implicitEntryModules=[],this.modules=[],this.getModuleInfo=IA=>{const BA=this.modulesById.get(IA);return BA?BA.info:null},AA.cache!==!1){if((gA=AA.cache)!=null&&gA.modules)for(const IA of AA.cache.modules)this.cachedModules.set(IA.id,IA);this.pluginCache=((iA=AA.cache)==null?void 0:iA.plugins)||Object.create(null);for(const IA in this.pluginCache){const BA=this.pluginCache[IA];for(const sA of Object.values(BA))sA[0]++}}if(tA){this.watchMode=!0;const IA=(...sA)=>this.pluginDriver.hookParallel("watchChange",sA),BA=()=>this.pluginDriver.hookParallel("closeWatcher",[]);tA.onCurrentRun("change",IA),tA.onCurrentRun("close",BA)}this.pluginDriver=new cd(this,AA,AA.plugins,this.pluginCache),this.moduleLoader=new Xc(this,this.modulesById,this.options,this.pluginDriver),this.fileOperationQueue=new fd(AA.maxParallelFileOps),this.pureFunctions=(({treeshake:IA})=>{const BA=Object.create(null);for(const sA of IA?IA.manualPureFunctions:[]){let QA=BA;for(const CA of sA.split("."))QA=QA[CA]||(QA[CA]=Object.create(null));QA[xt]=!0}return BA})(AA)}async build(){El("generate module graph",2),await this.generateModuleGraph(),xl("generate module graph",2),El("sort and bind modules",2),this.phase=nl.ANALYSE,this.sortModules(),xl("sort and bind modules",2),El("mark included statements",2),this.includeStatements(),xl("mark included statements",2),this.phase=nl.GENERATE}getCache(){for(const AA in this.pluginCache){const tA=this.pluginCache[AA];let gA=!0;for(const[iA,IA]of Object.entries(tA))IA[0]>=this.options.experimentalCacheExpiry?delete tA[iA]:gA=!1;gA&&delete this.pluginCache[AA]}return{modules:this.modules.map(AA=>AA.toJSON()),plugins:this.pluginCache}}async generateModuleGraph(){var AA;if({entryModules:this.entryModules,implicitEntryModules:this.implicitEntryModules}=await this.moduleLoader.addEntryModules((AA=this.options.input,Array.isArray(AA)?AA.map(tA=>({fileName:null,id:tA,implicitlyLoadedAfter:[],importer:void 0,name:null})):Object.entries(AA).map(([tA,gA])=>({fileName:null,id:gA,implicitlyLoadedAfter:[],importer:void 0,name:tA}))),!0),this.entryModules.length===0)throw new Error("You must supply options.input to rollup");for(const tA of this.modulesById.values())tA.cacheInfoGetters(),tA instanceof Il?this.modules.push(tA):this.externalModules.push(tA)}includeStatements(){const AA=[...this.entryModules,...this.implicitEntryModules];for(const tA of AA)on(tA);if(this.options.treeshake){let tA=1;do{El(`treeshaking pass ${tA}`,3),this.needsTreeshakingPass=!1;for(const gA of this.modules)gA.isExecuted&&(gA.hasTreeShakingPassStarted=!0,gA.info.moduleSideEffects==="no-treeshake"?gA.includeAllInBundle():gA.include());if(tA===1)for(const gA of AA)gA.preserveSignature!==!1&&(gA.includeAllExports(!1),this.needsTreeshakingPass=!0);xl("treeshaking pass "+tA++,3)}while(this.needsTreeshakingPass)}else for(const tA of this.modules)tA.includeAllInBundle();for(const tA of this.externalModules)tA.warnUnusedImports();for(const tA of this.implicitEntryModules)for(const gA of tA.implicitlyLoadedAfter)gA.info.isEntry||gA.isIncluded()||Me(lt(gA))}sortModules(){const{orderedModules:AA,cyclePaths:tA}=function(gA){let iA=0;const IA=[],BA=new Set,sA=new Set,QA=new Map,CA=[],oA=EA=>{if(EA instanceof Il){for(const rA of EA.dependencies)QA.has(rA)?BA.has(rA)||IA.push(uc(rA,EA,QA)):(QA.set(rA,EA),oA(rA));for(const rA of EA.implicitlyLoadedBefore)sA.add(rA);for(const{resolution:rA}of EA.dynamicImports)rA instanceof Il&&sA.add(rA);CA.push(EA)}EA.execIndex=iA++,BA.add(EA)};for(const EA of gA)QA.has(EA)||(QA.set(EA,null),oA(EA));for(const EA of sA)QA.has(EA)||(QA.set(EA,null),oA(EA));return{cyclePaths:IA,orderedModules:CA}}(this.entryModules);for(const gA of tA)this.options.onLog(de,Ye(gA));this.modules=AA;for(const gA of this.modules)gA.bindReferences();this.warnForMissingExports()}warnForMissingExports(){for(const AA of this.modules)for(const tA of AA.importDescriptions.values())tA.name==="*"||tA.module.getVariableForExportName(tA.name)[0]||AA.log(de,at(tA.name,AA.id,tA.module.id),tA.start)}}function gd(eA,AA){return AA()}function yd(eA,AA,tA,gA){eA=dd("onLog",eA);const iA=pe[gA],IA=(BA,sA,QA=Y)=>{if(Te(sA),!(pe[BA]<iA)){for(const CA of eA){if(QA.has(CA))continue;const{onLog:oA}=CA,EA=rA=>pe[rA]<iA?an:cA=>IA(rA,Vc(cA),new Set(QA).add(CA));if(("handler"in oA?oA.handler:oA).call({debug:EA(he),error:rA=>Me(Vc(rA)),info:EA(ue),meta:{rollupVersion:t,watchMode:tA},warn:EA(de)},BA,sA)===!1)return}AA(BA,sA)}};return IA}const bd=eA=>{var AA;return eA.cache===!0?void 0:((AA=eA.cache)==null?void 0:AA.cache)||eA.cache},Ed=eA=>{if(eA===!0)return()=>!0;if(typeof eA=="function")return(tA,...gA)=>!tA.startsWith("\0")&&eA(tA,...gA)||!1;if(eA){const tA=new Set,gA=[];for(const iA of(AA=eA,Array.isArray(AA)?AA.filter(Boolean):AA?[AA]:[]))iA instanceof RegExp?gA.push(iA):tA.add(iA);return(iA,...IA)=>tA.has(iA)||gA.some(BA=>BA.test(iA))}var AA;return()=>!1},xd=eA=>{const AA=eA.input;return AA==null?[]:typeof AA=="string"?[AA]:AA},Sd=eA=>{const AA=eA.jsx;if(!AA)return!1;const tA=Hc(AA,Gc,"jsx",Ae,"false, "),{factory:gA,importSource:iA,mode:IA}=tA;switch(IA){case"automatic":return{factory:gA||"React.createElement",importSource:iA||"react",jsxImportSource:tA.jsxImportSource||"react/jsx-runtime",mode:"automatic"};case"preserve":return!iA||gA||tA.fragment||Me(ot("jsx",Ae,"when preserving JSX and specifying an importSource, you also need to specify a factory or fragment")),{factory:gA||null,fragment:tA.fragment||null,importSource:iA||null,mode:"preserve"};default:return IA&&IA!=="classic"&&Me(ot("jsx.mode",Ae,'mode must be "automatic", "classic" or "preserve"',IA)),{factory:gA||"React.createElement",fragment:tA.fragment||"React.Fragment",importSource:iA||null,mode:"classic"}}},Ad=eA=>{const AA=eA.maxParallelFileOps;return typeof AA=="number"?AA<=0?1/0:AA:20},$d=(eA,AA)=>{const tA=eA.moduleContext;if(typeof tA=="function")return gA=>tA(gA)??AA;if(tA){const gA=Object.create(null);for(const[iA,IA]of Object.entries(tA))gA[M(iA)]=IA;return iA=>gA[iA]??AA}return()=>AA},vd=eA=>{if(eA.treeshake===!1)return!1;const AA=Hc(eA.treeshake,Uc,"treeshake","configuration-options/#treeshake","false, true, ");return{annotations:AA.annotations!==!1,correctVarValueBeforeDeclaration:AA.correctVarValueBeforeDeclaration===!0,manualPureFunctions:AA.manualPureFunctions??X,moduleSideEffects:wd(AA.moduleSideEffects),propertyReadSideEffects:AA.propertyReadSideEffects==="always"?"always":AA.propertyReadSideEffects!==!1,tryCatchDeoptimization:AA.tryCatchDeoptimization!==!1,unknownGlobalSideEffects:AA.unknownGlobalSideEffects!==!1}},wd=eA=>{if(typeof eA=="boolean")return()=>eA;if(eA==="no-external")return(AA,tA)=>!tA;if(typeof eA=="function")return(AA,tA)=>!!AA.startsWith("\0")||eA(AA,tA)!==!1;if(Array.isArray(eA)){const AA=new Set(eA);return tA=>AA.has(tA)}return eA&&Me(ot("treeshake.moduleSideEffects","configuration-options/#treeshake-modulesideeffects",'please use one of false, "no-external", a function or an array')),()=>!0},Id=/[\u0000-\u001F"#$%&*+,:;<=>?[\]^`{|}\u007F]/g,Pd=/^[a-z]:/i;function kd(eA){const AA=Pd.exec(eA),tA=AA?AA[0]:"";return tA+eA.slice(tA.length).replace(Id,"_")}const Nd=(eA,AA,tA)=>{const{file:gA}=eA;if(typeof gA=="string"){if(AA)return Me(ot("output.file",ve,'you must set "output.dir" instead of "output.file" when using the "output.preserveModules" option'));if(!Array.isArray(tA.input))return Me(ot("output.file",ve,'you must set "output.dir" instead of "output.file" when providing named inputs'))}return gA},Cd=eA=>{const AA=eA.format;switch(AA){case void 0:case"es":case"esm":case"module":return"es";case"cjs":case"commonjs":return"cjs";case"system":case"systemjs":return"system";case"amd":case"iife":case"umd":return AA;default:return Me(ot("output.format",Ie,'Valid values are "amd", "cjs", "system", "es", "iife" or "umd"',AA))}},Od=(eA,AA)=>{const tA=eA.inlineDynamicImports||!1,{input:gA}=AA;return tA&&(Array.isArray(gA)?gA:Object.keys(gA)).length>1?Me(ot("output.inlineDynamicImports",Pe,'multiple inputs are not supported when "output.inlineDynamicImports" is true')):tA},Dd=(eA,AA,tA)=>{const gA=eA.preserveModules||!1;if(gA){if(AA)return Me(ot("output.inlineDynamicImports",Pe,'this option is not supported for "output.preserveModules"'));if(tA.preserveEntrySignatures===!1)return Me(ot("preserveEntrySignatures","configuration-options/#preserveentrysignatures",'setting this option to false is not supported for "output.preserveModules"'))}return gA},Md=eA=>{const{preserveModulesRoot:AA}=eA;if(AA!=null)return M(AA)},Rd=eA=>{const AA={autoId:!1,basePath:"",define:"define",forceJsExtensionForImports:!1,...eA.amd};return(AA.autoId||AA.basePath)&&AA.id?Me(ot("output.amd.id",$e,'this option cannot be used together with "output.amd.autoId"/"output.amd.basePath"')):AA.basePath&&!AA.autoId?Me(ot("output.amd.basePath","configuration-options/#output-amd-basepath",'this option only works with "output.amd.autoId"')):AA.autoId?{autoId:!0,basePath:AA.basePath,define:AA.define,forceJsExtensionForImports:AA.forceJsExtensionForImports}:{autoId:!1,define:AA.define,forceJsExtensionForImports:AA.forceJsExtensionForImports,id:AA.id}},_d=(eA,AA)=>{const tA=eA[AA];return typeof tA=="function"?tA:()=>tA||""},Ld=(eA,AA)=>{const{dir:tA}=eA;return typeof tA=="string"&&typeof AA=="string"?Me(ot("output.dir",ve,'you must set either "output.file" for a single-file build or "output.dir" when generating multiple chunks')):tA},Td=(eA,AA)=>{const tA=eA.entryFileNames;return tA==null&&AA.add("entryFileNames"),tA??"[name].js"};function Bd(eA,AA){const tA=eA.exports;if(tA==null)AA.add("exports");else if(!["default","named","none","auto"].includes(tA))return Me({code:Be,message:`"output.exports" must be "default", "named", "none", "auto", or left unspecified (defaults to "auto"), received "${tA}".`,url:xe(we)});return tA||"auto"}const zd=(eA,AA)=>(eA.externalImportAssertions!=null&&Et('The "output.externalImportAssertions" option is deprecated. Use the "output.externalImportAttributes" option instead.',"configuration-options/#output-externalimportattributes",!0,AA),eA.externalImportAttributes??eA.externalImportAssertions??!0),Vd=eA=>{const AA=Hc(eA.generatedCode,Wc,"output.generatedCode","configuration-options/#output-generatedcode","");return{arrowFunctions:AA.arrowFunctions===!0,constBindings:AA.constBindings===!0,objectShorthand:AA.objectShorthand===!0,reservedNamesAsProps:AA.reservedNamesAsProps!==!1,symbols:AA.symbols===!0}},Fd=(eA,AA)=>{if(AA)return"";const tA=eA.indent;return tA===!1?"":tA??!0},jd=new Set(["compat","auto","esModule","default","defaultOnly"]),Ud=eA=>{const AA=eA.interop;if(typeof AA=="function"){const tA=Object.create(null);let gA=null;return iA=>iA===null?gA||Gd(gA=AA(iA)):iA in tA?tA[iA]:Gd(tA[iA]=AA(iA))}return AA===void 0?()=>"default":()=>Gd(AA)},Gd=eA=>jd.has(eA)?eA:Me(ot("output.interop",ke,`use one of ${Array.from(jd,AA=>JSON.stringify(AA)).join(", ")}`,eA)),Wd=(eA,AA,tA)=>{const gA=eA.manualChunks;if(gA){if(AA)return Me(ot("output.manualChunks",Ne,'this option is not supported for "output.inlineDynamicImports"'));if(tA)return Me(ot("output.manualChunks",Ne,'this option is not supported for "output.preserveModules"'))}return gA||{}},Hd=(eA,AA,tA)=>eA.minifyInternalExports??(tA||AA==="es"||AA==="system"),qd=(eA,AA)=>{const tA=eA.sourcemapFileNames;return tA==null&&AA.add("sourcemapFileNames"),tA},Jd=eA=>{const{sourcemapBaseUrl:AA}=eA;if(AA)return function(gA){try{new URL(gA)}catch{return!1}return!0}(AA)?(tA=AA).endsWith("/")?tA:tA+"/":Me(ot("output.sourcemapBaseUrl","configuration-options/#output-sourcemapbaseurl",`must be a valid URL, received ${JSON.stringify(AA)}`));var tA};function Kd(eA){return async function(AA,tA){const{options:gA,unsetOptions:iA}=await async function(QA,CA){if(!QA)throw new Error("You must supply an options object to rollup");const oA=await async function(cA,uA){const lA=dd("options",await qc(cA.plugins)),hA=cA.logLevel||ue,dA=yd(lA,Tc(cA,hA),uA,hA);for(const DA of lA){const{name:wA,options:RA}=DA,yA="handler"in RA?RA.handler:RA,kA=await yA.call({debug:od(he,"PLUGIN_LOG",dA,wA,hA),error:LA=>Me(ft(Vc(LA),wA,{hook:"onLog"})),info:od(ue,"PLUGIN_LOG",dA,wA,hA),meta:{rollupVersion:t,watchMode:uA},warn:od(de,"PLUGIN_WARNING",dA,wA,hA)},cA);kA&&(cA=kA)}return cA}(QA,CA),{options:EA,unsetOptions:rA}=await async function(cA,uA){const lA=new Set,hA=cA.context??"undefined",dA=await qc(cA.plugins),DA=cA.logLevel||ue,wA=yd(dA,Tc(cA,DA),uA,DA),RA=cA.strictDeprecations||!1,yA=Ad(cA),kA={cache:bd(cA),context:hA,experimentalCacheExpiry:cA.experimentalCacheExpiry??10,experimentalLogSideEffects:cA.experimentalLogSideEffects||!1,external:Ed(cA.external),input:xd(cA),jsx:Sd(cA),logLevel:DA,makeAbsoluteExternalsRelative:cA.makeAbsoluteExternalsRelative??"ifRelativeSource",maxParallelFileOps:yA,moduleContext:$d(cA,hA),onLog:wA,perf:cA.perf||!1,plugins:dA,preserveEntrySignatures:cA.preserveEntrySignatures??"exports-only",preserveSymlinks:cA.preserveSymlinks||!1,shimMissingExports:cA.shimMissingExports||!1,strictDeprecations:RA,treeshake:vd(cA)};return jc(cA,[...Object.keys(kA),"onwarn","watch"],"input options",wA,/^(output)$/),{options:kA,unsetOptions:lA}}(oA,CA);return Xd(EA.plugins,Mc),{options:EA,unsetOptions:rA}}(AA,tA!==null);(function(QA){QA.perf?(fl=new Map,El=gl,xl=yl,QA.plugins=QA.plugins.map(Al)):(El=an,xl=an)})(gA),await async function(){await so()}();const IA=new md(gA,tA),BA=AA.cache!==!1;AA.cache&&(gA.cache=void 0,AA.cache=void 0),El("BUILD",1),await gd(IA.pluginDriver,async()=>{try{El("initialize",2),await IA.pluginDriver.hookParallel("buildStart",[gA]),xl("initialize",2),await IA.build()}catch(QA){const CA=Object.keys(IA.watchFiles);throw CA.length>0&&(QA.watchFiles=CA),await IA.pluginDriver.hookParallel("buildEnd",[QA]),await IA.pluginDriver.hookParallel("closeBundle",[]),QA}await IA.pluginDriver.hookParallel("buildEnd",[])}),xl("BUILD",1);const sA={cache:BA?IA.getCache():void 0,async close(){sA.closed||(sA.closed=!0,await IA.pluginDriver.hookParallel("closeBundle",[]))},closed:!1,generate:async QA=>sA.closed?Me({code:"ALREADY_CLOSED",message:'Bundle is already closed, no more calls to "generate" or "write" are allowed.'}):Yd(!1,gA,iA,QA,IA),get watchFiles(){return Object.keys(IA.watchFiles)},write:async QA=>sA.closed?Me({code:"ALREADY_CLOSED",message:'Bundle is already closed, no more calls to "generate" or "write" are allowed.'}):Yd(!0,gA,iA,QA,IA)};return gA.perf&&(sA.getTimings=bl),sA}(eA,null)}function Xd(eA,AA){for(const[tA,gA]of eA.entries())gA.name||(gA.name=`${AA}${tA+1}`)}async function Yd(eA,AA,tA,gA,iA){const{options:IA,outputPluginDriver:BA,unsetOptions:sA}=await async function(QA,CA,oA,EA){if(!QA)throw new Error("You must supply an options object");const rA=await qc(QA.plugins);Xd(rA,Rc);const cA=CA.createOutputPluginDriver(rA);return{...await Zd(oA,EA,QA,cA),outputPluginDriver:cA}}(gA,iA.pluginDriver,AA,tA);return gd(0,async()=>{const QA=new wc(IA,sA,AA,BA,iA),CA=await QA.generate(eA);if(eA){if(El("WRITE",1),!IA.dir&&!IA.file)return Me({code:"MISSING_OPTION",message:'You must specify "output.file" or "output.dir" for the build.',url:xe(ve)});await Promise.all(Object.values(CA).map(EA=>iA.fileOperationQueue.run(()=>async function(rA,cA){const uA=M(cA.dir||C(cA.file),rA.fileName);return await Nc(C(uA),{recursive:!0}),Oc(uA,rA.type==="asset"?rA.source:rA.code)}(EA,IA)))),await BA.hookParallel("writeBundle",[IA,CA]),xl("WRITE",1)}return oA=CA,{output:Object.values(oA).filter(EA=>Object.keys(EA).length>0).sort((EA,rA)=>eu(EA)-eu(rA))};var oA})}function Zd(eA,AA,tA,gA){return async function(iA,IA,BA){const sA=new Set(BA),QA=iA.compact||!1,CA=Cd(iA),oA=Od(iA,IA),EA=Dd(iA,oA,IA),rA=Nd(iA,EA,IA),cA=Vd(iA),uA=zd(iA,IA),lA={amd:Rd(iA),assetFileNames:iA.assetFileNames??"assets/[name]-[hash][extname]",banner:_d(iA,"banner"),chunkFileNames:iA.chunkFileNames??"[name]-[hash].js",compact:QA,dir:Ld(iA,rA),dynamicImportInCjs:iA.dynamicImportInCjs??!0,entryFileNames:Td(iA,sA),esModule:iA.esModule??"if-default-prop",experimentalMinChunkSize:iA.experimentalMinChunkSize??1,exports:Bd(iA,sA),extend:iA.extend||!1,externalImportAssertions:uA,externalImportAttributes:uA,externalLiveBindings:iA.externalLiveBindings??!0,file:rA,footer:_d(iA,"footer"),format:CA,freeze:iA.freeze??!0,generatedCode:cA,globals:iA.globals||{},hashCharacters:iA.hashCharacters??"base64",hoistTransitiveImports:iA.hoistTransitiveImports??!0,importAttributesKey:iA.importAttributesKey??"assert",indent:Fd(iA,QA),inlineDynamicImports:oA,interop:Ud(iA),intro:_d(iA,"intro"),manualChunks:Wd(iA,oA,EA),minifyInternalExports:Hd(iA,CA,QA),name:iA.name,noConflict:iA.noConflict||!1,outro:_d(iA,"outro"),paths:iA.paths||{},plugins:await qc(iA.plugins),preserveModules:EA,preserveModulesRoot:Md(iA),reexportProtoFromExternal:iA.reexportProtoFromExternal??!0,sanitizeFileName:typeof iA.sanitizeFileName=="function"?iA.sanitizeFileName:iA.sanitizeFileName===!1?hA=>hA:kd,sourcemap:iA.sourcemap||!1,sourcemapBaseUrl:Jd(iA),sourcemapExcludeSources:iA.sourcemapExcludeSources||!1,sourcemapFile:iA.sourcemapFile,sourcemapFileNames:qd(iA,sA),sourcemapIgnoreList:typeof iA.sourcemapIgnoreList=="function"?iA.sourcemapIgnoreList:iA.sourcemapIgnoreList===!1?()=>!1:hA=>hA.includes("node_modules"),sourcemapPathTransform:iA.sourcemapPathTransform,strict:iA.strict??!0,systemNullSetters:iA.systemNullSetters??!0,validate:iA.validate||!1,virtualDirname:iA.virtualDirname||"_virtual"};return jc(iA,Object.keys(lA),"output options",IA.onLog),{options:lA,unsetOptions:sA}}(gA.hookReduceArg0Sync("outputOptions",[tA],(iA,IA)=>IA||iA,iA=>{const IA=()=>iA.error({code:"CANNOT_EMIT_FROM_OPTIONS_HOOK",message:'Cannot emit files or set asset sources in the "outputOptions" hook, use the "renderStart" hook instead.'});return{...iA,emitFile:IA,setAssetSource:IA}}),eA,AA)}var Qd;function eu(eA){return eA.type==="asset"?Qd.ASSET:eA.isEntry?Qd.ENTRY_CHUNK:Qd.SECONDARY_CHUNK}(function(eA){eA[eA.ENTRY_CHUNK=0]="ENTRY_CHUNK",eA[eA.SECONDARY_CHUNK=1]="SECONDARY_CHUNK",eA[eA.ASSET=2]="ASSET"})(Qd||(Qd={}));const bundle=async(eA,AA,tA,gA)=>(await(await Kd({input:`${INTERNAL_TAG}/index.js`,plugins:[plugin(eA,AA,tA),plugin$1()],external:gA,onwarn:warning})).generate({format:"esm"})).output[0].code;self.addEventListener("message",async eA=>{try{if(eA.data.type=="init"){const AA={host:eA.data.host,cdn_url:eA.data.cdn_url},tA=await service_fetch(AA,concat([header(nil_xit_proto.MessageType.MessageType_FrameRequest),nil_xit_proto.FrameRequest.encode({id:eA.data.id}).finish()]),(gA,iA)=>{if(gA===nil_xit_proto.MessageType.MessageType_FrameResponse){const IA=nil_xit_proto.FrameResponse.decode(iA);if(eA.data.id===IA.id)return IA}});if(tA.value==="content")self.postMessage({ok:!0,code:tA.content});else if(tA.value==="file"&&tA.file!=null){const gA=[],iA=await bundle(AA,ROOT_FILE(tA.file),(BA,sA)=>gA.push({target:BA,metadata:sA}),BA=>BA.startsWith("svelte")),IA=await bundle(AA,iA);self.postMessage({ok:!0,code:IA,files:gA})}}}catch(AA){self.postMessage({ok:!1,err:AA})}})})();
|
|
112
|
+
`,s:";"},LA=dA?"const":"var",KA=(NA,{isAsync:SA,name:qA})=>`${SA?"async ":""}function${qA?` ${qA}`:""}${RA}(${NA.join(`,${RA}`)})${RA}`,bA=hA?(NA,{isAsync:SA,name:qA})=>{const UA=NA.length===1;return`${qA?`${LA} ${qA}${RA}=${RA}`:""}${SA?`async${UA?" ":RA}`:""}${UA?NA[0]:`(${NA.join(`,${RA}`)})`}${RA}=>${RA}`}:KA,JA=(NA,{functionReturn:SA,lineBreakIndent:qA,name:UA})=>[`${bA(NA,{isAsync:!1,name:UA})}${hA?qA?`${yA}${qA.base}${qA.t}`:"":`{${qA?`${yA}${qA.base}${qA.t}`:RA}${SA?"return ":""}`}`,hA?`${UA?";":""}${qA?`${yA}${qA.base}`:""}`:`${kA}${qA?`${yA}${qA.base}`:RA}}`],MA=wA?NA=>en.test(NA):NA=>!Xt.has(NA)&&en.test(NA);return{_:RA,cnst:LA,getDirectReturnFunction:JA,getDirectReturnIifeLeft:(NA,SA,{needsArrowReturnParens:qA,needsWrappedFunction:UA})=>{const[mA,aA]=JA(NA,{functionReturn:!0,lineBreakIndent:null,name:null});return`${hc(`${mA}${hc(SA,hA&&qA)}${aA}`,hA||UA)}(`},getFunctionIntro:bA,getNonArrowFunctionIntro:KA,getObject(NA,{lineBreakIndent:SA}){const qA=SA?`${yA}${SA.base}${SA.t}`:RA;return`{${NA.map(([UA,mA])=>{if(UA===null)return`${qA}${mA}`;const aA=nn(UA);return UA===mA&&DA&&UA===aA?qA+UA:`${qA}${aA}:${RA}${mA}`}).join(",")}${NA.length===0?"":SA?`${yA}${SA.base}`:RA}}`},getPropertyAccess:NA=>MA(NA)?`.${NA}`:`[${JSON.stringify(NA)}]`,n:yA,s:kA}}(this.outputOptions),CA=function(lA){const hA=[];for(const dA of lA.values())dA instanceof Il&&(dA.isIncluded()||dA.info.isEntry||dA.includedDynamicImporters.length>0)&&hA.push(dA);return hA}(this.graph.modulesById),oA=function(lA){if(lA.length===0)return"/";if(lA.length===1)return C(lA[0]);const hA=lA.slice(1).reduce((dA,DA)=>{const wA=DA.split(/\/+|\\+/);let RA;for(RA=0;dA[RA]===wA[RA]&&RA<Math.min(dA.length,wA.length);RA++);return dA.slice(0,RA)},lA[0].split(/\/+|\\+/));return hA.length>1?hA.join("/"):"/"}(function(lA,hA){const dA=[];for(const DA of lA)(DA.info.isEntry||hA)&&I(DA.id)&&dA.push(DA.id);return dA}(CA,BA)),EA=function(lA,hA,dA){const DA=new Map;for(const wA of lA.values())wA instanceof rn&&DA.set(wA,new hr(wA,hA,dA));return DA}(this.graph.modulesById,this.outputOptions,oA),rA=[],cA=new Map;for(const{alias:lA,modules:hA}of iA?[{alias:null,modules:CA}]:BA?CA.map(dA=>({alias:null,modules:[dA]})):nc(this.graph.entryModules,sA,gA,this.inputOptions.onLog)){hA.sort(dc);const dA=new Kl(hA,this.inputOptions,this.outputOptions,this.unsetOptions,this.pluginDriver,this.graph.modulesById,cA,EA,this.facadeChunkByModule,this.includedNamespaces,lA,tA,AA,oA,QA);rA.push(dA)}for(const lA of rA)lA.link();const uA=[];for(const lA of rA)uA.push(...lA.generateFacades());return[...rA,...uA]}}function Ic(eA,AA,tA){const gA=tA.get(AA);if(typeof gA=="string"&&gA!==eA)return Me((iA=AA.id,IA=eA,BA=gA,{code:"INVALID_CHUNK",message:`Cannot assign "${ge(iA)}" to the "${IA}" chunk as it is already in the "${BA}" chunk.`}));var iA,IA,BA;tA.set(AA,eA)}class Pc extends Rs{constructor(){super(),this.parent=null,this.variables.set("undefined",new lr)}findVariable(AA){let tA=this.variables.get(AA);return tA||(tA=new Is(AA),this.variables.set(AA,tA)),tA}}const kc=eA=>()=>Me(function(AA){return{code:"NO_FS_IN_BROWSER",message:`Cannot access the file system (via "${AA}") when using the browser build of Rollup. Make sure you supply a plugin with custom resolveId and load hooks to Rollup.`,url:xe("plugin-development/#a-simple-example")}}(eA)),Nc=kc("fs.mkdir"),Cc=kc("fs.readFile"),Oc=kc("fs.writeFile");async function Dc(eA,AA,tA,gA,iA,IA,BA,sA,QA){const CA=await function(oA,EA,rA,cA,uA,lA,hA,dA){let DA=null,wA=null;if(uA){DA=new Set;for(const RA of uA)oA===RA.source&&EA===RA.importer&&DA.add(RA.plugin);wA=(RA,yA)=>({...RA,resolve:(kA,LA,{attributes:KA,custom:bA,isEntry:JA,skipSelf:MA}=J)=>(MA??(MA=!0),cA(kA,LA,bA,JA,KA||K,MA?[...uA,{importer:LA,plugin:yA,source:kA}]:uA))})}return rA.hookFirstAndGetPlugin("resolveId",[oA,EA,{attributes:dA,custom:lA,isEntry:hA}],wA,DA)}(eA,AA,gA,iA,IA,BA,sA,QA);return CA==null?kc("path.resolve")():CA[0]}const Mc="at position ",Rc="at output position ",_c={delete:()=>!1,get(){},has:()=>!1,set(){}};function Lc(eA){return eA.startsWith(Mc)||eA.startsWith(Rc)?Me({code:"ANONYMOUS_PLUGIN_CACHE",message:"A plugin is trying to use the Rollup cache but is not declaring a plugin name or cacheKey."}):Me({code:"DUPLICATE_PLUGIN_NAME",message:`The plugin name ${eA} is being used twice in the same build. Plugin names must be distinct or provide a cacheKey (please post an issue to the plugin if you are a plugin user).`})}const Tc=(eA,AA,tA=Fc)=>{const{onwarn:gA,onLog:iA}=eA,IA=Bc(tA,gA);if(iA){const BA=pe[AA];return(sA,QA)=>iA(sA,zc(QA),(CA,oA)=>{if(CA==="error")return Me(Vc(oA));pe[CA]>=BA&&IA(CA,Vc(oA))})}return IA},Bc=(eA,AA)=>AA?(tA,gA)=>{tA===de?AA(zc(gA),iA=>eA(de,Vc(iA))):eA(tA,gA)}:eA,zc=eA=>(Object.defineProperty(eA,"toString",{value:()=>eA.message,writable:!0}),eA),Vc=eA=>typeof eA=="string"?{message:eA}:typeof eA=="function"?Vc(eA()):eA,Fc=(eA,{message:AA})=>{switch(eA){case de:return console.warn(AA);case he:return console.debug(AA);default:return console.info(AA)}};function jc(eA,AA,tA,gA,iA=/$./){const IA=new Set(AA),BA=Object.keys(eA).filter(sA=>!(IA.has(sA)||iA.test(sA)));BA.length>0&&gA(de,function(sA,QA,CA){return{code:"UNKNOWN_OPTION",message:`Unknown ${sA}: ${QA.join(", ")}. Allowed options: ${CA.join(", ")}`}}(tA,BA,[...IA].sort()))}const Uc={recommended:{annotations:!0,correctVarValueBeforeDeclaration:!1,manualPureFunctions:X,moduleSideEffects:()=>!0,propertyReadSideEffects:!0,tryCatchDeoptimization:!0,unknownGlobalSideEffects:!1},safest:{annotations:!0,correctVarValueBeforeDeclaration:!0,manualPureFunctions:X,moduleSideEffects:()=>!0,propertyReadSideEffects:!0,tryCatchDeoptimization:!0,unknownGlobalSideEffects:!0},smallest:{annotations:!0,correctVarValueBeforeDeclaration:!1,manualPureFunctions:X,moduleSideEffects:()=>!1,propertyReadSideEffects:!1,tryCatchDeoptimization:!1,unknownGlobalSideEffects:!1}},Gc={preserve:{factory:null,fragment:null,importSource:null,mode:"preserve"},"preserve-react":{factory:"React.createElement",fragment:"React.Fragment",importSource:"react",mode:"preserve"},react:{factory:"React.createElement",fragment:"React.Fragment",importSource:"react",mode:"classic"},"react-jsx":{factory:"React.createElement",importSource:"react",jsxImportSource:"react/jsx-runtime",mode:"automatic"}},Wc={es2015:{arrowFunctions:!0,constBindings:!0,objectShorthand:!0,reservedNamesAsProps:!0,symbols:!0},es5:{arrowFunctions:!1,constBindings:!1,objectShorthand:!1,reservedNamesAsProps:!0,symbols:!1}},Hc=(eA,AA,tA,gA,iA)=>{const IA=eA==null?void 0:eA.preset;if(IA){const BA=AA[IA];if(BA)return{...BA,...eA};Me(ot(`${tA}.preset`,gA,`valid values are ${fe(Object.keys(AA))}`,IA))}return((BA,sA,QA,CA)=>oA=>{if(typeof oA=="string"){const EA=BA[oA];if(EA)return EA;Me(ot(sA,QA,`valid values are ${CA}${fe(Object.keys(BA))}. You can also supply an object for more fine-grained control`,oA))}return(EA=>EA&&typeof EA=="object"?EA:{})(oA)})(AA,tA,gA,iA)(eA)},qc=async eA=>(await async function(AA){do AA=(await Promise.all(AA)).flat(1/0);while(AA.some(tA=>tA==null?void 0:tA.then));return AA}([eA])).filter(Boolean);async function Jc(eA,AA,tA,gA){const iA=AA.id,IA=[];let BA=eA.map===null?null:rl(eA.map);const sA=eA.code;let QA=eA.ast;const CA=[],oA=[];let EA=!1;const rA=()=>EA=!0;let cA="",uA=eA.code;const lA=dA=>(DA,wA)=>{DA=Vc(DA),wA&&_e(DA,wA,uA,iA),DA.id=iA,DA.hook="transform",dA(DA)};let hA;try{hA=await tA.hookReduceArg0("transform",[uA,iA],function(dA,DA,wA){let RA,yA;if(typeof DA=="string")RA=DA;else{if(!DA||typeof DA!="object")return dA;if(AA.updateOptions(DA),DA.code==null)return(DA.map||DA.ast)&&gA(de,function(kA){return{code:"NO_TRANSFORM_MAP_OR_AST_WITHOUT_CODE",message:`The plugin "${kA}" returned a "map" or "ast" without returning a "code". This will be ignored.`}}(wA.name)),dA;({code:RA,map:yA,ast:QA}=DA)}return yA!==null&&IA.push(rl(typeof yA=="string"?JSON.parse(yA):yA)||{missing:!0,plugin:wA.name}),uA=RA,RA},(dA,DA)=>{return cA=DA.name,{...dA,addWatchFile(yA){CA.push(yA),dA.addWatchFile(yA)},cache:EA?dA.cache:(wA=dA.cache,RA=rA,{delete:yA=>(RA(),wA.delete(yA)),get:yA=>(RA(),wA.get(yA)),has:yA=>(RA(),wA.has(yA)),set:(yA,kA)=>(RA(),wA.set(yA,kA))}),debug:lA(dA.debug),emitFile:yA=>(oA.push(yA),tA.emitFile(yA)),error:(yA,kA)=>(typeof yA=="string"&&(yA={message:yA}),kA&&_e(yA,kA,uA,iA),yA.id=iA,yA.hook="transform",dA.error(yA)),getCombinedSourcemap(){const yA=function(kA,LA,KA,bA,JA){return bA.length===0?KA:rl({version:3,...gc(kA,LA,KA,bA,mc(JA)).traceMappings()})}(iA,sA,BA,IA,gA);return yA?(BA!==yA&&(BA=yA,IA.length=0),new c({...yA,file:null,sourcesContent:yA.sourcesContent})):new b(sA).generateMap({hires:!0,includeContent:!0,source:iA})},info:lA(dA.info),setAssetSource(){return this.error({code:"INVALID_SETASSETSOURCE",message:"setAssetSource cannot be called in transform for caching reasons. Use emitFile with a source, or call setAssetSource in another hook."})},warn:lA(dA.warn)};var wA,RA})}catch(dA){return Me(ft(dA,cA,{hook:"transform",id:iA}))}return!EA&&oA.length>0&&(AA.transformFiles=oA),{ast:QA,code:hA,customTransformCache:EA,originalCode:sA,originalSourcemap:BA,sourcemapChain:IA,transformDependencies:CA}}const Kc="resolveDependencies";class Xc{constructor(AA,tA,gA,iA){this.graph=AA,this.modulesById=tA,this.options=gA,this.pluginDriver=iA,this.implicitEntryModules=new Set,this.indexedEntryModules=[],this.latestLoadModulesPromise=Promise.resolve(),this.moduleLoadPromises=new Map,this.modulesWithLoadedDependencies=new Set,this.nextChunkNamePriority=0,this.nextEntryModuleIndex=0,this.resolveId=async(IA,BA,sA,QA,CA,oA=null)=>this.getResolvedIdWithDefaults(this.getNormalizedResolvedIdWithoutDefaults(!this.options.external(IA,BA,!1)&&await Dc(IA,BA,this.options.preserveSymlinks,this.pluginDriver,this.resolveId,oA,sA,typeof QA=="boolean"?QA:!BA,CA),BA,IA),CA),this.hasModuleSideEffects=gA.treeshake?gA.treeshake.moduleSideEffects:()=>!0}async addAdditionalModules(AA,tA){const gA=this.extendLoadModulesPromise(Promise.all(AA.map(iA=>this.loadEntryModule(iA,!1,void 0,null,tA))));return await this.awaitLoadModulesPromise(),gA}async addEntryModules(AA,tA){const gA=this.nextEntryModuleIndex;this.nextEntryModuleIndex+=AA.length;const iA=this.nextChunkNamePriority;this.nextChunkNamePriority+=AA.length;const IA=await this.extendLoadModulesPromise(Promise.all(AA.map(({id:BA,importer:sA})=>this.loadEntryModule(BA,!0,sA,null))).then(BA=>{for(const[sA,QA]of BA.entries()){QA.isUserDefinedEntryPoint=QA.isUserDefinedEntryPoint||tA,Zc(QA,AA[sA],tA,iA+sA);const CA=this.indexedEntryModules.find(oA=>oA.module===QA);CA?CA.index=Math.min(CA.index,gA+sA):this.indexedEntryModules.push({index:gA+sA,module:QA})}return this.indexedEntryModules.sort(({index:sA},{index:QA})=>sA>QA?1:-1),BA}));return await this.awaitLoadModulesPromise(),{entryModules:this.indexedEntryModules.map(({module:BA})=>BA),implicitEntryModules:[...this.implicitEntryModules],newEntryModules:IA}}async emitChunk({fileName:AA,id:tA,importer:gA,name:iA,implicitlyLoadedAfterOneOf:IA,preserveSignature:BA}){const sA={fileName:AA||null,id:tA,importer:gA,name:iA||null},QA=IA?await this.addEntryWithImplicitDependants(sA,IA):(await this.addEntryModules([sA],!1)).newEntryModules[0];return BA!=null&&(QA.preserveSignature=BA),QA}async preloadModule(AA){return(await this.fetchModule(this.getResolvedIdWithDefaults(AA,K),void 0,!1,!AA.resolveDependencies||Kc)).info}addEntryWithImplicitDependants(AA,tA){const gA=this.nextChunkNamePriority++;return this.extendLoadModulesPromise(this.loadEntryModule(AA.id,!1,AA.importer,null).then(async iA=>{if(Zc(iA,AA,!1,gA),!iA.info.isEntry){const IA=await Promise.all(tA.map(BA=>this.loadEntryModule(BA,!1,AA.importer,iA.id)));if(!iA.info.isEntry){this.implicitEntryModules.add(iA);for(const BA of IA)iA.implicitlyLoadedAfter.add(BA);for(const BA of iA.implicitlyLoadedAfter)BA.implicitlyLoadedBefore.add(iA)}}return iA}))}async addModuleSource(AA,tA,gA){let iA;try{iA=await this.graph.fileOperationQueue.run(async()=>{const QA=await this.pluginDriver.hookFirst("load",[AA]);return QA!==null?QA:(this.graph.watchFiles[AA]=!0,await Cc(AA,"utf8"))})}catch(QA){let CA=`Could not load ${AA}`;throw tA&&(CA+=` (imported by ${ge(tA)})`),CA+=`: ${QA.message}`,QA.message=CA,QA}const IA=typeof iA=="string"?{code:iA}:iA!=null&&typeof iA=="object"&&typeof iA.code=="string"?iA:Me(function(QA){return{code:"BAD_LOADER",message:`Error loading "${ge(QA)}": plugin load hook should return a string, a { code, map } object, or nothing/null.`}}(AA)),BA=IA.code;BA.charCodeAt(0)===65279&&(IA.code=BA.slice(1));const sA=this.graph.cachedModules.get(AA);if(!sA||sA.customTransformCache||sA.originalCode!==IA.code||await this.pluginDriver.hookFirst("shouldTransformCachedModule",[{ast:sA.ast,code:sA.code,id:sA.id,meta:sA.meta,moduleSideEffects:sA.moduleSideEffects,resolvedSources:sA.resolvedIds,syntheticNamedExports:sA.syntheticNamedExports}]))gA.updateOptions(IA),await gA.setSource(await Jc(IA,gA,this.pluginDriver,this.options.onLog));else{if(sA.transformFiles)for(const QA of sA.transformFiles)this.pluginDriver.emitFile(QA);await gA.setSource(sA)}}async awaitLoadModulesPromise(){let AA;do AA=this.latestLoadModulesPromise,await AA;while(AA!==this.latestLoadModulesPromise)}extendLoadModulesPromise(AA){return this.latestLoadModulesPromise=Promise.all([AA,this.latestLoadModulesPromise]),this.latestLoadModulesPromise.catch(()=>{}),AA}async fetchDynamicDependencies(AA,tA){const gA=await Promise.all(tA.map(iA=>iA.then(async([IA,BA])=>BA===null?null:typeof BA=="string"?(IA.resolution=BA,null):IA.resolution=await this.fetchResolvedDependency(ge(BA.id),AA.id,BA))));for(const iA of gA)iA&&(AA.dynamicDependencies.add(iA),iA.dynamicImporters.push(AA.id))}async fetchModule({attributes:AA,id:tA,meta:gA,moduleSideEffects:iA,syntheticNamedExports:IA},BA,sA,QA){const CA=this.modulesById.get(tA);if(CA instanceof Il)return BA&&ul(AA,CA.info.attributes)&&this.options.onLog(de,et(CA.info.attributes,AA,tA,BA)),await this.handleExistingModule(CA,sA,QA),CA;if(CA instanceof rn)return Me({code:"EXTERNAL_MODULES_CANNOT_BE_TRANSFORMED_TO_MODULES",message:`${CA.id} is resolved as a module now, but it was an external module before. Please check whether there are conflicts in your Rollup options "external" and "manualChunks", manualChunks cannot include external modules.`});const oA=new Il(this.graph,tA,this.options,sA,iA,IA,gA,AA);this.modulesById.set(tA,oA);const EA=this.addModuleSource(tA,BA,oA).then(()=>[this.getResolveStaticDependencyPromises(oA),this.getResolveDynamicImportPromises(oA),rA]),rA=ed(EA).then(()=>this.pluginDriver.hookParallel("moduleParsed",[oA.info]));rA.catch(()=>{}),this.moduleLoadPromises.set(oA,EA);const cA=await EA;return QA?QA===Kc&&await rA:await this.fetchModuleDependencies(oA,...cA),oA}async fetchModuleDependencies(AA,tA,gA,iA){this.modulesWithLoadedDependencies.has(AA)||(this.modulesWithLoadedDependencies.add(AA),await Promise.all([this.fetchStaticDependencies(AA,tA),this.fetchDynamicDependencies(AA,gA)]),AA.linkImports(),await iA)}fetchResolvedDependency(AA,tA,gA){if(gA.external){const{attributes:iA,external:IA,id:BA,moduleSideEffects:sA,meta:QA}=gA;let CA=this.modulesById.get(BA);if(CA){if(!(CA instanceof rn))return Me(function(oA,EA){return{code:"INVALID_EXTERNAL_ID",message:`"${oA}" is imported as an external by "${ge(EA)}", but is already an existing non-external module id.`}}(AA,tA));ul(CA.info.attributes,iA)&&this.options.onLog(de,et(CA.info.attributes,iA,AA,tA))}else CA=new rn(this.options,BA,sA,QA,IA!=="absolute"&&I(BA),iA),this.modulesById.set(BA,CA);return Promise.resolve(CA)}return this.fetchModule(gA,tA,!1,!1)}async fetchStaticDependencies(AA,tA){for(const gA of await Promise.all(tA.map(iA=>iA.then(([IA,BA])=>this.fetchResolvedDependency(IA,AA.id,BA)))))AA.dependencies.add(gA),gA.importers.push(AA.id);if(!this.options.treeshake||AA.info.moduleSideEffects==="no-treeshake")for(const gA of AA.dependencies)gA instanceof Il&&(gA.importedFromNotTreeshaken=!0)}getNormalizedResolvedIdWithoutDefaults(AA,tA,gA){const{makeAbsoluteExternalsRelative:iA}=this.options;if(AA){if(typeof AA=="object"){const sA=AA.external||this.options.external(AA.id,tA,!0);return{...AA,external:sA&&(sA==="relative"||!I(AA.id)||sA===!0&&Qc(AA.id,gA,iA)||"absolute")}}const BA=this.options.external(AA,tA,!0);return{external:BA&&(Qc(AA,gA,iA)||"absolute"),id:BA&&iA?Yc(AA,tA):AA}}const IA=iA?Yc(gA,tA):gA;return AA===!1||this.options.external(IA,tA,!0)?{external:Qc(IA,gA,iA)||"absolute",id:IA}:null}getResolveDynamicImportPromises(AA){return AA.dynamicImports.map(async tA=>{const gA=await this.resolveDynamicImport(AA,tA.argument,AA.id,cl(tA.node));return gA&&typeof gA=="object"&&(tA.id=gA.id),[tA,gA]})}getResolveStaticDependencyPromises(AA){return Array.from(AA.sourcesWithAttributes,async([tA,gA])=>[tA,AA.resolvedIds[tA]=AA.resolvedIds[tA]||this.handleInvalidResolvedId(await this.resolveId(tA,AA.id,K,!1,gA),tA,AA.id,gA)])}getResolvedIdWithDefaults(AA,tA){if(!AA)return null;const gA=AA.external||!1;return{attributes:AA.attributes||tA,external:gA,id:AA.id,meta:AA.meta||{},moduleSideEffects:AA.moduleSideEffects??this.hasModuleSideEffects(AA.id,!!gA),resolvedBy:AA.resolvedBy??"rollup",syntheticNamedExports:AA.syntheticNamedExports??!1}}async handleExistingModule(AA,tA,gA){const iA=this.moduleLoadPromises.get(AA);if(gA)return gA===Kc?ed(iA):iA;if(tA){AA.info.isEntry=!0,this.implicitEntryModules.delete(AA);for(const IA of AA.implicitlyLoadedAfter)IA.implicitlyLoadedBefore.delete(AA);AA.implicitlyLoadedAfter.clear()}return this.fetchModuleDependencies(AA,...await iA)}handleInvalidResolvedId(AA,tA,gA,iA){return AA===null?P(tA)?Me(function(IA,BA){return{code:Je,exporter:IA,id:BA,message:`Could not resolve "${IA}" from "${ge(BA)}"`}}(tA,gA)):(this.options.onLog(de,function(IA,BA){return{code:Je,exporter:IA,id:BA,message:`"${IA}" is imported by "${ge(BA)}", but could not be resolved – treating it as an external dependency.`,url:xe("troubleshooting/#warning-treating-module-as-external-dependency")}}(tA,gA)),{attributes:iA,external:!0,id:tA,meta:{},moduleSideEffects:this.hasModuleSideEffects(tA,!0),resolvedBy:"rollup",syntheticNamedExports:!1}):(AA.external&&AA.syntheticNamedExports&&this.options.onLog(de,function(IA,BA){return{code:"EXTERNAL_SYNTHETIC_EXPORTS",exporter:IA,message:`External "${IA}" cannot have "syntheticNamedExports" enabled (imported by "${ge(BA)}").`}}(tA,gA)),AA)}async loadEntryModule(AA,tA,gA,iA,IA=!1){const BA=await Dc(AA,gA,this.options.preserveSymlinks,this.pluginDriver,this.resolveId,null,K,!0,K);if(BA==null)return Me(iA===null?function(QA){return{code:qe,message:`Could not resolve entry module "${ge(QA)}".`}}(AA):function(QA,CA){return{code:je,message:`Module "${ge(QA)}" that should be implicitly loaded before "${ge(CA)}" could not be resolved.`}}(AA,iA));const sA=typeof BA=="object"&&BA.external;return BA===!1||sA?Me(iA===null?sA&&IA?{code:"EXTERNAL_MODULES_CANNOT_BE_INCLUDED_IN_MANUAL_CHUNKS",message:`"${AA}" cannot be included in manualChunks because it is resolved as an external module by the "external" option or plugins.`}:function(QA){return{code:qe,message:`Entry module "${ge(QA)}" cannot be external.`}}(AA):function(QA,CA){return{code:je,message:`Module "${ge(QA)}" that should be implicitly loaded before "${ge(CA)}" cannot be external.`}}(AA,iA)):this.fetchModule(this.getResolvedIdWithDefaults(typeof BA=="object"?BA:{id:BA},K),void 0,tA,!1)}async resolveDynamicImport(AA,tA,gA,iA){const IA=await this.pluginDriver.hookFirst("resolveDynamicImport",[tA,gA,{attributes:iA}]);if(typeof tA!="string")return typeof IA=="string"?IA:IA?this.getResolvedIdWithDefaults(IA,iA):null;if(IA==null){const BA=AA.resolvedIds[tA];return BA?(ul(BA.attributes,iA)&&this.options.onLog(de,et(BA.attributes,iA,tA,gA)),BA):AA.resolvedIds[tA]=this.handleInvalidResolvedId(await this.resolveId(tA,AA.id,K,!1,iA),tA,AA.id,iA)}return this.handleInvalidResolvedId(this.getResolvedIdWithDefaults(this.getNormalizedResolvedIdWithoutDefaults(IA,gA,tA),iA),tA,gA,iA)}}function Yc(eA,AA){return P(eA)?AA?M(AA,"..",eA):M(eA):eA}function Zc(eA,{fileName:AA,name:tA},gA,iA){var IA;if(AA!==null)eA.chunkFileNames.add(AA);else if(tA!==null){let BA=0;for(;((IA=eA.chunkNames[BA])==null?void 0:IA.priority)<iA;)BA++;eA.chunkNames.splice(BA,0,{isUserDefined:gA,name:tA,priority:iA})}}function Qc(eA,AA,tA){return tA===!0||tA==="ifRelativeSource"&&P(AA)||!I(eA)}async function ed(eA){const[AA,tA]=await eA;return Promise.all([...AA,...tA])}function td(eA,AA,tA,gA,iA,IA,BA,sA,QA){const CA=BA.sanitizeFileName(eA||"asset");return Hl(Wl(typeof BA.assetFileNames=="function"?BA.assetFileNames({get name(){return Et('Accessing the "name" property of emitted assets when generating the file name is deprecated. Use the "names" property instead.',De,!1,QA),eA},names:AA,get originalFileName(){return Et('Accessing the "originalFileName" property of emitted assets when generating the file name is deprecated. Use the "originalFileNames" property instead.',De,!1,QA),gA},originalFileNames:iA,source:tA,type:"asset"}):BA.assetFileNames,"output.assetFileNames",{ext:()=>O(CA).slice(1),extname:()=>O(CA),hash:oA=>IA.slice(0,Math.max(0,oA||8)),name:()=>CA.slice(0,Math.max(0,CA.length-O(CA).length))}),sA)}function nd(eA,{bundle:AA},tA){AA[Ul].has(eA.toLowerCase())?tA(de,function(gA){return{code:"FILE_NAME_CONFLICT",message:`The emitted file "${gA}" overwrites a previously emitted file of the same name.`}}(eA)):AA[eA]=Gl}const sd=new Set(["chunk","asset","prebuilt-chunk"]);function id(eA,AA,tA){if(!(typeof eA=="string"||eA instanceof Uint8Array)){const gA=AA.fileName||AA.name||tA;return Me(bt(`Could not set source for ${typeof gA=="string"?`asset "${gA}"`:"unnamed asset"}, asset source needs to be a string, Uint8Array or Buffer.`))}return eA}class rd{constructor(AA,tA,gA){this.graph=AA,this.options=tA,this.facadeChunkByModule=null,this.nextIdBase=1,this.output=null,this.outputFileEmitters=[],this.emitFile=iA=>function(IA){return!!(IA&&sd.has(IA.type))}(iA)?iA.type==="prebuilt-chunk"?this.emitPrebuiltChunk(iA):function(IA){const BA=IA.fileName||IA.name;return!BA||typeof BA=="string"&&!ye(BA)}(iA)?iA.type==="chunk"?this.emitChunk(iA):this.emitAsset(iA):Me(bt(`The "fileName" or "name" properties of emitted chunks and assets must be strings that are neither absolute nor relative paths, received "${iA.fileName||iA.name}".`)):Me(bt(`Emitted files must be of type "asset", "chunk" or "prebuilt-chunk", received "${iA&&iA.type}".`)),this.finaliseAssets=()=>{for(const[iA,IA]of this.filesByReferenceId)if(IA.type==="asset"&&typeof IA.fileName!="string")return Me({code:"ASSET_SOURCE_MISSING",message:`Plugin error creating asset "${IA.name||iA}" - no asset source set.`})},this.getFileName=iA=>{const IA=this.filesByReferenceId.get(iA);return IA?IA.type==="chunk"?(BA=IA,sA=this.facadeChunkByModule,BA.fileName?BA.fileName:sA?sA.get(BA.module).getFileName():Me({code:"CHUNK_NOT_GENERATED",message:`Plugin error - Unable to get file name for emitted chunk "${BA.fileName||BA.name}". You can only get file names once chunks have been generated after the "renderStart" hook.`})):IA.type==="prebuilt-chunk"?IA.fileName:function(QA,CA){return typeof QA.fileName!="string"?Me({code:"ASSET_NOT_FINALISED",message:`Plugin error - Unable to get file name for asset "${QA.name||CA}". Ensure that the source is set and that generate is called first. If you reference assets via import.meta.ROLLUP_FILE_URL_<referenceId>, you need to either have set their source after "renderStart" or need to provide an explicit "fileName" when emitting them.`}):QA.fileName}(IA,iA):Me({code:"FILE_NOT_FOUND",message:`Plugin error - Unable to get file name for unknown file "${iA}".`});var BA,sA},this.setAssetSource=(iA,IA)=>{const BA=this.filesByReferenceId.get(iA);if(!BA)return Me({code:"ASSET_NOT_FOUND",message:`Plugin error - Unable to set the source for unknown asset "${iA}".`});if(BA.type!=="asset")return Me(bt(`Asset sources can only be set for emitted assets but "${iA}" is an emitted chunk.`));if(BA.source!==void 0)return Me({code:"ASSET_SOURCE_ALREADY_SET",message:`Unable to set the source for asset "${BA.name||iA}", source already set.`});const sA=id(IA,BA,iA);if(this.output)this.finalizeAdditionalAsset(BA,sA,this.output);else{BA.source=sA;for(const QA of this.outputFileEmitters)QA.finalizeAdditionalAsset(BA,sA,QA.output)}},this.setChunkInformation=iA=>{this.facadeChunkByModule=iA},this.setOutputBundle=(iA,IA)=>{const BA=Ec[IA.hashCharacters],sA=this.output={bundle:iA,fileNamesBySourceHash:new Map,getHash:BA,outputOptions:IA};for(const CA of this.filesByReferenceId.values())CA.fileName&&nd(CA.fileName,sA,this.options.onLog);const QA=new Map;for(const CA of this.filesByReferenceId.values())CA.type==="asset"&&CA.source!==void 0?CA.fileName?this.finalizeAdditionalAsset(CA,CA.source,sA):St(QA,BA(CA.source),()=>[]).push(CA):CA.type==="prebuilt-chunk"&&(this.output.bundle[CA.fileName]=this.createPrebuiltChunk(CA));for(const[CA,oA]of QA)this.finalizeAssetsWithSameSource(oA,CA,sA)},this.filesByReferenceId=gA?new Map(gA.filesByReferenceId):new Map,gA==null||gA.addOutputFileEmitter(this)}addOutputFileEmitter(AA){this.outputFileEmitters.push(AA)}assignReferenceId(AA,tA){let gA=tA;do gA=bc(gA).slice(0,8).replaceAll("-","$");while(this.filesByReferenceId.has(gA)||this.outputFileEmitters.some(({filesByReferenceId:iA})=>iA.has(gA)));AA.referenceId=gA,this.filesByReferenceId.set(gA,AA);for(const{filesByReferenceId:iA}of this.outputFileEmitters)iA.set(gA,AA);return gA}createPrebuiltChunk(AA){return{code:AA.code,dynamicImports:[],exports:AA.exports||[],facadeModuleId:null,fileName:AA.fileName,implicitlyLoadedBefore:[],importedBindings:{},imports:[],isDynamicEntry:!1,isEntry:!1,isImplicitEntry:!1,map:AA.map||null,moduleIds:[],modules:{},name:AA.fileName,preliminaryFileName:AA.fileName,referencedFiles:[],sourcemapFileName:AA.sourcemapFileName||null,type:"chunk"}}emitAsset(AA){const tA=AA.source===void 0?void 0:id(AA.source,AA,null),gA=AA.originalFileName||null;typeof gA=="string"&&(this.graph.watchFiles[gA]=!0);const iA={fileName:AA.fileName,name:AA.name,needsCodeReference:!!AA.needsCodeReference,originalFileName:gA,referenceId:"",source:tA,type:"asset"},IA=this.assignReferenceId(iA,AA.fileName||AA.name||String(this.nextIdBase++));if(this.output)this.emitAssetWithReferenceId(iA,this.output);else for(const BA of this.outputFileEmitters)BA.emitAssetWithReferenceId(iA,BA.output);return IA}emitAssetWithReferenceId(AA,tA){const{fileName:gA,source:iA}=AA;gA&&nd(gA,tA,this.options.onLog),iA!==void 0&&this.finalizeAdditionalAsset(AA,iA,tA)}emitChunk(AA){if(this.graph.phase>nl.LOAD_AND_PARSE)return Me({code:"INVALID_ROLLUP_PHASE",message:"Cannot emit chunks after module loading has finished."});if(typeof AA.id!="string")return Me(bt(`Emitted chunks need to have a valid string id, received "${AA.id}"`));const tA={fileName:AA.fileName,module:null,name:AA.name||AA.id,referenceId:"",type:"chunk"};return this.graph.moduleLoader.emitChunk(AA).then(gA=>tA.module=gA).catch(()=>{}),this.assignReferenceId(tA,AA.id)}emitPrebuiltChunk(AA){if(typeof AA.code!="string")return Me(bt(`Emitted prebuilt chunks need to have a valid string code, received "${AA.code}".`));if(typeof AA.fileName!="string"||ye(AA.fileName))return Me(bt(`The "fileName" property of emitted prebuilt chunks must be strings that are neither absolute nor relative paths, received "${AA.fileName}".`));const tA={code:AA.code,exports:AA.exports,fileName:AA.fileName,map:AA.map,referenceId:"",type:"prebuilt-chunk"},gA=this.assignReferenceId(tA,tA.fileName);return this.output&&(this.output.bundle[tA.fileName]=this.createPrebuiltChunk(tA)),gA}finalizeAdditionalAsset(AA,tA,{bundle:gA,fileNamesBySourceHash:iA,getHash:IA,outputOptions:BA}){let{fileName:sA,name:QA,needsCodeReference:CA,originalFileName:oA,referenceId:EA}=AA;if(!sA){const uA=IA(tA);sA=iA.get(uA),sA||(sA=td(QA,QA?[QA]:[],tA,oA,oA?[oA]:[],uA,BA,gA,this.options),iA.set(uA,sA))}const rA={...AA,fileName:sA,source:tA};this.filesByReferenceId.set(EA,rA);const cA=gA[sA];if((cA==null?void 0:cA.type)==="asset")cA.needsCodeReference&&(cA.needsCodeReference=CA),QA&&cA.names.push(QA),oA&&cA.originalFileNames.push(oA);else{const{options:uA}=this;gA[sA]={fileName:sA,get name(){return Et('Accessing the "name" property of emitted assets in the bundle is deprecated. Use the "names" property instead.',De,!1,uA),QA},names:QA?[QA]:[],needsCodeReference:CA,get originalFileName(){return Et('Accessing the "originalFileName" property of emitted assets in the bundle is deprecated. Use the "originalFileNames" property instead.',De,!1,uA),oA},originalFileNames:oA?[oA]:[],source:tA,type:"asset"}}}finalizeAssetsWithSameSource(AA,tA,{bundle:gA,fileNamesBySourceHash:iA,outputOptions:IA}){const{names:BA,originalFileNames:sA}=function(rA){const cA=[],uA=[];for(const{name:lA,originalFileName:hA}of rA)typeof lA=="string"&&cA.push(lA),hA&&uA.push(hA);return uA.sort(),cA.sort((lA,hA)=>lA.length-hA.length||(lA>hA?1:lA===hA?0:-1)),{names:cA,originalFileNames:uA}}(AA);let QA,CA="",oA=!0;for(const rA of AA){oA&&(oA=rA.needsCodeReference);const cA=td(rA.name,BA,rA.source,rA.originalFileName,sA,tA,IA,gA,this.options);(!CA||cA.length<CA.length||cA.length===CA.length&&cA<CA)&&(CA=cA,QA=rA)}iA.set(tA,CA);for(const rA of AA){const cA={...rA,fileName:CA};this.filesByReferenceId.set(rA.referenceId,cA)}const{options:EA}=this;gA[CA]={fileName:CA,get name(){return Et('Accessing the "name" property of emitted assets in the bundle is deprecated. Use the "names" property instead.',De,!1,EA),QA.name},names:BA,needsCodeReference:oA,get originalFileName(){return Et('Accessing the "originalFileName" property of emitted assets in the bundle is deprecated. Use the "originalFileNames" property instead.',De,!1,EA),QA.originalFileName},originalFileNames:sA,source:QA.source,type:"asset"}}}function od(eA,AA,tA,gA,iA){return pe[eA]<pe[iA]?an:(IA,BA)=>{BA!=null&&tA(de,{code:"INVALID_LOG_POSITION",message:`Plugin "${gA}" tried to add a file position to a log or warning. This is only supported in the "transform" hook at the moment and will be ignored.`}),(IA=Vc(IA)).code&&!IA.pluginCode&&(IA.pluginCode=IA.code),IA.code=AA,IA.plugin=gA,tA(eA,IA)}}function ad(eA,AA,tA,gA,iA,IA){const{logLevel:BA,onLog:sA}=gA;let QA,CA=!0;if(typeof eA.cacheKey!="string"&&(eA.name.startsWith(Mc)||eA.name.startsWith(Rc)||IA.has(eA.name)?CA=!1:IA.add(eA.name)),AA)if(CA){const rA=eA.cacheKey||eA.name;EA=AA[rA]||(AA[rA]=Object.create(null)),QA={delete:cA=>delete EA[cA],get(cA){const uA=EA[cA];if(uA)return uA[0]=0,uA[1]},has(cA){const uA=EA[cA];return!!uA&&(uA[0]=0,!0)},set(cA,uA){EA[cA]=[0,uA]}}}else oA=eA.name,QA={delete:()=>Lc(oA),get:()=>Lc(oA),has:()=>Lc(oA),set:()=>Lc(oA)};else QA=_c;var oA,EA;return{addWatchFile(rA){tA.watchFiles[rA]=!0},cache:QA,debug:od(he,"PLUGIN_LOG",sA,eA.name,BA),emitFile:iA.emitFile.bind(iA),error:rA=>Me(ft(Vc(rA),eA.name)),getFileName:iA.getFileName,getModuleIds:()=>tA.modulesById.keys(),getModuleInfo:tA.getModuleInfo,getWatchFiles:()=>Object.keys(tA.watchFiles),info:od(ue,"PLUGIN_LOG",sA,eA.name,BA),load:rA=>tA.moduleLoader.preloadModule(rA),meta:{rollupVersion:t,watchMode:tA.watchMode},parse:al,resolve:(rA,cA,{attributes:uA,custom:lA,isEntry:hA,skipSelf:dA}=J)=>(dA??(dA=!0),tA.moduleLoader.resolveId(rA,cA,lA,hA,uA||K,dA?[{importer:cA,plugin:eA,source:rA}]:null)),setAssetSource:iA.setAssetSource,warn:od(de,"PLUGIN_WARNING",sA,eA.name,BA)}}const ld=Object.keys({buildEnd:1,buildStart:1,closeBundle:1,closeWatcher:1,load:1,moduleParsed:1,onLog:1,options:1,resolveDynamicImport:1,resolveId:1,shouldTransformCachedModule:1,transform:1,watchChange:1});class cd{constructor(AA,tA,gA,iA,IA){this.graph=AA,this.options=tA,this.pluginCache=iA,this.sortedPlugins=new Map,this.unfulfilledActions=new Set,this.fileEmitter=new rd(AA,tA,IA&&IA.fileEmitter),this.emitFile=this.fileEmitter.emitFile.bind(this.fileEmitter),this.getFileName=this.fileEmitter.getFileName.bind(this.fileEmitter),this.finaliseAssets=this.fileEmitter.finaliseAssets.bind(this.fileEmitter),this.setChunkInformation=this.fileEmitter.setChunkInformation.bind(this.fileEmitter),this.setOutputBundle=this.fileEmitter.setOutputBundle.bind(this.fileEmitter),this.plugins=[...IA?IA.plugins:[],...gA];const BA=new Set;if(this.pluginContexts=new Map(this.plugins.map(QA=>[QA,ad(QA,iA,AA,tA,this.fileEmitter,BA)])),IA)for(const QA of gA)for(const CA of ld)CA in QA&&tA.onLog(de,(sA=QA.name,{code:"INPUT_HOOK_IN_OUTPUT_PLUGIN",message:`The "${CA}" hook used by the output plugin ${sA} is a build time hook and will not be run for that plugin. Either this plugin cannot be used as an output plugin, or it should have an option to configure it as an output plugin.`}));var sA}createOutputPluginDriver(AA){return new cd(this.graph,this.options,AA,this.pluginCache,this)}getUnfulfilledHookActions(){return this.unfulfilledActions}hookFirst(AA,tA,gA,iA){return this.hookFirstAndGetPlugin(AA,tA,gA,iA).then(IA=>IA&&IA[0])}async hookFirstAndGetPlugin(AA,tA,gA,iA){for(const IA of this.getSortedPlugins(AA)){if(iA!=null&&iA.has(IA))continue;const BA=await this.runHook(AA,tA,IA,gA);if(BA!=null)return[BA,IA]}return null}hookFirstSync(AA,tA,gA){for(const iA of this.getSortedPlugins(AA)){const IA=this.runHookSync(AA,tA,iA,gA);if(IA!=null)return IA}return null}async hookParallel(AA,tA,gA){const iA=[];for(const IA of this.getSortedPlugins(AA))IA[AA].sequential?(await Promise.all(iA),iA.length=0,await this.runHook(AA,tA,IA,gA)):iA.push(this.runHook(AA,tA,IA,gA));await Promise.all(iA)}hookReduceArg0(AA,[tA,...gA],iA,IA){let BA=Promise.resolve(tA);for(const sA of this.getSortedPlugins(AA))BA=BA.then(QA=>this.runHook(AA,[QA,...gA],sA,IA).then(CA=>iA.call(this.pluginContexts.get(sA),QA,CA,sA)));return BA}hookReduceArg0Sync(AA,[tA,...gA],iA,IA){for(const BA of this.getSortedPlugins(AA)){const sA=[tA,...gA],QA=this.runHookSync(AA,sA,BA,IA);tA=iA.call(this.pluginContexts.get(BA),tA,QA,BA)}return tA}async hookReduceValue(AA,tA,gA,iA){const IA=[],BA=[];for(const sA of this.getSortedPlugins(AA,hd))sA[AA].sequential?(IA.push(...await Promise.all(BA)),BA.length=0,IA.push(await this.runHook(AA,gA,sA))):BA.push(this.runHook(AA,gA,sA));return IA.push(...await Promise.all(BA)),IA.reduce(iA,await tA)}hookReduceValueSync(AA,tA,gA,iA,IA){let BA=tA;for(const sA of this.getSortedPlugins(AA)){const QA=this.runHookSync(AA,gA,sA,IA);BA=iA.call(this.pluginContexts.get(sA),BA,QA,sA)}return BA}hookSeq(AA,tA,gA){let iA=Promise.resolve();for(const IA of this.getSortedPlugins(AA))iA=iA.then(()=>this.runHook(AA,tA,IA,gA));return iA.then(pd)}getSortedPlugins(AA,tA){return St(this.sortedPlugins,AA,()=>dd(AA,this.plugins,tA))}runHook(AA,tA,gA,iA){const IA=gA[AA],BA=typeof IA=="object"?IA.handler:IA;let sA=this.pluginContexts.get(gA);iA&&(sA=iA(sA,gA));let QA=null;return Promise.resolve().then(()=>{if(typeof BA!="function")return BA;const CA=BA.apply(sA,tA);return CA!=null&&CA.then?(QA=[gA.name,AA,tA],this.unfulfilledActions.add(QA),Promise.resolve(CA).then(oA=>(this.unfulfilledActions.delete(QA),oA))):CA}).catch(CA=>(QA!==null&&this.unfulfilledActions.delete(QA),Me(ft(CA,gA.name,{hook:AA}))))}runHookSync(AA,tA,gA,iA){const IA=gA[AA],BA=typeof IA=="object"?IA.handler:IA;let sA=this.pluginContexts.get(gA);iA&&(sA=iA(sA,gA));try{return BA.apply(sA,tA)}catch(QA){return Me(ft(QA,gA.name,{hook:AA}))}}}function dd(eA,AA,tA=ud){const gA=[],iA=[],IA=[];for(const BA of AA){const sA=BA[eA];if(sA){if(typeof sA=="object"){if(tA(sA.handler,eA,BA),sA.order==="pre"){gA.push(BA);continue}if(sA.order==="post"){IA.push(BA);continue}}else tA(sA,eA,BA);iA.push(BA)}}return[...gA,...iA,...IA]}function ud(eA,AA,tA){typeof eA!="function"&&Me(function(gA,iA){return{code:Ve,hook:gA,message:`Error running plugin hook "${gA}" for plugin "${iA}", expected a function hook or an object with a "handler" function.`,plugin:iA}}(AA,tA.name))}function hd(eA,AA,tA){if(typeof eA!="string"&&typeof eA!="function")return Me(function(gA,iA){return{code:Ve,hook:gA,message:`Error running plugin hook "${gA}" for plugin "${iA}", expected a string, a function hook or an object with a "handler" string or function.`,plugin:iA}}(AA,tA.name))}function pd(){}class fd{constructor(AA){this.maxParallel=AA,this.queue=[],this.workerCount=0}run(AA){return new Promise((tA,gA)=>{this.queue.push({reject:gA,resolve:tA,task:AA}),this.work()})}async work(){if(this.workerCount>=this.maxParallel)return;let AA;for(this.workerCount++;AA=this.queue.shift();){const{reject:tA,resolve:gA,task:iA}=AA;try{gA(await iA())}catch(IA){tA(IA)}}this.workerCount--}}class md{constructor(AA,tA){var gA,iA;if(this.options=AA,this.astLru=function(IA){var BA,sA,QA,CA=IA;function oA(rA,cA){++BA>CA&&(QA=sA,EA(1),++BA),sA[rA]=cA}function EA(rA){BA=0,sA=Object.create(null),rA||(QA=Object.create(null))}return EA(),{clear:EA,has:function(rA){return sA[rA]!==void 0||QA[rA]!==void 0},get:function(rA){var cA=sA[rA];return cA!==void 0?cA:(cA=QA[rA])!==void 0?(oA(rA,cA),cA):void 0},set:function(rA,cA){sA[rA]!==void 0?sA[rA]=cA:oA(rA,cA)}}}(5),this.cachedModules=new Map,this.deoptimizationTracker=new Mt,this.entryModules=[],this.modulesById=new Map,this.needsTreeshakingPass=!1,this.phase=nl.LOAD_AND_PARSE,this.scope=new Pc,this.watchFiles=Object.create(null),this.watchMode=!1,this.externalModules=[],this.implicitEntryModules=[],this.modules=[],this.getModuleInfo=IA=>{const BA=this.modulesById.get(IA);return BA?BA.info:null},AA.cache!==!1){if((gA=AA.cache)!=null&&gA.modules)for(const IA of AA.cache.modules)this.cachedModules.set(IA.id,IA);this.pluginCache=((iA=AA.cache)==null?void 0:iA.plugins)||Object.create(null);for(const IA in this.pluginCache){const BA=this.pluginCache[IA];for(const sA of Object.values(BA))sA[0]++}}if(tA){this.watchMode=!0;const IA=(...sA)=>this.pluginDriver.hookParallel("watchChange",sA),BA=()=>this.pluginDriver.hookParallel("closeWatcher",[]);tA.onCurrentRun("change",IA),tA.onCurrentRun("close",BA)}this.pluginDriver=new cd(this,AA,AA.plugins,this.pluginCache),this.moduleLoader=new Xc(this,this.modulesById,this.options,this.pluginDriver),this.fileOperationQueue=new fd(AA.maxParallelFileOps),this.pureFunctions=(({treeshake:IA})=>{const BA=Object.create(null);for(const sA of IA?IA.manualPureFunctions:[]){let QA=BA;for(const CA of sA.split("."))QA=QA[CA]||(QA[CA]=Object.create(null));QA[xt]=!0}return BA})(AA)}async build(){El("generate module graph",2),await this.generateModuleGraph(),xl("generate module graph",2),El("sort and bind modules",2),this.phase=nl.ANALYSE,this.sortModules(),xl("sort and bind modules",2),El("mark included statements",2),this.includeStatements(),xl("mark included statements",2),this.phase=nl.GENERATE}getCache(){for(const AA in this.pluginCache){const tA=this.pluginCache[AA];let gA=!0;for(const[iA,IA]of Object.entries(tA))IA[0]>=this.options.experimentalCacheExpiry?delete tA[iA]:gA=!1;gA&&delete this.pluginCache[AA]}return{modules:this.modules.map(AA=>AA.toJSON()),plugins:this.pluginCache}}async generateModuleGraph(){var AA;if({entryModules:this.entryModules,implicitEntryModules:this.implicitEntryModules}=await this.moduleLoader.addEntryModules((AA=this.options.input,Array.isArray(AA)?AA.map(tA=>({fileName:null,id:tA,implicitlyLoadedAfter:[],importer:void 0,name:null})):Object.entries(AA).map(([tA,gA])=>({fileName:null,id:gA,implicitlyLoadedAfter:[],importer:void 0,name:tA}))),!0),this.entryModules.length===0)throw new Error("You must supply options.input to rollup");for(const tA of this.modulesById.values())tA.cacheInfoGetters(),tA instanceof Il?this.modules.push(tA):this.externalModules.push(tA)}includeStatements(){const AA=[...this.entryModules,...this.implicitEntryModules];for(const tA of AA)on(tA);if(this.options.treeshake){let tA=1;do{El(`treeshaking pass ${tA}`,3),this.needsTreeshakingPass=!1;for(const gA of this.modules)gA.isExecuted&&(gA.hasTreeShakingPassStarted=!0,gA.info.moduleSideEffects==="no-treeshake"?gA.includeAllInBundle():gA.include());if(tA===1)for(const gA of AA)gA.preserveSignature!==!1&&(gA.includeAllExports(!1),this.needsTreeshakingPass=!0);xl("treeshaking pass "+tA++,3)}while(this.needsTreeshakingPass)}else for(const tA of this.modules)tA.includeAllInBundle();for(const tA of this.externalModules)tA.warnUnusedImports();for(const tA of this.implicitEntryModules)for(const gA of tA.implicitlyLoadedAfter)gA.info.isEntry||gA.isIncluded()||Me(lt(gA))}sortModules(){const{orderedModules:AA,cyclePaths:tA}=function(gA){let iA=0;const IA=[],BA=new Set,sA=new Set,QA=new Map,CA=[],oA=EA=>{if(EA instanceof Il){for(const rA of EA.dependencies)QA.has(rA)?BA.has(rA)||IA.push(uc(rA,EA,QA)):(QA.set(rA,EA),oA(rA));for(const rA of EA.implicitlyLoadedBefore)sA.add(rA);for(const{resolution:rA}of EA.dynamicImports)rA instanceof Il&&sA.add(rA);CA.push(EA)}EA.execIndex=iA++,BA.add(EA)};for(const EA of gA)QA.has(EA)||(QA.set(EA,null),oA(EA));for(const EA of sA)QA.has(EA)||(QA.set(EA,null),oA(EA));return{cyclePaths:IA,orderedModules:CA}}(this.entryModules);for(const gA of tA)this.options.onLog(de,Ye(gA));this.modules=AA;for(const gA of this.modules)gA.bindReferences();this.warnForMissingExports()}warnForMissingExports(){for(const AA of this.modules)for(const tA of AA.importDescriptions.values())tA.name==="*"||tA.module.getVariableForExportName(tA.name)[0]||AA.log(de,at(tA.name,AA.id,tA.module.id),tA.start)}}function gd(eA,AA){return AA()}function yd(eA,AA,tA,gA){eA=dd("onLog",eA);const iA=pe[gA],IA=(BA,sA,QA=Y)=>{if(Te(sA),!(pe[BA]<iA)){for(const CA of eA){if(QA.has(CA))continue;const{onLog:oA}=CA,EA=rA=>pe[rA]<iA?an:cA=>IA(rA,Vc(cA),new Set(QA).add(CA));if(("handler"in oA?oA.handler:oA).call({debug:EA(he),error:rA=>Me(Vc(rA)),info:EA(ue),meta:{rollupVersion:t,watchMode:tA},warn:EA(de)},BA,sA)===!1)return}AA(BA,sA)}};return IA}const bd=eA=>{var AA;return eA.cache===!0?void 0:((AA=eA.cache)==null?void 0:AA.cache)||eA.cache},Ed=eA=>{if(eA===!0)return()=>!0;if(typeof eA=="function")return(tA,...gA)=>!tA.startsWith("\0")&&eA(tA,...gA)||!1;if(eA){const tA=new Set,gA=[];for(const iA of(AA=eA,Array.isArray(AA)?AA.filter(Boolean):AA?[AA]:[]))iA instanceof RegExp?gA.push(iA):tA.add(iA);return(iA,...IA)=>tA.has(iA)||gA.some(BA=>BA.test(iA))}var AA;return()=>!1},xd=eA=>{const AA=eA.input;return AA==null?[]:typeof AA=="string"?[AA]:AA},Sd=eA=>{const AA=eA.jsx;if(!AA)return!1;const tA=Hc(AA,Gc,"jsx",Ae,"false, "),{factory:gA,importSource:iA,mode:IA}=tA;switch(IA){case"automatic":return{factory:gA||"React.createElement",importSource:iA||"react",jsxImportSource:tA.jsxImportSource||"react/jsx-runtime",mode:"automatic"};case"preserve":return!iA||gA||tA.fragment||Me(ot("jsx",Ae,"when preserving JSX and specifying an importSource, you also need to specify a factory or fragment")),{factory:gA||null,fragment:tA.fragment||null,importSource:iA||null,mode:"preserve"};default:return IA&&IA!=="classic"&&Me(ot("jsx.mode",Ae,'mode must be "automatic", "classic" or "preserve"',IA)),{factory:gA||"React.createElement",fragment:tA.fragment||"React.Fragment",importSource:iA||null,mode:"classic"}}},Ad=eA=>{const AA=eA.maxParallelFileOps;return typeof AA=="number"?AA<=0?1/0:AA:20},$d=(eA,AA)=>{const tA=eA.moduleContext;if(typeof tA=="function")return gA=>tA(gA)??AA;if(tA){const gA=Object.create(null);for(const[iA,IA]of Object.entries(tA))gA[M(iA)]=IA;return iA=>gA[iA]??AA}return()=>AA},vd=eA=>{if(eA.treeshake===!1)return!1;const AA=Hc(eA.treeshake,Uc,"treeshake","configuration-options/#treeshake","false, true, ");return{annotations:AA.annotations!==!1,correctVarValueBeforeDeclaration:AA.correctVarValueBeforeDeclaration===!0,manualPureFunctions:AA.manualPureFunctions??X,moduleSideEffects:wd(AA.moduleSideEffects),propertyReadSideEffects:AA.propertyReadSideEffects==="always"?"always":AA.propertyReadSideEffects!==!1,tryCatchDeoptimization:AA.tryCatchDeoptimization!==!1,unknownGlobalSideEffects:AA.unknownGlobalSideEffects!==!1}},wd=eA=>{if(typeof eA=="boolean")return()=>eA;if(eA==="no-external")return(AA,tA)=>!tA;if(typeof eA=="function")return(AA,tA)=>!!AA.startsWith("\0")||eA(AA,tA)!==!1;if(Array.isArray(eA)){const AA=new Set(eA);return tA=>AA.has(tA)}return eA&&Me(ot("treeshake.moduleSideEffects","configuration-options/#treeshake-modulesideeffects",'please use one of false, "no-external", a function or an array')),()=>!0},Id=/[\u0000-\u001F"#$%&*+,:;<=>?[\]^`{|}\u007F]/g,Pd=/^[a-z]:/i;function kd(eA){const AA=Pd.exec(eA),tA=AA?AA[0]:"";return tA+eA.slice(tA.length).replace(Id,"_")}const Nd=(eA,AA,tA)=>{const{file:gA}=eA;if(typeof gA=="string"){if(AA)return Me(ot("output.file",ve,'you must set "output.dir" instead of "output.file" when using the "output.preserveModules" option'));if(!Array.isArray(tA.input))return Me(ot("output.file",ve,'you must set "output.dir" instead of "output.file" when providing named inputs'))}return gA},Cd=eA=>{const AA=eA.format;switch(AA){case void 0:case"es":case"esm":case"module":return"es";case"cjs":case"commonjs":return"cjs";case"system":case"systemjs":return"system";case"amd":case"iife":case"umd":return AA;default:return Me(ot("output.format",Ie,'Valid values are "amd", "cjs", "system", "es", "iife" or "umd"',AA))}},Od=(eA,AA)=>{const tA=eA.inlineDynamicImports||!1,{input:gA}=AA;return tA&&(Array.isArray(gA)?gA:Object.keys(gA)).length>1?Me(ot("output.inlineDynamicImports",Pe,'multiple inputs are not supported when "output.inlineDynamicImports" is true')):tA},Dd=(eA,AA,tA)=>{const gA=eA.preserveModules||!1;if(gA){if(AA)return Me(ot("output.inlineDynamicImports",Pe,'this option is not supported for "output.preserveModules"'));if(tA.preserveEntrySignatures===!1)return Me(ot("preserveEntrySignatures","configuration-options/#preserveentrysignatures",'setting this option to false is not supported for "output.preserveModules"'))}return gA},Md=eA=>{const{preserveModulesRoot:AA}=eA;if(AA!=null)return M(AA)},Rd=eA=>{const AA={autoId:!1,basePath:"",define:"define",forceJsExtensionForImports:!1,...eA.amd};return(AA.autoId||AA.basePath)&&AA.id?Me(ot("output.amd.id",$e,'this option cannot be used together with "output.amd.autoId"/"output.amd.basePath"')):AA.basePath&&!AA.autoId?Me(ot("output.amd.basePath","configuration-options/#output-amd-basepath",'this option only works with "output.amd.autoId"')):AA.autoId?{autoId:!0,basePath:AA.basePath,define:AA.define,forceJsExtensionForImports:AA.forceJsExtensionForImports}:{autoId:!1,define:AA.define,forceJsExtensionForImports:AA.forceJsExtensionForImports,id:AA.id}},_d=(eA,AA)=>{const tA=eA[AA];return typeof tA=="function"?tA:()=>tA||""},Ld=(eA,AA)=>{const{dir:tA}=eA;return typeof tA=="string"&&typeof AA=="string"?Me(ot("output.dir",ve,'you must set either "output.file" for a single-file build or "output.dir" when generating multiple chunks')):tA},Td=(eA,AA)=>{const tA=eA.entryFileNames;return tA==null&&AA.add("entryFileNames"),tA??"[name].js"};function Bd(eA,AA){const tA=eA.exports;if(tA==null)AA.add("exports");else if(!["default","named","none","auto"].includes(tA))return Me({code:Be,message:`"output.exports" must be "default", "named", "none", "auto", or left unspecified (defaults to "auto"), received "${tA}".`,url:xe(we)});return tA||"auto"}const zd=(eA,AA)=>(eA.externalImportAssertions!=null&&Et('The "output.externalImportAssertions" option is deprecated. Use the "output.externalImportAttributes" option instead.',"configuration-options/#output-externalimportattributes",!0,AA),eA.externalImportAttributes??eA.externalImportAssertions??!0),Vd=eA=>{const AA=Hc(eA.generatedCode,Wc,"output.generatedCode","configuration-options/#output-generatedcode","");return{arrowFunctions:AA.arrowFunctions===!0,constBindings:AA.constBindings===!0,objectShorthand:AA.objectShorthand===!0,reservedNamesAsProps:AA.reservedNamesAsProps!==!1,symbols:AA.symbols===!0}},Fd=(eA,AA)=>{if(AA)return"";const tA=eA.indent;return tA===!1?"":tA??!0},jd=new Set(["compat","auto","esModule","default","defaultOnly"]),Ud=eA=>{const AA=eA.interop;if(typeof AA=="function"){const tA=Object.create(null);let gA=null;return iA=>iA===null?gA||Gd(gA=AA(iA)):iA in tA?tA[iA]:Gd(tA[iA]=AA(iA))}return AA===void 0?()=>"default":()=>Gd(AA)},Gd=eA=>jd.has(eA)?eA:Me(ot("output.interop",ke,`use one of ${Array.from(jd,AA=>JSON.stringify(AA)).join(", ")}`,eA)),Wd=(eA,AA,tA)=>{const gA=eA.manualChunks;if(gA){if(AA)return Me(ot("output.manualChunks",Ne,'this option is not supported for "output.inlineDynamicImports"'));if(tA)return Me(ot("output.manualChunks",Ne,'this option is not supported for "output.preserveModules"'))}return gA||{}},Hd=(eA,AA,tA)=>eA.minifyInternalExports??(tA||AA==="es"||AA==="system"),qd=(eA,AA)=>{const tA=eA.sourcemapFileNames;return tA==null&&AA.add("sourcemapFileNames"),tA},Jd=eA=>{const{sourcemapBaseUrl:AA}=eA;if(AA)return function(gA){try{new URL(gA)}catch{return!1}return!0}(AA)?(tA=AA).endsWith("/")?tA:tA+"/":Me(ot("output.sourcemapBaseUrl","configuration-options/#output-sourcemapbaseurl",`must be a valid URL, received ${JSON.stringify(AA)}`));var tA};function Kd(eA){return async function(AA,tA){const{options:gA,unsetOptions:iA}=await async function(QA,CA){if(!QA)throw new Error("You must supply an options object to rollup");const oA=await async function(cA,uA){const lA=dd("options",await qc(cA.plugins)),hA=cA.logLevel||ue,dA=yd(lA,Tc(cA,hA),uA,hA);for(const DA of lA){const{name:wA,options:RA}=DA,yA="handler"in RA?RA.handler:RA,kA=await yA.call({debug:od(he,"PLUGIN_LOG",dA,wA,hA),error:LA=>Me(ft(Vc(LA),wA,{hook:"onLog"})),info:od(ue,"PLUGIN_LOG",dA,wA,hA),meta:{rollupVersion:t,watchMode:uA},warn:od(de,"PLUGIN_WARNING",dA,wA,hA)},cA);kA&&(cA=kA)}return cA}(QA,CA),{options:EA,unsetOptions:rA}=await async function(cA,uA){const lA=new Set,hA=cA.context??"undefined",dA=await qc(cA.plugins),DA=cA.logLevel||ue,wA=yd(dA,Tc(cA,DA),uA,DA),RA=cA.strictDeprecations||!1,yA=Ad(cA),kA={cache:bd(cA),context:hA,experimentalCacheExpiry:cA.experimentalCacheExpiry??10,experimentalLogSideEffects:cA.experimentalLogSideEffects||!1,external:Ed(cA.external),input:xd(cA),jsx:Sd(cA),logLevel:DA,makeAbsoluteExternalsRelative:cA.makeAbsoluteExternalsRelative??"ifRelativeSource",maxParallelFileOps:yA,moduleContext:$d(cA,hA),onLog:wA,perf:cA.perf||!1,plugins:dA,preserveEntrySignatures:cA.preserveEntrySignatures??"exports-only",preserveSymlinks:cA.preserveSymlinks||!1,shimMissingExports:cA.shimMissingExports||!1,strictDeprecations:RA,treeshake:vd(cA)};return jc(cA,[...Object.keys(kA),"onwarn","watch"],"input options",wA,/^(output)$/),{options:kA,unsetOptions:lA}}(oA,CA);return Xd(EA.plugins,Mc),{options:EA,unsetOptions:rA}}(AA,tA!==null);(function(QA){QA.perf?(fl=new Map,El=gl,xl=yl,QA.plugins=QA.plugins.map(Al)):(El=an,xl=an)})(gA),await async function(){await so()}();const IA=new md(gA,tA),BA=AA.cache!==!1;AA.cache&&(gA.cache=void 0,AA.cache=void 0),El("BUILD",1),await gd(IA.pluginDriver,async()=>{try{El("initialize",2),await IA.pluginDriver.hookParallel("buildStart",[gA]),xl("initialize",2),await IA.build()}catch(QA){const CA=Object.keys(IA.watchFiles);throw CA.length>0&&(QA.watchFiles=CA),await IA.pluginDriver.hookParallel("buildEnd",[QA]),await IA.pluginDriver.hookParallel("closeBundle",[]),QA}await IA.pluginDriver.hookParallel("buildEnd",[])}),xl("BUILD",1);const sA={cache:BA?IA.getCache():void 0,async close(){sA.closed||(sA.closed=!0,await IA.pluginDriver.hookParallel("closeBundle",[]))},closed:!1,generate:async QA=>sA.closed?Me({code:"ALREADY_CLOSED",message:'Bundle is already closed, no more calls to "generate" or "write" are allowed.'}):Yd(!1,gA,iA,QA,IA),get watchFiles(){return Object.keys(IA.watchFiles)},write:async QA=>sA.closed?Me({code:"ALREADY_CLOSED",message:'Bundle is already closed, no more calls to "generate" or "write" are allowed.'}):Yd(!0,gA,iA,QA,IA)};return gA.perf&&(sA.getTimings=bl),sA}(eA,null)}function Xd(eA,AA){for(const[tA,gA]of eA.entries())gA.name||(gA.name=`${AA}${tA+1}`)}async function Yd(eA,AA,tA,gA,iA){const{options:IA,outputPluginDriver:BA,unsetOptions:sA}=await async function(QA,CA,oA,EA){if(!QA)throw new Error("You must supply an options object");const rA=await qc(QA.plugins);Xd(rA,Rc);const cA=CA.createOutputPluginDriver(rA);return{...await Zd(oA,EA,QA,cA),outputPluginDriver:cA}}(gA,iA.pluginDriver,AA,tA);return gd(0,async()=>{const QA=new wc(IA,sA,AA,BA,iA),CA=await QA.generate(eA);if(eA){if(El("WRITE",1),!IA.dir&&!IA.file)return Me({code:"MISSING_OPTION",message:'You must specify "output.file" or "output.dir" for the build.',url:xe(ve)});await Promise.all(Object.values(CA).map(EA=>iA.fileOperationQueue.run(()=>async function(rA,cA){const uA=M(cA.dir||C(cA.file),rA.fileName);return await Nc(C(uA),{recursive:!0}),Oc(uA,rA.type==="asset"?rA.source:rA.code)}(EA,IA)))),await BA.hookParallel("writeBundle",[IA,CA]),xl("WRITE",1)}return oA=CA,{output:Object.values(oA).filter(EA=>Object.keys(EA).length>0).sort((EA,rA)=>eu(EA)-eu(rA))};var oA})}function Zd(eA,AA,tA,gA){return async function(iA,IA,BA){const sA=new Set(BA),QA=iA.compact||!1,CA=Cd(iA),oA=Od(iA,IA),EA=Dd(iA,oA,IA),rA=Nd(iA,EA,IA),cA=Vd(iA),uA=zd(iA,IA),lA={amd:Rd(iA),assetFileNames:iA.assetFileNames??"assets/[name]-[hash][extname]",banner:_d(iA,"banner"),chunkFileNames:iA.chunkFileNames??"[name]-[hash].js",compact:QA,dir:Ld(iA,rA),dynamicImportInCjs:iA.dynamicImportInCjs??!0,entryFileNames:Td(iA,sA),esModule:iA.esModule??"if-default-prop",experimentalMinChunkSize:iA.experimentalMinChunkSize??1,exports:Bd(iA,sA),extend:iA.extend||!1,externalImportAssertions:uA,externalImportAttributes:uA,externalLiveBindings:iA.externalLiveBindings??!0,file:rA,footer:_d(iA,"footer"),format:CA,freeze:iA.freeze??!0,generatedCode:cA,globals:iA.globals||{},hashCharacters:iA.hashCharacters??"base64",hoistTransitiveImports:iA.hoistTransitiveImports??!0,importAttributesKey:iA.importAttributesKey??"assert",indent:Fd(iA,QA),inlineDynamicImports:oA,interop:Ud(iA),intro:_d(iA,"intro"),manualChunks:Wd(iA,oA,EA),minifyInternalExports:Hd(iA,CA,QA),name:iA.name,noConflict:iA.noConflict||!1,outro:_d(iA,"outro"),paths:iA.paths||{},plugins:await qc(iA.plugins),preserveModules:EA,preserveModulesRoot:Md(iA),reexportProtoFromExternal:iA.reexportProtoFromExternal??!0,sanitizeFileName:typeof iA.sanitizeFileName=="function"?iA.sanitizeFileName:iA.sanitizeFileName===!1?hA=>hA:kd,sourcemap:iA.sourcemap||!1,sourcemapBaseUrl:Jd(iA),sourcemapExcludeSources:iA.sourcemapExcludeSources||!1,sourcemapFile:iA.sourcemapFile,sourcemapFileNames:qd(iA,sA),sourcemapIgnoreList:typeof iA.sourcemapIgnoreList=="function"?iA.sourcemapIgnoreList:iA.sourcemapIgnoreList===!1?()=>!1:hA=>hA.includes("node_modules"),sourcemapPathTransform:iA.sourcemapPathTransform,strict:iA.strict??!0,systemNullSetters:iA.systemNullSetters??!0,validate:iA.validate||!1,virtualDirname:iA.virtualDirname||"_virtual"};return jc(iA,Object.keys(lA),"output options",IA.onLog),{options:lA,unsetOptions:sA}}(gA.hookReduceArg0Sync("outputOptions",[tA],(iA,IA)=>IA||iA,iA=>{const IA=()=>iA.error({code:"CANNOT_EMIT_FROM_OPTIONS_HOOK",message:'Cannot emit files or set asset sources in the "outputOptions" hook, use the "renderStart" hook instead.'});return{...iA,emitFile:IA,setAssetSource:IA}}),eA,AA)}var Qd;function eu(eA){return eA.type==="asset"?Qd.ASSET:eA.isEntry?Qd.ENTRY_CHUNK:Qd.SECONDARY_CHUNK}(function(eA){eA[eA.ENTRY_CHUNK=0]="ENTRY_CHUNK",eA[eA.SECONDARY_CHUNK=1]="SECONDARY_CHUNK",eA[eA.ASSET=2]="ASSET"})(Qd||(Qd={}));const bundle=async(eA,AA,tA)=>(await(await Kd({input:`${INTERNAL_TAG}/index.js`,plugins:[plugin(eA,AA,tA),plugin$1()],external:IA=>IA.startsWith("svelte"),onwarn:warning})).generate({format:"amd",banner:AMD_BANNER})).output[0].code;self.addEventListener("message",async eA=>{try{if(eA.data.type=="init"){const AA={host:eA.data.host,cdn_url:eA.data.cdn_url},tA=await service_fetch(AA,concat([header(nil_xit_proto.MessageType.MessageType_FrameRequest),nil_xit_proto.FrameRequest.encode({id:eA.data.id}).finish()]),(gA,iA)=>{if(gA===nil_xit_proto.MessageType.MessageType_FrameResponse){const IA=nil_xit_proto.FrameResponse.decode(iA);if(eA.data.id===IA.id)return IA}});if(tA.value==="content")self.postMessage({ok:!0,code:tA.content});else if(tA.value==="file"&&tA.file!=null){const gA=[],iA=await bundle(AA,ROOT_FILE(tA.file),(IA,BA)=>gA.push({target:IA,metadata:BA}));self.postMessage({ok:!0,code:iA,files:gA})}}}catch(AA){self.postMessage({ok:!1,err:AA})}})})();
|