@vuebro/runtime 1.1.21 → 1.1.23

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.
@@ -1,135 +0,0 @@
1
- function Wl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Hr=44,Vr=59,$s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",k1=new Uint8Array(64),Wr=new Uint8Array(128);for(let e=0;e<$s.length;e++){const n=$s.charCodeAt(e);k1[e]=n,Wr[n]=e}function ft(e,n,s){let o=n-s;o=o<0?-o<<1|1:o<<1;do{let i=o&31;o>>>=5,o>0&&(i|=32),e.write(k1[i])}while(o>0);return n}var Us=1024*16,Hs=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(e){return Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString()}}:{decode(e){let n="";for(let s=0;s<e.length;s++)n+=String.fromCharCode(e[s]);return n}},Xr=class{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(Us)}write(e){const{buffer:n}=this;n[this.pos++]=e,this.pos===Us&&(this.out+=Hs.decode(n),this.pos=0)}flush(){const{buffer:e,out:n,pos:s}=this;return s>0?n+Hs.decode(e.subarray(0,s)):n}};function Gr(e){const n=new Xr;let s=0,o=0,i=0,c=0;for(let h=0;h<e.length;h++){const m=e[h];if(h>0&&n.write(Vr),m.length===0)continue;let g=0;for(let f=0;f<m.length;f++){const y=m[f];f>0&&n.write(Hr),g=ft(n,y[0],g),y.length!==1&&(s=ft(n,y[1],s),o=ft(n,y[2],o),i=ft(n,y[3],i),y.length!==4&&(c=ft(n,y[4],c)))}}return n.flush()}var l;(function(e){e[e.NONE=0]="NONE";const s=1;e[e._abstract=s]="_abstract";const o=s+1;e[e._accessor=o]="_accessor";const i=o+1;e[e._as=i]="_as";const c=i+1;e[e._assert=c]="_assert";const h=c+1;e[e._asserts=h]="_asserts";const m=h+1;e[e._async=m]="_async";const g=m+1;e[e._await=g]="_await";const f=g+1;e[e._checks=f]="_checks";const y=f+1;e[e._constructor=y]="_constructor";const T=y+1;e[e._declare=T]="_declare";const S=T+1;e[e._enum=S]="_enum";const C=S+1;e[e._exports=C]="_exports";const $=C+1;e[e._from=$]="_from";const V=$+1;e[e._get=V]="_get";const re=V+1;e[e._global=re]="_global";const ie=re+1;e[e._implements=ie]="_implements";const N=ie+1;e[e._infer=N]="_infer";const O=N+1;e[e._interface=O]="_interface";const R=O+1;e[e._is=R]="_is";const Y=R+1;e[e._keyof=Y]="_keyof";const te=Y+1;e[e._mixins=te]="_mixins";const X=te+1;e[e._module=X]="_module";const ae=X+1;e[e._namespace=ae]="_namespace";const de=ae+1;e[e._of=de]="_of";const he=de+1;e[e._opaque=he]="_opaque";const pe=he+1;e[e._out=pe]="_out";const ve=pe+1;e[e._override=ve]="_override";const Be=ve+1;e[e._private=Be]="_private";const De=Be+1;e[e._protected=De]="_protected";const $e=De+1;e[e._proto=$e]="_proto";const Oe=$e+1;e[e._public=Oe]="_public";const Fe=Oe+1;e[e._readonly=Fe]="_readonly";const ee=Fe+1;e[e._require=ee]="_require";const Ue=ee+1;e[e._satisfies=Ue]="_satisfies";const je=Ue+1;e[e._set=je]="_set";const He=je+1;e[e._static=He]="_static";const Ne=He+1;e[e._symbol=Ne]="_symbol";const qe=Ne+1;e[e._type=qe]="_type";const Ve=qe+1;e[e._unique=Ve]="_unique";const _=Ve+1;e[e._using=_]="_using"})(l||(l={}));var t;(function(e){e[e.PRECEDENCE_MASK=15]="PRECEDENCE_MASK";const s=16;e[e.IS_KEYWORD=s]="IS_KEYWORD";const o=32;e[e.IS_ASSIGN=o]="IS_ASSIGN";const i=64;e[e.IS_RIGHT_ASSOCIATIVE=i]="IS_RIGHT_ASSOCIATIVE";const c=128;e[e.IS_PREFIX=c]="IS_PREFIX";const h=256;e[e.IS_POSTFIX=h]="IS_POSTFIX";const m=512;e[e.IS_EXPRESSION_START=m]="IS_EXPRESSION_START";const g=512;e[e.num=g]="num";const f=1536;e[e.bigint=f]="bigint";const y=2560;e[e.decimal=y]="decimal";const T=3584;e[e.regexp=T]="regexp";const S=4608;e[e.string=S]="string";const C=5632;e[e.name=C]="name";const $=6144;e[e.eof=$]="eof";const V=7680;e[e.bracketL=V]="bracketL";const re=8192;e[e.bracketR=re]="bracketR";const ie=9728;e[e.braceL=ie]="braceL";const N=10752;e[e.braceBarL=N]="braceBarL";const O=11264;e[e.braceR=O]="braceR";const R=12288;e[e.braceBarR=R]="braceBarR";const Y=13824;e[e.parenL=Y]="parenL";const te=14336;e[e.parenR=te]="parenR";const X=15360;e[e.comma=X]="comma";const ae=16384;e[e.semi=ae]="semi";const de=17408;e[e.colon=de]="colon";const he=18432;e[e.doubleColon=he]="doubleColon";const pe=19456;e[e.dot=pe]="dot";const ve=20480;e[e.question=ve]="question";const Be=21504;e[e.questionDot=Be]="questionDot";const De=22528;e[e.arrow=De]="arrow";const $e=23552;e[e.template=$e]="template";const Oe=24576;e[e.ellipsis=Oe]="ellipsis";const Fe=25600;e[e.backQuote=Fe]="backQuote";const ee=27136;e[e.dollarBraceL=ee]="dollarBraceL";const Ue=27648;e[e.at=Ue]="at";const je=29184;e[e.hash=je]="hash";const He=29728;e[e.eq=He]="eq";const Ne=30752;e[e.assign=Ne]="assign";const qe=32640;e[e.preIncDec=qe]="preIncDec";const Ve=33664;e[e.postIncDec=Ve]="postIncDec";const _=34432;e[e.bang=_]="bang";const x=35456;e[e.tilde=x]="tilde";const I=35841;e[e.pipeline=I]="pipeline";const w=36866;e[e.nullishCoalescing=w]="nullishCoalescing";const A=37890;e[e.logicalOR=A]="logicalOR";const L=38915;e[e.logicalAND=L]="logicalAND";const D=39940;e[e.bitwiseOR=D]="bitwiseOR";const U=40965;e[e.bitwiseXOR=U]="bitwiseXOR";const Q=41990;e[e.bitwiseAND=Q]="bitwiseAND";const z=43015;e[e.equality=z]="equality";const ce=44040;e[e.lessThan=ce]="lessThan";const _e=45064;e[e.greaterThan=_e]="greaterThan";const ne=46088;e[e.relationalOrEqual=ne]="relationalOrEqual";const fe=47113;e[e.bitShiftL=fe]="bitShiftL";const me=48137;e[e.bitShiftR=me]="bitShiftR";const Qe=49802;e[e.plus=Qe]="plus";const ot=50826;e[e.minus=ot]="minus";const pt=51723;e[e.modulo=pt]="modulo";const nn=52235;e[e.star=nn]="star";const sn=53259;e[e.slash=sn]="slash";const rn=54348;e[e.exponent=rn]="exponent";const on=55296;e[e.jsxName=on]="jsxName";const an=56320;e[e.jsxText=an]="jsxText";const cn=57344;e[e.jsxEmptyText=cn]="jsxEmptyText";const ln=58880;e[e.jsxTagStart=ln]="jsxTagStart";const un=59392;e[e.jsxTagEnd=un]="jsxTagEnd";const hn=60928;e[e.typeParameterStart=hn]="typeParameterStart";const pn=61440;e[e.nonNullAssertion=pn]="nonNullAssertion";const fn=62480;e[e._break=fn]="_break";const mn=63504;e[e._case=mn]="_case";const dn=64528;e[e._catch=dn]="_catch";const kn=65552;e[e._continue=kn]="_continue";const gn=66576;e[e._debugger=gn]="_debugger";const _n=67600;e[e._default=_n]="_default";const xn=68624;e[e._do=xn]="_do";const yn=69648;e[e._else=yn]="_else";const In=70672;e[e._finally=In]="_finally";const bn=71696;e[e._for=bn]="_for";const wn=73232;e[e._function=wn]="_function";const Tn=73744;e[e._if=Tn]="_if";const An=74768;e[e._return=An]="_return";const En=75792;e[e._switch=En]="_switch";const Sn=77456;e[e._throw=Sn]="_throw";const vn=77840;e[e._try=vn]="_try";const Nn=78864;e[e._var=Nn]="_var";const Cn=79888;e[e._let=Cn]="_let";const Pn=80912;e[e._const=Pn]="_const";const Rn=81936;e[e._while=Rn]="_while";const Ln=82960;e[e._with=Ln]="_with";const Dn=84496;e[e._new=Dn]="_new";const On=85520;e[e._this=On]="_this";const Fn=86544;e[e._super=Fn]="_super";const jn=87568;e[e._class=jn]="_class";const qn=88080;e[e._extends=qn]="_extends";const Mn=89104;e[e._export=Mn]="_export";const Bn=90640;e[e._import=Bn]="_import";const $n=91664;e[e._yield=$n]="_yield";const Un=92688;e[e._null=Un]="_null";const Hn=93712;e[e._true=Hn]="_true";const Vn=94736;e[e._false=Vn]="_false";const Wn=95256;e[e._in=Wn]="_in";const Xn=96280;e[e._instanceof=Xn]="_instanceof";const Gn=97936;e[e._typeof=Gn]="_typeof";const zn=98960;e[e._void=zn]="_void";const Sr=99984;e[e._delete=Sr]="_delete";const vr=100880;e[e._async=vr]="_async";const Nr=101904;e[e._get=Nr]="_get";const Cr=102928;e[e._set=Cr]="_set";const Pr=103952;e[e._declare=Pr]="_declare";const Rr=104976;e[e._readonly=Rr]="_readonly";const Lr=106e3;e[e._abstract=Lr]="_abstract";const Dr=107024;e[e._static=Dr]="_static";const Or=107536;e[e._public=Or]="_public";const Fr=108560;e[e._private=Fr]="_private";const jr=109584;e[e._protected=jr]="_protected";const qr=110608;e[e._override=qr]="_override";const Mr=112144;e[e._as=Mr]="_as";const Br=113168;e[e._enum=Br]="_enum";const $r=114192;e[e._type=$r]="_type";const Ur=115216;e[e._implements=Ur]="_implements"})(t||(t={}));function zr(e){switch(e){case t.num:return"num";case t.bigint:return"bigint";case t.decimal:return"decimal";case t.regexp:return"regexp";case t.string:return"string";case t.name:return"name";case t.eof:return"eof";case t.bracketL:return"[";case t.bracketR:return"]";case t.braceL:return"{";case t.braceBarL:return"{|";case t.braceR:return"}";case t.braceBarR:return"|}";case t.parenL:return"(";case t.parenR:return")";case t.comma:return",";case t.semi:return";";case t.colon:return":";case t.doubleColon:return"::";case t.dot:return".";case t.question:return"?";case t.questionDot:return"?.";case t.arrow:return"=>";case t.template:return"template";case t.ellipsis:return"...";case t.backQuote:return"`";case t.dollarBraceL:return"${";case t.at:return"@";case t.hash:return"#";case t.eq:return"=";case t.assign:return"_=";case t.preIncDec:return"++/--";case t.postIncDec:return"++/--";case t.bang:return"!";case t.tilde:return"~";case t.pipeline:return"|>";case t.nullishCoalescing:return"??";case t.logicalOR:return"||";case t.logicalAND:return"&&";case t.bitwiseOR:return"|";case t.bitwiseXOR:return"^";case t.bitwiseAND:return"&";case t.equality:return"==/!=";case t.lessThan:return"<";case t.greaterThan:return">";case t.relationalOrEqual:return"<=/>=";case t.bitShiftL:return"<<";case t.bitShiftR:return">>/>>>";case t.plus:return"+";case t.minus:return"-";case t.modulo:return"%";case t.star:return"*";case t.slash:return"/";case t.exponent:return"**";case t.jsxName:return"jsxName";case t.jsxText:return"jsxText";case t.jsxEmptyText:return"jsxEmptyText";case t.jsxTagStart:return"jsxTagStart";case t.jsxTagEnd:return"jsxTagEnd";case t.typeParameterStart:return"typeParameterStart";case t.nonNullAssertion:return"nonNullAssertion";case t._break:return"break";case t._case:return"case";case t._catch:return"catch";case t._continue:return"continue";case t._debugger:return"debugger";case t._default:return"default";case t._do:return"do";case t._else:return"else";case t._finally:return"finally";case t._for:return"for";case t._function:return"function";case t._if:return"if";case t._return:return"return";case t._switch:return"switch";case t._throw:return"throw";case t._try:return"try";case t._var:return"var";case t._let:return"let";case t._const:return"const";case t._while:return"while";case t._with:return"with";case t._new:return"new";case t._this:return"this";case t._super:return"super";case t._class:return"class";case t._extends:return"extends";case t._export:return"export";case t._import:return"import";case t._yield:return"yield";case t._null:return"null";case t._true:return"true";case t._false:return"false";case t._in:return"in";case t._instanceof:return"instanceof";case t._typeof:return"typeof";case t._void:return"void";case t._delete:return"delete";case t._async:return"async";case t._get:return"get";case t._set:return"set";case t._declare:return"declare";case t._readonly:return"readonly";case t._abstract:return"abstract";case t._static:return"static";case t._public:return"public";case t._private:return"private";case t._protected:return"protected";case t._override:return"override";case t._as:return"as";case t._enum:return"enum";case t._type:return"type";case t._implements:return"implements";default:return""}}class Re{constructor(n,s,o){this.startTokenIndex=n,this.endTokenIndex=s,this.isFunctionScope=o}}class Jr{constructor(n,s,o,i,c,h,m,g,f,y,T,S,C){this.potentialArrowAt=n,this.noAnonFunctionType=s,this.inDisallowConditionalTypesContext=o,this.tokensLength=i,this.scopesLength=c,this.pos=h,this.type=m,this.contextualKeyword=g,this.start=f,this.end=y,this.isType=T,this.scopeDepth=S,this.error=C}}class ke{constructor(){ke.prototype.__init.call(this),ke.prototype.__init2.call(this),ke.prototype.__init3.call(this),ke.prototype.__init4.call(this),ke.prototype.__init5.call(this),ke.prototype.__init6.call(this),ke.prototype.__init7.call(this),ke.prototype.__init8.call(this),ke.prototype.__init9.call(this),ke.prototype.__init10.call(this),ke.prototype.__init11.call(this),ke.prototype.__init12.call(this),ke.prototype.__init13.call(this)}__init(){this.potentialArrowAt=-1}__init2(){this.noAnonFunctionType=!1}__init3(){this.inDisallowConditionalTypesContext=!1}__init4(){this.tokens=[]}__init5(){this.scopes=[]}__init6(){this.pos=0}__init7(){this.type=t.eof}__init8(){this.contextualKeyword=l.NONE}__init9(){this.start=0}__init10(){this.end=0}__init11(){this.isType=!1}__init12(){this.scopeDepth=0}__init13(){this.error=null}snapshot(){return new Jr(this.potentialArrowAt,this.noAnonFunctionType,this.inDisallowConditionalTypesContext,this.tokens.length,this.scopes.length,this.pos,this.type,this.contextualKeyword,this.start,this.end,this.isType,this.scopeDepth,this.error)}restoreFromSnapshot(n){this.potentialArrowAt=n.potentialArrowAt,this.noAnonFunctionType=n.noAnonFunctionType,this.inDisallowConditionalTypesContext=n.inDisallowConditionalTypesContext,this.tokens.length=n.tokensLength,this.scopes.length=n.scopesLength,this.pos=n.pos,this.type=n.type,this.contextualKeyword=n.contextualKeyword,this.start=n.start,this.end=n.end,this.isType=n.isType,this.scopeDepth=n.scopeDepth,this.error=n.error}}var u;(function(e){e[e.backSpace=8]="backSpace";const s=10;e[e.lineFeed=s]="lineFeed";const o=9;e[e.tab=o]="tab";const i=13;e[e.carriageReturn=i]="carriageReturn";const c=14;e[e.shiftOut=c]="shiftOut";const h=32;e[e.space=h]="space";const m=33;e[e.exclamationMark=m]="exclamationMark";const g=34;e[e.quotationMark=g]="quotationMark";const f=35;e[e.numberSign=f]="numberSign";const y=36;e[e.dollarSign=y]="dollarSign";const T=37;e[e.percentSign=T]="percentSign";const S=38;e[e.ampersand=S]="ampersand";const C=39;e[e.apostrophe=C]="apostrophe";const $=40;e[e.leftParenthesis=$]="leftParenthesis";const V=41;e[e.rightParenthesis=V]="rightParenthesis";const re=42;e[e.asterisk=re]="asterisk";const ie=43;e[e.plusSign=ie]="plusSign";const N=44;e[e.comma=N]="comma";const O=45;e[e.dash=O]="dash";const R=46;e[e.dot=R]="dot";const Y=47;e[e.slash=Y]="slash";const te=48;e[e.digit0=te]="digit0";const X=49;e[e.digit1=X]="digit1";const ae=50;e[e.digit2=ae]="digit2";const de=51;e[e.digit3=de]="digit3";const he=52;e[e.digit4=he]="digit4";const pe=53;e[e.digit5=pe]="digit5";const ve=54;e[e.digit6=ve]="digit6";const Be=55;e[e.digit7=Be]="digit7";const De=56;e[e.digit8=De]="digit8";const $e=57;e[e.digit9=$e]="digit9";const Oe=58;e[e.colon=Oe]="colon";const Fe=59;e[e.semicolon=Fe]="semicolon";const ee=60;e[e.lessThan=ee]="lessThan";const Ue=61;e[e.equalsTo=Ue]="equalsTo";const je=62;e[e.greaterThan=je]="greaterThan";const He=63;e[e.questionMark=He]="questionMark";const Ne=64;e[e.atSign=Ne]="atSign";const qe=65;e[e.uppercaseA=qe]="uppercaseA";const Ve=66;e[e.uppercaseB=Ve]="uppercaseB";const _=67;e[e.uppercaseC=_]="uppercaseC";const x=68;e[e.uppercaseD=x]="uppercaseD";const I=69;e[e.uppercaseE=I]="uppercaseE";const w=70;e[e.uppercaseF=w]="uppercaseF";const A=71;e[e.uppercaseG=A]="uppercaseG";const L=72;e[e.uppercaseH=L]="uppercaseH";const D=73;e[e.uppercaseI=D]="uppercaseI";const U=74;e[e.uppercaseJ=U]="uppercaseJ";const Q=75;e[e.uppercaseK=Q]="uppercaseK";const z=76;e[e.uppercaseL=z]="uppercaseL";const ce=77;e[e.uppercaseM=ce]="uppercaseM";const _e=78;e[e.uppercaseN=_e]="uppercaseN";const ne=79;e[e.uppercaseO=ne]="uppercaseO";const fe=80;e[e.uppercaseP=fe]="uppercaseP";const me=81;e[e.uppercaseQ=me]="uppercaseQ";const Qe=82;e[e.uppercaseR=Qe]="uppercaseR";const ot=83;e[e.uppercaseS=ot]="uppercaseS";const pt=84;e[e.uppercaseT=pt]="uppercaseT";const nn=85;e[e.uppercaseU=nn]="uppercaseU";const sn=86;e[e.uppercaseV=sn]="uppercaseV";const rn=87;e[e.uppercaseW=rn]="uppercaseW";const on=88;e[e.uppercaseX=on]="uppercaseX";const an=89;e[e.uppercaseY=an]="uppercaseY";const cn=90;e[e.uppercaseZ=cn]="uppercaseZ";const ln=91;e[e.leftSquareBracket=ln]="leftSquareBracket";const un=92;e[e.backslash=un]="backslash";const hn=93;e[e.rightSquareBracket=hn]="rightSquareBracket";const pn=94;e[e.caret=pn]="caret";const fn=95;e[e.underscore=fn]="underscore";const mn=96;e[e.graveAccent=mn]="graveAccent";const dn=97;e[e.lowercaseA=dn]="lowercaseA";const kn=98;e[e.lowercaseB=kn]="lowercaseB";const gn=99;e[e.lowercaseC=gn]="lowercaseC";const _n=100;e[e.lowercaseD=_n]="lowercaseD";const xn=101;e[e.lowercaseE=xn]="lowercaseE";const yn=102;e[e.lowercaseF=yn]="lowercaseF";const In=103;e[e.lowercaseG=In]="lowercaseG";const bn=104;e[e.lowercaseH=bn]="lowercaseH";const wn=105;e[e.lowercaseI=wn]="lowercaseI";const Tn=106;e[e.lowercaseJ=Tn]="lowercaseJ";const An=107;e[e.lowercaseK=An]="lowercaseK";const En=108;e[e.lowercaseL=En]="lowercaseL";const Sn=109;e[e.lowercaseM=Sn]="lowercaseM";const vn=110;e[e.lowercaseN=vn]="lowercaseN";const Nn=111;e[e.lowercaseO=Nn]="lowercaseO";const Cn=112;e[e.lowercaseP=Cn]="lowercaseP";const Pn=113;e[e.lowercaseQ=Pn]="lowercaseQ";const Rn=114;e[e.lowercaseR=Rn]="lowercaseR";const Ln=115;e[e.lowercaseS=Ln]="lowercaseS";const Dn=116;e[e.lowercaseT=Dn]="lowercaseT";const On=117;e[e.lowercaseU=On]="lowercaseU";const Fn=118;e[e.lowercaseV=Fn]="lowercaseV";const jn=119;e[e.lowercaseW=jn]="lowercaseW";const qn=120;e[e.lowercaseX=qn]="lowercaseX";const Mn=121;e[e.lowercaseY=Mn]="lowercaseY";const Bn=122;e[e.lowercaseZ=Bn]="lowercaseZ";const $n=123;e[e.leftCurlyBrace=$n]="leftCurlyBrace";const Un=124;e[e.verticalBar=Un]="verticalBar";const Hn=125;e[e.rightCurlyBrace=Hn]="rightCurlyBrace";const Vn=126;e[e.tilde=Vn]="tilde";const Wn=160;e[e.nonBreakingSpace=Wn]="nonBreakingSpace";const Xn=5760;e[e.oghamSpaceMark=Xn]="oghamSpaceMark";const Gn=8232;e[e.lineSeparator=Gn]="lineSeparator";const zn=8233;e[e.paragraphSeparator=zn]="paragraphSeparator"})(u||(u={}));let zt,B,H,r,b,g1;function yt(){return g1++}function Qr(e){if("pos"in e){const n=Zr(e.pos);e.message+=` (${n.line}:${n.column})`,e.loc=n}return e}class Yr{constructor(n,s){this.line=n,this.column=s}}function Zr(e){let n=1,s=1;for(let o=0;o<e;o++)b.charCodeAt(o)===u.lineFeed?(n++,s=1):s++;return new Yr(n,s)}function Kr(e,n,s,o){b=e,r=new ke,g1=1,zt=n,B=s,H=o}function E(e){return r.contextualKeyword===e}function fs(e){const n=St();return n.type===t.name&&n.contextualKeyword===e}function oe(e){return r.contextualKeyword===e&&p(t.name)}function se(e){oe(e)||j()}function ye(){return a(t.eof)||a(t.braceR)||ge()}function ge(){const e=r.tokens[r.tokens.length-1],n=e?e.end:0;for(let s=n;s<r.start;s++){const o=b.charCodeAt(s);if(o===u.lineFeed||o===u.carriageReturn||o===8232||o===8233)return!0}return!1}function _1(){const e=ms();for(let n=r.end;n<e;n++){const s=b.charCodeAt(n);if(s===u.lineFeed||s===u.carriageReturn||s===8232||s===8233)return!0}return!1}function Ce(){return p(t.semi)||ye()}function J(){Ce()||j('Unexpected token, expected ";"')}function d(e){p(e)||j(`Unexpected token, expected "${zr(e)}"`)}function j(e="Unexpected token",n=r.start){if(r.error)return;const s=new SyntaxError(e);s.pos=n,r.error=s,r.pos=b.length,F(t.eof)}const x1=[9,11,12,u.space,u.nonBreakingSpace,u.oghamSpaceMark,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279],Vs=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,y1=new Uint8Array(65536);for(const e of x1)y1[e]=1;function eo(e){if(e<48)return e===36;if(e<58)return!0;if(e<65)return!1;if(e<91)return!0;if(e<97)return e===95;if(e<123)return!0;if(e<128)return!1;throw new Error("Should not be called with non-ASCII char code.")}const Ae=new Uint8Array(65536);for(let e=0;e<128;e++)Ae[e]=eo(e)?1:0;for(let e=128;e<65536;e++)Ae[e]=1;for(const e of x1)Ae[e]=0;Ae[8232]=0;Ae[8233]=0;const Et=Ae.slice();for(let e=u.digit0;e<=u.digit9;e++)Et[e]=0;const Ws=new Int32Array([-1,27,783,918,1755,2376,2862,3483,-1,3699,-1,4617,4752,4833,5130,5508,5940,-1,6480,6939,7749,8181,8451,8613,-1,8829,-1,-1,-1,54,243,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,432,-1,-1,-1,675,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,81,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,108,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,135,-1,-1,-1,-1,-1,-1,-1,-1,-1,162,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,189,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1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1,8910,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8937,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(t._yield<<1)+1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1]);function to(){let e=0,n=0,s=r.pos;for(;s<b.length&&(n=b.charCodeAt(s),!(n<u.lowercaseA||n>u.lowercaseZ));){const i=Ws[e+(n-u.lowercaseA)+1];if(i===-1)break;e=i,s++}const o=Ws[e];if(o>-1&&!Ae[n]){r.pos=s,o&1?F(o>>>1):F(t.name,o>>>1);return}for(;s<b.length;){const i=b.charCodeAt(s);if(Ae[i])s++;else if(i===u.backslash){if(s+=2,b.charCodeAt(s)===u.leftCurlyBrace){for(;s<b.length&&b.charCodeAt(s)!==u.rightCurlyBrace;)s++;s++}}else if(i===u.atSign&&b.charCodeAt(s+1)===u.atSign)s+=2;else break}r.pos=s,F(t.name)}var v;(function(e){e[e.Access=0]="Access";const s=1;e[e.ExportAccess=s]="ExportAccess";const o=s+1;e[e.TopLevelDeclaration=o]="TopLevelDeclaration";const i=o+1;e[e.FunctionScopedDeclaration=i]="FunctionScopedDeclaration";const c=i+1;e[e.BlockScopedDeclaration=c]="BlockScopedDeclaration";const h=c+1;e[e.ObjectShorthandTopLevelDeclaration=h]="ObjectShorthandTopLevelDeclaration";const m=h+1;e[e.ObjectShorthandFunctionScopedDeclaration=m]="ObjectShorthandFunctionScopedDeclaration";const g=m+1;e[e.ObjectShorthandBlockScopedDeclaration=g]="ObjectShorthandBlockScopedDeclaration";const f=g+1;e[e.ObjectShorthand=f]="ObjectShorthand";const y=f+1;e[e.ImportDeclaration=y]="ImportDeclaration";const T=y+1;e[e.ObjectKey=T]="ObjectKey";const S=T+1;e[e.ImportAccess=S]="ImportAccess"})(v||(v={}));var Te;(function(e){e[e.NoChildren=0]="NoChildren";const s=1;e[e.OneChild=s]="OneChild";const o=s+1;e[e.StaticChildren=o]="StaticChildren";const i=o+1;e[e.KeyAfterPropSpread=i]="KeyAfterPropSpread"})(Te||(Te={}));function I1(e){const n=e.identifierRole;return n===v.TopLevelDeclaration||n===v.FunctionScopedDeclaration||n===v.BlockScopedDeclaration||n===v.ObjectShorthandTopLevelDeclaration||n===v.ObjectShorthandFunctionScopedDeclaration||n===v.ObjectShorthandBlockScopedDeclaration}function no(e){const n=e.identifierRole;return n===v.FunctionScopedDeclaration||n===v.BlockScopedDeclaration||n===v.ObjectShorthandFunctionScopedDeclaration||n===v.ObjectShorthandBlockScopedDeclaration}function b1(e){const n=e.identifierRole;return n===v.TopLevelDeclaration||n===v.ObjectShorthandTopLevelDeclaration||n===v.ImportDeclaration}function so(e){const n=e.identifierRole;return n===v.TopLevelDeclaration||n===v.BlockScopedDeclaration||n===v.ObjectShorthandTopLevelDeclaration||n===v.ObjectShorthandBlockScopedDeclaration}function ro(e){const n=e.identifierRole;return n===v.FunctionScopedDeclaration||n===v.ObjectShorthandFunctionScopedDeclaration}function oo(e){return e.identifierRole===v.ObjectShorthandTopLevelDeclaration||e.identifierRole===v.ObjectShorthandBlockScopedDeclaration||e.identifierRole===v.ObjectShorthandFunctionScopedDeclaration}class Jt{constructor(){this.type=r.type,this.contextualKeyword=r.contextualKeyword,this.start=r.start,this.end=r.end,this.scopeDepth=r.scopeDepth,this.isType=r.isType,this.identifierRole=null,this.jsxRole=null,this.shadowsGlobal=!1,this.isAsyncOperation=!1,this.contextId=null,this.rhsEndIndex=null,this.isExpression=!1,this.numNullishCoalesceStarts=0,this.numNullishCoalesceEnds=0,this.isOptionalChainStart=!1,this.isOptionalChainEnd=!1,this.subscriptStartIndex=null,this.nullishStartIndex=null}}function k(){r.tokens.push(new Jt),E1()}function We(){r.tokens.push(new Jt),r.start=r.pos,wo()}function io(){r.type===t.assign&&--r.pos,yo()}function M(e){for(let s=r.tokens.length-e;s<r.tokens.length;s++)r.tokens[s].isType=!0;const n=r.isType;return r.isType=!0,n}function q(e){r.isType=e}function p(e){return a(e)?(k(),!0):!1}function w1(e){const n=r.isType;r.isType=!0,p(e),r.isType=n}function a(e){return r.type===e}function Z(){const e=r.snapshot();k();const n=r.type;return r.restoreFromSnapshot(e),n}class ao{constructor(n,s){this.type=n,this.contextualKeyword=s}}function St(){const e=r.snapshot();k();const n=r.type,s=r.contextualKeyword;return r.restoreFromSnapshot(e),new ao(n,s)}function ms(){return T1(r.pos)}function T1(e){Vs.lastIndex=e;const n=Vs.exec(b);return e+n[0].length}function A1(){return b.charCodeAt(ms())}function E1(){if(v1(),r.start=r.pos,r.pos>=b.length){const e=r.tokens;e.length>=2&&e[e.length-1].start>=b.length&&e[e.length-2].start>=b.length&&j("Unexpectedly reached the end of input."),F(t.eof);return}co(b.charCodeAt(r.pos))}function co(e){Et[e]||e===u.backslash||e===u.atSign&&b.charCodeAt(r.pos+1)===u.atSign?to():P1(e)}function lo(){for(;b.charCodeAt(r.pos)!==u.asterisk||b.charCodeAt(r.pos+1)!==u.slash;)if(r.pos++,r.pos>b.length){j("Unterminated comment",r.pos-2);return}r.pos+=2}function S1(e){let n=b.charCodeAt(r.pos+=e);if(r.pos<b.length)for(;n!==u.lineFeed&&n!==u.carriageReturn&&n!==u.lineSeparator&&n!==u.paragraphSeparator&&++r.pos<b.length;)n=b.charCodeAt(r.pos)}function v1(){for(;r.pos<b.length;){const e=b.charCodeAt(r.pos);switch(e){case u.carriageReturn:b.charCodeAt(r.pos+1)===u.lineFeed&&++r.pos;case u.lineFeed:case u.lineSeparator:case u.paragraphSeparator:++r.pos;break;case u.slash:switch(b.charCodeAt(r.pos+1)){case u.asterisk:r.pos+=2,lo();break;case u.slash:S1(2);break;default:return}break;default:if(y1[e])++r.pos;else return}}}function F(e,n=l.NONE){r.end=r.pos,r.type=e,r.contextualKeyword=n}function uo(){const e=b.charCodeAt(r.pos+1);if(e>=u.digit0&&e<=u.digit9){R1(!0);return}e===u.dot&&b.charCodeAt(r.pos+2)===u.dot?(r.pos+=3,F(t.ellipsis)):(++r.pos,F(t.dot))}function ho(){b.charCodeAt(r.pos+1)===u.equalsTo?W(t.assign,2):W(t.slash,1)}function po(e){let n=e===u.asterisk?t.star:t.modulo,s=1,o=b.charCodeAt(r.pos+1);e===u.asterisk&&o===u.asterisk&&(s++,o=b.charCodeAt(r.pos+2),n=t.exponent),o===u.equalsTo&&b.charCodeAt(r.pos+2)!==u.greaterThan&&(s++,n=t.assign),W(n,s)}function fo(e){const n=b.charCodeAt(r.pos+1);if(n===e){b.charCodeAt(r.pos+2)===u.equalsTo?W(t.assign,3):W(e===u.verticalBar?t.logicalOR:t.logicalAND,2);return}if(e===u.verticalBar){if(n===u.greaterThan){W(t.pipeline,2);return}else if(n===u.rightCurlyBrace&&H){W(t.braceBarR,2);return}}if(n===u.equalsTo){W(t.assign,2);return}W(e===u.verticalBar?t.bitwiseOR:t.bitwiseAND,1)}function mo(){b.charCodeAt(r.pos+1)===u.equalsTo?W(t.assign,2):W(t.bitwiseXOR,1)}function ko(e){const n=b.charCodeAt(r.pos+1);if(n===e){W(t.preIncDec,2);return}n===u.equalsTo?W(t.assign,2):e===u.plusSign?W(t.plus,1):W(t.minus,1)}function go(){const e=b.charCodeAt(r.pos+1);if(e===u.lessThan){if(b.charCodeAt(r.pos+2)===u.equalsTo){W(t.assign,3);return}r.isType?W(t.lessThan,1):W(t.bitShiftL,2);return}e===u.equalsTo?W(t.relationalOrEqual,2):W(t.lessThan,1)}function N1(){if(r.isType){W(t.greaterThan,1);return}const e=b.charCodeAt(r.pos+1);if(e===u.greaterThan){const n=b.charCodeAt(r.pos+2)===u.greaterThan?3:2;if(b.charCodeAt(r.pos+n)===u.equalsTo){W(t.assign,n+1);return}W(t.bitShiftR,n);return}e===u.equalsTo?W(t.relationalOrEqual,2):W(t.greaterThan,1)}function C1(){r.type===t.greaterThan&&(r.pos-=1,N1())}function _o(e){const n=b.charCodeAt(r.pos+1);if(n===u.equalsTo){W(t.equality,b.charCodeAt(r.pos+2)===u.equalsTo?3:2);return}if(e===u.equalsTo&&n===u.greaterThan){r.pos+=2,F(t.arrow);return}W(e===u.equalsTo?t.eq:t.bang,1)}function xo(){const e=b.charCodeAt(r.pos+1),n=b.charCodeAt(r.pos+2);e===u.questionMark&&!(H&&r.isType)?n===u.equalsTo?W(t.assign,3):W(t.nullishCoalescing,2):e===u.dot&&!(n>=u.digit0&&n<=u.digit9)?(r.pos+=2,F(t.questionDot)):(++r.pos,F(t.question))}function P1(e){switch(e){case u.numberSign:++r.pos,F(t.hash);return;case u.dot:uo();return;case u.leftParenthesis:++r.pos,F(t.parenL);return;case u.rightParenthesis:++r.pos,F(t.parenR);return;case u.semicolon:++r.pos,F(t.semi);return;case u.comma:++r.pos,F(t.comma);return;case u.leftSquareBracket:++r.pos,F(t.bracketL);return;case u.rightSquareBracket:++r.pos,F(t.bracketR);return;case u.leftCurlyBrace:H&&b.charCodeAt(r.pos+1)===u.verticalBar?W(t.braceBarL,2):(++r.pos,F(t.braceL));return;case u.rightCurlyBrace:++r.pos,F(t.braceR);return;case u.colon:b.charCodeAt(r.pos+1)===u.colon?W(t.doubleColon,2):(++r.pos,F(t.colon));return;case u.questionMark:xo();return;case u.atSign:++r.pos,F(t.at);return;case u.graveAccent:++r.pos,F(t.backQuote);return;case u.digit0:{const n=b.charCodeAt(r.pos+1);if(n===u.lowercaseX||n===u.uppercaseX||n===u.lowercaseO||n===u.uppercaseO||n===u.lowercaseB||n===u.uppercaseB){Io();return}}case u.digit1:case u.digit2:case u.digit3:case u.digit4:case u.digit5:case u.digit6:case u.digit7:case u.digit8:case u.digit9:R1(!1);return;case u.quotationMark:case u.apostrophe:bo(e);return;case u.slash:ho();return;case u.percentSign:case u.asterisk:po(e);return;case u.verticalBar:case u.ampersand:fo(e);return;case u.caret:mo();return;case u.plusSign:case u.dash:ko(e);return;case u.lessThan:go();return;case u.greaterThan:N1();return;case u.equalsTo:case u.exclamationMark:_o(e);return;case u.tilde:W(t.tilde,1);return}j(`Unexpected character '${String.fromCharCode(e)}'`,r.pos)}function W(e,n){r.pos+=n,F(e)}function yo(){const e=r.pos;let n=!1,s=!1;for(;;){if(r.pos>=b.length){j("Unterminated regular expression",e);return}const o=b.charCodeAt(r.pos);if(n)n=!1;else{if(o===u.leftSquareBracket)s=!0;else if(o===u.rightSquareBracket&&s)s=!1;else if(o===u.slash&&!s)break;n=o===u.backslash}++r.pos}++r.pos,To(),F(t.regexp)}function Jn(){for(;;){const e=b.charCodeAt(r.pos);if(e>=u.digit0&&e<=u.digit9||e===u.underscore)r.pos++;else break}}function Io(){for(r.pos+=2;;){const n=b.charCodeAt(r.pos);if(n>=u.digit0&&n<=u.digit9||n>=u.lowercaseA&&n<=u.lowercaseF||n>=u.uppercaseA&&n<=u.uppercaseF||n===u.underscore)r.pos++;else break}b.charCodeAt(r.pos)===u.lowercaseN?(++r.pos,F(t.bigint)):F(t.num)}function R1(e){let n=!1,s=!1;e||Jn();let o=b.charCodeAt(r.pos);if(o===u.dot&&(++r.pos,Jn(),o=b.charCodeAt(r.pos)),(o===u.uppercaseE||o===u.lowercaseE)&&(o=b.charCodeAt(++r.pos),(o===u.plusSign||o===u.dash)&&++r.pos,Jn(),o=b.charCodeAt(r.pos)),o===u.lowercaseN?(++r.pos,n=!0):o===u.lowercaseM&&(++r.pos,s=!0),n){F(t.bigint);return}if(s){F(t.decimal);return}F(t.num)}function bo(e){for(r.pos++;;){if(r.pos>=b.length){j("Unterminated string constant");return}const n=b.charCodeAt(r.pos);if(n===u.backslash)r.pos++;else if(n===e)break;r.pos++}r.pos++,F(t.string)}function wo(){for(;;){if(r.pos>=b.length){j("Unterminated template");return}const e=b.charCodeAt(r.pos);if(e===u.graveAccent||e===u.dollarSign&&b.charCodeAt(r.pos+1)===u.leftCurlyBrace){if(r.pos===r.start&&a(t.template))if(e===u.dollarSign){r.pos+=2,F(t.dollarBraceL);return}else{++r.pos,F(t.backQuote);return}F(t.template);return}e===u.backslash&&r.pos++,r.pos++}}function To(){for(;r.pos<b.length;){const e=b.charCodeAt(r.pos);if(Ae[e])r.pos++;else if(e===u.backslash){if(r.pos+=2,b.charCodeAt(r.pos)===u.leftCurlyBrace){for(;r.pos<b.length&&b.charCodeAt(r.pos)!==u.rightCurlyBrace;)r.pos++;r.pos++}}else break}}function It(e,n=e.currentIndex()){let s=n+1;if(Rt(e,s)){const o=e.identifierNameAtIndex(n);return{isType:!1,leftName:o,rightName:o,endIndex:s}}if(s++,Rt(e,s))return{isType:!0,leftName:null,rightName:null,endIndex:s};if(s++,Rt(e,s))return{isType:!1,leftName:e.identifierNameAtIndex(n),rightName:e.identifierNameAtIndex(n+2),endIndex:s};if(s++,Rt(e,s))return{isType:!0,leftName:null,rightName:null,endIndex:s};throw new Error(`Unexpected import/export specifier at ${n}`)}function Rt(e,n){const s=e.tokens[n];return s.type===t.braceR||s.type===t.comma}const Ao=new Map([["quot",'"'],["amp","&"],["apos","'"],["lt","<"],["gt",">"],["nbsp"," "],["iexcl","¡"],["cent","¢"],["pound","£"],["curren","¤"],["yen","¥"],["brvbar","¦"],["sect","§"],["uml","¨"],["copy","©"],["ordf","ª"],["laquo","«"],["not","¬"],["shy","­"],["reg","®"],["macr","¯"],["deg","°"],["plusmn","±"],["sup2","²"],["sup3","³"],["acute","´"],["micro","µ"],["para","¶"],["middot","·"],["cedil","¸"],["sup1","¹"],["ordm","º"],["raquo","»"],["frac14","¼"],["frac12","½"],["frac34","¾"],["iquest","¿"],["Agrave","À"],["Aacute","Á"],["Acirc","Â"],["Atilde","Ã"],["Auml","Ä"],["Aring","Å"],["AElig","Æ"],["Ccedil","Ç"],["Egrave","È"],["Eacute","É"],["Ecirc","Ê"],["Euml","Ë"],["Igrave","Ì"],["Iacute","Í"],["Icirc","Î"],["Iuml","Ï"],["ETH","Ð"],["Ntilde","Ñ"],["Ograve","Ò"],["Oacute","Ó"],["Ocirc","Ô"],["Otilde","Õ"],["Ouml","Ö"],["times","×"],["Oslash","Ø"],["Ugrave","Ù"],["Uacute","Ú"],["Ucirc","Û"],["Uuml","Ü"],["Yacute","Ý"],["THORN","Þ"],["szlig","ß"],["agrave","à"],["aacute","á"],["acirc","â"],["atilde","ã"],["auml","ä"],["aring","å"],["aelig","æ"],["ccedil","ç"],["egrave","è"],["eacute","é"],["ecirc","ê"],["euml","ë"],["igrave","ì"],["iacute","í"],["icirc","î"],["iuml","ï"],["eth","ð"],["ntilde","ñ"],["ograve","ò"],["oacute","ó"],["ocirc","ô"],["otilde","õ"],["ouml","ö"],["divide","÷"],["oslash","ø"],["ugrave","ù"],["uacute","ú"],["ucirc","û"],["uuml","ü"],["yacute","ý"],["thorn","þ"],["yuml","ÿ"],["OElig","Œ"],["oelig","œ"],["Scaron","Š"],["scaron","š"],["Yuml","Ÿ"],["fnof","ƒ"],["circ","ˆ"],["tilde","˜"],["Alpha","Α"],["Beta","Β"],["Gamma","Γ"],["Delta","Δ"],["Epsilon","Ε"],["Zeta","Ζ"],["Eta","Η"],["Theta","Θ"],["Iota","Ι"],["Kappa","Κ"],["Lambda","Λ"],["Mu","Μ"],["Nu","Ν"],["Xi","Ξ"],["Omicron","Ο"],["Pi","Π"],["Rho","Ρ"],["Sigma","Σ"],["Tau","Τ"],["Upsilon","Υ"],["Phi","Φ"],["Chi","Χ"],["Psi","Ψ"],["Omega","Ω"],["alpha","α"],["beta","β"],["gamma","γ"],["delta","δ"],["epsilon","ε"],["zeta","ζ"],["eta","η"],["theta","θ"],["iota","ι"],["kappa","κ"],["lambda","λ"],["mu","μ"],["nu","ν"],["xi","ξ"],["omicron","ο"],["pi","π"],["rho","ρ"],["sigmaf","ς"],["sigma","σ"],["tau","τ"],["upsilon","υ"],["phi","φ"],["chi","χ"],["psi","ψ"],["omega","ω"],["thetasym","ϑ"],["upsih","ϒ"],["piv","ϖ"],["ensp"," "],["emsp"," "],["thinsp"," "],["zwnj","‌"],["zwj","‍"],["lrm","‎"],["rlm","‏"],["ndash","–"],["mdash","—"],["lsquo","‘"],["rsquo","’"],["sbquo","‚"],["ldquo","“"],["rdquo","”"],["bdquo","„"],["dagger","†"],["Dagger","‡"],["bull","•"],["hellip","…"],["permil","‰"],["prime","′"],["Prime","″"],["lsaquo","‹"],["rsaquo","›"],["oline","‾"],["frasl","⁄"],["euro","€"],["image","ℑ"],["weierp","℘"],["real","ℜ"],["trade","™"],["alefsym","ℵ"],["larr","←"],["uarr","↑"],["rarr","→"],["darr","↓"],["harr","↔"],["crarr","↵"],["lArr","⇐"],["uArr","⇑"],["rArr","⇒"],["dArr","⇓"],["hArr","⇔"],["forall","∀"],["part","∂"],["exist","∃"],["empty","∅"],["nabla","∇"],["isin","∈"],["notin","∉"],["ni","∋"],["prod","∏"],["sum","∑"],["minus","−"],["lowast","∗"],["radic","√"],["prop","∝"],["infin","∞"],["ang","∠"],["and","∧"],["or","∨"],["cap","∩"],["cup","∪"],["int","∫"],["there4","∴"],["sim","∼"],["cong","≅"],["asymp","≈"],["ne","≠"],["equiv","≡"],["le","≤"],["ge","≥"],["sub","⊂"],["sup","⊃"],["nsub","⊄"],["sube","⊆"],["supe","⊇"],["oplus","⊕"],["otimes","⊗"],["perp","⊥"],["sdot","⋅"],["lceil","⌈"],["rceil","⌉"],["lfloor","⌊"],["rfloor","⌋"],["lang","〈"],["rang","〉"],["loz","◊"],["spades","♠"],["clubs","♣"],["hearts","♥"],["diams","♦"]]);function L1(e){const[n,s]=Xs(e.jsxPragma||"React.createElement"),[o,i]=Xs(e.jsxFragmentPragma||"React.Fragment");return{base:n,suffix:s,fragmentBase:o,fragmentSuffix:i}}function Xs(e){let n=e.indexOf(".");return n===-1&&(n=e.length),[e.slice(0,n),e.slice(n)]}class Ee{getPrefixCode(){return""}getHoistedCode(){return""}getSuffixCode(){return""}}class Ye extends Ee{__init(){this.lastLineNumber=1}__init2(){this.lastIndex=0}__init3(){this.filenameVarName=null}__init4(){this.esmAutomaticImportNameResolutions={}}__init5(){this.cjsAutomaticModuleNameResolutions={}}constructor(n,s,o,i,c){super(),this.rootTransformer=n,this.tokens=s,this.importProcessor=o,this.nameManager=i,this.options=c,Ye.prototype.__init.call(this),Ye.prototype.__init2.call(this),Ye.prototype.__init3.call(this),Ye.prototype.__init4.call(this),Ye.prototype.__init5.call(this),this.jsxPragmaInfo=L1(c),this.isAutomaticRuntime=c.jsxRuntime==="automatic",this.jsxImportSource=c.jsxImportSource||"react"}process(){return this.tokens.matches1(t.jsxTagStart)?(this.processJSXTag(),!0):!1}getPrefixCode(){let n="";if(this.filenameVarName&&(n+=`const ${this.filenameVarName} = ${JSON.stringify(this.options.filePath||"")};`),this.isAutomaticRuntime)if(this.importProcessor)for(const[s,o]of Object.entries(this.cjsAutomaticModuleNameResolutions))n+=`var ${o} = require("${s}");`;else{const{createElement:s,...o}=this.esmAutomaticImportNameResolutions;s&&(n+=`import {createElement as ${s}} from "${this.jsxImportSource}";`);const i=Object.entries(o).map(([c,h])=>`${c} as ${h}`).join(", ");if(i){const c=this.jsxImportSource+(this.options.production?"/jsx-runtime":"/jsx-dev-runtime");n+=`import {${i}} from "${c}";`}}return n}processJSXTag(){const{jsxRole:n,start:s}=this.tokens.currentToken(),o=this.options.production?null:this.getElementLocationCode(s);this.isAutomaticRuntime&&n!==Te.KeyAfterPropSpread?this.transformTagToJSXFunc(o,n):this.transformTagToCreateElement(o)}getElementLocationCode(n){return`lineNumber: ${this.getLineNumberForIndex(n)}`}getLineNumberForIndex(n){const s=this.tokens.code;for(;this.lastIndex<n&&this.lastIndex<s.length;)s[this.lastIndex]===`
2
- `&&this.lastLineNumber++,this.lastIndex++;return this.lastLineNumber}transformTagToJSXFunc(n,s){const o=s===Te.StaticChildren;this.tokens.replaceToken(this.getJSXFuncInvocationCode(o));let i=null;if(this.tokens.matches1(t.jsxTagEnd))this.tokens.replaceToken(`${this.getFragmentCode()}, {`),this.processAutomaticChildrenAndEndProps(s);else{if(this.processTagIntro(),this.tokens.appendCode(", {"),i=this.processProps(!0),this.tokens.matches2(t.slash,t.jsxTagEnd))this.tokens.appendCode("}");else if(this.tokens.matches1(t.jsxTagEnd))this.tokens.removeToken(),this.processAutomaticChildrenAndEndProps(s);else throw new Error("Expected either /> or > at the end of the tag.");i&&this.tokens.appendCode(`, ${i}`)}for(this.options.production||(i===null&&this.tokens.appendCode(", void 0"),this.tokens.appendCode(`, ${o}, ${this.getDevSource(n)}, this`)),this.tokens.removeInitialToken();!this.tokens.matches1(t.jsxTagEnd);)this.tokens.removeToken();this.tokens.replaceToken(")")}transformTagToCreateElement(n){if(this.tokens.replaceToken(this.getCreateElementInvocationCode()),this.tokens.matches1(t.jsxTagEnd))this.tokens.replaceToken(`${this.getFragmentCode()}, null`),this.processChildren(!0);else if(this.processTagIntro(),this.processPropsObjectWithDevInfo(n),!this.tokens.matches2(t.slash,t.jsxTagEnd))if(this.tokens.matches1(t.jsxTagEnd))this.tokens.removeToken(),this.processChildren(!0);else throw new Error("Expected either /> or > at the end of the tag.");for(this.tokens.removeInitialToken();!this.tokens.matches1(t.jsxTagEnd);)this.tokens.removeToken();this.tokens.replaceToken(")")}getJSXFuncInvocationCode(n){return this.options.production?n?this.claimAutoImportedFuncInvocation("jsxs","/jsx-runtime"):this.claimAutoImportedFuncInvocation("jsx","/jsx-runtime"):this.claimAutoImportedFuncInvocation("jsxDEV","/jsx-dev-runtime")}getCreateElementInvocationCode(){if(this.isAutomaticRuntime)return this.claimAutoImportedFuncInvocation("createElement","");{const{jsxPragmaInfo:n}=this;return`${this.importProcessor&&this.importProcessor.getIdentifierReplacement(n.base)||n.base}${n.suffix}(`}}getFragmentCode(){if(this.isAutomaticRuntime)return this.claimAutoImportedName("Fragment",this.options.production?"/jsx-runtime":"/jsx-dev-runtime");{const{jsxPragmaInfo:n}=this;return(this.importProcessor&&this.importProcessor.getIdentifierReplacement(n.fragmentBase)||n.fragmentBase)+n.fragmentSuffix}}claimAutoImportedFuncInvocation(n,s){const o=this.claimAutoImportedName(n,s);return this.importProcessor?`${o}.call(void 0, `:`${o}(`}claimAutoImportedName(n,s){if(this.importProcessor){const o=this.jsxImportSource+s;return this.cjsAutomaticModuleNameResolutions[o]||(this.cjsAutomaticModuleNameResolutions[o]=this.importProcessor.getFreeIdentifierForPath(o)),`${this.cjsAutomaticModuleNameResolutions[o]}.${n}`}else return this.esmAutomaticImportNameResolutions[n]||(this.esmAutomaticImportNameResolutions[n]=this.nameManager.claimFreeName(`_${n}`)),this.esmAutomaticImportNameResolutions[n]}processTagIntro(){let n=this.tokens.currentIndex()+1;for(;this.tokens.tokens[n].isType||!this.tokens.matches2AtIndex(n-1,t.jsxName,t.jsxName)&&!this.tokens.matches2AtIndex(n-1,t.greaterThan,t.jsxName)&&!this.tokens.matches1AtIndex(n,t.braceL)&&!this.tokens.matches1AtIndex(n,t.jsxTagEnd)&&!this.tokens.matches2AtIndex(n,t.slash,t.jsxTagEnd);)n++;if(n===this.tokens.currentIndex()+1){const s=this.tokens.identifierName();D1(s)&&this.tokens.replaceToken(`'${s}'`)}for(;this.tokens.currentIndex()<n;)this.rootTransformer.processToken()}processPropsObjectWithDevInfo(n){const s=this.options.production?"":`__self: this, __source: ${this.getDevSource(n)}`;if(!this.tokens.matches1(t.jsxName)&&!this.tokens.matches1(t.braceL)){s?this.tokens.appendCode(`, {${s}}`):this.tokens.appendCode(", null");return}this.tokens.appendCode(", {"),this.processProps(!1),s?this.tokens.appendCode(` ${s}}`):this.tokens.appendCode("}")}processProps(n){let s=null;for(;;){if(this.tokens.matches2(t.jsxName,t.eq)){const o=this.tokens.identifierName();if(n&&o==="key"){s!==null&&this.tokens.appendCode(s.replace(/[^\n]/g,"")),this.tokens.removeToken(),this.tokens.removeToken();const i=this.tokens.snapshot();this.processPropValue(),s=this.tokens.dangerouslyGetAndRemoveCodeSinceSnapshot(i);continue}else this.processPropName(o),this.tokens.replaceToken(": "),this.processPropValue()}else if(this.tokens.matches1(t.jsxName)){const o=this.tokens.identifierName();this.processPropName(o),this.tokens.appendCode(": true")}else if(this.tokens.matches1(t.braceL))this.tokens.replaceToken(""),this.rootTransformer.processBalancedCode(),this.tokens.replaceToken("");else break;this.tokens.appendCode(",")}return s}processPropName(n){n.includes("-")?this.tokens.replaceToken(`'${n}'`):this.tokens.copyToken()}processPropValue(){this.tokens.matches1(t.braceL)?(this.tokens.replaceToken(""),this.rootTransformer.processBalancedCode(),this.tokens.replaceToken("")):this.tokens.matches1(t.jsxTagStart)?this.processJSXTag():this.processStringPropValue()}processStringPropValue(){const n=this.tokens.currentToken(),s=this.tokens.code.slice(n.start+1,n.end-1),o=Gs(s),i=So(s);this.tokens.replaceToken(i+o)}processAutomaticChildrenAndEndProps(n){n===Te.StaticChildren?(this.tokens.appendCode(" children: ["),this.processChildren(!1),this.tokens.appendCode("]}")):(n===Te.OneChild&&this.tokens.appendCode(" children: "),this.processChildren(!1),this.tokens.appendCode("}"))}processChildren(n){let s=n;for(;;){if(this.tokens.matches2(t.jsxTagStart,t.slash))return;let o=!1;if(this.tokens.matches1(t.braceL))this.tokens.matches2(t.braceL,t.braceR)?(this.tokens.replaceToken(""),this.tokens.replaceToken("")):(this.tokens.replaceToken(s?", ":""),this.rootTransformer.processBalancedCode(),this.tokens.replaceToken(""),o=!0);else if(this.tokens.matches1(t.jsxTagStart))this.tokens.appendCode(s?", ":""),this.processJSXTag(),o=!0;else if(this.tokens.matches1(t.jsxText)||this.tokens.matches1(t.jsxEmptyText))o=this.processChildTextElement(s);else throw new Error("Unexpected token when processing JSX children.");o&&(s=!0)}}processChildTextElement(n){const s=this.tokens.currentToken(),o=this.tokens.code.slice(s.start,s.end),i=Gs(o),c=Eo(o);return c==='""'?(this.tokens.replaceToken(i),!1):(this.tokens.replaceToken(`${n?", ":""}${c}${i}`),!0)}getDevSource(n){return`{fileName: ${this.getFilenameVarName()}, ${n}}`}getFilenameVarName(){return this.filenameVarName||(this.filenameVarName=this.nameManager.claimFreeName("_jsxFileName")),this.filenameVarName}}function D1(e){const n=e.charCodeAt(0);return n>=u.lowercaseA&&n<=u.lowercaseZ}function Eo(e){let n="",s="",o=!1,i=!1;for(let c=0;c<e.length;c++){const h=e[c];if(h===" "||h===" "||h==="\r")o||(s+=h);else if(h===`
3
- `)s="",o=!0;else{if(i&&o&&(n+=" "),n+=s,s="",h==="&"){const{entity:m,newI:g}=O1(e,c+1);c=g-1,n+=m}else n+=h;i=!0,o=!1}}return o||(n+=s),JSON.stringify(n)}function Gs(e){let n=0,s=0;for(const o of e)o===`
4
- `?(n++,s=0):o===" "&&s++;return`
5
- `.repeat(n)+" ".repeat(s)}function So(e){let n="";for(let s=0;s<e.length;s++){const o=e[s];if(o===`
6
- `)if(/\s/.test(e[s+1]))for(n+=" ";s<e.length&&/\s/.test(e[s+1]);)s++;else n+=`
7
- `;else if(o==="&"){const{entity:i,newI:c}=O1(e,s+1);n+=i,s=c-1}else n+=o}return JSON.stringify(n)}function O1(e,n){let s="",o=0,i,c=n;if(e[c]==="#"){let h=10;c++;let m;if(e[c]==="x")for(h=16,c++,m=c;c<e.length&&No(e.charCodeAt(c));)c++;else for(m=c;c<e.length&&vo(e.charCodeAt(c));)c++;if(e[c]===";"){const g=e.slice(m,c);g&&(c++,i=String.fromCodePoint(parseInt(g,h)))}}else for(;c<e.length&&o++<10;){const h=e[c];if(c++,h===";"){i=Ao.get(s);break}s+=h}return i?{entity:i,newI:c}:{entity:"&",newI:n}}function vo(e){return e>=u.digit0&&e<=u.digit9}function No(e){return e>=u.digit0&&e<=u.digit9||e>=u.lowercaseA&&e<=u.lowercaseF||e>=u.uppercaseA&&e<=u.uppercaseF}function F1(e,n){const s=L1(n),o=new Set;for(let i=0;i<e.tokens.length;i++){const c=e.tokens[i];if(c.type===t.name&&!c.isType&&(c.identifierRole===v.Access||c.identifierRole===v.ObjectShorthand||c.identifierRole===v.ExportAccess)&&!c.shadowsGlobal&&o.add(e.identifierNameForToken(c)),c.type===t.jsxTagStart&&o.add(s.base),c.type===t.jsxTagStart&&i+1<e.tokens.length&&e.tokens[i+1].type===t.jsxTagEnd&&(o.add(s.base),o.add(s.fragmentBase)),c.type===t.jsxName&&c.identifierRole===v.Access){const h=e.identifierNameForToken(c);(!D1(h)||e.tokens[i+1].type===t.dot)&&o.add(e.identifierNameForToken(c))}}return o}class Ze{__init(){this.nonTypeIdentifiers=new Set}__init2(){this.importInfoByPath=new Map}__init3(){this.importsToReplace=new Map}__init4(){this.identifierReplacements=new Map}__init5(){this.exportBindingsByLocalName=new Map}constructor(n,s,o,i,c,h,m){this.nameManager=n,this.tokens=s,this.enableLegacyTypeScriptModuleInterop=o,this.options=i,this.isTypeScriptTransformEnabled=c,this.keepUnusedImports=h,this.helperManager=m,Ze.prototype.__init.call(this),Ze.prototype.__init2.call(this),Ze.prototype.__init3.call(this),Ze.prototype.__init4.call(this),Ze.prototype.__init5.call(this)}preprocessTokens(){for(let n=0;n<this.tokens.tokens.length;n++)this.tokens.matches1AtIndex(n,t._import)&&!this.tokens.matches3AtIndex(n,t._import,t.name,t.eq)&&this.preprocessImportAtIndex(n),this.tokens.matches1AtIndex(n,t._export)&&!this.tokens.matches2AtIndex(n,t._export,t.eq)&&this.preprocessExportAtIndex(n);this.generateImportReplacements()}pruneTypeOnlyImports(){this.nonTypeIdentifiers=F1(this.tokens,this.options);for(const[n,s]of this.importInfoByPath.entries()){if(s.hasBareImport||s.hasStarExport||s.exportStarNames.length>0||s.namedExports.length>0)continue;[...s.defaultNames,...s.wildcardNames,...s.namedImports.map(({localName:i})=>i)].every(i=>this.shouldAutomaticallyElideImportedName(i))&&this.importsToReplace.set(n,"")}}shouldAutomaticallyElideImportedName(n){return this.isTypeScriptTransformEnabled&&!this.keepUnusedImports&&!this.nonTypeIdentifiers.has(n)}generateImportReplacements(){for(const[n,s]of this.importInfoByPath.entries()){const{defaultNames:o,wildcardNames:i,namedImports:c,namedExports:h,exportStarNames:m,hasStarExport:g}=s;if(o.length===0&&i.length===0&&c.length===0&&h.length===0&&m.length===0&&!g){this.importsToReplace.set(n,`require('${n}');`);continue}const f=this.getFreeIdentifierForPath(n);let y;this.enableLegacyTypeScriptModuleInterop?y=f:y=i.length>0?i[0]:this.getFreeIdentifierForPath(n);let T=`var ${f} = require('${n}');`;if(i.length>0)for(const S of i){const C=this.enableLegacyTypeScriptModuleInterop?f:`${this.helperManager.getHelperName("interopRequireWildcard")}(${f})`;T+=` var ${S} = ${C};`}else m.length>0&&y!==f?T+=` var ${y} = ${this.helperManager.getHelperName("interopRequireWildcard")}(${f});`:o.length>0&&y!==f&&(T+=` var ${y} = ${this.helperManager.getHelperName("interopRequireDefault")}(${f});`);for(const{importedName:S,localName:C}of h)T+=` ${this.helperManager.getHelperName("createNamedExportFrom")}(${f}, '${C}', '${S}');`;for(const S of m)T+=` exports.${S} = ${y};`;g&&(T+=` ${this.helperManager.getHelperName("createStarExport")}(${f});`),this.importsToReplace.set(n,T);for(const S of o)this.identifierReplacements.set(S,`${y}.default`);for(const{importedName:S,localName:C}of c)this.identifierReplacements.set(C,`${f}.${S}`)}}getFreeIdentifierForPath(n){const s=n.split("/"),i=s[s.length-1].replace(/\W/g,"");return this.nameManager.claimFreeName(`_${i}`)}preprocessImportAtIndex(n){const s=[],o=[],i=[];if(n++,(this.tokens.matchesContextualAtIndex(n,l._type)||this.tokens.matches1AtIndex(n,t._typeof))&&!this.tokens.matches1AtIndex(n+1,t.comma)&&!this.tokens.matchesContextualAtIndex(n+1,l._from)||this.tokens.matches1AtIndex(n,t.parenL))return;if(this.tokens.matches1AtIndex(n,t.name)&&(s.push(this.tokens.identifierNameAtIndex(n)),n++,this.tokens.matches1AtIndex(n,t.comma)&&n++),this.tokens.matches1AtIndex(n,t.star)&&(n+=2,o.push(this.tokens.identifierNameAtIndex(n)),n++),this.tokens.matches1AtIndex(n,t.braceL)){const m=this.getNamedImports(n+1);n=m.newIndex;for(const g of m.namedImports)g.importedName==="default"?s.push(g.localName):i.push(g)}if(this.tokens.matchesContextualAtIndex(n,l._from)&&n++,!this.tokens.matches1AtIndex(n,t.string))throw new Error("Expected string token at the end of import statement.");const c=this.tokens.stringValueAtIndex(n),h=this.getImportInfo(c);h.defaultNames.push(...s),h.wildcardNames.push(...o),h.namedImports.push(...i),s.length===0&&o.length===0&&i.length===0&&(h.hasBareImport=!0)}preprocessExportAtIndex(n){if(this.tokens.matches2AtIndex(n,t._export,t._var)||this.tokens.matches2AtIndex(n,t._export,t._let)||this.tokens.matches2AtIndex(n,t._export,t._const))this.preprocessVarExportAtIndex(n);else if(this.tokens.matches2AtIndex(n,t._export,t._function)||this.tokens.matches2AtIndex(n,t._export,t._class)){const s=this.tokens.identifierNameAtIndex(n+2);this.addExportBinding(s,s)}else if(this.tokens.matches3AtIndex(n,t._export,t.name,t._function)){const s=this.tokens.identifierNameAtIndex(n+3);this.addExportBinding(s,s)}else this.tokens.matches2AtIndex(n,t._export,t.braceL)?this.preprocessNamedExportAtIndex(n):this.tokens.matches2AtIndex(n,t._export,t.star)&&this.preprocessExportStarAtIndex(n)}preprocessVarExportAtIndex(n){let s=0;for(let o=n+2;;o++)if(this.tokens.matches1AtIndex(o,t.braceL)||this.tokens.matches1AtIndex(o,t.dollarBraceL)||this.tokens.matches1AtIndex(o,t.bracketL))s++;else if(this.tokens.matches1AtIndex(o,t.braceR)||this.tokens.matches1AtIndex(o,t.bracketR))s--;else{if(s===0&&!this.tokens.matches1AtIndex(o,t.name))break;if(this.tokens.matches1AtIndex(1,t.eq)){const i=this.tokens.currentToken().rhsEndIndex;if(i==null)throw new Error("Expected = token with an end index.");o=i-1}else{const i=this.tokens.tokens[o];if(I1(i)){const c=this.tokens.identifierNameAtIndex(o);this.identifierReplacements.set(c,`exports.${c}`)}}}}preprocessNamedExportAtIndex(n){n+=2;const{newIndex:s,namedImports:o}=this.getNamedImports(n);if(n=s,this.tokens.matchesContextualAtIndex(n,l._from))n++;else{for(const{importedName:h,localName:m}of o)this.addExportBinding(h,m);return}if(!this.tokens.matches1AtIndex(n,t.string))throw new Error("Expected string token at the end of import statement.");const i=this.tokens.stringValueAtIndex(n);this.getImportInfo(i).namedExports.push(...o)}preprocessExportStarAtIndex(n){let s=null;if(this.tokens.matches3AtIndex(n,t._export,t.star,t._as)?(n+=3,s=this.tokens.identifierNameAtIndex(n),n+=2):n+=3,!this.tokens.matches1AtIndex(n,t.string))throw new Error("Expected string token at the end of star export statement.");const o=this.tokens.stringValueAtIndex(n),i=this.getImportInfo(o);s!==null?i.exportStarNames.push(s):i.hasStarExport=!0}getNamedImports(n){const s=[];for(;;){if(this.tokens.matches1AtIndex(n,t.braceR)){n++;break}const o=It(this.tokens,n);if(n=o.endIndex,o.isType||s.push({importedName:o.leftName,localName:o.rightName}),this.tokens.matches2AtIndex(n,t.comma,t.braceR)){n+=2;break}else if(this.tokens.matches1AtIndex(n,t.braceR)){n++;break}else if(this.tokens.matches1AtIndex(n,t.comma))n++;else throw new Error(`Unexpected token: ${JSON.stringify(this.tokens.tokens[n])}`)}return{newIndex:n,namedImports:s}}getImportInfo(n){const s=this.importInfoByPath.get(n);if(s)return s;const o={defaultNames:[],wildcardNames:[],namedImports:[],namedExports:[],hasBareImport:!1,exportStarNames:[],hasStarExport:!1};return this.importInfoByPath.set(n,o),o}addExportBinding(n,s){this.exportBindingsByLocalName.has(n)||this.exportBindingsByLocalName.set(n,[]),this.exportBindingsByLocalName.get(n).push(s)}claimImportCode(n){const s=this.importsToReplace.get(n);return this.importsToReplace.set(n,""),s||""}getIdentifierReplacement(n){return this.identifierReplacements.get(n)||null}resolveExportBinding(n){const s=this.exportBindingsByLocalName.get(n);return!s||s.length===0?null:s.map(o=>`exports.${o}`).join(" = ")}getGlobalNames(){return new Set([...this.identifierReplacements.keys(),...this.exportBindingsByLocalName.keys()])}}var Dt={exports:{}},Co=Dt.exports,zs;function Po(){return zs||(zs=1,(function(e,n){(function(s,o){e.exports=o()})(Co,(function(){const s=/^[\w+.-]+:\/\//,o=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,i=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;function c(N){return s.test(N)}function h(N){return N.startsWith("//")}function m(N){return N.startsWith("/")}function g(N){return N.startsWith("file:")}function f(N){return/^[.?#]/.test(N)}function y(N){const O=o.exec(N);return S(O[1],O[2]||"",O[3],O[4]||"",O[5]||"/",O[6]||"",O[7]||"")}function T(N){const O=i.exec(N),R=O[2];return S("file:","",O[1]||"","",m(R)?R:"/"+R,O[3]||"",O[4]||"")}function S(N,O,R,Y,te,X,ae){return{scheme:N,user:O,host:R,port:Y,path:te,query:X,hash:ae,type:7}}function C(N){if(h(N)){const R=y("http:"+N);return R.scheme="",R.type=6,R}if(m(N)){const R=y("http://foo.com"+N);return R.scheme="",R.host="",R.type=5,R}if(g(N))return T(N);if(c(N))return y(N);const O=y("http://foo.com/"+N);return O.scheme="",O.host="",O.type=N?N.startsWith("?")?3:N.startsWith("#")?2:4:1,O}function $(N){if(N.endsWith("/.."))return N;const O=N.lastIndexOf("/");return N.slice(0,O+1)}function V(N,O){re(O,O.type),N.path==="/"?N.path=O.path:N.path=$(O.path)+N.path}function re(N,O){const R=O<=4,Y=N.path.split("/");let te=1,X=0,ae=!1;for(let he=1;he<Y.length;he++){const pe=Y[he];if(!pe){ae=!0;continue}if(ae=!1,pe!=="."){if(pe===".."){X?(ae=!0,X--,te--):R&&(Y[te++]=pe);continue}Y[te++]=pe,X++}}let de="";for(let he=1;he<te;he++)de+="/"+Y[he];(!de||ae&&!de.endsWith("/.."))&&(de+="/"),N.path=de}function ie(N,O){if(!N&&!O)return"";const R=C(N);let Y=R.type;if(O&&Y!==7){const X=C(O),ae=X.type;switch(Y){case 1:R.hash=X.hash;case 2:R.query=X.query;case 3:case 4:V(R,X);case 5:R.user=X.user,R.host=X.host,R.port=X.port;case 6:R.scheme=X.scheme}ae>Y&&(Y=ae)}re(R,Y);const te=R.query+R.hash;switch(Y){case 2:case 3:return te;case 4:{const X=R.path.slice(1);return X?f(O||N)&&!f(X)?"./"+X+te:X+te:te||"."}case 5:return R.path+te;default:return R.scheme+"//"+R.user+R.host+R.port+R.path+te}}return ie}))})(Dt)),Dt.exports}Po();var Qn=class{constructor(){this._indexes={__proto__:null},this.array=[]}};function Ro(e,n){return e._indexes[n]}function Lo(e,n){const s=Ro(e,n);if(s!==void 0)return s;const{array:o,_indexes:i}=e,c=o.push(n);return i[n]=c-1}var Do=0,Oo=1,Fo=2,jo=3,qo=4,j1=-1,Mo=class{constructor({file:e,sourceRoot:n}={}){this._names=new Qn,this._sources=new Qn,this._sourcesContent=[],this._mappings=[],this.file=e,this.sourceRoot=n,this._ignoreList=new Qn}};var Yn=(e,n,s,o,i,c,h,m)=>Uo(!0,e,n,s,o,i,c);function Bo(e){const{_mappings:n,_sources:s,_sourcesContent:o,_names:i,_ignoreList:c}=e;return Wo(n),{version:3,file:e.file||void 0,names:i.array,sourceRoot:e.sourceRoot||void 0,sources:s.array,sourcesContent:o,mappings:n,ignoreList:c.array}}function $o(e){const n=Bo(e);return Object.assign({},n,{mappings:Gr(n.mappings)})}function Uo(e,n,s,o,i,c,h,m,g){const{_mappings:f,_sources:y,_sourcesContent:T,_names:S}=n,C=Ho(f,s),$=Vo(C,o);if(!i)return Xo(C,$)?void 0:Js(C,$,[o]);const V=Lo(y,i),re=j1;if(V===T.length&&(T[V]=null),!Go(C,$,V,c,h,re))return Js(C,$,[o,V,c,h])}function Ho(e,n){for(let s=e.length;s<=n;s++)e[s]=[];return e[n]}function Vo(e,n){let s=e.length;for(let o=s-1;o>=0;s=o--){const i=e[o];if(n>=i[Do])break}return s}function Js(e,n,s){for(let o=e.length;o>n;o--)e[o]=e[o-1];e[n]=s}function Wo(e){const{length:n}=e;let s=n;for(let o=s-1;o>=0&&!(e[o].length>0);s=o,o--);s<n&&(e.length=s)}function Xo(e,n){return n===0?!0:e[n-1].length===1}function Go(e,n,s,o,i,c){if(n===0)return!1;const h=e[n-1];return h.length===1?!1:s===h[Oo]&&o===h[Fo]&&i===h[jo]&&c===(h.length===5?h[qo]:j1)}function zo({code:e,mappings:n},s,o,i,c){const h=Jo(i,c),m=new Mo({file:o.compiledFilename});let g=0,f=n[0];for(;f===void 0&&g<n.length-1;)g++,f=n[g];let y=0,T=0;f!==T&&Yn(m,y,0,s,y,0);for(let V=0;V<e.length;V++){if(V===f){const re=f-T,ie=h[g];for(Yn(m,y,re,s,y,ie);(f===V||f===void 0)&&g<n.length-1;)g++,f=n[g]}e.charCodeAt(V)===u.lineFeed&&(y++,T=V+1,f!==T&&Yn(m,y,0,s,y,0))}const{sourceRoot:S,sourcesContent:C,...$}=$o(m);return $}function Jo(e,n){const s=new Array(n.length);let o=0,i=n[o].start,c=0;for(let h=0;h<e.length;h++)h===i&&(s[o]=i-c,o++,i=n[o].start),e.charCodeAt(h)===u.lineFeed&&(c=h+1);return s}const Qo={require:`
8
- import {createRequire as CREATE_REQUIRE_NAME} from "module";
9
- const require = CREATE_REQUIRE_NAME(import.meta.url);
10
- `,interopRequireWildcard:`
11
- function interopRequireWildcard(obj) {
12
- if (obj && obj.__esModule) {
13
- return obj;
14
- } else {
15
- var newObj = {};
16
- if (obj != null) {
17
- for (var key in obj) {
18
- if (Object.prototype.hasOwnProperty.call(obj, key)) {
19
- newObj[key] = obj[key];
20
- }
21
- }
22
- }
23
- newObj.default = obj;
24
- return newObj;
25
- }
26
- }
27
- `,interopRequireDefault:`
28
- function interopRequireDefault(obj) {
29
- return obj && obj.__esModule ? obj : { default: obj };
30
- }
31
- `,createNamedExportFrom:`
32
- function createNamedExportFrom(obj, localName, importedName) {
33
- Object.defineProperty(exports, localName, {enumerable: true, configurable: true, get: () => obj[importedName]});
34
- }
35
- `,createStarExport:`
36
- function createStarExport(obj) {
37
- Object.keys(obj)
38
- .filter((key) => key !== "default" && key !== "__esModule")
39
- .forEach((key) => {
40
- if (exports.hasOwnProperty(key)) {
41
- return;
42
- }
43
- Object.defineProperty(exports, key, {enumerable: true, configurable: true, get: () => obj[key]});
44
- });
45
- }
46
- `,nullishCoalesce:`
47
- function nullishCoalesce(lhs, rhsFn) {
48
- if (lhs != null) {
49
- return lhs;
50
- } else {
51
- return rhsFn();
52
- }
53
- }
54
- `,asyncNullishCoalesce:`
55
- async function asyncNullishCoalesce(lhs, rhsFn) {
56
- if (lhs != null) {
57
- return lhs;
58
- } else {
59
- return await rhsFn();
60
- }
61
- }
62
- `,optionalChain:`
63
- function optionalChain(ops) {
64
- let lastAccessLHS = undefined;
65
- let value = ops[0];
66
- let i = 1;
67
- while (i < ops.length) {
68
- const op = ops[i];
69
- const fn = ops[i + 1];
70
- i += 2;
71
- if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) {
72
- return undefined;
73
- }
74
- if (op === 'access' || op === 'optionalAccess') {
75
- lastAccessLHS = value;
76
- value = fn(value);
77
- } else if (op === 'call' || op === 'optionalCall') {
78
- value = fn((...args) => value.call(lastAccessLHS, ...args));
79
- lastAccessLHS = undefined;
80
- }
81
- }
82
- return value;
83
- }
84
- `,asyncOptionalChain:`
85
- async function asyncOptionalChain(ops) {
86
- let lastAccessLHS = undefined;
87
- let value = ops[0];
88
- let i = 1;
89
- while (i < ops.length) {
90
- const op = ops[i];
91
- const fn = ops[i + 1];
92
- i += 2;
93
- if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) {
94
- return undefined;
95
- }
96
- if (op === 'access' || op === 'optionalAccess') {
97
- lastAccessLHS = value;
98
- value = await fn(value);
99
- } else if (op === 'call' || op === 'optionalCall') {
100
- value = await fn((...args) => value.call(lastAccessLHS, ...args));
101
- lastAccessLHS = undefined;
102
- }
103
- }
104
- return value;
105
- }
106
- `,optionalChainDelete:`
107
- function optionalChainDelete(ops) {
108
- const result = OPTIONAL_CHAIN_NAME(ops);
109
- return result == null ? true : result;
110
- }
111
- `,asyncOptionalChainDelete:`
112
- async function asyncOptionalChainDelete(ops) {
113
- const result = await ASYNC_OPTIONAL_CHAIN_NAME(ops);
114
- return result == null ? true : result;
115
- }
116
- `};class Mt{__init(){this.helperNames={}}__init2(){this.createRequireName=null}constructor(n){this.nameManager=n,Mt.prototype.__init.call(this),Mt.prototype.__init2.call(this)}getHelperName(n){let s=this.helperNames[n];return s||(s=this.nameManager.claimFreeName(`_${n}`),this.helperNames[n]=s,s)}emitHelpers(){let n="";this.helperNames.optionalChainDelete&&this.getHelperName("optionalChain"),this.helperNames.asyncOptionalChainDelete&&this.getHelperName("asyncOptionalChain");for(const[s,o]of Object.entries(Qo)){const i=this.helperNames[s];let c=o;s==="optionalChainDelete"?c=c.replace("OPTIONAL_CHAIN_NAME",this.helperNames.optionalChain):s==="asyncOptionalChainDelete"?c=c.replace("ASYNC_OPTIONAL_CHAIN_NAME",this.helperNames.asyncOptionalChain):s==="require"&&(this.createRequireName===null&&(this.createRequireName=this.nameManager.claimFreeName("_createRequire")),c=c.replace(/CREATE_REQUIRE_NAME/g,this.createRequireName)),i&&(n+=" ",n+=c.replace(s,i).replace(/\s+/g," ").trim())}return n}}function Qs(e,n,s){Yo(e,s)&&Zo(e,n,s)}function Yo(e,n){for(const s of e.tokens)if(s.type===t.name&&!s.isType&&no(s)&&n.has(e.identifierNameForToken(s)))return!0;return!1}function Zo(e,n,s){const o=[];let i=n.length-1;for(let c=e.tokens.length-1;;c--){for(;o.length>0&&o[o.length-1].startTokenIndex===c+1;)o.pop();for(;i>=0&&n[i].endTokenIndex===c+1;)o.push(n[i]),i--;if(c<0)break;const h=e.tokens[c],m=e.identifierNameForToken(h);if(o.length>1&&!h.isType&&h.type===t.name&&s.has(m)){if(so(h))Ys(o[o.length-1],e,m);else if(ro(h)){let g=o.length-1;for(;g>0&&!o[g].isFunctionScope;)g--;if(g<0)throw new Error("Did not find parent function scope.");Ys(o[g],e,m)}}}if(o.length>0)throw new Error("Expected empty scope stack after processing file.")}function Ys(e,n,s){for(let o=e.startTokenIndex;o<e.endTokenIndex;o++){const i=n.tokens[o];(i.type===t.name||i.type===t.jsxName)&&n.identifierNameForToken(i)===s&&(i.shadowsGlobal=!0)}}function Ko(e,n){const s=[];for(const o of n)o.type===t.name&&s.push(e.slice(o.start,o.end));return s}class ds{__init(){this.usedNames=new Set}constructor(n,s){ds.prototype.__init.call(this),this.usedNames=new Set(Ko(n,s))}claimFreeName(n){const s=this.findFreeName(n);return this.usedNames.add(s),s}findFreeName(n){if(!this.usedNames.has(n))return n;let s=2;for(;this.usedNames.has(n+String(s));)s++;return n+String(s)}}var mt={},dt={},we={},Zs;function ns(){if(Zs)return we;Zs=1;var e=we&&we.__extends||(function(){var c=function(h,m){return c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,f){g.__proto__=f}||function(g,f){for(var y in f)f.hasOwnProperty(y)&&(g[y]=f[y])},c(h,m)};return function(h,m){c(h,m);function g(){this.constructor=h}h.prototype=m===null?Object.create(m):(g.prototype=m.prototype,new g)}})();Object.defineProperty(we,"__esModule",{value:!0}),we.DetailContext=we.NoopContext=we.VError=void 0;var n=(function(c){e(h,c);function h(m,g){var f=c.call(this,g)||this;return f.path=m,Object.setPrototypeOf(f,h.prototype),f}return h})(Error);we.VError=n;var s=(function(){function c(){}return c.prototype.fail=function(h,m,g){return!1},c.prototype.unionResolver=function(){return this},c.prototype.createContext=function(){return this},c.prototype.resolveUnion=function(h){},c})();we.NoopContext=s;var o=(function(){function c(){this._propNames=[""],this._messages=[null],this._score=0}return c.prototype.fail=function(h,m,g){return this._propNames.push(h),this._messages.push(m),this._score+=g,!1},c.prototype.unionResolver=function(){return new i},c.prototype.resolveUnion=function(h){for(var m,g,f=h,y=null,T=0,S=f.contexts;T<S.length;T++){var C=S[T];(!y||C._score>=y._score)&&(y=C)}y&&y._score>0&&((m=this._propNames).push.apply(m,y._propNames),(g=this._messages).push.apply(g,y._messages))},c.prototype.getError=function(h){for(var m=[],g=this._propNames.length-1;g>=0;g--){var f=this._propNames[g];h+=typeof f=="number"?"["+f+"]":f?"."+f:"";var y=this._messages[g];y&&m.push(h+" "+y)}return new n(h,m.join("; "))},c.prototype.getErrorDetail=function(h){for(var m=[],g=this._propNames.length-1;g>=0;g--){var f=this._propNames[g];h+=typeof f=="number"?"["+f+"]":f?"."+f:"";var y=this._messages[g];y&&m.push({path:h,message:y})}for(var T=null,g=m.length-1;g>=0;g--)T&&(m[g].nested=[T]),T=m[g];return T},c})();we.DetailContext=o;var i=(function(){function c(){this.contexts=[]}return c.prototype.createContext=function(){var h=new o;return this.contexts.push(h),h},c})();return we}var Ks;function e1(){return Ks||(Ks=1,(function(e){var n=dt&&dt.__extends||(function(){var _=function(x,I){return _=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,A){w.__proto__=A}||function(w,A){for(var L in A)A.hasOwnProperty(L)&&(w[L]=A[L])},_(x,I)};return function(x,I){_(x,I);function w(){this.constructor=x}x.prototype=I===null?Object.create(I):(w.prototype=I.prototype,new w)}})();Object.defineProperty(e,"__esModule",{value:!0}),e.basicTypes=e.BasicType=e.TParamList=e.TParam=e.param=e.TFunc=e.func=e.TProp=e.TOptional=e.opt=e.TIface=e.iface=e.TEnumLiteral=e.enumlit=e.TEnumType=e.enumtype=e.TIntersection=e.intersection=e.TUnion=e.union=e.TTuple=e.tuple=e.TArray=e.array=e.TLiteral=e.lit=e.TName=e.name=e.TType=void 0;var s=ns(),o=(function(){function _(){}return _})();e.TType=o;function i(_){return typeof _=="string"?h(_):_}function c(_,x){var I=_[x];if(!I)throw new Error("Unknown type "+x);return I}function h(_){return new m(_)}e.name=h;var m=(function(_){n(x,_);function x(I){var w=_.call(this)||this;return w.name=I,w._failMsg="is not a "+I,w}return x.prototype.getChecker=function(I,w,A){var L=this,D=c(I,this.name),U=D.getChecker(I,w,A);return D instanceof ee||D instanceof x?U:function(Q,z){return U(Q,z)?!0:z.fail(null,L._failMsg,0)}},x})(o);e.TName=m;function g(_){return new f(_)}e.lit=g;var f=(function(_){n(x,_);function x(I){var w=_.call(this)||this;return w.value=I,w.name=JSON.stringify(I),w._failMsg="is not "+w.name,w}return x.prototype.getChecker=function(I,w){var A=this;return function(L,D){return L===A.value?!0:D.fail(null,A._failMsg,-1)}},x})(o);e.TLiteral=f;function y(_){return new T(i(_))}e.array=y;var T=(function(_){n(x,_);function x(I){var w=_.call(this)||this;return w.ttype=I,w}return x.prototype.getChecker=function(I,w){var A=this.ttype.getChecker(I,w);return function(L,D){if(!Array.isArray(L))return D.fail(null,"is not an array",0);for(var U=0;U<L.length;U++){var Q=A(L[U],D);if(!Q)return D.fail(U,null,1)}return!0}},x})(o);e.TArray=T;function S(){for(var _=[],x=0;x<arguments.length;x++)_[x]=arguments[x];return new C(_.map(function(I){return i(I)}))}e.tuple=S;var C=(function(_){n(x,_);function x(I){var w=_.call(this)||this;return w.ttypes=I,w}return x.prototype.getChecker=function(I,w){var A=this.ttypes.map(function(D){return D.getChecker(I,w)}),L=function(D,U){if(!Array.isArray(D))return U.fail(null,"is not an array",0);for(var Q=0;Q<A.length;Q++){var z=A[Q](D[Q],U);if(!z)return U.fail(Q,null,1)}return!0};return w?function(D,U){return L(D,U)?D.length<=A.length?!0:U.fail(A.length,"is extraneous",2):!1}:L},x})(o);e.TTuple=C;function $(){for(var _=[],x=0;x<arguments.length;x++)_[x]=arguments[x];return new V(_.map(function(I){return i(I)}))}e.union=$;var V=(function(_){n(x,_);function x(I){var w=_.call(this)||this;w.ttypes=I;var A=I.map(function(D){return D instanceof m||D instanceof f?D.name:null}).filter(function(D){return D}),L=I.length-A.length;return A.length?(L>0&&A.push(L+" more"),w._failMsg="is none of "+A.join(", ")):w._failMsg="is none of "+L+" types",w}return x.prototype.getChecker=function(I,w){var A=this,L=this.ttypes.map(function(D){return D.getChecker(I,w)});return function(D,U){for(var Q=U.unionResolver(),z=0;z<L.length;z++){var ce=L[z](D,Q.createContext());if(ce)return!0}return U.resolveUnion(Q),U.fail(null,A._failMsg,0)}},x})(o);e.TUnion=V;function re(){for(var _=[],x=0;x<arguments.length;x++)_[x]=arguments[x];return new ie(_.map(function(I){return i(I)}))}e.intersection=re;var ie=(function(_){n(x,_);function x(I){var w=_.call(this)||this;return w.ttypes=I,w}return x.prototype.getChecker=function(I,w){var A=new Set,L=this.ttypes.map(function(D){return D.getChecker(I,w,A)});return function(D,U){var Q=L.every(function(z){return z(D,U)});return Q?!0:U.fail(null,null,0)}},x})(o);e.TIntersection=ie;function N(_){return new O(_)}e.enumtype=N;var O=(function(_){n(x,_);function x(I){var w=_.call(this)||this;return w.members=I,w.validValues=new Set,w._failMsg="is not a valid enum value",w.validValues=new Set(Object.keys(I).map(function(A){return I[A]})),w}return x.prototype.getChecker=function(I,w){var A=this;return function(L,D){return A.validValues.has(L)?!0:D.fail(null,A._failMsg,0)}},x})(o);e.TEnumType=O;function R(_,x){return new Y(_,x)}e.enumlit=R;var Y=(function(_){n(x,_);function x(I,w){var A=_.call(this)||this;return A.enumName=I,A.prop=w,A._failMsg="is not "+I+"."+w,A}return x.prototype.getChecker=function(I,w){var A=this,L=c(I,this.enumName);if(!(L instanceof O))throw new Error("Type "+this.enumName+" used in enumlit is not an enum type");var D=L.members[this.prop];if(!L.members.hasOwnProperty(this.prop))throw new Error("Unknown value "+this.enumName+"."+this.prop+" used in enumlit");return function(U,Q){return U===D?!0:Q.fail(null,A._failMsg,-1)}},x})(o);e.TEnumLiteral=Y;function te(_){return Object.keys(_).map(function(x){return X(x,_[x])})}function X(_,x){return x instanceof pe?new ve(_,x.ttype,!0):new ve(_,i(x),!1)}function ae(_,x){return new de(_,te(x))}e.iface=ae;var de=(function(_){n(x,_);function x(I,w){var A=_.call(this)||this;return A.bases=I,A.props=w,A.propSet=new Set(w.map(function(L){return L.name})),A}return x.prototype.getChecker=function(I,w,A){var L=this,D=this.bases.map(function(ne){return c(I,ne).getChecker(I,w)}),U=this.props.map(function(ne){return ne.ttype.getChecker(I,w)}),Q=new s.NoopContext,z=this.props.map(function(ne,fe){return!ne.isOpt&&!U[fe](void 0,Q)}),ce=function(ne,fe){if(typeof ne!="object"||ne===null)return fe.fail(null,"is not an object",0);for(var me=0;me<D.length;me++)if(!D[me](ne,fe))return!1;for(var me=0;me<U.length;me++){var Qe=L.props[me].name,ot=ne[Qe];if(ot===void 0){if(z[me])return fe.fail(Qe,"is missing",1)}else{var pt=U[me](ot,fe);if(!pt)return fe.fail(Qe,null,1)}}return!0};if(!w)return ce;var _e=this.propSet;return A&&(this.propSet.forEach(function(ne){return A.add(ne)}),_e=A),function(ne,fe){if(!ce(ne,fe))return!1;for(var me in ne)if(!_e.has(me))return fe.fail(me,"is extraneous",2);return!0}},x})(o);e.TIface=de;function he(_){return new pe(i(_))}e.opt=he;var pe=(function(_){n(x,_);function x(I){var w=_.call(this)||this;return w.ttype=I,w}return x.prototype.getChecker=function(I,w){var A=this.ttype.getChecker(I,w);return function(L,D){return L===void 0||A(L,D)}},x})(o);e.TOptional=pe;var ve=(function(){function _(x,I,w){this.name=x,this.ttype=I,this.isOpt=w}return _})();e.TProp=ve;function Be(_){for(var x=[],I=1;I<arguments.length;I++)x[I-1]=arguments[I];return new De(new Fe(x),i(_))}e.func=Be;var De=(function(_){n(x,_);function x(I,w){var A=_.call(this)||this;return A.paramList=I,A.result=w,A}return x.prototype.getChecker=function(I,w){return function(A,L){return typeof A=="function"?!0:L.fail(null,"is not a function",0)}},x})(o);e.TFunc=De;function $e(_,x,I){return new Oe(_,i(x),!!I)}e.param=$e;var Oe=(function(){function _(x,I,w){this.name=x,this.ttype=I,this.isOpt=w}return _})();e.TParam=Oe;var Fe=(function(_){n(x,_);function x(I){var w=_.call(this)||this;return w.params=I,w}return x.prototype.getChecker=function(I,w){var A=this,L=this.params.map(function(z){return z.ttype.getChecker(I,w)}),D=new s.NoopContext,U=this.params.map(function(z,ce){return!z.isOpt&&!L[ce](void 0,D)}),Q=function(z,ce){if(!Array.isArray(z))return ce.fail(null,"is not an array",0);for(var _e=0;_e<L.length;_e++){var ne=A.params[_e];if(z[_e]===void 0){if(U[_e])return ce.fail(ne.name,"is missing",1)}else{var fe=L[_e](z[_e],ce);if(!fe)return ce.fail(ne.name,null,1)}}return!0};return w?function(z,ce){return Q(z,ce)?z.length<=L.length?!0:ce.fail(L.length,"is extraneous",2):!1}:Q},x})(o);e.TParamList=Fe;var ee=(function(_){n(x,_);function x(I,w){var A=_.call(this)||this;return A.validator=I,A.message=w,A}return x.prototype.getChecker=function(I,w){var A=this;return function(L,D){return A.validator(L)?!0:D.fail(null,A.message,0)}},x})(o);e.BasicType=ee,e.basicTypes={any:new ee(function(_){return!0},"is invalid"),number:new ee(function(_){return typeof _=="number"},"is not a number"),object:new ee(function(_){return typeof _=="object"&&_},"is not an object"),boolean:new ee(function(_){return typeof _=="boolean"},"is not a boolean"),string:new ee(function(_){return typeof _=="string"},"is not a string"),symbol:new ee(function(_){return typeof _=="symbol"},"is not a symbol"),void:new ee(function(_){return _==null},"is not void"),undefined:new ee(function(_){return _===void 0},"is not undefined"),null:new ee(function(_){return _===null},"is not null"),never:new ee(function(_){return!1},"is unexpected"),Date:new ee(je("[object Date]"),"is not a Date"),RegExp:new ee(je("[object RegExp]"),"is not a RegExp")};var Ue=Object.prototype.toString;function je(_){return function(x){return typeof x=="object"&&x&&Ue.call(x)===_}}typeof Buffer<"u"&&(e.basicTypes.Buffer=new ee(function(_){return Buffer.isBuffer(_)},"is not a Buffer"));for(var He=function(_){e.basicTypes[_.name]=new ee(function(x){return x instanceof _},"is not a "+_.name)},Ne=0,qe=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,ArrayBuffer];Ne<qe.length;Ne++){var Ve=qe[Ne];He(Ve)}})(dt)),dt}var t1;function ei(){return t1||(t1=1,(function(e){var n=mt&&mt.__spreadArrays||function(){for(var g=0,f=0,y=arguments.length;f<y;f++)g+=arguments[f].length;for(var T=Array(g),S=0,f=0;f<y;f++)for(var C=arguments[f],$=0,V=C.length;$<V;$++,S++)T[S]=C[$];return T};Object.defineProperty(e,"__esModule",{value:!0}),e.Checker=e.createCheckers=void 0;var s=e1(),o=ns(),i=e1();Object.defineProperty(e,"TArray",{enumerable:!0,get:function(){return i.TArray}}),Object.defineProperty(e,"TEnumType",{enumerable:!0,get:function(){return i.TEnumType}}),Object.defineProperty(e,"TEnumLiteral",{enumerable:!0,get:function(){return i.TEnumLiteral}}),Object.defineProperty(e,"TFunc",{enumerable:!0,get:function(){return i.TFunc}}),Object.defineProperty(e,"TIface",{enumerable:!0,get:function(){return i.TIface}}),Object.defineProperty(e,"TLiteral",{enumerable:!0,get:function(){return i.TLiteral}}),Object.defineProperty(e,"TName",{enumerable:!0,get:function(){return i.TName}}),Object.defineProperty(e,"TOptional",{enumerable:!0,get:function(){return i.TOptional}}),Object.defineProperty(e,"TParam",{enumerable:!0,get:function(){return i.TParam}}),Object.defineProperty(e,"TParamList",{enumerable:!0,get:function(){return i.TParamList}}),Object.defineProperty(e,"TProp",{enumerable:!0,get:function(){return i.TProp}}),Object.defineProperty(e,"TTuple",{enumerable:!0,get:function(){return i.TTuple}}),Object.defineProperty(e,"TType",{enumerable:!0,get:function(){return i.TType}}),Object.defineProperty(e,"TUnion",{enumerable:!0,get:function(){return i.TUnion}}),Object.defineProperty(e,"TIntersection",{enumerable:!0,get:function(){return i.TIntersection}}),Object.defineProperty(e,"array",{enumerable:!0,get:function(){return i.array}}),Object.defineProperty(e,"enumlit",{enumerable:!0,get:function(){return i.enumlit}}),Object.defineProperty(e,"enumtype",{enumerable:!0,get:function(){return i.enumtype}}),Object.defineProperty(e,"func",{enumerable:!0,get:function(){return i.func}}),Object.defineProperty(e,"iface",{enumerable:!0,get:function(){return i.iface}}),Object.defineProperty(e,"lit",{enumerable:!0,get:function(){return i.lit}}),Object.defineProperty(e,"name",{enumerable:!0,get:function(){return i.name}}),Object.defineProperty(e,"opt",{enumerable:!0,get:function(){return i.opt}}),Object.defineProperty(e,"param",{enumerable:!0,get:function(){return i.param}}),Object.defineProperty(e,"tuple",{enumerable:!0,get:function(){return i.tuple}}),Object.defineProperty(e,"union",{enumerable:!0,get:function(){return i.union}}),Object.defineProperty(e,"intersection",{enumerable:!0,get:function(){return i.intersection}}),Object.defineProperty(e,"BasicType",{enumerable:!0,get:function(){return i.BasicType}});var c=ns();Object.defineProperty(e,"VError",{enumerable:!0,get:function(){return c.VError}});function h(){for(var g=[],f=0;f<arguments.length;f++)g[f]=arguments[f];for(var y=Object.assign.apply(Object,n([{},s.basicTypes],g)),T={},S=0,C=g;S<C.length;S++)for(var $=C[S],V=0,re=Object.keys($);V<re.length;V++){var ie=re[V];T[ie]=new m(y,$[ie])}return T}e.createCheckers=h;var m=(function(){function g(f,y,T){if(T===void 0&&(T="value"),this.suite=f,this.ttype=y,this._path=T,this.props=new Map,y instanceof s.TIface)for(var S=0,C=y.props;S<C.length;S++){var $=C[S];this.props.set($.name,$.ttype)}this.checkerPlain=this.ttype.getChecker(f,!1),this.checkerStrict=this.ttype.getChecker(f,!0)}return g.prototype.setReportedPath=function(f){this._path=f},g.prototype.check=function(f){return this._doCheck(this.checkerPlain,f)},g.prototype.test=function(f){return this.checkerPlain(f,new o.NoopContext)},g.prototype.validate=function(f){return this._doValidate(this.checkerPlain,f)},g.prototype.strictCheck=function(f){return this._doCheck(this.checkerStrict,f)},g.prototype.strictTest=function(f){return this.checkerStrict(f,new o.NoopContext)},g.prototype.strictValidate=function(f){return this._doValidate(this.checkerStrict,f)},g.prototype.getProp=function(f){var y=this.props.get(f);if(!y)throw new Error("Type has no property "+f);return new g(this.suite,y,this._path+"."+f)},g.prototype.methodArgs=function(f){var y=this._getMethod(f);return new g(this.suite,y.paramList)},g.prototype.methodResult=function(f){var y=this._getMethod(f);return new g(this.suite,y.result)},g.prototype.getArgs=function(){if(!(this.ttype instanceof s.TFunc))throw new Error("getArgs() applied to non-function");return new g(this.suite,this.ttype.paramList)},g.prototype.getResult=function(){if(!(this.ttype instanceof s.TFunc))throw new Error("getResult() applied to non-function");return new g(this.suite,this.ttype.result)},g.prototype.getType=function(){return this.ttype},g.prototype._doCheck=function(f,y){var T=new o.NoopContext;if(!f(y,T)){var S=new o.DetailContext;throw f(y,S),S.getError(this._path)}},g.prototype._doValidate=function(f,y){var T=new o.NoopContext;if(f(y,T))return null;var S=new o.DetailContext;return f(y,S),S.getErrorDetail(this._path)},g.prototype._getMethod=function(f){var y=this.props.get(f);if(!y)throw new Error("Type has no property "+f);if(!(y instanceof s.TFunc))throw new Error("Property "+f+" is not a method");return y},g})();e.Checker=m})(mt)),mt}var G=ei();const ti=G.union(G.lit("jsx"),G.lit("typescript"),G.lit("flow"),G.lit("imports"),G.lit("react-hot-loader"),G.lit("jest")),ni=G.iface([],{compiledFilename:"string"}),si=G.iface([],{transforms:G.array("Transform"),disableESTransforms:G.opt("boolean"),jsxRuntime:G.opt(G.union(G.lit("classic"),G.lit("automatic"),G.lit("preserve"))),production:G.opt("boolean"),jsxImportSource:G.opt("string"),jsxPragma:G.opt("string"),jsxFragmentPragma:G.opt("string"),keepUnusedImports:G.opt("boolean"),preserveDynamicImport:G.opt("boolean"),injectCreateRequireForImportRequire:G.opt("boolean"),enableLegacyTypeScriptModuleInterop:G.opt("boolean"),enableLegacyBabel5ModuleInterop:G.opt("boolean"),sourceMapOptions:G.opt("SourceMapOptions"),filePath:G.opt("string")}),ri={Transform:ti,SourceMapOptions:ni,Options:si},{Options:oi}=G.createCheckers(ri);function ii(e){oi.strictCheck(e)}function q1(){k(),ue(!1)}function M1(e){k(),Qt(e)}function Je(e){P(),ks(e)}function Bt(){P(),r.tokens[r.tokens.length-1].identifierRole=v.ImportDeclaration}function ks(e){let n;r.scopeDepth===0?n=v.TopLevelDeclaration:e?n=v.BlockScopedDeclaration:n=v.FunctionScopedDeclaration,r.tokens[r.tokens.length-1].identifierRole=n}function Qt(e){switch(r.type){case t._this:{const n=M(0);k(),q(n);return}case t._yield:case t.name:{r.type=t.name,Je(e);return}case t.bracketL:{k(),gs(t.bracketR,e,!0);return}case t.braceL:vs(!0,e);return;default:j()}}function gs(e,n,s=!1,o=!1,i=0){let c=!0,h=!1;const m=r.tokens.length;for(;!p(e)&&!r.error;)if(c?c=!1:(d(t.comma),r.tokens[r.tokens.length-1].contextId=i,!h&&r.tokens[m].isType&&(r.tokens[r.tokens.length-1].isType=!0,h=!0)),!(s&&a(t.comma))){if(p(e))break;if(a(t.ellipsis)){M1(n),B1(),p(t.comma),d(e);break}else ai(o,n)}}function ai(e,n){e&&_s([l._public,l._protected,l._private,l._readonly,l._override]),$t(n),B1(),$t(n,!0)}function B1(){H?Ac():B&&da()}function $t(e,n=!1){if(n||Qt(e),!p(t.eq))return;const s=r.tokens.length-1;ue(),r.tokens[s].rhsEndIndex=r.tokens.length}function ss(){return a(t.name)}function ci(){return a(t.name)||!!(r.type&t.IS_KEYWORD)||a(t.string)||a(t.num)||a(t.bigint)||a(t.decimal)}function $1(){const e=r.snapshot();return k(),(a(t.bracketL)||a(t.braceL)||a(t.star)||a(t.ellipsis)||a(t.hash)||ci())&&!ge()?!0:(r.restoreFromSnapshot(e),!1)}function _s(e){for(;U1(e)!==null;);}function U1(e){if(!a(t.name))return null;const n=r.contextualKeyword;if(e.indexOf(n)!==-1&&$1()){switch(n){case l._readonly:r.tokens[r.tokens.length-1].type=t._readonly;break;case l._abstract:r.tokens[r.tokens.length-1].type=t._abstract;break;case l._static:r.tokens[r.tokens.length-1].type=t._static;break;case l._public:r.tokens[r.tokens.length-1].type=t._public;break;case l._private:r.tokens[r.tokens.length-1].type=t._private;break;case l._protected:r.tokens[r.tokens.length-1].type=t._protected;break;case l._override:r.tokens[r.tokens.length-1].type=t._override;break;case l._declare:r.tokens[r.tokens.length-1].type=t._declare;break}return n}return null}function vt(){for(P();p(t.dot);)P()}function li(){vt(),!ge()&&a(t.lessThan)&&ut()}function ui(){k(),Nt()}function hi(){k()}function pi(){d(t._typeof),a(t._import)?H1():vt(),!ge()&&a(t.lessThan)&&ut()}function H1(){d(t._import),d(t.parenL),d(t.string),d(t.parenR),p(t.dot)&&vt(),a(t.lessThan)&&ut()}function fi(){p(t._const);const e=p(t._in),n=oe(l._out);p(t._const),(e||n)&&!a(t.name)?r.tokens[r.tokens.length-1].type=t.name:P(),p(t._extends)&&K(),p(t.eq)&&K()}function st(){a(t.lessThan)&&Yt()}function Yt(){const e=M(0);for(a(t.lessThan)||a(t.typeParameterStart)?k():j();!p(t.greaterThan)&&!r.error;)fi(),p(t.comma);q(e)}function xs(e){const n=e===t.arrow;st(),d(t.parenL),r.scopeDepth++,mi(!1),r.scopeDepth--,(n||a(e))&&bt(e)}function mi(e){gs(t.parenR,e)}function Ut(){p(t.comma)||J()}function n1(){xs(t.colon),Ut()}function di(){const e=r.snapshot();k();const n=p(t.name)&&a(t.colon);return r.restoreFromSnapshot(e),n}function V1(){if(!(a(t.bracketL)&&di()))return!1;const e=M(0);return d(t.bracketL),P(),Nt(),d(t.bracketR),lt(),Ut(),q(e),!0}function s1(e){p(t.question),!e&&(a(t.parenL)||a(t.lessThan))?(xs(t.colon),Ut()):(lt(),Ut())}function ki(){if(a(t.parenL)||a(t.lessThan)){n1();return}if(a(t._new)){k(),a(t.parenL)||a(t.lessThan)?n1():s1(!1);return}const e=!!U1([l._readonly]);V1()||((E(l._get)||E(l._set))&&$1(),wt(-1),s1(e))}function gi(){W1()}function W1(){for(d(t.braceL);!p(t.braceR)&&!r.error;)ki()}function _i(){const e=r.snapshot(),n=xi();return r.restoreFromSnapshot(e),n}function xi(){return k(),p(t.plus)||p(t.minus)?E(l._readonly):(E(l._readonly)&&k(),!a(t.bracketL)||(k(),!ss())?!1:(k(),a(t._in)))}function yi(){P(),d(t._in),K()}function Ii(){d(t.braceL),a(t.plus)||a(t.minus)?(k(),se(l._readonly)):oe(l._readonly),d(t.bracketL),yi(),oe(l._as)&&K(),d(t.bracketR),a(t.plus)||a(t.minus)?(k(),d(t.question)):p(t.question),Oi(),J(),d(t.braceR)}function bi(){for(d(t.bracketL);!p(t.bracketR)&&!r.error;)wi(),p(t.comma)}function wi(){p(t.ellipsis)?K():(K(),p(t.question)),p(t.colon)&&K()}function Ti(){d(t.parenL),K(),d(t.parenR)}function Ai(){for(We(),We();!a(t.backQuote)&&!r.error;)d(t.dollarBraceL),K(),We(),We();k()}var Xe;(function(e){e[e.TSFunctionType=0]="TSFunctionType";const s=1;e[e.TSConstructorType=s]="TSConstructorType";const o=s+1;e[e.TSAbstractConstructorType=o]="TSAbstractConstructorType"})(Xe||(Xe={}));function Zn(e){e===Xe.TSAbstractConstructorType&&se(l._abstract),(e===Xe.TSConstructorType||e===Xe.TSAbstractConstructorType)&&d(t._new);const n=r.inDisallowConditionalTypesContext;r.inDisallowConditionalTypesContext=!1,xs(t.arrow),r.inDisallowConditionalTypesContext=n}function Ei(){switch(r.type){case t.name:li();return;case t._void:case t._null:k();return;case t.string:case t.num:case t.bigint:case t.decimal:case t._true:case t._false:ct();return;case t.minus:k(),ct();return;case t._this:{hi(),E(l._is)&&!ge()&&ui();return}case t._typeof:pi();return;case t._import:H1();return;case t.braceL:_i()?Ii():gi();return;case t.bracketL:bi();return;case t.parenL:Ti();return;case t.backQuote:Ai();return;default:if(r.type&t.IS_KEYWORD){k(),r.tokens[r.tokens.length-1].type=t.name;return}break}j()}function Si(){for(Ei();!ge()&&p(t.bracketL);)p(t.bracketR)||(K(),d(t.bracketR))}function vi(){if(se(l._infer),P(),a(t._extends)){const e=r.snapshot();d(t._extends);const n=r.inDisallowConditionalTypesContext;r.inDisallowConditionalTypesContext=!0,K(),r.inDisallowConditionalTypesContext=n,(r.error||!r.inDisallowConditionalTypesContext&&a(t.question))&&r.restoreFromSnapshot(e)}}function rs(){if(E(l._keyof)||E(l._unique)||E(l._readonly))k(),rs();else if(E(l._infer))vi();else{const e=r.inDisallowConditionalTypesContext;r.inDisallowConditionalTypesContext=!1,Si(),r.inDisallowConditionalTypesContext=e}}function r1(){if(p(t.bitwiseAND),rs(),a(t.bitwiseAND))for(;p(t.bitwiseAND);)rs()}function Ni(){if(p(t.bitwiseOR),r1(),a(t.bitwiseOR))for(;p(t.bitwiseOR);)r1()}function Ci(){return a(t.lessThan)?!0:a(t.parenL)&&Ri()}function Pi(){if(a(t.name)||a(t._this))return k(),!0;if(a(t.braceL)||a(t.bracketL)){let e=1;for(k();e>0&&!r.error;)a(t.braceL)||a(t.bracketL)?e++:(a(t.braceR)||a(t.bracketR))&&e--,k();return!0}return!1}function Ri(){const e=r.snapshot(),n=Li();return r.restoreFromSnapshot(e),n}function Li(){return k(),!!(a(t.parenR)||a(t.ellipsis)||Pi()&&(a(t.colon)||a(t.comma)||a(t.question)||a(t.eq)||a(t.parenR)&&(k(),a(t.arrow))))}function bt(e){const n=M(0);d(e),Fi()||K(),q(n)}function Di(){a(t.colon)&&bt(t.colon)}function lt(){a(t.colon)&&Nt()}function Oi(){p(t.colon)&&K()}function Fi(){const e=r.snapshot();return E(l._asserts)?(k(),oe(l._is)?(K(),!0):ss()||a(t._this)?(k(),oe(l._is)&&K(),!0):(r.restoreFromSnapshot(e),!1)):ss()||a(t._this)?(k(),E(l._is)&&!ge()?(k(),K(),!0):(r.restoreFromSnapshot(e),!1)):!1}function Nt(){const e=M(0);d(t.colon),K(),q(e)}function K(){if(o1(),r.inDisallowConditionalTypesContext||ge()||!p(t._extends))return;const e=r.inDisallowConditionalTypesContext;r.inDisallowConditionalTypesContext=!0,o1(),r.inDisallowConditionalTypesContext=e,d(t.question),K(),d(t.colon),K()}function ji(){return E(l._abstract)&&Z()===t._new}function o1(){if(Ci()){Zn(Xe.TSFunctionType);return}if(a(t._new)){Zn(Xe.TSConstructorType);return}else if(ji()){Zn(Xe.TSAbstractConstructorType);return}Ni()}function qi(){const e=M(1);K(),d(t.greaterThan),q(e),Ct()}function Mi(){if(p(t.jsxTagStart)){r.tokens[r.tokens.length-1].type=t.typeParameterStart;const e=M(1);for(;!a(t.greaterThan)&&!r.error;)K(),p(t.comma);be(),q(e)}}function X1(){for(;!a(t.braceL)&&!r.error;)Bi(),p(t.comma)}function Bi(){vt(),a(t.lessThan)&&ut()}function $i(){Je(!1),st(),p(t._extends)&&X1(),W1()}function Ui(){Je(!1),st(),d(t.eq),K(),J()}function Hi(){if(a(t.string)?ct():P(),p(t.eq)){const e=r.tokens.length-1;ue(),r.tokens[e].rhsEndIndex=r.tokens.length}}function ys(){for(Je(!1),d(t.braceL);!p(t.braceR)&&!r.error;)Hi(),p(t.comma)}function Is(){d(t.braceL),tn(t.braceR)}function os(){Je(!1),p(t.dot)?os():Is()}function G1(){E(l._global)?P():a(t.string)?Me():j(),a(t.braceL)?Is():J()}function is(){Bt(),d(t.eq),Wi(),J()}function Vi(){return E(l._require)&&Z()===t.parenL}function Wi(){Vi()?Xi():vt()}function Xi(){se(l._require),d(t.parenL),a(t.string)||j(),ct(),d(t.parenR)}function Gi(){if(Ce())return!1;switch(r.type){case t._function:{const e=M(1);k();const n=r.start;return tt(n,!0),q(e),!0}case t._class:{const e=M(1);return nt(!0,!1),q(e),!0}case t._const:if(a(t._const)&&fs(l._enum)){const e=M(1);return d(t._const),se(l._enum),r.tokens[r.tokens.length-1].type=t._enum,ys(),q(e),!0}case t._var:case t._let:{const e=M(1);return jt(r.type!==t._var),q(e),!0}case t.name:{const e=M(1),n=r.contextualKeyword;let s=!1;return n===l._global?(G1(),s=!0):s=Zt(n,!0),q(e),s}default:return!1}}function i1(){return Zt(r.contextualKeyword,!0)}function zi(e){switch(e){case l._declare:{const n=r.tokens.length-1;if(Gi())return r.tokens[n].type=t._declare,!0;break}case l._global:if(a(t.braceL))return Is(),!0;break;default:return Zt(e,!1)}return!1}function Zt(e,n){switch(e){case l._abstract:if(it(n)&&a(t._class))return r.tokens[r.tokens.length-1].type=t._abstract,nt(!0,!1),!0;break;case l._enum:if(it(n)&&a(t.name))return r.tokens[r.tokens.length-1].type=t._enum,ys(),!0;break;case l._interface:if(it(n)&&a(t.name)){const s=M(n?2:1);return $i(),q(s),!0}break;case l._module:if(it(n)){if(a(t.string)){const s=M(n?2:1);return G1(),q(s),!0}else if(a(t.name)){const s=M(n?2:1);return os(),q(s),!0}}break;case l._namespace:if(it(n)&&a(t.name)){const s=M(n?2:1);return os(),q(s),!0}break;case l._type:if(it(n)&&a(t.name)){const s=M(n?2:1);return Ui(),q(s),!0}break}return!1}function it(e){return e?(k(),!0):!Ce()}function Ji(){const e=r.snapshot();return Yt(),ht(),Di(),d(t.arrow),r.error?(r.restoreFromSnapshot(e),!1):(Pt(!0),!0)}function bs(){r.type===t.bitShiftL&&(r.pos-=1,F(t.lessThan)),ut()}function ut(){const e=M(0);for(d(t.lessThan);!a(t.greaterThan)&&!r.error;)K(),p(t.comma);e?(d(t.greaterThan),q(e)):(q(e),C1(),d(t.greaterThan),r.tokens[r.tokens.length-1].isType=!0)}function z1(){if(a(t.name))switch(r.contextualKeyword){case l._abstract:case l._declare:case l._enum:case l._interface:case l._module:case l._namespace:case l._type:return!0}return!1}function Qi(e,n){if(a(t.colon)&&bt(t.colon),!a(t.braceL)&&Ce()){let s=r.tokens.length-1;for(;s>=0&&(r.tokens[s].start>=e||r.tokens[s].type===t._default||r.tokens[s].type===t._export);)r.tokens[s].isType=!0,s--;return}Pt(!1,n)}function Yi(e,n,s){if(!ge()&&p(t.bang)){r.tokens[r.tokens.length-1].type=t.nonNullAssertion;return}if(a(t.lessThan)||a(t.bitShiftL)){const o=r.snapshot();if(!n&&nr()&&Ji())return;if(bs(),!n&&p(t.parenL)?(r.tokens[r.tokens.length-1].subscriptStartIndex=e,Ge()):a(t.backQuote)?Ss():(r.type===t.greaterThan||r.type!==t.parenL&&r.type&t.IS_EXPRESSION_START&&!ge())&&j(),r.error)r.restoreFromSnapshot(o);else return}else!n&&a(t.questionDot)&&Z()===t.lessThan&&(k(),r.tokens[e].isOptionalChainStart=!0,r.tokens[r.tokens.length-1].subscriptStartIndex=e,ut(),d(t.parenL),Ge());Ts(e,n,s)}function Zi(){if(p(t._import))return E(l._type)&&Z()!==t.eq&&se(l._type),is(),!0;if(p(t.eq))return le(),J(),!0;if(oe(l._as))return se(l._namespace),P(),J(),!0;if(E(l._type)){const e=Z();(e===t.braceL||e===t.star)&&k()}return!1}function Ki(){if(P(),a(t.comma)||a(t.braceR)){r.tokens[r.tokens.length-1].identifierRole=v.ImportDeclaration;return}if(P(),a(t.comma)||a(t.braceR)){r.tokens[r.tokens.length-1].identifierRole=v.ImportDeclaration,r.tokens[r.tokens.length-2].isType=!0,r.tokens[r.tokens.length-1].isType=!0;return}if(P(),a(t.comma)||a(t.braceR)){r.tokens[r.tokens.length-3].identifierRole=v.ImportAccess,r.tokens[r.tokens.length-1].identifierRole=v.ImportDeclaration;return}P(),r.tokens[r.tokens.length-3].identifierRole=v.ImportAccess,r.tokens[r.tokens.length-1].identifierRole=v.ImportDeclaration,r.tokens[r.tokens.length-4].isType=!0,r.tokens[r.tokens.length-3].isType=!0,r.tokens[r.tokens.length-2].isType=!0,r.tokens[r.tokens.length-1].isType=!0}function ea(){if(P(),a(t.comma)||a(t.braceR)){r.tokens[r.tokens.length-1].identifierRole=v.ExportAccess;return}if(P(),a(t.comma)||a(t.braceR)){r.tokens[r.tokens.length-1].identifierRole=v.ExportAccess,r.tokens[r.tokens.length-2].isType=!0,r.tokens[r.tokens.length-1].isType=!0;return}if(P(),a(t.comma)||a(t.braceR)){r.tokens[r.tokens.length-3].identifierRole=v.ExportAccess;return}P(),r.tokens[r.tokens.length-3].identifierRole=v.ExportAccess,r.tokens[r.tokens.length-4].isType=!0,r.tokens[r.tokens.length-3].isType=!0,r.tokens[r.tokens.length-2].isType=!0,r.tokens[r.tokens.length-1].isType=!0}function ta(){if(E(l._abstract)&&Z()===t._class)return r.type=t._abstract,k(),nt(!0,!0),!0;if(E(l._interface)){const e=M(2);return Zt(l._interface,!0),q(e),!0}return!1}function na(){if(r.type===t._const){const e=St();if(e.type===t.name&&e.contextualKeyword===l._enum)return d(t._const),se(l._enum),r.tokens[r.tokens.length-1].type=t._enum,ys(),!0}return!1}function sa(e){const n=r.tokens.length;_s([l._abstract,l._readonly,l._declare,l._static,l._override]);const s=r.tokens.length;if(V1()){const i=e?n-1:n;for(let c=i;c<s;c++)r.tokens[c].isType=!0;return!0}return!1}function ra(e){zi(e)||J()}function oa(){const e=oe(l._declare);e&&(r.tokens[r.tokens.length-1].type=t._declare);let n=!1;if(a(t.name))if(e){const s=M(2);n=i1(),q(s)}else n=i1();if(!n)if(e){const s=M(2);Ie(!0),q(s)}else Ie(!0)}function ia(e){if(e&&(a(t.lessThan)||a(t.bitShiftL))&&bs(),oe(l._implements)){r.tokens[r.tokens.length-1].type=t._implements;const n=M(1);X1(),q(n)}}function aa(){st()}function ca(){st()}function la(){const e=M(0);ge()||p(t.bang),lt(),q(e)}function ua(){a(t.colon)&&Nt()}function ha(e,n){return zt?pa(e,n):fa(e,n)}function pa(e,n){if(!a(t.lessThan))return Pe(e,n);const s=r.snapshot();let o=Pe(e,n);if(r.error)r.restoreFromSnapshot(s);else return o;return r.type=t.typeParameterStart,Yt(),o=Pe(e,n),o||j(),o}function fa(e,n){if(!a(t.lessThan))return Pe(e,n);const s=r.snapshot();Yt();const o=Pe(e,n);if(o||j(),r.error)r.restoreFromSnapshot(s);else return o;return Pe(e,n)}function ma(){if(a(t.colon)){const e=r.snapshot();bt(t.colon),ye()&&j(),a(t.arrow)||j(),r.error&&r.restoreFromSnapshot(e)}return p(t.arrow)}function da(){const e=M(0);p(t.question),lt(),q(e)}function ka(){(a(t.lessThan)||a(t.bitShiftL))&&bs(),mr()}function ga(){let e=!1,n=!1;for(;;){if(r.pos>=b.length){j("Unterminated JSX contents");return}const s=b.charCodeAt(r.pos);if(s===u.lessThan||s===u.leftCurlyBrace){if(r.pos===r.start){if(s===u.lessThan){r.pos++,F(t.jsxTagStart);return}P1(s);return}F(e&&!n?t.jsxEmptyText:t.jsxText);return}s===u.lineFeed?e=!0:s!==u.space&&s!==u.carriageReturn&&s!==u.tab&&(n=!0),r.pos++}}function _a(e){for(r.pos++;;){if(r.pos>=b.length){j("Unterminated string constant");return}if(b.charCodeAt(r.pos)===e){r.pos++;break}r.pos++}F(t.string)}function xa(){let e;do{if(r.pos>b.length){j("Unexpectedly reached the end of input.");return}e=b.charCodeAt(++r.pos)}while(Ae[e]||e===u.dash);F(t.jsxName)}function as(){be()}function J1(e){if(as(),!p(t.colon)){r.tokens[r.tokens.length-1].identifierRole=e;return}as()}function Q1(){const e=r.tokens.length;J1(v.Access);let n=!1;for(;a(t.dot);)n=!0,be(),as();if(!n){const s=r.tokens[e],o=b.charCodeAt(s.start);o>=u.lowercaseA&&o<=u.lowercaseZ&&(s.identifierRole=null)}}function ya(){switch(r.type){case t.braceL:k(),le(),be();return;case t.jsxTagStart:Z1(),be();return;case t.string:be();return;default:j("JSX value should be either an expression or a quoted JSX text")}}function Ia(){d(t.ellipsis),le()}function ba(e){if(a(t.jsxTagEnd))return!1;Q1(),B&&Mi();let n=!1;for(;!a(t.slash)&&!a(t.jsxTagEnd)&&!r.error;){if(p(t.braceL)){n=!0,d(t.ellipsis),ue(),be();continue}n&&r.end-r.start===3&&b.charCodeAt(r.start)===u.lowercaseK&&b.charCodeAt(r.start+1)===u.lowercaseE&&b.charCodeAt(r.start+2)===u.lowercaseY&&(r.tokens[e].jsxRole=Te.KeyAfterPropSpread),J1(v.ObjectKey),a(t.eq)&&(be(),ya())}const s=a(t.slash);return s&&be(),s}function wa(){a(t.jsxTagEnd)||Q1()}function Y1(){const e=r.tokens.length-1;r.tokens[e].jsxRole=Te.NoChildren;let n=0;if(!ba(e))for(at();;)switch(r.type){case t.jsxTagStart:if(be(),a(t.slash)){be(),wa(),r.tokens[e].jsxRole!==Te.KeyAfterPropSpread&&(n===1?r.tokens[e].jsxRole=Te.OneChild:n>1&&(r.tokens[e].jsxRole=Te.StaticChildren));return}n++,Y1(),at();break;case t.jsxText:n++,at();break;case t.jsxEmptyText:at();break;case t.braceL:k(),a(t.ellipsis)?(Ia(),at(),n+=2):(a(t.braceR)||(n++,le()),at());break;default:j();return}}function Z1(){be(),Y1()}function be(){r.tokens.push(new Jt),v1(),r.start=r.pos;const e=b.charCodeAt(r.pos);if(Et[e])xa();else if(e===u.quotationMark||e===u.apostrophe)_a(e);else switch(++r.pos,e){case u.greaterThan:F(t.jsxTagEnd);break;case u.lessThan:F(t.jsxTagStart);break;case u.slash:F(t.slash);break;case u.equalsTo:F(t.eq);break;case u.leftCurlyBrace:F(t.braceL);break;case u.dot:F(t.dot);break;case u.colon:F(t.colon);break;default:j()}}function at(){r.tokens.push(new Jt),r.start=r.pos,ga()}function Ta(e){if(a(t.question)){const n=Z();if(n===t.colon||n===t.comma||n===t.parenR)return}K1(e)}function Aa(){w1(t.question),a(t.colon)&&(B?Nt():H&&rt())}class Ea{constructor(n){this.stop=n}}function le(e=!1){if(ue(e),a(t.comma))for(;p(t.comma);)ue(e)}function ue(e=!1,n=!1){return B?ha(e,n):H?Pc(e,n):Pe(e,n)}function Pe(e,n){if(a(t._yield))return Ua(),!1;(a(t.parenL)||a(t.name)||a(t._yield))&&(r.potentialArrowAt=r.start);const s=Sa(e);return n&&Es(),r.type&t.IS_ASSIGN?(k(),ue(e),!1):s}function Sa(e){return Na(e)?!0:(va(e),!1)}function va(e){B||H?Ta(e):K1(e)}function K1(e){p(t.question)&&(ue(),d(t.colon),ue(e))}function Na(e){const n=r.tokens.length;return Ct()?!0:(Ot(n,-1,e),!1)}function Ot(e,n,s){if(B&&(t._in&t.PRECEDENCE_MASK)>n&&!ge()&&(oe(l._as)||oe(l._satisfies))){const i=M(1);K(),q(i),C1(),Ot(e,n,s);return}const o=r.type&t.PRECEDENCE_MASK;if(o>0&&(!s||!a(t._in))&&o>n){const i=r.type;k(),i===t.nullishCoalescing&&(r.tokens[r.tokens.length-1].nullishStartIndex=e);const c=r.tokens.length;Ct(),Ot(c,i&t.IS_RIGHT_ASSOCIATIVE?o-1:o,s),i===t.nullishCoalescing&&(r.tokens[e].numNullishCoalesceStarts++,r.tokens[r.tokens.length-1].numNullishCoalesceEnds++),Ot(e,n,s)}}function Ct(){if(B&&!zt&&p(t.lessThan))return qi(),!1;if(E(l._module)&&A1()===u.leftCurlyBrace&&!_1())return Ha(),!1;if(r.type&t.IS_PREFIX)return k(),Ct(),!1;if(er())return!0;for(;r.type&t.IS_POSTFIX&&!ye();)r.type===t.preIncDec&&(r.type=t.postIncDec),k();return!1}function er(){const e=r.tokens.length;return Me()?!0:(ws(e),r.tokens.length>e&&r.tokens[e].isOptionalChainStart&&(r.tokens[r.tokens.length-1].isOptionalChainEnd=!0),!1)}function ws(e,n=!1){H?Lc(e,n):tr(e,n)}function tr(e,n=!1){const s=new Ea(!1);do Ca(e,n,s);while(!s.stop&&!r.error)}function Ca(e,n,s){B?Yi(e,n,s):H?fc(e,n,s):Ts(e,n,s)}function Ts(e,n,s){if(!n&&p(t.doubleColon))As(),s.stop=!0,ws(e,n);else if(a(t.questionDot)){if(r.tokens[e].isOptionalChainStart=!0,n&&Z()===t.parenL){s.stop=!0;return}k(),r.tokens[r.tokens.length-1].subscriptStartIndex=e,p(t.bracketL)?(le(),d(t.bracketR)):p(t.parenL)?Ge():Ht()}else if(p(t.dot))r.tokens[r.tokens.length-1].subscriptStartIndex=e,Ht();else if(p(t.bracketL))r.tokens[r.tokens.length-1].subscriptStartIndex=e,le(),d(t.bracketR);else if(!n&&a(t.parenL))if(nr()){const o=r.snapshot(),i=r.tokens.length;k(),r.tokens[r.tokens.length-1].subscriptStartIndex=e;const c=yt();r.tokens[r.tokens.length-1].contextId=c,Ge(),r.tokens[r.tokens.length-1].contextId=c,Pa()&&(r.restoreFromSnapshot(o),s.stop=!0,r.scopeDepth++,ht(),Ra(i))}else{k(),r.tokens[r.tokens.length-1].subscriptStartIndex=e;const o=yt();r.tokens[r.tokens.length-1].contextId=o,Ge(),r.tokens[r.tokens.length-1].contextId=o}else a(t.backQuote)?Ss():s.stop=!0}function nr(){return r.tokens[r.tokens.length-1].contextualKeyword===l._async&&!ye()}function Ge(){let e=!0;for(;!p(t.parenR)&&!r.error;){if(e)e=!1;else if(d(t.comma),p(t.parenR))break;ir(!1)}}function Pa(){return a(t.colon)||a(t.arrow)}function Ra(e){B?ua():H&&Cc(),d(t.arrow),Tt(e)}function As(){const e=r.tokens.length;Me(),ws(e,!0)}function Me(){if(p(t.modulo))return P(),!1;if(a(t.jsxText)||a(t.jsxEmptyText))return ct(),!1;if(a(t.lessThan)&&zt)return r.type=t.jsxTagStart,Z1(),k(),!1;const e=r.potentialArrowAt===r.start;switch(r.type){case t.slash:case t.assign:io();case t._super:case t._this:case t.regexp:case t.num:case t.bigint:case t.decimal:case t.string:case t._null:case t._true:case t._false:return k(),!1;case t._import:return k(),a(t.dot)&&(r.tokens[r.tokens.length-1].type=t.name,k(),P()),!1;case t.name:{const n=r.tokens.length,s=r.start,o=r.contextualKeyword;return P(),o===l._await?($a(),!1):o===l._async&&a(t._function)&&!ye()?(k(),tt(s,!1),!1):e&&o===l._async&&!ye()&&a(t.name)?(r.scopeDepth++,Je(!1),d(t.arrow),Tt(n),!0):a(t._do)&&!ye()?(k(),ze(),!1):e&&!ye()&&a(t.arrow)?(r.scopeDepth++,ks(!1),d(t.arrow),Tt(n),!0):(r.tokens[r.tokens.length-1].identifierRole=v.Access,!1)}case t._do:return k(),ze(),!1;case t.parenL:return sr(e);case t.bracketL:return k(),or(t.bracketR,!0),!1;case t.braceL:return vs(!1,!1),!1;case t._function:return La(),!1;case t.at:js();case t._class:return nt(!1),!1;case t._new:return Oa(),!1;case t.backQuote:return Ss(),!1;case t.doubleColon:return k(),As(),!1;case t.hash:{const n=A1();return Et[n]||n===u.backslash?Ht():k(),!1}default:return j(),!1}}function Ht(){p(t.hash),P()}function La(){const e=r.start;P(),p(t.dot)&&P(),tt(e,!1)}function ct(){k()}function Kt(){d(t.parenL),le(),d(t.parenR)}function sr(e){const n=r.snapshot(),s=r.tokens.length;d(t.parenL);let o=!0;for(;!a(t.parenR)&&!r.error;){if(o)o=!1;else if(d(t.comma),a(t.parenR))break;if(a(t.ellipsis)){M1(!1),Es();break}else ue(!1,!0)}return d(t.parenR),e&&Da()&&cs()?(r.restoreFromSnapshot(n),r.scopeDepth++,ht(),cs(),Tt(s),r.error?(r.restoreFromSnapshot(n),sr(!1),!1):!0):!1}function Da(){return a(t.colon)||!ye()}function cs(){return B?ma():H?Rc():p(t.arrow)}function Es(){(B||H)&&Aa()}function Oa(){if(d(t._new),p(t.dot)){P();return}Fa(),H&&mc(),p(t.parenL)&&or(t.parenR)}function Fa(){As(),p(t.questionDot)}function Ss(){for(We(),We();!a(t.backQuote)&&!r.error;)d(t.dollarBraceL),le(),We(),We();k()}function vs(e,n){const s=yt();let o=!0;for(k(),r.tokens[r.tokens.length-1].contextId=s;!p(t.braceR)&&!r.error;){if(o)o=!1;else if(d(t.comma),p(t.braceR))break;let i=!1;if(a(t.ellipsis)){const c=r.tokens.length;if(q1(),e&&(r.tokens.length===c+2&&ks(n),p(t.braceR)))break;continue}e||(i=p(t.star)),!e&&E(l._async)?(i&&j(),P(),a(t.colon)||a(t.parenL)||a(t.braceR)||a(t.eq)||a(t.comma)||(a(t.star)&&(k(),i=!0),wt(s))):wt(s),Ba(e,n,s)}r.tokens[r.tokens.length-1].contextId=s}function ja(e){return!e&&(a(t.string)||a(t.num)||a(t.bracketL)||a(t.name)||!!(r.type&t.IS_KEYWORD))}function qa(e,n){const s=r.start;return a(t.parenL)?(e&&j(),ls(s,!1),!0):ja(e)?(wt(n),ls(s,!1),!0):!1}function Ma(e,n){if(p(t.colon)){e?$t(n):ue(!1);return}let s;e?r.scopeDepth===0?s=v.ObjectShorthandTopLevelDeclaration:n?s=v.ObjectShorthandBlockScopedDeclaration:s=v.ObjectShorthandFunctionScopedDeclaration:s=v.ObjectShorthand,r.tokens[r.tokens.length-1].identifierRole=s,$t(n,!0)}function Ba(e,n,s){B?aa():H&&Tc(),qa(e,s)||Ma(e,n)}function wt(e){H&&Fs(),p(t.bracketL)?(r.tokens[r.tokens.length-1].contextId=e,ue(),d(t.bracketR),r.tokens[r.tokens.length-1].contextId=e):(a(t.num)||a(t.string)||a(t.bigint)||a(t.decimal)?Me():Ht(),r.tokens[r.tokens.length-1].identifierRole=v.ObjectKey,r.tokens[r.tokens.length-1].contextId=e)}function ls(e,n){const s=yt();r.scopeDepth++;const o=r.tokens.length;ht(n,s),rr(e,s);const c=r.tokens.length;r.scopes.push(new Re(o,c,!0)),r.scopeDepth--}function Tt(e){Pt(!0);const n=r.tokens.length;r.scopes.push(new Re(e,n,!0)),r.scopeDepth--}function rr(e,n=0){B?Qi(e,n):H?pc(n):Pt(!1,n)}function Pt(e,n=0){e&&!a(t.braceL)?ue():ze(!0,n)}function or(e,n=!1){let s=!0;for(;!p(e)&&!r.error;){if(s)s=!1;else if(d(t.comma),p(e))break;ir(n)}}function ir(e){e&&a(t.comma)||(a(t.ellipsis)?(q1(),Es()):a(t.question)?k():ue(!1,!0))}function P(){k(),r.tokens[r.tokens.length-1].type=t.name}function $a(){Ct()}function Ua(){k(),!a(t.semi)&&!ye()&&(p(t.star),ue())}function Ha(){se(l._module),d(t.braceL),tn(t.braceR)}function Va(e){return(e.type===t.name||!!(e.type&t.IS_KEYWORD))&&e.contextualKeyword!==l._from}function Le(e){const n=M(0);d(e||t.colon),xe(),q(n)}function a1(){d(t.modulo),se(l._checks),p(t.parenL)&&(le(),d(t.parenR))}function Ns(){const e=M(0);d(t.colon),a(t.modulo)?a1():(xe(),a(t.modulo)&&a1()),q(e)}function Wa(){k(),Cs(!0)}function Xa(){k(),P(),a(t.lessThan)&&Se(),d(t.parenL),hs(),d(t.parenR),Ns(),J()}function us(){a(t._class)?Wa():a(t._function)?Xa():a(t._var)?Ga():oe(l._module)?p(t.dot)?Qa():za():E(l._type)?Ya():E(l._opaque)?Za():E(l._interface)?Ka():a(t._export)?Ja():j()}function Ga(){k(),ur(),J()}function za(){for(a(t.string)?Me():P(),d(t.braceL);!a(t.braceR)&&!r.error;)a(t._import)?(k(),yr()):j();d(t.braceR)}function Ja(){d(t._export),p(t._default)?a(t._function)||a(t._class)?us():(xe(),J()):a(t._var)||a(t._function)||a(t._class)||E(l._opaque)?us():a(t.star)||a(t.braceL)||E(l._interface)||E(l._type)||E(l._opaque)?_r():j()}function Qa(){se(l._exports),rt(),J()}function Ya(){k(),Rs()}function Za(){k(),Ls(!0)}function Ka(){k(),Cs()}function Cs(e=!1){if(en(),a(t.lessThan)&&Se(),p(t._extends))do Ft();while(!e&&p(t.comma));if(E(l._mixins)){k();do Ft();while(p(t.comma))}if(E(l._implements)){k();do Ft();while(p(t.comma))}Vt(e,!1,e)}function Ft(){ar(!1),a(t.lessThan)&&et()}function Ps(){Cs()}function en(){P()}function Rs(){en(),a(t.lessThan)&&Se(),Le(t.eq),J()}function Ls(e){se(l._type),en(),a(t.lessThan)&&Se(),a(t.colon)&&Le(t.colon),e||Le(t.eq),J()}function ec(){Fs(),ur(),p(t.eq)&&xe()}function Se(){const e=M(0);a(t.lessThan)||a(t.typeParameterStart)?k():j();do ec(),a(t.greaterThan)||d(t.comma);while(!a(t.greaterThan)&&!r.error);d(t.greaterThan),q(e)}function et(){const e=M(0);for(d(t.lessThan);!a(t.greaterThan)&&!r.error;)xe(),a(t.greaterThan)||d(t.comma);d(t.greaterThan),q(e)}function tc(){if(se(l._interface),p(t._extends))do Ft();while(p(t.comma));Vt(!1,!1,!1)}function Ds(){a(t.num)||a(t.string)?Me():P()}function nc(){Z()===t.colon?(Ds(),Le()):xe(),d(t.bracketR),Le()}function sc(){Ds(),d(t.bracketR),d(t.bracketR),a(t.lessThan)||a(t.parenL)?Os():(p(t.question),Le())}function Os(){for(a(t.lessThan)&&Se(),d(t.parenL);!a(t.parenR)&&!a(t.ellipsis)&&!r.error;)Wt(),a(t.parenR)||d(t.comma);p(t.ellipsis)&&Wt(),d(t.parenR),Le()}function rc(){Os()}function Vt(e,n,s){let o;for(n&&a(t.braceBarL)?(d(t.braceBarL),o=t.braceBarR):(d(t.braceL),o=t.braceR);!a(o)&&!r.error;){if(s&&E(l._proto)){const i=Z();i!==t.colon&&i!==t.question&&(k(),e=!1)}if(e&&E(l._static)){const i=Z();i!==t.colon&&i!==t.question&&k()}if(Fs(),p(t.bracketL))p(t.bracketL)?sc():nc();else if(a(t.parenL)||a(t.lessThan))rc();else{if(E(l._get)||E(l._set)){const i=Z();(i===t.name||i===t.string||i===t.num)&&k()}oc()}ic()}d(o)}function oc(){if(a(t.ellipsis)){if(d(t.ellipsis),p(t.comma)||p(t.semi),a(t.braceR))return;xe()}else Ds(),a(t.lessThan)||a(t.parenL)?Os():(p(t.question),Le())}function ic(){!p(t.semi)&&!p(t.comma)&&!a(t.braceR)&&!a(t.braceBarR)&&j()}function ar(e){for(e||P();p(t.dot);)P()}function ac(){ar(!0),a(t.lessThan)&&et()}function cc(){d(t._typeof),cr()}function lc(){for(d(t.bracketL);r.pos<b.length&&!a(t.bracketR)&&(xe(),!a(t.bracketR));)d(t.comma);d(t.bracketR)}function Wt(){const e=Z();e===t.colon||e===t.question?(P(),p(t.question),Le()):xe()}function hs(){for(;!a(t.parenR)&&!a(t.ellipsis)&&!r.error;)Wt(),a(t.parenR)||d(t.comma);p(t.ellipsis)&&Wt()}function cr(){let e=!1;const n=r.noAnonFunctionType;switch(r.type){case t.name:{if(E(l._interface)){tc();return}P(),ac();return}case t.braceL:Vt(!1,!1,!1);return;case t.braceBarL:Vt(!1,!0,!1);return;case t.bracketL:lc();return;case t.lessThan:Se(),d(t.parenL),hs(),d(t.parenR),d(t.arrow),xe();return;case t.parenL:if(k(),!a(t.parenR)&&!a(t.ellipsis))if(a(t.name)){const s=Z();e=s!==t.question&&s!==t.colon}else e=!0;if(e)if(r.noAnonFunctionType=!1,xe(),r.noAnonFunctionType=n,r.noAnonFunctionType||!(a(t.comma)||a(t.parenR)&&Z()===t.arrow)){d(t.parenR);return}else p(t.comma);hs(),d(t.parenR),d(t.arrow),xe();return;case t.minus:k(),ct();return;case t.string:case t.num:case t._true:case t._false:case t._null:case t._this:case t._void:case t.star:k();return;default:if(r.type===t._typeof){cc();return}else if(r.type&t.IS_KEYWORD){k(),r.tokens[r.tokens.length-1].type=t.name;return}}j()}function uc(){for(cr();!ye()&&(a(t.bracketL)||a(t.questionDot));)p(t.questionDot),d(t.bracketL),p(t.bracketR)||(xe(),d(t.bracketR))}function lr(){p(t.question)?lr():uc()}function c1(){lr(),!r.noAnonFunctionType&&p(t.arrow)&&xe()}function l1(){for(p(t.bitwiseAND),c1();p(t.bitwiseAND);)c1()}function hc(){for(p(t.bitwiseOR),l1();p(t.bitwiseOR);)l1()}function xe(){hc()}function rt(){Le()}function ur(){P(),a(t.colon)&&rt()}function Fs(){(a(t.plus)||a(t.minus))&&(k(),r.tokens[r.tokens.length-1].isType=!0)}function pc(e){a(t.colon)&&Ns(),Pt(!1,e)}function fc(e,n,s){if(a(t.questionDot)&&Z()===t.lessThan){if(n){s.stop=!0;return}k(),et(),d(t.parenL),Ge();return}else if(!n&&a(t.lessThan)){const o=r.snapshot();if(et(),d(t.parenL),Ge(),r.error)r.restoreFromSnapshot(o);else return}Ts(e,n,s)}function mc(){if(a(t.lessThan)){const e=r.snapshot();et(),r.error&&r.restoreFromSnapshot(e)}}function dc(){if(a(t.name)&&r.contextualKeyword===l._interface){const e=M(0);return k(),Ps(),q(e),!0}else if(E(l._enum))return hr(),!0;return!1}function kc(){return E(l._enum)?(hr(),!0):!1}function gc(e){if(e===l._declare){if(a(t._class)||a(t.name)||a(t._function)||a(t._var)||a(t._export)){const n=M(1);us(),q(n)}}else if(a(t.name)){if(e===l._interface){const n=M(1);Ps(),q(n)}else if(e===l._type){const n=M(1);Rs(),q(n)}else if(e===l._opaque){const n=M(1);Ls(!1),q(n)}}J()}function _c(){return E(l._type)||E(l._interface)||E(l._opaque)||E(l._enum)}function xc(){return a(t.name)&&(r.contextualKeyword===l._type||r.contextualKeyword===l._interface||r.contextualKeyword===l._opaque||r.contextualKeyword===l._enum)}function yc(){if(E(l._type)){const e=M(1);k(),a(t.braceL)?(qs(),At()):Rs(),q(e)}else if(E(l._opaque)){const e=M(1);k(),Ls(!1),q(e)}else if(E(l._interface)){const e=M(1);k(),Ps(),q(e)}else Ie(!0)}function Ic(){return a(t.star)||E(l._type)&&Z()===t.star}function bc(){if(oe(l._type)){const e=M(2);ps(),q(e)}else ps()}function wc(e){if(e&&a(t.lessThan)&&et(),E(l._implements)){const n=M(0);k(),r.tokens[r.tokens.length-1].type=t._implements;do en(),a(t.lessThan)&&et();while(p(t.comma));q(n)}}function Tc(){a(t.lessThan)&&(Se(),a(t.parenL)||j())}function Ac(){const e=M(0);p(t.question),a(t.colon)&&rt(),q(e)}function Ec(){if(a(t._typeof)||E(l._type)){const e=St();(Va(e)||e.type===t.braceL||e.type===t.star)&&k()}}function Sc(){const e=r.contextualKeyword===l._type||r.type===t._typeof;e?k():P(),E(l._as)&&!fs(l._as)?(P(),e&&!a(t.name)&&!(r.type&t.IS_KEYWORD)||P()):(e&&(a(t.name)||r.type&t.IS_KEYWORD)&&P(),oe(l._as)&&P())}function vc(){if(a(t.lessThan)){const e=M(0);Se(),q(e)}}function Nc(){a(t.colon)&&rt()}function Cc(){if(a(t.colon)){const e=r.noAnonFunctionType;r.noAnonFunctionType=!0,rt(),r.noAnonFunctionType=e}}function Pc(e,n){if(a(t.lessThan)){const s=r.snapshot();let o=Pe(e,n);if(r.error)r.restoreFromSnapshot(s),r.type=t.typeParameterStart;else return o;const i=M(0);if(Se(),q(i),o=Pe(e,n),o)return!0;j()}return Pe(e,n)}function Rc(){if(a(t.colon)){const e=M(0),n=r.snapshot(),s=r.noAnonFunctionType;r.noAnonFunctionType=!0,Ns(),r.noAnonFunctionType=s,ye()&&j(),a(t.arrow)||j(),r.error&&r.restoreFromSnapshot(n),q(e)}return p(t.arrow)}function Lc(e,n=!1){if(r.tokens[r.tokens.length-1].contextualKeyword===l._async&&a(t.lessThan)){const s=r.snapshot();if(Dc()&&!r.error)return;r.restoreFromSnapshot(s)}tr(e,n)}function Dc(){r.scopeDepth++;const e=r.tokens.length;return ht(),cs()?(Tt(e),!0):!1}function hr(){se(l._enum),r.tokens[r.tokens.length-1].type=t._enum,P(),Oc()}function Oc(){oe(l._of)&&k(),d(t.braceL),Fc(),d(t.braceR)}function Fc(){for(;!a(t.braceR)&&!r.error&&!p(t.ellipsis);)jc(),a(t.braceR)||d(t.comma)}function jc(){P(),p(t.eq)&&k()}function qc(){if(tn(t.eof),r.scopes.push(new Re(0,r.tokens.length,!0)),r.scopeDepth!==0)throw new Error(`Invalid scope depth at end of file: ${r.scopeDepth}`);return new Tl(r.tokens,r.scopes)}function Ie(e){H&&dc()||(a(t.at)&&js(),Mc(e))}function Mc(e){if(B&&na())return;const n=r.type;switch(n){case t._break:case t._continue:$c();return;case t._debugger:Uc();return;case t._do:Hc();return;case t._for:Vc();return;case t._function:if(Z()===t.dot)break;e||j(),Gc();return;case t._class:e||j(),nt(!0);return;case t._if:zc();return;case t._return:Jc();return;case t._switch:Qc();return;case t._throw:Yc();return;case t._try:Kc();return;case t._let:case t._const:e||j();case t._var:jt(n!==t._var);return;case t._while:el();return;case t.braceL:ze();return;case t.semi:tl();return;case t._export:case t._import:{const i=Z();if(i===t.parenL||i===t.dot)break;k(),n===t._import?yr():_r();return}case t.name:if(r.contextualKeyword===l._async){const i=r.start,c=r.snapshot();if(k(),a(t._function)&&!ye()){d(t._function),tt(i,!0);return}else r.restoreFromSnapshot(c)}else if(r.contextualKeyword===l._using&&!_1()&&Z()===t.name){jt(!0);return}else if(pr()){se(l._await),jt(!0);return}}const s=r.tokens.length;le();let o=null;if(r.tokens.length===s+1){const i=r.tokens[r.tokens.length-1];i.type===t.name&&(o=i.contextualKeyword)}if(o==null){J();return}p(t.colon)?nl():sl(o)}function pr(){if(!E(l._await))return!1;const e=r.snapshot();return k(),!E(l._using)||ge()||(k(),!a(t.name)||ge())?(r.restoreFromSnapshot(e),!1):(r.restoreFromSnapshot(e),!0)}function js(){for(;a(t.at);)fr()}function fr(){if(k(),p(t.parenL))le(),d(t.parenR);else{for(P();p(t.dot);)P();Bc()}}function Bc(){B?ka():mr()}function mr(){p(t.parenL)&&Ge()}function $c(){k(),Ce()||(P(),J())}function Uc(){k(),J()}function Hc(){k(),Ie(!1),d(t._while),Kt(),p(t.semi)}function Vc(){r.scopeDepth++;const e=r.tokens.length;Xc();const n=r.tokens.length;r.scopes.push(new Re(e,n,!1)),r.scopeDepth--}function Wc(){return!(!E(l._using)||fs(l._of))}function Xc(){k();let e=!1;if(E(l._await)&&(e=!0,k()),d(t.parenL),a(t.semi)){e&&j(),Kn();return}const n=pr();if(n||a(t._var)||a(t._let)||a(t._const)||Wc()){if(n&&se(l._await),k(),dr(!0,r.type!==t._var),a(t._in)||E(l._of)){u1(e);return}Kn();return}if(le(!0),a(t._in)||E(l._of)){u1(e);return}e&&j(),Kn()}function Gc(){const e=r.start;k(),tt(e,!0)}function zc(){k(),Kt(),Ie(!1),p(t._else)&&Ie(!1)}function Jc(){k(),Ce()||(le(),J())}function Qc(){k(),Kt(),r.scopeDepth++;const e=r.tokens.length;for(d(t.braceL);!a(t.braceR)&&!r.error;)if(a(t._case)||a(t._default)){const s=a(t._case);k(),s&&le(),d(t.colon)}else Ie(!0);k();const n=r.tokens.length;r.scopes.push(new Re(e,n,!1)),r.scopeDepth--}function Yc(){k(),le(),J()}function Zc(){Qt(!0),B&&lt()}function Kc(){if(k(),ze(),a(t._catch)){k();let e=null;if(a(t.parenL)&&(r.scopeDepth++,e=r.tokens.length,d(t.parenL),Zc(),d(t.parenR)),ze(),e!=null){const n=r.tokens.length;r.scopes.push(new Re(e,n,!1)),r.scopeDepth--}}p(t._finally)&&ze()}function jt(e){k(),dr(!1,e),J()}function el(){k(),Kt(),Ie(!1)}function tl(){k()}function nl(){Ie(!0)}function sl(e){B?ra(e):H?gc(e):J()}function ze(e=!1,n=0){const s=r.tokens.length;r.scopeDepth++,d(t.braceL),n&&(r.tokens[r.tokens.length-1].contextId=n),tn(t.braceR),n&&(r.tokens[r.tokens.length-1].contextId=n);const o=r.tokens.length;r.scopes.push(new Re(s,o,e)),r.scopeDepth--}function tn(e){for(;!p(e)&&!r.error;)Ie(!0)}function Kn(){d(t.semi),a(t.semi)||le(),d(t.semi),a(t.parenR)||le(),d(t.parenR),Ie(!1)}function u1(e){e?oe(l._of):k(),le(),d(t.parenR),Ie(!1)}function dr(e,n){for(;;){if(rl(n),p(t.eq)){const s=r.tokens.length-1;ue(e),r.tokens[s].rhsEndIndex=r.tokens.length}if(!p(t.comma))break}}function rl(e){Qt(e),B?la():H&&Nc()}function tt(e,n,s=!1){a(t.star)&&k(),n&&!s&&!a(t.name)&&!a(t._yield)&&j();let o=null;a(t.name)&&(n||(o=r.tokens.length,r.scopeDepth++),Je(!1));const i=r.tokens.length;r.scopeDepth++,ht(),rr(e);const c=r.tokens.length;r.scopes.push(new Re(i,c,!0)),r.scopeDepth--,o!==null&&(r.scopes.push(new Re(o,c,!0)),r.scopeDepth--)}function ht(e=!1,n=0){B?ca():H&&vc(),d(t.parenL),n&&(r.tokens[r.tokens.length-1].contextId=n),gs(t.parenR,!1,!1,e,n),n&&(r.tokens[r.tokens.length-1].contextId=n)}function nt(e,n=!1){const s=yt();k(),r.tokens[r.tokens.length-1].contextId=s,r.tokens[r.tokens.length-1].isExpression=!e;let o=null;e||(o=r.tokens.length,r.scopeDepth++),cl(e,n),ll();const i=r.tokens.length;if(ol(s),!r.error&&(r.tokens[i].contextId=s,r.tokens[r.tokens.length-1].contextId=s,o!==null)){const c=r.tokens.length;r.scopes.push(new Re(o,c,!1)),r.scopeDepth--}}function kr(){return a(t.eq)||a(t.semi)||a(t.braceR)||a(t.bang)||a(t.colon)}function gr(){return a(t.parenL)||a(t.lessThan)}function ol(e){for(d(t.braceL);!p(t.braceR)&&!r.error;){if(p(t.semi))continue;if(a(t.at)){fr();continue}const n=r.start;il(n,e)}}function il(e,n){B&&_s([l._declare,l._public,l._protected,l._private,l._override]);let s=!1;if(a(t.name)&&r.contextualKeyword===l._static){if(P(),gr()){gt(e,!1);return}else if(kr()){qt();return}if(r.tokens[r.tokens.length-1].type=t._static,s=!0,a(t.braceL)){r.tokens[r.tokens.length-1].contextId=n,ze();return}}al(e,s,n)}function al(e,n,s){if(B&&sa(n))return;if(p(t.star)){kt(s),gt(e,!1);return}kt(s);let o=!1;const i=r.tokens[r.tokens.length-1];i.contextualKeyword===l._constructor&&(o=!0),h1(),gr()?gt(e,o):kr()?qt():i.contextualKeyword===l._async&&!Ce()?(r.tokens[r.tokens.length-1].type=t._async,a(t.star)&&k(),kt(s),h1(),gt(e,!1)):(i.contextualKeyword===l._get||i.contextualKeyword===l._set)&&!(Ce()&&a(t.star))?(i.contextualKeyword===l._get?r.tokens[r.tokens.length-1].type=t._get:r.tokens[r.tokens.length-1].type=t._set,kt(s),gt(e,!1)):i.contextualKeyword===l._accessor&&!Ce()?(kt(s),qt()):Ce()?qt():j()}function gt(e,n){B?st():H&&a(t.lessThan)&&Se(),ls(e,n)}function kt(e){wt(e)}function h1(){if(B){const e=M(0);p(t.question),q(e)}}function qt(){if(B?(w1(t.bang),lt()):H&&a(t.colon)&&rt(),a(t.eq)){const e=r.tokens.length;k(),ue(),r.tokens[e].rhsEndIndex=r.tokens.length}J()}function cl(e,n=!1){B&&(!e||n)&&E(l._implements)||(a(t.name)&&Je(!0),B?st():H&&a(t.lessThan)&&Se())}function ll(){let e=!1;p(t._extends)?(er(),e=!0):e=!1,B?ia(e):H&&wc(e)}function _r(){const e=r.tokens.length-1;B&&Zi()||(fl()?ml():pl()?(P(),a(t.comma)&&Z()===t.star?(d(t.comma),d(t.star),se(l._as),P()):xr(),At()):p(t._default)?ul():kl()?hl():(qs(),At()),r.tokens[e].rhsEndIndex=r.tokens.length)}function ul(){if(B&&ta()||H&&kc())return;const e=r.start;p(t._function)?tt(e,!0,!0):E(l._async)&&Z()===t._function?(oe(l._async),p(t._function),tt(e,!0,!0)):a(t._class)?nt(!0,!0):a(t.at)?(js(),nt(!0,!0)):(ue(),J())}function hl(){B?oa():H?yc():Ie(!0)}function pl(){if(B&&z1())return!1;if(H&&xc())return!1;if(a(t.name))return r.contextualKeyword!==l._async;if(!a(t._default))return!1;const e=ms(),n=St(),s=n.type===t.name&&n.contextualKeyword===l._from;if(n.type===t.comma)return!0;if(s){const o=b.charCodeAt(T1(e+4));return o===u.quotationMark||o===u.apostrophe}return!1}function xr(){p(t.comma)&&qs()}function At(){oe(l._from)&&(Me(),Ir()),J()}function fl(){return H?Ic():a(t.star)}function ml(){H?bc():ps()}function ps(){d(t.star),E(l._as)?dl():At()}function dl(){k(),r.tokens[r.tokens.length-1].type=t._as,P(),xr(),At()}function kl(){return B&&z1()||H&&_c()||r.type===t._var||r.type===t._const||r.type===t._let||r.type===t._function||r.type===t._class||E(l._async)||a(t.at)}function qs(){let e=!0;for(d(t.braceL);!p(t.braceR)&&!r.error;){if(e)e=!1;else if(d(t.comma),p(t.braceR))break;gl()}}function gl(){if(B){ea();return}P(),r.tokens[r.tokens.length-1].identifierRole=v.ExportAccess,oe(l._as)&&P()}function _l(){const e=r.snapshot();return se(l._module),oe(l._from)?E(l._from)?(r.restoreFromSnapshot(e),!0):(r.restoreFromSnapshot(e),!1):a(t.comma)?(r.restoreFromSnapshot(e),!1):(r.restoreFromSnapshot(e),!0)}function xl(){E(l._module)&&_l()&&k()}function yr(){if(B&&a(t.name)&&Z()===t.eq){is();return}if(B&&E(l._type)){const e=St();if(e.type===t.name&&e.contextualKeyword!==l._from){if(se(l._type),Z()===t.eq){is();return}}else(e.type===t.star||e.type===t.braceL)&&se(l._type)}a(t.string)||(xl(),Il(),se(l._from)),Me(),Ir(),J()}function yl(){return a(t.name)}function p1(){Bt()}function Il(){H&&Ec();let e=!0;if(!(yl()&&(p1(),!p(t.comma)))){if(a(t.star)){k(),se(l._as),p1();return}for(d(t.braceL);!p(t.braceR)&&!r.error;){if(e)e=!1;else if(p(t.colon)&&j("ES2015 named imports do not destructure. Use another statement for destructuring after the import."),d(t.comma),p(t.braceR))break;bl()}}}function bl(){if(B){Ki();return}if(H){Sc();return}Bt(),E(l._as)&&(r.tokens[r.tokens.length-1].identifierRole=v.ImportAccess,k(),Bt())}function Ir(){(a(t._with)||E(l._assert)&&!ge())&&(k(),vs(!1,!1))}function wl(){return r.pos===0&&b.charCodeAt(0)===u.numberSign&&b.charCodeAt(1)===u.exclamationMark&&S1(2),E1(),qc()}class Tl{constructor(n,s){this.tokens=n,this.scopes=s}}function Al(e,n,s,o){if(o&&s)throw new Error("Cannot combine flow and typescript plugins.");Kr(e,n,s,o);const i=wl();if(r.error)throw Qr(r.error);return i}function El(e){let n=e.currentIndex(),s=0;const o=e.currentToken();do{const i=e.tokens[n];if(i.isOptionalChainStart&&s++,i.isOptionalChainEnd&&s--,s+=i.numNullishCoalesceStarts,s-=i.numNullishCoalesceEnds,i.contextualKeyword===l._await&&i.identifierRole==null&&i.scopeDepth===o.scopeDepth)return!0;n+=1}while(s>0&&n<e.tokens.length);return!1}class _t{__init(){this.resultCode=""}__init2(){this.resultMappings=new Array(this.tokens.length)}__init3(){this.tokenIndex=0}constructor(n,s,o,i,c){this.code=n,this.tokens=s,this.isFlowEnabled=o,this.disableESTransforms=i,this.helperManager=c,_t.prototype.__init.call(this),_t.prototype.__init2.call(this),_t.prototype.__init3.call(this)}snapshot(){return{resultCode:this.resultCode,tokenIndex:this.tokenIndex}}restoreToSnapshot(n){this.resultCode=n.resultCode,this.tokenIndex=n.tokenIndex}dangerouslyGetAndRemoveCodeSinceSnapshot(n){const s=this.resultCode.slice(n.resultCode.length);return this.resultCode=n.resultCode,s}reset(){this.resultCode="",this.resultMappings=new Array(this.tokens.length),this.tokenIndex=0}matchesContextualAtIndex(n,s){return this.matches1AtIndex(n,t.name)&&this.tokens[n].contextualKeyword===s}identifierNameAtIndex(n){return this.identifierNameForToken(this.tokens[n])}identifierNameAtRelativeIndex(n){return this.identifierNameForToken(this.tokenAtRelativeIndex(n))}identifierName(){return this.identifierNameForToken(this.currentToken())}identifierNameForToken(n){return this.code.slice(n.start,n.end)}rawCodeForToken(n){return this.code.slice(n.start,n.end)}stringValueAtIndex(n){return this.stringValueForToken(this.tokens[n])}stringValue(){return this.stringValueForToken(this.currentToken())}stringValueForToken(n){return this.code.slice(n.start+1,n.end-1)}matches1AtIndex(n,s){return this.tokens[n].type===s}matches2AtIndex(n,s,o){return this.tokens[n].type===s&&this.tokens[n+1].type===o}matches3AtIndex(n,s,o,i){return this.tokens[n].type===s&&this.tokens[n+1].type===o&&this.tokens[n+2].type===i}matches1(n){return this.tokens[this.tokenIndex].type===n}matches2(n,s){return this.tokens[this.tokenIndex].type===n&&this.tokens[this.tokenIndex+1].type===s}matches3(n,s,o){return this.tokens[this.tokenIndex].type===n&&this.tokens[this.tokenIndex+1].type===s&&this.tokens[this.tokenIndex+2].type===o}matches4(n,s,o,i){return this.tokens[this.tokenIndex].type===n&&this.tokens[this.tokenIndex+1].type===s&&this.tokens[this.tokenIndex+2].type===o&&this.tokens[this.tokenIndex+3].type===i}matches5(n,s,o,i,c){return this.tokens[this.tokenIndex].type===n&&this.tokens[this.tokenIndex+1].type===s&&this.tokens[this.tokenIndex+2].type===o&&this.tokens[this.tokenIndex+3].type===i&&this.tokens[this.tokenIndex+4].type===c}matchesContextual(n){return this.matchesContextualAtIndex(this.tokenIndex,n)}matchesContextIdAndLabel(n,s){return this.matches1(n)&&this.currentToken().contextId===s}previousWhitespaceAndComments(){let n=this.code.slice(this.tokenIndex>0?this.tokens[this.tokenIndex-1].end:0,this.tokenIndex<this.tokens.length?this.tokens[this.tokenIndex].start:this.code.length);return this.isFlowEnabled&&(n=n.replace(/@flow/g,"")),n}replaceToken(n){this.resultCode+=this.previousWhitespaceAndComments(),this.appendTokenPrefix(),this.resultMappings[this.tokenIndex]=this.resultCode.length,this.resultCode+=n,this.appendTokenSuffix(),this.tokenIndex++}replaceTokenTrimmingLeftWhitespace(n){this.resultCode+=this.previousWhitespaceAndComments().replace(/[^\r\n]/g,""),this.appendTokenPrefix(),this.resultMappings[this.tokenIndex]=this.resultCode.length,this.resultCode+=n,this.appendTokenSuffix(),this.tokenIndex++}removeInitialToken(){this.replaceToken("")}removeToken(){this.replaceTokenTrimmingLeftWhitespace("")}removeBalancedCode(){let n=0;for(;!this.isAtEnd();){if(this.matches1(t.braceL))n++;else if(this.matches1(t.braceR)){if(n===0)return;n--}this.removeToken()}}copyExpectedToken(n){if(this.tokens[this.tokenIndex].type!==n)throw new Error(`Expected token ${n}`);this.copyToken()}copyToken(){this.resultCode+=this.previousWhitespaceAndComments(),this.appendTokenPrefix(),this.resultMappings[this.tokenIndex]=this.resultCode.length,this.resultCode+=this.code.slice(this.tokens[this.tokenIndex].start,this.tokens[this.tokenIndex].end),this.appendTokenSuffix(),this.tokenIndex++}copyTokenWithPrefix(n){this.resultCode+=this.previousWhitespaceAndComments(),this.appendTokenPrefix(),this.resultCode+=n,this.resultMappings[this.tokenIndex]=this.resultCode.length,this.resultCode+=this.code.slice(this.tokens[this.tokenIndex].start,this.tokens[this.tokenIndex].end),this.appendTokenSuffix(),this.tokenIndex++}appendTokenPrefix(){const n=this.currentToken();if((n.numNullishCoalesceStarts||n.isOptionalChainStart)&&(n.isAsyncOperation=El(this)),!this.disableESTransforms){if(n.numNullishCoalesceStarts)for(let s=0;s<n.numNullishCoalesceStarts;s++)n.isAsyncOperation?(this.resultCode+="await ",this.resultCode+=this.helperManager.getHelperName("asyncNullishCoalesce")):this.resultCode+=this.helperManager.getHelperName("nullishCoalesce"),this.resultCode+="(";n.isOptionalChainStart&&(n.isAsyncOperation&&(this.resultCode+="await "),this.tokenIndex>0&&this.tokenAtRelativeIndex(-1).type===t._delete?n.isAsyncOperation?this.resultCode+=this.helperManager.getHelperName("asyncOptionalChainDelete"):this.resultCode+=this.helperManager.getHelperName("optionalChainDelete"):n.isAsyncOperation?this.resultCode+=this.helperManager.getHelperName("asyncOptionalChain"):this.resultCode+=this.helperManager.getHelperName("optionalChain"),this.resultCode+="([")}}appendTokenSuffix(){const n=this.currentToken();if(n.isOptionalChainEnd&&!this.disableESTransforms&&(this.resultCode+="])"),n.numNullishCoalesceEnds&&!this.disableESTransforms)for(let s=0;s<n.numNullishCoalesceEnds;s++)this.resultCode+="))"}appendCode(n){this.resultCode+=n}currentToken(){return this.tokens[this.tokenIndex]}currentTokenCode(){const n=this.currentToken();return this.code.slice(n.start,n.end)}tokenAtRelativeIndex(n){return this.tokens[this.tokenIndex+n]}currentIndex(){return this.tokenIndex}nextToken(){if(this.tokenIndex===this.tokens.length)throw new Error("Unexpectedly reached end of input.");this.tokenIndex++}previousToken(){this.tokenIndex--}finish(){if(this.tokenIndex!==this.tokens.length)throw new Error("Tried to finish processing tokens before reaching the end.");return this.resultCode+=this.previousWhitespaceAndComments(),{code:this.resultCode,mappings:this.resultMappings}}isAtEnd(){return this.tokenIndex===this.tokens.length}}function Sl(e,n,s,o){const i=n.snapshot(),c=vl(n);let h=[];const m=[],g=[];let f=null;const y=[],T=[],S=n.currentToken().contextId;if(S==null)throw new Error("Expected non-null class context ID on class open-brace.");for(n.nextToken();!n.matchesContextIdAndLabel(t.braceR,S);)if(n.matchesContextual(l._constructor)&&!n.currentToken().isType)({constructorInitializerStatements:h,constructorInsertPos:f}=f1(n));else if(n.matches1(t.semi))o||T.push({start:n.currentIndex(),end:n.currentIndex()+1}),n.nextToken();else if(n.currentToken().isType)n.nextToken();else{const C=n.currentIndex();let $=!1,V=!1,re=!1;for(;Xt(n.currentToken());)n.matches1(t._static)&&($=!0),n.matches1(t.hash)&&(V=!0),(n.matches1(t._declare)||n.matches1(t._abstract))&&(re=!0),n.nextToken();if($&&n.matches1(t.braceL)){es(n,S);continue}if(V){es(n,S);continue}if(n.matchesContextual(l._constructor)&&!n.currentToken().isType){({constructorInitializerStatements:h,constructorInsertPos:f}=f1(n));continue}const ie=n.currentIndex();if(Nl(n),n.matches1(t.lessThan)||n.matches1(t.parenL)){es(n,S);continue}for(;n.currentToken().isType;)n.nextToken();if(n.matches1(t.eq)){const N=n.currentIndex(),O=n.currentToken().rhsEndIndex;if(O==null)throw new Error("Expected rhsEndIndex on class field assignment.");for(n.nextToken();n.currentIndex()<O;)e.processToken();let R;$?(R=s.claimFreeName("__initStatic"),g.push(R)):(R=s.claimFreeName("__init"),m.push(R)),y.push({initializerName:R,equalsIndex:N,start:ie,end:n.currentIndex()})}else(!o||re)&&T.push({start:C,end:n.currentIndex()})}return n.restoreToSnapshot(i),o?{headerInfo:c,constructorInitializerStatements:h,instanceInitializerNames:[],staticInitializerNames:[],constructorInsertPos:f,fields:[],rangesToRemove:T}:{headerInfo:c,constructorInitializerStatements:h,instanceInitializerNames:m,staticInitializerNames:g,constructorInsertPos:f,fields:y,rangesToRemove:T}}function es(e,n){for(e.nextToken();e.currentToken().contextId!==n;)e.nextToken();for(;Xt(e.tokenAtRelativeIndex(-1));)e.previousToken()}function vl(e){const n=e.currentToken(),s=n.contextId;if(s==null)throw new Error("Expected context ID on class token.");const o=n.isExpression;if(o==null)throw new Error("Expected isExpression on class token.");let i=null,c=!1;for(e.nextToken(),e.matches1(t.name)&&(i=e.identifierName());!e.matchesContextIdAndLabel(t.braceL,s);)e.matches1(t._extends)&&!e.currentToken().isType&&(c=!0),e.nextToken();return{isExpression:o,className:i,hasSuperclass:c}}function f1(e){const n=[];e.nextToken();const s=e.currentToken().contextId;if(s==null)throw new Error("Expected context ID on open-paren starting constructor params.");for(;!e.matchesContextIdAndLabel(t.parenR,s);)if(e.currentToken().contextId===s){if(e.nextToken(),Xt(e.currentToken())){for(e.nextToken();Xt(e.currentToken());)e.nextToken();const c=e.currentToken();if(c.type!==t.name)throw new Error("Expected identifier after access modifiers in constructor arg.");const h=e.identifierNameForToken(c);n.push(`this.${h} = ${h}`)}}else e.nextToken();for(e.nextToken();e.currentToken().isType;)e.nextToken();let o=e.currentIndex(),i=!1;for(;!e.matchesContextIdAndLabel(t.braceR,s);){if(!i&&e.matches2(t._super,t.parenL)){e.nextToken();const c=e.currentToken().contextId;if(c==null)throw new Error("Expected a context ID on the super call");for(;!e.matchesContextIdAndLabel(t.parenR,c);)e.nextToken();o=e.currentIndex(),i=!0}e.nextToken()}return e.nextToken(),{constructorInitializerStatements:n,constructorInsertPos:o}}function Xt(e){return[t._async,t._get,t._set,t.plus,t.minus,t._readonly,t._static,t._public,t._private,t._protected,t._override,t._abstract,t.star,t._declare,t.hash].includes(e.type)}function Nl(e){if(e.matches1(t.bracketL)){const s=e.currentToken().contextId;if(s==null)throw new Error("Expected class context ID on computed name open bracket.");for(;!e.matchesContextIdAndLabel(t.bracketR,s);)e.nextToken();e.nextToken()}else e.nextToken()}function br(e){if(e.removeInitialToken(),e.removeToken(),e.removeToken(),e.removeToken(),e.matches1(t.parenL))e.removeToken(),e.removeToken(),e.removeToken();else for(;e.matches1(t.dot);)e.removeToken(),e.removeToken()}const wr={typeDeclarations:new Set,valueDeclarations:new Set};function Tr(e){const n=new Set,s=new Set;for(let o=0;o<e.tokens.length;o++){const i=e.tokens[o];i.type===t.name&&b1(i)&&(i.isType?n.add(e.identifierNameForToken(i)):s.add(e.identifierNameForToken(i)))}return{typeDeclarations:n,valueDeclarations:s}}function Ar(e){let n=e.currentIndex();for(;!e.matches1AtIndex(n,t.braceR);)n++;return e.matchesContextualAtIndex(n+1,l._from)&&e.matches1AtIndex(n+2,t.string)}function Ke(e){(e.matches2(t._with,t.braceL)||e.matches2(t.name,t.braceL)&&e.matchesContextual(l._assert))&&(e.removeToken(),e.removeToken(),e.removeBalancedCode(),e.removeToken())}function Er(e,n,s,o){if(!e||n)return!1;const i=s.currentToken();if(i.rhsEndIndex==null)throw new Error("Expected non-null rhsEndIndex on export token.");const c=i.rhsEndIndex-s.currentIndex();if(c!==3&&!(c===4&&s.matches1AtIndex(i.rhsEndIndex-1,t.semi)))return!1;const h=s.tokenAtRelativeIndex(2);if(h.type!==t.name)return!1;const m=s.identifierNameForToken(h);return o.typeDeclarations.has(m)&&!o.valueDeclarations.has(m)}class xt extends Ee{__init(){this.hadExport=!1}__init2(){this.hadNamedExport=!1}__init3(){this.hadDefaultExport=!1}constructor(n,s,o,i,c,h,m,g,f,y,T,S){super(),this.rootTransformer=n,this.tokens=s,this.importProcessor=o,this.nameManager=i,this.helperManager=c,this.reactHotLoaderTransformer=h,this.enableLegacyBabel5ModuleInterop=m,this.enableLegacyTypeScriptModuleInterop=g,this.isTypeScriptTransformEnabled=f,this.isFlowTransformEnabled=y,this.preserveDynamicImport=T,this.keepUnusedImports=S,xt.prototype.__init.call(this),xt.prototype.__init2.call(this),xt.prototype.__init3.call(this),this.declarationInfo=f?Tr(s):wr}getPrefixCode(){let n="";return this.hadExport&&(n+='Object.defineProperty(exports, "__esModule", {value: true});'),n}getSuffixCode(){return this.enableLegacyBabel5ModuleInterop&&this.hadDefaultExport&&!this.hadNamedExport?`
117
- module.exports = exports.default;
118
- `:""}process(){return this.tokens.matches3(t._import,t.name,t.eq)?this.processImportEquals():this.tokens.matches1(t._import)?(this.processImport(),!0):this.tokens.matches2(t._export,t.eq)?(this.tokens.replaceToken("module.exports"),!0):this.tokens.matches1(t._export)&&!this.tokens.currentToken().isType?(this.hadExport=!0,this.processExport()):this.tokens.matches2(t.name,t.postIncDec)&&this.processPostIncDec()?!0:this.tokens.matches1(t.name)||this.tokens.matches1(t.jsxName)?this.processIdentifier():this.tokens.matches1(t.eq)?this.processAssignment():this.tokens.matches1(t.assign)?this.processComplexAssignment():this.tokens.matches1(t.preIncDec)?this.processPreIncDec():!1}processImportEquals(){const n=this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+1);return this.importProcessor.shouldAutomaticallyElideImportedName(n)?br(this.tokens):this.tokens.replaceToken("const"),!0}processImport(){if(this.tokens.matches2(t._import,t.parenL)){if(this.preserveDynamicImport){this.tokens.copyToken();return}const s=this.enableLegacyTypeScriptModuleInterop?"":`${this.helperManager.getHelperName("interopRequireWildcard")}(`;this.tokens.replaceToken(`Promise.resolve().then(() => ${s}require`);const o=this.tokens.currentToken().contextId;if(o==null)throw new Error("Expected context ID on dynamic import invocation.");for(this.tokens.copyToken();!this.tokens.matchesContextIdAndLabel(t.parenR,o);)this.rootTransformer.processToken();this.tokens.replaceToken(s?")))":"))");return}if(this.removeImportAndDetectIfShouldElide())this.tokens.removeToken();else{const s=this.tokens.stringValue();this.tokens.replaceTokenTrimmingLeftWhitespace(this.importProcessor.claimImportCode(s)),this.tokens.appendCode(this.importProcessor.claimImportCode(s))}Ke(this.tokens),this.tokens.matches1(t.semi)&&this.tokens.removeToken()}removeImportAndDetectIfShouldElide(){if(this.tokens.removeInitialToken(),this.tokens.matchesContextual(l._type)&&!this.tokens.matches1AtIndex(this.tokens.currentIndex()+1,t.comma)&&!this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,l._from))return this.removeRemainingImport(),!0;if(this.tokens.matches1(t.name)||this.tokens.matches1(t.star))return this.removeRemainingImport(),!1;if(this.tokens.matches1(t.string))return!1;let n=!1,s=!1;for(;!this.tokens.matches1(t.string);)(!n&&this.tokens.matches1(t.braceL)||this.tokens.matches1(t.comma))&&(this.tokens.removeToken(),this.tokens.matches1(t.braceR)||(s=!0),(this.tokens.matches2(t.name,t.comma)||this.tokens.matches2(t.name,t.braceR)||this.tokens.matches4(t.name,t.name,t.name,t.comma)||this.tokens.matches4(t.name,t.name,t.name,t.braceR))&&(n=!0)),this.tokens.removeToken();return this.keepUnusedImports?!1:this.isTypeScriptTransformEnabled?!n:this.isFlowTransformEnabled?s&&!n:!1}removeRemainingImport(){for(;!this.tokens.matches1(t.string);)this.tokens.removeToken()}processIdentifier(){const n=this.tokens.currentToken();if(n.shadowsGlobal)return!1;if(n.identifierRole===v.ObjectShorthand)return this.processObjectShorthand();if(n.identifierRole!==v.Access)return!1;const s=this.importProcessor.getIdentifierReplacement(this.tokens.identifierNameForToken(n));if(!s)return!1;let o=this.tokens.currentIndex()+1;for(;o<this.tokens.tokens.length&&this.tokens.tokens[o].type===t.parenR;)o++;return this.tokens.tokens[o].type===t.parenL?this.tokens.tokenAtRelativeIndex(1).type===t.parenL&&this.tokens.tokenAtRelativeIndex(-1).type!==t._new?(this.tokens.replaceToken(`${s}.call(void 0, `),this.tokens.removeToken(),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(t.parenR)):this.tokens.replaceToken(`(0, ${s})`):this.tokens.replaceToken(s),!0}processObjectShorthand(){const n=this.tokens.identifierName(),s=this.importProcessor.getIdentifierReplacement(n);return s?(this.tokens.replaceToken(`${n}: ${s}`),!0):!1}processExport(){if(this.tokens.matches2(t._export,t._enum)||this.tokens.matches3(t._export,t._const,t._enum))return this.hadNamedExport=!0,!1;if(this.tokens.matches2(t._export,t._default))return this.tokens.matches3(t._export,t._default,t._enum)?(this.hadDefaultExport=!0,!1):(this.processExportDefault(),!0);if(this.tokens.matches2(t._export,t.braceL))return this.processExportBindings(),!0;if(this.tokens.matches2(t._export,t.name)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,l._type)){if(this.tokens.removeInitialToken(),this.tokens.removeToken(),this.tokens.matches1(t.braceL)){for(;!this.tokens.matches1(t.braceR);)this.tokens.removeToken();this.tokens.removeToken()}else this.tokens.removeToken(),this.tokens.matches1(t._as)&&(this.tokens.removeToken(),this.tokens.removeToken());return this.tokens.matchesContextual(l._from)&&this.tokens.matches1AtIndex(this.tokens.currentIndex()+1,t.string)&&(this.tokens.removeToken(),this.tokens.removeToken(),Ke(this.tokens)),!0}if(this.hadNamedExport=!0,this.tokens.matches2(t._export,t._var)||this.tokens.matches2(t._export,t._let)||this.tokens.matches2(t._export,t._const))return this.processExportVar(),!0;if(this.tokens.matches2(t._export,t._function)||this.tokens.matches3(t._export,t.name,t._function))return this.processExportFunction(),!0;if(this.tokens.matches2(t._export,t._class)||this.tokens.matches3(t._export,t._abstract,t._class)||this.tokens.matches2(t._export,t.at))return this.processExportClass(),!0;if(this.tokens.matches2(t._export,t.star))return this.processExportStar(),!0;throw new Error("Unrecognized export syntax.")}processAssignment(){const n=this.tokens.currentIndex(),s=this.tokens.tokens[n-1];if(s.isType||s.type!==t.name||s.shadowsGlobal||n>=2&&this.tokens.matches1AtIndex(n-2,t.dot)||n>=2&&[t._var,t._let,t._const].includes(this.tokens.tokens[n-2].type))return!1;const o=this.importProcessor.resolveExportBinding(this.tokens.identifierNameForToken(s));return o?(this.tokens.copyToken(),this.tokens.appendCode(` ${o} =`),!0):!1}processComplexAssignment(){const n=this.tokens.currentIndex(),s=this.tokens.tokens[n-1];if(s.type!==t.name||s.shadowsGlobal||n>=2&&this.tokens.matches1AtIndex(n-2,t.dot))return!1;const o=this.importProcessor.resolveExportBinding(this.tokens.identifierNameForToken(s));return o?(this.tokens.appendCode(` = ${o}`),this.tokens.copyToken(),!0):!1}processPreIncDec(){const n=this.tokens.currentIndex(),s=this.tokens.tokens[n+1];if(s.type!==t.name||s.shadowsGlobal||n+2<this.tokens.tokens.length&&(this.tokens.matches1AtIndex(n+2,t.dot)||this.tokens.matches1AtIndex(n+2,t.bracketL)||this.tokens.matches1AtIndex(n+2,t.parenL)))return!1;const o=this.tokens.identifierNameForToken(s),i=this.importProcessor.resolveExportBinding(o);return i?(this.tokens.appendCode(`${i} = `),this.tokens.copyToken(),!0):!1}processPostIncDec(){const n=this.tokens.currentIndex(),s=this.tokens.tokens[n],o=this.tokens.tokens[n+1];if(s.type!==t.name||s.shadowsGlobal||n>=1&&this.tokens.matches1AtIndex(n-1,t.dot))return!1;const i=this.tokens.identifierNameForToken(s),c=this.importProcessor.resolveExportBinding(i);if(!c)return!1;const h=this.tokens.rawCodeForToken(o),m=this.importProcessor.getIdentifierReplacement(i)||i;if(h==="++")this.tokens.replaceToken(`(${m} = ${c} = ${m} + 1, ${m} - 1)`);else if(h==="--")this.tokens.replaceToken(`(${m} = ${c} = ${m} - 1, ${m} + 1)`);else throw new Error(`Unexpected operator: ${h}`);return this.tokens.removeToken(),!0}processExportDefault(){let n=!0;if(this.tokens.matches4(t._export,t._default,t._function,t.name)||this.tokens.matches5(t._export,t._default,t.name,t._function,t.name)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+2,l._async)){this.tokens.removeInitialToken(),this.tokens.removeToken();const s=this.processNamedFunction();this.tokens.appendCode(` exports.default = ${s};`)}else if(this.tokens.matches4(t._export,t._default,t._class,t.name)||this.tokens.matches5(t._export,t._default,t._abstract,t._class,t.name)||this.tokens.matches3(t._export,t._default,t.at)){this.tokens.removeInitialToken(),this.tokens.removeToken(),this.copyDecorators(),this.tokens.matches1(t._abstract)&&this.tokens.removeToken();const s=this.rootTransformer.processNamedClass();this.tokens.appendCode(` exports.default = ${s};`)}else if(Er(this.isTypeScriptTransformEnabled,this.keepUnusedImports,this.tokens,this.declarationInfo))n=!1,this.tokens.removeInitialToken(),this.tokens.removeToken(),this.tokens.removeToken();else if(this.reactHotLoaderTransformer){const s=this.nameManager.claimFreeName("_default");this.tokens.replaceToken(`let ${s}; exports.`),this.tokens.copyToken(),this.tokens.appendCode(` = ${s} =`),this.reactHotLoaderTransformer.setExtractedDefaultExportName(s)}else this.tokens.replaceToken("exports."),this.tokens.copyToken(),this.tokens.appendCode(" =");n&&(this.hadDefaultExport=!0)}copyDecorators(){for(;this.tokens.matches1(t.at);)if(this.tokens.copyToken(),this.tokens.matches1(t.parenL))this.tokens.copyExpectedToken(t.parenL),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(t.parenR);else{for(this.tokens.copyExpectedToken(t.name);this.tokens.matches1(t.dot);)this.tokens.copyExpectedToken(t.dot),this.tokens.copyExpectedToken(t.name);this.tokens.matches1(t.parenL)&&(this.tokens.copyExpectedToken(t.parenL),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(t.parenR))}}processExportVar(){this.isSimpleExportVar()?this.processSimpleExportVar():this.processComplexExportVar()}isSimpleExportVar(){let n=this.tokens.currentIndex();if(n++,n++,!this.tokens.matches1AtIndex(n,t.name))return!1;for(n++;n<this.tokens.tokens.length&&this.tokens.tokens[n].isType;)n++;return!!this.tokens.matches1AtIndex(n,t.eq)}processSimpleExportVar(){this.tokens.removeInitialToken(),this.tokens.copyToken();const n=this.tokens.identifierName();for(;!this.tokens.matches1(t.eq);)this.rootTransformer.processToken();const s=this.tokens.currentToken().rhsEndIndex;if(s==null)throw new Error("Expected = token with an end index.");for(;this.tokens.currentIndex()<s;)this.rootTransformer.processToken();this.tokens.appendCode(`; exports.${n} = ${n}`)}processComplexExportVar(){this.tokens.removeInitialToken(),this.tokens.removeToken();const n=this.tokens.matches1(t.braceL);n&&this.tokens.appendCode("(");let s=0;for(;;)if(this.tokens.matches1(t.braceL)||this.tokens.matches1(t.dollarBraceL)||this.tokens.matches1(t.bracketL))s++,this.tokens.copyToken();else if(this.tokens.matches1(t.braceR)||this.tokens.matches1(t.bracketR))s--,this.tokens.copyToken();else{if(s===0&&!this.tokens.matches1(t.name)&&!this.tokens.currentToken().isType)break;if(this.tokens.matches1(t.eq)){const o=this.tokens.currentToken().rhsEndIndex;if(o==null)throw new Error("Expected = token with an end index.");for(;this.tokens.currentIndex()<o;)this.rootTransformer.processToken()}else{const o=this.tokens.currentToken();if(I1(o)){const i=this.tokens.identifierName();let c=this.importProcessor.getIdentifierReplacement(i);if(c===null)throw new Error(`Expected a replacement for ${i} in \`export var\` syntax.`);oo(o)&&(c=`${i}: ${c}`),this.tokens.replaceToken(c)}else this.rootTransformer.processToken()}}if(n){const o=this.tokens.currentToken().rhsEndIndex;if(o==null)throw new Error("Expected = token with an end index.");for(;this.tokens.currentIndex()<o;)this.rootTransformer.processToken();this.tokens.appendCode(")")}}processExportFunction(){this.tokens.replaceToken("");const n=this.processNamedFunction();this.tokens.appendCode(` exports.${n} = ${n};`)}processNamedFunction(){if(this.tokens.matches1(t._function))this.tokens.copyToken();else if(this.tokens.matches2(t.name,t._function)){if(!this.tokens.matchesContextual(l._async))throw new Error("Expected async keyword in function export.");this.tokens.copyToken(),this.tokens.copyToken()}if(this.tokens.matches1(t.star)&&this.tokens.copyToken(),!this.tokens.matches1(t.name))throw new Error("Expected identifier for exported function name.");const n=this.tokens.identifierName();if(this.tokens.copyToken(),this.tokens.currentToken().isType)for(this.tokens.removeInitialToken();this.tokens.currentToken().isType;)this.tokens.removeToken();return this.tokens.copyExpectedToken(t.parenL),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(t.parenR),this.rootTransformer.processPossibleTypeRange(),this.tokens.copyExpectedToken(t.braceL),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(t.braceR),n}processExportClass(){this.tokens.removeInitialToken(),this.copyDecorators(),this.tokens.matches1(t._abstract)&&this.tokens.removeToken();const n=this.rootTransformer.processNamedClass();this.tokens.appendCode(` exports.${n} = ${n};`)}processExportBindings(){this.tokens.removeInitialToken(),this.tokens.removeToken();const n=Ar(this.tokens),s=[];for(;;){if(this.tokens.matches1(t.braceR)){this.tokens.removeToken();break}const o=It(this.tokens);for(;this.tokens.currentIndex()<o.endIndex;)this.tokens.removeToken();if(!(o.isType||!n&&this.shouldElideExportedIdentifier(o.leftName))){const c=o.rightName;c==="default"?this.hadDefaultExport=!0:this.hadNamedExport=!0;const h=o.leftName,m=this.importProcessor.getIdentifierReplacement(h);s.push(`exports.${c} = ${m||h};`)}if(this.tokens.matches1(t.braceR)){this.tokens.removeToken();break}if(this.tokens.matches2(t.comma,t.braceR)){this.tokens.removeToken(),this.tokens.removeToken();break}else if(this.tokens.matches1(t.comma))this.tokens.removeToken();else throw new Error(`Unexpected token: ${JSON.stringify(this.tokens.currentToken())}`)}if(this.tokens.matchesContextual(l._from)){this.tokens.removeToken();const o=this.tokens.stringValue();this.tokens.replaceTokenTrimmingLeftWhitespace(this.importProcessor.claimImportCode(o)),Ke(this.tokens)}else this.tokens.appendCode(s.join(" "));this.tokens.matches1(t.semi)&&this.tokens.removeToken()}processExportStar(){for(this.tokens.removeInitialToken();!this.tokens.matches1(t.string);)this.tokens.removeToken();const n=this.tokens.stringValue();this.tokens.replaceTokenTrimmingLeftWhitespace(this.importProcessor.claimImportCode(n)),Ke(this.tokens),this.tokens.matches1(t.semi)&&this.tokens.removeToken()}shouldElideExportedIdentifier(n){return this.isTypeScriptTransformEnabled&&!this.keepUnusedImports&&!this.declarationInfo.valueDeclarations.has(n)}}class Cl extends Ee{constructor(n,s,o,i,c,h,m,g){super(),this.tokens=n,this.nameManager=s,this.helperManager=o,this.reactHotLoaderTransformer=i,this.isTypeScriptTransformEnabled=c,this.isFlowTransformEnabled=h,this.keepUnusedImports=m,this.nonTypeIdentifiers=c&&!m?F1(n,g):new Set,this.declarationInfo=c&&!m?Tr(n):wr,this.injectCreateRequireForImportRequire=!!g.injectCreateRequireForImportRequire}process(){if(this.tokens.matches3(t._import,t.name,t.eq))return this.processImportEquals();if(this.tokens.matches4(t._import,t.name,t.name,t.eq)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,l._type)){this.tokens.removeInitialToken();for(let n=0;n<7;n++)this.tokens.removeToken();return!0}if(this.tokens.matches2(t._export,t.eq))return this.tokens.replaceToken("module.exports"),!0;if(this.tokens.matches5(t._export,t._import,t.name,t.name,t.eq)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+2,l._type)){this.tokens.removeInitialToken();for(let n=0;n<8;n++)this.tokens.removeToken();return!0}if(this.tokens.matches1(t._import))return this.processImport();if(this.tokens.matches2(t._export,t._default))return this.processExportDefault();if(this.tokens.matches2(t._export,t.braceL))return this.processNamedExports();if(this.tokens.matches2(t._export,t.name)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,l._type)){if(this.tokens.removeInitialToken(),this.tokens.removeToken(),this.tokens.matches1(t.braceL)){for(;!this.tokens.matches1(t.braceR);)this.tokens.removeToken();this.tokens.removeToken()}else this.tokens.removeToken(),this.tokens.matches1(t._as)&&(this.tokens.removeToken(),this.tokens.removeToken());return this.tokens.matchesContextual(l._from)&&this.tokens.matches1AtIndex(this.tokens.currentIndex()+1,t.string)&&(this.tokens.removeToken(),this.tokens.removeToken(),Ke(this.tokens)),!0}return!1}processImportEquals(){const n=this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+1);return this.shouldAutomaticallyElideImportedName(n)?br(this.tokens):this.injectCreateRequireForImportRequire?(this.tokens.replaceToken("const"),this.tokens.copyToken(),this.tokens.copyToken(),this.tokens.replaceToken(this.helperManager.getHelperName("require"))):this.tokens.replaceToken("const"),!0}processImport(){if(this.tokens.matches2(t._import,t.parenL))return!1;const n=this.tokens.snapshot();if(this.removeImportTypeBindings()){for(this.tokens.restoreToSnapshot(n);!this.tokens.matches1(t.string);)this.tokens.removeToken();this.tokens.removeToken(),Ke(this.tokens),this.tokens.matches1(t.semi)&&this.tokens.removeToken()}return!0}removeImportTypeBindings(){if(this.tokens.copyExpectedToken(t._import),this.tokens.matchesContextual(l._type)&&!this.tokens.matches1AtIndex(this.tokens.currentIndex()+1,t.comma)&&!this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,l._from))return!0;if(this.tokens.matches1(t.string))return this.tokens.copyToken(),!1;this.tokens.matchesContextual(l._module)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+2,l._from)&&this.tokens.copyToken();let n=!1,s=!1,o=!1;if(this.tokens.matches1(t.name)&&(this.shouldAutomaticallyElideImportedName(this.tokens.identifierName())?(this.tokens.removeToken(),this.tokens.matches1(t.comma)&&this.tokens.removeToken()):(n=!0,this.tokens.copyToken(),this.tokens.matches1(t.comma)&&(o=!0,this.tokens.removeToken()))),this.tokens.matches1(t.star))this.shouldAutomaticallyElideImportedName(this.tokens.identifierNameAtRelativeIndex(2))?(this.tokens.removeToken(),this.tokens.removeToken(),this.tokens.removeToken()):(o&&this.tokens.appendCode(","),n=!0,this.tokens.copyExpectedToken(t.star),this.tokens.copyExpectedToken(t.name),this.tokens.copyExpectedToken(t.name));else if(this.tokens.matches1(t.braceL)){for(o&&this.tokens.appendCode(","),this.tokens.copyToken();!this.tokens.matches1(t.braceR);){s=!0;const i=It(this.tokens);if(i.isType||this.shouldAutomaticallyElideImportedName(i.rightName)){for(;this.tokens.currentIndex()<i.endIndex;)this.tokens.removeToken();this.tokens.matches1(t.comma)&&this.tokens.removeToken()}else{for(n=!0;this.tokens.currentIndex()<i.endIndex;)this.tokens.copyToken();this.tokens.matches1(t.comma)&&this.tokens.copyToken()}}this.tokens.copyExpectedToken(t.braceR)}return this.keepUnusedImports?!1:this.isTypeScriptTransformEnabled?!n:this.isFlowTransformEnabled?s&&!n:!1}shouldAutomaticallyElideImportedName(n){return this.isTypeScriptTransformEnabled&&!this.keepUnusedImports&&!this.nonTypeIdentifiers.has(n)}processExportDefault(){if(Er(this.isTypeScriptTransformEnabled,this.keepUnusedImports,this.tokens,this.declarationInfo))return this.tokens.removeInitialToken(),this.tokens.removeToken(),this.tokens.removeToken(),!0;if(!(this.tokens.matches4(t._export,t._default,t._function,t.name)||this.tokens.matches5(t._export,t._default,t.name,t._function,t.name)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+2,l._async)||this.tokens.matches4(t._export,t._default,t._class,t.name)||this.tokens.matches5(t._export,t._default,t._abstract,t._class,t.name))&&this.reactHotLoaderTransformer){const s=this.nameManager.claimFreeName("_default");return this.tokens.replaceToken(`let ${s}; export`),this.tokens.copyToken(),this.tokens.appendCode(` ${s} =`),this.reactHotLoaderTransformer.setExtractedDefaultExportName(s),!0}return!1}processNamedExports(){if(!this.isTypeScriptTransformEnabled)return!1;this.tokens.copyExpectedToken(t._export),this.tokens.copyExpectedToken(t.braceL);const n=Ar(this.tokens);let s=!1;for(;!this.tokens.matches1(t.braceR);){const o=It(this.tokens);if(o.isType||!n&&this.shouldElideExportedName(o.leftName)){for(;this.tokens.currentIndex()<o.endIndex;)this.tokens.removeToken();this.tokens.matches1(t.comma)&&this.tokens.removeToken()}else{for(s=!0;this.tokens.currentIndex()<o.endIndex;)this.tokens.copyToken();this.tokens.matches1(t.comma)&&this.tokens.copyToken()}}return this.tokens.copyExpectedToken(t.braceR),!this.keepUnusedImports&&n&&!s&&(this.tokens.removeToken(),this.tokens.removeToken(),Ke(this.tokens)),!0}shouldElideExportedName(n){return this.isTypeScriptTransformEnabled&&!this.keepUnusedImports&&this.declarationInfo.typeDeclarations.has(n)&&!this.declarationInfo.valueDeclarations.has(n)}}class Pl extends Ee{constructor(n,s,o){super(),this.rootTransformer=n,this.tokens=s,this.isImportsTransformEnabled=o}process(){return this.rootTransformer.processPossibleArrowParamEnd()||this.rootTransformer.processPossibleAsyncArrowWithTypeParams()||this.rootTransformer.processPossibleTypeRange()?!0:this.tokens.matches1(t._enum)?(this.processEnum(),!0):this.tokens.matches2(t._export,t._enum)?(this.processNamedExportEnum(),!0):this.tokens.matches3(t._export,t._default,t._enum)?(this.processDefaultExportEnum(),!0):!1}processNamedExportEnum(){if(this.isImportsTransformEnabled){this.tokens.removeInitialToken();const n=this.tokens.identifierNameAtRelativeIndex(1);this.processEnum(),this.tokens.appendCode(` exports.${n} = ${n};`)}else this.tokens.copyToken(),this.processEnum()}processDefaultExportEnum(){this.tokens.removeInitialToken(),this.tokens.removeToken();const n=this.tokens.identifierNameAtRelativeIndex(1);this.processEnum(),this.isImportsTransformEnabled?this.tokens.appendCode(` exports.default = ${n};`):this.tokens.appendCode(` export default ${n};`)}processEnum(){this.tokens.replaceToken("const"),this.tokens.copyExpectedToken(t.name);let n=!1;this.tokens.matchesContextual(l._of)&&(this.tokens.removeToken(),n=this.tokens.matchesContextual(l._symbol),this.tokens.removeToken());const s=this.tokens.matches3(t.braceL,t.name,t.eq);this.tokens.appendCode(' = require("flow-enums-runtime")');const o=!n&&!s;for(this.tokens.replaceTokenTrimmingLeftWhitespace(o?".Mirrored([":"({");!this.tokens.matches1(t.braceR);){if(this.tokens.matches1(t.ellipsis)){this.tokens.removeToken();break}this.processEnumElement(n,s),this.tokens.matches1(t.comma)&&this.tokens.copyToken()}this.tokens.replaceToken(o?"]);":"});")}processEnumElement(n,s){if(n){const o=this.tokens.identifierName();this.tokens.copyToken(),this.tokens.appendCode(`: Symbol("${o}")`)}else s?(this.tokens.copyToken(),this.tokens.replaceTokenTrimmingLeftWhitespace(":"),this.tokens.copyToken()):this.tokens.replaceToken(`"${this.tokens.identifierName()}"`)}}function Rl(e){let n,s=e[0],o=1;for(;o<e.length;){const i=e[o],c=e[o+1];if(o+=2,(i==="optionalAccess"||i==="optionalCall")&&s==null)return;i==="access"||i==="optionalAccess"?(n=s,s=c(s)):(i==="call"||i==="optionalCall")&&(s=c((...h)=>s.call(n,...h)),n=void 0)}return s}const Lt="jest",Ll=["mock","unmock","enableAutomock","disableAutomock"];class Ms extends Ee{__init(){this.hoistedFunctionNames=[]}constructor(n,s,o,i){super(),this.rootTransformer=n,this.tokens=s,this.nameManager=o,this.importProcessor=i,Ms.prototype.__init.call(this)}process(){return this.tokens.currentToken().scopeDepth===0&&this.tokens.matches4(t.name,t.dot,t.name,t.parenL)&&this.tokens.identifierName()===Lt?Rl([this,"access",n=>n.importProcessor,"optionalAccess",n=>n.getGlobalNames,"call",n=>n(),"optionalAccess",n=>n.has,"call",n=>n(Lt)])?!1:this.extractHoistedCalls():!1}getHoistedCode(){return this.hoistedFunctionNames.length>0?this.hoistedFunctionNames.map(n=>`${n}();`).join(""):""}extractHoistedCalls(){this.tokens.removeToken();let n=!1;for(;this.tokens.matches3(t.dot,t.name,t.parenL);){const s=this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+1);if(Ll.includes(s)){const i=this.nameManager.claimFreeName("__jestHoist");this.hoistedFunctionNames.push(i),this.tokens.replaceToken(`function ${i}(){${Lt}.`),this.tokens.copyToken(),this.tokens.copyToken(),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(t.parenR),this.tokens.appendCode(";}"),n=!1}else n?this.tokens.copyToken():this.tokens.replaceToken(`${Lt}.`),this.tokens.copyToken(),this.tokens.copyToken(),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(t.parenR),n=!0}return!0}}class Dl extends Ee{constructor(n){super(),this.tokens=n}process(){if(this.tokens.matches1(t.num)){const n=this.tokens.currentTokenCode();if(n.includes("_"))return this.tokens.replaceToken(n.replace(/_/g,"")),!0}return!1}}class Ol extends Ee{constructor(n,s){super(),this.tokens=n,this.nameManager=s}process(){return this.tokens.matches2(t._catch,t.braceL)?(this.tokens.copyToken(),this.tokens.appendCode(` (${this.nameManager.claimFreeName("e")})`),!0):!1}}class Fl extends Ee{constructor(n,s){super(),this.tokens=n,this.nameManager=s}process(){if(this.tokens.matches1(t.nullishCoalescing)){const o=this.tokens.currentToken();return this.tokens.tokens[o.nullishStartIndex].isAsyncOperation?this.tokens.replaceTokenTrimmingLeftWhitespace(", async () => ("):this.tokens.replaceTokenTrimmingLeftWhitespace(", () => ("),!0}if(this.tokens.matches1(t._delete)&&this.tokens.tokenAtRelativeIndex(1).isOptionalChainStart)return this.tokens.removeInitialToken(),!0;const s=this.tokens.currentToken().subscriptStartIndex;if(s!=null&&this.tokens.tokens[s].isOptionalChainStart&&this.tokens.tokenAtRelativeIndex(-1).type!==t._super){const o=this.nameManager.claimFreeName("_");let i;if(s>0&&this.tokens.matches1AtIndex(s-1,t._delete)&&this.isLastSubscriptInChain()?i=`${o} => delete ${o}`:i=`${o} => ${o}`,this.tokens.tokens[s].isAsyncOperation&&(i=`async ${i}`),this.tokens.matches2(t.questionDot,t.parenL)||this.tokens.matches2(t.questionDot,t.lessThan))this.justSkippedSuper()&&this.tokens.appendCode(".bind(this)"),this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'optionalCall', ${i}`);else if(this.tokens.matches2(t.questionDot,t.bracketL))this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'optionalAccess', ${i}`);else if(this.tokens.matches1(t.questionDot))this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'optionalAccess', ${i}.`);else if(this.tokens.matches1(t.dot))this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'access', ${i}.`);else if(this.tokens.matches1(t.bracketL))this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'access', ${i}[`);else if(this.tokens.matches1(t.parenL))this.justSkippedSuper()&&this.tokens.appendCode(".bind(this)"),this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'call', ${i}(`);else throw new Error("Unexpected subscript operator in optional chain.");return!0}return!1}isLastSubscriptInChain(){let n=0;for(let s=this.tokens.currentIndex()+1;;s++){if(s>=this.tokens.tokens.length)throw new Error("Reached the end of the code while finding the end of the access chain.");if(this.tokens.tokens[s].isOptionalChainStart?n++:this.tokens.tokens[s].isOptionalChainEnd&&n--,n<0)return!0;if(n===0&&this.tokens.tokens[s].subscriptStartIndex!=null)return!1}}justSkippedSuper(){let n=0,s=this.tokens.currentIndex()-1;for(;;){if(s<0)throw new Error("Reached the start of the code while finding the start of the access chain.");if(this.tokens.tokens[s].isOptionalChainStart?n--:this.tokens.tokens[s].isOptionalChainEnd&&n++,n<0)return!1;if(n===0&&this.tokens.tokens[s].subscriptStartIndex!=null)return this.tokens.tokens[s-1].type===t._super;s--}}}class jl extends Ee{constructor(n,s,o,i){super(),this.rootTransformer=n,this.tokens=s,this.importProcessor=o,this.options=i}process(){const n=this.tokens.currentIndex();if(this.tokens.identifierName()==="createReactClass"){const s=this.importProcessor&&this.importProcessor.getIdentifierReplacement("createReactClass");return s?this.tokens.replaceToken(`(0, ${s})`):this.tokens.copyToken(),this.tryProcessCreateClassCall(n),!0}if(this.tokens.matches3(t.name,t.dot,t.name)&&this.tokens.identifierName()==="React"&&this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+2)==="createClass"){const s=this.importProcessor&&this.importProcessor.getIdentifierReplacement("React")||"React";return this.tokens.replaceToken(s),this.tokens.copyToken(),this.tokens.copyToken(),this.tryProcessCreateClassCall(n),!0}return!1}tryProcessCreateClassCall(n){const s=this.findDisplayName(n);s&&this.classNeedsDisplayName()&&(this.tokens.copyExpectedToken(t.parenL),this.tokens.copyExpectedToken(t.braceL),this.tokens.appendCode(`displayName: '${s}',`),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(t.braceR),this.tokens.copyExpectedToken(t.parenR))}findDisplayName(n){return n<2?null:this.tokens.matches2AtIndex(n-2,t.name,t.eq)?this.tokens.identifierNameAtIndex(n-2):n>=2&&this.tokens.tokens[n-2].identifierRole===v.ObjectKey?this.tokens.identifierNameAtIndex(n-2):this.tokens.matches2AtIndex(n-2,t._export,t._default)?this.getDisplayNameFromFilename():null}getDisplayNameFromFilename(){const s=(this.options.filePath||"unknown").split("/"),o=s[s.length-1],i=o.lastIndexOf("."),c=i===-1?o:o.slice(0,i);return c==="index"&&s[s.length-2]?s[s.length-2]:c}classNeedsDisplayName(){let n=this.tokens.currentIndex();if(!this.tokens.matches2(t.parenL,t.braceL))return!1;const s=n+1,o=this.tokens.tokens[s].contextId;if(o==null)throw new Error("Expected non-null context ID on object open-brace.");for(;n<this.tokens.tokens.length;n++){const i=this.tokens.tokens[n];if(i.type===t.braceR&&i.contextId===o){n++;break}if(this.tokens.identifierNameAtIndex(n)==="displayName"&&this.tokens.tokens[n].identifierRole===v.ObjectKey&&i.contextId===o)return!1}if(n===this.tokens.tokens.length)throw new Error("Unexpected end of input when processing React class.");return this.tokens.matches1AtIndex(n,t.parenR)||this.tokens.matches2AtIndex(n,t.comma,t.parenR)}}class Bs extends Ee{__init(){this.extractedDefaultExportName=null}constructor(n,s){super(),this.tokens=n,this.filePath=s,Bs.prototype.__init.call(this)}setExtractedDefaultExportName(n){this.extractedDefaultExportName=n}getPrefixCode(){return`
119
- (function () {
120
- var enterModule = require('react-hot-loader').enterModule;
121
- enterModule && enterModule(module);
122
- })();`.replace(/\s+/g," ").trim()}getSuffixCode(){const n=new Set;for(const o of this.tokens.tokens)!o.isType&&b1(o)&&o.identifierRole!==v.ImportDeclaration&&n.add(this.tokens.identifierNameForToken(o));const s=Array.from(n).map(o=>({variableName:o,uniqueLocalName:o}));return this.extractedDefaultExportName&&s.push({variableName:this.extractedDefaultExportName,uniqueLocalName:"default"}),`
123
- ;(function () {
124
- var reactHotLoader = require('react-hot-loader').default;
125
- var leaveModule = require('react-hot-loader').leaveModule;
126
- if (!reactHotLoader) {
127
- return;
128
- }
129
- ${s.map(({variableName:o,uniqueLocalName:i})=>` reactHotLoader.register(${o}, "${i}", ${JSON.stringify(this.filePath||"")});`).join(`
130
- `)}
131
- leaveModule(module);
132
- })();`}process(){return!1}}const ql=new Set(["break","case","catch","class","const","continue","debugger","default","delete","do","else","export","extends","finally","for","function","if","import","in","instanceof","new","return","super","switch","this","throw","try","typeof","var","void","while","with","yield","enum","implements","interface","let","package","private","protected","public","static","await","false","null","true"]);function m1(e){if(e.length===0||!Et[e.charCodeAt(0)])return!1;for(let n=1;n<e.length;n++)if(!Ae[e.charCodeAt(n)])return!1;return!ql.has(e)}class Ml extends Ee{constructor(n,s,o){super(),this.rootTransformer=n,this.tokens=s,this.isImportsTransformEnabled=o}process(){return this.rootTransformer.processPossibleArrowParamEnd()||this.rootTransformer.processPossibleAsyncArrowWithTypeParams()||this.rootTransformer.processPossibleTypeRange()?!0:this.tokens.matches1(t._public)||this.tokens.matches1(t._protected)||this.tokens.matches1(t._private)||this.tokens.matches1(t._abstract)||this.tokens.matches1(t._readonly)||this.tokens.matches1(t._override)||this.tokens.matches1(t.nonNullAssertion)?(this.tokens.removeInitialToken(),!0):this.tokens.matches1(t._enum)||this.tokens.matches2(t._const,t._enum)?(this.processEnum(),!0):this.tokens.matches2(t._export,t._enum)||this.tokens.matches3(t._export,t._const,t._enum)?(this.processEnum(!0),!0):!1}processEnum(n=!1){for(this.tokens.removeInitialToken();this.tokens.matches1(t._const)||this.tokens.matches1(t._enum);)this.tokens.removeToken();const s=this.tokens.identifierName();this.tokens.removeToken(),n&&!this.isImportsTransformEnabled&&this.tokens.appendCode("export "),this.tokens.appendCode(`var ${s}; (function (${s})`),this.tokens.copyExpectedToken(t.braceL),this.processEnumBody(s),this.tokens.copyExpectedToken(t.braceR),n&&this.isImportsTransformEnabled?this.tokens.appendCode(`)(${s} || (exports.${s} = ${s} = {}));`):this.tokens.appendCode(`)(${s} || (${s} = {}));`)}processEnumBody(n){let s=null;for(;!this.tokens.matches1(t.braceR);){const{nameStringCode:o,variableName:i}=this.extractEnumKeyInfo(this.tokens.currentToken());this.tokens.removeInitialToken(),this.tokens.matches3(t.eq,t.string,t.comma)||this.tokens.matches3(t.eq,t.string,t.braceR)?this.processStringLiteralEnumMember(n,o,i):this.tokens.matches1(t.eq)?this.processExplicitValueEnumMember(n,o,i):this.processImplicitValueEnumMember(n,o,i,s),this.tokens.matches1(t.comma)&&this.tokens.removeToken(),i!=null?s=i:s=`${n}[${o}]`}}extractEnumKeyInfo(n){if(n.type===t.name){const s=this.tokens.identifierNameForToken(n);return{nameStringCode:`"${s}"`,variableName:m1(s)?s:null}}else if(n.type===t.string){const s=this.tokens.stringValueForToken(n);return{nameStringCode:this.tokens.code.slice(n.start,n.end),variableName:m1(s)?s:null}}else throw new Error("Expected name or string at beginning of enum element.")}processStringLiteralEnumMember(n,s,o){o!=null?(this.tokens.appendCode(`const ${o}`),this.tokens.copyToken(),this.tokens.copyToken(),this.tokens.appendCode(`; ${n}[${s}] = ${o};`)):(this.tokens.appendCode(`${n}[${s}]`),this.tokens.copyToken(),this.tokens.copyToken(),this.tokens.appendCode(";"))}processExplicitValueEnumMember(n,s,o){const i=this.tokens.currentToken().rhsEndIndex;if(i==null)throw new Error("Expected rhsEndIndex on enum assign.");if(o!=null){for(this.tokens.appendCode(`const ${o}`),this.tokens.copyToken();this.tokens.currentIndex()<i;)this.rootTransformer.processToken();this.tokens.appendCode(`; ${n}[${n}[${s}] = ${o}] = ${s};`)}else{for(this.tokens.appendCode(`${n}[${n}[${s}]`),this.tokens.copyToken();this.tokens.currentIndex()<i;)this.rootTransformer.processToken();this.tokens.appendCode(`] = ${s};`)}}processImplicitValueEnumMember(n,s,o,i){let c=i!=null?`${i} + 1`:"0";o!=null&&(this.tokens.appendCode(`const ${o} = ${c}; `),c=o),this.tokens.appendCode(`${n}[${n}[${s}] = ${c}] = ${s};`)}}class Gt{__init(){this.transformers=[]}__init2(){this.generatedVariables=[]}constructor(n,s,o,i){Gt.prototype.__init.call(this),Gt.prototype.__init2.call(this),this.nameManager=n.nameManager,this.helperManager=n.helperManager;const{tokenProcessor:c,importProcessor:h}=n;this.tokens=c,this.isImportsTransformEnabled=s.includes("imports"),this.isReactHotLoaderTransformEnabled=s.includes("react-hot-loader"),this.disableESTransforms=!!i.disableESTransforms,i.disableESTransforms||(this.transformers.push(new Fl(c,this.nameManager)),this.transformers.push(new Dl(c)),this.transformers.push(new Ol(c,this.nameManager))),s.includes("jsx")&&(i.jsxRuntime!=="preserve"&&this.transformers.push(new Ye(this,c,h,this.nameManager,i)),this.transformers.push(new jl(this,c,h,i)));let m=null;if(s.includes("react-hot-loader")){if(!i.filePath)throw new Error("filePath is required when using the react-hot-loader transform.");m=new Bs(c,i.filePath),this.transformers.push(m)}if(s.includes("imports")){if(h===null)throw new Error("Expected non-null importProcessor with imports transform enabled.");this.transformers.push(new xt(this,c,h,this.nameManager,this.helperManager,m,o,!!i.enableLegacyTypeScriptModuleInterop,s.includes("typescript"),s.includes("flow"),!!i.preserveDynamicImport,!!i.keepUnusedImports))}else this.transformers.push(new Cl(c,this.nameManager,this.helperManager,m,s.includes("typescript"),s.includes("flow"),!!i.keepUnusedImports,i));s.includes("flow")&&this.transformers.push(new Pl(this,c,s.includes("imports"))),s.includes("typescript")&&this.transformers.push(new Ml(this,c,s.includes("imports"))),s.includes("jest")&&this.transformers.push(new Ms(this,c,this.nameManager,h))}transform(){this.tokens.reset(),this.processBalancedCode();let s=this.isImportsTransformEnabled?'"use strict";':"";for(const h of this.transformers)s+=h.getPrefixCode();s+=this.helperManager.emitHelpers(),s+=this.generatedVariables.map(h=>` var ${h};`).join("");for(const h of this.transformers)s+=h.getHoistedCode();let o="";for(const h of this.transformers)o+=h.getSuffixCode();const i=this.tokens.finish();let{code:c}=i;if(c.startsWith("#!")){let h=c.indexOf(`
133
- `);return h===-1&&(h=c.length,c+=`
134
- `),{code:c.slice(0,h+1)+s+c.slice(h+1)+o,mappings:this.shiftMappings(i.mappings,s.length)}}else return{code:s+c+o,mappings:this.shiftMappings(i.mappings,s.length)}}processBalancedCode(){let n=0,s=0;for(;!this.tokens.isAtEnd();){if(this.tokens.matches1(t.braceL)||this.tokens.matches1(t.dollarBraceL))n++;else if(this.tokens.matches1(t.braceR)){if(n===0)return;n--}if(this.tokens.matches1(t.parenL))s++;else if(this.tokens.matches1(t.parenR)){if(s===0)return;s--}this.processToken()}}processToken(){if(this.tokens.matches1(t._class)){this.processClass();return}for(const n of this.transformers)if(n.process())return;this.tokens.copyToken()}processNamedClass(){if(!this.tokens.matches2(t._class,t.name))throw new Error("Expected identifier for exported class name.");const n=this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+1);return this.processClass(),n}processClass(){const n=Sl(this,this.tokens,this.nameManager,this.disableESTransforms),s=(n.headerInfo.isExpression||!n.headerInfo.className)&&n.staticInitializerNames.length+n.instanceInitializerNames.length>0;let o=n.headerInfo.className;s&&(o=this.nameManager.claimFreeName("_class"),this.generatedVariables.push(o),this.tokens.appendCode(` (${o} =`));const c=this.tokens.currentToken().contextId;if(c==null)throw new Error("Expected class to have a context ID.");for(this.tokens.copyExpectedToken(t._class);!this.tokens.matchesContextIdAndLabel(t.braceL,c);)this.processToken();this.processClassBody(n,o);const h=n.staticInitializerNames.map(m=>`${o}.${m}()`);s?this.tokens.appendCode(`, ${h.map(m=>`${m}, `).join("")}${o})`):n.staticInitializerNames.length>0&&this.tokens.appendCode(` ${h.map(m=>`${m};`).join(" ")}`)}processClassBody(n,s){const{headerInfo:o,constructorInsertPos:i,constructorInitializerStatements:c,fields:h,instanceInitializerNames:m,rangesToRemove:g}=n;let f=0,y=0;const T=this.tokens.currentToken().contextId;if(T==null)throw new Error("Expected non-null context ID on class.");this.tokens.copyExpectedToken(t.braceL),this.isReactHotLoaderTransformEnabled&&this.tokens.appendCode("__reactstandin__regenerateByEval(key, code) {this[key] = eval(code);}");const S=c.length+m.length>0;if(i===null&&S){const C=this.makeConstructorInitCode(c,m,s);if(o.hasSuperclass){const $=this.nameManager.claimFreeName("args");this.tokens.appendCode(`constructor(...${$}) { super(...${$}); ${C}; }`)}else this.tokens.appendCode(`constructor() { ${C}; }`)}for(;!this.tokens.matchesContextIdAndLabel(t.braceR,T);)if(f<h.length&&this.tokens.currentIndex()===h[f].start){let C=!1;for(this.tokens.matches1(t.bracketL)?this.tokens.copyTokenWithPrefix(`${h[f].initializerName}() {this`):this.tokens.matches1(t.string)||this.tokens.matches1(t.num)?(this.tokens.copyTokenWithPrefix(`${h[f].initializerName}() {this[`),C=!0):this.tokens.copyTokenWithPrefix(`${h[f].initializerName}() {this.`);this.tokens.currentIndex()<h[f].end;)C&&this.tokens.currentIndex()===h[f].equalsIndex&&this.tokens.appendCode("]"),this.processToken();this.tokens.appendCode("}"),f++}else if(y<g.length&&this.tokens.currentIndex()>=g[y].start){for(this.tokens.currentIndex()<g[y].end&&this.tokens.removeInitialToken();this.tokens.currentIndex()<g[y].end;)this.tokens.removeToken();y++}else this.tokens.currentIndex()===i?(this.tokens.copyToken(),S&&this.tokens.appendCode(`;${this.makeConstructorInitCode(c,m,s)};`),this.processToken()):this.processToken();this.tokens.copyExpectedToken(t.braceR)}makeConstructorInitCode(n,s,o){return[...n,...s.map(i=>`${o}.prototype.${i}.call(this)`)].join(";")}processPossibleArrowParamEnd(){if(this.tokens.matches2(t.parenR,t.colon)&&this.tokens.tokenAtRelativeIndex(1).isType){let n=this.tokens.currentIndex()+1;for(;this.tokens.tokens[n].isType;)n++;if(this.tokens.matches1AtIndex(n,t.arrow)){for(this.tokens.removeInitialToken();this.tokens.currentIndex()<n;)this.tokens.removeToken();return this.tokens.replaceTokenTrimmingLeftWhitespace(") =>"),!0}}return!1}processPossibleAsyncArrowWithTypeParams(){if(!this.tokens.matchesContextual(l._async)&&!this.tokens.matches1(t._async))return!1;const n=this.tokens.tokenAtRelativeIndex(1);if(n.type!==t.lessThan||!n.isType)return!1;let s=this.tokens.currentIndex()+1;for(;this.tokens.tokens[s].isType;)s++;if(this.tokens.matches1AtIndex(s,t.parenL)){for(this.tokens.replaceToken("async ("),this.tokens.removeInitialToken();this.tokens.currentIndex()<s;)this.tokens.removeToken();return this.tokens.removeToken(),this.processBalancedCode(),this.processToken(),!0}return!1}processPossibleTypeRange(){if(this.tokens.currentToken().isType){for(this.tokens.removeInitialToken();this.tokens.currentToken().isType;)this.tokens.removeToken();return!0}return!1}shiftMappings(n,s){for(let o=0;o<n.length;o++){const i=n[o];i!==void 0&&(n[o]=i+s)}return n}}var ts={},d1;function Bl(){return d1||(d1=1,(function(e){e.__esModule=!0,e.LinesAndColumns=void 0;var n=`
135
- `,s="\r",o=(function(){function i(c){this.string=c;for(var h=[0],m=0;m<c.length;)switch(c[m]){case n:m+=n.length,h.push(m);break;case s:m+=s.length,c[m]===n&&(m+=n.length),h.push(m);break;default:m++;break}this.offsets=h}return i.prototype.locationForIndex=function(c){if(c<0||c>this.string.length)return null;for(var h=0,m=this.offsets;m[h+1]<=c;)h++;var g=c-m[h];return{line:h,column:g}},i.prototype.indexForLocation=function(c){var h=c.line,m=c.column;return h<0||h>=this.offsets.length||m<0||m>this.lengthOfLine(h)?null:this.offsets[h]+m},i.prototype.lengthOfLine=function(c){var h=this.offsets[c],m=c===this.offsets.length-1?this.string.length:this.offsets[c+1];return m-h},i})();e.LinesAndColumns=o,e.default=o})(ts)),ts}Bl();function $l(e){const n=new Set;for(let s=0;s<e.tokens.length;s++)e.matches1AtIndex(s,t._import)&&!e.matches3AtIndex(s,t._import,t.name,t.eq)&&Ul(e,s,n);return n}function Ul(e,n,s){n++,!e.matches1AtIndex(n,t.parenL)&&(e.matches1AtIndex(n,t.name)&&(s.add(e.identifierNameAtIndex(n)),n++,e.matches1AtIndex(n,t.comma)&&n++),e.matches1AtIndex(n,t.star)&&(n+=2,s.add(e.identifierNameAtIndex(n)),n++),e.matches1AtIndex(n,t.braceL)&&(n++,Hl(e,n,s)))}function Hl(e,n,s){for(;;){if(e.matches1AtIndex(n,t.braceR))return;const o=It(e,n);if(n=o.endIndex,o.isType||s.add(o.rightName),e.matches2AtIndex(n,t.comma,t.braceR))return;if(e.matches1AtIndex(n,t.braceR))return;if(e.matches1AtIndex(n,t.comma))n++;else throw new Error(`Unexpected token: ${JSON.stringify(e.tokens[n])}`)}}function Xl(e,n){ii(n);try{const s=Vl(e,n),i=new Gt(s,n.transforms,!!n.enableLegacyBabel5ModuleInterop,n).transform();let c={code:i.code};if(n.sourceMapOptions){if(!n.filePath)throw new Error("filePath must be specified when generating a source map.");c={...c,sourceMap:zo(i,n.filePath,n.sourceMapOptions,e,s.tokenProcessor.tokens)}}return c}catch(s){throw n.filePath&&(s.message=`Error transforming ${n.filePath}: ${s.message}`),s}}function Vl(e,n){const s=n.transforms.includes("jsx"),o=n.transforms.includes("typescript"),i=n.transforms.includes("flow"),c=n.disableESTransforms===!0,h=Al(e,s,o,i),m=h.tokens,g=h.scopes,f=new ds(e,m),y=new Mt(f),T=new _t(e,m,i,c,y),S=!!n.enableLegacyTypeScriptModuleInterop;let C=null;return n.transforms.includes("imports")?(C=new Ze(f,T,S,n,n.transforms.includes("typescript"),!!n.keepUnusedImports,y),C.preprocessTokens(),Qs(T,g,C.getGlobalNames()),n.transforms.includes("typescript")&&!n.keepUnusedImports&&C.pruneTypeOnlyImports()):n.transforms.includes("typescript")&&!n.keepUnusedImports&&Qs(T,g,$l(T)),{tokenProcessor:T,scopes:g,nameManager:f,importProcessor:C,helperManager:y}}export{Gr as e,Wl as g,Xl as t};