UNPKG

@shopify/cli

Version:

A CLI tool to build for the Shopify platform

9 lines • 154 kB
import{b as ui,g as re}from"./chunk-VPRTJUIN.js";function Ot(t,e){for(var i=65536,s=0;s<e.length;s+=2){if(i+=e[s],i>t)return!1;if(i+=e[s+1],i>=t)return!0}return!1}function G(t,e){return t<65?t===36:t<91?!0:t<97?t===95:t<123?!0:t<=65535?t>=170&&Ei.test(String.fromCharCode(t)):e===!1?!1:Ot(t,ye)}function $(t,e){return t<48?t===36:t<58?!0:t<65?!1:t<91?!0:t<97?t===95:t<123?!0:t<=65535?t>=170&&bi.test(String.fromCharCode(t)):e===!1?!1:Ot(t,ye)||Ot(t,gi)}function V(t,e){return new b(t,{beforeExpr:!0,binop:e})}function E(t,e){return e===void 0&&(e={}),e.keyword=t,Kt[t]=new b(t,e)}function st(t){return t===10||t===13||t===8232||t===8233}function Ae(t,e,i){i===void 0&&(i=t.length);for(var s=e;s<i;s++){var r=t.charCodeAt(s);if(st(r))return s<i-1&&r===13&&t.charCodeAt(s+1)===10?s+2:s+1}return-1}function Q(t){return ne[t]||(ne[t]=new RegExp("^(?:"+t.replace(/ /g,"|")+")$"))}function H(t){return t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode((t>>10)+55296,(t&1023)+56320))}function Ee(t,e){for(var i=1,s=0;;){var r=Ae(t,s,e);if(r<0)return new pt(i,e-s);++i,s=r}}function wi(t){var e={};for(var i in Mt)e[i]=t&&rt(t,i)?t[i]:Mt[i];if(e.ecmaVersion==="latest"?e.ecmaVersion=1e8:e.ecmaVersion==null?(!oe&&typeof console=="object"&&console.warn&&(oe=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required. Defaulting to 2020, but this will stop working in the future.`)),e.ecmaVersion=11):e.ecmaVersion>=2015&&(e.ecmaVersion-=2009),e.allowReserved==null&&(e.allowReserved=e.ecmaVersion<5),(!t||t.allowHashBang==null)&&(e.allowHashBang=e.ecmaVersion>=14),ae(e.onToken)){var s=e.onToken;e.onToken=function(r){return s.push(r)}}return ae(e.onComment)&&(e.onComment=Di(e,e.onComment)),e}function Di(t,e){return function(i,s,r,o,u,p){var h={type:i?"Block":"Line",value:s,start:r,end:o};t.locations&&(h.loc=new St(this,u,p)),t.ranges&&(h.range=[r,o]),e.push(h)}}function Wt(t,e){return at|(t?Xt:0)|(e?be:0)}function Pi(t,e){var i=e.key.name,s=t[i],r="true";return e.type==="MethodDefinition"&&(e.kind==="get"||e.kind==="set")&&(r=(e.static?"s":"i")+e.kind),s==="iget"&&r==="iset"||s==="iset"&&r==="iget"||s==="sget"&&r==="sset"||s==="sset"&&r==="sget"?(t[i]="true",!1):s?!0:(t[i]=r,!1)}function Ct(t,e){var i=t.computed,s=t.key;return!i&&(s.type==="Identifier"&&s.name===e||s.type==="Literal"&&s.value===e)}function Fe(t){return t.type==="Identifier"||t.type==="ParenthesizedExpression"&&Fe(t.expression)}function Ut(t){return t.type==="MemberExpression"&&t.property.type==="PrivateIdentifier"||t.type==="ChainExpression"&&Ut(t.expression)||t.type==="ParenthesizedExpression"&&Ut(t.expression)}function Be(t,e,i,s){return t.type=e,t.end=i,this.options.locations&&(t.loc.end=s),this.options.ranges&&(t.range[1]=i),t}function Gi(t){var e=qe[t]={binary:Q(Oi[t]+" "+ue),binaryOfStrings:Q(ji[t]),nonBinary:{General_Category:Q(ue),Script:Q(qi[t])}};e.nonBinary.Script_Extensions=e.nonBinary.Script,e.nonBinary.gc=e.nonBinary.General_Category,e.nonBinary.sc=e.nonBinary.Script,e.nonBinary.scx=e.nonBinary.Script_Extensions}function Ji(t){for(var e in t)return!0;return!1}function Ki(t){return t===105||t===109||t===115}function Ge(t){return t===36||t>=40&&t<=43||t===46||t===63||t>=91&&t<=94||t>=123&&t<=125}function Xi(t){return G(t,!0)||t===36||t===95}function Hi(t){return $(t,!0)||t===36||t===95||t===8204||t===8205}function Je(t){return t>=65&&t<=90||t>=97&&t<=122}function Wi(t){return t>=0&&t<=1114111}function zi(t){return t===100||t===68||t===115||t===83||t===119||t===87}function Xe(t){return Je(t)||t===95}function Qi(t){return Xe(t)||Dt(t)}function $i(t){return t===33||t>=35&&t<=38||t>=42&&t<=44||t===46||t>=58&&t<=64||t===94||t===96||t===126}function Yi(t){return t===40||t===41||t===45||t===47||t>=91&&t<=93||t>=123&&t<=125}function Zi(t){return t===33||t===35||t===37||t===38||t===44||t===45||t>=58&&t<=62||t===64||t===96||t===126}function Dt(t){return t>=48&&t<=57}function He(t){return t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102}function We(t){return t>=65&&t<=70?10+(t-65):t>=97&&t<=102?10+(t-97):t-48}function ze(t){return t>=48&&t<=55}function ts(t,e){return e?parseInt(t,8):parseFloat(t.replace(/_/g,""))}function Qe(t){return typeof BigInt!="function"?null:BigInt(t.replace(/_/g,""))}function ss(t,e){let i=new SyntaxError(t+" ("+e.loc.start.line+":"+e.loc.start.column+")");return Object.assign(i,e)}function Ze(t){let e=[];for(let i of t)try{return i()}catch(s){e.push(s)}throw Object.assign(new Error("All combinations failed"),{errors:e})}function os(t){return this[t<0?this.length+t:t]}function X(t){let e=t.range?.[0]??t.start,i=(t.declaration?.decorators??t.decorators)?.[0];return i?Math.min(X(i),e):e}function q(t){return t.range?.[1]??t.end}function hs(t){let e=new Set(t);return i=>e.has(i?.type)}function ds(t){return Nt.has(t)||Nt.set(t,ee(t)&&t.value[0]==="*"&&/@(?:type|satisfies)\b/u.test(t.value)),Nt.get(t)}function ms(t){if(!ee(t))return!1;let e=`*${t.value}*`.split(` `);return e.length>1&&e.every(i=>i.trimStart()[0]==="*")}function xs(t){return Lt.has(t)||Lt.set(t,ms(t)),Lt.get(t)}function ys(t){if(t.length<2)return;let e;for(let i=t.length-1;i>=0;i--){let s=t[i];if(e&&q(s)===X(e)&&pe(s)&&pe(e)&&(t.splice(i+1,1),s.value+="*//*"+e.value,s.range=[X(s),q(e)]),!ls(s)&&!ee(s))throw new TypeError(`Unknown comment type: "${s.type}".`);e=s}}function As(t){return t!==null&&typeof t=="object"}function ht(t){if(ot!==null&&typeof ot.property){let e=ot;return ot=ht.prototype=null,e}return ot=ht.prototype=t??Object.create(null),new ht}function Es(t){return ht(t)}function bs(t,e="type"){Es(t);function i(s){let r=s[e],o=t[r];if(!Array.isArray(o))throw Object.assign(new Error(`Missing visitor keys for '${r}'.`),{node:s});return o}return i}function At(t,e){if(!vs(t))return t;if(Array.isArray(t)){for(let s=0;s<t.length;s++)t[s]=At(t[s],e);return t}if(e.onEnter){let s=e.onEnter(t)??t;if(s!==t)return At(s,e);t=s}let i=Ts(t);for(let s=0;s<i.length;s++)t[i[s]]=At(t[i[s]],e);return e.onLeave&&(t=e.onLeave(t)||t),t}function Ds(t,e){let{parser:i,text:s}=e,{comments:r}=t,o=i==="oxc"&&e.oxcAstType==="ts";gs(r);let u=t.type==="File"?t.program:t;u.interpreter&&(r.unshift(u.interpreter),delete u.interpreter),o&&t.hashbang&&(r.unshift(t.hashbang),delete t.hashbang),t.type==="Program"&&(t.range=[0,s.length]);let p;return t=ws(t,{onEnter(h){switch(h.type){case"ParenthesizedExpression":{let{expression:c}=h,m=X(h);if(c.type==="TypeCastExpression")return c.range=[m,q(h)],c;let A=!1;if(!o){if(!p){p=[];for(let v of r)fs(v)&&p.push(q(v))}let S=ns(0,p,v=>v<=m);A=S&&s.slice(S,m).trim().length===0}return A?void 0:(c.extra={...c.extra,parenthesized:!0},c)}case"TemplateLiteral":if(h.expressions.length!==h.quasis.length-1)throw new Error("Malformed template literal.");break;case"TemplateElement":if(i==="flow"||i==="hermes"||i==="espree"||i==="typescript"||o){let c=X(h)+1,m=q(h)-(h.tail?1:2);h.range=[c,m]}break;case"VariableDeclaration":{let c=Zt(0,h.declarations,-1);c?.init&&s[q(c)]!==";"&&(h.range=[X(h),q(c)]);break}case"TSParenthesizedType":return h.typeAnnotation;case"TopicReference":t.extra={...t.extra,__isUsingHackPipeline:!0};break;case"TSUnionType":case"TSIntersectionType":if(h.types.length===1)return h.types[0];break;case"ImportExpression":i==="hermes"&&h.attributes&&!h.options&&(h.options=h.attributes);break}},onLeave(h){switch(h.type){case"LogicalExpression":if(ti(h))return qt(h);break;case"TSImportType":!h.source&&h.argument.type==="TSLiteralType"&&(h.source=h.argument.literal,delete h.argument);break}}}),t}function ti(t){return t.type==="LogicalExpression"&&t.right.type==="LogicalExpression"&&t.operator===t.right.operator}function qt(t){return ti(t)?qt({type:"LogicalExpression",operator:t.operator,left:qt({type:"LogicalExpression",operator:t.operator,left:t.left,right:t.right.left,range:[X(t.left),q(t.right.left)]}),right:t.right.right,range:[X(t),q(t)]}):t}function Ms(t){let e=t.match(Ns);return e?e[0].trimStart():""}function js(t){t=gt(0,t.replace(Ps,"").replace(Is,""),Rs,"$1");let e="";for(;e!==t;)e=t,t=gt(0,t,Vs,` $1 $2 `);t=t.replace(ce,"").trimEnd();let i=Object.create(null),s=gt(0,t,le,"").replace(ce,"").trimEnd(),r;for(;r=le.exec(t);){let o=gt(0,r[2],Ls,"");if(typeof i[r[1]]=="string"||Array.isArray(i[r[1]])){let u=i[r[1]];i[r[1]]=[...Os,...Array.isArray(u)?u:[u],o]}else i[r[1]]=o}return{comments:s,pragmas:i}}function Gs(t){if(!t.startsWith("#!"))return"";let e=t.indexOf(` `);return e===-1?t:t.slice(0,e)}function ii(t){let e=Js(t);e&&(t=t.slice(e.length+1));let i=Ms(t),{pragmas:s,comments:r}=js(i);return{shebang:e,text:t,pragmas:s,comments:r}}function Ks(t){let{pragmas:e}=ii(t);return qs.some(i=>Object.prototype.hasOwnProperty.call(e,i))}function Xs(t){let{pragmas:e}=ii(t);return Us.some(i=>Object.prototype.hasOwnProperty.call(e,i))}function Hs(t){return t=typeof t=="function"?{parse:t}:t,{astFormat:"estree",hasPragma:Ks,hasIgnorePragma:Xs,locStart:X,locEnd:q,...t}}function ai(t){if(typeof t=="string"){if(t=t.toLowerCase(),/\.(?:mjs|mts)$/iu.test(t))return ie;if(/\.(?:cjs|cts)$/iu.test(t))return se}}function Qs(t){let{message:e,loc:i}=t;if(!i)return t;let{line:s,column:r}=i;return Ye(e.replace(/ \(\d+:\d+\)$/u,""),{loc:{start:{line:s,column:r+1}},cause:t})}function Ys(t,e){let i=$s(),s=[],r=i.parse(t,{...zs,sourceType:e===se?Ws:e,allowImportExportEverywhere:e===ie,onComment:s});return r.comments=s,r}function Zs(t,e){let i=ai(e?.filepath),s=(i?[i]:ri).map(o=>()=>Ys(t,o)),r;try{r=Ze(s)}catch({errors:[o]}){throw Qs(o)}return ei(r,{text:t})}function ir(t,e){let i=t[0],s=Zt(0,t,-1),r={type:F.Template,value:e.slice(i.start,s.end)};return i.loc&&(r.loc={start:i.loc.start,end:s.loc.end}),i.range&&(r.start=i.range[0],r.end=s.range[1],r.range=[r.start,r.end]),r}function Gt(t,e){this._acornTokTypes=t,this._tokens=[],this._curlyBrace=null,this._code=e}function rr(){return Zt(0,ni,-1)}function ar(t=5){let e=t==="latest"?rr():t;if(typeof e!="number")throw new Error(`ecmaVersion must be a number or "latest". Received value of type ${typeof t} instead.`);if(e>=2015&&(e-=2009),!ni.includes(e))throw new Error("Invalid ecmaVersion.");return e}function nr(t="script"){if(t==="script"||t==="module")return t;if(t==="commonjs")return"script";throw new Error("Invalid sourceType.")}function or(t){let e=ar(t.ecmaVersion),i=nr(t.sourceType),s=t.range===!0,r=t.loc===!0;if(e!==3&&t.allowReserved)throw new Error("`allowReserved` is only supported when ecmaVersion is 3");if(typeof t.allowReserved<"u"&&typeof t.allowReserved!="boolean")throw new Error("`allowReserved`, when present, must be `true` or `false`");let o=e===3?t.allowReserved||"never":!1,u=t.ecmaFeatures||{},p=t.sourceType==="commonjs"||!!u.globalReturn;if(i==="module"&&e<6)throw new Error("sourceType 'module' is not supported when ecmaVersion < 2015. Consider adding `{ ecmaVersion: 2015 }` to the parser options.");return Object.assign({},t,{ecmaVersion:e,sourceType:i,ranges:s,locations:r,allowReserved:o,allowReturnOutsideFunction:p})}function ur(t,e,i,s,r,o,u){let p;t?p="Block":u.slice(i,i+2)==="#!"?p="Hashbang":p="Line";let h={type:p,value:e};return typeof i=="number"&&(h.start=i,h.end=s,h.range=[i,s]),typeof r=="object"&&(h.loc={start:r,end:o}),h}function pr(t,e){let i=hr.get(e);return new i(e,t).parse()}function lr(t){let{message:e,lineNumber:i,column:s}=t;return typeof i!="number"?t:Ye(e,{loc:{start:{line:i,column:s}},cause:t})}function dr(t,e){let i=ai(e?.filepath),s=(i?[i]:ri).map(o=>()=>pr(t,{...cr,sourceType:o})),r;try{r=Ze(s)}catch({errors:[o]}){throw lr(o)}return ei(r,{parser:"espree",text:t})}var hi,Jt,pi,ci,li,di,fe,fi,mi,me,xi,xe,yi,gi,ye,Ai,ge,Bt,It,vi,Ci,Ei,bi,b,R,P,Kt,a,N,Si,ve,D,Ce,ki,_i,rt,ae,ne,Ti,pt,St,Mt,oe,ct,at,Xt,be,Ht,Se,kt,ke,et,lt,_t,vt,zt,z,_e,Te,we,w,J,B,Fi,Tt,f,Qt,Bi,Ii,ut,jt,De,M,U,T,nt,x,Ni,Et,Y,Li,wt,dt,Vi,Ie,Pe,Ne,Le,Ve,Ri,Oi,Mi,ji,ue,Re,Oe,Me,je,Ue,Ui,qi,qe,he,yt,Pt,d,bt,K,Ke,W,O,$t,C,$e,es,is,Ye,Yt,rs,as,ns,us,Zt,te,ps,ee,cs,ls,Nt,fs,Lt,pe,gs,vs,ot,Cs,Ss,n,ks,_s,Ts,ws,yr,ei,Fs,Bs,gt,Is,Ps,Ns,Ls,ce,Vs,le,Rs,Os,Us,qs,Js,si,ie,Ws,se,ri,zs,Vt,$s,tr,er,F,sr,ni,tt,Rt,de,hr,cr,fr,mr,xr=ui(()=>{re();hi=Object.create,Jt=Object.defineProperty,pi=Object.getOwnPropertyDescriptor,ci=Object.getOwnPropertyNames,li=Object.getPrototypeOf,di=Object.prototype.hasOwnProperty,fe=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),fi=(t,e)=>{for(var i in e)Jt(t,i,{get:e[i],enumerable:!0})},mi=(t,e,i,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of ci(e))!di.call(t,r)&&r!==i&&Jt(t,r,{get:()=>e[r],enumerable:!(s=pi(e,r))||s.enumerable});return t},me=(t,e,i)=>(i=t!=null?hi(li(t)):{},mi(e||!t||!t.__esModule?Jt(i,"default",{value:t,enumerable:!0}):i,t)),xi=fe((t,e)=>{e.exports={}}),xe=fe((t,e)=>{"use strict";var i=xi(),s=/^[\da-fA-F]+$/,r=/^\d+$/,o=new WeakMap;function u(c){c=c.Parser.acorn||c;let m=o.get(c);if(!m){let A=c.tokTypes,S=c.TokContext,v=c.TokenType,k=new S("<tag",!1),L=new S("</tag",!1),I=new S("<tag>...</tag>",!0,!0),j={tc_oTag:k,tc_cTag:L,tc_expr:I},it={jsxName:new v("jsxName"),jsxText:new v("jsxText",{beforeExpr:!0}),jsxTagStart:new v("jsxTagStart",{startsExpr:!0}),jsxTagEnd:new v("jsxTagEnd")};it.jsxTagStart.updateContext=function(){this.context.push(I),this.context.push(k),this.exprAllowed=!1},it.jsxTagEnd.updateContext=function(ft){let mt=this.context.pop();mt===k&&ft===A.slash||mt===L?(this.context.pop(),this.exprAllowed=this.curContext()===I):this.exprAllowed=!0},m={tokContexts:j,tokTypes:it},o.set(c,m)}return m}function p(c){if(!c)return c;if(c.type==="JSXIdentifier")return c.name;if(c.type==="JSXNamespacedName")return c.namespace.name+":"+c.name.name;if(c.type==="JSXMemberExpression")return p(c.object)+"."+p(c.property)}e.exports=function(c){return c=c||{},function(m){return h({allowNamespaces:c.allowNamespaces!==!1,allowNamespacedObjects:!!c.allowNamespacedObjects},m)}},Object.defineProperty(e.exports,"tokTypes",{get:function(){return u(void 0).tokTypes},configurable:!0,enumerable:!0});function h(c,m){let A=m.acorn||void 0,S=u(A),v=A.tokTypes,k=S.tokTypes,L=A.tokContexts,I=S.tokContexts.tc_oTag,j=S.tokContexts.tc_cTag,it=S.tokContexts.tc_expr,ft=A.isNewLine,mt=A.isIdentifierStart,oi=A.isIdentifierChar;return class extends m{static get acornJsx(){return S}jsx_readToken(){let l="",y=this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated JSX contents");let g=this.input.charCodeAt(this.pos);switch(g){case 60:case 123:return this.pos===this.start?g===60&&this.exprAllowed?(++this.pos,this.finishToken(k.jsxTagStart)):this.getTokenFromCode(g):(l+=this.input.slice(y,this.pos),this.finishToken(k.jsxText,l));case 38:l+=this.input.slice(y,this.pos),l+=this.jsx_readEntity(),y=this.pos;break;case 62:case 125:this.raise(this.pos,"Unexpected token `"+this.input[this.pos]+"`. Did you mean `"+(g===62?"&gt;":"&rbrace;")+'` or `{"'+this.input[this.pos]+'"}`?');default:ft(g)?(l+=this.input.slice(y,this.pos),l+=this.jsx_readNewLine(!0),y=this.pos):++this.pos}}}jsx_readNewLine(l){let y=this.input.charCodeAt(this.pos),g;return++this.pos,y===13&&this.input.charCodeAt(this.pos)===10?(++this.pos,g=l?` `:`\r `):g=String.fromCharCode(y),this.options.locations&&(++this.curLine,this.lineStart=this.pos),g}jsx_readString(l){let y="",g=++this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");let _=this.input.charCodeAt(this.pos);if(_===l)break;_===38?(y+=this.input.slice(g,this.pos),y+=this.jsx_readEntity(),g=this.pos):ft(_)?(y+=this.input.slice(g,this.pos),y+=this.jsx_readNewLine(!1),g=this.pos):++this.pos}return y+=this.input.slice(g,this.pos++),this.finishToken(v.string,y)}jsx_readEntity(){let l="",y=0,g,_=this.input[this.pos];_!=="&"&&this.raise(this.pos,"Entity must start with an ampersand");let Z=++this.pos;for(;this.pos<this.input.length&&y++<10;){if(_=this.input[this.pos++],_===";"){l[0]==="#"?l[1]==="x"?(l=l.substr(2),s.test(l)&&(g=String.fromCharCode(parseInt(l,16)))):(l=l.substr(1),r.test(l)&&(g=String.fromCharCode(parseInt(l,10)))):g=i[l];break}l+=_}return g||(this.pos=Z,"&")}jsx_readWord(){let l,y=this.pos;do l=this.input.charCodeAt(++this.pos);while(oi(l)||l===45);return this.finishToken(k.jsxName,this.input.slice(y,this.pos))}jsx_parseIdentifier(){let l=this.startNode();return this.type===k.jsxName?l.name=this.value:this.type.keyword?l.name=this.type.keyword:this.unexpected(),this.next(),this.finishNode(l,"JSXIdentifier")}jsx_parseNamespacedName(){let l=this.start,y=this.startLoc,g=this.jsx_parseIdentifier();if(!c.allowNamespaces||!this.eat(v.colon))return g;var _=this.startNodeAt(l,y);return _.namespace=g,_.name=this.jsx_parseIdentifier(),this.finishNode(_,"JSXNamespacedName")}jsx_parseElementName(){if(this.type===k.jsxTagEnd)return"";let l=this.start,y=this.startLoc,g=this.jsx_parseNamespacedName();for(this.type===v.dot&&g.type==="JSXNamespacedName"&&!c.allowNamespacedObjects&&this.unexpected();this.eat(v.dot);){let _=this.startNodeAt(l,y);_.object=g,_.property=this.jsx_parseIdentifier(),g=this.finishNode(_,"JSXMemberExpression")}return g}jsx_parseAttributeValue(){switch(this.type){case v.braceL:let l=this.jsx_parseExpressionContainer();return l.expression.type==="JSXEmptyExpression"&&this.raise(l.start,"JSX attributes must only be assigned a non-empty expression"),l;case k.jsxTagStart:case v.string:return this.parseExprAtom();default:this.raise(this.start,"JSX value should be either an expression or a quoted JSX text")}}jsx_parseEmptyExpression(){let l=this.startNodeAt(this.lastTokEnd,this.lastTokEndLoc);return this.finishNodeAt(l,"JSXEmptyExpression",this.start,this.startLoc)}jsx_parseExpressionContainer(){let l=this.startNode();return this.next(),l.expression=this.type===v.braceR?this.jsx_parseEmptyExpression():this.parseExpression(),this.expect(v.braceR),this.finishNode(l,"JSXExpressionContainer")}jsx_parseAttribute(){let l=this.startNode();return this.eat(v.braceL)?(this.expect(v.ellipsis),l.argument=this.parseMaybeAssign(),this.expect(v.braceR),this.finishNode(l,"JSXSpreadAttribute")):(l.name=this.jsx_parseNamespacedName(),l.value=this.eat(v.eq)?this.jsx_parseAttributeValue():null,this.finishNode(l,"JSXAttribute"))}jsx_parseOpeningElementAt(l,y){let g=this.startNodeAt(l,y);g.attributes=[];let _=this.jsx_parseElementName();for(_&&(g.name=_);this.type!==v.slash&&this.type!==k.jsxTagEnd;)g.attributes.push(this.jsx_parseAttribute());return g.selfClosing=this.eat(v.slash),this.expect(k.jsxTagEnd),this.finishNode(g,_?"JSXOpeningElement":"JSXOpeningFragment")}jsx_parseClosingElementAt(l,y){let g=this.startNodeAt(l,y),_=this.jsx_parseElementName();return _&&(g.name=_),this.expect(k.jsxTagEnd),this.finishNode(g,_?"JSXClosingElement":"JSXClosingFragment")}jsx_parseElementAt(l,y){let g=this.startNodeAt(l,y),_=[],Z=this.jsx_parseOpeningElementAt(l,y),xt=null;if(!Z.selfClosing){t:for(;;)switch(this.type){case k.jsxTagStart:if(l=this.start,y=this.startLoc,this.next(),this.eat(v.slash)){xt=this.jsx_parseClosingElementAt(l,y);break t}_.push(this.jsx_parseElementAt(l,y));break;case k.jsxText:_.push(this.parseExprAtom());break;case v.braceL:_.push(this.jsx_parseExpressionContainer());break;default:this.unexpected()}p(xt.name)!==p(Z.name)&&this.raise(xt.start,"Expected corresponding JSX closing tag for <"+p(Z.name)+">")}let Ft=Z.name?"Element":"Fragment";return g["opening"+Ft]=Z,g["closing"+Ft]=xt,g.children=_,this.type===v.relational&&this.value==="<"&&this.raise(this.start,"Adjacent JSX elements must be wrapped in an enclosing tag"),this.finishNode(g,"JSX"+Ft)}jsx_parseText(){let l=this.parseLiteral(this.value);return l.type="JSXText",l}jsx_parseElement(){let l=this.start,y=this.startLoc;return this.next(),this.jsx_parseElementAt(l,y)}parseExprAtom(l){return this.type===k.jsxText?this.jsx_parseText():this.type===k.jsxTagStart?this.jsx_parseElement():super.parseExprAtom(l)}readToken(l){let y=this.curContext();if(y===it)return this.jsx_readToken();if(y===I||y===j){if(mt(l))return this.jsx_readWord();if(l==62)return++this.pos,this.finishToken(k.jsxTagEnd);if((l===34||l===39)&&y==I)return this.jsx_readString(l)}return l===60&&this.exprAllowed&&this.input.charCodeAt(this.pos+1)!==33?(++this.pos,this.finishToken(k.jsxTagStart)):super.readToken(l)}updateContext(l){if(this.type==v.braceL){var y=this.curContext();y==I?this.context.push(L.b_expr):y==it?this.context.push(L.b_tmpl):super.updateContext(l),this.exprAllowed=!0}else if(this.type===v.slash&&l===k.jsxTagStart)this.context.length-=2,this.context.push(j),this.exprAllowed=!1;else return super.updateContext(l)}}}}),yi={};fi(yi,{parsers:()=>mr});gi=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,80,3,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,343,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,726,6,110,6,6,9,4759,9,787719,239],ye=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,2,60,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,42,9,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,496,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],Ai="\u200C\u200D\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65",ge="\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CD\uA7D0\uA7D1\uA7D3\uA7D5-\uA7DC\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC",Bt={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},It="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",vi={5:It,"5module":It+" export import",6:It+" const class extends export import super"},Ci=/^in(stanceof)?$/,Ei=new RegExp("["+ge+"]"),bi=new RegExp("["+ge+Ai+"]");b=function(t,e){e===void 0&&(e={}),this.label=t,this.keyword=e.keyword,this.beforeExpr=!!e.beforeExpr,this.startsExpr=!!e.startsExpr,this.isLoop=!!e.isLoop,this.isAssign=!!e.isAssign,this.prefix=!!e.prefix,this.postfix=!!e.postfix,this.binop=e.binop||null,this.updateContext=null};R={beforeExpr:!0},P={startsExpr:!0},Kt={};a={num:new b("num",P),regexp:new b("regexp",P),string:new b("string",P),name:new b("name",P),privateId:new b("privateId",P),eof:new b("eof"),bracketL:new b("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new b("]"),braceL:new b("{",{beforeExpr:!0,startsExpr:!0}),braceR:new b("}"),parenL:new b("(",{beforeExpr:!0,startsExpr:!0}),parenR:new b(")"),comma:new b(",",R),semi:new b(";",R),colon:new b(":",R),dot:new b("."),question:new b("?",R),questionDot:new b("?."),arrow:new b("=>",R),template:new b("template"),invalidTemplate:new b("invalidTemplate"),ellipsis:new b("...",R),backQuote:new b("`",P),dollarBraceL:new b("${",{beforeExpr:!0,startsExpr:!0}),eq:new b("=",{beforeExpr:!0,isAssign:!0}),assign:new b("_=",{beforeExpr:!0,isAssign:!0}),incDec:new b("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new b("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:V("||",1),logicalAND:V("&&",2),bitwiseOR:V("|",3),bitwiseXOR:V("^",4),bitwiseAND:V("&",5),equality:V("==/!=/===/!==",6),relational:V("</>/<=/>=",7),bitShift:V("<</>>/>>>",8),plusMin:new b("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:V("%",10),star:V("*",10),slash:V("/",10),starstar:new b("**",{beforeExpr:!0}),coalesce:V("??",1),_break:E("break"),_case:E("case",R),_catch:E("catch"),_continue:E("continue"),_debugger:E("debugger"),_default:E("default",R),_do:E("do",{isLoop:!0,beforeExpr:!0}),_else:E("else",R),_finally:E("finally"),_for:E("for",{isLoop:!0}),_function:E("function",P),_if:E("if"),_return:E("return",R),_switch:E("switch"),_throw:E("throw",R),_try:E("try"),_var:E("var"),_const:E("const"),_while:E("while",{isLoop:!0}),_with:E("with"),_new:E("new",{beforeExpr:!0,startsExpr:!0}),_this:E("this",P),_super:E("super",P),_class:E("class",P),_extends:E("extends",R),_export:E("export"),_import:E("import",P),_null:E("null",P),_true:E("true",P),_false:E("false",P),_in:E("in",{beforeExpr:!0,binop:7}),_instanceof:E("instanceof",{beforeExpr:!0,binop:7}),_typeof:E("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:E("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:E("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},N=/\r\n?|\n|\u2028|\u2029/,Si=new RegExp(N.source,"g");ve=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,D=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,Ce=Object.prototype,ki=Ce.hasOwnProperty,_i=Ce.toString,rt=Object.hasOwn||(function(t,e){return ki.call(t,e)}),ae=Array.isArray||(function(t){return _i.call(t)==="[object Array]"}),ne=Object.create(null);Ti=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,pt=function(t,e){this.line=t,this.column=e};pt.prototype.offset=function(t){return new pt(this.line,this.column+t)};St=function(t,e,i){this.start=e,this.end=i,t.sourceFile!==null&&(this.source=t.sourceFile)};Mt={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},oe=!1;ct=1,at=2,Xt=4,be=8,Ht=16,Se=32,kt=64,ke=128,et=256,lt=512,_t=ct|at|et;vt=0,zt=1,z=2,_e=3,Te=4,we=5,w=function(t,e,i){this.options=t=wi(t),this.sourceFile=t.sourceFile,this.keywords=Q(vi[t.ecmaVersion>=6?6:t.sourceType==="module"?"5module":5]);var s="";t.allowReserved!==!0&&(s=Bt[t.ecmaVersion>=6?6:t.ecmaVersion===5?5:3],t.sourceType==="module"&&(s+=" await")),this.reservedWords=Q(s);var r=(s?s+" ":"")+Bt.strict;this.reservedWordsStrict=Q(r),this.reservedWordsStrictBind=Q(r+" "+Bt.strictBind),this.input=String(e),this.containsEsc=!1,i?(this.pos=i,this.lineStart=this.input.lastIndexOf(` `,i-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(N).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=a.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule=t.sourceType==="module",this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),this.pos===0&&t.allowHashBang&&this.input.slice(0,2)==="#!"&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(ct),this.regexpState=null,this.privateNameStack=[]},J={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},inClassStaticBlock:{configurable:!0}};w.prototype.parse=function(){var t=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(t)};J.inFunction.get=function(){return(this.currentVarScope().flags&at)>0};J.inGenerator.get=function(){return(this.currentVarScope().flags&be)>0};J.inAsync.get=function(){return(this.currentVarScope().flags&Xt)>0};J.canAwait.get=function(){for(var t=this.scopeStack.length-1;t>=0;t--){var e=this.scopeStack[t],i=e.flags;if(i&(et|lt))return!1;if(i&at)return(i&Xt)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction};J.allowSuper.get=function(){var t=this.currentThisScope(),e=t.flags;return(e&kt)>0||this.options.allowSuperOutsideMethod};J.allowDirectSuper.get=function(){return(this.currentThisScope().flags&ke)>0};J.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())};J.allowNewDotTarget.get=function(){for(var t=this.scopeStack.length-1;t>=0;t--){var e=this.scopeStack[t],i=e.flags;if(i&(et|lt)||i&at&&!(i&Ht))return!0}return!1};J.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&et)>0};w.extend=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];for(var i=this,s=0;s<t.length;s++)i=t[s](i);return i};w.parse=function(t,e){return new this(e,t).parse()};w.parseExpressionAt=function(t,e,i){var s=new this(i,t,e);return s.nextToken(),s.parseExpression()};w.tokenizer=function(t,e){return new this(e,t)};Object.defineProperties(w.prototype,J);B=w.prototype,Fi=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;B.strictDirective=function(t){if(this.options.ecmaVersion<5)return!1;for(;;){D.lastIndex=t,t+=D.exec(this.input)[0].length;var e=Fi.exec(this.input.slice(t));if(!e)return!1;if((e[1]||e[2])==="use strict"){D.lastIndex=t+e[0].length;var i=D.exec(this.input),s=i.index+i[0].length,r=this.input.charAt(s);return r===";"||r==="}"||N.test(i[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(r)||r==="!"&&this.input.charAt(s+1)==="=")}t+=e[0].length,D.lastIndex=t,t+=D.exec(this.input)[0].length,this.input[t]===";"&&t++}};B.eat=function(t){return this.type===t?(this.next(),!0):!1};B.isContextual=function(t){return this.type===a.name&&this.value===t&&!this.containsEsc};B.eatContextual=function(t){return this.isContextual(t)?(this.next(),!0):!1};B.expectContextual=function(t){this.eatContextual(t)||this.unexpected()};B.canInsertSemicolon=function(){return this.type===a.eof||this.type===a.braceR||N.test(this.input.slice(this.lastTokEnd,this.start))};B.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0};B.semicolon=function(){!this.eat(a.semi)&&!this.insertSemicolon()&&this.unexpected()};B.afterTrailingComma=function(t,e){if(this.type===t)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),e||this.next(),!0};B.expect=function(t){this.eat(t)||this.unexpected()};B.unexpected=function(t){this.raise(t??this.start,"Unexpected token")};Tt=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};B.checkPatternErrors=function(t,e){if(t){t.trailingComma>-1&&this.raiseRecoverable(t.trailingComma,"Comma is not permitted after the rest element");var i=e?t.parenthesizedAssign:t.parenthesizedBind;i>-1&&this.raiseRecoverable(i,e?"Assigning to rvalue":"Parenthesized pattern")}};B.checkExpressionErrors=function(t,e){if(!t)return!1;var i=t.shorthandAssign,s=t.doubleProto;if(!e)return i>=0||s>=0;i>=0&&this.raise(i,"Shorthand property assignments are valid only in destructuring patterns"),s>=0&&this.raiseRecoverable(s,"Redefinition of __proto__ property")};B.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")};B.isSimpleAssignTarget=function(t){return t.type==="ParenthesizedExpression"?this.isSimpleAssignTarget(t.expression):t.type==="Identifier"||t.type==="MemberExpression"};f=w.prototype;f.parseTopLevel=function(t){var e=Object.create(null);for(t.body||(t.body=[]);this.type!==a.eof;){var i=this.parseStatement(null,!0,e);t.body.push(i)}if(this.inModule)for(var s=0,r=Object.keys(this.undefinedExports);s<r.length;s+=1){var o=r[s];this.raiseRecoverable(this.undefinedExports[o].start,"Export '"+o+"' is not defined")}return this.adaptDirectivePrologue(t.body),this.next(),t.sourceType=this.options.sourceType,this.finishNode(t,"Program")};Qt={kind:"loop"},Bi={kind:"switch"};f.isLet=function(t){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;D.lastIndex=this.pos;var e=D.exec(this.input),i=this.pos+e[0].length,s=this.input.charCodeAt(i);if(s===91||s===92)return!0;if(t)return!1;if(s===123||s>55295&&s<56320)return!0;if(G(s,!0)){for(var r=i+1;$(s=this.input.charCodeAt(r),!0);)++r;if(s===92||s>55295&&s<56320)return!0;var o=this.input.slice(i,r);if(!Ci.test(o))return!0}return!1};f.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;D.lastIndex=this.pos;var t=D.exec(this.input),e=this.pos+t[0].length,i;return!N.test(this.input.slice(this.pos,e))&&this.input.slice(e,e+8)==="function"&&(e+8===this.input.length||!($(i=this.input.charCodeAt(e+8))||i>55295&&i<56320))};f.isUsingKeyword=function(t,e){if(this.options.ecmaVersion<17||!this.isContextual(t?"await":"using"))return!1;D.lastIndex=this.pos;var i=D.exec(this.input),s=this.pos+i[0].length;if(N.test(this.input.slice(this.pos,s)))return!1;if(t){var r=s+5,o;if(this.input.slice(s,r)!=="using"||r===this.input.length||$(o=this.input.charCodeAt(r))||o>55295&&o<56320)return!1;D.lastIndex=r;var u=D.exec(this.input);if(u&&N.test(this.input.slice(r,r+u[0].length)))return!1}if(e){var p=s+2,h;if(this.input.slice(s,p)==="of"&&(p===this.input.length||!$(h=this.input.charCodeAt(p))&&!(h>55295&&h<56320)))return!1}var c=this.input.charCodeAt(s);return G(c,!0)||c===92};f.isAwaitUsing=function(t){return this.isUsingKeyword(!0,t)};f.isUsing=function(t){return this.isUsingKeyword(!1,t)};f.parseStatement=function(t,e,i){var s=this.type,r=this.startNode(),o;switch(this.isLet(t)&&(s=a._var,o="let"),s){case a._break:case a._continue:return this.parseBreakContinueStatement(r,s.keyword);case a._debugger:return this.parseDebuggerStatement(r);case a._do:return this.parseDoStatement(r);case a._for:return this.parseForStatement(r);case a._function:return t&&(this.strict||t!=="if"&&t!=="label")&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(r,!1,!t);case a._class:return t&&this.unexpected(),this.parseClass(r,!0);case a._if:return this.parseIfStatement(r);case a._return:return this.parseReturnStatement(r);case a._switch:return this.parseSwitchStatement(r);case a._throw:return this.parseThrowStatement(r);case a._try:return this.parseTryStatement(r);case a._const:case a._var:return o=o||this.value,t&&o!=="var"&&this.unexpected(),this.parseVarStatement(r,o);case a._while:return this.parseWhileStatement(r);case a._with:return this.parseWithStatement(r);case a.braceL:return this.parseBlock(!0,r);case a.semi:return this.parseEmptyStatement(r);case a._export:case a._import:if(this.options.ecmaVersion>10&&s===a._import){D.lastIndex=this.pos;var u=D.exec(this.input),p=this.pos+u[0].length,h=this.input.charCodeAt(p);if(h===40||h===46)return this.parseExpressionStatement(r,this.parseExpression())}return this.options.allowImportExportEverywhere||(e||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),s===a._import?this.parseImport(r):this.parseExport(r,i);default:if(this.isAsyncFunction())return t&&this.unexpected(),this.next(),this.parseFunctionStatement(r,!0,!t);var c=this.isAwaitUsing(!1)?"await using":this.isUsing(!1)?"using":null;if(c)return e&&this.options.sourceType==="script"&&this.raise(this.start,"Using declaration cannot appear in the top level when source type is `script`"),c==="await using"&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.next(),this.parseVar(r,!1,c),this.semicolon(),this.finishNode(r,"VariableDeclaration");var m=this.value,A=this.parseExpression();return s===a.name&&A.type==="Identifier"&&this.eat(a.colon)?this.parseLabeledStatement(r,m,A,t):this.parseExpressionStatement(r,A)}};f.parseBreakContinueStatement=function(t,e){var i=e==="break";this.next(),this.eat(a.semi)||this.insertSemicolon()?t.label=null:this.type!==a.name?this.unexpected():(t.label=this.parseIdent(),this.semicolon());for(var s=0;s<this.labels.length;++s){var r=this.labels[s];if((t.label==null||r.name===t.label.name)&&(r.kind!=null&&(i||r.kind==="loop")||t.label&&i))break}return s===this.labels.length&&this.raise(t.start,"Unsyntactic "+e),this.finishNode(t,i?"BreakStatement":"ContinueStatement")};f.parseDebuggerStatement=function(t){return this.next(),this.semicolon(),this.finishNode(t,"DebuggerStatement")};f.parseDoStatement=function(t){return this.next(),this.labels.push(Qt),t.body=this.parseStatement("do"),this.labels.pop(),this.expect(a._while),t.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(a.semi):this.semicolon(),this.finishNode(t,"DoWhileStatement")};f.parseForStatement=function(t){this.next();var e=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(Qt),this.enterScope(0),this.expect(a.parenL),this.type===a.semi)return e>-1&&this.unexpected(e),this.parseFor(t,null);var i=this.isLet();if(this.type===a._var||this.type===a._const||i){var s=this.startNode(),r=i?"let":this.value;return this.next(),this.parseVar(s,!0,r),this.finishNode(s,"VariableDeclaration"),this.parseForAfterInit(t,s,e)}var o=this.isContextual("let"),u=!1,p=this.isUsing(!0)?"using":this.isAwaitUsing(!0)?"await using":null;if(p){var h=this.startNode();return this.next(),p==="await using"&&this.next(),this.parseVar(h,!0,p),this.finishNode(h,"VariableDeclaration"),this.parseForAfterInit(t,h,e)}var c=this.containsEsc,m=new Tt,A=this.start,S=e>-1?this.parseExprSubscripts(m,"await"):this.parseExpression(!0,m);return this.type===a._in||(u=this.options.ecmaVersion>=6&&this.isContextual("of"))?(e>-1?(this.type===a._in&&this.unexpected(e),t.await=!0):u&&this.options.ecmaVersion>=8&&(S.start===A&&!c&&S.type==="Identifier"&&S.name==="async"?this.unexpected():this.options.ecmaVersion>=9&&(t.await=!1)),o&&u&&this.raise(S.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(S,!1,m),this.checkLValPattern(S),this.parseForIn(t,S)):(this.checkExpressionErrors(m,!0),e>-1&&this.unexpected(e),this.parseFor(t,S))};f.parseForAfterInit=function(t,e,i){return(this.type===a._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&e.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===a._in?i>-1&&this.unexpected(i):t.await=i>-1),this.parseForIn(t,e)):(i>-1&&this.unexpected(i),this.parseFor(t,e))};f.parseFunctionStatement=function(t,e,i){return this.next(),this.parseFunction(t,ut|(i?0:jt),!1,e)};f.parseIfStatement=function(t){return this.next(),t.test=this.parseParenExpression(),t.consequent=this.parseStatement("if"),t.alternate=this.eat(a._else)?this.parseStatement("if"):null,this.finishNode(t,"IfStatement")};f.parseReturnStatement=function(t){return!this.inFunction&&!this.options.allowReturnOutsideFunction&&this.raise(this.start,"'return' outside of function"),this.next(),this.eat(a.semi)||this.insertSemicolon()?t.argument=null:(t.argument=this.parseExpression(),this.semicolon()),this.finishNode(t,"ReturnStatement")};f.parseSwitchStatement=function(t){this.next(),t.discriminant=this.parseParenExpression(),t.cases=[],this.expect(a.braceL),this.labels.push(Bi),this.enterScope(0);for(var e,i=!1;this.type!==a.braceR;)if(this.type===a._case||this.type===a._default){var s=this.type===a._case;e&&this.finishNode(e,"SwitchCase"),t.cases.push(e=this.startNode()),e.consequent=[],this.next(),s?e.test=this.parseExpression():(i&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),i=!0,e.test=null),this.expect(a.colon)}else e||this.unexpected(),e.consequent.push(this.parseStatement(null));return this.exitScope(),e&&this.finishNode(e,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(t,"SwitchStatement")};f.parseThrowStatement=function(t){return this.next(),N.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),t.argument=this.parseExpression(),this.semicolon(),this.finishNode(t,"ThrowStatement")};Ii=[];f.parseCatchClauseParam=function(){var t=this.parseBindingAtom(),e=t.type==="Identifier";return this.enterScope(e?Se:0),this.checkLValPattern(t,e?Te:z),this.expect(a.parenR),t};f.parseTryStatement=function(t){if(this.next(),t.block=this.parseBlock(),t.handler=null,this.type===a._catch){var e=this.startNode();this.next(),this.eat(a.parenL)?e.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),e.param=null,this.enterScope(0)),e.body=this.parseBlock(!1),this.exitScope(),t.handler=this.finishNode(e,"CatchClause")}return t.finalizer=this.eat(a._finally)?this.parseBlock():null,!t.handler&&!t.finalizer&&this.raise(t.start,"Missing catch or finally clause"),this.finishNode(t,"TryStatement")};f.parseVarStatement=function(t,e,i){return this.next(),this.parseVar(t,!1,e,i),this.semicolon(),this.finishNode(t,"VariableDeclaration")};f.parseWhileStatement=function(t){return this.next(),t.test=this.parseParenExpression(),this.labels.push(Qt),t.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(t,"WhileStatement")};f.parseWithStatement=function(t){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),t.object=this.parseParenExpression(),t.body=this.parseStatement("with"),this.finishNode(t,"WithStatement")};f.parseEmptyStatement=function(t){return this.next(),this.finishNode(t,"EmptyStatement")};f.parseLabeledStatement=function(t,e,i,s){for(var r=0,o=this.labels;r<o.length;r+=1){var u=o[r];u.name===e&&this.raise(i.start,"Label '"+e+"' is already declared")}for(var p=this.type.isLoop?"loop":this.typ