Files
orca/resources/plugins/declarative/orca-test-hooks.mjs
T
Neil e5b87cb8e6 Components catalog 2 and worker tests: forms, tabs, table, tree, markdown, code, images (#36997)
* plugins: components catalog 2 (forms, tabs, table, tree, markdown, code, images)

Adds 18 components to TSX components panels, drawn with Orca's own
primitives and gated by ui.catalog 2 / ui.has() (Orca 1.4.247):
Textarea, Checkbox, RadioGroup, Slider, Field, Tabs/Tab, Collapsible,
Toolbar, Grid, a virtualized Table with sort, selection and pull-based
paging, a keyboard Tree with lazy children, Markdown (sanitized, links
through the checked open path), CodeView (Orca's highlighter), Image
(header-checked plugin files read by main), KeyValue, Callout and
Skeleton, plus a tooltip prop on Button and IconButton.

Value controls share the edit protocol; handlers get plain JSON event
args, including small objects ({ keys }, { key, expanded }). The test kit
gains matching actions and hides unselected tabs and closed collapsibles;
a components-gallery example and e2e cover the catalog end to end.

* plugins: worker test harness, host refusals in tests and check

- orca/testing gains mountWorker(main, { host, events, commands }): it calls
  the default-exported activate(orca) with the orca object Orca itself builds
  (createPluginWorkerOrcaApi, moved to shared so the kit reuses it), backed by
  mockHost. emit() checks payloads against Orca's event schemas and only
  delivers subscribed events; command(), request() (the worker's
  orca.panels.handle, as a panel's plugin.request), posts, logs, refusals and
  deactivate(). Storage and settings share the mock host's in-memory store.
- orca plugin test loads a worker main's module graph as Orca's worker host
  does (.ts/.mts transform, Node resolution, no runtime orca import).
- mockHost records refusals (capability_denied, not_permitted, ...) even
  when plugin code catches them; panel.refusals exposes them and
  orca plugin check reports them as warnings. Check dedupes repeated issues.
- Typings, docs and a generated references/testing.md skill reference; the
  reference generator reads the split orca typings.
2026-11-01 05:43:15 -08:00

144 lines
314 KiB
JavaScript
Generated
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
// Generated by config/scripts/build-plugin-declarative-runtime.mjs from
// src/main/plugins/testing/. Do not edit.
var lp=Object.create;var Ii=Object.defineProperty;var cp=Object.getOwnPropertyDescriptor;var pp=Object.getOwnPropertyNames;var up=Object.getPrototypeOf,dp=Object.prototype.hasOwnProperty;var ne=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(n){throw t=0,n}};var fp=(e,t,n,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of pp(t))!dp.call(e,r)&&r!==n&&Ii(e,r,{get:()=>t[r],enumerable:!(o=cp(t,r))||o.enumerable});return e};var hp=(e,t,n)=>(n=e!=null?lp(up(e)):{},fp(t||!e||!e.__esModule?Ii(n,"default",{value:e,enumerable:!0}):n,e));var wt=ne(or=>{"use strict";Object.defineProperty(or,"__esModule",{value:!0});var Li;(function(e){e[e.NONE=0]="NONE";let n=1;e[e._abstract=n]="_abstract";let o=n+1;e[e._accessor=o]="_accessor";let r=o+1;e[e._as=r]="_as";let l=r+1;e[e._assert=l]="_assert";let d=l+1;e[e._asserts=d]="_asserts";let b=d+1;e[e._async=b]="_async";let L=b+1;e[e._await=L]="_await";let C=L+1;e[e._checks=C]="_checks";let m=C+1;e[e._constructor=m]="_constructor";let a=m+1;e[e._declare=a]="_declare";let B=a+1;e[e._enum=B]="_enum";let G=B+1;e[e._exports=G]="_exports";let J=G+1;e[e._from=J]="_from";let ie=J+1;e[e._get=ie]="_get";let $=ie+1;e[e._global=$]="_global";let H=$+1;e[e._implements=H]="_implements";let se=H+1;e[e._infer=se]="_infer";let Fe=se+1;e[e._interface=Fe]="_interface";let _e=Fe+1;e[e._is=_e]="_is";let U=_e+1;e[e._keyof=U]="_keyof";let Ge=U+1;e[e._mixins=Ge]="_mixins";let Re=Ge+1;e[e._module=Re]="_module";let st=Re+1;e[e._namespace=st]="_namespace";let dt=st+1;e[e._of=dt]="_of";let vt=dt+1;e[e._opaque=vt]="_opaque";let At=vt+1;e[e._out=At]="_out";let bt=At+1;e[e._override=bt]="_override";let Le=bt+1;e[e._private=Le]="_private";let xt=Le+1;e[e._protected=xt]="_protected";let Jt=xt+1;e[e._proto=Jt]="_proto";let Pt=Jt+1;e[e._public=Pt]="_public";let $t=Pt+1;e[e._readonly=$t]="_readonly";let rt=$t+1;e[e._require=rt]="_require";let Ke=rt+1;e[e._satisfies=Ke]="_satisfies";let qt=Ke+1;e[e._set=qt]="_set";let j=qt+1;e[e._static=j]="_static";let M=j+1;e[e._symbol=M]="_symbol";let I=M+1;e[e._type=I]="_type";let W=I+1;e[e._unique=W]="_unique";let ae=W+1;e[e._using=ae]="_using"})(Li||(or.ContextualKeyword=Li={}))});var Se=ne(Qo=>{"use strict";Object.defineProperty(Qo,"__esModule",{value:!0});var N;(function(e){e[e.PRECEDENCE_MASK=15]="PRECEDENCE_MASK";let n=16;e[e.IS_KEYWORD=n]="IS_KEYWORD";let o=32;e[e.IS_ASSIGN=o]="IS_ASSIGN";let r=64;e[e.IS_RIGHT_ASSOCIATIVE=r]="IS_RIGHT_ASSOCIATIVE";let l=128;e[e.IS_PREFIX=l]="IS_PREFIX";let d=256;e[e.IS_POSTFIX=d]="IS_POSTFIX";let b=512;e[e.IS_EXPRESSION_START=b]="IS_EXPRESSION_START";let L=512;e[e.num=L]="num";let C=1536;e[e.bigint=C]="bigint";let m=2560;e[e.decimal=m]="decimal";let a=3584;e[e.regexp=a]="regexp";let B=4608;e[e.string=B]="string";let G=5632;e[e.name=G]="name";let J=6144;e[e.eof=J]="eof";let ie=7680;e[e.bracketL=ie]="bracketL";let $=8192;e[e.bracketR=$]="bracketR";let H=9728;e[e.braceL=H]="braceL";let se=10752;e[e.braceBarL=se]="braceBarL";let Fe=11264;e[e.braceR=Fe]="braceR";let _e=12288;e[e.braceBarR=_e]="braceBarR";let U=13824;e[e.parenL=U]="parenL";let Ge=14336;e[e.parenR=Ge]="parenR";let Re=15360;e[e.comma=Re]="comma";let st=16384;e[e.semi=st]="semi";let dt=17408;e[e.colon=dt]="colon";let vt=18432;e[e.doubleColon=vt]="doubleColon";let At=19456;e[e.dot=At]="dot";let bt=20480;e[e.question=bt]="question";let Le=21504;e[e.questionDot=Le]="questionDot";let xt=22528;e[e.arrow=xt]="arrow";let Jt=23552;e[e.template=Jt]="template";let Pt=24576;e[e.ellipsis=Pt]="ellipsis";let $t=25600;e[e.backQuote=$t]="backQuote";let rt=27136;e[e.dollarBraceL=rt]="dollarBraceL";let Ke=27648;e[e.at=Ke]="at";let qt=29184;e[e.hash=qt]="hash";let j=29728;e[e.eq=j]="eq";let M=30752;e[e.assign=M]="assign";let I=32640;e[e.preIncDec=I]="preIncDec";let W=33664;e[e.postIncDec=W]="postIncDec";let ae=34432;e[e.bang=ae]="bang";let fe=35456;e[e.tilde=fe]="tilde";let Ie=35841;e[e.pipeline=Ie]="pipeline";let ge=36866;e[e.nullishCoalescing=ge]="nullishCoalescing";let We=37890;e[e.logicalOR=We]="logicalOR";let He=38915;e[e.logicalAND=He]="logicalAND";let we=39940;e[e.bitwiseOR=we]="bitwiseOR";let $e=40965;e[e.bitwiseXOR=$e]="bitwiseXOR";let Ve=41990;e[e.bitwiseAND=Ve]="bitwiseAND";let xe=43015;e[e.equality=xe]="equality";let Ze=44040;e[e.lessThan=Ze]="lessThan";let F=45064;e[e.greaterThan=F]="greaterThan";let R=46088;e[e.relationalOrEqual=R]="relationalOrEqual";let V=47113;e[e.bitShiftL=V]="bitShiftL";let Z=48137;e[e.bitShiftR=Z]="bitShiftR";let ye=49802;e[e.plus=ye]="plus";let Te=50826;e[e.minus=Te]="minus";let ke=51723;e[e.modulo=ke]="modulo";let De=52235;e[e.star=De]="star";let at=53259;e[e.slash=at]="slash";let Ct=54348;e[e.exponent=Ct]="exponent";let Mt=55296;e[e.jsxName=Mt]="jsxName";let Ft=56320;e[e.jsxText=Ft]="jsxText";let nn=57344;e[e.jsxEmptyText=nn]="jsxEmptyText";let jt=58880;e[e.jsxTagStart=jt]="jsxTagStart";let Bt=59392;e[e.jsxTagEnd=Bt]="jsxTagEnd";let It=60928;e[e.typeParameterStart=It]="typeParameterStart";let s=61440;e[e.nonNullAssertion=s]="nonNullAssertion";let u=62480;e[e._break=u]="_break";let x=63504;e[e._case=x]="_case";let i=64528;e[e._catch=i]="_catch";let T=65552;e[e._continue=T]="_continue";let v=66576;e[e._debugger=v]="_debugger";let O=67600;e[e._default=O]="_default";let te=68624;e[e._do=te]="_do";let Y=69648;e[e._else=Y]="_else";let ve=70672;e[e._finally=ve]="_finally";let qe=71696;e[e._for=qe]="_for";let me=73232;e[e._function=me]="_function";let le=73744;e[e._if=le]="_if";let de=74768;e[e._return=de]="_return";let pt=75792;e[e._switch=pt]="_switch";let St=77456;e[e._throw=St]="_throw";let Rt=77840;e[e._try=Rt]="_try";let Ut=78864;e[e._var=Ut]="_var";let Wt=79888;e[e._let=Wt]="_let";let Gt=80912;e[e._const=Gt]="_const";let hn=81936;e[e._while=hn]="_while";let Un=82960;e[e._with=Un]="_with";let Nt=84496;e[e._new=Nt]="_new";let Wn=85520;e[e._this=Wn]="_this";let Yn=86544;e[e._super=Yn]="_super";let vo=87568;e[e._class=vo]="_class";let Qn=88080;e[e._extends=Qn]="_extends";let Hn=89104;e[e._export=Hn]="_export";let cn=90640;e[e._import=cn]="_import";let En=91664;e[e._yield=En]="_yield";let Zn=92688;e[e._null=Zn]="_null";let eo=93712;e[e._true=eo]="_true";let to=94736;e[e._false=to]="_false";let Gs=95256;e[e._in=Gs]="_in";let zs=96280;e[e._instanceof=zs]="_instanceof";let Ys=97936;e[e._typeof=Ys]="_typeof";let Qs=98960;e[e._void=Qs]="_void";let Vc=99984;e[e._delete=Vc]="_delete";let Xc=100880;e[e._async=Xc]="_async";let Jc=101904;e[e._get=Jc]="_get";let Gc=102928;e[e._set=Gc]="_set";let zc=103952;e[e._declare=zc]="_declare";let Yc=104976;e[e._readonly=Yc]="_readonly";let Qc=106e3;e[e._abstract=Qc]="_abstract";let Zc=107024;e[e._static=Zc]="_static";let ep=107536;e[e._public=ep]="_public";let tp=108560;e[e._private=tp]="_private";let np=109584;e[e._protected=np]="_protected";let op=110608;e[e._override=op]="_override";let sp=112144;e[e._as=sp]="_as";let rp=113168;e[e._enum=rp]="_enum";let ap=114192;e[e._type=ap]="_type";let ip=115216;e[e._implements=ip]="_implements"})(N||(Qo.TokenType=N={}));function gp(e){switch(e){case N.num:return"num";case N.bigint:return"bigint";case N.decimal:return"decimal";case N.regexp:return"regexp";case N.string:return"string";case N.name:return"name";case N.eof:return"eof";case N.bracketL:return"[";case N.bracketR:return"]";case N.braceL:return"{";case N.braceBarL:return"{|";case N.braceR:return"}";case N.braceBarR:return"|}";case N.parenL:return"(";case N.parenR:return")";case N.comma:return",";case N.semi:return";";case N.colon:return":";case N.doubleColon:return"::";case N.dot:return".";case N.question:return"?";case N.questionDot:return"?.";case N.arrow:return"=>";case N.template:return"template";case N.ellipsis:return"...";case N.backQuote:return"`";case N.dollarBraceL:return"${";case N.at:return"@";case N.hash:return"#";case N.eq:return"=";case N.assign:return"_=";case N.preIncDec:return"++/--";case N.postIncDec:return"++/--";case N.bang:return"!";case N.tilde:return"~";case N.pipeline:return"|>";case N.nullishCoalescing:return"??";case N.logicalOR:return"||";case N.logicalAND:return"&&";case N.bitwiseOR:return"|";case N.bitwiseXOR:return"^";case N.bitwiseAND:return"&";case N.equality:return"==/!=";case N.lessThan:return"<";case N.greaterThan:return">";case N.relationalOrEqual:return"<=/>=";case N.bitShiftL:return"<<";case N.bitShiftR:return">>/>>>";case N.plus:return"+";case N.minus:return"-";case N.modulo:return"%";case N.star:return"*";case N.slash:return"/";case N.exponent:return"**";case N.jsxName:return"jsxName";case N.jsxText:return"jsxText";case N.jsxEmptyText:return"jsxEmptyText";case N.jsxTagStart:return"jsxTagStart";case N.jsxTagEnd:return"jsxTagEnd";case N.typeParameterStart:return"typeParameterStart";case N.nonNullAssertion:return"nonNullAssertion";case N._break:return"break";case N._case:return"case";case N._catch:return"catch";case N._continue:return"continue";case N._debugger:return"debugger";case N._default:return"default";case N._do:return"do";case N._else:return"else";case N._finally:return"finally";case N._for:return"for";case N._function:return"function";case N._if:return"if";case N._return:return"return";case N._switch:return"switch";case N._throw:return"throw";case N._try:return"try";case N._var:return"var";case N._let:return"let";case N._const:return"const";case N._while:return"while";case N._with:return"with";case N._new:return"new";case N._this:return"this";case N._super:return"super";case N._class:return"class";case N._extends:return"extends";case N._export:return"export";case N._import:return"import";case N._yield:return"yield";case N._null:return"null";case N._true:return"true";case N._false:return"false";case N._in:return"in";case N._instanceof:return"instanceof";case N._typeof:return"typeof";case N._void:return"void";case N._delete:return"delete";case N._async:return"async";case N._get:return"get";case N._set:return"set";case N._declare:return"declare";case N._readonly:return"readonly";case N._abstract:return"abstract";case N._static:return"static";case N._public:return"public";case N._private:return"private";case N._protected:return"protected";case N._override:return"override";case N._as:return"as";case N._enum:return"enum";case N._type:return"type";case N._implements:return"implements";default:return""}}Qo.formatTokenType=gp});var es=ne(go=>{"use strict";Object.defineProperty(go,"__esModule",{value:!0});var wp=wt(),bp=Se(),sr=class{constructor(t,n,o){this.startTokenIndex=t,this.endTokenIndex=n,this.isFunctionScope=o}};go.Scope=sr;var Zo=class{constructor(t,n,o,r,l,d,b,L,C,m,a,B,G){this.potentialArrowAt=t,this.noAnonFunctionType=n,this.inDisallowConditionalTypesContext=o,this.tokensLength=r,this.scopesLength=l,this.pos=d,this.type=b,this.contextualKeyword=L,this.start=C,this.end=m,this.isType=a,this.scopeDepth=B,this.error=G}};go.StateSnapshot=Zo;var rr=class e{constructor(){e.prototype.__init.call(this),e.prototype.__init2.call(this),e.prototype.__init3.call(this),e.prototype.__init4.call(this),e.prototype.__init5.call(this),e.prototype.__init6.call(this),e.prototype.__init7.call(this),e.prototype.__init8.call(this),e.prototype.__init9.call(this),e.prototype.__init10.call(this),e.prototype.__init11.call(this),e.prototype.__init12.call(this),e.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=bp.TokenType.eof}__init8(){this.contextualKeyword=wp.ContextualKeyword.NONE}__init9(){this.start=0}__init10(){this.end=0}__init11(){this.isType=!1}__init12(){this.scopeDepth=0}__init13(){this.error=null}snapshot(){return new Zo(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(t){this.potentialArrowAt=t.potentialArrowAt,this.noAnonFunctionType=t.noAnonFunctionType,this.inDisallowConditionalTypesContext=t.inDisallowConditionalTypesContext,this.tokens.length=t.tokensLength,this.scopes.length=t.scopesLength,this.pos=t.pos,this.type=t.type,this.contextualKeyword=t.contextualKeyword,this.start=t.start,this.end=t.end,this.isType=t.isType,this.scopeDepth=t.scopeDepth,this.error=t.error}};go.default=rr});var zt=ne(ts=>{"use strict";Object.defineProperty(ts,"__esModule",{value:!0});var Pn;(function(e){e[e.backSpace=8]="backSpace";let n=10;e[e.lineFeed=n]="lineFeed";let o=9;e[e.tab=o]="tab";let r=13;e[e.carriageReturn=r]="carriageReturn";let l=14;e[e.shiftOut=l]="shiftOut";let d=32;e[e.space=d]="space";let b=33;e[e.exclamationMark=b]="exclamationMark";let L=34;e[e.quotationMark=L]="quotationMark";let C=35;e[e.numberSign=C]="numberSign";let m=36;e[e.dollarSign=m]="dollarSign";let a=37;e[e.percentSign=a]="percentSign";let B=38;e[e.ampersand=B]="ampersand";let G=39;e[e.apostrophe=G]="apostrophe";let J=40;e[e.leftParenthesis=J]="leftParenthesis";let ie=41;e[e.rightParenthesis=ie]="rightParenthesis";let $=42;e[e.asterisk=$]="asterisk";let H=43;e[e.plusSign=H]="plusSign";let se=44;e[e.comma=se]="comma";let Fe=45;e[e.dash=Fe]="dash";let _e=46;e[e.dot=_e]="dot";let U=47;e[e.slash=U]="slash";let Ge=48;e[e.digit0=Ge]="digit0";let Re=49;e[e.digit1=Re]="digit1";let st=50;e[e.digit2=st]="digit2";let dt=51;e[e.digit3=dt]="digit3";let vt=52;e[e.digit4=vt]="digit4";let At=53;e[e.digit5=At]="digit5";let bt=54;e[e.digit6=bt]="digit6";let Le=55;e[e.digit7=Le]="digit7";let xt=56;e[e.digit8=xt]="digit8";let Jt=57;e[e.digit9=Jt]="digit9";let Pt=58;e[e.colon=Pt]="colon";let $t=59;e[e.semicolon=$t]="semicolon";let rt=60;e[e.lessThan=rt]="lessThan";let Ke=61;e[e.equalsTo=Ke]="equalsTo";let qt=62;e[e.greaterThan=qt]="greaterThan";let j=63;e[e.questionMark=j]="questionMark";let M=64;e[e.atSign=M]="atSign";let I=65;e[e.uppercaseA=I]="uppercaseA";let W=66;e[e.uppercaseB=W]="uppercaseB";let ae=67;e[e.uppercaseC=ae]="uppercaseC";let fe=68;e[e.uppercaseD=fe]="uppercaseD";let Ie=69;e[e.uppercaseE=Ie]="uppercaseE";let ge=70;e[e.uppercaseF=ge]="uppercaseF";let We=71;e[e.uppercaseG=We]="uppercaseG";let He=72;e[e.uppercaseH=He]="uppercaseH";let we=73;e[e.uppercaseI=we]="uppercaseI";let $e=74;e[e.uppercaseJ=$e]="uppercaseJ";let Ve=75;e[e.uppercaseK=Ve]="uppercaseK";let xe=76;e[e.uppercaseL=xe]="uppercaseL";let Ze=77;e[e.uppercaseM=Ze]="uppercaseM";let F=78;e[e.uppercaseN=F]="uppercaseN";let R=79;e[e.uppercaseO=R]="uppercaseO";let V=80;e[e.uppercaseP=V]="uppercaseP";let Z=81;e[e.uppercaseQ=Z]="uppercaseQ";let ye=82;e[e.uppercaseR=ye]="uppercaseR";let Te=83;e[e.uppercaseS=Te]="uppercaseS";let ke=84;e[e.uppercaseT=ke]="uppercaseT";let De=85;e[e.uppercaseU=De]="uppercaseU";let at=86;e[e.uppercaseV=at]="uppercaseV";let Ct=87;e[e.uppercaseW=Ct]="uppercaseW";let Mt=88;e[e.uppercaseX=Mt]="uppercaseX";let Ft=89;e[e.uppercaseY=Ft]="uppercaseY";let nn=90;e[e.uppercaseZ=nn]="uppercaseZ";let jt=91;e[e.leftSquareBracket=jt]="leftSquareBracket";let Bt=92;e[e.backslash=Bt]="backslash";let It=93;e[e.rightSquareBracket=It]="rightSquareBracket";let s=94;e[e.caret=s]="caret";let u=95;e[e.underscore=u]="underscore";let x=96;e[e.graveAccent=x]="graveAccent";let i=97;e[e.lowercaseA=i]="lowercaseA";let T=98;e[e.lowercaseB=T]="lowercaseB";let v=99;e[e.lowercaseC=v]="lowercaseC";let O=100;e[e.lowercaseD=O]="lowercaseD";let te=101;e[e.lowercaseE=te]="lowercaseE";let Y=102;e[e.lowercaseF=Y]="lowercaseF";let ve=103;e[e.lowercaseG=ve]="lowercaseG";let qe=104;e[e.lowercaseH=qe]="lowercaseH";let me=105;e[e.lowercaseI=me]="lowercaseI";let le=106;e[e.lowercaseJ=le]="lowercaseJ";let de=107;e[e.lowercaseK=de]="lowercaseK";let pt=108;e[e.lowercaseL=pt]="lowercaseL";let St=109;e[e.lowercaseM=St]="lowercaseM";let Rt=110;e[e.lowercaseN=Rt]="lowercaseN";let Ut=111;e[e.lowercaseO=Ut]="lowercaseO";let Wt=112;e[e.lowercaseP=Wt]="lowercaseP";let Gt=113;e[e.lowercaseQ=Gt]="lowercaseQ";let hn=114;e[e.lowercaseR=hn]="lowercaseR";let Un=115;e[e.lowercaseS=Un]="lowercaseS";let Nt=116;e[e.lowercaseT=Nt]="lowercaseT";let Wn=117;e[e.lowercaseU=Wn]="lowercaseU";let Yn=118;e[e.lowercaseV=Yn]="lowercaseV";let vo=119;e[e.lowercaseW=vo]="lowercaseW";let Qn=120;e[e.lowercaseX=Qn]="lowercaseX";let Hn=121;e[e.lowercaseY=Hn]="lowercaseY";let cn=122;e[e.lowercaseZ=cn]="lowercaseZ";let En=123;e[e.leftCurlyBrace=En]="leftCurlyBrace";let Zn=124;e[e.verticalBar=Zn]="verticalBar";let eo=125;e[e.rightCurlyBrace=eo]="rightCurlyBrace";let to=126;e[e.tilde=to]="tilde";let Gs=160;e[e.nonBreakingSpace=Gs]="nonBreakingSpace";let zs=5760;e[e.oghamSpaceMark=zs]="oghamSpaceMark";let Ys=8232;e[e.lineSeparator=Ys]="lineSeparator";let Qs=8233;e[e.paragraphSeparator=Qs]="paragraphSeparator"})(Pn||(ts.charCodes=Pn={}));function Cp(e){return e>=Pn.digit0&&e<=Pn.digit9||e>=Pn.lowercaseA&&e<=Pn.lowercaseF||e>=Pn.uppercaseA&&e<=Pn.uppercaseF}ts.isDigit=Cp});var Yt=ne(kt=>{"use strict";Object.defineProperty(kt,"__esModule",{value:!0});function Ip(e){return e&&e.__esModule?e:{default:e}}var Sp=es(),Ep=Ip(Sp),Ap=zt();kt.isJSXEnabled;kt.isTypeScriptEnabled;kt.isFlowEnabled;kt.state;kt.input;kt.nextContextId;function Pp(){return kt.nextContextId++}kt.getNextContextId=Pp;function Rp(e){if("pos"in e){let t=Di(e.pos);e.message+=` (${t.line}:${t.column})`,e.loc=t}return e}kt.augmentError=Rp;var ns=class{constructor(t,n){this.line=t,this.column=n}};kt.Loc=ns;function Di(e){let t=1,n=1;for(let o=0;o<e;o++)kt.input.charCodeAt(o)===Ap.charCodes.lineFeed?(t++,n=1):n++;return new ns(t,n)}kt.locationForIndex=Di;function Np(e,t,n,o){kt.input=e,kt.state=new Ep.default,kt.nextContextId=1,kt.isJSXEnabled=t,kt.isTypeScriptEnabled=n,kt.isFlowEnabled=o}kt.initParser=Np});var Nn=ne(Zt=>{"use strict";Object.defineProperty(Zt,"__esModule",{value:!0});var Rn=_t(),Vn=Se(),os=zt(),Qt=Yt();function Op(e){return Qt.state.contextualKeyword===e}Zt.isContextual=Op;function Lp(e){let t=Rn.lookaheadTypeAndKeyword.call(void 0);return t.type===Vn.TokenType.name&&t.contextualKeyword===e}Zt.isLookaheadContextual=Lp;function qi(e){return Qt.state.contextualKeyword===e&&Rn.eat.call(void 0,Vn.TokenType.name)}Zt.eatContextual=qi;function Dp(e){qi(e)||ss()}Zt.expectContextual=Dp;function Mi(){return Rn.match.call(void 0,Vn.TokenType.eof)||Rn.match.call(void 0,Vn.TokenType.braceR)||Fi()}Zt.canInsertSemicolon=Mi;function Fi(){let e=Qt.state.tokens[Qt.state.tokens.length-1],t=e?e.end:0;for(let n=t;n<Qt.state.start;n++){let o=Qt.input.charCodeAt(n);if(o===os.charCodes.lineFeed||o===os.charCodes.carriageReturn||o===8232||o===8233)return!0}return!1}Zt.hasPrecedingLineBreak=Fi;function qp(){let e=Rn.nextTokenStart.call(void 0);for(let t=Qt.state.end;t<e;t++){let n=Qt.input.charCodeAt(t);if(n===os.charCodes.lineFeed||n===os.charCodes.carriageReturn||n===8232||n===8233)return!0}return!1}Zt.hasFollowingLineBreak=qp;function ji(){return Rn.eat.call(void 0,Vn.TokenType.semi)||Mi()}Zt.isLineTerminator=ji;function Mp(){ji()||ss('Unexpected token, expected ";"')}Zt.semicolon=Mp;function Fp(e){Rn.eat.call(void 0,e)||ss(`Unexpected token, expected "${Vn.formatTokenType.call(void 0,e)}"`)}Zt.expect=Fp;function ss(e="Unexpected token",t=Qt.state.start){if(Qt.state.error)return;let n=new SyntaxError(e);n.pos=t,Qt.state.error=n,Qt.state.pos=Qt.input.length,Rn.finishToken.call(void 0,Vn.TokenType.eof)}Zt.unexpected=ss});var ir=ne(Xn=>{"use strict";Object.defineProperty(Xn,"__esModule",{value:!0});var ar=zt(),jp=[9,11,12,ar.charCodes.space,ar.charCodes.nonBreakingSpace,ar.charCodes.oghamSpaceMark,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279];Xn.WHITESPACE_CHARS=jp;var Bp=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g;Xn.skipWhiteSpace=Bp;var Kp=new Uint8Array(65536);Xn.IS_WHITESPACE=Kp;for(let e of Xn.WHITESPACE_CHARS)Xn.IS_WHITESPACE[e]=1});var no=ne(pn=>{"use strict";Object.defineProperty(pn,"__esModule",{value:!0});var Bi=zt(),$p=ir();function Up(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.")}var Wp=new Uint8Array(65536);pn.IS_IDENTIFIER_CHAR=Wp;for(let e=0;e<128;e++)pn.IS_IDENTIFIER_CHAR[e]=Up(e)?1:0;for(let e=128;e<65536;e++)pn.IS_IDENTIFIER_CHAR[e]=1;for(let e of $p.WHITESPACE_CHARS)pn.IS_IDENTIFIER_CHAR[e]=0;pn.IS_IDENTIFIER_CHAR[8232]=0;pn.IS_IDENTIFIER_CHAR[8233]=0;var Hp=pn.IS_IDENTIFIER_CHAR.slice();pn.IS_IDENTIFIER_START=Hp;for(let e=Bi.charCodes.digit0;e<=Bi.charCodes.digit9;e++)pn.IS_IDENTIFIER_START[e]=0});var Ki=ne(lr=>{"use strict";Object.defineProperty(lr,"__esModule",{value:!0});var be=wt(),Ee=Se(),Vp=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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1,-1,-1,-1,-1,-1,-1,8721,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(Ee.TokenType._while<<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,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8775,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8802,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,(Ee.TokenType._with<<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,-1,-1,-1,-1,-1,-1,-1,-1,-1,8856,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,8883,-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,-1,-1,-1,-1,-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,(Ee.TokenType._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]);lr.READ_WORD_TREE=Vp});var Hi=ne(pr=>{"use strict";Object.defineProperty(pr,"__esModule",{value:!0});var un=Yt(),On=zt(),$i=no(),cr=_t(),Ui=Ki(),Wi=Se();function Xp(){let e=0,t=0,n=un.state.pos;for(;n<un.input.length&&(t=un.input.charCodeAt(n),!(t<On.charCodes.lowercaseA||t>On.charCodes.lowercaseZ));){let r=Ui.READ_WORD_TREE[e+(t-On.charCodes.lowercaseA)+1];if(r===-1)break;e=r,n++}let o=Ui.READ_WORD_TREE[e];if(o>-1&&!$i.IS_IDENTIFIER_CHAR[t]){un.state.pos=n,o&1?cr.finishToken.call(void 0,o>>>1):cr.finishToken.call(void 0,Wi.TokenType.name,o>>>1);return}for(;n<un.input.length;){let r=un.input.charCodeAt(n);if($i.IS_IDENTIFIER_CHAR[r])n++;else if(r===On.charCodes.backslash){if(n+=2,un.input.charCodeAt(n)===On.charCodes.leftCurlyBrace){for(;n<un.input.length&&un.input.charCodeAt(n)!==On.charCodes.rightCurlyBrace;)n++;n++}}else if(r===On.charCodes.atSign&&un.input.charCodeAt(n+1)===On.charCodes.atSign)n+=2;else break}un.state.pos=n,cr.finishToken.call(void 0,Wi.TokenType.name)}pr.default=Xp});var _t=ne(Je=>{"use strict";Object.defineProperty(Je,"__esModule",{value:!0});function Jp(e){return e&&e.__esModule?e:{default:e}}var h=Yt(),oo=Nn(),S=zt(),Xi=no(),dr=ir(),Gp=wt(),zp=Hi(),Yp=Jp(zp),z=Se(),lt;(function(e){e[e.Access=0]="Access";let n=1;e[e.ExportAccess=n]="ExportAccess";let o=n+1;e[e.TopLevelDeclaration=o]="TopLevelDeclaration";let r=o+1;e[e.FunctionScopedDeclaration=r]="FunctionScopedDeclaration";let l=r+1;e[e.BlockScopedDeclaration=l]="BlockScopedDeclaration";let d=l+1;e[e.ObjectShorthandTopLevelDeclaration=d]="ObjectShorthandTopLevelDeclaration";let b=d+1;e[e.ObjectShorthandFunctionScopedDeclaration=b]="ObjectShorthandFunctionScopedDeclaration";let L=b+1;e[e.ObjectShorthandBlockScopedDeclaration=L]="ObjectShorthandBlockScopedDeclaration";let C=L+1;e[e.ObjectShorthand=C]="ObjectShorthand";let m=C+1;e[e.ImportDeclaration=m]="ImportDeclaration";let a=m+1;e[e.ObjectKey=a]="ObjectKey";let B=a+1;e[e.ImportAccess=B]="ImportAccess"})(lt||(Je.IdentifierRole=lt={}));var Vi;(function(e){e[e.NoChildren=0]="NoChildren";let n=1;e[e.OneChild=n]="OneChild";let o=n+1;e[e.StaticChildren=o]="StaticChildren";let r=o+1;e[e.KeyAfterPropSpread=r]="KeyAfterPropSpread"})(Vi||(Je.JSXRole=Vi={}));function Qp(e){let t=e.identifierRole;return t===lt.TopLevelDeclaration||t===lt.FunctionScopedDeclaration||t===lt.BlockScopedDeclaration||t===lt.ObjectShorthandTopLevelDeclaration||t===lt.ObjectShorthandFunctionScopedDeclaration||t===lt.ObjectShorthandBlockScopedDeclaration}Je.isDeclaration=Qp;function Zp(e){let t=e.identifierRole;return t===lt.FunctionScopedDeclaration||t===lt.BlockScopedDeclaration||t===lt.ObjectShorthandFunctionScopedDeclaration||t===lt.ObjectShorthandBlockScopedDeclaration}Je.isNonTopLevelDeclaration=Zp;function eu(e){let t=e.identifierRole;return t===lt.TopLevelDeclaration||t===lt.ObjectShorthandTopLevelDeclaration||t===lt.ImportDeclaration}Je.isTopLevelDeclaration=eu;function tu(e){let t=e.identifierRole;return t===lt.TopLevelDeclaration||t===lt.BlockScopedDeclaration||t===lt.ObjectShorthandTopLevelDeclaration||t===lt.ObjectShorthandBlockScopedDeclaration}Je.isBlockScopedDeclaration=tu;function nu(e){let t=e.identifierRole;return t===lt.FunctionScopedDeclaration||t===lt.ObjectShorthandFunctionScopedDeclaration}Je.isFunctionScopedDeclaration=nu;function ou(e){return e.identifierRole===lt.ObjectShorthandTopLevelDeclaration||e.identifierRole===lt.ObjectShorthandBlockScopedDeclaration||e.identifierRole===lt.ObjectShorthandFunctionScopedDeclaration}Je.isObjectShorthandDeclaration=ou;var wo=class{constructor(){this.type=h.state.type,this.contextualKeyword=h.state.contextualKeyword,this.start=h.state.start,this.end=h.state.end,this.scopeDepth=h.state.scopeDepth,this.isType=h.state.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}};Je.Token=wo;function as(){h.state.tokens.push(new wo),Yi()}Je.next=as;function su(){h.state.tokens.push(new wo),h.state.start=h.state.pos,Su()}Je.nextTemplateToken=su;function ru(){h.state.type===z.TokenType.assign&&--h.state.pos,bu()}Je.retokenizeSlashAsRegex=ru;function au(e){for(let n=h.state.tokens.length-e;n<h.state.tokens.length;n++)h.state.tokens[n].isType=!0;let t=h.state.isType;return h.state.isType=!0,t}Je.pushTypeContext=au;function iu(e){h.state.isType=e}Je.popTypeContext=iu;function Ji(e){return fr(e)?(as(),!0):!1}Je.eat=Ji;function lu(e){let t=h.state.isType;h.state.isType=!0,Ji(e),h.state.isType=t}Je.eatTypeToken=lu;function fr(e){return h.state.type===e}Je.match=fr;function cu(){let e=h.state.snapshot();as();let t=h.state.type;return h.state.restoreFromSnapshot(e),t}Je.lookaheadType=cu;var rs=class{constructor(t,n){this.type=t,this.contextualKeyword=n}};Je.TypeAndKeyword=rs;function pu(){let e=h.state.snapshot();as();let t=h.state.type,n=h.state.contextualKeyword;return h.state.restoreFromSnapshot(e),new rs(t,n)}Je.lookaheadTypeAndKeyword=pu;function Gi(){return zi(h.state.pos)}Je.nextTokenStart=Gi;function zi(e){dr.skipWhiteSpace.lastIndex=e;let t=dr.skipWhiteSpace.exec(h.input);return e+t[0].length}Je.nextTokenStartSince=zi;function uu(){return h.input.charCodeAt(Gi())}Je.lookaheadCharCode=uu;function Yi(){if(Zi(),h.state.start=h.state.pos,h.state.pos>=h.input.length){let e=h.state.tokens;e.length>=2&&e[e.length-1].start>=h.input.length&&e[e.length-2].start>=h.input.length&&oo.unexpected.call(void 0,"Unexpectedly reached the end of input."),ze(z.TokenType.eof);return}du(h.input.charCodeAt(h.state.pos))}Je.nextToken=Yi;function du(e){Xi.IS_IDENTIFIER_START[e]||e===S.charCodes.backslash||e===S.charCodes.atSign&&h.input.charCodeAt(h.state.pos+1)===S.charCodes.atSign?Yp.default.call(void 0):t1(e)}function fu(){for(;h.input.charCodeAt(h.state.pos)!==S.charCodes.asterisk||h.input.charCodeAt(h.state.pos+1)!==S.charCodes.slash;)if(h.state.pos++,h.state.pos>h.input.length){oo.unexpected.call(void 0,"Unterminated comment",h.state.pos-2);return}h.state.pos+=2}function Qi(e){let t=h.input.charCodeAt(h.state.pos+=e);if(h.state.pos<h.input.length)for(;t!==S.charCodes.lineFeed&&t!==S.charCodes.carriageReturn&&t!==S.charCodes.lineSeparator&&t!==S.charCodes.paragraphSeparator&&++h.state.pos<h.input.length;)t=h.input.charCodeAt(h.state.pos)}Je.skipLineComment=Qi;function Zi(){for(;h.state.pos<h.input.length;){let e=h.input.charCodeAt(h.state.pos);switch(e){case S.charCodes.carriageReturn:h.input.charCodeAt(h.state.pos+1)===S.charCodes.lineFeed&&++h.state.pos;case S.charCodes.lineFeed:case S.charCodes.lineSeparator:case S.charCodes.paragraphSeparator:++h.state.pos;break;case S.charCodes.slash:switch(h.input.charCodeAt(h.state.pos+1)){case S.charCodes.asterisk:h.state.pos+=2,fu();break;case S.charCodes.slash:Qi(2);break;default:return}break;default:if(dr.IS_WHITESPACE[e])++h.state.pos;else return}}}Je.skipSpace=Zi;function ze(e,t=Gp.ContextualKeyword.NONE){h.state.end=h.state.pos,h.state.type=e,h.state.contextualKeyword=t}Je.finishToken=ze;function hu(){let e=h.input.charCodeAt(h.state.pos+1);if(e>=S.charCodes.digit0&&e<=S.charCodes.digit9){n1(!0);return}e===S.charCodes.dot&&h.input.charCodeAt(h.state.pos+2)===S.charCodes.dot?(h.state.pos+=3,ze(z.TokenType.ellipsis)):(++h.state.pos,ze(z.TokenType.dot))}function Tu(){h.input.charCodeAt(h.state.pos+1)===S.charCodes.equalsTo?Xe(z.TokenType.assign,2):Xe(z.TokenType.slash,1)}function ku(e){let t=e===S.charCodes.asterisk?z.TokenType.star:z.TokenType.modulo,n=1,o=h.input.charCodeAt(h.state.pos+1);e===S.charCodes.asterisk&&o===S.charCodes.asterisk&&(n++,o=h.input.charCodeAt(h.state.pos+2),t=z.TokenType.exponent),o===S.charCodes.equalsTo&&h.input.charCodeAt(h.state.pos+2)!==S.charCodes.greaterThan&&(n++,t=z.TokenType.assign),Xe(t,n)}function mu(e){let t=h.input.charCodeAt(h.state.pos+1);if(t===e){h.input.charCodeAt(h.state.pos+2)===S.charCodes.equalsTo?Xe(z.TokenType.assign,3):Xe(e===S.charCodes.verticalBar?z.TokenType.logicalOR:z.TokenType.logicalAND,2);return}if(e===S.charCodes.verticalBar){if(t===S.charCodes.greaterThan){Xe(z.TokenType.pipeline,2);return}else if(t===S.charCodes.rightCurlyBrace&&h.isFlowEnabled){Xe(z.TokenType.braceBarR,2);return}}if(t===S.charCodes.equalsTo){Xe(z.TokenType.assign,2);return}Xe(e===S.charCodes.verticalBar?z.TokenType.bitwiseOR:z.TokenType.bitwiseAND,1)}function yu(){h.input.charCodeAt(h.state.pos+1)===S.charCodes.equalsTo?Xe(z.TokenType.assign,2):Xe(z.TokenType.bitwiseXOR,1)}function vu(e){let t=h.input.charCodeAt(h.state.pos+1);if(t===e){Xe(z.TokenType.preIncDec,2);return}t===S.charCodes.equalsTo?Xe(z.TokenType.assign,2):e===S.charCodes.plusSign?Xe(z.TokenType.plus,1):Xe(z.TokenType.minus,1)}function xu(){let e=h.input.charCodeAt(h.state.pos+1);if(e===S.charCodes.lessThan){if(h.input.charCodeAt(h.state.pos+2)===S.charCodes.equalsTo){Xe(z.TokenType.assign,3);return}h.state.isType?Xe(z.TokenType.lessThan,1):Xe(z.TokenType.bitShiftL,2);return}e===S.charCodes.equalsTo?Xe(z.TokenType.relationalOrEqual,2):Xe(z.TokenType.lessThan,1)}function e1(){if(h.state.isType){Xe(z.TokenType.greaterThan,1);return}let e=h.input.charCodeAt(h.state.pos+1);if(e===S.charCodes.greaterThan){let t=h.input.charCodeAt(h.state.pos+2)===S.charCodes.greaterThan?3:2;if(h.input.charCodeAt(h.state.pos+t)===S.charCodes.equalsTo){Xe(z.TokenType.assign,t+1);return}Xe(z.TokenType.bitShiftR,t);return}e===S.charCodes.equalsTo?Xe(z.TokenType.relationalOrEqual,2):Xe(z.TokenType.greaterThan,1)}function _u(){h.state.type===z.TokenType.greaterThan&&(h.state.pos-=1,e1())}Je.rescan_gt=_u;function gu(e){let t=h.input.charCodeAt(h.state.pos+1);if(t===S.charCodes.equalsTo){Xe(z.TokenType.equality,h.input.charCodeAt(h.state.pos+2)===S.charCodes.equalsTo?3:2);return}if(e===S.charCodes.equalsTo&&t===S.charCodes.greaterThan){h.state.pos+=2,ze(z.TokenType.arrow);return}Xe(e===S.charCodes.equalsTo?z.TokenType.eq:z.TokenType.bang,1)}function wu(){let e=h.input.charCodeAt(h.state.pos+1),t=h.input.charCodeAt(h.state.pos+2);e===S.charCodes.questionMark&&!(h.isFlowEnabled&&h.state.isType)?t===S.charCodes.equalsTo?Xe(z.TokenType.assign,3):Xe(z.TokenType.nullishCoalescing,2):e===S.charCodes.dot&&!(t>=S.charCodes.digit0&&t<=S.charCodes.digit9)?(h.state.pos+=2,ze(z.TokenType.questionDot)):(++h.state.pos,ze(z.TokenType.question))}function t1(e){switch(e){case S.charCodes.numberSign:++h.state.pos,ze(z.TokenType.hash);return;case S.charCodes.dot:hu();return;case S.charCodes.leftParenthesis:++h.state.pos,ze(z.TokenType.parenL);return;case S.charCodes.rightParenthesis:++h.state.pos,ze(z.TokenType.parenR);return;case S.charCodes.semicolon:++h.state.pos,ze(z.TokenType.semi);return;case S.charCodes.comma:++h.state.pos,ze(z.TokenType.comma);return;case S.charCodes.leftSquareBracket:++h.state.pos,ze(z.TokenType.bracketL);return;case S.charCodes.rightSquareBracket:++h.state.pos,ze(z.TokenType.bracketR);return;case S.charCodes.leftCurlyBrace:h.isFlowEnabled&&h.input.charCodeAt(h.state.pos+1)===S.charCodes.verticalBar?Xe(z.TokenType.braceBarL,2):(++h.state.pos,ze(z.TokenType.braceL));return;case S.charCodes.rightCurlyBrace:++h.state.pos,ze(z.TokenType.braceR);return;case S.charCodes.colon:h.input.charCodeAt(h.state.pos+1)===S.charCodes.colon?Xe(z.TokenType.doubleColon,2):(++h.state.pos,ze(z.TokenType.colon));return;case S.charCodes.questionMark:wu();return;case S.charCodes.atSign:++h.state.pos,ze(z.TokenType.at);return;case S.charCodes.graveAccent:++h.state.pos,ze(z.TokenType.backQuote);return;case S.charCodes.digit0:{let t=h.input.charCodeAt(h.state.pos+1);if(t===S.charCodes.lowercaseX||t===S.charCodes.uppercaseX||t===S.charCodes.lowercaseO||t===S.charCodes.uppercaseO||t===S.charCodes.lowercaseB||t===S.charCodes.uppercaseB){Cu();return}}case S.charCodes.digit1:case S.charCodes.digit2:case S.charCodes.digit3:case S.charCodes.digit4:case S.charCodes.digit5:case S.charCodes.digit6:case S.charCodes.digit7:case S.charCodes.digit8:case S.charCodes.digit9:n1(!1);return;case S.charCodes.quotationMark:case S.charCodes.apostrophe:Iu(e);return;case S.charCodes.slash:Tu();return;case S.charCodes.percentSign:case S.charCodes.asterisk:ku(e);return;case S.charCodes.verticalBar:case S.charCodes.ampersand:mu(e);return;case S.charCodes.caret:yu();return;case S.charCodes.plusSign:case S.charCodes.dash:vu(e);return;case S.charCodes.lessThan:xu();return;case S.charCodes.greaterThan:e1();return;case S.charCodes.equalsTo:case S.charCodes.exclamationMark:gu(e);return;case S.charCodes.tilde:Xe(z.TokenType.tilde,1);return;default:break}oo.unexpected.call(void 0,`Unexpected character '${String.fromCharCode(e)}'`,h.state.pos)}Je.getTokenFromCode=t1;function Xe(e,t){h.state.pos+=t,ze(e)}function bu(){let e=h.state.pos,t=!1,n=!1;for(;;){if(h.state.pos>=h.input.length){oo.unexpected.call(void 0,"Unterminated regular expression",e);return}let o=h.input.charCodeAt(h.state.pos);if(t)t=!1;else{if(o===S.charCodes.leftSquareBracket)n=!0;else if(o===S.charCodes.rightSquareBracket&&n)n=!1;else if(o===S.charCodes.slash&&!n)break;t=o===S.charCodes.backslash}++h.state.pos}++h.state.pos,o1(),ze(z.TokenType.regexp)}function ur(){for(;;){let e=h.input.charCodeAt(h.state.pos);if(e>=S.charCodes.digit0&&e<=S.charCodes.digit9||e===S.charCodes.underscore)h.state.pos++;else break}}function Cu(){for(h.state.pos+=2;;){let t=h.input.charCodeAt(h.state.pos);if(t>=S.charCodes.digit0&&t<=S.charCodes.digit9||t>=S.charCodes.lowercaseA&&t<=S.charCodes.lowercaseF||t>=S.charCodes.uppercaseA&&t<=S.charCodes.uppercaseF||t===S.charCodes.underscore)h.state.pos++;else break}h.input.charCodeAt(h.state.pos)===S.charCodes.lowercaseN?(++h.state.pos,ze(z.TokenType.bigint)):ze(z.TokenType.num)}function n1(e){let t=!1,n=!1;e||ur();let o=h.input.charCodeAt(h.state.pos);if(o===S.charCodes.dot&&(++h.state.pos,ur(),o=h.input.charCodeAt(h.state.pos)),(o===S.charCodes.uppercaseE||o===S.charCodes.lowercaseE)&&(o=h.input.charCodeAt(++h.state.pos),(o===S.charCodes.plusSign||o===S.charCodes.dash)&&++h.state.pos,ur(),o=h.input.charCodeAt(h.state.pos)),o===S.charCodes.lowercaseN?(++h.state.pos,t=!0):o===S.charCodes.lowercaseM&&(++h.state.pos,n=!0),t){ze(z.TokenType.bigint);return}if(n){ze(z.TokenType.decimal);return}ze(z.TokenType.num)}function Iu(e){for(h.state.pos++;;){if(h.state.pos>=h.input.length){oo.unexpected.call(void 0,"Unterminated string constant");return}let t=h.input.charCodeAt(h.state.pos);if(t===S.charCodes.backslash)h.state.pos++;else if(t===e)break;h.state.pos++}h.state.pos++,ze(z.TokenType.string)}function Su(){for(;;){if(h.state.pos>=h.input.length){oo.unexpected.call(void 0,"Unterminated template");return}let e=h.input.charCodeAt(h.state.pos);if(e===S.charCodes.graveAccent||e===S.charCodes.dollarSign&&h.input.charCodeAt(h.state.pos+1)===S.charCodes.leftCurlyBrace){if(h.state.pos===h.state.start&&fr(z.TokenType.template))if(e===S.charCodes.dollarSign){h.state.pos+=2,ze(z.TokenType.dollarBraceL);return}else{++h.state.pos,ze(z.TokenType.backQuote);return}ze(z.TokenType.template);return}e===S.charCodes.backslash&&h.state.pos++,h.state.pos++}}function o1(){for(;h.state.pos<h.input.length;){let e=h.input.charCodeAt(h.state.pos);if(Xi.IS_IDENTIFIER_CHAR[e])h.state.pos++;else if(e===S.charCodes.backslash){if(h.state.pos+=2,h.input.charCodeAt(h.state.pos)===S.charCodes.leftCurlyBrace){for(;h.state.pos<h.input.length&&h.input.charCodeAt(h.state.pos)!==S.charCodes.rightCurlyBrace;)h.state.pos++;h.state.pos++}}else break}}Je.skipWord=o1});var bo=ne(hr=>{"use strict";Object.defineProperty(hr,"__esModule",{value:!0});var s1=Se();function Eu(e,t=e.currentIndex()){let n=t+1;if(is(e,n)){let o=e.identifierNameAtIndex(t);return{isType:!1,leftName:o,rightName:o,endIndex:n}}if(n++,is(e,n))return{isType:!0,leftName:null,rightName:null,endIndex:n};if(n++,is(e,n))return{isType:!1,leftName:e.identifierNameAtIndex(t),rightName:e.identifierNameAtIndex(t+2),endIndex:n};if(n++,is(e,n))return{isType:!0,leftName:null,rightName:null,endIndex:n};throw new Error(`Unexpected import/export specifier at ${t}`)}hr.default=Eu;function is(e,t){let n=e.tokens[t];return n.type===s1.TokenType.braceR||n.type===s1.TokenType.comma}});var r1=ne(Tr=>{"use strict";Object.defineProperty(Tr,"__esModule",{value:!0});Tr.default=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","♦"]])});var mr=ne(kr=>{"use strict";Object.defineProperty(kr,"__esModule",{value:!0});function Au(e){let[t,n]=a1(e.jsxPragma||"React.createElement"),[o,r]=a1(e.jsxFragmentPragma||"React.Fragment");return{base:t,suffix:n,fragmentBase:o,fragmentSuffix:r}}kr.default=Au;function a1(e){let t=e.indexOf(".");return t===-1&&(t=e.length),[e.slice(0,t),e.slice(t)]}});var on=ne(vr=>{"use strict";Object.defineProperty(vr,"__esModule",{value:!0});var yr=class{getPrefixCode(){return""}getHoistedCode(){return""}getSuffixCode(){return""}};vr.default=yr});var gr=ne(cs=>{"use strict";Object.defineProperty(cs,"__esModule",{value:!0});function _r(e){return e&&e.__esModule?e:{default:e}}var Pu=r1(),Ru=_r(Pu),ls=_t(),Me=Se(),Tn=zt(),Nu=mr(),Ou=_r(Nu),Lu=on(),Du=_r(Lu),xr=class e extends Du.default{__init(){this.lastLineNumber=1}__init2(){this.lastIndex=0}__init3(){this.filenameVarName=null}__init4(){this.esmAutomaticImportNameResolutions={}}__init5(){this.cjsAutomaticModuleNameResolutions={}}constructor(t,n,o,r,l){super(),this.rootTransformer=t,this.tokens=n,this.importProcessor=o,this.nameManager=r,this.options=l,e.prototype.__init.call(this),e.prototype.__init2.call(this),e.prototype.__init3.call(this),e.prototype.__init4.call(this),e.prototype.__init5.call(this),this.jsxPragmaInfo=Ou.default.call(void 0,l),this.isAutomaticRuntime=l.jsxRuntime==="automatic",this.jsxImportSource=l.jsxImportSource||"react"}process(){return this.tokens.matches1(Me.TokenType.jsxTagStart)?(this.processJSXTag(),!0):!1}getPrefixCode(){let t="";if(this.filenameVarName&&(t+=`const ${this.filenameVarName} = ${JSON.stringify(this.options.filePath||"")};`),this.isAutomaticRuntime)if(this.importProcessor)for(let[n,o]of Object.entries(this.cjsAutomaticModuleNameResolutions))t+=`var ${o} = require("${n}");`;else{let{createElement:n,...o}=this.esmAutomaticImportNameResolutions;n&&(t+=`import {createElement as ${n}} from "${this.jsxImportSource}";`);let r=Object.entries(o).map(([l,d])=>`${l} as ${d}`).join(", ");if(r){let l=this.jsxImportSource+(this.options.production?"/jsx-runtime":"/jsx-dev-runtime");t+=`import {${r}} from "${l}";`}}return t}processJSXTag(){let{jsxRole:t,start:n}=this.tokens.currentToken(),o=this.options.production?null:this.getElementLocationCode(n);this.isAutomaticRuntime&&t!==ls.JSXRole.KeyAfterPropSpread?this.transformTagToJSXFunc(o,t):this.transformTagToCreateElement(o)}getElementLocationCode(t){return`lineNumber: ${this.getLineNumberForIndex(t)}`}getLineNumberForIndex(t){let n=this.tokens.code;for(;this.lastIndex<t&&this.lastIndex<n.length;)n[this.lastIndex]===`
`&&this.lastLineNumber++,this.lastIndex++;return this.lastLineNumber}transformTagToJSXFunc(t,n){let o=n===ls.JSXRole.StaticChildren;this.tokens.replaceToken(this.getJSXFuncInvocationCode(o));let r=null;if(this.tokens.matches1(Me.TokenType.jsxTagEnd))this.tokens.replaceToken(`${this.getFragmentCode()}, {`),this.processAutomaticChildrenAndEndProps(n);else{if(this.processTagIntro(),this.tokens.appendCode(", {"),r=this.processProps(!0),this.tokens.matches2(Me.TokenType.slash,Me.TokenType.jsxTagEnd))this.tokens.appendCode("}");else if(this.tokens.matches1(Me.TokenType.jsxTagEnd))this.tokens.removeToken(),this.processAutomaticChildrenAndEndProps(n);else throw new Error("Expected either /> or > at the end of the tag.");r&&this.tokens.appendCode(`, ${r}`)}for(this.options.production||(r===null&&this.tokens.appendCode(", void 0"),this.tokens.appendCode(`, ${o}, ${this.getDevSource(t)}, this`)),this.tokens.removeInitialToken();!this.tokens.matches1(Me.TokenType.jsxTagEnd);)this.tokens.removeToken();this.tokens.replaceToken(")")}transformTagToCreateElement(t){if(this.tokens.replaceToken(this.getCreateElementInvocationCode()),this.tokens.matches1(Me.TokenType.jsxTagEnd))this.tokens.replaceToken(`${this.getFragmentCode()}, null`),this.processChildren(!0);else if(this.processTagIntro(),this.processPropsObjectWithDevInfo(t),!this.tokens.matches2(Me.TokenType.slash,Me.TokenType.jsxTagEnd))if(this.tokens.matches1(Me.TokenType.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(Me.TokenType.jsxTagEnd);)this.tokens.removeToken();this.tokens.replaceToken(")")}getJSXFuncInvocationCode(t){return this.options.production?t?this.claimAutoImportedFuncInvocation("jsxs","/jsx-runtime"):this.claimAutoImportedFuncInvocation("jsx","/jsx-runtime"):this.claimAutoImportedFuncInvocation("jsxDEV","/jsx-dev-runtime")}getCreateElementInvocationCode(){if(this.isAutomaticRuntime)return this.claimAutoImportedFuncInvocation("createElement","");{let{jsxPragmaInfo:t}=this;return`${this.importProcessor&&this.importProcessor.getIdentifierReplacement(t.base)||t.base}${t.suffix}(`}}getFragmentCode(){if(this.isAutomaticRuntime)return this.claimAutoImportedName("Fragment",this.options.production?"/jsx-runtime":"/jsx-dev-runtime");{let{jsxPragmaInfo:t}=this;return(this.importProcessor&&this.importProcessor.getIdentifierReplacement(t.fragmentBase)||t.fragmentBase)+t.fragmentSuffix}}claimAutoImportedFuncInvocation(t,n){let o=this.claimAutoImportedName(t,n);return this.importProcessor?`${o}.call(void 0, `:`${o}(`}claimAutoImportedName(t,n){if(this.importProcessor){let o=this.jsxImportSource+n;return this.cjsAutomaticModuleNameResolutions[o]||(this.cjsAutomaticModuleNameResolutions[o]=this.importProcessor.getFreeIdentifierForPath(o)),`${this.cjsAutomaticModuleNameResolutions[o]}.${t}`}else return this.esmAutomaticImportNameResolutions[t]||(this.esmAutomaticImportNameResolutions[t]=this.nameManager.claimFreeName(`_${t}`)),this.esmAutomaticImportNameResolutions[t]}processTagIntro(){let t=this.tokens.currentIndex()+1;for(;this.tokens.tokens[t].isType||!this.tokens.matches2AtIndex(t-1,Me.TokenType.jsxName,Me.TokenType.jsxName)&&!this.tokens.matches2AtIndex(t-1,Me.TokenType.greaterThan,Me.TokenType.jsxName)&&!this.tokens.matches1AtIndex(t,Me.TokenType.braceL)&&!this.tokens.matches1AtIndex(t,Me.TokenType.jsxTagEnd)&&!this.tokens.matches2AtIndex(t,Me.TokenType.slash,Me.TokenType.jsxTagEnd);)t++;if(t===this.tokens.currentIndex()+1){let n=this.tokens.identifierName();l1(n)&&this.tokens.replaceToken(`'${n}'`)}for(;this.tokens.currentIndex()<t;)this.rootTransformer.processToken()}processPropsObjectWithDevInfo(t){let n=this.options.production?"":`__self: this, __source: ${this.getDevSource(t)}`;if(!this.tokens.matches1(Me.TokenType.jsxName)&&!this.tokens.matches1(Me.TokenType.braceL)){n?this.tokens.appendCode(`, {${n}}`):this.tokens.appendCode(", null");return}this.tokens.appendCode(", {"),this.processProps(!1),n?this.tokens.appendCode(` ${n}}`):this.tokens.appendCode("}")}processProps(t){let n=null;for(;;){if(this.tokens.matches2(Me.TokenType.jsxName,Me.TokenType.eq)){let o=this.tokens.identifierName();if(t&&o==="key"){n!==null&&this.tokens.appendCode(n.replace(/[^\n]/g,"")),this.tokens.removeToken(),this.tokens.removeToken();let r=this.tokens.snapshot();this.processPropValue(),n=this.tokens.dangerouslyGetAndRemoveCodeSinceSnapshot(r);continue}else this.processPropName(o),this.tokens.replaceToken(": "),this.processPropValue()}else if(this.tokens.matches1(Me.TokenType.jsxName)){let o=this.tokens.identifierName();this.processPropName(o),this.tokens.appendCode(": true")}else if(this.tokens.matches1(Me.TokenType.braceL))this.tokens.replaceToken(""),this.rootTransformer.processBalancedCode(),this.tokens.replaceToken("");else break;this.tokens.appendCode(",")}return n}processPropName(t){t.includes("-")?this.tokens.replaceToken(`'${t}'`):this.tokens.copyToken()}processPropValue(){this.tokens.matches1(Me.TokenType.braceL)?(this.tokens.replaceToken(""),this.rootTransformer.processBalancedCode(),this.tokens.replaceToken("")):this.tokens.matches1(Me.TokenType.jsxTagStart)?this.processJSXTag():this.processStringPropValue()}processStringPropValue(){let t=this.tokens.currentToken(),n=this.tokens.code.slice(t.start+1,t.end-1),o=i1(n),r=Mu(n);this.tokens.replaceToken(r+o)}processAutomaticChildrenAndEndProps(t){t===ls.JSXRole.StaticChildren?(this.tokens.appendCode(" children: ["),this.processChildren(!1),this.tokens.appendCode("]}")):(t===ls.JSXRole.OneChild&&this.tokens.appendCode(" children: "),this.processChildren(!1),this.tokens.appendCode("}"))}processChildren(t){let n=t;for(;;){if(this.tokens.matches2(Me.TokenType.jsxTagStart,Me.TokenType.slash))return;let o=!1;if(this.tokens.matches1(Me.TokenType.braceL))this.tokens.matches2(Me.TokenType.braceL,Me.TokenType.braceR)?(this.tokens.replaceToken(""),this.tokens.replaceToken("")):(this.tokens.replaceToken(n?", ":""),this.rootTransformer.processBalancedCode(),this.tokens.replaceToken(""),o=!0);else if(this.tokens.matches1(Me.TokenType.jsxTagStart))this.tokens.appendCode(n?", ":""),this.processJSXTag(),o=!0;else if(this.tokens.matches1(Me.TokenType.jsxText)||this.tokens.matches1(Me.TokenType.jsxEmptyText))o=this.processChildTextElement(n);else throw new Error("Unexpected token when processing JSX children.");o&&(n=!0)}}processChildTextElement(t){let n=this.tokens.currentToken(),o=this.tokens.code.slice(n.start,n.end),r=i1(o),l=qu(o);return l==='""'?(this.tokens.replaceToken(r),!1):(this.tokens.replaceToken(`${t?", ":""}${l}${r}`),!0)}getDevSource(t){return`{fileName: ${this.getFilenameVarName()}, ${t}}`}getFilenameVarName(){return this.filenameVarName||(this.filenameVarName=this.nameManager.claimFreeName("_jsxFileName")),this.filenameVarName}};cs.default=xr;function l1(e){let t=e.charCodeAt(0);return t>=Tn.charCodes.lowercaseA&&t<=Tn.charCodes.lowercaseZ}cs.startsWithLowerCase=l1;function qu(e){let t="",n="",o=!1,r=!1;for(let l=0;l<e.length;l++){let d=e[l];if(d===" "||d===" "||d==="\r")o||(n+=d);else if(d===`
`)n="",o=!0;else{if(r&&o&&(t+=" "),t+=n,n="",d==="&"){let{entity:b,newI:L}=c1(e,l+1);l=L-1,t+=b}else t+=d;r=!0,o=!1}}return o||(t+=n),JSON.stringify(t)}function i1(e){let t=0,n=0;for(let o of e)o===`
`?(t++,n=0):o===" "&&n++;return`
`.repeat(t)+" ".repeat(n)}function Mu(e){let t="";for(let n=0;n<e.length;n++){let o=e[n];if(o===`
`)if(/\s/.test(e[n+1]))for(t+=" ";n<e.length&&/\s/.test(e[n+1]);)n++;else t+=`
`;else if(o==="&"){let{entity:r,newI:l}=c1(e,n+1);t+=r,n=l-1}else t+=o}return JSON.stringify(t)}function c1(e,t){let n="",o=0,r,l=t;if(e[l]==="#"){let d=10;l++;let b;if(e[l]==="x")for(d=16,l++,b=l;l<e.length&&ju(e.charCodeAt(l));)l++;else for(b=l;l<e.length&&Fu(e.charCodeAt(l));)l++;if(e[l]===";"){let L=e.slice(b,l);L&&(l++,r=String.fromCodePoint(parseInt(L,d)))}}else for(;l<e.length&&o++<10;){let d=e[l];if(l++,d===";"){r=Ru.default.get(n);break}n+=d}return r?{entity:r,newI:l}:{entity:"&",newI:t}}function Fu(e){return e>=Tn.charCodes.digit0&&e<=Tn.charCodes.digit9}function ju(e){return e>=Tn.charCodes.digit0&&e<=Tn.charCodes.digit9||e>=Tn.charCodes.lowercaseA&&e<=Tn.charCodes.lowercaseF||e>=Tn.charCodes.uppercaseA&&e<=Tn.charCodes.uppercaseF}});var br=ne(wr=>{"use strict";Object.defineProperty(wr,"__esModule",{value:!0});function Bu(e){return e&&e.__esModule?e:{default:e}}var ps=_t(),so=Se(),Ku=gr(),$u=mr(),Uu=Bu($u);function Wu(e,t){let n=Uu.default.call(void 0,t),o=new Set;for(let r=0;r<e.tokens.length;r++){let l=e.tokens[r];if(l.type===so.TokenType.name&&!l.isType&&(l.identifierRole===ps.IdentifierRole.Access||l.identifierRole===ps.IdentifierRole.ObjectShorthand||l.identifierRole===ps.IdentifierRole.ExportAccess)&&!l.shadowsGlobal&&o.add(e.identifierNameForToken(l)),l.type===so.TokenType.jsxTagStart&&o.add(n.base),l.type===so.TokenType.jsxTagStart&&r+1<e.tokens.length&&e.tokens[r+1].type===so.TokenType.jsxTagEnd&&(o.add(n.base),o.add(n.fragmentBase)),l.type===so.TokenType.jsxName&&l.identifierRole===ps.IdentifierRole.Access){let d=e.identifierNameForToken(l);(!Ku.startsWithLowerCase.call(void 0,d)||e.tokens[r+1].type===so.TokenType.dot)&&o.add(e.identifierNameForToken(l))}}return o}wr.getNonTypeIdentifiers=Wu});var p1=ne(Ir=>{"use strict";Object.defineProperty(Ir,"__esModule",{value:!0});function Hu(e){return e&&e.__esModule?e:{default:e}}var Vu=_t(),us=wt(),pe=Se(),Xu=bo(),Ju=Hu(Xu),Gu=br(),Cr=class e{__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(t,n,o,r,l,d,b){this.nameManager=t,this.tokens=n,this.enableLegacyTypeScriptModuleInterop=o,this.options=r,this.isTypeScriptTransformEnabled=l,this.keepUnusedImports=d,this.helperManager=b,e.prototype.__init.call(this),e.prototype.__init2.call(this),e.prototype.__init3.call(this),e.prototype.__init4.call(this),e.prototype.__init5.call(this)}preprocessTokens(){for(let t=0;t<this.tokens.tokens.length;t++)this.tokens.matches1AtIndex(t,pe.TokenType._import)&&!this.tokens.matches3AtIndex(t,pe.TokenType._import,pe.TokenType.name,pe.TokenType.eq)&&this.preprocessImportAtIndex(t),this.tokens.matches1AtIndex(t,pe.TokenType._export)&&!this.tokens.matches2AtIndex(t,pe.TokenType._export,pe.TokenType.eq)&&this.preprocessExportAtIndex(t);this.generateImportReplacements()}pruneTypeOnlyImports(){this.nonTypeIdentifiers=Gu.getNonTypeIdentifiers.call(void 0,this.tokens,this.options);for(let[t,n]of this.importInfoByPath.entries()){if(n.hasBareImport||n.hasStarExport||n.exportStarNames.length>0||n.namedExports.length>0)continue;[...n.defaultNames,...n.wildcardNames,...n.namedImports.map(({localName:r})=>r)].every(r=>this.shouldAutomaticallyElideImportedName(r))&&this.importsToReplace.set(t,"")}}shouldAutomaticallyElideImportedName(t){return this.isTypeScriptTransformEnabled&&!this.keepUnusedImports&&!this.nonTypeIdentifiers.has(t)}generateImportReplacements(){for(let[t,n]of this.importInfoByPath.entries()){let{defaultNames:o,wildcardNames:r,namedImports:l,namedExports:d,exportStarNames:b,hasStarExport:L}=n;if(o.length===0&&r.length===0&&l.length===0&&d.length===0&&b.length===0&&!L){this.importsToReplace.set(t,`require('${t}');`);continue}let C=this.getFreeIdentifierForPath(t),m;this.enableLegacyTypeScriptModuleInterop?m=C:m=r.length>0?r[0]:this.getFreeIdentifierForPath(t);let a=`var ${C} = require('${t}');`;if(r.length>0)for(let B of r){let G=this.enableLegacyTypeScriptModuleInterop?C:`${this.helperManager.getHelperName("interopRequireWildcard")}(${C})`;a+=` var ${B} = ${G};`}else b.length>0&&m!==C?a+=` var ${m} = ${this.helperManager.getHelperName("interopRequireWildcard")}(${C});`:o.length>0&&m!==C&&(a+=` var ${m} = ${this.helperManager.getHelperName("interopRequireDefault")}(${C});`);for(let{importedName:B,localName:G}of d)a+=` ${this.helperManager.getHelperName("createNamedExportFrom")}(${C}, '${G}', '${B}');`;for(let B of b)a+=` exports.${B} = ${m};`;L&&(a+=` ${this.helperManager.getHelperName("createStarExport")}(${C});`),this.importsToReplace.set(t,a);for(let B of o)this.identifierReplacements.set(B,`${m}.default`);for(let{importedName:B,localName:G}of l)this.identifierReplacements.set(G,`${C}.${B}`)}}getFreeIdentifierForPath(t){let n=t.split("/"),r=n[n.length-1].replace(/\W/g,"");return this.nameManager.claimFreeName(`_${r}`)}preprocessImportAtIndex(t){let n=[],o=[],r=[];if(t++,(this.tokens.matchesContextualAtIndex(t,us.ContextualKeyword._type)||this.tokens.matches1AtIndex(t,pe.TokenType._typeof))&&!this.tokens.matches1AtIndex(t+1,pe.TokenType.comma)&&!this.tokens.matchesContextualAtIndex(t+1,us.ContextualKeyword._from)||this.tokens.matches1AtIndex(t,pe.TokenType.parenL))return;if(this.tokens.matches1AtIndex(t,pe.TokenType.name)&&(n.push(this.tokens.identifierNameAtIndex(t)),t++,this.tokens.matches1AtIndex(t,pe.TokenType.comma)&&t++),this.tokens.matches1AtIndex(t,pe.TokenType.star)&&(t+=2,o.push(this.tokens.identifierNameAtIndex(t)),t++),this.tokens.matches1AtIndex(t,pe.TokenType.braceL)){let b=this.getNamedImports(t+1);t=b.newIndex;for(let L of b.namedImports)L.importedName==="default"?n.push(L.localName):r.push(L)}if(this.tokens.matchesContextualAtIndex(t,us.ContextualKeyword._from)&&t++,!this.tokens.matches1AtIndex(t,pe.TokenType.string))throw new Error("Expected string token at the end of import statement.");let l=this.tokens.stringValueAtIndex(t),d=this.getImportInfo(l);d.defaultNames.push(...n),d.wildcardNames.push(...o),d.namedImports.push(...r),n.length===0&&o.length===0&&r.length===0&&(d.hasBareImport=!0)}preprocessExportAtIndex(t){if(this.tokens.matches2AtIndex(t,pe.TokenType._export,pe.TokenType._var)||this.tokens.matches2AtIndex(t,pe.TokenType._export,pe.TokenType._let)||this.tokens.matches2AtIndex(t,pe.TokenType._export,pe.TokenType._const))this.preprocessVarExportAtIndex(t);else if(this.tokens.matches2AtIndex(t,pe.TokenType._export,pe.TokenType._function)||this.tokens.matches2AtIndex(t,pe.TokenType._export,pe.TokenType._class)){let n=this.tokens.identifierNameAtIndex(t+2);this.addExportBinding(n,n)}else if(this.tokens.matches3AtIndex(t,pe.TokenType._export,pe.TokenType.name,pe.TokenType._function)){let n=this.tokens.identifierNameAtIndex(t+3);this.addExportBinding(n,n)}else this.tokens.matches2AtIndex(t,pe.TokenType._export,pe.TokenType.braceL)?this.preprocessNamedExportAtIndex(t):this.tokens.matches2AtIndex(t,pe.TokenType._export,pe.TokenType.star)&&this.preprocessExportStarAtIndex(t)}preprocessVarExportAtIndex(t){let n=0;for(let o=t+2;;o++)if(this.tokens.matches1AtIndex(o,pe.TokenType.braceL)||this.tokens.matches1AtIndex(o,pe.TokenType.dollarBraceL)||this.tokens.matches1AtIndex(o,pe.TokenType.bracketL))n++;else if(this.tokens.matches1AtIndex(o,pe.TokenType.braceR)||this.tokens.matches1AtIndex(o,pe.TokenType.bracketR))n--;else{if(n===0&&!this.tokens.matches1AtIndex(o,pe.TokenType.name))break;if(this.tokens.matches1AtIndex(1,pe.TokenType.eq)){let r=this.tokens.currentToken().rhsEndIndex;if(r==null)throw new Error("Expected = token with an end index.");o=r-1}else{let r=this.tokens.tokens[o];if(Vu.isDeclaration.call(void 0,r)){let l=this.tokens.identifierNameAtIndex(o);this.identifierReplacements.set(l,`exports.${l}`)}}}}preprocessNamedExportAtIndex(t){t+=2;let{newIndex:n,namedImports:o}=this.getNamedImports(t);if(t=n,this.tokens.matchesContextualAtIndex(t,us.ContextualKeyword._from))t++;else{for(let{importedName:d,localName:b}of o)this.addExportBinding(d,b);return}if(!this.tokens.matches1AtIndex(t,pe.TokenType.string))throw new Error("Expected string token at the end of import statement.");let r=this.tokens.stringValueAtIndex(t);this.getImportInfo(r).namedExports.push(...o)}preprocessExportStarAtIndex(t){let n=null;if(this.tokens.matches3AtIndex(t,pe.TokenType._export,pe.TokenType.star,pe.TokenType._as)?(t+=3,n=this.tokens.identifierNameAtIndex(t),t+=2):t+=3,!this.tokens.matches1AtIndex(t,pe.TokenType.string))throw new Error("Expected string token at the end of star export statement.");let o=this.tokens.stringValueAtIndex(t),r=this.getImportInfo(o);n!==null?r.exportStarNames.push(n):r.hasStarExport=!0}getNamedImports(t){let n=[];for(;;){if(this.tokens.matches1AtIndex(t,pe.TokenType.braceR)){t++;break}let o=Ju.default.call(void 0,this.tokens,t);if(t=o.endIndex,o.isType||n.push({importedName:o.leftName,localName:o.rightName}),this.tokens.matches2AtIndex(t,pe.TokenType.comma,pe.TokenType.braceR)){t+=2;break}else if(this.tokens.matches1AtIndex(t,pe.TokenType.braceR)){t++;break}else if(this.tokens.matches1AtIndex(t,pe.TokenType.comma))t++;else throw new Error(`Unexpected token: ${JSON.stringify(this.tokens.tokens[t])}`)}return{newIndex:t,namedImports:n}}getImportInfo(t){let n=this.importInfoByPath.get(t);if(n)return n;let o={defaultNames:[],wildcardNames:[],namedImports:[],namedExports:[],hasBareImport:!1,exportStarNames:[],hasStarExport:!1};return this.importInfoByPath.set(t,o),o}addExportBinding(t,n){this.exportBindingsByLocalName.has(t)||this.exportBindingsByLocalName.set(t,[]),this.exportBindingsByLocalName.get(t).push(n)}claimImportCode(t){let n=this.importsToReplace.get(t);return this.importsToReplace.set(t,""),n||""}getIdentifierReplacement(t){return this.identifierReplacements.get(t)||null}resolveExportBinding(t){let n=this.exportBindingsByLocalName.get(t);return!n||n.length===0?null:n.map(o=>`exports.${o}`).join(" = ")}getGlobalNames(){return new Set([...this.identifierReplacements.keys(),...this.exportBindingsByLocalName.keys()])}};Ir.default=Cr});var Er=ne((Sr,Co)=>{(function(e,t){if(typeof Sr=="object"&&typeof Co<"u")t(Co),Co.exports=n(Co);else if(typeof define=="function"&&define.amd)define(["module"],function(o){t.apply(this,arguments),o.exports=n(o)});else{let o={exports:{}};t(o),e=typeof globalThis<"u"?globalThis:e||self,e.sourcemapCodec=n(o)}function n(o){return"default"in o.exports?o.exports.default:o.exports}})(Sr,(function(e){"use strict";var t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,r=Object.prototype.hasOwnProperty,l=(j,M)=>{for(var I in M)t(j,I,{get:M[I],enumerable:!0})},d=(j,M,I,W)=>{if(M&&typeof M=="object"||typeof M=="function")for(let ae of o(M))!r.call(j,ae)&&ae!==I&&t(j,ae,{get:()=>M[ae],enumerable:!(W=n(M,ae))||W.enumerable});return j},b=j=>d(t({},"__esModule",{value:!0}),j),L={};l(L,{decode:()=>$t,decodeGeneratedRanges:()=>At,decodeOriginalScopes:()=>st,decodeRangeMappings:()=>Jt,encode:()=>qt,encodeGeneratedRanges:()=>bt,encodeOriginalScopes:()=>dt,encodeRangeMappings:()=>Pt}),e.exports=b(L);var C=44,m=59,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",B=new Uint8Array(64),G=new Uint8Array(128);for(let j=0;j<a.length;j++){let M=a.charCodeAt(j);B[j]=M,G[M]=j}function J(j){let M=0,I=0,W=0;do{let ae=j.next();W=G[ae],M|=(W&31)<<I,I+=5}while(W&32);return M}function ie(j){return j&1?-2147483648|-(j>>>1):j>>>1}function $(j,M){do{let I=M&31;M>>>=5,M>0&&(I|=32),j.write(B[I])}while(M>0)}function H(j){return j<0?-j<<1|1:j<<1}function se(j,M){return j.pos>=M?!1:j.peek()!==C}var Fe=1024*16,_e=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(j){return Buffer.from(j.buffer,j.byteOffset,j.byteLength).toString()}}:{decode(j){let M="";for(let I=0;I<j.length;I++)M+=String.fromCharCode(j[I]);return M}},U=class{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(Fe)}write(j){let{buffer:M}=this;M[this.pos++]=j,this.pos===Fe&&(this.out+=_e.decode(M),this.pos=0)}flush(){let{buffer:j,out:M,pos:I}=this;return I>0?M+_e.decode(j.subarray(0,I)):M}},Ge=class{constructor(j){this.pos=0,this.buffer=j}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(j){let{buffer:M,pos:I}=this,W=M.indexOf(j,I);return W===-1?M.length:W}},Re=[];function st(j){let{length:M}=j,I=new Ge(j),W=[],ae=[],fe=0;for(;I.pos<M;I.pos++){fe+=ie(J(I));let Ie=ie(J(I));if(!se(I,M)){let Ve=ae.pop();Ve[2]=fe,Ve[3]=Ie;continue}let ge=ie(J(I)),we=ie(J(I))&1?[fe,Ie,0,0,ge,ie(J(I))]:[fe,Ie,0,0,ge],$e=Re;if(se(I,M)){$e=[];do{let Ve=ie(J(I));$e.push(Ve)}while(se(I,M))}we.vars=$e,W.push(we),ae.push(we)}return W}function dt(j){let M=new U;for(let I=0;I<j.length;)I=vt(j,I,M,[0]);return M.flush()}function vt(j,M,I,W){let ae=j[M],{0:fe,1:Ie,2:ge,3:We,4:He,vars:we}=ae;M>0&&I.write(C),$(I,H(fe-W[0])),W[0]=fe,$(I,H(Ie)),$(I,H(He));let $e=ae.length===6?1:0;$(I,H($e)),ae.length===6&&$(I,H(ae[5]));for(let Ve of we)$(I,H(Ve));for(M++;M<j.length;){let Ve=j[M],{0:xe,1:Ze}=Ve;if(xe>ge||xe===ge&&Ze>=We)break;M=vt(j,M,I,W)}return I.write(C),$(I,H(ge-W[0])),W[0]=ge,$(I,H(We)),M}function At(j){let{length:M}=j,I=new Ge(j),W=[],ae=[],fe=0,Ie=0,ge=0,We=0,He=0,we=0,$e=0,Ve=0;do{let xe=I.indexOf(";"),Ze=0;for(;I.pos<xe;I.pos++){if(Ze+=ie(J(I)),!se(I,xe)){let De=ae.pop();De[2]=fe,De[3]=Ze;continue}let F=ie(J(I)),R=F&1,V=F&2,Z=F&4,ye=null,Te=Re,ke;if(R){let De=Ie+ie(J(I));ge=ie(J(I))+(Ie===De?ge:0),Ie=De,ke=[fe,Ze,0,0,De,ge]}else ke=[fe,Ze,0,0];if(ke.isScope=!!Z,V){let De=We,at=He;We+=ie(J(I));let Ct=De===We;He=(Ct?He:0)+ie(J(I)),we=(Ct&&at===He?we:0)+ie(J(I)),ye=[We,He,we]}if(ke.callsite=ye,se(I,xe)){Te=[];do{$e=fe,Ve=Ze;let De=ie(J(I)),at;if(De<-1){at=[[ie(J(I))]];for(let Ct=-1;Ct>De;Ct--){let Mt=$e;$e+=ie(J(I)),Ve=($e===Mt?Ve:0)+ie(J(I));let Ft=ie(J(I));at.push([Ft,$e,Ve])}}else at=[[De]];Te.push(at)}while(se(I,xe))}ke.bindings=Te,W.push(ke),ae.push(ke)}fe++,I.pos=xe+1}while(I.pos<M);return W}function bt(j){if(j.length===0)return"";let M=new U;for(let I=0;I<j.length;)I=Le(j,I,M,[0,0,0,0,0,0,0]);return M.flush()}function Le(j,M,I,W){let ae=j[M],{0:fe,1:Ie,2:ge,3:We,isScope:He,callsite:we,bindings:$e}=ae;W[0]<fe?(xt(I,W[0],fe),W[0]=fe,W[1]=0):M>0&&I.write(C),$(I,H(ae[1]-W[1])),W[1]=ae[1];let Ve=(ae.length===6?1:0)|(we?2:0)|(He?4:0);if($(I,H(Ve)),ae.length===6){let{4:xe,5:Ze}=ae;xe!==W[2]&&(W[3]=0),$(I,H(xe-W[2])),W[2]=xe,$(I,H(Ze-W[3])),W[3]=Ze}if(we){let{0:xe,1:Ze,2:F}=ae.callsite;xe!==W[4]?(W[5]=0,W[6]=0):Ze!==W[5]&&(W[6]=0),$(I,H(xe-W[4])),W[4]=xe,$(I,H(Ze-W[5])),W[5]=Ze,$(I,H(F-W[6])),W[6]=F}if($e)for(let xe of $e){xe.length>1&&$(I,H(-xe.length));let Ze=xe[0][0];$(I,H(Ze));let F=fe,R=Ie;for(let V=1;V<xe.length;V++){let Z=xe[V];$(I,H(Z[1]-F)),F=Z[1],$(I,H(Z[2]-R)),R=Z[2],$(I,H(Z[0]))}}for(M++;M<j.length;){let xe=j[M],{0:Ze,1:F}=xe;if(Ze>ge||Ze===ge&&F>=We)break;M=Le(j,M,I,W)}return W[0]<ge?(xt(I,W[0],ge),W[0]=ge,W[1]=0):I.write(C),$(I,H(We-W[1])),W[1]=We,M}function xt(j,M,I){do j.write(m);while(++M<I)}function Jt(j){let{length:M}=j,I=new Ge(j),W=[];do{let ae=I.indexOf(";"),fe=[],Ie=0;for(;I.pos<ae;)Ie+=J(I),fe.push(Ie);W.push(fe),I.pos=ae+1}while(I.pos<=M);return W}function Pt(j){if(j.length===0)return"";let M=new U;for(let I=0;I<j.length;I++){let W=j[I];I>0&&M.write(m);let ae=0;for(let fe=0;fe<W.length;fe++){let Ie=W[fe];$(M,Ie-ae),ae=Ie}}return M.flush()}function $t(j){let{length:M}=j,I=new Ge(j),W=[],ae=0,fe=0,Ie=0,ge=0,We=0;do{let He=I.indexOf(";"),we=[],$e=!0,Ve=0;for(ae=0;I.pos<He;){let xe;ae+=ie(J(I)),ae<Ve&&($e=!1),Ve=ae,se(I,He)?(fe+=ie(J(I)),Ie+=ie(J(I)),ge+=ie(J(I)),se(I,He)?(We+=ie(J(I)),xe=[ae,fe,Ie,ge,We]):xe=[ae,fe,Ie,ge]):xe=[ae],we.push(xe),I.pos++}$e||rt(we),W.push(we),I.pos=He+1}while(I.pos<=M);return W}function rt(j){j.sort(Ke)}function Ke(j,M){return j[0]-M[0]}function qt(j){let M=new U,I=0,W=0,ae=0,fe=0;for(let Ie=0;Ie<j.length;Ie++){let ge=j[Ie];if(Ie>0&&M.write(m),ge.length===0)continue;let We=0;for(let He=0;He<ge.length;He++){let we=ge[He];He>0&&M.write(C),$(M,H(we[0]-We)),We=we[0],we.length!==1&&($(M,H(we[1]-I)),$(M,H(we[2]-W)),$(M,H(we[3]-ae)),I=we[1],W=we[2],ae=we[3],we.length!==4&&($(M,H(we[4]-fe)),fe=we[4]))}}return M.flush()}}))});var u1=ne((Ar,Pr)=>{(function(e,t){typeof Ar=="object"&&typeof Pr<"u"?Pr.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self,e.resolveURI=t())})(Ar,(function(){"use strict";let e=/^[\w+.-]+:\/\//,t=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,n=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;function o($){return e.test($)}function r($){return $.startsWith("//")}function l($){return $.startsWith("/")}function d($){return $.startsWith("file:")}function b($){return/^[.?#]/.test($)}function L($){let H=t.exec($);return m(H[1],H[2]||"",H[3],H[4]||"",H[5]||"/",H[6]||"",H[7]||"")}function C($){let H=n.exec($),se=H[2];return m("file:","",H[1]||"","",l(se)?se:"/"+se,H[3]||"",H[4]||"")}function m($,H,se,Fe,_e,U,Ge){return{scheme:$,user:H,host:se,port:Fe,path:_e,query:U,hash:Ge,type:7}}function a($){if(r($)){let se=L("http:"+$);return se.scheme="",se.type=6,se}if(l($)){let se=L("http://foo.com"+$);return se.scheme="",se.host="",se.type=5,se}if(d($))return C($);if(o($))return L($);let H=L("http://foo.com/"+$);return H.scheme="",H.host="",H.type=$?$.startsWith("?")?3:$.startsWith("#")?2:4:1,H}function B($){if($.endsWith("/.."))return $;let H=$.lastIndexOf("/");return $.slice(0,H+1)}function G($,H){J(H,H.type),$.path==="/"?$.path=H.path:$.path=B(H.path)+$.path}function J($,H){let se=H<=4,Fe=$.path.split("/"),_e=1,U=0,Ge=!1;for(let st=1;st<Fe.length;st++){let dt=Fe[st];if(!dt){Ge=!0;continue}if(Ge=!1,dt!=="."){if(dt===".."){U?(Ge=!0,U--,_e--):se&&(Fe[_e++]=dt);continue}Fe[_e++]=dt,U++}}let Re="";for(let st=1;st<_e;st++)Re+="/"+Fe[st];(!Re||Ge&&!Re.endsWith("/.."))&&(Re+="/"),$.path=Re}function ie($,H){if(!$&&!H)return"";let se=a($),Fe=se.type;if(H&&Fe!==7){let U=a(H),Ge=U.type;switch(Fe){case 1:se.hash=U.hash;case 2:se.query=U.query;case 3:case 4:G(se,U);case 5:se.user=U.user,se.host=U.host,se.port=U.port;case 6:se.scheme=U.scheme}Ge>Fe&&(Fe=Ge)}J(se,Fe);let _e=se.query+se.hash;switch(Fe){case 2:case 3:return _e;case 4:{let U=se.path.slice(1);return U?b(H||$)&&!b(U)?"./"+U+_e:U+_e:_e||"."}case 5:return se.path+_e;default:return se.scheme+"//"+se.user+se.host+se.port+se.path+_e}}return ie}))});var d1=ne((Rr,Io)=>{(function(e,t){if(typeof Rr=="object"&&typeof Io<"u")t(Io,u1(),Er()),Io.exports=n(Io);else if(typeof define=="function"&&define.amd)define(["module","@jridgewell/resolve-uri","@jridgewell/sourcemap-codec"],function(o){t.apply(this,arguments),o.exports=n(o)});else{let o={exports:{}};t(o,e.resolveURI,e.sourcemapCodec),e=typeof globalThis<"u"?globalThis:e||self,e.traceMapping=n(o)}function n(o){return"default"in o.exports?o.exports.default:o.exports}})(Rr,(function(e,t,n){"use strict";var o=Object.create,r=Object.defineProperty,l=Object.getOwnPropertyDescriptor,d=Object.getOwnPropertyNames,b=Object.getPrototypeOf,L=Object.prototype.hasOwnProperty,C=(i,T)=>function(){return T||(0,i[d(i)[0]])((T={exports:{}}).exports,T),T.exports},m=(i,T)=>{for(var v in T)r(i,v,{get:T[v],enumerable:!0})},a=(i,T,v,O)=>{if(T&&typeof T=="object"||typeof T=="function")for(let te of d(T))!L.call(i,te)&&te!==v&&r(i,te,{get:()=>T[te],enumerable:!(O=l(T,te))||O.enumerable});return i},B=(i,T,v)=>(v=i!=null?o(b(i)):{},a(T||!i||!i.__esModule?r(v,"default",{value:i,enumerable:!0}):v,i)),G=i=>a(r({},"__esModule",{value:!0}),i),J=C({"umd:@jridgewell/sourcemap-codec"(i,T){T.exports=n}}),ie=C({"umd:@jridgewell/resolve-uri"(i,T){T.exports=t}}),$={};m($,{AnyMap:()=>ae,FlattenMap:()=>ae,GREATEST_LOWER_BOUND:()=>Ve,LEAST_UPPER_BOUND:()=>$e,TraceMap:()=>xe,allGeneratedPositionsFor:()=>Te,decodedMap:()=>Ft,decodedMappings:()=>R,eachMapping:()=>ke,encodedMap:()=>nn,encodedMappings:()=>F,generatedPositionFor:()=>ye,isIgnored:()=>Ct,originalPositionFor:()=>Z,presortedDecodedMap:()=>Mt,sourceContentFor:()=>at,traceSegment:()=>V}),e.exports=G($);var H=B(J()),se=B(ie());function Fe(i){if(!i)return"";let T=i.lastIndexOf("/");return i.slice(0,T+1)}function _e(i,T){let v=Fe(i),O=T?T+"/":"";return te=>(0,se.default)(O+(te||""),v)}var U=0,Ge=1,Re=2,st=3,dt=4,vt=1,At=2;function bt(i,T){let v=Le(i,0);if(v===i.length)return i;T||(i=i.slice());for(let O=v;O<i.length;O=Le(i,O+1))i[O]=Jt(i[O],T);return i}function Le(i,T){for(let v=T;v<i.length;v++)if(!xt(i[v]))return v;return i.length}function xt(i){for(let T=1;T<i.length;T++)if(i[T][U]<i[T-1][U])return!1;return!0}function Jt(i,T){return T||(i=i.slice()),i.sort(Pt)}function Pt(i,T){return i[U]-T[U]}function $t(i,T){let v=T.map(()=>[]);for(let O=0;O<i.length;O++){let te=i[O];for(let Y=0;Y<te.length;Y++){let ve=te[Y];if(ve.length===1)continue;let qe=ve[Ge],me=ve[Re],le=ve[st],de=v[qe];(de[me]||(de[me]=[])).push([le,O,ve[U]])}}for(let O=0;O<v.length;O++){let te=v[O];for(let Y=0;Y<te.length;Y++){let ve=te[Y];ve&&ve.sort(Pt)}}return v}var rt=!1;function Ke(i,T,v,O){for(;v<=O;){let te=v+(O-v>>1),Y=i[te][U]-T;if(Y===0)return rt=!0,te;Y<0?v=te+1:O=te-1}return rt=!1,v-1}function qt(i,T,v){for(let O=v+1;O<i.length&&i[O][U]===T;v=O++);return v}function j(i,T,v){for(let O=v-1;O>=0&&i[O][U]===T;v=O--);return v}function M(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function I(i,T,v,O){let{lastKey:te,lastNeedle:Y,lastIndex:ve}=v,qe=0,me=i.length-1;if(O===te){if(T===Y)return rt=ve!==-1&&i[ve][U]===T,ve;T>=Y?qe=ve===-1?0:ve:me=ve}return v.lastKey=O,v.lastNeedle=T,v.lastIndex=Ke(i,T,qe,me)}function W(i){return typeof i=="string"?JSON.parse(i):i}var ae=function(i,T){let v=W(i);if(!("sections"in v))return new xe(v,T);let O=[],te=[],Y=[],ve=[],qe=[];fe(v,T,O,te,Y,ve,qe,0,0,1/0,1/0);let me={version:3,file:v.file,names:ve,sources:te,sourcesContent:Y,mappings:O,ignoreList:qe};return Mt(me)};function fe(i,T,v,O,te,Y,ve,qe,me,le,de){let{sections:pt}=i;for(let St=0;St<pt.length;St++){let{map:Rt,offset:Ut}=pt[St],Wt=le,Gt=de;if(St+1<pt.length){let hn=pt[St+1].offset;Wt=Math.min(le,qe+hn.line),Wt===le?Gt=Math.min(de,me+hn.column):Wt<le&&(Gt=me+hn.column)}Ie(Rt,T,v,O,te,Y,ve,qe+Ut.line,me+Ut.column,Wt,Gt)}}function Ie(i,T,v,O,te,Y,ve,qe,me,le,de){let pt=W(i);if("sections"in pt)return fe(...arguments);let St=new xe(pt,T),Rt=O.length,Ut=Y.length,Wt=R(St),{resolvedSources:Gt,sourcesContent:hn,ignoreList:Un}=St;if(ge(O,Gt),ge(Y,St.names),hn)ge(te,hn);else for(let Nt=0;Nt<Gt.length;Nt++)te.push(null);if(Un)for(let Nt=0;Nt<Un.length;Nt++)ve.push(Un[Nt]+Rt);for(let Nt=0;Nt<Wt.length;Nt++){let Wn=qe+Nt;if(Wn>le)return;let Yn=We(v,Wn),vo=Nt===0?me:0,Qn=Wt[Nt];for(let Hn=0;Hn<Qn.length;Hn++){let cn=Qn[Hn],En=vo+cn[U];if(Wn===le&&En>=de)return;if(cn.length===1){Yn.push([En]);continue}let Zn=Rt+cn[Ge],eo=cn[Re],to=cn[st];Yn.push(cn.length===4?[En,Zn,eo,to]:[En,Zn,eo,to,Ut+cn[dt]])}}}function ge(i,T){for(let v=0;v<T.length;v++)i.push(T[v])}function We(i,T){for(let v=i.length;v<=T;v++)i[v]=[];return i[T]}var He="`line` must be greater than 0 (lines start at line 1)",we="`column` must be greater than or equal to 0 (columns start at column 0)",$e=-1,Ve=1,xe=class{constructor(i,T){let v=typeof i=="string";if(!v&&i._decodedMemo)return i;let O=W(i),{version:te,file:Y,names:ve,sourceRoot:qe,sources:me,sourcesContent:le}=O;this.version=te,this.file=Y,this.names=ve||[],this.sourceRoot=qe,this.sources=me,this.sourcesContent=le,this.ignoreList=O.ignoreList||O.x_google_ignoreList||void 0;let de=_e(T,qe);this.resolvedSources=me.map(de);let{mappings:pt}=O;if(typeof pt=="string")this._encoded=pt,this._decoded=void 0;else if(Array.isArray(pt))this._encoded=void 0,this._decoded=bt(pt,v);else throw O.sections?new Error("TraceMap passed sectioned source map, please use FlattenMap export instead"):new Error(`invalid source map: ${JSON.stringify(O)}`);this._decodedMemo=M(),this._bySources=void 0,this._bySourceMemos=void 0}};function Ze(i){return i}function F(i){var T,v;return(v=(T=i)._encoded)!=null?v:T._encoded=(0,H.encode)(i._decoded)}function R(i){var T;return(T=i)._decoded||(T._decoded=(0,H.decode)(i._encoded))}function V(i,T,v){let O=R(i);if(T>=O.length)return null;let te=O[T],Y=s(te,i._decodedMemo,T,v,Ve);return Y===-1?null:te[Y]}function Z(i,T){let{line:v,column:O,bias:te}=T;if(v--,v<0)throw new Error(He);if(O<0)throw new Error(we);let Y=R(i);if(v>=Y.length)return Bt(null,null,null,null);let ve=Y[v],qe=s(ve,i._decodedMemo,v,O,te||Ve);if(qe===-1)return Bt(null,null,null,null);let me=ve[qe];if(me.length===1)return Bt(null,null,null,null);let{names:le,resolvedSources:de}=i;return Bt(de[me[Ge]],me[Re]+1,me[st],me.length===5?le[me[dt]]:null)}function ye(i,T){let{source:v,line:O,column:te,bias:Y}=T;return x(i,v,O,te,Y||Ve,!1)}function Te(i,T){let{source:v,line:O,column:te,bias:Y}=T;return x(i,v,O,te,Y||$e,!0)}function ke(i,T){let v=R(i),{names:O,resolvedSources:te}=i;for(let Y=0;Y<v.length;Y++){let ve=v[Y];for(let qe=0;qe<ve.length;qe++){let me=ve[qe],le=Y+1,de=me[0],pt=null,St=null,Rt=null,Ut=null;me.length!==1&&(pt=te[me[1]],St=me[2]+1,Rt=me[3]),me.length===5&&(Ut=O[me[4]]),T({generatedLine:le,generatedColumn:de,source:pt,originalLine:St,originalColumn:Rt,name:Ut})}}}function De(i,T){let{sources:v,resolvedSources:O}=i,te=v.indexOf(T);return te===-1&&(te=O.indexOf(T)),te}function at(i,T){let{sourcesContent:v}=i;if(v==null)return null;let O=De(i,T);return O===-1?null:v[O]}function Ct(i,T){let{ignoreList:v}=i;if(v==null)return!1;let O=De(i,T);return O===-1?!1:v.includes(O)}function Mt(i,T){let v=new xe(jt(i,[]),T);return v._decoded=i.mappings,v}function Ft(i){return jt(i,R(i))}function nn(i){return jt(i,F(i))}function jt(i,T){return{version:i.version,file:i.file,names:i.names,sourceRoot:i.sourceRoot,sources:i.sources,sourcesContent:i.sourcesContent,mappings:T,ignoreList:i.ignoreList||i.x_google_ignoreList}}function Bt(i,T,v,O){return{source:i,line:T,column:v,name:O}}function It(i,T){return{line:i,column:T}}function s(i,T,v,O,te){let Y=I(i,O,T,v);return rt?Y=(te===$e?qt:j)(i,O,Y):te===$e&&Y++,Y===-1||Y===i.length?-1:Y}function u(i,T,v,O,te){let Y=s(i,T,v,O,Ve);if(!rt&&te===$e&&Y++,Y===-1||Y===i.length)return[];let ve=rt?O:i[Y][U];rt||(Y=j(i,ve,Y));let qe=qt(i,ve,Y),me=[];for(;Y<=qe;Y++){let le=i[Y];me.push(It(le[vt]+1,le[At]))}return me}function x(i,T,v,O,te,Y){var ve,qe;if(v--,v<0)throw new Error(He);if(O<0)throw new Error(we);let{sources:me,resolvedSources:le}=i,de=me.indexOf(T);if(de===-1&&(de=le.indexOf(T)),de===-1)return Y?[]:It(null,null);let pt=(ve=i)._bySourceMemos||(ve._bySourceMemos=me.map(M)),Rt=((qe=i)._bySources||(qe._bySources=$t(R(i),pt)))[de][v];if(Rt==null)return Y?[]:It(null,null);let Ut=pt[de];if(Y)return u(Rt,Ut,v,O,te);let Wt=s(Rt,Ut,v,O,te);if(Wt===-1)return It(null,null);let Gt=Rt[Wt];return It(Gt[vt]+1,Gt[At])}}))});var f1=ne((Nr,So)=>{(function(e,t){if(typeof Nr=="object"&&typeof So<"u")t(So,Er(),d1()),So.exports=n(So);else if(typeof define=="function"&&define.amd)define(["module","@jridgewell/sourcemap-codec","@jridgewell/trace-mapping"],function(o){t.apply(this,arguments),o.exports=n(o)});else{let o={exports:{}};t(o,e.sourcemapCodec,e.traceMapping),e=typeof globalThis<"u"?globalThis:e||self,e.genMapping=n(o)}function n(o){return"default"in o.exports?o.exports.default:o.exports}})(Nr,(function(e,t,n){"use strict";var o=Object.create,r=Object.defineProperty,l=Object.getOwnPropertyDescriptor,d=Object.getOwnPropertyNames,b=Object.getPrototypeOf,L=Object.prototype.hasOwnProperty,C=(F,R)=>function(){return R||(0,F[d(F)[0]])((R={exports:{}}).exports,R),R.exports},m=(F,R)=>{for(var V in R)r(F,V,{get:R[V],enumerable:!0})},a=(F,R,V,Z)=>{if(R&&typeof R=="object"||typeof R=="function")for(let ye of d(R))!L.call(F,ye)&&ye!==V&&r(F,ye,{get:()=>R[ye],enumerable:!(Z=l(R,ye))||Z.enumerable});return F},B=(F,R,V)=>(V=F!=null?o(b(F)):{},a(R||!F||!F.__esModule?r(V,"default",{value:F,enumerable:!0}):V,F)),G=F=>a(r({},"__esModule",{value:!0}),F),J=C({"umd:@jridgewell/sourcemap-codec"(F,R){R.exports=t}}),ie=C({"umd:@jridgewell/trace-mapping"(F,R){R.exports=n}}),$={};m($,{GenMapping:()=>xt,addMapping:()=>$t,addSegment:()=>Pt,allMappings:()=>ae,fromMap:()=>W,maybeAddMapping:()=>Ke,maybeAddSegment:()=>rt,setIgnore:()=>j,setSourceContent:()=>qt,toDecodedMap:()=>M,toEncodedMap:()=>I}),e.exports=G($);var H=class{constructor(){this._indexes={__proto__:null},this.array=[]}};function se(F){return F}function Fe(F,R){return F._indexes[R]}function _e(F,R){let V=Fe(F,R);if(V!==void 0)return V;let{array:Z,_indexes:ye}=F,Te=Z.push(R);return ye[R]=Te-1}function U(F,R){let V=Fe(F,R);if(V===void 0)return;let{array:Z,_indexes:ye}=F;for(let Te=V+1;Te<Z.length;Te++){let ke=Z[Te];Z[Te-1]=ke,ye[ke]--}ye[R]=void 0,Z.pop()}var Ge=B(J()),Re=B(ie()),st=0,dt=1,vt=2,At=3,bt=4,Le=-1,xt=class{constructor({file:F,sourceRoot:R}={}){this._names=new H,this._sources=new H,this._sourcesContent=[],this._mappings=[],this.file=F,this.sourceRoot=R,this._ignoreList=new H}};function Jt(F){return F}function Pt(F,R,V,Z,ye,Te,ke,De){return fe(!1,F,R,V,Z,ye,Te,ke,De)}function $t(F,R){return Ze(!1,F,R)}var rt=(F,R,V,Z,ye,Te,ke,De)=>fe(!0,F,R,V,Z,ye,Te,ke,De),Ke=(F,R)=>Ze(!0,F,R);function qt(F,R,V){let{_sources:Z,_sourcesContent:ye}=F,Te=_e(Z,R);ye[Te]=V}function j(F,R,V=!0){let{_sources:Z,_sourcesContent:ye,_ignoreList:Te}=F,ke=_e(Z,R);ke===ye.length&&(ye[ke]=null),V?_e(Te,ke):U(Te,ke)}function M(F){let{_mappings:R,_sources:V,_sourcesContent:Z,_names:ye,_ignoreList:Te}=F;return we(R),{version:3,file:F.file||void 0,names:ye.array,sourceRoot:F.sourceRoot||void 0,sources:V.array,sourcesContent:Z,mappings:R,ignoreList:Te.array}}function I(F){let R=M(F);return Object.assign({},R,{mappings:(0,Ge.encode)(R.mappings)})}function W(F){let R=new Re.TraceMap(F),V=new xt({file:R.file,sourceRoot:R.sourceRoot});return $e(V._names,R.names),$e(V._sources,R.sources),V._sourcesContent=R.sourcesContent||R.sources.map(()=>null),V._mappings=(0,Re.decodedMappings)(R),R.ignoreList&&$e(V._ignoreList,R.ignoreList),V}function ae(F){let R=[],{_mappings:V,_sources:Z,_names:ye}=F;for(let Te=0;Te<V.length;Te++){let ke=V[Te];for(let De=0;De<ke.length;De++){let at=ke[De],Ct={line:Te+1,column:at[st]},Mt,Ft,nn;at.length!==1&&(Mt=Z.array[at[dt]],Ft={line:at[vt]+1,column:at[At]},at.length===5&&(nn=ye.array[at[bt]])),R.push({generated:Ct,source:Mt,original:Ft,name:nn})}}return R}function fe(F,R,V,Z,ye,Te,ke,De,at){let{_mappings:Ct,_sources:Mt,_sourcesContent:Ft,_names:nn}=R,jt=ge(Ct,V),Bt=We(jt,Z);if(!ye)return F&&Ve(jt,Bt)?void 0:He(jt,Bt,[Z]);let It=_e(Mt,ye),s=De?_e(nn,De):Le;if(It===Ft.length&&(Ft[It]=at??null),!(F&&xe(jt,Bt,It,Te,ke,s)))return He(jt,Bt,De?[Z,It,Te,ke,s]:[Z,It,Te,ke])}function Ie(F){}function ge(F,R){for(let V=F.length;V<=R;V++)F[V]=[];return F[R]}function We(F,R){let V=F.length;for(let Z=V-1;Z>=0;V=Z--){let ye=F[Z];if(R>=ye[st])break}return V}function He(F,R,V){for(let Z=F.length;Z>R;Z--)F[Z]=F[Z-1];F[R]=V}function we(F){let{length:R}=F,V=R;for(let Z=V-1;Z>=0&&!(F[Z].length>0);V=Z,Z--);V<R&&(F.length=V)}function $e(F,R){for(let V=0;V<R.length;V++)_e(F,R[V])}function Ve(F,R){return R===0?!0:F[R-1].length===1}function xe(F,R,V,Z,ye,Te){if(R===0)return!1;let ke=F[R-1];return ke.length===1?!1:V===ke[dt]&&Z===ke[vt]&&ye===ke[At]&&Te===(ke.length===5?ke[bt]:Le)}function Ze(F,R,V){let{generated:Z,source:ye,original:Te,name:ke,content:De}=V;return ye?fe(F,R,Z.line-1,Z.column,ye,Te.line-1,Te.column,ke,De):fe(F,R,Z.line-1,Z.column,null,null,null,null,null)}}))});var T1=ne(Or=>{"use strict";Object.defineProperty(Or,"__esModule",{value:!0});var Eo=f1(),h1=zt();function zu({code:e,mappings:t},n,o,r,l){let d=Yu(r,l),b=new Eo.GenMapping({file:o.compiledFilename}),L=0,C=t[0];for(;C===void 0&&L<t.length-1;)L++,C=t[L];let m=0,a=0;C!==a&&Eo.maybeAddSegment.call(void 0,b,m,0,n,m,0);for(let ie=0;ie<e.length;ie++){if(ie===C){let $=C-a,H=d[L];for(Eo.maybeAddSegment.call(void 0,b,m,$,n,m,H);(C===ie||C===void 0)&&L<t.length-1;)L++,C=t[L]}e.charCodeAt(ie)===h1.charCodes.lineFeed&&(m++,a=ie+1,C!==a&&Eo.maybeAddSegment.call(void 0,b,m,0,n,m,0))}let{sourceRoot:B,sourcesContent:G,...J}=Eo.toEncodedMap.call(void 0,b);return J}Or.default=zu;function Yu(e,t){let n=new Array(t.length),o=0,r=t[o].start,l=0;for(let d=0;d<e.length;d++)d===r&&(n[o]=r-l,o++,r=t[o].start),e.charCodeAt(d)===h1.charCodes.lineFeed&&(l=d+1);return n}});var k1=ne(Dr=>{"use strict";Object.defineProperty(Dr,"__esModule",{value:!0});var Qu={require:`
import {createRequire as CREATE_REQUIRE_NAME} from "module";
const require = CREATE_REQUIRE_NAME(import.meta.url);
`,interopRequireWildcard:`
function interopRequireWildcard(obj) {
if (obj && obj.__esModule) {
return obj;
} else {
var newObj = {};
if (obj != null) {
for (var key in obj) {
if (Object.prototype.hasOwnProperty.call(obj, key)) {
newObj[key] = obj[key];
}
}
}
newObj.default = obj;
return newObj;
}
}
`,interopRequireDefault:`
function interopRequireDefault(obj) {
return obj && obj.__esModule ? obj : { default: obj };
}
`,createNamedExportFrom:`
function createNamedExportFrom(obj, localName, importedName) {
Object.defineProperty(exports, localName, {enumerable: true, configurable: true, get: () => obj[importedName]});
}
`,createStarExport:`
function createStarExport(obj) {
Object.keys(obj)
.filter((key) => key !== "default" && key !== "__esModule")
.forEach((key) => {
if (exports.hasOwnProperty(key)) {
return;
}
Object.defineProperty(exports, key, {enumerable: true, configurable: true, get: () => obj[key]});
});
}
`,nullishCoalesce:`
function nullishCoalesce(lhs, rhsFn) {
if (lhs != null) {
return lhs;
} else {
return rhsFn();
}
}
`,asyncNullishCoalesce:`
async function asyncNullishCoalesce(lhs, rhsFn) {
if (lhs != null) {
return lhs;
} else {
return await rhsFn();
}
}
`,optionalChain:`
function optionalChain(ops) {
let lastAccessLHS = undefined;
let value = ops[0];
let i = 1;
while (i < ops.length) {
const op = ops[i];
const fn = ops[i + 1];
i += 2;
if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) {
return undefined;
}
if (op === 'access' || op === 'optionalAccess') {
lastAccessLHS = value;
value = fn(value);
} else if (op === 'call' || op === 'optionalCall') {
value = fn((...args) => value.call(lastAccessLHS, ...args));
lastAccessLHS = undefined;
}
}
return value;
}
`,asyncOptionalChain:`
async function asyncOptionalChain(ops) {
let lastAccessLHS = undefined;
let value = ops[0];
let i = 1;
while (i < ops.length) {
const op = ops[i];
const fn = ops[i + 1];
i += 2;
if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) {
return undefined;
}
if (op === 'access' || op === 'optionalAccess') {
lastAccessLHS = value;
value = await fn(value);
} else if (op === 'call' || op === 'optionalCall') {
value = await fn((...args) => value.call(lastAccessLHS, ...args));
lastAccessLHS = undefined;
}
}
return value;
}
`,optionalChainDelete:`
function optionalChainDelete(ops) {
const result = OPTIONAL_CHAIN_NAME(ops);
return result == null ? true : result;
}
`,asyncOptionalChainDelete:`
async function asyncOptionalChainDelete(ops) {
const result = await ASYNC_OPTIONAL_CHAIN_NAME(ops);
return result == null ? true : result;
}
`},Lr=class e{__init(){this.helperNames={}}__init2(){this.createRequireName=null}constructor(t){this.nameManager=t,e.prototype.__init.call(this),e.prototype.__init2.call(this)}getHelperName(t){let n=this.helperNames[t];return n||(n=this.nameManager.claimFreeName(`_${t}`),this.helperNames[t]=n,n)}emitHelpers(){let t="";this.helperNames.optionalChainDelete&&this.getHelperName("optionalChain"),this.helperNames.asyncOptionalChainDelete&&this.getHelperName("asyncOptionalChain");for(let[n,o]of Object.entries(Qu)){let r=this.helperNames[n],l=o;n==="optionalChainDelete"?l=l.replace("OPTIONAL_CHAIN_NAME",this.helperNames.optionalChain):n==="asyncOptionalChainDelete"?l=l.replace("ASYNC_OPTIONAL_CHAIN_NAME",this.helperNames.asyncOptionalChain):n==="require"&&(this.createRequireName===null&&(this.createRequireName=this.nameManager.claimFreeName("_createRequire")),l=l.replace(/CREATE_REQUIRE_NAME/g,this.createRequireName)),r&&(t+=" ",t+=l.replace(n,r).replace(/\s+/g," ").trim())}return t}};Dr.HelperManager=Lr});var v1=ne(fs=>{"use strict";Object.defineProperty(fs,"__esModule",{value:!0});var qr=_t(),ds=Se();function Zu(e,t,n){y1(e,n)&&ed(e,t,n)}fs.default=Zu;function y1(e,t){for(let n of e.tokens)if(n.type===ds.TokenType.name&&!n.isType&&qr.isNonTopLevelDeclaration.call(void 0,n)&&t.has(e.identifierNameForToken(n)))return!0;return!1}fs.hasShadowedGlobals=y1;function ed(e,t,n){let o=[],r=t.length-1;for(let l=e.tokens.length-1;;l--){for(;o.length>0&&o[o.length-1].startTokenIndex===l+1;)o.pop();for(;r>=0&&t[r].endTokenIndex===l+1;)o.push(t[r]),r--;if(l<0)break;let d=e.tokens[l],b=e.identifierNameForToken(d);if(o.length>1&&!d.isType&&d.type===ds.TokenType.name&&n.has(b)){if(qr.isBlockScopedDeclaration.call(void 0,d))m1(o[o.length-1],e,b);else if(qr.isFunctionScopedDeclaration.call(void 0,d)){let L=o.length-1;for(;L>0&&!o[L].isFunctionScope;)L--;if(L<0)throw new Error("Did not find parent function scope.");m1(o[L],e,b)}}}if(o.length>0)throw new Error("Expected empty scope stack after processing file.")}function m1(e,t,n){for(let o=e.startTokenIndex;o<e.endTokenIndex;o++){let r=t.tokens[o];(r.type===ds.TokenType.name||r.type===ds.TokenType.jsxName)&&t.identifierNameForToken(r)===n&&(r.shadowsGlobal=!0)}}});var x1=ne(Mr=>{"use strict";Object.defineProperty(Mr,"__esModule",{value:!0});var td=Se();function nd(e,t){let n=[];for(let o of t)o.type===td.TokenType.name&&n.push(e.slice(o.start,o.end));return n}Mr.default=nd});var _1=ne(jr=>{"use strict";Object.defineProperty(jr,"__esModule",{value:!0});function od(e){return e&&e.__esModule?e:{default:e}}var sd=x1(),rd=od(sd),Fr=class e{__init(){this.usedNames=new Set}constructor(t,n){e.prototype.__init.call(this),this.usedNames=new Set(rd.default.call(void 0,t,n))}claimFreeName(t){let n=this.findFreeName(t);return this.usedNames.add(n),n}findFreeName(t){if(!this.usedNames.has(t))return t;let n=2;for(;this.usedNames.has(t+String(n));)n++;return t+String(n)}};jr.default=Fr});var hs=ne(kn=>{"use strict";var ad=kn&&kn.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var l in r)r.hasOwnProperty(l)&&(o[l]=r[l])},e(t,n)};return function(t,n){e(t,n);function o(){this.constructor=t}t.prototype=n===null?Object.create(n):(o.prototype=n.prototype,new o)}})();Object.defineProperty(kn,"__esModule",{value:!0});kn.DetailContext=kn.NoopContext=kn.VError=void 0;var g1=(function(e){ad(t,e);function t(n,o){var r=e.call(this,o)||this;return r.path=n,Object.setPrototypeOf(r,t.prototype),r}return t})(Error);kn.VError=g1;var id=(function(){function e(){}return e.prototype.fail=function(t,n,o){return!1},e.prototype.unionResolver=function(){return this},e.prototype.createContext=function(){return this},e.prototype.resolveUnion=function(t){},e})();kn.NoopContext=id;var w1=(function(){function e(){this._propNames=[""],this._messages=[null],this._score=0}return e.prototype.fail=function(t,n,o){return this._propNames.push(t),this._messages.push(n),this._score+=o,!1},e.prototype.unionResolver=function(){return new ld},e.prototype.resolveUnion=function(t){for(var n,o,r=t,l=null,d=0,b=r.contexts;d<b.length;d++){var L=b[d];(!l||L._score>=l._score)&&(l=L)}l&&l._score>0&&((n=this._propNames).push.apply(n,l._propNames),(o=this._messages).push.apply(o,l._messages))},e.prototype.getError=function(t){for(var n=[],o=this._propNames.length-1;o>=0;o--){var r=this._propNames[o];t+=typeof r=="number"?"["+r+"]":r?"."+r:"";var l=this._messages[o];l&&n.push(t+" "+l)}return new g1(t,n.join("; "))},e.prototype.getErrorDetail=function(t){for(var n=[],o=this._propNames.length-1;o>=0;o--){var r=this._propNames[o];t+=typeof r=="number"?"["+r+"]":r?"."+r:"";var l=this._messages[o];l&&n.push({path:t,message:l})}for(var d=null,o=n.length-1;o>=0;o--)d&&(n[o].nested=[d]),d=n[o];return d},e})();kn.DetailContext=w1;var ld=(function(){function e(){this.contexts=[]}return e.prototype.createContext=function(){var t=new w1;return this.contexts.push(t),t},e})()});var Xr=ne(oe=>{"use strict";var en=oe&&oe.__extends||(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,r){o.__proto__=r}||function(o,r){for(var l in r)r.hasOwnProperty(l)&&(o[l]=r[l])},e(t,n)};return function(t,n){e(t,n);function o(){this.constructor=t}t.prototype=n===null?Object.create(n):(o.prototype=n.prototype,new o)}})();Object.defineProperty(oe,"__esModule",{value:!0});oe.basicTypes=oe.BasicType=oe.TParamList=oe.TParam=oe.param=oe.TFunc=oe.func=oe.TProp=oe.TOptional=oe.opt=oe.TIface=oe.iface=oe.TEnumLiteral=oe.enumlit=oe.TEnumType=oe.enumtype=oe.TIntersection=oe.intersection=oe.TUnion=oe.union=oe.TTuple=oe.tuple=oe.TArray=oe.array=oe.TLiteral=oe.lit=oe.TName=oe.name=oe.TType=void 0;var I1=hs(),Ht=(function(){function e(){}return e})();oe.TType=Ht;function Ln(e){return typeof e=="string"?S1(e):e}function $r(e,t){var n=e[t];if(!n)throw new Error("Unknown type "+t);return n}function S1(e){return new Ur(e)}oe.name=S1;var Ur=(function(e){en(t,e);function t(n){var o=e.call(this)||this;return o.name=n,o._failMsg="is not a "+n,o}return t.prototype.getChecker=function(n,o,r){var l=this,d=$r(n,this.name),b=d.getChecker(n,o,r);return d instanceof Ot||d instanceof t?b:function(L,C){return b(L,C)?!0:C.fail(null,l._failMsg,0)}},t})(Ht);oe.TName=Ur;function cd(e){return new Wr(e)}oe.lit=cd;var Wr=(function(e){en(t,e);function t(n){var o=e.call(this)||this;return o.value=n,o.name=JSON.stringify(n),o._failMsg="is not "+o.name,o}return t.prototype.getChecker=function(n,o){var r=this;return function(l,d){return l===r.value?!0:d.fail(null,r._failMsg,-1)}},t})(Ht);oe.TLiteral=Wr;function pd(e){return new E1(Ln(e))}oe.array=pd;var E1=(function(e){en(t,e);function t(n){var o=e.call(this)||this;return o.ttype=n,o}return t.prototype.getChecker=function(n,o){var r=this.ttype.getChecker(n,o);return function(l,d){if(!Array.isArray(l))return d.fail(null,"is not an array",0);for(var b=0;b<l.length;b++){var L=r(l[b],d);if(!L)return d.fail(b,null,1)}return!0}},t})(Ht);oe.TArray=E1;function ud(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new A1(e.map(function(n){return Ln(n)}))}oe.tuple=ud;var A1=(function(e){en(t,e);function t(n){var o=e.call(this)||this;return o.ttypes=n,o}return t.prototype.getChecker=function(n,o){var r=this.ttypes.map(function(d){return d.getChecker(n,o)}),l=function(d,b){if(!Array.isArray(d))return b.fail(null,"is not an array",0);for(var L=0;L<r.length;L++){var C=r[L](d[L],b);if(!C)return b.fail(L,null,1)}return!0};return o?function(d,b){return l(d,b)?d.length<=r.length?!0:b.fail(r.length,"is extraneous",2):!1}:l},t})(Ht);oe.TTuple=A1;function dd(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new P1(e.map(function(n){return Ln(n)}))}oe.union=dd;var P1=(function(e){en(t,e);function t(n){var o=e.call(this)||this;o.ttypes=n;var r=n.map(function(d){return d instanceof Ur||d instanceof Wr?d.name:null}).filter(function(d){return d}),l=n.length-r.length;return r.length?(l>0&&r.push(l+" more"),o._failMsg="is none of "+r.join(", ")):o._failMsg="is none of "+l+" types",o}return t.prototype.getChecker=function(n,o){var r=this,l=this.ttypes.map(function(d){return d.getChecker(n,o)});return function(d,b){for(var L=b.unionResolver(),C=0;C<l.length;C++){var m=l[C](d,L.createContext());if(m)return!0}return b.resolveUnion(L),b.fail(null,r._failMsg,0)}},t})(Ht);oe.TUnion=P1;function fd(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return new R1(e.map(function(n){return Ln(n)}))}oe.intersection=fd;var R1=(function(e){en(t,e);function t(n){var o=e.call(this)||this;return o.ttypes=n,o}return t.prototype.getChecker=function(n,o){var r=new Set,l=this.ttypes.map(function(d){return d.getChecker(n,o,r)});return function(d,b){var L=l.every(function(C){return C(d,b)});return L?!0:b.fail(null,null,0)}},t})(Ht);oe.TIntersection=R1;function hd(e){return new Hr(e)}oe.enumtype=hd;var Hr=(function(e){en(t,e);function t(n){var o=e.call(this)||this;return o.members=n,o.validValues=new Set,o._failMsg="is not a valid enum value",o.validValues=new Set(Object.keys(n).map(function(r){return n[r]})),o}return t.prototype.getChecker=function(n,o){var r=this;return function(l,d){return r.validValues.has(l)?!0:d.fail(null,r._failMsg,0)}},t})(Ht);oe.TEnumType=Hr;function Td(e,t){return new N1(e,t)}oe.enumlit=Td;var N1=(function(e){en(t,e);function t(n,o){var r=e.call(this)||this;return r.enumName=n,r.prop=o,r._failMsg="is not "+n+"."+o,r}return t.prototype.getChecker=function(n,o){var r=this,l=$r(n,this.enumName);if(!(l instanceof Hr))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(b,L){return b===d?!0:L.fail(null,r._failMsg,-1)}},t})(Ht);oe.TEnumLiteral=N1;function kd(e){return Object.keys(e).map(function(t){return md(t,e[t])})}function md(e,t){return t instanceof Vr?new Kr(e,t.ttype,!0):new Kr(e,Ln(t),!1)}function yd(e,t){return new O1(e,kd(t))}oe.iface=yd;var O1=(function(e){en(t,e);function t(n,o){var r=e.call(this)||this;return r.bases=n,r.props=o,r.propSet=new Set(o.map(function(l){return l.name})),r}return t.prototype.getChecker=function(n,o,r){var l=this,d=this.bases.map(function(B){return $r(n,B).getChecker(n,o)}),b=this.props.map(function(B){return B.ttype.getChecker(n,o)}),L=new I1.NoopContext,C=this.props.map(function(B,G){return!B.isOpt&&!b[G](void 0,L)}),m=function(B,G){if(typeof B!="object"||B===null)return G.fail(null,"is not an object",0);for(var J=0;J<d.length;J++)if(!d[J](B,G))return!1;for(var J=0;J<b.length;J++){var ie=l.props[J].name,$=B[ie];if($===void 0){if(C[J])return G.fail(ie,"is missing",1)}else{var H=b[J]($,G);if(!H)return G.fail(ie,null,1)}}return!0};if(!o)return m;var a=this.propSet;return r&&(this.propSet.forEach(function(B){return r.add(B)}),a=r),function(B,G){if(!m(B,G))return!1;for(var J in B)if(!a.has(J))return G.fail(J,"is extraneous",2);return!0}},t})(Ht);oe.TIface=O1;function vd(e){return new Vr(Ln(e))}oe.opt=vd;var Vr=(function(e){en(t,e);function t(n){var o=e.call(this)||this;return o.ttype=n,o}return t.prototype.getChecker=function(n,o){var r=this.ttype.getChecker(n,o);return function(l,d){return l===void 0||r(l,d)}},t})(Ht);oe.TOptional=Vr;var Kr=(function(){function e(t,n,o){this.name=t,this.ttype=n,this.isOpt=o}return e})();oe.TProp=Kr;function xd(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return new L1(new q1(t),Ln(e))}oe.func=xd;var L1=(function(e){en(t,e);function t(n,o){var r=e.call(this)||this;return r.paramList=n,r.result=o,r}return t.prototype.getChecker=function(n,o){return function(r,l){return typeof r=="function"?!0:l.fail(null,"is not a function",0)}},t})(Ht);oe.TFunc=L1;function _d(e,t,n){return new D1(e,Ln(t),!!n)}oe.param=_d;var D1=(function(){function e(t,n,o){this.name=t,this.ttype=n,this.isOpt=o}return e})();oe.TParam=D1;var q1=(function(e){en(t,e);function t(n){var o=e.call(this)||this;return o.params=n,o}return t.prototype.getChecker=function(n,o){var r=this,l=this.params.map(function(C){return C.ttype.getChecker(n,o)}),d=new I1.NoopContext,b=this.params.map(function(C,m){return!C.isOpt&&!l[m](void 0,d)}),L=function(C,m){if(!Array.isArray(C))return m.fail(null,"is not an array",0);for(var a=0;a<l.length;a++){var B=r.params[a];if(C[a]===void 0){if(b[a])return m.fail(B.name,"is missing",1)}else{var G=l[a](C[a],m);if(!G)return m.fail(B.name,null,1)}}return!0};return o?function(C,m){return L(C,m)?C.length<=l.length?!0:m.fail(l.length,"is extraneous",2):!1}:L},t})(Ht);oe.TParamList=q1;var Ot=(function(e){en(t,e);function t(n,o){var r=e.call(this)||this;return r.validator=n,r.message=o,r}return t.prototype.getChecker=function(n,o){var r=this;return function(l,d){return r.validator(l)?!0:d.fail(null,r.message,0)}},t})(Ht);oe.BasicType=Ot;oe.basicTypes={any:new Ot(function(e){return!0},"is invalid"),number:new Ot(function(e){return typeof e=="number"},"is not a number"),object:new Ot(function(e){return typeof e=="object"&&e},"is not an object"),boolean:new Ot(function(e){return typeof e=="boolean"},"is not a boolean"),string:new Ot(function(e){return typeof e=="string"},"is not a string"),symbol:new Ot(function(e){return typeof e=="symbol"},"is not a symbol"),void:new Ot(function(e){return e==null},"is not void"),undefined:new Ot(function(e){return e===void 0},"is not undefined"),null:new Ot(function(e){return e===null},"is not null"),never:new Ot(function(e){return!1},"is unexpected"),Date:new Ot(b1("[object Date]"),"is not a Date"),RegExp:new Ot(b1("[object RegExp]"),"is not a RegExp")};var gd=Object.prototype.toString;function b1(e){return function(t){return typeof t=="object"&&t&&gd.call(t)===e}}typeof Buffer<"u"&&(oe.basicTypes.Buffer=new Ot(function(e){return Buffer.isBuffer(e)},"is not a Buffer"));var wd=function(e){oe.basicTypes[e.name]=new Ot(function(t){return t instanceof e},"is not a "+e.name)};for(Ts=0,Br=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,ArrayBuffer];Ts<Br.length;Ts++)C1=Br[Ts],wd(C1);var C1,Ts,Br});var Jr=ne(Ae=>{"use strict";var bd=Ae&&Ae.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var o=Array(e),r=0,t=0;t<n;t++)for(var l=arguments[t],d=0,b=l.length;d<b;d++,r++)o[r]=l[d];return o};Object.defineProperty(Ae,"__esModule",{value:!0});Ae.Checker=Ae.createCheckers=void 0;var Ao=Xr(),ro=hs(),tt=Xr();Object.defineProperty(Ae,"TArray",{enumerable:!0,get:function(){return tt.TArray}});Object.defineProperty(Ae,"TEnumType",{enumerable:!0,get:function(){return tt.TEnumType}});Object.defineProperty(Ae,"TEnumLiteral",{enumerable:!0,get:function(){return tt.TEnumLiteral}});Object.defineProperty(Ae,"TFunc",{enumerable:!0,get:function(){return tt.TFunc}});Object.defineProperty(Ae,"TIface",{enumerable:!0,get:function(){return tt.TIface}});Object.defineProperty(Ae,"TLiteral",{enumerable:!0,get:function(){return tt.TLiteral}});Object.defineProperty(Ae,"TName",{enumerable:!0,get:function(){return tt.TName}});Object.defineProperty(Ae,"TOptional",{enumerable:!0,get:function(){return tt.TOptional}});Object.defineProperty(Ae,"TParam",{enumerable:!0,get:function(){return tt.TParam}});Object.defineProperty(Ae,"TParamList",{enumerable:!0,get:function(){return tt.TParamList}});Object.defineProperty(Ae,"TProp",{enumerable:!0,get:function(){return tt.TProp}});Object.defineProperty(Ae,"TTuple",{enumerable:!0,get:function(){return tt.TTuple}});Object.defineProperty(Ae,"TType",{enumerable:!0,get:function(){return tt.TType}});Object.defineProperty(Ae,"TUnion",{enumerable:!0,get:function(){return tt.TUnion}});Object.defineProperty(Ae,"TIntersection",{enumerable:!0,get:function(){return tt.TIntersection}});Object.defineProperty(Ae,"array",{enumerable:!0,get:function(){return tt.array}});Object.defineProperty(Ae,"enumlit",{enumerable:!0,get:function(){return tt.enumlit}});Object.defineProperty(Ae,"enumtype",{enumerable:!0,get:function(){return tt.enumtype}});Object.defineProperty(Ae,"func",{enumerable:!0,get:function(){return tt.func}});Object.defineProperty(Ae,"iface",{enumerable:!0,get:function(){return tt.iface}});Object.defineProperty(Ae,"lit",{enumerable:!0,get:function(){return tt.lit}});Object.defineProperty(Ae,"name",{enumerable:!0,get:function(){return tt.name}});Object.defineProperty(Ae,"opt",{enumerable:!0,get:function(){return tt.opt}});Object.defineProperty(Ae,"param",{enumerable:!0,get:function(){return tt.param}});Object.defineProperty(Ae,"tuple",{enumerable:!0,get:function(){return tt.tuple}});Object.defineProperty(Ae,"union",{enumerable:!0,get:function(){return tt.union}});Object.defineProperty(Ae,"intersection",{enumerable:!0,get:function(){return tt.intersection}});Object.defineProperty(Ae,"BasicType",{enumerable:!0,get:function(){return tt.BasicType}});var Cd=hs();Object.defineProperty(Ae,"VError",{enumerable:!0,get:function(){return Cd.VError}});function Id(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=Object.assign.apply(Object,bd([{},Ao.basicTypes],e)),o={},r=0,l=e;r<l.length;r++)for(var d=l[r],b=0,L=Object.keys(d);b<L.length;b++){var C=L[b];o[C]=new M1(n,d[C])}return o}Ae.createCheckers=Id;var M1=(function(){function e(t,n,o){if(o===void 0&&(o="value"),this.suite=t,this.ttype=n,this._path=o,this.props=new Map,n instanceof Ao.TIface)for(var r=0,l=n.props;r<l.length;r++){var d=l[r];this.props.set(d.name,d.ttype)}this.checkerPlain=this.ttype.getChecker(t,!1),this.checkerStrict=this.ttype.getChecker(t,!0)}return e.prototype.setReportedPath=function(t){this._path=t},e.prototype.check=function(t){return this._doCheck(this.checkerPlain,t)},e.prototype.test=function(t){return this.checkerPlain(t,new ro.NoopContext)},e.prototype.validate=function(t){return this._doValidate(this.checkerPlain,t)},e.prototype.strictCheck=function(t){return this._doCheck(this.checkerStrict,t)},e.prototype.strictTest=function(t){return this.checkerStrict(t,new ro.NoopContext)},e.prototype.strictValidate=function(t){return this._doValidate(this.checkerStrict,t)},e.prototype.getProp=function(t){var n=this.props.get(t);if(!n)throw new Error("Type has no property "+t);return new e(this.suite,n,this._path+"."+t)},e.prototype.methodArgs=function(t){var n=this._getMethod(t);return new e(this.suite,n.paramList)},e.prototype.methodResult=function(t){var n=this._getMethod(t);return new e(this.suite,n.result)},e.prototype.getArgs=function(){if(!(this.ttype instanceof Ao.TFunc))throw new Error("getArgs() applied to non-function");return new e(this.suite,this.ttype.paramList)},e.prototype.getResult=function(){if(!(this.ttype instanceof Ao.TFunc))throw new Error("getResult() applied to non-function");return new e(this.suite,this.ttype.result)},e.prototype.getType=function(){return this.ttype},e.prototype._doCheck=function(t,n){var o=new ro.NoopContext;if(!t(n,o)){var r=new ro.DetailContext;throw t(n,r),r.getError(this._path)}},e.prototype._doValidate=function(t,n){var o=new ro.NoopContext;if(t(n,o))return null;var r=new ro.DetailContext;return t(n,r),r.getErrorDetail(this._path)},e.prototype._getMethod=function(t){var n=this.props.get(t);if(!n)throw new Error("Type has no property "+t);if(!(n instanceof Ao.TFunc))throw new Error("Property "+t+" is not a method");return n},e})();Ae.Checker=M1});var F1=ne(_n=>{"use strict";Object.defineProperty(_n,"__esModule",{value:!0});function Sd(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}var Ed=Jr(),nt=Sd(Ed),Ad=nt.union(nt.lit("jsx"),nt.lit("typescript"),nt.lit("flow"),nt.lit("imports"),nt.lit("react-hot-loader"),nt.lit("jest"));_n.Transform=Ad;var Pd=nt.iface([],{compiledFilename:"string"});_n.SourceMapOptions=Pd;var Rd=nt.iface([],{transforms:nt.array("Transform"),disableESTransforms:nt.opt("boolean"),jsxRuntime:nt.opt(nt.union(nt.lit("classic"),nt.lit("automatic"),nt.lit("preserve"))),production:nt.opt("boolean"),jsxImportSource:nt.opt("string"),jsxPragma:nt.opt("string"),jsxFragmentPragma:nt.opt("string"),keepUnusedImports:nt.opt("boolean"),preserveDynamicImport:nt.opt("boolean"),injectCreateRequireForImportRequire:nt.opt("boolean"),enableLegacyTypeScriptModuleInterop:nt.opt("boolean"),enableLegacyBabel5ModuleInterop:nt.opt("boolean"),sourceMapOptions:nt.opt("SourceMapOptions"),filePath:nt.opt("string")});_n.Options=Rd;var Nd={Transform:_n.Transform,SourceMapOptions:_n.SourceMapOptions,Options:_n.Options};_n.default=Nd});var j1=ne(Gr=>{"use strict";Object.defineProperty(Gr,"__esModule",{value:!0});function Od(e){return e&&e.__esModule?e:{default:e}}var Ld=Jr(),Dd=F1(),qd=Od(Dd),{Options:Md}=Ld.createCheckers.call(void 0,qd.default);function Fd(e){Md.strictCheck(e)}Gr.validateOptions=Fd});var ks=ne(mn=>{"use strict";Object.defineProperty(mn,"__esModule",{value:!0});var jd=No(),B1=ao(),Lt=_t(),Po=wt(),sn=Se(),gt=Yt(),Ro=Jn(),zr=Nn();function Bd(){Lt.next.call(void 0),Ro.parseMaybeAssign.call(void 0,!1)}mn.parseSpread=Bd;function K1(e){Lt.next.call(void 0),Qr(e)}mn.parseRest=K1;function $1(e){Ro.parseIdentifier.call(void 0),U1(e)}mn.parseBindingIdentifier=$1;function Kd(){Ro.parseIdentifier.call(void 0),gt.state.tokens[gt.state.tokens.length-1].identifierRole=Lt.IdentifierRole.ImportDeclaration}mn.parseImportedIdentifier=Kd;function U1(e){let t;gt.state.scopeDepth===0?t=Lt.IdentifierRole.TopLevelDeclaration:e?t=Lt.IdentifierRole.BlockScopedDeclaration:t=Lt.IdentifierRole.FunctionScopedDeclaration,gt.state.tokens[gt.state.tokens.length-1].identifierRole=t}mn.markPriorBindingIdentifier=U1;function Qr(e){switch(gt.state.type){case sn.TokenType._this:{let t=Lt.pushTypeContext.call(void 0,0);Lt.next.call(void 0),Lt.popTypeContext.call(void 0,t);return}case sn.TokenType._yield:case sn.TokenType.name:{gt.state.type=sn.TokenType.name,$1(e);return}case sn.TokenType.bracketL:{Lt.next.call(void 0),W1(sn.TokenType.bracketR,e,!0);return}case sn.TokenType.braceL:Ro.parseObj.call(void 0,!0,e);return;default:zr.unexpected.call(void 0)}}mn.parseBindingAtom=Qr;function W1(e,t,n=!1,o=!1,r=0){let l=!0,d=!1,b=gt.state.tokens.length;for(;!Lt.eat.call(void 0,e)&&!gt.state.error;)if(l?l=!1:(zr.expect.call(void 0,sn.TokenType.comma),gt.state.tokens[gt.state.tokens.length-1].contextId=r,!d&&gt.state.tokens[b].isType&&(gt.state.tokens[gt.state.tokens.length-1].isType=!0,d=!0)),!(n&&Lt.match.call(void 0,sn.TokenType.comma))){if(Lt.eat.call(void 0,e))break;if(Lt.match.call(void 0,sn.TokenType.ellipsis)){K1(t),H1(),Lt.eat.call(void 0,sn.TokenType.comma),zr.expect.call(void 0,e);break}else $d(o,t)}}mn.parseBindingList=W1;function $d(e,t){e&&B1.tsParseModifiers.call(void 0,[Po.ContextualKeyword._public,Po.ContextualKeyword._protected,Po.ContextualKeyword._private,Po.ContextualKeyword._readonly,Po.ContextualKeyword._override]),Yr(t),H1(),Yr(t,!0)}function H1(){gt.isFlowEnabled?jd.flowParseAssignableListItemTypes.call(void 0):gt.isTypeScriptEnabled&&B1.tsParseAssignableListItemTypes.call(void 0)}function Yr(e,t=!1){if(t||Qr(e),!Lt.eat.call(void 0,sn.TokenType.eq))return;let n=gt.state.tokens.length-1;Ro.parseMaybeAssign.call(void 0),gt.state.tokens[n].rhsEndIndex=gt.state.tokens.length}mn.parseMaybeDefault=Yr});var ao=ne(je=>{"use strict";Object.defineProperty(je,"__esModule",{value:!0});var p=_t(),ee=wt(),c=Se(),y=Yt(),Ce=Jn(),lo=ks(),yn=Mo(),q=Nn(),Ud=ca();function ea(){return p.match.call(void 0,c.TokenType.name)}function Wd(){return p.match.call(void 0,c.TokenType.name)||!!(y.state.type&c.TokenType.IS_KEYWORD)||p.match.call(void 0,c.TokenType.string)||p.match.call(void 0,c.TokenType.num)||p.match.call(void 0,c.TokenType.bigint)||p.match.call(void 0,c.TokenType.decimal)}function z1(){let e=y.state.snapshot();return p.next.call(void 0),(p.match.call(void 0,c.TokenType.bracketL)||p.match.call(void 0,c.TokenType.braceL)||p.match.call(void 0,c.TokenType.star)||p.match.call(void 0,c.TokenType.ellipsis)||p.match.call(void 0,c.TokenType.hash)||Wd())&&!q.hasPrecedingLineBreak.call(void 0)?!0:(y.state.restoreFromSnapshot(e),!1)}function Y1(e){for(;sa(e)!==null;);}je.tsParseModifiers=Y1;function sa(e){if(!p.match.call(void 0,c.TokenType.name))return null;let t=y.state.contextualKeyword;if(e.indexOf(t)!==-1&&z1()){switch(t){case ee.ContextualKeyword._readonly:y.state.tokens[y.state.tokens.length-1].type=c.TokenType._readonly;break;case ee.ContextualKeyword._abstract:y.state.tokens[y.state.tokens.length-1].type=c.TokenType._abstract;break;case ee.ContextualKeyword._static:y.state.tokens[y.state.tokens.length-1].type=c.TokenType._static;break;case ee.ContextualKeyword._public:y.state.tokens[y.state.tokens.length-1].type=c.TokenType._public;break;case ee.ContextualKeyword._private:y.state.tokens[y.state.tokens.length-1].type=c.TokenType._private;break;case ee.ContextualKeyword._protected:y.state.tokens[y.state.tokens.length-1].type=c.TokenType._protected;break;case ee.ContextualKeyword._override:y.state.tokens[y.state.tokens.length-1].type=c.TokenType._override;break;case ee.ContextualKeyword._declare:y.state.tokens[y.state.tokens.length-1].type=c.TokenType._declare;break;default:break}return t}return null}je.tsParseModifier=sa;function Lo(){for(Ce.parseIdentifier.call(void 0);p.eat.call(void 0,c.TokenType.dot);)Ce.parseIdentifier.call(void 0)}function Hd(){Lo(),!q.hasPrecedingLineBreak.call(void 0)&&p.match.call(void 0,c.TokenType.lessThan)&&po()}function Vd(){p.next.call(void 0),qo()}function Xd(){p.next.call(void 0)}function Jd(){q.expect.call(void 0,c.TokenType._typeof),p.match.call(void 0,c.TokenType._import)?Q1():Lo(),!q.hasPrecedingLineBreak.call(void 0)&&p.match.call(void 0,c.TokenType.lessThan)&&po()}function Q1(){q.expect.call(void 0,c.TokenType._import),q.expect.call(void 0,c.TokenType.parenL),q.expect.call(void 0,c.TokenType.string),q.expect.call(void 0,c.TokenType.parenR),p.eat.call(void 0,c.TokenType.dot)&&Lo(),p.match.call(void 0,c.TokenType.lessThan)&&po()}function Gd(){p.eat.call(void 0,c.TokenType._const);let e=p.eat.call(void 0,c.TokenType._in),t=q.eatContextual.call(void 0,ee.ContextualKeyword._out);p.eat.call(void 0,c.TokenType._const),(e||t)&&!p.match.call(void 0,c.TokenType.name)?y.state.tokens[y.state.tokens.length-1].type=c.TokenType.name:Ce.parseIdentifier.call(void 0),p.eat.call(void 0,c.TokenType._extends)&&ct(),p.eat.call(void 0,c.TokenType.eq)&&ct()}function co(){p.match.call(void 0,c.TokenType.lessThan)&&ys()}je.tsTryParseTypeParameters=co;function ys(){let e=p.pushTypeContext.call(void 0,0);for(p.match.call(void 0,c.TokenType.lessThan)||p.match.call(void 0,c.TokenType.typeParameterStart)?p.next.call(void 0):q.unexpected.call(void 0);!p.eat.call(void 0,c.TokenType.greaterThan)&&!y.state.error;)Gd(),p.eat.call(void 0,c.TokenType.comma);p.popTypeContext.call(void 0,e)}function ra(e){let t=e===c.TokenType.arrow;co(),q.expect.call(void 0,c.TokenType.parenL),y.state.scopeDepth++,zd(!1),y.state.scopeDepth--,(t||p.match.call(void 0,e))&&Oo(e)}function zd(e){lo.parseBindingList.call(void 0,c.TokenType.parenR,e)}function ms(){p.eat.call(void 0,c.TokenType.comma)||q.semicolon.call(void 0)}function V1(){ra(c.TokenType.colon),ms()}function Yd(){let e=y.state.snapshot();p.next.call(void 0);let t=p.eat.call(void 0,c.TokenType.name)&&p.match.call(void 0,c.TokenType.colon);return y.state.restoreFromSnapshot(e),t}function Z1(){if(!(p.match.call(void 0,c.TokenType.bracketL)&&Yd()))return!1;let e=p.pushTypeContext.call(void 0,0);return q.expect.call(void 0,c.TokenType.bracketL),Ce.parseIdentifier.call(void 0),qo(),q.expect.call(void 0,c.TokenType.bracketR),Do(),ms(),p.popTypeContext.call(void 0,e),!0}function X1(e){p.eat.call(void 0,c.TokenType.question),!e&&(p.match.call(void 0,c.TokenType.parenL)||p.match.call(void 0,c.TokenType.lessThan))?(ra(c.TokenType.colon),ms()):(Do(),ms())}function Qd(){if(p.match.call(void 0,c.TokenType.parenL)||p.match.call(void 0,c.TokenType.lessThan)){V1();return}if(p.match.call(void 0,c.TokenType._new)){p.next.call(void 0),p.match.call(void 0,c.TokenType.parenL)||p.match.call(void 0,c.TokenType.lessThan)?V1():X1(!1);return}let e=!!sa([ee.ContextualKeyword._readonly]);Z1()||((q.isContextual.call(void 0,ee.ContextualKeyword._get)||q.isContextual.call(void 0,ee.ContextualKeyword._set))&&z1(),Ce.parsePropertyName.call(void 0,-1),X1(e))}function Zd(){el()}function el(){for(q.expect.call(void 0,c.TokenType.braceL);!p.eat.call(void 0,c.TokenType.braceR)&&!y.state.error;)Qd()}function ef(){let e=y.state.snapshot(),t=tf();return y.state.restoreFromSnapshot(e),t}function tf(){return p.next.call(void 0),p.eat.call(void 0,c.TokenType.plus)||p.eat.call(void 0,c.TokenType.minus)?q.isContextual.call(void 0,ee.ContextualKeyword._readonly):(q.isContextual.call(void 0,ee.ContextualKeyword._readonly)&&p.next.call(void 0),!p.match.call(void 0,c.TokenType.bracketL)||(p.next.call(void 0),!ea())?!1:(p.next.call(void 0),p.match.call(void 0,c.TokenType._in)))}function nf(){Ce.parseIdentifier.call(void 0),q.expect.call(void 0,c.TokenType._in),ct()}function of(){q.expect.call(void 0,c.TokenType.braceL),p.match.call(void 0,c.TokenType.plus)||p.match.call(void 0,c.TokenType.minus)?(p.next.call(void 0),q.expectContextual.call(void 0,ee.ContextualKeyword._readonly)):q.eatContextual.call(void 0,ee.ContextualKeyword._readonly),q.expect.call(void 0,c.TokenType.bracketL),nf(),q.eatContextual.call(void 0,ee.ContextualKeyword._as)&&ct(),q.expect.call(void 0,c.TokenType.bracketR),p.match.call(void 0,c.TokenType.plus)||p.match.call(void 0,c.TokenType.minus)?(p.next.call(void 0),q.expect.call(void 0,c.TokenType.question)):p.eat.call(void 0,c.TokenType.question),yf(),q.semicolon.call(void 0),q.expect.call(void 0,c.TokenType.braceR)}function sf(){for(q.expect.call(void 0,c.TokenType.bracketL);!p.eat.call(void 0,c.TokenType.bracketR)&&!y.state.error;)rf(),p.eat.call(void 0,c.TokenType.comma)}function rf(){p.eat.call(void 0,c.TokenType.ellipsis)?ct():(ct(),p.eat.call(void 0,c.TokenType.question)),p.eat.call(void 0,c.TokenType.colon)&&ct()}function af(){q.expect.call(void 0,c.TokenType.parenL),ct(),q.expect.call(void 0,c.TokenType.parenR)}function lf(){for(p.nextTemplateToken.call(void 0),p.nextTemplateToken.call(void 0);!p.match.call(void 0,c.TokenType.backQuote)&&!y.state.error;)q.expect.call(void 0,c.TokenType.dollarBraceL),ct(),p.nextTemplateToken.call(void 0),p.nextTemplateToken.call(void 0);p.next.call(void 0)}var Dn;(function(e){e[e.TSFunctionType=0]="TSFunctionType";let n=1;e[e.TSConstructorType=n]="TSConstructorType";let o=n+1;e[e.TSAbstractConstructorType=o]="TSAbstractConstructorType"})(Dn||(Dn={}));function Zr(e){e===Dn.TSAbstractConstructorType&&q.expectContextual.call(void 0,ee.ContextualKeyword._abstract),(e===Dn.TSConstructorType||e===Dn.TSAbstractConstructorType)&&q.expect.call(void 0,c.TokenType._new);let t=y.state.inDisallowConditionalTypesContext;y.state.inDisallowConditionalTypesContext=!1,ra(c.TokenType.arrow),y.state.inDisallowConditionalTypesContext=t}function cf(){switch(y.state.type){case c.TokenType.name:Hd();return;case c.TokenType._void:case c.TokenType._null:p.next.call(void 0);return;case c.TokenType.string:case c.TokenType.num:case c.TokenType.bigint:case c.TokenType.decimal:case c.TokenType._true:case c.TokenType._false:Ce.parseLiteral.call(void 0);return;case c.TokenType.minus:p.next.call(void 0),Ce.parseLiteral.call(void 0);return;case c.TokenType._this:{Xd(),q.isContextual.call(void 0,ee.ContextualKeyword._is)&&!q.hasPrecedingLineBreak.call(void 0)&&Vd();return}case c.TokenType._typeof:Jd();return;case c.TokenType._import:Q1();return;case c.TokenType.braceL:ef()?of():Zd();return;case c.TokenType.bracketL:sf();return;case c.TokenType.parenL:af();return;case c.TokenType.backQuote:lf();return;default:if(y.state.type&c.TokenType.IS_KEYWORD){p.next.call(void 0),y.state.tokens[y.state.tokens.length-1].type=c.TokenType.name;return}break}q.unexpected.call(void 0)}function pf(){for(cf();!q.hasPrecedingLineBreak.call(void 0)&&p.eat.call(void 0,c.TokenType.bracketL);)p.eat.call(void 0,c.TokenType.bracketR)||(ct(),q.expect.call(void 0,c.TokenType.bracketR))}function uf(){if(q.expectContextual.call(void 0,ee.ContextualKeyword._infer),Ce.parseIdentifier.call(void 0),p.match.call(void 0,c.TokenType._extends)){let e=y.state.snapshot();q.expect.call(void 0,c.TokenType._extends);let t=y.state.inDisallowConditionalTypesContext;y.state.inDisallowConditionalTypesContext=!0,ct(),y.state.inDisallowConditionalTypesContext=t,(y.state.error||!y.state.inDisallowConditionalTypesContext&&p.match.call(void 0,c.TokenType.question))&&y.state.restoreFromSnapshot(e)}}function ta(){if(q.isContextual.call(void 0,ee.ContextualKeyword._keyof)||q.isContextual.call(void 0,ee.ContextualKeyword._unique)||q.isContextual.call(void 0,ee.ContextualKeyword._readonly))p.next.call(void 0),ta();else if(q.isContextual.call(void 0,ee.ContextualKeyword._infer))uf();else{let e=y.state.inDisallowConditionalTypesContext;y.state.inDisallowConditionalTypesContext=!1,pf(),y.state.inDisallowConditionalTypesContext=e}}function J1(){if(p.eat.call(void 0,c.TokenType.bitwiseAND),ta(),p.match.call(void 0,c.TokenType.bitwiseAND))for(;p.eat.call(void 0,c.TokenType.bitwiseAND);)ta()}function df(){if(p.eat.call(void 0,c.TokenType.bitwiseOR),J1(),p.match.call(void 0,c.TokenType.bitwiseOR))for(;p.eat.call(void 0,c.TokenType.bitwiseOR);)J1()}function ff(){return p.match.call(void 0,c.TokenType.lessThan)?!0:p.match.call(void 0,c.TokenType.parenL)&&Tf()}function hf(){if(p.match.call(void 0,c.TokenType.name)||p.match.call(void 0,c.TokenType._this))return p.next.call(void 0),!0;if(p.match.call(void 0,c.TokenType.braceL)||p.match.call(void 0,c.TokenType.bracketL)){let e=1;for(p.next.call(void 0);e>0&&!y.state.error;)p.match.call(void 0,c.TokenType.braceL)||p.match.call(void 0,c.TokenType.bracketL)?e++:(p.match.call(void 0,c.TokenType.braceR)||p.match.call(void 0,c.TokenType.bracketR))&&e--,p.next.call(void 0);return!0}return!1}function Tf(){let e=y.state.snapshot(),t=kf();return y.state.restoreFromSnapshot(e),t}function kf(){return p.next.call(void 0),!!(p.match.call(void 0,c.TokenType.parenR)||p.match.call(void 0,c.TokenType.ellipsis)||hf()&&(p.match.call(void 0,c.TokenType.colon)||p.match.call(void 0,c.TokenType.comma)||p.match.call(void 0,c.TokenType.question)||p.match.call(void 0,c.TokenType.eq)||p.match.call(void 0,c.TokenType.parenR)&&(p.next.call(void 0),p.match.call(void 0,c.TokenType.arrow))))}function Oo(e){let t=p.pushTypeContext.call(void 0,0);q.expect.call(void 0,e),vf()||ct(),p.popTypeContext.call(void 0,t)}function mf(){p.match.call(void 0,c.TokenType.colon)&&Oo(c.TokenType.colon)}function Do(){p.match.call(void 0,c.TokenType.colon)&&qo()}je.tsTryParseTypeAnnotation=Do;function yf(){p.eat.call(void 0,c.TokenType.colon)&&ct()}function vf(){let e=y.state.snapshot();return q.isContextual.call(void 0,ee.ContextualKeyword._asserts)?(p.next.call(void 0),q.eatContextual.call(void 0,ee.ContextualKeyword._is)?(ct(),!0):ea()||p.match.call(void 0,c.TokenType._this)?(p.next.call(void 0),q.eatContextual.call(void 0,ee.ContextualKeyword._is)&&ct(),!0):(y.state.restoreFromSnapshot(e),!1)):ea()||p.match.call(void 0,c.TokenType._this)?(p.next.call(void 0),q.isContextual.call(void 0,ee.ContextualKeyword._is)&&!q.hasPrecedingLineBreak.call(void 0)?(p.next.call(void 0),ct(),!0):(y.state.restoreFromSnapshot(e),!1)):!1}function qo(){let e=p.pushTypeContext.call(void 0,0);q.expect.call(void 0,c.TokenType.colon),ct(),p.popTypeContext.call(void 0,e)}je.tsParseTypeAnnotation=qo;function ct(){if(na(),y.state.inDisallowConditionalTypesContext||q.hasPrecedingLineBreak.call(void 0)||!p.eat.call(void 0,c.TokenType._extends))return;let e=y.state.inDisallowConditionalTypesContext;y.state.inDisallowConditionalTypesContext=!0,na(),y.state.inDisallowConditionalTypesContext=e,q.expect.call(void 0,c.TokenType.question),ct(),q.expect.call(void 0,c.TokenType.colon),ct()}je.tsParseType=ct;function xf(){return q.isContextual.call(void 0,ee.ContextualKeyword._abstract)&&p.lookaheadType.call(void 0)===c.TokenType._new}function na(){if(ff()){Zr(Dn.TSFunctionType);return}if(p.match.call(void 0,c.TokenType._new)){Zr(Dn.TSConstructorType);return}else if(xf()){Zr(Dn.TSAbstractConstructorType);return}df()}je.tsParseNonConditionalType=na;function _f(){let e=p.pushTypeContext.call(void 0,1);ct(),q.expect.call(void 0,c.TokenType.greaterThan),p.popTypeContext.call(void 0,e),Ce.parseMaybeUnary.call(void 0)}je.tsParseTypeAssertion=_f;function gf(){if(p.eat.call(void 0,c.TokenType.jsxTagStart)){y.state.tokens[y.state.tokens.length-1].type=c.TokenType.typeParameterStart;let e=p.pushTypeContext.call(void 0,1);for(;!p.match.call(void 0,c.TokenType.greaterThan)&&!y.state.error;)ct(),p.eat.call(void 0,c.TokenType.comma);Ud.nextJSXTagToken.call(void 0),p.popTypeContext.call(void 0,e)}}je.tsTryParseJSXTypeArgument=gf;function tl(){for(;!p.match.call(void 0,c.TokenType.braceL)&&!y.state.error;)wf(),p.eat.call(void 0,c.TokenType.comma)}function wf(){Lo(),p.match.call(void 0,c.TokenType.lessThan)&&po()}function bf(){lo.parseBindingIdentifier.call(void 0,!1),co(),p.eat.call(void 0,c.TokenType._extends)&&tl(),el()}function Cf(){lo.parseBindingIdentifier.call(void 0,!1),co(),q.expect.call(void 0,c.TokenType.eq),ct(),q.semicolon.call(void 0)}function If(){if(p.match.call(void 0,c.TokenType.string)?Ce.parseLiteral.call(void 0):Ce.parseIdentifier.call(void 0),p.eat.call(void 0,c.TokenType.eq)){let e=y.state.tokens.length-1;Ce.parseMaybeAssign.call(void 0),y.state.tokens[e].rhsEndIndex=y.state.tokens.length}}function aa(){for(lo.parseBindingIdentifier.call(void 0,!1),q.expect.call(void 0,c.TokenType.braceL);!p.eat.call(void 0,c.TokenType.braceR)&&!y.state.error;)If(),p.eat.call(void 0,c.TokenType.comma)}function ia(){q.expect.call(void 0,c.TokenType.braceL),yn.parseBlockBody.call(void 0,c.TokenType.braceR)}function oa(){lo.parseBindingIdentifier.call(void 0,!1),p.eat.call(void 0,c.TokenType.dot)?oa():ia()}function nl(){q.isContextual.call(void 0,ee.ContextualKeyword._global)?Ce.parseIdentifier.call(void 0):p.match.call(void 0,c.TokenType.string)?Ce.parseExprAtom.call(void 0):q.unexpected.call(void 0),p.match.call(void 0,c.TokenType.braceL)?ia():q.semicolon.call(void 0)}function ol(){lo.parseImportedIdentifier.call(void 0),q.expect.call(void 0,c.TokenType.eq),Ef(),q.semicolon.call(void 0)}je.tsParseImportEqualsDeclaration=ol;function Sf(){return q.isContextual.call(void 0,ee.ContextualKeyword._require)&&p.lookaheadType.call(void 0)===c.TokenType.parenL}function Ef(){Sf()?Af():Lo()}function Af(){q.expectContextual.call(void 0,ee.ContextualKeyword._require),q.expect.call(void 0,c.TokenType.parenL),p.match.call(void 0,c.TokenType.string)||q.unexpected.call(void 0),Ce.parseLiteral.call(void 0),q.expect.call(void 0,c.TokenType.parenR)}function Pf(){if(q.isLineTerminator.call(void 0))return!1;switch(y.state.type){case c.TokenType._function:{let e=p.pushTypeContext.call(void 0,1);p.next.call(void 0);let t=y.state.start;return yn.parseFunction.call(void 0,t,!0),p.popTypeContext.call(void 0,e),!0}case c.TokenType._class:{let e=p.pushTypeContext.call(void 0,1);return yn.parseClass.call(void 0,!0,!1),p.popTypeContext.call(void 0,e),!0}case c.TokenType._const:if(p.match.call(void 0,c.TokenType._const)&&q.isLookaheadContextual.call(void 0,ee.ContextualKeyword._enum)){let e=p.pushTypeContext.call(void 0,1);return q.expect.call(void 0,c.TokenType._const),q.expectContextual.call(void 0,ee.ContextualKeyword._enum),y.state.tokens[y.state.tokens.length-1].type=c.TokenType._enum,aa(),p.popTypeContext.call(void 0,e),!0}case c.TokenType._var:case c.TokenType._let:{let e=p.pushTypeContext.call(void 0,1);return yn.parseVarStatement.call(void 0,y.state.type!==c.TokenType._var),p.popTypeContext.call(void 0,e),!0}case c.TokenType.name:{let e=p.pushTypeContext.call(void 0,1),t=y.state.contextualKeyword,n=!1;return t===ee.ContextualKeyword._global?(nl(),n=!0):n=vs(t,!0),p.popTypeContext.call(void 0,e),n}default:return!1}}function G1(){return vs(y.state.contextualKeyword,!0)}function Rf(e){switch(e){case ee.ContextualKeyword._declare:{let t=y.state.tokens.length-1;if(Pf())return y.state.tokens[t].type=c.TokenType._declare,!0;break}case ee.ContextualKeyword._global:if(p.match.call(void 0,c.TokenType.braceL))return ia(),!0;break;default:return vs(e,!1)}return!1}function vs(e,t){switch(e){case ee.ContextualKeyword._abstract:if(io(t)&&p.match.call(void 0,c.TokenType._class))return y.state.tokens[y.state.tokens.length-1].type=c.TokenType._abstract,yn.parseClass.call(void 0,!0,!1),!0;break;case ee.ContextualKeyword._enum:if(io(t)&&p.match.call(void 0,c.TokenType.name))return y.state.tokens[y.state.tokens.length-1].type=c.TokenType._enum,aa(),!0;break;case ee.ContextualKeyword._interface:if(io(t)&&p.match.call(void 0,c.TokenType.name)){let n=p.pushTypeContext.call(void 0,t?2:1);return bf(),p.popTypeContext.call(void 0,n),!0}break;case ee.ContextualKeyword._module:if(io(t)){if(p.match.call(void 0,c.TokenType.string)){let n=p.pushTypeContext.call(void 0,t?2:1);return nl(),p.popTypeContext.call(void 0,n),!0}else if(p.match.call(void 0,c.TokenType.name)){let n=p.pushTypeContext.call(void 0,t?2:1);return oa(),p.popTypeContext.call(void 0,n),!0}}break;case ee.ContextualKeyword._namespace:if(io(t)&&p.match.call(void 0,c.TokenType.name)){let n=p.pushTypeContext.call(void 0,t?2:1);return oa(),p.popTypeContext.call(void 0,n),!0}break;case ee.ContextualKeyword._type:if(io(t)&&p.match.call(void 0,c.TokenType.name)){let n=p.pushTypeContext.call(void 0,t?2:1);return Cf(),p.popTypeContext.call(void 0,n),!0}break;default:break}return!1}function io(e){return e?(p.next.call(void 0),!0):!q.isLineTerminator.call(void 0)}function Nf(){let e=y.state.snapshot();return ys(),yn.parseFunctionParams.call(void 0),mf(),q.expect.call(void 0,c.TokenType.arrow),y.state.error?(y.state.restoreFromSnapshot(e),!1):(Ce.parseFunctionBody.call(void 0,!0),!0)}function la(){y.state.type===c.TokenType.bitShiftL&&(y.state.pos-=1,p.finishToken.call(void 0,c.TokenType.lessThan)),po()}function po(){let e=p.pushTypeContext.call(void 0,0);for(q.expect.call(void 0,c.TokenType.lessThan);!p.match.call(void 0,c.TokenType.greaterThan)&&!y.state.error;)ct(),p.eat.call(void 0,c.TokenType.comma);e?(q.expect.call(void 0,c.TokenType.greaterThan),p.popTypeContext.call(void 0,e)):(p.popTypeContext.call(void 0,e),p.rescan_gt.call(void 0),q.expect.call(void 0,c.TokenType.greaterThan),y.state.tokens[y.state.tokens.length-1].isType=!0)}function Of(){if(p.match.call(void 0,c.TokenType.name))switch(y.state.contextualKeyword){case ee.ContextualKeyword._abstract:case ee.ContextualKeyword._declare:case ee.ContextualKeyword._enum:case ee.ContextualKeyword._interface:case ee.ContextualKeyword._module:case ee.ContextualKeyword._namespace:case ee.ContextualKeyword._type:return!0;default:break}return!1}je.tsIsDeclarationStart=Of;function Lf(e,t){if(p.match.call(void 0,c.TokenType.colon)&&Oo(c.TokenType.colon),!p.match.call(void 0,c.TokenType.braceL)&&q.isLineTerminator.call(void 0)){let n=y.state.tokens.length-1;for(;n>=0&&(y.state.tokens[n].start>=e||y.state.tokens[n].type===c.TokenType._default||y.state.tokens[n].type===c.TokenType._export);)y.state.tokens[n].isType=!0,n--;return}Ce.parseFunctionBody.call(void 0,!1,t)}je.tsParseFunctionBodyAndFinish=Lf;function Df(e,t,n){if(!q.hasPrecedingLineBreak.call(void 0)&&p.eat.call(void 0,c.TokenType.bang)){y.state.tokens[y.state.tokens.length-1].type=c.TokenType.nonNullAssertion;return}if(p.match.call(void 0,c.TokenType.lessThan)||p.match.call(void 0,c.TokenType.bitShiftL)){let o=y.state.snapshot();if(!t&&Ce.atPossibleAsync.call(void 0)&&Nf())return;if(la(),!t&&p.eat.call(void 0,c.TokenType.parenL)?(y.state.tokens[y.state.tokens.length-1].subscriptStartIndex=e,Ce.parseCallExpressionArguments.call(void 0)):p.match.call(void 0,c.TokenType.backQuote)?Ce.parseTemplate.call(void 0):(y.state.type===c.TokenType.greaterThan||y.state.type!==c.TokenType.parenL&&y.state.type&c.TokenType.IS_EXPRESSION_START&&!q.hasPrecedingLineBreak.call(void 0))&&q.unexpected.call(void 0),y.state.error)y.state.restoreFromSnapshot(o);else return}else!t&&p.match.call(void 0,c.TokenType.questionDot)&&p.lookaheadType.call(void 0)===c.TokenType.lessThan&&(p.next.call(void 0),y.state.tokens[e].isOptionalChainStart=!0,y.state.tokens[y.state.tokens.length-1].subscriptStartIndex=e,po(),q.expect.call(void 0,c.TokenType.parenL),Ce.parseCallExpressionArguments.call(void 0));Ce.baseParseSubscript.call(void 0,e,t,n)}je.tsParseSubscript=Df;function qf(){if(p.eat.call(void 0,c.TokenType._import))return q.isContextual.call(void 0,ee.ContextualKeyword._type)&&p.lookaheadType.call(void 0)!==c.TokenType.eq&&q.expectContextual.call(void 0,ee.ContextualKeyword._type),ol(),!0;if(p.eat.call(void 0,c.TokenType.eq))return Ce.parseExpression.call(void 0),q.semicolon.call(void 0),!0;if(q.eatContextual.call(void 0,ee.ContextualKeyword._as))return q.expectContextual.call(void 0,ee.ContextualKeyword._namespace),Ce.parseIdentifier.call(void 0),q.semicolon.call(void 0),!0;if(q.isContextual.call(void 0,ee.ContextualKeyword._type)){let e=p.lookaheadType.call(void 0);(e===c.TokenType.braceL||e===c.TokenType.star)&&p.next.call(void 0)}return!1}je.tsTryParseExport=qf;function Mf(){if(Ce.parseIdentifier.call(void 0),p.match.call(void 0,c.TokenType.comma)||p.match.call(void 0,c.TokenType.braceR)){y.state.tokens[y.state.tokens.length-1].identifierRole=p.IdentifierRole.ImportDeclaration;return}if(Ce.parseIdentifier.call(void 0),p.match.call(void 0,c.TokenType.comma)||p.match.call(void 0,c.TokenType.braceR)){y.state.tokens[y.state.tokens.length-1].identifierRole=p.IdentifierRole.ImportDeclaration,y.state.tokens[y.state.tokens.length-2].isType=!0,y.state.tokens[y.state.tokens.length-1].isType=!0;return}if(Ce.parseIdentifier.call(void 0),p.match.call(void 0,c.TokenType.comma)||p.match.call(void 0,c.TokenType.braceR)){y.state.tokens[y.state.tokens.length-3].identifierRole=p.IdentifierRole.ImportAccess,y.state.tokens[y.state.tokens.length-1].identifierRole=p.IdentifierRole.ImportDeclaration;return}Ce.parseIdentifier.call(void 0),y.state.tokens[y.state.tokens.length-3].identifierRole=p.IdentifierRole.ImportAccess,y.state.tokens[y.state.tokens.length-1].identifierRole=p.IdentifierRole.ImportDeclaration,y.state.tokens[y.state.tokens.length-4].isType=!0,y.state.tokens[y.state.tokens.length-3].isType=!0,y.state.tokens[y.state.tokens.length-2].isType=!0,y.state.tokens[y.state.tokens.length-1].isType=!0}je.tsParseImportSpecifier=Mf;function Ff(){if(Ce.parseIdentifier.call(void 0),p.match.call(void 0,c.TokenType.comma)||p.match.call(void 0,c.TokenType.braceR)){y.state.tokens[y.state.tokens.length-1].identifierRole=p.IdentifierRole.ExportAccess;return}if(Ce.parseIdentifier.call(void 0),p.match.call(void 0,c.TokenType.comma)||p.match.call(void 0,c.TokenType.braceR)){y.state.tokens[y.state.tokens.length-1].identifierRole=p.IdentifierRole.ExportAccess,y.state.tokens[y.state.tokens.length-2].isType=!0,y.state.tokens[y.state.tokens.length-1].isType=!0;return}if(Ce.parseIdentifier.call(void 0),p.match.call(void 0,c.TokenType.comma)||p.match.call(void 0,c.TokenType.braceR)){y.state.tokens[y.state.tokens.length-3].identifierRole=p.IdentifierRole.ExportAccess;return}Ce.parseIdentifier.call(void 0),y.state.tokens[y.state.tokens.length-3].identifierRole=p.IdentifierRole.ExportAccess,y.state.tokens[y.state.tokens.length-4].isType=!0,y.state.tokens[y.state.tokens.length-3].isType=!0,y.state.tokens[y.state.tokens.length-2].isType=!0,y.state.tokens[y.state.tokens.length-1].isType=!0}je.tsParseExportSpecifier=Ff;function jf(){if(q.isContextual.call(void 0,ee.ContextualKeyword._abstract)&&p.lookaheadType.call(void 0)===c.TokenType._class)return y.state.type=c.TokenType._abstract,p.next.call(void 0),yn.parseClass.call(void 0,!0,!0),!0;if(q.isContextual.call(void 0,ee.ContextualKeyword._interface)){let e=p.pushTypeContext.call(void 0,2);return vs(ee.ContextualKeyword._interface,!0),p.popTypeContext.call(void 0,e),!0}return!1}je.tsTryParseExportDefaultExpression=jf;function Bf(){if(y.state.type===c.TokenType._const){let e=p.lookaheadTypeAndKeyword.call(void 0);if(e.type===c.TokenType.name&&e.contextualKeyword===ee.ContextualKeyword._enum)return q.expect.call(void 0,c.TokenType._const),q.expectContextual.call(void 0,ee.ContextualKeyword._enum),y.state.tokens[y.state.tokens.length-1].type=c.TokenType._enum,aa(),!0}return!1}je.tsTryParseStatementContent=Bf;function Kf(e){let t=y.state.tokens.length;Y1([ee.ContextualKeyword._abstract,ee.ContextualKeyword._readonly,ee.ContextualKeyword._declare,ee.ContextualKeyword._static,ee.ContextualKeyword._override]);let n=y.state.tokens.length;if(Z1()){let r=e?t-1:t;for(let l=r;l<n;l++)y.state.tokens[l].isType=!0;return!0}return!1}je.tsTryParseClassMemberWithIsStatic=Kf;function $f(e){Rf(e)||q.semicolon.call(void 0)}je.tsParseIdentifierStatement=$f;function Uf(){let e=q.eatContextual.call(void 0,ee.ContextualKeyword._declare);e&&(y.state.tokens[y.state.tokens.length-1].type=c.TokenType._declare);let t=!1;if(p.match.call(void 0,c.TokenType.name))if(e){let n=p.pushTypeContext.call(void 0,2);t=G1(),p.popTypeContext.call(void 0,n)}else t=G1();if(!t)if(e){let n=p.pushTypeContext.call(void 0,2);yn.parseStatement.call(void 0,!0),p.popTypeContext.call(void 0,n)}else yn.parseStatement.call(void 0,!0)}je.tsParseExportDeclaration=Uf;function Wf(e){if(e&&(p.match.call(void 0,c.TokenType.lessThan)||p.match.call(void 0,c.TokenType.bitShiftL))&&la(),q.eatContextual.call(void 0,ee.ContextualKeyword._implements)){y.state.tokens[y.state.tokens.length-1].type=c.TokenType._implements;let t=p.pushTypeContext.call(void 0,1);tl(),p.popTypeContext.call(void 0,t)}}je.tsAfterParseClassSuper=Wf;function Hf(){co()}je.tsStartParseObjPropValue=Hf;function Vf(){co()}je.tsStartParseFunctionParams=Vf;function Xf(){let e=p.pushTypeContext.call(void 0,0);q.hasPrecedingLineBreak.call(void 0)||p.eat.call(void 0,c.TokenType.bang),Do(),p.popTypeContext.call(void 0,e)}je.tsAfterParseVarHead=Xf;function Jf(){p.match.call(void 0,c.TokenType.colon)&&qo()}je.tsStartParseAsyncArrowFromCallExpression=Jf;function Gf(e,t){return y.isJSXEnabled?sl(e,t):rl(e,t)}je.tsParseMaybeAssign=Gf;function sl(e,t){if(!p.match.call(void 0,c.TokenType.lessThan))return Ce.baseParseMaybeAssign.call(void 0,e,t);let n=y.state.snapshot(),o=Ce.baseParseMaybeAssign.call(void 0,e,t);if(y.state.error)y.state.restoreFromSnapshot(n);else return o;return y.state.type=c.TokenType.typeParameterStart,ys(),o=Ce.baseParseMaybeAssign.call(void 0,e,t),o||q.unexpected.call(void 0),o}je.tsParseMaybeAssignWithJSX=sl;function rl(e,t){if(!p.match.call(void 0,c.TokenType.lessThan))return Ce.baseParseMaybeAssign.call(void 0,e,t);let n=y.state.snapshot();ys();let o=Ce.baseParseMaybeAssign.call(void 0,e,t);if(o||q.unexpected.call(void 0),y.state.error)y.state.restoreFromSnapshot(n);else return o;return Ce.baseParseMaybeAssign.call(void 0,e,t)}je.tsParseMaybeAssignWithoutJSX=rl;function zf(){if(p.match.call(void 0,c.TokenType.colon)){let e=y.state.snapshot();Oo(c.TokenType.colon),q.canInsertSemicolon.call(void 0)&&q.unexpected.call(void 0),p.match.call(void 0,c.TokenType.arrow)||q.unexpected.call(void 0),y.state.error&&y.state.restoreFromSnapshot(e)}return p.eat.call(void 0,c.TokenType.arrow)}je.tsParseArrow=zf;function Yf(){let e=p.pushTypeContext.call(void 0,0);p.eat.call(void 0,c.TokenType.question),Do(),p.popTypeContext.call(void 0,e)}je.tsParseAssignableListItemTypes=Yf;function Qf(){(p.match.call(void 0,c.TokenType.lessThan)||p.match.call(void 0,c.TokenType.bitShiftL))&&la(),yn.baseParseMaybeDecoratorArguments.call(void 0)}je.tsParseMaybeDecoratorArguments=Qf});var ca=ne(_s=>{"use strict";Object.defineProperty(_s,"__esModule",{value:!0});var Pe=_t(),Ue=Se(),ce=Yt(),xs=Jn(),qn=Nn(),ht=zt(),al=no(),Zf=ao();function eh(){let e=!1,t=!1;for(;;){if(ce.state.pos>=ce.input.length){qn.unexpected.call(void 0,"Unterminated JSX contents");return}let n=ce.input.charCodeAt(ce.state.pos);if(n===ht.charCodes.lessThan||n===ht.charCodes.leftCurlyBrace){if(ce.state.pos===ce.state.start){if(n===ht.charCodes.lessThan){ce.state.pos++,Pe.finishToken.call(void 0,Ue.TokenType.jsxTagStart);return}Pe.getTokenFromCode.call(void 0,n);return}e&&!t?Pe.finishToken.call(void 0,Ue.TokenType.jsxEmptyText):Pe.finishToken.call(void 0,Ue.TokenType.jsxText);return}n===ht.charCodes.lineFeed?e=!0:n!==ht.charCodes.space&&n!==ht.charCodes.carriageReturn&&n!==ht.charCodes.tab&&(t=!0),ce.state.pos++}}function th(e){for(ce.state.pos++;;){if(ce.state.pos>=ce.input.length){qn.unexpected.call(void 0,"Unterminated string constant");return}if(ce.input.charCodeAt(ce.state.pos)===e){ce.state.pos++;break}ce.state.pos++}Pe.finishToken.call(void 0,Ue.TokenType.string)}function nh(){let e;do{if(ce.state.pos>ce.input.length){qn.unexpected.call(void 0,"Unexpectedly reached the end of input.");return}e=ce.input.charCodeAt(++ce.state.pos)}while(al.IS_IDENTIFIER_CHAR[e]||e===ht.charCodes.dash);Pe.finishToken.call(void 0,Ue.TokenType.jsxName)}function pa(){rn()}function il(e){if(pa(),!Pe.eat.call(void 0,Ue.TokenType.colon)){ce.state.tokens[ce.state.tokens.length-1].identifierRole=e;return}pa()}function ll(){let e=ce.state.tokens.length;il(Pe.IdentifierRole.Access);let t=!1;for(;Pe.match.call(void 0,Ue.TokenType.dot);)t=!0,rn(),pa();if(!t){let n=ce.state.tokens[e],o=ce.input.charCodeAt(n.start);o>=ht.charCodes.lowercaseA&&o<=ht.charCodes.lowercaseZ&&(n.identifierRole=null)}}function oh(){switch(ce.state.type){case Ue.TokenType.braceL:Pe.next.call(void 0),xs.parseExpression.call(void 0),rn();return;case Ue.TokenType.jsxTagStart:pl(),rn();return;case Ue.TokenType.string:rn();return;default:qn.unexpected.call(void 0,"JSX value should be either an expression or a quoted JSX text")}}function sh(){qn.expect.call(void 0,Ue.TokenType.ellipsis),xs.parseExpression.call(void 0)}function rh(e){if(Pe.match.call(void 0,Ue.TokenType.jsxTagEnd))return!1;ll(),ce.isTypeScriptEnabled&&Zf.tsTryParseJSXTypeArgument.call(void 0);let t=!1;for(;!Pe.match.call(void 0,Ue.TokenType.slash)&&!Pe.match.call(void 0,Ue.TokenType.jsxTagEnd)&&!ce.state.error;){if(Pe.eat.call(void 0,Ue.TokenType.braceL)){t=!0,qn.expect.call(void 0,Ue.TokenType.ellipsis),xs.parseMaybeAssign.call(void 0),rn();continue}t&&ce.state.end-ce.state.start===3&&ce.input.charCodeAt(ce.state.start)===ht.charCodes.lowercaseK&&ce.input.charCodeAt(ce.state.start+1)===ht.charCodes.lowercaseE&&ce.input.charCodeAt(ce.state.start+2)===ht.charCodes.lowercaseY&&(ce.state.tokens[e].jsxRole=Pe.JSXRole.KeyAfterPropSpread),il(Pe.IdentifierRole.ObjectKey),Pe.match.call(void 0,Ue.TokenType.eq)&&(rn(),oh())}let n=Pe.match.call(void 0,Ue.TokenType.slash);return n&&rn(),n}function ah(){Pe.match.call(void 0,Ue.TokenType.jsxTagEnd)||ll()}function cl(){let e=ce.state.tokens.length-1;ce.state.tokens[e].jsxRole=Pe.JSXRole.NoChildren;let t=0;if(!rh(e))for(uo();;)switch(ce.state.type){case Ue.TokenType.jsxTagStart:if(rn(),Pe.match.call(void 0,Ue.TokenType.slash)){rn(),ah(),ce.state.tokens[e].jsxRole!==Pe.JSXRole.KeyAfterPropSpread&&(t===1?ce.state.tokens[e].jsxRole=Pe.JSXRole.OneChild:t>1&&(ce.state.tokens[e].jsxRole=Pe.JSXRole.StaticChildren));return}t++,cl(),uo();break;case Ue.TokenType.jsxText:t++,uo();break;case Ue.TokenType.jsxEmptyText:uo();break;case Ue.TokenType.braceL:Pe.next.call(void 0),Pe.match.call(void 0,Ue.TokenType.ellipsis)?(sh(),uo(),t+=2):(Pe.match.call(void 0,Ue.TokenType.braceR)||(t++,xs.parseExpression.call(void 0)),uo());break;default:qn.unexpected.call(void 0);return}}function pl(){rn(),cl()}_s.jsxParseElement=pl;function rn(){ce.state.tokens.push(new Pe.Token),Pe.skipSpace.call(void 0),ce.state.start=ce.state.pos;let e=ce.input.charCodeAt(ce.state.pos);if(al.IS_IDENTIFIER_START[e])nh();else if(e===ht.charCodes.quotationMark||e===ht.charCodes.apostrophe)th(e);else switch(++ce.state.pos,e){case ht.charCodes.greaterThan:Pe.finishToken.call(void 0,Ue.TokenType.jsxTagEnd);break;case ht.charCodes.lessThan:Pe.finishToken.call(void 0,Ue.TokenType.jsxTagStart);break;case ht.charCodes.slash:Pe.finishToken.call(void 0,Ue.TokenType.slash);break;case ht.charCodes.equalsTo:Pe.finishToken.call(void 0,Ue.TokenType.eq);break;case ht.charCodes.leftCurlyBrace:Pe.finishToken.call(void 0,Ue.TokenType.braceL);break;case ht.charCodes.dot:Pe.finishToken.call(void 0,Ue.TokenType.dot);break;case ht.charCodes.colon:Pe.finishToken.call(void 0,Ue.TokenType.colon);break;default:qn.unexpected.call(void 0)}}_s.nextJSXTagToken=rn;function uo(){ce.state.tokens.push(new Pe.Token),ce.state.start=ce.state.pos,eh()}});var dl=ne(ws=>{"use strict";Object.defineProperty(ws,"__esModule",{value:!0});var gs=_t(),fo=Se(),ul=Yt(),ih=Jn(),lh=No(),ch=ao();function ph(e){if(gs.match.call(void 0,fo.TokenType.question)){let t=gs.lookaheadType.call(void 0);if(t===fo.TokenType.colon||t===fo.TokenType.comma||t===fo.TokenType.parenR)return}ih.baseParseConditional.call(void 0,e)}ws.typedParseConditional=ph;function uh(){gs.eatTypeToken.call(void 0,fo.TokenType.question),gs.match.call(void 0,fo.TokenType.colon)&&(ul.isTypeScriptEnabled?ch.tsParseTypeAnnotation.call(void 0):ul.isFlowEnabled&&lh.flowParseTypeAnnotation.call(void 0))}ws.typedParseParenItem=uh});var Jn=ne(it=>{"use strict";Object.defineProperty(it,"__esModule",{value:!0});var bn=No(),dh=ca(),fl=dl(),Fn=ao(),D=_t(),gn=wt(),hl=es(),E=Se(),Tl=zt(),fh=no(),A=Yt(),Mn=ks(),dn=Mo(),Ne=Nn(),Is=class{constructor(t){this.stop=t}};it.StopState=Is;function Fo(e=!1){if(an(e),D.match.call(void 0,E.TokenType.comma))for(;D.eat.call(void 0,E.TokenType.comma);)an(e)}it.parseExpression=Fo;function an(e=!1,t=!1){return A.isTypeScriptEnabled?Fn.tsParseMaybeAssign.call(void 0,e,t):A.isFlowEnabled?bn.flowParseMaybeAssign.call(void 0,e,t):kl(e,t)}it.parseMaybeAssign=an;function kl(e,t){if(D.match.call(void 0,E.TokenType._yield))return Ph(),!1;(D.match.call(void 0,E.TokenType.parenL)||D.match.call(void 0,E.TokenType.name)||D.match.call(void 0,E.TokenType._yield))&&(A.state.potentialArrowAt=A.state.start);let n=hh(e);return t&&Ta(),A.state.type&E.TokenType.IS_ASSIGN?(D.next.call(void 0),an(e),!1):n}it.baseParseMaybeAssign=kl;function hh(e){return kh(e)?!0:(Th(e),!1)}function Th(e){A.isTypeScriptEnabled||A.isFlowEnabled?fl.typedParseConditional.call(void 0,e):ml(e)}function ml(e){D.eat.call(void 0,E.TokenType.question)&&(an(),Ne.expect.call(void 0,E.TokenType.colon),an(e))}it.baseParseConditional=ml;function kh(e){let t=A.state.tokens.length;return Bo()?!0:(bs(t,-1,e),!1)}function bs(e,t,n){if(A.isTypeScriptEnabled&&(E.TokenType._in&E.TokenType.PRECEDENCE_MASK)>t&&!Ne.hasPrecedingLineBreak.call(void 0)&&(Ne.eatContextual.call(void 0,gn.ContextualKeyword._as)||Ne.eatContextual.call(void 0,gn.ContextualKeyword._satisfies))){let r=D.pushTypeContext.call(void 0,1);Fn.tsParseType.call(void 0),D.popTypeContext.call(void 0,r),D.rescan_gt.call(void 0),bs(e,t,n);return}let o=A.state.type&E.TokenType.PRECEDENCE_MASK;if(o>0&&(!n||!D.match.call(void 0,E.TokenType._in))&&o>t){let r=A.state.type;D.next.call(void 0),r===E.TokenType.nullishCoalescing&&(A.state.tokens[A.state.tokens.length-1].nullishStartIndex=e);let l=A.state.tokens.length;Bo(),bs(l,r&E.TokenType.IS_RIGHT_ASSOCIATIVE?o-1:o,n),r===E.TokenType.nullishCoalescing&&(A.state.tokens[e].numNullishCoalesceStarts++,A.state.tokens[A.state.tokens.length-1].numNullishCoalesceEnds++),bs(e,t,n)}}function Bo(){if(A.isTypeScriptEnabled&&!A.isJSXEnabled&&D.eat.call(void 0,E.TokenType.lessThan))return Fn.tsParseTypeAssertion.call(void 0),!1;if(Ne.isContextual.call(void 0,gn.ContextualKeyword._module)&&D.lookaheadCharCode.call(void 0)===Tl.charCodes.leftCurlyBrace&&!Ne.hasFollowingLineBreak.call(void 0))return Rh(),!1;if(A.state.type&E.TokenType.IS_PREFIX)return D.next.call(void 0),Bo(),!1;if(yl())return!0;for(;A.state.type&E.TokenType.IS_POSTFIX&&!Ne.canInsertSemicolon.call(void 0);)A.state.type===E.TokenType.preIncDec&&(A.state.type=E.TokenType.postIncDec),D.next.call(void 0);return!1}it.parseMaybeUnary=Bo;function yl(){let e=A.state.tokens.length;return As()?!0:(fa(e),A.state.tokens.length>e&&A.state.tokens[e].isOptionalChainStart&&(A.state.tokens[A.state.tokens.length-1].isOptionalChainEnd=!0),!1)}it.parseExprSubscripts=yl;function fa(e,t=!1){A.isFlowEnabled?bn.flowParseSubscripts.call(void 0,e,t):vl(e,t)}function vl(e,t=!1){let n=new Is(!1);do mh(e,t,n);while(!n.stop&&!A.state.error)}it.baseParseSubscripts=vl;function mh(e,t,n){A.isTypeScriptEnabled?Fn.tsParseSubscript.call(void 0,e,t,n):A.isFlowEnabled?bn.flowParseSubscript.call(void 0,e,t,n):xl(e,t,n)}function xl(e,t,n){if(!t&&D.eat.call(void 0,E.TokenType.doubleColon))ha(),n.stop=!0,fa(e,t);else if(D.match.call(void 0,E.TokenType.questionDot)){if(A.state.tokens[e].isOptionalChainStart=!0,t&&D.lookaheadType.call(void 0)===E.TokenType.parenL){n.stop=!0;return}D.next.call(void 0),A.state.tokens[A.state.tokens.length-1].subscriptStartIndex=e,D.eat.call(void 0,E.TokenType.bracketL)?(Fo(),Ne.expect.call(void 0,E.TokenType.bracketR)):D.eat.call(void 0,E.TokenType.parenL)?Cs():Ss()}else if(D.eat.call(void 0,E.TokenType.dot))A.state.tokens[A.state.tokens.length-1].subscriptStartIndex=e,Ss();else if(D.eat.call(void 0,E.TokenType.bracketL))A.state.tokens[A.state.tokens.length-1].subscriptStartIndex=e,Fo(),Ne.expect.call(void 0,E.TokenType.bracketR);else if(!t&&D.match.call(void 0,E.TokenType.parenL))if(_l()){let o=A.state.snapshot(),r=A.state.tokens.length;D.next.call(void 0),A.state.tokens[A.state.tokens.length-1].subscriptStartIndex=e;let l=A.getNextContextId.call(void 0);A.state.tokens[A.state.tokens.length-1].contextId=l,Cs(),A.state.tokens[A.state.tokens.length-1].contextId=l,yh()&&(A.state.restoreFromSnapshot(o),n.stop=!0,A.state.scopeDepth++,dn.parseFunctionParams.call(void 0),vh(r))}else{D.next.call(void 0),A.state.tokens[A.state.tokens.length-1].subscriptStartIndex=e;let o=A.getNextContextId.call(void 0);A.state.tokens[A.state.tokens.length-1].contextId=o,Cs(),A.state.tokens[A.state.tokens.length-1].contextId=o}else D.match.call(void 0,E.TokenType.backQuote)?ka():n.stop=!0}it.baseParseSubscript=xl;function _l(){return A.state.tokens[A.state.tokens.length-1].contextualKeyword===gn.ContextualKeyword._async&&!Ne.canInsertSemicolon.call(void 0)}it.atPossibleAsync=_l;function Cs(){let e=!0;for(;!D.eat.call(void 0,E.TokenType.parenR)&&!A.state.error;){if(e)e=!1;else if(Ne.expect.call(void 0,E.TokenType.comma),D.eat.call(void 0,E.TokenType.parenR))break;Sl(!1)}}it.parseCallExpressionArguments=Cs;function yh(){return D.match.call(void 0,E.TokenType.colon)||D.match.call(void 0,E.TokenType.arrow)}function vh(e){A.isTypeScriptEnabled?Fn.tsStartParseAsyncArrowFromCallExpression.call(void 0):A.isFlowEnabled&&bn.flowStartParseAsyncArrowFromCallExpression.call(void 0),Ne.expect.call(void 0,E.TokenType.arrow),jo(e)}function ha(){let e=A.state.tokens.length;As(),fa(e,!0)}function As(){if(D.eat.call(void 0,E.TokenType.modulo))return wn(),!1;if(D.match.call(void 0,E.TokenType.jsxText)||D.match.call(void 0,E.TokenType.jsxEmptyText))return gl(),!1;if(D.match.call(void 0,E.TokenType.lessThan)&&A.isJSXEnabled)return A.state.type=E.TokenType.jsxTagStart,dh.jsxParseElement.call(void 0),D.next.call(void 0),!1;let e=A.state.potentialArrowAt===A.state.start;switch(A.state.type){case E.TokenType.slash:case E.TokenType.assign:D.retokenizeSlashAsRegex.call(void 0);case E.TokenType._super:case E.TokenType._this:case E.TokenType.regexp:case E.TokenType.num:case E.TokenType.bigint:case E.TokenType.decimal:case E.TokenType.string:case E.TokenType._null:case E.TokenType._true:case E.TokenType._false:return D.next.call(void 0),!1;case E.TokenType._import:return D.next.call(void 0),D.match.call(void 0,E.TokenType.dot)&&(A.state.tokens[A.state.tokens.length-1].type=E.TokenType.name,D.next.call(void 0),wn()),!1;case E.TokenType.name:{let t=A.state.tokens.length,n=A.state.start,o=A.state.contextualKeyword;return wn(),o===gn.ContextualKeyword._await?(Ah(),!1):o===gn.ContextualKeyword._async&&D.match.call(void 0,E.TokenType._function)&&!Ne.canInsertSemicolon.call(void 0)?(D.next.call(void 0),dn.parseFunction.call(void 0,n,!1),!1):e&&o===gn.ContextualKeyword._async&&!Ne.canInsertSemicolon.call(void 0)&&D.match.call(void 0,E.TokenType.name)?(A.state.scopeDepth++,Mn.parseBindingIdentifier.call(void 0,!1),Ne.expect.call(void 0,E.TokenType.arrow),jo(t),!0):D.match.call(void 0,E.TokenType._do)&&!Ne.canInsertSemicolon.call(void 0)?(D.next.call(void 0),dn.parseBlock.call(void 0),!1):e&&!Ne.canInsertSemicolon.call(void 0)&&D.match.call(void 0,E.TokenType.arrow)?(A.state.scopeDepth++,Mn.markPriorBindingIdentifier.call(void 0,!1),Ne.expect.call(void 0,E.TokenType.arrow),jo(t),!0):(A.state.tokens[A.state.tokens.length-1].identifierRole=D.IdentifierRole.Access,!1)}case E.TokenType._do:return D.next.call(void 0),dn.parseBlock.call(void 0),!1;case E.TokenType.parenL:return wl(e);case E.TokenType.bracketL:return D.next.call(void 0),Il(E.TokenType.bracketR,!0),!1;case E.TokenType.braceL:return bl(!1,!1),!1;case E.TokenType._function:return xh(),!1;case E.TokenType.at:dn.parseDecorators.call(void 0);case E.TokenType._class:return dn.parseClass.call(void 0,!1),!1;case E.TokenType._new:return wh(),!1;case E.TokenType.backQuote:return ka(),!1;case E.TokenType.doubleColon:return D.next.call(void 0),ha(),!1;case E.TokenType.hash:{let t=D.lookaheadCharCode.call(void 0);return fh.IS_IDENTIFIER_START[t]||t===Tl.charCodes.backslash?Ss():D.next.call(void 0),!1}default:return Ne.unexpected.call(void 0),!1}}it.parseExprAtom=As;function Ss(){D.eat.call(void 0,E.TokenType.hash),wn()}function xh(){let e=A.state.start;wn(),D.eat.call(void 0,E.TokenType.dot)&&wn(),dn.parseFunction.call(void 0,e,!1)}function gl(){D.next.call(void 0)}it.parseLiteral=gl;function _h(){Ne.expect.call(void 0,E.TokenType.parenL),Fo(),Ne.expect.call(void 0,E.TokenType.parenR)}it.parseParenExpression=_h;function wl(e){let t=A.state.snapshot(),n=A.state.tokens.length;Ne.expect.call(void 0,E.TokenType.parenL);let o=!0;for(;!D.match.call(void 0,E.TokenType.parenR)&&!A.state.error;){if(o)o=!1;else if(Ne.expect.call(void 0,E.TokenType.comma),D.match.call(void 0,E.TokenType.parenR))break;if(D.match.call(void 0,E.TokenType.ellipsis)){Mn.parseRest.call(void 0,!1),Ta();break}else an(!1,!0)}return Ne.expect.call(void 0,E.TokenType.parenR),e&&gh()&&ua()?(A.state.restoreFromSnapshot(t),A.state.scopeDepth++,dn.parseFunctionParams.call(void 0),ua(),jo(n),A.state.error?(A.state.restoreFromSnapshot(t),wl(!1),!1):!0):!1}function gh(){return D.match.call(void 0,E.TokenType.colon)||!Ne.canInsertSemicolon.call(void 0)}function ua(){return A.isTypeScriptEnabled?Fn.tsParseArrow.call(void 0):A.isFlowEnabled?bn.flowParseArrow.call(void 0):D.eat.call(void 0,E.TokenType.arrow)}it.parseArrow=ua;function Ta(){(A.isTypeScriptEnabled||A.isFlowEnabled)&&fl.typedParseParenItem.call(void 0)}function wh(){if(Ne.expect.call(void 0,E.TokenType._new),D.eat.call(void 0,E.TokenType.dot)){wn();return}bh(),A.isFlowEnabled&&bn.flowStartParseNewArguments.call(void 0),D.eat.call(void 0,E.TokenType.parenL)&&Il(E.TokenType.parenR)}function bh(){ha(),D.eat.call(void 0,E.TokenType.questionDot)}function ka(){for(D.nextTemplateToken.call(void 0),D.nextTemplateToken.call(void 0);!D.match.call(void 0,E.TokenType.backQuote)&&!A.state.error;)Ne.expect.call(void 0,E.TokenType.dollarBraceL),Fo(),D.nextTemplateToken.call(void 0),D.nextTemplateToken.call(void 0);D.next.call(void 0)}it.parseTemplate=ka;function bl(e,t){let n=A.getNextContextId.call(void 0),o=!0;for(D.next.call(void 0),A.state.tokens[A.state.tokens.length-1].contextId=n;!D.eat.call(void 0,E.TokenType.braceR)&&!A.state.error;){if(o)o=!1;else if(Ne.expect.call(void 0,E.TokenType.comma),D.eat.call(void 0,E.TokenType.braceR))break;let r=!1;if(D.match.call(void 0,E.TokenType.ellipsis)){let l=A.state.tokens.length;if(Mn.parseSpread.call(void 0),e&&(A.state.tokens.length===l+2&&Mn.markPriorBindingIdentifier.call(void 0,t),D.eat.call(void 0,E.TokenType.braceR)))break;continue}e||(r=D.eat.call(void 0,E.TokenType.star)),!e&&Ne.isContextual.call(void 0,gn.ContextualKeyword._async)?(r&&Ne.unexpected.call(void 0),wn(),D.match.call(void 0,E.TokenType.colon)||D.match.call(void 0,E.TokenType.parenL)||D.match.call(void 0,E.TokenType.braceR)||D.match.call(void 0,E.TokenType.eq)||D.match.call(void 0,E.TokenType.comma)||(D.match.call(void 0,E.TokenType.star)&&(D.next.call(void 0),r=!0),Es(n))):Es(n),Eh(e,t,n)}A.state.tokens[A.state.tokens.length-1].contextId=n}it.parseObj=bl;function Ch(e){return!e&&(D.match.call(void 0,E.TokenType.string)||D.match.call(void 0,E.TokenType.num)||D.match.call(void 0,E.TokenType.bracketL)||D.match.call(void 0,E.TokenType.name)||!!(A.state.type&E.TokenType.IS_KEYWORD))}function Ih(e,t){let n=A.state.start;return D.match.call(void 0,E.TokenType.parenL)?(e&&Ne.unexpected.call(void 0),da(n,!1),!0):Ch(e)?(Es(t),da(n,!1),!0):!1}function Sh(e,t){if(D.eat.call(void 0,E.TokenType.colon)){e?Mn.parseMaybeDefault.call(void 0,t):an(!1);return}let n;e?A.state.scopeDepth===0?n=D.IdentifierRole.ObjectShorthandTopLevelDeclaration:t?n=D.IdentifierRole.ObjectShorthandBlockScopedDeclaration:n=D.IdentifierRole.ObjectShorthandFunctionScopedDeclaration:n=D.IdentifierRole.ObjectShorthand,A.state.tokens[A.state.tokens.length-1].identifierRole=n,Mn.parseMaybeDefault.call(void 0,t,!0)}function Eh(e,t,n){A.isTypeScriptEnabled?Fn.tsStartParseObjPropValue.call(void 0):A.isFlowEnabled&&bn.flowStartParseObjPropValue.call(void 0),Ih(e,n)||Sh(e,t)}function Es(e){A.isFlowEnabled&&bn.flowParseVariance.call(void 0),D.eat.call(void 0,E.TokenType.bracketL)?(A.state.tokens[A.state.tokens.length-1].contextId=e,an(),Ne.expect.call(void 0,E.TokenType.bracketR),A.state.tokens[A.state.tokens.length-1].contextId=e):(D.match.call(void 0,E.TokenType.num)||D.match.call(void 0,E.TokenType.string)||D.match.call(void 0,E.TokenType.bigint)||D.match.call(void 0,E.TokenType.decimal)?As():Ss(),A.state.tokens[A.state.tokens.length-1].identifierRole=D.IdentifierRole.ObjectKey,A.state.tokens[A.state.tokens.length-1].contextId=e)}it.parsePropertyName=Es;function da(e,t){let n=A.getNextContextId.call(void 0);A.state.scopeDepth++;let o=A.state.tokens.length,r=t;dn.parseFunctionParams.call(void 0,r,n),Cl(e,n);let l=A.state.tokens.length;A.state.scopes.push(new hl.Scope(o,l,!0)),A.state.scopeDepth--}it.parseMethod=da;function jo(e){ma(!0);let t=A.state.tokens.length;A.state.scopes.push(new hl.Scope(e,t,!0)),A.state.scopeDepth--}it.parseArrowExpression=jo;function Cl(e,t=0){A.isTypeScriptEnabled?Fn.tsParseFunctionBodyAndFinish.call(void 0,e,t):A.isFlowEnabled?bn.flowParseFunctionBodyAndFinish.call(void 0,t):ma(!1,t)}it.parseFunctionBodyAndFinish=Cl;function ma(e,t=0){e&&!D.match.call(void 0,E.TokenType.braceL)?an():dn.parseBlock.call(void 0,!0,t)}it.parseFunctionBody=ma;function Il(e,t=!1){let n=!0;for(;!D.eat.call(void 0,e)&&!A.state.error;){if(n)n=!1;else if(Ne.expect.call(void 0,E.TokenType.comma),D.eat.call(void 0,e))break;Sl(t)}}function Sl(e){e&&D.match.call(void 0,E.TokenType.comma)||(D.match.call(void 0,E.TokenType.ellipsis)?(Mn.parseSpread.call(void 0),Ta()):D.match.call(void 0,E.TokenType.question)?D.next.call(void 0):an(!1,!0))}function wn(){D.next.call(void 0),A.state.tokens[A.state.tokens.length-1].type=E.TokenType.name}it.parseIdentifier=wn;function Ah(){Bo()}function Ph(){D.next.call(void 0),!D.match.call(void 0,E.TokenType.semi)&&!Ne.canInsertSemicolon.call(void 0)&&(D.eat.call(void 0,E.TokenType.star),an())}function Rh(){Ne.expectContextual.call(void 0,gn.ContextualKeyword._module),Ne.expect.call(void 0,E.TokenType.braceL),dn.parseBlockBody.call(void 0,E.TokenType.braceR)}});var No=ne(ot=>{"use strict";Object.defineProperty(ot,"__esModule",{value:!0});var k=_t(),ue=wt(),f=Se(),re=Yt(),Ye=Jn(),jn=Mo(),K=Nn();function Nh(e){return(e.type===f.TokenType.name||!!(e.type&f.TokenType.IS_KEYWORD))&&e.contextualKeyword!==ue.ContextualKeyword._from}function vn(e){let t=k.pushTypeContext.call(void 0,0);K.expect.call(void 0,e||f.TokenType.colon),Vt(),k.popTypeContext.call(void 0,t)}function El(){K.expect.call(void 0,f.TokenType.modulo),K.expectContextual.call(void 0,ue.ContextualKeyword._checks),k.eat.call(void 0,f.TokenType.parenL)&&(Ye.parseExpression.call(void 0),K.expect.call(void 0,f.TokenType.parenR))}function xa(){let e=k.pushTypeContext.call(void 0,0);K.expect.call(void 0,f.TokenType.colon),k.match.call(void 0,f.TokenType.modulo)?El():(Vt(),k.match.call(void 0,f.TokenType.modulo)&&El()),k.popTypeContext.call(void 0,e)}function Oh(){k.next.call(void 0),_a(!0)}function Lh(){k.next.call(void 0),Ye.parseIdentifier.call(void 0),k.match.call(void 0,f.TokenType.lessThan)&&xn(),K.expect.call(void 0,f.TokenType.parenL),va(),K.expect.call(void 0,f.TokenType.parenR),xa(),K.semicolon.call(void 0)}function ya(){k.match.call(void 0,f.TokenType._class)?Oh():k.match.call(void 0,f.TokenType._function)?Lh():k.match.call(void 0,f.TokenType._var)?Dh():K.eatContextual.call(void 0,ue.ContextualKeyword._module)?k.eat.call(void 0,f.TokenType.dot)?Fh():qh():K.isContextual.call(void 0,ue.ContextualKeyword._type)?jh():K.isContextual.call(void 0,ue.ContextualKeyword._opaque)?Bh():K.isContextual.call(void 0,ue.ContextualKeyword._interface)?Kh():k.match.call(void 0,f.TokenType._export)?Mh():K.unexpected.call(void 0)}function Dh(){k.next.call(void 0),Ll(),K.semicolon.call(void 0)}function qh(){for(k.match.call(void 0,f.TokenType.string)?Ye.parseExprAtom.call(void 0):Ye.parseIdentifier.call(void 0),K.expect.call(void 0,f.TokenType.braceL);!k.match.call(void 0,f.TokenType.braceR)&&!re.state.error;)k.match.call(void 0,f.TokenType._import)?(k.next.call(void 0),jn.parseImport.call(void 0)):K.unexpected.call(void 0);K.expect.call(void 0,f.TokenType.braceR)}function Mh(){K.expect.call(void 0,f.TokenType._export),k.eat.call(void 0,f.TokenType._default)?k.match.call(void 0,f.TokenType._function)||k.match.call(void 0,f.TokenType._class)?ya():(Vt(),K.semicolon.call(void 0)):k.match.call(void 0,f.TokenType._var)||k.match.call(void 0,f.TokenType._function)||k.match.call(void 0,f.TokenType._class)||K.isContextual.call(void 0,ue.ContextualKeyword._opaque)?ya():k.match.call(void 0,f.TokenType.star)||k.match.call(void 0,f.TokenType.braceL)||K.isContextual.call(void 0,ue.ContextualKeyword._interface)||K.isContextual.call(void 0,ue.ContextualKeyword._type)||K.isContextual.call(void 0,ue.ContextualKeyword._opaque)?jn.parseExport.call(void 0):K.unexpected.call(void 0)}function Fh(){K.expectContextual.call(void 0,ue.ContextualKeyword._exports),ho(),K.semicolon.call(void 0)}function jh(){k.next.call(void 0),wa()}function Bh(){k.next.call(void 0),ba(!0)}function Kh(){k.next.call(void 0),_a()}function _a(e=!1){if(Os(),k.match.call(void 0,f.TokenType.lessThan)&&xn(),k.eat.call(void 0,f.TokenType._extends))do Ps();while(!e&&k.eat.call(void 0,f.TokenType.comma));if(K.isContextual.call(void 0,ue.ContextualKeyword._mixins)){k.next.call(void 0);do Ps();while(k.eat.call(void 0,f.TokenType.comma))}if(K.isContextual.call(void 0,ue.ContextualKeyword._implements)){k.next.call(void 0);do Ps();while(k.eat.call(void 0,f.TokenType.comma))}Rs(e,!1,e)}function Ps(){Rl(!1),k.match.call(void 0,f.TokenType.lessThan)&&Gn()}function ga(){_a()}function Os(){Ye.parseIdentifier.call(void 0)}function wa(){Os(),k.match.call(void 0,f.TokenType.lessThan)&&xn(),vn(f.TokenType.eq),K.semicolon.call(void 0)}function ba(e){K.expectContextual.call(void 0,ue.ContextualKeyword._type),Os(),k.match.call(void 0,f.TokenType.lessThan)&&xn(),k.match.call(void 0,f.TokenType.colon)&&vn(f.TokenType.colon),e||vn(f.TokenType.eq),K.semicolon.call(void 0)}function $h(){Sa(),Ll(),k.eat.call(void 0,f.TokenType.eq)&&Vt()}function xn(){let e=k.pushTypeContext.call(void 0,0);k.match.call(void 0,f.TokenType.lessThan)||k.match.call(void 0,f.TokenType.typeParameterStart)?k.next.call(void 0):K.unexpected.call(void 0);do $h(),k.match.call(void 0,f.TokenType.greaterThan)||K.expect.call(void 0,f.TokenType.comma);while(!k.match.call(void 0,f.TokenType.greaterThan)&&!re.state.error);K.expect.call(void 0,f.TokenType.greaterThan),k.popTypeContext.call(void 0,e)}ot.flowParseTypeParameterDeclaration=xn;function Gn(){let e=k.pushTypeContext.call(void 0,0);for(K.expect.call(void 0,f.TokenType.lessThan);!k.match.call(void 0,f.TokenType.greaterThan)&&!re.state.error;)Vt(),k.match.call(void 0,f.TokenType.greaterThan)||K.expect.call(void 0,f.TokenType.comma);K.expect.call(void 0,f.TokenType.greaterThan),k.popTypeContext.call(void 0,e)}function Uh(){if(K.expectContextual.call(void 0,ue.ContextualKeyword._interface),k.eat.call(void 0,f.TokenType._extends))do Ps();while(k.eat.call(void 0,f.TokenType.comma));Rs(!1,!1,!1)}function Ca(){k.match.call(void 0,f.TokenType.num)||k.match.call(void 0,f.TokenType.string)?Ye.parseExprAtom.call(void 0):Ye.parseIdentifier.call(void 0)}function Wh(){k.lookaheadType.call(void 0)===f.TokenType.colon?(Ca(),vn()):Vt(),K.expect.call(void 0,f.TokenType.bracketR),vn()}function Hh(){Ca(),K.expect.call(void 0,f.TokenType.bracketR),K.expect.call(void 0,f.TokenType.bracketR),k.match.call(void 0,f.TokenType.lessThan)||k.match.call(void 0,f.TokenType.parenL)?Ia():(k.eat.call(void 0,f.TokenType.question),vn())}function Ia(){for(k.match.call(void 0,f.TokenType.lessThan)&&xn(),K.expect.call(void 0,f.TokenType.parenL);!k.match.call(void 0,f.TokenType.parenR)&&!k.match.call(void 0,f.TokenType.ellipsis)&&!re.state.error;)Ns(),k.match.call(void 0,f.TokenType.parenR)||K.expect.call(void 0,f.TokenType.comma);k.eat.call(void 0,f.TokenType.ellipsis)&&Ns(),K.expect.call(void 0,f.TokenType.parenR),vn()}function Vh(){Ia()}function Rs(e,t,n){let o;for(t&&k.match.call(void 0,f.TokenType.braceBarL)?(K.expect.call(void 0,f.TokenType.braceBarL),o=f.TokenType.braceBarR):(K.expect.call(void 0,f.TokenType.braceL),o=f.TokenType.braceR);!k.match.call(void 0,o)&&!re.state.error;){if(n&&K.isContextual.call(void 0,ue.ContextualKeyword._proto)){let r=k.lookaheadType.call(void 0);r!==f.TokenType.colon&&r!==f.TokenType.question&&(k.next.call(void 0),e=!1)}if(e&&K.isContextual.call(void 0,ue.ContextualKeyword._static)){let r=k.lookaheadType.call(void 0);r!==f.TokenType.colon&&r!==f.TokenType.question&&k.next.call(void 0)}if(Sa(),k.eat.call(void 0,f.TokenType.bracketL))k.eat.call(void 0,f.TokenType.bracketL)?Hh():Wh();else if(k.match.call(void 0,f.TokenType.parenL)||k.match.call(void 0,f.TokenType.lessThan))Vh();else{if(K.isContextual.call(void 0,ue.ContextualKeyword._get)||K.isContextual.call(void 0,ue.ContextualKeyword._set)){let r=k.lookaheadType.call(void 0);(r===f.TokenType.name||r===f.TokenType.string||r===f.TokenType.num)&&k.next.call(void 0)}Xh()}Jh()}K.expect.call(void 0,o)}function Xh(){if(k.match.call(void 0,f.TokenType.ellipsis)){if(K.expect.call(void 0,f.TokenType.ellipsis),k.eat.call(void 0,f.TokenType.comma)||k.eat.call(void 0,f.TokenType.semi),k.match.call(void 0,f.TokenType.braceR))return;Vt()}else Ca(),k.match.call(void 0,f.TokenType.lessThan)||k.match.call(void 0,f.TokenType.parenL)?Ia():(k.eat.call(void 0,f.TokenType.question),vn())}function Jh(){!k.eat.call(void 0,f.TokenType.semi)&&!k.eat.call(void 0,f.TokenType.comma)&&!k.match.call(void 0,f.TokenType.braceR)&&!k.match.call(void 0,f.TokenType.braceBarR)&&K.unexpected.call(void 0)}function Rl(e){for(e||Ye.parseIdentifier.call(void 0);k.eat.call(void 0,f.TokenType.dot);)Ye.parseIdentifier.call(void 0)}function Gh(){Rl(!0),k.match.call(void 0,f.TokenType.lessThan)&&Gn()}function zh(){K.expect.call(void 0,f.TokenType._typeof),Nl()}function Yh(){for(K.expect.call(void 0,f.TokenType.bracketL);re.state.pos<re.input.length&&!k.match.call(void 0,f.TokenType.bracketR)&&(Vt(),!k.match.call(void 0,f.TokenType.bracketR));)K.expect.call(void 0,f.TokenType.comma);K.expect.call(void 0,f.TokenType.bracketR)}function Ns(){let e=k.lookaheadType.call(void 0);e===f.TokenType.colon||e===f.TokenType.question?(Ye.parseIdentifier.call(void 0),k.eat.call(void 0,f.TokenType.question),vn()):Vt()}function va(){for(;!k.match.call(void 0,f.TokenType.parenR)&&!k.match.call(void 0,f.TokenType.ellipsis)&&!re.state.error;)Ns(),k.match.call(void 0,f.TokenType.parenR)||K.expect.call(void 0,f.TokenType.comma);k.eat.call(void 0,f.TokenType.ellipsis)&&Ns()}function Nl(){let e=!1,t=re.state.noAnonFunctionType;switch(re.state.type){case f.TokenType.name:{if(K.isContextual.call(void 0,ue.ContextualKeyword._interface)){Uh();return}Ye.parseIdentifier.call(void 0),Gh();return}case f.TokenType.braceL:Rs(!1,!1,!1);return;case f.TokenType.braceBarL:Rs(!1,!0,!1);return;case f.TokenType.bracketL:Yh();return;case f.TokenType.lessThan:xn(),K.expect.call(void 0,f.TokenType.parenL),va(),K.expect.call(void 0,f.TokenType.parenR),K.expect.call(void 0,f.TokenType.arrow),Vt();return;case f.TokenType.parenL:if(k.next.call(void 0),!k.match.call(void 0,f.TokenType.parenR)&&!k.match.call(void 0,f.TokenType.ellipsis))if(k.match.call(void 0,f.TokenType.name)){let n=k.lookaheadType.call(void 0);e=n!==f.TokenType.question&&n!==f.TokenType.colon}else e=!0;if(e)if(re.state.noAnonFunctionType=!1,Vt(),re.state.noAnonFunctionType=t,re.state.noAnonFunctionType||!(k.match.call(void 0,f.TokenType.comma)||k.match.call(void 0,f.TokenType.parenR)&&k.lookaheadType.call(void 0)===f.TokenType.arrow)){K.expect.call(void 0,f.TokenType.parenR);return}else k.eat.call(void 0,f.TokenType.comma);va(),K.expect.call(void 0,f.TokenType.parenR),K.expect.call(void 0,f.TokenType.arrow),Vt();return;case f.TokenType.minus:k.next.call(void 0),Ye.parseLiteral.call(void 0);return;case f.TokenType.string:case f.TokenType.num:case f.TokenType._true:case f.TokenType._false:case f.TokenType._null:case f.TokenType._this:case f.TokenType._void:case f.TokenType.star:k.next.call(void 0);return;default:if(re.state.type===f.TokenType._typeof){zh();return}else if(re.state.type&f.TokenType.IS_KEYWORD){k.next.call(void 0),re.state.tokens[re.state.tokens.length-1].type=f.TokenType.name;return}}K.unexpected.call(void 0)}function Qh(){for(Nl();!K.canInsertSemicolon.call(void 0)&&(k.match.call(void 0,f.TokenType.bracketL)||k.match.call(void 0,f.TokenType.questionDot));)k.eat.call(void 0,f.TokenType.questionDot),K.expect.call(void 0,f.TokenType.bracketL),k.eat.call(void 0,f.TokenType.bracketR)||(Vt(),K.expect.call(void 0,f.TokenType.bracketR))}function Ol(){k.eat.call(void 0,f.TokenType.question)?Ol():Qh()}function Al(){Ol(),!re.state.noAnonFunctionType&&k.eat.call(void 0,f.TokenType.arrow)&&Vt()}function Pl(){for(k.eat.call(void 0,f.TokenType.bitwiseAND),Al();k.eat.call(void 0,f.TokenType.bitwiseAND);)Al()}function Zh(){for(k.eat.call(void 0,f.TokenType.bitwiseOR),Pl();k.eat.call(void 0,f.TokenType.bitwiseOR);)Pl()}function Vt(){Zh()}function ho(){vn()}ot.flowParseTypeAnnotation=ho;function Ll(){Ye.parseIdentifier.call(void 0),k.match.call(void 0,f.TokenType.colon)&&ho()}function Sa(){(k.match.call(void 0,f.TokenType.plus)||k.match.call(void 0,f.TokenType.minus))&&(k.next.call(void 0),re.state.tokens[re.state.tokens.length-1].isType=!0)}ot.flowParseVariance=Sa;function eT(e){k.match.call(void 0,f.TokenType.colon)&&xa(),Ye.parseFunctionBody.call(void 0,!1,e)}ot.flowParseFunctionBodyAndFinish=eT;function tT(e,t,n){if(k.match.call(void 0,f.TokenType.questionDot)&&k.lookaheadType.call(void 0)===f.TokenType.lessThan){if(t){n.stop=!0;return}k.next.call(void 0),Gn(),K.expect.call(void 0,f.TokenType.parenL),Ye.parseCallExpressionArguments.call(void 0);return}else if(!t&&k.match.call(void 0,f.TokenType.lessThan)){let o=re.state.snapshot();if(Gn(),K.expect.call(void 0,f.TokenType.parenL),Ye.parseCallExpressionArguments.call(void 0),re.state.error)re.state.restoreFromSnapshot(o);else return}Ye.baseParseSubscript.call(void 0,e,t,n)}ot.flowParseSubscript=tT;function nT(){if(k.match.call(void 0,f.TokenType.lessThan)){let e=re.state.snapshot();Gn(),re.state.error&&re.state.restoreFromSnapshot(e)}}ot.flowStartParseNewArguments=nT;function oT(){if(k.match.call(void 0,f.TokenType.name)&&re.state.contextualKeyword===ue.ContextualKeyword._interface){let e=k.pushTypeContext.call(void 0,0);return k.next.call(void 0),ga(),k.popTypeContext.call(void 0,e),!0}else if(K.isContextual.call(void 0,ue.ContextualKeyword._enum))return Dl(),!0;return!1}ot.flowTryParseStatement=oT;function sT(){return K.isContextual.call(void 0,ue.ContextualKeyword._enum)?(Dl(),!0):!1}ot.flowTryParseExportDefaultExpression=sT;function rT(e){if(e===ue.ContextualKeyword._declare){if(k.match.call(void 0,f.TokenType._class)||k.match.call(void 0,f.TokenType.name)||k.match.call(void 0,f.TokenType._function)||k.match.call(void 0,f.TokenType._var)||k.match.call(void 0,f.TokenType._export)){let t=k.pushTypeContext.call(void 0,1);ya(),k.popTypeContext.call(void 0,t)}}else if(k.match.call(void 0,f.TokenType.name)){if(e===ue.ContextualKeyword._interface){let t=k.pushTypeContext.call(void 0,1);ga(),k.popTypeContext.call(void 0,t)}else if(e===ue.ContextualKeyword._type){let t=k.pushTypeContext.call(void 0,1);wa(),k.popTypeContext.call(void 0,t)}else if(e===ue.ContextualKeyword._opaque){let t=k.pushTypeContext.call(void 0,1);ba(!1),k.popTypeContext.call(void 0,t)}}K.semicolon.call(void 0)}ot.flowParseIdentifierStatement=rT;function aT(){return K.isContextual.call(void 0,ue.ContextualKeyword._type)||K.isContextual.call(void 0,ue.ContextualKeyword._interface)||K.isContextual.call(void 0,ue.ContextualKeyword._opaque)||K.isContextual.call(void 0,ue.ContextualKeyword._enum)}ot.flowShouldParseExportDeclaration=aT;function iT(){return k.match.call(void 0,f.TokenType.name)&&(re.state.contextualKeyword===ue.ContextualKeyword._type||re.state.contextualKeyword===ue.ContextualKeyword._interface||re.state.contextualKeyword===ue.ContextualKeyword._opaque||re.state.contextualKeyword===ue.ContextualKeyword._enum)}ot.flowShouldDisallowExportDefaultSpecifier=iT;function lT(){if(K.isContextual.call(void 0,ue.ContextualKeyword._type)){let e=k.pushTypeContext.call(void 0,1);k.next.call(void 0),k.match.call(void 0,f.TokenType.braceL)?(jn.parseExportSpecifiers.call(void 0),jn.parseExportFrom.call(void 0)):wa(),k.popTypeContext.call(void 0,e)}else if(K.isContextual.call(void 0,ue.ContextualKeyword._opaque)){let e=k.pushTypeContext.call(void 0,1);k.next.call(void 0),ba(!1),k.popTypeContext.call(void 0,e)}else if(K.isContextual.call(void 0,ue.ContextualKeyword._interface)){let e=k.pushTypeContext.call(void 0,1);k.next.call(void 0),ga(),k.popTypeContext.call(void 0,e)}else jn.parseStatement.call(void 0,!0)}ot.flowParseExportDeclaration=lT;function cT(){return k.match.call(void 0,f.TokenType.star)||K.isContextual.call(void 0,ue.ContextualKeyword._type)&&k.lookaheadType.call(void 0)===f.TokenType.star}ot.flowShouldParseExportStar=cT;function pT(){if(K.eatContextual.call(void 0,ue.ContextualKeyword._type)){let e=k.pushTypeContext.call(void 0,2);jn.baseParseExportStar.call(void 0),k.popTypeContext.call(void 0,e)}else jn.baseParseExportStar.call(void 0)}ot.flowParseExportStar=pT;function uT(e){if(e&&k.match.call(void 0,f.TokenType.lessThan)&&Gn(),K.isContextual.call(void 0,ue.ContextualKeyword._implements)){let t=k.pushTypeContext.call(void 0,0);k.next.call(void 0),re.state.tokens[re.state.tokens.length-1].type=f.TokenType._implements;do Os(),k.match.call(void 0,f.TokenType.lessThan)&&Gn();while(k.eat.call(void 0,f.TokenType.comma));k.popTypeContext.call(void 0,t)}}ot.flowAfterParseClassSuper=uT;function dT(){k.match.call(void 0,f.TokenType.lessThan)&&(xn(),k.match.call(void 0,f.TokenType.parenL)||K.unexpected.call(void 0))}ot.flowStartParseObjPropValue=dT;function fT(){let e=k.pushTypeContext.call(void 0,0);k.eat.call(void 0,f.TokenType.question),k.match.call(void 0,f.TokenType.colon)&&ho(),k.popTypeContext.call(void 0,e)}ot.flowParseAssignableListItemTypes=fT;function hT(){if(k.match.call(void 0,f.TokenType._typeof)||K.isContextual.call(void 0,ue.ContextualKeyword._type)){let e=k.lookaheadTypeAndKeyword.call(void 0);(Nh(e)||e.type===f.TokenType.braceL||e.type===f.TokenType.star)&&k.next.call(void 0)}}ot.flowStartParseImportSpecifiers=hT;function TT(){let e=re.state.contextualKeyword===ue.ContextualKeyword._type||re.state.type===f.TokenType._typeof;e?k.next.call(void 0):Ye.parseIdentifier.call(void 0),K.isContextual.call(void 0,ue.ContextualKeyword._as)&&!K.isLookaheadContextual.call(void 0,ue.ContextualKeyword._as)?(Ye.parseIdentifier.call(void 0),e&&!k.match.call(void 0,f.TokenType.name)&&!(re.state.type&f.TokenType.IS_KEYWORD)||Ye.parseIdentifier.call(void 0)):(e&&(k.match.call(void 0,f.TokenType.name)||re.state.type&f.TokenType.IS_KEYWORD)&&Ye.parseIdentifier.call(void 0),K.eatContextual.call(void 0,ue.ContextualKeyword._as)&&Ye.parseIdentifier.call(void 0))}ot.flowParseImportSpecifier=TT;function kT(){if(k.match.call(void 0,f.TokenType.lessThan)){let e=k.pushTypeContext.call(void 0,0);xn(),k.popTypeContext.call(void 0,e)}}ot.flowStartParseFunctionParams=kT;function mT(){k.match.call(void 0,f.TokenType.colon)&&ho()}ot.flowAfterParseVarHead=mT;function yT(){if(k.match.call(void 0,f.TokenType.colon)){let e=re.state.noAnonFunctionType;re.state.noAnonFunctionType=!0,ho(),re.state.noAnonFunctionType=e}}ot.flowStartParseAsyncArrowFromCallExpression=yT;function vT(e,t){if(k.match.call(void 0,f.TokenType.lessThan)){let n=re.state.snapshot(),o=Ye.baseParseMaybeAssign.call(void 0,e,t);if(re.state.error)re.state.restoreFromSnapshot(n),re.state.type=f.TokenType.typeParameterStart;else return o;let r=k.pushTypeContext.call(void 0,0);if(xn(),k.popTypeContext.call(void 0,r),o=Ye.baseParseMaybeAssign.call(void 0,e,t),o)return!0;K.unexpected.call(void 0)}return Ye.baseParseMaybeAssign.call(void 0,e,t)}ot.flowParseMaybeAssign=vT;function xT(){if(k.match.call(void 0,f.TokenType.colon)){let e=k.pushTypeContext.call(void 0,0),t=re.state.snapshot(),n=re.state.noAnonFunctionType;re.state.noAnonFunctionType=!0,xa(),re.state.noAnonFunctionType=n,K.canInsertSemicolon.call(void 0)&&K.unexpected.call(void 0),k.match.call(void 0,f.TokenType.arrow)||K.unexpected.call(void 0),re.state.error&&re.state.restoreFromSnapshot(t),k.popTypeContext.call(void 0,e)}return k.eat.call(void 0,f.TokenType.arrow)}ot.flowParseArrow=xT;function _T(e,t=!1){if(re.state.tokens[re.state.tokens.length-1].contextualKeyword===ue.ContextualKeyword._async&&k.match.call(void 0,f.TokenType.lessThan)){let n=re.state.snapshot();if(gT()&&!re.state.error)return;re.state.restoreFromSnapshot(n)}Ye.baseParseSubscripts.call(void 0,e,t)}ot.flowParseSubscripts=_T;function gT(){re.state.scopeDepth++;let e=re.state.tokens.length;return jn.parseFunctionParams.call(void 0),Ye.parseArrow.call(void 0)?(Ye.parseArrowExpression.call(void 0,e),!0):!1}function Dl(){K.expectContextual.call(void 0,ue.ContextualKeyword._enum),re.state.tokens[re.state.tokens.length-1].type=f.TokenType._enum,Ye.parseIdentifier.call(void 0),wT()}function wT(){K.eatContextual.call(void 0,ue.ContextualKeyword._of)&&k.next.call(void 0),K.expect.call(void 0,f.TokenType.braceL),bT(),K.expect.call(void 0,f.TokenType.braceR)}function bT(){for(;!k.match.call(void 0,f.TokenType.braceR)&&!re.state.error&&!k.eat.call(void 0,f.TokenType.ellipsis);)CT(),k.match.call(void 0,f.TokenType.braceR)||K.expect.call(void 0,f.TokenType.comma)}function CT(){Ye.parseIdentifier.call(void 0),k.eat.call(void 0,f.TokenType.eq)&&k.next.call(void 0)}});var Mo=ne(yt=>{"use strict";Object.defineProperty(yt,"__esModule",{value:!0});var IT=Oa(),Dt=No(),mt=ao(),P=_t(),he=wt(),Bn=es(),w=Se(),ql=zt(),_=Yt(),Be=Jn(),Kn=ks(),X=Nn();function ST(){if(Ra(w.TokenType.eof),_.state.scopes.push(new Bn.Scope(0,_.state.tokens.length,!0)),_.state.scopeDepth!==0)throw new Error(`Invalid scope depth at end of file: ${_.state.scopeDepth}`);return new IT.File(_.state.tokens,_.state.scopes)}yt.parseTopLevel=ST;function fn(e){_.isFlowEnabled&&Dt.flowTryParseStatement.call(void 0)||(P.match.call(void 0,w.TokenType.at)&&Pa(),ET(e))}yt.parseStatement=fn;function ET(e){if(_.isTypeScriptEnabled&&mt.tsTryParseStatementContent.call(void 0))return;let t=_.state.type;switch(t){case w.TokenType._break:case w.TokenType._continue:PT();return;case w.TokenType._debugger:RT();return;case w.TokenType._do:NT();return;case w.TokenType._for:OT();return;case w.TokenType._function:if(P.lookaheadType.call(void 0)===w.TokenType.dot)break;e||X.unexpected.call(void 0),qT();return;case w.TokenType._class:e||X.unexpected.call(void 0),Ds(!0);return;case w.TokenType._if:MT();return;case w.TokenType._return:FT();return;case w.TokenType._switch:jT();return;case w.TokenType._throw:BT();return;case w.TokenType._try:$T();return;case w.TokenType._let:case w.TokenType._const:e||X.unexpected.call(void 0);case w.TokenType._var:Ls(t!==w.TokenType._var);return;case w.TokenType._while:UT();return;case w.TokenType.braceL:ko();return;case w.TokenType.semi:WT();return;case w.TokenType._export:case w.TokenType._import:{let r=P.lookaheadType.call(void 0);if(r===w.TokenType.parenL||r===w.TokenType.dot)break;P.next.call(void 0),t===w.TokenType._import?Gl():Vl();return}case w.TokenType.name:if(_.state.contextualKeyword===he.ContextualKeyword._async){let r=_.state.start,l=_.state.snapshot();if(P.next.call(void 0),P.match.call(void 0,w.TokenType._function)&&!X.canInsertSemicolon.call(void 0)){X.expect.call(void 0,w.TokenType._function),Uo(r,!0);return}else _.state.restoreFromSnapshot(l)}else if(_.state.contextualKeyword===he.ContextualKeyword._using&&!X.hasFollowingLineBreak.call(void 0)&&P.lookaheadType.call(void 0)===w.TokenType.name){Ls(!0);return}else if(jl()){X.expectContextual.call(void 0,he.ContextualKeyword._await),Ls(!0);return}default:break}let n=_.state.tokens.length;Be.parseExpression.call(void 0);let o=null;if(_.state.tokens.length===n+1){let r=_.state.tokens[_.state.tokens.length-1];r.type===w.TokenType.name&&(o=r.contextualKeyword)}if(o==null){X.semicolon.call(void 0);return}P.eat.call(void 0,w.TokenType.colon)?HT():VT(o)}function jl(){if(!X.isContextual.call(void 0,he.ContextualKeyword._await))return!1;let e=_.state.snapshot();return P.next.call(void 0),!X.isContextual.call(void 0,he.ContextualKeyword._using)||X.hasPrecedingLineBreak.call(void 0)||(P.next.call(void 0),!P.match.call(void 0,w.TokenType.name)||X.hasPrecedingLineBreak.call(void 0))?(_.state.restoreFromSnapshot(e),!1):(_.state.restoreFromSnapshot(e),!0)}function Pa(){for(;P.match.call(void 0,w.TokenType.at);)Bl()}yt.parseDecorators=Pa;function Bl(){if(P.next.call(void 0),P.eat.call(void 0,w.TokenType.parenL))Be.parseExpression.call(void 0),X.expect.call(void 0,w.TokenType.parenR);else{for(Be.parseIdentifier.call(void 0);P.eat.call(void 0,w.TokenType.dot);)Be.parseIdentifier.call(void 0);AT()}}function AT(){_.isTypeScriptEnabled?mt.tsParseMaybeDecoratorArguments.call(void 0):Kl()}function Kl(){P.eat.call(void 0,w.TokenType.parenL)&&Be.parseCallExpressionArguments.call(void 0)}yt.baseParseMaybeDecoratorArguments=Kl;function PT(){P.next.call(void 0),X.isLineTerminator.call(void 0)||(Be.parseIdentifier.call(void 0),X.semicolon.call(void 0))}function RT(){P.next.call(void 0),X.semicolon.call(void 0)}function NT(){P.next.call(void 0),fn(!1),X.expect.call(void 0,w.TokenType._while),Be.parseParenExpression.call(void 0),P.eat.call(void 0,w.TokenType.semi)}function OT(){_.state.scopeDepth++;let e=_.state.tokens.length;DT();let t=_.state.tokens.length;_.state.scopes.push(new Bn.Scope(e,t,!1)),_.state.scopeDepth--}function LT(){return!(!X.isContextual.call(void 0,he.ContextualKeyword._using)||X.isLookaheadContextual.call(void 0,he.ContextualKeyword._of))}function DT(){P.next.call(void 0);let e=!1;if(X.isContextual.call(void 0,he.ContextualKeyword._await)&&(e=!0,P.next.call(void 0)),X.expect.call(void 0,w.TokenType.parenL),P.match.call(void 0,w.TokenType.semi)){e&&X.unexpected.call(void 0),Ea();return}let t=jl();if(t||P.match.call(void 0,w.TokenType._var)||P.match.call(void 0,w.TokenType._let)||P.match.call(void 0,w.TokenType._const)||LT()){if(t&&X.expectContextual.call(void 0,he.ContextualKeyword._await),P.next.call(void 0),$l(!0,_.state.type!==w.TokenType._var),P.match.call(void 0,w.TokenType._in)||X.isContextual.call(void 0,he.ContextualKeyword._of)){Ml(e);return}Ea();return}if(Be.parseExpression.call(void 0,!0),P.match.call(void 0,w.TokenType._in)||X.isContextual.call(void 0,he.ContextualKeyword._of)){Ml(e);return}e&&X.unexpected.call(void 0),Ea()}function qT(){let e=_.state.start;P.next.call(void 0),Uo(e,!0)}function MT(){P.next.call(void 0),Be.parseParenExpression.call(void 0),fn(!1),P.eat.call(void 0,w.TokenType._else)&&fn(!1)}function FT(){P.next.call(void 0),X.isLineTerminator.call(void 0)||(Be.parseExpression.call(void 0),X.semicolon.call(void 0))}function jT(){P.next.call(void 0),Be.parseParenExpression.call(void 0),_.state.scopeDepth++;let e=_.state.tokens.length;for(X.expect.call(void 0,w.TokenType.braceL);!P.match.call(void 0,w.TokenType.braceR)&&!_.state.error;)if(P.match.call(void 0,w.TokenType._case)||P.match.call(void 0,w.TokenType._default)){let n=P.match.call(void 0,w.TokenType._case);P.next.call(void 0),n&&Be.parseExpression.call(void 0),X.expect.call(void 0,w.TokenType.colon)}else fn(!0);P.next.call(void 0);let t=_.state.tokens.length;_.state.scopes.push(new Bn.Scope(e,t,!1)),_.state.scopeDepth--}function BT(){P.next.call(void 0),Be.parseExpression.call(void 0),X.semicolon.call(void 0)}function KT(){Kn.parseBindingAtom.call(void 0,!0),_.isTypeScriptEnabled&&mt.tsTryParseTypeAnnotation.call(void 0)}function $T(){if(P.next.call(void 0),ko(),P.match.call(void 0,w.TokenType._catch)){P.next.call(void 0);let e=null;if(P.match.call(void 0,w.TokenType.parenL)&&(_.state.scopeDepth++,e=_.state.tokens.length,X.expect.call(void 0,w.TokenType.parenL),KT(),X.expect.call(void 0,w.TokenType.parenR)),ko(),e!=null){let t=_.state.tokens.length;_.state.scopes.push(new Bn.Scope(e,t,!1)),_.state.scopeDepth--}}P.eat.call(void 0,w.TokenType._finally)&&ko()}function Ls(e){P.next.call(void 0),$l(!1,e),X.semicolon.call(void 0)}yt.parseVarStatement=Ls;function UT(){P.next.call(void 0),Be.parseParenExpression.call(void 0),fn(!1)}function WT(){P.next.call(void 0)}function HT(){fn(!0)}function VT(e){_.isTypeScriptEnabled?mt.tsParseIdentifierStatement.call(void 0,e):_.isFlowEnabled?Dt.flowParseIdentifierStatement.call(void 0,e):X.semicolon.call(void 0)}function ko(e=!1,t=0){let n=_.state.tokens.length;_.state.scopeDepth++,X.expect.call(void 0,w.TokenType.braceL),t&&(_.state.tokens[_.state.tokens.length-1].contextId=t),Ra(w.TokenType.braceR),t&&(_.state.tokens[_.state.tokens.length-1].contextId=t);let o=_.state.tokens.length;_.state.scopes.push(new Bn.Scope(n,o,e)),_.state.scopeDepth--}yt.parseBlock=ko;function Ra(e){for(;!P.eat.call(void 0,e)&&!_.state.error;)fn(!0)}yt.parseBlockBody=Ra;function Ea(){X.expect.call(void 0,w.TokenType.semi),P.match.call(void 0,w.TokenType.semi)||Be.parseExpression.call(void 0),X.expect.call(void 0,w.TokenType.semi),P.match.call(void 0,w.TokenType.parenR)||Be.parseExpression.call(void 0),X.expect.call(void 0,w.TokenType.parenR),fn(!1)}function Ml(e){e?X.eatContextual.call(void 0,he.ContextualKeyword._of):P.next.call(void 0),Be.parseExpression.call(void 0),X.expect.call(void 0,w.TokenType.parenR),fn(!1)}function $l(e,t){for(;;){if(XT(t),P.eat.call(void 0,w.TokenType.eq)){let n=_.state.tokens.length-1;Be.parseMaybeAssign.call(void 0,e),_.state.tokens[n].rhsEndIndex=_.state.tokens.length}if(!P.eat.call(void 0,w.TokenType.comma))break}}function XT(e){Kn.parseBindingAtom.call(void 0,e),_.isTypeScriptEnabled?mt.tsAfterParseVarHead.call(void 0):_.isFlowEnabled&&Dt.flowAfterParseVarHead.call(void 0)}function Uo(e,t,n=!1){P.match.call(void 0,w.TokenType.star)&&P.next.call(void 0),t&&!n&&!P.match.call(void 0,w.TokenType.name)&&!P.match.call(void 0,w.TokenType._yield)&&X.unexpected.call(void 0);let o=null;P.match.call(void 0,w.TokenType.name)&&(t||(o=_.state.tokens.length,_.state.scopeDepth++),Kn.parseBindingIdentifier.call(void 0,!1));let r=_.state.tokens.length;_.state.scopeDepth++,Ul(),Be.parseFunctionBodyAndFinish.call(void 0,e);let l=_.state.tokens.length;_.state.scopes.push(new Bn.Scope(r,l,!0)),_.state.scopeDepth--,o!==null&&(_.state.scopes.push(new Bn.Scope(o,l,!0)),_.state.scopeDepth--)}yt.parseFunction=Uo;function Ul(e=!1,t=0){_.isTypeScriptEnabled?mt.tsStartParseFunctionParams.call(void 0):_.isFlowEnabled&&Dt.flowStartParseFunctionParams.call(void 0),X.expect.call(void 0,w.TokenType.parenL),t&&(_.state.tokens[_.state.tokens.length-1].contextId=t),Kn.parseBindingList.call(void 0,w.TokenType.parenR,!1,!1,e,t),t&&(_.state.tokens[_.state.tokens.length-1].contextId=t)}yt.parseFunctionParams=Ul;function Ds(e,t=!1){let n=_.getNextContextId.call(void 0);P.next.call(void 0),_.state.tokens[_.state.tokens.length-1].contextId=n,_.state.tokens[_.state.tokens.length-1].isExpression=!e;let o=null;e||(o=_.state.tokens.length,_.state.scopeDepth++),YT(e,t),QT();let r=_.state.tokens.length;if(JT(n),!_.state.error&&(_.state.tokens[r].contextId=n,_.state.tokens[_.state.tokens.length-1].contextId=n,o!==null)){let l=_.state.tokens.length;_.state.scopes.push(new Bn.Scope(o,l,!1)),_.state.scopeDepth--}}yt.parseClass=Ds;function Wl(){return P.match.call(void 0,w.TokenType.eq)||P.match.call(void 0,w.TokenType.semi)||P.match.call(void 0,w.TokenType.braceR)||P.match.call(void 0,w.TokenType.bang)||P.match.call(void 0,w.TokenType.colon)}function Hl(){return P.match.call(void 0,w.TokenType.parenL)||P.match.call(void 0,w.TokenType.lessThan)}function JT(e){for(X.expect.call(void 0,w.TokenType.braceL);!P.eat.call(void 0,w.TokenType.braceR)&&!_.state.error;){if(P.eat.call(void 0,w.TokenType.semi))continue;if(P.match.call(void 0,w.TokenType.at)){Bl();continue}let t=_.state.start;GT(t,e)}}function GT(e,t){_.isTypeScriptEnabled&&mt.tsParseModifiers.call(void 0,[he.ContextualKeyword._declare,he.ContextualKeyword._public,he.ContextualKeyword._protected,he.ContextualKeyword._private,he.ContextualKeyword._override]);let n=!1;if(P.match.call(void 0,w.TokenType.name)&&_.state.contextualKeyword===he.ContextualKeyword._static){if(Be.parseIdentifier.call(void 0),Hl()){Ko(e,!1);return}else if(Wl()){$o();return}if(_.state.tokens[_.state.tokens.length-1].type=w.TokenType._static,n=!0,P.match.call(void 0,w.TokenType.braceL)){_.state.tokens[_.state.tokens.length-1].contextId=t,ko();return}}zT(e,n,t)}function zT(e,t,n){if(_.isTypeScriptEnabled&&mt.tsTryParseClassMemberWithIsStatic.call(void 0,t))return;if(P.eat.call(void 0,w.TokenType.star)){To(n),Ko(e,!1);return}To(n);let o=!1,r=_.state.tokens[_.state.tokens.length-1];r.contextualKeyword===he.ContextualKeyword._constructor&&(o=!0),Aa(),Hl()?Ko(e,o):Wl()?$o():r.contextualKeyword===he.ContextualKeyword._async&&!X.isLineTerminator.call(void 0)?(_.state.tokens[_.state.tokens.length-1].type=w.TokenType._async,P.match.call(void 0,w.TokenType.star)&&P.next.call(void 0),To(n),Aa(),Ko(e,!1)):(r.contextualKeyword===he.ContextualKeyword._get||r.contextualKeyword===he.ContextualKeyword._set)&&!(X.isLineTerminator.call(void 0)&&P.match.call(void 0,w.TokenType.star))?(r.contextualKeyword===he.ContextualKeyword._get?_.state.tokens[_.state.tokens.length-1].type=w.TokenType._get:_.state.tokens[_.state.tokens.length-1].type=w.TokenType._set,To(n),Ko(e,!1)):r.contextualKeyword===he.ContextualKeyword._accessor&&!X.isLineTerminator.call(void 0)?(To(n),$o()):X.isLineTerminator.call(void 0)?$o():X.unexpected.call(void 0)}function Ko(e,t){_.isTypeScriptEnabled?mt.tsTryParseTypeParameters.call(void 0):_.isFlowEnabled&&P.match.call(void 0,w.TokenType.lessThan)&&Dt.flowParseTypeParameterDeclaration.call(void 0),Be.parseMethod.call(void 0,e,t)}function To(e){Be.parsePropertyName.call(void 0,e)}yt.parseClassPropertyName=To;function Aa(){if(_.isTypeScriptEnabled){let e=P.pushTypeContext.call(void 0,0);P.eat.call(void 0,w.TokenType.question),P.popTypeContext.call(void 0,e)}}yt.parsePostMemberNameModifiers=Aa;function $o(){if(_.isTypeScriptEnabled?(P.eatTypeToken.call(void 0,w.TokenType.bang),mt.tsTryParseTypeAnnotation.call(void 0)):_.isFlowEnabled&&P.match.call(void 0,w.TokenType.colon)&&Dt.flowParseTypeAnnotation.call(void 0),P.match.call(void 0,w.TokenType.eq)){let e=_.state.tokens.length;P.next.call(void 0),Be.parseMaybeAssign.call(void 0),_.state.tokens[e].rhsEndIndex=_.state.tokens.length}X.semicolon.call(void 0)}yt.parseClassProperty=$o;function YT(e,t=!1){_.isTypeScriptEnabled&&(!e||t)&&X.isContextual.call(void 0,he.ContextualKeyword._implements)||(P.match.call(void 0,w.TokenType.name)&&Kn.parseBindingIdentifier.call(void 0,!0),_.isTypeScriptEnabled?mt.tsTryParseTypeParameters.call(void 0):_.isFlowEnabled&&P.match.call(void 0,w.TokenType.lessThan)&&Dt.flowParseTypeParameterDeclaration.call(void 0))}function QT(){let e=!1;P.eat.call(void 0,w.TokenType._extends)?(Be.parseExprSubscripts.call(void 0),e=!0):e=!1,_.isTypeScriptEnabled?mt.tsAfterParseClassSuper.call(void 0,e):_.isFlowEnabled&&Dt.flowAfterParseClassSuper.call(void 0,e)}function Vl(){let e=_.state.tokens.length-1;_.isTypeScriptEnabled&&mt.tsTryParseExport.call(void 0)||(nk()?ok():tk()?(Be.parseIdentifier.call(void 0),P.match.call(void 0,w.TokenType.comma)&&P.lookaheadType.call(void 0)===w.TokenType.star?(X.expect.call(void 0,w.TokenType.comma),X.expect.call(void 0,w.TokenType.star),X.expectContextual.call(void 0,he.ContextualKeyword._as),Be.parseIdentifier.call(void 0)):Xl(),Wo()):P.eat.call(void 0,w.TokenType._default)?ZT():rk()?ek():(Na(),Wo()),_.state.tokens[e].rhsEndIndex=_.state.tokens.length)}yt.parseExport=Vl;function ZT(){if(_.isTypeScriptEnabled&&mt.tsTryParseExportDefaultExpression.call(void 0)||_.isFlowEnabled&&Dt.flowTryParseExportDefaultExpression.call(void 0))return;let e=_.state.start;P.eat.call(void 0,w.TokenType._function)?Uo(e,!0,!0):X.isContextual.call(void 0,he.ContextualKeyword._async)&&P.lookaheadType.call(void 0)===w.TokenType._function?(X.eatContextual.call(void 0,he.ContextualKeyword._async),P.eat.call(void 0,w.TokenType._function),Uo(e,!0,!0)):P.match.call(void 0,w.TokenType._class)?Ds(!0,!0):P.match.call(void 0,w.TokenType.at)?(Pa(),Ds(!0,!0)):(Be.parseMaybeAssign.call(void 0),X.semicolon.call(void 0))}function ek(){_.isTypeScriptEnabled?mt.tsParseExportDeclaration.call(void 0):_.isFlowEnabled?Dt.flowParseExportDeclaration.call(void 0):fn(!0)}function tk(){if(_.isTypeScriptEnabled&&mt.tsIsDeclarationStart.call(void 0))return!1;if(_.isFlowEnabled&&Dt.flowShouldDisallowExportDefaultSpecifier.call(void 0))return!1;if(P.match.call(void 0,w.TokenType.name))return _.state.contextualKeyword!==he.ContextualKeyword._async;if(!P.match.call(void 0,w.TokenType._default))return!1;let e=P.nextTokenStart.call(void 0),t=P.lookaheadTypeAndKeyword.call(void 0),n=t.type===w.TokenType.name&&t.contextualKeyword===he.ContextualKeyword._from;if(t.type===w.TokenType.comma)return!0;if(n){let o=_.input.charCodeAt(P.nextTokenStartSince.call(void 0,e+4));return o===ql.charCodes.quotationMark||o===ql.charCodes.apostrophe}return!1}function Xl(){P.eat.call(void 0,w.TokenType.comma)&&Na()}function Wo(){X.eatContextual.call(void 0,he.ContextualKeyword._from)&&(Be.parseExprAtom.call(void 0),zl()),X.semicolon.call(void 0)}yt.parseExportFrom=Wo;function nk(){return _.isFlowEnabled?Dt.flowShouldParseExportStar.call(void 0):P.match.call(void 0,w.TokenType.star)}function ok(){_.isFlowEnabled?Dt.flowParseExportStar.call(void 0):Jl()}function Jl(){X.expect.call(void 0,w.TokenType.star),X.isContextual.call(void 0,he.ContextualKeyword._as)?sk():Wo()}yt.baseParseExportStar=Jl;function sk(){P.next.call(void 0),_.state.tokens[_.state.tokens.length-1].type=w.TokenType._as,Be.parseIdentifier.call(void 0),Xl(),Wo()}function rk(){return _.isTypeScriptEnabled&&mt.tsIsDeclarationStart.call(void 0)||_.isFlowEnabled&&Dt.flowShouldParseExportDeclaration.call(void 0)||_.state.type===w.TokenType._var||_.state.type===w.TokenType._const||_.state.type===w.TokenType._let||_.state.type===w.TokenType._function||_.state.type===w.TokenType._class||X.isContextual.call(void 0,he.ContextualKeyword._async)||P.match.call(void 0,w.TokenType.at)}function Na(){let e=!0;for(X.expect.call(void 0,w.TokenType.braceL);!P.eat.call(void 0,w.TokenType.braceR)&&!_.state.error;){if(e)e=!1;else if(X.expect.call(void 0,w.TokenType.comma),P.eat.call(void 0,w.TokenType.braceR))break;ak()}}yt.parseExportSpecifiers=Na;function ak(){if(_.isTypeScriptEnabled){mt.tsParseExportSpecifier.call(void 0);return}Be.parseIdentifier.call(void 0),_.state.tokens[_.state.tokens.length-1].identifierRole=P.IdentifierRole.ExportAccess,X.eatContextual.call(void 0,he.ContextualKeyword._as)&&Be.parseIdentifier.call(void 0)}function ik(){let e=_.state.snapshot();return X.expectContextual.call(void 0,he.ContextualKeyword._module),X.eatContextual.call(void 0,he.ContextualKeyword._from)?X.isContextual.call(void 0,he.ContextualKeyword._from)?(_.state.restoreFromSnapshot(e),!0):(_.state.restoreFromSnapshot(e),!1):P.match.call(void 0,w.TokenType.comma)?(_.state.restoreFromSnapshot(e),!1):(_.state.restoreFromSnapshot(e),!0)}function lk(){X.isContextual.call(void 0,he.ContextualKeyword._module)&&ik()&&P.next.call(void 0)}function Gl(){if(_.isTypeScriptEnabled&&P.match.call(void 0,w.TokenType.name)&&P.lookaheadType.call(void 0)===w.TokenType.eq){mt.tsParseImportEqualsDeclaration.call(void 0);return}if(_.isTypeScriptEnabled&&X.isContextual.call(void 0,he.ContextualKeyword._type)){let e=P.lookaheadTypeAndKeyword.call(void 0);if(e.type===w.TokenType.name&&e.contextualKeyword!==he.ContextualKeyword._from){if(X.expectContextual.call(void 0,he.ContextualKeyword._type),P.lookaheadType.call(void 0)===w.TokenType.eq){mt.tsParseImportEqualsDeclaration.call(void 0);return}}else(e.type===w.TokenType.star||e.type===w.TokenType.braceL)&&X.expectContextual.call(void 0,he.ContextualKeyword._type)}P.match.call(void 0,w.TokenType.string)||(lk(),pk(),X.expectContextual.call(void 0,he.ContextualKeyword._from)),Be.parseExprAtom.call(void 0),zl(),X.semicolon.call(void 0)}yt.parseImport=Gl;function ck(){return P.match.call(void 0,w.TokenType.name)}function Fl(){Kn.parseImportedIdentifier.call(void 0)}function pk(){_.isFlowEnabled&&Dt.flowStartParseImportSpecifiers.call(void 0);let e=!0;if(!(ck()&&(Fl(),!P.eat.call(void 0,w.TokenType.comma)))){if(P.match.call(void 0,w.TokenType.star)){P.next.call(void 0),X.expectContextual.call(void 0,he.ContextualKeyword._as),Fl();return}for(X.expect.call(void 0,w.TokenType.braceL);!P.eat.call(void 0,w.TokenType.braceR)&&!_.state.error;){if(e)e=!1;else if(P.eat.call(void 0,w.TokenType.colon)&&X.unexpected.call(void 0,"ES2015 named imports do not destructure. Use another statement for destructuring after the import."),X.expect.call(void 0,w.TokenType.comma),P.eat.call(void 0,w.TokenType.braceR))break;uk()}}}function uk(){if(_.isTypeScriptEnabled){mt.tsParseImportSpecifier.call(void 0);return}if(_.isFlowEnabled){Dt.flowParseImportSpecifier.call(void 0);return}Kn.parseImportedIdentifier.call(void 0),X.isContextual.call(void 0,he.ContextualKeyword._as)&&(_.state.tokens[_.state.tokens.length-1].identifierRole=P.IdentifierRole.ImportAccess,P.next.call(void 0),Kn.parseImportedIdentifier.call(void 0))}function zl(){(P.match.call(void 0,w.TokenType._with)||X.isContextual.call(void 0,he.ContextualKeyword._assert)&&!X.hasPrecedingLineBreak.call(void 0))&&(P.next.call(void 0),Be.parseObj.call(void 0,!1,!1))}});var Zl=ne(Da=>{"use strict";Object.defineProperty(Da,"__esModule",{value:!0});var Yl=_t(),Ql=zt(),La=Yt(),dk=Mo();function fk(){return La.state.pos===0&&La.input.charCodeAt(0)===Ql.charCodes.numberSign&&La.input.charCodeAt(1)===Ql.charCodes.exclamationMark&&Yl.skipLineComment.call(void 0,2),Yl.nextToken.call(void 0),dk.parseTopLevel.call(void 0)}Da.parseFile=fk});var Oa=ne(Ms=>{"use strict";Object.defineProperty(Ms,"__esModule",{value:!0});var qs=Yt(),hk=Zl(),qa=class{constructor(t,n){this.tokens=t,this.scopes=n}};Ms.File=qa;function Tk(e,t,n,o){if(o&&n)throw new Error("Cannot combine flow and typescript plugins.");qs.initParser.call(void 0,e,t,n,o);let r=hk.parseFile.call(void 0);if(qs.state.error)throw qs.augmentError.call(void 0,qs.state.error);return r}Ms.parse=Tk});var ec=ne(Ma=>{"use strict";Object.defineProperty(Ma,"__esModule",{value:!0});var kk=wt();function mk(e){let t=e.currentIndex(),n=0,o=e.currentToken();do{let r=e.tokens[t];if(r.isOptionalChainStart&&n++,r.isOptionalChainEnd&&n--,n+=r.numNullishCoalesceStarts,n-=r.numNullishCoalesceEnds,r.contextualKeyword===kk.ContextualKeyword._await&&r.identifierRole==null&&r.scopeDepth===o.scopeDepth)return!0;t+=1}while(n>0&&t<e.tokens.length);return!1}Ma.default=mk});var tc=ne(ja=>{"use strict";Object.defineProperty(ja,"__esModule",{value:!0});function yk(e){return e&&e.__esModule?e:{default:e}}var Fs=Se(),vk=ec(),xk=yk(vk),Fa=class e{__init(){this.resultCode=""}__init2(){this.resultMappings=new Array(this.tokens.length)}__init3(){this.tokenIndex=0}constructor(t,n,o,r,l){this.code=t,this.tokens=n,this.isFlowEnabled=o,this.disableESTransforms=r,this.helperManager=l,e.prototype.__init.call(this),e.prototype.__init2.call(this),e.prototype.__init3.call(this)}snapshot(){return{resultCode:this.resultCode,tokenIndex:this.tokenIndex}}restoreToSnapshot(t){this.resultCode=t.resultCode,this.tokenIndex=t.tokenIndex}dangerouslyGetAndRemoveCodeSinceSnapshot(t){let n=this.resultCode.slice(t.resultCode.length);return this.resultCode=t.resultCode,n}reset(){this.resultCode="",this.resultMappings=new Array(this.tokens.length),this.tokenIndex=0}matchesContextualAtIndex(t,n){return this.matches1AtIndex(t,Fs.TokenType.name)&&this.tokens[t].contextualKeyword===n}identifierNameAtIndex(t){return this.identifierNameForToken(this.tokens[t])}identifierNameAtRelativeIndex(t){return this.identifierNameForToken(this.tokenAtRelativeIndex(t))}identifierName(){return this.identifierNameForToken(this.currentToken())}identifierNameForToken(t){return this.code.slice(t.start,t.end)}rawCodeForToken(t){return this.code.slice(t.start,t.end)}stringValueAtIndex(t){return this.stringValueForToken(this.tokens[t])}stringValue(){return this.stringValueForToken(this.currentToken())}stringValueForToken(t){return this.code.slice(t.start+1,t.end-1)}matches1AtIndex(t,n){return this.tokens[t].type===n}matches2AtIndex(t,n,o){return this.tokens[t].type===n&&this.tokens[t+1].type===o}matches3AtIndex(t,n,o,r){return this.tokens[t].type===n&&this.tokens[t+1].type===o&&this.tokens[t+2].type===r}matches1(t){return this.tokens[this.tokenIndex].type===t}matches2(t,n){return this.tokens[this.tokenIndex].type===t&&this.tokens[this.tokenIndex+1].type===n}matches3(t,n,o){return this.tokens[this.tokenIndex].type===t&&this.tokens[this.tokenIndex+1].type===n&&this.tokens[this.tokenIndex+2].type===o}matches4(t,n,o,r){return this.tokens[this.tokenIndex].type===t&&this.tokens[this.tokenIndex+1].type===n&&this.tokens[this.tokenIndex+2].type===o&&this.tokens[this.tokenIndex+3].type===r}matches5(t,n,o,r,l){return this.tokens[this.tokenIndex].type===t&&this.tokens[this.tokenIndex+1].type===n&&this.tokens[this.tokenIndex+2].type===o&&this.tokens[this.tokenIndex+3].type===r&&this.tokens[this.tokenIndex+4].type===l}matchesContextual(t){return this.matchesContextualAtIndex(this.tokenIndex,t)}matchesContextIdAndLabel(t,n){return this.matches1(t)&&this.currentToken().contextId===n}previousWhitespaceAndComments(){let t=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&&(t=t.replace(/@flow/g,"")),t}replaceToken(t){this.resultCode+=this.previousWhitespaceAndComments(),this.appendTokenPrefix(),this.resultMappings[this.tokenIndex]=this.resultCode.length,this.resultCode+=t,this.appendTokenSuffix(),this.tokenIndex++}replaceTokenTrimmingLeftWhitespace(t){this.resultCode+=this.previousWhitespaceAndComments().replace(/[^\r\n]/g,""),this.appendTokenPrefix(),this.resultMappings[this.tokenIndex]=this.resultCode.length,this.resultCode+=t,this.appendTokenSuffix(),this.tokenIndex++}removeInitialToken(){this.replaceToken("")}removeToken(){this.replaceTokenTrimmingLeftWhitespace("")}removeBalancedCode(){let t=0;for(;!this.isAtEnd();){if(this.matches1(Fs.TokenType.braceL))t++;else if(this.matches1(Fs.TokenType.braceR)){if(t===0)return;t--}this.removeToken()}}copyExpectedToken(t){if(this.tokens[this.tokenIndex].type!==t)throw new Error(`Expected token ${t}`);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(t){this.resultCode+=this.previousWhitespaceAndComments(),this.appendTokenPrefix(),this.resultCode+=t,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(){let t=this.currentToken();if((t.numNullishCoalesceStarts||t.isOptionalChainStart)&&(t.isAsyncOperation=xk.default.call(void 0,this)),!this.disableESTransforms){if(t.numNullishCoalesceStarts)for(let n=0;n<t.numNullishCoalesceStarts;n++)t.isAsyncOperation?(this.resultCode+="await ",this.resultCode+=this.helperManager.getHelperName("asyncNullishCoalesce")):this.resultCode+=this.helperManager.getHelperName("nullishCoalesce"),this.resultCode+="(";t.isOptionalChainStart&&(t.isAsyncOperation&&(this.resultCode+="await "),this.tokenIndex>0&&this.tokenAtRelativeIndex(-1).type===Fs.TokenType._delete?t.isAsyncOperation?this.resultCode+=this.helperManager.getHelperName("asyncOptionalChainDelete"):this.resultCode+=this.helperManager.getHelperName("optionalChainDelete"):t.isAsyncOperation?this.resultCode+=this.helperManager.getHelperName("asyncOptionalChain"):this.resultCode+=this.helperManager.getHelperName("optionalChain"),this.resultCode+="([")}}appendTokenSuffix(){let t=this.currentToken();if(t.isOptionalChainEnd&&!this.disableESTransforms&&(this.resultCode+="])"),t.numNullishCoalesceEnds&&!this.disableESTransforms)for(let n=0;n<t.numNullishCoalesceEnds;n++)this.resultCode+="))"}appendCode(t){this.resultCode+=t}currentToken(){return this.tokens[this.tokenIndex]}currentTokenCode(){let t=this.currentToken();return this.code.slice(t.start,t.end)}tokenAtRelativeIndex(t){return this.tokens[this.tokenIndex+t]}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}};ja.default=Fa});var sc=ne(Ka=>{"use strict";Object.defineProperty(Ka,"__esModule",{value:!0});var nc=wt(),Oe=Se();function _k(e,t,n,o){let r=t.snapshot(),l=gk(t),d=[],b=[],L=[],C=null,m=[],a=[],B=t.currentToken().contextId;if(B==null)throw new Error("Expected non-null class context ID on class open-brace.");for(t.nextToken();!t.matchesContextIdAndLabel(Oe.TokenType.braceR,B);)if(t.matchesContextual(nc.ContextualKeyword._constructor)&&!t.currentToken().isType)({constructorInitializerStatements:d,constructorInsertPos:C}=oc(t));else if(t.matches1(Oe.TokenType.semi))o||a.push({start:t.currentIndex(),end:t.currentIndex()+1}),t.nextToken();else if(t.currentToken().isType)t.nextToken();else{let G=t.currentIndex(),J=!1,ie=!1,$=!1;for(;js(t.currentToken());)t.matches1(Oe.TokenType._static)&&(J=!0),t.matches1(Oe.TokenType.hash)&&(ie=!0),(t.matches1(Oe.TokenType._declare)||t.matches1(Oe.TokenType._abstract))&&($=!0),t.nextToken();if(J&&t.matches1(Oe.TokenType.braceL)){Ba(t,B);continue}if(ie){Ba(t,B);continue}if(t.matchesContextual(nc.ContextualKeyword._constructor)&&!t.currentToken().isType){({constructorInitializerStatements:d,constructorInsertPos:C}=oc(t));continue}let H=t.currentIndex();if(wk(t),t.matches1(Oe.TokenType.lessThan)||t.matches1(Oe.TokenType.parenL)){Ba(t,B);continue}for(;t.currentToken().isType;)t.nextToken();if(t.matches1(Oe.TokenType.eq)){let se=t.currentIndex(),Fe=t.currentToken().rhsEndIndex;if(Fe==null)throw new Error("Expected rhsEndIndex on class field assignment.");for(t.nextToken();t.currentIndex()<Fe;)e.processToken();let _e;J?(_e=n.claimFreeName("__initStatic"),L.push(_e)):(_e=n.claimFreeName("__init"),b.push(_e)),m.push({initializerName:_e,equalsIndex:se,start:H,end:t.currentIndex()})}else(!o||$)&&a.push({start:G,end:t.currentIndex()})}return t.restoreToSnapshot(r),o?{headerInfo:l,constructorInitializerStatements:d,instanceInitializerNames:[],staticInitializerNames:[],constructorInsertPos:C,fields:[],rangesToRemove:a}:{headerInfo:l,constructorInitializerStatements:d,instanceInitializerNames:b,staticInitializerNames:L,constructorInsertPos:C,fields:m,rangesToRemove:a}}Ka.default=_k;function Ba(e,t){for(e.nextToken();e.currentToken().contextId!==t;)e.nextToken();for(;js(e.tokenAtRelativeIndex(-1));)e.previousToken()}function gk(e){let t=e.currentToken(),n=t.contextId;if(n==null)throw new Error("Expected context ID on class token.");let o=t.isExpression;if(o==null)throw new Error("Expected isExpression on class token.");let r=null,l=!1;for(e.nextToken(),e.matches1(Oe.TokenType.name)&&(r=e.identifierName());!e.matchesContextIdAndLabel(Oe.TokenType.braceL,n);)e.matches1(Oe.TokenType._extends)&&!e.currentToken().isType&&(l=!0),e.nextToken();return{isExpression:o,className:r,hasSuperclass:l}}function oc(e){let t=[];e.nextToken();let n=e.currentToken().contextId;if(n==null)throw new Error("Expected context ID on open-paren starting constructor params.");for(;!e.matchesContextIdAndLabel(Oe.TokenType.parenR,n);)if(e.currentToken().contextId===n){if(e.nextToken(),js(e.currentToken())){for(e.nextToken();js(e.currentToken());)e.nextToken();let l=e.currentToken();if(l.type!==Oe.TokenType.name)throw new Error("Expected identifier after access modifiers in constructor arg.");let d=e.identifierNameForToken(l);t.push(`this.${d} = ${d}`)}}else e.nextToken();for(e.nextToken();e.currentToken().isType;)e.nextToken();let o=e.currentIndex(),r=!1;for(;!e.matchesContextIdAndLabel(Oe.TokenType.braceR,n);){if(!r&&e.matches2(Oe.TokenType._super,Oe.TokenType.parenL)){e.nextToken();let l=e.currentToken().contextId;if(l==null)throw new Error("Expected a context ID on the super call");for(;!e.matchesContextIdAndLabel(Oe.TokenType.parenR,l);)e.nextToken();o=e.currentIndex(),r=!0}e.nextToken()}return e.nextToken(),{constructorInitializerStatements:t,constructorInsertPos:o}}function js(e){return[Oe.TokenType._async,Oe.TokenType._get,Oe.TokenType._set,Oe.TokenType.plus,Oe.TokenType.minus,Oe.TokenType._readonly,Oe.TokenType._static,Oe.TokenType._public,Oe.TokenType._private,Oe.TokenType._protected,Oe.TokenType._override,Oe.TokenType._abstract,Oe.TokenType.star,Oe.TokenType._declare,Oe.TokenType.hash].includes(e.type)}function wk(e){if(e.matches1(Oe.TokenType.bracketL)){let n=e.currentToken().contextId;if(n==null)throw new Error("Expected class context ID on computed name open bracket.");for(;!e.matchesContextIdAndLabel(Oe.TokenType.bracketR,n);)e.nextToken();e.nextToken()}else e.nextToken()}});var Ua=ne($a=>{"use strict";Object.defineProperty($a,"__esModule",{value:!0});var rc=Se();function bk(e){if(e.removeInitialToken(),e.removeToken(),e.removeToken(),e.removeToken(),e.matches1(rc.TokenType.parenL))e.removeToken(),e.removeToken(),e.removeToken();else for(;e.matches1(rc.TokenType.dot);)e.removeToken(),e.removeToken()}$a.default=bk});var Wa=ne(Bs=>{"use strict";Object.defineProperty(Bs,"__esModule",{value:!0});var Ck=_t(),Ik=Se(),Sk={typeDeclarations:new Set,valueDeclarations:new Set};Bs.EMPTY_DECLARATION_INFO=Sk;function Ek(e){let t=new Set,n=new Set;for(let o=0;o<e.tokens.length;o++){let r=e.tokens[o];r.type===Ik.TokenType.name&&Ck.isTopLevelDeclaration.call(void 0,r)&&(r.isType?t.add(e.identifierNameForToken(r)):n.add(e.identifierNameForToken(r)))}return{typeDeclarations:t,valueDeclarations:n}}Bs.default=Ek});var Va=ne(Ha=>{"use strict";Object.defineProperty(Ha,"__esModule",{value:!0});var Ak=wt(),ac=Se();function Pk(e){let t=e.currentIndex();for(;!e.matches1AtIndex(t,ac.TokenType.braceR);)t++;return e.matchesContextualAtIndex(t+1,Ak.ContextualKeyword._from)&&e.matches1AtIndex(t+2,ac.TokenType.string)}Ha.default=Pk});var Ja=ne(Xa=>{"use strict";Object.defineProperty(Xa,"__esModule",{value:!0});var Rk=wt(),Ks=Se();function Nk(e){(e.matches2(Ks.TokenType._with,Ks.TokenType.braceL)||e.matches2(Ks.TokenType.name,Ks.TokenType.braceL)&&e.matchesContextual(Rk.ContextualKeyword._assert))&&(e.removeToken(),e.removeToken(),e.removeBalancedCode(),e.removeToken())}Xa.removeMaybeImportAttributes=Nk});var za=ne(Ga=>{"use strict";Object.defineProperty(Ga,"__esModule",{value:!0});var ic=Se();function Ok(e,t,n,o){if(!e||t)return!1;let r=n.currentToken();if(r.rhsEndIndex==null)throw new Error("Expected non-null rhsEndIndex on export token.");let l=r.rhsEndIndex-n.currentIndex();if(l!==3&&!(l===4&&n.matches1AtIndex(r.rhsEndIndex-1,ic.TokenType.semi)))return!1;let d=n.tokenAtRelativeIndex(2);if(d.type!==ic.TokenType.name)return!1;let b=n.identifierNameForToken(d);return o.typeDeclarations.has(b)&&!o.valueDeclarations.has(b)}Ga.default=Ok});var cc=ne(Qa=>{"use strict";Object.defineProperty(Qa,"__esModule",{value:!0});function mo(e){return e&&e.__esModule?e:{default:e}}var $s=_t(),zn=wt(),g=Se(),Lk=Ua(),Dk=mo(Lk),lc=Wa(),qk=mo(lc),Mk=bo(),Fk=mo(Mk),jk=Va(),Bk=mo(jk),Us=Ja(),Kk=za(),$k=mo(Kk),Uk=on(),Wk=mo(Uk),Ya=class e extends Wk.default{__init(){this.hadExport=!1}__init2(){this.hadNamedExport=!1}__init3(){this.hadDefaultExport=!1}constructor(t,n,o,r,l,d,b,L,C,m,a,B){super(),this.rootTransformer=t,this.tokens=n,this.importProcessor=o,this.nameManager=r,this.helperManager=l,this.reactHotLoaderTransformer=d,this.enableLegacyBabel5ModuleInterop=b,this.enableLegacyTypeScriptModuleInterop=L,this.isTypeScriptTransformEnabled=C,this.isFlowTransformEnabled=m,this.preserveDynamicImport=a,this.keepUnusedImports=B,e.prototype.__init.call(this),e.prototype.__init2.call(this),e.prototype.__init3.call(this),this.declarationInfo=C?qk.default.call(void 0,n):lc.EMPTY_DECLARATION_INFO}getPrefixCode(){let t="";return this.hadExport&&(t+='Object.defineProperty(exports, "__esModule", {value: true});'),t}getSuffixCode(){return this.enableLegacyBabel5ModuleInterop&&this.hadDefaultExport&&!this.hadNamedExport?`
module.exports = exports.default;
`:""}process(){return this.tokens.matches3(g.TokenType._import,g.TokenType.name,g.TokenType.eq)?this.processImportEquals():this.tokens.matches1(g.TokenType._import)?(this.processImport(),!0):this.tokens.matches2(g.TokenType._export,g.TokenType.eq)?(this.tokens.replaceToken("module.exports"),!0):this.tokens.matches1(g.TokenType._export)&&!this.tokens.currentToken().isType?(this.hadExport=!0,this.processExport()):this.tokens.matches2(g.TokenType.name,g.TokenType.postIncDec)&&this.processPostIncDec()?!0:this.tokens.matches1(g.TokenType.name)||this.tokens.matches1(g.TokenType.jsxName)?this.processIdentifier():this.tokens.matches1(g.TokenType.eq)?this.processAssignment():this.tokens.matches1(g.TokenType.assign)?this.processComplexAssignment():this.tokens.matches1(g.TokenType.preIncDec)?this.processPreIncDec():!1}processImportEquals(){let t=this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+1);return this.importProcessor.shouldAutomaticallyElideImportedName(t)?Dk.default.call(void 0,this.tokens):this.tokens.replaceToken("const"),!0}processImport(){if(this.tokens.matches2(g.TokenType._import,g.TokenType.parenL)){if(this.preserveDynamicImport){this.tokens.copyToken();return}let n=this.enableLegacyTypeScriptModuleInterop?"":`${this.helperManager.getHelperName("interopRequireWildcard")}(`;this.tokens.replaceToken(`Promise.resolve().then(() => ${n}require`);let 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(g.TokenType.parenR,o);)this.rootTransformer.processToken();this.tokens.replaceToken(n?")))":"))");return}if(this.removeImportAndDetectIfShouldElide())this.tokens.removeToken();else{let n=this.tokens.stringValue();this.tokens.replaceTokenTrimmingLeftWhitespace(this.importProcessor.claimImportCode(n)),this.tokens.appendCode(this.importProcessor.claimImportCode(n))}Us.removeMaybeImportAttributes.call(void 0,this.tokens),this.tokens.matches1(g.TokenType.semi)&&this.tokens.removeToken()}removeImportAndDetectIfShouldElide(){if(this.tokens.removeInitialToken(),this.tokens.matchesContextual(zn.ContextualKeyword._type)&&!this.tokens.matches1AtIndex(this.tokens.currentIndex()+1,g.TokenType.comma)&&!this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,zn.ContextualKeyword._from))return this.removeRemainingImport(),!0;if(this.tokens.matches1(g.TokenType.name)||this.tokens.matches1(g.TokenType.star))return this.removeRemainingImport(),!1;if(this.tokens.matches1(g.TokenType.string))return!1;let t=!1,n=!1;for(;!this.tokens.matches1(g.TokenType.string);)(!t&&this.tokens.matches1(g.TokenType.braceL)||this.tokens.matches1(g.TokenType.comma))&&(this.tokens.removeToken(),this.tokens.matches1(g.TokenType.braceR)||(n=!0),(this.tokens.matches2(g.TokenType.name,g.TokenType.comma)||this.tokens.matches2(g.TokenType.name,g.TokenType.braceR)||this.tokens.matches4(g.TokenType.name,g.TokenType.name,g.TokenType.name,g.TokenType.comma)||this.tokens.matches4(g.TokenType.name,g.TokenType.name,g.TokenType.name,g.TokenType.braceR))&&(t=!0)),this.tokens.removeToken();return this.keepUnusedImports?!1:this.isTypeScriptTransformEnabled?!t:this.isFlowTransformEnabled?n&&!t:!1}removeRemainingImport(){for(;!this.tokens.matches1(g.TokenType.string);)this.tokens.removeToken()}processIdentifier(){let t=this.tokens.currentToken();if(t.shadowsGlobal)return!1;if(t.identifierRole===$s.IdentifierRole.ObjectShorthand)return this.processObjectShorthand();if(t.identifierRole!==$s.IdentifierRole.Access)return!1;let n=this.importProcessor.getIdentifierReplacement(this.tokens.identifierNameForToken(t));if(!n)return!1;let o=this.tokens.currentIndex()+1;for(;o<this.tokens.tokens.length&&this.tokens.tokens[o].type===g.TokenType.parenR;)o++;return this.tokens.tokens[o].type===g.TokenType.parenL?this.tokens.tokenAtRelativeIndex(1).type===g.TokenType.parenL&&this.tokens.tokenAtRelativeIndex(-1).type!==g.TokenType._new?(this.tokens.replaceToken(`${n}.call(void 0, `),this.tokens.removeToken(),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(g.TokenType.parenR)):this.tokens.replaceToken(`(0, ${n})`):this.tokens.replaceToken(n),!0}processObjectShorthand(){let t=this.tokens.identifierName(),n=this.importProcessor.getIdentifierReplacement(t);return n?(this.tokens.replaceToken(`${t}: ${n}`),!0):!1}processExport(){if(this.tokens.matches2(g.TokenType._export,g.TokenType._enum)||this.tokens.matches3(g.TokenType._export,g.TokenType._const,g.TokenType._enum))return this.hadNamedExport=!0,!1;if(this.tokens.matches2(g.TokenType._export,g.TokenType._default))return this.tokens.matches3(g.TokenType._export,g.TokenType._default,g.TokenType._enum)?(this.hadDefaultExport=!0,!1):(this.processExportDefault(),!0);if(this.tokens.matches2(g.TokenType._export,g.TokenType.braceL))return this.processExportBindings(),!0;if(this.tokens.matches2(g.TokenType._export,g.TokenType.name)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,zn.ContextualKeyword._type)){if(this.tokens.removeInitialToken(),this.tokens.removeToken(),this.tokens.matches1(g.TokenType.braceL)){for(;!this.tokens.matches1(g.TokenType.braceR);)this.tokens.removeToken();this.tokens.removeToken()}else this.tokens.removeToken(),this.tokens.matches1(g.TokenType._as)&&(this.tokens.removeToken(),this.tokens.removeToken());return this.tokens.matchesContextual(zn.ContextualKeyword._from)&&this.tokens.matches1AtIndex(this.tokens.currentIndex()+1,g.TokenType.string)&&(this.tokens.removeToken(),this.tokens.removeToken(),Us.removeMaybeImportAttributes.call(void 0,this.tokens)),!0}if(this.hadNamedExport=!0,this.tokens.matches2(g.TokenType._export,g.TokenType._var)||this.tokens.matches2(g.TokenType._export,g.TokenType._let)||this.tokens.matches2(g.TokenType._export,g.TokenType._const))return this.processExportVar(),!0;if(this.tokens.matches2(g.TokenType._export,g.TokenType._function)||this.tokens.matches3(g.TokenType._export,g.TokenType.name,g.TokenType._function))return this.processExportFunction(),!0;if(this.tokens.matches2(g.TokenType._export,g.TokenType._class)||this.tokens.matches3(g.TokenType._export,g.TokenType._abstract,g.TokenType._class)||this.tokens.matches2(g.TokenType._export,g.TokenType.at))return this.processExportClass(),!0;if(this.tokens.matches2(g.TokenType._export,g.TokenType.star))return this.processExportStar(),!0;throw new Error("Unrecognized export syntax.")}processAssignment(){let t=this.tokens.currentIndex(),n=this.tokens.tokens[t-1];if(n.isType||n.type!==g.TokenType.name||n.shadowsGlobal||t>=2&&this.tokens.matches1AtIndex(t-2,g.TokenType.dot)||t>=2&&[g.TokenType._var,g.TokenType._let,g.TokenType._const].includes(this.tokens.tokens[t-2].type))return!1;let o=this.importProcessor.resolveExportBinding(this.tokens.identifierNameForToken(n));return o?(this.tokens.copyToken(),this.tokens.appendCode(` ${o} =`),!0):!1}processComplexAssignment(){let t=this.tokens.currentIndex(),n=this.tokens.tokens[t-1];if(n.type!==g.TokenType.name||n.shadowsGlobal||t>=2&&this.tokens.matches1AtIndex(t-2,g.TokenType.dot))return!1;let o=this.importProcessor.resolveExportBinding(this.tokens.identifierNameForToken(n));return o?(this.tokens.appendCode(` = ${o}`),this.tokens.copyToken(),!0):!1}processPreIncDec(){let t=this.tokens.currentIndex(),n=this.tokens.tokens[t+1];if(n.type!==g.TokenType.name||n.shadowsGlobal||t+2<this.tokens.tokens.length&&(this.tokens.matches1AtIndex(t+2,g.TokenType.dot)||this.tokens.matches1AtIndex(t+2,g.TokenType.bracketL)||this.tokens.matches1AtIndex(t+2,g.TokenType.parenL)))return!1;let o=this.tokens.identifierNameForToken(n),r=this.importProcessor.resolveExportBinding(o);return r?(this.tokens.appendCode(`${r} = `),this.tokens.copyToken(),!0):!1}processPostIncDec(){let t=this.tokens.currentIndex(),n=this.tokens.tokens[t],o=this.tokens.tokens[t+1];if(n.type!==g.TokenType.name||n.shadowsGlobal||t>=1&&this.tokens.matches1AtIndex(t-1,g.TokenType.dot))return!1;let r=this.tokens.identifierNameForToken(n),l=this.importProcessor.resolveExportBinding(r);if(!l)return!1;let d=this.tokens.rawCodeForToken(o),b=this.importProcessor.getIdentifierReplacement(r)||r;if(d==="++")this.tokens.replaceToken(`(${b} = ${l} = ${b} + 1, ${b} - 1)`);else if(d==="--")this.tokens.replaceToken(`(${b} = ${l} = ${b} - 1, ${b} + 1)`);else throw new Error(`Unexpected operator: ${d}`);return this.tokens.removeToken(),!0}processExportDefault(){let t=!0;if(this.tokens.matches4(g.TokenType._export,g.TokenType._default,g.TokenType._function,g.TokenType.name)||this.tokens.matches5(g.TokenType._export,g.TokenType._default,g.TokenType.name,g.TokenType._function,g.TokenType.name)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+2,zn.ContextualKeyword._async)){this.tokens.removeInitialToken(),this.tokens.removeToken();let n=this.processNamedFunction();this.tokens.appendCode(` exports.default = ${n};`)}else if(this.tokens.matches4(g.TokenType._export,g.TokenType._default,g.TokenType._class,g.TokenType.name)||this.tokens.matches5(g.TokenType._export,g.TokenType._default,g.TokenType._abstract,g.TokenType._class,g.TokenType.name)||this.tokens.matches3(g.TokenType._export,g.TokenType._default,g.TokenType.at)){this.tokens.removeInitialToken(),this.tokens.removeToken(),this.copyDecorators(),this.tokens.matches1(g.TokenType._abstract)&&this.tokens.removeToken();let n=this.rootTransformer.processNamedClass();this.tokens.appendCode(` exports.default = ${n};`)}else if($k.default.call(void 0,this.isTypeScriptTransformEnabled,this.keepUnusedImports,this.tokens,this.declarationInfo))t=!1,this.tokens.removeInitialToken(),this.tokens.removeToken(),this.tokens.removeToken();else if(this.reactHotLoaderTransformer){let n=this.nameManager.claimFreeName("_default");this.tokens.replaceToken(`let ${n}; exports.`),this.tokens.copyToken(),this.tokens.appendCode(` = ${n} =`),this.reactHotLoaderTransformer.setExtractedDefaultExportName(n)}else this.tokens.replaceToken("exports."),this.tokens.copyToken(),this.tokens.appendCode(" =");t&&(this.hadDefaultExport=!0)}copyDecorators(){for(;this.tokens.matches1(g.TokenType.at);)if(this.tokens.copyToken(),this.tokens.matches1(g.TokenType.parenL))this.tokens.copyExpectedToken(g.TokenType.parenL),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(g.TokenType.parenR);else{for(this.tokens.copyExpectedToken(g.TokenType.name);this.tokens.matches1(g.TokenType.dot);)this.tokens.copyExpectedToken(g.TokenType.dot),this.tokens.copyExpectedToken(g.TokenType.name);this.tokens.matches1(g.TokenType.parenL)&&(this.tokens.copyExpectedToken(g.TokenType.parenL),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(g.TokenType.parenR))}}processExportVar(){this.isSimpleExportVar()?this.processSimpleExportVar():this.processComplexExportVar()}isSimpleExportVar(){let t=this.tokens.currentIndex();if(t++,t++,!this.tokens.matches1AtIndex(t,g.TokenType.name))return!1;for(t++;t<this.tokens.tokens.length&&this.tokens.tokens[t].isType;)t++;return!!this.tokens.matches1AtIndex(t,g.TokenType.eq)}processSimpleExportVar(){this.tokens.removeInitialToken(),this.tokens.copyToken();let t=this.tokens.identifierName();for(;!this.tokens.matches1(g.TokenType.eq);)this.rootTransformer.processToken();let n=this.tokens.currentToken().rhsEndIndex;if(n==null)throw new Error("Expected = token with an end index.");for(;this.tokens.currentIndex()<n;)this.rootTransformer.processToken();this.tokens.appendCode(`; exports.${t} = ${t}`)}processComplexExportVar(){this.tokens.removeInitialToken(),this.tokens.removeToken();let t=this.tokens.matches1(g.TokenType.braceL);t&&this.tokens.appendCode("(");let n=0;for(;;)if(this.tokens.matches1(g.TokenType.braceL)||this.tokens.matches1(g.TokenType.dollarBraceL)||this.tokens.matches1(g.TokenType.bracketL))n++,this.tokens.copyToken();else if(this.tokens.matches1(g.TokenType.braceR)||this.tokens.matches1(g.TokenType.bracketR))n--,this.tokens.copyToken();else{if(n===0&&!this.tokens.matches1(g.TokenType.name)&&!this.tokens.currentToken().isType)break;if(this.tokens.matches1(g.TokenType.eq)){let 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{let o=this.tokens.currentToken();if($s.isDeclaration.call(void 0,o)){let r=this.tokens.identifierName(),l=this.importProcessor.getIdentifierReplacement(r);if(l===null)throw new Error(`Expected a replacement for ${r} in \`export var\` syntax.`);$s.isObjectShorthandDeclaration.call(void 0,o)&&(l=`${r}: ${l}`),this.tokens.replaceToken(l)}else this.rootTransformer.processToken()}}if(t){let 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("");let t=this.processNamedFunction();this.tokens.appendCode(` exports.${t} = ${t};`)}processNamedFunction(){if(this.tokens.matches1(g.TokenType._function))this.tokens.copyToken();else if(this.tokens.matches2(g.TokenType.name,g.TokenType._function)){if(!this.tokens.matchesContextual(zn.ContextualKeyword._async))throw new Error("Expected async keyword in function export.");this.tokens.copyToken(),this.tokens.copyToken()}if(this.tokens.matches1(g.TokenType.star)&&this.tokens.copyToken(),!this.tokens.matches1(g.TokenType.name))throw new Error("Expected identifier for exported function name.");let t=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(g.TokenType.parenL),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(g.TokenType.parenR),this.rootTransformer.processPossibleTypeRange(),this.tokens.copyExpectedToken(g.TokenType.braceL),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(g.TokenType.braceR),t}processExportClass(){this.tokens.removeInitialToken(),this.copyDecorators(),this.tokens.matches1(g.TokenType._abstract)&&this.tokens.removeToken();let t=this.rootTransformer.processNamedClass();this.tokens.appendCode(` exports.${t} = ${t};`)}processExportBindings(){this.tokens.removeInitialToken(),this.tokens.removeToken();let t=Bk.default.call(void 0,this.tokens),n=[];for(;;){if(this.tokens.matches1(g.TokenType.braceR)){this.tokens.removeToken();break}let o=Fk.default.call(void 0,this.tokens);for(;this.tokens.currentIndex()<o.endIndex;)this.tokens.removeToken();if(!(o.isType||!t&&this.shouldElideExportedIdentifier(o.leftName))){let l=o.rightName;l==="default"?this.hadDefaultExport=!0:this.hadNamedExport=!0;let d=o.leftName,b=this.importProcessor.getIdentifierReplacement(d);n.push(`exports.${l} = ${b||d};`)}if(this.tokens.matches1(g.TokenType.braceR)){this.tokens.removeToken();break}if(this.tokens.matches2(g.TokenType.comma,g.TokenType.braceR)){this.tokens.removeToken(),this.tokens.removeToken();break}else if(this.tokens.matches1(g.TokenType.comma))this.tokens.removeToken();else throw new Error(`Unexpected token: ${JSON.stringify(this.tokens.currentToken())}`)}if(this.tokens.matchesContextual(zn.ContextualKeyword._from)){this.tokens.removeToken();let o=this.tokens.stringValue();this.tokens.replaceTokenTrimmingLeftWhitespace(this.importProcessor.claimImportCode(o)),Us.removeMaybeImportAttributes.call(void 0,this.tokens)}else this.tokens.appendCode(n.join(" "));this.tokens.matches1(g.TokenType.semi)&&this.tokens.removeToken()}processExportStar(){for(this.tokens.removeInitialToken();!this.tokens.matches1(g.TokenType.string);)this.tokens.removeToken();let t=this.tokens.stringValue();this.tokens.replaceTokenTrimmingLeftWhitespace(this.importProcessor.claimImportCode(t)),Us.removeMaybeImportAttributes.call(void 0,this.tokens),this.tokens.matches1(g.TokenType.semi)&&this.tokens.removeToken()}shouldElideExportedIdentifier(t){return this.isTypeScriptTransformEnabled&&!this.keepUnusedImports&&!this.declarationInfo.valueDeclarations.has(t)}};Qa.default=Ya});var dc=ne(ti=>{"use strict";Object.defineProperty(ti,"__esModule",{value:!0});function yo(e){return e&&e.__esModule?e:{default:e}}var Cn=wt(),Q=Se(),Hk=Ua(),Vk=yo(Hk),uc=Wa(),Xk=yo(uc),Jk=bo(),pc=yo(Jk),Gk=br(),zk=Va(),Yk=yo(zk),Za=Ja(),Qk=za(),Zk=yo(Qk),e0=on(),t0=yo(e0),ei=class extends t0.default{constructor(t,n,o,r,l,d,b,L){super(),this.tokens=t,this.nameManager=n,this.helperManager=o,this.reactHotLoaderTransformer=r,this.isTypeScriptTransformEnabled=l,this.isFlowTransformEnabled=d,this.keepUnusedImports=b,this.nonTypeIdentifiers=l&&!b?Gk.getNonTypeIdentifiers.call(void 0,t,L):new Set,this.declarationInfo=l&&!b?Xk.default.call(void 0,t):uc.EMPTY_DECLARATION_INFO,this.injectCreateRequireForImportRequire=!!L.injectCreateRequireForImportRequire}process(){if(this.tokens.matches3(Q.TokenType._import,Q.TokenType.name,Q.TokenType.eq))return this.processImportEquals();if(this.tokens.matches4(Q.TokenType._import,Q.TokenType.name,Q.TokenType.name,Q.TokenType.eq)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,Cn.ContextualKeyword._type)){this.tokens.removeInitialToken();for(let t=0;t<7;t++)this.tokens.removeToken();return!0}if(this.tokens.matches2(Q.TokenType._export,Q.TokenType.eq))return this.tokens.replaceToken("module.exports"),!0;if(this.tokens.matches5(Q.TokenType._export,Q.TokenType._import,Q.TokenType.name,Q.TokenType.name,Q.TokenType.eq)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+2,Cn.ContextualKeyword._type)){this.tokens.removeInitialToken();for(let t=0;t<8;t++)this.tokens.removeToken();return!0}if(this.tokens.matches1(Q.TokenType._import))return this.processImport();if(this.tokens.matches2(Q.TokenType._export,Q.TokenType._default))return this.processExportDefault();if(this.tokens.matches2(Q.TokenType._export,Q.TokenType.braceL))return this.processNamedExports();if(this.tokens.matches2(Q.TokenType._export,Q.TokenType.name)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,Cn.ContextualKeyword._type)){if(this.tokens.removeInitialToken(),this.tokens.removeToken(),this.tokens.matches1(Q.TokenType.braceL)){for(;!this.tokens.matches1(Q.TokenType.braceR);)this.tokens.removeToken();this.tokens.removeToken()}else this.tokens.removeToken(),this.tokens.matches1(Q.TokenType._as)&&(this.tokens.removeToken(),this.tokens.removeToken());return this.tokens.matchesContextual(Cn.ContextualKeyword._from)&&this.tokens.matches1AtIndex(this.tokens.currentIndex()+1,Q.TokenType.string)&&(this.tokens.removeToken(),this.tokens.removeToken(),Za.removeMaybeImportAttributes.call(void 0,this.tokens)),!0}return!1}processImportEquals(){let t=this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+1);return this.shouldAutomaticallyElideImportedName(t)?Vk.default.call(void 0,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(Q.TokenType._import,Q.TokenType.parenL))return!1;let t=this.tokens.snapshot();if(this.removeImportTypeBindings()){for(this.tokens.restoreToSnapshot(t);!this.tokens.matches1(Q.TokenType.string);)this.tokens.removeToken();this.tokens.removeToken(),Za.removeMaybeImportAttributes.call(void 0,this.tokens),this.tokens.matches1(Q.TokenType.semi)&&this.tokens.removeToken()}return!0}removeImportTypeBindings(){if(this.tokens.copyExpectedToken(Q.TokenType._import),this.tokens.matchesContextual(Cn.ContextualKeyword._type)&&!this.tokens.matches1AtIndex(this.tokens.currentIndex()+1,Q.TokenType.comma)&&!this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+1,Cn.ContextualKeyword._from))return!0;if(this.tokens.matches1(Q.TokenType.string))return this.tokens.copyToken(),!1;this.tokens.matchesContextual(Cn.ContextualKeyword._module)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+2,Cn.ContextualKeyword._from)&&this.tokens.copyToken();let t=!1,n=!1,o=!1;if(this.tokens.matches1(Q.TokenType.name)&&(this.shouldAutomaticallyElideImportedName(this.tokens.identifierName())?(this.tokens.removeToken(),this.tokens.matches1(Q.TokenType.comma)&&this.tokens.removeToken()):(t=!0,this.tokens.copyToken(),this.tokens.matches1(Q.TokenType.comma)&&(o=!0,this.tokens.removeToken()))),this.tokens.matches1(Q.TokenType.star))this.shouldAutomaticallyElideImportedName(this.tokens.identifierNameAtRelativeIndex(2))?(this.tokens.removeToken(),this.tokens.removeToken(),this.tokens.removeToken()):(o&&this.tokens.appendCode(","),t=!0,this.tokens.copyExpectedToken(Q.TokenType.star),this.tokens.copyExpectedToken(Q.TokenType.name),this.tokens.copyExpectedToken(Q.TokenType.name));else if(this.tokens.matches1(Q.TokenType.braceL)){for(o&&this.tokens.appendCode(","),this.tokens.copyToken();!this.tokens.matches1(Q.TokenType.braceR);){n=!0;let r=pc.default.call(void 0,this.tokens);if(r.isType||this.shouldAutomaticallyElideImportedName(r.rightName)){for(;this.tokens.currentIndex()<r.endIndex;)this.tokens.removeToken();this.tokens.matches1(Q.TokenType.comma)&&this.tokens.removeToken()}else{for(t=!0;this.tokens.currentIndex()<r.endIndex;)this.tokens.copyToken();this.tokens.matches1(Q.TokenType.comma)&&this.tokens.copyToken()}}this.tokens.copyExpectedToken(Q.TokenType.braceR)}return this.keepUnusedImports?!1:this.isTypeScriptTransformEnabled?!t:this.isFlowTransformEnabled?n&&!t:!1}shouldAutomaticallyElideImportedName(t){return this.isTypeScriptTransformEnabled&&!this.keepUnusedImports&&!this.nonTypeIdentifiers.has(t)}processExportDefault(){if(Zk.default.call(void 0,this.isTypeScriptTransformEnabled,this.keepUnusedImports,this.tokens,this.declarationInfo))return this.tokens.removeInitialToken(),this.tokens.removeToken(),this.tokens.removeToken(),!0;if(!(this.tokens.matches4(Q.TokenType._export,Q.TokenType._default,Q.TokenType._function,Q.TokenType.name)||this.tokens.matches5(Q.TokenType._export,Q.TokenType._default,Q.TokenType.name,Q.TokenType._function,Q.TokenType.name)&&this.tokens.matchesContextualAtIndex(this.tokens.currentIndex()+2,Cn.ContextualKeyword._async)||this.tokens.matches4(Q.TokenType._export,Q.TokenType._default,Q.TokenType._class,Q.TokenType.name)||this.tokens.matches5(Q.TokenType._export,Q.TokenType._default,Q.TokenType._abstract,Q.TokenType._class,Q.TokenType.name))&&this.reactHotLoaderTransformer){let n=this.nameManager.claimFreeName("_default");return this.tokens.replaceToken(`let ${n}; export`),this.tokens.copyToken(),this.tokens.appendCode(` ${n} =`),this.reactHotLoaderTransformer.setExtractedDefaultExportName(n),!0}return!1}processNamedExports(){if(!this.isTypeScriptTransformEnabled)return!1;this.tokens.copyExpectedToken(Q.TokenType._export),this.tokens.copyExpectedToken(Q.TokenType.braceL);let t=Yk.default.call(void 0,this.tokens),n=!1;for(;!this.tokens.matches1(Q.TokenType.braceR);){let o=pc.default.call(void 0,this.tokens);if(o.isType||!t&&this.shouldElideExportedName(o.leftName)){for(;this.tokens.currentIndex()<o.endIndex;)this.tokens.removeToken();this.tokens.matches1(Q.TokenType.comma)&&this.tokens.removeToken()}else{for(n=!0;this.tokens.currentIndex()<o.endIndex;)this.tokens.copyToken();this.tokens.matches1(Q.TokenType.comma)&&this.tokens.copyToken()}}return this.tokens.copyExpectedToken(Q.TokenType.braceR),!this.keepUnusedImports&&t&&!n&&(this.tokens.removeToken(),this.tokens.removeToken(),Za.removeMaybeImportAttributes.call(void 0,this.tokens)),!0}shouldElideExportedName(t){return this.isTypeScriptTransformEnabled&&!this.keepUnusedImports&&this.declarationInfo.typeDeclarations.has(t)&&!this.declarationInfo.valueDeclarations.has(t)}};ti.default=ei});var hc=ne(oi=>{"use strict";Object.defineProperty(oi,"__esModule",{value:!0});function n0(e){return e&&e.__esModule?e:{default:e}}var fc=wt(),tn=Se(),o0=on(),s0=n0(o0),ni=class extends s0.default{constructor(t,n,o){super(),this.rootTransformer=t,this.tokens=n,this.isImportsTransformEnabled=o}process(){return this.rootTransformer.processPossibleArrowParamEnd()||this.rootTransformer.processPossibleAsyncArrowWithTypeParams()||this.rootTransformer.processPossibleTypeRange()?!0:this.tokens.matches1(tn.TokenType._enum)?(this.processEnum(),!0):this.tokens.matches2(tn.TokenType._export,tn.TokenType._enum)?(this.processNamedExportEnum(),!0):this.tokens.matches3(tn.TokenType._export,tn.TokenType._default,tn.TokenType._enum)?(this.processDefaultExportEnum(),!0):!1}processNamedExportEnum(){if(this.isImportsTransformEnabled){this.tokens.removeInitialToken();let t=this.tokens.identifierNameAtRelativeIndex(1);this.processEnum(),this.tokens.appendCode(` exports.${t} = ${t};`)}else this.tokens.copyToken(),this.processEnum()}processDefaultExportEnum(){this.tokens.removeInitialToken(),this.tokens.removeToken();let t=this.tokens.identifierNameAtRelativeIndex(1);this.processEnum(),this.isImportsTransformEnabled?this.tokens.appendCode(` exports.default = ${t};`):this.tokens.appendCode(` export default ${t};`)}processEnum(){this.tokens.replaceToken("const"),this.tokens.copyExpectedToken(tn.TokenType.name);let t=!1;this.tokens.matchesContextual(fc.ContextualKeyword._of)&&(this.tokens.removeToken(),t=this.tokens.matchesContextual(fc.ContextualKeyword._symbol),this.tokens.removeToken());let n=this.tokens.matches3(tn.TokenType.braceL,tn.TokenType.name,tn.TokenType.eq);this.tokens.appendCode(' = require("flow-enums-runtime")');let o=!t&&!n;for(this.tokens.replaceTokenTrimmingLeftWhitespace(o?".Mirrored([":"({");!this.tokens.matches1(tn.TokenType.braceR);){if(this.tokens.matches1(tn.TokenType.ellipsis)){this.tokens.removeToken();break}this.processEnumElement(t,n),this.tokens.matches1(tn.TokenType.comma)&&this.tokens.copyToken()}this.tokens.replaceToken(o?"]);":"});")}processEnumElement(t,n){if(t){let o=this.tokens.identifierName();this.tokens.copyToken(),this.tokens.appendCode(`: Symbol("${o}")`)}else n?(this.tokens.copyToken(),this.tokens.replaceTokenTrimmingLeftWhitespace(":"),this.tokens.copyToken()):this.tokens.replaceToken(`"${this.tokens.identifierName()}"`)}};oi.default=ni});var Tc=ne(ri=>{"use strict";Object.defineProperty(ri,"__esModule",{value:!0});function r0(e){return e&&e.__esModule?e:{default:e}}function a0(e){let t,n=e[0],o=1;for(;o<e.length;){let r=e[o],l=e[o+1];if(o+=2,(r==="optionalAccess"||r==="optionalCall")&&n==null)return;r==="access"||r==="optionalAccess"?(t=n,n=l(n)):(r==="call"||r==="optionalCall")&&(n=l((...d)=>n.call(t,...d)),t=void 0)}return n}var In=Se(),i0=on(),l0=r0(i0),Ws="jest",c0=["mock","unmock","enableAutomock","disableAutomock"],si=class e extends l0.default{__init(){this.hoistedFunctionNames=[]}constructor(t,n,o,r){super(),this.rootTransformer=t,this.tokens=n,this.nameManager=o,this.importProcessor=r,e.prototype.__init.call(this)}process(){return this.tokens.currentToken().scopeDepth===0&&this.tokens.matches4(In.TokenType.name,In.TokenType.dot,In.TokenType.name,In.TokenType.parenL)&&this.tokens.identifierName()===Ws?a0([this,"access",t=>t.importProcessor,"optionalAccess",t=>t.getGlobalNames,"call",t=>t(),"optionalAccess",t=>t.has,"call",t=>t(Ws)])?!1:this.extractHoistedCalls():!1}getHoistedCode(){return this.hoistedFunctionNames.length>0?this.hoistedFunctionNames.map(t=>`${t}();`).join(""):""}extractHoistedCalls(){this.tokens.removeToken();let t=!1;for(;this.tokens.matches3(In.TokenType.dot,In.TokenType.name,In.TokenType.parenL);){let n=this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+1);if(c0.includes(n)){let r=this.nameManager.claimFreeName("__jestHoist");this.hoistedFunctionNames.push(r),this.tokens.replaceToken(`function ${r}(){${Ws}.`),this.tokens.copyToken(),this.tokens.copyToken(),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(In.TokenType.parenR),this.tokens.appendCode(";}"),t=!1}else t?this.tokens.copyToken():this.tokens.replaceToken(`${Ws}.`),this.tokens.copyToken(),this.tokens.copyToken(),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(In.TokenType.parenR),t=!0}return!0}};ri.default=si});var kc=ne(ii=>{"use strict";Object.defineProperty(ii,"__esModule",{value:!0});function p0(e){return e&&e.__esModule?e:{default:e}}var u0=Se(),d0=on(),f0=p0(d0),ai=class extends f0.default{constructor(t){super(),this.tokens=t}process(){if(this.tokens.matches1(u0.TokenType.num)){let t=this.tokens.currentTokenCode();if(t.includes("_"))return this.tokens.replaceToken(t.replace(/_/g,"")),!0}return!1}};ii.default=ai});var yc=ne(ci=>{"use strict";Object.defineProperty(ci,"__esModule",{value:!0});function h0(e){return e&&e.__esModule?e:{default:e}}var mc=Se(),T0=on(),k0=h0(T0),li=class extends k0.default{constructor(t,n){super(),this.tokens=t,this.nameManager=n}process(){return this.tokens.matches2(mc.TokenType._catch,mc.TokenType.braceL)?(this.tokens.copyToken(),this.tokens.appendCode(` (${this.nameManager.claimFreeName("e")})`),!0):!1}};ci.default=li});var vc=ne(ui=>{"use strict";Object.defineProperty(ui,"__esModule",{value:!0});function m0(e){return e&&e.__esModule?e:{default:e}}var Kt=Se(),y0=on(),v0=m0(y0),pi=class extends v0.default{constructor(t,n){super(),this.tokens=t,this.nameManager=n}process(){if(this.tokens.matches1(Kt.TokenType.nullishCoalescing)){let o=this.tokens.currentToken();return this.tokens.tokens[o.nullishStartIndex].isAsyncOperation?this.tokens.replaceTokenTrimmingLeftWhitespace(", async () => ("):this.tokens.replaceTokenTrimmingLeftWhitespace(", () => ("),!0}if(this.tokens.matches1(Kt.TokenType._delete)&&this.tokens.tokenAtRelativeIndex(1).isOptionalChainStart)return this.tokens.removeInitialToken(),!0;let n=this.tokens.currentToken().subscriptStartIndex;if(n!=null&&this.tokens.tokens[n].isOptionalChainStart&&this.tokens.tokenAtRelativeIndex(-1).type!==Kt.TokenType._super){let o=this.nameManager.claimFreeName("_"),r;if(n>0&&this.tokens.matches1AtIndex(n-1,Kt.TokenType._delete)&&this.isLastSubscriptInChain()?r=`${o} => delete ${o}`:r=`${o} => ${o}`,this.tokens.tokens[n].isAsyncOperation&&(r=`async ${r}`),this.tokens.matches2(Kt.TokenType.questionDot,Kt.TokenType.parenL)||this.tokens.matches2(Kt.TokenType.questionDot,Kt.TokenType.lessThan))this.justSkippedSuper()&&this.tokens.appendCode(".bind(this)"),this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'optionalCall', ${r}`);else if(this.tokens.matches2(Kt.TokenType.questionDot,Kt.TokenType.bracketL))this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'optionalAccess', ${r}`);else if(this.tokens.matches1(Kt.TokenType.questionDot))this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'optionalAccess', ${r}.`);else if(this.tokens.matches1(Kt.TokenType.dot))this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'access', ${r}.`);else if(this.tokens.matches1(Kt.TokenType.bracketL))this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'access', ${r}[`);else if(this.tokens.matches1(Kt.TokenType.parenL))this.justSkippedSuper()&&this.tokens.appendCode(".bind(this)"),this.tokens.replaceTokenTrimmingLeftWhitespace(`, 'call', ${r}(`);else throw new Error("Unexpected subscript operator in optional chain.");return!0}return!1}isLastSubscriptInChain(){let t=0;for(let n=this.tokens.currentIndex()+1;;n++){if(n>=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[n].isOptionalChainStart?t++:this.tokens.tokens[n].isOptionalChainEnd&&t--,t<0)return!0;if(t===0&&this.tokens.tokens[n].subscriptStartIndex!=null)return!1}}justSkippedSuper(){let t=0,n=this.tokens.currentIndex()-1;for(;;){if(n<0)throw new Error("Reached the start of the code while finding the start of the access chain.");if(this.tokens.tokens[n].isOptionalChainStart?t--:this.tokens.tokens[n].isOptionalChainEnd&&t++,t<0)return!1;if(t===0&&this.tokens.tokens[n].subscriptStartIndex!=null)return this.tokens.tokens[n-1].type===Kt.TokenType._super;n--}}};ui.default=pi});var _c=ne(fi=>{"use strict";Object.defineProperty(fi,"__esModule",{value:!0});function x0(e){return e&&e.__esModule?e:{default:e}}var xc=_t(),Et=Se(),_0=on(),g0=x0(_0),di=class extends g0.default{constructor(t,n,o,r){super(),this.rootTransformer=t,this.tokens=n,this.importProcessor=o,this.options=r}process(){let t=this.tokens.currentIndex();if(this.tokens.identifierName()==="createReactClass"){let n=this.importProcessor&&this.importProcessor.getIdentifierReplacement("createReactClass");return n?this.tokens.replaceToken(`(0, ${n})`):this.tokens.copyToken(),this.tryProcessCreateClassCall(t),!0}if(this.tokens.matches3(Et.TokenType.name,Et.TokenType.dot,Et.TokenType.name)&&this.tokens.identifierName()==="React"&&this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+2)==="createClass"){let n=this.importProcessor&&this.importProcessor.getIdentifierReplacement("React")||"React";return n?(this.tokens.replaceToken(n),this.tokens.copyToken(),this.tokens.copyToken()):(this.tokens.copyToken(),this.tokens.copyToken(),this.tokens.copyToken()),this.tryProcessCreateClassCall(t),!0}return!1}tryProcessCreateClassCall(t){let n=this.findDisplayName(t);n&&this.classNeedsDisplayName()&&(this.tokens.copyExpectedToken(Et.TokenType.parenL),this.tokens.copyExpectedToken(Et.TokenType.braceL),this.tokens.appendCode(`displayName: '${n}',`),this.rootTransformer.processBalancedCode(),this.tokens.copyExpectedToken(Et.TokenType.braceR),this.tokens.copyExpectedToken(Et.TokenType.parenR))}findDisplayName(t){return t<2?null:this.tokens.matches2AtIndex(t-2,Et.TokenType.name,Et.TokenType.eq)?this.tokens.identifierNameAtIndex(t-2):t>=2&&this.tokens.tokens[t-2].identifierRole===xc.IdentifierRole.ObjectKey?this.tokens.identifierNameAtIndex(t-2):this.tokens.matches2AtIndex(t-2,Et.TokenType._export,Et.TokenType._default)?this.getDisplayNameFromFilename():null}getDisplayNameFromFilename(){let n=(this.options.filePath||"unknown").split("/"),o=n[n.length-1],r=o.lastIndexOf("."),l=r===-1?o:o.slice(0,r);return l==="index"&&n[n.length-2]?n[n.length-2]:l}classNeedsDisplayName(){let t=this.tokens.currentIndex();if(!this.tokens.matches2(Et.TokenType.parenL,Et.TokenType.braceL))return!1;let n=t+1,o=this.tokens.tokens[n].contextId;if(o==null)throw new Error("Expected non-null context ID on object open-brace.");for(;t<this.tokens.tokens.length;t++){let r=this.tokens.tokens[t];if(r.type===Et.TokenType.braceR&&r.contextId===o){t++;break}if(this.tokens.identifierNameAtIndex(t)==="displayName"&&this.tokens.tokens[t].identifierRole===xc.IdentifierRole.ObjectKey&&r.contextId===o)return!1}if(t===this.tokens.tokens.length)throw new Error("Unexpected end of input when processing React class.");return this.tokens.matches1AtIndex(t,Et.TokenType.parenR)||this.tokens.matches2AtIndex(t,Et.TokenType.comma,Et.TokenType.parenR)}};fi.default=di});var wc=ne(Ti=>{"use strict";Object.defineProperty(Ti,"__esModule",{value:!0});function w0(e){return e&&e.__esModule?e:{default:e}}var gc=_t(),b0=on(),C0=w0(b0),hi=class e extends C0.default{__init(){this.extractedDefaultExportName=null}constructor(t,n){super(),this.tokens=t,this.filePath=n,e.prototype.__init.call(this)}setExtractedDefaultExportName(t){this.extractedDefaultExportName=t}getPrefixCode(){return`
(function () {
var enterModule = require('react-hot-loader').enterModule;
enterModule && enterModule(module);
})();`.replace(/\s+/g," ").trim()}getSuffixCode(){let t=new Set;for(let o of this.tokens.tokens)!o.isType&&gc.isTopLevelDeclaration.call(void 0,o)&&o.identifierRole!==gc.IdentifierRole.ImportDeclaration&&t.add(this.tokens.identifierNameForToken(o));let n=Array.from(t).map(o=>({variableName:o,uniqueLocalName:o}));return this.extractedDefaultExportName&&n.push({variableName:this.extractedDefaultExportName,uniqueLocalName:"default"}),`
;(function () {
var reactHotLoader = require('react-hot-loader').default;
var leaveModule = require('react-hot-loader').leaveModule;
if (!reactHotLoader) {
return;
}
${n.map(({variableName:o,uniqueLocalName:r})=>` reactHotLoader.register(${o}, "${r}", ${JSON.stringify(this.filePath||"")});`).join(`
`)}
leaveModule(module);
})();`}process(){return!1}};Ti.default=hi});var Cc=ne(ki=>{"use strict";Object.defineProperty(ki,"__esModule",{value:!0});var bc=no(),I0=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 S0(e){if(e.length===0||!bc.IS_IDENTIFIER_START[e.charCodeAt(0)])return!1;for(let t=1;t<e.length;t++)if(!bc.IS_IDENTIFIER_CHAR[e.charCodeAt(t)])return!1;return!I0.has(e)}ki.default=S0});var Ec=ne(yi=>{"use strict";Object.defineProperty(yi,"__esModule",{value:!0});function Sc(e){return e&&e.__esModule?e:{default:e}}var Qe=Se(),E0=Cc(),Ic=Sc(E0),A0=on(),P0=Sc(A0),mi=class extends P0.default{constructor(t,n,o){super(),this.rootTransformer=t,this.tokens=n,this.isImportsTransformEnabled=o}process(){return this.rootTransformer.processPossibleArrowParamEnd()||this.rootTransformer.processPossibleAsyncArrowWithTypeParams()||this.rootTransformer.processPossibleTypeRange()?!0:this.tokens.matches1(Qe.TokenType._public)||this.tokens.matches1(Qe.TokenType._protected)||this.tokens.matches1(Qe.TokenType._private)||this.tokens.matches1(Qe.TokenType._abstract)||this.tokens.matches1(Qe.TokenType._readonly)||this.tokens.matches1(Qe.TokenType._override)||this.tokens.matches1(Qe.TokenType.nonNullAssertion)?(this.tokens.removeInitialToken(),!0):this.tokens.matches1(Qe.TokenType._enum)||this.tokens.matches2(Qe.TokenType._const,Qe.TokenType._enum)?(this.processEnum(),!0):this.tokens.matches2(Qe.TokenType._export,Qe.TokenType._enum)||this.tokens.matches3(Qe.TokenType._export,Qe.TokenType._const,Qe.TokenType._enum)?(this.processEnum(!0),!0):!1}processEnum(t=!1){for(this.tokens.removeInitialToken();this.tokens.matches1(Qe.TokenType._const)||this.tokens.matches1(Qe.TokenType._enum);)this.tokens.removeToken();let n=this.tokens.identifierName();this.tokens.removeToken(),t&&!this.isImportsTransformEnabled&&this.tokens.appendCode("export "),this.tokens.appendCode(`var ${n}; (function (${n})`),this.tokens.copyExpectedToken(Qe.TokenType.braceL),this.processEnumBody(n),this.tokens.copyExpectedToken(Qe.TokenType.braceR),t&&this.isImportsTransformEnabled?this.tokens.appendCode(`)(${n} || (exports.${n} = ${n} = {}));`):this.tokens.appendCode(`)(${n} || (${n} = {}));`)}processEnumBody(t){let n=null;for(;!this.tokens.matches1(Qe.TokenType.braceR);){let{nameStringCode:o,variableName:r}=this.extractEnumKeyInfo(this.tokens.currentToken());this.tokens.removeInitialToken(),this.tokens.matches3(Qe.TokenType.eq,Qe.TokenType.string,Qe.TokenType.comma)||this.tokens.matches3(Qe.TokenType.eq,Qe.TokenType.string,Qe.TokenType.braceR)?this.processStringLiteralEnumMember(t,o,r):this.tokens.matches1(Qe.TokenType.eq)?this.processExplicitValueEnumMember(t,o,r):this.processImplicitValueEnumMember(t,o,r,n),this.tokens.matches1(Qe.TokenType.comma)&&this.tokens.removeToken(),r!=null?n=r:n=`${t}[${o}]`}}extractEnumKeyInfo(t){if(t.type===Qe.TokenType.name){let n=this.tokens.identifierNameForToken(t);return{nameStringCode:`"${n}"`,variableName:Ic.default.call(void 0,n)?n:null}}else if(t.type===Qe.TokenType.string){let n=this.tokens.stringValueForToken(t);return{nameStringCode:this.tokens.code.slice(t.start,t.end),variableName:Ic.default.call(void 0,n)?n:null}}else throw new Error("Expected name or string at beginning of enum element.")}processStringLiteralEnumMember(t,n,o){o!=null?(this.tokens.appendCode(`const ${o}`),this.tokens.copyToken(),this.tokens.copyToken(),this.tokens.appendCode(`; ${t}[${n}] = ${o};`)):(this.tokens.appendCode(`${t}[${n}]`),this.tokens.copyToken(),this.tokens.copyToken(),this.tokens.appendCode(";"))}processExplicitValueEnumMember(t,n,o){let r=this.tokens.currentToken().rhsEndIndex;if(r==null)throw new Error("Expected rhsEndIndex on enum assign.");if(o!=null){for(this.tokens.appendCode(`const ${o}`),this.tokens.copyToken();this.tokens.currentIndex()<r;)this.rootTransformer.processToken();this.tokens.appendCode(`; ${t}[${t}[${n}] = ${o}] = ${n};`)}else{for(this.tokens.appendCode(`${t}[${t}[${n}]`),this.tokens.copyToken();this.tokens.currentIndex()<r;)this.rootTransformer.processToken();this.tokens.appendCode(`] = ${n};`)}}processImplicitValueEnumMember(t,n,o,r){let l=r!=null?`${r} + 1`:"0";o!=null&&(this.tokens.appendCode(`const ${o} = ${l}; `),l=o),this.tokens.appendCode(`${t}[${t}[${n}] = ${l}] = ${n};`)}};yi.default=mi});var Ac=ne(xi=>{"use strict";Object.defineProperty(xi,"__esModule",{value:!0});function ln(e){return e&&e.__esModule?e:{default:e}}var R0=wt(),Tt=Se(),N0=sc(),O0=ln(N0),L0=cc(),D0=ln(L0),q0=dc(),M0=ln(q0),F0=hc(),j0=ln(F0),B0=Tc(),K0=ln(B0),$0=gr(),U0=ln($0),W0=kc(),H0=ln(W0),V0=yc(),X0=ln(V0),J0=vc(),G0=ln(J0),z0=_c(),Y0=ln(z0),Q0=wc(),Z0=ln(Q0),em=Ec(),tm=ln(em),vi=class e{__init(){this.transformers=[]}__init2(){this.generatedVariables=[]}constructor(t,n,o,r){e.prototype.__init.call(this),e.prototype.__init2.call(this),this.nameManager=t.nameManager,this.helperManager=t.helperManager;let{tokenProcessor:l,importProcessor:d}=t;this.tokens=l,this.isImportsTransformEnabled=n.includes("imports"),this.isReactHotLoaderTransformEnabled=n.includes("react-hot-loader"),this.disableESTransforms=!!r.disableESTransforms,r.disableESTransforms||(this.transformers.push(new G0.default(l,this.nameManager)),this.transformers.push(new H0.default(l)),this.transformers.push(new X0.default(l,this.nameManager))),n.includes("jsx")&&(r.jsxRuntime!=="preserve"&&this.transformers.push(new U0.default(this,l,d,this.nameManager,r)),this.transformers.push(new Y0.default(this,l,d,r)));let b=null;if(n.includes("react-hot-loader")){if(!r.filePath)throw new Error("filePath is required when using the react-hot-loader transform.");b=new Z0.default(l,r.filePath),this.transformers.push(b)}if(n.includes("imports")){if(d===null)throw new Error("Expected non-null importProcessor with imports transform enabled.");this.transformers.push(new D0.default(this,l,d,this.nameManager,this.helperManager,b,o,!!r.enableLegacyTypeScriptModuleInterop,n.includes("typescript"),n.includes("flow"),!!r.preserveDynamicImport,!!r.keepUnusedImports))}else this.transformers.push(new M0.default(l,this.nameManager,this.helperManager,b,n.includes("typescript"),n.includes("flow"),!!r.keepUnusedImports,r));n.includes("flow")&&this.transformers.push(new j0.default(this,l,n.includes("imports"))),n.includes("typescript")&&this.transformers.push(new tm.default(this,l,n.includes("imports"))),n.includes("jest")&&this.transformers.push(new K0.default(this,l,this.nameManager,d))}transform(){this.tokens.reset(),this.processBalancedCode();let n=this.isImportsTransformEnabled?'"use strict";':"";for(let d of this.transformers)n+=d.getPrefixCode();n+=this.helperManager.emitHelpers(),n+=this.generatedVariables.map(d=>` var ${d};`).join("");for(let d of this.transformers)n+=d.getHoistedCode();let o="";for(let d of this.transformers)o+=d.getSuffixCode();let r=this.tokens.finish(),{code:l}=r;if(l.startsWith("#!")){let d=l.indexOf(`
`);return d===-1&&(d=l.length,l+=`
`),{code:l.slice(0,d+1)+n+l.slice(d+1)+o,mappings:this.shiftMappings(r.mappings,n.length)}}else return{code:n+l+o,mappings:this.shiftMappings(r.mappings,n.length)}}processBalancedCode(){let t=0,n=0;for(;!this.tokens.isAtEnd();){if(this.tokens.matches1(Tt.TokenType.braceL)||this.tokens.matches1(Tt.TokenType.dollarBraceL))t++;else if(this.tokens.matches1(Tt.TokenType.braceR)){if(t===0)return;t--}if(this.tokens.matches1(Tt.TokenType.parenL))n++;else if(this.tokens.matches1(Tt.TokenType.parenR)){if(n===0)return;n--}this.processToken()}}processToken(){if(this.tokens.matches1(Tt.TokenType._class)){this.processClass();return}for(let t of this.transformers)if(t.process())return;this.tokens.copyToken()}processNamedClass(){if(!this.tokens.matches2(Tt.TokenType._class,Tt.TokenType.name))throw new Error("Expected identifier for exported class name.");let t=this.tokens.identifierNameAtIndex(this.tokens.currentIndex()+1);return this.processClass(),t}processClass(){let t=O0.default.call(void 0,this,this.tokens,this.nameManager,this.disableESTransforms),n=(t.headerInfo.isExpression||!t.headerInfo.className)&&t.staticInitializerNames.length+t.instanceInitializerNames.length>0,o=t.headerInfo.className;n&&(o=this.nameManager.claimFreeName("_class"),this.generatedVariables.push(o),this.tokens.appendCode(` (${o} =`));let l=this.tokens.currentToken().contextId;if(l==null)throw new Error("Expected class to have a context ID.");for(this.tokens.copyExpectedToken(Tt.TokenType._class);!this.tokens.matchesContextIdAndLabel(Tt.TokenType.braceL,l);)this.processToken();this.processClassBody(t,o);let d=t.staticInitializerNames.map(b=>`${o}.${b}()`);n?this.tokens.appendCode(`, ${d.map(b=>`${b}, `).join("")}${o})`):t.staticInitializerNames.length>0&&this.tokens.appendCode(` ${d.map(b=>`${b};`).join(" ")}`)}processClassBody(t,n){let{headerInfo:o,constructorInsertPos:r,constructorInitializerStatements:l,fields:d,instanceInitializerNames:b,rangesToRemove:L}=t,C=0,m=0,a=this.tokens.currentToken().contextId;if(a==null)throw new Error("Expected non-null context ID on class.");this.tokens.copyExpectedToken(Tt.TokenType.braceL),this.isReactHotLoaderTransformEnabled&&this.tokens.appendCode("__reactstandin__regenerateByEval(key, code) {this[key] = eval(code);}");let B=l.length+b.length>0;if(r===null&&B){let G=this.makeConstructorInitCode(l,b,n);if(o.hasSuperclass){let J=this.nameManager.claimFreeName("args");this.tokens.appendCode(`constructor(...${J}) { super(...${J}); ${G}; }`)}else this.tokens.appendCode(`constructor() { ${G}; }`)}for(;!this.tokens.matchesContextIdAndLabel(Tt.TokenType.braceR,a);)if(C<d.length&&this.tokens.currentIndex()===d[C].start){let G=!1;for(this.tokens.matches1(Tt.TokenType.bracketL)?this.tokens.copyTokenWithPrefix(`${d[C].initializerName}() {this`):this.tokens.matches1(Tt.TokenType.string)||this.tokens.matches1(Tt.TokenType.num)?(this.tokens.copyTokenWithPrefix(`${d[C].initializerName}() {this[`),G=!0):this.tokens.copyTokenWithPrefix(`${d[C].initializerName}() {this.`);this.tokens.currentIndex()<d[C].end;)G&&this.tokens.currentIndex()===d[C].equalsIndex&&this.tokens.appendCode("]"),this.processToken();this.tokens.appendCode("}"),C++}else if(m<L.length&&this.tokens.currentIndex()>=L[m].start){for(this.tokens.currentIndex()<L[m].end&&this.tokens.removeInitialToken();this.tokens.currentIndex()<L[m].end;)this.tokens.removeToken();m++}else this.tokens.currentIndex()===r?(this.tokens.copyToken(),B&&this.tokens.appendCode(`;${this.makeConstructorInitCode(l,b,n)};`),this.processToken()):this.processToken();this.tokens.copyExpectedToken(Tt.TokenType.braceR)}makeConstructorInitCode(t,n,o){return[...t,...n.map(r=>`${o}.prototype.${r}.call(this)`)].join(";")}processPossibleArrowParamEnd(){if(this.tokens.matches2(Tt.TokenType.parenR,Tt.TokenType.colon)&&this.tokens.tokenAtRelativeIndex(1).isType){let t=this.tokens.currentIndex()+1;for(;this.tokens.tokens[t].isType;)t++;if(this.tokens.matches1AtIndex(t,Tt.TokenType.arrow)){for(this.tokens.removeInitialToken();this.tokens.currentIndex()<t;)this.tokens.removeToken();return this.tokens.replaceTokenTrimmingLeftWhitespace(") =>"),!0}}return!1}processPossibleAsyncArrowWithTypeParams(){if(!this.tokens.matchesContextual(R0.ContextualKeyword._async)&&!this.tokens.matches1(Tt.TokenType._async))return!1;let t=this.tokens.tokenAtRelativeIndex(1);if(t.type!==Tt.TokenType.lessThan||!t.isType)return!1;let n=this.tokens.currentIndex()+1;for(;this.tokens.tokens[n].isType;)n++;if(this.tokens.matches1AtIndex(n,Tt.TokenType.parenL)){for(this.tokens.replaceToken("async ("),this.tokens.removeInitialToken();this.tokens.currentIndex()<n;)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(t,n){for(let o=0;o<t.length;o++){let r=t[o];r!==void 0&&(t[o]=r+n)}return t}};xi.default=vi});var Nc=ne(Ho=>{"use strict";Ho.__esModule=!0;Ho.LinesAndColumns=void 0;var Hs=`
`,Pc="\r",Rc=(function(){function e(t){this.string=t;for(var n=[0],o=0;o<t.length;)switch(t[o]){case Hs:o+=Hs.length,n.push(o);break;case Pc:o+=Pc.length,t[o]===Hs&&(o+=Hs.length),n.push(o);break;default:o++;break}this.offsets=n}return e.prototype.locationForIndex=function(t){if(t<0||t>this.string.length)return null;for(var n=0,o=this.offsets;o[n+1]<=t;)n++;var r=t-o[n];return{line:n,column:r}},e.prototype.indexForLocation=function(t){var n=t.line,o=t.column;return n<0||n>=this.offsets.length||o<0||o>this.lengthOfLine(n)?null:this.offsets[n]+o},e.prototype.lengthOfLine=function(t){var n=this.offsets[t],o=t===this.offsets.length-1?this.string.length:this.offsets[t+1];return o-n},e})();Ho.LinesAndColumns=Rc;Ho.default=Rc});var Oc=ne(_i=>{"use strict";Object.defineProperty(_i,"__esModule",{value:!0});function nm(e){return e&&e.__esModule?e:{default:e}}var om=Nc(),sm=nm(om),rm=Se();function am(e,t){if(t.length===0)return"";let n=Object.keys(t[0]).filter(B=>B!=="type"&&B!=="value"&&B!=="start"&&B!=="end"&&B!=="loc"),o=Object.keys(t[0].type).filter(B=>B!=="label"&&B!=="keyword"),r=["Location","Label","Raw",...n,...o],l=new sm.default(e),d=[r,...t.map(L)],b=r.map(()=>0);for(let B of d)for(let G=0;G<B.length;G++)b[G]=Math.max(b[G],B[G].length);return d.map(B=>B.map((G,J)=>G.padEnd(b[J])).join(" ")).join(`
`);function L(B){let G=e.slice(B.start,B.end);return[m(B.start,B.end),rm.formatTokenType.call(void 0,B.type),im(String(G),14),...n.map(J=>C(B[J],J)),...o.map(J=>C(B.type[J],J))]}function C(B,G){return B===!0?G:B===!1||B===null?"":String(B)}function m(B,G){return`${a(B)}-${a(G)}`}function a(B){let G=l.locationForIndex(B);return G?`${G.line+1}:${G.column+1}`:"Unknown"}}_i.default=am;function im(e,t){return e.length>t?`${e.slice(0,t-3)}...`:e}});var Lc=ne(gi=>{"use strict";Object.defineProperty(gi,"__esModule",{value:!0});function lm(e){return e&&e.__esModule?e:{default:e}}var Xt=Se(),cm=bo(),pm=lm(cm);function um(e){let t=new Set;for(let n=0;n<e.tokens.length;n++)e.matches1AtIndex(n,Xt.TokenType._import)&&!e.matches3AtIndex(n,Xt.TokenType._import,Xt.TokenType.name,Xt.TokenType.eq)&&dm(e,n,t);return t}gi.default=um;function dm(e,t,n){t++,!e.matches1AtIndex(t,Xt.TokenType.parenL)&&(e.matches1AtIndex(t,Xt.TokenType.name)&&(n.add(e.identifierNameAtIndex(t)),t++,e.matches1AtIndex(t,Xt.TokenType.comma)&&t++),e.matches1AtIndex(t,Xt.TokenType.star)&&(t+=2,n.add(e.identifierNameAtIndex(t)),t++),e.matches1AtIndex(t,Xt.TokenType.braceL)&&(t++,fm(e,t,n)))}function fm(e,t,n){for(;;){if(e.matches1AtIndex(t,Xt.TokenType.braceR))return;let o=pm.default.call(void 0,e,t);if(t=o.endIndex,o.isType||n.add(o.rightName),e.matches2AtIndex(t,Xt.TokenType.comma,Xt.TokenType.braceR))return;if(e.matches1AtIndex(t,Xt.TokenType.braceR))return;if(e.matches1AtIndex(t,Xt.TokenType.comma))t++;else throw new Error(`Unexpected token: ${JSON.stringify(e.tokens[t])}`)}}});var Mc=ne(Vo=>{"use strict";Object.defineProperty(Vo,"__esModule",{value:!0});function $n(e){return e&&e.__esModule?e:{default:e}}var hm=p1(),Tm=$n(hm),km=T1(),mm=$n(km),ym=k1(),vm=v1(),Dc=$n(vm),xm=_1(),_m=$n(xm),gm=j1(),wm=Oa(),bm=tc(),Cm=$n(bm),Im=Ac(),Sm=$n(Im),Em=Oc(),Am=$n(Em),Pm=Lc(),Rm=$n(Pm);function Nm(){return"3.35.1"}Vo.getVersion=Nm;function Om(e,t){gm.validateOptions.call(void 0,t);try{let n=qc(e,t),r=new Sm.default(n,t.transforms,!!t.enableLegacyBabel5ModuleInterop,t).transform(),l={code:r.code};if(t.sourceMapOptions){if(!t.filePath)throw new Error("filePath must be specified when generating a source map.");l={...l,sourceMap:mm.default.call(void 0,r,t.filePath,t.sourceMapOptions,e,n.tokenProcessor.tokens)}}return l}catch(n){throw t.filePath&&(n.message=`Error transforming ${t.filePath}: ${n.message}`),n}}Vo.transform=Om;function Lm(e,t){let n=qc(e,t).tokenProcessor.tokens;return Am.default.call(void 0,e,n)}Vo.getFormattedTokens=Lm;function qc(e,t){let n=t.transforms.includes("jsx"),o=t.transforms.includes("typescript"),r=t.transforms.includes("flow"),l=t.disableESTransforms===!0,d=wm.parse.call(void 0,e,n,o,r),b=d.tokens,L=d.scopes,C=new _m.default(e,b),m=new ym.HelperManager(C),a=new Cm.default(e,b,r,l,m),B=!!t.enableLegacyTypeScriptModuleInterop,G=null;return t.transforms.includes("imports")?(G=new Tm.default(C,a,B,t,t.transforms.includes("typescript"),!!t.keepUnusedImports,m),G.preprocessTokens(),Dc.default.call(void 0,a,L,G.getGlobalNames()),t.transforms.includes("typescript")&&!t.keepUnusedImports&&G.pruneTypeOnlyImports()):t.transforms.includes("typescript")&&!t.keepUnusedImports&&Dc.default.call(void 0,a,L,Rm.default.call(void 0,a)),{tokenProcessor:a,scopes:L,nameManager:C,importProcessor:G,helperManager:m}}});import{existsSync as Mm,readFileSync as Fm,realpathSync as jm,statSync as Bm}from"node:fs";import{readFile as $c}from"node:fs/promises";import{posix as Xo,relative as Km,sep as Sn}from"node:path";import{fileURLToPath as Vs,pathToFileURL as Wc}from"node:url";function Si(e){let t=e.toLowerCase();return t.endsWith(".ts")||t.endsWith(".mts")}import{posix as xo}from"node:path";import{posix as Ei}from"node:path";var Go=[".tsx",".ts",".jsx",".js",".mts",".mjs"],Tp={".js":[".ts",".tsx"],".jsx":[".tsx"],".mjs":[".mts"]};function zo(e){let t=Ei.extname(e).toLowerCase(),n=e.slice(0,e.length-t.length);return[...t?[e]:[],...(Tp[t]??[]).map(o=>n+o),...t?[]:Go.map(o=>e+o),...Go.map(o=>Ei.join(e,`index${o}`))]}var kp=e=>e==="orca"||e.startsWith("orca/"),mp=e=>/^[a-z][a-z0-9+.-]*:/i.test(e);function yp(e,t){let n=xo.relative(xo.dirname(e),t);return(n.startsWith("../")?n:`./${n}`).split("/").map(encodeURIComponent).join("/")}async function Ai(e,t,n){if(kp(t)||mp(t))return{kind:"keep"};if(!t.startsWith("./")&&!t.startsWith("../")&&!t.startsWith("/"))return{kind:"refuse",reason:`cannot import "${t}": plugins load without a bundler, so only "orca" and relative files can be imported. Copy the package's ESM files into the plugin and import them by a relative path.`};let[o]=t.split(/[?#]/,1),r=t.slice(o.length),l;try{l=decodeURIComponent(o)}catch{return{kind:"refuse",reason:`cannot import "${t}": malformed escape`}}let d=l.startsWith("/")?xo.normalize(l.slice(1)):xo.join(xo.dirname(e),l);if(d===".."||d.startsWith("../"))return{kind:"refuse",reason:`cannot import "${t}": it is outside the plugin`};for(let b of zo(d.replace(/\/$/,"")))if(await n(b))return{kind:"rewrite",specifier:yp(e,b)+r};return{kind:"refuse",reason:`cannot import "${t}": no such file in the plugin (tried ${Go.join(", ")} and index files)`}}function vp(e,t){let n=t.replace(`Error transforming ${e}: `,""),o=/^(.*) \((\d+):(\d+)\)$/s.exec(n);return o?.[1]?{message:o[1],at:{line:Number(o[2]),column:Number(o[3])}}:{message:n}}function Zs(e,t){let n=vp(e,t);return`${n.at?`${e}:${n.at.line}:${n.at.column}`:e}: ${n.message}`}var ut,Yo,er,_o=1048576,Pi=new Uint8Array(new Uint16Array([1]).buffer)[0]===1?function(e,t){let n=e.length,o=0;for(;o<n;)t[o]=e.charCodeAt(o++)}:function(e,t){let n=e.length,o=0;for(;o<n;){let r=e.charCodeAt(o);t[o++]=(255&r)<<8|r>>>8}},xp="xportmportlassforetaourceeferromsyncunctionssertvoyiedelecontininstantybreareturdebuggeawaithrwhileifcatcfinallels",ft,Ri,et;function Ni(e,t="@"){ft=e,Ri=t;let n=2*ft.length+(2<<18);if(n>_o||!ut){for(;n>_o;)_o*=2;Yo=new ArrayBuffer(_o),Pi(xp,new Uint16Array(Yo,16,114)),ut=(function(d,b,L){var C=new d.Int8Array(L),m=new d.Int16Array(L),a=new d.Int32Array(L),B=new d.Uint8Array(L),G=new d.Uint16Array(L),J=1040;function ie(){var s=0,u=0,x=0,i=0,T=0,v=0,O=0;O=J,J=J+10240|0,C[812]=1,C[811]=0,m[403]=0,m[404]=0,a[71]=a[2],C[813]=0,a[70]=0,C[810]=0,a[72]=O+2048,a[73]=O,C[814]=0,s=(a[3]|0)+-2|0,a[74]=s,u=s+(a[68]<<1)|0,a[75]=u;e:for(;;){if(x=s+2|0,a[74]=x,s>>>0>=u>>>0){i=18;break}t:do switch(m[x>>1]|0){case 9:case 10:case 11:case 12:case 13:case 32:break;case 101:{if((m[404]|0)==0&&We(x)|0&&(Le(s+4|0,16,10)|0)==0&&($(),(C[812]|0)==0)){i=9;break e}else i=17;break}case 105:{We(x)|0&&(Le(s+4|0,26,10)|0)==0&&H(),i=17;break}case 59:{i=17;break}case 47:switch(m[s+4>>1]|0){case 47:{I();break t}case 42:{bt(1);break t}default:{i=16;break e}}default:{i=16;break e}}while(!1);(i|0)==17&&(i=0,a[71]=a[74]),s=a[74]|0,u=a[75]|0}(i|0)==9?(s=a[74]|0,a[71]=s,i=19):(i|0)==16?(C[812]=0,a[74]=s,i=19):(i|0)==18&&(C[810]|0?s=0:(s=x,i=19));do if((i|0)==19){e:for(;;){if(u=s+2|0,a[74]=u,s>>>0>=(a[75]|0)>>>0){i=92;break}t:do switch(m[u>>1]|0){case 9:case 10:case 11:case 12:case 13:case 32:break;case 101:{(m[404]|0)==0&&We(u)|0&&(Le(s+4|0,16,10)|0)==0&&$(),i=91;break}case 105:{We(u)|0&&(Le(s+4|0,26,10)|0)==0&&H(),i=91;break}case 99:{We(u)|0&&(Le(s+4|0,36,8)|0)==0&&V(m[s+12>>1]|0)|0&&(C[814]=1),i=91;break}case 40:{x=a[72]|0,s=m[404]|0,i=s&65535,a[x+(i<<3)>>2]=1,u=a[71]|0,m[404]=s+1<<16>>16,a[x+(i<<3)+4>>2]=u,i=91;break}case 41:{if(u=m[404]|0,!(u<<16>>16)){i=36;break e}x=u+-1<<16>>16,m[404]=x,i=m[403]|0,u=i&65535,i<<16>>16!=0&&(a[(a[72]|0)+((x&65535)<<3)>>2]|0)==5&&(u=a[(a[73]|0)+(u+-1<<2)>>2]|0,x=u+4|0,a[x>>2]|0||(a[x>>2]=(a[71]|0)+2),a[u+12>>2]=s+4,m[403]=i+-1<<16>>16),i=91;break}case 123:{i=a[71]|0,x=a[65]|0,s=i;do if((m[i>>1]|0)==41&(x|0)!=0&&(a[x+4>>2]|0)==(i|0))if(u=a[66]|0,a[65]=u,u){a[u+32>>2]=0;break}else{a[61]=0;break}while(!1);x=a[72]|0,u=m[404]|0,i=u&65535,a[x+(i<<3)>>2]=(C[814]|0)==0?2:6,m[404]=u+1<<16>>16,a[x+(i<<3)+4>>2]=s,C[814]=0,i=91;break}case 125:{if(s=m[404]|0,!(s<<16>>16)){i=49;break e}x=a[72]|0,i=s+-1<<16>>16,m[404]=i,(a[x+((i&65535)<<3)>>2]|0)==4&&_e(),i=91;break}case 39:{Re(39),i=91;break}case 34:{Re(34),i=91;break}case 47:switch(m[s+4>>1]|0){case 47:{I();break t}case 42:{bt(1);break t}default:{s=a[71]|0,u=m[s>>1]|0;n:do if(!(Jt(u)|0))u<<16>>16==41?(x=m[404]|0,fe(a[(a[72]|0)+((x&65535)<<3)+4>>2]|0)|0||(i=65)):i=64;else switch(u<<16>>16){case 46:if(((m[s+-2>>1]|0)+-48&65535)<10){i=64;break n}else break n;case 43:if((m[s+-2>>1]|0)==43){i=64;break n}else break n;case 45:if((m[s+-2>>1]|0)==45){i=64;break n}else break n;default:break n}while(!1);(i|0)==64&&(x=m[404]|0,i=65);n:do if((i|0)==65){if(i=0,x<<16>>16!=0&&(T=a[72]|0,v=(x&65535)+-1|0,u<<16>>16==102?(a[T+(v<<3)>>2]|0)==1:0)){if((m[s+-2>>1]|0)==111&&Ke(a[T+(v<<3)+4>>2]|0,44,3)|0)break}else i=69;if((i|0)==69&&u<<16>>16==125&&(i=a[72]|0,x=x&65535,At(a[i+(x<<3)+4>>2]|0)|0||(a[i+(x<<3)>>2]|0)==6))break;if(!(Fe(s)|0)){switch(u<<16>>16){case 0:break n;case 47:{if(C[813]|0)break n;break}default:}if(i=a[67]|0,i|0&&s>>>0>=(a[i>>2]|0)>>>0&&s>>>0<=(a[i+4>>2]|0)>>>0){vt(),C[813]=0,i=91;break t}x=a[3]|0;do{if(s>>>0<=x>>>0)break;s=s+-2|0,a[71]=s,u=m[s>>1]|0}while(!(M(u)|0));if(Ie(u)|0){do{if(s>>>0<=x>>>0)break;s=s+-2|0,a[71]=s}while(Ie(m[s>>1]|0)|0);if(qt(s)|0){vt(),C[813]=0,i=91;break t}}C[813]=1,i=91;break t}}while(!1);vt(),C[813]=0,i=91;break t}}case 96:{x=a[72]|0,u=m[404]|0,i=u&65535,a[x+(i<<3)+4>>2]=a[71],m[404]=u+1<<16>>16,a[x+(i<<3)>>2]=3,_e(),i=91;break}default:i=91}while(!1);(i|0)==91&&(i=0,a[71]=a[74]),s=a[74]|0}if((i|0)==36){R(),s=0;break}else if((i|0)==49){R(),s=0;break}else if((i|0)==92){s=(C[810]|0)==0?(m[403]|m[404])<<16>>16==0:0;break}}while(!1);return J=O,s|0}function $(){var s=0,u=0,x=0,i=0,T=0,v=0,O=0,te=0,Y=0,ve=0,qe=0,me=0,le=0,de=0;te=a[74]|0,Y=a[67]|0,de=te+12|0,a[74]=de,x=U(1)|0,s=a[74]|0,(s|0)==(de|0)&&!(xt(x)|0)||(le=3);e:do if((le|0)==3){t:do switch(x<<16>>16){case 123:{for(a[74]=s+2,s=U(1)|0,u=a[74]|0;;){if(Z(s)|0?(Re(s),s=(a[74]|0)+2|0,a[74]=s):(W(s)|0,s=a[74]|0),U(1)|0,s=st(u,s)|0,s<<16>>16==44&&(a[74]=(a[74]|0)+2,s=U(1)|0),s<<16>>16==125){le=15;break}if(de=u,u=a[74]|0,(u|0)==(de|0)){le=12;break}if(u>>>0>(a[75]|0)>>>0){le=14;break}}if((le|0)==12){R();break e}else if((le|0)==14){R();break e}else if((le|0)==15){C[811]=1,a[74]=(a[74]|0)+2;break t}break}case 42:{a[74]=s+2,U(1)|0,de=a[74]|0,st(de,de)|0;break}default:{switch(C[812]=0,x<<16>>16){case 100:{switch(te=s+14|0,a[74]=te,(U(1)|0)<<16>>16){case 97:{u=a[74]|0,(Le(u+2|0,80,8)|0)==0&&(T=u+10|0,Ie(m[T>>1]|0)|0)&&(a[74]=T,U(0)|0,le=22);break}case 102:{le=22;break}case 99:{u=a[74]|0,(Le(u+2|0,36,8)|0)==0&&(i=u+10|0,de=m[i>>1]|0,V(de)|0|de<<16>>16==123)&&(a[74]=i,v=U(1)|0,v<<16>>16!=123)&&(me=v,le=31);break}default:}n:do if((le|0)==22&&(O=a[74]|0,(Le(O+2|0,88,14)|0)==0)){if(x=O+16|0,u=m[x>>1]|0,!(V(u)|0))switch(u<<16>>16){case 40:case 42:break;default:break n}a[74]=x,u=U(1)|0,u<<16>>16==42&&(a[74]=(a[74]|0)+2,u=U(1)|0),u<<16>>16!=40&&(me=u,le=31)}while(!1);if((le|0)==31&&(ve=a[74]|0,W(me)|0,qe=a[74]|0,qe>>>0>ve>>>0)){rt(s,te,ve,qe),a[74]=(a[74]|0)+-2;break e}rt(s,te,0,0),a[74]=s+12;break e}case 97:{a[74]=s+10,U(0)|0,s=a[74]|0,le=35;break}case 102:{le=35;break}case 99:{if((Le(s+2|0,36,8)|0)==0&&(u=s+10|0,M(m[u>>1]|0)|0)){a[74]=u,de=U(1)|0,le=a[74]|0,W(de)|0,de=a[74]|0,rt(le,de,le,de),a[74]=(a[74]|0)+-2;break e}s=s+4|0,a[74]=s;break}case 108:case 118:break;default:break e}if((le|0)==35){a[74]=s+16,s=U(1)|0,s<<16>>16==42&&(a[74]=(a[74]|0)+2,s=U(1)|0),le=a[74]|0,W(s)|0,de=a[74]|0,rt(le,de,le,de),a[74]=(a[74]|0)+-2;break e}a[74]=s+6,C[812]=0,x=U(1)|0,s=a[74]|0,x=(W(x)|0|32)<<16>>16==123,i=a[74]|0,x&&(a[74]=i+2,de=U(1)|0,s=a[74]|0,W(de)|0);n:for(;u=a[74]|0,(u|0)!=(s|0);){if(rt(s,u,s,u),u=U(1)|0,x)switch(u<<16>>16){case 93:case 125:break e;default:}if(s=a[74]|0,u<<16>>16!=44){le=51;break}switch(a[74]=s+2,u=U(1)|0,s=a[74]|0,u<<16>>16){case 91:case 123:{le=51;break n}default:}W(u)|0}if((le|0)==51&&(a[74]=s+-2),!x)break e;a[74]=i+-2;break e}}while(!1);if(de=(U(1)|0)<<16>>16==102,s=a[74]|0,de&&(Le(s+2|0,74,6)|0)==0)for(a[74]=s+8,se(te,U(1)|0,0),s=(Y|0)==0?248:Y+16|0;;){if(s=a[s>>2]|0,!s)break e;a[s+12>>2]=0,a[s+8>>2]=0,s=s+16|0}a[74]=s+-2}while(!1)}function H(){var s=0,u=0,x=0,i=0,T=0,v=0,O=0;O=a[74]|0,T=O+12|0,a[74]=T,s=U(1)|0,i=a[74]|0;e:do if(s<<16>>16!=46){if(!(s<<16>>16==115&i>>>0>T>>>0)){if(!(s<<16>>16==100&i>>>0>(O+10|0)>>>0)){i=0,v=28;break}if(Le(i+2|0,66,8)|0){u=i,s=100,i=0,v=59;break}if(s=i+10|0,!(V(m[s>>1]|0)|0)){u=i,s=100,i=0,v=59;break}if(a[74]=s,s=U(1)|0,s<<16>>16==42){s=42,i=2,v=61;break}a[74]=i,i=0,v=28;break}if((Le(i+2|0,56,10)|0)==0&&(x=i+12|0,V(m[x>>1]|0)|0)){if(a[74]=x,s=U(1)|0,u=a[74]|0,(u|0)!=(x|0)){if(s<<16>>16!=102){i=1,v=28;break}if(Le(u+2|0,74,6)|0){s=102,i=1,v=59;break}if(!(M(m[u+8>>1]|0)|0)){s=102,i=1,v=59;break}}a[74]=i,i=0,v=28}else u=i,s=115,i=0,v=59}else switch(a[74]=i+2,(U(1)|0)<<16>>16){case 109:{if(s=a[74]|0,Le(s+2|0,50,6)|0||(u=a[71]|0,!(ge(u)|0)&&(m[u>>1]|0)==46))break e;Ge(O,O,s+8|0,2);break e}case 115:{if(s=a[74]|0,Le(s+2|0,56,10)|0||(u=a[71]|0,!(ge(u)|0)&&(m[u>>1]|0)==46))break e;a[74]=s+12,s=U(1)|0,i=1,v=28;break e}case 100:{if(s=a[74]|0,Le(s+2|0,66,8)|0||(u=a[71]|0,!(ge(u)|0)&&(m[u>>1]|0)==46))break e;a[74]=s+10,s=U(1)|0,i=2,v=28;break e}default:break e}while(!1);e:do if((v|0)==28){if(s<<16>>16==40){if(x=a[72]|0,u=m[404]|0,T=u&65535,a[x+(T<<3)>>2]=5,s=a[74]|0,m[404]=u+1<<16>>16,a[x+(T<<3)+4>>2]=s,(m[a[71]>>1]|0)==46)break;switch(a[74]=s+2,u=U(1)|0,Ge(O,a[74]|0,0,s),i?(s=a[65]|0,a[s+28>>2]=(i|0)==1?5:7):s=a[65]|0,T=a[73]|0,O=m[403]|0,m[403]=O+1<<16>>16,a[T+((O&65535)<<2)>>2]=s,u<<16>>16){case 39:{Re(39);break}case 34:{Re(34);break}default:{a[74]=(a[74]|0)+-2;break e}}switch(s=(a[74]|0)+2|0,a[74]=s,(U(1)|0)<<16>>16){case 44:{a[74]=(a[74]|0)+2,U(1)|0,T=a[65]|0,a[T+4>>2]=s,O=a[74]|0,a[T+16>>2]=O,C[T+24>>0]=1,a[74]=O+-2;break e}case 41:{m[404]=(m[404]|0)+-1<<16>>16,O=a[65]|0,a[O+4>>2]=s,a[O+12>>2]=(a[74]|0)+2,C[O+24>>0]=1,m[403]=(m[403]|0)+-1<<16>>16;break e}default:{a[74]=(a[74]|0)+-2;break e}}}if(!((i|0)==0&s<<16>>16==123)){switch(s<<16>>16){case 42:case 39:case 34:{v=61;break e}default:}u=a[74]|0,v=59;break}if(s=a[74]|0,m[404]|0){a[74]=s+-2;break}for(;!(s>>>0>=(a[75]|0)>>>0);){if(s=U(1)|0,Z(s)|0)Re(s);else if(s<<16>>16==125){v=49;break}s=(a[74]|0)+2|0,a[74]=s}if((v|0)==49&&(a[74]=(a[74]|0)+2),T=(U(1)|0)<<16>>16==102,s=a[74]|0,T&&Le(s+2|0,74,6)|0){R();break}if(a[74]=s+8,s=U(1)|0,Z(s)|0){se(O,s,0);break}else{R();break}}while(!1);(v|0)==59&&((u|0)==(T|0)?a[74]=O+10:v=61);do if((v|0)==61){if(!((s<<16>>16==42|(i|0)!=2)&(m[404]|0)==0)){a[74]=(a[74]|0)+-2;break}for(s=a[75]|0,u=a[74]|0;;){if(u>>>0>=s>>>0){v=68;break}if(x=m[u>>1]|0,Z(x)|0){v=66;break}v=u+2|0,a[74]=v,u=v}if((v|0)==66){se(O,x,i);break}else if((v|0)==68){R();break}}while(!1)}function se(s,u,x){s=s|0,u=u|0,x=x|0;var i=0,T=0;switch(i=(a[74]|0)+2|0,u<<16>>16){case 39:{Re(39),T=5;break}case 34:{Re(34),T=5;break}default:R()}do if((T|0)==5){if(Ge(s,i,a[74]|0,1),(x|0)>0&&(a[(a[65]|0)+28>>2]=(x|0)==1?4:6),a[74]=(a[74]|0)+2,u=U(0)|0,x=u<<16>>16==97,x?(i=a[74]|0,Le(i+2|0,102,10)|0&&(T=13)):(i=a[74]|0,u<<16>>16==119&&(m[i+2>>1]|0)==105&&(m[i+4>>1]|0)==116&&(m[i+6>>1]|0)==104||(T=13)),(T|0)==13){a[74]=i+-2;break}if(a[74]=i+((x?6:4)<<1),(U(1)|0)<<16>>16!=123){a[74]=i;break}x=a[74]|0,u=x;e:for(;;){switch(a[74]=u+2,u=U(1)|0,u<<16>>16){case 39:{Re(39),a[74]=(a[74]|0)+2,u=U(1)|0;break}case 34:{Re(34),a[74]=(a[74]|0)+2,u=U(1)|0;break}default:u=W(u)|0}if(u<<16>>16!=58){T=22;break}switch(a[74]=(a[74]|0)+2,(U(1)|0)<<16>>16){case 39:{Re(39);break}case 34:{Re(34);break}default:{T=26;break e}}switch(a[74]=(a[74]|0)+2,(U(1)|0)<<16>>16){case 125:{T=31;break e}case 44:break;default:{T=30;break e}}if(a[74]=(a[74]|0)+2,(U(1)|0)<<16>>16==125){T=31;break}u=a[74]|0}if((T|0)==22){a[74]=i;break}else if((T|0)==26){a[74]=i;break}else if((T|0)==30){a[74]=i;break}else if((T|0)==31){T=a[65]|0,a[T+16>>2]=x,a[T+12>>2]=(a[74]|0)+2;break}}while(!1)}function Fe(s){s=s|0;e:do switch(m[s>>1]|0){case 100:switch(m[s+-2>>1]|0){case 105:{s=Ke(s+-4|0,112,2)|0;break e}case 108:{s=Ke(s+-4|0,116,3)|0;break e}default:{s=0;break e}}case 101:switch(m[s+-2>>1]|0){case 115:switch(m[s+-4>>1]|0){case 108:{s=j(s+-6|0,101)|0;break e}case 97:{s=j(s+-6|0,99)|0;break e}default:{s=0;break e}}case 116:{s=Ke(s+-4|0,122,4)|0;break e}case 117:{s=Ke(s+-4|0,130,6)|0;break e}default:{s=0;break e}}case 102:{if((m[s+-2>>1]|0)==111&&(m[s+-4>>1]|0)==101)switch(m[s+-6>>1]|0){case 99:{s=Ke(s+-8|0,142,6)|0;break e}case 112:{s=Ke(s+-8|0,154,2)|0;break e}default:{s=0;break e}}else s=0;break}case 107:{s=Ke(s+-2|0,158,4)|0;break}case 110:{s=s+-2|0,j(s,105)|0?s=1:s=Ke(s,166,5)|0;break}case 111:{s=j(s+-2|0,100)|0;break}case 114:{s=Ke(s+-2|0,176,7)|0;break}case 116:{s=Ke(s+-2|0,190,4)|0;break}case 119:switch(m[s+-2>>1]|0){case 101:{s=j(s+-4|0,110)|0;break e}case 111:{s=Ke(s+-4|0,198,3)|0;break e}default:{s=0;break e}}default:s=0}while(!1);return s|0}function _e(){var s=0,u=0,x=0,i=0;u=a[75]|0,x=a[74]|0;e:for(;;){if(s=x+2|0,x>>>0>=u>>>0){u=10;break}switch(m[s>>1]|0){case 96:{u=7;break e}case 36:{if((m[x+4>>1]|0)==123){u=6;break e}break}case 92:{s=x+4|0;break}default:}x=s}(u|0)==6?(s=x+4|0,a[74]=s,u=a[72]|0,i=m[404]|0,x=i&65535,a[u+(x<<3)>>2]=4,m[404]=i+1<<16>>16,a[u+(x<<3)+4>>2]=s):(u|0)==7?(a[74]=s,x=a[72]|0,i=(m[404]|0)+-1<<16>>16,m[404]=i,(a[x+((i&65535)<<3)>>2]|0)!=3&&R()):(u|0)==10&&(a[74]=s,R())}function U(s){s=s|0;var u=0,x=0,i=0;x=a[74]|0;e:do{u=m[x>>1]|0;t:do if(u<<16>>16!=47)if(s){if(V(u)|0)break;break e}else{if(Ie(u)|0)break;break e}else switch(m[x+2>>1]|0){case 47:{I();break t}case 42:{bt(s);break t}default:{u=47;break e}}while(!1);i=a[74]|0,x=i+2|0,a[74]=x}while(i>>>0<(a[75]|0)>>>0);return u|0}function Ge(s,u,x,i){s=s|0,u=u|0,x=x|0,i=i|0;var T=0,v=0;v=a[69]|0,a[69]=v+36,T=a[65]|0,a[((T|0)==0?244:T+32|0)>>2]=v,a[66]=T,a[65]=v,a[v+8>>2]=s,(i|0)==2?(s=3,T=x):(T=(i|0)==1,s=T?1:2,T=T?x+2|0:0),a[v+12>>2]=T,a[v+28>>2]=s,a[v>>2]=u,a[v+4>>2]=x,a[v+16>>2]=0,a[v+20>>2]=i,u=(i|0)==1,C[v+24>>0]=u&1,a[v+32>>2]=0,u|(i|0)==2&&(C[811]=1)}function Re(s){s=s|0;var u=0,x=0,i=0,T=0;for(T=a[75]|0,u=a[74]|0;;){if(i=u+2|0,u>>>0>=T>>>0){u=9;break}if(x=m[i>>1]|0,x<<16>>16==s<<16>>16){u=10;break}if(x<<16>>16==92)x=u+4|0,(m[x>>1]|0)==13?(u=u+6|0,u=(m[u>>1]|0)==10?u:x):u=x;else if(ke(x)|0){u=9;break}else u=i}(u|0)==9?(a[74]=i,R()):(u|0)==10&&(a[74]=i)}function st(s,u){s=s|0,u=u|0;var x=0,i=0,T=0,v=0;return x=a[74]|0,i=m[x>>1]|0,v=(s|0)==(u|0),T=v?0:s,v=v?0:u,i<<16>>16==97&&(a[74]=x+4,x=U(1)|0,s=a[74]|0,Z(x)|0?(Re(x),u=(a[74]|0)+2|0,a[74]=u):(W(x)|0,u=a[74]|0),i=U(1)|0,x=a[74]|0),(x|0)!=(s|0)&&rt(s,u,T,v),i|0}function dt(){var s=0,u=0,x=0;x=a[75]|0,u=a[74]|0;e:for(;;){if(s=u+2|0,u>>>0>=x>>>0){u=6;break}switch(m[s>>1]|0){case 13:case 10:{u=6;break e}case 93:{u=7;break e}case 92:{s=u+4|0;break}default:}u=s}return(u|0)==6?(a[74]=s,R(),s=0):(u|0)==7&&(a[74]=s,s=93),s|0}function vt(){var s=0,u=0,x=0;e:for(;;){if(s=a[74]|0,u=s+2|0,a[74]=u,s>>>0>=(a[75]|0)>>>0){x=7;break}switch(m[u>>1]|0){case 13:case 10:{x=7;break e}case 47:break e;case 91:{dt()|0;break}case 92:{a[74]=s+4;break}default:}}(x|0)==7&&R()}function At(s){switch(s=s|0,m[s>>1]|0){case 62:{s=(m[s+-2>>1]|0)==61;break}case 41:case 59:{s=1;break}case 104:{s=Ke(s+-2|0,218,4)|0;break}case 121:{s=Ke(s+-2|0,226,6)|0;break}case 101:{s=Ke(s+-2|0,238,3)|0;break}default:s=0}return s|0}function bt(s){s=s|0;var u=0,x=0,i=0,T=0,v=0;for(T=(a[74]|0)+2|0,a[74]=T,x=a[75]|0;u=T+2|0,!(T>>>0>=x>>>0||(i=m[u>>1]|0,!s&&ke(i)|0));){if(i<<16>>16==42&&(m[T+4>>1]|0)==47){v=8;break}T=u}(v|0)==8&&(a[74]=u,u=T+4|0),a[74]=u}function Le(s,u,x){s=s|0,u=u|0,x=x|0;var i=0,T=0;e:do if(!x)s=0;else{for(;i=C[s>>0]|0,T=C[u>>0]|0,i<<24>>24==T<<24>>24;)if(x=x+-1|0,x)s=s+1|0,u=u+1|0;else{s=0;break e}s=(i&255)-(T&255)|0}while(!1);return s|0}function xt(s){s=s|0;e:do switch(s<<16>>16){case 38:case 37:case 33:{s=1;break}default:if((s&-8)<<16>>16==40|(s+-58&65535)<6)s=1;else{switch(s<<16>>16){case 91:case 93:case 94:{s=1;break e}default:}s=(s+-123&65535)<4}}while(!1);return s|0}function Jt(s){s=s|0;e:do switch(s<<16>>16){case 38:case 37:case 33:break;default:if(!((s+-58&65535)<6|(s+-40&65535)<7&s<<16>>16!=41)){switch(s<<16>>16){case 91:case 94:break e;default:}return s<<16>>16!=125&(s+-123&65535)<4|0}}while(!1);return 1}function Pt(s){s=s|0;var u=0;u=m[s>>1]|0;e:do if((u+-9&65535)>=5){switch(u<<16>>16){case 160:case 32:{u=1;break e}default:}if(xt(u)|0)return u<<16>>16!=46|(ge(s)|0)|0;u=0}else u=1;while(!1);return u|0}function $t(s){s=s|0;var u=0,x=0,i=0,T=0;return x=J,J=J+16|0,i=x,a[i>>2]=0,a[68]=s,u=a[3]|0,T=u+(s<<1)|0,s=T+2|0,m[T>>1]=0,a[i>>2]=s,a[69]=s,a[61]=0,a[65]=0,a[63]=0,a[62]=0,a[67]=0,a[64]=0,J=x,u|0}function rt(s,u,x,i){s=s|0,u=u|0,x=x|0,i=i|0;var T=0,v=0;T=a[69]|0,a[69]=T+20,v=a[67]|0,a[((v|0)==0?248:v+16|0)>>2]=T,a[67]=T,a[T>>2]=s,a[T+4>>2]=u,a[T+8>>2]=x,a[T+12>>2]=i,a[T+16>>2]=0,C[811]=1}function Ke(s,u,x){s=s|0,u=u|0,x=x|0;var i=0,T=0;return i=s+(0-x<<1)|0,T=i+2|0,s=a[3]|0,T>>>0>=s>>>0&&(Le(T,u,x<<1)|0)==0?(T|0)==(s|0)?s=1:s=Pt(i)|0:s=0,s|0}function qt(s){switch(s=s|0,m[s>>1]|0){case 107:{s=Ke(s+-2|0,158,4)|0;break}case 101:{(m[s+-2>>1]|0)==117?s=Ke(s+-4|0,130,6)|0:s=0;break}default:s=0}return s|0}function j(s,u){s=s|0,u=u|0;var x=0;return x=a[3]|0,x>>>0<=s>>>0&&(m[s>>1]|0)==u<<16>>16?(x|0)==(s|0)?x=1:x=M(m[s+-2>>1]|0)|0:x=0,x|0}function M(s){s=s|0;e:do if((s+-9&65535)<5)s=1;else{switch(s<<16>>16){case 32:case 160:{s=1;break e}default:}s=s<<16>>16!=46&(xt(s)|0)}while(!1);return s|0}function I(){var s=0,u=0,x=0;s=a[75]|0,x=a[74]|0;e:for(;u=x+2|0,!(x>>>0>=s>>>0);)switch(m[u>>1]|0){case 13:case 10:break e;default:x=u}a[74]=u}function W(s){for(s=s|0;!(V(s)|0||xt(s)|0);)if(s=(a[74]|0)+2|0,a[74]=s,s=m[s>>1]|0,!(s<<16>>16)){s=0;break}return s|0}function ae(){var s=0;switch(s=a[(a[63]|0)+20>>2]|0,s|0){case 1:{s=-1;break}case 2:{s=-2;break}default:s=s-(a[3]|0)>>1}return s|0}function fe(s){return s=s|0,!(Ke(s,204,5)|0)&&!(Ke(s,44,3)|0)?s=Ke(s,214,2)|0:s=1,s|0}function Ie(s){switch(s=s|0,s<<16>>16){case 160:case 32:case 12:case 11:case 9:{s=1;break}default:s=0}return s|0}function ge(s){return s=s|0,(m[s>>1]|0)==46&&(m[s+-2>>1]|0)==46?s=(m[s+-4>>1]|0)==46:s=0,s|0}function We(s){return s=s|0,(a[3]|0)==(s|0)?s=1:s=Pt(s+-2|0)|0,s|0}function He(){var s=0;return s=a[(a[64]|0)+12>>2]|0,s?s=s-(a[3]|0)>>1:s=-1,s|0}function we(){var s=0;return s=a[(a[63]|0)+12>>2]|0,s?s=s-(a[3]|0)>>1:s=-1,s|0}function $e(){var s=0;return s=a[(a[64]|0)+8>>2]|0,s?s=s-(a[3]|0)>>1:s=-1,s|0}function Ve(){var s=0;return s=a[(a[63]|0)+16>>2]|0,s?s=s-(a[3]|0)>>1:s=-1,s|0}function xe(){var s=0;return s=a[(a[63]|0)+4>>2]|0,s?s=s-(a[3]|0)>>1:s=-1,s|0}function Ze(){var s=0;return s=a[63]|0,s=a[((s|0)==0?244:s+32|0)>>2]|0,a[63]=s,(s|0)!=0|0}function F(){var s=0;return s=a[64]|0,s=a[((s|0)==0?248:s+16|0)>>2]|0,a[64]=s,(s|0)!=0|0}function R(){C[810]=1,a[70]=(a[74]|0)-(a[3]|0)>>1,a[74]=(a[75]|0)+2}function V(s){return s=s|0,(s|128)<<16>>16==160|(s+-9&65535)<5|0}function Z(s){return s=s|0,s<<16>>16==39|s<<16>>16==34|0}function ye(){return(a[(a[63]|0)+8>>2]|0)-(a[3]|0)>>1|0}function Te(){return(a[(a[64]|0)+4>>2]|0)-(a[3]|0)>>1|0}function ke(s){return s=s|0,s<<16>>16==13|s<<16>>16==10|0}function De(){return(a[a[63]>>2]|0)-(a[3]|0)>>1|0}function at(){return(a[a[64]>>2]|0)-(a[3]|0)>>1|0}function Ct(){return B[(a[63]|0)+24>>0]|0|0}function Mt(s){s=s|0,a[3]=s}function Ft(){return a[(a[63]|0)+28>>2]|0}function nn(){return(C[811]|0)!=0|0}function jt(){return(C[812]|0)!=0|0}function Bt(){return a[70]|0}function It(s){return s=s|0,J=s+992+15&-16,992}return{su:It,ai:Ve,e:Bt,ee:Te,ele:He,els:$e,es:at,f:jt,id:ae,ie:xe,ip:Ct,is:De,it:Ft,ms:nn,p:ie,re:F,ri:Ze,sa:$t,se:we,ses:Mt,ss:ye}})(typeof self<"u"?self:global,{},Yo),er=ut.su(_o-(2<<17))}let o=ft.length+1;ut.ses(er),ut.sa(o-1),Pi(ft,new Uint16Array(Yo,er,o)),ut.p()||(et=ut.e(),An());let r=[],l=[];for(;ut.ri();){let d=ut.is(),b=ut.ie(),L=ut.ai(),C=ut.id(),m=ut.ss(),a=ut.se(),B=ut.it(),G;ut.ip()&&(G=tr(C===-1?d:d+1,ft.charCodeAt(C===-1?d-1:d))),r.push({t:B,n:G,s:d,e:b,ss:m,se:a,d:C,a:L})}for(;ut.re();){let d=ut.es(),b=ut.ee(),L=ut.els(),C=ut.ele(),m=ft.charCodeAt(d),a=L>=0?ft.charCodeAt(L):-1;l.push({s:d,e:b,ls:L,le:C,n:m===34||m===39?tr(d+1,m):ft.slice(d,b),ln:L<0?void 0:a===34||a===39?tr(L+1,a):ft.slice(L,C)})}return[r,l,!!ut.f(),!!ut.ms()]}function tr(e,t){et=e;let n="",o=et;for(;;){et>=ft.length&&An();let r=ft.charCodeAt(et);if(r===t)break;r===92?(n+=ft.slice(o,et),n+=_p(),o=et):(r===8232||r===8233||Oi(r)&&An(),++et)}return n+=ft.slice(o,et++),n}function _p(){let e=ft.charCodeAt(++et);switch(++et,e){case 110:return`
`;case 114:return"\r";case 120:return String.fromCharCode(nr(2));case 117:return(function(){let t=ft.charCodeAt(et),n;return t===123?(++et,n=nr(ft.indexOf("}",et)-et),++et,n>1114111&&An()):n=nr(4),n<=65535?String.fromCharCode(n):(n-=65536,String.fromCharCode(55296+(n>>10),56320+(1023&n)))})();case 116:return" ";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:ft.charCodeAt(et)===10&&++et;case 10:return"";case 56:case 57:An();default:if(e>=48&&e<=55){let t=ft.substr(et-1,3).match(/^[0-7]+/)[0],n=parseInt(t,8);return n>255&&(t=t.slice(0,-1),n=parseInt(t,8)),et+=t.length-1,e=ft.charCodeAt(et),t==="0"&&e!==56&&e!==57||An(),String.fromCharCode(n)}return Oi(e)?"":String.fromCharCode(e)}}function nr(e){let t=et,n=0,o=0;for(let r=0;r<e;++r,++et){let l,d=ft.charCodeAt(et);if(d!==95){if(d>=97)l=d-97+10;else if(d>=65)l=d-65+10;else{if(!(d>=48&&d<=57))break;l=d-48}if(l>=16)break;o=d,n=16*n+l}else o!==95&&r!==0||An(),o=d}return o!==95&&et-t===e||An(),n}function Oi(e){return e===13||e===10}function An(){throw Object.assign(Error(`Parse error ${Ri}:${ft.slice(0,et).split(`
`).length}:${et-ft.lastIndexOf(`
`,et-1)}`),{idx:et})}var Fc=hp(Mc());import{posix as wi}from"node:path";var Dm={".ts":["typescript"],".mts":["typescript"],".tsx":["typescript","jsx"],".jsx":["jsx"]};function qm(e,t,n){let o={...e,sources:[wi.basename(t)],sourcesContent:[n]};return`
//# sourceMappingURL=data:application/json;charset=utf-8;base64,${Buffer.from(JSON.stringify(o),"utf8").toString("base64")}
`}function jc(e,t){return bi(e,t).code}function bi(e,t){let n=(0,Fc.transform)(t,{transforms:Dm[wi.extname(e).toLowerCase()]??[],jsxRuntime:"automatic",jsxImportSource:"orca",production:!0,disableESTransforms:!0,filePath:e,sourceMapOptions:{compiledFilename:wi.basename(e)}});return{code:n.code+qm(n.sourceMap,e,t),mappings:n.sourceMap?.mappings??""}}function Ci(e,t){try{let{code:n,mappings:o}=bi(e,t),r=Ni(n)[0].flatMap(l=>l.n===void 0||l.t===3?[]:[{start:l.s,end:l.e,specifier:l.n}]);return{ok:!0,code:n,mappings:o,imports:r}}catch(n){return{ok:!1,message:n instanceof Error?n.message:String(n)}}}var Bc=e=>e==="orca"||e.startsWith("orca/");function Kc(e){return`cannot import "${e}" at run time: it only provides types. Write \`import type { OrcaWorkerApi } from 'orca/worker'\` and use the \`orca\` object passed to activate(orca).`}var $m={orca:"./orca-runtime.mjs","orca/jsx-runtime":"./orca-runtime.mjs","orca/jsx-dev-runtime":"./orca-runtime.mjs","orca/testing":"./orca-testing.mjs"},Um=/\.(?:tsx?|mts|jsx)$/i,Wm=/\.test\.[cm]?[jt]sx?$/i,Hm=/\.[cm]?[jt]sx?$/i,Jo=jm(process.env.ORCA_PLUGIN_TEST_ROOT??process.cwd());function Xs(e){if(!e.startsWith("file:"))return null;let t=Km(Jo,Vs(e));return t.startsWith("..")||t.split(Sn).includes("node_modules")?null:t.split(Sn).join(Xo.sep)}var Hc=e=>Mm(e)&&Bm(e).isFile();function Vm(){try{let e=JSON.parse(Fm(`${Jo}${Sn}orca-plugin.json`,"utf8")),t=typeof e=="object"&&e!==null&&"main"in e?e.main:null;return typeof t=="string"?Wc(`${Jo}${Sn}${t.split(/[\\/]/).join(Sn)}`).href:null}catch{return null}}var Js=new Set,Uc=Vm();Uc&&Js.add(Uc);async function Xm(e,t,n){if(Bc(e))throw new Error(Kc(e));let o;try{o=await n(e,t)}catch(r){if(!e.startsWith("./")&&!e.startsWith("../"))throw r;let l=new URL(e,t.parentURL),d=zo(l.pathname.replace(/\/$/,"")).map(b=>Object.assign(new URL(l.href),{pathname:b})).find(b=>Xs(b.href)!==null&&Hc(Vs(b)));if(!d)throw r;o={url:d.href,shortCircuit:!0}}return Xs(o.url)!==null&&Js.add(o.url),o}async function Nv(e,t,n){let o=$m[e];if(o)return{url:new URL(o,import.meta.url).href,shortCircuit:!0};if(t.parentURL&&Js.has(t.parentURL))return Xm(e,t,n);let r=t.parentURL?Xs(t.parentURL):null,l=r!==null&&Hm.test(r)?r:null,d=e.startsWith(".")||e.startsWith("/");if(l===null||e.startsWith("node:")||Wm.test(l)&&!d)return n(e,t);let b=await Ai(l,e,async C=>Hc(`${Jo}${Sn}${C.split(Xo.sep).join(Sn)}`));if(b.kind==="refuse")throw new Error(`${l}: ${b.reason}`);if(b.kind==="keep")return n(e,t);let L=Xo.join(Xo.dirname(l),decodeURIComponent(b.specifier));return{url:Wc(`${Jo}${Sn}${L.split(Xo.sep).join(Sn)}`).href,shortCircuit:!0}}async function Ov(e,t,n){let o=Xs(e);if(o!==null&&Js.has(e))return Si(o)?{format:"module",source:jc(o,await $c(Vs(e),"utf8")),shortCircuit:!0}:n(e,t);if(o===null||!Um.test(o))return n(e,t);let r=Ci(o,await $c(Vs(e),"utf8"));if(!r.ok)throw new SyntaxError(Zs(o,r.message));return{format:"module",source:r.code,shortCircuit:!0}}function Lv(e,t){let n=Ci(e,t);if(!n.ok)throw new SyntaxError(Zs(e,n.message));return n.code}export{Ov as load,Nv as resolve,Lv as transformPluginSourceForTest};