UNPKG

prettier

Version:

Prettier is an opinionated code formatter

24 lines (23 loc) 324 kB
(function(e){if(typeof exports=="object"&&typeof module=="object")module.exports=e();else if(typeof define=="function"&&define.amd)define(e);else{var i=typeof globalThis<"u"?globalThis:typeof global<"u"?global:typeof self<"u"?self:this||{};i.prettierPlugins=i.prettierPlugins||{},i.prettierPlugins.babel=e()}})(function(){"use strict";var v=(l,h)=>()=>(h||l((h={exports:{}}).exports,h),h.exports);var le=v((md,oi)=>{var St=function(l){return l&&l.Math==Math&&l};oi.exports=St(typeof globalThis=="object"&&globalThis)||St(typeof window=="object"&&window)||St(typeof self=="object"&&self)||St(typeof global=="object"&&global)||function(){return this}()||Function("return this")()});var he=v((yd,li)=>{li.exports=function(l){try{return!!l()}catch{return!0}}});var ve=v((xd,hi)=>{var Nh=he();hi.exports=!Nh(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})});var wt=v((gd,ui)=>{var kh=he();ui.exports=!kh(function(){var l=function(){}.bind();return typeof l!="function"||l.hasOwnProperty("prototype")})});var Nt=v((Pd,ci)=>{var Dh=wt(),It=Function.prototype.call;ci.exports=Dh?It.bind(It):function(){return It.apply(It,arguments)}});var mi=v(di=>{"use strict";var pi={}.propertyIsEnumerable,fi=Object.getOwnPropertyDescriptor,Fh=fi&&!pi.call({1:2},1);di.f=Fh?function(h){var f=fi(this,h);return!!f&&f.enumerable}:pi});var As=v((Td,yi)=>{yi.exports=function(l,h){return{enumerable:!(l&1),configurable:!(l&2),writable:!(l&4),value:h}}});var ue=v((vd,Pi)=>{var xi=wt(),gi=Function.prototype,Ts=gi.call,Lh=xi&&gi.bind.bind(Ts,Ts);Pi.exports=xi?Lh:function(l){return function(){return Ts.apply(l,arguments)}}});var rt=v((Ed,Ti)=>{var Ai=ue(),Oh=Ai({}.toString),Bh=Ai("".slice);Ti.exports=function(l){return Bh(Oh(l),8,-1)}});var Ei=v((Cd,vi)=>{var Mh=ue(),_h=he(),Rh=rt(),vs=Object,jh=Mh("".split);vi.exports=_h(function(){return!vs("z").propertyIsEnumerable(0)})?function(l){return Rh(l)=="String"?jh(l,""):vs(l)}:vs});var Es=v((bd,Ci)=>{Ci.exports=function(l){return l==null}});var Cs=v((Sd,bi)=>{var qh=Es(),Uh=TypeError;bi.exports=function(l){if(qh(l))throw Uh("Can't call method on "+l);return l}});var kt=v((wd,Si)=>{var $h=Ei(),Hh=Cs();Si.exports=function(l){return $h(Hh(l))}});var Ss=v((Id,wi)=>{var bs=typeof document=="object"&&document.all,zh=typeof bs>"u"&&bs!==void 0;wi.exports={all:bs,IS_HTMLDDA:zh}});var ne=v((Nd,Ni)=>{var Ii=Ss(),Vh=Ii.all;Ni.exports=Ii.IS_HTMLDDA?function(l){return typeof l=="function"||l===Vh}:function(l){return typeof l=="function"}});var Oe=v((kd,Fi)=>{var ki=ne(),Di=Ss(),Kh=Di.all;Fi.exports=Di.IS_HTMLDDA?function(l){return typeof l=="object"?l!==null:ki(l)||l===Kh}:function(l){return typeof l=="object"?l!==null:ki(l)}});var it=v((Dd,Li)=>{var ws=le(),Wh=ne(),Gh=function(l){return Wh(l)?l:void 0};Li.exports=function(l,h){return arguments.length<2?Gh(ws[l]):ws[l]&&ws[l][h]}});var Bi=v((Fd,Oi)=>{var Jh=ue();Oi.exports=Jh({}.isPrototypeOf)});var _i=v((Ld,Mi)=>{var Xh=it();Mi.exports=Xh("navigator","userAgent")||""});var zi=v((Od,Hi)=>{var $i=le(),Is=_i(),Ri=$i.process,ji=$i.Deno,qi=Ri&&Ri.versions||ji&&ji.version,Ui=qi&&qi.v8,ce,Dt;Ui&&(ce=Ui.split("."),Dt=ce[0]>0&&ce[0]<4?1:+(ce[0]+ce[1]));!Dt&&Is&&(ce=Is.match(/Edge\/(\d+)/),(!ce||ce[1]>=74)&&(ce=Is.match(/Chrome\/(\d+)/),ce&&(Dt=+ce[1])));Hi.exports=Dt});var Ns=v((Bd,Ki)=>{var Vi=zi(),Yh=he();Ki.exports=!!Object.getOwnPropertySymbols&&!Yh(function(){var l=Symbol();return!String(l)||!(Object(l)instanceof Symbol)||!Symbol.sham&&Vi&&Vi<41})});var ks=v((Md,Wi)=>{var Qh=Ns();Wi.exports=Qh&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var Ds=v((_d,Gi)=>{var Zh=it(),eu=ne(),tu=Bi(),su=ks(),ru=Object;Gi.exports=su?function(l){return typeof l=="symbol"}:function(l){var h=Zh("Symbol");return eu(h)&&tu(h.prototype,ru(l))}});var Xi=v((Rd,Ji)=>{var iu=String;Ji.exports=function(l){try{return iu(l)}catch{return"Object"}}});var Ft=v((jd,Yi)=>{var au=ne(),nu=Xi(),ou=TypeError;Yi.exports=function(l){if(au(l))return l;throw ou(nu(l)+" is not a function")}});var Zi=v((qd,Qi)=>{var lu=Ft(),hu=Es();Qi.exports=function(l,h){var f=l[h];return hu(f)?void 0:lu(f)}});var ta=v((Ud,ea)=>{var Fs=Nt(),Ls=ne(),Os=Oe(),uu=TypeError;ea.exports=function(l,h){var f,d;if(h==="string"&&Ls(f=l.toString)&&!Os(d=Fs(f,l))||Ls(f=l.valueOf)&&!Os(d=Fs(f,l))||h!=="string"&&Ls(f=l.toString)&&!Os(d=Fs(f,l)))return d;throw uu("Can't convert object to primitive value")}});var ra=v(($d,sa)=>{sa.exports=!1});var Lt=v((Hd,aa)=>{var ia=le(),cu=Object.defineProperty;aa.exports=function(l,h){try{cu(ia,l,{value:h,configurable:!0,writable:!0})}catch{ia[l]=h}return h}});var Ot=v((zd,oa)=>{var pu=le(),fu=Lt(),na="__core-js_shared__",du=pu[na]||fu(na,{});oa.exports=du});var Bs=v((Vd,ha)=>{var mu=ra(),la=Ot();(ha.exports=function(l,h){return la[l]||(la[l]=h!==void 0?h:{})})("versions",[]).push({version:"3.26.1",mode:mu?"pure":"global",copyright:"\xA9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.26.1/LICENSE",source:"https://github.com/zloirock/core-js"})});var Ms=v((Kd,ua)=>{var yu=Cs(),xu=Object;ua.exports=function(l){return xu(yu(l))}});var Ie=v((Wd,ca)=>{var gu=ue(),Pu=Ms(),Au=gu({}.hasOwnProperty);ca.exports=Object.hasOwn||function(h,f){return Au(Pu(h),f)}});var _s=v((Gd,pa)=>{var Tu=ue(),vu=0,Eu=Math.random(),Cu=Tu(1 .toString);pa.exports=function(l){return"Symbol("+(l===void 0?"":l)+")_"+Cu(++vu+Eu,36)}});var at=v((Jd,xa)=>{var bu=le(),Su=Bs(),fa=Ie(),wu=_s(),da=Ns(),ya=ks(),Ke=Su("wks"),Be=bu.Symbol,ma=Be&&Be.for,Iu=ya?Be:Be&&Be.withoutSetter||wu;xa.exports=function(l){if(!fa(Ke,l)||!(da||typeof Ke[l]=="string")){var h="Symbol."+l;da&&fa(Be,l)?Ke[l]=Be[l]:ya&&ma?Ke[l]=ma(h):Ke[l]=Iu(h)}return Ke[l]}});var Ta=v((Xd,Aa)=>{var Nu=Nt(),ga=Oe(),Pa=Ds(),ku=Zi(),Du=ta(),Fu=at(),Lu=TypeError,Ou=Fu("toPrimitive");Aa.exports=function(l,h){if(!ga(l)||Pa(l))return l;var f=ku(l,Ou),d;if(f){if(h===void 0&&(h="default"),d=Nu(f,l,h),!ga(d)||Pa(d))return d;throw Lu("Can't convert object to primitive value")}return h===void 0&&(h="number"),Du(l,h)}});var Rs=v((Yd,va)=>{var Bu=Ta(),Mu=Ds();va.exports=function(l){var h=Bu(l,"string");return Mu(h)?h:h+""}});var ba=v((Qd,Ca)=>{var _u=le(),Ea=Oe(),js=_u.document,Ru=Ea(js)&&Ea(js.createElement);Ca.exports=function(l){return Ru?js.createElement(l):{}}});var qs=v((Zd,Sa)=>{var ju=ve(),qu=he(),Uu=ba();Sa.exports=!ju&&!qu(function(){return Object.defineProperty(Uu("div"),"a",{get:function(){return 7}}).a!=7})});var Us=v(Ia=>{var $u=ve(),Hu=Nt(),zu=mi(),Vu=As(),Ku=kt(),Wu=Rs(),Gu=Ie(),Ju=qs(),wa=Object.getOwnPropertyDescriptor;Ia.f=$u?wa:function(h,f){if(h=Ku(h),f=Wu(f),Ju)try{return wa(h,f)}catch{}if(Gu(h,f))return Vu(!Hu(zu.f,h,f),h[f])}});var ka=v((tm,Na)=>{var Xu=ve(),Yu=he();Na.exports=Xu&&Yu(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42})});var Bt=v((sm,Da)=>{var Qu=Oe(),Zu=String,ec=TypeError;Da.exports=function(l){if(Qu(l))return l;throw ec(Zu(l)+" is not an object")}});var nt=v(La=>{var tc=ve(),sc=qs(),rc=ka(),Mt=Bt(),Fa=Rs(),ic=TypeError,$s=Object.defineProperty,ac=Object.getOwnPropertyDescriptor,Hs="enumerable",zs="configurable",Vs="writable";La.f=tc?rc?function(h,f,d){if(Mt(h),f=Fa(f),Mt(d),typeof h=="function"&&f==="prototype"&&"value"in d&&Vs in d&&!d[Vs]){var y=ac(h,f);y&&y[Vs]&&(h[f]=d.value,d={configurable:zs in d?d[zs]:y[zs],enumerable:Hs in d?d[Hs]:y[Hs],writable:!1})}return $s(h,f,d)}:$s:function(h,f,d){if(Mt(h),f=Fa(f),Mt(d),sc)try{return $s(h,f,d)}catch{}if("get"in d||"set"in d)throw ic("Accessors not supported");return"value"in d&&(h[f]=d.value),h}});var Ks=v((im,Oa)=>{var nc=ve(),oc=nt(),lc=As();Oa.exports=nc?function(l,h,f){return oc.f(l,h,lc(1,f))}:function(l,h,f){return l[h]=f,l}});var _a=v((am,Ma)=>{var Ws=ve(),hc=Ie(),Ba=Function.prototype,uc=Ws&&Object.getOwnPropertyDescriptor,Gs=hc(Ba,"name"),cc=Gs&&function(){}.name==="something",pc=Gs&&(!Ws||Ws&&uc(Ba,"name").configurable);Ma.exports={EXISTS:Gs,PROPER:cc,CONFIGURABLE:pc}});var Xs=v((nm,Ra)=>{var fc=ue(),dc=ne(),Js=Ot(),mc=fc(Function.toString);dc(Js.inspectSource)||(Js.inspectSource=function(l){return mc(l)});Ra.exports=Js.inspectSource});var Ua=v((om,qa)=>{var yc=le(),xc=ne(),ja=yc.WeakMap;qa.exports=xc(ja)&&/native code/.test(String(ja))});var za=v((lm,Ha)=>{var gc=Bs(),Pc=_s(),$a=gc("keys");Ha.exports=function(l){return $a[l]||($a[l]=Pc(l))}});var Ys=v((hm,Va)=>{Va.exports={}});var Ja=v((um,Ga)=>{var Ac=Ua(),Wa=le(),Tc=Oe(),vc=Ks(),Qs=Ie(),Zs=Ot(),Ec=za(),Cc=Ys(),Ka="Object already initialized",er=Wa.TypeError,bc=Wa.WeakMap,_t,ot,Rt,Sc=function(l){return Rt(l)?ot(l):_t(l,{})},wc=function(l){return function(h){var f;if(!Tc(h)||(f=ot(h)).type!==l)throw er("Incompatible receiver, "+l+" required");return f}};Ac||Zs.state?(pe=Zs.state||(Zs.state=new bc),pe.get=pe.get,pe.has=pe.has,pe.set=pe.set,_t=function(l,h){if(pe.has(l))throw er(Ka);return h.facade=l,pe.set(l,h),h},ot=function(l){return pe.get(l)||{}},Rt=function(l){return pe.has(l)}):(Me=Ec("state"),Cc[Me]=!0,_t=function(l,h){if(Qs(l,Me))throw er(Ka);return h.facade=l,vc(l,Me,h),h},ot=function(l){return Qs(l,Me)?l[Me]:{}},Rt=function(l){return Qs(l,Me)});var pe,Me;Ga.exports={set:_t,get:ot,has:Rt,enforce:Sc,getterFor:wc}});var sr=v((cm,Ya)=>{var Ic=he(),Nc=ne(),jt=Ie(),tr=ve(),kc=_a().CONFIGURABLE,Dc=Xs(),Xa=Ja(),Fc=Xa.enforce,Lc=Xa.get,qt=Object.defineProperty,Oc=tr&&!Ic(function(){return qt(function(){},"length",{value:8}).length!==8}),Bc=String(String).split("String"),Mc=Ya.exports=function(l,h,f){String(h).slice(0,7)==="Symbol("&&(h="["+String(h).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),f&&f.getter&&(h="get "+h),f&&f.setter&&(h="set "+h),(!jt(l,"name")||kc&&l.name!==h)&&(tr?qt(l,"name",{value:h,configurable:!0}):l.name=h),Oc&&f&&jt(f,"arity")&&l.length!==f.arity&&qt(l,"length",{value:f.arity});try{f&&jt(f,"constructor")&&f.constructor?tr&&qt(l,"prototype",{writable:!1}):l.prototype&&(l.prototype=void 0)}catch{}var d=Fc(l);return jt(d,"source")||(d.source=Bc.join(typeof h=="string"?h:"")),l};Function.prototype.toString=Mc(function(){return Nc(this)&&Lc(this).source||Dc(this)},"toString")});var Za=v((pm,Qa)=>{var _c=ne(),Rc=nt(),jc=sr(),qc=Lt();Qa.exports=function(l,h,f,d){d||(d={});var y=d.enumerable,P=d.name!==void 0?d.name:h;if(_c(f)&&jc(f,P,d),d.global)y?l[h]=f:qc(h,f);else{try{d.unsafe?l[h]&&(y=!0):delete l[h]}catch{}y?l[h]=f:Rc.f(l,h,{value:f,enumerable:!1,configurable:!d.nonConfigurable,writable:!d.nonWritable})}return l}});var tn=v((fm,en)=>{var Uc=Math.ceil,$c=Math.floor;en.exports=Math.trunc||function(h){var f=+h;return(f>0?$c:Uc)(f)}});var rr=v((dm,sn)=>{var Hc=tn();sn.exports=function(l){var h=+l;return h!==h||h===0?0:Hc(h)}});var an=v((mm,rn)=>{var zc=rr(),Vc=Math.max,Kc=Math.min;rn.exports=function(l,h){var f=zc(l);return f<0?Vc(f+h,0):Kc(f,h)}});var on=v((ym,nn)=>{var Wc=rr(),Gc=Math.min;nn.exports=function(l){return l>0?Gc(Wc(l),9007199254740991):0}});var Ut=v((xm,ln)=>{var Jc=on();ln.exports=function(l){return Jc(l.length)}});var cn=v((gm,un)=>{var Xc=kt(),Yc=an(),Qc=Ut(),hn=function(l){return function(h,f,d){var y=Xc(h),P=Qc(y),g=Yc(d,P),T;if(l&&f!=f){for(;P>g;)if(T=y[g++],T!=T)return!0}else for(;P>g;g++)if((l||g in y)&&y[g]===f)return l||g||0;return!l&&-1}};un.exports={includes:hn(!0),indexOf:hn(!1)}});var dn=v((Pm,fn)=>{var Zc=ue(),ir=Ie(),ep=kt(),tp=cn().indexOf,sp=Ys(),pn=Zc([].push);fn.exports=function(l,h){var f=ep(l),d=0,y=[],P;for(P in f)!ir(sp,P)&&ir(f,P)&&pn(y,P);for(;h.length>d;)ir(f,P=h[d++])&&(~tp(y,P)||pn(y,P));return y}});var yn=v((Am,mn)=>{mn.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var gn=v(xn=>{var rp=dn(),ip=yn(),ap=ip.concat("length","prototype");xn.f=Object.getOwnPropertyNames||function(h){return rp(h,ap)}});var An=v(Pn=>{Pn.f=Object.getOwnPropertySymbols});var vn=v((Em,Tn)=>{var np=it(),op=ue(),lp=gn(),hp=An(),up=Bt(),cp=op([].concat);Tn.exports=np("Reflect","ownKeys")||function(h){var f=lp.f(up(h)),d=hp.f;return d?cp(f,d(h)):f}});var bn=v((Cm,Cn)=>{var En=Ie(),pp=vn(),fp=Us(),dp=nt();Cn.exports=function(l,h,f){for(var d=pp(h),y=dp.f,P=fp.f,g=0;g<d.length;g++){var T=d[g];!En(l,T)&&!(f&&En(f,T))&&y(l,T,P(h,T))}}});var wn=v((bm,Sn)=>{var mp=he(),yp=ne(),xp=/#|\.prototype\./,lt=function(l,h){var f=Pp[gp(l)];return f==Tp?!0:f==Ap?!1:yp(h)?mp(h):!!h},gp=lt.normalize=function(l){return String(l).replace(xp,".").toLowerCase()},Pp=lt.data={},Ap=lt.NATIVE="N",Tp=lt.POLYFILL="P";Sn.exports=lt});var nr=v((Sm,In)=>{var ar=le(),vp=Us().f,Ep=Ks(),Cp=Za(),bp=Lt(),Sp=bn(),wp=wn();In.exports=function(l,h){var f=l.target,d=l.global,y=l.stat,P,g,T,S,F,I;if(d?g=ar:y?g=ar[f]||bp(f,{}):g=(ar[f]||{}).prototype,g)for(T in h){if(F=h[T],l.dontCallGetSet?(I=vp(g,T),S=I&&I.value):S=g[T],P=wp(d?T:f+(y?".":"#")+T,l.forced),!P&&S!==void 0){if(typeof F==typeof S)continue;Sp(F,S)}(l.sham||S&&S.sham)&&Ep(F,"sham",!0),Cp(g,T,F,l)}}});var Nn=v(()=>{var Ip=nr(),or=le();Ip({global:!0,forced:or.globalThis!==or},{globalThis:or})});var kn=v(()=>{Nn()});var Ln=v((Dm,Fn)=>{var Dn=sr(),Np=nt();Fn.exports=function(l,h,f){return f.get&&Dn(f.get,h,{getter:!0}),f.set&&Dn(f.set,h,{setter:!0}),Np.f(l,h,f)}});var Bn=v((Fm,On)=>{"use strict";var kp=Bt();On.exports=function(){var l=kp(this),h="";return l.hasIndices&&(h+="d"),l.global&&(h+="g"),l.ignoreCase&&(h+="i"),l.multiline&&(h+="m"),l.dotAll&&(h+="s"),l.unicode&&(h+="u"),l.unicodeSets&&(h+="v"),l.sticky&&(h+="y"),h}});var Rn=v(()=>{var Dp=le(),Fp=ve(),Lp=Ln(),Op=Bn(),Bp=he(),Mn=Dp.RegExp,_n=Mn.prototype,Mp=Fp&&Bp(function(){var l=!0;try{Mn(".","d")}catch{l=!1}var h={},f="",d=l?"dgimsy":"gimsy",y=function(S,F){Object.defineProperty(h,S,{get:function(){return f+=F,!0}})},P={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};l&&(P.hasIndices="d");for(var g in P)y(g,P[g]);var T=Object.getOwnPropertyDescriptor(_n,"flags").get.call(h);return T!==d||f!==d});Mp&&Lp(_n,"flags",{configurable:!0,get:Op})});var lr=v((Bm,jn)=>{var _p=rt();jn.exports=Array.isArray||function(h){return _p(h)=="Array"}});var Un=v((Mm,qn)=>{var Rp=TypeError,jp=9007199254740991;qn.exports=function(l){if(l>jp)throw Rp("Maximum allowed index exceeded");return l}});var Hn=v((_m,$n)=>{var qp=rt(),Up=ue();$n.exports=function(l){if(qp(l)==="Function")return Up(l)}});var Kn=v((Rm,Vn)=>{var zn=Hn(),$p=Ft(),Hp=wt(),zp=zn(zn.bind);Vn.exports=function(l,h){return $p(l),h===void 0?l:Hp?zp(l,h):function(){return l.apply(h,arguments)}}});var Jn=v((jm,Gn)=>{"use strict";var Vp=lr(),Kp=Ut(),Wp=Un(),Gp=Kn(),Wn=function(l,h,f,d,y,P,g,T){for(var S=y,F=0,I=g?Gp(g,T):!1,C,L;F<d;)F in f&&(C=I?I(f[F],F,h):f[F],P>0&&Vp(C)?(L=Kp(C),S=Wn(l,h,C,L,S,P-1)-1):(Wp(S+1),l[S]=C),S++),F++;return S};Gn.exports=Wn});var Qn=v((qm,Yn)=>{var Jp=at(),Xp=Jp("toStringTag"),Xn={};Xn[Xp]="z";Yn.exports=String(Xn)==="[object z]"});var eo=v((Um,Zn)=>{var Yp=Qn(),Qp=ne(),$t=rt(),Zp=at(),ef=Zp("toStringTag"),tf=Object,sf=$t(function(){return arguments}())=="Arguments",rf=function(l,h){try{return l[h]}catch{}};Zn.exports=Yp?$t:function(l){var h,f,d;return l===void 0?"Undefined":l===null?"Null":typeof(f=rf(h=tf(l),ef))=="string"?f:sf?$t(h):(d=$t(h))=="Object"&&Qp(h.callee)?"Arguments":d}});var no=v(($m,ao)=>{var af=ue(),nf=he(),to=ne(),of=eo(),lf=it(),hf=Xs(),so=function(){},uf=[],ro=lf("Reflect","construct"),hr=/^\s*(?:class|function)\b/,cf=af(hr.exec),pf=!hr.exec(so),ht=function(h){if(!to(h))return!1;try{return ro(so,uf,h),!0}catch{return!1}},io=function(h){if(!to(h))return!1;switch(of(h)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return pf||!!cf(hr,hf(h))}catch{return!0}};io.sham=!0;ao.exports=!ro||nf(function(){var l;return ht(ht.call)||!ht(Object)||!ht(function(){l=!0})||l})?io:ht});var uo=v((Hm,ho)=>{var oo=lr(),ff=no(),df=Oe(),mf=at(),yf=mf("species"),lo=Array;ho.exports=function(l){var h;return oo(l)&&(h=l.constructor,ff(h)&&(h===lo||oo(h.prototype))?h=void 0:df(h)&&(h=h[yf],h===null&&(h=void 0))),h===void 0?lo:h}});var po=v((zm,co)=>{var xf=uo();co.exports=function(l,h){return new(xf(l))(h===0?0:h)}});var fo=v(()=>{"use strict";var gf=nr(),Pf=Jn(),Af=Ft(),Tf=Ms(),vf=Ut(),Ef=po();gf({target:"Array",proto:!0},{flatMap:function(h){var f=Tf(this),d=vf(f),y;return Af(h),y=Ef(f,0),y.length=Pf(y,f,f,d,0,1,h,arguments.length>1?arguments[1]:void 0),y}})});var fd=v((Zm,Ho)=>{kn();Rn();fo();var fr=Object.defineProperty,Cf=Object.getOwnPropertyDescriptor,dr=Object.getOwnPropertyNames,bf=Object.prototype.hasOwnProperty,Ao=(l,h)=>function(){return l&&(h=(0,l[dr(l)[0]])(l=0)),h},K=(l,h)=>function(){return h||(0,l[dr(l)[0]])((h={exports:{}}).exports,h),h.exports},Sf=(l,h)=>{for(var f in h)fr(l,f,{get:h[f],enumerable:!0})},wf=(l,h,f,d)=>{if(h&&typeof h=="object"||typeof h=="function")for(let y of dr(h))!bf.call(l,y)&&y!==f&&fr(l,y,{get:()=>h[y],enumerable:!(d=Cf(h,y))||d.enumerable});return l},If=l=>wf(fr({},"__esModule",{value:!0}),l),V=Ao({"<define:process>"(){}}),Nf=K({"src/utils/try-combinations.js"(l,h){"use strict";V();function f(){let d;for(var y=arguments.length,P=new Array(y),g=0;g<y;g++)P[g]=arguments[g];for(let[T,S]of P.entries())try{return{result:S()}}catch(F){T===0&&(d=F)}return{error:d}}h.exports=f}}),To=K({"src/language-js/utils/get-shebang.js"(l,h){"use strict";V();function f(d){if(!d.startsWith("#!"))return"";let y=d.indexOf(` `);return y===-1?d:d.slice(0,y)}h.exports=f}}),kf=K({"src/utils/text/skip-inline-comment.js"(l,h){"use strict";V();function f(d,y){if(y===!1)return!1;if(d.charAt(y)==="/"&&d.charAt(y+1)==="*"){for(let P=y+2;P<d.length;++P)if(d.charAt(P)==="*"&&d.charAt(P+1)==="/")return P+2}return y}h.exports=f}}),Df=K({"src/utils/text/skip-newline.js"(l,h){"use strict";V();function f(d,y,P){let g=P&&P.backwards;if(y===!1)return!1;let T=d.charAt(y);if(g){if(d.charAt(y-1)==="\r"&&T===` `)return y-2;if(T===` `||T==="\r"||T==="\u2028"||T==="\u2029")return y-1}else{if(T==="\r"&&d.charAt(y+1)===` `)return y+2;if(T===` `||T==="\r"||T==="\u2028"||T==="\u2029")return y+1}return y}h.exports=f}}),vo=K({"src/utils/text/skip.js"(l,h){"use strict";V();function f(T){return(S,F,I)=>{let C=I&&I.backwards;if(F===!1)return!1;let{length:L}=S,j=F;for(;j>=0&&j<L;){let k=S.charAt(j);if(T instanceof RegExp){if(!T.test(k))return j}else if(!T.includes(k))return j;C?j--:j++}return j===-1||j===L?j:!1}}var d=f(/\s/),y=f(" "),P=f(",; "),g=f(/[^\n\r]/);h.exports={skipWhitespace:d,skipSpaces:y,skipToLineEnd:P,skipEverythingButNewLine:g}}}),Ff=K({"src/utils/text/skip-trailing-comment.js"(l,h){"use strict";V();var{skipEverythingButNewLine:f}=vo();function d(y,P){return P===!1?!1:y.charAt(P)==="/"&&y.charAt(P+1)==="/"?f(y,P):P}h.exports=d}}),Lf=K({"src/utils/text/get-next-non-space-non-comment-character-index-with-start-index.js"(l,h){"use strict";V();var f=kf(),d=Df(),y=Ff(),{skipSpaces:P}=vo();function g(T,S){let F=null,I=S;for(;I!==F;)F=I,I=P(T,I),I=f(T,I),I=y(T,I),I=d(T,I);return I}h.exports=g}}),Eo={};Sf(Eo,{EOL:()=>pr,arch:()=>Of,cpus:()=>ko,default:()=>Bo,endianness:()=>Co,freemem:()=>Io,getNetworkInterfaces:()=>Oo,hostname:()=>bo,loadavg:()=>So,networkInterfaces:()=>Lo,platform:()=>Bf,release:()=>Fo,tmpDir:()=>ur,tmpdir:()=>cr,totalmem:()=>No,type:()=>Do,uptime:()=>wo});function Co(){if(typeof Ht>"u"){var l=new ArrayBuffer(2),h=new Uint8Array(l),f=new Uint16Array(l);if(h[0]=1,h[1]=2,f[0]===258)Ht="BE";else if(f[0]===513)Ht="LE";else throw new Error("unable to figure out endianess")}return Ht}function bo(){return typeof globalThis.location<"u"?globalThis.location.hostname:""}function So(){return[]}function wo(){return 0}function Io(){return Number.MAX_VALUE}function No(){return Number.MAX_VALUE}function ko(){return[]}function Do(){return"Browser"}function Fo(){return typeof globalThis.navigator<"u"?globalThis.navigator.appVersion:""}function Lo(){}function Oo(){}function Of(){return"javascript"}function Bf(){return"browser"}function ur(){return"/tmp"}var Ht,cr,pr,Bo,Mf=Ao({"node-modules-polyfills:os"(){V(),cr=ur,pr=` `,Bo={EOL:pr,tmpdir:cr,tmpDir:ur,networkInterfaces:Lo,getNetworkInterfaces:Oo,release:Fo,type:Do,cpus:ko,totalmem:No,freemem:Io,uptime:wo,loadavg:So,hostname:bo,endianness:Co}}}),_f=K({"node-modules-polyfills-commonjs:os"(l,h){V();var f=(Mf(),If(Eo));if(f&&f.default){h.exports=f.default;for(let d in f)h.exports[d]=f[d]}else f&&(h.exports=f)}}),Rf=K({"node_modules/detect-newline/index.js"(l,h){"use strict";V();var f=d=>{if(typeof d!="string")throw new TypeError("Expected a string");let y=d.match(/(?:\r?\n)/g)||[];if(y.length===0)return;let P=y.filter(T=>T===`\r `).length,g=y.length-P;return P>g?`\r `:` `};h.exports=f,h.exports.graceful=d=>typeof d=="string"&&f(d)||` `}}),jf=K({"node_modules/jest-docblock/build/index.js"(l){"use strict";V(),Object.defineProperty(l,"__esModule",{value:!0}),l.extract=j,l.parse=H,l.parseWithComments=W,l.print=B,l.strip=k;function h(){let u=_f();return h=function(){return u},u}function f(){let u=d(Rf());return f=function(){return u},u}function d(u){return u&&u.__esModule?u:{default:u}}var y=/\*\/$/,P=/^\/\*\*?/,g=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,T=/(^|\s+)\/\/([^\r\n]*)/g,S=/^(\r?\n)+/,F=/(?:^|\r?\n) *(@[^\r\n]*?) *\r?\n *(?![^@\r\n]*\/\/[^]*)([^@\r\n\s][^@\r\n]+?) *\r?\n/g,I=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g,C=/(\r?\n|^) *\* ?/g,L=[];function j(u){let G=u.match(g);return G?G[0].trimLeft():""}function k(u){let G=u.match(g);return G&&G[0]?u.substring(G[0].length):u}function H(u){return W(u).pragmas}function W(u){let G=(0,f().default)(u)||h().EOL;u=u.replace(P,"").replace(y,"").replace(C,"$1");let oe="";for(;oe!==u;)oe=u,u=u.replace(F,`${G}$1 $2${G}`);u=u.replace(S,"").trimRight();let X=Object.create(null),_e=u.replace(I,"").replace(S,"").trimRight(),Z;for(;Z=I.exec(u);){let $=Z[2].replace(T,"");typeof X[Z[1]]=="string"||Array.isArray(X[Z[1]])?X[Z[1]]=L.concat(X[Z[1]],$):X[Z[1]]=$}return{comments:_e,pragmas:X}}function B(u){let{comments:G="",pragmas:oe={}}=u,X=(0,f().default)(G)||h().EOL,_e="/**",Z=" *",$=" */",M=Object.keys(oe),E=M.map(ee=>_(ee,oe[ee])).reduce((ee,fe)=>ee.concat(fe),[]).map(ee=>`${Z} ${ee}${X}`).join("");if(!G){if(M.length===0)return"";if(M.length===1&&!Array.isArray(oe[M[0]])){let ee=oe[M[0]];return`${_e} ${_(M[0],ee)[0]}${$}`}}let Je=G.split(X).map(ee=>`${Z} ${ee}`).join(X)+X;return _e+X+(G?Je:"")+(G&&M.length?Z+X:"")+E+$}function _(u,G){return L.concat(G).map(oe=>`@${u} ${oe}`.trim())}}}),qf=K({"src/common/end-of-line.js"(l,h){"use strict";V();function f(g){let T=g.indexOf("\r");return T>=0?g.charAt(T+1)===` `?"crlf":"cr":"lf"}function d(g){switch(g){case"cr":return"\r";case"crlf":return`\r `;default:return` `}}function y(g,T){let S;switch(T){case` `:S=/\n/g;break;case"\r":S=/\r/g;break;case`\r `:S=/\r\n/g;break;default:throw new Error(`Unexpected "eol" ${JSON.stringify(T)}.`)}let F=g.match(S);return F?F.length:0}function P(g){return g.replace(/\r\n?/g,` `)}h.exports={guessEndOfLine:f,convertEndOfLineToChars:d,countEndOfLineChars:y,normalizeEndOfLine:P}}}),Uf=K({"src/language-js/pragma.js"(l,h){"use strict";V();var{parseWithComments:f,strip:d,extract:y,print:P}=jf(),{normalizeEndOfLine:g}=qf(),T=To();function S(C){let L=T(C);L&&(C=C.slice(L.length+1));let j=y(C),{pragmas:k,comments:H}=f(j);return{shebang:L,text:C,pragmas:k,comments:H}}function F(C){let L=Object.keys(S(C).pragmas);return L.includes("prettier")||L.includes("format")}function I(C){let{shebang:L,text:j,pragmas:k,comments:H}=S(C),W=d(j),B=P({pragmas:Object.assign({format:""},k),comments:H.trimStart()});return(L?`${L} `:"")+g(B)+(W.startsWith(` `)?` `:` `)+W}h.exports={hasPragma:F,insertPragma:I}}}),mr=K({"src/utils/is-non-empty-array.js"(l,h){"use strict";V();function f(d){return Array.isArray(d)&&d.length>0}h.exports=f}}),Mo=K({"src/language-js/loc.js"(l,h){"use strict";V();var f=mr();function d(S){var F,I;let C=S.range?S.range[0]:S.start,L=(F=(I=S.declaration)===null||I===void 0?void 0:I.decorators)!==null&&F!==void 0?F:S.decorators;return f(L)?Math.min(d(L[0]),C):C}function y(S){return S.range?S.range[1]:S.end}function P(S,F){let I=d(S);return Number.isInteger(I)&&I===d(F)}function g(S,F){let I=y(S);return Number.isInteger(I)&&I===y(F)}function T(S,F){return P(S,F)&&g(S,F)}h.exports={locStart:d,locEnd:y,hasSameLocStart:P,hasSameLoc:T}}}),_o=K({"src/language-js/parse/utils/create-parser.js"(l,h){"use strict";V();var{hasPragma:f}=Uf(),{locStart:d,locEnd:y}=Mo();function P(g){return g=typeof g=="function"?{parse:g}:g,Object.assign({astFormat:"estree",hasPragma:f,locStart:d,locEnd:y},g)}h.exports=P}}),yr=K({"src/common/parser-create-error.js"(l,h){"use strict";V();function f(d,y){let P=new SyntaxError(d+" ("+y.start.line+":"+y.start.column+")");return P.loc=y,P}h.exports=f}}),Ro=K({"src/language-js/parse/utils/create-babel-parse-error.js"(l,h){"use strict";V();var f=yr();function d(y){let{message:P,loc:g}=y;return f(P.replace(/ \(.*\)/,""),{start:{line:g?g.line:0,column:g?g.column+1:0}})}h.exports=d}}),$f=K({"src/language-js/utils/is-ts-keyword-type.js"(l,h){"use strict";V();function f(d){let{type:y}=d;return y.startsWith("TS")&&y.endsWith("Keyword")}h.exports=f}}),Hf=K({"src/language-js/utils/is-block-comment.js"(l,h){"use strict";V();var f=new Set(["Block","CommentBlock","MultiLine"]),d=y=>f.has(y==null?void 0:y.type);h.exports=d}}),zf=K({"src/language-js/utils/is-type-cast-comment.js"(l,h){"use strict";V();var f=Hf();function d(y){return f(y)&&y.value[0]==="*"&&/@type\b/.test(y.value)}h.exports=d}}),Vf=K({"src/utils/get-last.js"(l,h){"use strict";V();var f=d=>d[d.length-1];h.exports=f}}),jo=K({"src/language-js/parse/postprocess/visit-node.js"(l,h){"use strict";V();function f(d,y){if(Array.isArray(d)){for(let P=0;P<d.length;P++)d[P]=f(d[P],y);return d}if(d&&typeof d=="object"&&typeof d.type=="string"){let P=Object.keys(d);for(let g=0;g<P.length;g++)d[P[g]]=f(d[P[g]],y);return y(d)||d}return d}h.exports=f}}),qo=K({"src/language-js/parse/postprocess/throw-syntax-error.js"(l,h){"use strict";V();var f=yr();function d(y,P){let{start:g,end:T}=y.loc;throw f(P,{start:{line:g.line,column:g.column+1},end:{line:T.line,column:T.column+1}})}h.exports=d}}),Kf=K({"src/language-js/parse/postprocess/typescript.js"(l,h){"use strict";V();var f=mr(),d=jo(),y=qo(),P={AbstractKeyword:126,SourceFile:308,PropertyDeclaration:169};function g(I){for(;I&&I.kind!==P.SourceFile;)I=I.parent;return I}function T(I){let{illegalDecorators:C}=I;if(!f(C))return;let[{expression:L}]=C,j=g(L),[k,H]=[L.pos,L.end].map(W=>{let{line:B,character:_}=j.getLineAndCharacterOfPosition(W);return{line:B+1,column:_}});y({loc:{start:k,end:H}},"Decorators are not valid here.")}function S(I,C){I.kind!==P.PropertyDeclaration||I.modifiers&&!I.modifiers.some(L=>L.kind===P.AbstractKeyword)||I.initializer&&C.value===null&&y(C,"Abstract property cannot have an initializer")}function F(I,C){let{esTreeNodeToTSNodeMap:L,tsNodeToESTreeNodeMap:j}=C.tsParseResult;d(I,k=>{let H=L.get(k);if(!H)return;let W=j.get(H);W===k&&(T(H),S(H,W))})}h.exports={throwErrorForInvalidNodes:F}}}),Wf=K({"src/language-js/parse/postprocess/index.js"(l,h){"use strict";V();var{locStart:f,locEnd:d}=Mo(),y=$f(),P=zf(),g=Vf(),T=jo(),{throwErrorForInvalidNodes:S}=Kf(),F=qo();function I(k,H){if(H.parser==="typescript"&&/@|abstract/.test(H.originalText)&&S(k,H),H.parser!=="typescript"&&H.parser!=="flow"&&H.parser!=="acorn"&&H.parser!=="espree"&&H.parser!=="meriyah"){let B=new Set;k=T(k,_=>{_.leadingComments&&_.leadingComments.some(P)&&B.add(f(_))}),k=T(k,_=>{if(_.type==="ParenthesizedExpression"){let{expression:u}=_;if(u.type==="TypeCastExpression")return u.range=_.range,u;let G=f(_);if(!B.has(G))return u.extra=Object.assign(Object.assign({},u.extra),{},{parenthesized:!0}),u}})}return k=T(k,B=>{switch(B.type){case"ChainExpression":return C(B.expression);case"LogicalExpression":{if(L(B))return j(B);break}case"VariableDeclaration":{let _=g(B.declarations);_&&_.init&&W(B,_);break}case"TSParenthesizedType":return y(B.typeAnnotation)||B.typeAnnotation.type==="TSThisType"||(B.typeAnnotation.range=[f(B),d(B)]),B.typeAnnotation;case"TSTypeParameter":if(typeof B.name=="string"){let _=f(B);B.name={type:"Identifier",name:B.name,range:[_,_+B.name.length]}}break;case"ObjectExpression":if(H.parser==="typescript"){let _=B.properties.find(u=>u.type==="Property"&&u.value.type==="TSEmptyBodyFunctionExpression");_&&F(_.value,"Unexpected token.")}break;case"SequenceExpression":{let _=g(B.expressions);B.range=[f(B),Math.min(d(_),d(B))];break}case"TopicReference":H.__isUsingHackPipeline=!0;break;case"ExportAllDeclaration":{let{exported:_}=B;if(H.parser==="meriyah"&&_&&_.type==="Identifier"){let u=H.originalText.slice(f(_),d(_));(u.startsWith('"')||u.startsWith("'"))&&(B.exported=Object.assign(Object.assign({},B.exported),{},{type:"Literal",value:B.exported.name,raw:u}))}break}case"PropertyDefinition":if(H.parser==="meriyah"&&B.static&&!B.computed&&!B.key){let _="static",u=f(B);Object.assign(B,{static:!1,key:{type:"Identifier",name:_,range:[u,u+_.length]}})}break}}),k;function W(B,_){H.originalText[d(_)]!==";"&&(B.range=[f(B),d(_)])}}function C(k){switch(k.type){case"CallExpression":k.type="OptionalCallExpression",k.callee=C(k.callee);break;case"MemberExpression":k.type="OptionalMemberExpression",k.object=C(k.object);break;case"TSNonNullExpression":k.expression=C(k.expression);break}return k}function L(k){return k.type==="LogicalExpression"&&k.right.type==="LogicalExpression"&&k.operator===k.right.operator}function j(k){return L(k)?j({type:"LogicalExpression",operator:k.operator,left:j({type:"LogicalExpression",operator:k.operator,left:k.left,right:k.right.left,range:[f(k.left),d(k.right.left)]}),right:k.right.right,range:[f(k),d(k)]}):k}h.exports=I}}),Uo=K({"node_modules/@babel/parser/lib/index.js"(l){"use strict";V(),Object.defineProperty(l,"__esModule",{value:!0});function h(t,r){if(t==null)return{};var e={},s=Object.keys(t),i,a;for(a=0;a<s.length;a++)i=s[a],!(r.indexOf(i)>=0)&&(e[i]=t[i]);return e}var f=class{constructor(t,r,e){this.line=void 0,this.column=void 0,this.index=void 0,this.line=t,this.column=r,this.index=e}},d=class{constructor(t,r){this.start=void 0,this.end=void 0,this.filename=void 0,this.identifierName=void 0,this.start=t,this.end=r}};function y(t,r){let{line:e,column:s,index:i}=t;return new f(e,s+r,i+r)}var P={SyntaxError:"BABEL_PARSER_SYNTAX_ERROR",SourceTypeModuleError:"BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED"},g=function(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t.length-1;return{get(){return t.reduce((e,s)=>e[s],this)},set(e){t.reduce((s,i,a)=>a===r?s[i]=e:s[i],this)}}},T=(t,r,e)=>Object.keys(e).map(s=>[s,e[s]]).filter(s=>{let[,i]=s;return!!i}).map(s=>{let[i,a]=s;return[i,typeof a=="function"?{value:a,enumerable:!1}:typeof a.reflect=="string"?Object.assign({},a,g(a.reflect.split("."))):a]}).reduce((s,i)=>{let[a,n]=i;return Object.defineProperty(s,a,Object.assign({configurable:!0},n))},Object.assign(new t,r)),S={ImportMetaOutsideModule:{message:`import.meta may appear only with 'sourceType: "module"'`,code:P.SourceTypeModuleError},ImportOutsideModule:{message:`'import' and 'export' may appear only with 'sourceType: "module"'`,code:P.SourceTypeModuleError}},F={ArrayPattern:"array destructuring pattern",AssignmentExpression:"assignment expression",AssignmentPattern:"assignment expression",ArrowFunctionExpression:"arrow function expression",ConditionalExpression:"conditional expression",CatchClause:"catch clause",ForOfStatement:"for-of statement",ForInStatement:"for-in statement",ForStatement:"for-loop",FormalParameters:"function parameter list",Identifier:"identifier",ImportSpecifier:"import specifier",ImportDefaultSpecifier:"import default specifier",ImportNamespaceSpecifier:"import namespace specifier",ObjectPattern:"object destructuring pattern",ParenthesizedExpression:"parenthesized expression",RestElement:"rest element",UpdateExpression:{true:"prefix operation",false:"postfix operation"},VariableDeclarator:"variable declaration",YieldExpression:"yield expression"},I=t=>{let{type:r,prefix:e}=t;return r==="UpdateExpression"?F.UpdateExpression[String(e)]:F[r]},C={AccessorIsGenerator:t=>{let{kind:r}=t;return`A ${r}ter cannot be a generator.`},ArgumentsInClass:"'arguments' is only allowed in functions and class methods.",AsyncFunctionInSingleStatementContext:"Async functions can only be declared at the top level or inside a block.",AwaitBindingIdentifier:"Can not use 'await' as identifier inside an async function.",AwaitBindingIdentifierInStaticBlock:"Can not use 'await' as identifier inside a static block.",AwaitExpressionFormalParameter:"'await' is not allowed in async function parameters.",AwaitNotInAsyncContext:"'await' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncFunction:"'await' is only allowed within async functions.",BadGetterArity:"A 'get' accessor must not have any formal parameters.",BadSetterArity:"A 'set' accessor must have exactly one formal parameter.",BadSetterRestParameter:"A 'set' accessor function argument must not be a rest parameter.",ConstructorClassField:"Classes may not have a field named 'constructor'.",ConstructorClassPrivateField:"Classes may not have a private field named '#constructor'.",ConstructorIsAccessor:"Class constructor may not be an accessor.",ConstructorIsAsync:"Constructor can't be an async function.",ConstructorIsGenerator:"Constructor can't be a generator.",DeclarationMissingInitializer:t=>{let{kind:r}=t;return`Missing initializer in ${r} declaration.`},DecoratorArgumentsOutsideParentheses:"Decorator arguments must be moved inside parentheses: use '@(decorator(args))' instead of '@(decorator)(args)'.",DecoratorBeforeExport:"Decorators must be placed *before* the 'export' keyword. You can set the 'decoratorsBeforeExport' option to false to use the 'export @decorator class {}' syntax.",DecoratorConstructor:"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?",DecoratorExportClass:"Using the export keyword between a decorator and a class is not allowed. Please use `export @dec class` instead.",DecoratorSemicolon:"Decorators must not be followed by a semicolon.",DecoratorStaticBlock:"Decorators can't be used with a static block.",DeletePrivateField:"Deleting a private field is not allowed.",DestructureNamedImport:"ES2015 named imports do not destructure. Use another statement for destructuring after the import.",DuplicateConstructor:"Duplicate constructor in the same class.",DuplicateDefaultExport:"Only one default export allowed per module.",DuplicateExport:t=>{let{exportName:r}=t;return`\`${r}\` has already been exported. Exported identifiers must be unique.`},DuplicateProto:"Redefinition of __proto__ property.",DuplicateRegExpFlags:"Duplicate regular expression flag.",ElementAfterRest:"Rest element must be last element.",EscapedCharNotAnIdentifier:"Invalid Unicode escape.",ExportBindingIsString:t=>{let{localName:r,exportName:e}=t;return`A string literal cannot be used as an exported binding without \`from\`. - Did you mean \`export { '${r}' as '${e}' } from 'some-module'\`?`},ExportDefaultFromAsIdentifier:"'from' is not allowed as an identifier after 'export default'.",ForInOfLoopInitializer:t=>{let{type:r}=t;return`'${r==="ForInStatement"?"for-in":"for-of"}' loop variable declaration may not have an initializer.`},ForInUsing:"For-in loop may not start with 'using' declaration.",ForOfAsync:"The left-hand side of a for-of loop may not be 'async'.",ForOfLet:"The left-hand side of a for-of loop may not start with 'let'.",GeneratorInSingleStatementContext:"Generators can only be declared at the top level or inside a block.",IllegalBreakContinue:t=>{let{type:r}=t;return`Unsyntactic ${r==="BreakStatement"?"break":"continue"}.`},IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list.",IllegalReturn:"'return' outside of function.",ImportBindingIsString:t=>{let{importName:r}=t;return`A string literal cannot be used as an imported binding. - Did you mean \`import { "${r}" as foo }\`?`},ImportCallArgumentTrailingComma:"Trailing comma is disallowed inside import(...) arguments.",ImportCallArity:t=>{let{maxArgumentCount:r}=t;return`\`import()\` requires exactly ${r===1?"one argument":"one or two arguments"}.`},ImportCallNotNewExpression:"Cannot use new with import(...).",ImportCallSpreadArgument:"`...` is not allowed in `import()`.",ImportJSONBindingNotDefault:"A JSON module can only be imported with `default`.",ImportReflectionHasAssertion:"`import module x` cannot have assertions.",ImportReflectionNotBinding:'Only `import module x from "./module"` is valid.',IncompatibleRegExpUVFlags:"The 'u' and 'v' regular expression flags cannot be enabled at the same time.",InvalidBigIntLiteral:"Invalid BigIntLiteral.",InvalidCodePoint:"Code point out of bounds.",InvalidCoverInitializedName:"Invalid shorthand property initializer.",InvalidDecimal:"Invalid decimal.",InvalidDigit:t=>{let{radix:r}=t;return`Expected number in radix ${r}.`},InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:t=>{let{reservedWord:r}=t;return`Escape sequence in keyword ${r}.`},InvalidIdentifier:t=>{let{identifierName:r}=t;return`Invalid identifier ${r}.`},InvalidLhs:t=>{let{ancestor:r}=t;return`Invalid left-hand side in ${I(r)}.`},InvalidLhsBinding:t=>{let{ancestor:r}=t;return`Binding invalid left-hand side in ${I(r)}.`},InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:t=>{let{unexpected:r}=t;return`Unexpected character '${r}'.`},InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:t=>{let{identifierName:r}=t;return`Private name #${r} is not defined.`},InvalidPropertyBindingPattern:"Binding member expression.",InvalidRecordProperty:"Only properties and spread elements are allowed in record definitions.",InvalidRestAssignmentPattern:"Invalid rest operator's argument.",LabelRedeclaration:t=>{let{labelName:r}=t;return`Label '${r}' is already declared.`},LetInLexicalBinding:"'let' is not allowed to be used as a name in 'let' or 'const' declarations.",LineTerminatorBeforeArrow:"No line break is allowed before '=>'.",MalformedRegExpFlags:"Invalid regular expression flag.",MissingClassName:"A class name is required.",MissingEqInAssignment:"Only '=' operator can be used for specifying default value.",MissingSemicolon:"Missing semicolon.",MissingPlugin:t=>{let{missingPlugin:r}=t;return`This experimental syntax requires enabling the parser plugin: ${r.map(e=>JSON.stringify(e)).join(", ")}.`},MissingOneOfPlugins:t=>{let{missingPlugin:r}=t;return`This experimental syntax requires enabling one of the following parser plugin(s): ${r.map(e=>JSON.stringify(e)).join(", ")}.`},MissingUnicodeEscape:"Expecting Unicode escape sequence \\uXXXX.",MixingCoalesceWithLogical:"Nullish coalescing operator(??) requires parens when mixing with logical operators.",ModuleAttributeDifferentFromType:"The only accepted module attribute is `type`.",ModuleAttributeInvalidValue:"Only string literals are allowed as module attribute values.",ModuleAttributesWithDuplicateKeys:t=>{let{key:r}=t;return`Duplicate key "${r}" is not allowed in module attributes.`},ModuleExportNameHasLoneSurrogate:t=>{let{surrogateCharCode:r}=t;return`An export name cannot include a lone surrogate, found '\\u${r.toString(16)}'.`},ModuleExportUndefined:t=>{let{localName:r}=t;return`Export '${r}' is not defined.`},MultipleDefaultsInSwitch:"Multiple default clauses.",NewlineAfterThrow:"Illegal newline after throw.",NoCatchOrFinally:"Missing catch or finally clause.",NumberIdentifier:"Identifier directly after number.",NumericSeparatorInEscapeSequence:"Numeric separators are not allowed inside unicode escape sequences or hex escape sequences.",ObsoleteAwaitStar:"'await*' has been removed from the async functions proposal. Use Promise.all() instead.",OptionalChainingNoNew:"Constructors in/after an Optional Chain are not allowed.",OptionalChainingNoTemplate:"Tagged Template Literals are not allowed in optionalChain.",OverrideOnConstructor:"'override' modifier cannot appear on a constructor declaration.",ParamDupe:"Argument name clash.",PatternHasAccessor:"Object pattern can't contain getter or setter.",PatternHasMethod:"Object pattern can't contain methods.",PrivateInExpectedIn:t=>{let{identifierName:r}=t;return`Private names are only allowed in property accesses (\`obj.#${r}\`) or in \`in\` expressions (\`#${r} in obj\`).`},PrivateNameRedeclaration:t=>{let{identifierName:r}=t;return`Duplicate private name #${r}.`},RecordExpressionBarIncorrectEndSyntaxType:"Record expressions ending with '|}' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionBarIncorrectStartSyntaxType:"Record expressions starting with '{|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionHashIncorrectStartSyntaxType:"Record expressions starting with '#{' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",RecordNoProto:"'__proto__' is not allowed in Record expressions.",RestTrailingComma:"Unexpected trailing comma after rest element.",SloppyFunction:"In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement.",StaticPrototype:"Classes may not have static property named prototype.",SuperNotAllowed:"`super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class?",SuperPrivateField:"Private fields can't be accessed on super.",TrailingDecorator:"Decorators must be attached to a class element.",TupleExpressionBarIncorrectEndSyntaxType:"Tuple expressions ending with '|]' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionBarIncorrectStartSyntaxType:"Tuple expressions starting with '[|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionHashIncorrectStartSyntaxType:"Tuple expressions starting with '#[' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",UnexpectedArgumentPlaceholder:"Unexpected argument placeholder.",UnexpectedAwaitAfterPipelineBody:'Unexpected "await" after pipeline body; await must have parentheses in minimal proposal.',UnexpectedDigitAfterHash:"Unexpected digit after hash token.",UnexpectedImportExport:"'import' and 'export' may only appear at the top level.",UnexpectedKeyword:t=>{let{keyword:r}=t;return`Unexpected keyword '${r}'.`},UnexpectedLeadingDecorator:"Leading decorators must be attached to a class declaration.",UnexpectedLexicalDeclaration:"Lexical declaration cannot appear in a single-statement context.",UnexpectedNewTarget:"`new.target` can only be used in functions or class properties.",UnexpectedNumericSeparator:"A numeric separator is only allowed between two digits.",UnexpectedPrivateField:"Unexpected private name.",UnexpectedReservedWord:t=>{let{reservedWord:r}=t;return`Unexpected reserved word '${r}'.`},UnexpectedSuper:"'super' is only allowed in object methods and classes.",UnexpectedToken:t=>{let{expected:r,unexpected:e}=t;return`Unexpected token${e?` '${e}'.`:""}${r?`, expected "${r}"`:""}`},UnexpectedTokenUnaryExponentiation:"Illegal expression. Wrap left hand side or entire exponentiation in parentheses.",UnexpectedUsingDeclaration:"Using declaration cannot appear in the top level when source type is `script`.",UnsupportedBind:"Binding should be performed on object property.",UnsupportedDecoratorExport:"A decorated export must export a class declaration.",UnsupportedDefaultExport:"Only expressions, functions or classes are allowed as the `default` export.",UnsupportedImport:"`import` can only be used in `import()` or `import.meta`.",UnsupportedMetaProperty:t=>{let{target:r,onlyValidPropertyName:e}=t;return`The only valid meta property for ${r} is ${r}.${e}.`},UnsupportedParameterDecorator:"Decorators cannot be used to decorate parameters.",UnsupportedPropertyDecorator:"Decorators cannot be used to decorate object literal properties.",UnsupportedSuper:"'super' can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop]).",UnterminatedComment:"Unterminated comment.",UnterminatedRegExp:"Unterminated regular expression.",UnterminatedString:"Unterminated string constant.",UnterminatedTemplate:"Unterminated template.",UsingDeclarationHasBindingPattern:"Using declaration cannot have destructuring patterns.",VarRedeclaration:t=>{let{identifierName:r}=t;return`Identifier '${r}' has already been declared.`},YieldBindingIdentifier:"Can not use 'yield' as identifier inside a generator.",YieldInParameter:"Yield expression is not allowed in formal parameters.",ZeroDigitNumericSeparator:"Numeric separator can not be used after leading 0."},L={StrictDelete:"Deleting local variable in strict mode.",StrictEvalArguments:t=>{let{referenceName:r}=t;return`Assigning to '${r}' in strict mode.`},StrictEvalArgumentsBinding:t=>{let{bindingName:r}=t;return`Binding '${r}' in strict mode.`},StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block.",StrictNumericEscape:"The only valid numeric escape in strict mode is '\\0'.",StrictOctalLiteral:"Legacy octal literals are not allowed in strict mode.",StrictWith:"'with' in strict mode."},j=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]),k={PipeBodyIsTighter:"Unexpected yield after pipeline body; any yield expression acting as Hack-style pipe body must be parenthesized due to its loose operator precedence.",PipeTopicRequiresHackPipes:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.',PipeTopicUnbound:"Topic reference is unbound; it must be inside a pipe body.",PipeTopicUnconfiguredToken:t=>{let{token:r}=t;return`Invalid topic token ${r}. In order to use ${r} as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "${r}" }.`},PipeTopicUnused:"Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.",PipeUnparenthesizedBody:t=>{let{type:r}=t;return`Hack-style pipe body cannot be an unparenthesized ${I({type:r})}; please wrap it in parentheses.`},PipelineBodyNoArrow:'Unexpected arrow "=>" after pipeline body; arrow function in pipeline body must be parenthesized.',PipelineBodySequenceExpression:"Pipeline body may not be a comma-separated sequence expression.",PipelineHeadSequenceExpression:"Pipeline head should not be a comma-separated sequence expression.",PipelineTopicUnused:"Pipeline is in topic style but does not use topic reference.",PrimaryTopicNotAllowed:"Topic reference was used in a lexical context without topic binding.",PrimaryTopicRequiresSmartPipeline:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.'},H=["toMessage"],W=["message"];function B(t){let{toMessage:r}=t,e=h(t,H);return function s(i){let{loc:a,details:n}=i;return T(SyntaxError,Object.assign({},e,{loc:a}),{clone(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=o.loc||{};return s({loc:new f("line"in c?c.line:this.loc.line,"column"in c?c.column:this.loc.column,"index"in c?c.index:this.loc.index),details:Object.assign({},this.details,o.details)})},details:{value:n,enumerable:!1},message:{get(){return`${r(this.details)} (${this.loc.line}:${this.loc.column})`},set(o){Object.defineProperty(this,"message",{value:o})}},pos:{reflect:"loc.index",enumerable:!0},missingPlugin:"missingPlugin"in n&&{reflect:"details.missingPlugin",enumerable:!0}})}}function _(t,r){if(Array.isArray(t))return s=>_(s,t[0]);let e={};for(let s of Object.keys(t)){let i=t[s],a=typeof i=="string"?{message:()=>i}:typeof i=="function"?{message:i}:i,{message:n}=a,o=h(a,W),c=typeof n=="string"?()=>n:n;e[s]=B(Object.assign({code:P.SyntaxError,reasonCode:s,toMessage:c},r?{syntaxPlugin:r}:{},o))}return e}var u=Object.assign({},_(S),_(C),_(L),_`pipelineOperator`(k)),{defineProperty:G}=Object,oe=(t,r)=>G(t,r,{enumerable:!1,value:t[r]});function X(t){return t.loc.start&&oe(t.loc.start,"index"),t.loc.end&&oe(t.loc.end,"index"),t}var _e=t=>class extends t{parse(){let e=X(super.parse());return this.options.tokens&&(e.tokens=e.tokens.map(X)),e}parseRegExpLiteral(e){let{pattern:s,flags:i}=e,a=null;try{a=new RegExp(s,i)}catch{}let n=this.estreeParseLiteral(a);return n.regex={pattern:s,flags:i},n}parseBigIntLiteral(e){let s;try{s=BigInt(e)}catch{s=null}let i=this.estreeParseLiteral(s);return i.bigint=String(i.value||e),i}parseDecimalLiteral(e){let i=this.estreeParseLiteral(null);return i.decimal=String(i.value||e),i}estreeParseLiteral(e){return this.parseLiteral(e,"Literal")}parseStringLiteral(e){return this.estreeParseLiteral(e)}parseNumericLiteral(e){return this.estreeParseLiteral(e)}parseNullLiteral(){return this.estreeParseLiteral(null)}parseBooleanLiteral(e){return this.estreeParseLiteral(e)}directiveToStmt(e){let s=e.value;delete e.value,s.type="Literal",s.raw=s.extra.raw,s.value=s.extra.expressionValue;let i=e;return i.type="ExpressionStatement",i.expression=s,i.directive=s.extra.rawValue,delete s.extra,i}initFunction(e,s){super.initFunction(e,s),e.expression=!1}checkDeclaration(e){e!=null&&this.isObjectProperty(e)?this.checkDeclaration(e.value):super.checkDeclaration(e)}getObjectOrClassMethodParams(e){return e.value.params}isValidDirective(e){var s;return e.type==="ExpressionStatement"&&e.expression.type==="Literal"&&typeof e.expression.value=="string"&&!((s=e.expression.extra)!=null&&s.parenthesized)}parseBlockBody(e,s,i,a,n){super.parseBlockBody(e,s,i,a,n);let o=e.directives.map(c=>this.directiveToStmt(c));e.body=o.concat(e.body),delete e.directives}pushClassMethod(e,s,i,a,n,o){this.parseMethod(s,i,a,n,o,"ClassMethod",!0),s.typeParameters&