@nil-/xit 0.1.10 → 0.1.11

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.
Files changed (2) hide show
  1. package/assets/bundler.js +13 -15
  2. package/package.json +1 -1
package/assets/bundler.js CHANGED
@@ -1,28 +1,23 @@
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"),USER_TAG="<nil_xit_user>",RESOURCE_TAG="<nil_xit_resource>",INTERNAL_TAG="<nil_xit_internal>",ROOT_FILE=eA=>`import { mount, unmount } from 'svelte';
5
- import Component from "${USER_TAG}${eA.replace(/\\/g,"/")}";
6
- export const action = (target, context) => {
7
- let ref = mount(Component, { target, context });
8
- return { destroy: () => unmount(ref) }
9
- };`,AMD_BANNER=()=>`const define = ([_, ...imports], func) => (async (import_map) => {
10
- const exports = {};
11
- func(exports, ...(await Promise.all(imports.map(i => import_map[i]()))));
12
- return exports;
13
- });
14
- export const nil_xit_fn = `;var astralIdentifierCodes=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,80,3,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,343,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,726,6,110,6,6,9,4759,9,787719,239],astralIdentifierStartCodes=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,2,60,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,42,9,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,496,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],nonASCIIidentifierChars="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・",nonASCIIidentifierStartChars="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟍꟐꟑꟓꟕ-Ƛꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",reservedWords={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},ecma5AndLessKeywords="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",keywords$1={5:ecma5AndLessKeywords,"5module":ecma5AndLessKeywords+" export import",6:ecma5AndLessKeywords+" const class extends export import super"},keywordRelationalOperator=/^in(stanceof)?$/,nonASCIIidentifierStart=new RegExp("["+nonASCIIidentifierStartChars+"]"),nonASCIIidentifier=new RegExp("["+nonASCIIidentifierStartChars+nonASCIIidentifierChars+"]");function isInAstralSet(eA,AA){for(var tA=65536,gA=0;gA<AA.length;gA+=2){if(tA+=AA[gA],tA>eA)return!1;if(tA+=AA[gA+1],tA>=eA)return!0}return!1}function isIdentifierStart(eA,AA){return eA<65?eA===36:eA<91?!0:eA<97?eA===95:eA<123?!0:eA<=65535?eA>=170&&nonASCIIidentifierStart.test(String.fromCharCode(eA)):AA===!1?!1:isInAstralSet(eA,astralIdentifierStartCodes)}function isIdentifierChar(eA,AA){return eA<48?eA===36:eA<58?!0:eA<65?!1:eA<91?!0:eA<97?eA===95:eA<123?!0:eA<=65535?eA>=170&&nonASCIIidentifier.test(String.fromCharCode(eA)):AA===!1?!1:isInAstralSet(eA,astralIdentifierStartCodes)||isInAstralSet(eA,astralIdentifierCodes)}var TokenType=function eA(AA,tA){tA===void 0&&(tA={}),this.label=AA,this.keyword=tA.keyword,this.beforeExpr=!!tA.beforeExpr,this.startsExpr=!!tA.startsExpr,this.isLoop=!!tA.isLoop,this.isAssign=!!tA.isAssign,this.prefix=!!tA.prefix,this.postfix=!!tA.postfix,this.binop=tA.binop||null,this.updateContext=null};function binop(eA,AA){return new TokenType(eA,{beforeExpr:!0,binop:AA})}var beforeExpr={beforeExpr:!0},startsExpr={startsExpr:!0},keywords={};function kw(eA,AA){return AA===void 0&&(AA={}),AA.keyword=eA,keywords[eA]=new TokenType(eA,AA)}var types$1={num:new TokenType("num",startsExpr),regexp:new TokenType("regexp",startsExpr),string:new TokenType("string",startsExpr),name:new TokenType("name",startsExpr),privateId:new TokenType("privateId",startsExpr),eof:new TokenType("eof"),bracketL:new TokenType("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new TokenType("]"),braceL:new TokenType("{",{beforeExpr:!0,startsExpr:!0}),braceR:new TokenType("}"),parenL:new TokenType("(",{beforeExpr:!0,startsExpr:!0}),parenR:new TokenType(")"),comma:new TokenType(",",beforeExpr),semi:new TokenType(";",beforeExpr),colon:new TokenType(":",beforeExpr),dot:new TokenType("."),question:new TokenType("?",beforeExpr),questionDot:new TokenType("?."),arrow:new TokenType("=>",beforeExpr),template:new TokenType("template"),invalidTemplate:new TokenType("invalidTemplate"),ellipsis:new TokenType("...",beforeExpr),backQuote:new TokenType("`",startsExpr),dollarBraceL:new TokenType("${",{beforeExpr:!0,startsExpr:!0}),eq:new TokenType("=",{beforeExpr:!0,isAssign:!0}),assign:new TokenType("_=",{beforeExpr:!0,isAssign:!0}),incDec:new TokenType("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new TokenType("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:binop("||",1),logicalAND:binop("&&",2),bitwiseOR:binop("|",3),bitwiseXOR:binop("^",4),bitwiseAND:binop("&",5),equality:binop("==/!=/===/!==",6),relational:binop("</>/<=/>=",7),bitShift:binop("<</>>/>>>",8),plusMin:new TokenType("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:binop("%",10),star:binop("*",10),slash:binop("/",10),starstar:new TokenType("**",{beforeExpr:!0}),coalesce:binop("??",1),_break:kw("break"),_case:kw("case",beforeExpr),_catch:kw("catch"),_continue:kw("continue"),_debugger:kw("debugger"),_default:kw("default",beforeExpr),_do:kw("do",{isLoop:!0,beforeExpr:!0}),_else:kw("else",beforeExpr),_finally:kw("finally"),_for:kw("for",{isLoop:!0}),_function:kw("function",startsExpr),_if:kw("if"),_return:kw("return",beforeExpr),_switch:kw("switch"),_throw:kw("throw",beforeExpr),_try:kw("try"),_var:kw("var"),_const:kw("const"),_while:kw("while",{isLoop:!0}),_with:kw("with"),_new:kw("new",{beforeExpr:!0,startsExpr:!0}),_this:kw("this",startsExpr),_super:kw("super",startsExpr),_class:kw("class",startsExpr),_extends:kw("extends",beforeExpr),_export:kw("export"),_import:kw("import",startsExpr),_null:kw("null",startsExpr),_true:kw("true",startsExpr),_false:kw("false",startsExpr),_in:kw("in",{beforeExpr:!0,binop:7}),_instanceof:kw("instanceof",{beforeExpr:!0,binop:7}),_typeof:kw("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:kw("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:kw("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},lineBreak=/\r\n?|\n|\u2028|\u2029/,lineBreakG=new RegExp(lineBreak.source,"g");function isNewLine(eA){return eA===10||eA===13||eA===8232||eA===8233}function nextLineBreak(eA,AA,tA){tA===void 0&&(tA=eA.length);for(var gA=AA;gA<tA;gA++){var iA=eA.charCodeAt(gA);if(isNewLine(iA))return gA<tA-1&&iA===13&&eA.charCodeAt(gA+1)===10?gA+2:gA+1}return-1}var nonASCIIwhitespace=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,skipWhiteSpace=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,ref=Object.prototype,hasOwnProperty=ref.hasOwnProperty,toString$1=ref.toString,hasOwn=Object.hasOwn||function(eA,AA){return hasOwnProperty.call(eA,AA)},isArray=Array.isArray||function(eA){return toString$1.call(eA)==="[object Array]"},regexpCache=Object.create(null);function wordsRegexp(eA){return regexpCache[eA]||(regexpCache[eA]=new RegExp("^(?:"+eA.replace(/ /g,"|")+")$"))}function codePointToString(eA){return eA<=65535?String.fromCharCode(eA):(eA-=65536,String.fromCharCode((eA>>10)+55296,(eA&1023)+56320))}var loneSurrogate=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,Position=function eA(AA,tA){this.line=AA,this.column=tA};Position.prototype.offset=function eA(AA){return new Position(this.line,this.column+AA)};var SourceLocation=function eA(AA,tA,gA){this.start=tA,this.end=gA,AA.sourceFile!==null&&(this.source=AA.sourceFile)};function getLineInfo(eA,AA){for(var tA=1,gA=0;;){var iA=nextLineBreak(eA,gA,AA);if(iA<0)return new Position(tA,AA-gA);++tA,gA=iA}}var defaultOptions={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},warnedAboutEcmaVersion=!1;function getOptions(eA){var AA={};for(var tA in defaultOptions)AA[tA]=eA&&hasOwn(eA,tA)?eA[tA]:defaultOptions[tA];if(AA.ecmaVersion==="latest"?AA.ecmaVersion=1e8:AA.ecmaVersion==null?(!warnedAboutEcmaVersion&&typeof console=="object"&&console.warn&&(warnedAboutEcmaVersion=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
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.
15
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(`
16
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,`
17
7
  `),cooked:null}):tA.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
18
- `),cooked:this.value},this.next(),tA.tail=this.type===types$1.backQuote,this.finishNode(tA,"TemplateElement")},pp$5.parseTemplate=function(eA){eA===void 0&&(eA={});var AA=eA.isTagged;AA===void 0&&(AA=!1);var tA=this.startNode();this.next(),tA.expressions=[];var gA=this.parseTemplateElement({isTagged:AA});for(tA.quasis=[gA];!gA.tail;)this.type===types$1.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(types$1.dollarBraceL),tA.expressions.push(this.parseExpression()),this.expect(types$1.braceR),tA.quasis.push(gA=this.parseTemplateElement({isTagged:AA}));return this.next(),this.finishNode(tA,"TemplateLiteral")},pp$5.isAsyncProp=function(eA){return!eA.computed&&eA.key.type==="Identifier"&&eA.key.name==="async"&&(this.type===types$1.name||this.type===types$1.num||this.type===types$1.string||this.type===types$1.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===types$1.star)&&!lineBreak.test(this.input.slice(this.lastTokEnd,this.start))},pp$5.parseObj=function(eA,AA){var tA=this.startNode(),gA=!0,iA={};for(tA.properties=[],this.next();!this.eat(types$1.braceR);){if(gA)gA=!1;else if(this.expect(types$1.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(types$1.braceR))break;var IA=this.parseProperty(eA,AA);eA||this.checkPropClash(IA,iA,AA),tA.properties.push(IA)}return this.finishNode(tA,eA?"ObjectPattern":"ObjectExpression")},pp$5.parseProperty=function(eA,AA){var tA=this.startNode(),gA,iA,IA,BA;if(this.options.ecmaVersion>=9&&this.eat(types$1.ellipsis))return eA?(tA.argument=this.parseIdent(!1),this.type===types$1.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(tA,"RestElement")):(tA.argument=this.parseMaybeAssign(!1,AA),this.type===types$1.comma&&AA&&AA.trailingComma<0&&(AA.trailingComma=this.start),this.finishNode(tA,"SpreadElement"));this.options.ecmaVersion>=6&&(tA.method=!1,tA.shorthand=!1,(eA||AA)&&(IA=this.start,BA=this.startLoc),eA||(gA=this.eat(types$1.star)));var sA=this.containsEsc;return this.parsePropertyName(tA),!eA&&!sA&&this.options.ecmaVersion>=8&&!gA&&this.isAsyncProp(tA)?(iA=!0,gA=this.options.ecmaVersion>=9&&this.eat(types$1.star),this.parsePropertyName(tA)):iA=!1,this.parsePropertyValue(tA,eA,gA,iA,IA,BA,AA,sA),this.finishNode(tA,"Property")},pp$5.parseGetterSetter=function(eA){eA.kind=eA.key.name,this.parsePropertyName(eA),eA.value=this.parseMethod(!1);var AA=eA.kind==="get"?0:1;if(eA.value.params.length!==AA){var tA=eA.value.start;eA.kind==="get"?this.raiseRecoverable(tA,"getter should have no params"):this.raiseRecoverable(tA,"setter should have exactly one param")}else eA.kind==="set"&&eA.value.params[0].type==="RestElement"&&this.raiseRecoverable(eA.value.params[0].start,"Setter cannot use rest params")},pp$5.parsePropertyValue=function(eA,AA,tA,gA,iA,IA,BA,sA){(tA||gA)&&this.type===types$1.colon&&this.unexpected(),this.eat(types$1.colon)?(eA.value=AA?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,BA),eA.kind="init"):this.options.ecmaVersion>=6&&this.type===types$1.parenL?(AA&&this.unexpected(),eA.kind="init",eA.method=!0,eA.value=this.parseMethod(tA,gA)):!AA&&!sA&&this.options.ecmaVersion>=5&&!eA.computed&&eA.key.type==="Identifier"&&(eA.key.name==="get"||eA.key.name==="set")&&this.type!==types$1.comma&&this.type!==types$1.braceR&&this.type!==types$1.eq?((tA||gA)&&this.unexpected(),this.parseGetterSetter(eA)):this.options.ecmaVersion>=6&&!eA.computed&&eA.key.type==="Identifier"?((tA||gA)&&this.unexpected(),this.checkUnreserved(eA.key),eA.key.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=iA),eA.kind="init",AA?eA.value=this.parseMaybeDefault(iA,IA,this.copyNode(eA.key)):this.type===types$1.eq&&BA?(BA.shorthandAssign<0&&(BA.shorthandAssign=this.start),eA.value=this.parseMaybeDefault(iA,IA,this.copyNode(eA.key))):eA.value=this.copyNode(eA.key),eA.shorthand=!0):this.unexpected()},pp$5.parsePropertyName=function(eA){if(this.options.ecmaVersion>=6){if(this.eat(types$1.bracketL))return eA.computed=!0,eA.key=this.parseMaybeAssign(),this.expect(types$1.bracketR),eA.key;eA.computed=!1}return eA.key=this.type===types$1.num||this.type===types$1.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")},pp$5.initFunction=function(eA){eA.id=null,this.options.ecmaVersion>=6&&(eA.generator=eA.expression=!1),this.options.ecmaVersion>=8&&(eA.async=!1)},pp$5.parseMethod=function(eA,AA,tA){var gA=this.startNode(),iA=this.yieldPos,IA=this.awaitPos,BA=this.awaitIdentPos;return this.initFunction(gA),this.options.ecmaVersion>=6&&(gA.generator=eA),this.options.ecmaVersion>=8&&(gA.async=!!AA),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(functionFlags(AA,gA.generator)|SCOPE_SUPER|(tA?SCOPE_DIRECT_SUPER:0)),this.expect(types$1.parenL),gA.params=this.parseBindingList(types$1.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(gA,!1,!0,!1),this.yieldPos=iA,this.awaitPos=IA,this.awaitIdentPos=BA,this.finishNode(gA,"FunctionExpression")},pp$5.parseArrowExpression=function(eA,AA,tA,gA){var iA=this.yieldPos,IA=this.awaitPos,BA=this.awaitIdentPos;return this.enterScope(functionFlags(tA,!1)|SCOPE_ARROW),this.initFunction(eA),this.options.ecmaVersion>=8&&(eA.async=!!tA),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,eA.params=this.toAssignableList(AA,!0),this.parseFunctionBody(eA,!0,!1,gA),this.yieldPos=iA,this.awaitPos=IA,this.awaitIdentPos=BA,this.finishNode(eA,"ArrowFunctionExpression")},pp$5.parseFunctionBody=function(eA,AA,tA,gA){var iA=AA&&this.type!==types$1.braceL,IA=this.strict,BA=!1;if(iA)eA.body=this.parseMaybeAssign(gA),eA.expression=!0,this.checkParams(eA,!1);else{var sA=this.options.ecmaVersion>=7&&!this.isSimpleParamList(eA.params);(!IA||sA)&&(BA=this.strictDirective(this.end),BA&&sA&&this.raiseRecoverable(eA.start,"Illegal 'use strict' directive in function with non-simple parameter list"));var QA=this.labels;this.labels=[],BA&&(this.strict=!0),this.checkParams(eA,!IA&&!BA&&!AA&&!tA&&this.isSimpleParamList(eA.params)),this.strict&&eA.id&&this.checkLValSimple(eA.id,BIND_OUTSIDE),eA.body=this.parseBlock(!1,void 0,BA&&!IA),eA.expression=!1,this.adaptDirectivePrologue(eA.body.body),this.labels=QA}this.exitScope()},pp$5.isSimpleParamList=function(eA){for(var AA=0,tA=eA;AA<tA.length;AA+=1){var gA=tA[AA];if(gA.type!=="Identifier")return!1}return!0},pp$5.checkParams=function(eA,AA){for(var tA=Object.create(null),gA=0,iA=eA.params;gA<iA.length;gA+=1){var IA=iA[gA];this.checkLValInnerPattern(IA,BIND_VAR,AA?null:tA)}},pp$5.parseExprList=function(eA,AA,tA,gA){for(var iA=[],IA=!0;!this.eat(eA);){if(IA)IA=!1;else if(this.expect(types$1.comma),AA&&this.afterTrailingComma(eA))break;var BA=void 0;tA&&this.type===types$1.comma?BA=null:this.type===types$1.ellipsis?(BA=this.parseSpread(gA),gA&&this.type===types$1.comma&&gA.trailingComma<0&&(gA.trailingComma=this.start)):BA=this.parseMaybeAssign(!1,gA),iA.push(BA)}return iA},pp$5.checkUnreserved=function(eA){var AA=eA.start,tA=eA.end,gA=eA.name;if(this.inGenerator&&gA==="yield"&&this.raiseRecoverable(AA,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&gA==="await"&&this.raiseRecoverable(AA,"Cannot use 'await' as identifier inside an async function"),this.currentThisScope().inClassFieldInit&&gA==="arguments"&&this.raiseRecoverable(AA,"Cannot use 'arguments' in class field initializer"),this.inClassStaticBlock&&(gA==="arguments"||gA==="await")&&this.raise(AA,"Cannot use "+gA+" in class static initialization block"),this.keywords.test(gA)&&this.raise(AA,"Unexpected keyword '"+gA+"'"),!(this.options.ecmaVersion<6&&this.input.slice(AA,tA).indexOf("\\")!==-1)){var iA=this.strict?this.reservedWordsStrict:this.reservedWords;iA.test(gA)&&(!this.inAsync&&gA==="await"&&this.raiseRecoverable(AA,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(AA,"The keyword '"+gA+"' is reserved"))}},pp$5.parseIdent=function(eA){var AA=this.parseIdentNode();return this.next(!!eA),this.finishNode(AA,"Identifier"),eA||(this.checkUnreserved(AA),AA.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=AA.start)),AA},pp$5.parseIdentNode=function(){var eA=this.startNode();return this.type===types$1.name?eA.name=this.value:this.type.keyword?(eA.name=this.type.keyword,(eA.name==="class"||eA.name==="function")&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46)&&this.context.pop(),this.type=types$1.name):this.unexpected(),eA},pp$5.parsePrivateIdent=function(){var eA=this.startNode();return this.type===types$1.privateId?eA.name=this.value:this.unexpected(),this.next(),this.finishNode(eA,"PrivateIdentifier"),this.options.checkPrivateFields&&(this.privateNameStack.length===0?this.raise(eA.start,"Private field '#"+eA.name+"' must be declared in an enclosing class"):this.privateNameStack[this.privateNameStack.length-1].used.push(eA)),eA},pp$5.parseYield=function(eA){this.yieldPos||(this.yieldPos=this.start);var AA=this.startNode();return this.next(),this.type===types$1.semi||this.canInsertSemicolon()||this.type!==types$1.star&&!this.type.startsExpr?(AA.delegate=!1,AA.argument=null):(AA.delegate=this.eat(types$1.star),AA.argument=this.parseMaybeAssign(eA)),this.finishNode(AA,"YieldExpression")},pp$5.parseAwait=function(eA){this.awaitPos||(this.awaitPos=this.start);var AA=this.startNode();return this.next(),AA.argument=this.parseMaybeUnary(null,!0,!1,eA),this.finishNode(AA,"AwaitExpression")};var pp$4=Parser$1.prototype;pp$4.raise=function(eA,AA){var tA=getLineInfo(this.input,eA);AA+=" ("+tA.line+":"+tA.column+")";var gA=new SyntaxError(AA);throw gA.pos=eA,gA.loc=tA,gA.raisedAt=this.pos,gA},pp$4.raiseRecoverable=pp$4.raise,pp$4.curPosition=function(){if(this.options.locations)return new Position(this.curLine,this.pos-this.lineStart)};var pp$3=Parser$1.prototype,Scope$1=function eA(AA){this.flags=AA,this.var=[],this.lexical=[],this.functions=[],this.inClassFieldInit=!1};pp$3.enterScope=function(eA){this.scopeStack.push(new Scope$1(eA))},pp$3.exitScope=function(){this.scopeStack.pop()},pp$3.treatFunctionsAsVarInScope=function(eA){return eA.flags&SCOPE_FUNCTION||!this.inModule&&eA.flags&SCOPE_TOP},pp$3.declareName=function(eA,AA,tA){var gA=!1;if(AA===BIND_LEXICAL){var iA=this.currentScope();gA=iA.lexical.indexOf(eA)>-1||iA.functions.indexOf(eA)>-1||iA.var.indexOf(eA)>-1,iA.lexical.push(eA),this.inModule&&iA.flags&SCOPE_TOP&&delete this.undefinedExports[eA]}else if(AA===BIND_SIMPLE_CATCH){var IA=this.currentScope();IA.lexical.push(eA)}else if(AA===BIND_FUNCTION){var BA=this.currentScope();this.treatFunctionsAsVar?gA=BA.lexical.indexOf(eA)>-1:gA=BA.lexical.indexOf(eA)>-1||BA.var.indexOf(eA)>-1,BA.functions.push(eA)}else for(var sA=this.scopeStack.length-1;sA>=0;--sA){var QA=this.scopeStack[sA];if(QA.lexical.indexOf(eA)>-1&&!(QA.flags&SCOPE_SIMPLE_CATCH&&QA.lexical[0]===eA)||!this.treatFunctionsAsVarInScope(QA)&&QA.functions.indexOf(eA)>-1){gA=!0;break}if(QA.var.push(eA),this.inModule&&QA.flags&SCOPE_TOP&&delete this.undefinedExports[eA],QA.flags&SCOPE_VAR)break}gA&&this.raiseRecoverable(tA,"Identifier '"+eA+"' has already been declared")},pp$3.checkLocalExport=function(eA){this.scopeStack[0].lexical.indexOf(eA.name)===-1&&this.scopeStack[0].var.indexOf(eA.name)===-1&&(this.undefinedExports[eA.name]=eA)},pp$3.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},pp$3.currentVarScope=function(){for(var eA=this.scopeStack.length-1;;eA--){var AA=this.scopeStack[eA];if(AA.flags&SCOPE_VAR)return AA}},pp$3.currentThisScope=function(){for(var eA=this.scopeStack.length-1;;eA--){var AA=this.scopeStack[eA];if(AA.flags&SCOPE_VAR&&!(AA.flags&SCOPE_ARROW))return AA}};var Node=function eA(AA,tA,gA){this.type="",this.start=tA,this.end=0,AA.options.locations&&(this.loc=new SourceLocation(AA,gA)),AA.options.directSourceFile&&(this.sourceFile=AA.options.directSourceFile),AA.options.ranges&&(this.range=[tA,0])},pp$2=Parser$1.prototype;pp$2.startNode=function(){return new Node(this,this.start,this.startLoc)},pp$2.startNodeAt=function(eA,AA){return new Node(this,eA,AA)};function finishNodeAt(eA,AA,tA,gA){return eA.type=AA,eA.end=tA,this.options.locations&&(eA.loc.end=gA),this.options.ranges&&(eA.range[1]=tA),eA}pp$2.finishNode=function(eA,AA){return finishNodeAt.call(this,eA,AA,this.lastTokEnd,this.lastTokEndLoc)},pp$2.finishNodeAt=function(eA,AA,tA,gA){return finishNodeAt.call(this,eA,AA,tA,gA)},pp$2.copyNode=function(eA){var AA=new Node(this,eA.start,this.startLoc);for(var tA in eA)AA[tA]=eA[tA];return AA};var ecma9BinaryProperties="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",ecma10BinaryProperties=ecma9BinaryProperties+" Extended_Pictographic",ecma11BinaryProperties=ecma10BinaryProperties,ecma12BinaryProperties=ecma11BinaryProperties+" EBase EComp EMod EPres ExtPict",ecma13BinaryProperties=ecma12BinaryProperties,ecma14BinaryProperties=ecma13BinaryProperties,unicodeBinaryProperties={9:ecma9BinaryProperties,10:ecma10BinaryProperties,11:ecma11BinaryProperties,12:ecma12BinaryProperties,13:ecma13BinaryProperties,14:ecma14BinaryProperties},ecma14BinaryPropertiesOfStrings="Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji",unicodeBinaryPropertiesOfStrings={9:"",10:"",11:"",12:"",13:"",14:ecma14BinaryPropertiesOfStrings},unicodeGeneralCategoryValues="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",ecma9ScriptValues="Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",ecma10ScriptValues=ecma9ScriptValues+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",ecma11ScriptValues=ecma10ScriptValues+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",ecma12ScriptValues=ecma11ScriptValues+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",ecma13ScriptValues=ecma12ScriptValues+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",ecma14ScriptValues=ecma13ScriptValues+" Hrkt Katakana_Or_Hiragana Kawi Nag_Mundari Nagm Unknown Zzzz",unicodeScriptValues={9:ecma9ScriptValues,10:ecma10ScriptValues,11:ecma11ScriptValues,12:ecma12ScriptValues,13:ecma13ScriptValues,14:ecma14ScriptValues},data={};function buildUnicodeData(eA){var AA=data[eA]={binary:wordsRegexp(unicodeBinaryProperties[eA]+" "+unicodeGeneralCategoryValues),binaryOfStrings:wordsRegexp(unicodeBinaryPropertiesOfStrings[eA]),nonBinary:{General_Category:wordsRegexp(unicodeGeneralCategoryValues),Script:wordsRegexp(unicodeScriptValues[eA])}};AA.nonBinary.Script_Extensions=AA.nonBinary.Script,AA.nonBinary.gc=AA.nonBinary.General_Category,AA.nonBinary.sc=AA.nonBinary.Script,AA.nonBinary.scx=AA.nonBinary.Script_Extensions}for(var i$3=0,list$2=[9,10,11,12,13,14];i$3<list$2.length;i$3+=1){var ecmaVersion=list$2[i$3];buildUnicodeData(ecmaVersion)}var pp$1=Parser$1.prototype,BranchID=function eA(AA,tA){this.parent=AA,this.base=tA||this};BranchID.prototype.separatedFrom=function eA(AA){for(var tA=this;tA;tA=tA.parent)for(var gA=AA;gA;gA=gA.parent)if(tA.base===gA.base&&tA!==gA)return!0;return!1},BranchID.prototype.sibling=function eA(){return new BranchID(this.parent,this.base)};var RegExpValidationState=function eA(AA){this.parser=AA,this.validFlags="gim"+(AA.options.ecmaVersion>=6?"uy":"")+(AA.options.ecmaVersion>=9?"s":"")+(AA.options.ecmaVersion>=13?"d":"")+(AA.options.ecmaVersion>=15?"v":""),this.unicodeProperties=data[AA.options.ecmaVersion>=14?14:AA.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchV=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=Object.create(null),this.backReferenceNames=[],this.branchID=null};RegExpValidationState.prototype.reset=function eA(AA,tA,gA){var iA=gA.indexOf("v")!==-1,IA=gA.indexOf("u")!==-1;this.start=AA|0,this.source=tA+"",this.flags=gA,iA&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=IA&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=IA&&this.parser.options.ecmaVersion>=9)},RegExpValidationState.prototype.raise=function eA(AA){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+AA)},RegExpValidationState.prototype.at=function eA(AA,tA){tA===void 0&&(tA=!1);var gA=this.source,iA=gA.length;if(AA>=iA)return-1;var IA=gA.charCodeAt(AA);if(!(tA||this.switchU)||IA<=55295||IA>=57344||AA+1>=iA)return IA;var BA=gA.charCodeAt(AA+1);return BA>=56320&&BA<=57343?(IA<<10)+BA-56613888:IA},RegExpValidationState.prototype.nextIndex=function eA(AA,tA){tA===void 0&&(tA=!1);var gA=this.source,iA=gA.length;if(AA>=iA)return iA;var IA=gA.charCodeAt(AA),BA;return!(tA||this.switchU)||IA<=55295||IA>=57344||AA+1>=iA||(BA=gA.charCodeAt(AA+1))<56320||BA>57343?AA+1:AA+2},RegExpValidationState.prototype.current=function eA(AA){return AA===void 0&&(AA=!1),this.at(this.pos,AA)},RegExpValidationState.prototype.lookahead=function eA(AA){return AA===void 0&&(AA=!1),this.at(this.nextIndex(this.pos,AA),AA)},RegExpValidationState.prototype.advance=function eA(AA){AA===void 0&&(AA=!1),this.pos=this.nextIndex(this.pos,AA)},RegExpValidationState.prototype.eat=function eA(AA,tA){return tA===void 0&&(tA=!1),this.current(tA)===AA?(this.advance(tA),!0):!1},RegExpValidationState.prototype.eatChars=function eA(AA,tA){tA===void 0&&(tA=!1);for(var gA=this.pos,iA=0,IA=AA;iA<IA.length;iA+=1){var BA=IA[iA],sA=this.at(gA,tA);if(sA===-1||sA!==BA)return!1;gA=this.nextIndex(gA,tA)}return this.pos=gA,!0},pp$1.validateRegExpFlags=function(eA){for(var AA=eA.validFlags,tA=eA.flags,gA=!1,iA=!1,IA=0;IA<tA.length;IA++){var BA=tA.charAt(IA);AA.indexOf(BA)===-1&&this.raise(eA.start,"Invalid regular expression flag"),tA.indexOf(BA,IA+1)>-1&&this.raise(eA.start,"Duplicate regular expression flag"),BA==="u"&&(gA=!0),BA==="v"&&(iA=!0)}this.options.ecmaVersion>=15&&gA&&iA&&this.raise(eA.start,"Invalid regular expression flag")};function hasProp(eA){for(var AA in eA)return!0;return!1}pp$1.validateRegExpPattern=function(eA){this.regexp_pattern(eA),!eA.switchN&&this.options.ecmaVersion>=9&&hasProp(eA.groupNames)&&(eA.switchN=!0,this.regexp_pattern(eA))},pp$1.regexp_pattern=function(eA){eA.pos=0,eA.lastIntValue=0,eA.lastStringValue="",eA.lastAssertionIsQuantifiable=!1,eA.numCapturingParens=0,eA.maxBackReference=0,eA.groupNames=Object.create(null),eA.backReferenceNames.length=0,eA.branchID=null,this.regexp_disjunction(eA),eA.pos!==eA.source.length&&(eA.eat(41)&&eA.raise("Unmatched ')'"),(eA.eat(93)||eA.eat(125))&&eA.raise("Lone quantifier brackets")),eA.maxBackReference>eA.numCapturingParens&&eA.raise("Invalid escape");for(var AA=0,tA=eA.backReferenceNames;AA<tA.length;AA+=1){var gA=tA[AA];eA.groupNames[gA]||eA.raise("Invalid named capture referenced")}},pp$1.regexp_disjunction=function(eA){var AA=this.options.ecmaVersion>=16;for(AA&&(eA.branchID=new BranchID(eA.branchID,null)),this.regexp_alternative(eA);eA.eat(124);)AA&&(eA.branchID=eA.branchID.sibling()),this.regexp_alternative(eA);AA&&(eA.branchID=eA.branchID.parent),this.regexp_eatQuantifier(eA,!0)&&eA.raise("Nothing to repeat"),eA.eat(123)&&eA.raise("Lone quantifier brackets")},pp$1.regexp_alternative=function(eA){for(;eA.pos<eA.source.length&&this.regexp_eatTerm(eA););},pp$1.regexp_eatTerm=function(eA){return this.regexp_eatAssertion(eA)?(eA.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(eA)&&eA.switchU&&eA.raise("Invalid quantifier"),!0):(eA.switchU?this.regexp_eatAtom(eA):this.regexp_eatExtendedAtom(eA))?(this.regexp_eatQuantifier(eA),!0):!1},pp$1.regexp_eatAssertion=function(eA){var AA=eA.pos;if(eA.lastAssertionIsQuantifiable=!1,eA.eat(94)||eA.eat(36))return!0;if(eA.eat(92)){if(eA.eat(66)||eA.eat(98))return!0;eA.pos=AA}if(eA.eat(40)&&eA.eat(63)){var tA=!1;if(this.options.ecmaVersion>=9&&(tA=eA.eat(60)),eA.eat(61)||eA.eat(33))return this.regexp_disjunction(eA),eA.eat(41)||eA.raise("Unterminated group"),eA.lastAssertionIsQuantifiable=!tA,!0}return eA.pos=AA,!1},pp$1.regexp_eatQuantifier=function(eA,AA){return AA===void 0&&(AA=!1),this.regexp_eatQuantifierPrefix(eA,AA)?(eA.eat(63),!0):!1},pp$1.regexp_eatQuantifierPrefix=function(eA,AA){return eA.eat(42)||eA.eat(43)||eA.eat(63)||this.regexp_eatBracedQuantifier(eA,AA)},pp$1.regexp_eatBracedQuantifier=function(eA,AA){var tA=eA.pos;if(eA.eat(123)){var gA=0,iA=-1;if(this.regexp_eatDecimalDigits(eA)&&(gA=eA.lastIntValue,eA.eat(44)&&this.regexp_eatDecimalDigits(eA)&&(iA=eA.lastIntValue),eA.eat(125)))return iA!==-1&&iA<gA&&!AA&&eA.raise("numbers out of order in {} quantifier"),!0;eA.switchU&&!AA&&eA.raise("Incomplete quantifier"),eA.pos=tA}return!1},pp$1.regexp_eatAtom=function(eA){return this.regexp_eatPatternCharacters(eA)||eA.eat(46)||this.regexp_eatReverseSolidusAtomEscape(eA)||this.regexp_eatCharacterClass(eA)||this.regexp_eatUncapturingGroup(eA)||this.regexp_eatCapturingGroup(eA)},pp$1.regexp_eatReverseSolidusAtomEscape=function(eA){var AA=eA.pos;if(eA.eat(92)){if(this.regexp_eatAtomEscape(eA))return!0;eA.pos=AA}return!1},pp$1.regexp_eatUncapturingGroup=function(eA){var AA=eA.pos;if(eA.eat(40)){if(eA.eat(63)&&eA.eat(58)){if(this.regexp_disjunction(eA),eA.eat(41))return!0;eA.raise("Unterminated group")}eA.pos=AA}return!1},pp$1.regexp_eatCapturingGroup=function(eA){if(eA.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(eA):eA.current()===63&&eA.raise("Invalid group"),this.regexp_disjunction(eA),eA.eat(41))return eA.numCapturingParens+=1,!0;eA.raise("Unterminated group")}return!1},pp$1.regexp_eatExtendedAtom=function(eA){return eA.eat(46)||this.regexp_eatReverseSolidusAtomEscape(eA)||this.regexp_eatCharacterClass(eA)||this.regexp_eatUncapturingGroup(eA)||this.regexp_eatCapturingGroup(eA)||this.regexp_eatInvalidBracedQuantifier(eA)||this.regexp_eatExtendedPatternCharacter(eA)},pp$1.regexp_eatInvalidBracedQuantifier=function(eA){return this.regexp_eatBracedQuantifier(eA,!0)&&eA.raise("Nothing to repeat"),!1},pp$1.regexp_eatSyntaxCharacter=function(eA){var AA=eA.current();return isSyntaxCharacter(AA)?(eA.lastIntValue=AA,eA.advance(),!0):!1};function isSyntaxCharacter(eA){return eA===36||eA>=40&&eA<=43||eA===46||eA===63||eA>=91&&eA<=94||eA>=123&&eA<=125}pp$1.regexp_eatPatternCharacters=function(eA){for(var AA=eA.pos,tA=0;(tA=eA.current())!==-1&&!isSyntaxCharacter(tA);)eA.advance();return eA.pos!==AA},pp$1.regexp_eatExtendedPatternCharacter=function(eA){var AA=eA.current();return AA!==-1&&AA!==36&&!(AA>=40&&AA<=43)&&AA!==46&&AA!==63&&AA!==91&&AA!==94&&AA!==124?(eA.advance(),!0):!1},pp$1.regexp_groupSpecifier=function(eA){if(eA.eat(63)){this.regexp_eatGroupName(eA)||eA.raise("Invalid group");var AA=this.options.ecmaVersion>=16,tA=eA.groupNames[eA.lastStringValue];if(tA)if(AA)for(var gA=0,iA=tA;gA<iA.length;gA+=1){var IA=iA[gA];IA.separatedFrom(eA.branchID)||eA.raise("Duplicate capture group name")}else eA.raise("Duplicate capture group name");AA?(tA||(eA.groupNames[eA.lastStringValue]=[])).push(eA.branchID):eA.groupNames[eA.lastStringValue]=!0}},pp$1.regexp_eatGroupName=function(eA){if(eA.lastStringValue="",eA.eat(60)){if(this.regexp_eatRegExpIdentifierName(eA)&&eA.eat(62))return!0;eA.raise("Invalid capture group name")}return!1},pp$1.regexp_eatRegExpIdentifierName=function(eA){if(eA.lastStringValue="",this.regexp_eatRegExpIdentifierStart(eA)){for(eA.lastStringValue+=codePointToString(eA.lastIntValue);this.regexp_eatRegExpIdentifierPart(eA);)eA.lastStringValue+=codePointToString(eA.lastIntValue);return!0}return!1},pp$1.regexp_eatRegExpIdentifierStart=function(eA){var AA=eA.pos,tA=this.options.ecmaVersion>=11,gA=eA.current(tA);return eA.advance(tA),gA===92&&this.regexp_eatRegExpUnicodeEscapeSequence(eA,tA)&&(gA=eA.lastIntValue),isRegExpIdentifierStart(gA)?(eA.lastIntValue=gA,!0):(eA.pos=AA,!1)};function isRegExpIdentifierStart(eA){return isIdentifierStart(eA,!0)||eA===36||eA===95}pp$1.regexp_eatRegExpIdentifierPart=function(eA){var AA=eA.pos,tA=this.options.ecmaVersion>=11,gA=eA.current(tA);return eA.advance(tA),gA===92&&this.regexp_eatRegExpUnicodeEscapeSequence(eA,tA)&&(gA=eA.lastIntValue),isRegExpIdentifierPart(gA)?(eA.lastIntValue=gA,!0):(eA.pos=AA,!1)};function isRegExpIdentifierPart(eA){return isIdentifierChar(eA,!0)||eA===36||eA===95||eA===8204||eA===8205}pp$1.regexp_eatAtomEscape=function(eA){return this.regexp_eatBackReference(eA)||this.regexp_eatCharacterClassEscape(eA)||this.regexp_eatCharacterEscape(eA)||eA.switchN&&this.regexp_eatKGroupName(eA)?!0:(eA.switchU&&(eA.current()===99&&eA.raise("Invalid unicode escape"),eA.raise("Invalid escape")),!1)},pp$1.regexp_eatBackReference=function(eA){var AA=eA.pos;if(this.regexp_eatDecimalEscape(eA)){var tA=eA.lastIntValue;if(eA.switchU)return tA>eA.maxBackReference&&(eA.maxBackReference=tA),!0;if(tA<=eA.numCapturingParens)return!0;eA.pos=AA}return!1},pp$1.regexp_eatKGroupName=function(eA){if(eA.eat(107)){if(this.regexp_eatGroupName(eA))return eA.backReferenceNames.push(eA.lastStringValue),!0;eA.raise("Invalid named reference")}return!1},pp$1.regexp_eatCharacterEscape=function(eA){return this.regexp_eatControlEscape(eA)||this.regexp_eatCControlLetter(eA)||this.regexp_eatZero(eA)||this.regexp_eatHexEscapeSequence(eA)||this.regexp_eatRegExpUnicodeEscapeSequence(eA,!1)||!eA.switchU&&this.regexp_eatLegacyOctalEscapeSequence(eA)||this.regexp_eatIdentityEscape(eA)},pp$1.regexp_eatCControlLetter=function(eA){var AA=eA.pos;if(eA.eat(99)){if(this.regexp_eatControlLetter(eA))return!0;eA.pos=AA}return!1},pp$1.regexp_eatZero=function(eA){return eA.current()===48&&!isDecimalDigit(eA.lookahead())?(eA.lastIntValue=0,eA.advance(),!0):!1},pp$1.regexp_eatControlEscape=function(eA){var AA=eA.current();return AA===116?(eA.lastIntValue=9,eA.advance(),!0):AA===110?(eA.lastIntValue=10,eA.advance(),!0):AA===118?(eA.lastIntValue=11,eA.advance(),!0):AA===102?(eA.lastIntValue=12,eA.advance(),!0):AA===114?(eA.lastIntValue=13,eA.advance(),!0):!1},pp$1.regexp_eatControlLetter=function(eA){var AA=eA.current();return isControlLetter(AA)?(eA.lastIntValue=AA%32,eA.advance(),!0):!1};function isControlLetter(eA){return eA>=65&&eA<=90||eA>=97&&eA<=122}pp$1.regexp_eatRegExpUnicodeEscapeSequence=function(eA,AA){AA===void 0&&(AA=!1);var tA=eA.pos,gA=AA||eA.switchU;if(eA.eat(117)){if(this.regexp_eatFixedHexDigits(eA,4)){var iA=eA.lastIntValue;if(gA&&iA>=55296&&iA<=56319){var IA=eA.pos;if(eA.eat(92)&&eA.eat(117)&&this.regexp_eatFixedHexDigits(eA,4)){var BA=eA.lastIntValue;if(BA>=56320&&BA<=57343)return eA.lastIntValue=(iA-55296)*1024+(BA-56320)+65536,!0}eA.pos=IA,eA.lastIntValue=iA}return!0}if(gA&&eA.eat(123)&&this.regexp_eatHexDigits(eA)&&eA.eat(125)&&isValidUnicode(eA.lastIntValue))return!0;gA&&eA.raise("Invalid unicode escape"),eA.pos=tA}return!1};function isValidUnicode(eA){return eA>=0&&eA<=1114111}pp$1.regexp_eatIdentityEscape=function(eA){if(eA.switchU)return this.regexp_eatSyntaxCharacter(eA)?!0:eA.eat(47)?(eA.lastIntValue=47,!0):!1;var AA=eA.current();return AA!==99&&(!eA.switchN||AA!==107)?(eA.lastIntValue=AA,eA.advance(),!0):!1},pp$1.regexp_eatDecimalEscape=function(eA){eA.lastIntValue=0;var AA=eA.current();if(AA>=49&&AA<=57){do eA.lastIntValue=10*eA.lastIntValue+(AA-48),eA.advance();while((AA=eA.current())>=48&&AA<=57);return!0}return!1};var CharSetNone=0,CharSetOk=1,CharSetString=2;pp$1.regexp_eatCharacterClassEscape=function(eA){var AA=eA.current();if(isCharacterClassEscape(AA))return eA.lastIntValue=-1,eA.advance(),CharSetOk;var tA=!1;if(eA.switchU&&this.options.ecmaVersion>=9&&((tA=AA===80)||AA===112)){eA.lastIntValue=-1,eA.advance();var gA;if(eA.eat(123)&&(gA=this.regexp_eatUnicodePropertyValueExpression(eA))&&eA.eat(125))return tA&&gA===CharSetString&&eA.raise("Invalid property name"),gA;eA.raise("Invalid property name")}return CharSetNone};function isCharacterClassEscape(eA){return eA===100||eA===68||eA===115||eA===83||eA===119||eA===87}pp$1.regexp_eatUnicodePropertyValueExpression=function(eA){var AA=eA.pos;if(this.regexp_eatUnicodePropertyName(eA)&&eA.eat(61)){var tA=eA.lastStringValue;if(this.regexp_eatUnicodePropertyValue(eA)){var gA=eA.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(eA,tA,gA),CharSetOk}}if(eA.pos=AA,this.regexp_eatLoneUnicodePropertyNameOrValue(eA)){var iA=eA.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(eA,iA)}return CharSetNone},pp$1.regexp_validateUnicodePropertyNameAndValue=function(eA,AA,tA){hasOwn(eA.unicodeProperties.nonBinary,AA)||eA.raise("Invalid property name"),eA.unicodeProperties.nonBinary[AA].test(tA)||eA.raise("Invalid property value")},pp$1.regexp_validateUnicodePropertyNameOrValue=function(eA,AA){if(eA.unicodeProperties.binary.test(AA))return CharSetOk;if(eA.switchV&&eA.unicodeProperties.binaryOfStrings.test(AA))return CharSetString;eA.raise("Invalid property name")},pp$1.regexp_eatUnicodePropertyName=function(eA){var AA=0;for(eA.lastStringValue="";isUnicodePropertyNameCharacter(AA=eA.current());)eA.lastStringValue+=codePointToString(AA),eA.advance();return eA.lastStringValue!==""};function isUnicodePropertyNameCharacter(eA){return isControlLetter(eA)||eA===95}pp$1.regexp_eatUnicodePropertyValue=function(eA){var AA=0;for(eA.lastStringValue="";isUnicodePropertyValueCharacter(AA=eA.current());)eA.lastStringValue+=codePointToString(AA),eA.advance();return eA.lastStringValue!==""};function isUnicodePropertyValueCharacter(eA){return isUnicodePropertyNameCharacter(eA)||isDecimalDigit(eA)}pp$1.regexp_eatLoneUnicodePropertyNameOrValue=function(eA){return this.regexp_eatUnicodePropertyValue(eA)},pp$1.regexp_eatCharacterClass=function(eA){if(eA.eat(91)){var AA=eA.eat(94),tA=this.regexp_classContents(eA);return eA.eat(93)||eA.raise("Unterminated character class"),AA&&tA===CharSetString&&eA.raise("Negated character class may contain strings"),!0}return!1},pp$1.regexp_classContents=function(eA){return eA.current()===93?CharSetOk:eA.switchV?this.regexp_classSetExpression(eA):(this.regexp_nonEmptyClassRanges(eA),CharSetOk)},pp$1.regexp_nonEmptyClassRanges=function(eA){for(;this.regexp_eatClassAtom(eA);){var AA=eA.lastIntValue;if(eA.eat(45)&&this.regexp_eatClassAtom(eA)){var tA=eA.lastIntValue;eA.switchU&&(AA===-1||tA===-1)&&eA.raise("Invalid character class"),AA!==-1&&tA!==-1&&AA>tA&&eA.raise("Range out of order in character class")}}},pp$1.regexp_eatClassAtom=function(eA){var AA=eA.pos;if(eA.eat(92)){if(this.regexp_eatClassEscape(eA))return!0;if(eA.switchU){var tA=eA.current();(tA===99||isOctalDigit(tA))&&eA.raise("Invalid class escape"),eA.raise("Invalid escape")}eA.pos=AA}var gA=eA.current();return gA!==93?(eA.lastIntValue=gA,eA.advance(),!0):!1},pp$1.regexp_eatClassEscape=function(eA){var AA=eA.pos;if(eA.eat(98))return eA.lastIntValue=8,!0;if(eA.switchU&&eA.eat(45))return eA.lastIntValue=45,!0;if(!eA.switchU&&eA.eat(99)){if(this.regexp_eatClassControlLetter(eA))return!0;eA.pos=AA}return this.regexp_eatCharacterClassEscape(eA)||this.regexp_eatCharacterEscape(eA)},pp$1.regexp_classSetExpression=function(eA){var AA=CharSetOk,tA;if(!this.regexp_eatClassSetRange(eA))if(tA=this.regexp_eatClassSetOperand(eA)){tA===CharSetString&&(AA=CharSetString);for(var gA=eA.pos;eA.eatChars([38,38]);){if(eA.current()!==38&&(tA=this.regexp_eatClassSetOperand(eA))){tA!==CharSetString&&(AA=CharSetOk);continue}eA.raise("Invalid character in character class")}if(gA!==eA.pos)return AA;for(;eA.eatChars([45,45]);)this.regexp_eatClassSetOperand(eA)||eA.raise("Invalid character in character class");if(gA!==eA.pos)return AA}else eA.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(eA)){if(tA=this.regexp_eatClassSetOperand(eA),!tA)return AA;tA===CharSetString&&(AA=CharSetString)}},pp$1.regexp_eatClassSetRange=function(eA){var AA=eA.pos;if(this.regexp_eatClassSetCharacter(eA)){var tA=eA.lastIntValue;if(eA.eat(45)&&this.regexp_eatClassSetCharacter(eA)){var gA=eA.lastIntValue;return tA!==-1&&gA!==-1&&tA>gA&&eA.raise("Range out of order in character class"),!0}eA.pos=AA}return!1},pp$1.regexp_eatClassSetOperand=function(eA){return this.regexp_eatClassSetCharacter(eA)?CharSetOk:this.regexp_eatClassStringDisjunction(eA)||this.regexp_eatNestedClass(eA)},pp$1.regexp_eatNestedClass=function(eA){var AA=eA.pos;if(eA.eat(91)){var tA=eA.eat(94),gA=this.regexp_classContents(eA);if(eA.eat(93))return tA&&gA===CharSetString&&eA.raise("Negated character class may contain strings"),gA;eA.pos=AA}if(eA.eat(92)){var iA=this.regexp_eatCharacterClassEscape(eA);if(iA)return iA;eA.pos=AA}return null},pp$1.regexp_eatClassStringDisjunction=function(eA){var AA=eA.pos;if(eA.eatChars([92,113])){if(eA.eat(123)){var tA=this.regexp_classStringDisjunctionContents(eA);if(eA.eat(125))return tA}else eA.raise("Invalid escape");eA.pos=AA}return null},pp$1.regexp_classStringDisjunctionContents=function(eA){for(var AA=this.regexp_classString(eA);eA.eat(124);)this.regexp_classString(eA)===CharSetString&&(AA=CharSetString);return AA},pp$1.regexp_classString=function(eA){for(var AA=0;this.regexp_eatClassSetCharacter(eA);)AA++;return AA===1?CharSetOk:CharSetString},pp$1.regexp_eatClassSetCharacter=function(eA){var AA=eA.pos;if(eA.eat(92))return this.regexp_eatCharacterEscape(eA)||this.regexp_eatClassSetReservedPunctuator(eA)?!0:eA.eat(98)?(eA.lastIntValue=8,!0):(eA.pos=AA,!1);var tA=eA.current();return tA<0||tA===eA.lookahead()&&isClassSetReservedDoublePunctuatorCharacter(tA)||isClassSetSyntaxCharacter(tA)?!1:(eA.advance(),eA.lastIntValue=tA,!0)};function isClassSetReservedDoublePunctuatorCharacter(eA){return eA===33||eA>=35&&eA<=38||eA>=42&&eA<=44||eA===46||eA>=58&&eA<=64||eA===94||eA===96||eA===126}function isClassSetSyntaxCharacter(eA){return eA===40||eA===41||eA===45||eA===47||eA>=91&&eA<=93||eA>=123&&eA<=125}pp$1.regexp_eatClassSetReservedPunctuator=function(eA){var AA=eA.current();return isClassSetReservedPunctuator(AA)?(eA.lastIntValue=AA,eA.advance(),!0):!1};function isClassSetReservedPunctuator(eA){return eA===33||eA===35||eA===37||eA===38||eA===44||eA===45||eA>=58&&eA<=62||eA===64||eA===96||eA===126}pp$1.regexp_eatClassControlLetter=function(eA){var AA=eA.current();return isDecimalDigit(AA)||AA===95?(eA.lastIntValue=AA%32,eA.advance(),!0):!1},pp$1.regexp_eatHexEscapeSequence=function(eA){var AA=eA.pos;if(eA.eat(120)){if(this.regexp_eatFixedHexDigits(eA,2))return!0;eA.switchU&&eA.raise("Invalid escape"),eA.pos=AA}return!1},pp$1.regexp_eatDecimalDigits=function(eA){var AA=eA.pos,tA=0;for(eA.lastIntValue=0;isDecimalDigit(tA=eA.current());)eA.lastIntValue=10*eA.lastIntValue+(tA-48),eA.advance();return eA.pos!==AA};function isDecimalDigit(eA){return eA>=48&&eA<=57}pp$1.regexp_eatHexDigits=function(eA){var AA=eA.pos,tA=0;for(eA.lastIntValue=0;isHexDigit(tA=eA.current());)eA.lastIntValue=16*eA.lastIntValue+hexToInt(tA),eA.advance();return eA.pos!==AA};function isHexDigit(eA){return eA>=48&&eA<=57||eA>=65&&eA<=70||eA>=97&&eA<=102}function hexToInt(eA){return eA>=65&&eA<=70?10+(eA-65):eA>=97&&eA<=102?10+(eA-97):eA-48}pp$1.regexp_eatLegacyOctalEscapeSequence=function(eA){if(this.regexp_eatOctalDigit(eA)){var AA=eA.lastIntValue;if(this.regexp_eatOctalDigit(eA)){var tA=eA.lastIntValue;AA<=3&&this.regexp_eatOctalDigit(eA)?eA.lastIntValue=AA*64+tA*8+eA.lastIntValue:eA.lastIntValue=AA*8+tA}else eA.lastIntValue=AA;return!0}return!1},pp$1.regexp_eatOctalDigit=function(eA){var AA=eA.current();return isOctalDigit(AA)?(eA.lastIntValue=AA-48,eA.advance(),!0):(eA.lastIntValue=0,!1)};function isOctalDigit(eA){return eA>=48&&eA<=55}pp$1.regexp_eatFixedHexDigits=function(eA,AA){var tA=eA.pos;eA.lastIntValue=0;for(var gA=0;gA<AA;++gA){var iA=eA.current();if(!isHexDigit(iA))return eA.pos=tA,!1;eA.lastIntValue=16*eA.lastIntValue+hexToInt(iA),eA.advance()}return!0};var Token=function eA(AA){this.type=AA.type,this.value=AA.value,this.start=AA.start,this.end=AA.end,AA.options.locations&&(this.loc=new SourceLocation(AA,AA.startLoc,AA.endLoc)),AA.options.ranges&&(this.range=[AA.start,AA.end])},pp=Parser$1.prototype;pp.next=function(eA){!eA&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new Token(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},pp.getToken=function(){return this.next(),new Token(this)},typeof Symbol<"u"&&(pp[Symbol.iterator]=function(){var eA=this;return{next:function(){var AA=eA.getToken();return{done:AA.type===types$1.eof,value:AA}}}}),pp.nextToken=function(){var eA=this.curContext();if((!eA||!eA.preserveSpace)&&this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length)return this.finishToken(types$1.eof);if(eA.override)return eA.override(this);this.readToken(this.fullCharCodeAtPos())},pp.readToken=function(eA){return isIdentifierStart(eA,this.options.ecmaVersion>=6)||eA===92?this.readWord():this.getTokenFromCode(eA)},pp.fullCharCodeAtPos=function(){var eA=this.input.charCodeAt(this.pos);if(eA<=55295||eA>=56320)return eA;var AA=this.input.charCodeAt(this.pos+1);return AA<=56319||AA>=57344?eA:(eA<<10)+AA-56613888},pp.skipBlockComment=function(){var eA=this.options.onComment&&this.curPosition(),AA=this.pos,tA=this.input.indexOf("*/",this.pos+=2);if(tA===-1&&this.raise(this.pos-2,"Unterminated comment"),this.pos=tA+2,this.options.locations)for(var gA=void 0,iA=AA;(gA=nextLineBreak(this.input,iA,this.pos))>-1;)++this.curLine,iA=this.lineStart=gA;this.options.onComment&&this.options.onComment(!0,this.input.slice(AA+2,tA),AA,this.pos,eA,this.curPosition())},pp.skipLineComment=function(eA){for(var AA=this.pos,tA=this.options.onComment&&this.curPosition(),gA=this.input.charCodeAt(this.pos+=eA);this.pos<this.input.length&&!isNewLine(gA);)gA=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(AA+eA,this.pos),AA,this.pos,tA,this.curPosition())},pp.skipSpace=function(){A:for(;this.pos<this.input.length;){var eA=this.input.charCodeAt(this.pos);switch(eA){case 32:case 160:++this.pos;break;case 13:this.input.charCodeAt(this.pos+1)===10&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break A}break;default:if(eA>8&&eA<14||eA>=5760&&nonASCIIwhitespace.test(String.fromCharCode(eA)))++this.pos;else break A}}},pp.finishToken=function(eA,AA){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var tA=this.type;this.type=eA,this.value=AA,this.updateContext(tA)},pp.readToken_dot=function(){var eA=this.input.charCodeAt(this.pos+1);if(eA>=48&&eA<=57)return this.readNumber(!0);var AA=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&eA===46&&AA===46?(this.pos+=3,this.finishToken(types$1.ellipsis)):(++this.pos,this.finishToken(types$1.dot))},pp.readToken_slash=function(){var eA=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):eA===61?this.finishOp(types$1.assign,2):this.finishOp(types$1.slash,1)},pp.readToken_mult_modulo_exp=function(eA){var AA=this.input.charCodeAt(this.pos+1),tA=1,gA=eA===42?types$1.star:types$1.modulo;return this.options.ecmaVersion>=7&&eA===42&&AA===42&&(++tA,gA=types$1.starstar,AA=this.input.charCodeAt(this.pos+2)),AA===61?this.finishOp(types$1.assign,tA+1):this.finishOp(gA,tA)},pp.readToken_pipe_amp=function(eA){var AA=this.input.charCodeAt(this.pos+1);if(AA===eA){if(this.options.ecmaVersion>=12){var tA=this.input.charCodeAt(this.pos+2);if(tA===61)return this.finishOp(types$1.assign,3)}return this.finishOp(eA===124?types$1.logicalOR:types$1.logicalAND,2)}return AA===61?this.finishOp(types$1.assign,2):this.finishOp(eA===124?types$1.bitwiseOR:types$1.bitwiseAND,1)},pp.readToken_caret=function(){var eA=this.input.charCodeAt(this.pos+1);return eA===61?this.finishOp(types$1.assign,2):this.finishOp(types$1.bitwiseXOR,1)},pp.readToken_plus_min=function(eA){var AA=this.input.charCodeAt(this.pos+1);return AA===eA?AA===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||lineBreak.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(types$1.incDec,2):AA===61?this.finishOp(types$1.assign,2):this.finishOp(types$1.plusMin,1)},pp.readToken_lt_gt=function(eA){var AA=this.input.charCodeAt(this.pos+1),tA=1;return AA===eA?(tA=eA===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+tA)===61?this.finishOp(types$1.assign,tA+1):this.finishOp(types$1.bitShift,tA)):AA===33&&eA===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45?(this.skipLineComment(4),this.skipSpace(),this.nextToken()):(AA===61&&(tA=2),this.finishOp(types$1.relational,tA))},pp.readToken_eq_excl=function(eA){var AA=this.input.charCodeAt(this.pos+1);return AA===61?this.finishOp(types$1.equality,this.input.charCodeAt(this.pos+2)===61?3:2):eA===61&&AA===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(types$1.arrow)):this.finishOp(eA===61?types$1.eq:types$1.prefix,1)},pp.readToken_question=function(){var eA=this.options.ecmaVersion;if(eA>=11){var AA=this.input.charCodeAt(this.pos+1);if(AA===46){var tA=this.input.charCodeAt(this.pos+2);if(tA<48||tA>57)return this.finishOp(types$1.questionDot,2)}if(AA===63){if(eA>=12){var gA=this.input.charCodeAt(this.pos+2);if(gA===61)return this.finishOp(types$1.assign,3)}return this.finishOp(types$1.coalesce,2)}}return this.finishOp(types$1.question,1)},pp.readToken_numberSign=function(){var eA=this.options.ecmaVersion,AA=35;if(eA>=13&&(++this.pos,AA=this.fullCharCodeAtPos(),isIdentifierStart(AA,!0)||AA===92))return this.finishToken(types$1.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+codePointToString(AA)+"'")},pp.getTokenFromCode=function(eA){switch(eA){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(types$1.parenL);case 41:return++this.pos,this.finishToken(types$1.parenR);case 59:return++this.pos,this.finishToken(types$1.semi);case 44:return++this.pos,this.finishToken(types$1.comma);case 91:return++this.pos,this.finishToken(types$1.bracketL);case 93:return++this.pos,this.finishToken(types$1.bracketR);case 123:return++this.pos,this.finishToken(types$1.braceL);case 125:return++this.pos,this.finishToken(types$1.braceR);case 58:return++this.pos,this.finishToken(types$1.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(types$1.backQuote);case 48:var AA=this.input.charCodeAt(this.pos+1);if(AA===120||AA===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(AA===111||AA===79)return this.readRadixNumber(8);if(AA===98||AA===66)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(eA);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(eA);case 124:case 38:return this.readToken_pipe_amp(eA);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(eA);case 60:case 62:return this.readToken_lt_gt(eA);case 61:case 33:return this.readToken_eq_excl(eA);case 63:return this.readToken_question();case 126:return this.finishOp(types$1.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+codePointToString(eA)+"'")},pp.finishOp=function(eA,AA){var tA=this.input.slice(this.pos,this.pos+AA);return this.pos+=AA,this.finishToken(eA,tA)},pp.readRegexp=function(){for(var eA,AA,tA=this.pos;;){this.pos>=this.input.length&&this.raise(tA,"Unterminated regular expression");var gA=this.input.charAt(this.pos);if(lineBreak.test(gA)&&this.raise(tA,"Unterminated regular expression"),eA)eA=!1;else{if(gA==="[")AA=!0;else if(gA==="]"&&AA)AA=!1;else if(gA==="/"&&!AA)break;eA=gA==="\\"}++this.pos}var iA=this.input.slice(tA,this.pos);++this.pos;var IA=this.pos,BA=this.readWord1();this.containsEsc&&this.unexpected(IA);var sA=this.regexpState||(this.regexpState=new RegExpValidationState(this));sA.reset(tA,iA,BA),this.validateRegExpFlags(sA),this.validateRegExpPattern(sA);var QA=null;try{QA=new RegExp(iA,BA)}catch{}return this.finishToken(types$1.regexp,{pattern:iA,flags:BA,value:QA})},pp.readInt=function(eA,AA,tA){for(var gA=this.options.ecmaVersion>=12&&AA===void 0,iA=tA&&this.input.charCodeAt(this.pos)===48,IA=this.pos,BA=0,sA=0,QA=0,CA=AA??1/0;QA<CA;++QA,++this.pos){var oA=this.input.charCodeAt(this.pos),EA=void 0;if(gA&&oA===95){iA&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),sA===95&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),QA===0&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),sA=oA;continue}if(oA>=97?EA=oA-97+10:oA>=65?EA=oA-65+10:oA>=48&&oA<=57?EA=oA-48:EA=1/0,EA>=eA)break;sA=oA,BA=BA*eA+EA}return gA&&sA===95&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===IA||AA!=null&&this.pos-IA!==AA?null:BA};function stringToNumber(eA,AA){return AA?parseInt(eA,8):parseFloat(eA.replace(/_/g,""))}function stringToBigInt(eA){return typeof BigInt!="function"?null:BigInt(eA.replace(/_/g,""))}pp.readRadixNumber=function(eA){var AA=this.pos;this.pos+=2;var tA=this.readInt(eA);return tA==null&&this.raise(this.start+2,"Expected number in radix "+eA),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(tA=stringToBigInt(this.input.slice(AA,this.pos)),++this.pos):isIdentifierStart(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(types$1.num,tA)},pp.readNumber=function(eA){var AA=this.pos;!eA&&this.readInt(10,void 0,!0)===null&&this.raise(AA,"Invalid number");var tA=this.pos-AA>=2&&this.input.charCodeAt(AA)===48;tA&&this.strict&&this.raise(AA,"Invalid number");var gA=this.input.charCodeAt(this.pos);if(!tA&&!eA&&this.options.ecmaVersion>=11&&gA===110){var iA=stringToBigInt(this.input.slice(AA,this.pos));return++this.pos,isIdentifierStart(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(types$1.num,iA)}tA&&/[89]/.test(this.input.slice(AA,this.pos))&&(tA=!1),gA===46&&!tA&&(++this.pos,this.readInt(10),gA=this.input.charCodeAt(this.pos)),(gA===69||gA===101)&&!tA&&(gA=this.input.charCodeAt(++this.pos),(gA===43||gA===45)&&++this.pos,this.readInt(10)===null&&this.raise(AA,"Invalid number")),isIdentifierStart(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var IA=stringToNumber(this.input.slice(AA,this.pos),tA);return this.finishToken(types$1.num,IA)},pp.readCodePoint=function(){var eA=this.input.charCodeAt(this.pos),AA;if(eA===123){this.options.ecmaVersion<6&&this.unexpected();var tA=++this.pos;AA=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,AA>1114111&&this.invalidStringToken(tA,"Code point out of bounds")}else AA=this.readHexChar(4);return AA},pp.readString=function(eA){for(var AA="",tA=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var gA=this.input.charCodeAt(this.pos);if(gA===eA)break;gA===92?(AA+=this.input.slice(tA,this.pos),AA+=this.readEscapedChar(!1),tA=this.pos):gA===8232||gA===8233?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(isNewLine(gA)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return AA+=this.input.slice(tA,this.pos++),this.finishToken(types$1.string,AA)};var INVALID_TEMPLATE_ESCAPE_ERROR={};pp.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(eA){if(eA===INVALID_TEMPLATE_ESCAPE_ERROR)this.readInvalidTemplateToken();else throw eA}this.inTemplateElement=!1},pp.invalidStringToken=function(eA,AA){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw INVALID_TEMPLATE_ESCAPE_ERROR;this.raise(eA,AA)},pp.readTmplToken=function(){for(var eA="",AA=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var tA=this.input.charCodeAt(this.pos);if(tA===96||tA===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos===this.start&&(this.type===types$1.template||this.type===types$1.invalidTemplate)?tA===36?(this.pos+=2,this.finishToken(types$1.dollarBraceL)):(++this.pos,this.finishToken(types$1.backQuote)):(eA+=this.input.slice(AA,this.pos),this.finishToken(types$1.template,eA));if(tA===92)eA+=this.input.slice(AA,this.pos),eA+=this.readEscapedChar(!0),AA=this.pos;else if(isNewLine(tA)){switch(eA+=this.input.slice(AA,this.pos),++this.pos,tA){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:eA+=`
8
+ `),cooked:this.value},this.next(),tA.tail=this.type===types$1.backQuote,this.finishNode(tA,"TemplateElement")},pp$5.parseTemplate=function(eA){eA===void 0&&(eA={});var AA=eA.isTagged;AA===void 0&&(AA=!1);var tA=this.startNode();this.next(),tA.expressions=[];var gA=this.parseTemplateElement({isTagged:AA});for(tA.quasis=[gA];!gA.tail;)this.type===types$1.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(types$1.dollarBraceL),tA.expressions.push(this.parseExpression()),this.expect(types$1.braceR),tA.quasis.push(gA=this.parseTemplateElement({isTagged:AA}));return this.next(),this.finishNode(tA,"TemplateLiteral")},pp$5.isAsyncProp=function(eA){return!eA.computed&&eA.key.type==="Identifier"&&eA.key.name==="async"&&(this.type===types$1.name||this.type===types$1.num||this.type===types$1.string||this.type===types$1.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===types$1.star)&&!lineBreak.test(this.input.slice(this.lastTokEnd,this.start))},pp$5.parseObj=function(eA,AA){var tA=this.startNode(),gA=!0,iA={};for(tA.properties=[],this.next();!this.eat(types$1.braceR);){if(gA)gA=!1;else if(this.expect(types$1.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(types$1.braceR))break;var IA=this.parseProperty(eA,AA);eA||this.checkPropClash(IA,iA,AA),tA.properties.push(IA)}return this.finishNode(tA,eA?"ObjectPattern":"ObjectExpression")},pp$5.parseProperty=function(eA,AA){var tA=this.startNode(),gA,iA,IA,BA;if(this.options.ecmaVersion>=9&&this.eat(types$1.ellipsis))return eA?(tA.argument=this.parseIdent(!1),this.type===types$1.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(tA,"RestElement")):(tA.argument=this.parseMaybeAssign(!1,AA),this.type===types$1.comma&&AA&&AA.trailingComma<0&&(AA.trailingComma=this.start),this.finishNode(tA,"SpreadElement"));this.options.ecmaVersion>=6&&(tA.method=!1,tA.shorthand=!1,(eA||AA)&&(IA=this.start,BA=this.startLoc),eA||(gA=this.eat(types$1.star)));var sA=this.containsEsc;return this.parsePropertyName(tA),!eA&&!sA&&this.options.ecmaVersion>=8&&!gA&&this.isAsyncProp(tA)?(iA=!0,gA=this.options.ecmaVersion>=9&&this.eat(types$1.star),this.parsePropertyName(tA)):iA=!1,this.parsePropertyValue(tA,eA,gA,iA,IA,BA,AA,sA),this.finishNode(tA,"Property")},pp$5.parseGetterSetter=function(eA){eA.kind=eA.key.name,this.parsePropertyName(eA),eA.value=this.parseMethod(!1);var AA=eA.kind==="get"?0:1;if(eA.value.params.length!==AA){var tA=eA.value.start;eA.kind==="get"?this.raiseRecoverable(tA,"getter should have no params"):this.raiseRecoverable(tA,"setter should have exactly one param")}else eA.kind==="set"&&eA.value.params[0].type==="RestElement"&&this.raiseRecoverable(eA.value.params[0].start,"Setter cannot use rest params")},pp$5.parsePropertyValue=function(eA,AA,tA,gA,iA,IA,BA,sA){(tA||gA)&&this.type===types$1.colon&&this.unexpected(),this.eat(types$1.colon)?(eA.value=AA?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,BA),eA.kind="init"):this.options.ecmaVersion>=6&&this.type===types$1.parenL?(AA&&this.unexpected(),eA.kind="init",eA.method=!0,eA.value=this.parseMethod(tA,gA)):!AA&&!sA&&this.options.ecmaVersion>=5&&!eA.computed&&eA.key.type==="Identifier"&&(eA.key.name==="get"||eA.key.name==="set")&&this.type!==types$1.comma&&this.type!==types$1.braceR&&this.type!==types$1.eq?((tA||gA)&&this.unexpected(),this.parseGetterSetter(eA)):this.options.ecmaVersion>=6&&!eA.computed&&eA.key.type==="Identifier"?((tA||gA)&&this.unexpected(),this.checkUnreserved(eA.key),eA.key.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=iA),eA.kind="init",AA?eA.value=this.parseMaybeDefault(iA,IA,this.copyNode(eA.key)):this.type===types$1.eq&&BA?(BA.shorthandAssign<0&&(BA.shorthandAssign=this.start),eA.value=this.parseMaybeDefault(iA,IA,this.copyNode(eA.key))):eA.value=this.copyNode(eA.key),eA.shorthand=!0):this.unexpected()},pp$5.parsePropertyName=function(eA){if(this.options.ecmaVersion>=6){if(this.eat(types$1.bracketL))return eA.computed=!0,eA.key=this.parseMaybeAssign(),this.expect(types$1.bracketR),eA.key;eA.computed=!1}return eA.key=this.type===types$1.num||this.type===types$1.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")},pp$5.initFunction=function(eA){eA.id=null,this.options.ecmaVersion>=6&&(eA.generator=eA.expression=!1),this.options.ecmaVersion>=8&&(eA.async=!1)},pp$5.parseMethod=function(eA,AA,tA){var gA=this.startNode(),iA=this.yieldPos,IA=this.awaitPos,BA=this.awaitIdentPos;return this.initFunction(gA),this.options.ecmaVersion>=6&&(gA.generator=eA),this.options.ecmaVersion>=8&&(gA.async=!!AA),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(functionFlags(AA,gA.generator)|SCOPE_SUPER|(tA?SCOPE_DIRECT_SUPER:0)),this.expect(types$1.parenL),gA.params=this.parseBindingList(types$1.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(gA,!1,!0,!1),this.yieldPos=iA,this.awaitPos=IA,this.awaitIdentPos=BA,this.finishNode(gA,"FunctionExpression")},pp$5.parseArrowExpression=function(eA,AA,tA,gA){var iA=this.yieldPos,IA=this.awaitPos,BA=this.awaitIdentPos;return this.enterScope(functionFlags(tA,!1)|SCOPE_ARROW),this.initFunction(eA),this.options.ecmaVersion>=8&&(eA.async=!!tA),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,eA.params=this.toAssignableList(AA,!0),this.parseFunctionBody(eA,!0,!1,gA),this.yieldPos=iA,this.awaitPos=IA,this.awaitIdentPos=BA,this.finishNode(eA,"ArrowFunctionExpression")},pp$5.parseFunctionBody=function(eA,AA,tA,gA){var iA=AA&&this.type!==types$1.braceL,IA=this.strict,BA=!1;if(iA)eA.body=this.parseMaybeAssign(gA),eA.expression=!0,this.checkParams(eA,!1);else{var sA=this.options.ecmaVersion>=7&&!this.isSimpleParamList(eA.params);(!IA||sA)&&(BA=this.strictDirective(this.end),BA&&sA&&this.raiseRecoverable(eA.start,"Illegal 'use strict' directive in function with non-simple parameter list"));var QA=this.labels;this.labels=[],BA&&(this.strict=!0),this.checkParams(eA,!IA&&!BA&&!AA&&!tA&&this.isSimpleParamList(eA.params)),this.strict&&eA.id&&this.checkLValSimple(eA.id,BIND_OUTSIDE),eA.body=this.parseBlock(!1,void 0,BA&&!IA),eA.expression=!1,this.adaptDirectivePrologue(eA.body.body),this.labels=QA}this.exitScope()},pp$5.isSimpleParamList=function(eA){for(var AA=0,tA=eA;AA<tA.length;AA+=1){var gA=tA[AA];if(gA.type!=="Identifier")return!1}return!0},pp$5.checkParams=function(eA,AA){for(var tA=Object.create(null),gA=0,iA=eA.params;gA<iA.length;gA+=1){var IA=iA[gA];this.checkLValInnerPattern(IA,BIND_VAR,AA?null:tA)}},pp$5.parseExprList=function(eA,AA,tA,gA){for(var iA=[],IA=!0;!this.eat(eA);){if(IA)IA=!1;else if(this.expect(types$1.comma),AA&&this.afterTrailingComma(eA))break;var BA=void 0;tA&&this.type===types$1.comma?BA=null:this.type===types$1.ellipsis?(BA=this.parseSpread(gA),gA&&this.type===types$1.comma&&gA.trailingComma<0&&(gA.trailingComma=this.start)):BA=this.parseMaybeAssign(!1,gA),iA.push(BA)}return iA},pp$5.checkUnreserved=function(eA){var AA=eA.start,tA=eA.end,gA=eA.name;if(this.inGenerator&&gA==="yield"&&this.raiseRecoverable(AA,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&gA==="await"&&this.raiseRecoverable(AA,"Cannot use 'await' as identifier inside an async function"),this.currentThisScope().inClassFieldInit&&gA==="arguments"&&this.raiseRecoverable(AA,"Cannot use 'arguments' in class field initializer"),this.inClassStaticBlock&&(gA==="arguments"||gA==="await")&&this.raise(AA,"Cannot use "+gA+" in class static initialization block"),this.keywords.test(gA)&&this.raise(AA,"Unexpected keyword '"+gA+"'"),!(this.options.ecmaVersion<6&&this.input.slice(AA,tA).indexOf("\\")!==-1)){var iA=this.strict?this.reservedWordsStrict:this.reservedWords;iA.test(gA)&&(!this.inAsync&&gA==="await"&&this.raiseRecoverable(AA,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(AA,"The keyword '"+gA+"' is reserved"))}},pp$5.parseIdent=function(eA){var AA=this.parseIdentNode();return this.next(!!eA),this.finishNode(AA,"Identifier"),eA||(this.checkUnreserved(AA),AA.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=AA.start)),AA},pp$5.parseIdentNode=function(){var eA=this.startNode();return this.type===types$1.name?eA.name=this.value:this.type.keyword?(eA.name=this.type.keyword,(eA.name==="class"||eA.name==="function")&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46)&&this.context.pop(),this.type=types$1.name):this.unexpected(),eA},pp$5.parsePrivateIdent=function(){var eA=this.startNode();return this.type===types$1.privateId?eA.name=this.value:this.unexpected(),this.next(),this.finishNode(eA,"PrivateIdentifier"),this.options.checkPrivateFields&&(this.privateNameStack.length===0?this.raise(eA.start,"Private field '#"+eA.name+"' must be declared in an enclosing class"):this.privateNameStack[this.privateNameStack.length-1].used.push(eA)),eA},pp$5.parseYield=function(eA){this.yieldPos||(this.yieldPos=this.start);var AA=this.startNode();return this.next(),this.type===types$1.semi||this.canInsertSemicolon()||this.type!==types$1.star&&!this.type.startsExpr?(AA.delegate=!1,AA.argument=null):(AA.delegate=this.eat(types$1.star),AA.argument=this.parseMaybeAssign(eA)),this.finishNode(AA,"YieldExpression")},pp$5.parseAwait=function(eA){this.awaitPos||(this.awaitPos=this.start);var AA=this.startNode();return this.next(),AA.argument=this.parseMaybeUnary(null,!0,!1,eA),this.finishNode(AA,"AwaitExpression")};var pp$4=Parser$1.prototype;pp$4.raise=function(eA,AA){var tA=getLineInfo(this.input,eA);AA+=" ("+tA.line+":"+tA.column+")";var gA=new SyntaxError(AA);throw gA.pos=eA,gA.loc=tA,gA.raisedAt=this.pos,gA},pp$4.raiseRecoverable=pp$4.raise,pp$4.curPosition=function(){if(this.options.locations)return new Position(this.curLine,this.pos-this.lineStart)};var pp$3=Parser$1.prototype,Scope$1=function eA(AA){this.flags=AA,this.var=[],this.lexical=[],this.functions=[],this.inClassFieldInit=!1};pp$3.enterScope=function(eA){this.scopeStack.push(new Scope$1(eA))},pp$3.exitScope=function(){this.scopeStack.pop()},pp$3.treatFunctionsAsVarInScope=function(eA){return eA.flags&SCOPE_FUNCTION||!this.inModule&&eA.flags&SCOPE_TOP},pp$3.declareName=function(eA,AA,tA){var gA=!1;if(AA===BIND_LEXICAL){var iA=this.currentScope();gA=iA.lexical.indexOf(eA)>-1||iA.functions.indexOf(eA)>-1||iA.var.indexOf(eA)>-1,iA.lexical.push(eA),this.inModule&&iA.flags&SCOPE_TOP&&delete this.undefinedExports[eA]}else if(AA===BIND_SIMPLE_CATCH){var IA=this.currentScope();IA.lexical.push(eA)}else if(AA===BIND_FUNCTION){var BA=this.currentScope();this.treatFunctionsAsVar?gA=BA.lexical.indexOf(eA)>-1:gA=BA.lexical.indexOf(eA)>-1||BA.var.indexOf(eA)>-1,BA.functions.push(eA)}else for(var sA=this.scopeStack.length-1;sA>=0;--sA){var QA=this.scopeStack[sA];if(QA.lexical.indexOf(eA)>-1&&!(QA.flags&SCOPE_SIMPLE_CATCH&&QA.lexical[0]===eA)||!this.treatFunctionsAsVarInScope(QA)&&QA.functions.indexOf(eA)>-1){gA=!0;break}if(QA.var.push(eA),this.inModule&&QA.flags&SCOPE_TOP&&delete this.undefinedExports[eA],QA.flags&SCOPE_VAR)break}gA&&this.raiseRecoverable(tA,"Identifier '"+eA+"' has already been declared")},pp$3.checkLocalExport=function(eA){this.scopeStack[0].lexical.indexOf(eA.name)===-1&&this.scopeStack[0].var.indexOf(eA.name)===-1&&(this.undefinedExports[eA.name]=eA)},pp$3.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},pp$3.currentVarScope=function(){for(var eA=this.scopeStack.length-1;;eA--){var AA=this.scopeStack[eA];if(AA.flags&SCOPE_VAR)return AA}},pp$3.currentThisScope=function(){for(var eA=this.scopeStack.length-1;;eA--){var AA=this.scopeStack[eA];if(AA.flags&SCOPE_VAR&&!(AA.flags&SCOPE_ARROW))return AA}};var Node=function eA(AA,tA,gA){this.type="",this.start=tA,this.end=0,AA.options.locations&&(this.loc=new SourceLocation(AA,gA)),AA.options.directSourceFile&&(this.sourceFile=AA.options.directSourceFile),AA.options.ranges&&(this.range=[tA,0])},pp$2=Parser$1.prototype;pp$2.startNode=function(){return new Node(this,this.start,this.startLoc)},pp$2.startNodeAt=function(eA,AA){return new Node(this,eA,AA)};function finishNodeAt(eA,AA,tA,gA){return eA.type=AA,eA.end=tA,this.options.locations&&(eA.loc.end=gA),this.options.ranges&&(eA.range[1]=tA),eA}pp$2.finishNode=function(eA,AA){return finishNodeAt.call(this,eA,AA,this.lastTokEnd,this.lastTokEndLoc)},pp$2.finishNodeAt=function(eA,AA,tA,gA){return finishNodeAt.call(this,eA,AA,tA,gA)},pp$2.copyNode=function(eA){var AA=new Node(this,eA.start,this.startLoc);for(var tA in eA)AA[tA]=eA[tA];return AA};var ecma9BinaryProperties="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",ecma10BinaryProperties=ecma9BinaryProperties+" Extended_Pictographic",ecma11BinaryProperties=ecma10BinaryProperties,ecma12BinaryProperties=ecma11BinaryProperties+" EBase EComp EMod EPres ExtPict",ecma13BinaryProperties=ecma12BinaryProperties,ecma14BinaryProperties=ecma13BinaryProperties,unicodeBinaryProperties={9:ecma9BinaryProperties,10:ecma10BinaryProperties,11:ecma11BinaryProperties,12:ecma12BinaryProperties,13:ecma13BinaryProperties,14:ecma14BinaryProperties},ecma14BinaryPropertiesOfStrings="Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji",unicodeBinaryPropertiesOfStrings={9:"",10:"",11:"",12:"",13:"",14:ecma14BinaryPropertiesOfStrings},unicodeGeneralCategoryValues="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",ecma9ScriptValues="Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",ecma10ScriptValues=ecma9ScriptValues+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",ecma11ScriptValues=ecma10ScriptValues+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",ecma12ScriptValues=ecma11ScriptValues+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",ecma13ScriptValues=ecma12ScriptValues+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",ecma14ScriptValues=ecma13ScriptValues+" Hrkt Katakana_Or_Hiragana Kawi Nag_Mundari Nagm Unknown Zzzz",unicodeScriptValues={9:ecma9ScriptValues,10:ecma10ScriptValues,11:ecma11ScriptValues,12:ecma12ScriptValues,13:ecma13ScriptValues,14:ecma14ScriptValues},data={};function buildUnicodeData(eA){var AA=data[eA]={binary:wordsRegexp(unicodeBinaryProperties[eA]+" "+unicodeGeneralCategoryValues),binaryOfStrings:wordsRegexp(unicodeBinaryPropertiesOfStrings[eA]),nonBinary:{General_Category:wordsRegexp(unicodeGeneralCategoryValues),Script:wordsRegexp(unicodeScriptValues[eA])}};AA.nonBinary.Script_Extensions=AA.nonBinary.Script,AA.nonBinary.gc=AA.nonBinary.General_Category,AA.nonBinary.sc=AA.nonBinary.Script,AA.nonBinary.scx=AA.nonBinary.Script_Extensions}for(var i$4=0,list$2=[9,10,11,12,13,14];i$4<list$2.length;i$4+=1){var ecmaVersion=list$2[i$4];buildUnicodeData(ecmaVersion)}var pp$1=Parser$1.prototype,BranchID=function eA(AA,tA){this.parent=AA,this.base=tA||this};BranchID.prototype.separatedFrom=function eA(AA){for(var tA=this;tA;tA=tA.parent)for(var gA=AA;gA;gA=gA.parent)if(tA.base===gA.base&&tA!==gA)return!0;return!1},BranchID.prototype.sibling=function eA(){return new BranchID(this.parent,this.base)};var RegExpValidationState=function eA(AA){this.parser=AA,this.validFlags="gim"+(AA.options.ecmaVersion>=6?"uy":"")+(AA.options.ecmaVersion>=9?"s":"")+(AA.options.ecmaVersion>=13?"d":"")+(AA.options.ecmaVersion>=15?"v":""),this.unicodeProperties=data[AA.options.ecmaVersion>=14?14:AA.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchV=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=Object.create(null),this.backReferenceNames=[],this.branchID=null};RegExpValidationState.prototype.reset=function eA(AA,tA,gA){var iA=gA.indexOf("v")!==-1,IA=gA.indexOf("u")!==-1;this.start=AA|0,this.source=tA+"",this.flags=gA,iA&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=IA&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=IA&&this.parser.options.ecmaVersion>=9)},RegExpValidationState.prototype.raise=function eA(AA){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+AA)},RegExpValidationState.prototype.at=function eA(AA,tA){tA===void 0&&(tA=!1);var gA=this.source,iA=gA.length;if(AA>=iA)return-1;var IA=gA.charCodeAt(AA);if(!(tA||this.switchU)||IA<=55295||IA>=57344||AA+1>=iA)return IA;var BA=gA.charCodeAt(AA+1);return BA>=56320&&BA<=57343?(IA<<10)+BA-56613888:IA},RegExpValidationState.prototype.nextIndex=function eA(AA,tA){tA===void 0&&(tA=!1);var gA=this.source,iA=gA.length;if(AA>=iA)return iA;var IA=gA.charCodeAt(AA),BA;return!(tA||this.switchU)||IA<=55295||IA>=57344||AA+1>=iA||(BA=gA.charCodeAt(AA+1))<56320||BA>57343?AA+1:AA+2},RegExpValidationState.prototype.current=function eA(AA){return AA===void 0&&(AA=!1),this.at(this.pos,AA)},RegExpValidationState.prototype.lookahead=function eA(AA){return AA===void 0&&(AA=!1),this.at(this.nextIndex(this.pos,AA),AA)},RegExpValidationState.prototype.advance=function eA(AA){AA===void 0&&(AA=!1),this.pos=this.nextIndex(this.pos,AA)},RegExpValidationState.prototype.eat=function eA(AA,tA){return tA===void 0&&(tA=!1),this.current(tA)===AA?(this.advance(tA),!0):!1},RegExpValidationState.prototype.eatChars=function eA(AA,tA){tA===void 0&&(tA=!1);for(var gA=this.pos,iA=0,IA=AA;iA<IA.length;iA+=1){var BA=IA[iA],sA=this.at(gA,tA);if(sA===-1||sA!==BA)return!1;gA=this.nextIndex(gA,tA)}return this.pos=gA,!0},pp$1.validateRegExpFlags=function(eA){for(var AA=eA.validFlags,tA=eA.flags,gA=!1,iA=!1,IA=0;IA<tA.length;IA++){var BA=tA.charAt(IA);AA.indexOf(BA)===-1&&this.raise(eA.start,"Invalid regular expression flag"),tA.indexOf(BA,IA+1)>-1&&this.raise(eA.start,"Duplicate regular expression flag"),BA==="u"&&(gA=!0),BA==="v"&&(iA=!0)}this.options.ecmaVersion>=15&&gA&&iA&&this.raise(eA.start,"Invalid regular expression flag")};function hasProp(eA){for(var AA in eA)return!0;return!1}pp$1.validateRegExpPattern=function(eA){this.regexp_pattern(eA),!eA.switchN&&this.options.ecmaVersion>=9&&hasProp(eA.groupNames)&&(eA.switchN=!0,this.regexp_pattern(eA))},pp$1.regexp_pattern=function(eA){eA.pos=0,eA.lastIntValue=0,eA.lastStringValue="",eA.lastAssertionIsQuantifiable=!1,eA.numCapturingParens=0,eA.maxBackReference=0,eA.groupNames=Object.create(null),eA.backReferenceNames.length=0,eA.branchID=null,this.regexp_disjunction(eA),eA.pos!==eA.source.length&&(eA.eat(41)&&eA.raise("Unmatched ')'"),(eA.eat(93)||eA.eat(125))&&eA.raise("Lone quantifier brackets")),eA.maxBackReference>eA.numCapturingParens&&eA.raise("Invalid escape");for(var AA=0,tA=eA.backReferenceNames;AA<tA.length;AA+=1){var gA=tA[AA];eA.groupNames[gA]||eA.raise("Invalid named capture referenced")}},pp$1.regexp_disjunction=function(eA){var AA=this.options.ecmaVersion>=16;for(AA&&(eA.branchID=new BranchID(eA.branchID,null)),this.regexp_alternative(eA);eA.eat(124);)AA&&(eA.branchID=eA.branchID.sibling()),this.regexp_alternative(eA);AA&&(eA.branchID=eA.branchID.parent),this.regexp_eatQuantifier(eA,!0)&&eA.raise("Nothing to repeat"),eA.eat(123)&&eA.raise("Lone quantifier brackets")},pp$1.regexp_alternative=function(eA){for(;eA.pos<eA.source.length&&this.regexp_eatTerm(eA););},pp$1.regexp_eatTerm=function(eA){return this.regexp_eatAssertion(eA)?(eA.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(eA)&&eA.switchU&&eA.raise("Invalid quantifier"),!0):(eA.switchU?this.regexp_eatAtom(eA):this.regexp_eatExtendedAtom(eA))?(this.regexp_eatQuantifier(eA),!0):!1},pp$1.regexp_eatAssertion=function(eA){var AA=eA.pos;if(eA.lastAssertionIsQuantifiable=!1,eA.eat(94)||eA.eat(36))return!0;if(eA.eat(92)){if(eA.eat(66)||eA.eat(98))return!0;eA.pos=AA}if(eA.eat(40)&&eA.eat(63)){var tA=!1;if(this.options.ecmaVersion>=9&&(tA=eA.eat(60)),eA.eat(61)||eA.eat(33))return this.regexp_disjunction(eA),eA.eat(41)||eA.raise("Unterminated group"),eA.lastAssertionIsQuantifiable=!tA,!0}return eA.pos=AA,!1},pp$1.regexp_eatQuantifier=function(eA,AA){return AA===void 0&&(AA=!1),this.regexp_eatQuantifierPrefix(eA,AA)?(eA.eat(63),!0):!1},pp$1.regexp_eatQuantifierPrefix=function(eA,AA){return eA.eat(42)||eA.eat(43)||eA.eat(63)||this.regexp_eatBracedQuantifier(eA,AA)},pp$1.regexp_eatBracedQuantifier=function(eA,AA){var tA=eA.pos;if(eA.eat(123)){var gA=0,iA=-1;if(this.regexp_eatDecimalDigits(eA)&&(gA=eA.lastIntValue,eA.eat(44)&&this.regexp_eatDecimalDigits(eA)&&(iA=eA.lastIntValue),eA.eat(125)))return iA!==-1&&iA<gA&&!AA&&eA.raise("numbers out of order in {} quantifier"),!0;eA.switchU&&!AA&&eA.raise("Incomplete quantifier"),eA.pos=tA}return!1},pp$1.regexp_eatAtom=function(eA){return this.regexp_eatPatternCharacters(eA)||eA.eat(46)||this.regexp_eatReverseSolidusAtomEscape(eA)||this.regexp_eatCharacterClass(eA)||this.regexp_eatUncapturingGroup(eA)||this.regexp_eatCapturingGroup(eA)},pp$1.regexp_eatReverseSolidusAtomEscape=function(eA){var AA=eA.pos;if(eA.eat(92)){if(this.regexp_eatAtomEscape(eA))return!0;eA.pos=AA}return!1},pp$1.regexp_eatUncapturingGroup=function(eA){var AA=eA.pos;if(eA.eat(40)){if(eA.eat(63)&&eA.eat(58)){if(this.regexp_disjunction(eA),eA.eat(41))return!0;eA.raise("Unterminated group")}eA.pos=AA}return!1},pp$1.regexp_eatCapturingGroup=function(eA){if(eA.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(eA):eA.current()===63&&eA.raise("Invalid group"),this.regexp_disjunction(eA),eA.eat(41))return eA.numCapturingParens+=1,!0;eA.raise("Unterminated group")}return!1},pp$1.regexp_eatExtendedAtom=function(eA){return eA.eat(46)||this.regexp_eatReverseSolidusAtomEscape(eA)||this.regexp_eatCharacterClass(eA)||this.regexp_eatUncapturingGroup(eA)||this.regexp_eatCapturingGroup(eA)||this.regexp_eatInvalidBracedQuantifier(eA)||this.regexp_eatExtendedPatternCharacter(eA)},pp$1.regexp_eatInvalidBracedQuantifier=function(eA){return this.regexp_eatBracedQuantifier(eA,!0)&&eA.raise("Nothing to repeat"),!1},pp$1.regexp_eatSyntaxCharacter=function(eA){var AA=eA.current();return isSyntaxCharacter(AA)?(eA.lastIntValue=AA,eA.advance(),!0):!1};function isSyntaxCharacter(eA){return eA===36||eA>=40&&eA<=43||eA===46||eA===63||eA>=91&&eA<=94||eA>=123&&eA<=125}pp$1.regexp_eatPatternCharacters=function(eA){for(var AA=eA.pos,tA=0;(tA=eA.current())!==-1&&!isSyntaxCharacter(tA);)eA.advance();return eA.pos!==AA},pp$1.regexp_eatExtendedPatternCharacter=function(eA){var AA=eA.current();return AA!==-1&&AA!==36&&!(AA>=40&&AA<=43)&&AA!==46&&AA!==63&&AA!==91&&AA!==94&&AA!==124?(eA.advance(),!0):!1},pp$1.regexp_groupSpecifier=function(eA){if(eA.eat(63)){this.regexp_eatGroupName(eA)||eA.raise("Invalid group");var AA=this.options.ecmaVersion>=16,tA=eA.groupNames[eA.lastStringValue];if(tA)if(AA)for(var gA=0,iA=tA;gA<iA.length;gA+=1){var IA=iA[gA];IA.separatedFrom(eA.branchID)||eA.raise("Duplicate capture group name")}else eA.raise("Duplicate capture group name");AA?(tA||(eA.groupNames[eA.lastStringValue]=[])).push(eA.branchID):eA.groupNames[eA.lastStringValue]=!0}},pp$1.regexp_eatGroupName=function(eA){if(eA.lastStringValue="",eA.eat(60)){if(this.regexp_eatRegExpIdentifierName(eA)&&eA.eat(62))return!0;eA.raise("Invalid capture group name")}return!1},pp$1.regexp_eatRegExpIdentifierName=function(eA){if(eA.lastStringValue="",this.regexp_eatRegExpIdentifierStart(eA)){for(eA.lastStringValue+=codePointToString(eA.lastIntValue);this.regexp_eatRegExpIdentifierPart(eA);)eA.lastStringValue+=codePointToString(eA.lastIntValue);return!0}return!1},pp$1.regexp_eatRegExpIdentifierStart=function(eA){var AA=eA.pos,tA=this.options.ecmaVersion>=11,gA=eA.current(tA);return eA.advance(tA),gA===92&&this.regexp_eatRegExpUnicodeEscapeSequence(eA,tA)&&(gA=eA.lastIntValue),isRegExpIdentifierStart(gA)?(eA.lastIntValue=gA,!0):(eA.pos=AA,!1)};function isRegExpIdentifierStart(eA){return isIdentifierStart(eA,!0)||eA===36||eA===95}pp$1.regexp_eatRegExpIdentifierPart=function(eA){var AA=eA.pos,tA=this.options.ecmaVersion>=11,gA=eA.current(tA);return eA.advance(tA),gA===92&&this.regexp_eatRegExpUnicodeEscapeSequence(eA,tA)&&(gA=eA.lastIntValue),isRegExpIdentifierPart(gA)?(eA.lastIntValue=gA,!0):(eA.pos=AA,!1)};function isRegExpIdentifierPart(eA){return isIdentifierChar(eA,!0)||eA===36||eA===95||eA===8204||eA===8205}pp$1.regexp_eatAtomEscape=function(eA){return this.regexp_eatBackReference(eA)||this.regexp_eatCharacterClassEscape(eA)||this.regexp_eatCharacterEscape(eA)||eA.switchN&&this.regexp_eatKGroupName(eA)?!0:(eA.switchU&&(eA.current()===99&&eA.raise("Invalid unicode escape"),eA.raise("Invalid escape")),!1)},pp$1.regexp_eatBackReference=function(eA){var AA=eA.pos;if(this.regexp_eatDecimalEscape(eA)){var tA=eA.lastIntValue;if(eA.switchU)return tA>eA.maxBackReference&&(eA.maxBackReference=tA),!0;if(tA<=eA.numCapturingParens)return!0;eA.pos=AA}return!1},pp$1.regexp_eatKGroupName=function(eA){if(eA.eat(107)){if(this.regexp_eatGroupName(eA))return eA.backReferenceNames.push(eA.lastStringValue),!0;eA.raise("Invalid named reference")}return!1},pp$1.regexp_eatCharacterEscape=function(eA){return this.regexp_eatControlEscape(eA)||this.regexp_eatCControlLetter(eA)||this.regexp_eatZero(eA)||this.regexp_eatHexEscapeSequence(eA)||this.regexp_eatRegExpUnicodeEscapeSequence(eA,!1)||!eA.switchU&&this.regexp_eatLegacyOctalEscapeSequence(eA)||this.regexp_eatIdentityEscape(eA)},pp$1.regexp_eatCControlLetter=function(eA){var AA=eA.pos;if(eA.eat(99)){if(this.regexp_eatControlLetter(eA))return!0;eA.pos=AA}return!1},pp$1.regexp_eatZero=function(eA){return eA.current()===48&&!isDecimalDigit(eA.lookahead())?(eA.lastIntValue=0,eA.advance(),!0):!1},pp$1.regexp_eatControlEscape=function(eA){var AA=eA.current();return AA===116?(eA.lastIntValue=9,eA.advance(),!0):AA===110?(eA.lastIntValue=10,eA.advance(),!0):AA===118?(eA.lastIntValue=11,eA.advance(),!0):AA===102?(eA.lastIntValue=12,eA.advance(),!0):AA===114?(eA.lastIntValue=13,eA.advance(),!0):!1},pp$1.regexp_eatControlLetter=function(eA){var AA=eA.current();return isControlLetter(AA)?(eA.lastIntValue=AA%32,eA.advance(),!0):!1};function isControlLetter(eA){return eA>=65&&eA<=90||eA>=97&&eA<=122}pp$1.regexp_eatRegExpUnicodeEscapeSequence=function(eA,AA){AA===void 0&&(AA=!1);var tA=eA.pos,gA=AA||eA.switchU;if(eA.eat(117)){if(this.regexp_eatFixedHexDigits(eA,4)){var iA=eA.lastIntValue;if(gA&&iA>=55296&&iA<=56319){var IA=eA.pos;if(eA.eat(92)&&eA.eat(117)&&this.regexp_eatFixedHexDigits(eA,4)){var BA=eA.lastIntValue;if(BA>=56320&&BA<=57343)return eA.lastIntValue=(iA-55296)*1024+(BA-56320)+65536,!0}eA.pos=IA,eA.lastIntValue=iA}return!0}if(gA&&eA.eat(123)&&this.regexp_eatHexDigits(eA)&&eA.eat(125)&&isValidUnicode(eA.lastIntValue))return!0;gA&&eA.raise("Invalid unicode escape"),eA.pos=tA}return!1};function isValidUnicode(eA){return eA>=0&&eA<=1114111}pp$1.regexp_eatIdentityEscape=function(eA){if(eA.switchU)return this.regexp_eatSyntaxCharacter(eA)?!0:eA.eat(47)?(eA.lastIntValue=47,!0):!1;var AA=eA.current();return AA!==99&&(!eA.switchN||AA!==107)?(eA.lastIntValue=AA,eA.advance(),!0):!1},pp$1.regexp_eatDecimalEscape=function(eA){eA.lastIntValue=0;var AA=eA.current();if(AA>=49&&AA<=57){do eA.lastIntValue=10*eA.lastIntValue+(AA-48),eA.advance();while((AA=eA.current())>=48&&AA<=57);return!0}return!1};var CharSetNone=0,CharSetOk=1,CharSetString=2;pp$1.regexp_eatCharacterClassEscape=function(eA){var AA=eA.current();if(isCharacterClassEscape(AA))return eA.lastIntValue=-1,eA.advance(),CharSetOk;var tA=!1;if(eA.switchU&&this.options.ecmaVersion>=9&&((tA=AA===80)||AA===112)){eA.lastIntValue=-1,eA.advance();var gA;if(eA.eat(123)&&(gA=this.regexp_eatUnicodePropertyValueExpression(eA))&&eA.eat(125))return tA&&gA===CharSetString&&eA.raise("Invalid property name"),gA;eA.raise("Invalid property name")}return CharSetNone};function isCharacterClassEscape(eA){return eA===100||eA===68||eA===115||eA===83||eA===119||eA===87}pp$1.regexp_eatUnicodePropertyValueExpression=function(eA){var AA=eA.pos;if(this.regexp_eatUnicodePropertyName(eA)&&eA.eat(61)){var tA=eA.lastStringValue;if(this.regexp_eatUnicodePropertyValue(eA)){var gA=eA.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(eA,tA,gA),CharSetOk}}if(eA.pos=AA,this.regexp_eatLoneUnicodePropertyNameOrValue(eA)){var iA=eA.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(eA,iA)}return CharSetNone},pp$1.regexp_validateUnicodePropertyNameAndValue=function(eA,AA,tA){hasOwn(eA.unicodeProperties.nonBinary,AA)||eA.raise("Invalid property name"),eA.unicodeProperties.nonBinary[AA].test(tA)||eA.raise("Invalid property value")},pp$1.regexp_validateUnicodePropertyNameOrValue=function(eA,AA){if(eA.unicodeProperties.binary.test(AA))return CharSetOk;if(eA.switchV&&eA.unicodeProperties.binaryOfStrings.test(AA))return CharSetString;eA.raise("Invalid property name")},pp$1.regexp_eatUnicodePropertyName=function(eA){var AA=0;for(eA.lastStringValue="";isUnicodePropertyNameCharacter(AA=eA.current());)eA.lastStringValue+=codePointToString(AA),eA.advance();return eA.lastStringValue!==""};function isUnicodePropertyNameCharacter(eA){return isControlLetter(eA)||eA===95}pp$1.regexp_eatUnicodePropertyValue=function(eA){var AA=0;for(eA.lastStringValue="";isUnicodePropertyValueCharacter(AA=eA.current());)eA.lastStringValue+=codePointToString(AA),eA.advance();return eA.lastStringValue!==""};function isUnicodePropertyValueCharacter(eA){return isUnicodePropertyNameCharacter(eA)||isDecimalDigit(eA)}pp$1.regexp_eatLoneUnicodePropertyNameOrValue=function(eA){return this.regexp_eatUnicodePropertyValue(eA)},pp$1.regexp_eatCharacterClass=function(eA){if(eA.eat(91)){var AA=eA.eat(94),tA=this.regexp_classContents(eA);return eA.eat(93)||eA.raise("Unterminated character class"),AA&&tA===CharSetString&&eA.raise("Negated character class may contain strings"),!0}return!1},pp$1.regexp_classContents=function(eA){return eA.current()===93?CharSetOk:eA.switchV?this.regexp_classSetExpression(eA):(this.regexp_nonEmptyClassRanges(eA),CharSetOk)},pp$1.regexp_nonEmptyClassRanges=function(eA){for(;this.regexp_eatClassAtom(eA);){var AA=eA.lastIntValue;if(eA.eat(45)&&this.regexp_eatClassAtom(eA)){var tA=eA.lastIntValue;eA.switchU&&(AA===-1||tA===-1)&&eA.raise("Invalid character class"),AA!==-1&&tA!==-1&&AA>tA&&eA.raise("Range out of order in character class")}}},pp$1.regexp_eatClassAtom=function(eA){var AA=eA.pos;if(eA.eat(92)){if(this.regexp_eatClassEscape(eA))return!0;if(eA.switchU){var tA=eA.current();(tA===99||isOctalDigit(tA))&&eA.raise("Invalid class escape"),eA.raise("Invalid escape")}eA.pos=AA}var gA=eA.current();return gA!==93?(eA.lastIntValue=gA,eA.advance(),!0):!1},pp$1.regexp_eatClassEscape=function(eA){var AA=eA.pos;if(eA.eat(98))return eA.lastIntValue=8,!0;if(eA.switchU&&eA.eat(45))return eA.lastIntValue=45,!0;if(!eA.switchU&&eA.eat(99)){if(this.regexp_eatClassControlLetter(eA))return!0;eA.pos=AA}return this.regexp_eatCharacterClassEscape(eA)||this.regexp_eatCharacterEscape(eA)},pp$1.regexp_classSetExpression=function(eA){var AA=CharSetOk,tA;if(!this.regexp_eatClassSetRange(eA))if(tA=this.regexp_eatClassSetOperand(eA)){tA===CharSetString&&(AA=CharSetString);for(var gA=eA.pos;eA.eatChars([38,38]);){if(eA.current()!==38&&(tA=this.regexp_eatClassSetOperand(eA))){tA!==CharSetString&&(AA=CharSetOk);continue}eA.raise("Invalid character in character class")}if(gA!==eA.pos)return AA;for(;eA.eatChars([45,45]);)this.regexp_eatClassSetOperand(eA)||eA.raise("Invalid character in character class");if(gA!==eA.pos)return AA}else eA.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(eA)){if(tA=this.regexp_eatClassSetOperand(eA),!tA)return AA;tA===CharSetString&&(AA=CharSetString)}},pp$1.regexp_eatClassSetRange=function(eA){var AA=eA.pos;if(this.regexp_eatClassSetCharacter(eA)){var tA=eA.lastIntValue;if(eA.eat(45)&&this.regexp_eatClassSetCharacter(eA)){var gA=eA.lastIntValue;return tA!==-1&&gA!==-1&&tA>gA&&eA.raise("Range out of order in character class"),!0}eA.pos=AA}return!1},pp$1.regexp_eatClassSetOperand=function(eA){return this.regexp_eatClassSetCharacter(eA)?CharSetOk:this.regexp_eatClassStringDisjunction(eA)||this.regexp_eatNestedClass(eA)},pp$1.regexp_eatNestedClass=function(eA){var AA=eA.pos;if(eA.eat(91)){var tA=eA.eat(94),gA=this.regexp_classContents(eA);if(eA.eat(93))return tA&&gA===CharSetString&&eA.raise("Negated character class may contain strings"),gA;eA.pos=AA}if(eA.eat(92)){var iA=this.regexp_eatCharacterClassEscape(eA);if(iA)return iA;eA.pos=AA}return null},pp$1.regexp_eatClassStringDisjunction=function(eA){var AA=eA.pos;if(eA.eatChars([92,113])){if(eA.eat(123)){var tA=this.regexp_classStringDisjunctionContents(eA);if(eA.eat(125))return tA}else eA.raise("Invalid escape");eA.pos=AA}return null},pp$1.regexp_classStringDisjunctionContents=function(eA){for(var AA=this.regexp_classString(eA);eA.eat(124);)this.regexp_classString(eA)===CharSetString&&(AA=CharSetString);return AA},pp$1.regexp_classString=function(eA){for(var AA=0;this.regexp_eatClassSetCharacter(eA);)AA++;return AA===1?CharSetOk:CharSetString},pp$1.regexp_eatClassSetCharacter=function(eA){var AA=eA.pos;if(eA.eat(92))return this.regexp_eatCharacterEscape(eA)||this.regexp_eatClassSetReservedPunctuator(eA)?!0:eA.eat(98)?(eA.lastIntValue=8,!0):(eA.pos=AA,!1);var tA=eA.current();return tA<0||tA===eA.lookahead()&&isClassSetReservedDoublePunctuatorCharacter(tA)||isClassSetSyntaxCharacter(tA)?!1:(eA.advance(),eA.lastIntValue=tA,!0)};function isClassSetReservedDoublePunctuatorCharacter(eA){return eA===33||eA>=35&&eA<=38||eA>=42&&eA<=44||eA===46||eA>=58&&eA<=64||eA===94||eA===96||eA===126}function isClassSetSyntaxCharacter(eA){return eA===40||eA===41||eA===45||eA===47||eA>=91&&eA<=93||eA>=123&&eA<=125}pp$1.regexp_eatClassSetReservedPunctuator=function(eA){var AA=eA.current();return isClassSetReservedPunctuator(AA)?(eA.lastIntValue=AA,eA.advance(),!0):!1};function isClassSetReservedPunctuator(eA){return eA===33||eA===35||eA===37||eA===38||eA===44||eA===45||eA>=58&&eA<=62||eA===64||eA===96||eA===126}pp$1.regexp_eatClassControlLetter=function(eA){var AA=eA.current();return isDecimalDigit(AA)||AA===95?(eA.lastIntValue=AA%32,eA.advance(),!0):!1},pp$1.regexp_eatHexEscapeSequence=function(eA){var AA=eA.pos;if(eA.eat(120)){if(this.regexp_eatFixedHexDigits(eA,2))return!0;eA.switchU&&eA.raise("Invalid escape"),eA.pos=AA}return!1},pp$1.regexp_eatDecimalDigits=function(eA){var AA=eA.pos,tA=0;for(eA.lastIntValue=0;isDecimalDigit(tA=eA.current());)eA.lastIntValue=10*eA.lastIntValue+(tA-48),eA.advance();return eA.pos!==AA};function isDecimalDigit(eA){return eA>=48&&eA<=57}pp$1.regexp_eatHexDigits=function(eA){var AA=eA.pos,tA=0;for(eA.lastIntValue=0;isHexDigit(tA=eA.current());)eA.lastIntValue=16*eA.lastIntValue+hexToInt(tA),eA.advance();return eA.pos!==AA};function isHexDigit(eA){return eA>=48&&eA<=57||eA>=65&&eA<=70||eA>=97&&eA<=102}function hexToInt(eA){return eA>=65&&eA<=70?10+(eA-65):eA>=97&&eA<=102?10+(eA-97):eA-48}pp$1.regexp_eatLegacyOctalEscapeSequence=function(eA){if(this.regexp_eatOctalDigit(eA)){var AA=eA.lastIntValue;if(this.regexp_eatOctalDigit(eA)){var tA=eA.lastIntValue;AA<=3&&this.regexp_eatOctalDigit(eA)?eA.lastIntValue=AA*64+tA*8+eA.lastIntValue:eA.lastIntValue=AA*8+tA}else eA.lastIntValue=AA;return!0}return!1},pp$1.regexp_eatOctalDigit=function(eA){var AA=eA.current();return isOctalDigit(AA)?(eA.lastIntValue=AA-48,eA.advance(),!0):(eA.lastIntValue=0,!1)};function isOctalDigit(eA){return eA>=48&&eA<=55}pp$1.regexp_eatFixedHexDigits=function(eA,AA){var tA=eA.pos;eA.lastIntValue=0;for(var gA=0;gA<AA;++gA){var iA=eA.current();if(!isHexDigit(iA))return eA.pos=tA,!1;eA.lastIntValue=16*eA.lastIntValue+hexToInt(iA),eA.advance()}return!0};var Token=function eA(AA){this.type=AA.type,this.value=AA.value,this.start=AA.start,this.end=AA.end,AA.options.locations&&(this.loc=new SourceLocation(AA,AA.startLoc,AA.endLoc)),AA.options.ranges&&(this.range=[AA.start,AA.end])},pp=Parser$1.prototype;pp.next=function(eA){!eA&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new Token(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},pp.getToken=function(){return this.next(),new Token(this)},typeof Symbol<"u"&&(pp[Symbol.iterator]=function(){var eA=this;return{next:function(){var AA=eA.getToken();return{done:AA.type===types$1.eof,value:AA}}}}),pp.nextToken=function(){var eA=this.curContext();if((!eA||!eA.preserveSpace)&&this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length)return this.finishToken(types$1.eof);if(eA.override)return eA.override(this);this.readToken(this.fullCharCodeAtPos())},pp.readToken=function(eA){return isIdentifierStart(eA,this.options.ecmaVersion>=6)||eA===92?this.readWord():this.getTokenFromCode(eA)},pp.fullCharCodeAtPos=function(){var eA=this.input.charCodeAt(this.pos);if(eA<=55295||eA>=56320)return eA;var AA=this.input.charCodeAt(this.pos+1);return AA<=56319||AA>=57344?eA:(eA<<10)+AA-56613888},pp.skipBlockComment=function(){var eA=this.options.onComment&&this.curPosition(),AA=this.pos,tA=this.input.indexOf("*/",this.pos+=2);if(tA===-1&&this.raise(this.pos-2,"Unterminated comment"),this.pos=tA+2,this.options.locations)for(var gA=void 0,iA=AA;(gA=nextLineBreak(this.input,iA,this.pos))>-1;)++this.curLine,iA=this.lineStart=gA;this.options.onComment&&this.options.onComment(!0,this.input.slice(AA+2,tA),AA,this.pos,eA,this.curPosition())},pp.skipLineComment=function(eA){for(var AA=this.pos,tA=this.options.onComment&&this.curPosition(),gA=this.input.charCodeAt(this.pos+=eA);this.pos<this.input.length&&!isNewLine(gA);)gA=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(AA+eA,this.pos),AA,this.pos,tA,this.curPosition())},pp.skipSpace=function(){A:for(;this.pos<this.input.length;){var eA=this.input.charCodeAt(this.pos);switch(eA){case 32:case 160:++this.pos;break;case 13:this.input.charCodeAt(this.pos+1)===10&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break A}break;default:if(eA>8&&eA<14||eA>=5760&&nonASCIIwhitespace.test(String.fromCharCode(eA)))++this.pos;else break A}}},pp.finishToken=function(eA,AA){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var tA=this.type;this.type=eA,this.value=AA,this.updateContext(tA)},pp.readToken_dot=function(){var eA=this.input.charCodeAt(this.pos+1);if(eA>=48&&eA<=57)return this.readNumber(!0);var AA=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&eA===46&&AA===46?(this.pos+=3,this.finishToken(types$1.ellipsis)):(++this.pos,this.finishToken(types$1.dot))},pp.readToken_slash=function(){var eA=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):eA===61?this.finishOp(types$1.assign,2):this.finishOp(types$1.slash,1)},pp.readToken_mult_modulo_exp=function(eA){var AA=this.input.charCodeAt(this.pos+1),tA=1,gA=eA===42?types$1.star:types$1.modulo;return this.options.ecmaVersion>=7&&eA===42&&AA===42&&(++tA,gA=types$1.starstar,AA=this.input.charCodeAt(this.pos+2)),AA===61?this.finishOp(types$1.assign,tA+1):this.finishOp(gA,tA)},pp.readToken_pipe_amp=function(eA){var AA=this.input.charCodeAt(this.pos+1);if(AA===eA){if(this.options.ecmaVersion>=12){var tA=this.input.charCodeAt(this.pos+2);if(tA===61)return this.finishOp(types$1.assign,3)}return this.finishOp(eA===124?types$1.logicalOR:types$1.logicalAND,2)}return AA===61?this.finishOp(types$1.assign,2):this.finishOp(eA===124?types$1.bitwiseOR:types$1.bitwiseAND,1)},pp.readToken_caret=function(){var eA=this.input.charCodeAt(this.pos+1);return eA===61?this.finishOp(types$1.assign,2):this.finishOp(types$1.bitwiseXOR,1)},pp.readToken_plus_min=function(eA){var AA=this.input.charCodeAt(this.pos+1);return AA===eA?AA===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||lineBreak.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(types$1.incDec,2):AA===61?this.finishOp(types$1.assign,2):this.finishOp(types$1.plusMin,1)},pp.readToken_lt_gt=function(eA){var AA=this.input.charCodeAt(this.pos+1),tA=1;return AA===eA?(tA=eA===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+tA)===61?this.finishOp(types$1.assign,tA+1):this.finishOp(types$1.bitShift,tA)):AA===33&&eA===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45?(this.skipLineComment(4),this.skipSpace(),this.nextToken()):(AA===61&&(tA=2),this.finishOp(types$1.relational,tA))},pp.readToken_eq_excl=function(eA){var AA=this.input.charCodeAt(this.pos+1);return AA===61?this.finishOp(types$1.equality,this.input.charCodeAt(this.pos+2)===61?3:2):eA===61&&AA===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(types$1.arrow)):this.finishOp(eA===61?types$1.eq:types$1.prefix,1)},pp.readToken_question=function(){var eA=this.options.ecmaVersion;if(eA>=11){var AA=this.input.charCodeAt(this.pos+1);if(AA===46){var tA=this.input.charCodeAt(this.pos+2);if(tA<48||tA>57)return this.finishOp(types$1.questionDot,2)}if(AA===63){if(eA>=12){var gA=this.input.charCodeAt(this.pos+2);if(gA===61)return this.finishOp(types$1.assign,3)}return this.finishOp(types$1.coalesce,2)}}return this.finishOp(types$1.question,1)},pp.readToken_numberSign=function(){var eA=this.options.ecmaVersion,AA=35;if(eA>=13&&(++this.pos,AA=this.fullCharCodeAtPos(),isIdentifierStart(AA,!0)||AA===92))return this.finishToken(types$1.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+codePointToString(AA)+"'")},pp.getTokenFromCode=function(eA){switch(eA){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(types$1.parenL);case 41:return++this.pos,this.finishToken(types$1.parenR);case 59:return++this.pos,this.finishToken(types$1.semi);case 44:return++this.pos,this.finishToken(types$1.comma);case 91:return++this.pos,this.finishToken(types$1.bracketL);case 93:return++this.pos,this.finishToken(types$1.bracketR);case 123:return++this.pos,this.finishToken(types$1.braceL);case 125:return++this.pos,this.finishToken(types$1.braceR);case 58:return++this.pos,this.finishToken(types$1.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(types$1.backQuote);case 48:var AA=this.input.charCodeAt(this.pos+1);if(AA===120||AA===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(AA===111||AA===79)return this.readRadixNumber(8);if(AA===98||AA===66)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(eA);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(eA);case 124:case 38:return this.readToken_pipe_amp(eA);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(eA);case 60:case 62:return this.readToken_lt_gt(eA);case 61:case 33:return this.readToken_eq_excl(eA);case 63:return this.readToken_question();case 126:return this.finishOp(types$1.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+codePointToString(eA)+"'")},pp.finishOp=function(eA,AA){var tA=this.input.slice(this.pos,this.pos+AA);return this.pos+=AA,this.finishToken(eA,tA)},pp.readRegexp=function(){for(var eA,AA,tA=this.pos;;){this.pos>=this.input.length&&this.raise(tA,"Unterminated regular expression");var gA=this.input.charAt(this.pos);if(lineBreak.test(gA)&&this.raise(tA,"Unterminated regular expression"),eA)eA=!1;else{if(gA==="[")AA=!0;else if(gA==="]"&&AA)AA=!1;else if(gA==="/"&&!AA)break;eA=gA==="\\"}++this.pos}var iA=this.input.slice(tA,this.pos);++this.pos;var IA=this.pos,BA=this.readWord1();this.containsEsc&&this.unexpected(IA);var sA=this.regexpState||(this.regexpState=new RegExpValidationState(this));sA.reset(tA,iA,BA),this.validateRegExpFlags(sA),this.validateRegExpPattern(sA);var QA=null;try{QA=new RegExp(iA,BA)}catch{}return this.finishToken(types$1.regexp,{pattern:iA,flags:BA,value:QA})},pp.readInt=function(eA,AA,tA){for(var gA=this.options.ecmaVersion>=12&&AA===void 0,iA=tA&&this.input.charCodeAt(this.pos)===48,IA=this.pos,BA=0,sA=0,QA=0,CA=AA??1/0;QA<CA;++QA,++this.pos){var oA=this.input.charCodeAt(this.pos),EA=void 0;if(gA&&oA===95){iA&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),sA===95&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),QA===0&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),sA=oA;continue}if(oA>=97?EA=oA-97+10:oA>=65?EA=oA-65+10:oA>=48&&oA<=57?EA=oA-48:EA=1/0,EA>=eA)break;sA=oA,BA=BA*eA+EA}return gA&&sA===95&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===IA||AA!=null&&this.pos-IA!==AA?null:BA};function stringToNumber(eA,AA){return AA?parseInt(eA,8):parseFloat(eA.replace(/_/g,""))}function stringToBigInt(eA){return typeof BigInt!="function"?null:BigInt(eA.replace(/_/g,""))}pp.readRadixNumber=function(eA){var AA=this.pos;this.pos+=2;var tA=this.readInt(eA);return tA==null&&this.raise(this.start+2,"Expected number in radix "+eA),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(tA=stringToBigInt(this.input.slice(AA,this.pos)),++this.pos):isIdentifierStart(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(types$1.num,tA)},pp.readNumber=function(eA){var AA=this.pos;!eA&&this.readInt(10,void 0,!0)===null&&this.raise(AA,"Invalid number");var tA=this.pos-AA>=2&&this.input.charCodeAt(AA)===48;tA&&this.strict&&this.raise(AA,"Invalid number");var gA=this.input.charCodeAt(this.pos);if(!tA&&!eA&&this.options.ecmaVersion>=11&&gA===110){var iA=stringToBigInt(this.input.slice(AA,this.pos));return++this.pos,isIdentifierStart(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(types$1.num,iA)}tA&&/[89]/.test(this.input.slice(AA,this.pos))&&(tA=!1),gA===46&&!tA&&(++this.pos,this.readInt(10),gA=this.input.charCodeAt(this.pos)),(gA===69||gA===101)&&!tA&&(gA=this.input.charCodeAt(++this.pos),(gA===43||gA===45)&&++this.pos,this.readInt(10)===null&&this.raise(AA,"Invalid number")),isIdentifierStart(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var IA=stringToNumber(this.input.slice(AA,this.pos),tA);return this.finishToken(types$1.num,IA)},pp.readCodePoint=function(){var eA=this.input.charCodeAt(this.pos),AA;if(eA===123){this.options.ecmaVersion<6&&this.unexpected();var tA=++this.pos;AA=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,AA>1114111&&this.invalidStringToken(tA,"Code point out of bounds")}else AA=this.readHexChar(4);return AA},pp.readString=function(eA){for(var AA="",tA=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var gA=this.input.charCodeAt(this.pos);if(gA===eA)break;gA===92?(AA+=this.input.slice(tA,this.pos),AA+=this.readEscapedChar(!1),tA=this.pos):gA===8232||gA===8233?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(isNewLine(gA)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return AA+=this.input.slice(tA,this.pos++),this.finishToken(types$1.string,AA)};var INVALID_TEMPLATE_ESCAPE_ERROR={};pp.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(eA){if(eA===INVALID_TEMPLATE_ESCAPE_ERROR)this.readInvalidTemplateToken();else throw eA}this.inTemplateElement=!1},pp.invalidStringToken=function(eA,AA){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw INVALID_TEMPLATE_ESCAPE_ERROR;this.raise(eA,AA)},pp.readTmplToken=function(){for(var eA="",AA=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var tA=this.input.charCodeAt(this.pos);if(tA===96||tA===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos===this.start&&(this.type===types$1.template||this.type===types$1.invalidTemplate)?tA===36?(this.pos+=2,this.finishToken(types$1.dollarBraceL)):(++this.pos,this.finishToken(types$1.backQuote)):(eA+=this.input.slice(AA,this.pos),this.finishToken(types$1.template,eA));if(tA===92)eA+=this.input.slice(AA,this.pos),eA+=this.readEscapedChar(!0),AA=this.pos;else if(isNewLine(tA)){switch(eA+=this.input.slice(AA,this.pos),++this.pos,tA){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:eA+=`
19
9
  `;break;default:eA+=String.fromCharCode(tA);break}this.options.locations&&(++this.curLine,this.lineStart=this.pos),AA=this.pos}else++this.pos}},pp.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if(this.input[this.pos+1]!=="{")break;case"`":return this.finishToken(types$1.invalidTemplate,this.input.slice(this.start,this.pos));case"\r":this.input[this.pos+1]===`
20
10
  `&&++this.pos;case`
21
11
  `:case"\u2028":case"\u2029":++this.curLine,this.lineStart=this.pos+1;break}this.raise(this.start,"Unterminated template")},pp.readEscapedChar=function(eA){var AA=this.input.charCodeAt(++this.pos);switch(++this.pos,AA){case 110:return`
22
12
  `;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return codePointToString(this.readCodePoint());case 116:return" ";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,"Invalid escape sequence"),eA){var tA=this.pos-1;this.invalidStringToken(tA,"Invalid escape sequence in template string")}default:if(AA>=48&&AA<=55){var gA=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],iA=parseInt(gA,8);return iA>255&&(gA=gA.slice(0,-1),iA=parseInt(gA,8)),this.pos+=gA.length-1,AA=this.input.charCodeAt(this.pos),(gA!=="0"||AA===56||AA===57)&&(this.strict||eA)&&this.invalidStringToken(this.pos-1-gA.length,eA?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(iA)}return isNewLine(AA)?(this.options.locations&&(this.lineStart=this.pos,++this.curLine),""):String.fromCharCode(AA)}},pp.readHexChar=function(eA){var AA=this.pos,tA=this.readInt(16,eA);return tA===null&&this.invalidStringToken(AA,"Bad character escape sequence"),tA},pp.readWord1=function(){this.containsEsc=!1;for(var eA="",AA=!0,tA=this.pos,gA=this.options.ecmaVersion>=6;this.pos<this.input.length;){var iA=this.fullCharCodeAtPos();if(isIdentifierChar(iA,gA))this.pos+=iA<=65535?1:2;else if(iA===92){this.containsEsc=!0,eA+=this.input.slice(tA,this.pos);var IA=this.pos;this.input.charCodeAt(++this.pos)!==117&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var BA=this.readCodePoint();(AA?isIdentifierStart:isIdentifierChar)(BA,gA)||this.invalidStringToken(IA,"Invalid Unicode escape"),eA+=codePointToString(BA),tA=this.pos}else break;AA=!1}return eA+this.input.slice(tA,this.pos)},pp.readWord=function(){var eA=this.readWord1(),AA=types$1.name;return this.keywords.test(eA)&&(AA=keywords[eA]),this.finishToken(AA,eA)};var version="8.13.0";Parser$1.acorn={Parser:Parser$1,version,defaultOptions,Position,SourceLocation,getLineInfo,Node,TokenType,tokTypes:types$1,keywordTypes:keywords,TokContext,tokContexts:types,isIdentifierChar,isIdentifierStart,Token,isNewLine,lineBreak,lineBreakG,nonASCIIwhitespace};function parse$2(eA,AA){return Parser$1.parse(eA,AA)}function parseExpressionAt(eA,AA,tA){return Parser$1.parseExpressionAt(eA,AA,tA)}function tokenizer(eA,AA){return Parser$1.tokenizer(eA,AA)}var t$2=Object.freeze({__proto__:null,Node,Parser:Parser$1,Position,SourceLocation,TokContext,Token,TokenType,defaultOptions,getLineInfo,isIdentifierChar,isIdentifierStart,isNewLine,keywordTypes:keywords,lineBreak,lineBreakG,nonASCIIwhitespace,parse:parse$2,parseExpressionAt,tokContexts:types,tokTypes:types$1,tokenizer,version});class WalkerBase{constructor(){this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.context={skip:()=>this.should_skip=!0,remove:()=>this.should_remove=!0,replace:AA=>this.replacement=AA}}replace(AA,tA,gA,iA){AA&&tA&&(gA!=null?AA[tA][gA]=iA:AA[tA]=iA)}remove(AA,tA,gA){AA&&tA&&(gA!=null?AA[tA].splice(gA,1):delete AA[tA])}}class SyncWalker extends WalkerBase{constructor(AA,tA){super(),this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.context={skip:()=>this.should_skip=!0,remove:()=>this.should_remove=!0,replace:gA=>this.replacement=gA},this.enter=AA,this.leave=tA}visit(AA,tA,gA,iA){if(AA){if(this.enter){const BA=this.should_skip,sA=this.should_remove,QA=this.replacement;this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.enter.call(this.context,AA,tA,gA,iA),this.replacement&&(AA=this.replacement,this.replace(tA,gA,iA,AA)),this.should_remove&&this.remove(tA,gA,iA);const CA=this.should_skip,oA=this.should_remove;if(this.should_skip=BA,this.should_remove=sA,this.replacement=QA,CA)return AA;if(oA)return null}let IA;for(IA in AA){const BA=AA[IA];if(BA&&typeof BA=="object")if(Array.isArray(BA)){const sA=BA;for(let QA=0;QA<sA.length;QA+=1){const CA=sA[QA];isNode(CA)&&(this.visit(CA,AA,IA,QA)||QA--)}}else isNode(BA)&&this.visit(BA,AA,IA,null)}if(this.leave){const BA=this.replacement,sA=this.should_remove;this.replacement=null,this.should_remove=!1,this.leave.call(this.context,AA,tA,gA,iA),this.replacement&&(AA=this.replacement,this.replace(tA,gA,iA,AA)),this.should_remove&&this.remove(tA,gA,iA);const QA=this.should_remove;if(this.replacement=BA,this.should_remove=sA,QA)return null}}return AA}}function isNode(eA){return eA!==null&&typeof eA=="object"&&"type"in eA&&typeof eA.type=="string"}function walk$1(eA,{enter:AA,leave:tA}){return new SyncWalker(AA,tA).visit(eA,null)}const require="function require(id) {\n if (id in __repl_lookup) return __repl_lookup[id];\n throw new Error(`Cannot require modules dynamically (${id})`);\n}",plugin$1=()=>({name:"commonjs",transform:(eA,AA)=>{if(/\b(require|module|exports)\b/.test(eA))try{const tA=parse$2(eA,{ecmaVersion:"latest"}),gA=[];walk$1(tA,{enter:sA=>{if(sA.type==="CallExpression"&&sA.callee.name==="require"){if(sA.arguments.length!==1)return;const QA=sA.arguments[0];if(QA.type!=="Literal"||typeof QA.value!="string")return;gA.push(QA.value)}}});const iA=gA.map((sA,QA)=>`import __repl_${QA} from '${sA}';`).join(`
23
13
  `),IA=`const __repl_lookup = { ${gA.map((sA,QA)=>`'${sA}': __repl_${QA}`).join(", ")} };`;return{code:[iA,IA,require,"const exports = {}; const module = { exports };",eA,"export default module.exports;"].join(`
24
14
 
25
- `),map:null}}catch{return null}}});function e$2(eA,AA,tA){throw new Error(tA?`No known conditions for "${AA}" specifier in "${eA}" package`:`Missing "${AA}" specifier in "${eA}" package`)}function n$3(eA,AA,tA,gA){let iA,IA,BA=r$1(eA,tA),sA=function(CA){let oA=new Set(["default",...CA.conditions||[]]);return CA.unsafe||oA.add(CA.require?"require":"import"),CA.unsafe||oA.add(CA.browser?"browser":"node"),oA}(gA||{}),QA=AA[BA];if(QA===void 0){let CA,oA,EA,nA;for(nA in AA)oA&&nA.length<oA.length||(nA[nA.length-1]==="/"&&BA.startsWith(nA)?(IA=BA.substring(nA.length),oA=nA):nA.length>1&&(EA=nA.indexOf("*",1),~EA&&(CA=RegExp("^"+nA.substring(0,EA)+"(.*)"+nA.substring(1+EA)).exec(BA),CA&&CA[1]&&(IA=CA[1],oA=nA))));QA=AA[oA]}return QA||e$2(eA,BA),iA=t$1(QA,sA),iA||e$2(eA,BA,1),IA&&function(CA,oA){let EA,nA=0,cA=CA.length,uA=/[*]/g,lA=/[/]$/;for(;nA<cA;nA++)CA[nA]=uA.test(EA=CA[nA])?EA.replace(uA,oA):lA.test(EA)?EA+oA:EA}(iA,IA),iA}function r$1(eA,AA,tA){if(eA===AA||AA===".")return".";let gA=eA+"/",iA=gA.length,IA=AA.slice(0,iA)===gA,BA=IA?AA.slice(iA):AA;return BA[0]==="#"?BA:IA||!tA?BA.slice(0,2)==="./"?BA:"./"+BA:BA}function t$1(eA,AA,tA){if(eA){if(typeof eA=="string")return tA&&tA.add(eA),[eA];let gA,iA;if(Array.isArray(eA)){for(iA=tA||new Set,gA=0;gA<eA.length;gA++)t$1(eA[gA],AA,iA);if(!tA&&iA.size)return[...iA]}else for(gA in eA)if(AA.has(gA))return t$1(eA[gA],AA,tA)}}function o$2(eA,AA,tA){let gA,iA=eA.exports;if(iA){if(typeof iA=="string")iA={".":iA};else for(gA in iA){gA[0]!=="."&&(iA={".":iA});break}return n$3(eA.name,iA,AA||".",tA)}}const JSON_PKG_CACHE=new Map,SCOPED_PKG_REGEX=/^(@[^/]*\/[^/]*)(?:\/(.*))?$/s,PKG_REGEX=/^([^/]*)(?:\/(.*))?$/s,FILE_PREFIX="file:/",WIN_FILE_PREFIX="file:///",resolve_local=async(eA,AA)=>{if(AA!=null){const tA=new URL(`${FILE_PREFIX}${AA}`),gA=new URL(eA,tA).href;return gA.startsWith(WIN_FILE_PREFIX)?gA.slice(8):gA.slice(6)}return eA},resolve_remote=async(eA,AA)=>(await fetch(new URL(eA,AA),{method:"HEAD"})).url,fetch_json_remote=async eA=>{const AA=await fetch(eA);if(AA.ok)return JSON.parse(await AA.text())},fetch_package_json=async(eA,AA)=>{const[tA,gA,iA=""]=eA.split(eA.startsWith("@")?SCOPED_PKG_REGEX:PKG_REGEX),IA=`${AA}/${gA}`,BA=`${IA}/package.json`;if(JSON_PKG_CACHE.has(BA))return JSON_PKG_CACHE.get(BA);const sA=await fetch_json_remote(BA);if(sA!=null)return JSON_PKG_CACHE.set(BA,{base:IA,rest:iA,json:sA}),JSON_PKG_CACHE.get(BA)},resolve_id=eA=>({input:AA=>({resolved:AA}),hook:async(AA,tA)=>{if(AA.startsWith(INTERNAL_TAG)||AA.startsWith(USER_TAG))return AA;if(AA.startsWith(".")){if(tA!=null&&tA.startsWith(USER_TAG))return`${USER_TAG}${await resolve_local(AA,tA.slice(USER_TAG.length))}`;if(tA!=null&&tA.startsWith(RESOURCE_TAG))return`${RESOURCE_TAG}${await resolve_remote(AA,tA.slice(RESOURCE_TAG.length))}`}const gA=await fetch_package_json(AA,eA.cdn_url);if(gA!=null){const iA=o$2(gA.json,gA.rest,{browser:!0,conditions:["svelte","production"]});if(Array.isArray(iA)&&iA.length>0)return`${RESOURCE_TAG}${await resolve_remote(`${gA.base}/${iA[0]}`)}`;if(typeof iA=="string")return`${RESOURCE_TAG}${await resolve_remote(`${gA.base}/${iA}`)}`}throw"unknown file, should be unreachable"}});function walk(eA,AA,tA){const gA=tA._;let iA=!1;function IA(sA,{next:QA,state:CA}){QA(CA)}function BA(sA,QA,CA){if(iA||!sA.type)return;let oA;const EA={},nA={path:QA,state:CA,next:(uA=CA)=>{QA.push(sA);for(const lA in sA){if(lA==="type")continue;const hA=sA[lA];if(hA&&typeof hA=="object")if(Array.isArray(hA)){const dA={};hA.forEach((DA,wA)=>{if(DA&&typeof DA=="object"){const RA=BA(DA,QA,uA);RA&&(dA[wA]=RA)}}),Object.keys(dA).length>0&&(EA[lA]=hA.map((DA,wA)=>dA[wA]??DA))}else{const dA=BA(hA,QA,uA);dA&&(EA[lA]=dA)}}if(QA.pop(),Object.keys(EA).length>0)return apply_mutations(sA,EA)},stop:()=>{iA=!0},visit:(uA,lA=CA)=>{QA.push(sA);const hA=BA(uA,QA,lA)??uA;return QA.pop(),hA}};let cA=tA[sA.type]??IA;if(gA){let uA;oA=gA(sA,{...nA,next:(lA=CA)=>(CA=lA,uA=cA(sA,{...nA,state:lA}),uA)}),!oA&&uA&&(oA=uA)}else oA=cA(sA,nA);if(oA||Object.keys(EA).length>0&&(oA=apply_mutations(sA,EA)),oA)return oA}return BA(eA,[],AA)??eA}function apply_mutations(eA,AA){const tA={},gA=Object.getOwnPropertyDescriptors(eA);for(const iA in gA)Object.defineProperty(tA,iA,gA[iA]);for(const iA in AA)tA[iA]=AA[iA];return tA}const regex_whitespace=/\s/,regex_whitespaces=/\s+/,regex_starts_with_newline=/^\r?\n/,regex_starts_with_whitespace=/^\s/,regex_starts_with_whitespaces=/^[ \t\r\n]+/,regex_ends_with_whitespace=/\s$/,regex_ends_with_whitespaces=/[ \t\r\n]+$/,regex_not_whitespace=/[^ \t\r\n]/,regex_whitespaces_strict=/[ \t\n\r\f]+/g,regex_only_whitespaces=/^[ \t\n\r\f]+$/,regex_not_newline_characters=/[^\n]/g,regex_is_valid_identifier=/^[a-zA-Z_$][a-zA-Z_$0-9]*$/,regex_invalid_identifier_chars=/(^[^a-zA-Z_$]|[^a-zA-Z0-9_$])/g,regex_starts_with_vowel=/^[aeiou]/,regex_heading_tags=/^h[1-6]$/,regex_illegal_attribute_character=/(^[0-9-.])|[\^$@%&#?!|()[\]{}^*+~;]/,EACH_ITEM_REACTIVE=1,EACH_INDEX_REACTIVE=2,EACH_IS_CONTROLLED=4,EACH_IS_ANIMATED=8,EACH_ITEM_IMMUTABLE=16,PROPS_IS_IMMUTABLE=1,PROPS_IS_RUNES=2,PROPS_IS_UPDATED=4,PROPS_IS_BINDABLE=8,PROPS_IS_LAZY_INITIAL=16,TRANSITION_IN=1,TRANSITION_OUT=2,TRANSITION_GLOBAL=4,TEMPLATE_FRAGMENT=1,TEMPLATE_USE_IMPORT_NODE=2,HYDRATION_START="[",HYDRATION_START_ELSE="[!",HYDRATION_END="]",ELEMENT_IS_NAMESPACED=1,ELEMENT_PRESERVE_ATTRIBUTE_CASE=2,NAMESPACE_SVG="http://www.w3.org/2000/svg",NAMESPACE_MATHML="http://www.w3.org/1998/Math/MathML",IGNORABLE_RUNTIME_WARNINGS=["state_snapshot_uncloneable","binding_property_non_reactive","hydration_attribute_changed","hydration_html_changed","ownership_invalid_binding","ownership_invalid_mutation"];function fuzzymatch(eA,AA){if(AA.length===0)return null;const gA=new FuzzySet(AA).get(eA);return gA&&gA[0][0]>.7?gA[0][1]:null}const GRAM_SIZE_LOWER=2,GRAM_SIZE_UPPER=3;function _distance(eA,AA){if(eA===null&&AA===null)throw"Trying to compare two null values";return eA===null||AA===null?0:(eA=String(eA),AA=String(AA),1-levenshtein(eA,AA)/Math.max(eA.length,AA.length))}function levenshtein(eA,AA){const tA=[];let gA=0,iA=0;for(let IA=0;IA<=AA.length;IA++)for(let BA=0;BA<=eA.length;BA++)IA&&BA?eA.charAt(BA-1)===AA.charAt(IA-1)?iA=gA:iA=Math.min(tA[BA],tA[BA-1],gA)+1:iA=IA+BA,gA=tA[BA],tA[BA]=iA;return tA.pop()}const non_word_regex=/[^\w, ]+/;function iterate_grams(eA,AA=2){const tA="-"+eA.toLowerCase().replace(non_word_regex,"")+"-",gA=AA-tA.length,iA=[];if(gA>0)for(let IA=0;IA<gA;++IA)eA+="-";for(let IA=0;IA<tA.length-AA+1;++IA)iA.push(tA.slice(IA,IA+AA));return iA}function gram_counter(eA,AA=2){const tA={},gA=iterate_grams(eA,AA);let iA=0;for(iA;iA<gA.length;++iA)gA[iA]in tA?tA[gA[iA]]+=1:tA[gA[iA]]=1;return tA}function sort_descending(eA,AA){return AA[0]-eA[0]}class FuzzySet{constructor(AA){rg(this,"exact_set",{});rg(this,"match_dict",{});rg(this,"items",{});for(let tA=GRAM_SIZE_LOWER;tA<GRAM_SIZE_UPPER+1;++tA)this.items[tA]=[];for(let tA=0;tA<AA.length;++tA)this.add(AA[tA])}add(AA){if(AA.toLowerCase()in this.exact_set)return!1;let gA=GRAM_SIZE_LOWER;for(gA;gA<GRAM_SIZE_UPPER+1;++gA)this._add(AA,gA)}_add(AA,tA){const gA=AA.toLowerCase(),iA=this.items[tA]||[],IA=iA.length;iA.push(0);const BA=gram_counter(gA,tA);let sA=0,QA,CA;for(QA in BA)CA=BA[QA],sA+=Math.pow(CA,2),QA in this.match_dict?this.match_dict[QA].push([IA,CA]):this.match_dict[QA]=[[IA,CA]];const oA=Math.sqrt(sA);iA[IA]=[oA,gA],this.items[tA]=iA,this.exact_set[gA]=AA}get(AA){const tA=AA.toLowerCase(),gA=this.exact_set[tA];if(gA)return[[1,gA]];for(let iA=GRAM_SIZE_UPPER;iA>=GRAM_SIZE_LOWER;--iA){const IA=this.__get(AA,iA);if(IA.length>0)return IA}return null}__get(AA,tA){const gA=AA.toLowerCase(),iA={},IA=gram_counter(gA,tA),BA=this.items[tA];let sA=0,QA,CA,oA,EA,nA;for(QA in IA)if(CA=IA[QA],sA+=Math.pow(CA,2),QA in this.match_dict)for(oA=0;oA<this.match_dict[QA].length;++oA)EA=this.match_dict[QA][oA][0],nA=this.match_dict[QA][oA][1],EA in iA?iA[EA]+=CA*nA:iA[EA]=CA*nA;const cA=Math.sqrt(sA);let uA=[],lA;for(const DA in iA)lA=iA[DA],uA.push([lA/(cA*BA[DA][0]),BA[DA][1]]);uA.sort(sort_descending);let hA=[];const dA=Math.min(50,uA.length);for(let DA=0;DA<dA;++DA)hA.push([_distance(uA[DA][1],gA),uA[DA][1]]);uA=hA,uA.sort(sort_descending),hA=[];for(let DA=0;DA<uA.length;++DA)uA[DA][0]===uA[0][0]&&hA.push([uA[DA][0],this.exact_set[uA[DA][1]]]);return hA}}function rangeContains(eA,AA){return eA.start<=AA&&AA<eA.end}function getLocator$1(eA,AA={}){const{offsetLine:tA=0,offsetColumn:gA=0}=AA;let iA=0;const IA=eA.split(`
15
+ `),map:null}}catch{return null}}});function e$2(eA,AA,tA){throw new Error(tA?`No known conditions for "${AA}" specifier in "${eA}" package`:`Missing "${AA}" specifier in "${eA}" package`)}function n$3(eA,AA,tA,gA){let iA,IA,BA=r$1(eA,tA),sA=function(CA){let oA=new Set(["default",...CA.conditions||[]]);return CA.unsafe||oA.add(CA.require?"require":"import"),CA.unsafe||oA.add(CA.browser?"browser":"node"),oA}(gA||{}),QA=AA[BA];if(QA===void 0){let CA,oA,EA,nA;for(nA in AA)oA&&nA.length<oA.length||(nA[nA.length-1]==="/"&&BA.startsWith(nA)?(IA=BA.substring(nA.length),oA=nA):nA.length>1&&(EA=nA.indexOf("*",1),~EA&&(CA=RegExp("^"+nA.substring(0,EA)+"(.*)"+nA.substring(1+EA)).exec(BA),CA&&CA[1]&&(IA=CA[1],oA=nA))));QA=AA[oA]}return QA||e$2(eA,BA),iA=t$1(QA,sA),iA||e$2(eA,BA,1),IA&&function(CA,oA){let EA,nA=0,cA=CA.length,uA=/[*]/g,lA=/[/]$/;for(;nA<cA;nA++)CA[nA]=uA.test(EA=CA[nA])?EA.replace(uA,oA):lA.test(EA)?EA+oA:EA}(iA,IA),iA}function r$1(eA,AA,tA){if(eA===AA||AA===".")return".";let gA=eA+"/",iA=gA.length,IA=AA.slice(0,iA)===gA,BA=IA?AA.slice(iA):AA;return BA[0]==="#"?BA:IA||!tA?BA.slice(0,2)==="./"?BA:"./"+BA:BA}function t$1(eA,AA,tA){if(eA){if(typeof eA=="string")return tA&&tA.add(eA),[eA];let gA,iA;if(Array.isArray(eA)){for(iA=tA||new Set,gA=0;gA<eA.length;gA++)t$1(eA[gA],AA,iA);if(!tA&&iA.size)return[...iA]}else for(gA in eA)if(AA.has(gA))return t$1(eA[gA],AA,tA)}}function i$3(eA,AA={}){let tA,gA=0,iA=AA.browser,IA=AA.fields||["module","main"],BA=typeof iA=="string";for(iA&&!IA.includes("browser")&&(IA.unshift("browser"),BA&&(iA=r$1(eA.name,iA,!0)));gA<IA.length;gA++)if(tA=eA[IA[gA]]){if(typeof tA!="string"){if(typeof tA!="object"||IA[gA]!="browser")continue;if(BA&&(tA=tA[iA],tA==null))return iA}return typeof tA=="string"?"./"+tA.replace(/^\.?\//,""):tA}}function o$2(eA,AA,tA){let gA,iA=eA.exports;if(iA){if(typeof iA=="string")iA={".":iA};else for(gA in iA){gA[0]!=="."&&(iA={".":iA});break}return n$3(eA.name,iA,AA||".",tA)}}const USER_TAG="<nil_xit_user>",RESOURCE_TAG="<nil_xit_resource>",INTERNAL_TAG="<nil_xit_internal>",ROOT_FILE=eA=>`import { mount, unmount } from 'svelte';
16
+ import Component from "${USER_TAG}${eA.replace(/\\/g,"/")}";
17
+ export const action = (target, context) => {
18
+ let ref = mount(Component, { target, context });
19
+ return { destroy: () => unmount(ref) }
20
+ };`,JSON_PKG_CACHE=new Map,SCOPED_PKG_REGEX=/^(@[^/]*\/[^/]*)(?:\/(.*))?$/s,PKG_REGEX=/^([^/]*)(?:\/(.*))?$/s,FILE_PREFIX="file:/",WIN_FILE_PREFIX="file:///",resolve_local=async(eA,AA)=>{if(AA!=null){const tA=new URL(`${FILE_PREFIX}${AA}`),gA=new URL(eA,tA).href;return gA.startsWith(WIN_FILE_PREFIX)?gA.slice(8):gA.slice(6)}return eA},resolve_remote=async(eA,AA)=>(await fetch(new URL(eA,AA),{method:"HEAD"})).url,fetch_json_remote=async eA=>{const AA=await fetch(eA);if(AA.ok)return JSON.parse(await AA.text())},fetch_package_json=async(eA,AA)=>{const[tA,gA,iA=""]=eA.split(eA.startsWith("@")?SCOPED_PKG_REGEX:PKG_REGEX),IA=`${AA}/${gA}`,BA=`${IA}/package.json`;if(JSON_PKG_CACHE.has(BA))return JSON_PKG_CACHE.get(BA);const sA=await fetch_json_remote(BA);if(sA!=null)return JSON_PKG_CACHE.set(BA,{base:IA,rest:iA,json:sA}),JSON_PKG_CACHE.get(BA)},resolve_id=eA=>({input:AA=>({resolved:AA}),hook:async(AA,tA)=>{if(AA.startsWith(INTERNAL_TAG)||AA.startsWith(USER_TAG))return AA;if(AA.startsWith(".")){if(tA!=null&&tA.startsWith(USER_TAG))return`${USER_TAG}${await resolve_local(AA,tA.slice(USER_TAG.length))}`;if(tA!=null&&tA.startsWith(RESOURCE_TAG))return`${RESOURCE_TAG}${await resolve_remote(AA,tA.slice(RESOURCE_TAG.length))}`}if(AA.startsWith("https://"))return null;const gA=await fetch_package_json(AA,eA.cdn_url);if(gA!=null){const iA=o$2(gA.json,gA.rest,{browser:!0,conditions:["svelte","production"]});if(iA!=null){if(Array.isArray(iA)&&iA.length>0)return`${RESOURCE_TAG}${await resolve_remote(`${gA.base}/${iA[0]}`)}`;if(typeof iA=="string")return`${RESOURCE_TAG}${await resolve_remote(`${gA.base}/${iA}`)}`}else{const IA=i$3(gA.json);if(IA!=null)return console.log(`${RESOURCE_TAG}${await resolve_remote(`${gA.base}/${IA}`)}`),`${RESOURCE_TAG}${await resolve_remote(`${gA.base}/${IA}`)}`}}throw console.log(AA,tA),"unknown file, should be unreachable"}});function walk(eA,AA,tA){const gA=tA._;let iA=!1;function IA(sA,{next:QA,state:CA}){QA(CA)}function BA(sA,QA,CA){if(iA||!sA.type)return;let oA;const EA={},nA={path:QA,state:CA,next:(uA=CA)=>{QA.push(sA);for(const lA in sA){if(lA==="type")continue;const hA=sA[lA];if(hA&&typeof hA=="object")if(Array.isArray(hA)){const dA={};hA.forEach((DA,wA)=>{if(DA&&typeof DA=="object"){const RA=BA(DA,QA,uA);RA&&(dA[wA]=RA)}}),Object.keys(dA).length>0&&(EA[lA]=hA.map((DA,wA)=>dA[wA]??DA))}else{const dA=BA(hA,QA,uA);dA&&(EA[lA]=dA)}}if(QA.pop(),Object.keys(EA).length>0)return apply_mutations(sA,EA)},stop:()=>{iA=!0},visit:(uA,lA=CA)=>{QA.push(sA);const hA=BA(uA,QA,lA)??uA;return QA.pop(),hA}};let cA=tA[sA.type]??IA;if(gA){let uA;oA=gA(sA,{...nA,next:(lA=CA)=>(CA=lA,uA=cA(sA,{...nA,state:lA}),uA)}),!oA&&uA&&(oA=uA)}else oA=cA(sA,nA);if(oA||Object.keys(EA).length>0&&(oA=apply_mutations(sA,EA)),oA)return oA}return BA(eA,[],AA)??eA}function apply_mutations(eA,AA){const tA={},gA=Object.getOwnPropertyDescriptors(eA);for(const iA in gA)Object.defineProperty(tA,iA,gA[iA]);for(const iA in AA)tA[iA]=AA[iA];return tA}const regex_whitespace=/\s/,regex_whitespaces=/\s+/,regex_starts_with_newline=/^\r?\n/,regex_starts_with_whitespace=/^\s/,regex_starts_with_whitespaces=/^[ \t\r\n]+/,regex_ends_with_whitespace=/\s$/,regex_ends_with_whitespaces=/[ \t\r\n]+$/,regex_not_whitespace=/[^ \t\r\n]/,regex_whitespaces_strict=/[ \t\n\r\f]+/g,regex_only_whitespaces=/^[ \t\n\r\f]+$/,regex_not_newline_characters=/[^\n]/g,regex_is_valid_identifier=/^[a-zA-Z_$][a-zA-Z_$0-9]*$/,regex_invalid_identifier_chars=/(^[^a-zA-Z_$]|[^a-zA-Z0-9_$])/g,regex_starts_with_vowel=/^[aeiou]/,regex_heading_tags=/^h[1-6]$/,regex_illegal_attribute_character=/(^[0-9-.])|[\^$@%&#?!|()[\]{}^*+~;]/,EACH_ITEM_REACTIVE=1,EACH_INDEX_REACTIVE=2,EACH_IS_CONTROLLED=4,EACH_IS_ANIMATED=8,EACH_ITEM_IMMUTABLE=16,PROPS_IS_IMMUTABLE=1,PROPS_IS_RUNES=2,PROPS_IS_UPDATED=4,PROPS_IS_BINDABLE=8,PROPS_IS_LAZY_INITIAL=16,TRANSITION_IN=1,TRANSITION_OUT=2,TRANSITION_GLOBAL=4,TEMPLATE_FRAGMENT=1,TEMPLATE_USE_IMPORT_NODE=2,HYDRATION_START="[",HYDRATION_START_ELSE="[!",HYDRATION_END="]",ELEMENT_IS_NAMESPACED=1,ELEMENT_PRESERVE_ATTRIBUTE_CASE=2,NAMESPACE_SVG="http://www.w3.org/2000/svg",NAMESPACE_MATHML="http://www.w3.org/1998/Math/MathML",IGNORABLE_RUNTIME_WARNINGS=["state_snapshot_uncloneable","binding_property_non_reactive","hydration_attribute_changed","hydration_html_changed","ownership_invalid_binding","ownership_invalid_mutation"];function fuzzymatch(eA,AA){if(AA.length===0)return null;const gA=new FuzzySet(AA).get(eA);return gA&&gA[0][0]>.7?gA[0][1]:null}const GRAM_SIZE_LOWER=2,GRAM_SIZE_UPPER=3;function _distance(eA,AA){if(eA===null&&AA===null)throw"Trying to compare two null values";return eA===null||AA===null?0:(eA=String(eA),AA=String(AA),1-levenshtein(eA,AA)/Math.max(eA.length,AA.length))}function levenshtein(eA,AA){const tA=[];let gA=0,iA=0;for(let IA=0;IA<=AA.length;IA++)for(let BA=0;BA<=eA.length;BA++)IA&&BA?eA.charAt(BA-1)===AA.charAt(IA-1)?iA=gA:iA=Math.min(tA[BA],tA[BA-1],gA)+1:iA=IA+BA,gA=tA[BA],tA[BA]=iA;return tA.pop()}const non_word_regex=/[^\w, ]+/;function iterate_grams(eA,AA=2){const tA="-"+eA.toLowerCase().replace(non_word_regex,"")+"-",gA=AA-tA.length,iA=[];if(gA>0)for(let IA=0;IA<gA;++IA)eA+="-";for(let IA=0;IA<tA.length-AA+1;++IA)iA.push(tA.slice(IA,IA+AA));return iA}function gram_counter(eA,AA=2){const tA={},gA=iterate_grams(eA,AA);let iA=0;for(iA;iA<gA.length;++iA)gA[iA]in tA?tA[gA[iA]]+=1:tA[gA[iA]]=1;return tA}function sort_descending(eA,AA){return AA[0]-eA[0]}class FuzzySet{constructor(AA){rg(this,"exact_set",{});rg(this,"match_dict",{});rg(this,"items",{});for(let tA=GRAM_SIZE_LOWER;tA<GRAM_SIZE_UPPER+1;++tA)this.items[tA]=[];for(let tA=0;tA<AA.length;++tA)this.add(AA[tA])}add(AA){if(AA.toLowerCase()in this.exact_set)return!1;let gA=GRAM_SIZE_LOWER;for(gA;gA<GRAM_SIZE_UPPER+1;++gA)this._add(AA,gA)}_add(AA,tA){const gA=AA.toLowerCase(),iA=this.items[tA]||[],IA=iA.length;iA.push(0);const BA=gram_counter(gA,tA);let sA=0,QA,CA;for(QA in BA)CA=BA[QA],sA+=Math.pow(CA,2),QA in this.match_dict?this.match_dict[QA].push([IA,CA]):this.match_dict[QA]=[[IA,CA]];const oA=Math.sqrt(sA);iA[IA]=[oA,gA],this.items[tA]=iA,this.exact_set[gA]=AA}get(AA){const tA=AA.toLowerCase(),gA=this.exact_set[tA];if(gA)return[[1,gA]];for(let iA=GRAM_SIZE_UPPER;iA>=GRAM_SIZE_LOWER;--iA){const IA=this.__get(AA,iA);if(IA.length>0)return IA}return null}__get(AA,tA){const gA=AA.toLowerCase(),iA={},IA=gram_counter(gA,tA),BA=this.items[tA];let sA=0,QA,CA,oA,EA,nA;for(QA in IA)if(CA=IA[QA],sA+=Math.pow(CA,2),QA in this.match_dict)for(oA=0;oA<this.match_dict[QA].length;++oA)EA=this.match_dict[QA][oA][0],nA=this.match_dict[QA][oA][1],EA in iA?iA[EA]+=CA*nA:iA[EA]=CA*nA;const cA=Math.sqrt(sA);let uA=[],lA;for(const DA in iA)lA=iA[DA],uA.push([lA/(cA*BA[DA][0]),BA[DA][1]]);uA.sort(sort_descending);let hA=[];const dA=Math.min(50,uA.length);for(let DA=0;DA<dA;++DA)hA.push([_distance(uA[DA][1],gA),uA[DA][1]]);uA=hA,uA.sort(sort_descending),hA=[];for(let DA=0;DA<uA.length;++DA)uA[DA][0]===uA[0][0]&&hA.push([uA[DA][0],this.exact_set[uA[DA][1]]]);return hA}}function rangeContains(eA,AA){return eA.start<=AA&&AA<eA.end}function getLocator$1(eA,AA={}){const{offsetLine:tA=0,offsetColumn:gA=0}=AA;let iA=0;const IA=eA.split(`
26
21
  `).map((QA,CA)=>{const oA=iA+QA.length+1,EA={start:iA,end:oA,line:CA};return iA=oA,EA});let BA=0;function sA(QA,CA){if(typeof QA=="string"&&(QA=eA.indexOf(QA,CA??0)),QA===-1)return;let oA=IA[BA];const EA=QA>=oA.end?1:-1;for(;oA;){if(rangeContains(oA,QA))return{line:tA+oA.line,column:gA+QA-oA.start,character:QA};BA+=EA,oA=IA[BA]}}return sA}let warnings=[],filename,source,dev,locator=getLocator$1("",{offsetLine:1}),warning_filter,ignore_stack=[],ignore_map=new Map;function push_ignore(eA){const AA=new Set([...ignore_stack.at(-1)||[],...eA]);ignore_stack.push(AA)}function pop_ignore(){ignore_stack.pop()}function reset_warning_filter(eA=()=>!0){warning_filter=eA}function is_ignored(eA,AA){var tA;return dev&&!!((tA=ignore_map.get(eA))!=null&&tA.some(gA=>gA.has(AA)))}function reset(eA,AA){var gA;source=eA;const tA=(gA=AA.rootDir)==null?void 0:gA.replace(/\\/g,"/");filename=AA.filename.replace(/\\/g,"/"),dev=!!AA.dev,typeof tA=="string"&&filename.startsWith(tA)&&(filename=filename.replace(tA,"").replace(/^[/\\]/,"")),locator=getLocator$1(source,{offsetLine:1}),warnings=[],ignore_stack=[],ignore_map.clear()}const regex_tabs=/^\t+/;function tabs_to_spaces(eA){return eA.replace(regex_tabs,AA=>AA.split(" ").join(" "))}function get_code_frame(eA,AA,tA){const gA=eA.split(`
27
22
  `),iA=Math.max(0,AA-2),IA=Math.min(AA+3,gA.length),BA=String(IA+1).length;return gA.slice(iA,IA).map((sA,QA)=>{const CA=iA+QA===AA,oA=String(QA+iA+1).padStart(BA," ");if(CA){const EA=" ".repeat(BA+2+tabs_to_spaces(sA.slice(0,tA)).length)+"^";return`${oA}: ${tabs_to_spaces(sA)}
28
23
  ${EA}`}return`${oA}: ${tabs_to_spaces(sA)}`}).join(`
@@ -61,7 +56,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
61
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.
62
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+=`
63
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==="&"?"&amp;":sA==='"'?"&quot;":"&lt;"),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"&&regex_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"&&regex_starts_with_newline.test(oA.value[0].data)&&(oA.value[0].data=`
64
- `+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}: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)},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(IA.code)}`)}});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(`
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(`;
60
+
61
+ `),gA=AA.slice(0,tA).split(`;
62
+ `),iA=`export const nil_xit_fn = async (import_map) => { ${transform_import(gA)}; ${AA.slice(tA+2)}};`;return console.log(iA),iA},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(`
65
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(`
66
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(`
67
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]===`
@@ -109,4 +107,4 @@ Either change the import in "${ge(sA)}" to point directly to the exporting modul
109
107
  `||(CA+=`
110
108
  `),cA){let DA;El("sourcemaps",3),DA=nA?M(lA||nA):EA?M(EA,AA):M(AA),sA=function(wA,RA,GA,yA,LA,KA){const bA=mc(KA),SA=GA.filter(aA=>!aA.excludeFromSourcemap).map(aA=>gc(aA.id,aA.originalCode,aA.originalSourcemap,aA.sourcemapChain,bA)),MA=new fc(RA,SA),NA=yA.reduce(bA,MA);let{sources:FA,sourcesContent:qA,names:UA,mappings:mA}=NA.traceMappings();if(wA){const aA=C(wA);FA=FA.map(rA=>D(aA,rA)),wA=N(wA)}qA=LA?null:qA;for(const aA of GA)il(aA.originalSourcemap,aA.sourcemapChain);return new c({file:wA,mappings:mA,names:UA,sources:FA,sourcesContent:qA})}(DA,eA.generateDecodedMap({}),tA,QA,uA,BA);for(let wA=0;wA<sA.sources.length;++wA){let RA=sA.sources[wA];const GA=`${DA}.map`,yA=dA(RA,GA);typeof yA!="boolean"&&Me(bt("sourcemapIgnoreList function must return a boolean.")),yA&&(sA.x_google_ignoreList===void 0&&(sA.x_google_ignoreList=[]),sA.x_google_ignoreList.includes(wA)||sA.x_google_ignoreList.push(wA)),hA&&(RA=hA(RA,GA),typeof RA!="string"&&Me(bt("sourcemapPathTransform function must return a string."))),sA.sources[wA]=k(RA)}xl("sourcemaps",3)}return{code:CA,map:sA}}function vc(eA,AA,tA,{sourcemap:gA,sourcemapBaseUrl:iA}){let IA;if(gA==="inline")IA=AA.toUrl();else{const BA=N(eA);IA=iA?new URL(BA,iA).toString():BA,tA.emitFile({fileName:eA,originalFileName:null,source:AA.toString(),type:"asset"})}return gA==="hidden"?"":`//# sourceMappingURL=${IA}
111
109
  `}class wc{constructor(AA,tA,gA,iA,IA){this.outputOptions=AA,this.unsetOptions=tA,this.inputOptions=gA,this.pluginDriver=iA,this.graph=IA,this.facadeChunkByModule=new Map,this.includedNamespaces=new Set}async generate(AA){El("GENERATE",1);const tA=Object.create(null),gA=(iA=>{const IA=new Set;return new Proxy(iA,{deleteProperty:(BA,sA)=>(typeof sA=="string"&&IA.delete(sA.toLowerCase()),Reflect.deleteProperty(BA,sA)),get:(BA,sA)=>sA===Ul?IA:Reflect.get(BA,sA),set:(BA,sA,QA)=>(typeof sA=="string"&&IA.add(sA.toLowerCase()),Reflect.set(BA,sA,QA))})})(tA);this.pluginDriver.setOutputBundle(gA,this.outputOptions);try{El("initialize render",2),await this.pluginDriver.hookParallel("renderStart",[this.outputOptions,this.inputOptions]),xl("initialize render",2),El("generate chunks",2);const iA=(()=>{let BA=0;return(sA,QA)=>{if(QA>22)return Me(bt(`Hashes cannot be longer than 22 characters, received ${QA}. Check the "${sA}" option.`));const CA=`${Bl}${Ds(++BA).padStart(QA-5,"0")}${zl}`;return CA.length>QA?Me(bt(`To generate hashes for this number of chunks (currently ${BA}), you need a minimum hash size of ${CA.length}, received ${QA}. Check the "${sA}" option.`)):CA}})(),IA=await this.generateChunks(gA,iA);IA.length>1&&function(BA,sA){if(BA.format==="umd"||BA.format==="iife")return Me(ot("output.format",Ie,"UMD and IIFE output formats are not supported for code-splitting builds",BA.format));if(typeof BA.file=="string")return Me(ot("output.file",ve,'when building multiple chunks, the "output.dir" option must be used, not "output.file". To inline dynamic imports, set the "inlineDynamicImports" option'));if(BA.sourcemapFile)return Me(ot("output.sourcemapFile",Oe,'"output.sourcemapFile" is only supported for single-file builds'));!BA.amd.autoId&&BA.amd.id&&sA(de,ot("output.amd.id",$e,'this option is only properly supported for single-file builds. Use "output.amd.autoId" and "output.amd.basePath" instead'))}(this.outputOptions,this.inputOptions.onLog),this.pluginDriver.setChunkInformation(this.facadeChunkByModule);for(const BA of IA)BA.generateExports();xl("generate chunks",2),await Ac(IA,gA,this.pluginDriver,this.outputOptions,this.inputOptions.onLog)}catch(iA){throw await this.pluginDriver.hookParallel("renderError",[iA]),iA}return(iA=>{const IA=new Set,BA=Object.values(iA);for(const sA of BA)sA.type==="asset"&&sA.needsCodeReference&&IA.add(sA.fileName);for(const sA of BA)if(sA.type==="chunk")for(const QA of sA.referencedFiles)IA.has(QA)&&IA.delete(QA);for(const sA of IA)delete iA[sA]})(gA),El("generate bundle",2),await this.pluginDriver.hookSeq("generateBundle",[this.outputOptions,gA,AA]),this.finaliseAssets(gA),xl("generate bundle",2),xl("GENERATE",1),tA}async addManualChunks(AA){const tA=new Map,gA=await Promise.all(Object.entries(AA).map(async([iA,IA])=>({alias:iA,entries:await this.graph.moduleLoader.addAdditionalModules(IA,!0)})));for(const{alias:iA,entries:IA}of gA)for(const BA of IA)Ic(iA,BA,tA);return tA}assignManualChunks(AA){const tA=[],gA={getModuleIds:()=>this.graph.modulesById.keys(),getModuleInfo:this.graph.getModuleInfo};for(const IA of this.graph.modulesById.values())if(IA instanceof Il){const BA=AA(IA.id,gA);typeof BA=="string"&&tA.push([BA,IA])}tA.sort(([IA],[BA])=>IA>BA?1:IA<BA?-1:0);const iA=new Map;for(const[IA,BA]of tA)Ic(IA,BA,iA);return iA}finaliseAssets(AA){if(this.outputOptions.validate){for(const tA of Object.values(AA))if("code"in tA)try{al(tA.code,{jsx:this.inputOptions.jsx!==!1})}catch(gA){this.inputOptions.onLog(de,Xe(tA,gA))}}this.pluginDriver.finaliseAssets()}async generateChunks(AA,tA){const{experimentalMinChunkSize:gA,inlineDynamicImports:iA,manualChunks:IA,preserveModules:BA}=this.outputOptions,sA=typeof IA=="object"?await this.addManualChunks(IA):this.assignManualChunks(IA),QA=function({compact:lA,generatedCode:{arrowFunctions:hA,constBindings:dA,objectShorthand:DA,reservedNamesAsProps:wA}}){const{_:RA,n:GA,s:yA}=lA?{_:"",n:"",s:""}:{_:" ",n:`
112
- `,s:";"},LA=dA?"const":"var",KA=(NA,{isAsync:FA,name:qA})=>`${FA?"async ":""}function${qA?` ${qA}`:""}${RA}(${NA.join(`,${RA}`)})${RA}`,bA=hA?(NA,{isAsync:FA,name:qA})=>{const UA=NA.length===1;return`${qA?`${LA} ${qA}${RA}=${RA}`:""}${FA?`async${UA?" ":RA}`:""}${UA?NA[0]:`(${NA.join(`,${RA}`)})`}${RA}=>${RA}`}:KA,SA=(NA,{functionReturn:FA,lineBreakIndent:qA,name:UA})=>[`${bA(NA,{isAsync:!1,name:UA})}${hA?qA?`${GA}${qA.base}${qA.t}`:"":`{${qA?`${GA}${qA.base}${qA.t}`:RA}${FA?"return ":""}`}`,hA?`${UA?";":""}${qA?`${GA}${qA.base}`:""}`:`${yA}${qA?`${GA}${qA.base}`:RA}}`],MA=wA?NA=>en.test(NA):NA=>!Xt.has(NA)&&en.test(NA);return{_:RA,cnst:LA,getDirectReturnFunction:SA,getDirectReturnIifeLeft:(NA,FA,{needsArrowReturnParens:qA,needsWrappedFunction:UA})=>{const[mA,aA]=SA(NA,{functionReturn:!0,lineBreakIndent:null,name:null});return`${hc(`${mA}${hc(FA,hA&&qA)}${aA}`,hA||UA)}(`},getFunctionIntro:bA,getNonArrowFunctionIntro:KA,getObject(NA,{lineBreakIndent:FA}){const qA=FA?`${GA}${FA.base}${FA.t}`:RA;return`{${NA.map(([UA,mA])=>{if(UA===null)return`${qA}${mA}`;const aA=nn(UA);return UA===mA&&DA&&UA===aA?qA+UA:`${qA}${aA}:${RA}${mA}`}).join(",")}${NA.length===0?"":FA?`${GA}${FA.base}`:RA}}`},getPropertyAccess:NA=>MA(NA)?`.${NA}`:`[${JSON.stringify(NA)}]`,n:GA,s:yA}}(this.outputOptions),CA=function(lA){const hA=[];for(const dA of lA.values())dA instanceof Il&&(dA.isIncluded()||dA.info.isEntry||dA.includedDynamicImporters.length>0)&&hA.push(dA);return hA}(this.graph.modulesById),oA=function(lA){if(lA.length===0)return"/";if(lA.length===1)return C(lA[0]);const hA=lA.slice(1).reduce((dA,DA)=>{const wA=DA.split(/\/+|\\+/);let RA;for(RA=0;dA[RA]===wA[RA]&&RA<Math.min(dA.length,wA.length);RA++);return dA.slice(0,RA)},lA[0].split(/\/+|\\+/));return hA.length>1?hA.join("/"):"/"}(function(lA,hA){const dA=[];for(const DA of lA)(DA.info.isEntry||hA)&&I(DA.id)&&dA.push(DA.id);return dA}(CA,BA)),EA=function(lA,hA,dA){const DA=new Map;for(const wA of lA.values())wA instanceof rn&&DA.set(wA,new hr(wA,hA,dA));return DA}(this.graph.modulesById,this.outputOptions,oA),nA=[],cA=new Map;for(const{alias:lA,modules:hA}of iA?[{alias:null,modules:CA}]:BA?CA.map(dA=>({alias:null,modules:[dA]})):nc(this.graph.entryModules,sA,gA,this.inputOptions.onLog)){hA.sort(dc);const dA=new Kl(hA,this.inputOptions,this.outputOptions,this.unsetOptions,this.pluginDriver,this.graph.modulesById,cA,EA,this.facadeChunkByModule,this.includedNamespaces,lA,tA,AA,oA,QA);nA.push(dA)}for(const lA of nA)lA.link();const uA=[];for(const lA of nA)uA.push(...lA.generateFacades());return[...nA,...uA]}}function Ic(eA,AA,tA){const gA=tA.get(AA);if(typeof gA=="string"&&gA!==eA)return Me((iA=AA.id,IA=eA,BA=gA,{code:"INVALID_CHUNK",message:`Cannot assign "${ge(iA)}" to the "${IA}" chunk as it is already in the "${BA}" chunk.`}));var iA,IA,BA;tA.set(AA,eA)}class Pc extends Rs{constructor(){super(),this.parent=null,this.variables.set("undefined",new lr)}findVariable(AA){let tA=this.variables.get(AA);return tA||(tA=new Is(AA),this.variables.set(AA,tA)),tA}}const kc=eA=>()=>Me(function(AA){return{code:"NO_FS_IN_BROWSER",message:`Cannot access the file system (via "${AA}") when using the browser build of Rollup. Make sure you supply a plugin with custom resolveId and load hooks to Rollup.`,url:xe("plugin-development/#a-simple-example")}}(eA)),Nc=kc("fs.mkdir"),Cc=kc("fs.readFile"),Oc=kc("fs.writeFile");async function Dc(eA,AA,tA,gA,iA,IA,BA,sA,QA){const CA=await function(oA,EA,nA,cA,uA,lA,hA,dA){let DA=null,wA=null;if(uA){DA=new Set;for(const RA of uA)oA===RA.source&&EA===RA.importer&&DA.add(RA.plugin);wA=(RA,GA)=>({...RA,resolve:(yA,LA,{attributes:KA,custom:bA,isEntry:SA,skipSelf:MA}=J)=>(MA??(MA=!0),cA(yA,LA,bA,SA,KA||K,MA?[...uA,{importer:LA,plugin:GA,source:yA}]:uA))})}return nA.hookFirstAndGetPlugin("resolveId",[oA,EA,{attributes:dA,custom:lA,isEntry:hA}],wA,DA)}(eA,AA,gA,iA,IA,BA,sA,QA);return CA==null?kc("path.resolve")():CA[0]}const Mc="at position ",Rc="at output position ",_c={delete:()=>!1,get(){},has:()=>!1,set(){}};function Lc(eA){return eA.startsWith(Mc)||eA.startsWith(Rc)?Me({code:"ANONYMOUS_PLUGIN_CACHE",message:"A plugin is trying to use the Rollup cache but is not declaring a plugin name or cacheKey."}):Me({code:"DUPLICATE_PLUGIN_NAME",message:`The plugin name ${eA} is being used twice in the same build. Plugin names must be distinct or provide a cacheKey (please post an issue to the plugin if you are a plugin user).`})}const Tc=(eA,AA,tA=Fc)=>{const{onwarn:gA,onLog:iA}=eA,IA=Bc(tA,gA);if(iA){const BA=pe[AA];return(sA,QA)=>iA(sA,zc(QA),(CA,oA)=>{if(CA==="error")return Me(Vc(oA));pe[CA]>=BA&&IA(CA,Vc(oA))})}return IA},Bc=(eA,AA)=>AA?(tA,gA)=>{tA===de?AA(zc(gA),iA=>eA(de,Vc(iA))):eA(tA,gA)}:eA,zc=eA=>(Object.defineProperty(eA,"toString",{value:()=>eA.message,writable:!0}),eA),Vc=eA=>typeof eA=="string"?{message:eA}:typeof eA=="function"?Vc(eA()):eA,Fc=(eA,{message:AA})=>{switch(eA){case de:return console.warn(AA);case he:return console.debug(AA);default:return console.info(AA)}};function jc(eA,AA,tA,gA,iA=/$./){const IA=new Set(AA),BA=Object.keys(eA).filter(sA=>!(IA.has(sA)||iA.test(sA)));BA.length>0&&gA(de,function(sA,QA,CA){return{code:"UNKNOWN_OPTION",message:`Unknown ${sA}: ${QA.join(", ")}. Allowed options: ${CA.join(", ")}`}}(tA,BA,[...IA].sort()))}const Uc={recommended:{annotations:!0,correctVarValueBeforeDeclaration:!1,manualPureFunctions:X,moduleSideEffects:()=>!0,propertyReadSideEffects:!0,tryCatchDeoptimization:!0,unknownGlobalSideEffects:!1},safest:{annotations:!0,correctVarValueBeforeDeclaration:!0,manualPureFunctions:X,moduleSideEffects:()=>!0,propertyReadSideEffects:!0,tryCatchDeoptimization:!0,unknownGlobalSideEffects:!0},smallest:{annotations:!0,correctVarValueBeforeDeclaration:!1,manualPureFunctions:X,moduleSideEffects:()=>!1,propertyReadSideEffects:!1,tryCatchDeoptimization:!1,unknownGlobalSideEffects:!1}},Gc={preserve:{factory:null,fragment:null,importSource:null,mode:"preserve"},"preserve-react":{factory:"React.createElement",fragment:"React.Fragment",importSource:"react",mode:"preserve"},react:{factory:"React.createElement",fragment:"React.Fragment",importSource:"react",mode:"classic"},"react-jsx":{factory:"React.createElement",importSource:"react",jsxImportSource:"react/jsx-runtime",mode:"automatic"}},Wc={es2015:{arrowFunctions:!0,constBindings:!0,objectShorthand:!0,reservedNamesAsProps:!0,symbols:!0},es5:{arrowFunctions:!1,constBindings:!1,objectShorthand:!1,reservedNamesAsProps:!0,symbols:!1}},Hc=(eA,AA,tA,gA,iA)=>{const IA=eA==null?void 0:eA.preset;if(IA){const BA=AA[IA];if(BA)return{...BA,...eA};Me(ot(`${tA}.preset`,gA,`valid values are ${fe(Object.keys(AA))}`,IA))}return((BA,sA,QA,CA)=>oA=>{if(typeof oA=="string"){const EA=BA[oA];if(EA)return EA;Me(ot(sA,QA,`valid values are ${CA}${fe(Object.keys(BA))}. You can also supply an object for more fine-grained control`,oA))}return(EA=>EA&&typeof EA=="object"?EA:{})(oA)})(AA,tA,gA,iA)(eA)},qc=async eA=>(await async function(AA){do AA=(await Promise.all(AA)).flat(1/0);while(AA.some(tA=>tA==null?void 0:tA.then));return AA}([eA])).filter(Boolean);async function Jc(eA,AA,tA,gA){const iA=AA.id,IA=[];let BA=eA.map===null?null:rl(eA.map);const sA=eA.code;let QA=eA.ast;const CA=[],oA=[];let EA=!1;const nA=()=>EA=!0;let cA="",uA=eA.code;const lA=dA=>(DA,wA)=>{DA=Vc(DA),wA&&_e(DA,wA,uA,iA),DA.id=iA,DA.hook="transform",dA(DA)};let hA;try{hA=await tA.hookReduceArg0("transform",[uA,iA],function(dA,DA,wA){let RA,GA;if(typeof DA=="string")RA=DA;else{if(!DA||typeof DA!="object")return dA;if(AA.updateOptions(DA),DA.code==null)return(DA.map||DA.ast)&&gA(de,function(yA){return{code:"NO_TRANSFORM_MAP_OR_AST_WITHOUT_CODE",message:`The plugin "${yA}" returned a "map" or "ast" without returning a "code". This will be ignored.`}}(wA.name)),dA;({code:RA,map:GA,ast:QA}=DA)}return GA!==null&&IA.push(rl(typeof GA=="string"?JSON.parse(GA):GA)||{missing:!0,plugin:wA.name}),uA=RA,RA},(dA,DA)=>{return cA=DA.name,{...dA,addWatchFile(GA){CA.push(GA),dA.addWatchFile(GA)},cache:EA?dA.cache:(wA=dA.cache,RA=nA,{delete:GA=>(RA(),wA.delete(GA)),get:GA=>(RA(),wA.get(GA)),has:GA=>(RA(),wA.has(GA)),set:(GA,yA)=>(RA(),wA.set(GA,yA))}),debug:lA(dA.debug),emitFile:GA=>(oA.push(GA),tA.emitFile(GA)),error:(GA,yA)=>(typeof GA=="string"&&(GA={message:GA}),yA&&_e(GA,yA,uA,iA),GA.id=iA,GA.hook="transform",dA.error(GA)),getCombinedSourcemap(){const GA=function(yA,LA,KA,bA,SA){return bA.length===0?KA:rl({version:3,...gc(yA,LA,KA,bA,mc(SA)).traceMappings()})}(iA,sA,BA,IA,gA);return GA?(BA!==GA&&(BA=GA,IA.length=0),new c({...GA,file:null,sourcesContent:GA.sourcesContent})):new b(sA).generateMap({hires:!0,includeContent:!0,source:iA})},info:lA(dA.info),setAssetSource(){return this.error({code:"INVALID_SETASSETSOURCE",message:"setAssetSource cannot be called in transform for caching reasons. Use emitFile with a source, or call setAssetSource in another hook."})},warn:lA(dA.warn)};var wA,RA})}catch(dA){return Me(ft(dA,cA,{hook:"transform",id:iA}))}return!EA&&oA.length>0&&(AA.transformFiles=oA),{ast:QA,code:hA,customTransformCache:EA,originalCode:sA,originalSourcemap:BA,sourcemapChain:IA,transformDependencies:CA}}const Kc="resolveDependencies";class Xc{constructor(AA,tA,gA,iA){this.graph=AA,this.modulesById=tA,this.options=gA,this.pluginDriver=iA,this.implicitEntryModules=new Set,this.indexedEntryModules=[],this.latestLoadModulesPromise=Promise.resolve(),this.moduleLoadPromises=new Map,this.modulesWithLoadedDependencies=new Set,this.nextChunkNamePriority=0,this.nextEntryModuleIndex=0,this.resolveId=async(IA,BA,sA,QA,CA,oA=null)=>this.getResolvedIdWithDefaults(this.getNormalizedResolvedIdWithoutDefaults(!this.options.external(IA,BA,!1)&&await Dc(IA,BA,this.options.preserveSymlinks,this.pluginDriver,this.resolveId,oA,sA,typeof QA=="boolean"?QA:!BA,CA),BA,IA),CA),this.hasModuleSideEffects=gA.treeshake?gA.treeshake.moduleSideEffects:()=>!0}async addAdditionalModules(AA,tA){const gA=this.extendLoadModulesPromise(Promise.all(AA.map(iA=>this.loadEntryModule(iA,!1,void 0,null,tA))));return await this.awaitLoadModulesPromise(),gA}async addEntryModules(AA,tA){const gA=this.nextEntryModuleIndex;this.nextEntryModuleIndex+=AA.length;const iA=this.nextChunkNamePriority;this.nextChunkNamePriority+=AA.length;const IA=await this.extendLoadModulesPromise(Promise.all(AA.map(({id:BA,importer:sA})=>this.loadEntryModule(BA,!0,sA,null))).then(BA=>{for(const[sA,QA]of BA.entries()){QA.isUserDefinedEntryPoint=QA.isUserDefinedEntryPoint||tA,Zc(QA,AA[sA],tA,iA+sA);const CA=this.indexedEntryModules.find(oA=>oA.module===QA);CA?CA.index=Math.min(CA.index,gA+sA):this.indexedEntryModules.push({index:gA+sA,module:QA})}return this.indexedEntryModules.sort(({index:sA},{index:QA})=>sA>QA?1:-1),BA}));return await this.awaitLoadModulesPromise(),{entryModules:this.indexedEntryModules.map(({module:BA})=>BA),implicitEntryModules:[...this.implicitEntryModules],newEntryModules:IA}}async emitChunk({fileName:AA,id:tA,importer:gA,name:iA,implicitlyLoadedAfterOneOf:IA,preserveSignature:BA}){const sA={fileName:AA||null,id:tA,importer:gA,name:iA||null},QA=IA?await this.addEntryWithImplicitDependants(sA,IA):(await this.addEntryModules([sA],!1)).newEntryModules[0];return BA!=null&&(QA.preserveSignature=BA),QA}async preloadModule(AA){return(await this.fetchModule(this.getResolvedIdWithDefaults(AA,K),void 0,!1,!AA.resolveDependencies||Kc)).info}addEntryWithImplicitDependants(AA,tA){const gA=this.nextChunkNamePriority++;return this.extendLoadModulesPromise(this.loadEntryModule(AA.id,!1,AA.importer,null).then(async iA=>{if(Zc(iA,AA,!1,gA),!iA.info.isEntry){const IA=await Promise.all(tA.map(BA=>this.loadEntryModule(BA,!1,AA.importer,iA.id)));if(!iA.info.isEntry){this.implicitEntryModules.add(iA);for(const BA of IA)iA.implicitlyLoadedAfter.add(BA);for(const BA of iA.implicitlyLoadedAfter)BA.implicitlyLoadedBefore.add(iA)}}return iA}))}async addModuleSource(AA,tA,gA){let iA;try{iA=await this.graph.fileOperationQueue.run(async()=>{const QA=await this.pluginDriver.hookFirst("load",[AA]);return QA!==null?QA:(this.graph.watchFiles[AA]=!0,await Cc(AA,"utf8"))})}catch(QA){let CA=`Could not load ${AA}`;throw tA&&(CA+=` (imported by ${ge(tA)})`),CA+=`: ${QA.message}`,QA.message=CA,QA}const IA=typeof iA=="string"?{code:iA}:iA!=null&&typeof iA=="object"&&typeof iA.code=="string"?iA:Me(function(QA){return{code:"BAD_LOADER",message:`Error loading "${ge(QA)}": plugin load hook should return a string, a { code, map } object, or nothing/null.`}}(AA)),BA=IA.code;BA.charCodeAt(0)===65279&&(IA.code=BA.slice(1));const sA=this.graph.cachedModules.get(AA);if(!sA||sA.customTransformCache||sA.originalCode!==IA.code||await this.pluginDriver.hookFirst("shouldTransformCachedModule",[{ast:sA.ast,code:sA.code,id:sA.id,meta:sA.meta,moduleSideEffects:sA.moduleSideEffects,resolvedSources:sA.resolvedIds,syntheticNamedExports:sA.syntheticNamedExports}]))gA.updateOptions(IA),await gA.setSource(await Jc(IA,gA,this.pluginDriver,this.options.onLog));else{if(sA.transformFiles)for(const QA of sA.transformFiles)this.pluginDriver.emitFile(QA);await gA.setSource(sA)}}async awaitLoadModulesPromise(){let AA;do AA=this.latestLoadModulesPromise,await AA;while(AA!==this.latestLoadModulesPromise)}extendLoadModulesPromise(AA){return this.latestLoadModulesPromise=Promise.all([AA,this.latestLoadModulesPromise]),this.latestLoadModulesPromise.catch(()=>{}),AA}async fetchDynamicDependencies(AA,tA){const gA=await Promise.all(tA.map(iA=>iA.then(async([IA,BA])=>BA===null?null:typeof BA=="string"?(IA.resolution=BA,null):IA.resolution=await this.fetchResolvedDependency(ge(BA.id),AA.id,BA))));for(const iA of gA)iA&&(AA.dynamicDependencies.add(iA),iA.dynamicImporters.push(AA.id))}async fetchModule({attributes:AA,id:tA,meta:gA,moduleSideEffects:iA,syntheticNamedExports:IA},BA,sA,QA){const CA=this.modulesById.get(tA);if(CA instanceof Il)return BA&&ul(AA,CA.info.attributes)&&this.options.onLog(de,et(CA.info.attributes,AA,tA,BA)),await this.handleExistingModule(CA,sA,QA),CA;if(CA instanceof rn)return Me({code:"EXTERNAL_MODULES_CANNOT_BE_TRANSFORMED_TO_MODULES",message:`${CA.id} is resolved as a module now, but it was an external module before. Please check whether there are conflicts in your Rollup options "external" and "manualChunks", manualChunks cannot include external modules.`});const oA=new Il(this.graph,tA,this.options,sA,iA,IA,gA,AA);this.modulesById.set(tA,oA);const EA=this.addModuleSource(tA,BA,oA).then(()=>[this.getResolveStaticDependencyPromises(oA),this.getResolveDynamicImportPromises(oA),nA]),nA=ed(EA).then(()=>this.pluginDriver.hookParallel("moduleParsed",[oA.info]));nA.catch(()=>{}),this.moduleLoadPromises.set(oA,EA);const cA=await EA;return QA?QA===Kc&&await nA:await this.fetchModuleDependencies(oA,...cA),oA}async fetchModuleDependencies(AA,tA,gA,iA){this.modulesWithLoadedDependencies.has(AA)||(this.modulesWithLoadedDependencies.add(AA),await Promise.all([this.fetchStaticDependencies(AA,tA),this.fetchDynamicDependencies(AA,gA)]),AA.linkImports(),await iA)}fetchResolvedDependency(AA,tA,gA){if(gA.external){const{attributes:iA,external:IA,id:BA,moduleSideEffects:sA,meta:QA}=gA;let CA=this.modulesById.get(BA);if(CA){if(!(CA instanceof rn))return Me(function(oA,EA){return{code:"INVALID_EXTERNAL_ID",message:`"${oA}" is imported as an external by "${ge(EA)}", but is already an existing non-external module id.`}}(AA,tA));ul(CA.info.attributes,iA)&&this.options.onLog(de,et(CA.info.attributes,iA,AA,tA))}else CA=new rn(this.options,BA,sA,QA,IA!=="absolute"&&I(BA),iA),this.modulesById.set(BA,CA);return Promise.resolve(CA)}return this.fetchModule(gA,tA,!1,!1)}async fetchStaticDependencies(AA,tA){for(const gA of await Promise.all(tA.map(iA=>iA.then(([IA,BA])=>this.fetchResolvedDependency(IA,AA.id,BA)))))AA.dependencies.add(gA),gA.importers.push(AA.id);if(!this.options.treeshake||AA.info.moduleSideEffects==="no-treeshake")for(const gA of AA.dependencies)gA instanceof Il&&(gA.importedFromNotTreeshaken=!0)}getNormalizedResolvedIdWithoutDefaults(AA,tA,gA){const{makeAbsoluteExternalsRelative:iA}=this.options;if(AA){if(typeof AA=="object"){const sA=AA.external||this.options.external(AA.id,tA,!0);return{...AA,external:sA&&(sA==="relative"||!I(AA.id)||sA===!0&&Qc(AA.id,gA,iA)||"absolute")}}const BA=this.options.external(AA,tA,!0);return{external:BA&&(Qc(AA,gA,iA)||"absolute"),id:BA&&iA?Yc(AA,tA):AA}}const IA=iA?Yc(gA,tA):gA;return AA===!1||this.options.external(IA,tA,!0)?{external:Qc(IA,gA,iA)||"absolute",id:IA}:null}getResolveDynamicImportPromises(AA){return AA.dynamicImports.map(async tA=>{const gA=await this.resolveDynamicImport(AA,tA.argument,AA.id,cl(tA.node));return gA&&typeof gA=="object"&&(tA.id=gA.id),[tA,gA]})}getResolveStaticDependencyPromises(AA){return Array.from(AA.sourcesWithAttributes,async([tA,gA])=>[tA,AA.resolvedIds[tA]=AA.resolvedIds[tA]||this.handleInvalidResolvedId(await this.resolveId(tA,AA.id,K,!1,gA),tA,AA.id,gA)])}getResolvedIdWithDefaults(AA,tA){if(!AA)return null;const gA=AA.external||!1;return{attributes:AA.attributes||tA,external:gA,id:AA.id,meta:AA.meta||{},moduleSideEffects:AA.moduleSideEffects??this.hasModuleSideEffects(AA.id,!!gA),resolvedBy:AA.resolvedBy??"rollup",syntheticNamedExports:AA.syntheticNamedExports??!1}}async handleExistingModule(AA,tA,gA){const iA=this.moduleLoadPromises.get(AA);if(gA)return gA===Kc?ed(iA):iA;if(tA){AA.info.isEntry=!0,this.implicitEntryModules.delete(AA);for(const IA of AA.implicitlyLoadedAfter)IA.implicitlyLoadedBefore.delete(AA);AA.implicitlyLoadedAfter.clear()}return this.fetchModuleDependencies(AA,...await iA)}handleInvalidResolvedId(AA,tA,gA,iA){return AA===null?P(tA)?Me(function(IA,BA){return{code:Je,exporter:IA,id:BA,message:`Could not resolve "${IA}" from "${ge(BA)}"`}}(tA,gA)):(this.options.onLog(de,function(IA,BA){return{code:Je,exporter:IA,id:BA,message:`"${IA}" is imported by "${ge(BA)}", but could not be resolved – treating it as an external dependency.`,url:xe("troubleshooting/#warning-treating-module-as-external-dependency")}}(tA,gA)),{attributes:iA,external:!0,id:tA,meta:{},moduleSideEffects:this.hasModuleSideEffects(tA,!0),resolvedBy:"rollup",syntheticNamedExports:!1}):(AA.external&&AA.syntheticNamedExports&&this.options.onLog(de,function(IA,BA){return{code:"EXTERNAL_SYNTHETIC_EXPORTS",exporter:IA,message:`External "${IA}" cannot have "syntheticNamedExports" enabled (imported by "${ge(BA)}").`}}(tA,gA)),AA)}async loadEntryModule(AA,tA,gA,iA,IA=!1){const BA=await Dc(AA,gA,this.options.preserveSymlinks,this.pluginDriver,this.resolveId,null,K,!0,K);if(BA==null)return Me(iA===null?function(QA){return{code:qe,message:`Could not resolve entry module "${ge(QA)}".`}}(AA):function(QA,CA){return{code:je,message:`Module "${ge(QA)}" that should be implicitly loaded before "${ge(CA)}" could not be resolved.`}}(AA,iA));const sA=typeof BA=="object"&&BA.external;return BA===!1||sA?Me(iA===null?sA&&IA?{code:"EXTERNAL_MODULES_CANNOT_BE_INCLUDED_IN_MANUAL_CHUNKS",message:`"${AA}" cannot be included in manualChunks because it is resolved as an external module by the "external" option or plugins.`}:function(QA){return{code:qe,message:`Entry module "${ge(QA)}" cannot be external.`}}(AA):function(QA,CA){return{code:je,message:`Module "${ge(QA)}" that should be implicitly loaded before "${ge(CA)}" cannot be external.`}}(AA,iA)):this.fetchModule(this.getResolvedIdWithDefaults(typeof BA=="object"?BA:{id:BA},K),void 0,tA,!1)}async resolveDynamicImport(AA,tA,gA,iA){const IA=await this.pluginDriver.hookFirst("resolveDynamicImport",[tA,gA,{attributes:iA}]);if(typeof tA!="string")return typeof IA=="string"?IA:IA?this.getResolvedIdWithDefaults(IA,iA):null;if(IA==null){const BA=AA.resolvedIds[tA];return BA?(ul(BA.attributes,iA)&&this.options.onLog(de,et(BA.attributes,iA,tA,gA)),BA):AA.resolvedIds[tA]=this.handleInvalidResolvedId(await this.resolveId(tA,AA.id,K,!1,iA),tA,AA.id,iA)}return this.handleInvalidResolvedId(this.getResolvedIdWithDefaults(this.getNormalizedResolvedIdWithoutDefaults(IA,gA,tA),iA),tA,gA,iA)}}function Yc(eA,AA){return P(eA)?AA?M(AA,"..",eA):M(eA):eA}function Zc(eA,{fileName:AA,name:tA},gA,iA){var IA;if(AA!==null)eA.chunkFileNames.add(AA);else if(tA!==null){let BA=0;for(;((IA=eA.chunkNames[BA])==null?void 0:IA.priority)<iA;)BA++;eA.chunkNames.splice(BA,0,{isUserDefined:gA,name:tA,priority:iA})}}function Qc(eA,AA,tA){return tA===!0||tA==="ifRelativeSource"&&P(AA)||!I(eA)}async function ed(eA){const[AA,tA]=await eA;return Promise.all([...AA,...tA])}function td(eA,AA,tA,gA,iA,IA,BA,sA,QA){const CA=BA.sanitizeFileName(eA||"asset");return Hl(Wl(typeof BA.assetFileNames=="function"?BA.assetFileNames({get name(){return Et('Accessing the "name" property of emitted assets when generating the file name is deprecated. Use the "names" property instead.',De,!1,QA),eA},names:AA,get originalFileName(){return Et('Accessing the "originalFileName" property of emitted assets when generating the file name is deprecated. Use the "originalFileNames" property instead.',De,!1,QA),gA},originalFileNames:iA,source:tA,type:"asset"}):BA.assetFileNames,"output.assetFileNames",{ext:()=>O(CA).slice(1),extname:()=>O(CA),hash:oA=>IA.slice(0,Math.max(0,oA||8)),name:()=>CA.slice(0,Math.max(0,CA.length-O(CA).length))}),sA)}function nd(eA,{bundle:AA},tA){AA[Ul].has(eA.toLowerCase())?tA(de,function(gA){return{code:"FILE_NAME_CONFLICT",message:`The emitted file "${gA}" overwrites a previously emitted file of the same name.`}}(eA)):AA[eA]=Gl}const sd=new Set(["chunk","asset","prebuilt-chunk"]);function id(eA,AA,tA){if(!(typeof eA=="string"||eA instanceof Uint8Array)){const gA=AA.fileName||AA.name||tA;return Me(bt(`Could not set source for ${typeof gA=="string"?`asset "${gA}"`:"unnamed asset"}, asset source needs to be a string, Uint8Array or Buffer.`))}return eA}class rd{constructor(AA,tA,gA){this.graph=AA,this.options=tA,this.facadeChunkByModule=null,this.nextIdBase=1,this.output=null,this.outputFileEmitters=[],this.emitFile=iA=>function(IA){return!!(IA&&sd.has(IA.type))}(iA)?iA.type==="prebuilt-chunk"?this.emitPrebuiltChunk(iA):function(IA){const BA=IA.fileName||IA.name;return!BA||typeof BA=="string"&&!ye(BA)}(iA)?iA.type==="chunk"?this.emitChunk(iA):this.emitAsset(iA):Me(bt(`The "fileName" or "name" properties of emitted chunks and assets must be strings that are neither absolute nor relative paths, received "${iA.fileName||iA.name}".`)):Me(bt(`Emitted files must be of type "asset", "chunk" or "prebuilt-chunk", received "${iA&&iA.type}".`)),this.finaliseAssets=()=>{for(const[iA,IA]of this.filesByReferenceId)if(IA.type==="asset"&&typeof IA.fileName!="string")return Me({code:"ASSET_SOURCE_MISSING",message:`Plugin error creating asset "${IA.name||iA}" - no asset source set.`})},this.getFileName=iA=>{const IA=this.filesByReferenceId.get(iA);return IA?IA.type==="chunk"?(BA=IA,sA=this.facadeChunkByModule,BA.fileName?BA.fileName:sA?sA.get(BA.module).getFileName():Me({code:"CHUNK_NOT_GENERATED",message:`Plugin error - Unable to get file name for emitted chunk "${BA.fileName||BA.name}". You can only get file names once chunks have been generated after the "renderStart" hook.`})):IA.type==="prebuilt-chunk"?IA.fileName:function(QA,CA){return typeof QA.fileName!="string"?Me({code:"ASSET_NOT_FINALISED",message:`Plugin error - Unable to get file name for asset "${QA.name||CA}". Ensure that the source is set and that generate is called first. If you reference assets via import.meta.ROLLUP_FILE_URL_<referenceId>, you need to either have set their source after "renderStart" or need to provide an explicit "fileName" when emitting them.`}):QA.fileName}(IA,iA):Me({code:"FILE_NOT_FOUND",message:`Plugin error - Unable to get file name for unknown file "${iA}".`});var BA,sA},this.setAssetSource=(iA,IA)=>{const BA=this.filesByReferenceId.get(iA);if(!BA)return Me({code:"ASSET_NOT_FOUND",message:`Plugin error - Unable to set the source for unknown asset "${iA}".`});if(BA.type!=="asset")return Me(bt(`Asset sources can only be set for emitted assets but "${iA}" is an emitted chunk.`));if(BA.source!==void 0)return Me({code:"ASSET_SOURCE_ALREADY_SET",message:`Unable to set the source for asset "${BA.name||iA}", source already set.`});const sA=id(IA,BA,iA);if(this.output)this.finalizeAdditionalAsset(BA,sA,this.output);else{BA.source=sA;for(const QA of this.outputFileEmitters)QA.finalizeAdditionalAsset(BA,sA,QA.output)}},this.setChunkInformation=iA=>{this.facadeChunkByModule=iA},this.setOutputBundle=(iA,IA)=>{const BA=Ec[IA.hashCharacters],sA=this.output={bundle:iA,fileNamesBySourceHash:new Map,getHash:BA,outputOptions:IA};for(const CA of this.filesByReferenceId.values())CA.fileName&&nd(CA.fileName,sA,this.options.onLog);const QA=new Map;for(const CA of this.filesByReferenceId.values())CA.type==="asset"&&CA.source!==void 0?CA.fileName?this.finalizeAdditionalAsset(CA,CA.source,sA):St(QA,BA(CA.source),()=>[]).push(CA):CA.type==="prebuilt-chunk"&&(this.output.bundle[CA.fileName]=this.createPrebuiltChunk(CA));for(const[CA,oA]of QA)this.finalizeAssetsWithSameSource(oA,CA,sA)},this.filesByReferenceId=gA?new Map(gA.filesByReferenceId):new Map,gA==null||gA.addOutputFileEmitter(this)}addOutputFileEmitter(AA){this.outputFileEmitters.push(AA)}assignReferenceId(AA,tA){let gA=tA;do gA=bc(gA).slice(0,8).replaceAll("-","$");while(this.filesByReferenceId.has(gA)||this.outputFileEmitters.some(({filesByReferenceId:iA})=>iA.has(gA)));AA.referenceId=gA,this.filesByReferenceId.set(gA,AA);for(const{filesByReferenceId:iA}of this.outputFileEmitters)iA.set(gA,AA);return gA}createPrebuiltChunk(AA){return{code:AA.code,dynamicImports:[],exports:AA.exports||[],facadeModuleId:null,fileName:AA.fileName,implicitlyLoadedBefore:[],importedBindings:{},imports:[],isDynamicEntry:!1,isEntry:!1,isImplicitEntry:!1,map:AA.map||null,moduleIds:[],modules:{},name:AA.fileName,preliminaryFileName:AA.fileName,referencedFiles:[],sourcemapFileName:AA.sourcemapFileName||null,type:"chunk"}}emitAsset(AA){const tA=AA.source===void 0?void 0:id(AA.source,AA,null),gA=AA.originalFileName||null;typeof gA=="string"&&(this.graph.watchFiles[gA]=!0);const iA={fileName:AA.fileName,name:AA.name,needsCodeReference:!!AA.needsCodeReference,originalFileName:gA,referenceId:"",source:tA,type:"asset"},IA=this.assignReferenceId(iA,AA.fileName||AA.name||String(this.nextIdBase++));if(this.output)this.emitAssetWithReferenceId(iA,this.output);else for(const BA of this.outputFileEmitters)BA.emitAssetWithReferenceId(iA,BA.output);return IA}emitAssetWithReferenceId(AA,tA){const{fileName:gA,source:iA}=AA;gA&&nd(gA,tA,this.options.onLog),iA!==void 0&&this.finalizeAdditionalAsset(AA,iA,tA)}emitChunk(AA){if(this.graph.phase>nl.LOAD_AND_PARSE)return Me({code:"INVALID_ROLLUP_PHASE",message:"Cannot emit chunks after module loading has finished."});if(typeof AA.id!="string")return Me(bt(`Emitted chunks need to have a valid string id, received "${AA.id}"`));const tA={fileName:AA.fileName,module:null,name:AA.name||AA.id,referenceId:"",type:"chunk"};return this.graph.moduleLoader.emitChunk(AA).then(gA=>tA.module=gA).catch(()=>{}),this.assignReferenceId(tA,AA.id)}emitPrebuiltChunk(AA){if(typeof AA.code!="string")return Me(bt(`Emitted prebuilt chunks need to have a valid string code, received "${AA.code}".`));if(typeof AA.fileName!="string"||ye(AA.fileName))return Me(bt(`The "fileName" property of emitted prebuilt chunks must be strings that are neither absolute nor relative paths, received "${AA.fileName}".`));const tA={code:AA.code,exports:AA.exports,fileName:AA.fileName,map:AA.map,referenceId:"",type:"prebuilt-chunk"},gA=this.assignReferenceId(tA,tA.fileName);return this.output&&(this.output.bundle[tA.fileName]=this.createPrebuiltChunk(tA)),gA}finalizeAdditionalAsset(AA,tA,{bundle:gA,fileNamesBySourceHash:iA,getHash:IA,outputOptions:BA}){let{fileName:sA,name:QA,needsCodeReference:CA,originalFileName:oA,referenceId:EA}=AA;if(!sA){const uA=IA(tA);sA=iA.get(uA),sA||(sA=td(QA,QA?[QA]:[],tA,oA,oA?[oA]:[],uA,BA,gA,this.options),iA.set(uA,sA))}const nA={...AA,fileName:sA,source:tA};this.filesByReferenceId.set(EA,nA);const cA=gA[sA];if((cA==null?void 0:cA.type)==="asset")cA.needsCodeReference&&(cA.needsCodeReference=CA),QA&&cA.names.push(QA),oA&&cA.originalFileNames.push(oA);else{const{options:uA}=this;gA[sA]={fileName:sA,get name(){return Et('Accessing the "name" property of emitted assets in the bundle is deprecated. Use the "names" property instead.',De,!1,uA),QA},names:QA?[QA]:[],needsCodeReference:CA,get originalFileName(){return Et('Accessing the "originalFileName" property of emitted assets in the bundle is deprecated. Use the "originalFileNames" property instead.',De,!1,uA),oA},originalFileNames:oA?[oA]:[],source:tA,type:"asset"}}}finalizeAssetsWithSameSource(AA,tA,{bundle:gA,fileNamesBySourceHash:iA,outputOptions:IA}){const{names:BA,originalFileNames:sA}=function(nA){const cA=[],uA=[];for(const{name:lA,originalFileName:hA}of nA)typeof lA=="string"&&cA.push(lA),hA&&uA.push(hA);return uA.sort(),cA.sort((lA,hA)=>lA.length-hA.length||(lA>hA?1:lA===hA?0:-1)),{names:cA,originalFileNames:uA}}(AA);let QA,CA="",oA=!0;for(const nA of AA){oA&&(oA=nA.needsCodeReference);const cA=td(nA.name,BA,nA.source,nA.originalFileName,sA,tA,IA,gA,this.options);(!CA||cA.length<CA.length||cA.length===CA.length&&cA<CA)&&(CA=cA,QA=nA)}iA.set(tA,CA);for(const nA of AA){const cA={...nA,fileName:CA};this.filesByReferenceId.set(nA.referenceId,cA)}const{options:EA}=this;gA[CA]={fileName:CA,get name(){return Et('Accessing the "name" property of emitted assets in the bundle is deprecated. Use the "names" property instead.',De,!1,EA),QA.name},names:BA,needsCodeReference:oA,get originalFileName(){return Et('Accessing the "originalFileName" property of emitted assets in the bundle is deprecated. Use the "originalFileNames" property instead.',De,!1,EA),QA.originalFileName},originalFileNames:sA,source:QA.source,type:"asset"}}}function od(eA,AA,tA,gA,iA){return pe[eA]<pe[iA]?an:(IA,BA)=>{BA!=null&&tA(de,{code:"INVALID_LOG_POSITION",message:`Plugin "${gA}" tried to add a file position to a log or warning. This is only supported in the "transform" hook at the moment and will be ignored.`}),(IA=Vc(IA)).code&&!IA.pluginCode&&(IA.pluginCode=IA.code),IA.code=AA,IA.plugin=gA,tA(eA,IA)}}function ad(eA,AA,tA,gA,iA,IA){const{logLevel:BA,onLog:sA}=gA;let QA,CA=!0;if(typeof eA.cacheKey!="string"&&(eA.name.startsWith(Mc)||eA.name.startsWith(Rc)||IA.has(eA.name)?CA=!1:IA.add(eA.name)),AA)if(CA){const nA=eA.cacheKey||eA.name;EA=AA[nA]||(AA[nA]=Object.create(null)),QA={delete:cA=>delete EA[cA],get(cA){const uA=EA[cA];if(uA)return uA[0]=0,uA[1]},has(cA){const uA=EA[cA];return!!uA&&(uA[0]=0,!0)},set(cA,uA){EA[cA]=[0,uA]}}}else oA=eA.name,QA={delete:()=>Lc(oA),get:()=>Lc(oA),has:()=>Lc(oA),set:()=>Lc(oA)};else QA=_c;var oA,EA;return{addWatchFile(nA){tA.watchFiles[nA]=!0},cache:QA,debug:od(he,"PLUGIN_LOG",sA,eA.name,BA),emitFile:iA.emitFile.bind(iA),error:nA=>Me(ft(Vc(nA),eA.name)),getFileName:iA.getFileName,getModuleIds:()=>tA.modulesById.keys(),getModuleInfo:tA.getModuleInfo,getWatchFiles:()=>Object.keys(tA.watchFiles),info:od(ue,"PLUGIN_LOG",sA,eA.name,BA),load:nA=>tA.moduleLoader.preloadModule(nA),meta:{rollupVersion:t,watchMode:tA.watchMode},parse:al,resolve:(nA,cA,{attributes:uA,custom:lA,isEntry:hA,skipSelf:dA}=J)=>(dA??(dA=!0),tA.moduleLoader.resolveId(nA,cA,lA,hA,uA||K,dA?[{importer:cA,plugin:eA,source:nA}]:null)),setAssetSource:iA.setAssetSource,warn:od(de,"PLUGIN_WARNING",sA,eA.name,BA)}}const ld=Object.keys({buildEnd:1,buildStart:1,closeBundle:1,closeWatcher:1,load:1,moduleParsed:1,onLog:1,options:1,resolveDynamicImport:1,resolveId:1,shouldTransformCachedModule:1,transform:1,watchChange:1});class cd{constructor(AA,tA,gA,iA,IA){this.graph=AA,this.options=tA,this.pluginCache=iA,this.sortedPlugins=new Map,this.unfulfilledActions=new Set,this.fileEmitter=new rd(AA,tA,IA&&IA.fileEmitter),this.emitFile=this.fileEmitter.emitFile.bind(this.fileEmitter),this.getFileName=this.fileEmitter.getFileName.bind(this.fileEmitter),this.finaliseAssets=this.fileEmitter.finaliseAssets.bind(this.fileEmitter),this.setChunkInformation=this.fileEmitter.setChunkInformation.bind(this.fileEmitter),this.setOutputBundle=this.fileEmitter.setOutputBundle.bind(this.fileEmitter),this.plugins=[...IA?IA.plugins:[],...gA];const BA=new Set;if(this.pluginContexts=new Map(this.plugins.map(QA=>[QA,ad(QA,iA,AA,tA,this.fileEmitter,BA)])),IA)for(const QA of gA)for(const CA of ld)CA in QA&&tA.onLog(de,(sA=QA.name,{code:"INPUT_HOOK_IN_OUTPUT_PLUGIN",message:`The "${CA}" hook used by the output plugin ${sA} is a build time hook and will not be run for that plugin. Either this plugin cannot be used as an output plugin, or it should have an option to configure it as an output plugin.`}));var sA}createOutputPluginDriver(AA){return new cd(this.graph,this.options,AA,this.pluginCache,this)}getUnfulfilledHookActions(){return this.unfulfilledActions}hookFirst(AA,tA,gA,iA){return this.hookFirstAndGetPlugin(AA,tA,gA,iA).then(IA=>IA&&IA[0])}async hookFirstAndGetPlugin(AA,tA,gA,iA){for(const IA of this.getSortedPlugins(AA)){if(iA!=null&&iA.has(IA))continue;const BA=await this.runHook(AA,tA,IA,gA);if(BA!=null)return[BA,IA]}return null}hookFirstSync(AA,tA,gA){for(const iA of this.getSortedPlugins(AA)){const IA=this.runHookSync(AA,tA,iA,gA);if(IA!=null)return IA}return null}async hookParallel(AA,tA,gA){const iA=[];for(const IA of this.getSortedPlugins(AA))IA[AA].sequential?(await Promise.all(iA),iA.length=0,await this.runHook(AA,tA,IA,gA)):iA.push(this.runHook(AA,tA,IA,gA));await Promise.all(iA)}hookReduceArg0(AA,[tA,...gA],iA,IA){let BA=Promise.resolve(tA);for(const sA of this.getSortedPlugins(AA))BA=BA.then(QA=>this.runHook(AA,[QA,...gA],sA,IA).then(CA=>iA.call(this.pluginContexts.get(sA),QA,CA,sA)));return BA}hookReduceArg0Sync(AA,[tA,...gA],iA,IA){for(const BA of this.getSortedPlugins(AA)){const sA=[tA,...gA],QA=this.runHookSync(AA,sA,BA,IA);tA=iA.call(this.pluginContexts.get(BA),tA,QA,BA)}return tA}async hookReduceValue(AA,tA,gA,iA){const IA=[],BA=[];for(const sA of this.getSortedPlugins(AA,hd))sA[AA].sequential?(IA.push(...await Promise.all(BA)),BA.length=0,IA.push(await this.runHook(AA,gA,sA))):BA.push(this.runHook(AA,gA,sA));return IA.push(...await Promise.all(BA)),IA.reduce(iA,await tA)}hookReduceValueSync(AA,tA,gA,iA,IA){let BA=tA;for(const sA of this.getSortedPlugins(AA)){const QA=this.runHookSync(AA,gA,sA,IA);BA=iA.call(this.pluginContexts.get(sA),BA,QA,sA)}return BA}hookSeq(AA,tA,gA){let iA=Promise.resolve();for(const IA of this.getSortedPlugins(AA))iA=iA.then(()=>this.runHook(AA,tA,IA,gA));return iA.then(pd)}getSortedPlugins(AA,tA){return St(this.sortedPlugins,AA,()=>dd(AA,this.plugins,tA))}runHook(AA,tA,gA,iA){const IA=gA[AA],BA=typeof IA=="object"?IA.handler:IA;let sA=this.pluginContexts.get(gA);iA&&(sA=iA(sA,gA));let QA=null;return Promise.resolve().then(()=>{if(typeof BA!="function")return BA;const CA=BA.apply(sA,tA);return CA!=null&&CA.then?(QA=[gA.name,AA,tA],this.unfulfilledActions.add(QA),Promise.resolve(CA).then(oA=>(this.unfulfilledActions.delete(QA),oA))):CA}).catch(CA=>(QA!==null&&this.unfulfilledActions.delete(QA),Me(ft(CA,gA.name,{hook:AA}))))}runHookSync(AA,tA,gA,iA){const IA=gA[AA],BA=typeof IA=="object"?IA.handler:IA;let sA=this.pluginContexts.get(gA);iA&&(sA=iA(sA,gA));try{return BA.apply(sA,tA)}catch(QA){return Me(ft(QA,gA.name,{hook:AA}))}}}function dd(eA,AA,tA=ud){const gA=[],iA=[],IA=[];for(const BA of AA){const sA=BA[eA];if(sA){if(typeof sA=="object"){if(tA(sA.handler,eA,BA),sA.order==="pre"){gA.push(BA);continue}if(sA.order==="post"){IA.push(BA);continue}}else tA(sA,eA,BA);iA.push(BA)}}return[...gA,...iA,...IA]}function ud(eA,AA,tA){typeof eA!="function"&&Me(function(gA,iA){return{code:Ve,hook:gA,message:`Error running plugin hook "${gA}" for plugin "${iA}", expected a function hook or an object with a "handler" function.`,plugin:iA}}(AA,tA.name))}function hd(eA,AA,tA){if(typeof eA!="string"&&typeof eA!="function")return Me(function(gA,iA){return{code:Ve,hook:gA,message:`Error running plugin hook "${gA}" for plugin "${iA}", expected a string, a function hook or an object with a "handler" string or function.`,plugin:iA}}(AA,tA.name))}function pd(){}class fd{constructor(AA){this.maxParallel=AA,this.queue=[],this.workerCount=0}run(AA){return new Promise((tA,gA)=>{this.queue.push({reject:gA,resolve:tA,task:AA}),this.work()})}async work(){if(this.workerCount>=this.maxParallel)return;let AA;for(this.workerCount++;AA=this.queue.shift();){const{reject:tA,resolve:gA,task:iA}=AA;try{gA(await iA())}catch(IA){tA(IA)}}this.workerCount--}}class md{constructor(AA,tA){var gA,iA;if(this.options=AA,this.astLru=function(IA){var BA,sA,QA,CA=IA;function oA(nA,cA){++BA>CA&&(QA=sA,EA(1),++BA),sA[nA]=cA}function EA(nA){BA=0,sA=Object.create(null),nA||(QA=Object.create(null))}return EA(),{clear:EA,has:function(nA){return sA[nA]!==void 0||QA[nA]!==void 0},get:function(nA){var cA=sA[nA];return cA!==void 0?cA:(cA=QA[nA])!==void 0?(oA(nA,cA),cA):void 0},set:function(nA,cA){sA[nA]!==void 0?sA[nA]=cA:oA(nA,cA)}}}(5),this.cachedModules=new Map,this.deoptimizationTracker=new Mt,this.entryModules=[],this.modulesById=new Map,this.needsTreeshakingPass=!1,this.phase=nl.LOAD_AND_PARSE,this.scope=new Pc,this.watchFiles=Object.create(null),this.watchMode=!1,this.externalModules=[],this.implicitEntryModules=[],this.modules=[],this.getModuleInfo=IA=>{const BA=this.modulesById.get(IA);return BA?BA.info:null},AA.cache!==!1){if((gA=AA.cache)!=null&&gA.modules)for(const IA of AA.cache.modules)this.cachedModules.set(IA.id,IA);this.pluginCache=((iA=AA.cache)==null?void 0:iA.plugins)||Object.create(null);for(const IA in this.pluginCache){const BA=this.pluginCache[IA];for(const sA of Object.values(BA))sA[0]++}}if(tA){this.watchMode=!0;const IA=(...sA)=>this.pluginDriver.hookParallel("watchChange",sA),BA=()=>this.pluginDriver.hookParallel("closeWatcher",[]);tA.onCurrentRun("change",IA),tA.onCurrentRun("close",BA)}this.pluginDriver=new cd(this,AA,AA.plugins,this.pluginCache),this.moduleLoader=new Xc(this,this.modulesById,this.options,this.pluginDriver),this.fileOperationQueue=new fd(AA.maxParallelFileOps),this.pureFunctions=(({treeshake:IA})=>{const BA=Object.create(null);for(const sA of IA?IA.manualPureFunctions:[]){let QA=BA;for(const CA of sA.split("."))QA=QA[CA]||(QA[CA]=Object.create(null));QA[xt]=!0}return BA})(AA)}async build(){El("generate module graph",2),await this.generateModuleGraph(),xl("generate module graph",2),El("sort and bind modules",2),this.phase=nl.ANALYSE,this.sortModules(),xl("sort and bind modules",2),El("mark included statements",2),this.includeStatements(),xl("mark included statements",2),this.phase=nl.GENERATE}getCache(){for(const AA in this.pluginCache){const tA=this.pluginCache[AA];let gA=!0;for(const[iA,IA]of Object.entries(tA))IA[0]>=this.options.experimentalCacheExpiry?delete tA[iA]:gA=!1;gA&&delete this.pluginCache[AA]}return{modules:this.modules.map(AA=>AA.toJSON()),plugins:this.pluginCache}}async generateModuleGraph(){var AA;if({entryModules:this.entryModules,implicitEntryModules:this.implicitEntryModules}=await this.moduleLoader.addEntryModules((AA=this.options.input,Array.isArray(AA)?AA.map(tA=>({fileName:null,id:tA,implicitlyLoadedAfter:[],importer:void 0,name:null})):Object.entries(AA).map(([tA,gA])=>({fileName:null,id:gA,implicitlyLoadedAfter:[],importer:void 0,name:tA}))),!0),this.entryModules.length===0)throw new Error("You must supply options.input to rollup");for(const tA of this.modulesById.values())tA.cacheInfoGetters(),tA instanceof Il?this.modules.push(tA):this.externalModules.push(tA)}includeStatements(){const AA=[...this.entryModules,...this.implicitEntryModules];for(const tA of AA)on(tA);if(this.options.treeshake){let tA=1;do{El(`treeshaking pass ${tA}`,3),this.needsTreeshakingPass=!1;for(const gA of this.modules)gA.isExecuted&&(gA.hasTreeShakingPassStarted=!0,gA.info.moduleSideEffects==="no-treeshake"?gA.includeAllInBundle():gA.include());if(tA===1)for(const gA of AA)gA.preserveSignature!==!1&&(gA.includeAllExports(!1),this.needsTreeshakingPass=!0);xl("treeshaking pass "+tA++,3)}while(this.needsTreeshakingPass)}else for(const tA of this.modules)tA.includeAllInBundle();for(const tA of this.externalModules)tA.warnUnusedImports();for(const tA of this.implicitEntryModules)for(const gA of tA.implicitlyLoadedAfter)gA.info.isEntry||gA.isIncluded()||Me(lt(gA))}sortModules(){const{orderedModules:AA,cyclePaths:tA}=function(gA){let iA=0;const IA=[],BA=new Set,sA=new Set,QA=new Map,CA=[],oA=EA=>{if(EA instanceof Il){for(const nA of EA.dependencies)QA.has(nA)?BA.has(nA)||IA.push(uc(nA,EA,QA)):(QA.set(nA,EA),oA(nA));for(const nA of EA.implicitlyLoadedBefore)sA.add(nA);for(const{resolution:nA}of EA.dynamicImports)nA instanceof Il&&sA.add(nA);CA.push(EA)}EA.execIndex=iA++,BA.add(EA)};for(const EA of gA)QA.has(EA)||(QA.set(EA,null),oA(EA));for(const EA of sA)QA.has(EA)||(QA.set(EA,null),oA(EA));return{cyclePaths:IA,orderedModules:CA}}(this.entryModules);for(const gA of tA)this.options.onLog(de,Ye(gA));this.modules=AA;for(const gA of this.modules)gA.bindReferences();this.warnForMissingExports()}warnForMissingExports(){for(const AA of this.modules)for(const tA of AA.importDescriptions.values())tA.name==="*"||tA.module.getVariableForExportName(tA.name)[0]||AA.log(de,at(tA.name,AA.id,tA.module.id),tA.start)}}function gd(eA,AA){return AA()}function yd(eA,AA,tA,gA){eA=dd("onLog",eA);const iA=pe[gA],IA=(BA,sA,QA=Y)=>{if(Te(sA),!(pe[BA]<iA)){for(const CA of eA){if(QA.has(CA))continue;const{onLog:oA}=CA,EA=nA=>pe[nA]<iA?an:cA=>IA(nA,Vc(cA),new Set(QA).add(CA));if(("handler"in oA?oA.handler:oA).call({debug:EA(he),error:nA=>Me(Vc(nA)),info:EA(ue),meta:{rollupVersion:t,watchMode:tA},warn:EA(de)},BA,sA)===!1)return}AA(BA,sA)}};return IA}const bd=eA=>{var AA;return eA.cache===!0?void 0:((AA=eA.cache)==null?void 0:AA.cache)||eA.cache},Ed=eA=>{if(eA===!0)return()=>!0;if(typeof eA=="function")return(tA,...gA)=>!tA.startsWith("\0")&&eA(tA,...gA)||!1;if(eA){const tA=new Set,gA=[];for(const iA of(AA=eA,Array.isArray(AA)?AA.filter(Boolean):AA?[AA]:[]))iA instanceof RegExp?gA.push(iA):tA.add(iA);return(iA,...IA)=>tA.has(iA)||gA.some(BA=>BA.test(iA))}var AA;return()=>!1},xd=eA=>{const AA=eA.input;return AA==null?[]:typeof AA=="string"?[AA]:AA},Sd=eA=>{const AA=eA.jsx;if(!AA)return!1;const tA=Hc(AA,Gc,"jsx",Ae,"false, "),{factory:gA,importSource:iA,mode:IA}=tA;switch(IA){case"automatic":return{factory:gA||"React.createElement",importSource:iA||"react",jsxImportSource:tA.jsxImportSource||"react/jsx-runtime",mode:"automatic"};case"preserve":return!iA||gA||tA.fragment||Me(ot("jsx",Ae,"when preserving JSX and specifying an importSource, you also need to specify a factory or fragment")),{factory:gA||null,fragment:tA.fragment||null,importSource:iA||null,mode:"preserve"};default:return IA&&IA!=="classic"&&Me(ot("jsx.mode",Ae,'mode must be "automatic", "classic" or "preserve"',IA)),{factory:gA||"React.createElement",fragment:tA.fragment||"React.Fragment",importSource:iA||null,mode:"classic"}}},Ad=eA=>{const AA=eA.maxParallelFileOps;return typeof AA=="number"?AA<=0?1/0:AA:20},$d=(eA,AA)=>{const tA=eA.moduleContext;if(typeof tA=="function")return gA=>tA(gA)??AA;if(tA){const gA=Object.create(null);for(const[iA,IA]of Object.entries(tA))gA[M(iA)]=IA;return iA=>gA[iA]??AA}return()=>AA},vd=eA=>{if(eA.treeshake===!1)return!1;const AA=Hc(eA.treeshake,Uc,"treeshake","configuration-options/#treeshake","false, true, ");return{annotations:AA.annotations!==!1,correctVarValueBeforeDeclaration:AA.correctVarValueBeforeDeclaration===!0,manualPureFunctions:AA.manualPureFunctions??X,moduleSideEffects:wd(AA.moduleSideEffects),propertyReadSideEffects:AA.propertyReadSideEffects==="always"?"always":AA.propertyReadSideEffects!==!1,tryCatchDeoptimization:AA.tryCatchDeoptimization!==!1,unknownGlobalSideEffects:AA.unknownGlobalSideEffects!==!1}},wd=eA=>{if(typeof eA=="boolean")return()=>eA;if(eA==="no-external")return(AA,tA)=>!tA;if(typeof eA=="function")return(AA,tA)=>!!AA.startsWith("\0")||eA(AA,tA)!==!1;if(Array.isArray(eA)){const AA=new Set(eA);return tA=>AA.has(tA)}return eA&&Me(ot("treeshake.moduleSideEffects","configuration-options/#treeshake-modulesideeffects",'please use one of false, "no-external", a function or an array')),()=>!0},Id=/[\u0000-\u001F"#$%&*+,:;<=>?[\]^`{|}\u007F]/g,Pd=/^[a-z]:/i;function kd(eA){const AA=Pd.exec(eA),tA=AA?AA[0]:"";return tA+eA.slice(tA.length).replace(Id,"_")}const Nd=(eA,AA,tA)=>{const{file:gA}=eA;if(typeof gA=="string"){if(AA)return Me(ot("output.file",ve,'you must set "output.dir" instead of "output.file" when using the "output.preserveModules" option'));if(!Array.isArray(tA.input))return Me(ot("output.file",ve,'you must set "output.dir" instead of "output.file" when providing named inputs'))}return gA},Cd=eA=>{const AA=eA.format;switch(AA){case void 0:case"es":case"esm":case"module":return"es";case"cjs":case"commonjs":return"cjs";case"system":case"systemjs":return"system";case"amd":case"iife":case"umd":return AA;default:return Me(ot("output.format",Ie,'Valid values are "amd", "cjs", "system", "es", "iife" or "umd"',AA))}},Od=(eA,AA)=>{const tA=eA.inlineDynamicImports||!1,{input:gA}=AA;return tA&&(Array.isArray(gA)?gA:Object.keys(gA)).length>1?Me(ot("output.inlineDynamicImports",Pe,'multiple inputs are not supported when "output.inlineDynamicImports" is true')):tA},Dd=(eA,AA,tA)=>{const gA=eA.preserveModules||!1;if(gA){if(AA)return Me(ot("output.inlineDynamicImports",Pe,'this option is not supported for "output.preserveModules"'));if(tA.preserveEntrySignatures===!1)return Me(ot("preserveEntrySignatures","configuration-options/#preserveentrysignatures",'setting this option to false is not supported for "output.preserveModules"'))}return gA},Md=eA=>{const{preserveModulesRoot:AA}=eA;if(AA!=null)return M(AA)},Rd=eA=>{const AA={autoId:!1,basePath:"",define:"define",forceJsExtensionForImports:!1,...eA.amd};return(AA.autoId||AA.basePath)&&AA.id?Me(ot("output.amd.id",$e,'this option cannot be used together with "output.amd.autoId"/"output.amd.basePath"')):AA.basePath&&!AA.autoId?Me(ot("output.amd.basePath","configuration-options/#output-amd-basepath",'this option only works with "output.amd.autoId"')):AA.autoId?{autoId:!0,basePath:AA.basePath,define:AA.define,forceJsExtensionForImports:AA.forceJsExtensionForImports}:{autoId:!1,define:AA.define,forceJsExtensionForImports:AA.forceJsExtensionForImports,id:AA.id}},_d=(eA,AA)=>{const tA=eA[AA];return typeof tA=="function"?tA:()=>tA||""},Ld=(eA,AA)=>{const{dir:tA}=eA;return typeof tA=="string"&&typeof AA=="string"?Me(ot("output.dir",ve,'you must set either "output.file" for a single-file build or "output.dir" when generating multiple chunks')):tA},Td=(eA,AA)=>{const tA=eA.entryFileNames;return tA==null&&AA.add("entryFileNames"),tA??"[name].js"};function Bd(eA,AA){const tA=eA.exports;if(tA==null)AA.add("exports");else if(!["default","named","none","auto"].includes(tA))return Me({code:Be,message:`"output.exports" must be "default", "named", "none", "auto", or left unspecified (defaults to "auto"), received "${tA}".`,url:xe(we)});return tA||"auto"}const zd=(eA,AA)=>(eA.externalImportAssertions!=null&&Et('The "output.externalImportAssertions" option is deprecated. Use the "output.externalImportAttributes" option instead.',"configuration-options/#output-externalimportattributes",!0,AA),eA.externalImportAttributes??eA.externalImportAssertions??!0),Vd=eA=>{const AA=Hc(eA.generatedCode,Wc,"output.generatedCode","configuration-options/#output-generatedcode","");return{arrowFunctions:AA.arrowFunctions===!0,constBindings:AA.constBindings===!0,objectShorthand:AA.objectShorthand===!0,reservedNamesAsProps:AA.reservedNamesAsProps!==!1,symbols:AA.symbols===!0}},Fd=(eA,AA)=>{if(AA)return"";const tA=eA.indent;return tA===!1?"":tA??!0},jd=new Set(["compat","auto","esModule","default","defaultOnly"]),Ud=eA=>{const AA=eA.interop;if(typeof AA=="function"){const tA=Object.create(null);let gA=null;return iA=>iA===null?gA||Gd(gA=AA(iA)):iA in tA?tA[iA]:Gd(tA[iA]=AA(iA))}return AA===void 0?()=>"default":()=>Gd(AA)},Gd=eA=>jd.has(eA)?eA:Me(ot("output.interop",ke,`use one of ${Array.from(jd,AA=>JSON.stringify(AA)).join(", ")}`,eA)),Wd=(eA,AA,tA)=>{const gA=eA.manualChunks;if(gA){if(AA)return Me(ot("output.manualChunks",Ne,'this option is not supported for "output.inlineDynamicImports"'));if(tA)return Me(ot("output.manualChunks",Ne,'this option is not supported for "output.preserveModules"'))}return gA||{}},Hd=(eA,AA,tA)=>eA.minifyInternalExports??(tA||AA==="es"||AA==="system"),qd=(eA,AA)=>{const tA=eA.sourcemapFileNames;return tA==null&&AA.add("sourcemapFileNames"),tA},Jd=eA=>{const{sourcemapBaseUrl:AA}=eA;if(AA)return function(gA){try{new URL(gA)}catch{return!1}return!0}(AA)?(tA=AA).endsWith("/")?tA:tA+"/":Me(ot("output.sourcemapBaseUrl","configuration-options/#output-sourcemapbaseurl",`must be a valid URL, received ${JSON.stringify(AA)}`));var tA};function Kd(eA){return async function(AA,tA){const{options:gA,unsetOptions:iA}=await async function(QA,CA){if(!QA)throw new Error("You must supply an options object to rollup");const oA=await async function(cA,uA){const lA=dd("options",await qc(cA.plugins)),hA=cA.logLevel||ue,dA=yd(lA,Tc(cA,hA),uA,hA);for(const DA of lA){const{name:wA,options:RA}=DA,GA="handler"in RA?RA.handler:RA,yA=await GA.call({debug:od(he,"PLUGIN_LOG",dA,wA,hA),error:LA=>Me(ft(Vc(LA),wA,{hook:"onLog"})),info:od(ue,"PLUGIN_LOG",dA,wA,hA),meta:{rollupVersion:t,watchMode:uA},warn:od(de,"PLUGIN_WARNING",dA,wA,hA)},cA);yA&&(cA=yA)}return cA}(QA,CA),{options:EA,unsetOptions:nA}=await async function(cA,uA){const lA=new Set,hA=cA.context??"undefined",dA=await qc(cA.plugins),DA=cA.logLevel||ue,wA=yd(dA,Tc(cA,DA),uA,DA),RA=cA.strictDeprecations||!1,GA=Ad(cA),yA={cache:bd(cA),context:hA,experimentalCacheExpiry:cA.experimentalCacheExpiry??10,experimentalLogSideEffects:cA.experimentalLogSideEffects||!1,external:Ed(cA.external),input:xd(cA),jsx:Sd(cA),logLevel:DA,makeAbsoluteExternalsRelative:cA.makeAbsoluteExternalsRelative??"ifRelativeSource",maxParallelFileOps:GA,moduleContext:$d(cA,hA),onLog:wA,perf:cA.perf||!1,plugins:dA,preserveEntrySignatures:cA.preserveEntrySignatures??"exports-only",preserveSymlinks:cA.preserveSymlinks||!1,shimMissingExports:cA.shimMissingExports||!1,strictDeprecations:RA,treeshake:vd(cA)};return jc(cA,[...Object.keys(yA),"onwarn","watch"],"input options",wA,/^(output)$/),{options:yA,unsetOptions:lA}}(oA,CA);return Xd(EA.plugins,Mc),{options:EA,unsetOptions:nA}}(AA,tA!==null);(function(QA){QA.perf?(fl=new Map,El=gl,xl=yl,QA.plugins=QA.plugins.map(Al)):(El=an,xl=an)})(gA),await async function(){await so()}();const IA=new md(gA,tA),BA=AA.cache!==!1;AA.cache&&(gA.cache=void 0,AA.cache=void 0),El("BUILD",1),await gd(IA.pluginDriver,async()=>{try{El("initialize",2),await IA.pluginDriver.hookParallel("buildStart",[gA]),xl("initialize",2),await IA.build()}catch(QA){const CA=Object.keys(IA.watchFiles);throw CA.length>0&&(QA.watchFiles=CA),await IA.pluginDriver.hookParallel("buildEnd",[QA]),await IA.pluginDriver.hookParallel("closeBundle",[]),QA}await IA.pluginDriver.hookParallel("buildEnd",[])}),xl("BUILD",1);const sA={cache:BA?IA.getCache():void 0,async close(){sA.closed||(sA.closed=!0,await IA.pluginDriver.hookParallel("closeBundle",[]))},closed:!1,generate:async QA=>sA.closed?Me({code:"ALREADY_CLOSED",message:'Bundle is already closed, no more calls to "generate" or "write" are allowed.'}):Yd(!1,gA,iA,QA,IA),get watchFiles(){return Object.keys(IA.watchFiles)},write:async QA=>sA.closed?Me({code:"ALREADY_CLOSED",message:'Bundle is already closed, no more calls to "generate" or "write" are allowed.'}):Yd(!0,gA,iA,QA,IA)};return gA.perf&&(sA.getTimings=bl),sA}(eA,null)}function Xd(eA,AA){for(const[tA,gA]of eA.entries())gA.name||(gA.name=`${AA}${tA+1}`)}async function Yd(eA,AA,tA,gA,iA){const{options:IA,outputPluginDriver:BA,unsetOptions:sA}=await async function(QA,CA,oA,EA){if(!QA)throw new Error("You must supply an options object");const nA=await qc(QA.plugins);Xd(nA,Rc);const cA=CA.createOutputPluginDriver(nA);return{...await Zd(oA,EA,QA,cA),outputPluginDriver:cA}}(gA,iA.pluginDriver,AA,tA);return gd(0,async()=>{const QA=new wc(IA,sA,AA,BA,iA),CA=await QA.generate(eA);if(eA){if(El("WRITE",1),!IA.dir&&!IA.file)return Me({code:"MISSING_OPTION",message:'You must specify "output.file" or "output.dir" for the build.',url:xe(ve)});await Promise.all(Object.values(CA).map(EA=>iA.fileOperationQueue.run(()=>async function(nA,cA){const uA=M(cA.dir||C(cA.file),nA.fileName);return await Nc(C(uA),{recursive:!0}),Oc(uA,nA.type==="asset"?nA.source:nA.code)}(EA,IA)))),await BA.hookParallel("writeBundle",[IA,CA]),xl("WRITE",1)}return oA=CA,{output:Object.values(oA).filter(EA=>Object.keys(EA).length>0).sort((EA,nA)=>eu(EA)-eu(nA))};var oA})}function Zd(eA,AA,tA,gA){return async function(iA,IA,BA){const sA=new Set(BA),QA=iA.compact||!1,CA=Cd(iA),oA=Od(iA,IA),EA=Dd(iA,oA,IA),nA=Nd(iA,EA,IA),cA=Vd(iA),uA=zd(iA,IA),lA={amd:Rd(iA),assetFileNames:iA.assetFileNames??"assets/[name]-[hash][extname]",banner:_d(iA,"banner"),chunkFileNames:iA.chunkFileNames??"[name]-[hash].js",compact:QA,dir:Ld(iA,nA),dynamicImportInCjs:iA.dynamicImportInCjs??!0,entryFileNames:Td(iA,sA),esModule:iA.esModule??"if-default-prop",experimentalMinChunkSize:iA.experimentalMinChunkSize??1,exports:Bd(iA,sA),extend:iA.extend||!1,externalImportAssertions:uA,externalImportAttributes:uA,externalLiveBindings:iA.externalLiveBindings??!0,file:nA,footer:_d(iA,"footer"),format:CA,freeze:iA.freeze??!0,generatedCode:cA,globals:iA.globals||{},hashCharacters:iA.hashCharacters??"base64",hoistTransitiveImports:iA.hoistTransitiveImports??!0,importAttributesKey:iA.importAttributesKey??"assert",indent:Fd(iA,QA),inlineDynamicImports:oA,interop:Ud(iA),intro:_d(iA,"intro"),manualChunks:Wd(iA,oA,EA),minifyInternalExports:Hd(iA,CA,QA),name:iA.name,noConflict:iA.noConflict||!1,outro:_d(iA,"outro"),paths:iA.paths||{},plugins:await qc(iA.plugins),preserveModules:EA,preserveModulesRoot:Md(iA),reexportProtoFromExternal:iA.reexportProtoFromExternal??!0,sanitizeFileName:typeof iA.sanitizeFileName=="function"?iA.sanitizeFileName:iA.sanitizeFileName===!1?hA=>hA:kd,sourcemap:iA.sourcemap||!1,sourcemapBaseUrl:Jd(iA),sourcemapExcludeSources:iA.sourcemapExcludeSources||!1,sourcemapFile:iA.sourcemapFile,sourcemapFileNames:qd(iA,sA),sourcemapIgnoreList:typeof iA.sourcemapIgnoreList=="function"?iA.sourcemapIgnoreList:iA.sourcemapIgnoreList===!1?()=>!1:hA=>hA.includes("node_modules"),sourcemapPathTransform:iA.sourcemapPathTransform,strict:iA.strict??!0,systemNullSetters:iA.systemNullSetters??!0,validate:iA.validate||!1,virtualDirname:iA.virtualDirname||"_virtual"};return jc(iA,Object.keys(lA),"output options",IA.onLog),{options:lA,unsetOptions:sA}}(gA.hookReduceArg0Sync("outputOptions",[tA],(iA,IA)=>IA||iA,iA=>{const IA=()=>iA.error({code:"CANNOT_EMIT_FROM_OPTIONS_HOOK",message:'Cannot emit files or set asset sources in the "outputOptions" hook, use the "renderStart" hook instead.'});return{...iA,emitFile:IA,setAssetSource:IA}}),eA,AA)}var Qd;function eu(eA){return eA.type==="asset"?Qd.ASSET:eA.isEntry?Qd.ENTRY_CHUNK:Qd.SECONDARY_CHUNK}(function(eA){eA[eA.ENTRY_CHUNK=0]="ENTRY_CHUNK",eA[eA.SECONDARY_CHUNK=1]="SECONDARY_CHUNK",eA[eA.ASSET=2]="ASSET"})(Qd||(Qd={}));const bundle=async(eA,AA,tA)=>(await(await Kd({input:`${INTERNAL_TAG}/index.js`,plugins:[plugin(eA,AA,tA),plugin$1()],external:IA=>IA.startsWith("svelte"),onwarn:warning})).generate({format:"amd",banner:AMD_BANNER})).output[0].code;self.addEventListener("message",async eA=>{try{if(eA.data.type=="init"){const AA={host:eA.data.host,cdn_url:eA.data.cdn_url},tA=await service_fetch(AA,concat([header(nil_xit_proto.MessageType.MessageType_FrameRequest),nil_xit_proto.FrameRequest.encode({id:eA.data.id}).finish()]),(gA,iA)=>{if(gA===nil_xit_proto.MessageType.MessageType_FrameResponse){const IA=nil_xit_proto.FrameResponse.decode(iA);if(eA.data.id===IA.id)return IA}});if(tA.value==="content")self.postMessage({ok:!0,code:tA.content});else if(tA.value==="file"&&tA.file!=null){const gA=[],iA=await bundle(AA,ROOT_FILE(tA.file),(IA,BA)=>gA.push({target:IA,metadata:BA}));self.postMessage({ok:!0,code:iA,files:gA})}}}catch(AA){self.postMessage({ok:!1,err:AA})}})})();
110
+ `,s:";"},LA=dA?"const":"var",KA=(NA,{isAsync:FA,name:qA})=>`${FA?"async ":""}function${qA?` ${qA}`:""}${RA}(${NA.join(`,${RA}`)})${RA}`,bA=hA?(NA,{isAsync:FA,name:qA})=>{const UA=NA.length===1;return`${qA?`${LA} ${qA}${RA}=${RA}`:""}${FA?`async${UA?" ":RA}`:""}${UA?NA[0]:`(${NA.join(`,${RA}`)})`}${RA}=>${RA}`}:KA,SA=(NA,{functionReturn:FA,lineBreakIndent:qA,name:UA})=>[`${bA(NA,{isAsync:!1,name:UA})}${hA?qA?`${GA}${qA.base}${qA.t}`:"":`{${qA?`${GA}${qA.base}${qA.t}`:RA}${FA?"return ":""}`}`,hA?`${UA?";":""}${qA?`${GA}${qA.base}`:""}`:`${yA}${qA?`${GA}${qA.base}`:RA}}`],MA=wA?NA=>en.test(NA):NA=>!Xt.has(NA)&&en.test(NA);return{_:RA,cnst:LA,getDirectReturnFunction:SA,getDirectReturnIifeLeft:(NA,FA,{needsArrowReturnParens:qA,needsWrappedFunction:UA})=>{const[mA,aA]=SA(NA,{functionReturn:!0,lineBreakIndent:null,name:null});return`${hc(`${mA}${hc(FA,hA&&qA)}${aA}`,hA||UA)}(`},getFunctionIntro:bA,getNonArrowFunctionIntro:KA,getObject(NA,{lineBreakIndent:FA}){const qA=FA?`${GA}${FA.base}${FA.t}`:RA;return`{${NA.map(([UA,mA])=>{if(UA===null)return`${qA}${mA}`;const aA=nn(UA);return UA===mA&&DA&&UA===aA?qA+UA:`${qA}${aA}:${RA}${mA}`}).join(",")}${NA.length===0?"":FA?`${GA}${FA.base}`:RA}}`},getPropertyAccess:NA=>MA(NA)?`.${NA}`:`[${JSON.stringify(NA)}]`,n:GA,s:yA}}(this.outputOptions),CA=function(lA){const hA=[];for(const dA of lA.values())dA instanceof Il&&(dA.isIncluded()||dA.info.isEntry||dA.includedDynamicImporters.length>0)&&hA.push(dA);return hA}(this.graph.modulesById),oA=function(lA){if(lA.length===0)return"/";if(lA.length===1)return C(lA[0]);const hA=lA.slice(1).reduce((dA,DA)=>{const wA=DA.split(/\/+|\\+/);let RA;for(RA=0;dA[RA]===wA[RA]&&RA<Math.min(dA.length,wA.length);RA++);return dA.slice(0,RA)},lA[0].split(/\/+|\\+/));return hA.length>1?hA.join("/"):"/"}(function(lA,hA){const dA=[];for(const DA of lA)(DA.info.isEntry||hA)&&I(DA.id)&&dA.push(DA.id);return dA}(CA,BA)),EA=function(lA,hA,dA){const DA=new Map;for(const wA of lA.values())wA instanceof rn&&DA.set(wA,new hr(wA,hA,dA));return DA}(this.graph.modulesById,this.outputOptions,oA),nA=[],cA=new Map;for(const{alias:lA,modules:hA}of iA?[{alias:null,modules:CA}]:BA?CA.map(dA=>({alias:null,modules:[dA]})):nc(this.graph.entryModules,sA,gA,this.inputOptions.onLog)){hA.sort(dc);const dA=new Kl(hA,this.inputOptions,this.outputOptions,this.unsetOptions,this.pluginDriver,this.graph.modulesById,cA,EA,this.facadeChunkByModule,this.includedNamespaces,lA,tA,AA,oA,QA);nA.push(dA)}for(const lA of nA)lA.link();const uA=[];for(const lA of nA)uA.push(...lA.generateFacades());return[...nA,...uA]}}function Ic(eA,AA,tA){const gA=tA.get(AA);if(typeof gA=="string"&&gA!==eA)return Me((iA=AA.id,IA=eA,BA=gA,{code:"INVALID_CHUNK",message:`Cannot assign "${ge(iA)}" to the "${IA}" chunk as it is already in the "${BA}" chunk.`}));var iA,IA,BA;tA.set(AA,eA)}class Pc extends Rs{constructor(){super(),this.parent=null,this.variables.set("undefined",new lr)}findVariable(AA){let tA=this.variables.get(AA);return tA||(tA=new Is(AA),this.variables.set(AA,tA)),tA}}const kc=eA=>()=>Me(function(AA){return{code:"NO_FS_IN_BROWSER",message:`Cannot access the file system (via "${AA}") when using the browser build of Rollup. Make sure you supply a plugin with custom resolveId and load hooks to Rollup.`,url:xe("plugin-development/#a-simple-example")}}(eA)),Nc=kc("fs.mkdir"),Cc=kc("fs.readFile"),Oc=kc("fs.writeFile");async function Dc(eA,AA,tA,gA,iA,IA,BA,sA,QA){const CA=await function(oA,EA,nA,cA,uA,lA,hA,dA){let DA=null,wA=null;if(uA){DA=new Set;for(const RA of uA)oA===RA.source&&EA===RA.importer&&DA.add(RA.plugin);wA=(RA,GA)=>({...RA,resolve:(yA,LA,{attributes:KA,custom:bA,isEntry:SA,skipSelf:MA}=J)=>(MA??(MA=!0),cA(yA,LA,bA,SA,KA||K,MA?[...uA,{importer:LA,plugin:GA,source:yA}]:uA))})}return nA.hookFirstAndGetPlugin("resolveId",[oA,EA,{attributes:dA,custom:lA,isEntry:hA}],wA,DA)}(eA,AA,gA,iA,IA,BA,sA,QA);return CA==null?kc("path.resolve")():CA[0]}const Mc="at position ",Rc="at output position ",_c={delete:()=>!1,get(){},has:()=>!1,set(){}};function Lc(eA){return eA.startsWith(Mc)||eA.startsWith(Rc)?Me({code:"ANONYMOUS_PLUGIN_CACHE",message:"A plugin is trying to use the Rollup cache but is not declaring a plugin name or cacheKey."}):Me({code:"DUPLICATE_PLUGIN_NAME",message:`The plugin name ${eA} is being used twice in the same build. Plugin names must be distinct or provide a cacheKey (please post an issue to the plugin if you are a plugin user).`})}const Tc=(eA,AA,tA=Fc)=>{const{onwarn:gA,onLog:iA}=eA,IA=Bc(tA,gA);if(iA){const BA=pe[AA];return(sA,QA)=>iA(sA,zc(QA),(CA,oA)=>{if(CA==="error")return Me(Vc(oA));pe[CA]>=BA&&IA(CA,Vc(oA))})}return IA},Bc=(eA,AA)=>AA?(tA,gA)=>{tA===de?AA(zc(gA),iA=>eA(de,Vc(iA))):eA(tA,gA)}:eA,zc=eA=>(Object.defineProperty(eA,"toString",{value:()=>eA.message,writable:!0}),eA),Vc=eA=>typeof eA=="string"?{message:eA}:typeof eA=="function"?Vc(eA()):eA,Fc=(eA,{message:AA})=>{switch(eA){case de:return console.warn(AA);case he:return console.debug(AA);default:return console.info(AA)}};function jc(eA,AA,tA,gA,iA=/$./){const IA=new Set(AA),BA=Object.keys(eA).filter(sA=>!(IA.has(sA)||iA.test(sA)));BA.length>0&&gA(de,function(sA,QA,CA){return{code:"UNKNOWN_OPTION",message:`Unknown ${sA}: ${QA.join(", ")}. Allowed options: ${CA.join(", ")}`}}(tA,BA,[...IA].sort()))}const Uc={recommended:{annotations:!0,correctVarValueBeforeDeclaration:!1,manualPureFunctions:X,moduleSideEffects:()=>!0,propertyReadSideEffects:!0,tryCatchDeoptimization:!0,unknownGlobalSideEffects:!1},safest:{annotations:!0,correctVarValueBeforeDeclaration:!0,manualPureFunctions:X,moduleSideEffects:()=>!0,propertyReadSideEffects:!0,tryCatchDeoptimization:!0,unknownGlobalSideEffects:!0},smallest:{annotations:!0,correctVarValueBeforeDeclaration:!1,manualPureFunctions:X,moduleSideEffects:()=>!1,propertyReadSideEffects:!1,tryCatchDeoptimization:!1,unknownGlobalSideEffects:!1}},Gc={preserve:{factory:null,fragment:null,importSource:null,mode:"preserve"},"preserve-react":{factory:"React.createElement",fragment:"React.Fragment",importSource:"react",mode:"preserve"},react:{factory:"React.createElement",fragment:"React.Fragment",importSource:"react",mode:"classic"},"react-jsx":{factory:"React.createElement",importSource:"react",jsxImportSource:"react/jsx-runtime",mode:"automatic"}},Wc={es2015:{arrowFunctions:!0,constBindings:!0,objectShorthand:!0,reservedNamesAsProps:!0,symbols:!0},es5:{arrowFunctions:!1,constBindings:!1,objectShorthand:!1,reservedNamesAsProps:!0,symbols:!1}},Hc=(eA,AA,tA,gA,iA)=>{const IA=eA==null?void 0:eA.preset;if(IA){const BA=AA[IA];if(BA)return{...BA,...eA};Me(ot(`${tA}.preset`,gA,`valid values are ${fe(Object.keys(AA))}`,IA))}return((BA,sA,QA,CA)=>oA=>{if(typeof oA=="string"){const EA=BA[oA];if(EA)return EA;Me(ot(sA,QA,`valid values are ${CA}${fe(Object.keys(BA))}. You can also supply an object for more fine-grained control`,oA))}return(EA=>EA&&typeof EA=="object"?EA:{})(oA)})(AA,tA,gA,iA)(eA)},qc=async eA=>(await async function(AA){do AA=(await Promise.all(AA)).flat(1/0);while(AA.some(tA=>tA==null?void 0:tA.then));return AA}([eA])).filter(Boolean);async function Jc(eA,AA,tA,gA){const iA=AA.id,IA=[];let BA=eA.map===null?null:rl(eA.map);const sA=eA.code;let QA=eA.ast;const CA=[],oA=[];let EA=!1;const nA=()=>EA=!0;let cA="",uA=eA.code;const lA=dA=>(DA,wA)=>{DA=Vc(DA),wA&&_e(DA,wA,uA,iA),DA.id=iA,DA.hook="transform",dA(DA)};let hA;try{hA=await tA.hookReduceArg0("transform",[uA,iA],function(dA,DA,wA){let RA,GA;if(typeof DA=="string")RA=DA;else{if(!DA||typeof DA!="object")return dA;if(AA.updateOptions(DA),DA.code==null)return(DA.map||DA.ast)&&gA(de,function(yA){return{code:"NO_TRANSFORM_MAP_OR_AST_WITHOUT_CODE",message:`The plugin "${yA}" returned a "map" or "ast" without returning a "code". This will be ignored.`}}(wA.name)),dA;({code:RA,map:GA,ast:QA}=DA)}return GA!==null&&IA.push(rl(typeof GA=="string"?JSON.parse(GA):GA)||{missing:!0,plugin:wA.name}),uA=RA,RA},(dA,DA)=>{return cA=DA.name,{...dA,addWatchFile(GA){CA.push(GA),dA.addWatchFile(GA)},cache:EA?dA.cache:(wA=dA.cache,RA=nA,{delete:GA=>(RA(),wA.delete(GA)),get:GA=>(RA(),wA.get(GA)),has:GA=>(RA(),wA.has(GA)),set:(GA,yA)=>(RA(),wA.set(GA,yA))}),debug:lA(dA.debug),emitFile:GA=>(oA.push(GA),tA.emitFile(GA)),error:(GA,yA)=>(typeof GA=="string"&&(GA={message:GA}),yA&&_e(GA,yA,uA,iA),GA.id=iA,GA.hook="transform",dA.error(GA)),getCombinedSourcemap(){const GA=function(yA,LA,KA,bA,SA){return bA.length===0?KA:rl({version:3,...gc(yA,LA,KA,bA,mc(SA)).traceMappings()})}(iA,sA,BA,IA,gA);return GA?(BA!==GA&&(BA=GA,IA.length=0),new c({...GA,file:null,sourcesContent:GA.sourcesContent})):new b(sA).generateMap({hires:!0,includeContent:!0,source:iA})},info:lA(dA.info),setAssetSource(){return this.error({code:"INVALID_SETASSETSOURCE",message:"setAssetSource cannot be called in transform for caching reasons. Use emitFile with a source, or call setAssetSource in another hook."})},warn:lA(dA.warn)};var wA,RA})}catch(dA){return Me(ft(dA,cA,{hook:"transform",id:iA}))}return!EA&&oA.length>0&&(AA.transformFiles=oA),{ast:QA,code:hA,customTransformCache:EA,originalCode:sA,originalSourcemap:BA,sourcemapChain:IA,transformDependencies:CA}}const Kc="resolveDependencies";class Xc{constructor(AA,tA,gA,iA){this.graph=AA,this.modulesById=tA,this.options=gA,this.pluginDriver=iA,this.implicitEntryModules=new Set,this.indexedEntryModules=[],this.latestLoadModulesPromise=Promise.resolve(),this.moduleLoadPromises=new Map,this.modulesWithLoadedDependencies=new Set,this.nextChunkNamePriority=0,this.nextEntryModuleIndex=0,this.resolveId=async(IA,BA,sA,QA,CA,oA=null)=>this.getResolvedIdWithDefaults(this.getNormalizedResolvedIdWithoutDefaults(!this.options.external(IA,BA,!1)&&await Dc(IA,BA,this.options.preserveSymlinks,this.pluginDriver,this.resolveId,oA,sA,typeof QA=="boolean"?QA:!BA,CA),BA,IA),CA),this.hasModuleSideEffects=gA.treeshake?gA.treeshake.moduleSideEffects:()=>!0}async addAdditionalModules(AA,tA){const gA=this.extendLoadModulesPromise(Promise.all(AA.map(iA=>this.loadEntryModule(iA,!1,void 0,null,tA))));return await this.awaitLoadModulesPromise(),gA}async addEntryModules(AA,tA){const gA=this.nextEntryModuleIndex;this.nextEntryModuleIndex+=AA.length;const iA=this.nextChunkNamePriority;this.nextChunkNamePriority+=AA.length;const IA=await this.extendLoadModulesPromise(Promise.all(AA.map(({id:BA,importer:sA})=>this.loadEntryModule(BA,!0,sA,null))).then(BA=>{for(const[sA,QA]of BA.entries()){QA.isUserDefinedEntryPoint=QA.isUserDefinedEntryPoint||tA,Zc(QA,AA[sA],tA,iA+sA);const CA=this.indexedEntryModules.find(oA=>oA.module===QA);CA?CA.index=Math.min(CA.index,gA+sA):this.indexedEntryModules.push({index:gA+sA,module:QA})}return this.indexedEntryModules.sort(({index:sA},{index:QA})=>sA>QA?1:-1),BA}));return await this.awaitLoadModulesPromise(),{entryModules:this.indexedEntryModules.map(({module:BA})=>BA),implicitEntryModules:[...this.implicitEntryModules],newEntryModules:IA}}async emitChunk({fileName:AA,id:tA,importer:gA,name:iA,implicitlyLoadedAfterOneOf:IA,preserveSignature:BA}){const sA={fileName:AA||null,id:tA,importer:gA,name:iA||null},QA=IA?await this.addEntryWithImplicitDependants(sA,IA):(await this.addEntryModules([sA],!1)).newEntryModules[0];return BA!=null&&(QA.preserveSignature=BA),QA}async preloadModule(AA){return(await this.fetchModule(this.getResolvedIdWithDefaults(AA,K),void 0,!1,!AA.resolveDependencies||Kc)).info}addEntryWithImplicitDependants(AA,tA){const gA=this.nextChunkNamePriority++;return this.extendLoadModulesPromise(this.loadEntryModule(AA.id,!1,AA.importer,null).then(async iA=>{if(Zc(iA,AA,!1,gA),!iA.info.isEntry){const IA=await Promise.all(tA.map(BA=>this.loadEntryModule(BA,!1,AA.importer,iA.id)));if(!iA.info.isEntry){this.implicitEntryModules.add(iA);for(const BA of IA)iA.implicitlyLoadedAfter.add(BA);for(const BA of iA.implicitlyLoadedAfter)BA.implicitlyLoadedBefore.add(iA)}}return iA}))}async addModuleSource(AA,tA,gA){let iA;try{iA=await this.graph.fileOperationQueue.run(async()=>{const QA=await this.pluginDriver.hookFirst("load",[AA]);return QA!==null?QA:(this.graph.watchFiles[AA]=!0,await Cc(AA,"utf8"))})}catch(QA){let CA=`Could not load ${AA}`;throw tA&&(CA+=` (imported by ${ge(tA)})`),CA+=`: ${QA.message}`,QA.message=CA,QA}const IA=typeof iA=="string"?{code:iA}:iA!=null&&typeof iA=="object"&&typeof iA.code=="string"?iA:Me(function(QA){return{code:"BAD_LOADER",message:`Error loading "${ge(QA)}": plugin load hook should return a string, a { code, map } object, or nothing/null.`}}(AA)),BA=IA.code;BA.charCodeAt(0)===65279&&(IA.code=BA.slice(1));const sA=this.graph.cachedModules.get(AA);if(!sA||sA.customTransformCache||sA.originalCode!==IA.code||await this.pluginDriver.hookFirst("shouldTransformCachedModule",[{ast:sA.ast,code:sA.code,id:sA.id,meta:sA.meta,moduleSideEffects:sA.moduleSideEffects,resolvedSources:sA.resolvedIds,syntheticNamedExports:sA.syntheticNamedExports}]))gA.updateOptions(IA),await gA.setSource(await Jc(IA,gA,this.pluginDriver,this.options.onLog));else{if(sA.transformFiles)for(const QA of sA.transformFiles)this.pluginDriver.emitFile(QA);await gA.setSource(sA)}}async awaitLoadModulesPromise(){let AA;do AA=this.latestLoadModulesPromise,await AA;while(AA!==this.latestLoadModulesPromise)}extendLoadModulesPromise(AA){return this.latestLoadModulesPromise=Promise.all([AA,this.latestLoadModulesPromise]),this.latestLoadModulesPromise.catch(()=>{}),AA}async fetchDynamicDependencies(AA,tA){const gA=await Promise.all(tA.map(iA=>iA.then(async([IA,BA])=>BA===null?null:typeof BA=="string"?(IA.resolution=BA,null):IA.resolution=await this.fetchResolvedDependency(ge(BA.id),AA.id,BA))));for(const iA of gA)iA&&(AA.dynamicDependencies.add(iA),iA.dynamicImporters.push(AA.id))}async fetchModule({attributes:AA,id:tA,meta:gA,moduleSideEffects:iA,syntheticNamedExports:IA},BA,sA,QA){const CA=this.modulesById.get(tA);if(CA instanceof Il)return BA&&ul(AA,CA.info.attributes)&&this.options.onLog(de,et(CA.info.attributes,AA,tA,BA)),await this.handleExistingModule(CA,sA,QA),CA;if(CA instanceof rn)return Me({code:"EXTERNAL_MODULES_CANNOT_BE_TRANSFORMED_TO_MODULES",message:`${CA.id} is resolved as a module now, but it was an external module before. Please check whether there are conflicts in your Rollup options "external" and "manualChunks", manualChunks cannot include external modules.`});const oA=new Il(this.graph,tA,this.options,sA,iA,IA,gA,AA);this.modulesById.set(tA,oA);const EA=this.addModuleSource(tA,BA,oA).then(()=>[this.getResolveStaticDependencyPromises(oA),this.getResolveDynamicImportPromises(oA),nA]),nA=ed(EA).then(()=>this.pluginDriver.hookParallel("moduleParsed",[oA.info]));nA.catch(()=>{}),this.moduleLoadPromises.set(oA,EA);const cA=await EA;return QA?QA===Kc&&await nA:await this.fetchModuleDependencies(oA,...cA),oA}async fetchModuleDependencies(AA,tA,gA,iA){this.modulesWithLoadedDependencies.has(AA)||(this.modulesWithLoadedDependencies.add(AA),await Promise.all([this.fetchStaticDependencies(AA,tA),this.fetchDynamicDependencies(AA,gA)]),AA.linkImports(),await iA)}fetchResolvedDependency(AA,tA,gA){if(gA.external){const{attributes:iA,external:IA,id:BA,moduleSideEffects:sA,meta:QA}=gA;let CA=this.modulesById.get(BA);if(CA){if(!(CA instanceof rn))return Me(function(oA,EA){return{code:"INVALID_EXTERNAL_ID",message:`"${oA}" is imported as an external by "${ge(EA)}", but is already an existing non-external module id.`}}(AA,tA));ul(CA.info.attributes,iA)&&this.options.onLog(de,et(CA.info.attributes,iA,AA,tA))}else CA=new rn(this.options,BA,sA,QA,IA!=="absolute"&&I(BA),iA),this.modulesById.set(BA,CA);return Promise.resolve(CA)}return this.fetchModule(gA,tA,!1,!1)}async fetchStaticDependencies(AA,tA){for(const gA of await Promise.all(tA.map(iA=>iA.then(([IA,BA])=>this.fetchResolvedDependency(IA,AA.id,BA)))))AA.dependencies.add(gA),gA.importers.push(AA.id);if(!this.options.treeshake||AA.info.moduleSideEffects==="no-treeshake")for(const gA of AA.dependencies)gA instanceof Il&&(gA.importedFromNotTreeshaken=!0)}getNormalizedResolvedIdWithoutDefaults(AA,tA,gA){const{makeAbsoluteExternalsRelative:iA}=this.options;if(AA){if(typeof AA=="object"){const sA=AA.external||this.options.external(AA.id,tA,!0);return{...AA,external:sA&&(sA==="relative"||!I(AA.id)||sA===!0&&Qc(AA.id,gA,iA)||"absolute")}}const BA=this.options.external(AA,tA,!0);return{external:BA&&(Qc(AA,gA,iA)||"absolute"),id:BA&&iA?Yc(AA,tA):AA}}const IA=iA?Yc(gA,tA):gA;return AA===!1||this.options.external(IA,tA,!0)?{external:Qc(IA,gA,iA)||"absolute",id:IA}:null}getResolveDynamicImportPromises(AA){return AA.dynamicImports.map(async tA=>{const gA=await this.resolveDynamicImport(AA,tA.argument,AA.id,cl(tA.node));return gA&&typeof gA=="object"&&(tA.id=gA.id),[tA,gA]})}getResolveStaticDependencyPromises(AA){return Array.from(AA.sourcesWithAttributes,async([tA,gA])=>[tA,AA.resolvedIds[tA]=AA.resolvedIds[tA]||this.handleInvalidResolvedId(await this.resolveId(tA,AA.id,K,!1,gA),tA,AA.id,gA)])}getResolvedIdWithDefaults(AA,tA){if(!AA)return null;const gA=AA.external||!1;return{attributes:AA.attributes||tA,external:gA,id:AA.id,meta:AA.meta||{},moduleSideEffects:AA.moduleSideEffects??this.hasModuleSideEffects(AA.id,!!gA),resolvedBy:AA.resolvedBy??"rollup",syntheticNamedExports:AA.syntheticNamedExports??!1}}async handleExistingModule(AA,tA,gA){const iA=this.moduleLoadPromises.get(AA);if(gA)return gA===Kc?ed(iA):iA;if(tA){AA.info.isEntry=!0,this.implicitEntryModules.delete(AA);for(const IA of AA.implicitlyLoadedAfter)IA.implicitlyLoadedBefore.delete(AA);AA.implicitlyLoadedAfter.clear()}return this.fetchModuleDependencies(AA,...await iA)}handleInvalidResolvedId(AA,tA,gA,iA){return AA===null?P(tA)?Me(function(IA,BA){return{code:Je,exporter:IA,id:BA,message:`Could not resolve "${IA}" from "${ge(BA)}"`}}(tA,gA)):(this.options.onLog(de,function(IA,BA){return{code:Je,exporter:IA,id:BA,message:`"${IA}" is imported by "${ge(BA)}", but could not be resolved – treating it as an external dependency.`,url:xe("troubleshooting/#warning-treating-module-as-external-dependency")}}(tA,gA)),{attributes:iA,external:!0,id:tA,meta:{},moduleSideEffects:this.hasModuleSideEffects(tA,!0),resolvedBy:"rollup",syntheticNamedExports:!1}):(AA.external&&AA.syntheticNamedExports&&this.options.onLog(de,function(IA,BA){return{code:"EXTERNAL_SYNTHETIC_EXPORTS",exporter:IA,message:`External "${IA}" cannot have "syntheticNamedExports" enabled (imported by "${ge(BA)}").`}}(tA,gA)),AA)}async loadEntryModule(AA,tA,gA,iA,IA=!1){const BA=await Dc(AA,gA,this.options.preserveSymlinks,this.pluginDriver,this.resolveId,null,K,!0,K);if(BA==null)return Me(iA===null?function(QA){return{code:qe,message:`Could not resolve entry module "${ge(QA)}".`}}(AA):function(QA,CA){return{code:je,message:`Module "${ge(QA)}" that should be implicitly loaded before "${ge(CA)}" could not be resolved.`}}(AA,iA));const sA=typeof BA=="object"&&BA.external;return BA===!1||sA?Me(iA===null?sA&&IA?{code:"EXTERNAL_MODULES_CANNOT_BE_INCLUDED_IN_MANUAL_CHUNKS",message:`"${AA}" cannot be included in manualChunks because it is resolved as an external module by the "external" option or plugins.`}:function(QA){return{code:qe,message:`Entry module "${ge(QA)}" cannot be external.`}}(AA):function(QA,CA){return{code:je,message:`Module "${ge(QA)}" that should be implicitly loaded before "${ge(CA)}" cannot be external.`}}(AA,iA)):this.fetchModule(this.getResolvedIdWithDefaults(typeof BA=="object"?BA:{id:BA},K),void 0,tA,!1)}async resolveDynamicImport(AA,tA,gA,iA){const IA=await this.pluginDriver.hookFirst("resolveDynamicImport",[tA,gA,{attributes:iA}]);if(typeof tA!="string")return typeof IA=="string"?IA:IA?this.getResolvedIdWithDefaults(IA,iA):null;if(IA==null){const BA=AA.resolvedIds[tA];return BA?(ul(BA.attributes,iA)&&this.options.onLog(de,et(BA.attributes,iA,tA,gA)),BA):AA.resolvedIds[tA]=this.handleInvalidResolvedId(await this.resolveId(tA,AA.id,K,!1,iA),tA,AA.id,iA)}return this.handleInvalidResolvedId(this.getResolvedIdWithDefaults(this.getNormalizedResolvedIdWithoutDefaults(IA,gA,tA),iA),tA,gA,iA)}}function Yc(eA,AA){return P(eA)?AA?M(AA,"..",eA):M(eA):eA}function Zc(eA,{fileName:AA,name:tA},gA,iA){var IA;if(AA!==null)eA.chunkFileNames.add(AA);else if(tA!==null){let BA=0;for(;((IA=eA.chunkNames[BA])==null?void 0:IA.priority)<iA;)BA++;eA.chunkNames.splice(BA,0,{isUserDefined:gA,name:tA,priority:iA})}}function Qc(eA,AA,tA){return tA===!0||tA==="ifRelativeSource"&&P(AA)||!I(eA)}async function ed(eA){const[AA,tA]=await eA;return Promise.all([...AA,...tA])}function td(eA,AA,tA,gA,iA,IA,BA,sA,QA){const CA=BA.sanitizeFileName(eA||"asset");return Hl(Wl(typeof BA.assetFileNames=="function"?BA.assetFileNames({get name(){return Et('Accessing the "name" property of emitted assets when generating the file name is deprecated. Use the "names" property instead.',De,!1,QA),eA},names:AA,get originalFileName(){return Et('Accessing the "originalFileName" property of emitted assets when generating the file name is deprecated. Use the "originalFileNames" property instead.',De,!1,QA),gA},originalFileNames:iA,source:tA,type:"asset"}):BA.assetFileNames,"output.assetFileNames",{ext:()=>O(CA).slice(1),extname:()=>O(CA),hash:oA=>IA.slice(0,Math.max(0,oA||8)),name:()=>CA.slice(0,Math.max(0,CA.length-O(CA).length))}),sA)}function nd(eA,{bundle:AA},tA){AA[Ul].has(eA.toLowerCase())?tA(de,function(gA){return{code:"FILE_NAME_CONFLICT",message:`The emitted file "${gA}" overwrites a previously emitted file of the same name.`}}(eA)):AA[eA]=Gl}const sd=new Set(["chunk","asset","prebuilt-chunk"]);function id(eA,AA,tA){if(!(typeof eA=="string"||eA instanceof Uint8Array)){const gA=AA.fileName||AA.name||tA;return Me(bt(`Could not set source for ${typeof gA=="string"?`asset "${gA}"`:"unnamed asset"}, asset source needs to be a string, Uint8Array or Buffer.`))}return eA}class rd{constructor(AA,tA,gA){this.graph=AA,this.options=tA,this.facadeChunkByModule=null,this.nextIdBase=1,this.output=null,this.outputFileEmitters=[],this.emitFile=iA=>function(IA){return!!(IA&&sd.has(IA.type))}(iA)?iA.type==="prebuilt-chunk"?this.emitPrebuiltChunk(iA):function(IA){const BA=IA.fileName||IA.name;return!BA||typeof BA=="string"&&!ye(BA)}(iA)?iA.type==="chunk"?this.emitChunk(iA):this.emitAsset(iA):Me(bt(`The "fileName" or "name" properties of emitted chunks and assets must be strings that are neither absolute nor relative paths, received "${iA.fileName||iA.name}".`)):Me(bt(`Emitted files must be of type "asset", "chunk" or "prebuilt-chunk", received "${iA&&iA.type}".`)),this.finaliseAssets=()=>{for(const[iA,IA]of this.filesByReferenceId)if(IA.type==="asset"&&typeof IA.fileName!="string")return Me({code:"ASSET_SOURCE_MISSING",message:`Plugin error creating asset "${IA.name||iA}" - no asset source set.`})},this.getFileName=iA=>{const IA=this.filesByReferenceId.get(iA);return IA?IA.type==="chunk"?(BA=IA,sA=this.facadeChunkByModule,BA.fileName?BA.fileName:sA?sA.get(BA.module).getFileName():Me({code:"CHUNK_NOT_GENERATED",message:`Plugin error - Unable to get file name for emitted chunk "${BA.fileName||BA.name}". You can only get file names once chunks have been generated after the "renderStart" hook.`})):IA.type==="prebuilt-chunk"?IA.fileName:function(QA,CA){return typeof QA.fileName!="string"?Me({code:"ASSET_NOT_FINALISED",message:`Plugin error - Unable to get file name for asset "${QA.name||CA}". Ensure that the source is set and that generate is called first. If you reference assets via import.meta.ROLLUP_FILE_URL_<referenceId>, you need to either have set their source after "renderStart" or need to provide an explicit "fileName" when emitting them.`}):QA.fileName}(IA,iA):Me({code:"FILE_NOT_FOUND",message:`Plugin error - Unable to get file name for unknown file "${iA}".`});var BA,sA},this.setAssetSource=(iA,IA)=>{const BA=this.filesByReferenceId.get(iA);if(!BA)return Me({code:"ASSET_NOT_FOUND",message:`Plugin error - Unable to set the source for unknown asset "${iA}".`});if(BA.type!=="asset")return Me(bt(`Asset sources can only be set for emitted assets but "${iA}" is an emitted chunk.`));if(BA.source!==void 0)return Me({code:"ASSET_SOURCE_ALREADY_SET",message:`Unable to set the source for asset "${BA.name||iA}", source already set.`});const sA=id(IA,BA,iA);if(this.output)this.finalizeAdditionalAsset(BA,sA,this.output);else{BA.source=sA;for(const QA of this.outputFileEmitters)QA.finalizeAdditionalAsset(BA,sA,QA.output)}},this.setChunkInformation=iA=>{this.facadeChunkByModule=iA},this.setOutputBundle=(iA,IA)=>{const BA=Ec[IA.hashCharacters],sA=this.output={bundle:iA,fileNamesBySourceHash:new Map,getHash:BA,outputOptions:IA};for(const CA of this.filesByReferenceId.values())CA.fileName&&nd(CA.fileName,sA,this.options.onLog);const QA=new Map;for(const CA of this.filesByReferenceId.values())CA.type==="asset"&&CA.source!==void 0?CA.fileName?this.finalizeAdditionalAsset(CA,CA.source,sA):St(QA,BA(CA.source),()=>[]).push(CA):CA.type==="prebuilt-chunk"&&(this.output.bundle[CA.fileName]=this.createPrebuiltChunk(CA));for(const[CA,oA]of QA)this.finalizeAssetsWithSameSource(oA,CA,sA)},this.filesByReferenceId=gA?new Map(gA.filesByReferenceId):new Map,gA==null||gA.addOutputFileEmitter(this)}addOutputFileEmitter(AA){this.outputFileEmitters.push(AA)}assignReferenceId(AA,tA){let gA=tA;do gA=bc(gA).slice(0,8).replaceAll("-","$");while(this.filesByReferenceId.has(gA)||this.outputFileEmitters.some(({filesByReferenceId:iA})=>iA.has(gA)));AA.referenceId=gA,this.filesByReferenceId.set(gA,AA);for(const{filesByReferenceId:iA}of this.outputFileEmitters)iA.set(gA,AA);return gA}createPrebuiltChunk(AA){return{code:AA.code,dynamicImports:[],exports:AA.exports||[],facadeModuleId:null,fileName:AA.fileName,implicitlyLoadedBefore:[],importedBindings:{},imports:[],isDynamicEntry:!1,isEntry:!1,isImplicitEntry:!1,map:AA.map||null,moduleIds:[],modules:{},name:AA.fileName,preliminaryFileName:AA.fileName,referencedFiles:[],sourcemapFileName:AA.sourcemapFileName||null,type:"chunk"}}emitAsset(AA){const tA=AA.source===void 0?void 0:id(AA.source,AA,null),gA=AA.originalFileName||null;typeof gA=="string"&&(this.graph.watchFiles[gA]=!0);const iA={fileName:AA.fileName,name:AA.name,needsCodeReference:!!AA.needsCodeReference,originalFileName:gA,referenceId:"",source:tA,type:"asset"},IA=this.assignReferenceId(iA,AA.fileName||AA.name||String(this.nextIdBase++));if(this.output)this.emitAssetWithReferenceId(iA,this.output);else for(const BA of this.outputFileEmitters)BA.emitAssetWithReferenceId(iA,BA.output);return IA}emitAssetWithReferenceId(AA,tA){const{fileName:gA,source:iA}=AA;gA&&nd(gA,tA,this.options.onLog),iA!==void 0&&this.finalizeAdditionalAsset(AA,iA,tA)}emitChunk(AA){if(this.graph.phase>nl.LOAD_AND_PARSE)return Me({code:"INVALID_ROLLUP_PHASE",message:"Cannot emit chunks after module loading has finished."});if(typeof AA.id!="string")return Me(bt(`Emitted chunks need to have a valid string id, received "${AA.id}"`));const tA={fileName:AA.fileName,module:null,name:AA.name||AA.id,referenceId:"",type:"chunk"};return this.graph.moduleLoader.emitChunk(AA).then(gA=>tA.module=gA).catch(()=>{}),this.assignReferenceId(tA,AA.id)}emitPrebuiltChunk(AA){if(typeof AA.code!="string")return Me(bt(`Emitted prebuilt chunks need to have a valid string code, received "${AA.code}".`));if(typeof AA.fileName!="string"||ye(AA.fileName))return Me(bt(`The "fileName" property of emitted prebuilt chunks must be strings that are neither absolute nor relative paths, received "${AA.fileName}".`));const tA={code:AA.code,exports:AA.exports,fileName:AA.fileName,map:AA.map,referenceId:"",type:"prebuilt-chunk"},gA=this.assignReferenceId(tA,tA.fileName);return this.output&&(this.output.bundle[tA.fileName]=this.createPrebuiltChunk(tA)),gA}finalizeAdditionalAsset(AA,tA,{bundle:gA,fileNamesBySourceHash:iA,getHash:IA,outputOptions:BA}){let{fileName:sA,name:QA,needsCodeReference:CA,originalFileName:oA,referenceId:EA}=AA;if(!sA){const uA=IA(tA);sA=iA.get(uA),sA||(sA=td(QA,QA?[QA]:[],tA,oA,oA?[oA]:[],uA,BA,gA,this.options),iA.set(uA,sA))}const nA={...AA,fileName:sA,source:tA};this.filesByReferenceId.set(EA,nA);const cA=gA[sA];if((cA==null?void 0:cA.type)==="asset")cA.needsCodeReference&&(cA.needsCodeReference=CA),QA&&cA.names.push(QA),oA&&cA.originalFileNames.push(oA);else{const{options:uA}=this;gA[sA]={fileName:sA,get name(){return Et('Accessing the "name" property of emitted assets in the bundle is deprecated. Use the "names" property instead.',De,!1,uA),QA},names:QA?[QA]:[],needsCodeReference:CA,get originalFileName(){return Et('Accessing the "originalFileName" property of emitted assets in the bundle is deprecated. Use the "originalFileNames" property instead.',De,!1,uA),oA},originalFileNames:oA?[oA]:[],source:tA,type:"asset"}}}finalizeAssetsWithSameSource(AA,tA,{bundle:gA,fileNamesBySourceHash:iA,outputOptions:IA}){const{names:BA,originalFileNames:sA}=function(nA){const cA=[],uA=[];for(const{name:lA,originalFileName:hA}of nA)typeof lA=="string"&&cA.push(lA),hA&&uA.push(hA);return uA.sort(),cA.sort((lA,hA)=>lA.length-hA.length||(lA>hA?1:lA===hA?0:-1)),{names:cA,originalFileNames:uA}}(AA);let QA,CA="",oA=!0;for(const nA of AA){oA&&(oA=nA.needsCodeReference);const cA=td(nA.name,BA,nA.source,nA.originalFileName,sA,tA,IA,gA,this.options);(!CA||cA.length<CA.length||cA.length===CA.length&&cA<CA)&&(CA=cA,QA=nA)}iA.set(tA,CA);for(const nA of AA){const cA={...nA,fileName:CA};this.filesByReferenceId.set(nA.referenceId,cA)}const{options:EA}=this;gA[CA]={fileName:CA,get name(){return Et('Accessing the "name" property of emitted assets in the bundle is deprecated. Use the "names" property instead.',De,!1,EA),QA.name},names:BA,needsCodeReference:oA,get originalFileName(){return Et('Accessing the "originalFileName" property of emitted assets in the bundle is deprecated. Use the "originalFileNames" property instead.',De,!1,EA),QA.originalFileName},originalFileNames:sA,source:QA.source,type:"asset"}}}function od(eA,AA,tA,gA,iA){return pe[eA]<pe[iA]?an:(IA,BA)=>{BA!=null&&tA(de,{code:"INVALID_LOG_POSITION",message:`Plugin "${gA}" tried to add a file position to a log or warning. This is only supported in the "transform" hook at the moment and will be ignored.`}),(IA=Vc(IA)).code&&!IA.pluginCode&&(IA.pluginCode=IA.code),IA.code=AA,IA.plugin=gA,tA(eA,IA)}}function ad(eA,AA,tA,gA,iA,IA){const{logLevel:BA,onLog:sA}=gA;let QA,CA=!0;if(typeof eA.cacheKey!="string"&&(eA.name.startsWith(Mc)||eA.name.startsWith(Rc)||IA.has(eA.name)?CA=!1:IA.add(eA.name)),AA)if(CA){const nA=eA.cacheKey||eA.name;EA=AA[nA]||(AA[nA]=Object.create(null)),QA={delete:cA=>delete EA[cA],get(cA){const uA=EA[cA];if(uA)return uA[0]=0,uA[1]},has(cA){const uA=EA[cA];return!!uA&&(uA[0]=0,!0)},set(cA,uA){EA[cA]=[0,uA]}}}else oA=eA.name,QA={delete:()=>Lc(oA),get:()=>Lc(oA),has:()=>Lc(oA),set:()=>Lc(oA)};else QA=_c;var oA,EA;return{addWatchFile(nA){tA.watchFiles[nA]=!0},cache:QA,debug:od(he,"PLUGIN_LOG",sA,eA.name,BA),emitFile:iA.emitFile.bind(iA),error:nA=>Me(ft(Vc(nA),eA.name)),getFileName:iA.getFileName,getModuleIds:()=>tA.modulesById.keys(),getModuleInfo:tA.getModuleInfo,getWatchFiles:()=>Object.keys(tA.watchFiles),info:od(ue,"PLUGIN_LOG",sA,eA.name,BA),load:nA=>tA.moduleLoader.preloadModule(nA),meta:{rollupVersion:t,watchMode:tA.watchMode},parse:al,resolve:(nA,cA,{attributes:uA,custom:lA,isEntry:hA,skipSelf:dA}=J)=>(dA??(dA=!0),tA.moduleLoader.resolveId(nA,cA,lA,hA,uA||K,dA?[{importer:cA,plugin:eA,source:nA}]:null)),setAssetSource:iA.setAssetSource,warn:od(de,"PLUGIN_WARNING",sA,eA.name,BA)}}const ld=Object.keys({buildEnd:1,buildStart:1,closeBundle:1,closeWatcher:1,load:1,moduleParsed:1,onLog:1,options:1,resolveDynamicImport:1,resolveId:1,shouldTransformCachedModule:1,transform:1,watchChange:1});class cd{constructor(AA,tA,gA,iA,IA){this.graph=AA,this.options=tA,this.pluginCache=iA,this.sortedPlugins=new Map,this.unfulfilledActions=new Set,this.fileEmitter=new rd(AA,tA,IA&&IA.fileEmitter),this.emitFile=this.fileEmitter.emitFile.bind(this.fileEmitter),this.getFileName=this.fileEmitter.getFileName.bind(this.fileEmitter),this.finaliseAssets=this.fileEmitter.finaliseAssets.bind(this.fileEmitter),this.setChunkInformation=this.fileEmitter.setChunkInformation.bind(this.fileEmitter),this.setOutputBundle=this.fileEmitter.setOutputBundle.bind(this.fileEmitter),this.plugins=[...IA?IA.plugins:[],...gA];const BA=new Set;if(this.pluginContexts=new Map(this.plugins.map(QA=>[QA,ad(QA,iA,AA,tA,this.fileEmitter,BA)])),IA)for(const QA of gA)for(const CA of ld)CA in QA&&tA.onLog(de,(sA=QA.name,{code:"INPUT_HOOK_IN_OUTPUT_PLUGIN",message:`The "${CA}" hook used by the output plugin ${sA} is a build time hook and will not be run for that plugin. Either this plugin cannot be used as an output plugin, or it should have an option to configure it as an output plugin.`}));var sA}createOutputPluginDriver(AA){return new cd(this.graph,this.options,AA,this.pluginCache,this)}getUnfulfilledHookActions(){return this.unfulfilledActions}hookFirst(AA,tA,gA,iA){return this.hookFirstAndGetPlugin(AA,tA,gA,iA).then(IA=>IA&&IA[0])}async hookFirstAndGetPlugin(AA,tA,gA,iA){for(const IA of this.getSortedPlugins(AA)){if(iA!=null&&iA.has(IA))continue;const BA=await this.runHook(AA,tA,IA,gA);if(BA!=null)return[BA,IA]}return null}hookFirstSync(AA,tA,gA){for(const iA of this.getSortedPlugins(AA)){const IA=this.runHookSync(AA,tA,iA,gA);if(IA!=null)return IA}return null}async hookParallel(AA,tA,gA){const iA=[];for(const IA of this.getSortedPlugins(AA))IA[AA].sequential?(await Promise.all(iA),iA.length=0,await this.runHook(AA,tA,IA,gA)):iA.push(this.runHook(AA,tA,IA,gA));await Promise.all(iA)}hookReduceArg0(AA,[tA,...gA],iA,IA){let BA=Promise.resolve(tA);for(const sA of this.getSortedPlugins(AA))BA=BA.then(QA=>this.runHook(AA,[QA,...gA],sA,IA).then(CA=>iA.call(this.pluginContexts.get(sA),QA,CA,sA)));return BA}hookReduceArg0Sync(AA,[tA,...gA],iA,IA){for(const BA of this.getSortedPlugins(AA)){const sA=[tA,...gA],QA=this.runHookSync(AA,sA,BA,IA);tA=iA.call(this.pluginContexts.get(BA),tA,QA,BA)}return tA}async hookReduceValue(AA,tA,gA,iA){const IA=[],BA=[];for(const sA of this.getSortedPlugins(AA,hd))sA[AA].sequential?(IA.push(...await Promise.all(BA)),BA.length=0,IA.push(await this.runHook(AA,gA,sA))):BA.push(this.runHook(AA,gA,sA));return IA.push(...await Promise.all(BA)),IA.reduce(iA,await tA)}hookReduceValueSync(AA,tA,gA,iA,IA){let BA=tA;for(const sA of this.getSortedPlugins(AA)){const QA=this.runHookSync(AA,gA,sA,IA);BA=iA.call(this.pluginContexts.get(sA),BA,QA,sA)}return BA}hookSeq(AA,tA,gA){let iA=Promise.resolve();for(const IA of this.getSortedPlugins(AA))iA=iA.then(()=>this.runHook(AA,tA,IA,gA));return iA.then(pd)}getSortedPlugins(AA,tA){return St(this.sortedPlugins,AA,()=>dd(AA,this.plugins,tA))}runHook(AA,tA,gA,iA){const IA=gA[AA],BA=typeof IA=="object"?IA.handler:IA;let sA=this.pluginContexts.get(gA);iA&&(sA=iA(sA,gA));let QA=null;return Promise.resolve().then(()=>{if(typeof BA!="function")return BA;const CA=BA.apply(sA,tA);return CA!=null&&CA.then?(QA=[gA.name,AA,tA],this.unfulfilledActions.add(QA),Promise.resolve(CA).then(oA=>(this.unfulfilledActions.delete(QA),oA))):CA}).catch(CA=>(QA!==null&&this.unfulfilledActions.delete(QA),Me(ft(CA,gA.name,{hook:AA}))))}runHookSync(AA,tA,gA,iA){const IA=gA[AA],BA=typeof IA=="object"?IA.handler:IA;let sA=this.pluginContexts.get(gA);iA&&(sA=iA(sA,gA));try{return BA.apply(sA,tA)}catch(QA){return Me(ft(QA,gA.name,{hook:AA}))}}}function dd(eA,AA,tA=ud){const gA=[],iA=[],IA=[];for(const BA of AA){const sA=BA[eA];if(sA){if(typeof sA=="object"){if(tA(sA.handler,eA,BA),sA.order==="pre"){gA.push(BA);continue}if(sA.order==="post"){IA.push(BA);continue}}else tA(sA,eA,BA);iA.push(BA)}}return[...gA,...iA,...IA]}function ud(eA,AA,tA){typeof eA!="function"&&Me(function(gA,iA){return{code:Ve,hook:gA,message:`Error running plugin hook "${gA}" for plugin "${iA}", expected a function hook or an object with a "handler" function.`,plugin:iA}}(AA,tA.name))}function hd(eA,AA,tA){if(typeof eA!="string"&&typeof eA!="function")return Me(function(gA,iA){return{code:Ve,hook:gA,message:`Error running plugin hook "${gA}" for plugin "${iA}", expected a string, a function hook or an object with a "handler" string or function.`,plugin:iA}}(AA,tA.name))}function pd(){}class fd{constructor(AA){this.maxParallel=AA,this.queue=[],this.workerCount=0}run(AA){return new Promise((tA,gA)=>{this.queue.push({reject:gA,resolve:tA,task:AA}),this.work()})}async work(){if(this.workerCount>=this.maxParallel)return;let AA;for(this.workerCount++;AA=this.queue.shift();){const{reject:tA,resolve:gA,task:iA}=AA;try{gA(await iA())}catch(IA){tA(IA)}}this.workerCount--}}class md{constructor(AA,tA){var gA,iA;if(this.options=AA,this.astLru=function(IA){var BA,sA,QA,CA=IA;function oA(nA,cA){++BA>CA&&(QA=sA,EA(1),++BA),sA[nA]=cA}function EA(nA){BA=0,sA=Object.create(null),nA||(QA=Object.create(null))}return EA(),{clear:EA,has:function(nA){return sA[nA]!==void 0||QA[nA]!==void 0},get:function(nA){var cA=sA[nA];return cA!==void 0?cA:(cA=QA[nA])!==void 0?(oA(nA,cA),cA):void 0},set:function(nA,cA){sA[nA]!==void 0?sA[nA]=cA:oA(nA,cA)}}}(5),this.cachedModules=new Map,this.deoptimizationTracker=new Mt,this.entryModules=[],this.modulesById=new Map,this.needsTreeshakingPass=!1,this.phase=nl.LOAD_AND_PARSE,this.scope=new Pc,this.watchFiles=Object.create(null),this.watchMode=!1,this.externalModules=[],this.implicitEntryModules=[],this.modules=[],this.getModuleInfo=IA=>{const BA=this.modulesById.get(IA);return BA?BA.info:null},AA.cache!==!1){if((gA=AA.cache)!=null&&gA.modules)for(const IA of AA.cache.modules)this.cachedModules.set(IA.id,IA);this.pluginCache=((iA=AA.cache)==null?void 0:iA.plugins)||Object.create(null);for(const IA in this.pluginCache){const BA=this.pluginCache[IA];for(const sA of Object.values(BA))sA[0]++}}if(tA){this.watchMode=!0;const IA=(...sA)=>this.pluginDriver.hookParallel("watchChange",sA),BA=()=>this.pluginDriver.hookParallel("closeWatcher",[]);tA.onCurrentRun("change",IA),tA.onCurrentRun("close",BA)}this.pluginDriver=new cd(this,AA,AA.plugins,this.pluginCache),this.moduleLoader=new Xc(this,this.modulesById,this.options,this.pluginDriver),this.fileOperationQueue=new fd(AA.maxParallelFileOps),this.pureFunctions=(({treeshake:IA})=>{const BA=Object.create(null);for(const sA of IA?IA.manualPureFunctions:[]){let QA=BA;for(const CA of sA.split("."))QA=QA[CA]||(QA[CA]=Object.create(null));QA[xt]=!0}return BA})(AA)}async build(){El("generate module graph",2),await this.generateModuleGraph(),xl("generate module graph",2),El("sort and bind modules",2),this.phase=nl.ANALYSE,this.sortModules(),xl("sort and bind modules",2),El("mark included statements",2),this.includeStatements(),xl("mark included statements",2),this.phase=nl.GENERATE}getCache(){for(const AA in this.pluginCache){const tA=this.pluginCache[AA];let gA=!0;for(const[iA,IA]of Object.entries(tA))IA[0]>=this.options.experimentalCacheExpiry?delete tA[iA]:gA=!1;gA&&delete this.pluginCache[AA]}return{modules:this.modules.map(AA=>AA.toJSON()),plugins:this.pluginCache}}async generateModuleGraph(){var AA;if({entryModules:this.entryModules,implicitEntryModules:this.implicitEntryModules}=await this.moduleLoader.addEntryModules((AA=this.options.input,Array.isArray(AA)?AA.map(tA=>({fileName:null,id:tA,implicitlyLoadedAfter:[],importer:void 0,name:null})):Object.entries(AA).map(([tA,gA])=>({fileName:null,id:gA,implicitlyLoadedAfter:[],importer:void 0,name:tA}))),!0),this.entryModules.length===0)throw new Error("You must supply options.input to rollup");for(const tA of this.modulesById.values())tA.cacheInfoGetters(),tA instanceof Il?this.modules.push(tA):this.externalModules.push(tA)}includeStatements(){const AA=[...this.entryModules,...this.implicitEntryModules];for(const tA of AA)on(tA);if(this.options.treeshake){let tA=1;do{El(`treeshaking pass ${tA}`,3),this.needsTreeshakingPass=!1;for(const gA of this.modules)gA.isExecuted&&(gA.hasTreeShakingPassStarted=!0,gA.info.moduleSideEffects==="no-treeshake"?gA.includeAllInBundle():gA.include());if(tA===1)for(const gA of AA)gA.preserveSignature!==!1&&(gA.includeAllExports(!1),this.needsTreeshakingPass=!0);xl("treeshaking pass "+tA++,3)}while(this.needsTreeshakingPass)}else for(const tA of this.modules)tA.includeAllInBundle();for(const tA of this.externalModules)tA.warnUnusedImports();for(const tA of this.implicitEntryModules)for(const gA of tA.implicitlyLoadedAfter)gA.info.isEntry||gA.isIncluded()||Me(lt(gA))}sortModules(){const{orderedModules:AA,cyclePaths:tA}=function(gA){let iA=0;const IA=[],BA=new Set,sA=new Set,QA=new Map,CA=[],oA=EA=>{if(EA instanceof Il){for(const nA of EA.dependencies)QA.has(nA)?BA.has(nA)||IA.push(uc(nA,EA,QA)):(QA.set(nA,EA),oA(nA));for(const nA of EA.implicitlyLoadedBefore)sA.add(nA);for(const{resolution:nA}of EA.dynamicImports)nA instanceof Il&&sA.add(nA);CA.push(EA)}EA.execIndex=iA++,BA.add(EA)};for(const EA of gA)QA.has(EA)||(QA.set(EA,null),oA(EA));for(const EA of sA)QA.has(EA)||(QA.set(EA,null),oA(EA));return{cyclePaths:IA,orderedModules:CA}}(this.entryModules);for(const gA of tA)this.options.onLog(de,Ye(gA));this.modules=AA;for(const gA of this.modules)gA.bindReferences();this.warnForMissingExports()}warnForMissingExports(){for(const AA of this.modules)for(const tA of AA.importDescriptions.values())tA.name==="*"||tA.module.getVariableForExportName(tA.name)[0]||AA.log(de,at(tA.name,AA.id,tA.module.id),tA.start)}}function gd(eA,AA){return AA()}function yd(eA,AA,tA,gA){eA=dd("onLog",eA);const iA=pe[gA],IA=(BA,sA,QA=Y)=>{if(Te(sA),!(pe[BA]<iA)){for(const CA of eA){if(QA.has(CA))continue;const{onLog:oA}=CA,EA=nA=>pe[nA]<iA?an:cA=>IA(nA,Vc(cA),new Set(QA).add(CA));if(("handler"in oA?oA.handler:oA).call({debug:EA(he),error:nA=>Me(Vc(nA)),info:EA(ue),meta:{rollupVersion:t,watchMode:tA},warn:EA(de)},BA,sA)===!1)return}AA(BA,sA)}};return IA}const bd=eA=>{var AA;return eA.cache===!0?void 0:((AA=eA.cache)==null?void 0:AA.cache)||eA.cache},Ed=eA=>{if(eA===!0)return()=>!0;if(typeof eA=="function")return(tA,...gA)=>!tA.startsWith("\0")&&eA(tA,...gA)||!1;if(eA){const tA=new Set,gA=[];for(const iA of(AA=eA,Array.isArray(AA)?AA.filter(Boolean):AA?[AA]:[]))iA instanceof RegExp?gA.push(iA):tA.add(iA);return(iA,...IA)=>tA.has(iA)||gA.some(BA=>BA.test(iA))}var AA;return()=>!1},xd=eA=>{const AA=eA.input;return AA==null?[]:typeof AA=="string"?[AA]:AA},Sd=eA=>{const AA=eA.jsx;if(!AA)return!1;const tA=Hc(AA,Gc,"jsx",Ae,"false, "),{factory:gA,importSource:iA,mode:IA}=tA;switch(IA){case"automatic":return{factory:gA||"React.createElement",importSource:iA||"react",jsxImportSource:tA.jsxImportSource||"react/jsx-runtime",mode:"automatic"};case"preserve":return!iA||gA||tA.fragment||Me(ot("jsx",Ae,"when preserving JSX and specifying an importSource, you also need to specify a factory or fragment")),{factory:gA||null,fragment:tA.fragment||null,importSource:iA||null,mode:"preserve"};default:return IA&&IA!=="classic"&&Me(ot("jsx.mode",Ae,'mode must be "automatic", "classic" or "preserve"',IA)),{factory:gA||"React.createElement",fragment:tA.fragment||"React.Fragment",importSource:iA||null,mode:"classic"}}},Ad=eA=>{const AA=eA.maxParallelFileOps;return typeof AA=="number"?AA<=0?1/0:AA:20},$d=(eA,AA)=>{const tA=eA.moduleContext;if(typeof tA=="function")return gA=>tA(gA)??AA;if(tA){const gA=Object.create(null);for(const[iA,IA]of Object.entries(tA))gA[M(iA)]=IA;return iA=>gA[iA]??AA}return()=>AA},vd=eA=>{if(eA.treeshake===!1)return!1;const AA=Hc(eA.treeshake,Uc,"treeshake","configuration-options/#treeshake","false, true, ");return{annotations:AA.annotations!==!1,correctVarValueBeforeDeclaration:AA.correctVarValueBeforeDeclaration===!0,manualPureFunctions:AA.manualPureFunctions??X,moduleSideEffects:wd(AA.moduleSideEffects),propertyReadSideEffects:AA.propertyReadSideEffects==="always"?"always":AA.propertyReadSideEffects!==!1,tryCatchDeoptimization:AA.tryCatchDeoptimization!==!1,unknownGlobalSideEffects:AA.unknownGlobalSideEffects!==!1}},wd=eA=>{if(typeof eA=="boolean")return()=>eA;if(eA==="no-external")return(AA,tA)=>!tA;if(typeof eA=="function")return(AA,tA)=>!!AA.startsWith("\0")||eA(AA,tA)!==!1;if(Array.isArray(eA)){const AA=new Set(eA);return tA=>AA.has(tA)}return eA&&Me(ot("treeshake.moduleSideEffects","configuration-options/#treeshake-modulesideeffects",'please use one of false, "no-external", a function or an array')),()=>!0},Id=/[\u0000-\u001F"#$%&*+,:;<=>?[\]^`{|}\u007F]/g,Pd=/^[a-z]:/i;function kd(eA){const AA=Pd.exec(eA),tA=AA?AA[0]:"";return tA+eA.slice(tA.length).replace(Id,"_")}const Nd=(eA,AA,tA)=>{const{file:gA}=eA;if(typeof gA=="string"){if(AA)return Me(ot("output.file",ve,'you must set "output.dir" instead of "output.file" when using the "output.preserveModules" option'));if(!Array.isArray(tA.input))return Me(ot("output.file",ve,'you must set "output.dir" instead of "output.file" when providing named inputs'))}return gA},Cd=eA=>{const AA=eA.format;switch(AA){case void 0:case"es":case"esm":case"module":return"es";case"cjs":case"commonjs":return"cjs";case"system":case"systemjs":return"system";case"amd":case"iife":case"umd":return AA;default:return Me(ot("output.format",Ie,'Valid values are "amd", "cjs", "system", "es", "iife" or "umd"',AA))}},Od=(eA,AA)=>{const tA=eA.inlineDynamicImports||!1,{input:gA}=AA;return tA&&(Array.isArray(gA)?gA:Object.keys(gA)).length>1?Me(ot("output.inlineDynamicImports",Pe,'multiple inputs are not supported when "output.inlineDynamicImports" is true')):tA},Dd=(eA,AA,tA)=>{const gA=eA.preserveModules||!1;if(gA){if(AA)return Me(ot("output.inlineDynamicImports",Pe,'this option is not supported for "output.preserveModules"'));if(tA.preserveEntrySignatures===!1)return Me(ot("preserveEntrySignatures","configuration-options/#preserveentrysignatures",'setting this option to false is not supported for "output.preserveModules"'))}return gA},Md=eA=>{const{preserveModulesRoot:AA}=eA;if(AA!=null)return M(AA)},Rd=eA=>{const AA={autoId:!1,basePath:"",define:"define",forceJsExtensionForImports:!1,...eA.amd};return(AA.autoId||AA.basePath)&&AA.id?Me(ot("output.amd.id",$e,'this option cannot be used together with "output.amd.autoId"/"output.amd.basePath"')):AA.basePath&&!AA.autoId?Me(ot("output.amd.basePath","configuration-options/#output-amd-basepath",'this option only works with "output.amd.autoId"')):AA.autoId?{autoId:!0,basePath:AA.basePath,define:AA.define,forceJsExtensionForImports:AA.forceJsExtensionForImports}:{autoId:!1,define:AA.define,forceJsExtensionForImports:AA.forceJsExtensionForImports,id:AA.id}},_d=(eA,AA)=>{const tA=eA[AA];return typeof tA=="function"?tA:()=>tA||""},Ld=(eA,AA)=>{const{dir:tA}=eA;return typeof tA=="string"&&typeof AA=="string"?Me(ot("output.dir",ve,'you must set either "output.file" for a single-file build or "output.dir" when generating multiple chunks')):tA},Td=(eA,AA)=>{const tA=eA.entryFileNames;return tA==null&&AA.add("entryFileNames"),tA??"[name].js"};function Bd(eA,AA){const tA=eA.exports;if(tA==null)AA.add("exports");else if(!["default","named","none","auto"].includes(tA))return Me({code:Be,message:`"output.exports" must be "default", "named", "none", "auto", or left unspecified (defaults to "auto"), received "${tA}".`,url:xe(we)});return tA||"auto"}const zd=(eA,AA)=>(eA.externalImportAssertions!=null&&Et('The "output.externalImportAssertions" option is deprecated. Use the "output.externalImportAttributes" option instead.',"configuration-options/#output-externalimportattributes",!0,AA),eA.externalImportAttributes??eA.externalImportAssertions??!0),Vd=eA=>{const AA=Hc(eA.generatedCode,Wc,"output.generatedCode","configuration-options/#output-generatedcode","");return{arrowFunctions:AA.arrowFunctions===!0,constBindings:AA.constBindings===!0,objectShorthand:AA.objectShorthand===!0,reservedNamesAsProps:AA.reservedNamesAsProps!==!1,symbols:AA.symbols===!0}},Fd=(eA,AA)=>{if(AA)return"";const tA=eA.indent;return tA===!1?"":tA??!0},jd=new Set(["compat","auto","esModule","default","defaultOnly"]),Ud=eA=>{const AA=eA.interop;if(typeof AA=="function"){const tA=Object.create(null);let gA=null;return iA=>iA===null?gA||Gd(gA=AA(iA)):iA in tA?tA[iA]:Gd(tA[iA]=AA(iA))}return AA===void 0?()=>"default":()=>Gd(AA)},Gd=eA=>jd.has(eA)?eA:Me(ot("output.interop",ke,`use one of ${Array.from(jd,AA=>JSON.stringify(AA)).join(", ")}`,eA)),Wd=(eA,AA,tA)=>{const gA=eA.manualChunks;if(gA){if(AA)return Me(ot("output.manualChunks",Ne,'this option is not supported for "output.inlineDynamicImports"'));if(tA)return Me(ot("output.manualChunks",Ne,'this option is not supported for "output.preserveModules"'))}return gA||{}},Hd=(eA,AA,tA)=>eA.minifyInternalExports??(tA||AA==="es"||AA==="system"),qd=(eA,AA)=>{const tA=eA.sourcemapFileNames;return tA==null&&AA.add("sourcemapFileNames"),tA},Jd=eA=>{const{sourcemapBaseUrl:AA}=eA;if(AA)return function(gA){try{new URL(gA)}catch{return!1}return!0}(AA)?(tA=AA).endsWith("/")?tA:tA+"/":Me(ot("output.sourcemapBaseUrl","configuration-options/#output-sourcemapbaseurl",`must be a valid URL, received ${JSON.stringify(AA)}`));var tA};function Kd(eA){return async function(AA,tA){const{options:gA,unsetOptions:iA}=await async function(QA,CA){if(!QA)throw new Error("You must supply an options object to rollup");const oA=await async function(cA,uA){const lA=dd("options",await qc(cA.plugins)),hA=cA.logLevel||ue,dA=yd(lA,Tc(cA,hA),uA,hA);for(const DA of lA){const{name:wA,options:RA}=DA,GA="handler"in RA?RA.handler:RA,yA=await GA.call({debug:od(he,"PLUGIN_LOG",dA,wA,hA),error:LA=>Me(ft(Vc(LA),wA,{hook:"onLog"})),info:od(ue,"PLUGIN_LOG",dA,wA,hA),meta:{rollupVersion:t,watchMode:uA},warn:od(de,"PLUGIN_WARNING",dA,wA,hA)},cA);yA&&(cA=yA)}return cA}(QA,CA),{options:EA,unsetOptions:nA}=await async function(cA,uA){const lA=new Set,hA=cA.context??"undefined",dA=await qc(cA.plugins),DA=cA.logLevel||ue,wA=yd(dA,Tc(cA,DA),uA,DA),RA=cA.strictDeprecations||!1,GA=Ad(cA),yA={cache:bd(cA),context:hA,experimentalCacheExpiry:cA.experimentalCacheExpiry??10,experimentalLogSideEffects:cA.experimentalLogSideEffects||!1,external:Ed(cA.external),input:xd(cA),jsx:Sd(cA),logLevel:DA,makeAbsoluteExternalsRelative:cA.makeAbsoluteExternalsRelative??"ifRelativeSource",maxParallelFileOps:GA,moduleContext:$d(cA,hA),onLog:wA,perf:cA.perf||!1,plugins:dA,preserveEntrySignatures:cA.preserveEntrySignatures??"exports-only",preserveSymlinks:cA.preserveSymlinks||!1,shimMissingExports:cA.shimMissingExports||!1,strictDeprecations:RA,treeshake:vd(cA)};return jc(cA,[...Object.keys(yA),"onwarn","watch"],"input options",wA,/^(output)$/),{options:yA,unsetOptions:lA}}(oA,CA);return Xd(EA.plugins,Mc),{options:EA,unsetOptions:nA}}(AA,tA!==null);(function(QA){QA.perf?(fl=new Map,El=gl,xl=yl,QA.plugins=QA.plugins.map(Al)):(El=an,xl=an)})(gA),await async function(){await so()}();const IA=new md(gA,tA),BA=AA.cache!==!1;AA.cache&&(gA.cache=void 0,AA.cache=void 0),El("BUILD",1),await gd(IA.pluginDriver,async()=>{try{El("initialize",2),await IA.pluginDriver.hookParallel("buildStart",[gA]),xl("initialize",2),await IA.build()}catch(QA){const CA=Object.keys(IA.watchFiles);throw CA.length>0&&(QA.watchFiles=CA),await IA.pluginDriver.hookParallel("buildEnd",[QA]),await IA.pluginDriver.hookParallel("closeBundle",[]),QA}await IA.pluginDriver.hookParallel("buildEnd",[])}),xl("BUILD",1);const sA={cache:BA?IA.getCache():void 0,async close(){sA.closed||(sA.closed=!0,await IA.pluginDriver.hookParallel("closeBundle",[]))},closed:!1,generate:async QA=>sA.closed?Me({code:"ALREADY_CLOSED",message:'Bundle is already closed, no more calls to "generate" or "write" are allowed.'}):Yd(!1,gA,iA,QA,IA),get watchFiles(){return Object.keys(IA.watchFiles)},write:async QA=>sA.closed?Me({code:"ALREADY_CLOSED",message:'Bundle is already closed, no more calls to "generate" or "write" are allowed.'}):Yd(!0,gA,iA,QA,IA)};return gA.perf&&(sA.getTimings=bl),sA}(eA,null)}function Xd(eA,AA){for(const[tA,gA]of eA.entries())gA.name||(gA.name=`${AA}${tA+1}`)}async function Yd(eA,AA,tA,gA,iA){const{options:IA,outputPluginDriver:BA,unsetOptions:sA}=await async function(QA,CA,oA,EA){if(!QA)throw new Error("You must supply an options object");const nA=await qc(QA.plugins);Xd(nA,Rc);const cA=CA.createOutputPluginDriver(nA);return{...await Zd(oA,EA,QA,cA),outputPluginDriver:cA}}(gA,iA.pluginDriver,AA,tA);return gd(0,async()=>{const QA=new wc(IA,sA,AA,BA,iA),CA=await QA.generate(eA);if(eA){if(El("WRITE",1),!IA.dir&&!IA.file)return Me({code:"MISSING_OPTION",message:'You must specify "output.file" or "output.dir" for the build.',url:xe(ve)});await Promise.all(Object.values(CA).map(EA=>iA.fileOperationQueue.run(()=>async function(nA,cA){const uA=M(cA.dir||C(cA.file),nA.fileName);return await Nc(C(uA),{recursive:!0}),Oc(uA,nA.type==="asset"?nA.source:nA.code)}(EA,IA)))),await BA.hookParallel("writeBundle",[IA,CA]),xl("WRITE",1)}return oA=CA,{output:Object.values(oA).filter(EA=>Object.keys(EA).length>0).sort((EA,nA)=>eu(EA)-eu(nA))};var oA})}function Zd(eA,AA,tA,gA){return async function(iA,IA,BA){const sA=new Set(BA),QA=iA.compact||!1,CA=Cd(iA),oA=Od(iA,IA),EA=Dd(iA,oA,IA),nA=Nd(iA,EA,IA),cA=Vd(iA),uA=zd(iA,IA),lA={amd:Rd(iA),assetFileNames:iA.assetFileNames??"assets/[name]-[hash][extname]",banner:_d(iA,"banner"),chunkFileNames:iA.chunkFileNames??"[name]-[hash].js",compact:QA,dir:Ld(iA,nA),dynamicImportInCjs:iA.dynamicImportInCjs??!0,entryFileNames:Td(iA,sA),esModule:iA.esModule??"if-default-prop",experimentalMinChunkSize:iA.experimentalMinChunkSize??1,exports:Bd(iA,sA),extend:iA.extend||!1,externalImportAssertions:uA,externalImportAttributes:uA,externalLiveBindings:iA.externalLiveBindings??!0,file:nA,footer:_d(iA,"footer"),format:CA,freeze:iA.freeze??!0,generatedCode:cA,globals:iA.globals||{},hashCharacters:iA.hashCharacters??"base64",hoistTransitiveImports:iA.hoistTransitiveImports??!0,importAttributesKey:iA.importAttributesKey??"assert",indent:Fd(iA,QA),inlineDynamicImports:oA,interop:Ud(iA),intro:_d(iA,"intro"),manualChunks:Wd(iA,oA,EA),minifyInternalExports:Hd(iA,CA,QA),name:iA.name,noConflict:iA.noConflict||!1,outro:_d(iA,"outro"),paths:iA.paths||{},plugins:await qc(iA.plugins),preserveModules:EA,preserveModulesRoot:Md(iA),reexportProtoFromExternal:iA.reexportProtoFromExternal??!0,sanitizeFileName:typeof iA.sanitizeFileName=="function"?iA.sanitizeFileName:iA.sanitizeFileName===!1?hA=>hA:kd,sourcemap:iA.sourcemap||!1,sourcemapBaseUrl:Jd(iA),sourcemapExcludeSources:iA.sourcemapExcludeSources||!1,sourcemapFile:iA.sourcemapFile,sourcemapFileNames:qd(iA,sA),sourcemapIgnoreList:typeof iA.sourcemapIgnoreList=="function"?iA.sourcemapIgnoreList:iA.sourcemapIgnoreList===!1?()=>!1:hA=>hA.includes("node_modules"),sourcemapPathTransform:iA.sourcemapPathTransform,strict:iA.strict??!0,systemNullSetters:iA.systemNullSetters??!0,validate:iA.validate||!1,virtualDirname:iA.virtualDirname||"_virtual"};return jc(iA,Object.keys(lA),"output options",IA.onLog),{options:lA,unsetOptions:sA}}(gA.hookReduceArg0Sync("outputOptions",[tA],(iA,IA)=>IA||iA,iA=>{const IA=()=>iA.error({code:"CANNOT_EMIT_FROM_OPTIONS_HOOK",message:'Cannot emit files or set asset sources in the "outputOptions" hook, use the "renderStart" hook instead.'});return{...iA,emitFile:IA,setAssetSource:IA}}),eA,AA)}var Qd;function eu(eA){return eA.type==="asset"?Qd.ASSET:eA.isEntry?Qd.ENTRY_CHUNK:Qd.SECONDARY_CHUNK}(function(eA){eA[eA.ENTRY_CHUNK=0]="ENTRY_CHUNK",eA[eA.SECONDARY_CHUNK=1]="SECONDARY_CHUNK",eA[eA.ASSET=2]="ASSET"})(Qd||(Qd={}));const bundle=async(eA,AA,tA)=>(await(await Kd({input:`${INTERNAL_TAG}/index.js`,plugins:[plugin(eA,AA,tA),plugin$1()],external:IA=>IA.startsWith("svelte")||IA.startsWith("https://"),onwarn:warning})).generate({format:"esm"})).output[0].code;self.addEventListener("message",async eA=>{try{if(eA.data.type=="init"){const AA={host:eA.data.host,cdn_url:eA.data.cdn_url},tA=await service_fetch(AA,concat([header(nil_xit_proto.MessageType.MessageType_FrameRequest),nil_xit_proto.FrameRequest.encode({id:eA.data.id}).finish()]),(gA,iA)=>{if(gA===nil_xit_proto.MessageType.MessageType_FrameResponse){const IA=nil_xit_proto.FrameResponse.decode(iA);if(eA.data.id===IA.id)return IA}});if(tA.value==="content")self.postMessage({ok:!0,code:tA.content});else if(tA.value==="file"&&tA.file!=null){const gA=[],iA=await bundle(AA,ROOT_FILE(tA.file),(IA,BA)=>gA.push({target:IA,metadata:BA}));self.postMessage({ok:!0,code:iA,files:gA})}}}catch(AA){self.postMessage({ok:!1,err:AA})}})})();