@nil-/xit 0.1.11 → 0.1.13
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 +3 -3
- package/assets/index.js +173 -166
- package/package.json +1 -1
package/assets/bundler.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var gI=Object.defineProperty;var AI=Bg=>{throw TypeError(Bg)};var iI=(Bg,ag,ig)=>ag in Bg?gI(Bg,ag,{enumerable:!0,configurable:!0,writable:!0,value:ig}):Bg[ag]=ig;var rg=(Bg,ag,ig)=>iI(Bg,typeof ag!="symbol"?ag+"":ag,ig),Hg=(Bg,ag,ig)=>ag.has(Bg)||AI("Cannot "+ig);var Ig=(Bg,ag,ig)=>(Hg(Bg,ag,"read from private field"),ig?ig.call(Bg):ag.get(Bg)),Gg=(Bg,ag,ig)=>ag.has(Bg)?AI("Cannot add the same private member more than once"):ag instanceof WeakSet?ag.add(Bg):ag.set(Bg,ig),cg=(Bg,ag,ig,mg)=>(Hg(Bg,ag,"write to private field"),mg?mg.call(Bg,ig):ag.set(Bg,ig),ig),Vg=(Bg,ag,ig)=>(Hg(Bg,ag,"access private method"),ig);(function(){"use strict";var Bg,Og,ig,mg,Ng,Sg,Rg,lg,Pg,Yg,jg;let Service$1=(Pg=class{constructor({host:AA,port:tA}){Gg(this,Bg);Gg(this,ig);Gg(this,mg);Gg(this,Ng);Gg(this,Sg);Gg(this,Rg);Gg(this,lg);cg(this,Rg,`${AA??"localhost"}${tA!=null?`:${tA}`:""}`),cg(this,ig,0),cg(this,mg,null),cg(this,Ng,null),cg(this,Sg,null),cg(this,lg,null)}on_message(AA){cg(this,Sg,AA)}on_connect(AA){cg(this,mg,AA)}on_disconnect(AA){cg(this,Ng,AA)}start(){Ig(this,lg)==null&&Ig(this,ig)!==1&&Ig(this,ig)!==3&&(cg(this,lg,new WebSocket(`ws://${Ig(this,Rg)}`)),Ig(this,lg).binaryType="arraybuffer",Ig(this,lg).onopen=()=>{cg(this,ig,1),Ig(this,mg)&&Ig(this,mg).call(this,Ig(this,Rg))},Ig(this,lg).onclose=()=>{Ig(this,ig)===1&&(Ig(this,Ng)&&Ig(this,Ng).call(this,Ig(this,Rg)),cg(this,ig,2),Vg(this,Bg,Og).call(this))},Ig(this,lg).onerror=()=>{Ig(this,ig)!==1&&Ig(this,ig)!==3&&(cg(this,ig,2),Vg(this,Bg,Og).call(this))},Ig(this,lg).onmessage=AA=>{Ig(this,Sg)&&Ig(this,Sg).call(this,Ig(this,Rg),new Uint8Array(AA.data))})}stop(){cg(this,ig,3),Ig(this,lg)!=null&&(Ig(this,lg).close(),cg(this,lg,null))}restart(){cg(this,ig,0)}publish(AA){Ig(this,lg)!=null&&Ig(this,ig)==1&&Ig(this,lg).send(AA)}send(AA,tA){AA===Ig(this,Rg)&&this.publish(tA)}},Bg=new WeakSet,Og=function(){Ig(this,lg)!=null&&(Ig(this,lg).close(),cg(this,lg,null)),setTimeout(()=>this.start(),1e3)},ig=new WeakMap,mg=new WeakMap,Ng=new WeakMap,Sg=new WeakMap,Rg=new WeakMap,lg=new WeakMap,Pg);const header=eA=>{const AA=new Uint8Array(4);return new DataView(AA.buffer).setUint32(0,eA,!1),AA},concat=eA=>{const AA=new Uint8Array(eA.reduce((gA,iA)=>gA+iA.length,0));let tA=0;for(const gA of eA)AA.set(gA,tA),tA+=gA.length;return AA},service_fetch=async(eA,AA,tA)=>new Promise((gA,iA)=>{const IA=new Service$1(eA),BA=setTimeout(()=>{IA.stop(),iA("timed out, cancelled")},2500);IA.on_connect(()=>IA.publish(AA)),IA.on_message((sA,QA)=>{const CA=new DataView(QA.buffer).getUint32(0,!1),oA=QA.slice(4),EA=tA(CA,oA);EA!=null&&(clearTimeout(BA),IA.stop(),gA(EA))}),IA.start()});var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(eA){return eA&&eA.__esModule&&Object.prototype.hasOwnProperty.call(eA,"default")?eA.default:eA}var indexLight={exports:{}},indexMinimal={},minimal={},aspromise=asPromise$1;function asPromise$1(eA,AA){for(var tA=new Array(arguments.length-1),gA=0,iA=2,IA=!0;iA<arguments.length;)tA[gA++]=arguments[iA++];return new Promise(function(sA,QA){tA[gA]=function(oA){if(IA)if(IA=!1,oA)QA(oA);else{for(var EA=new Array(arguments.length-1),nA=0;nA<EA.length;)EA[nA++]=arguments[nA];sA.apply(null,EA)}};try{eA.apply(AA||null,tA)}catch(CA){IA&&(IA=!1,QA(CA))}})}var base64$1={};(function(eA){var AA=eA;AA.length=function(sA){var QA=sA.length;if(!QA)return 0;for(var CA=0;--QA%4>1&&sA.charAt(QA)==="=";)++CA;return Math.ceil(sA.length*3)/4-CA};for(var tA=new Array(64),gA=new Array(123),iA=0;iA<64;)gA[tA[iA]=iA<26?iA+65:iA<52?iA+71:iA<62?iA-4:iA-59|43]=iA++;AA.encode=function(sA,QA,CA){for(var oA=null,EA=[],nA=0,cA=0,uA;QA<CA;){var lA=sA[QA++];switch(cA){case 0:EA[nA++]=tA[lA>>2],uA=(lA&3)<<4,cA=1;break;case 1:EA[nA++]=tA[uA|lA>>4],uA=(lA&15)<<2,cA=2;break;case 2:EA[nA++]=tA[uA|lA>>6],EA[nA++]=tA[lA&63],cA=0;break}nA>8191&&((oA||(oA=[])).push(String.fromCharCode.apply(String,EA)),nA=0)}return cA&&(EA[nA++]=tA[uA],EA[nA++]=61,cA===1&&(EA[nA++]=61)),oA?(nA&&oA.push(String.fromCharCode.apply(String,EA.slice(0,nA))),oA.join("")):String.fromCharCode.apply(String,EA.slice(0,nA))};var IA="invalid encoding";AA.decode=function(sA,QA,CA){for(var oA=CA,EA=0,nA,cA=0;cA<sA.length;){var uA=sA.charCodeAt(cA++);if(uA===61&&EA>1)break;if((uA=gA[uA])===void 0)throw Error(IA);switch(EA){case 0:nA=uA,EA=1;break;case 1:QA[CA++]=nA<<2|(uA&48)>>4,nA=uA,EA=2;break;case 2:QA[CA++]=(nA&15)<<4|(uA&60)>>2,nA=uA,EA=3;break;case 3:QA[CA++]=(nA&3)<<6|uA,EA=0;break}}if(EA===1)throw Error(IA);return CA-oA},AA.test=function(sA){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(sA)}})(base64$1);var eventemitter=EventEmitter;function EventEmitter(){this._listeners={}}EventEmitter.prototype.on=function(AA,tA,gA){return(this._listeners[AA]||(this._listeners[AA]=[])).push({fn:tA,ctx:gA||this}),this},EventEmitter.prototype.off=function(AA,tA){if(AA===void 0)this._listeners={};else if(tA===void 0)this._listeners[AA]=[];else for(var gA=this._listeners[AA],iA=0;iA<gA.length;)gA[iA].fn===tA?gA.splice(iA,1):++iA;return this},EventEmitter.prototype.emit=function(AA){var tA=this._listeners[AA];if(tA){for(var gA=[],iA=1;iA<arguments.length;)gA.push(arguments[iA++]);for(iA=0;iA<tA.length;)tA[iA].fn.apply(tA[iA++].ctx,gA)}return this};var float=factory(factory);function factory(eA){return typeof Float32Array<"u"?function(){var AA=new Float32Array([-0]),tA=new Uint8Array(AA.buffer),gA=tA[3]===128;function iA(QA,CA,oA){AA[0]=QA,CA[oA]=tA[0],CA[oA+1]=tA[1],CA[oA+2]=tA[2],CA[oA+3]=tA[3]}function IA(QA,CA,oA){AA[0]=QA,CA[oA]=tA[3],CA[oA+1]=tA[2],CA[oA+2]=tA[1],CA[oA+3]=tA[0]}eA.writeFloatLE=gA?iA:IA,eA.writeFloatBE=gA?IA:iA;function BA(QA,CA){return tA[0]=QA[CA],tA[1]=QA[CA+1],tA[2]=QA[CA+2],tA[3]=QA[CA+3],AA[0]}function sA(QA,CA){return tA[3]=QA[CA],tA[2]=QA[CA+1],tA[1]=QA[CA+2],tA[0]=QA[CA+3],AA[0]}eA.readFloatLE=gA?BA:sA,eA.readFloatBE=gA?sA:BA}():function(){function AA(gA,iA,IA,BA){var sA=iA<0?1:0;if(sA&&(iA=-iA),iA===0)gA(1/iA>0?0:2147483648,IA,BA);else if(isNaN(iA))gA(2143289344,IA,BA);else if(iA>34028234663852886e22)gA((sA<<31|2139095040)>>>0,IA,BA);else if(iA<11754943508222875e-54)gA((sA<<31|Math.round(iA/1401298464324817e-60))>>>0,IA,BA);else{var QA=Math.floor(Math.log(iA)/Math.LN2),CA=Math.round(iA*Math.pow(2,-QA)*8388608)&8388607;gA((sA<<31|QA+127<<23|CA)>>>0,IA,BA)}}eA.writeFloatLE=AA.bind(null,writeUintLE),eA.writeFloatBE=AA.bind(null,writeUintBE);function tA(gA,iA,IA){var BA=gA(iA,IA),sA=(BA>>31)*2+1,QA=BA>>>23&255,CA=BA&8388607;return QA===255?CA?NaN:sA*(1/0):QA===0?sA*1401298464324817e-60*CA:sA*Math.pow(2,QA-150)*(CA+8388608)}eA.readFloatLE=tA.bind(null,readUintLE),eA.readFloatBE=tA.bind(null,readUintBE)}(),typeof Float64Array<"u"?function(){var AA=new Float64Array([-0]),tA=new Uint8Array(AA.buffer),gA=tA[7]===128;function iA(QA,CA,oA){AA[0]=QA,CA[oA]=tA[0],CA[oA+1]=tA[1],CA[oA+2]=tA[2],CA[oA+3]=tA[3],CA[oA+4]=tA[4],CA[oA+5]=tA[5],CA[oA+6]=tA[6],CA[oA+7]=tA[7]}function IA(QA,CA,oA){AA[0]=QA,CA[oA]=tA[7],CA[oA+1]=tA[6],CA[oA+2]=tA[5],CA[oA+3]=tA[4],CA[oA+4]=tA[3],CA[oA+5]=tA[2],CA[oA+6]=tA[1],CA[oA+7]=tA[0]}eA.writeDoubleLE=gA?iA:IA,eA.writeDoubleBE=gA?IA:iA;function BA(QA,CA){return tA[0]=QA[CA],tA[1]=QA[CA+1],tA[2]=QA[CA+2],tA[3]=QA[CA+3],tA[4]=QA[CA+4],tA[5]=QA[CA+5],tA[6]=QA[CA+6],tA[7]=QA[CA+7],AA[0]}function sA(QA,CA){return tA[7]=QA[CA],tA[6]=QA[CA+1],tA[5]=QA[CA+2],tA[4]=QA[CA+3],tA[3]=QA[CA+4],tA[2]=QA[CA+5],tA[1]=QA[CA+6],tA[0]=QA[CA+7],AA[0]}eA.readDoubleLE=gA?BA:sA,eA.readDoubleBE=gA?sA:BA}():function(){function AA(gA,iA,IA,BA,sA,QA){var CA=BA<0?1:0;if(CA&&(BA=-BA),BA===0)gA(0,sA,QA+iA),gA(1/BA>0?0:2147483648,sA,QA+IA);else if(isNaN(BA))gA(0,sA,QA+iA),gA(2146959360,sA,QA+IA);else if(BA>17976931348623157e292)gA(0,sA,QA+iA),gA((CA<<31|2146435072)>>>0,sA,QA+IA);else{var oA;if(BA<22250738585072014e-324)oA=BA/5e-324,gA(oA>>>0,sA,QA+iA),gA((CA<<31|oA/4294967296)>>>0,sA,QA+IA);else{var EA=Math.floor(Math.log(BA)/Math.LN2);EA===1024&&(EA=1023),oA=BA*Math.pow(2,-EA),gA(oA*4503599627370496>>>0,sA,QA+iA),gA((CA<<31|EA+1023<<20|oA*1048576&1048575)>>>0,sA,QA+IA)}}}eA.writeDoubleLE=AA.bind(null,writeUintLE,0,4),eA.writeDoubleBE=AA.bind(null,writeUintBE,4,0);function tA(gA,iA,IA,BA,sA){var QA=gA(BA,sA+iA),CA=gA(BA,sA+IA),oA=(CA>>31)*2+1,EA=CA>>>20&2047,nA=4294967296*(CA&1048575)+QA;return EA===2047?nA?NaN:oA*(1/0):EA===0?oA*5e-324*nA:oA*Math.pow(2,EA-1075)*(nA+4503599627370496)}eA.readDoubleLE=tA.bind(null,readUintLE,0,4),eA.readDoubleBE=tA.bind(null,readUintBE,4,0)}(),eA}function writeUintLE(eA,AA,tA){AA[tA]=eA&255,AA[tA+1]=eA>>>8&255,AA[tA+2]=eA>>>16&255,AA[tA+3]=eA>>>24}function writeUintBE(eA,AA,tA){AA[tA]=eA>>>24,AA[tA+1]=eA>>>16&255,AA[tA+2]=eA>>>8&255,AA[tA+3]=eA&255}function readUintLE(eA,AA){return(eA[AA]|eA[AA+1]<<8|eA[AA+2]<<16|eA[AA+3]<<24)>>>0}function readUintBE(eA,AA){return(eA[AA]<<24|eA[AA+1]<<16|eA[AA+2]<<8|eA[AA+3])>>>0}var inquire_1=inquire$1;function inquire$1(moduleName){try{var mod=eval("quire".replace(/^/,"re"))(moduleName);if(mod&&(mod.length||Object.keys(mod).length))return mod}catch(eA){}return null}var utf8$2={};(function(eA){var AA=eA;AA.length=function(gA){for(var iA=0,IA=0,BA=0;BA<gA.length;++BA)IA=gA.charCodeAt(BA),IA<128?iA+=1:IA<2048?iA+=2:(IA&64512)===55296&&(gA.charCodeAt(BA+1)&64512)===56320?(++BA,iA+=4):iA+=3;return iA},AA.read=function(gA,iA,IA){var BA=IA-iA;if(BA<1)return"";for(var sA=null,QA=[],CA=0,oA;iA<IA;)oA=gA[iA++],oA<128?QA[CA++]=oA:oA>191&&oA<224?QA[CA++]=(oA&31)<<6|gA[iA++]&63:oA>239&&oA<365?(oA=((oA&7)<<18|(gA[iA++]&63)<<12|(gA[iA++]&63)<<6|gA[iA++]&63)-65536,QA[CA++]=55296+(oA>>10),QA[CA++]=56320+(oA&1023)):QA[CA++]=(oA&15)<<12|(gA[iA++]&63)<<6|gA[iA++]&63,CA>8191&&((sA||(sA=[])).push(String.fromCharCode.apply(String,QA)),CA=0);return sA?(CA&&sA.push(String.fromCharCode.apply(String,QA.slice(0,CA))),sA.join("")):String.fromCharCode.apply(String,QA.slice(0,CA))},AA.write=function(gA,iA,IA){for(var BA=IA,sA,QA,CA=0;CA<gA.length;++CA)sA=gA.charCodeAt(CA),sA<128?iA[IA++]=sA:sA<2048?(iA[IA++]=sA>>6|192,iA[IA++]=sA&63|128):(sA&64512)===55296&&((QA=gA.charCodeAt(CA+1))&64512)===56320?(sA=65536+((sA&1023)<<10)+(QA&1023),++CA,iA[IA++]=sA>>18|240,iA[IA++]=sA>>12&63|128,iA[IA++]=sA>>6&63|128,iA[IA++]=sA&63|128):(iA[IA++]=sA>>12|224,iA[IA++]=sA>>6&63|128,iA[IA++]=sA&63|128);return IA-BA}})(utf8$2);var pool_1=pool;function pool(eA,AA,tA){var gA=tA||8192,iA=gA>>>1,IA=null,BA=gA;return function(QA){if(QA<1||QA>iA)return eA(QA);BA+QA>gA&&(IA=eA(gA),BA=0);var CA=AA.call(IA,BA,BA+=QA);return BA&7&&(BA=(BA|7)+1),CA}}var longbits,hasRequiredLongbits;function requireLongbits(){if(hasRequiredLongbits)return longbits;hasRequiredLongbits=1,longbits=AA;var eA=requireMinimal();function AA(IA,BA){this.lo=IA>>>0,this.hi=BA>>>0}var tA=AA.zero=new AA(0,0);tA.toNumber=function(){return 0},tA.zzEncode=tA.zzDecode=function(){return this},tA.length=function(){return 1};var gA=AA.zeroHash="\0\0\0\0\0\0\0\0";AA.fromNumber=function(BA){if(BA===0)return tA;var sA=BA<0;sA&&(BA=-BA);var QA=BA>>>0,CA=(BA-QA)/4294967296>>>0;return sA&&(CA=~CA>>>0,QA=~QA>>>0,++QA>4294967295&&(QA=0,++CA>4294967295&&(CA=0))),new AA(QA,CA)},AA.from=function(BA){if(typeof BA=="number")return AA.fromNumber(BA);if(eA.isString(BA))if(eA.Long)BA=eA.Long.fromString(BA);else return AA.fromNumber(parseInt(BA,10));return BA.low||BA.high?new AA(BA.low>>>0,BA.high>>>0):tA},AA.prototype.toNumber=function(BA){if(!BA&&this.hi>>>31){var sA=~this.lo+1>>>0,QA=~this.hi>>>0;return sA||(QA=QA+1>>>0),-(sA+QA*4294967296)}return this.lo+this.hi*4294967296},AA.prototype.toLong=function(BA){return eA.Long?new eA.Long(this.lo|0,this.hi|0,!!BA):{low:this.lo|0,high:this.hi|0,unsigned:!!BA}};var iA=String.prototype.charCodeAt;return AA.fromHash=function(BA){return BA===gA?tA:new AA((iA.call(BA,0)|iA.call(BA,1)<<8|iA.call(BA,2)<<16|iA.call(BA,3)<<24)>>>0,(iA.call(BA,4)|iA.call(BA,5)<<8|iA.call(BA,6)<<16|iA.call(BA,7)<<24)>>>0)},AA.prototype.toHash=function(){return String.fromCharCode(this.lo&255,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,this.hi&255,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},AA.prototype.zzEncode=function(){var BA=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^BA)>>>0,this.lo=(this.lo<<1^BA)>>>0,this},AA.prototype.zzDecode=function(){var BA=-(this.lo&1);return this.lo=((this.lo>>>1|this.hi<<31)^BA)>>>0,this.hi=(this.hi>>>1^BA)>>>0,this},AA.prototype.length=function(){var BA=this.lo,sA=(this.lo>>>28|this.hi<<4)>>>0,QA=this.hi>>>24;return QA===0?sA===0?BA<16384?BA<128?1:2:BA<2097152?3:4:sA<16384?sA<128?5:6:sA<2097152?7:8:QA<128?9:10},longbits}var hasRequiredMinimal;function requireMinimal(){return hasRequiredMinimal||(hasRequiredMinimal=1,function(eA){var AA=eA;AA.asPromise=aspromise,AA.base64=base64$1,AA.EventEmitter=eventemitter,AA.float=float,AA.inquire=inquire_1,AA.utf8=utf8$2,AA.pool=pool_1,AA.LongBits=requireLongbits(),AA.isNode=!!(typeof commonjsGlobal<"u"&&commonjsGlobal&&commonjsGlobal.process&&commonjsGlobal.process.versions&&commonjsGlobal.process.versions.node),AA.global=AA.isNode&&commonjsGlobal||typeof window<"u"&&window||typeof self<"u"&&self||commonjsGlobal,AA.emptyArray=Object.freeze?Object.freeze([]):[],AA.emptyObject=Object.freeze?Object.freeze({}):{},AA.isInteger=Number.isInteger||function(IA){return typeof IA=="number"&&isFinite(IA)&&Math.floor(IA)===IA},AA.isString=function(IA){return typeof IA=="string"||IA instanceof String},AA.isObject=function(IA){return IA&&typeof IA=="object"},AA.isset=AA.isSet=function(IA,BA){var sA=IA[BA];return sA!=null&&IA.hasOwnProperty(BA)?typeof sA!="object"||(Array.isArray(sA)?sA.length:Object.keys(sA).length)>0:!1},AA.Buffer=function(){try{var iA=AA.inquire("buffer").Buffer;return iA.prototype.utf8Write?iA:null}catch{return null}}(),AA._Buffer_from=null,AA._Buffer_allocUnsafe=null,AA.newBuffer=function(IA){return typeof IA=="number"?AA.Buffer?AA._Buffer_allocUnsafe(IA):new AA.Array(IA):AA.Buffer?AA._Buffer_from(IA):typeof Uint8Array>"u"?IA:new Uint8Array(IA)},AA.Array=typeof Uint8Array<"u"?Uint8Array:Array,AA.Long=AA.global.dcodeIO&&AA.global.dcodeIO.Long||AA.global.Long||AA.inquire("long"),AA.key2Re=/^true|false|0|1$/,AA.key32Re=/^-?(?:0|[1-9][0-9]*)$/,AA.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,AA.longToHash=function(IA){return IA?AA.LongBits.from(IA).toHash():AA.LongBits.zeroHash},AA.longFromHash=function(IA,BA){var sA=AA.LongBits.fromHash(IA);return AA.Long?AA.Long.fromBits(sA.lo,sA.hi,BA):sA.toNumber(!!BA)};function tA(iA,IA,BA){for(var sA=Object.keys(IA),QA=0;QA<sA.length;++QA)(iA[sA[QA]]===void 0||!BA)&&(iA[sA[QA]]=IA[sA[QA]]);return iA}AA.merge=tA,AA.lcFirst=function(IA){return IA.charAt(0).toLowerCase()+IA.substring(1)};function gA(iA){function IA(BA,sA){if(!(this instanceof IA))return new IA(BA,sA);Object.defineProperty(this,"message",{get:function(){return BA}}),Error.captureStackTrace?Error.captureStackTrace(this,IA):Object.defineProperty(this,"stack",{value:new Error().stack||""}),sA&&tA(this,sA)}return IA.prototype=Object.create(Error.prototype,{constructor:{value:IA,writable:!0,enumerable:!1,configurable:!0},name:{get:function(){return iA},set:void 0,enumerable:!1,configurable:!0},toString:{value:function(){return this.name+": "+this.message},writable:!0,enumerable:!1,configurable:!0}}),IA}AA.newError=gA,AA.ProtocolError=gA("ProtocolError"),AA.oneOfGetter=function(IA){for(var BA={},sA=0;sA<IA.length;++sA)BA[IA[sA]]=1;return function(){for(var QA=Object.keys(this),CA=QA.length-1;CA>-1;--CA)if(BA[QA[CA]]===1&&this[QA[CA]]!==void 0&&this[QA[CA]]!==null)return QA[CA]}},AA.oneOfSetter=function(IA){return function(BA){for(var sA=0;sA<IA.length;++sA)IA[sA]!==BA&&delete this[IA[sA]]}},AA.toJSONOptions={longs:String,enums:String,bytes:String,json:!0},AA._configure=function(){var iA=AA.Buffer;if(!iA){AA._Buffer_from=AA._Buffer_allocUnsafe=null;return}AA._Buffer_from=iA.from!==Uint8Array.from&&iA.from||function(BA,sA){return new iA(BA,sA)},AA._Buffer_allocUnsafe=iA.allocUnsafe||function(BA){return new iA(BA)}}}(minimal)),minimal}var writer=Writer$1,util$6=requireMinimal(),BufferWriter$1,LongBits$1=util$6.LongBits,base64=util$6.base64,utf8$1=util$6.utf8;function Op(eA,AA,tA){this.fn=eA,this.len=AA,this.next=void 0,this.val=tA}function noop(){}function State(eA){this.head=eA.head,this.tail=eA.tail,this.len=eA.len,this.next=eA.states}function Writer$1(){this.len=0,this.head=new Op(noop,0,0),this.tail=this.head,this.states=null}var create$1=function eA(){return util$6.Buffer?function(){return(Writer$1.create=function(){return new BufferWriter$1})()}:function(){return new Writer$1}};Writer$1.create=create$1(),Writer$1.alloc=function eA(AA){return new util$6.Array(AA)},util$6.Array!==Array&&(Writer$1.alloc=util$6.pool(Writer$1.alloc,util$6.Array.prototype.subarray)),Writer$1.prototype._push=function eA(AA,tA,gA){return this.tail=this.tail.next=new Op(AA,tA,gA),this.len+=tA,this};function writeByte(eA,AA,tA){AA[tA]=eA&255}function writeVarint32(eA,AA,tA){for(;eA>127;)AA[tA++]=eA&127|128,eA>>>=7;AA[tA]=eA}function VarintOp(eA,AA){this.len=eA,this.next=void 0,this.val=AA}VarintOp.prototype=Object.create(Op.prototype),VarintOp.prototype.fn=writeVarint32,Writer$1.prototype.uint32=function eA(AA){return this.len+=(this.tail=this.tail.next=new VarintOp((AA=AA>>>0)<128?1:AA<16384?2:AA<2097152?3:AA<268435456?4:5,AA)).len,this},Writer$1.prototype.int32=function eA(AA){return AA<0?this._push(writeVarint64,10,LongBits$1.fromNumber(AA)):this.uint32(AA)},Writer$1.prototype.sint32=function eA(AA){return this.uint32((AA<<1^AA>>31)>>>0)};function writeVarint64(eA,AA,tA){for(;eA.hi;)AA[tA++]=eA.lo&127|128,eA.lo=(eA.lo>>>7|eA.hi<<25)>>>0,eA.hi>>>=7;for(;eA.lo>127;)AA[tA++]=eA.lo&127|128,eA.lo=eA.lo>>>7;AA[tA++]=eA.lo}Writer$1.prototype.uint64=function eA(AA){var tA=LongBits$1.from(AA);return this._push(writeVarint64,tA.length(),tA)},Writer$1.prototype.int64=Writer$1.prototype.uint64,Writer$1.prototype.sint64=function eA(AA){var tA=LongBits$1.from(AA).zzEncode();return this._push(writeVarint64,tA.length(),tA)},Writer$1.prototype.bool=function eA(AA){return this._push(writeByte,1,AA?1:0)};function writeFixed32(eA,AA,tA){AA[tA]=eA&255,AA[tA+1]=eA>>>8&255,AA[tA+2]=eA>>>16&255,AA[tA+3]=eA>>>24}Writer$1.prototype.fixed32=function eA(AA){return this._push(writeFixed32,4,AA>>>0)},Writer$1.prototype.sfixed32=Writer$1.prototype.fixed32,Writer$1.prototype.fixed64=function eA(AA){var tA=LongBits$1.from(AA);return this._push(writeFixed32,4,tA.lo)._push(writeFixed32,4,tA.hi)},Writer$1.prototype.sfixed64=Writer$1.prototype.fixed64,Writer$1.prototype.float=function eA(AA){return this._push(util$6.float.writeFloatLE,4,AA)},Writer$1.prototype.double=function eA(AA){return this._push(util$6.float.writeDoubleLE,8,AA)};var writeBytes=util$6.Array.prototype.set?function eA(AA,tA,gA){tA.set(AA,gA)}:function eA(AA,tA,gA){for(var iA=0;iA<AA.length;++iA)tA[gA+iA]=AA[iA]};Writer$1.prototype.bytes=function eA(AA){var tA=AA.length>>>0;if(!tA)return this._push(writeByte,1,0);if(util$6.isString(AA)){var gA=Writer$1.alloc(tA=base64.length(AA));base64.decode(AA,gA,0),AA=gA}return this.uint32(tA)._push(writeBytes,tA,AA)},Writer$1.prototype.string=function eA(AA){var tA=utf8$1.length(AA);return tA?this.uint32(tA)._push(utf8$1.write,tA,AA):this._push(writeByte,1,0)},Writer$1.prototype.fork=function eA(){return this.states=new State(this),this.head=this.tail=new Op(noop,0,0),this.len=0,this},Writer$1.prototype.reset=function eA(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new Op(noop,0,0),this.len=0),this},Writer$1.prototype.ldelim=function eA(){var AA=this.head,tA=this.tail,gA=this.len;return this.reset().uint32(gA),gA&&(this.tail.next=AA.next,this.tail=tA,this.len+=gA),this},Writer$1.prototype.finish=function eA(){for(var AA=this.head.next,tA=this.constructor.alloc(this.len),gA=0;AA;)AA.fn(AA.val,tA,gA),gA+=AA.len,AA=AA.next;return tA},Writer$1._configure=function(eA){BufferWriter$1=eA,Writer$1.create=create$1(),BufferWriter$1._configure()};var writer_buffer=BufferWriter,Writer=writer;(BufferWriter.prototype=Object.create(Writer.prototype)).constructor=BufferWriter;var util$5=requireMinimal();function BufferWriter(){Writer.call(this)}BufferWriter._configure=function(){BufferWriter.alloc=util$5._Buffer_allocUnsafe,BufferWriter.writeBytesBuffer=util$5.Buffer&&util$5.Buffer.prototype instanceof Uint8Array&&util$5.Buffer.prototype.set.name==="set"?function(AA,tA,gA){tA.set(AA,gA)}:function(AA,tA,gA){if(AA.copy)AA.copy(tA,gA,0,AA.length);else for(var iA=0;iA<AA.length;)tA[gA++]=AA[iA++]}},BufferWriter.prototype.bytes=function eA(AA){util$5.isString(AA)&&(AA=util$5._Buffer_from(AA,"base64"));var tA=AA.length>>>0;return this.uint32(tA),tA&&this._push(BufferWriter.writeBytesBuffer,tA,AA),this};function writeStringBuffer(eA,AA,tA){eA.length<40?util$5.utf8.write(eA,AA,tA):AA.utf8Write?AA.utf8Write(eA,tA):AA.write(eA,tA)}BufferWriter.prototype.string=function eA(AA){var tA=util$5.Buffer.byteLength(AA);return this.uint32(tA),tA&&this._push(writeStringBuffer,tA,AA),this},BufferWriter._configure();var reader=Reader$1,util$4=requireMinimal(),BufferReader$1,LongBits=util$4.LongBits,utf8=util$4.utf8;function indexOutOfRange(eA,AA){return RangeError("index out of range: "+eA.pos+" + "+(AA||1)+" > "+eA.len)}function Reader$1(eA){this.buf=eA,this.pos=0,this.len=eA.length}var create_array=typeof Uint8Array<"u"?function eA(AA){if(AA instanceof Uint8Array||Array.isArray(AA))return new Reader$1(AA);throw Error("illegal buffer")}:function eA(AA){if(Array.isArray(AA))return new Reader$1(AA);throw Error("illegal buffer")},create=function eA(){return util$4.Buffer?function(tA){return(Reader$1.create=function(iA){return util$4.Buffer.isBuffer(iA)?new BufferReader$1(iA):create_array(iA)})(tA)}:create_array};Reader$1.create=create(),Reader$1.prototype._slice=util$4.Array.prototype.subarray||util$4.Array.prototype.slice,Reader$1.prototype.uint32=function eA(){var AA=4294967295;return function(){if(AA=(this.buf[this.pos]&127)>>>0,this.buf[this.pos++]<128||(AA=(AA|(this.buf[this.pos]&127)<<7)>>>0,this.buf[this.pos++]<128)||(AA=(AA|(this.buf[this.pos]&127)<<14)>>>0,this.buf[this.pos++]<128)||(AA=(AA|(this.buf[this.pos]&127)<<21)>>>0,this.buf[this.pos++]<128)||(AA=(AA|(this.buf[this.pos]&15)<<28)>>>0,this.buf[this.pos++]<128))return AA;if((this.pos+=5)>this.len)throw this.pos=this.len,indexOutOfRange(this,10);return AA}}(),Reader$1.prototype.int32=function eA(){return this.uint32()|0},Reader$1.prototype.sint32=function eA(){var AA=this.uint32();return AA>>>1^-(AA&1)|0};function readLongVarint(){var eA=new LongBits(0,0),AA=0;if(this.len-this.pos>4){for(;AA<4;++AA)if(eA.lo=(eA.lo|(this.buf[this.pos]&127)<<AA*7)>>>0,this.buf[this.pos++]<128)return eA;if(eA.lo=(eA.lo|(this.buf[this.pos]&127)<<28)>>>0,eA.hi=(eA.hi|(this.buf[this.pos]&127)>>4)>>>0,this.buf[this.pos++]<128)return eA;AA=0}else{for(;AA<3;++AA){if(this.pos>=this.len)throw indexOutOfRange(this);if(eA.lo=(eA.lo|(this.buf[this.pos]&127)<<AA*7)>>>0,this.buf[this.pos++]<128)return eA}return eA.lo=(eA.lo|(this.buf[this.pos++]&127)<<AA*7)>>>0,eA}if(this.len-this.pos>4){for(;AA<5;++AA)if(eA.hi=(eA.hi|(this.buf[this.pos]&127)<<AA*7+3)>>>0,this.buf[this.pos++]<128)return eA}else for(;AA<5;++AA){if(this.pos>=this.len)throw indexOutOfRange(this);if(eA.hi=(eA.hi|(this.buf[this.pos]&127)<<AA*7+3)>>>0,this.buf[this.pos++]<128)return eA}throw Error("invalid varint encoding")}Reader$1.prototype.bool=function eA(){return this.uint32()!==0};function readFixed32_end(eA,AA){return(eA[AA-4]|eA[AA-3]<<8|eA[AA-2]<<16|eA[AA-1]<<24)>>>0}Reader$1.prototype.fixed32=function eA(){if(this.pos+4>this.len)throw indexOutOfRange(this,4);return readFixed32_end(this.buf,this.pos+=4)},Reader$1.prototype.sfixed32=function eA(){if(this.pos+4>this.len)throw indexOutOfRange(this,4);return readFixed32_end(this.buf,this.pos+=4)|0};function readFixed64(){if(this.pos+8>this.len)throw indexOutOfRange(this,8);return new LongBits(readFixed32_end(this.buf,this.pos+=4),readFixed32_end(this.buf,this.pos+=4))}Reader$1.prototype.float=function eA(){if(this.pos+4>this.len)throw indexOutOfRange(this,4);var AA=util$4.float.readFloatLE(this.buf,this.pos);return this.pos+=4,AA},Reader$1.prototype.double=function eA(){if(this.pos+8>this.len)throw indexOutOfRange(this,4);var AA=util$4.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,AA},Reader$1.prototype.bytes=function eA(){var AA=this.uint32(),tA=this.pos,gA=this.pos+AA;if(gA>this.len)throw indexOutOfRange(this,AA);if(this.pos+=AA,Array.isArray(this.buf))return this.buf.slice(tA,gA);if(tA===gA){var iA=util$4.Buffer;return iA?iA.alloc(0):new this.buf.constructor(0)}return this._slice.call(this.buf,tA,gA)},Reader$1.prototype.string=function eA(){var AA=this.bytes();return utf8.read(AA,0,AA.length)},Reader$1.prototype.skip=function eA(AA){if(typeof AA=="number"){if(this.pos+AA>this.len)throw indexOutOfRange(this,AA);this.pos+=AA}else do if(this.pos>=this.len)throw indexOutOfRange(this);while(this.buf[this.pos++]&128);return this},Reader$1.prototype.skipType=function(eA){switch(eA){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;(eA=this.uint32()&7)!==4;)this.skipType(eA);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+eA+" at offset "+this.pos)}return this},Reader$1._configure=function(eA){BufferReader$1=eA,Reader$1.create=create(),BufferReader$1._configure();var AA=util$4.Long?"toLong":"toNumber";util$4.merge(Reader$1.prototype,{int64:function(){return readLongVarint.call(this)[AA](!1)},uint64:function(){return readLongVarint.call(this)[AA](!0)},sint64:function(){return readLongVarint.call(this).zzDecode()[AA](!1)},fixed64:function(){return readFixed64.call(this)[AA](!0)},sfixed64:function(){return readFixed64.call(this)[AA](!1)}})};var reader_buffer=BufferReader,Reader=reader;(BufferReader.prototype=Object.create(Reader.prototype)).constructor=BufferReader;var util$3=requireMinimal();function BufferReader(eA){Reader.call(this,eA)}BufferReader._configure=function(){util$3.Buffer&&(BufferReader.prototype._slice=util$3.Buffer.prototype.slice)},BufferReader.prototype.string=function eA(){var AA=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+AA,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+AA,this.len))},BufferReader._configure();var rpc={},service$1=Service,util$2=requireMinimal();(Service.prototype=Object.create(util$2.EventEmitter.prototype)).constructor=Service;function Service(eA,AA,tA){if(typeof eA!="function")throw TypeError("rpcImpl must be a function");util$2.EventEmitter.call(this),this.rpcImpl=eA,this.requestDelimited=!!AA,this.responseDelimited=!!tA}Service.prototype.rpcCall=function eA(AA,tA,gA,iA,IA){if(!iA)throw TypeError("request must be specified");var BA=this;if(!IA)return util$2.asPromise(eA,BA,AA,tA,gA,iA);if(!BA.rpcImpl){setTimeout(function(){IA(Error("already ended"))},0);return}try{return BA.rpcImpl(AA,tA[BA.requestDelimited?"encodeDelimited":"encode"](iA).finish(),function(QA,CA){if(QA)return BA.emit("error",QA,AA),IA(QA);if(CA===null){BA.end(!0);return}if(!(CA instanceof gA))try{CA=gA[BA.responseDelimited?"decodeDelimited":"decode"](CA)}catch(oA){return BA.emit("error",oA,AA),IA(oA)}return BA.emit("data",CA,AA),IA(null,CA)})}catch(sA){BA.emit("error",sA,AA),setTimeout(function(){IA(sA)},0);return}},Service.prototype.end=function eA(AA){return this.rpcImpl&&(AA||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this},function(eA){var AA=eA;AA.Service=service$1}(rpc);var roots={};(function(eA){var AA=eA;AA.build="minimal",AA.Writer=writer,AA.BufferWriter=writer_buffer,AA.Reader=reader,AA.BufferReader=reader_buffer,AA.util=requireMinimal(),AA.rpc=rpc,AA.roots=roots,AA.configure=tA;function tA(){AA.util._configure(),AA.Writer._configure(AA.BufferWriter),AA.Reader._configure(AA.BufferReader)}tA()})(indexMinimal);var util$1={exports:{}},codegen_1=codegen;function codegen(eA,AA){typeof eA=="string"&&(AA=eA,eA=void 0);var tA=[];function gA(IA){if(typeof IA!="string"){var BA=iA();if(codegen.verbose&&console.log("codegen: "+BA),BA="return "+BA,IA){for(var sA=Object.keys(IA),QA=new Array(sA.length+1),CA=new Array(sA.length),oA=0;oA<sA.length;)QA[oA]=sA[oA],CA[oA]=IA[sA[oA++]];return QA[oA]=BA,Function.apply(null,QA).apply(null,CA)}return Function(BA)()}for(var EA=new Array(arguments.length-1),nA=0;nA<EA.length;)EA[nA]=arguments[++nA];if(nA=0,IA=IA.replace(/%([%dfijs])/g,function(uA,lA){var hA=EA[nA++];switch(lA){case"d":case"f":return String(Number(hA));case"i":return String(Math.floor(hA));case"j":return JSON.stringify(hA);case"s":return String(hA)}return"%"}),nA!==EA.length)throw Error("parameter count mismatch");return tA.push(IA),gA}function iA(IA){return"function "+(IA||AA||"")+"("+(eA&&eA.join(",")||"")+`){
|
|
2
2
|
`+tA.join(`
|
|
3
3
|
`)+`
|
|
4
|
-
}`}return gA.toString=iA,gA}codegen.verbose=!1;var fetch_1=fetch$1,asPromise=aspromise,inquire=inquire_1,fs$1=inquire("fs");function fetch$1(eA,AA,tA){return typeof AA=="function"?(tA=AA,AA={}):AA||(AA={}),tA?!AA.xhr&&fs$1&&fs$1.readFile?fs$1.readFile(eA,function(iA,IA){return iA&&typeof XMLHttpRequest<"u"?fetch$1.xhr(eA,AA,tA):iA?tA(iA):tA(null,AA.binary?IA:IA.toString("utf8"))}):fetch$1.xhr(eA,AA,tA):asPromise(fetch$1,this,eA,AA)}fetch$1.xhr=function eA(AA,tA,gA){var iA=new XMLHttpRequest;iA.onreadystatechange=function(){if(iA.readyState===4){if(iA.status!==0&&iA.status!==200)return gA(Error("status "+iA.status));if(tA.binary){var BA=iA.response;if(!BA){BA=[];for(var sA=0;sA<iA.responseText.length;++sA)BA.push(iA.responseText.charCodeAt(sA)&255)}return gA(null,typeof Uint8Array<"u"?new Uint8Array(BA):BA)}return gA(null,iA.responseText)}},tA.binary&&("overrideMimeType"in iA&&iA.overrideMimeType("text/plain; charset=x-user-defined"),iA.responseType="arraybuffer"),iA.open("GET",AA),iA.send()};var path={};(function(eA){var AA=eA,tA=AA.isAbsolute=function(IA){return/^(?:\/|\w+:)/.test(IA)},gA=AA.normalize=function(IA){IA=IA.replace(/\\/g,"/").replace(/\/{2,}/g,"/");var BA=IA.split("/"),sA=tA(IA),QA="";sA&&(QA=BA.shift()+"/");for(var CA=0;CA<BA.length;)BA[CA]===".."?CA>0&&BA[CA-1]!==".."?BA.splice(--CA,2):sA?BA.splice(CA,1):++CA:BA[CA]==="."?BA.splice(CA,1):++CA;return QA+BA.join("/")};AA.resolve=function(IA,BA,sA){return sA||(BA=gA(BA)),tA(BA)?BA:(sA||(IA=gA(IA)),(IA=IA.replace(/(?:\/|^)[^/]+$/,"")).length?gA(IA+"/"+BA):BA)}})(path);var types$2={},hasRequiredTypes;function requireTypes(){return hasRequiredTypes||(hasRequiredTypes=1,function(eA){var AA=eA,tA=requireUtil(),gA=["double","float","int32","uint32","sint32","fixed32","sfixed32","int64","uint64","sint64","fixed64","sfixed64","bool","string","bytes"];function iA(IA,BA){var sA=0,QA={};for(BA|=0;sA<IA.length;)QA[gA[sA+BA]]=IA[sA++];return QA}AA.basic=iA([1,5,0,0,0,5,5,0,0,0,1,1,0,2,2]),AA.defaults=iA([0,0,0,0,0,0,0,0,0,0,0,0,!1,"",tA.emptyArray,null]),AA.long=iA([0,0,0,1,1],7),AA.mapKey=iA([0,0,0,5,5,0,0,0,1,1,0,2],2),AA.packed=iA([1,5,0,0,0,5,5,0,0,0,1,1,0])}(types$2)),types$2}var field,hasRequiredField;function requireField(){if(hasRequiredField)return field;hasRequiredField=1,field=BA;var eA=requireObject();((BA.prototype=Object.create(eA.prototype)).constructor=BA).className="Field";var AA=require_enum(),tA=requireTypes(),gA=requireUtil(),iA,IA=/^required|optional|repeated$/;BA.fromJSON=function(QA,CA){return new BA(QA,CA.id,CA.type,CA.rule,CA.extend,CA.options,CA.comment)};function BA(sA,QA,CA,oA,EA,nA,cA){if(gA.isObject(oA)?(cA=EA,nA=oA,oA=EA=void 0):gA.isObject(EA)&&(cA=nA,nA=EA,EA=void 0),eA.call(this,sA,nA),!gA.isInteger(QA)||QA<0)throw TypeError("id must be a non-negative integer");if(!gA.isString(CA))throw TypeError("type must be a string");if(oA!==void 0&&!IA.test(oA=oA.toString().toLowerCase()))throw TypeError("rule must be a string rule");if(EA!==void 0&&!gA.isString(EA))throw TypeError("extend must be a string");oA==="proto3_optional"&&(oA="optional"),this.rule=oA&&oA!=="optional"?oA:void 0,this.type=CA,this.id=QA,this.extend=EA||void 0,this.required=oA==="required",this.optional=!this.required,this.repeated=oA==="repeated",this.map=!1,this.message=null,this.partOf=null,this.typeDefault=null,this.defaultValue=null,this.long=gA.Long?tA.long[CA]!==void 0:!1,this.bytes=CA==="bytes",this.resolvedType=null,this.extensionField=null,this.declaringField=null,this._packed=null,this.comment=cA}return Object.defineProperty(BA.prototype,"packed",{get:function(){return this._packed===null&&(this._packed=this.getOption("packed")!==!1),this._packed}}),BA.prototype.setOption=function(QA,CA,oA){return QA==="packed"&&(this._packed=null),eA.prototype.setOption.call(this,QA,CA,oA)},BA.prototype.toJSON=function(QA){var CA=QA?!!QA.keepComments:!1;return gA.toObject(["rule",this.rule!=="optional"&&this.rule||void 0,"type",this.type,"id",this.id,"extend",this.extend,"options",this.options,"comment",CA?this.comment:void 0])},BA.prototype.resolve=function(){if(this.resolved)return this;if((this.typeDefault=tA.defaults[this.type])===void 0?(this.resolvedType=(this.declaringField?this.declaringField.parent:this.parent).lookupTypeOrEnum(this.type),this.resolvedType instanceof iA?this.typeDefault=null:this.typeDefault=this.resolvedType.values[Object.keys(this.resolvedType.values)[0]]):this.options&&this.options.proto3_optional&&(this.typeDefault=null),this.options&&this.options.default!=null&&(this.typeDefault=this.options.default,this.resolvedType instanceof AA&&typeof this.typeDefault=="string"&&(this.typeDefault=this.resolvedType.values[this.typeDefault])),this.options&&((this.options.packed===!0||this.options.packed!==void 0&&this.resolvedType&&!(this.resolvedType instanceof AA))&&delete this.options.packed,Object.keys(this.options).length||(this.options=void 0)),this.long)this.typeDefault=gA.Long.fromNumber(this.typeDefault,this.type.charAt(0)==="u"),Object.freeze&&Object.freeze(this.typeDefault);else if(this.bytes&&typeof this.typeDefault=="string"){var QA;gA.base64.test(this.typeDefault)?gA.base64.decode(this.typeDefault,QA=gA.newBuffer(gA.base64.length(this.typeDefault)),0):gA.utf8.write(this.typeDefault,QA=gA.newBuffer(gA.utf8.length(this.typeDefault)),0),this.typeDefault=QA}return this.map?this.defaultValue=gA.emptyObject:this.repeated?this.defaultValue=gA.emptyArray:this.defaultValue=this.typeDefault,this.parent instanceof iA&&(this.parent.ctor.prototype[this.name]=this.defaultValue),eA.prototype.resolve.call(this)},BA.d=function(QA,CA,oA,EA){return typeof CA=="function"?CA=gA.decorateType(CA).name:CA&&typeof CA=="object"&&(CA=gA.decorateEnum(CA).name),function(cA,uA){gA.decorateType(cA.constructor).add(new BA(uA,QA,CA,oA,{default:EA}))}},BA._configure=function(QA){iA=QA},field}var oneof,hasRequiredOneof;function requireOneof(){if(hasRequiredOneof)return oneof;hasRequiredOneof=1,oneof=gA;var eA=requireObject();((gA.prototype=Object.create(eA.prototype)).constructor=gA).className="OneOf";var AA=requireField(),tA=requireUtil();function gA(IA,BA,sA,QA){if(Array.isArray(BA)||(sA=BA,BA=void 0),eA.call(this,IA,sA),!(BA===void 0||Array.isArray(BA)))throw TypeError("fieldNames must be an Array");this.oneof=BA||[],this.fieldsArray=[],this.comment=QA}gA.fromJSON=function(BA,sA){return new gA(BA,sA.oneof,sA.options,sA.comment)},gA.prototype.toJSON=function(BA){var sA=BA?!!BA.keepComments:!1;return tA.toObject(["options",this.options,"oneof",this.oneof,"comment",sA?this.comment:void 0])};function iA(IA){if(IA.parent)for(var BA=0;BA<IA.fieldsArray.length;++BA)IA.fieldsArray[BA].parent||IA.parent.add(IA.fieldsArray[BA])}return gA.prototype.add=function(BA){if(!(BA instanceof AA))throw TypeError("field must be a Field");return BA.parent&&BA.parent!==this.parent&&BA.parent.remove(BA),this.oneof.push(BA.name),this.fieldsArray.push(BA),BA.partOf=this,iA(this),this},gA.prototype.remove=function(BA){if(!(BA instanceof AA))throw TypeError("field must be a Field");var sA=this.fieldsArray.indexOf(BA);if(sA<0)throw Error(BA+" is not a member of "+this);return this.fieldsArray.splice(sA,1),sA=this.oneof.indexOf(BA.name),sA>-1&&this.oneof.splice(sA,1),BA.partOf=null,this},gA.prototype.onAdd=function(BA){eA.prototype.onAdd.call(this,BA);for(var sA=this,QA=0;QA<this.oneof.length;++QA){var CA=BA.get(this.oneof[QA]);CA&&!CA.partOf&&(CA.partOf=sA,sA.fieldsArray.push(CA))}iA(this)},gA.prototype.onRemove=function(BA){for(var sA=0,QA;sA<this.fieldsArray.length;++sA)(QA=this.fieldsArray[sA]).parent&&QA.parent.remove(QA);eA.prototype.onRemove.call(this,BA)},gA.d=function(){for(var BA=new Array(arguments.length),sA=0;sA<arguments.length;)BA[sA]=arguments[sA++];return function(CA,oA){tA.decorateType(CA.constructor).add(new gA(oA,BA)),Object.defineProperty(CA,oA,{get:tA.oneOfGetter(BA),set:tA.oneOfSetter(BA)})}},oneof}var namespace,hasRequiredNamespace;function requireNamespace(){if(hasRequiredNamespace)return namespace;hasRequiredNamespace=1,namespace=QA;var eA=requireObject();((QA.prototype=Object.create(eA.prototype)).constructor=QA).className="Namespace";var AA=requireField(),tA=requireUtil(),gA=requireOneof(),iA,IA,BA;QA.fromJSON=function(EA,nA){return new QA(EA,nA.options).addJSON(nA.nested)};function sA(oA,EA){if(oA&&oA.length){for(var nA={},cA=0;cA<oA.length;++cA)nA[oA[cA].name]=oA[cA].toJSON(EA);return nA}}QA.arrayToJSON=sA,QA.isReservedId=function(EA,nA){if(EA){for(var cA=0;cA<EA.length;++cA)if(typeof EA[cA]!="string"&&EA[cA][0]<=nA&&EA[cA][1]>nA)return!0}return!1},QA.isReservedName=function(EA,nA){if(EA){for(var cA=0;cA<EA.length;++cA)if(EA[cA]===nA)return!0}return!1};function QA(oA,EA){eA.call(this,oA,EA),this.nested=void 0,this._nestedArray=null}function CA(oA){return oA._nestedArray=null,oA}return Object.defineProperty(QA.prototype,"nestedArray",{get:function(){return this._nestedArray||(this._nestedArray=tA.toArray(this.nested))}}),QA.prototype.toJSON=function(EA){return tA.toObject(["options",this.options,"nested",sA(this.nestedArray,EA)])},QA.prototype.addJSON=function(EA){var nA=this;if(EA)for(var cA=Object.keys(EA),uA=0,lA;uA<cA.length;++uA)lA=EA[cA[uA]],nA.add((lA.fields!==void 0?iA.fromJSON:lA.values!==void 0?BA.fromJSON:lA.methods!==void 0?IA.fromJSON:lA.id!==void 0?AA.fromJSON:QA.fromJSON)(cA[uA],lA));return this},QA.prototype.get=function(EA){return this.nested&&this.nested[EA]||null},QA.prototype.getEnum=function(EA){if(this.nested&&this.nested[EA]instanceof BA)return this.nested[EA].values;throw Error("no such enum: "+EA)},QA.prototype.add=function(EA){if(!(EA instanceof AA&&EA.extend!==void 0||EA instanceof iA||EA instanceof gA||EA instanceof BA||EA instanceof IA||EA instanceof QA))throw TypeError("object must be a valid nested object");if(!this.nested)this.nested={};else{var nA=this.get(EA.name);if(nA)if(nA instanceof QA&&EA instanceof QA&&!(nA instanceof iA||nA instanceof IA)){for(var cA=nA.nestedArray,uA=0;uA<cA.length;++uA)EA.add(cA[uA]);this.remove(nA),this.nested||(this.nested={}),EA.setOptions(nA.options,!0)}else throw Error("duplicate name '"+EA.name+"' in "+this)}return this.nested[EA.name]=EA,EA.onAdd(this),CA(this)},QA.prototype.remove=function(EA){if(!(EA instanceof eA))throw TypeError("object must be a ReflectionObject");if(EA.parent!==this)throw Error(EA+" is not a member of "+this);return delete this.nested[EA.name],Object.keys(this.nested).length||(this.nested=void 0),EA.onRemove(this),CA(this)},QA.prototype.define=function(EA,nA){if(tA.isString(EA))EA=EA.split(".");else if(!Array.isArray(EA))throw TypeError("illegal path");if(EA&&EA.length&&EA[0]==="")throw Error("path must be relative");for(var cA=this;EA.length>0;){var uA=EA.shift();if(cA.nested&&cA.nested[uA]){if(cA=cA.nested[uA],!(cA instanceof QA))throw Error("path conflicts with non-namespace objects")}else cA.add(cA=new QA(uA))}return nA&&cA.addJSON(nA),cA},QA.prototype.resolveAll=function(){for(var EA=this.nestedArray,nA=0;nA<EA.length;)EA[nA]instanceof QA?EA[nA++].resolveAll():EA[nA++].resolve();return this.resolve()},QA.prototype.lookup=function(EA,nA,cA){if(typeof nA=="boolean"?(cA=nA,nA=void 0):nA&&!Array.isArray(nA)&&(nA=[nA]),tA.isString(EA)&&EA.length){if(EA===".")return this.root;EA=EA.split(".")}else if(!EA.length)return this;if(EA[0]==="")return this.root.lookup(EA.slice(1),nA);var uA=this.get(EA[0]);if(uA){if(EA.length===1){if(!nA||nA.indexOf(uA.constructor)>-1)return uA}else if(uA instanceof QA&&(uA=uA.lookup(EA.slice(1),nA,!0)))return uA}else for(var lA=0;lA<this.nestedArray.length;++lA)if(this._nestedArray[lA]instanceof QA&&(uA=this._nestedArray[lA].lookup(EA,nA,!0)))return uA;return this.parent===null||cA?null:this.parent.lookup(EA,nA)},QA.prototype.lookupType=function(EA){var nA=this.lookup(EA,[iA]);if(!nA)throw Error("no such type: "+EA);return nA},QA.prototype.lookupEnum=function(EA){var nA=this.lookup(EA,[BA]);if(!nA)throw Error("no such Enum '"+EA+"' in "+this);return nA},QA.prototype.lookupTypeOrEnum=function(EA){var nA=this.lookup(EA,[iA,BA]);if(!nA)throw Error("no such Type or Enum '"+EA+"' in "+this);return nA},QA.prototype.lookupService=function(EA){var nA=this.lookup(EA,[IA]);if(!nA)throw Error("no such Service '"+EA+"' in "+this);return nA},QA._configure=function(oA,EA,nA){iA=oA,IA=EA,BA=nA},namespace}var mapfield,hasRequiredMapfield;function requireMapfield(){if(hasRequiredMapfield)return mapfield;hasRequiredMapfield=1,mapfield=gA;var eA=requireField();((gA.prototype=Object.create(eA.prototype)).constructor=gA).className="MapField";var AA=requireTypes(),tA=requireUtil();function gA(iA,IA,BA,sA,QA,CA){if(eA.call(this,iA,IA,sA,void 0,void 0,QA,CA),!tA.isString(BA))throw TypeError("keyType must be a string");this.keyType=BA,this.resolvedKeyType=null,this.map=!0}return gA.fromJSON=function(IA,BA){return new gA(IA,BA.id,BA.keyType,BA.type,BA.options,BA.comment)},gA.prototype.toJSON=function(IA){var BA=IA?!!IA.keepComments:!1;return tA.toObject(["keyType",this.keyType,"type",this.type,"id",this.id,"extend",this.extend,"options",this.options,"comment",BA?this.comment:void 0])},gA.prototype.resolve=function(){if(this.resolved)return this;if(AA.mapKey[this.keyType]===void 0)throw Error("invalid key type: "+this.keyType);return eA.prototype.resolve.call(this)},gA.d=function(IA,BA,sA){return typeof sA=="function"?sA=tA.decorateType(sA).name:sA&&typeof sA=="object"&&(sA=tA.decorateEnum(sA).name),function(CA,oA){tA.decorateType(CA.constructor).add(new gA(oA,IA,BA,sA))}},mapfield}var method$1,hasRequiredMethod;function requireMethod(){if(hasRequiredMethod)return method$1;hasRequiredMethod=1,method$1=tA;var eA=requireObject();((tA.prototype=Object.create(eA.prototype)).constructor=tA).className="Method";var AA=requireUtil();function tA(gA,iA,IA,BA,sA,QA,CA,oA,EA){if(AA.isObject(sA)?(CA=sA,sA=QA=void 0):AA.isObject(QA)&&(CA=QA,QA=void 0),!(iA===void 0||AA.isString(iA)))throw TypeError("type must be a string");if(!AA.isString(IA))throw TypeError("requestType must be a string");if(!AA.isString(BA))throw TypeError("responseType must be a string");eA.call(this,gA,CA),this.type=iA||"rpc",this.requestType=IA,this.requestStream=sA?!0:void 0,this.responseType=BA,this.responseStream=QA?!0:void 0,this.resolvedRequestType=null,this.resolvedResponseType=null,this.comment=oA,this.parsedOptions=EA}return tA.fromJSON=function(iA,IA){return new tA(iA,IA.type,IA.requestType,IA.responseType,IA.requestStream,IA.responseStream,IA.options,IA.comment,IA.parsedOptions)},tA.prototype.toJSON=function(iA){var IA=iA?!!iA.keepComments:!1;return AA.toObject(["type",this.type!=="rpc"&&this.type||void 0,"requestType",this.requestType,"requestStream",this.requestStream,"responseType",this.responseType,"responseStream",this.responseStream,"options",this.options,"comment",IA?this.comment:void 0,"parsedOptions",this.parsedOptions])},tA.prototype.resolve=function(){return this.resolved?this:(this.resolvedRequestType=this.parent.lookupType(this.requestType),this.resolvedResponseType=this.parent.lookupType(this.responseType),eA.prototype.resolve.call(this))},method$1}var service,hasRequiredService;function requireService(){if(hasRequiredService)return service;hasRequiredService=1,service=iA;var eA=requireNamespace();((iA.prototype=Object.create(eA.prototype)).constructor=iA).className="Service";var AA=requireMethod(),tA=requireUtil(),gA=rpc;function iA(BA,sA){eA.call(this,BA,sA),this.methods={},this._methodsArray=null}iA.fromJSON=function(sA,QA){var CA=new iA(sA,QA.options);if(QA.methods)for(var oA=Object.keys(QA.methods),EA=0;EA<oA.length;++EA)CA.add(AA.fromJSON(oA[EA],QA.methods[oA[EA]]));return QA.nested&&CA.addJSON(QA.nested),CA.comment=QA.comment,CA},iA.prototype.toJSON=function(sA){var QA=eA.prototype.toJSON.call(this,sA),CA=sA?!!sA.keepComments:!1;return tA.toObject(["options",QA&&QA.options||void 0,"methods",eA.arrayToJSON(this.methodsArray,sA)||{},"nested",QA&&QA.nested||void 0,"comment",CA?this.comment:void 0])},Object.defineProperty(iA.prototype,"methodsArray",{get:function(){return this._methodsArray||(this._methodsArray=tA.toArray(this.methods))}});function IA(BA){return BA._methodsArray=null,BA}return iA.prototype.get=function(sA){return this.methods[sA]||eA.prototype.get.call(this,sA)},iA.prototype.resolveAll=function(){for(var sA=this.methodsArray,QA=0;QA<sA.length;++QA)sA[QA].resolve();return eA.prototype.resolve.call(this)},iA.prototype.add=function(sA){if(this.get(sA.name))throw Error("duplicate name '"+sA.name+"' in "+this);return sA instanceof AA?(this.methods[sA.name]=sA,sA.parent=this,IA(this)):eA.prototype.add.call(this,sA)},iA.prototype.remove=function(sA){if(sA instanceof AA){if(this.methods[sA.name]!==sA)throw Error(sA+" is not a member of "+this);return delete this.methods[sA.name],sA.parent=null,IA(this)}return eA.prototype.remove.call(this,sA)},iA.prototype.create=function(sA,QA,CA){for(var oA=new gA.Service(sA,QA,CA),EA=0,nA;EA<this.methodsArray.length;++EA){var cA=tA.lcFirst((nA=this._methodsArray[EA]).resolve().name).replace(/[^$\w_]/g,"");oA[cA]=tA.codegen(["r","c"],tA.isReserved(cA)?cA+"_":cA)("return this.rpcCall(m,q,s,r,c)")({m:nA,q:nA.resolvedRequestType.ctor,s:nA.resolvedResponseType.ctor})}return oA},service}var message=Message,util=requireMinimal();function Message(eA){if(eA)for(var AA=Object.keys(eA),tA=0;tA<AA.length;++tA)this[AA[tA]]=eA[AA[tA]]}Message.create=function eA(AA){return this.$type.create(AA)},Message.encode=function eA(AA,tA){return this.$type.encode(AA,tA)},Message.encodeDelimited=function eA(AA,tA){return this.$type.encodeDelimited(AA,tA)},Message.decode=function eA(AA){return this.$type.decode(AA)},Message.decodeDelimited=function eA(AA){return this.$type.decodeDelimited(AA)},Message.verify=function eA(AA){return this.$type.verify(AA)},Message.fromObject=function eA(AA){return this.$type.fromObject(AA)},Message.toObject=function eA(AA,tA){return this.$type.toObject(AA,tA)},Message.prototype.toJSON=function eA(){return this.$type.toObject(this,util.toJSONOptions)};var decoder_1,hasRequiredDecoder;function requireDecoder(){if(hasRequiredDecoder)return decoder_1;hasRequiredDecoder=1,decoder_1=iA;var eA=require_enum(),AA=requireTypes(),tA=requireUtil();function gA(IA){return"missing required '"+IA.name+"'"}function iA(IA){var BA=tA.codegen(["r","l"],IA.name+"$decode")("if(!(r instanceof Reader))")("r=Reader.create(r)")("var c=l===undefined?r.len:r.pos+l,m=new this.ctor"+(IA.fieldsArray.filter(function(nA){return nA.map}).length?",k,value":""))("while(r.pos<c){")("var t=r.uint32()");IA.group&&BA("if((t&7)===4)")("break"),BA("switch(t>>>3){");for(var sA=0;sA<IA.fieldsArray.length;++sA){var QA=IA._fieldsArray[sA].resolve(),CA=QA.resolvedType instanceof eA?"int32":QA.type,oA="m"+tA.safeProp(QA.name);BA("case %i: {",QA.id),QA.map?(BA("if(%s===util.emptyObject)",oA)("%s={}",oA)("var c2 = r.uint32()+r.pos"),AA.defaults[QA.keyType]!==void 0?BA("k=%j",AA.defaults[QA.keyType]):BA("k=null"),AA.defaults[CA]!==void 0?BA("value=%j",AA.defaults[CA]):BA("value=null"),BA("while(r.pos<c2){")("var tag2=r.uint32()")("switch(tag2>>>3){")("case 1: k=r.%s(); break",QA.keyType)("case 2:"),AA.basic[CA]===void 0?BA("value=types[%i].decode(r,r.uint32())",sA):BA("value=r.%s()",CA),BA("break")("default:")("r.skipType(tag2&7)")("break")("}")("}"),AA.long[QA.keyType]!==void 0?BA('%s[typeof k==="object"?util.longToHash(k):k]=value',oA):BA("%s[k]=value",oA)):QA.repeated?(BA("if(!(%s&&%s.length))",oA,oA)("%s=[]",oA),AA.packed[CA]!==void 0&&BA("if((t&7)===2){")("var c2=r.uint32()+r.pos")("while(r.pos<c2)")("%s.push(r.%s())",oA,CA)("}else"),AA.basic[CA]===void 0?BA(QA.resolvedType.group?"%s.push(types[%i].decode(r))":"%s.push(types[%i].decode(r,r.uint32()))",oA,sA):BA("%s.push(r.%s())",oA,CA)):AA.basic[CA]===void 0?BA(QA.resolvedType.group?"%s=types[%i].decode(r)":"%s=types[%i].decode(r,r.uint32())",oA,sA):BA("%s=r.%s()",oA,CA),BA("break")("}")}for(BA("default:")("r.skipType(t&7)")("break")("}")("}"),sA=0;sA<IA._fieldsArray.length;++sA){var EA=IA._fieldsArray[sA];EA.required&&BA("if(!m.hasOwnProperty(%j))",EA.name)("throw util.ProtocolError(%j,{instance:m})",gA(EA))}return BA("return m")}return decoder_1}var verifier_1,hasRequiredVerifier;function requireVerifier(){if(hasRequiredVerifier)return verifier_1;hasRequiredVerifier=1,verifier_1=IA;var eA=require_enum(),AA=requireUtil();function tA(BA,sA){return BA.name+": "+sA+(BA.repeated&&sA!=="array"?"[]":BA.map&&sA!=="object"?"{k:"+BA.keyType+"}":"")+" expected"}function gA(BA,sA,QA,CA){if(sA.resolvedType)if(sA.resolvedType instanceof eA){BA("switch(%s){",CA)("default:")("return%j",tA(sA,"enum value"));for(var oA=Object.keys(sA.resolvedType.values),EA=0;EA<oA.length;++EA)BA("case %i:",sA.resolvedType.values[oA[EA]]);BA("break")("}")}else BA("{")("var e=types[%i].verify(%s);",QA,CA)("if(e)")("return%j+e",sA.name+".")("}");else switch(sA.type){case"int32":case"uint32":case"sint32":case"fixed32":case"sfixed32":BA("if(!util.isInteger(%s))",CA)("return%j",tA(sA,"integer"));break;case"int64":case"uint64":case"sint64":case"fixed64":case"sfixed64":BA("if(!util.isInteger(%s)&&!(%s&&util.isInteger(%s.low)&&util.isInteger(%s.high)))",CA,CA,CA,CA)("return%j",tA(sA,"integer|Long"));break;case"float":case"double":BA('if(typeof %s!=="number")',CA)("return%j",tA(sA,"number"));break;case"bool":BA('if(typeof %s!=="boolean")',CA)("return%j",tA(sA,"boolean"));break;case"string":BA("if(!util.isString(%s))",CA)("return%j",tA(sA,"string"));break;case"bytes":BA('if(!(%s&&typeof %s.length==="number"||util.isString(%s)))',CA,CA,CA)("return%j",tA(sA,"buffer"));break}return BA}function iA(BA,sA,QA){switch(sA.keyType){case"int32":case"uint32":case"sint32":case"fixed32":case"sfixed32":BA("if(!util.key32Re.test(%s))",QA)("return%j",tA(sA,"integer key"));break;case"int64":case"uint64":case"sint64":case"fixed64":case"sfixed64":BA("if(!util.key64Re.test(%s))",QA)("return%j",tA(sA,"integer|Long key"));break;case"bool":BA("if(!util.key2Re.test(%s))",QA)("return%j",tA(sA,"boolean key"));break}return BA}function IA(BA){var sA=AA.codegen(["m"],BA.name+"$verify")('if(typeof m!=="object"||m===null)')("return%j","object expected"),QA=BA.oneofsArray,CA={};QA.length&&sA("var p={}");for(var oA=0;oA<BA.fieldsArray.length;++oA){var EA=BA._fieldsArray[oA].resolve(),nA="m"+AA.safeProp(EA.name);if(EA.optional&&sA("if(%s!=null&&m.hasOwnProperty(%j)){",nA,EA.name),EA.map)sA("if(!util.isObject(%s))",nA)("return%j",tA(EA,"object"))("var k=Object.keys(%s)",nA)("for(var i=0;i<k.length;++i){"),iA(sA,EA,"k[i]"),gA(sA,EA,oA,nA+"[k[i]]")("}");else if(EA.repeated)sA("if(!Array.isArray(%s))",nA)("return%j",tA(EA,"array"))("for(var i=0;i<%s.length;++i){",nA),gA(sA,EA,oA,nA+"[i]")("}");else{if(EA.partOf){var cA=AA.safeProp(EA.partOf.name);CA[EA.partOf.name]===1&&sA("if(p%s===1)",cA)("return%j",EA.partOf.name+": multiple values"),CA[EA.partOf.name]=1,sA("p%s=1",cA)}gA(sA,EA,oA,nA)}EA.optional&&sA("}")}return sA("return null")}return verifier_1}var converter={},hasRequiredConverter;function requireConverter(){return hasRequiredConverter||(hasRequiredConverter=1,function(eA){var AA=eA,tA=require_enum(),gA=requireUtil();function iA(BA,sA,QA,CA){var oA=!1;if(sA.resolvedType)if(sA.resolvedType instanceof tA){BA("switch(d%s){",CA);for(var EA=sA.resolvedType.values,nA=Object.keys(EA),cA=0;cA<nA.length;++cA)EA[nA[cA]]===sA.typeDefault&&!oA&&(BA("default:")('if(typeof(d%s)==="number"){m%s=d%s;break}',CA,CA,CA),sA.repeated||BA("break"),oA=!0),BA("case%j:",nA[cA])("case %i:",EA[nA[cA]])("m%s=%j",CA,EA[nA[cA]])("break");BA("}")}else BA('if(typeof d%s!=="object")',CA)("throw TypeError(%j)",sA.fullName+": object expected")("m%s=types[%i].fromObject(d%s)",CA,QA,CA);else{var uA=!1;switch(sA.type){case"double":case"float":BA("m%s=Number(d%s)",CA,CA);break;case"uint32":case"fixed32":BA("m%s=d%s>>>0",CA,CA);break;case"int32":case"sint32":case"sfixed32":BA("m%s=d%s|0",CA,CA);break;case"uint64":uA=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":BA("if(util.Long)")("(m%s=util.Long.fromValue(d%s)).unsigned=%j",CA,CA,uA)('else if(typeof d%s==="string")',CA)("m%s=parseInt(d%s,10)",CA,CA)('else if(typeof d%s==="number")',CA)("m%s=d%s",CA,CA)('else if(typeof d%s==="object")',CA)("m%s=new util.LongBits(d%s.low>>>0,d%s.high>>>0).toNumber(%s)",CA,CA,CA,uA?"true":"");break;case"bytes":BA('if(typeof d%s==="string")',CA)("util.base64.decode(d%s,m%s=util.newBuffer(util.base64.length(d%s)),0)",CA,CA,CA)("else if(d%s.length >= 0)",CA)("m%s=d%s",CA,CA);break;case"string":BA("m%s=String(d%s)",CA,CA);break;case"bool":BA("m%s=Boolean(d%s)",CA,CA);break}}return BA}AA.fromObject=function(sA){var QA=sA.fieldsArray,CA=gA.codegen(["d"],sA.name+"$fromObject")("if(d instanceof this.ctor)")("return d");if(!QA.length)return CA("return new this.ctor");CA("var m=new this.ctor");for(var oA=0;oA<QA.length;++oA){var EA=QA[oA].resolve(),nA=gA.safeProp(EA.name);EA.map?(CA("if(d%s){",nA)('if(typeof d%s!=="object")',nA)("throw TypeError(%j)",EA.fullName+": object expected")("m%s={}",nA)("for(var ks=Object.keys(d%s),i=0;i<ks.length;++i){",nA),iA(CA,EA,oA,nA+"[ks[i]]")("}")("}")):EA.repeated?(CA("if(d%s){",nA)("if(!Array.isArray(d%s))",nA)("throw TypeError(%j)",EA.fullName+": array expected")("m%s=[]",nA)("for(var i=0;i<d%s.length;++i){",nA),iA(CA,EA,oA,nA+"[i]")("}")("}")):(EA.resolvedType instanceof tA||CA("if(d%s!=null){",nA),iA(CA,EA,oA,nA),EA.resolvedType instanceof tA||CA("}"))}return CA("return m")};function IA(BA,sA,QA,CA){if(sA.resolvedType)sA.resolvedType instanceof tA?BA("d%s=o.enums===String?(types[%i].values[m%s]===undefined?m%s:types[%i].values[m%s]):m%s",CA,QA,CA,CA,QA,CA,CA):BA("d%s=types[%i].toObject(m%s,o)",CA,QA,CA);else{var oA=!1;switch(sA.type){case"double":case"float":BA("d%s=o.json&&!isFinite(m%s)?String(m%s):m%s",CA,CA,CA,CA);break;case"uint64":oA=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":BA('if(typeof m%s==="number")',CA)("d%s=o.longs===String?String(m%s):m%s",CA,CA,CA)("else")("d%s=o.longs===String?util.Long.prototype.toString.call(m%s):o.longs===Number?new util.LongBits(m%s.low>>>0,m%s.high>>>0).toNumber(%s):m%s",CA,CA,CA,CA,oA?"true":"",CA);break;case"bytes":BA("d%s=o.bytes===String?util.base64.encode(m%s,0,m%s.length):o.bytes===Array?Array.prototype.slice.call(m%s):m%s",CA,CA,CA,CA,CA);break;default:BA("d%s=m%s",CA,CA);break}}return BA}AA.toObject=function(sA){var QA=sA.fieldsArray.slice().sort(gA.compareFieldsById);if(!QA.length)return gA.codegen()("return {}");for(var CA=gA.codegen(["m","o"],sA.name+"$toObject")("if(!o)")("o={}")("var d={}"),oA=[],EA=[],nA=[],cA=0;cA<QA.length;++cA)QA[cA].partOf||(QA[cA].resolve().repeated?oA:QA[cA].map?EA:nA).push(QA[cA]);if(oA.length){for(CA("if(o.arrays||o.defaults){"),cA=0;cA<oA.length;++cA)CA("d%s=[]",gA.safeProp(oA[cA].name));CA("}")}if(EA.length){for(CA("if(o.objects||o.defaults){"),cA=0;cA<EA.length;++cA)CA("d%s={}",gA.safeProp(EA[cA].name));CA("}")}if(nA.length){for(CA("if(o.defaults){"),cA=0;cA<nA.length;++cA){var uA=nA[cA],lA=gA.safeProp(uA.name);if(uA.resolvedType instanceof tA)CA("d%s=o.enums===String?%j:%j",lA,uA.resolvedType.valuesById[uA.typeDefault],uA.typeDefault);else if(uA.long)CA("if(util.Long){")("var n=new util.Long(%i,%i,%j)",uA.typeDefault.low,uA.typeDefault.high,uA.typeDefault.unsigned)("d%s=o.longs===String?n.toString():o.longs===Number?n.toNumber():n",lA)("}else")("d%s=o.longs===String?%j:%i",lA,uA.typeDefault.toString(),uA.typeDefault.toNumber());else if(uA.bytes){var hA="["+Array.prototype.slice.call(uA.typeDefault).join(",")+"]";CA("if(o.bytes===String)d%s=%j",lA,String.fromCharCode.apply(String,uA.typeDefault))("else{")("d%s=%s",lA,hA)("if(o.bytes!==Array)d%s=util.newBuffer(d%s)",lA,lA)("}")}else CA("d%s=%j",lA,uA.typeDefault)}CA("}")}var dA=!1;for(cA=0;cA<QA.length;++cA){var uA=QA[cA],DA=sA._fieldsArray.indexOf(uA),lA=gA.safeProp(uA.name);uA.map?(dA||(dA=!0,CA("var ks2")),CA("if(m%s&&(ks2=Object.keys(m%s)).length){",lA,lA)("d%s={}",lA)("for(var j=0;j<ks2.length;++j){"),IA(CA,uA,DA,lA+"[ks2[j]]")("}")):uA.repeated?(CA("if(m%s&&m%s.length){",lA,lA)("d%s=[]",lA)("for(var j=0;j<m%s.length;++j){",lA),IA(CA,uA,DA,lA+"[j]")("}")):(CA("if(m%s!=null&&m.hasOwnProperty(%j)){",lA,uA.name),IA(CA,uA,DA,lA),uA.partOf&&CA("if(o.oneofs)")("d%s=%j",gA.safeProp(uA.partOf.name),uA.name)),CA("}")}return CA("return d")}}(converter)),converter}var wrappers={};(function(eA){var AA=eA,tA=message;AA[".google.protobuf.Any"]={fromObject:function(gA){if(gA&&gA["@type"]){var iA=gA["@type"].substring(gA["@type"].lastIndexOf("/")+1),IA=this.lookup(iA);if(IA){var BA=gA["@type"].charAt(0)==="."?gA["@type"].slice(1):gA["@type"];return BA.indexOf("/")===-1&&(BA="/"+BA),this.create({type_url:BA,value:IA.encode(IA.fromObject(gA)).finish()})}}return this.fromObject(gA)},toObject:function(gA,iA){var IA="type.googleapis.com/",BA="",sA="";if(iA&&iA.json&&gA.type_url&&gA.value){sA=gA.type_url.substring(gA.type_url.lastIndexOf("/")+1),BA=gA.type_url.substring(0,gA.type_url.lastIndexOf("/")+1);var QA=this.lookup(sA);QA&&(gA=QA.decode(gA.value))}if(!(gA instanceof this.ctor)&&gA instanceof tA){var CA=gA.$type.toObject(gA,iA),oA=gA.$type.fullName[0]==="."?gA.$type.fullName.slice(1):gA.$type.fullName;return BA===""&&(BA=IA),sA=BA+oA,CA["@type"]=sA,CA}return this.toObject(gA,iA)}}})(wrappers);var type,hasRequiredType;function requireType(){if(hasRequiredType)return type;hasRequiredType=1,type=lA;var eA=requireNamespace();((lA.prototype=Object.create(eA.prototype)).constructor=lA).className="Type";var AA=require_enum(),tA=requireOneof(),gA=requireField(),iA=requireMapfield(),IA=requireService(),BA=message,sA=reader,QA=writer,CA=requireUtil(),oA=requireEncoder(),EA=requireDecoder(),nA=requireVerifier(),cA=requireConverter(),uA=wrappers;function lA(dA,DA){eA.call(this,dA,DA),this.fields={},this.oneofs=void 0,this.extensions=void 0,this.reserved=void 0,this.group=void 0,this._fieldsById=null,this._fieldsArray=null,this._oneofsArray=null,this._ctor=null}Object.defineProperties(lA.prototype,{fieldsById:{get:function(){if(this._fieldsById)return this._fieldsById;this._fieldsById={};for(var dA=Object.keys(this.fields),DA=0;DA<dA.length;++DA){var wA=this.fields[dA[DA]],RA=wA.id;if(this._fieldsById[RA])throw Error("duplicate id "+RA+" in "+this);this._fieldsById[RA]=wA}return this._fieldsById}},fieldsArray:{get:function(){return this._fieldsArray||(this._fieldsArray=CA.toArray(this.fields))}},oneofsArray:{get:function(){return this._oneofsArray||(this._oneofsArray=CA.toArray(this.oneofs))}},ctor:{get:function(){return this._ctor||(this.ctor=lA.generateConstructor(this)())},set:function(dA){var DA=dA.prototype;DA instanceof BA||((dA.prototype=new BA).constructor=dA,CA.merge(dA.prototype,DA)),dA.$type=dA.prototype.$type=this,CA.merge(dA,BA,!0),this._ctor=dA;for(var wA=0;wA<this.fieldsArray.length;++wA)this._fieldsArray[wA].resolve();var RA={};for(wA=0;wA<this.oneofsArray.length;++wA)RA[this._oneofsArray[wA].resolve().name]={get:CA.oneOfGetter(this._oneofsArray[wA].oneof),set:CA.oneOfSetter(this._oneofsArray[wA].oneof)};wA&&Object.defineProperties(dA.prototype,RA)}}}),lA.generateConstructor=function(DA){for(var wA=CA.codegen(["p"],DA.name),RA=0,GA;RA<DA.fieldsArray.length;++RA)(GA=DA._fieldsArray[RA]).map?wA("this%s={}",CA.safeProp(GA.name)):GA.repeated&&wA("this%s=[]",CA.safeProp(GA.name));return wA("if(p)for(var ks=Object.keys(p),i=0;i<ks.length;++i)if(p[ks[i]]!=null)")("this[ks[i]]=p[ks[i]]")};function hA(dA){return dA._fieldsById=dA._fieldsArray=dA._oneofsArray=null,delete dA.encode,delete dA.decode,delete dA.verify,dA}return lA.fromJSON=function(DA,wA){var RA=new lA(DA,wA.options);RA.extensions=wA.extensions,RA.reserved=wA.reserved;for(var GA=Object.keys(wA.fields),yA=0;yA<GA.length;++yA)RA.add((typeof wA.fields[GA[yA]].keyType<"u"?iA.fromJSON:gA.fromJSON)(GA[yA],wA.fields[GA[yA]]));if(wA.oneofs)for(GA=Object.keys(wA.oneofs),yA=0;yA<GA.length;++yA)RA.add(tA.fromJSON(GA[yA],wA.oneofs[GA[yA]]));if(wA.nested)for(GA=Object.keys(wA.nested),yA=0;yA<GA.length;++yA){var LA=wA.nested[GA[yA]];RA.add((LA.id!==void 0?gA.fromJSON:LA.fields!==void 0?lA.fromJSON:LA.values!==void 0?AA.fromJSON:LA.methods!==void 0?IA.fromJSON:eA.fromJSON)(GA[yA],LA))}return wA.extensions&&wA.extensions.length&&(RA.extensions=wA.extensions),wA.reserved&&wA.reserved.length&&(RA.reserved=wA.reserved),wA.group&&(RA.group=!0),wA.comment&&(RA.comment=wA.comment),RA},lA.prototype.toJSON=function(DA){var wA=eA.prototype.toJSON.call(this,DA),RA=DA?!!DA.keepComments:!1;return CA.toObject(["options",wA&&wA.options||void 0,"oneofs",eA.arrayToJSON(this.oneofsArray,DA),"fields",eA.arrayToJSON(this.fieldsArray.filter(function(GA){return!GA.declaringField}),DA)||{},"extensions",this.extensions&&this.extensions.length?this.extensions:void 0,"reserved",this.reserved&&this.reserved.length?this.reserved:void 0,"group",this.group||void 0,"nested",wA&&wA.nested||void 0,"comment",RA?this.comment:void 0])},lA.prototype.resolveAll=function(){for(var DA=this.fieldsArray,wA=0;wA<DA.length;)DA[wA++].resolve();var RA=this.oneofsArray;for(wA=0;wA<RA.length;)RA[wA++].resolve();return eA.prototype.resolveAll.call(this)},lA.prototype.get=function(DA){return this.fields[DA]||this.oneofs&&this.oneofs[DA]||this.nested&&this.nested[DA]||null},lA.prototype.add=function(DA){if(this.get(DA.name))throw Error("duplicate name '"+DA.name+"' in "+this);if(DA instanceof gA&&DA.extend===void 0){if(this._fieldsById?this._fieldsById[DA.id]:this.fieldsById[DA.id])throw Error("duplicate id "+DA.id+" in "+this);if(this.isReservedId(DA.id))throw Error("id "+DA.id+" is reserved in "+this);if(this.isReservedName(DA.name))throw Error("name '"+DA.name+"' is reserved in "+this);return DA.parent&&DA.parent.remove(DA),this.fields[DA.name]=DA,DA.message=this,DA.onAdd(this),hA(this)}return DA instanceof tA?(this.oneofs||(this.oneofs={}),this.oneofs[DA.name]=DA,DA.onAdd(this),hA(this)):eA.prototype.add.call(this,DA)},lA.prototype.remove=function(DA){if(DA instanceof gA&&DA.extend===void 0){if(!this.fields||this.fields[DA.name]!==DA)throw Error(DA+" is not a member of "+this);return delete this.fields[DA.name],DA.parent=null,DA.onRemove(this),hA(this)}if(DA instanceof tA){if(!this.oneofs||this.oneofs[DA.name]!==DA)throw Error(DA+" is not a member of "+this);return delete this.oneofs[DA.name],DA.parent=null,DA.onRemove(this),hA(this)}return eA.prototype.remove.call(this,DA)},lA.prototype.isReservedId=function(DA){return eA.isReservedId(this.reserved,DA)},lA.prototype.isReservedName=function(DA){return eA.isReservedName(this.reserved,DA)},lA.prototype.create=function(DA){return new this.ctor(DA)},lA.prototype.setup=function(){for(var DA=this.fullName,wA=[],RA=0;RA<this.fieldsArray.length;++RA)wA.push(this._fieldsArray[RA].resolve().resolvedType);this.encode=oA(this)({Writer:QA,types:wA,util:CA}),this.decode=EA(this)({Reader:sA,types:wA,util:CA}),this.verify=nA(this)({types:wA,util:CA}),this.fromObject=cA.fromObject(this)({types:wA,util:CA}),this.toObject=cA.toObject(this)({types:wA,util:CA});var GA=uA[DA];if(GA){var yA=Object.create(this);yA.fromObject=this.fromObject,this.fromObject=GA.fromObject.bind(yA),yA.toObject=this.toObject,this.toObject=GA.toObject.bind(yA)}return this},lA.prototype.encode=function(DA,wA){return this.setup().encode(DA,wA)},lA.prototype.encodeDelimited=function(DA,wA){return this.encode(DA,wA&&wA.len?wA.fork():wA).ldelim()},lA.prototype.decode=function(DA,wA){return this.setup().decode(DA,wA)},lA.prototype.decodeDelimited=function(DA){return DA instanceof sA||(DA=sA.create(DA)),this.decode(DA,DA.uint32())},lA.prototype.verify=function(DA){return this.setup().verify(DA)},lA.prototype.fromObject=function(DA){return this.setup().fromObject(DA)},lA.prototype.toObject=function(DA,wA){return this.setup().toObject(DA,wA)},lA.d=function(DA){return function(RA){CA.decorateType(RA,DA)}},type}var root,hasRequiredRoot;function requireRoot(){if(hasRequiredRoot)return root;hasRequiredRoot=1,root=QA;var eA=requireNamespace();((QA.prototype=Object.create(eA.prototype)).constructor=QA).className="Root";var AA=requireField(),tA=require_enum(),gA=requireOneof(),iA=requireUtil(),IA,BA,sA;function QA(nA){eA.call(this,"",nA),this.deferred=[],this.files=[]}QA.fromJSON=function(cA,uA){return uA||(uA=new QA),cA.options&&uA.setOptions(cA.options),uA.addJSON(cA.nested)},QA.prototype.resolvePath=iA.path.resolve,QA.prototype.fetch=iA.fetch;function CA(){}QA.prototype.load=function nA(cA,uA,lA){typeof uA=="function"&&(lA=uA,uA=void 0);var hA=this;if(!lA)return iA.asPromise(nA,hA,cA,uA);var dA=lA===CA;function DA(bA,SA){if(lA){if(dA)throw bA;var MA=lA;lA=null,MA(bA,SA)}}function wA(bA){var SA=bA.lastIndexOf("google/protobuf/");if(SA>-1){var MA=bA.substring(SA);if(MA in sA)return MA}return null}function RA(bA,SA){try{if(iA.isString(SA)&&SA.charAt(0)==="{"&&(SA=JSON.parse(SA)),!iA.isString(SA))hA.setOptions(SA.options).addJSON(SA.nested);else{BA.filename=bA;var MA=BA(SA,hA,uA),NA,FA=0;if(MA.imports)for(;FA<MA.imports.length;++FA)(NA=wA(MA.imports[FA])||hA.resolvePath(bA,MA.imports[FA]))&&GA(NA);if(MA.weakImports)for(FA=0;FA<MA.weakImports.length;++FA)(NA=wA(MA.weakImports[FA])||hA.resolvePath(bA,MA.weakImports[FA]))&&GA(NA,!0)}}catch(qA){DA(qA)}!dA&&!yA&&DA(null,hA)}function GA(bA,SA){if(bA=wA(bA)||bA,!(hA.files.indexOf(bA)>-1)){if(hA.files.push(bA),bA in sA){dA?RA(bA,sA[bA]):(++yA,setTimeout(function(){--yA,RA(bA,sA[bA])}));return}if(dA){var MA;try{MA=iA.fs.readFileSync(bA).toString("utf8")}catch(NA){SA||DA(NA);return}RA(bA,MA)}else++yA,hA.fetch(bA,function(NA,FA){if(--yA,!!lA){if(NA){SA?yA||DA(null,hA):DA(NA);return}RA(bA,FA)}})}}var yA=0;iA.isString(cA)&&(cA=[cA]);for(var LA=0,KA;LA<cA.length;++LA)(KA=hA.resolvePath("",cA[LA]))&&GA(KA);if(dA)return hA;yA||DA(null,hA)},QA.prototype.loadSync=function(cA,uA){if(!iA.isNode)throw Error("not supported");return this.load(cA,uA,CA)},QA.prototype.resolveAll=function(){if(this.deferred.length)throw Error("unresolvable extensions: "+this.deferred.map(function(cA){return"'extend "+cA.extend+"' in "+cA.parent.fullName}).join(", "));return eA.prototype.resolveAll.call(this)};var oA=/^[A-Z]/;function EA(nA,cA){var uA=cA.parent.lookup(cA.extend);if(uA){var lA=new AA(cA.fullName,cA.id,cA.type,cA.rule,void 0,cA.options);return uA.get(lA.name)||(lA.declaringField=cA,cA.extensionField=lA,uA.add(lA)),!0}return!1}return QA.prototype._handleAdd=function(cA){if(cA instanceof AA)cA.extend!==void 0&&!cA.extensionField&&(EA(this,cA)||this.deferred.push(cA));else if(cA instanceof tA)oA.test(cA.name)&&(cA.parent[cA.name]=cA.values);else if(!(cA instanceof gA)){if(cA instanceof IA)for(var uA=0;uA<this.deferred.length;)EA(this,this.deferred[uA])?this.deferred.splice(uA,1):++uA;for(var lA=0;lA<cA.nestedArray.length;++lA)this._handleAdd(cA._nestedArray[lA]);oA.test(cA.name)&&(cA.parent[cA.name]=cA)}},QA.prototype._handleRemove=function(cA){if(cA instanceof AA){if(cA.extend!==void 0)if(cA.extensionField)cA.extensionField.parent.remove(cA.extensionField),cA.extensionField=null;else{var uA=this.deferred.indexOf(cA);uA>-1&&this.deferred.splice(uA,1)}}else if(cA instanceof tA)oA.test(cA.name)&&delete cA.parent[cA.name];else if(cA instanceof eA){for(var lA=0;lA<cA.nestedArray.length;++lA)this._handleRemove(cA._nestedArray[lA]);oA.test(cA.name)&&delete cA.parent[cA.name]}},QA._configure=function(nA,cA,uA){IA=nA,BA=cA,sA=uA},root}var hasRequiredUtil;function requireUtil(){if(hasRequiredUtil)return util$1.exports;hasRequiredUtil=1;var eA=util$1.exports=requireMinimal(),AA=roots,tA,gA;eA.codegen=codegen_1,eA.fetch=fetch_1,eA.path=path,eA.fs=eA.inquire("fs"),eA.toArray=function(CA){if(CA){for(var oA=Object.keys(CA),EA=new Array(oA.length),nA=0;nA<oA.length;)EA[nA]=CA[oA[nA++]];return EA}return[]},eA.toObject=function(CA){for(var oA={},EA=0;EA<CA.length;){var nA=CA[EA++],cA=CA[EA++];cA!==void 0&&(oA[nA]=cA)}return oA};var iA=/\\/g,IA=/"/g;eA.isReserved=function(CA){return/^(?:do|if|in|for|let|new|try|var|case|else|enum|eval|false|null|this|true|void|with|break|catch|class|const|super|throw|while|yield|delete|export|import|public|return|static|switch|typeof|default|extends|finally|package|private|continue|debugger|function|arguments|interface|protected|implements|instanceof)$/.test(CA)},eA.safeProp=function(CA){return!/^[$\w_]+$/.test(CA)||eA.isReserved(CA)?'["'+CA.replace(iA,"\\\\").replace(IA,'\\"')+'"]':"."+CA},eA.ucFirst=function(CA){return CA.charAt(0).toUpperCase()+CA.substring(1)};var BA=/_([a-z])/g;eA.camelCase=function(CA){return CA.substring(0,1)+CA.substring(1).replace(BA,function(oA,EA){return EA.toUpperCase()})},eA.compareFieldsById=function(CA,oA){return CA.id-oA.id},eA.decorateType=function(CA,oA){if(CA.$type)return oA&&CA.$type.name!==oA&&(eA.decorateRoot.remove(CA.$type),CA.$type.name=oA,eA.decorateRoot.add(CA.$type)),CA.$type;tA||(tA=requireType());var EA=new tA(oA||CA.name);return eA.decorateRoot.add(EA),EA.ctor=CA,Object.defineProperty(CA,"$type",{value:EA,enumerable:!1}),Object.defineProperty(CA.prototype,"$type",{value:EA,enumerable:!1}),EA};var sA=0;return eA.decorateEnum=function(CA){if(CA.$type)return CA.$type;gA||(gA=require_enum());var oA=new gA("Enum"+sA++,CA);return eA.decorateRoot.add(oA),Object.defineProperty(CA,"$type",{value:oA,enumerable:!1}),oA},eA.setProperty=function(CA,oA,EA){function nA(cA,uA,lA){var hA=uA.shift();if(hA==="__proto__"||hA==="prototype")return cA;if(uA.length>0)cA[hA]=nA(cA[hA]||{},uA,lA);else{var dA=cA[hA];dA&&(lA=[].concat(dA).concat(lA)),cA[hA]=lA}return cA}if(typeof CA!="object")throw TypeError("dst must be an object");if(!oA)throw TypeError("path must be specified");return oA=oA.split("."),nA(CA,oA,EA)},Object.defineProperty(eA,"decorateRoot",{get:function(){return AA.decorated||(AA.decorated=new(requireRoot()))}}),util$1.exports}var object$3,hasRequiredObject;function requireObject(){if(hasRequiredObject)return object$3;hasRequiredObject=1,object$3=tA,tA.className="ReflectionObject";var eA=requireUtil(),AA;function tA(gA,iA){if(!eA.isString(gA))throw TypeError("name must be a string");if(iA&&!eA.isObject(iA))throw TypeError("options must be an object");this.options=iA,this.parsedOptions=null,this.name=gA,this.parent=null,this.resolved=!1,this.comment=null,this.filename=null}return Object.defineProperties(tA.prototype,{root:{get:function(){for(var gA=this;gA.parent!==null;)gA=gA.parent;return gA}},fullName:{get:function(){for(var gA=[this.name],iA=this.parent;iA;)gA.unshift(iA.name),iA=iA.parent;return gA.join(".")}}}),tA.prototype.toJSON=function(){throw Error()},tA.prototype.onAdd=function(iA){this.parent&&this.parent!==iA&&this.parent.remove(this),this.parent=iA,this.resolved=!1;var IA=iA.root;IA instanceof AA&&IA._handleAdd(this)},tA.prototype.onRemove=function(iA){var IA=iA.root;IA instanceof AA&&IA._handleRemove(this),this.parent=null,this.resolved=!1},tA.prototype.resolve=function(){return this.resolved?this:(this.root instanceof AA&&(this.resolved=!0),this)},tA.prototype.getOption=function(iA){if(this.options)return this.options[iA]},tA.prototype.setOption=function(iA,IA,BA){return(!BA||!this.options||this.options[iA]===void 0)&&((this.options||(this.options={}))[iA]=IA),this},tA.prototype.setParsedOption=function(iA,IA,BA){this.parsedOptions||(this.parsedOptions=[]);var sA=this.parsedOptions;if(BA){var QA=sA.find(function(EA){return Object.prototype.hasOwnProperty.call(EA,iA)});if(QA){var CA=QA[iA];eA.setProperty(CA,BA,IA)}else QA={},QA[iA]=eA.setProperty({},BA,IA),sA.push(QA)}else{var oA={};oA[iA]=IA,sA.push(oA)}return this},tA.prototype.setOptions=function(iA,IA){if(iA)for(var BA=Object.keys(iA),sA=0;sA<BA.length;++sA)this.setOption(BA[sA],iA[BA[sA]],IA);return this},tA.prototype.toString=function(){var iA=this.constructor.className,IA=this.fullName;return IA.length?iA+" "+IA:iA},tA._configure=function(gA){AA=gA},object$3}var _enum,hasRequired_enum;function require_enum(){if(hasRequired_enum)return _enum;hasRequired_enum=1,_enum=gA;var eA=requireObject();((gA.prototype=Object.create(eA.prototype)).constructor=gA).className="Enum";var AA=requireNamespace(),tA=requireUtil();function gA(iA,IA,BA,sA,QA,CA){if(eA.call(this,iA,BA),IA&&typeof IA!="object")throw TypeError("values must be an object");if(this.valuesById={},this.values=Object.create(this.valuesById),this.comment=sA,this.comments=QA||{},this.valuesOptions=CA,this.reserved=void 0,IA)for(var oA=Object.keys(IA),EA=0;EA<oA.length;++EA)typeof IA[oA[EA]]=="number"&&(this.valuesById[this.values[oA[EA]]=IA[oA[EA]]]=oA[EA])}return gA.fromJSON=function(IA,BA){var sA=new gA(IA,BA.values,BA.options,BA.comment,BA.comments);return sA.reserved=BA.reserved,sA},gA.prototype.toJSON=function(IA){var BA=IA?!!IA.keepComments:!1;return tA.toObject(["options",this.options,"valuesOptions",this.valuesOptions,"values",this.values,"reserved",this.reserved&&this.reserved.length?this.reserved:void 0,"comment",BA?this.comment:void 0,"comments",BA?this.comments:void 0])},gA.prototype.add=function(IA,BA,sA,QA){if(!tA.isString(IA))throw TypeError("name must be a string");if(!tA.isInteger(BA))throw TypeError("id must be an integer");if(this.values[IA]!==void 0)throw Error("duplicate name '"+IA+"' in "+this);if(this.isReservedId(BA))throw Error("id "+BA+" is reserved in "+this);if(this.isReservedName(IA))throw Error("name '"+IA+"' is reserved in "+this);if(this.valuesById[BA]!==void 0){if(!(this.options&&this.options.allow_alias))throw Error("duplicate id "+BA+" in "+this);this.values[IA]=BA}else this.valuesById[this.values[IA]=BA]=IA;return QA&&(this.valuesOptions===void 0&&(this.valuesOptions={}),this.valuesOptions[IA]=QA||null),this.comments[IA]=sA||null,this},gA.prototype.remove=function(IA){if(!tA.isString(IA))throw TypeError("name must be a string");var BA=this.values[IA];if(BA==null)throw Error("name '"+IA+"' does not exist in "+this);return delete this.valuesById[BA],delete this.values[IA],delete this.comments[IA],this.valuesOptions&&delete this.valuesOptions[IA],this},gA.prototype.isReservedId=function(IA){return AA.isReservedId(this.reserved,IA)},gA.prototype.isReservedName=function(IA){return AA.isReservedName(this.reserved,IA)},_enum}var encoder_1,hasRequiredEncoder;function requireEncoder(){if(hasRequiredEncoder)return encoder_1;hasRequiredEncoder=1,encoder_1=iA;var eA=require_enum(),AA=requireTypes(),tA=requireUtil();function gA(IA,BA,sA,QA){return BA.resolvedType.group?IA("types[%i].encode(%s,w.uint32(%i)).uint32(%i)",sA,QA,(BA.id<<3|3)>>>0,(BA.id<<3|4)>>>0):IA("types[%i].encode(%s,w.uint32(%i).fork()).ldelim()",sA,QA,(BA.id<<3|2)>>>0)}function iA(IA){for(var BA=tA.codegen(["m","w"],IA.name+"$encode")("if(!w)")("w=Writer.create()"),sA,QA,CA=IA.fieldsArray.slice().sort(tA.compareFieldsById),sA=0;sA<CA.length;++sA){var oA=CA[sA].resolve(),EA=IA._fieldsArray.indexOf(oA),nA=oA.resolvedType instanceof eA?"int32":oA.type,cA=AA.basic[nA];QA="m"+tA.safeProp(oA.name),oA.map?(BA("if(%s!=null&&Object.hasOwnProperty.call(m,%j)){",QA,oA.name)("for(var ks=Object.keys(%s),i=0;i<ks.length;++i){",QA)("w.uint32(%i).fork().uint32(%i).%s(ks[i])",(oA.id<<3|2)>>>0,8|AA.mapKey[oA.keyType],oA.keyType),cA===void 0?BA("types[%i].encode(%s[ks[i]],w.uint32(18).fork()).ldelim().ldelim()",EA,QA):BA(".uint32(%i).%s(%s[ks[i]]).ldelim()",16|cA,nA,QA),BA("}")("}")):oA.repeated?(BA("if(%s!=null&&%s.length){",QA,QA),oA.packed&&AA.packed[nA]!==void 0?BA("w.uint32(%i).fork()",(oA.id<<3|2)>>>0)("for(var i=0;i<%s.length;++i)",QA)("w.%s(%s[i])",nA,QA)("w.ldelim()"):(BA("for(var i=0;i<%s.length;++i)",QA),cA===void 0?gA(BA,oA,EA,QA+"[i]"):BA("w.uint32(%i).%s(%s[i])",(oA.id<<3|cA)>>>0,nA,QA)),BA("}")):(oA.optional&&BA("if(%s!=null&&Object.hasOwnProperty.call(m,%j))",QA,oA.name),cA===void 0?gA(BA,oA,EA,QA):BA("w.uint32(%i).%s(%s)",(oA.id<<3|cA)>>>0,nA,QA))}return BA("return w")}return encoder_1}var protobuf=indexLight.exports=indexMinimal;protobuf.build="light";function load$1(eA,AA,tA){return typeof AA=="function"?(tA=AA,AA=new protobuf.Root):AA||(AA=new protobuf.Root),AA.load(eA,tA)}protobuf.load=load$1;function loadSync(eA,AA){return AA||(AA=new protobuf.Root),AA.loadSync(eA)}protobuf.loadSync=loadSync,protobuf.encoder=requireEncoder(),protobuf.decoder=requireDecoder(),protobuf.verifier=requireVerifier(),protobuf.converter=requireConverter(),protobuf.ReflectionObject=requireObject(),protobuf.Namespace=requireNamespace(),protobuf.Root=requireRoot(),protobuf.Enum=require_enum(),protobuf.Type=requireType(),protobuf.Field=requireField(),protobuf.OneOf=requireOneof(),protobuf.MapField=requireMapfield(),protobuf.Service=requireService(),protobuf.Method=requireMethod(),protobuf.Message=message,protobuf.wrappers=wrappers,protobuf.types=requireTypes(),protobuf.util=requireUtil(),protobuf.ReflectionObject._configure(protobuf.Root),protobuf.Namespace._configure(protobuf.Type,protobuf.Service,protobuf.Enum),protobuf.Root._configure(protobuf.Type),protobuf.Field._configure(protobuf.Type);var indexLightExports=indexLight.exports,light=indexLightExports,protobufjs=getDefaultExportFromCjs(light);const proto_data={options:{syntax:"proto3",optimize_for:"LITE_RUNTIME"},nested:{nil:{nested:{xit:{nested:{proto:{nested:{MessageType:{values:{MessageType_FrameRequest:0,MessageType_FrameResponse:1,MessageType_FrameCache:2,MessageType_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,nA,cA){if(gA.isObject(oA)?(cA=EA,nA=oA,oA=EA=void 0):gA.isObject(EA)&&(cA=nA,nA=EA,EA=void 0),eA.call(this,sA,nA),!gA.isInteger(QA)||QA<0)throw TypeError("id must be a non-negative integer");if(!gA.isString(CA))throw TypeError("type must be a string");if(oA!==void 0&&!IA.test(oA=oA.toString().toLowerCase()))throw TypeError("rule must be a string rule");if(EA!==void 0&&!gA.isString(EA))throw TypeError("extend must be a string");oA==="proto3_optional"&&(oA="optional"),this.rule=oA&&oA!=="optional"?oA:void 0,this.type=CA,this.id=QA,this.extend=EA||void 0,this.required=oA==="required",this.optional=!this.required,this.repeated=oA==="repeated",this.map=!1,this.message=null,this.partOf=null,this.typeDefault=null,this.defaultValue=null,this.long=gA.Long?tA.long[CA]!==void 0:!1,this.bytes=CA==="bytes",this.resolvedType=null,this.extensionField=null,this.declaringField=null,this._packed=null,this.comment=cA}return Object.defineProperty(BA.prototype,"packed",{get:function(){return this._packed===null&&(this._packed=this.getOption("packed")!==!1),this._packed}}),BA.prototype.setOption=function(QA,CA,oA){return QA==="packed"&&(this._packed=null),eA.prototype.setOption.call(this,QA,CA,oA)},BA.prototype.toJSON=function(QA){var CA=QA?!!QA.keepComments:!1;return gA.toObject(["rule",this.rule!=="optional"&&this.rule||void 0,"type",this.type,"id",this.id,"extend",this.extend,"options",this.options,"comment",CA?this.comment:void 0])},BA.prototype.resolve=function(){if(this.resolved)return this;if((this.typeDefault=tA.defaults[this.type])===void 0?(this.resolvedType=(this.declaringField?this.declaringField.parent:this.parent).lookupTypeOrEnum(this.type),this.resolvedType instanceof iA?this.typeDefault=null:this.typeDefault=this.resolvedType.values[Object.keys(this.resolvedType.values)[0]]):this.options&&this.options.proto3_optional&&(this.typeDefault=null),this.options&&this.options.default!=null&&(this.typeDefault=this.options.default,this.resolvedType instanceof AA&&typeof this.typeDefault=="string"&&(this.typeDefault=this.resolvedType.values[this.typeDefault])),this.options&&((this.options.packed===!0||this.options.packed!==void 0&&this.resolvedType&&!(this.resolvedType instanceof AA))&&delete this.options.packed,Object.keys(this.options).length||(this.options=void 0)),this.long)this.typeDefault=gA.Long.fromNumber(this.typeDefault,this.type.charAt(0)==="u"),Object.freeze&&Object.freeze(this.typeDefault);else if(this.bytes&&typeof this.typeDefault=="string"){var QA;gA.base64.test(this.typeDefault)?gA.base64.decode(this.typeDefault,QA=gA.newBuffer(gA.base64.length(this.typeDefault)),0):gA.utf8.write(this.typeDefault,QA=gA.newBuffer(gA.utf8.length(this.typeDefault)),0),this.typeDefault=QA}return this.map?this.defaultValue=gA.emptyObject:this.repeated?this.defaultValue=gA.emptyArray:this.defaultValue=this.typeDefault,this.parent instanceof iA&&(this.parent.ctor.prototype[this.name]=this.defaultValue),eA.prototype.resolve.call(this)},BA.d=function(QA,CA,oA,EA){return typeof CA=="function"?CA=gA.decorateType(CA).name:CA&&typeof CA=="object"&&(CA=gA.decorateEnum(CA).name),function(cA,uA){gA.decorateType(cA.constructor).add(new BA(uA,QA,CA,oA,{default:EA}))}},BA._configure=function(QA){iA=QA},field}var oneof,hasRequiredOneof;function requireOneof(){if(hasRequiredOneof)return oneof;hasRequiredOneof=1,oneof=gA;var eA=requireObject();((gA.prototype=Object.create(eA.prototype)).constructor=gA).className="OneOf";var AA=requireField(),tA=requireUtil();function gA(IA,BA,sA,QA){if(Array.isArray(BA)||(sA=BA,BA=void 0),eA.call(this,IA,sA),!(BA===void 0||Array.isArray(BA)))throw TypeError("fieldNames must be an Array");this.oneof=BA||[],this.fieldsArray=[],this.comment=QA}gA.fromJSON=function(BA,sA){return new gA(BA,sA.oneof,sA.options,sA.comment)},gA.prototype.toJSON=function(BA){var sA=BA?!!BA.keepComments:!1;return tA.toObject(["options",this.options,"oneof",this.oneof,"comment",sA?this.comment:void 0])};function iA(IA){if(IA.parent)for(var BA=0;BA<IA.fieldsArray.length;++BA)IA.fieldsArray[BA].parent||IA.parent.add(IA.fieldsArray[BA])}return gA.prototype.add=function(BA){if(!(BA instanceof AA))throw TypeError("field must be a Field");return BA.parent&&BA.parent!==this.parent&&BA.parent.remove(BA),this.oneof.push(BA.name),this.fieldsArray.push(BA),BA.partOf=this,iA(this),this},gA.prototype.remove=function(BA){if(!(BA instanceof AA))throw TypeError("field must be a Field");var sA=this.fieldsArray.indexOf(BA);if(sA<0)throw Error(BA+" is not a member of "+this);return this.fieldsArray.splice(sA,1),sA=this.oneof.indexOf(BA.name),sA>-1&&this.oneof.splice(sA,1),BA.partOf=null,this},gA.prototype.onAdd=function(BA){eA.prototype.onAdd.call(this,BA);for(var sA=this,QA=0;QA<this.oneof.length;++QA){var CA=BA.get(this.oneof[QA]);CA&&!CA.partOf&&(CA.partOf=sA,sA.fieldsArray.push(CA))}iA(this)},gA.prototype.onRemove=function(BA){for(var sA=0,QA;sA<this.fieldsArray.length;++sA)(QA=this.fieldsArray[sA]).parent&&QA.parent.remove(QA);eA.prototype.onRemove.call(this,BA)},gA.d=function(){for(var BA=new Array(arguments.length),sA=0;sA<arguments.length;)BA[sA]=arguments[sA++];return function(CA,oA){tA.decorateType(CA.constructor).add(new gA(oA,BA)),Object.defineProperty(CA,oA,{get:tA.oneOfGetter(BA),set:tA.oneOfSetter(BA)})}},oneof}var namespace,hasRequiredNamespace;function requireNamespace(){if(hasRequiredNamespace)return namespace;hasRequiredNamespace=1,namespace=QA;var eA=requireObject();((QA.prototype=Object.create(eA.prototype)).constructor=QA).className="Namespace";var AA=requireField(),tA=requireUtil(),gA=requireOneof(),iA,IA,BA;QA.fromJSON=function(EA,nA){return new QA(EA,nA.options).addJSON(nA.nested)};function sA(oA,EA){if(oA&&oA.length){for(var nA={},cA=0;cA<oA.length;++cA)nA[oA[cA].name]=oA[cA].toJSON(EA);return nA}}QA.arrayToJSON=sA,QA.isReservedId=function(EA,nA){if(EA){for(var cA=0;cA<EA.length;++cA)if(typeof EA[cA]!="string"&&EA[cA][0]<=nA&&EA[cA][1]>nA)return!0}return!1},QA.isReservedName=function(EA,nA){if(EA){for(var cA=0;cA<EA.length;++cA)if(EA[cA]===nA)return!0}return!1};function QA(oA,EA){eA.call(this,oA,EA),this.nested=void 0,this._nestedArray=null}function CA(oA){return oA._nestedArray=null,oA}return Object.defineProperty(QA.prototype,"nestedArray",{get:function(){return this._nestedArray||(this._nestedArray=tA.toArray(this.nested))}}),QA.prototype.toJSON=function(EA){return tA.toObject(["options",this.options,"nested",sA(this.nestedArray,EA)])},QA.prototype.addJSON=function(EA){var nA=this;if(EA)for(var cA=Object.keys(EA),uA=0,lA;uA<cA.length;++uA)lA=EA[cA[uA]],nA.add((lA.fields!==void 0?iA.fromJSON:lA.values!==void 0?BA.fromJSON:lA.methods!==void 0?IA.fromJSON:lA.id!==void 0?AA.fromJSON:QA.fromJSON)(cA[uA],lA));return this},QA.prototype.get=function(EA){return this.nested&&this.nested[EA]||null},QA.prototype.getEnum=function(EA){if(this.nested&&this.nested[EA]instanceof BA)return this.nested[EA].values;throw Error("no such enum: "+EA)},QA.prototype.add=function(EA){if(!(EA instanceof AA&&EA.extend!==void 0||EA instanceof iA||EA instanceof gA||EA instanceof BA||EA instanceof IA||EA instanceof QA))throw TypeError("object must be a valid nested object");if(!this.nested)this.nested={};else{var nA=this.get(EA.name);if(nA)if(nA instanceof QA&&EA instanceof QA&&!(nA instanceof iA||nA instanceof IA)){for(var cA=nA.nestedArray,uA=0;uA<cA.length;++uA)EA.add(cA[uA]);this.remove(nA),this.nested||(this.nested={}),EA.setOptions(nA.options,!0)}else throw Error("duplicate name '"+EA.name+"' in "+this)}return this.nested[EA.name]=EA,EA.onAdd(this),CA(this)},QA.prototype.remove=function(EA){if(!(EA instanceof eA))throw TypeError("object must be a ReflectionObject");if(EA.parent!==this)throw Error(EA+" is not a member of "+this);return delete this.nested[EA.name],Object.keys(this.nested).length||(this.nested=void 0),EA.onRemove(this),CA(this)},QA.prototype.define=function(EA,nA){if(tA.isString(EA))EA=EA.split(".");else if(!Array.isArray(EA))throw TypeError("illegal path");if(EA&&EA.length&&EA[0]==="")throw Error("path must be relative");for(var cA=this;EA.length>0;){var uA=EA.shift();if(cA.nested&&cA.nested[uA]){if(cA=cA.nested[uA],!(cA instanceof QA))throw Error("path conflicts with non-namespace objects")}else cA.add(cA=new QA(uA))}return nA&&cA.addJSON(nA),cA},QA.prototype.resolveAll=function(){for(var EA=this.nestedArray,nA=0;nA<EA.length;)EA[nA]instanceof QA?EA[nA++].resolveAll():EA[nA++].resolve();return this.resolve()},QA.prototype.lookup=function(EA,nA,cA){if(typeof nA=="boolean"?(cA=nA,nA=void 0):nA&&!Array.isArray(nA)&&(nA=[nA]),tA.isString(EA)&&EA.length){if(EA===".")return this.root;EA=EA.split(".")}else if(!EA.length)return this;if(EA[0]==="")return this.root.lookup(EA.slice(1),nA);var uA=this.get(EA[0]);if(uA){if(EA.length===1){if(!nA||nA.indexOf(uA.constructor)>-1)return uA}else if(uA instanceof QA&&(uA=uA.lookup(EA.slice(1),nA,!0)))return uA}else for(var lA=0;lA<this.nestedArray.length;++lA)if(this._nestedArray[lA]instanceof QA&&(uA=this._nestedArray[lA].lookup(EA,nA,!0)))return uA;return this.parent===null||cA?null:this.parent.lookup(EA,nA)},QA.prototype.lookupType=function(EA){var nA=this.lookup(EA,[iA]);if(!nA)throw Error("no such type: "+EA);return nA},QA.prototype.lookupEnum=function(EA){var nA=this.lookup(EA,[BA]);if(!nA)throw Error("no such Enum '"+EA+"' in "+this);return nA},QA.prototype.lookupTypeOrEnum=function(EA){var nA=this.lookup(EA,[iA,BA]);if(!nA)throw Error("no such Type or Enum '"+EA+"' in "+this);return nA},QA.prototype.lookupService=function(EA){var nA=this.lookup(EA,[IA]);if(!nA)throw Error("no such Service '"+EA+"' in "+this);return nA},QA._configure=function(oA,EA,nA){iA=oA,IA=EA,BA=nA},namespace}var mapfield,hasRequiredMapfield;function requireMapfield(){if(hasRequiredMapfield)return mapfield;hasRequiredMapfield=1,mapfield=gA;var eA=requireField();((gA.prototype=Object.create(eA.prototype)).constructor=gA).className="MapField";var AA=requireTypes(),tA=requireUtil();function gA(iA,IA,BA,sA,QA,CA){if(eA.call(this,iA,IA,sA,void 0,void 0,QA,CA),!tA.isString(BA))throw TypeError("keyType must be a string");this.keyType=BA,this.resolvedKeyType=null,this.map=!0}return gA.fromJSON=function(IA,BA){return new gA(IA,BA.id,BA.keyType,BA.type,BA.options,BA.comment)},gA.prototype.toJSON=function(IA){var BA=IA?!!IA.keepComments:!1;return tA.toObject(["keyType",this.keyType,"type",this.type,"id",this.id,"extend",this.extend,"options",this.options,"comment",BA?this.comment:void 0])},gA.prototype.resolve=function(){if(this.resolved)return this;if(AA.mapKey[this.keyType]===void 0)throw Error("invalid key type: "+this.keyType);return eA.prototype.resolve.call(this)},gA.d=function(IA,BA,sA){return typeof sA=="function"?sA=tA.decorateType(sA).name:sA&&typeof sA=="object"&&(sA=tA.decorateEnum(sA).name),function(CA,oA){tA.decorateType(CA.constructor).add(new gA(oA,IA,BA,sA))}},mapfield}var method$1,hasRequiredMethod;function requireMethod(){if(hasRequiredMethod)return method$1;hasRequiredMethod=1,method$1=tA;var eA=requireObject();((tA.prototype=Object.create(eA.prototype)).constructor=tA).className="Method";var AA=requireUtil();function tA(gA,iA,IA,BA,sA,QA,CA,oA,EA){if(AA.isObject(sA)?(CA=sA,sA=QA=void 0):AA.isObject(QA)&&(CA=QA,QA=void 0),!(iA===void 0||AA.isString(iA)))throw TypeError("type must be a string");if(!AA.isString(IA))throw TypeError("requestType must be a string");if(!AA.isString(BA))throw TypeError("responseType must be a string");eA.call(this,gA,CA),this.type=iA||"rpc",this.requestType=IA,this.requestStream=sA?!0:void 0,this.responseType=BA,this.responseStream=QA?!0:void 0,this.resolvedRequestType=null,this.resolvedResponseType=null,this.comment=oA,this.parsedOptions=EA}return tA.fromJSON=function(iA,IA){return new tA(iA,IA.type,IA.requestType,IA.responseType,IA.requestStream,IA.responseStream,IA.options,IA.comment,IA.parsedOptions)},tA.prototype.toJSON=function(iA){var IA=iA?!!iA.keepComments:!1;return AA.toObject(["type",this.type!=="rpc"&&this.type||void 0,"requestType",this.requestType,"requestStream",this.requestStream,"responseType",this.responseType,"responseStream",this.responseStream,"options",this.options,"comment",IA?this.comment:void 0,"parsedOptions",this.parsedOptions])},tA.prototype.resolve=function(){return this.resolved?this:(this.resolvedRequestType=this.parent.lookupType(this.requestType),this.resolvedResponseType=this.parent.lookupType(this.responseType),eA.prototype.resolve.call(this))},method$1}var service,hasRequiredService;function requireService(){if(hasRequiredService)return service;hasRequiredService=1,service=iA;var eA=requireNamespace();((iA.prototype=Object.create(eA.prototype)).constructor=iA).className="Service";var AA=requireMethod(),tA=requireUtil(),gA=rpc;function iA(BA,sA){eA.call(this,BA,sA),this.methods={},this._methodsArray=null}iA.fromJSON=function(sA,QA){var CA=new iA(sA,QA.options);if(QA.methods)for(var oA=Object.keys(QA.methods),EA=0;EA<oA.length;++EA)CA.add(AA.fromJSON(oA[EA],QA.methods[oA[EA]]));return QA.nested&&CA.addJSON(QA.nested),CA.comment=QA.comment,CA},iA.prototype.toJSON=function(sA){var QA=eA.prototype.toJSON.call(this,sA),CA=sA?!!sA.keepComments:!1;return tA.toObject(["options",QA&&QA.options||void 0,"methods",eA.arrayToJSON(this.methodsArray,sA)||{},"nested",QA&&QA.nested||void 0,"comment",CA?this.comment:void 0])},Object.defineProperty(iA.prototype,"methodsArray",{get:function(){return this._methodsArray||(this._methodsArray=tA.toArray(this.methods))}});function IA(BA){return BA._methodsArray=null,BA}return iA.prototype.get=function(sA){return this.methods[sA]||eA.prototype.get.call(this,sA)},iA.prototype.resolveAll=function(){for(var sA=this.methodsArray,QA=0;QA<sA.length;++QA)sA[QA].resolve();return eA.prototype.resolve.call(this)},iA.prototype.add=function(sA){if(this.get(sA.name))throw Error("duplicate name '"+sA.name+"' in "+this);return sA instanceof AA?(this.methods[sA.name]=sA,sA.parent=this,IA(this)):eA.prototype.add.call(this,sA)},iA.prototype.remove=function(sA){if(sA instanceof AA){if(this.methods[sA.name]!==sA)throw Error(sA+" is not a member of "+this);return delete this.methods[sA.name],sA.parent=null,IA(this)}return eA.prototype.remove.call(this,sA)},iA.prototype.create=function(sA,QA,CA){for(var oA=new gA.Service(sA,QA,CA),EA=0,nA;EA<this.methodsArray.length;++EA){var cA=tA.lcFirst((nA=this._methodsArray[EA]).resolve().name).replace(/[^$\w_]/g,"");oA[cA]=tA.codegen(["r","c"],tA.isReserved(cA)?cA+"_":cA)("return this.rpcCall(m,q,s,r,c)")({m:nA,q:nA.resolvedRequestType.ctor,s:nA.resolvedResponseType.ctor})}return oA},service}var message=Message,util=requireMinimal();function Message(eA){if(eA)for(var AA=Object.keys(eA),tA=0;tA<AA.length;++tA)this[AA[tA]]=eA[AA[tA]]}Message.create=function eA(AA){return this.$type.create(AA)},Message.encode=function eA(AA,tA){return this.$type.encode(AA,tA)},Message.encodeDelimited=function eA(AA,tA){return this.$type.encodeDelimited(AA,tA)},Message.decode=function eA(AA){return this.$type.decode(AA)},Message.decodeDelimited=function eA(AA){return this.$type.decodeDelimited(AA)},Message.verify=function eA(AA){return this.$type.verify(AA)},Message.fromObject=function eA(AA){return this.$type.fromObject(AA)},Message.toObject=function eA(AA,tA){return this.$type.toObject(AA,tA)},Message.prototype.toJSON=function eA(){return this.$type.toObject(this,util.toJSONOptions)};var decoder_1,hasRequiredDecoder;function requireDecoder(){if(hasRequiredDecoder)return decoder_1;hasRequiredDecoder=1,decoder_1=iA;var eA=require_enum(),AA=requireTypes(),tA=requireUtil();function gA(IA){return"missing required '"+IA.name+"'"}function iA(IA){var BA=tA.codegen(["r","l"],IA.name+"$decode")("if(!(r instanceof Reader))")("r=Reader.create(r)")("var c=l===undefined?r.len:r.pos+l,m=new this.ctor"+(IA.fieldsArray.filter(function(nA){return nA.map}).length?",k,value":""))("while(r.pos<c){")("var t=r.uint32()");IA.group&&BA("if((t&7)===4)")("break"),BA("switch(t>>>3){");for(var sA=0;sA<IA.fieldsArray.length;++sA){var QA=IA._fieldsArray[sA].resolve(),CA=QA.resolvedType instanceof eA?"int32":QA.type,oA="m"+tA.safeProp(QA.name);BA("case %i: {",QA.id),QA.map?(BA("if(%s===util.emptyObject)",oA)("%s={}",oA)("var c2 = r.uint32()+r.pos"),AA.defaults[QA.keyType]!==void 0?BA("k=%j",AA.defaults[QA.keyType]):BA("k=null"),AA.defaults[CA]!==void 0?BA("value=%j",AA.defaults[CA]):BA("value=null"),BA("while(r.pos<c2){")("var tag2=r.uint32()")("switch(tag2>>>3){")("case 1: k=r.%s(); break",QA.keyType)("case 2:"),AA.basic[CA]===void 0?BA("value=types[%i].decode(r,r.uint32())",sA):BA("value=r.%s()",CA),BA("break")("default:")("r.skipType(tag2&7)")("break")("}")("}"),AA.long[QA.keyType]!==void 0?BA('%s[typeof k==="object"?util.longToHash(k):k]=value',oA):BA("%s[k]=value",oA)):QA.repeated?(BA("if(!(%s&&%s.length))",oA,oA)("%s=[]",oA),AA.packed[CA]!==void 0&&BA("if((t&7)===2){")("var c2=r.uint32()+r.pos")("while(r.pos<c2)")("%s.push(r.%s())",oA,CA)("}else"),AA.basic[CA]===void 0?BA(QA.resolvedType.group?"%s.push(types[%i].decode(r))":"%s.push(types[%i].decode(r,r.uint32()))",oA,sA):BA("%s.push(r.%s())",oA,CA)):AA.basic[CA]===void 0?BA(QA.resolvedType.group?"%s=types[%i].decode(r)":"%s=types[%i].decode(r,r.uint32())",oA,sA):BA("%s=r.%s()",oA,CA),BA("break")("}")}for(BA("default:")("r.skipType(t&7)")("break")("}")("}"),sA=0;sA<IA._fieldsArray.length;++sA){var EA=IA._fieldsArray[sA];EA.required&&BA("if(!m.hasOwnProperty(%j))",EA.name)("throw util.ProtocolError(%j,{instance:m})",gA(EA))}return BA("return m")}return decoder_1}var verifier_1,hasRequiredVerifier;function requireVerifier(){if(hasRequiredVerifier)return verifier_1;hasRequiredVerifier=1,verifier_1=IA;var eA=require_enum(),AA=requireUtil();function tA(BA,sA){return BA.name+": "+sA+(BA.repeated&&sA!=="array"?"[]":BA.map&&sA!=="object"?"{k:"+BA.keyType+"}":"")+" expected"}function gA(BA,sA,QA,CA){if(sA.resolvedType)if(sA.resolvedType instanceof eA){BA("switch(%s){",CA)("default:")("return%j",tA(sA,"enum value"));for(var oA=Object.keys(sA.resolvedType.values),EA=0;EA<oA.length;++EA)BA("case %i:",sA.resolvedType.values[oA[EA]]);BA("break")("}")}else BA("{")("var e=types[%i].verify(%s);",QA,CA)("if(e)")("return%j+e",sA.name+".")("}");else switch(sA.type){case"int32":case"uint32":case"sint32":case"fixed32":case"sfixed32":BA("if(!util.isInteger(%s))",CA)("return%j",tA(sA,"integer"));break;case"int64":case"uint64":case"sint64":case"fixed64":case"sfixed64":BA("if(!util.isInteger(%s)&&!(%s&&util.isInteger(%s.low)&&util.isInteger(%s.high)))",CA,CA,CA,CA)("return%j",tA(sA,"integer|Long"));break;case"float":case"double":BA('if(typeof %s!=="number")',CA)("return%j",tA(sA,"number"));break;case"bool":BA('if(typeof %s!=="boolean")',CA)("return%j",tA(sA,"boolean"));break;case"string":BA("if(!util.isString(%s))",CA)("return%j",tA(sA,"string"));break;case"bytes":BA('if(!(%s&&typeof %s.length==="number"||util.isString(%s)))',CA,CA,CA)("return%j",tA(sA,"buffer"));break}return BA}function iA(BA,sA,QA){switch(sA.keyType){case"int32":case"uint32":case"sint32":case"fixed32":case"sfixed32":BA("if(!util.key32Re.test(%s))",QA)("return%j",tA(sA,"integer key"));break;case"int64":case"uint64":case"sint64":case"fixed64":case"sfixed64":BA("if(!util.key64Re.test(%s))",QA)("return%j",tA(sA,"integer|Long key"));break;case"bool":BA("if(!util.key2Re.test(%s))",QA)("return%j",tA(sA,"boolean key"));break}return BA}function IA(BA){var sA=AA.codegen(["m"],BA.name+"$verify")('if(typeof m!=="object"||m===null)')("return%j","object expected"),QA=BA.oneofsArray,CA={};QA.length&&sA("var p={}");for(var oA=0;oA<BA.fieldsArray.length;++oA){var EA=BA._fieldsArray[oA].resolve(),nA="m"+AA.safeProp(EA.name);if(EA.optional&&sA("if(%s!=null&&m.hasOwnProperty(%j)){",nA,EA.name),EA.map)sA("if(!util.isObject(%s))",nA)("return%j",tA(EA,"object"))("var k=Object.keys(%s)",nA)("for(var i=0;i<k.length;++i){"),iA(sA,EA,"k[i]"),gA(sA,EA,oA,nA+"[k[i]]")("}");else if(EA.repeated)sA("if(!Array.isArray(%s))",nA)("return%j",tA(EA,"array"))("for(var i=0;i<%s.length;++i){",nA),gA(sA,EA,oA,nA+"[i]")("}");else{if(EA.partOf){var cA=AA.safeProp(EA.partOf.name);CA[EA.partOf.name]===1&&sA("if(p%s===1)",cA)("return%j",EA.partOf.name+": multiple values"),CA[EA.partOf.name]=1,sA("p%s=1",cA)}gA(sA,EA,oA,nA)}EA.optional&&sA("}")}return sA("return null")}return verifier_1}var converter={},hasRequiredConverter;function requireConverter(){return hasRequiredConverter||(hasRequiredConverter=1,function(eA){var AA=eA,tA=require_enum(),gA=requireUtil();function iA(BA,sA,QA,CA){var oA=!1;if(sA.resolvedType)if(sA.resolvedType instanceof tA){BA("switch(d%s){",CA);for(var EA=sA.resolvedType.values,nA=Object.keys(EA),cA=0;cA<nA.length;++cA)EA[nA[cA]]===sA.typeDefault&&!oA&&(BA("default:")('if(typeof(d%s)==="number"){m%s=d%s;break}',CA,CA,CA),sA.repeated||BA("break"),oA=!0),BA("case%j:",nA[cA])("case %i:",EA[nA[cA]])("m%s=%j",CA,EA[nA[cA]])("break");BA("}")}else BA('if(typeof d%s!=="object")',CA)("throw TypeError(%j)",sA.fullName+": object expected")("m%s=types[%i].fromObject(d%s)",CA,QA,CA);else{var uA=!1;switch(sA.type){case"double":case"float":BA("m%s=Number(d%s)",CA,CA);break;case"uint32":case"fixed32":BA("m%s=d%s>>>0",CA,CA);break;case"int32":case"sint32":case"sfixed32":BA("m%s=d%s|0",CA,CA);break;case"uint64":uA=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":BA("if(util.Long)")("(m%s=util.Long.fromValue(d%s)).unsigned=%j",CA,CA,uA)('else if(typeof d%s==="string")',CA)("m%s=parseInt(d%s,10)",CA,CA)('else if(typeof d%s==="number")',CA)("m%s=d%s",CA,CA)('else if(typeof d%s==="object")',CA)("m%s=new util.LongBits(d%s.low>>>0,d%s.high>>>0).toNumber(%s)",CA,CA,CA,uA?"true":"");break;case"bytes":BA('if(typeof d%s==="string")',CA)("util.base64.decode(d%s,m%s=util.newBuffer(util.base64.length(d%s)),0)",CA,CA,CA)("else if(d%s.length >= 0)",CA)("m%s=d%s",CA,CA);break;case"string":BA("m%s=String(d%s)",CA,CA);break;case"bool":BA("m%s=Boolean(d%s)",CA,CA);break}}return BA}AA.fromObject=function(sA){var QA=sA.fieldsArray,CA=gA.codegen(["d"],sA.name+"$fromObject")("if(d instanceof this.ctor)")("return d");if(!QA.length)return CA("return new this.ctor");CA("var m=new this.ctor");for(var oA=0;oA<QA.length;++oA){var EA=QA[oA].resolve(),nA=gA.safeProp(EA.name);EA.map?(CA("if(d%s){",nA)('if(typeof d%s!=="object")',nA)("throw TypeError(%j)",EA.fullName+": object expected")("m%s={}",nA)("for(var ks=Object.keys(d%s),i=0;i<ks.length;++i){",nA),iA(CA,EA,oA,nA+"[ks[i]]")("}")("}")):EA.repeated?(CA("if(d%s){",nA)("if(!Array.isArray(d%s))",nA)("throw TypeError(%j)",EA.fullName+": array expected")("m%s=[]",nA)("for(var i=0;i<d%s.length;++i){",nA),iA(CA,EA,oA,nA+"[i]")("}")("}")):(EA.resolvedType instanceof tA||CA("if(d%s!=null){",nA),iA(CA,EA,oA,nA),EA.resolvedType instanceof tA||CA("}"))}return CA("return m")};function IA(BA,sA,QA,CA){if(sA.resolvedType)sA.resolvedType instanceof tA?BA("d%s=o.enums===String?(types[%i].values[m%s]===undefined?m%s:types[%i].values[m%s]):m%s",CA,QA,CA,CA,QA,CA,CA):BA("d%s=types[%i].toObject(m%s,o)",CA,QA,CA);else{var oA=!1;switch(sA.type){case"double":case"float":BA("d%s=o.json&&!isFinite(m%s)?String(m%s):m%s",CA,CA,CA,CA);break;case"uint64":oA=!0;case"int64":case"sint64":case"fixed64":case"sfixed64":BA('if(typeof m%s==="number")',CA)("d%s=o.longs===String?String(m%s):m%s",CA,CA,CA)("else")("d%s=o.longs===String?util.Long.prototype.toString.call(m%s):o.longs===Number?new util.LongBits(m%s.low>>>0,m%s.high>>>0).toNumber(%s):m%s",CA,CA,CA,CA,oA?"true":"",CA);break;case"bytes":BA("d%s=o.bytes===String?util.base64.encode(m%s,0,m%s.length):o.bytes===Array?Array.prototype.slice.call(m%s):m%s",CA,CA,CA,CA,CA);break;default:BA("d%s=m%s",CA,CA);break}}return BA}AA.toObject=function(sA){var QA=sA.fieldsArray.slice().sort(gA.compareFieldsById);if(!QA.length)return gA.codegen()("return {}");for(var CA=gA.codegen(["m","o"],sA.name+"$toObject")("if(!o)")("o={}")("var d={}"),oA=[],EA=[],nA=[],cA=0;cA<QA.length;++cA)QA[cA].partOf||(QA[cA].resolve().repeated?oA:QA[cA].map?EA:nA).push(QA[cA]);if(oA.length){for(CA("if(o.arrays||o.defaults){"),cA=0;cA<oA.length;++cA)CA("d%s=[]",gA.safeProp(oA[cA].name));CA("}")}if(EA.length){for(CA("if(o.objects||o.defaults){"),cA=0;cA<EA.length;++cA)CA("d%s={}",gA.safeProp(EA[cA].name));CA("}")}if(nA.length){for(CA("if(o.defaults){"),cA=0;cA<nA.length;++cA){var uA=nA[cA],lA=gA.safeProp(uA.name);if(uA.resolvedType instanceof tA)CA("d%s=o.enums===String?%j:%j",lA,uA.resolvedType.valuesById[uA.typeDefault],uA.typeDefault);else if(uA.long)CA("if(util.Long){")("var n=new util.Long(%i,%i,%j)",uA.typeDefault.low,uA.typeDefault.high,uA.typeDefault.unsigned)("d%s=o.longs===String?n.toString():o.longs===Number?n.toNumber():n",lA)("}else")("d%s=o.longs===String?%j:%i",lA,uA.typeDefault.toString(),uA.typeDefault.toNumber());else if(uA.bytes){var hA="["+Array.prototype.slice.call(uA.typeDefault).join(",")+"]";CA("if(o.bytes===String)d%s=%j",lA,String.fromCharCode.apply(String,uA.typeDefault))("else{")("d%s=%s",lA,hA)("if(o.bytes!==Array)d%s=util.newBuffer(d%s)",lA,lA)("}")}else CA("d%s=%j",lA,uA.typeDefault)}CA("}")}var dA=!1;for(cA=0;cA<QA.length;++cA){var uA=QA[cA],DA=sA._fieldsArray.indexOf(uA),lA=gA.safeProp(uA.name);uA.map?(dA||(dA=!0,CA("var ks2")),CA("if(m%s&&(ks2=Object.keys(m%s)).length){",lA,lA)("d%s={}",lA)("for(var j=0;j<ks2.length;++j){"),IA(CA,uA,DA,lA+"[ks2[j]]")("}")):uA.repeated?(CA("if(m%s&&m%s.length){",lA,lA)("d%s=[]",lA)("for(var j=0;j<m%s.length;++j){",lA),IA(CA,uA,DA,lA+"[j]")("}")):(CA("if(m%s!=null&&m.hasOwnProperty(%j)){",lA,uA.name),IA(CA,uA,DA,lA),uA.partOf&&CA("if(o.oneofs)")("d%s=%j",gA.safeProp(uA.partOf.name),uA.name)),CA("}")}return CA("return d")}}(converter)),converter}var wrappers={};(function(eA){var AA=eA,tA=message;AA[".google.protobuf.Any"]={fromObject:function(gA){if(gA&&gA["@type"]){var iA=gA["@type"].substring(gA["@type"].lastIndexOf("/")+1),IA=this.lookup(iA);if(IA){var BA=gA["@type"].charAt(0)==="."?gA["@type"].slice(1):gA["@type"];return BA.indexOf("/")===-1&&(BA="/"+BA),this.create({type_url:BA,value:IA.encode(IA.fromObject(gA)).finish()})}}return this.fromObject(gA)},toObject:function(gA,iA){var IA="type.googleapis.com/",BA="",sA="";if(iA&&iA.json&&gA.type_url&&gA.value){sA=gA.type_url.substring(gA.type_url.lastIndexOf("/")+1),BA=gA.type_url.substring(0,gA.type_url.lastIndexOf("/")+1);var QA=this.lookup(sA);QA&&(gA=QA.decode(gA.value))}if(!(gA instanceof this.ctor)&&gA instanceof tA){var CA=gA.$type.toObject(gA,iA),oA=gA.$type.fullName[0]==="."?gA.$type.fullName.slice(1):gA.$type.fullName;return BA===""&&(BA=IA),sA=BA+oA,CA["@type"]=sA,CA}return this.toObject(gA,iA)}}})(wrappers);var type,hasRequiredType;function requireType(){if(hasRequiredType)return type;hasRequiredType=1,type=lA;var eA=requireNamespace();((lA.prototype=Object.create(eA.prototype)).constructor=lA).className="Type";var AA=require_enum(),tA=requireOneof(),gA=requireField(),iA=requireMapfield(),IA=requireService(),BA=message,sA=reader,QA=writer,CA=requireUtil(),oA=requireEncoder(),EA=requireDecoder(),nA=requireVerifier(),cA=requireConverter(),uA=wrappers;function lA(dA,DA){eA.call(this,dA,DA),this.fields={},this.oneofs=void 0,this.extensions=void 0,this.reserved=void 0,this.group=void 0,this._fieldsById=null,this._fieldsArray=null,this._oneofsArray=null,this._ctor=null}Object.defineProperties(lA.prototype,{fieldsById:{get:function(){if(this._fieldsById)return this._fieldsById;this._fieldsById={};for(var dA=Object.keys(this.fields),DA=0;DA<dA.length;++DA){var wA=this.fields[dA[DA]],RA=wA.id;if(this._fieldsById[RA])throw Error("duplicate id "+RA+" in "+this);this._fieldsById[RA]=wA}return this._fieldsById}},fieldsArray:{get:function(){return this._fieldsArray||(this._fieldsArray=CA.toArray(this.fields))}},oneofsArray:{get:function(){return this._oneofsArray||(this._oneofsArray=CA.toArray(this.oneofs))}},ctor:{get:function(){return this._ctor||(this.ctor=lA.generateConstructor(this)())},set:function(dA){var DA=dA.prototype;DA instanceof BA||((dA.prototype=new BA).constructor=dA,CA.merge(dA.prototype,DA)),dA.$type=dA.prototype.$type=this,CA.merge(dA,BA,!0),this._ctor=dA;for(var wA=0;wA<this.fieldsArray.length;++wA)this._fieldsArray[wA].resolve();var RA={};for(wA=0;wA<this.oneofsArray.length;++wA)RA[this._oneofsArray[wA].resolve().name]={get:CA.oneOfGetter(this._oneofsArray[wA].oneof),set:CA.oneOfSetter(this._oneofsArray[wA].oneof)};wA&&Object.defineProperties(dA.prototype,RA)}}}),lA.generateConstructor=function(DA){for(var wA=CA.codegen(["p"],DA.name),RA=0,GA;RA<DA.fieldsArray.length;++RA)(GA=DA._fieldsArray[RA]).map?wA("this%s={}",CA.safeProp(GA.name)):GA.repeated&&wA("this%s=[]",CA.safeProp(GA.name));return wA("if(p)for(var ks=Object.keys(p),i=0;i<ks.length;++i)if(p[ks[i]]!=null)")("this[ks[i]]=p[ks[i]]")};function hA(dA){return dA._fieldsById=dA._fieldsArray=dA._oneofsArray=null,delete dA.encode,delete dA.decode,delete dA.verify,dA}return lA.fromJSON=function(DA,wA){var RA=new lA(DA,wA.options);RA.extensions=wA.extensions,RA.reserved=wA.reserved;for(var GA=Object.keys(wA.fields),yA=0;yA<GA.length;++yA)RA.add((typeof wA.fields[GA[yA]].keyType<"u"?iA.fromJSON:gA.fromJSON)(GA[yA],wA.fields[GA[yA]]));if(wA.oneofs)for(GA=Object.keys(wA.oneofs),yA=0;yA<GA.length;++yA)RA.add(tA.fromJSON(GA[yA],wA.oneofs[GA[yA]]));if(wA.nested)for(GA=Object.keys(wA.nested),yA=0;yA<GA.length;++yA){var LA=wA.nested[GA[yA]];RA.add((LA.id!==void 0?gA.fromJSON:LA.fields!==void 0?lA.fromJSON:LA.values!==void 0?AA.fromJSON:LA.methods!==void 0?IA.fromJSON:eA.fromJSON)(GA[yA],LA))}return wA.extensions&&wA.extensions.length&&(RA.extensions=wA.extensions),wA.reserved&&wA.reserved.length&&(RA.reserved=wA.reserved),wA.group&&(RA.group=!0),wA.comment&&(RA.comment=wA.comment),RA},lA.prototype.toJSON=function(DA){var wA=eA.prototype.toJSON.call(this,DA),RA=DA?!!DA.keepComments:!1;return CA.toObject(["options",wA&&wA.options||void 0,"oneofs",eA.arrayToJSON(this.oneofsArray,DA),"fields",eA.arrayToJSON(this.fieldsArray.filter(function(GA){return!GA.declaringField}),DA)||{},"extensions",this.extensions&&this.extensions.length?this.extensions:void 0,"reserved",this.reserved&&this.reserved.length?this.reserved:void 0,"group",this.group||void 0,"nested",wA&&wA.nested||void 0,"comment",RA?this.comment:void 0])},lA.prototype.resolveAll=function(){for(var DA=this.fieldsArray,wA=0;wA<DA.length;)DA[wA++].resolve();var RA=this.oneofsArray;for(wA=0;wA<RA.length;)RA[wA++].resolve();return eA.prototype.resolveAll.call(this)},lA.prototype.get=function(DA){return this.fields[DA]||this.oneofs&&this.oneofs[DA]||this.nested&&this.nested[DA]||null},lA.prototype.add=function(DA){if(this.get(DA.name))throw Error("duplicate name '"+DA.name+"' in "+this);if(DA instanceof gA&&DA.extend===void 0){if(this._fieldsById?this._fieldsById[DA.id]:this.fieldsById[DA.id])throw Error("duplicate id "+DA.id+" in "+this);if(this.isReservedId(DA.id))throw Error("id "+DA.id+" is reserved in "+this);if(this.isReservedName(DA.name))throw Error("name '"+DA.name+"' is reserved in "+this);return DA.parent&&DA.parent.remove(DA),this.fields[DA.name]=DA,DA.message=this,DA.onAdd(this),hA(this)}return DA instanceof tA?(this.oneofs||(this.oneofs={}),this.oneofs[DA.name]=DA,DA.onAdd(this),hA(this)):eA.prototype.add.call(this,DA)},lA.prototype.remove=function(DA){if(DA instanceof gA&&DA.extend===void 0){if(!this.fields||this.fields[DA.name]!==DA)throw Error(DA+" is not a member of "+this);return delete this.fields[DA.name],DA.parent=null,DA.onRemove(this),hA(this)}if(DA instanceof tA){if(!this.oneofs||this.oneofs[DA.name]!==DA)throw Error(DA+" is not a member of "+this);return delete this.oneofs[DA.name],DA.parent=null,DA.onRemove(this),hA(this)}return eA.prototype.remove.call(this,DA)},lA.prototype.isReservedId=function(DA){return eA.isReservedId(this.reserved,DA)},lA.prototype.isReservedName=function(DA){return eA.isReservedName(this.reserved,DA)},lA.prototype.create=function(DA){return new this.ctor(DA)},lA.prototype.setup=function(){for(var DA=this.fullName,wA=[],RA=0;RA<this.fieldsArray.length;++RA)wA.push(this._fieldsArray[RA].resolve().resolvedType);this.encode=oA(this)({Writer:QA,types:wA,util:CA}),this.decode=EA(this)({Reader:sA,types:wA,util:CA}),this.verify=nA(this)({types:wA,util:CA}),this.fromObject=cA.fromObject(this)({types:wA,util:CA}),this.toObject=cA.toObject(this)({types:wA,util:CA});var GA=uA[DA];if(GA){var yA=Object.create(this);yA.fromObject=this.fromObject,this.fromObject=GA.fromObject.bind(yA),yA.toObject=this.toObject,this.toObject=GA.toObject.bind(yA)}return this},lA.prototype.encode=function(DA,wA){return this.setup().encode(DA,wA)},lA.prototype.encodeDelimited=function(DA,wA){return this.encode(DA,wA&&wA.len?wA.fork():wA).ldelim()},lA.prototype.decode=function(DA,wA){return this.setup().decode(DA,wA)},lA.prototype.decodeDelimited=function(DA){return DA instanceof sA||(DA=sA.create(DA)),this.decode(DA,DA.uint32())},lA.prototype.verify=function(DA){return this.setup().verify(DA)},lA.prototype.fromObject=function(DA){return this.setup().fromObject(DA)},lA.prototype.toObject=function(DA,wA){return this.setup().toObject(DA,wA)},lA.d=function(DA){return function(RA){CA.decorateType(RA,DA)}},type}var root,hasRequiredRoot;function requireRoot(){if(hasRequiredRoot)return root;hasRequiredRoot=1,root=QA;var eA=requireNamespace();((QA.prototype=Object.create(eA.prototype)).constructor=QA).className="Root";var AA=requireField(),tA=require_enum(),gA=requireOneof(),iA=requireUtil(),IA,BA,sA;function QA(nA){eA.call(this,"",nA),this.deferred=[],this.files=[]}QA.fromJSON=function(cA,uA){return uA||(uA=new QA),cA.options&&uA.setOptions(cA.options),uA.addJSON(cA.nested)},QA.prototype.resolvePath=iA.path.resolve,QA.prototype.fetch=iA.fetch;function CA(){}QA.prototype.load=function nA(cA,uA,lA){typeof uA=="function"&&(lA=uA,uA=void 0);var hA=this;if(!lA)return iA.asPromise(nA,hA,cA,uA);var dA=lA===CA;function DA(bA,SA){if(lA){if(dA)throw bA;var MA=lA;lA=null,MA(bA,SA)}}function wA(bA){var SA=bA.lastIndexOf("google/protobuf/");if(SA>-1){var MA=bA.substring(SA);if(MA in sA)return MA}return null}function RA(bA,SA){try{if(iA.isString(SA)&&SA.charAt(0)==="{"&&(SA=JSON.parse(SA)),!iA.isString(SA))hA.setOptions(SA.options).addJSON(SA.nested);else{BA.filename=bA;var MA=BA(SA,hA,uA),NA,FA=0;if(MA.imports)for(;FA<MA.imports.length;++FA)(NA=wA(MA.imports[FA])||hA.resolvePath(bA,MA.imports[FA]))&&GA(NA);if(MA.weakImports)for(FA=0;FA<MA.weakImports.length;++FA)(NA=wA(MA.weakImports[FA])||hA.resolvePath(bA,MA.weakImports[FA]))&&GA(NA,!0)}}catch(qA){DA(qA)}!dA&&!yA&&DA(null,hA)}function GA(bA,SA){if(bA=wA(bA)||bA,!(hA.files.indexOf(bA)>-1)){if(hA.files.push(bA),bA in sA){dA?RA(bA,sA[bA]):(++yA,setTimeout(function(){--yA,RA(bA,sA[bA])}));return}if(dA){var MA;try{MA=iA.fs.readFileSync(bA).toString("utf8")}catch(NA){SA||DA(NA);return}RA(bA,MA)}else++yA,hA.fetch(bA,function(NA,FA){if(--yA,!!lA){if(NA){SA?yA||DA(null,hA):DA(NA);return}RA(bA,FA)}})}}var yA=0;iA.isString(cA)&&(cA=[cA]);for(var LA=0,KA;LA<cA.length;++LA)(KA=hA.resolvePath("",cA[LA]))&&GA(KA);if(dA)return hA;yA||DA(null,hA)},QA.prototype.loadSync=function(cA,uA){if(!iA.isNode)throw Error("not supported");return this.load(cA,uA,CA)},QA.prototype.resolveAll=function(){if(this.deferred.length)throw Error("unresolvable extensions: "+this.deferred.map(function(cA){return"'extend "+cA.extend+"' in "+cA.parent.fullName}).join(", "));return eA.prototype.resolveAll.call(this)};var oA=/^[A-Z]/;function EA(nA,cA){var uA=cA.parent.lookup(cA.extend);if(uA){var lA=new AA(cA.fullName,cA.id,cA.type,cA.rule,void 0,cA.options);return uA.get(lA.name)||(lA.declaringField=cA,cA.extensionField=lA,uA.add(lA)),!0}return!1}return QA.prototype._handleAdd=function(cA){if(cA instanceof AA)cA.extend!==void 0&&!cA.extensionField&&(EA(this,cA)||this.deferred.push(cA));else if(cA instanceof tA)oA.test(cA.name)&&(cA.parent[cA.name]=cA.values);else if(!(cA instanceof gA)){if(cA instanceof IA)for(var uA=0;uA<this.deferred.length;)EA(this,this.deferred[uA])?this.deferred.splice(uA,1):++uA;for(var lA=0;lA<cA.nestedArray.length;++lA)this._handleAdd(cA._nestedArray[lA]);oA.test(cA.name)&&(cA.parent[cA.name]=cA)}},QA.prototype._handleRemove=function(cA){if(cA instanceof AA){if(cA.extend!==void 0)if(cA.extensionField)cA.extensionField.parent.remove(cA.extensionField),cA.extensionField=null;else{var uA=this.deferred.indexOf(cA);uA>-1&&this.deferred.splice(uA,1)}}else if(cA instanceof tA)oA.test(cA.name)&&delete cA.parent[cA.name];else if(cA instanceof eA){for(var lA=0;lA<cA.nestedArray.length;++lA)this._handleRemove(cA._nestedArray[lA]);oA.test(cA.name)&&delete cA.parent[cA.name]}},QA._configure=function(nA,cA,uA){IA=nA,BA=cA,sA=uA},root}var hasRequiredUtil;function requireUtil(){if(hasRequiredUtil)return util$1.exports;hasRequiredUtil=1;var eA=util$1.exports=requireMinimal(),AA=roots,tA,gA;eA.codegen=codegen_1,eA.fetch=fetch_1,eA.path=path,eA.fs=eA.inquire("fs"),eA.toArray=function(CA){if(CA){for(var oA=Object.keys(CA),EA=new Array(oA.length),nA=0;nA<oA.length;)EA[nA]=CA[oA[nA++]];return EA}return[]},eA.toObject=function(CA){for(var oA={},EA=0;EA<CA.length;){var nA=CA[EA++],cA=CA[EA++];cA!==void 0&&(oA[nA]=cA)}return oA};var iA=/\\/g,IA=/"/g;eA.isReserved=function(CA){return/^(?:do|if|in|for|let|new|try|var|case|else|enum|eval|false|null|this|true|void|with|break|catch|class|const|super|throw|while|yield|delete|export|import|public|return|static|switch|typeof|default|extends|finally|package|private|continue|debugger|function|arguments|interface|protected|implements|instanceof)$/.test(CA)},eA.safeProp=function(CA){return!/^[$\w_]+$/.test(CA)||eA.isReserved(CA)?'["'+CA.replace(iA,"\\\\").replace(IA,'\\"')+'"]':"."+CA},eA.ucFirst=function(CA){return CA.charAt(0).toUpperCase()+CA.substring(1)};var BA=/_([a-z])/g;eA.camelCase=function(CA){return CA.substring(0,1)+CA.substring(1).replace(BA,function(oA,EA){return EA.toUpperCase()})},eA.compareFieldsById=function(CA,oA){return CA.id-oA.id},eA.decorateType=function(CA,oA){if(CA.$type)return oA&&CA.$type.name!==oA&&(eA.decorateRoot.remove(CA.$type),CA.$type.name=oA,eA.decorateRoot.add(CA.$type)),CA.$type;tA||(tA=requireType());var EA=new tA(oA||CA.name);return eA.decorateRoot.add(EA),EA.ctor=CA,Object.defineProperty(CA,"$type",{value:EA,enumerable:!1}),Object.defineProperty(CA.prototype,"$type",{value:EA,enumerable:!1}),EA};var sA=0;return eA.decorateEnum=function(CA){if(CA.$type)return CA.$type;gA||(gA=require_enum());var oA=new gA("Enum"+sA++,CA);return eA.decorateRoot.add(oA),Object.defineProperty(CA,"$type",{value:oA,enumerable:!1}),oA},eA.setProperty=function(CA,oA,EA){function nA(cA,uA,lA){var hA=uA.shift();if(hA==="__proto__"||hA==="prototype")return cA;if(uA.length>0)cA[hA]=nA(cA[hA]||{},uA,lA);else{var dA=cA[hA];dA&&(lA=[].concat(dA).concat(lA)),cA[hA]=lA}return cA}if(typeof CA!="object")throw TypeError("dst must be an object");if(!oA)throw TypeError("path must be specified");return oA=oA.split("."),nA(CA,oA,EA)},Object.defineProperty(eA,"decorateRoot",{get:function(){return AA.decorated||(AA.decorated=new(requireRoot()))}}),util$1.exports}var object$3,hasRequiredObject;function requireObject(){if(hasRequiredObject)return object$3;hasRequiredObject=1,object$3=tA,tA.className="ReflectionObject";var eA=requireUtil(),AA;function tA(gA,iA){if(!eA.isString(gA))throw TypeError("name must be a string");if(iA&&!eA.isObject(iA))throw TypeError("options must be an object");this.options=iA,this.parsedOptions=null,this.name=gA,this.parent=null,this.resolved=!1,this.comment=null,this.filename=null}return Object.defineProperties(tA.prototype,{root:{get:function(){for(var gA=this;gA.parent!==null;)gA=gA.parent;return gA}},fullName:{get:function(){for(var gA=[this.name],iA=this.parent;iA;)gA.unshift(iA.name),iA=iA.parent;return gA.join(".")}}}),tA.prototype.toJSON=function(){throw Error()},tA.prototype.onAdd=function(iA){this.parent&&this.parent!==iA&&this.parent.remove(this),this.parent=iA,this.resolved=!1;var IA=iA.root;IA instanceof AA&&IA._handleAdd(this)},tA.prototype.onRemove=function(iA){var IA=iA.root;IA instanceof AA&&IA._handleRemove(this),this.parent=null,this.resolved=!1},tA.prototype.resolve=function(){return this.resolved?this:(this.root instanceof AA&&(this.resolved=!0),this)},tA.prototype.getOption=function(iA){if(this.options)return this.options[iA]},tA.prototype.setOption=function(iA,IA,BA){return(!BA||!this.options||this.options[iA]===void 0)&&((this.options||(this.options={}))[iA]=IA),this},tA.prototype.setParsedOption=function(iA,IA,BA){this.parsedOptions||(this.parsedOptions=[]);var sA=this.parsedOptions;if(BA){var QA=sA.find(function(EA){return Object.prototype.hasOwnProperty.call(EA,iA)});if(QA){var CA=QA[iA];eA.setProperty(CA,BA,IA)}else QA={},QA[iA]=eA.setProperty({},BA,IA),sA.push(QA)}else{var oA={};oA[iA]=IA,sA.push(oA)}return this},tA.prototype.setOptions=function(iA,IA){if(iA)for(var BA=Object.keys(iA),sA=0;sA<BA.length;++sA)this.setOption(BA[sA],iA[BA[sA]],IA);return this},tA.prototype.toString=function(){var iA=this.constructor.className,IA=this.fullName;return IA.length?iA+" "+IA:iA},tA._configure=function(gA){AA=gA},object$3}var _enum,hasRequired_enum;function require_enum(){if(hasRequired_enum)return _enum;hasRequired_enum=1,_enum=gA;var eA=requireObject();((gA.prototype=Object.create(eA.prototype)).constructor=gA).className="Enum";var AA=requireNamespace(),tA=requireUtil();function gA(iA,IA,BA,sA,QA,CA){if(eA.call(this,iA,BA),IA&&typeof IA!="object")throw TypeError("values must be an object");if(this.valuesById={},this.values=Object.create(this.valuesById),this.comment=sA,this.comments=QA||{},this.valuesOptions=CA,this.reserved=void 0,IA)for(var oA=Object.keys(IA),EA=0;EA<oA.length;++EA)typeof IA[oA[EA]]=="number"&&(this.valuesById[this.values[oA[EA]]=IA[oA[EA]]]=oA[EA])}return gA.fromJSON=function(IA,BA){var sA=new gA(IA,BA.values,BA.options,BA.comment,BA.comments);return sA.reserved=BA.reserved,sA},gA.prototype.toJSON=function(IA){var BA=IA?!!IA.keepComments:!1;return tA.toObject(["options",this.options,"valuesOptions",this.valuesOptions,"values",this.values,"reserved",this.reserved&&this.reserved.length?this.reserved:void 0,"comment",BA?this.comment:void 0,"comments",BA?this.comments:void 0])},gA.prototype.add=function(IA,BA,sA,QA){if(!tA.isString(IA))throw TypeError("name must be a string");if(!tA.isInteger(BA))throw TypeError("id must be an integer");if(this.values[IA]!==void 0)throw Error("duplicate name '"+IA+"' in "+this);if(this.isReservedId(BA))throw Error("id "+BA+" is reserved in "+this);if(this.isReservedName(IA))throw Error("name '"+IA+"' is reserved in "+this);if(this.valuesById[BA]!==void 0){if(!(this.options&&this.options.allow_alias))throw Error("duplicate id "+BA+" in "+this);this.values[IA]=BA}else this.valuesById[this.values[IA]=BA]=IA;return QA&&(this.valuesOptions===void 0&&(this.valuesOptions={}),this.valuesOptions[IA]=QA||null),this.comments[IA]=sA||null,this},gA.prototype.remove=function(IA){if(!tA.isString(IA))throw TypeError("name must be a string");var BA=this.values[IA];if(BA==null)throw Error("name '"+IA+"' does not exist in "+this);return delete this.valuesById[BA],delete this.values[IA],delete this.comments[IA],this.valuesOptions&&delete this.valuesOptions[IA],this},gA.prototype.isReservedId=function(IA){return AA.isReservedId(this.reserved,IA)},gA.prototype.isReservedName=function(IA){return AA.isReservedName(this.reserved,IA)},_enum}var encoder_1,hasRequiredEncoder;function requireEncoder(){if(hasRequiredEncoder)return encoder_1;hasRequiredEncoder=1,encoder_1=iA;var eA=require_enum(),AA=requireTypes(),tA=requireUtil();function gA(IA,BA,sA,QA){return BA.resolvedType.group?IA("types[%i].encode(%s,w.uint32(%i)).uint32(%i)",sA,QA,(BA.id<<3|3)>>>0,(BA.id<<3|4)>>>0):IA("types[%i].encode(%s,w.uint32(%i).fork()).ldelim()",sA,QA,(BA.id<<3|2)>>>0)}function iA(IA){for(var BA=tA.codegen(["m","w"],IA.name+"$encode")("if(!w)")("w=Writer.create()"),sA,QA,CA=IA.fieldsArray.slice().sort(tA.compareFieldsById),sA=0;sA<CA.length;++sA){var oA=CA[sA].resolve(),EA=IA._fieldsArray.indexOf(oA),nA=oA.resolvedType instanceof eA?"int32":oA.type,cA=AA.basic[nA];QA="m"+tA.safeProp(oA.name),oA.map?(BA("if(%s!=null&&Object.hasOwnProperty.call(m,%j)){",QA,oA.name)("for(var ks=Object.keys(%s),i=0;i<ks.length;++i){",QA)("w.uint32(%i).fork().uint32(%i).%s(ks[i])",(oA.id<<3|2)>>>0,8|AA.mapKey[oA.keyType],oA.keyType),cA===void 0?BA("types[%i].encode(%s[ks[i]],w.uint32(18).fork()).ldelim().ldelim()",EA,QA):BA(".uint32(%i).%s(%s[ks[i]]).ldelim()",16|cA,nA,QA),BA("}")("}")):oA.repeated?(BA("if(%s!=null&&%s.length){",QA,QA),oA.packed&&AA.packed[nA]!==void 0?BA("w.uint32(%i).fork()",(oA.id<<3|2)>>>0)("for(var i=0;i<%s.length;++i)",QA)("w.%s(%s[i])",nA,QA)("w.ldelim()"):(BA("for(var i=0;i<%s.length;++i)",QA),cA===void 0?gA(BA,oA,EA,QA+"[i]"):BA("w.uint32(%i).%s(%s[i])",(oA.id<<3|cA)>>>0,nA,QA)),BA("}")):(oA.optional&&BA("if(%s!=null&&Object.hasOwnProperty.call(m,%j))",QA,oA.name),cA===void 0?gA(BA,oA,EA,QA):BA("w.uint32(%i).%s(%s)",(oA.id<<3|cA)>>>0,nA,QA))}return BA("return w")}return encoder_1}var protobuf=indexLight.exports=indexMinimal;protobuf.build="light";function load$1(eA,AA,tA){return typeof AA=="function"?(tA=AA,AA=new protobuf.Root):AA||(AA=new protobuf.Root),AA.load(eA,tA)}protobuf.load=load$1;function loadSync(eA,AA){return AA||(AA=new protobuf.Root),AA.loadSync(eA)}protobuf.loadSync=loadSync,protobuf.encoder=requireEncoder(),protobuf.decoder=requireDecoder(),protobuf.verifier=requireVerifier(),protobuf.converter=requireConverter(),protobuf.ReflectionObject=requireObject(),protobuf.Namespace=requireNamespace(),protobuf.Root=requireRoot(),protobuf.Enum=require_enum(),protobuf.Type=requireType(),protobuf.Field=requireField(),protobuf.OneOf=requireOneof(),protobuf.MapField=requireMapfield(),protobuf.Service=requireService(),protobuf.Method=requireMethod(),protobuf.Message=message,protobuf.wrappers=wrappers,protobuf.types=requireTypes(),protobuf.util=requireUtil(),protobuf.ReflectionObject._configure(protobuf.Root),protobuf.Namespace._configure(protobuf.Type,protobuf.Service,protobuf.Enum),protobuf.Root._configure(protobuf.Type),protobuf.Field._configure(protobuf.Type);var indexLightExports=indexLight.exports,light=indexLightExports,protobufjs=getDefaultExportFromCjs(light);const proto_data={options:{syntax:"proto3",optimize_for:"LITE_RUNTIME"},nested:{nil:{nested:{xit:{nested:{proto:{nested:{MessageType:{values:{MessageType_FrameRequest:0,MessageType_FrameResponse:1,MessageType_FrameCache:2,MessageType_FrameLoaded:3,MessageType_ValueRequest:4,MessageType_ValueResponse:5,MessageType_ValueUpdate:6,MessageType_SignalRequest:7,MessageType_SignalResponse:8,MessageType_SignalNotify:9,MessageType_FileRequest:10,MessageType_FileResponse:11}},FrameRequest:{fields:{id:{type:"string",id:1}}},FrameResponse:{oneofs:{value:{oneof:["file","content"]}},fields:{id:{type:"string",id:1},file:{type:"string",id:2},content:{type:"string",id:3}}},FrameCache:{fields:{id:{type:"string",id:1},content:{type:"string",id:2},files:{rule:"repeated",type:"FileInfo",id:3}}},FrameLoaded:{oneofs:{_tag:{oneof:["tag"]}},fields:{id:{type:"string",id:1},tag:{type:"string",id:2,options:{proto3_optional:!0}}}},Value:{oneofs:{value:{oneof:["value_boolean","value_number","value_double","value_string","value_buffer"]}},fields:{id:{type:"string",id:1},value_boolean:{type:"bool",id:2},value_number:{type:"int64",id:3},value_double:{type:"double",id:4},value_string:{type:"string",id:5},value_buffer:{type:"bytes",id:6}}},ValueRequest:{oneofs:{_tag:{oneof:["tag"]}},fields:{id:{type:"string",id:1},tag:{type:"string",id:2,options:{proto3_optional:!0}}}},ValueResponse:{oneofs:{_tag:{oneof:["tag"]}},fields:{id:{type:"string",id:1},tag:{type:"string",id:2,options:{proto3_optional:!0}},values:{rule:"repeated",type:"Value",id:3}}},ValueUpdate:{oneofs:{_tag:{oneof:["tag"]}},fields:{id:{type:"string",id:1},tag:{type:"string",id:2,options:{proto3_optional:!0}},value:{type:"Value",id:3}}},SignalRequest:{fields:{id:{type:"string",id:1}}},Signal:{oneofs:{_type:{oneof:["type"]}},fields:{id:{type:"string",id:1},type:{type:"string",id:2,options:{proto3_optional:!0}}}},SignalResponse:{oneofs:{_tag:{oneof:["tag"]}},fields:{id:{type:"string",id:1},tag:{type:"string",id:2,options:{proto3_optional:!0}},signals:{rule:"repeated",type:"Signal",id:3}}},SignalNotify:{oneofs:{_tag:{oneof:["tag"]},arg:{oneof:["arg_boolean","arg_number","arg_double","arg_string","arg_buffer"]}},fields:{frame_id:{type:"string",id:1},tag:{type:"string",id:2,options:{proto3_optional:!0}},signal_id:{type:"string",id:3},arg_boolean:{type:"bool",id:4},arg_number:{type:"int64",id:5},arg_double:{type:"double",id:6},arg_string:{type:"string",id:7},arg_buffer:{type:"bytes",id:8}}},FileRequest:{fields:{target:{type:"string",id:1}}},FileResponse:{fields:{target:{type:"string",id:1},content:{type:"string",id:2},metadata:{type:"bytes",id:3}}},FileInfo:{fields:{target:{type:"string",id:1},metadata:{type:"bytes",id:2}}}}}}}}}}},nil_xit_proto=protobufjs.Root.fromJSON(proto_data).lookup("nil.xit.proto");var astralIdentifierCodes=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,80,3,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,343,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,726,6,110,6,6,9,4759,9,787719,239],astralIdentifierStartCodes=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,2,60,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,42,9,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,496,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],nonASCIIidentifierChars="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・",nonASCIIidentifierStartChars="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ꟑꟑꟓꟕ-ꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",reservedWords={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},ecma5AndLessKeywords="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",keywords$1={5:ecma5AndLessKeywords,"5module":ecma5AndLessKeywords+" export import",6:ecma5AndLessKeywords+" const class extends export import super"},keywordRelationalOperator=/^in(stanceof)?$/,nonASCIIidentifierStart=new RegExp("["+nonASCIIidentifierStartChars+"]"),nonASCIIidentifier=new RegExp("["+nonASCIIidentifierStartChars+nonASCIIidentifierChars+"]");function isInAstralSet(eA,AA){for(var tA=65536,gA=0;gA<AA.length;gA+=2){if(tA+=AA[gA],tA>eA)return!1;if(tA+=AA[gA+1],tA>=eA)return!0}return!1}function isIdentifierStart(eA,AA){return eA<65?eA===36:eA<91?!0:eA<97?eA===95:eA<123?!0:eA<=65535?eA>=170&&nonASCIIidentifierStart.test(String.fromCharCode(eA)):AA===!1?!1:isInAstralSet(eA,astralIdentifierStartCodes)}function isIdentifierChar(eA,AA){return eA<48?eA===36:eA<58?!0:eA<65?!1:eA<91?!0:eA<97?eA===95:eA<123?!0:eA<=65535?eA>=170&&nonASCIIidentifier.test(String.fromCharCode(eA)):AA===!1?!1:isInAstralSet(eA,astralIdentifierStartCodes)||isInAstralSet(eA,astralIdentifierCodes)}var TokenType=function eA(AA,tA){tA===void 0&&(tA={}),this.label=AA,this.keyword=tA.keyword,this.beforeExpr=!!tA.beforeExpr,this.startsExpr=!!tA.startsExpr,this.isLoop=!!tA.isLoop,this.isAssign=!!tA.isAssign,this.prefix=!!tA.prefix,this.postfix=!!tA.postfix,this.binop=tA.binop||null,this.updateContext=null};function binop(eA,AA){return new TokenType(eA,{beforeExpr:!0,binop:AA})}var beforeExpr={beforeExpr:!0},startsExpr={startsExpr:!0},keywords={};function kw(eA,AA){return AA===void 0&&(AA={}),AA.keyword=eA,keywords[eA]=new TokenType(eA,AA)}var types$1={num:new TokenType("num",startsExpr),regexp:new TokenType("regexp",startsExpr),string:new TokenType("string",startsExpr),name:new TokenType("name",startsExpr),privateId:new TokenType("privateId",startsExpr),eof:new TokenType("eof"),bracketL:new TokenType("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new TokenType("]"),braceL:new TokenType("{",{beforeExpr:!0,startsExpr:!0}),braceR:new TokenType("}"),parenL:new TokenType("(",{beforeExpr:!0,startsExpr:!0}),parenR:new TokenType(")"),comma:new TokenType(",",beforeExpr),semi:new TokenType(";",beforeExpr),colon:new TokenType(":",beforeExpr),dot:new TokenType("."),question:new TokenType("?",beforeExpr),questionDot:new TokenType("?."),arrow:new TokenType("=>",beforeExpr),template:new TokenType("template"),invalidTemplate:new TokenType("invalidTemplate"),ellipsis:new TokenType("...",beforeExpr),backQuote:new TokenType("`",startsExpr),dollarBraceL:new TokenType("${",{beforeExpr:!0,startsExpr:!0}),eq:new TokenType("=",{beforeExpr:!0,isAssign:!0}),assign:new TokenType("_=",{beforeExpr:!0,isAssign:!0}),incDec:new TokenType("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new TokenType("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:binop("||",1),logicalAND:binop("&&",2),bitwiseOR:binop("|",3),bitwiseXOR:binop("^",4),bitwiseAND:binop("&",5),equality:binop("==/!=/===/!==",6),relational:binop("</>/<=/>=",7),bitShift:binop("<</>>/>>>",8),plusMin:new TokenType("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:binop("%",10),star:binop("*",10),slash:binop("/",10),starstar:new TokenType("**",{beforeExpr:!0}),coalesce:binop("??",1),_break:kw("break"),_case:kw("case",beforeExpr),_catch:kw("catch"),_continue:kw("continue"),_debugger:kw("debugger"),_default:kw("default",beforeExpr),_do:kw("do",{isLoop:!0,beforeExpr:!0}),_else:kw("else",beforeExpr),_finally:kw("finally"),_for:kw("for",{isLoop:!0}),_function:kw("function",startsExpr),_if:kw("if"),_return:kw("return",beforeExpr),_switch:kw("switch"),_throw:kw("throw",beforeExpr),_try:kw("try"),_var:kw("var"),_const:kw("const"),_while:kw("while",{isLoop:!0}),_with:kw("with"),_new:kw("new",{beforeExpr:!0,startsExpr:!0}),_this:kw("this",startsExpr),_super:kw("super",startsExpr),_class:kw("class",startsExpr),_extends:kw("extends",beforeExpr),_export:kw("export"),_import:kw("import",startsExpr),_null:kw("null",startsExpr),_true:kw("true",startsExpr),_false:kw("false",startsExpr),_in:kw("in",{beforeExpr:!0,binop:7}),_instanceof:kw("instanceof",{beforeExpr:!0,binop:7}),_typeof:kw("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:kw("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:kw("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},lineBreak=/\r\n?|\n|\u2028|\u2029/,lineBreakG=new RegExp(lineBreak.source,"g");function isNewLine(eA){return eA===10||eA===13||eA===8232||eA===8233}function nextLineBreak(eA,AA,tA){tA===void 0&&(tA=eA.length);for(var gA=AA;gA<tA;gA++){var iA=eA.charCodeAt(gA);if(isNewLine(iA))return gA<tA-1&&iA===13&&eA.charCodeAt(gA+1)===10?gA+2:gA+1}return-1}var nonASCIIwhitespace=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,skipWhiteSpace=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,ref=Object.prototype,hasOwnProperty=ref.hasOwnProperty,toString$1=ref.toString,hasOwn=Object.hasOwn||function(eA,AA){return hasOwnProperty.call(eA,AA)},isArray=Array.isArray||function(eA){return toString$1.call(eA)==="[object Array]"},regexpCache=Object.create(null);function wordsRegexp(eA){return regexpCache[eA]||(regexpCache[eA]=new RegExp("^(?:"+eA.replace(/ /g,"|")+")$"))}function codePointToString(eA){return eA<=65535?String.fromCharCode(eA):(eA-=65536,String.fromCharCode((eA>>10)+55296,(eA&1023)+56320))}var loneSurrogate=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,Position=function eA(AA,tA){this.line=AA,this.column=tA};Position.prototype.offset=function eA(AA){return new Position(this.line,this.column+AA)};var SourceLocation=function eA(AA,tA,gA){this.start=tA,this.end=gA,AA.sourceFile!==null&&(this.source=AA.sourceFile)};function getLineInfo(eA,AA){for(var tA=1,gA=0;;){var iA=nextLineBreak(eA,gA,AA);if(iA<0)return new Position(tA,AA-gA);++tA,gA=iA}}var defaultOptions={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},warnedAboutEcmaVersion=!1;function getOptions(eA){var AA={};for(var tA in defaultOptions)AA[tA]=eA&&hasOwn(eA,tA)?eA[tA]:defaultOptions[tA];if(AA.ecmaVersion==="latest"?AA.ecmaVersion=1e8:AA.ecmaVersion==null?(!warnedAboutEcmaVersion&&typeof console=="object"&&console.warn&&(warnedAboutEcmaVersion=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
|
|
5
5
|
Defaulting to 2020, but this will stop working in the future.`)),AA.ecmaVersion=11):AA.ecmaVersion>=2015&&(AA.ecmaVersion-=2009),AA.allowReserved==null&&(AA.allowReserved=AA.ecmaVersion<5),(!eA||eA.allowHashBang==null)&&(AA.allowHashBang=AA.ecmaVersion>=14),isArray(AA.onToken)){var gA=AA.onToken;AA.onToken=function(iA){return gA.push(iA)}}return isArray(AA.onComment)&&(AA.onComment=pushComment(AA,AA.onComment)),AA}function pushComment(eA,AA){return function(tA,gA,iA,IA,BA,sA){var QA={type:tA?"Block":"Line",value:gA,start:iA,end:IA};eA.locations&&(QA.loc=new SourceLocation(this,BA,sA)),eA.ranges&&(QA.range=[iA,IA]),AA.push(QA)}}var SCOPE_TOP=1,SCOPE_FUNCTION=2,SCOPE_ASYNC=4,SCOPE_GENERATOR=8,SCOPE_ARROW=16,SCOPE_SIMPLE_CATCH=32,SCOPE_SUPER=64,SCOPE_DIRECT_SUPER=128,SCOPE_CLASS_STATIC_BLOCK=256,SCOPE_VAR=SCOPE_TOP|SCOPE_FUNCTION|SCOPE_CLASS_STATIC_BLOCK;function functionFlags(eA,AA){return SCOPE_FUNCTION|(eA?SCOPE_ASYNC:0)|(AA?SCOPE_GENERATOR:0)}var BIND_NONE=0,BIND_VAR=1,BIND_LEXICAL=2,BIND_FUNCTION=3,BIND_SIMPLE_CATCH=4,BIND_OUTSIDE=5,Parser$1=function eA(AA,tA,gA){this.options=AA=getOptions(AA),this.sourceFile=AA.sourceFile,this.keywords=wordsRegexp(keywords$1[AA.ecmaVersion>=6?6:AA.sourceType==="module"?"5module":5]);var iA="";AA.allowReserved!==!0&&(iA=reservedWords[AA.ecmaVersion>=6?6:AA.ecmaVersion===5?5:3],AA.sourceType==="module"&&(iA+=" await")),this.reservedWords=wordsRegexp(iA);var IA=(iA?iA+" ":"")+reservedWords.strict;this.reservedWordsStrict=wordsRegexp(IA),this.reservedWordsStrictBind=wordsRegexp(IA+" "+reservedWords.strictBind),this.input=String(tA),this.containsEsc=!1,gA?(this.pos=gA,this.lineStart=this.input.lastIndexOf(`
|
|
6
6
|
`,gA-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(lineBreak).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=types$1.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule=AA.sourceType==="module",this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),this.pos===0&&AA.allowHashBang&&this.input.slice(0,2)==="#!"&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(SCOPE_TOP),this.regexpState=null,this.privateNameStack=[]},prototypeAccessors={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},inClassStaticBlock:{configurable:!0}};Parser$1.prototype.parse=function eA(){var AA=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(AA)},prototypeAccessors.inFunction.get=function(){return(this.currentVarScope().flags&SCOPE_FUNCTION)>0},prototypeAccessors.inGenerator.get=function(){return(this.currentVarScope().flags&SCOPE_GENERATOR)>0&&!this.currentVarScope().inClassFieldInit},prototypeAccessors.inAsync.get=function(){return(this.currentVarScope().flags&SCOPE_ASYNC)>0&&!this.currentVarScope().inClassFieldInit},prototypeAccessors.canAwait.get=function(){for(var eA=this.scopeStack.length-1;eA>=0;eA--){var AA=this.scopeStack[eA];if(AA.inClassFieldInit||AA.flags&SCOPE_CLASS_STATIC_BLOCK)return!1;if(AA.flags&SCOPE_FUNCTION)return(AA.flags&SCOPE_ASYNC)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},prototypeAccessors.allowSuper.get=function(){var eA=this.currentThisScope(),AA=eA.flags,tA=eA.inClassFieldInit;return(AA&SCOPE_SUPER)>0||tA||this.options.allowSuperOutsideMethod},prototypeAccessors.allowDirectSuper.get=function(){return(this.currentThisScope().flags&SCOPE_DIRECT_SUPER)>0},prototypeAccessors.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},prototypeAccessors.allowNewDotTarget.get=function(){var eA=this.currentThisScope(),AA=eA.flags,tA=eA.inClassFieldInit;return(AA&(SCOPE_FUNCTION|SCOPE_CLASS_STATIC_BLOCK))>0||tA},prototypeAccessors.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&SCOPE_CLASS_STATIC_BLOCK)>0},Parser$1.extend=function eA(){for(var AA=[],tA=arguments.length;tA--;)AA[tA]=arguments[tA];for(var gA=this,iA=0;iA<AA.length;iA++)gA=AA[iA](gA);return gA},Parser$1.parse=function eA(AA,tA){return new this(tA,AA).parse()},Parser$1.parseExpressionAt=function eA(AA,tA,gA){var iA=new this(gA,AA,tA);return iA.nextToken(),iA.parseExpression()},Parser$1.tokenizer=function eA(AA,tA){return new this(tA,AA)},Object.defineProperties(Parser$1.prototype,prototypeAccessors);var pp$9=Parser$1.prototype,literal$1=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;pp$9.strictDirective=function(eA){if(this.options.ecmaVersion<5)return!1;for(;;){skipWhiteSpace.lastIndex=eA,eA+=skipWhiteSpace.exec(this.input)[0].length;var AA=literal$1.exec(this.input.slice(eA));if(!AA)return!1;if((AA[1]||AA[2])==="use strict"){skipWhiteSpace.lastIndex=eA+AA[0].length;var tA=skipWhiteSpace.exec(this.input),gA=tA.index+tA[0].length,iA=this.input.charAt(gA);return iA===";"||iA==="}"||lineBreak.test(tA[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(iA)||iA==="!"&&this.input.charAt(gA+1)==="=")}eA+=AA[0].length,skipWhiteSpace.lastIndex=eA,eA+=skipWhiteSpace.exec(this.input)[0].length,this.input[eA]===";"&&eA++}},pp$9.eat=function(eA){return this.type===eA?(this.next(),!0):!1},pp$9.isContextual=function(eA){return this.type===types$1.name&&this.value===eA&&!this.containsEsc},pp$9.eatContextual=function(eA){return this.isContextual(eA)?(this.next(),!0):!1},pp$9.expectContextual=function(eA){this.eatContextual(eA)||this.unexpected()},pp$9.canInsertSemicolon=function(){return this.type===types$1.eof||this.type===types$1.braceR||lineBreak.test(this.input.slice(this.lastTokEnd,this.start))},pp$9.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},pp$9.semicolon=function(){!this.eat(types$1.semi)&&!this.insertSemicolon()&&this.unexpected()},pp$9.afterTrailingComma=function(eA,AA){if(this.type===eA)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),AA||this.next(),!0},pp$9.expect=function(eA){this.eat(eA)||this.unexpected()},pp$9.unexpected=function(eA){this.raise(eA??this.start,"Unexpected token")};var DestructuringErrors=function eA(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};pp$9.checkPatternErrors=function(eA,AA){if(eA){eA.trailingComma>-1&&this.raiseRecoverable(eA.trailingComma,"Comma is not permitted after the rest element");var tA=AA?eA.parenthesizedAssign:eA.parenthesizedBind;tA>-1&&this.raiseRecoverable(tA,AA?"Assigning to rvalue":"Parenthesized pattern")}},pp$9.checkExpressionErrors=function(eA,AA){if(!eA)return!1;var tA=eA.shorthandAssign,gA=eA.doubleProto;if(!AA)return tA>=0||gA>=0;tA>=0&&this.raise(tA,"Shorthand property assignments are valid only in destructuring patterns"),gA>=0&&this.raiseRecoverable(gA,"Redefinition of __proto__ property")},pp$9.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")},pp$9.isSimpleAssignTarget=function(eA){return eA.type==="ParenthesizedExpression"?this.isSimpleAssignTarget(eA.expression):eA.type==="Identifier"||eA.type==="MemberExpression"};var pp$8=Parser$1.prototype;pp$8.parseTopLevel=function(eA){var AA=Object.create(null);for(eA.body||(eA.body=[]);this.type!==types$1.eof;){var tA=this.parseStatement(null,!0,AA);eA.body.push(tA)}if(this.inModule)for(var gA=0,iA=Object.keys(this.undefinedExports);gA<iA.length;gA+=1){var IA=iA[gA];this.raiseRecoverable(this.undefinedExports[IA].start,"Export '"+IA+"' is not defined")}return this.adaptDirectivePrologue(eA.body),this.next(),eA.sourceType=this.options.sourceType,this.finishNode(eA,"Program")};var loopLabel={kind:"loop"},switchLabel={kind:"switch"};pp$8.isLet=function(eA){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;skipWhiteSpace.lastIndex=this.pos;var AA=skipWhiteSpace.exec(this.input),tA=this.pos+AA[0].length,gA=this.input.charCodeAt(tA);if(gA===91||gA===92)return!0;if(eA)return!1;if(gA===123||gA>55295&&gA<56320)return!0;if(isIdentifierStart(gA,!0)){for(var iA=tA+1;isIdentifierChar(gA=this.input.charCodeAt(iA),!0);)++iA;if(gA===92||gA>55295&&gA<56320)return!0;var IA=this.input.slice(tA,iA);if(!keywordRelationalOperator.test(IA))return!0}return!1},pp$8.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;skipWhiteSpace.lastIndex=this.pos;var eA=skipWhiteSpace.exec(this.input),AA=this.pos+eA[0].length,tA;return!lineBreak.test(this.input.slice(this.pos,AA))&&this.input.slice(AA,AA+8)==="function"&&(AA+8===this.input.length||!(isIdentifierChar(tA=this.input.charCodeAt(AA+8))||tA>55295&&tA<56320))},pp$8.parseStatement=function(eA,AA,tA){var gA=this.type,iA=this.startNode(),IA;switch(this.isLet(eA)&&(gA=types$1._var,IA="let"),gA){case types$1._break:case types$1._continue:return this.parseBreakContinueStatement(iA,gA.keyword);case types$1._debugger:return this.parseDebuggerStatement(iA);case types$1._do:return this.parseDoStatement(iA);case types$1._for:return this.parseForStatement(iA);case types$1._function:return eA&&(this.strict||eA!=="if"&&eA!=="label")&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(iA,!1,!eA);case types$1._class:return eA&&this.unexpected(),this.parseClass(iA,!0);case types$1._if:return this.parseIfStatement(iA);case types$1._return:return this.parseReturnStatement(iA);case types$1._switch:return this.parseSwitchStatement(iA);case types$1._throw:return this.parseThrowStatement(iA);case types$1._try:return this.parseTryStatement(iA);case types$1._const:case types$1._var:return IA=IA||this.value,eA&&IA!=="var"&&this.unexpected(),this.parseVarStatement(iA,IA);case types$1._while:return this.parseWhileStatement(iA);case types$1._with:return this.parseWithStatement(iA);case types$1.braceL:return this.parseBlock(!0,iA);case types$1.semi:return this.parseEmptyStatement(iA);case types$1._export:case types$1._import:if(this.options.ecmaVersion>10&&gA===types$1._import){skipWhiteSpace.lastIndex=this.pos;var BA=skipWhiteSpace.exec(this.input),sA=this.pos+BA[0].length,QA=this.input.charCodeAt(sA);if(QA===40||QA===46)return this.parseExpressionStatement(iA,this.parseExpression())}return this.options.allowImportExportEverywhere||(AA||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),gA===types$1._import?this.parseImport(iA):this.parseExport(iA,tA);default:if(this.isAsyncFunction())return eA&&this.unexpected(),this.next(),this.parseFunctionStatement(iA,!0,!eA);var CA=this.value,oA=this.parseExpression();return gA===types$1.name&&oA.type==="Identifier"&&this.eat(types$1.colon)?this.parseLabeledStatement(iA,CA,oA,eA):this.parseExpressionStatement(iA,oA)}},pp$8.parseBreakContinueStatement=function(eA,AA){var tA=AA==="break";this.next(),this.eat(types$1.semi)||this.insertSemicolon()?eA.label=null:this.type!==types$1.name?this.unexpected():(eA.label=this.parseIdent(),this.semicolon());for(var gA=0;gA<this.labels.length;++gA){var iA=this.labels[gA];if((eA.label==null||iA.name===eA.label.name)&&(iA.kind!=null&&(tA||iA.kind==="loop")||eA.label&&tA))break}return gA===this.labels.length&&this.raise(eA.start,"Unsyntactic "+AA),this.finishNode(eA,tA?"BreakStatement":"ContinueStatement")},pp$8.parseDebuggerStatement=function(eA){return this.next(),this.semicolon(),this.finishNode(eA,"DebuggerStatement")},pp$8.parseDoStatement=function(eA){return this.next(),this.labels.push(loopLabel),eA.body=this.parseStatement("do"),this.labels.pop(),this.expect(types$1._while),eA.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(types$1.semi):this.semicolon(),this.finishNode(eA,"DoWhileStatement")},pp$8.parseForStatement=function(eA){this.next();var AA=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(loopLabel),this.enterScope(0),this.expect(types$1.parenL),this.type===types$1.semi)return AA>-1&&this.unexpected(AA),this.parseFor(eA,null);var tA=this.isLet();if(this.type===types$1._var||this.type===types$1._const||tA){var gA=this.startNode(),iA=tA?"let":this.value;return this.next(),this.parseVar(gA,!0,iA),this.finishNode(gA,"VariableDeclaration"),(this.type===types$1._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&gA.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===types$1._in?AA>-1&&this.unexpected(AA):eA.await=AA>-1),this.parseForIn(eA,gA)):(AA>-1&&this.unexpected(AA),this.parseFor(eA,gA))}var IA=this.isContextual("let"),BA=!1,sA=this.containsEsc,QA=new DestructuringErrors,CA=this.start,oA=AA>-1?this.parseExprSubscripts(QA,"await"):this.parseExpression(!0,QA);return this.type===types$1._in||(BA=this.options.ecmaVersion>=6&&this.isContextual("of"))?(AA>-1?(this.type===types$1._in&&this.unexpected(AA),eA.await=!0):BA&&this.options.ecmaVersion>=8&&(oA.start===CA&&!sA&&oA.type==="Identifier"&&oA.name==="async"?this.unexpected():this.options.ecmaVersion>=9&&(eA.await=!1)),IA&&BA&&this.raise(oA.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(oA,!1,QA),this.checkLValPattern(oA),this.parseForIn(eA,oA)):(this.checkExpressionErrors(QA,!0),AA>-1&&this.unexpected(AA),this.parseFor(eA,oA))},pp$8.parseFunctionStatement=function(eA,AA,tA){return this.next(),this.parseFunction(eA,FUNC_STATEMENT|(tA?0:FUNC_HANGING_STATEMENT),!1,AA)},pp$8.parseIfStatement=function(eA){return this.next(),eA.test=this.parseParenExpression(),eA.consequent=this.parseStatement("if"),eA.alternate=this.eat(types$1._else)?this.parseStatement("if"):null,this.finishNode(eA,"IfStatement")},pp$8.parseReturnStatement=function(eA){return!this.inFunction&&!this.options.allowReturnOutsideFunction&&this.raise(this.start,"'return' outside of function"),this.next(),this.eat(types$1.semi)||this.insertSemicolon()?eA.argument=null:(eA.argument=this.parseExpression(),this.semicolon()),this.finishNode(eA,"ReturnStatement")},pp$8.parseSwitchStatement=function(eA){this.next(),eA.discriminant=this.parseParenExpression(),eA.cases=[],this.expect(types$1.braceL),this.labels.push(switchLabel),this.enterScope(0);for(var AA,tA=!1;this.type!==types$1.braceR;)if(this.type===types$1._case||this.type===types$1._default){var gA=this.type===types$1._case;AA&&this.finishNode(AA,"SwitchCase"),eA.cases.push(AA=this.startNode()),AA.consequent=[],this.next(),gA?AA.test=this.parseExpression():(tA&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),tA=!0,AA.test=null),this.expect(types$1.colon)}else AA||this.unexpected(),AA.consequent.push(this.parseStatement(null));return this.exitScope(),AA&&this.finishNode(AA,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(eA,"SwitchStatement")},pp$8.parseThrowStatement=function(eA){return this.next(),lineBreak.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),eA.argument=this.parseExpression(),this.semicolon(),this.finishNode(eA,"ThrowStatement")};var empty$1=[];pp$8.parseCatchClauseParam=function(){var eA=this.parseBindingAtom(),AA=eA.type==="Identifier";return this.enterScope(AA?SCOPE_SIMPLE_CATCH:0),this.checkLValPattern(eA,AA?BIND_SIMPLE_CATCH:BIND_LEXICAL),this.expect(types$1.parenR),eA},pp$8.parseTryStatement=function(eA){if(this.next(),eA.block=this.parseBlock(),eA.handler=null,this.type===types$1._catch){var AA=this.startNode();this.next(),this.eat(types$1.parenL)?AA.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),AA.param=null,this.enterScope(0)),AA.body=this.parseBlock(!1),this.exitScope(),eA.handler=this.finishNode(AA,"CatchClause")}return eA.finalizer=this.eat(types$1._finally)?this.parseBlock():null,!eA.handler&&!eA.finalizer&&this.raise(eA.start,"Missing catch or finally clause"),this.finishNode(eA,"TryStatement")},pp$8.parseVarStatement=function(eA,AA,tA){return this.next(),this.parseVar(eA,!1,AA,tA),this.semicolon(),this.finishNode(eA,"VariableDeclaration")},pp$8.parseWhileStatement=function(eA){return this.next(),eA.test=this.parseParenExpression(),this.labels.push(loopLabel),eA.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(eA,"WhileStatement")},pp$8.parseWithStatement=function(eA){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),eA.object=this.parseParenExpression(),eA.body=this.parseStatement("with"),this.finishNode(eA,"WithStatement")},pp$8.parseEmptyStatement=function(eA){return this.next(),this.finishNode(eA,"EmptyStatement")},pp$8.parseLabeledStatement=function(eA,AA,tA,gA){for(var iA=0,IA=this.labels;iA<IA.length;iA+=1){var BA=IA[iA];BA.name===AA&&this.raise(tA.start,"Label '"+AA+"' is already declared")}for(var sA=this.type.isLoop?"loop":this.type===types$1._switch?"switch":null,QA=this.labels.length-1;QA>=0;QA--){var CA=this.labels[QA];if(CA.statementStart===eA.start)CA.statementStart=this.start,CA.kind=sA;else break}return this.labels.push({name:AA,kind:sA,statementStart:this.start}),eA.body=this.parseStatement(gA?gA.indexOf("label")===-1?gA+"label":gA:"label"),this.labels.pop(),eA.label=tA,this.finishNode(eA,"LabeledStatement")},pp$8.parseExpressionStatement=function(eA,AA){return eA.expression=AA,this.semicolon(),this.finishNode(eA,"ExpressionStatement")},pp$8.parseBlock=function(eA,AA,tA){for(eA===void 0&&(eA=!0),AA===void 0&&(AA=this.startNode()),AA.body=[],this.expect(types$1.braceL),eA&&this.enterScope(0);this.type!==types$1.braceR;){var gA=this.parseStatement(null);AA.body.push(gA)}return tA&&(this.strict=!1),this.next(),eA&&this.exitScope(),this.finishNode(AA,"BlockStatement")},pp$8.parseFor=function(eA,AA){return eA.init=AA,this.expect(types$1.semi),eA.test=this.type===types$1.semi?null:this.parseExpression(),this.expect(types$1.semi),eA.update=this.type===types$1.parenR?null:this.parseExpression(),this.expect(types$1.parenR),eA.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(eA,"ForStatement")},pp$8.parseForIn=function(eA,AA){var tA=this.type===types$1._in;return this.next(),AA.type==="VariableDeclaration"&&AA.declarations[0].init!=null&&(!tA||this.options.ecmaVersion<8||this.strict||AA.kind!=="var"||AA.declarations[0].id.type!=="Identifier")&&this.raise(AA.start,(tA?"for-in":"for-of")+" loop variable declaration may not have an initializer"),eA.left=AA,eA.right=tA?this.parseExpression():this.parseMaybeAssign(),this.expect(types$1.parenR),eA.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(eA,tA?"ForInStatement":"ForOfStatement")},pp$8.parseVar=function(eA,AA,tA,gA){for(eA.declarations=[],eA.kind=tA;;){var iA=this.startNode();if(this.parseVarId(iA,tA),this.eat(types$1.eq)?iA.init=this.parseMaybeAssign(AA):!gA&&tA==="const"&&!(this.type===types$1._in||this.options.ecmaVersion>=6&&this.isContextual("of"))?this.unexpected():!gA&&iA.id.type!=="Identifier"&&!(AA&&(this.type===types$1._in||this.isContextual("of")))?this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):iA.init=null,eA.declarations.push(this.finishNode(iA,"VariableDeclarator")),!this.eat(types$1.comma))break}return eA},pp$8.parseVarId=function(eA,AA){eA.id=this.parseBindingAtom(),this.checkLValPattern(eA.id,AA==="var"?BIND_VAR:BIND_LEXICAL,!1)};var FUNC_STATEMENT=1,FUNC_HANGING_STATEMENT=2,FUNC_NULLABLE_ID=4;pp$8.parseFunction=function(eA,AA,tA,gA,iA){this.initFunction(eA),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!gA)&&(this.type===types$1.star&&AA&FUNC_HANGING_STATEMENT&&this.unexpected(),eA.generator=this.eat(types$1.star)),this.options.ecmaVersion>=8&&(eA.async=!!gA),AA&FUNC_STATEMENT&&(eA.id=AA&FUNC_NULLABLE_ID&&this.type!==types$1.name?null:this.parseIdent(),eA.id&&!(AA&FUNC_HANGING_STATEMENT)&&this.checkLValSimple(eA.id,this.strict||eA.generator||eA.async?this.treatFunctionsAsVar?BIND_VAR:BIND_LEXICAL:BIND_FUNCTION));var IA=this.yieldPos,BA=this.awaitPos,sA=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(functionFlags(eA.async,eA.generator)),AA&FUNC_STATEMENT||(eA.id=this.type===types$1.name?this.parseIdent():null),this.parseFunctionParams(eA),this.parseFunctionBody(eA,tA,!1,iA),this.yieldPos=IA,this.awaitPos=BA,this.awaitIdentPos=sA,this.finishNode(eA,AA&FUNC_STATEMENT?"FunctionDeclaration":"FunctionExpression")},pp$8.parseFunctionParams=function(eA){this.expect(types$1.parenL),eA.params=this.parseBindingList(types$1.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},pp$8.parseClass=function(eA,AA){this.next();var tA=this.strict;this.strict=!0,this.parseClassId(eA,AA),this.parseClassSuper(eA);var gA=this.enterClassBody(),iA=this.startNode(),IA=!1;for(iA.body=[],this.expect(types$1.braceL);this.type!==types$1.braceR;){var BA=this.parseClassElement(eA.superClass!==null);BA&&(iA.body.push(BA),BA.type==="MethodDefinition"&&BA.kind==="constructor"?(IA&&this.raiseRecoverable(BA.start,"Duplicate constructor in the same class"),IA=!0):BA.key&&BA.key.type==="PrivateIdentifier"&&isPrivateNameConflicted(gA,BA)&&this.raiseRecoverable(BA.key.start,"Identifier '#"+BA.key.name+"' has already been declared"))}return this.strict=tA,this.next(),eA.body=this.finishNode(iA,"ClassBody"),this.exitClassBody(),this.finishNode(eA,AA?"ClassDeclaration":"ClassExpression")},pp$8.parseClassElement=function(eA){if(this.eat(types$1.semi))return null;var AA=this.options.ecmaVersion,tA=this.startNode(),gA="",iA=!1,IA=!1,BA="method",sA=!1;if(this.eatContextual("static")){if(AA>=13&&this.eat(types$1.braceL))return this.parseClassStaticBlock(tA),tA;this.isClassElementNameStart()||this.type===types$1.star?sA=!0:gA="static"}if(tA.static=sA,!gA&&AA>=8&&this.eatContextual("async")&&((this.isClassElementNameStart()||this.type===types$1.star)&&!this.canInsertSemicolon()?IA=!0:gA="async"),!gA&&(AA>=9||!IA)&&this.eat(types$1.star)&&(iA=!0),!gA&&!IA&&!iA){var QA=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?BA=QA:gA=QA)}if(gA?(tA.computed=!1,tA.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),tA.key.name=gA,this.finishNode(tA.key,"Identifier")):this.parseClassElementName(tA),AA<13||this.type===types$1.parenL||BA!=="method"||iA||IA){var CA=!tA.static&&checkKeyName(tA,"constructor"),oA=CA&&eA;CA&&BA!=="method"&&this.raise(tA.key.start,"Constructor can't have get/set modifier"),tA.kind=CA?"constructor":BA,this.parseClassMethod(tA,iA,IA,oA)}else this.parseClassField(tA);return tA},pp$8.isClassElementNameStart=function(){return this.type===types$1.name||this.type===types$1.privateId||this.type===types$1.num||this.type===types$1.string||this.type===types$1.bracketL||this.type.keyword},pp$8.parseClassElementName=function(eA){this.type===types$1.privateId?(this.value==="constructor"&&this.raise(this.start,"Classes can't have an element named '#constructor'"),eA.computed=!1,eA.key=this.parsePrivateIdent()):this.parsePropertyName(eA)},pp$8.parseClassMethod=function(eA,AA,tA,gA){var iA=eA.key;eA.kind==="constructor"?(AA&&this.raise(iA.start,"Constructor can't be a generator"),tA&&this.raise(iA.start,"Constructor can't be an async method")):eA.static&&checkKeyName(eA,"prototype")&&this.raise(iA.start,"Classes may not have a static property named prototype");var IA=eA.value=this.parseMethod(AA,tA,gA);return eA.kind==="get"&&IA.params.length!==0&&this.raiseRecoverable(IA.start,"getter should have no params"),eA.kind==="set"&&IA.params.length!==1&&this.raiseRecoverable(IA.start,"setter should have exactly one param"),eA.kind==="set"&&IA.params[0].type==="RestElement"&&this.raiseRecoverable(IA.params[0].start,"Setter cannot use rest params"),this.finishNode(eA,"MethodDefinition")},pp$8.parseClassField=function(eA){if(checkKeyName(eA,"constructor")?this.raise(eA.key.start,"Classes can't have a field named 'constructor'"):eA.static&&checkKeyName(eA,"prototype")&&this.raise(eA.key.start,"Classes can't have a static field named 'prototype'"),this.eat(types$1.eq)){var AA=this.currentThisScope(),tA=AA.inClassFieldInit;AA.inClassFieldInit=!0,eA.value=this.parseMaybeAssign(),AA.inClassFieldInit=tA}else eA.value=null;return this.semicolon(),this.finishNode(eA,"PropertyDefinition")},pp$8.parseClassStaticBlock=function(eA){eA.body=[];var AA=this.labels;for(this.labels=[],this.enterScope(SCOPE_CLASS_STATIC_BLOCK|SCOPE_SUPER);this.type!==types$1.braceR;){var tA=this.parseStatement(null);eA.body.push(tA)}return this.next(),this.exitScope(),this.labels=AA,this.finishNode(eA,"StaticBlock")},pp$8.parseClassId=function(eA,AA){this.type===types$1.name?(eA.id=this.parseIdent(),AA&&this.checkLValSimple(eA.id,BIND_LEXICAL,!1)):(AA===!0&&this.unexpected(),eA.id=null)},pp$8.parseClassSuper=function(eA){eA.superClass=this.eat(types$1._extends)?this.parseExprSubscripts(null,!1):null},pp$8.enterClassBody=function(){var eA={declared:Object.create(null),used:[]};return this.privateNameStack.push(eA),eA.declared},pp$8.exitClassBody=function(){var eA=this.privateNameStack.pop(),AA=eA.declared,tA=eA.used;if(this.options.checkPrivateFields)for(var gA=this.privateNameStack.length,iA=gA===0?null:this.privateNameStack[gA-1],IA=0;IA<tA.length;++IA){var BA=tA[IA];hasOwn(AA,BA.name)||(iA?iA.used.push(BA):this.raiseRecoverable(BA.start,"Private field '#"+BA.name+"' must be declared in an enclosing class"))}};function isPrivateNameConflicted(eA,AA){var tA=AA.key.name,gA=eA[tA],iA="true";return AA.type==="MethodDefinition"&&(AA.kind==="get"||AA.kind==="set")&&(iA=(AA.static?"s":"i")+AA.kind),gA==="iget"&&iA==="iset"||gA==="iset"&&iA==="iget"||gA==="sget"&&iA==="sset"||gA==="sset"&&iA==="sget"?(eA[tA]="true",!1):gA?!0:(eA[tA]=iA,!1)}function checkKeyName(eA,AA){var tA=eA.computed,gA=eA.key;return!tA&&(gA.type==="Identifier"&&gA.name===AA||gA.type==="Literal"&&gA.value===AA)}pp$8.parseExportAllDeclaration=function(eA,AA){return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(eA.exported=this.parseModuleExportName(),this.checkExport(AA,eA.exported,this.lastTokStart)):eA.exported=null),this.expectContextual("from"),this.type!==types$1.string&&this.unexpected(),eA.source=this.parseExprAtom(),this.semicolon(),this.finishNode(eA,"ExportAllDeclaration")},pp$8.parseExport=function(eA,AA){if(this.next(),this.eat(types$1.star))return this.parseExportAllDeclaration(eA,AA);if(this.eat(types$1._default))return this.checkExport(AA,"default",this.lastTokStart),eA.declaration=this.parseExportDefaultDeclaration(),this.finishNode(eA,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())eA.declaration=this.parseExportDeclaration(eA),eA.declaration.type==="VariableDeclaration"?this.checkVariableExport(AA,eA.declaration.declarations):this.checkExport(AA,eA.declaration.id,eA.declaration.id.start),eA.specifiers=[],eA.source=null;else{if(eA.declaration=null,eA.specifiers=this.parseExportSpecifiers(AA),this.eatContextual("from"))this.type!==types$1.string&&this.unexpected(),eA.source=this.parseExprAtom();else{for(var tA=0,gA=eA.specifiers;tA<gA.length;tA+=1){var iA=gA[tA];this.checkUnreserved(iA.local),this.checkLocalExport(iA.local),iA.local.type==="Literal"&&this.raise(iA.local.start,"A string literal cannot be used as an exported binding without `from`.")}eA.source=null}this.semicolon()}return this.finishNode(eA,"ExportNamedDeclaration")},pp$8.parseExportDeclaration=function(eA){return this.parseStatement(null)},pp$8.parseExportDefaultDeclaration=function(){var eA;if(this.type===types$1._function||(eA=this.isAsyncFunction())){var AA=this.startNode();return this.next(),eA&&this.next(),this.parseFunction(AA,FUNC_STATEMENT|FUNC_NULLABLE_ID,!1,eA)}else if(this.type===types$1._class){var tA=this.startNode();return this.parseClass(tA,"nullableID")}else{var gA=this.parseMaybeAssign();return this.semicolon(),gA}},pp$8.checkExport=function(eA,AA,tA){eA&&(typeof AA!="string"&&(AA=AA.type==="Identifier"?AA.name:AA.value),hasOwn(eA,AA)&&this.raiseRecoverable(tA,"Duplicate export '"+AA+"'"),eA[AA]=!0)},pp$8.checkPatternExport=function(eA,AA){var tA=AA.type;if(tA==="Identifier")this.checkExport(eA,AA,AA.start);else if(tA==="ObjectPattern")for(var gA=0,iA=AA.properties;gA<iA.length;gA+=1){var IA=iA[gA];this.checkPatternExport(eA,IA)}else if(tA==="ArrayPattern")for(var BA=0,sA=AA.elements;BA<sA.length;BA+=1){var QA=sA[BA];QA&&this.checkPatternExport(eA,QA)}else tA==="Property"?this.checkPatternExport(eA,AA.value):tA==="AssignmentPattern"?this.checkPatternExport(eA,AA.left):tA==="RestElement"&&this.checkPatternExport(eA,AA.argument)},pp$8.checkVariableExport=function(eA,AA){if(eA)for(var tA=0,gA=AA;tA<gA.length;tA+=1){var iA=gA[tA];this.checkPatternExport(eA,iA.id)}},pp$8.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()},pp$8.parseExportSpecifier=function(eA){var AA=this.startNode();return AA.local=this.parseModuleExportName(),AA.exported=this.eatContextual("as")?this.parseModuleExportName():AA.local,this.checkExport(eA,AA.exported,AA.exported.start),this.finishNode(AA,"ExportSpecifier")},pp$8.parseExportSpecifiers=function(eA){var AA=[],tA=!0;for(this.expect(types$1.braceL);!this.eat(types$1.braceR);){if(tA)tA=!1;else if(this.expect(types$1.comma),this.afterTrailingComma(types$1.braceR))break;AA.push(this.parseExportSpecifier(eA))}return AA},pp$8.parseImport=function(eA){return this.next(),this.type===types$1.string?(eA.specifiers=empty$1,eA.source=this.parseExprAtom()):(eA.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),eA.source=this.type===types$1.string?this.parseExprAtom():this.unexpected()),this.semicolon(),this.finishNode(eA,"ImportDeclaration")},pp$8.parseImportSpecifier=function(){var eA=this.startNode();return eA.imported=this.parseModuleExportName(),this.eatContextual("as")?eA.local=this.parseIdent():(this.checkUnreserved(eA.imported),eA.local=eA.imported),this.checkLValSimple(eA.local,BIND_LEXICAL),this.finishNode(eA,"ImportSpecifier")},pp$8.parseImportDefaultSpecifier=function(){var eA=this.startNode();return eA.local=this.parseIdent(),this.checkLValSimple(eA.local,BIND_LEXICAL),this.finishNode(eA,"ImportDefaultSpecifier")},pp$8.parseImportNamespaceSpecifier=function(){var eA=this.startNode();return this.next(),this.expectContextual("as"),eA.local=this.parseIdent(),this.checkLValSimple(eA.local,BIND_LEXICAL),this.finishNode(eA,"ImportNamespaceSpecifier")},pp$8.parseImportSpecifiers=function(){var eA=[],AA=!0;if(this.type===types$1.name&&(eA.push(this.parseImportDefaultSpecifier()),!this.eat(types$1.comma)))return eA;if(this.type===types$1.star)return eA.push(this.parseImportNamespaceSpecifier()),eA;for(this.expect(types$1.braceL);!this.eat(types$1.braceR);){if(AA)AA=!1;else if(this.expect(types$1.comma),this.afterTrailingComma(types$1.braceR))break;eA.push(this.parseImportSpecifier())}return eA},pp$8.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===types$1.string){var eA=this.parseLiteral(this.value);return loneSurrogate.test(eA.value)&&this.raise(eA.start,"An export name cannot include a lone surrogate."),eA}return this.parseIdent(!0)},pp$8.adaptDirectivePrologue=function(eA){for(var AA=0;AA<eA.length&&this.isDirectiveCandidate(eA[AA]);++AA)eA[AA].directive=eA[AA].expression.raw.slice(1,-1)},pp$8.isDirectiveCandidate=function(eA){return this.options.ecmaVersion>=5&&eA.type==="ExpressionStatement"&&eA.expression.type==="Literal"&&typeof eA.expression.value=="string"&&(this.input[eA.start]==='"'||this.input[eA.start]==="'")};var pp$7=Parser$1.prototype;pp$7.toAssignable=function(eA,AA,tA){if(this.options.ecmaVersion>=6&&eA)switch(eA.type){case"Identifier":this.inAsync&&eA.name==="await"&&this.raise(eA.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":eA.type="ObjectPattern",tA&&this.checkPatternErrors(tA,!0);for(var gA=0,iA=eA.properties;gA<iA.length;gA+=1){var IA=iA[gA];this.toAssignable(IA,AA),IA.type==="RestElement"&&(IA.argument.type==="ArrayPattern"||IA.argument.type==="ObjectPattern")&&this.raise(IA.argument.start,"Unexpected token")}break;case"Property":eA.kind!=="init"&&this.raise(eA.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(eA.value,AA);break;case"ArrayExpression":eA.type="ArrayPattern",tA&&this.checkPatternErrors(tA,!0),this.toAssignableList(eA.elements,AA);break;case"SpreadElement":eA.type="RestElement",this.toAssignable(eA.argument,AA),eA.argument.type==="AssignmentPattern"&&this.raise(eA.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":eA.operator!=="="&&this.raise(eA.left.end,"Only '=' operator can be used for specifying default value."),eA.type="AssignmentPattern",delete eA.operator,this.toAssignable(eA.left,AA);break;case"ParenthesizedExpression":this.toAssignable(eA.expression,AA,tA);break;case"ChainExpression":this.raiseRecoverable(eA.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!AA)break;default:this.raise(eA.start,"Assigning to rvalue")}else tA&&this.checkPatternErrors(tA,!0);return eA},pp$7.toAssignableList=function(eA,AA){for(var tA=eA.length,gA=0;gA<tA;gA++){var iA=eA[gA];iA&&this.toAssignable(iA,AA)}if(tA){var IA=eA[tA-1];this.options.ecmaVersion===6&&AA&&IA&&IA.type==="RestElement"&&IA.argument.type!=="Identifier"&&this.unexpected(IA.argument.start)}return eA},pp$7.parseSpread=function(eA){var AA=this.startNode();return this.next(),AA.argument=this.parseMaybeAssign(!1,eA),this.finishNode(AA,"SpreadElement")},pp$7.parseRestBinding=function(){var eA=this.startNode();return this.next(),this.options.ecmaVersion===6&&this.type!==types$1.name&&this.unexpected(),eA.argument=this.parseBindingAtom(),this.finishNode(eA,"RestElement")},pp$7.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case types$1.bracketL:var eA=this.startNode();return this.next(),eA.elements=this.parseBindingList(types$1.bracketR,!0,!0),this.finishNode(eA,"ArrayPattern");case types$1.braceL:return this.parseObj(!0)}return this.parseIdent()},pp$7.parseBindingList=function(eA,AA,tA,gA){for(var iA=[],IA=!0;!this.eat(eA);)if(IA?IA=!1:this.expect(types$1.comma),AA&&this.type===types$1.comma)iA.push(null);else{if(tA&&this.afterTrailingComma(eA))break;if(this.type===types$1.ellipsis){var BA=this.parseRestBinding();this.parseBindingListItem(BA),iA.push(BA),this.type===types$1.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.expect(eA);break}else iA.push(this.parseAssignableListItem(gA))}return iA},pp$7.parseAssignableListItem=function(eA){var AA=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(AA),AA},pp$7.parseBindingListItem=function(eA){return eA},pp$7.parseMaybeDefault=function(eA,AA,tA){if(tA=tA||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(types$1.eq))return tA;var gA=this.startNodeAt(eA,AA);return gA.left=tA,gA.right=this.parseMaybeAssign(),this.finishNode(gA,"AssignmentPattern")},pp$7.checkLValSimple=function(eA,AA,tA){AA===void 0&&(AA=BIND_NONE);var gA=AA!==BIND_NONE;switch(eA.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(eA.name)&&this.raiseRecoverable(eA.start,(gA?"Binding ":"Assigning to ")+eA.name+" in strict mode"),gA&&(AA===BIND_LEXICAL&&eA.name==="let"&&this.raiseRecoverable(eA.start,"let is disallowed as a lexically bound name"),tA&&(hasOwn(tA,eA.name)&&this.raiseRecoverable(eA.start,"Argument name clash"),tA[eA.name]=!0),AA!==BIND_OUTSIDE&&this.declareName(eA.name,AA,eA.start));break;case"ChainExpression":this.raiseRecoverable(eA.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":gA&&this.raiseRecoverable(eA.start,"Binding member expression");break;case"ParenthesizedExpression":return gA&&this.raiseRecoverable(eA.start,"Binding parenthesized expression"),this.checkLValSimple(eA.expression,AA,tA);default:this.raise(eA.start,(gA?"Binding":"Assigning to")+" rvalue")}},pp$7.checkLValPattern=function(eA,AA,tA){switch(AA===void 0&&(AA=BIND_NONE),eA.type){case"ObjectPattern":for(var gA=0,iA=eA.properties;gA<iA.length;gA+=1){var IA=iA[gA];this.checkLValInnerPattern(IA,AA,tA)}break;case"ArrayPattern":for(var BA=0,sA=eA.elements;BA<sA.length;BA+=1){var QA=sA[BA];QA&&this.checkLValInnerPattern(QA,AA,tA)}break;default:this.checkLValSimple(eA,AA,tA)}},pp$7.checkLValInnerPattern=function(eA,AA,tA){switch(AA===void 0&&(AA=BIND_NONE),eA.type){case"Property":this.checkLValInnerPattern(eA.value,AA,tA);break;case"AssignmentPattern":this.checkLValPattern(eA.left,AA,tA);break;case"RestElement":this.checkLValPattern(eA.argument,AA,tA);break;default:this.checkLValPattern(eA,AA,tA)}};var TokContext=function eA(AA,tA,gA,iA,IA){this.token=AA,this.isExpr=!!tA,this.preserveSpace=!!gA,this.override=iA,this.generator=!!IA},types={b_stat:new TokContext("{",!1),b_expr:new TokContext("{",!0),b_tmpl:new TokContext("${",!1),p_stat:new TokContext("(",!1),p_expr:new TokContext("(",!0),q_tmpl:new TokContext("`",!0,!0,function(eA){return eA.tryReadTemplateToken()}),f_stat:new TokContext("function",!1),f_expr:new TokContext("function",!0),f_expr_gen:new TokContext("function",!0,!1,null,!0),f_gen:new TokContext("function",!1,!1,null,!0)},pp$6=Parser$1.prototype;pp$6.initialContext=function(){return[types.b_stat]},pp$6.curContext=function(){return this.context[this.context.length-1]},pp$6.braceIsBlock=function(eA){var AA=this.curContext();return AA===types.f_expr||AA===types.f_stat?!0:eA===types$1.colon&&(AA===types.b_stat||AA===types.b_expr)?!AA.isExpr:eA===types$1._return||eA===types$1.name&&this.exprAllowed?lineBreak.test(this.input.slice(this.lastTokEnd,this.start)):eA===types$1._else||eA===types$1.semi||eA===types$1.eof||eA===types$1.parenR||eA===types$1.arrow?!0:eA===types$1.braceL?AA===types.b_stat:eA===types$1._var||eA===types$1._const||eA===types$1.name?!1:!this.exprAllowed},pp$6.inGeneratorContext=function(){for(var eA=this.context.length-1;eA>=1;eA--){var AA=this.context[eA];if(AA.token==="function")return AA.generator}return!1},pp$6.updateContext=function(eA){var AA,tA=this.type;tA.keyword&&eA===types$1.dot?this.exprAllowed=!1:(AA=tA.updateContext)?AA.call(this,eA):this.exprAllowed=tA.beforeExpr},pp$6.overrideContext=function(eA){this.curContext()!==eA&&(this.context[this.context.length-1]=eA)},types$1.parenR.updateContext=types$1.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=!0;return}var eA=this.context.pop();eA===types.b_stat&&this.curContext().token==="function"&&(eA=this.context.pop()),this.exprAllowed=!eA.isExpr},types$1.braceL.updateContext=function(eA){this.context.push(this.braceIsBlock(eA)?types.b_stat:types.b_expr),this.exprAllowed=!0},types$1.dollarBraceL.updateContext=function(){this.context.push(types.b_tmpl),this.exprAllowed=!0},types$1.parenL.updateContext=function(eA){var AA=eA===types$1._if||eA===types$1._for||eA===types$1._with||eA===types$1._while;this.context.push(AA?types.p_stat:types.p_expr),this.exprAllowed=!0},types$1.incDec.updateContext=function(){},types$1._function.updateContext=types$1._class.updateContext=function(eA){eA.beforeExpr&&eA!==types$1._else&&!(eA===types$1.semi&&this.curContext()!==types.p_stat)&&!(eA===types$1._return&&lineBreak.test(this.input.slice(this.lastTokEnd,this.start)))&&!((eA===types$1.colon||eA===types$1.braceL)&&this.curContext()===types.b_stat)?this.context.push(types.f_expr):this.context.push(types.f_stat),this.exprAllowed=!1},types$1.colon.updateContext=function(){this.curContext().token==="function"&&this.context.pop(),this.exprAllowed=!0},types$1.backQuote.updateContext=function(){this.curContext()===types.q_tmpl?this.context.pop():this.context.push(types.q_tmpl),this.exprAllowed=!1},types$1.star.updateContext=function(eA){if(eA===types$1._function){var AA=this.context.length-1;this.context[AA]===types.f_expr?this.context[AA]=types.f_expr_gen:this.context[AA]=types.f_gen}this.exprAllowed=!0},types$1.name.updateContext=function(eA){var AA=!1;this.options.ecmaVersion>=6&&eA!==types$1.dot&&(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())&&(AA=!0),this.exprAllowed=AA};var pp$5=Parser$1.prototype;pp$5.checkPropClash=function(eA,AA,tA){if(!(this.options.ecmaVersion>=9&&eA.type==="SpreadElement")&&!(this.options.ecmaVersion>=6&&(eA.computed||eA.method||eA.shorthand))){var gA=eA.key,iA;switch(gA.type){case"Identifier":iA=gA.name;break;case"Literal":iA=String(gA.value);break;default:return}var IA=eA.kind;if(this.options.ecmaVersion>=6){iA==="__proto__"&&IA==="init"&&(AA.proto&&(tA?tA.doubleProto<0&&(tA.doubleProto=gA.start):this.raiseRecoverable(gA.start,"Redefinition of __proto__ property")),AA.proto=!0);return}iA="$"+iA;var BA=AA[iA];if(BA){var sA;IA==="init"?sA=this.strict&&BA.init||BA.get||BA.set:sA=BA.init||BA[IA],sA&&this.raiseRecoverable(gA.start,"Redefinition of property")}else BA=AA[iA]={init:!1,get:!1,set:!1};BA[IA]=!0}},pp$5.parseExpression=function(eA,AA){var tA=this.start,gA=this.startLoc,iA=this.parseMaybeAssign(eA,AA);if(this.type===types$1.comma){var IA=this.startNodeAt(tA,gA);for(IA.expressions=[iA];this.eat(types$1.comma);)IA.expressions.push(this.parseMaybeAssign(eA,AA));return this.finishNode(IA,"SequenceExpression")}return iA},pp$5.parseMaybeAssign=function(eA,AA,tA){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(eA);this.exprAllowed=!1}var gA=!1,iA=-1,IA=-1,BA=-1;AA?(iA=AA.parenthesizedAssign,IA=AA.trailingComma,BA=AA.doubleProto,AA.parenthesizedAssign=AA.trailingComma=-1):(AA=new DestructuringErrors,gA=!0);var sA=this.start,QA=this.startLoc;(this.type===types$1.parenL||this.type===types$1.name)&&(this.potentialArrowAt=this.start,this.potentialArrowInForAwait=eA==="await");var CA=this.parseMaybeConditional(eA,AA);if(tA&&(CA=tA.call(this,CA,sA,QA)),this.type.isAssign){var oA=this.startNodeAt(sA,QA);return oA.operator=this.value,this.type===types$1.eq&&(CA=this.toAssignable(CA,!1,AA)),gA||(AA.parenthesizedAssign=AA.trailingComma=AA.doubleProto=-1),AA.shorthandAssign>=CA.start&&(AA.shorthandAssign=-1),this.type===types$1.eq?this.checkLValPattern(CA):this.checkLValSimple(CA),oA.left=CA,this.next(),oA.right=this.parseMaybeAssign(eA),BA>-1&&(AA.doubleProto=BA),this.finishNode(oA,"AssignmentExpression")}else gA&&this.checkExpressionErrors(AA,!0);return iA>-1&&(AA.parenthesizedAssign=iA),IA>-1&&(AA.trailingComma=IA),CA},pp$5.parseMaybeConditional=function(eA,AA){var tA=this.start,gA=this.startLoc,iA=this.parseExprOps(eA,AA);if(this.checkExpressionErrors(AA))return iA;if(this.eat(types$1.question)){var IA=this.startNodeAt(tA,gA);return IA.test=iA,IA.consequent=this.parseMaybeAssign(),this.expect(types$1.colon),IA.alternate=this.parseMaybeAssign(eA),this.finishNode(IA,"ConditionalExpression")}return iA},pp$5.parseExprOps=function(eA,AA){var tA=this.start,gA=this.startLoc,iA=this.parseMaybeUnary(AA,!1,!1,eA);return this.checkExpressionErrors(AA)||iA.start===tA&&iA.type==="ArrowFunctionExpression"?iA:this.parseExprOp(iA,tA,gA,-1,eA)},pp$5.parseExprOp=function(eA,AA,tA,gA,iA){var IA=this.type.binop;if(IA!=null&&(!iA||this.type!==types$1._in)&&IA>gA){var BA=this.type===types$1.logicalOR||this.type===types$1.logicalAND,sA=this.type===types$1.coalesce;sA&&(IA=types$1.logicalAND.binop);var QA=this.value;this.next();var CA=this.start,oA=this.startLoc,EA=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,iA),CA,oA,IA,iA),nA=this.buildBinary(AA,tA,eA,EA,QA,BA||sA);return(BA&&this.type===types$1.coalesce||sA&&(this.type===types$1.logicalOR||this.type===types$1.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(nA,AA,tA,gA,iA)}return eA},pp$5.buildBinary=function(eA,AA,tA,gA,iA,IA){gA.type==="PrivateIdentifier"&&this.raise(gA.start,"Private identifier can only be left side of binary expression");var BA=this.startNodeAt(eA,AA);return BA.left=tA,BA.operator=iA,BA.right=gA,this.finishNode(BA,IA?"LogicalExpression":"BinaryExpression")},pp$5.parseMaybeUnary=function(eA,AA,tA,gA){var iA=this.start,IA=this.startLoc,BA;if(this.isContextual("await")&&this.canAwait)BA=this.parseAwait(gA),AA=!0;else if(this.type.prefix){var sA=this.startNode(),QA=this.type===types$1.incDec;sA.operator=this.value,sA.prefix=!0,this.next(),sA.argument=this.parseMaybeUnary(null,!0,QA,gA),this.checkExpressionErrors(eA,!0),QA?this.checkLValSimple(sA.argument):this.strict&&sA.operator==="delete"&&isLocalVariableAccess(sA.argument)?this.raiseRecoverable(sA.start,"Deleting local variable in strict mode"):sA.operator==="delete"&&isPrivateFieldAccess(sA.argument)?this.raiseRecoverable(sA.start,"Private fields can not be deleted"):AA=!0,BA=this.finishNode(sA,QA?"UpdateExpression":"UnaryExpression")}else if(!AA&&this.type===types$1.privateId)(gA||this.privateNameStack.length===0)&&this.options.checkPrivateFields&&this.unexpected(),BA=this.parsePrivateIdent(),this.type!==types$1._in&&this.unexpected();else{if(BA=this.parseExprSubscripts(eA,gA),this.checkExpressionErrors(eA))return BA;for(;this.type.postfix&&!this.canInsertSemicolon();){var CA=this.startNodeAt(iA,IA);CA.operator=this.value,CA.prefix=!1,CA.argument=BA,this.checkLValSimple(BA),this.next(),BA=this.finishNode(CA,"UpdateExpression")}}if(!tA&&this.eat(types$1.starstar))if(AA)this.unexpected(this.lastTokStart);else return this.buildBinary(iA,IA,BA,this.parseMaybeUnary(null,!1,!1,gA),"**",!1);else return BA};function isLocalVariableAccess(eA){return eA.type==="Identifier"||eA.type==="ParenthesizedExpression"&&isLocalVariableAccess(eA.expression)}function isPrivateFieldAccess(eA){return eA.type==="MemberExpression"&&eA.property.type==="PrivateIdentifier"||eA.type==="ChainExpression"&&isPrivateFieldAccess(eA.expression)||eA.type==="ParenthesizedExpression"&&isPrivateFieldAccess(eA.expression)}pp$5.parseExprSubscripts=function(eA,AA){var tA=this.start,gA=this.startLoc,iA=this.parseExprAtom(eA,AA);if(iA.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return iA;var IA=this.parseSubscripts(iA,tA,gA,!1,AA);return eA&&IA.type==="MemberExpression"&&(eA.parenthesizedAssign>=IA.start&&(eA.parenthesizedAssign=-1),eA.parenthesizedBind>=IA.start&&(eA.parenthesizedBind=-1),eA.trailingComma>=IA.start&&(eA.trailingComma=-1)),IA},pp$5.parseSubscripts=function(eA,AA,tA,gA,iA){for(var IA=this.options.ecmaVersion>=8&&eA.type==="Identifier"&&eA.name==="async"&&this.lastTokEnd===eA.end&&!this.canInsertSemicolon()&&eA.end-eA.start===5&&this.potentialArrowAt===eA.start,BA=!1;;){var sA=this.parseSubscript(eA,AA,tA,gA,IA,BA,iA);if(sA.optional&&(BA=!0),sA===eA||sA.type==="ArrowFunctionExpression"){if(BA){var QA=this.startNodeAt(AA,tA);QA.expression=sA,sA=this.finishNode(QA,"ChainExpression")}return sA}eA=sA}},pp$5.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(types$1.arrow)},pp$5.parseSubscriptAsyncArrow=function(eA,AA,tA,gA){return this.parseArrowExpression(this.startNodeAt(eA,AA),tA,!0,gA)},pp$5.parseSubscript=function(eA,AA,tA,gA,iA,IA,BA){var sA=this.options.ecmaVersion>=11,QA=sA&&this.eat(types$1.questionDot);gA&&QA&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var CA=this.eat(types$1.bracketL);if(CA||QA&&this.type!==types$1.parenL&&this.type!==types$1.backQuote||this.eat(types$1.dot)){var oA=this.startNodeAt(AA,tA);oA.object=eA,CA?(oA.property=this.parseExpression(),this.expect(types$1.bracketR)):this.type===types$1.privateId&&eA.type!=="Super"?oA.property=this.parsePrivateIdent():oA.property=this.parseIdent(this.options.allowReserved!=="never"),oA.computed=!!CA,sA&&(oA.optional=QA),eA=this.finishNode(oA,"MemberExpression")}else if(!gA&&this.eat(types$1.parenL)){var EA=new DestructuringErrors,nA=this.yieldPos,cA=this.awaitPos,uA=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var lA=this.parseExprList(types$1.parenR,this.options.ecmaVersion>=8,!1,EA);if(iA&&!QA&&this.shouldParseAsyncArrow())return this.checkPatternErrors(EA,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=nA,this.awaitPos=cA,this.awaitIdentPos=uA,this.parseSubscriptAsyncArrow(AA,tA,lA,BA);this.checkExpressionErrors(EA,!0),this.yieldPos=nA||this.yieldPos,this.awaitPos=cA||this.awaitPos,this.awaitIdentPos=uA||this.awaitIdentPos;var hA=this.startNodeAt(AA,tA);hA.callee=eA,hA.arguments=lA,sA&&(hA.optional=QA),eA=this.finishNode(hA,"CallExpression")}else if(this.type===types$1.backQuote){(QA||IA)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var dA=this.startNodeAt(AA,tA);dA.tag=eA,dA.quasi=this.parseTemplate({isTagged:!0}),eA=this.finishNode(dA,"TaggedTemplateExpression")}return eA},pp$5.parseExprAtom=function(eA,AA,tA){this.type===types$1.slash&&this.readRegexp();var gA,iA=this.potentialArrowAt===this.start;switch(this.type){case types$1._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),gA=this.startNode(),this.next(),this.type===types$1.parenL&&!this.allowDirectSuper&&this.raise(gA.start,"super() call outside constructor of a subclass"),this.type!==types$1.dot&&this.type!==types$1.bracketL&&this.type!==types$1.parenL&&this.unexpected(),this.finishNode(gA,"Super");case types$1._this:return gA=this.startNode(),this.next(),this.finishNode(gA,"ThisExpression");case types$1.name:var IA=this.start,BA=this.startLoc,sA=this.containsEsc,QA=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!sA&&QA.name==="async"&&!this.canInsertSemicolon()&&this.eat(types$1._function))return this.overrideContext(types.f_expr),this.parseFunction(this.startNodeAt(IA,BA),0,!1,!0,AA);if(iA&&!this.canInsertSemicolon()){if(this.eat(types$1.arrow))return this.parseArrowExpression(this.startNodeAt(IA,BA),[QA],!1,AA);if(this.options.ecmaVersion>=8&&QA.name==="async"&&this.type===types$1.name&&!sA&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc))return QA=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(types$1.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(IA,BA),[QA],!0,AA)}return QA;case types$1.regexp:var CA=this.value;return gA=this.parseLiteral(CA.value),gA.regex={pattern:CA.pattern,flags:CA.flags},gA;case types$1.num:case types$1.string:return this.parseLiteral(this.value);case types$1._null:case types$1._true:case types$1._false:return gA=this.startNode(),gA.value=this.type===types$1._null?null:this.type===types$1._true,gA.raw=this.type.keyword,this.next(),this.finishNode(gA,"Literal");case types$1.parenL:var oA=this.start,EA=this.parseParenAndDistinguishExpression(iA,AA);return eA&&(eA.parenthesizedAssign<0&&!this.isSimpleAssignTarget(EA)&&(eA.parenthesizedAssign=oA),eA.parenthesizedBind<0&&(eA.parenthesizedBind=oA)),EA;case types$1.bracketL:return gA=this.startNode(),this.next(),gA.elements=this.parseExprList(types$1.bracketR,!0,!0,eA),this.finishNode(gA,"ArrayExpression");case types$1.braceL:return this.overrideContext(types.b_expr),this.parseObj(!1,eA);case types$1._function:return gA=this.startNode(),this.next(),this.parseFunction(gA,0);case types$1._class:return this.parseClass(this.startNode(),!1);case types$1._new:return this.parseNew();case types$1.backQuote:return this.parseTemplate();case types$1._import:return this.options.ecmaVersion>=11?this.parseExprImport(tA):this.unexpected();default:return this.parseExprAtomDefault()}},pp$5.parseExprAtomDefault=function(){this.unexpected()},pp$5.parseExprImport=function(eA){var AA=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===types$1.parenL&&!eA)return this.parseDynamicImport(AA);if(this.type===types$1.dot){var tA=this.startNodeAt(AA.start,AA.loc&&AA.loc.start);return tA.name="import",AA.meta=this.finishNode(tA,"Identifier"),this.parseImportMeta(AA)}else this.unexpected()},pp$5.parseDynamicImport=function(eA){if(this.next(),eA.source=this.parseMaybeAssign(),!this.eat(types$1.parenR)){var AA=this.start;this.eat(types$1.comma)&&this.eat(types$1.parenR)?this.raiseRecoverable(AA,"Trailing comma is not allowed in import()"):this.unexpected(AA)}return this.finishNode(eA,"ImportExpression")},pp$5.parseImportMeta=function(eA){this.next();var AA=this.containsEsc;return eA.property=this.parseIdent(!0),eA.property.name!=="meta"&&this.raiseRecoverable(eA.property.start,"The only valid meta property for import is 'import.meta'"),AA&&this.raiseRecoverable(eA.start,"'import.meta' must not contain escaped characters"),this.options.sourceType!=="module"&&!this.options.allowImportExportEverywhere&&this.raiseRecoverable(eA.start,"Cannot use 'import.meta' outside a module"),this.finishNode(eA,"MetaProperty")},pp$5.parseLiteral=function(eA){var AA=this.startNode();return AA.value=eA,AA.raw=this.input.slice(this.start,this.end),AA.raw.charCodeAt(AA.raw.length-1)===110&&(AA.bigint=AA.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(AA,"Literal")},pp$5.parseParenExpression=function(){this.expect(types$1.parenL);var eA=this.parseExpression();return this.expect(types$1.parenR),eA},pp$5.shouldParseArrow=function(eA){return!this.canInsertSemicolon()},pp$5.parseParenAndDistinguishExpression=function(eA,AA){var tA=this.start,gA=this.startLoc,iA,IA=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var BA=this.start,sA=this.startLoc,QA=[],CA=!0,oA=!1,EA=new DestructuringErrors,nA=this.yieldPos,cA=this.awaitPos,uA;for(this.yieldPos=0,this.awaitPos=0;this.type!==types$1.parenR;)if(CA?CA=!1:this.expect(types$1.comma),IA&&this.afterTrailingComma(types$1.parenR,!0)){oA=!0;break}else if(this.type===types$1.ellipsis){uA=this.start,QA.push(this.parseParenItem(this.parseRestBinding())),this.type===types$1.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}else QA.push(this.parseMaybeAssign(!1,EA,this.parseParenItem));var lA=this.lastTokEnd,hA=this.lastTokEndLoc;if(this.expect(types$1.parenR),eA&&this.shouldParseArrow(QA)&&this.eat(types$1.arrow))return this.checkPatternErrors(EA,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=nA,this.awaitPos=cA,this.parseParenArrowList(tA,gA,QA,AA);(!QA.length||oA)&&this.unexpected(this.lastTokStart),uA&&this.unexpected(uA),this.checkExpressionErrors(EA,!0),this.yieldPos=nA||this.yieldPos,this.awaitPos=cA||this.awaitPos,QA.length>1?(iA=this.startNodeAt(BA,sA),iA.expressions=QA,this.finishNodeAt(iA,"SequenceExpression",lA,hA)):iA=QA[0]}else iA=this.parseParenExpression();if(this.options.preserveParens){var dA=this.startNodeAt(tA,gA);return dA.expression=iA,this.finishNode(dA,"ParenthesizedExpression")}else return iA},pp$5.parseParenItem=function(eA){return eA},pp$5.parseParenArrowList=function(eA,AA,tA,gA){return this.parseArrowExpression(this.startNodeAt(eA,AA),tA,!1,gA)};var empty$2=[];pp$5.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var eA=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===types$1.dot){var AA=this.startNodeAt(eA.start,eA.loc&&eA.loc.start);AA.name="new",eA.meta=this.finishNode(AA,"Identifier"),this.next();var tA=this.containsEsc;return eA.property=this.parseIdent(!0),eA.property.name!=="target"&&this.raiseRecoverable(eA.property.start,"The only valid meta property for new is 'new.target'"),tA&&this.raiseRecoverable(eA.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(eA.start,"'new.target' can only be used in functions and class static block"),this.finishNode(eA,"MetaProperty")}var gA=this.start,iA=this.startLoc;return eA.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),gA,iA,!0,!1),this.eat(types$1.parenL)?eA.arguments=this.parseExprList(types$1.parenR,this.options.ecmaVersion>=8,!1):eA.arguments=empty$2,this.finishNode(eA,"NewExpression")},pp$5.parseTemplateElement=function(eA){var AA=eA.isTagged,tA=this.startNode();return this.type===types$1.invalidTemplate?(AA||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),tA.value={raw:this.value.replace(/\r\n?/g,`
|
|
7
7
|
`),cooked:null}):tA.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
|
|
@@ -56,10 +56,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
56
56
|
`?IA=!0:oA!=="\r"&&IA&&(IA=!1,sA===QA.start||(this._splitChunk(QA,sA),QA=QA.next),QA.prependRight(AA))}sA+=1}sA=QA.end,QA=QA.next}return this.outro=this.outro.replace(gA,BA),this}insert(){throw new Error("magicString.insert(...) is deprecated. Use prependRight(...) or appendLeft(...)")}insertLeft(AA,tA){return warned$1.insertLeft||(console.warn("magicString.insertLeft(...) is deprecated. Use magicString.appendLeft(...) instead"),warned$1.insertLeft=!0),this.appendLeft(AA,tA)}insertRight(AA,tA){return warned$1.insertRight||(console.warn("magicString.insertRight(...) is deprecated. Use magicString.prependRight(...) instead"),warned$1.insertRight=!0),this.prependRight(AA,tA)}move(AA,tA,gA){if(gA>=AA&&gA<=tA)throw new Error("Cannot move a selection inside itself");this._split(AA),this._split(tA),this._split(gA);const iA=this.byStart[AA],IA=this.byEnd[tA],BA=iA.previous,sA=IA.next,QA=this.byStart[gA];if(!QA&&IA===this.lastChunk)return this;const CA=QA?QA.previous:this.lastChunk;return BA&&(BA.next=sA),sA&&(sA.previous=BA),CA&&(CA.next=iA),QA&&(QA.previous=IA),iA.previous||(this.firstChunk=IA.next),IA.next||(this.lastChunk=iA.previous,this.lastChunk.next=null),iA.previous=CA,IA.next=QA||null,CA||(this.firstChunk=iA),QA||(this.lastChunk=IA),this}overwrite(AA,tA,gA,iA){return iA=iA||{},this.update(AA,tA,gA,{...iA,overwrite:!iA.contentOnly})}update(AA,tA,gA,iA){if(typeof gA!="string")throw new TypeError("replacement content must be a string");if(this.original.length!==0){for(;AA<0;)AA+=this.original.length;for(;tA<0;)tA+=this.original.length}if(tA>this.original.length)throw new Error("end is out of bounds");if(AA===tA)throw new Error("Cannot overwrite a zero-length range – use appendLeft or prependRight instead");this._split(AA),this._split(tA),iA===!0&&(warned$1.storeName||(console.warn("The final argument to magicString.overwrite(...) should be an options object. See https://github.com/rich-harris/magic-string"),warned$1.storeName=!0),iA={storeName:!0});const IA=iA!==void 0?iA.storeName:!1,BA=iA!==void 0?iA.overwrite:!1;if(IA){const CA=this.original.slice(AA,tA);Object.defineProperty(this.storedNames,CA,{writable:!0,value:!0,enumerable:!0})}const sA=this.byStart[AA],QA=this.byEnd[tA];if(sA){let CA=sA;for(;CA!==QA;){if(CA.next!==this.byStart[CA.end])throw new Error("Cannot overwrite across a split point");CA=CA.next,CA.edit("",!1)}sA.edit(gA,IA,!BA)}else{const CA=new Chunk(AA,tA,"").edit(gA,IA);QA.next=CA,CA.previous=QA}return this}prepend(AA){if(typeof AA!="string")throw new TypeError("outro content must be a string");return this.intro=AA+this.intro,this}prependLeft(AA,tA){if(typeof tA!="string")throw new TypeError("inserted content must be a string");this._split(AA);const gA=this.byEnd[AA];return gA?gA.prependLeft(tA):this.intro=tA+this.intro,this}prependRight(AA,tA){if(typeof tA!="string")throw new TypeError("inserted content must be a string");this._split(AA);const gA=this.byStart[AA];return gA?gA.prependRight(tA):this.outro=tA+this.outro,this}remove(AA,tA){if(this.original.length!==0){for(;AA<0;)AA+=this.original.length;for(;tA<0;)tA+=this.original.length}if(AA===tA)return this;if(AA<0||tA>this.original.length)throw new Error("Character is out of bounds");if(AA>tA)throw new Error("end must be greater than start");this._split(AA),this._split(tA);let gA=this.byStart[AA];for(;gA;)gA.intro="",gA.outro="",gA.edit(""),gA=tA>gA.end?this.byStart[gA.end]:null;return this}reset(AA,tA){if(this.original.length!==0){for(;AA<0;)AA+=this.original.length;for(;tA<0;)tA+=this.original.length}if(AA===tA)return this;if(AA<0||tA>this.original.length)throw new Error("Character is out of bounds");if(AA>tA)throw new Error("end must be greater than start");this._split(AA),this._split(tA);let gA=this.byStart[AA];for(;gA;)gA.reset(),gA=tA>gA.end?this.byStart[gA.end]:null;return this}lastChar(){if(this.outro.length)return this.outro[this.outro.length-1];let AA=this.lastChunk;do{if(AA.outro.length)return AA.outro[AA.outro.length-1];if(AA.content.length)return AA.content[AA.content.length-1];if(AA.intro.length)return AA.intro[AA.intro.length-1]}while(AA=AA.previous);return this.intro.length?this.intro[this.intro.length-1]:""}lastLine(){let AA=this.outro.lastIndexOf(n$1);if(AA!==-1)return this.outro.substr(AA+1);let tA=this.outro,gA=this.lastChunk;do{if(gA.outro.length>0){if(AA=gA.outro.lastIndexOf(n$1),AA!==-1)return gA.outro.substr(AA+1)+tA;tA=gA.outro+tA}if(gA.content.length>0){if(AA=gA.content.lastIndexOf(n$1),AA!==-1)return gA.content.substr(AA+1)+tA;tA=gA.content+tA}if(gA.intro.length>0){if(AA=gA.intro.lastIndexOf(n$1),AA!==-1)return gA.intro.substr(AA+1)+tA;tA=gA.intro+tA}}while(gA=gA.previous);return AA=this.intro.lastIndexOf(n$1),AA!==-1?this.intro.substr(AA+1)+tA:this.intro+tA}slice(AA=0,tA=this.original.length){if(this.original.length!==0){for(;AA<0;)AA+=this.original.length;for(;tA<0;)tA+=this.original.length}let gA="",iA=this.firstChunk;for(;iA&&(iA.start>AA||iA.end<=AA);){if(iA.start<tA&&iA.end>=tA)return gA;iA=iA.next}if(iA&&iA.edited&&iA.start!==AA)throw new Error(`Cannot use replaced character ${AA} as slice start anchor.`);const IA=iA;for(;iA;){iA.intro&&(IA!==iA||iA.start===AA)&&(gA+=iA.intro);const BA=iA.start<tA&&iA.end>=tA;if(BA&&iA.edited&&iA.end!==tA)throw new Error(`Cannot use replaced character ${tA} as slice end anchor.`);const sA=IA===iA?AA-iA.start:0,QA=BA?iA.content.length+tA-iA.end:iA.content.length;if(gA+=iA.content.slice(sA,QA),iA.outro&&(!BA||iA.end===tA)&&(gA+=iA.outro),BA)break;iA=iA.next}return gA}snip(AA,tA){const gA=this.clone();return gA.remove(0,AA),gA.remove(tA,gA.original.length),gA}_split(AA){if(this.byStart[AA]||this.byEnd[AA])return;let tA=this.lastSearchedChunk;const gA=AA>tA.end;for(;tA;){if(tA.contains(AA))return this._splitChunk(tA,AA);tA=gA?this.byStart[tA.end]:this.byEnd[tA.start]}}_splitChunk(AA,tA){if(AA.edited&&AA.content.length){const iA=getLocator(this.original)(tA);throw new Error(`Cannot split a chunk that has already been edited (${iA.line}:${iA.column} – "${AA.original}")`)}const gA=AA.split(tA);return this.byEnd[tA]=AA,this.byStart[tA]=gA,this.byEnd[gA.end]=gA,AA===this.lastChunk&&(this.lastChunk=gA),this.lastSearchedChunk=AA,!0}toString(){let AA=this.intro,tA=this.firstChunk;for(;tA;)AA+=tA.toString(),tA=tA.next;return AA+this.outro}isEmpty(){let AA=this.firstChunk;do if(AA.intro.length&&AA.intro.trim()||AA.content.length&&AA.content.trim()||AA.outro.length&&AA.outro.trim())return!1;while(AA=AA.next);return!0}length(){let AA=this.firstChunk,tA=0;do tA+=AA.intro.length+AA.content.length+AA.outro.length;while(AA=AA.next);return tA}trimLines(){return this.trim("[\\r\\n]")}trim(AA){return this.trimStart(AA).trimEnd(AA)}trimEndAborted(AA){const tA=new RegExp((AA||"\\s")+"+$");if(this.outro=this.outro.replace(tA,""),this.outro.length)return!0;let gA=this.lastChunk;do{const iA=gA.end,IA=gA.trimEnd(tA);if(gA.end!==iA&&(this.lastChunk===gA&&(this.lastChunk=gA.next),this.byEnd[gA.end]=gA,this.byStart[gA.next.start]=gA.next,this.byEnd[gA.next.end]=gA.next),IA)return!0;gA=gA.previous}while(gA);return!1}trimEnd(AA){return this.trimEndAborted(AA),this}trimStartAborted(AA){const tA=new RegExp("^"+(AA||"\\s")+"+");if(this.intro=this.intro.replace(tA,""),this.intro.length)return!0;let gA=this.firstChunk;do{const iA=gA.end,IA=gA.trimStart(tA);if(gA.end!==iA&&(gA===this.lastChunk&&(this.lastChunk=gA.next),this.byEnd[gA.end]=gA,this.byStart[gA.next.start]=gA.next,this.byEnd[gA.next.end]=gA.next),IA)return!0;gA=gA.next}while(gA);return!1}trimStart(AA){return this.trimStartAborted(AA),this}hasChanged(){return this.original!==this.toString()}_replaceRegexp(AA,tA){function gA(IA,BA){return typeof tA=="string"?tA.replace(/\$(\$|&|\d+)/g,(sA,QA)=>QA==="$"?"$":QA==="&"?IA[0]:+QA<IA.length?IA[+QA]:`$${QA}`):tA(...IA,IA.index,BA,IA.groups)}function iA(IA,BA){let sA;const QA=[];for(;sA=IA.exec(BA);)QA.push(sA);return QA}if(AA.global)iA(AA,this.original).forEach(BA=>{if(BA.index!=null){const sA=gA(BA,this.original);sA!==BA[0]&&this.overwrite(BA.index,BA.index+BA[0].length,sA)}});else{const IA=this.original.match(AA);if(IA&&IA.index!=null){const BA=gA(IA,this.original);BA!==IA[0]&&this.overwrite(IA.index,IA.index+IA[0].length,BA)}}return this}_replaceString(AA,tA){const{original:gA}=this,iA=gA.indexOf(AA);return iA!==-1&&this.overwrite(iA,iA+AA.length,tA),this}replace(AA,tA){return typeof AA=="string"?this._replaceString(AA,tA):this._replaceRegexp(AA,tA)}_replaceAllString(AA,tA){const{original:gA}=this,iA=AA.length;for(let IA=gA.indexOf(AA);IA!==-1;IA=gA.indexOf(AA,IA+iA))gA.slice(IA,IA+iA)!==tA&&this.overwrite(IA,IA+iA,tA);return this}replaceAll(AA,tA){if(typeof AA=="string")return this._replaceAllString(AA,tA);if(!AA.global)throw new TypeError("MagicString.prototype.replaceAll called with a non-global RegExp argument");return this._replaceRegexp(AA,tA)}}var remapping_umd={exports:{}},traceMapping_umd={exports:{}},resolveUri_umd={exports:{}},hasRequiredResolveUri_umd;function requireResolveUri_umd(){return hasRequiredResolveUri_umd||(hasRequiredResolveUri_umd=1,function(eA,AA){(function(tA,gA){eA.exports=gA()})(commonjsGlobal,function(){const tA=/^[\w+.-]+:\/\//,gA=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,iA=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;function IA(DA){return tA.test(DA)}function BA(DA){return DA.startsWith("//")}function sA(DA){return DA.startsWith("/")}function QA(DA){return DA.startsWith("file:")}function CA(DA){return/^[.?#]/.test(DA)}function oA(DA){const wA=gA.exec(DA);return nA(wA[1],wA[2]||"",wA[3],wA[4]||"",wA[5]||"/",wA[6]||"",wA[7]||"")}function EA(DA){const wA=iA.exec(DA),RA=wA[2];return nA("file:","",wA[1]||"","",sA(RA)?RA:"/"+RA,wA[3]||"",wA[4]||"")}function nA(DA,wA,RA,GA,yA,LA,KA){return{scheme:DA,user:wA,host:RA,port:GA,path:yA,query:LA,hash:KA,type:7}}function cA(DA){if(BA(DA)){const RA=oA("http:"+DA);return RA.scheme="",RA.type=6,RA}if(sA(DA)){const RA=oA("http://foo.com"+DA);return RA.scheme="",RA.host="",RA.type=5,RA}if(QA(DA))return EA(DA);if(IA(DA))return oA(DA);const wA=oA("http://foo.com/"+DA);return wA.scheme="",wA.host="",wA.type=DA?DA.startsWith("?")?3:DA.startsWith("#")?2:4:1,wA}function uA(DA){if(DA.endsWith("/.."))return DA;const wA=DA.lastIndexOf("/");return DA.slice(0,wA+1)}function lA(DA,wA){hA(wA,wA.type),DA.path==="/"?DA.path=wA.path:DA.path=uA(wA.path)+DA.path}function hA(DA,wA){const RA=wA<=4,GA=DA.path.split("/");let yA=1,LA=0,KA=!1;for(let SA=1;SA<GA.length;SA++){const MA=GA[SA];if(!MA){KA=!0;continue}if(KA=!1,MA!=="."){if(MA===".."){LA?(KA=!0,LA--,yA--):RA&&(GA[yA++]=MA);continue}GA[yA++]=MA,LA++}}let bA="";for(let SA=1;SA<yA;SA++)bA+="/"+GA[SA];(!bA||KA&&!bA.endsWith("/.."))&&(bA+="/"),DA.path=bA}function dA(DA,wA){if(!DA&&!wA)return"";const RA=cA(DA);let GA=RA.type;if(wA&&GA!==7){const LA=cA(wA),KA=LA.type;switch(GA){case 1:RA.hash=LA.hash;case 2:RA.query=LA.query;case 3:case 4:lA(RA,LA);case 5:RA.user=LA.user,RA.host=LA.host,RA.port=LA.port;case 6:RA.scheme=LA.scheme}KA>GA&&(GA=KA)}hA(RA,GA);const yA=RA.query+RA.hash;switch(GA){case 2:case 3:return yA;case 4:{const LA=RA.path.slice(1);return LA?CA(wA||DA)&&!CA(LA)?"./"+LA+yA:LA+yA:yA||"."}case 5:return RA.path+yA;default:return RA.scheme+"//"+RA.user+RA.host+RA.port+RA.path+yA}}return dA})}(resolveUri_umd)),resolveUri_umd.exports}var hasRequiredTraceMapping_umd;function requireTraceMapping_umd(){return hasRequiredTraceMapping_umd||(hasRequiredTraceMapping_umd=1,function(eA,AA){(function(tA,gA){gA(AA,sourcemapCodec_umdExports,requireResolveUri_umd())})(commonjsGlobal,function(tA,gA,iA){function IA(_A,VA){return VA&&!VA.endsWith("/")&&(VA+="/"),iA(_A,VA)}function BA(_A){if(!_A)return"";const VA=_A.lastIndexOf("/");return _A.slice(0,VA+1)}const sA=0,QA=1,CA=2,oA=3,EA=4,nA=1,cA=2;function uA(_A,VA){const OA=lA(_A,0);if(OA===_A.length)return _A;VA||(_A=_A.slice());for(let jA=OA;jA<_A.length;jA=lA(_A,jA+1))_A[jA]=dA(_A[jA],VA);return _A}function lA(_A,VA){for(let OA=VA;OA<_A.length;OA++)if(!hA(_A[OA]))return OA;return _A.length}function hA(_A){for(let VA=1;VA<_A.length;VA++)if(_A[VA][sA]<_A[VA-1][sA])return!1;return!0}function dA(_A,VA){return VA||(_A=_A.slice()),_A.sort(DA)}function DA(_A,VA){return _A[sA]-VA[sA]}let wA=!1;function RA(_A,VA,OA,jA){for(;OA<=jA;){const XA=OA+(jA-OA>>1),zA=_A[XA][sA]-VA;if(zA===0)return wA=!0,XA;zA<0?OA=XA+1:jA=XA-1}return wA=!1,OA-1}function GA(_A,VA,OA){for(let jA=OA+1;jA<_A.length&&_A[jA][sA]===VA;OA=jA++);return OA}function yA(_A,VA,OA){for(let jA=OA-1;jA>=0&&_A[jA][sA]===VA;OA=jA--);return OA}function LA(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function KA(_A,VA,OA,jA){const{lastKey:XA,lastNeedle:zA,lastIndex:tg}=OA;let Cg=0,gg=_A.length-1;if(jA===XA){if(VA===zA)return wA=tg!==-1&&_A[tg][sA]===VA,tg;VA>=zA?Cg=tg===-1?0:tg:gg=tg}return OA.lastKey=jA,OA.lastNeedle=VA,OA.lastIndex=RA(_A,VA,Cg,gg)}function bA(_A,VA){const OA=VA.map(MA);for(let jA=0;jA<_A.length;jA++){const XA=_A[jA];for(let zA=0;zA<XA.length;zA++){const tg=XA[zA];if(tg.length===1)continue;const Cg=tg[QA],gg=tg[CA],Qg=tg[oA],Dg=OA[Cg],ng=Dg[gg]||(Dg[gg]=[]),Eg=VA[Cg];let dg=GA(ng,Qg,KA(ng,Qg,Eg,gg));Eg.lastIndex=++dg,SA(ng,dg,[Qg,jA,tg[sA]])}}return OA}function SA(_A,VA,OA){for(let jA=_A.length;jA>VA;jA--)_A[jA]=_A[jA-1];_A[VA]=OA}function MA(){return{__proto__:null}}const NA=function(_A,VA){const OA=FA(_A);if(!("sections"in OA))return new JA(OA,VA);const jA=[],XA=[],zA=[],tg=[],Cg=[];qA(OA,VA,jA,XA,zA,tg,Cg,0,0,1/0,1/0);const gg={version:3,file:OA.file,names:tg,sources:XA,sourcesContent:zA,mappings:jA,ignoreList:Cg};return sg(gg)};function FA(_A){return typeof _A=="string"?JSON.parse(_A):_A}function qA(_A,VA,OA,jA,XA,zA,tg,Cg,gg,Qg,Dg){const{sections:ng}=_A;for(let Eg=0;Eg<ng.length;Eg++){const{map:dg,offset:Mg}=ng[Eg];let Jg=Qg,bg=Dg;if(Eg+1<ng.length){const Ug=ng[Eg+1].offset;Jg=Math.min(Qg,Cg+Ug.line),Jg===Qg?bg=Math.min(Dg,gg+Ug.column):Jg<Qg&&(bg=gg+Ug.column)}UA(dg,VA,OA,jA,XA,zA,tg,Cg+Mg.line,gg+Mg.column,Jg,bg)}}function UA(_A,VA,OA,jA,XA,zA,tg,Cg,gg,Qg,Dg){const ng=FA(_A);if("sections"in ng)return qA(...arguments);const Eg=new JA(ng,VA),dg=jA.length,Mg=zA.length,Jg=vA(Eg),{resolvedSources:bg,sourcesContent:Ug,ignoreList:Kg}=Eg;if(mA(jA,bg),mA(zA,Eg.names),Ug)mA(XA,Ug);else for(let fg=0;fg<bg.length;fg++)XA.push(null);if(Kg)for(let fg=0;fg<Kg.length;fg++)tg.push(Kg[fg]+dg);for(let fg=0;fg<Jg.length;fg++){const vg=Cg+fg;if(vg>Qg)return;const $g=aA(OA,vg),tI=fg===0?gg:0,zg=Jg[fg];for(let _g=0;_g<zg.length;_g++){const Lg=zg[_g],xg=tI+Lg[sA];if(vg===Qg&&xg>=Dg)return;if(Lg.length===1){$g.push([xg]);continue}const Zg=dg+Lg[QA],Wg=Lg[CA],Xg=Lg[oA];$g.push(Lg.length===4?[xg,Zg,Wg,Xg]:[xg,Zg,Wg,Xg,Mg+Lg[EA]])}}}function mA(_A,VA){for(let OA=0;OA<VA.length;OA++)_A.push(VA[OA])}function aA(_A,VA){for(let OA=_A.length;OA<=VA;OA++)_A[OA]=[];return _A[VA]}const rA="`line` must be greater than 0 (lines start at line 1)",pA="`column` must be greater than or equal to 0 (columns start at column 0)",fA=-1,kA=1;class JA{constructor(VA,OA){const jA=typeof VA=="string";if(!jA&&VA._decodedMemo)return VA;const XA=jA?JSON.parse(VA):VA,{version:zA,file:tg,names:Cg,sourceRoot:gg,sources:Qg,sourcesContent:Dg}=XA;this.version=zA,this.file=tg,this.names=Cg||[],this.sourceRoot=gg,this.sources=Qg,this.sourcesContent=Dg,this.ignoreList=XA.ignoreList||XA.x_google_ignoreList||void 0;const ng=IA(gg||"",BA(OA));this.resolvedSources=Qg.map(dg=>IA(dg||"",ng));const{mappings:Eg}=XA;typeof Eg=="string"?(this._encoded=Eg,this._decoded=void 0):(this._encoded=void 0,this._decoded=uA(Eg,jA)),this._decodedMemo=LA(),this._bySources=void 0,this._bySourceMemos=void 0}}function YA(_A){return _A}function xA(_A){var VA,OA;return(VA=(OA=_A)._encoded)!==null&&VA!==void 0?VA:OA._encoded=gA.encode(_A._decoded)}function vA(_A){var VA;return(VA=_A)._decoded||(VA._decoded=gA.decode(_A._encoded))}function HA(_A,VA,OA){const jA=vA(_A);if(VA>=jA.length)return null;const XA=jA[VA],zA=og(XA,_A._decodedMemo,VA,OA,kA);return zA===-1?null:XA[zA]}function PA(_A,VA){let{line:OA,column:jA,bias:XA}=VA;if(OA--,OA<0)throw new Error(rA);if(jA<0)throw new Error(pA);const zA=vA(_A);if(OA>=zA.length)return hg(null,null,null,null);const tg=zA[OA],Cg=og(tg,_A._decodedMemo,OA,jA,XA||kA);if(Cg===-1)return hg(null,null,null,null);const gg=tg[Cg];if(gg.length===1)return hg(null,null,null,null);const{names:Qg,resolvedSources:Dg}=_A;return hg(Dg[gg[QA]],gg[CA]+1,gg[oA],gg.length===5?Qg[gg[EA]]:null)}function $A(_A,VA){const{source:OA,line:jA,column:XA,bias:zA}=VA;return Fg(_A,OA,jA,XA,zA||kA,!1)}function TA(_A,VA){const{source:OA,line:jA,column:XA,bias:zA}=VA;return Fg(_A,OA,jA,XA,zA||fA,!0)}function WA(_A,VA){const OA=vA(_A),{names:jA,resolvedSources:XA}=_A;for(let zA=0;zA<OA.length;zA++){const tg=OA[zA];for(let Cg=0;Cg<tg.length;Cg++){const gg=tg[Cg],Qg=zA+1,Dg=gg[0];let ng=null,Eg=null,dg=null,Mg=null;gg.length!==1&&(ng=XA[gg[1]],Eg=gg[2]+1,dg=gg[3]),gg.length===5&&(Mg=jA[gg[4]]),VA({generatedLine:Qg,generatedColumn:Dg,source:ng,originalLine:Eg,originalColumn:dg,name:Mg})}}}function ZA(_A,VA){const{sources:OA,resolvedSources:jA}=_A;let XA=OA.indexOf(VA);return XA===-1&&(XA=jA.indexOf(VA)),XA}function Ag(_A,VA){const{sourcesContent:OA}=_A;if(OA==null)return null;const jA=ZA(_A,VA);return jA===-1?null:OA[jA]}function eg(_A,VA){const{ignoreList:OA}=_A;if(OA==null)return!1;const jA=ZA(_A,VA);return jA===-1?!1:OA.includes(jA)}function sg(_A,VA){const OA=new JA(pg(_A,[]),VA);return OA._decoded=_A.mappings,OA}function ug(_A){return pg(_A,vA(_A))}function yg(_A){return pg(_A,xA(_A))}function pg(_A,VA){return{version:_A.version,file:_A.file,names:_A.names,sourceRoot:_A.sourceRoot,sources:_A.sources,sourcesContent:_A.sourcesContent,mappings:VA,ignoreList:_A.ignoreList||_A.x_google_ignoreList}}function hg(_A,VA,OA,jA){return{source:_A,line:VA,column:OA,name:jA}}function wg(_A,VA){return{line:_A,column:VA}}function og(_A,VA,OA,jA,XA){let zA=KA(_A,jA,VA,OA);return wA?zA=(XA===fA?GA:yA)(_A,jA,zA):XA===fA&&zA++,zA===-1||zA===_A.length?-1:zA}function kg(_A,VA,OA,jA,XA){let zA=og(_A,VA,OA,jA,kA);if(!wA&&XA===fA&&zA++,zA===-1||zA===_A.length)return[];const tg=wA?jA:_A[zA][sA];wA||(zA=yA(_A,tg,zA));const Cg=GA(_A,tg,zA),gg=[];for(;zA<=Cg;zA++){const Qg=_A[zA];gg.push(wg(Qg[nA]+1,Qg[cA]))}return gg}function Fg(_A,VA,OA,jA,XA,zA){var tg;if(OA--,OA<0)throw new Error(rA);if(jA<0)throw new Error(pA);const{sources:Cg,resolvedSources:gg}=_A;let Qg=Cg.indexOf(VA);if(Qg===-1&&(Qg=gg.indexOf(VA)),Qg===-1)return zA?[]:wg(null,null);const ng=((tg=_A)._bySources||(tg._bySources=bA(vA(_A),_A._bySourceMemos=Cg.map(LA))))[Qg][OA];if(ng==null)return zA?[]:wg(null,null);const Eg=_A._bySourceMemos[Qg];if(zA)return kg(ng,Eg,OA,jA,XA);const dg=og(ng,Eg,OA,jA,XA);if(dg===-1)return wg(null,null);const Mg=ng[dg];return wg(Mg[nA]+1,Mg[cA])}tA.AnyMap=NA,tA.GREATEST_LOWER_BOUND=kA,tA.LEAST_UPPER_BOUND=fA,tA.TraceMap=JA,tA.allGeneratedPositionsFor=TA,tA.decodedMap=ug,tA.decodedMappings=vA,tA.eachMapping=WA,tA.encodedMap=yg,tA.encodedMappings=xA,tA.generatedPositionFor=$A,tA.isIgnored=eg,tA.originalPositionFor=PA,tA.presortedDecodedMap=sg,tA.sourceContentFor=Ag,tA.traceSegment=HA})}(traceMapping_umd,traceMapping_umd.exports)),traceMapping_umd.exports}var genMapping_umd={exports:{}},setArray_umd={exports:{}},hasRequiredSetArray_umd;function requireSetArray_umd(){return hasRequiredSetArray_umd||(hasRequiredSetArray_umd=1,function(eA,AA){(function(tA,gA){gA(AA)})(commonjsGlobal,function(tA){class gA{constructor(){this._indexes={__proto__:null},this.array=[]}}function iA(CA){return CA}function IA(CA,oA){return CA._indexes[oA]}function BA(CA,oA){const EA=IA(CA,oA);if(EA!==void 0)return EA;const{array:nA,_indexes:cA}=CA,uA=nA.push(oA);return cA[oA]=uA-1}function sA(CA){const{array:oA,_indexes:EA}=CA;if(oA.length===0)return;const nA=oA.pop();EA[nA]=void 0}function QA(CA,oA){const EA=IA(CA,oA);if(EA===void 0)return;const{array:nA,_indexes:cA}=CA;for(let uA=EA+1;uA<nA.length;uA++){const lA=nA[uA];nA[uA-1]=lA,cA[lA]--}cA[oA]=void 0,nA.pop()}tA.SetArray=gA,tA.get=IA,tA.pop=sA,tA.put=BA,tA.remove=QA,Object.defineProperty(tA,"__esModule",{value:!0})})}(setArray_umd,setArray_umd.exports)),setArray_umd.exports}var hasRequiredGenMapping_umd;function requireGenMapping_umd(){return hasRequiredGenMapping_umd||(hasRequiredGenMapping_umd=1,function(eA,AA){(function(tA,gA){gA(AA,requireSetArray_umd(),sourcemapCodec_umdExports,requireTraceMapping_umd())})(commonjsGlobal,function(tA,gA,iA,IA){class nA{constructor({file:rA,sourceRoot:pA}={}){this._names=new gA.SetArray,this._sources=new gA.SetArray,this._sourcesContent=[],this._mappings=[],this.file=rA,this.sourceRoot=pA,this._ignoreList=new gA.SetArray}}function cA(aA){return aA}function uA(aA,rA,pA,fA,kA,JA,YA,xA){return KA(!1,aA,rA,pA,fA,kA,JA,YA,xA)}function lA(aA,rA){return mA(!1,aA,rA)}const hA=(aA,rA,pA,fA,kA,JA,YA,xA)=>KA(!0,aA,rA,pA,fA,kA,JA,YA,xA),dA=(aA,rA)=>mA(!0,aA,rA);function DA(aA,rA,pA){const{_sources:fA,_sourcesContent:kA}=aA,JA=gA.put(fA,rA);kA[JA]=pA}function wA(aA,rA,pA=!0){const{_sources:fA,_sourcesContent:kA,_ignoreList:JA}=aA,YA=gA.put(fA,rA);YA===kA.length&&(kA[YA]=null),pA?gA.put(JA,YA):gA.remove(JA,YA)}function RA(aA){const{_mappings:rA,_sources:pA,_sourcesContent:fA,_names:kA,_ignoreList:JA}=aA;return NA(rA),{version:3,file:aA.file||void 0,names:kA.array,sourceRoot:aA.sourceRoot||void 0,sources:pA.array,sourcesContent:fA,mappings:rA,ignoreList:JA.array}}function GA(aA){const rA=RA(aA);return Object.assign(Object.assign({},rA),{mappings:iA.encode(rA.mappings)})}function yA(aA){const rA=new IA.TraceMap(aA),pA=new nA({file:rA.file,sourceRoot:rA.sourceRoot});return FA(pA._names,rA.names),FA(pA._sources,rA.sources),pA._sourcesContent=rA.sourcesContent||rA.sources.map(()=>null),pA._mappings=IA.decodedMappings(rA),rA.ignoreList&&FA(pA._ignoreList,rA.ignoreList),pA}function LA(aA){const rA=[],{_mappings:pA,_sources:fA,_names:kA}=aA;for(let JA=0;JA<pA.length;JA++){const YA=pA[JA];for(let xA=0;xA<YA.length;xA++){const vA=YA[xA],HA={line:JA+1,column:vA[0]};let PA,$A,TA;vA.length!==1&&(PA=fA.array[vA[1]],$A={line:vA[2]+1,column:vA[3]},vA.length===5&&(TA=kA.array[vA[4]])),rA.push({generated:HA,source:PA,original:$A,name:TA})}}return rA}function KA(aA,rA,pA,fA,kA,JA,YA,xA,vA){const{_mappings:HA,_sources:PA,_sourcesContent:$A,_names:TA}=rA,WA=bA(HA,pA),ZA=SA(WA,fA);if(!kA)return aA&&qA(WA,ZA)?void 0:MA(WA,ZA,[fA]);const Ag=gA.put(PA,kA),eg=xA?gA.put(TA,xA):-1;if(Ag===$A.length&&($A[Ag]=vA??null),!(aA&&UA(WA,ZA,Ag,JA,YA,eg)))return MA(WA,ZA,xA?[fA,Ag,JA,YA,eg]:[fA,Ag,JA,YA])}function bA(aA,rA){for(let pA=aA.length;pA<=rA;pA++)aA[pA]=[];return aA[rA]}function SA(aA,rA){let pA=aA.length;for(let fA=pA-1;fA>=0;pA=fA--){const kA=aA[fA];if(rA>=kA[0])break}return pA}function MA(aA,rA,pA){for(let fA=aA.length;fA>rA;fA--)aA[fA]=aA[fA-1];aA[rA]=pA}function NA(aA){const{length:rA}=aA;let pA=rA;for(let fA=pA-1;fA>=0&&!(aA[fA].length>0);pA=fA,fA--);pA<rA&&(aA.length=pA)}function FA(aA,rA){for(let pA=0;pA<rA.length;pA++)gA.put(aA,rA[pA])}function qA(aA,rA){return rA===0?!0:aA[rA-1].length===1}function UA(aA,rA,pA,fA,kA,JA){if(rA===0)return!1;const YA=aA[rA-1];return YA.length===1?!1:pA===YA[1]&&fA===YA[2]&&kA===YA[3]&&JA===(YA.length===5?YA[4]:-1)}function mA(aA,rA,pA){const{generated:fA,source:kA,original:JA,name:YA,content:xA}=pA;return kA?KA(aA,rA,fA.line-1,fA.column,kA,JA.line-1,JA.column,YA,xA):KA(aA,rA,fA.line-1,fA.column,null,null,null,null,null)}tA.GenMapping=nA,tA.addMapping=lA,tA.addSegment=uA,tA.allMappings=LA,tA.fromMap=yA,tA.maybeAddMapping=dA,tA.maybeAddSegment=hA,tA.setIgnore=wA,tA.setSourceContent=DA,tA.toDecodedMap=RA,tA.toEncodedMap=GA,Object.defineProperty(tA,"__esModule",{value:!0})})}(genMapping_umd,genMapping_umd.exports)),genMapping_umd.exports}(function(eA,AA){(function(tA,gA){eA.exports=gA(requireTraceMapping_umd(),requireGenMapping_umd())})(commonjsGlobal,function(tA,gA){const iA=BA("",-1,-1,"",null,!1),IA=[];function BA(dA,DA,wA,RA,GA,yA){return{source:dA,line:DA,column:wA,name:RA,content:GA,ignore:yA}}function sA(dA,DA,wA,RA,GA){return{map:dA,sources:DA,source:wA,content:RA,ignore:GA}}function QA(dA,DA){return sA(dA,DA,"",null,!1)}function CA(dA,DA,wA){return sA(null,IA,dA,DA,wA)}function oA(dA){const DA=new gA.GenMapping({file:dA.map.file}),{sources:wA,map:RA}=dA,GA=RA.names,yA=tA.decodedMappings(RA);for(let LA=0;LA<yA.length;LA++){const KA=yA[LA];for(let bA=0;bA<KA.length;bA++){const SA=KA[bA],MA=SA[0];let NA=iA;if(SA.length!==1){const pA=wA[SA[1]];if(NA=EA(pA,SA[2],SA[3],SA.length===5?GA[SA[4]]:""),NA==null)continue}const{column:FA,line:qA,name:UA,content:mA,source:aA,ignore:rA}=NA;gA.maybeAddSegment(DA,LA,MA,aA,qA,FA,UA),aA&&mA!=null&&gA.setSourceContent(DA,aA,mA),rA&&gA.setIgnore(DA,aA,!0)}}return DA}function EA(dA,DA,wA,RA){if(!dA.map)return BA(dA.source,DA,wA,RA,dA.content,dA.ignore);const GA=tA.traceSegment(dA.map,DA,wA);return GA==null?null:GA.length===1?iA:EA(dA.sources[GA[1]],GA[2],GA[3],GA.length===5?dA.map.names[GA[4]]:RA)}function nA(dA){return Array.isArray(dA)?dA:[dA]}function cA(dA,DA){const wA=nA(dA).map(yA=>new tA.TraceMap(yA,"")),RA=wA.pop();for(let yA=0;yA<wA.length;yA++)if(wA[yA].sources.length>1)throw new Error(`Transformation map ${yA} must have exactly one source file.
|
|
57
57
|
Did you specify these with the most recent transformation maps first?`);let GA=uA(RA,DA,"",0);for(let yA=wA.length-1;yA>=0;yA--)GA=QA(wA[yA],[GA]);return GA}function uA(dA,DA,wA,RA){const{resolvedSources:GA,sourcesContent:yA,ignoreList:LA}=dA,KA=RA+1,bA=GA.map((SA,MA)=>{const NA={importer:wA,depth:KA,source:SA||"",content:void 0,ignore:void 0},FA=DA(NA.source,NA),{source:qA,content:UA,ignore:mA}=NA;if(FA)return uA(new tA.TraceMap(FA,qA),DA,qA,KA);const aA=UA!==void 0?UA:yA?yA[MA]:null,rA=mA!==void 0?mA:LA?LA.includes(MA):!1;return CA(qA,aA,rA)});return QA(dA,bA)}class lA{constructor(DA,wA){const RA=wA.decodedMappings?gA.toDecodedMap(DA):gA.toEncodedMap(DA);this.version=RA.version,this.file=RA.file,this.mappings=RA.mappings,this.names=RA.names,this.ignoreList=RA.ignoreList,this.sourceRoot=RA.sourceRoot,this.sources=RA.sources,wA.excludeContent||(this.sourcesContent=RA.sourcesContent)}toString(){return JSON.stringify(this)}}function hA(dA,DA,wA){const RA=typeof wA=="object"?wA:{excludeContent:!!wA,decodedMappings:!1},GA=cA(dA,DA);return new lA(oA(GA),RA)}return hA})})(remapping_umd);var remapping_umdExports=remapping_umd.exports,remapping=getDefaultExportFromCjs(remapping_umdExports);const b64enc=typeof window<"u"&&typeof btoa=="function"?eA=>btoa(unescape(encodeURIComponent(eA))):eA=>Buffer.from(eA).toString("base64");function combine_sourcemaps(eA,AA){if(AA.length==0)return null;let tA=1;const gA=AA.slice(0,-1).find(iA=>iA.sources.length!==1)===void 0?remapping(AA,()=>null,!0):remapping(AA[0],iA=>iA===eA&&AA[tA]?AA[tA++]:null,!0);return gA.file||delete gA.file,gA.sources.length||(gA.sources=[eA]),gA}function apply_preprocessor_sourcemap(eA,AA,tA){if(!AA||!tA)return AA;const gA=typeof tA=="string"?JSON.parse(tA):tA,iA=combine_sourcemaps(eA,[AA,gA]);return Object.defineProperties(iA,{toString:{enumerable:!1,value:function(){return JSON.stringify(this)}},toUrl:{enumerable:!1,value:function(){return"data:application/json;charset=utf-8;base64,"+b64enc(this.toString())}}}),iA}function merge_with_preprocessor_map(eA,AA,tA){if(AA.sourcemap){const gA=get_basename(AA.filename);eA.map.sources=[gA],eA.map=apply_preprocessor_sourcemap(gA,eA.map,AA.sourcemap),gA!==tA&&(eA.map.sources=eA.map.sources.map(iA=>get_relative_path(tA,iA)))}}function get_relative_path(eA,AA){const tA=eA.split(/[/\\]/),gA=AA.split(/[/\\]/);for(tA.pop();tA[0]===gA[0];)tA.shift(),gA.shift();if(tA.length){let iA=tA.length;for(;iA--;)tA[iA]=".."}return tA.concat(gA).join("/")}function get_basename(eA){return eA.split(/[/\\]/).pop()}function get_source_name(eA,AA,tA){return AA?get_relative_path(AA,eA):get_basename(eA)}function render_stylesheet(eA,AA,tA){const gA=new MagicString(eA),iA={code:gA,hash:AA.css.hash,selector:`.${AA.css.hash}`,keyframes:AA.css.keyframes,specificity:{bumped:!1}},IA=AA.css.ast;walk(IA,iA,visitors$1),gA.remove(0,IA.content.start),gA.remove(IA.content.end,eA.length);const BA={code:gA.toString(),map:gA.generateMap({includeContent:!0,source:tA.filename,file:tA.cssOutputFilename||tA.filename})};return merge_with_preprocessor_map(BA,tA,BA.map.sources[0]),dev&&tA.css==="injected"&&BA.code&&(BA.code+=`
|
|
58
58
|
/*# sourceMappingURL=${BA.map.toUrl()} */`),BA}const visitors$1={_:(eA,AA)=>{AA.state.code.addSourcemapLocation(eA.start),AA.state.code.addSourcemapLocation(eA.end),AA.next()},Atrule(eA,{state:AA,next:tA}){if(is_keyframes_node(eA)){let gA=eA.start+eA.name.length+1;for(;AA.code.original[gA]===" ";)gA+=1;let iA=gA;for(;AA.code.original[iA]!=="{"&&AA.code.original[iA]!==" ";)iA+=1;eA.prelude.startsWith("-global-")?AA.code.remove(gA,gA+8):AA.code.prependRight(gA,`${AA.hash}-`);return}tA()},Declaration(eA,{state:AA}){const tA=eA.property&&remove_css_prefix(eA.property.toLowerCase());if(tA==="animation"||tA==="animation-name"){let gA=eA.start+eA.property.length+1,iA="";for(;gA<AA.code.original.length;){const IA=AA.code.original[gA];if(regex_css_name_boundary.test(IA)){if(AA.keyframes.includes(iA)&&AA.code.prependRight(gA-iA.length,`${AA.hash}-`),IA===";"||IA==="}")break;iA=""}else iA+=IA;gA++}}},Rule(eA,{state:AA,next:tA,visit:gA}){if(!dev&&is_empty(eA)){AA.code.prependRight(eA.start,"/* (empty) "),AA.code.appendLeft(eA.end,"*/"),escape_comment_close(eA,AA.code);return}if(!is_used(eA)){AA.code.prependRight(eA.start,"/* (unused) "),AA.code.appendLeft(eA.end,"*/"),escape_comment_close(eA,AA.code);return}if(eA.metadata.is_global_block){const iA=eA.prelude.children[0];if(iA.children.length===1&&iA.children[0].selectors.length===1){AA.code.prependRight(eA.start,"/* "),AA.code.appendLeft(eA.block.start+1,"*/"),AA.code.prependRight(eA.block.end-1,"/*"),AA.code.appendLeft(eA.block.end,"*/");return}gA(eA.prelude);return}tA()},SelectorList(eA,{state:AA,next:tA,path:gA}){if(!gA.find(BA=>BA.type==="ComplexSelector"&&!BA.metadata.used)){let BA=!1,sA=eA.children[0].start;for(let QA=0;QA<eA.children.length;QA+=1){const CA=eA.children[QA];if(CA.metadata.used===BA){if(BA){let oA=CA.start;for(;AA.code.original[oA]!==",";)oA--;AA.code.overwrite(oA,oA+1,"*/")}else QA===0?AA.code.prependRight(CA.start,"/* (unused) "):AA.code.overwrite(sA,CA.start," /* (unused) ");BA=!BA}sA=CA.end}BA&&AA.code.appendLeft(sA,"*/")}let iA=AA.specificity,IA=gA.at(-1);if((IA==null?void 0:IA.type)==="Rule"){iA={bumped:!1};let BA=IA.metadata.parent_rule;for(;BA;){if(BA.metadata.has_local_selectors){iA={bumped:!0};break}BA=BA.metadata.parent_rule}}tA({...AA,specificity:iA})},ComplexSelector(eA,AA){var iA;const tA=AA.state.specificity.bumped;function gA(IA,BA){if(IA.args===null){let sA=IA.start;if((BA==null?void 0:BA.name)===" ")for(;/\s/.test(AA.state.code.original[sA-1]);)sA--;AA.state.code.remove(sA,IA.start+7)}else AA.state.code.remove(IA.start,IA.start+8).remove(IA.end-1,IA.end)}for(const IA of eA.children){if(IA.metadata.is_global){const BA=IA.selectors[0];gA(BA,IA.combinator),(iA=eA.metadata.rule)!=null&&iA.metadata.parent_rule&&BA.args===null&&IA.combinator===null&&AA.state.code.prependRight(BA.start,"&");continue}if(IA.metadata.scoped){if(IA.selectors.length===1){const QA=IA.selectors[0];if(QA.type==="PseudoClassSelector"&&(QA.name==="is"||QA.name==="where"))continue}for(const QA of IA.selectors)QA.type==="PseudoClassSelector"&&QA.name==="global"&&gA(QA,null);if(IA.selectors.some(QA=>QA.type==="NestingSelector"))continue;let BA=AA.state.selector;AA.state.specificity.bumped&&(BA=`:where(${BA})`),AA.state.specificity.bumped=!0;let sA=IA.selectors.length;for(;sA--;){const QA=IA.selectors[sA];if(QA.type==="PseudoElementSelector"||QA.type==="PseudoClassSelector"){QA.name!=="root"&&QA.name!=="host"&&sA===0&&AA.state.code.prependRight(QA.start,BA);continue}QA.type==="TypeSelector"&&QA.name==="*"?AA.state.code.update(QA.start,QA.end,BA):AA.state.code.appendLeft(QA.end,BA);break}}}AA.next(),AA.state.specificity.bumped=tA},PseudoClassSelector(eA,AA){(eA.name==="is"||eA.name==="where"||eA.name==="has"||eA.name==="not")&&AA.next()}};function is_empty(eA){if(eA.metadata.is_global_block)return eA.block.children.length===0;for(const AA of eA.block.children)if(AA.type==="Declaration"||AA.type==="Rule"&&is_used(AA)&&!is_empty(AA)||AA.type==="Atrule"&&(AA.block===null||AA.block.children.length>0))return!1;return!0}function is_used(eA){return eA.prelude.children.some(AA=>AA.metadata.used)}function escape_comment_close(eA,AA){let tA=!1,gA=!1;for(let iA=eA.start;iA<eA.end;iA++)if(tA)tA=!1;else{const IA=AA.original[iA];gA?IA==="*"&&AA.original[iA+1]==="/"&&(AA.prependRight(++iA,"\\"),gA=!1):IA==="\\"?tA=!0:IA==="/"&&AA.original[++iA]==="*"&&(gA=!0)}}function visit_assignment_expression(eA,AA,tA){if(eA.left.type==="ArrayPattern"||eA.left.type==="ObjectPattern"||eA.left.type==="RestElement"){const gA=AA.visit(eA.right),iA=gA.type!=="Identifier",IA=iA?id$1("$$value"):gA;let BA=!1;const sA=extract_paths(eA.left).map(oA=>{var cA;const EA=(cA=oA.expression)==null?void 0:cA.call(oA,IA);let nA=tA("=",oA.node,EA,AA);return nA!==null&&(BA=!0),nA??assignment("=",AA.visit(oA.node),AA.visit(EA))});if(!BA)return null;const QA=AA.path.at(-1).type.endsWith("Statement"),CA=sequence$1(sA);if(QA||CA.expressions.push(IA),iA){const oA=arrow([IA],CA);return is_expression_async(gA)||sA.some(nA=>is_expression_async(nA))?await_builder(call(async(oA),gA)):call(oA,gA)}return CA}if(eA.left.type!=="Identifier"&&eA.left.type!=="MemberExpression")throw new Error(`Unexpected assignment type ${eA.left.type}`);return tA(eA.operator,eA.left,eA.right,AA)}function AssignmentExpression$1(eA,AA){return visit_assignment_expression(eA,AA,build_assignment$1)??AA.next()}function build_assignment$1(eA,AA,tA,gA){let iA=AA;for(;iA.type==="MemberExpression";)iA=iA.object;if(iA.type!=="Identifier"||!is_store_name(iA.name))return null;const IA=iA.name.slice(1);if(!gA.state.scope.get(IA))return null;if(iA===AA){let BA=gA.visit(build_assignment_value(eA,AA,tA));return call("$.store_set",id$1(IA),BA)}return call("$.store_mutate",assignment("??=",id$1("$$store_subs"),object$2([])),literal(iA.name),id$1(IA),assignment(eA,gA.visit(AA),gA.visit(tA)))}function is_store_name(eA){return eA[0]==="$"&&/[A-Za-z_]/.test(eA[1])}const ATTR_REGEX=/[&"<]/g,CONTENT_REGEX=/[&<]/g;function escape_html(eA,AA){const tA=String(eA??""),gA=AA?ATTR_REGEX:CONTENT_REGEX;gA.lastIndex=0;let iA="",IA=0;for(;gA.test(tA);){const BA=gA.lastIndex-1,sA=tA[BA];iA+=tA.substring(IA,BA)+(sA==="&"?"&":sA==='"'?""":"<"),IA=BA+1}return iA+tA.substring(IA)}const BLOCK_OPEN=`<!--${HYDRATION_START}-->`,BLOCK_OPEN_ELSE=`<!--${HYDRATION_START_ELSE}-->`,BLOCK_CLOSE=`<!--${HYDRATION_END}-->`,EMPTY_COMMENT="<!---->",block_open=literal(BLOCK_OPEN),block_close=literal(BLOCK_CLOSE),empty_comment=literal(EMPTY_COMMENT);function process_children$1(eA,{visit:AA,state:tA}){let gA=[];function iA(){let IA=quasi("",!1);const BA=[IA],sA=[];for(let QA=0;QA<gA.length;QA++){const CA=gA[QA];CA.type==="Text"||CA.type==="Comment"?IA.value.cooked+=CA.type==="Comment"?`<!--${CA.data}-->`:escape_html(CA.data):CA.type==="ExpressionTag"&&CA.expression.type==="Literal"?CA.expression.value!=null&&(IA.value.cooked+=escape_html(CA.expression.value+"")):(sA.push(call("$.escape",AA(CA.expression))),IA=quasi("",QA+1===gA.length),BA.push(IA))}for(const QA of BA)QA.value.raw=sanitize_template_string(QA.value.cooked);tA.template.push(template(BA,sA))}for(let IA=0;IA<eA.length;IA+=1){const BA=eA[IA];BA.type==="Text"||BA.type==="Comment"||BA.type==="ExpressionTag"?gA.push(BA):(gA.length>0&&(iA(),gA=[]),AA(BA,{...tA}))}gA.length>0&&iA()}function is_statement(eA){return eA.type.endsWith("Statement")||eA.type.endsWith("Declaration")}function build_template(eA,AA=id$1("$$payload.out"),tA="+="){let gA=[],iA=[];const IA=[],BA=()=>{IA.push(stmt(assignment(tA,AA,template(gA.map((sA,QA)=>quasi(sA,QA===gA.length-1)),iA)))),gA=[],iA=[]};for(let sA=0;sA<eA.length;sA++){const QA=eA[sA];is_statement(QA)?(gA.length!==0&&BA(),IA.push(QA)):(gA.length===0&&gA.push(""),QA.type==="Literal"?gA[gA.length-1]+=QA.value:QA.type==="TemplateLiteral"?(gA[gA.length-1]+=QA.quasis[0].value.cooked,gA.push(...QA.quasis.slice(1).map(CA=>CA.value.cooked)),iA.push(...QA.expressions)):(iA.push(QA),gA.push("")))}return gA.length!==0&&BA(),IA}function build_attribute_value$1(eA,AA,tA=!1,gA=!1){if(eA===!0)return true_instance;if(!Array.isArray(eA)||eA.length===1){const sA=Array.isArray(eA)?eA[0]:eA;if(sA.type==="Text"){const QA=tA?sA.data.replace(regex_whitespaces_strict," ").trim():sA.data;return literal(gA?QA:escape_html(QA,!0))}return AA.visit(sA.expression)}let iA=quasi("",!1);const IA=[iA],BA=[];for(let sA=0;sA<eA.length;sA++){const QA=eA[sA];QA.type==="Text"?iA.value.raw+=tA?QA.data.replace(regex_whitespaces_strict," "):QA.data:(BA.push(call("$.stringify",AA.visit(QA.expression))),iA=quasi("",sA+1===eA.length),IA.push(iA))}return template(IA,BA)}function build_getter(eA,AA){const tA=AA.scope.get(eA.name);if(tA===null||eA===tA.node)return eA;if(tA.kind==="store_sub"){const gA=id$1(eA.name.slice(1));return call("$.store_get",assignment("??=",id$1("$$store_subs"),object$2([])),literal(eA.name),build_getter(gA,AA))}return eA}function AwaitBlock$1(eA,AA){AA.state.template.push(empty_comment,stmt(call("$.await",AA.visit(eA.expression),thunk(eA.pending?AA.visit(eA.pending):block([])),arrow(eA.value?[AA.visit(eA.value)]:[],eA.then?AA.visit(eA.then):block([])),arrow(eA.error?[AA.visit(eA.error)]:[],eA.catch?AA.visit(eA.catch):block([])))),empty_comment)}function is_hoisted_function(eA){var AA;return eA.type==="ArrowFunctionExpression"||eA.type==="FunctionExpression"||eA.type==="FunctionDeclaration"?((AA=eA.metadata)==null?void 0:AA.hoisted)===!0:!1}function sort_const_tags(eA,AA){const tA=[],gA=new Map;for(const QA of eA)if(QA.type==="ConstTag"){const CA=QA.declaration.declarations[0],oA=extract_identifiers(CA.id).map(nA=>AA.scope.get(nA.name)),EA=new Set;walk(CA.init,AA,{_:set_scope,Identifier(nA,cA){const uA=cA.path.at(-1);if(is_reference(nA,uA)){const lA=cA.state.scope.get(nA.name);lA&&EA.add(lA)}}});for(const nA of oA)gA.set(nA,{node:QA,deps:EA})}else tA.push(QA);if(gA.size===0)return eA;const iA=[];for(const[QA,CA]of gA)for(const oA of CA.deps)gA.has(oA)&&iA.push([QA,oA]);const IA=check_graph_for_cycles(iA);if(IA!=null&&IA.length){const QA=gA.get(IA[0]);const_tag_cycle(QA.node,IA.map(CA=>CA.node.name).join(" → "))}const BA=[];function sA(QA){if(!BA.includes(QA.node)){for(const CA of QA.deps){const oA=gA.get(CA);oA&&sA(oA)}BA.push(QA.node)}}for(const QA of gA.values())sA(QA);return[...BA,...tA]}function clean_nodes(eA,AA,tA,gA="html",iA,IA,BA){iA.analysis.runes||(AA=sort_const_tags(AA,iA));const sA=[],QA=[];for(const EA of AA)EA.type==="Comment"&&!BA||(EA.type==="ConstTag"||EA.type==="DebugTag"||EA.type==="SvelteBody"||EA.type==="SvelteWindow"||EA.type==="SvelteDocument"||EA.type==="SvelteHead"||EA.type==="TitleElement"||EA.type==="SnippetBlock"?sA.push(EA):QA.push(EA));let CA=QA;if(!IA){CA=[];let EA,nA;for(;(EA=QA[0])&&EA.type==="Text"&&!regex_not_whitespace.test(EA.data);)QA.shift();for((EA==null?void 0:EA.type)==="Text"&&(EA.raw=EA.raw.replace(regex_starts_with_whitespaces,""),EA.data=EA.data.replace(regex_starts_with_whitespaces,""));(nA=QA.at(-1))&&nA.type==="Text"&&!regex_not_whitespace.test(nA.data);)QA.pop();(nA==null?void 0:nA.type)==="Text"&&(nA.raw=nA.raw.replace(regex_ends_with_whitespaces,""),nA.data=nA.data.replace(regex_ends_with_whitespaces,""));const cA=gA==="svg"&&(eA.type!=="RegularElement"||eA.name!=="text")&&!tA.some(uA=>uA.type==="RegularElement"&&uA.name==="text")||eA.type==="RegularElement"&&(eA.name==="select"||eA.name==="tr"||eA.name==="table"||eA.name==="tbody"||eA.name==="thead"||eA.name==="tfoot"||eA.name==="colgroup"||eA.name==="datalist");for(let uA=0;uA<QA.length;uA++){const lA=QA[uA-1],hA=QA[uA],dA=QA[uA+1];if(hA.type==="Text"){if((lA==null?void 0:lA.type)!=="ExpressionTag"){const DA=(lA==null?void 0:lA.type)==="Text"&®ex_ends_with_whitespaces.test(lA.data);hA.data=hA.data.replace(regex_starts_with_whitespaces,DA?"":" "),hA.raw=hA.raw.replace(regex_starts_with_whitespaces,DA?"":" ")}(dA==null?void 0:dA.type)!=="ExpressionTag"&&(hA.data=hA.data.replace(regex_ends_with_whitespaces," "),hA.raw=hA.raw.replace(regex_ends_with_whitespaces," ")),hA.data&&(hA.data!==" "||!cA)&&CA.push(hA)}else CA.push(hA)}}var oA=CA[0];return CA.length===1&&oA.type==="RegularElement"&&oA.name==="script"&&CA.push({type:"Comment",data:"",parent:oA.parent,start:-1,end:-1}),{hoisted:sA,trimmed:CA,is_standalone:CA.length===1&&(oA.type==="RenderTag"&&!oA.metadata.dynamic||oA.type==="Component"&&!iA.options.hmr&&!oA.metadata.dynamic&&!oA.attributes.some(EA=>EA.type==="Attribute"&&EA.name.startsWith("--"))),is_text_first:(eA.type==="Fragment"||eA.type==="SnippetBlock"||eA.type==="EachBlock"||eA.type==="SvelteComponent"||eA.type==="Component"||eA.type==="SvelteSelf")&&oA&&((oA==null?void 0:oA.type)==="Text"||(oA==null?void 0:oA.type)==="ExpressionTag")}}function infer_namespace(eA,AA,tA){if(AA.type==="RegularElement"&&AA.name==="foreignObject")return"html";if(AA.type==="RegularElement"||AA.type==="SvelteElement")return AA.metadata.svg?"svg":AA.metadata.mathml?"mathml":"html";if(AA.type==="Fragment"||AA.type==="Root"||AA.type==="Component"||AA.type==="SvelteComponent"||AA.type==="SvelteFragment"||AA.type==="SnippetBlock"||AA.type==="SlotElement"){const gA=check_nodes_for_namespace(tA,"keep");if(gA!=="keep"&&gA!=="maybe_html")return gA}return eA}function check_nodes_for_namespace(eA,AA){const tA=(gA,{stop:iA})=>{!gA.metadata.svg&&!gA.metadata.mathml?(AA="html",iA()):AA==="keep"&&(AA=gA.metadata.svg?"svg":"mathml")};for(const gA of eA)if(walk(gA,{},{_(iA,{next:IA}){(iA.type==="EachBlock"||iA.type==="IfBlock"||iA.type==="AwaitBlock"||iA.type==="Fragment"||iA.type==="KeyBlock"||iA.type==="RegularElement"||iA.type==="SvelteElement"||iA.type==="Text")&&IA()},SvelteElement:tA,RegularElement:tA,Text(iA){iA.data.trim()!==""&&(AA="maybe_html")}}),AA==="html")return AA;return AA}function determine_namespace_for_children(eA,AA){return eA.name==="foreignObject"?"html":eA.metadata.svg?"svg":eA.metadata.mathml?"mathml":"html"}function transform_inspect_rune(eA,AA){const{state:tA,visit:gA}=AA,iA=tA.options.generate==="client";if(!dev)return empty;if(eA.callee.type==="MemberExpression"){const BA=eA.callee.object.arguments.map(QA=>gA(QA)),sA=gA(eA.arguments[0]);return call("$.inspect",iA?thunk(array(BA)):array(BA),sA)}else{const IA=eA.arguments.map(BA=>gA(BA));return call("$.inspect",iA?thunk(array(IA)):array(IA))}}function CallExpression$1(eA,AA){const tA=get_rune(eA,AA.state.scope);if(tA==="$host")return id$1("undefined");if(tA==="$effect.tracking")return literal(!1);if(tA==="$effect.root")return arrow([],block([]));if(tA==="$state.snapshot")return call("$.snapshot",AA.visit(eA.arguments[0]),is_ignored(eA,"state_snapshot_uncloneable")&&true_instance);if(tA==="$inspect"||tA==="$inspect().with")return transform_inspect_rune(eA,AA);AA.next()}function ClassBody$1(eA,AA){var sA,QA;if(!AA.state.analysis.runes){AA.next();return}const tA=new Map,gA=new Map,iA=[];for(const CA of eA.body)if(CA.type==="PropertyDefinition"&&(CA.key.type==="Identifier"||CA.key.type==="PrivateIdentifier")){const{type:oA,name:EA}=CA.key,nA=oA==="PrivateIdentifier";if(nA&&iA.push(EA),((sA=CA.value)==null?void 0:sA.type)==="CallExpression"){const cA=get_rune(CA.value,AA.state.scope);if(cA==="$derived"||cA==="$derived.by"){const uA={kind:cA==="$derived.by"?"derived_by":"derived",id:nA?CA.key:null};nA?gA.set(EA,uA):tA.set(EA,uA)}}}for(const[CA,oA]of tA){let EA=CA;for(;iA.includes(EA);)EA="_"+EA;iA.push(EA),oA.id=private_id(EA)}const IA=[],BA={...AA.state,private_derived:gA};for(const CA of eA.body){if(CA.type==="PropertyDefinition"&&(CA.key.type==="Identifier"||CA.key.type==="PrivateIdentifier")){const oA=CA.key.name,EA=CA.key.type==="PrivateIdentifier",nA=(EA?gA:tA).get(oA);if(((QA=CA.value)==null?void 0:QA.type)==="CallExpression"&&nA!==void 0){const cA=AA.visit(CA.value.arguments[0],BA),uA=nA.kind==="derived_by"?call("$.once",cA):call("$.once",thunk(cA));if(EA)IA.push(prop_def(nA.id,uA));else{const lA=member(this_instance,nA.id);IA.push(prop_def(nA.id,uA)),IA.push(method("get",CA.key,[],[return_builder(call(lA))])),dev&&(nA.kind==="derived"||nA.kind==="derived_by")&&IA.push(method("set",CA.key,[id$1("_")],[throw_error$1(`Cannot update a derived property ('${oA}')`)]))}continue}}IA.push(AA.visit(CA,BA))}return{...eA,body:IA}}function build_inline_component(eA,AA,tA){const gA=[],iA=[],IA={default:[]},BA={...tA.state,scope:eA.metadata.scopes.default},sA={},QA=eA.attributes.some(hA=>hA.type==="Attribute"&&hA.name==="slot");let CA=!1;function oA(hA){const dA=gA.at(-1),DA=Array.isArray(dA),wA=DA?dA:[];wA.push(hA),DA||gA.push(wA)}for(const hA of eA.attributes)if(hA.type==="LetDirective")QA||IA.default.push(hA);else if(hA.type==="SpreadAttribute")gA.push(tA.visit(hA));else if(hA.type==="Attribute"){if(hA.name.startsWith("--")){const DA=build_attribute_value$1(hA.value,tA,!1,!0);iA.push(init(hA.name,DA));continue}hA.name==="children"&&(CA=!0);const dA=build_attribute_value$1(hA.value,tA,!1,!0);oA(prop("init",key$2(hA.name),dA))}else hA.type==="BindDirective"&&hA.name!=="this"&&(oA(get(hA.name,[return_builder(tA.visit(hA.expression))])),oA(set(hA.name,[stmt(tA.visit(assignment("=",hA.expression,id$1("$$value")))),stmt(assignment("=",id$1("$$settled"),false_instance))])));const EA=[],nA=[];for(const hA of eA.fragment.nodes){if(hA.type==="SnippetBlock"){tA.visit(hA,{...tA.state,init:EA}),oA(prop("init",hA.expression,hA.expression)),nA.push(init(hA.expression.name==="children"?"default":hA.expression.name,true_instance));continue}let dA="default";if(is_element_node(hA)){const DA=hA.attributes.find(wA=>wA.type==="Attribute"&&wA.name==="slot");DA!==void 0?(dA=DA.value[0].data,IA[dA]=hA.attributes.filter(wA=>wA.type==="LetDirective")):hA.type==="SvelteFragment"&&IA.default.push(...hA.attributes.filter(wA=>wA.type==="LetDirective"))}sA[dA]=sA[dA]||[],sA[dA].push(hA)}for(const hA of Object.keys(sA)){const dA=tA.visit({...eA.fragment,nodes:sA[hA]},hA==="default"?BA:{...tA.state,scope:eA.metadata.scopes[hA]});if(dA.body.length===0)continue;const DA=[id$1("$$payload")];if(IA[hA].length>0){const RA=object_pattern(IA[hA].map(GA=>GA.expression===null?init(GA.name,id$1(GA.name)):GA.expression.type==="ObjectExpression"?init(GA.name,object_pattern(GA.expression.properties)):GA.expression.type==="ArrayExpression"?init(GA.name,array_pattern(GA.expression.elements)):init(GA.name,GA.expression)));DA.push(RA)}const wA=arrow(DA,block(dA.body));hA==="default"&&!CA?IA.default.length===0&&sA.default.every(RA=>RA.type!=="SvelteFragment"||!RA.attributes.some(GA=>GA.type==="LetDirective"))?(oA(prop("init",id$1("children"),wA)),nA.push(init(hA,true_instance))):(nA.push(init(hA,wA)),oA(init("children",id$1("$.invalid_default_snippet")))):nA.push(init(hA,wA))}nA.length>0&&oA(prop("init",id$1("$$slots"),object$2(nA)));const cA=gA.length===0||gA.length===1&&Array.isArray(gA[0])?object$2(gA[0]||[]):call("$.spread_props",array(gA.map(hA=>Array.isArray(hA)?object$2(hA):hA)));let uA=stmt((eA.type==="SvelteComponent"?maybe_call:call)(AA,id$1("$$payload"),cA));EA.length>0&&(uA=block([...EA,uA]));const lA=eA.type==="SvelteComponent"||eA.type==="Component"&&eA.metadata.dynamic;iA.length>0?tA.state.template.push(stmt(call("$.css_props",id$1("$$payload"),literal(tA.state.namespace!=="svg"),object$2(iA),thunk(block([uA])),lA&&true_instance))):(lA&&tA.state.template.push(empty_comment),tA.state.template.push(uA),tA.state.skip_hydration_boundaries||tA.state.template.push(empty_comment))}function Component$1(eA,AA){build_inline_component(eA,id$1(eA.name),AA)}function ConstTag$1(eA,AA){const tA=eA.declaration.declarations[0],gA=AA.visit(tA.id),iA=AA.visit(tA.init);AA.state.init.push(const_builder(gA,iA))}function DebugTag$1(eA,AA){AA.state.template.push(stmt(call("console.log",object$2(eA.identifiers.map(tA=>prop("init",tA,AA.visit(tA)))))),debugger_builder)}function EachBlock$1(eA,AA){const tA=AA.state,gA=eA.metadata,iA=AA.visit(eA.expression),IA=gA.contains_group_binding||!eA.index?gA.index:id$1(eA.index),BA=tA.scope.root.unique("each_array");tA.init.push(const_builder(BA,call("$.ensure_array_like",iA)));const sA=[let_builder(eA.context,member(BA,IA,!0))];IA.name!==eA.index&&eA.index!=null&&sA.push(let_builder(eA.index,IA)),sA.push(...AA.visit(eA.body).body);const QA=for_builder(declaration("let",[declarator(IA,literal(0)),declarator("$$length",member(BA,"length"))]),binary("<",IA,id$1("$$length")),update("++",IA,!1),block(sA));if(eA.fallback){const CA=stmt(assignment("+=",id$1("$$payload.out"),block_open)),oA=AA.visit(eA.fallback);oA.body.unshift(stmt(assignment("+=",id$1("$$payload.out"),literal(BLOCK_OPEN_ELSE)))),tA.template.push(if_builder(binary("!==",member(BA,"length"),literal(0)),block([CA,QA]),oA),block_close)}else tA.template.push(block_open,QA,block_close)}function ExpressionStatement$1(eA,AA){const tA=get_rune(eA.expression,AA.state.scope);if(tA==="$effect"||tA==="$effect.pre"||tA==="$effect.root")return empty;AA.next()}function Fragment$1(eA,AA){const tA=AA.path.at(-1)??eA,gA=infer_namespace(AA.state.namespace,tA,eA.nodes),{hoisted:iA,trimmed:IA,is_standalone:BA,is_text_first:sA}=clean_nodes(tA,eA.nodes,AA.path,gA,AA.state,AA.state.preserve_whitespace,AA.state.options.preserveComments),QA={...AA.state,init:[],template:[],namespace:gA,skip_hydration_boundaries:BA};for(const CA of iA)AA.visit(CA,QA);return sA&&QA.template.push(empty_comment),process_children$1(IA,{...AA,state:QA}),block([...QA.init,...build_template(QA.template)])}function HtmlTag$1(eA,AA){const tA=AA.visit(eA.expression);AA.state.template.push(call("$.html",tA))}function Identifier$1(eA,AA){if(is_reference(eA,AA.path.at(-1)))return eA.name==="$$props"?id$1("$$sanitized_props"):build_getter(eA,AA.state)}function IfBlock$1(eA,AA){const tA=AA.visit(eA.test),gA=AA.visit(eA.consequent),iA=eA.alternate?AA.visit(eA.alternate):block([]);gA.body.unshift(stmt(assignment("+=",id$1("$$payload.out"),block_open))),iA.body.unshift(stmt(assignment("+=",id$1("$$payload.out"),literal(BLOCK_OPEN_ELSE)))),AA.state.template.push(if_builder(tA,gA,iA),block_close)}function KeyBlock$1(eA,AA){AA.state.template.push(empty_comment,AA.visit(eA.fragment),empty_comment)}function LabeledStatement$1(eA,AA){if(!(AA.state.analysis.runes||AA.path.length>1||eA.label.name!=="$"))return AA.state.legacy_reactive_statements.set(eA,labeled("$",AA.visit(eA.body))),empty}function MemberExpression$1(eA,AA){if(AA.state.analysis.runes&&eA.object.type==="ThisExpression"&&eA.property.type==="PrivateIdentifier"&&AA.state.private_derived.get(eA.property.name))return call(eA);AA.next()}function PropertyDefinition(eA,AA){if(AA.state.analysis.runes&&eA.value!=null&&eA.value.type==="CallExpression"){const tA=get_rune(eA.value,AA.state.scope);if(tA==="$state"||tA==="$state.raw"||tA==="$derived")return{...eA,value:eA.value.arguments.length===0?null:AA.visit(eA.value.arguments[0])};if(tA==="$derived.by")return{...eA,value:eA.value.arguments.length===0?null:call(AA.visit(eA.value.arguments[0]))}}AA.next()}const WHITESPACE_INSENSITIVE_ATTRIBUTES=["class","style"];function build_element_attributes(eA,AA){const tA=[],gA=[],iA=[];let IA=null,BA=!1,sA=-1,QA=-1,CA=new Set;for(const oA of eA.attributes)if(oA.type==="Attribute")oA.name==="value"?eA.name==="textarea"?(oA.value!==!0&&Array.isArray(oA.value)&&oA.value[0].type==="Text"&®ex_starts_with_newline.test(oA.value[0].data)&&(oA.value[0].data=`
|
|
59
|
-
`+oA.value[0].data),IA=call("$.escape",build_attribute_value$1(oA.value,AA))):eA.name!=="select"&&tA.push(oA):is_event_attribute(oA)?(oA.name==="onload"||oA.name==="onerror")&&is_load_error_element(eA.name)&&CA.add(oA.name):(oA.name==="class"?sA=tA.length:oA.name==="style"&&(QA=tA.length),tA.push(oA));else if(oA.type==="BindDirective"){if(oA.name==="value"&&eA.name==="select"||oA.name==="value"&&tA.some(nA=>nA.type==="Attribute"&&nA.name==="type"&&is_text_attribute(nA)&&nA.value[0].data==="file")||oA.name==="this")continue;const EA=binding_properties[oA.name];if(EA!=null&&EA.omit_in_ssr)continue;if(is_content_editable_binding(oA.name))IA=AA.visit(oA.expression);else if(oA.name==="value"&&eA.name==="textarea")IA=call("$.escape",AA.visit(oA.expression));else if(oA.name==="group"){const nA=eA.attributes.find(uA=>uA.type==="Attribute"&&uA.name==="value");if(!nA)continue;const cA=eA.attributes.some(uA=>uA.type==="Attribute"&&uA.name==="type"&&is_text_attribute(uA)&&uA.value[0].data==="checkbox");tA.push(create_attribute("checked",-1,-1,[{type:"ExpressionTag",start:-1,end:-1,parent:oA,expression:cA?call(member(oA.expression,"includes"),build_attribute_value$1(nA.value,AA)):binary("===",oA.expression,build_attribute_value$1(nA.value,AA)),metadata:{expression:create_expression_metadata()}}]))}else tA.push(create_attribute(oA.name,-1,-1,[{type:"ExpressionTag",start:-1,end:-1,parent:oA,expression:oA.expression,metadata:{expression:create_expression_metadata()}}]))}else oA.type==="SpreadAttribute"?(tA.push(oA),BA=!0,is_load_error_element(eA.name)&&(CA.add("onload"),CA.add("onerror"))):oA.type==="UseDirective"?is_load_error_element(eA.name)&&(CA.add("onload"),CA.add("onerror")):oA.type==="ClassDirective"?gA.push(oA):oA.type==="StyleDirective"?iA.push(oA):oA.type==="LetDirective"||AA.visit(oA);if(gA.length>0&&!BA){const oA=build_class_directives$1(gA,tA[sA]??null);sA===-1&&tA.push(oA)}if(iA.length>0&&!BA&&(build_style_directives$1(iA,tA[QA]??null,AA),QA>-1&&tA.splice(QA,1)),BA)build_element_spread_attributes(eA,tA,iA,gA,AA);else for(const oA of tA){if(oA.value===!0||is_text_attribute(oA)){const cA=get_attribute_name$1(eA,oA),uA=build_attribute_value$1(oA.value,AA,WHITESPACE_INSENSITIVE_ATTRIBUTES.includes(cA)).value;(cA!=="class"||uA)&&AA.state.template.push(literal(` ${oA.name}${is_boolean_attribute(cA)&&uA===!0?"":`="${uA===!0?"":String(uA)}"`}`));continue}const EA=get_attribute_name$1(eA,oA),nA=build_attribute_value$1(oA.value,AA,WHITESPACE_INSENSITIVE_ATTRIBUTES.includes(EA));AA.state.template.push(call("$.attr",literal(EA),nA,is_boolean_attribute(EA)&&true_instance))}if(CA.size!==0)for(const oA of CA)AA.state.template.push(literal(` ${oA}="this.__e=event"`));return IA}function get_attribute_name$1(eA,AA){let tA=AA.name;return!eA.metadata.svg&&!eA.metadata.mathml&&(tA=tA.toLowerCase()),tA}function build_element_spread_attributes(eA,AA,tA,gA,iA){let IA,BA,sA=0;if(gA.length>0||iA.state.analysis.css.hash){const oA=gA.map(EA=>init(EA.name,EA.expression.type==="Identifier"&&EA.expression.name===EA.name?id$1(EA.name):iA.visit(EA.expression)));iA.state.analysis.css.hash&&oA.unshift(init(iA.state.analysis.css.hash,literal(!0))),IA=object$2(oA)}if(tA.length>0){const oA=tA.map(EA=>init(EA.name,EA.value===!0?id$1(EA.name):build_attribute_value$1(EA.value,iA,!0)));BA=object$2(oA)}eA.metadata.svg||eA.metadata.mathml?sA|=ELEMENT_IS_NAMESPACED|ELEMENT_PRESERVE_ATTRIBUTE_CASE:is_custom_element_node(eA)&&(sA|=ELEMENT_PRESERVE_ATTRIBUTE_CASE);const CA=[object$2(AA.map(oA=>{if(oA.type==="Attribute"){const EA=get_attribute_name$1(eA,oA),nA=build_attribute_value$1(oA.value,iA,WHITESPACE_INSENSITIVE_ATTRIBUTES.includes(EA));return prop("init",key$2(EA),nA)}return spread(iA.visit(oA))})),IA,BA,sA?literal(sA):void 0];iA.state.template.push(call("$.spread_attributes",...CA))}function build_class_directives$1(eA,AA){const tA=eA.map(IA=>conditional(IA.expression,literal(IA.name),literal("")));AA===null&&(AA=create_attribute("class",-1,-1,[]));const gA=get_attribute_chunks(AA.value),iA=gA.at(-1);return(iA==null?void 0:iA.type)==="Text"?(iA.data+=" ",iA.raw+=" "):iA&&gA.push({type:"Text",start:-1,end:-1,parent:AA,data:" ",raw:" "}),gA.push({type:"ExpressionTag",start:-1,end:-1,parent:AA,expression:call(member(call(member(array(tA),"filter"),id$1("Boolean")),id$1("join")),literal(" ")),metadata:{expression:create_expression_metadata()}}),AA.value=gA,AA}function build_style_directives$1(eA,AA,tA){const gA=eA.map(IA=>{let BA=IA.value===!0?id$1(IA.name):build_attribute_value$1(IA.value,tA,!0);return IA.modifiers.includes("important")&&(BA=binary("+",BA,literal(" !important"))),init(IA.name,BA)}),iA=AA===null?object$2(gA):call("$.merge_styles",build_attribute_value$1(AA.value,tA,!0),object$2(gA));tA.state.template.push(call("$.add_styles",iA))}function RegularElement$1(eA,AA){const tA=determine_namespace_for_children(eA,AA.state.namespace),gA={...AA.state,namespace:tA,preserve_whitespace:AA.state.preserve_whitespace||eA.name==="pre"||eA.name==="textarea"};AA.state.template.push(literal(`<${eA.name}`));const iA=build_element_attributes(eA,{...AA,state:gA});if(AA.state.template.push(literal(">")),(eA.name==="script"||eA.name==="style")&&eA.fragment.nodes.length===1){AA.state.template.push(literal(eA.fragment.nodes[0].data),literal(`</${eA.name}>`));return}const{hoisted:IA,trimmed:BA}=clean_nodes(eA,eA.fragment.nodes,AA.path,tA,{...gA,scope:gA.scopes.get(eA.fragment)},gA.preserve_whitespace,gA.options.preserveComments);for(const sA of IA)AA.visit(sA,gA);if(dev){const sA=locator(eA.start);gA.template.push(stmt(call("$.push_element",id$1("$$payload"),literal(eA.name),literal(sA.line),literal(sA.column))))}if(iA===null)process_children$1(BA,{...AA,state:gA});else{let sA=iA;iA.type!=="Identifier"&&(sA=id$1(gA.scope.generate("$$body")),gA.template.push(const_builder(sA,iA)));const QA={...gA,template:[],init:[]};process_children$1(BA,{...AA,state:QA}),gA.template.push(if_builder(sA,block(build_template([sA])),block([...QA.init,...build_template(QA.template)])))}is_void(eA.name)||gA.template.push(literal(`</${eA.name}>`)),dev&&gA.template.push(stmt(call("$.pop_element")))}function RenderTag$1(eA,AA){const tA=unwrap_optional(eA.expression).callee,gA=unwrap_optional(eA.expression).arguments,iA=AA.visit(tA),IA=gA.map(BA=>AA.visit(BA));AA.state.template.push(stmt((eA.expression.type==="CallExpression"?call:maybe_call)(iA,id$1("$$payload"),...IA))),AA.state.skip_hydration_boundaries||AA.state.template.push(empty_comment)}function SlotElement$1(eA,AA){const tA=[],gA=[];let iA=literal("default");for(const QA of eA.attributes)if(QA.type==="SpreadAttribute")gA.push(AA.visit(QA));else if(QA.type==="Attribute"){const CA=build_attribute_value$1(QA.value,AA,!1,!0);QA.name==="name"?iA=CA:QA.name!=="slot"&&tA.push(init(QA.name,CA))}const IA=gA.length===0?object$2(tA):call("$.spread_props",array([object$2(tA),...gA])),BA=eA.fragment.nodes.length===0?literal(null):thunk(AA.visit(eA.fragment)),sA=call("$.slot",id$1("$$payload"),id$1("$$props"),iA,IA,BA);AA.state.template.push(empty_comment,stmt(sA),empty_comment)}function SnippetBlock$1(eA,AA){const tA=function_declaration(eA.expression,[id$1("$$payload"),...eA.parameters],AA.visit(eA.body));tA.___snippet=!0,AA.state.init.push(tA)}function SpreadAttribute$1(eA,AA){return AA.visit(eA.expression)}function SvelteComponent$1(eA,AA){build_inline_component(eA,AA.visit(eA.expression),AA)}function SvelteElement$1(eA,AA){let tA=AA.visit(eA.tag);if(tA.type!=="Identifier"){const BA=AA.state.scope.generate("$$tag");AA.state.init.push(const_builder(BA,tA)),tA=id$1(BA)}dev&&(eA.fragment.nodes.length>0&&AA.state.init.push(stmt(call("$.validate_void_dynamic_element",thunk(tA)))),AA.state.init.push(stmt(call("$.validate_dynamic_element_tag",thunk(tA)))));const gA={...AA.state,namespace:determine_namespace_for_children(eA,AA.state.namespace),template:[],init:[]};if(build_element_attributes(eA,{...AA,state:gA}),dev){const BA=locator(eA.start);AA.state.template.push(stmt(call("$.push_element",id$1("$$payload"),tA,literal(BA.line),literal(BA.column))))}const iA=block([...gA.init,...build_template(gA.template)]),IA=AA.visit(eA.fragment,gA);AA.state.template.push(stmt(call("$.element",id$1("$$payload"),tA,iA.body.length>0&&thunk(iA),IA.body.length>0&&thunk(IA)))),dev&&AA.state.template.push(stmt(call("$.pop_element")))}function SvelteFragment$1(eA,AA){AA.state.template.push(AA.visit(eA.fragment))}function SvelteHead$1(eA,AA){const tA=AA.visit(eA.fragment);AA.state.template.push(stmt(call("$.head",id$1("$$payload"),arrow([id$1("$$payload")],tA))))}function SvelteSelf$1(eA,AA){build_inline_component(eA,id$1(AA.state.analysis.name),AA)}function TitleElement$1(eA,AA){const tA=[literal("<title>")];process_children$1(eA.fragment.nodes,{...AA,state:{...AA.state,template:tA}}),tA.push(literal("</title>")),AA.state.init.push(...build_template(tA,id$1("$$payload.title"),"="))}function UpdateExpression$1(eA,AA){var gA;const tA=eA.argument;return tA.type==="Identifier"&&((gA=AA.state.scope.get(tA.name))==null?void 0:gA.kind)==="store_sub"?call(eA.prefix?"$.update_store_pre":"$.update_store",assignment("??=",id$1("$$store_subs"),object$2([])),literal(tA.name),id$1(tA.name.slice(1)),eA.operator==="--"&&literal(-1)):AA.next()}function VariableDeclaration$1(eA,AA){var gA;const tA=[];if(AA.state.analysis.runes)for(const iA of eA.declarations){const IA=iA.init,BA=get_rune(IA,AA.state.scope);if(!BA||BA==="$effect.tracking"||BA==="$inspect"||BA==="$effect.root"){tA.push(AA.visit(iA));continue}if(BA==="$props"){let CA=!1,oA=walk(iA.id,null,{RestElement(EA,nA){nA.path.at(-1)===iA.id&&(CA=!0)},AssignmentPattern(EA){if(EA.right.type==="CallExpression"&&get_rune(EA.right,AA.state.scope)==="$bindable"){const nA=EA.right.arguments.length?AA.visit(EA.right.arguments[0]):id$1("undefined");return assignment_pattern(EA.left,nA)}}});oA.type==="ObjectPattern"&&CA?oA.properties.splice(oA.properties.length-1,0,prop("init",id$1("$$slots"),id$1("$$slots")),prop("init",id$1("$$events"),id$1("$$events"))):oA.type==="Identifier"&&(oA=object_pattern([prop("init",id$1("$$slots"),id$1("$$slots")),prop("init",id$1("$$events"),id$1("$$events")),rest(id$1(oA.name))])),tA.push(declarator(AA.visit(oA),id$1("$$props")));continue}const sA=IA.arguments,QA=sA.length===0?id$1("undefined"):AA.visit(sA[0]);if(BA==="$derived.by"){tA.push(declarator(AA.visit(iA.id),call(QA)));continue}if(iA.id.type==="Identifier"){tA.push(declarator(iA.id,QA));continue}if(BA==="$derived"){tA.push(declarator(AA.visit(iA.id),QA));continue}tA.push(...create_state_declarators$1(iA,AA.state.scope,QA))}else for(const iA of eA.declarations){const IA=AA.state.scope.get_bindings(iA),BA=IA.some(QA=>QA.kind==="state"),sA=IA.some(QA=>QA.kind==="bindable_prop");if(!BA&&!sA){tA.push(AA.visit(iA));continue}if(sA){if(iA.id.type!=="Identifier"){const EA=AA.state.scope.generate("tmp"),nA=extract_paths(iA.id);tA.push(declarator(id$1(EA),AA.visit(iA.init)));for(const cA of nA){const uA=(gA=cA.expression)==null?void 0:gA.call(cA,id$1(EA)),lA=cA.node.name,hA=AA.state.scope.get(lA),dA=member(id$1("$$props"),literal(hA.prop_alias??lA),!0);tA.push(declarator(cA.node,build_fallback(dA,uA)))}continue}const QA=AA.state.scope.get(iA.id.name),CA=member(id$1("$$props"),literal(QA.prop_alias??iA.id.name),!0);let oA=CA;if(iA.init){const EA=AA.visit(iA.init);oA=build_fallback(CA,EA)}tA.push(declarator(iA.id,oA));continue}tA.push(...create_state_declarators$1(iA,AA.state.scope,iA.init&&AA.visit(iA.init)))}return{...eA,declarations:tA}}function create_state_declarators$1(eA,AA,tA){if(eA.id.type==="Identifier")return[declarator(eA.id,tA)];const gA=AA.generate("tmp"),iA=extract_paths(eA.id);return[declarator(id$1(gA),tA),...iA.map(IA=>{var sA;const BA=(sA=IA.expression)==null?void 0:sA.call(IA,id$1(gA));return declarator(IA.node,BA)})]}const global_visitors={_:set_scope,AssignmentExpression:AssignmentExpression$1,CallExpression:CallExpression$1,ClassBody:ClassBody$1,ExpressionStatement:ExpressionStatement$1,Identifier:Identifier$1,LabeledStatement:LabeledStatement$1,MemberExpression:MemberExpression$1,PropertyDefinition,UpdateExpression:UpdateExpression$1,VariableDeclaration:VariableDeclaration$1},template_visitors={AwaitBlock:AwaitBlock$1,Component:Component$1,ConstTag:ConstTag$1,DebugTag:DebugTag$1,EachBlock:EachBlock$1,Fragment:Fragment$1,HtmlTag:HtmlTag$1,IfBlock:IfBlock$1,KeyBlock:KeyBlock$1,RegularElement:RegularElement$1,RenderTag:RenderTag$1,SlotElement:SlotElement$1,SnippetBlock:SnippetBlock$1,SpreadAttribute:SpreadAttribute$1,SvelteComponent:SvelteComponent$1,SvelteElement:SvelteElement$1,SvelteFragment:SvelteFragment$1,SvelteHead:SvelteHead$1,SvelteSelf:SvelteSelf$1,TitleElement:TitleElement$1};function server_component(eA,AA){const tA={analysis:eA,options:AA,scope:eA.module.scope,scopes:eA.module.scopes,hoisted:[import_all("$","svelte/internal/server")],legacy_reactive_statements:new Map,init:null,template:null,namespace:AA.namespace,preserve_whitespace:AA.preserveWhitespace,private_derived:new Map,skip_hydration_boundaries:!1},gA=walk(eA.module.ast,tA,global_visitors),iA=walk(eA.instance.ast,{...tA,scopes:eA.instance.scopes},{...global_visitors,ImportDeclaration(cA){return tA.hoisted.push(cA),empty},ExportNamedDeclaration(cA,uA){return cA.declaration?uA.visit(cA.declaration):empty}}),IA=walk(eA.template.ast,{...tA,scopes:eA.template.scopes},{...global_visitors,...template_visitors}),BA=[];for(const[cA]of eA.reactive_statements){const uA=[...tA.legacy_reactive_statements].find(([lA])=>lA===cA);if(uA===void 0)throw new Error("Could not find reactive statement");if(cA.body.type==="ExpressionStatement"&&cA.body.expression.type==="AssignmentExpression")for(const lA of extract_identifiers(cA.body.expression.left)){const hA=eA.instance.scope.get(lA.name);(hA==null?void 0:hA.kind)==="legacy_reactive"&&BA.push(declarator(lA))}iA.body.push(uA[1])}if(BA.length>0&&iA.body.unshift({type:"VariableDeclaration",kind:"let",declarations:BA}),eA.uses_component_bindings){const cA=IA.body.filter(lA=>lA.type==="FunctionDeclaration"&&lA.___snippet),uA=IA.body.filter(lA=>lA.type!=="FunctionDeclaration"||!lA.___snippet);IA.body=[...cA,let_builder("$$settled",true_instance),let_builder("$$inner_payload"),stmt(function_builder(id$1("$$render_inner"),[id$1("$$payload")],block(uA))),do_while(unary("!",id$1("$$settled")),block([stmt(assignment("=",id$1("$$settled"),true_instance)),stmt(assignment("=",id$1("$$inner_payload"),call("$.copy_payload",id$1("$$payload")))),stmt(call("$$render_inner",id$1("$$inner_payload")))])),stmt(call("$.assign_payload",id$1("$$payload"),id$1("$$inner_payload")))]}[...eA.instance.scope.declarations.values()].some(cA=>cA.kind==="store_sub")&&(iA.body.unshift(var_builder("$$store_subs")),IA.body.push(if_builder(id$1("$$store_subs"),stmt(call("$.unsubscribe_stores",id$1("$$store_subs"))))));const sA=[];for(const[cA,uA]of eA.instance.scope.declarations)uA.kind==="bindable_prop"&&!cA.startsWith("$$")&&sA.push(init(uA.prop_alias??cA,id$1(cA)));for(const{name:cA,alias:uA}of eA.exports)sA.push(init(uA??cA,id$1(cA)));sA.length>0&&IA.body.push(stmt(call("$.bind_props",id$1("$$props"),object$2(sA))));const QA=block([...iA.body,...IA.body]);let CA=dev||eA.needs_context;if(CA&&(QA.body.unshift(stmt(call("$.push",dev&&id$1(eA.name)))),QA.body.push(stmt(call("$.pop")))),eA.uses_rest_props){const cA=eA.exports.map(({name:uA,alias:lA})=>lA??uA);for(const[uA,lA]of eA.instance.scope.declarations)lA.kind==="bindable_prop"&&cA.push(lA.prop_alias??uA);QA.body.unshift(const_builder("$$restProps",call("$.rest_props",id$1("$$sanitized_props"),array(cA.map(uA=>literal(uA))))))}(eA.uses_props||eA.uses_rest_props)&&QA.body.unshift(const_builder("$$sanitized_props",call("$.sanitize_props",id$1("$$props")))),eA.uses_slots&&QA.body.unshift(const_builder("$$slots",call("$.sanitize_slots",id$1("$$props"))));const oA=[...tA.hoisted,...gA.body];if(eA.css.ast!==null&&AA.css==="injected"&&!AA.customElement){const cA=literal(eA.css.hash),uA=literal(render_stylesheet(eA.source,eA,AA).code);oA.push(const_builder("$$css",object$2([init("hash",cA),init("code",uA)]))),QA.body.unshift(stmt(call("$$payload.css.add",id$1("$$css"))))}let EA=CA||sA.length>0||eA.needs_props||eA.uses_props||eA.uses_rest_props||eA.uses_slots||eA.slot_names.size>0;const nA=function_declaration(id$1(eA.name),EA?[id$1("$$payload"),id$1("$$props")]:[id$1("$$payload")],QA);return AA.compatibility.componentApi===4?(oA.unshift(imports([["render","$$_render"]],"svelte/server")),oA.push(nA,stmt(assignment("=",member_id(`${eA.name}.render`),function_builder(null,[id$1("$$props"),id$1("$$opts")],block([return_builder(call("$$_render",id$1(eA.name),object$2([init("props",id$1("$$props")),init("context",member(id$1("$$opts"),"context",!1,!0))])))])))),export_default(id$1(eA.name)))):dev?oA.push(nA,stmt(assignment("=",member_id(`${eA.name}.render`),function_builder(null,[],block([throw_error$1("Component.render(...) is no longer valid in Svelte 5. See https://svelte-5-preview.vercel.app/docs/breaking-changes#components-are-no-longer-classes for more information")])))),export_default(id$1(eA.name))):oA.push(export_default(nA)),dev&&oA.unshift(stmt(assignment("=",member(id$1(eA.name),"$.FILENAME",!0),literal(filename)))),{type:"Program",sourceType:"module",body:oA}}function server_module(eA,AA){const tA={analysis:eA,options:AA,scope:eA.module.scope,scopes:eA.module.scopes,legacy_reactive_statements:new Map,private_derived:new Map},gA=walk(eA.module.ast,tA,global_visitors);return{type:"Program",sourceType:"module",body:[import_all("$","svelte/internal/server"),...gA.body]}}function get_states_and_calls(eA){let AA=0,tA=0;for(let gA=0;gA<eA.length;gA++){const iA=eA[gA];iA.type==="ExpressionTag"&&(iA.metadata.expression.has_call&&tA++,iA.metadata.expression.has_state&&AA++)}return{states:AA,calls:tA}}function build_template_literal(eA,AA,tA){const gA=[];let iA=quasi("");const IA=[iA],{states:BA,calls:sA}=get_states_and_calls(eA);let QA=sA>0,CA=BA>0,oA=sA>1;for(let nA=0;nA<eA.length;nA++){const cA=eA[nA];if(cA.type==="Text")iA.value.cooked+=cA.data;else if(cA.type==="ExpressionTag"&&cA.expression.type==="Literal")cA.expression.value!=null&&(iA.value.cooked+=cA.expression.value+"");else{if(oA){const uA=id$1(tA.scope.generate("stringified_text"));tA.init.push(const_builder(uA,create_derived(tA,thunk(logical("??",AA(cA.expression,tA),literal("")))))),gA.push(call("$.get",uA))}else{if(eA.length===1)return{value:AA(cA.expression,tA),has_state:CA,has_call:QA};gA.push(logical("??",AA(cA.expression,tA),literal("")))}iA=quasi("",nA+1===eA.length),IA.push(iA)}}for(const nA of IA)nA.value.raw=sanitize_template_string(nA.value.cooked);return{value:template(IA,gA),has_state:CA,has_call:QA}}function build_update(eA){const AA=eA.type==="ExpressionStatement"?eA.expression:block([eA]);return stmt(call("$.template_effect",thunk(AA)))}function build_render_statement(eA){return eA.length===1?build_update(eA[0]):stmt(call("$.template_effect",thunk(block(eA))))}function parse_directive_name(eA){const AA=eA.split(".");let tA=AA.shift(),gA=id$1(tA);for(;tA=AA.shift();){const iA=!regex_is_valid_identifier.test(tA);gA=member(gA,iA?literal(tA):id$1(tA),iA)}return gA}function build_update_assignment(eA,AA,tA,gA,iA){eA.init.push(var_builder(AA,tA)),eA.update.push(if_builder(binary("!==",id$1(AA),assignment("=",id$1(AA),gA)),block([iA])))}function build_bind_this(eA,AA,{state:tA,visit:gA}){const iA=[],IA=[],BA=[],sA={...tA.transform};walk(eA,null,{Identifier(nA,{path:cA}){if(BA.includes(nA.name))return;BA.push(nA.name);const uA=cA.at(-1);if(!is_reference(nA,uA))return;const lA=tA.scope.get(nA.name);if(lA){for(const[hA,dA]of tA.scopes)if(hA.type==="EachBlock"&&dA===lA.scope){iA.push(nA),IA.push(gA(nA)),sA[nA.name]&&(sA[nA.name]={...sA[nA.name],read:DA=>DA});break}}}});const QA={...tA,transform:sA},CA=gA(eA,QA),oA=gA(assignment("=",eA,id$1("$$value")),QA);let EA=CA;for(;EA.type==="MemberExpression";)EA.optional=!0,EA=EA.object;return call("$.bind_this",AA,arrow([id$1("$$value"),...iA],oA),arrow([...iA],CA),IA.length>0&&thunk(array(IA)))}function validate_binding(eA,AA,tA){const gA=object$1(AA.expression),iA=gA&&eA.scope.get(gA.name);if((iA==null?void 0:iA.kind)==="store_sub")return;const IA=locator(AA.start);eA.init.push(stmt(call("$.validate_binding",literal(eA.analysis.source.slice(AA.start,AA.end)),thunk(tA.object),thunk(tA.computed?tA.property:literal(tA.property.name)),IA&&literal(IA.line),IA&&literal(IA.column))))}function AnimateDirective(eA,AA){const tA=eA.expression===null?literal(null):thunk(AA.visit(eA.expression));AA.state.after_update.push(stmt(call("$.animation",AA.state.node,thunk(AA.visit(parse_directive_name(eA.name))),tA)))}const visit_function=(eA,AA)=>{const tA=eA.metadata;let gA={...AA.state,in_constructor:!1};if(eA.type==="FunctionExpression"){const iA=AA.path.at(-1);gA.in_constructor=iA.type==="MethodDefinition"&&iA.kind==="constructor"}if((tA==null?void 0:tA.hoisted)===!0){const iA=build_hoisted_params(eA,AA);return{...eA,params:iA,body:AA.visit(eA.body,gA)}}AA.next(gA)};function ArrowFunctionExpression(eA,AA){return visit_function(eA,AA)}function AssignmentExpression(eA,AA){const tA=visit_assignment_expression(eA,AA,build_assignment)??AA.next();return is_ignored(eA,"ownership_invalid_mutation")?call("$.skip_ownership_validation",thunk(tA)):tA}function build_assignment(eA,AA,tA,gA){if(gA.state.analysis.runes&&AA.type==="MemberExpression"&&AA.object.type==="ThisExpression"&&AA.property.type==="PrivateIdentifier"){const sA=gA.state.private_state.get(AA.property.name);if(sA!==void 0){let QA=!1,CA=gA.visit(build_assignment_value(eA,AA,tA));if(should_proxy(CA,gA.state.scope)&&(QA=!0,CA=sA.kind==="raw_state"?CA:build_proxy_reassignment(CA,member(this_instance,sA.id))),gA.state.in_constructor){if(QA)return assignment(eA,gA.visit(AA),CA)}else return call("$.set",AA,CA)}}let iA=AA;for(;iA.type==="MemberExpression";)iA=iA.object;if(iA.type!=="Identifier")return null;const IA=gA.state.scope.get(iA.name);if(!IA)return null;const BA=Object.hasOwn(gA.state.transform,iA.name)?gA.state.transform[iA.name]:null;if(iA===AA&&(BA!=null&&BA.assign)){let sA=gA.visit(build_assignment_value(eA,AA,tA));const QA=gA.path.map(oA=>oA.type);return!(QA.at(-1)==="BindDirective"&&QA.at(-2)==="RegularElement")&&IA.kind!=="prop"&&IA.kind!=="bindable_prop"&&gA.state.analysis.runes&&should_proxy(sA,gA.state.scope)&&(sA=IA.kind==="raw_state"?sA:build_proxy_reassignment(sA,iA)),BA.assign(iA,sA)}return BA!=null&&BA.mutate?BA.mutate(iA,assignment(eA,gA.visit(AA),gA.visit(tA))):null}function visit_event_attribute(eA,AA){let tA=!1,gA=eA.name.slice(2);is_capture_event(gA)&&(gA=gA.slice(0,-7),tA=!0);const iA=Array.isArray(eA.value)?eA.value[0]:eA.value;let IA=build_event_handler(iA.expression,iA.metadata.expression,AA);if(eA.metadata.delegated){let BA;if(AA.state.events.has(gA)||AA.state.events.add(gA),eA.metadata.delegated.hoisted){if(eA.metadata.delegated.function===iA.expression){const CA=AA.state.scope.root.unique("on_"+gA);AA.state.hoisted.push(var_builder(CA,IA)),IA=CA}const sA=eA.metadata.delegated.function.metadata.hoisted_params,QA=[IA,...sA];BA=array(QA)}else BA=IA;AA.state.init.push(stmt(assignment("=",member(AA.state.node,"__"+gA),BA)))}else{const BA=stmt(build_event(gA,AA.state.node,IA,tA,is_passive_event(gA)?!0:void 0)),sA=AA.path.at(-1).type;sA==="SvelteDocument"||sA==="SvelteWindow"||sA==="SvelteBody"?AA.state.init.push(BA):AA.state.after_update.push(BA)}}function build_event(eA,AA,tA,gA,iA){return call("$.event",literal(eA),AA,tA,gA&&true_instance,iA===void 0?void 0:literal(iA))}function build_event_handler(eA,AA,tA){var IA;if(eA===null)return function_builder(null,[id$1("$$arg")],block([stmt(call("$.bubble_event.call",this_instance,id$1("$$props"),id$1("$$arg")))]));let gA=tA.visit(eA);if(gA.type==="ArrowFunctionExpression"||gA.type==="FunctionExpression"||gA.type==="Identifier"&&((IA=tA.state.scope.get(gA.name))==null?void 0:IA.declaration_kind)!=="import")return gA;if(AA.has_call){const BA=id$1(tA.state.scope.generate("event_handler"));tA.state.init.push(var_builder(BA,call("$.derived",thunk(gA)))),gA=call("$.get",BA)}let iA=call(member(gA,"apply",!1,!0),this_instance,id$1("$$args"));if(dev){const BA=locator(eA.start),sA=eA.type==="CallExpression"&&eA.arguments.length===0&&eA.callee.type==="Identifier";iA=call("$.apply",thunk(gA),this_instance,id$1("$$args"),id$1(tA.state.analysis.name),BA&&array([literal(BA.line),literal(BA.column)]),has_side_effects(eA)&&true_instance,sA&&true_instance)}return function_builder(null,[rest(id$1("$$args"))],block([stmt(iA)]))}function has_side_effects(eA){return eA.type==="CallExpression"||eA.type==="NewExpression"||eA.type==="AssignmentExpression"||eA.type==="UpdateExpression"?!0:eA.type==="SequenceExpression"?eA.expressions.some(has_side_effects):!1}function Attribute(eA,AA){is_event_attribute(eA)&&visit_event_attribute(eA,AA)}function AwaitBlock(eA,AA){AA.state.template.push("<!>");const tA=thunk(AA.visit(eA.expression));let gA,iA;if(eA.then){const IA={...AA,state:{...AA.state,transform:{...AA.state.transform}}},BA=eA.value&&create_derived_block_argument(eA.value,IA),sA=[id$1("$$anchor")];BA&&sA.push(BA.id);const QA=(BA==null?void 0:BA.declarations)??[],CA=IA.visit(eA.then,IA.state);gA=arrow(sA,block([...QA,...CA.body]))}if(eA.catch){const IA={...AA,state:{...AA.state}},BA=eA.error&&create_derived_block_argument(eA.error,IA),sA=[id$1("$$anchor")];BA&&sA.push(BA.id);const QA=(BA==null?void 0:BA.declarations)??[],CA=IA.visit(eA.catch,IA.state);iA=arrow(sA,block([...QA,...CA.body]))}AA.state.init.push(stmt(call("$.await",AA.state.node,tA,eA.pending?arrow([id$1("$$anchor")],AA.visit(eA.pending)):literal(null),gA,iA)))}function BinaryExpression(eA,AA){if(dev){const tA=eA.operator;if(tA==="==="||tA==="!==")return call("$.strict_equals",AA.visit(eA.left),AA.visit(eA.right),tA==="!=="&&literal(!1));if(tA==="=="||tA==="!=")return call("$.equals",AA.visit(eA.left),AA.visit(eA.right),tA==="!="&&literal(!1))}AA.next()}function build_set_attributes(eA,AA,tA,gA,iA,IA,BA,sA){let QA=!1;const CA=[];for(const EA of eA)if(EA.type==="Attribute"){const{value:nA}=build_attribute_value(EA.value,AA);if(is_event_attribute(EA)&&(nA.type==="ArrowFunctionExpression"||nA.type==="FunctionExpression")){const cA=AA.state.scope.generate("event_handler");AA.state.init.push(var_builder(cA,nA)),CA.push(init(EA.name,id$1(cA)))}else CA.push(init(EA.name,nA));QA||(QA=EA.metadata.expression.has_state)}else{QA=!0;let nA=AA.visit(EA);if(EA.metadata.expression.has_call){const cA=id$1(sA.scope.generate("spread_with_call"));sA.init.push(const_builder(cA,create_derived(sA,thunk(nA)))),nA=call("$.get",cA)}CA.push(spread(nA))}const oA=call("$.set_attributes",gA,QA?iA:literal(null),object$2(CA),AA.state.analysis.css.hash!==""&&literal(AA.state.analysis.css.hash),IA,BA,is_ignored(tA,"hydration_attribute_changed")&&true_instance);if(QA){AA.state.init.push(let_builder(iA));const EA=stmt(assignment("=",iA,oA));return AA.state.update.push(EA),!0}return AA.state.init.push(stmt(oA)),!1}function build_style_directives(eA,AA,tA,gA){const iA=tA.state;for(const IA of eA){const{has_state:BA,has_call:sA}=IA.metadata.expression;let QA=IA.value===!0?build_getter$1({name:IA.name,type:"Identifier"},tA.state):build_attribute_value(IA.value,tA).value;if(sA){const oA=id$1(iA.scope.generate("style_directive"));iA.init.push(const_builder(oA,create_derived(iA,thunk(QA)))),QA=call("$.get",oA)}const CA=stmt(call("$.set_style",AA,literal(IA.name),QA,IA.modifiers.includes("important")?true_instance:void 0));!gA&&sA?iA.init.push(build_update(CA)):gA||BA||sA?iA.update.push(CA):iA.init.push(CA)}}function build_class_directives(eA,AA,tA,gA){const iA=tA.state;for(const IA of eA){const{has_state:BA,has_call:sA}=IA.metadata.expression;let QA=tA.visit(IA.expression);if(sA){const oA=id$1(iA.scope.generate("class_directive"));iA.init.push(const_builder(oA,create_derived(iA,thunk(QA)))),QA=call("$.get",oA)}const CA=stmt(call("$.toggle_class",AA,literal(IA.name),QA));!gA&&sA?iA.init.push(build_update(CA)):gA||BA||sA?iA.update.push(CA):iA.init.push(CA)}}function build_attribute_value(eA,AA){if(eA===!0)return{has_state:!1,has_call:!1,value:literal(!0)};if(!Array.isArray(eA)||eA.length===1){const tA=Array.isArray(eA)?eA[0]:eA;return tA.type==="Text"?{has_state:!1,has_call:!1,value:literal(tA.data)}:{has_state:tA.metadata.expression.has_state,has_call:tA.metadata.expression.has_call,value:AA.visit(tA.expression)}}return build_template_literal(eA,AA.visit,AA.state)}function get_attribute_name(eA,AA){return!eA.metadata.svg&&!eA.metadata.mathml?normalize_attribute(AA.name):AA.name}function BindDirective(eA,AA){var QA;const tA=eA.expression,gA=binding_properties[eA.name],iA=AA.path.at(-1);dev&&AA.state.analysis.runes&&tA.type==="MemberExpression"&&(eA.name!=="this"||AA.path.some(({type:CA})=>CA==="IfBlock"||CA==="EachBlock"||CA==="AwaitBlock"||CA==="KeyBlock"))&&!is_ignored(eA,"binding_property_non_reactive")&&validate_binding(AA.state,eA,AA.visit(tA));const IA=thunk(AA.visit(tA));let BA=unthunk(arrow([id$1("$$value")],AA.visit(assignment("=",tA,id$1("$$value")))));IA===BA&&(BA=void 0);let sA;if(gA!=null&&gA.event)sA=call("$.bind_property",literal(eA.name),literal(gA.event),AA.state.node,BA??IA,gA.bidirectional&&IA);else switch(eA.name){case"online":sA=call("$.bind_online",BA??IA);break;case"scrollX":case"scrollY":sA=call("$.bind_window_scroll",literal(eA.name==="scrollX"?"x":"y"),IA,BA);break;case"innerWidth":case"innerHeight":case"outerWidth":case"outerHeight":sA=call("$.bind_window_size",literal(eA.name),BA??IA);break;case"activeElement":sA=call("$.bind_active_element",BA??IA);break;case"muted":sA=call("$.bind_muted",AA.state.node,IA,BA);break;case"paused":sA=call("$.bind_paused",AA.state.node,IA,BA);break;case"volume":sA=call("$.bind_volume",AA.state.node,IA,BA);break;case"playbackRate":sA=call("$.bind_playback_rate",AA.state.node,IA,BA);break;case"currentTime":sA=call("$.bind_current_time",AA.state.node,IA,BA);break;case"buffered":sA=call("$.bind_buffered",AA.state.node,BA??IA);break;case"played":sA=call("$.bind_played",AA.state.node,BA??IA);break;case"seekable":sA=call("$.bind_seekable",AA.state.node,BA??IA);break;case"seeking":sA=call("$.bind_seeking",AA.state.node,BA??IA);break;case"ended":sA=call("$.bind_ended",AA.state.node,BA??IA);break;case"readyState":sA=call("$.bind_ready_state",AA.state.node,BA??IA);break;case"contentRect":case"contentBoxSize":case"borderBoxSize":case"devicePixelContentBoxSize":sA=call("$.bind_resize_observer",AA.state.node,literal(eA.name),BA??IA);break;case"clientWidth":case"clientHeight":case"offsetWidth":case"offsetHeight":sA=call("$.bind_element_size",AA.state.node,literal(eA.name),BA??IA);break;case"value":{(iA==null?void 0:iA.type)==="RegularElement"&&iA.name==="select"?sA=call("$.bind_select_value",AA.state.node,IA,BA):sA=call("$.bind_value",AA.state.node,IA,BA);break}case"files":sA=call("$.bind_files",AA.state.node,IA,BA);break;case"this":sA=build_bind_this(tA,AA.state.node,AA);break;case"textContent":case"innerHTML":case"innerText":sA=call("$.bind_content_editable",literal(eA.name),AA.state.node,IA,BA);break;case"checked":sA=call("$.bind_checked",AA.state.node,IA,BA);break;case"focused":sA=call("$.bind_focused",AA.state.node,BA??IA);break;case"group":{const CA=eA.metadata.parent_each_blocks.map(EA=>EA.metadata.keyed&&EA.index?call("$.get",EA.metadata.index):EA.metadata.index);let oA=IA;if((iA==null?void 0:iA.type)==="RegularElement"){const EA=(QA=iA.attributes.find(nA=>nA.type==="Attribute"&&nA.name==="value"&&!is_text_attribute(nA)&&nA.value!==!0))==null?void 0:QA.value;EA!==void 0&&(oA=thunk(block([stmt(build_attribute_value(EA,AA).value),return_builder(AA.visit(tA))])))}sA=call("$.bind_group",eA.metadata.binding_group_name,array(CA),AA.state.node,oA,BA??IA);break}default:throw new Error("unknown binding "+eA.name)}if(eA.name==="this")AA.state.init.push(stmt(sA));else{const CA=iA.type==="RegularElement"&&iA.attributes.find(oA=>oA.type==="UseDirective");AA.state.after_update.push(stmt(CA?call("$.effect",thunk(sA)):sA))}}function BlockStatement(eA,AA){add_state_transformers(AA),AA.next()}function BreakStatement(eA,AA){if(AA.state.analysis.runes||!eA.label||eA.label.name!=="$")return;if(AA.path[1].type==="LabeledStatement"&&AA.path[1].label.name==="$")return return_builder()}function CallExpression(eA,AA){switch(get_rune(eA,AA.state.scope)){case"$host":return id$1("$$props.$$host");case"$effect.tracking":return call("$.effect_tracking");case"$state.snapshot":return call("$.snapshot",AA.visit(eA.arguments[0]),is_ignored(eA,"state_snapshot_uncloneable")&&true_instance);case"$effect.root":return call("$.effect_root",...eA.arguments.map(tA=>AA.visit(tA)));case"$inspect":case"$inspect().with":return transform_inspect_rune(eA,AA)}if(dev&&eA.callee.type==="MemberExpression"&&eA.callee.object.type==="Identifier"&&eA.callee.object.name==="console"&&AA.state.scope.get("console")===null&&eA.callee.property.type==="Identifier"&&["debug","dir","error","group","groupCollapsed","info","log","trace","warn"].includes(eA.callee.property.name))return call(eA.callee,spread(call("$.log_if_contains_state",literal(eA.callee.property.name),...eA.arguments.map(tA=>AA.visit(tA)))));AA.next()}function ClassBody(eA,AA){var sA,QA;if(!AA.state.analysis.runes){AA.next();return}const tA=new Map,gA=new Map,iA=[];for(const CA of eA.body)if(CA.type==="PropertyDefinition"&&(CA.key.type==="Identifier"||CA.key.type==="PrivateIdentifier"||CA.key.type==="Literal")){const oA=CA.key.type,EA=get_name(CA.key);if(!EA)continue;const nA=oA==="PrivateIdentifier";if(nA&&iA.push(EA),((sA=CA.value)==null?void 0:sA.type)==="CallExpression"){const cA=get_rune(CA.value,AA.state.scope);if(cA==="$state"||cA==="$state.raw"||cA==="$derived"||cA==="$derived.by"){const uA={kind:cA==="$state"?"state":cA==="$state.raw"?"raw_state":cA==="$derived.by"?"derived_by":"derived",id:nA?CA.key:null};nA?gA.set(EA,uA):tA.set(EA,uA)}}}for(const[CA,oA]of tA){let EA=CA;for(;iA.includes(EA);)EA="_"+EA;iA.push(EA),oA.id=private_id(EA)}const IA=[],BA={...AA.state,public_state:tA,private_state:gA};for(const CA of eA.body){if(CA.type==="PropertyDefinition"&&(CA.key.type==="Identifier"||CA.key.type==="PrivateIdentifier"||CA.key.type==="Literal")){const oA=get_name(CA.key);if(!oA)continue;const EA=CA.key.type==="PrivateIdentifier",nA=(EA?gA:tA).get(oA);if(((QA=CA.value)==null?void 0:QA.type)==="CallExpression"&&nA!==void 0){let cA=null;if(CA.value.arguments.length>0){const uA=AA.visit(CA.value.arguments[0],BA);cA=nA.kind==="state"?call("$.state",should_proxy(uA,AA.state.scope)?call("$.proxy",uA):uA):nA.kind==="raw_state"?call("$.state",uA):nA.kind==="derived_by"?call("$.derived",uA):call("$.derived",thunk(uA))}else cA=call("$.state");if(EA)IA.push(prop_def(nA.id,cA));else{const uA=member(this_instance,nA.id);if(IA.push(prop_def(nA.id,cA)),IA.push(method("get",CA.key,[],[return_builder(call("$.get",uA))])),nA.kind==="state"){const lA=id$1("value"),hA=member(this_instance,nA.id);IA.push(method("set",CA.key,[lA],[stmt(call("$.set",uA,build_proxy_reassignment(lA,hA)))]))}if(nA.kind==="raw_state"){const lA=id$1("value");IA.push(method("set",CA.key,[lA],[stmt(call("$.set",uA,lA))]))}dev&&(nA.kind==="derived"||nA.kind==="derived_by")&&IA.push(method("set",CA.key,[id$1("_")],[throw_error$1(`Cannot update a derived property ('${oA}')`)]))}continue}}IA.push(AA.visit(CA,BA))}return dev&&tA.size>0&&IA.push(method("method",id$1("$.ADD_OWNER"),[id$1("owner")],Array.from(tA.keys()).map(CA=>stmt(call("$.add_owner",call("$.get",member(this_instance,private_id(CA))),id$1("owner"),literal(!1),is_ignored(eA,"ownership_invalid_binding")&&true_instance))),!0)),{...eA,body:IA}}function get_name(eA){var AA;return eA.type==="Literal"?(AA=eA.value)==null?void 0:AA.toString().replace(regex_invalid_identifier_chars,"_"):eA.name}function Comment(eA,AA){AA.state.template.push(`<!--${eA.data}-->`)}function build_component(eA,AA,tA,gA=tA.state.node){var RA,GA;const iA=[],IA=[],BA={default:{...tA.state,scope:eA.metadata.scopes.default,transform:{...tA.state.transform}}},sA={},QA={},CA=[];let oA=null;const EA=[];let nA=!!determine_slot(eA),cA=!1;function uA(yA){const LA=iA.at(-1),KA=Array.isArray(LA),bA=KA?LA:[];bA.push(yA),KA||iA.push(bA)}if(nA)for(const yA of eA.attributes)yA.type==="LetDirective"&&IA.push(tA.visit(yA));for(const yA of eA.attributes)if(yA.type==="LetDirective")nA||IA.push(tA.visit(yA,BA.default));else if(yA.type==="OnDirective"){yA.expression||(tA.state.analysis.needs_props=!0);let LA=build_event_handler(yA.expression,yA.metadata.expression,tA);yA.modifiers.includes("once")&&(LA=call("$.once",LA)),(QA[RA=yA.name]||(QA[RA]=[])).push(LA)}else if(yA.type==="SpreadAttribute"){const LA=tA.visit(yA);if(yA.metadata.expression.has_state){let KA=LA;if(yA.metadata.expression.has_call){const bA=id$1(tA.state.scope.generate("spread_element"));tA.state.init.push(var_builder(bA,call("$.derived",thunk(KA)))),KA=call("$.get",bA)}iA.push(thunk(KA))}else iA.push(LA)}else if(yA.type==="Attribute"){if(yA.name.startsWith("--")){CA.push(init(yA.name,build_attribute_value(yA.value,tA).value));continue}yA.name==="slot"&&(nA=!0),yA.name==="children"&&(cA=!0);const{value:LA}=build_attribute_value(yA.value,tA);if(yA.metadata.expression.has_state){let KA=LA;if(get_attribute_chunks(yA.value).some(SA=>SA.type==="ExpressionTag"&&SA.expression.type!=="Identifier"&&SA.expression.type!=="MemberExpression")){const SA=id$1(tA.state.scope.generate(yA.name));tA.state.init.push(var_builder(SA,create_derived(tA.state,thunk(LA)))),KA=call("$.get",SA)}uA(get(yA.name,[return_builder(KA)]))}else uA(init(yA.name,LA))}else if(yA.type==="BindDirective"){const LA=tA.visit(yA.expression);if(dev&&LA.type==="MemberExpression"&&tA.state.analysis.runes&&!is_ignored(eA,"binding_property_non_reactive")&&validate_binding(tA.state,yA,LA),yA.name==="this")oA=yA.expression;else{dev&&EA.push(stmt(call(id$1("$.add_owner_effect"),thunk(LA),id$1(AA),is_ignored(eA,"ownership_invalid_binding")&&true_instance)));const KA=yA.expression.type==="Identifier"&&((GA=tA.state.scope.get(yA.expression.name))==null?void 0:GA.kind)==="store_sub";uA(KA?get(yA.name,[stmt(call("$.mark_store_binding")),return_builder(LA)]):get(yA.name,[return_builder(LA)]));const bA=assignment("=",yA.expression,id$1("$$value"));uA(set(yA.name,[stmt(tA.visit(bA))]))}}if(nA&&tA.state.init.push(...IA),Object.keys(QA).length>0){const yA=object$2(Object.keys(QA).map(LA=>init(LA,QA[LA].length>1?array(QA[LA]):QA[LA][0])));uA(init("$$events",yA))}const lA=[],hA=[];for(const yA of eA.fragment.nodes){if(yA.type==="SnippetBlock"){tA.visit(yA,{...tA.state,init:lA}),uA(prop("init",yA.expression,yA.expression)),hA.push(init(yA.expression.name==="children"?"default":yA.expression.name,true_instance));continue}let LA=determine_slot(yA)??"default";(sA[LA]||(sA[LA]=[])).push(yA)}for(const yA of Object.keys(sA)){const LA=tA.visit({...eA.fragment,nodes:sA[yA]},yA==="default"?nA?tA.state:BA.default:{...tA.state,scope:eA.metadata.scopes[yA],transform:{...tA.state.transform}});if(LA.body.length===0)continue;const KA=arrow([id$1("$$anchor"),id$1("$$slotProps")],block([...yA==="default"&&!nA?IA:[],...LA.body]));yA==="default"&&!cA?IA.length===0&&sA.default.every(bA=>bA.type!=="SvelteFragment"||!bA.attributes.some(SA=>SA.type==="LetDirective"))?(uA(init("children",dev?call("$.wrap_snippet",id$1(tA.state.analysis.name),KA):KA)),hA.push(init(yA,true_instance))):(hA.push(init(yA,KA)),uA(init("children",id$1("$.invalid_default_snippet")))):hA.push(init(yA,KA))}hA.length>0&&uA(init("$$slots",object$2(hA))),!tA.state.analysis.runes&&eA.attributes.some(yA=>yA.type==="BindDirective")&&uA(init("$$legacy",true_instance));const dA=iA.length===0||iA.length===1&&Array.isArray(iA[0])?object$2(iA[0]||[]):call("$.spread_props",...iA.map(yA=>Array.isArray(yA)?object$2(yA):yA));let DA=yA=>call(eA.type==="SvelteComponent"?AA:tA.visit(member_id(AA)),yA,dA);if(oA!==null){const yA=DA;DA=LA=>build_bind_this(oA,yA(LA),tA)}const wA=[...lA];if(eA.type==="SvelteComponent"){const yA=DA;DA=LA=>call("$.component",LA,thunk(tA.visit(eA.expression)),arrow([id$1("$$anchor"),id$1(AA)],block([...EA,stmt(yA(id$1("$$anchor")))])))}else wA.push(...EA);return Object.keys(CA).length>0?(tA.state.template.push(tA.state.metadata.namespace==="svg"?"<g><!></g>":'<svelte-css-wrapper style="display: contents"><!></svelte-css-wrapper>'),wA.push(stmt(call("$.css_props",gA,thunk(object$2(CA)))),stmt(DA(member(gA,"lastChild"))),stmt(call("$.reset",gA)))):(tA.state.template.push("<!>"),wA.push(stmt(DA(gA)))),wA.length>1?block(wA):wA[0]}function Component(eA,AA){if(eA.metadata.dynamic){const gA=build_component(eA,"$$component",AA,id$1("$$anchor"));AA.state.init.push(stmt(call("$.component",AA.state.node,thunk(AA.visit(member_id(eA.name))),arrow([id$1("$$anchor"),id$1("$$component")],block([gA])))));return}const tA=build_component(eA,eA.name,AA);AA.state.init.push(tA)}function ConstTag(eA,AA){const tA=eA.declaration.declarations[0];if(tA.id.type==="Identifier")AA.state.init.push(const_builder(tA.id,create_derived(AA.state,thunk(AA.visit(tA.init))))),AA.state.transform[tA.id.name]={read:get_value},dev&&AA.state.init.push(stmt(call("$.get",tA.id)));else{const gA=extract_identifiers(tA.id),iA=id$1(AA.state.scope.generate("computed_const")),IA={...AA.state.transform};for(const QA of gA)delete IA[QA.name];const BA={...AA.state,transform:IA},sA=arrow([],block([const_builder(AA.visit(tA.id,BA),AA.visit(tA.init,BA)),return_builder(object$2(gA.map(QA=>prop("init",QA,QA))))]));AA.state.init.push(const_builder(iA,create_derived(AA.state,sA))),dev&&AA.state.init.push(stmt(call("$.get",iA)));for(const QA of gA)AA.state.transform[QA.name]={read:CA=>member(call("$.get",iA),CA)}}}function DebugTag(eA,AA){const tA=object$2(eA.identifiers.map(iA=>{const IA=call("$.snapshot",AA.visit(iA));return prop("init",iA,AA.state.analysis.runes?IA:call("$.untrack",thunk(IA)))})),gA=call("console.log",tA);AA.state.init.push(stmt(call("$.template_effect",thunk(block([stmt(gA),debugger_builder])))))}function EachBlock(eA,AA){var yA,LA;const tA=eA.metadata,gA=AA.visit(eA.expression,{...AA.state,scope:AA.state.scope.parent});tA.is_controlled||AA.state.template.push("<!>"),tA.array_name!==null&&AA.state.init.push(const_builder(tA.array_name,thunk(gA)));let iA=0;eA.metadata.keyed&&eA.index&&(iA|=EACH_INDEX_REACTIVE);const IA=((yA=eA.key)==null?void 0:yA.type)==="Identifier"&&eA.context.type==="Identifier"&&eA.context.name===eA.key.name;let BA;for(const KA of eA.metadata.expression.dependencies)if(KA.kind==="store_sub"){BA=!0;break}for(const KA of eA.metadata.expression.dependencies)if(!(KA.scope.function_depth>=AA.state.scope.function_depth)&&(!AA.state.analysis.runes||!IA||BA)){iA|=EACH_ITEM_REACTIVE;break}AA.state.analysis.runes&&!BA&&(iA|=EACH_ITEM_IMMUTABLE),eA.key&&eA.body.nodes.some(KA=>KA.type!=="RegularElement"&&KA.type!=="SvelteElement"?!1:KA.attributes.some(bA=>bA.type==="AnimateDirective"))&&(iA|=EACH_IS_ANIMATED),tA.is_controlled&&(iA|=EACH_IS_CONTROLLED);let sA="";if(eA.expression.type==="Identifier"||eA.expression.type==="MemberExpression"){const KA=object$1(eA.expression);if(KA){const bA=AA.state.scope.get(KA.name);(bA==null?void 0:bA.kind)==="store_sub"&&(sA=KA.name)}}const QA=collect_parent_each_blocks(AA).flatMap(KA=>{const bA=AA.visit(KA.expression),SA=build_transitive_dependencies(KA.metadata.expression.dependencies,AA);return[bA,...SA]});if(tA.array_name)QA.push(call(tA.array_name));else{QA.push(gA);const KA=build_transitive_dependencies(tA.expression.dependencies,AA);QA.push(...KA)}const CA={...AA.state,transform:{...AA.state.transform}},oA={...AA.state,transform:{...AA.state.transform}},EA=tA.contains_group_binding||!eA.index?tA.index:id$1(eA.index),nA=eA.context.type==="Identifier"?eA.context:id$1("$$item");let cA=tA.contains_group_binding,uA=!1;eA.index&&(CA.transform[eA.index]={read:KA=>(cA=!0,iA&EACH_INDEX_REACTIVE?get_value(KA):KA)},oA.transform[eA.index]={read:KA=>(uA=!0,KA)});const lA=[],hA=call("$.invalidate_inner_signals",thunk(sequence$1(QA))),dA=sA?call("$.invalidate_store",id$1("$$stores"),literal(sA)):void 0,DA=[];if(AA.state.analysis.runes||DA.push(hA),dA&&DA.push(dA),eA.context.type==="Identifier"){const KA=AA.state.scope.get(eA.context.name);CA.transform[eA.context.name]={read:bA=>KA.reassigned?member(tA.array_name?call(tA.array_name):gA,EA,!0):iA&EACH_ITEM_REACTIVE?get_value(bA):bA,assign:(bA,SA)=>{cA=!0;const MA=member(tA.array_name?call(tA.array_name):gA,EA,!0);return sequence$1([assignment("=",MA,SA),...DA])},mutate:(bA,SA)=>sequence$1([SA,...DA])},delete oA.transform[eA.context.name]}else{const KA=iA&EACH_ITEM_REACTIVE?call("$.get",nA):nA;for(const bA of extract_paths(eA.context)){const SA=bA.node.name,MA=bA.has_default_value,NA=thunk(AA.visit((LA=bA.expression)==null?void 0:LA.call(bA,KA),CA));lA.push(let_builder(bA.node,MA?call("$.derived_safe_equal",NA):NA));const FA=MA?get_value:call;CA.transform[SA]={read:FA,assign:(qA,UA)=>{const mA=bA.update_expression(KA);return sequence$1([assignment("=",mA,UA),...DA])},mutate:(qA,UA)=>sequence$1([UA,...DA])},dev&&lA.push(stmt(FA(id$1(SA)))),delete oA.transform[SA]}}const wA=AA.visit(eA.body,CA);let RA=id$1("$.index");if(eA.metadata.keyed){const KA=AA.visit(eA.key,oA);RA=arrow(uA?[eA.context,EA]:[eA.context],KA)}eA.index&&tA.contains_group_binding&&lA.push(let_builder(eA.index,EA)),dev&&eA.metadata.keyed&&AA.state.init.push(stmt(call("$.validate_each_keys",thunk(gA),RA)));const GA=[AA.state.node,literal(iA),tA.array_name?tA.array_name:thunk(gA),RA,arrow(cA?[id$1("$$anchor"),nA,EA]:[id$1("$$anchor"),nA],block(lA.concat(wA.body)))];eA.fallback&&GA.push(arrow([id$1("$$anchor")],AA.visit(eA.fallback))),AA.state.init.push(stmt(call("$.each",...GA)))}function collect_parent_each_blocks(eA){return eA.path.filter(AA=>AA.type==="EachBlock")}function build_transitive_dependencies(eA,AA){const tA=new Set;for(const gA of eA){const iA=collect_transitive_dependencies(gA);for(const IA of iA)tA.add(IA)}return[...tA].map(gA=>build_getter$1({...gA.node},AA.state))}function collect_transitive_dependencies(eA,AA=new Set){if(eA.kind!=="legacy_reactive")return[];for(const tA of eA.legacy_dependencies)if(!AA.has(tA)){AA.add(tA);for(const gA of collect_transitive_dependencies(tA,AA))AA.add(gA)}return[...AA]}function ExportNamedDeclaration(eA,AA){return AA.state.is_instance?eA.declaration?AA.visit(eA.declaration):empty:AA.next()}function ExpressionStatement(eA,AA){if(eA.expression.type==="CallExpression"){const tA=get_rune(eA.expression,AA.state.scope);if(tA==="$effect"||tA==="$effect.pre"){const gA=tA==="$effect"?"$.user_effect":"$.user_pre_effect",iA=AA.visit(eA.expression.arguments[0]),IA=call(gA,iA);return IA.callee.loc=eA.expression.callee.loc,stmt(IA)}}AA.next()}function process_children(eA,AA,tA,{visit:gA,state:iA}){const IA=iA.metadata.bound_contenteditable;let BA=AA,sA=0,QA=[];function CA(nA){return sA===0?BA(nA):call("$.sibling",BA(!1),(nA||sA!==1)&&literal(sA),nA&&true_instance)}function oA(nA,cA){const uA=CA(nA);let lA=uA;return lA.type!=="Identifier"&&(lA=id$1(iA.scope.generate(cA)),iA.init.push(var_builder(lA,uA))),BA=()=>lA,sA=1,lA}function EA(nA){if(nA.every(wA=>wA.type==="Text")){sA+=1,iA.template.push(nA.map(wA=>wA.raw).join(""));return}iA.template.push(" ");const{has_state:cA,has_call:uA,value:lA}=build_template_literal(nA,gA,iA),hA=nA.length===1,dA=oA(hA,"text"),DA=stmt(call("$.set_text",dA,lA));uA&&!IA?iA.init.push(build_update(DA)):cA&&!IA?iA.update.push(DA):iA.init.push(stmt(assignment("=",member(dA,"nodeValue"),lA)))}for(const nA of eA)if(nA.type==="Text"||nA.type==="ExpressionTag")QA.push(nA);else{QA.length>0&&(EA(QA),QA=[]);let cA=iA;if(is_static_element(nA))sA+=1;else if(nA.type==="EachBlock"&&eA.length===1&&tA)nA.metadata.is_controlled=!0;else{const uA=oA(!1,nA.type==="RegularElement"?nA.name:"node");cA={...iA,node:uA}}gA(nA,cA)}QA.length>0&&EA(QA),sA>1&&(sA-=1,iA.init.push(stmt(call("$.next",sA!==1&&literal(sA)))))}function is_static_element(eA){if(eA.type!=="RegularElement"||eA.fragment.metadata.dynamic)return!1;for(const AA of eA.attributes)if(AA.type!=="Attribute"||is_event_attribute(AA)||AA.value!==!0&&!is_text_attribute(AA)||AA.name==="autofocus"||AA.name==="muted"||eA.name==="option"&&AA.name==="value"||eA.name.includes("-"))return!1;return!0}function Fragment(eA,AA){const tA=AA.path.at(-1)??eA,gA=infer_namespace(AA.state.metadata.namespace,tA,eA.nodes),{hoisted:iA,trimmed:IA,is_standalone:BA,is_text_first:sA}=clean_nodes(tA,eA.nodes,AA.path,gA,AA.state,AA.state.preserve_whitespace,AA.state.options.preserveComments);if(iA.length===0&&IA.length===0)return block([]);const QA=IA.length===1&&IA[0].type==="RegularElement",CA=IA.length===1&&(IA[0].type==="SvelteFragment"||IA[0].type==="TitleElement"),oA=AA.state.scope.root.unique("root"),EA=[];let nA;const cA={...AA.state,before_init:[],init:[],update:[],after_update:[],template:[],locations:[],transform:{...AA.state.transform},metadata:{context:{template_needs_import_node:!1,template_contains_script_tag:!1},namespace:gA,bound_contenteditable:AA.state.metadata.bound_contenteditable}};for(const lA of iA)AA.visit(lA,cA);sA&&EA.push(stmt(call("$.next")));const uA=(lA,hA)=>{let dA=call(get_template_function(gA,cA),...hA);dev&&(dA=call("$.add_locations",dA,member(id$1(AA.state.analysis.name),"$.FILENAME",!0),build_locations(cA.locations))),AA.state.hoisted.push(var_builder(lA,dA))};if(QA){const lA=IA[0],hA=id$1(AA.state.scope.generate(lA.name));AA.visit(lA,{...cA,node:hA});const dA=[join_template(cA.template)];cA.metadata.context.template_needs_import_node&&dA.push(literal(TEMPLATE_USE_IMPORT_NODE)),uA(oA,dA),EA.push(var_builder(hA,call(oA)),...cA.before_init,...cA.init),nA=stmt(call("$.append",id$1("$$anchor"),hA))}else if(CA)AA.visit(IA[0],cA),EA.push(...cA.before_init,...cA.init);else if(IA.length===1&&IA[0].type==="Text"){const lA=id$1(AA.state.scope.generate("text"));EA.push(var_builder(lA,call("$.text",literal(IA[0].data))),...cA.before_init,...cA.init),nA=stmt(call("$.append",id$1("$$anchor"),lA))}else if(IA.length>0){const lA=id$1(AA.state.scope.generate("fragment"));if(IA.some(dA=>dA.type==="ExpressionTag")&&IA.every(dA=>dA.type==="Text"||dA.type==="ExpressionTag")){const dA=id$1(AA.state.scope.generate("text"));process_children(IA,()=>dA,!1,{...AA,state:cA}),EA.push(var_builder(dA,call("$.text")),...cA.before_init,...cA.init),nA=stmt(call("$.append",id$1("$$anchor"),dA))}else{if(BA)process_children(IA,()=>id$1("$$anchor"),!1,{...AA,state:cA});else{process_children(IA,wA=>call("$.first_child",lA,wA&&true_instance),!1,{...AA,state:cA});let DA=TEMPLATE_FRAGMENT;cA.metadata.context.template_needs_import_node&&(DA|=TEMPLATE_USE_IMPORT_NODE),cA.template.length===1&&cA.template[0]==="<!>"?EA.push(var_builder(lA,call("$.comment"))):(uA(oA,[join_template(cA.template),literal(DA)]),EA.push(var_builder(lA,call(oA)))),nA=stmt(call("$.append",id$1("$$anchor"),lA))}EA.push(...cA.before_init,...cA.init)}}else EA.push(...cA.before_init,...cA.init);return cA.update.length>0&&EA.push(build_render_statement(cA.update)),EA.push(...cA.after_update),nA!==void 0&&EA.push(nA),block(EA)}function join_template(eA){let AA=quasi("");const tA=template([AA],[]);for(const gA of eA)typeof gA=="string"?AA.value.cooked+=gA:(tA.expressions.push(gA),tA.quasis.push(AA=quasi("")));for(const gA of tA.quasis)gA.value.raw=sanitize_template_string(gA.value.cooked);return AA.tail=!0,tA}function get_template_function(eA,AA){const tA=AA.metadata.context.template_contains_script_tag;return eA==="svg"?tA?"$.svg_template_with_script":"$.ns_template":eA==="mathml"?"$.mathml_template":tA?"$.template_with_script":"$.template"}function build_locations(eA){return array(eA.map(AA=>{const tA=array([literal(AA[0]),literal(AA[1])]);return AA.length===3&&tA.elements.push(build_locations(AA[2])),tA}))}function FunctionDeclaration(eA,AA){var gA;const tA={...AA.state,in_constructor:!1};if(((gA=eA.metadata)==null?void 0:gA.hoisted)===!0){const iA=build_hoisted_params(eA,AA),IA=AA.visit(eA.body,tA);return AA.state.hoisted.push({...eA,params:iA,body:IA}),empty}AA.next(tA)}function FunctionExpression(eA,AA){return visit_function(eA,AA)}function HtmlTag(eA,AA){AA.state.template.push("<!>"),AA.state.init.push(stmt(call("$.html",AA.state.node,thunk(AA.visit(eA.expression)),literal(AA.state.metadata.namespace==="svg"),literal(AA.state.metadata.namespace==="mathml"),is_ignored(eA,"hydration_html_changed")&&true_instance)))}function Identifier(eA,AA){const tA=AA.path.at(-1);if(is_reference(eA,tA)){if(eA.name==="$$props")return id$1("$$sanitized_props");const gA=AA.state.scope.get(eA.name);if(AA.state.analysis.runes&&gA!==null&&eA!==gA.node&&gA.kind==="rest_prop"){const iA=AA.path.at(-2);if((tA==null?void 0:tA.type)==="MemberExpression"&&!tA.computed&&(iA==null?void 0:iA.type)!=="AssignmentExpression"&&(iA==null?void 0:iA.type)!=="UpdateExpression")return id$1("$$props")}return build_getter$1(eA,AA.state)}}function IfBlock(eA,AA){AA.state.template.push("<!>");const tA=AA.visit(eA.consequent),gA=[AA.state.node,thunk(AA.visit(eA.test)),arrow([id$1("$$anchor")],tA)];(eA.alternate||eA.elseif)&&gA.push(eA.alternate?arrow([id$1("$$anchor")],AA.visit(eA.alternate)):literal(null)),eA.elseif&&gA.push(literal(!0)),AA.state.init.push(stmt(call("$.if",...gA)))}function ImportDeclaration(eA,AA){if("hoisted"in AA.state)return AA.state.hoisted.push(eA),empty;AA.next()}function KeyBlock(eA,AA){AA.state.template.push("<!>");const tA=AA.visit(eA.expression),gA=AA.visit(eA.fragment);AA.state.init.push(stmt(call("$.key",AA.state.node,thunk(tA),arrow([id$1("$$anchor")],gA))))}function LabeledStatement(eA,AA){if(AA.state.analysis.runes||AA.path.length>1||eA.label.name!=="$"){AA.next();return}const tA=AA.state.analysis.reactive_statements.get(eA);if(!tA)return;let gA=AA.visit(eA.body);gA.type!=="BlockStatement"&&(gA=block([gA]));const iA=gA.body,IA=[];for(const BA of tA.dependencies){if(BA.kind==="normal"&&BA.declaration_kind!=="import")continue;const sA=BA.node.name;let QA=build_getter$1(id$1(sA),AA.state);(sA==="$$props"||sA==="$$restProps"||BA.kind==="bindable_prop")&&(QA=call("$.deep_read_state",QA)),IA.push(QA)}return AA.state.legacy_reactive_statements.set(eA,stmt(call("$.legacy_pre_effect",IA.length>0?thunk(sequence$1(IA)):thunk(block([])),thunk(block(iA))))),empty}function LetDirective(eA,AA){if(eA.expression&&eA.expression.type!=="Identifier"){const tA=AA.state.scope.generate(eA.name),gA=AA.state.scope.get_bindings(eA);for(const iA of gA)AA.state.transform[iA.node.name]={read:IA=>member(call("$.get",id$1(tA)),IA)};return const_builder(tA,call("$.derived",thunk(block([let_builder(eA.expression.type==="ObjectExpression"?object_pattern(eA.expression.properties):array_pattern(eA.expression.elements),member(id$1("$$slotProps"),eA.name)),return_builder(object$2(gA.map(iA=>init(iA.node.name,iA.node))))]))))}else{const tA=eA.expression===null?eA.name:eA.expression.name;return AA.state.transform[tA]={read:gA=>call("$.get",gA)},const_builder(tA,create_derived(AA.state,thunk(member(id$1("$$slotProps"),eA.name))))}}function MemberExpression(eA,AA){if(eA.property.type==="PrivateIdentifier"&&AA.state.private_state.get(eA.property.name))return AA.state.in_constructor?member(eA,"v"):call("$.get",eA);AA.next()}const modifiers=["stopPropagation","stopImmediatePropagation","preventDefault","self","trusted","once"];function OnDirective(eA,AA){eA.expression||(AA.state.analysis.needs_props=!0);let tA=build_event_handler(eA.expression,eA.metadata.expression,AA);for(const IA of modifiers)eA.modifiers.includes(IA)&&(tA=call("$."+IA,tA));const gA=eA.modifiers.includes("capture"),iA=eA.modifiers.includes("passive")||(eA.modifiers.includes("nonpassive")?!1:void 0);return build_event(eA.name,AA.state.node,tA,gA,iA)}function Program(eA,AA){if(!AA.state.analysis.runes){AA.state.transform.$$props={read:tA=>({...tA,name:"$$sanitized_props"})};for(const[tA,gA]of AA.state.scope.declarations)if(gA.declaration_kind==="import"&&gA.mutated){const{start:iA,end:IA}=AA.state.analysis.instance.ast,BA=gA.initial;if(BA.start>iA&&BA.end<IA){const QA=id$1("$$_import_"+tA);AA.state.transform[tA]={read:CA=>call(QA),mutate:(CA,oA)=>call(QA,oA)},AA.state.legacy_reactive_imports.push(var_builder(QA,call("$.reactive_import",thunk(id$1(tA)))))}}}for(const[tA,gA]of AA.state.scope.declarations){if(gA.kind==="store_sub"){let iA;const IA=()=>iA??(iA=AA.visit(id$1(tA.slice(1))));AA.state.transform[tA]={read:call,assign:(BA,sA)=>call("$.store_set",IA(),sA),mutate:(BA,sA)=>{const QA=call("$.untrack",BA);function CA(oA){return oA.type==="MemberExpression"?{...oA,object:CA(oA.object),property:oA.property}:QA}return call("$.store_mutate",IA(),assignment(sA.operator,CA(sA.left),sA.right),QA)},update:BA=>call(BA.prefix?"$.update_pre_store":"$.update_store",build_getter$1(id$1(tA.slice(1)),AA.state),call(BA.argument),BA.operator==="--"&&literal(-1))}}if(gA.kind==="prop"||gA.kind==="bindable_prop")if(is_prop_source(gA,AA.state))AA.state.transform[tA]={read:call,assign:(iA,IA)=>call(iA,IA),mutate:(iA,IA)=>gA.kind==="bindable_prop"?call(iA,IA,true_instance):IA,update:iA=>call(iA.prefix?"$.update_pre_prop":"$.update_prop",iA.argument,iA.operator==="--"&&literal(-1))};else if(gA.prop_alias){const iA=key$2(gA.prop_alias);AA.state.transform[tA]={read:IA=>member(id$1("$$props"),iA,iA.type==="Literal")}}else AA.state.transform[tA]={read:iA=>member(id$1("$$props"),iA)}}add_state_transformers(AA),AA.next()}function RegularElement(eA,AA){let tA=[-1,-1];if(dev){const yA=locator(eA.start);yA&&(tA[0]=yA.line,tA[1]=yA.column,AA.state.locations.push(tA))}if(eA.name==="noscript"){AA.state.template.push("<noscript></noscript>");return}const gA=is_custom_element_node(eA);gA&&(AA.state.metadata.context.template_needs_import_node=!0),eA.name==="script"&&(AA.state.metadata.context.template_contains_script_tag=!0),AA.state.template.push(`<${eA.name}`);const iA=[],IA=[],BA=[],sA=[],QA=[],CA=new Map,oA=new Map;let EA=eA.metadata.has_spread,nA=!1;for(const yA of eA.attributes)switch(yA.type){case"AnimateDirective":sA.push(yA);break;case"Attribute":if(yA.name==="is"&&AA.state.metadata.namespace==="html"){const{value:LA}=build_attribute_value(yA.value,AA);if(LA.type==="Literal"&&typeof LA.value=="string"){AA.state.template.push(` is="${escape_html(LA.value,!0)}"`);continue}}iA.push(yA),CA.set(yA.name,yA);break;case"BindDirective":oA.set(yA.name,yA),sA.push(yA);break;case"ClassDirective":IA.push(yA);break;case"LetDirective":QA.push(AA.visit(yA));break;case"OnDirective":sA.push(yA);break;case"SpreadAttribute":iA.push(yA);break;case"StyleDirective":BA.push(yA);break;case"TransitionDirective":sA.push(yA);break;case"UseDirective":nA=!0,sA.push(yA);break}const cA={...AA.state,after_update:[]};for(const yA of sA)if(yA.type==="OnDirective"){const LA=AA.visit(yA);cA.after_update.push(stmt(nA?call("$.effect",thunk(LA)):LA))}else AA.visit(yA,cA);if(eA.name==="input"&&(EA||oA.has("value")||oA.has("checked")||oA.has("group")||iA.some(yA=>yA.type==="Attribute"&&(yA.name==="value"||yA.name==="checked")&&!is_text_attribute(yA)))&&AA.state.init.push(stmt(call("$.remove_input_defaults",AA.state.node))),eA.name==="textarea"){const yA=CA.get("value")??CA.get("checked"),LA=yA&&!is_text_attribute(yA);(EA||oA.has("value")||LA)&&AA.state.init.push(stmt(call("$.remove_textarea_child",AA.state.node)))}eA.name==="select"&&oA.has("value")&&setup_select_synchronization(oA.get("value"),AA),AA.state.init.push(...QA);const uA=AA.state.node;let lA=EA;if(EA){const yA=id$1(AA.state.scope.generate("attributes"));build_set_attributes(iA,AA,eA,uA,yA,(eA.metadata.svg||eA.metadata.mathml||is_custom_element_node(eA))&&true_instance,eA.name.includes("-")&&true_instance,AA.state),eA.name==="select"&&!oA.has("value")&&(AA.state.init.push(stmt(call("$.init_select",uA,thunk(member(yA,"value"))))),AA.state.update.push(if_builder(binary("in",literal("value"),yA),block([stmt(call("$.select_option",uA,member(yA,"value")))]))))}else{const yA=eA.name==="option"||eA.name==="select"||oA.has("group")||oA.has("checked");for(const LA of iA){if(is_event_attribute(LA)){visit_event_attribute(LA,AA);continue}if(yA&&LA.name==="value"){build_element_special_value_attribute(eA.name,uA,LA,AA);continue}if(!gA&&LA.name!=="autofocus"&&LA.name!=="muted"&&(LA.value===!0||is_text_attribute(LA))){const bA=get_attribute_name(eA,LA),SA=is_text_attribute(LA)?LA.value[0].data:!0;(bA!=="class"||SA)&&AA.state.template.push(` ${LA.name}${is_boolean_attribute(bA)&&SA===!0?"":`="${SA===!0?"":escape_html(SA,!0)}"`}`);continue}(gA?build_custom_element_attribute_update_assignment(uA,LA,AA):build_element_attribute_update_assignment(eA,uA,LA,AA))&&(lA=!0)}}build_class_directives(IA,uA,AA,lA),build_style_directives(BA,uA,AA,lA),eA.name==="img"&&(EA||CA.has("loading"))&&AA.state.after_update.push(stmt(call("$.handle_lazy_img",uA))),is_load_error_element(eA.name)&&(EA||nA||CA.has("onload")||CA.has("onerror"))&&AA.state.after_update.push(stmt(call("$.replay_events",uA))),AA.state.template.push(">");const hA={...AA.state.metadata,namespace:determine_namespace_for_children(eA,AA.state.metadata.namespace)};if(oA.has("innerHTML")||oA.has("innerText")||oA.has("textContent")){const yA=CA.get("contenteditable");yA&&(yA.value===!0||is_text_attribute(yA)&&yA.value[0].data==="true")&&(hA.bound_contenteditable=!0)}const dA={...AA.state,metadata:hA,locations:[],scope:AA.state.scopes.get(eA.fragment),preserve_whitespace:AA.state.preserve_whitespace||eA.name==="pre"||eA.name==="textarea"},{hoisted:DA,trimmed:wA}=clean_nodes(eA,eA.fragment.nodes,AA.path,dA.metadata.namespace,dA,eA.name==="script"||dA.preserve_whitespace,dA.options.preserveComments),RA={...dA,init:[],update:[],after_update:[]};for(const yA of DA)AA.visit(yA,RA);const GA=wA.every(yA=>yA.type==="Text"||yA.type==="ExpressionTag")&&wA.some(yA=>yA.type==="ExpressionTag")&&get_states_and_calls(wA);if(GA&&GA.states===0)RA.init.push(stmt(assignment("=",member(AA.state.node,"textContent"),build_template_literal(wA,AA.visit,RA).value)));else{let yA=AA.state.node,LA=wA.some(KA=>KA.type!=="Text");eA.name==="template"&&(LA=!0,RA.init.push(stmt(call("$.hydrate_template",yA))),yA=member(yA,"content")),process_children(wA,KA=>call("$.child",yA,KA&&true_instance),!0,{...AA,state:RA}),LA&&RA.init.push(stmt(call("$.reset",AA.state.node)))}if(eA.fragment.nodes.some(yA=>yA.type==="SnippetBlock")?AA.state.init.push(block([...RA.init,RA.update.length>0?build_render_statement(RA.update):empty,...RA.after_update,...cA.after_update])):eA.fragment.metadata.dynamic?(AA.state.init.push(...RA.init),AA.state.update.push(...RA.update),AA.state.after_update.push(...RA.after_update,...cA.after_update)):AA.state.after_update.push(...cA.after_update),CA.has("dir")){const yA=member(uA,"dir");AA.state.update.push(stmt(assignment("=",yA,yA)))}dA.locations.length>0&&tA.push(dA.locations),is_void(eA.name)||AA.state.template.push(`</${eA.name}>`)}function setup_select_synchronization(eA,AA){if(AA.state.analysis.runes)return;let tA=eA.expression;for(;tA.type==="MemberExpression";)tA=tA.object;const gA=[];for(const[IA,BA]of AA.state.scope.references)BA.length>0&&IA!==tA.name&&gA.push(IA);const iA=call("$.invalidate_inner_signals",thunk(block(gA.map(IA=>{const BA=build_getter$1(id$1(IA),AA.state);return stmt(BA)}))));AA.state.init.push(stmt(call("$.template_effect",thunk(block([stmt(AA.visit(eA.expression)),stmt(iA)])))))}function build_element_attribute_update_assignment(eA,AA,tA,gA){const iA=gA.state,IA=get_attribute_name(eA,tA),BA=gA.state.metadata.namespace==="svg"||eA.name==="svg",sA=gA.state.metadata.namespace==="mathml";let{has_call:QA,value:CA}=build_attribute_value(tA.value,gA);if(IA==="autofocus")return iA.init.push(stmt(call("$.autofocus",AA,CA))),!1;if(IA==="muted")return iA.init.push(stmt(assignment("=",member(AA,id$1("muted")),CA))),!1;let oA;if(IA==="class"){if(tA.metadata.expression.has_state&&QA){const nA=id$1(iA.scope.generate("class_derived"));iA.init.push(const_builder(nA,create_derived(iA,thunk(CA)))),CA=call("$.get",nA),QA=!1}oA=stmt(call(BA?"$.set_svg_class":sA?"$.set_mathml_class":"$.set_class",AA,CA))}else if(IA==="value")oA=stmt(call("$.set_value",AA,CA));else if(IA==="checked")oA=stmt(call("$.set_checked",AA,CA));else if(is_dom_property(IA))oA=stmt(assignment("=",member(AA,IA),CA));else{if(IA==="style"&&tA.metadata.expression.has_state&&QA){const cA=id$1(iA.scope.generate("style_derived"));iA.init.push(const_builder(cA,create_derived(iA,thunk(CA)))),CA=call("$.get",cA),QA=!1}const nA=IA.startsWith("xlink")?"$.set_xlink_attribute":"$.set_attribute";oA=stmt(call(nA,AA,literal(IA),CA,is_ignored(eA,"hydration_attribute_changed")&&true_instance))}const EA=tA.value===!0?!1:is_inlinable_expression(Array.isArray(tA.value)?tA.value:[tA.value],gA.state);return tA.metadata.expression.has_state?(QA?iA.init.push(build_update(oA)):iA.update.push(oA),!0):(EA?gA.state.template.push(` ${IA}="`,CA,'"'):iA.init.push(oA),!1)}function is_inlinable_expression(eA,AA){var gA;let tA=!1;for(let iA of eA)if(iA.type==="ExpressionTag"){if(iA.expression.type==="Identifier"){const IA=(gA=AA.scope.owner(iA.expression.name))==null?void 0:gA.declarations.get(iA.expression.name);if(!can_inline_variable(IA))return!1}else return!1;tA=!0}return tA}function build_custom_element_attribute_update_assignment(eA,AA,tA){const gA=tA.state,iA=AA.name;let{has_call:IA,value:BA}=build_attribute_value(AA.value,tA);const sA=stmt(call("$.set_custom_element_data",eA,literal(iA),BA));return AA.metadata.expression.has_state?(IA?gA.init.push(build_update(sA)):gA.update.push(sA),!0):(gA.init.push(sA),!1)}function build_element_special_value_attribute(eA,AA,tA,gA){const iA=gA.state,{value:IA}=build_attribute_value(tA.value,gA),BA=assignment("=",member(AA,"value"),conditional(binary("==",literal(null),assignment("=",member(AA,"__value"),IA)),literal(""),IA)),sA=eA==="select"&&tA.value!==!0&&!is_text_attribute(tA),QA=stmt(sA?sequence$1([BA,call("$.select_option",AA,IA)]):BA);if(sA&&iA.init.push(stmt(call("$.init_select",AA,thunk(IA)))),tA.metadata.expression.has_state){const CA=iA.scope.generate(`${AA.name}_value`);return build_update_assignment(iA,CA,eA==="option"?object$2([]):void 0,IA,QA),!0}else return iA.init.push(QA),!1}function RenderTag(eA,AA){AA.state.template.push("<!>");const tA=unwrap_optional(eA.expression).callee,gA=unwrap_optional(eA.expression).arguments;let iA=[];for(let BA=0;BA<gA.length;BA++){const sA=gA[BA],QA=AA.visit(sA);if(eA.metadata.args_with_call_expression.has(BA)){const CA=id$1(AA.state.scope.generate("render_arg"));AA.state.init.push(var_builder(CA,call("$.derived_safe_equal",thunk(QA)))),iA.push(thunk(call("$.get",CA)))}else iA.push(thunk(QA))}let IA=AA.visit(tA);eA.metadata.dynamic?(eA.expression.type==="ChainExpression"&&(IA=logical("??",IA,id$1("$.noop"))),AA.state.init.push(stmt(call("$.snippet",AA.state.node,thunk(IA),...iA)))):AA.state.init.push(stmt((eA.expression.type==="CallExpression"?call:maybe_call)(IA,AA.state.node,...iA)))}function SlotElement(eA,AA){AA.state.template.push("<!>");const tA=[],gA=[],iA=[];let IA=literal("default");for(const CA of eA.attributes)if(CA.type==="SpreadAttribute")gA.push(thunk(AA.visit(CA)));else if(CA.type==="Attribute"){const{value:oA}=build_attribute_value(CA.value,AA);CA.name==="name"?IA=oA:CA.name!=="slot"&&(CA.metadata.expression.has_state?tA.push(get(CA.name,[return_builder(oA)])):tA.push(init(CA.name,oA)))}else CA.type==="LetDirective"&&iA.push(AA.visit(CA));AA.state.init.push(...iA);const BA=gA.length===0?object$2(tA):call("$.spread_props",object$2(tA),...gA),sA=eA.fragment.nodes.length===0?literal(null):arrow([id$1("$$anchor")],AA.visit(eA.fragment)),QA=call("$.slot",AA.state.node,id$1("$$props"),IA,BA,sA);AA.state.init.push(stmt(QA))}function SnippetBlock(eA,AA){var CA;const tA=[id$1("$$anchor")];let gA;const iA=[],IA={...AA.state.transform},BA={...AA.state,transform:IA};for(let oA=0;oA<eA.parameters.length;oA++){const EA=eA.parameters[oA];if(!EA)continue;if(EA.type==="Identifier"){tA.push({type:"AssignmentPattern",left:EA,right:id$1("$.noop")}),IA[EA.name]={read:call};continue}let nA=`$$arg${oA}`;tA.push(id$1(nA));const cA=extract_paths(EA);for(const uA of cA){const lA=uA.node.name,hA=uA.has_default_value,dA=thunk(AA.visit((CA=uA.expression)==null?void 0:CA.call(uA,maybe_call(id$1(nA)))));iA.push(let_builder(uA.node,hA?call("$.derived_safe_equal",dA):dA)),IA[lA]={read:hA?get_value:call},dev&&iA.push(stmt(IA[lA].read(id$1(lA))))}}gA=block([...iA,...AA.visit(eA.body,BA).body]);let sA=arrow(tA,gA);dev&&(sA=call("$.wrap_snippet",id$1(AA.state.analysis.name),sA));const QA=const_builder(eA.expression,sA);AA.path.length===1&&AA.path[0].type==="Fragment"?AA.state.analysis.top_level_snippets.push(QA):AA.state.init.push(QA)}function SpreadAttribute(eA,AA){return AA.visit(eA.expression)}function visit_special_element(eA,AA,tA){const gA={...tA.state,node:id$1(AA)};for(const iA of eA.attributes)iA.type==="OnDirective"?tA.state.init.push(stmt(tA.visit(iA,gA))):tA.visit(iA,gA)}function SvelteBody(eA,AA){visit_special_element(eA,"$.document.body",AA)}function SvelteComponent(eA,AA){const tA=build_component(eA,"$$component",AA);AA.state.init.push(tA)}function SvelteDocument(eA,AA){visit_special_element(eA,"$.document",AA)}function SvelteElement(eA,AA){AA.state.template.push("<!>");const tA=[];let gA;const iA=[],IA=[],BA=[],sA=id$1(AA.state.scope.generate("$$element")),QA={...AA,state:{...AA.state,node:sA,before_init:[],init:[],update:[],after_update:[]}};for(const cA of eA.attributes)if(cA.type==="Attribute")cA.name==="xmlns"&&!is_text_attribute(cA)&&(gA=cA.value),tA.push(cA);else if(cA.type==="SpreadAttribute")tA.push(cA);else if(cA.type==="ClassDirective")iA.push(cA);else if(cA.type==="StyleDirective")IA.push(cA);else if(cA.type==="LetDirective")BA.push(AA.visit(cA));else if(cA.type==="OnDirective"){const uA=AA.visit(cA,QA.state);QA.state.after_update.push(stmt(uA))}else AA.visit(cA,QA.state);AA.state.init.push(...BA);let CA=!1;if(tA.length===0)AA.state.analysis.css.hash&&QA.state.init.push(stmt(call("$.set_class",sA,literal(AA.state.analysis.css.hash))));else{const cA=id$1(AA.state.scope.generate("attributes"));CA=build_set_attributes(tA,QA,eA,sA,cA,binary("===",member(sA,"namespaceURI"),id$1("$.NAMESPACE_SVG")),call(member(member(sA,"nodeName"),"includes"),literal("-")),AA.state)}build_class_directives(iA,sA,QA,CA),build_style_directives(IA,sA,QA,CA);const oA=thunk(AA.visit(eA.tag));dev&&(eA.fragment.nodes.length>0&&AA.state.init.push(stmt(call("$.validate_void_dynamic_element",oA))),AA.state.init.push(stmt(call("$.validate_dynamic_element_tag",oA))));const EA=QA.state.init;QA.state.update.length>0&&EA.push(build_render_statement(QA.state.update)),EA.push(...QA.state.after_update),EA.push(...AA.visit(eA.fragment,{...AA.state,metadata:{...AA.state.metadata,namespace:determine_namespace_for_children(eA,AA.state.metadata.namespace)}}).body);const nA=dev&&locator(eA.start);AA.state.init.push(stmt(call("$.element",AA.state.node,oA,eA.metadata.svg||eA.metadata.mathml?true_instance:false_instance,EA.length>0&&arrow([sA,id$1("$$anchor")],block(EA)),gA&&thunk(build_attribute_value(gA,AA).value),nA&&array([literal(nA.line),literal(nA.column)]))))}function SvelteFragment(eA,AA){for(const tA of eA.attributes)tA.type==="LetDirective"&&AA.state.init.push(AA.visit(tA));AA.state.init.push(...AA.visit(eA.fragment).body)}function SvelteHead(eA,AA){AA.state.init.push(stmt(call("$.head",arrow([id$1("$$anchor")],AA.visit(eA.fragment)))))}function SvelteSelf(eA,AA){const tA=build_component(eA,AA.state.analysis.name,AA);AA.state.init.push(tA)}function SvelteWindow(eA,AA){visit_special_element(eA,"$.window",AA)}function TitleElement(eA,AA){const{has_state:tA,value:gA}=build_template_literal(eA.fragment.nodes,AA.visit,AA.state),iA=stmt(assignment("=",id$1("$.document.title"),gA));tA?AA.state.update.push(iA):AA.state.init.push(iA)}function TransitionDirective(eA,AA){let tA=eA.modifiers.includes("global")?TRANSITION_GLOBAL:0;eA.intro&&(tA|=TRANSITION_IN),eA.outro&&(tA|=TRANSITION_OUT);const gA=[literal(tA),AA.state.node,thunk(AA.visit(parse_directive_name(eA.name)))];eA.expression&&gA.push(thunk(AA.visit(eA.expression))),AA.state.after_update.push(stmt(call("$.transition",...gA)))}function UpdateExpression(eA,AA){var QA;const tA=eA.argument;if(tA.type==="MemberExpression"&&tA.object.type==="ThisExpression"&&tA.property.type==="PrivateIdentifier"&&AA.state.private_state.has(tA.property.name)){let CA="$.update";eA.prefix&&(CA+="_pre");const oA=[tA];return eA.operator==="--"&&oA.push(literal(-1)),call(CA,...oA)}if(tA.type!=="Identifier"&&tA.type!=="MemberExpression")throw new Error("An impossible state was reached");const gA=object$1(tA);if(gA===null)return AA.next();if(gA===tA){const CA=AA.state.transform,oA=(QA=CA[gA.name])==null?void 0:QA.update;if(oA&&Object.hasOwn(CA,gA.name))return oA(eA)}const iA=AA.visit(assignment(eA.operator==="++"?"+=":"-=",tA,literal(1))),BA=AA.path.at(-1).type==="ExpressionStatement",sA=eA.prefix||BA?iA:binary(eA.operator==="++"?"-":"+",iA,literal(1));return is_ignored(eA,"ownership_invalid_mutation")?call("$.skip_ownership_validation",thunk(sA)):sA}function UseDirective(eA,AA){const tA=[id$1("$$node")];eA.expression&&tA.push(id$1("$$action_arg"));const gA=[AA.state.node,arrow(tA,call(AA.visit(parse_directive_name(eA.name)),...tA))];eA.expression&&gA.push(thunk(AA.visit(eA.expression))),AA.state.after_update.push(stmt(call("$.action",...gA))),AA.next()}function VariableDeclaration(eA,AA){var gA;const tA=[];if(AA.state.analysis.runes)for(const iA of eA.declarations){const IA=iA.init,BA=get_rune(IA,AA.state.scope);if(!BA||BA==="$effect.tracking"||BA==="$effect.root"||BA==="$inspect"||BA==="$state.snapshot"||BA==="$host"){if(IA!=null&&is_hoisted_function(IA)){AA.state.hoisted.push(const_builder(iA.id,AA.visit(IA)));continue}tA.push(AA.visit(iA));continue}if(BA==="$props"){const CA=["$$slots","$$events","$$legacy"];if(AA.state.analysis.custom_element&&CA.push("$$host"),iA.id.type==="Identifier"){const oA=[id$1("$$props"),array(CA.map(EA=>literal(EA)))];dev&&oA.push(literal(iA.id.name)),tA.push(declarator(iA.id,call("$.rest_props",...oA)))}else{equal(iA.id.type,"ObjectPattern");for(const oA of iA.id.properties)if(oA.type==="Property"){const EA=oA.key,nA=EA.type==="Identifier"?EA.name:EA.value;CA.push(nA);let cA=oA.value.type==="AssignmentPattern"?oA.value.left:oA.value;equal(cA.type,"Identifier");const uA=AA.state.scope.get(cA.name);let lA=uA.initial&&AA.visit(uA.initial);lA&&uA.kind==="bindable_prop"&&should_proxy(lA,AA.state.scope)&&(lA=call("$.proxy",lA)),is_prop_source(uA,AA.state)&&tA.push(declarator(cA,get_prop_source(uA,AA.state,nA,lA)))}else{const EA=[id$1("$$props"),array(CA.map(nA=>literal(nA)))];dev&&EA.push(literal(oA.argument.name)),tA.push(declarator(oA.argument,call("$.rest_props",...EA)))}}continue}const sA=IA.arguments,QA=sA.length===0?id$1("undefined"):AA.visit(sA[0]);if(BA==="$state"||BA==="$state.raw"){const CA=(oA,EA)=>{const nA=AA.state.scope.get(oA.name);return BA==="$state"&&should_proxy(EA,AA.state.scope)&&(EA=call("$.proxy",EA)),is_state_source(nA,AA.state.analysis)&&(EA=call("$.state",EA)),EA};if(iA.id.type==="Identifier")tA.push(declarator(iA.id,CA(iA.id,QA)));else{const oA=AA.state.scope.generate("tmp"),EA=extract_paths(iA.id);tA.push(declarator(id$1(oA),QA),...EA.map(nA=>{var lA;const cA=(lA=nA.expression)==null?void 0:lA.call(nA,id$1(oA)),uA=AA.state.scope.get(nA.node.name);return declarator(nA.node,(uA==null?void 0:uA.kind)==="state"||(uA==null?void 0:uA.kind)==="raw_state"?CA(uA.node,cA):cA)}))}continue}if(BA==="$derived"||BA==="$derived.by"){if(iA.id.type==="Identifier")tA.push(declarator(iA.id,call("$.derived",BA==="$derived.by"?QA:thunk(QA))));else{const CA=extract_paths(iA.id),oA=iA.init;let EA,nA=QA;BA==="$derived"&&oA.arguments[0].type==="Identifier"?EA=oA.arguments[0]:(EA=id$1(AA.state.scope.generate("$$d")),nA=call("$.get",EA),tA.push(declarator(EA,call("$.derived",BA==="$derived.by"?QA:thunk(QA)))));for(let cA=0;cA<CA.length;cA++){const uA=CA[cA];tA.push(declarator(uA.node,call("$.derived",thunk(uA.expression(nA)))))}}continue}}else for(const iA of eA.declarations){const IA=AA.state.scope.get_bindings(iA),BA=IA.some(QA=>QA.kind==="state"),sA=IA.some(QA=>QA.kind==="bindable_prop");if(!BA&&!sA){const QA=iA.init;if(QA!=null&&is_hoisted_function(QA)){AA.state.hoisted.push(const_builder(iA.id,AA.visit(QA)));continue}tA.push(AA.visit(iA));continue}if(sA){if(iA.id.type!=="Identifier"){const CA=AA.state.scope.generate("tmp"),oA=extract_paths(iA.id);tA.push(declarator(id$1(CA),AA.visit(iA.init)));for(const EA of oA){const nA=EA.node.name,cA=AA.state.scope.get(nA),uA=(gA=EA.expression)==null?void 0:gA.call(EA,id$1(CA));tA.push(declarator(EA.node,cA.kind==="bindable_prop"?get_prop_source(cA,AA.state,cA.prop_alias??nA,uA):uA))}continue}const QA=AA.state.scope.get(iA.id.name);tA.push(declarator(iA.id,get_prop_source(QA,AA.state,QA.prop_alias??iA.id.name,iA.init&&AA.visit(iA.init))));continue}tA.push(...create_state_declarators(iA,AA.state,iA.init&&AA.visit(iA.init)))}return tA.length===0?empty:{...eA,declarations:tA}}function create_state_declarators(eA,{scope:AA,analysis:tA},gA){if(eA.id.type==="Identifier")return[declarator(eA.id,call("$.mutable_state",gA,tA.immutable?true_instance:void 0))];const iA=AA.generate("tmp"),IA=extract_paths(eA.id);return[declarator(id$1(iA),gA),...IA.map(BA=>{var CA;const sA=(CA=BA.expression)==null?void 0:CA.call(BA,id$1(iA)),QA=AA.get(BA.node.name);return declarator(BA.node,(QA==null?void 0:QA.kind)==="state"?call("$.mutable_state",sA,tA.immutable?true_instance:void 0):sA)})]}const visitors={_:function eA(AA,{next:tA,state:gA}){const iA=gA.scopes.get(AA);if(iA&&iA!==gA.scope){const IA={...gA.transform};for(const[BA,sA]of iA.declarations)(sA.kind==="normal"||sA.kind==="state"&&!is_state_source(sA,gA.analysis))&&delete IA[BA];tA({...gA,transform:IA,scope:iA})}else tA()},AnimateDirective,ArrowFunctionExpression,AssignmentExpression,Attribute,AwaitBlock,BinaryExpression,BindDirective,BlockStatement,BreakStatement,CallExpression,ClassBody,Comment,Component,ConstTag,DebugTag,EachBlock,ExportNamedDeclaration,ExpressionStatement,Fragment,FunctionDeclaration,FunctionExpression,HtmlTag,Identifier,IfBlock,ImportDeclaration,KeyBlock,LabeledStatement,LetDirective,MemberExpression,OnDirective,Program,RegularElement,RenderTag,SlotElement,SnippetBlock,SpreadAttribute,SvelteBody,SvelteComponent,SvelteDocument,SvelteElement,SvelteFragment,SvelteHead,SvelteSelf,SvelteWindow,TitleElement,TransitionDirective,UpdateExpression,UseDirective,VariableDeclaration};function client_component(eA,AA){var wA,RA;const tA={analysis:eA,options:AA,scope:eA.module.scope,scopes:eA.module.scopes,is_instance:!1,hoisted:[import_all("$","svelte/internal/client")],node:null,legacy_reactive_imports:[],legacy_reactive_statements:new Map,metadata:{context:{template_needs_import_node:!1,template_contains_script_tag:!1},namespace:AA.namespace,bound_contenteditable:!1},events:new Set,preserve_whitespace:AA.preserveWhitespace,public_state:new Map,private_state:new Map,transform:{},in_constructor:!1,before_init:null,init:null,update:null,after_update:null,template:null,locations:null},gA=walk(eA.module.ast,tA,visitors),iA={...tA,transform:{...tA.transform},scope:eA.instance.scope,scopes:eA.instance.scopes,is_instance:!0},IA=walk(eA.instance.ast,iA,visitors),BA=walk(eA.template.ast,{...tA,transform:iA.transform,scope:eA.instance.scope,scopes:eA.template.scopes},visitors);gA.body.unshift(...tA.legacy_reactive_imports);const sA=[],QA=[];for(const[GA,yA]of eA.instance.scope.declarations)if(yA.kind==="legacy_reactive"&&QA.push(const_builder(GA,call("$.mutable_state",void 0,eA.immutable?true_instance:void 0))),yA.kind==="store_sub"){sA.length===0&&sA.push(const_builder("$$stores",call("$.setup_stores")));const LA=build_getter$1(id$1(GA.slice(1)),iA),KA=call("$.store_get",LA,literal(GA),id$1("$$stores"));sA.push(const_builder(yA.node,thunk(dev?sequence$1([call("$.validate_store",LA,literal(GA.slice(1))),KA]):KA)))}for(const[GA]of eA.reactive_statements){const yA=[...tA.legacy_reactive_statements].find(([LA])=>LA===GA);if(yA===void 0)throw new Error("Could not find reactive statement");IA.body.push(yA[1])}eA.reactive_statements.size>0&&IA.body.push(stmt(call("$.legacy_pre_effect_reset")));const CA=[];for(const GA of eA.binding_groups.values())CA.push(const_builder(GA.name,array([])));const oA=eA.exports.flatMap(({name:GA,alias:yA})=>{const LA=iA.scope.get(GA),KA=build_getter$1(id$1(GA),iA),bA=get(yA??GA,[return_builder(KA)]);if(KA.type==="Identifier"){if((LA==null?void 0:LA.declaration_kind)==="let"||(LA==null?void 0:LA.declaration_kind)==="var")return[bA,set(yA??GA,[stmt(assignment("=",KA,id$1("$$value")))])];if(!dev)return init(yA??GA,KA)}if((LA==null?void 0:LA.kind)==="prop"||(LA==null?void 0:LA.kind)==="bindable_prop")return[bA,set(yA??GA,[stmt(call(GA,id$1("$$value")))])];if((LA==null?void 0:LA.kind)==="state"||(LA==null?void 0:LA.kind)==="raw_state"){const SA=LA.kind==="state"?call("$.proxy",id$1("$$value")):id$1("$$value");return[bA,set(yA??GA,[stmt(call("$.set",id$1(GA),SA))])]}return bA}),EA=[...eA.instance.scope.declarations].filter(([GA,yA])=>(yA.kind==="prop"||yA.kind==="bindable_prop")&&!GA.startsWith("$$"));if(dev&&eA.runes){const GA=eA.exports.map(({name:LA,alias:KA})=>literal(KA??LA)),yA=[];for(const[LA,KA]of EA)KA.kind==="bindable_prop"&&yA.push(literal(KA.prop_alias??LA));IA.body.unshift(stmt(call("$.validate_prop_bindings",id$1("$$props"),array(yA),array(GA),id$1(`${eA.name}`))))}if(eA.accessors)for(const[GA,yA]of EA){const LA=yA.prop_alias??GA,KA=get(LA,[return_builder(call(id$1(GA)))]),bA=set(LA,[stmt(call(id$1(GA),id$1("$$value"))),stmt(call("$.flush_sync"))]);eA.runes&&yA.initial&&(bA.value.params[0]={type:"AssignmentPattern",left:id$1("$$value"),right:yA.initial}),oA.push(KA,bA)}AA.compatibility.componentApi===4?oA.push(init("$set",id$1("$.update_legacy_props")),init("$on",arrow([id$1("$$event_name"),id$1("$$event_cb")],call("$.add_legacy_event_listener",id$1("$$props"),id$1("$$event_name"),id$1("$$event_cb"))))):dev&&oA.push(spread(call(id$1("$.legacy_api"))));const nA=[id$1("$$props"),literal(eA.runes)];dev&&nA.push(id$1(eA.name));const cA=block([...sA,...QA,...CA,...eA.top_level_snippets,...IA.body,eA.runes||!eA.needs_context?empty:stmt(call("$.init",eA.immutable?true_instance:void 0)),...BA.body]);if(!eA.runes)for(const{name:GA,alias:yA}of eA.exports)cA.body.push(stmt(call("$.bind_prop",id$1("$$props"),literal(yA??GA),build_getter$1(id$1(GA),iA))));if(eA.css.ast!==null&&eA.inject_styles){const GA=literal(eA.css.hash),yA=literal(render_stylesheet(eA.source,eA,AA).code);tA.hoisted.push(const_builder("$$css",object$2([init("hash",GA),init("code",yA)]))),cA.body.unshift(stmt(call("$.append_styles",id$1("$$anchor"),id$1("$$css"))))}const uA=dev||eA.needs_context||eA.reactive_statements.size>0||oA.length>0;if(uA&&(cA.body.unshift(stmt(call("$.push",...nA))),cA.body.push(oA.length>0?return_builder(call("$.pop",object$2(oA))):stmt(call("$.pop")))),eA.uses_rest_props){const GA=eA.exports.map(({name:yA,alias:LA})=>LA??yA);for(const[yA,LA]of eA.instance.scope.declarations)LA.kind==="bindable_prop"&&GA.push(LA.prop_alias??yA);cA.body.unshift(const_builder("$$restProps",call("$.legacy_rest_props",id$1("$$sanitized_props"),array(GA.map(yA=>literal(yA))))))}if(eA.uses_props||eA.uses_rest_props){const GA=[literal("children"),literal("$$slots"),literal("$$events"),literal("$$legacy")];eA.custom_element&&GA.push(literal("$$host")),cA.body.unshift(const_builder("$$sanitized_props",call("$.legacy_rest_props",id$1("$$props"),array(GA))))}eA.uses_slots&&cA.body.unshift(const_builder("$$slots",call("$.sanitize_slots",id$1("$$props"))));let lA=uA||eA.needs_props||eA.uses_props||eA.uses_rest_props||eA.uses_slots||eA.slot_names.size>0;const hA=[];let dA=[];for(const GA of[...gA.body,...tA.hoisted])GA.type==="ImportDeclaration"?hA.push(GA):dA.push(GA);dA=[...hA,...dA];const DA=function_declaration(id$1(eA.name),lA?[id$1("$$anchor"),id$1("$$props")]:[id$1("$$anchor")],cA);if(AA.hmr){const GA=id$1(eA.name),yA=id$1("$.HMR"),LA=member(GA,yA,!0),KA=member(id$1("module.default"),yA,!0),bA=[stmt(assignment("=",member(KA,"source"),member(LA,"source"))),stmt(call("$.set",member(LA,"source"),member(KA,"original")))];eA.css.hash&&bA.unshift(stmt(call("$.cleanup_styles",literal(eA.css.hash))));const SA=block([stmt(assignment("=",GA,call("$.hmr",GA,thunk(member(LA,"source"))))),stmt(call("import.meta.hot.accept",arrow([id$1("module")],block(bA))))]);dA.push(DA,if_builder(id$1("import.meta.hot"),SA),export_default(id$1(eA.name)))}else dA.push(export_default(DA));if(dev&&(dA.unshift(stmt(assignment("=",member(id$1(eA.name),"$.FILENAME",!0),literal(filename)))),dA.unshift(stmt(call(id$1("$.mark_module_start")))),dA.push(stmt(call(id$1("$.mark_module_end"),id$1(eA.name))))),AA.discloseVersion&&dA.unshift(imports([],"svelte/internal/disclose-version")),AA.compatibility.componentApi===4?(dA.unshift(imports([["createClassComponent","$$_createClassComponent"]],"svelte/legacy")),cA.body.unshift(if_builder(id$1("new.target"),return_builder(call("$$_createClassComponent",object$2([init("component",id$1(eA.name)),spread(id$1("$$anchor"))])))))):dev&&cA.body.unshift(stmt(call("$.check_target",id$1("new.target")))),tA.events.size>0&&dA.push(stmt(call("$.delegate",array(Array.from(tA.events).map(GA=>literal(GA)))))),eA.custom_element){const GA=eA.custom_element,yA=[];for(const[MA,NA]of EA){const FA=NA.prop_alias??MA,qA=typeof GA=="boolean"?{}:((wA=GA.props)==null?void 0:wA[FA])||{};!qA.type&&((RA=NA.initial)==null?void 0:RA.type)==="Literal"&&typeof NA.initial.value=="boolean"&&(qA.type="Boolean");const UA=object$2([qA.attribute?init("attribute",literal(qA.attribute)):void 0,qA.reflect?init("reflect",literal(!0)):void 0,qA.type?init("type",literal(qA.type)):void 0].filter(Boolean));yA.push(init(FA,UA))}const LA=array([...eA.slot_names.keys()].map(MA=>literal(MA))),KA=array(eA.exports.map(({name:MA,alias:NA})=>literal(NA??MA))),bA=typeof GA=="boolean"||GA.shadow!=="none",SA=call("$.create_custom_element",id$1(eA.name),object$2(yA),LA,KA,literal(bA),typeof GA!="boolean"?GA.extend:void 0);if(typeof GA!="boolean"&&typeof GA.tag=="string"){const MA=stmt(call("customElements.define",literal(GA.tag),SA));AA.hmr?dA.push(if_builder(binary("==",call("customElements.get",literal(GA.tag)),null_instane),MA)):dA.push(MA)}else dA.push(stmt(SA))}return{type:"Program",sourceType:"module",body:dA}}function client_module(eA,AA){const tA={analysis:eA,options:AA,scope:eA.module.scope,scopes:eA.module.scopes,public_state:new Map,private_state:new Map,transform:{},in_constructor:!1},gA=walk(eA.module.ast,tA,visitors);return{type:"Program",sourceType:"module",body:[import_all("$","svelte/internal/client"),...gA.body]}}function transform_component(eA,AA,tA){if(tA.generate===!1)return{js:null,css:null,warnings,metadata:{runes:eA.runes},ast:null};const gA=tA.generate==="server"?server_component(eA,tA):client_component(eA,tA),iA=get_source_name(tA.filename,tA.outputFilename),IA=print(gA,{sourceMapContent:AA,sourceMapSource:iA});merge_with_preprocessor_map(IA,tA,iA);const BA=eA.css.ast&&!eA.inject_styles?render_stylesheet(AA,eA,tA):null;return{js:IA,css:BA,warnings,metadata:{runes:eA.runes},ast:null}}function transform_module(eA,AA,tA){if(tA.generate===!1)return{js:null,css:null,warnings,metadata:{runes:!0},ast:null};const gA=tA.generate==="server"?server_module(eA,tA):client_module(eA,tA),iA=tA.filename.split(/[/\\]/).at(-1);return gA.body.length>0&&(gA.body[0].leadingComments=[{type:"Block",value:` ${iA} generated by Svelte v${VERSION} `}]),{js:print(gA,{sourceMapContent:AA,sourceMapSource:get_source_name(tA.filename,void 0)}),css:null,metadata:{runes:!0},warnings,ast:null}}var process={};const common={filename:string("(unknown)"),rootDir:string(typeof process<"u"?(jg=process.cwd)==null?void 0:jg.call(process):void 0),dev:boolean(!1),generate:validator("client",(eA,AA)=>eA==="dom"||eA==="ssr"?(warn_once(options_renamed_ssr_dom),eA==="dom"?"client":"server"):(eA!=="client"&&eA!=="server"&&eA!==!1&&throw_error(`${AA} must be "client", "server" or false`),eA))},validate_module_options=object({...common}),validate_component_options=object({...common,accessors:deprecate(options_deprecated_accessors,boolean(!1)),css:validator("external",eA=>((eA===!0||eA===!1)&&throw_error('The boolean options have been removed from the css option. Use "external" instead of false and "injected" instead of true'),eA==="none"&&throw_error('css: "none" is no longer a valid option. If this was crucial for you, please open an issue on GitHub with your use case.'),eA!=="external"&&eA!=="injected"&&throw_error('css should be either "external" (default, recommended) or "injected"'),eA)),cssHash:fun(({css:eA,hash:AA})=>`svelte-${AA(eA)}`),cssOutputFilename:string(void 0),customElement:boolean(!1),discloseVersion:boolean(!0),immutable:deprecate(options_deprecated_immutable,boolean(!1)),legacy:removed("The legacy option has been removed. If you are using this because of legacy.componentApi, use compatibility.componentApi instead"),compatibility:object({componentApi:list([4,5],5)}),loopGuardTimeout:warn_removed(options_removed_loop_guard_timeout),name:string(void 0),namespace:list(["html","mathml","svg"]),modernAst:boolean(!1),outputFilename:string(void 0),preserveComments:boolean(!1),preserveWhitespace:boolean(!1),runes:boolean(void 0),hmr:boolean(!1),warningFilter:fun(()=>!0),sourcemap:validator(void 0,eA=>eA),enableSourcemap:warn_removed(options_removed_enable_sourcemap),hydratable:warn_removed(options_removed_hydratable),format:removed('The format option has been removed in Svelte 4, the compiler only outputs ESM now. Remove "format" from your compiler options. If you did not set this yourself, bump the version of your bundler plugin (vite-plugin-svelte/rollup-plugin-svelte/svelte-loader)'),tag:removed('The tag option has been removed in Svelte 5. Use `<svelte:options customElement="tag-name" />` inside the component instead. If that does not solve your use case, please open an issue on GitHub with details.'),sveltePath:removed("The sveltePath option has been removed in Svelte 5. If this option was crucial for you, please open an issue on GitHub with your use case."),errorMode:removed("The errorMode option has been removed. If you are using this through svelte-preprocess with TypeScript, use the https://www.typescriptlang.org/tsconfig#verbatimModuleSyntax setting instead"),varsReport:removed("The vars option has been removed. If you are using this through svelte-preprocess with TypeScript, use the https://www.typescriptlang.org/tsconfig#verbatimModuleSyntax setting instead")});function removed(eA){return AA=>{AA!==void 0&&options_removed(null,eA)}}const warned=new Set;function warn_once(eA){warned.has(eA)||(warned.add(eA),eA(null))}function warn_removed(eA){return AA=>{AA!==void 0&&warn_once(eA)}}function deprecate(eA,AA){return(tA,gA)=>(tA!==void 0&&warn_once(eA),AA(tA,gA))}function object(eA,AA=!1){return(tA,gA)=>{const iA={};(tA&&typeof tA!="object"||Array.isArray(tA))&&throw_error(`${gA} should be an object`);for(const IA in tA)IA in eA||(AA?iA[IA]=tA[IA]:options_unrecognised(null,`${gA?`${gA}.${IA}`:IA}`));for(const IA in eA){const BA=eA[IA];iA[IA]=BA(tA&&tA[IA],gA?`${gA}.${IA}`:IA)}return iA}}function validator(eA,AA){return(tA,gA)=>tA===void 0?eA:AA(tA,gA)}function string(eA,AA=!0){return validator(eA,(tA,gA)=>(typeof tA!="string"&&throw_error(`${gA} should be a string, if specified`),!AA&&tA===""&&throw_error(`${gA} cannot be empty`),tA))}function boolean(eA){return validator(eA,(AA,tA)=>(typeof AA!="boolean"&&throw_error(`${tA} should be true or false, if specified`),AA))}function list(eA,AA=eA[0]){return validator(AA,(tA,gA)=>{if(!eA.includes(tA)){const iA=eA.length>2?`${gA} should be one of ${eA.slice(0,-1).map(IA=>`"${IA}"`).join(", ")} or "${eA[eA.length-1]}"`:`${gA} should be either "${eA[0]}" or "${eA[1]}"`;throw_error(iA)}return tA})}function fun(eA){return validator(eA,(AA,tA)=>(typeof AA!="function"&&throw_error(`${tA} should be a function, if specified`),AA))}function throw_error(eA){options_invalid_value(null,eA)}function compile(eA,AA){eA=remove_bom(eA),reset_warning_filter(AA.warningFilter);const tA=validate_component_options(AA,"");reset(eA,tA);let gA=parse(eA);const{customElement:iA,...IA}=gA.options||{},BA={...tA,...IA,customElementOptions:iA};gA.metadata.ts&&(gA={...gA,fragment:gA.fragment&&remove_typescript_nodes(gA.fragment),instance:gA.instance&&remove_typescript_nodes(gA.instance),module:gA.module&&remove_typescript_nodes(gA.module)});const sA=analyze_component(gA,eA,BA),QA=transform_component(sA,eA,BA);return QA.ast=to_public_ast(eA,gA,AA.modernAst),QA}function compileModule(eA,AA){eA=remove_bom(eA),reset_warning_filter(AA.warningFilter);const tA=validate_module_options(AA,"");reset(eA,tA);const gA=analyze_module(parse$1(eA,!1),tA);return transform_module(gA,eA,tA)}function to_public_ast(eA,AA,tA){var gA;if(tA){const iA=IA=>{delete IA.metadata,delete IA.parent};return(gA=AA.options)==null||gA.attributes.forEach(IA=>{iA(IA),iA(IA.value),Array.isArray(IA.value)&&IA.value.forEach(iA)}),walk(AA,null,{_(IA,{next:BA}){iA(IA),BA()}})}return convert(eA,AA)}function remove_bom(eA){return eA.charCodeAt(0)===65279?eA.slice(1):eA}const transform=()=>{const eA=new Set;return{input:(AA,tA)=>({code:AA,id:tA}),hook:(AA,tA)=>{if(!eA.has(tA))eA.add(tA);else return null;return tA.endsWith(".svelte")?{code:compile(AA,{generate:"dom",dev:!1,filename:tA,css:"injected"}).js.code,map:null}:tA.endsWith(".svelte.js")?{code:compileModule(AA,{generate:"client",dev:!1,filename:tA}).js.code,map:null}:tA.endsWith(".json")?{code:`export default ${AA};`,map:null}:null}}},load=(eA,AA,tA)=>{const gA=new Set;return{input:iA=>({resolved:iA}),hook:async iA=>{if(!gA.has(iA))gA.add(iA);else return null;if(iA==="<nil_xit_internal>/index.js")return AA;if(iA.startsWith(USER_TAG)){const IA=iA.substring(USER_TAG.length),BA=concat([header(nil_xit_proto.MessageType.MessageType_FileRequest),nil_xit_proto.FileRequest.encode({target:IA}).finish()]),{content:sA,metadata:QA}=await service_fetch(eA,BA,(CA,oA)=>{if(CA===nil_xit_proto.MessageType.MessageType_FileResponse){const EA=nil_xit_proto.FileResponse.decode(oA);if(EA.target===IA)return EA}});return tA&&tA(IA,QA),sA}if(iA.startsWith(RESOURCE_TAG))return await(await fetch(iA.slice(RESOURCE_TAG.length))).text();throw`unknown file: ${iA}`}}},debug_verbose=!1,hook_up=(eA,{hook:AA,input:tA})=>AA,warning=eA=>debug_verbose,encode=eA=>{const AA=new TextEncoder().encode(eA),gA=new Uint8Array(AA).reduce((iA,IA)=>iA+String.fromCharCode(IA),"");return btoa(gA)},transform_import=eA=>{const AA=eA.map(iA=>iA.split(" ")),tA=AA.map(iA=>{const IA=iA.slice(1,iA.length-2).join(" ");return IA.startsWith("* as ")?IA.slice(5):IA}),gA=AA.map(iA=>iA[iA.length-1]).map(iA=>`import_map[${iA}]()`);return`const [${tA.join(", ")}] = await Promise.all([${gA.join(", ")}])`},wrap_fe=eA=>{const AA=eA.code.replace("export {","return {"),tA=AA.indexOf(`;
|
|
59
|
+
`+oA.value[0].data),IA=call("$.escape",build_attribute_value$1(oA.value,AA))):eA.name!=="select"&&tA.push(oA):is_event_attribute(oA)?(oA.name==="onload"||oA.name==="onerror")&&is_load_error_element(eA.name)&&CA.add(oA.name):(oA.name==="class"?sA=tA.length:oA.name==="style"&&(QA=tA.length),tA.push(oA));else if(oA.type==="BindDirective"){if(oA.name==="value"&&eA.name==="select"||oA.name==="value"&&tA.some(nA=>nA.type==="Attribute"&&nA.name==="type"&&is_text_attribute(nA)&&nA.value[0].data==="file")||oA.name==="this")continue;const EA=binding_properties[oA.name];if(EA!=null&&EA.omit_in_ssr)continue;if(is_content_editable_binding(oA.name))IA=AA.visit(oA.expression);else if(oA.name==="value"&&eA.name==="textarea")IA=call("$.escape",AA.visit(oA.expression));else if(oA.name==="group"){const nA=eA.attributes.find(uA=>uA.type==="Attribute"&&uA.name==="value");if(!nA)continue;const cA=eA.attributes.some(uA=>uA.type==="Attribute"&&uA.name==="type"&&is_text_attribute(uA)&&uA.value[0].data==="checkbox");tA.push(create_attribute("checked",-1,-1,[{type:"ExpressionTag",start:-1,end:-1,parent:oA,expression:cA?call(member(oA.expression,"includes"),build_attribute_value$1(nA.value,AA)):binary("===",oA.expression,build_attribute_value$1(nA.value,AA)),metadata:{expression:create_expression_metadata()}}]))}else tA.push(create_attribute(oA.name,-1,-1,[{type:"ExpressionTag",start:-1,end:-1,parent:oA,expression:oA.expression,metadata:{expression:create_expression_metadata()}}]))}else oA.type==="SpreadAttribute"?(tA.push(oA),BA=!0,is_load_error_element(eA.name)&&(CA.add("onload"),CA.add("onerror"))):oA.type==="UseDirective"?is_load_error_element(eA.name)&&(CA.add("onload"),CA.add("onerror")):oA.type==="ClassDirective"?gA.push(oA):oA.type==="StyleDirective"?iA.push(oA):oA.type==="LetDirective"||AA.visit(oA);if(gA.length>0&&!BA){const oA=build_class_directives$1(gA,tA[sA]??null);sA===-1&&tA.push(oA)}if(iA.length>0&&!BA&&(build_style_directives$1(iA,tA[QA]??null,AA),QA>-1&&tA.splice(QA,1)),BA)build_element_spread_attributes(eA,tA,iA,gA,AA);else for(const oA of tA){if(oA.value===!0||is_text_attribute(oA)){const cA=get_attribute_name$1(eA,oA),uA=build_attribute_value$1(oA.value,AA,WHITESPACE_INSENSITIVE_ATTRIBUTES.includes(cA)).value;(cA!=="class"||uA)&&AA.state.template.push(literal(` ${oA.name}${is_boolean_attribute(cA)&&uA===!0?"":`="${uA===!0?"":String(uA)}"`}`));continue}const EA=get_attribute_name$1(eA,oA),nA=build_attribute_value$1(oA.value,AA,WHITESPACE_INSENSITIVE_ATTRIBUTES.includes(EA));AA.state.template.push(call("$.attr",literal(EA),nA,is_boolean_attribute(EA)&&true_instance))}if(CA.size!==0)for(const oA of CA)AA.state.template.push(literal(` ${oA}="this.__e=event"`));return IA}function get_attribute_name$1(eA,AA){let tA=AA.name;return!eA.metadata.svg&&!eA.metadata.mathml&&(tA=tA.toLowerCase()),tA}function build_element_spread_attributes(eA,AA,tA,gA,iA){let IA,BA,sA=0;if(gA.length>0||iA.state.analysis.css.hash){const oA=gA.map(EA=>init(EA.name,EA.expression.type==="Identifier"&&EA.expression.name===EA.name?id$1(EA.name):iA.visit(EA.expression)));iA.state.analysis.css.hash&&oA.unshift(init(iA.state.analysis.css.hash,literal(!0))),IA=object$2(oA)}if(tA.length>0){const oA=tA.map(EA=>init(EA.name,EA.value===!0?id$1(EA.name):build_attribute_value$1(EA.value,iA,!0)));BA=object$2(oA)}eA.metadata.svg||eA.metadata.mathml?sA|=ELEMENT_IS_NAMESPACED|ELEMENT_PRESERVE_ATTRIBUTE_CASE:is_custom_element_node(eA)&&(sA|=ELEMENT_PRESERVE_ATTRIBUTE_CASE);const CA=[object$2(AA.map(oA=>{if(oA.type==="Attribute"){const EA=get_attribute_name$1(eA,oA),nA=build_attribute_value$1(oA.value,iA,WHITESPACE_INSENSITIVE_ATTRIBUTES.includes(EA));return prop("init",key$2(EA),nA)}return spread(iA.visit(oA))})),IA,BA,sA?literal(sA):void 0];iA.state.template.push(call("$.spread_attributes",...CA))}function build_class_directives$1(eA,AA){const tA=eA.map(IA=>conditional(IA.expression,literal(IA.name),literal("")));AA===null&&(AA=create_attribute("class",-1,-1,[]));const gA=get_attribute_chunks(AA.value),iA=gA.at(-1);return(iA==null?void 0:iA.type)==="Text"?(iA.data+=" ",iA.raw+=" "):iA&&gA.push({type:"Text",start:-1,end:-1,parent:AA,data:" ",raw:" "}),gA.push({type:"ExpressionTag",start:-1,end:-1,parent:AA,expression:call(member(call(member(array(tA),"filter"),id$1("Boolean")),id$1("join")),literal(" ")),metadata:{expression:create_expression_metadata()}}),AA.value=gA,AA}function build_style_directives$1(eA,AA,tA){const gA=eA.map(IA=>{let BA=IA.value===!0?id$1(IA.name):build_attribute_value$1(IA.value,tA,!0);return IA.modifiers.includes("important")&&(BA=binary("+",BA,literal(" !important"))),init(IA.name,BA)}),iA=AA===null?object$2(gA):call("$.merge_styles",build_attribute_value$1(AA.value,tA,!0),object$2(gA));tA.state.template.push(call("$.add_styles",iA))}function RegularElement$1(eA,AA){const tA=determine_namespace_for_children(eA,AA.state.namespace),gA={...AA.state,namespace:tA,preserve_whitespace:AA.state.preserve_whitespace||eA.name==="pre"||eA.name==="textarea"};AA.state.template.push(literal(`<${eA.name}`));const iA=build_element_attributes(eA,{...AA,state:gA});if(AA.state.template.push(literal(">")),(eA.name==="script"||eA.name==="style")&&eA.fragment.nodes.length===1){AA.state.template.push(literal(eA.fragment.nodes[0].data),literal(`</${eA.name}>`));return}const{hoisted:IA,trimmed:BA}=clean_nodes(eA,eA.fragment.nodes,AA.path,tA,{...gA,scope:gA.scopes.get(eA.fragment)},gA.preserve_whitespace,gA.options.preserveComments);for(const sA of IA)AA.visit(sA,gA);if(dev){const sA=locator(eA.start);gA.template.push(stmt(call("$.push_element",id$1("$$payload"),literal(eA.name),literal(sA.line),literal(sA.column))))}if(iA===null)process_children$1(BA,{...AA,state:gA});else{let sA=iA;iA.type!=="Identifier"&&(sA=id$1(gA.scope.generate("$$body")),gA.template.push(const_builder(sA,iA)));const QA={...gA,template:[],init:[]};process_children$1(BA,{...AA,state:QA}),gA.template.push(if_builder(sA,block(build_template([sA])),block([...QA.init,...build_template(QA.template)])))}is_void(eA.name)||gA.template.push(literal(`</${eA.name}>`)),dev&&gA.template.push(stmt(call("$.pop_element")))}function RenderTag$1(eA,AA){const tA=unwrap_optional(eA.expression).callee,gA=unwrap_optional(eA.expression).arguments,iA=AA.visit(tA),IA=gA.map(BA=>AA.visit(BA));AA.state.template.push(stmt((eA.expression.type==="CallExpression"?call:maybe_call)(iA,id$1("$$payload"),...IA))),AA.state.skip_hydration_boundaries||AA.state.template.push(empty_comment)}function SlotElement$1(eA,AA){const tA=[],gA=[];let iA=literal("default");for(const QA of eA.attributes)if(QA.type==="SpreadAttribute")gA.push(AA.visit(QA));else if(QA.type==="Attribute"){const CA=build_attribute_value$1(QA.value,AA,!1,!0);QA.name==="name"?iA=CA:QA.name!=="slot"&&tA.push(init(QA.name,CA))}const IA=gA.length===0?object$2(tA):call("$.spread_props",array([object$2(tA),...gA])),BA=eA.fragment.nodes.length===0?literal(null):thunk(AA.visit(eA.fragment)),sA=call("$.slot",id$1("$$payload"),id$1("$$props"),iA,IA,BA);AA.state.template.push(empty_comment,stmt(sA),empty_comment)}function SnippetBlock$1(eA,AA){const tA=function_declaration(eA.expression,[id$1("$$payload"),...eA.parameters],AA.visit(eA.body));tA.___snippet=!0,AA.state.init.push(tA)}function SpreadAttribute$1(eA,AA){return AA.visit(eA.expression)}function SvelteComponent$1(eA,AA){build_inline_component(eA,AA.visit(eA.expression),AA)}function SvelteElement$1(eA,AA){let tA=AA.visit(eA.tag);if(tA.type!=="Identifier"){const BA=AA.state.scope.generate("$$tag");AA.state.init.push(const_builder(BA,tA)),tA=id$1(BA)}dev&&(eA.fragment.nodes.length>0&&AA.state.init.push(stmt(call("$.validate_void_dynamic_element",thunk(tA)))),AA.state.init.push(stmt(call("$.validate_dynamic_element_tag",thunk(tA)))));const gA={...AA.state,namespace:determine_namespace_for_children(eA,AA.state.namespace),template:[],init:[]};if(build_element_attributes(eA,{...AA,state:gA}),dev){const BA=locator(eA.start);AA.state.template.push(stmt(call("$.push_element",id$1("$$payload"),tA,literal(BA.line),literal(BA.column))))}const iA=block([...gA.init,...build_template(gA.template)]),IA=AA.visit(eA.fragment,gA);AA.state.template.push(stmt(call("$.element",id$1("$$payload"),tA,iA.body.length>0&&thunk(iA),IA.body.length>0&&thunk(IA)))),dev&&AA.state.template.push(stmt(call("$.pop_element")))}function SvelteFragment$1(eA,AA){AA.state.template.push(AA.visit(eA.fragment))}function SvelteHead$1(eA,AA){const tA=AA.visit(eA.fragment);AA.state.template.push(stmt(call("$.head",id$1("$$payload"),arrow([id$1("$$payload")],tA))))}function SvelteSelf$1(eA,AA){build_inline_component(eA,id$1(AA.state.analysis.name),AA)}function TitleElement$1(eA,AA){const tA=[literal("<title>")];process_children$1(eA.fragment.nodes,{...AA,state:{...AA.state,template:tA}}),tA.push(literal("</title>")),AA.state.init.push(...build_template(tA,id$1("$$payload.title"),"="))}function UpdateExpression$1(eA,AA){var gA;const tA=eA.argument;return tA.type==="Identifier"&&((gA=AA.state.scope.get(tA.name))==null?void 0:gA.kind)==="store_sub"?call(eA.prefix?"$.update_store_pre":"$.update_store",assignment("??=",id$1("$$store_subs"),object$2([])),literal(tA.name),id$1(tA.name.slice(1)),eA.operator==="--"&&literal(-1)):AA.next()}function VariableDeclaration$1(eA,AA){var gA;const tA=[];if(AA.state.analysis.runes)for(const iA of eA.declarations){const IA=iA.init,BA=get_rune(IA,AA.state.scope);if(!BA||BA==="$effect.tracking"||BA==="$inspect"||BA==="$effect.root"){tA.push(AA.visit(iA));continue}if(BA==="$props"){let CA=!1,oA=walk(iA.id,null,{RestElement(EA,nA){nA.path.at(-1)===iA.id&&(CA=!0)},AssignmentPattern(EA){if(EA.right.type==="CallExpression"&&get_rune(EA.right,AA.state.scope)==="$bindable"){const nA=EA.right.arguments.length?AA.visit(EA.right.arguments[0]):id$1("undefined");return assignment_pattern(EA.left,nA)}}});oA.type==="ObjectPattern"&&CA?oA.properties.splice(oA.properties.length-1,0,prop("init",id$1("$$slots"),id$1("$$slots")),prop("init",id$1("$$events"),id$1("$$events"))):oA.type==="Identifier"&&(oA=object_pattern([prop("init",id$1("$$slots"),id$1("$$slots")),prop("init",id$1("$$events"),id$1("$$events")),rest(id$1(oA.name))])),tA.push(declarator(AA.visit(oA),id$1("$$props")));continue}const sA=IA.arguments,QA=sA.length===0?id$1("undefined"):AA.visit(sA[0]);if(BA==="$derived.by"){tA.push(declarator(AA.visit(iA.id),call(QA)));continue}if(iA.id.type==="Identifier"){tA.push(declarator(iA.id,QA));continue}if(BA==="$derived"){tA.push(declarator(AA.visit(iA.id),QA));continue}tA.push(...create_state_declarators$1(iA,AA.state.scope,QA))}else for(const iA of eA.declarations){const IA=AA.state.scope.get_bindings(iA),BA=IA.some(QA=>QA.kind==="state"),sA=IA.some(QA=>QA.kind==="bindable_prop");if(!BA&&!sA){tA.push(AA.visit(iA));continue}if(sA){if(iA.id.type!=="Identifier"){const EA=AA.state.scope.generate("tmp"),nA=extract_paths(iA.id);tA.push(declarator(id$1(EA),AA.visit(iA.init)));for(const cA of nA){const uA=(gA=cA.expression)==null?void 0:gA.call(cA,id$1(EA)),lA=cA.node.name,hA=AA.state.scope.get(lA),dA=member(id$1("$$props"),literal(hA.prop_alias??lA),!0);tA.push(declarator(cA.node,build_fallback(dA,uA)))}continue}const QA=AA.state.scope.get(iA.id.name),CA=member(id$1("$$props"),literal(QA.prop_alias??iA.id.name),!0);let oA=CA;if(iA.init){const EA=AA.visit(iA.init);oA=build_fallback(CA,EA)}tA.push(declarator(iA.id,oA));continue}tA.push(...create_state_declarators$1(iA,AA.state.scope,iA.init&&AA.visit(iA.init)))}return{...eA,declarations:tA}}function create_state_declarators$1(eA,AA,tA){if(eA.id.type==="Identifier")return[declarator(eA.id,tA)];const gA=AA.generate("tmp"),iA=extract_paths(eA.id);return[declarator(id$1(gA),tA),...iA.map(IA=>{var sA;const BA=(sA=IA.expression)==null?void 0:sA.call(IA,id$1(gA));return declarator(IA.node,BA)})]}const global_visitors={_:set_scope,AssignmentExpression:AssignmentExpression$1,CallExpression:CallExpression$1,ClassBody:ClassBody$1,ExpressionStatement:ExpressionStatement$1,Identifier:Identifier$1,LabeledStatement:LabeledStatement$1,MemberExpression:MemberExpression$1,PropertyDefinition,UpdateExpression:UpdateExpression$1,VariableDeclaration:VariableDeclaration$1},template_visitors={AwaitBlock:AwaitBlock$1,Component:Component$1,ConstTag:ConstTag$1,DebugTag:DebugTag$1,EachBlock:EachBlock$1,Fragment:Fragment$1,HtmlTag:HtmlTag$1,IfBlock:IfBlock$1,KeyBlock:KeyBlock$1,RegularElement:RegularElement$1,RenderTag:RenderTag$1,SlotElement:SlotElement$1,SnippetBlock:SnippetBlock$1,SpreadAttribute:SpreadAttribute$1,SvelteComponent:SvelteComponent$1,SvelteElement:SvelteElement$1,SvelteFragment:SvelteFragment$1,SvelteHead:SvelteHead$1,SvelteSelf:SvelteSelf$1,TitleElement:TitleElement$1};function server_component(eA,AA){const tA={analysis:eA,options:AA,scope:eA.module.scope,scopes:eA.module.scopes,hoisted:[import_all("$","svelte/internal/server")],legacy_reactive_statements:new Map,init:null,template:null,namespace:AA.namespace,preserve_whitespace:AA.preserveWhitespace,private_derived:new Map,skip_hydration_boundaries:!1},gA=walk(eA.module.ast,tA,global_visitors),iA=walk(eA.instance.ast,{...tA,scopes:eA.instance.scopes},{...global_visitors,ImportDeclaration(cA){return tA.hoisted.push(cA),empty},ExportNamedDeclaration(cA,uA){return cA.declaration?uA.visit(cA.declaration):empty}}),IA=walk(eA.template.ast,{...tA,scopes:eA.template.scopes},{...global_visitors,...template_visitors}),BA=[];for(const[cA]of eA.reactive_statements){const uA=[...tA.legacy_reactive_statements].find(([lA])=>lA===cA);if(uA===void 0)throw new Error("Could not find reactive statement");if(cA.body.type==="ExpressionStatement"&&cA.body.expression.type==="AssignmentExpression")for(const lA of extract_identifiers(cA.body.expression.left)){const hA=eA.instance.scope.get(lA.name);(hA==null?void 0:hA.kind)==="legacy_reactive"&&BA.push(declarator(lA))}iA.body.push(uA[1])}if(BA.length>0&&iA.body.unshift({type:"VariableDeclaration",kind:"let",declarations:BA}),eA.uses_component_bindings){const cA=IA.body.filter(lA=>lA.type==="FunctionDeclaration"&&lA.___snippet),uA=IA.body.filter(lA=>lA.type!=="FunctionDeclaration"||!lA.___snippet);IA.body=[...cA,let_builder("$$settled",true_instance),let_builder("$$inner_payload"),stmt(function_builder(id$1("$$render_inner"),[id$1("$$payload")],block(uA))),do_while(unary("!",id$1("$$settled")),block([stmt(assignment("=",id$1("$$settled"),true_instance)),stmt(assignment("=",id$1("$$inner_payload"),call("$.copy_payload",id$1("$$payload")))),stmt(call("$$render_inner",id$1("$$inner_payload")))])),stmt(call("$.assign_payload",id$1("$$payload"),id$1("$$inner_payload")))]}[...eA.instance.scope.declarations.values()].some(cA=>cA.kind==="store_sub")&&(iA.body.unshift(var_builder("$$store_subs")),IA.body.push(if_builder(id$1("$$store_subs"),stmt(call("$.unsubscribe_stores",id$1("$$store_subs"))))));const sA=[];for(const[cA,uA]of eA.instance.scope.declarations)uA.kind==="bindable_prop"&&!cA.startsWith("$$")&&sA.push(init(uA.prop_alias??cA,id$1(cA)));for(const{name:cA,alias:uA}of eA.exports)sA.push(init(uA??cA,id$1(cA)));sA.length>0&&IA.body.push(stmt(call("$.bind_props",id$1("$$props"),object$2(sA))));const QA=block([...iA.body,...IA.body]);let CA=dev||eA.needs_context;if(CA&&(QA.body.unshift(stmt(call("$.push",dev&&id$1(eA.name)))),QA.body.push(stmt(call("$.pop")))),eA.uses_rest_props){const cA=eA.exports.map(({name:uA,alias:lA})=>lA??uA);for(const[uA,lA]of eA.instance.scope.declarations)lA.kind==="bindable_prop"&&cA.push(lA.prop_alias??uA);QA.body.unshift(const_builder("$$restProps",call("$.rest_props",id$1("$$sanitized_props"),array(cA.map(uA=>literal(uA))))))}(eA.uses_props||eA.uses_rest_props)&&QA.body.unshift(const_builder("$$sanitized_props",call("$.sanitize_props",id$1("$$props")))),eA.uses_slots&&QA.body.unshift(const_builder("$$slots",call("$.sanitize_slots",id$1("$$props"))));const oA=[...tA.hoisted,...gA.body];if(eA.css.ast!==null&&AA.css==="injected"&&!AA.customElement){const cA=literal(eA.css.hash),uA=literal(render_stylesheet(eA.source,eA,AA).code);oA.push(const_builder("$$css",object$2([init("hash",cA),init("code",uA)]))),QA.body.unshift(stmt(call("$$payload.css.add",id$1("$$css"))))}let EA=CA||sA.length>0||eA.needs_props||eA.uses_props||eA.uses_rest_props||eA.uses_slots||eA.slot_names.size>0;const nA=function_declaration(id$1(eA.name),EA?[id$1("$$payload"),id$1("$$props")]:[id$1("$$payload")],QA);return AA.compatibility.componentApi===4?(oA.unshift(imports([["render","$$_render"]],"svelte/server")),oA.push(nA,stmt(assignment("=",member_id(`${eA.name}.render`),function_builder(null,[id$1("$$props"),id$1("$$opts")],block([return_builder(call("$$_render",id$1(eA.name),object$2([init("props",id$1("$$props")),init("context",member(id$1("$$opts"),"context",!1,!0))])))])))),export_default(id$1(eA.name)))):dev?oA.push(nA,stmt(assignment("=",member_id(`${eA.name}.render`),function_builder(null,[],block([throw_error$1("Component.render(...) is no longer valid in Svelte 5. See https://svelte-5-preview.vercel.app/docs/breaking-changes#components-are-no-longer-classes for more information")])))),export_default(id$1(eA.name))):oA.push(export_default(nA)),dev&&oA.unshift(stmt(assignment("=",member(id$1(eA.name),"$.FILENAME",!0),literal(filename)))),{type:"Program",sourceType:"module",body:oA}}function server_module(eA,AA){const tA={analysis:eA,options:AA,scope:eA.module.scope,scopes:eA.module.scopes,legacy_reactive_statements:new Map,private_derived:new Map},gA=walk(eA.module.ast,tA,global_visitors);return{type:"Program",sourceType:"module",body:[import_all("$","svelte/internal/server"),...gA.body]}}function get_states_and_calls(eA){let AA=0,tA=0;for(let gA=0;gA<eA.length;gA++){const iA=eA[gA];iA.type==="ExpressionTag"&&(iA.metadata.expression.has_call&&tA++,iA.metadata.expression.has_state&&AA++)}return{states:AA,calls:tA}}function build_template_literal(eA,AA,tA){const gA=[];let iA=quasi("");const IA=[iA],{states:BA,calls:sA}=get_states_and_calls(eA);let QA=sA>0,CA=BA>0,oA=sA>1;for(let nA=0;nA<eA.length;nA++){const cA=eA[nA];if(cA.type==="Text")iA.value.cooked+=cA.data;else if(cA.type==="ExpressionTag"&&cA.expression.type==="Literal")cA.expression.value!=null&&(iA.value.cooked+=cA.expression.value+"");else{if(oA){const uA=id$1(tA.scope.generate("stringified_text"));tA.init.push(const_builder(uA,create_derived(tA,thunk(logical("??",AA(cA.expression,tA),literal("")))))),gA.push(call("$.get",uA))}else{if(eA.length===1)return{value:AA(cA.expression,tA),has_state:CA,has_call:QA};gA.push(logical("??",AA(cA.expression,tA),literal("")))}iA=quasi("",nA+1===eA.length),IA.push(iA)}}for(const nA of IA)nA.value.raw=sanitize_template_string(nA.value.cooked);return{value:template(IA,gA),has_state:CA,has_call:QA}}function build_update(eA){const AA=eA.type==="ExpressionStatement"?eA.expression:block([eA]);return stmt(call("$.template_effect",thunk(AA)))}function build_render_statement(eA){return eA.length===1?build_update(eA[0]):stmt(call("$.template_effect",thunk(block(eA))))}function parse_directive_name(eA){const AA=eA.split(".");let tA=AA.shift(),gA=id$1(tA);for(;tA=AA.shift();){const iA=!regex_is_valid_identifier.test(tA);gA=member(gA,iA?literal(tA):id$1(tA),iA)}return gA}function build_update_assignment(eA,AA,tA,gA,iA){eA.init.push(var_builder(AA,tA)),eA.update.push(if_builder(binary("!==",id$1(AA),assignment("=",id$1(AA),gA)),block([iA])))}function build_bind_this(eA,AA,{state:tA,visit:gA}){const iA=[],IA=[],BA=[],sA={...tA.transform};walk(eA,null,{Identifier(nA,{path:cA}){if(BA.includes(nA.name))return;BA.push(nA.name);const uA=cA.at(-1);if(!is_reference(nA,uA))return;const lA=tA.scope.get(nA.name);if(lA){for(const[hA,dA]of tA.scopes)if(hA.type==="EachBlock"&&dA===lA.scope){iA.push(nA),IA.push(gA(nA)),sA[nA.name]&&(sA[nA.name]={...sA[nA.name],read:DA=>DA});break}}}});const QA={...tA,transform:sA},CA=gA(eA,QA),oA=gA(assignment("=",eA,id$1("$$value")),QA);let EA=CA;for(;EA.type==="MemberExpression";)EA.optional=!0,EA=EA.object;return call("$.bind_this",AA,arrow([id$1("$$value"),...iA],oA),arrow([...iA],CA),IA.length>0&&thunk(array(IA)))}function validate_binding(eA,AA,tA){const gA=object$1(AA.expression),iA=gA&&eA.scope.get(gA.name);if((iA==null?void 0:iA.kind)==="store_sub")return;const IA=locator(AA.start);eA.init.push(stmt(call("$.validate_binding",literal(eA.analysis.source.slice(AA.start,AA.end)),thunk(tA.object),thunk(tA.computed?tA.property:literal(tA.property.name)),IA&&literal(IA.line),IA&&literal(IA.column))))}function AnimateDirective(eA,AA){const tA=eA.expression===null?literal(null):thunk(AA.visit(eA.expression));AA.state.after_update.push(stmt(call("$.animation",AA.state.node,thunk(AA.visit(parse_directive_name(eA.name))),tA)))}const visit_function=(eA,AA)=>{const tA=eA.metadata;let gA={...AA.state,in_constructor:!1};if(eA.type==="FunctionExpression"){const iA=AA.path.at(-1);gA.in_constructor=iA.type==="MethodDefinition"&&iA.kind==="constructor"}if((tA==null?void 0:tA.hoisted)===!0){const iA=build_hoisted_params(eA,AA);return{...eA,params:iA,body:AA.visit(eA.body,gA)}}AA.next(gA)};function ArrowFunctionExpression(eA,AA){return visit_function(eA,AA)}function AssignmentExpression(eA,AA){const tA=visit_assignment_expression(eA,AA,build_assignment)??AA.next();return is_ignored(eA,"ownership_invalid_mutation")?call("$.skip_ownership_validation",thunk(tA)):tA}function build_assignment(eA,AA,tA,gA){if(gA.state.analysis.runes&&AA.type==="MemberExpression"&&AA.object.type==="ThisExpression"&&AA.property.type==="PrivateIdentifier"){const sA=gA.state.private_state.get(AA.property.name);if(sA!==void 0){let QA=!1,CA=gA.visit(build_assignment_value(eA,AA,tA));if(should_proxy(CA,gA.state.scope)&&(QA=!0,CA=sA.kind==="raw_state"?CA:build_proxy_reassignment(CA,member(this_instance,sA.id))),gA.state.in_constructor){if(QA)return assignment(eA,gA.visit(AA),CA)}else return call("$.set",AA,CA)}}let iA=AA;for(;iA.type==="MemberExpression";)iA=iA.object;if(iA.type!=="Identifier")return null;const IA=gA.state.scope.get(iA.name);if(!IA)return null;const BA=Object.hasOwn(gA.state.transform,iA.name)?gA.state.transform[iA.name]:null;if(iA===AA&&(BA!=null&&BA.assign)){let sA=gA.visit(build_assignment_value(eA,AA,tA));const QA=gA.path.map(oA=>oA.type);return!(QA.at(-1)==="BindDirective"&&QA.at(-2)==="RegularElement")&&IA.kind!=="prop"&&IA.kind!=="bindable_prop"&&gA.state.analysis.runes&&should_proxy(sA,gA.state.scope)&&(sA=IA.kind==="raw_state"?sA:build_proxy_reassignment(sA,iA)),BA.assign(iA,sA)}return BA!=null&&BA.mutate?BA.mutate(iA,assignment(eA,gA.visit(AA),gA.visit(tA))):null}function visit_event_attribute(eA,AA){let tA=!1,gA=eA.name.slice(2);is_capture_event(gA)&&(gA=gA.slice(0,-7),tA=!0);const iA=Array.isArray(eA.value)?eA.value[0]:eA.value;let IA=build_event_handler(iA.expression,iA.metadata.expression,AA);if(eA.metadata.delegated){let BA;if(AA.state.events.has(gA)||AA.state.events.add(gA),eA.metadata.delegated.hoisted){if(eA.metadata.delegated.function===iA.expression){const CA=AA.state.scope.root.unique("on_"+gA);AA.state.hoisted.push(var_builder(CA,IA)),IA=CA}const sA=eA.metadata.delegated.function.metadata.hoisted_params,QA=[IA,...sA];BA=array(QA)}else BA=IA;AA.state.init.push(stmt(assignment("=",member(AA.state.node,"__"+gA),BA)))}else{const BA=stmt(build_event(gA,AA.state.node,IA,tA,is_passive_event(gA)?!0:void 0)),sA=AA.path.at(-1).type;sA==="SvelteDocument"||sA==="SvelteWindow"||sA==="SvelteBody"?AA.state.init.push(BA):AA.state.after_update.push(BA)}}function build_event(eA,AA,tA,gA,iA){return call("$.event",literal(eA),AA,tA,gA&&true_instance,iA===void 0?void 0:literal(iA))}function build_event_handler(eA,AA,tA){var IA;if(eA===null)return function_builder(null,[id$1("$$arg")],block([stmt(call("$.bubble_event.call",this_instance,id$1("$$props"),id$1("$$arg")))]));let gA=tA.visit(eA);if(gA.type==="ArrowFunctionExpression"||gA.type==="FunctionExpression"||gA.type==="Identifier"&&((IA=tA.state.scope.get(gA.name))==null?void 0:IA.declaration_kind)!=="import")return gA;if(AA.has_call){const BA=id$1(tA.state.scope.generate("event_handler"));tA.state.init.push(var_builder(BA,call("$.derived",thunk(gA)))),gA=call("$.get",BA)}let iA=call(member(gA,"apply",!1,!0),this_instance,id$1("$$args"));if(dev){const BA=locator(eA.start),sA=eA.type==="CallExpression"&&eA.arguments.length===0&&eA.callee.type==="Identifier";iA=call("$.apply",thunk(gA),this_instance,id$1("$$args"),id$1(tA.state.analysis.name),BA&&array([literal(BA.line),literal(BA.column)]),has_side_effects(eA)&&true_instance,sA&&true_instance)}return function_builder(null,[rest(id$1("$$args"))],block([stmt(iA)]))}function has_side_effects(eA){return eA.type==="CallExpression"||eA.type==="NewExpression"||eA.type==="AssignmentExpression"||eA.type==="UpdateExpression"?!0:eA.type==="SequenceExpression"?eA.expressions.some(has_side_effects):!1}function Attribute(eA,AA){is_event_attribute(eA)&&visit_event_attribute(eA,AA)}function AwaitBlock(eA,AA){AA.state.template.push("<!>");const tA=thunk(AA.visit(eA.expression));let gA,iA;if(eA.then){const IA={...AA,state:{...AA.state,transform:{...AA.state.transform}}},BA=eA.value&&create_derived_block_argument(eA.value,IA),sA=[id$1("$$anchor")];BA&&sA.push(BA.id);const QA=(BA==null?void 0:BA.declarations)??[],CA=IA.visit(eA.then,IA.state);gA=arrow(sA,block([...QA,...CA.body]))}if(eA.catch){const IA={...AA,state:{...AA.state}},BA=eA.error&&create_derived_block_argument(eA.error,IA),sA=[id$1("$$anchor")];BA&&sA.push(BA.id);const QA=(BA==null?void 0:BA.declarations)??[],CA=IA.visit(eA.catch,IA.state);iA=arrow(sA,block([...QA,...CA.body]))}AA.state.init.push(stmt(call("$.await",AA.state.node,tA,eA.pending?arrow([id$1("$$anchor")],AA.visit(eA.pending)):literal(null),gA,iA)))}function BinaryExpression(eA,AA){if(dev){const tA=eA.operator;if(tA==="==="||tA==="!==")return call("$.strict_equals",AA.visit(eA.left),AA.visit(eA.right),tA==="!=="&&literal(!1));if(tA==="=="||tA==="!=")return call("$.equals",AA.visit(eA.left),AA.visit(eA.right),tA==="!="&&literal(!1))}AA.next()}function build_set_attributes(eA,AA,tA,gA,iA,IA,BA,sA){let QA=!1;const CA=[];for(const EA of eA)if(EA.type==="Attribute"){const{value:nA}=build_attribute_value(EA.value,AA);if(is_event_attribute(EA)&&(nA.type==="ArrowFunctionExpression"||nA.type==="FunctionExpression")){const cA=AA.state.scope.generate("event_handler");AA.state.init.push(var_builder(cA,nA)),CA.push(init(EA.name,id$1(cA)))}else CA.push(init(EA.name,nA));QA||(QA=EA.metadata.expression.has_state)}else{QA=!0;let nA=AA.visit(EA);if(EA.metadata.expression.has_call){const cA=id$1(sA.scope.generate("spread_with_call"));sA.init.push(const_builder(cA,create_derived(sA,thunk(nA)))),nA=call("$.get",cA)}CA.push(spread(nA))}const oA=call("$.set_attributes",gA,QA?iA:literal(null),object$2(CA),AA.state.analysis.css.hash!==""&&literal(AA.state.analysis.css.hash),IA,BA,is_ignored(tA,"hydration_attribute_changed")&&true_instance);if(QA){AA.state.init.push(let_builder(iA));const EA=stmt(assignment("=",iA,oA));return AA.state.update.push(EA),!0}return AA.state.init.push(stmt(oA)),!1}function build_style_directives(eA,AA,tA,gA){const iA=tA.state;for(const IA of eA){const{has_state:BA,has_call:sA}=IA.metadata.expression;let QA=IA.value===!0?build_getter$1({name:IA.name,type:"Identifier"},tA.state):build_attribute_value(IA.value,tA).value;if(sA){const oA=id$1(iA.scope.generate("style_directive"));iA.init.push(const_builder(oA,create_derived(iA,thunk(QA)))),QA=call("$.get",oA)}const CA=stmt(call("$.set_style",AA,literal(IA.name),QA,IA.modifiers.includes("important")?true_instance:void 0));!gA&&sA?iA.init.push(build_update(CA)):gA||BA||sA?iA.update.push(CA):iA.init.push(CA)}}function build_class_directives(eA,AA,tA,gA){const iA=tA.state;for(const IA of eA){const{has_state:BA,has_call:sA}=IA.metadata.expression;let QA=tA.visit(IA.expression);if(sA){const oA=id$1(iA.scope.generate("class_directive"));iA.init.push(const_builder(oA,create_derived(iA,thunk(QA)))),QA=call("$.get",oA)}const CA=stmt(call("$.toggle_class",AA,literal(IA.name),QA));!gA&&sA?iA.init.push(build_update(CA)):gA||BA||sA?iA.update.push(CA):iA.init.push(CA)}}function build_attribute_value(eA,AA){if(eA===!0)return{has_state:!1,has_call:!1,value:literal(!0)};if(!Array.isArray(eA)||eA.length===1){const tA=Array.isArray(eA)?eA[0]:eA;return tA.type==="Text"?{has_state:!1,has_call:!1,value:literal(tA.data)}:{has_state:tA.metadata.expression.has_state,has_call:tA.metadata.expression.has_call,value:AA.visit(tA.expression)}}return build_template_literal(eA,AA.visit,AA.state)}function get_attribute_name(eA,AA){return!eA.metadata.svg&&!eA.metadata.mathml?normalize_attribute(AA.name):AA.name}function BindDirective(eA,AA){var QA;const tA=eA.expression,gA=binding_properties[eA.name],iA=AA.path.at(-1);dev&&AA.state.analysis.runes&&tA.type==="MemberExpression"&&(eA.name!=="this"||AA.path.some(({type:CA})=>CA==="IfBlock"||CA==="EachBlock"||CA==="AwaitBlock"||CA==="KeyBlock"))&&!is_ignored(eA,"binding_property_non_reactive")&&validate_binding(AA.state,eA,AA.visit(tA));const IA=thunk(AA.visit(tA));let BA=unthunk(arrow([id$1("$$value")],AA.visit(assignment("=",tA,id$1("$$value")))));IA===BA&&(BA=void 0);let sA;if(gA!=null&&gA.event)sA=call("$.bind_property",literal(eA.name),literal(gA.event),AA.state.node,BA??IA,gA.bidirectional&&IA);else switch(eA.name){case"online":sA=call("$.bind_online",BA??IA);break;case"scrollX":case"scrollY":sA=call("$.bind_window_scroll",literal(eA.name==="scrollX"?"x":"y"),IA,BA);break;case"innerWidth":case"innerHeight":case"outerWidth":case"outerHeight":sA=call("$.bind_window_size",literal(eA.name),BA??IA);break;case"activeElement":sA=call("$.bind_active_element",BA??IA);break;case"muted":sA=call("$.bind_muted",AA.state.node,IA,BA);break;case"paused":sA=call("$.bind_paused",AA.state.node,IA,BA);break;case"volume":sA=call("$.bind_volume",AA.state.node,IA,BA);break;case"playbackRate":sA=call("$.bind_playback_rate",AA.state.node,IA,BA);break;case"currentTime":sA=call("$.bind_current_time",AA.state.node,IA,BA);break;case"buffered":sA=call("$.bind_buffered",AA.state.node,BA??IA);break;case"played":sA=call("$.bind_played",AA.state.node,BA??IA);break;case"seekable":sA=call("$.bind_seekable",AA.state.node,BA??IA);break;case"seeking":sA=call("$.bind_seeking",AA.state.node,BA??IA);break;case"ended":sA=call("$.bind_ended",AA.state.node,BA??IA);break;case"readyState":sA=call("$.bind_ready_state",AA.state.node,BA??IA);break;case"contentRect":case"contentBoxSize":case"borderBoxSize":case"devicePixelContentBoxSize":sA=call("$.bind_resize_observer",AA.state.node,literal(eA.name),BA??IA);break;case"clientWidth":case"clientHeight":case"offsetWidth":case"offsetHeight":sA=call("$.bind_element_size",AA.state.node,literal(eA.name),BA??IA);break;case"value":{(iA==null?void 0:iA.type)==="RegularElement"&&iA.name==="select"?sA=call("$.bind_select_value",AA.state.node,IA,BA):sA=call("$.bind_value",AA.state.node,IA,BA);break}case"files":sA=call("$.bind_files",AA.state.node,IA,BA);break;case"this":sA=build_bind_this(tA,AA.state.node,AA);break;case"textContent":case"innerHTML":case"innerText":sA=call("$.bind_content_editable",literal(eA.name),AA.state.node,IA,BA);break;case"checked":sA=call("$.bind_checked",AA.state.node,IA,BA);break;case"focused":sA=call("$.bind_focused",AA.state.node,BA??IA);break;case"group":{const CA=eA.metadata.parent_each_blocks.map(EA=>EA.metadata.keyed&&EA.index?call("$.get",EA.metadata.index):EA.metadata.index);let oA=IA;if((iA==null?void 0:iA.type)==="RegularElement"){const EA=(QA=iA.attributes.find(nA=>nA.type==="Attribute"&&nA.name==="value"&&!is_text_attribute(nA)&&nA.value!==!0))==null?void 0:QA.value;EA!==void 0&&(oA=thunk(block([stmt(build_attribute_value(EA,AA).value),return_builder(AA.visit(tA))])))}sA=call("$.bind_group",eA.metadata.binding_group_name,array(CA),AA.state.node,oA,BA??IA);break}default:throw new Error("unknown binding "+eA.name)}if(eA.name==="this")AA.state.init.push(stmt(sA));else{const CA=iA.type==="RegularElement"&&iA.attributes.find(oA=>oA.type==="UseDirective");AA.state.after_update.push(stmt(CA?call("$.effect",thunk(sA)):sA))}}function BlockStatement(eA,AA){add_state_transformers(AA),AA.next()}function BreakStatement(eA,AA){if(AA.state.analysis.runes||!eA.label||eA.label.name!=="$")return;if(AA.path[1].type==="LabeledStatement"&&AA.path[1].label.name==="$")return return_builder()}function CallExpression(eA,AA){switch(get_rune(eA,AA.state.scope)){case"$host":return id$1("$$props.$$host");case"$effect.tracking":return call("$.effect_tracking");case"$state.snapshot":return call("$.snapshot",AA.visit(eA.arguments[0]),is_ignored(eA,"state_snapshot_uncloneable")&&true_instance);case"$effect.root":return call("$.effect_root",...eA.arguments.map(tA=>AA.visit(tA)));case"$inspect":case"$inspect().with":return transform_inspect_rune(eA,AA)}if(dev&&eA.callee.type==="MemberExpression"&&eA.callee.object.type==="Identifier"&&eA.callee.object.name==="console"&&AA.state.scope.get("console")===null&&eA.callee.property.type==="Identifier"&&["debug","dir","error","group","groupCollapsed","info","log","trace","warn"].includes(eA.callee.property.name))return call(eA.callee,spread(call("$.log_if_contains_state",literal(eA.callee.property.name),...eA.arguments.map(tA=>AA.visit(tA)))));AA.next()}function ClassBody(eA,AA){var sA,QA;if(!AA.state.analysis.runes){AA.next();return}const tA=new Map,gA=new Map,iA=[];for(const CA of eA.body)if(CA.type==="PropertyDefinition"&&(CA.key.type==="Identifier"||CA.key.type==="PrivateIdentifier"||CA.key.type==="Literal")){const oA=CA.key.type,EA=get_name(CA.key);if(!EA)continue;const nA=oA==="PrivateIdentifier";if(nA&&iA.push(EA),((sA=CA.value)==null?void 0:sA.type)==="CallExpression"){const cA=get_rune(CA.value,AA.state.scope);if(cA==="$state"||cA==="$state.raw"||cA==="$derived"||cA==="$derived.by"){const uA={kind:cA==="$state"?"state":cA==="$state.raw"?"raw_state":cA==="$derived.by"?"derived_by":"derived",id:nA?CA.key:null};nA?gA.set(EA,uA):tA.set(EA,uA)}}}for(const[CA,oA]of tA){let EA=CA;for(;iA.includes(EA);)EA="_"+EA;iA.push(EA),oA.id=private_id(EA)}const IA=[],BA={...AA.state,public_state:tA,private_state:gA};for(const CA of eA.body){if(CA.type==="PropertyDefinition"&&(CA.key.type==="Identifier"||CA.key.type==="PrivateIdentifier"||CA.key.type==="Literal")){const oA=get_name(CA.key);if(!oA)continue;const EA=CA.key.type==="PrivateIdentifier",nA=(EA?gA:tA).get(oA);if(((QA=CA.value)==null?void 0:QA.type)==="CallExpression"&&nA!==void 0){let cA=null;if(CA.value.arguments.length>0){const uA=AA.visit(CA.value.arguments[0],BA);cA=nA.kind==="state"?call("$.state",should_proxy(uA,AA.state.scope)?call("$.proxy",uA):uA):nA.kind==="raw_state"?call("$.state",uA):nA.kind==="derived_by"?call("$.derived",uA):call("$.derived",thunk(uA))}else cA=call("$.state");if(EA)IA.push(prop_def(nA.id,cA));else{const uA=member(this_instance,nA.id);if(IA.push(prop_def(nA.id,cA)),IA.push(method("get",CA.key,[],[return_builder(call("$.get",uA))])),nA.kind==="state"){const lA=id$1("value"),hA=member(this_instance,nA.id);IA.push(method("set",CA.key,[lA],[stmt(call("$.set",uA,build_proxy_reassignment(lA,hA)))]))}if(nA.kind==="raw_state"){const lA=id$1("value");IA.push(method("set",CA.key,[lA],[stmt(call("$.set",uA,lA))]))}dev&&(nA.kind==="derived"||nA.kind==="derived_by")&&IA.push(method("set",CA.key,[id$1("_")],[throw_error$1(`Cannot update a derived property ('${oA}')`)]))}continue}}IA.push(AA.visit(CA,BA))}return dev&&tA.size>0&&IA.push(method("method",id$1("$.ADD_OWNER"),[id$1("owner")],Array.from(tA.keys()).map(CA=>stmt(call("$.add_owner",call("$.get",member(this_instance,private_id(CA))),id$1("owner"),literal(!1),is_ignored(eA,"ownership_invalid_binding")&&true_instance))),!0)),{...eA,body:IA}}function get_name(eA){var AA;return eA.type==="Literal"?(AA=eA.value)==null?void 0:AA.toString().replace(regex_invalid_identifier_chars,"_"):eA.name}function Comment(eA,AA){AA.state.template.push(`<!--${eA.data}-->`)}function build_component(eA,AA,tA,gA=tA.state.node){var RA,GA;const iA=[],IA=[],BA={default:{...tA.state,scope:eA.metadata.scopes.default,transform:{...tA.state.transform}}},sA={},QA={},CA=[];let oA=null;const EA=[];let nA=!!determine_slot(eA),cA=!1;function uA(yA){const LA=iA.at(-1),KA=Array.isArray(LA),bA=KA?LA:[];bA.push(yA),KA||iA.push(bA)}if(nA)for(const yA of eA.attributes)yA.type==="LetDirective"&&IA.push(tA.visit(yA));for(const yA of eA.attributes)if(yA.type==="LetDirective")nA||IA.push(tA.visit(yA,BA.default));else if(yA.type==="OnDirective"){yA.expression||(tA.state.analysis.needs_props=!0);let LA=build_event_handler(yA.expression,yA.metadata.expression,tA);yA.modifiers.includes("once")&&(LA=call("$.once",LA)),(QA[RA=yA.name]||(QA[RA]=[])).push(LA)}else if(yA.type==="SpreadAttribute"){const LA=tA.visit(yA);if(yA.metadata.expression.has_state){let KA=LA;if(yA.metadata.expression.has_call){const bA=id$1(tA.state.scope.generate("spread_element"));tA.state.init.push(var_builder(bA,call("$.derived",thunk(KA)))),KA=call("$.get",bA)}iA.push(thunk(KA))}else iA.push(LA)}else if(yA.type==="Attribute"){if(yA.name.startsWith("--")){CA.push(init(yA.name,build_attribute_value(yA.value,tA).value));continue}yA.name==="slot"&&(nA=!0),yA.name==="children"&&(cA=!0);const{value:LA}=build_attribute_value(yA.value,tA);if(yA.metadata.expression.has_state){let KA=LA;if(get_attribute_chunks(yA.value).some(SA=>SA.type==="ExpressionTag"&&SA.expression.type!=="Identifier"&&SA.expression.type!=="MemberExpression")){const SA=id$1(tA.state.scope.generate(yA.name));tA.state.init.push(var_builder(SA,create_derived(tA.state,thunk(LA)))),KA=call("$.get",SA)}uA(get(yA.name,[return_builder(KA)]))}else uA(init(yA.name,LA))}else if(yA.type==="BindDirective"){const LA=tA.visit(yA.expression);if(dev&&LA.type==="MemberExpression"&&tA.state.analysis.runes&&!is_ignored(eA,"binding_property_non_reactive")&&validate_binding(tA.state,yA,LA),yA.name==="this")oA=yA.expression;else{dev&&EA.push(stmt(call(id$1("$.add_owner_effect"),thunk(LA),id$1(AA),is_ignored(eA,"ownership_invalid_binding")&&true_instance)));const KA=yA.expression.type==="Identifier"&&((GA=tA.state.scope.get(yA.expression.name))==null?void 0:GA.kind)==="store_sub";uA(KA?get(yA.name,[stmt(call("$.mark_store_binding")),return_builder(LA)]):get(yA.name,[return_builder(LA)]));const bA=assignment("=",yA.expression,id$1("$$value"));uA(set(yA.name,[stmt(tA.visit(bA))]))}}if(nA&&tA.state.init.push(...IA),Object.keys(QA).length>0){const yA=object$2(Object.keys(QA).map(LA=>init(LA,QA[LA].length>1?array(QA[LA]):QA[LA][0])));uA(init("$$events",yA))}const lA=[],hA=[];for(const yA of eA.fragment.nodes){if(yA.type==="SnippetBlock"){tA.visit(yA,{...tA.state,init:lA}),uA(prop("init",yA.expression,yA.expression)),hA.push(init(yA.expression.name==="children"?"default":yA.expression.name,true_instance));continue}let LA=determine_slot(yA)??"default";(sA[LA]||(sA[LA]=[])).push(yA)}for(const yA of Object.keys(sA)){const LA=tA.visit({...eA.fragment,nodes:sA[yA]},yA==="default"?nA?tA.state:BA.default:{...tA.state,scope:eA.metadata.scopes[yA],transform:{...tA.state.transform}});if(LA.body.length===0)continue;const KA=arrow([id$1("$$anchor"),id$1("$$slotProps")],block([...yA==="default"&&!nA?IA:[],...LA.body]));yA==="default"&&!cA?IA.length===0&&sA.default.every(bA=>bA.type!=="SvelteFragment"||!bA.attributes.some(SA=>SA.type==="LetDirective"))?(uA(init("children",dev?call("$.wrap_snippet",id$1(tA.state.analysis.name),KA):KA)),hA.push(init(yA,true_instance))):(hA.push(init(yA,KA)),uA(init("children",id$1("$.invalid_default_snippet")))):hA.push(init(yA,KA))}hA.length>0&&uA(init("$$slots",object$2(hA))),!tA.state.analysis.runes&&eA.attributes.some(yA=>yA.type==="BindDirective")&&uA(init("$$legacy",true_instance));const dA=iA.length===0||iA.length===1&&Array.isArray(iA[0])?object$2(iA[0]||[]):call("$.spread_props",...iA.map(yA=>Array.isArray(yA)?object$2(yA):yA));let DA=yA=>call(eA.type==="SvelteComponent"?AA:tA.visit(member_id(AA)),yA,dA);if(oA!==null){const yA=DA;DA=LA=>build_bind_this(oA,yA(LA),tA)}const wA=[...lA];if(eA.type==="SvelteComponent"){const yA=DA;DA=LA=>call("$.component",LA,thunk(tA.visit(eA.expression)),arrow([id$1("$$anchor"),id$1(AA)],block([...EA,stmt(yA(id$1("$$anchor")))])))}else wA.push(...EA);return Object.keys(CA).length>0?(tA.state.template.push(tA.state.metadata.namespace==="svg"?"<g><!></g>":'<svelte-css-wrapper style="display: contents"><!></svelte-css-wrapper>'),wA.push(stmt(call("$.css_props",gA,thunk(object$2(CA)))),stmt(DA(member(gA,"lastChild"))),stmt(call("$.reset",gA)))):(tA.state.template.push("<!>"),wA.push(stmt(DA(gA)))),wA.length>1?block(wA):wA[0]}function Component(eA,AA){if(eA.metadata.dynamic){const gA=build_component(eA,"$$component",AA,id$1("$$anchor"));AA.state.init.push(stmt(call("$.component",AA.state.node,thunk(AA.visit(member_id(eA.name))),arrow([id$1("$$anchor"),id$1("$$component")],block([gA])))));return}const tA=build_component(eA,eA.name,AA);AA.state.init.push(tA)}function ConstTag(eA,AA){const tA=eA.declaration.declarations[0];if(tA.id.type==="Identifier")AA.state.init.push(const_builder(tA.id,create_derived(AA.state,thunk(AA.visit(tA.init))))),AA.state.transform[tA.id.name]={read:get_value},dev&&AA.state.init.push(stmt(call("$.get",tA.id)));else{const gA=extract_identifiers(tA.id),iA=id$1(AA.state.scope.generate("computed_const")),IA={...AA.state.transform};for(const QA of gA)delete IA[QA.name];const BA={...AA.state,transform:IA},sA=arrow([],block([const_builder(AA.visit(tA.id,BA),AA.visit(tA.init,BA)),return_builder(object$2(gA.map(QA=>prop("init",QA,QA))))]));AA.state.init.push(const_builder(iA,create_derived(AA.state,sA))),dev&&AA.state.init.push(stmt(call("$.get",iA)));for(const QA of gA)AA.state.transform[QA.name]={read:CA=>member(call("$.get",iA),CA)}}}function DebugTag(eA,AA){const tA=object$2(eA.identifiers.map(iA=>{const IA=call("$.snapshot",AA.visit(iA));return prop("init",iA,AA.state.analysis.runes?IA:call("$.untrack",thunk(IA)))})),gA=call("console.log",tA);AA.state.init.push(stmt(call("$.template_effect",thunk(block([stmt(gA),debugger_builder])))))}function EachBlock(eA,AA){var yA,LA;const tA=eA.metadata,gA=AA.visit(eA.expression,{...AA.state,scope:AA.state.scope.parent});tA.is_controlled||AA.state.template.push("<!>"),tA.array_name!==null&&AA.state.init.push(const_builder(tA.array_name,thunk(gA)));let iA=0;eA.metadata.keyed&&eA.index&&(iA|=EACH_INDEX_REACTIVE);const IA=((yA=eA.key)==null?void 0:yA.type)==="Identifier"&&eA.context.type==="Identifier"&&eA.context.name===eA.key.name;let BA;for(const KA of eA.metadata.expression.dependencies)if(KA.kind==="store_sub"){BA=!0;break}for(const KA of eA.metadata.expression.dependencies)if(!(KA.scope.function_depth>=AA.state.scope.function_depth)&&(!AA.state.analysis.runes||!IA||BA)){iA|=EACH_ITEM_REACTIVE;break}AA.state.analysis.runes&&!BA&&(iA|=EACH_ITEM_IMMUTABLE),eA.key&&eA.body.nodes.some(KA=>KA.type!=="RegularElement"&&KA.type!=="SvelteElement"?!1:KA.attributes.some(bA=>bA.type==="AnimateDirective"))&&(iA|=EACH_IS_ANIMATED),tA.is_controlled&&(iA|=EACH_IS_CONTROLLED);let sA="";if(eA.expression.type==="Identifier"||eA.expression.type==="MemberExpression"){const KA=object$1(eA.expression);if(KA){const bA=AA.state.scope.get(KA.name);(bA==null?void 0:bA.kind)==="store_sub"&&(sA=KA.name)}}const QA=collect_parent_each_blocks(AA).flatMap(KA=>{const bA=AA.visit(KA.expression),SA=build_transitive_dependencies(KA.metadata.expression.dependencies,AA);return[bA,...SA]});if(tA.array_name)QA.push(call(tA.array_name));else{QA.push(gA);const KA=build_transitive_dependencies(tA.expression.dependencies,AA);QA.push(...KA)}const CA={...AA.state,transform:{...AA.state.transform}},oA={...AA.state,transform:{...AA.state.transform}},EA=tA.contains_group_binding||!eA.index?tA.index:id$1(eA.index),nA=eA.context.type==="Identifier"?eA.context:id$1("$$item");let cA=tA.contains_group_binding,uA=!1;eA.index&&(CA.transform[eA.index]={read:KA=>(cA=!0,iA&EACH_INDEX_REACTIVE?get_value(KA):KA)},oA.transform[eA.index]={read:KA=>(uA=!0,KA)});const lA=[],hA=call("$.invalidate_inner_signals",thunk(sequence$1(QA))),dA=sA?call("$.invalidate_store",id$1("$$stores"),literal(sA)):void 0,DA=[];if(AA.state.analysis.runes||DA.push(hA),dA&&DA.push(dA),eA.context.type==="Identifier"){const KA=AA.state.scope.get(eA.context.name);CA.transform[eA.context.name]={read:bA=>KA.reassigned?member(tA.array_name?call(tA.array_name):gA,EA,!0):iA&EACH_ITEM_REACTIVE?get_value(bA):bA,assign:(bA,SA)=>{cA=!0;const MA=member(tA.array_name?call(tA.array_name):gA,EA,!0);return sequence$1([assignment("=",MA,SA),...DA])},mutate:(bA,SA)=>sequence$1([SA,...DA])},delete oA.transform[eA.context.name]}else{const KA=iA&EACH_ITEM_REACTIVE?call("$.get",nA):nA;for(const bA of extract_paths(eA.context)){const SA=bA.node.name,MA=bA.has_default_value,NA=thunk(AA.visit((LA=bA.expression)==null?void 0:LA.call(bA,KA),CA));lA.push(let_builder(bA.node,MA?call("$.derived_safe_equal",NA):NA));const FA=MA?get_value:call;CA.transform[SA]={read:FA,assign:(qA,UA)=>{const mA=bA.update_expression(KA);return sequence$1([assignment("=",mA,UA),...DA])},mutate:(qA,UA)=>sequence$1([UA,...DA])},dev&&lA.push(stmt(FA(id$1(SA)))),delete oA.transform[SA]}}const wA=AA.visit(eA.body,CA);let RA=id$1("$.index");if(eA.metadata.keyed){const KA=AA.visit(eA.key,oA);RA=arrow(uA?[eA.context,EA]:[eA.context],KA)}eA.index&&tA.contains_group_binding&&lA.push(let_builder(eA.index,EA)),dev&&eA.metadata.keyed&&AA.state.init.push(stmt(call("$.validate_each_keys",thunk(gA),RA)));const GA=[AA.state.node,literal(iA),tA.array_name?tA.array_name:thunk(gA),RA,arrow(cA?[id$1("$$anchor"),nA,EA]:[id$1("$$anchor"),nA],block(lA.concat(wA.body)))];eA.fallback&&GA.push(arrow([id$1("$$anchor")],AA.visit(eA.fallback))),AA.state.init.push(stmt(call("$.each",...GA)))}function collect_parent_each_blocks(eA){return eA.path.filter(AA=>AA.type==="EachBlock")}function build_transitive_dependencies(eA,AA){const tA=new Set;for(const gA of eA){const iA=collect_transitive_dependencies(gA);for(const IA of iA)tA.add(IA)}return[...tA].map(gA=>build_getter$1({...gA.node},AA.state))}function collect_transitive_dependencies(eA,AA=new Set){if(eA.kind!=="legacy_reactive")return[];for(const tA of eA.legacy_dependencies)if(!AA.has(tA)){AA.add(tA);for(const gA of collect_transitive_dependencies(tA,AA))AA.add(gA)}return[...AA]}function ExportNamedDeclaration(eA,AA){return AA.state.is_instance?eA.declaration?AA.visit(eA.declaration):empty:AA.next()}function ExpressionStatement(eA,AA){if(eA.expression.type==="CallExpression"){const tA=get_rune(eA.expression,AA.state.scope);if(tA==="$effect"||tA==="$effect.pre"){const gA=tA==="$effect"?"$.user_effect":"$.user_pre_effect",iA=AA.visit(eA.expression.arguments[0]),IA=call(gA,iA);return IA.callee.loc=eA.expression.callee.loc,stmt(IA)}}AA.next()}function process_children(eA,AA,tA,{visit:gA,state:iA}){const IA=iA.metadata.bound_contenteditable;let BA=AA,sA=0,QA=[];function CA(nA){return sA===0?BA(nA):call("$.sibling",BA(!1),(nA||sA!==1)&&literal(sA),nA&&true_instance)}function oA(nA,cA){const uA=CA(nA);let lA=uA;return lA.type!=="Identifier"&&(lA=id$1(iA.scope.generate(cA)),iA.init.push(var_builder(lA,uA))),BA=()=>lA,sA=1,lA}function EA(nA){if(nA.every(wA=>wA.type==="Text")){sA+=1,iA.template.push(nA.map(wA=>wA.raw).join(""));return}iA.template.push(" ");const{has_state:cA,has_call:uA,value:lA}=build_template_literal(nA,gA,iA),hA=nA.length===1,dA=oA(hA,"text"),DA=stmt(call("$.set_text",dA,lA));uA&&!IA?iA.init.push(build_update(DA)):cA&&!IA?iA.update.push(DA):iA.init.push(stmt(assignment("=",member(dA,"nodeValue"),lA)))}for(const nA of eA)if(nA.type==="Text"||nA.type==="ExpressionTag")QA.push(nA);else{QA.length>0&&(EA(QA),QA=[]);let cA=iA;if(is_static_element(nA))sA+=1;else if(nA.type==="EachBlock"&&eA.length===1&&tA)nA.metadata.is_controlled=!0;else{const uA=oA(!1,nA.type==="RegularElement"?nA.name:"node");cA={...iA,node:uA}}gA(nA,cA)}QA.length>0&&EA(QA),sA>1&&(sA-=1,iA.init.push(stmt(call("$.next",sA!==1&&literal(sA)))))}function is_static_element(eA){if(eA.type!=="RegularElement"||eA.fragment.metadata.dynamic)return!1;for(const AA of eA.attributes)if(AA.type!=="Attribute"||is_event_attribute(AA)||AA.value!==!0&&!is_text_attribute(AA)||AA.name==="autofocus"||AA.name==="muted"||eA.name==="option"&&AA.name==="value"||eA.name.includes("-"))return!1;return!0}function Fragment(eA,AA){const tA=AA.path.at(-1)??eA,gA=infer_namespace(AA.state.metadata.namespace,tA,eA.nodes),{hoisted:iA,trimmed:IA,is_standalone:BA,is_text_first:sA}=clean_nodes(tA,eA.nodes,AA.path,gA,AA.state,AA.state.preserve_whitespace,AA.state.options.preserveComments);if(iA.length===0&&IA.length===0)return block([]);const QA=IA.length===1&&IA[0].type==="RegularElement",CA=IA.length===1&&(IA[0].type==="SvelteFragment"||IA[0].type==="TitleElement"),oA=AA.state.scope.root.unique("root"),EA=[];let nA;const cA={...AA.state,before_init:[],init:[],update:[],after_update:[],template:[],locations:[],transform:{...AA.state.transform},metadata:{context:{template_needs_import_node:!1,template_contains_script_tag:!1},namespace:gA,bound_contenteditable:AA.state.metadata.bound_contenteditable}};for(const lA of iA)AA.visit(lA,cA);sA&&EA.push(stmt(call("$.next")));const uA=(lA,hA)=>{let dA=call(get_template_function(gA,cA),...hA);dev&&(dA=call("$.add_locations",dA,member(id$1(AA.state.analysis.name),"$.FILENAME",!0),build_locations(cA.locations))),AA.state.hoisted.push(var_builder(lA,dA))};if(QA){const lA=IA[0],hA=id$1(AA.state.scope.generate(lA.name));AA.visit(lA,{...cA,node:hA});const dA=[join_template(cA.template)];cA.metadata.context.template_needs_import_node&&dA.push(literal(TEMPLATE_USE_IMPORT_NODE)),uA(oA,dA),EA.push(var_builder(hA,call(oA)),...cA.before_init,...cA.init),nA=stmt(call("$.append",id$1("$$anchor"),hA))}else if(CA)AA.visit(IA[0],cA),EA.push(...cA.before_init,...cA.init);else if(IA.length===1&&IA[0].type==="Text"){const lA=id$1(AA.state.scope.generate("text"));EA.push(var_builder(lA,call("$.text",literal(IA[0].data))),...cA.before_init,...cA.init),nA=stmt(call("$.append",id$1("$$anchor"),lA))}else if(IA.length>0){const lA=id$1(AA.state.scope.generate("fragment"));if(IA.some(dA=>dA.type==="ExpressionTag")&&IA.every(dA=>dA.type==="Text"||dA.type==="ExpressionTag")){const dA=id$1(AA.state.scope.generate("text"));process_children(IA,()=>dA,!1,{...AA,state:cA}),EA.push(var_builder(dA,call("$.text")),...cA.before_init,...cA.init),nA=stmt(call("$.append",id$1("$$anchor"),dA))}else{if(BA)process_children(IA,()=>id$1("$$anchor"),!1,{...AA,state:cA});else{process_children(IA,wA=>call("$.first_child",lA,wA&&true_instance),!1,{...AA,state:cA});let DA=TEMPLATE_FRAGMENT;cA.metadata.context.template_needs_import_node&&(DA|=TEMPLATE_USE_IMPORT_NODE),cA.template.length===1&&cA.template[0]==="<!>"?EA.push(var_builder(lA,call("$.comment"))):(uA(oA,[join_template(cA.template),literal(DA)]),EA.push(var_builder(lA,call(oA)))),nA=stmt(call("$.append",id$1("$$anchor"),lA))}EA.push(...cA.before_init,...cA.init)}}else EA.push(...cA.before_init,...cA.init);return cA.update.length>0&&EA.push(build_render_statement(cA.update)),EA.push(...cA.after_update),nA!==void 0&&EA.push(nA),block(EA)}function join_template(eA){let AA=quasi("");const tA=template([AA],[]);for(const gA of eA)typeof gA=="string"?AA.value.cooked+=gA:(tA.expressions.push(gA),tA.quasis.push(AA=quasi("")));for(const gA of tA.quasis)gA.value.raw=sanitize_template_string(gA.value.cooked);return AA.tail=!0,tA}function get_template_function(eA,AA){const tA=AA.metadata.context.template_contains_script_tag;return eA==="svg"?tA?"$.svg_template_with_script":"$.ns_template":eA==="mathml"?"$.mathml_template":tA?"$.template_with_script":"$.template"}function build_locations(eA){return array(eA.map(AA=>{const tA=array([literal(AA[0]),literal(AA[1])]);return AA.length===3&&tA.elements.push(build_locations(AA[2])),tA}))}function FunctionDeclaration(eA,AA){var gA;const tA={...AA.state,in_constructor:!1};if(((gA=eA.metadata)==null?void 0:gA.hoisted)===!0){const iA=build_hoisted_params(eA,AA),IA=AA.visit(eA.body,tA);return AA.state.hoisted.push({...eA,params:iA,body:IA}),empty}AA.next(tA)}function FunctionExpression(eA,AA){return visit_function(eA,AA)}function HtmlTag(eA,AA){AA.state.template.push("<!>"),AA.state.init.push(stmt(call("$.html",AA.state.node,thunk(AA.visit(eA.expression)),literal(AA.state.metadata.namespace==="svg"),literal(AA.state.metadata.namespace==="mathml"),is_ignored(eA,"hydration_html_changed")&&true_instance)))}function Identifier(eA,AA){const tA=AA.path.at(-1);if(is_reference(eA,tA)){if(eA.name==="$$props")return id$1("$$sanitized_props");const gA=AA.state.scope.get(eA.name);if(AA.state.analysis.runes&&gA!==null&&eA!==gA.node&&gA.kind==="rest_prop"){const iA=AA.path.at(-2);if((tA==null?void 0:tA.type)==="MemberExpression"&&!tA.computed&&(iA==null?void 0:iA.type)!=="AssignmentExpression"&&(iA==null?void 0:iA.type)!=="UpdateExpression")return id$1("$$props")}return build_getter$1(eA,AA.state)}}function IfBlock(eA,AA){AA.state.template.push("<!>");const tA=AA.visit(eA.consequent),gA=[AA.state.node,thunk(AA.visit(eA.test)),arrow([id$1("$$anchor")],tA)];(eA.alternate||eA.elseif)&&gA.push(eA.alternate?arrow([id$1("$$anchor")],AA.visit(eA.alternate)):literal(null)),eA.elseif&&gA.push(literal(!0)),AA.state.init.push(stmt(call("$.if",...gA)))}function ImportDeclaration(eA,AA){if("hoisted"in AA.state)return AA.state.hoisted.push(eA),empty;AA.next()}function KeyBlock(eA,AA){AA.state.template.push("<!>");const tA=AA.visit(eA.expression),gA=AA.visit(eA.fragment);AA.state.init.push(stmt(call("$.key",AA.state.node,thunk(tA),arrow([id$1("$$anchor")],gA))))}function LabeledStatement(eA,AA){if(AA.state.analysis.runes||AA.path.length>1||eA.label.name!=="$"){AA.next();return}const tA=AA.state.analysis.reactive_statements.get(eA);if(!tA)return;let gA=AA.visit(eA.body);gA.type!=="BlockStatement"&&(gA=block([gA]));const iA=gA.body,IA=[];for(const BA of tA.dependencies){if(BA.kind==="normal"&&BA.declaration_kind!=="import")continue;const sA=BA.node.name;let QA=build_getter$1(id$1(sA),AA.state);(sA==="$$props"||sA==="$$restProps"||BA.kind==="bindable_prop")&&(QA=call("$.deep_read_state",QA)),IA.push(QA)}return AA.state.legacy_reactive_statements.set(eA,stmt(call("$.legacy_pre_effect",IA.length>0?thunk(sequence$1(IA)):thunk(block([])),thunk(block(iA))))),empty}function LetDirective(eA,AA){if(eA.expression&&eA.expression.type!=="Identifier"){const tA=AA.state.scope.generate(eA.name),gA=AA.state.scope.get_bindings(eA);for(const iA of gA)AA.state.transform[iA.node.name]={read:IA=>member(call("$.get",id$1(tA)),IA)};return const_builder(tA,call("$.derived",thunk(block([let_builder(eA.expression.type==="ObjectExpression"?object_pattern(eA.expression.properties):array_pattern(eA.expression.elements),member(id$1("$$slotProps"),eA.name)),return_builder(object$2(gA.map(iA=>init(iA.node.name,iA.node))))]))))}else{const tA=eA.expression===null?eA.name:eA.expression.name;return AA.state.transform[tA]={read:gA=>call("$.get",gA)},const_builder(tA,create_derived(AA.state,thunk(member(id$1("$$slotProps"),eA.name))))}}function MemberExpression(eA,AA){if(eA.property.type==="PrivateIdentifier"&&AA.state.private_state.get(eA.property.name))return AA.state.in_constructor?member(eA,"v"):call("$.get",eA);AA.next()}const modifiers=["stopPropagation","stopImmediatePropagation","preventDefault","self","trusted","once"];function OnDirective(eA,AA){eA.expression||(AA.state.analysis.needs_props=!0);let tA=build_event_handler(eA.expression,eA.metadata.expression,AA);for(const IA of modifiers)eA.modifiers.includes(IA)&&(tA=call("$."+IA,tA));const gA=eA.modifiers.includes("capture"),iA=eA.modifiers.includes("passive")||(eA.modifiers.includes("nonpassive")?!1:void 0);return build_event(eA.name,AA.state.node,tA,gA,iA)}function Program(eA,AA){if(!AA.state.analysis.runes){AA.state.transform.$$props={read:tA=>({...tA,name:"$$sanitized_props"})};for(const[tA,gA]of AA.state.scope.declarations)if(gA.declaration_kind==="import"&&gA.mutated){const{start:iA,end:IA}=AA.state.analysis.instance.ast,BA=gA.initial;if(BA.start>iA&&BA.end<IA){const QA=id$1("$$_import_"+tA);AA.state.transform[tA]={read:CA=>call(QA),mutate:(CA,oA)=>call(QA,oA)},AA.state.legacy_reactive_imports.push(var_builder(QA,call("$.reactive_import",thunk(id$1(tA)))))}}}for(const[tA,gA]of AA.state.scope.declarations){if(gA.kind==="store_sub"){let iA;const IA=()=>iA??(iA=AA.visit(id$1(tA.slice(1))));AA.state.transform[tA]={read:call,assign:(BA,sA)=>call("$.store_set",IA(),sA),mutate:(BA,sA)=>{const QA=call("$.untrack",BA);function CA(oA){return oA.type==="MemberExpression"?{...oA,object:CA(oA.object),property:oA.property}:QA}return call("$.store_mutate",IA(),assignment(sA.operator,CA(sA.left),sA.right),QA)},update:BA=>call(BA.prefix?"$.update_pre_store":"$.update_store",build_getter$1(id$1(tA.slice(1)),AA.state),call(BA.argument),BA.operator==="--"&&literal(-1))}}if(gA.kind==="prop"||gA.kind==="bindable_prop")if(is_prop_source(gA,AA.state))AA.state.transform[tA]={read:call,assign:(iA,IA)=>call(iA,IA),mutate:(iA,IA)=>gA.kind==="bindable_prop"?call(iA,IA,true_instance):IA,update:iA=>call(iA.prefix?"$.update_pre_prop":"$.update_prop",iA.argument,iA.operator==="--"&&literal(-1))};else if(gA.prop_alias){const iA=key$2(gA.prop_alias);AA.state.transform[tA]={read:IA=>member(id$1("$$props"),iA,iA.type==="Literal")}}else AA.state.transform[tA]={read:iA=>member(id$1("$$props"),iA)}}add_state_transformers(AA),AA.next()}function RegularElement(eA,AA){let tA=[-1,-1];if(dev){const yA=locator(eA.start);yA&&(tA[0]=yA.line,tA[1]=yA.column,AA.state.locations.push(tA))}if(eA.name==="noscript"){AA.state.template.push("<noscript></noscript>");return}const gA=is_custom_element_node(eA);gA&&(AA.state.metadata.context.template_needs_import_node=!0),eA.name==="script"&&(AA.state.metadata.context.template_contains_script_tag=!0),AA.state.template.push(`<${eA.name}`);const iA=[],IA=[],BA=[],sA=[],QA=[],CA=new Map,oA=new Map;let EA=eA.metadata.has_spread,nA=!1;for(const yA of eA.attributes)switch(yA.type){case"AnimateDirective":sA.push(yA);break;case"Attribute":if(yA.name==="is"&&AA.state.metadata.namespace==="html"){const{value:LA}=build_attribute_value(yA.value,AA);if(LA.type==="Literal"&&typeof LA.value=="string"){AA.state.template.push(` is="${escape_html(LA.value,!0)}"`);continue}}iA.push(yA),CA.set(yA.name,yA);break;case"BindDirective":oA.set(yA.name,yA),sA.push(yA);break;case"ClassDirective":IA.push(yA);break;case"LetDirective":QA.push(AA.visit(yA));break;case"OnDirective":sA.push(yA);break;case"SpreadAttribute":iA.push(yA);break;case"StyleDirective":BA.push(yA);break;case"TransitionDirective":sA.push(yA);break;case"UseDirective":nA=!0,sA.push(yA);break}const cA={...AA.state,after_update:[]};for(const yA of sA)if(yA.type==="OnDirective"){const LA=AA.visit(yA);cA.after_update.push(stmt(nA?call("$.effect",thunk(LA)):LA))}else AA.visit(yA,cA);if(eA.name==="input"&&(EA||oA.has("value")||oA.has("checked")||oA.has("group")||iA.some(yA=>yA.type==="Attribute"&&(yA.name==="value"||yA.name==="checked")&&!is_text_attribute(yA)))&&AA.state.init.push(stmt(call("$.remove_input_defaults",AA.state.node))),eA.name==="textarea"){const yA=CA.get("value")??CA.get("checked"),LA=yA&&!is_text_attribute(yA);(EA||oA.has("value")||LA)&&AA.state.init.push(stmt(call("$.remove_textarea_child",AA.state.node)))}eA.name==="select"&&oA.has("value")&&setup_select_synchronization(oA.get("value"),AA),AA.state.init.push(...QA);const uA=AA.state.node;let lA=EA;if(EA){const yA=id$1(AA.state.scope.generate("attributes"));build_set_attributes(iA,AA,eA,uA,yA,(eA.metadata.svg||eA.metadata.mathml||is_custom_element_node(eA))&&true_instance,eA.name.includes("-")&&true_instance,AA.state),eA.name==="select"&&!oA.has("value")&&(AA.state.init.push(stmt(call("$.init_select",uA,thunk(member(yA,"value"))))),AA.state.update.push(if_builder(binary("in",literal("value"),yA),block([stmt(call("$.select_option",uA,member(yA,"value")))]))))}else{const yA=eA.name==="option"||eA.name==="select"||oA.has("group")||oA.has("checked");for(const LA of iA){if(is_event_attribute(LA)){visit_event_attribute(LA,AA);continue}if(yA&&LA.name==="value"){build_element_special_value_attribute(eA.name,uA,LA,AA);continue}if(!gA&&LA.name!=="autofocus"&&LA.name!=="muted"&&(LA.value===!0||is_text_attribute(LA))){const bA=get_attribute_name(eA,LA),SA=is_text_attribute(LA)?LA.value[0].data:!0;(bA!=="class"||SA)&&AA.state.template.push(` ${LA.name}${is_boolean_attribute(bA)&&SA===!0?"":`="${SA===!0?"":escape_html(SA,!0)}"`}`);continue}(gA?build_custom_element_attribute_update_assignment(uA,LA,AA):build_element_attribute_update_assignment(eA,uA,LA,AA))&&(lA=!0)}}build_class_directives(IA,uA,AA,lA),build_style_directives(BA,uA,AA,lA),eA.name==="img"&&(EA||CA.has("loading"))&&AA.state.after_update.push(stmt(call("$.handle_lazy_img",uA))),is_load_error_element(eA.name)&&(EA||nA||CA.has("onload")||CA.has("onerror"))&&AA.state.after_update.push(stmt(call("$.replay_events",uA))),AA.state.template.push(">");const hA={...AA.state.metadata,namespace:determine_namespace_for_children(eA,AA.state.metadata.namespace)};if(oA.has("innerHTML")||oA.has("innerText")||oA.has("textContent")){const yA=CA.get("contenteditable");yA&&(yA.value===!0||is_text_attribute(yA)&&yA.value[0].data==="true")&&(hA.bound_contenteditable=!0)}const dA={...AA.state,metadata:hA,locations:[],scope:AA.state.scopes.get(eA.fragment),preserve_whitespace:AA.state.preserve_whitespace||eA.name==="pre"||eA.name==="textarea"},{hoisted:DA,trimmed:wA}=clean_nodes(eA,eA.fragment.nodes,AA.path,dA.metadata.namespace,dA,eA.name==="script"||dA.preserve_whitespace,dA.options.preserveComments),RA={...dA,init:[],update:[],after_update:[]};for(const yA of DA)AA.visit(yA,RA);const GA=wA.every(yA=>yA.type==="Text"||yA.type==="ExpressionTag")&&wA.some(yA=>yA.type==="ExpressionTag")&&get_states_and_calls(wA);if(GA&&GA.states===0)RA.init.push(stmt(assignment("=",member(AA.state.node,"textContent"),build_template_literal(wA,AA.visit,RA).value)));else{let yA=AA.state.node,LA=wA.some(KA=>KA.type!=="Text");eA.name==="template"&&(LA=!0,RA.init.push(stmt(call("$.hydrate_template",yA))),yA=member(yA,"content")),process_children(wA,KA=>call("$.child",yA,KA&&true_instance),!0,{...AA,state:RA}),LA&&RA.init.push(stmt(call("$.reset",AA.state.node)))}if(eA.fragment.nodes.some(yA=>yA.type==="SnippetBlock")?AA.state.init.push(block([...RA.init,RA.update.length>0?build_render_statement(RA.update):empty,...RA.after_update,...cA.after_update])):eA.fragment.metadata.dynamic?(AA.state.init.push(...RA.init),AA.state.update.push(...RA.update),AA.state.after_update.push(...RA.after_update,...cA.after_update)):AA.state.after_update.push(...cA.after_update),CA.has("dir")){const yA=member(uA,"dir");AA.state.update.push(stmt(assignment("=",yA,yA)))}dA.locations.length>0&&tA.push(dA.locations),is_void(eA.name)||AA.state.template.push(`</${eA.name}>`)}function setup_select_synchronization(eA,AA){if(AA.state.analysis.runes)return;let tA=eA.expression;for(;tA.type==="MemberExpression";)tA=tA.object;const gA=[];for(const[IA,BA]of AA.state.scope.references)BA.length>0&&IA!==tA.name&&gA.push(IA);const iA=call("$.invalidate_inner_signals",thunk(block(gA.map(IA=>{const BA=build_getter$1(id$1(IA),AA.state);return stmt(BA)}))));AA.state.init.push(stmt(call("$.template_effect",thunk(block([stmt(AA.visit(eA.expression)),stmt(iA)])))))}function build_element_attribute_update_assignment(eA,AA,tA,gA){const iA=gA.state,IA=get_attribute_name(eA,tA),BA=gA.state.metadata.namespace==="svg"||eA.name==="svg",sA=gA.state.metadata.namespace==="mathml";let{has_call:QA,value:CA}=build_attribute_value(tA.value,gA);if(IA==="autofocus")return iA.init.push(stmt(call("$.autofocus",AA,CA))),!1;if(IA==="muted")return iA.init.push(stmt(assignment("=",member(AA,id$1("muted")),CA))),!1;let oA;if(IA==="class"){if(tA.metadata.expression.has_state&&QA){const nA=id$1(iA.scope.generate("class_derived"));iA.init.push(const_builder(nA,create_derived(iA,thunk(CA)))),CA=call("$.get",nA),QA=!1}oA=stmt(call(BA?"$.set_svg_class":sA?"$.set_mathml_class":"$.set_class",AA,CA))}else if(IA==="value")oA=stmt(call("$.set_value",AA,CA));else if(IA==="checked")oA=stmt(call("$.set_checked",AA,CA));else if(is_dom_property(IA))oA=stmt(assignment("=",member(AA,IA),CA));else{if(IA==="style"&&tA.metadata.expression.has_state&&QA){const cA=id$1(iA.scope.generate("style_derived"));iA.init.push(const_builder(cA,create_derived(iA,thunk(CA)))),CA=call("$.get",cA),QA=!1}const nA=IA.startsWith("xlink")?"$.set_xlink_attribute":"$.set_attribute";oA=stmt(call(nA,AA,literal(IA),CA,is_ignored(eA,"hydration_attribute_changed")&&true_instance))}const EA=tA.value===!0?!1:is_inlinable_expression(Array.isArray(tA.value)?tA.value:[tA.value],gA.state);return tA.metadata.expression.has_state?(QA?iA.init.push(build_update(oA)):iA.update.push(oA),!0):(EA?gA.state.template.push(` ${IA}="`,CA,'"'):iA.init.push(oA),!1)}function is_inlinable_expression(eA,AA){var gA;let tA=!1;for(let iA of eA)if(iA.type==="ExpressionTag"){if(iA.expression.type==="Identifier"){const IA=(gA=AA.scope.owner(iA.expression.name))==null?void 0:gA.declarations.get(iA.expression.name);if(!can_inline_variable(IA))return!1}else return!1;tA=!0}return tA}function build_custom_element_attribute_update_assignment(eA,AA,tA){const gA=tA.state,iA=AA.name;let{has_call:IA,value:BA}=build_attribute_value(AA.value,tA);const sA=stmt(call("$.set_custom_element_data",eA,literal(iA),BA));return AA.metadata.expression.has_state?(IA?gA.init.push(build_update(sA)):gA.update.push(sA),!0):(gA.init.push(sA),!1)}function build_element_special_value_attribute(eA,AA,tA,gA){const iA=gA.state,{value:IA}=build_attribute_value(tA.value,gA),BA=assignment("=",member(AA,"value"),conditional(binary("==",literal(null),assignment("=",member(AA,"__value"),IA)),literal(""),IA)),sA=eA==="select"&&tA.value!==!0&&!is_text_attribute(tA),QA=stmt(sA?sequence$1([BA,call("$.select_option",AA,IA)]):BA);if(sA&&iA.init.push(stmt(call("$.init_select",AA,thunk(IA)))),tA.metadata.expression.has_state){const CA=iA.scope.generate(`${AA.name}_value`);return build_update_assignment(iA,CA,eA==="option"?object$2([]):void 0,IA,QA),!0}else return iA.init.push(QA),!1}function RenderTag(eA,AA){AA.state.template.push("<!>");const tA=unwrap_optional(eA.expression).callee,gA=unwrap_optional(eA.expression).arguments;let iA=[];for(let BA=0;BA<gA.length;BA++){const sA=gA[BA],QA=AA.visit(sA);if(eA.metadata.args_with_call_expression.has(BA)){const CA=id$1(AA.state.scope.generate("render_arg"));AA.state.init.push(var_builder(CA,call("$.derived_safe_equal",thunk(QA)))),iA.push(thunk(call("$.get",CA)))}else iA.push(thunk(QA))}let IA=AA.visit(tA);eA.metadata.dynamic?(eA.expression.type==="ChainExpression"&&(IA=logical("??",IA,id$1("$.noop"))),AA.state.init.push(stmt(call("$.snippet",AA.state.node,thunk(IA),...iA)))):AA.state.init.push(stmt((eA.expression.type==="CallExpression"?call:maybe_call)(IA,AA.state.node,...iA)))}function SlotElement(eA,AA){AA.state.template.push("<!>");const tA=[],gA=[],iA=[];let IA=literal("default");for(const CA of eA.attributes)if(CA.type==="SpreadAttribute")gA.push(thunk(AA.visit(CA)));else if(CA.type==="Attribute"){const{value:oA}=build_attribute_value(CA.value,AA);CA.name==="name"?IA=oA:CA.name!=="slot"&&(CA.metadata.expression.has_state?tA.push(get(CA.name,[return_builder(oA)])):tA.push(init(CA.name,oA)))}else CA.type==="LetDirective"&&iA.push(AA.visit(CA));AA.state.init.push(...iA);const BA=gA.length===0?object$2(tA):call("$.spread_props",object$2(tA),...gA),sA=eA.fragment.nodes.length===0?literal(null):arrow([id$1("$$anchor")],AA.visit(eA.fragment)),QA=call("$.slot",AA.state.node,id$1("$$props"),IA,BA,sA);AA.state.init.push(stmt(QA))}function SnippetBlock(eA,AA){var CA;const tA=[id$1("$$anchor")];let gA;const iA=[],IA={...AA.state.transform},BA={...AA.state,transform:IA};for(let oA=0;oA<eA.parameters.length;oA++){const EA=eA.parameters[oA];if(!EA)continue;if(EA.type==="Identifier"){tA.push({type:"AssignmentPattern",left:EA,right:id$1("$.noop")}),IA[EA.name]={read:call};continue}let nA=`$$arg${oA}`;tA.push(id$1(nA));const cA=extract_paths(EA);for(const uA of cA){const lA=uA.node.name,hA=uA.has_default_value,dA=thunk(AA.visit((CA=uA.expression)==null?void 0:CA.call(uA,maybe_call(id$1(nA)))));iA.push(let_builder(uA.node,hA?call("$.derived_safe_equal",dA):dA)),IA[lA]={read:hA?get_value:call},dev&&iA.push(stmt(IA[lA].read(id$1(lA))))}}gA=block([...iA,...AA.visit(eA.body,BA).body]);let sA=arrow(tA,gA);dev&&(sA=call("$.wrap_snippet",id$1(AA.state.analysis.name),sA));const QA=const_builder(eA.expression,sA);AA.path.length===1&&AA.path[0].type==="Fragment"?AA.state.analysis.top_level_snippets.push(QA):AA.state.init.push(QA)}function SpreadAttribute(eA,AA){return AA.visit(eA.expression)}function visit_special_element(eA,AA,tA){const gA={...tA.state,node:id$1(AA)};for(const iA of eA.attributes)iA.type==="OnDirective"?tA.state.init.push(stmt(tA.visit(iA,gA))):tA.visit(iA,gA)}function SvelteBody(eA,AA){visit_special_element(eA,"$.document.body",AA)}function SvelteComponent(eA,AA){const tA=build_component(eA,"$$component",AA);AA.state.init.push(tA)}function SvelteDocument(eA,AA){visit_special_element(eA,"$.document",AA)}function SvelteElement(eA,AA){AA.state.template.push("<!>");const tA=[];let gA;const iA=[],IA=[],BA=[],sA=id$1(AA.state.scope.generate("$$element")),QA={...AA,state:{...AA.state,node:sA,before_init:[],init:[],update:[],after_update:[]}};for(const cA of eA.attributes)if(cA.type==="Attribute")cA.name==="xmlns"&&!is_text_attribute(cA)&&(gA=cA.value),tA.push(cA);else if(cA.type==="SpreadAttribute")tA.push(cA);else if(cA.type==="ClassDirective")iA.push(cA);else if(cA.type==="StyleDirective")IA.push(cA);else if(cA.type==="LetDirective")BA.push(AA.visit(cA));else if(cA.type==="OnDirective"){const uA=AA.visit(cA,QA.state);QA.state.after_update.push(stmt(uA))}else AA.visit(cA,QA.state);AA.state.init.push(...BA);let CA=!1;if(tA.length===0)AA.state.analysis.css.hash&&QA.state.init.push(stmt(call("$.set_class",sA,literal(AA.state.analysis.css.hash))));else{const cA=id$1(AA.state.scope.generate("attributes"));CA=build_set_attributes(tA,QA,eA,sA,cA,binary("===",member(sA,"namespaceURI"),id$1("$.NAMESPACE_SVG")),call(member(member(sA,"nodeName"),"includes"),literal("-")),AA.state)}build_class_directives(iA,sA,QA,CA),build_style_directives(IA,sA,QA,CA);const oA=thunk(AA.visit(eA.tag));dev&&(eA.fragment.nodes.length>0&&AA.state.init.push(stmt(call("$.validate_void_dynamic_element",oA))),AA.state.init.push(stmt(call("$.validate_dynamic_element_tag",oA))));const EA=QA.state.init;QA.state.update.length>0&&EA.push(build_render_statement(QA.state.update)),EA.push(...QA.state.after_update),EA.push(...AA.visit(eA.fragment,{...AA.state,metadata:{...AA.state.metadata,namespace:determine_namespace_for_children(eA,AA.state.metadata.namespace)}}).body);const nA=dev&&locator(eA.start);AA.state.init.push(stmt(call("$.element",AA.state.node,oA,eA.metadata.svg||eA.metadata.mathml?true_instance:false_instance,EA.length>0&&arrow([sA,id$1("$$anchor")],block(EA)),gA&&thunk(build_attribute_value(gA,AA).value),nA&&array([literal(nA.line),literal(nA.column)]))))}function SvelteFragment(eA,AA){for(const tA of eA.attributes)tA.type==="LetDirective"&&AA.state.init.push(AA.visit(tA));AA.state.init.push(...AA.visit(eA.fragment).body)}function SvelteHead(eA,AA){AA.state.init.push(stmt(call("$.head",arrow([id$1("$$anchor")],AA.visit(eA.fragment)))))}function SvelteSelf(eA,AA){const tA=build_component(eA,AA.state.analysis.name,AA);AA.state.init.push(tA)}function SvelteWindow(eA,AA){visit_special_element(eA,"$.window",AA)}function TitleElement(eA,AA){const{has_state:tA,value:gA}=build_template_literal(eA.fragment.nodes,AA.visit,AA.state),iA=stmt(assignment("=",id$1("$.document.title"),gA));tA?AA.state.update.push(iA):AA.state.init.push(iA)}function TransitionDirective(eA,AA){let tA=eA.modifiers.includes("global")?TRANSITION_GLOBAL:0;eA.intro&&(tA|=TRANSITION_IN),eA.outro&&(tA|=TRANSITION_OUT);const gA=[literal(tA),AA.state.node,thunk(AA.visit(parse_directive_name(eA.name)))];eA.expression&&gA.push(thunk(AA.visit(eA.expression))),AA.state.after_update.push(stmt(call("$.transition",...gA)))}function UpdateExpression(eA,AA){var QA;const tA=eA.argument;if(tA.type==="MemberExpression"&&tA.object.type==="ThisExpression"&&tA.property.type==="PrivateIdentifier"&&AA.state.private_state.has(tA.property.name)){let CA="$.update";eA.prefix&&(CA+="_pre");const oA=[tA];return eA.operator==="--"&&oA.push(literal(-1)),call(CA,...oA)}if(tA.type!=="Identifier"&&tA.type!=="MemberExpression")throw new Error("An impossible state was reached");const gA=object$1(tA);if(gA===null)return AA.next();if(gA===tA){const CA=AA.state.transform,oA=(QA=CA[gA.name])==null?void 0:QA.update;if(oA&&Object.hasOwn(CA,gA.name))return oA(eA)}const iA=AA.visit(assignment(eA.operator==="++"?"+=":"-=",tA,literal(1))),BA=AA.path.at(-1).type==="ExpressionStatement",sA=eA.prefix||BA?iA:binary(eA.operator==="++"?"-":"+",iA,literal(1));return is_ignored(eA,"ownership_invalid_mutation")?call("$.skip_ownership_validation",thunk(sA)):sA}function UseDirective(eA,AA){const tA=[id$1("$$node")];eA.expression&&tA.push(id$1("$$action_arg"));const gA=[AA.state.node,arrow(tA,call(AA.visit(parse_directive_name(eA.name)),...tA))];eA.expression&&gA.push(thunk(AA.visit(eA.expression))),AA.state.after_update.push(stmt(call("$.action",...gA))),AA.next()}function VariableDeclaration(eA,AA){var gA;const tA=[];if(AA.state.analysis.runes)for(const iA of eA.declarations){const IA=iA.init,BA=get_rune(IA,AA.state.scope);if(!BA||BA==="$effect.tracking"||BA==="$effect.root"||BA==="$inspect"||BA==="$state.snapshot"||BA==="$host"){if(IA!=null&&is_hoisted_function(IA)){AA.state.hoisted.push(const_builder(iA.id,AA.visit(IA)));continue}tA.push(AA.visit(iA));continue}if(BA==="$props"){const CA=["$$slots","$$events","$$legacy"];if(AA.state.analysis.custom_element&&CA.push("$$host"),iA.id.type==="Identifier"){const oA=[id$1("$$props"),array(CA.map(EA=>literal(EA)))];dev&&oA.push(literal(iA.id.name)),tA.push(declarator(iA.id,call("$.rest_props",...oA)))}else{equal(iA.id.type,"ObjectPattern");for(const oA of iA.id.properties)if(oA.type==="Property"){const EA=oA.key,nA=EA.type==="Identifier"?EA.name:EA.value;CA.push(nA);let cA=oA.value.type==="AssignmentPattern"?oA.value.left:oA.value;equal(cA.type,"Identifier");const uA=AA.state.scope.get(cA.name);let lA=uA.initial&&AA.visit(uA.initial);lA&&uA.kind==="bindable_prop"&&should_proxy(lA,AA.state.scope)&&(lA=call("$.proxy",lA)),is_prop_source(uA,AA.state)&&tA.push(declarator(cA,get_prop_source(uA,AA.state,nA,lA)))}else{const EA=[id$1("$$props"),array(CA.map(nA=>literal(nA)))];dev&&EA.push(literal(oA.argument.name)),tA.push(declarator(oA.argument,call("$.rest_props",...EA)))}}continue}const sA=IA.arguments,QA=sA.length===0?id$1("undefined"):AA.visit(sA[0]);if(BA==="$state"||BA==="$state.raw"){const CA=(oA,EA)=>{const nA=AA.state.scope.get(oA.name);return BA==="$state"&&should_proxy(EA,AA.state.scope)&&(EA=call("$.proxy",EA)),is_state_source(nA,AA.state.analysis)&&(EA=call("$.state",EA)),EA};if(iA.id.type==="Identifier")tA.push(declarator(iA.id,CA(iA.id,QA)));else{const oA=AA.state.scope.generate("tmp"),EA=extract_paths(iA.id);tA.push(declarator(id$1(oA),QA),...EA.map(nA=>{var lA;const cA=(lA=nA.expression)==null?void 0:lA.call(nA,id$1(oA)),uA=AA.state.scope.get(nA.node.name);return declarator(nA.node,(uA==null?void 0:uA.kind)==="state"||(uA==null?void 0:uA.kind)==="raw_state"?CA(uA.node,cA):cA)}))}continue}if(BA==="$derived"||BA==="$derived.by"){if(iA.id.type==="Identifier")tA.push(declarator(iA.id,call("$.derived",BA==="$derived.by"?QA:thunk(QA))));else{const CA=extract_paths(iA.id),oA=iA.init;let EA,nA=QA;BA==="$derived"&&oA.arguments[0].type==="Identifier"?EA=oA.arguments[0]:(EA=id$1(AA.state.scope.generate("$$d")),nA=call("$.get",EA),tA.push(declarator(EA,call("$.derived",BA==="$derived.by"?QA:thunk(QA)))));for(let cA=0;cA<CA.length;cA++){const uA=CA[cA];tA.push(declarator(uA.node,call("$.derived",thunk(uA.expression(nA)))))}}continue}}else for(const iA of eA.declarations){const IA=AA.state.scope.get_bindings(iA),BA=IA.some(QA=>QA.kind==="state"),sA=IA.some(QA=>QA.kind==="bindable_prop");if(!BA&&!sA){const QA=iA.init;if(QA!=null&&is_hoisted_function(QA)){AA.state.hoisted.push(const_builder(iA.id,AA.visit(QA)));continue}tA.push(AA.visit(iA));continue}if(sA){if(iA.id.type!=="Identifier"){const CA=AA.state.scope.generate("tmp"),oA=extract_paths(iA.id);tA.push(declarator(id$1(CA),AA.visit(iA.init)));for(const EA of oA){const nA=EA.node.name,cA=AA.state.scope.get(nA),uA=(gA=EA.expression)==null?void 0:gA.call(EA,id$1(CA));tA.push(declarator(EA.node,cA.kind==="bindable_prop"?get_prop_source(cA,AA.state,cA.prop_alias??nA,uA):uA))}continue}const QA=AA.state.scope.get(iA.id.name);tA.push(declarator(iA.id,get_prop_source(QA,AA.state,QA.prop_alias??iA.id.name,iA.init&&AA.visit(iA.init))));continue}tA.push(...create_state_declarators(iA,AA.state,iA.init&&AA.visit(iA.init)))}return tA.length===0?empty:{...eA,declarations:tA}}function create_state_declarators(eA,{scope:AA,analysis:tA},gA){if(eA.id.type==="Identifier")return[declarator(eA.id,call("$.mutable_state",gA,tA.immutable?true_instance:void 0))];const iA=AA.generate("tmp"),IA=extract_paths(eA.id);return[declarator(id$1(iA),gA),...IA.map(BA=>{var CA;const sA=(CA=BA.expression)==null?void 0:CA.call(BA,id$1(iA)),QA=AA.get(BA.node.name);return declarator(BA.node,(QA==null?void 0:QA.kind)==="state"?call("$.mutable_state",sA,tA.immutable?true_instance:void 0):sA)})]}const visitors={_:function eA(AA,{next:tA,state:gA}){const iA=gA.scopes.get(AA);if(iA&&iA!==gA.scope){const IA={...gA.transform};for(const[BA,sA]of iA.declarations)(sA.kind==="normal"||sA.kind==="state"&&!is_state_source(sA,gA.analysis))&&delete IA[BA];tA({...gA,transform:IA,scope:iA})}else tA()},AnimateDirective,ArrowFunctionExpression,AssignmentExpression,Attribute,AwaitBlock,BinaryExpression,BindDirective,BlockStatement,BreakStatement,CallExpression,ClassBody,Comment,Component,ConstTag,DebugTag,EachBlock,ExportNamedDeclaration,ExpressionStatement,Fragment,FunctionDeclaration,FunctionExpression,HtmlTag,Identifier,IfBlock,ImportDeclaration,KeyBlock,LabeledStatement,LetDirective,MemberExpression,OnDirective,Program,RegularElement,RenderTag,SlotElement,SnippetBlock,SpreadAttribute,SvelteBody,SvelteComponent,SvelteDocument,SvelteElement,SvelteFragment,SvelteHead,SvelteSelf,SvelteWindow,TitleElement,TransitionDirective,UpdateExpression,UseDirective,VariableDeclaration};function client_component(eA,AA){var wA,RA;const tA={analysis:eA,options:AA,scope:eA.module.scope,scopes:eA.module.scopes,is_instance:!1,hoisted:[import_all("$","svelte/internal/client")],node:null,legacy_reactive_imports:[],legacy_reactive_statements:new Map,metadata:{context:{template_needs_import_node:!1,template_contains_script_tag:!1},namespace:AA.namespace,bound_contenteditable:!1},events:new Set,preserve_whitespace:AA.preserveWhitespace,public_state:new Map,private_state:new Map,transform:{},in_constructor:!1,before_init:null,init:null,update:null,after_update:null,template:null,locations:null},gA=walk(eA.module.ast,tA,visitors),iA={...tA,transform:{...tA.transform},scope:eA.instance.scope,scopes:eA.instance.scopes,is_instance:!0},IA=walk(eA.instance.ast,iA,visitors),BA=walk(eA.template.ast,{...tA,transform:iA.transform,scope:eA.instance.scope,scopes:eA.template.scopes},visitors);gA.body.unshift(...tA.legacy_reactive_imports);const sA=[],QA=[];for(const[GA,yA]of eA.instance.scope.declarations)if(yA.kind==="legacy_reactive"&&QA.push(const_builder(GA,call("$.mutable_state",void 0,eA.immutable?true_instance:void 0))),yA.kind==="store_sub"){sA.length===0&&sA.push(const_builder("$$stores",call("$.setup_stores")));const LA=build_getter$1(id$1(GA.slice(1)),iA),KA=call("$.store_get",LA,literal(GA),id$1("$$stores"));sA.push(const_builder(yA.node,thunk(dev?sequence$1([call("$.validate_store",LA,literal(GA.slice(1))),KA]):KA)))}for(const[GA]of eA.reactive_statements){const yA=[...tA.legacy_reactive_statements].find(([LA])=>LA===GA);if(yA===void 0)throw new Error("Could not find reactive statement");IA.body.push(yA[1])}eA.reactive_statements.size>0&&IA.body.push(stmt(call("$.legacy_pre_effect_reset")));const CA=[];for(const GA of eA.binding_groups.values())CA.push(const_builder(GA.name,array([])));const oA=eA.exports.flatMap(({name:GA,alias:yA})=>{const LA=iA.scope.get(GA),KA=build_getter$1(id$1(GA),iA),bA=get(yA??GA,[return_builder(KA)]);if(KA.type==="Identifier"){if((LA==null?void 0:LA.declaration_kind)==="let"||(LA==null?void 0:LA.declaration_kind)==="var")return[bA,set(yA??GA,[stmt(assignment("=",KA,id$1("$$value")))])];if(!dev)return init(yA??GA,KA)}if((LA==null?void 0:LA.kind)==="prop"||(LA==null?void 0:LA.kind)==="bindable_prop")return[bA,set(yA??GA,[stmt(call(GA,id$1("$$value")))])];if((LA==null?void 0:LA.kind)==="state"||(LA==null?void 0:LA.kind)==="raw_state"){const SA=LA.kind==="state"?call("$.proxy",id$1("$$value")):id$1("$$value");return[bA,set(yA??GA,[stmt(call("$.set",id$1(GA),SA))])]}return bA}),EA=[...eA.instance.scope.declarations].filter(([GA,yA])=>(yA.kind==="prop"||yA.kind==="bindable_prop")&&!GA.startsWith("$$"));if(dev&&eA.runes){const GA=eA.exports.map(({name:LA,alias:KA})=>literal(KA??LA)),yA=[];for(const[LA,KA]of EA)KA.kind==="bindable_prop"&&yA.push(literal(KA.prop_alias??LA));IA.body.unshift(stmt(call("$.validate_prop_bindings",id$1("$$props"),array(yA),array(GA),id$1(`${eA.name}`))))}if(eA.accessors)for(const[GA,yA]of EA){const LA=yA.prop_alias??GA,KA=get(LA,[return_builder(call(id$1(GA)))]),bA=set(LA,[stmt(call(id$1(GA),id$1("$$value"))),stmt(call("$.flush_sync"))]);eA.runes&&yA.initial&&(bA.value.params[0]={type:"AssignmentPattern",left:id$1("$$value"),right:yA.initial}),oA.push(KA,bA)}AA.compatibility.componentApi===4?oA.push(init("$set",id$1("$.update_legacy_props")),init("$on",arrow([id$1("$$event_name"),id$1("$$event_cb")],call("$.add_legacy_event_listener",id$1("$$props"),id$1("$$event_name"),id$1("$$event_cb"))))):dev&&oA.push(spread(call(id$1("$.legacy_api"))));const nA=[id$1("$$props"),literal(eA.runes)];dev&&nA.push(id$1(eA.name));const cA=block([...sA,...QA,...CA,...eA.top_level_snippets,...IA.body,eA.runes||!eA.needs_context?empty:stmt(call("$.init",eA.immutable?true_instance:void 0)),...BA.body]);if(!eA.runes)for(const{name:GA,alias:yA}of eA.exports)cA.body.push(stmt(call("$.bind_prop",id$1("$$props"),literal(yA??GA),build_getter$1(id$1(GA),iA))));if(eA.css.ast!==null&&eA.inject_styles){const GA=literal(eA.css.hash),yA=literal(render_stylesheet(eA.source,eA,AA).code);tA.hoisted.push(const_builder("$$css",object$2([init("hash",GA),init("code",yA)]))),cA.body.unshift(stmt(call("$.append_styles",id$1("$$anchor"),id$1("$$css"))))}const uA=dev||eA.needs_context||eA.reactive_statements.size>0||oA.length>0;if(uA&&(cA.body.unshift(stmt(call("$.push",...nA))),cA.body.push(oA.length>0?return_builder(call("$.pop",object$2(oA))):stmt(call("$.pop")))),eA.uses_rest_props){const GA=eA.exports.map(({name:yA,alias:LA})=>LA??yA);for(const[yA,LA]of eA.instance.scope.declarations)LA.kind==="bindable_prop"&&GA.push(LA.prop_alias??yA);cA.body.unshift(const_builder("$$restProps",call("$.legacy_rest_props",id$1("$$sanitized_props"),array(GA.map(yA=>literal(yA))))))}if(eA.uses_props||eA.uses_rest_props){const GA=[literal("children"),literal("$$slots"),literal("$$events"),literal("$$legacy")];eA.custom_element&&GA.push(literal("$$host")),cA.body.unshift(const_builder("$$sanitized_props",call("$.legacy_rest_props",id$1("$$props"),array(GA))))}eA.uses_slots&&cA.body.unshift(const_builder("$$slots",call("$.sanitize_slots",id$1("$$props"))));let lA=uA||eA.needs_props||eA.uses_props||eA.uses_rest_props||eA.uses_slots||eA.slot_names.size>0;const hA=[];let dA=[];for(const GA of[...gA.body,...tA.hoisted])GA.type==="ImportDeclaration"?hA.push(GA):dA.push(GA);dA=[...hA,...dA];const DA=function_declaration(id$1(eA.name),lA?[id$1("$$anchor"),id$1("$$props")]:[id$1("$$anchor")],cA);if(AA.hmr){const GA=id$1(eA.name),yA=id$1("$.HMR"),LA=member(GA,yA,!0),KA=member(id$1("module.default"),yA,!0),bA=[stmt(assignment("=",member(KA,"source"),member(LA,"source"))),stmt(call("$.set",member(LA,"source"),member(KA,"original")))];eA.css.hash&&bA.unshift(stmt(call("$.cleanup_styles",literal(eA.css.hash))));const SA=block([stmt(assignment("=",GA,call("$.hmr",GA,thunk(member(LA,"source"))))),stmt(call("import.meta.hot.accept",arrow([id$1("module")],block(bA))))]);dA.push(DA,if_builder(id$1("import.meta.hot"),SA),export_default(id$1(eA.name)))}else dA.push(export_default(DA));if(dev&&(dA.unshift(stmt(assignment("=",member(id$1(eA.name),"$.FILENAME",!0),literal(filename)))),dA.unshift(stmt(call(id$1("$.mark_module_start")))),dA.push(stmt(call(id$1("$.mark_module_end"),id$1(eA.name))))),AA.discloseVersion&&dA.unshift(imports([],"svelte/internal/disclose-version")),AA.compatibility.componentApi===4?(dA.unshift(imports([["createClassComponent","$$_createClassComponent"]],"svelte/legacy")),cA.body.unshift(if_builder(id$1("new.target"),return_builder(call("$$_createClassComponent",object$2([init("component",id$1(eA.name)),spread(id$1("$$anchor"))])))))):dev&&cA.body.unshift(stmt(call("$.check_target",id$1("new.target")))),tA.events.size>0&&dA.push(stmt(call("$.delegate",array(Array.from(tA.events).map(GA=>literal(GA)))))),eA.custom_element){const GA=eA.custom_element,yA=[];for(const[MA,NA]of EA){const FA=NA.prop_alias??MA,qA=typeof GA=="boolean"?{}:((wA=GA.props)==null?void 0:wA[FA])||{};!qA.type&&((RA=NA.initial)==null?void 0:RA.type)==="Literal"&&typeof NA.initial.value=="boolean"&&(qA.type="Boolean");const UA=object$2([qA.attribute?init("attribute",literal(qA.attribute)):void 0,qA.reflect?init("reflect",literal(!0)):void 0,qA.type?init("type",literal(qA.type)):void 0].filter(Boolean));yA.push(init(FA,UA))}const LA=array([...eA.slot_names.keys()].map(MA=>literal(MA))),KA=array(eA.exports.map(({name:MA,alias:NA})=>literal(NA??MA))),bA=typeof GA=="boolean"||GA.shadow!=="none",SA=call("$.create_custom_element",id$1(eA.name),object$2(yA),LA,KA,literal(bA),typeof GA!="boolean"?GA.extend:void 0);if(typeof GA!="boolean"&&typeof GA.tag=="string"){const MA=stmt(call("customElements.define",literal(GA.tag),SA));AA.hmr?dA.push(if_builder(binary("==",call("customElements.get",literal(GA.tag)),null_instane),MA)):dA.push(MA)}else dA.push(stmt(SA))}return{type:"Program",sourceType:"module",body:dA}}function client_module(eA,AA){const tA={analysis:eA,options:AA,scope:eA.module.scope,scopes:eA.module.scopes,public_state:new Map,private_state:new Map,transform:{},in_constructor:!1},gA=walk(eA.module.ast,tA,visitors);return{type:"Program",sourceType:"module",body:[import_all("$","svelte/internal/client"),...gA.body]}}function transform_component(eA,AA,tA){if(tA.generate===!1)return{js:null,css:null,warnings,metadata:{runes:eA.runes},ast:null};const gA=tA.generate==="server"?server_component(eA,tA):client_component(eA,tA),iA=get_source_name(tA.filename,tA.outputFilename),IA=print(gA,{sourceMapContent:AA,sourceMapSource:iA});merge_with_preprocessor_map(IA,tA,iA);const BA=eA.css.ast&&!eA.inject_styles?render_stylesheet(AA,eA,tA):null;return{js:IA,css:BA,warnings,metadata:{runes:eA.runes},ast:null}}function transform_module(eA,AA,tA){if(tA.generate===!1)return{js:null,css:null,warnings,metadata:{runes:!0},ast:null};const gA=tA.generate==="server"?server_module(eA,tA):client_module(eA,tA),iA=tA.filename.split(/[/\\]/).at(-1);return gA.body.length>0&&(gA.body[0].leadingComments=[{type:"Block",value:` ${iA} generated by Svelte v${VERSION} `}]),{js:print(gA,{sourceMapContent:AA,sourceMapSource:get_source_name(tA.filename,void 0)}),css:null,metadata:{runes:!0},warnings,ast:null}}var process={};const common={filename:string("(unknown)"),rootDir:string(typeof process<"u"?(jg=process.cwd)==null?void 0:jg.call(process):void 0),dev:boolean(!1),generate:validator("client",(eA,AA)=>eA==="dom"||eA==="ssr"?(warn_once(options_renamed_ssr_dom),eA==="dom"?"client":"server"):(eA!=="client"&&eA!=="server"&&eA!==!1&&throw_error(`${AA} must be "client", "server" or false`),eA))},validate_module_options=object({...common}),validate_component_options=object({...common,accessors:deprecate(options_deprecated_accessors,boolean(!1)),css:validator("external",eA=>((eA===!0||eA===!1)&&throw_error('The boolean options have been removed from the css option. Use "external" instead of false and "injected" instead of true'),eA==="none"&&throw_error('css: "none" is no longer a valid option. If this was crucial for you, please open an issue on GitHub with your use case.'),eA!=="external"&&eA!=="injected"&&throw_error('css should be either "external" (default, recommended) or "injected"'),eA)),cssHash:fun(({css:eA,hash:AA})=>`svelte-${AA(eA)}`),cssOutputFilename:string(void 0),customElement:boolean(!1),discloseVersion:boolean(!0),immutable:deprecate(options_deprecated_immutable,boolean(!1)),legacy:removed("The legacy option has been removed. If you are using this because of legacy.componentApi, use compatibility.componentApi instead"),compatibility:object({componentApi:list([4,5],5)}),loopGuardTimeout:warn_removed(options_removed_loop_guard_timeout),name:string(void 0),namespace:list(["html","mathml","svg"]),modernAst:boolean(!1),outputFilename:string(void 0),preserveComments:boolean(!1),preserveWhitespace:boolean(!1),runes:boolean(void 0),hmr:boolean(!1),warningFilter:fun(()=>!0),sourcemap:validator(void 0,eA=>eA),enableSourcemap:warn_removed(options_removed_enable_sourcemap),hydratable:warn_removed(options_removed_hydratable),format:removed('The format option has been removed in Svelte 4, the compiler only outputs ESM now. Remove "format" from your compiler options. If you did not set this yourself, bump the version of your bundler plugin (vite-plugin-svelte/rollup-plugin-svelte/svelte-loader)'),tag:removed('The tag option has been removed in Svelte 5. Use `<svelte:options customElement="tag-name" />` inside the component instead. If that does not solve your use case, please open an issue on GitHub with details.'),sveltePath:removed("The sveltePath option has been removed in Svelte 5. If this option was crucial for you, please open an issue on GitHub with your use case."),errorMode:removed("The errorMode option has been removed. If you are using this through svelte-preprocess with TypeScript, use the https://www.typescriptlang.org/tsconfig#verbatimModuleSyntax setting instead"),varsReport:removed("The vars option has been removed. If you are using this through svelte-preprocess with TypeScript, use the https://www.typescriptlang.org/tsconfig#verbatimModuleSyntax setting instead")});function removed(eA){return AA=>{AA!==void 0&&options_removed(null,eA)}}const warned=new Set;function warn_once(eA){warned.has(eA)||(warned.add(eA),eA(null))}function warn_removed(eA){return AA=>{AA!==void 0&&warn_once(eA)}}function deprecate(eA,AA){return(tA,gA)=>(tA!==void 0&&warn_once(eA),AA(tA,gA))}function object(eA,AA=!1){return(tA,gA)=>{const iA={};(tA&&typeof tA!="object"||Array.isArray(tA))&&throw_error(`${gA} should be an object`);for(const IA in tA)IA in eA||(AA?iA[IA]=tA[IA]:options_unrecognised(null,`${gA?`${gA}.${IA}`:IA}`));for(const IA in eA){const BA=eA[IA];iA[IA]=BA(tA&&tA[IA],gA?`${gA}.${IA}`:IA)}return iA}}function validator(eA,AA){return(tA,gA)=>tA===void 0?eA:AA(tA,gA)}function string(eA,AA=!0){return validator(eA,(tA,gA)=>(typeof tA!="string"&&throw_error(`${gA} should be a string, if specified`),!AA&&tA===""&&throw_error(`${gA} cannot be empty`),tA))}function boolean(eA){return validator(eA,(AA,tA)=>(typeof AA!="boolean"&&throw_error(`${tA} should be true or false, if specified`),AA))}function list(eA,AA=eA[0]){return validator(AA,(tA,gA)=>{if(!eA.includes(tA)){const iA=eA.length>2?`${gA} should be one of ${eA.slice(0,-1).map(IA=>`"${IA}"`).join(", ")} or "${eA[eA.length-1]}"`:`${gA} should be either "${eA[0]}" or "${eA[1]}"`;throw_error(iA)}return tA})}function fun(eA){return validator(eA,(AA,tA)=>(typeof AA!="function"&&throw_error(`${tA} should be a function, if specified`),AA))}function throw_error(eA){options_invalid_value(null,eA)}function compile(eA,AA){eA=remove_bom(eA),reset_warning_filter(AA.warningFilter);const tA=validate_component_options(AA,"");reset(eA,tA);let gA=parse(eA);const{customElement:iA,...IA}=gA.options||{},BA={...tA,...IA,customElementOptions:iA};gA.metadata.ts&&(gA={...gA,fragment:gA.fragment&&remove_typescript_nodes(gA.fragment),instance:gA.instance&&remove_typescript_nodes(gA.instance),module:gA.module&&remove_typescript_nodes(gA.module)});const sA=analyze_component(gA,eA,BA),QA=transform_component(sA,eA,BA);return QA.ast=to_public_ast(eA,gA,AA.modernAst),QA}function compileModule(eA,AA){eA=remove_bom(eA),reset_warning_filter(AA.warningFilter);const tA=validate_module_options(AA,"");reset(eA,tA);const gA=analyze_module(parse$1(eA,!1),tA);return transform_module(gA,eA,tA)}function to_public_ast(eA,AA,tA){var gA;if(tA){const iA=IA=>{delete IA.metadata,delete IA.parent};return(gA=AA.options)==null||gA.attributes.forEach(IA=>{iA(IA),iA(IA.value),Array.isArray(IA.value)&&IA.value.forEach(iA)}),walk(AA,null,{_(IA,{next:BA}){iA(IA),BA()}})}return convert(eA,AA)}function remove_bom(eA){return eA.charCodeAt(0)===65279?eA.slice(1):eA}const transform=()=>{const eA=new Set;return{input:(AA,tA)=>({code:AA,id:tA}),hook:(AA,tA)=>{if(!eA.has(tA))eA.add(tA);else return null;return tA.endsWith(".svelte")?{code:compile(AA,{generate:"dom",dev:!1,filename:tA,css:"injected"}).js.code,map:null}:tA.endsWith(".svelte.js")?{code:compileModule(AA,{generate:"client",dev:!1,filename:tA}).js.code,map:null}:tA.endsWith(".json")?{code:`export default ${AA};`,map:null}:null}}},load=(eA,AA,tA)=>{const gA=new Set;return{input:iA=>({resolved:iA}),hook:async iA=>{if(!gA.has(iA))gA.add(iA);else return null;if(iA==="<nil_xit_internal>/index.js")return AA;if(iA.startsWith(USER_TAG)){const IA=iA.substring(USER_TAG.length),BA=concat([header(nil_xit_proto.MessageType.MessageType_FileRequest),nil_xit_proto.FileRequest.encode({target:IA}).finish()]),{content:sA,metadata:QA}=await service_fetch(eA,BA,(CA,oA)=>{if(CA===nil_xit_proto.MessageType.MessageType_FileResponse){const EA=nil_xit_proto.FileResponse.decode(oA);if(EA.target===IA)return EA}});return tA&&tA(IA,QA),sA}if(iA.startsWith(RESOURCE_TAG))return await(await fetch(iA.slice(RESOURCE_TAG.length))).text();throw`unknown file: ${iA}`}}},debug_verbose=!1,hook_up=(eA,{hook:AA,input:tA})=>AA,warning=eA=>debug_verbose,encode=eA=>{const AA=new TextEncoder().encode(eA),gA=new Uint8Array(AA).reduce((iA,IA)=>iA+String.fromCharCode(IA),"");return btoa(gA)},transform_import=eA=>{const AA=eA.map(iA=>iA.split(" ")),tA=AA.map(iA=>{const IA=iA.slice(1,iA.length-2).join(" ");return IA.startsWith("* as ")?IA.slice(5):IA}),gA=AA.map(iA=>`import_map(${iA.pop()})`);return`const [${tA.join(", ")}] = await Promise.all([${gA.join(", ")}]);`},wrap_fe=eA=>{const AA=eA.code.replace("export {","return {"),tA=AA.indexOf(`;
|
|
60
60
|
|
|
61
61
|
`),gA=AA.slice(0,tA).split(`;
|
|
62
|
-
`)
|
|
62
|
+
`);return`export const nil_xit_fn = async (import_map) => { ${transform_import(gA)}; ${AA.slice(tA+2)}};`},plugin=(eA,AA,tA)=>({name:"nil_xit_plugin",resolveId:hook_up("resolve_id",resolve_id(eA)),load:hook_up("load",load(eA,AA,tA)),transform:hook_up("transform",transform()),generateBundle:(gA,iA)=>{for(const IA of Object.values(iA))IA.type==="chunk"&&(IA.code=`data:text/javascript;base64,${encode(wrap_fe(IA))}`)}});var e,t="4.24.0",n={exports:{}};function s(){return e||(e=1,function(eA){const gA="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",iA=new Uint8Array(64),IA=new Uint8Array(128);for(let bA=0;bA<gA.length;bA++){const SA=gA.charCodeAt(bA);iA[bA]=SA,IA[SA]=bA}function BA(bA,SA){let MA=0,NA=0,FA=0;do{const UA=bA.next();FA=IA[UA],MA|=(31&FA)<<NA,NA+=5}while(32&FA);const qA=1&MA;return MA>>>=1,qA&&(MA=-2147483648|-MA),SA+MA}function sA(bA,SA,MA){let NA=SA-MA;NA=NA<0?-NA<<1|1:NA<<1;do{let FA=31&NA;NA>>>=5,NA>0&&(FA|=32),bA.write(iA[FA])}while(NA>0);return SA}function QA(bA,SA){return!(bA.pos>=SA)&&bA.peek()!==44}const CA=16384,oA=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode:bA=>Buffer.from(bA.buffer,bA.byteOffset,bA.byteLength).toString()}:{decode(bA){let SA="";for(let MA=0;MA<bA.length;MA++)SA+=String.fromCharCode(bA[MA]);return SA}};class EA{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(CA)}write(SA){const{buffer:MA}=this;MA[this.pos++]=SA,this.pos===CA&&(this.out+=oA.decode(MA),this.pos=0)}flush(){const{buffer:SA,out:MA,pos:NA}=this;return NA>0?MA+oA.decode(SA.subarray(0,NA)):MA}}class nA{constructor(SA){this.pos=0,this.buffer=SA}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(SA){const{buffer:MA,pos:NA}=this,FA=MA.indexOf(SA,NA);return FA===-1?MA.length:FA}}const cA=[];function uA(bA){const{length:SA}=bA,MA=new nA(bA),NA=[],FA=[];let qA=0;for(;MA.pos<SA;MA.pos++){qA=BA(MA,qA);const UA=BA(MA,0);if(!QA(MA,SA)){const pA=FA.pop();pA[2]=qA,pA[3]=UA;continue}const mA=BA(MA,0),aA=1&BA(MA,0)?[qA,UA,0,0,mA,BA(MA,0)]:[qA,UA,0,0,mA];let rA=cA;if(QA(MA,SA)){rA=[];do{const pA=BA(MA,0);rA.push(pA)}while(QA(MA,SA))}aA.vars=rA,NA.push(aA),FA.push(aA)}return NA}function lA(bA){const SA=new EA;for(let MA=0;MA<bA.length;)MA=hA(bA,MA,SA,[0]);return SA.flush()}function hA(bA,SA,MA,NA){const FA=bA[SA],{0:qA,1:UA,2:mA,3:aA,4:rA,vars:pA}=FA;SA>0&&MA.write(44),NA[0]=sA(MA,qA,NA[0]),sA(MA,UA,0),sA(MA,rA,0),sA(MA,FA.length===6?1:0,0),FA.length===6&&sA(MA,FA[5],0);for(const fA of pA)sA(MA,fA,0);for(SA++;SA<bA.length;){const fA=bA[SA],{0:kA,1:JA}=fA;if(kA>mA||kA===mA&&JA>=aA)break;SA=hA(bA,SA,MA,NA)}return MA.write(44),NA[0]=sA(MA,mA,NA[0]),sA(MA,aA,0),SA}function dA(bA){const{length:SA}=bA,MA=new nA(bA),NA=[],FA=[];let qA=0,UA=0,mA=0,aA=0,rA=0,pA=0,fA=0,kA=0;do{const JA=MA.indexOf(";");let YA=0;for(;MA.pos<JA;MA.pos++){if(YA=BA(MA,YA),!QA(MA,JA)){const WA=FA.pop();WA[2]=qA,WA[3]=YA;continue}const xA=BA(MA,0),vA=2&xA,HA=4&xA;let PA,$A=null,TA=cA;if(1&xA){const WA=BA(MA,UA);mA=BA(MA,UA===WA?mA:0),UA=WA,PA=[qA,YA,0,0,WA,mA]}else PA=[qA,YA,0,0];if(PA.isScope=!!HA,vA){const WA=aA,ZA=rA;aA=BA(MA,aA);const Ag=WA===aA;rA=BA(MA,Ag?rA:0),pA=BA(MA,Ag&&ZA===rA?pA:0),$A=[aA,rA,pA]}if(PA.callsite=$A,QA(MA,JA)){TA=[];do{fA=qA,kA=YA;const WA=BA(MA,0);let ZA;if(WA<-1){ZA=[[BA(MA,0)]];for(let Ag=-1;Ag>WA;Ag--){const eg=fA;fA=BA(MA,fA),kA=BA(MA,fA===eg?kA:0);const sg=BA(MA,0);ZA.push([sg,fA,kA])}}else ZA=[[WA]];TA.push(ZA)}while(QA(MA,JA))}PA.bindings=TA,NA.push(PA),FA.push(PA)}qA++,MA.pos=JA+1}while(MA.pos<SA);return NA}function DA(bA){if(bA.length===0)return"";const SA=new EA;for(let MA=0;MA<bA.length;)MA=wA(bA,MA,SA,[0,0,0,0,0,0,0]);return SA.flush()}function wA(bA,SA,MA,NA){const FA=bA[SA],{0:qA,1:UA,2:mA,3:aA,isScope:rA,callsite:pA,bindings:fA}=FA;if(NA[0]<qA?(RA(MA,NA[0],qA),NA[0]=qA,NA[1]=0):SA>0&&MA.write(44),NA[1]=sA(MA,FA[1],NA[1]),sA(MA,(FA.length===6?1:0)|(pA?2:0)|(rA?4:0),0),FA.length===6){const{4:kA,5:JA}=FA;kA!==NA[2]&&(NA[3]=0),NA[2]=sA(MA,kA,NA[2]),NA[3]=sA(MA,JA,NA[3])}if(pA){const{0:kA,1:JA,2:YA}=FA.callsite;kA!==NA[4]?(NA[5]=0,NA[6]=0):JA!==NA[5]&&(NA[6]=0),NA[4]=sA(MA,kA,NA[4]),NA[5]=sA(MA,JA,NA[5]),NA[6]=sA(MA,YA,NA[6])}if(fA)for(const kA of fA){kA.length>1&&sA(MA,-kA.length,0),sA(MA,kA[0][0],0);let JA=qA,YA=UA;for(let xA=1;xA<kA.length;xA++){const vA=kA[xA];JA=sA(MA,vA[1],JA),YA=sA(MA,vA[2],YA),sA(MA,vA[0],0)}}for(SA++;SA<bA.length;){const kA=bA[SA],{0:JA,1:YA}=kA;if(JA>mA||JA===mA&&YA>=aA)break;SA=wA(bA,SA,MA,NA)}return NA[0]<mA?(RA(MA,NA[0],mA),NA[0]=mA,NA[1]=0):MA.write(44),NA[1]=sA(MA,aA,NA[1]),SA}function RA(bA,SA,MA){do bA.write(59);while(++SA<MA)}function GA(bA){const{length:SA}=bA,MA=new nA(bA),NA=[];let FA=0,qA=0,UA=0,mA=0,aA=0;do{const rA=MA.indexOf(";"),pA=[];let fA=!0,kA=0;for(FA=0;MA.pos<rA;){let JA;FA=BA(MA,FA),FA<kA&&(fA=!1),kA=FA,QA(MA,rA)?(qA=BA(MA,qA),UA=BA(MA,UA),mA=BA(MA,mA),QA(MA,rA)?(aA=BA(MA,aA),JA=[FA,qA,UA,mA,aA]):JA=[FA,qA,UA,mA]):JA=[FA],pA.push(JA),MA.pos++}fA||yA(pA),NA.push(pA),MA.pos=rA+1}while(MA.pos<=SA);return NA}function yA(bA){bA.sort(LA)}function LA(bA,SA){return bA[0]-SA[0]}function KA(bA){const SA=new EA;let MA=0,NA=0,FA=0,qA=0;for(let UA=0;UA<bA.length;UA++){const mA=bA[UA];if(UA>0&&SA.write(59),mA.length===0)continue;let aA=0;for(let rA=0;rA<mA.length;rA++){const pA=mA[rA];rA>0&&SA.write(44),aA=sA(SA,pA[0],aA),pA.length!==1&&(MA=sA(SA,pA[1],MA),NA=sA(SA,pA[2],NA),FA=sA(SA,pA[3],FA),pA.length!==4&&(qA=sA(SA,pA[4],qA)))}}return SA.flush()}eA.decode=GA,eA.decodeGeneratedRanges=dA,eA.decodeOriginalScopes=uA,eA.encode=KA,eA.encodeGeneratedRanges=DA,eA.encodeOriginalScopes=lA,Object.defineProperty(eA,"__esModule",{value:!0})}(n.exports)),n.exports}var i=s();class r{constructor(AA){this.bits=AA instanceof r?AA.bits.slice():[]}add(AA){this.bits[AA>>5]|=1<<(31&AA)}has(AA){return!!(this.bits[AA>>5]&1<<(31&AA))}}let o=class Tg{constructor(AA,tA,gA){this.start=AA,this.end=tA,this.original=gA,this.intro="",this.outro="",this.content=gA,this.storeName=!1,this.edited=!1,this.previous=null,this.next=null}appendLeft(AA){this.outro+=AA}appendRight(AA){this.intro=this.intro+AA}clone(){const AA=new Tg(this.start,this.end,this.original);return AA.intro=this.intro,AA.outro=this.outro,AA.content=this.content,AA.storeName=this.storeName,AA.edited=this.edited,AA}contains(AA){return this.start<AA&&AA<this.end}eachNext(AA){let tA=this;for(;tA;)AA(tA),tA=tA.next}eachPrevious(AA){let tA=this;for(;tA;)AA(tA),tA=tA.previous}edit(AA,tA,gA){return this.content=AA,gA||(this.intro="",this.outro=""),this.storeName=tA,this.edited=!0,this}prependLeft(AA){this.outro=AA+this.outro}prependRight(AA){this.intro=AA+this.intro}reset(){this.intro="",this.outro="",this.edited&&(this.content=this.original,this.storeName=!1,this.edited=!1)}split(AA){const tA=AA-this.start,gA=this.original.slice(0,tA),iA=this.original.slice(tA);this.original=gA;const IA=new Tg(AA,this.end,iA);return IA.outro=this.outro,this.outro="",this.end=AA,this.edited?(IA.edit("",!1),this.content=""):this.content=gA,IA.next=this.next,IA.next&&(IA.next.previous=IA),IA.previous=this,this.next=IA,IA}toString(){return this.intro+this.content+this.outro}trimEnd(AA){if(this.outro=this.outro.replace(AA,""),this.outro.length)return!0;const tA=this.content.replace(AA,"");return tA.length?(tA!==this.content&&(this.split(this.start+tA.length).edit("",void 0,!0),this.edited&&this.edit(tA,this.storeName,!0)),!0):(this.edit("",void 0,!0),this.intro=this.intro.replace(AA,""),!!this.intro.length||void 0)}trimStart(AA){if(this.intro=this.intro.replace(AA,""),this.intro.length)return!0;const tA=this.content.replace(AA,"");if(tA.length){if(tA!==this.content){const gA=this.split(this.end-tA.length);this.edited&&gA.edit(tA,this.storeName,!0),this.edit("",void 0,!0)}return!0}return this.edit("",void 0,!0),this.outro=this.outro.replace(AA,""),!!this.outro.length||void 0}};function a(){return typeof globalThis<"u"&&typeof globalThis.btoa=="function"?eA=>globalThis.btoa(unescape(encodeURIComponent(eA))):typeof Buffer=="function"?eA=>Buffer.from(eA,"utf-8").toString("base64"):()=>{throw new Error("Unsupported environment: `window.btoa` or `Buffer` should be supported.")}}const l=a();class c{constructor(AA){this.version=3,this.file=AA.file,this.sources=AA.sources,this.sourcesContent=AA.sourcesContent,this.names=AA.names,this.mappings=i.encode(AA.mappings),AA.x_google_ignoreList!==void 0&&(this.x_google_ignoreList=AA.x_google_ignoreList)}toString(){return JSON.stringify(this)}toUrl(){return"data:application/json;charset=utf-8;base64,"+l(this.toString())}}function d(eA,AA){const tA=eA.split(/[/\\]/),gA=AA.split(/[/\\]/);for(tA.pop();tA[0]===gA[0];)tA.shift(),gA.shift();if(tA.length){let iA=tA.length;for(;iA--;)tA[iA]=".."}return tA.concat(gA).join("/")}const u=Object.prototype.toString;function h(eA){return u.call(eA)==="[object Object]"}function p(eA){const AA=eA.split(`
|
|
63
63
|
`),tA=[];for(let gA=0,iA=0;gA<AA.length;gA++)tA.push(iA),iA+=AA[gA].length+1;return function(gA){let iA=0,IA=tA.length;for(;iA<IA;){const sA=iA+IA>>1;gA<tA[sA]?IA=sA:iA=sA+1}const BA=iA-1;return{line:BA,column:gA-tA[BA]}}}const f=/\w/;class m{constructor(AA){this.hires=AA,this.generatedCodeLine=0,this.generatedCodeColumn=0,this.raw=[],this.rawSegments=this.raw[this.generatedCodeLine]=[],this.pending=null}addEdit(AA,tA,gA,iA){if(tA.length){const IA=tA.length-1;let BA=tA.indexOf(`
|
|
64
64
|
`,0),sA=-1;for(;BA>=0&&IA>BA;){const CA=[this.generatedCodeColumn,AA,gA.line,gA.column];iA>=0&&CA.push(iA),this.rawSegments.push(CA),this.generatedCodeLine+=1,this.raw[this.generatedCodeLine]=this.rawSegments=[],this.generatedCodeColumn=0,sA=BA,BA=tA.indexOf(`
|
|
65
65
|
`,BA+1)}const QA=[this.generatedCodeColumn,AA,gA.line,gA.column];iA>=0&&QA.push(iA),this.rawSegments.push(QA),this.advance(tA.slice(sA+1))}else this.pending&&(this.rawSegments.push(this.pending),this.advance(tA));this.pending=null}addUneditedChunk(AA,tA,gA,iA,IA){let BA=tA.start,sA=!0,QA=!1;for(;BA<tA.end;){if(this.hires||sA||IA.has(BA)){const CA=[this.generatedCodeColumn,AA,iA.line,iA.column];this.hires==="boundary"?f.test(gA[BA])?QA||(this.rawSegments.push(CA),QA=!0):(this.rawSegments.push(CA),QA=!1):this.rawSegments.push(CA)}gA[BA]===`
|