@quilted/create 0.1.21 → 0.1.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var _commonjsHelpers = require('./_commonjsHelpers.cjs');
3
+ var index = require('./index.cjs');
4
4
 
5
5
  function _mergeNamespaces(n, m) {
6
6
  m.forEach(function (e) {
@@ -20,7 +20,7 @@ function _mergeNamespaces(n, m) {
20
20
  var parserBabel$2 = {exports: {}};
21
21
 
22
22
  (function (module, exports) {
23
- (function(e){module.exports=e();})(function(){var v=(h,l)=>()=>(l||h((l={exports:{}}).exports,l),l.exports);var W=v((Bf,Jr)=>{var Pt=function(h){return h&&h.Math==Math&&h};Jr.exports=Pt(typeof globalThis=="object"&&globalThis)||Pt(typeof window=="object"&&window)||Pt(typeof self=="object"&&self)||Pt(typeof _commonjsHelpers.commonjsGlobal=="object"&&_commonjsHelpers.commonjsGlobal)||function(){return this}()||Function("return this")();});var Ae=v((Mf,Yr)=>{Yr.exports=function(h){try{return !!h()}catch{return !0}};});var De=v((Rf,$r)=>{var rl=Ae();$r.exports=!rl(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7});});var Tt=v((jf,Qr)=>{var il=Ae();Qr.exports=!il(function(){var h=function(){}.bind();return typeof h!="function"||h.hasOwnProperty("prototype")});});var bt=v((qf,Zr)=>{var al=Tt(),Et=Function.prototype.call;Zr.exports=al?Et.bind(Et):function(){return Et.apply(Et,arguments)};});var ri=v(si=>{var ei={}.propertyIsEnumerable,ti=Object.getOwnPropertyDescriptor,nl=ti&&!ei.call({1:2},1);si.f=nl?function(l){var p=ti(this,l);return !!p&&p.enumerable}:ei;});var ms=v((_f,ii)=>{ii.exports=function(h,l){return {enumerable:!(h&1),configurable:!(h&2),writable:!(h&4),value:l}};});var ie=v((zf,oi)=>{var ai=Tt(),ni=Function.prototype,ol=ni.bind,ys=ni.call,hl=ai&&ol.bind(ys,ys);oi.exports=ai?function(h){return h&&hl(h)}:function(h){return h&&function(){return ys.apply(h,arguments)}};});var vt=v((Kf,li)=>{var hi=ie(),ll=hi({}.toString),ul=hi("".slice);li.exports=function(h){return ul(ll(h),8,-1)};});var ci=v((Vf,ui)=>{var cl=W(),pl=ie(),fl=Ae(),dl=vt(),xs=cl.Object,ml=pl("".split);ui.exports=fl(function(){return !xs("z").propertyIsEnumerable(0)})?function(h){return dl(h)=="String"?ml(h,""):xs(h)}:xs;});var gs=v((Hf,pi)=>{var yl=W(),xl=yl.TypeError;pi.exports=function(h){if(h==null)throw xl("Can't call method on "+h);return h};});var Ct=v((Wf,fi)=>{var gl=ci(),Al=gs();fi.exports=function(h){return gl(Al(h))};});var ae=v((Gf,di)=>{di.exports=function(h){return typeof h=="function"};});var Fe=v((Xf,mi)=>{var Pl=ae();mi.exports=function(h){return typeof h=="object"?h!==null:Pl(h)};});var $e=v((Jf,yi)=>{var As=W(),Tl=ae(),El=function(h){return Tl(h)?h:void 0};yi.exports=function(h,l){return arguments.length<2?El(As[h]):As[h]&&As[h][l]};});var gi=v((Yf,xi)=>{var bl=ie();xi.exports=bl({}.isPrototypeOf);});var Pi=v(($f,Ai)=>{var vl=$e();Ai.exports=vl("navigator","userAgent")||"";});var wi=v((Qf,Si)=>{var Ci=W(),Ps=Pi(),Ti=Ci.process,Ei=Ci.Deno,bi=Ti&&Ti.versions||Ei&&Ei.version,vi=bi&&bi.v8,he,St;vi&&(he=vi.split("."),St=he[0]>0&&he[0]<4?1:+(he[0]+he[1]));!St&&Ps&&(he=Ps.match(/Edge\/(\d+)/),(!he||he[1]>=74)&&(he=Ps.match(/Chrome\/(\d+)/),he&&(St=+he[1])));Si.exports=St;});var Ts=v((Zf,Ii)=>{var Ni=wi(),Cl=Ae();Ii.exports=!!Object.getOwnPropertySymbols&&!Cl(function(){var h=Symbol();return !String(h)||!(Object(h)instanceof Symbol)||!Symbol.sham&&Ni&&Ni<41});});var Es=v((ed,ki)=>{var Sl=Ts();ki.exports=Sl&&!Symbol.sham&&typeof Symbol.iterator=="symbol";});var bs=v((td,Di)=>{var wl=W(),Nl=$e(),Il=ae(),kl=gi(),Dl=Es(),Fl=wl.Object;Di.exports=Dl?function(h){return typeof h=="symbol"}:function(h){var l=Nl("Symbol");return Il(l)&&kl(l.prototype,Fl(h))};});var Li=v((sd,Fi)=>{var Ll=W(),Ol=Ll.String;Fi.exports=function(h){try{return Ol(h)}catch{return "Object"}};});var wt=v((rd,Oi)=>{var Bl=W(),Ml=ae(),Rl=Li(),jl=Bl.TypeError;Oi.exports=function(h){if(Ml(h))return h;throw jl(Rl(h)+" is not a function")};});var Mi=v((id,Bi)=>{var ql=wt();Bi.exports=function(h,l){var p=h[l];return p==null?void 0:ql(p)};});var ji=v((ad,Ri)=>{var Ul=W(),vs=bt(),Cs=ae(),Ss=Fe(),_l=Ul.TypeError;Ri.exports=function(h,l){var p,d;if(l==="string"&&Cs(p=h.toString)&&!Ss(d=vs(p,h))||Cs(p=h.valueOf)&&!Ss(d=vs(p,h))||l!=="string"&&Cs(p=h.toString)&&!Ss(d=vs(p,h)))return d;throw _l("Can't convert object to primitive value")};});var Ui=v((nd,qi)=>{qi.exports=!1;});var Nt=v((od,zi)=>{var _i=W(),zl=Object.defineProperty;zi.exports=function(h,l){try{zl(_i,h,{value:l,configurable:!0,writable:!0});}catch{_i[h]=l;}return l};});var It=v((hd,Vi)=>{var Kl=W(),Vl=Nt(),Ki="__core-js_shared__",Hl=Kl[Ki]||Vl(Ki,{});Vi.exports=Hl;});var ws=v((ld,Wi)=>{var Wl=Ui(),Hi=It();(Wi.exports=function(h,l){return Hi[h]||(Hi[h]=l!==void 0?l:{})})("versions",[]).push({version:"3.21.1",mode:Wl?"pure":"global",copyright:"\xA9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.21.1/LICENSE",source:"https://github.com/zloirock/core-js"});});var Ns=v((ud,Gi)=>{var Gl=W(),Xl=gs(),Jl=Gl.Object;Gi.exports=function(h){return Jl(Xl(h))};});var Ce=v((cd,Xi)=>{var Yl=ie(),$l=Ns(),Ql=Yl({}.hasOwnProperty);Xi.exports=Object.hasOwn||function(l,p){return Ql($l(l),p)};});var Is=v((pd,Ji)=>{var Zl=ie(),eu=0,tu=Math.random(),su=Zl(1 .toString);Ji.exports=function(h){return "Symbol("+(h===void 0?"":h)+")_"+su(++eu+tu,36)};});var Qe=v((fd,ea)=>{var ru=W(),iu=ws(),Yi=Ce(),au=Is(),$i=Ts(),Zi=Es(),ze=iu("wks"),Le=ru.Symbol,Qi=Le&&Le.for,nu=Zi?Le:Le&&Le.withoutSetter||au;ea.exports=function(h){if(!Yi(ze,h)||!($i||typeof ze[h]=="string")){var l="Symbol."+h;$i&&Yi(Le,h)?ze[h]=Le[h]:Zi&&Qi?ze[h]=Qi(l):ze[h]=nu(l);}return ze[h]};});var ia=v((dd,ra)=>{var ou=W(),hu=bt(),ta=Fe(),sa=bs(),lu=Mi(),uu=ji(),cu=Qe(),pu=ou.TypeError,fu=cu("toPrimitive");ra.exports=function(h,l){if(!ta(h)||sa(h))return h;var p=lu(h,fu),d;if(p){if(l===void 0&&(l="default"),d=hu(p,h,l),!ta(d)||sa(d))return d;throw pu("Can't convert object to primitive value")}return l===void 0&&(l="number"),uu(h,l)};});var ks=v((md,aa)=>{var du=ia(),mu=bs();aa.exports=function(h){var l=du(h,"string");return mu(l)?l:l+""};});var ha=v((yd,oa)=>{var yu=W(),na=Fe(),Ds=yu.document,xu=na(Ds)&&na(Ds.createElement);oa.exports=function(h){return xu?Ds.createElement(h):{}};});var Fs=v((xd,la)=>{var gu=De(),Au=Ae(),Pu=ha();la.exports=!gu&&!Au(function(){return Object.defineProperty(Pu("div"),"a",{get:function(){return 7}}).a!=7});});var Ls=v(ca=>{var Tu=De(),Eu=bt(),bu=ri(),vu=ms(),Cu=Ct(),Su=ks(),wu=Ce(),Nu=Fs(),ua=Object.getOwnPropertyDescriptor;ca.f=Tu?ua:function(l,p){if(l=Cu(l),p=Su(p),Nu)try{return ua(l,p)}catch{}if(wu(l,p))return vu(!Eu(bu.f,l,p),l[p])};});var fa=v((Ad,pa)=>{var Iu=De(),ku=Ae();pa.exports=Iu&&ku(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42});});var Os=v((Pd,ma)=>{var da=W(),Du=Fe(),Fu=da.String,Lu=da.TypeError;ma.exports=function(h){if(Du(h))return h;throw Lu(Fu(h)+" is not an object")};});var qs=v(xa=>{var Ou=W(),Bu=De(),Mu=Fs(),Ru=fa(),kt=Os(),ya=ks(),ju=Ou.TypeError,Bs=Object.defineProperty,qu=Object.getOwnPropertyDescriptor,Ms="enumerable",Rs="configurable",js="writable";xa.f=Bu?Ru?function(l,p,d){if(kt(l),p=ya(p),kt(d),typeof l=="function"&&p==="prototype"&&"value"in d&&js in d&&!d[js]){var m=qu(l,p);m&&m[js]&&(l[p]=d.value,d={configurable:Rs in d?d[Rs]:m[Rs],enumerable:Ms in d?d[Ms]:m[Ms],writable:!1});}return Bs(l,p,d)}:Bs:function(l,p,d){if(kt(l),p=ya(p),kt(d),Mu)try{return Bs(l,p,d)}catch{}if("get"in d||"set"in d)throw ju("Accessors not supported");return "value"in d&&(l[p]=d.value),l};});var Dt=v((Ed,ga)=>{var Uu=De(),_u=qs(),zu=ms();ga.exports=Uu?function(h,l,p){return _u.f(h,l,zu(1,p))}:function(h,l,p){return h[l]=p,h};});var Ft=v((bd,Aa)=>{var Ku=ie(),Vu=ae(),Us=It(),Hu=Ku(Function.toString);Vu(Us.inspectSource)||(Us.inspectSource=function(h){return Hu(h)});Aa.exports=Us.inspectSource;});var Ea=v((vd,Ta)=>{var Wu=W(),Gu=ae(),Xu=Ft(),Pa=Wu.WeakMap;Ta.exports=Gu(Pa)&&/native code/.test(Xu(Pa));});var Ca=v((Cd,va)=>{var Ju=ws(),Yu=Is(),ba=Ju("keys");va.exports=function(h){return ba[h]||(ba[h]=Yu(h))};});var _s=v((Sd,Sa)=>{Sa.exports={};});var Fa=v((wd,Da)=>{var $u=Ea(),ka=W(),zs=ie(),Qu=Fe(),Zu=Dt(),Ks=Ce(),Vs=It(),ec=Ca(),tc=_s(),wa="Object already initialized",Ws=ka.TypeError,sc=ka.WeakMap,Lt,Ze,Ot,rc=function(h){return Ot(h)?Ze(h):Lt(h,{})},ic=function(h){return function(l){var p;if(!Qu(l)||(p=Ze(l)).type!==h)throw Ws("Incompatible receiver, "+h+" required");return p}};$u||Vs.state?(Se=Vs.state||(Vs.state=new sc),Na=zs(Se.get),Hs=zs(Se.has),Ia=zs(Se.set),Lt=function(h,l){if(Hs(Se,h))throw new Ws(wa);return l.facade=h,Ia(Se,h,l),l},Ze=function(h){return Na(Se,h)||{}},Ot=function(h){return Hs(Se,h)}):(Oe=ec("state"),tc[Oe]=!0,Lt=function(h,l){if(Ks(h,Oe))throw new Ws(wa);return l.facade=h,Zu(h,Oe,l),l},Ze=function(h){return Ks(h,Oe)?h[Oe]:{}},Ot=function(h){return Ks(h,Oe)});var Se,Na,Hs,Ia,Oe;Da.exports={set:Lt,get:Ze,has:Ot,enforce:rc,getterFor:ic};});var Ba=v((Nd,Oa)=>{var Gs=De(),ac=Ce(),La=Function.prototype,nc=Gs&&Object.getOwnPropertyDescriptor,Xs=ac(La,"name"),oc=Xs&&function(){}.name==="something",hc=Xs&&(!Gs||Gs&&nc(La,"name").configurable);Oa.exports={EXISTS:Xs,PROPER:oc,CONFIGURABLE:hc};});var Ua=v((Id,qa)=>{var lc=W(),Ma=ae(),uc=Ce(),Ra=Dt(),cc=Nt(),pc=Ft(),ja=Fa(),fc=Ba().CONFIGURABLE,dc=ja.get,mc=ja.enforce,yc=String(String).split("String");(qa.exports=function(h,l,p,d){var m=d?!!d.unsafe:!1,A=d?!!d.enumerable:!1,x=d?!!d.noTargetGet:!1,g=d&&d.name!==void 0?d.name:l,P;if(Ma(p)&&(String(g).slice(0,7)==="Symbol("&&(g="["+String(g).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!uc(p,"name")||fc&&p.name!==g)&&Ra(p,"name",g),P=mc(p),P.source||(P.source=yc.join(typeof g=="string"?g:""))),h===lc){A?h[l]=p:cc(l,p);return}else m?!x&&h[l]&&(A=!0):delete h[l];A?h[l]=p:Ra(h,l,p);})(Function.prototype,"toString",function(){return Ma(this)&&dc(this).source||pc(this)});});var Js=v((kd,_a)=>{var xc=Math.ceil,gc=Math.floor;_a.exports=function(h){var l=+h;return l!==l||l===0?0:(l>0?gc:xc)(l)};});var Ka=v((Dd,za)=>{var Ac=Js(),Pc=Math.max,Tc=Math.min;za.exports=function(h,l){var p=Ac(h);return p<0?Pc(p+l,0):Tc(p,l)};});var Ha=v((Fd,Va)=>{var Ec=Js(),bc=Math.min;Va.exports=function(h){return h>0?bc(Ec(h),9007199254740991):0};});var Bt=v((Ld,Wa)=>{var vc=Ha();Wa.exports=function(h){return vc(h.length)};});var Ja=v((Od,Xa)=>{var Cc=Ct(),Sc=Ka(),wc=Bt(),Ga=function(h){return function(l,p,d){var m=Cc(l),A=wc(m),x=Sc(d,A),g;if(h&&p!=p){for(;A>x;)if(g=m[x++],g!=g)return !0}else for(;A>x;x++)if((h||x in m)&&m[x]===p)return h||x||0;return !h&&-1}};Xa.exports={includes:Ga(!0),indexOf:Ga(!1)};});var Qa=v((Bd,$a)=>{var Nc=ie(),Ys=Ce(),Ic=Ct(),kc=Ja().indexOf,Dc=_s(),Ya=Nc([].push);$a.exports=function(h,l){var p=Ic(h),d=0,m=[],A;for(A in p)!Ys(Dc,A)&&Ys(p,A)&&Ya(m,A);for(;l.length>d;)Ys(p,A=l[d++])&&(~kc(m,A)||Ya(m,A));return m};});var en=v((Md,Za)=>{Za.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"];});var sn=v(tn=>{var Fc=Qa(),Lc=en(),Oc=Lc.concat("length","prototype");tn.f=Object.getOwnPropertyNames||function(l){return Fc(l,Oc)};});var an=v(rn=>{rn.f=Object.getOwnPropertySymbols;});var on=v((qd,nn)=>{var Bc=$e(),Mc=ie(),Rc=sn(),jc=an(),qc=Os(),Uc=Mc([].concat);nn.exports=Bc("Reflect","ownKeys")||function(l){var p=Rc.f(qc(l)),d=jc.f;return d?Uc(p,d(l)):p};});var un=v((Ud,ln)=>{var hn=Ce(),_c=on(),zc=Ls(),Kc=qs();ln.exports=function(h,l,p){for(var d=_c(l),m=Kc.f,A=zc.f,x=0;x<d.length;x++){var g=d[x];!hn(h,g)&&!(p&&hn(p,g))&&m(h,g,A(l,g));}};});var pn=v((_d,cn)=>{var Vc=Ae(),Hc=ae(),Wc=/#|\.prototype\./,et=function(h,l){var p=Xc[Gc(h)];return p==Yc?!0:p==Jc?!1:Hc(l)?Vc(l):!!l},Gc=et.normalize=function(h){return String(h).replace(Wc,".").toLowerCase()},Xc=et.data={},Jc=et.NATIVE="N",Yc=et.POLYFILL="P";cn.exports=et;});var Qs=v((zd,fn)=>{var $s=W(),$c=Ls().f,Qc=Dt(),Zc=Ua(),ep=Nt(),tp=un(),sp=pn();fn.exports=function(h,l){var p=h.target,d=h.global,m=h.stat,A,x,g,P,N,D;if(d?x=$s:m?x=$s[p]||ep(p,{}):x=($s[p]||{}).prototype,x)for(g in l){if(N=l[g],h.noTargetGet?(D=$c(x,g),P=D&&D.value):P=x[g],A=sp(d?g:p+(m?".":"#")+g,h.forced),!A&&P!==void 0){if(typeof N==typeof P)continue;tp(N,P);}(h.sham||P&&P.sham)&&Qc(N,"sham",!0),Zc(x,g,N,h);}};});var dn=v(()=>{var rp=Qs(),ip=W();rp({global:!0},{globalThis:ip});});var mn=v(()=>{dn();});var Zs=v((Gd,yn)=>{var ap=vt();yn.exports=Array.isArray||function(l){return ap(l)=="Array"};});var An=v((Xd,gn)=>{var xn=ie(),np=wt(),op=Tt(),hp=xn(xn.bind);gn.exports=function(h,l){return np(h),l===void 0?h:op?hp(h,l):function(){return h.apply(l,arguments)}};});var En=v((Jd,Tn)=>{var lp=W(),up=Zs(),cp=Bt(),pp=An(),fp=lp.TypeError,Pn=function(h,l,p,d,m,A,x,g){for(var P=m,N=0,D=x?pp(x,g):!1,T,L;N<d;){if(N in p){if(T=D?D(p[N],N,l):p[N],A>0&&up(T))L=cp(T),P=Pn(h,l,T,L,P,A-1)-1;else {if(P>=9007199254740991)throw fp("Exceed the acceptable array length");h[P]=T;}P++;}N++;}return P};Tn.exports=Pn;});var Cn=v((Yd,vn)=>{var dp=Qe(),mp=dp("toStringTag"),bn={};bn[mp]="z";vn.exports=String(bn)==="[object z]";});var wn=v(($d,Sn)=>{var yp=W(),xp=Cn(),gp=ae(),Mt=vt(),Ap=Qe(),Pp=Ap("toStringTag"),Tp=yp.Object,Ep=Mt(function(){return arguments}())=="Arguments",bp=function(h,l){try{return h[l]}catch{}};Sn.exports=xp?Mt:function(h){var l,p,d;return h===void 0?"Undefined":h===null?"Null":typeof(p=bp(l=Tp(h),Pp))=="string"?p:Ep?Mt(l):(d=Mt(l))=="Object"&&gp(l.callee)?"Arguments":d};});var Ln=v((Qd,Fn)=>{var vp=ie(),Cp=Ae(),Nn=ae(),Sp=wn(),wp=$e(),Np=Ft(),In=function(){},Ip=[],kn=wp("Reflect","construct"),er=/^\s*(?:class|function)\b/,kp=vp(er.exec),Dp=!er.exec(In),tt=function(l){if(!Nn(l))return !1;try{return kn(In,Ip,l),!0}catch{return !1}},Dn=function(l){if(!Nn(l))return !1;switch(Sp(l)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return !1}try{return Dp||!!kp(er,Np(l))}catch{return !0}};Dn.sham=!0;Fn.exports=!kn||Cp(function(){var h;return tt(tt.call)||!tt(Object)||!tt(function(){h=!0;})||h})?Dn:tt;});var Rn=v((Zd,Mn)=>{var Fp=W(),On=Zs(),Lp=Ln(),Op=Fe(),Bp=Qe(),Mp=Bp("species"),Bn=Fp.Array;Mn.exports=function(h){var l;return On(h)&&(l=h.constructor,Lp(l)&&(l===Bn||On(l.prototype))?l=void 0:Op(l)&&(l=l[Mp],l===null&&(l=void 0))),l===void 0?Bn:l};});var qn=v((em,jn)=>{var Rp=Rn();jn.exports=function(h,l){return new(Rp(h))(l===0?0:l)};});var Un=v(()=>{var jp=Qs(),qp=En(),Up=wt(),_p=Ns(),zp=Bt(),Kp=qn();jp({target:"Array",proto:!0},{flatMap:function(l){var p=_p(this),d=zp(p),m;return Up(l),m=Kp(p,0),m.length=qp(m,p,p,d,0,1,l,arguments.length>1?arguments[1]:void 0),m}});});var Ff=v((rm,Po)=>{var _n,zn,Kn,Vn,Hn;function st(h,l){return l||(l=h.slice(0)),Object.freeze(Object.defineProperties(h,{raw:{value:Object.freeze(l)}}))}mn();Un();var ir=Object.defineProperty,Vp=Object.getOwnPropertyDescriptor,ar=Object.getOwnPropertyNames,Hp=Object.prototype.hasOwnProperty,Yn=(h,l)=>function(){return h&&(l=(0, h[ar(h)[0]])(h=0)),l},H=(h,l)=>function(){return l||(0, h[ar(h)[0]])((l={exports:{}}).exports,l),l.exports},Wp=(h,l)=>{for(var p in l)ir(h,p,{get:l[p],enumerable:!0});},Gp=(h,l,p,d)=>{if(l&&typeof l=="object"||typeof l=="function")for(let m of ar(l))!Hp.call(h,m)&&m!==p&&ir(h,m,{get:()=>l[m],enumerable:!(d=Vp(l,m))||d.enumerable});return h},Xp=h=>Gp(ir({},"__esModule",{value:!0}),h),V=Yn({"<define:process>"(){}}),Jp=H({"src/utils/try-combinations.js"(h,l){V();function p(){let d;for(var m=arguments.length,A=new Array(m),x=0;x<m;x++)A[x]=arguments[x];for(let[g,P]of A.entries())try{return {result:P()}}catch(N){g===0&&(d=N);}return {error:d}}l.exports=p;}}),$n=H({"src/language-js/utils/get-shebang.js"(h,l){V();function p(d){if(!d.startsWith("#!"))return "";let m=d.indexOf(`
23
+ (function(e){module.exports=e();})(function(){var v=(h,l)=>()=>(l||h((l={exports:{}}).exports,l),l.exports);var W=v((Bf,Jr)=>{var Pt=function(h){return h&&h.Math==Math&&h};Jr.exports=Pt(typeof globalThis=="object"&&globalThis)||Pt(typeof window=="object"&&window)||Pt(typeof self=="object"&&self)||Pt(typeof index.commonjsGlobal=="object"&&index.commonjsGlobal)||function(){return this}()||Function("return this")();});var Ae=v((Mf,Yr)=>{Yr.exports=function(h){try{return !!h()}catch{return !0}};});var De=v((Rf,$r)=>{var rl=Ae();$r.exports=!rl(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7});});var Tt=v((jf,Qr)=>{var il=Ae();Qr.exports=!il(function(){var h=function(){}.bind();return typeof h!="function"||h.hasOwnProperty("prototype")});});var bt=v((qf,Zr)=>{var al=Tt(),Et=Function.prototype.call;Zr.exports=al?Et.bind(Et):function(){return Et.apply(Et,arguments)};});var ri=v(si=>{var ei={}.propertyIsEnumerable,ti=Object.getOwnPropertyDescriptor,nl=ti&&!ei.call({1:2},1);si.f=nl?function(l){var p=ti(this,l);return !!p&&p.enumerable}:ei;});var ms=v((_f,ii)=>{ii.exports=function(h,l){return {enumerable:!(h&1),configurable:!(h&2),writable:!(h&4),value:l}};});var ie=v((zf,oi)=>{var ai=Tt(),ni=Function.prototype,ol=ni.bind,ys=ni.call,hl=ai&&ol.bind(ys,ys);oi.exports=ai?function(h){return h&&hl(h)}:function(h){return h&&function(){return ys.apply(h,arguments)}};});var vt=v((Kf,li)=>{var hi=ie(),ll=hi({}.toString),ul=hi("".slice);li.exports=function(h){return ul(ll(h),8,-1)};});var ci=v((Vf,ui)=>{var cl=W(),pl=ie(),fl=Ae(),dl=vt(),xs=cl.Object,ml=pl("".split);ui.exports=fl(function(){return !xs("z").propertyIsEnumerable(0)})?function(h){return dl(h)=="String"?ml(h,""):xs(h)}:xs;});var gs=v((Hf,pi)=>{var yl=W(),xl=yl.TypeError;pi.exports=function(h){if(h==null)throw xl("Can't call method on "+h);return h};});var Ct=v((Wf,fi)=>{var gl=ci(),Al=gs();fi.exports=function(h){return gl(Al(h))};});var ae=v((Gf,di)=>{di.exports=function(h){return typeof h=="function"};});var Fe=v((Xf,mi)=>{var Pl=ae();mi.exports=function(h){return typeof h=="object"?h!==null:Pl(h)};});var $e=v((Jf,yi)=>{var As=W(),Tl=ae(),El=function(h){return Tl(h)?h:void 0};yi.exports=function(h,l){return arguments.length<2?El(As[h]):As[h]&&As[h][l]};});var gi=v((Yf,xi)=>{var bl=ie();xi.exports=bl({}.isPrototypeOf);});var Pi=v(($f,Ai)=>{var vl=$e();Ai.exports=vl("navigator","userAgent")||"";});var wi=v((Qf,Si)=>{var Ci=W(),Ps=Pi(),Ti=Ci.process,Ei=Ci.Deno,bi=Ti&&Ti.versions||Ei&&Ei.version,vi=bi&&bi.v8,he,St;vi&&(he=vi.split("."),St=he[0]>0&&he[0]<4?1:+(he[0]+he[1]));!St&&Ps&&(he=Ps.match(/Edge\/(\d+)/),(!he||he[1]>=74)&&(he=Ps.match(/Chrome\/(\d+)/),he&&(St=+he[1])));Si.exports=St;});var Ts=v((Zf,Ii)=>{var Ni=wi(),Cl=Ae();Ii.exports=!!Object.getOwnPropertySymbols&&!Cl(function(){var h=Symbol();return !String(h)||!(Object(h)instanceof Symbol)||!Symbol.sham&&Ni&&Ni<41});});var Es=v((ed,ki)=>{var Sl=Ts();ki.exports=Sl&&!Symbol.sham&&typeof Symbol.iterator=="symbol";});var bs=v((td,Di)=>{var wl=W(),Nl=$e(),Il=ae(),kl=gi(),Dl=Es(),Fl=wl.Object;Di.exports=Dl?function(h){return typeof h=="symbol"}:function(h){var l=Nl("Symbol");return Il(l)&&kl(l.prototype,Fl(h))};});var Li=v((sd,Fi)=>{var Ll=W(),Ol=Ll.String;Fi.exports=function(h){try{return Ol(h)}catch{return "Object"}};});var wt=v((rd,Oi)=>{var Bl=W(),Ml=ae(),Rl=Li(),jl=Bl.TypeError;Oi.exports=function(h){if(Ml(h))return h;throw jl(Rl(h)+" is not a function")};});var Mi=v((id,Bi)=>{var ql=wt();Bi.exports=function(h,l){var p=h[l];return p==null?void 0:ql(p)};});var ji=v((ad,Ri)=>{var Ul=W(),vs=bt(),Cs=ae(),Ss=Fe(),_l=Ul.TypeError;Ri.exports=function(h,l){var p,d;if(l==="string"&&Cs(p=h.toString)&&!Ss(d=vs(p,h))||Cs(p=h.valueOf)&&!Ss(d=vs(p,h))||l!=="string"&&Cs(p=h.toString)&&!Ss(d=vs(p,h)))return d;throw _l("Can't convert object to primitive value")};});var Ui=v((nd,qi)=>{qi.exports=!1;});var Nt=v((od,zi)=>{var _i=W(),zl=Object.defineProperty;zi.exports=function(h,l){try{zl(_i,h,{value:l,configurable:!0,writable:!0});}catch{_i[h]=l;}return l};});var It=v((hd,Vi)=>{var Kl=W(),Vl=Nt(),Ki="__core-js_shared__",Hl=Kl[Ki]||Vl(Ki,{});Vi.exports=Hl;});var ws=v((ld,Wi)=>{var Wl=Ui(),Hi=It();(Wi.exports=function(h,l){return Hi[h]||(Hi[h]=l!==void 0?l:{})})("versions",[]).push({version:"3.21.1",mode:Wl?"pure":"global",copyright:"\xA9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.21.1/LICENSE",source:"https://github.com/zloirock/core-js"});});var Ns=v((ud,Gi)=>{var Gl=W(),Xl=gs(),Jl=Gl.Object;Gi.exports=function(h){return Jl(Xl(h))};});var Ce=v((cd,Xi)=>{var Yl=ie(),$l=Ns(),Ql=Yl({}.hasOwnProperty);Xi.exports=Object.hasOwn||function(l,p){return Ql($l(l),p)};});var Is=v((pd,Ji)=>{var Zl=ie(),eu=0,tu=Math.random(),su=Zl(1 .toString);Ji.exports=function(h){return "Symbol("+(h===void 0?"":h)+")_"+su(++eu+tu,36)};});var Qe=v((fd,ea)=>{var ru=W(),iu=ws(),Yi=Ce(),au=Is(),$i=Ts(),Zi=Es(),ze=iu("wks"),Le=ru.Symbol,Qi=Le&&Le.for,nu=Zi?Le:Le&&Le.withoutSetter||au;ea.exports=function(h){if(!Yi(ze,h)||!($i||typeof ze[h]=="string")){var l="Symbol."+h;$i&&Yi(Le,h)?ze[h]=Le[h]:Zi&&Qi?ze[h]=Qi(l):ze[h]=nu(l);}return ze[h]};});var ia=v((dd,ra)=>{var ou=W(),hu=bt(),ta=Fe(),sa=bs(),lu=Mi(),uu=ji(),cu=Qe(),pu=ou.TypeError,fu=cu("toPrimitive");ra.exports=function(h,l){if(!ta(h)||sa(h))return h;var p=lu(h,fu),d;if(p){if(l===void 0&&(l="default"),d=hu(p,h,l),!ta(d)||sa(d))return d;throw pu("Can't convert object to primitive value")}return l===void 0&&(l="number"),uu(h,l)};});var ks=v((md,aa)=>{var du=ia(),mu=bs();aa.exports=function(h){var l=du(h,"string");return mu(l)?l:l+""};});var ha=v((yd,oa)=>{var yu=W(),na=Fe(),Ds=yu.document,xu=na(Ds)&&na(Ds.createElement);oa.exports=function(h){return xu?Ds.createElement(h):{}};});var Fs=v((xd,la)=>{var gu=De(),Au=Ae(),Pu=ha();la.exports=!gu&&!Au(function(){return Object.defineProperty(Pu("div"),"a",{get:function(){return 7}}).a!=7});});var Ls=v(ca=>{var Tu=De(),Eu=bt(),bu=ri(),vu=ms(),Cu=Ct(),Su=ks(),wu=Ce(),Nu=Fs(),ua=Object.getOwnPropertyDescriptor;ca.f=Tu?ua:function(l,p){if(l=Cu(l),p=Su(p),Nu)try{return ua(l,p)}catch{}if(wu(l,p))return vu(!Eu(bu.f,l,p),l[p])};});var fa=v((Ad,pa)=>{var Iu=De(),ku=Ae();pa.exports=Iu&&ku(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42});});var Os=v((Pd,ma)=>{var da=W(),Du=Fe(),Fu=da.String,Lu=da.TypeError;ma.exports=function(h){if(Du(h))return h;throw Lu(Fu(h)+" is not an object")};});var qs=v(xa=>{var Ou=W(),Bu=De(),Mu=Fs(),Ru=fa(),kt=Os(),ya=ks(),ju=Ou.TypeError,Bs=Object.defineProperty,qu=Object.getOwnPropertyDescriptor,Ms="enumerable",Rs="configurable",js="writable";xa.f=Bu?Ru?function(l,p,d){if(kt(l),p=ya(p),kt(d),typeof l=="function"&&p==="prototype"&&"value"in d&&js in d&&!d[js]){var m=qu(l,p);m&&m[js]&&(l[p]=d.value,d={configurable:Rs in d?d[Rs]:m[Rs],enumerable:Ms in d?d[Ms]:m[Ms],writable:!1});}return Bs(l,p,d)}:Bs:function(l,p,d){if(kt(l),p=ya(p),kt(d),Mu)try{return Bs(l,p,d)}catch{}if("get"in d||"set"in d)throw ju("Accessors not supported");return "value"in d&&(l[p]=d.value),l};});var Dt=v((Ed,ga)=>{var Uu=De(),_u=qs(),zu=ms();ga.exports=Uu?function(h,l,p){return _u.f(h,l,zu(1,p))}:function(h,l,p){return h[l]=p,h};});var Ft=v((bd,Aa)=>{var Ku=ie(),Vu=ae(),Us=It(),Hu=Ku(Function.toString);Vu(Us.inspectSource)||(Us.inspectSource=function(h){return Hu(h)});Aa.exports=Us.inspectSource;});var Ea=v((vd,Ta)=>{var Wu=W(),Gu=ae(),Xu=Ft(),Pa=Wu.WeakMap;Ta.exports=Gu(Pa)&&/native code/.test(Xu(Pa));});var Ca=v((Cd,va)=>{var Ju=ws(),Yu=Is(),ba=Ju("keys");va.exports=function(h){return ba[h]||(ba[h]=Yu(h))};});var _s=v((Sd,Sa)=>{Sa.exports={};});var Fa=v((wd,Da)=>{var $u=Ea(),ka=W(),zs=ie(),Qu=Fe(),Zu=Dt(),Ks=Ce(),Vs=It(),ec=Ca(),tc=_s(),wa="Object already initialized",Ws=ka.TypeError,sc=ka.WeakMap,Lt,Ze,Ot,rc=function(h){return Ot(h)?Ze(h):Lt(h,{})},ic=function(h){return function(l){var p;if(!Qu(l)||(p=Ze(l)).type!==h)throw Ws("Incompatible receiver, "+h+" required");return p}};$u||Vs.state?(Se=Vs.state||(Vs.state=new sc),Na=zs(Se.get),Hs=zs(Se.has),Ia=zs(Se.set),Lt=function(h,l){if(Hs(Se,h))throw new Ws(wa);return l.facade=h,Ia(Se,h,l),l},Ze=function(h){return Na(Se,h)||{}},Ot=function(h){return Hs(Se,h)}):(Oe=ec("state"),tc[Oe]=!0,Lt=function(h,l){if(Ks(h,Oe))throw new Ws(wa);return l.facade=h,Zu(h,Oe,l),l},Ze=function(h){return Ks(h,Oe)?h[Oe]:{}},Ot=function(h){return Ks(h,Oe)});var Se,Na,Hs,Ia,Oe;Da.exports={set:Lt,get:Ze,has:Ot,enforce:rc,getterFor:ic};});var Ba=v((Nd,Oa)=>{var Gs=De(),ac=Ce(),La=Function.prototype,nc=Gs&&Object.getOwnPropertyDescriptor,Xs=ac(La,"name"),oc=Xs&&function(){}.name==="something",hc=Xs&&(!Gs||Gs&&nc(La,"name").configurable);Oa.exports={EXISTS:Xs,PROPER:oc,CONFIGURABLE:hc};});var Ua=v((Id,qa)=>{var lc=W(),Ma=ae(),uc=Ce(),Ra=Dt(),cc=Nt(),pc=Ft(),ja=Fa(),fc=Ba().CONFIGURABLE,dc=ja.get,mc=ja.enforce,yc=String(String).split("String");(qa.exports=function(h,l,p,d){var m=d?!!d.unsafe:!1,A=d?!!d.enumerable:!1,x=d?!!d.noTargetGet:!1,g=d&&d.name!==void 0?d.name:l,P;if(Ma(p)&&(String(g).slice(0,7)==="Symbol("&&(g="["+String(g).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!uc(p,"name")||fc&&p.name!==g)&&Ra(p,"name",g),P=mc(p),P.source||(P.source=yc.join(typeof g=="string"?g:""))),h===lc){A?h[l]=p:cc(l,p);return}else m?!x&&h[l]&&(A=!0):delete h[l];A?h[l]=p:Ra(h,l,p);})(Function.prototype,"toString",function(){return Ma(this)&&dc(this).source||pc(this)});});var Js=v((kd,_a)=>{var xc=Math.ceil,gc=Math.floor;_a.exports=function(h){var l=+h;return l!==l||l===0?0:(l>0?gc:xc)(l)};});var Ka=v((Dd,za)=>{var Ac=Js(),Pc=Math.max,Tc=Math.min;za.exports=function(h,l){var p=Ac(h);return p<0?Pc(p+l,0):Tc(p,l)};});var Ha=v((Fd,Va)=>{var Ec=Js(),bc=Math.min;Va.exports=function(h){return h>0?bc(Ec(h),9007199254740991):0};});var Bt=v((Ld,Wa)=>{var vc=Ha();Wa.exports=function(h){return vc(h.length)};});var Ja=v((Od,Xa)=>{var Cc=Ct(),Sc=Ka(),wc=Bt(),Ga=function(h){return function(l,p,d){var m=Cc(l),A=wc(m),x=Sc(d,A),g;if(h&&p!=p){for(;A>x;)if(g=m[x++],g!=g)return !0}else for(;A>x;x++)if((h||x in m)&&m[x]===p)return h||x||0;return !h&&-1}};Xa.exports={includes:Ga(!0),indexOf:Ga(!1)};});var Qa=v((Bd,$a)=>{var Nc=ie(),Ys=Ce(),Ic=Ct(),kc=Ja().indexOf,Dc=_s(),Ya=Nc([].push);$a.exports=function(h,l){var p=Ic(h),d=0,m=[],A;for(A in p)!Ys(Dc,A)&&Ys(p,A)&&Ya(m,A);for(;l.length>d;)Ys(p,A=l[d++])&&(~kc(m,A)||Ya(m,A));return m};});var en=v((Md,Za)=>{Za.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"];});var sn=v(tn=>{var Fc=Qa(),Lc=en(),Oc=Lc.concat("length","prototype");tn.f=Object.getOwnPropertyNames||function(l){return Fc(l,Oc)};});var an=v(rn=>{rn.f=Object.getOwnPropertySymbols;});var on=v((qd,nn)=>{var Bc=$e(),Mc=ie(),Rc=sn(),jc=an(),qc=Os(),Uc=Mc([].concat);nn.exports=Bc("Reflect","ownKeys")||function(l){var p=Rc.f(qc(l)),d=jc.f;return d?Uc(p,d(l)):p};});var un=v((Ud,ln)=>{var hn=Ce(),_c=on(),zc=Ls(),Kc=qs();ln.exports=function(h,l,p){for(var d=_c(l),m=Kc.f,A=zc.f,x=0;x<d.length;x++){var g=d[x];!hn(h,g)&&!(p&&hn(p,g))&&m(h,g,A(l,g));}};});var pn=v((_d,cn)=>{var Vc=Ae(),Hc=ae(),Wc=/#|\.prototype\./,et=function(h,l){var p=Xc[Gc(h)];return p==Yc?!0:p==Jc?!1:Hc(l)?Vc(l):!!l},Gc=et.normalize=function(h){return String(h).replace(Wc,".").toLowerCase()},Xc=et.data={},Jc=et.NATIVE="N",Yc=et.POLYFILL="P";cn.exports=et;});var Qs=v((zd,fn)=>{var $s=W(),$c=Ls().f,Qc=Dt(),Zc=Ua(),ep=Nt(),tp=un(),sp=pn();fn.exports=function(h,l){var p=h.target,d=h.global,m=h.stat,A,x,g,P,N,D;if(d?x=$s:m?x=$s[p]||ep(p,{}):x=($s[p]||{}).prototype,x)for(g in l){if(N=l[g],h.noTargetGet?(D=$c(x,g),P=D&&D.value):P=x[g],A=sp(d?g:p+(m?".":"#")+g,h.forced),!A&&P!==void 0){if(typeof N==typeof P)continue;tp(N,P);}(h.sham||P&&P.sham)&&Qc(N,"sham",!0),Zc(x,g,N,h);}};});var dn=v(()=>{var rp=Qs(),ip=W();rp({global:!0},{globalThis:ip});});var mn=v(()=>{dn();});var Zs=v((Gd,yn)=>{var ap=vt();yn.exports=Array.isArray||function(l){return ap(l)=="Array"};});var An=v((Xd,gn)=>{var xn=ie(),np=wt(),op=Tt(),hp=xn(xn.bind);gn.exports=function(h,l){return np(h),l===void 0?h:op?hp(h,l):function(){return h.apply(l,arguments)}};});var En=v((Jd,Tn)=>{var lp=W(),up=Zs(),cp=Bt(),pp=An(),fp=lp.TypeError,Pn=function(h,l,p,d,m,A,x,g){for(var P=m,N=0,D=x?pp(x,g):!1,T,L;N<d;){if(N in p){if(T=D?D(p[N],N,l):p[N],A>0&&up(T))L=cp(T),P=Pn(h,l,T,L,P,A-1)-1;else {if(P>=9007199254740991)throw fp("Exceed the acceptable array length");h[P]=T;}P++;}N++;}return P};Tn.exports=Pn;});var Cn=v((Yd,vn)=>{var dp=Qe(),mp=dp("toStringTag"),bn={};bn[mp]="z";vn.exports=String(bn)==="[object z]";});var wn=v(($d,Sn)=>{var yp=W(),xp=Cn(),gp=ae(),Mt=vt(),Ap=Qe(),Pp=Ap("toStringTag"),Tp=yp.Object,Ep=Mt(function(){return arguments}())=="Arguments",bp=function(h,l){try{return h[l]}catch{}};Sn.exports=xp?Mt:function(h){var l,p,d;return h===void 0?"Undefined":h===null?"Null":typeof(p=bp(l=Tp(h),Pp))=="string"?p:Ep?Mt(l):(d=Mt(l))=="Object"&&gp(l.callee)?"Arguments":d};});var Ln=v((Qd,Fn)=>{var vp=ie(),Cp=Ae(),Nn=ae(),Sp=wn(),wp=$e(),Np=Ft(),In=function(){},Ip=[],kn=wp("Reflect","construct"),er=/^\s*(?:class|function)\b/,kp=vp(er.exec),Dp=!er.exec(In),tt=function(l){if(!Nn(l))return !1;try{return kn(In,Ip,l),!0}catch{return !1}},Dn=function(l){if(!Nn(l))return !1;switch(Sp(l)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return !1}try{return Dp||!!kp(er,Np(l))}catch{return !0}};Dn.sham=!0;Fn.exports=!kn||Cp(function(){var h;return tt(tt.call)||!tt(Object)||!tt(function(){h=!0;})||h})?Dn:tt;});var Rn=v((Zd,Mn)=>{var Fp=W(),On=Zs(),Lp=Ln(),Op=Fe(),Bp=Qe(),Mp=Bp("species"),Bn=Fp.Array;Mn.exports=function(h){var l;return On(h)&&(l=h.constructor,Lp(l)&&(l===Bn||On(l.prototype))?l=void 0:Op(l)&&(l=l[Mp],l===null&&(l=void 0))),l===void 0?Bn:l};});var qn=v((em,jn)=>{var Rp=Rn();jn.exports=function(h,l){return new(Rp(h))(l===0?0:l)};});var Un=v(()=>{var jp=Qs(),qp=En(),Up=wt(),_p=Ns(),zp=Bt(),Kp=qn();jp({target:"Array",proto:!0},{flatMap:function(l){var p=_p(this),d=zp(p),m;return Up(l),m=Kp(p,0),m.length=qp(m,p,p,d,0,1,l,arguments.length>1?arguments[1]:void 0),m}});});var Ff=v((rm,Po)=>{var _n,zn,Kn,Vn,Hn;function st(h,l){return l||(l=h.slice(0)),Object.freeze(Object.defineProperties(h,{raw:{value:Object.freeze(l)}}))}mn();Un();var ir=Object.defineProperty,Vp=Object.getOwnPropertyDescriptor,ar=Object.getOwnPropertyNames,Hp=Object.prototype.hasOwnProperty,Yn=(h,l)=>function(){return h&&(l=(0, h[ar(h)[0]])(h=0)),l},H=(h,l)=>function(){return l||(0, h[ar(h)[0]])((l={exports:{}}).exports,l),l.exports},Wp=(h,l)=>{for(var p in l)ir(h,p,{get:l[p],enumerable:!0});},Gp=(h,l,p,d)=>{if(l&&typeof l=="object"||typeof l=="function")for(let m of ar(l))!Hp.call(h,m)&&m!==p&&ir(h,m,{get:()=>l[m],enumerable:!(d=Vp(l,m))||d.enumerable});return h},Xp=h=>Gp(ir({},"__esModule",{value:!0}),h),V=Yn({"<define:process>"(){}}),Jp=H({"src/utils/try-combinations.js"(h,l){V();function p(){let d;for(var m=arguments.length,A=new Array(m),x=0;x<m;x++)A[x]=arguments[x];for(let[g,P]of A.entries())try{return {result:P()}}catch(N){g===0&&(d=N);}return {error:d}}l.exports=p;}}),$n=H({"src/language-js/utils/get-shebang.js"(h,l){V();function p(d){if(!d.startsWith("#!"))return "";let m=d.indexOf(`
24
24
  `);return m===-1?d:d.slice(0,m)}l.exports=p;}}),Yp=H({"src/utils/text/skip-inline-comment.js"(h,l){V();function p(d,m){if(m===!1)return !1;if(d.charAt(m)==="/"&&d.charAt(m+1)==="*"){for(let A=m+2;A<d.length;++A)if(d.charAt(A)==="*"&&d.charAt(A+1)==="/")return A+2}return m}l.exports=p;}}),$p=H({"src/utils/text/skip-newline.js"(h,l){V();function p(d,m,A){let x=A&&A.backwards;if(m===!1)return !1;let g=d.charAt(m);if(x){if(d.charAt(m-1)==="\r"&&g===`
25
25
  `)return m-2;if(g===`
26
26
  `||g==="\r"||g==="\u2028"||g==="\u2029")return m-1}else {if(g==="\r"&&d.charAt(m+1)===`
@@ -49,7 +49,7 @@ var parserBabel$2 = {exports: {}};
49
49
  `),cooked:i===null?null:i.slice(1,c)},n.tail=o,this.next(),this.finishNode(n,"TemplateElement"),this.resetEndLocation(n,m(this.state.lastTokEndLoc,c)),n}parseTemplate(t){let e=this.startNode();e.expressions=[];let s=this.parseTemplateElement(t);for(e.quasis=[s];!s.tail;)e.expressions.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),e.quasis.push(s=this.parseTemplateElement(t));return this.finishNode(e,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(t,e,s,r){s&&this.expectPlugin("recordAndTuple");let i=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let a=Object.create(null),n=!0,o=this.startNode();for(o.properties=[],this.next();!this.match(t);){if(n)n=!1;else if(this.expect(12),this.match(t)){this.addTrailingCommaExtraToNode(o);break}let f;e?f=this.parseBindingProperty():(f=this.parsePropertyDefinition(r),this.checkProto(f,s,a,r)),s&&!this.isObjectProperty(f)&&f.type!=="SpreadElement"&&this.raise(u.InvalidRecordProperty,{at:f}),f.shorthand&&this.addExtra(f,"shorthand",!0),o.properties.push(f);}this.next(),this.state.inFSharpPipelineDirectBody=i;let c="ObjectExpression";return e?c="ObjectPattern":s&&(c="RecordExpression"),this.finishNode(o,c)}addTrailingCommaExtraToNode(t){this.addExtra(t,"trailingComma",this.state.lastTokStart),this.addExtra(t,"trailingCommaLoc",this.state.lastTokStartLoc,!1);}maybeAsyncOrAccessorProp(t){return !t.computed&&t.key.type==="Identifier"&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))}parsePropertyDefinition(t){let e=[];if(this.match(26))for(this.hasPlugin("decorators")&&this.raise(u.UnsupportedPropertyDecorator,{at:this.state.startLoc});this.match(26);)e.push(this.parseDecorator());let s=this.startNode(),r=!1,i=!1,a,n;if(this.match(21))return e.length&&this.unexpected(),this.parseSpread();e.length&&(s.decorators=e,e=[]),s.method=!1,t&&(a=this.state.start,n=this.state.startLoc);let o=this.eat(55);this.parsePropertyNamePrefixOperator(s);let c=this.state.containsEsc,f=this.parsePropertyName(s,t);if(!o&&!c&&this.maybeAsyncOrAccessorProp(s)){let y=f.name;y==="async"&&!this.hasPrecedingLineBreak()&&(r=!0,this.resetPreviousNodeTrailingComments(f),o=this.eat(55),this.parsePropertyName(s)),(y==="get"||y==="set")&&(i=!0,this.resetPreviousNodeTrailingComments(f),s.kind=y,this.match(55)&&(o=!0,this.raise(u.AccessorIsGenerator,{at:this.state.curPosition(),kind:y}),this.next()),this.parsePropertyName(s));}return this.parseObjPropValue(s,a,n,o,r,!1,i,t),s}getGetterSetterExpectedParamCount(t){return t.kind==="get"?0:1}getObjectOrClassMethodParams(t){return t.params}checkGetterSetterParams(t){var e;let s=this.getGetterSetterExpectedParamCount(t),r=this.getObjectOrClassMethodParams(t);r.length!==s&&this.raise(t.kind==="get"?u.BadGetterArity:u.BadSetterArity,{at:t}),t.kind==="set"&&((e=r[r.length-1])==null?void 0:e.type)==="RestElement"&&this.raise(u.BadSetterRestParameter,{at:t});}parseObjectMethod(t,e,s,r,i){if(i)return this.parseMethod(t,e,!1,!1,!1,"ObjectMethod"),this.checkGetterSetterParams(t),t;if(s||e||this.match(10))return r&&this.unexpected(),t.kind="method",t.method=!0,this.parseMethod(t,e,s,!1,!1,"ObjectMethod")}parseObjectProperty(t,e,s,r,i){if(t.shorthand=!1,this.eat(14))return t.value=r?this.parseMaybeDefault(this.state.start,this.state.startLoc):this.parseMaybeAssignAllowIn(i),this.finishNode(t,"ObjectProperty");if(!t.computed&&t.key.type==="Identifier"){if(this.checkReservedWord(t.key.name,t.key.loc.start,!0,!1),r)t.value=this.parseMaybeDefault(e,s,ge(t.key));else if(this.match(29)){let a=this.state.startLoc;i!=null?i.shorthandAssignLoc===null&&(i.shorthandAssignLoc=a):this.raise(u.InvalidCoverInitializedName,{at:a}),t.value=this.parseMaybeDefault(e,s,ge(t.key));}else t.value=ge(t.key);return t.shorthand=!0,this.finishNode(t,"ObjectProperty")}}parseObjPropValue(t,e,s,r,i,a,n,o){let c=this.parseObjectMethod(t,r,i,a,n)||this.parseObjectProperty(t,e,s,a,o);return c||this.unexpected(),c}parsePropertyName(t,e){if(this.eat(0))t.computed=!0,t.key=this.parseMaybeAssignAllowIn(),this.expect(3);else {let{type:s,value:r}=this.state,i;if(pe(s))i=this.parseIdentifier(!0);else switch(s){case 130:i=this.parseNumericLiteral(r);break;case 129:i=this.parseStringLiteral(r);break;case 131:i=this.parseBigIntLiteral(r);break;case 132:i=this.parseDecimalLiteral(r);break;case 134:{let a=this.state.startLoc;e!=null?e.privateKeyLoc===null&&(e.privateKeyLoc=a):this.raise(u.UnexpectedPrivateField,{at:a}),i=this.parsePrivateName();break}default:throw this.unexpected()}t.key=i,s!==134&&(t.computed=!1);}return t.key}initFunction(t,e){t.id=null,t.generator=!1,t.async=!!e;}parseMethod(t,e,s,r,i,a){let n=arguments.length>6&&arguments[6]!==void 0?arguments[6]:!1;this.initFunction(t,s),t.generator=!!e;let o=r;return this.scope.enter(me|ot|(n?we:0)|(i?gr:0)),this.prodParam.enter(xt(s,t.generator)),this.parseFunctionParams(t,o),this.parseFunctionBodyAndFinish(t,a,!0),this.prodParam.exit(),this.scope.exit(),t}parseArrayLike(t,e,s,r){s&&this.expectPlugin("recordAndTuple");let i=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let a=this.startNode();return this.next(),a.elements=this.parseExprList(t,!s,r,a),this.state.inFSharpPipelineDirectBody=i,this.finishNode(a,s?"TupleExpression":"ArrayExpression")}parseArrowExpression(t,e,s,r){this.scope.enter(me|Xt);let i=xt(s,!1);!this.match(5)&&this.prodParam.hasIn&&(i|=Ue),this.prodParam.enter(i),this.initFunction(t,s);let a=this.state.maybeInArrowParameters;return e&&(this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(t,e,r)),this.state.maybeInArrowParameters=!1,this.parseFunctionBody(t,!0),this.prodParam.exit(),this.scope.exit(),this.state.maybeInArrowParameters=a,this.finishNode(t,"ArrowFunctionExpression")}setArrowFunctionParameters(t,e,s){t.params=this.toAssignableList(e,s,!1);}parseFunctionBodyAndFinish(t,e){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;this.parseFunctionBody(t,!1,s),this.finishNode(t,e);}parseFunctionBody(t,e){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=e&&!this.match(5);if(this.expressionScope.enter(Fr()),r)t.body=this.parseMaybeAssign(),this.checkParams(t,!1,e,!1);else {let i=this.state.strict,a=this.state.labels;this.state.labels=[],this.prodParam.enter(this.prodParam.currentFlags()|Or),t.body=this.parseBlock(!0,!1,n=>{let o=!this.isSimpleParamList(t.params);n&&o&&this.raise(u.IllegalLanguageModeDirective,{at:(t.kind==="method"||t.kind==="constructor")&&!!t.key?t.key.loc.end:t});let c=!i&&this.state.strict;this.checkParams(t,!this.state.strict&&!e&&!s&&!o,e,c),this.state.strict&&t.id&&this.checkIdentifier(t.id,Ho,c);}),this.prodParam.exit(),this.state.labels=a;}this.expressionScope.exit();}isSimpleParameter(t){return t.type==="Identifier"}isSimpleParamList(t){for(let e=0,s=t.length;e<s;e++)if(!this.isSimpleParameter(t[e]))return !1;return !0}checkParams(t,e,s){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,i=!e&&new Set,a={type:"FormalParameters"};for(let n of t.params)this.checkLVal(n,{in:a,binding:pt,checkClashes:i,strictModeChanged:r});}parseExprList(t,e,s,r){let i=[],a=!0;for(;!this.eat(t);){if(a)a=!1;else if(this.expect(12),this.match(t)){r&&this.addTrailingCommaExtraToNode(r),this.next();break}i.push(this.parseExprListItem(e,s));}return i}parseExprListItem(t,e,s){let r;if(this.match(12))t||this.raise(u.UnexpectedToken,{at:this.state.curPosition(),unexpected:","}),r=null;else if(this.match(21)){let i=this.state.start,a=this.state.startLoc;r=this.parseParenItem(this.parseSpread(e),i,a);}else if(this.match(17)){this.expectPlugin("partialApplication"),s||this.raise(u.UnexpectedArgumentPlaceholder,{at:this.state.startLoc});let i=this.startNode();this.next(),r=this.finishNode(i,"ArgumentPlaceholder");}else r=this.parseMaybeAssignAllowIn(e,this.parseParenItem);return r}parseIdentifier(t){let e=this.startNode(),s=this.parseIdentifierName(e.start,t);return this.createIdentifier(e,s)}createIdentifier(t,e){return t.name=e,t.loc.identifierName=e,this.finishNode(t,"Identifier")}parseIdentifierName(t,e){let s,{startLoc:r,type:i}=this.state;if(pe(i))s=this.state.value;else throw this.unexpected();let a=bo(i);return e?a&&this.replaceToken(128):this.checkReservedWord(s,r,a,!1),this.next(),s}checkReservedWord(t,e,s,r){if(t.length>10||!zo(t))return;if(t==="yield"){if(this.prodParam.hasYield){this.raise(u.YieldBindingIdentifier,{at:e});return}}else if(t==="await"){if(this.prodParam.hasAwait){this.raise(u.AwaitBindingIdentifier,{at:e});return}if(this.scope.inStaticBlock){this.raise(u.AwaitBindingIdentifierInStaticBlock,{at:e});return}this.expressionScope.recordAsyncArrowParametersError({at:e});}else if(t==="arguments"&&this.scope.inClassAndNotInNonArrowFunction){this.raise(u.ArgumentsInClass,{at:e});return}if(s&&qo(t)){this.raise(u.UnexpectedKeyword,{at:e,keyword:t});return}(this.state.strict?r?yr:dr:fr)(t,this.inModule)&&this.raise(u.UnexpectedReservedWord,{at:e,reservedWord:t});}isAwaitAllowed(){return !!(this.prodParam.hasAwait||this.options.allowAwaitOutsideFunction&&!this.scope.inFunction)}parseAwait(t,e){let s=this.startNodeAt(t,e);return this.expressionScope.recordParameterInitializerError(u.AwaitExpressionFormalParameter,{at:s}),this.eat(55)&&this.raise(u.ObsoleteAwaitStar,{at:s}),!this.scope.inFunction&&!this.options.allowAwaitOutsideFunction&&(this.isAmbiguousAwait()?this.ambiguousScriptDifferentAst=!0:this.sawUnambiguousESM=!0),this.state.soloAwait||(s.argument=this.parseMaybeUnary(null,!0)),this.finishNode(s,"AwaitExpression")}isAmbiguousAwait(){if(this.hasPrecedingLineBreak())return !0;let{type:t}=this.state;return t===53||t===10||t===0||nt(t)||t===133||t===56||this.hasPlugin("v8intrinsic")&&t===54}parseYield(){let t=this.startNode();this.expressionScope.recordParameterInitializerError(u.YieldInParameter,{at:t}),this.next();let e=!1,s=null;if(!this.hasPrecedingLineBreak())switch(e=this.eat(55),this.state.type){case 13:case 135:case 8:case 11:case 3:case 9:case 14:case 12:if(!e)break;default:s=this.parseMaybeAssign();}return t.delegate=e,t.argument=s,this.finishNode(t,"YieldExpression")}checkPipelineAtInfixOperator(t,e){this.hasPlugin(["pipelineOperator",{proposal:"smart"}])&&t.type==="SequenceExpression"&&this.raise(u.PipelineHeadSequenceExpression,{at:e});}parseSmartPipelineBodyInStyle(t,e,s){let r=this.startNodeAt(e,s);return this.isSimpleReference(t)?(r.callee=t,this.finishNode(r,"PipelineBareFunction")):(this.checkSmartPipeTopicBodyEarlyErrors(s),r.expression=t,this.finishNode(r,"PipelineTopicExpression"))}isSimpleReference(t){switch(t.type){case"MemberExpression":return !t.computed&&this.isSimpleReference(t.object);case"Identifier":return !0;default:return !1}}checkSmartPipeTopicBodyEarlyErrors(t){if(this.match(19))throw this.raise(u.PipelineBodyNoArrow,{at:this.state.startLoc});this.topicReferenceWasUsedInCurrentContext()||this.raise(u.PipelineTopicUnused,{at:t});}withTopicBindingContext(t){let e=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return t()}finally{this.state.topicContext=e;}}withSmartMixTopicForbiddingContext(t){if(this.hasPlugin(["pipelineOperator",{proposal:"smart"}])){let e=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};try{return t()}finally{this.state.topicContext=e;}}else return t()}withSoloAwaitPermittingContext(t){let e=this.state.soloAwait;this.state.soloAwait=!0;try{return t()}finally{this.state.soloAwait=e;}}allowInAnd(t){let e=this.prodParam.currentFlags();if(Ue&~e){this.prodParam.enter(e|Ue);try{return t()}finally{this.prodParam.exit();}}return t()}disallowInAnd(t){let e=this.prodParam.currentFlags();if(Ue&e){this.prodParam.enter(e&~Ue);try{return t()}finally{this.prodParam.exit();}}return t()}registerTopicReference(){this.state.topicContext.maxTopicIndex=0;}topicReferenceIsAllowedInCurrentContext(){return this.state.topicContext.maxNumOfResolvableTopics>=1}topicReferenceWasUsedInCurrentContext(){return this.state.topicContext.maxTopicIndex!=null&&this.state.topicContext.maxTopicIndex>=0}parseFSharpPipelineBody(t){let e=this.state.start,s=this.state.startLoc;this.state.potentialArrowAt=this.state.start;let r=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;let i=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),e,s,t);return this.state.inFSharpPipelineDirectBody=r,i}parseModuleExpression(){this.expectPlugin("moduleBlocks");let t=this.startNode();this.next(),this.eat(5);let e=this.initializeScopes(!0);this.enterInitialScopes();let s=this.startNode();try{t.body=this.parseProgram(s,8,"module");}finally{e();}return this.eat(8),this.finishNode(t,"ModuleExpression")}parsePropertyNamePrefixOperator(t){}},ps={kind:"loop"},Wh={kind:"switch"},Gh=0,fs=1,Hr=2,Wr=4,Xh=/[\uD800-\uDFFF]/u,ds=/in(?:stanceof)?/y;function Jh(t,e){for(let s=0;s<t.length;s++){let r=t[s],{type:i}=r;if(typeof i=="number"){{if(i===134){let{loc:a,start:n,value:o,end:c}=r,f=n+1,y=m(a.start,1);t.splice(s,1,new be({type:fe(27),value:"#",start:n,end:f,startLoc:a.start,endLoc:y}),new be({type:fe(128),value:o,start:f,end:c,startLoc:y,endLoc:a.end})),s++;continue}if(nt(i)){let{loc:a,start:n,value:o,end:c}=r,f=n+1,y=m(a.start,1),C;e.charCodeAt(n)===96?C=new be({type:fe(22),value:"`",start:n,end:f,startLoc:a.start,endLoc:y}):C=new be({type:fe(8),value:"}",start:n,end:f,startLoc:a.start,endLoc:y});let S,I,M,R;i===24?(I=c-1,M=m(a.end,-1),S=o===null?null:o.slice(1,-1),R=new be({type:fe(22),value:"`",start:I,end:c,startLoc:M,endLoc:a.end})):(I=c-2,M=m(a.end,-2),S=o===null?null:o.slice(1,-2),R=new be({type:fe(23),value:"${",start:I,end:c,startLoc:M,endLoc:a.end})),t.splice(s,1,C,new be({type:fe(20),value:S,start:f,end:I,startLoc:y,endLoc:M}),R),s+=2;continue}}r.type=fe(i);}}return t}var Yh=class extends Hh{parseTopLevel(t,e){return t.program=this.parseProgram(e),t.comments=this.state.comments,this.options.tokens&&(t.tokens=Jh(this.tokens,this.input)),this.finishNode(t,"File")}parseProgram(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:135,s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.options.sourceType;if(t.sourceType=s,t.interpreter=this.parseInterpreterDirective(),this.parseBlockBody(t,!0,!0,e),this.inModule&&!this.options.allowUndeclaredExports&&this.scope.undefinedExports.size>0)for(let[r,i]of Array.from(this.scope.undefinedExports))this.raise(u.ModuleExportUndefined,{at:i,localName:r});return this.finishNode(t,"Program")}stmtToDirective(t){let e=t;e.type="Directive",e.value=e.expression,delete e.expression;let s=e.value,r=s.value,i=this.input.slice(s.start,s.end),a=s.value=i.slice(1,-1);return this.addExtra(s,"raw",i),this.addExtra(s,"rawValue",a),this.addExtra(s,"expressionValue",r),s.type="DirectiveLiteral",e}parseInterpreterDirective(){if(!this.match(28))return null;let t=this.startNode();return t.value=this.state.value,this.next(),this.finishNode(t,"InterpreterDirective")}isLet(t){return this.isContextual(99)?this.isLetKeyword(t):!1}isLetKeyword(t){let e=this.nextTokenStart(),s=this.codePointAtPos(e);if(s===92||s===91)return !0;if(t)return !1;if(s===123)return !0;if(de(s)){if(ds.lastIndex=e,ds.test(this.input)){let r=this.codePointAtPos(ds.lastIndex);if(!Me(r)&&r!==92)return !1}return !0}return !1}parseStatement(t,e){return this.match(26)&&this.parseDecorators(!0),this.parseStatementContent(t,e)}parseStatementContent(t,e){let s=this.state.type,r=this.startNode(),i;switch(this.isLet(t)&&(s=74,i="let"),s){case 60:return this.parseBreakContinueStatement(r,!0);case 63:return this.parseBreakContinueStatement(r,!1);case 64:return this.parseDebuggerStatement(r);case 90:return this.parseDoStatement(r);case 91:return this.parseForStatement(r);case 68:if(this.lookaheadCharCode()===46)break;return t&&(this.state.strict?this.raise(u.StrictFunction,{at:this.state.startLoc}):t!=="if"&&t!=="label"&&this.raise(u.SloppyFunction,{at:this.state.startLoc})),this.parseFunctionStatement(r,!1,!t);case 80:return t&&this.unexpected(),this.parseClass(r,!0);case 69:return this.parseIfStatement(r);case 70:return this.parseReturnStatement(r);case 71:return this.parseSwitchStatement(r);case 72:return this.parseThrowStatement(r);case 73:return this.parseTryStatement(r);case 75:case 74:return i=i||this.state.value,t&&i!=="var"&&this.raise(u.UnexpectedLexicalDeclaration,{at:this.state.startLoc}),this.parseVarStatement(r,i);case 92:return this.parseWhileStatement(r);case 76:return this.parseWithStatement(r);case 5:return this.parseBlock();case 13:return this.parseEmptyStatement(r);case 83:{let o=this.lookaheadCharCode();if(o===40||o===46)break}case 82:{!this.options.allowImportExportEverywhere&&!e&&this.raise(u.UnexpectedImportExport,{at:this.state.startLoc}),this.next();let o;return s===83?(o=this.parseImport(r),o.type==="ImportDeclaration"&&(!o.importKind||o.importKind==="value")&&(this.sawUnambiguousESM=!0)):(o=this.parseExport(r),(o.type==="ExportNamedDeclaration"&&(!o.exportKind||o.exportKind==="value")||o.type==="ExportAllDeclaration"&&(!o.exportKind||o.exportKind==="value")||o.type==="ExportDefaultDeclaration")&&(this.sawUnambiguousESM=!0)),this.assertModuleNodeAllowed(r),o}default:if(this.isAsyncFunction())return t&&this.raise(u.AsyncFunctionInSingleStatementContext,{at:this.state.startLoc}),this.next(),this.parseFunctionStatement(r,!0,!t)}let a=this.state.value,n=this.parseExpression();return K(s)&&n.type==="Identifier"&&this.eat(14)?this.parseLabeledStatement(r,a,n,t):this.parseExpressionStatement(r,n)}assertModuleNodeAllowed(t){!this.options.allowImportExportEverywhere&&!this.inModule&&this.raise(u.ImportOutsideModule,{at:t});}takeDecorators(t){let e=this.state.decoratorStack[this.state.decoratorStack.length-1];e.length&&(t.decorators=e,this.resetStartLocationFromNode(t,e[0]),this.state.decoratorStack[this.state.decoratorStack.length-1]=[]);}canHaveLeadingDecorator(){return this.match(80)}parseDecorators(t){let e=this.state.decoratorStack[this.state.decoratorStack.length-1];for(;this.match(26);){let s=this.parseDecorator();e.push(s);}if(this.match(82))t||this.unexpected(),this.hasPlugin("decorators")&&!this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(u.DecoratorExportClass,{at:this.state.startLoc});else if(!this.canHaveLeadingDecorator())throw this.raise(u.UnexpectedLeadingDecorator,{at:this.state.startLoc})}parseDecorator(){this.expectOnePlugin(["decorators-legacy","decorators"]);let t=this.startNode();if(this.next(),this.hasPlugin("decorators")){this.state.decoratorStack.push([]);let e=this.state.start,s=this.state.startLoc,r;if(this.eat(10))r=this.parseExpression(),this.expect(11);else for(r=this.parseIdentifier(!1);this.eat(16);){let i=this.startNodeAt(e,s);i.object=r,i.property=this.parseIdentifier(!0),i.computed=!1,r=this.finishNode(i,"MemberExpression");}t.expression=this.parseMaybeDecoratorArguments(r),this.state.decoratorStack.pop();}else t.expression=this.parseExprSubscripts();return this.finishNode(t,"Decorator")}parseMaybeDecoratorArguments(t){if(this.eat(10)){let e=this.startNodeAtNode(t);return e.callee=t,e.arguments=this.parseCallExpressionArguments(11,!1),this.toReferencedList(e.arguments),this.finishNode(e,"CallExpression")}return t}parseBreakContinueStatement(t,e){return this.next(),this.isLineTerminator()?t.label=null:(t.label=this.parseIdentifier(),this.semicolon()),this.verifyBreakContinue(t,e),this.finishNode(t,e?"BreakStatement":"ContinueStatement")}verifyBreakContinue(t,e){let s;for(s=0;s<this.state.labels.length;++s){let r=this.state.labels[s];if((t.label==null||r.name===t.label.name)&&(r.kind!=null&&(e||r.kind==="loop")||t.label&&e))break}if(s===this.state.labels.length){let r=e?"BreakStatement":"ContinueStatement";this.raise(u.IllegalBreakContinue,{at:t,type:r});}}parseDebuggerStatement(t){return this.next(),this.semicolon(),this.finishNode(t,"DebuggerStatement")}parseHeaderExpression(){this.expect(10);let t=this.parseExpression();return this.expect(11),t}parseDoStatement(t){return this.next(),this.state.labels.push(ps),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement("do")),this.state.labels.pop(),this.expect(92),t.test=this.parseHeaderExpression(),this.eat(13),this.finishNode(t,"DoWhileStatement")}parseForStatement(t){this.next(),this.state.labels.push(ps);let e=null;if(this.isAwaitAllowed()&&this.eatContextual(96)&&(e=this.state.lastTokStartLoc),this.scope.enter(Re),this.expect(10),this.match(13))return e!==null&&this.unexpected(e),this.parseFor(t,null);let s=this.isContextual(99),r=s&&this.isLetKeyword();if(this.match(74)||this.match(75)||r){let c=this.startNode(),f=r?"let":this.state.value;return this.next(),this.parseVar(c,!0,f),this.finishNode(c,"VariableDeclaration"),(this.match(58)||this.isContextual(101))&&c.declarations.length===1?this.parseForIn(t,c,e):(e!==null&&this.unexpected(e),this.parseFor(t,c))}let i=this.isContextual(95),a=new gt,n=this.parseExpression(!0,a),o=this.isContextual(101);if(o&&(s&&this.raise(u.ForOfLet,{at:n}),e===null&&i&&n.type==="Identifier"&&this.raise(u.ForOfAsync,{at:n})),o||this.match(58)){this.checkDestructuringPrivate(a),this.toAssignable(n,!0);let c=o?"ForOfStatement":"ForInStatement";return this.checkLVal(n,{in:{type:c}}),this.parseForIn(t,n,e)}else this.checkExpressionErrors(a,!0);return e!==null&&this.unexpected(e),this.parseFor(t,n)}parseFunctionStatement(t,e,s){return this.next(),this.parseFunction(t,fs|(s?0:Hr),e)}parseIfStatement(t){return this.next(),t.test=this.parseHeaderExpression(),t.consequent=this.parseStatement("if"),t.alternate=this.eat(66)?this.parseStatement("if"):null,this.finishNode(t,"IfStatement")}parseReturnStatement(t){return !this.prodParam.hasReturn&&!this.options.allowReturnOutsideFunction&&this.raise(u.IllegalReturn,{at:this.state.startLoc}),this.next(),this.isLineTerminator()?t.argument=null:(t.argument=this.parseExpression(),this.semicolon()),this.finishNode(t,"ReturnStatement")}parseSwitchStatement(t){this.next(),t.discriminant=this.parseHeaderExpression();let e=t.cases=[];this.expect(5),this.state.labels.push(Wh),this.scope.enter(Re);let s;for(let r;!this.match(8);)if(this.match(61)||this.match(65)){let i=this.match(61);s&&this.finishNode(s,"SwitchCase"),e.push(s=this.startNode()),s.consequent=[],this.next(),i?s.test=this.parseExpression():(r&&this.raise(u.MultipleDefaultsInSwitch,{at:this.state.lastTokStartLoc}),r=!0,s.test=null),this.expect(14);}else s?s.consequent.push(this.parseStatement(null)):this.unexpected();return this.scope.exit(),s&&this.finishNode(s,"SwitchCase"),this.next(),this.state.labels.pop(),this.finishNode(t,"SwitchStatement")}parseThrowStatement(t){return this.next(),this.hasPrecedingLineBreak()&&this.raise(u.NewlineAfterThrow,{at:this.state.lastTokEndLoc}),t.argument=this.parseExpression(),this.semicolon(),this.finishNode(t,"ThrowStatement")}parseCatchClauseParam(){let t=this.parseBindingAtom(),e=t.type==="Identifier";return this.scope.enter(e?xr:0),this.checkLVal(t,{in:{type:"CatchClause"},binding:xe,allowingSloppyLetBinding:!0}),t}parseTryStatement(t){if(this.next(),t.block=this.parseBlock(),t.handler=null,this.match(62)){let e=this.startNode();this.next(),this.match(10)?(this.expect(10),e.param=this.parseCatchClauseParam(),this.expect(11)):(e.param=null,this.scope.enter(Re)),e.body=this.withSmartMixTopicForbiddingContext(()=>this.parseBlock(!1,!1)),this.scope.exit(),t.handler=this.finishNode(e,"CatchClause");}return t.finalizer=this.eat(67)?this.parseBlock():null,!t.handler&&!t.finalizer&&this.raise(u.NoCatchOrFinally,{at:t}),this.finishNode(t,"TryStatement")}parseVarStatement(t,e){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return this.next(),this.parseVar(t,!1,e,s),this.semicolon(),this.finishNode(t,"VariableDeclaration")}parseWhileStatement(t){return this.next(),t.test=this.parseHeaderExpression(),this.state.labels.push(ps),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement("while")),this.state.labels.pop(),this.finishNode(t,"WhileStatement")}parseWithStatement(t){return this.state.strict&&this.raise(u.StrictWith,{at:this.state.startLoc}),this.next(),t.object=this.parseHeaderExpression(),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement("with")),this.finishNode(t,"WithStatement")}parseEmptyStatement(t){return this.next(),this.finishNode(t,"EmptyStatement")}parseLabeledStatement(t,e,s,r){for(let a of this.state.labels)a.name===e&&this.raise(u.LabelRedeclaration,{at:s,labelName:e});let i=So(this.state.type)?"loop":this.match(71)?"switch":null;for(let a=this.state.labels.length-1;a>=0;a--){let n=this.state.labels[a];if(n.statementStart===t.start)n.statementStart=this.state.start,n.kind=i;else break}return this.state.labels.push({name:e,kind:i,statementStart:this.state.start}),t.body=this.parseStatement(r?r.indexOf("label")===-1?r+"label":r:"label"),this.state.labels.pop(),t.label=s,this.finishNode(t,"LabeledStatement")}parseExpressionStatement(t,e){return t.expression=e,this.semicolon(),this.finishNode(t,"ExpressionStatement")}parseBlock(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,s=arguments.length>2?arguments[2]:void 0,r=this.startNode();return t&&this.state.strictErrors.clear(),this.expect(5),e&&this.scope.enter(Re),this.parseBlockBody(r,t,!1,8,s),e&&this.scope.exit(),this.finishNode(r,"BlockStatement")}isValidDirective(t){return t.type==="ExpressionStatement"&&t.expression.type==="StringLiteral"&&!t.expression.extra.parenthesized}parseBlockBody(t,e,s,r,i){let a=t.body=[],n=t.directives=[];this.parseBlockOrModuleBlockBody(a,e?n:void 0,s,r,i);}parseBlockOrModuleBlockBody(t,e,s,r,i){let a=this.state.strict,n=!1,o=!1;for(;!this.match(r);){let c=this.parseStatement(null,s);if(e&&!o){if(this.isValidDirective(c)){let f=this.stmtToDirective(c);e.push(f),!n&&f.value.value==="use strict"&&(n=!0,this.setStrict(!0));continue}o=!0,this.state.strictErrors.clear();}t.push(c);}i&&i.call(this,n),a||this.setStrict(!1),this.next();}parseFor(t,e){return t.init=e,this.semicolon(!1),t.test=this.match(13)?null:this.parseExpression(),this.semicolon(!1),t.update=this.match(11)?null:this.parseExpression(),this.expect(11),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement("for")),this.scope.exit(),this.state.labels.pop(),this.finishNode(t,"ForStatement")}parseForIn(t,e,s){let r=this.match(58);return this.next(),r?s!==null&&this.unexpected(s):t.await=s!==null,e.type==="VariableDeclaration"&&e.declarations[0].init!=null&&(!r||this.state.strict||e.kind!=="var"||e.declarations[0].id.type!=="Identifier")&&this.raise(u.ForInOfLoopInitializer,{at:e,type:r?"ForInStatement":"ForOfStatement"}),e.type==="AssignmentPattern"&&this.raise(u.InvalidLhs,{at:e,ancestor:{type:"ForStatement"}}),t.left=e,t.right=r?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(11),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement("for")),this.scope.exit(),this.state.labels.pop(),this.finishNode(t,r?"ForInStatement":"ForOfStatement")}parseVar(t,e,s){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,i=t.declarations=[];for(t.kind=s;;){let a=this.startNode();if(this.parseVarId(a,s),a.init=this.eat(29)?e?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn():null,a.init===null&&!r&&(a.id.type!=="Identifier"&&!(e&&(this.match(58)||this.isContextual(101)))?this.raise(u.DeclarationMissingInitializer,{at:this.state.lastTokEndLoc,kind:"destructuring"}):s==="const"&&!(this.match(58)||this.isContextual(101))&&this.raise(u.DeclarationMissingInitializer,{at:this.state.lastTokEndLoc,kind:"const"})),i.push(this.finishNode(a,"VariableDeclarator")),!this.eat(12))break}return t}parseVarId(t,e){t.id=this.parseBindingAtom(),this.checkLVal(t.id,{in:{type:"VariableDeclarator"},binding:e==="var"?pt:xe});}parseFunction(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Gh,s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=e&fs,i=e&Hr,a=!!r&&!(e&Wr);this.initFunction(t,s),this.match(55)&&i&&this.raise(u.GeneratorInSingleStatementContext,{at:this.state.startLoc}),t.generator=this.eat(55),r&&(t.id=this.parseFunctionId(a));let n=this.state.maybeInArrowParameters;return this.state.maybeInArrowParameters=!1,this.scope.enter(me),this.prodParam.enter(xt(s,t.generator)),r||(t.id=this.parseFunctionId()),this.parseFunctionParams(t,!1),this.withSmartMixTopicForbiddingContext(()=>{this.parseFunctionBodyAndFinish(t,r?"FunctionDeclaration":"FunctionExpression");}),this.prodParam.exit(),this.scope.exit(),r&&!i&&this.registerFunctionStatementId(t),this.state.maybeInArrowParameters=n,t}parseFunctionId(t){return t||K(this.state.type)?this.parseIdentifier():null}parseFunctionParams(t,e){this.expect(10),this.expressionScope.enter(mh()),t.params=this.parseBindingList(11,41,!1,e),this.expressionScope.exit();}registerFunctionStatementId(t){!t.id||this.scope.declareName(t.id.name,this.state.strict||t.generator||t.async?this.scope.treatFunctionsAsVar?pt:xe:Er,t.id.loc.start);}parseClass(t,e,s){this.next(),this.takeDecorators(t);let r=this.state.strict;return this.state.strict=!0,this.parseClassId(t,e,s),this.parseClassSuper(t),t.body=this.parseClassBody(!!t.superClass,r),this.finishNode(t,e?"ClassDeclaration":"ClassExpression")}isClassProperty(){return this.match(29)||this.match(13)||this.match(8)}isClassMethod(){return this.match(10)}isNonstaticConstructor(t){return !t.computed&&!t.static&&(t.key.name==="constructor"||t.key.value==="constructor")}parseClassBody(t,e){this.classScope.enter();let s={hadConstructor:!1,hadSuperClass:t},r=[],i=this.startNode();if(i.body=[],this.expect(5),this.withSmartMixTopicForbiddingContext(()=>{for(;!this.match(8);){if(this.eat(13)){if(r.length>0)throw this.raise(u.DecoratorSemicolon,{at:this.state.lastTokEndLoc});continue}if(this.match(26)){r.push(this.parseDecorator());continue}let a=this.startNode();r.length&&(a.decorators=r,this.resetStartLocationFromNode(a,r[0]),r=[]),this.parseClassMember(i,a,s),a.kind==="constructor"&&a.decorators&&a.decorators.length>0&&this.raise(u.DecoratorConstructor,{at:a});}}),this.state.strict=e,this.next(),r.length)throw this.raise(u.TrailingDecorator,{at:this.state.startLoc});return this.classScope.exit(),this.finishNode(i,"ClassBody")}parseClassMemberFromModifier(t,e){let s=this.parseIdentifier(!0);if(this.isClassMethod()){let r=e;return r.kind="method",r.computed=!1,r.key=s,r.static=!1,this.pushClassMethod(t,r,!1,!1,!1,!1),!0}else if(this.isClassProperty()){let r=e;return r.computed=!1,r.key=s,r.static=!1,t.body.push(this.parseClassProperty(r)),!0}return this.resetPreviousNodeTrailingComments(s),!1}parseClassMember(t,e,s){let r=this.isContextual(104);if(r){if(this.parseClassMemberFromModifier(t,e))return;if(this.eat(5)){this.parseClassStaticBlock(t,e);return}}this.parseClassMemberWithIsStatic(t,e,s,r);}parseClassMemberWithIsStatic(t,e,s,r){let i=e,a=e,n=e,o=e,c=e,f=i,y=i;if(e.static=r,this.parsePropertyNamePrefixOperator(e),this.eat(55)){f.kind="method";let R=this.match(134);if(this.parseClassElementName(f),R){this.pushClassPrivateMethod(t,a,!0,!1);return}this.isNonstaticConstructor(i)&&this.raise(u.ConstructorIsGenerator,{at:i.key}),this.pushClassMethod(t,i,!0,!1,!1,!1);return}let C=K(this.state.type)&&!this.state.containsEsc,S=this.match(134),I=this.parseClassElementName(e),M=this.state.startLoc;if(this.parsePostMemberNameModifiers(y),this.isClassMethod()){if(f.kind="method",S){this.pushClassPrivateMethod(t,a,!1,!1);return}let R=this.isNonstaticConstructor(i),$=!1;R&&(i.kind="constructor",s.hadConstructor&&!this.hasPlugin("typescript")&&this.raise(u.DuplicateConstructor,{at:I}),R&&this.hasPlugin("typescript")&&e.override&&this.raise(u.OverrideOnConstructor,{at:I}),s.hadConstructor=!0,$=s.hadSuperClass),this.pushClassMethod(t,i,!1,!1,R,$);}else if(this.isClassProperty())S?this.pushClassPrivateProperty(t,o):this.pushClassProperty(t,n);else if(C&&I.name==="async"&&!this.isLineTerminator()){this.resetPreviousNodeTrailingComments(I);let R=this.eat(55);y.optional&&this.unexpected(M),f.kind="method";let $=this.match(134);this.parseClassElementName(f),this.parsePostMemberNameModifiers(y),$?this.pushClassPrivateMethod(t,a,R,!0):(this.isNonstaticConstructor(i)&&this.raise(u.ConstructorIsAsync,{at:i.key}),this.pushClassMethod(t,i,R,!0,!1,!1));}else if(C&&(I.name==="get"||I.name==="set")&&!(this.match(55)&&this.isLineTerminator())){this.resetPreviousNodeTrailingComments(I),f.kind=I.name;let R=this.match(134);this.parseClassElementName(i),R?this.pushClassPrivateMethod(t,a,!1,!1):(this.isNonstaticConstructor(i)&&this.raise(u.ConstructorIsAccessor,{at:i.key}),this.pushClassMethod(t,i,!1,!1,!1,!1)),this.checkGetterSetterParams(i);}else if(C&&I.name==="accessor"&&!this.isLineTerminator()){this.expectPlugin("decoratorAutoAccessors"),this.resetPreviousNodeTrailingComments(I);let R=this.match(134);this.parseClassElementName(n),this.pushClassAccessorProperty(t,c,R);}else this.isLineTerminator()?S?this.pushClassPrivateProperty(t,o):this.pushClassProperty(t,n):this.unexpected();}parseClassElementName(t){let{type:e,value:s}=this.state;if((e===128||e===129)&&t.static&&s==="prototype"&&this.raise(u.StaticPrototype,{at:this.state.startLoc}),e===134){s==="constructor"&&this.raise(u.ConstructorClassPrivateField,{at:this.state.startLoc});let r=this.parsePrivateName();return t.key=r,r}return this.parsePropertyName(t)}parseClassStaticBlock(t,e){var s;this.scope.enter(we|Jt|ot);let r=this.state.labels;this.state.labels=[],this.prodParam.enter(qe);let i=e.body=[];this.parseBlockOrModuleBlockBody(i,void 0,!1,8),this.prodParam.exit(),this.scope.exit(),this.state.labels=r,t.body.push(this.finishNode(e,"StaticBlock")),(s=e.decorators)!=null&&s.length&&this.raise(u.DecoratorStaticBlock,{at:e});}pushClassProperty(t,e){!e.computed&&(e.key.name==="constructor"||e.key.value==="constructor")&&this.raise(u.ConstructorClassField,{at:e.key}),t.body.push(this.parseClassProperty(e));}pushClassPrivateProperty(t,e){let s=this.parseClassPrivateProperty(e);t.body.push(s),this.classScope.declarePrivateName(this.getPrivateNameSV(s.key),rs,s.key.loc.start);}pushClassAccessorProperty(t,e,s){if(!s&&!e.computed){let i=e.key;(i.name==="constructor"||i.value==="constructor")&&this.raise(u.ConstructorClassField,{at:i});}let r=this.parseClassAccessorProperty(e);t.body.push(r),s&&this.classScope.declarePrivateName(this.getPrivateNameSV(r.key),rs,r.key.loc.start);}pushClassMethod(t,e,s,r,i,a){t.body.push(this.parseMethod(e,s,r,i,a,"ClassMethod",!0));}pushClassPrivateMethod(t,e,s,r){let i=this.parseMethod(e,s,r,!1,!1,"ClassPrivateMethod",!0);t.body.push(i);let a=i.kind==="get"?i.static?Jo:$o:i.kind==="set"?i.static?Yo:Qo:rs;this.declareClassPrivateMethodInScope(i,a);}declareClassPrivateMethodInScope(t,e){this.classScope.declarePrivateName(this.getPrivateNameSV(t.key),e,t.key.loc.start);}parsePostMemberNameModifiers(t){}parseClassPrivateProperty(t){return this.parseInitializer(t),this.semicolon(),this.finishNode(t,"ClassPrivateProperty")}parseClassProperty(t){return this.parseInitializer(t),this.semicolon(),this.finishNode(t,"ClassProperty")}parseClassAccessorProperty(t){return this.parseInitializer(t),this.semicolon(),this.finishNode(t,"ClassAccessorProperty")}parseInitializer(t){this.scope.enter(we|ot),this.expressionScope.enter(Fr()),this.prodParam.enter(qe),t.value=this.eat(29)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit();}parseClassId(t,e,s){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Tr;if(K(this.state.type))t.id=this.parseIdentifier(),e&&this.declareNameFromIdentifier(t.id,r);else if(s||!e)t.id=null;else throw this.raise(u.MissingClassName,{at:this.state.startLoc})}parseClassSuper(t){t.superClass=this.eat(81)?this.parseExprSubscripts():null;}parseExport(t){let e=this.maybeParseExportDefaultSpecifier(t),s=!e||this.eat(12),r=s&&this.eatExportStar(t),i=r&&this.maybeParseExportNamespaceSpecifier(t),a=s&&(!i||this.eat(12)),n=e||r;if(r&&!i)return e&&this.unexpected(),this.parseExportFrom(t,!0),this.finishNode(t,"ExportAllDeclaration");let o=this.maybeParseExportNamedSpecifiers(t);if(e&&s&&!r&&!o||i&&a&&!o)throw this.unexpected(null,5);let c;if(n||o?(c=!1,this.parseExportFrom(t,n)):c=this.maybeParseExportDeclaration(t),n||o||c)return this.checkExport(t,!0,!1,!!t.source),this.finishNode(t,"ExportNamedDeclaration");if(this.eat(65))return t.declaration=this.parseExportDefaultExpression(),this.checkExport(t,!0,!0),this.finishNode(t,"ExportDefaultDeclaration");throw this.unexpected(null,5)}eatExportStar(t){return this.eat(55)}maybeParseExportDefaultSpecifier(t){if(this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom");let e=this.startNode();return e.exported=this.parseIdentifier(!0),t.specifiers=[this.finishNode(e,"ExportDefaultSpecifier")],!0}return !1}maybeParseExportNamespaceSpecifier(t){if(this.isContextual(93)){t.specifiers||(t.specifiers=[]);let e=this.startNodeAt(this.state.lastTokStart,this.state.lastTokStartLoc);return this.next(),e.exported=this.parseModuleExportName(),t.specifiers.push(this.finishNode(e,"ExportNamespaceSpecifier")),!0}return !1}maybeParseExportNamedSpecifiers(t){if(this.match(5)){t.specifiers||(t.specifiers=[]);let e=t.exportKind==="type";return t.specifiers.push(...this.parseExportSpecifiers(e)),t.source=null,t.declaration=null,this.hasPlugin("importAssertions")&&(t.assertions=[]),!0}return !1}maybeParseExportDeclaration(t){return this.shouldParseExportDeclaration()?(t.specifiers=[],t.source=null,this.hasPlugin("importAssertions")&&(t.assertions=[]),t.declaration=this.parseExportDeclaration(t),!0):!1}isAsyncFunction(){if(!this.isContextual(95))return !1;let t=this.nextTokenStart();return !is.test(this.input.slice(this.state.pos,t))&&this.isUnparsedContextual(t,"function")}parseExportDefaultExpression(){let t=this.startNode(),e=this.isAsyncFunction();if(this.match(68)||e)return this.next(),e&&this.next(),this.parseFunction(t,fs|Wr,e);if(this.match(80))return this.parseClass(t,!0,!0);if(this.match(26))return this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(u.DecoratorBeforeExport,{at:this.state.startLoc}),this.parseDecorators(!1),this.parseClass(t,!0,!0);if(this.match(75)||this.match(74)||this.isLet())throw this.raise(u.UnsupportedDefaultExport,{at:this.state.startLoc});let s=this.parseMaybeAssignAllowIn();return this.semicolon(),s}parseExportDeclaration(t){return this.parseStatement(null)}isExportDefaultSpecifier(){let{type:t}=this.state;if(K(t)){if(t===95&&!this.state.containsEsc||t===99)return !1;if((t===126||t===125)&&!this.state.containsEsc){let{type:r}=this.lookahead();if(K(r)&&r!==97||r===5)return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(65))return !1;let e=this.nextTokenStart(),s=this.isUnparsedContextual(e,"from");if(this.input.charCodeAt(e)===44||K(this.state.type)&&s)return !0;if(this.match(65)&&s){let r=this.input.charCodeAt(this.nextTokenStartSince(e+4));return r===34||r===39}return !1}parseExportFrom(t,e){if(this.eatContextual(97)){t.source=this.parseImportSource(),this.checkExport(t);let s=this.maybeParseImportAssertions();s&&(t.assertions=s);}else e&&this.unexpected();this.semicolon();}shouldParseExportDeclaration(){let{type:t}=this.state;if(t===26&&(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators"))){if(this.getPluginOption("decorators","decoratorsBeforeExport"))throw this.raise(u.DecoratorBeforeExport,{at:this.state.startLoc});return !0}return t===74||t===75||t===68||t===80||this.isLet()||this.isAsyncFunction()}checkExport(t,e,s,r){if(e){if(s){if(this.checkDuplicateExports(t,"default"),this.hasPlugin("exportDefaultFrom")){var i;let n=t.declaration;n.type==="Identifier"&&n.name==="from"&&n.end-n.start===4&&!((i=n.extra)!=null&&i.parenthesized)&&this.raise(u.ExportDefaultFromAsIdentifier,{at:n});}}else if(t.specifiers&&t.specifiers.length)for(let n of t.specifiers){let{exported:o}=n,c=o.type==="Identifier"?o.name:o.value;if(this.checkDuplicateExports(n,c),!r&&n.local){let{local:f}=n;f.type!=="Identifier"?this.raise(u.ExportBindingIsString,{at:n,localName:f.value,exportName:c}):(this.checkReservedWord(f.name,f.loc.start,!0,!1),this.scope.checkLocalExport(f));}}else if(t.declaration){if(t.declaration.type==="FunctionDeclaration"||t.declaration.type==="ClassDeclaration"){let n=t.declaration.id;if(!n)throw new Error("Assertion failure");this.checkDuplicateExports(t,n.name);}else if(t.declaration.type==="VariableDeclaration")for(let n of t.declaration.declarations)this.checkDeclaration(n.id);}}if(this.state.decoratorStack[this.state.decoratorStack.length-1].length)throw this.raise(u.UnsupportedDecoratorExport,{at:t})}checkDeclaration(t){if(t.type==="Identifier")this.checkDuplicateExports(t,t.name);else if(t.type==="ObjectPattern")for(let e of t.properties)this.checkDeclaration(e);else if(t.type==="ArrayPattern")for(let e of t.elements)e&&this.checkDeclaration(e);else t.type==="ObjectProperty"?this.checkDeclaration(t.value):t.type==="RestElement"?this.checkDeclaration(t.argument):t.type==="AssignmentPattern"&&this.checkDeclaration(t.left);}checkDuplicateExports(t,e){this.exportedIdentifiers.has(e)&&(e==="default"?this.raise(u.DuplicateDefaultExport,{at:t}):this.raise(u.DuplicateExport,{at:t,exportName:e})),this.exportedIdentifiers.add(e);}parseExportSpecifiers(t){let e=[],s=!0;for(this.expect(5);!this.eat(8);){if(s)s=!1;else if(this.expect(12),this.eat(8))break;let r=this.isContextual(126),i=this.match(129),a=this.startNode();a.local=this.parseModuleExportName(),e.push(this.parseExportSpecifier(a,i,t,r));}return e}parseExportSpecifier(t,e,s,r){return this.eatContextual(93)?t.exported=this.parseModuleExportName():e?t.exported=Th(t.local):t.exported||(t.exported=ge(t.local)),this.finishNode(t,"ExportSpecifier")}parseModuleExportName(){if(this.match(129)){let t=this.parseStringLiteral(this.state.value),e=t.value.match(Xh);return e&&this.raise(u.ModuleExportNameHasLoneSurrogate,{at:t,surrogateCharCode:e[0].charCodeAt(0)}),t}return this.parseIdentifier(!0)}parseImport(t){if(t.specifiers=[],!this.match(129)){let r=!this.maybeParseDefaultImportSpecifier(t)||this.eat(12),i=r&&this.maybeParseStarImportSpecifier(t);r&&!i&&this.parseNamedImportSpecifiers(t),this.expectContextual(97);}t.source=this.parseImportSource();let e=this.maybeParseImportAssertions();if(e)t.assertions=e;else {let s=this.maybeParseModuleAttributes();s&&(t.attributes=s);}return this.semicolon(),this.finishNode(t,"ImportDeclaration")}parseImportSource(){return this.match(129)||this.unexpected(),this.parseExprAtom()}shouldParseDefaultImport(t){return K(this.state.type)}parseImportSpecifierLocal(t,e,s){e.local=this.parseIdentifier(),t.specifiers.push(this.finishImportSpecifier(e,s));}finishImportSpecifier(t,e){return this.checkLVal(t.local,{in:t,binding:xe}),this.finishNode(t,e)}parseAssertEntries(){let t=[],e=new Set;do{if(this.match(8))break;let s=this.startNode(),r=this.state.value;if(e.has(r)&&this.raise(u.ModuleAttributesWithDuplicateKeys,{at:this.state.startLoc,key:r}),e.add(r),this.match(129)?s.key=this.parseStringLiteral(r):s.key=this.parseIdentifier(!0),this.expect(14),!this.match(129))throw this.raise(u.ModuleAttributeInvalidValue,{at:this.state.startLoc});s.value=this.parseStringLiteral(this.state.value),this.finishNode(s,"ImportAttribute"),t.push(s);}while(this.eat(12));return t}maybeParseModuleAttributes(){if(this.match(76)&&!this.hasPrecedingLineBreak())this.expectPlugin("moduleAttributes"),this.next();else return this.hasPlugin("moduleAttributes")?[]:null;let t=[],e=new Set;do{let s=this.startNode();if(s.key=this.parseIdentifier(!0),s.key.name!=="type"&&this.raise(u.ModuleAttributeDifferentFromType,{at:s.key}),e.has(s.key.name)&&this.raise(u.ModuleAttributesWithDuplicateKeys,{at:s.key,key:s.key.name}),e.add(s.key.name),this.expect(14),!this.match(129))throw this.raise(u.ModuleAttributeInvalidValue,{at:this.state.startLoc});s.value=this.parseStringLiteral(this.state.value),this.finishNode(s,"ImportAttribute"),t.push(s);}while(this.eat(12));return t}maybeParseImportAssertions(){if(this.isContextual(94)&&!this.hasPrecedingLineBreak())this.expectPlugin("importAssertions"),this.next();else return this.hasPlugin("importAssertions")?[]:null;this.eat(5);let t=this.parseAssertEntries();return this.eat(8),t}maybeParseDefaultImportSpecifier(t){return this.shouldParseDefaultImport(t)?(this.parseImportSpecifierLocal(t,this.startNode(),"ImportDefaultSpecifier"),!0):!1}maybeParseStarImportSpecifier(t){if(this.match(55)){let e=this.startNode();return this.next(),this.expectContextual(93),this.parseImportSpecifierLocal(t,e,"ImportNamespaceSpecifier"),!0}return !1}parseNamedImportSpecifiers(t){let e=!0;for(this.expect(5);!this.eat(8);){if(e)e=!1;else {if(this.eat(14))throw this.raise(u.DestructureNamedImport,{at:this.state.startLoc});if(this.expect(12),this.eat(8))break}let s=this.startNode(),r=this.match(129),i=this.isContextual(126);s.imported=this.parseModuleExportName();let a=this.parseImportSpecifier(s,r,t.importKind==="type"||t.importKind==="typeof",i);t.specifiers.push(a);}}parseImportSpecifier(t,e,s,r){if(this.eatContextual(93))t.local=this.parseIdentifier();else {let{imported:i}=t;if(e)throw this.raise(u.ImportBindingIsString,{at:t,importName:i.value});this.checkReservedWord(i.name,t.loc.start,!0,!0),t.local||(t.local=ge(i));}return this.finishImportSpecifier(t,"ImportSpecifier")}isThisParam(t){return t.type==="Identifier"&&t.name==="this"}},Gr=class extends Yh{constructor(t,e){t=zh(t);super(t,e);this.options=t,this.initializeScopes(),this.plugins=$h(this.options.plugins),this.filename=t.sourceFilename;}getScopeHandler(){return os}parse(){this.enterInitialScopes();let t=this.startNode(),e=this.startNode();return this.nextToken(),t.errors=null,this.parseTopLevel(t,e),t.errors=this.state.errors,t}};function $h(t){let e=new Map;for(let s of t){let[r,i]=Array.isArray(s)?s:[s,{}];e.has(r)||e.set(r,i||{});}return e}function Qh(t,e){var s;if(((s=e)==null?void 0:s.sourceType)==="unambiguous"){e=Object.assign({},e);try{e.sourceType="module";let r=Je(e,t),i=r.parse();if(r.sawUnambiguousESM)return i;if(r.ambiguousScriptDifferentAst)try{return e.sourceType="script",Je(e,t).parse()}catch{}else i.program.sourceType="script";return i}catch(r){try{return e.sourceType="script",Je(e,t).parse()}catch{}throw r}}else return Je(e,t).parse()}function Zh(t,e){let s=Je(e,t);return s.options.strictMode&&(s.state.strict=!0),s.getExpression()}function el(t){let e={};for(let s of Object.keys(t))e[s]=fe(t[s]);return e}var tl=el(Eo);function Je(t,e){let s=Gr;return t!=null&&t.plugins&&(Uh(t.plugins),s=sl(t.plugins)),new s(t,e)}var Xr={};function sl(t){let e=_h.filter(i=>Z(t,i)),s=e.join("/"),r=Xr[s];if(!r){r=Gr;for(let i of e)r=Kr[i](r);Xr[s]=r;}return r}h.parse=Qh,h.parseExpression=Zh,h.tokTypes=tl;}}),mf=H({"src/language-js/parse/json.js"(h,l){V();var p=po(),d=nr(),m=mo(),A=yo();function x(){let T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{allowComments:L=!0}=T;return function(_){let{parseExpression:se}=go(),B;try{B=se(_,{tokens:!0,ranges:!0});}catch(j){throw A(j)}if(!L&&p(B.comments))throw g(B.comments[0],"Comment");return P(B),B}}function g(T,L){let[b,_]=[T.loc.start,T.loc.end].map(se=>{let{line:B,column:j}=se;return {line:B,column:j+1}});return d("".concat(L," is not allowed in JSON."),{start:b,end:_})}function P(T){switch(T.type){case"ArrayExpression":for(let L of T.elements)L!==null&&P(L);return;case"ObjectExpression":for(let L of T.properties)P(L);return;case"ObjectProperty":if(T.computed)throw g(T.key,"Computed key");if(T.shorthand)throw g(T.key,"Shorthand property");T.key.type!=="Identifier"&&P(T.key),P(T.value);return;case"UnaryExpression":{let{operator:L,argument:b}=T;if(L!=="+"&&L!=="-")throw g(T,"Operator '".concat(T.operator,"'"));if(b.type==="NumericLiteral"||b.type==="Identifier"&&(b.name==="Infinity"||b.name==="NaN"))return;throw g(b,"Operator '".concat(L,"' before '").concat(b.type,"'"))}case"Identifier":if(T.name!=="Infinity"&&T.name!=="NaN"&&T.name!=="undefined")throw g(T,"Identifier '".concat(T.name,"'"));return;case"TemplateLiteral":if(p(T.expressions))throw g(T.expressions[0],"'TemplateLiteral' with expression");for(let L of T.quasis)P(L);return;case"NullLiteral":case"BooleanLiteral":case"NumericLiteral":case"StringLiteral":case"TemplateElement":return;default:throw g(T,"'".concat(T.type,"'"))}}var N=x(),D={json:m({parse:N,hasPragma(){return !0}}),json5:m(N),"json-stringify":m({parse:x({allowComments:!1}),astFormat:"estree-json"})};l.exports=D;}});V();var yf=Jp(),xf=$n(),gf=Zp(),rt=mo(),Af=yo(),Pf=df(),Tf=mf(),Ef={sourceType:"module",allowImportExportEverywhere:!0,allowReturnOutsideFunction:!0,allowSuperOutsideMethod:!0,allowUndeclaredExports:!0,errorRecovery:!0,createParenthesizedExpressions:!0,plugins:["doExpressions","exportDefaultFrom","functionBind","functionSent","throwExpressions","partialApplication",["decorators",{decoratorsBeforeExport:!1}],"importAssertions","decimal","moduleBlocks","asyncDoExpressions","regexpUnicodeSets","destructuringPrivate","decoratorAutoAccessors"],tokens:!0,ranges:!0},bf=["recordAndTuple",{syntaxType:"hash"}],Wn="v8intrinsic",Gn=[["pipelineOperator",{proposal:"hack",topicToken:"%"}],["pipelineOperator",{proposal:"minimal"}],["pipelineOperator",{proposal:"fsharp"}]],Pe=function(h){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ef;return Object.assign(Object.assign({},l),{},{plugins:[...l.plugins,...h]})},vf=/@(?:no)?flow\b/;function Cf(h,l){if(l.filepath&&l.filepath.endsWith(".js.flow"))return !0;let p=xf(h);p&&(h=h.slice(p.length));let d=gf(h,0);return d!==!1&&(h=h.slice(0,d)),vf.test(h)}function Sf(h,l,p){let m=go()[h](l,p),A=m.errors.find(x=>!Df.has(x.reasonCode));if(A)throw A;return m}function it(h){for(var l=arguments.length,p=new Array(l>1?l-1:0),d=1;d<l;d++)p[d-1]=arguments[d];return function(m,A){let x=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if((x.parser==="babel"||x.parser==="__babel_estree")&&Cf(m,x))return x.parser="babel-flow",Ao(m,A,x);let g=p;x.__babelSourceType==="script"&&(g=g.map(T=>Object.assign(Object.assign({},T),{},{sourceType:"script"}))),/#[[{]/.test(m)&&(g=g.map(T=>Pe([bf],T)));let P=/%[A-Z]/.test(m);m.includes("|>")?g=(P?[...Gn,Wn]:Gn).flatMap(L=>g.map(b=>Pe([L],b))):P&&(g=g.map(T=>Pe([Wn],T)));let{result:N,error:D}=yf(...g.map(T=>()=>Sf(h,m,T)));if(!N)throw Af(D);return x.originalText=m,Pf(N,x)}}var wf=it("parse",Pe(["jsx","flow"])),Ao=it("parse",Pe(["jsx",["flow",{all:!0,enums:!0}]])),Nf=it("parse",Pe(["jsx","typescript"]),Pe(["typescript"])),If=it("parse",Pe(["jsx","flow","estree"])),kf=it("parseExpression",Pe(["jsx"])),Df=new Set(["StrictNumericEscape","StrictWith","StrictOctalLiteral","StrictDelete","StrictEvalArguments","StrictEvalArgumentsBinding","StrictFunction","EmptyTypeArguments","EmptyTypeParameters","ConstructorHasTypeParameters","UnsupportedParameterPropertyKind","UnexpectedParameterModifier","MixedLabeledAndUnlabeledElements","InvalidTupleMemberLabel","NonClassMethodPropertyHasAbstractModifer","ReadonlyForMethodSignature","ClassMethodHasDeclare","ClassMethodHasReadonly","InvalidModifierOnTypeMember","DuplicateAccessibilityModifier","IndexSignatureHasDeclare","DecoratorExportClass","ParamDupe","InvalidDecimal","RestTrailingComma","UnsupportedParameterDecorator","UnterminatedJsxContent","UnexpectedReservedWord","ModuleAttributesWithDuplicateKeys","LineTerminatorBeforeArrow","InvalidEscapeSequenceTemplate","NonAbstractClassHasAbstractMethod","UnsupportedPropertyDecorator","OptionalTypeBeforeRequired","PatternIsOptional","OptionalBindingPattern","DeclareClassFieldHasInitializer","TypeImportCannotSpecifyDefaultAndNamed","DeclareFunctionHasImplementation","ConstructorClassField","VarRedeclaration","InvalidPrivateFieldResolution","DuplicateExport"]),Xn=rt(wf),Jn=rt(kf);Po.exports={parsers:Object.assign(Object.assign({babel:Xn,"babel-flow":rt(Ao),"babel-ts":rt(Nf)},Tf),{},{__js_expression:Jn,__vue_expression:Jn,__vue_event_binding:Xn,__babel_estree:rt(If)})};});return Ff();});
50
50
  }(parserBabel$2));
51
51
 
52
- var parserBabel = /*@__PURE__*/_commonjsHelpers.getDefaultExportFromCjs(parserBabel$2.exports);
52
+ var parserBabel = /*@__PURE__*/index.getDefaultExportFromCjs(parserBabel$2.exports);
53
53
 
54
54
  var parserBabel$1 = /*#__PURE__*/_mergeNamespaces({
55
55
  __proto__: null,