react-code-locator 0.2.2 → 0.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/webpack.cjs CHANGED
@@ -1,45 +1,33 @@
1
- "use strict";var Ko=Object.create;var vi=Object.defineProperty;var Xo=Object.getOwnPropertyDescriptor;var Jo=Object.getOwnPropertyNames;var Qo=Object.getPrototypeOf,Yo=Object.prototype.hasOwnProperty;var ot=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),gr=(e,t)=>{for(var s in t)vi(e,s,{get:t[s],enumerable:!0})},vr=(e,t,s,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Jo(t))!Yo.call(e,o)&&o!==s&&vi(e,o,{get:()=>t[o],enumerable:!(a=Xo(t,o))||a.enumerable});return e};var mt=(e,t,s)=>(s=e!=null?Ko(Qo(e)):{},vr(t||!e||!e.__esModule?vi(s,"default",{value:e,enumerable:!0}):s,e)),Zo=e=>vr(vi({},"__esModule",{value:!0}),e);var Kt=ot((Ll,_r)=>{"use strict";var br="[^\\\\/]",eu="(?=.)",Sr="[^/]",Zi="(?:\\/|$)",Cr="(?:^|\\/)",es=`\\.{1,2}${Zi}`,tu="(?!\\.)",iu=`(?!${Cr}${es})`,su=`(?!\\.{0,1}${Zi})`,ru=`(?!${es})`,au="[^.\\/]",nu=`${Sr}*?`,ou="/",wr={DOT_LITERAL:"\\.",PLUS_LITERAL:"\\+",QMARK_LITERAL:"\\?",SLASH_LITERAL:"\\/",ONE_CHAR:eu,QMARK:Sr,END_ANCHOR:Zi,DOTS_SLASH:es,NO_DOT:tu,NO_DOTS:iu,NO_DOT_SLASH:su,NO_DOTS_SLASH:ru,QMARK_NO_DOT:au,STAR:nu,START_ANCHOR:Cr,SEP:ou},uu={...wr,SLASH_LITERAL:"[\\\\/]",QMARK:br,STAR:`${br}*?`,DOTS_SLASH:"\\.{1,2}(?:[\\\\/]|$)",NO_DOT:"(?!\\.)",NO_DOTS:"(?!(?:^|[\\\\/])\\.{1,2}(?:[\\\\/]|$))",NO_DOT_SLASH:"(?!\\.{0,1}(?:[\\\\/]|$))",NO_DOTS_SLASH:"(?!\\.{1,2}(?:[\\\\/]|$))",QMARK_NO_DOT:"[^.\\\\/]",START_ANCHOR:"(?:^|[\\\\/])",END_ANCHOR:"(?:[\\\\/]|$)",SEP:"\\"},hu={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};_r.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:hu,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{__proto__:null,"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,extglobChars(e){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(e){return e===!0?uu:wr}}});var Xt=ot(Fe=>{"use strict";var{REGEX_BACKSLASH:cu,REGEX_REMOVE_BACKSLASH:lu,REGEX_SPECIAL_CHARS:pu,REGEX_SPECIAL_CHARS_GLOBAL:fu}=Kt();Fe.isObject=e=>e!==null&&typeof e=="object"&&!Array.isArray(e);Fe.hasRegexChars=e=>pu.test(e);Fe.isRegexChar=e=>e.length===1&&Fe.hasRegexChars(e);Fe.escapeRegex=e=>e.replace(fu,"\\$1");Fe.toPosixSlashes=e=>e.replace(cu,"/");Fe.isWindows=()=>{if(typeof navigator<"u"&&navigator.platform){let e=navigator.platform.toLowerCase();return e==="win32"||e==="windows"}return typeof process<"u"&&process.platform?process.platform==="win32":!1};Fe.removeBackslashes=e=>e.replace(lu,t=>t==="\\"?"":t);Fe.escapeLast=(e,t,s)=>{let a=e.lastIndexOf(t,s);return a===-1?e:e[a-1]==="\\"?Fe.escapeLast(e,t,a-1):`${e.slice(0,a)}\\${e.slice(a)}`};Fe.removePrefix=(e,t={})=>{let s=e;return s.startsWith("./")&&(s=s.slice(2),t.prefix="./"),s};Fe.wrapOutput=(e,t={},s={})=>{let a=s.contains?"":"^",o=s.contains?"":"$",c=`${a}(?:${e})${o}`;return t.negated===!0&&(c=`(?:^(?!${c}).*$)`),c};Fe.basename=(e,{windows:t}={})=>{let s=e.split(t?/[\\/]/:"/"),a=s[s.length-1];return a===""?s[s.length-2]:a}});var Lr=ot((Ol,Nr)=>{"use strict";var Ar=Xt(),{CHAR_ASTERISK:ts,CHAR_AT:du,CHAR_BACKWARD_SLASH:Jt,CHAR_COMMA:mu,CHAR_DOT:is,CHAR_EXCLAMATION_MARK:ss,CHAR_FORWARD_SLASH:Ir,CHAR_LEFT_CURLY_BRACE:rs,CHAR_LEFT_PARENTHESES:as,CHAR_LEFT_SQUARE_BRACKET:xu,CHAR_PLUS:yu,CHAR_QUESTION_MARK:Er,CHAR_RIGHT_CURLY_BRACE:gu,CHAR_RIGHT_PARENTHESES:kr,CHAR_RIGHT_SQUARE_BRACKET:vu}=Kt(),Tr=e=>e===Ir||e===Jt,Pr=e=>{e.isPrefix!==!0&&(e.depth=e.isGlobstar?1/0:1)},bu=(e,t)=>{let s=t||{},a=e.length-1,o=s.parts===!0||s.scanToEnd===!0,c=[],p=[],g=[],b=e,l=-1,P=0,_=0,B=!1,w=!1,E=!1,D=!1,V=!1,G=!1,Q=!1,$=!1,m=!1,ae=!1,K=0,ne,X,Z={value:"",depth:0,isGlob:!1},M=()=>l>=a,j=()=>b.charCodeAt(l+1),he=()=>(ne=X,b.charCodeAt(++l));for(;l<a;){X=he();let r;if(X===Jt){Q=Z.backslashes=!0,X=he(),X===rs&&(G=!0);continue}if(G===!0||X===rs){for(K++;M()!==!0&&(X=he());){if(X===Jt){Q=Z.backslashes=!0,he();continue}if(X===rs){K++;continue}if(G!==!0&&X===is&&(X=he())===is){if(B=Z.isBrace=!0,E=Z.isGlob=!0,ae=!0,o===!0)continue;break}if(G!==!0&&X===mu){if(B=Z.isBrace=!0,E=Z.isGlob=!0,ae=!0,o===!0)continue;break}if(X===gu&&(K--,K===0)){G=!1,B=Z.isBrace=!0,ae=!0;break}}if(o===!0)continue;break}if(X===Ir){if(c.push(l),p.push(Z),Z={value:"",depth:0,isGlob:!1},ae===!0)continue;if(ne===is&&l===P+1){P+=2;continue}_=l+1;continue}if(s.noext!==!0&&(X===yu||X===du||X===ts||X===Er||X===ss)===!0&&j()===as){if(E=Z.isGlob=!0,D=Z.isExtglob=!0,ae=!0,X===ss&&l===P&&(m=!0),o===!0){for(;M()!==!0&&(X=he());){if(X===Jt){Q=Z.backslashes=!0,X=he();continue}if(X===kr){E=Z.isGlob=!0,ae=!0;break}}continue}break}if(X===ts){if(ne===ts&&(V=Z.isGlobstar=!0),E=Z.isGlob=!0,ae=!0,o===!0)continue;break}if(X===Er){if(E=Z.isGlob=!0,ae=!0,o===!0)continue;break}if(X===xu){for(;M()!==!0&&(r=he());){if(r===Jt){Q=Z.backslashes=!0,he();continue}if(r===vu){w=Z.isBracket=!0,E=Z.isGlob=!0,ae=!0;break}}if(o===!0)continue;break}if(s.nonegate!==!0&&X===ss&&l===P){$=Z.negated=!0,P++;continue}if(s.noparen!==!0&&X===as){if(E=Z.isGlob=!0,o===!0){for(;M()!==!0&&(X=he());){if(X===as){Q=Z.backslashes=!0,X=he();continue}if(X===kr){ae=!0;break}}continue}break}if(E===!0){if(ae=!0,o===!0)continue;break}}s.noext===!0&&(D=!1,E=!1);let ue=b,O="",I="";P>0&&(O=b.slice(0,P),b=b.slice(P),_-=P),ue&&E===!0&&_>0?(ue=b.slice(0,_),I=b.slice(_)):E===!0?(ue="",I=b):ue=b,ue&&ue!==""&&ue!=="/"&&ue!==b&&Tr(ue.charCodeAt(ue.length-1))&&(ue=ue.slice(0,-1)),s.unescape===!0&&(I&&(I=Ar.removeBackslashes(I)),ue&&Q===!0&&(ue=Ar.removeBackslashes(ue)));let S={prefix:O,input:e,start:P,base:ue,glob:I,isBrace:B,isBracket:w,isGlob:E,isExtglob:D,isGlobstar:V,negated:$,negatedExtglob:m};if(s.tokens===!0&&(S.maxDepth=0,Tr(X)||p.push(Z),S.tokens=p),s.parts===!0||s.tokens===!0){let r;for(let u=0;u<c.length;u++){let d=r?r+1:P,y=c[u],C=e.slice(d,y);s.tokens&&(u===0&&P!==0?(p[u].isPrefix=!0,p[u].value=O):p[u].value=C,Pr(p[u]),S.maxDepth+=p[u].depth),(u!==0||C!=="")&&g.push(C),r=y}if(r&&r+1<e.length){let u=e.slice(r+1);g.push(u),s.tokens&&(p[p.length-1].value=u,Pr(p[p.length-1]),S.maxDepth+=p[p.length-1].depth)}S.slashes=c,S.parts=g}return S};Nr.exports=bu});var Mr=ot((Ml,Or)=>{"use strict";var bi=Kt(),it=Xt(),{MAX_LENGTH:Si,POSIX_REGEX_SOURCE:Su,REGEX_NON_SPECIAL_CHARS:Cu,REGEX_SPECIAL_CHARS_BACKREF:wu,REPLACEMENTS:Rr}=bi,_u=(e,t)=>{if(typeof t.expandRange=="function")return t.expandRange(...e,t);e.sort();let s=`[${e.join("-")}]`;try{new RegExp(s)}catch{return e.map(o=>it.escapeRegex(o)).join("..")}return s},Lt=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,ns=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");e=Rr[e]||e;let s={...t},a=typeof s.maxLength=="number"?Math.min(Si,s.maxLength):Si,o=e.length;if(o>a)throw new SyntaxError(`Input length: ${o}, exceeds maximum allowed length: ${a}`);let c={type:"bos",value:"",output:s.prepend||""},p=[c],g=s.capture?"":"?:",b=bi.globChars(s.windows),l=bi.extglobChars(b),{DOT_LITERAL:P,PLUS_LITERAL:_,SLASH_LITERAL:B,ONE_CHAR:w,DOTS_SLASH:E,NO_DOT:D,NO_DOT_SLASH:V,NO_DOTS_SLASH:G,QMARK:Q,QMARK_NO_DOT:$,STAR:m,START_ANCHOR:ae}=b,K=F=>`(${g}(?:(?!${ae}${F.dot?E:P}).)*?)`,ne=s.dot?"":D,X=s.dot?Q:$,Z=s.bash===!0?K(s):m;s.capture&&(Z=`(${Z})`),typeof s.noext=="boolean"&&(s.noextglob=s.noext);let M={input:e,index:-1,start:0,dot:s.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:p};e=it.removePrefix(e,M),o=e.length;let j=[],he=[],ue=[],O=c,I,S=()=>M.index===o-1,r=M.peek=(F=1)=>e[M.index+F],u=M.advance=()=>e[++M.index]||"",d=()=>e.slice(M.index+1),y=(F="",q=0)=>{M.consumed+=F,M.index+=q},C=F=>{M.output+=F.output!=null?F.output:F.value,y(F.value)},A=()=>{let F=1;for(;r()==="!"&&(r(2)!=="("||r(3)==="?");)u(),M.start++,F++;return F%2===0?!1:(M.negated=!0,M.start++,!0)},k=F=>{M[F]++,ue.push(F)},L=F=>{M[F]--,ue.pop()},N=F=>{if(O.type==="globstar"){let q=M.braces>0&&(F.type==="comma"||F.type==="brace"),U=F.extglob===!0||j.length&&(F.type==="pipe"||F.type==="paren");F.type!=="slash"&&F.type!=="paren"&&!q&&!U&&(M.output=M.output.slice(0,-O.output.length),O.type="star",O.value="*",O.output=Z,M.output+=O.output)}if(j.length&&F.type!=="paren"&&(j[j.length-1].inner+=F.value),(F.value||F.output)&&C(F),O&&O.type==="text"&&F.type==="text"){O.output=(O.output||O.value)+F.value,O.value+=F.value;return}F.prev=O,p.push(F),O=F},W=(F,q)=>{let U={...l[q],conditions:1,inner:""};U.prev=O,U.parens=M.parens,U.output=M.output;let Y=(s.capture?"(":"")+U.open;k("parens"),N({type:F,value:q,output:M.output?"":w}),N({type:"paren",extglob:!0,value:u(),output:Y}),j.push(U)},J=F=>{let q=F.close+(s.capture?")":""),U;if(F.type==="negate"){let Y=Z;if(F.inner&&F.inner.length>1&&F.inner.includes("/")&&(Y=K(s)),(Y!==Z||S()||/^\)+$/.test(d()))&&(q=F.close=`)$))${Y}`),F.inner.includes("*")&&(U=d())&&/^\.[^\\/.]+$/.test(U)){let oe=ns(U,{...t,fastpaths:!1}).output;q=F.close=`)${oe})${Y})`}F.prev.type==="bos"&&(M.negatedExtglob=!0)}N({type:"paren",extglob:!0,value:I,output:q}),L("parens")};if(s.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(e)){let F=!1,q=e.replace(wu,(U,Y,oe,de,ge,ke)=>de==="\\"?(F=!0,U):de==="?"?Y?Y+de+(ge?Q.repeat(ge.length):""):ke===0?X+(ge?Q.repeat(ge.length):""):Q.repeat(oe.length):de==="."?P.repeat(oe.length):de==="*"?Y?Y+de+(ge?Z:""):Z:Y?U:`\\${U}`);return F===!0&&(s.unescape===!0?q=q.replace(/\\/g,""):q=q.replace(/\\+/g,U=>U.length%2===0?"\\\\":U?"\\":"")),q===e&&s.contains===!0?(M.output=e,M):(M.output=it.wrapOutput(q,M,t),M)}for(;!S();){if(I=u(),I==="\0")continue;if(I==="\\"){let U=r();if(U==="/"&&s.bash!==!0||U==="."||U===";")continue;if(!U){I+="\\",N({type:"text",value:I});continue}let Y=/^\\+/.exec(d()),oe=0;if(Y&&Y[0].length>2&&(oe=Y[0].length,M.index+=oe,oe%2!==0&&(I+="\\")),s.unescape===!0?I=u():I+=u(),M.brackets===0){N({type:"text",value:I});continue}}if(M.brackets>0&&(I!=="]"||O.value==="["||O.value==="[^")){if(s.posix!==!1&&I===":"){let U=O.value.slice(1);if(U.includes("[")&&(O.posix=!0,U.includes(":"))){let Y=O.value.lastIndexOf("["),oe=O.value.slice(0,Y),de=O.value.slice(Y+2),ge=Su[de];if(ge){O.value=oe+ge,M.backtrack=!0,u(),!c.output&&p.indexOf(O)===1&&(c.output=w);continue}}}(I==="["&&r()!==":"||I==="-"&&r()==="]")&&(I=`\\${I}`),I==="]"&&(O.value==="["||O.value==="[^")&&(I=`\\${I}`),s.posix===!0&&I==="!"&&O.value==="["&&(I="^"),O.value+=I,C({value:I});continue}if(M.quotes===1&&I!=='"'){I=it.escapeRegex(I),O.value+=I,C({value:I});continue}if(I==='"'){M.quotes=M.quotes===1?0:1,s.keepQuotes===!0&&N({type:"text",value:I});continue}if(I==="("){k("parens"),N({type:"paren",value:I});continue}if(I===")"){if(M.parens===0&&s.strictBrackets===!0)throw new SyntaxError(Lt("opening","("));let U=j[j.length-1];if(U&&M.parens===U.parens+1){J(j.pop());continue}N({type:"paren",value:I,output:M.parens?")":"\\)"}),L("parens");continue}if(I==="["){if(s.nobracket===!0||!d().includes("]")){if(s.nobracket!==!0&&s.strictBrackets===!0)throw new SyntaxError(Lt("closing","]"));I=`\\${I}`}else k("brackets");N({type:"bracket",value:I});continue}if(I==="]"){if(s.nobracket===!0||O&&O.type==="bracket"&&O.value.length===1){N({type:"text",value:I,output:`\\${I}`});continue}if(M.brackets===0){if(s.strictBrackets===!0)throw new SyntaxError(Lt("opening","["));N({type:"text",value:I,output:`\\${I}`});continue}L("brackets");let U=O.value.slice(1);if(O.posix!==!0&&U[0]==="^"&&!U.includes("/")&&(I=`/${I}`),O.value+=I,C({value:I}),s.literalBrackets===!1||it.hasRegexChars(U))continue;let Y=it.escapeRegex(O.value);if(M.output=M.output.slice(0,-O.value.length),s.literalBrackets===!0){M.output+=Y,O.value=Y;continue}O.value=`(${g}${Y}|${O.value})`,M.output+=O.value;continue}if(I==="{"&&s.nobrace!==!0){k("braces");let U={type:"brace",value:I,output:"(",outputIndex:M.output.length,tokensIndex:M.tokens.length};he.push(U),N(U);continue}if(I==="}"){let U=he[he.length-1];if(s.nobrace===!0||!U){N({type:"text",value:I,output:I});continue}let Y=")";if(U.dots===!0){let oe=p.slice(),de=[];for(let ge=oe.length-1;ge>=0&&(p.pop(),oe[ge].type!=="brace");ge--)oe[ge].type!=="dots"&&de.unshift(oe[ge].value);Y=_u(de,s),M.backtrack=!0}if(U.comma!==!0&&U.dots!==!0){let oe=M.output.slice(0,U.outputIndex),de=M.tokens.slice(U.tokensIndex);U.value=U.output="\\{",I=Y="\\}",M.output=oe;for(let ge of de)M.output+=ge.output||ge.value}N({type:"brace",value:I,output:Y}),L("braces"),he.pop();continue}if(I==="|"){j.length>0&&j[j.length-1].conditions++,N({type:"text",value:I});continue}if(I===","){let U=I,Y=he[he.length-1];Y&&ue[ue.length-1]==="braces"&&(Y.comma=!0,U="|"),N({type:"comma",value:I,output:U});continue}if(I==="/"){if(O.type==="dot"&&M.index===M.start+1){M.start=M.index+1,M.consumed="",M.output="",p.pop(),O=c;continue}N({type:"slash",value:I,output:B});continue}if(I==="."){if(M.braces>0&&O.type==="dot"){O.value==="."&&(O.output=P);let U=he[he.length-1];O.type="dots",O.output+=I,O.value+=I,U.dots=!0;continue}if(M.braces+M.parens===0&&O.type!=="bos"&&O.type!=="slash"){N({type:"text",value:I,output:P});continue}N({type:"dot",value:I,output:P});continue}if(I==="?"){if(!(O&&O.value==="(")&&s.noextglob!==!0&&r()==="("&&r(2)!=="?"){W("qmark",I);continue}if(O&&O.type==="paren"){let Y=r(),oe=I;(O.value==="("&&!/[!=<:]/.test(Y)||Y==="<"&&!/<([!=]|\w+>)/.test(d()))&&(oe=`\\${I}`),N({type:"text",value:I,output:oe});continue}if(s.dot!==!0&&(O.type==="slash"||O.type==="bos")){N({type:"qmark",value:I,output:$});continue}N({type:"qmark",value:I,output:Q});continue}if(I==="!"){if(s.noextglob!==!0&&r()==="("&&(r(2)!=="?"||!/[!=<:]/.test(r(3)))){W("negate",I);continue}if(s.nonegate!==!0&&M.index===0){A();continue}}if(I==="+"){if(s.noextglob!==!0&&r()==="("&&r(2)!=="?"){W("plus",I);continue}if(O&&O.value==="("||s.regex===!1){N({type:"plus",value:I,output:_});continue}if(O&&(O.type==="bracket"||O.type==="paren"||O.type==="brace")||M.parens>0){N({type:"plus",value:I});continue}N({type:"plus",value:_});continue}if(I==="@"){if(s.noextglob!==!0&&r()==="("&&r(2)!=="?"){N({type:"at",extglob:!0,value:I,output:""});continue}N({type:"text",value:I});continue}if(I!=="*"){(I==="$"||I==="^")&&(I=`\\${I}`);let U=Cu.exec(d());U&&(I+=U[0],M.index+=U[0].length),N({type:"text",value:I});continue}if(O&&(O.type==="globstar"||O.star===!0)){O.type="star",O.star=!0,O.value+=I,O.output=Z,M.backtrack=!0,M.globstar=!0,y(I);continue}let F=d();if(s.noextglob!==!0&&/^\([^?]/.test(F)){W("star",I);continue}if(O.type==="star"){if(s.noglobstar===!0){y(I);continue}let U=O.prev,Y=U.prev,oe=U.type==="slash"||U.type==="bos",de=Y&&(Y.type==="star"||Y.type==="globstar");if(s.bash===!0&&(!oe||F[0]&&F[0]!=="/")){N({type:"star",value:I,output:""});continue}let ge=M.braces>0&&(U.type==="comma"||U.type==="brace"),ke=j.length&&(U.type==="pipe"||U.type==="paren");if(!oe&&U.type!=="paren"&&!ge&&!ke){N({type:"star",value:I,output:""});continue}for(;F.slice(0,3)==="/**";){let Ie=e[M.index+4];if(Ie&&Ie!=="/")break;F=F.slice(3),y("/**",3)}if(U.type==="bos"&&S()){O.type="globstar",O.value+=I,O.output=K(s),M.output=O.output,M.globstar=!0,y(I);continue}if(U.type==="slash"&&U.prev.type!=="bos"&&!de&&S()){M.output=M.output.slice(0,-(U.output+O.output).length),U.output=`(?:${U.output}`,O.type="globstar",O.output=K(s)+(s.strictSlashes?")":"|$)"),O.value+=I,M.globstar=!0,M.output+=U.output+O.output,y(I);continue}if(U.type==="slash"&&U.prev.type!=="bos"&&F[0]==="/"){let Ie=F[1]!==void 0?"|$":"";M.output=M.output.slice(0,-(U.output+O.output).length),U.output=`(?:${U.output}`,O.type="globstar",O.output=`${K(s)}${B}|${B}${Ie})`,O.value+=I,M.output+=U.output+O.output,M.globstar=!0,y(I+u()),N({type:"slash",value:"/",output:""});continue}if(U.type==="bos"&&F[0]==="/"){O.type="globstar",O.value+=I,O.output=`(?:^|${B}|${K(s)}${B})`,M.output=O.output,M.globstar=!0,y(I+u()),N({type:"slash",value:"/",output:""});continue}M.output=M.output.slice(0,-O.output.length),O.type="globstar",O.output=K(s),O.value+=I,M.output+=O.output,M.globstar=!0,y(I);continue}let q={type:"star",value:I,output:Z};if(s.bash===!0){q.output=".*?",(O.type==="bos"||O.type==="slash")&&(q.output=ne+q.output),N(q);continue}if(O&&(O.type==="bracket"||O.type==="paren")&&s.regex===!0){q.output=I,N(q);continue}(M.index===M.start||O.type==="slash"||O.type==="dot")&&(O.type==="dot"?(M.output+=V,O.output+=V):s.dot===!0?(M.output+=G,O.output+=G):(M.output+=ne,O.output+=ne),r()!=="*"&&(M.output+=w,O.output+=w)),N(q)}for(;M.brackets>0;){if(s.strictBrackets===!0)throw new SyntaxError(Lt("closing","]"));M.output=it.escapeLast(M.output,"["),L("brackets")}for(;M.parens>0;){if(s.strictBrackets===!0)throw new SyntaxError(Lt("closing",")"));M.output=it.escapeLast(M.output,"("),L("parens")}for(;M.braces>0;){if(s.strictBrackets===!0)throw new SyntaxError(Lt("closing","}"));M.output=it.escapeLast(M.output,"{"),L("braces")}if(s.strictSlashes!==!0&&(O.type==="star"||O.type==="bracket")&&N({type:"maybe_slash",value:"",output:`${B}?`}),M.backtrack===!0){M.output="";for(let F of M.tokens)M.output+=F.output!=null?F.output:F.value,F.suffix&&(M.output+=F.suffix)}return M};ns.fastpaths=(e,t)=>{let s={...t},a=typeof s.maxLength=="number"?Math.min(Si,s.maxLength):Si,o=e.length;if(o>a)throw new SyntaxError(`Input length: ${o}, exceeds maximum allowed length: ${a}`);e=Rr[e]||e;let{DOT_LITERAL:c,SLASH_LITERAL:p,ONE_CHAR:g,DOTS_SLASH:b,NO_DOT:l,NO_DOTS:P,NO_DOTS_SLASH:_,STAR:B,START_ANCHOR:w}=bi.globChars(s.windows),E=s.dot?P:l,D=s.dot?_:l,V=s.capture?"":"?:",G={negated:!1,prefix:""},Q=s.bash===!0?".*?":B;s.capture&&(Q=`(${Q})`);let $=ne=>ne.noglobstar===!0?Q:`(${V}(?:(?!${w}${ne.dot?b:c}).)*?)`,m=ne=>{switch(ne){case"*":return`${E}${g}${Q}`;case".*":return`${c}${g}${Q}`;case"*.*":return`${E}${Q}${c}${g}${Q}`;case"*/*":return`${E}${Q}${p}${g}${D}${Q}`;case"**":return E+$(s);case"**/*":return`(?:${E}${$(s)}${p})?${D}${g}${Q}`;case"**/*.*":return`(?:${E}${$(s)}${p})?${D}${Q}${c}${g}${Q}`;case"**/.*":return`(?:${E}${$(s)}${p})?${c}${g}${Q}`;default:{let X=/^(.*?)\.(\w+)$/.exec(ne);if(!X)return;let Z=m(X[1]);return Z?Z+c+X[2]:void 0}}},ae=it.removePrefix(e,G),K=m(ae);return K&&s.strictSlashes!==!0&&(K+=`${p}?`),K};Or.exports=ns});var Fr=ot((Vl,Dr)=>{"use strict";var Au=Lr(),os=Mr(),Vr=Xt(),Eu=Kt(),ku=e=>e&&typeof e=="object"&&!Array.isArray(e),Ee=(e,t,s=!1)=>{if(Array.isArray(e)){let P=e.map(B=>Ee(B,t,s));return B=>{for(let w of P){let E=w(B);if(E)return E}return!1}}let a=ku(e)&&e.tokens&&e.input;if(e===""||typeof e!="string"&&!a)throw new TypeError("Expected pattern to be a non-empty string");let o=t||{},c=o.windows,p=a?Ee.compileRe(e,t):Ee.makeRe(e,t,!1,!0),g=p.state;delete p.state;let b=()=>!1;if(o.ignore){let P={...t,ignore:null,onMatch:null,onResult:null};b=Ee(o.ignore,P,s)}let l=(P,_=!1)=>{let{isMatch:B,match:w,output:E}=Ee.test(P,p,t,{glob:e,posix:c}),D={glob:e,state:g,regex:p,posix:c,input:P,output:E,match:w,isMatch:B};return typeof o.onResult=="function"&&o.onResult(D),B===!1?(D.isMatch=!1,_?D:!1):b(P)?(typeof o.onIgnore=="function"&&o.onIgnore(D),D.isMatch=!1,_?D:!1):(typeof o.onMatch=="function"&&o.onMatch(D),_?D:!0)};return s&&(l.state=g),l};Ee.test=(e,t,s,{glob:a,posix:o}={})=>{if(typeof e!="string")throw new TypeError("Expected input to be a string");if(e==="")return{isMatch:!1,output:""};let c=s||{},p=c.format||(o?Vr.toPosixSlashes:null),g=e===a,b=g&&p?p(e):e;return g===!1&&(b=p?p(e):e,g=b===a),(g===!1||c.capture===!0)&&(c.matchBase===!0||c.basename===!0?g=Ee.matchBase(e,t,s,o):g=t.exec(b)),{isMatch:!!g,match:g,output:b}};Ee.matchBase=(e,t,s)=>(t instanceof RegExp?t:Ee.makeRe(t,s)).test(Vr.basename(e));Ee.isMatch=(e,t,s)=>Ee(t,s)(e);Ee.parse=(e,t)=>Array.isArray(e)?e.map(s=>Ee.parse(s,t)):os(e,{...t,fastpaths:!1});Ee.scan=(e,t)=>Au(e,t);Ee.compileRe=(e,t,s=!1,a=!1)=>{if(s===!0)return e.output;let o=t||{},c=o.contains?"":"^",p=o.contains?"":"$",g=`${c}(?:${e.output})${p}`;e&&e.negated===!0&&(g=`^(?!${g}).*$`);let b=Ee.toRegex(g,t);return a===!0&&(b.state=e),b};Ee.makeRe=(e,t={},s=!1,a=!1)=>{if(!e||typeof e!="string")throw new TypeError("Expected a non-empty string");let o={negated:!1,fastpaths:!0};return t.fastpaths!==!1&&(e[0]==="."||e[0]==="*")&&(o.output=os.fastpaths(e,t)),o.output||(o=os(e,t)),Ee.compileRe(o,t,s,a)};Ee.toRegex=(e,t)=>{try{let s=t||{};return new RegExp(e,s.flags||(s.nocase?"i":""))}catch(s){if(t&&t.debug===!0)throw s;return/$^/}};Ee.constants=Eu;Dr.exports=Ee});var Hr=ot((Dl,Ur)=>{"use strict";var Br=Fr(),Tu=Xt();function jr(e,t,s=!1){return t&&(t.windows===null||t.windows===void 0)&&(t={...t,windows:Tu.isWindows()}),Br(e,t,s)}Object.assign(jr,Br);Ur.exports=jr});var qn=ot((vp,Hn)=>{"use strict";Hn.exports={quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",frac34:"\xBE",iquest:"\xBF",Agrave:"\xC0",Aacute:"\xC1",Acirc:"\xC2",Atilde:"\xC3",Auml:"\xC4",Aring:"\xC5",AElig:"\xC6",Ccedil:"\xC7",Egrave:"\xC8",Eacute:"\xC9",Ecirc:"\xCA",Euml:"\xCB",Igrave:"\xCC",Iacute:"\xCD",Icirc:"\xCE",Iuml:"\xCF",ETH:"\xD0",Ntilde:"\xD1",Ograve:"\xD2",Oacute:"\xD3",Ocirc:"\xD4",Otilde:"\xD5",Ouml:"\xD6",times:"\xD7",Oslash:"\xD8",Ugrave:"\xD9",Uacute:"\xDA",Ucirc:"\xDB",Uuml:"\xDC",Yacute:"\xDD",THORN:"\xDE",szlig:"\xDF",agrave:"\xE0",aacute:"\xE1",acirc:"\xE2",atilde:"\xE3",auml:"\xE4",aring:"\xE5",aelig:"\xE6",ccedil:"\xE7",egrave:"\xE8",eacute:"\xE9",ecirc:"\xEA",euml:"\xEB",igrave:"\xEC",iacute:"\xED",icirc:"\xEE",iuml:"\xEF",eth:"\xF0",ntilde:"\xF1",ograve:"\xF2",oacute:"\xF3",ocirc:"\xF4",otilde:"\xF5",ouml:"\xF6",divide:"\xF7",oslash:"\xF8",ugrave:"\xF9",uacute:"\xFA",ucirc:"\xFB",uuml:"\xFC",yacute:"\xFD",thorn:"\xFE",yuml:"\xFF",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",fnof:"\u0192",circ:"\u02C6",tilde:"\u02DC",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039A",Lambda:"\u039B",Mu:"\u039C",Nu:"\u039D",Xi:"\u039E",Omicron:"\u039F",Pi:"\u03A0",Rho:"\u03A1",Sigma:"\u03A3",Tau:"\u03A4",Upsilon:"\u03A5",Phi:"\u03A6",Chi:"\u03A7",Psi:"\u03A8",Omega:"\u03A9",alpha:"\u03B1",beta:"\u03B2",gamma:"\u03B3",delta:"\u03B4",epsilon:"\u03B5",zeta:"\u03B6",eta:"\u03B7",theta:"\u03B8",iota:"\u03B9",kappa:"\u03BA",lambda:"\u03BB",mu:"\u03BC",nu:"\u03BD",xi:"\u03BE",omicron:"\u03BF",pi:"\u03C0",rho:"\u03C1",sigmaf:"\u03C2",sigma:"\u03C3",tau:"\u03C4",upsilon:"\u03C5",phi:"\u03C6",chi:"\u03C7",psi:"\u03C8",omega:"\u03C9",thetasym:"\u03D1",upsih:"\u03D2",piv:"\u03D6",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200C",zwj:"\u200D",lrm:"\u200E",rlm:"\u200F",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201A",ldquo:"\u201C",rdquo:"\u201D",bdquo:"\u201E",dagger:"\u2020",Dagger:"\u2021",bull:"\u2022",hellip:"\u2026",permil:"\u2030",prime:"\u2032",Prime:"\u2033",lsaquo:"\u2039",rsaquo:"\u203A",oline:"\u203E",frasl:"\u2044",euro:"\u20AC",image:"\u2111",weierp:"\u2118",real:"\u211C",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21B5",lArr:"\u21D0",uArr:"\u21D1",rArr:"\u21D2",dArr:"\u21D3",hArr:"\u21D4",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220B",prod:"\u220F",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221A",prop:"\u221D",infin:"\u221E",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222A",int:"\u222B",there4:"\u2234",sim:"\u223C",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22A5",sdot:"\u22C5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230A",rfloor:"\u230B",lang:"\u2329",rang:"\u232A",loz:"\u25CA",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666"}});var Ms=ot((qi,Wn)=>{"use strict";(function(e,t){typeof qi=="object"&&typeof Wn<"u"?t(qi):typeof define=="function"&&define.amd?define(["exports"],t):(e=typeof globalThis<"u"?globalThis:e||self,t(e.acorn={}))})(qi,(function(e){"use strict";var t=[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,78,5,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,199,7,137,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,55,9,266,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,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239],s=[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,7,25,39,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,5,57,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,24,43,261,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,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7381,42,31,98,114,8702,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,208,30,2,2,2,1,2,6,3,4,10,1,225,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,4381,3,5773,3,7472,16,621,2467,541,1507,4938,6,8489],a="\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-\u1ADD\u1AE0-\u1AEB\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",o="\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-\u088F\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\u0C5C\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDC-\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-\uA7DC\uA7F1-\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",c={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"},p="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",g={5:p,"5module":p+" export import",6:p+" const class extends export import super"},b=/^in(stanceof)?$/,l=new RegExp("["+o+"]"),P=new RegExp("["+o+a+"]");function _(i,n){for(var h=65536,f=0;f<n.length;f+=2){if(h+=n[f],h>i)return!1;if(h+=n[f+1],h>=i)return!0}return!1}function B(i,n){return i<65?i===36:i<91?!0:i<97?i===95:i<123?!0:i<=65535?i>=170&&l.test(String.fromCharCode(i)):n===!1?!1:_(i,s)}function w(i,n){return i<48?i===36:i<58?!0:i<65?!1:i<91?!0:i<97?i===95:i<123?!0:i<=65535?i>=170&&P.test(String.fromCharCode(i)):n===!1?!1:_(i,s)||_(i,t)}var E=function(n,h){h===void 0&&(h={}),this.label=n,this.keyword=h.keyword,this.beforeExpr=!!h.beforeExpr,this.startsExpr=!!h.startsExpr,this.isLoop=!!h.isLoop,this.isAssign=!!h.isAssign,this.prefix=!!h.prefix,this.postfix=!!h.postfix,this.binop=h.binop||null,this.updateContext=null};function D(i,n){return new E(i,{beforeExpr:!0,binop:n})}var V={beforeExpr:!0},G={startsExpr:!0},Q={};function $(i,n){return n===void 0&&(n={}),n.keyword=i,Q[i]=new E(i,n)}var m={num:new E("num",G),regexp:new E("regexp",G),string:new E("string",G),name:new E("name",G),privateId:new E("privateId",G),eof:new E("eof"),bracketL:new E("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new E("]"),braceL:new E("{",{beforeExpr:!0,startsExpr:!0}),braceR:new E("}"),parenL:new E("(",{beforeExpr:!0,startsExpr:!0}),parenR:new E(")"),comma:new E(",",V),semi:new E(";",V),colon:new E(":",V),dot:new E("."),question:new E("?",V),questionDot:new E("?."),arrow:new E("=>",V),template:new E("template"),invalidTemplate:new E("invalidTemplate"),ellipsis:new E("...",V),backQuote:new E("`",G),dollarBraceL:new E("${",{beforeExpr:!0,startsExpr:!0}),eq:new E("=",{beforeExpr:!0,isAssign:!0}),assign:new E("_=",{beforeExpr:!0,isAssign:!0}),incDec:new E("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new E("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:D("||",1),logicalAND:D("&&",2),bitwiseOR:D("|",3),bitwiseXOR:D("^",4),bitwiseAND:D("&",5),equality:D("==/!=/===/!==",6),relational:D("</>/<=/>=",7),bitShift:D("<</>>/>>>",8),plusMin:new E("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:D("%",10),star:D("*",10),slash:D("/",10),starstar:new E("**",{beforeExpr:!0}),coalesce:D("??",1),_break:$("break"),_case:$("case",V),_catch:$("catch"),_continue:$("continue"),_debugger:$("debugger"),_default:$("default",V),_do:$("do",{isLoop:!0,beforeExpr:!0}),_else:$("else",V),_finally:$("finally"),_for:$("for",{isLoop:!0}),_function:$("function",G),_if:$("if"),_return:$("return",V),_switch:$("switch"),_throw:$("throw",V),_try:$("try"),_var:$("var"),_const:$("const"),_while:$("while",{isLoop:!0}),_with:$("with"),_new:$("new",{beforeExpr:!0,startsExpr:!0}),_this:$("this",G),_super:$("super",G),_class:$("class",G),_extends:$("extends",V),_export:$("export"),_import:$("import",G),_null:$("null",G),_true:$("true",G),_false:$("false",G),_in:$("in",{beforeExpr:!0,binop:7}),_instanceof:$("instanceof",{beforeExpr:!0,binop:7}),_typeof:$("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:$("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:$("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},ae=/\r\n?|\n|\u2028|\u2029/,K=new RegExp(ae.source,"g");function ne(i){return i===10||i===13||i===8232||i===8233}function X(i,n,h){h===void 0&&(h=i.length);for(var f=n;f<h;f++){var v=i.charCodeAt(f);if(ne(v))return f<h-1&&v===13&&i.charCodeAt(f+1)===10?f+2:f+1}return-1}var Z=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,M=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,j=Object.prototype,he=j.hasOwnProperty,ue=j.toString,O=Object.hasOwn||(function(i,n){return he.call(i,n)}),I=Array.isArray||(function(i){return ue.call(i)==="[object Array]"}),S=Object.create(null);function r(i){return S[i]||(S[i]=new RegExp("^(?:"+i.replace(/ /g,"|")+")$"))}function u(i){return i<=65535?String.fromCharCode(i):(i-=65536,String.fromCharCode((i>>10)+55296,(i&1023)+56320))}var d=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,y=function(n,h){this.line=n,this.column=h};y.prototype.offset=function(n){return new y(this.line,this.column+n)};var C=function(n,h,f){this.start=h,this.end=f,n.sourceFile!==null&&(this.source=n.sourceFile)};function A(i,n){for(var h=1,f=0;;){var v=X(i,f,n);if(v<0)return new y(h,n-f);++h,f=v}}var k={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},L=!1;function N(i){var n={};for(var h in k)n[h]=i&&O(i,h)?i[h]:k[h];if(n.ecmaVersion==="latest"?n.ecmaVersion=1e8:n.ecmaVersion==null?(!L&&typeof console=="object"&&console.warn&&(L=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
2
- Defaulting to 2020, but this will stop working in the future.`)),n.ecmaVersion=11):n.ecmaVersion>=2015&&(n.ecmaVersion-=2009),n.allowReserved==null&&(n.allowReserved=n.ecmaVersion<5),(!i||i.allowHashBang==null)&&(n.allowHashBang=n.ecmaVersion>=14),I(n.onToken)){var f=n.onToken;n.onToken=function(v){return f.push(v)}}if(I(n.onComment)&&(n.onComment=W(n,n.onComment)),n.sourceType==="commonjs"&&n.allowAwaitOutsideFunction)throw new Error("Cannot use allowAwaitOutsideFunction with sourceType: commonjs");return n}function W(i,n){return function(h,f,v,T,R,H){var z={type:h?"Block":"Line",value:f,start:v,end:T};i.locations&&(z.loc=new C(this,R,H)),i.ranges&&(z.range=[v,T]),n.push(z)}}var J=1,F=2,q=4,U=8,Y=16,oe=32,de=64,ge=128,ke=256,Ie=512,ft=1024,je=J|F|ke;function kt(i,n){return F|(i?q:0)|(n?U:0)}var at=0,bt=1,qe=2,St=3,Ut=4,Ht=5,be=function(n,h,f){this.options=n=N(n),this.sourceFile=n.sourceFile,this.keywords=r(g[n.ecmaVersion>=6?6:n.sourceType==="module"?"5module":5]);var v="";n.allowReserved!==!0&&(v=c[n.ecmaVersion>=6?6:n.ecmaVersion===5?5:3],n.sourceType==="module"&&(v+=" await")),this.reservedWords=r(v);var T=(v?v+" ":"")+c.strict;this.reservedWordsStrict=r(T),this.reservedWordsStrictBind=r(T+" "+c.strictBind),this.input=String(h),this.containsEsc=!1,f?(this.pos=f,this.lineStart=this.input.lastIndexOf(`
3
- `,f-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(ae).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=m.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=n.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&&n.allowHashBang&&this.input.slice(0,2)==="#!"&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(this.options.sourceType==="commonjs"?F:J),this.regexpState=null,this.privateNameStack=[]},Ne={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowReturn:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},allowUsing:{configurable:!0},inClassStaticBlock:{configurable:!0}};be.prototype.parse=function(){var n=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(n)},Ne.inFunction.get=function(){return(this.currentVarScope().flags&F)>0},Ne.inGenerator.get=function(){return(this.currentVarScope().flags&U)>0},Ne.inAsync.get=function(){return(this.currentVarScope().flags&q)>0},Ne.canAwait.get=function(){for(var i=this.scopeStack.length-1;i>=0;i--){var n=this.scopeStack[i],h=n.flags;if(h&(ke|Ie))return!1;if(h&F)return(h&q)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},Ne.allowReturn.get=function(){return!!(this.inFunction||this.options.allowReturnOutsideFunction&&this.currentVarScope().flags&J)},Ne.allowSuper.get=function(){var i=this.currentThisScope(),n=i.flags;return(n&de)>0||this.options.allowSuperOutsideMethod},Ne.allowDirectSuper.get=function(){return(this.currentThisScope().flags&ge)>0},Ne.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},Ne.allowNewDotTarget.get=function(){for(var i=this.scopeStack.length-1;i>=0;i--){var n=this.scopeStack[i],h=n.flags;if(h&(ke|Ie)||h&F&&!(h&Y))return!0}return!1},Ne.allowUsing.get=function(){var i=this.currentScope(),n=i.flags;return!(n&ft||!this.inModule&&n&J)},Ne.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&ke)>0},be.extend=function(){for(var n=[],h=arguments.length;h--;)n[h]=arguments[h];for(var f=this,v=0;v<n.length;v++)f=n[v](f);return f},be.parse=function(n,h){return new this(h,n).parse()},be.parseExpressionAt=function(n,h,f){var v=new this(f,n,h);return v.nextToken(),v.parseExpression()},be.tokenizer=function(n,h){return new this(h,n)},Object.defineProperties(be.prototype,Ne);var Pe=be.prototype,qt=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;Pe.strictDirective=function(i){if(this.options.ecmaVersion<5)return!1;for(;;){M.lastIndex=i,i+=M.exec(this.input)[0].length;var n=qt.exec(this.input.slice(i));if(!n)return!1;if((n[1]||n[2])==="use strict"){M.lastIndex=i+n[0].length;var h=M.exec(this.input),f=h.index+h[0].length,v=this.input.charAt(f);return v===";"||v==="}"||ae.test(h[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(v)||v==="!"&&this.input.charAt(f+1)==="=")}i+=n[0].length,M.lastIndex=i,i+=M.exec(this.input)[0].length,this.input[i]===";"&&i++}},Pe.eat=function(i){return this.type===i?(this.next(),!0):!1},Pe.isContextual=function(i){return this.type===m.name&&this.value===i&&!this.containsEsc},Pe.eatContextual=function(i){return this.isContextual(i)?(this.next(),!0):!1},Pe.expectContextual=function(i){this.eatContextual(i)||this.unexpected()},Pe.canInsertSemicolon=function(){return this.type===m.eof||this.type===m.braceR||ae.test(this.input.slice(this.lastTokEnd,this.start))},Pe.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},Pe.semicolon=function(){!this.eat(m.semi)&&!this.insertSemicolon()&&this.unexpected()},Pe.afterTrailingComma=function(i,n){if(this.type===i)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),n||this.next(),!0},Pe.expect=function(i){this.eat(i)||this.unexpected()},Pe.unexpected=function(i){this.raise(i??this.start,"Unexpected token")};var pi=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};Pe.checkPatternErrors=function(i,n){if(i){i.trailingComma>-1&&this.raiseRecoverable(i.trailingComma,"Comma is not permitted after the rest element");var h=n?i.parenthesizedAssign:i.parenthesizedBind;h>-1&&this.raiseRecoverable(h,n?"Assigning to rvalue":"Parenthesized pattern")}},Pe.checkExpressionErrors=function(i,n){if(!i)return!1;var h=i.shorthandAssign,f=i.doubleProto;if(!n)return h>=0||f>=0;h>=0&&this.raise(h,"Shorthand property assignments are valid only in destructuring patterns"),f>=0&&this.raiseRecoverable(f,"Redefinition of __proto__ property")},Pe.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")},Pe.isSimpleAssignTarget=function(i){return i.type==="ParenthesizedExpression"?this.isSimpleAssignTarget(i.expression):i.type==="Identifier"||i.type==="MemberExpression"};var ie=be.prototype;ie.parseTopLevel=function(i){var n=Object.create(null);for(i.body||(i.body=[]);this.type!==m.eof;){var h=this.parseStatement(null,!0,n);i.body.push(h)}if(this.inModule)for(var f=0,v=Object.keys(this.undefinedExports);f<v.length;f+=1){var T=v[f];this.raiseRecoverable(this.undefinedExports[T].start,"Export '"+T+"' is not defined")}return this.adaptDirectivePrologue(i.body),this.next(),i.sourceType=this.options.sourceType==="commonjs"?"script":this.options.sourceType,this.finishNode(i,"Program")};var Xi={kind:"loop"},bo={kind:"switch"};ie.isLet=function(i){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;M.lastIndex=this.pos;var n=M.exec(this.input),h=this.pos+n[0].length,f=this.fullCharCodeAt(h);if(f===91||f===92)return!0;if(i)return!1;if(f===123)return!0;if(B(f)){var v=h;do h+=f<=65535?1:2;while(w(f=this.fullCharCodeAt(h)));if(f===92)return!0;var T=this.input.slice(v,h);if(!b.test(T))return!0}return!1},ie.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;M.lastIndex=this.pos;var i=M.exec(this.input),n=this.pos+i[0].length,h;return!ae.test(this.input.slice(this.pos,n))&&this.input.slice(n,n+8)==="function"&&(n+8===this.input.length||!(w(h=this.fullCharCodeAt(n+8))||h===92))},ie.isUsingKeyword=function(i,n){if(this.options.ecmaVersion<17||!this.isContextual(i?"await":"using"))return!1;M.lastIndex=this.pos;var h=M.exec(this.input),f=this.pos+h[0].length;if(ae.test(this.input.slice(this.pos,f)))return!1;if(i){var v=f+5,T;if(this.input.slice(f,v)!=="using"||v===this.input.length||w(T=this.fullCharCodeAt(v))||T===92)return!1;M.lastIndex=v;var R=M.exec(this.input);if(f=v+R[0].length,R&&ae.test(this.input.slice(v,f)))return!1}var H=this.fullCharCodeAt(f);if(!B(H)&&H!==92)return!1;var z=f;do f+=H<=65535?1:2;while(w(H=this.fullCharCodeAt(f)));if(H===92)return!0;var ce=this.input.slice(z,f);return!(b.test(ce)||n&&ce==="of")},ie.isAwaitUsing=function(i){return this.isUsingKeyword(!0,i)},ie.isUsing=function(i){return this.isUsingKeyword(!1,i)},ie.parseStatement=function(i,n,h){var f=this.type,v=this.startNode(),T;switch(this.isLet(i)&&(f=m._var,T="let"),f){case m._break:case m._continue:return this.parseBreakContinueStatement(v,f.keyword);case m._debugger:return this.parseDebuggerStatement(v);case m._do:return this.parseDoStatement(v);case m._for:return this.parseForStatement(v);case m._function:return i&&(this.strict||i!=="if"&&i!=="label")&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(v,!1,!i);case m._class:return i&&this.unexpected(),this.parseClass(v,!0);case m._if:return this.parseIfStatement(v);case m._return:return this.parseReturnStatement(v);case m._switch:return this.parseSwitchStatement(v);case m._throw:return this.parseThrowStatement(v);case m._try:return this.parseTryStatement(v);case m._const:case m._var:return T=T||this.value,i&&T!=="var"&&this.unexpected(),this.parseVarStatement(v,T);case m._while:return this.parseWhileStatement(v);case m._with:return this.parseWithStatement(v);case m.braceL:return this.parseBlock(!0,v);case m.semi:return this.parseEmptyStatement(v);case m._export:case m._import:if(this.options.ecmaVersion>10&&f===m._import){M.lastIndex=this.pos;var R=M.exec(this.input),H=this.pos+R[0].length,z=this.input.charCodeAt(H);if(z===40||z===46)return this.parseExpressionStatement(v,this.parseExpression())}return this.options.allowImportExportEverywhere||(n||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'")),f===m._import?this.parseImport(v):this.parseExport(v,h);default:if(this.isAsyncFunction())return i&&this.unexpected(),this.next(),this.parseFunctionStatement(v,!0,!i);var ce=this.isAwaitUsing(!1)?"await using":this.isUsing(!1)?"using":null;if(ce)return this.allowUsing||this.raise(this.start,"Using declaration cannot appear in the top level when source type is `script` or in the bare case statement"),ce==="await using"&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.next(),this.parseVar(v,!1,ce),this.semicolon(),this.finishNode(v,"VariableDeclaration");var me=this.value,we=this.parseExpression();return f===m.name&&we.type==="Identifier"&&this.eat(m.colon)?this.parseLabeledStatement(v,me,we,i):this.parseExpressionStatement(v,we)}},ie.parseBreakContinueStatement=function(i,n){var h=n==="break";this.next(),this.eat(m.semi)||this.insertSemicolon()?i.label=null:this.type!==m.name?this.unexpected():(i.label=this.parseIdent(),this.semicolon());for(var f=0;f<this.labels.length;++f){var v=this.labels[f];if((i.label==null||v.name===i.label.name)&&(v.kind!=null&&(h||v.kind==="loop")||i.label&&h))break}return f===this.labels.length&&this.raise(i.start,"Unsyntactic "+n),this.finishNode(i,h?"BreakStatement":"ContinueStatement")},ie.parseDebuggerStatement=function(i){return this.next(),this.semicolon(),this.finishNode(i,"DebuggerStatement")},ie.parseDoStatement=function(i){return this.next(),this.labels.push(Xi),i.body=this.parseStatement("do"),this.labels.pop(),this.expect(m._while),i.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(m.semi):this.semicolon(),this.finishNode(i,"DoWhileStatement")},ie.parseForStatement=function(i){this.next();var n=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(Xi),this.enterScope(0),this.expect(m.parenL),this.type===m.semi)return n>-1&&this.unexpected(n),this.parseFor(i,null);var h=this.isLet();if(this.type===m._var||this.type===m._const||h){var f=this.startNode(),v=h?"let":this.value;return this.next(),this.parseVar(f,!0,v),this.finishNode(f,"VariableDeclaration"),this.parseForAfterInit(i,f,n)}var T=this.isContextual("let"),R=!1,H=this.isUsing(!0)?"using":this.isAwaitUsing(!0)?"await using":null;if(H){var z=this.startNode();return this.next(),H==="await using"&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.parseVar(z,!0,H),this.finishNode(z,"VariableDeclaration"),this.parseForAfterInit(i,z,n)}var ce=this.containsEsc,me=new pi,we=this.start,Le=n>-1?this.parseExprSubscripts(me,"await"):this.parseExpression(!0,me);return this.type===m._in||(R=this.options.ecmaVersion>=6&&this.isContextual("of"))?(n>-1?(this.type===m._in&&this.unexpected(n),i.await=!0):R&&this.options.ecmaVersion>=8&&(Le.start===we&&!ce&&Le.type==="Identifier"&&Le.name==="async"?this.unexpected():this.options.ecmaVersion>=9&&(i.await=!1)),T&&R&&this.raise(Le.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(Le,!1,me),this.checkLValPattern(Le),this.parseForIn(i,Le)):(this.checkExpressionErrors(me,!0),n>-1&&this.unexpected(n),this.parseFor(i,Le))},ie.parseForAfterInit=function(i,n,h){return(this.type===m._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&n.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===m._in?h>-1&&this.unexpected(h):i.await=h>-1),this.parseForIn(i,n)):(h>-1&&this.unexpected(h),this.parseFor(i,n))},ie.parseFunctionStatement=function(i,n,h){return this.next(),this.parseFunction(i,Wt|(h?0:Ji),!1,n)},ie.parseIfStatement=function(i){return this.next(),i.test=this.parseParenExpression(),i.consequent=this.parseStatement("if"),i.alternate=this.eat(m._else)?this.parseStatement("if"):null,this.finishNode(i,"IfStatement")},ie.parseReturnStatement=function(i){return this.allowReturn||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(m.semi)||this.insertSemicolon()?i.argument=null:(i.argument=this.parseExpression(),this.semicolon()),this.finishNode(i,"ReturnStatement")},ie.parseSwitchStatement=function(i){this.next(),i.discriminant=this.parseParenExpression(),i.cases=[],this.expect(m.braceL),this.labels.push(bo),this.enterScope(ft);for(var n,h=!1;this.type!==m.braceR;)if(this.type===m._case||this.type===m._default){var f=this.type===m._case;n&&this.finishNode(n,"SwitchCase"),i.cases.push(n=this.startNode()),n.consequent=[],this.next(),f?n.test=this.parseExpression():(h&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),h=!0,n.test=null),this.expect(m.colon)}else n||this.unexpected(),n.consequent.push(this.parseStatement(null));return this.exitScope(),n&&this.finishNode(n,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(i,"SwitchStatement")},ie.parseThrowStatement=function(i){return this.next(),ae.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),i.argument=this.parseExpression(),this.semicolon(),this.finishNode(i,"ThrowStatement")};var So=[];ie.parseCatchClauseParam=function(){var i=this.parseBindingAtom(),n=i.type==="Identifier";return this.enterScope(n?oe:0),this.checkLValPattern(i,n?Ut:qe),this.expect(m.parenR),i},ie.parseTryStatement=function(i){if(this.next(),i.block=this.parseBlock(),i.handler=null,this.type===m._catch){var n=this.startNode();this.next(),this.eat(m.parenL)?n.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),n.param=null,this.enterScope(0)),n.body=this.parseBlock(!1),this.exitScope(),i.handler=this.finishNode(n,"CatchClause")}return i.finalizer=this.eat(m._finally)?this.parseBlock():null,!i.handler&&!i.finalizer&&this.raise(i.start,"Missing catch or finally clause"),this.finishNode(i,"TryStatement")},ie.parseVarStatement=function(i,n,h){return this.next(),this.parseVar(i,!1,n,h),this.semicolon(),this.finishNode(i,"VariableDeclaration")},ie.parseWhileStatement=function(i){return this.next(),i.test=this.parseParenExpression(),this.labels.push(Xi),i.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(i,"WhileStatement")},ie.parseWithStatement=function(i){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),i.object=this.parseParenExpression(),i.body=this.parseStatement("with"),this.finishNode(i,"WithStatement")},ie.parseEmptyStatement=function(i){return this.next(),this.finishNode(i,"EmptyStatement")},ie.parseLabeledStatement=function(i,n,h,f){for(var v=0,T=this.labels;v<T.length;v+=1){var R=T[v];R.name===n&&this.raise(h.start,"Label '"+n+"' is already declared")}for(var H=this.type.isLoop?"loop":this.type===m._switch?"switch":null,z=this.labels.length-1;z>=0;z--){var ce=this.labels[z];if(ce.statementStart===i.start)ce.statementStart=this.start,ce.kind=H;else break}return this.labels.push({name:n,kind:H,statementStart:this.start}),i.body=this.parseStatement(f?f.indexOf("label")===-1?f+"label":f:"label"),this.labels.pop(),i.label=h,this.finishNode(i,"LabeledStatement")},ie.parseExpressionStatement=function(i,n){return i.expression=n,this.semicolon(),this.finishNode(i,"ExpressionStatement")},ie.parseBlock=function(i,n,h){for(i===void 0&&(i=!0),n===void 0&&(n=this.startNode()),n.body=[],this.expect(m.braceL),i&&this.enterScope(0);this.type!==m.braceR;){var f=this.parseStatement(null);n.body.push(f)}return h&&(this.strict=!1),this.next(),i&&this.exitScope(),this.finishNode(n,"BlockStatement")},ie.parseFor=function(i,n){return i.init=n,this.expect(m.semi),i.test=this.type===m.semi?null:this.parseExpression(),this.expect(m.semi),i.update=this.type===m.parenR?null:this.parseExpression(),this.expect(m.parenR),i.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(i,"ForStatement")},ie.parseForIn=function(i,n){var h=this.type===m._in;return this.next(),n.type==="VariableDeclaration"&&n.declarations[0].init!=null&&(!h||this.options.ecmaVersion<8||this.strict||n.kind!=="var"||n.declarations[0].id.type!=="Identifier")&&this.raise(n.start,(h?"for-in":"for-of")+" loop variable declaration may not have an initializer"),i.left=n,i.right=h?this.parseExpression():this.parseMaybeAssign(),this.expect(m.parenR),i.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(i,h?"ForInStatement":"ForOfStatement")},ie.parseVar=function(i,n,h,f){for(i.declarations=[],i.kind=h;;){var v=this.startNode();if(this.parseVarId(v,h),this.eat(m.eq)?v.init=this.parseMaybeAssign(n):!f&&h==="const"&&!(this.type===m._in||this.options.ecmaVersion>=6&&this.isContextual("of"))?this.unexpected():!f&&(h==="using"||h==="await using")&&this.options.ecmaVersion>=17&&this.type!==m._in&&!this.isContextual("of")?this.raise(this.lastTokEnd,"Missing initializer in "+h+" declaration"):!f&&v.id.type!=="Identifier"&&!(n&&(this.type===m._in||this.isContextual("of")))?this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):v.init=null,i.declarations.push(this.finishNode(v,"VariableDeclarator")),!this.eat(m.comma))break}return i},ie.parseVarId=function(i,n){i.id=n==="using"||n==="await using"?this.parseIdent():this.parseBindingAtom(),this.checkLValPattern(i.id,n==="var"?bt:qe,!1)};var Wt=1,Ji=2,$s=4;ie.parseFunction=function(i,n,h,f,v){this.initFunction(i),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!f)&&(this.type===m.star&&n&Ji&&this.unexpected(),i.generator=this.eat(m.star)),this.options.ecmaVersion>=8&&(i.async=!!f),n&Wt&&(i.id=n&$s&&this.type!==m.name?null:this.parseIdent(),i.id&&!(n&Ji)&&this.checkLValSimple(i.id,this.strict||i.generator||i.async?this.treatFunctionsAsVar?bt:qe:St));var T=this.yieldPos,R=this.awaitPos,H=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(kt(i.async,i.generator)),n&Wt||(i.id=this.type===m.name?this.parseIdent():null),this.parseFunctionParams(i),this.parseFunctionBody(i,h,!1,v),this.yieldPos=T,this.awaitPos=R,this.awaitIdentPos=H,this.finishNode(i,n&Wt?"FunctionDeclaration":"FunctionExpression")},ie.parseFunctionParams=function(i){this.expect(m.parenL),i.params=this.parseBindingList(m.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},ie.parseClass=function(i,n){this.next();var h=this.strict;this.strict=!0,this.parseClassId(i,n),this.parseClassSuper(i);var f=this.enterClassBody(),v=this.startNode(),T=!1;for(v.body=[],this.expect(m.braceL);this.type!==m.braceR;){var R=this.parseClassElement(i.superClass!==null);R&&(v.body.push(R),R.type==="MethodDefinition"&&R.kind==="constructor"?(T&&this.raiseRecoverable(R.start,"Duplicate constructor in the same class"),T=!0):R.key&&R.key.type==="PrivateIdentifier"&&Co(f,R)&&this.raiseRecoverable(R.key.start,"Identifier '#"+R.key.name+"' has already been declared"))}return this.strict=h,this.next(),i.body=this.finishNode(v,"ClassBody"),this.exitClassBody(),this.finishNode(i,n?"ClassDeclaration":"ClassExpression")},ie.parseClassElement=function(i){if(this.eat(m.semi))return null;var n=this.options.ecmaVersion,h=this.startNode(),f="",v=!1,T=!1,R="method",H=!1;if(this.eatContextual("static")){if(n>=13&&this.eat(m.braceL))return this.parseClassStaticBlock(h),h;this.isClassElementNameStart()||this.type===m.star?H=!0:f="static"}if(h.static=H,!f&&n>=8&&this.eatContextual("async")&&((this.isClassElementNameStart()||this.type===m.star)&&!this.canInsertSemicolon()?T=!0:f="async"),!f&&(n>=9||!T)&&this.eat(m.star)&&(v=!0),!f&&!T&&!v){var z=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?R=z:f=z)}if(f?(h.computed=!1,h.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),h.key.name=f,this.finishNode(h.key,"Identifier")):this.parseClassElementName(h),n<13||this.type===m.parenL||R!=="method"||v||T){var ce=!h.static&&fi(h,"constructor"),me=ce&&i;ce&&R!=="method"&&this.raise(h.key.start,"Constructor can't have get/set modifier"),h.kind=ce?"constructor":R,this.parseClassMethod(h,v,T,me)}else this.parseClassField(h);return h},ie.isClassElementNameStart=function(){return this.type===m.name||this.type===m.privateId||this.type===m.num||this.type===m.string||this.type===m.bracketL||this.type.keyword},ie.parseClassElementName=function(i){this.type===m.privateId?(this.value==="constructor"&&this.raise(this.start,"Classes can't have an element named '#constructor'"),i.computed=!1,i.key=this.parsePrivateIdent()):this.parsePropertyName(i)},ie.parseClassMethod=function(i,n,h,f){var v=i.key;i.kind==="constructor"?(n&&this.raise(v.start,"Constructor can't be a generator"),h&&this.raise(v.start,"Constructor can't be an async method")):i.static&&fi(i,"prototype")&&this.raise(v.start,"Classes may not have a static property named prototype");var T=i.value=this.parseMethod(n,h,f);return i.kind==="get"&&T.params.length!==0&&this.raiseRecoverable(T.start,"getter should have no params"),i.kind==="set"&&T.params.length!==1&&this.raiseRecoverable(T.start,"setter should have exactly one param"),i.kind==="set"&&T.params[0].type==="RestElement"&&this.raiseRecoverable(T.params[0].start,"Setter cannot use rest params"),this.finishNode(i,"MethodDefinition")},ie.parseClassField=function(i){return fi(i,"constructor")?this.raise(i.key.start,"Classes can't have a field named 'constructor'"):i.static&&fi(i,"prototype")&&this.raise(i.key.start,"Classes can't have a static field named 'prototype'"),this.eat(m.eq)?(this.enterScope(Ie|de),i.value=this.parseMaybeAssign(),this.exitScope()):i.value=null,this.semicolon(),this.finishNode(i,"PropertyDefinition")},ie.parseClassStaticBlock=function(i){i.body=[];var n=this.labels;for(this.labels=[],this.enterScope(ke|de);this.type!==m.braceR;){var h=this.parseStatement(null);i.body.push(h)}return this.next(),this.exitScope(),this.labels=n,this.finishNode(i,"StaticBlock")},ie.parseClassId=function(i,n){this.type===m.name?(i.id=this.parseIdent(),n&&this.checkLValSimple(i.id,qe,!1)):(n===!0&&this.unexpected(),i.id=null)},ie.parseClassSuper=function(i){i.superClass=this.eat(m._extends)?this.parseExprSubscripts(null,!1):null},ie.enterClassBody=function(){var i={declared:Object.create(null),used:[]};return this.privateNameStack.push(i),i.declared},ie.exitClassBody=function(){var i=this.privateNameStack.pop(),n=i.declared,h=i.used;if(this.options.checkPrivateFields)for(var f=this.privateNameStack.length,v=f===0?null:this.privateNameStack[f-1],T=0;T<h.length;++T){var R=h[T];O(n,R.name)||(v?v.used.push(R):this.raiseRecoverable(R.start,"Private field '#"+R.name+"' must be declared in an enclosing class"))}};function Co(i,n){var h=n.key.name,f=i[h],v="true";return n.type==="MethodDefinition"&&(n.kind==="get"||n.kind==="set")&&(v=(n.static?"s":"i")+n.kind),f==="iget"&&v==="iset"||f==="iset"&&v==="iget"||f==="sget"&&v==="sset"||f==="sset"&&v==="sget"?(i[h]="true",!1):f?!0:(i[h]=v,!1)}function fi(i,n){var h=i.computed,f=i.key;return!h&&(f.type==="Identifier"&&f.name===n||f.type==="Literal"&&f.value===n)}ie.parseExportAllDeclaration=function(i,n){return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(i.exported=this.parseModuleExportName(),this.checkExport(n,i.exported,this.lastTokStart)):i.exported=null),this.expectContextual("from"),this.type!==m.string&&this.unexpected(),i.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(i.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(i,"ExportAllDeclaration")},ie.parseExport=function(i,n){if(this.next(),this.eat(m.star))return this.parseExportAllDeclaration(i,n);if(this.eat(m._default))return this.checkExport(n,"default",this.lastTokStart),i.declaration=this.parseExportDefaultDeclaration(),this.finishNode(i,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())i.declaration=this.parseExportDeclaration(i),i.declaration.type==="VariableDeclaration"?this.checkVariableExport(n,i.declaration.declarations):this.checkExport(n,i.declaration.id,i.declaration.id.start),i.specifiers=[],i.source=null,this.options.ecmaVersion>=16&&(i.attributes=[]);else{if(i.declaration=null,i.specifiers=this.parseExportSpecifiers(n),this.eatContextual("from"))this.type!==m.string&&this.unexpected(),i.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(i.attributes=this.parseWithClause());else{for(var h=0,f=i.specifiers;h<f.length;h+=1){var v=f[h];this.checkUnreserved(v.local),this.checkLocalExport(v.local),v.local.type==="Literal"&&this.raise(v.local.start,"A string literal cannot be used as an exported binding without `from`.")}i.source=null,this.options.ecmaVersion>=16&&(i.attributes=[])}this.semicolon()}return this.finishNode(i,"ExportNamedDeclaration")},ie.parseExportDeclaration=function(i){return this.parseStatement(null)},ie.parseExportDefaultDeclaration=function(){var i;if(this.type===m._function||(i=this.isAsyncFunction())){var n=this.startNode();return this.next(),i&&this.next(),this.parseFunction(n,Wt|$s,!1,i)}else if(this.type===m._class){var h=this.startNode();return this.parseClass(h,"nullableID")}else{var f=this.parseMaybeAssign();return this.semicolon(),f}},ie.checkExport=function(i,n,h){i&&(typeof n!="string"&&(n=n.type==="Identifier"?n.name:n.value),O(i,n)&&this.raiseRecoverable(h,"Duplicate export '"+n+"'"),i[n]=!0)},ie.checkPatternExport=function(i,n){var h=n.type;if(h==="Identifier")this.checkExport(i,n,n.start);else if(h==="ObjectPattern")for(var f=0,v=n.properties;f<v.length;f+=1){var T=v[f];this.checkPatternExport(i,T)}else if(h==="ArrayPattern")for(var R=0,H=n.elements;R<H.length;R+=1){var z=H[R];z&&this.checkPatternExport(i,z)}else h==="Property"?this.checkPatternExport(i,n.value):h==="AssignmentPattern"?this.checkPatternExport(i,n.left):h==="RestElement"&&this.checkPatternExport(i,n.argument)},ie.checkVariableExport=function(i,n){if(i)for(var h=0,f=n;h<f.length;h+=1){var v=f[h];this.checkPatternExport(i,v.id)}},ie.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()},ie.parseExportSpecifier=function(i){var n=this.startNode();return n.local=this.parseModuleExportName(),n.exported=this.eatContextual("as")?this.parseModuleExportName():n.local,this.checkExport(i,n.exported,n.exported.start),this.finishNode(n,"ExportSpecifier")},ie.parseExportSpecifiers=function(i){var n=[],h=!0;for(this.expect(m.braceL);!this.eat(m.braceR);){if(h)h=!1;else if(this.expect(m.comma),this.afterTrailingComma(m.braceR))break;n.push(this.parseExportSpecifier(i))}return n},ie.parseImport=function(i){return this.next(),this.type===m.string?(i.specifiers=So,i.source=this.parseExprAtom()):(i.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),i.source=this.type===m.string?this.parseExprAtom():this.unexpected()),this.options.ecmaVersion>=16&&(i.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(i,"ImportDeclaration")},ie.parseImportSpecifier=function(){var i=this.startNode();return i.imported=this.parseModuleExportName(),this.eatContextual("as")?i.local=this.parseIdent():(this.checkUnreserved(i.imported),i.local=i.imported),this.checkLValSimple(i.local,qe),this.finishNode(i,"ImportSpecifier")},ie.parseImportDefaultSpecifier=function(){var i=this.startNode();return i.local=this.parseIdent(),this.checkLValSimple(i.local,qe),this.finishNode(i,"ImportDefaultSpecifier")},ie.parseImportNamespaceSpecifier=function(){var i=this.startNode();return this.next(),this.expectContextual("as"),i.local=this.parseIdent(),this.checkLValSimple(i.local,qe),this.finishNode(i,"ImportNamespaceSpecifier")},ie.parseImportSpecifiers=function(){var i=[],n=!0;if(this.type===m.name&&(i.push(this.parseImportDefaultSpecifier()),!this.eat(m.comma)))return i;if(this.type===m.star)return i.push(this.parseImportNamespaceSpecifier()),i;for(this.expect(m.braceL);!this.eat(m.braceR);){if(n)n=!1;else if(this.expect(m.comma),this.afterTrailingComma(m.braceR))break;i.push(this.parseImportSpecifier())}return i},ie.parseWithClause=function(){var i=[];if(!this.eat(m._with))return i;this.expect(m.braceL);for(var n={},h=!0;!this.eat(m.braceR);){if(h)h=!1;else if(this.expect(m.comma),this.afterTrailingComma(m.braceR))break;var f=this.parseImportAttribute(),v=f.key.type==="Identifier"?f.key.name:f.key.value;O(n,v)&&this.raiseRecoverable(f.key.start,"Duplicate attribute key '"+v+"'"),n[v]=!0,i.push(f)}return i},ie.parseImportAttribute=function(){var i=this.startNode();return i.key=this.type===m.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never"),this.expect(m.colon),this.type!==m.string&&this.unexpected(),i.value=this.parseExprAtom(),this.finishNode(i,"ImportAttribute")},ie.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===m.string){var i=this.parseLiteral(this.value);return d.test(i.value)&&this.raise(i.start,"An export name cannot include a lone surrogate."),i}return this.parseIdent(!0)},ie.adaptDirectivePrologue=function(i){for(var n=0;n<i.length&&this.isDirectiveCandidate(i[n]);++n)i[n].directive=i[n].expression.raw.slice(1,-1)},ie.isDirectiveCandidate=function(i){return this.options.ecmaVersion>=5&&i.type==="ExpressionStatement"&&i.expression.type==="Literal"&&typeof i.expression.value=="string"&&(this.input[i.start]==='"'||this.input[i.start]==="'")};var We=be.prototype;We.toAssignable=function(i,n,h){if(this.options.ecmaVersion>=6&&i)switch(i.type){case"Identifier":this.inAsync&&i.name==="await"&&this.raise(i.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":i.type="ObjectPattern",h&&this.checkPatternErrors(h,!0);for(var f=0,v=i.properties;f<v.length;f+=1){var T=v[f];this.toAssignable(T,n),T.type==="RestElement"&&(T.argument.type==="ArrayPattern"||T.argument.type==="ObjectPattern")&&this.raise(T.argument.start,"Unexpected token")}break;case"Property":i.kind!=="init"&&this.raise(i.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(i.value,n);break;case"ArrayExpression":i.type="ArrayPattern",h&&this.checkPatternErrors(h,!0),this.toAssignableList(i.elements,n);break;case"SpreadElement":i.type="RestElement",this.toAssignable(i.argument,n),i.argument.type==="AssignmentPattern"&&this.raise(i.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":i.operator!=="="&&this.raise(i.left.end,"Only '=' operator can be used for specifying default value."),i.type="AssignmentPattern",delete i.operator,this.toAssignable(i.left,n);break;case"ParenthesizedExpression":this.toAssignable(i.expression,n,h);break;case"ChainExpression":this.raiseRecoverable(i.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!n)break;default:this.raise(i.start,"Assigning to rvalue")}else h&&this.checkPatternErrors(h,!0);return i},We.toAssignableList=function(i,n){for(var h=i.length,f=0;f<h;f++){var v=i[f];v&&this.toAssignable(v,n)}if(h){var T=i[h-1];this.options.ecmaVersion===6&&n&&T&&T.type==="RestElement"&&T.argument.type!=="Identifier"&&this.unexpected(T.argument.start)}return i},We.parseSpread=function(i){var n=this.startNode();return this.next(),n.argument=this.parseMaybeAssign(!1,i),this.finishNode(n,"SpreadElement")},We.parseRestBinding=function(){var i=this.startNode();return this.next(),this.options.ecmaVersion===6&&this.type!==m.name&&this.unexpected(),i.argument=this.parseBindingAtom(),this.finishNode(i,"RestElement")},We.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case m.bracketL:var i=this.startNode();return this.next(),i.elements=this.parseBindingList(m.bracketR,!0,!0),this.finishNode(i,"ArrayPattern");case m.braceL:return this.parseObj(!0)}return this.parseIdent()},We.parseBindingList=function(i,n,h,f){for(var v=[],T=!0;!this.eat(i);)if(T?T=!1:this.expect(m.comma),n&&this.type===m.comma)v.push(null);else{if(h&&this.afterTrailingComma(i))break;if(this.type===m.ellipsis){var R=this.parseRestBinding();this.parseBindingListItem(R),v.push(R),this.type===m.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.expect(i);break}else v.push(this.parseAssignableListItem(f))}return v},We.parseAssignableListItem=function(i){var n=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(n),n},We.parseBindingListItem=function(i){return i},We.parseMaybeDefault=function(i,n,h){if(h=h||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(m.eq))return h;var f=this.startNodeAt(i,n);return f.left=h,f.right=this.parseMaybeAssign(),this.finishNode(f,"AssignmentPattern")},We.checkLValSimple=function(i,n,h){n===void 0&&(n=at);var f=n!==at;switch(i.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(i.name)&&this.raiseRecoverable(i.start,(f?"Binding ":"Assigning to ")+i.name+" in strict mode"),f&&(n===qe&&i.name==="let"&&this.raiseRecoverable(i.start,"let is disallowed as a lexically bound name"),h&&(O(h,i.name)&&this.raiseRecoverable(i.start,"Argument name clash"),h[i.name]=!0),n!==Ht&&this.declareName(i.name,n,i.start));break;case"ChainExpression":this.raiseRecoverable(i.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":f&&this.raiseRecoverable(i.start,"Binding member expression");break;case"ParenthesizedExpression":return f&&this.raiseRecoverable(i.start,"Binding parenthesized expression"),this.checkLValSimple(i.expression,n,h);default:this.raise(i.start,(f?"Binding":"Assigning to")+" rvalue")}},We.checkLValPattern=function(i,n,h){switch(n===void 0&&(n=at),i.type){case"ObjectPattern":for(var f=0,v=i.properties;f<v.length;f+=1){var T=v[f];this.checkLValInnerPattern(T,n,h)}break;case"ArrayPattern":for(var R=0,H=i.elements;R<H.length;R+=1){var z=H[R];z&&this.checkLValInnerPattern(z,n,h)}break;default:this.checkLValSimple(i,n,h)}},We.checkLValInnerPattern=function(i,n,h){switch(n===void 0&&(n=at),i.type){case"Property":this.checkLValInnerPattern(i.value,n,h);break;case"AssignmentPattern":this.checkLValPattern(i.left,n,h);break;case"RestElement":this.checkLValPattern(i.argument,n,h);break;default:this.checkLValPattern(i,n,h)}};var Ge=function(n,h,f,v,T){this.token=n,this.isExpr=!!h,this.preserveSpace=!!f,this.override=v,this.generator=!!T},Ce={b_stat:new Ge("{",!1),b_expr:new Ge("{",!0),b_tmpl:new Ge("${",!1),p_stat:new Ge("(",!1),p_expr:new Ge("(",!0),q_tmpl:new Ge("`",!0,!0,function(i){return i.tryReadTemplateToken()}),f_stat:new Ge("function",!1),f_expr:new Ge("function",!0),f_expr_gen:new Ge("function",!0,!1,null,!0),f_gen:new Ge("function",!1,!1,null,!0)},Tt=be.prototype;Tt.initialContext=function(){return[Ce.b_stat]},Tt.curContext=function(){return this.context[this.context.length-1]},Tt.braceIsBlock=function(i){var n=this.curContext();return n===Ce.f_expr||n===Ce.f_stat?!0:i===m.colon&&(n===Ce.b_stat||n===Ce.b_expr)?!n.isExpr:i===m._return||i===m.name&&this.exprAllowed?ae.test(this.input.slice(this.lastTokEnd,this.start)):i===m._else||i===m.semi||i===m.eof||i===m.parenR||i===m.arrow?!0:i===m.braceL?n===Ce.b_stat:i===m._var||i===m._const||i===m.name?!1:!this.exprAllowed},Tt.inGeneratorContext=function(){for(var i=this.context.length-1;i>=1;i--){var n=this.context[i];if(n.token==="function")return n.generator}return!1},Tt.updateContext=function(i){var n,h=this.type;h.keyword&&i===m.dot?this.exprAllowed=!1:(n=h.updateContext)?n.call(this,i):this.exprAllowed=h.beforeExpr},Tt.overrideContext=function(i){this.curContext()!==i&&(this.context[this.context.length-1]=i)},m.parenR.updateContext=m.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=!0;return}var i=this.context.pop();i===Ce.b_stat&&this.curContext().token==="function"&&(i=this.context.pop()),this.exprAllowed=!i.isExpr},m.braceL.updateContext=function(i){this.context.push(this.braceIsBlock(i)?Ce.b_stat:Ce.b_expr),this.exprAllowed=!0},m.dollarBraceL.updateContext=function(){this.context.push(Ce.b_tmpl),this.exprAllowed=!0},m.parenL.updateContext=function(i){var n=i===m._if||i===m._for||i===m._with||i===m._while;this.context.push(n?Ce.p_stat:Ce.p_expr),this.exprAllowed=!0},m.incDec.updateContext=function(){},m._function.updateContext=m._class.updateContext=function(i){i.beforeExpr&&i!==m._else&&!(i===m.semi&&this.curContext()!==Ce.p_stat)&&!(i===m._return&&ae.test(this.input.slice(this.lastTokEnd,this.start)))&&!((i===m.colon||i===m.braceL)&&this.curContext()===Ce.b_stat)?this.context.push(Ce.f_expr):this.context.push(Ce.f_stat),this.exprAllowed=!1},m.colon.updateContext=function(){this.curContext().token==="function"&&this.context.pop(),this.exprAllowed=!0},m.backQuote.updateContext=function(){this.curContext()===Ce.q_tmpl?this.context.pop():this.context.push(Ce.q_tmpl),this.exprAllowed=!1},m.star.updateContext=function(i){if(i===m._function){var n=this.context.length-1;this.context[n]===Ce.f_expr?this.context[n]=Ce.f_expr_gen:this.context[n]=Ce.f_gen}this.exprAllowed=!0},m.name.updateContext=function(i){var n=!1;this.options.ecmaVersion>=6&&i!==m.dot&&(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())&&(n=!0),this.exprAllowed=n};var le=be.prototype;le.checkPropClash=function(i,n,h){if(!(this.options.ecmaVersion>=9&&i.type==="SpreadElement")&&!(this.options.ecmaVersion>=6&&(i.computed||i.method||i.shorthand))){var f=i.key,v;switch(f.type){case"Identifier":v=f.name;break;case"Literal":v=String(f.value);break;default:return}var T=i.kind;if(this.options.ecmaVersion>=6){v==="__proto__"&&T==="init"&&(n.proto&&(h?h.doubleProto<0&&(h.doubleProto=f.start):this.raiseRecoverable(f.start,"Redefinition of __proto__ property")),n.proto=!0);return}v="$"+v;var R=n[v];if(R){var H;T==="init"?H=this.strict&&R.init||R.get||R.set:H=R.init||R[T],H&&this.raiseRecoverable(f.start,"Redefinition of property")}else R=n[v]={init:!1,get:!1,set:!1};R[T]=!0}},le.parseExpression=function(i,n){var h=this.start,f=this.startLoc,v=this.parseMaybeAssign(i,n);if(this.type===m.comma){var T=this.startNodeAt(h,f);for(T.expressions=[v];this.eat(m.comma);)T.expressions.push(this.parseMaybeAssign(i,n));return this.finishNode(T,"SequenceExpression")}return v},le.parseMaybeAssign=function(i,n,h){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(i);this.exprAllowed=!1}var f=!1,v=-1,T=-1,R=-1;n?(v=n.parenthesizedAssign,T=n.trailingComma,R=n.doubleProto,n.parenthesizedAssign=n.trailingComma=-1):(n=new pi,f=!0);var H=this.start,z=this.startLoc;(this.type===m.parenL||this.type===m.name)&&(this.potentialArrowAt=this.start,this.potentialArrowInForAwait=i==="await");var ce=this.parseMaybeConditional(i,n);if(h&&(ce=h.call(this,ce,H,z)),this.type.isAssign){var me=this.startNodeAt(H,z);return me.operator=this.value,this.type===m.eq&&(ce=this.toAssignable(ce,!1,n)),f||(n.parenthesizedAssign=n.trailingComma=n.doubleProto=-1),n.shorthandAssign>=ce.start&&(n.shorthandAssign=-1),this.type===m.eq?this.checkLValPattern(ce):this.checkLValSimple(ce),me.left=ce,this.next(),me.right=this.parseMaybeAssign(i),R>-1&&(n.doubleProto=R),this.finishNode(me,"AssignmentExpression")}else f&&this.checkExpressionErrors(n,!0);return v>-1&&(n.parenthesizedAssign=v),T>-1&&(n.trailingComma=T),ce},le.parseMaybeConditional=function(i,n){var h=this.start,f=this.startLoc,v=this.parseExprOps(i,n);if(this.checkExpressionErrors(n))return v;if(this.eat(m.question)){var T=this.startNodeAt(h,f);return T.test=v,T.consequent=this.parseMaybeAssign(),this.expect(m.colon),T.alternate=this.parseMaybeAssign(i),this.finishNode(T,"ConditionalExpression")}return v},le.parseExprOps=function(i,n){var h=this.start,f=this.startLoc,v=this.parseMaybeUnary(n,!1,!1,i);return this.checkExpressionErrors(n)||v.start===h&&v.type==="ArrowFunctionExpression"?v:this.parseExprOp(v,h,f,-1,i)},le.parseExprOp=function(i,n,h,f,v){var T=this.type.binop;if(T!=null&&(!v||this.type!==m._in)&&T>f){var R=this.type===m.logicalOR||this.type===m.logicalAND,H=this.type===m.coalesce;H&&(T=m.logicalAND.binop);var z=this.value;this.next();var ce=this.start,me=this.startLoc,we=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,v),ce,me,T,v),Le=this.buildBinary(n,h,i,we,z,R||H);return(R&&this.type===m.coalesce||H&&(this.type===m.logicalOR||this.type===m.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(Le,n,h,f,v)}return i},le.buildBinary=function(i,n,h,f,v,T){f.type==="PrivateIdentifier"&&this.raise(f.start,"Private identifier can only be left side of binary expression");var R=this.startNodeAt(i,n);return R.left=h,R.operator=v,R.right=f,this.finishNode(R,T?"LogicalExpression":"BinaryExpression")},le.parseMaybeUnary=function(i,n,h,f){var v=this.start,T=this.startLoc,R;if(this.isContextual("await")&&this.canAwait)R=this.parseAwait(f),n=!0;else if(this.type.prefix){var H=this.startNode(),z=this.type===m.incDec;H.operator=this.value,H.prefix=!0,this.next(),H.argument=this.parseMaybeUnary(null,!0,z,f),this.checkExpressionErrors(i,!0),z?this.checkLValSimple(H.argument):this.strict&&H.operator==="delete"&&zs(H.argument)?this.raiseRecoverable(H.start,"Deleting local variable in strict mode"):H.operator==="delete"&&Qi(H.argument)?this.raiseRecoverable(H.start,"Private fields can not be deleted"):n=!0,R=this.finishNode(H,z?"UpdateExpression":"UnaryExpression")}else if(!n&&this.type===m.privateId)(f||this.privateNameStack.length===0)&&this.options.checkPrivateFields&&this.unexpected(),R=this.parsePrivateIdent(),this.type!==m._in&&this.unexpected();else{if(R=this.parseExprSubscripts(i,f),this.checkExpressionErrors(i))return R;for(;this.type.postfix&&!this.canInsertSemicolon();){var ce=this.startNodeAt(v,T);ce.operator=this.value,ce.prefix=!1,ce.argument=R,this.checkLValSimple(R),this.next(),R=this.finishNode(ce,"UpdateExpression")}}if(!h&&this.eat(m.starstar))if(n)this.unexpected(this.lastTokStart);else return this.buildBinary(v,T,R,this.parseMaybeUnary(null,!1,!1,f),"**",!1);else return R};function zs(i){return i.type==="Identifier"||i.type==="ParenthesizedExpression"&&zs(i.expression)}function Qi(i){return i.type==="MemberExpression"&&i.property.type==="PrivateIdentifier"||i.type==="ChainExpression"&&Qi(i.expression)||i.type==="ParenthesizedExpression"&&Qi(i.expression)}le.parseExprSubscripts=function(i,n){var h=this.start,f=this.startLoc,v=this.parseExprAtom(i,n);if(v.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return v;var T=this.parseSubscripts(v,h,f,!1,n);return i&&T.type==="MemberExpression"&&(i.parenthesizedAssign>=T.start&&(i.parenthesizedAssign=-1),i.parenthesizedBind>=T.start&&(i.parenthesizedBind=-1),i.trailingComma>=T.start&&(i.trailingComma=-1)),T},le.parseSubscripts=function(i,n,h,f,v){for(var T=this.options.ecmaVersion>=8&&i.type==="Identifier"&&i.name==="async"&&this.lastTokEnd===i.end&&!this.canInsertSemicolon()&&i.end-i.start===5&&this.potentialArrowAt===i.start,R=!1;;){var H=this.parseSubscript(i,n,h,f,T,R,v);if(H.optional&&(R=!0),H===i||H.type==="ArrowFunctionExpression"){if(R){var z=this.startNodeAt(n,h);z.expression=H,H=this.finishNode(z,"ChainExpression")}return H}i=H}},le.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(m.arrow)},le.parseSubscriptAsyncArrow=function(i,n,h,f){return this.parseArrowExpression(this.startNodeAt(i,n),h,!0,f)},le.parseSubscript=function(i,n,h,f,v,T,R){var H=this.options.ecmaVersion>=11,z=H&&this.eat(m.questionDot);f&&z&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var ce=this.eat(m.bracketL);if(ce||z&&this.type!==m.parenL&&this.type!==m.backQuote||this.eat(m.dot)){var me=this.startNodeAt(n,h);me.object=i,ce?(me.property=this.parseExpression(),this.expect(m.bracketR)):this.type===m.privateId&&i.type!=="Super"?me.property=this.parsePrivateIdent():me.property=this.parseIdent(this.options.allowReserved!=="never"),me.computed=!!ce,H&&(me.optional=z),i=this.finishNode(me,"MemberExpression")}else if(!f&&this.eat(m.parenL)){var we=new pi,Le=this.yieldPos,zt=this.awaitPos,Pt=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var gi=this.parseExprList(m.parenR,this.options.ecmaVersion>=8,!1,we);if(v&&!z&&this.shouldParseAsyncArrow())return this.checkPatternErrors(we,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=Le,this.awaitPos=zt,this.awaitIdentPos=Pt,this.parseSubscriptAsyncArrow(n,h,gi,R);this.checkExpressionErrors(we,!0),this.yieldPos=Le||this.yieldPos,this.awaitPos=zt||this.awaitPos,this.awaitIdentPos=Pt||this.awaitIdentPos;var It=this.startNodeAt(n,h);It.callee=i,It.arguments=gi,H&&(It.optional=z),i=this.finishNode(It,"CallExpression")}else if(this.type===m.backQuote){(z||T)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var Nt=this.startNodeAt(n,h);Nt.tag=i,Nt.quasi=this.parseTemplate({isTagged:!0}),i=this.finishNode(Nt,"TaggedTemplateExpression")}return i},le.parseExprAtom=function(i,n,h){this.type===m.slash&&this.readRegexp();var f,v=this.potentialArrowAt===this.start;switch(this.type){case m._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),f=this.startNode(),this.next(),this.type===m.parenL&&!this.allowDirectSuper&&this.raise(f.start,"super() call outside constructor of a subclass"),this.type!==m.dot&&this.type!==m.bracketL&&this.type!==m.parenL&&this.unexpected(),this.finishNode(f,"Super");case m._this:return f=this.startNode(),this.next(),this.finishNode(f,"ThisExpression");case m.name:var T=this.start,R=this.startLoc,H=this.containsEsc,z=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!H&&z.name==="async"&&!this.canInsertSemicolon()&&this.eat(m._function))return this.overrideContext(Ce.f_expr),this.parseFunction(this.startNodeAt(T,R),0,!1,!0,n);if(v&&!this.canInsertSemicolon()){if(this.eat(m.arrow))return this.parseArrowExpression(this.startNodeAt(T,R),[z],!1,n);if(this.options.ecmaVersion>=8&&z.name==="async"&&this.type===m.name&&!H&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc))return z=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(m.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(T,R),[z],!0,n)}return z;case m.regexp:var ce=this.value;return f=this.parseLiteral(ce.value),f.regex={pattern:ce.pattern,flags:ce.flags},f;case m.num:case m.string:return this.parseLiteral(this.value);case m._null:case m._true:case m._false:return f=this.startNode(),f.value=this.type===m._null?null:this.type===m._true,f.raw=this.type.keyword,this.next(),this.finishNode(f,"Literal");case m.parenL:var me=this.start,we=this.parseParenAndDistinguishExpression(v,n);return i&&(i.parenthesizedAssign<0&&!this.isSimpleAssignTarget(we)&&(i.parenthesizedAssign=me),i.parenthesizedBind<0&&(i.parenthesizedBind=me)),we;case m.bracketL:return f=this.startNode(),this.next(),f.elements=this.parseExprList(m.bracketR,!0,!0,i),this.finishNode(f,"ArrayExpression");case m.braceL:return this.overrideContext(Ce.b_expr),this.parseObj(!1,i);case m._function:return f=this.startNode(),this.next(),this.parseFunction(f,0);case m._class:return this.parseClass(this.startNode(),!1);case m._new:return this.parseNew();case m.backQuote:return this.parseTemplate();case m._import:return this.options.ecmaVersion>=11?this.parseExprImport(h):this.unexpected();default:return this.parseExprAtomDefault()}},le.parseExprAtomDefault=function(){this.unexpected()},le.parseExprImport=function(i){var n=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===m.parenL&&!i)return this.parseDynamicImport(n);if(this.type===m.dot){var h=this.startNodeAt(n.start,n.loc&&n.loc.start);return h.name="import",n.meta=this.finishNode(h,"Identifier"),this.parseImportMeta(n)}else this.unexpected()},le.parseDynamicImport=function(i){if(this.next(),i.source=this.parseMaybeAssign(),this.options.ecmaVersion>=16)this.eat(m.parenR)?i.options=null:(this.expect(m.comma),this.afterTrailingComma(m.parenR)?i.options=null:(i.options=this.parseMaybeAssign(),this.eat(m.parenR)||(this.expect(m.comma),this.afterTrailingComma(m.parenR)||this.unexpected())));else if(!this.eat(m.parenR)){var n=this.start;this.eat(m.comma)&&this.eat(m.parenR)?this.raiseRecoverable(n,"Trailing comma is not allowed in import()"):this.unexpected(n)}return this.finishNode(i,"ImportExpression")},le.parseImportMeta=function(i){this.next();var n=this.containsEsc;return i.property=this.parseIdent(!0),i.property.name!=="meta"&&this.raiseRecoverable(i.property.start,"The only valid meta property for import is 'import.meta'"),n&&this.raiseRecoverable(i.start,"'import.meta' must not contain escaped characters"),this.options.sourceType!=="module"&&!this.options.allowImportExportEverywhere&&this.raiseRecoverable(i.start,"Cannot use 'import.meta' outside a module"),this.finishNode(i,"MetaProperty")},le.parseLiteral=function(i){var n=this.startNode();return n.value=i,n.raw=this.input.slice(this.start,this.end),n.raw.charCodeAt(n.raw.length-1)===110&&(n.bigint=n.value!=null?n.value.toString():n.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(n,"Literal")},le.parseParenExpression=function(){this.expect(m.parenL);var i=this.parseExpression();return this.expect(m.parenR),i},le.shouldParseArrow=function(i){return!this.canInsertSemicolon()},le.parseParenAndDistinguishExpression=function(i,n){var h=this.start,f=this.startLoc,v,T=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var R=this.start,H=this.startLoc,z=[],ce=!0,me=!1,we=new pi,Le=this.yieldPos,zt=this.awaitPos,Pt;for(this.yieldPos=0,this.awaitPos=0;this.type!==m.parenR;)if(ce?ce=!1:this.expect(m.comma),T&&this.afterTrailingComma(m.parenR,!0)){me=!0;break}else if(this.type===m.ellipsis){Pt=this.start,z.push(this.parseParenItem(this.parseRestBinding())),this.type===m.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}else z.push(this.parseMaybeAssign(!1,we,this.parseParenItem));var gi=this.lastTokEnd,It=this.lastTokEndLoc;if(this.expect(m.parenR),i&&this.shouldParseArrow(z)&&this.eat(m.arrow))return this.checkPatternErrors(we,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=Le,this.awaitPos=zt,this.parseParenArrowList(h,f,z,n);(!z.length||me)&&this.unexpected(this.lastTokStart),Pt&&this.unexpected(Pt),this.checkExpressionErrors(we,!0),this.yieldPos=Le||this.yieldPos,this.awaitPos=zt||this.awaitPos,z.length>1?(v=this.startNodeAt(R,H),v.expressions=z,this.finishNodeAt(v,"SequenceExpression",gi,It)):v=z[0]}else v=this.parseParenExpression();if(this.options.preserveParens){var Nt=this.startNodeAt(h,f);return Nt.expression=v,this.finishNode(Nt,"ParenthesizedExpression")}else return v},le.parseParenItem=function(i){return i},le.parseParenArrowList=function(i,n,h,f){return this.parseArrowExpression(this.startNodeAt(i,n),h,!1,f)};var wo=[];le.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var i=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===m.dot){var n=this.startNodeAt(i.start,i.loc&&i.loc.start);n.name="new",i.meta=this.finishNode(n,"Identifier"),this.next();var h=this.containsEsc;return i.property=this.parseIdent(!0),i.property.name!=="target"&&this.raiseRecoverable(i.property.start,"The only valid meta property for new is 'new.target'"),h&&this.raiseRecoverable(i.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(i.start,"'new.target' can only be used in functions and class static block"),this.finishNode(i,"MetaProperty")}var f=this.start,v=this.startLoc;return i.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),f,v,!0,!1),this.eat(m.parenL)?i.arguments=this.parseExprList(m.parenR,this.options.ecmaVersion>=8,!1):i.arguments=wo,this.finishNode(i,"NewExpression")},le.parseTemplateElement=function(i){var n=i.isTagged,h=this.startNode();return this.type===m.invalidTemplate?(n||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),h.value={raw:this.value.replace(/\r\n?/g,`
1
+ "use strict";var zo=Object.create;var vi=Object.defineProperty;var Ko=Object.getOwnPropertyDescriptor;var Xo=Object.getOwnPropertyNames;var Jo=Object.getPrototypeOf,Qo=Object.prototype.hasOwnProperty;var ot=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),br=(e,t)=>{for(var s in t)vi(e,s,{get:t[s],enumerable:!0})},Sr=(e,t,s,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Xo(t))!Qo.call(e,o)&&o!==s&&vi(e,o,{get:()=>t[o],enumerable:!(a=Ko(t,o))||a.enumerable});return e};var mt=(e,t,s)=>(s=e!=null?zo(Jo(e)):{},Sr(t||!e||!e.__esModule?vi(s,"default",{value:e,enumerable:!0}):s,e)),Yo=e=>Sr(vi({},"__esModule",{value:!0}),e);var Kt=ot((Il,Er)=>{"use strict";var Cr="[^\\\\/]",Zo="(?=.)",wr="[^/]",Zi="(?:\\/|$)",_r="(?:^|\\/)",es=`\\.{1,2}${Zi}`,eu="(?!\\.)",tu=`(?!${_r}${es})`,iu=`(?!\\.{0,1}${Zi})`,su=`(?!${es})`,ru="[^.\\/]",au=`${wr}*?`,nu="/",Ar={DOT_LITERAL:"\\.",PLUS_LITERAL:"\\+",QMARK_LITERAL:"\\?",SLASH_LITERAL:"\\/",ONE_CHAR:Zo,QMARK:wr,END_ANCHOR:Zi,DOTS_SLASH:es,NO_DOT:eu,NO_DOTS:tu,NO_DOT_SLASH:iu,NO_DOTS_SLASH:su,QMARK_NO_DOT:ru,STAR:au,START_ANCHOR:_r,SEP:nu},ou={...Ar,SLASH_LITERAL:"[\\\\/]",QMARK:Cr,STAR:`${Cr}*?`,DOTS_SLASH:"\\.{1,2}(?:[\\\\/]|$)",NO_DOT:"(?!\\.)",NO_DOTS:"(?!(?:^|[\\\\/])\\.{1,2}(?:[\\\\/]|$))",NO_DOT_SLASH:"(?!\\.{0,1}(?:[\\\\/]|$))",NO_DOTS_SLASH:"(?!\\.{1,2}(?:[\\\\/]|$))",QMARK_NO_DOT:"[^.\\\\/]",START_ANCHOR:"(?:^|[\\\\/])",END_ANCHOR:"(?:[\\\\/]|$)",SEP:"\\"},uu={alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};Er.exports={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:uu,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{__proto__:null,"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,extglobChars(e){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(e){return e===!0?ou:Ar}}});var Xt=ot(Be=>{"use strict";var{REGEX_BACKSLASH:hu,REGEX_REMOVE_BACKSLASH:cu,REGEX_SPECIAL_CHARS:lu,REGEX_SPECIAL_CHARS_GLOBAL:pu}=Kt();Be.isObject=e=>e!==null&&typeof e=="object"&&!Array.isArray(e);Be.hasRegexChars=e=>lu.test(e);Be.isRegexChar=e=>e.length===1&&Be.hasRegexChars(e);Be.escapeRegex=e=>e.replace(pu,"\\$1");Be.toPosixSlashes=e=>e.replace(hu,"/");Be.isWindows=()=>{if(typeof navigator<"u"&&navigator.platform){let e=navigator.platform.toLowerCase();return e==="win32"||e==="windows"}return typeof process<"u"&&process.platform?process.platform==="win32":!1};Be.removeBackslashes=e=>e.replace(cu,t=>t==="\\"?"":t);Be.escapeLast=(e,t,s)=>{let a=e.lastIndexOf(t,s);return a===-1?e:e[a-1]==="\\"?Be.escapeLast(e,t,a-1):`${e.slice(0,a)}\\${e.slice(a)}`};Be.removePrefix=(e,t={})=>{let s=e;return s.startsWith("./")&&(s=s.slice(2),t.prefix="./"),s};Be.wrapOutput=(e,t={},s={})=>{let a=s.contains?"":"^",o=s.contains?"":"$",c=`${a}(?:${e})${o}`;return t.negated===!0&&(c=`(?:^(?!${c}).*$)`),c};Be.basename=(e,{windows:t}={})=>{let s=e.split(t?/[\\/]/:"/"),a=s[s.length-1];return a===""?s[s.length-2]:a}});var Or=ot((Ll,Rr)=>{"use strict";var kr=Xt(),{CHAR_ASTERISK:ts,CHAR_AT:fu,CHAR_BACKWARD_SLASH:Jt,CHAR_COMMA:du,CHAR_DOT:is,CHAR_EXCLAMATION_MARK:ss,CHAR_FORWARD_SLASH:Lr,CHAR_LEFT_CURLY_BRACE:rs,CHAR_LEFT_PARENTHESES:as,CHAR_LEFT_SQUARE_BRACKET:mu,CHAR_PLUS:xu,CHAR_QUESTION_MARK:Tr,CHAR_RIGHT_CURLY_BRACE:yu,CHAR_RIGHT_PARENTHESES:Pr,CHAR_RIGHT_SQUARE_BRACKET:gu}=Kt(),Ir=e=>e===Lr||e===Jt,Nr=e=>{e.isPrefix!==!0&&(e.depth=e.isGlobstar?1/0:1)},vu=(e,t)=>{let s=t||{},a=e.length-1,o=s.parts===!0||s.scanToEnd===!0,c=[],p=[],g=[],b=e,l=-1,_=0,E=0,D=!1,w=!1,k=!1,B=!1,V=!1,G=!1,Q=!1,$=!1,m=!1,ae=!1,K=0,ne,X,Z={value:"",depth:0,isGlob:!1},M=()=>l>=a,j=()=>b.charCodeAt(l+1),he=()=>(ne=X,b.charCodeAt(++l));for(;l<a;){X=he();let r;if(X===Jt){Q=Z.backslashes=!0,X=he(),X===rs&&(G=!0);continue}if(G===!0||X===rs){for(K++;M()!==!0&&(X=he());){if(X===Jt){Q=Z.backslashes=!0,he();continue}if(X===rs){K++;continue}if(G!==!0&&X===is&&(X=he())===is){if(D=Z.isBrace=!0,k=Z.isGlob=!0,ae=!0,o===!0)continue;break}if(G!==!0&&X===du){if(D=Z.isBrace=!0,k=Z.isGlob=!0,ae=!0,o===!0)continue;break}if(X===yu&&(K--,K===0)){G=!1,D=Z.isBrace=!0,ae=!0;break}}if(o===!0)continue;break}if(X===Lr){if(c.push(l),p.push(Z),Z={value:"",depth:0,isGlob:!1},ae===!0)continue;if(ne===is&&l===_+1){_+=2;continue}E=l+1;continue}if(s.noext!==!0&&(X===xu||X===fu||X===ts||X===Tr||X===ss)===!0&&j()===as){if(k=Z.isGlob=!0,B=Z.isExtglob=!0,ae=!0,X===ss&&l===_&&(m=!0),o===!0){for(;M()!==!0&&(X=he());){if(X===Jt){Q=Z.backslashes=!0,X=he();continue}if(X===Pr){k=Z.isGlob=!0,ae=!0;break}}continue}break}if(X===ts){if(ne===ts&&(V=Z.isGlobstar=!0),k=Z.isGlob=!0,ae=!0,o===!0)continue;break}if(X===Tr){if(k=Z.isGlob=!0,ae=!0,o===!0)continue;break}if(X===mu){for(;M()!==!0&&(r=he());){if(r===Jt){Q=Z.backslashes=!0,he();continue}if(r===gu){w=Z.isBracket=!0,k=Z.isGlob=!0,ae=!0;break}}if(o===!0)continue;break}if(s.nonegate!==!0&&X===ss&&l===_){$=Z.negated=!0,_++;continue}if(s.noparen!==!0&&X===as){if(k=Z.isGlob=!0,o===!0){for(;M()!==!0&&(X=he());){if(X===as){Q=Z.backslashes=!0,X=he();continue}if(X===Pr){ae=!0;break}}continue}break}if(k===!0){if(ae=!0,o===!0)continue;break}}s.noext===!0&&(B=!1,k=!1);let ue=b,O="",I="";_>0&&(O=b.slice(0,_),b=b.slice(_),E-=_),ue&&k===!0&&E>0?(ue=b.slice(0,E),I=b.slice(E)):k===!0?(ue="",I=b):ue=b,ue&&ue!==""&&ue!=="/"&&ue!==b&&Ir(ue.charCodeAt(ue.length-1))&&(ue=ue.slice(0,-1)),s.unescape===!0&&(I&&(I=kr.removeBackslashes(I)),ue&&Q===!0&&(ue=kr.removeBackslashes(ue)));let S={prefix:O,input:e,start:_,base:ue,glob:I,isBrace:D,isBracket:w,isGlob:k,isExtglob:B,isGlobstar:V,negated:$,negatedExtglob:m};if(s.tokens===!0&&(S.maxDepth=0,Ir(X)||p.push(Z),S.tokens=p),s.parts===!0||s.tokens===!0){let r;for(let u=0;u<c.length;u++){let d=r?r+1:_,y=c[u],C=e.slice(d,y);s.tokens&&(u===0&&_!==0?(p[u].isPrefix=!0,p[u].value=O):p[u].value=C,Nr(p[u]),S.maxDepth+=p[u].depth),(u!==0||C!=="")&&g.push(C),r=y}if(r&&r+1<e.length){let u=e.slice(r+1);g.push(u),s.tokens&&(p[p.length-1].value=u,Nr(p[p.length-1]),S.maxDepth+=p[p.length-1].depth)}S.slashes=c,S.parts=g}return S};Rr.exports=vu});var Dr=ot((Rl,Vr)=>{"use strict";var bi=Kt(),it=Xt(),{MAX_LENGTH:Si,POSIX_REGEX_SOURCE:bu,REGEX_NON_SPECIAL_CHARS:Su,REGEX_SPECIAL_CHARS_BACKREF:Cu,REPLACEMENTS:Mr}=bi,wu=(e,t)=>{if(typeof t.expandRange=="function")return t.expandRange(...e,t);e.sort();let s=`[${e.join("-")}]`;try{new RegExp(s)}catch{return e.map(o=>it.escapeRegex(o)).join("..")}return s},Lt=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,ns=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");e=Mr[e]||e;let s={...t},a=typeof s.maxLength=="number"?Math.min(Si,s.maxLength):Si,o=e.length;if(o>a)throw new SyntaxError(`Input length: ${o}, exceeds maximum allowed length: ${a}`);let c={type:"bos",value:"",output:s.prepend||""},p=[c],g=s.capture?"":"?:",b=bi.globChars(s.windows),l=bi.extglobChars(b),{DOT_LITERAL:_,PLUS_LITERAL:E,SLASH_LITERAL:D,ONE_CHAR:w,DOTS_SLASH:k,NO_DOT:B,NO_DOT_SLASH:V,NO_DOTS_SLASH:G,QMARK:Q,QMARK_NO_DOT:$,STAR:m,START_ANCHOR:ae}=b,K=F=>`(${g}(?:(?!${ae}${F.dot?k:_}).)*?)`,ne=s.dot?"":B,X=s.dot?Q:$,Z=s.bash===!0?K(s):m;s.capture&&(Z=`(${Z})`),typeof s.noext=="boolean"&&(s.noextglob=s.noext);let M={input:e,index:-1,start:0,dot:s.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:p};e=it.removePrefix(e,M),o=e.length;let j=[],he=[],ue=[],O=c,I,S=()=>M.index===o-1,r=M.peek=(F=1)=>e[M.index+F],u=M.advance=()=>e[++M.index]||"",d=()=>e.slice(M.index+1),y=(F="",q=0)=>{M.consumed+=F,M.index+=q},C=F=>{M.output+=F.output!=null?F.output:F.value,y(F.value)},A=()=>{let F=1;for(;r()==="!"&&(r(2)!=="("||r(3)==="?");)u(),M.start++,F++;return F%2===0?!1:(M.negated=!0,M.start++,!0)},T=F=>{M[F]++,ue.push(F)},L=F=>{M[F]--,ue.pop()},N=F=>{if(O.type==="globstar"){let q=M.braces>0&&(F.type==="comma"||F.type==="brace"),U=F.extglob===!0||j.length&&(F.type==="pipe"||F.type==="paren");F.type!=="slash"&&F.type!=="paren"&&!q&&!U&&(M.output=M.output.slice(0,-O.output.length),O.type="star",O.value="*",O.output=Z,M.output+=O.output)}if(j.length&&F.type!=="paren"&&(j[j.length-1].inner+=F.value),(F.value||F.output)&&C(F),O&&O.type==="text"&&F.type==="text"){O.output=(O.output||O.value)+F.value,O.value+=F.value;return}F.prev=O,p.push(F),O=F},W=(F,q)=>{let U={...l[q],conditions:1,inner:""};U.prev=O,U.parens=M.parens,U.output=M.output;let Y=(s.capture?"(":"")+U.open;T("parens"),N({type:F,value:q,output:M.output?"":w}),N({type:"paren",extglob:!0,value:u(),output:Y}),j.push(U)},J=F=>{let q=F.close+(s.capture?")":""),U;if(F.type==="negate"){let Y=Z;if(F.inner&&F.inner.length>1&&F.inner.includes("/")&&(Y=K(s)),(Y!==Z||S()||/^\)+$/.test(d()))&&(q=F.close=`)$))${Y}`),F.inner.includes("*")&&(U=d())&&/^\.[^\\/.]+$/.test(U)){let oe=ns(U,{...t,fastpaths:!1}).output;q=F.close=`)${oe})${Y})`}F.prev.type==="bos"&&(M.negatedExtglob=!0)}N({type:"paren",extglob:!0,value:I,output:q}),L("parens")};if(s.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(e)){let F=!1,q=e.replace(Cu,(U,Y,oe,de,ge,ke)=>de==="\\"?(F=!0,U):de==="?"?Y?Y+de+(ge?Q.repeat(ge.length):""):ke===0?X+(ge?Q.repeat(ge.length):""):Q.repeat(oe.length):de==="."?_.repeat(oe.length):de==="*"?Y?Y+de+(ge?Z:""):Z:Y?U:`\\${U}`);return F===!0&&(s.unescape===!0?q=q.replace(/\\/g,""):q=q.replace(/\\+/g,U=>U.length%2===0?"\\\\":U?"\\":"")),q===e&&s.contains===!0?(M.output=e,M):(M.output=it.wrapOutput(q,M,t),M)}for(;!S();){if(I=u(),I==="\0")continue;if(I==="\\"){let U=r();if(U==="/"&&s.bash!==!0||U==="."||U===";")continue;if(!U){I+="\\",N({type:"text",value:I});continue}let Y=/^\\+/.exec(d()),oe=0;if(Y&&Y[0].length>2&&(oe=Y[0].length,M.index+=oe,oe%2!==0&&(I+="\\")),s.unescape===!0?I=u():I+=u(),M.brackets===0){N({type:"text",value:I});continue}}if(M.brackets>0&&(I!=="]"||O.value==="["||O.value==="[^")){if(s.posix!==!1&&I===":"){let U=O.value.slice(1);if(U.includes("[")&&(O.posix=!0,U.includes(":"))){let Y=O.value.lastIndexOf("["),oe=O.value.slice(0,Y),de=O.value.slice(Y+2),ge=bu[de];if(ge){O.value=oe+ge,M.backtrack=!0,u(),!c.output&&p.indexOf(O)===1&&(c.output=w);continue}}}(I==="["&&r()!==":"||I==="-"&&r()==="]")&&(I=`\\${I}`),I==="]"&&(O.value==="["||O.value==="[^")&&(I=`\\${I}`),s.posix===!0&&I==="!"&&O.value==="["&&(I="^"),O.value+=I,C({value:I});continue}if(M.quotes===1&&I!=='"'){I=it.escapeRegex(I),O.value+=I,C({value:I});continue}if(I==='"'){M.quotes=M.quotes===1?0:1,s.keepQuotes===!0&&N({type:"text",value:I});continue}if(I==="("){T("parens"),N({type:"paren",value:I});continue}if(I===")"){if(M.parens===0&&s.strictBrackets===!0)throw new SyntaxError(Lt("opening","("));let U=j[j.length-1];if(U&&M.parens===U.parens+1){J(j.pop());continue}N({type:"paren",value:I,output:M.parens?")":"\\)"}),L("parens");continue}if(I==="["){if(s.nobracket===!0||!d().includes("]")){if(s.nobracket!==!0&&s.strictBrackets===!0)throw new SyntaxError(Lt("closing","]"));I=`\\${I}`}else T("brackets");N({type:"bracket",value:I});continue}if(I==="]"){if(s.nobracket===!0||O&&O.type==="bracket"&&O.value.length===1){N({type:"text",value:I,output:`\\${I}`});continue}if(M.brackets===0){if(s.strictBrackets===!0)throw new SyntaxError(Lt("opening","["));N({type:"text",value:I,output:`\\${I}`});continue}L("brackets");let U=O.value.slice(1);if(O.posix!==!0&&U[0]==="^"&&!U.includes("/")&&(I=`/${I}`),O.value+=I,C({value:I}),s.literalBrackets===!1||it.hasRegexChars(U))continue;let Y=it.escapeRegex(O.value);if(M.output=M.output.slice(0,-O.value.length),s.literalBrackets===!0){M.output+=Y,O.value=Y;continue}O.value=`(${g}${Y}|${O.value})`,M.output+=O.value;continue}if(I==="{"&&s.nobrace!==!0){T("braces");let U={type:"brace",value:I,output:"(",outputIndex:M.output.length,tokensIndex:M.tokens.length};he.push(U),N(U);continue}if(I==="}"){let U=he[he.length-1];if(s.nobrace===!0||!U){N({type:"text",value:I,output:I});continue}let Y=")";if(U.dots===!0){let oe=p.slice(),de=[];for(let ge=oe.length-1;ge>=0&&(p.pop(),oe[ge].type!=="brace");ge--)oe[ge].type!=="dots"&&de.unshift(oe[ge].value);Y=wu(de,s),M.backtrack=!0}if(U.comma!==!0&&U.dots!==!0){let oe=M.output.slice(0,U.outputIndex),de=M.tokens.slice(U.tokensIndex);U.value=U.output="\\{",I=Y="\\}",M.output=oe;for(let ge of de)M.output+=ge.output||ge.value}N({type:"brace",value:I,output:Y}),L("braces"),he.pop();continue}if(I==="|"){j.length>0&&j[j.length-1].conditions++,N({type:"text",value:I});continue}if(I===","){let U=I,Y=he[he.length-1];Y&&ue[ue.length-1]==="braces"&&(Y.comma=!0,U="|"),N({type:"comma",value:I,output:U});continue}if(I==="/"){if(O.type==="dot"&&M.index===M.start+1){M.start=M.index+1,M.consumed="",M.output="",p.pop(),O=c;continue}N({type:"slash",value:I,output:D});continue}if(I==="."){if(M.braces>0&&O.type==="dot"){O.value==="."&&(O.output=_);let U=he[he.length-1];O.type="dots",O.output+=I,O.value+=I,U.dots=!0;continue}if(M.braces+M.parens===0&&O.type!=="bos"&&O.type!=="slash"){N({type:"text",value:I,output:_});continue}N({type:"dot",value:I,output:_});continue}if(I==="?"){if(!(O&&O.value==="(")&&s.noextglob!==!0&&r()==="("&&r(2)!=="?"){W("qmark",I);continue}if(O&&O.type==="paren"){let Y=r(),oe=I;(O.value==="("&&!/[!=<:]/.test(Y)||Y==="<"&&!/<([!=]|\w+>)/.test(d()))&&(oe=`\\${I}`),N({type:"text",value:I,output:oe});continue}if(s.dot!==!0&&(O.type==="slash"||O.type==="bos")){N({type:"qmark",value:I,output:$});continue}N({type:"qmark",value:I,output:Q});continue}if(I==="!"){if(s.noextglob!==!0&&r()==="("&&(r(2)!=="?"||!/[!=<:]/.test(r(3)))){W("negate",I);continue}if(s.nonegate!==!0&&M.index===0){A();continue}}if(I==="+"){if(s.noextglob!==!0&&r()==="("&&r(2)!=="?"){W("plus",I);continue}if(O&&O.value==="("||s.regex===!1){N({type:"plus",value:I,output:E});continue}if(O&&(O.type==="bracket"||O.type==="paren"||O.type==="brace")||M.parens>0){N({type:"plus",value:I});continue}N({type:"plus",value:E});continue}if(I==="@"){if(s.noextglob!==!0&&r()==="("&&r(2)!=="?"){N({type:"at",extglob:!0,value:I,output:""});continue}N({type:"text",value:I});continue}if(I!=="*"){(I==="$"||I==="^")&&(I=`\\${I}`);let U=Su.exec(d());U&&(I+=U[0],M.index+=U[0].length),N({type:"text",value:I});continue}if(O&&(O.type==="globstar"||O.star===!0)){O.type="star",O.star=!0,O.value+=I,O.output=Z,M.backtrack=!0,M.globstar=!0,y(I);continue}let F=d();if(s.noextglob!==!0&&/^\([^?]/.test(F)){W("star",I);continue}if(O.type==="star"){if(s.noglobstar===!0){y(I);continue}let U=O.prev,Y=U.prev,oe=U.type==="slash"||U.type==="bos",de=Y&&(Y.type==="star"||Y.type==="globstar");if(s.bash===!0&&(!oe||F[0]&&F[0]!=="/")){N({type:"star",value:I,output:""});continue}let ge=M.braces>0&&(U.type==="comma"||U.type==="brace"),ke=j.length&&(U.type==="pipe"||U.type==="paren");if(!oe&&U.type!=="paren"&&!ge&&!ke){N({type:"star",value:I,output:""});continue}for(;F.slice(0,3)==="/**";){let Ie=e[M.index+4];if(Ie&&Ie!=="/")break;F=F.slice(3),y("/**",3)}if(U.type==="bos"&&S()){O.type="globstar",O.value+=I,O.output=K(s),M.output=O.output,M.globstar=!0,y(I);continue}if(U.type==="slash"&&U.prev.type!=="bos"&&!de&&S()){M.output=M.output.slice(0,-(U.output+O.output).length),U.output=`(?:${U.output}`,O.type="globstar",O.output=K(s)+(s.strictSlashes?")":"|$)"),O.value+=I,M.globstar=!0,M.output+=U.output+O.output,y(I);continue}if(U.type==="slash"&&U.prev.type!=="bos"&&F[0]==="/"){let Ie=F[1]!==void 0?"|$":"";M.output=M.output.slice(0,-(U.output+O.output).length),U.output=`(?:${U.output}`,O.type="globstar",O.output=`${K(s)}${D}|${D}${Ie})`,O.value+=I,M.output+=U.output+O.output,M.globstar=!0,y(I+u()),N({type:"slash",value:"/",output:""});continue}if(U.type==="bos"&&F[0]==="/"){O.type="globstar",O.value+=I,O.output=`(?:^|${D}|${K(s)}${D})`,M.output=O.output,M.globstar=!0,y(I+u()),N({type:"slash",value:"/",output:""});continue}M.output=M.output.slice(0,-O.output.length),O.type="globstar",O.output=K(s),O.value+=I,M.output+=O.output,M.globstar=!0,y(I);continue}let q={type:"star",value:I,output:Z};if(s.bash===!0){q.output=".*?",(O.type==="bos"||O.type==="slash")&&(q.output=ne+q.output),N(q);continue}if(O&&(O.type==="bracket"||O.type==="paren")&&s.regex===!0){q.output=I,N(q);continue}(M.index===M.start||O.type==="slash"||O.type==="dot")&&(O.type==="dot"?(M.output+=V,O.output+=V):s.dot===!0?(M.output+=G,O.output+=G):(M.output+=ne,O.output+=ne),r()!=="*"&&(M.output+=w,O.output+=w)),N(q)}for(;M.brackets>0;){if(s.strictBrackets===!0)throw new SyntaxError(Lt("closing","]"));M.output=it.escapeLast(M.output,"["),L("brackets")}for(;M.parens>0;){if(s.strictBrackets===!0)throw new SyntaxError(Lt("closing",")"));M.output=it.escapeLast(M.output,"("),L("parens")}for(;M.braces>0;){if(s.strictBrackets===!0)throw new SyntaxError(Lt("closing","}"));M.output=it.escapeLast(M.output,"{"),L("braces")}if(s.strictSlashes!==!0&&(O.type==="star"||O.type==="bracket")&&N({type:"maybe_slash",value:"",output:`${D}?`}),M.backtrack===!0){M.output="";for(let F of M.tokens)M.output+=F.output!=null?F.output:F.value,F.suffix&&(M.output+=F.suffix)}return M};ns.fastpaths=(e,t)=>{let s={...t},a=typeof s.maxLength=="number"?Math.min(Si,s.maxLength):Si,o=e.length;if(o>a)throw new SyntaxError(`Input length: ${o}, exceeds maximum allowed length: ${a}`);e=Mr[e]||e;let{DOT_LITERAL:c,SLASH_LITERAL:p,ONE_CHAR:g,DOTS_SLASH:b,NO_DOT:l,NO_DOTS:_,NO_DOTS_SLASH:E,STAR:D,START_ANCHOR:w}=bi.globChars(s.windows),k=s.dot?_:l,B=s.dot?E:l,V=s.capture?"":"?:",G={negated:!1,prefix:""},Q=s.bash===!0?".*?":D;s.capture&&(Q=`(${Q})`);let $=ne=>ne.noglobstar===!0?Q:`(${V}(?:(?!${w}${ne.dot?b:c}).)*?)`,m=ne=>{switch(ne){case"*":return`${k}${g}${Q}`;case".*":return`${c}${g}${Q}`;case"*.*":return`${k}${Q}${c}${g}${Q}`;case"*/*":return`${k}${Q}${p}${g}${B}${Q}`;case"**":return k+$(s);case"**/*":return`(?:${k}${$(s)}${p})?${B}${g}${Q}`;case"**/*.*":return`(?:${k}${$(s)}${p})?${B}${Q}${c}${g}${Q}`;case"**/.*":return`(?:${k}${$(s)}${p})?${c}${g}${Q}`;default:{let X=/^(.*?)\.(\w+)$/.exec(ne);if(!X)return;let Z=m(X[1]);return Z?Z+c+X[2]:void 0}}},ae=it.removePrefix(e,G),K=m(ae);return K&&s.strictSlashes!==!0&&(K+=`${p}?`),K};Vr.exports=ns});var jr=ot((Ol,Fr)=>{"use strict";var _u=Or(),os=Dr(),Br=Xt(),Au=Kt(),Eu=e=>e&&typeof e=="object"&&!Array.isArray(e),Ee=(e,t,s=!1)=>{if(Array.isArray(e)){let _=e.map(D=>Ee(D,t,s));return D=>{for(let w of _){let k=w(D);if(k)return k}return!1}}let a=Eu(e)&&e.tokens&&e.input;if(e===""||typeof e!="string"&&!a)throw new TypeError("Expected pattern to be a non-empty string");let o=t||{},c=o.windows,p=a?Ee.compileRe(e,t):Ee.makeRe(e,t,!1,!0),g=p.state;delete p.state;let b=()=>!1;if(o.ignore){let _={...t,ignore:null,onMatch:null,onResult:null};b=Ee(o.ignore,_,s)}let l=(_,E=!1)=>{let{isMatch:D,match:w,output:k}=Ee.test(_,p,t,{glob:e,posix:c}),B={glob:e,state:g,regex:p,posix:c,input:_,output:k,match:w,isMatch:D};return typeof o.onResult=="function"&&o.onResult(B),D===!1?(B.isMatch=!1,E?B:!1):b(_)?(typeof o.onIgnore=="function"&&o.onIgnore(B),B.isMatch=!1,E?B:!1):(typeof o.onMatch=="function"&&o.onMatch(B),E?B:!0)};return s&&(l.state=g),l};Ee.test=(e,t,s,{glob:a,posix:o}={})=>{if(typeof e!="string")throw new TypeError("Expected input to be a string");if(e==="")return{isMatch:!1,output:""};let c=s||{},p=c.format||(o?Br.toPosixSlashes:null),g=e===a,b=g&&p?p(e):e;return g===!1&&(b=p?p(e):e,g=b===a),(g===!1||c.capture===!0)&&(c.matchBase===!0||c.basename===!0?g=Ee.matchBase(e,t,s,o):g=t.exec(b)),{isMatch:!!g,match:g,output:b}};Ee.matchBase=(e,t,s)=>(t instanceof RegExp?t:Ee.makeRe(t,s)).test(Br.basename(e));Ee.isMatch=(e,t,s)=>Ee(t,s)(e);Ee.parse=(e,t)=>Array.isArray(e)?e.map(s=>Ee.parse(s,t)):os(e,{...t,fastpaths:!1});Ee.scan=(e,t)=>_u(e,t);Ee.compileRe=(e,t,s=!1,a=!1)=>{if(s===!0)return e.output;let o=t||{},c=o.contains?"":"^",p=o.contains?"":"$",g=`${c}(?:${e.output})${p}`;e&&e.negated===!0&&(g=`^(?!${g}).*$`);let b=Ee.toRegex(g,t);return a===!0&&(b.state=e),b};Ee.makeRe=(e,t={},s=!1,a=!1)=>{if(!e||typeof e!="string")throw new TypeError("Expected a non-empty string");let o={negated:!1,fastpaths:!0};return t.fastpaths!==!1&&(e[0]==="."||e[0]==="*")&&(o.output=os.fastpaths(e,t)),o.output||(o=os(e,t)),Ee.compileRe(o,t,s,a)};Ee.toRegex=(e,t)=>{try{let s=t||{};return new RegExp(e,s.flags||(s.nocase?"i":""))}catch(s){if(t&&t.debug===!0)throw s;return/$^/}};Ee.constants=Au;Fr.exports=Ee});var Wr=ot((Ml,qr)=>{"use strict";var Ur=jr(),ku=Xt();function Hr(e,t,s=!1){return t&&(t.windows===null||t.windows===void 0)&&(t={...t,windows:ku.isWindows()}),Ur(e,t,s)}Object.assign(Hr,Ur);qr.exports=Hr});var Gn=ot((yp,Wn)=>{"use strict";Wn.exports={quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",frac34:"\xBE",iquest:"\xBF",Agrave:"\xC0",Aacute:"\xC1",Acirc:"\xC2",Atilde:"\xC3",Auml:"\xC4",Aring:"\xC5",AElig:"\xC6",Ccedil:"\xC7",Egrave:"\xC8",Eacute:"\xC9",Ecirc:"\xCA",Euml:"\xCB",Igrave:"\xCC",Iacute:"\xCD",Icirc:"\xCE",Iuml:"\xCF",ETH:"\xD0",Ntilde:"\xD1",Ograve:"\xD2",Oacute:"\xD3",Ocirc:"\xD4",Otilde:"\xD5",Ouml:"\xD6",times:"\xD7",Oslash:"\xD8",Ugrave:"\xD9",Uacute:"\xDA",Ucirc:"\xDB",Uuml:"\xDC",Yacute:"\xDD",THORN:"\xDE",szlig:"\xDF",agrave:"\xE0",aacute:"\xE1",acirc:"\xE2",atilde:"\xE3",auml:"\xE4",aring:"\xE5",aelig:"\xE6",ccedil:"\xE7",egrave:"\xE8",eacute:"\xE9",ecirc:"\xEA",euml:"\xEB",igrave:"\xEC",iacute:"\xED",icirc:"\xEE",iuml:"\xEF",eth:"\xF0",ntilde:"\xF1",ograve:"\xF2",oacute:"\xF3",ocirc:"\xF4",otilde:"\xF5",ouml:"\xF6",divide:"\xF7",oslash:"\xF8",ugrave:"\xF9",uacute:"\xFA",ucirc:"\xFB",uuml:"\xFC",yacute:"\xFD",thorn:"\xFE",yuml:"\xFF",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",fnof:"\u0192",circ:"\u02C6",tilde:"\u02DC",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039A",Lambda:"\u039B",Mu:"\u039C",Nu:"\u039D",Xi:"\u039E",Omicron:"\u039F",Pi:"\u03A0",Rho:"\u03A1",Sigma:"\u03A3",Tau:"\u03A4",Upsilon:"\u03A5",Phi:"\u03A6",Chi:"\u03A7",Psi:"\u03A8",Omega:"\u03A9",alpha:"\u03B1",beta:"\u03B2",gamma:"\u03B3",delta:"\u03B4",epsilon:"\u03B5",zeta:"\u03B6",eta:"\u03B7",theta:"\u03B8",iota:"\u03B9",kappa:"\u03BA",lambda:"\u03BB",mu:"\u03BC",nu:"\u03BD",xi:"\u03BE",omicron:"\u03BF",pi:"\u03C0",rho:"\u03C1",sigmaf:"\u03C2",sigma:"\u03C3",tau:"\u03C4",upsilon:"\u03C5",phi:"\u03C6",chi:"\u03C7",psi:"\u03C8",omega:"\u03C9",thetasym:"\u03D1",upsih:"\u03D2",piv:"\u03D6",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200C",zwj:"\u200D",lrm:"\u200E",rlm:"\u200F",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201A",ldquo:"\u201C",rdquo:"\u201D",bdquo:"\u201E",dagger:"\u2020",Dagger:"\u2021",bull:"\u2022",hellip:"\u2026",permil:"\u2030",prime:"\u2032",Prime:"\u2033",lsaquo:"\u2039",rsaquo:"\u203A",oline:"\u203E",frasl:"\u2044",euro:"\u20AC",image:"\u2111",weierp:"\u2118",real:"\u211C",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21B5",lArr:"\u21D0",uArr:"\u21D1",rArr:"\u21D2",dArr:"\u21D3",hArr:"\u21D4",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220B",prod:"\u220F",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221A",prop:"\u221D",infin:"\u221E",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222A",int:"\u222B",there4:"\u2234",sim:"\u223C",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22A5",sdot:"\u22C5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230A",rfloor:"\u230B",lang:"\u2329",rang:"\u232A",loz:"\u25CA",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666"}});var Ms=ot((qi,$n)=>{"use strict";(function(e,t){typeof qi=="object"&&typeof $n<"u"?t(qi):typeof define=="function"&&define.amd?define(["exports"],t):(e=typeof globalThis<"u"?globalThis:e||self,t(e.acorn={}))})(qi,(function(e){"use strict";var t=[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,78,5,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,199,7,137,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,55,9,266,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,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239],s=[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,7,25,39,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,5,57,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,24,43,261,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,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7381,42,31,98,114,8702,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,208,30,2,2,2,1,2,6,3,4,10,1,225,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,4381,3,5773,3,7472,16,621,2467,541,1507,4938,6,8489],a="\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-\u1ADD\u1AE0-\u1AEB\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",o="\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-\u088F\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\u0C5C\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDC-\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-\uA7DC\uA7F1-\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",c={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"},p="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",g={5:p,"5module":p+" export import",6:p+" const class extends export import super"},b=/^in(stanceof)?$/,l=new RegExp("["+o+"]"),_=new RegExp("["+o+a+"]");function E(i,n){for(var h=65536,f=0;f<n.length;f+=2){if(h+=n[f],h>i)return!1;if(h+=n[f+1],h>=i)return!0}return!1}function D(i,n){return i<65?i===36:i<91?!0:i<97?i===95:i<123?!0:i<=65535?i>=170&&l.test(String.fromCharCode(i)):n===!1?!1:E(i,s)}function w(i,n){return i<48?i===36:i<58?!0:i<65?!1:i<91?!0:i<97?i===95:i<123?!0:i<=65535?i>=170&&_.test(String.fromCharCode(i)):n===!1?!1:E(i,s)||E(i,t)}var k=function(n,h){h===void 0&&(h={}),this.label=n,this.keyword=h.keyword,this.beforeExpr=!!h.beforeExpr,this.startsExpr=!!h.startsExpr,this.isLoop=!!h.isLoop,this.isAssign=!!h.isAssign,this.prefix=!!h.prefix,this.postfix=!!h.postfix,this.binop=h.binop||null,this.updateContext=null};function B(i,n){return new k(i,{beforeExpr:!0,binop:n})}var V={beforeExpr:!0},G={startsExpr:!0},Q={};function $(i,n){return n===void 0&&(n={}),n.keyword=i,Q[i]=new k(i,n)}var m={num:new k("num",G),regexp:new k("regexp",G),string:new k("string",G),name:new k("name",G),privateId:new k("privateId",G),eof:new k("eof"),bracketL:new k("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new k("]"),braceL:new k("{",{beforeExpr:!0,startsExpr:!0}),braceR:new k("}"),parenL:new k("(",{beforeExpr:!0,startsExpr:!0}),parenR:new k(")"),comma:new k(",",V),semi:new k(";",V),colon:new k(":",V),dot:new k("."),question:new k("?",V),questionDot:new k("?."),arrow:new k("=>",V),template:new k("template"),invalidTemplate:new k("invalidTemplate"),ellipsis:new k("...",V),backQuote:new k("`",G),dollarBraceL:new k("${",{beforeExpr:!0,startsExpr:!0}),eq:new k("=",{beforeExpr:!0,isAssign:!0}),assign:new k("_=",{beforeExpr:!0,isAssign:!0}),incDec:new k("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new k("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:B("||",1),logicalAND:B("&&",2),bitwiseOR:B("|",3),bitwiseXOR:B("^",4),bitwiseAND:B("&",5),equality:B("==/!=/===/!==",6),relational:B("</>/<=/>=",7),bitShift:B("<</>>/>>>",8),plusMin:new k("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:B("%",10),star:B("*",10),slash:B("/",10),starstar:new k("**",{beforeExpr:!0}),coalesce:B("??",1),_break:$("break"),_case:$("case",V),_catch:$("catch"),_continue:$("continue"),_debugger:$("debugger"),_default:$("default",V),_do:$("do",{isLoop:!0,beforeExpr:!0}),_else:$("else",V),_finally:$("finally"),_for:$("for",{isLoop:!0}),_function:$("function",G),_if:$("if"),_return:$("return",V),_switch:$("switch"),_throw:$("throw",V),_try:$("try"),_var:$("var"),_const:$("const"),_while:$("while",{isLoop:!0}),_with:$("with"),_new:$("new",{beforeExpr:!0,startsExpr:!0}),_this:$("this",G),_super:$("super",G),_class:$("class",G),_extends:$("extends",V),_export:$("export"),_import:$("import",G),_null:$("null",G),_true:$("true",G),_false:$("false",G),_in:$("in",{beforeExpr:!0,binop:7}),_instanceof:$("instanceof",{beforeExpr:!0,binop:7}),_typeof:$("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:$("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:$("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},ae=/\r\n?|\n|\u2028|\u2029/,K=new RegExp(ae.source,"g");function ne(i){return i===10||i===13||i===8232||i===8233}function X(i,n,h){h===void 0&&(h=i.length);for(var f=n;f<h;f++){var v=i.charCodeAt(f);if(ne(v))return f<h-1&&v===13&&i.charCodeAt(f+1)===10?f+2:f+1}return-1}var Z=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,M=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,j=Object.prototype,he=j.hasOwnProperty,ue=j.toString,O=Object.hasOwn||(function(i,n){return he.call(i,n)}),I=Array.isArray||(function(i){return ue.call(i)==="[object Array]"}),S=Object.create(null);function r(i){return S[i]||(S[i]=new RegExp("^(?:"+i.replace(/ /g,"|")+")$"))}function u(i){return i<=65535?String.fromCharCode(i):(i-=65536,String.fromCharCode((i>>10)+55296,(i&1023)+56320))}var d=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,y=function(n,h){this.line=n,this.column=h};y.prototype.offset=function(n){return new y(this.line,this.column+n)};var C=function(n,h,f){this.start=h,this.end=f,n.sourceFile!==null&&(this.source=n.sourceFile)};function A(i,n){for(var h=1,f=0;;){var v=X(i,f,n);if(v<0)return new y(h,n-f);++h,f=v}}var T={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},L=!1;function N(i){var n={};for(var h in T)n[h]=i&&O(i,h)?i[h]:T[h];if(n.ecmaVersion==="latest"?n.ecmaVersion=1e8:n.ecmaVersion==null?(!L&&typeof console=="object"&&console.warn&&(L=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
2
+ Defaulting to 2020, but this will stop working in the future.`)),n.ecmaVersion=11):n.ecmaVersion>=2015&&(n.ecmaVersion-=2009),n.allowReserved==null&&(n.allowReserved=n.ecmaVersion<5),(!i||i.allowHashBang==null)&&(n.allowHashBang=n.ecmaVersion>=14),I(n.onToken)){var f=n.onToken;n.onToken=function(v){return f.push(v)}}if(I(n.onComment)&&(n.onComment=W(n,n.onComment)),n.sourceType==="commonjs"&&n.allowAwaitOutsideFunction)throw new Error("Cannot use allowAwaitOutsideFunction with sourceType: commonjs");return n}function W(i,n){return function(h,f,v,P,R,H){var z={type:h?"Block":"Line",value:f,start:v,end:P};i.locations&&(z.loc=new C(this,R,H)),i.ranges&&(z.range=[v,P]),n.push(z)}}var J=1,F=2,q=4,U=8,Y=16,oe=32,de=64,ge=128,ke=256,Ie=512,ft=1024,je=J|F|ke;function kt(i,n){return F|(i?q:0)|(n?U:0)}var at=0,bt=1,qe=2,St=3,Ut=4,Ht=5,be=function(n,h,f){this.options=n=N(n),this.sourceFile=n.sourceFile,this.keywords=r(g[n.ecmaVersion>=6?6:n.sourceType==="module"?"5module":5]);var v="";n.allowReserved!==!0&&(v=c[n.ecmaVersion>=6?6:n.ecmaVersion===5?5:3],n.sourceType==="module"&&(v+=" await")),this.reservedWords=r(v);var P=(v?v+" ":"")+c.strict;this.reservedWordsStrict=r(P),this.reservedWordsStrictBind=r(P+" "+c.strictBind),this.input=String(h),this.containsEsc=!1,f?(this.pos=f,this.lineStart=this.input.lastIndexOf(`
3
+ `,f-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(ae).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=m.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=n.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&&n.allowHashBang&&this.input.slice(0,2)==="#!"&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(this.options.sourceType==="commonjs"?F:J),this.regexpState=null,this.privateNameStack=[]},Ne={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowReturn:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},allowUsing:{configurable:!0},inClassStaticBlock:{configurable:!0}};be.prototype.parse=function(){var n=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(n)},Ne.inFunction.get=function(){return(this.currentVarScope().flags&F)>0},Ne.inGenerator.get=function(){return(this.currentVarScope().flags&U)>0},Ne.inAsync.get=function(){return(this.currentVarScope().flags&q)>0},Ne.canAwait.get=function(){for(var i=this.scopeStack.length-1;i>=0;i--){var n=this.scopeStack[i],h=n.flags;if(h&(ke|Ie))return!1;if(h&F)return(h&q)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},Ne.allowReturn.get=function(){return!!(this.inFunction||this.options.allowReturnOutsideFunction&&this.currentVarScope().flags&J)},Ne.allowSuper.get=function(){var i=this.currentThisScope(),n=i.flags;return(n&de)>0||this.options.allowSuperOutsideMethod},Ne.allowDirectSuper.get=function(){return(this.currentThisScope().flags&ge)>0},Ne.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},Ne.allowNewDotTarget.get=function(){for(var i=this.scopeStack.length-1;i>=0;i--){var n=this.scopeStack[i],h=n.flags;if(h&(ke|Ie)||h&F&&!(h&Y))return!0}return!1},Ne.allowUsing.get=function(){var i=this.currentScope(),n=i.flags;return!(n&ft||!this.inModule&&n&J)},Ne.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&ke)>0},be.extend=function(){for(var n=[],h=arguments.length;h--;)n[h]=arguments[h];for(var f=this,v=0;v<n.length;v++)f=n[v](f);return f},be.parse=function(n,h){return new this(h,n).parse()},be.parseExpressionAt=function(n,h,f){var v=new this(f,n,h);return v.nextToken(),v.parseExpression()},be.tokenizer=function(n,h){return new this(h,n)},Object.defineProperties(be.prototype,Ne);var Pe=be.prototype,qt=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;Pe.strictDirective=function(i){if(this.options.ecmaVersion<5)return!1;for(;;){M.lastIndex=i,i+=M.exec(this.input)[0].length;var n=qt.exec(this.input.slice(i));if(!n)return!1;if((n[1]||n[2])==="use strict"){M.lastIndex=i+n[0].length;var h=M.exec(this.input),f=h.index+h[0].length,v=this.input.charAt(f);return v===";"||v==="}"||ae.test(h[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(v)||v==="!"&&this.input.charAt(f+1)==="=")}i+=n[0].length,M.lastIndex=i,i+=M.exec(this.input)[0].length,this.input[i]===";"&&i++}},Pe.eat=function(i){return this.type===i?(this.next(),!0):!1},Pe.isContextual=function(i){return this.type===m.name&&this.value===i&&!this.containsEsc},Pe.eatContextual=function(i){return this.isContextual(i)?(this.next(),!0):!1},Pe.expectContextual=function(i){this.eatContextual(i)||this.unexpected()},Pe.canInsertSemicolon=function(){return this.type===m.eof||this.type===m.braceR||ae.test(this.input.slice(this.lastTokEnd,this.start))},Pe.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},Pe.semicolon=function(){!this.eat(m.semi)&&!this.insertSemicolon()&&this.unexpected()},Pe.afterTrailingComma=function(i,n){if(this.type===i)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),n||this.next(),!0},Pe.expect=function(i){this.eat(i)||this.unexpected()},Pe.unexpected=function(i){this.raise(i??this.start,"Unexpected token")};var pi=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};Pe.checkPatternErrors=function(i,n){if(i){i.trailingComma>-1&&this.raiseRecoverable(i.trailingComma,"Comma is not permitted after the rest element");var h=n?i.parenthesizedAssign:i.parenthesizedBind;h>-1&&this.raiseRecoverable(h,n?"Assigning to rvalue":"Parenthesized pattern")}},Pe.checkExpressionErrors=function(i,n){if(!i)return!1;var h=i.shorthandAssign,f=i.doubleProto;if(!n)return h>=0||f>=0;h>=0&&this.raise(h,"Shorthand property assignments are valid only in destructuring patterns"),f>=0&&this.raiseRecoverable(f,"Redefinition of __proto__ property")},Pe.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")},Pe.isSimpleAssignTarget=function(i){return i.type==="ParenthesizedExpression"?this.isSimpleAssignTarget(i.expression):i.type==="Identifier"||i.type==="MemberExpression"};var ie=be.prototype;ie.parseTopLevel=function(i){var n=Object.create(null);for(i.body||(i.body=[]);this.type!==m.eof;){var h=this.parseStatement(null,!0,n);i.body.push(h)}if(this.inModule)for(var f=0,v=Object.keys(this.undefinedExports);f<v.length;f+=1){var P=v[f];this.raiseRecoverable(this.undefinedExports[P].start,"Export '"+P+"' is not defined")}return this.adaptDirectivePrologue(i.body),this.next(),i.sourceType=this.options.sourceType==="commonjs"?"script":this.options.sourceType,this.finishNode(i,"Program")};var Xi={kind:"loop"},vo={kind:"switch"};ie.isLet=function(i){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;M.lastIndex=this.pos;var n=M.exec(this.input),h=this.pos+n[0].length,f=this.fullCharCodeAt(h);if(f===91||f===92)return!0;if(i)return!1;if(f===123)return!0;if(D(f)){var v=h;do h+=f<=65535?1:2;while(w(f=this.fullCharCodeAt(h)));if(f===92)return!0;var P=this.input.slice(v,h);if(!b.test(P))return!0}return!1},ie.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;M.lastIndex=this.pos;var i=M.exec(this.input),n=this.pos+i[0].length,h;return!ae.test(this.input.slice(this.pos,n))&&this.input.slice(n,n+8)==="function"&&(n+8===this.input.length||!(w(h=this.fullCharCodeAt(n+8))||h===92))},ie.isUsingKeyword=function(i,n){if(this.options.ecmaVersion<17||!this.isContextual(i?"await":"using"))return!1;M.lastIndex=this.pos;var h=M.exec(this.input),f=this.pos+h[0].length;if(ae.test(this.input.slice(this.pos,f)))return!1;if(i){var v=f+5,P;if(this.input.slice(f,v)!=="using"||v===this.input.length||w(P=this.fullCharCodeAt(v))||P===92)return!1;M.lastIndex=v;var R=M.exec(this.input);if(f=v+R[0].length,R&&ae.test(this.input.slice(v,f)))return!1}var H=this.fullCharCodeAt(f);if(!D(H)&&H!==92)return!1;var z=f;do f+=H<=65535?1:2;while(w(H=this.fullCharCodeAt(f)));if(H===92)return!0;var ce=this.input.slice(z,f);return!(b.test(ce)||n&&ce==="of")},ie.isAwaitUsing=function(i){return this.isUsingKeyword(!0,i)},ie.isUsing=function(i){return this.isUsingKeyword(!1,i)},ie.parseStatement=function(i,n,h){var f=this.type,v=this.startNode(),P;switch(this.isLet(i)&&(f=m._var,P="let"),f){case m._break:case m._continue:return this.parseBreakContinueStatement(v,f.keyword);case m._debugger:return this.parseDebuggerStatement(v);case m._do:return this.parseDoStatement(v);case m._for:return this.parseForStatement(v);case m._function:return i&&(this.strict||i!=="if"&&i!=="label")&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(v,!1,!i);case m._class:return i&&this.unexpected(),this.parseClass(v,!0);case m._if:return this.parseIfStatement(v);case m._return:return this.parseReturnStatement(v);case m._switch:return this.parseSwitchStatement(v);case m._throw:return this.parseThrowStatement(v);case m._try:return this.parseTryStatement(v);case m._const:case m._var:return P=P||this.value,i&&P!=="var"&&this.unexpected(),this.parseVarStatement(v,P);case m._while:return this.parseWhileStatement(v);case m._with:return this.parseWithStatement(v);case m.braceL:return this.parseBlock(!0,v);case m.semi:return this.parseEmptyStatement(v);case m._export:case m._import:if(this.options.ecmaVersion>10&&f===m._import){M.lastIndex=this.pos;var R=M.exec(this.input),H=this.pos+R[0].length,z=this.input.charCodeAt(H);if(z===40||z===46)return this.parseExpressionStatement(v,this.parseExpression())}return this.options.allowImportExportEverywhere||(n||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'")),f===m._import?this.parseImport(v):this.parseExport(v,h);default:if(this.isAsyncFunction())return i&&this.unexpected(),this.next(),this.parseFunctionStatement(v,!0,!i);var ce=this.isAwaitUsing(!1)?"await using":this.isUsing(!1)?"using":null;if(ce)return this.allowUsing||this.raise(this.start,"Using declaration cannot appear in the top level when source type is `script` or in the bare case statement"),ce==="await using"&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.next(),this.parseVar(v,!1,ce),this.semicolon(),this.finishNode(v,"VariableDeclaration");var me=this.value,we=this.parseExpression();return f===m.name&&we.type==="Identifier"&&this.eat(m.colon)?this.parseLabeledStatement(v,me,we,i):this.parseExpressionStatement(v,we)}},ie.parseBreakContinueStatement=function(i,n){var h=n==="break";this.next(),this.eat(m.semi)||this.insertSemicolon()?i.label=null:this.type!==m.name?this.unexpected():(i.label=this.parseIdent(),this.semicolon());for(var f=0;f<this.labels.length;++f){var v=this.labels[f];if((i.label==null||v.name===i.label.name)&&(v.kind!=null&&(h||v.kind==="loop")||i.label&&h))break}return f===this.labels.length&&this.raise(i.start,"Unsyntactic "+n),this.finishNode(i,h?"BreakStatement":"ContinueStatement")},ie.parseDebuggerStatement=function(i){return this.next(),this.semicolon(),this.finishNode(i,"DebuggerStatement")},ie.parseDoStatement=function(i){return this.next(),this.labels.push(Xi),i.body=this.parseStatement("do"),this.labels.pop(),this.expect(m._while),i.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(m.semi):this.semicolon(),this.finishNode(i,"DoWhileStatement")},ie.parseForStatement=function(i){this.next();var n=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(Xi),this.enterScope(0),this.expect(m.parenL),this.type===m.semi)return n>-1&&this.unexpected(n),this.parseFor(i,null);var h=this.isLet();if(this.type===m._var||this.type===m._const||h){var f=this.startNode(),v=h?"let":this.value;return this.next(),this.parseVar(f,!0,v),this.finishNode(f,"VariableDeclaration"),this.parseForAfterInit(i,f,n)}var P=this.isContextual("let"),R=!1,H=this.isUsing(!0)?"using":this.isAwaitUsing(!0)?"await using":null;if(H){var z=this.startNode();return this.next(),H==="await using"&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.parseVar(z,!0,H),this.finishNode(z,"VariableDeclaration"),this.parseForAfterInit(i,z,n)}var ce=this.containsEsc,me=new pi,we=this.start,Le=n>-1?this.parseExprSubscripts(me,"await"):this.parseExpression(!0,me);return this.type===m._in||(R=this.options.ecmaVersion>=6&&this.isContextual("of"))?(n>-1?(this.type===m._in&&this.unexpected(n),i.await=!0):R&&this.options.ecmaVersion>=8&&(Le.start===we&&!ce&&Le.type==="Identifier"&&Le.name==="async"?this.unexpected():this.options.ecmaVersion>=9&&(i.await=!1)),P&&R&&this.raise(Le.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(Le,!1,me),this.checkLValPattern(Le),this.parseForIn(i,Le)):(this.checkExpressionErrors(me,!0),n>-1&&this.unexpected(n),this.parseFor(i,Le))},ie.parseForAfterInit=function(i,n,h){return(this.type===m._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&n.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===m._in?h>-1&&this.unexpected(h):i.await=h>-1),this.parseForIn(i,n)):(h>-1&&this.unexpected(h),this.parseFor(i,n))},ie.parseFunctionStatement=function(i,n,h){return this.next(),this.parseFunction(i,Wt|(h?0:Ji),!1,n)},ie.parseIfStatement=function(i){return this.next(),i.test=this.parseParenExpression(),i.consequent=this.parseStatement("if"),i.alternate=this.eat(m._else)?this.parseStatement("if"):null,this.finishNode(i,"IfStatement")},ie.parseReturnStatement=function(i){return this.allowReturn||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(m.semi)||this.insertSemicolon()?i.argument=null:(i.argument=this.parseExpression(),this.semicolon()),this.finishNode(i,"ReturnStatement")},ie.parseSwitchStatement=function(i){this.next(),i.discriminant=this.parseParenExpression(),i.cases=[],this.expect(m.braceL),this.labels.push(vo),this.enterScope(ft);for(var n,h=!1;this.type!==m.braceR;)if(this.type===m._case||this.type===m._default){var f=this.type===m._case;n&&this.finishNode(n,"SwitchCase"),i.cases.push(n=this.startNode()),n.consequent=[],this.next(),f?n.test=this.parseExpression():(h&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),h=!0,n.test=null),this.expect(m.colon)}else n||this.unexpected(),n.consequent.push(this.parseStatement(null));return this.exitScope(),n&&this.finishNode(n,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(i,"SwitchStatement")},ie.parseThrowStatement=function(i){return this.next(),ae.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),i.argument=this.parseExpression(),this.semicolon(),this.finishNode(i,"ThrowStatement")};var bo=[];ie.parseCatchClauseParam=function(){var i=this.parseBindingAtom(),n=i.type==="Identifier";return this.enterScope(n?oe:0),this.checkLValPattern(i,n?Ut:qe),this.expect(m.parenR),i},ie.parseTryStatement=function(i){if(this.next(),i.block=this.parseBlock(),i.handler=null,this.type===m._catch){var n=this.startNode();this.next(),this.eat(m.parenL)?n.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),n.param=null,this.enterScope(0)),n.body=this.parseBlock(!1),this.exitScope(),i.handler=this.finishNode(n,"CatchClause")}return i.finalizer=this.eat(m._finally)?this.parseBlock():null,!i.handler&&!i.finalizer&&this.raise(i.start,"Missing catch or finally clause"),this.finishNode(i,"TryStatement")},ie.parseVarStatement=function(i,n,h){return this.next(),this.parseVar(i,!1,n,h),this.semicolon(),this.finishNode(i,"VariableDeclaration")},ie.parseWhileStatement=function(i){return this.next(),i.test=this.parseParenExpression(),this.labels.push(Xi),i.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(i,"WhileStatement")},ie.parseWithStatement=function(i){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),i.object=this.parseParenExpression(),i.body=this.parseStatement("with"),this.finishNode(i,"WithStatement")},ie.parseEmptyStatement=function(i){return this.next(),this.finishNode(i,"EmptyStatement")},ie.parseLabeledStatement=function(i,n,h,f){for(var v=0,P=this.labels;v<P.length;v+=1){var R=P[v];R.name===n&&this.raise(h.start,"Label '"+n+"' is already declared")}for(var H=this.type.isLoop?"loop":this.type===m._switch?"switch":null,z=this.labels.length-1;z>=0;z--){var ce=this.labels[z];if(ce.statementStart===i.start)ce.statementStart=this.start,ce.kind=H;else break}return this.labels.push({name:n,kind:H,statementStart:this.start}),i.body=this.parseStatement(f?f.indexOf("label")===-1?f+"label":f:"label"),this.labels.pop(),i.label=h,this.finishNode(i,"LabeledStatement")},ie.parseExpressionStatement=function(i,n){return i.expression=n,this.semicolon(),this.finishNode(i,"ExpressionStatement")},ie.parseBlock=function(i,n,h){for(i===void 0&&(i=!0),n===void 0&&(n=this.startNode()),n.body=[],this.expect(m.braceL),i&&this.enterScope(0);this.type!==m.braceR;){var f=this.parseStatement(null);n.body.push(f)}return h&&(this.strict=!1),this.next(),i&&this.exitScope(),this.finishNode(n,"BlockStatement")},ie.parseFor=function(i,n){return i.init=n,this.expect(m.semi),i.test=this.type===m.semi?null:this.parseExpression(),this.expect(m.semi),i.update=this.type===m.parenR?null:this.parseExpression(),this.expect(m.parenR),i.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(i,"ForStatement")},ie.parseForIn=function(i,n){var h=this.type===m._in;return this.next(),n.type==="VariableDeclaration"&&n.declarations[0].init!=null&&(!h||this.options.ecmaVersion<8||this.strict||n.kind!=="var"||n.declarations[0].id.type!=="Identifier")&&this.raise(n.start,(h?"for-in":"for-of")+" loop variable declaration may not have an initializer"),i.left=n,i.right=h?this.parseExpression():this.parseMaybeAssign(),this.expect(m.parenR),i.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(i,h?"ForInStatement":"ForOfStatement")},ie.parseVar=function(i,n,h,f){for(i.declarations=[],i.kind=h;;){var v=this.startNode();if(this.parseVarId(v,h),this.eat(m.eq)?v.init=this.parseMaybeAssign(n):!f&&h==="const"&&!(this.type===m._in||this.options.ecmaVersion>=6&&this.isContextual("of"))?this.unexpected():!f&&(h==="using"||h==="await using")&&this.options.ecmaVersion>=17&&this.type!==m._in&&!this.isContextual("of")?this.raise(this.lastTokEnd,"Missing initializer in "+h+" declaration"):!f&&v.id.type!=="Identifier"&&!(n&&(this.type===m._in||this.isContextual("of")))?this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):v.init=null,i.declarations.push(this.finishNode(v,"VariableDeclarator")),!this.eat(m.comma))break}return i},ie.parseVarId=function(i,n){i.id=n==="using"||n==="await using"?this.parseIdent():this.parseBindingAtom(),this.checkLValPattern(i.id,n==="var"?bt:qe,!1)};var Wt=1,Ji=2,Ks=4;ie.parseFunction=function(i,n,h,f,v){this.initFunction(i),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!f)&&(this.type===m.star&&n&Ji&&this.unexpected(),i.generator=this.eat(m.star)),this.options.ecmaVersion>=8&&(i.async=!!f),n&Wt&&(i.id=n&Ks&&this.type!==m.name?null:this.parseIdent(),i.id&&!(n&Ji)&&this.checkLValSimple(i.id,this.strict||i.generator||i.async?this.treatFunctionsAsVar?bt:qe:St));var P=this.yieldPos,R=this.awaitPos,H=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(kt(i.async,i.generator)),n&Wt||(i.id=this.type===m.name?this.parseIdent():null),this.parseFunctionParams(i),this.parseFunctionBody(i,h,!1,v),this.yieldPos=P,this.awaitPos=R,this.awaitIdentPos=H,this.finishNode(i,n&Wt?"FunctionDeclaration":"FunctionExpression")},ie.parseFunctionParams=function(i){this.expect(m.parenL),i.params=this.parseBindingList(m.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},ie.parseClass=function(i,n){this.next();var h=this.strict;this.strict=!0,this.parseClassId(i,n),this.parseClassSuper(i);var f=this.enterClassBody(),v=this.startNode(),P=!1;for(v.body=[],this.expect(m.braceL);this.type!==m.braceR;){var R=this.parseClassElement(i.superClass!==null);R&&(v.body.push(R),R.type==="MethodDefinition"&&R.kind==="constructor"?(P&&this.raiseRecoverable(R.start,"Duplicate constructor in the same class"),P=!0):R.key&&R.key.type==="PrivateIdentifier"&&So(f,R)&&this.raiseRecoverable(R.key.start,"Identifier '#"+R.key.name+"' has already been declared"))}return this.strict=h,this.next(),i.body=this.finishNode(v,"ClassBody"),this.exitClassBody(),this.finishNode(i,n?"ClassDeclaration":"ClassExpression")},ie.parseClassElement=function(i){if(this.eat(m.semi))return null;var n=this.options.ecmaVersion,h=this.startNode(),f="",v=!1,P=!1,R="method",H=!1;if(this.eatContextual("static")){if(n>=13&&this.eat(m.braceL))return this.parseClassStaticBlock(h),h;this.isClassElementNameStart()||this.type===m.star?H=!0:f="static"}if(h.static=H,!f&&n>=8&&this.eatContextual("async")&&((this.isClassElementNameStart()||this.type===m.star)&&!this.canInsertSemicolon()?P=!0:f="async"),!f&&(n>=9||!P)&&this.eat(m.star)&&(v=!0),!f&&!P&&!v){var z=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?R=z:f=z)}if(f?(h.computed=!1,h.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),h.key.name=f,this.finishNode(h.key,"Identifier")):this.parseClassElementName(h),n<13||this.type===m.parenL||R!=="method"||v||P){var ce=!h.static&&fi(h,"constructor"),me=ce&&i;ce&&R!=="method"&&this.raise(h.key.start,"Constructor can't have get/set modifier"),h.kind=ce?"constructor":R,this.parseClassMethod(h,v,P,me)}else this.parseClassField(h);return h},ie.isClassElementNameStart=function(){return this.type===m.name||this.type===m.privateId||this.type===m.num||this.type===m.string||this.type===m.bracketL||this.type.keyword},ie.parseClassElementName=function(i){this.type===m.privateId?(this.value==="constructor"&&this.raise(this.start,"Classes can't have an element named '#constructor'"),i.computed=!1,i.key=this.parsePrivateIdent()):this.parsePropertyName(i)},ie.parseClassMethod=function(i,n,h,f){var v=i.key;i.kind==="constructor"?(n&&this.raise(v.start,"Constructor can't be a generator"),h&&this.raise(v.start,"Constructor can't be an async method")):i.static&&fi(i,"prototype")&&this.raise(v.start,"Classes may not have a static property named prototype");var P=i.value=this.parseMethod(n,h,f);return i.kind==="get"&&P.params.length!==0&&this.raiseRecoverable(P.start,"getter should have no params"),i.kind==="set"&&P.params.length!==1&&this.raiseRecoverable(P.start,"setter should have exactly one param"),i.kind==="set"&&P.params[0].type==="RestElement"&&this.raiseRecoverable(P.params[0].start,"Setter cannot use rest params"),this.finishNode(i,"MethodDefinition")},ie.parseClassField=function(i){return fi(i,"constructor")?this.raise(i.key.start,"Classes can't have a field named 'constructor'"):i.static&&fi(i,"prototype")&&this.raise(i.key.start,"Classes can't have a static field named 'prototype'"),this.eat(m.eq)?(this.enterScope(Ie|de),i.value=this.parseMaybeAssign(),this.exitScope()):i.value=null,this.semicolon(),this.finishNode(i,"PropertyDefinition")},ie.parseClassStaticBlock=function(i){i.body=[];var n=this.labels;for(this.labels=[],this.enterScope(ke|de);this.type!==m.braceR;){var h=this.parseStatement(null);i.body.push(h)}return this.next(),this.exitScope(),this.labels=n,this.finishNode(i,"StaticBlock")},ie.parseClassId=function(i,n){this.type===m.name?(i.id=this.parseIdent(),n&&this.checkLValSimple(i.id,qe,!1)):(n===!0&&this.unexpected(),i.id=null)},ie.parseClassSuper=function(i){i.superClass=this.eat(m._extends)?this.parseExprSubscripts(null,!1):null},ie.enterClassBody=function(){var i={declared:Object.create(null),used:[]};return this.privateNameStack.push(i),i.declared},ie.exitClassBody=function(){var i=this.privateNameStack.pop(),n=i.declared,h=i.used;if(this.options.checkPrivateFields)for(var f=this.privateNameStack.length,v=f===0?null:this.privateNameStack[f-1],P=0;P<h.length;++P){var R=h[P];O(n,R.name)||(v?v.used.push(R):this.raiseRecoverable(R.start,"Private field '#"+R.name+"' must be declared in an enclosing class"))}};function So(i,n){var h=n.key.name,f=i[h],v="true";return n.type==="MethodDefinition"&&(n.kind==="get"||n.kind==="set")&&(v=(n.static?"s":"i")+n.kind),f==="iget"&&v==="iset"||f==="iset"&&v==="iget"||f==="sget"&&v==="sset"||f==="sset"&&v==="sget"?(i[h]="true",!1):f?!0:(i[h]=v,!1)}function fi(i,n){var h=i.computed,f=i.key;return!h&&(f.type==="Identifier"&&f.name===n||f.type==="Literal"&&f.value===n)}ie.parseExportAllDeclaration=function(i,n){return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(i.exported=this.parseModuleExportName(),this.checkExport(n,i.exported,this.lastTokStart)):i.exported=null),this.expectContextual("from"),this.type!==m.string&&this.unexpected(),i.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(i.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(i,"ExportAllDeclaration")},ie.parseExport=function(i,n){if(this.next(),this.eat(m.star))return this.parseExportAllDeclaration(i,n);if(this.eat(m._default))return this.checkExport(n,"default",this.lastTokStart),i.declaration=this.parseExportDefaultDeclaration(),this.finishNode(i,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())i.declaration=this.parseExportDeclaration(i),i.declaration.type==="VariableDeclaration"?this.checkVariableExport(n,i.declaration.declarations):this.checkExport(n,i.declaration.id,i.declaration.id.start),i.specifiers=[],i.source=null,this.options.ecmaVersion>=16&&(i.attributes=[]);else{if(i.declaration=null,i.specifiers=this.parseExportSpecifiers(n),this.eatContextual("from"))this.type!==m.string&&this.unexpected(),i.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(i.attributes=this.parseWithClause());else{for(var h=0,f=i.specifiers;h<f.length;h+=1){var v=f[h];this.checkUnreserved(v.local),this.checkLocalExport(v.local),v.local.type==="Literal"&&this.raise(v.local.start,"A string literal cannot be used as an exported binding without `from`.")}i.source=null,this.options.ecmaVersion>=16&&(i.attributes=[])}this.semicolon()}return this.finishNode(i,"ExportNamedDeclaration")},ie.parseExportDeclaration=function(i){return this.parseStatement(null)},ie.parseExportDefaultDeclaration=function(){var i;if(this.type===m._function||(i=this.isAsyncFunction())){var n=this.startNode();return this.next(),i&&this.next(),this.parseFunction(n,Wt|Ks,!1,i)}else if(this.type===m._class){var h=this.startNode();return this.parseClass(h,"nullableID")}else{var f=this.parseMaybeAssign();return this.semicolon(),f}},ie.checkExport=function(i,n,h){i&&(typeof n!="string"&&(n=n.type==="Identifier"?n.name:n.value),O(i,n)&&this.raiseRecoverable(h,"Duplicate export '"+n+"'"),i[n]=!0)},ie.checkPatternExport=function(i,n){var h=n.type;if(h==="Identifier")this.checkExport(i,n,n.start);else if(h==="ObjectPattern")for(var f=0,v=n.properties;f<v.length;f+=1){var P=v[f];this.checkPatternExport(i,P)}else if(h==="ArrayPattern")for(var R=0,H=n.elements;R<H.length;R+=1){var z=H[R];z&&this.checkPatternExport(i,z)}else h==="Property"?this.checkPatternExport(i,n.value):h==="AssignmentPattern"?this.checkPatternExport(i,n.left):h==="RestElement"&&this.checkPatternExport(i,n.argument)},ie.checkVariableExport=function(i,n){if(i)for(var h=0,f=n;h<f.length;h+=1){var v=f[h];this.checkPatternExport(i,v.id)}},ie.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()},ie.parseExportSpecifier=function(i){var n=this.startNode();return n.local=this.parseModuleExportName(),n.exported=this.eatContextual("as")?this.parseModuleExportName():n.local,this.checkExport(i,n.exported,n.exported.start),this.finishNode(n,"ExportSpecifier")},ie.parseExportSpecifiers=function(i){var n=[],h=!0;for(this.expect(m.braceL);!this.eat(m.braceR);){if(h)h=!1;else if(this.expect(m.comma),this.afterTrailingComma(m.braceR))break;n.push(this.parseExportSpecifier(i))}return n},ie.parseImport=function(i){return this.next(),this.type===m.string?(i.specifiers=bo,i.source=this.parseExprAtom()):(i.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),i.source=this.type===m.string?this.parseExprAtom():this.unexpected()),this.options.ecmaVersion>=16&&(i.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(i,"ImportDeclaration")},ie.parseImportSpecifier=function(){var i=this.startNode();return i.imported=this.parseModuleExportName(),this.eatContextual("as")?i.local=this.parseIdent():(this.checkUnreserved(i.imported),i.local=i.imported),this.checkLValSimple(i.local,qe),this.finishNode(i,"ImportSpecifier")},ie.parseImportDefaultSpecifier=function(){var i=this.startNode();return i.local=this.parseIdent(),this.checkLValSimple(i.local,qe),this.finishNode(i,"ImportDefaultSpecifier")},ie.parseImportNamespaceSpecifier=function(){var i=this.startNode();return this.next(),this.expectContextual("as"),i.local=this.parseIdent(),this.checkLValSimple(i.local,qe),this.finishNode(i,"ImportNamespaceSpecifier")},ie.parseImportSpecifiers=function(){var i=[],n=!0;if(this.type===m.name&&(i.push(this.parseImportDefaultSpecifier()),!this.eat(m.comma)))return i;if(this.type===m.star)return i.push(this.parseImportNamespaceSpecifier()),i;for(this.expect(m.braceL);!this.eat(m.braceR);){if(n)n=!1;else if(this.expect(m.comma),this.afterTrailingComma(m.braceR))break;i.push(this.parseImportSpecifier())}return i},ie.parseWithClause=function(){var i=[];if(!this.eat(m._with))return i;this.expect(m.braceL);for(var n={},h=!0;!this.eat(m.braceR);){if(h)h=!1;else if(this.expect(m.comma),this.afterTrailingComma(m.braceR))break;var f=this.parseImportAttribute(),v=f.key.type==="Identifier"?f.key.name:f.key.value;O(n,v)&&this.raiseRecoverable(f.key.start,"Duplicate attribute key '"+v+"'"),n[v]=!0,i.push(f)}return i},ie.parseImportAttribute=function(){var i=this.startNode();return i.key=this.type===m.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never"),this.expect(m.colon),this.type!==m.string&&this.unexpected(),i.value=this.parseExprAtom(),this.finishNode(i,"ImportAttribute")},ie.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===m.string){var i=this.parseLiteral(this.value);return d.test(i.value)&&this.raise(i.start,"An export name cannot include a lone surrogate."),i}return this.parseIdent(!0)},ie.adaptDirectivePrologue=function(i){for(var n=0;n<i.length&&this.isDirectiveCandidate(i[n]);++n)i[n].directive=i[n].expression.raw.slice(1,-1)},ie.isDirectiveCandidate=function(i){return this.options.ecmaVersion>=5&&i.type==="ExpressionStatement"&&i.expression.type==="Literal"&&typeof i.expression.value=="string"&&(this.input[i.start]==='"'||this.input[i.start]==="'")};var We=be.prototype;We.toAssignable=function(i,n,h){if(this.options.ecmaVersion>=6&&i)switch(i.type){case"Identifier":this.inAsync&&i.name==="await"&&this.raise(i.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":i.type="ObjectPattern",h&&this.checkPatternErrors(h,!0);for(var f=0,v=i.properties;f<v.length;f+=1){var P=v[f];this.toAssignable(P,n),P.type==="RestElement"&&(P.argument.type==="ArrayPattern"||P.argument.type==="ObjectPattern")&&this.raise(P.argument.start,"Unexpected token")}break;case"Property":i.kind!=="init"&&this.raise(i.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(i.value,n);break;case"ArrayExpression":i.type="ArrayPattern",h&&this.checkPatternErrors(h,!0),this.toAssignableList(i.elements,n);break;case"SpreadElement":i.type="RestElement",this.toAssignable(i.argument,n),i.argument.type==="AssignmentPattern"&&this.raise(i.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":i.operator!=="="&&this.raise(i.left.end,"Only '=' operator can be used for specifying default value."),i.type="AssignmentPattern",delete i.operator,this.toAssignable(i.left,n);break;case"ParenthesizedExpression":this.toAssignable(i.expression,n,h);break;case"ChainExpression":this.raiseRecoverable(i.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!n)break;default:this.raise(i.start,"Assigning to rvalue")}else h&&this.checkPatternErrors(h,!0);return i},We.toAssignableList=function(i,n){for(var h=i.length,f=0;f<h;f++){var v=i[f];v&&this.toAssignable(v,n)}if(h){var P=i[h-1];this.options.ecmaVersion===6&&n&&P&&P.type==="RestElement"&&P.argument.type!=="Identifier"&&this.unexpected(P.argument.start)}return i},We.parseSpread=function(i){var n=this.startNode();return this.next(),n.argument=this.parseMaybeAssign(!1,i),this.finishNode(n,"SpreadElement")},We.parseRestBinding=function(){var i=this.startNode();return this.next(),this.options.ecmaVersion===6&&this.type!==m.name&&this.unexpected(),i.argument=this.parseBindingAtom(),this.finishNode(i,"RestElement")},We.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case m.bracketL:var i=this.startNode();return this.next(),i.elements=this.parseBindingList(m.bracketR,!0,!0),this.finishNode(i,"ArrayPattern");case m.braceL:return this.parseObj(!0)}return this.parseIdent()},We.parseBindingList=function(i,n,h,f){for(var v=[],P=!0;!this.eat(i);)if(P?P=!1:this.expect(m.comma),n&&this.type===m.comma)v.push(null);else{if(h&&this.afterTrailingComma(i))break;if(this.type===m.ellipsis){var R=this.parseRestBinding();this.parseBindingListItem(R),v.push(R),this.type===m.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.expect(i);break}else v.push(this.parseAssignableListItem(f))}return v},We.parseAssignableListItem=function(i){var n=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(n),n},We.parseBindingListItem=function(i){return i},We.parseMaybeDefault=function(i,n,h){if(h=h||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(m.eq))return h;var f=this.startNodeAt(i,n);return f.left=h,f.right=this.parseMaybeAssign(),this.finishNode(f,"AssignmentPattern")},We.checkLValSimple=function(i,n,h){n===void 0&&(n=at);var f=n!==at;switch(i.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(i.name)&&this.raiseRecoverable(i.start,(f?"Binding ":"Assigning to ")+i.name+" in strict mode"),f&&(n===qe&&i.name==="let"&&this.raiseRecoverable(i.start,"let is disallowed as a lexically bound name"),h&&(O(h,i.name)&&this.raiseRecoverable(i.start,"Argument name clash"),h[i.name]=!0),n!==Ht&&this.declareName(i.name,n,i.start));break;case"ChainExpression":this.raiseRecoverable(i.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":f&&this.raiseRecoverable(i.start,"Binding member expression");break;case"ParenthesizedExpression":return f&&this.raiseRecoverable(i.start,"Binding parenthesized expression"),this.checkLValSimple(i.expression,n,h);default:this.raise(i.start,(f?"Binding":"Assigning to")+" rvalue")}},We.checkLValPattern=function(i,n,h){switch(n===void 0&&(n=at),i.type){case"ObjectPattern":for(var f=0,v=i.properties;f<v.length;f+=1){var P=v[f];this.checkLValInnerPattern(P,n,h)}break;case"ArrayPattern":for(var R=0,H=i.elements;R<H.length;R+=1){var z=H[R];z&&this.checkLValInnerPattern(z,n,h)}break;default:this.checkLValSimple(i,n,h)}},We.checkLValInnerPattern=function(i,n,h){switch(n===void 0&&(n=at),i.type){case"Property":this.checkLValInnerPattern(i.value,n,h);break;case"AssignmentPattern":this.checkLValPattern(i.left,n,h);break;case"RestElement":this.checkLValPattern(i.argument,n,h);break;default:this.checkLValPattern(i,n,h)}};var Ge=function(n,h,f,v,P){this.token=n,this.isExpr=!!h,this.preserveSpace=!!f,this.override=v,this.generator=!!P},Ce={b_stat:new Ge("{",!1),b_expr:new Ge("{",!0),b_tmpl:new Ge("${",!1),p_stat:new Ge("(",!1),p_expr:new Ge("(",!0),q_tmpl:new Ge("`",!0,!0,function(i){return i.tryReadTemplateToken()}),f_stat:new Ge("function",!1),f_expr:new Ge("function",!0),f_expr_gen:new Ge("function",!0,!1,null,!0),f_gen:new Ge("function",!1,!1,null,!0)},Tt=be.prototype;Tt.initialContext=function(){return[Ce.b_stat]},Tt.curContext=function(){return this.context[this.context.length-1]},Tt.braceIsBlock=function(i){var n=this.curContext();return n===Ce.f_expr||n===Ce.f_stat?!0:i===m.colon&&(n===Ce.b_stat||n===Ce.b_expr)?!n.isExpr:i===m._return||i===m.name&&this.exprAllowed?ae.test(this.input.slice(this.lastTokEnd,this.start)):i===m._else||i===m.semi||i===m.eof||i===m.parenR||i===m.arrow?!0:i===m.braceL?n===Ce.b_stat:i===m._var||i===m._const||i===m.name?!1:!this.exprAllowed},Tt.inGeneratorContext=function(){for(var i=this.context.length-1;i>=1;i--){var n=this.context[i];if(n.token==="function")return n.generator}return!1},Tt.updateContext=function(i){var n,h=this.type;h.keyword&&i===m.dot?this.exprAllowed=!1:(n=h.updateContext)?n.call(this,i):this.exprAllowed=h.beforeExpr},Tt.overrideContext=function(i){this.curContext()!==i&&(this.context[this.context.length-1]=i)},m.parenR.updateContext=m.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=!0;return}var i=this.context.pop();i===Ce.b_stat&&this.curContext().token==="function"&&(i=this.context.pop()),this.exprAllowed=!i.isExpr},m.braceL.updateContext=function(i){this.context.push(this.braceIsBlock(i)?Ce.b_stat:Ce.b_expr),this.exprAllowed=!0},m.dollarBraceL.updateContext=function(){this.context.push(Ce.b_tmpl),this.exprAllowed=!0},m.parenL.updateContext=function(i){var n=i===m._if||i===m._for||i===m._with||i===m._while;this.context.push(n?Ce.p_stat:Ce.p_expr),this.exprAllowed=!0},m.incDec.updateContext=function(){},m._function.updateContext=m._class.updateContext=function(i){i.beforeExpr&&i!==m._else&&!(i===m.semi&&this.curContext()!==Ce.p_stat)&&!(i===m._return&&ae.test(this.input.slice(this.lastTokEnd,this.start)))&&!((i===m.colon||i===m.braceL)&&this.curContext()===Ce.b_stat)?this.context.push(Ce.f_expr):this.context.push(Ce.f_stat),this.exprAllowed=!1},m.colon.updateContext=function(){this.curContext().token==="function"&&this.context.pop(),this.exprAllowed=!0},m.backQuote.updateContext=function(){this.curContext()===Ce.q_tmpl?this.context.pop():this.context.push(Ce.q_tmpl),this.exprAllowed=!1},m.star.updateContext=function(i){if(i===m._function){var n=this.context.length-1;this.context[n]===Ce.f_expr?this.context[n]=Ce.f_expr_gen:this.context[n]=Ce.f_gen}this.exprAllowed=!0},m.name.updateContext=function(i){var n=!1;this.options.ecmaVersion>=6&&i!==m.dot&&(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())&&(n=!0),this.exprAllowed=n};var le=be.prototype;le.checkPropClash=function(i,n,h){if(!(this.options.ecmaVersion>=9&&i.type==="SpreadElement")&&!(this.options.ecmaVersion>=6&&(i.computed||i.method||i.shorthand))){var f=i.key,v;switch(f.type){case"Identifier":v=f.name;break;case"Literal":v=String(f.value);break;default:return}var P=i.kind;if(this.options.ecmaVersion>=6){v==="__proto__"&&P==="init"&&(n.proto&&(h?h.doubleProto<0&&(h.doubleProto=f.start):this.raiseRecoverable(f.start,"Redefinition of __proto__ property")),n.proto=!0);return}v="$"+v;var R=n[v];if(R){var H;P==="init"?H=this.strict&&R.init||R.get||R.set:H=R.init||R[P],H&&this.raiseRecoverable(f.start,"Redefinition of property")}else R=n[v]={init:!1,get:!1,set:!1};R[P]=!0}},le.parseExpression=function(i,n){var h=this.start,f=this.startLoc,v=this.parseMaybeAssign(i,n);if(this.type===m.comma){var P=this.startNodeAt(h,f);for(P.expressions=[v];this.eat(m.comma);)P.expressions.push(this.parseMaybeAssign(i,n));return this.finishNode(P,"SequenceExpression")}return v},le.parseMaybeAssign=function(i,n,h){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(i);this.exprAllowed=!1}var f=!1,v=-1,P=-1,R=-1;n?(v=n.parenthesizedAssign,P=n.trailingComma,R=n.doubleProto,n.parenthesizedAssign=n.trailingComma=-1):(n=new pi,f=!0);var H=this.start,z=this.startLoc;(this.type===m.parenL||this.type===m.name)&&(this.potentialArrowAt=this.start,this.potentialArrowInForAwait=i==="await");var ce=this.parseMaybeConditional(i,n);if(h&&(ce=h.call(this,ce,H,z)),this.type.isAssign){var me=this.startNodeAt(H,z);return me.operator=this.value,this.type===m.eq&&(ce=this.toAssignable(ce,!1,n)),f||(n.parenthesizedAssign=n.trailingComma=n.doubleProto=-1),n.shorthandAssign>=ce.start&&(n.shorthandAssign=-1),this.type===m.eq?this.checkLValPattern(ce):this.checkLValSimple(ce),me.left=ce,this.next(),me.right=this.parseMaybeAssign(i),R>-1&&(n.doubleProto=R),this.finishNode(me,"AssignmentExpression")}else f&&this.checkExpressionErrors(n,!0);return v>-1&&(n.parenthesizedAssign=v),P>-1&&(n.trailingComma=P),ce},le.parseMaybeConditional=function(i,n){var h=this.start,f=this.startLoc,v=this.parseExprOps(i,n);if(this.checkExpressionErrors(n))return v;if(this.eat(m.question)){var P=this.startNodeAt(h,f);return P.test=v,P.consequent=this.parseMaybeAssign(),this.expect(m.colon),P.alternate=this.parseMaybeAssign(i),this.finishNode(P,"ConditionalExpression")}return v},le.parseExprOps=function(i,n){var h=this.start,f=this.startLoc,v=this.parseMaybeUnary(n,!1,!1,i);return this.checkExpressionErrors(n)||v.start===h&&v.type==="ArrowFunctionExpression"?v:this.parseExprOp(v,h,f,-1,i)},le.parseExprOp=function(i,n,h,f,v){var P=this.type.binop;if(P!=null&&(!v||this.type!==m._in)&&P>f){var R=this.type===m.logicalOR||this.type===m.logicalAND,H=this.type===m.coalesce;H&&(P=m.logicalAND.binop);var z=this.value;this.next();var ce=this.start,me=this.startLoc,we=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,v),ce,me,P,v),Le=this.buildBinary(n,h,i,we,z,R||H);return(R&&this.type===m.coalesce||H&&(this.type===m.logicalOR||this.type===m.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(Le,n,h,f,v)}return i},le.buildBinary=function(i,n,h,f,v,P){f.type==="PrivateIdentifier"&&this.raise(f.start,"Private identifier can only be left side of binary expression");var R=this.startNodeAt(i,n);return R.left=h,R.operator=v,R.right=f,this.finishNode(R,P?"LogicalExpression":"BinaryExpression")},le.parseMaybeUnary=function(i,n,h,f){var v=this.start,P=this.startLoc,R;if(this.isContextual("await")&&this.canAwait)R=this.parseAwait(f),n=!0;else if(this.type.prefix){var H=this.startNode(),z=this.type===m.incDec;H.operator=this.value,H.prefix=!0,this.next(),H.argument=this.parseMaybeUnary(null,!0,z,f),this.checkExpressionErrors(i,!0),z?this.checkLValSimple(H.argument):this.strict&&H.operator==="delete"&&Xs(H.argument)?this.raiseRecoverable(H.start,"Deleting local variable in strict mode"):H.operator==="delete"&&Qi(H.argument)?this.raiseRecoverable(H.start,"Private fields can not be deleted"):n=!0,R=this.finishNode(H,z?"UpdateExpression":"UnaryExpression")}else if(!n&&this.type===m.privateId)(f||this.privateNameStack.length===0)&&this.options.checkPrivateFields&&this.unexpected(),R=this.parsePrivateIdent(),this.type!==m._in&&this.unexpected();else{if(R=this.parseExprSubscripts(i,f),this.checkExpressionErrors(i))return R;for(;this.type.postfix&&!this.canInsertSemicolon();){var ce=this.startNodeAt(v,P);ce.operator=this.value,ce.prefix=!1,ce.argument=R,this.checkLValSimple(R),this.next(),R=this.finishNode(ce,"UpdateExpression")}}if(!h&&this.eat(m.starstar))if(n)this.unexpected(this.lastTokStart);else return this.buildBinary(v,P,R,this.parseMaybeUnary(null,!1,!1,f),"**",!1);else return R};function Xs(i){return i.type==="Identifier"||i.type==="ParenthesizedExpression"&&Xs(i.expression)}function Qi(i){return i.type==="MemberExpression"&&i.property.type==="PrivateIdentifier"||i.type==="ChainExpression"&&Qi(i.expression)||i.type==="ParenthesizedExpression"&&Qi(i.expression)}le.parseExprSubscripts=function(i,n){var h=this.start,f=this.startLoc,v=this.parseExprAtom(i,n);if(v.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return v;var P=this.parseSubscripts(v,h,f,!1,n);return i&&P.type==="MemberExpression"&&(i.parenthesizedAssign>=P.start&&(i.parenthesizedAssign=-1),i.parenthesizedBind>=P.start&&(i.parenthesizedBind=-1),i.trailingComma>=P.start&&(i.trailingComma=-1)),P},le.parseSubscripts=function(i,n,h,f,v){for(var P=this.options.ecmaVersion>=8&&i.type==="Identifier"&&i.name==="async"&&this.lastTokEnd===i.end&&!this.canInsertSemicolon()&&i.end-i.start===5&&this.potentialArrowAt===i.start,R=!1;;){var H=this.parseSubscript(i,n,h,f,P,R,v);if(H.optional&&(R=!0),H===i||H.type==="ArrowFunctionExpression"){if(R){var z=this.startNodeAt(n,h);z.expression=H,H=this.finishNode(z,"ChainExpression")}return H}i=H}},le.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(m.arrow)},le.parseSubscriptAsyncArrow=function(i,n,h,f){return this.parseArrowExpression(this.startNodeAt(i,n),h,!0,f)},le.parseSubscript=function(i,n,h,f,v,P,R){var H=this.options.ecmaVersion>=11,z=H&&this.eat(m.questionDot);f&&z&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var ce=this.eat(m.bracketL);if(ce||z&&this.type!==m.parenL&&this.type!==m.backQuote||this.eat(m.dot)){var me=this.startNodeAt(n,h);me.object=i,ce?(me.property=this.parseExpression(),this.expect(m.bracketR)):this.type===m.privateId&&i.type!=="Super"?me.property=this.parsePrivateIdent():me.property=this.parseIdent(this.options.allowReserved!=="never"),me.computed=!!ce,H&&(me.optional=z),i=this.finishNode(me,"MemberExpression")}else if(!f&&this.eat(m.parenL)){var we=new pi,Le=this.yieldPos,zt=this.awaitPos,Pt=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var gi=this.parseExprList(m.parenR,this.options.ecmaVersion>=8,!1,we);if(v&&!z&&this.shouldParseAsyncArrow())return this.checkPatternErrors(we,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=Le,this.awaitPos=zt,this.awaitIdentPos=Pt,this.parseSubscriptAsyncArrow(n,h,gi,R);this.checkExpressionErrors(we,!0),this.yieldPos=Le||this.yieldPos,this.awaitPos=zt||this.awaitPos,this.awaitIdentPos=Pt||this.awaitIdentPos;var It=this.startNodeAt(n,h);It.callee=i,It.arguments=gi,H&&(It.optional=z),i=this.finishNode(It,"CallExpression")}else if(this.type===m.backQuote){(z||P)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var Nt=this.startNodeAt(n,h);Nt.tag=i,Nt.quasi=this.parseTemplate({isTagged:!0}),i=this.finishNode(Nt,"TaggedTemplateExpression")}return i},le.parseExprAtom=function(i,n,h){this.type===m.slash&&this.readRegexp();var f,v=this.potentialArrowAt===this.start;switch(this.type){case m._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),f=this.startNode(),this.next(),this.type===m.parenL&&!this.allowDirectSuper&&this.raise(f.start,"super() call outside constructor of a subclass"),this.type!==m.dot&&this.type!==m.bracketL&&this.type!==m.parenL&&this.unexpected(),this.finishNode(f,"Super");case m._this:return f=this.startNode(),this.next(),this.finishNode(f,"ThisExpression");case m.name:var P=this.start,R=this.startLoc,H=this.containsEsc,z=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!H&&z.name==="async"&&!this.canInsertSemicolon()&&this.eat(m._function))return this.overrideContext(Ce.f_expr),this.parseFunction(this.startNodeAt(P,R),0,!1,!0,n);if(v&&!this.canInsertSemicolon()){if(this.eat(m.arrow))return this.parseArrowExpression(this.startNodeAt(P,R),[z],!1,n);if(this.options.ecmaVersion>=8&&z.name==="async"&&this.type===m.name&&!H&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc))return z=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(m.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(P,R),[z],!0,n)}return z;case m.regexp:var ce=this.value;return f=this.parseLiteral(ce.value),f.regex={pattern:ce.pattern,flags:ce.flags},f;case m.num:case m.string:return this.parseLiteral(this.value);case m._null:case m._true:case m._false:return f=this.startNode(),f.value=this.type===m._null?null:this.type===m._true,f.raw=this.type.keyword,this.next(),this.finishNode(f,"Literal");case m.parenL:var me=this.start,we=this.parseParenAndDistinguishExpression(v,n);return i&&(i.parenthesizedAssign<0&&!this.isSimpleAssignTarget(we)&&(i.parenthesizedAssign=me),i.parenthesizedBind<0&&(i.parenthesizedBind=me)),we;case m.bracketL:return f=this.startNode(),this.next(),f.elements=this.parseExprList(m.bracketR,!0,!0,i),this.finishNode(f,"ArrayExpression");case m.braceL:return this.overrideContext(Ce.b_expr),this.parseObj(!1,i);case m._function:return f=this.startNode(),this.next(),this.parseFunction(f,0);case m._class:return this.parseClass(this.startNode(),!1);case m._new:return this.parseNew();case m.backQuote:return this.parseTemplate();case m._import:return this.options.ecmaVersion>=11?this.parseExprImport(h):this.unexpected();default:return this.parseExprAtomDefault()}},le.parseExprAtomDefault=function(){this.unexpected()},le.parseExprImport=function(i){var n=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===m.parenL&&!i)return this.parseDynamicImport(n);if(this.type===m.dot){var h=this.startNodeAt(n.start,n.loc&&n.loc.start);return h.name="import",n.meta=this.finishNode(h,"Identifier"),this.parseImportMeta(n)}else this.unexpected()},le.parseDynamicImport=function(i){if(this.next(),i.source=this.parseMaybeAssign(),this.options.ecmaVersion>=16)this.eat(m.parenR)?i.options=null:(this.expect(m.comma),this.afterTrailingComma(m.parenR)?i.options=null:(i.options=this.parseMaybeAssign(),this.eat(m.parenR)||(this.expect(m.comma),this.afterTrailingComma(m.parenR)||this.unexpected())));else if(!this.eat(m.parenR)){var n=this.start;this.eat(m.comma)&&this.eat(m.parenR)?this.raiseRecoverable(n,"Trailing comma is not allowed in import()"):this.unexpected(n)}return this.finishNode(i,"ImportExpression")},le.parseImportMeta=function(i){this.next();var n=this.containsEsc;return i.property=this.parseIdent(!0),i.property.name!=="meta"&&this.raiseRecoverable(i.property.start,"The only valid meta property for import is 'import.meta'"),n&&this.raiseRecoverable(i.start,"'import.meta' must not contain escaped characters"),this.options.sourceType!=="module"&&!this.options.allowImportExportEverywhere&&this.raiseRecoverable(i.start,"Cannot use 'import.meta' outside a module"),this.finishNode(i,"MetaProperty")},le.parseLiteral=function(i){var n=this.startNode();return n.value=i,n.raw=this.input.slice(this.start,this.end),n.raw.charCodeAt(n.raw.length-1)===110&&(n.bigint=n.value!=null?n.value.toString():n.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(n,"Literal")},le.parseParenExpression=function(){this.expect(m.parenL);var i=this.parseExpression();return this.expect(m.parenR),i},le.shouldParseArrow=function(i){return!this.canInsertSemicolon()},le.parseParenAndDistinguishExpression=function(i,n){var h=this.start,f=this.startLoc,v,P=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var R=this.start,H=this.startLoc,z=[],ce=!0,me=!1,we=new pi,Le=this.yieldPos,zt=this.awaitPos,Pt;for(this.yieldPos=0,this.awaitPos=0;this.type!==m.parenR;)if(ce?ce=!1:this.expect(m.comma),P&&this.afterTrailingComma(m.parenR,!0)){me=!0;break}else if(this.type===m.ellipsis){Pt=this.start,z.push(this.parseParenItem(this.parseRestBinding())),this.type===m.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}else z.push(this.parseMaybeAssign(!1,we,this.parseParenItem));var gi=this.lastTokEnd,It=this.lastTokEndLoc;if(this.expect(m.parenR),i&&this.shouldParseArrow(z)&&this.eat(m.arrow))return this.checkPatternErrors(we,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=Le,this.awaitPos=zt,this.parseParenArrowList(h,f,z,n);(!z.length||me)&&this.unexpected(this.lastTokStart),Pt&&this.unexpected(Pt),this.checkExpressionErrors(we,!0),this.yieldPos=Le||this.yieldPos,this.awaitPos=zt||this.awaitPos,z.length>1?(v=this.startNodeAt(R,H),v.expressions=z,this.finishNodeAt(v,"SequenceExpression",gi,It)):v=z[0]}else v=this.parseParenExpression();if(this.options.preserveParens){var Nt=this.startNodeAt(h,f);return Nt.expression=v,this.finishNode(Nt,"ParenthesizedExpression")}else return v},le.parseParenItem=function(i){return i},le.parseParenArrowList=function(i,n,h,f){return this.parseArrowExpression(this.startNodeAt(i,n),h,!1,f)};var Co=[];le.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var i=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===m.dot){var n=this.startNodeAt(i.start,i.loc&&i.loc.start);n.name="new",i.meta=this.finishNode(n,"Identifier"),this.next();var h=this.containsEsc;return i.property=this.parseIdent(!0),i.property.name!=="target"&&this.raiseRecoverable(i.property.start,"The only valid meta property for new is 'new.target'"),h&&this.raiseRecoverable(i.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(i.start,"'new.target' can only be used in functions and class static block"),this.finishNode(i,"MetaProperty")}var f=this.start,v=this.startLoc;return i.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),f,v,!0,!1),this.eat(m.parenL)?i.arguments=this.parseExprList(m.parenR,this.options.ecmaVersion>=8,!1):i.arguments=Co,this.finishNode(i,"NewExpression")},le.parseTemplateElement=function(i){var n=i.isTagged,h=this.startNode();return this.type===m.invalidTemplate?(n||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),h.value={raw:this.value.replace(/\r\n?/g,`
4
4
  `),cooked:null}):h.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
5
- `),cooked:this.value},this.next(),h.tail=this.type===m.backQuote,this.finishNode(h,"TemplateElement")},le.parseTemplate=function(i){i===void 0&&(i={});var n=i.isTagged;n===void 0&&(n=!1);var h=this.startNode();this.next(),h.expressions=[];var f=this.parseTemplateElement({isTagged:n});for(h.quasis=[f];!f.tail;)this.type===m.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(m.dollarBraceL),h.expressions.push(this.parseExpression()),this.expect(m.braceR),h.quasis.push(f=this.parseTemplateElement({isTagged:n}));return this.next(),this.finishNode(h,"TemplateLiteral")},le.isAsyncProp=function(i){return!i.computed&&i.key.type==="Identifier"&&i.key.name==="async"&&(this.type===m.name||this.type===m.num||this.type===m.string||this.type===m.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===m.star)&&!ae.test(this.input.slice(this.lastTokEnd,this.start))},le.parseObj=function(i,n){var h=this.startNode(),f=!0,v={};for(h.properties=[],this.next();!this.eat(m.braceR);){if(f)f=!1;else if(this.expect(m.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(m.braceR))break;var T=this.parseProperty(i,n);i||this.checkPropClash(T,v,n),h.properties.push(T)}return this.finishNode(h,i?"ObjectPattern":"ObjectExpression")},le.parseProperty=function(i,n){var h=this.startNode(),f,v,T,R;if(this.options.ecmaVersion>=9&&this.eat(m.ellipsis))return i?(h.argument=this.parseIdent(!1),this.type===m.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(h,"RestElement")):(h.argument=this.parseMaybeAssign(!1,n),this.type===m.comma&&n&&n.trailingComma<0&&(n.trailingComma=this.start),this.finishNode(h,"SpreadElement"));this.options.ecmaVersion>=6&&(h.method=!1,h.shorthand=!1,(i||n)&&(T=this.start,R=this.startLoc),i||(f=this.eat(m.star)));var H=this.containsEsc;return this.parsePropertyName(h),!i&&!H&&this.options.ecmaVersion>=8&&!f&&this.isAsyncProp(h)?(v=!0,f=this.options.ecmaVersion>=9&&this.eat(m.star),this.parsePropertyName(h)):v=!1,this.parsePropertyValue(h,i,f,v,T,R,n,H),this.finishNode(h,"Property")},le.parseGetterSetter=function(i){var n=i.key.name;this.parsePropertyName(i),i.value=this.parseMethod(!1),i.kind=n;var h=i.kind==="get"?0:1;if(i.value.params.length!==h){var f=i.value.start;i.kind==="get"?this.raiseRecoverable(f,"getter should have no params"):this.raiseRecoverable(f,"setter should have exactly one param")}else i.kind==="set"&&i.value.params[0].type==="RestElement"&&this.raiseRecoverable(i.value.params[0].start,"Setter cannot use rest params")},le.parsePropertyValue=function(i,n,h,f,v,T,R,H){(h||f)&&this.type===m.colon&&this.unexpected(),this.eat(m.colon)?(i.value=n?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,R),i.kind="init"):this.options.ecmaVersion>=6&&this.type===m.parenL?(n&&this.unexpected(),i.method=!0,i.value=this.parseMethod(h,f),i.kind="init"):!n&&!H&&this.options.ecmaVersion>=5&&!i.computed&&i.key.type==="Identifier"&&(i.key.name==="get"||i.key.name==="set")&&this.type!==m.comma&&this.type!==m.braceR&&this.type!==m.eq?((h||f)&&this.unexpected(),this.parseGetterSetter(i)):this.options.ecmaVersion>=6&&!i.computed&&i.key.type==="Identifier"?((h||f)&&this.unexpected(),this.checkUnreserved(i.key),i.key.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=v),n?i.value=this.parseMaybeDefault(v,T,this.copyNode(i.key)):this.type===m.eq&&R?(R.shorthandAssign<0&&(R.shorthandAssign=this.start),i.value=this.parseMaybeDefault(v,T,this.copyNode(i.key))):i.value=this.copyNode(i.key),i.kind="init",i.shorthand=!0):this.unexpected()},le.parsePropertyName=function(i){if(this.options.ecmaVersion>=6){if(this.eat(m.bracketL))return i.computed=!0,i.key=this.parseMaybeAssign(),this.expect(m.bracketR),i.key;i.computed=!1}return i.key=this.type===m.num||this.type===m.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")},le.initFunction=function(i){i.id=null,this.options.ecmaVersion>=6&&(i.generator=i.expression=!1),this.options.ecmaVersion>=8&&(i.async=!1)},le.parseMethod=function(i,n,h){var f=this.startNode(),v=this.yieldPos,T=this.awaitPos,R=this.awaitIdentPos;return this.initFunction(f),this.options.ecmaVersion>=6&&(f.generator=i),this.options.ecmaVersion>=8&&(f.async=!!n),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(kt(n,f.generator)|de|(h?ge:0)),this.expect(m.parenL),f.params=this.parseBindingList(m.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(f,!1,!0,!1),this.yieldPos=v,this.awaitPos=T,this.awaitIdentPos=R,this.finishNode(f,"FunctionExpression")},le.parseArrowExpression=function(i,n,h,f){var v=this.yieldPos,T=this.awaitPos,R=this.awaitIdentPos;return this.enterScope(kt(h,!1)|Y),this.initFunction(i),this.options.ecmaVersion>=8&&(i.async=!!h),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,i.params=this.toAssignableList(n,!0),this.parseFunctionBody(i,!0,!1,f),this.yieldPos=v,this.awaitPos=T,this.awaitIdentPos=R,this.finishNode(i,"ArrowFunctionExpression")},le.parseFunctionBody=function(i,n,h,f){var v=n&&this.type!==m.braceL,T=this.strict,R=!1;if(v)i.body=this.parseMaybeAssign(f),i.expression=!0,this.checkParams(i,!1);else{var H=this.options.ecmaVersion>=7&&!this.isSimpleParamList(i.params);(!T||H)&&(R=this.strictDirective(this.end),R&&H&&this.raiseRecoverable(i.start,"Illegal 'use strict' directive in function with non-simple parameter list"));var z=this.labels;this.labels=[],R&&(this.strict=!0),this.checkParams(i,!T&&!R&&!n&&!h&&this.isSimpleParamList(i.params)),this.strict&&i.id&&this.checkLValSimple(i.id,Ht),i.body=this.parseBlock(!1,void 0,R&&!T),i.expression=!1,this.adaptDirectivePrologue(i.body.body),this.labels=z}this.exitScope()},le.isSimpleParamList=function(i){for(var n=0,h=i;n<h.length;n+=1){var f=h[n];if(f.type!=="Identifier")return!1}return!0},le.checkParams=function(i,n){for(var h=Object.create(null),f=0,v=i.params;f<v.length;f+=1){var T=v[f];this.checkLValInnerPattern(T,bt,n?null:h)}},le.parseExprList=function(i,n,h,f){for(var v=[],T=!0;!this.eat(i);){if(T)T=!1;else if(this.expect(m.comma),n&&this.afterTrailingComma(i))break;var R=void 0;h&&this.type===m.comma?R=null:this.type===m.ellipsis?(R=this.parseSpread(f),f&&this.type===m.comma&&f.trailingComma<0&&(f.trailingComma=this.start)):R=this.parseMaybeAssign(!1,f),v.push(R)}return v},le.checkUnreserved=function(i){var n=i.start,h=i.end,f=i.name;if(this.inGenerator&&f==="yield"&&this.raiseRecoverable(n,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&f==="await"&&this.raiseRecoverable(n,"Cannot use 'await' as identifier inside an async function"),!(this.currentThisScope().flags&je)&&f==="arguments"&&this.raiseRecoverable(n,"Cannot use 'arguments' in class field initializer"),this.inClassStaticBlock&&(f==="arguments"||f==="await")&&this.raise(n,"Cannot use "+f+" in class static initialization block"),this.keywords.test(f)&&this.raise(n,"Unexpected keyword '"+f+"'"),!(this.options.ecmaVersion<6&&this.input.slice(n,h).indexOf("\\")!==-1)){var v=this.strict?this.reservedWordsStrict:this.reservedWords;v.test(f)&&(!this.inAsync&&f==="await"&&this.raiseRecoverable(n,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(n,"The keyword '"+f+"' is reserved"))}},le.parseIdent=function(i){var n=this.parseIdentNode();return this.next(!!i),this.finishNode(n,"Identifier"),i||(this.checkUnreserved(n),n.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=n.start)),n},le.parseIdentNode=function(){var i=this.startNode();return this.type===m.name?i.name=this.value:this.type.keyword?(i.name=this.type.keyword,(i.name==="class"||i.name==="function")&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46)&&this.context.pop(),this.type=m.name):this.unexpected(),i},le.parsePrivateIdent=function(){var i=this.startNode();return this.type===m.privateId?i.name=this.value:this.unexpected(),this.next(),this.finishNode(i,"PrivateIdentifier"),this.options.checkPrivateFields&&(this.privateNameStack.length===0?this.raise(i.start,"Private field '#"+i.name+"' must be declared in an enclosing class"):this.privateNameStack[this.privateNameStack.length-1].used.push(i)),i},le.parseYield=function(i){this.yieldPos||(this.yieldPos=this.start);var n=this.startNode();return this.next(),this.type===m.semi||this.canInsertSemicolon()||this.type!==m.star&&!this.type.startsExpr?(n.delegate=!1,n.argument=null):(n.delegate=this.eat(m.star),n.argument=this.parseMaybeAssign(i)),this.finishNode(n,"YieldExpression")},le.parseAwait=function(i){this.awaitPos||(this.awaitPos=this.start);var n=this.startNode();return this.next(),n.argument=this.parseMaybeUnary(null,!0,!1,i),this.finishNode(n,"AwaitExpression")};var di=be.prototype;di.raise=function(i,n){var h=A(this.input,i);n+=" ("+h.line+":"+h.column+")",this.sourceFile&&(n+=" in "+this.sourceFile);var f=new SyntaxError(n);throw f.pos=i,f.loc=h,f.raisedAt=this.pos,f},di.raiseRecoverable=di.raise,di.curPosition=function(){if(this.options.locations)return new y(this.curLine,this.pos-this.lineStart)};var dt=be.prototype,_o=function(n){this.flags=n,this.var=[],this.lexical=[],this.functions=[]};dt.enterScope=function(i){this.scopeStack.push(new _o(i))},dt.exitScope=function(){this.scopeStack.pop()},dt.treatFunctionsAsVarInScope=function(i){return i.flags&F||!this.inModule&&i.flags&J},dt.declareName=function(i,n,h){var f=!1;if(n===qe){var v=this.currentScope();f=v.lexical.indexOf(i)>-1||v.functions.indexOf(i)>-1||v.var.indexOf(i)>-1,v.lexical.push(i),this.inModule&&v.flags&J&&delete this.undefinedExports[i]}else if(n===Ut){var T=this.currentScope();T.lexical.push(i)}else if(n===St){var R=this.currentScope();this.treatFunctionsAsVar?f=R.lexical.indexOf(i)>-1:f=R.lexical.indexOf(i)>-1||R.var.indexOf(i)>-1,R.functions.push(i)}else for(var H=this.scopeStack.length-1;H>=0;--H){var z=this.scopeStack[H];if(z.lexical.indexOf(i)>-1&&!(z.flags&oe&&z.lexical[0]===i)||!this.treatFunctionsAsVarInScope(z)&&z.functions.indexOf(i)>-1){f=!0;break}if(z.var.push(i),this.inModule&&z.flags&J&&delete this.undefinedExports[i],z.flags&je)break}f&&this.raiseRecoverable(h,"Identifier '"+i+"' has already been declared")},dt.checkLocalExport=function(i){this.scopeStack[0].lexical.indexOf(i.name)===-1&&this.scopeStack[0].var.indexOf(i.name)===-1&&(this.undefinedExports[i.name]=i)},dt.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},dt.currentVarScope=function(){for(var i=this.scopeStack.length-1;;i--){var n=this.scopeStack[i];if(n.flags&(je|Ie|ke))return n}},dt.currentThisScope=function(){for(var i=this.scopeStack.length-1;;i--){var n=this.scopeStack[i];if(n.flags&(je|Ie|ke)&&!(n.flags&Y))return n}};var Gt=function(n,h,f){this.type="",this.start=h,this.end=0,n.options.locations&&(this.loc=new C(n,f)),n.options.directSourceFile&&(this.sourceFile=n.options.directSourceFile),n.options.ranges&&(this.range=[h,0])},$t=be.prototype;$t.startNode=function(){return new Gt(this,this.start,this.startLoc)},$t.startNodeAt=function(i,n){return new Gt(this,i,n)};function Ks(i,n,h,f){return i.type=n,i.end=h,this.options.locations&&(i.loc.end=f),this.options.ranges&&(i.range[1]=h),i}$t.finishNode=function(i,n){return Ks.call(this,i,n,this.lastTokEnd,this.lastTokEndLoc)},$t.finishNodeAt=function(i,n,h,f){return Ks.call(this,i,n,h,f)},$t.copyNode=function(i){var n=new Gt(this,i.start,this.startLoc);for(var h in i)n[h]=i[h];return n};var Ao="Berf Beria_Erfe Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sidetic Sidt Sunu Sunuwar Tai_Yo Tayo Todhri Todr Tolong_Siki Tols Tulu_Tigalari Tutg Unknown Zzzz",Xs="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",Js=Xs+" Extended_Pictographic",Qs=Js,Ys=Qs+" EBase EComp EMod EPres ExtPict",Zs=Ys,Eo=Zs,ko={9:Xs,10:Js,11:Qs,12:Ys,13:Zs,14:Eo},To="Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji",Po={9:"",10:"",11:"",12:"",13:"",14:To},er="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",tr="Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",ir=tr+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",sr=ir+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",rr=sr+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",ar=rr+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",Io=ar+" "+Ao,No={9:tr,10:ir,11:sr,12:rr,13:ar,14:Io},nr={};function Lo(i){var n=nr[i]={binary:r(ko[i]+" "+er),binaryOfStrings:r(Po[i]),nonBinary:{General_Category:r(er),Script:r(No[i])}};n.nonBinary.Script_Extensions=n.nonBinary.Script,n.nonBinary.gc=n.nonBinary.General_Category,n.nonBinary.sc=n.nonBinary.Script,n.nonBinary.scx=n.nonBinary.Script_Extensions}for(var Yi=0,or=[9,10,11,12,13,14];Yi<or.length;Yi+=1){var Ro=or[Yi];Lo(Ro)}var ee=be.prototype,mi=function(n,h){this.parent=n,this.base=h||this};mi.prototype.separatedFrom=function(n){for(var h=this;h;h=h.parent)for(var f=n;f;f=f.parent)if(h.base===f.base&&h!==f)return!0;return!1},mi.prototype.sibling=function(){return new mi(this.parent,this.base)};var tt=function(n){this.parser=n,this.validFlags="gim"+(n.options.ecmaVersion>=6?"uy":"")+(n.options.ecmaVersion>=9?"s":"")+(n.options.ecmaVersion>=13?"d":"")+(n.options.ecmaVersion>=15?"v":""),this.unicodeProperties=nr[n.options.ecmaVersion>=14?14:n.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchV=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=Object.create(null),this.backReferenceNames=[],this.branchID=null};tt.prototype.reset=function(n,h,f){var v=f.indexOf("v")!==-1,T=f.indexOf("u")!==-1;this.start=n|0,this.source=h+"",this.flags=f,v&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=T&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=T&&this.parser.options.ecmaVersion>=9)},tt.prototype.raise=function(n){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+n)},tt.prototype.at=function(n,h){h===void 0&&(h=!1);var f=this.source,v=f.length;if(n>=v)return-1;var T=f.charCodeAt(n);if(!(h||this.switchU)||T<=55295||T>=57344||n+1>=v)return T;var R=f.charCodeAt(n+1);return R>=56320&&R<=57343?(T<<10)+R-56613888:T},tt.prototype.nextIndex=function(n,h){h===void 0&&(h=!1);var f=this.source,v=f.length;if(n>=v)return v;var T=f.charCodeAt(n),R;return!(h||this.switchU)||T<=55295||T>=57344||n+1>=v||(R=f.charCodeAt(n+1))<56320||R>57343?n+1:n+2},tt.prototype.current=function(n){return n===void 0&&(n=!1),this.at(this.pos,n)},tt.prototype.lookahead=function(n){return n===void 0&&(n=!1),this.at(this.nextIndex(this.pos,n),n)},tt.prototype.advance=function(n){n===void 0&&(n=!1),this.pos=this.nextIndex(this.pos,n)},tt.prototype.eat=function(n,h){return h===void 0&&(h=!1),this.current(h)===n?(this.advance(h),!0):!1},tt.prototype.eatChars=function(n,h){h===void 0&&(h=!1);for(var f=this.pos,v=0,T=n;v<T.length;v+=1){var R=T[v],H=this.at(f,h);if(H===-1||H!==R)return!1;f=this.nextIndex(f,h)}return this.pos=f,!0},ee.validateRegExpFlags=function(i){for(var n=i.validFlags,h=i.flags,f=!1,v=!1,T=0;T<h.length;T++){var R=h.charAt(T);n.indexOf(R)===-1&&this.raise(i.start,"Invalid regular expression flag"),h.indexOf(R,T+1)>-1&&this.raise(i.start,"Duplicate regular expression flag"),R==="u"&&(f=!0),R==="v"&&(v=!0)}this.options.ecmaVersion>=15&&f&&v&&this.raise(i.start,"Invalid regular expression flag")};function Oo(i){for(var n in i)return!0;return!1}ee.validateRegExpPattern=function(i){this.regexp_pattern(i),!i.switchN&&this.options.ecmaVersion>=9&&Oo(i.groupNames)&&(i.switchN=!0,this.regexp_pattern(i))},ee.regexp_pattern=function(i){i.pos=0,i.lastIntValue=0,i.lastStringValue="",i.lastAssertionIsQuantifiable=!1,i.numCapturingParens=0,i.maxBackReference=0,i.groupNames=Object.create(null),i.backReferenceNames.length=0,i.branchID=null,this.regexp_disjunction(i),i.pos!==i.source.length&&(i.eat(41)&&i.raise("Unmatched ')'"),(i.eat(93)||i.eat(125))&&i.raise("Lone quantifier brackets")),i.maxBackReference>i.numCapturingParens&&i.raise("Invalid escape");for(var n=0,h=i.backReferenceNames;n<h.length;n+=1){var f=h[n];i.groupNames[f]||i.raise("Invalid named capture referenced")}},ee.regexp_disjunction=function(i){var n=this.options.ecmaVersion>=16;for(n&&(i.branchID=new mi(i.branchID,null)),this.regexp_alternative(i);i.eat(124);)n&&(i.branchID=i.branchID.sibling()),this.regexp_alternative(i);n&&(i.branchID=i.branchID.parent),this.regexp_eatQuantifier(i,!0)&&i.raise("Nothing to repeat"),i.eat(123)&&i.raise("Lone quantifier brackets")},ee.regexp_alternative=function(i){for(;i.pos<i.source.length&&this.regexp_eatTerm(i););},ee.regexp_eatTerm=function(i){return this.regexp_eatAssertion(i)?(i.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(i)&&i.switchU&&i.raise("Invalid quantifier"),!0):(i.switchU?this.regexp_eatAtom(i):this.regexp_eatExtendedAtom(i))?(this.regexp_eatQuantifier(i),!0):!1},ee.regexp_eatAssertion=function(i){var n=i.pos;if(i.lastAssertionIsQuantifiable=!1,i.eat(94)||i.eat(36))return!0;if(i.eat(92)){if(i.eat(66)||i.eat(98))return!0;i.pos=n}if(i.eat(40)&&i.eat(63)){var h=!1;if(this.options.ecmaVersion>=9&&(h=i.eat(60)),i.eat(61)||i.eat(33))return this.regexp_disjunction(i),i.eat(41)||i.raise("Unterminated group"),i.lastAssertionIsQuantifiable=!h,!0}return i.pos=n,!1},ee.regexp_eatQuantifier=function(i,n){return n===void 0&&(n=!1),this.regexp_eatQuantifierPrefix(i,n)?(i.eat(63),!0):!1},ee.regexp_eatQuantifierPrefix=function(i,n){return i.eat(42)||i.eat(43)||i.eat(63)||this.regexp_eatBracedQuantifier(i,n)},ee.regexp_eatBracedQuantifier=function(i,n){var h=i.pos;if(i.eat(123)){var f=0,v=-1;if(this.regexp_eatDecimalDigits(i)&&(f=i.lastIntValue,i.eat(44)&&this.regexp_eatDecimalDigits(i)&&(v=i.lastIntValue),i.eat(125)))return v!==-1&&v<f&&!n&&i.raise("numbers out of order in {} quantifier"),!0;i.switchU&&!n&&i.raise("Incomplete quantifier"),i.pos=h}return!1},ee.regexp_eatAtom=function(i){return this.regexp_eatPatternCharacters(i)||i.eat(46)||this.regexp_eatReverseSolidusAtomEscape(i)||this.regexp_eatCharacterClass(i)||this.regexp_eatUncapturingGroup(i)||this.regexp_eatCapturingGroup(i)},ee.regexp_eatReverseSolidusAtomEscape=function(i){var n=i.pos;if(i.eat(92)){if(this.regexp_eatAtomEscape(i))return!0;i.pos=n}return!1},ee.regexp_eatUncapturingGroup=function(i){var n=i.pos;if(i.eat(40)){if(i.eat(63)){if(this.options.ecmaVersion>=16){var h=this.regexp_eatModifiers(i),f=i.eat(45);if(h||f){for(var v=0;v<h.length;v++){var T=h.charAt(v);h.indexOf(T,v+1)>-1&&i.raise("Duplicate regular expression modifiers")}if(f){var R=this.regexp_eatModifiers(i);!h&&!R&&i.current()===58&&i.raise("Invalid regular expression modifiers");for(var H=0;H<R.length;H++){var z=R.charAt(H);(R.indexOf(z,H+1)>-1||h.indexOf(z)>-1)&&i.raise("Duplicate regular expression modifiers")}}}}if(i.eat(58)){if(this.regexp_disjunction(i),i.eat(41))return!0;i.raise("Unterminated group")}}i.pos=n}return!1},ee.regexp_eatCapturingGroup=function(i){if(i.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(i):i.current()===63&&i.raise("Invalid group"),this.regexp_disjunction(i),i.eat(41))return i.numCapturingParens+=1,!0;i.raise("Unterminated group")}return!1},ee.regexp_eatModifiers=function(i){for(var n="",h=0;(h=i.current())!==-1&&Mo(h);)n+=u(h),i.advance();return n};function Mo(i){return i===105||i===109||i===115}ee.regexp_eatExtendedAtom=function(i){return i.eat(46)||this.regexp_eatReverseSolidusAtomEscape(i)||this.regexp_eatCharacterClass(i)||this.regexp_eatUncapturingGroup(i)||this.regexp_eatCapturingGroup(i)||this.regexp_eatInvalidBracedQuantifier(i)||this.regexp_eatExtendedPatternCharacter(i)},ee.regexp_eatInvalidBracedQuantifier=function(i){return this.regexp_eatBracedQuantifier(i,!0)&&i.raise("Nothing to repeat"),!1},ee.regexp_eatSyntaxCharacter=function(i){var n=i.current();return ur(n)?(i.lastIntValue=n,i.advance(),!0):!1};function ur(i){return i===36||i>=40&&i<=43||i===46||i===63||i>=91&&i<=94||i>=123&&i<=125}ee.regexp_eatPatternCharacters=function(i){for(var n=i.pos,h=0;(h=i.current())!==-1&&!ur(h);)i.advance();return i.pos!==n},ee.regexp_eatExtendedPatternCharacter=function(i){var n=i.current();return n!==-1&&n!==36&&!(n>=40&&n<=43)&&n!==46&&n!==63&&n!==91&&n!==94&&n!==124?(i.advance(),!0):!1},ee.regexp_groupSpecifier=function(i){if(i.eat(63)){this.regexp_eatGroupName(i)||i.raise("Invalid group");var n=this.options.ecmaVersion>=16,h=i.groupNames[i.lastStringValue];if(h)if(n)for(var f=0,v=h;f<v.length;f+=1){var T=v[f];T.separatedFrom(i.branchID)||i.raise("Duplicate capture group name")}else i.raise("Duplicate capture group name");n?(h||(i.groupNames[i.lastStringValue]=[])).push(i.branchID):i.groupNames[i.lastStringValue]=!0}},ee.regexp_eatGroupName=function(i){if(i.lastStringValue="",i.eat(60)){if(this.regexp_eatRegExpIdentifierName(i)&&i.eat(62))return!0;i.raise("Invalid capture group name")}return!1},ee.regexp_eatRegExpIdentifierName=function(i){if(i.lastStringValue="",this.regexp_eatRegExpIdentifierStart(i)){for(i.lastStringValue+=u(i.lastIntValue);this.regexp_eatRegExpIdentifierPart(i);)i.lastStringValue+=u(i.lastIntValue);return!0}return!1},ee.regexp_eatRegExpIdentifierStart=function(i){var n=i.pos,h=this.options.ecmaVersion>=11,f=i.current(h);return i.advance(h),f===92&&this.regexp_eatRegExpUnicodeEscapeSequence(i,h)&&(f=i.lastIntValue),Vo(f)?(i.lastIntValue=f,!0):(i.pos=n,!1)};function Vo(i){return B(i,!0)||i===36||i===95}ee.regexp_eatRegExpIdentifierPart=function(i){var n=i.pos,h=this.options.ecmaVersion>=11,f=i.current(h);return i.advance(h),f===92&&this.regexp_eatRegExpUnicodeEscapeSequence(i,h)&&(f=i.lastIntValue),Do(f)?(i.lastIntValue=f,!0):(i.pos=n,!1)};function Do(i){return w(i,!0)||i===36||i===95||i===8204||i===8205}ee.regexp_eatAtomEscape=function(i){return this.regexp_eatBackReference(i)||this.regexp_eatCharacterClassEscape(i)||this.regexp_eatCharacterEscape(i)||i.switchN&&this.regexp_eatKGroupName(i)?!0:(i.switchU&&(i.current()===99&&i.raise("Invalid unicode escape"),i.raise("Invalid escape")),!1)},ee.regexp_eatBackReference=function(i){var n=i.pos;if(this.regexp_eatDecimalEscape(i)){var h=i.lastIntValue;if(i.switchU)return h>i.maxBackReference&&(i.maxBackReference=h),!0;if(h<=i.numCapturingParens)return!0;i.pos=n}return!1},ee.regexp_eatKGroupName=function(i){if(i.eat(107)){if(this.regexp_eatGroupName(i))return i.backReferenceNames.push(i.lastStringValue),!0;i.raise("Invalid named reference")}return!1},ee.regexp_eatCharacterEscape=function(i){return this.regexp_eatControlEscape(i)||this.regexp_eatCControlLetter(i)||this.regexp_eatZero(i)||this.regexp_eatHexEscapeSequence(i)||this.regexp_eatRegExpUnicodeEscapeSequence(i,!1)||!i.switchU&&this.regexp_eatLegacyOctalEscapeSequence(i)||this.regexp_eatIdentityEscape(i)},ee.regexp_eatCControlLetter=function(i){var n=i.pos;if(i.eat(99)){if(this.regexp_eatControlLetter(i))return!0;i.pos=n}return!1},ee.regexp_eatZero=function(i){return i.current()===48&&!xi(i.lookahead())?(i.lastIntValue=0,i.advance(),!0):!1},ee.regexp_eatControlEscape=function(i){var n=i.current();return n===116?(i.lastIntValue=9,i.advance(),!0):n===110?(i.lastIntValue=10,i.advance(),!0):n===118?(i.lastIntValue=11,i.advance(),!0):n===102?(i.lastIntValue=12,i.advance(),!0):n===114?(i.lastIntValue=13,i.advance(),!0):!1},ee.regexp_eatControlLetter=function(i){var n=i.current();return hr(n)?(i.lastIntValue=n%32,i.advance(),!0):!1};function hr(i){return i>=65&&i<=90||i>=97&&i<=122}ee.regexp_eatRegExpUnicodeEscapeSequence=function(i,n){n===void 0&&(n=!1);var h=i.pos,f=n||i.switchU;if(i.eat(117)){if(this.regexp_eatFixedHexDigits(i,4)){var v=i.lastIntValue;if(f&&v>=55296&&v<=56319){var T=i.pos;if(i.eat(92)&&i.eat(117)&&this.regexp_eatFixedHexDigits(i,4)){var R=i.lastIntValue;if(R>=56320&&R<=57343)return i.lastIntValue=(v-55296)*1024+(R-56320)+65536,!0}i.pos=T,i.lastIntValue=v}return!0}if(f&&i.eat(123)&&this.regexp_eatHexDigits(i)&&i.eat(125)&&Fo(i.lastIntValue))return!0;f&&i.raise("Invalid unicode escape"),i.pos=h}return!1};function Fo(i){return i>=0&&i<=1114111}ee.regexp_eatIdentityEscape=function(i){if(i.switchU)return this.regexp_eatSyntaxCharacter(i)?!0:i.eat(47)?(i.lastIntValue=47,!0):!1;var n=i.current();return n!==99&&(!i.switchN||n!==107)?(i.lastIntValue=n,i.advance(),!0):!1},ee.regexp_eatDecimalEscape=function(i){i.lastIntValue=0;var n=i.current();if(n>=49&&n<=57){do i.lastIntValue=10*i.lastIntValue+(n-48),i.advance();while((n=i.current())>=48&&n<=57);return!0}return!1};var cr=0,nt=1,$e=2;ee.regexp_eatCharacterClassEscape=function(i){var n=i.current();if(Bo(n))return i.lastIntValue=-1,i.advance(),nt;var h=!1;if(i.switchU&&this.options.ecmaVersion>=9&&((h=n===80)||n===112)){i.lastIntValue=-1,i.advance();var f;if(i.eat(123)&&(f=this.regexp_eatUnicodePropertyValueExpression(i))&&i.eat(125))return h&&f===$e&&i.raise("Invalid property name"),f;i.raise("Invalid property name")}return cr};function Bo(i){return i===100||i===68||i===115||i===83||i===119||i===87}ee.regexp_eatUnicodePropertyValueExpression=function(i){var n=i.pos;if(this.regexp_eatUnicodePropertyName(i)&&i.eat(61)){var h=i.lastStringValue;if(this.regexp_eatUnicodePropertyValue(i)){var f=i.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(i,h,f),nt}}if(i.pos=n,this.regexp_eatLoneUnicodePropertyNameOrValue(i)){var v=i.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(i,v)}return cr},ee.regexp_validateUnicodePropertyNameAndValue=function(i,n,h){O(i.unicodeProperties.nonBinary,n)||i.raise("Invalid property name"),i.unicodeProperties.nonBinary[n].test(h)||i.raise("Invalid property value")},ee.regexp_validateUnicodePropertyNameOrValue=function(i,n){if(i.unicodeProperties.binary.test(n))return nt;if(i.switchV&&i.unicodeProperties.binaryOfStrings.test(n))return $e;i.raise("Invalid property name")},ee.regexp_eatUnicodePropertyName=function(i){var n=0;for(i.lastStringValue="";lr(n=i.current());)i.lastStringValue+=u(n),i.advance();return i.lastStringValue!==""};function lr(i){return hr(i)||i===95}ee.regexp_eatUnicodePropertyValue=function(i){var n=0;for(i.lastStringValue="";jo(n=i.current());)i.lastStringValue+=u(n),i.advance();return i.lastStringValue!==""};function jo(i){return lr(i)||xi(i)}ee.regexp_eatLoneUnicodePropertyNameOrValue=function(i){return this.regexp_eatUnicodePropertyValue(i)},ee.regexp_eatCharacterClass=function(i){if(i.eat(91)){var n=i.eat(94),h=this.regexp_classContents(i);return i.eat(93)||i.raise("Unterminated character class"),n&&h===$e&&i.raise("Negated character class may contain strings"),!0}return!1},ee.regexp_classContents=function(i){return i.current()===93?nt:i.switchV?this.regexp_classSetExpression(i):(this.regexp_nonEmptyClassRanges(i),nt)},ee.regexp_nonEmptyClassRanges=function(i){for(;this.regexp_eatClassAtom(i);){var n=i.lastIntValue;if(i.eat(45)&&this.regexp_eatClassAtom(i)){var h=i.lastIntValue;i.switchU&&(n===-1||h===-1)&&i.raise("Invalid character class"),n!==-1&&h!==-1&&n>h&&i.raise("Range out of order in character class")}}},ee.regexp_eatClassAtom=function(i){var n=i.pos;if(i.eat(92)){if(this.regexp_eatClassEscape(i))return!0;if(i.switchU){var h=i.current();(h===99||dr(h))&&i.raise("Invalid class escape"),i.raise("Invalid escape")}i.pos=n}var f=i.current();return f!==93?(i.lastIntValue=f,i.advance(),!0):!1},ee.regexp_eatClassEscape=function(i){var n=i.pos;if(i.eat(98))return i.lastIntValue=8,!0;if(i.switchU&&i.eat(45))return i.lastIntValue=45,!0;if(!i.switchU&&i.eat(99)){if(this.regexp_eatClassControlLetter(i))return!0;i.pos=n}return this.regexp_eatCharacterClassEscape(i)||this.regexp_eatCharacterEscape(i)},ee.regexp_classSetExpression=function(i){var n=nt,h;if(!this.regexp_eatClassSetRange(i))if(h=this.regexp_eatClassSetOperand(i)){h===$e&&(n=$e);for(var f=i.pos;i.eatChars([38,38]);){if(i.current()!==38&&(h=this.regexp_eatClassSetOperand(i))){h!==$e&&(n=nt);continue}i.raise("Invalid character in character class")}if(f!==i.pos)return n;for(;i.eatChars([45,45]);)this.regexp_eatClassSetOperand(i)||i.raise("Invalid character in character class");if(f!==i.pos)return n}else i.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(i)){if(h=this.regexp_eatClassSetOperand(i),!h)return n;h===$e&&(n=$e)}},ee.regexp_eatClassSetRange=function(i){var n=i.pos;if(this.regexp_eatClassSetCharacter(i)){var h=i.lastIntValue;if(i.eat(45)&&this.regexp_eatClassSetCharacter(i)){var f=i.lastIntValue;return h!==-1&&f!==-1&&h>f&&i.raise("Range out of order in character class"),!0}i.pos=n}return!1},ee.regexp_eatClassSetOperand=function(i){return this.regexp_eatClassSetCharacter(i)?nt:this.regexp_eatClassStringDisjunction(i)||this.regexp_eatNestedClass(i)},ee.regexp_eatNestedClass=function(i){var n=i.pos;if(i.eat(91)){var h=i.eat(94),f=this.regexp_classContents(i);if(i.eat(93))return h&&f===$e&&i.raise("Negated character class may contain strings"),f;i.pos=n}if(i.eat(92)){var v=this.regexp_eatCharacterClassEscape(i);if(v)return v;i.pos=n}return null},ee.regexp_eatClassStringDisjunction=function(i){var n=i.pos;if(i.eatChars([92,113])){if(i.eat(123)){var h=this.regexp_classStringDisjunctionContents(i);if(i.eat(125))return h}else i.raise("Invalid escape");i.pos=n}return null},ee.regexp_classStringDisjunctionContents=function(i){for(var n=this.regexp_classString(i);i.eat(124);)this.regexp_classString(i)===$e&&(n=$e);return n},ee.regexp_classString=function(i){for(var n=0;this.regexp_eatClassSetCharacter(i);)n++;return n===1?nt:$e},ee.regexp_eatClassSetCharacter=function(i){var n=i.pos;if(i.eat(92))return this.regexp_eatCharacterEscape(i)||this.regexp_eatClassSetReservedPunctuator(i)?!0:i.eat(98)?(i.lastIntValue=8,!0):(i.pos=n,!1);var h=i.current();return h<0||h===i.lookahead()&&Uo(h)||Ho(h)?!1:(i.advance(),i.lastIntValue=h,!0)};function Uo(i){return i===33||i>=35&&i<=38||i>=42&&i<=44||i===46||i>=58&&i<=64||i===94||i===96||i===126}function Ho(i){return i===40||i===41||i===45||i===47||i>=91&&i<=93||i>=123&&i<=125}ee.regexp_eatClassSetReservedPunctuator=function(i){var n=i.current();return qo(n)?(i.lastIntValue=n,i.advance(),!0):!1};function qo(i){return i===33||i===35||i===37||i===38||i===44||i===45||i>=58&&i<=62||i===64||i===96||i===126}ee.regexp_eatClassControlLetter=function(i){var n=i.current();return xi(n)||n===95?(i.lastIntValue=n%32,i.advance(),!0):!1},ee.regexp_eatHexEscapeSequence=function(i){var n=i.pos;if(i.eat(120)){if(this.regexp_eatFixedHexDigits(i,2))return!0;i.switchU&&i.raise("Invalid escape"),i.pos=n}return!1},ee.regexp_eatDecimalDigits=function(i){var n=i.pos,h=0;for(i.lastIntValue=0;xi(h=i.current());)i.lastIntValue=10*i.lastIntValue+(h-48),i.advance();return i.pos!==n};function xi(i){return i>=48&&i<=57}ee.regexp_eatHexDigits=function(i){var n=i.pos,h=0;for(i.lastIntValue=0;pr(h=i.current());)i.lastIntValue=16*i.lastIntValue+fr(h),i.advance();return i.pos!==n};function pr(i){return i>=48&&i<=57||i>=65&&i<=70||i>=97&&i<=102}function fr(i){return i>=65&&i<=70?10+(i-65):i>=97&&i<=102?10+(i-97):i-48}ee.regexp_eatLegacyOctalEscapeSequence=function(i){if(this.regexp_eatOctalDigit(i)){var n=i.lastIntValue;if(this.regexp_eatOctalDigit(i)){var h=i.lastIntValue;n<=3&&this.regexp_eatOctalDigit(i)?i.lastIntValue=n*64+h*8+i.lastIntValue:i.lastIntValue=n*8+h}else i.lastIntValue=n;return!0}return!1},ee.regexp_eatOctalDigit=function(i){var n=i.current();return dr(n)?(i.lastIntValue=n-48,i.advance(),!0):(i.lastIntValue=0,!1)};function dr(i){return i>=48&&i<=55}ee.regexp_eatFixedHexDigits=function(i,n){var h=i.pos;i.lastIntValue=0;for(var f=0;f<n;++f){var v=i.current();if(!pr(v))return i.pos=h,!1;i.lastIntValue=16*i.lastIntValue+fr(v),i.advance()}return!0};var yi=function(n){this.type=n.type,this.value=n.value,this.start=n.start,this.end=n.end,n.options.locations&&(this.loc=new C(n,n.startLoc,n.endLoc)),n.options.ranges&&(this.range=[n.start,n.end])},xe=be.prototype;xe.next=function(i){!i&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new yi(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},xe.getToken=function(){return this.next(),new yi(this)},typeof Symbol<"u"&&(xe[Symbol.iterator]=function(){var i=this;return{next:function(){var n=i.getToken();return{done:n.type===m.eof,value:n}}}}),xe.nextToken=function(){var i=this.curContext();if((!i||!i.preserveSpace)&&this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length)return this.finishToken(m.eof);if(i.override)return i.override(this);this.readToken(this.fullCharCodeAtPos())},xe.readToken=function(i){return B(i,this.options.ecmaVersion>=6)||i===92?this.readWord():this.getTokenFromCode(i)},xe.fullCharCodeAt=function(i){var n=this.input.charCodeAt(i);if(n<=55295||n>=56320)return n;var h=this.input.charCodeAt(i+1);return h<=56319||h>=57344?n:(n<<10)+h-56613888},xe.fullCharCodeAtPos=function(){return this.fullCharCodeAt(this.pos)},xe.skipBlockComment=function(){var i=this.options.onComment&&this.curPosition(),n=this.pos,h=this.input.indexOf("*/",this.pos+=2);if(h===-1&&this.raise(this.pos-2,"Unterminated comment"),this.pos=h+2,this.options.locations)for(var f=void 0,v=n;(f=X(this.input,v,this.pos))>-1;)++this.curLine,v=this.lineStart=f;this.options.onComment&&this.options.onComment(!0,this.input.slice(n+2,h),n,this.pos,i,this.curPosition())},xe.skipLineComment=function(i){for(var n=this.pos,h=this.options.onComment&&this.curPosition(),f=this.input.charCodeAt(this.pos+=i);this.pos<this.input.length&&!ne(f);)f=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(n+i,this.pos),n,this.pos,h,this.curPosition())},xe.skipSpace=function(){e:for(;this.pos<this.input.length;){var i=this.input.charCodeAt(this.pos);switch(i){case 32:case 160:++this.pos;break;case 13:this.input.charCodeAt(this.pos+1)===10&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break e}break;default:if(i>8&&i<14||i>=5760&&Z.test(String.fromCharCode(i)))++this.pos;else break e}}},xe.finishToken=function(i,n){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var h=this.type;this.type=i,this.value=n,this.updateContext(h)},xe.readToken_dot=function(){var i=this.input.charCodeAt(this.pos+1);if(i>=48&&i<=57)return this.readNumber(!0);var n=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&i===46&&n===46?(this.pos+=3,this.finishToken(m.ellipsis)):(++this.pos,this.finishToken(m.dot))},xe.readToken_slash=function(){var i=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):i===61?this.finishOp(m.assign,2):this.finishOp(m.slash,1)},xe.readToken_mult_modulo_exp=function(i){var n=this.input.charCodeAt(this.pos+1),h=1,f=i===42?m.star:m.modulo;return this.options.ecmaVersion>=7&&i===42&&n===42&&(++h,f=m.starstar,n=this.input.charCodeAt(this.pos+2)),n===61?this.finishOp(m.assign,h+1):this.finishOp(f,h)},xe.readToken_pipe_amp=function(i){var n=this.input.charCodeAt(this.pos+1);if(n===i){if(this.options.ecmaVersion>=12){var h=this.input.charCodeAt(this.pos+2);if(h===61)return this.finishOp(m.assign,3)}return this.finishOp(i===124?m.logicalOR:m.logicalAND,2)}return n===61?this.finishOp(m.assign,2):this.finishOp(i===124?m.bitwiseOR:m.bitwiseAND,1)},xe.readToken_caret=function(){var i=this.input.charCodeAt(this.pos+1);return i===61?this.finishOp(m.assign,2):this.finishOp(m.bitwiseXOR,1)},xe.readToken_plus_min=function(i){var n=this.input.charCodeAt(this.pos+1);return n===i?n===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||ae.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(m.incDec,2):n===61?this.finishOp(m.assign,2):this.finishOp(m.plusMin,1)},xe.readToken_lt_gt=function(i){var n=this.input.charCodeAt(this.pos+1),h=1;return n===i?(h=i===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+h)===61?this.finishOp(m.assign,h+1):this.finishOp(m.bitShift,h)):n===33&&i===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45?(this.skipLineComment(4),this.skipSpace(),this.nextToken()):(n===61&&(h=2),this.finishOp(m.relational,h))},xe.readToken_eq_excl=function(i){var n=this.input.charCodeAt(this.pos+1);return n===61?this.finishOp(m.equality,this.input.charCodeAt(this.pos+2)===61?3:2):i===61&&n===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(m.arrow)):this.finishOp(i===61?m.eq:m.prefix,1)},xe.readToken_question=function(){var i=this.options.ecmaVersion;if(i>=11){var n=this.input.charCodeAt(this.pos+1);if(n===46){var h=this.input.charCodeAt(this.pos+2);if(h<48||h>57)return this.finishOp(m.questionDot,2)}if(n===63){if(i>=12){var f=this.input.charCodeAt(this.pos+2);if(f===61)return this.finishOp(m.assign,3)}return this.finishOp(m.coalesce,2)}}return this.finishOp(m.question,1)},xe.readToken_numberSign=function(){var i=this.options.ecmaVersion,n=35;if(i>=13&&(++this.pos,n=this.fullCharCodeAtPos(),B(n,!0)||n===92))return this.finishToken(m.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+u(n)+"'")},xe.getTokenFromCode=function(i){switch(i){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(m.parenL);case 41:return++this.pos,this.finishToken(m.parenR);case 59:return++this.pos,this.finishToken(m.semi);case 44:return++this.pos,this.finishToken(m.comma);case 91:return++this.pos,this.finishToken(m.bracketL);case 93:return++this.pos,this.finishToken(m.bracketR);case 123:return++this.pos,this.finishToken(m.braceL);case 125:return++this.pos,this.finishToken(m.braceR);case 58:return++this.pos,this.finishToken(m.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(m.backQuote);case 48:var n=this.input.charCodeAt(this.pos+1);if(n===120||n===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(n===111||n===79)return this.readRadixNumber(8);if(n===98||n===66)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(i);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(i);case 124:case 38:return this.readToken_pipe_amp(i);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(i);case 60:case 62:return this.readToken_lt_gt(i);case 61:case 33:return this.readToken_eq_excl(i);case 63:return this.readToken_question();case 126:return this.finishOp(m.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+u(i)+"'")},xe.finishOp=function(i,n){var h=this.input.slice(this.pos,this.pos+n);return this.pos+=n,this.finishToken(i,h)},xe.readRegexp=function(){for(var i,n,h=this.pos;;){this.pos>=this.input.length&&this.raise(h,"Unterminated regular expression");var f=this.input.charAt(this.pos);if(ae.test(f)&&this.raise(h,"Unterminated regular expression"),i)i=!1;else{if(f==="[")n=!0;else if(f==="]"&&n)n=!1;else if(f==="/"&&!n)break;i=f==="\\"}++this.pos}var v=this.input.slice(h,this.pos);++this.pos;var T=this.pos,R=this.readWord1();this.containsEsc&&this.unexpected(T);var H=this.regexpState||(this.regexpState=new tt(this));H.reset(h,v,R),this.validateRegExpFlags(H),this.validateRegExpPattern(H);var z=null;try{z=new RegExp(v,R)}catch{}return this.finishToken(m.regexp,{pattern:v,flags:R,value:z})},xe.readInt=function(i,n,h){for(var f=this.options.ecmaVersion>=12&&n===void 0,v=h&&this.input.charCodeAt(this.pos)===48,T=this.pos,R=0,H=0,z=0,ce=n??1/0;z<ce;++z,++this.pos){var me=this.input.charCodeAt(this.pos),we=void 0;if(f&&me===95){v&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),H===95&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),z===0&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),H=me;continue}if(me>=97?we=me-97+10:me>=65?we=me-65+10:me>=48&&me<=57?we=me-48:we=1/0,we>=i)break;H=me,R=R*i+we}return f&&H===95&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===T||n!=null&&this.pos-T!==n?null:R};function Wo(i,n){return n?parseInt(i,8):parseFloat(i.replace(/_/g,""))}function mr(i){return typeof BigInt!="function"?null:BigInt(i.replace(/_/g,""))}xe.readRadixNumber=function(i){var n=this.pos;this.pos+=2;var h=this.readInt(i);return h==null&&this.raise(this.start+2,"Expected number in radix "+i),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(h=mr(this.input.slice(n,this.pos)),++this.pos):B(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(m.num,h)},xe.readNumber=function(i){var n=this.pos;!i&&this.readInt(10,void 0,!0)===null&&this.raise(n,"Invalid number");var h=this.pos-n>=2&&this.input.charCodeAt(n)===48;h&&this.strict&&this.raise(n,"Invalid number");var f=this.input.charCodeAt(this.pos);if(!h&&!i&&this.options.ecmaVersion>=11&&f===110){var v=mr(this.input.slice(n,this.pos));return++this.pos,B(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(m.num,v)}h&&/[89]/.test(this.input.slice(n,this.pos))&&(h=!1),f===46&&!h&&(++this.pos,this.readInt(10),f=this.input.charCodeAt(this.pos)),(f===69||f===101)&&!h&&(f=this.input.charCodeAt(++this.pos),(f===43||f===45)&&++this.pos,this.readInt(10)===null&&this.raise(n,"Invalid number")),B(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var T=Wo(this.input.slice(n,this.pos),h);return this.finishToken(m.num,T)},xe.readCodePoint=function(){var i=this.input.charCodeAt(this.pos),n;if(i===123){this.options.ecmaVersion<6&&this.unexpected();var h=++this.pos;n=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,n>1114111&&this.invalidStringToken(h,"Code point out of bounds")}else n=this.readHexChar(4);return n},xe.readString=function(i){for(var n="",h=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var f=this.input.charCodeAt(this.pos);if(f===i)break;f===92?(n+=this.input.slice(h,this.pos),n+=this.readEscapedChar(!1),h=this.pos):f===8232||f===8233?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(ne(f)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return n+=this.input.slice(h,this.pos++),this.finishToken(m.string,n)};var xr={};xe.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(i){if(i===xr)this.readInvalidTemplateToken();else throw i}this.inTemplateElement=!1},xe.invalidStringToken=function(i,n){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw xr;this.raise(i,n)},xe.readTmplToken=function(){for(var i="",n=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var h=this.input.charCodeAt(this.pos);if(h===96||h===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos===this.start&&(this.type===m.template||this.type===m.invalidTemplate)?h===36?(this.pos+=2,this.finishToken(m.dollarBraceL)):(++this.pos,this.finishToken(m.backQuote)):(i+=this.input.slice(n,this.pos),this.finishToken(m.template,i));if(h===92)i+=this.input.slice(n,this.pos),i+=this.readEscapedChar(!0),n=this.pos;else if(ne(h)){switch(i+=this.input.slice(n,this.pos),++this.pos,h){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:i+=`
5
+ `),cooked:this.value},this.next(),h.tail=this.type===m.backQuote,this.finishNode(h,"TemplateElement")},le.parseTemplate=function(i){i===void 0&&(i={});var n=i.isTagged;n===void 0&&(n=!1);var h=this.startNode();this.next(),h.expressions=[];var f=this.parseTemplateElement({isTagged:n});for(h.quasis=[f];!f.tail;)this.type===m.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(m.dollarBraceL),h.expressions.push(this.parseExpression()),this.expect(m.braceR),h.quasis.push(f=this.parseTemplateElement({isTagged:n}));return this.next(),this.finishNode(h,"TemplateLiteral")},le.isAsyncProp=function(i){return!i.computed&&i.key.type==="Identifier"&&i.key.name==="async"&&(this.type===m.name||this.type===m.num||this.type===m.string||this.type===m.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===m.star)&&!ae.test(this.input.slice(this.lastTokEnd,this.start))},le.parseObj=function(i,n){var h=this.startNode(),f=!0,v={};for(h.properties=[],this.next();!this.eat(m.braceR);){if(f)f=!1;else if(this.expect(m.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(m.braceR))break;var P=this.parseProperty(i,n);i||this.checkPropClash(P,v,n),h.properties.push(P)}return this.finishNode(h,i?"ObjectPattern":"ObjectExpression")},le.parseProperty=function(i,n){var h=this.startNode(),f,v,P,R;if(this.options.ecmaVersion>=9&&this.eat(m.ellipsis))return i?(h.argument=this.parseIdent(!1),this.type===m.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(h,"RestElement")):(h.argument=this.parseMaybeAssign(!1,n),this.type===m.comma&&n&&n.trailingComma<0&&(n.trailingComma=this.start),this.finishNode(h,"SpreadElement"));this.options.ecmaVersion>=6&&(h.method=!1,h.shorthand=!1,(i||n)&&(P=this.start,R=this.startLoc),i||(f=this.eat(m.star)));var H=this.containsEsc;return this.parsePropertyName(h),!i&&!H&&this.options.ecmaVersion>=8&&!f&&this.isAsyncProp(h)?(v=!0,f=this.options.ecmaVersion>=9&&this.eat(m.star),this.parsePropertyName(h)):v=!1,this.parsePropertyValue(h,i,f,v,P,R,n,H),this.finishNode(h,"Property")},le.parseGetterSetter=function(i){var n=i.key.name;this.parsePropertyName(i),i.value=this.parseMethod(!1),i.kind=n;var h=i.kind==="get"?0:1;if(i.value.params.length!==h){var f=i.value.start;i.kind==="get"?this.raiseRecoverable(f,"getter should have no params"):this.raiseRecoverable(f,"setter should have exactly one param")}else i.kind==="set"&&i.value.params[0].type==="RestElement"&&this.raiseRecoverable(i.value.params[0].start,"Setter cannot use rest params")},le.parsePropertyValue=function(i,n,h,f,v,P,R,H){(h||f)&&this.type===m.colon&&this.unexpected(),this.eat(m.colon)?(i.value=n?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,R),i.kind="init"):this.options.ecmaVersion>=6&&this.type===m.parenL?(n&&this.unexpected(),i.method=!0,i.value=this.parseMethod(h,f),i.kind="init"):!n&&!H&&this.options.ecmaVersion>=5&&!i.computed&&i.key.type==="Identifier"&&(i.key.name==="get"||i.key.name==="set")&&this.type!==m.comma&&this.type!==m.braceR&&this.type!==m.eq?((h||f)&&this.unexpected(),this.parseGetterSetter(i)):this.options.ecmaVersion>=6&&!i.computed&&i.key.type==="Identifier"?((h||f)&&this.unexpected(),this.checkUnreserved(i.key),i.key.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=v),n?i.value=this.parseMaybeDefault(v,P,this.copyNode(i.key)):this.type===m.eq&&R?(R.shorthandAssign<0&&(R.shorthandAssign=this.start),i.value=this.parseMaybeDefault(v,P,this.copyNode(i.key))):i.value=this.copyNode(i.key),i.kind="init",i.shorthand=!0):this.unexpected()},le.parsePropertyName=function(i){if(this.options.ecmaVersion>=6){if(this.eat(m.bracketL))return i.computed=!0,i.key=this.parseMaybeAssign(),this.expect(m.bracketR),i.key;i.computed=!1}return i.key=this.type===m.num||this.type===m.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")},le.initFunction=function(i){i.id=null,this.options.ecmaVersion>=6&&(i.generator=i.expression=!1),this.options.ecmaVersion>=8&&(i.async=!1)},le.parseMethod=function(i,n,h){var f=this.startNode(),v=this.yieldPos,P=this.awaitPos,R=this.awaitIdentPos;return this.initFunction(f),this.options.ecmaVersion>=6&&(f.generator=i),this.options.ecmaVersion>=8&&(f.async=!!n),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(kt(n,f.generator)|de|(h?ge:0)),this.expect(m.parenL),f.params=this.parseBindingList(m.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(f,!1,!0,!1),this.yieldPos=v,this.awaitPos=P,this.awaitIdentPos=R,this.finishNode(f,"FunctionExpression")},le.parseArrowExpression=function(i,n,h,f){var v=this.yieldPos,P=this.awaitPos,R=this.awaitIdentPos;return this.enterScope(kt(h,!1)|Y),this.initFunction(i),this.options.ecmaVersion>=8&&(i.async=!!h),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,i.params=this.toAssignableList(n,!0),this.parseFunctionBody(i,!0,!1,f),this.yieldPos=v,this.awaitPos=P,this.awaitIdentPos=R,this.finishNode(i,"ArrowFunctionExpression")},le.parseFunctionBody=function(i,n,h,f){var v=n&&this.type!==m.braceL,P=this.strict,R=!1;if(v)i.body=this.parseMaybeAssign(f),i.expression=!0,this.checkParams(i,!1);else{var H=this.options.ecmaVersion>=7&&!this.isSimpleParamList(i.params);(!P||H)&&(R=this.strictDirective(this.end),R&&H&&this.raiseRecoverable(i.start,"Illegal 'use strict' directive in function with non-simple parameter list"));var z=this.labels;this.labels=[],R&&(this.strict=!0),this.checkParams(i,!P&&!R&&!n&&!h&&this.isSimpleParamList(i.params)),this.strict&&i.id&&this.checkLValSimple(i.id,Ht),i.body=this.parseBlock(!1,void 0,R&&!P),i.expression=!1,this.adaptDirectivePrologue(i.body.body),this.labels=z}this.exitScope()},le.isSimpleParamList=function(i){for(var n=0,h=i;n<h.length;n+=1){var f=h[n];if(f.type!=="Identifier")return!1}return!0},le.checkParams=function(i,n){for(var h=Object.create(null),f=0,v=i.params;f<v.length;f+=1){var P=v[f];this.checkLValInnerPattern(P,bt,n?null:h)}},le.parseExprList=function(i,n,h,f){for(var v=[],P=!0;!this.eat(i);){if(P)P=!1;else if(this.expect(m.comma),n&&this.afterTrailingComma(i))break;var R=void 0;h&&this.type===m.comma?R=null:this.type===m.ellipsis?(R=this.parseSpread(f),f&&this.type===m.comma&&f.trailingComma<0&&(f.trailingComma=this.start)):R=this.parseMaybeAssign(!1,f),v.push(R)}return v},le.checkUnreserved=function(i){var n=i.start,h=i.end,f=i.name;if(this.inGenerator&&f==="yield"&&this.raiseRecoverable(n,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&f==="await"&&this.raiseRecoverable(n,"Cannot use 'await' as identifier inside an async function"),!(this.currentThisScope().flags&je)&&f==="arguments"&&this.raiseRecoverable(n,"Cannot use 'arguments' in class field initializer"),this.inClassStaticBlock&&(f==="arguments"||f==="await")&&this.raise(n,"Cannot use "+f+" in class static initialization block"),this.keywords.test(f)&&this.raise(n,"Unexpected keyword '"+f+"'"),!(this.options.ecmaVersion<6&&this.input.slice(n,h).indexOf("\\")!==-1)){var v=this.strict?this.reservedWordsStrict:this.reservedWords;v.test(f)&&(!this.inAsync&&f==="await"&&this.raiseRecoverable(n,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(n,"The keyword '"+f+"' is reserved"))}},le.parseIdent=function(i){var n=this.parseIdentNode();return this.next(!!i),this.finishNode(n,"Identifier"),i||(this.checkUnreserved(n),n.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=n.start)),n},le.parseIdentNode=function(){var i=this.startNode();return this.type===m.name?i.name=this.value:this.type.keyword?(i.name=this.type.keyword,(i.name==="class"||i.name==="function")&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46)&&this.context.pop(),this.type=m.name):this.unexpected(),i},le.parsePrivateIdent=function(){var i=this.startNode();return this.type===m.privateId?i.name=this.value:this.unexpected(),this.next(),this.finishNode(i,"PrivateIdentifier"),this.options.checkPrivateFields&&(this.privateNameStack.length===0?this.raise(i.start,"Private field '#"+i.name+"' must be declared in an enclosing class"):this.privateNameStack[this.privateNameStack.length-1].used.push(i)),i},le.parseYield=function(i){this.yieldPos||(this.yieldPos=this.start);var n=this.startNode();return this.next(),this.type===m.semi||this.canInsertSemicolon()||this.type!==m.star&&!this.type.startsExpr?(n.delegate=!1,n.argument=null):(n.delegate=this.eat(m.star),n.argument=this.parseMaybeAssign(i)),this.finishNode(n,"YieldExpression")},le.parseAwait=function(i){this.awaitPos||(this.awaitPos=this.start);var n=this.startNode();return this.next(),n.argument=this.parseMaybeUnary(null,!0,!1,i),this.finishNode(n,"AwaitExpression")};var di=be.prototype;di.raise=function(i,n){var h=A(this.input,i);n+=" ("+h.line+":"+h.column+")",this.sourceFile&&(n+=" in "+this.sourceFile);var f=new SyntaxError(n);throw f.pos=i,f.loc=h,f.raisedAt=this.pos,f},di.raiseRecoverable=di.raise,di.curPosition=function(){if(this.options.locations)return new y(this.curLine,this.pos-this.lineStart)};var dt=be.prototype,wo=function(n){this.flags=n,this.var=[],this.lexical=[],this.functions=[]};dt.enterScope=function(i){this.scopeStack.push(new wo(i))},dt.exitScope=function(){this.scopeStack.pop()},dt.treatFunctionsAsVarInScope=function(i){return i.flags&F||!this.inModule&&i.flags&J},dt.declareName=function(i,n,h){var f=!1;if(n===qe){var v=this.currentScope();f=v.lexical.indexOf(i)>-1||v.functions.indexOf(i)>-1||v.var.indexOf(i)>-1,v.lexical.push(i),this.inModule&&v.flags&J&&delete this.undefinedExports[i]}else if(n===Ut){var P=this.currentScope();P.lexical.push(i)}else if(n===St){var R=this.currentScope();this.treatFunctionsAsVar?f=R.lexical.indexOf(i)>-1:f=R.lexical.indexOf(i)>-1||R.var.indexOf(i)>-1,R.functions.push(i)}else for(var H=this.scopeStack.length-1;H>=0;--H){var z=this.scopeStack[H];if(z.lexical.indexOf(i)>-1&&!(z.flags&oe&&z.lexical[0]===i)||!this.treatFunctionsAsVarInScope(z)&&z.functions.indexOf(i)>-1){f=!0;break}if(z.var.push(i),this.inModule&&z.flags&J&&delete this.undefinedExports[i],z.flags&je)break}f&&this.raiseRecoverable(h,"Identifier '"+i+"' has already been declared")},dt.checkLocalExport=function(i){this.scopeStack[0].lexical.indexOf(i.name)===-1&&this.scopeStack[0].var.indexOf(i.name)===-1&&(this.undefinedExports[i.name]=i)},dt.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},dt.currentVarScope=function(){for(var i=this.scopeStack.length-1;;i--){var n=this.scopeStack[i];if(n.flags&(je|Ie|ke))return n}},dt.currentThisScope=function(){for(var i=this.scopeStack.length-1;;i--){var n=this.scopeStack[i];if(n.flags&(je|Ie|ke)&&!(n.flags&Y))return n}};var Gt=function(n,h,f){this.type="",this.start=h,this.end=0,n.options.locations&&(this.loc=new C(n,f)),n.options.directSourceFile&&(this.sourceFile=n.options.directSourceFile),n.options.ranges&&(this.range=[h,0])},$t=be.prototype;$t.startNode=function(){return new Gt(this,this.start,this.startLoc)},$t.startNodeAt=function(i,n){return new Gt(this,i,n)};function Js(i,n,h,f){return i.type=n,i.end=h,this.options.locations&&(i.loc.end=f),this.options.ranges&&(i.range[1]=h),i}$t.finishNode=function(i,n){return Js.call(this,i,n,this.lastTokEnd,this.lastTokEndLoc)},$t.finishNodeAt=function(i,n,h,f){return Js.call(this,i,n,h,f)},$t.copyNode=function(i){var n=new Gt(this,i.start,this.startLoc);for(var h in i)n[h]=i[h];return n};var _o="Berf Beria_Erfe Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sidetic Sidt Sunu Sunuwar Tai_Yo Tayo Todhri Todr Tolong_Siki Tols Tulu_Tigalari Tutg Unknown Zzzz",Qs="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",Ys=Qs+" Extended_Pictographic",Zs=Ys,er=Zs+" EBase EComp EMod EPres ExtPict",tr=er,Ao=tr,Eo={9:Qs,10:Ys,11:Zs,12:er,13:tr,14:Ao},ko="Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji",To={9:"",10:"",11:"",12:"",13:"",14:ko},ir="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",sr="Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",rr=sr+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",ar=rr+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",nr=ar+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",or=nr+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",Po=or+" "+_o,Io={9:sr,10:rr,11:ar,12:nr,13:or,14:Po},ur={};function No(i){var n=ur[i]={binary:r(Eo[i]+" "+ir),binaryOfStrings:r(To[i]),nonBinary:{General_Category:r(ir),Script:r(Io[i])}};n.nonBinary.Script_Extensions=n.nonBinary.Script,n.nonBinary.gc=n.nonBinary.General_Category,n.nonBinary.sc=n.nonBinary.Script,n.nonBinary.scx=n.nonBinary.Script_Extensions}for(var Yi=0,hr=[9,10,11,12,13,14];Yi<hr.length;Yi+=1){var Lo=hr[Yi];No(Lo)}var ee=be.prototype,mi=function(n,h){this.parent=n,this.base=h||this};mi.prototype.separatedFrom=function(n){for(var h=this;h;h=h.parent)for(var f=n;f;f=f.parent)if(h.base===f.base&&h!==f)return!0;return!1},mi.prototype.sibling=function(){return new mi(this.parent,this.base)};var tt=function(n){this.parser=n,this.validFlags="gim"+(n.options.ecmaVersion>=6?"uy":"")+(n.options.ecmaVersion>=9?"s":"")+(n.options.ecmaVersion>=13?"d":"")+(n.options.ecmaVersion>=15?"v":""),this.unicodeProperties=ur[n.options.ecmaVersion>=14?14:n.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchV=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=Object.create(null),this.backReferenceNames=[],this.branchID=null};tt.prototype.reset=function(n,h,f){var v=f.indexOf("v")!==-1,P=f.indexOf("u")!==-1;this.start=n|0,this.source=h+"",this.flags=f,v&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=P&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=P&&this.parser.options.ecmaVersion>=9)},tt.prototype.raise=function(n){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+n)},tt.prototype.at=function(n,h){h===void 0&&(h=!1);var f=this.source,v=f.length;if(n>=v)return-1;var P=f.charCodeAt(n);if(!(h||this.switchU)||P<=55295||P>=57344||n+1>=v)return P;var R=f.charCodeAt(n+1);return R>=56320&&R<=57343?(P<<10)+R-56613888:P},tt.prototype.nextIndex=function(n,h){h===void 0&&(h=!1);var f=this.source,v=f.length;if(n>=v)return v;var P=f.charCodeAt(n),R;return!(h||this.switchU)||P<=55295||P>=57344||n+1>=v||(R=f.charCodeAt(n+1))<56320||R>57343?n+1:n+2},tt.prototype.current=function(n){return n===void 0&&(n=!1),this.at(this.pos,n)},tt.prototype.lookahead=function(n){return n===void 0&&(n=!1),this.at(this.nextIndex(this.pos,n),n)},tt.prototype.advance=function(n){n===void 0&&(n=!1),this.pos=this.nextIndex(this.pos,n)},tt.prototype.eat=function(n,h){return h===void 0&&(h=!1),this.current(h)===n?(this.advance(h),!0):!1},tt.prototype.eatChars=function(n,h){h===void 0&&(h=!1);for(var f=this.pos,v=0,P=n;v<P.length;v+=1){var R=P[v],H=this.at(f,h);if(H===-1||H!==R)return!1;f=this.nextIndex(f,h)}return this.pos=f,!0},ee.validateRegExpFlags=function(i){for(var n=i.validFlags,h=i.flags,f=!1,v=!1,P=0;P<h.length;P++){var R=h.charAt(P);n.indexOf(R)===-1&&this.raise(i.start,"Invalid regular expression flag"),h.indexOf(R,P+1)>-1&&this.raise(i.start,"Duplicate regular expression flag"),R==="u"&&(f=!0),R==="v"&&(v=!0)}this.options.ecmaVersion>=15&&f&&v&&this.raise(i.start,"Invalid regular expression flag")};function Ro(i){for(var n in i)return!0;return!1}ee.validateRegExpPattern=function(i){this.regexp_pattern(i),!i.switchN&&this.options.ecmaVersion>=9&&Ro(i.groupNames)&&(i.switchN=!0,this.regexp_pattern(i))},ee.regexp_pattern=function(i){i.pos=0,i.lastIntValue=0,i.lastStringValue="",i.lastAssertionIsQuantifiable=!1,i.numCapturingParens=0,i.maxBackReference=0,i.groupNames=Object.create(null),i.backReferenceNames.length=0,i.branchID=null,this.regexp_disjunction(i),i.pos!==i.source.length&&(i.eat(41)&&i.raise("Unmatched ')'"),(i.eat(93)||i.eat(125))&&i.raise("Lone quantifier brackets")),i.maxBackReference>i.numCapturingParens&&i.raise("Invalid escape");for(var n=0,h=i.backReferenceNames;n<h.length;n+=1){var f=h[n];i.groupNames[f]||i.raise("Invalid named capture referenced")}},ee.regexp_disjunction=function(i){var n=this.options.ecmaVersion>=16;for(n&&(i.branchID=new mi(i.branchID,null)),this.regexp_alternative(i);i.eat(124);)n&&(i.branchID=i.branchID.sibling()),this.regexp_alternative(i);n&&(i.branchID=i.branchID.parent),this.regexp_eatQuantifier(i,!0)&&i.raise("Nothing to repeat"),i.eat(123)&&i.raise("Lone quantifier brackets")},ee.regexp_alternative=function(i){for(;i.pos<i.source.length&&this.regexp_eatTerm(i););},ee.regexp_eatTerm=function(i){return this.regexp_eatAssertion(i)?(i.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(i)&&i.switchU&&i.raise("Invalid quantifier"),!0):(i.switchU?this.regexp_eatAtom(i):this.regexp_eatExtendedAtom(i))?(this.regexp_eatQuantifier(i),!0):!1},ee.regexp_eatAssertion=function(i){var n=i.pos;if(i.lastAssertionIsQuantifiable=!1,i.eat(94)||i.eat(36))return!0;if(i.eat(92)){if(i.eat(66)||i.eat(98))return!0;i.pos=n}if(i.eat(40)&&i.eat(63)){var h=!1;if(this.options.ecmaVersion>=9&&(h=i.eat(60)),i.eat(61)||i.eat(33))return this.regexp_disjunction(i),i.eat(41)||i.raise("Unterminated group"),i.lastAssertionIsQuantifiable=!h,!0}return i.pos=n,!1},ee.regexp_eatQuantifier=function(i,n){return n===void 0&&(n=!1),this.regexp_eatQuantifierPrefix(i,n)?(i.eat(63),!0):!1},ee.regexp_eatQuantifierPrefix=function(i,n){return i.eat(42)||i.eat(43)||i.eat(63)||this.regexp_eatBracedQuantifier(i,n)},ee.regexp_eatBracedQuantifier=function(i,n){var h=i.pos;if(i.eat(123)){var f=0,v=-1;if(this.regexp_eatDecimalDigits(i)&&(f=i.lastIntValue,i.eat(44)&&this.regexp_eatDecimalDigits(i)&&(v=i.lastIntValue),i.eat(125)))return v!==-1&&v<f&&!n&&i.raise("numbers out of order in {} quantifier"),!0;i.switchU&&!n&&i.raise("Incomplete quantifier"),i.pos=h}return!1},ee.regexp_eatAtom=function(i){return this.regexp_eatPatternCharacters(i)||i.eat(46)||this.regexp_eatReverseSolidusAtomEscape(i)||this.regexp_eatCharacterClass(i)||this.regexp_eatUncapturingGroup(i)||this.regexp_eatCapturingGroup(i)},ee.regexp_eatReverseSolidusAtomEscape=function(i){var n=i.pos;if(i.eat(92)){if(this.regexp_eatAtomEscape(i))return!0;i.pos=n}return!1},ee.regexp_eatUncapturingGroup=function(i){var n=i.pos;if(i.eat(40)){if(i.eat(63)){if(this.options.ecmaVersion>=16){var h=this.regexp_eatModifiers(i),f=i.eat(45);if(h||f){for(var v=0;v<h.length;v++){var P=h.charAt(v);h.indexOf(P,v+1)>-1&&i.raise("Duplicate regular expression modifiers")}if(f){var R=this.regexp_eatModifiers(i);!h&&!R&&i.current()===58&&i.raise("Invalid regular expression modifiers");for(var H=0;H<R.length;H++){var z=R.charAt(H);(R.indexOf(z,H+1)>-1||h.indexOf(z)>-1)&&i.raise("Duplicate regular expression modifiers")}}}}if(i.eat(58)){if(this.regexp_disjunction(i),i.eat(41))return!0;i.raise("Unterminated group")}}i.pos=n}return!1},ee.regexp_eatCapturingGroup=function(i){if(i.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(i):i.current()===63&&i.raise("Invalid group"),this.regexp_disjunction(i),i.eat(41))return i.numCapturingParens+=1,!0;i.raise("Unterminated group")}return!1},ee.regexp_eatModifiers=function(i){for(var n="",h=0;(h=i.current())!==-1&&Oo(h);)n+=u(h),i.advance();return n};function Oo(i){return i===105||i===109||i===115}ee.regexp_eatExtendedAtom=function(i){return i.eat(46)||this.regexp_eatReverseSolidusAtomEscape(i)||this.regexp_eatCharacterClass(i)||this.regexp_eatUncapturingGroup(i)||this.regexp_eatCapturingGroup(i)||this.regexp_eatInvalidBracedQuantifier(i)||this.regexp_eatExtendedPatternCharacter(i)},ee.regexp_eatInvalidBracedQuantifier=function(i){return this.regexp_eatBracedQuantifier(i,!0)&&i.raise("Nothing to repeat"),!1},ee.regexp_eatSyntaxCharacter=function(i){var n=i.current();return cr(n)?(i.lastIntValue=n,i.advance(),!0):!1};function cr(i){return i===36||i>=40&&i<=43||i===46||i===63||i>=91&&i<=94||i>=123&&i<=125}ee.regexp_eatPatternCharacters=function(i){for(var n=i.pos,h=0;(h=i.current())!==-1&&!cr(h);)i.advance();return i.pos!==n},ee.regexp_eatExtendedPatternCharacter=function(i){var n=i.current();return n!==-1&&n!==36&&!(n>=40&&n<=43)&&n!==46&&n!==63&&n!==91&&n!==94&&n!==124?(i.advance(),!0):!1},ee.regexp_groupSpecifier=function(i){if(i.eat(63)){this.regexp_eatGroupName(i)||i.raise("Invalid group");var n=this.options.ecmaVersion>=16,h=i.groupNames[i.lastStringValue];if(h)if(n)for(var f=0,v=h;f<v.length;f+=1){var P=v[f];P.separatedFrom(i.branchID)||i.raise("Duplicate capture group name")}else i.raise("Duplicate capture group name");n?(h||(i.groupNames[i.lastStringValue]=[])).push(i.branchID):i.groupNames[i.lastStringValue]=!0}},ee.regexp_eatGroupName=function(i){if(i.lastStringValue="",i.eat(60)){if(this.regexp_eatRegExpIdentifierName(i)&&i.eat(62))return!0;i.raise("Invalid capture group name")}return!1},ee.regexp_eatRegExpIdentifierName=function(i){if(i.lastStringValue="",this.regexp_eatRegExpIdentifierStart(i)){for(i.lastStringValue+=u(i.lastIntValue);this.regexp_eatRegExpIdentifierPart(i);)i.lastStringValue+=u(i.lastIntValue);return!0}return!1},ee.regexp_eatRegExpIdentifierStart=function(i){var n=i.pos,h=this.options.ecmaVersion>=11,f=i.current(h);return i.advance(h),f===92&&this.regexp_eatRegExpUnicodeEscapeSequence(i,h)&&(f=i.lastIntValue),Mo(f)?(i.lastIntValue=f,!0):(i.pos=n,!1)};function Mo(i){return D(i,!0)||i===36||i===95}ee.regexp_eatRegExpIdentifierPart=function(i){var n=i.pos,h=this.options.ecmaVersion>=11,f=i.current(h);return i.advance(h),f===92&&this.regexp_eatRegExpUnicodeEscapeSequence(i,h)&&(f=i.lastIntValue),Vo(f)?(i.lastIntValue=f,!0):(i.pos=n,!1)};function Vo(i){return w(i,!0)||i===36||i===95||i===8204||i===8205}ee.regexp_eatAtomEscape=function(i){return this.regexp_eatBackReference(i)||this.regexp_eatCharacterClassEscape(i)||this.regexp_eatCharacterEscape(i)||i.switchN&&this.regexp_eatKGroupName(i)?!0:(i.switchU&&(i.current()===99&&i.raise("Invalid unicode escape"),i.raise("Invalid escape")),!1)},ee.regexp_eatBackReference=function(i){var n=i.pos;if(this.regexp_eatDecimalEscape(i)){var h=i.lastIntValue;if(i.switchU)return h>i.maxBackReference&&(i.maxBackReference=h),!0;if(h<=i.numCapturingParens)return!0;i.pos=n}return!1},ee.regexp_eatKGroupName=function(i){if(i.eat(107)){if(this.regexp_eatGroupName(i))return i.backReferenceNames.push(i.lastStringValue),!0;i.raise("Invalid named reference")}return!1},ee.regexp_eatCharacterEscape=function(i){return this.regexp_eatControlEscape(i)||this.regexp_eatCControlLetter(i)||this.regexp_eatZero(i)||this.regexp_eatHexEscapeSequence(i)||this.regexp_eatRegExpUnicodeEscapeSequence(i,!1)||!i.switchU&&this.regexp_eatLegacyOctalEscapeSequence(i)||this.regexp_eatIdentityEscape(i)},ee.regexp_eatCControlLetter=function(i){var n=i.pos;if(i.eat(99)){if(this.regexp_eatControlLetter(i))return!0;i.pos=n}return!1},ee.regexp_eatZero=function(i){return i.current()===48&&!xi(i.lookahead())?(i.lastIntValue=0,i.advance(),!0):!1},ee.regexp_eatControlEscape=function(i){var n=i.current();return n===116?(i.lastIntValue=9,i.advance(),!0):n===110?(i.lastIntValue=10,i.advance(),!0):n===118?(i.lastIntValue=11,i.advance(),!0):n===102?(i.lastIntValue=12,i.advance(),!0):n===114?(i.lastIntValue=13,i.advance(),!0):!1},ee.regexp_eatControlLetter=function(i){var n=i.current();return lr(n)?(i.lastIntValue=n%32,i.advance(),!0):!1};function lr(i){return i>=65&&i<=90||i>=97&&i<=122}ee.regexp_eatRegExpUnicodeEscapeSequence=function(i,n){n===void 0&&(n=!1);var h=i.pos,f=n||i.switchU;if(i.eat(117)){if(this.regexp_eatFixedHexDigits(i,4)){var v=i.lastIntValue;if(f&&v>=55296&&v<=56319){var P=i.pos;if(i.eat(92)&&i.eat(117)&&this.regexp_eatFixedHexDigits(i,4)){var R=i.lastIntValue;if(R>=56320&&R<=57343)return i.lastIntValue=(v-55296)*1024+(R-56320)+65536,!0}i.pos=P,i.lastIntValue=v}return!0}if(f&&i.eat(123)&&this.regexp_eatHexDigits(i)&&i.eat(125)&&Do(i.lastIntValue))return!0;f&&i.raise("Invalid unicode escape"),i.pos=h}return!1};function Do(i){return i>=0&&i<=1114111}ee.regexp_eatIdentityEscape=function(i){if(i.switchU)return this.regexp_eatSyntaxCharacter(i)?!0:i.eat(47)?(i.lastIntValue=47,!0):!1;var n=i.current();return n!==99&&(!i.switchN||n!==107)?(i.lastIntValue=n,i.advance(),!0):!1},ee.regexp_eatDecimalEscape=function(i){i.lastIntValue=0;var n=i.current();if(n>=49&&n<=57){do i.lastIntValue=10*i.lastIntValue+(n-48),i.advance();while((n=i.current())>=48&&n<=57);return!0}return!1};var pr=0,nt=1,$e=2;ee.regexp_eatCharacterClassEscape=function(i){var n=i.current();if(Bo(n))return i.lastIntValue=-1,i.advance(),nt;var h=!1;if(i.switchU&&this.options.ecmaVersion>=9&&((h=n===80)||n===112)){i.lastIntValue=-1,i.advance();var f;if(i.eat(123)&&(f=this.regexp_eatUnicodePropertyValueExpression(i))&&i.eat(125))return h&&f===$e&&i.raise("Invalid property name"),f;i.raise("Invalid property name")}return pr};function Bo(i){return i===100||i===68||i===115||i===83||i===119||i===87}ee.regexp_eatUnicodePropertyValueExpression=function(i){var n=i.pos;if(this.regexp_eatUnicodePropertyName(i)&&i.eat(61)){var h=i.lastStringValue;if(this.regexp_eatUnicodePropertyValue(i)){var f=i.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(i,h,f),nt}}if(i.pos=n,this.regexp_eatLoneUnicodePropertyNameOrValue(i)){var v=i.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(i,v)}return pr},ee.regexp_validateUnicodePropertyNameAndValue=function(i,n,h){O(i.unicodeProperties.nonBinary,n)||i.raise("Invalid property name"),i.unicodeProperties.nonBinary[n].test(h)||i.raise("Invalid property value")},ee.regexp_validateUnicodePropertyNameOrValue=function(i,n){if(i.unicodeProperties.binary.test(n))return nt;if(i.switchV&&i.unicodeProperties.binaryOfStrings.test(n))return $e;i.raise("Invalid property name")},ee.regexp_eatUnicodePropertyName=function(i){var n=0;for(i.lastStringValue="";fr(n=i.current());)i.lastStringValue+=u(n),i.advance();return i.lastStringValue!==""};function fr(i){return lr(i)||i===95}ee.regexp_eatUnicodePropertyValue=function(i){var n=0;for(i.lastStringValue="";Fo(n=i.current());)i.lastStringValue+=u(n),i.advance();return i.lastStringValue!==""};function Fo(i){return fr(i)||xi(i)}ee.regexp_eatLoneUnicodePropertyNameOrValue=function(i){return this.regexp_eatUnicodePropertyValue(i)},ee.regexp_eatCharacterClass=function(i){if(i.eat(91)){var n=i.eat(94),h=this.regexp_classContents(i);return i.eat(93)||i.raise("Unterminated character class"),n&&h===$e&&i.raise("Negated character class may contain strings"),!0}return!1},ee.regexp_classContents=function(i){return i.current()===93?nt:i.switchV?this.regexp_classSetExpression(i):(this.regexp_nonEmptyClassRanges(i),nt)},ee.regexp_nonEmptyClassRanges=function(i){for(;this.regexp_eatClassAtom(i);){var n=i.lastIntValue;if(i.eat(45)&&this.regexp_eatClassAtom(i)){var h=i.lastIntValue;i.switchU&&(n===-1||h===-1)&&i.raise("Invalid character class"),n!==-1&&h!==-1&&n>h&&i.raise("Range out of order in character class")}}},ee.regexp_eatClassAtom=function(i){var n=i.pos;if(i.eat(92)){if(this.regexp_eatClassEscape(i))return!0;if(i.switchU){var h=i.current();(h===99||xr(h))&&i.raise("Invalid class escape"),i.raise("Invalid escape")}i.pos=n}var f=i.current();return f!==93?(i.lastIntValue=f,i.advance(),!0):!1},ee.regexp_eatClassEscape=function(i){var n=i.pos;if(i.eat(98))return i.lastIntValue=8,!0;if(i.switchU&&i.eat(45))return i.lastIntValue=45,!0;if(!i.switchU&&i.eat(99)){if(this.regexp_eatClassControlLetter(i))return!0;i.pos=n}return this.regexp_eatCharacterClassEscape(i)||this.regexp_eatCharacterEscape(i)},ee.regexp_classSetExpression=function(i){var n=nt,h;if(!this.regexp_eatClassSetRange(i))if(h=this.regexp_eatClassSetOperand(i)){h===$e&&(n=$e);for(var f=i.pos;i.eatChars([38,38]);){if(i.current()!==38&&(h=this.regexp_eatClassSetOperand(i))){h!==$e&&(n=nt);continue}i.raise("Invalid character in character class")}if(f!==i.pos)return n;for(;i.eatChars([45,45]);)this.regexp_eatClassSetOperand(i)||i.raise("Invalid character in character class");if(f!==i.pos)return n}else i.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(i)){if(h=this.regexp_eatClassSetOperand(i),!h)return n;h===$e&&(n=$e)}},ee.regexp_eatClassSetRange=function(i){var n=i.pos;if(this.regexp_eatClassSetCharacter(i)){var h=i.lastIntValue;if(i.eat(45)&&this.regexp_eatClassSetCharacter(i)){var f=i.lastIntValue;return h!==-1&&f!==-1&&h>f&&i.raise("Range out of order in character class"),!0}i.pos=n}return!1},ee.regexp_eatClassSetOperand=function(i){return this.regexp_eatClassSetCharacter(i)?nt:this.regexp_eatClassStringDisjunction(i)||this.regexp_eatNestedClass(i)},ee.regexp_eatNestedClass=function(i){var n=i.pos;if(i.eat(91)){var h=i.eat(94),f=this.regexp_classContents(i);if(i.eat(93))return h&&f===$e&&i.raise("Negated character class may contain strings"),f;i.pos=n}if(i.eat(92)){var v=this.regexp_eatCharacterClassEscape(i);if(v)return v;i.pos=n}return null},ee.regexp_eatClassStringDisjunction=function(i){var n=i.pos;if(i.eatChars([92,113])){if(i.eat(123)){var h=this.regexp_classStringDisjunctionContents(i);if(i.eat(125))return h}else i.raise("Invalid escape");i.pos=n}return null},ee.regexp_classStringDisjunctionContents=function(i){for(var n=this.regexp_classString(i);i.eat(124);)this.regexp_classString(i)===$e&&(n=$e);return n},ee.regexp_classString=function(i){for(var n=0;this.regexp_eatClassSetCharacter(i);)n++;return n===1?nt:$e},ee.regexp_eatClassSetCharacter=function(i){var n=i.pos;if(i.eat(92))return this.regexp_eatCharacterEscape(i)||this.regexp_eatClassSetReservedPunctuator(i)?!0:i.eat(98)?(i.lastIntValue=8,!0):(i.pos=n,!1);var h=i.current();return h<0||h===i.lookahead()&&jo(h)||Uo(h)?!1:(i.advance(),i.lastIntValue=h,!0)};function jo(i){return i===33||i>=35&&i<=38||i>=42&&i<=44||i===46||i>=58&&i<=64||i===94||i===96||i===126}function Uo(i){return i===40||i===41||i===45||i===47||i>=91&&i<=93||i>=123&&i<=125}ee.regexp_eatClassSetReservedPunctuator=function(i){var n=i.current();return Ho(n)?(i.lastIntValue=n,i.advance(),!0):!1};function Ho(i){return i===33||i===35||i===37||i===38||i===44||i===45||i>=58&&i<=62||i===64||i===96||i===126}ee.regexp_eatClassControlLetter=function(i){var n=i.current();return xi(n)||n===95?(i.lastIntValue=n%32,i.advance(),!0):!1},ee.regexp_eatHexEscapeSequence=function(i){var n=i.pos;if(i.eat(120)){if(this.regexp_eatFixedHexDigits(i,2))return!0;i.switchU&&i.raise("Invalid escape"),i.pos=n}return!1},ee.regexp_eatDecimalDigits=function(i){var n=i.pos,h=0;for(i.lastIntValue=0;xi(h=i.current());)i.lastIntValue=10*i.lastIntValue+(h-48),i.advance();return i.pos!==n};function xi(i){return i>=48&&i<=57}ee.regexp_eatHexDigits=function(i){var n=i.pos,h=0;for(i.lastIntValue=0;dr(h=i.current());)i.lastIntValue=16*i.lastIntValue+mr(h),i.advance();return i.pos!==n};function dr(i){return i>=48&&i<=57||i>=65&&i<=70||i>=97&&i<=102}function mr(i){return i>=65&&i<=70?10+(i-65):i>=97&&i<=102?10+(i-97):i-48}ee.regexp_eatLegacyOctalEscapeSequence=function(i){if(this.regexp_eatOctalDigit(i)){var n=i.lastIntValue;if(this.regexp_eatOctalDigit(i)){var h=i.lastIntValue;n<=3&&this.regexp_eatOctalDigit(i)?i.lastIntValue=n*64+h*8+i.lastIntValue:i.lastIntValue=n*8+h}else i.lastIntValue=n;return!0}return!1},ee.regexp_eatOctalDigit=function(i){var n=i.current();return xr(n)?(i.lastIntValue=n-48,i.advance(),!0):(i.lastIntValue=0,!1)};function xr(i){return i>=48&&i<=55}ee.regexp_eatFixedHexDigits=function(i,n){var h=i.pos;i.lastIntValue=0;for(var f=0;f<n;++f){var v=i.current();if(!dr(v))return i.pos=h,!1;i.lastIntValue=16*i.lastIntValue+mr(v),i.advance()}return!0};var yi=function(n){this.type=n.type,this.value=n.value,this.start=n.start,this.end=n.end,n.options.locations&&(this.loc=new C(n,n.startLoc,n.endLoc)),n.options.ranges&&(this.range=[n.start,n.end])},xe=be.prototype;xe.next=function(i){!i&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new yi(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},xe.getToken=function(){return this.next(),new yi(this)},typeof Symbol<"u"&&(xe[Symbol.iterator]=function(){var i=this;return{next:function(){var n=i.getToken();return{done:n.type===m.eof,value:n}}}}),xe.nextToken=function(){var i=this.curContext();if((!i||!i.preserveSpace)&&this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length)return this.finishToken(m.eof);if(i.override)return i.override(this);this.readToken(this.fullCharCodeAtPos())},xe.readToken=function(i){return D(i,this.options.ecmaVersion>=6)||i===92?this.readWord():this.getTokenFromCode(i)},xe.fullCharCodeAt=function(i){var n=this.input.charCodeAt(i);if(n<=55295||n>=56320)return n;var h=this.input.charCodeAt(i+1);return h<=56319||h>=57344?n:(n<<10)+h-56613888},xe.fullCharCodeAtPos=function(){return this.fullCharCodeAt(this.pos)},xe.skipBlockComment=function(){var i=this.options.onComment&&this.curPosition(),n=this.pos,h=this.input.indexOf("*/",this.pos+=2);if(h===-1&&this.raise(this.pos-2,"Unterminated comment"),this.pos=h+2,this.options.locations)for(var f=void 0,v=n;(f=X(this.input,v,this.pos))>-1;)++this.curLine,v=this.lineStart=f;this.options.onComment&&this.options.onComment(!0,this.input.slice(n+2,h),n,this.pos,i,this.curPosition())},xe.skipLineComment=function(i){for(var n=this.pos,h=this.options.onComment&&this.curPosition(),f=this.input.charCodeAt(this.pos+=i);this.pos<this.input.length&&!ne(f);)f=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(n+i,this.pos),n,this.pos,h,this.curPosition())},xe.skipSpace=function(){e:for(;this.pos<this.input.length;){var i=this.input.charCodeAt(this.pos);switch(i){case 32:case 160:++this.pos;break;case 13:this.input.charCodeAt(this.pos+1)===10&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break e}break;default:if(i>8&&i<14||i>=5760&&Z.test(String.fromCharCode(i)))++this.pos;else break e}}},xe.finishToken=function(i,n){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var h=this.type;this.type=i,this.value=n,this.updateContext(h)},xe.readToken_dot=function(){var i=this.input.charCodeAt(this.pos+1);if(i>=48&&i<=57)return this.readNumber(!0);var n=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&i===46&&n===46?(this.pos+=3,this.finishToken(m.ellipsis)):(++this.pos,this.finishToken(m.dot))},xe.readToken_slash=function(){var i=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):i===61?this.finishOp(m.assign,2):this.finishOp(m.slash,1)},xe.readToken_mult_modulo_exp=function(i){var n=this.input.charCodeAt(this.pos+1),h=1,f=i===42?m.star:m.modulo;return this.options.ecmaVersion>=7&&i===42&&n===42&&(++h,f=m.starstar,n=this.input.charCodeAt(this.pos+2)),n===61?this.finishOp(m.assign,h+1):this.finishOp(f,h)},xe.readToken_pipe_amp=function(i){var n=this.input.charCodeAt(this.pos+1);if(n===i){if(this.options.ecmaVersion>=12){var h=this.input.charCodeAt(this.pos+2);if(h===61)return this.finishOp(m.assign,3)}return this.finishOp(i===124?m.logicalOR:m.logicalAND,2)}return n===61?this.finishOp(m.assign,2):this.finishOp(i===124?m.bitwiseOR:m.bitwiseAND,1)},xe.readToken_caret=function(){var i=this.input.charCodeAt(this.pos+1);return i===61?this.finishOp(m.assign,2):this.finishOp(m.bitwiseXOR,1)},xe.readToken_plus_min=function(i){var n=this.input.charCodeAt(this.pos+1);return n===i?n===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||ae.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(m.incDec,2):n===61?this.finishOp(m.assign,2):this.finishOp(m.plusMin,1)},xe.readToken_lt_gt=function(i){var n=this.input.charCodeAt(this.pos+1),h=1;return n===i?(h=i===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+h)===61?this.finishOp(m.assign,h+1):this.finishOp(m.bitShift,h)):n===33&&i===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45?(this.skipLineComment(4),this.skipSpace(),this.nextToken()):(n===61&&(h=2),this.finishOp(m.relational,h))},xe.readToken_eq_excl=function(i){var n=this.input.charCodeAt(this.pos+1);return n===61?this.finishOp(m.equality,this.input.charCodeAt(this.pos+2)===61?3:2):i===61&&n===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(m.arrow)):this.finishOp(i===61?m.eq:m.prefix,1)},xe.readToken_question=function(){var i=this.options.ecmaVersion;if(i>=11){var n=this.input.charCodeAt(this.pos+1);if(n===46){var h=this.input.charCodeAt(this.pos+2);if(h<48||h>57)return this.finishOp(m.questionDot,2)}if(n===63){if(i>=12){var f=this.input.charCodeAt(this.pos+2);if(f===61)return this.finishOp(m.assign,3)}return this.finishOp(m.coalesce,2)}}return this.finishOp(m.question,1)},xe.readToken_numberSign=function(){var i=this.options.ecmaVersion,n=35;if(i>=13&&(++this.pos,n=this.fullCharCodeAtPos(),D(n,!0)||n===92))return this.finishToken(m.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+u(n)+"'")},xe.getTokenFromCode=function(i){switch(i){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(m.parenL);case 41:return++this.pos,this.finishToken(m.parenR);case 59:return++this.pos,this.finishToken(m.semi);case 44:return++this.pos,this.finishToken(m.comma);case 91:return++this.pos,this.finishToken(m.bracketL);case 93:return++this.pos,this.finishToken(m.bracketR);case 123:return++this.pos,this.finishToken(m.braceL);case 125:return++this.pos,this.finishToken(m.braceR);case 58:return++this.pos,this.finishToken(m.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(m.backQuote);case 48:var n=this.input.charCodeAt(this.pos+1);if(n===120||n===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(n===111||n===79)return this.readRadixNumber(8);if(n===98||n===66)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(i);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(i);case 124:case 38:return this.readToken_pipe_amp(i);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(i);case 60:case 62:return this.readToken_lt_gt(i);case 61:case 33:return this.readToken_eq_excl(i);case 63:return this.readToken_question();case 126:return this.finishOp(m.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+u(i)+"'")},xe.finishOp=function(i,n){var h=this.input.slice(this.pos,this.pos+n);return this.pos+=n,this.finishToken(i,h)},xe.readRegexp=function(){for(var i,n,h=this.pos;;){this.pos>=this.input.length&&this.raise(h,"Unterminated regular expression");var f=this.input.charAt(this.pos);if(ae.test(f)&&this.raise(h,"Unterminated regular expression"),i)i=!1;else{if(f==="[")n=!0;else if(f==="]"&&n)n=!1;else if(f==="/"&&!n)break;i=f==="\\"}++this.pos}var v=this.input.slice(h,this.pos);++this.pos;var P=this.pos,R=this.readWord1();this.containsEsc&&this.unexpected(P);var H=this.regexpState||(this.regexpState=new tt(this));H.reset(h,v,R),this.validateRegExpFlags(H),this.validateRegExpPattern(H);var z=null;try{z=new RegExp(v,R)}catch{}return this.finishToken(m.regexp,{pattern:v,flags:R,value:z})},xe.readInt=function(i,n,h){for(var f=this.options.ecmaVersion>=12&&n===void 0,v=h&&this.input.charCodeAt(this.pos)===48,P=this.pos,R=0,H=0,z=0,ce=n??1/0;z<ce;++z,++this.pos){var me=this.input.charCodeAt(this.pos),we=void 0;if(f&&me===95){v&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),H===95&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),z===0&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),H=me;continue}if(me>=97?we=me-97+10:me>=65?we=me-65+10:me>=48&&me<=57?we=me-48:we=1/0,we>=i)break;H=me,R=R*i+we}return f&&H===95&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===P||n!=null&&this.pos-P!==n?null:R};function qo(i,n){return n?parseInt(i,8):parseFloat(i.replace(/_/g,""))}function yr(i){return typeof BigInt!="function"?null:BigInt(i.replace(/_/g,""))}xe.readRadixNumber=function(i){var n=this.pos;this.pos+=2;var h=this.readInt(i);return h==null&&this.raise(this.start+2,"Expected number in radix "+i),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(h=yr(this.input.slice(n,this.pos)),++this.pos):D(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(m.num,h)},xe.readNumber=function(i){var n=this.pos;!i&&this.readInt(10,void 0,!0)===null&&this.raise(n,"Invalid number");var h=this.pos-n>=2&&this.input.charCodeAt(n)===48;h&&this.strict&&this.raise(n,"Invalid number");var f=this.input.charCodeAt(this.pos);if(!h&&!i&&this.options.ecmaVersion>=11&&f===110){var v=yr(this.input.slice(n,this.pos));return++this.pos,D(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(m.num,v)}h&&/[89]/.test(this.input.slice(n,this.pos))&&(h=!1),f===46&&!h&&(++this.pos,this.readInt(10),f=this.input.charCodeAt(this.pos)),(f===69||f===101)&&!h&&(f=this.input.charCodeAt(++this.pos),(f===43||f===45)&&++this.pos,this.readInt(10)===null&&this.raise(n,"Invalid number")),D(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var P=qo(this.input.slice(n,this.pos),h);return this.finishToken(m.num,P)},xe.readCodePoint=function(){var i=this.input.charCodeAt(this.pos),n;if(i===123){this.options.ecmaVersion<6&&this.unexpected();var h=++this.pos;n=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,n>1114111&&this.invalidStringToken(h,"Code point out of bounds")}else n=this.readHexChar(4);return n},xe.readString=function(i){for(var n="",h=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var f=this.input.charCodeAt(this.pos);if(f===i)break;f===92?(n+=this.input.slice(h,this.pos),n+=this.readEscapedChar(!1),h=this.pos):f===8232||f===8233?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(ne(f)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return n+=this.input.slice(h,this.pos++),this.finishToken(m.string,n)};var gr={};xe.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(i){if(i===gr)this.readInvalidTemplateToken();else throw i}this.inTemplateElement=!1},xe.invalidStringToken=function(i,n){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw gr;this.raise(i,n)},xe.readTmplToken=function(){for(var i="",n=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var h=this.input.charCodeAt(this.pos);if(h===96||h===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos===this.start&&(this.type===m.template||this.type===m.invalidTemplate)?h===36?(this.pos+=2,this.finishToken(m.dollarBraceL)):(++this.pos,this.finishToken(m.backQuote)):(i+=this.input.slice(n,this.pos),this.finishToken(m.template,i));if(h===92)i+=this.input.slice(n,this.pos),i+=this.readEscapedChar(!0),n=this.pos;else if(ne(h)){switch(i+=this.input.slice(n,this.pos),++this.pos,h){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:i+=`
6
6
  `;break;default:i+=String.fromCharCode(h);break}this.options.locations&&(++this.curLine,this.lineStart=this.pos),n=this.pos}else++this.pos}},xe.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if(this.input[this.pos+1]!=="{")break;case"`":return this.finishToken(m.invalidTemplate,this.input.slice(this.start,this.pos));case"\r":this.input[this.pos+1]===`
7
7
  `&&++this.pos;case`
8
8
  `:case"\u2028":case"\u2029":++this.curLine,this.lineStart=this.pos+1;break}this.raise(this.start,"Unterminated template")},xe.readEscapedChar=function(i){var n=this.input.charCodeAt(++this.pos);switch(++this.pos,n){case 110:return`
9
- `;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return u(this.readCodePoint());case 116:return" ";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,"Invalid escape sequence"),i){var h=this.pos-1;this.invalidStringToken(h,"Invalid escape sequence in template string")}default:if(n>=48&&n<=55){var f=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],v=parseInt(f,8);return v>255&&(f=f.slice(0,-1),v=parseInt(f,8)),this.pos+=f.length-1,n=this.input.charCodeAt(this.pos),(f!=="0"||n===56||n===57)&&(this.strict||i)&&this.invalidStringToken(this.pos-1-f.length,i?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(v)}return ne(n)?(this.options.locations&&(this.lineStart=this.pos,++this.curLine),""):String.fromCharCode(n)}},xe.readHexChar=function(i){var n=this.pos,h=this.readInt(16,i);return h===null&&this.invalidStringToken(n,"Bad character escape sequence"),h},xe.readWord1=function(){this.containsEsc=!1;for(var i="",n=!0,h=this.pos,f=this.options.ecmaVersion>=6;this.pos<this.input.length;){var v=this.fullCharCodeAtPos();if(w(v,f))this.pos+=v<=65535?1:2;else if(v===92){this.containsEsc=!0,i+=this.input.slice(h,this.pos);var T=this.pos;this.input.charCodeAt(++this.pos)!==117&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var R=this.readCodePoint();(n?B:w)(R,f)||this.invalidStringToken(T,"Invalid Unicode escape"),i+=u(R),h=this.pos}else break;n=!1}return i+this.input.slice(h,this.pos)},xe.readWord=function(){var i=this.readWord1(),n=m.name;return this.keywords.test(i)&&(n=Q[i]),this.finishToken(n,i)};var yr="8.16.0";be.acorn={Parser:be,version:yr,defaultOptions:k,Position:y,SourceLocation:C,getLineInfo:A,Node:Gt,TokenType:E,tokTypes:m,keywordTypes:Q,TokContext:Ge,tokContexts:Ce,isIdentifierChar:w,isIdentifierStart:B,Token:yi,isNewLine:ne,lineBreak:ae,lineBreakG:K,nonASCIIwhitespace:Z};function Go(i,n){return be.parse(i,n)}function $o(i,n,h){return be.parseExpressionAt(i,n,h)}function zo(i,n){return be.tokenizer(i,n)}e.Node=Gt,e.Parser=be,e.Position=y,e.SourceLocation=C,e.TokContext=Ge,e.Token=yi,e.TokenType=E,e.defaultOptions=k,e.getLineInfo=A,e.isIdentifierChar=w,e.isIdentifierStart=B,e.isNewLine=ne,e.keywordTypes=Q,e.lineBreak=ae,e.lineBreakG=K,e.nonASCIIwhitespace=Z,e.parse=Go,e.parseExpressionAt=$o,e.tokContexts=Ce,e.tokTypes=m,e.tokenizer=zo,e.version=yr}))});var zn=ot((bp,Vs)=>{"use strict";var Yc=qn(),Zc=/^[\da-fA-F]+$/,el=/^\d+$/,Gn=new WeakMap;function $n(e){e=e.Parser.acorn||e;let t=Gn.get(e);if(!t){let s=e.tokTypes,a=e.TokContext,o=e.TokenType,c=new a("<tag",!1),p=new a("</tag",!1),g=new a("<tag>...</tag>",!0,!0),b={tc_oTag:c,tc_cTag:p,tc_expr:g},l={jsxName:new o("jsxName"),jsxText:new o("jsxText",{beforeExpr:!0}),jsxTagStart:new o("jsxTagStart",{startsExpr:!0}),jsxTagEnd:new o("jsxTagEnd")};l.jsxTagStart.updateContext=function(){this.context.push(g),this.context.push(c),this.exprAllowed=!1},l.jsxTagEnd.updateContext=function(P){let _=this.context.pop();_===c&&P===s.slash||_===p?(this.context.pop(),this.exprAllowed=this.curContext()===g):this.exprAllowed=!0},t={tokContexts:b,tokTypes:l},Gn.set(e,t)}return t}function ni(e){if(!e)return e;if(e.type==="JSXIdentifier")return e.name;if(e.type==="JSXNamespacedName")return e.namespace.name+":"+e.name.name;if(e.type==="JSXMemberExpression")return ni(e.object)+"."+ni(e.property)}Vs.exports=function(e){return e=e||{},function(t){return tl({allowNamespaces:e.allowNamespaces!==!1,allowNamespacedObjects:!!e.allowNamespacedObjects},t)}};Object.defineProperty(Vs.exports,"tokTypes",{get:function(){return $n(Ms()).tokTypes},configurable:!0,enumerable:!0});function tl(e,t){let s=t.acorn||Ms(),a=$n(s),o=s.tokTypes,c=a.tokTypes,p=s.tokContexts,g=a.tokContexts.tc_oTag,b=a.tokContexts.tc_cTag,l=a.tokContexts.tc_expr,P=s.isNewLine,_=s.isIdentifierStart,B=s.isIdentifierChar;return class extends t{static get acornJsx(){return a}jsx_readToken(){let w="",E=this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated JSX contents");let D=this.input.charCodeAt(this.pos);switch(D){case 60:case 123:return this.pos===this.start?D===60&&this.exprAllowed?(++this.pos,this.finishToken(c.jsxTagStart)):this.getTokenFromCode(D):(w+=this.input.slice(E,this.pos),this.finishToken(c.jsxText,w));case 38:w+=this.input.slice(E,this.pos),w+=this.jsx_readEntity(),E=this.pos;break;case 62:case 125:this.raise(this.pos,"Unexpected token `"+this.input[this.pos]+"`. Did you mean `"+(D===62?"&gt;":"&rbrace;")+'` or `{"'+this.input[this.pos]+'"}`?');default:P(D)?(w+=this.input.slice(E,this.pos),w+=this.jsx_readNewLine(!0),E=this.pos):++this.pos}}}jsx_readNewLine(w){let E=this.input.charCodeAt(this.pos),D;return++this.pos,E===13&&this.input.charCodeAt(this.pos)===10?(++this.pos,D=w?`
9
+ `;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return u(this.readCodePoint());case 116:return" ";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,"Invalid escape sequence"),i){var h=this.pos-1;this.invalidStringToken(h,"Invalid escape sequence in template string")}default:if(n>=48&&n<=55){var f=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],v=parseInt(f,8);return v>255&&(f=f.slice(0,-1),v=parseInt(f,8)),this.pos+=f.length-1,n=this.input.charCodeAt(this.pos),(f!=="0"||n===56||n===57)&&(this.strict||i)&&this.invalidStringToken(this.pos-1-f.length,i?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(v)}return ne(n)?(this.options.locations&&(this.lineStart=this.pos,++this.curLine),""):String.fromCharCode(n)}},xe.readHexChar=function(i){var n=this.pos,h=this.readInt(16,i);return h===null&&this.invalidStringToken(n,"Bad character escape sequence"),h},xe.readWord1=function(){this.containsEsc=!1;for(var i="",n=!0,h=this.pos,f=this.options.ecmaVersion>=6;this.pos<this.input.length;){var v=this.fullCharCodeAtPos();if(w(v,f))this.pos+=v<=65535?1:2;else if(v===92){this.containsEsc=!0,i+=this.input.slice(h,this.pos);var P=this.pos;this.input.charCodeAt(++this.pos)!==117&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var R=this.readCodePoint();(n?D:w)(R,f)||this.invalidStringToken(P,"Invalid Unicode escape"),i+=u(R),h=this.pos}else break;n=!1}return i+this.input.slice(h,this.pos)},xe.readWord=function(){var i=this.readWord1(),n=m.name;return this.keywords.test(i)&&(n=Q[i]),this.finishToken(n,i)};var vr="8.16.0";be.acorn={Parser:be,version:vr,defaultOptions:T,Position:y,SourceLocation:C,getLineInfo:A,Node:Gt,TokenType:k,tokTypes:m,keywordTypes:Q,TokContext:Ge,tokContexts:Ce,isIdentifierChar:w,isIdentifierStart:D,Token:yi,isNewLine:ne,lineBreak:ae,lineBreakG:K,nonASCIIwhitespace:Z};function Wo(i,n){return be.parse(i,n)}function Go(i,n,h){return be.parseExpressionAt(i,n,h)}function $o(i,n){return be.tokenizer(i,n)}e.Node=Gt,e.Parser=be,e.Position=y,e.SourceLocation=C,e.TokContext=Ge,e.Token=yi,e.TokenType=k,e.defaultOptions=T,e.getLineInfo=A,e.isIdentifierChar=w,e.isIdentifierStart=D,e.isNewLine=ne,e.keywordTypes=Q,e.lineBreak=ae,e.lineBreakG=K,e.nonASCIIwhitespace=Z,e.parse=Wo,e.parseExpressionAt=Go,e.tokContexts=Ce,e.tokTypes=m,e.tokenizer=$o,e.version=vr}))});var Xn=ot((gp,Vs)=>{"use strict";var Qc=Gn(),Yc=/^[\da-fA-F]+$/,Zc=/^\d+$/,zn=new WeakMap;function Kn(e){e=e.Parser.acorn||e;let t=zn.get(e);if(!t){let s=e.tokTypes,a=e.TokContext,o=e.TokenType,c=new a("<tag",!1),p=new a("</tag",!1),g=new a("<tag>...</tag>",!0,!0),b={tc_oTag:c,tc_cTag:p,tc_expr:g},l={jsxName:new o("jsxName"),jsxText:new o("jsxText",{beforeExpr:!0}),jsxTagStart:new o("jsxTagStart",{startsExpr:!0}),jsxTagEnd:new o("jsxTagEnd")};l.jsxTagStart.updateContext=function(){this.context.push(g),this.context.push(c),this.exprAllowed=!1},l.jsxTagEnd.updateContext=function(_){let E=this.context.pop();E===c&&_===s.slash||E===p?(this.context.pop(),this.exprAllowed=this.curContext()===g):this.exprAllowed=!0},t={tokContexts:b,tokTypes:l},zn.set(e,t)}return t}function ni(e){if(!e)return e;if(e.type==="JSXIdentifier")return e.name;if(e.type==="JSXNamespacedName")return e.namespace.name+":"+e.name.name;if(e.type==="JSXMemberExpression")return ni(e.object)+"."+ni(e.property)}Vs.exports=function(e){return e=e||{},function(t){return el({allowNamespaces:e.allowNamespaces!==!1,allowNamespacedObjects:!!e.allowNamespacedObjects},t)}};Object.defineProperty(Vs.exports,"tokTypes",{get:function(){return Kn(Ms()).tokTypes},configurable:!0,enumerable:!0});function el(e,t){let s=t.acorn||Ms(),a=Kn(s),o=s.tokTypes,c=a.tokTypes,p=s.tokContexts,g=a.tokContexts.tc_oTag,b=a.tokContexts.tc_cTag,l=a.tokContexts.tc_expr,_=s.isNewLine,E=s.isIdentifierStart,D=s.isIdentifierChar;return class extends t{static get acornJsx(){return a}jsx_readToken(){let w="",k=this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated JSX contents");let B=this.input.charCodeAt(this.pos);switch(B){case 60:case 123:return this.pos===this.start?B===60&&this.exprAllowed?(++this.pos,this.finishToken(c.jsxTagStart)):this.getTokenFromCode(B):(w+=this.input.slice(k,this.pos),this.finishToken(c.jsxText,w));case 38:w+=this.input.slice(k,this.pos),w+=this.jsx_readEntity(),k=this.pos;break;case 62:case 125:this.raise(this.pos,"Unexpected token `"+this.input[this.pos]+"`. Did you mean `"+(B===62?"&gt;":"&rbrace;")+'` or `{"'+this.input[this.pos]+'"}`?');default:_(B)?(w+=this.input.slice(k,this.pos),w+=this.jsx_readNewLine(!0),k=this.pos):++this.pos}}}jsx_readNewLine(w){let k=this.input.charCodeAt(this.pos),B;return++this.pos,k===13&&this.input.charCodeAt(this.pos)===10?(++this.pos,B=w?`
10
10
  `:`\r
11
- `):D=String.fromCharCode(E),this.options.locations&&(++this.curLine,this.lineStart=this.pos),D}jsx_readString(w){let E="",D=++this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");let V=this.input.charCodeAt(this.pos);if(V===w)break;V===38?(E+=this.input.slice(D,this.pos),E+=this.jsx_readEntity(),D=this.pos):P(V)?(E+=this.input.slice(D,this.pos),E+=this.jsx_readNewLine(!1),D=this.pos):++this.pos}return E+=this.input.slice(D,this.pos++),this.finishToken(o.string,E)}jsx_readEntity(){let w="",E=0,D,V=this.input[this.pos];V!=="&"&&this.raise(this.pos,"Entity must start with an ampersand");let G=++this.pos;for(;this.pos<this.input.length&&E++<10;){if(V=this.input[this.pos++],V===";"){w[0]==="#"?w[1]==="x"?(w=w.substr(2),Zc.test(w)&&(D=String.fromCharCode(parseInt(w,16)))):(w=w.substr(1),el.test(w)&&(D=String.fromCharCode(parseInt(w,10)))):D=Yc[w];break}w+=V}return D||(this.pos=G,"&")}jsx_readWord(){let w,E=this.pos;do w=this.input.charCodeAt(++this.pos);while(B(w)||w===45);return this.finishToken(c.jsxName,this.input.slice(E,this.pos))}jsx_parseIdentifier(){let w=this.startNode();return this.type===c.jsxName?w.name=this.value:this.type.keyword?w.name=this.type.keyword:this.unexpected(),this.next(),this.finishNode(w,"JSXIdentifier")}jsx_parseNamespacedName(){let w=this.start,E=this.startLoc,D=this.jsx_parseIdentifier();if(!e.allowNamespaces||!this.eat(o.colon))return D;var V=this.startNodeAt(w,E);return V.namespace=D,V.name=this.jsx_parseIdentifier(),this.finishNode(V,"JSXNamespacedName")}jsx_parseElementName(){if(this.type===c.jsxTagEnd)return"";let w=this.start,E=this.startLoc,D=this.jsx_parseNamespacedName();for(this.type===o.dot&&D.type==="JSXNamespacedName"&&!e.allowNamespacedObjects&&this.unexpected();this.eat(o.dot);){let V=this.startNodeAt(w,E);V.object=D,V.property=this.jsx_parseIdentifier(),D=this.finishNode(V,"JSXMemberExpression")}return D}jsx_parseAttributeValue(){switch(this.type){case o.braceL:let w=this.jsx_parseExpressionContainer();return w.expression.type==="JSXEmptyExpression"&&this.raise(w.start,"JSX attributes must only be assigned a non-empty expression"),w;case c.jsxTagStart:case o.string:return this.parseExprAtom();default:this.raise(this.start,"JSX value should be either an expression or a quoted JSX text")}}jsx_parseEmptyExpression(){let w=this.startNodeAt(this.lastTokEnd,this.lastTokEndLoc);return this.finishNodeAt(w,"JSXEmptyExpression",this.start,this.startLoc)}jsx_parseExpressionContainer(){let w=this.startNode();return this.next(),w.expression=this.type===o.braceR?this.jsx_parseEmptyExpression():this.parseExpression(),this.expect(o.braceR),this.finishNode(w,"JSXExpressionContainer")}jsx_parseAttribute(){let w=this.startNode();return this.eat(o.braceL)?(this.expect(o.ellipsis),w.argument=this.parseMaybeAssign(),this.expect(o.braceR),this.finishNode(w,"JSXSpreadAttribute")):(w.name=this.jsx_parseNamespacedName(),w.value=this.eat(o.eq)?this.jsx_parseAttributeValue():null,this.finishNode(w,"JSXAttribute"))}jsx_parseOpeningElementAt(w,E){let D=this.startNodeAt(w,E);D.attributes=[];let V=this.jsx_parseElementName();for(V&&(D.name=V);this.type!==o.slash&&this.type!==c.jsxTagEnd;)D.attributes.push(this.jsx_parseAttribute());return D.selfClosing=this.eat(o.slash),this.expect(c.jsxTagEnd),this.finishNode(D,V?"JSXOpeningElement":"JSXOpeningFragment")}jsx_parseClosingElementAt(w,E){let D=this.startNodeAt(w,E),V=this.jsx_parseElementName();return V&&(D.name=V),this.expect(c.jsxTagEnd),this.finishNode(D,V?"JSXClosingElement":"JSXClosingFragment")}jsx_parseElementAt(w,E){let D=this.startNodeAt(w,E),V=[],G=this.jsx_parseOpeningElementAt(w,E),Q=null;if(!G.selfClosing){e:for(;;)switch(this.type){case c.jsxTagStart:if(w=this.start,E=this.startLoc,this.next(),this.eat(o.slash)){Q=this.jsx_parseClosingElementAt(w,E);break e}V.push(this.jsx_parseElementAt(w,E));break;case c.jsxText:V.push(this.parseExprAtom());break;case o.braceL:V.push(this.jsx_parseExpressionContainer());break;default:this.unexpected()}ni(Q.name)!==ni(G.name)&&this.raise(Q.start,"Expected corresponding JSX closing tag for <"+ni(G.name)+">")}let $=G.name?"Element":"Fragment";return D["opening"+$]=G,D["closing"+$]=Q,D.children=V,this.type===o.relational&&this.value==="<"&&this.raise(this.start,"Adjacent JSX elements must be wrapped in an enclosing tag"),this.finishNode(D,"JSX"+$)}jsx_parseText(){let w=this.parseLiteral(this.value);return w.type="JSXText",w}jsx_parseElement(){let w=this.start,E=this.startLoc;return this.next(),this.jsx_parseElementAt(w,E)}parseExprAtom(w){return this.type===c.jsxText?this.jsx_parseText():this.type===c.jsxTagStart?this.jsx_parseElement():super.parseExprAtom(w)}readToken(w){let E=this.curContext();if(E===l)return this.jsx_readToken();if(E===g||E===b){if(_(w))return this.jsx_readWord();if(w==62)return++this.pos,this.finishToken(c.jsxTagEnd);if((w===34||w===39)&&E==g)return this.jsx_readString(w)}return w===60&&this.exprAllowed&&this.input.charCodeAt(this.pos+1)!==33?(++this.pos,this.finishToken(c.jsxTagStart)):super.readToken(w)}updateContext(w){if(this.type==o.braceL){var E=this.curContext();E==g?this.context.push(p.b_expr):E==l?this.context.push(p.b_tmpl):super.updateContext(w),this.exprAllowed=!0}else if(this.type===o.slash&&w===c.jsxTagStart)this.context.length-=2,this.context.push(b),this.exprAllowed=!1;else return super.updateContext(w)}}}});var Il={};gr(Il,{default:()=>Pl,webpackPlugin:()=>Tl});module.exports=Zo(Il);var $r=require("path"),zr=mt(Hr(),1);function ze(e){return e=e||[],Array.isArray(e)?e:[e]}var Pu=/\\/g;function Ci(e){return e.replace(Pu,"/")}var Iu=/^(?:\/|(?:[A-Z]:)?[/\\|])/i;function Nu(e){return Iu.test(e)}function Lu(e,t){return e.startsWith("**")||Nu(e)?Ci(e):Ci((0,$r.resolve)(t,e))}function qr(e){if(e instanceof RegExp)return s=>{let a=Ci(s),o=e.test(a);return e.lastIndex=0,o};let t=(0,zr.default)(Lu(e,process.cwd()),{dot:!0});return s=>t(Ci(s))}function Wr(e){return e instanceof RegExp?t=>{let s=e.test(t);return e.lastIndex=0,s}:t=>t.includes(e)}function Kr(e,t){if(!(!e&&!t))return s=>e?.some(a=>a(s))?!1:t?.some(a=>a(s))?!0:!(t&&t.length>0)}function Xr(e){return typeof e=="string"||e instanceof RegExp?{include:[e]}:Array.isArray(e)?{include:e}:{exclude:e.exclude?ze(e.exclude):void 0,include:e.include?ze(e.include):void 0}}function Jr(e){if(!e)return;let{exclude:t,include:s}=Xr(e),a=t?.map(qr),o=s?.map(qr);return Kr(a,o)}function Ru(e){if(!e)return;let{exclude:t,include:s}=Xr(e),a=t?.map(Wr),o=s?.map(Wr);return Kr(a,o)}function Ou(e){let t=Jr(e);return t?s=>!!t(s):void 0}function Mu(e,t){if(!e&&!t)return;let s=Jr(e),a=Ru(t);return(o,c)=>{let p=!0;return s&&(p&&=s(o)),p?(a&&(p&&=a(c)),p):!1}}function Te(e,t){let s,a;if(typeof t=="function")s=t;else{s=t.handler;let o=t.filter;e==="resolveId"||e==="load"?a=Ou(o?.id):a=Mu(o?.id,o?.code)}return{handler:s,filter:a||(()=>!0)}}var Gr;function xt(e,t={}){if(!Gr)throw new Error("Parse implementation is not set. Please call setParseImpl first.");return Gr(e,t)}var wi=require("path");function us(e,t,s){if(e.resource==null)return[];let a=Rt(e.resource+(e.resourceQuery||""));if(t.transformInclude&&!t.transformInclude(a))return[];let{filter:o}=Te("load",t.transform);return o(a)?[{loader:s,options:{plugin:t},ident:t.name}]:[]}function Rt(e){return(0,wi.isAbsolute)(e)?(0,wi.normalize)(e):e}var Qr=require("path"),Yr=require("buffer");function _i(e,t,s,a){return{getNativeBuildContext(){return{framework:"rspack",compiler:e,compilation:t,loaderContext:s,inputSourceMap:a}},addWatchFile(o){let c=(0,Qr.resolve)(process.cwd(),o);t.fileDependencies.add(c),s?.addDependency(c)},getWatchFiles(){return Array.from(t.fileDependencies)},parse:xt,emitFile(o){let c=o.fileName||o.name;if(o.source&&c){let{sources:p}=t.compiler.webpack;t.emitAsset(c,new p.RawSource(typeof o.source=="string"?o.source:Yr.Buffer.from(o.source)))}}}}function Zr(e){let t=new Error(typeof e=="string"?e:e.message);return typeof e=="object"&&(t.stack=e.stack,t.cause=e.meta),t}var Mt=require("path"),Ot=mt(require("fs"),1);function ea(e,t){return(0,Mt.resolve)(t.__virtualModulePrefix,encodeURIComponent(e))}function ta(e,t){return decodeURIComponent((0,Mt.basename)(e))}function hs(e,t){return(0,Mt.dirname)(e)===t.__virtualModulePrefix}var ia=class ut{name="FakeVirtualModulesPlugin";static counters=new Map;static initCleanup=!1;constructor(t){this.plugin=t,ut.initCleanup||(ut.initCleanup=!0,process.once("exit",()=>{ut.counters.forEach((s,a)=>{Ot.default.rmSync(a,{recursive:!0,force:!0})})}))}apply(t){let s=this.plugin.__virtualModulePrefix;Ot.default.existsSync(s)||Ot.default.mkdirSync(s,{recursive:!0});let a=ut.counters.get(s)??0;ut.counters.set(s,a+1),t.hooks.shutdown.tap(this.name,()=>{let o=(ut.counters.get(s)??1)-1;o===0?(ut.counters.delete(s),Ot.default.rmSync(s,{recursive:!0,force:!0})):ut.counters.set(s,o)})}async writeModule(t){return Ot.default.promises.writeFile(t,"")}};var sa=require("module"),ra=require("path"),aa=require("buffer"),na=mt(require("process"),1),Fu={};function cs(e){return{addWatchFile(t){(e.fileDependencies??e.compilationDependencies).add(t)},getWatchFiles(){return Array.from(e.fileDependencies??e.compilationDependencies)}}}var Vu=(0,sa.createRequire)(Fu.url);function Du(e){return new(Vu("webpack")).sources.RawSource(typeof e=="string"?e:aa.Buffer.from(e.buffer))}function Ai(e,t,s,a,o){return{parse:xt,addWatchFile(c){e.addWatchFile((0,ra.resolve)(na.default.cwd(),c))},emitFile(c){let p=c.fileName||c.name;if(c.source&&p){if(!s)throw new Error("unplugin/webpack: emitFile outside supported hooks (buildStart, buildEnd, load, transform, watchChange)");s.emitAsset(p,Du(c.source))}},getWatchFiles(){return e.getWatchFiles()},getNativeBuildContext(){return{framework:"webpack",compiler:t,compilation:s,loaderContext:a,inputSourceMap:o}}}}function oa(e){let t=new Error(typeof e=="string"?e:e.message);return typeof e=="object"&&(t.stack=e.stack,t.cause=e.meta),t}var Xa=require("module"),Se=mt(require("path"),1),st=mt(require("fs"),1),Ss=require("buffer");var pa=44,Bu=59,ua="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",fa=new Uint8Array(64),da=new Uint8Array(128);for(let e=0;e<ua.length;e++){let t=ua.charCodeAt(e);fa[e]=t,da[t]=e}function Qt(e,t){let s=0,a=0,o=0;do{let p=e.next();o=da[p],s|=(o&31)<<a,a+=5}while(o&32);let c=s&1;return s>>>=1,c&&(s=-2147483648|-s),t+s}function Yt(e,t,s){let a=t-s;a=a<0?-a<<1|1:a<<1;do{let o=a&31;a>>>=5,a>0&&(o|=32),e.write(fa[o])}while(a>0);return t}function ha(e,t){return e.pos>=t?!1:e.peek()!==pa}var ca=1024*16,la=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(e){return Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString()}}:{decode(e){let t="";for(let s=0;s<e.length;s++)t+=String.fromCharCode(e[s]);return t}},ju=class{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(ca)}write(e){let{buffer:t}=this;t[this.pos++]=e,this.pos===ca&&(this.out+=la.decode(t),this.pos=0)}flush(){let{buffer:e,out:t,pos:s}=this;return s>0?t+la.decode(e.subarray(0,s)):t}},Uu=class{constructor(e){this.pos=0,this.buffer=e}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(e){let{buffer:t,pos:s}=this,a=t.indexOf(e,s);return a===-1?t.length:a}};function ma(e){let{length:t}=e,s=new Uu(e),a=[],o=0,c=0,p=0,g=0,b=0;do{let l=s.indexOf(";"),P=[],_=!0,B=0;for(o=0;s.pos<l;){let w;o=Qt(s,o),o<B&&(_=!1),B=o,ha(s,l)?(c=Qt(s,c),p=Qt(s,p),g=Qt(s,g),ha(s,l)?(b=Qt(s,b),w=[o,c,p,g,b]):w=[o,c,p,g]):w=[o],P.push(w),s.pos++}_||Hu(P),a.push(P),s.pos=l+1}while(s.pos<=t);return a}function Hu(e){e.sort(qu)}function qu(e,t){return e[0]-t[0]}function ls(e){let t=new ju,s=0,a=0,o=0,c=0;for(let p=0;p<e.length;p++){let g=e[p];if(p>0&&t.write(Bu),g.length===0)continue;let b=0;for(let l=0;l<g.length;l++){let P=g[l];l>0&&t.write(pa),b=Yt(t,P[0],b),P.length!==1&&(s=Yt(t,P[1],s),a=Yt(t,P[2],a),o=Yt(t,P[3],o),P.length!==4&&(c=Yt(t,P[4],c)))}}return t.flush()}var Wu=/^[\w+.-]+:\/\//,Gu=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,$u=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;function zu(e){return Wu.test(e)}function Ku(e){return e.startsWith("//")}function ga(e){return e.startsWith("/")}function Xu(e){return e.startsWith("file:")}function xa(e){return/^[.?#]/.test(e)}function Ei(e){let t=Gu.exec(e);return va(t[1],t[2]||"",t[3],t[4]||"",t[5]||"/",t[6]||"",t[7]||"")}function Ju(e){let t=$u.exec(e),s=t[2];return va("file:","",t[1]||"","",ga(s)?s:"/"+s,t[3]||"",t[4]||"")}function va(e,t,s,a,o,c,p){return{scheme:e,user:t,host:s,port:a,path:o,query:c,hash:p,type:7}}function ya(e){if(Ku(e)){let s=Ei("http:"+e);return s.scheme="",s.type=6,s}if(ga(e)){let s=Ei("http://foo.com"+e);return s.scheme="",s.host="",s.type=5,s}if(Xu(e))return Ju(e);if(zu(e))return Ei(e);let t=Ei("http://foo.com/"+e);return t.scheme="",t.host="",t.type=e?e.startsWith("?")?3:e.startsWith("#")?2:4:1,t}function Qu(e){if(e.endsWith("/.."))return e;let t=e.lastIndexOf("/");return e.slice(0,t+1)}function Yu(e,t){ba(t,t.type),e.path==="/"?e.path=t.path:e.path=Qu(t.path)+e.path}function ba(e,t){let s=t<=4,a=e.path.split("/"),o=1,c=0,p=!1;for(let b=1;b<a.length;b++){let l=a[b];if(!l){p=!0;continue}if(p=!1,l!=="."){if(l===".."){c?(p=!0,c--,o--):s&&(a[o++]=l);continue}a[o++]=l,c++}}let g="";for(let b=1;b<o;b++)g+="/"+a[b];(!g||p&&!g.endsWith("/.."))&&(g+="/"),e.path=g}function Sa(e,t){if(!e&&!t)return"";let s=ya(e),a=s.type;if(t&&a!==7){let c=ya(t),p=c.type;switch(a){case 1:s.hash=c.hash;case 2:s.query=c.query;case 3:case 4:Yu(s,c);case 5:s.user=c.user,s.host=c.host,s.port=c.port;case 6:s.scheme=c.scheme}p>a&&(a=p)}ba(s,a);let o=s.query+s.hash;switch(a){case 2:case 3:return o;case 4:{let c=s.path.slice(1);return c?xa(t||e)&&!xa(c)?"./"+c+o:c+o:o||"."}case 5:return s.path+o;default:return s.scheme+"//"+s.user+s.host+s.port+s.path+o}}function Zu(e){if(!e)return"";let t=e.lastIndexOf("/");return e.slice(0,t+1)}function eh(e,t){let s=Zu(e),a=t?t+"/":"";return o=>Sa(a+(o||""),s)}var yt=0;function th(e,t){let s=Ca(e,0);if(s===e.length)return e;t||(e=e.slice());for(let a=s;a<e.length;a=Ca(e,a+1))e[a]=sh(e[a],t);return e}function Ca(e,t){for(let s=t;s<e.length;s++)if(!ih(e[s]))return s;return e.length}function ih(e){for(let t=1;t<e.length;t++)if(e[t][yt]<e[t-1][yt])return!1;return!0}function sh(e,t){return t||(e=e.slice()),e.sort(rh)}function rh(e,t){return e[yt]-t[yt]}var ki=!1;function ah(e,t,s,a){for(;s<=a;){let o=s+(a-s>>1),c=e[o][yt]-t;if(c===0)return ki=!0,o;c<0?s=o+1:a=o-1}return ki=!1,s-1}function nh(e,t,s){for(let a=s+1;a<e.length&&e[a][yt]===t;s=a++);return s}function oh(e,t,s){for(let a=s-1;a>=0&&e[a][yt]===t;s=a--);return s}function uh(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function hh(e,t,s,a){let{lastKey:o,lastNeedle:c,lastIndex:p}=s,g=0,b=e.length-1;if(a===o){if(t===c)return ki=p!==-1&&e[p][yt]===t,p;t>=c?g=p===-1?0:p:b=p}return s.lastKey=a,s.lastNeedle=t,s.lastIndex=ah(e,t,g,b)}function ch(e){return typeof e=="string"?JSON.parse(e):e}var wa=-1,lh=1,Ti=class{constructor(e,t){let s=typeof e=="string";if(!s&&e._decodedMemo)return e;let a=ch(e),{version:o,file:c,names:p,sourceRoot:g,sources:b,sourcesContent:l}=a;this.version=o,this.file=c,this.names=p||[],this.sourceRoot=g,this.sources=b,this.sourcesContent=l,this.ignoreList=a.ignoreList||a.x_google_ignoreList||void 0;let P=eh(t,g);this.resolvedSources=b.map(P);let{mappings:_}=a;if(typeof _=="string")this._encoded=_,this._decoded=void 0;else if(Array.isArray(_))this._encoded=void 0,this._decoded=th(_,s);else throw a.sections?new Error("TraceMap passed sectioned source map, please use FlattenMap export instead"):new Error(`invalid source map: ${JSON.stringify(a)}`);this._decodedMemo=uh(),this._bySources=void 0,this._bySourceMemos=void 0}};function Pi(e){var t;return(t=e)._decoded||(t._decoded=ma(e._encoded))}function _a(e,t,s){let a=Pi(e);if(t>=a.length)return null;let o=a[t],c=ph(o,e._decodedMemo,t,s,lh);return c===-1?null:o[c]}function ph(e,t,s,a,o){let c=hh(e,a,t,s);return ki?c=(o===wa?nh:oh)(e,a,c):o===wa&&c++,c===-1||c===e.length?-1:c}var ps=class{constructor(){this._indexes={__proto__:null},this.array=[]}};function Ea(e,t){return e._indexes[t]}function Zt(e,t){let s=Ea(e,t);if(s!==void 0)return s;let{array:a,_indexes:o}=e,c=a.push(t);return o[t]=c-1}function fh(e,t){let s=Ea(e,t);if(s===void 0)return;let{array:a,_indexes:o}=e;for(let c=s+1;c<a.length;c++){let p=a[c];a[c-1]=p,o[p]--}o[t]=void 0,a.pop()}var dh=0,mh=1,xh=2,yh=3,gh=4,ka=-1,Ta=class{constructor({file:e,sourceRoot:t}={}){this._names=new ps,this._sources=new ps,this._sourcesContent=[],this._mappings=[],this.file=e,this.sourceRoot=t,this._ignoreList=new ps}};var Pa=(e,t,s,a,o,c,p,g)=>vh(!0,e,t,s,a,o,c,p,g);function Ia(e,t,s){let{_sources:a,_sourcesContent:o}=e,c=Zt(a,t);o[c]=s}function Na(e,t,s=!0){let{_sources:a,_sourcesContent:o,_ignoreList:c}=e,p=Zt(a,t);p===o.length&&(o[p]=null),s?Zt(c,p):fh(c,p)}function fs(e){let{_mappings:t,_sources:s,_sourcesContent:a,_names:o,_ignoreList:c}=e;return Ch(t),{version:3,file:e.file||void 0,names:o.array,sourceRoot:e.sourceRoot||void 0,sources:s.array,sourcesContent:a,mappings:t,ignoreList:c.array}}function La(e){let t=fs(e);return Object.assign({},t,{mappings:ls(t.mappings)})}function vh(e,t,s,a,o,c,p,g,b){let{_mappings:l,_sources:P,_sourcesContent:_,_names:B}=t,w=bh(l,s),E=Sh(w,a);if(!o)return e&&wh(w,E)?void 0:Aa(w,E,[a]);let D=Zt(P,o),V=g?Zt(B,g):ka;if(D===_.length&&(_[D]=b??null),!(e&&_h(w,E,D,c,p,V)))return Aa(w,E,g?[a,D,c,p,V]:[a,D,c,p])}function bh(e,t){for(let s=e.length;s<=t;s++)e[s]=[];return e[t]}function Sh(e,t){let s=e.length;for(let a=s-1;a>=0;s=a--){let o=e[a];if(t>=o[dh])break}return s}function Aa(e,t,s){for(let a=e.length;a>t;a--)e[a]=e[a-1];e[t]=s}function Ch(e){let{length:t}=e,s=t;for(let a=s-1;a>=0&&!(e[a].length>0);s=a,a--);s<t&&(e.length=s)}function wh(e,t){return t===0?!0:e[t-1].length===1}function _h(e,t,s,a,o,c){if(t===0)return!1;let p=e[t-1];return p.length===1?!1:s===p[mh]&&a===p[xh]&&o===p[yh]&&c===(p.length===5?p[gh]:ka)}var Ra=Oa("",-1,-1,"",null,!1),Ah=[];function Oa(e,t,s,a,o,c){return{source:e,line:t,column:s,name:a,content:o,ignore:c}}function Ma(e,t,s,a,o){return{map:e,sources:t,source:s,content:a,ignore:o}}function Va(e,t){return Ma(e,t,"",null,!1)}function Eh(e,t,s){return Ma(null,Ah,e,t,s)}function kh(e){let t=new Ta({file:e.map.file}),{sources:s,map:a}=e,o=a.names,c=Pi(a);for(let p=0;p<c.length;p++){let g=c[p];for(let b=0;b<g.length;b++){let l=g[b],P=l[0],_=Ra;if(l.length!==1){let Q=s[l[1]];if(_=Da(Q,l[2],l[3],l.length===5?o[l[4]]:""),_==null)continue}let{column:B,line:w,name:E,content:D,source:V,ignore:G}=_;Pa(t,p,P,V,w,B,E),V&&D!=null&&Ia(t,V,D),G&&Na(t,V,!0)}}return t}function Da(e,t,s,a){if(!e.map)return Oa(e.source,t,s,a,e.content,e.ignore);let o=_a(e.map,t,s);return o==null?null:o.length===1?Ra:Da(e.sources[o[1]],o[2],o[3],o.length===5?e.map.names[o[4]]:a)}function Th(e){return Array.isArray(e)?e:[e]}function Ph(e,t){let s=Th(e).map(c=>new Ti(c,"")),a=s.pop();for(let c=0;c<s.length;c++)if(s[c].sources.length>1)throw new Error(`Transformation map ${c} must have exactly one source file.
12
- Did you specify these with the most recent transformation maps first?`);let o=Fa(a,t,"",0);for(let c=s.length-1;c>=0;c--)o=Va(s[c],[o]);return o}function Fa(e,t,s,a){let{resolvedSources:o,sourcesContent:c,ignoreList:p}=e,g=a+1,b=o.map((l,P)=>{let _={importer:s,depth:g,source:l||"",content:void 0,ignore:void 0},B=t(_.source,_),{source:w,content:E,ignore:D}=_;if(B)return Fa(new Ti(B,w),t,w,g);let V=E!==void 0?E:c?c[P]:null,G=D!==void 0?D:p?p.includes(P):!1;return Eh(w,V,G)});return Va(e,b)}var Ih=class{constructor(e,t){let s=t.decodedMappings?fs(e):La(e);this.version=s.version,this.file=s.file,this.mappings=s.mappings,this.names=s.names,this.ignoreList=s.ignoreList,this.sourceRoot=s.sourceRoot,this.sources=s.sources,t.excludeContent||(this.sourcesContent=s.sourcesContent)}toString(){return JSON.stringify(this)}};function ds(e,t,s){let a=typeof s=="object"?s:{excludeContent:!!s,decodedMappings:!1},o=Ph(e,t);return new Ih(kh(o),a)}var Ja=mt(require("querystring"),1),Qa=mt(require("process"),1),ei={},Nh=(0,Xa.createRequire)(ei.url),Lh={".js":"js",".mjs":"js",".cjs":"js",".jsx":"jsx",".ts":"ts",".cts":"ts",".mts":"ts",".tsx":"tsx",".css":"css",".less":"css",".stylus":"css",".scss":"css",".sass":"css",".json":"json",".txt":"text"};function Rh(e){return Lh[Se.default.extname(e).toLowerCase()]||"js"}function Oh(e){let t=[];return{addWatchFile(s){t.push(s)},getWatchFiles(){return t},emitFile(s){let a=s.fileName||s.name,o=e?.config?.outdir;if(o&&s.source&&a){let c=Se.default.resolve(o,a),p=Se.default.dirname(c);st.default.existsSync(p)||st.default.mkdirSync(p,{recursive:!0}),st.default.writeFileSync(c,s.source)}},parse:xt,getNativeBuildContext(){return{framework:"bun",build:e}}}}function ms(e){let t=[],s=[];return{errors:t,warnings:s,mixedContext:{...e,error(a){t.push(a)},warn(a){s.push(a)}}}}function Mh(e){return t=>{if(typeof Bun>"u")throw new ReferenceError("Bun is not supported in this environment");if(!Bun.semver.satisfies(Bun.version,">=1.2.22"))throw new Error("Bun 1.2.22 or higher is required, please upgrade Bun");let s={framework:"bun"},a=ze(e(t,s));return{name:(a.length===1?a[0].name:s.bunHostName)??`unplugin-host:${a.map(o=>o.name).join(":")}`,async setup(o){let c=Oh(o);a.some(_=>_.buildStart)&&o.onStart(async()=>{for(let _ of a)_.buildStart&&await _.buildStart.call(c)});let p=a.filter(_=>_.resolveId).map(_=>({plugin:_,...Te("resolveId",_.resolveId)})),g=a.filter(_=>_.load).map(_=>({plugin:_,...Te("load",_.load)})),b=a.filter(_=>_.transform||_.transformInclude).map(_=>({plugin:_,...Te("transform",_.transform)})),l=new Set;for(let _ of a)_.resolveId&&_.load&&l.add(_.name);p.length&&o.onResolve({filter:/.*/},async _=>{if(!o.config?.external?.includes(_.path))for(let{plugin:B,handler:w,filter:E}of p){if(!E(_.path))continue;let{mixedContext:D,errors:V,warnings:G}=ms(c),Q=_.kind==="entry-point-run"||_.kind==="entry-point-build",$=await w.call(D,_.path,Q?void 0:_.importer,{isEntry:Q});for(let m of G)console.warn("[unplugin]",typeof m=="string"?m:m.message);if(V.length>0){let m=V.map(ae=>typeof ae=="string"?ae:ae.message).join(`
13
- `);throw new Error(`[unplugin] ${B.name}: ${m}`)}if(typeof $=="string")return(0,Se.isAbsolute)($)?{path:$}:{path:$,namespace:B.name};if(typeof $=="object"&&$!==null)return(0,Se.isAbsolute)($.id)?{path:$.id,external:$.external}:{path:$.id,external:$.external,namespace:B.name}}});async function P(_,B,w){let E,D=!1,V=B==="file"?g:g.filter(G=>G.plugin.name===B);for(let{plugin:G,handler:Q,filter:$}of V){if(G.loadInclude&&!G.loadInclude(_)||!$(_))continue;let{mixedContext:m,errors:ae,warnings:K}=ms(c),ne=await Q.call(m,_);for(let X of K)console.warn("[unplugin]",typeof X=="string"?X:X.message);if(ae.length>0){let X=ae.map(Z=>typeof Z=="string"?Z:Z.message).join(`
14
- `);throw new Error(`[unplugin] ${G.name}: ${X}`)}if(typeof ne=="string"){E=ne,D=!0;break}else if(typeof ne=="object"&&ne!==null){E=ne.code,D=!0;break}}if(!D&&B==="file"&&b.length>0&&(E=await Bun.file(_).text()),E!==void 0){let G=B==="file"?b:b.filter(Q=>Q.plugin.name===B);for(let{plugin:Q,handler:$,filter:m}of G){if(Q.transformInclude&&!Q.transformInclude(_)||!m(_,E))continue;let{mixedContext:ae,errors:K,warnings:ne}=ms(c),X=await $.call(ae,E,_);for(let Z of ne)console.warn("[unplugin]",typeof Z=="string"?Z:Z.message);if(K.length>0){let Z=K.map(M=>typeof M=="string"?M:M.message).join(`
15
- `);throw new Error(`[unplugin] ${Q.name}: ${Z}`)}typeof X=="string"?(E=X,D=!0):typeof X=="object"&&X!==null&&(E=X.code,D=!0)}}if(D&&E!==void 0)return{contents:E,loader:w??Rh(_)}}(g.length||b.length)&&o.onLoad({filter:/.*/,namespace:"file"},async _=>P(_.path,"file",_.loader));for(let _ of l)o.onLoad({filter:/.*/,namespace:_},async B=>P(B.path,_,B.loader));a.some(_=>_.buildEnd||_.writeBundle)&&o.onEnd(async()=>{for(let _ of a)_.buildEnd&&await _.buildEnd.call(c),_.writeBundle&&await _.writeBundle()})}}}}var Vh={".js":"js",".mjs":"js",".cjs":"js",".jsx":"jsx",".ts":"ts",".cts":"ts",".mts":"ts",".tsx":"tsx",".css":"css",".less":"css",".stylus":"css",".scss":"css",".sass":"css",".json":"json",".txt":"text"};function Dh(e,t){return Vh[Se.default.extname(t).toLowerCase()]||"js"}function Ba(e,t,s){return typeof e=="function"?e(t,s):e}function Fh(e){return Object.prototype.hasOwnProperty.call(e,"toString")||Object.defineProperty(e,"toString",{enumerable:!1,value:function(){return JSON.stringify(this)}}),Object.prototype.hasOwnProperty.call(e,"toUrl")||Object.defineProperty(e,"toUrl",{enumerable:!1,value:function(){return`data:application/json;charset=utf-8;base64,${Ss.Buffer.from(this.toString()).toString("base64")}`}}),e}var ja={names:[],sources:[],mappings:"",version:3};function Bh(e,t){if(t=t.filter(o=>o.sources),t.length===0||t.every(o=>o.sources.length===0))return{...ja};let s,a=1;return t.slice(0,-1).find(o=>o.sources.length!==1)===void 0?s=ds(t,()=>null,!0):s=ds(t[0],o=>o===e&&t[a]?t[a++]:{...ja},!0),s.file||delete s.file,s}function jh(e){let t=[],{initialOptions:s}=e;return{parse:xt,addWatchFile(){throw new Error("unplugin/esbuild: addWatchFile outside supported hooks (resolveId, load, transform)")},emitFile(a){let o=a.fileName||a.name;if(s.outdir&&a.source&&o){let c=Se.default.resolve(s.outdir,o),p=Se.default.dirname(c);st.default.existsSync(p)||st.default.mkdirSync(p,{recursive:!0}),st.default.writeFileSync(c,a.source)}},getWatchFiles(){return t},getNativeBuildContext(){return{framework:"esbuild",build:e}}}}function xs(e){let t=[],s=[];return{errors:t,warnings:s,mixedContext:{...e,...{error(o){t.push(Ua(o))},warn(o){s.push(Ua(o))}},addWatchFile(o){e.getWatchFiles().push(o)}}}}function Ua(e){return typeof e=="string"&&(e={message:e}),{id:e.id,pluginName:e.plugin,text:e.message,location:e.loc?{file:e.loc.file,line:e.loc.line,column:e.loc.column}:null,detail:e.meta,notes:[]}}function Ha(e,t){return e&&((!e.sourcesContent||e.sourcesContent.length===0)&&(e.sourcesContent=[t]),e=Fh(e),t+=`
16
- //# sourceMappingURL=${e.toUrl()}`),t}function Uh(e){return t=>{let s={framework:"esbuild"},a=ze(e(t,s)),o=async c=>{let p=Hh(),g=[];for(let b of a){let l={};await p(b)({...c,onLoad(P,_){l.options=P,l.onLoadCb=_},onTransform(P,_){l.options||=P,l.onTransformCb=_}},c),(l.onLoadCb||l.onTransformCb)&&g.push(l)}g.length&&c.onLoad(g.length===1?g[0].options:{filter:/.*/},async b=>{function l(B){return g.length===1||!B?.filter||B.filter.test(b.path)}let P;for(let{options:B,onLoadCb:w}of g)if(l(B)&&(w&&(P=await w(b)),P?.contents))break;let _;for(let{options:B,onTransformCb:w}of g)if(l(B)&&w){let E=await w({...P,...b,async getContents(){return P?.contents?P.contents:_||(_=await st.default.promises.readFile(b.path,"utf8"))}});E?.contents&&(P=E)}if(P?.contents)return P})};return{name:(a.length===1?a[0].name:s.esbuildHostName)??`unplugin-host:${a.map(c=>c.name).join(":")}`,setup:o}}}function Hh(){return e=>(t,s)=>{let a=jh(s),{onStart:o,onEnd:c,onResolve:p,onLoad:g,onTransform:b,initialOptions:l}=t,P=e.esbuild?.onResolveFilter??/.*/,_=e.esbuild?.onLoadFilter??/.*/,B=e.esbuild?.loader??Dh;if(e.esbuild?.config?.call(a,l),e.buildStart&&o(()=>e.buildStart.call(a)),(e.buildEnd||e.writeBundle)&&c(async()=>{e.buildEnd&&await e.buildEnd.call(a),e.writeBundle&&await e.writeBundle()}),e.resolveId&&p({filter:P},async w=>{let E=w.path;if(l.external?.includes(E))return;let{handler:D,filter:V}=Te("resolveId",e.resolveId);if(!V(E))return;let{errors:G,warnings:Q,mixedContext:$}=xs(a),m=w.kind==="entry-point",ae=await D.call($,E,m?void 0:w.importer,{isEntry:m});if(typeof ae=="string")return{path:ae,namespace:e.name,errors:G,warnings:Q,watchFiles:$.getWatchFiles()};if(typeof ae=="object"&&ae!==null)return{path:ae.id,external:ae.external,namespace:e.name,errors:G,warnings:Q,watchFiles:$.getWatchFiles()}}),e.load&&g({filter:_},async w=>{let{handler:E,filter:D}=Te("load",e.load),V=w.path+(w.suffix||"");if(e.loadInclude&&!e.loadInclude(V)||!D(V))return;let{errors:G,warnings:Q,mixedContext:$}=xs(a),m,ae,K=await E.call($,V);if(typeof K=="string"?m=K:typeof K=="object"&&K!==null&&(m=K.code,ae=K.map),m===void 0)return null;ae&&(m=Ha(ae,m));let ne=Se.default.dirname(w.path);return{contents:m,errors:G,warnings:Q,watchFiles:$.getWatchFiles(),loader:Ba(B,m,w.path),resolveDir:ne}}),e.transform&&b({filter:_},async w=>{let{handler:E,filter:D}=Te("transform",e.transform),V=w.path+(w.suffix||"");if(e.transformInclude&&!e.transformInclude(V))return;let G=await w.getContents();if(!D(V,G))return;let{mixedContext:Q,errors:$,warnings:m}=xs(a),ae=Se.default.dirname(w.path),K,ne=await E.call(Q,G,V);if(typeof ne=="string"?G=ne:typeof ne=="object"&&ne!==null&&(G=ne.code,K&&ne.map?K=Bh(w.path,[ne.map==="string"?JSON.parse(ne.map):ne.map,K]):typeof ne.map=="string"?K=JSON.parse(ne.map):K=ne.map),G)return K&&(G=Ha(K,G)),{contents:G,errors:$,warnings:m,watchFiles:Q.getWatchFiles(),loader:Ba(B,G,w.path),resolveDir:ae}}),e.esbuild?.setup)return e.esbuild.setup(s)}}function Vt(e,t){return{parse:xt,addWatchFile(s){e.addWatchFile(s,t||s)},emitFile(s){let a=s.fileName||s.name;s.source&&a&&e.emitFile({resolvedPath:a,name:a,content:[...Ss.Buffer.from(s.source)],resourceType:(0,Se.extname)(a)})},getWatchFiles(){return e.getWatchFiles()},getNativeBuildContext(){return{framework:"farm",context:e}}}}function ys(e){return{error:t=>e.error(typeof t=="string"?new Error(t):t),warn:t=>e.warn(typeof t=="string"?new Error(t):t)}}function qh(e){let s={pre:102,post:98};return s[e]!==void 0?s[e]:100}function Wh(e){return{Added:"create",Updated:"update",Removed:"delete"}[e]}function Gh(e){return typeof e=="string"}function qa(e){return typeof e=="object"&&e!==null}function Wa(e){if(!e)return[];let t=e.split("?")[1],s=Ja.parse(t),a=[];for(let o in s)a.push([o,s[o]]);return a}function bs(e){let t=e.length;if(t===0)return e;let s=e.indexOf("\0");if(s===-1)return e;let a=Array.from({length:t+$h(e,s)}),o=0;for(let c=0;c<s;c++)a[o++]=e[c];for(let c=s;c<t;c++){let p=e[c];p==="\0"?(a[o++]="\\",a[o++]="0"):a[o++]=p}return Se.default.posix.normalize(a.join(""))}function gs(e){let t=e.length;if(t===0)return e;let s=e.indexOf("\\0");if(s===-1)return e;let a=Array.from({length:t-zh(e,s)}),o=0;for(let p=0;p<s;p++)a[o++]=e[p];let c=s;for(;c<t;)e[c]==="\\"&&e[c+1]==="0"?(a[o++]="\0",c+=2):a[o++]=e[c++];return Se.default.posix.normalize(a.join(""))}function Ga(e){if(e==null)throw new Error("Content cannot be null or undefined");return bs(typeof e=="string"?e:e.code||"")}function $h(e,t){let s=0,a=e.length;for(let o=t;o<a;o++)e[o]==="\0"&&s++;return s}function zh(e,t){let s=0,a=e.length;for(let o=t;o<a-1;o++)e[o]==="\\"&&e[o+1]==="0"&&(s++,o++);return s}function $a(e){let t=e.indexOf("?");return t!==-1?Se.default.posix.normalize(e.slice(0,t)):Se.default.posix.normalize(e)}function Kh(e){return e?.startsWith("/")}function za(e,t){return t.length?`${e}?${Xh(t)}`:e}function Xh(e){if(!e.length)return"";let t="";for(let[s,a]of e)t+=`${s}${a?`=${a}`:""}&`;return`${t.slice(0,-1)}`}var Jh=[[/\.(less)(?:$|\?)/,"less"],[/\.(scss|sass)(?:$|\?)/,"sass"],[/\.(styl|stylus)(?:$|\?)/,"stylus"],[/\.(css)(?:$|\?)/,"css"]],Qh=[[/\.(js|mjs|cjs)(?:$|\?)/,"js"],[/\.(jsx)(?:$|\?)/,"jsx"],[/\.(ts|cts|mts)(?:$|\?)/,"ts"],[/\.(tsx)(?:$|\?)/,"tsx"]];function Yh(e){for(let[t,s]of Jh)if(t.test(e))return s;return null}function Zh(e){for(let[t,s]of Qh)if(t.test(e))return s;return null}function ec(e){let t=Yh(e);if(t)return t;let s=Zh(e);return s||"js"}function Ka(e){return ec(e)}function tc(e){return(t=>{let s=ze(e(t,{framework:"farm"})).map(a=>{let o=ic(a,t);return a.farm&&Object.assign(o,a.farm),o});return s.length===1?s[0]:s})}function ic(e,t){let s={name:e.name,priority:qh(e.enforce)};if(e.farm&&Object.keys(e.farm).forEach(a=>{let o=e.farm[a];o&&Reflect.set(s,a,o)}),e.buildStart){let a=e.buildStart;s.buildStart={async executor(o,c){await a.call(Vt(c))}}}if(e.resolveId){let a=e.resolveId,o=[];t&&(o=t?.filters??[]),s.resolve={filters:{sources:o.length?o:[".*"],importers:[".*"]},async executor(c,p){let g=Se.default.resolve(c.importer??""),b=gs(c.source),{handler:l,filter:P}=Te("resolveId",a);if(!P(b))return null;let _=!1;qa(c.kind)&&"entry"in c.kind&&(_=c.kind.entry==="index");let B=Vt(p,g),w=await l.call(Object.assign(ys(p),B),b,g??null,{isEntry:_});if(Gh(w))return{resolvedPath:$a(bs(w)),query:Wa(w),sideEffects:!0,external:!1,meta:{}};if(qa(w))return{resolvedPath:$a(bs(w?.id)),query:Wa(w?.id),sideEffects:!1,external:!!w?.external,meta:{}};if(!Kh(c.source))return null}}}if(e.load){let a=e.load;s.load={filters:{resolvedPaths:[".*"]},async executor(o,c){let p=za(gs(o.resolvedPath),o.query),g=Ka(p);if(e.loadInclude&&!e.loadInclude?.(p))return null;let{handler:b,filter:l}=Te("load",a);if(!l(p))return null;let P=Vt(c,p);return{content:Ga(await b.call(Object.assign(ys(c),P),p)),moduleType:g}}}}if(e.transform){let a=e.transform;s.transform={filters:{resolvedPaths:[".*"],moduleTypes:[".*"]},async executor(o,c){let p=za(gs(o.resolvedPath),o.query),g=Ka(p);if(e.transformInclude&&!e.transformInclude(p))return null;let{handler:b,filter:l}=Te("transform",a);if(!l(p,o.content))return null;let P=Vt(c,p),_=await b.call(Object.assign(ys(c),P),o.content,p);if(_&&typeof _!="string")return{content:Ga(_),moduleType:g,sourceMap:typeof _.map=="object"&&_.map!==null?JSON.stringify(_.map):void 0}}}}if(e.watchChange){let a=e.watchChange;s.updateModules={async executor(o,c){let p=o.paths[0],g=p[0],b=Wh(p[1]);await a.call(Vt(c),g,{event:b})}}}if(e.buildEnd){let a=e.buildEnd;s.buildEnd={async executor(o,c){await a.call(Vt(c))}}}if(e.writeBundle){let a=e.writeBundle;s.finish={async executor(){await a()}}}return s}function sc(e){return(t=>{let s=ze(e(t,{framework:"rollup"})).map(a=>Ii(a,"rollup"));return s.length===1?s[0]:s})}function Ii(e,t){let s=t==="rolldown";if(e.resolveId&&!s&&typeof e.resolveId=="object"&&e.resolveId.filter){let o=e.resolveId,{handler:c,filter:p}=Te("load",o);a("resolveId",o,function(...g){let[b]=g;if(!(!vs(this,t)&&!p(b)))return c.apply(this,g)})}if(e.load&&(e.loadInclude||!s&&typeof e.load=="object"&&e.load.filter)){let o=e.load,{handler:c,filter:p}=Te("load",o);a("load",o,function(...g){let[b]=g;if(!(e.loadInclude&&!e.loadInclude(b))&&!(!vs(this,t)&&!p(b)))return c.apply(this,g)})}if(e.transform&&(e.transformInclude||!s&&typeof e.transform=="object"&&e.transform.filter)){let o=e.transform,{handler:c,filter:p}=Te("transform",o);a("transform",o,function(...g){let[b,l]=g;if(!(e.transformInclude&&!e.transformInclude(l))&&!(!vs(this,t)&&!p(l,b)))return c.apply(this,g)})}return e[t]&&Object.assign(e,e[t]),e;function a(o,c,p){typeof c=="function"?e[o]=p:c.handler=p}}function vs(e,t){if(t==="vite")return!!e?.meta?.viteVersion;if(t==="rolldown")return!0;let s=e?.meta?.rollupVersion;if(!s)return!1;let[a,o]=s.split(".");return Number(a)>4||Number(a)===4&&Number(o)>=40}function rc(e){return(t=>{let s=ze(e(t,{framework:"rolldown"})).map(a=>Ii(a,"rolldown"));return s.length===1?s[0]:s})}var ac=(0,Se.resolve)(ei.dirname,"rspack/loaders/transform.mjs"),nc=(0,Se.resolve)(ei.dirname,"rspack/loaders/load.mjs");function oc(e){return t=>({apply(s){let a=(0,Se.resolve)(s.options.context??process.cwd(),"node_modules/.virtual",s.rspack.experiments.VirtualModulesPlugin?"":process.pid.toString()),o={framework:"rspack",rspack:{compiler:s}},c=ze(e(t,o));for(let p of c){let g=Object.assign(p,{__unpluginMeta:o,__virtualModulePrefix:a}),b=new Set;if(g.resolveId){let P=(B=>s.rspack.experiments.VirtualModulesPlugin?new s.rspack.experiments.VirtualModulesPlugin:new ia(B))(g);P.apply(s);let _=new Map;g.__vfsModules=_,g.__vfs=P,s.hooks.compilation.tap(g.name,(B,{normalModuleFactory:w})=>{w.hooks.resolve.tapPromise(g.name,async E=>{let D=Rt(E.request),V=E.contextInfo,G=V.issuer!==""?V.issuer:void 0,Q=V.issuer==="";G?.startsWith(g.__virtualModulePrefix)&&(G=decodeURIComponent(G.slice(g.__virtualModulePrefix.length)));let $=_i(s,B),m,ae={error(j){m==null?m=Zr(j):console.error(`unplugin/rspack: multiple errors returned from resolveId hook: ${j}`)},warn(j){console.warn(`unplugin/rspack: warning from resolveId hook: ${j}`)}},{handler:K,filter:ne}=Te("resolveId",g.resolveId);if(!ne(D))return;let X=await K.call({...$,...ae},D,G,{isEntry:Q});if(m!=null)throw m;if(X==null)return;let Z=typeof X=="string"?X:X.id;typeof X!="string"&&X.external===!0&&b.add(Z);let M=!0;try{(s.inputFileSystem?.statSync??st.default.statSync)(Z),M=!1}catch{M=!hs(Z,g)}if(M){let j=ea(Z,g);if(_.has(Z))await _.get(Z);else{let he=Promise.resolve(P.writeModule(j,""));_.set(Z,he),await he}Z=j}E.request=Z})})}g.load&&s.options.module.rules.unshift({enforce:g.enforce,include(l){if(hs(l,g)&&(l=ta(l,g)),g.loadInclude&&!g.loadInclude(l))return!1;let{filter:P}=Te("load",g.load);return P(l)?!b.has(l):!1},use:[{loader:nc,options:{plugin:g}}],type:"javascript/auto"}),g.transform&&s.options.module.rules.unshift({enforce:g.enforce,use(l){return us(l,g,ac)}}),g.rspack&&g.rspack(s),(g.watchChange||g.buildStart)&&s.hooks.make.tapPromise(g.name,async l=>{let P=_i(s,l);if(g.watchChange&&(s.modifiedFiles||s.removedFiles)){let _=[];s.modifiedFiles&&s.modifiedFiles.forEach(B=>_.push(Promise.resolve(g.watchChange.call(P,B,{event:"update"})))),s.removedFiles&&s.removedFiles.forEach(B=>_.push(Promise.resolve(g.watchChange.call(P,B,{event:"delete"})))),await Promise.all(_)}if(g.buildStart)return await g.buildStart.call(P)}),g.buildEnd&&s.hooks.emit.tapPromise(g.name,async l=>{await g.buildEnd.call(_i(s,l))}),g.writeBundle&&s.hooks.afterEmit.tapPromise(g.name,async()=>{await g.writeBundle()})}}})}function uc(e){return(t=>{let s=ze(e(t,{framework:"unloader"})).map(a=>Ii(a,"unloader"));return s.length===1?s[0]:s})}function hc(e){return(t=>{let s=ze(e(t,{framework:"vite"})).map(a=>Ii(a,"vite"));return s.length===1?s[0]:s})}var cc=(0,Se.resolve)(ei.dirname,"webpack/loaders/transform.mjs"),lc=(0,Se.resolve)(ei.dirname,"webpack/loaders/load.mjs");function pc(e){return t=>{let s=Nh("webpack-virtual-modules");return{apply(a){let o=(0,Se.resolve)(a.options.context??Qa.default.cwd(),"_virtual_"),c={framework:"webpack",webpack:{compiler:a}},p=ze(e(t,c));for(let g of p){let b=Object.assign(g,{__unpluginMeta:c,__virtualModulePrefix:o}),l=new Set;if(b.resolveId){let P=a.options.plugins.find(w=>w instanceof s);P||(P=new s,a.options.plugins.push(P));let _=new Set;b.__vfsModules=_,b.__vfs=P;let B={apply(w){let E=w.ensureHook("resolve");w.getHook("resolve").tapAsync(b.name,async(D,V,G)=>{if(!D.request||Rt(D.request).startsWith(b.__virtualModulePrefix))return G();let Q=Rt(D.request),$=D.context,m=$.issuer!==""?$.issuer:void 0,ae=$.issuer==="";m?.startsWith(b.__virtualModulePrefix)&&(m=decodeURIComponent(m.slice(b.__virtualModulePrefix.length)));let K=new Set,ne=Ai({addWatchFile(I){K.add(I),V.fileDependencies?.add(I)},getWatchFiles(){return Array.from(K)}},a),X,Z={error(I){X==null?X=oa(I):console.error(`unplugin/webpack: multiple errors returned from resolveId hook: ${I}`)},warn(I){console.warn(`unplugin/webpack: warning from resolveId hook: ${I}`)}},{handler:M,filter:j}=Te("resolveId",b.resolveId);if(!j(Q))return G();let he=await M.call({...ne,...Z},Q,m,{isEntry:ae});if(X!=null)return G(X);if(he==null)return G();let ue=typeof he=="string"?he:he.id;typeof he!="string"&&he.external===!0&&l.add(ue),st.default.existsSync(ue)||(ue=Rt(b.__virtualModulePrefix+encodeURIComponent(ue)),_.has(ue)||(b.__vfs.writeModule(ue,""),_.add(ue)));let O={...D,request:ue};w.doResolve(E,O,null,V,G)})}};a.options.resolve.plugins=a.options.resolve.plugins||[],a.options.resolve.plugins.push(B)}b.load&&a.options.module.rules.unshift({include(P){return fc(P,b,l)},enforce:b.enforce,use:[{loader:lc,options:{plugin:b}}],type:"javascript/auto"}),b.transform&&a.options.module.rules.unshift({enforce:b.enforce,use(P){return us(P,b,cc)}}),b.webpack&&b.webpack(a),(b.watchChange||b.buildStart)&&a.hooks.make.tapPromise(b.name,async P=>{let _=Ai(cs(P),a,P);if(b.watchChange&&(a.modifiedFiles||a.removedFiles)){let B=[];a.modifiedFiles&&a.modifiedFiles.forEach(w=>B.push(Promise.resolve(b.watchChange.call(_,w,{event:"update"})))),a.removedFiles&&a.removedFiles.forEach(w=>B.push(Promise.resolve(b.watchChange.call(_,w,{event:"delete"})))),await Promise.all(B)}if(b.buildStart)return await b.buildStart.call(_)}),b.buildEnd&&a.hooks.emit.tapPromise(b.name,async P=>{await b.buildEnd.call(Ai(cs(P),a,P))}),b.writeBundle&&a.hooks.afterEmit.tapPromise(b.name,async()=>{await b.writeBundle()})}}}}}function fc(e,t,s){if(e.startsWith(t.__virtualModulePrefix)&&(e=decodeURIComponent(e.slice(t.__virtualModulePrefix.length))),t.loadInclude&&!t.loadInclude(e))return!1;let{filter:a}=Te("load",t.load);return a(e)?!s.has(e):!1}function Ya(e){return{get esbuild(){return Uh(e)},get rollup(){return sc(e)},get vite(){return hc(e)},get rolldown(){return rc(e)},get webpack(){return pc(e)},get rspack(){return oc(e)},get farm(){return tc(e)},get unloader(){return uc(e)},get bun(){return Mh(e)},get raw(){return e}}}var Hi={};gr(Hi,{Node:()=>ri,Parser:()=>Ae,Position:()=>Dt,SourceLocation:()=>ii,TokContext:()=>Re,Token:()=>Ui,TokenType:()=>fe,defaultOptions:()=>Li,getLineInfo:()=>Ps,isIdentifierChar:()=>ht,isIdentifierStart:()=>Ze,isNewLine:()=>_t,keywordTypes:()=>wt,lineBreak:()=>Me,lineBreakG:()=>un,nonASCIIwhitespace:()=>Ts,parse:()=>Xc,parseExpressionAt:()=>Jc,tokContexts:()=>_e,tokTypes:()=>x,tokenizer:()=>Qc,version:()=>Un});var dc=[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,78,5,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,199,7,137,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,55,9,266,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,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239],an=[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,7,25,39,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,5,57,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,24,43,261,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,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7381,42,31,98,114,8702,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,208,30,2,2,2,1,2,6,3,4,10,1,225,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,4381,3,5773,3,7472,16,621,2467,541,1507,4938,6,8489],mc="\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-\u1ADD\u1AE0-\u1AEB\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",nn="\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-\u088F\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\u0C5C\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDC-\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-\uA7DC\uA7F1-\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",Cs={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"},ws="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",xc={5:ws,"5module":ws+" export import",6:ws+" const class extends export import super"},on=/^in(stanceof)?$/,yc=new RegExp("["+nn+"]"),gc=new RegExp("["+nn+mc+"]");function As(e,t){for(var s=65536,a=0;a<t.length;a+=2){if(s+=t[a],s>e)return!1;if(s+=t[a+1],s>=e)return!0}return!1}function Ze(e,t){return e<65?e===36:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&yc.test(String.fromCharCode(e)):t===!1?!1:As(e,an)}function ht(e,t){return e<48?e===36:e<58?!0:e<65?!1:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&gc.test(String.fromCharCode(e)):t===!1?!1:As(e,an)||As(e,dc)}var fe=function(t,s){s===void 0&&(s={}),this.label=t,this.keyword=s.keyword,this.beforeExpr=!!s.beforeExpr,this.startsExpr=!!s.startsExpr,this.isLoop=!!s.isLoop,this.isAssign=!!s.isAssign,this.prefix=!!s.prefix,this.postfix=!!s.postfix,this.binop=s.binop||null,this.updateContext=null};function Ke(e,t){return new fe(e,{beforeExpr:!0,binop:t})}var Xe={beforeExpr:!0},Be={startsExpr:!0},wt={};function ve(e,t){return t===void 0&&(t={}),t.keyword=e,wt[e]=new fe(e,t)}var x={num:new fe("num",Be),regexp:new fe("regexp",Be),string:new fe("string",Be),name:new fe("name",Be),privateId:new fe("privateId",Be),eof:new fe("eof"),bracketL:new fe("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new fe("]"),braceL:new fe("{",{beforeExpr:!0,startsExpr:!0}),braceR:new fe("}"),parenL:new fe("(",{beforeExpr:!0,startsExpr:!0}),parenR:new fe(")"),comma:new fe(",",Xe),semi:new fe(";",Xe),colon:new fe(":",Xe),dot:new fe("."),question:new fe("?",Xe),questionDot:new fe("?."),arrow:new fe("=>",Xe),template:new fe("template"),invalidTemplate:new fe("invalidTemplate"),ellipsis:new fe("...",Xe),backQuote:new fe("`",Be),dollarBraceL:new fe("${",{beforeExpr:!0,startsExpr:!0}),eq:new fe("=",{beforeExpr:!0,isAssign:!0}),assign:new fe("_=",{beforeExpr:!0,isAssign:!0}),incDec:new fe("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new fe("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:Ke("||",1),logicalAND:Ke("&&",2),bitwiseOR:Ke("|",3),bitwiseXOR:Ke("^",4),bitwiseAND:Ke("&",5),equality:Ke("==/!=/===/!==",6),relational:Ke("</>/<=/>=",7),bitShift:Ke("<</>>/>>>",8),plusMin:new fe("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:Ke("%",10),star:Ke("*",10),slash:Ke("/",10),starstar:new fe("**",{beforeExpr:!0}),coalesce:Ke("??",1),_break:ve("break"),_case:ve("case",Xe),_catch:ve("catch"),_continue:ve("continue"),_debugger:ve("debugger"),_default:ve("default",Xe),_do:ve("do",{isLoop:!0,beforeExpr:!0}),_else:ve("else",Xe),_finally:ve("finally"),_for:ve("for",{isLoop:!0}),_function:ve("function",Be),_if:ve("if"),_return:ve("return",Xe),_switch:ve("switch"),_throw:ve("throw",Xe),_try:ve("try"),_var:ve("var"),_const:ve("const"),_while:ve("while",{isLoop:!0}),_with:ve("with"),_new:ve("new",{beforeExpr:!0,startsExpr:!0}),_this:ve("this",Be),_super:ve("super",Be),_class:ve("class",Be),_extends:ve("extends",Xe),_export:ve("export"),_import:ve("import",Be),_null:ve("null",Be),_true:ve("true",Be),_false:ve("false",Be),_in:ve("in",{beforeExpr:!0,binop:7}),_instanceof:ve("instanceof",{beforeExpr:!0,binop:7}),_typeof:ve("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:ve("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:ve("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},Me=/\r\n?|\n|\u2028|\u2029/,un=new RegExp(Me.source,"g");function _t(e){return e===10||e===13||e===8232||e===8233}function hn(e,t,s){s===void 0&&(s=e.length);for(var a=t;a<s;a++){var o=e.charCodeAt(a);if(_t(o))return a<s-1&&o===13&&e.charCodeAt(a+1)===10?a+2:a+1}return-1}var Ts=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,Oe=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,cn=Object.prototype,vc=cn.hasOwnProperty,bc=cn.toString,Ft=Object.hasOwn||(function(e,t){return vc.call(e,t)}),Za=Array.isArray||(function(e){return bc.call(e)==="[object Array]"}),en=Object.create(null);function gt(e){return en[e]||(en[e]=new RegExp("^(?:"+e.replace(/ /g,"|")+")$"))}function ct(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10)+55296,(e&1023)+56320))}var Sc=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,Dt=function(t,s){this.line=t,this.column=s};Dt.prototype.offset=function(t){return new Dt(this.line,this.column+t)};var ii=function(t,s,a){this.start=s,this.end=a,t.sourceFile!==null&&(this.source=t.sourceFile)};function Ps(e,t){for(var s=1,a=0;;){var o=hn(e,a,t);if(o<0)return new Dt(s,t-a);++s,a=o}}var Li={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},tn=!1;function Cc(e){var t={};for(var s in Li)t[s]=e&&Ft(e,s)?e[s]:Li[s];if(t.ecmaVersion==="latest"?t.ecmaVersion=1e8:t.ecmaVersion==null?(!tn&&typeof console=="object"&&console.warn&&(tn=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
17
- Defaulting to 2020, but this will stop working in the future.`)),t.ecmaVersion=11):t.ecmaVersion>=2015&&(t.ecmaVersion-=2009),t.allowReserved==null&&(t.allowReserved=t.ecmaVersion<5),(!e||e.allowHashBang==null)&&(t.allowHashBang=t.ecmaVersion>=14),Za(t.onToken)){var a=t.onToken;t.onToken=function(o){return a.push(o)}}if(Za(t.onComment)&&(t.onComment=wc(t,t.onComment)),t.sourceType==="commonjs"&&t.allowAwaitOutsideFunction)throw new Error("Cannot use allowAwaitOutsideFunction with sourceType: commonjs");return t}function wc(e,t){return function(s,a,o,c,p,g){var b={type:s?"Block":"Line",value:a,start:o,end:c};e.locations&&(b.loc=new ii(this,p,g)),e.ranges&&(b.range=[o,c]),t.push(b)}}var Ct=1,At=2,Is=4,ln=8,Ns=16,pn=32,Di=64,fn=128,Et=256,si=512,dn=1024,Fi=Ct|At|Et;function Ls(e,t){return At|(e?Is:0)|(t?ln:0)}var Ri=0,Rs=1,pt=2,mn=3,xn=4,yn=5,Ae=function(t,s,a){this.options=t=Cc(t),this.sourceFile=t.sourceFile,this.keywords=gt(xc[t.ecmaVersion>=6?6:t.sourceType==="module"?"5module":5]);var o="";t.allowReserved!==!0&&(o=Cs[t.ecmaVersion>=6?6:t.ecmaVersion===5?5:3],t.sourceType==="module"&&(o+=" await")),this.reservedWords=gt(o);var c=(o?o+" ":"")+Cs.strict;this.reservedWordsStrict=gt(c),this.reservedWordsStrictBind=gt(c+" "+Cs.strictBind),this.input=String(s),this.containsEsc=!1,a?(this.pos=a,this.lineStart=this.input.lastIndexOf(`
18
- `,a-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(Me).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=x.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(this.options.sourceType==="commonjs"?At:Ct),this.regexpState=null,this.privateNameStack=[]},Qe={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowReturn:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},allowUsing:{configurable:!0},inClassStaticBlock:{configurable:!0}};Ae.prototype.parse=function(){var t=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(t)};Qe.inFunction.get=function(){return(this.currentVarScope().flags&At)>0};Qe.inGenerator.get=function(){return(this.currentVarScope().flags&ln)>0};Qe.inAsync.get=function(){return(this.currentVarScope().flags&Is)>0};Qe.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e],s=t.flags;if(s&(Et|si))return!1;if(s&At)return(s&Is)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction};Qe.allowReturn.get=function(){return!!(this.inFunction||this.options.allowReturnOutsideFunction&&this.currentVarScope().flags&Ct)};Qe.allowSuper.get=function(){var e=this.currentThisScope(),t=e.flags;return(t&Di)>0||this.options.allowSuperOutsideMethod};Qe.allowDirectSuper.get=function(){return(this.currentThisScope().flags&fn)>0};Qe.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())};Qe.allowNewDotTarget.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e],s=t.flags;if(s&(Et|si)||s&At&&!(s&Ns))return!0}return!1};Qe.allowUsing.get=function(){var e=this.currentScope(),t=e.flags;return!(t&dn||!this.inModule&&t&Ct)};Qe.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&Et)>0};Ae.extend=function(){for(var t=[],s=arguments.length;s--;)t[s]=arguments[s];for(var a=this,o=0;o<t.length;o++)a=t[o](a);return a};Ae.parse=function(t,s){return new this(s,t).parse()};Ae.parseExpressionAt=function(t,s,a){var o=new this(a,t,s);return o.nextToken(),o.parseExpression()};Ae.tokenizer=function(t,s){return new this(s,t)};Object.defineProperties(Ae.prototype,Qe);var Ve=Ae.prototype,_c=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;Ve.strictDirective=function(e){if(this.options.ecmaVersion<5)return!1;for(;;){Oe.lastIndex=e,e+=Oe.exec(this.input)[0].length;var t=_c.exec(this.input.slice(e));if(!t)return!1;if((t[1]||t[2])==="use strict"){Oe.lastIndex=e+t[0].length;var s=Oe.exec(this.input),a=s.index+s[0].length,o=this.input.charAt(a);return o===";"||o==="}"||Me.test(s[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(o)||o==="!"&&this.input.charAt(a+1)==="=")}e+=t[0].length,Oe.lastIndex=e,e+=Oe.exec(this.input)[0].length,this.input[e]===";"&&e++}};Ve.eat=function(e){return this.type===e?(this.next(),!0):!1};Ve.isContextual=function(e){return this.type===x.name&&this.value===e&&!this.containsEsc};Ve.eatContextual=function(e){return this.isContextual(e)?(this.next(),!0):!1};Ve.expectContextual=function(e){this.eatContextual(e)||this.unexpected()};Ve.canInsertSemicolon=function(){return this.type===x.eof||this.type===x.braceR||Me.test(this.input.slice(this.lastTokEnd,this.start))};Ve.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0};Ve.semicolon=function(){!this.eat(x.semi)&&!this.insertSemicolon()&&this.unexpected()};Ve.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0};Ve.expect=function(e){this.eat(e)||this.unexpected()};Ve.unexpected=function(e){this.raise(e??this.start,"Unexpected token")};var Bi=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};Ve.checkPatternErrors=function(e,t){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element");var s=t?e.parenthesizedAssign:e.parenthesizedBind;s>-1&&this.raiseRecoverable(s,t?"Assigning to rvalue":"Parenthesized pattern")}};Ve.checkExpressionErrors=function(e,t){if(!e)return!1;var s=e.shorthandAssign,a=e.doubleProto;if(!t)return s>=0||a>=0;s>=0&&this.raise(s,"Shorthand property assignments are valid only in destructuring patterns"),a>=0&&this.raiseRecoverable(a,"Redefinition of __proto__ property")};Ve.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")};Ve.isSimpleAssignTarget=function(e){return e.type==="ParenthesizedExpression"?this.isSimpleAssignTarget(e.expression):e.type==="Identifier"||e.type==="MemberExpression"};var se=Ae.prototype;se.parseTopLevel=function(e){var t=Object.create(null);for(e.body||(e.body=[]);this.type!==x.eof;){var s=this.parseStatement(null,!0,t);e.body.push(s)}if(this.inModule)for(var a=0,o=Object.keys(this.undefinedExports);a<o.length;a+=1){var c=o[a];this.raiseRecoverable(this.undefinedExports[c].start,"Export '"+c+"' is not defined")}return this.adaptDirectivePrologue(e.body),this.next(),e.sourceType=this.options.sourceType==="commonjs"?"script":this.options.sourceType,this.finishNode(e,"Program")};var Os={kind:"loop"},Ac={kind:"switch"};se.isLet=function(e){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;Oe.lastIndex=this.pos;var t=Oe.exec(this.input),s=this.pos+t[0].length,a=this.fullCharCodeAt(s);if(a===91||a===92)return!0;if(e)return!1;if(a===123)return!0;if(Ze(a)){var o=s;do s+=a<=65535?1:2;while(ht(a=this.fullCharCodeAt(s)));if(a===92)return!0;var c=this.input.slice(o,s);if(!on.test(c))return!0}return!1};se.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;Oe.lastIndex=this.pos;var e=Oe.exec(this.input),t=this.pos+e[0].length,s;return!Me.test(this.input.slice(this.pos,t))&&this.input.slice(t,t+8)==="function"&&(t+8===this.input.length||!(ht(s=this.fullCharCodeAt(t+8))||s===92))};se.isUsingKeyword=function(e,t){if(this.options.ecmaVersion<17||!this.isContextual(e?"await":"using"))return!1;Oe.lastIndex=this.pos;var s=Oe.exec(this.input),a=this.pos+s[0].length;if(Me.test(this.input.slice(this.pos,a)))return!1;if(e){var o=a+5,c;if(this.input.slice(a,o)!=="using"||o===this.input.length||ht(c=this.fullCharCodeAt(o))||c===92)return!1;Oe.lastIndex=o;var p=Oe.exec(this.input);if(a=o+p[0].length,p&&Me.test(this.input.slice(o,a)))return!1}var g=this.fullCharCodeAt(a);if(!Ze(g)&&g!==92)return!1;var b=a;do a+=g<=65535?1:2;while(ht(g=this.fullCharCodeAt(a)));if(g===92)return!0;var l=this.input.slice(b,a);return!(on.test(l)||t&&l==="of")};se.isAwaitUsing=function(e){return this.isUsingKeyword(!0,e)};se.isUsing=function(e){return this.isUsingKeyword(!1,e)};se.parseStatement=function(e,t,s){var a=this.type,o=this.startNode(),c;switch(this.isLet(e)&&(a=x._var,c="let"),a){case x._break:case x._continue:return this.parseBreakContinueStatement(o,a.keyword);case x._debugger:return this.parseDebuggerStatement(o);case x._do:return this.parseDoStatement(o);case x._for:return this.parseForStatement(o);case x._function:return e&&(this.strict||e!=="if"&&e!=="label")&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(o,!1,!e);case x._class:return e&&this.unexpected(),this.parseClass(o,!0);case x._if:return this.parseIfStatement(o);case x._return:return this.parseReturnStatement(o);case x._switch:return this.parseSwitchStatement(o);case x._throw:return this.parseThrowStatement(o);case x._try:return this.parseTryStatement(o);case x._const:case x._var:return c=c||this.value,e&&c!=="var"&&this.unexpected(),this.parseVarStatement(o,c);case x._while:return this.parseWhileStatement(o);case x._with:return this.parseWithStatement(o);case x.braceL:return this.parseBlock(!0,o);case x.semi:return this.parseEmptyStatement(o);case x._export:case x._import:if(this.options.ecmaVersion>10&&a===x._import){Oe.lastIndex=this.pos;var p=Oe.exec(this.input),g=this.pos+p[0].length,b=this.input.charCodeAt(g);if(b===40||b===46)return this.parseExpressionStatement(o,this.parseExpression())}return this.options.allowImportExportEverywhere||(t||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'")),a===x._import?this.parseImport(o):this.parseExport(o,s);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(o,!0,!e);var l=this.isAwaitUsing(!1)?"await using":this.isUsing(!1)?"using":null;if(l)return this.allowUsing||this.raise(this.start,"Using declaration cannot appear in the top level when source type is `script` or in the bare case statement"),l==="await using"&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.next(),this.parseVar(o,!1,l),this.semicolon(),this.finishNode(o,"VariableDeclaration");var P=this.value,_=this.parseExpression();return a===x.name&&_.type==="Identifier"&&this.eat(x.colon)?this.parseLabeledStatement(o,P,_,e):this.parseExpressionStatement(o,_)}};se.parseBreakContinueStatement=function(e,t){var s=t==="break";this.next(),this.eat(x.semi)||this.insertSemicolon()?e.label=null:this.type!==x.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var a=0;a<this.labels.length;++a){var o=this.labels[a];if((e.label==null||o.name===e.label.name)&&(o.kind!=null&&(s||o.kind==="loop")||e.label&&s))break}return a===this.labels.length&&this.raise(e.start,"Unsyntactic "+t),this.finishNode(e,s?"BreakStatement":"ContinueStatement")};se.parseDebuggerStatement=function(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")};se.parseDoStatement=function(e){return this.next(),this.labels.push(Os),e.body=this.parseStatement("do"),this.labels.pop(),this.expect(x._while),e.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(x.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")};se.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(Os),this.enterScope(0),this.expect(x.parenL),this.type===x.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var s=this.isLet();if(this.type===x._var||this.type===x._const||s){var a=this.startNode(),o=s?"let":this.value;return this.next(),this.parseVar(a,!0,o),this.finishNode(a,"VariableDeclaration"),this.parseForAfterInit(e,a,t)}var c=this.isContextual("let"),p=!1,g=this.isUsing(!0)?"using":this.isAwaitUsing(!0)?"await using":null;if(g){var b=this.startNode();return this.next(),g==="await using"&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.parseVar(b,!0,g),this.finishNode(b,"VariableDeclaration"),this.parseForAfterInit(e,b,t)}var l=this.containsEsc,P=new Bi,_=this.start,B=t>-1?this.parseExprSubscripts(P,"await"):this.parseExpression(!0,P);return this.type===x._in||(p=this.options.ecmaVersion>=6&&this.isContextual("of"))?(t>-1?(this.type===x._in&&this.unexpected(t),e.await=!0):p&&this.options.ecmaVersion>=8&&(B.start===_&&!l&&B.type==="Identifier"&&B.name==="async"?this.unexpected():this.options.ecmaVersion>=9&&(e.await=!1)),c&&p&&this.raise(B.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(B,!1,P),this.checkLValPattern(B),this.parseForIn(e,B)):(this.checkExpressionErrors(P,!0),t>-1&&this.unexpected(t),this.parseFor(e,B))};se.parseForAfterInit=function(e,t,s){return(this.type===x._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&t.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===x._in?s>-1&&this.unexpected(s):e.await=s>-1),this.parseForIn(e,t)):(s>-1&&this.unexpected(s),this.parseFor(e,t))};se.parseFunctionStatement=function(e,t,s){return this.next(),this.parseFunction(e,ti|(s?0:Es),!1,t)};se.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(x._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")};se.parseReturnStatement=function(e){return this.allowReturn||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(x.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")};se.parseSwitchStatement=function(e){this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(x.braceL),this.labels.push(Ac),this.enterScope(dn);for(var t,s=!1;this.type!==x.braceR;)if(this.type===x._case||this.type===x._default){var a=this.type===x._case;t&&this.finishNode(t,"SwitchCase"),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),a?t.test=this.parseExpression():(s&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),s=!0,t.test=null),this.expect(x.colon)}else t||this.unexpected(),t.consequent.push(this.parseStatement(null));return this.exitScope(),t&&this.finishNode(t,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(e,"SwitchStatement")};se.parseThrowStatement=function(e){return this.next(),Me.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")};var Ec=[];se.parseCatchClauseParam=function(){var e=this.parseBindingAtom(),t=e.type==="Identifier";return this.enterScope(t?pn:0),this.checkLValPattern(e,t?xn:pt),this.expect(x.parenR),e};se.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===x._catch){var t=this.startNode();this.next(),this.eat(x.parenL)?t.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),t.param=null,this.enterScope(0)),t.body=this.parseBlock(!1),this.exitScope(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(x._finally)?this.parseBlock():null,!e.handler&&!e.finalizer&&this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")};se.parseVarStatement=function(e,t,s){return this.next(),this.parseVar(e,!1,t,s),this.semicolon(),this.finishNode(e,"VariableDeclaration")};se.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(Os),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")};se.parseWithStatement=function(e){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement("with"),this.finishNode(e,"WithStatement")};se.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")};se.parseLabeledStatement=function(e,t,s,a){for(var o=0,c=this.labels;o<c.length;o+=1){var p=c[o];p.name===t&&this.raise(s.start,"Label '"+t+"' is already declared")}for(var g=this.type.isLoop?"loop":this.type===x._switch?"switch":null,b=this.labels.length-1;b>=0;b--){var l=this.labels[b];if(l.statementStart===e.start)l.statementStart=this.start,l.kind=g;else break}return this.labels.push({name:t,kind:g,statementStart:this.start}),e.body=this.parseStatement(a?a.indexOf("label")===-1?a+"label":a:"label"),this.labels.pop(),e.label=s,this.finishNode(e,"LabeledStatement")};se.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")};se.parseBlock=function(e,t,s){for(e===void 0&&(e=!0),t===void 0&&(t=this.startNode()),t.body=[],this.expect(x.braceL),e&&this.enterScope(0);this.type!==x.braceR;){var a=this.parseStatement(null);t.body.push(a)}return s&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,"BlockStatement")};se.parseFor=function(e,t){return e.init=t,this.expect(x.semi),e.test=this.type===x.semi?null:this.parseExpression(),this.expect(x.semi),e.update=this.type===x.parenR?null:this.parseExpression(),this.expect(x.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,"ForStatement")};se.parseForIn=function(e,t){var s=this.type===x._in;return this.next(),t.type==="VariableDeclaration"&&t.declarations[0].init!=null&&(!s||this.options.ecmaVersion<8||this.strict||t.kind!=="var"||t.declarations[0].id.type!=="Identifier")&&this.raise(t.start,(s?"for-in":"for-of")+" loop variable declaration may not have an initializer"),e.left=t,e.right=s?this.parseExpression():this.parseMaybeAssign(),this.expect(x.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,s?"ForInStatement":"ForOfStatement")};se.parseVar=function(e,t,s,a){for(e.declarations=[],e.kind=s;;){var o=this.startNode();if(this.parseVarId(o,s),this.eat(x.eq)?o.init=this.parseMaybeAssign(t):!a&&s==="const"&&!(this.type===x._in||this.options.ecmaVersion>=6&&this.isContextual("of"))?this.unexpected():!a&&(s==="using"||s==="await using")&&this.options.ecmaVersion>=17&&this.type!==x._in&&!this.isContextual("of")?this.raise(this.lastTokEnd,"Missing initializer in "+s+" declaration"):!a&&o.id.type!=="Identifier"&&!(t&&(this.type===x._in||this.isContextual("of")))?this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):o.init=null,e.declarations.push(this.finishNode(o,"VariableDeclarator")),!this.eat(x.comma))break}return e};se.parseVarId=function(e,t){e.id=t==="using"||t==="await using"?this.parseIdent():this.parseBindingAtom(),this.checkLValPattern(e.id,t==="var"?Rs:pt,!1)};var ti=1,Es=2,gn=4;se.parseFunction=function(e,t,s,a,o){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!a)&&(this.type===x.star&&t&Es&&this.unexpected(),e.generator=this.eat(x.star)),this.options.ecmaVersion>=8&&(e.async=!!a),t&ti&&(e.id=t&gn&&this.type!==x.name?null:this.parseIdent(),e.id&&!(t&Es)&&this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?Rs:pt:mn));var c=this.yieldPos,p=this.awaitPos,g=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Ls(e.async,e.generator)),t&ti||(e.id=this.type===x.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,s,!1,o),this.yieldPos=c,this.awaitPos=p,this.awaitIdentPos=g,this.finishNode(e,t&ti?"FunctionDeclaration":"FunctionExpression")};se.parseFunctionParams=function(e){this.expect(x.parenL),e.params=this.parseBindingList(x.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()};se.parseClass=function(e,t){this.next();var s=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var a=this.enterClassBody(),o=this.startNode(),c=!1;for(o.body=[],this.expect(x.braceL);this.type!==x.braceR;){var p=this.parseClassElement(e.superClass!==null);p&&(o.body.push(p),p.type==="MethodDefinition"&&p.kind==="constructor"?(c&&this.raiseRecoverable(p.start,"Duplicate constructor in the same class"),c=!0):p.key&&p.key.type==="PrivateIdentifier"&&kc(a,p)&&this.raiseRecoverable(p.key.start,"Identifier '#"+p.key.name+"' has already been declared"))}return this.strict=s,this.next(),e.body=this.finishNode(o,"ClassBody"),this.exitClassBody(),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")};se.parseClassElement=function(e){if(this.eat(x.semi))return null;var t=this.options.ecmaVersion,s=this.startNode(),a="",o=!1,c=!1,p="method",g=!1;if(this.eatContextual("static")){if(t>=13&&this.eat(x.braceL))return this.parseClassStaticBlock(s),s;this.isClassElementNameStart()||this.type===x.star?g=!0:a="static"}if(s.static=g,!a&&t>=8&&this.eatContextual("async")&&((this.isClassElementNameStart()||this.type===x.star)&&!this.canInsertSemicolon()?c=!0:a="async"),!a&&(t>=9||!c)&&this.eat(x.star)&&(o=!0),!a&&!c&&!o){var b=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?p=b:a=b)}if(a?(s.computed=!1,s.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),s.key.name=a,this.finishNode(s.key,"Identifier")):this.parseClassElementName(s),t<13||this.type===x.parenL||p!=="method"||o||c){var l=!s.static&&Oi(s,"constructor"),P=l&&e;l&&p!=="method"&&this.raise(s.key.start,"Constructor can't have get/set modifier"),s.kind=l?"constructor":p,this.parseClassMethod(s,o,c,P)}else this.parseClassField(s);return s};se.isClassElementNameStart=function(){return this.type===x.name||this.type===x.privateId||this.type===x.num||this.type===x.string||this.type===x.bracketL||this.type.keyword};se.parseClassElementName=function(e){this.type===x.privateId?(this.value==="constructor"&&this.raise(this.start,"Classes can't have an element named '#constructor'"),e.computed=!1,e.key=this.parsePrivateIdent()):this.parsePropertyName(e)};se.parseClassMethod=function(e,t,s,a){var o=e.key;e.kind==="constructor"?(t&&this.raise(o.start,"Constructor can't be a generator"),s&&this.raise(o.start,"Constructor can't be an async method")):e.static&&Oi(e,"prototype")&&this.raise(o.start,"Classes may not have a static property named prototype");var c=e.value=this.parseMethod(t,s,a);return e.kind==="get"&&c.params.length!==0&&this.raiseRecoverable(c.start,"getter should have no params"),e.kind==="set"&&c.params.length!==1&&this.raiseRecoverable(c.start,"setter should have exactly one param"),e.kind==="set"&&c.params[0].type==="RestElement"&&this.raiseRecoverable(c.params[0].start,"Setter cannot use rest params"),this.finishNode(e,"MethodDefinition")};se.parseClassField=function(e){return Oi(e,"constructor")?this.raise(e.key.start,"Classes can't have a field named 'constructor'"):e.static&&Oi(e,"prototype")&&this.raise(e.key.start,"Classes can't have a static field named 'prototype'"),this.eat(x.eq)?(this.enterScope(si|Di),e.value=this.parseMaybeAssign(),this.exitScope()):e.value=null,this.semicolon(),this.finishNode(e,"PropertyDefinition")};se.parseClassStaticBlock=function(e){e.body=[];var t=this.labels;for(this.labels=[],this.enterScope(Et|Di);this.type!==x.braceR;){var s=this.parseStatement(null);e.body.push(s)}return this.next(),this.exitScope(),this.labels=t,this.finishNode(e,"StaticBlock")};se.parseClassId=function(e,t){this.type===x.name?(e.id=this.parseIdent(),t&&this.checkLValSimple(e.id,pt,!1)):(t===!0&&this.unexpected(),e.id=null)};se.parseClassSuper=function(e){e.superClass=this.eat(x._extends)?this.parseExprSubscripts(null,!1):null};se.enterClassBody=function(){var e={declared:Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared};se.exitClassBody=function(){var e=this.privateNameStack.pop(),t=e.declared,s=e.used;if(this.options.checkPrivateFields)for(var a=this.privateNameStack.length,o=a===0?null:this.privateNameStack[a-1],c=0;c<s.length;++c){var p=s[c];Ft(t,p.name)||(o?o.used.push(p):this.raiseRecoverable(p.start,"Private field '#"+p.name+"' must be declared in an enclosing class"))}};function kc(e,t){var s=t.key.name,a=e[s],o="true";return t.type==="MethodDefinition"&&(t.kind==="get"||t.kind==="set")&&(o=(t.static?"s":"i")+t.kind),a==="iget"&&o==="iset"||a==="iset"&&o==="iget"||a==="sget"&&o==="sset"||a==="sset"&&o==="sget"?(e[s]="true",!1):a?!0:(e[s]=o,!1)}function Oi(e,t){var s=e.computed,a=e.key;return!s&&(a.type==="Identifier"&&a.name===t||a.type==="Literal"&&a.value===t)}se.parseExportAllDeclaration=function(e,t){return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(e.exported=this.parseModuleExportName(),this.checkExport(t,e.exported,this.lastTokStart)):e.exported=null),this.expectContextual("from"),this.type!==x.string&&this.unexpected(),e.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(e,"ExportAllDeclaration")};se.parseExport=function(e,t){if(this.next(),this.eat(x.star))return this.parseExportAllDeclaration(e,t);if(this.eat(x._default))return this.checkExport(t,"default",this.lastTokStart),e.declaration=this.parseExportDefaultDeclaration(),this.finishNode(e,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())e.declaration=this.parseExportDeclaration(e),e.declaration.type==="VariableDeclaration"?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id,e.declaration.id.start),e.specifiers=[],e.source=null,this.options.ecmaVersion>=16&&(e.attributes=[]);else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual("from"))this.type!==x.string&&this.unexpected(),e.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause());else{for(var s=0,a=e.specifiers;s<a.length;s+=1){var o=a[s];this.checkUnreserved(o.local),this.checkLocalExport(o.local),o.local.type==="Literal"&&this.raise(o.local.start,"A string literal cannot be used as an exported binding without `from`.")}e.source=null,this.options.ecmaVersion>=16&&(e.attributes=[])}this.semicolon()}return this.finishNode(e,"ExportNamedDeclaration")};se.parseExportDeclaration=function(e){return this.parseStatement(null)};se.parseExportDefaultDeclaration=function(){var e;if(this.type===x._function||(e=this.isAsyncFunction())){var t=this.startNode();return this.next(),e&&this.next(),this.parseFunction(t,ti|gn,!1,e)}else if(this.type===x._class){var s=this.startNode();return this.parseClass(s,"nullableID")}else{var a=this.parseMaybeAssign();return this.semicolon(),a}};se.checkExport=function(e,t,s){e&&(typeof t!="string"&&(t=t.type==="Identifier"?t.name:t.value),Ft(e,t)&&this.raiseRecoverable(s,"Duplicate export '"+t+"'"),e[t]=!0)};se.checkPatternExport=function(e,t){var s=t.type;if(s==="Identifier")this.checkExport(e,t,t.start);else if(s==="ObjectPattern")for(var a=0,o=t.properties;a<o.length;a+=1){var c=o[a];this.checkPatternExport(e,c)}else if(s==="ArrayPattern")for(var p=0,g=t.elements;p<g.length;p+=1){var b=g[p];b&&this.checkPatternExport(e,b)}else s==="Property"?this.checkPatternExport(e,t.value):s==="AssignmentPattern"?this.checkPatternExport(e,t.left):s==="RestElement"&&this.checkPatternExport(e,t.argument)};se.checkVariableExport=function(e,t){if(e)for(var s=0,a=t;s<a.length;s+=1){var o=a[s];this.checkPatternExport(e,o.id)}};se.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()};se.parseExportSpecifier=function(e){var t=this.startNode();return t.local=this.parseModuleExportName(),t.exported=this.eatContextual("as")?this.parseModuleExportName():t.local,this.checkExport(e,t.exported,t.exported.start),this.finishNode(t,"ExportSpecifier")};se.parseExportSpecifiers=function(e){var t=[],s=!0;for(this.expect(x.braceL);!this.eat(x.braceR);){if(s)s=!1;else if(this.expect(x.comma),this.afterTrailingComma(x.braceR))break;t.push(this.parseExportSpecifier(e))}return t};se.parseImport=function(e){return this.next(),this.type===x.string?(e.specifiers=Ec,e.source=this.parseExprAtom()):(e.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),e.source=this.type===x.string?this.parseExprAtom():this.unexpected()),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(e,"ImportDeclaration")};se.parseImportSpecifier=function(){var e=this.startNode();return e.imported=this.parseModuleExportName(),this.eatContextual("as")?e.local=this.parseIdent():(this.checkUnreserved(e.imported),e.local=e.imported),this.checkLValSimple(e.local,pt),this.finishNode(e,"ImportSpecifier")};se.parseImportDefaultSpecifier=function(){var e=this.startNode();return e.local=this.parseIdent(),this.checkLValSimple(e.local,pt),this.finishNode(e,"ImportDefaultSpecifier")};se.parseImportNamespaceSpecifier=function(){var e=this.startNode();return this.next(),this.expectContextual("as"),e.local=this.parseIdent(),this.checkLValSimple(e.local,pt),this.finishNode(e,"ImportNamespaceSpecifier")};se.parseImportSpecifiers=function(){var e=[],t=!0;if(this.type===x.name&&(e.push(this.parseImportDefaultSpecifier()),!this.eat(x.comma)))return e;if(this.type===x.star)return e.push(this.parseImportNamespaceSpecifier()),e;for(this.expect(x.braceL);!this.eat(x.braceR);){if(t)t=!1;else if(this.expect(x.comma),this.afterTrailingComma(x.braceR))break;e.push(this.parseImportSpecifier())}return e};se.parseWithClause=function(){var e=[];if(!this.eat(x._with))return e;this.expect(x.braceL);for(var t={},s=!0;!this.eat(x.braceR);){if(s)s=!1;else if(this.expect(x.comma),this.afterTrailingComma(x.braceR))break;var a=this.parseImportAttribute(),o=a.key.type==="Identifier"?a.key.name:a.key.value;Ft(t,o)&&this.raiseRecoverable(a.key.start,"Duplicate attribute key '"+o+"'"),t[o]=!0,e.push(a)}return e};se.parseImportAttribute=function(){var e=this.startNode();return e.key=this.type===x.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never"),this.expect(x.colon),this.type!==x.string&&this.unexpected(),e.value=this.parseExprAtom(),this.finishNode(e,"ImportAttribute")};se.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===x.string){var e=this.parseLiteral(this.value);return Sc.test(e.value)&&this.raise(e.start,"An export name cannot include a lone surrogate."),e}return this.parseIdent(!0)};se.adaptDirectivePrologue=function(e){for(var t=0;t<e.length&&this.isDirectiveCandidate(e[t]);++t)e[t].directive=e[t].expression.raw.slice(1,-1)};se.isDirectiveCandidate=function(e){return this.options.ecmaVersion>=5&&e.type==="ExpressionStatement"&&e.expression.type==="Literal"&&typeof e.expression.value=="string"&&(this.input[e.start]==='"'||this.input[e.start]==="'")};var Ye=Ae.prototype;Ye.toAssignable=function(e,t,s){if(this.options.ecmaVersion>=6&&e)switch(e.type){case"Identifier":this.inAsync&&e.name==="await"&&this.raise(e.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern",s&&this.checkPatternErrors(s,!0);for(var a=0,o=e.properties;a<o.length;a+=1){var c=o[a];this.toAssignable(c,t),c.type==="RestElement"&&(c.argument.type==="ArrayPattern"||c.argument.type==="ObjectPattern")&&this.raise(c.argument.start,"Unexpected token")}break;case"Property":e.kind!=="init"&&this.raise(e.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(e.value,t);break;case"ArrayExpression":e.type="ArrayPattern",s&&this.checkPatternErrors(s,!0),this.toAssignableList(e.elements,t);break;case"SpreadElement":e.type="RestElement",this.toAssignable(e.argument,t),e.argument.type==="AssignmentPattern"&&this.raise(e.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":e.operator!=="="&&this.raise(e.left.end,"Only '=' operator can be used for specifying default value."),e.type="AssignmentPattern",delete e.operator,this.toAssignable(e.left,t);break;case"ParenthesizedExpression":this.toAssignable(e.expression,t,s);break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!t)break;default:this.raise(e.start,"Assigning to rvalue")}else s&&this.checkPatternErrors(s,!0);return e};Ye.toAssignableList=function(e,t){for(var s=e.length,a=0;a<s;a++){var o=e[a];o&&this.toAssignable(o,t)}if(s){var c=e[s-1];this.options.ecmaVersion===6&&t&&c&&c.type==="RestElement"&&c.argument.type!=="Identifier"&&this.unexpected(c.argument.start)}return e};Ye.parseSpread=function(e){var t=this.startNode();return this.next(),t.argument=this.parseMaybeAssign(!1,e),this.finishNode(t,"SpreadElement")};Ye.parseRestBinding=function(){var e=this.startNode();return this.next(),this.options.ecmaVersion===6&&this.type!==x.name&&this.unexpected(),e.argument=this.parseBindingAtom(),this.finishNode(e,"RestElement")};Ye.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case x.bracketL:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(x.bracketR,!0,!0),this.finishNode(e,"ArrayPattern");case x.braceL:return this.parseObj(!0)}return this.parseIdent()};Ye.parseBindingList=function(e,t,s,a){for(var o=[],c=!0;!this.eat(e);)if(c?c=!1:this.expect(x.comma),t&&this.type===x.comma)o.push(null);else{if(s&&this.afterTrailingComma(e))break;if(this.type===x.ellipsis){var p=this.parseRestBinding();this.parseBindingListItem(p),o.push(p),this.type===x.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.expect(e);break}else o.push(this.parseAssignableListItem(a))}return o};Ye.parseAssignableListItem=function(e){var t=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(t),t};Ye.parseBindingListItem=function(e){return e};Ye.parseMaybeDefault=function(e,t,s){if(s=s||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(x.eq))return s;var a=this.startNodeAt(e,t);return a.left=s,a.right=this.parseMaybeAssign(),this.finishNode(a,"AssignmentPattern")};Ye.checkLValSimple=function(e,t,s){t===void 0&&(t=Ri);var a=t!==Ri;switch(e.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(e.name)&&this.raiseRecoverable(e.start,(a?"Binding ":"Assigning to ")+e.name+" in strict mode"),a&&(t===pt&&e.name==="let"&&this.raiseRecoverable(e.start,"let is disallowed as a lexically bound name"),s&&(Ft(s,e.name)&&this.raiseRecoverable(e.start,"Argument name clash"),s[e.name]=!0),t!==yn&&this.declareName(e.name,t,e.start));break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":a&&this.raiseRecoverable(e.start,"Binding member expression");break;case"ParenthesizedExpression":return a&&this.raiseRecoverable(e.start,"Binding parenthesized expression"),this.checkLValSimple(e.expression,t,s);default:this.raise(e.start,(a?"Binding":"Assigning to")+" rvalue")}};Ye.checkLValPattern=function(e,t,s){switch(t===void 0&&(t=Ri),e.type){case"ObjectPattern":for(var a=0,o=e.properties;a<o.length;a+=1){var c=o[a];this.checkLValInnerPattern(c,t,s)}break;case"ArrayPattern":for(var p=0,g=e.elements;p<g.length;p+=1){var b=g[p];b&&this.checkLValInnerPattern(b,t,s)}break;default:this.checkLValSimple(e,t,s)}};Ye.checkLValInnerPattern=function(e,t,s){switch(t===void 0&&(t=Ri),e.type){case"Property":this.checkLValInnerPattern(e.value,t,s);break;case"AssignmentPattern":this.checkLValPattern(e.left,t,s);break;case"RestElement":this.checkLValPattern(e.argument,t,s);break;default:this.checkLValPattern(e,t,s)}};var Re=function(t,s,a,o,c){this.token=t,this.isExpr=!!s,this.preserveSpace=!!a,this.override=o,this.generator=!!c},_e={b_stat:new Re("{",!1),b_expr:new Re("{",!0),b_tmpl:new Re("${",!1),p_stat:new Re("(",!1),p_expr:new Re("(",!0),q_tmpl:new Re("`",!0,!0,function(e){return e.tryReadTemplateToken()}),f_stat:new Re("function",!1),f_expr:new Re("function",!0),f_expr_gen:new Re("function",!0,!1,null,!0),f_gen:new Re("function",!1,!1,null,!0)},Bt=Ae.prototype;Bt.initialContext=function(){return[_e.b_stat]};Bt.curContext=function(){return this.context[this.context.length-1]};Bt.braceIsBlock=function(e){var t=this.curContext();return t===_e.f_expr||t===_e.f_stat?!0:e===x.colon&&(t===_e.b_stat||t===_e.b_expr)?!t.isExpr:e===x._return||e===x.name&&this.exprAllowed?Me.test(this.input.slice(this.lastTokEnd,this.start)):e===x._else||e===x.semi||e===x.eof||e===x.parenR||e===x.arrow?!0:e===x.braceL?t===_e.b_stat:e===x._var||e===x._const||e===x.name?!1:!this.exprAllowed};Bt.inGeneratorContext=function(){for(var e=this.context.length-1;e>=1;e--){var t=this.context[e];if(t.token==="function")return t.generator}return!1};Bt.updateContext=function(e){var t,s=this.type;s.keyword&&e===x.dot?this.exprAllowed=!1:(t=s.updateContext)?t.call(this,e):this.exprAllowed=s.beforeExpr};Bt.overrideContext=function(e){this.curContext()!==e&&(this.context[this.context.length-1]=e)};x.parenR.updateContext=x.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=!0;return}var e=this.context.pop();e===_e.b_stat&&this.curContext().token==="function"&&(e=this.context.pop()),this.exprAllowed=!e.isExpr};x.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?_e.b_stat:_e.b_expr),this.exprAllowed=!0};x.dollarBraceL.updateContext=function(){this.context.push(_e.b_tmpl),this.exprAllowed=!0};x.parenL.updateContext=function(e){var t=e===x._if||e===x._for||e===x._with||e===x._while;this.context.push(t?_e.p_stat:_e.p_expr),this.exprAllowed=!0};x.incDec.updateContext=function(){};x._function.updateContext=x._class.updateContext=function(e){e.beforeExpr&&e!==x._else&&!(e===x.semi&&this.curContext()!==_e.p_stat)&&!(e===x._return&&Me.test(this.input.slice(this.lastTokEnd,this.start)))&&!((e===x.colon||e===x.braceL)&&this.curContext()===_e.b_stat)?this.context.push(_e.f_expr):this.context.push(_e.f_stat),this.exprAllowed=!1};x.colon.updateContext=function(){this.curContext().token==="function"&&this.context.pop(),this.exprAllowed=!0};x.backQuote.updateContext=function(){this.curContext()===_e.q_tmpl?this.context.pop():this.context.push(_e.q_tmpl),this.exprAllowed=!1};x.star.updateContext=function(e){if(e===x._function){var t=this.context.length-1;this.context[t]===_e.f_expr?this.context[t]=_e.f_expr_gen:this.context[t]=_e.f_gen}this.exprAllowed=!0};x.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&e!==x.dot&&(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t};var pe=Ae.prototype;pe.checkPropClash=function(e,t,s){if(!(this.options.ecmaVersion>=9&&e.type==="SpreadElement")&&!(this.options.ecmaVersion>=6&&(e.computed||e.method||e.shorthand))){var a=e.key,o;switch(a.type){case"Identifier":o=a.name;break;case"Literal":o=String(a.value);break;default:return}var c=e.kind;if(this.options.ecmaVersion>=6){o==="__proto__"&&c==="init"&&(t.proto&&(s?s.doubleProto<0&&(s.doubleProto=a.start):this.raiseRecoverable(a.start,"Redefinition of __proto__ property")),t.proto=!0);return}o="$"+o;var p=t[o];if(p){var g;c==="init"?g=this.strict&&p.init||p.get||p.set:g=p.init||p[c],g&&this.raiseRecoverable(a.start,"Redefinition of property")}else p=t[o]={init:!1,get:!1,set:!1};p[c]=!0}};pe.parseExpression=function(e,t){var s=this.start,a=this.startLoc,o=this.parseMaybeAssign(e,t);if(this.type===x.comma){var c=this.startNodeAt(s,a);for(c.expressions=[o];this.eat(x.comma);)c.expressions.push(this.parseMaybeAssign(e,t));return this.finishNode(c,"SequenceExpression")}return o};pe.parseMaybeAssign=function(e,t,s){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(e);this.exprAllowed=!1}var a=!1,o=-1,c=-1,p=-1;t?(o=t.parenthesizedAssign,c=t.trailingComma,p=t.doubleProto,t.parenthesizedAssign=t.trailingComma=-1):(t=new Bi,a=!0);var g=this.start,b=this.startLoc;(this.type===x.parenL||this.type===x.name)&&(this.potentialArrowAt=this.start,this.potentialArrowInForAwait=e==="await");var l=this.parseMaybeConditional(e,t);if(s&&(l=s.call(this,l,g,b)),this.type.isAssign){var P=this.startNodeAt(g,b);return P.operator=this.value,this.type===x.eq&&(l=this.toAssignable(l,!1,t)),a||(t.parenthesizedAssign=t.trailingComma=t.doubleProto=-1),t.shorthandAssign>=l.start&&(t.shorthandAssign=-1),this.type===x.eq?this.checkLValPattern(l):this.checkLValSimple(l),P.left=l,this.next(),P.right=this.parseMaybeAssign(e),p>-1&&(t.doubleProto=p),this.finishNode(P,"AssignmentExpression")}else a&&this.checkExpressionErrors(t,!0);return o>-1&&(t.parenthesizedAssign=o),c>-1&&(t.trailingComma=c),l};pe.parseMaybeConditional=function(e,t){var s=this.start,a=this.startLoc,o=this.parseExprOps(e,t);if(this.checkExpressionErrors(t))return o;if(this.eat(x.question)){var c=this.startNodeAt(s,a);return c.test=o,c.consequent=this.parseMaybeAssign(),this.expect(x.colon),c.alternate=this.parseMaybeAssign(e),this.finishNode(c,"ConditionalExpression")}return o};pe.parseExprOps=function(e,t){var s=this.start,a=this.startLoc,o=this.parseMaybeUnary(t,!1,!1,e);return this.checkExpressionErrors(t)||o.start===s&&o.type==="ArrowFunctionExpression"?o:this.parseExprOp(o,s,a,-1,e)};pe.parseExprOp=function(e,t,s,a,o){var c=this.type.binop;if(c!=null&&(!o||this.type!==x._in)&&c>a){var p=this.type===x.logicalOR||this.type===x.logicalAND,g=this.type===x.coalesce;g&&(c=x.logicalAND.binop);var b=this.value;this.next();var l=this.start,P=this.startLoc,_=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,o),l,P,c,o),B=this.buildBinary(t,s,e,_,b,p||g);return(p&&this.type===x.coalesce||g&&(this.type===x.logicalOR||this.type===x.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(B,t,s,a,o)}return e};pe.buildBinary=function(e,t,s,a,o,c){a.type==="PrivateIdentifier"&&this.raise(a.start,"Private identifier can only be left side of binary expression");var p=this.startNodeAt(e,t);return p.left=s,p.operator=o,p.right=a,this.finishNode(p,c?"LogicalExpression":"BinaryExpression")};pe.parseMaybeUnary=function(e,t,s,a){var o=this.start,c=this.startLoc,p;if(this.isContextual("await")&&this.canAwait)p=this.parseAwait(a),t=!0;else if(this.type.prefix){var g=this.startNode(),b=this.type===x.incDec;g.operator=this.value,g.prefix=!0,this.next(),g.argument=this.parseMaybeUnary(null,!0,b,a),this.checkExpressionErrors(e,!0),b?this.checkLValSimple(g.argument):this.strict&&g.operator==="delete"&&vn(g.argument)?this.raiseRecoverable(g.start,"Deleting local variable in strict mode"):g.operator==="delete"&&ks(g.argument)?this.raiseRecoverable(g.start,"Private fields can not be deleted"):t=!0,p=this.finishNode(g,b?"UpdateExpression":"UnaryExpression")}else if(!t&&this.type===x.privateId)(a||this.privateNameStack.length===0)&&this.options.checkPrivateFields&&this.unexpected(),p=this.parsePrivateIdent(),this.type!==x._in&&this.unexpected();else{if(p=this.parseExprSubscripts(e,a),this.checkExpressionErrors(e))return p;for(;this.type.postfix&&!this.canInsertSemicolon();){var l=this.startNodeAt(o,c);l.operator=this.value,l.prefix=!1,l.argument=p,this.checkLValSimple(p),this.next(),p=this.finishNode(l,"UpdateExpression")}}if(!s&&this.eat(x.starstar))if(t)this.unexpected(this.lastTokStart);else return this.buildBinary(o,c,p,this.parseMaybeUnary(null,!1,!1,a),"**",!1);else return p};function vn(e){return e.type==="Identifier"||e.type==="ParenthesizedExpression"&&vn(e.expression)}function ks(e){return e.type==="MemberExpression"&&e.property.type==="PrivateIdentifier"||e.type==="ChainExpression"&&ks(e.expression)||e.type==="ParenthesizedExpression"&&ks(e.expression)}pe.parseExprSubscripts=function(e,t){var s=this.start,a=this.startLoc,o=this.parseExprAtom(e,t);if(o.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return o;var c=this.parseSubscripts(o,s,a,!1,t);return e&&c.type==="MemberExpression"&&(e.parenthesizedAssign>=c.start&&(e.parenthesizedAssign=-1),e.parenthesizedBind>=c.start&&(e.parenthesizedBind=-1),e.trailingComma>=c.start&&(e.trailingComma=-1)),c};pe.parseSubscripts=function(e,t,s,a,o){for(var c=this.options.ecmaVersion>=8&&e.type==="Identifier"&&e.name==="async"&&this.lastTokEnd===e.end&&!this.canInsertSemicolon()&&e.end-e.start===5&&this.potentialArrowAt===e.start,p=!1;;){var g=this.parseSubscript(e,t,s,a,c,p,o);if(g.optional&&(p=!0),g===e||g.type==="ArrowFunctionExpression"){if(p){var b=this.startNodeAt(t,s);b.expression=g,g=this.finishNode(b,"ChainExpression")}return g}e=g}};pe.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(x.arrow)};pe.parseSubscriptAsyncArrow=function(e,t,s,a){return this.parseArrowExpression(this.startNodeAt(e,t),s,!0,a)};pe.parseSubscript=function(e,t,s,a,o,c,p){var g=this.options.ecmaVersion>=11,b=g&&this.eat(x.questionDot);a&&b&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var l=this.eat(x.bracketL);if(l||b&&this.type!==x.parenL&&this.type!==x.backQuote||this.eat(x.dot)){var P=this.startNodeAt(t,s);P.object=e,l?(P.property=this.parseExpression(),this.expect(x.bracketR)):this.type===x.privateId&&e.type!=="Super"?P.property=this.parsePrivateIdent():P.property=this.parseIdent(this.options.allowReserved!=="never"),P.computed=!!l,g&&(P.optional=b),e=this.finishNode(P,"MemberExpression")}else if(!a&&this.eat(x.parenL)){var _=new Bi,B=this.yieldPos,w=this.awaitPos,E=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var D=this.parseExprList(x.parenR,this.options.ecmaVersion>=8,!1,_);if(o&&!b&&this.shouldParseAsyncArrow())return this.checkPatternErrors(_,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=B,this.awaitPos=w,this.awaitIdentPos=E,this.parseSubscriptAsyncArrow(t,s,D,p);this.checkExpressionErrors(_,!0),this.yieldPos=B||this.yieldPos,this.awaitPos=w||this.awaitPos,this.awaitIdentPos=E||this.awaitIdentPos;var V=this.startNodeAt(t,s);V.callee=e,V.arguments=D,g&&(V.optional=b),e=this.finishNode(V,"CallExpression")}else if(this.type===x.backQuote){(b||c)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var G=this.startNodeAt(t,s);G.tag=e,G.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(G,"TaggedTemplateExpression")}return e};pe.parseExprAtom=function(e,t,s){this.type===x.slash&&this.readRegexp();var a,o=this.potentialArrowAt===this.start;switch(this.type){case x._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),a=this.startNode(),this.next(),this.type===x.parenL&&!this.allowDirectSuper&&this.raise(a.start,"super() call outside constructor of a subclass"),this.type!==x.dot&&this.type!==x.bracketL&&this.type!==x.parenL&&this.unexpected(),this.finishNode(a,"Super");case x._this:return a=this.startNode(),this.next(),this.finishNode(a,"ThisExpression");case x.name:var c=this.start,p=this.startLoc,g=this.containsEsc,b=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!g&&b.name==="async"&&!this.canInsertSemicolon()&&this.eat(x._function))return this.overrideContext(_e.f_expr),this.parseFunction(this.startNodeAt(c,p),0,!1,!0,t);if(o&&!this.canInsertSemicolon()){if(this.eat(x.arrow))return this.parseArrowExpression(this.startNodeAt(c,p),[b],!1,t);if(this.options.ecmaVersion>=8&&b.name==="async"&&this.type===x.name&&!g&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc))return b=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(x.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(c,p),[b],!0,t)}return b;case x.regexp:var l=this.value;return a=this.parseLiteral(l.value),a.regex={pattern:l.pattern,flags:l.flags},a;case x.num:case x.string:return this.parseLiteral(this.value);case x._null:case x._true:case x._false:return a=this.startNode(),a.value=this.type===x._null?null:this.type===x._true,a.raw=this.type.keyword,this.next(),this.finishNode(a,"Literal");case x.parenL:var P=this.start,_=this.parseParenAndDistinguishExpression(o,t);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(_)&&(e.parenthesizedAssign=P),e.parenthesizedBind<0&&(e.parenthesizedBind=P)),_;case x.bracketL:return a=this.startNode(),this.next(),a.elements=this.parseExprList(x.bracketR,!0,!0,e),this.finishNode(a,"ArrayExpression");case x.braceL:return this.overrideContext(_e.b_expr),this.parseObj(!1,e);case x._function:return a=this.startNode(),this.next(),this.parseFunction(a,0);case x._class:return this.parseClass(this.startNode(),!1);case x._new:return this.parseNew();case x.backQuote:return this.parseTemplate();case x._import:return this.options.ecmaVersion>=11?this.parseExprImport(s):this.unexpected();default:return this.parseExprAtomDefault()}};pe.parseExprAtomDefault=function(){this.unexpected()};pe.parseExprImport=function(e){var t=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===x.parenL&&!e)return this.parseDynamicImport(t);if(this.type===x.dot){var s=this.startNodeAt(t.start,t.loc&&t.loc.start);return s.name="import",t.meta=this.finishNode(s,"Identifier"),this.parseImportMeta(t)}else this.unexpected()};pe.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),this.options.ecmaVersion>=16)this.eat(x.parenR)?e.options=null:(this.expect(x.comma),this.afterTrailingComma(x.parenR)?e.options=null:(e.options=this.parseMaybeAssign(),this.eat(x.parenR)||(this.expect(x.comma),this.afterTrailingComma(x.parenR)||this.unexpected())));else if(!this.eat(x.parenR)){var t=this.start;this.eat(x.comma)&&this.eat(x.parenR)?this.raiseRecoverable(t,"Trailing comma is not allowed in import()"):this.unexpected(t)}return this.finishNode(e,"ImportExpression")};pe.parseImportMeta=function(e){this.next();var t=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!=="meta"&&this.raiseRecoverable(e.property.start,"The only valid meta property for import is 'import.meta'"),t&&this.raiseRecoverable(e.start,"'import.meta' must not contain escaped characters"),this.options.sourceType!=="module"&&!this.options.allowImportExportEverywhere&&this.raiseRecoverable(e.start,"Cannot use 'import.meta' outside a module"),this.finishNode(e,"MetaProperty")};pe.parseLiteral=function(e){var t=this.startNode();return t.value=e,t.raw=this.input.slice(this.start,this.end),t.raw.charCodeAt(t.raw.length-1)===110&&(t.bigint=t.value!=null?t.value.toString():t.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(t,"Literal")};pe.parseParenExpression=function(){this.expect(x.parenL);var e=this.parseExpression();return this.expect(x.parenR),e};pe.shouldParseArrow=function(e){return!this.canInsertSemicolon()};pe.parseParenAndDistinguishExpression=function(e,t){var s=this.start,a=this.startLoc,o,c=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var p=this.start,g=this.startLoc,b=[],l=!0,P=!1,_=new Bi,B=this.yieldPos,w=this.awaitPos,E;for(this.yieldPos=0,this.awaitPos=0;this.type!==x.parenR;)if(l?l=!1:this.expect(x.comma),c&&this.afterTrailingComma(x.parenR,!0)){P=!0;break}else if(this.type===x.ellipsis){E=this.start,b.push(this.parseParenItem(this.parseRestBinding())),this.type===x.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}else b.push(this.parseMaybeAssign(!1,_,this.parseParenItem));var D=this.lastTokEnd,V=this.lastTokEndLoc;if(this.expect(x.parenR),e&&this.shouldParseArrow(b)&&this.eat(x.arrow))return this.checkPatternErrors(_,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=B,this.awaitPos=w,this.parseParenArrowList(s,a,b,t);(!b.length||P)&&this.unexpected(this.lastTokStart),E&&this.unexpected(E),this.checkExpressionErrors(_,!0),this.yieldPos=B||this.yieldPos,this.awaitPos=w||this.awaitPos,b.length>1?(o=this.startNodeAt(p,g),o.expressions=b,this.finishNodeAt(o,"SequenceExpression",D,V)):o=b[0]}else o=this.parseParenExpression();if(this.options.preserveParens){var G=this.startNodeAt(s,a);return G.expression=o,this.finishNode(G,"ParenthesizedExpression")}else return o};pe.parseParenItem=function(e){return e};pe.parseParenArrowList=function(e,t,s,a){return this.parseArrowExpression(this.startNodeAt(e,t),s,!1,a)};var Tc=[];pe.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var e=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===x.dot){var t=this.startNodeAt(e.start,e.loc&&e.loc.start);t.name="new",e.meta=this.finishNode(t,"Identifier"),this.next();var s=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!=="target"&&this.raiseRecoverable(e.property.start,"The only valid meta property for new is 'new.target'"),s&&this.raiseRecoverable(e.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(e.start,"'new.target' can only be used in functions and class static block"),this.finishNode(e,"MetaProperty")}var a=this.start,o=this.startLoc;return e.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),a,o,!0,!1),this.eat(x.parenL)?e.arguments=this.parseExprList(x.parenR,this.options.ecmaVersion>=8,!1):e.arguments=Tc,this.finishNode(e,"NewExpression")};pe.parseTemplateElement=function(e){var t=e.isTagged,s=this.startNode();return this.type===x.invalidTemplate?(t||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),s.value={raw:this.value.replace(/\r\n?/g,`
11
+ `):B=String.fromCharCode(k),this.options.locations&&(++this.curLine,this.lineStart=this.pos),B}jsx_readString(w){let k="",B=++this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");let V=this.input.charCodeAt(this.pos);if(V===w)break;V===38?(k+=this.input.slice(B,this.pos),k+=this.jsx_readEntity(),B=this.pos):_(V)?(k+=this.input.slice(B,this.pos),k+=this.jsx_readNewLine(!1),B=this.pos):++this.pos}return k+=this.input.slice(B,this.pos++),this.finishToken(o.string,k)}jsx_readEntity(){let w="",k=0,B,V=this.input[this.pos];V!=="&"&&this.raise(this.pos,"Entity must start with an ampersand");let G=++this.pos;for(;this.pos<this.input.length&&k++<10;){if(V=this.input[this.pos++],V===";"){w[0]==="#"?w[1]==="x"?(w=w.substr(2),Yc.test(w)&&(B=String.fromCharCode(parseInt(w,16)))):(w=w.substr(1),Zc.test(w)&&(B=String.fromCharCode(parseInt(w,10)))):B=Qc[w];break}w+=V}return B||(this.pos=G,"&")}jsx_readWord(){let w,k=this.pos;do w=this.input.charCodeAt(++this.pos);while(D(w)||w===45);return this.finishToken(c.jsxName,this.input.slice(k,this.pos))}jsx_parseIdentifier(){let w=this.startNode();return this.type===c.jsxName?w.name=this.value:this.type.keyword?w.name=this.type.keyword:this.unexpected(),this.next(),this.finishNode(w,"JSXIdentifier")}jsx_parseNamespacedName(){let w=this.start,k=this.startLoc,B=this.jsx_parseIdentifier();if(!e.allowNamespaces||!this.eat(o.colon))return B;var V=this.startNodeAt(w,k);return V.namespace=B,V.name=this.jsx_parseIdentifier(),this.finishNode(V,"JSXNamespacedName")}jsx_parseElementName(){if(this.type===c.jsxTagEnd)return"";let w=this.start,k=this.startLoc,B=this.jsx_parseNamespacedName();for(this.type===o.dot&&B.type==="JSXNamespacedName"&&!e.allowNamespacedObjects&&this.unexpected();this.eat(o.dot);){let V=this.startNodeAt(w,k);V.object=B,V.property=this.jsx_parseIdentifier(),B=this.finishNode(V,"JSXMemberExpression")}return B}jsx_parseAttributeValue(){switch(this.type){case o.braceL:let w=this.jsx_parseExpressionContainer();return w.expression.type==="JSXEmptyExpression"&&this.raise(w.start,"JSX attributes must only be assigned a non-empty expression"),w;case c.jsxTagStart:case o.string:return this.parseExprAtom();default:this.raise(this.start,"JSX value should be either an expression or a quoted JSX text")}}jsx_parseEmptyExpression(){let w=this.startNodeAt(this.lastTokEnd,this.lastTokEndLoc);return this.finishNodeAt(w,"JSXEmptyExpression",this.start,this.startLoc)}jsx_parseExpressionContainer(){let w=this.startNode();return this.next(),w.expression=this.type===o.braceR?this.jsx_parseEmptyExpression():this.parseExpression(),this.expect(o.braceR),this.finishNode(w,"JSXExpressionContainer")}jsx_parseAttribute(){let w=this.startNode();return this.eat(o.braceL)?(this.expect(o.ellipsis),w.argument=this.parseMaybeAssign(),this.expect(o.braceR),this.finishNode(w,"JSXSpreadAttribute")):(w.name=this.jsx_parseNamespacedName(),w.value=this.eat(o.eq)?this.jsx_parseAttributeValue():null,this.finishNode(w,"JSXAttribute"))}jsx_parseOpeningElementAt(w,k){let B=this.startNodeAt(w,k);B.attributes=[];let V=this.jsx_parseElementName();for(V&&(B.name=V);this.type!==o.slash&&this.type!==c.jsxTagEnd;)B.attributes.push(this.jsx_parseAttribute());return B.selfClosing=this.eat(o.slash),this.expect(c.jsxTagEnd),this.finishNode(B,V?"JSXOpeningElement":"JSXOpeningFragment")}jsx_parseClosingElementAt(w,k){let B=this.startNodeAt(w,k),V=this.jsx_parseElementName();return V&&(B.name=V),this.expect(c.jsxTagEnd),this.finishNode(B,V?"JSXClosingElement":"JSXClosingFragment")}jsx_parseElementAt(w,k){let B=this.startNodeAt(w,k),V=[],G=this.jsx_parseOpeningElementAt(w,k),Q=null;if(!G.selfClosing){e:for(;;)switch(this.type){case c.jsxTagStart:if(w=this.start,k=this.startLoc,this.next(),this.eat(o.slash)){Q=this.jsx_parseClosingElementAt(w,k);break e}V.push(this.jsx_parseElementAt(w,k));break;case c.jsxText:V.push(this.parseExprAtom());break;case o.braceL:V.push(this.jsx_parseExpressionContainer());break;default:this.unexpected()}ni(Q.name)!==ni(G.name)&&this.raise(Q.start,"Expected corresponding JSX closing tag for <"+ni(G.name)+">")}let $=G.name?"Element":"Fragment";return B["opening"+$]=G,B["closing"+$]=Q,B.children=V,this.type===o.relational&&this.value==="<"&&this.raise(this.start,"Adjacent JSX elements must be wrapped in an enclosing tag"),this.finishNode(B,"JSX"+$)}jsx_parseText(){let w=this.parseLiteral(this.value);return w.type="JSXText",w}jsx_parseElement(){let w=this.start,k=this.startLoc;return this.next(),this.jsx_parseElementAt(w,k)}parseExprAtom(w){return this.type===c.jsxText?this.jsx_parseText():this.type===c.jsxTagStart?this.jsx_parseElement():super.parseExprAtom(w)}readToken(w){let k=this.curContext();if(k===l)return this.jsx_readToken();if(k===g||k===b){if(E(w))return this.jsx_readWord();if(w==62)return++this.pos,this.finishToken(c.jsxTagEnd);if((w===34||w===39)&&k==g)return this.jsx_readString(w)}return w===60&&this.exprAllowed&&this.input.charCodeAt(this.pos+1)!==33?(++this.pos,this.finishToken(c.jsxTagStart)):super.readToken(w)}updateContext(w){if(this.type==o.braceL){var k=this.curContext();k==g?this.context.push(p.b_expr):k==l?this.context.push(p.b_tmpl):super.updateContext(w),this.exprAllowed=!0}else if(this.type===o.slash&&w===c.jsxTagStart)this.context.length-=2,this.context.push(b),this.exprAllowed=!1;else return super.updateContext(w)}}}});var Tl={};br(Tl,{default:()=>kl,webpackPlugin:()=>El});module.exports=Yo(Tl);var Kr=require("path"),Xr=mt(Wr(),1);function ze(e){return e=e||[],Array.isArray(e)?e:[e]}var Tu=/\\/g;function Ci(e){return e.replace(Tu,"/")}var Pu=/^(?:\/|(?:[A-Z]:)?[/\\|])/i;function Iu(e){return Pu.test(e)}function Nu(e,t){return e.startsWith("**")||Iu(e)?Ci(e):Ci((0,Kr.resolve)(t,e))}function Gr(e){if(e instanceof RegExp)return s=>{let a=Ci(s),o=e.test(a);return e.lastIndex=0,o};let t=(0,Xr.default)(Nu(e,process.cwd()),{dot:!0});return s=>t(Ci(s))}function $r(e){return e instanceof RegExp?t=>{let s=e.test(t);return e.lastIndex=0,s}:t=>t.includes(e)}function Jr(e,t){if(!(!e&&!t))return s=>e?.some(a=>a(s))?!1:t?.some(a=>a(s))?!0:!(t&&t.length>0)}function Qr(e){return typeof e=="string"||e instanceof RegExp?{include:[e]}:Array.isArray(e)?{include:e}:{exclude:e.exclude?ze(e.exclude):void 0,include:e.include?ze(e.include):void 0}}function Yr(e){if(!e)return;let{exclude:t,include:s}=Qr(e),a=t?.map(Gr),o=s?.map(Gr);return Jr(a,o)}function Lu(e){if(!e)return;let{exclude:t,include:s}=Qr(e),a=t?.map($r),o=s?.map($r);return Jr(a,o)}function Ru(e){let t=Yr(e);return t?s=>!!t(s):void 0}function Ou(e,t){if(!e&&!t)return;let s=Yr(e),a=Lu(t);return(o,c)=>{let p=!0;return s&&(p&&=s(o)),p?(a&&(p&&=a(c)),p):!1}}function Te(e,t){let s,a;if(typeof t=="function")s=t;else{s=t.handler;let o=t.filter;e==="resolveId"||e==="load"?a=Ru(o?.id):a=Ou(o?.id,o?.code)}return{handler:s,filter:a||(()=>!0)}}var zr;function xt(e,t={}){if(!zr)throw new Error("Parse implementation is not set. Please call setParseImpl first.");return zr(e,t)}var wi=require("path");function us(e,t,s){if(e.resource==null)return[];let a=Rt(e.resource+(e.resourceQuery||""));if(t.transformInclude&&!t.transformInclude(a))return[];let{filter:o}=Te("load",t.transform);return o(a)?[{loader:s,options:{plugin:t},ident:t.name}]:[]}function Rt(e){return(0,wi.isAbsolute)(e)?(0,wi.normalize)(e):e}var Zr=require("path"),ea=require("buffer");function _i(e,t,s,a){return{getNativeBuildContext(){return{framework:"rspack",compiler:e,compilation:t,loaderContext:s,inputSourceMap:a}},addWatchFile(o){let c=(0,Zr.resolve)(process.cwd(),o);t.fileDependencies.add(c),s?.addDependency(c)},getWatchFiles(){return Array.from(t.fileDependencies)},parse:xt,emitFile(o){let c=o.fileName||o.name;if(o.source&&c){let{sources:p}=t.compiler.webpack;t.emitAsset(c,new p.RawSource(typeof o.source=="string"?o.source:ea.Buffer.from(o.source)))}}}}function ta(e){let t=new Error(typeof e=="string"?e:e.message);return typeof e=="object"&&(t.stack=e.stack,t.cause=e.meta),t}var Mt=require("path"),Ot=mt(require("fs"),1);function ia(e,t){return(0,Mt.resolve)(t.__virtualModulePrefix,encodeURIComponent(e))}function sa(e,t){return decodeURIComponent((0,Mt.basename)(e))}function hs(e,t){return(0,Mt.dirname)(e)===t.__virtualModulePrefix}var ra=class ut{name="FakeVirtualModulesPlugin";static counters=new Map;static initCleanup=!1;constructor(t){this.plugin=t,ut.initCleanup||(ut.initCleanup=!0,process.once("exit",()=>{ut.counters.forEach((s,a)=>{Ot.default.rmSync(a,{recursive:!0,force:!0})})}))}apply(t){let s=this.plugin.__virtualModulePrefix;Ot.default.existsSync(s)||Ot.default.mkdirSync(s,{recursive:!0});let a=ut.counters.get(s)??0;ut.counters.set(s,a+1),t.hooks.shutdown.tap(this.name,()=>{let o=(ut.counters.get(s)??1)-1;o===0?(ut.counters.delete(s),Ot.default.rmSync(s,{recursive:!0,force:!0})):ut.counters.set(s,o)})}async writeModule(t){return Ot.default.promises.writeFile(t,"")}};var aa=require("module"),na=require("path"),oa=require("buffer"),ua=mt(require("process"),1),Du={};function cs(e){return{addWatchFile(t){(e.fileDependencies??e.compilationDependencies).add(t)},getWatchFiles(){return Array.from(e.fileDependencies??e.compilationDependencies)}}}var Mu=(0,aa.createRequire)(Du.url);function Vu(e){return new(Mu("webpack")).sources.RawSource(typeof e=="string"?e:oa.Buffer.from(e.buffer))}function Ai(e,t,s,a,o){return{parse:xt,addWatchFile(c){e.addWatchFile((0,na.resolve)(ua.default.cwd(),c))},emitFile(c){let p=c.fileName||c.name;if(c.source&&p){if(!s)throw new Error("unplugin/webpack: emitFile outside supported hooks (buildStart, buildEnd, load, transform, watchChange)");s.emitAsset(p,Vu(c.source))}},getWatchFiles(){return e.getWatchFiles()},getNativeBuildContext(){return{framework:"webpack",compiler:t,compilation:s,loaderContext:a,inputSourceMap:o}}}}function ha(e){let t=new Error(typeof e=="string"?e:e.message);return typeof e=="object"&&(t.stack=e.stack,t.cause=e.meta),t}var Qa=require("module"),Se=mt(require("path"),1),st=mt(require("fs"),1),Ss=require("buffer");var da=44,Bu=59,ca="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ma=new Uint8Array(64),xa=new Uint8Array(128);for(let e=0;e<ca.length;e++){let t=ca.charCodeAt(e);ma[e]=t,xa[t]=e}function Qt(e,t){let s=0,a=0,o=0;do{let p=e.next();o=xa[p],s|=(o&31)<<a,a+=5}while(o&32);let c=s&1;return s>>>=1,c&&(s=-2147483648|-s),t+s}function Yt(e,t,s){let a=t-s;a=a<0?-a<<1|1:a<<1;do{let o=a&31;a>>>=5,a>0&&(o|=32),e.write(ma[o])}while(a>0);return t}function la(e,t){return e.pos>=t?!1:e.peek()!==da}var pa=1024*16,fa=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(e){return Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString()}}:{decode(e){let t="";for(let s=0;s<e.length;s++)t+=String.fromCharCode(e[s]);return t}},Fu=class{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(pa)}write(e){let{buffer:t}=this;t[this.pos++]=e,this.pos===pa&&(this.out+=fa.decode(t),this.pos=0)}flush(){let{buffer:e,out:t,pos:s}=this;return s>0?t+fa.decode(e.subarray(0,s)):t}},ju=class{constructor(e){this.pos=0,this.buffer=e}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(e){let{buffer:t,pos:s}=this,a=t.indexOf(e,s);return a===-1?t.length:a}};function ya(e){let{length:t}=e,s=new ju(e),a=[],o=0,c=0,p=0,g=0,b=0;do{let l=s.indexOf(";"),_=[],E=!0,D=0;for(o=0;s.pos<l;){let w;o=Qt(s,o),o<D&&(E=!1),D=o,la(s,l)?(c=Qt(s,c),p=Qt(s,p),g=Qt(s,g),la(s,l)?(b=Qt(s,b),w=[o,c,p,g,b]):w=[o,c,p,g]):w=[o],_.push(w),s.pos++}E||Uu(_),a.push(_),s.pos=l+1}while(s.pos<=t);return a}function Uu(e){e.sort(Hu)}function Hu(e,t){return e[0]-t[0]}function ls(e){let t=new Fu,s=0,a=0,o=0,c=0;for(let p=0;p<e.length;p++){let g=e[p];if(p>0&&t.write(Bu),g.length===0)continue;let b=0;for(let l=0;l<g.length;l++){let _=g[l];l>0&&t.write(da),b=Yt(t,_[0],b),_.length!==1&&(s=Yt(t,_[1],s),a=Yt(t,_[2],a),o=Yt(t,_[3],o),_.length!==4&&(c=Yt(t,_[4],c)))}}return t.flush()}var qu=/^[\w+.-]+:\/\//,Wu=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,Gu=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;function $u(e){return qu.test(e)}function zu(e){return e.startsWith("//")}function ba(e){return e.startsWith("/")}function Ku(e){return e.startsWith("file:")}function ga(e){return/^[.?#]/.test(e)}function Ei(e){let t=Wu.exec(e);return Sa(t[1],t[2]||"",t[3],t[4]||"",t[5]||"/",t[6]||"",t[7]||"")}function Xu(e){let t=Gu.exec(e),s=t[2];return Sa("file:","",t[1]||"","",ba(s)?s:"/"+s,t[3]||"",t[4]||"")}function Sa(e,t,s,a,o,c,p){return{scheme:e,user:t,host:s,port:a,path:o,query:c,hash:p,type:7}}function va(e){if(zu(e)){let s=Ei("http:"+e);return s.scheme="",s.type=6,s}if(ba(e)){let s=Ei("http://foo.com"+e);return s.scheme="",s.host="",s.type=5,s}if(Ku(e))return Xu(e);if($u(e))return Ei(e);let t=Ei("http://foo.com/"+e);return t.scheme="",t.host="",t.type=e?e.startsWith("?")?3:e.startsWith("#")?2:4:1,t}function Ju(e){if(e.endsWith("/.."))return e;let t=e.lastIndexOf("/");return e.slice(0,t+1)}function Qu(e,t){Ca(t,t.type),e.path==="/"?e.path=t.path:e.path=Ju(t.path)+e.path}function Ca(e,t){let s=t<=4,a=e.path.split("/"),o=1,c=0,p=!1;for(let b=1;b<a.length;b++){let l=a[b];if(!l){p=!0;continue}if(p=!1,l!=="."){if(l===".."){c?(p=!0,c--,o--):s&&(a[o++]=l);continue}a[o++]=l,c++}}let g="";for(let b=1;b<o;b++)g+="/"+a[b];(!g||p&&!g.endsWith("/.."))&&(g+="/"),e.path=g}function wa(e,t){if(!e&&!t)return"";let s=va(e),a=s.type;if(t&&a!==7){let c=va(t),p=c.type;switch(a){case 1:s.hash=c.hash;case 2:s.query=c.query;case 3:case 4:Qu(s,c);case 5:s.user=c.user,s.host=c.host,s.port=c.port;case 6:s.scheme=c.scheme}p>a&&(a=p)}Ca(s,a);let o=s.query+s.hash;switch(a){case 2:case 3:return o;case 4:{let c=s.path.slice(1);return c?ga(t||e)&&!ga(c)?"./"+c+o:c+o:o||"."}case 5:return s.path+o;default:return s.scheme+"//"+s.user+s.host+s.port+s.path+o}}function Yu(e){if(!e)return"";let t=e.lastIndexOf("/");return e.slice(0,t+1)}function Zu(e,t){let s=Yu(e),a=t?t+"/":"";return o=>wa(a+(o||""),s)}var yt=0;function eh(e,t){let s=_a(e,0);if(s===e.length)return e;t||(e=e.slice());for(let a=s;a<e.length;a=_a(e,a+1))e[a]=ih(e[a],t);return e}function _a(e,t){for(let s=t;s<e.length;s++)if(!th(e[s]))return s;return e.length}function th(e){for(let t=1;t<e.length;t++)if(e[t][yt]<e[t-1][yt])return!1;return!0}function ih(e,t){return t||(e=e.slice()),e.sort(sh)}function sh(e,t){return e[yt]-t[yt]}var ki=!1;function rh(e,t,s,a){for(;s<=a;){let o=s+(a-s>>1),c=e[o][yt]-t;if(c===0)return ki=!0,o;c<0?s=o+1:a=o-1}return ki=!1,s-1}function ah(e,t,s){for(let a=s+1;a<e.length&&e[a][yt]===t;s=a++);return s}function nh(e,t,s){for(let a=s-1;a>=0&&e[a][yt]===t;s=a--);return s}function oh(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function uh(e,t,s,a){let{lastKey:o,lastNeedle:c,lastIndex:p}=s,g=0,b=e.length-1;if(a===o){if(t===c)return ki=p!==-1&&e[p][yt]===t,p;t>=c?g=p===-1?0:p:b=p}return s.lastKey=a,s.lastNeedle=t,s.lastIndex=rh(e,t,g,b)}function hh(e){return typeof e=="string"?JSON.parse(e):e}var Aa=-1,ch=1,Ti=class{constructor(e,t){let s=typeof e=="string";if(!s&&e._decodedMemo)return e;let a=hh(e),{version:o,file:c,names:p,sourceRoot:g,sources:b,sourcesContent:l}=a;this.version=o,this.file=c,this.names=p||[],this.sourceRoot=g,this.sources=b,this.sourcesContent=l,this.ignoreList=a.ignoreList||a.x_google_ignoreList||void 0;let _=Zu(t,g);this.resolvedSources=b.map(_);let{mappings:E}=a;if(typeof E=="string")this._encoded=E,this._decoded=void 0;else if(Array.isArray(E))this._encoded=void 0,this._decoded=eh(E,s);else throw a.sections?new Error("TraceMap passed sectioned source map, please use FlattenMap export instead"):new Error(`invalid source map: ${JSON.stringify(a)}`);this._decodedMemo=oh(),this._bySources=void 0,this._bySourceMemos=void 0}};function Pi(e){var t;return(t=e)._decoded||(t._decoded=ya(e._encoded))}function Ea(e,t,s){let a=Pi(e);if(t>=a.length)return null;let o=a[t],c=lh(o,e._decodedMemo,t,s,ch);return c===-1?null:o[c]}function lh(e,t,s,a,o){let c=uh(e,a,t,s);return ki?c=(o===Aa?ah:nh)(e,a,c):o===Aa&&c++,c===-1||c===e.length?-1:c}var ps=class{constructor(){this._indexes={__proto__:null},this.array=[]}};function Ta(e,t){return e._indexes[t]}function Zt(e,t){let s=Ta(e,t);if(s!==void 0)return s;let{array:a,_indexes:o}=e,c=a.push(t);return o[t]=c-1}function ph(e,t){let s=Ta(e,t);if(s===void 0)return;let{array:a,_indexes:o}=e;for(let c=s+1;c<a.length;c++){let p=a[c];a[c-1]=p,o[p]--}o[t]=void 0,a.pop()}var fh=0,dh=1,mh=2,xh=3,yh=4,Pa=-1,Ia=class{constructor({file:e,sourceRoot:t}={}){this._names=new ps,this._sources=new ps,this._sourcesContent=[],this._mappings=[],this.file=e,this.sourceRoot=t,this._ignoreList=new ps}};var Na=(e,t,s,a,o,c,p,g)=>gh(!0,e,t,s,a,o,c,p,g);function La(e,t,s){let{_sources:a,_sourcesContent:o}=e,c=Zt(a,t);o[c]=s}function Ra(e,t,s=!0){let{_sources:a,_sourcesContent:o,_ignoreList:c}=e,p=Zt(a,t);p===o.length&&(o[p]=null),s?Zt(c,p):ph(c,p)}function fs(e){let{_mappings:t,_sources:s,_sourcesContent:a,_names:o,_ignoreList:c}=e;return Sh(t),{version:3,file:e.file||void 0,names:o.array,sourceRoot:e.sourceRoot||void 0,sources:s.array,sourcesContent:a,mappings:t,ignoreList:c.array}}function Oa(e){let t=fs(e);return Object.assign({},t,{mappings:ls(t.mappings)})}function gh(e,t,s,a,o,c,p,g,b){let{_mappings:l,_sources:_,_sourcesContent:E,_names:D}=t,w=vh(l,s),k=bh(w,a);if(!o)return e&&Ch(w,k)?void 0:ka(w,k,[a]);let B=Zt(_,o),V=g?Zt(D,g):Pa;if(B===E.length&&(E[B]=b??null),!(e&&wh(w,k,B,c,p,V)))return ka(w,k,g?[a,B,c,p,V]:[a,B,c,p])}function vh(e,t){for(let s=e.length;s<=t;s++)e[s]=[];return e[t]}function bh(e,t){let s=e.length;for(let a=s-1;a>=0;s=a--){let o=e[a];if(t>=o[fh])break}return s}function ka(e,t,s){for(let a=e.length;a>t;a--)e[a]=e[a-1];e[t]=s}function Sh(e){let{length:t}=e,s=t;for(let a=s-1;a>=0&&!(e[a].length>0);s=a,a--);s<t&&(e.length=s)}function Ch(e,t){return t===0?!0:e[t-1].length===1}function wh(e,t,s,a,o,c){if(t===0)return!1;let p=e[t-1];return p.length===1?!1:s===p[dh]&&a===p[mh]&&o===p[xh]&&c===(p.length===5?p[yh]:Pa)}var Ma=Va("",-1,-1,"",null,!1),_h=[];function Va(e,t,s,a,o,c){return{source:e,line:t,column:s,name:a,content:o,ignore:c}}function Da(e,t,s,a,o){return{map:e,sources:t,source:s,content:a,ignore:o}}function Ba(e,t){return Da(e,t,"",null,!1)}function Ah(e,t,s){return Da(null,_h,e,t,s)}function Eh(e){let t=new Ia({file:e.map.file}),{sources:s,map:a}=e,o=a.names,c=Pi(a);for(let p=0;p<c.length;p++){let g=c[p];for(let b=0;b<g.length;b++){let l=g[b],_=l[0],E=Ma;if(l.length!==1){let Q=s[l[1]];if(E=Fa(Q,l[2],l[3],l.length===5?o[l[4]]:""),E==null)continue}let{column:D,line:w,name:k,content:B,source:V,ignore:G}=E;Na(t,p,_,V,w,D,k),V&&B!=null&&La(t,V,B),G&&Ra(t,V,!0)}}return t}function Fa(e,t,s,a){if(!e.map)return Va(e.source,t,s,a,e.content,e.ignore);let o=Ea(e.map,t,s);return o==null?null:o.length===1?Ma:Fa(e.sources[o[1]],o[2],o[3],o.length===5?e.map.names[o[4]]:a)}function kh(e){return Array.isArray(e)?e:[e]}function Th(e,t){let s=kh(e).map(c=>new Ti(c,"")),a=s.pop();for(let c=0;c<s.length;c++)if(s[c].sources.length>1)throw new Error(`Transformation map ${c} must have exactly one source file.
12
+ Did you specify these with the most recent transformation maps first?`);let o=ja(a,t,"",0);for(let c=s.length-1;c>=0;c--)o=Ba(s[c],[o]);return o}function ja(e,t,s,a){let{resolvedSources:o,sourcesContent:c,ignoreList:p}=e,g=a+1,b=o.map((l,_)=>{let E={importer:s,depth:g,source:l||"",content:void 0,ignore:void 0},D=t(E.source,E),{source:w,content:k,ignore:B}=E;if(D)return ja(new Ti(D,w),t,w,g);let V=k!==void 0?k:c?c[_]:null,G=B!==void 0?B:p?p.includes(_):!1;return Ah(w,V,G)});return Ba(e,b)}var Ph=class{constructor(e,t){let s=t.decodedMappings?fs(e):Oa(e);this.version=s.version,this.file=s.file,this.mappings=s.mappings,this.names=s.names,this.ignoreList=s.ignoreList,this.sourceRoot=s.sourceRoot,this.sources=s.sources,t.excludeContent||(this.sourcesContent=s.sourcesContent)}toString(){return JSON.stringify(this)}};function ds(e,t,s){let a=typeof s=="object"?s:{excludeContent:!!s,decodedMappings:!1},o=Th(e,t);return new Ph(Eh(o),a)}var Ya=mt(require("querystring"),1),Za=mt(require("process"),1),ei={},Ih=(0,Qa.createRequire)(ei.url),Nh={".js":"js",".mjs":"js",".cjs":"js",".jsx":"jsx",".ts":"ts",".cts":"ts",".mts":"ts",".tsx":"tsx",".css":"css",".less":"css",".stylus":"css",".scss":"css",".sass":"css",".json":"json",".txt":"text"};function Lh(e){return Nh[Se.default.extname(e).toLowerCase()]||"js"}function Rh(e){let t=[];return{addWatchFile(s){t.push(s)},getWatchFiles(){return t},emitFile(s){let a=s.fileName||s.name,o=e?.config?.outdir;if(o&&s.source&&a){let c=Se.default.resolve(o,a),p=Se.default.dirname(c);st.default.existsSync(p)||st.default.mkdirSync(p,{recursive:!0}),st.default.writeFileSync(c,s.source)}},parse:xt,getNativeBuildContext(){return{framework:"bun",build:e}}}}function ms(e){let t=[],s=[];return{errors:t,warnings:s,mixedContext:{...e,error(a){t.push(a)},warn(a){s.push(a)}}}}function Oh(e){return t=>{if(typeof Bun>"u")throw new ReferenceError("Bun is not supported in this environment");if(!Bun.semver.satisfies(Bun.version,">=1.2.22"))throw new Error("Bun 1.2.22 or higher is required, please upgrade Bun");let s={framework:"bun"},a=ze(e(t,s));return{name:(a.length===1?a[0].name:s.bunHostName)??`unplugin-host:${a.map(o=>o.name).join(":")}`,async setup(o){let c=Rh(o);a.some(E=>E.buildStart)&&o.onStart(async()=>{for(let E of a)E.buildStart&&await E.buildStart.call(c)});let p=a.filter(E=>E.resolveId).map(E=>({plugin:E,...Te("resolveId",E.resolveId)})),g=a.filter(E=>E.load).map(E=>({plugin:E,...Te("load",E.load)})),b=a.filter(E=>E.transform||E.transformInclude).map(E=>({plugin:E,...Te("transform",E.transform)})),l=new Set;for(let E of a)E.resolveId&&E.load&&l.add(E.name);p.length&&o.onResolve({filter:/.*/},async E=>{if(!o.config?.external?.includes(E.path))for(let{plugin:D,handler:w,filter:k}of p){if(!k(E.path))continue;let{mixedContext:B,errors:V,warnings:G}=ms(c),Q=E.kind==="entry-point-run"||E.kind==="entry-point-build",$=await w.call(B,E.path,Q?void 0:E.importer,{isEntry:Q});for(let m of G)console.warn("[unplugin]",typeof m=="string"?m:m.message);if(V.length>0){let m=V.map(ae=>typeof ae=="string"?ae:ae.message).join(`
13
+ `);throw new Error(`[unplugin] ${D.name}: ${m}`)}if(typeof $=="string")return(0,Se.isAbsolute)($)?{path:$}:{path:$,namespace:D.name};if(typeof $=="object"&&$!==null)return(0,Se.isAbsolute)($.id)?{path:$.id,external:$.external}:{path:$.id,external:$.external,namespace:D.name}}});async function _(E,D,w){let k,B=!1,V=D==="file"?g:g.filter(G=>G.plugin.name===D);for(let{plugin:G,handler:Q,filter:$}of V){if(G.loadInclude&&!G.loadInclude(E)||!$(E))continue;let{mixedContext:m,errors:ae,warnings:K}=ms(c),ne=await Q.call(m,E);for(let X of K)console.warn("[unplugin]",typeof X=="string"?X:X.message);if(ae.length>0){let X=ae.map(Z=>typeof Z=="string"?Z:Z.message).join(`
14
+ `);throw new Error(`[unplugin] ${G.name}: ${X}`)}if(typeof ne=="string"){k=ne,B=!0;break}else if(typeof ne=="object"&&ne!==null){k=ne.code,B=!0;break}}if(!B&&D==="file"&&b.length>0&&(k=await Bun.file(E).text()),k!==void 0){let G=D==="file"?b:b.filter(Q=>Q.plugin.name===D);for(let{plugin:Q,handler:$,filter:m}of G){if(Q.transformInclude&&!Q.transformInclude(E)||!m(E,k))continue;let{mixedContext:ae,errors:K,warnings:ne}=ms(c),X=await $.call(ae,k,E);for(let Z of ne)console.warn("[unplugin]",typeof Z=="string"?Z:Z.message);if(K.length>0){let Z=K.map(M=>typeof M=="string"?M:M.message).join(`
15
+ `);throw new Error(`[unplugin] ${Q.name}: ${Z}`)}typeof X=="string"?(k=X,B=!0):typeof X=="object"&&X!==null&&(k=X.code,B=!0)}}if(B&&k!==void 0)return{contents:k,loader:w??Lh(E)}}(g.length||b.length)&&o.onLoad({filter:/.*/,namespace:"file"},async E=>_(E.path,"file",E.loader));for(let E of l)o.onLoad({filter:/.*/,namespace:E},async D=>_(D.path,E,D.loader));a.some(E=>E.buildEnd||E.writeBundle)&&o.onEnd(async()=>{for(let E of a)E.buildEnd&&await E.buildEnd.call(c),E.writeBundle&&await E.writeBundle()})}}}}var Mh={".js":"js",".mjs":"js",".cjs":"js",".jsx":"jsx",".ts":"ts",".cts":"ts",".mts":"ts",".tsx":"tsx",".css":"css",".less":"css",".stylus":"css",".scss":"css",".sass":"css",".json":"json",".txt":"text"};function Vh(e,t){return Mh[Se.default.extname(t).toLowerCase()]||"js"}function Ua(e,t,s){return typeof e=="function"?e(t,s):e}function Dh(e){return Object.prototype.hasOwnProperty.call(e,"toString")||Object.defineProperty(e,"toString",{enumerable:!1,value:function(){return JSON.stringify(this)}}),Object.prototype.hasOwnProperty.call(e,"toUrl")||Object.defineProperty(e,"toUrl",{enumerable:!1,value:function(){return`data:application/json;charset=utf-8;base64,${Ss.Buffer.from(this.toString()).toString("base64")}`}}),e}var Ha={names:[],sources:[],mappings:"",version:3};function Bh(e,t){if(t=t.filter(o=>o.sources),t.length===0||t.every(o=>o.sources.length===0))return{...Ha};let s,a=1;return t.slice(0,-1).find(o=>o.sources.length!==1)===void 0?s=ds(t,()=>null,!0):s=ds(t[0],o=>o===e&&t[a]?t[a++]:{...Ha},!0),s.file||delete s.file,s}function Fh(e){let t=[],{initialOptions:s}=e;return{parse:xt,addWatchFile(){throw new Error("unplugin/esbuild: addWatchFile outside supported hooks (resolveId, load, transform)")},emitFile(a){let o=a.fileName||a.name;if(s.outdir&&a.source&&o){let c=Se.default.resolve(s.outdir,o),p=Se.default.dirname(c);st.default.existsSync(p)||st.default.mkdirSync(p,{recursive:!0}),st.default.writeFileSync(c,a.source)}},getWatchFiles(){return t},getNativeBuildContext(){return{framework:"esbuild",build:e}}}}function xs(e){let t=[],s=[];return{errors:t,warnings:s,mixedContext:{...e,...{error(o){t.push(qa(o))},warn(o){s.push(qa(o))}},addWatchFile(o){e.getWatchFiles().push(o)}}}}function qa(e){return typeof e=="string"&&(e={message:e}),{id:e.id,pluginName:e.plugin,text:e.message,location:e.loc?{file:e.loc.file,line:e.loc.line,column:e.loc.column}:null,detail:e.meta,notes:[]}}function Wa(e,t){return e&&((!e.sourcesContent||e.sourcesContent.length===0)&&(e.sourcesContent=[t]),e=Dh(e),t+=`
16
+ //# sourceMappingURL=${e.toUrl()}`),t}function jh(e){return t=>{let s={framework:"esbuild"},a=ze(e(t,s)),o=async c=>{let p=Uh(),g=[];for(let b of a){let l={};await p(b)({...c,onLoad(_,E){l.options=_,l.onLoadCb=E},onTransform(_,E){l.options||=_,l.onTransformCb=E}},c),(l.onLoadCb||l.onTransformCb)&&g.push(l)}g.length&&c.onLoad(g.length===1?g[0].options:{filter:/.*/},async b=>{function l(D){return g.length===1||!D?.filter||D.filter.test(b.path)}let _;for(let{options:D,onLoadCb:w}of g)if(l(D)&&(w&&(_=await w(b)),_?.contents))break;let E;for(let{options:D,onTransformCb:w}of g)if(l(D)&&w){let k=await w({..._,...b,async getContents(){return _?.contents?_.contents:E||(E=await st.default.promises.readFile(b.path,"utf8"))}});k?.contents&&(_=k)}if(_?.contents)return _})};return{name:(a.length===1?a[0].name:s.esbuildHostName)??`unplugin-host:${a.map(c=>c.name).join(":")}`,setup:o}}}function Uh(){return e=>(t,s)=>{let a=Fh(s),{onStart:o,onEnd:c,onResolve:p,onLoad:g,onTransform:b,initialOptions:l}=t,_=e.esbuild?.onResolveFilter??/.*/,E=e.esbuild?.onLoadFilter??/.*/,D=e.esbuild?.loader??Vh;if(e.esbuild?.config?.call(a,l),e.buildStart&&o(()=>e.buildStart.call(a)),(e.buildEnd||e.writeBundle)&&c(async()=>{e.buildEnd&&await e.buildEnd.call(a),e.writeBundle&&await e.writeBundle()}),e.resolveId&&p({filter:_},async w=>{let k=w.path;if(l.external?.includes(k))return;let{handler:B,filter:V}=Te("resolveId",e.resolveId);if(!V(k))return;let{errors:G,warnings:Q,mixedContext:$}=xs(a),m=w.kind==="entry-point",ae=await B.call($,k,m?void 0:w.importer,{isEntry:m});if(typeof ae=="string")return{path:ae,namespace:e.name,errors:G,warnings:Q,watchFiles:$.getWatchFiles()};if(typeof ae=="object"&&ae!==null)return{path:ae.id,external:ae.external,namespace:e.name,errors:G,warnings:Q,watchFiles:$.getWatchFiles()}}),e.load&&g({filter:E},async w=>{let{handler:k,filter:B}=Te("load",e.load),V=w.path+(w.suffix||"");if(e.loadInclude&&!e.loadInclude(V)||!B(V))return;let{errors:G,warnings:Q,mixedContext:$}=xs(a),m,ae,K=await k.call($,V);if(typeof K=="string"?m=K:typeof K=="object"&&K!==null&&(m=K.code,ae=K.map),m===void 0)return null;ae&&(m=Wa(ae,m));let ne=Se.default.dirname(w.path);return{contents:m,errors:G,warnings:Q,watchFiles:$.getWatchFiles(),loader:Ua(D,m,w.path),resolveDir:ne}}),e.transform&&b({filter:E},async w=>{let{handler:k,filter:B}=Te("transform",e.transform),V=w.path+(w.suffix||"");if(e.transformInclude&&!e.transformInclude(V))return;let G=await w.getContents();if(!B(V,G))return;let{mixedContext:Q,errors:$,warnings:m}=xs(a),ae=Se.default.dirname(w.path),K,ne=await k.call(Q,G,V);if(typeof ne=="string"?G=ne:typeof ne=="object"&&ne!==null&&(G=ne.code,K&&ne.map?K=Bh(w.path,[ne.map==="string"?JSON.parse(ne.map):ne.map,K]):typeof ne.map=="string"?K=JSON.parse(ne.map):K=ne.map),G)return K&&(G=Wa(K,G)),{contents:G,errors:$,warnings:m,watchFiles:Q.getWatchFiles(),loader:Ua(D,G,w.path),resolveDir:ae}}),e.esbuild?.setup)return e.esbuild.setup(s)}}function Vt(e,t){return{parse:xt,addWatchFile(s){e.addWatchFile(s,t||s)},emitFile(s){let a=s.fileName||s.name;s.source&&a&&e.emitFile({resolvedPath:a,name:a,content:[...Ss.Buffer.from(s.source)],resourceType:(0,Se.extname)(a)})},getWatchFiles(){return e.getWatchFiles()},getNativeBuildContext(){return{framework:"farm",context:e}}}}function ys(e){return{error:t=>e.error(typeof t=="string"?new Error(t):t),warn:t=>e.warn(typeof t=="string"?new Error(t):t)}}function Hh(e){let s={pre:102,post:98};return s[e]!==void 0?s[e]:100}function qh(e){return{Added:"create",Updated:"update",Removed:"delete"}[e]}function Wh(e){return typeof e=="string"}function Ga(e){return typeof e=="object"&&e!==null}function $a(e){if(!e)return[];let t=e.split("?")[1],s=Ya.parse(t),a=[];for(let o in s)a.push([o,s[o]]);return a}function bs(e){let t=e.length;if(t===0)return e;let s=e.indexOf("\0");if(s===-1)return e;let a=Array.from({length:t+Gh(e,s)}),o=0;for(let c=0;c<s;c++)a[o++]=e[c];for(let c=s;c<t;c++){let p=e[c];p==="\0"?(a[o++]="\\",a[o++]="0"):a[o++]=p}return Se.default.posix.normalize(a.join(""))}function gs(e){let t=e.length;if(t===0)return e;let s=e.indexOf("\\0");if(s===-1)return e;let a=Array.from({length:t-$h(e,s)}),o=0;for(let p=0;p<s;p++)a[o++]=e[p];let c=s;for(;c<t;)e[c]==="\\"&&e[c+1]==="0"?(a[o++]="\0",c+=2):a[o++]=e[c++];return Se.default.posix.normalize(a.join(""))}function za(e){if(e==null)throw new Error("Content cannot be null or undefined");return bs(typeof e=="string"?e:e.code||"")}function Gh(e,t){let s=0,a=e.length;for(let o=t;o<a;o++)e[o]==="\0"&&s++;return s}function $h(e,t){let s=0,a=e.length;for(let o=t;o<a-1;o++)e[o]==="\\"&&e[o+1]==="0"&&(s++,o++);return s}function Ka(e){let t=e.indexOf("?");return t!==-1?Se.default.posix.normalize(e.slice(0,t)):Se.default.posix.normalize(e)}function zh(e){return e?.startsWith("/")}function Xa(e,t){return t.length?`${e}?${Kh(t)}`:e}function Kh(e){if(!e.length)return"";let t="";for(let[s,a]of e)t+=`${s}${a?`=${a}`:""}&`;return`${t.slice(0,-1)}`}var Xh=[[/\.(less)(?:$|\?)/,"less"],[/\.(scss|sass)(?:$|\?)/,"sass"],[/\.(styl|stylus)(?:$|\?)/,"stylus"],[/\.(css)(?:$|\?)/,"css"]],Jh=[[/\.(js|mjs|cjs)(?:$|\?)/,"js"],[/\.(jsx)(?:$|\?)/,"jsx"],[/\.(ts|cts|mts)(?:$|\?)/,"ts"],[/\.(tsx)(?:$|\?)/,"tsx"]];function Qh(e){for(let[t,s]of Xh)if(t.test(e))return s;return null}function Yh(e){for(let[t,s]of Jh)if(t.test(e))return s;return null}function Zh(e){let t=Qh(e);if(t)return t;let s=Yh(e);return s||"js"}function Ja(e){return Zh(e)}function ec(e){return(t=>{let s=ze(e(t,{framework:"farm"})).map(a=>{let o=tc(a,t);return a.farm&&Object.assign(o,a.farm),o});return s.length===1?s[0]:s})}function tc(e,t){let s={name:e.name,priority:Hh(e.enforce)};if(e.farm&&Object.keys(e.farm).forEach(a=>{let o=e.farm[a];o&&Reflect.set(s,a,o)}),e.buildStart){let a=e.buildStart;s.buildStart={async executor(o,c){await a.call(Vt(c))}}}if(e.resolveId){let a=e.resolveId,o=[];t&&(o=t?.filters??[]),s.resolve={filters:{sources:o.length?o:[".*"],importers:[".*"]},async executor(c,p){let g=Se.default.resolve(c.importer??""),b=gs(c.source),{handler:l,filter:_}=Te("resolveId",a);if(!_(b))return null;let E=!1;Ga(c.kind)&&"entry"in c.kind&&(E=c.kind.entry==="index");let D=Vt(p,g),w=await l.call(Object.assign(ys(p),D),b,g??null,{isEntry:E});if(Wh(w))return{resolvedPath:Ka(bs(w)),query:$a(w),sideEffects:!0,external:!1,meta:{}};if(Ga(w))return{resolvedPath:Ka(bs(w?.id)),query:$a(w?.id),sideEffects:!1,external:!!w?.external,meta:{}};if(!zh(c.source))return null}}}if(e.load){let a=e.load;s.load={filters:{resolvedPaths:[".*"]},async executor(o,c){let p=Xa(gs(o.resolvedPath),o.query),g=Ja(p);if(e.loadInclude&&!e.loadInclude?.(p))return null;let{handler:b,filter:l}=Te("load",a);if(!l(p))return null;let _=Vt(c,p);return{content:za(await b.call(Object.assign(ys(c),_),p)),moduleType:g}}}}if(e.transform){let a=e.transform;s.transform={filters:{resolvedPaths:[".*"],moduleTypes:[".*"]},async executor(o,c){let p=Xa(gs(o.resolvedPath),o.query),g=Ja(p);if(e.transformInclude&&!e.transformInclude(p))return null;let{handler:b,filter:l}=Te("transform",a);if(!l(p,o.content))return null;let _=Vt(c,p),E=await b.call(Object.assign(ys(c),_),o.content,p);if(E&&typeof E!="string")return{content:za(E),moduleType:g,sourceMap:typeof E.map=="object"&&E.map!==null?JSON.stringify(E.map):void 0}}}}if(e.watchChange){let a=e.watchChange;s.updateModules={async executor(o,c){let p=o.paths[0],g=p[0],b=qh(p[1]);await a.call(Vt(c),g,{event:b})}}}if(e.buildEnd){let a=e.buildEnd;s.buildEnd={async executor(o,c){await a.call(Vt(c))}}}if(e.writeBundle){let a=e.writeBundle;s.finish={async executor(){await a()}}}return s}function ic(e){return(t=>{let s=ze(e(t,{framework:"rollup"})).map(a=>Ii(a,"rollup"));return s.length===1?s[0]:s})}function Ii(e,t){let s=t==="rolldown";if(e.resolveId&&!s&&typeof e.resolveId=="object"&&e.resolveId.filter){let o=e.resolveId,{handler:c,filter:p}=Te("load",o);a("resolveId",o,function(...g){let[b]=g;if(!(!vs(this,t)&&!p(b)))return c.apply(this,g)})}if(e.load&&(e.loadInclude||!s&&typeof e.load=="object"&&e.load.filter)){let o=e.load,{handler:c,filter:p}=Te("load",o);a("load",o,function(...g){let[b]=g;if(!(e.loadInclude&&!e.loadInclude(b))&&!(!vs(this,t)&&!p(b)))return c.apply(this,g)})}if(e.transform&&(e.transformInclude||!s&&typeof e.transform=="object"&&e.transform.filter)){let o=e.transform,{handler:c,filter:p}=Te("transform",o);a("transform",o,function(...g){let[b,l]=g;if(!(e.transformInclude&&!e.transformInclude(l))&&!(!vs(this,t)&&!p(l,b)))return c.apply(this,g)})}return e[t]&&Object.assign(e,e[t]),e;function a(o,c,p){typeof c=="function"?e[o]=p:c.handler=p}}function vs(e,t){if(t==="vite")return!!e?.meta?.viteVersion;if(t==="rolldown")return!0;let s=e?.meta?.rollupVersion;if(!s)return!1;let[a,o]=s.split(".");return Number(a)>4||Number(a)===4&&Number(o)>=40}function sc(e){return(t=>{let s=ze(e(t,{framework:"rolldown"})).map(a=>Ii(a,"rolldown"));return s.length===1?s[0]:s})}var rc=(0,Se.resolve)(ei.dirname,"rspack/loaders/transform.mjs"),ac=(0,Se.resolve)(ei.dirname,"rspack/loaders/load.mjs");function nc(e){return t=>({apply(s){let a=(0,Se.resolve)(s.options.context??process.cwd(),"node_modules/.virtual",s.rspack.experiments.VirtualModulesPlugin?"":process.pid.toString()),o={framework:"rspack",rspack:{compiler:s}},c=ze(e(t,o));for(let p of c){let g=Object.assign(p,{__unpluginMeta:o,__virtualModulePrefix:a}),b=new Set;if(g.resolveId){let _=(D=>s.rspack.experiments.VirtualModulesPlugin?new s.rspack.experiments.VirtualModulesPlugin:new ra(D))(g);_.apply(s);let E=new Map;g.__vfsModules=E,g.__vfs=_,s.hooks.compilation.tap(g.name,(D,{normalModuleFactory:w})=>{w.hooks.resolve.tapPromise(g.name,async k=>{let B=Rt(k.request),V=k.contextInfo,G=V.issuer!==""?V.issuer:void 0,Q=V.issuer==="";G?.startsWith(g.__virtualModulePrefix)&&(G=decodeURIComponent(G.slice(g.__virtualModulePrefix.length)));let $=_i(s,D),m,ae={error(j){m==null?m=ta(j):console.error(`unplugin/rspack: multiple errors returned from resolveId hook: ${j}`)},warn(j){console.warn(`unplugin/rspack: warning from resolveId hook: ${j}`)}},{handler:K,filter:ne}=Te("resolveId",g.resolveId);if(!ne(B))return;let X=await K.call({...$,...ae},B,G,{isEntry:Q});if(m!=null)throw m;if(X==null)return;let Z=typeof X=="string"?X:X.id;typeof X!="string"&&X.external===!0&&b.add(Z);let M=!0;try{(s.inputFileSystem?.statSync??st.default.statSync)(Z),M=!1}catch{M=!hs(Z,g)}if(M){let j=ia(Z,g);if(E.has(Z))await E.get(Z);else{let he=Promise.resolve(_.writeModule(j,""));E.set(Z,he),await he}Z=j}k.request=Z})})}g.load&&s.options.module.rules.unshift({enforce:g.enforce,include(l){if(hs(l,g)&&(l=sa(l,g)),g.loadInclude&&!g.loadInclude(l))return!1;let{filter:_}=Te("load",g.load);return _(l)?!b.has(l):!1},use:[{loader:ac,options:{plugin:g}}],type:"javascript/auto"}),g.transform&&s.options.module.rules.unshift({enforce:g.enforce,use(l){return us(l,g,rc)}}),g.rspack&&g.rspack(s),(g.watchChange||g.buildStart)&&s.hooks.make.tapPromise(g.name,async l=>{let _=_i(s,l);if(g.watchChange&&(s.modifiedFiles||s.removedFiles)){let E=[];s.modifiedFiles&&s.modifiedFiles.forEach(D=>E.push(Promise.resolve(g.watchChange.call(_,D,{event:"update"})))),s.removedFiles&&s.removedFiles.forEach(D=>E.push(Promise.resolve(g.watchChange.call(_,D,{event:"delete"})))),await Promise.all(E)}if(g.buildStart)return await g.buildStart.call(_)}),g.buildEnd&&s.hooks.emit.tapPromise(g.name,async l=>{await g.buildEnd.call(_i(s,l))}),g.writeBundle&&s.hooks.afterEmit.tapPromise(g.name,async()=>{await g.writeBundle()})}}})}function oc(e){return(t=>{let s=ze(e(t,{framework:"unloader"})).map(a=>Ii(a,"unloader"));return s.length===1?s[0]:s})}function uc(e){return(t=>{let s=ze(e(t,{framework:"vite"})).map(a=>Ii(a,"vite"));return s.length===1?s[0]:s})}var hc=(0,Se.resolve)(ei.dirname,"webpack/loaders/transform.mjs"),cc=(0,Se.resolve)(ei.dirname,"webpack/loaders/load.mjs");function lc(e){return t=>{let s=Ih("webpack-virtual-modules");return{apply(a){let o=(0,Se.resolve)(a.options.context??Za.default.cwd(),"_virtual_"),c={framework:"webpack",webpack:{compiler:a}},p=ze(e(t,c));for(let g of p){let b=Object.assign(g,{__unpluginMeta:c,__virtualModulePrefix:o}),l=new Set;if(b.resolveId){let _=a.options.plugins.find(w=>w instanceof s);_||(_=new s,a.options.plugins.push(_));let E=new Set;b.__vfsModules=E,b.__vfs=_;let D={apply(w){let k=w.ensureHook("resolve");w.getHook("resolve").tapAsync(b.name,async(B,V,G)=>{if(!B.request||Rt(B.request).startsWith(b.__virtualModulePrefix))return G();let Q=Rt(B.request),$=B.context,m=$.issuer!==""?$.issuer:void 0,ae=$.issuer==="";m?.startsWith(b.__virtualModulePrefix)&&(m=decodeURIComponent(m.slice(b.__virtualModulePrefix.length)));let K=new Set,ne=Ai({addWatchFile(I){K.add(I),V.fileDependencies?.add(I)},getWatchFiles(){return Array.from(K)}},a),X,Z={error(I){X==null?X=ha(I):console.error(`unplugin/webpack: multiple errors returned from resolveId hook: ${I}`)},warn(I){console.warn(`unplugin/webpack: warning from resolveId hook: ${I}`)}},{handler:M,filter:j}=Te("resolveId",b.resolveId);if(!j(Q))return G();let he=await M.call({...ne,...Z},Q,m,{isEntry:ae});if(X!=null)return G(X);if(he==null)return G();let ue=typeof he=="string"?he:he.id;typeof he!="string"&&he.external===!0&&l.add(ue),st.default.existsSync(ue)||(ue=Rt(b.__virtualModulePrefix+encodeURIComponent(ue)),E.has(ue)||(b.__vfs.writeModule(ue,""),E.add(ue)));let O={...B,request:ue};w.doResolve(k,O,null,V,G)})}};a.options.resolve.plugins=a.options.resolve.plugins||[],a.options.resolve.plugins.push(D)}b.load&&a.options.module.rules.unshift({include(_){return pc(_,b,l)},enforce:b.enforce,use:[{loader:cc,options:{plugin:b}}],type:"javascript/auto"}),b.transform&&a.options.module.rules.unshift({enforce:b.enforce,use(_){return us(_,b,hc)}}),b.webpack&&b.webpack(a),(b.watchChange||b.buildStart)&&a.hooks.make.tapPromise(b.name,async _=>{let E=Ai(cs(_),a,_);if(b.watchChange&&(a.modifiedFiles||a.removedFiles)){let D=[];a.modifiedFiles&&a.modifiedFiles.forEach(w=>D.push(Promise.resolve(b.watchChange.call(E,w,{event:"update"})))),a.removedFiles&&a.removedFiles.forEach(w=>D.push(Promise.resolve(b.watchChange.call(E,w,{event:"delete"})))),await Promise.all(D)}if(b.buildStart)return await b.buildStart.call(E)}),b.buildEnd&&a.hooks.emit.tapPromise(b.name,async _=>{await b.buildEnd.call(Ai(cs(_),a,_))}),b.writeBundle&&a.hooks.afterEmit.tapPromise(b.name,async()=>{await b.writeBundle()})}}}}}function pc(e,t,s){if(e.startsWith(t.__virtualModulePrefix)&&(e=decodeURIComponent(e.slice(t.__virtualModulePrefix.length))),t.loadInclude&&!t.loadInclude(e))return!1;let{filter:a}=Te("load",t.load);return a(e)?!s.has(e):!1}function en(e){return{get esbuild(){return jh(e)},get rollup(){return ic(e)},get vite(){return uc(e)},get rolldown(){return sc(e)},get webpack(){return lc(e)},get rspack(){return nc(e)},get farm(){return ec(e)},get unloader(){return oc(e)},get bun(){return Oh(e)},get raw(){return e}}}var Hi={};br(Hi,{Node:()=>ri,Parser:()=>Ae,Position:()=>Dt,SourceLocation:()=>ii,TokContext:()=>Re,Token:()=>Ui,TokenType:()=>fe,defaultOptions:()=>Li,getLineInfo:()=>Ps,isIdentifierChar:()=>ht,isIdentifierStart:()=>Ze,isNewLine:()=>_t,keywordTypes:()=>wt,lineBreak:()=>Me,lineBreakG:()=>cn,nonASCIIwhitespace:()=>Ts,parse:()=>Kc,parseExpressionAt:()=>Xc,tokContexts:()=>_e,tokTypes:()=>x,tokenizer:()=>Jc,version:()=>qn});var fc=[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,78,5,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,199,7,137,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,55,9,266,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,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239],on=[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,7,25,39,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,5,57,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,24,43,261,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,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7381,42,31,98,114,8702,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,208,30,2,2,2,1,2,6,3,4,10,1,225,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,4381,3,5773,3,7472,16,621,2467,541,1507,4938,6,8489],dc="\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-\u1ADD\u1AE0-\u1AEB\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",un="\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-\u088F\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\u0C5C\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDC-\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-\uA7DC\uA7F1-\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",Cs={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"},ws="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",mc={5:ws,"5module":ws+" export import",6:ws+" const class extends export import super"},hn=/^in(stanceof)?$/,xc=new RegExp("["+un+"]"),yc=new RegExp("["+un+dc+"]");function As(e,t){for(var s=65536,a=0;a<t.length;a+=2){if(s+=t[a],s>e)return!1;if(s+=t[a+1],s>=e)return!0}return!1}function Ze(e,t){return e<65?e===36:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&xc.test(String.fromCharCode(e)):t===!1?!1:As(e,on)}function ht(e,t){return e<48?e===36:e<58?!0:e<65?!1:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&yc.test(String.fromCharCode(e)):t===!1?!1:As(e,on)||As(e,fc)}var fe=function(t,s){s===void 0&&(s={}),this.label=t,this.keyword=s.keyword,this.beforeExpr=!!s.beforeExpr,this.startsExpr=!!s.startsExpr,this.isLoop=!!s.isLoop,this.isAssign=!!s.isAssign,this.prefix=!!s.prefix,this.postfix=!!s.postfix,this.binop=s.binop||null,this.updateContext=null};function Ke(e,t){return new fe(e,{beforeExpr:!0,binop:t})}var Xe={beforeExpr:!0},Fe={startsExpr:!0},wt={};function ve(e,t){return t===void 0&&(t={}),t.keyword=e,wt[e]=new fe(e,t)}var x={num:new fe("num",Fe),regexp:new fe("regexp",Fe),string:new fe("string",Fe),name:new fe("name",Fe),privateId:new fe("privateId",Fe),eof:new fe("eof"),bracketL:new fe("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new fe("]"),braceL:new fe("{",{beforeExpr:!0,startsExpr:!0}),braceR:new fe("}"),parenL:new fe("(",{beforeExpr:!0,startsExpr:!0}),parenR:new fe(")"),comma:new fe(",",Xe),semi:new fe(";",Xe),colon:new fe(":",Xe),dot:new fe("."),question:new fe("?",Xe),questionDot:new fe("?."),arrow:new fe("=>",Xe),template:new fe("template"),invalidTemplate:new fe("invalidTemplate"),ellipsis:new fe("...",Xe),backQuote:new fe("`",Fe),dollarBraceL:new fe("${",{beforeExpr:!0,startsExpr:!0}),eq:new fe("=",{beforeExpr:!0,isAssign:!0}),assign:new fe("_=",{beforeExpr:!0,isAssign:!0}),incDec:new fe("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new fe("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:Ke("||",1),logicalAND:Ke("&&",2),bitwiseOR:Ke("|",3),bitwiseXOR:Ke("^",4),bitwiseAND:Ke("&",5),equality:Ke("==/!=/===/!==",6),relational:Ke("</>/<=/>=",7),bitShift:Ke("<</>>/>>>",8),plusMin:new fe("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:Ke("%",10),star:Ke("*",10),slash:Ke("/",10),starstar:new fe("**",{beforeExpr:!0}),coalesce:Ke("??",1),_break:ve("break"),_case:ve("case",Xe),_catch:ve("catch"),_continue:ve("continue"),_debugger:ve("debugger"),_default:ve("default",Xe),_do:ve("do",{isLoop:!0,beforeExpr:!0}),_else:ve("else",Xe),_finally:ve("finally"),_for:ve("for",{isLoop:!0}),_function:ve("function",Fe),_if:ve("if"),_return:ve("return",Xe),_switch:ve("switch"),_throw:ve("throw",Xe),_try:ve("try"),_var:ve("var"),_const:ve("const"),_while:ve("while",{isLoop:!0}),_with:ve("with"),_new:ve("new",{beforeExpr:!0,startsExpr:!0}),_this:ve("this",Fe),_super:ve("super",Fe),_class:ve("class",Fe),_extends:ve("extends",Xe),_export:ve("export"),_import:ve("import",Fe),_null:ve("null",Fe),_true:ve("true",Fe),_false:ve("false",Fe),_in:ve("in",{beforeExpr:!0,binop:7}),_instanceof:ve("instanceof",{beforeExpr:!0,binop:7}),_typeof:ve("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:ve("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:ve("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},Me=/\r\n?|\n|\u2028|\u2029/,cn=new RegExp(Me.source,"g");function _t(e){return e===10||e===13||e===8232||e===8233}function ln(e,t,s){s===void 0&&(s=e.length);for(var a=t;a<s;a++){var o=e.charCodeAt(a);if(_t(o))return a<s-1&&o===13&&e.charCodeAt(a+1)===10?a+2:a+1}return-1}var Ts=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,Oe=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,pn=Object.prototype,gc=pn.hasOwnProperty,vc=pn.toString,Bt=Object.hasOwn||(function(e,t){return gc.call(e,t)}),tn=Array.isArray||(function(e){return vc.call(e)==="[object Array]"}),sn=Object.create(null);function gt(e){return sn[e]||(sn[e]=new RegExp("^(?:"+e.replace(/ /g,"|")+")$"))}function ct(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10)+55296,(e&1023)+56320))}var bc=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,Dt=function(t,s){this.line=t,this.column=s};Dt.prototype.offset=function(t){return new Dt(this.line,this.column+t)};var ii=function(t,s,a){this.start=s,this.end=a,t.sourceFile!==null&&(this.source=t.sourceFile)};function Ps(e,t){for(var s=1,a=0;;){var o=ln(e,a,t);if(o<0)return new Dt(s,t-a);++s,a=o}}var Li={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},rn=!1;function Sc(e){var t={};for(var s in Li)t[s]=e&&Bt(e,s)?e[s]:Li[s];if(t.ecmaVersion==="latest"?t.ecmaVersion=1e8:t.ecmaVersion==null?(!rn&&typeof console=="object"&&console.warn&&(rn=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
17
+ Defaulting to 2020, but this will stop working in the future.`)),t.ecmaVersion=11):t.ecmaVersion>=2015&&(t.ecmaVersion-=2009),t.allowReserved==null&&(t.allowReserved=t.ecmaVersion<5),(!e||e.allowHashBang==null)&&(t.allowHashBang=t.ecmaVersion>=14),tn(t.onToken)){var a=t.onToken;t.onToken=function(o){return a.push(o)}}if(tn(t.onComment)&&(t.onComment=Cc(t,t.onComment)),t.sourceType==="commonjs"&&t.allowAwaitOutsideFunction)throw new Error("Cannot use allowAwaitOutsideFunction with sourceType: commonjs");return t}function Cc(e,t){return function(s,a,o,c,p,g){var b={type:s?"Block":"Line",value:a,start:o,end:c};e.locations&&(b.loc=new ii(this,p,g)),e.ranges&&(b.range=[o,c]),t.push(b)}}var Ct=1,At=2,Is=4,fn=8,Ns=16,dn=32,Di=64,mn=128,Et=256,si=512,xn=1024,Bi=Ct|At|Et;function Ls(e,t){return At|(e?Is:0)|(t?fn:0)}var Ri=0,Rs=1,pt=2,yn=3,gn=4,vn=5,Ae=function(t,s,a){this.options=t=Sc(t),this.sourceFile=t.sourceFile,this.keywords=gt(mc[t.ecmaVersion>=6?6:t.sourceType==="module"?"5module":5]);var o="";t.allowReserved!==!0&&(o=Cs[t.ecmaVersion>=6?6:t.ecmaVersion===5?5:3],t.sourceType==="module"&&(o+=" await")),this.reservedWords=gt(o);var c=(o?o+" ":"")+Cs.strict;this.reservedWordsStrict=gt(c),this.reservedWordsStrictBind=gt(c+" "+Cs.strictBind),this.input=String(s),this.containsEsc=!1,a?(this.pos=a,this.lineStart=this.input.lastIndexOf(`
18
+ `,a-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(Me).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=x.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(this.options.sourceType==="commonjs"?At:Ct),this.regexpState=null,this.privateNameStack=[]},Qe={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowReturn:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},allowUsing:{configurable:!0},inClassStaticBlock:{configurable:!0}};Ae.prototype.parse=function(){var t=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(t)};Qe.inFunction.get=function(){return(this.currentVarScope().flags&At)>0};Qe.inGenerator.get=function(){return(this.currentVarScope().flags&fn)>0};Qe.inAsync.get=function(){return(this.currentVarScope().flags&Is)>0};Qe.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e],s=t.flags;if(s&(Et|si))return!1;if(s&At)return(s&Is)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction};Qe.allowReturn.get=function(){return!!(this.inFunction||this.options.allowReturnOutsideFunction&&this.currentVarScope().flags&Ct)};Qe.allowSuper.get=function(){var e=this.currentThisScope(),t=e.flags;return(t&Di)>0||this.options.allowSuperOutsideMethod};Qe.allowDirectSuper.get=function(){return(this.currentThisScope().flags&mn)>0};Qe.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())};Qe.allowNewDotTarget.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e],s=t.flags;if(s&(Et|si)||s&At&&!(s&Ns))return!0}return!1};Qe.allowUsing.get=function(){var e=this.currentScope(),t=e.flags;return!(t&xn||!this.inModule&&t&Ct)};Qe.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&Et)>0};Ae.extend=function(){for(var t=[],s=arguments.length;s--;)t[s]=arguments[s];for(var a=this,o=0;o<t.length;o++)a=t[o](a);return a};Ae.parse=function(t,s){return new this(s,t).parse()};Ae.parseExpressionAt=function(t,s,a){var o=new this(a,t,s);return o.nextToken(),o.parseExpression()};Ae.tokenizer=function(t,s){return new this(s,t)};Object.defineProperties(Ae.prototype,Qe);var Ve=Ae.prototype,wc=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;Ve.strictDirective=function(e){if(this.options.ecmaVersion<5)return!1;for(;;){Oe.lastIndex=e,e+=Oe.exec(this.input)[0].length;var t=wc.exec(this.input.slice(e));if(!t)return!1;if((t[1]||t[2])==="use strict"){Oe.lastIndex=e+t[0].length;var s=Oe.exec(this.input),a=s.index+s[0].length,o=this.input.charAt(a);return o===";"||o==="}"||Me.test(s[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(o)||o==="!"&&this.input.charAt(a+1)==="=")}e+=t[0].length,Oe.lastIndex=e,e+=Oe.exec(this.input)[0].length,this.input[e]===";"&&e++}};Ve.eat=function(e){return this.type===e?(this.next(),!0):!1};Ve.isContextual=function(e){return this.type===x.name&&this.value===e&&!this.containsEsc};Ve.eatContextual=function(e){return this.isContextual(e)?(this.next(),!0):!1};Ve.expectContextual=function(e){this.eatContextual(e)||this.unexpected()};Ve.canInsertSemicolon=function(){return this.type===x.eof||this.type===x.braceR||Me.test(this.input.slice(this.lastTokEnd,this.start))};Ve.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0};Ve.semicolon=function(){!this.eat(x.semi)&&!this.insertSemicolon()&&this.unexpected()};Ve.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0};Ve.expect=function(e){this.eat(e)||this.unexpected()};Ve.unexpected=function(e){this.raise(e??this.start,"Unexpected token")};var Fi=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};Ve.checkPatternErrors=function(e,t){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element");var s=t?e.parenthesizedAssign:e.parenthesizedBind;s>-1&&this.raiseRecoverable(s,t?"Assigning to rvalue":"Parenthesized pattern")}};Ve.checkExpressionErrors=function(e,t){if(!e)return!1;var s=e.shorthandAssign,a=e.doubleProto;if(!t)return s>=0||a>=0;s>=0&&this.raise(s,"Shorthand property assignments are valid only in destructuring patterns"),a>=0&&this.raiseRecoverable(a,"Redefinition of __proto__ property")};Ve.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")};Ve.isSimpleAssignTarget=function(e){return e.type==="ParenthesizedExpression"?this.isSimpleAssignTarget(e.expression):e.type==="Identifier"||e.type==="MemberExpression"};var se=Ae.prototype;se.parseTopLevel=function(e){var t=Object.create(null);for(e.body||(e.body=[]);this.type!==x.eof;){var s=this.parseStatement(null,!0,t);e.body.push(s)}if(this.inModule)for(var a=0,o=Object.keys(this.undefinedExports);a<o.length;a+=1){var c=o[a];this.raiseRecoverable(this.undefinedExports[c].start,"Export '"+c+"' is not defined")}return this.adaptDirectivePrologue(e.body),this.next(),e.sourceType=this.options.sourceType==="commonjs"?"script":this.options.sourceType,this.finishNode(e,"Program")};var Os={kind:"loop"},_c={kind:"switch"};se.isLet=function(e){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;Oe.lastIndex=this.pos;var t=Oe.exec(this.input),s=this.pos+t[0].length,a=this.fullCharCodeAt(s);if(a===91||a===92)return!0;if(e)return!1;if(a===123)return!0;if(Ze(a)){var o=s;do s+=a<=65535?1:2;while(ht(a=this.fullCharCodeAt(s)));if(a===92)return!0;var c=this.input.slice(o,s);if(!hn.test(c))return!0}return!1};se.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;Oe.lastIndex=this.pos;var e=Oe.exec(this.input),t=this.pos+e[0].length,s;return!Me.test(this.input.slice(this.pos,t))&&this.input.slice(t,t+8)==="function"&&(t+8===this.input.length||!(ht(s=this.fullCharCodeAt(t+8))||s===92))};se.isUsingKeyword=function(e,t){if(this.options.ecmaVersion<17||!this.isContextual(e?"await":"using"))return!1;Oe.lastIndex=this.pos;var s=Oe.exec(this.input),a=this.pos+s[0].length;if(Me.test(this.input.slice(this.pos,a)))return!1;if(e){var o=a+5,c;if(this.input.slice(a,o)!=="using"||o===this.input.length||ht(c=this.fullCharCodeAt(o))||c===92)return!1;Oe.lastIndex=o;var p=Oe.exec(this.input);if(a=o+p[0].length,p&&Me.test(this.input.slice(o,a)))return!1}var g=this.fullCharCodeAt(a);if(!Ze(g)&&g!==92)return!1;var b=a;do a+=g<=65535?1:2;while(ht(g=this.fullCharCodeAt(a)));if(g===92)return!0;var l=this.input.slice(b,a);return!(hn.test(l)||t&&l==="of")};se.isAwaitUsing=function(e){return this.isUsingKeyword(!0,e)};se.isUsing=function(e){return this.isUsingKeyword(!1,e)};se.parseStatement=function(e,t,s){var a=this.type,o=this.startNode(),c;switch(this.isLet(e)&&(a=x._var,c="let"),a){case x._break:case x._continue:return this.parseBreakContinueStatement(o,a.keyword);case x._debugger:return this.parseDebuggerStatement(o);case x._do:return this.parseDoStatement(o);case x._for:return this.parseForStatement(o);case x._function:return e&&(this.strict||e!=="if"&&e!=="label")&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(o,!1,!e);case x._class:return e&&this.unexpected(),this.parseClass(o,!0);case x._if:return this.parseIfStatement(o);case x._return:return this.parseReturnStatement(o);case x._switch:return this.parseSwitchStatement(o);case x._throw:return this.parseThrowStatement(o);case x._try:return this.parseTryStatement(o);case x._const:case x._var:return c=c||this.value,e&&c!=="var"&&this.unexpected(),this.parseVarStatement(o,c);case x._while:return this.parseWhileStatement(o);case x._with:return this.parseWithStatement(o);case x.braceL:return this.parseBlock(!0,o);case x.semi:return this.parseEmptyStatement(o);case x._export:case x._import:if(this.options.ecmaVersion>10&&a===x._import){Oe.lastIndex=this.pos;var p=Oe.exec(this.input),g=this.pos+p[0].length,b=this.input.charCodeAt(g);if(b===40||b===46)return this.parseExpressionStatement(o,this.parseExpression())}return this.options.allowImportExportEverywhere||(t||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'")),a===x._import?this.parseImport(o):this.parseExport(o,s);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(o,!0,!e);var l=this.isAwaitUsing(!1)?"await using":this.isUsing(!1)?"using":null;if(l)return this.allowUsing||this.raise(this.start,"Using declaration cannot appear in the top level when source type is `script` or in the bare case statement"),l==="await using"&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.next(),this.parseVar(o,!1,l),this.semicolon(),this.finishNode(o,"VariableDeclaration");var _=this.value,E=this.parseExpression();return a===x.name&&E.type==="Identifier"&&this.eat(x.colon)?this.parseLabeledStatement(o,_,E,e):this.parseExpressionStatement(o,E)}};se.parseBreakContinueStatement=function(e,t){var s=t==="break";this.next(),this.eat(x.semi)||this.insertSemicolon()?e.label=null:this.type!==x.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var a=0;a<this.labels.length;++a){var o=this.labels[a];if((e.label==null||o.name===e.label.name)&&(o.kind!=null&&(s||o.kind==="loop")||e.label&&s))break}return a===this.labels.length&&this.raise(e.start,"Unsyntactic "+t),this.finishNode(e,s?"BreakStatement":"ContinueStatement")};se.parseDebuggerStatement=function(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")};se.parseDoStatement=function(e){return this.next(),this.labels.push(Os),e.body=this.parseStatement("do"),this.labels.pop(),this.expect(x._while),e.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(x.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")};se.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(Os),this.enterScope(0),this.expect(x.parenL),this.type===x.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var s=this.isLet();if(this.type===x._var||this.type===x._const||s){var a=this.startNode(),o=s?"let":this.value;return this.next(),this.parseVar(a,!0,o),this.finishNode(a,"VariableDeclaration"),this.parseForAfterInit(e,a,t)}var c=this.isContextual("let"),p=!1,g=this.isUsing(!0)?"using":this.isAwaitUsing(!0)?"await using":null;if(g){var b=this.startNode();return this.next(),g==="await using"&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.parseVar(b,!0,g),this.finishNode(b,"VariableDeclaration"),this.parseForAfterInit(e,b,t)}var l=this.containsEsc,_=new Fi,E=this.start,D=t>-1?this.parseExprSubscripts(_,"await"):this.parseExpression(!0,_);return this.type===x._in||(p=this.options.ecmaVersion>=6&&this.isContextual("of"))?(t>-1?(this.type===x._in&&this.unexpected(t),e.await=!0):p&&this.options.ecmaVersion>=8&&(D.start===E&&!l&&D.type==="Identifier"&&D.name==="async"?this.unexpected():this.options.ecmaVersion>=9&&(e.await=!1)),c&&p&&this.raise(D.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(D,!1,_),this.checkLValPattern(D),this.parseForIn(e,D)):(this.checkExpressionErrors(_,!0),t>-1&&this.unexpected(t),this.parseFor(e,D))};se.parseForAfterInit=function(e,t,s){return(this.type===x._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&t.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===x._in?s>-1&&this.unexpected(s):e.await=s>-1),this.parseForIn(e,t)):(s>-1&&this.unexpected(s),this.parseFor(e,t))};se.parseFunctionStatement=function(e,t,s){return this.next(),this.parseFunction(e,ti|(s?0:Es),!1,t)};se.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(x._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")};se.parseReturnStatement=function(e){return this.allowReturn||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(x.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")};se.parseSwitchStatement=function(e){this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(x.braceL),this.labels.push(_c),this.enterScope(xn);for(var t,s=!1;this.type!==x.braceR;)if(this.type===x._case||this.type===x._default){var a=this.type===x._case;t&&this.finishNode(t,"SwitchCase"),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),a?t.test=this.parseExpression():(s&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),s=!0,t.test=null),this.expect(x.colon)}else t||this.unexpected(),t.consequent.push(this.parseStatement(null));return this.exitScope(),t&&this.finishNode(t,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(e,"SwitchStatement")};se.parseThrowStatement=function(e){return this.next(),Me.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")};var Ac=[];se.parseCatchClauseParam=function(){var e=this.parseBindingAtom(),t=e.type==="Identifier";return this.enterScope(t?dn:0),this.checkLValPattern(e,t?gn:pt),this.expect(x.parenR),e};se.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===x._catch){var t=this.startNode();this.next(),this.eat(x.parenL)?t.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),t.param=null,this.enterScope(0)),t.body=this.parseBlock(!1),this.exitScope(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(x._finally)?this.parseBlock():null,!e.handler&&!e.finalizer&&this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")};se.parseVarStatement=function(e,t,s){return this.next(),this.parseVar(e,!1,t,s),this.semicolon(),this.finishNode(e,"VariableDeclaration")};se.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(Os),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")};se.parseWithStatement=function(e){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement("with"),this.finishNode(e,"WithStatement")};se.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")};se.parseLabeledStatement=function(e,t,s,a){for(var o=0,c=this.labels;o<c.length;o+=1){var p=c[o];p.name===t&&this.raise(s.start,"Label '"+t+"' is already declared")}for(var g=this.type.isLoop?"loop":this.type===x._switch?"switch":null,b=this.labels.length-1;b>=0;b--){var l=this.labels[b];if(l.statementStart===e.start)l.statementStart=this.start,l.kind=g;else break}return this.labels.push({name:t,kind:g,statementStart:this.start}),e.body=this.parseStatement(a?a.indexOf("label")===-1?a+"label":a:"label"),this.labels.pop(),e.label=s,this.finishNode(e,"LabeledStatement")};se.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")};se.parseBlock=function(e,t,s){for(e===void 0&&(e=!0),t===void 0&&(t=this.startNode()),t.body=[],this.expect(x.braceL),e&&this.enterScope(0);this.type!==x.braceR;){var a=this.parseStatement(null);t.body.push(a)}return s&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,"BlockStatement")};se.parseFor=function(e,t){return e.init=t,this.expect(x.semi),e.test=this.type===x.semi?null:this.parseExpression(),this.expect(x.semi),e.update=this.type===x.parenR?null:this.parseExpression(),this.expect(x.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,"ForStatement")};se.parseForIn=function(e,t){var s=this.type===x._in;return this.next(),t.type==="VariableDeclaration"&&t.declarations[0].init!=null&&(!s||this.options.ecmaVersion<8||this.strict||t.kind!=="var"||t.declarations[0].id.type!=="Identifier")&&this.raise(t.start,(s?"for-in":"for-of")+" loop variable declaration may not have an initializer"),e.left=t,e.right=s?this.parseExpression():this.parseMaybeAssign(),this.expect(x.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,s?"ForInStatement":"ForOfStatement")};se.parseVar=function(e,t,s,a){for(e.declarations=[],e.kind=s;;){var o=this.startNode();if(this.parseVarId(o,s),this.eat(x.eq)?o.init=this.parseMaybeAssign(t):!a&&s==="const"&&!(this.type===x._in||this.options.ecmaVersion>=6&&this.isContextual("of"))?this.unexpected():!a&&(s==="using"||s==="await using")&&this.options.ecmaVersion>=17&&this.type!==x._in&&!this.isContextual("of")?this.raise(this.lastTokEnd,"Missing initializer in "+s+" declaration"):!a&&o.id.type!=="Identifier"&&!(t&&(this.type===x._in||this.isContextual("of")))?this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):o.init=null,e.declarations.push(this.finishNode(o,"VariableDeclarator")),!this.eat(x.comma))break}return e};se.parseVarId=function(e,t){e.id=t==="using"||t==="await using"?this.parseIdent():this.parseBindingAtom(),this.checkLValPattern(e.id,t==="var"?Rs:pt,!1)};var ti=1,Es=2,bn=4;se.parseFunction=function(e,t,s,a,o){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!a)&&(this.type===x.star&&t&Es&&this.unexpected(),e.generator=this.eat(x.star)),this.options.ecmaVersion>=8&&(e.async=!!a),t&ti&&(e.id=t&bn&&this.type!==x.name?null:this.parseIdent(),e.id&&!(t&Es)&&this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?Rs:pt:yn));var c=this.yieldPos,p=this.awaitPos,g=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Ls(e.async,e.generator)),t&ti||(e.id=this.type===x.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,s,!1,o),this.yieldPos=c,this.awaitPos=p,this.awaitIdentPos=g,this.finishNode(e,t&ti?"FunctionDeclaration":"FunctionExpression")};se.parseFunctionParams=function(e){this.expect(x.parenL),e.params=this.parseBindingList(x.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()};se.parseClass=function(e,t){this.next();var s=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var a=this.enterClassBody(),o=this.startNode(),c=!1;for(o.body=[],this.expect(x.braceL);this.type!==x.braceR;){var p=this.parseClassElement(e.superClass!==null);p&&(o.body.push(p),p.type==="MethodDefinition"&&p.kind==="constructor"?(c&&this.raiseRecoverable(p.start,"Duplicate constructor in the same class"),c=!0):p.key&&p.key.type==="PrivateIdentifier"&&Ec(a,p)&&this.raiseRecoverable(p.key.start,"Identifier '#"+p.key.name+"' has already been declared"))}return this.strict=s,this.next(),e.body=this.finishNode(o,"ClassBody"),this.exitClassBody(),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")};se.parseClassElement=function(e){if(this.eat(x.semi))return null;var t=this.options.ecmaVersion,s=this.startNode(),a="",o=!1,c=!1,p="method",g=!1;if(this.eatContextual("static")){if(t>=13&&this.eat(x.braceL))return this.parseClassStaticBlock(s),s;this.isClassElementNameStart()||this.type===x.star?g=!0:a="static"}if(s.static=g,!a&&t>=8&&this.eatContextual("async")&&((this.isClassElementNameStart()||this.type===x.star)&&!this.canInsertSemicolon()?c=!0:a="async"),!a&&(t>=9||!c)&&this.eat(x.star)&&(o=!0),!a&&!c&&!o){var b=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?p=b:a=b)}if(a?(s.computed=!1,s.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),s.key.name=a,this.finishNode(s.key,"Identifier")):this.parseClassElementName(s),t<13||this.type===x.parenL||p!=="method"||o||c){var l=!s.static&&Oi(s,"constructor"),_=l&&e;l&&p!=="method"&&this.raise(s.key.start,"Constructor can't have get/set modifier"),s.kind=l?"constructor":p,this.parseClassMethod(s,o,c,_)}else this.parseClassField(s);return s};se.isClassElementNameStart=function(){return this.type===x.name||this.type===x.privateId||this.type===x.num||this.type===x.string||this.type===x.bracketL||this.type.keyword};se.parseClassElementName=function(e){this.type===x.privateId?(this.value==="constructor"&&this.raise(this.start,"Classes can't have an element named '#constructor'"),e.computed=!1,e.key=this.parsePrivateIdent()):this.parsePropertyName(e)};se.parseClassMethod=function(e,t,s,a){var o=e.key;e.kind==="constructor"?(t&&this.raise(o.start,"Constructor can't be a generator"),s&&this.raise(o.start,"Constructor can't be an async method")):e.static&&Oi(e,"prototype")&&this.raise(o.start,"Classes may not have a static property named prototype");var c=e.value=this.parseMethod(t,s,a);return e.kind==="get"&&c.params.length!==0&&this.raiseRecoverable(c.start,"getter should have no params"),e.kind==="set"&&c.params.length!==1&&this.raiseRecoverable(c.start,"setter should have exactly one param"),e.kind==="set"&&c.params[0].type==="RestElement"&&this.raiseRecoverable(c.params[0].start,"Setter cannot use rest params"),this.finishNode(e,"MethodDefinition")};se.parseClassField=function(e){return Oi(e,"constructor")?this.raise(e.key.start,"Classes can't have a field named 'constructor'"):e.static&&Oi(e,"prototype")&&this.raise(e.key.start,"Classes can't have a static field named 'prototype'"),this.eat(x.eq)?(this.enterScope(si|Di),e.value=this.parseMaybeAssign(),this.exitScope()):e.value=null,this.semicolon(),this.finishNode(e,"PropertyDefinition")};se.parseClassStaticBlock=function(e){e.body=[];var t=this.labels;for(this.labels=[],this.enterScope(Et|Di);this.type!==x.braceR;){var s=this.parseStatement(null);e.body.push(s)}return this.next(),this.exitScope(),this.labels=t,this.finishNode(e,"StaticBlock")};se.parseClassId=function(e,t){this.type===x.name?(e.id=this.parseIdent(),t&&this.checkLValSimple(e.id,pt,!1)):(t===!0&&this.unexpected(),e.id=null)};se.parseClassSuper=function(e){e.superClass=this.eat(x._extends)?this.parseExprSubscripts(null,!1):null};se.enterClassBody=function(){var e={declared:Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared};se.exitClassBody=function(){var e=this.privateNameStack.pop(),t=e.declared,s=e.used;if(this.options.checkPrivateFields)for(var a=this.privateNameStack.length,o=a===0?null:this.privateNameStack[a-1],c=0;c<s.length;++c){var p=s[c];Bt(t,p.name)||(o?o.used.push(p):this.raiseRecoverable(p.start,"Private field '#"+p.name+"' must be declared in an enclosing class"))}};function Ec(e,t){var s=t.key.name,a=e[s],o="true";return t.type==="MethodDefinition"&&(t.kind==="get"||t.kind==="set")&&(o=(t.static?"s":"i")+t.kind),a==="iget"&&o==="iset"||a==="iset"&&o==="iget"||a==="sget"&&o==="sset"||a==="sset"&&o==="sget"?(e[s]="true",!1):a?!0:(e[s]=o,!1)}function Oi(e,t){var s=e.computed,a=e.key;return!s&&(a.type==="Identifier"&&a.name===t||a.type==="Literal"&&a.value===t)}se.parseExportAllDeclaration=function(e,t){return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(e.exported=this.parseModuleExportName(),this.checkExport(t,e.exported,this.lastTokStart)):e.exported=null),this.expectContextual("from"),this.type!==x.string&&this.unexpected(),e.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(e,"ExportAllDeclaration")};se.parseExport=function(e,t){if(this.next(),this.eat(x.star))return this.parseExportAllDeclaration(e,t);if(this.eat(x._default))return this.checkExport(t,"default",this.lastTokStart),e.declaration=this.parseExportDefaultDeclaration(),this.finishNode(e,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())e.declaration=this.parseExportDeclaration(e),e.declaration.type==="VariableDeclaration"?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id,e.declaration.id.start),e.specifiers=[],e.source=null,this.options.ecmaVersion>=16&&(e.attributes=[]);else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual("from"))this.type!==x.string&&this.unexpected(),e.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause());else{for(var s=0,a=e.specifiers;s<a.length;s+=1){var o=a[s];this.checkUnreserved(o.local),this.checkLocalExport(o.local),o.local.type==="Literal"&&this.raise(o.local.start,"A string literal cannot be used as an exported binding without `from`.")}e.source=null,this.options.ecmaVersion>=16&&(e.attributes=[])}this.semicolon()}return this.finishNode(e,"ExportNamedDeclaration")};se.parseExportDeclaration=function(e){return this.parseStatement(null)};se.parseExportDefaultDeclaration=function(){var e;if(this.type===x._function||(e=this.isAsyncFunction())){var t=this.startNode();return this.next(),e&&this.next(),this.parseFunction(t,ti|bn,!1,e)}else if(this.type===x._class){var s=this.startNode();return this.parseClass(s,"nullableID")}else{var a=this.parseMaybeAssign();return this.semicolon(),a}};se.checkExport=function(e,t,s){e&&(typeof t!="string"&&(t=t.type==="Identifier"?t.name:t.value),Bt(e,t)&&this.raiseRecoverable(s,"Duplicate export '"+t+"'"),e[t]=!0)};se.checkPatternExport=function(e,t){var s=t.type;if(s==="Identifier")this.checkExport(e,t,t.start);else if(s==="ObjectPattern")for(var a=0,o=t.properties;a<o.length;a+=1){var c=o[a];this.checkPatternExport(e,c)}else if(s==="ArrayPattern")for(var p=0,g=t.elements;p<g.length;p+=1){var b=g[p];b&&this.checkPatternExport(e,b)}else s==="Property"?this.checkPatternExport(e,t.value):s==="AssignmentPattern"?this.checkPatternExport(e,t.left):s==="RestElement"&&this.checkPatternExport(e,t.argument)};se.checkVariableExport=function(e,t){if(e)for(var s=0,a=t;s<a.length;s+=1){var o=a[s];this.checkPatternExport(e,o.id)}};se.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()};se.parseExportSpecifier=function(e){var t=this.startNode();return t.local=this.parseModuleExportName(),t.exported=this.eatContextual("as")?this.parseModuleExportName():t.local,this.checkExport(e,t.exported,t.exported.start),this.finishNode(t,"ExportSpecifier")};se.parseExportSpecifiers=function(e){var t=[],s=!0;for(this.expect(x.braceL);!this.eat(x.braceR);){if(s)s=!1;else if(this.expect(x.comma),this.afterTrailingComma(x.braceR))break;t.push(this.parseExportSpecifier(e))}return t};se.parseImport=function(e){return this.next(),this.type===x.string?(e.specifiers=Ac,e.source=this.parseExprAtom()):(e.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),e.source=this.type===x.string?this.parseExprAtom():this.unexpected()),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(e,"ImportDeclaration")};se.parseImportSpecifier=function(){var e=this.startNode();return e.imported=this.parseModuleExportName(),this.eatContextual("as")?e.local=this.parseIdent():(this.checkUnreserved(e.imported),e.local=e.imported),this.checkLValSimple(e.local,pt),this.finishNode(e,"ImportSpecifier")};se.parseImportDefaultSpecifier=function(){var e=this.startNode();return e.local=this.parseIdent(),this.checkLValSimple(e.local,pt),this.finishNode(e,"ImportDefaultSpecifier")};se.parseImportNamespaceSpecifier=function(){var e=this.startNode();return this.next(),this.expectContextual("as"),e.local=this.parseIdent(),this.checkLValSimple(e.local,pt),this.finishNode(e,"ImportNamespaceSpecifier")};se.parseImportSpecifiers=function(){var e=[],t=!0;if(this.type===x.name&&(e.push(this.parseImportDefaultSpecifier()),!this.eat(x.comma)))return e;if(this.type===x.star)return e.push(this.parseImportNamespaceSpecifier()),e;for(this.expect(x.braceL);!this.eat(x.braceR);){if(t)t=!1;else if(this.expect(x.comma),this.afterTrailingComma(x.braceR))break;e.push(this.parseImportSpecifier())}return e};se.parseWithClause=function(){var e=[];if(!this.eat(x._with))return e;this.expect(x.braceL);for(var t={},s=!0;!this.eat(x.braceR);){if(s)s=!1;else if(this.expect(x.comma),this.afterTrailingComma(x.braceR))break;var a=this.parseImportAttribute(),o=a.key.type==="Identifier"?a.key.name:a.key.value;Bt(t,o)&&this.raiseRecoverable(a.key.start,"Duplicate attribute key '"+o+"'"),t[o]=!0,e.push(a)}return e};se.parseImportAttribute=function(){var e=this.startNode();return e.key=this.type===x.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never"),this.expect(x.colon),this.type!==x.string&&this.unexpected(),e.value=this.parseExprAtom(),this.finishNode(e,"ImportAttribute")};se.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===x.string){var e=this.parseLiteral(this.value);return bc.test(e.value)&&this.raise(e.start,"An export name cannot include a lone surrogate."),e}return this.parseIdent(!0)};se.adaptDirectivePrologue=function(e){for(var t=0;t<e.length&&this.isDirectiveCandidate(e[t]);++t)e[t].directive=e[t].expression.raw.slice(1,-1)};se.isDirectiveCandidate=function(e){return this.options.ecmaVersion>=5&&e.type==="ExpressionStatement"&&e.expression.type==="Literal"&&typeof e.expression.value=="string"&&(this.input[e.start]==='"'||this.input[e.start]==="'")};var Ye=Ae.prototype;Ye.toAssignable=function(e,t,s){if(this.options.ecmaVersion>=6&&e)switch(e.type){case"Identifier":this.inAsync&&e.name==="await"&&this.raise(e.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern",s&&this.checkPatternErrors(s,!0);for(var a=0,o=e.properties;a<o.length;a+=1){var c=o[a];this.toAssignable(c,t),c.type==="RestElement"&&(c.argument.type==="ArrayPattern"||c.argument.type==="ObjectPattern")&&this.raise(c.argument.start,"Unexpected token")}break;case"Property":e.kind!=="init"&&this.raise(e.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(e.value,t);break;case"ArrayExpression":e.type="ArrayPattern",s&&this.checkPatternErrors(s,!0),this.toAssignableList(e.elements,t);break;case"SpreadElement":e.type="RestElement",this.toAssignable(e.argument,t),e.argument.type==="AssignmentPattern"&&this.raise(e.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":e.operator!=="="&&this.raise(e.left.end,"Only '=' operator can be used for specifying default value."),e.type="AssignmentPattern",delete e.operator,this.toAssignable(e.left,t);break;case"ParenthesizedExpression":this.toAssignable(e.expression,t,s);break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!t)break;default:this.raise(e.start,"Assigning to rvalue")}else s&&this.checkPatternErrors(s,!0);return e};Ye.toAssignableList=function(e,t){for(var s=e.length,a=0;a<s;a++){var o=e[a];o&&this.toAssignable(o,t)}if(s){var c=e[s-1];this.options.ecmaVersion===6&&t&&c&&c.type==="RestElement"&&c.argument.type!=="Identifier"&&this.unexpected(c.argument.start)}return e};Ye.parseSpread=function(e){var t=this.startNode();return this.next(),t.argument=this.parseMaybeAssign(!1,e),this.finishNode(t,"SpreadElement")};Ye.parseRestBinding=function(){var e=this.startNode();return this.next(),this.options.ecmaVersion===6&&this.type!==x.name&&this.unexpected(),e.argument=this.parseBindingAtom(),this.finishNode(e,"RestElement")};Ye.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case x.bracketL:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(x.bracketR,!0,!0),this.finishNode(e,"ArrayPattern");case x.braceL:return this.parseObj(!0)}return this.parseIdent()};Ye.parseBindingList=function(e,t,s,a){for(var o=[],c=!0;!this.eat(e);)if(c?c=!1:this.expect(x.comma),t&&this.type===x.comma)o.push(null);else{if(s&&this.afterTrailingComma(e))break;if(this.type===x.ellipsis){var p=this.parseRestBinding();this.parseBindingListItem(p),o.push(p),this.type===x.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.expect(e);break}else o.push(this.parseAssignableListItem(a))}return o};Ye.parseAssignableListItem=function(e){var t=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(t),t};Ye.parseBindingListItem=function(e){return e};Ye.parseMaybeDefault=function(e,t,s){if(s=s||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(x.eq))return s;var a=this.startNodeAt(e,t);return a.left=s,a.right=this.parseMaybeAssign(),this.finishNode(a,"AssignmentPattern")};Ye.checkLValSimple=function(e,t,s){t===void 0&&(t=Ri);var a=t!==Ri;switch(e.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(e.name)&&this.raiseRecoverable(e.start,(a?"Binding ":"Assigning to ")+e.name+" in strict mode"),a&&(t===pt&&e.name==="let"&&this.raiseRecoverable(e.start,"let is disallowed as a lexically bound name"),s&&(Bt(s,e.name)&&this.raiseRecoverable(e.start,"Argument name clash"),s[e.name]=!0),t!==vn&&this.declareName(e.name,t,e.start));break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":a&&this.raiseRecoverable(e.start,"Binding member expression");break;case"ParenthesizedExpression":return a&&this.raiseRecoverable(e.start,"Binding parenthesized expression"),this.checkLValSimple(e.expression,t,s);default:this.raise(e.start,(a?"Binding":"Assigning to")+" rvalue")}};Ye.checkLValPattern=function(e,t,s){switch(t===void 0&&(t=Ri),e.type){case"ObjectPattern":for(var a=0,o=e.properties;a<o.length;a+=1){var c=o[a];this.checkLValInnerPattern(c,t,s)}break;case"ArrayPattern":for(var p=0,g=e.elements;p<g.length;p+=1){var b=g[p];b&&this.checkLValInnerPattern(b,t,s)}break;default:this.checkLValSimple(e,t,s)}};Ye.checkLValInnerPattern=function(e,t,s){switch(t===void 0&&(t=Ri),e.type){case"Property":this.checkLValInnerPattern(e.value,t,s);break;case"AssignmentPattern":this.checkLValPattern(e.left,t,s);break;case"RestElement":this.checkLValPattern(e.argument,t,s);break;default:this.checkLValPattern(e,t,s)}};var Re=function(t,s,a,o,c){this.token=t,this.isExpr=!!s,this.preserveSpace=!!a,this.override=o,this.generator=!!c},_e={b_stat:new Re("{",!1),b_expr:new Re("{",!0),b_tmpl:new Re("${",!1),p_stat:new Re("(",!1),p_expr:new Re("(",!0),q_tmpl:new Re("`",!0,!0,function(e){return e.tryReadTemplateToken()}),f_stat:new Re("function",!1),f_expr:new Re("function",!0),f_expr_gen:new Re("function",!0,!1,null,!0),f_gen:new Re("function",!1,!1,null,!0)},Ft=Ae.prototype;Ft.initialContext=function(){return[_e.b_stat]};Ft.curContext=function(){return this.context[this.context.length-1]};Ft.braceIsBlock=function(e){var t=this.curContext();return t===_e.f_expr||t===_e.f_stat?!0:e===x.colon&&(t===_e.b_stat||t===_e.b_expr)?!t.isExpr:e===x._return||e===x.name&&this.exprAllowed?Me.test(this.input.slice(this.lastTokEnd,this.start)):e===x._else||e===x.semi||e===x.eof||e===x.parenR||e===x.arrow?!0:e===x.braceL?t===_e.b_stat:e===x._var||e===x._const||e===x.name?!1:!this.exprAllowed};Ft.inGeneratorContext=function(){for(var e=this.context.length-1;e>=1;e--){var t=this.context[e];if(t.token==="function")return t.generator}return!1};Ft.updateContext=function(e){var t,s=this.type;s.keyword&&e===x.dot?this.exprAllowed=!1:(t=s.updateContext)?t.call(this,e):this.exprAllowed=s.beforeExpr};Ft.overrideContext=function(e){this.curContext()!==e&&(this.context[this.context.length-1]=e)};x.parenR.updateContext=x.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=!0;return}var e=this.context.pop();e===_e.b_stat&&this.curContext().token==="function"&&(e=this.context.pop()),this.exprAllowed=!e.isExpr};x.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?_e.b_stat:_e.b_expr),this.exprAllowed=!0};x.dollarBraceL.updateContext=function(){this.context.push(_e.b_tmpl),this.exprAllowed=!0};x.parenL.updateContext=function(e){var t=e===x._if||e===x._for||e===x._with||e===x._while;this.context.push(t?_e.p_stat:_e.p_expr),this.exprAllowed=!0};x.incDec.updateContext=function(){};x._function.updateContext=x._class.updateContext=function(e){e.beforeExpr&&e!==x._else&&!(e===x.semi&&this.curContext()!==_e.p_stat)&&!(e===x._return&&Me.test(this.input.slice(this.lastTokEnd,this.start)))&&!((e===x.colon||e===x.braceL)&&this.curContext()===_e.b_stat)?this.context.push(_e.f_expr):this.context.push(_e.f_stat),this.exprAllowed=!1};x.colon.updateContext=function(){this.curContext().token==="function"&&this.context.pop(),this.exprAllowed=!0};x.backQuote.updateContext=function(){this.curContext()===_e.q_tmpl?this.context.pop():this.context.push(_e.q_tmpl),this.exprAllowed=!1};x.star.updateContext=function(e){if(e===x._function){var t=this.context.length-1;this.context[t]===_e.f_expr?this.context[t]=_e.f_expr_gen:this.context[t]=_e.f_gen}this.exprAllowed=!0};x.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&e!==x.dot&&(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t};var pe=Ae.prototype;pe.checkPropClash=function(e,t,s){if(!(this.options.ecmaVersion>=9&&e.type==="SpreadElement")&&!(this.options.ecmaVersion>=6&&(e.computed||e.method||e.shorthand))){var a=e.key,o;switch(a.type){case"Identifier":o=a.name;break;case"Literal":o=String(a.value);break;default:return}var c=e.kind;if(this.options.ecmaVersion>=6){o==="__proto__"&&c==="init"&&(t.proto&&(s?s.doubleProto<0&&(s.doubleProto=a.start):this.raiseRecoverable(a.start,"Redefinition of __proto__ property")),t.proto=!0);return}o="$"+o;var p=t[o];if(p){var g;c==="init"?g=this.strict&&p.init||p.get||p.set:g=p.init||p[c],g&&this.raiseRecoverable(a.start,"Redefinition of property")}else p=t[o]={init:!1,get:!1,set:!1};p[c]=!0}};pe.parseExpression=function(e,t){var s=this.start,a=this.startLoc,o=this.parseMaybeAssign(e,t);if(this.type===x.comma){var c=this.startNodeAt(s,a);for(c.expressions=[o];this.eat(x.comma);)c.expressions.push(this.parseMaybeAssign(e,t));return this.finishNode(c,"SequenceExpression")}return o};pe.parseMaybeAssign=function(e,t,s){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(e);this.exprAllowed=!1}var a=!1,o=-1,c=-1,p=-1;t?(o=t.parenthesizedAssign,c=t.trailingComma,p=t.doubleProto,t.parenthesizedAssign=t.trailingComma=-1):(t=new Fi,a=!0);var g=this.start,b=this.startLoc;(this.type===x.parenL||this.type===x.name)&&(this.potentialArrowAt=this.start,this.potentialArrowInForAwait=e==="await");var l=this.parseMaybeConditional(e,t);if(s&&(l=s.call(this,l,g,b)),this.type.isAssign){var _=this.startNodeAt(g,b);return _.operator=this.value,this.type===x.eq&&(l=this.toAssignable(l,!1,t)),a||(t.parenthesizedAssign=t.trailingComma=t.doubleProto=-1),t.shorthandAssign>=l.start&&(t.shorthandAssign=-1),this.type===x.eq?this.checkLValPattern(l):this.checkLValSimple(l),_.left=l,this.next(),_.right=this.parseMaybeAssign(e),p>-1&&(t.doubleProto=p),this.finishNode(_,"AssignmentExpression")}else a&&this.checkExpressionErrors(t,!0);return o>-1&&(t.parenthesizedAssign=o),c>-1&&(t.trailingComma=c),l};pe.parseMaybeConditional=function(e,t){var s=this.start,a=this.startLoc,o=this.parseExprOps(e,t);if(this.checkExpressionErrors(t))return o;if(this.eat(x.question)){var c=this.startNodeAt(s,a);return c.test=o,c.consequent=this.parseMaybeAssign(),this.expect(x.colon),c.alternate=this.parseMaybeAssign(e),this.finishNode(c,"ConditionalExpression")}return o};pe.parseExprOps=function(e,t){var s=this.start,a=this.startLoc,o=this.parseMaybeUnary(t,!1,!1,e);return this.checkExpressionErrors(t)||o.start===s&&o.type==="ArrowFunctionExpression"?o:this.parseExprOp(o,s,a,-1,e)};pe.parseExprOp=function(e,t,s,a,o){var c=this.type.binop;if(c!=null&&(!o||this.type!==x._in)&&c>a){var p=this.type===x.logicalOR||this.type===x.logicalAND,g=this.type===x.coalesce;g&&(c=x.logicalAND.binop);var b=this.value;this.next();var l=this.start,_=this.startLoc,E=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,o),l,_,c,o),D=this.buildBinary(t,s,e,E,b,p||g);return(p&&this.type===x.coalesce||g&&(this.type===x.logicalOR||this.type===x.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(D,t,s,a,o)}return e};pe.buildBinary=function(e,t,s,a,o,c){a.type==="PrivateIdentifier"&&this.raise(a.start,"Private identifier can only be left side of binary expression");var p=this.startNodeAt(e,t);return p.left=s,p.operator=o,p.right=a,this.finishNode(p,c?"LogicalExpression":"BinaryExpression")};pe.parseMaybeUnary=function(e,t,s,a){var o=this.start,c=this.startLoc,p;if(this.isContextual("await")&&this.canAwait)p=this.parseAwait(a),t=!0;else if(this.type.prefix){var g=this.startNode(),b=this.type===x.incDec;g.operator=this.value,g.prefix=!0,this.next(),g.argument=this.parseMaybeUnary(null,!0,b,a),this.checkExpressionErrors(e,!0),b?this.checkLValSimple(g.argument):this.strict&&g.operator==="delete"&&Sn(g.argument)?this.raiseRecoverable(g.start,"Deleting local variable in strict mode"):g.operator==="delete"&&ks(g.argument)?this.raiseRecoverable(g.start,"Private fields can not be deleted"):t=!0,p=this.finishNode(g,b?"UpdateExpression":"UnaryExpression")}else if(!t&&this.type===x.privateId)(a||this.privateNameStack.length===0)&&this.options.checkPrivateFields&&this.unexpected(),p=this.parsePrivateIdent(),this.type!==x._in&&this.unexpected();else{if(p=this.parseExprSubscripts(e,a),this.checkExpressionErrors(e))return p;for(;this.type.postfix&&!this.canInsertSemicolon();){var l=this.startNodeAt(o,c);l.operator=this.value,l.prefix=!1,l.argument=p,this.checkLValSimple(p),this.next(),p=this.finishNode(l,"UpdateExpression")}}if(!s&&this.eat(x.starstar))if(t)this.unexpected(this.lastTokStart);else return this.buildBinary(o,c,p,this.parseMaybeUnary(null,!1,!1,a),"**",!1);else return p};function Sn(e){return e.type==="Identifier"||e.type==="ParenthesizedExpression"&&Sn(e.expression)}function ks(e){return e.type==="MemberExpression"&&e.property.type==="PrivateIdentifier"||e.type==="ChainExpression"&&ks(e.expression)||e.type==="ParenthesizedExpression"&&ks(e.expression)}pe.parseExprSubscripts=function(e,t){var s=this.start,a=this.startLoc,o=this.parseExprAtom(e,t);if(o.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return o;var c=this.parseSubscripts(o,s,a,!1,t);return e&&c.type==="MemberExpression"&&(e.parenthesizedAssign>=c.start&&(e.parenthesizedAssign=-1),e.parenthesizedBind>=c.start&&(e.parenthesizedBind=-1),e.trailingComma>=c.start&&(e.trailingComma=-1)),c};pe.parseSubscripts=function(e,t,s,a,o){for(var c=this.options.ecmaVersion>=8&&e.type==="Identifier"&&e.name==="async"&&this.lastTokEnd===e.end&&!this.canInsertSemicolon()&&e.end-e.start===5&&this.potentialArrowAt===e.start,p=!1;;){var g=this.parseSubscript(e,t,s,a,c,p,o);if(g.optional&&(p=!0),g===e||g.type==="ArrowFunctionExpression"){if(p){var b=this.startNodeAt(t,s);b.expression=g,g=this.finishNode(b,"ChainExpression")}return g}e=g}};pe.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(x.arrow)};pe.parseSubscriptAsyncArrow=function(e,t,s,a){return this.parseArrowExpression(this.startNodeAt(e,t),s,!0,a)};pe.parseSubscript=function(e,t,s,a,o,c,p){var g=this.options.ecmaVersion>=11,b=g&&this.eat(x.questionDot);a&&b&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var l=this.eat(x.bracketL);if(l||b&&this.type!==x.parenL&&this.type!==x.backQuote||this.eat(x.dot)){var _=this.startNodeAt(t,s);_.object=e,l?(_.property=this.parseExpression(),this.expect(x.bracketR)):this.type===x.privateId&&e.type!=="Super"?_.property=this.parsePrivateIdent():_.property=this.parseIdent(this.options.allowReserved!=="never"),_.computed=!!l,g&&(_.optional=b),e=this.finishNode(_,"MemberExpression")}else if(!a&&this.eat(x.parenL)){var E=new Fi,D=this.yieldPos,w=this.awaitPos,k=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var B=this.parseExprList(x.parenR,this.options.ecmaVersion>=8,!1,E);if(o&&!b&&this.shouldParseAsyncArrow())return this.checkPatternErrors(E,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=D,this.awaitPos=w,this.awaitIdentPos=k,this.parseSubscriptAsyncArrow(t,s,B,p);this.checkExpressionErrors(E,!0),this.yieldPos=D||this.yieldPos,this.awaitPos=w||this.awaitPos,this.awaitIdentPos=k||this.awaitIdentPos;var V=this.startNodeAt(t,s);V.callee=e,V.arguments=B,g&&(V.optional=b),e=this.finishNode(V,"CallExpression")}else if(this.type===x.backQuote){(b||c)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var G=this.startNodeAt(t,s);G.tag=e,G.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(G,"TaggedTemplateExpression")}return e};pe.parseExprAtom=function(e,t,s){this.type===x.slash&&this.readRegexp();var a,o=this.potentialArrowAt===this.start;switch(this.type){case x._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),a=this.startNode(),this.next(),this.type===x.parenL&&!this.allowDirectSuper&&this.raise(a.start,"super() call outside constructor of a subclass"),this.type!==x.dot&&this.type!==x.bracketL&&this.type!==x.parenL&&this.unexpected(),this.finishNode(a,"Super");case x._this:return a=this.startNode(),this.next(),this.finishNode(a,"ThisExpression");case x.name:var c=this.start,p=this.startLoc,g=this.containsEsc,b=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!g&&b.name==="async"&&!this.canInsertSemicolon()&&this.eat(x._function))return this.overrideContext(_e.f_expr),this.parseFunction(this.startNodeAt(c,p),0,!1,!0,t);if(o&&!this.canInsertSemicolon()){if(this.eat(x.arrow))return this.parseArrowExpression(this.startNodeAt(c,p),[b],!1,t);if(this.options.ecmaVersion>=8&&b.name==="async"&&this.type===x.name&&!g&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc))return b=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(x.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(c,p),[b],!0,t)}return b;case x.regexp:var l=this.value;return a=this.parseLiteral(l.value),a.regex={pattern:l.pattern,flags:l.flags},a;case x.num:case x.string:return this.parseLiteral(this.value);case x._null:case x._true:case x._false:return a=this.startNode(),a.value=this.type===x._null?null:this.type===x._true,a.raw=this.type.keyword,this.next(),this.finishNode(a,"Literal");case x.parenL:var _=this.start,E=this.parseParenAndDistinguishExpression(o,t);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(E)&&(e.parenthesizedAssign=_),e.parenthesizedBind<0&&(e.parenthesizedBind=_)),E;case x.bracketL:return a=this.startNode(),this.next(),a.elements=this.parseExprList(x.bracketR,!0,!0,e),this.finishNode(a,"ArrayExpression");case x.braceL:return this.overrideContext(_e.b_expr),this.parseObj(!1,e);case x._function:return a=this.startNode(),this.next(),this.parseFunction(a,0);case x._class:return this.parseClass(this.startNode(),!1);case x._new:return this.parseNew();case x.backQuote:return this.parseTemplate();case x._import:return this.options.ecmaVersion>=11?this.parseExprImport(s):this.unexpected();default:return this.parseExprAtomDefault()}};pe.parseExprAtomDefault=function(){this.unexpected()};pe.parseExprImport=function(e){var t=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===x.parenL&&!e)return this.parseDynamicImport(t);if(this.type===x.dot){var s=this.startNodeAt(t.start,t.loc&&t.loc.start);return s.name="import",t.meta=this.finishNode(s,"Identifier"),this.parseImportMeta(t)}else this.unexpected()};pe.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),this.options.ecmaVersion>=16)this.eat(x.parenR)?e.options=null:(this.expect(x.comma),this.afterTrailingComma(x.parenR)?e.options=null:(e.options=this.parseMaybeAssign(),this.eat(x.parenR)||(this.expect(x.comma),this.afterTrailingComma(x.parenR)||this.unexpected())));else if(!this.eat(x.parenR)){var t=this.start;this.eat(x.comma)&&this.eat(x.parenR)?this.raiseRecoverable(t,"Trailing comma is not allowed in import()"):this.unexpected(t)}return this.finishNode(e,"ImportExpression")};pe.parseImportMeta=function(e){this.next();var t=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!=="meta"&&this.raiseRecoverable(e.property.start,"The only valid meta property for import is 'import.meta'"),t&&this.raiseRecoverable(e.start,"'import.meta' must not contain escaped characters"),this.options.sourceType!=="module"&&!this.options.allowImportExportEverywhere&&this.raiseRecoverable(e.start,"Cannot use 'import.meta' outside a module"),this.finishNode(e,"MetaProperty")};pe.parseLiteral=function(e){var t=this.startNode();return t.value=e,t.raw=this.input.slice(this.start,this.end),t.raw.charCodeAt(t.raw.length-1)===110&&(t.bigint=t.value!=null?t.value.toString():t.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(t,"Literal")};pe.parseParenExpression=function(){this.expect(x.parenL);var e=this.parseExpression();return this.expect(x.parenR),e};pe.shouldParseArrow=function(e){return!this.canInsertSemicolon()};pe.parseParenAndDistinguishExpression=function(e,t){var s=this.start,a=this.startLoc,o,c=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var p=this.start,g=this.startLoc,b=[],l=!0,_=!1,E=new Fi,D=this.yieldPos,w=this.awaitPos,k;for(this.yieldPos=0,this.awaitPos=0;this.type!==x.parenR;)if(l?l=!1:this.expect(x.comma),c&&this.afterTrailingComma(x.parenR,!0)){_=!0;break}else if(this.type===x.ellipsis){k=this.start,b.push(this.parseParenItem(this.parseRestBinding())),this.type===x.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}else b.push(this.parseMaybeAssign(!1,E,this.parseParenItem));var B=this.lastTokEnd,V=this.lastTokEndLoc;if(this.expect(x.parenR),e&&this.shouldParseArrow(b)&&this.eat(x.arrow))return this.checkPatternErrors(E,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=D,this.awaitPos=w,this.parseParenArrowList(s,a,b,t);(!b.length||_)&&this.unexpected(this.lastTokStart),k&&this.unexpected(k),this.checkExpressionErrors(E,!0),this.yieldPos=D||this.yieldPos,this.awaitPos=w||this.awaitPos,b.length>1?(o=this.startNodeAt(p,g),o.expressions=b,this.finishNodeAt(o,"SequenceExpression",B,V)):o=b[0]}else o=this.parseParenExpression();if(this.options.preserveParens){var G=this.startNodeAt(s,a);return G.expression=o,this.finishNode(G,"ParenthesizedExpression")}else return o};pe.parseParenItem=function(e){return e};pe.parseParenArrowList=function(e,t,s,a){return this.parseArrowExpression(this.startNodeAt(e,t),s,!1,a)};var kc=[];pe.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var e=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===x.dot){var t=this.startNodeAt(e.start,e.loc&&e.loc.start);t.name="new",e.meta=this.finishNode(t,"Identifier"),this.next();var s=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!=="target"&&this.raiseRecoverable(e.property.start,"The only valid meta property for new is 'new.target'"),s&&this.raiseRecoverable(e.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(e.start,"'new.target' can only be used in functions and class static block"),this.finishNode(e,"MetaProperty")}var a=this.start,o=this.startLoc;return e.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),a,o,!0,!1),this.eat(x.parenL)?e.arguments=this.parseExprList(x.parenR,this.options.ecmaVersion>=8,!1):e.arguments=kc,this.finishNode(e,"NewExpression")};pe.parseTemplateElement=function(e){var t=e.isTagged,s=this.startNode();return this.type===x.invalidTemplate?(t||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),s.value={raw:this.value.replace(/\r\n?/g,`
19
19
  `),cooked:null}):s.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
20
- `),cooked:this.value},this.next(),s.tail=this.type===x.backQuote,this.finishNode(s,"TemplateElement")};pe.parseTemplate=function(e){e===void 0&&(e={});var t=e.isTagged;t===void 0&&(t=!1);var s=this.startNode();this.next(),s.expressions=[];var a=this.parseTemplateElement({isTagged:t});for(s.quasis=[a];!a.tail;)this.type===x.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(x.dollarBraceL),s.expressions.push(this.parseExpression()),this.expect(x.braceR),s.quasis.push(a=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(s,"TemplateLiteral")};pe.isAsyncProp=function(e){return!e.computed&&e.key.type==="Identifier"&&e.key.name==="async"&&(this.type===x.name||this.type===x.num||this.type===x.string||this.type===x.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===x.star)&&!Me.test(this.input.slice(this.lastTokEnd,this.start))};pe.parseObj=function(e,t){var s=this.startNode(),a=!0,o={};for(s.properties=[],this.next();!this.eat(x.braceR);){if(a)a=!1;else if(this.expect(x.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(x.braceR))break;var c=this.parseProperty(e,t);e||this.checkPropClash(c,o,t),s.properties.push(c)}return this.finishNode(s,e?"ObjectPattern":"ObjectExpression")};pe.parseProperty=function(e,t){var s=this.startNode(),a,o,c,p;if(this.options.ecmaVersion>=9&&this.eat(x.ellipsis))return e?(s.argument=this.parseIdent(!1),this.type===x.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(s,"RestElement")):(s.argument=this.parseMaybeAssign(!1,t),this.type===x.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(s,"SpreadElement"));this.options.ecmaVersion>=6&&(s.method=!1,s.shorthand=!1,(e||t)&&(c=this.start,p=this.startLoc),e||(a=this.eat(x.star)));var g=this.containsEsc;return this.parsePropertyName(s),!e&&!g&&this.options.ecmaVersion>=8&&!a&&this.isAsyncProp(s)?(o=!0,a=this.options.ecmaVersion>=9&&this.eat(x.star),this.parsePropertyName(s)):o=!1,this.parsePropertyValue(s,e,a,o,c,p,t,g),this.finishNode(s,"Property")};pe.parseGetterSetter=function(e){var t=e.key.name;this.parsePropertyName(e),e.value=this.parseMethod(!1),e.kind=t;var s=e.kind==="get"?0:1;if(e.value.params.length!==s){var a=e.value.start;e.kind==="get"?this.raiseRecoverable(a,"getter should have no params"):this.raiseRecoverable(a,"setter should have exactly one param")}else e.kind==="set"&&e.value.params[0].type==="RestElement"&&this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params")};pe.parsePropertyValue=function(e,t,s,a,o,c,p,g){(s||a)&&this.type===x.colon&&this.unexpected(),this.eat(x.colon)?(e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,p),e.kind="init"):this.options.ecmaVersion>=6&&this.type===x.parenL?(t&&this.unexpected(),e.method=!0,e.value=this.parseMethod(s,a),e.kind="init"):!t&&!g&&this.options.ecmaVersion>=5&&!e.computed&&e.key.type==="Identifier"&&(e.key.name==="get"||e.key.name==="set")&&this.type!==x.comma&&this.type!==x.braceR&&this.type!==x.eq?((s||a)&&this.unexpected(),this.parseGetterSetter(e)):this.options.ecmaVersion>=6&&!e.computed&&e.key.type==="Identifier"?((s||a)&&this.unexpected(),this.checkUnreserved(e.key),e.key.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=o),t?e.value=this.parseMaybeDefault(o,c,this.copyNode(e.key)):this.type===x.eq&&p?(p.shorthandAssign<0&&(p.shorthandAssign=this.start),e.value=this.parseMaybeDefault(o,c,this.copyNode(e.key))):e.value=this.copyNode(e.key),e.kind="init",e.shorthand=!0):this.unexpected()};pe.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(x.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(x.bracketR),e.key;e.computed=!1}return e.key=this.type===x.num||this.type===x.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")};pe.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)};pe.parseMethod=function(e,t,s){var a=this.startNode(),o=this.yieldPos,c=this.awaitPos,p=this.awaitIdentPos;return this.initFunction(a),this.options.ecmaVersion>=6&&(a.generator=e),this.options.ecmaVersion>=8&&(a.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Ls(t,a.generator)|Di|(s?fn:0)),this.expect(x.parenL),a.params=this.parseBindingList(x.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(a,!1,!0,!1),this.yieldPos=o,this.awaitPos=c,this.awaitIdentPos=p,this.finishNode(a,"FunctionExpression")};pe.parseArrowExpression=function(e,t,s,a){var o=this.yieldPos,c=this.awaitPos,p=this.awaitIdentPos;return this.enterScope(Ls(s,!1)|Ns),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!s),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0,!1,a),this.yieldPos=o,this.awaitPos=c,this.awaitIdentPos=p,this.finishNode(e,"ArrowFunctionExpression")};pe.parseFunctionBody=function(e,t,s,a){var o=t&&this.type!==x.braceL,c=this.strict,p=!1;if(o)e.body=this.parseMaybeAssign(a),e.expression=!0,this.checkParams(e,!1);else{var g=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);(!c||g)&&(p=this.strictDirective(this.end),p&&g&&this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list"));var b=this.labels;this.labels=[],p&&(this.strict=!0),this.checkParams(e,!c&&!p&&!t&&!s&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLValSimple(e.id,yn),e.body=this.parseBlock(!1,void 0,p&&!c),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=b}this.exitScope()};pe.isSimpleParamList=function(e){for(var t=0,s=e;t<s.length;t+=1){var a=s[t];if(a.type!=="Identifier")return!1}return!0};pe.checkParams=function(e,t){for(var s=Object.create(null),a=0,o=e.params;a<o.length;a+=1){var c=o[a];this.checkLValInnerPattern(c,Rs,t?null:s)}};pe.parseExprList=function(e,t,s,a){for(var o=[],c=!0;!this.eat(e);){if(c)c=!1;else if(this.expect(x.comma),t&&this.afterTrailingComma(e))break;var p=void 0;s&&this.type===x.comma?p=null:this.type===x.ellipsis?(p=this.parseSpread(a),a&&this.type===x.comma&&a.trailingComma<0&&(a.trailingComma=this.start)):p=this.parseMaybeAssign(!1,a),o.push(p)}return o};pe.checkUnreserved=function(e){var t=e.start,s=e.end,a=e.name;if(this.inGenerator&&a==="yield"&&this.raiseRecoverable(t,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&a==="await"&&this.raiseRecoverable(t,"Cannot use 'await' as identifier inside an async function"),!(this.currentThisScope().flags&Fi)&&a==="arguments"&&this.raiseRecoverable(t,"Cannot use 'arguments' in class field initializer"),this.inClassStaticBlock&&(a==="arguments"||a==="await")&&this.raise(t,"Cannot use "+a+" in class static initialization block"),this.keywords.test(a)&&this.raise(t,"Unexpected keyword '"+a+"'"),!(this.options.ecmaVersion<6&&this.input.slice(t,s).indexOf("\\")!==-1)){var o=this.strict?this.reservedWordsStrict:this.reservedWords;o.test(a)&&(!this.inAsync&&a==="await"&&this.raiseRecoverable(t,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(t,"The keyword '"+a+"' is reserved"))}};pe.parseIdent=function(e){var t=this.parseIdentNode();return this.next(!!e),this.finishNode(t,"Identifier"),e||(this.checkUnreserved(t),t.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=t.start)),t};pe.parseIdentNode=function(){var e=this.startNode();return this.type===x.name?e.name=this.value:this.type.keyword?(e.name=this.type.keyword,(e.name==="class"||e.name==="function")&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46)&&this.context.pop(),this.type=x.name):this.unexpected(),e};pe.parsePrivateIdent=function(){var e=this.startNode();return this.type===x.privateId?e.name=this.value:this.unexpected(),this.next(),this.finishNode(e,"PrivateIdentifier"),this.options.checkPrivateFields&&(this.privateNameStack.length===0?this.raise(e.start,"Private field '#"+e.name+"' must be declared in an enclosing class"):this.privateNameStack[this.privateNameStack.length-1].used.push(e)),e};pe.parseYield=function(e){this.yieldPos||(this.yieldPos=this.start);var t=this.startNode();return this.next(),this.type===x.semi||this.canInsertSemicolon()||this.type!==x.star&&!this.type.startsExpr?(t.delegate=!1,t.argument=null):(t.delegate=this.eat(x.star),t.argument=this.parseMaybeAssign(e)),this.finishNode(t,"YieldExpression")};pe.parseAwait=function(e){this.awaitPos||(this.awaitPos=this.start);var t=this.startNode();return this.next(),t.argument=this.parseMaybeUnary(null,!0,!1,e),this.finishNode(t,"AwaitExpression")};var Mi=Ae.prototype;Mi.raise=function(e,t){var s=Ps(this.input,e);t+=" ("+s.line+":"+s.column+")",this.sourceFile&&(t+=" in "+this.sourceFile);var a=new SyntaxError(t);throw a.pos=e,a.loc=s,a.raisedAt=this.pos,a};Mi.raiseRecoverable=Mi.raise;Mi.curPosition=function(){if(this.options.locations)return new Dt(this.curLine,this.pos-this.lineStart)};var vt=Ae.prototype,Pc=function(t){this.flags=t,this.var=[],this.lexical=[],this.functions=[]};vt.enterScope=function(e){this.scopeStack.push(new Pc(e))};vt.exitScope=function(){this.scopeStack.pop()};vt.treatFunctionsAsVarInScope=function(e){return e.flags&At||!this.inModule&&e.flags&Ct};vt.declareName=function(e,t,s){var a=!1;if(t===pt){var o=this.currentScope();a=o.lexical.indexOf(e)>-1||o.functions.indexOf(e)>-1||o.var.indexOf(e)>-1,o.lexical.push(e),this.inModule&&o.flags&Ct&&delete this.undefinedExports[e]}else if(t===xn){var c=this.currentScope();c.lexical.push(e)}else if(t===mn){var p=this.currentScope();this.treatFunctionsAsVar?a=p.lexical.indexOf(e)>-1:a=p.lexical.indexOf(e)>-1||p.var.indexOf(e)>-1,p.functions.push(e)}else for(var g=this.scopeStack.length-1;g>=0;--g){var b=this.scopeStack[g];if(b.lexical.indexOf(e)>-1&&!(b.flags&pn&&b.lexical[0]===e)||!this.treatFunctionsAsVarInScope(b)&&b.functions.indexOf(e)>-1){a=!0;break}if(b.var.push(e),this.inModule&&b.flags&Ct&&delete this.undefinedExports[e],b.flags&Fi)break}a&&this.raiseRecoverable(s,"Identifier '"+e+"' has already been declared")};vt.checkLocalExport=function(e){this.scopeStack[0].lexical.indexOf(e.name)===-1&&this.scopeStack[0].var.indexOf(e.name)===-1&&(this.undefinedExports[e.name]=e)};vt.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]};vt.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&(Fi|si|Et))return t}};vt.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&(Fi|si|Et)&&!(t.flags&Ns))return t}};var ri=function(t,s,a){this.type="",this.start=s,this.end=0,t.options.locations&&(this.loc=new ii(t,a)),t.options.directSourceFile&&(this.sourceFile=t.options.directSourceFile),t.options.ranges&&(this.range=[s,0])},ai=Ae.prototype;ai.startNode=function(){return new ri(this,this.start,this.startLoc)};ai.startNodeAt=function(e,t){return new ri(this,e,t)};function bn(e,t,s,a){return e.type=t,e.end=s,this.options.locations&&(e.loc.end=a),this.options.ranges&&(e.range[1]=s),e}ai.finishNode=function(e,t){return bn.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)};ai.finishNodeAt=function(e,t,s,a){return bn.call(this,e,t,s,a)};ai.copyNode=function(e){var t=new ri(this,e.start,this.startLoc);for(var s in e)t[s]=e[s];return t};var Ic="Berf Beria_Erfe Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sidetic Sidt Sunu Sunuwar Tai_Yo Tayo Todhri Todr Tolong_Siki Tols Tulu_Tigalari Tutg Unknown Zzzz",Sn="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",Cn=Sn+" Extended_Pictographic",wn=Cn,_n=wn+" EBase EComp EMod EPres ExtPict",An=_n,Nc=An,Lc={9:Sn,10:Cn,11:wn,12:_n,13:An,14:Nc},Rc="Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji",Oc={9:"",10:"",11:"",12:"",13:"",14:Rc},sn="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",En="Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",kn=En+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",Tn=kn+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",Pn=Tn+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",In=Pn+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",Mc=In+" "+Ic,Vc={9:En,10:kn,11:Tn,12:Pn,13:In,14:Mc},Nn={};function Dc(e){var t=Nn[e]={binary:gt(Lc[e]+" "+sn),binaryOfStrings:gt(Oc[e]),nonBinary:{General_Category:gt(sn),Script:gt(Vc[e])}};t.nonBinary.Script_Extensions=t.nonBinary.Script,t.nonBinary.gc=t.nonBinary.General_Category,t.nonBinary.sc=t.nonBinary.Script,t.nonBinary.scx=t.nonBinary.Script_Extensions}for(Ni=0,_s=[9,10,11,12,13,14];Ni<_s.length;Ni+=1)rn=_s[Ni],Dc(rn);var rn,Ni,_s,te=Ae.prototype,Vi=function(t,s){this.parent=t,this.base=s||this};Vi.prototype.separatedFrom=function(t){for(var s=this;s;s=s.parent)for(var a=t;a;a=a.parent)if(s.base===a.base&&s!==a)return!0;return!1};Vi.prototype.sibling=function(){return new Vi(this.parent,this.base)};var rt=function(t){this.parser=t,this.validFlags="gim"+(t.options.ecmaVersion>=6?"uy":"")+(t.options.ecmaVersion>=9?"s":"")+(t.options.ecmaVersion>=13?"d":"")+(t.options.ecmaVersion>=15?"v":""),this.unicodeProperties=Nn[t.options.ecmaVersion>=14?14:t.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchV=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=Object.create(null),this.backReferenceNames=[],this.branchID=null};rt.prototype.reset=function(t,s,a){var o=a.indexOf("v")!==-1,c=a.indexOf("u")!==-1;this.start=t|0,this.source=s+"",this.flags=a,o&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=c&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=c&&this.parser.options.ecmaVersion>=9)};rt.prototype.raise=function(t){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+t)};rt.prototype.at=function(t,s){s===void 0&&(s=!1);var a=this.source,o=a.length;if(t>=o)return-1;var c=a.charCodeAt(t);if(!(s||this.switchU)||c<=55295||c>=57344||t+1>=o)return c;var p=a.charCodeAt(t+1);return p>=56320&&p<=57343?(c<<10)+p-56613888:c};rt.prototype.nextIndex=function(t,s){s===void 0&&(s=!1);var a=this.source,o=a.length;if(t>=o)return o;var c=a.charCodeAt(t),p;return!(s||this.switchU)||c<=55295||c>=57344||t+1>=o||(p=a.charCodeAt(t+1))<56320||p>57343?t+1:t+2};rt.prototype.current=function(t){return t===void 0&&(t=!1),this.at(this.pos,t)};rt.prototype.lookahead=function(t){return t===void 0&&(t=!1),this.at(this.nextIndex(this.pos,t),t)};rt.prototype.advance=function(t){t===void 0&&(t=!1),this.pos=this.nextIndex(this.pos,t)};rt.prototype.eat=function(t,s){return s===void 0&&(s=!1),this.current(s)===t?(this.advance(s),!0):!1};rt.prototype.eatChars=function(t,s){s===void 0&&(s=!1);for(var a=this.pos,o=0,c=t;o<c.length;o+=1){var p=c[o],g=this.at(a,s);if(g===-1||g!==p)return!1;a=this.nextIndex(a,s)}return this.pos=a,!0};te.validateRegExpFlags=function(e){for(var t=e.validFlags,s=e.flags,a=!1,o=!1,c=0;c<s.length;c++){var p=s.charAt(c);t.indexOf(p)===-1&&this.raise(e.start,"Invalid regular expression flag"),s.indexOf(p,c+1)>-1&&this.raise(e.start,"Duplicate regular expression flag"),p==="u"&&(a=!0),p==="v"&&(o=!0)}this.options.ecmaVersion>=15&&a&&o&&this.raise(e.start,"Invalid regular expression flag")};function Fc(e){for(var t in e)return!0;return!1}te.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&Fc(e.groupNames)&&(e.switchN=!0,this.regexp_pattern(e))};te.regexp_pattern=function(e){e.pos=0,e.lastIntValue=0,e.lastStringValue="",e.lastAssertionIsQuantifiable=!1,e.numCapturingParens=0,e.maxBackReference=0,e.groupNames=Object.create(null),e.backReferenceNames.length=0,e.branchID=null,this.regexp_disjunction(e),e.pos!==e.source.length&&(e.eat(41)&&e.raise("Unmatched ')'"),(e.eat(93)||e.eat(125))&&e.raise("Lone quantifier brackets")),e.maxBackReference>e.numCapturingParens&&e.raise("Invalid escape");for(var t=0,s=e.backReferenceNames;t<s.length;t+=1){var a=s[t];e.groupNames[a]||e.raise("Invalid named capture referenced")}};te.regexp_disjunction=function(e){var t=this.options.ecmaVersion>=16;for(t&&(e.branchID=new Vi(e.branchID,null)),this.regexp_alternative(e);e.eat(124);)t&&(e.branchID=e.branchID.sibling()),this.regexp_alternative(e);t&&(e.branchID=e.branchID.parent),this.regexp_eatQuantifier(e,!0)&&e.raise("Nothing to repeat"),e.eat(123)&&e.raise("Lone quantifier brackets")};te.regexp_alternative=function(e){for(;e.pos<e.source.length&&this.regexp_eatTerm(e););};te.regexp_eatTerm=function(e){return this.regexp_eatAssertion(e)?(e.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(e)&&e.switchU&&e.raise("Invalid quantifier"),!0):(e.switchU?this.regexp_eatAtom(e):this.regexp_eatExtendedAtom(e))?(this.regexp_eatQuantifier(e),!0):!1};te.regexp_eatAssertion=function(e){var t=e.pos;if(e.lastAssertionIsQuantifiable=!1,e.eat(94)||e.eat(36))return!0;if(e.eat(92)){if(e.eat(66)||e.eat(98))return!0;e.pos=t}if(e.eat(40)&&e.eat(63)){var s=!1;if(this.options.ecmaVersion>=9&&(s=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise("Unterminated group"),e.lastAssertionIsQuantifiable=!s,!0}return e.pos=t,!1};te.regexp_eatQuantifier=function(e,t){return t===void 0&&(t=!1),this.regexp_eatQuantifierPrefix(e,t)?(e.eat(63),!0):!1};te.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)};te.regexp_eatBracedQuantifier=function(e,t){var s=e.pos;if(e.eat(123)){var a=0,o=-1;if(this.regexp_eatDecimalDigits(e)&&(a=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(o=e.lastIntValue),e.eat(125)))return o!==-1&&o<a&&!t&&e.raise("numbers out of order in {} quantifier"),!0;e.switchU&&!t&&e.raise("Incomplete quantifier"),e.pos=s}return!1};te.regexp_eatAtom=function(e){return this.regexp_eatPatternCharacters(e)||e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)};te.regexp_eatReverseSolidusAtomEscape=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatAtomEscape(e))return!0;e.pos=t}return!1};te.regexp_eatUncapturingGroup=function(e){var t=e.pos;if(e.eat(40)){if(e.eat(63)){if(this.options.ecmaVersion>=16){var s=this.regexp_eatModifiers(e),a=e.eat(45);if(s||a){for(var o=0;o<s.length;o++){var c=s.charAt(o);s.indexOf(c,o+1)>-1&&e.raise("Duplicate regular expression modifiers")}if(a){var p=this.regexp_eatModifiers(e);!s&&!p&&e.current()===58&&e.raise("Invalid regular expression modifiers");for(var g=0;g<p.length;g++){var b=p.charAt(g);(p.indexOf(b,g+1)>-1||s.indexOf(b)>-1)&&e.raise("Duplicate regular expression modifiers")}}}}if(e.eat(58)){if(this.regexp_disjunction(e),e.eat(41))return!0;e.raise("Unterminated group")}}e.pos=t}return!1};te.regexp_eatCapturingGroup=function(e){if(e.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(e):e.current()===63&&e.raise("Invalid group"),this.regexp_disjunction(e),e.eat(41))return e.numCapturingParens+=1,!0;e.raise("Unterminated group")}return!1};te.regexp_eatModifiers=function(e){for(var t="",s=0;(s=e.current())!==-1&&Bc(s);)t+=ct(s),e.advance();return t};function Bc(e){return e===105||e===109||e===115}te.regexp_eatExtendedAtom=function(e){return e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)||this.regexp_eatInvalidBracedQuantifier(e)||this.regexp_eatExtendedPatternCharacter(e)};te.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1};te.regexp_eatSyntaxCharacter=function(e){var t=e.current();return Ln(t)?(e.lastIntValue=t,e.advance(),!0):!1};function Ln(e){return e===36||e>=40&&e<=43||e===46||e===63||e>=91&&e<=94||e>=123&&e<=125}te.regexp_eatPatternCharacters=function(e){for(var t=e.pos,s=0;(s=e.current())!==-1&&!Ln(s);)e.advance();return e.pos!==t};te.regexp_eatExtendedPatternCharacter=function(e){var t=e.current();return t!==-1&&t!==36&&!(t>=40&&t<=43)&&t!==46&&t!==63&&t!==91&&t!==94&&t!==124?(e.advance(),!0):!1};te.regexp_groupSpecifier=function(e){if(e.eat(63)){this.regexp_eatGroupName(e)||e.raise("Invalid group");var t=this.options.ecmaVersion>=16,s=e.groupNames[e.lastStringValue];if(s)if(t)for(var a=0,o=s;a<o.length;a+=1){var c=o[a];c.separatedFrom(e.branchID)||e.raise("Duplicate capture group name")}else e.raise("Duplicate capture group name");t?(s||(e.groupNames[e.lastStringValue]=[])).push(e.branchID):e.groupNames[e.lastStringValue]=!0}};te.regexp_eatGroupName=function(e){if(e.lastStringValue="",e.eat(60)){if(this.regexp_eatRegExpIdentifierName(e)&&e.eat(62))return!0;e.raise("Invalid capture group name")}return!1};te.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue="",this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=ct(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=ct(e.lastIntValue);return!0}return!1};te.regexp_eatRegExpIdentifierStart=function(e){var t=e.pos,s=this.options.ecmaVersion>=11,a=e.current(s);return e.advance(s),a===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,s)&&(a=e.lastIntValue),jc(a)?(e.lastIntValue=a,!0):(e.pos=t,!1)};function jc(e){return Ze(e,!0)||e===36||e===95}te.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos,s=this.options.ecmaVersion>=11,a=e.current(s);return e.advance(s),a===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,s)&&(a=e.lastIntValue),Uc(a)?(e.lastIntValue=a,!0):(e.pos=t,!1)};function Uc(e){return ht(e,!0)||e===36||e===95||e===8204||e===8205}te.regexp_eatAtomEscape=function(e){return this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e)?!0:(e.switchU&&(e.current()===99&&e.raise("Invalid unicode escape"),e.raise("Invalid escape")),!1)};te.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var s=e.lastIntValue;if(e.switchU)return s>e.maxBackReference&&(e.maxBackReference=s),!0;if(s<=e.numCapturingParens)return!0;e.pos=t}return!1};te.regexp_eatKGroupName=function(e){if(e.eat(107)){if(this.regexp_eatGroupName(e))return e.backReferenceNames.push(e.lastStringValue),!0;e.raise("Invalid named reference")}return!1};te.regexp_eatCharacterEscape=function(e){return this.regexp_eatControlEscape(e)||this.regexp_eatCControlLetter(e)||this.regexp_eatZero(e)||this.regexp_eatHexEscapeSequence(e)||this.regexp_eatRegExpUnicodeEscapeSequence(e,!1)||!e.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e)||this.regexp_eatIdentityEscape(e)};te.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1};te.regexp_eatZero=function(e){return e.current()===48&&!ji(e.lookahead())?(e.lastIntValue=0,e.advance(),!0):!1};te.regexp_eatControlEscape=function(e){var t=e.current();return t===116?(e.lastIntValue=9,e.advance(),!0):t===110?(e.lastIntValue=10,e.advance(),!0):t===118?(e.lastIntValue=11,e.advance(),!0):t===102?(e.lastIntValue=12,e.advance(),!0):t===114?(e.lastIntValue=13,e.advance(),!0):!1};te.regexp_eatControlLetter=function(e){var t=e.current();return Rn(t)?(e.lastIntValue=t%32,e.advance(),!0):!1};function Rn(e){return e>=65&&e<=90||e>=97&&e<=122}te.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){t===void 0&&(t=!1);var s=e.pos,a=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var o=e.lastIntValue;if(a&&o>=55296&&o<=56319){var c=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var p=e.lastIntValue;if(p>=56320&&p<=57343)return e.lastIntValue=(o-55296)*1024+(p-56320)+65536,!0}e.pos=c,e.lastIntValue=o}return!0}if(a&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&Hc(e.lastIntValue))return!0;a&&e.raise("Invalid unicode escape"),e.pos=s}return!1};function Hc(e){return e>=0&&e<=1114111}te.regexp_eatIdentityEscape=function(e){if(e.switchU)return this.regexp_eatSyntaxCharacter(e)?!0:e.eat(47)?(e.lastIntValue=47,!0):!1;var t=e.current();return t!==99&&(!e.switchN||t!==107)?(e.lastIntValue=t,e.advance(),!0):!1};te.regexp_eatDecimalEscape=function(e){e.lastIntValue=0;var t=e.current();if(t>=49&&t<=57){do e.lastIntValue=10*e.lastIntValue+(t-48),e.advance();while((t=e.current())>=48&&t<=57);return!0}return!1};var On=0,lt=1,Je=2;te.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(qc(t))return e.lastIntValue=-1,e.advance(),lt;var s=!1;if(e.switchU&&this.options.ecmaVersion>=9&&((s=t===80)||t===112)){e.lastIntValue=-1,e.advance();var a;if(e.eat(123)&&(a=this.regexp_eatUnicodePropertyValueExpression(e))&&e.eat(125))return s&&a===Je&&e.raise("Invalid property name"),a;e.raise("Invalid property name")}return On};function qc(e){return e===100||e===68||e===115||e===83||e===119||e===87}te.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var s=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var a=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,s,a),lt}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var o=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,o)}return On};te.regexp_validateUnicodePropertyNameAndValue=function(e,t,s){Ft(e.unicodeProperties.nonBinary,t)||e.raise("Invalid property name"),e.unicodeProperties.nonBinary[t].test(s)||e.raise("Invalid property value")};te.regexp_validateUnicodePropertyNameOrValue=function(e,t){if(e.unicodeProperties.binary.test(t))return lt;if(e.switchV&&e.unicodeProperties.binaryOfStrings.test(t))return Je;e.raise("Invalid property name")};te.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue="";Mn(t=e.current());)e.lastStringValue+=ct(t),e.advance();return e.lastStringValue!==""};function Mn(e){return Rn(e)||e===95}te.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue="";Wc(t=e.current());)e.lastStringValue+=ct(t),e.advance();return e.lastStringValue!==""};function Wc(e){return Mn(e)||ji(e)}te.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)};te.regexp_eatCharacterClass=function(e){if(e.eat(91)){var t=e.eat(94),s=this.regexp_classContents(e);return e.eat(93)||e.raise("Unterminated character class"),t&&s===Je&&e.raise("Negated character class may contain strings"),!0}return!1};te.regexp_classContents=function(e){return e.current()===93?lt:e.switchV?this.regexp_classSetExpression(e):(this.regexp_nonEmptyClassRanges(e),lt)};te.regexp_nonEmptyClassRanges=function(e){for(;this.regexp_eatClassAtom(e);){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var s=e.lastIntValue;e.switchU&&(t===-1||s===-1)&&e.raise("Invalid character class"),t!==-1&&s!==-1&&t>s&&e.raise("Range out of order in character class")}}};te.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var s=e.current();(s===99||Fn(s))&&e.raise("Invalid class escape"),e.raise("Invalid escape")}e.pos=t}var a=e.current();return a!==93?(e.lastIntValue=a,e.advance(),!0):!1};te.regexp_eatClassEscape=function(e){var t=e.pos;if(e.eat(98))return e.lastIntValue=8,!0;if(e.switchU&&e.eat(45))return e.lastIntValue=45,!0;if(!e.switchU&&e.eat(99)){if(this.regexp_eatClassControlLetter(e))return!0;e.pos=t}return this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)};te.regexp_classSetExpression=function(e){var t=lt,s;if(!this.regexp_eatClassSetRange(e))if(s=this.regexp_eatClassSetOperand(e)){s===Je&&(t=Je);for(var a=e.pos;e.eatChars([38,38]);){if(e.current()!==38&&(s=this.regexp_eatClassSetOperand(e))){s!==Je&&(t=lt);continue}e.raise("Invalid character in character class")}if(a!==e.pos)return t;for(;e.eatChars([45,45]);)this.regexp_eatClassSetOperand(e)||e.raise("Invalid character in character class");if(a!==e.pos)return t}else e.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(e)){if(s=this.regexp_eatClassSetOperand(e),!s)return t;s===Je&&(t=Je)}};te.regexp_eatClassSetRange=function(e){var t=e.pos;if(this.regexp_eatClassSetCharacter(e)){var s=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassSetCharacter(e)){var a=e.lastIntValue;return s!==-1&&a!==-1&&s>a&&e.raise("Range out of order in character class"),!0}e.pos=t}return!1};te.regexp_eatClassSetOperand=function(e){return this.regexp_eatClassSetCharacter(e)?lt:this.regexp_eatClassStringDisjunction(e)||this.regexp_eatNestedClass(e)};te.regexp_eatNestedClass=function(e){var t=e.pos;if(e.eat(91)){var s=e.eat(94),a=this.regexp_classContents(e);if(e.eat(93))return s&&a===Je&&e.raise("Negated character class may contain strings"),a;e.pos=t}if(e.eat(92)){var o=this.regexp_eatCharacterClassEscape(e);if(o)return o;e.pos=t}return null};te.regexp_eatClassStringDisjunction=function(e){var t=e.pos;if(e.eatChars([92,113])){if(e.eat(123)){var s=this.regexp_classStringDisjunctionContents(e);if(e.eat(125))return s}else e.raise("Invalid escape");e.pos=t}return null};te.regexp_classStringDisjunctionContents=function(e){for(var t=this.regexp_classString(e);e.eat(124);)this.regexp_classString(e)===Je&&(t=Je);return t};te.regexp_classString=function(e){for(var t=0;this.regexp_eatClassSetCharacter(e);)t++;return t===1?lt:Je};te.regexp_eatClassSetCharacter=function(e){var t=e.pos;if(e.eat(92))return this.regexp_eatCharacterEscape(e)||this.regexp_eatClassSetReservedPunctuator(e)?!0:e.eat(98)?(e.lastIntValue=8,!0):(e.pos=t,!1);var s=e.current();return s<0||s===e.lookahead()&&Gc(s)||$c(s)?!1:(e.advance(),e.lastIntValue=s,!0)};function Gc(e){return e===33||e>=35&&e<=38||e>=42&&e<=44||e===46||e>=58&&e<=64||e===94||e===96||e===126}function $c(e){return e===40||e===41||e===45||e===47||e>=91&&e<=93||e>=123&&e<=125}te.regexp_eatClassSetReservedPunctuator=function(e){var t=e.current();return zc(t)?(e.lastIntValue=t,e.advance(),!0):!1};function zc(e){return e===33||e===35||e===37||e===38||e===44||e===45||e>=58&&e<=62||e===64||e===96||e===126}te.regexp_eatClassControlLetter=function(e){var t=e.current();return ji(t)||t===95?(e.lastIntValue=t%32,e.advance(),!0):!1};te.regexp_eatHexEscapeSequence=function(e){var t=e.pos;if(e.eat(120)){if(this.regexp_eatFixedHexDigits(e,2))return!0;e.switchU&&e.raise("Invalid escape"),e.pos=t}return!1};te.regexp_eatDecimalDigits=function(e){var t=e.pos,s=0;for(e.lastIntValue=0;ji(s=e.current());)e.lastIntValue=10*e.lastIntValue+(s-48),e.advance();return e.pos!==t};function ji(e){return e>=48&&e<=57}te.regexp_eatHexDigits=function(e){var t=e.pos,s=0;for(e.lastIntValue=0;Vn(s=e.current());)e.lastIntValue=16*e.lastIntValue+Dn(s),e.advance();return e.pos!==t};function Vn(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function Dn(e){return e>=65&&e<=70?10+(e-65):e>=97&&e<=102?10+(e-97):e-48}te.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var s=e.lastIntValue;t<=3&&this.regexp_eatOctalDigit(e)?e.lastIntValue=t*64+s*8+e.lastIntValue:e.lastIntValue=t*8+s}else e.lastIntValue=t;return!0}return!1};te.regexp_eatOctalDigit=function(e){var t=e.current();return Fn(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)};function Fn(e){return e>=48&&e<=55}te.regexp_eatFixedHexDigits=function(e,t){var s=e.pos;e.lastIntValue=0;for(var a=0;a<t;++a){var o=e.current();if(!Vn(o))return e.pos=s,!1;e.lastIntValue=16*e.lastIntValue+Dn(o),e.advance()}return!0};var Ui=function(t){this.type=t.type,this.value=t.value,this.start=t.start,this.end=t.end,t.options.locations&&(this.loc=new ii(t,t.startLoc,t.endLoc)),t.options.ranges&&(this.range=[t.start,t.end])},ye=Ae.prototype;ye.next=function(e){!e&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new Ui(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()};ye.getToken=function(){return this.next(),new Ui(this)};typeof Symbol<"u"&&(ye[Symbol.iterator]=function(){var e=this;return{next:function(){var t=e.getToken();return{done:t.type===x.eof,value:t}}}});ye.nextToken=function(){var e=this.curContext();if((!e||!e.preserveSpace)&&this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length)return this.finishToken(x.eof);if(e.override)return e.override(this);this.readToken(this.fullCharCodeAtPos())};ye.readToken=function(e){return Ze(e,this.options.ecmaVersion>=6)||e===92?this.readWord():this.getTokenFromCode(e)};ye.fullCharCodeAt=function(e){var t=this.input.charCodeAt(e);if(t<=55295||t>=56320)return t;var s=this.input.charCodeAt(e+1);return s<=56319||s>=57344?t:(t<<10)+s-56613888};ye.fullCharCodeAtPos=function(){return this.fullCharCodeAt(this.pos)};ye.skipBlockComment=function(){var e=this.options.onComment&&this.curPosition(),t=this.pos,s=this.input.indexOf("*/",this.pos+=2);if(s===-1&&this.raise(this.pos-2,"Unterminated comment"),this.pos=s+2,this.options.locations)for(var a=void 0,o=t;(a=hn(this.input,o,this.pos))>-1;)++this.curLine,o=this.lineStart=a;this.options.onComment&&this.options.onComment(!0,this.input.slice(t+2,s),t,this.pos,e,this.curPosition())};ye.skipLineComment=function(e){for(var t=this.pos,s=this.options.onComment&&this.curPosition(),a=this.input.charCodeAt(this.pos+=e);this.pos<this.input.length&&!_t(a);)a=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(t+e,this.pos),t,this.pos,s,this.curPosition())};ye.skipSpace=function(){e:for(;this.pos<this.input.length;){var e=this.input.charCodeAt(this.pos);switch(e){case 32:case 160:++this.pos;break;case 13:this.input.charCodeAt(this.pos+1)===10&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break e}break;default:if(e>8&&e<14||e>=5760&&Ts.test(String.fromCharCode(e)))++this.pos;else break e}}};ye.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var s=this.type;this.type=e,this.value=t,this.updateContext(s)};ye.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&e===46&&t===46?(this.pos+=3,this.finishToken(x.ellipsis)):(++this.pos,this.finishToken(x.dot))};ye.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):e===61?this.finishOp(x.assign,2):this.finishOp(x.slash,1)};ye.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),s=1,a=e===42?x.star:x.modulo;return this.options.ecmaVersion>=7&&e===42&&t===42&&(++s,a=x.starstar,t=this.input.charCodeAt(this.pos+2)),t===61?this.finishOp(x.assign,s+1):this.finishOp(a,s)};ye.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);if(t===e){if(this.options.ecmaVersion>=12){var s=this.input.charCodeAt(this.pos+2);if(s===61)return this.finishOp(x.assign,3)}return this.finishOp(e===124?x.logicalOR:x.logicalAND,2)}return t===61?this.finishOp(x.assign,2):this.finishOp(e===124?x.bitwiseOR:x.bitwiseAND,1)};ye.readToken_caret=function(){var e=this.input.charCodeAt(this.pos+1);return e===61?this.finishOp(x.assign,2):this.finishOp(x.bitwiseXOR,1)};ye.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?t===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||Me.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(x.incDec,2):t===61?this.finishOp(x.assign,2):this.finishOp(x.plusMin,1)};ye.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),s=1;return t===e?(s=e===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+s)===61?this.finishOp(x.assign,s+1):this.finishOp(x.bitShift,s)):t===33&&e===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45?(this.skipLineComment(4),this.skipSpace(),this.nextToken()):(t===61&&(s=2),this.finishOp(x.relational,s))};ye.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return t===61?this.finishOp(x.equality,this.input.charCodeAt(this.pos+2)===61?3:2):e===61&&t===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(x.arrow)):this.finishOp(e===61?x.eq:x.prefix,1)};ye.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=11){var t=this.input.charCodeAt(this.pos+1);if(t===46){var s=this.input.charCodeAt(this.pos+2);if(s<48||s>57)return this.finishOp(x.questionDot,2)}if(t===63){if(e>=12){var a=this.input.charCodeAt(this.pos+2);if(a===61)return this.finishOp(x.assign,3)}return this.finishOp(x.coalesce,2)}}return this.finishOp(x.question,1)};ye.readToken_numberSign=function(){var e=this.options.ecmaVersion,t=35;if(e>=13&&(++this.pos,t=this.fullCharCodeAtPos(),Ze(t,!0)||t===92))return this.finishToken(x.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+ct(t)+"'")};ye.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(x.parenL);case 41:return++this.pos,this.finishToken(x.parenR);case 59:return++this.pos,this.finishToken(x.semi);case 44:return++this.pos,this.finishToken(x.comma);case 91:return++this.pos,this.finishToken(x.bracketL);case 93:return++this.pos,this.finishToken(x.bracketR);case 123:return++this.pos,this.finishToken(x.braceL);case 125:return++this.pos,this.finishToken(x.braceR);case 58:return++this.pos,this.finishToken(x.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(x.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(t===120||t===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(t===111||t===79)return this.readRadixNumber(8);if(t===98||t===66)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 63:return this.readToken_question();case 126:return this.finishOp(x.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+ct(e)+"'")};ye.finishOp=function(e,t){var s=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,s)};ye.readRegexp=function(){for(var e,t,s=this.pos;;){this.pos>=this.input.length&&this.raise(s,"Unterminated regular expression");var a=this.input.charAt(this.pos);if(Me.test(a)&&this.raise(s,"Unterminated regular expression"),e)e=!1;else{if(a==="[")t=!0;else if(a==="]"&&t)t=!1;else if(a==="/"&&!t)break;e=a==="\\"}++this.pos}var o=this.input.slice(s,this.pos);++this.pos;var c=this.pos,p=this.readWord1();this.containsEsc&&this.unexpected(c);var g=this.regexpState||(this.regexpState=new rt(this));g.reset(s,o,p),this.validateRegExpFlags(g),this.validateRegExpPattern(g);var b=null;try{b=new RegExp(o,p)}catch{}return this.finishToken(x.regexp,{pattern:o,flags:p,value:b})};ye.readInt=function(e,t,s){for(var a=this.options.ecmaVersion>=12&&t===void 0,o=s&&this.input.charCodeAt(this.pos)===48,c=this.pos,p=0,g=0,b=0,l=t??1/0;b<l;++b,++this.pos){var P=this.input.charCodeAt(this.pos),_=void 0;if(a&&P===95){o&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),g===95&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),b===0&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),g=P;continue}if(P>=97?_=P-97+10:P>=65?_=P-65+10:P>=48&&P<=57?_=P-48:_=1/0,_>=e)break;g=P,p=p*e+_}return a&&g===95&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===c||t!=null&&this.pos-c!==t?null:p};function Kc(e,t){return t?parseInt(e,8):parseFloat(e.replace(/_/g,""))}function Bn(e){return typeof BigInt!="function"?null:BigInt(e.replace(/_/g,""))}ye.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var s=this.readInt(e);return s==null&&this.raise(this.start+2,"Expected number in radix "+e),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(s=Bn(this.input.slice(t,this.pos)),++this.pos):Ze(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(x.num,s)};ye.readNumber=function(e){var t=this.pos;!e&&this.readInt(10,void 0,!0)===null&&this.raise(t,"Invalid number");var s=this.pos-t>=2&&this.input.charCodeAt(t)===48;s&&this.strict&&this.raise(t,"Invalid number");var a=this.input.charCodeAt(this.pos);if(!s&&!e&&this.options.ecmaVersion>=11&&a===110){var o=Bn(this.input.slice(t,this.pos));return++this.pos,Ze(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(x.num,o)}s&&/[89]/.test(this.input.slice(t,this.pos))&&(s=!1),a===46&&!s&&(++this.pos,this.readInt(10),a=this.input.charCodeAt(this.pos)),(a===69||a===101)&&!s&&(a=this.input.charCodeAt(++this.pos),(a===43||a===45)&&++this.pos,this.readInt(10)===null&&this.raise(t,"Invalid number")),Ze(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var c=Kc(this.input.slice(t,this.pos),s);return this.finishToken(x.num,c)};ye.readCodePoint=function(){var e=this.input.charCodeAt(this.pos),t;if(e===123){this.options.ecmaVersion<6&&this.unexpected();var s=++this.pos;t=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,t>1114111&&this.invalidStringToken(s,"Code point out of bounds")}else t=this.readHexChar(4);return t};ye.readString=function(e){for(var t="",s=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var a=this.input.charCodeAt(this.pos);if(a===e)break;a===92?(t+=this.input.slice(s,this.pos),t+=this.readEscapedChar(!1),s=this.pos):a===8232||a===8233?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(_t(a)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return t+=this.input.slice(s,this.pos++),this.finishToken(x.string,t)};var jn={};ye.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e===jn)this.readInvalidTemplateToken();else throw e}this.inTemplateElement=!1};ye.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw jn;this.raise(e,t)};ye.readTmplToken=function(){for(var e="",t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var s=this.input.charCodeAt(this.pos);if(s===96||s===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos===this.start&&(this.type===x.template||this.type===x.invalidTemplate)?s===36?(this.pos+=2,this.finishToken(x.dollarBraceL)):(++this.pos,this.finishToken(x.backQuote)):(e+=this.input.slice(t,this.pos),this.finishToken(x.template,e));if(s===92)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(_t(s)){switch(e+=this.input.slice(t,this.pos),++this.pos,s){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:e+=`
20
+ `),cooked:this.value},this.next(),s.tail=this.type===x.backQuote,this.finishNode(s,"TemplateElement")};pe.parseTemplate=function(e){e===void 0&&(e={});var t=e.isTagged;t===void 0&&(t=!1);var s=this.startNode();this.next(),s.expressions=[];var a=this.parseTemplateElement({isTagged:t});for(s.quasis=[a];!a.tail;)this.type===x.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(x.dollarBraceL),s.expressions.push(this.parseExpression()),this.expect(x.braceR),s.quasis.push(a=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(s,"TemplateLiteral")};pe.isAsyncProp=function(e){return!e.computed&&e.key.type==="Identifier"&&e.key.name==="async"&&(this.type===x.name||this.type===x.num||this.type===x.string||this.type===x.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===x.star)&&!Me.test(this.input.slice(this.lastTokEnd,this.start))};pe.parseObj=function(e,t){var s=this.startNode(),a=!0,o={};for(s.properties=[],this.next();!this.eat(x.braceR);){if(a)a=!1;else if(this.expect(x.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(x.braceR))break;var c=this.parseProperty(e,t);e||this.checkPropClash(c,o,t),s.properties.push(c)}return this.finishNode(s,e?"ObjectPattern":"ObjectExpression")};pe.parseProperty=function(e,t){var s=this.startNode(),a,o,c,p;if(this.options.ecmaVersion>=9&&this.eat(x.ellipsis))return e?(s.argument=this.parseIdent(!1),this.type===x.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(s,"RestElement")):(s.argument=this.parseMaybeAssign(!1,t),this.type===x.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(s,"SpreadElement"));this.options.ecmaVersion>=6&&(s.method=!1,s.shorthand=!1,(e||t)&&(c=this.start,p=this.startLoc),e||(a=this.eat(x.star)));var g=this.containsEsc;return this.parsePropertyName(s),!e&&!g&&this.options.ecmaVersion>=8&&!a&&this.isAsyncProp(s)?(o=!0,a=this.options.ecmaVersion>=9&&this.eat(x.star),this.parsePropertyName(s)):o=!1,this.parsePropertyValue(s,e,a,o,c,p,t,g),this.finishNode(s,"Property")};pe.parseGetterSetter=function(e){var t=e.key.name;this.parsePropertyName(e),e.value=this.parseMethod(!1),e.kind=t;var s=e.kind==="get"?0:1;if(e.value.params.length!==s){var a=e.value.start;e.kind==="get"?this.raiseRecoverable(a,"getter should have no params"):this.raiseRecoverable(a,"setter should have exactly one param")}else e.kind==="set"&&e.value.params[0].type==="RestElement"&&this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params")};pe.parsePropertyValue=function(e,t,s,a,o,c,p,g){(s||a)&&this.type===x.colon&&this.unexpected(),this.eat(x.colon)?(e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,p),e.kind="init"):this.options.ecmaVersion>=6&&this.type===x.parenL?(t&&this.unexpected(),e.method=!0,e.value=this.parseMethod(s,a),e.kind="init"):!t&&!g&&this.options.ecmaVersion>=5&&!e.computed&&e.key.type==="Identifier"&&(e.key.name==="get"||e.key.name==="set")&&this.type!==x.comma&&this.type!==x.braceR&&this.type!==x.eq?((s||a)&&this.unexpected(),this.parseGetterSetter(e)):this.options.ecmaVersion>=6&&!e.computed&&e.key.type==="Identifier"?((s||a)&&this.unexpected(),this.checkUnreserved(e.key),e.key.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=o),t?e.value=this.parseMaybeDefault(o,c,this.copyNode(e.key)):this.type===x.eq&&p?(p.shorthandAssign<0&&(p.shorthandAssign=this.start),e.value=this.parseMaybeDefault(o,c,this.copyNode(e.key))):e.value=this.copyNode(e.key),e.kind="init",e.shorthand=!0):this.unexpected()};pe.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(x.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(x.bracketR),e.key;e.computed=!1}return e.key=this.type===x.num||this.type===x.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")};pe.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)};pe.parseMethod=function(e,t,s){var a=this.startNode(),o=this.yieldPos,c=this.awaitPos,p=this.awaitIdentPos;return this.initFunction(a),this.options.ecmaVersion>=6&&(a.generator=e),this.options.ecmaVersion>=8&&(a.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Ls(t,a.generator)|Di|(s?mn:0)),this.expect(x.parenL),a.params=this.parseBindingList(x.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(a,!1,!0,!1),this.yieldPos=o,this.awaitPos=c,this.awaitIdentPos=p,this.finishNode(a,"FunctionExpression")};pe.parseArrowExpression=function(e,t,s,a){var o=this.yieldPos,c=this.awaitPos,p=this.awaitIdentPos;return this.enterScope(Ls(s,!1)|Ns),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!s),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0,!1,a),this.yieldPos=o,this.awaitPos=c,this.awaitIdentPos=p,this.finishNode(e,"ArrowFunctionExpression")};pe.parseFunctionBody=function(e,t,s,a){var o=t&&this.type!==x.braceL,c=this.strict,p=!1;if(o)e.body=this.parseMaybeAssign(a),e.expression=!0,this.checkParams(e,!1);else{var g=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);(!c||g)&&(p=this.strictDirective(this.end),p&&g&&this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list"));var b=this.labels;this.labels=[],p&&(this.strict=!0),this.checkParams(e,!c&&!p&&!t&&!s&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLValSimple(e.id,vn),e.body=this.parseBlock(!1,void 0,p&&!c),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=b}this.exitScope()};pe.isSimpleParamList=function(e){for(var t=0,s=e;t<s.length;t+=1){var a=s[t];if(a.type!=="Identifier")return!1}return!0};pe.checkParams=function(e,t){for(var s=Object.create(null),a=0,o=e.params;a<o.length;a+=1){var c=o[a];this.checkLValInnerPattern(c,Rs,t?null:s)}};pe.parseExprList=function(e,t,s,a){for(var o=[],c=!0;!this.eat(e);){if(c)c=!1;else if(this.expect(x.comma),t&&this.afterTrailingComma(e))break;var p=void 0;s&&this.type===x.comma?p=null:this.type===x.ellipsis?(p=this.parseSpread(a),a&&this.type===x.comma&&a.trailingComma<0&&(a.trailingComma=this.start)):p=this.parseMaybeAssign(!1,a),o.push(p)}return o};pe.checkUnreserved=function(e){var t=e.start,s=e.end,a=e.name;if(this.inGenerator&&a==="yield"&&this.raiseRecoverable(t,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&a==="await"&&this.raiseRecoverable(t,"Cannot use 'await' as identifier inside an async function"),!(this.currentThisScope().flags&Bi)&&a==="arguments"&&this.raiseRecoverable(t,"Cannot use 'arguments' in class field initializer"),this.inClassStaticBlock&&(a==="arguments"||a==="await")&&this.raise(t,"Cannot use "+a+" in class static initialization block"),this.keywords.test(a)&&this.raise(t,"Unexpected keyword '"+a+"'"),!(this.options.ecmaVersion<6&&this.input.slice(t,s).indexOf("\\")!==-1)){var o=this.strict?this.reservedWordsStrict:this.reservedWords;o.test(a)&&(!this.inAsync&&a==="await"&&this.raiseRecoverable(t,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(t,"The keyword '"+a+"' is reserved"))}};pe.parseIdent=function(e){var t=this.parseIdentNode();return this.next(!!e),this.finishNode(t,"Identifier"),e||(this.checkUnreserved(t),t.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=t.start)),t};pe.parseIdentNode=function(){var e=this.startNode();return this.type===x.name?e.name=this.value:this.type.keyword?(e.name=this.type.keyword,(e.name==="class"||e.name==="function")&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46)&&this.context.pop(),this.type=x.name):this.unexpected(),e};pe.parsePrivateIdent=function(){var e=this.startNode();return this.type===x.privateId?e.name=this.value:this.unexpected(),this.next(),this.finishNode(e,"PrivateIdentifier"),this.options.checkPrivateFields&&(this.privateNameStack.length===0?this.raise(e.start,"Private field '#"+e.name+"' must be declared in an enclosing class"):this.privateNameStack[this.privateNameStack.length-1].used.push(e)),e};pe.parseYield=function(e){this.yieldPos||(this.yieldPos=this.start);var t=this.startNode();return this.next(),this.type===x.semi||this.canInsertSemicolon()||this.type!==x.star&&!this.type.startsExpr?(t.delegate=!1,t.argument=null):(t.delegate=this.eat(x.star),t.argument=this.parseMaybeAssign(e)),this.finishNode(t,"YieldExpression")};pe.parseAwait=function(e){this.awaitPos||(this.awaitPos=this.start);var t=this.startNode();return this.next(),t.argument=this.parseMaybeUnary(null,!0,!1,e),this.finishNode(t,"AwaitExpression")};var Mi=Ae.prototype;Mi.raise=function(e,t){var s=Ps(this.input,e);t+=" ("+s.line+":"+s.column+")",this.sourceFile&&(t+=" in "+this.sourceFile);var a=new SyntaxError(t);throw a.pos=e,a.loc=s,a.raisedAt=this.pos,a};Mi.raiseRecoverable=Mi.raise;Mi.curPosition=function(){if(this.options.locations)return new Dt(this.curLine,this.pos-this.lineStart)};var vt=Ae.prototype,Tc=function(t){this.flags=t,this.var=[],this.lexical=[],this.functions=[]};vt.enterScope=function(e){this.scopeStack.push(new Tc(e))};vt.exitScope=function(){this.scopeStack.pop()};vt.treatFunctionsAsVarInScope=function(e){return e.flags&At||!this.inModule&&e.flags&Ct};vt.declareName=function(e,t,s){var a=!1;if(t===pt){var o=this.currentScope();a=o.lexical.indexOf(e)>-1||o.functions.indexOf(e)>-1||o.var.indexOf(e)>-1,o.lexical.push(e),this.inModule&&o.flags&Ct&&delete this.undefinedExports[e]}else if(t===gn){var c=this.currentScope();c.lexical.push(e)}else if(t===yn){var p=this.currentScope();this.treatFunctionsAsVar?a=p.lexical.indexOf(e)>-1:a=p.lexical.indexOf(e)>-1||p.var.indexOf(e)>-1,p.functions.push(e)}else for(var g=this.scopeStack.length-1;g>=0;--g){var b=this.scopeStack[g];if(b.lexical.indexOf(e)>-1&&!(b.flags&dn&&b.lexical[0]===e)||!this.treatFunctionsAsVarInScope(b)&&b.functions.indexOf(e)>-1){a=!0;break}if(b.var.push(e),this.inModule&&b.flags&Ct&&delete this.undefinedExports[e],b.flags&Bi)break}a&&this.raiseRecoverable(s,"Identifier '"+e+"' has already been declared")};vt.checkLocalExport=function(e){this.scopeStack[0].lexical.indexOf(e.name)===-1&&this.scopeStack[0].var.indexOf(e.name)===-1&&(this.undefinedExports[e.name]=e)};vt.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]};vt.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&(Bi|si|Et))return t}};vt.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&(Bi|si|Et)&&!(t.flags&Ns))return t}};var ri=function(t,s,a){this.type="",this.start=s,this.end=0,t.options.locations&&(this.loc=new ii(t,a)),t.options.directSourceFile&&(this.sourceFile=t.options.directSourceFile),t.options.ranges&&(this.range=[s,0])},ai=Ae.prototype;ai.startNode=function(){return new ri(this,this.start,this.startLoc)};ai.startNodeAt=function(e,t){return new ri(this,e,t)};function Cn(e,t,s,a){return e.type=t,e.end=s,this.options.locations&&(e.loc.end=a),this.options.ranges&&(e.range[1]=s),e}ai.finishNode=function(e,t){return Cn.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)};ai.finishNodeAt=function(e,t,s,a){return Cn.call(this,e,t,s,a)};ai.copyNode=function(e){var t=new ri(this,e.start,this.startLoc);for(var s in e)t[s]=e[s];return t};var Pc="Berf Beria_Erfe Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sidetic Sidt Sunu Sunuwar Tai_Yo Tayo Todhri Todr Tolong_Siki Tols Tulu_Tigalari Tutg Unknown Zzzz",wn="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",_n=wn+" Extended_Pictographic",An=_n,En=An+" EBase EComp EMod EPres ExtPict",kn=En,Ic=kn,Nc={9:wn,10:_n,11:An,12:En,13:kn,14:Ic},Lc="Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji",Rc={9:"",10:"",11:"",12:"",13:"",14:Lc},an="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",Tn="Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",Pn=Tn+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",In=Pn+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",Nn=In+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",Ln=Nn+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",Oc=Ln+" "+Pc,Mc={9:Tn,10:Pn,11:In,12:Nn,13:Ln,14:Oc},Rn={};function Vc(e){var t=Rn[e]={binary:gt(Nc[e]+" "+an),binaryOfStrings:gt(Rc[e]),nonBinary:{General_Category:gt(an),Script:gt(Mc[e])}};t.nonBinary.Script_Extensions=t.nonBinary.Script,t.nonBinary.gc=t.nonBinary.General_Category,t.nonBinary.sc=t.nonBinary.Script,t.nonBinary.scx=t.nonBinary.Script_Extensions}for(Ni=0,_s=[9,10,11,12,13,14];Ni<_s.length;Ni+=1)nn=_s[Ni],Vc(nn);var nn,Ni,_s,te=Ae.prototype,Vi=function(t,s){this.parent=t,this.base=s||this};Vi.prototype.separatedFrom=function(t){for(var s=this;s;s=s.parent)for(var a=t;a;a=a.parent)if(s.base===a.base&&s!==a)return!0;return!1};Vi.prototype.sibling=function(){return new Vi(this.parent,this.base)};var rt=function(t){this.parser=t,this.validFlags="gim"+(t.options.ecmaVersion>=6?"uy":"")+(t.options.ecmaVersion>=9?"s":"")+(t.options.ecmaVersion>=13?"d":"")+(t.options.ecmaVersion>=15?"v":""),this.unicodeProperties=Rn[t.options.ecmaVersion>=14?14:t.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchV=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=Object.create(null),this.backReferenceNames=[],this.branchID=null};rt.prototype.reset=function(t,s,a){var o=a.indexOf("v")!==-1,c=a.indexOf("u")!==-1;this.start=t|0,this.source=s+"",this.flags=a,o&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=c&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=c&&this.parser.options.ecmaVersion>=9)};rt.prototype.raise=function(t){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+t)};rt.prototype.at=function(t,s){s===void 0&&(s=!1);var a=this.source,o=a.length;if(t>=o)return-1;var c=a.charCodeAt(t);if(!(s||this.switchU)||c<=55295||c>=57344||t+1>=o)return c;var p=a.charCodeAt(t+1);return p>=56320&&p<=57343?(c<<10)+p-56613888:c};rt.prototype.nextIndex=function(t,s){s===void 0&&(s=!1);var a=this.source,o=a.length;if(t>=o)return o;var c=a.charCodeAt(t),p;return!(s||this.switchU)||c<=55295||c>=57344||t+1>=o||(p=a.charCodeAt(t+1))<56320||p>57343?t+1:t+2};rt.prototype.current=function(t){return t===void 0&&(t=!1),this.at(this.pos,t)};rt.prototype.lookahead=function(t){return t===void 0&&(t=!1),this.at(this.nextIndex(this.pos,t),t)};rt.prototype.advance=function(t){t===void 0&&(t=!1),this.pos=this.nextIndex(this.pos,t)};rt.prototype.eat=function(t,s){return s===void 0&&(s=!1),this.current(s)===t?(this.advance(s),!0):!1};rt.prototype.eatChars=function(t,s){s===void 0&&(s=!1);for(var a=this.pos,o=0,c=t;o<c.length;o+=1){var p=c[o],g=this.at(a,s);if(g===-1||g!==p)return!1;a=this.nextIndex(a,s)}return this.pos=a,!0};te.validateRegExpFlags=function(e){for(var t=e.validFlags,s=e.flags,a=!1,o=!1,c=0;c<s.length;c++){var p=s.charAt(c);t.indexOf(p)===-1&&this.raise(e.start,"Invalid regular expression flag"),s.indexOf(p,c+1)>-1&&this.raise(e.start,"Duplicate regular expression flag"),p==="u"&&(a=!0),p==="v"&&(o=!0)}this.options.ecmaVersion>=15&&a&&o&&this.raise(e.start,"Invalid regular expression flag")};function Dc(e){for(var t in e)return!0;return!1}te.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&Dc(e.groupNames)&&(e.switchN=!0,this.regexp_pattern(e))};te.regexp_pattern=function(e){e.pos=0,e.lastIntValue=0,e.lastStringValue="",e.lastAssertionIsQuantifiable=!1,e.numCapturingParens=0,e.maxBackReference=0,e.groupNames=Object.create(null),e.backReferenceNames.length=0,e.branchID=null,this.regexp_disjunction(e),e.pos!==e.source.length&&(e.eat(41)&&e.raise("Unmatched ')'"),(e.eat(93)||e.eat(125))&&e.raise("Lone quantifier brackets")),e.maxBackReference>e.numCapturingParens&&e.raise("Invalid escape");for(var t=0,s=e.backReferenceNames;t<s.length;t+=1){var a=s[t];e.groupNames[a]||e.raise("Invalid named capture referenced")}};te.regexp_disjunction=function(e){var t=this.options.ecmaVersion>=16;for(t&&(e.branchID=new Vi(e.branchID,null)),this.regexp_alternative(e);e.eat(124);)t&&(e.branchID=e.branchID.sibling()),this.regexp_alternative(e);t&&(e.branchID=e.branchID.parent),this.regexp_eatQuantifier(e,!0)&&e.raise("Nothing to repeat"),e.eat(123)&&e.raise("Lone quantifier brackets")};te.regexp_alternative=function(e){for(;e.pos<e.source.length&&this.regexp_eatTerm(e););};te.regexp_eatTerm=function(e){return this.regexp_eatAssertion(e)?(e.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(e)&&e.switchU&&e.raise("Invalid quantifier"),!0):(e.switchU?this.regexp_eatAtom(e):this.regexp_eatExtendedAtom(e))?(this.regexp_eatQuantifier(e),!0):!1};te.regexp_eatAssertion=function(e){var t=e.pos;if(e.lastAssertionIsQuantifiable=!1,e.eat(94)||e.eat(36))return!0;if(e.eat(92)){if(e.eat(66)||e.eat(98))return!0;e.pos=t}if(e.eat(40)&&e.eat(63)){var s=!1;if(this.options.ecmaVersion>=9&&(s=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise("Unterminated group"),e.lastAssertionIsQuantifiable=!s,!0}return e.pos=t,!1};te.regexp_eatQuantifier=function(e,t){return t===void 0&&(t=!1),this.regexp_eatQuantifierPrefix(e,t)?(e.eat(63),!0):!1};te.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)};te.regexp_eatBracedQuantifier=function(e,t){var s=e.pos;if(e.eat(123)){var a=0,o=-1;if(this.regexp_eatDecimalDigits(e)&&(a=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(o=e.lastIntValue),e.eat(125)))return o!==-1&&o<a&&!t&&e.raise("numbers out of order in {} quantifier"),!0;e.switchU&&!t&&e.raise("Incomplete quantifier"),e.pos=s}return!1};te.regexp_eatAtom=function(e){return this.regexp_eatPatternCharacters(e)||e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)};te.regexp_eatReverseSolidusAtomEscape=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatAtomEscape(e))return!0;e.pos=t}return!1};te.regexp_eatUncapturingGroup=function(e){var t=e.pos;if(e.eat(40)){if(e.eat(63)){if(this.options.ecmaVersion>=16){var s=this.regexp_eatModifiers(e),a=e.eat(45);if(s||a){for(var o=0;o<s.length;o++){var c=s.charAt(o);s.indexOf(c,o+1)>-1&&e.raise("Duplicate regular expression modifiers")}if(a){var p=this.regexp_eatModifiers(e);!s&&!p&&e.current()===58&&e.raise("Invalid regular expression modifiers");for(var g=0;g<p.length;g++){var b=p.charAt(g);(p.indexOf(b,g+1)>-1||s.indexOf(b)>-1)&&e.raise("Duplicate regular expression modifiers")}}}}if(e.eat(58)){if(this.regexp_disjunction(e),e.eat(41))return!0;e.raise("Unterminated group")}}e.pos=t}return!1};te.regexp_eatCapturingGroup=function(e){if(e.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(e):e.current()===63&&e.raise("Invalid group"),this.regexp_disjunction(e),e.eat(41))return e.numCapturingParens+=1,!0;e.raise("Unterminated group")}return!1};te.regexp_eatModifiers=function(e){for(var t="",s=0;(s=e.current())!==-1&&Bc(s);)t+=ct(s),e.advance();return t};function Bc(e){return e===105||e===109||e===115}te.regexp_eatExtendedAtom=function(e){return e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)||this.regexp_eatInvalidBracedQuantifier(e)||this.regexp_eatExtendedPatternCharacter(e)};te.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1};te.regexp_eatSyntaxCharacter=function(e){var t=e.current();return On(t)?(e.lastIntValue=t,e.advance(),!0):!1};function On(e){return e===36||e>=40&&e<=43||e===46||e===63||e>=91&&e<=94||e>=123&&e<=125}te.regexp_eatPatternCharacters=function(e){for(var t=e.pos,s=0;(s=e.current())!==-1&&!On(s);)e.advance();return e.pos!==t};te.regexp_eatExtendedPatternCharacter=function(e){var t=e.current();return t!==-1&&t!==36&&!(t>=40&&t<=43)&&t!==46&&t!==63&&t!==91&&t!==94&&t!==124?(e.advance(),!0):!1};te.regexp_groupSpecifier=function(e){if(e.eat(63)){this.regexp_eatGroupName(e)||e.raise("Invalid group");var t=this.options.ecmaVersion>=16,s=e.groupNames[e.lastStringValue];if(s)if(t)for(var a=0,o=s;a<o.length;a+=1){var c=o[a];c.separatedFrom(e.branchID)||e.raise("Duplicate capture group name")}else e.raise("Duplicate capture group name");t?(s||(e.groupNames[e.lastStringValue]=[])).push(e.branchID):e.groupNames[e.lastStringValue]=!0}};te.regexp_eatGroupName=function(e){if(e.lastStringValue="",e.eat(60)){if(this.regexp_eatRegExpIdentifierName(e)&&e.eat(62))return!0;e.raise("Invalid capture group name")}return!1};te.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue="",this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=ct(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=ct(e.lastIntValue);return!0}return!1};te.regexp_eatRegExpIdentifierStart=function(e){var t=e.pos,s=this.options.ecmaVersion>=11,a=e.current(s);return e.advance(s),a===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,s)&&(a=e.lastIntValue),Fc(a)?(e.lastIntValue=a,!0):(e.pos=t,!1)};function Fc(e){return Ze(e,!0)||e===36||e===95}te.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos,s=this.options.ecmaVersion>=11,a=e.current(s);return e.advance(s),a===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,s)&&(a=e.lastIntValue),jc(a)?(e.lastIntValue=a,!0):(e.pos=t,!1)};function jc(e){return ht(e,!0)||e===36||e===95||e===8204||e===8205}te.regexp_eatAtomEscape=function(e){return this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e)?!0:(e.switchU&&(e.current()===99&&e.raise("Invalid unicode escape"),e.raise("Invalid escape")),!1)};te.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var s=e.lastIntValue;if(e.switchU)return s>e.maxBackReference&&(e.maxBackReference=s),!0;if(s<=e.numCapturingParens)return!0;e.pos=t}return!1};te.regexp_eatKGroupName=function(e){if(e.eat(107)){if(this.regexp_eatGroupName(e))return e.backReferenceNames.push(e.lastStringValue),!0;e.raise("Invalid named reference")}return!1};te.regexp_eatCharacterEscape=function(e){return this.regexp_eatControlEscape(e)||this.regexp_eatCControlLetter(e)||this.regexp_eatZero(e)||this.regexp_eatHexEscapeSequence(e)||this.regexp_eatRegExpUnicodeEscapeSequence(e,!1)||!e.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e)||this.regexp_eatIdentityEscape(e)};te.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1};te.regexp_eatZero=function(e){return e.current()===48&&!ji(e.lookahead())?(e.lastIntValue=0,e.advance(),!0):!1};te.regexp_eatControlEscape=function(e){var t=e.current();return t===116?(e.lastIntValue=9,e.advance(),!0):t===110?(e.lastIntValue=10,e.advance(),!0):t===118?(e.lastIntValue=11,e.advance(),!0):t===102?(e.lastIntValue=12,e.advance(),!0):t===114?(e.lastIntValue=13,e.advance(),!0):!1};te.regexp_eatControlLetter=function(e){var t=e.current();return Mn(t)?(e.lastIntValue=t%32,e.advance(),!0):!1};function Mn(e){return e>=65&&e<=90||e>=97&&e<=122}te.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){t===void 0&&(t=!1);var s=e.pos,a=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var o=e.lastIntValue;if(a&&o>=55296&&o<=56319){var c=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var p=e.lastIntValue;if(p>=56320&&p<=57343)return e.lastIntValue=(o-55296)*1024+(p-56320)+65536,!0}e.pos=c,e.lastIntValue=o}return!0}if(a&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&Uc(e.lastIntValue))return!0;a&&e.raise("Invalid unicode escape"),e.pos=s}return!1};function Uc(e){return e>=0&&e<=1114111}te.regexp_eatIdentityEscape=function(e){if(e.switchU)return this.regexp_eatSyntaxCharacter(e)?!0:e.eat(47)?(e.lastIntValue=47,!0):!1;var t=e.current();return t!==99&&(!e.switchN||t!==107)?(e.lastIntValue=t,e.advance(),!0):!1};te.regexp_eatDecimalEscape=function(e){e.lastIntValue=0;var t=e.current();if(t>=49&&t<=57){do e.lastIntValue=10*e.lastIntValue+(t-48),e.advance();while((t=e.current())>=48&&t<=57);return!0}return!1};var Vn=0,lt=1,Je=2;te.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(Hc(t))return e.lastIntValue=-1,e.advance(),lt;var s=!1;if(e.switchU&&this.options.ecmaVersion>=9&&((s=t===80)||t===112)){e.lastIntValue=-1,e.advance();var a;if(e.eat(123)&&(a=this.regexp_eatUnicodePropertyValueExpression(e))&&e.eat(125))return s&&a===Je&&e.raise("Invalid property name"),a;e.raise("Invalid property name")}return Vn};function Hc(e){return e===100||e===68||e===115||e===83||e===119||e===87}te.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var s=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var a=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,s,a),lt}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var o=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,o)}return Vn};te.regexp_validateUnicodePropertyNameAndValue=function(e,t,s){Bt(e.unicodeProperties.nonBinary,t)||e.raise("Invalid property name"),e.unicodeProperties.nonBinary[t].test(s)||e.raise("Invalid property value")};te.regexp_validateUnicodePropertyNameOrValue=function(e,t){if(e.unicodeProperties.binary.test(t))return lt;if(e.switchV&&e.unicodeProperties.binaryOfStrings.test(t))return Je;e.raise("Invalid property name")};te.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue="";Dn(t=e.current());)e.lastStringValue+=ct(t),e.advance();return e.lastStringValue!==""};function Dn(e){return Mn(e)||e===95}te.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue="";qc(t=e.current());)e.lastStringValue+=ct(t),e.advance();return e.lastStringValue!==""};function qc(e){return Dn(e)||ji(e)}te.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)};te.regexp_eatCharacterClass=function(e){if(e.eat(91)){var t=e.eat(94),s=this.regexp_classContents(e);return e.eat(93)||e.raise("Unterminated character class"),t&&s===Je&&e.raise("Negated character class may contain strings"),!0}return!1};te.regexp_classContents=function(e){return e.current()===93?lt:e.switchV?this.regexp_classSetExpression(e):(this.regexp_nonEmptyClassRanges(e),lt)};te.regexp_nonEmptyClassRanges=function(e){for(;this.regexp_eatClassAtom(e);){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var s=e.lastIntValue;e.switchU&&(t===-1||s===-1)&&e.raise("Invalid character class"),t!==-1&&s!==-1&&t>s&&e.raise("Range out of order in character class")}}};te.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var s=e.current();(s===99||jn(s))&&e.raise("Invalid class escape"),e.raise("Invalid escape")}e.pos=t}var a=e.current();return a!==93?(e.lastIntValue=a,e.advance(),!0):!1};te.regexp_eatClassEscape=function(e){var t=e.pos;if(e.eat(98))return e.lastIntValue=8,!0;if(e.switchU&&e.eat(45))return e.lastIntValue=45,!0;if(!e.switchU&&e.eat(99)){if(this.regexp_eatClassControlLetter(e))return!0;e.pos=t}return this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)};te.regexp_classSetExpression=function(e){var t=lt,s;if(!this.regexp_eatClassSetRange(e))if(s=this.regexp_eatClassSetOperand(e)){s===Je&&(t=Je);for(var a=e.pos;e.eatChars([38,38]);){if(e.current()!==38&&(s=this.regexp_eatClassSetOperand(e))){s!==Je&&(t=lt);continue}e.raise("Invalid character in character class")}if(a!==e.pos)return t;for(;e.eatChars([45,45]);)this.regexp_eatClassSetOperand(e)||e.raise("Invalid character in character class");if(a!==e.pos)return t}else e.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(e)){if(s=this.regexp_eatClassSetOperand(e),!s)return t;s===Je&&(t=Je)}};te.regexp_eatClassSetRange=function(e){var t=e.pos;if(this.regexp_eatClassSetCharacter(e)){var s=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassSetCharacter(e)){var a=e.lastIntValue;return s!==-1&&a!==-1&&s>a&&e.raise("Range out of order in character class"),!0}e.pos=t}return!1};te.regexp_eatClassSetOperand=function(e){return this.regexp_eatClassSetCharacter(e)?lt:this.regexp_eatClassStringDisjunction(e)||this.regexp_eatNestedClass(e)};te.regexp_eatNestedClass=function(e){var t=e.pos;if(e.eat(91)){var s=e.eat(94),a=this.regexp_classContents(e);if(e.eat(93))return s&&a===Je&&e.raise("Negated character class may contain strings"),a;e.pos=t}if(e.eat(92)){var o=this.regexp_eatCharacterClassEscape(e);if(o)return o;e.pos=t}return null};te.regexp_eatClassStringDisjunction=function(e){var t=e.pos;if(e.eatChars([92,113])){if(e.eat(123)){var s=this.regexp_classStringDisjunctionContents(e);if(e.eat(125))return s}else e.raise("Invalid escape");e.pos=t}return null};te.regexp_classStringDisjunctionContents=function(e){for(var t=this.regexp_classString(e);e.eat(124);)this.regexp_classString(e)===Je&&(t=Je);return t};te.regexp_classString=function(e){for(var t=0;this.regexp_eatClassSetCharacter(e);)t++;return t===1?lt:Je};te.regexp_eatClassSetCharacter=function(e){var t=e.pos;if(e.eat(92))return this.regexp_eatCharacterEscape(e)||this.regexp_eatClassSetReservedPunctuator(e)?!0:e.eat(98)?(e.lastIntValue=8,!0):(e.pos=t,!1);var s=e.current();return s<0||s===e.lookahead()&&Wc(s)||Gc(s)?!1:(e.advance(),e.lastIntValue=s,!0)};function Wc(e){return e===33||e>=35&&e<=38||e>=42&&e<=44||e===46||e>=58&&e<=64||e===94||e===96||e===126}function Gc(e){return e===40||e===41||e===45||e===47||e>=91&&e<=93||e>=123&&e<=125}te.regexp_eatClassSetReservedPunctuator=function(e){var t=e.current();return $c(t)?(e.lastIntValue=t,e.advance(),!0):!1};function $c(e){return e===33||e===35||e===37||e===38||e===44||e===45||e>=58&&e<=62||e===64||e===96||e===126}te.regexp_eatClassControlLetter=function(e){var t=e.current();return ji(t)||t===95?(e.lastIntValue=t%32,e.advance(),!0):!1};te.regexp_eatHexEscapeSequence=function(e){var t=e.pos;if(e.eat(120)){if(this.regexp_eatFixedHexDigits(e,2))return!0;e.switchU&&e.raise("Invalid escape"),e.pos=t}return!1};te.regexp_eatDecimalDigits=function(e){var t=e.pos,s=0;for(e.lastIntValue=0;ji(s=e.current());)e.lastIntValue=10*e.lastIntValue+(s-48),e.advance();return e.pos!==t};function ji(e){return e>=48&&e<=57}te.regexp_eatHexDigits=function(e){var t=e.pos,s=0;for(e.lastIntValue=0;Bn(s=e.current());)e.lastIntValue=16*e.lastIntValue+Fn(s),e.advance();return e.pos!==t};function Bn(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function Fn(e){return e>=65&&e<=70?10+(e-65):e>=97&&e<=102?10+(e-97):e-48}te.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var s=e.lastIntValue;t<=3&&this.regexp_eatOctalDigit(e)?e.lastIntValue=t*64+s*8+e.lastIntValue:e.lastIntValue=t*8+s}else e.lastIntValue=t;return!0}return!1};te.regexp_eatOctalDigit=function(e){var t=e.current();return jn(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)};function jn(e){return e>=48&&e<=55}te.regexp_eatFixedHexDigits=function(e,t){var s=e.pos;e.lastIntValue=0;for(var a=0;a<t;++a){var o=e.current();if(!Bn(o))return e.pos=s,!1;e.lastIntValue=16*e.lastIntValue+Fn(o),e.advance()}return!0};var Ui=function(t){this.type=t.type,this.value=t.value,this.start=t.start,this.end=t.end,t.options.locations&&(this.loc=new ii(t,t.startLoc,t.endLoc)),t.options.ranges&&(this.range=[t.start,t.end])},ye=Ae.prototype;ye.next=function(e){!e&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new Ui(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()};ye.getToken=function(){return this.next(),new Ui(this)};typeof Symbol<"u"&&(ye[Symbol.iterator]=function(){var e=this;return{next:function(){var t=e.getToken();return{done:t.type===x.eof,value:t}}}});ye.nextToken=function(){var e=this.curContext();if((!e||!e.preserveSpace)&&this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length)return this.finishToken(x.eof);if(e.override)return e.override(this);this.readToken(this.fullCharCodeAtPos())};ye.readToken=function(e){return Ze(e,this.options.ecmaVersion>=6)||e===92?this.readWord():this.getTokenFromCode(e)};ye.fullCharCodeAt=function(e){var t=this.input.charCodeAt(e);if(t<=55295||t>=56320)return t;var s=this.input.charCodeAt(e+1);return s<=56319||s>=57344?t:(t<<10)+s-56613888};ye.fullCharCodeAtPos=function(){return this.fullCharCodeAt(this.pos)};ye.skipBlockComment=function(){var e=this.options.onComment&&this.curPosition(),t=this.pos,s=this.input.indexOf("*/",this.pos+=2);if(s===-1&&this.raise(this.pos-2,"Unterminated comment"),this.pos=s+2,this.options.locations)for(var a=void 0,o=t;(a=ln(this.input,o,this.pos))>-1;)++this.curLine,o=this.lineStart=a;this.options.onComment&&this.options.onComment(!0,this.input.slice(t+2,s),t,this.pos,e,this.curPosition())};ye.skipLineComment=function(e){for(var t=this.pos,s=this.options.onComment&&this.curPosition(),a=this.input.charCodeAt(this.pos+=e);this.pos<this.input.length&&!_t(a);)a=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(t+e,this.pos),t,this.pos,s,this.curPosition())};ye.skipSpace=function(){e:for(;this.pos<this.input.length;){var e=this.input.charCodeAt(this.pos);switch(e){case 32:case 160:++this.pos;break;case 13:this.input.charCodeAt(this.pos+1)===10&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break e}break;default:if(e>8&&e<14||e>=5760&&Ts.test(String.fromCharCode(e)))++this.pos;else break e}}};ye.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var s=this.type;this.type=e,this.value=t,this.updateContext(s)};ye.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&e===46&&t===46?(this.pos+=3,this.finishToken(x.ellipsis)):(++this.pos,this.finishToken(x.dot))};ye.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):e===61?this.finishOp(x.assign,2):this.finishOp(x.slash,1)};ye.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),s=1,a=e===42?x.star:x.modulo;return this.options.ecmaVersion>=7&&e===42&&t===42&&(++s,a=x.starstar,t=this.input.charCodeAt(this.pos+2)),t===61?this.finishOp(x.assign,s+1):this.finishOp(a,s)};ye.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);if(t===e){if(this.options.ecmaVersion>=12){var s=this.input.charCodeAt(this.pos+2);if(s===61)return this.finishOp(x.assign,3)}return this.finishOp(e===124?x.logicalOR:x.logicalAND,2)}return t===61?this.finishOp(x.assign,2):this.finishOp(e===124?x.bitwiseOR:x.bitwiseAND,1)};ye.readToken_caret=function(){var e=this.input.charCodeAt(this.pos+1);return e===61?this.finishOp(x.assign,2):this.finishOp(x.bitwiseXOR,1)};ye.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?t===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||Me.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(x.incDec,2):t===61?this.finishOp(x.assign,2):this.finishOp(x.plusMin,1)};ye.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),s=1;return t===e?(s=e===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+s)===61?this.finishOp(x.assign,s+1):this.finishOp(x.bitShift,s)):t===33&&e===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45?(this.skipLineComment(4),this.skipSpace(),this.nextToken()):(t===61&&(s=2),this.finishOp(x.relational,s))};ye.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return t===61?this.finishOp(x.equality,this.input.charCodeAt(this.pos+2)===61?3:2):e===61&&t===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(x.arrow)):this.finishOp(e===61?x.eq:x.prefix,1)};ye.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=11){var t=this.input.charCodeAt(this.pos+1);if(t===46){var s=this.input.charCodeAt(this.pos+2);if(s<48||s>57)return this.finishOp(x.questionDot,2)}if(t===63){if(e>=12){var a=this.input.charCodeAt(this.pos+2);if(a===61)return this.finishOp(x.assign,3)}return this.finishOp(x.coalesce,2)}}return this.finishOp(x.question,1)};ye.readToken_numberSign=function(){var e=this.options.ecmaVersion,t=35;if(e>=13&&(++this.pos,t=this.fullCharCodeAtPos(),Ze(t,!0)||t===92))return this.finishToken(x.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+ct(t)+"'")};ye.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(x.parenL);case 41:return++this.pos,this.finishToken(x.parenR);case 59:return++this.pos,this.finishToken(x.semi);case 44:return++this.pos,this.finishToken(x.comma);case 91:return++this.pos,this.finishToken(x.bracketL);case 93:return++this.pos,this.finishToken(x.bracketR);case 123:return++this.pos,this.finishToken(x.braceL);case 125:return++this.pos,this.finishToken(x.braceR);case 58:return++this.pos,this.finishToken(x.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(x.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(t===120||t===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(t===111||t===79)return this.readRadixNumber(8);if(t===98||t===66)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 63:return this.readToken_question();case 126:return this.finishOp(x.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+ct(e)+"'")};ye.finishOp=function(e,t){var s=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,s)};ye.readRegexp=function(){for(var e,t,s=this.pos;;){this.pos>=this.input.length&&this.raise(s,"Unterminated regular expression");var a=this.input.charAt(this.pos);if(Me.test(a)&&this.raise(s,"Unterminated regular expression"),e)e=!1;else{if(a==="[")t=!0;else if(a==="]"&&t)t=!1;else if(a==="/"&&!t)break;e=a==="\\"}++this.pos}var o=this.input.slice(s,this.pos);++this.pos;var c=this.pos,p=this.readWord1();this.containsEsc&&this.unexpected(c);var g=this.regexpState||(this.regexpState=new rt(this));g.reset(s,o,p),this.validateRegExpFlags(g),this.validateRegExpPattern(g);var b=null;try{b=new RegExp(o,p)}catch{}return this.finishToken(x.regexp,{pattern:o,flags:p,value:b})};ye.readInt=function(e,t,s){for(var a=this.options.ecmaVersion>=12&&t===void 0,o=s&&this.input.charCodeAt(this.pos)===48,c=this.pos,p=0,g=0,b=0,l=t??1/0;b<l;++b,++this.pos){var _=this.input.charCodeAt(this.pos),E=void 0;if(a&&_===95){o&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),g===95&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),b===0&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),g=_;continue}if(_>=97?E=_-97+10:_>=65?E=_-65+10:_>=48&&_<=57?E=_-48:E=1/0,E>=e)break;g=_,p=p*e+E}return a&&g===95&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===c||t!=null&&this.pos-c!==t?null:p};function zc(e,t){return t?parseInt(e,8):parseFloat(e.replace(/_/g,""))}function Un(e){return typeof BigInt!="function"?null:BigInt(e.replace(/_/g,""))}ye.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var s=this.readInt(e);return s==null&&this.raise(this.start+2,"Expected number in radix "+e),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(s=Un(this.input.slice(t,this.pos)),++this.pos):Ze(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(x.num,s)};ye.readNumber=function(e){var t=this.pos;!e&&this.readInt(10,void 0,!0)===null&&this.raise(t,"Invalid number");var s=this.pos-t>=2&&this.input.charCodeAt(t)===48;s&&this.strict&&this.raise(t,"Invalid number");var a=this.input.charCodeAt(this.pos);if(!s&&!e&&this.options.ecmaVersion>=11&&a===110){var o=Un(this.input.slice(t,this.pos));return++this.pos,Ze(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(x.num,o)}s&&/[89]/.test(this.input.slice(t,this.pos))&&(s=!1),a===46&&!s&&(++this.pos,this.readInt(10),a=this.input.charCodeAt(this.pos)),(a===69||a===101)&&!s&&(a=this.input.charCodeAt(++this.pos),(a===43||a===45)&&++this.pos,this.readInt(10)===null&&this.raise(t,"Invalid number")),Ze(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var c=zc(this.input.slice(t,this.pos),s);return this.finishToken(x.num,c)};ye.readCodePoint=function(){var e=this.input.charCodeAt(this.pos),t;if(e===123){this.options.ecmaVersion<6&&this.unexpected();var s=++this.pos;t=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,t>1114111&&this.invalidStringToken(s,"Code point out of bounds")}else t=this.readHexChar(4);return t};ye.readString=function(e){for(var t="",s=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var a=this.input.charCodeAt(this.pos);if(a===e)break;a===92?(t+=this.input.slice(s,this.pos),t+=this.readEscapedChar(!1),s=this.pos):a===8232||a===8233?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(_t(a)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return t+=this.input.slice(s,this.pos++),this.finishToken(x.string,t)};var Hn={};ye.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e===Hn)this.readInvalidTemplateToken();else throw e}this.inTemplateElement=!1};ye.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw Hn;this.raise(e,t)};ye.readTmplToken=function(){for(var e="",t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var s=this.input.charCodeAt(this.pos);if(s===96||s===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos===this.start&&(this.type===x.template||this.type===x.invalidTemplate)?s===36?(this.pos+=2,this.finishToken(x.dollarBraceL)):(++this.pos,this.finishToken(x.backQuote)):(e+=this.input.slice(t,this.pos),this.finishToken(x.template,e));if(s===92)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(_t(s)){switch(e+=this.input.slice(t,this.pos),++this.pos,s){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:e+=`
21
21
  `;break;default:e+=String.fromCharCode(s);break}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else++this.pos}};ye.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if(this.input[this.pos+1]!=="{")break;case"`":return this.finishToken(x.invalidTemplate,this.input.slice(this.start,this.pos));case"\r":this.input[this.pos+1]===`
22
22
  `&&++this.pos;case`
23
23
  `:case"\u2028":case"\u2029":++this.curLine,this.lineStart=this.pos+1;break}this.raise(this.start,"Unterminated template")};ye.readEscapedChar=function(e){var t=this.input.charCodeAt(++this.pos);switch(++this.pos,t){case 110:return`
24
- `;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return ct(this.readCodePoint());case 116:return" ";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,"Invalid escape sequence"),e){var s=this.pos-1;this.invalidStringToken(s,"Invalid escape sequence in template string")}default:if(t>=48&&t<=55){var a=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],o=parseInt(a,8);return o>255&&(a=a.slice(0,-1),o=parseInt(a,8)),this.pos+=a.length-1,t=this.input.charCodeAt(this.pos),(a!=="0"||t===56||t===57)&&(this.strict||e)&&this.invalidStringToken(this.pos-1-a.length,e?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(o)}return _t(t)?(this.options.locations&&(this.lineStart=this.pos,++this.curLine),""):String.fromCharCode(t)}};ye.readHexChar=function(e){var t=this.pos,s=this.readInt(16,e);return s===null&&this.invalidStringToken(t,"Bad character escape sequence"),s};ye.readWord1=function(){this.containsEsc=!1;for(var e="",t=!0,s=this.pos,a=this.options.ecmaVersion>=6;this.pos<this.input.length;){var o=this.fullCharCodeAtPos();if(ht(o,a))this.pos+=o<=65535?1:2;else if(o===92){this.containsEsc=!0,e+=this.input.slice(s,this.pos);var c=this.pos;this.input.charCodeAt(++this.pos)!==117&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var p=this.readCodePoint();(t?Ze:ht)(p,a)||this.invalidStringToken(c,"Invalid Unicode escape"),e+=ct(p),s=this.pos}else break;t=!1}return e+this.input.slice(s,this.pos)};ye.readWord=function(){var e=this.readWord1(),t=x.name;return this.keywords.test(e)&&(t=wt[e]),this.finishToken(t,e)};var Un="8.16.0";Ae.acorn={Parser:Ae,version:Un,defaultOptions:Li,Position:Dt,SourceLocation:ii,getLineInfo:Ps,Node:ri,TokenType:fe,tokTypes:x,keywordTypes:wt,TokContext:Re,tokContexts:_e,isIdentifierChar:ht,isIdentifierStart:Ze,Token:Ui,isNewLine:_t,lineBreak:Me,lineBreakG:un,nonASCIIwhitespace:Ts};function Xc(e,t){return Ae.parse(e,t)}function Jc(e,t,s){return Ae.parseExpressionAt(e,t,s)}function Qc(e,t){return Ae.tokenizer(e,t)}var yo=mt(zn(),1);function Kn(e,t){for(var s=0;s<t.length;s++){var a=t[s];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,typeof(o=(function(c,p){if(typeof c!="object"||c===null)return c;var g=c[Symbol.toPrimitive];if(g!==void 0){var b=g.call(c,"string");if(typeof b!="object")return b;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(c)})(a.key))=="symbol"?o:String(o),a)}var o}function Gi(){return Gi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var a in s)Object.prototype.hasOwnProperty.call(s,a)&&(e[a]=s[a])}return e},Gi.apply(this,arguments)}function Wi(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Bs(e,t)}function Bs(e,t){return Bs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(s,a){return s.__proto__=a,s},Bs(e,t)}function Xn(e,t){(t==null||t>e.length)&&(t=e.length);for(var s=0,a=new Array(t);s<t;s++)a[s]=e[s];return a}function Jn(e,t){var s=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(s)return(s=s.call(e)).next.bind(s);if(Array.isArray(e)||(s=(function(o,c){if(o){if(typeof o=="string")return Xn(o,c);var p=Object.prototype.toString.call(o).slice(8,-1);return p==="Object"&&o.constructor&&(p=o.constructor.name),p==="Map"||p==="Set"?Array.from(o):p==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(p)?Xn(o,c):void 0}})(e))||t&&e&&typeof e.length=="number"){s&&(e=s);var a=0;return function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
25
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Ue=!0;function He(e,t){return t===void 0&&(t={}),new fe("name",t)}var il=new WeakMap;function sl(e){var t=il.get(e.Parser.acorn||e);if(!t){var s={assert:He(0,{startsExpr:Ue}),asserts:He(0,{startsExpr:Ue}),global:He(0,{startsExpr:Ue}),keyof:He(0,{startsExpr:Ue}),readonly:He(0,{startsExpr:Ue}),unique:He(0,{startsExpr:Ue}),abstract:He(0,{startsExpr:Ue}),declare:He(0,{startsExpr:Ue}),enum:He(0,{startsExpr:Ue}),module:He(0,{startsExpr:Ue}),namespace:He(0,{startsExpr:Ue}),interface:He(0,{startsExpr:Ue}),type:He(0,{startsExpr:Ue})},a={at:new fe("@"),jsxName:new fe("jsxName"),jsxText:new fe("jsxText",{beforeExpr:!0}),jsxTagStart:new fe("jsxTagStart",{startsExpr:!0}),jsxTagEnd:new fe("jsxTagEnd")},o={tc_oTag:new Re("<tag",!1,!1),tc_cTag:new Re("</tag",!1,!1),tc_expr:new Re("<tag>...</tag>",!0,!0)},c=new RegExp("^(?:"+Object.keys(s).join("|")+")$");a.jsxTagStart.updateContext=function(){this.context.push(o.tc_expr),this.context.push(o.tc_oTag),this.exprAllowed=!1},a.jsxTagEnd.updateContext=function(p){var g=this.context.pop();g===o.tc_oTag&&p===x.slash||g===o.tc_cTag?(this.context.pop(),this.exprAllowed=this.curContext()===o.tc_expr):this.exprAllowed=!0},t={tokTypes:Gi({},s,a),tokContexts:Gi({},o),keywordsRegExp:c,tokenIsLiteralPropertyName:function(p){return[x.name,x.string,x.num].concat(Object.values(wt),Object.values(s)).includes(p)},tokenIsKeywordOrIdentifier:function(p){return[x.name].concat(Object.values(wt),Object.values(s)).includes(p)},tokenIsIdentifier:function(p){return[].concat(Object.values(s),[x.name]).includes(p)},tokenIsTSDeclarationStart:function(p){return[s.abstract,s.declare,s.enum,s.module,s.namespace,s.interface,s.type].includes(p)},tokenIsTSTypeOperator:function(p){return[s.keyof,s.readonly,s.unique].includes(p)},tokenIsTemplate:function(p){return p===x.invalidTemplate}}}return t}var oi=1024,rl=new RegExp("(?:[^\\S\\n\\r\\u2028\\u2029]|\\/\\/.*|\\/\\*.*?\\*\\/)*","y"),Qn=new RegExp("(?=("+rl.source+"))\\1"+/(?=[\n\r\u2028\u2029]|\/\*(?!.*?\*\/)|$)/.source,"y"),ui=function(){this.shorthandAssign=void 0,this.trailingComma=void 0,this.parenthesizedAssign=void 0,this.parenthesizedBind=void 0,this.doubleProto=void 0,this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};function al(e,t){var s=t.key.name,a=e[s],o="true";return t.type!=="MethodDefinition"||t.kind!=="get"&&t.kind!=="set"||(o=(t.static?"s":"i")+t.kind),a==="iget"&&o==="iset"||a==="iset"&&o==="iget"||a==="sget"&&o==="sset"||a==="sset"&&o==="sget"?(e[s]="true",!1):!!a||(e[s]=o,!1)}function Yn(e,t){var s=e.key;return!e.computed&&(s.type==="Identifier"&&s.name===t||s.type==="Literal"&&s.value===t)}var re={AbstractMethodHasImplementation:function(e){return"Method '"+e.methodName+"' cannot have an implementation because it is marked abstract."},AbstractPropertyHasInitializer:function(e){return"Property '"+e.propertyName+"' cannot have an initializer because it is marked abstract."},AccesorCannotDeclareThisParameter:"'get' and 'set' accessors cannot declare 'this' parameters.",AccesorCannotHaveTypeParameters:"An accessor cannot have type parameters.",CannotFindName:function(e){return"Cannot find name '"+e.name+"'."},ClassMethodHasDeclare:"Class methods cannot have the 'declare' modifier.",ClassMethodHasReadonly:"Class methods cannot have the 'readonly' modifier.",ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference:"A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.",ConstructorHasTypeParameters:"Type parameters cannot appear on a constructor declaration.",DeclareAccessor:function(e){return"'declare' is not allowed in "+e.kind+"ters."},DeclareClassFieldHasInitializer:"Initializers are not allowed in ambient contexts.",DeclareFunctionHasImplementation:"An implementation cannot be declared in ambient contexts.",DuplicateAccessibilityModifier:function(){return"Accessibility modifier already seen."},DuplicateModifier:function(e){return"Duplicate modifier: '"+e.modifier+"'."},EmptyHeritageClauseType:function(e){return"'"+e.token+"' list cannot be empty."},EmptyTypeArguments:"Type argument list cannot be empty.",EmptyTypeParameters:"Type parameter list cannot be empty.",ExpectedAmbientAfterExportDeclare:"'export declare' must be followed by an ambient declaration.",ImportAliasHasImportType:"An import alias can not use 'import type'.",IncompatibleModifiers:function(e){var t=e.modifiers;return"'"+t[0]+"' modifier cannot be used with '"+t[1]+"' modifier."},IndexSignatureHasAbstract:"Index signatures cannot have the 'abstract' modifier.",IndexSignatureHasAccessibility:function(e){return"Index signatures cannot have an accessibility modifier ('"+e.modifier+"')."},IndexSignatureHasDeclare:"Index signatures cannot have the 'declare' modifier.",IndexSignatureHasOverride:"'override' modifier cannot appear on an index signature.",IndexSignatureHasStatic:"Index signatures cannot have the 'static' modifier.",InitializerNotAllowedInAmbientContext:"Initializers are not allowed in ambient contexts.",InvalidModifierOnTypeMember:function(e){return"'"+e.modifier+"' modifier cannot appear on a type member."},InvalidModifierOnTypeParameter:function(e){return"'"+e.modifier+"' modifier cannot appear on a type parameter."},InvalidModifierOnTypeParameterPositions:function(e){return"'"+e.modifier+"' modifier can only appear on a type parameter of a class, interface or type alias."},InvalidModifiersOrder:function(e){var t=e.orderedModifiers;return"'"+t[0]+"' modifier must precede '"+t[1]+"' modifier."},InvalidPropertyAccessAfterInstantiationExpression:"Invalid property access after an instantiation expression. You can either wrap the instantiation expression in parentheses, or delete the type arguments.",InvalidTupleMemberLabel:"Tuple members must be labeled with a simple identifier.",MissingInterfaceName:"'interface' declarations must be followed by an identifier.",MixedLabeledAndUnlabeledElements:"Tuple members must all have names or all not have names.",NonAbstractClassHasAbstractMethod:"Abstract methods can only appear within an abstract class.",NonClassMethodPropertyHasAbstractModifer:"'abstract' modifier can only appear on a class, method, or property declaration.",OptionalTypeBeforeRequired:"A required element cannot follow an optional element.",OverrideNotInSubClass:"This member cannot have an 'override' modifier because its containing class does not extend another class.",PatternIsOptional:"A binding pattern parameter cannot be optional in an implementation signature.",PrivateElementHasAbstract:"Private elements cannot have the 'abstract' modifier.",PrivateElementHasAccessibility:function(e){return"Private elements cannot have an accessibility modifier ('"+e.modifier+"')."},PrivateMethodsHasAccessibility:function(e){return"Private methods cannot have an accessibility modifier ('"+e.modifier+"')."},ReadonlyForMethodSignature:"'readonly' modifier can only appear on a property declaration or index signature.",ReservedArrowTypeParam:"This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma, as in `<T,>() => ...`.",ReservedTypeAssertion:"This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.",SetAccesorCannotHaveOptionalParameter:"A 'set' accessor cannot have an optional parameter.",SetAccesorCannotHaveRestParameter:"A 'set' accessor cannot have rest parameter.",SetAccesorCannotHaveReturnType:"A 'set' accessor cannot have a return type annotation.",SingleTypeParameterWithoutTrailingComma:function(e){var t=e.typeParameterName;return"Single type parameter "+t+" should have a trailing comma. Example usage: <"+t+",>."},StaticBlockCannotHaveModifier:"Static class blocks cannot have any modifier.",TypeAnnotationAfterAssign:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeImportCannotSpecifyDefaultAndNamed:"A type-only import can specify a default import or named bindings, but not both.",TypeModifierIsUsedInTypeExports:"The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement.",TypeModifierIsUsedInTypeImports:"The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement.",UnexpectedParameterModifier:"A parameter property is only allowed in a constructor implementation.",UnexpectedReadonly:"'readonly' type modifier is only permitted on array and tuple literal types.",GenericsEndWithComma:"Trailing comma is not allowed at the end of generics.",UnexpectedTypeAnnotation:"Did not expect a type annotation here.",UnexpectedTypeCastInParameter:"Unexpected type cast in parameter position.",UnsupportedImportTypeArgument:"Argument in a type import must be a string literal.",UnsupportedParameterPropertyKind:"A parameter property may not be declared using a binding pattern.",UnsupportedSignatureParameterKind:function(e){return"Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got "+e.type+"."},LetInLexicalBinding:"'let' is not allowed to be used as a name in 'let' or 'const' declarations."},nl={quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",frac34:"\xBE",iquest:"\xBF",Agrave:"\xC0",Aacute:"\xC1",Acirc:"\xC2",Atilde:"\xC3",Auml:"\xC4",Aring:"\xC5",AElig:"\xC6",Ccedil:"\xC7",Egrave:"\xC8",Eacute:"\xC9",Ecirc:"\xCA",Euml:"\xCB",Igrave:"\xCC",Iacute:"\xCD",Icirc:"\xCE",Iuml:"\xCF",ETH:"\xD0",Ntilde:"\xD1",Ograve:"\xD2",Oacute:"\xD3",Ocirc:"\xD4",Otilde:"\xD5",Ouml:"\xD6",times:"\xD7",Oslash:"\xD8",Ugrave:"\xD9",Uacute:"\xDA",Ucirc:"\xDB",Uuml:"\xDC",Yacute:"\xDD",THORN:"\xDE",szlig:"\xDF",agrave:"\xE0",aacute:"\xE1",acirc:"\xE2",atilde:"\xE3",auml:"\xE4",aring:"\xE5",aelig:"\xE6",ccedil:"\xE7",egrave:"\xE8",eacute:"\xE9",ecirc:"\xEA",euml:"\xEB",igrave:"\xEC",iacute:"\xED",icirc:"\xEE",iuml:"\xEF",eth:"\xF0",ntilde:"\xF1",ograve:"\xF2",oacute:"\xF3",ocirc:"\xF4",otilde:"\xF5",ouml:"\xF6",divide:"\xF7",oslash:"\xF8",ugrave:"\xF9",uacute:"\xFA",ucirc:"\xFB",uuml:"\xFC",yacute:"\xFD",thorn:"\xFE",yuml:"\xFF",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",fnof:"\u0192",circ:"\u02C6",tilde:"\u02DC",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039A",Lambda:"\u039B",Mu:"\u039C",Nu:"\u039D",Xi:"\u039E",Omicron:"\u039F",Pi:"\u03A0",Rho:"\u03A1",Sigma:"\u03A3",Tau:"\u03A4",Upsilon:"\u03A5",Phi:"\u03A6",Chi:"\u03A7",Psi:"\u03A8",Omega:"\u03A9",alpha:"\u03B1",beta:"\u03B2",gamma:"\u03B3",delta:"\u03B4",epsilon:"\u03B5",zeta:"\u03B6",eta:"\u03B7",theta:"\u03B8",iota:"\u03B9",kappa:"\u03BA",lambda:"\u03BB",mu:"\u03BC",nu:"\u03BD",xi:"\u03BE",omicron:"\u03BF",pi:"\u03C0",rho:"\u03C1",sigmaf:"\u03C2",sigma:"\u03C3",tau:"\u03C4",upsilon:"\u03C5",phi:"\u03C6",chi:"\u03C7",psi:"\u03C8",omega:"\u03C9",thetasym:"\u03D1",upsih:"\u03D2",piv:"\u03D6",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200C",zwj:"\u200D",lrm:"\u200E",rlm:"\u200F",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201A",ldquo:"\u201C",rdquo:"\u201D",bdquo:"\u201E",dagger:"\u2020",Dagger:"\u2021",bull:"\u2022",hellip:"\u2026",permil:"\u2030",prime:"\u2032",Prime:"\u2033",lsaquo:"\u2039",rsaquo:"\u203A",oline:"\u203E",frasl:"\u2044",euro:"\u20AC",image:"\u2111",weierp:"\u2118",real:"\u211C",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21B5",lArr:"\u21D0",uArr:"\u21D1",rArr:"\u21D2",dArr:"\u21D3",hArr:"\u21D4",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220B",prod:"\u220F",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221A",prop:"\u221D",infin:"\u221E",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222A",int:"\u222B",there4:"\u2234",sim:"\u223C",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22A5",sdot:"\u22C5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230A",rfloor:"\u230B",lang:"\u2329",rang:"\u232A",loz:"\u25CA",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666"},ol=/^[\da-fA-F]+$/,ul=/^\d+$/;function hi(e){return e&&(e.type==="JSXIdentifier"?e.name:e.type==="JSXNamespacedName"?e.namespace.name+":"+e.name.name:e.type==="JSXMemberExpression"?hi(e.object)+"."+hi(e.property):void 0)}var Ds=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g;function Zn(e){if(!e)throw new Error("Assert fail")}function hl(e){return e==="accessor"}function cl(e){return e==="in"||e==="out"}function Fs(e,t){return 2|(e?4:0)|(t?8:0)}function ll(e){if(e.type!=="MemberExpression")return!1;var t=e.property;return(!e.computed||!(t.type!=="TemplateLiteral"||t.expressions.length>0))&&to(e.object)}function to(e){return e.type==="Identifier"||e.type==="MemberExpression"&&!e.computed&&to(e.object)}function eo(e){return e==="private"||e==="public"||e==="protected"}function js(e){var t=e||{},s=t.dts,a=s!==void 0&&s,o=t.allowSatisfies,c=o!==void 0&&o;return function(p){var g=p.acorn||Hi,b=sl(g),l=g.tokTypes,P=g.keywordTypes,_=g.isIdentifierStart,B=g.lineBreak,w=g.isNewLine,E=g.tokContexts,D=g.isIdentifierChar,V=b.tokTypes,G=b.tokContexts,Q=b.keywordsRegExp,$=b.tokenIsLiteralPropertyName,m=b.tokenIsTemplate,ae=b.tokenIsTSDeclarationStart,K=b.tokenIsIdentifier,ne=b.tokenIsKeywordOrIdentifier,X=b.tokenIsTSTypeOperator;function Z(j,he,ue){ue===void 0&&(ue=j.length);for(var O=he;O<ue;O++){var I=j.charCodeAt(O);if(w(I))return O<ue-1&&I===13&&j.charCodeAt(O+1)===10?O+2:O+1}return-1}p=(function(j,he,ue){var O=ue.tokTypes,I=he.tokTypes;return(function(S){function r(){return S.apply(this,arguments)||this}Wi(r,S);var u=r.prototype;return u.takeDecorators=function(d){var y=this.decoratorStack[this.decoratorStack.length-1];y.length&&(d.decorators=y,this.resetStartLocationFromNode(d,y[0]),this.decoratorStack[this.decoratorStack.length-1]=[])},u.parseDecorators=function(d){for(var y=this.decoratorStack[this.decoratorStack.length-1];this.match(I.at);){var C=this.parseDecorator();y.push(C)}this.match(O._export)?d||this.unexpected():this.canHaveLeadingDecorator()||this.raise(this.start,"Leading decorators must be attached to a class declaration.")},u.parseDecorator=function(){var d=this.startNode();this.next(),this.decoratorStack.push([]);var y,C=this.start,A=this.startLoc;if(this.match(O.parenL)){var k=this.start,L=this.startLoc;if(this.next(),y=this.parseExpression(),this.expect(O.parenR),this.options.preserveParens){var N=this.startNodeAt(k,L);N.expression=y,y=this.finishNode(N,"ParenthesizedExpression")}}else for(y=this.parseIdent(!1);this.eat(O.dot);){var W=this.startNodeAt(C,A);W.object=y,W.property=this.parseIdent(!0),W.computed=!1,y=this.finishNode(W,"MemberExpression")}return d.expression=this.parseMaybeDecoratorArguments(y),this.decoratorStack.pop(),this.finishNode(d,"Decorator")},u.parseMaybeDecoratorArguments=function(d){if(this.eat(O.parenL)){var y=this.startNodeAtNode(d);return y.callee=d,y.arguments=this.parseExprList(O.parenR,!1),this.finishNode(y,"CallExpression")}return d},r})(j)})(p,b,g),p=(function(j,he,ue,O){var I=j.tokTypes,S=he.tokTypes,r=j.isNewLine,u=j.isIdentifierChar,d=Object.assign({allowNamespaces:!0,allowNamespacedObjects:!0},O||{});return(function(y){function C(){return y.apply(this,arguments)||this}Wi(C,y);var A=C.prototype;return A.jsx_readToken=function(){for(var k="",L=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated JSX contents");var N=this.input.charCodeAt(this.pos);switch(N){case 60:case 123:return this.pos===this.start?N===60&&this.exprAllowed?(++this.pos,this.finishToken(S.jsxTagStart)):this.getTokenFromCode(N):(k+=this.input.slice(L,this.pos),this.finishToken(S.jsxText,k));case 38:k+=this.input.slice(L,this.pos),k+=this.jsx_readEntity(),L=this.pos;break;case 62:case 125:this.raise(this.pos,"Unexpected token `"+this.input[this.pos]+"`. Did you mean `"+(N===62?"&gt;":"&rbrace;")+'` or `{"'+this.input[this.pos]+'"}`?');default:r(N)?(k+=this.input.slice(L,this.pos),k+=this.jsx_readNewLine(!0),L=this.pos):++this.pos}}},A.jsx_readNewLine=function(k){var L,N=this.input.charCodeAt(this.pos);return++this.pos,N===13&&this.input.charCodeAt(this.pos)===10?(++this.pos,L=k?`
24
+ `;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return ct(this.readCodePoint());case 116:return" ";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,"Invalid escape sequence"),e){var s=this.pos-1;this.invalidStringToken(s,"Invalid escape sequence in template string")}default:if(t>=48&&t<=55){var a=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],o=parseInt(a,8);return o>255&&(a=a.slice(0,-1),o=parseInt(a,8)),this.pos+=a.length-1,t=this.input.charCodeAt(this.pos),(a!=="0"||t===56||t===57)&&(this.strict||e)&&this.invalidStringToken(this.pos-1-a.length,e?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(o)}return _t(t)?(this.options.locations&&(this.lineStart=this.pos,++this.curLine),""):String.fromCharCode(t)}};ye.readHexChar=function(e){var t=this.pos,s=this.readInt(16,e);return s===null&&this.invalidStringToken(t,"Bad character escape sequence"),s};ye.readWord1=function(){this.containsEsc=!1;for(var e="",t=!0,s=this.pos,a=this.options.ecmaVersion>=6;this.pos<this.input.length;){var o=this.fullCharCodeAtPos();if(ht(o,a))this.pos+=o<=65535?1:2;else if(o===92){this.containsEsc=!0,e+=this.input.slice(s,this.pos);var c=this.pos;this.input.charCodeAt(++this.pos)!==117&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var p=this.readCodePoint();(t?Ze:ht)(p,a)||this.invalidStringToken(c,"Invalid Unicode escape"),e+=ct(p),s=this.pos}else break;t=!1}return e+this.input.slice(s,this.pos)};ye.readWord=function(){var e=this.readWord1(),t=x.name;return this.keywords.test(e)&&(t=wt[e]),this.finishToken(t,e)};var qn="8.16.0";Ae.acorn={Parser:Ae,version:qn,defaultOptions:Li,Position:Dt,SourceLocation:ii,getLineInfo:Ps,Node:ri,TokenType:fe,tokTypes:x,keywordTypes:wt,TokContext:Re,tokContexts:_e,isIdentifierChar:ht,isIdentifierStart:Ze,Token:Ui,isNewLine:_t,lineBreak:Me,lineBreakG:cn,nonASCIIwhitespace:Ts};function Kc(e,t){return Ae.parse(e,t)}function Xc(e,t,s){return Ae.parseExpressionAt(e,t,s)}function Jc(e,t){return Ae.tokenizer(e,t)}var yo=mt(Xn(),1);function Jn(e,t){for(var s=0;s<t.length;s++){var a=t[s];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,typeof(o=(function(c,p){if(typeof c!="object"||c===null)return c;var g=c[Symbol.toPrimitive];if(g!==void 0){var b=g.call(c,"string");if(typeof b!="object")return b;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(c)})(a.key))=="symbol"?o:String(o),a)}var o}function Gi(){return Gi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var a in s)Object.prototype.hasOwnProperty.call(s,a)&&(e[a]=s[a])}return e},Gi.apply(this,arguments)}function Wi(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Fs(e,t)}function Fs(e,t){return Fs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(s,a){return s.__proto__=a,s},Fs(e,t)}function Qn(e,t){(t==null||t>e.length)&&(t=e.length);for(var s=0,a=new Array(t);s<t;s++)a[s]=e[s];return a}function Yn(e,t){var s=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(s)return(s=s.call(e)).next.bind(s);if(Array.isArray(e)||(s=(function(o,c){if(o){if(typeof o=="string")return Qn(o,c);var p=Object.prototype.toString.call(o).slice(8,-1);return p==="Object"&&o.constructor&&(p=o.constructor.name),p==="Map"||p==="Set"?Array.from(o):p==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(p)?Qn(o,c):void 0}})(e))||t&&e&&typeof e.length=="number"){s&&(e=s);var a=0;return function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
25
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Ue=!0;function He(e,t){return t===void 0&&(t={}),new fe("name",t)}var tl=new WeakMap;function il(e){var t=tl.get(e.Parser.acorn||e);if(!t){var s={assert:He(0,{startsExpr:Ue}),asserts:He(0,{startsExpr:Ue}),global:He(0,{startsExpr:Ue}),keyof:He(0,{startsExpr:Ue}),readonly:He(0,{startsExpr:Ue}),unique:He(0,{startsExpr:Ue}),abstract:He(0,{startsExpr:Ue}),declare:He(0,{startsExpr:Ue}),enum:He(0,{startsExpr:Ue}),module:He(0,{startsExpr:Ue}),namespace:He(0,{startsExpr:Ue}),interface:He(0,{startsExpr:Ue}),type:He(0,{startsExpr:Ue})},a={at:new fe("@"),jsxName:new fe("jsxName"),jsxText:new fe("jsxText",{beforeExpr:!0}),jsxTagStart:new fe("jsxTagStart",{startsExpr:!0}),jsxTagEnd:new fe("jsxTagEnd")},o={tc_oTag:new Re("<tag",!1,!1),tc_cTag:new Re("</tag",!1,!1),tc_expr:new Re("<tag>...</tag>",!0,!0)},c=new RegExp("^(?:"+Object.keys(s).join("|")+")$");a.jsxTagStart.updateContext=function(){this.context.push(o.tc_expr),this.context.push(o.tc_oTag),this.exprAllowed=!1},a.jsxTagEnd.updateContext=function(p){var g=this.context.pop();g===o.tc_oTag&&p===x.slash||g===o.tc_cTag?(this.context.pop(),this.exprAllowed=this.curContext()===o.tc_expr):this.exprAllowed=!0},t={tokTypes:Gi({},s,a),tokContexts:Gi({},o),keywordsRegExp:c,tokenIsLiteralPropertyName:function(p){return[x.name,x.string,x.num].concat(Object.values(wt),Object.values(s)).includes(p)},tokenIsKeywordOrIdentifier:function(p){return[x.name].concat(Object.values(wt),Object.values(s)).includes(p)},tokenIsIdentifier:function(p){return[].concat(Object.values(s),[x.name]).includes(p)},tokenIsTSDeclarationStart:function(p){return[s.abstract,s.declare,s.enum,s.module,s.namespace,s.interface,s.type].includes(p)},tokenIsTSTypeOperator:function(p){return[s.keyof,s.readonly,s.unique].includes(p)},tokenIsTemplate:function(p){return p===x.invalidTemplate}}}return t}var oi=1024,sl=new RegExp("(?:[^\\S\\n\\r\\u2028\\u2029]|\\/\\/.*|\\/\\*.*?\\*\\/)*","y"),Zn=new RegExp("(?=("+sl.source+"))\\1"+/(?=[\n\r\u2028\u2029]|\/\*(?!.*?\*\/)|$)/.source,"y"),ui=function(){this.shorthandAssign=void 0,this.trailingComma=void 0,this.parenthesizedAssign=void 0,this.parenthesizedBind=void 0,this.doubleProto=void 0,this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};function rl(e,t){var s=t.key.name,a=e[s],o="true";return t.type!=="MethodDefinition"||t.kind!=="get"&&t.kind!=="set"||(o=(t.static?"s":"i")+t.kind),a==="iget"&&o==="iset"||a==="iset"&&o==="iget"||a==="sget"&&o==="sset"||a==="sset"&&o==="sget"?(e[s]="true",!1):!!a||(e[s]=o,!1)}function eo(e,t){var s=e.key;return!e.computed&&(s.type==="Identifier"&&s.name===t||s.type==="Literal"&&s.value===t)}var re={AbstractMethodHasImplementation:function(e){return"Method '"+e.methodName+"' cannot have an implementation because it is marked abstract."},AbstractPropertyHasInitializer:function(e){return"Property '"+e.propertyName+"' cannot have an initializer because it is marked abstract."},AccesorCannotDeclareThisParameter:"'get' and 'set' accessors cannot declare 'this' parameters.",AccesorCannotHaveTypeParameters:"An accessor cannot have type parameters.",CannotFindName:function(e){return"Cannot find name '"+e.name+"'."},ClassMethodHasDeclare:"Class methods cannot have the 'declare' modifier.",ClassMethodHasReadonly:"Class methods cannot have the 'readonly' modifier.",ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference:"A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.",ConstructorHasTypeParameters:"Type parameters cannot appear on a constructor declaration.",DeclareAccessor:function(e){return"'declare' is not allowed in "+e.kind+"ters."},DeclareClassFieldHasInitializer:"Initializers are not allowed in ambient contexts.",DeclareFunctionHasImplementation:"An implementation cannot be declared in ambient contexts.",DuplicateAccessibilityModifier:function(){return"Accessibility modifier already seen."},DuplicateModifier:function(e){return"Duplicate modifier: '"+e.modifier+"'."},EmptyHeritageClauseType:function(e){return"'"+e.token+"' list cannot be empty."},EmptyTypeArguments:"Type argument list cannot be empty.",EmptyTypeParameters:"Type parameter list cannot be empty.",ExpectedAmbientAfterExportDeclare:"'export declare' must be followed by an ambient declaration.",ImportAliasHasImportType:"An import alias can not use 'import type'.",IncompatibleModifiers:function(e){var t=e.modifiers;return"'"+t[0]+"' modifier cannot be used with '"+t[1]+"' modifier."},IndexSignatureHasAbstract:"Index signatures cannot have the 'abstract' modifier.",IndexSignatureHasAccessibility:function(e){return"Index signatures cannot have an accessibility modifier ('"+e.modifier+"')."},IndexSignatureHasDeclare:"Index signatures cannot have the 'declare' modifier.",IndexSignatureHasOverride:"'override' modifier cannot appear on an index signature.",IndexSignatureHasStatic:"Index signatures cannot have the 'static' modifier.",InitializerNotAllowedInAmbientContext:"Initializers are not allowed in ambient contexts.",InvalidModifierOnTypeMember:function(e){return"'"+e.modifier+"' modifier cannot appear on a type member."},InvalidModifierOnTypeParameter:function(e){return"'"+e.modifier+"' modifier cannot appear on a type parameter."},InvalidModifierOnTypeParameterPositions:function(e){return"'"+e.modifier+"' modifier can only appear on a type parameter of a class, interface or type alias."},InvalidModifiersOrder:function(e){var t=e.orderedModifiers;return"'"+t[0]+"' modifier must precede '"+t[1]+"' modifier."},InvalidPropertyAccessAfterInstantiationExpression:"Invalid property access after an instantiation expression. You can either wrap the instantiation expression in parentheses, or delete the type arguments.",InvalidTupleMemberLabel:"Tuple members must be labeled with a simple identifier.",MissingInterfaceName:"'interface' declarations must be followed by an identifier.",MixedLabeledAndUnlabeledElements:"Tuple members must all have names or all not have names.",NonAbstractClassHasAbstractMethod:"Abstract methods can only appear within an abstract class.",NonClassMethodPropertyHasAbstractModifer:"'abstract' modifier can only appear on a class, method, or property declaration.",OptionalTypeBeforeRequired:"A required element cannot follow an optional element.",OverrideNotInSubClass:"This member cannot have an 'override' modifier because its containing class does not extend another class.",PatternIsOptional:"A binding pattern parameter cannot be optional in an implementation signature.",PrivateElementHasAbstract:"Private elements cannot have the 'abstract' modifier.",PrivateElementHasAccessibility:function(e){return"Private elements cannot have an accessibility modifier ('"+e.modifier+"')."},PrivateMethodsHasAccessibility:function(e){return"Private methods cannot have an accessibility modifier ('"+e.modifier+"')."},ReadonlyForMethodSignature:"'readonly' modifier can only appear on a property declaration or index signature.",ReservedArrowTypeParam:"This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma, as in `<T,>() => ...`.",ReservedTypeAssertion:"This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.",SetAccesorCannotHaveOptionalParameter:"A 'set' accessor cannot have an optional parameter.",SetAccesorCannotHaveRestParameter:"A 'set' accessor cannot have rest parameter.",SetAccesorCannotHaveReturnType:"A 'set' accessor cannot have a return type annotation.",SingleTypeParameterWithoutTrailingComma:function(e){var t=e.typeParameterName;return"Single type parameter "+t+" should have a trailing comma. Example usage: <"+t+",>."},StaticBlockCannotHaveModifier:"Static class blocks cannot have any modifier.",TypeAnnotationAfterAssign:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeImportCannotSpecifyDefaultAndNamed:"A type-only import can specify a default import or named bindings, but not both.",TypeModifierIsUsedInTypeExports:"The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement.",TypeModifierIsUsedInTypeImports:"The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement.",UnexpectedParameterModifier:"A parameter property is only allowed in a constructor implementation.",UnexpectedReadonly:"'readonly' type modifier is only permitted on array and tuple literal types.",GenericsEndWithComma:"Trailing comma is not allowed at the end of generics.",UnexpectedTypeAnnotation:"Did not expect a type annotation here.",UnexpectedTypeCastInParameter:"Unexpected type cast in parameter position.",UnsupportedImportTypeArgument:"Argument in a type import must be a string literal.",UnsupportedParameterPropertyKind:"A parameter property may not be declared using a binding pattern.",UnsupportedSignatureParameterKind:function(e){return"Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got "+e.type+"."},LetInLexicalBinding:"'let' is not allowed to be used as a name in 'let' or 'const' declarations."},al={quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",frac34:"\xBE",iquest:"\xBF",Agrave:"\xC0",Aacute:"\xC1",Acirc:"\xC2",Atilde:"\xC3",Auml:"\xC4",Aring:"\xC5",AElig:"\xC6",Ccedil:"\xC7",Egrave:"\xC8",Eacute:"\xC9",Ecirc:"\xCA",Euml:"\xCB",Igrave:"\xCC",Iacute:"\xCD",Icirc:"\xCE",Iuml:"\xCF",ETH:"\xD0",Ntilde:"\xD1",Ograve:"\xD2",Oacute:"\xD3",Ocirc:"\xD4",Otilde:"\xD5",Ouml:"\xD6",times:"\xD7",Oslash:"\xD8",Ugrave:"\xD9",Uacute:"\xDA",Ucirc:"\xDB",Uuml:"\xDC",Yacute:"\xDD",THORN:"\xDE",szlig:"\xDF",agrave:"\xE0",aacute:"\xE1",acirc:"\xE2",atilde:"\xE3",auml:"\xE4",aring:"\xE5",aelig:"\xE6",ccedil:"\xE7",egrave:"\xE8",eacute:"\xE9",ecirc:"\xEA",euml:"\xEB",igrave:"\xEC",iacute:"\xED",icirc:"\xEE",iuml:"\xEF",eth:"\xF0",ntilde:"\xF1",ograve:"\xF2",oacute:"\xF3",ocirc:"\xF4",otilde:"\xF5",ouml:"\xF6",divide:"\xF7",oslash:"\xF8",ugrave:"\xF9",uacute:"\xFA",ucirc:"\xFB",uuml:"\xFC",yacute:"\xFD",thorn:"\xFE",yuml:"\xFF",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",fnof:"\u0192",circ:"\u02C6",tilde:"\u02DC",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039A",Lambda:"\u039B",Mu:"\u039C",Nu:"\u039D",Xi:"\u039E",Omicron:"\u039F",Pi:"\u03A0",Rho:"\u03A1",Sigma:"\u03A3",Tau:"\u03A4",Upsilon:"\u03A5",Phi:"\u03A6",Chi:"\u03A7",Psi:"\u03A8",Omega:"\u03A9",alpha:"\u03B1",beta:"\u03B2",gamma:"\u03B3",delta:"\u03B4",epsilon:"\u03B5",zeta:"\u03B6",eta:"\u03B7",theta:"\u03B8",iota:"\u03B9",kappa:"\u03BA",lambda:"\u03BB",mu:"\u03BC",nu:"\u03BD",xi:"\u03BE",omicron:"\u03BF",pi:"\u03C0",rho:"\u03C1",sigmaf:"\u03C2",sigma:"\u03C3",tau:"\u03C4",upsilon:"\u03C5",phi:"\u03C6",chi:"\u03C7",psi:"\u03C8",omega:"\u03C9",thetasym:"\u03D1",upsih:"\u03D2",piv:"\u03D6",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200C",zwj:"\u200D",lrm:"\u200E",rlm:"\u200F",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201A",ldquo:"\u201C",rdquo:"\u201D",bdquo:"\u201E",dagger:"\u2020",Dagger:"\u2021",bull:"\u2022",hellip:"\u2026",permil:"\u2030",prime:"\u2032",Prime:"\u2033",lsaquo:"\u2039",rsaquo:"\u203A",oline:"\u203E",frasl:"\u2044",euro:"\u20AC",image:"\u2111",weierp:"\u2118",real:"\u211C",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21B5",lArr:"\u21D0",uArr:"\u21D1",rArr:"\u21D2",dArr:"\u21D3",hArr:"\u21D4",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220B",prod:"\u220F",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221A",prop:"\u221D",infin:"\u221E",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222A",int:"\u222B",there4:"\u2234",sim:"\u223C",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22A5",sdot:"\u22C5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230A",rfloor:"\u230B",lang:"\u2329",rang:"\u232A",loz:"\u25CA",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666"},nl=/^[\da-fA-F]+$/,ol=/^\d+$/;function hi(e){return e&&(e.type==="JSXIdentifier"?e.name:e.type==="JSXNamespacedName"?e.namespace.name+":"+e.name.name:e.type==="JSXMemberExpression"?hi(e.object)+"."+hi(e.property):void 0)}var Ds=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g;function to(e){if(!e)throw new Error("Assert fail")}function ul(e){return e==="accessor"}function hl(e){return e==="in"||e==="out"}function Bs(e,t){return 2|(e?4:0)|(t?8:0)}function cl(e){if(e.type!=="MemberExpression")return!1;var t=e.property;return(!e.computed||!(t.type!=="TemplateLiteral"||t.expressions.length>0))&&so(e.object)}function so(e){return e.type==="Identifier"||e.type==="MemberExpression"&&!e.computed&&so(e.object)}function io(e){return e==="private"||e==="public"||e==="protected"}function js(e){var t=e||{},s=t.dts,a=s!==void 0&&s,o=t.allowSatisfies,c=o!==void 0&&o;return function(p){var g=p.acorn||Hi,b=il(g),l=g.tokTypes,_=g.keywordTypes,E=g.isIdentifierStart,D=g.lineBreak,w=g.isNewLine,k=g.tokContexts,B=g.isIdentifierChar,V=b.tokTypes,G=b.tokContexts,Q=b.keywordsRegExp,$=b.tokenIsLiteralPropertyName,m=b.tokenIsTemplate,ae=b.tokenIsTSDeclarationStart,K=b.tokenIsIdentifier,ne=b.tokenIsKeywordOrIdentifier,X=b.tokenIsTSTypeOperator;function Z(j,he,ue){ue===void 0&&(ue=j.length);for(var O=he;O<ue;O++){var I=j.charCodeAt(O);if(w(I))return O<ue-1&&I===13&&j.charCodeAt(O+1)===10?O+2:O+1}return-1}p=(function(j,he,ue){var O=ue.tokTypes,I=he.tokTypes;return(function(S){function r(){return S.apply(this,arguments)||this}Wi(r,S);var u=r.prototype;return u.takeDecorators=function(d){var y=this.decoratorStack[this.decoratorStack.length-1];y.length&&(d.decorators=y,this.resetStartLocationFromNode(d,y[0]),this.decoratorStack[this.decoratorStack.length-1]=[])},u.parseDecorators=function(d){for(var y=this.decoratorStack[this.decoratorStack.length-1];this.match(I.at);){var C=this.parseDecorator();y.push(C)}this.match(O._export)?d||this.unexpected():this.canHaveLeadingDecorator()||this.raise(this.start,"Leading decorators must be attached to a class declaration.")},u.parseDecorator=function(){var d=this.startNode();this.next(),this.decoratorStack.push([]);var y,C=this.start,A=this.startLoc;if(this.match(O.parenL)){var T=this.start,L=this.startLoc;if(this.next(),y=this.parseExpression(),this.expect(O.parenR),this.options.preserveParens){var N=this.startNodeAt(T,L);N.expression=y,y=this.finishNode(N,"ParenthesizedExpression")}}else for(y=this.parseIdent(!1);this.eat(O.dot);){var W=this.startNodeAt(C,A);W.object=y,W.property=this.parseIdent(!0),W.computed=!1,y=this.finishNode(W,"MemberExpression")}return d.expression=this.parseMaybeDecoratorArguments(y),this.decoratorStack.pop(),this.finishNode(d,"Decorator")},u.parseMaybeDecoratorArguments=function(d){if(this.eat(O.parenL)){var y=this.startNodeAtNode(d);return y.callee=d,y.arguments=this.parseExprList(O.parenR,!1),this.finishNode(y,"CallExpression")}return d},r})(j)})(p,b,g),p=(function(j,he,ue,O){var I=j.tokTypes,S=he.tokTypes,r=j.isNewLine,u=j.isIdentifierChar,d=Object.assign({allowNamespaces:!0,allowNamespacedObjects:!0},O||{});return(function(y){function C(){return y.apply(this,arguments)||this}Wi(C,y);var A=C.prototype;return A.jsx_readToken=function(){for(var T="",L=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated JSX contents");var N=this.input.charCodeAt(this.pos);switch(N){case 60:case 123:return this.pos===this.start?N===60&&this.exprAllowed?(++this.pos,this.finishToken(S.jsxTagStart)):this.getTokenFromCode(N):(T+=this.input.slice(L,this.pos),this.finishToken(S.jsxText,T));case 38:T+=this.input.slice(L,this.pos),T+=this.jsx_readEntity(),L=this.pos;break;case 62:case 125:this.raise(this.pos,"Unexpected token `"+this.input[this.pos]+"`. Did you mean `"+(N===62?"&gt;":"&rbrace;")+'` or `{"'+this.input[this.pos]+'"}`?');default:r(N)?(T+=this.input.slice(L,this.pos),T+=this.jsx_readNewLine(!0),L=this.pos):++this.pos}}},A.jsx_readNewLine=function(T){var L,N=this.input.charCodeAt(this.pos);return++this.pos,N===13&&this.input.charCodeAt(this.pos)===10?(++this.pos,L=T?`
26
26
  `:`\r
27
- `):L=String.fromCharCode(N),this.options.locations&&(++this.curLine,this.lineStart=this.pos),L},A.jsx_readString=function(k){for(var L="",N=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var W=this.input.charCodeAt(this.pos);if(W===k)break;W===38?(L+=this.input.slice(N,this.pos),L+=this.jsx_readEntity(),N=this.pos):r(W)?(L+=this.input.slice(N,this.pos),L+=this.jsx_readNewLine(!1),N=this.pos):++this.pos}return L+=this.input.slice(N,this.pos++),this.finishToken(I.string,L)},A.jsx_readEntity=function(){var k,L="",N=0,W=this.input[this.pos];W!=="&"&&this.raise(this.pos,"Entity must start with an ampersand");for(var J=++this.pos;this.pos<this.input.length&&N++<10;){if((W=this.input[this.pos++])===";"){L[0]==="#"?L[1]==="x"?(L=L.substr(2),ol.test(L)&&(k=String.fromCharCode(parseInt(L,16)))):(L=L.substr(1),ul.test(L)&&(k=String.fromCharCode(parseInt(L,10)))):k=nl[L];break}L+=W}return k||(this.pos=J,"&")},A.jsx_readWord=function(){var k,L=this.pos;do k=this.input.charCodeAt(++this.pos);while(u(k)||k===45);return this.finishToken(S.jsxName,this.input.slice(L,this.pos))},A.jsx_parseIdentifier=function(){var k=this.startNode();return this.type===S.jsxName?k.name=this.value:this.type.keyword?k.name=this.type.keyword:this.unexpected(),this.next(),this.finishNode(k,"JSXIdentifier")},A.jsx_parseNamespacedName=function(){var k=this.start,L=this.startLoc,N=this.jsx_parseIdentifier();if(!d.allowNamespaces||!this.eat(I.colon))return N;var W=this.startNodeAt(k,L);return W.namespace=N,W.name=this.jsx_parseIdentifier(),this.finishNode(W,"JSXNamespacedName")},A.jsx_parseElementName=function(){if(this.type===S.jsxTagEnd)return"";var k=this.start,L=this.startLoc,N=this.jsx_parseNamespacedName();for(this.type!==I.dot||N.type!=="JSXNamespacedName"||d.allowNamespacedObjects||this.unexpected();this.eat(I.dot);){var W=this.startNodeAt(k,L);W.object=N,W.property=this.jsx_parseIdentifier(),N=this.finishNode(W,"JSXMemberExpression")}return N},A.jsx_parseAttributeValue=function(){switch(this.type){case I.braceL:var k=this.jsx_parseExpressionContainer();return k.expression.type==="JSXEmptyExpression"&&this.raise(k.start,"JSX attributes must only be assigned a non-empty expression"),k;case S.jsxTagStart:case I.string:return this.parseExprAtom();default:this.raise(this.start,"JSX value should be either an expression or a quoted JSX text")}},A.jsx_parseEmptyExpression=function(){var k=this.startNodeAt(this.lastTokEnd,this.lastTokEndLoc);return this.finishNodeAt(k,"JSXEmptyExpression",this.start,this.startLoc)},A.jsx_parseExpressionContainer=function(){var k=this.startNode();return this.next(),k.expression=this.type===I.braceR?this.jsx_parseEmptyExpression():this.parseExpression(),this.expect(I.braceR),this.finishNode(k,"JSXExpressionContainer")},A.jsx_parseAttribute=function(){var k=this.startNode();return this.eat(I.braceL)?(this.expect(I.ellipsis),k.argument=this.parseMaybeAssign(),this.expect(I.braceR),this.finishNode(k,"JSXSpreadAttribute")):(k.name=this.jsx_parseNamespacedName(),k.value=this.eat(I.eq)?this.jsx_parseAttributeValue():null,this.finishNode(k,"JSXAttribute"))},A.jsx_parseOpeningElementAt=function(k,L){var N=this.startNodeAt(k,L);N.attributes=[];var W=this.jsx_parseElementName();for(W&&(N.name=W);this.type!==I.slash&&this.type!==S.jsxTagEnd;)N.attributes.push(this.jsx_parseAttribute());return N.selfClosing=this.eat(I.slash),this.expect(S.jsxTagEnd),this.finishNode(N,W?"JSXOpeningElement":"JSXOpeningFragment")},A.jsx_parseClosingElementAt=function(k,L){var N=this.startNodeAt(k,L),W=this.jsx_parseElementName();return W&&(N.name=W),this.expect(S.jsxTagEnd),this.finishNode(N,W?"JSXClosingElement":"JSXClosingFragment")},A.jsx_parseElementAt=function(k,L){var N=this.startNodeAt(k,L),W=[],J=this.jsx_parseOpeningElementAt(k,L),F=null;if(!J.selfClosing){e:for(;;)switch(this.type){case S.jsxTagStart:if(k=this.start,L=this.startLoc,this.next(),this.eat(I.slash)){F=this.jsx_parseClosingElementAt(k,L);break e}W.push(this.jsx_parseElementAt(k,L));break;case S.jsxText:W.push(this.parseExprAtom());break;case I.braceL:W.push(this.jsx_parseExpressionContainer());break;default:this.unexpected()}hi(F.name)!==hi(J.name)&&this.raise(F.start,"Expected corresponding JSX closing tag for <"+hi(J.name)+">")}var q=J.name?"Element":"Fragment";return N["opening"+q]=J,N["closing"+q]=F,N.children=W,this.type===I.relational&&this.value==="<"&&this.raise(this.start,"Adjacent JSX elements must be wrapped in an enclosing tag"),this.finishNode(N,"JSX"+q)},A.jsx_parseText=function(){var k=this.parseLiteral(this.value);return k.type="JSXText",k},A.jsx_parseElement=function(){var k=this.start,L=this.startLoc;return this.next(),this.jsx_parseElementAt(k,L)},C})(ue)})(g,b,p,e?.jsx),p=(function(j,he,ue){var O=he.tokTypes,I=ue.tokTypes;return(function(S){function r(){return S.apply(this,arguments)||this}Wi(r,S);var u=r.prototype;return u.parseMaybeImportAttributes=function(d){if(this.type===I._with||this.type===O.assert){this.next();var y=this.parseImportAttributes();y&&(d.attributes=y)}},u.parseImportAttributes=function(){this.expect(I.braceL);var d=this.parseWithEntries();return this.expect(I.braceR),d},u.parseWithEntries=function(){var d=[],y=new Set;do{if(this.type===I.braceR)break;var C,A=this.startNode();C=this.type===I.string?this.parseLiteral(this.value):this.parseIdent(!0),this.next(),A.key=C,y.has(A.key.name)&&this.raise(this.pos,"Duplicated key in attributes"),y.add(A.key.name),this.type!==I.string&&this.raise(this.pos,"Only string is supported as an attribute value"),A.value=this.parseLiteral(this.value),d.push(this.finishNode(A,"ImportAttribute"))}while(this.eat(I.comma));return d},r})(j)})(p,b,g);var M=(function(j){function he(r,u,d){var y;return(y=j.call(this,r,u,d)||this).preValue=null,y.preToken=null,y.isLookahead=!1,y.isAmbientContext=!1,y.inAbstractClass=!1,y.inType=!1,y.inDisallowConditionalTypesContext=!1,y.maybeInArrowParameters=!1,y.shouldParseArrowReturnType=void 0,y.shouldParseAsyncArrowReturnType=void 0,y.decoratorStack=[[]],y.importsStack=[[]],y.importOrExportOuterKind=void 0,y.tsParseConstModifier=y.tsParseModifiers.bind((function(C){if(C===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C})(y),{allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:re.InvalidModifierOnTypeParameterPositions}),y}Wi(he,j);var ue,O,I,S=he.prototype;return S.getTokenFromCodeInType=function(r){return r===62||r===60?this.finishOp(l.relational,1):j.prototype.getTokenFromCode.call(this,r)},S.readToken=function(r){if(!this.inType){var u=this.curContext();if(u===G.tc_expr)return this.jsx_readToken();if(u===G.tc_oTag||u===G.tc_cTag){if(_(r))return this.jsx_readWord();if(r==62)return++this.pos,this.finishToken(V.jsxTagEnd);if((r===34||r===39)&&u==G.tc_oTag)return this.jsx_readString(r)}if(r===60&&this.exprAllowed&&this.input.charCodeAt(this.pos+1)!==33)return++this.pos,this.finishToken(V.jsxTagStart)}return j.prototype.readToken.call(this,r)},S.getTokenFromCode=function(r){return this.inType?this.getTokenFromCodeInType(r):r===64?(++this.pos,this.finishToken(V.at)):j.prototype.getTokenFromCode.call(this,r)},S.isAbstractClass=function(){return this.ts_isContextual(V.abstract)&&this.lookahead().type===l._class},S.finishNode=function(r,u){return r.type!==""&&r.end!==0?r:j.prototype.finishNode.call(this,r,u)},S.tryParse=function(r,u){u===void 0&&(u=this.cloneCurLookaheadState());var d={node:null};try{return{node:r(function(C){throw C===void 0&&(C=null),d.node=C,d}),error:null,thrown:!1,aborted:!1,failState:null}}catch(C){var y=this.getCurLookaheadState();if(this.setLookaheadState(u),C instanceof SyntaxError)return{node:null,error:C,thrown:!0,aborted:!1,failState:y};if(C===d)return{node:d.node,error:null,thrown:!1,aborted:!0,failState:y};throw C}},S.setOptionalParametersError=function(r,u){var d;r.optionalParametersLoc=(d=u?.loc)!=null?d:this.startLoc},S.reScan_lt_gt=function(){this.type===l.relational&&(this.pos-=1,this.readToken_lt_gt(this.fullCharCodeAtPos()))},S.reScan_lt=function(){var r=this.type;return r===l.bitShift?(this.pos-=2,this.finishOp(l.relational,1),l.relational):r},S.resetEndLocation=function(r,u){u===void 0&&(u=this.lastTokEndLoc),r.end=u.column,r.loc.end=u,this.options.ranges&&(r.range[1]=u.column)},S.startNodeAtNode=function(r){return j.prototype.startNodeAt.call(this,r.start,r.loc.start)},S.nextTokenStart=function(){return this.nextTokenStartSince(this.pos)},S.tsHasSomeModifiers=function(r,u){return u.some(function(d){return eo(d)?r.accessibility===d:!!r[d]})},S.tsIsStartOfStaticBlocks=function(){return this.isContextual("static")&&this.lookaheadCharCode()===123},S.tsCheckForInvalidTypeCasts=function(r){var u=this;r.forEach(function(d){d?.type==="TSTypeCastExpression"&&u.raise(d.typeAnnotation.start,re.UnexpectedTypeAnnotation)})},S.atPossibleAsyncArrow=function(r){return r.type==="Identifier"&&r.name==="async"&&this.lastTokEndLoc.column===r.end&&!this.canInsertSemicolon()&&r.end-r.start==5&&r.start===this.potentialArrowAt},S.tsIsIdentifier=function(){return K(this.type)},S.tsTryParseTypeOrTypePredicateAnnotation=function(){return this.match(l.colon)?this.tsParseTypeOrTypePredicateAnnotation(l.colon):void 0},S.tsTryParseGenericAsyncArrowFunction=function(r,u,d){var y=this;if(this.tsMatchLeftRelational()){var C=this.maybeInArrowParameters;this.maybeInArrowParameters=!0;var A=this.tsTryParseAndCatch(function(){var k=y.startNodeAt(r,u);return k.typeParameters=y.tsParseTypeParameters(),j.prototype.parseFunctionParams.call(y,k),k.returnType=y.tsTryParseTypeOrTypePredicateAnnotation(),y.expect(l.arrow),k});if(this.maybeInArrowParameters=C,A)return j.prototype.parseArrowExpression.call(this,A,null,!0,d)}},S.tsParseTypeArgumentsInExpression=function(){if(this.reScan_lt()===l.relational)return this.tsParseTypeArguments()},S.tsInNoContext=function(r){var u=this.context;this.context=[u[0]];try{return r()}finally{this.context=u}},S.tsTryParseTypeAnnotation=function(){return this.match(l.colon)?this.tsParseTypeAnnotation():void 0},S.isUnparsedContextual=function(r,u){var d=r+u.length;if(this.input.slice(r,d)===u){var y=this.input.charCodeAt(d);return!(D(y)||(64512&y)==55296)}return!1},S.isAbstractConstructorSignature=function(){return this.ts_isContextual(V.abstract)&&this.lookahead().type===l._new},S.nextTokenStartSince=function(r){return Ds.lastIndex=r,Ds.test(this.input)?Ds.lastIndex:r},S.lookaheadCharCode=function(){return this.input.charCodeAt(this.nextTokenStart())},S.compareLookaheadState=function(r,u){for(var d=0,y=Object.keys(r);d<y.length;d++){var C=y[d];if(r[C]!==u[C])return!1}return!0},S.createLookaheadState=function(){this.value=null,this.context=[this.curContext()]},S.getCurLookaheadState=function(){return{endLoc:this.endLoc,lastTokEnd:this.lastTokEnd,lastTokStart:this.lastTokStart,lastTokStartLoc:this.lastTokStartLoc,pos:this.pos,value:this.value,type:this.type,start:this.start,end:this.end,context:this.context,startLoc:this.startLoc,lastTokEndLoc:this.lastTokEndLoc,curLine:this.curLine,lineStart:this.lineStart,curPosition:this.curPosition,containsEsc:this.containsEsc}},S.cloneCurLookaheadState=function(){return{pos:this.pos,value:this.value,type:this.type,start:this.start,end:this.end,context:this.context&&this.context.slice(),startLoc:this.startLoc,lastTokEndLoc:this.lastTokEndLoc,endLoc:this.endLoc,lastTokEnd:this.lastTokEnd,lastTokStart:this.lastTokStart,lastTokStartLoc:this.lastTokStartLoc,curLine:this.curLine,lineStart:this.lineStart,curPosition:this.curPosition,containsEsc:this.containsEsc}},S.setLookaheadState=function(r){this.pos=r.pos,this.value=r.value,this.endLoc=r.endLoc,this.lastTokEnd=r.lastTokEnd,this.lastTokStart=r.lastTokStart,this.lastTokStartLoc=r.lastTokStartLoc,this.type=r.type,this.start=r.start,this.end=r.end,this.context=r.context,this.startLoc=r.startLoc,this.lastTokEndLoc=r.lastTokEndLoc,this.curLine=r.curLine,this.lineStart=r.lineStart,this.curPosition=r.curPosition,this.containsEsc=r.containsEsc},S.tsLookAhead=function(r){var u=this.getCurLookaheadState(),d=r();return this.setLookaheadState(u),d},S.lookahead=function(r){var u=this.getCurLookaheadState();if(this.createLookaheadState(),this.isLookahead=!0,r!==void 0)for(var d=0;d<r;d++)this.nextToken();else this.nextToken();this.isLookahead=!1;var y=this.getCurLookaheadState();return this.setLookaheadState(u),y},S.readWord=function(){var r=this.readWord1(),u=l.name;return this.keywords.test(r)?u=P[r]:new RegExp(Q).test(r)&&(u=V[r]),this.finishToken(u,r)},S.skipBlockComment=function(){var r;this.isLookahead||(r=this.options.onComment&&this.curPosition());var u=this.pos,d=this.input.indexOf("*/",this.pos+=2);if(d===-1&&this.raise(this.pos-2,"Unterminated comment"),this.pos=d+2,this.options.locations)for(var y,C=u;(y=Z(this.input,C,this.pos))>-1;)++this.curLine,C=this.lineStart=y;this.isLookahead||this.options.onComment&&this.options.onComment(!0,this.input.slice(u+2,d),u,this.pos,r,this.curPosition())},S.skipLineComment=function(r){var u,d=this.pos;this.isLookahead||(u=this.options.onComment&&this.curPosition());for(var y=this.input.charCodeAt(this.pos+=r);this.pos<this.input.length&&!w(y);)y=this.input.charCodeAt(++this.pos);this.isLookahead||this.options.onComment&&this.options.onComment(!1,this.input.slice(d+r,this.pos),d,this.pos,u,this.curPosition())},S.finishToken=function(r,u){this.preValue=this.value,this.preToken=this.type,this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var d=this.type;this.type=r,this.value=u,this.isLookahead||this.updateContext(d)},S.resetStartLocation=function(r,u,d){r.start=u,r.loc.start=d,this.options.ranges&&(r.range[0]=u)},S.isLineTerminator=function(){return this.eat(l.semi)||j.prototype.canInsertSemicolon.call(this)},S.hasFollowingLineBreak=function(){return Qn.lastIndex=this.end,Qn.test(this.input)},S.addExtra=function(r,u,d,y){if(y===void 0&&(y=!0),r){var C=r.extra=r.extra||{};y?C[u]=d:Object.defineProperty(C,u,{enumerable:y,value:d})}},S.isLiteralPropertyName=function(){return $(this.type)},S.hasPrecedingLineBreak=function(){return B.test(this.input.slice(this.lastTokEndLoc.index,this.start))},S.createIdentifier=function(r,u){return r.name=u,this.finishNode(r,"Identifier")},S.resetStartLocationFromNode=function(r,u){this.resetStartLocation(r,u.start,u.loc.start)},S.isThisParam=function(r){return r.type==="Identifier"&&r.name==="this"},S.isLookaheadContextual=function(r){var u=this.nextTokenStart();return this.isUnparsedContextual(u,r)},S.ts_type_isContextual=function(r,u){return r===u&&!this.containsEsc},S.ts_isContextual=function(r){return this.type===r&&!this.containsEsc},S.ts_isContextualWithState=function(r,u){return r.type===u&&!r.containsEsc},S.isContextualWithState=function(r,u){return u.type===l.name&&u.value===r&&!u.containsEsc},S.tsIsStartOfMappedType=function(){return this.next(),this.eat(l.plusMin)?this.ts_isContextual(V.readonly):(this.ts_isContextual(V.readonly)&&this.next(),!!this.match(l.bracketL)&&(this.next(),!!this.tsIsIdentifier()&&(this.next(),this.match(l._in))))},S.tsInDisallowConditionalTypesContext=function(r){var u=this.inDisallowConditionalTypesContext;this.inDisallowConditionalTypesContext=!0;try{return r()}finally{this.inDisallowConditionalTypesContext=u}},S.tsTryParseType=function(){return this.tsEatThenParseType(l.colon)},S.match=function(r){return this.type===r},S.matchJsx=function(r){return this.type===b.tokTypes[r]},S.ts_eatWithState=function(r,u,d){if(r===d.type){for(var y=0;y<u;y++)this.next();return!0}return!1},S.ts_eatContextualWithState=function(r,u,d){if(Q.test(r)){if(this.ts_isContextualWithState(d,V[r])){for(var y=0;y<u;y++)this.next();return!0}return!1}if(!this.isContextualWithState(r,d))return!1;for(var C=0;C<u;C++)this.next();return!0},S.canHaveLeadingDecorator=function(){return this.match(l._class)},S.eatContextual=function(r){return Q.test(r)?!!this.ts_isContextual(V[r])&&(this.next(),!0):j.prototype.eatContextual.call(this,r)},S.tsIsExternalModuleReference=function(){return this.isContextual("require")&&this.lookaheadCharCode()===40},S.tsParseExternalModuleReference=function(){var r=this.startNode();return this.expectContextual("require"),this.expect(l.parenL),this.match(l.string)||this.unexpected(),r.expression=this.parseExprAtom(),this.expect(l.parenR),this.finishNode(r,"TSExternalModuleReference")},S.tsParseEntityName=function(r){r===void 0&&(r=!0);for(var u=this.parseIdent(r);this.eat(l.dot);){var d=this.startNodeAtNode(u);d.left=u,d.right=this.parseIdent(r),u=this.finishNode(d,"TSQualifiedName")}return u},S.tsParseEnumMember=function(){var r=this.startNode();return r.id=this.match(l.string)?this.parseLiteral(this.value):this.parseIdent(!0),this.eat(l.eq)&&(r.initializer=this.parseMaybeAssign()),this.finishNode(r,"TSEnumMember")},S.tsParseEnumDeclaration=function(r,u){return u===void 0&&(u={}),u.const&&(r.const=!0),u.declare&&(r.declare=!0),this.expectContextual("enum"),r.id=this.parseIdent(),this.checkLValSimple(r.id),this.expect(l.braceL),r.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(l.braceR),this.finishNode(r,"TSEnumDeclaration")},S.tsParseModuleBlock=function(){var r=this.startNode();for(j.prototype.enterScope.call(this,512),this.expect(l.braceL),r.body=[];this.type!==l.braceR;){var u=this.parseStatement(null,!0);r.body.push(u)}return this.next(),j.prototype.exitScope.call(this),this.finishNode(r,"TSModuleBlock")},S.tsParseAmbientExternalModuleDeclaration=function(r){return this.ts_isContextual(V.global)?(r.global=!0,r.id=this.parseIdent()):this.match(l.string)?r.id=this.parseLiteral(this.value):this.unexpected(),this.match(l.braceL)?(j.prototype.enterScope.call(this,oi),r.body=this.tsParseModuleBlock(),j.prototype.exitScope.call(this)):j.prototype.semicolon.call(this),this.finishNode(r,"TSModuleDeclaration")},S.tsTryParseDeclare=function(r){var u=this;if(!this.isLineTerminator()){var d,y=this.type;return this.isContextual("let")&&(y=l._var,d="let"),this.tsInAmbientContext(function(){if(y===l._function)return r.declare=!0,u.parseFunctionStatement(r,!1,!0);if(y===l._class)return r.declare=!0,u.parseClass(r,!0);if(y===V.enum)return u.tsParseEnumDeclaration(r,{declare:!0});if(y===V.global)return u.tsParseAmbientExternalModuleDeclaration(r);if(y===l._const||y===l._var)return u.match(l._const)&&u.isLookaheadContextual("enum")?(u.expect(l._const),u.tsParseEnumDeclaration(r,{const:!0,declare:!0})):(r.declare=!0,u.parseVarStatement(r,d||u.value,!0));if(y===V.interface){var C=u.tsParseInterfaceDeclaration(r,{declare:!0});if(C)return C}return K(y)?u.tsParseDeclaration(r,u.value,!0):void 0})}},S.tsIsListTerminator=function(r){switch(r){case"EnumMembers":case"TypeMembers":return this.match(l.braceR);case"HeritageClauseElement":return this.match(l.braceL);case"TupleElementTypes":return this.match(l.bracketR);case"TypeParametersOrArguments":return this.tsMatchRightRelational()}},S.tsParseDelimitedListWorker=function(r,u,d,y){for(var C=[],A=-1;!this.tsIsListTerminator(r);){A=-1;var k=u();if(k==null)return;if(C.push(k),!this.eat(l.comma)){if(this.tsIsListTerminator(r))break;return void(d&&this.expect(l.comma))}A=this.lastTokStart}return y&&(y.value=A),C},S.tsParseDelimitedList=function(r,u,d){return(function(y){if(y==null)throw new Error("Unexpected "+y+" value.");return y})(this.tsParseDelimitedListWorker(r,u,!0,d))},S.tsParseBracketedList=function(r,u,d,y,C){y||this.expect(d?l.bracketL:l.relational);var A=this.tsParseDelimitedList(r,u,C);return this.expect(d?l.bracketR:l.relational),A},S.tsParseTypeParameterName=function(){return this.parseIdent().name},S.tsEatThenParseType=function(r){return this.match(r)?this.tsNextThenParseType():void 0},S.tsExpectThenParseType=function(r){var u=this;return this.tsDoThenParseType(function(){return u.expect(r)})},S.tsNextThenParseType=function(){var r=this;return this.tsDoThenParseType(function(){return r.next()})},S.tsDoThenParseType=function(r){var u=this;return this.tsInType(function(){return r(),u.tsParseType()})},S.tsSkipParameterStart=function(){if(K(this.type)||this.match(l._this))return this.next(),!0;if(this.match(l.braceL))try{return this.parseObj(!0),!0}catch{return!1}if(this.match(l.bracketL)){this.next();try{return this.parseBindingList(l.bracketR,!0,!0),!0}catch{return!1}}return!1},S.tsIsUnambiguouslyStartOfFunctionType=function(){return this.next(),!!(this.match(l.parenR)||this.match(l.ellipsis)||this.tsSkipParameterStart()&&(this.match(l.colon)||this.match(l.comma)||this.match(l.question)||this.match(l.eq)||this.match(l.parenR)&&(this.next(),this.match(l.arrow))))},S.tsIsStartOfFunctionType=function(){return!!this.tsMatchLeftRelational()||this.match(l.parenL)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))},S.tsInAllowConditionalTypesContext=function(r){var u=this.inDisallowConditionalTypesContext;this.inDisallowConditionalTypesContext=!1;try{return r()}finally{this.inDisallowConditionalTypesContext=u}},S.tsParseBindingListForSignature=function(){var r=this;return j.prototype.parseBindingList.call(this,l.parenR,!0,!0).map(function(u){return u.type!=="Identifier"&&u.type!=="RestElement"&&u.type!=="ObjectPattern"&&u.type!=="ArrayPattern"&&r.raise(u.start,re.UnsupportedSignatureParameterKind(u.type)),u})},S.tsParseTypePredicateAsserts=function(){if(this.type!==V.asserts)return!1;var r=this.containsEsc;return this.next(),!(!K(this.type)&&!this.match(l._this)||(r&&this.raise(this.lastTokStart,"Escape sequence in keyword asserts"),0))},S.tsParseThisTypeNode=function(){var r=this.startNode();return this.next(),this.finishNode(r,"TSThisType")},S.tsParseTypeAnnotation=function(r,u){var d=this;return r===void 0&&(r=!0),u===void 0&&(u=this.startNode()),this.tsInType(function(){r&&d.expect(l.colon),u.typeAnnotation=d.tsParseType()}),this.finishNode(u,"TSTypeAnnotation")},S.tsParseThisTypePredicate=function(r){this.next();var u=this.startNodeAtNode(r);return u.parameterName=r,u.typeAnnotation=this.tsParseTypeAnnotation(!1),u.asserts=!1,this.finishNode(u,"TSTypePredicate")},S.tsParseThisTypeOrThisTypePredicate=function(){var r=this.tsParseThisTypeNode();return this.isContextual("is")&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(r):r},S.tsParseTypePredicatePrefix=function(){var r=this.parseIdent();if(this.isContextual("is")&&!this.hasPrecedingLineBreak())return this.next(),r},S.tsParseTypeOrTypePredicateAnnotation=function(r){var u=this;return this.tsInType(function(){var d=u.startNode();u.expect(r);var y=u.startNode(),C=!!u.tsTryParse(u.tsParseTypePredicateAsserts.bind(u));if(C&&u.match(l._this)){var A=u.tsParseThisTypeOrThisTypePredicate();return A.type==="TSThisType"?(y.parameterName=A,y.asserts=!0,y.typeAnnotation=null,A=u.finishNode(y,"TSTypePredicate")):(u.resetStartLocationFromNode(A,y),A.asserts=!0),d.typeAnnotation=A,u.finishNode(d,"TSTypeAnnotation")}var k=u.tsIsIdentifier()&&u.tsTryParse(u.tsParseTypePredicatePrefix.bind(u));if(!k)return C?(y.parameterName=u.parseIdent(),y.asserts=C,y.typeAnnotation=null,d.typeAnnotation=u.finishNode(y,"TSTypePredicate"),u.finishNode(d,"TSTypeAnnotation")):u.tsParseTypeAnnotation(!1,d);var L=u.tsParseTypeAnnotation(!1);return y.parameterName=k,y.typeAnnotation=L,y.asserts=C,d.typeAnnotation=u.finishNode(y,"TSTypePredicate"),u.finishNode(d,"TSTypeAnnotation")})},S.tsFillSignature=function(r,u){var d=r===l.arrow;u.typeParameters=this.tsTryParseTypeParameters(),this.expect(l.parenL),u.parameters=this.tsParseBindingListForSignature(),(d||this.match(r))&&(u.typeAnnotation=this.tsParseTypeOrTypePredicateAnnotation(r))},S.tsTryNextParseConstantContext=function(){if(this.lookahead().type!==l._const)return null;this.next();var r=this.tsParseTypeReference();return r.typeParameters&&this.raise(r.typeName.start,re.CannotFindName({name:"const"})),r},S.tsParseFunctionOrConstructorType=function(r,u){var d=this,y=this.startNode();return r==="TSConstructorType"&&(y.abstract=!!u,u&&this.next(),this.next()),this.tsInAllowConditionalTypesContext(function(){return d.tsFillSignature(l.arrow,y)}),this.finishNode(y,r)},S.tsParseUnionOrIntersectionType=function(r,u,d){var y=this.startNode(),C=this.eat(d),A=[];do A.push(u());while(this.eat(d));return A.length!==1||C?(y.types=A,this.finishNode(y,r)):A[0]},S.tsCheckTypeAnnotationForReadOnly=function(r){switch(r.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(r.start,re.UnexpectedReadonly)}},S.tsParseTypeOperator=function(){var r=this.startNode(),u=this.value;return this.next(),r.operator=u,r.typeAnnotation=this.tsParseTypeOperatorOrHigher(),u==="readonly"&&this.tsCheckTypeAnnotationForReadOnly(r),this.finishNode(r,"TSTypeOperator")},S.tsParseConstraintForInferType=function(){var r=this;if(this.eat(l._extends)){var u=this.tsInDisallowConditionalTypesContext(function(){return r.tsParseType()});if(this.inDisallowConditionalTypesContext||!this.match(l.question))return u}},S.tsParseInferType=function(){var r=this,u=this.startNode();this.expectContextual("infer");var d=this.startNode();return d.name=this.tsParseTypeParameterName(),d.constraint=this.tsTryParse(function(){return r.tsParseConstraintForInferType()}),u.typeParameter=this.finishNode(d,"TSTypeParameter"),this.finishNode(u,"TSInferType")},S.tsParseLiteralTypeNode=function(){var r=this,u=this.startNode();return u.literal=(function(){switch(r.type){case l.num:case l.string:case l._true:case l._false:return r.parseExprAtom();default:r.unexpected()}})(),this.finishNode(u,"TSLiteralType")},S.tsParseImportType=function(){var r=this.startNode();return this.expect(l._import),this.expect(l.parenL),this.match(l.string)||this.raise(this.start,re.UnsupportedImportTypeArgument),r.argument=this.parseExprAtom(),this.expect(l.parenR),this.eat(l.dot)&&(r.qualifier=this.tsParseEntityName()),this.tsMatchLeftRelational()&&(r.typeParameters=this.tsParseTypeArguments()),this.finishNode(r,"TSImportType")},S.tsParseTypeQuery=function(){var r=this.startNode();return this.expect(l._typeof),r.exprName=this.match(l._import)?this.tsParseImportType():this.tsParseEntityName(),!this.hasPrecedingLineBreak()&&this.tsMatchLeftRelational()&&(r.typeParameters=this.tsParseTypeArguments()),this.finishNode(r,"TSTypeQuery")},S.tsParseMappedTypeParameter=function(){var r=this.startNode();return r.name=this.tsParseTypeParameterName(),r.constraint=this.tsExpectThenParseType(l._in),this.finishNode(r,"TSTypeParameter")},S.tsParseMappedType=function(){var r=this.startNode();return this.expect(l.braceL),this.match(l.plusMin)?(r.readonly=this.value,this.next(),this.expectContextual("readonly")):this.eatContextual("readonly")&&(r.readonly=!0),this.expect(l.bracketL),r.typeParameter=this.tsParseMappedTypeParameter(),r.nameType=this.eatContextual("as")?this.tsParseType():null,this.expect(l.bracketR),this.match(l.plusMin)?(r.optional=this.value,this.next(),this.expect(l.question)):this.eat(l.question)&&(r.optional=!0),r.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(l.braceR),this.finishNode(r,"TSMappedType")},S.tsParseTypeLiteral=function(){var r=this.startNode();return r.members=this.tsParseObjectTypeMembers(),this.finishNode(r,"TSTypeLiteral")},S.tsParseTupleElementType=function(){var r=this.startLoc,u=this.start,d=this.eat(l.ellipsis),y=this.tsParseType(),C=this.eat(l.question);if(this.eat(l.colon)){var A=this.startNodeAtNode(y);A.optional=C,y.type!=="TSTypeReference"||y.typeParameters||y.typeName.type!=="Identifier"?(this.raise(y.start,re.InvalidTupleMemberLabel),A.label=y):A.label=y.typeName,A.elementType=this.tsParseType(),y=this.finishNode(A,"TSNamedTupleMember")}else if(C){var k=this.startNodeAtNode(y);k.typeAnnotation=y,y=this.finishNode(k,"TSOptionalType")}if(d){var L=this.startNodeAt(u,r);L.typeAnnotation=y,y=this.finishNode(L,"TSRestType")}return y},S.tsParseTupleType=function(){var r=this,u=this.startNode();u.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);var d=!1,y=null;return u.elementTypes.forEach(function(C){var A=C.type;!d||A==="TSRestType"||A==="TSOptionalType"||A==="TSNamedTupleMember"&&C.optional||r.raise(C.start,re.OptionalTypeBeforeRequired),d||(d=A==="TSNamedTupleMember"&&C.optional||A==="TSOptionalType");var k=A;A==="TSRestType"&&(k=(C=C.typeAnnotation).type);var L=k==="TSNamedTupleMember";y!=null||(y=L),y!==L&&r.raise(C.start,re.MixedLabeledAndUnlabeledElements)}),this.finishNode(u,"TSTupleType")},S.tsParseTemplateLiteralType=function(){var r=this.startNode();return r.literal=this.parseTemplate({isTagged:!1}),this.finishNode(r,"TSLiteralType")},S.tsParseTypeReference=function(){var r=this.startNode();return r.typeName=this.tsParseEntityName(),!this.hasPrecedingLineBreak()&&this.tsMatchLeftRelational()&&(r.typeParameters=this.tsParseTypeArguments()),this.finishNode(r,"TSTypeReference")},S.tsMatchLeftRelational=function(){return this.match(l.relational)&&this.value==="<"},S.tsMatchRightRelational=function(){return this.match(l.relational)&&this.value===">"},S.tsParseParenthesizedType=function(){var r=this.startNode();return this.expect(l.parenL),r.typeAnnotation=this.tsParseType(),this.expect(l.parenR),this.finishNode(r,"TSParenthesizedType")},S.tsParseNonArrayType=function(){switch(this.type){case l.string:case l.num:case l._true:case l._false:return this.tsParseLiteralTypeNode();case l.plusMin:if(this.value==="-"){var r=this.startNode();return this.lookahead().type!==l.num&&this.unexpected(),r.literal=this.parseMaybeUnary(),this.finishNode(r,"TSLiteralType")}break;case l._this:return this.tsParseThisTypeOrThisTypePredicate();case l._typeof:return this.tsParseTypeQuery();case l._import:return this.tsParseImportType();case l.braceL:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case l.bracketL:return this.tsParseTupleType();case l.parenL:return this.tsParseParenthesizedType();case l.backQuote:case l.dollarBraceL:return this.tsParseTemplateLiteralType();default:var u=this.type;if(K(u)||u===l._void||u===l._null){var d=u===l._void?"TSVoidKeyword":u===l._null?"TSNullKeyword":(function(C){switch(C){case"any":return"TSAnyKeyword";case"boolean":return"TSBooleanKeyword";case"bigint":return"TSBigIntKeyword";case"never":return"TSNeverKeyword";case"number":return"TSNumberKeyword";case"object":return"TSObjectKeyword";case"string":return"TSStringKeyword";case"symbol":return"TSSymbolKeyword";case"undefined":return"TSUndefinedKeyword";case"unknown":return"TSUnknownKeyword";default:return}})(this.value);if(d!==void 0&&this.lookaheadCharCode()!==46){var y=this.startNode();return this.next(),this.finishNode(y,d)}return this.tsParseTypeReference()}}this.unexpected()},S.tsParseArrayTypeOrHigher=function(){for(var r=this.tsParseNonArrayType();!this.hasPrecedingLineBreak()&&this.eat(l.bracketL);)if(this.match(l.bracketR)){var u=this.startNodeAtNode(r);u.elementType=r,this.expect(l.bracketR),r=this.finishNode(u,"TSArrayType")}else{var d=this.startNodeAtNode(r);d.objectType=r,d.indexType=this.tsParseType(),this.expect(l.bracketR),r=this.finishNode(d,"TSIndexedAccessType")}return r},S.tsParseTypeOperatorOrHigher=function(){var r=this;return X(this.type)&&!this.containsEsc?this.tsParseTypeOperator():this.isContextual("infer")?this.tsParseInferType():this.tsInAllowConditionalTypesContext(function(){return r.tsParseArrayTypeOrHigher()})},S.tsParseIntersectionTypeOrHigher=function(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),l.bitwiseAND)},S.tsParseUnionTypeOrHigher=function(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),l.bitwiseOR)},S.tsParseNonConditionalType=function(){return this.tsIsStartOfFunctionType()?this.tsParseFunctionOrConstructorType("TSFunctionType"):this.match(l._new)?this.tsParseFunctionOrConstructorType("TSConstructorType"):this.isAbstractConstructorSignature()?this.tsParseFunctionOrConstructorType("TSConstructorType",!0):this.tsParseUnionTypeOrHigher()},S.tsParseType=function(){var r=this;Zn(this.inType);var u=this.tsParseNonConditionalType();if(this.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(l._extends))return u;var d=this.startNodeAtNode(u);return d.checkType=u,d.extendsType=this.tsInDisallowConditionalTypesContext(function(){return r.tsParseNonConditionalType()}),this.expect(l.question),d.trueType=this.tsInAllowConditionalTypesContext(function(){return r.tsParseType()}),this.expect(l.colon),d.falseType=this.tsInAllowConditionalTypesContext(function(){return r.tsParseType()}),this.finishNode(d,"TSConditionalType")},S.tsIsUnambiguouslyIndexSignature=function(){return this.next(),!!K(this.type)&&(this.next(),this.match(l.colon))},S.tsInType=function(r){var u=this.inType;this.inType=!0;try{return r()}finally{this.inType=u}},S.tsTryParseIndexSignature=function(r){if(this.match(l.bracketL)&&this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this))){this.expect(l.bracketL);var u=this.parseIdent();u.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(u),this.expect(l.bracketR),r.parameters=[u];var d=this.tsTryParseTypeAnnotation();return d&&(r.typeAnnotation=d),this.tsParseTypeMemberSemicolon(),this.finishNode(r,"TSIndexSignature")}},S.tsParseNoneModifiers=function(r){this.tsParseModifiers({modified:r,allowedModifiers:[],disallowedModifiers:["in","out"],errorTemplate:re.InvalidModifierOnTypeParameterPositions})},S.tsParseTypeParameter=function(r){r===void 0&&(r=this.tsParseNoneModifiers.bind(this));var u=this.startNode();return r(u),u.name=this.tsParseTypeParameterName(),u.constraint=this.tsEatThenParseType(l._extends),u.default=this.tsEatThenParseType(l.eq),this.finishNode(u,"TSTypeParameter")},S.tsParseTypeParameters=function(r){var u=this.startNode();this.tsMatchLeftRelational()||this.matchJsx("jsxTagStart")?this.next():this.unexpected();var d={value:-1};return u.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,r),!1,!0,d),u.params.length===0&&this.raise(this.start,re.EmptyTypeParameters),d.value!==-1&&this.addExtra(u,"trailingComma",d.value),this.finishNode(u,"TSTypeParameterDeclaration")},S.tsTryParseTypeParameters=function(r){if(this.tsMatchLeftRelational())return this.tsParseTypeParameters(r)},S.tsTryParse=function(r){var u=this.getCurLookaheadState(),d=r();return d!==void 0&&d!==!1?d:void this.setLookaheadState(u)},S.tsTokenCanFollowModifier=function(){return(this.match(l.bracketL)||this.match(l.braceL)||this.match(l.star)||this.match(l.ellipsis)||this.match(l.privateId)||this.isLiteralPropertyName())&&!this.hasPrecedingLineBreak()},S.tsNextTokenCanFollowModifier=function(){return this.next(!0),this.tsTokenCanFollowModifier()},S.tsParseModifier=function(r,u){if(K(this.type)||this.type===l._in){var d=this.value;if(r.indexOf(d)!==-1&&!this.containsEsc){if(u&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return d}}},S.tsParseModifiersByMap=function(r){for(var u=r.modified,d=r.map,y=0,C=Object.keys(d);y<C.length;y++){var A=C[y];u[A]=d[A]}},S.tsParseModifiers=function(r){for(var u=this,d=r.modified,y=r.allowedModifiers,C=r.disallowedModifiers,A=r.stopOnStartOfClassStaticBlock,k=r.errorTemplate,L=k===void 0?re.InvalidModifierOnTypeMember:k,N={},W=function(U,Y,oe,de){Y===oe&&d[de]&&u.raise(U.column,re.InvalidModifiersOrder({orderedModifiers:[oe,de]}))},J=function(U,Y,oe,de){(d[oe]&&Y===de||d[de]&&Y===oe)&&u.raise(U.column,re.IncompatibleModifiers({modifiers:[oe,de]}))};;){var F=this.startLoc,q=this.tsParseModifier(y.concat(C??[]),A);if(!q)break;eo(q)?d.accessibility?this.raise(this.start,re.DuplicateAccessibilityModifier()):(W(F,q,q,"override"),W(F,q,q,"static"),W(F,q,q,"readonly"),W(F,q,q,"accessor"),N.accessibility=q,d.accessibility=q):cl(q)?d[q]?this.raise(this.start,re.DuplicateModifier({modifier:q})):(W(F,q,"in","out"),N[q]=q,d[q]=!0):hl(q)?d[q]?this.raise(this.start,re.DuplicateModifier({modifier:q})):(J(F,q,"accessor","readonly"),J(F,q,"accessor","static"),J(F,q,"accessor","override"),N[q]=q,d[q]=!0):Object.hasOwnProperty.call(d,q)?this.raise(this.start,re.DuplicateModifier({modifier:q})):(W(F,q,"static","readonly"),W(F,q,"static","override"),W(F,q,"override","readonly"),W(F,q,"abstract","override"),J(F,q,"declare","override"),J(F,q,"static","abstract"),N[q]=q,d[q]=!0),C!=null&&C.includes(q)&&this.raise(this.start,L)}return N},S.tsParseInOutModifiers=function(r){this.tsParseModifiers({modified:r,allowedModifiers:["in","out"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:re.InvalidModifierOnTypeParameter})},S.tsParseTypeArguments=function(){var r=this,u=this.startNode();return u.params=this.tsInType(function(){return r.tsInNoContext(function(){return r.expect(l.relational),r.tsParseDelimitedList("TypeParametersOrArguments",r.tsParseType.bind(r))})}),u.params.length===0&&this.raise(this.start,re.EmptyTypeArguments),this.exprAllowed=!1,this.expect(l.relational),this.finishNode(u,"TSTypeParameterInstantiation")},S.tsParseHeritageClause=function(r){var u=this,d=this.start,y=this.tsParseDelimitedList("HeritageClauseElement",function(){var C=u.startNode();return C.expression=u.tsParseEntityName(),u.tsMatchLeftRelational()&&(C.typeParameters=u.tsParseTypeArguments()),u.finishNode(C,"TSExpressionWithTypeArguments")});return y.length||this.raise(d,re.EmptyHeritageClauseType({token:r})),y},S.tsParseTypeMemberSemicolon=function(){this.eat(l.comma)||this.isLineTerminator()||this.expect(l.semi)},S.tsTryParseAndCatch=function(r){var u=this.tryParse(function(d){return r()||d()});if(!u.aborted&&u.node)return u.error&&this.setLookaheadState(u.failState),u.node},S.tsParseSignatureMember=function(r,u){return this.tsFillSignature(l.colon,u),this.tsParseTypeMemberSemicolon(),this.finishNode(u,r)},S.tsParsePropertyOrMethodSignature=function(r,u){this.eat(l.question)&&(r.optional=!0);var d=r;if(this.match(l.parenL)||this.tsMatchLeftRelational()){u&&this.raise(r.start,re.ReadonlyForMethodSignature);var y=d;y.kind&&this.tsMatchLeftRelational()&&this.raise(this.start,re.AccesorCannotHaveTypeParameters),this.tsFillSignature(l.colon,y),this.tsParseTypeMemberSemicolon();var C="parameters",A="typeAnnotation";if(y.kind==="get")y[C].length>0&&(this.raise(this.start,"A 'get' accesor must not have any formal parameters."),this.isThisParam(y[C][0])&&this.raise(this.start,re.AccesorCannotDeclareThisParameter));else if(y.kind==="set"){if(y[C].length!==1)this.raise(this.start,"A 'get' accesor must not have any formal parameters.");else{var k=y[C][0];this.isThisParam(k)&&this.raise(this.start,re.AccesorCannotDeclareThisParameter),k.type==="Identifier"&&k.optional&&this.raise(this.start,re.SetAccesorCannotHaveOptionalParameter),k.type==="RestElement"&&this.raise(this.start,re.SetAccesorCannotHaveRestParameter)}y[A]&&this.raise(y[A].start,re.SetAccesorCannotHaveReturnType)}else y.kind="method";return this.finishNode(y,"TSMethodSignature")}var L=d;u&&(L.readonly=!0);var N=this.tsTryParseTypeAnnotation();return N&&(L.typeAnnotation=N),this.tsParseTypeMemberSemicolon(),this.finishNode(L,"TSPropertySignature")},S.tsParseTypeMember=function(){var r=this.startNode();if(this.match(l.parenL)||this.tsMatchLeftRelational())return this.tsParseSignatureMember("TSCallSignatureDeclaration",r);if(this.match(l._new)){var u=this.startNode();return this.next(),this.match(l.parenL)||this.tsMatchLeftRelational()?this.tsParseSignatureMember("TSConstructSignatureDeclaration",r):(r.key=this.createIdentifier(u,"new"),this.tsParsePropertyOrMethodSignature(r,!1))}return this.tsParseModifiers({modified:r,allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]}),this.tsTryParseIndexSignature(r)||(this.parsePropertyName(r),r.computed||r.key.type!=="Identifier"||r.key.name!=="get"&&r.key.name!=="set"||!this.tsTokenCanFollowModifier()||(r.kind=r.key.name,this.parsePropertyName(r)),this.tsParsePropertyOrMethodSignature(r,!!r.readonly))},S.tsParseList=function(r,u){for(var d=[];!this.tsIsListTerminator(r);)d.push(u());return d},S.tsParseObjectTypeMembers=function(){this.expect(l.braceL);var r=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(l.braceR),r},S.tsParseInterfaceDeclaration=function(r,u){if(u===void 0&&(u={}),this.hasFollowingLineBreak())return null;this.expectContextual("interface"),u.declare&&(r.declare=!0),K(this.type)?(r.id=this.parseIdent(),this.checkLValSimple(r.id,7)):(r.id=null,this.raise(this.start,re.MissingInterfaceName)),r.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers.bind(this)),this.eat(l._extends)&&(r.extends=this.tsParseHeritageClause("extends"));var d=this.startNode();return d.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),r.body=this.finishNode(d,"TSInterfaceBody"),this.finishNode(r,"TSInterfaceDeclaration")},S.tsParseAbstractDeclaration=function(r){if(this.match(l._class))return r.abstract=!0,this.parseClass(r,!0);if(this.ts_isContextual(V.interface)){if(!this.hasFollowingLineBreak())return r.abstract=!0,this.tsParseInterfaceDeclaration(r)}else this.unexpected(r.start)},S.tsIsDeclarationStart=function(){return ae(this.type)},S.tsParseExpressionStatement=function(r,u){switch(u.name){case"declare":var d=this.tsTryParseDeclare(r);if(d)return d.declare=!0,d;break;case"global":if(this.match(l.braceL)){j.prototype.enterScope.call(this,oi);var y=r;return y.global=!0,y.id=u,y.body=this.tsParseModuleBlock(),j.prototype.exitScope.call(this),this.finishNode(y,"TSModuleDeclaration")}break;default:return this.tsParseDeclaration(r,u.name,!1)}},S.tsParseModuleReference=function(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(!1)},S.tsIsExportDefaultSpecifier=function(){var r=this.type,u=this.isAsyncFunction(),d=this.isLet();if(K(r)){if(u&&!this.containsEsc||d)return!1;if((r===V.type||r===V.interface)&&!this.containsEsc){var y=this.lookahead();if(K(y.type)&&!this.isContextualWithState("from",y)||y.type===l.braceL)return!1}}else if(!this.match(l._default))return!1;var C=this.nextTokenStart(),A=this.isUnparsedContextual(C,"from");if(this.input.charCodeAt(C)===44||K(this.type)&&A)return!0;if(this.match(l._default)&&A){var k=this.input.charCodeAt(this.nextTokenStartSince(C+4));return k===34||k===39}return!1},S.tsInAmbientContext=function(r){var u=this.isAmbientContext;this.isAmbientContext=!0;try{return r()}finally{this.isAmbientContext=u}},S.tsCheckLineTerminator=function(r){return r?!this.hasFollowingLineBreak()&&(this.next(),!0):!this.isLineTerminator()},S.tsParseModuleOrNamespaceDeclaration=function(r,u){if(u===void 0&&(u=!1),r.id=this.parseIdent(),u||this.checkLValSimple(r.id,8),this.eat(l.dot)){var d=this.startNode();this.tsParseModuleOrNamespaceDeclaration(d,!0),r.body=d}else j.prototype.enterScope.call(this,oi),r.body=this.tsParseModuleBlock(),j.prototype.exitScope.call(this);return this.finishNode(r,"TSModuleDeclaration")},S.checkLValSimple=function(r,u,d){return u===void 0&&(u=0),j.prototype.checkLValSimple.call(this,r,u,d)},S.tsParseTypeAliasDeclaration=function(r){var u=this;return r.id=this.parseIdent(),this.checkLValSimple(r.id,6),r.typeAnnotation=this.tsInType(function(){if(r.typeParameters=u.tsTryParseTypeParameters(u.tsParseInOutModifiers.bind(u)),u.expect(l.eq),u.ts_isContextual(V.interface)&&u.lookahead().type!==l.dot){var d=u.startNode();return u.next(),u.finishNode(d,"TSIntrinsicKeyword")}return u.tsParseType()}),this.semicolon(),this.finishNode(r,"TSTypeAliasDeclaration")},S.tsParseDeclaration=function(r,u,d){switch(u){case"abstract":if(this.tsCheckLineTerminator(d)&&(this.match(l._class)||K(this.type)))return this.tsParseAbstractDeclaration(r);break;case"module":if(this.tsCheckLineTerminator(d)){if(this.match(l.string))return this.tsParseAmbientExternalModuleDeclaration(r);if(K(this.type))return this.tsParseModuleOrNamespaceDeclaration(r)}break;case"namespace":if(this.tsCheckLineTerminator(d)&&K(this.type))return this.tsParseModuleOrNamespaceDeclaration(r);break;case"type":if(this.tsCheckLineTerminator(d)&&K(this.type))return this.tsParseTypeAliasDeclaration(r)}},S.tsTryParseExportDeclaration=function(){return this.tsParseDeclaration(this.startNode(),this.value,!0)},S.tsParseImportEqualsDeclaration=function(r,u){r.isExport=u||!1,r.id=this.parseIdent(),this.checkLValSimple(r.id,2),j.prototype.expect.call(this,l.eq);var d=this.tsParseModuleReference();return r.importKind==="type"&&d.type!=="TSExternalModuleReference"&&this.raise(d.start,re.ImportAliasHasImportType),r.moduleReference=d,j.prototype.semicolon.call(this),this.finishNode(r,"TSImportEqualsDeclaration")},S.isExportDefaultSpecifier=function(){if(this.tsIsDeclarationStart())return!1;var r=this.type;if(K(r)){if(this.isContextual("async")||this.isContextual("let"))return!1;if((r===V.type||r===V.interface)&&!this.containsEsc){var u=this.lookahead();if(K(u.type)&&!this.isContextualWithState("from",u)||u.type===l.braceL)return!1}}else if(!this.match(l._default))return!1;var d=this.nextTokenStart(),y=this.isUnparsedContextual(d,"from");if(this.input.charCodeAt(d)===44||K(this.type)&&y)return!0;if(this.match(l._default)&&y){var C=this.input.charCodeAt(this.nextTokenStartSince(d+4));return C===34||C===39}return!1},S.parseTemplate=function(r){var u=(r===void 0?{}:r).isTagged,d=u!==void 0&&u,y=this.startNode();this.next(),y.expressions=[];var C=this.parseTemplateElement({isTagged:d});for(y.quasis=[C];!C.tail;)this.type===l.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(l.dollarBraceL),y.expressions.push(this.inType?this.tsParseType():this.parseExpression()),this.expect(l.braceR),y.quasis.push(C=this.parseTemplateElement({isTagged:d}));return this.next(),this.finishNode(y,"TemplateLiteral")},S.parseFunction=function(r,u,d,y,C){this.initFunction(r),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!y)&&(this.type===l.star&&2&u&&this.unexpected(),r.generator=this.eat(l.star)),this.options.ecmaVersion>=8&&(r.async=!!y),1&u&&(r.id=4&u&&this.type!==l.name?null:this.parseIdent());var A=this.yieldPos,k=this.awaitPos,L=this.awaitIdentPos,N=this.maybeInArrowParameters;this.maybeInArrowParameters=!1,this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Fs(r.async,r.generator)),1&u||(r.id=this.type===l.name?this.parseIdent():null),this.parseFunctionParams(r);var W=1&u;return this.parseFunctionBody(r,d,!1,C,{isFunctionDeclaration:W}),this.yieldPos=A,this.awaitPos=k,this.awaitIdentPos=L,1&u&&r.id&&!(2&u)&&this.checkLValSimple(r.id,r.body?this.strict||r.generator||r.async?this.treatFunctionsAsVar?1:2:3:0),this.maybeInArrowParameters=N,this.finishNode(r,W?"FunctionDeclaration":"FunctionExpression")},S.parseFunctionBody=function(r,u,d,y,C){u===void 0&&(u=!1),d===void 0&&(d=!1),y===void 0&&(y=!1),this.match(l.colon)&&(r.returnType=this.tsParseTypeOrTypePredicateAnnotation(l.colon));var A=C!=null&&C.isFunctionDeclaration?"TSDeclareFunction":C!=null&&C.isClassMethod?"TSDeclareMethod":void 0;return A&&!this.match(l.braceL)&&this.isLineTerminator()?this.finishNode(r,A):A==="TSDeclareFunction"&&this.isAmbientContext&&(this.raise(r.start,re.DeclareFunctionHasImplementation),r.declare)?(j.prototype.parseFunctionBody.call(this,r,u,d,!1),this.finishNode(r,A)):(j.prototype.parseFunctionBody.call(this,r,u,d,y),r)},S.parseNew=function(){var r;this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var u=this.startNode(),d=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(l.dot)){u.meta=d;var y=this.containsEsc;return u.property=this.parseIdent(!0),u.property.name!=="target"&&this.raiseRecoverable(u.property.start,"The only valid meta property for new is 'new.target'"),y&&this.raiseRecoverable(u.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(u.start,"'new.target' can only be used in functions and class static block"),this.finishNode(u,"MetaProperty")}var C=this.start,A=this.startLoc,k=this.type===l._import;u.callee=this.parseSubscripts(this.parseExprAtom(),C,A,!0,!1),k&&u.callee.type==="ImportExpression"&&this.raise(C,"Cannot use new with import()");var L=u.callee;return L.type!=="TSInstantiationExpression"||(r=L.extra)!=null&&r.parenthesized||(u.typeParameters=L.typeParameters,u.callee=L.expression),u.arguments=this.eat(l.parenL)?this.parseExprList(l.parenR,this.options.ecmaVersion>=8,!1):[],this.finishNode(u,"NewExpression")},S.parseExprOp=function(r,u,d,y,C){var A;if(l._in.binop>y&&!this.hasPrecedingLineBreak()&&(this.isContextual("as")&&(A="TSAsExpression"),c&&this.isContextual("satisfies")&&(A="TSSatisfiesExpression"),A)){var k=this.startNodeAt(u,d);k.expression=r;var L=this.tsTryNextParseConstantContext();return k.typeAnnotation=L||this.tsNextThenParseType(),this.finishNode(k,A),this.reScan_lt_gt(),this.parseExprOp(k,u,d,y,C)}return j.prototype.parseExprOp.call(this,r,u,d,y,C)},S.parseImportSpecifiers=function(){var r=[],u=!0;if(b.tokenIsIdentifier(this.type)&&(r.push(this.parseImportDefaultSpecifier()),!this.eat(l.comma)))return r;if(this.type===l.star)return r.push(this.parseImportNamespaceSpecifier()),r;for(this.expect(l.braceL);!this.eat(l.braceR);){if(u)u=!1;else if(this.expect(l.comma),this.afterTrailingComma(l.braceR))break;r.push(this.parseImportSpecifier())}return r},S.parseImport=function(r){var u=this.lookahead();if(r.importKind="value",this.importOrExportOuterKind="value",K(u.type)||this.match(l.star)||this.match(l.braceL)){var d=this.lookahead(2);if(d.type!==l.comma&&!this.isContextualWithState("from",d)&&d.type!==l.eq&&this.ts_eatContextualWithState("type",1,u)&&(this.importOrExportOuterKind="type",r.importKind="type",u=this.lookahead(),d=this.lookahead(2)),K(u.type)&&d.type===l.eq){this.next();var y=this.tsParseImportEqualsDeclaration(r);return this.importOrExportOuterKind="value",y}}return this.next(),this.type===l.string?(r.specifiers=[],r.source=this.parseExprAtom()):(r.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),r.source=this.type===l.string?this.parseExprAtom():this.unexpected()),this.parseMaybeImportAttributes(r),this.semicolon(),this.finishNode(r,"ImportDeclaration"),this.importOrExportOuterKind="value",r.importKind==="type"&&r.specifiers.length>1&&r.specifiers[0].type==="ImportDefaultSpecifier"&&this.raise(r.start,re.TypeImportCannotSpecifyDefaultAndNamed),r},S.parseExportDefaultDeclaration=function(){if(this.isAbstractClass()){var r=this.startNode();return this.next(),r.abstract=!0,this.parseClass(r,!0)}if(this.match(V.interface)){var u=this.tsParseInterfaceDeclaration(this.startNode());if(u)return u}return j.prototype.parseExportDefaultDeclaration.call(this)},S.parseExportAllDeclaration=function(r,u){return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(r.exported=this.parseModuleExportName(),this.checkExport(u,r.exported,this.lastTokStart)):r.exported=null),this.expectContextual("from"),this.type!==l.string&&this.unexpected(),r.source=this.parseExprAtom(),this.parseMaybeImportAttributes(r),this.semicolon(),this.finishNode(r,"ExportAllDeclaration")},S.parseDynamicImport=function(r){if(this.next(),r.source=this.parseMaybeAssign(),this.eat(l.comma)){var u=this.parseExpression();r.arguments=[u]}if(!this.eat(l.parenR)){var d=this.start;this.eat(l.comma)&&this.eat(l.parenR)?this.raiseRecoverable(d,"Trailing comma is not allowed in import()"):this.unexpected(d)}return this.finishNode(r,"ImportExpression")},S.parseExport=function(r,u){var d=this.lookahead();if(this.ts_eatWithState(l._import,2,d)){this.ts_isContextual(V.type)&&this.lookaheadCharCode()!==61?(r.importKind="type",this.importOrExportOuterKind="type",this.next()):(r.importKind="value",this.importOrExportOuterKind="value");var y=this.tsParseImportEqualsDeclaration(r,!0);return this.importOrExportOuterKind=void 0,y}if(this.ts_eatWithState(l.eq,2,d)){var C=r;return C.expression=this.parseExpression(),this.semicolon(),this.importOrExportOuterKind=void 0,this.finishNode(C,"TSExportAssignment")}if(this.ts_eatContextualWithState("as",2,d)){var A=r;return this.expectContextual("namespace"),A.id=this.parseIdent(),this.semicolon(),this.importOrExportOuterKind=void 0,this.finishNode(A,"TSNamespaceExportDeclaration")}if(this.ts_isContextualWithState(d,V.type)&&this.lookahead(2).type===l.braceL?(this.next(),this.importOrExportOuterKind="type",r.exportKind="type"):(this.importOrExportOuterKind="value",r.exportKind="value"),this.next(),this.eat(l.star))return this.parseExportAllDeclaration(r,u);if(this.eat(l._default))return this.checkExport(u,"default",this.lastTokStart),r.declaration=this.parseExportDefaultDeclaration(),this.finishNode(r,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())r.declaration=this.parseExportDeclaration(r),r.declaration.type==="VariableDeclaration"?this.checkVariableExport(u,r.declaration.declarations):this.checkExport(u,r.declaration.id,r.declaration.id.start),r.specifiers=[],r.source=null;else{if(r.declaration=null,r.specifiers=this.parseExportSpecifiers(u),this.eatContextual("from"))this.type!==l.string&&this.unexpected(),r.source=this.parseExprAtom(),this.parseMaybeImportAttributes(r);else{for(var k,L=Jn(r.specifiers);!(k=L()).done;){var N=k.value;this.checkUnreserved(N.local),this.checkLocalExport(N.local),N.local.type==="Literal"&&this.raise(N.local.start,"A string literal cannot be used as an exported binding without `from`.")}r.source=null}this.semicolon()}return this.finishNode(r,"ExportNamedDeclaration")},S.checkExport=function(r,u,d){r&&(typeof u!="string"&&(u=u.type==="Identifier"?u.name:u.value),r[u]=!0)},S.parseMaybeDefault=function(r,u,d){var y=j.prototype.parseMaybeDefault.call(this,r,u,d);return y.type==="AssignmentPattern"&&y.typeAnnotation&&y.right.start<y.typeAnnotation.start&&this.raise(y.typeAnnotation.start,re.TypeAnnotationAfterAssign),y},S.typeCastToParameter=function(r){return r.expression.typeAnnotation=r.typeAnnotation,this.resetEndLocation(r.expression,r.typeAnnotation.end),r.expression},S.toAssignableList=function(r,u){for(var d=0;d<r.length;d++){var y=r[d];y?.type==="TSTypeCastExpression"&&(r[d]=this.typeCastToParameter(y))}return j.prototype.toAssignableList.call(this,r,u)},S.reportReservedArrowTypeParam=function(r){},S.parseExprAtom=function(r,u,d){if(this.type===V.jsxText)return this.jsx_parseText();if(this.type===V.jsxTagStart)return this.jsx_parseElement();if(this.type===V.at)return this.parseDecorators(),this.parseExprAtom();if(K(this.type)){var y=this.potentialArrowAt===this.start,C=this.start,A=this.startLoc,k=this.containsEsc,L=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!k&&L.name==="async"&&!this.canInsertSemicolon()&&this.eat(l._function))return this.overrideContext(E.f_expr),this.parseFunction(this.startNodeAt(C,A),0,!1,!0,u);if(y&&!this.canInsertSemicolon()){if(this.eat(l.arrow))return this.parseArrowExpression(this.startNodeAt(C,A),[L],!1,u);if(this.options.ecmaVersion>=8&&L.name==="async"&&this.type===l.name&&!k&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc))return L=this.parseIdent(!1),!this.canInsertSemicolon()&&this.eat(l.arrow)||this.unexpected(),this.parseArrowExpression(this.startNodeAt(C,A),[L],!0,u)}return L}return j.prototype.parseExprAtom.call(this,r,u,d)},S.parseExprAtomDefault=function(){if(K(this.type)){var r=this.potentialArrowAt===this.start,u=this.containsEsc,d=this.parseIdent();if(!u&&d.name==="async"&&!this.canInsertSemicolon()){var y=this.type;if(y===l._function)return this.next(),this.parseFunction(this.startNodeAtNode(d),void 0,!0,!0);if(K(y)){if(this.lookaheadCharCode()===61){var C=this.parseIdent(!1);return!this.canInsertSemicolon()&&this.eat(l.arrow)||this.unexpected(),this.parseArrowExpression(this.startNodeAtNode(d),[C],!0)}return d}}return r&&this.match(l.arrow)&&!this.canInsertSemicolon()?(this.next(),this.parseArrowExpression(this.startNodeAtNode(d),[d],!1)):d}this.unexpected()},S.parseIdentNode=function(){var r=this.startNode();return ne(this.type)?(r.name=this.value,r):j.prototype.parseIdentNode.call(this)},S.parseVarStatement=function(r,u,d){d===void 0&&(d=!1);var y=this.isAmbientContext;this.next(),j.prototype.parseVar.call(this,r,!1,u,d||y),this.semicolon();var C=this.finishNode(r,"VariableDeclaration");if(!y)return C;for(var A,k=Jn(C.declarations);!(A=k()).done;){var L=A.value,N=L.init;N&&(u!=="const"||L.id.typeAnnotation?this.raise(N.start,re.InitializerNotAllowedInAmbientContext):N.type!=="StringLiteral"&&N.type!=="BooleanLiteral"&&N.type!=="NumericLiteral"&&N.type!=="BigIntLiteral"&&(N.type!=="TemplateLiteral"||N.expressions.length>0)&&!ll(N)&&this.raise(N.start,re.ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference))}return C},S.parseStatement=function(r,u,d){if(this.match(V.at)&&this.parseDecorators(!0),this.match(l._const)&&this.isLookaheadContextual("enum")){var y=this.startNode();return this.expect(l._const),this.tsParseEnumDeclaration(y,{const:!0})}if(this.ts_isContextual(V.enum))return this.tsParseEnumDeclaration(this.startNode());if(this.ts_isContextual(V.interface)){var C=this.tsParseInterfaceDeclaration(this.startNode());if(C)return C}return j.prototype.parseStatement.call(this,r,u,d)},S.parseAccessModifier=function(){return this.tsParseModifier(["public","protected","private"])},S.parsePostMemberNameModifiers=function(r){this.eat(l.question)&&(r.optional=!0),r.readonly&&this.match(l.parenL)&&this.raise(r.start,re.ClassMethodHasReadonly),r.declare&&this.match(l.parenL)&&this.raise(r.start,re.ClassMethodHasDeclare)},S.parseExpressionStatement=function(r,u){return(u.type==="Identifier"?this.tsParseExpressionStatement(r,u):void 0)||j.prototype.parseExpressionStatement.call(this,r,u)},S.shouldParseExportStatement=function(){return!!this.tsIsDeclarationStart()||!!this.match(V.at)||j.prototype.shouldParseExportStatement.call(this)},S.parseConditional=function(r,u,d,y,C){if(this.eat(l.question)){var A=this.startNodeAt(u,d);return A.test=r,A.consequent=this.parseMaybeAssign(),this.expect(l.colon),A.alternate=this.parseMaybeAssign(y),this.finishNode(A,"ConditionalExpression")}return r},S.parseMaybeConditional=function(r,u){var d=this,y=this.start,C=this.startLoc,A=this.parseExprOps(r,u);if(this.checkExpressionErrors(u))return A;if(!this.maybeInArrowParameters||!this.match(l.question))return this.parseConditional(A,y,C,r,u);var k=this.tryParse(function(){return d.parseConditional(A,y,C,r,u)});return k.node?(k.error&&this.setLookaheadState(k.failState),k.node):(k.error&&this.setOptionalParametersError(u,k.error),A)},S.parseParenItem=function(r){var u=this.start,d=this.startLoc;if(r=j.prototype.parseParenItem.call(this,r),this.eat(l.question)&&(r.optional=!0,this.resetEndLocation(r)),this.match(l.colon)){var y=this.startNodeAt(u,d);return y.expression=r,y.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(y,"TSTypeCastExpression")}return r},S.parseExportDeclaration=function(r){var u=this;if(!this.isAmbientContext&&this.ts_isContextual(V.declare))return this.tsInAmbientContext(function(){return u.parseExportDeclaration(r)});var d=this.start,y=this.startLoc,C=this.eatContextual("declare");!C||!this.ts_isContextual(V.declare)&&this.shouldParseExportStatement()||this.raise(this.start,re.ExpectedAmbientAfterExportDeclare);var A=K(this.type)&&this.tsTryParseExportDeclaration()||this.parseStatement(null);return A?((A.type==="TSInterfaceDeclaration"||A.type==="TSTypeAliasDeclaration"||C)&&(r.exportKind="type"),C&&(this.resetStartLocation(A,d,y),A.declare=!0),A):null},S.parseClassId=function(r,u){if(u||!this.isContextual("implements")){j.prototype.parseClassId.call(this,r,u);var d=this.tsTryParseTypeParameters(this.tsParseInOutModifiers.bind(this));d&&(r.typeParameters=d)}},S.parseClassPropertyAnnotation=function(r){r.optional||(this.value==="!"&&this.eat(l.prefix)?r.definite=!0:this.eat(l.question)&&(r.optional=!0));var u=this.tsTryParseTypeAnnotation();u&&(r.typeAnnotation=u)},S.parseClassField=function(r){if(r.key.type==="PrivateIdentifier")r.abstract&&this.raise(r.start,re.PrivateElementHasAbstract),r.accessibility&&this.raise(r.start,re.PrivateElementHasAccessibility({modifier:r.accessibility})),this.parseClassPropertyAnnotation(r);else if(this.parseClassPropertyAnnotation(r),this.isAmbientContext&&(!r.readonly||r.typeAnnotation)&&this.match(l.eq)&&this.raise(this.start,re.DeclareClassFieldHasInitializer),r.abstract&&this.match(l.eq)){var u=r.key;this.raise(this.start,re.AbstractPropertyHasInitializer({propertyName:u.type!=="Identifier"||r.computed?"["+this.input.slice(u.start,u.end)+"]":u.name}))}return j.prototype.parseClassField.call(this,r)},S.parseClassMethod=function(r,u,d,y){var C=r.kind==="constructor",A=r.key.type==="PrivateIdentifier",k=this.tsTryParseTypeParameters();A?(k&&(r.typeParameters=k),r.accessibility&&this.raise(r.start,re.PrivateMethodsHasAccessibility({modifier:r.accessibility}))):k&&C&&this.raise(k.start,re.ConstructorHasTypeParameters);var L=r.declare,N=r.kind;!(L!==void 0&&L)||N!=="get"&&N!=="set"||this.raise(r.start,re.DeclareAccessor({kind:N})),k&&(r.typeParameters=k);var W=r.key;r.kind==="constructor"?(u&&this.raise(W.start,"Constructor can't be a generator"),d&&this.raise(W.start,"Constructor can't be an async method")):r.static&&Yn(r,"prototype")&&this.raise(W.start,"Classes may not have a static property named prototype");var J=r.value=this.parseMethod(u,d,y,!0,r);return r.kind==="get"&&J.params.length!==0&&this.raiseRecoverable(J.start,"getter should have no params"),r.kind==="set"&&J.params.length!==1&&this.raiseRecoverable(J.start,"setter should have exactly one param"),r.kind==="set"&&J.params[0].type==="RestElement"&&this.raiseRecoverable(J.params[0].start,"Setter cannot use rest params"),this.finishNode(r,"MethodDefinition")},S.isClassMethod=function(){return this.match(l.relational)},S.parseClassElement=function(r){var u=this;if(this.eat(l.semi))return null;var d,y=this.options.ecmaVersion,C=this.startNode(),A="",k=!1,L=!1,N="method",W=["declare","private","public","protected","accessor","override","abstract","readonly","static"],J=this.tsParseModifiers({modified:C,allowedModifiers:W,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:re.InvalidModifierOnTypeParameterPositions});d=!!J.static;var F=function(){if(!u.tsIsStartOfStaticBlocks()){var q=u.tsTryParseIndexSignature(C);if(q)return C.abstract&&u.raise(C.start,re.IndexSignatureHasAbstract),C.accessibility&&u.raise(C.start,re.IndexSignatureHasAccessibility({modifier:C.accessibility})),C.declare&&u.raise(C.start,re.IndexSignatureHasDeclare),C.override&&u.raise(C.start,re.IndexSignatureHasOverride),q;if(!u.inAbstractClass&&C.abstract&&u.raise(C.start,re.NonAbstractClassHasAbstractMethod),C.override&&r&&u.raise(C.start,re.OverrideNotInSubClass),C.static=d,d&&(u.isClassElementNameStart()||u.type===l.star||(A="static")),!A&&y>=8&&u.eatContextual("async")&&(!u.isClassElementNameStart()&&u.type!==l.star||u.canInsertSemicolon()?A="async":L=!0),!A&&(y>=9||!L)&&u.eat(l.star)&&(k=!0),!A&&!L&&!k){var U=u.value;(u.eatContextual("get")||u.eatContextual("set"))&&(u.isClassElementNameStart()?N=U:A=U)}if(A?(C.computed=!1,C.key=u.startNodeAt(u.lastTokStart,u.lastTokStartLoc),C.key.name=A,u.finishNode(C.key,"Identifier")):u.parseClassElementName(C),u.parsePostMemberNameModifiers(C),u.isClassMethod()||y<13||u.type===l.parenL||N!=="method"||k||L){var Y=!C.static&&Yn(C,"constructor"),oe=Y&&r;Y&&N!=="method"&&u.raise(C.key.start,"Constructor can't have get/set modifier"),C.kind=Y?"constructor":N,u.parseClassMethod(C,k,L,oe)}else u.parseClassField(C);return C}if(u.next(),u.next(),u.tsHasSomeModifiers(C,W)&&u.raise(u.start,re.StaticBlockCannotHaveModifier),y>=13)return j.prototype.parseClassStaticBlock.call(u,C),C};return C.declare?this.tsInAmbientContext(F):F(),C},S.isClassElementNameStart=function(){return!!this.tsIsIdentifier()||j.prototype.isClassElementNameStart.call(this)},S.parseClassSuper=function(r){j.prototype.parseClassSuper.call(this,r),r.superClass&&(this.tsMatchLeftRelational()||this.match(l.bitShift))&&(r.superTypeParameters=this.tsParseTypeArgumentsInExpression()),this.eatContextual("implements")&&(r.implements=this.tsParseHeritageClause("implements"))},S.parseFunctionParams=function(r){var u=this.tsTryParseTypeParameters();u&&(r.typeParameters=u),j.prototype.parseFunctionParams.call(this,r)},S.parseVarId=function(r,u){j.prototype.parseVarId.call(this,r,u),r.id.type==="Identifier"&&!this.hasPrecedingLineBreak()&&this.value==="!"&&this.eat(l.prefix)&&(r.definite=!0);var d=this.tsTryParseTypeAnnotation();d&&(r.id.typeAnnotation=d,this.resetEndLocation(r.id))},S.parseArrowExpression=function(r,u,d,y){this.match(l.colon)&&(r.returnType=this.tsParseTypeAnnotation());var C=this.yieldPos,A=this.awaitPos,k=this.awaitIdentPos;this.enterScope(16|Fs(d,!1)),this.initFunction(r);var L=this.maybeInArrowParameters;return this.options.ecmaVersion>=8&&(r.async=!!d),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.maybeInArrowParameters=!0,r.params=this.toAssignableList(u,!0),this.maybeInArrowParameters=!1,this.parseFunctionBody(r,!0,!1,y),this.yieldPos=C,this.awaitPos=A,this.awaitIdentPos=k,this.maybeInArrowParameters=L,this.finishNode(r,"ArrowFunctionExpression")},S.parseMaybeAssignOrigin=function(r,u,d){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(r);this.exprAllowed=!1}var y=!1,C=-1,A=-1,k=-1;u?(C=u.parenthesizedAssign,A=u.trailingComma,k=u.doubleProto,u.parenthesizedAssign=u.trailingComma=-1):(u=new ui,y=!0);var L=this.start,N=this.startLoc;(this.type===l.parenL||K(this.type))&&(this.potentialArrowAt=this.start,this.potentialArrowInForAwait=r==="await");var W=this.parseMaybeConditional(r,u);if(d&&(W=d.call(this,W,L,N)),this.type.isAssign){var J=this.startNodeAt(L,N);return J.operator=this.value,this.type===l.eq&&(W=this.toAssignable(W,!0,u)),y||(u.parenthesizedAssign=u.trailingComma=u.doubleProto=-1),u.shorthandAssign>=W.start&&(u.shorthandAssign=-1),this.type===l.eq?this.checkLValPattern(W):this.checkLValSimple(W),J.left=W,this.next(),J.right=this.parseMaybeAssign(r),k>-1&&(u.doubleProto=k),this.finishNode(J,"AssignmentExpression")}return y&&this.checkExpressionErrors(u,!0),C>-1&&(u.parenthesizedAssign=C),A>-1&&(u.trailingComma=A),W},S.parseMaybeAssign=function(r,u,d){var y,C,A,k,L,N,W,J,F,q,U,Y=this;if(this.matchJsx("jsxTagStart")||this.tsMatchLeftRelational()){if(J=this.cloneCurLookaheadState(),!(F=this.tryParse(function(){return Y.parseMaybeAssignOrigin(r,u,d)},J)).error)return F.node;var oe=this.context,de=oe[oe.length-1];de===b.tokContexts.tc_oTag&&oe[oe.length-2]===b.tokContexts.tc_expr?(oe.pop(),oe.pop()):de!==b.tokContexts.tc_oTag&&de!==b.tokContexts.tc_expr||oe.pop()}if(!((y=F)!=null&&y.error||this.tsMatchLeftRelational()))return this.parseMaybeAssignOrigin(r,u,d);J&&!this.compareLookaheadState(J,this.getCurLookaheadState())||(J=this.cloneCurLookaheadState());var ge=this.tryParse(function(ke){var Ie,ft;U=Y.tsParseTypeParameters();var je=Y.parseMaybeAssignOrigin(r,u,d);return(je.type!=="ArrowFunctionExpression"||(Ie=je.extra)!=null&&Ie.parenthesized)&&ke(),((ft=U)==null?void 0:ft.params.length)!==0&&Y.resetStartLocationFromNode(je,U),je.typeParameters=U,je},J);if(!ge.error&&!ge.aborted)return U&&this.reportReservedArrowTypeParam(U),ge.node;if(!F&&(Zn(!0),!(q=this.tryParse(function(){return Y.parseMaybeAssignOrigin(r,u,d)},J)).error))return q.node;if((C=F)!=null&&C.node)return this.setLookaheadState(F.failState),F.node;if(ge.node)return this.setLookaheadState(ge.failState),U&&this.reportReservedArrowTypeParam(U),ge.node;if((A=q)!=null&&A.node)return this.setLookaheadState(q.failState),q.node;throw(k=F)!=null&&k.thrown?F.error:ge.thrown?ge.error:(L=q)!=null&&L.thrown?q.error:((N=F)==null?void 0:N.error)||ge.error||((W=q)==null?void 0:W.error)},S.parseAssignableListItem=function(r){for(var u=[];this.match(V.at);)u.push(this.parseDecorator());var d,y=this.start,C=this.startLoc,A=!1,k=!1;if(r!==void 0){var L={};this.tsParseModifiers({modified:L,allowedModifiers:["public","private","protected","override","readonly"]}),d=L.accessibility,k=L.override,A=L.readonly,r===!1&&(d||A||k)&&this.raise(C.start,re.UnexpectedParameterModifier)}var N=this.parseMaybeDefault(y,C);this.parseBindingListItem(N);var W=this.parseMaybeDefault(N.start,N.loc,N);if(u.length&&(W.decorators=u),d||A||k){var J=this.startNodeAt(y,C);return d&&(J.accessibility=d),A&&(J.readonly=A),k&&(J.override=k),W.type!=="Identifier"&&W.type!=="AssignmentPattern"&&this.raise(J.start,re.UnsupportedParameterPropertyKind),J.parameter=W,this.finishNode(J,"TSParameterProperty")}return W},S.checkLValInnerPattern=function(r,u,d){u===void 0&&(u=0),r.type==="TSParameterProperty"?this.checkLValInnerPattern(r.parameter,u,d):j.prototype.checkLValInnerPattern.call(this,r,u,d)},S.parseBindingListItem=function(r){this.eat(l.question)&&(r.type==="Identifier"||this.isAmbientContext||this.inType||this.raise(r.start,re.PatternIsOptional),r.optional=!0);var u=this.tsTryParseTypeAnnotation();return u&&(r.typeAnnotation=u),this.resetEndLocation(r),r},S.isAssignable=function(r,u){var d=this;switch(r.type){case"TSTypeCastExpression":return this.isAssignable(r.expression,u);case"TSParameterProperty":case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":return!0;case"ObjectExpression":var y=r.properties.length-1;return r.properties.every(function(C,A){return C.type!=="ObjectMethod"&&(A===y||C.type!=="SpreadElement")&&d.isAssignable(C)});case"Property":case"ObjectProperty":return this.isAssignable(r.value);case"SpreadElement":return this.isAssignable(r.argument);case"ArrayExpression":return r.elements.every(function(C){return C===null||d.isAssignable(C)});case"AssignmentExpression":return r.operator==="=";case"ParenthesizedExpression":return this.isAssignable(r.expression);case"MemberExpression":case"OptionalMemberExpression":return!u;default:return!1}},S.toAssignable=function(r,u,d){switch(u===void 0&&(u=!1),d===void 0&&(d=new ui),r.type){case"ParenthesizedExpression":return this.toAssignableParenthesizedExpression(r,u,d);case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":return u||this.raise(r.start,re.UnexpectedTypeCastInParameter),this.toAssignable(r.expression,u,d);case"MemberExpression":break;case"AssignmentExpression":return u||r.left.type!=="TSTypeCastExpression"||(r.left=this.typeCastToParameter(r.left)),j.prototype.toAssignable.call(this,r,u,d);case"TSTypeCastExpression":return this.typeCastToParameter(r);default:return j.prototype.toAssignable.call(this,r,u,d)}return r},S.toAssignableParenthesizedExpression=function(r,u,d){switch(r.expression.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":return this.toAssignable(r.expression,u,d);default:return j.prototype.toAssignable.call(this,r,u,d)}},S.curPosition=function(){if(this.options.locations){var r=j.prototype.curPosition.call(this);return Object.defineProperty(r,"offset",{get:function(){return function(u){var d=new g.Position(this.line,this.column+u);return d.index=this.index+u,d}}}),r.index=this.pos,r}},S.parseBindingAtom=function(){return this.type===l._this?this.parseIdent(!0):j.prototype.parseBindingAtom.call(this)},S.shouldParseArrow=function(r){var u,d=this;if(u=this.match(l.colon)?r.every(function(C){return d.isAssignable(C,!0)}):!this.canInsertSemicolon()){if(this.match(l.colon)){var y=this.tryParse(function(C){var A=d.tsParseTypeOrTypePredicateAnnotation(l.colon);return!d.canInsertSemicolon()&&d.match(l.arrow)||C(),A});if(y.aborted)return this.shouldParseArrowReturnType=void 0,!1;y.thrown||(y.error&&this.setLookaheadState(y.failState),this.shouldParseArrowReturnType=y.node)}return!!this.match(l.arrow)||(this.shouldParseArrowReturnType=void 0,!1)}return this.shouldParseArrowReturnType=void 0,u},S.parseParenArrowList=function(r,u,d,y){var C=this.startNodeAt(r,u);return C.returnType=this.shouldParseArrowReturnType,this.shouldParseArrowReturnType=void 0,this.parseArrowExpression(C,d,!1,y)},S.parseParenAndDistinguishExpression=function(r,u){var d,y=this.start,C=this.startLoc,A=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){var k=this.maybeInArrowParameters;this.maybeInArrowParameters=!0,this.next();var L,N=this.start,W=this.startLoc,J=[],F=!0,q=!1,U=new ui,Y=this.yieldPos,oe=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==l.parenR;){if(F?F=!1:this.expect(l.comma),A&&this.afterTrailingComma(l.parenR,!0)){q=!0;break}if(this.type===l.ellipsis){L=this.start,J.push(this.parseParenItem(this.parseRestBinding())),this.type===l.comma&&this.raise(this.start,"Comma is not permitted after the rest element");break}J.push(this.parseMaybeAssign(u,U,this.parseParenItem))}var de=this.lastTokEnd,ge=this.lastTokEndLoc;if(this.expect(l.parenR),this.maybeInArrowParameters=k,r&&this.shouldParseArrow(J)&&this.eat(l.arrow))return this.checkPatternErrors(U,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=Y,this.awaitPos=oe,this.parseParenArrowList(y,C,J,u);J.length&&!q||this.unexpected(this.lastTokStart),L&&this.unexpected(L),this.checkExpressionErrors(U,!0),this.yieldPos=Y||this.yieldPos,this.awaitPos=oe||this.awaitPos,J.length>1?((d=this.startNodeAt(N,W)).expressions=J,this.finishNodeAt(d,"SequenceExpression",de,ge)):d=J[0]}else d=this.parseParenExpression();if(this.options.preserveParens){var ke=this.startNodeAt(y,C);return ke.expression=d,this.finishNode(ke,"ParenthesizedExpression")}return d},S.parseTaggedTemplateExpression=function(r,u,d,y){var C=this.startNodeAt(u,d);return C.tag=r,C.quasi=this.parseTemplate({isTagged:!0}),y&&this.raise(u,"Tagged Template Literals are not allowed in optionalChain."),this.finishNode(C,"TaggedTemplateExpression")},S.shouldParseAsyncArrow=function(){var r=this;if(!this.match(l.colon))return!this.canInsertSemicolon()&&this.eat(l.arrow);var u=this.tryParse(function(d){var y=r.tsParseTypeOrTypePredicateAnnotation(l.colon);return!r.canInsertSemicolon()&&r.match(l.arrow)||d(),y});return u.aborted?(this.shouldParseAsyncArrowReturnType=void 0,!1):u.thrown?void 0:(u.error&&this.setLookaheadState(u.failState),this.shouldParseAsyncArrowReturnType=u.node,!this.canInsertSemicolon()&&this.eat(l.arrow))},S.parseSubscriptAsyncArrow=function(r,u,d,y){var C=this.startNodeAt(r,u);return C.returnType=this.shouldParseAsyncArrowReturnType,this.shouldParseAsyncArrowReturnType=void 0,this.parseArrowExpression(C,d,!0,y)},S.parseExprList=function(r,u,d,y){for(var C=[],A=!0;!this.eat(r);){if(A)A=!1;else if(this.expect(l.comma),u&&this.afterTrailingComma(r))break;var k=void 0;d&&this.type===l.comma?k=null:this.type===l.ellipsis?(k=this.parseSpread(y),y&&this.type===l.comma&&y.trailingComma<0&&(y.trailingComma=this.start)):k=this.parseMaybeAssign(!1,y,this.parseParenItem),C.push(k)}return C},S.parseSubscript=function(r,u,d,y,C,A,k){var L=this,N=A;if(!this.hasPrecedingLineBreak()&&this.value==="!"&&this.match(l.prefix)){this.exprAllowed=!1,this.next();var W=this.startNodeAt(u,d);return W.expression=r,r=this.finishNode(W,"TSNonNullExpression")}var J=!1;if(this.match(l.questionDot)&&this.lookaheadCharCode()===60){if(y)return r;r.optional=!0,N=J=!0,this.next()}if(this.tsMatchLeftRelational()||this.match(l.bitShift)){var F,q=this.tsTryParseAndCatch(function(){if(!y&&L.atPossibleAsyncArrow(r)){var qe=L.tsTryParseGenericAsyncArrowFunction(u,d,k);if(qe)return r=qe}var St=L.tsParseTypeArgumentsInExpression();if(!St)return r;if(J&&!L.match(l.parenL))return F=L.curPosition(),r;if(m(L.type)||L.type===l.backQuote){var Ut=L.parseTaggedTemplateExpression(r,u,d,N);return Ut.typeParameters=St,Ut}if(!y&&L.eat(l.parenL)){var Ht=new ui,be=L.startNodeAt(u,d);return be.callee=r,be.arguments=L.parseExprList(l.parenR,L.options.ecmaVersion>=8,!1,Ht),L.tsCheckForInvalidTypeCasts(be.arguments),be.typeParameters=St,N&&(be.optional=J),L.checkExpressionErrors(Ht,!0),r=L.finishNode(be,"CallExpression")}var Ne=L.type;if(!(L.tsMatchRightRelational()||Ne===l.bitShift||Ne!==l.parenL&&(Pe=Ne,!!Pe.startsExpr)&&!L.hasPrecedingLineBreak())){var Pe,qt=L.startNodeAt(u,d);return qt.expression=r,qt.typeParameters=St,L.finishNode(qt,"TSInstantiationExpression")}});if(F&&this.unexpected(F),q)return q.type==="TSInstantiationExpression"&&(this.match(l.dot)||this.match(l.questionDot)&&this.lookaheadCharCode()!==40)&&this.raise(this.start,re.InvalidPropertyAccessAfterInstantiationExpression),r=q}var U=this.options.ecmaVersion>=11,Y=U&&this.eat(l.questionDot);y&&Y&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var oe=this.eat(l.bracketL);if(oe||Y&&this.type!==l.parenL&&this.type!==l.backQuote||this.eat(l.dot)){var de=this.startNodeAt(u,d);de.object=r,oe?(de.property=this.parseExpression(),this.expect(l.bracketR)):de.property=this.type===l.privateId&&r.type!=="Super"?this.parsePrivateIdent():this.parseIdent(this.options.allowReserved!=="never"),de.computed=!!oe,U&&(de.optional=Y),r=this.finishNode(de,"MemberExpression")}else if(!y&&this.eat(l.parenL)){var ge=this.maybeInArrowParameters;this.maybeInArrowParameters=!0;var ke=new ui,Ie=this.yieldPos,ft=this.awaitPos,je=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var kt=this.parseExprList(l.parenR,this.options.ecmaVersion>=8,!1,ke);if(C&&!Y&&this.shouldParseAsyncArrow())this.checkPatternErrors(ke,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=Ie,this.awaitPos=ft,this.awaitIdentPos=je,r=this.parseSubscriptAsyncArrow(u,d,kt,k);else{this.checkExpressionErrors(ke,!0),this.yieldPos=Ie||this.yieldPos,this.awaitPos=ft||this.awaitPos,this.awaitIdentPos=je||this.awaitIdentPos;var at=this.startNodeAt(u,d);at.callee=r,at.arguments=kt,U&&(at.optional=Y),r=this.finishNode(at,"CallExpression")}this.maybeInArrowParameters=ge}else if(this.type===l.backQuote){(Y||N)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var bt=this.startNodeAt(u,d);bt.tag=r,bt.quasi=this.parseTemplate({isTagged:!0}),r=this.finishNode(bt,"TaggedTemplateExpression")}return r},S.parseGetterSetter=function(r){r.kind=r.key.name,this.parsePropertyName(r),r.value=this.parseMethod(!1);var u=r.kind==="get"?0:1,d=r.value.params[0],y=d&&this.isThisParam(d);r.value.params.length!==(u=y?u+1:u)?this.raiseRecoverable(r.value.start,r.kind==="get"?"getter should have no params":"setter should have exactly one param"):r.kind==="set"&&r.value.params[0].type==="RestElement"&&this.raiseRecoverable(r.value.params[0].start,"Setter cannot use rest params")},S.parseProperty=function(r,u){if(!r){var d=[];if(this.match(V.at))for(;this.match(V.at);)d.push(this.parseDecorator());var y=j.prototype.parseProperty.call(this,r,u);return y.type==="SpreadElement"&&d.length&&this.raise(y.start,"Decorators can't be used with SpreadElement"),d.length&&(y.decorators=d,d=[]),y}return j.prototype.parseProperty.call(this,r,u)},S.parseCatchClauseParam=function(){var r=this.parseBindingAtom(),u=r.type==="Identifier";this.enterScope(u?32:0),this.checkLValPattern(r,u?4:2);var d=this.tsTryParseTypeAnnotation();return d&&(r.typeAnnotation=d,this.resetEndLocation(r)),this.expect(l.parenR),r},S.parseClass=function(r,u){var d=this.inAbstractClass;this.inAbstractClass=!!r.abstract;try{this.next(),this.takeDecorators(r);var y=this.strict;this.strict=!0,this.parseClassId(r,u),this.parseClassSuper(r);var C=this.enterClassBody(),A=this.startNode(),k=!1;A.body=[];var L=[];for(this.expect(l.braceL);this.type!==l.braceR;)if(this.match(V.at))L.push(this.parseDecorator());else{var N=this.parseClassElement(r.superClass!==null);L.length&&(N.decorators=L,this.resetStartLocationFromNode(N,L[0]),L=[]),N&&(A.body.push(N),N.type==="MethodDefinition"&&N.kind==="constructor"&&N.value.type==="FunctionExpression"?(k&&this.raiseRecoverable(N.start,"Duplicate constructor in the same class"),k=!0,N.decorators&&N.decorators.length>0&&this.raise(N.start,"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?")):N.key&&N.key.type==="PrivateIdentifier"&&al(C,N)&&this.raiseRecoverable(N.key.start,"Identifier '#"+N.key.name+"' has already been declared"))}return this.strict=y,this.next(),L.length&&this.raise(this.start,"Decorators must be attached to a class element."),r.body=this.finishNode(A,"ClassBody"),this.exitClassBody(),this.finishNode(r,u?"ClassDeclaration":"ClassExpression")}finally{this.inAbstractClass=d}},S.parseClassFunctionParams=function(){var r=this.tsTryParseTypeParameters(this.tsParseConstModifier),u=this.parseBindingList(l.parenR,!1,this.options.ecmaVersion>=8,!0);return r&&(u.typeParameters=r),u},S.parseMethod=function(r,u,d,y,C){var A=this.startNode(),k=this.yieldPos,L=this.awaitPos,N=this.awaitIdentPos;if(this.initFunction(A),this.options.ecmaVersion>=6&&(A.generator=r),this.options.ecmaVersion>=8&&(A.async=!!u),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(64|Fs(u,A.generator)|(d?128:0)),this.expect(l.parenL),A.params=this.parseClassFunctionParams(),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(A,!1,!0,!1,{isClassMethod:y}),this.yieldPos=k,this.awaitPos=L,this.awaitIdentPos=N,C&&C.abstract&&A.body){var W=C.key;this.raise(C.start,re.AbstractMethodHasImplementation({methodName:W.type!=="Identifier"||C.computed?"["+this.input.slice(W.start,W.end)+"]":W.name}))}return this.finishNode(A,"FunctionExpression")},he.parse=function(r,u){if(u.locations===!1)throw new Error("You have to enable options.locations while using acorn-typescript");u.locations=!0;var d=new this(u,r);return a&&(d.isAmbientContext=!0),d.parse()},he.parseExpressionAt=function(r,u,d){if(d.locations===!1)throw new Error("You have to enable options.locations while using acorn-typescript");d.locations=!0;var y=new this(d,r,u);return a&&(y.isAmbientContext=!0),y.nextToken(),y.parseExpression()},S.parseImportSpecifier=function(){if(this.ts_isContextual(V.type)){var r=this.startNode();return r.imported=this.parseModuleExportName(),this.parseTypeOnlyImportExportSpecifier(r,!0,this.importOrExportOuterKind==="type"),this.finishNode(r,"ImportSpecifier")}var u=j.prototype.parseImportSpecifier.call(this);return u.importKind="value",u},S.parseExportSpecifier=function(r){var u=this.ts_isContextual(V.type);if(!this.match(l.string)&&u){var d=this.startNode();return d.local=this.parseModuleExportName(),this.parseTypeOnlyImportExportSpecifier(d,!1,this.importOrExportOuterKind==="type"),this.finishNode(d,"ExportSpecifier"),this.checkExport(r,d.exported,d.exported.start),d}var y=j.prototype.parseExportSpecifier.call(this,r);return y.exportKind="value",y},S.parseTypeOnlyImportExportSpecifier=function(r,u,d){var y,C=u?"imported":"local",A=u?"local":"exported",k=r[C],L=!1,N=!0,W=k.start;if(this.isContextual("as")){var J=this.parseIdent();if(this.isContextual("as")){var F=this.parseIdent();ne(this.type)?(L=!0,k=J,y=u?this.parseIdent():this.parseModuleExportName(),N=!1):(y=F,N=!1)}else ne(this.type)?(N=!1,y=u?this.parseIdent():this.parseModuleExportName()):(L=!0,k=J)}else ne(this.type)&&(L=!0,u?(k=j.prototype.parseIdent.call(this,!0),this.isContextual("as")||this.checkUnreserved(k)):k=this.parseModuleExportName());L&&d&&this.raise(W,u?re.TypeModifierIsUsedInTypeImports:re.TypeModifierIsUsedInTypeExports),r[C]=k,r[A]=y,r[u?"importKind":"exportKind"]=L?"type":"value",N&&this.eatContextual("as")&&(r[A]=u?this.parseIdent():this.parseModuleExportName()),r[A]||(r[A]=this.copyNode(r[C])),u&&this.checkLValSimple(r[A],2)},S.raiseCommonCheck=function(r,u,d){return u==="Comma is not permitted after the rest element"?this.isAmbientContext&&this.match(l.comma)&&this.lookaheadCharCode()===41?void this.next():j.prototype.raise.call(this,r,u):d?j.prototype.raiseRecoverable.call(this,r,u):j.prototype.raise.call(this,r,u)},S.raiseRecoverable=function(r,u){return this.raiseCommonCheck(r,u,!0)},S.raise=function(r,u){return this.raiseCommonCheck(r,u,!0)},S.updateContext=function(r){var u=this.type;if(u==l.braceL){var d=this.curContext();d==G.tc_oTag?this.context.push(E.b_expr):d==G.tc_expr?this.context.push(E.b_tmpl):j.prototype.updateContext.call(this,r),this.exprAllowed=!0}else{if(u!==l.slash||r!==V.jsxTagStart)return j.prototype.updateContext.call(this,r);this.context.length-=2,this.context.push(G.tc_cTag),this.exprAllowed=!1}},S.jsx_parseOpeningElementAt=function(r,u){var d=this,y=this.startNodeAt(r,u),C=this.jsx_parseElementName();if(C&&(y.name=C),this.match(l.relational)||this.match(l.bitShift)){var A=this.tsTryParseAndCatch(function(){return d.tsParseTypeArgumentsInExpression()});A&&(y.typeParameters=A)}for(y.attributes=[];this.type!==l.slash&&this.type!==V.jsxTagEnd;)y.attributes.push(this.jsx_parseAttribute());return y.selfClosing=this.eat(l.slash),this.expect(V.jsxTagEnd),this.finishNode(y,C?"JSXOpeningElement":"JSXOpeningFragment")},S.enterScope=function(r){r===oi&&this.importsStack.push([]),j.prototype.enterScope.call(this,r);var u=j.prototype.currentScope.call(this);u.types=[],u.enums=[],u.constEnums=[],u.classes=[],u.exportOnlyBindings=[]},S.exitScope=function(){j.prototype.currentScope.call(this).flags===oi&&this.importsStack.pop(),j.prototype.exitScope.call(this)},S.hasImport=function(r,u){var d=this.importsStack.length;if(this.importsStack[d-1].indexOf(r)>-1)return!0;if(!u&&d>1){for(var y=0;y<d-1;y++)if(this.importsStack[y].indexOf(r)>-1)return!0}return!1},S.maybeExportDefined=function(r,u){this.inModule&&1&r.flags&&this.undefinedExports.delete(u)},S.isRedeclaredInScope=function(r,u,d){return!!(0&d)&&(2&d?r.lexical.indexOf(u)>-1||r.functions.indexOf(u)>-1||r.var.indexOf(u)>-1:3&d?r.lexical.indexOf(u)>-1||!j.prototype.treatFunctionsAsVarInScope.call(this,r)&&r.var.indexOf(u)>-1:r.lexical.indexOf(u)>-1&&!(32&r.flags&&r.lexical[0]===u)||!this.treatFunctionsAsVarInScope(r)&&r.functions.indexOf(u)>-1)},S.checkRedeclarationInScope=function(r,u,d,y){this.isRedeclaredInScope(r,u,d)&&this.raise(y,"Identifier '"+u+"' has already been declared.")},S.declareName=function(r,u,d){if(4096&u)return this.hasImport(r,!0)&&this.raise(d,"Identifier '"+r+"' has already been declared."),void this.importsStack[this.importsStack.length-1].push(r);var y=this.currentScope();if(1024&u)return this.maybeExportDefined(y,r),void y.exportOnlyBindings.push(r);j.prototype.declareName.call(this,r,u,d),0&u&&(0&u||(this.checkRedeclarationInScope(y,r,u,d),this.maybeExportDefined(y,r)),y.types.push(r)),256&u&&y.enums.push(r),512&u&&y.constEnums.push(r),128&u&&y.classes.push(r)},S.checkLocalExport=function(r){var u=r.name;if(!this.hasImport(u)){for(var d=this.scopeStack.length-1;d>=0;d--){var y=this.scopeStack[d];if(y.types.indexOf(u)>-1||y.exportOnlyBindings.indexOf(u)>-1)return}j.prototype.checkLocalExport.call(this,r)}},ue=he,I=[{key:"acornTypeScript",get:function(){return b}}],(O=[{key:"acornTypeScript",get:function(){return b}}])&&Kn(ue.prototype,O),I&&Kn(ue,I),Object.defineProperty(ue,"prototype",{writable:!1}),he})(p);return M}}var{stringify:pl}=JSON;if(!String.prototype.repeat)throw new Error("String.prototype.repeat is undefined, see https://github.com/davidbonnet/astring#installation");if(!String.prototype.endsWith)throw new Error("String.prototype.endsWith is undefined, see https://github.com/davidbonnet/astring#installation");var $i={"||":2,"??":3,"&&":4,"|":5,"^":6,"&":7,"==":8,"!=":8,"===":8,"!==":8,"<":9,">":9,"<=":9,">=":9,in:9,instanceof:9,"<<":10,">>":10,">>>":10,"+":11,"-":11,"*":12,"%":12,"/":12,"**":13},et=17,fl={ArrayExpression:20,TaggedTemplateExpression:20,ThisExpression:20,Identifier:20,PrivateIdentifier:20,Literal:18,TemplateLiteral:20,Super:20,SequenceExpression:20,MemberExpression:19,ChainExpression:19,CallExpression:19,NewExpression:19,ArrowFunctionExpression:et,ClassExpression:et,FunctionExpression:et,ObjectExpression:et,UpdateExpression:16,UnaryExpression:15,AwaitExpression:15,BinaryExpression:14,LogicalExpression:13,ConditionalExpression:4,AssignmentExpression:3,YieldExpression:2,RestElement:1};function jt(e,t){let{generator:s}=e;if(e.write("("),t!=null&&t.length>0){s[t[0].type](t[0],e);let{length:a}=t;for(let o=1;o<a;o++){let c=t[o];e.write(", "),s[c.type](c,e)}}e.write(")")}function uo(e,t,s,a){let o=e.expressionsPrecedence[t.type];if(o===et)return!0;let c=e.expressionsPrecedence[s.type];return o!==c?!a&&o===15&&c===14&&s.operator==="**"||o<c:o!==13&&o!==14?!1:t.operator==="**"&&s.operator==="**"?!a:o===13&&c===13&&(t.operator==="??"||s.operator==="??")?!0:a?$i[t.operator]<=$i[s.operator]:$i[t.operator]<$i[s.operator]}function zi(e,t,s,a){let{generator:o}=e;uo(e,t,s,a)?(e.write("("),o[t.type](t,e),e.write(")")):o[t.type](t,e)}function dl(e,t,s,a){let o=t.split(`
27
+ `):L=String.fromCharCode(N),this.options.locations&&(++this.curLine,this.lineStart=this.pos),L},A.jsx_readString=function(T){for(var L="",N=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var W=this.input.charCodeAt(this.pos);if(W===T)break;W===38?(L+=this.input.slice(N,this.pos),L+=this.jsx_readEntity(),N=this.pos):r(W)?(L+=this.input.slice(N,this.pos),L+=this.jsx_readNewLine(!1),N=this.pos):++this.pos}return L+=this.input.slice(N,this.pos++),this.finishToken(I.string,L)},A.jsx_readEntity=function(){var T,L="",N=0,W=this.input[this.pos];W!=="&"&&this.raise(this.pos,"Entity must start with an ampersand");for(var J=++this.pos;this.pos<this.input.length&&N++<10;){if((W=this.input[this.pos++])===";"){L[0]==="#"?L[1]==="x"?(L=L.substr(2),nl.test(L)&&(T=String.fromCharCode(parseInt(L,16)))):(L=L.substr(1),ol.test(L)&&(T=String.fromCharCode(parseInt(L,10)))):T=al[L];break}L+=W}return T||(this.pos=J,"&")},A.jsx_readWord=function(){var T,L=this.pos;do T=this.input.charCodeAt(++this.pos);while(u(T)||T===45);return this.finishToken(S.jsxName,this.input.slice(L,this.pos))},A.jsx_parseIdentifier=function(){var T=this.startNode();return this.type===S.jsxName?T.name=this.value:this.type.keyword?T.name=this.type.keyword:this.unexpected(),this.next(),this.finishNode(T,"JSXIdentifier")},A.jsx_parseNamespacedName=function(){var T=this.start,L=this.startLoc,N=this.jsx_parseIdentifier();if(!d.allowNamespaces||!this.eat(I.colon))return N;var W=this.startNodeAt(T,L);return W.namespace=N,W.name=this.jsx_parseIdentifier(),this.finishNode(W,"JSXNamespacedName")},A.jsx_parseElementName=function(){if(this.type===S.jsxTagEnd)return"";var T=this.start,L=this.startLoc,N=this.jsx_parseNamespacedName();for(this.type!==I.dot||N.type!=="JSXNamespacedName"||d.allowNamespacedObjects||this.unexpected();this.eat(I.dot);){var W=this.startNodeAt(T,L);W.object=N,W.property=this.jsx_parseIdentifier(),N=this.finishNode(W,"JSXMemberExpression")}return N},A.jsx_parseAttributeValue=function(){switch(this.type){case I.braceL:var T=this.jsx_parseExpressionContainer();return T.expression.type==="JSXEmptyExpression"&&this.raise(T.start,"JSX attributes must only be assigned a non-empty expression"),T;case S.jsxTagStart:case I.string:return this.parseExprAtom();default:this.raise(this.start,"JSX value should be either an expression or a quoted JSX text")}},A.jsx_parseEmptyExpression=function(){var T=this.startNodeAt(this.lastTokEnd,this.lastTokEndLoc);return this.finishNodeAt(T,"JSXEmptyExpression",this.start,this.startLoc)},A.jsx_parseExpressionContainer=function(){var T=this.startNode();return this.next(),T.expression=this.type===I.braceR?this.jsx_parseEmptyExpression():this.parseExpression(),this.expect(I.braceR),this.finishNode(T,"JSXExpressionContainer")},A.jsx_parseAttribute=function(){var T=this.startNode();return this.eat(I.braceL)?(this.expect(I.ellipsis),T.argument=this.parseMaybeAssign(),this.expect(I.braceR),this.finishNode(T,"JSXSpreadAttribute")):(T.name=this.jsx_parseNamespacedName(),T.value=this.eat(I.eq)?this.jsx_parseAttributeValue():null,this.finishNode(T,"JSXAttribute"))},A.jsx_parseOpeningElementAt=function(T,L){var N=this.startNodeAt(T,L);N.attributes=[];var W=this.jsx_parseElementName();for(W&&(N.name=W);this.type!==I.slash&&this.type!==S.jsxTagEnd;)N.attributes.push(this.jsx_parseAttribute());return N.selfClosing=this.eat(I.slash),this.expect(S.jsxTagEnd),this.finishNode(N,W?"JSXOpeningElement":"JSXOpeningFragment")},A.jsx_parseClosingElementAt=function(T,L){var N=this.startNodeAt(T,L),W=this.jsx_parseElementName();return W&&(N.name=W),this.expect(S.jsxTagEnd),this.finishNode(N,W?"JSXClosingElement":"JSXClosingFragment")},A.jsx_parseElementAt=function(T,L){var N=this.startNodeAt(T,L),W=[],J=this.jsx_parseOpeningElementAt(T,L),F=null;if(!J.selfClosing){e:for(;;)switch(this.type){case S.jsxTagStart:if(T=this.start,L=this.startLoc,this.next(),this.eat(I.slash)){F=this.jsx_parseClosingElementAt(T,L);break e}W.push(this.jsx_parseElementAt(T,L));break;case S.jsxText:W.push(this.parseExprAtom());break;case I.braceL:W.push(this.jsx_parseExpressionContainer());break;default:this.unexpected()}hi(F.name)!==hi(J.name)&&this.raise(F.start,"Expected corresponding JSX closing tag for <"+hi(J.name)+">")}var q=J.name?"Element":"Fragment";return N["opening"+q]=J,N["closing"+q]=F,N.children=W,this.type===I.relational&&this.value==="<"&&this.raise(this.start,"Adjacent JSX elements must be wrapped in an enclosing tag"),this.finishNode(N,"JSX"+q)},A.jsx_parseText=function(){var T=this.parseLiteral(this.value);return T.type="JSXText",T},A.jsx_parseElement=function(){var T=this.start,L=this.startLoc;return this.next(),this.jsx_parseElementAt(T,L)},C})(ue)})(g,b,p,e?.jsx),p=(function(j,he,ue){var O=he.tokTypes,I=ue.tokTypes;return(function(S){function r(){return S.apply(this,arguments)||this}Wi(r,S);var u=r.prototype;return u.parseMaybeImportAttributes=function(d){if(this.type===I._with||this.type===O.assert){this.next();var y=this.parseImportAttributes();y&&(d.attributes=y)}},u.parseImportAttributes=function(){this.expect(I.braceL);var d=this.parseWithEntries();return this.expect(I.braceR),d},u.parseWithEntries=function(){var d=[],y=new Set;do{if(this.type===I.braceR)break;var C,A=this.startNode();C=this.type===I.string?this.parseLiteral(this.value):this.parseIdent(!0),this.next(),A.key=C,y.has(A.key.name)&&this.raise(this.pos,"Duplicated key in attributes"),y.add(A.key.name),this.type!==I.string&&this.raise(this.pos,"Only string is supported as an attribute value"),A.value=this.parseLiteral(this.value),d.push(this.finishNode(A,"ImportAttribute"))}while(this.eat(I.comma));return d},r})(j)})(p,b,g);var M=(function(j){function he(r,u,d){var y;return(y=j.call(this,r,u,d)||this).preValue=null,y.preToken=null,y.isLookahead=!1,y.isAmbientContext=!1,y.inAbstractClass=!1,y.inType=!1,y.inDisallowConditionalTypesContext=!1,y.maybeInArrowParameters=!1,y.shouldParseArrowReturnType=void 0,y.shouldParseAsyncArrowReturnType=void 0,y.decoratorStack=[[]],y.importsStack=[[]],y.importOrExportOuterKind=void 0,y.tsParseConstModifier=y.tsParseModifiers.bind((function(C){if(C===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return C})(y),{allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:re.InvalidModifierOnTypeParameterPositions}),y}Wi(he,j);var ue,O,I,S=he.prototype;return S.getTokenFromCodeInType=function(r){return r===62||r===60?this.finishOp(l.relational,1):j.prototype.getTokenFromCode.call(this,r)},S.readToken=function(r){if(!this.inType){var u=this.curContext();if(u===G.tc_expr)return this.jsx_readToken();if(u===G.tc_oTag||u===G.tc_cTag){if(E(r))return this.jsx_readWord();if(r==62)return++this.pos,this.finishToken(V.jsxTagEnd);if((r===34||r===39)&&u==G.tc_oTag)return this.jsx_readString(r)}if(r===60&&this.exprAllowed&&this.input.charCodeAt(this.pos+1)!==33)return++this.pos,this.finishToken(V.jsxTagStart)}return j.prototype.readToken.call(this,r)},S.getTokenFromCode=function(r){return this.inType?this.getTokenFromCodeInType(r):r===64?(++this.pos,this.finishToken(V.at)):j.prototype.getTokenFromCode.call(this,r)},S.isAbstractClass=function(){return this.ts_isContextual(V.abstract)&&this.lookahead().type===l._class},S.finishNode=function(r,u){return r.type!==""&&r.end!==0?r:j.prototype.finishNode.call(this,r,u)},S.tryParse=function(r,u){u===void 0&&(u=this.cloneCurLookaheadState());var d={node:null};try{return{node:r(function(C){throw C===void 0&&(C=null),d.node=C,d}),error:null,thrown:!1,aborted:!1,failState:null}}catch(C){var y=this.getCurLookaheadState();if(this.setLookaheadState(u),C instanceof SyntaxError)return{node:null,error:C,thrown:!0,aborted:!1,failState:y};if(C===d)return{node:d.node,error:null,thrown:!1,aborted:!0,failState:y};throw C}},S.setOptionalParametersError=function(r,u){var d;r.optionalParametersLoc=(d=u?.loc)!=null?d:this.startLoc},S.reScan_lt_gt=function(){this.type===l.relational&&(this.pos-=1,this.readToken_lt_gt(this.fullCharCodeAtPos()))},S.reScan_lt=function(){var r=this.type;return r===l.bitShift?(this.pos-=2,this.finishOp(l.relational,1),l.relational):r},S.resetEndLocation=function(r,u){u===void 0&&(u=this.lastTokEndLoc),r.end=u.column,r.loc.end=u,this.options.ranges&&(r.range[1]=u.column)},S.startNodeAtNode=function(r){return j.prototype.startNodeAt.call(this,r.start,r.loc.start)},S.nextTokenStart=function(){return this.nextTokenStartSince(this.pos)},S.tsHasSomeModifiers=function(r,u){return u.some(function(d){return io(d)?r.accessibility===d:!!r[d]})},S.tsIsStartOfStaticBlocks=function(){return this.isContextual("static")&&this.lookaheadCharCode()===123},S.tsCheckForInvalidTypeCasts=function(r){var u=this;r.forEach(function(d){d?.type==="TSTypeCastExpression"&&u.raise(d.typeAnnotation.start,re.UnexpectedTypeAnnotation)})},S.atPossibleAsyncArrow=function(r){return r.type==="Identifier"&&r.name==="async"&&this.lastTokEndLoc.column===r.end&&!this.canInsertSemicolon()&&r.end-r.start==5&&r.start===this.potentialArrowAt},S.tsIsIdentifier=function(){return K(this.type)},S.tsTryParseTypeOrTypePredicateAnnotation=function(){return this.match(l.colon)?this.tsParseTypeOrTypePredicateAnnotation(l.colon):void 0},S.tsTryParseGenericAsyncArrowFunction=function(r,u,d){var y=this;if(this.tsMatchLeftRelational()){var C=this.maybeInArrowParameters;this.maybeInArrowParameters=!0;var A=this.tsTryParseAndCatch(function(){var T=y.startNodeAt(r,u);return T.typeParameters=y.tsParseTypeParameters(),j.prototype.parseFunctionParams.call(y,T),T.returnType=y.tsTryParseTypeOrTypePredicateAnnotation(),y.expect(l.arrow),T});if(this.maybeInArrowParameters=C,A)return j.prototype.parseArrowExpression.call(this,A,null,!0,d)}},S.tsParseTypeArgumentsInExpression=function(){if(this.reScan_lt()===l.relational)return this.tsParseTypeArguments()},S.tsInNoContext=function(r){var u=this.context;this.context=[u[0]];try{return r()}finally{this.context=u}},S.tsTryParseTypeAnnotation=function(){return this.match(l.colon)?this.tsParseTypeAnnotation():void 0},S.isUnparsedContextual=function(r,u){var d=r+u.length;if(this.input.slice(r,d)===u){var y=this.input.charCodeAt(d);return!(B(y)||(64512&y)==55296)}return!1},S.isAbstractConstructorSignature=function(){return this.ts_isContextual(V.abstract)&&this.lookahead().type===l._new},S.nextTokenStartSince=function(r){return Ds.lastIndex=r,Ds.test(this.input)?Ds.lastIndex:r},S.lookaheadCharCode=function(){return this.input.charCodeAt(this.nextTokenStart())},S.compareLookaheadState=function(r,u){for(var d=0,y=Object.keys(r);d<y.length;d++){var C=y[d];if(r[C]!==u[C])return!1}return!0},S.createLookaheadState=function(){this.value=null,this.context=[this.curContext()]},S.getCurLookaheadState=function(){return{endLoc:this.endLoc,lastTokEnd:this.lastTokEnd,lastTokStart:this.lastTokStart,lastTokStartLoc:this.lastTokStartLoc,pos:this.pos,value:this.value,type:this.type,start:this.start,end:this.end,context:this.context,startLoc:this.startLoc,lastTokEndLoc:this.lastTokEndLoc,curLine:this.curLine,lineStart:this.lineStart,curPosition:this.curPosition,containsEsc:this.containsEsc}},S.cloneCurLookaheadState=function(){return{pos:this.pos,value:this.value,type:this.type,start:this.start,end:this.end,context:this.context&&this.context.slice(),startLoc:this.startLoc,lastTokEndLoc:this.lastTokEndLoc,endLoc:this.endLoc,lastTokEnd:this.lastTokEnd,lastTokStart:this.lastTokStart,lastTokStartLoc:this.lastTokStartLoc,curLine:this.curLine,lineStart:this.lineStart,curPosition:this.curPosition,containsEsc:this.containsEsc}},S.setLookaheadState=function(r){this.pos=r.pos,this.value=r.value,this.endLoc=r.endLoc,this.lastTokEnd=r.lastTokEnd,this.lastTokStart=r.lastTokStart,this.lastTokStartLoc=r.lastTokStartLoc,this.type=r.type,this.start=r.start,this.end=r.end,this.context=r.context,this.startLoc=r.startLoc,this.lastTokEndLoc=r.lastTokEndLoc,this.curLine=r.curLine,this.lineStart=r.lineStart,this.curPosition=r.curPosition,this.containsEsc=r.containsEsc},S.tsLookAhead=function(r){var u=this.getCurLookaheadState(),d=r();return this.setLookaheadState(u),d},S.lookahead=function(r){var u=this.getCurLookaheadState();if(this.createLookaheadState(),this.isLookahead=!0,r!==void 0)for(var d=0;d<r;d++)this.nextToken();else this.nextToken();this.isLookahead=!1;var y=this.getCurLookaheadState();return this.setLookaheadState(u),y},S.readWord=function(){var r=this.readWord1(),u=l.name;return this.keywords.test(r)?u=_[r]:new RegExp(Q).test(r)&&(u=V[r]),this.finishToken(u,r)},S.skipBlockComment=function(){var r;this.isLookahead||(r=this.options.onComment&&this.curPosition());var u=this.pos,d=this.input.indexOf("*/",this.pos+=2);if(d===-1&&this.raise(this.pos-2,"Unterminated comment"),this.pos=d+2,this.options.locations)for(var y,C=u;(y=Z(this.input,C,this.pos))>-1;)++this.curLine,C=this.lineStart=y;this.isLookahead||this.options.onComment&&this.options.onComment(!0,this.input.slice(u+2,d),u,this.pos,r,this.curPosition())},S.skipLineComment=function(r){var u,d=this.pos;this.isLookahead||(u=this.options.onComment&&this.curPosition());for(var y=this.input.charCodeAt(this.pos+=r);this.pos<this.input.length&&!w(y);)y=this.input.charCodeAt(++this.pos);this.isLookahead||this.options.onComment&&this.options.onComment(!1,this.input.slice(d+r,this.pos),d,this.pos,u,this.curPosition())},S.finishToken=function(r,u){this.preValue=this.value,this.preToken=this.type,this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var d=this.type;this.type=r,this.value=u,this.isLookahead||this.updateContext(d)},S.resetStartLocation=function(r,u,d){r.start=u,r.loc.start=d,this.options.ranges&&(r.range[0]=u)},S.isLineTerminator=function(){return this.eat(l.semi)||j.prototype.canInsertSemicolon.call(this)},S.hasFollowingLineBreak=function(){return Zn.lastIndex=this.end,Zn.test(this.input)},S.addExtra=function(r,u,d,y){if(y===void 0&&(y=!0),r){var C=r.extra=r.extra||{};y?C[u]=d:Object.defineProperty(C,u,{enumerable:y,value:d})}},S.isLiteralPropertyName=function(){return $(this.type)},S.hasPrecedingLineBreak=function(){return D.test(this.input.slice(this.lastTokEndLoc.index,this.start))},S.createIdentifier=function(r,u){return r.name=u,this.finishNode(r,"Identifier")},S.resetStartLocationFromNode=function(r,u){this.resetStartLocation(r,u.start,u.loc.start)},S.isThisParam=function(r){return r.type==="Identifier"&&r.name==="this"},S.isLookaheadContextual=function(r){var u=this.nextTokenStart();return this.isUnparsedContextual(u,r)},S.ts_type_isContextual=function(r,u){return r===u&&!this.containsEsc},S.ts_isContextual=function(r){return this.type===r&&!this.containsEsc},S.ts_isContextualWithState=function(r,u){return r.type===u&&!r.containsEsc},S.isContextualWithState=function(r,u){return u.type===l.name&&u.value===r&&!u.containsEsc},S.tsIsStartOfMappedType=function(){return this.next(),this.eat(l.plusMin)?this.ts_isContextual(V.readonly):(this.ts_isContextual(V.readonly)&&this.next(),!!this.match(l.bracketL)&&(this.next(),!!this.tsIsIdentifier()&&(this.next(),this.match(l._in))))},S.tsInDisallowConditionalTypesContext=function(r){var u=this.inDisallowConditionalTypesContext;this.inDisallowConditionalTypesContext=!0;try{return r()}finally{this.inDisallowConditionalTypesContext=u}},S.tsTryParseType=function(){return this.tsEatThenParseType(l.colon)},S.match=function(r){return this.type===r},S.matchJsx=function(r){return this.type===b.tokTypes[r]},S.ts_eatWithState=function(r,u,d){if(r===d.type){for(var y=0;y<u;y++)this.next();return!0}return!1},S.ts_eatContextualWithState=function(r,u,d){if(Q.test(r)){if(this.ts_isContextualWithState(d,V[r])){for(var y=0;y<u;y++)this.next();return!0}return!1}if(!this.isContextualWithState(r,d))return!1;for(var C=0;C<u;C++)this.next();return!0},S.canHaveLeadingDecorator=function(){return this.match(l._class)},S.eatContextual=function(r){return Q.test(r)?!!this.ts_isContextual(V[r])&&(this.next(),!0):j.prototype.eatContextual.call(this,r)},S.tsIsExternalModuleReference=function(){return this.isContextual("require")&&this.lookaheadCharCode()===40},S.tsParseExternalModuleReference=function(){var r=this.startNode();return this.expectContextual("require"),this.expect(l.parenL),this.match(l.string)||this.unexpected(),r.expression=this.parseExprAtom(),this.expect(l.parenR),this.finishNode(r,"TSExternalModuleReference")},S.tsParseEntityName=function(r){r===void 0&&(r=!0);for(var u=this.parseIdent(r);this.eat(l.dot);){var d=this.startNodeAtNode(u);d.left=u,d.right=this.parseIdent(r),u=this.finishNode(d,"TSQualifiedName")}return u},S.tsParseEnumMember=function(){var r=this.startNode();return r.id=this.match(l.string)?this.parseLiteral(this.value):this.parseIdent(!0),this.eat(l.eq)&&(r.initializer=this.parseMaybeAssign()),this.finishNode(r,"TSEnumMember")},S.tsParseEnumDeclaration=function(r,u){return u===void 0&&(u={}),u.const&&(r.const=!0),u.declare&&(r.declare=!0),this.expectContextual("enum"),r.id=this.parseIdent(),this.checkLValSimple(r.id),this.expect(l.braceL),r.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(l.braceR),this.finishNode(r,"TSEnumDeclaration")},S.tsParseModuleBlock=function(){var r=this.startNode();for(j.prototype.enterScope.call(this,512),this.expect(l.braceL),r.body=[];this.type!==l.braceR;){var u=this.parseStatement(null,!0);r.body.push(u)}return this.next(),j.prototype.exitScope.call(this),this.finishNode(r,"TSModuleBlock")},S.tsParseAmbientExternalModuleDeclaration=function(r){return this.ts_isContextual(V.global)?(r.global=!0,r.id=this.parseIdent()):this.match(l.string)?r.id=this.parseLiteral(this.value):this.unexpected(),this.match(l.braceL)?(j.prototype.enterScope.call(this,oi),r.body=this.tsParseModuleBlock(),j.prototype.exitScope.call(this)):j.prototype.semicolon.call(this),this.finishNode(r,"TSModuleDeclaration")},S.tsTryParseDeclare=function(r){var u=this;if(!this.isLineTerminator()){var d,y=this.type;return this.isContextual("let")&&(y=l._var,d="let"),this.tsInAmbientContext(function(){if(y===l._function)return r.declare=!0,u.parseFunctionStatement(r,!1,!0);if(y===l._class)return r.declare=!0,u.parseClass(r,!0);if(y===V.enum)return u.tsParseEnumDeclaration(r,{declare:!0});if(y===V.global)return u.tsParseAmbientExternalModuleDeclaration(r);if(y===l._const||y===l._var)return u.match(l._const)&&u.isLookaheadContextual("enum")?(u.expect(l._const),u.tsParseEnumDeclaration(r,{const:!0,declare:!0})):(r.declare=!0,u.parseVarStatement(r,d||u.value,!0));if(y===V.interface){var C=u.tsParseInterfaceDeclaration(r,{declare:!0});if(C)return C}return K(y)?u.tsParseDeclaration(r,u.value,!0):void 0})}},S.tsIsListTerminator=function(r){switch(r){case"EnumMembers":case"TypeMembers":return this.match(l.braceR);case"HeritageClauseElement":return this.match(l.braceL);case"TupleElementTypes":return this.match(l.bracketR);case"TypeParametersOrArguments":return this.tsMatchRightRelational()}},S.tsParseDelimitedListWorker=function(r,u,d,y){for(var C=[],A=-1;!this.tsIsListTerminator(r);){A=-1;var T=u();if(T==null)return;if(C.push(T),!this.eat(l.comma)){if(this.tsIsListTerminator(r))break;return void(d&&this.expect(l.comma))}A=this.lastTokStart}return y&&(y.value=A),C},S.tsParseDelimitedList=function(r,u,d){return(function(y){if(y==null)throw new Error("Unexpected "+y+" value.");return y})(this.tsParseDelimitedListWorker(r,u,!0,d))},S.tsParseBracketedList=function(r,u,d,y,C){y||this.expect(d?l.bracketL:l.relational);var A=this.tsParseDelimitedList(r,u,C);return this.expect(d?l.bracketR:l.relational),A},S.tsParseTypeParameterName=function(){return this.parseIdent().name},S.tsEatThenParseType=function(r){return this.match(r)?this.tsNextThenParseType():void 0},S.tsExpectThenParseType=function(r){var u=this;return this.tsDoThenParseType(function(){return u.expect(r)})},S.tsNextThenParseType=function(){var r=this;return this.tsDoThenParseType(function(){return r.next()})},S.tsDoThenParseType=function(r){var u=this;return this.tsInType(function(){return r(),u.tsParseType()})},S.tsSkipParameterStart=function(){if(K(this.type)||this.match(l._this))return this.next(),!0;if(this.match(l.braceL))try{return this.parseObj(!0),!0}catch{return!1}if(this.match(l.bracketL)){this.next();try{return this.parseBindingList(l.bracketR,!0,!0),!0}catch{return!1}}return!1},S.tsIsUnambiguouslyStartOfFunctionType=function(){return this.next(),!!(this.match(l.parenR)||this.match(l.ellipsis)||this.tsSkipParameterStart()&&(this.match(l.colon)||this.match(l.comma)||this.match(l.question)||this.match(l.eq)||this.match(l.parenR)&&(this.next(),this.match(l.arrow))))},S.tsIsStartOfFunctionType=function(){return!!this.tsMatchLeftRelational()||this.match(l.parenL)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))},S.tsInAllowConditionalTypesContext=function(r){var u=this.inDisallowConditionalTypesContext;this.inDisallowConditionalTypesContext=!1;try{return r()}finally{this.inDisallowConditionalTypesContext=u}},S.tsParseBindingListForSignature=function(){var r=this;return j.prototype.parseBindingList.call(this,l.parenR,!0,!0).map(function(u){return u.type!=="Identifier"&&u.type!=="RestElement"&&u.type!=="ObjectPattern"&&u.type!=="ArrayPattern"&&r.raise(u.start,re.UnsupportedSignatureParameterKind(u.type)),u})},S.tsParseTypePredicateAsserts=function(){if(this.type!==V.asserts)return!1;var r=this.containsEsc;return this.next(),!(!K(this.type)&&!this.match(l._this)||(r&&this.raise(this.lastTokStart,"Escape sequence in keyword asserts"),0))},S.tsParseThisTypeNode=function(){var r=this.startNode();return this.next(),this.finishNode(r,"TSThisType")},S.tsParseTypeAnnotation=function(r,u){var d=this;return r===void 0&&(r=!0),u===void 0&&(u=this.startNode()),this.tsInType(function(){r&&d.expect(l.colon),u.typeAnnotation=d.tsParseType()}),this.finishNode(u,"TSTypeAnnotation")},S.tsParseThisTypePredicate=function(r){this.next();var u=this.startNodeAtNode(r);return u.parameterName=r,u.typeAnnotation=this.tsParseTypeAnnotation(!1),u.asserts=!1,this.finishNode(u,"TSTypePredicate")},S.tsParseThisTypeOrThisTypePredicate=function(){var r=this.tsParseThisTypeNode();return this.isContextual("is")&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(r):r},S.tsParseTypePredicatePrefix=function(){var r=this.parseIdent();if(this.isContextual("is")&&!this.hasPrecedingLineBreak())return this.next(),r},S.tsParseTypeOrTypePredicateAnnotation=function(r){var u=this;return this.tsInType(function(){var d=u.startNode();u.expect(r);var y=u.startNode(),C=!!u.tsTryParse(u.tsParseTypePredicateAsserts.bind(u));if(C&&u.match(l._this)){var A=u.tsParseThisTypeOrThisTypePredicate();return A.type==="TSThisType"?(y.parameterName=A,y.asserts=!0,y.typeAnnotation=null,A=u.finishNode(y,"TSTypePredicate")):(u.resetStartLocationFromNode(A,y),A.asserts=!0),d.typeAnnotation=A,u.finishNode(d,"TSTypeAnnotation")}var T=u.tsIsIdentifier()&&u.tsTryParse(u.tsParseTypePredicatePrefix.bind(u));if(!T)return C?(y.parameterName=u.parseIdent(),y.asserts=C,y.typeAnnotation=null,d.typeAnnotation=u.finishNode(y,"TSTypePredicate"),u.finishNode(d,"TSTypeAnnotation")):u.tsParseTypeAnnotation(!1,d);var L=u.tsParseTypeAnnotation(!1);return y.parameterName=T,y.typeAnnotation=L,y.asserts=C,d.typeAnnotation=u.finishNode(y,"TSTypePredicate"),u.finishNode(d,"TSTypeAnnotation")})},S.tsFillSignature=function(r,u){var d=r===l.arrow;u.typeParameters=this.tsTryParseTypeParameters(),this.expect(l.parenL),u.parameters=this.tsParseBindingListForSignature(),(d||this.match(r))&&(u.typeAnnotation=this.tsParseTypeOrTypePredicateAnnotation(r))},S.tsTryNextParseConstantContext=function(){if(this.lookahead().type!==l._const)return null;this.next();var r=this.tsParseTypeReference();return r.typeParameters&&this.raise(r.typeName.start,re.CannotFindName({name:"const"})),r},S.tsParseFunctionOrConstructorType=function(r,u){var d=this,y=this.startNode();return r==="TSConstructorType"&&(y.abstract=!!u,u&&this.next(),this.next()),this.tsInAllowConditionalTypesContext(function(){return d.tsFillSignature(l.arrow,y)}),this.finishNode(y,r)},S.tsParseUnionOrIntersectionType=function(r,u,d){var y=this.startNode(),C=this.eat(d),A=[];do A.push(u());while(this.eat(d));return A.length!==1||C?(y.types=A,this.finishNode(y,r)):A[0]},S.tsCheckTypeAnnotationForReadOnly=function(r){switch(r.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(r.start,re.UnexpectedReadonly)}},S.tsParseTypeOperator=function(){var r=this.startNode(),u=this.value;return this.next(),r.operator=u,r.typeAnnotation=this.tsParseTypeOperatorOrHigher(),u==="readonly"&&this.tsCheckTypeAnnotationForReadOnly(r),this.finishNode(r,"TSTypeOperator")},S.tsParseConstraintForInferType=function(){var r=this;if(this.eat(l._extends)){var u=this.tsInDisallowConditionalTypesContext(function(){return r.tsParseType()});if(this.inDisallowConditionalTypesContext||!this.match(l.question))return u}},S.tsParseInferType=function(){var r=this,u=this.startNode();this.expectContextual("infer");var d=this.startNode();return d.name=this.tsParseTypeParameterName(),d.constraint=this.tsTryParse(function(){return r.tsParseConstraintForInferType()}),u.typeParameter=this.finishNode(d,"TSTypeParameter"),this.finishNode(u,"TSInferType")},S.tsParseLiteralTypeNode=function(){var r=this,u=this.startNode();return u.literal=(function(){switch(r.type){case l.num:case l.string:case l._true:case l._false:return r.parseExprAtom();default:r.unexpected()}})(),this.finishNode(u,"TSLiteralType")},S.tsParseImportType=function(){var r=this.startNode();return this.expect(l._import),this.expect(l.parenL),this.match(l.string)||this.raise(this.start,re.UnsupportedImportTypeArgument),r.argument=this.parseExprAtom(),this.expect(l.parenR),this.eat(l.dot)&&(r.qualifier=this.tsParseEntityName()),this.tsMatchLeftRelational()&&(r.typeParameters=this.tsParseTypeArguments()),this.finishNode(r,"TSImportType")},S.tsParseTypeQuery=function(){var r=this.startNode();return this.expect(l._typeof),r.exprName=this.match(l._import)?this.tsParseImportType():this.tsParseEntityName(),!this.hasPrecedingLineBreak()&&this.tsMatchLeftRelational()&&(r.typeParameters=this.tsParseTypeArguments()),this.finishNode(r,"TSTypeQuery")},S.tsParseMappedTypeParameter=function(){var r=this.startNode();return r.name=this.tsParseTypeParameterName(),r.constraint=this.tsExpectThenParseType(l._in),this.finishNode(r,"TSTypeParameter")},S.tsParseMappedType=function(){var r=this.startNode();return this.expect(l.braceL),this.match(l.plusMin)?(r.readonly=this.value,this.next(),this.expectContextual("readonly")):this.eatContextual("readonly")&&(r.readonly=!0),this.expect(l.bracketL),r.typeParameter=this.tsParseMappedTypeParameter(),r.nameType=this.eatContextual("as")?this.tsParseType():null,this.expect(l.bracketR),this.match(l.plusMin)?(r.optional=this.value,this.next(),this.expect(l.question)):this.eat(l.question)&&(r.optional=!0),r.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(l.braceR),this.finishNode(r,"TSMappedType")},S.tsParseTypeLiteral=function(){var r=this.startNode();return r.members=this.tsParseObjectTypeMembers(),this.finishNode(r,"TSTypeLiteral")},S.tsParseTupleElementType=function(){var r=this.startLoc,u=this.start,d=this.eat(l.ellipsis),y=this.tsParseType(),C=this.eat(l.question);if(this.eat(l.colon)){var A=this.startNodeAtNode(y);A.optional=C,y.type!=="TSTypeReference"||y.typeParameters||y.typeName.type!=="Identifier"?(this.raise(y.start,re.InvalidTupleMemberLabel),A.label=y):A.label=y.typeName,A.elementType=this.tsParseType(),y=this.finishNode(A,"TSNamedTupleMember")}else if(C){var T=this.startNodeAtNode(y);T.typeAnnotation=y,y=this.finishNode(T,"TSOptionalType")}if(d){var L=this.startNodeAt(u,r);L.typeAnnotation=y,y=this.finishNode(L,"TSRestType")}return y},S.tsParseTupleType=function(){var r=this,u=this.startNode();u.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);var d=!1,y=null;return u.elementTypes.forEach(function(C){var A=C.type;!d||A==="TSRestType"||A==="TSOptionalType"||A==="TSNamedTupleMember"&&C.optional||r.raise(C.start,re.OptionalTypeBeforeRequired),d||(d=A==="TSNamedTupleMember"&&C.optional||A==="TSOptionalType");var T=A;A==="TSRestType"&&(T=(C=C.typeAnnotation).type);var L=T==="TSNamedTupleMember";y!=null||(y=L),y!==L&&r.raise(C.start,re.MixedLabeledAndUnlabeledElements)}),this.finishNode(u,"TSTupleType")},S.tsParseTemplateLiteralType=function(){var r=this.startNode();return r.literal=this.parseTemplate({isTagged:!1}),this.finishNode(r,"TSLiteralType")},S.tsParseTypeReference=function(){var r=this.startNode();return r.typeName=this.tsParseEntityName(),!this.hasPrecedingLineBreak()&&this.tsMatchLeftRelational()&&(r.typeParameters=this.tsParseTypeArguments()),this.finishNode(r,"TSTypeReference")},S.tsMatchLeftRelational=function(){return this.match(l.relational)&&this.value==="<"},S.tsMatchRightRelational=function(){return this.match(l.relational)&&this.value===">"},S.tsParseParenthesizedType=function(){var r=this.startNode();return this.expect(l.parenL),r.typeAnnotation=this.tsParseType(),this.expect(l.parenR),this.finishNode(r,"TSParenthesizedType")},S.tsParseNonArrayType=function(){switch(this.type){case l.string:case l.num:case l._true:case l._false:return this.tsParseLiteralTypeNode();case l.plusMin:if(this.value==="-"){var r=this.startNode();return this.lookahead().type!==l.num&&this.unexpected(),r.literal=this.parseMaybeUnary(),this.finishNode(r,"TSLiteralType")}break;case l._this:return this.tsParseThisTypeOrThisTypePredicate();case l._typeof:return this.tsParseTypeQuery();case l._import:return this.tsParseImportType();case l.braceL:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case l.bracketL:return this.tsParseTupleType();case l.parenL:return this.tsParseParenthesizedType();case l.backQuote:case l.dollarBraceL:return this.tsParseTemplateLiteralType();default:var u=this.type;if(K(u)||u===l._void||u===l._null){var d=u===l._void?"TSVoidKeyword":u===l._null?"TSNullKeyword":(function(C){switch(C){case"any":return"TSAnyKeyword";case"boolean":return"TSBooleanKeyword";case"bigint":return"TSBigIntKeyword";case"never":return"TSNeverKeyword";case"number":return"TSNumberKeyword";case"object":return"TSObjectKeyword";case"string":return"TSStringKeyword";case"symbol":return"TSSymbolKeyword";case"undefined":return"TSUndefinedKeyword";case"unknown":return"TSUnknownKeyword";default:return}})(this.value);if(d!==void 0&&this.lookaheadCharCode()!==46){var y=this.startNode();return this.next(),this.finishNode(y,d)}return this.tsParseTypeReference()}}this.unexpected()},S.tsParseArrayTypeOrHigher=function(){for(var r=this.tsParseNonArrayType();!this.hasPrecedingLineBreak()&&this.eat(l.bracketL);)if(this.match(l.bracketR)){var u=this.startNodeAtNode(r);u.elementType=r,this.expect(l.bracketR),r=this.finishNode(u,"TSArrayType")}else{var d=this.startNodeAtNode(r);d.objectType=r,d.indexType=this.tsParseType(),this.expect(l.bracketR),r=this.finishNode(d,"TSIndexedAccessType")}return r},S.tsParseTypeOperatorOrHigher=function(){var r=this;return X(this.type)&&!this.containsEsc?this.tsParseTypeOperator():this.isContextual("infer")?this.tsParseInferType():this.tsInAllowConditionalTypesContext(function(){return r.tsParseArrayTypeOrHigher()})},S.tsParseIntersectionTypeOrHigher=function(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),l.bitwiseAND)},S.tsParseUnionTypeOrHigher=function(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),l.bitwiseOR)},S.tsParseNonConditionalType=function(){return this.tsIsStartOfFunctionType()?this.tsParseFunctionOrConstructorType("TSFunctionType"):this.match(l._new)?this.tsParseFunctionOrConstructorType("TSConstructorType"):this.isAbstractConstructorSignature()?this.tsParseFunctionOrConstructorType("TSConstructorType",!0):this.tsParseUnionTypeOrHigher()},S.tsParseType=function(){var r=this;to(this.inType);var u=this.tsParseNonConditionalType();if(this.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(l._extends))return u;var d=this.startNodeAtNode(u);return d.checkType=u,d.extendsType=this.tsInDisallowConditionalTypesContext(function(){return r.tsParseNonConditionalType()}),this.expect(l.question),d.trueType=this.tsInAllowConditionalTypesContext(function(){return r.tsParseType()}),this.expect(l.colon),d.falseType=this.tsInAllowConditionalTypesContext(function(){return r.tsParseType()}),this.finishNode(d,"TSConditionalType")},S.tsIsUnambiguouslyIndexSignature=function(){return this.next(),!!K(this.type)&&(this.next(),this.match(l.colon))},S.tsInType=function(r){var u=this.inType;this.inType=!0;try{return r()}finally{this.inType=u}},S.tsTryParseIndexSignature=function(r){if(this.match(l.bracketL)&&this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this))){this.expect(l.bracketL);var u=this.parseIdent();u.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(u),this.expect(l.bracketR),r.parameters=[u];var d=this.tsTryParseTypeAnnotation();return d&&(r.typeAnnotation=d),this.tsParseTypeMemberSemicolon(),this.finishNode(r,"TSIndexSignature")}},S.tsParseNoneModifiers=function(r){this.tsParseModifiers({modified:r,allowedModifiers:[],disallowedModifiers:["in","out"],errorTemplate:re.InvalidModifierOnTypeParameterPositions})},S.tsParseTypeParameter=function(r){r===void 0&&(r=this.tsParseNoneModifiers.bind(this));var u=this.startNode();return r(u),u.name=this.tsParseTypeParameterName(),u.constraint=this.tsEatThenParseType(l._extends),u.default=this.tsEatThenParseType(l.eq),this.finishNode(u,"TSTypeParameter")},S.tsParseTypeParameters=function(r){var u=this.startNode();this.tsMatchLeftRelational()||this.matchJsx("jsxTagStart")?this.next():this.unexpected();var d={value:-1};return u.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,r),!1,!0,d),u.params.length===0&&this.raise(this.start,re.EmptyTypeParameters),d.value!==-1&&this.addExtra(u,"trailingComma",d.value),this.finishNode(u,"TSTypeParameterDeclaration")},S.tsTryParseTypeParameters=function(r){if(this.tsMatchLeftRelational())return this.tsParseTypeParameters(r)},S.tsTryParse=function(r){var u=this.getCurLookaheadState(),d=r();return d!==void 0&&d!==!1?d:void this.setLookaheadState(u)},S.tsTokenCanFollowModifier=function(){return(this.match(l.bracketL)||this.match(l.braceL)||this.match(l.star)||this.match(l.ellipsis)||this.match(l.privateId)||this.isLiteralPropertyName())&&!this.hasPrecedingLineBreak()},S.tsNextTokenCanFollowModifier=function(){return this.next(!0),this.tsTokenCanFollowModifier()},S.tsParseModifier=function(r,u){if(K(this.type)||this.type===l._in){var d=this.value;if(r.indexOf(d)!==-1&&!this.containsEsc){if(u&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return d}}},S.tsParseModifiersByMap=function(r){for(var u=r.modified,d=r.map,y=0,C=Object.keys(d);y<C.length;y++){var A=C[y];u[A]=d[A]}},S.tsParseModifiers=function(r){for(var u=this,d=r.modified,y=r.allowedModifiers,C=r.disallowedModifiers,A=r.stopOnStartOfClassStaticBlock,T=r.errorTemplate,L=T===void 0?re.InvalidModifierOnTypeMember:T,N={},W=function(U,Y,oe,de){Y===oe&&d[de]&&u.raise(U.column,re.InvalidModifiersOrder({orderedModifiers:[oe,de]}))},J=function(U,Y,oe,de){(d[oe]&&Y===de||d[de]&&Y===oe)&&u.raise(U.column,re.IncompatibleModifiers({modifiers:[oe,de]}))};;){var F=this.startLoc,q=this.tsParseModifier(y.concat(C??[]),A);if(!q)break;io(q)?d.accessibility?this.raise(this.start,re.DuplicateAccessibilityModifier()):(W(F,q,q,"override"),W(F,q,q,"static"),W(F,q,q,"readonly"),W(F,q,q,"accessor"),N.accessibility=q,d.accessibility=q):hl(q)?d[q]?this.raise(this.start,re.DuplicateModifier({modifier:q})):(W(F,q,"in","out"),N[q]=q,d[q]=!0):ul(q)?d[q]?this.raise(this.start,re.DuplicateModifier({modifier:q})):(J(F,q,"accessor","readonly"),J(F,q,"accessor","static"),J(F,q,"accessor","override"),N[q]=q,d[q]=!0):Object.hasOwnProperty.call(d,q)?this.raise(this.start,re.DuplicateModifier({modifier:q})):(W(F,q,"static","readonly"),W(F,q,"static","override"),W(F,q,"override","readonly"),W(F,q,"abstract","override"),J(F,q,"declare","override"),J(F,q,"static","abstract"),N[q]=q,d[q]=!0),C!=null&&C.includes(q)&&this.raise(this.start,L)}return N},S.tsParseInOutModifiers=function(r){this.tsParseModifiers({modified:r,allowedModifiers:["in","out"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:re.InvalidModifierOnTypeParameter})},S.tsParseTypeArguments=function(){var r=this,u=this.startNode();return u.params=this.tsInType(function(){return r.tsInNoContext(function(){return r.expect(l.relational),r.tsParseDelimitedList("TypeParametersOrArguments",r.tsParseType.bind(r))})}),u.params.length===0&&this.raise(this.start,re.EmptyTypeArguments),this.exprAllowed=!1,this.expect(l.relational),this.finishNode(u,"TSTypeParameterInstantiation")},S.tsParseHeritageClause=function(r){var u=this,d=this.start,y=this.tsParseDelimitedList("HeritageClauseElement",function(){var C=u.startNode();return C.expression=u.tsParseEntityName(),u.tsMatchLeftRelational()&&(C.typeParameters=u.tsParseTypeArguments()),u.finishNode(C,"TSExpressionWithTypeArguments")});return y.length||this.raise(d,re.EmptyHeritageClauseType({token:r})),y},S.tsParseTypeMemberSemicolon=function(){this.eat(l.comma)||this.isLineTerminator()||this.expect(l.semi)},S.tsTryParseAndCatch=function(r){var u=this.tryParse(function(d){return r()||d()});if(!u.aborted&&u.node)return u.error&&this.setLookaheadState(u.failState),u.node},S.tsParseSignatureMember=function(r,u){return this.tsFillSignature(l.colon,u),this.tsParseTypeMemberSemicolon(),this.finishNode(u,r)},S.tsParsePropertyOrMethodSignature=function(r,u){this.eat(l.question)&&(r.optional=!0);var d=r;if(this.match(l.parenL)||this.tsMatchLeftRelational()){u&&this.raise(r.start,re.ReadonlyForMethodSignature);var y=d;y.kind&&this.tsMatchLeftRelational()&&this.raise(this.start,re.AccesorCannotHaveTypeParameters),this.tsFillSignature(l.colon,y),this.tsParseTypeMemberSemicolon();var C="parameters",A="typeAnnotation";if(y.kind==="get")y[C].length>0&&(this.raise(this.start,"A 'get' accesor must not have any formal parameters."),this.isThisParam(y[C][0])&&this.raise(this.start,re.AccesorCannotDeclareThisParameter));else if(y.kind==="set"){if(y[C].length!==1)this.raise(this.start,"A 'get' accesor must not have any formal parameters.");else{var T=y[C][0];this.isThisParam(T)&&this.raise(this.start,re.AccesorCannotDeclareThisParameter),T.type==="Identifier"&&T.optional&&this.raise(this.start,re.SetAccesorCannotHaveOptionalParameter),T.type==="RestElement"&&this.raise(this.start,re.SetAccesorCannotHaveRestParameter)}y[A]&&this.raise(y[A].start,re.SetAccesorCannotHaveReturnType)}else y.kind="method";return this.finishNode(y,"TSMethodSignature")}var L=d;u&&(L.readonly=!0);var N=this.tsTryParseTypeAnnotation();return N&&(L.typeAnnotation=N),this.tsParseTypeMemberSemicolon(),this.finishNode(L,"TSPropertySignature")},S.tsParseTypeMember=function(){var r=this.startNode();if(this.match(l.parenL)||this.tsMatchLeftRelational())return this.tsParseSignatureMember("TSCallSignatureDeclaration",r);if(this.match(l._new)){var u=this.startNode();return this.next(),this.match(l.parenL)||this.tsMatchLeftRelational()?this.tsParseSignatureMember("TSConstructSignatureDeclaration",r):(r.key=this.createIdentifier(u,"new"),this.tsParsePropertyOrMethodSignature(r,!1))}return this.tsParseModifiers({modified:r,allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]}),this.tsTryParseIndexSignature(r)||(this.parsePropertyName(r),r.computed||r.key.type!=="Identifier"||r.key.name!=="get"&&r.key.name!=="set"||!this.tsTokenCanFollowModifier()||(r.kind=r.key.name,this.parsePropertyName(r)),this.tsParsePropertyOrMethodSignature(r,!!r.readonly))},S.tsParseList=function(r,u){for(var d=[];!this.tsIsListTerminator(r);)d.push(u());return d},S.tsParseObjectTypeMembers=function(){this.expect(l.braceL);var r=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(l.braceR),r},S.tsParseInterfaceDeclaration=function(r,u){if(u===void 0&&(u={}),this.hasFollowingLineBreak())return null;this.expectContextual("interface"),u.declare&&(r.declare=!0),K(this.type)?(r.id=this.parseIdent(),this.checkLValSimple(r.id,7)):(r.id=null,this.raise(this.start,re.MissingInterfaceName)),r.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers.bind(this)),this.eat(l._extends)&&(r.extends=this.tsParseHeritageClause("extends"));var d=this.startNode();return d.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),r.body=this.finishNode(d,"TSInterfaceBody"),this.finishNode(r,"TSInterfaceDeclaration")},S.tsParseAbstractDeclaration=function(r){if(this.match(l._class))return r.abstract=!0,this.parseClass(r,!0);if(this.ts_isContextual(V.interface)){if(!this.hasFollowingLineBreak())return r.abstract=!0,this.tsParseInterfaceDeclaration(r)}else this.unexpected(r.start)},S.tsIsDeclarationStart=function(){return ae(this.type)},S.tsParseExpressionStatement=function(r,u){switch(u.name){case"declare":var d=this.tsTryParseDeclare(r);if(d)return d.declare=!0,d;break;case"global":if(this.match(l.braceL)){j.prototype.enterScope.call(this,oi);var y=r;return y.global=!0,y.id=u,y.body=this.tsParseModuleBlock(),j.prototype.exitScope.call(this),this.finishNode(y,"TSModuleDeclaration")}break;default:return this.tsParseDeclaration(r,u.name,!1)}},S.tsParseModuleReference=function(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(!1)},S.tsIsExportDefaultSpecifier=function(){var r=this.type,u=this.isAsyncFunction(),d=this.isLet();if(K(r)){if(u&&!this.containsEsc||d)return!1;if((r===V.type||r===V.interface)&&!this.containsEsc){var y=this.lookahead();if(K(y.type)&&!this.isContextualWithState("from",y)||y.type===l.braceL)return!1}}else if(!this.match(l._default))return!1;var C=this.nextTokenStart(),A=this.isUnparsedContextual(C,"from");if(this.input.charCodeAt(C)===44||K(this.type)&&A)return!0;if(this.match(l._default)&&A){var T=this.input.charCodeAt(this.nextTokenStartSince(C+4));return T===34||T===39}return!1},S.tsInAmbientContext=function(r){var u=this.isAmbientContext;this.isAmbientContext=!0;try{return r()}finally{this.isAmbientContext=u}},S.tsCheckLineTerminator=function(r){return r?!this.hasFollowingLineBreak()&&(this.next(),!0):!this.isLineTerminator()},S.tsParseModuleOrNamespaceDeclaration=function(r,u){if(u===void 0&&(u=!1),r.id=this.parseIdent(),u||this.checkLValSimple(r.id,8),this.eat(l.dot)){var d=this.startNode();this.tsParseModuleOrNamespaceDeclaration(d,!0),r.body=d}else j.prototype.enterScope.call(this,oi),r.body=this.tsParseModuleBlock(),j.prototype.exitScope.call(this);return this.finishNode(r,"TSModuleDeclaration")},S.checkLValSimple=function(r,u,d){return u===void 0&&(u=0),j.prototype.checkLValSimple.call(this,r,u,d)},S.tsParseTypeAliasDeclaration=function(r){var u=this;return r.id=this.parseIdent(),this.checkLValSimple(r.id,6),r.typeAnnotation=this.tsInType(function(){if(r.typeParameters=u.tsTryParseTypeParameters(u.tsParseInOutModifiers.bind(u)),u.expect(l.eq),u.ts_isContextual(V.interface)&&u.lookahead().type!==l.dot){var d=u.startNode();return u.next(),u.finishNode(d,"TSIntrinsicKeyword")}return u.tsParseType()}),this.semicolon(),this.finishNode(r,"TSTypeAliasDeclaration")},S.tsParseDeclaration=function(r,u,d){switch(u){case"abstract":if(this.tsCheckLineTerminator(d)&&(this.match(l._class)||K(this.type)))return this.tsParseAbstractDeclaration(r);break;case"module":if(this.tsCheckLineTerminator(d)){if(this.match(l.string))return this.tsParseAmbientExternalModuleDeclaration(r);if(K(this.type))return this.tsParseModuleOrNamespaceDeclaration(r)}break;case"namespace":if(this.tsCheckLineTerminator(d)&&K(this.type))return this.tsParseModuleOrNamespaceDeclaration(r);break;case"type":if(this.tsCheckLineTerminator(d)&&K(this.type))return this.tsParseTypeAliasDeclaration(r)}},S.tsTryParseExportDeclaration=function(){return this.tsParseDeclaration(this.startNode(),this.value,!0)},S.tsParseImportEqualsDeclaration=function(r,u){r.isExport=u||!1,r.id=this.parseIdent(),this.checkLValSimple(r.id,2),j.prototype.expect.call(this,l.eq);var d=this.tsParseModuleReference();return r.importKind==="type"&&d.type!=="TSExternalModuleReference"&&this.raise(d.start,re.ImportAliasHasImportType),r.moduleReference=d,j.prototype.semicolon.call(this),this.finishNode(r,"TSImportEqualsDeclaration")},S.isExportDefaultSpecifier=function(){if(this.tsIsDeclarationStart())return!1;var r=this.type;if(K(r)){if(this.isContextual("async")||this.isContextual("let"))return!1;if((r===V.type||r===V.interface)&&!this.containsEsc){var u=this.lookahead();if(K(u.type)&&!this.isContextualWithState("from",u)||u.type===l.braceL)return!1}}else if(!this.match(l._default))return!1;var d=this.nextTokenStart(),y=this.isUnparsedContextual(d,"from");if(this.input.charCodeAt(d)===44||K(this.type)&&y)return!0;if(this.match(l._default)&&y){var C=this.input.charCodeAt(this.nextTokenStartSince(d+4));return C===34||C===39}return!1},S.parseTemplate=function(r){var u=(r===void 0?{}:r).isTagged,d=u!==void 0&&u,y=this.startNode();this.next(),y.expressions=[];var C=this.parseTemplateElement({isTagged:d});for(y.quasis=[C];!C.tail;)this.type===l.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(l.dollarBraceL),y.expressions.push(this.inType?this.tsParseType():this.parseExpression()),this.expect(l.braceR),y.quasis.push(C=this.parseTemplateElement({isTagged:d}));return this.next(),this.finishNode(y,"TemplateLiteral")},S.parseFunction=function(r,u,d,y,C){this.initFunction(r),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!y)&&(this.type===l.star&&2&u&&this.unexpected(),r.generator=this.eat(l.star)),this.options.ecmaVersion>=8&&(r.async=!!y),1&u&&(r.id=4&u&&this.type!==l.name?null:this.parseIdent());var A=this.yieldPos,T=this.awaitPos,L=this.awaitIdentPos,N=this.maybeInArrowParameters;this.maybeInArrowParameters=!1,this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Bs(r.async,r.generator)),1&u||(r.id=this.type===l.name?this.parseIdent():null),this.parseFunctionParams(r);var W=1&u;return this.parseFunctionBody(r,d,!1,C,{isFunctionDeclaration:W}),this.yieldPos=A,this.awaitPos=T,this.awaitIdentPos=L,1&u&&r.id&&!(2&u)&&this.checkLValSimple(r.id,r.body?this.strict||r.generator||r.async?this.treatFunctionsAsVar?1:2:3:0),this.maybeInArrowParameters=N,this.finishNode(r,W?"FunctionDeclaration":"FunctionExpression")},S.parseFunctionBody=function(r,u,d,y,C){u===void 0&&(u=!1),d===void 0&&(d=!1),y===void 0&&(y=!1),this.match(l.colon)&&(r.returnType=this.tsParseTypeOrTypePredicateAnnotation(l.colon));var A=C!=null&&C.isFunctionDeclaration?"TSDeclareFunction":C!=null&&C.isClassMethod?"TSDeclareMethod":void 0;return A&&!this.match(l.braceL)&&this.isLineTerminator()?this.finishNode(r,A):A==="TSDeclareFunction"&&this.isAmbientContext&&(this.raise(r.start,re.DeclareFunctionHasImplementation),r.declare)?(j.prototype.parseFunctionBody.call(this,r,u,d,!1),this.finishNode(r,A)):(j.prototype.parseFunctionBody.call(this,r,u,d,y),r)},S.parseNew=function(){var r;this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var u=this.startNode(),d=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(l.dot)){u.meta=d;var y=this.containsEsc;return u.property=this.parseIdent(!0),u.property.name!=="target"&&this.raiseRecoverable(u.property.start,"The only valid meta property for new is 'new.target'"),y&&this.raiseRecoverable(u.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(u.start,"'new.target' can only be used in functions and class static block"),this.finishNode(u,"MetaProperty")}var C=this.start,A=this.startLoc,T=this.type===l._import;u.callee=this.parseSubscripts(this.parseExprAtom(),C,A,!0,!1),T&&u.callee.type==="ImportExpression"&&this.raise(C,"Cannot use new with import()");var L=u.callee;return L.type!=="TSInstantiationExpression"||(r=L.extra)!=null&&r.parenthesized||(u.typeParameters=L.typeParameters,u.callee=L.expression),u.arguments=this.eat(l.parenL)?this.parseExprList(l.parenR,this.options.ecmaVersion>=8,!1):[],this.finishNode(u,"NewExpression")},S.parseExprOp=function(r,u,d,y,C){var A;if(l._in.binop>y&&!this.hasPrecedingLineBreak()&&(this.isContextual("as")&&(A="TSAsExpression"),c&&this.isContextual("satisfies")&&(A="TSSatisfiesExpression"),A)){var T=this.startNodeAt(u,d);T.expression=r;var L=this.tsTryNextParseConstantContext();return T.typeAnnotation=L||this.tsNextThenParseType(),this.finishNode(T,A),this.reScan_lt_gt(),this.parseExprOp(T,u,d,y,C)}return j.prototype.parseExprOp.call(this,r,u,d,y,C)},S.parseImportSpecifiers=function(){var r=[],u=!0;if(b.tokenIsIdentifier(this.type)&&(r.push(this.parseImportDefaultSpecifier()),!this.eat(l.comma)))return r;if(this.type===l.star)return r.push(this.parseImportNamespaceSpecifier()),r;for(this.expect(l.braceL);!this.eat(l.braceR);){if(u)u=!1;else if(this.expect(l.comma),this.afterTrailingComma(l.braceR))break;r.push(this.parseImportSpecifier())}return r},S.parseImport=function(r){var u=this.lookahead();if(r.importKind="value",this.importOrExportOuterKind="value",K(u.type)||this.match(l.star)||this.match(l.braceL)){var d=this.lookahead(2);if(d.type!==l.comma&&!this.isContextualWithState("from",d)&&d.type!==l.eq&&this.ts_eatContextualWithState("type",1,u)&&(this.importOrExportOuterKind="type",r.importKind="type",u=this.lookahead(),d=this.lookahead(2)),K(u.type)&&d.type===l.eq){this.next();var y=this.tsParseImportEqualsDeclaration(r);return this.importOrExportOuterKind="value",y}}return this.next(),this.type===l.string?(r.specifiers=[],r.source=this.parseExprAtom()):(r.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),r.source=this.type===l.string?this.parseExprAtom():this.unexpected()),this.parseMaybeImportAttributes(r),this.semicolon(),this.finishNode(r,"ImportDeclaration"),this.importOrExportOuterKind="value",r.importKind==="type"&&r.specifiers.length>1&&r.specifiers[0].type==="ImportDefaultSpecifier"&&this.raise(r.start,re.TypeImportCannotSpecifyDefaultAndNamed),r},S.parseExportDefaultDeclaration=function(){if(this.isAbstractClass()){var r=this.startNode();return this.next(),r.abstract=!0,this.parseClass(r,!0)}if(this.match(V.interface)){var u=this.tsParseInterfaceDeclaration(this.startNode());if(u)return u}return j.prototype.parseExportDefaultDeclaration.call(this)},S.parseExportAllDeclaration=function(r,u){return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(r.exported=this.parseModuleExportName(),this.checkExport(u,r.exported,this.lastTokStart)):r.exported=null),this.expectContextual("from"),this.type!==l.string&&this.unexpected(),r.source=this.parseExprAtom(),this.parseMaybeImportAttributes(r),this.semicolon(),this.finishNode(r,"ExportAllDeclaration")},S.parseDynamicImport=function(r){if(this.next(),r.source=this.parseMaybeAssign(),this.eat(l.comma)){var u=this.parseExpression();r.arguments=[u]}if(!this.eat(l.parenR)){var d=this.start;this.eat(l.comma)&&this.eat(l.parenR)?this.raiseRecoverable(d,"Trailing comma is not allowed in import()"):this.unexpected(d)}return this.finishNode(r,"ImportExpression")},S.parseExport=function(r,u){var d=this.lookahead();if(this.ts_eatWithState(l._import,2,d)){this.ts_isContextual(V.type)&&this.lookaheadCharCode()!==61?(r.importKind="type",this.importOrExportOuterKind="type",this.next()):(r.importKind="value",this.importOrExportOuterKind="value");var y=this.tsParseImportEqualsDeclaration(r,!0);return this.importOrExportOuterKind=void 0,y}if(this.ts_eatWithState(l.eq,2,d)){var C=r;return C.expression=this.parseExpression(),this.semicolon(),this.importOrExportOuterKind=void 0,this.finishNode(C,"TSExportAssignment")}if(this.ts_eatContextualWithState("as",2,d)){var A=r;return this.expectContextual("namespace"),A.id=this.parseIdent(),this.semicolon(),this.importOrExportOuterKind=void 0,this.finishNode(A,"TSNamespaceExportDeclaration")}if(this.ts_isContextualWithState(d,V.type)&&this.lookahead(2).type===l.braceL?(this.next(),this.importOrExportOuterKind="type",r.exportKind="type"):(this.importOrExportOuterKind="value",r.exportKind="value"),this.next(),this.eat(l.star))return this.parseExportAllDeclaration(r,u);if(this.eat(l._default))return this.checkExport(u,"default",this.lastTokStart),r.declaration=this.parseExportDefaultDeclaration(),this.finishNode(r,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())r.declaration=this.parseExportDeclaration(r),r.declaration.type==="VariableDeclaration"?this.checkVariableExport(u,r.declaration.declarations):this.checkExport(u,r.declaration.id,r.declaration.id.start),r.specifiers=[],r.source=null;else{if(r.declaration=null,r.specifiers=this.parseExportSpecifiers(u),this.eatContextual("from"))this.type!==l.string&&this.unexpected(),r.source=this.parseExprAtom(),this.parseMaybeImportAttributes(r);else{for(var T,L=Yn(r.specifiers);!(T=L()).done;){var N=T.value;this.checkUnreserved(N.local),this.checkLocalExport(N.local),N.local.type==="Literal"&&this.raise(N.local.start,"A string literal cannot be used as an exported binding without `from`.")}r.source=null}this.semicolon()}return this.finishNode(r,"ExportNamedDeclaration")},S.checkExport=function(r,u,d){r&&(typeof u!="string"&&(u=u.type==="Identifier"?u.name:u.value),r[u]=!0)},S.parseMaybeDefault=function(r,u,d){var y=j.prototype.parseMaybeDefault.call(this,r,u,d);return y.type==="AssignmentPattern"&&y.typeAnnotation&&y.right.start<y.typeAnnotation.start&&this.raise(y.typeAnnotation.start,re.TypeAnnotationAfterAssign),y},S.typeCastToParameter=function(r){return r.expression.typeAnnotation=r.typeAnnotation,this.resetEndLocation(r.expression,r.typeAnnotation.end),r.expression},S.toAssignableList=function(r,u){for(var d=0;d<r.length;d++){var y=r[d];y?.type==="TSTypeCastExpression"&&(r[d]=this.typeCastToParameter(y))}return j.prototype.toAssignableList.call(this,r,u)},S.reportReservedArrowTypeParam=function(r){},S.parseExprAtom=function(r,u,d){if(this.type===V.jsxText)return this.jsx_parseText();if(this.type===V.jsxTagStart)return this.jsx_parseElement();if(this.type===V.at)return this.parseDecorators(),this.parseExprAtom();if(K(this.type)){var y=this.potentialArrowAt===this.start,C=this.start,A=this.startLoc,T=this.containsEsc,L=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!T&&L.name==="async"&&!this.canInsertSemicolon()&&this.eat(l._function))return this.overrideContext(k.f_expr),this.parseFunction(this.startNodeAt(C,A),0,!1,!0,u);if(y&&!this.canInsertSemicolon()){if(this.eat(l.arrow))return this.parseArrowExpression(this.startNodeAt(C,A),[L],!1,u);if(this.options.ecmaVersion>=8&&L.name==="async"&&this.type===l.name&&!T&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc))return L=this.parseIdent(!1),!this.canInsertSemicolon()&&this.eat(l.arrow)||this.unexpected(),this.parseArrowExpression(this.startNodeAt(C,A),[L],!0,u)}return L}return j.prototype.parseExprAtom.call(this,r,u,d)},S.parseExprAtomDefault=function(){if(K(this.type)){var r=this.potentialArrowAt===this.start,u=this.containsEsc,d=this.parseIdent();if(!u&&d.name==="async"&&!this.canInsertSemicolon()){var y=this.type;if(y===l._function)return this.next(),this.parseFunction(this.startNodeAtNode(d),void 0,!0,!0);if(K(y)){if(this.lookaheadCharCode()===61){var C=this.parseIdent(!1);return!this.canInsertSemicolon()&&this.eat(l.arrow)||this.unexpected(),this.parseArrowExpression(this.startNodeAtNode(d),[C],!0)}return d}}return r&&this.match(l.arrow)&&!this.canInsertSemicolon()?(this.next(),this.parseArrowExpression(this.startNodeAtNode(d),[d],!1)):d}this.unexpected()},S.parseIdentNode=function(){var r=this.startNode();return ne(this.type)?(r.name=this.value,r):j.prototype.parseIdentNode.call(this)},S.parseVarStatement=function(r,u,d){d===void 0&&(d=!1);var y=this.isAmbientContext;this.next(),j.prototype.parseVar.call(this,r,!1,u,d||y),this.semicolon();var C=this.finishNode(r,"VariableDeclaration");if(!y)return C;for(var A,T=Yn(C.declarations);!(A=T()).done;){var L=A.value,N=L.init;N&&(u!=="const"||L.id.typeAnnotation?this.raise(N.start,re.InitializerNotAllowedInAmbientContext):N.type!=="StringLiteral"&&N.type!=="BooleanLiteral"&&N.type!=="NumericLiteral"&&N.type!=="BigIntLiteral"&&(N.type!=="TemplateLiteral"||N.expressions.length>0)&&!cl(N)&&this.raise(N.start,re.ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference))}return C},S.parseStatement=function(r,u,d){if(this.match(V.at)&&this.parseDecorators(!0),this.match(l._const)&&this.isLookaheadContextual("enum")){var y=this.startNode();return this.expect(l._const),this.tsParseEnumDeclaration(y,{const:!0})}if(this.ts_isContextual(V.enum))return this.tsParseEnumDeclaration(this.startNode());if(this.ts_isContextual(V.interface)){var C=this.tsParseInterfaceDeclaration(this.startNode());if(C)return C}return j.prototype.parseStatement.call(this,r,u,d)},S.parseAccessModifier=function(){return this.tsParseModifier(["public","protected","private"])},S.parsePostMemberNameModifiers=function(r){this.eat(l.question)&&(r.optional=!0),r.readonly&&this.match(l.parenL)&&this.raise(r.start,re.ClassMethodHasReadonly),r.declare&&this.match(l.parenL)&&this.raise(r.start,re.ClassMethodHasDeclare)},S.parseExpressionStatement=function(r,u){return(u.type==="Identifier"?this.tsParseExpressionStatement(r,u):void 0)||j.prototype.parseExpressionStatement.call(this,r,u)},S.shouldParseExportStatement=function(){return!!this.tsIsDeclarationStart()||!!this.match(V.at)||j.prototype.shouldParseExportStatement.call(this)},S.parseConditional=function(r,u,d,y,C){if(this.eat(l.question)){var A=this.startNodeAt(u,d);return A.test=r,A.consequent=this.parseMaybeAssign(),this.expect(l.colon),A.alternate=this.parseMaybeAssign(y),this.finishNode(A,"ConditionalExpression")}return r},S.parseMaybeConditional=function(r,u){var d=this,y=this.start,C=this.startLoc,A=this.parseExprOps(r,u);if(this.checkExpressionErrors(u))return A;if(!this.maybeInArrowParameters||!this.match(l.question))return this.parseConditional(A,y,C,r,u);var T=this.tryParse(function(){return d.parseConditional(A,y,C,r,u)});return T.node?(T.error&&this.setLookaheadState(T.failState),T.node):(T.error&&this.setOptionalParametersError(u,T.error),A)},S.parseParenItem=function(r){var u=this.start,d=this.startLoc;if(r=j.prototype.parseParenItem.call(this,r),this.eat(l.question)&&(r.optional=!0,this.resetEndLocation(r)),this.match(l.colon)){var y=this.startNodeAt(u,d);return y.expression=r,y.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(y,"TSTypeCastExpression")}return r},S.parseExportDeclaration=function(r){var u=this;if(!this.isAmbientContext&&this.ts_isContextual(V.declare))return this.tsInAmbientContext(function(){return u.parseExportDeclaration(r)});var d=this.start,y=this.startLoc,C=this.eatContextual("declare");!C||!this.ts_isContextual(V.declare)&&this.shouldParseExportStatement()||this.raise(this.start,re.ExpectedAmbientAfterExportDeclare);var A=K(this.type)&&this.tsTryParseExportDeclaration()||this.parseStatement(null);return A?((A.type==="TSInterfaceDeclaration"||A.type==="TSTypeAliasDeclaration"||C)&&(r.exportKind="type"),C&&(this.resetStartLocation(A,d,y),A.declare=!0),A):null},S.parseClassId=function(r,u){if(u||!this.isContextual("implements")){j.prototype.parseClassId.call(this,r,u);var d=this.tsTryParseTypeParameters(this.tsParseInOutModifiers.bind(this));d&&(r.typeParameters=d)}},S.parseClassPropertyAnnotation=function(r){r.optional||(this.value==="!"&&this.eat(l.prefix)?r.definite=!0:this.eat(l.question)&&(r.optional=!0));var u=this.tsTryParseTypeAnnotation();u&&(r.typeAnnotation=u)},S.parseClassField=function(r){if(r.key.type==="PrivateIdentifier")r.abstract&&this.raise(r.start,re.PrivateElementHasAbstract),r.accessibility&&this.raise(r.start,re.PrivateElementHasAccessibility({modifier:r.accessibility})),this.parseClassPropertyAnnotation(r);else if(this.parseClassPropertyAnnotation(r),this.isAmbientContext&&(!r.readonly||r.typeAnnotation)&&this.match(l.eq)&&this.raise(this.start,re.DeclareClassFieldHasInitializer),r.abstract&&this.match(l.eq)){var u=r.key;this.raise(this.start,re.AbstractPropertyHasInitializer({propertyName:u.type!=="Identifier"||r.computed?"["+this.input.slice(u.start,u.end)+"]":u.name}))}return j.prototype.parseClassField.call(this,r)},S.parseClassMethod=function(r,u,d,y){var C=r.kind==="constructor",A=r.key.type==="PrivateIdentifier",T=this.tsTryParseTypeParameters();A?(T&&(r.typeParameters=T),r.accessibility&&this.raise(r.start,re.PrivateMethodsHasAccessibility({modifier:r.accessibility}))):T&&C&&this.raise(T.start,re.ConstructorHasTypeParameters);var L=r.declare,N=r.kind;!(L!==void 0&&L)||N!=="get"&&N!=="set"||this.raise(r.start,re.DeclareAccessor({kind:N})),T&&(r.typeParameters=T);var W=r.key;r.kind==="constructor"?(u&&this.raise(W.start,"Constructor can't be a generator"),d&&this.raise(W.start,"Constructor can't be an async method")):r.static&&eo(r,"prototype")&&this.raise(W.start,"Classes may not have a static property named prototype");var J=r.value=this.parseMethod(u,d,y,!0,r);return r.kind==="get"&&J.params.length!==0&&this.raiseRecoverable(J.start,"getter should have no params"),r.kind==="set"&&J.params.length!==1&&this.raiseRecoverable(J.start,"setter should have exactly one param"),r.kind==="set"&&J.params[0].type==="RestElement"&&this.raiseRecoverable(J.params[0].start,"Setter cannot use rest params"),this.finishNode(r,"MethodDefinition")},S.isClassMethod=function(){return this.match(l.relational)},S.parseClassElement=function(r){var u=this;if(this.eat(l.semi))return null;var d,y=this.options.ecmaVersion,C=this.startNode(),A="",T=!1,L=!1,N="method",W=["declare","private","public","protected","accessor","override","abstract","readonly","static"],J=this.tsParseModifiers({modified:C,allowedModifiers:W,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:re.InvalidModifierOnTypeParameterPositions});d=!!J.static;var F=function(){if(!u.tsIsStartOfStaticBlocks()){var q=u.tsTryParseIndexSignature(C);if(q)return C.abstract&&u.raise(C.start,re.IndexSignatureHasAbstract),C.accessibility&&u.raise(C.start,re.IndexSignatureHasAccessibility({modifier:C.accessibility})),C.declare&&u.raise(C.start,re.IndexSignatureHasDeclare),C.override&&u.raise(C.start,re.IndexSignatureHasOverride),q;if(!u.inAbstractClass&&C.abstract&&u.raise(C.start,re.NonAbstractClassHasAbstractMethod),C.override&&r&&u.raise(C.start,re.OverrideNotInSubClass),C.static=d,d&&(u.isClassElementNameStart()||u.type===l.star||(A="static")),!A&&y>=8&&u.eatContextual("async")&&(!u.isClassElementNameStart()&&u.type!==l.star||u.canInsertSemicolon()?A="async":L=!0),!A&&(y>=9||!L)&&u.eat(l.star)&&(T=!0),!A&&!L&&!T){var U=u.value;(u.eatContextual("get")||u.eatContextual("set"))&&(u.isClassElementNameStart()?N=U:A=U)}if(A?(C.computed=!1,C.key=u.startNodeAt(u.lastTokStart,u.lastTokStartLoc),C.key.name=A,u.finishNode(C.key,"Identifier")):u.parseClassElementName(C),u.parsePostMemberNameModifiers(C),u.isClassMethod()||y<13||u.type===l.parenL||N!=="method"||T||L){var Y=!C.static&&eo(C,"constructor"),oe=Y&&r;Y&&N!=="method"&&u.raise(C.key.start,"Constructor can't have get/set modifier"),C.kind=Y?"constructor":N,u.parseClassMethod(C,T,L,oe)}else u.parseClassField(C);return C}if(u.next(),u.next(),u.tsHasSomeModifiers(C,W)&&u.raise(u.start,re.StaticBlockCannotHaveModifier),y>=13)return j.prototype.parseClassStaticBlock.call(u,C),C};return C.declare?this.tsInAmbientContext(F):F(),C},S.isClassElementNameStart=function(){return!!this.tsIsIdentifier()||j.prototype.isClassElementNameStart.call(this)},S.parseClassSuper=function(r){j.prototype.parseClassSuper.call(this,r),r.superClass&&(this.tsMatchLeftRelational()||this.match(l.bitShift))&&(r.superTypeParameters=this.tsParseTypeArgumentsInExpression()),this.eatContextual("implements")&&(r.implements=this.tsParseHeritageClause("implements"))},S.parseFunctionParams=function(r){var u=this.tsTryParseTypeParameters();u&&(r.typeParameters=u),j.prototype.parseFunctionParams.call(this,r)},S.parseVarId=function(r,u){j.prototype.parseVarId.call(this,r,u),r.id.type==="Identifier"&&!this.hasPrecedingLineBreak()&&this.value==="!"&&this.eat(l.prefix)&&(r.definite=!0);var d=this.tsTryParseTypeAnnotation();d&&(r.id.typeAnnotation=d,this.resetEndLocation(r.id))},S.parseArrowExpression=function(r,u,d,y){this.match(l.colon)&&(r.returnType=this.tsParseTypeAnnotation());var C=this.yieldPos,A=this.awaitPos,T=this.awaitIdentPos;this.enterScope(16|Bs(d,!1)),this.initFunction(r);var L=this.maybeInArrowParameters;return this.options.ecmaVersion>=8&&(r.async=!!d),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.maybeInArrowParameters=!0,r.params=this.toAssignableList(u,!0),this.maybeInArrowParameters=!1,this.parseFunctionBody(r,!0,!1,y),this.yieldPos=C,this.awaitPos=A,this.awaitIdentPos=T,this.maybeInArrowParameters=L,this.finishNode(r,"ArrowFunctionExpression")},S.parseMaybeAssignOrigin=function(r,u,d){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(r);this.exprAllowed=!1}var y=!1,C=-1,A=-1,T=-1;u?(C=u.parenthesizedAssign,A=u.trailingComma,T=u.doubleProto,u.parenthesizedAssign=u.trailingComma=-1):(u=new ui,y=!0);var L=this.start,N=this.startLoc;(this.type===l.parenL||K(this.type))&&(this.potentialArrowAt=this.start,this.potentialArrowInForAwait=r==="await");var W=this.parseMaybeConditional(r,u);if(d&&(W=d.call(this,W,L,N)),this.type.isAssign){var J=this.startNodeAt(L,N);return J.operator=this.value,this.type===l.eq&&(W=this.toAssignable(W,!0,u)),y||(u.parenthesizedAssign=u.trailingComma=u.doubleProto=-1),u.shorthandAssign>=W.start&&(u.shorthandAssign=-1),this.type===l.eq?this.checkLValPattern(W):this.checkLValSimple(W),J.left=W,this.next(),J.right=this.parseMaybeAssign(r),T>-1&&(u.doubleProto=T),this.finishNode(J,"AssignmentExpression")}return y&&this.checkExpressionErrors(u,!0),C>-1&&(u.parenthesizedAssign=C),A>-1&&(u.trailingComma=A),W},S.parseMaybeAssign=function(r,u,d){var y,C,A,T,L,N,W,J,F,q,U,Y=this;if(this.matchJsx("jsxTagStart")||this.tsMatchLeftRelational()){if(J=this.cloneCurLookaheadState(),!(F=this.tryParse(function(){return Y.parseMaybeAssignOrigin(r,u,d)},J)).error)return F.node;var oe=this.context,de=oe[oe.length-1];de===b.tokContexts.tc_oTag&&oe[oe.length-2]===b.tokContexts.tc_expr?(oe.pop(),oe.pop()):de!==b.tokContexts.tc_oTag&&de!==b.tokContexts.tc_expr||oe.pop()}if(!((y=F)!=null&&y.error||this.tsMatchLeftRelational()))return this.parseMaybeAssignOrigin(r,u,d);J&&!this.compareLookaheadState(J,this.getCurLookaheadState())||(J=this.cloneCurLookaheadState());var ge=this.tryParse(function(ke){var Ie,ft;U=Y.tsParseTypeParameters();var je=Y.parseMaybeAssignOrigin(r,u,d);return(je.type!=="ArrowFunctionExpression"||(Ie=je.extra)!=null&&Ie.parenthesized)&&ke(),((ft=U)==null?void 0:ft.params.length)!==0&&Y.resetStartLocationFromNode(je,U),je.typeParameters=U,je},J);if(!ge.error&&!ge.aborted)return U&&this.reportReservedArrowTypeParam(U),ge.node;if(!F&&(to(!0),!(q=this.tryParse(function(){return Y.parseMaybeAssignOrigin(r,u,d)},J)).error))return q.node;if((C=F)!=null&&C.node)return this.setLookaheadState(F.failState),F.node;if(ge.node)return this.setLookaheadState(ge.failState),U&&this.reportReservedArrowTypeParam(U),ge.node;if((A=q)!=null&&A.node)return this.setLookaheadState(q.failState),q.node;throw(T=F)!=null&&T.thrown?F.error:ge.thrown?ge.error:(L=q)!=null&&L.thrown?q.error:((N=F)==null?void 0:N.error)||ge.error||((W=q)==null?void 0:W.error)},S.parseAssignableListItem=function(r){for(var u=[];this.match(V.at);)u.push(this.parseDecorator());var d,y=this.start,C=this.startLoc,A=!1,T=!1;if(r!==void 0){var L={};this.tsParseModifiers({modified:L,allowedModifiers:["public","private","protected","override","readonly"]}),d=L.accessibility,T=L.override,A=L.readonly,r===!1&&(d||A||T)&&this.raise(C.start,re.UnexpectedParameterModifier)}var N=this.parseMaybeDefault(y,C);this.parseBindingListItem(N);var W=this.parseMaybeDefault(N.start,N.loc,N);if(u.length&&(W.decorators=u),d||A||T){var J=this.startNodeAt(y,C);return d&&(J.accessibility=d),A&&(J.readonly=A),T&&(J.override=T),W.type!=="Identifier"&&W.type!=="AssignmentPattern"&&this.raise(J.start,re.UnsupportedParameterPropertyKind),J.parameter=W,this.finishNode(J,"TSParameterProperty")}return W},S.checkLValInnerPattern=function(r,u,d){u===void 0&&(u=0),r.type==="TSParameterProperty"?this.checkLValInnerPattern(r.parameter,u,d):j.prototype.checkLValInnerPattern.call(this,r,u,d)},S.parseBindingListItem=function(r){this.eat(l.question)&&(r.type==="Identifier"||this.isAmbientContext||this.inType||this.raise(r.start,re.PatternIsOptional),r.optional=!0);var u=this.tsTryParseTypeAnnotation();return u&&(r.typeAnnotation=u),this.resetEndLocation(r),r},S.isAssignable=function(r,u){var d=this;switch(r.type){case"TSTypeCastExpression":return this.isAssignable(r.expression,u);case"TSParameterProperty":case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":return!0;case"ObjectExpression":var y=r.properties.length-1;return r.properties.every(function(C,A){return C.type!=="ObjectMethod"&&(A===y||C.type!=="SpreadElement")&&d.isAssignable(C)});case"Property":case"ObjectProperty":return this.isAssignable(r.value);case"SpreadElement":return this.isAssignable(r.argument);case"ArrayExpression":return r.elements.every(function(C){return C===null||d.isAssignable(C)});case"AssignmentExpression":return r.operator==="=";case"ParenthesizedExpression":return this.isAssignable(r.expression);case"MemberExpression":case"OptionalMemberExpression":return!u;default:return!1}},S.toAssignable=function(r,u,d){switch(u===void 0&&(u=!1),d===void 0&&(d=new ui),r.type){case"ParenthesizedExpression":return this.toAssignableParenthesizedExpression(r,u,d);case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":return u||this.raise(r.start,re.UnexpectedTypeCastInParameter),this.toAssignable(r.expression,u,d);case"MemberExpression":break;case"AssignmentExpression":return u||r.left.type!=="TSTypeCastExpression"||(r.left=this.typeCastToParameter(r.left)),j.prototype.toAssignable.call(this,r,u,d);case"TSTypeCastExpression":return this.typeCastToParameter(r);default:return j.prototype.toAssignable.call(this,r,u,d)}return r},S.toAssignableParenthesizedExpression=function(r,u,d){switch(r.expression.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":return this.toAssignable(r.expression,u,d);default:return j.prototype.toAssignable.call(this,r,u,d)}},S.curPosition=function(){if(this.options.locations){var r=j.prototype.curPosition.call(this);return Object.defineProperty(r,"offset",{get:function(){return function(u){var d=new g.Position(this.line,this.column+u);return d.index=this.index+u,d}}}),r.index=this.pos,r}},S.parseBindingAtom=function(){return this.type===l._this?this.parseIdent(!0):j.prototype.parseBindingAtom.call(this)},S.shouldParseArrow=function(r){var u,d=this;if(u=this.match(l.colon)?r.every(function(C){return d.isAssignable(C,!0)}):!this.canInsertSemicolon()){if(this.match(l.colon)){var y=this.tryParse(function(C){var A=d.tsParseTypeOrTypePredicateAnnotation(l.colon);return!d.canInsertSemicolon()&&d.match(l.arrow)||C(),A});if(y.aborted)return this.shouldParseArrowReturnType=void 0,!1;y.thrown||(y.error&&this.setLookaheadState(y.failState),this.shouldParseArrowReturnType=y.node)}return!!this.match(l.arrow)||(this.shouldParseArrowReturnType=void 0,!1)}return this.shouldParseArrowReturnType=void 0,u},S.parseParenArrowList=function(r,u,d,y){var C=this.startNodeAt(r,u);return C.returnType=this.shouldParseArrowReturnType,this.shouldParseArrowReturnType=void 0,this.parseArrowExpression(C,d,!1,y)},S.parseParenAndDistinguishExpression=function(r,u){var d,y=this.start,C=this.startLoc,A=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){var T=this.maybeInArrowParameters;this.maybeInArrowParameters=!0,this.next();var L,N=this.start,W=this.startLoc,J=[],F=!0,q=!1,U=new ui,Y=this.yieldPos,oe=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==l.parenR;){if(F?F=!1:this.expect(l.comma),A&&this.afterTrailingComma(l.parenR,!0)){q=!0;break}if(this.type===l.ellipsis){L=this.start,J.push(this.parseParenItem(this.parseRestBinding())),this.type===l.comma&&this.raise(this.start,"Comma is not permitted after the rest element");break}J.push(this.parseMaybeAssign(u,U,this.parseParenItem))}var de=this.lastTokEnd,ge=this.lastTokEndLoc;if(this.expect(l.parenR),this.maybeInArrowParameters=T,r&&this.shouldParseArrow(J)&&this.eat(l.arrow))return this.checkPatternErrors(U,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=Y,this.awaitPos=oe,this.parseParenArrowList(y,C,J,u);J.length&&!q||this.unexpected(this.lastTokStart),L&&this.unexpected(L),this.checkExpressionErrors(U,!0),this.yieldPos=Y||this.yieldPos,this.awaitPos=oe||this.awaitPos,J.length>1?((d=this.startNodeAt(N,W)).expressions=J,this.finishNodeAt(d,"SequenceExpression",de,ge)):d=J[0]}else d=this.parseParenExpression();if(this.options.preserveParens){var ke=this.startNodeAt(y,C);return ke.expression=d,this.finishNode(ke,"ParenthesizedExpression")}return d},S.parseTaggedTemplateExpression=function(r,u,d,y){var C=this.startNodeAt(u,d);return C.tag=r,C.quasi=this.parseTemplate({isTagged:!0}),y&&this.raise(u,"Tagged Template Literals are not allowed in optionalChain."),this.finishNode(C,"TaggedTemplateExpression")},S.shouldParseAsyncArrow=function(){var r=this;if(!this.match(l.colon))return!this.canInsertSemicolon()&&this.eat(l.arrow);var u=this.tryParse(function(d){var y=r.tsParseTypeOrTypePredicateAnnotation(l.colon);return!r.canInsertSemicolon()&&r.match(l.arrow)||d(),y});return u.aborted?(this.shouldParseAsyncArrowReturnType=void 0,!1):u.thrown?void 0:(u.error&&this.setLookaheadState(u.failState),this.shouldParseAsyncArrowReturnType=u.node,!this.canInsertSemicolon()&&this.eat(l.arrow))},S.parseSubscriptAsyncArrow=function(r,u,d,y){var C=this.startNodeAt(r,u);return C.returnType=this.shouldParseAsyncArrowReturnType,this.shouldParseAsyncArrowReturnType=void 0,this.parseArrowExpression(C,d,!0,y)},S.parseExprList=function(r,u,d,y){for(var C=[],A=!0;!this.eat(r);){if(A)A=!1;else if(this.expect(l.comma),u&&this.afterTrailingComma(r))break;var T=void 0;d&&this.type===l.comma?T=null:this.type===l.ellipsis?(T=this.parseSpread(y),y&&this.type===l.comma&&y.trailingComma<0&&(y.trailingComma=this.start)):T=this.parseMaybeAssign(!1,y,this.parseParenItem),C.push(T)}return C},S.parseSubscript=function(r,u,d,y,C,A,T){var L=this,N=A;if(!this.hasPrecedingLineBreak()&&this.value==="!"&&this.match(l.prefix)){this.exprAllowed=!1,this.next();var W=this.startNodeAt(u,d);return W.expression=r,r=this.finishNode(W,"TSNonNullExpression")}var J=!1;if(this.match(l.questionDot)&&this.lookaheadCharCode()===60){if(y)return r;r.optional=!0,N=J=!0,this.next()}if(this.tsMatchLeftRelational()||this.match(l.bitShift)){var F,q=this.tsTryParseAndCatch(function(){if(!y&&L.atPossibleAsyncArrow(r)){var qe=L.tsTryParseGenericAsyncArrowFunction(u,d,T);if(qe)return r=qe}var St=L.tsParseTypeArgumentsInExpression();if(!St)return r;if(J&&!L.match(l.parenL))return F=L.curPosition(),r;if(m(L.type)||L.type===l.backQuote){var Ut=L.parseTaggedTemplateExpression(r,u,d,N);return Ut.typeParameters=St,Ut}if(!y&&L.eat(l.parenL)){var Ht=new ui,be=L.startNodeAt(u,d);return be.callee=r,be.arguments=L.parseExprList(l.parenR,L.options.ecmaVersion>=8,!1,Ht),L.tsCheckForInvalidTypeCasts(be.arguments),be.typeParameters=St,N&&(be.optional=J),L.checkExpressionErrors(Ht,!0),r=L.finishNode(be,"CallExpression")}var Ne=L.type;if(!(L.tsMatchRightRelational()||Ne===l.bitShift||Ne!==l.parenL&&(Pe=Ne,!!Pe.startsExpr)&&!L.hasPrecedingLineBreak())){var Pe,qt=L.startNodeAt(u,d);return qt.expression=r,qt.typeParameters=St,L.finishNode(qt,"TSInstantiationExpression")}});if(F&&this.unexpected(F),q)return q.type==="TSInstantiationExpression"&&(this.match(l.dot)||this.match(l.questionDot)&&this.lookaheadCharCode()!==40)&&this.raise(this.start,re.InvalidPropertyAccessAfterInstantiationExpression),r=q}var U=this.options.ecmaVersion>=11,Y=U&&this.eat(l.questionDot);y&&Y&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var oe=this.eat(l.bracketL);if(oe||Y&&this.type!==l.parenL&&this.type!==l.backQuote||this.eat(l.dot)){var de=this.startNodeAt(u,d);de.object=r,oe?(de.property=this.parseExpression(),this.expect(l.bracketR)):de.property=this.type===l.privateId&&r.type!=="Super"?this.parsePrivateIdent():this.parseIdent(this.options.allowReserved!=="never"),de.computed=!!oe,U&&(de.optional=Y),r=this.finishNode(de,"MemberExpression")}else if(!y&&this.eat(l.parenL)){var ge=this.maybeInArrowParameters;this.maybeInArrowParameters=!0;var ke=new ui,Ie=this.yieldPos,ft=this.awaitPos,je=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var kt=this.parseExprList(l.parenR,this.options.ecmaVersion>=8,!1,ke);if(C&&!Y&&this.shouldParseAsyncArrow())this.checkPatternErrors(ke,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=Ie,this.awaitPos=ft,this.awaitIdentPos=je,r=this.parseSubscriptAsyncArrow(u,d,kt,T);else{this.checkExpressionErrors(ke,!0),this.yieldPos=Ie||this.yieldPos,this.awaitPos=ft||this.awaitPos,this.awaitIdentPos=je||this.awaitIdentPos;var at=this.startNodeAt(u,d);at.callee=r,at.arguments=kt,U&&(at.optional=Y),r=this.finishNode(at,"CallExpression")}this.maybeInArrowParameters=ge}else if(this.type===l.backQuote){(Y||N)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var bt=this.startNodeAt(u,d);bt.tag=r,bt.quasi=this.parseTemplate({isTagged:!0}),r=this.finishNode(bt,"TaggedTemplateExpression")}return r},S.parseGetterSetter=function(r){r.kind=r.key.name,this.parsePropertyName(r),r.value=this.parseMethod(!1);var u=r.kind==="get"?0:1,d=r.value.params[0],y=d&&this.isThisParam(d);r.value.params.length!==(u=y?u+1:u)?this.raiseRecoverable(r.value.start,r.kind==="get"?"getter should have no params":"setter should have exactly one param"):r.kind==="set"&&r.value.params[0].type==="RestElement"&&this.raiseRecoverable(r.value.params[0].start,"Setter cannot use rest params")},S.parseProperty=function(r,u){if(!r){var d=[];if(this.match(V.at))for(;this.match(V.at);)d.push(this.parseDecorator());var y=j.prototype.parseProperty.call(this,r,u);return y.type==="SpreadElement"&&d.length&&this.raise(y.start,"Decorators can't be used with SpreadElement"),d.length&&(y.decorators=d,d=[]),y}return j.prototype.parseProperty.call(this,r,u)},S.parseCatchClauseParam=function(){var r=this.parseBindingAtom(),u=r.type==="Identifier";this.enterScope(u?32:0),this.checkLValPattern(r,u?4:2);var d=this.tsTryParseTypeAnnotation();return d&&(r.typeAnnotation=d,this.resetEndLocation(r)),this.expect(l.parenR),r},S.parseClass=function(r,u){var d=this.inAbstractClass;this.inAbstractClass=!!r.abstract;try{this.next(),this.takeDecorators(r);var y=this.strict;this.strict=!0,this.parseClassId(r,u),this.parseClassSuper(r);var C=this.enterClassBody(),A=this.startNode(),T=!1;A.body=[];var L=[];for(this.expect(l.braceL);this.type!==l.braceR;)if(this.match(V.at))L.push(this.parseDecorator());else{var N=this.parseClassElement(r.superClass!==null);L.length&&(N.decorators=L,this.resetStartLocationFromNode(N,L[0]),L=[]),N&&(A.body.push(N),N.type==="MethodDefinition"&&N.kind==="constructor"&&N.value.type==="FunctionExpression"?(T&&this.raiseRecoverable(N.start,"Duplicate constructor in the same class"),T=!0,N.decorators&&N.decorators.length>0&&this.raise(N.start,"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?")):N.key&&N.key.type==="PrivateIdentifier"&&rl(C,N)&&this.raiseRecoverable(N.key.start,"Identifier '#"+N.key.name+"' has already been declared"))}return this.strict=y,this.next(),L.length&&this.raise(this.start,"Decorators must be attached to a class element."),r.body=this.finishNode(A,"ClassBody"),this.exitClassBody(),this.finishNode(r,u?"ClassDeclaration":"ClassExpression")}finally{this.inAbstractClass=d}},S.parseClassFunctionParams=function(){var r=this.tsTryParseTypeParameters(this.tsParseConstModifier),u=this.parseBindingList(l.parenR,!1,this.options.ecmaVersion>=8,!0);return r&&(u.typeParameters=r),u},S.parseMethod=function(r,u,d,y,C){var A=this.startNode(),T=this.yieldPos,L=this.awaitPos,N=this.awaitIdentPos;if(this.initFunction(A),this.options.ecmaVersion>=6&&(A.generator=r),this.options.ecmaVersion>=8&&(A.async=!!u),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(64|Bs(u,A.generator)|(d?128:0)),this.expect(l.parenL),A.params=this.parseClassFunctionParams(),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(A,!1,!0,!1,{isClassMethod:y}),this.yieldPos=T,this.awaitPos=L,this.awaitIdentPos=N,C&&C.abstract&&A.body){var W=C.key;this.raise(C.start,re.AbstractMethodHasImplementation({methodName:W.type!=="Identifier"||C.computed?"["+this.input.slice(W.start,W.end)+"]":W.name}))}return this.finishNode(A,"FunctionExpression")},he.parse=function(r,u){if(u.locations===!1)throw new Error("You have to enable options.locations while using acorn-typescript");u.locations=!0;var d=new this(u,r);return a&&(d.isAmbientContext=!0),d.parse()},he.parseExpressionAt=function(r,u,d){if(d.locations===!1)throw new Error("You have to enable options.locations while using acorn-typescript");d.locations=!0;var y=new this(d,r,u);return a&&(y.isAmbientContext=!0),y.nextToken(),y.parseExpression()},S.parseImportSpecifier=function(){if(this.ts_isContextual(V.type)){var r=this.startNode();return r.imported=this.parseModuleExportName(),this.parseTypeOnlyImportExportSpecifier(r,!0,this.importOrExportOuterKind==="type"),this.finishNode(r,"ImportSpecifier")}var u=j.prototype.parseImportSpecifier.call(this);return u.importKind="value",u},S.parseExportSpecifier=function(r){var u=this.ts_isContextual(V.type);if(!this.match(l.string)&&u){var d=this.startNode();return d.local=this.parseModuleExportName(),this.parseTypeOnlyImportExportSpecifier(d,!1,this.importOrExportOuterKind==="type"),this.finishNode(d,"ExportSpecifier"),this.checkExport(r,d.exported,d.exported.start),d}var y=j.prototype.parseExportSpecifier.call(this,r);return y.exportKind="value",y},S.parseTypeOnlyImportExportSpecifier=function(r,u,d){var y,C=u?"imported":"local",A=u?"local":"exported",T=r[C],L=!1,N=!0,W=T.start;if(this.isContextual("as")){var J=this.parseIdent();if(this.isContextual("as")){var F=this.parseIdent();ne(this.type)?(L=!0,T=J,y=u?this.parseIdent():this.parseModuleExportName(),N=!1):(y=F,N=!1)}else ne(this.type)?(N=!1,y=u?this.parseIdent():this.parseModuleExportName()):(L=!0,T=J)}else ne(this.type)&&(L=!0,u?(T=j.prototype.parseIdent.call(this,!0),this.isContextual("as")||this.checkUnreserved(T)):T=this.parseModuleExportName());L&&d&&this.raise(W,u?re.TypeModifierIsUsedInTypeImports:re.TypeModifierIsUsedInTypeExports),r[C]=T,r[A]=y,r[u?"importKind":"exportKind"]=L?"type":"value",N&&this.eatContextual("as")&&(r[A]=u?this.parseIdent():this.parseModuleExportName()),r[A]||(r[A]=this.copyNode(r[C])),u&&this.checkLValSimple(r[A],2)},S.raiseCommonCheck=function(r,u,d){return u==="Comma is not permitted after the rest element"?this.isAmbientContext&&this.match(l.comma)&&this.lookaheadCharCode()===41?void this.next():j.prototype.raise.call(this,r,u):d?j.prototype.raiseRecoverable.call(this,r,u):j.prototype.raise.call(this,r,u)},S.raiseRecoverable=function(r,u){return this.raiseCommonCheck(r,u,!0)},S.raise=function(r,u){return this.raiseCommonCheck(r,u,!0)},S.updateContext=function(r){var u=this.type;if(u==l.braceL){var d=this.curContext();d==G.tc_oTag?this.context.push(k.b_expr):d==G.tc_expr?this.context.push(k.b_tmpl):j.prototype.updateContext.call(this,r),this.exprAllowed=!0}else{if(u!==l.slash||r!==V.jsxTagStart)return j.prototype.updateContext.call(this,r);this.context.length-=2,this.context.push(G.tc_cTag),this.exprAllowed=!1}},S.jsx_parseOpeningElementAt=function(r,u){var d=this,y=this.startNodeAt(r,u),C=this.jsx_parseElementName();if(C&&(y.name=C),this.match(l.relational)||this.match(l.bitShift)){var A=this.tsTryParseAndCatch(function(){return d.tsParseTypeArgumentsInExpression()});A&&(y.typeParameters=A)}for(y.attributes=[];this.type!==l.slash&&this.type!==V.jsxTagEnd;)y.attributes.push(this.jsx_parseAttribute());return y.selfClosing=this.eat(l.slash),this.expect(V.jsxTagEnd),this.finishNode(y,C?"JSXOpeningElement":"JSXOpeningFragment")},S.enterScope=function(r){r===oi&&this.importsStack.push([]),j.prototype.enterScope.call(this,r);var u=j.prototype.currentScope.call(this);u.types=[],u.enums=[],u.constEnums=[],u.classes=[],u.exportOnlyBindings=[]},S.exitScope=function(){j.prototype.currentScope.call(this).flags===oi&&this.importsStack.pop(),j.prototype.exitScope.call(this)},S.hasImport=function(r,u){var d=this.importsStack.length;if(this.importsStack[d-1].indexOf(r)>-1)return!0;if(!u&&d>1){for(var y=0;y<d-1;y++)if(this.importsStack[y].indexOf(r)>-1)return!0}return!1},S.maybeExportDefined=function(r,u){this.inModule&&1&r.flags&&this.undefinedExports.delete(u)},S.isRedeclaredInScope=function(r,u,d){return!!(0&d)&&(2&d?r.lexical.indexOf(u)>-1||r.functions.indexOf(u)>-1||r.var.indexOf(u)>-1:3&d?r.lexical.indexOf(u)>-1||!j.prototype.treatFunctionsAsVarInScope.call(this,r)&&r.var.indexOf(u)>-1:r.lexical.indexOf(u)>-1&&!(32&r.flags&&r.lexical[0]===u)||!this.treatFunctionsAsVarInScope(r)&&r.functions.indexOf(u)>-1)},S.checkRedeclarationInScope=function(r,u,d,y){this.isRedeclaredInScope(r,u,d)&&this.raise(y,"Identifier '"+u+"' has already been declared.")},S.declareName=function(r,u,d){if(4096&u)return this.hasImport(r,!0)&&this.raise(d,"Identifier '"+r+"' has already been declared."),void this.importsStack[this.importsStack.length-1].push(r);var y=this.currentScope();if(1024&u)return this.maybeExportDefined(y,r),void y.exportOnlyBindings.push(r);j.prototype.declareName.call(this,r,u,d),0&u&&(0&u||(this.checkRedeclarationInScope(y,r,u,d),this.maybeExportDefined(y,r)),y.types.push(r)),256&u&&y.enums.push(r),512&u&&y.constEnums.push(r),128&u&&y.classes.push(r)},S.checkLocalExport=function(r){var u=r.name;if(!this.hasImport(u)){for(var d=this.scopeStack.length-1;d>=0;d--){var y=this.scopeStack[d];if(y.types.indexOf(u)>-1||y.exportOnlyBindings.indexOf(u)>-1)return}j.prototype.checkLocalExport.call(this,r)}},ue=he,I=[{key:"acornTypeScript",get:function(){return b}}],(O=[{key:"acornTypeScript",get:function(){return b}}])&&Jn(ue.prototype,O),I&&Jn(ue,I),Object.defineProperty(ue,"prototype",{writable:!1}),he})(p);return M}}var{stringify:ll}=JSON;if(!String.prototype.repeat)throw new Error("String.prototype.repeat is undefined, see https://github.com/davidbonnet/astring#installation");if(!String.prototype.endsWith)throw new Error("String.prototype.endsWith is undefined, see https://github.com/davidbonnet/astring#installation");var $i={"||":2,"??":3,"&&":4,"|":5,"^":6,"&":7,"==":8,"!=":8,"===":8,"!==":8,"<":9,">":9,"<=":9,">=":9,in:9,instanceof:9,"<<":10,">>":10,">>>":10,"+":11,"-":11,"*":12,"%":12,"/":12,"**":13},et=17,pl={ArrayExpression:20,TaggedTemplateExpression:20,ThisExpression:20,Identifier:20,PrivateIdentifier:20,Literal:18,TemplateLiteral:20,Super:20,SequenceExpression:20,MemberExpression:19,ChainExpression:19,CallExpression:19,NewExpression:19,ArrowFunctionExpression:et,ClassExpression:et,FunctionExpression:et,ObjectExpression:et,UpdateExpression:16,UnaryExpression:15,AwaitExpression:15,BinaryExpression:14,LogicalExpression:13,ConditionalExpression:4,AssignmentExpression:3,YieldExpression:2,RestElement:1};function jt(e,t){let{generator:s}=e;if(e.write("("),t!=null&&t.length>0){s[t[0].type](t[0],e);let{length:a}=t;for(let o=1;o<a;o++){let c=t[o];e.write(", "),s[c.type](c,e)}}e.write(")")}function co(e,t,s,a){let o=e.expressionsPrecedence[t.type];if(o===et)return!0;let c=e.expressionsPrecedence[s.type];return o!==c?!a&&o===15&&c===14&&s.operator==="**"||o<c:o!==13&&o!==14?!1:t.operator==="**"&&s.operator==="**"?!a:o===13&&c===13&&(t.operator==="??"||s.operator==="??")?!0:a?$i[t.operator]<=$i[s.operator]:$i[t.operator]<$i[s.operator]}function zi(e,t,s,a){let{generator:o}=e;co(e,t,s,a)?(e.write("("),o[t.type](t,e),e.write(")")):o[t.type](t,e)}function fl(e,t,s,a){let o=t.split(`
28
28
  `),c=o.length-1;if(e.write(o[0].trim()),c>0){e.write(a);for(let p=1;p<c;p++)e.write(s+o[p].trim()+a);e.write(s+o[c].trim())}}function De(e,t,s,a){let{length:o}=t;for(let c=0;c<o;c++){let p=t[c];e.write(s),p.type[0]==="L"?e.write("// "+p.value.trim()+`
29
- `,p):(e.write("/*"),dl(e,p.value,s,a),e.write("*/"+a))}}function ml(e){let t=e;for(;t!=null;){let{type:s}=t;if(s[0]==="C"&&s[1]==="a")return!0;if(s[0]==="M"&&s[1]==="e"&&s[2]==="m")t=t.object;else return!1}}function Us(e,t){let{generator:s}=e,{declarations:a}=t;e.write(t.kind+" ");let{length:o}=a;if(o>0){s.VariableDeclarator(a[0],e);for(let c=1;c<o;c++)e.write(", "),s.VariableDeclarator(a[c],e)}}var io,so,ro,ao,no,oo,qs={Program(e,t){let s=t.indent.repeat(t.indentLevel),{lineEnd:a,writeComments:o}=t;o&&e.comments!=null&&De(t,e.comments,s,a);let c=e.body,{length:p}=c;for(let g=0;g<p;g++){let b=c[g];o&&b.comments!=null&&De(t,b.comments,s,a),t.write(s),this[b.type](b,t),t.write(a)}o&&e.trailingComments!=null&&De(t,e.trailingComments,s,a)},BlockStatement:oo=function(e,t){let s=t.indent.repeat(t.indentLevel++),{lineEnd:a,writeComments:o}=t,c=s+t.indent;t.write("{");let p=e.body;if(p!=null&&p.length>0){t.write(a),o&&e.comments!=null&&De(t,e.comments,c,a);let{length:g}=p;for(let b=0;b<g;b++){let l=p[b];o&&l.comments!=null&&De(t,l.comments,c,a),t.write(c),this[l.type](l,t),t.write(a)}t.write(s)}else o&&e.comments!=null&&(t.write(a),De(t,e.comments,c,a),t.write(s));o&&e.trailingComments!=null&&De(t,e.trailingComments,c,a),t.write("}"),t.indentLevel--},ClassBody:oo,StaticBlock(e,t){t.write("static "),this.BlockStatement(e,t)},EmptyStatement(e,t){t.write(";")},ExpressionStatement(e,t){let s=t.expressionsPrecedence[e.expression.type];s===et||s===3&&e.expression.left.type[0]==="O"?(t.write("("),this[e.expression.type](e.expression,t),t.write(")")):this[e.expression.type](e.expression,t),t.write(";")},IfStatement(e,t){t.write("if ("),this[e.test.type](e.test,t),t.write(") "),this[e.consequent.type](e.consequent,t),e.alternate!=null&&(t.write(" else "),this[e.alternate.type](e.alternate,t))},LabeledStatement(e,t){this[e.label.type](e.label,t),t.write(": "),this[e.body.type](e.body,t)},BreakStatement(e,t){t.write("break"),e.label!=null&&(t.write(" "),this[e.label.type](e.label,t)),t.write(";")},ContinueStatement(e,t){t.write("continue"),e.label!=null&&(t.write(" "),this[e.label.type](e.label,t)),t.write(";")},WithStatement(e,t){t.write("with ("),this[e.object.type](e.object,t),t.write(") "),this[e.body.type](e.body,t)},SwitchStatement(e,t){let s=t.indent.repeat(t.indentLevel++),{lineEnd:a,writeComments:o}=t;t.indentLevel++;let c=s+t.indent,p=c+t.indent;t.write("switch ("),this[e.discriminant.type](e.discriminant,t),t.write(") {"+a);let{cases:g}=e,{length:b}=g;for(let l=0;l<b;l++){let P=g[l];o&&P.comments!=null&&De(t,P.comments,c,a),P.test?(t.write(c+"case "),this[P.test.type](P.test,t),t.write(":"+a)):t.write(c+"default:"+a);let{consequent:_}=P,{length:B}=_;for(let w=0;w<B;w++){let E=_[w];o&&E.comments!=null&&De(t,E.comments,p,a),t.write(p),this[E.type](E,t),t.write(a)}}t.indentLevel-=2,t.write(s+"}")},ReturnStatement(e,t){t.write("return"),e.argument&&(t.write(" "),this[e.argument.type](e.argument,t)),t.write(";")},ThrowStatement(e,t){t.write("throw "),this[e.argument.type](e.argument,t),t.write(";")},TryStatement(e,t){if(t.write("try "),this[e.block.type](e.block,t),e.handler){let{handler:s}=e;s.param==null?t.write(" catch "):(t.write(" catch ("),this[s.param.type](s.param,t),t.write(") ")),this[s.body.type](s.body,t)}e.finalizer&&(t.write(" finally "),this[e.finalizer.type](e.finalizer,t))},WhileStatement(e,t){t.write("while ("),this[e.test.type](e.test,t),t.write(") "),this[e.body.type](e.body,t)},DoWhileStatement(e,t){t.write("do "),this[e.body.type](e.body,t),t.write(" while ("),this[e.test.type](e.test,t),t.write(");")},ForStatement(e,t){if(t.write("for ("),e.init!=null){let{init:s}=e;s.type[0]==="V"?Us(t,s):this[s.type](s,t)}t.write("; "),e.test&&this[e.test.type](e.test,t),t.write("; "),e.update&&this[e.update.type](e.update,t),t.write(") "),this[e.body.type](e.body,t)},ForInStatement:io=function(e,t){t.write(`for ${e.await?"await ":""}(`);let{left:s}=e;s.type[0]==="V"?Us(t,s):this[s.type](s,t),t.write(e.type[3]==="I"?" in ":" of "),this[e.right.type](e.right,t),t.write(") "),this[e.body.type](e.body,t)},ForOfStatement:io,DebuggerStatement(e,t){t.write("debugger;",e)},FunctionDeclaration:so=function(e,t){t.write((e.async?"async ":"")+(e.generator?"function* ":"function ")+(e.id?e.id.name:""),e),jt(t,e.params),t.write(" "),this[e.body.type](e.body,t)},FunctionExpression:so,VariableDeclaration(e,t){Us(t,e),t.write(";")},VariableDeclarator(e,t){this[e.id.type](e.id,t),e.init!=null&&(t.write(" = "),this[e.init.type](e.init,t))},ClassDeclaration(e,t){if(t.write("class "+(e.id?`${e.id.name} `:""),e),e.superClass){t.write("extends ");let{superClass:s}=e,{type:a}=s,o=t.expressionsPrecedence[a];(a[0]!=="C"||a[1]!=="l"||a[5]!=="E")&&(o===et||o<t.expressionsPrecedence.ClassExpression)?(t.write("("),this[e.superClass.type](s,t),t.write(")")):this[s.type](s,t),t.write(" ")}this.ClassBody(e.body,t)},ImportDeclaration(e,t){t.write("import ");let{specifiers:s,attributes:a}=e,{length:o}=s,c=0;if(o>0){for(;c<o;){c>0&&t.write(", ");let p=s[c],g=p.type[6];if(g==="D")t.write(p.local.name,p),c++;else if(g==="N")t.write("* as "+p.local.name,p),c++;else break}if(c<o){for(t.write("{");;){let p=s[c],{name:g}=p.imported;if(t.write(g,p),g!==p.local.name&&t.write(" as "+p.local.name),++c<o)t.write(", ");else break}t.write("}")}t.write(" from ")}if(this.Literal(e.source,t),a&&a.length>0){t.write(" with { ");for(let p=0;p<a.length;p++)this.ImportAttribute(a[p],t),p<a.length-1&&t.write(", ");t.write(" }")}t.write(";")},ImportAttribute(e,t){this.Identifier(e.key,t),t.write(": "),this.Literal(e.value,t)},ImportExpression(e,t){t.write("import("),this[e.source.type](e.source,t),t.write(")")},ExportDefaultDeclaration(e,t){t.write("export default "),this[e.declaration.type](e.declaration,t),t.expressionsPrecedence[e.declaration.type]!=null&&e.declaration.type[0]!=="F"&&t.write(";")},ExportNamedDeclaration(e,t){if(t.write("export "),e.declaration)this[e.declaration.type](e.declaration,t);else{t.write("{");let{specifiers:s}=e,{length:a}=s;if(a>0)for(let o=0;;){let c=s[o],{name:p}=c.local;if(t.write(p,c),p!==c.exported.name&&t.write(" as "+c.exported.name),++o<a)t.write(", ");else break}if(t.write("}"),e.source&&(t.write(" from "),this.Literal(e.source,t)),e.attributes&&e.attributes.length>0){t.write(" with { ");for(let o=0;o<e.attributes.length;o++)this.ImportAttribute(e.attributes[o],t),o<e.attributes.length-1&&t.write(", ");t.write(" }")}t.write(";")}},ExportAllDeclaration(e,t){if(e.exported!=null?t.write("export * as "+e.exported.name+" from "):t.write("export * from "),this.Literal(e.source,t),e.attributes&&e.attributes.length>0){t.write(" with { ");for(let s=0;s<e.attributes.length;s++)this.ImportAttribute(e.attributes[s],t),s<e.attributes.length-1&&t.write(", ");t.write(" }")}t.write(";")},MethodDefinition(e,t){e.static&&t.write("static ");let s=e.kind[0];(s==="g"||s==="s")&&t.write(e.kind+" "),e.value.async&&t.write("async "),e.value.generator&&t.write("*"),e.computed?(t.write("["),this[e.key.type](e.key,t),t.write("]")):this[e.key.type](e.key,t),jt(t,e.value.params),t.write(" "),this[e.value.body.type](e.value.body,t)},ClassExpression(e,t){this.ClassDeclaration(e,t)},ArrowFunctionExpression(e,t){t.write(e.async?"async ":"",e);let{params:s}=e;s!=null&&(s.length===1&&s[0].type[0]==="I"?t.write(s[0].name,s[0]):jt(t,e.params)),t.write(" => "),e.body.type[0]==="O"?(t.write("("),this.ObjectExpression(e.body,t),t.write(")")):this[e.body.type](e.body,t)},ThisExpression(e,t){t.write("this",e)},Super(e,t){t.write("super",e)},RestElement:ro=function(e,t){t.write("..."),this[e.argument.type](e.argument,t)},SpreadElement:ro,YieldExpression(e,t){t.write(e.delegate?"yield*":"yield"),e.argument&&(t.write(" "),this[e.argument.type](e.argument,t))},AwaitExpression(e,t){t.write("await ",e),zi(t,e.argument,e)},TemplateLiteral(e,t){let{quasis:s,expressions:a}=e;t.write("`");let{length:o}=a;for(let p=0;p<o;p++){let g=a[p],b=s[p];t.write(b.value.raw,b),t.write("${"),this[g.type](g,t),t.write("}")}let c=s[s.length-1];t.write(c.value.raw,c),t.write("`")},TemplateElement(e,t){t.write(e.value.raw,e)},TaggedTemplateExpression(e,t){zi(t,e.tag,e),this[e.quasi.type](e.quasi,t)},ArrayExpression:no=function(e,t){if(t.write("["),e.elements.length>0){let{elements:s}=e,{length:a}=s;for(let o=0;;){let c=s[o];if(c!=null&&this[c.type](c,t),++o<a)t.write(", ");else{c==null&&t.write(", ");break}}}t.write("]")},ArrayPattern:no,ObjectExpression(e,t){let s=t.indent.repeat(t.indentLevel++),{lineEnd:a,writeComments:o}=t,c=s+t.indent;if(t.write("{"),e.properties.length>0){t.write(a),o&&e.comments!=null&&De(t,e.comments,c,a);let p=","+a,{properties:g}=e,{length:b}=g;for(let l=0;;){let P=g[l];if(o&&P.comments!=null&&De(t,P.comments,c,a),t.write(c),this[P.type](P,t),++l<b)t.write(p);else break}t.write(a),o&&e.trailingComments!=null&&De(t,e.trailingComments,c,a),t.write(s+"}")}else o?e.comments!=null?(t.write(a),De(t,e.comments,c,a),e.trailingComments!=null&&De(t,e.trailingComments,c,a),t.write(s+"}")):e.trailingComments!=null?(t.write(a),De(t,e.trailingComments,c,a),t.write(s+"}")):t.write("}"):t.write("}");t.indentLevel--},Property(e,t){e.method||e.kind[0]!=="i"?this.MethodDefinition(e,t):(e.shorthand||(e.computed?(t.write("["),this[e.key.type](e.key,t),t.write("]")):this[e.key.type](e.key,t),t.write(": ")),this[e.value.type](e.value,t))},PropertyDefinition(e,t){if(e.static&&t.write("static "),e.computed&&t.write("["),this[e.key.type](e.key,t),e.computed&&t.write("]"),e.value==null){e.key.type[0]!=="F"&&t.write(";");return}t.write(" = "),this[e.value.type](e.value,t),t.write(";")},ObjectPattern(e,t){if(t.write("{"),e.properties.length>0){let{properties:s}=e,{length:a}=s;for(let o=0;this[s[o].type](s[o],t),++o<a;)t.write(", ")}t.write("}")},SequenceExpression(e,t){jt(t,e.expressions)},UnaryExpression(e,t){if(e.prefix){let{operator:s,argument:a,argument:{type:o}}=e;t.write(s);let c=uo(t,a,e);!c&&(s.length>1||o[0]==="U"&&(o[1]==="n"||o[1]==="p")&&a.prefix&&a.operator[0]===s&&(s==="+"||s==="-"))&&t.write(" "),c?(t.write(s.length>1?" (":"("),this[o](a,t),t.write(")")):this[o](a,t)}else this[e.argument.type](e.argument,t),t.write(e.operator)},UpdateExpression(e,t){e.prefix?(t.write(e.operator),this[e.argument.type](e.argument,t)):(this[e.argument.type](e.argument,t),t.write(e.operator))},AssignmentExpression(e,t){this[e.left.type](e.left,t),t.write(" "+e.operator+" "),this[e.right.type](e.right,t)},AssignmentPattern(e,t){this[e.left.type](e.left,t),t.write(" = "),this[e.right.type](e.right,t)},BinaryExpression:ao=function(e,t){let s=e.operator==="in";s&&t.write("("),zi(t,e.left,e,!1),t.write(" "+e.operator+" "),zi(t,e.right,e,!0),s&&t.write(")")},LogicalExpression:ao,ConditionalExpression(e,t){let{test:s}=e,a=t.expressionsPrecedence[s.type];a===et||a<=t.expressionsPrecedence.ConditionalExpression?(t.write("("),this[s.type](s,t),t.write(")")):this[s.type](s,t),t.write(" ? "),this[e.consequent.type](e.consequent,t),t.write(" : "),this[e.alternate.type](e.alternate,t)},NewExpression(e,t){t.write("new ");let s=t.expressionsPrecedence[e.callee.type];s===et||s<t.expressionsPrecedence.CallExpression||ml(e.callee)?(t.write("("),this[e.callee.type](e.callee,t),t.write(")")):this[e.callee.type](e.callee,t),jt(t,e.arguments)},CallExpression(e,t){let s=t.expressionsPrecedence[e.callee.type];s===et||s<t.expressionsPrecedence.CallExpression?(t.write("("),this[e.callee.type](e.callee,t),t.write(")")):this[e.callee.type](e.callee,t),e.optional&&t.write("?."),jt(t,e.arguments)},ChainExpression(e,t){this[e.expression.type](e.expression,t)},MemberExpression(e,t){let s=t.expressionsPrecedence[e.object.type];s===et||s<t.expressionsPrecedence.MemberExpression?(t.write("("),this[e.object.type](e.object,t),t.write(")")):this[e.object.type](e.object,t),e.computed?(e.optional&&t.write("?."),t.write("["),this[e.property.type](e.property,t),t.write("]")):(e.optional?t.write("?."):t.write("."),this[e.property.type](e.property,t))},MetaProperty(e,t){t.write(e.meta.name+"."+e.property.name,e)},Identifier(e,t){t.write(e.name,e)},PrivateIdentifier(e,t){t.write(`#${e.name}`,e)},Literal(e,t){e.raw!=null?t.write(e.raw,e):e.regex!=null?this.RegExpLiteral(e,t):e.bigint!=null?t.write(e.bigint+"n",e):t.write(pl(e.value),e)},RegExpLiteral(e,t){let{regex:s}=e;t.write(`/${s.pattern}/${s.flags}`,e)}},xl={};var Hs=class{constructor(t){let s=t??xl;this.output="",s.output!=null?(this.output=s.output,this.write=this.writeToStream):this.output="",this.generator=s.generator!=null?s.generator:qs,this.expressionsPrecedence=s.expressionsPrecedence!=null?s.expressionsPrecedence:fl,this.indent=s.indent!=null?s.indent:" ",this.lineEnd=s.lineEnd!=null?s.lineEnd:`
29
+ `,p):(e.write("/*"),fl(e,p.value,s,a),e.write("*/"+a))}}function dl(e){let t=e;for(;t!=null;){let{type:s}=t;if(s[0]==="C"&&s[1]==="a")return!0;if(s[0]==="M"&&s[1]==="e"&&s[2]==="m")t=t.object;else return!1}}function Us(e,t){let{generator:s}=e,{declarations:a}=t;e.write(t.kind+" ");let{length:o}=a;if(o>0){s.VariableDeclarator(a[0],e);for(let c=1;c<o;c++)e.write(", "),s.VariableDeclarator(a[c],e)}}var ro,ao,no,oo,uo,ho,qs={Program(e,t){let s=t.indent.repeat(t.indentLevel),{lineEnd:a,writeComments:o}=t;o&&e.comments!=null&&De(t,e.comments,s,a);let c=e.body,{length:p}=c;for(let g=0;g<p;g++){let b=c[g];o&&b.comments!=null&&De(t,b.comments,s,a),t.write(s),this[b.type](b,t),t.write(a)}o&&e.trailingComments!=null&&De(t,e.trailingComments,s,a)},BlockStatement:ho=function(e,t){let s=t.indent.repeat(t.indentLevel++),{lineEnd:a,writeComments:o}=t,c=s+t.indent;t.write("{");let p=e.body;if(p!=null&&p.length>0){t.write(a),o&&e.comments!=null&&De(t,e.comments,c,a);let{length:g}=p;for(let b=0;b<g;b++){let l=p[b];o&&l.comments!=null&&De(t,l.comments,c,a),t.write(c),this[l.type](l,t),t.write(a)}t.write(s)}else o&&e.comments!=null&&(t.write(a),De(t,e.comments,c,a),t.write(s));o&&e.trailingComments!=null&&De(t,e.trailingComments,c,a),t.write("}"),t.indentLevel--},ClassBody:ho,StaticBlock(e,t){t.write("static "),this.BlockStatement(e,t)},EmptyStatement(e,t){t.write(";")},ExpressionStatement(e,t){let s=t.expressionsPrecedence[e.expression.type];s===et||s===3&&e.expression.left.type[0]==="O"?(t.write("("),this[e.expression.type](e.expression,t),t.write(")")):this[e.expression.type](e.expression,t),t.write(";")},IfStatement(e,t){t.write("if ("),this[e.test.type](e.test,t),t.write(") "),this[e.consequent.type](e.consequent,t),e.alternate!=null&&(t.write(" else "),this[e.alternate.type](e.alternate,t))},LabeledStatement(e,t){this[e.label.type](e.label,t),t.write(": "),this[e.body.type](e.body,t)},BreakStatement(e,t){t.write("break"),e.label!=null&&(t.write(" "),this[e.label.type](e.label,t)),t.write(";")},ContinueStatement(e,t){t.write("continue"),e.label!=null&&(t.write(" "),this[e.label.type](e.label,t)),t.write(";")},WithStatement(e,t){t.write("with ("),this[e.object.type](e.object,t),t.write(") "),this[e.body.type](e.body,t)},SwitchStatement(e,t){let s=t.indent.repeat(t.indentLevel++),{lineEnd:a,writeComments:o}=t;t.indentLevel++;let c=s+t.indent,p=c+t.indent;t.write("switch ("),this[e.discriminant.type](e.discriminant,t),t.write(") {"+a);let{cases:g}=e,{length:b}=g;for(let l=0;l<b;l++){let _=g[l];o&&_.comments!=null&&De(t,_.comments,c,a),_.test?(t.write(c+"case "),this[_.test.type](_.test,t),t.write(":"+a)):t.write(c+"default:"+a);let{consequent:E}=_,{length:D}=E;for(let w=0;w<D;w++){let k=E[w];o&&k.comments!=null&&De(t,k.comments,p,a),t.write(p),this[k.type](k,t),t.write(a)}}t.indentLevel-=2,t.write(s+"}")},ReturnStatement(e,t){t.write("return"),e.argument&&(t.write(" "),this[e.argument.type](e.argument,t)),t.write(";")},ThrowStatement(e,t){t.write("throw "),this[e.argument.type](e.argument,t),t.write(";")},TryStatement(e,t){if(t.write("try "),this[e.block.type](e.block,t),e.handler){let{handler:s}=e;s.param==null?t.write(" catch "):(t.write(" catch ("),this[s.param.type](s.param,t),t.write(") ")),this[s.body.type](s.body,t)}e.finalizer&&(t.write(" finally "),this[e.finalizer.type](e.finalizer,t))},WhileStatement(e,t){t.write("while ("),this[e.test.type](e.test,t),t.write(") "),this[e.body.type](e.body,t)},DoWhileStatement(e,t){t.write("do "),this[e.body.type](e.body,t),t.write(" while ("),this[e.test.type](e.test,t),t.write(");")},ForStatement(e,t){if(t.write("for ("),e.init!=null){let{init:s}=e;s.type[0]==="V"?Us(t,s):this[s.type](s,t)}t.write("; "),e.test&&this[e.test.type](e.test,t),t.write("; "),e.update&&this[e.update.type](e.update,t),t.write(") "),this[e.body.type](e.body,t)},ForInStatement:ro=function(e,t){t.write(`for ${e.await?"await ":""}(`);let{left:s}=e;s.type[0]==="V"?Us(t,s):this[s.type](s,t),t.write(e.type[3]==="I"?" in ":" of "),this[e.right.type](e.right,t),t.write(") "),this[e.body.type](e.body,t)},ForOfStatement:ro,DebuggerStatement(e,t){t.write("debugger;",e)},FunctionDeclaration:ao=function(e,t){t.write((e.async?"async ":"")+(e.generator?"function* ":"function ")+(e.id?e.id.name:""),e),jt(t,e.params),t.write(" "),this[e.body.type](e.body,t)},FunctionExpression:ao,VariableDeclaration(e,t){Us(t,e),t.write(";")},VariableDeclarator(e,t){this[e.id.type](e.id,t),e.init!=null&&(t.write(" = "),this[e.init.type](e.init,t))},ClassDeclaration(e,t){if(t.write("class "+(e.id?`${e.id.name} `:""),e),e.superClass){t.write("extends ");let{superClass:s}=e,{type:a}=s,o=t.expressionsPrecedence[a];(a[0]!=="C"||a[1]!=="l"||a[5]!=="E")&&(o===et||o<t.expressionsPrecedence.ClassExpression)?(t.write("("),this[e.superClass.type](s,t),t.write(")")):this[s.type](s,t),t.write(" ")}this.ClassBody(e.body,t)},ImportDeclaration(e,t){t.write("import ");let{specifiers:s,attributes:a}=e,{length:o}=s,c=0;if(o>0){for(;c<o;){c>0&&t.write(", ");let p=s[c],g=p.type[6];if(g==="D")t.write(p.local.name,p),c++;else if(g==="N")t.write("* as "+p.local.name,p),c++;else break}if(c<o){for(t.write("{");;){let p=s[c],{name:g}=p.imported;if(t.write(g,p),g!==p.local.name&&t.write(" as "+p.local.name),++c<o)t.write(", ");else break}t.write("}")}t.write(" from ")}if(this.Literal(e.source,t),a&&a.length>0){t.write(" with { ");for(let p=0;p<a.length;p++)this.ImportAttribute(a[p],t),p<a.length-1&&t.write(", ");t.write(" }")}t.write(";")},ImportAttribute(e,t){this.Identifier(e.key,t),t.write(": "),this.Literal(e.value,t)},ImportExpression(e,t){t.write("import("),this[e.source.type](e.source,t),t.write(")")},ExportDefaultDeclaration(e,t){t.write("export default "),this[e.declaration.type](e.declaration,t),t.expressionsPrecedence[e.declaration.type]!=null&&e.declaration.type[0]!=="F"&&t.write(";")},ExportNamedDeclaration(e,t){if(t.write("export "),e.declaration)this[e.declaration.type](e.declaration,t);else{t.write("{");let{specifiers:s}=e,{length:a}=s;if(a>0)for(let o=0;;){let c=s[o],{name:p}=c.local;if(t.write(p,c),p!==c.exported.name&&t.write(" as "+c.exported.name),++o<a)t.write(", ");else break}if(t.write("}"),e.source&&(t.write(" from "),this.Literal(e.source,t)),e.attributes&&e.attributes.length>0){t.write(" with { ");for(let o=0;o<e.attributes.length;o++)this.ImportAttribute(e.attributes[o],t),o<e.attributes.length-1&&t.write(", ");t.write(" }")}t.write(";")}},ExportAllDeclaration(e,t){if(e.exported!=null?t.write("export * as "+e.exported.name+" from "):t.write("export * from "),this.Literal(e.source,t),e.attributes&&e.attributes.length>0){t.write(" with { ");for(let s=0;s<e.attributes.length;s++)this.ImportAttribute(e.attributes[s],t),s<e.attributes.length-1&&t.write(", ");t.write(" }")}t.write(";")},MethodDefinition(e,t){e.static&&t.write("static ");let s=e.kind[0];(s==="g"||s==="s")&&t.write(e.kind+" "),e.value.async&&t.write("async "),e.value.generator&&t.write("*"),e.computed?(t.write("["),this[e.key.type](e.key,t),t.write("]")):this[e.key.type](e.key,t),jt(t,e.value.params),t.write(" "),this[e.value.body.type](e.value.body,t)},ClassExpression(e,t){this.ClassDeclaration(e,t)},ArrowFunctionExpression(e,t){t.write(e.async?"async ":"",e);let{params:s}=e;s!=null&&(s.length===1&&s[0].type[0]==="I"?t.write(s[0].name,s[0]):jt(t,e.params)),t.write(" => "),e.body.type[0]==="O"?(t.write("("),this.ObjectExpression(e.body,t),t.write(")")):this[e.body.type](e.body,t)},ThisExpression(e,t){t.write("this",e)},Super(e,t){t.write("super",e)},RestElement:no=function(e,t){t.write("..."),this[e.argument.type](e.argument,t)},SpreadElement:no,YieldExpression(e,t){t.write(e.delegate?"yield*":"yield"),e.argument&&(t.write(" "),this[e.argument.type](e.argument,t))},AwaitExpression(e,t){t.write("await ",e),zi(t,e.argument,e)},TemplateLiteral(e,t){let{quasis:s,expressions:a}=e;t.write("`");let{length:o}=a;for(let p=0;p<o;p++){let g=a[p],b=s[p];t.write(b.value.raw,b),t.write("${"),this[g.type](g,t),t.write("}")}let c=s[s.length-1];t.write(c.value.raw,c),t.write("`")},TemplateElement(e,t){t.write(e.value.raw,e)},TaggedTemplateExpression(e,t){zi(t,e.tag,e),this[e.quasi.type](e.quasi,t)},ArrayExpression:uo=function(e,t){if(t.write("["),e.elements.length>0){let{elements:s}=e,{length:a}=s;for(let o=0;;){let c=s[o];if(c!=null&&this[c.type](c,t),++o<a)t.write(", ");else{c==null&&t.write(", ");break}}}t.write("]")},ArrayPattern:uo,ObjectExpression(e,t){let s=t.indent.repeat(t.indentLevel++),{lineEnd:a,writeComments:o}=t,c=s+t.indent;if(t.write("{"),e.properties.length>0){t.write(a),o&&e.comments!=null&&De(t,e.comments,c,a);let p=","+a,{properties:g}=e,{length:b}=g;for(let l=0;;){let _=g[l];if(o&&_.comments!=null&&De(t,_.comments,c,a),t.write(c),this[_.type](_,t),++l<b)t.write(p);else break}t.write(a),o&&e.trailingComments!=null&&De(t,e.trailingComments,c,a),t.write(s+"}")}else o?e.comments!=null?(t.write(a),De(t,e.comments,c,a),e.trailingComments!=null&&De(t,e.trailingComments,c,a),t.write(s+"}")):e.trailingComments!=null?(t.write(a),De(t,e.trailingComments,c,a),t.write(s+"}")):t.write("}"):t.write("}");t.indentLevel--},Property(e,t){e.method||e.kind[0]!=="i"?this.MethodDefinition(e,t):(e.shorthand||(e.computed?(t.write("["),this[e.key.type](e.key,t),t.write("]")):this[e.key.type](e.key,t),t.write(": ")),this[e.value.type](e.value,t))},PropertyDefinition(e,t){if(e.static&&t.write("static "),e.computed&&t.write("["),this[e.key.type](e.key,t),e.computed&&t.write("]"),e.value==null){e.key.type[0]!=="F"&&t.write(";");return}t.write(" = "),this[e.value.type](e.value,t),t.write(";")},ObjectPattern(e,t){if(t.write("{"),e.properties.length>0){let{properties:s}=e,{length:a}=s;for(let o=0;this[s[o].type](s[o],t),++o<a;)t.write(", ")}t.write("}")},SequenceExpression(e,t){jt(t,e.expressions)},UnaryExpression(e,t){if(e.prefix){let{operator:s,argument:a,argument:{type:o}}=e;t.write(s);let c=co(t,a,e);!c&&(s.length>1||o[0]==="U"&&(o[1]==="n"||o[1]==="p")&&a.prefix&&a.operator[0]===s&&(s==="+"||s==="-"))&&t.write(" "),c?(t.write(s.length>1?" (":"("),this[o](a,t),t.write(")")):this[o](a,t)}else this[e.argument.type](e.argument,t),t.write(e.operator)},UpdateExpression(e,t){e.prefix?(t.write(e.operator),this[e.argument.type](e.argument,t)):(this[e.argument.type](e.argument,t),t.write(e.operator))},AssignmentExpression(e,t){this[e.left.type](e.left,t),t.write(" "+e.operator+" "),this[e.right.type](e.right,t)},AssignmentPattern(e,t){this[e.left.type](e.left,t),t.write(" = "),this[e.right.type](e.right,t)},BinaryExpression:oo=function(e,t){let s=e.operator==="in";s&&t.write("("),zi(t,e.left,e,!1),t.write(" "+e.operator+" "),zi(t,e.right,e,!0),s&&t.write(")")},LogicalExpression:oo,ConditionalExpression(e,t){let{test:s}=e,a=t.expressionsPrecedence[s.type];a===et||a<=t.expressionsPrecedence.ConditionalExpression?(t.write("("),this[s.type](s,t),t.write(")")):this[s.type](s,t),t.write(" ? "),this[e.consequent.type](e.consequent,t),t.write(" : "),this[e.alternate.type](e.alternate,t)},NewExpression(e,t){t.write("new ");let s=t.expressionsPrecedence[e.callee.type];s===et||s<t.expressionsPrecedence.CallExpression||dl(e.callee)?(t.write("("),this[e.callee.type](e.callee,t),t.write(")")):this[e.callee.type](e.callee,t),jt(t,e.arguments)},CallExpression(e,t){let s=t.expressionsPrecedence[e.callee.type];s===et||s<t.expressionsPrecedence.CallExpression?(t.write("("),this[e.callee.type](e.callee,t),t.write(")")):this[e.callee.type](e.callee,t),e.optional&&t.write("?."),jt(t,e.arguments)},ChainExpression(e,t){this[e.expression.type](e.expression,t)},MemberExpression(e,t){let s=t.expressionsPrecedence[e.object.type];s===et||s<t.expressionsPrecedence.MemberExpression?(t.write("("),this[e.object.type](e.object,t),t.write(")")):this[e.object.type](e.object,t),e.computed?(e.optional&&t.write("?."),t.write("["),this[e.property.type](e.property,t),t.write("]")):(e.optional?t.write("?."):t.write("."),this[e.property.type](e.property,t))},MetaProperty(e,t){t.write(e.meta.name+"."+e.property.name,e)},Identifier(e,t){t.write(e.name,e)},PrivateIdentifier(e,t){t.write(`#${e.name}`,e)},Literal(e,t){e.raw!=null?t.write(e.raw,e):e.regex!=null?this.RegExpLiteral(e,t):e.bigint!=null?t.write(e.bigint+"n",e):t.write(ll(e.value),e)},RegExpLiteral(e,t){let{regex:s}=e;t.write(`/${s.pattern}/${s.flags}`,e)}},ml={};var Hs=class{constructor(t){let s=t??ml;this.output="",s.output!=null?(this.output=s.output,this.write=this.writeToStream):this.output="",this.generator=s.generator!=null?s.generator:qs,this.expressionsPrecedence=s.expressionsPrecedence!=null?s.expressionsPrecedence:pl,this.indent=s.indent!=null?s.indent:" ",this.lineEnd=s.lineEnd!=null?s.lineEnd:`
30
30
  `,this.indentLevel=s.startingIndentLevel!=null?s.startingIndentLevel:0,this.writeComments=s.comments?s.comments:!1,s.sourceMap!=null&&(this.write=s.output==null?this.writeAndMap:this.writeToStreamAndMap,this.sourceMap=s.sourceMap,this.line=1,this.column=0,this.lineEndSize=this.lineEnd.split(`
31
31
  `).length-1,this.mapping={original:null,generated:this,name:void 0,source:s.sourceMap.file||s.sourceMap._file})}write(t){this.output+=t}writeToStream(t){this.output.write(t)}writeAndMap(t,s){this.output+=t,this.map(t,s)}writeToStreamAndMap(t,s){this.output.write(t),this.map(t,s)}map(t,s){if(s!=null){let{type:c}=s;if(c[0]==="L"&&c[2]==="n"){this.column=0,this.line++;return}if(s.loc!=null){let{mapping:p}=this;p.original=s.loc.start,p.name=s.name,this.sourceMap.addMapping(p)}if(c[0]==="T"&&c[8]==="E"||c[0]==="L"&&c[1]==="i"&&typeof s.value=="string"){let{length:p}=t,{column:g,line:b}=this;for(let l=0;l<p;l++)t[l]===`
32
- `?(g=0,b++):g++;this.column=g,this.line=b;return}}let{length:a}=t,{lineEnd:o}=this;a>0&&(this.lineEndSize>0&&(o.length===1?t[a-1]===o:t.endsWith(o))?(this.line+=this.lineEndSize,this.column=0):this.column+=a)}toString(){return this.output}};function ho(e,t){let s=new Hs(t);return s.generator[e.type](e,s),s.output}var ci=class{constructor(){this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.context={skip:()=>this.should_skip=!0,remove:()=>this.should_remove=!0,replace:t=>this.replacement=t}}replace(t,s,a,o){t&&s&&(a!=null?t[s][a]=o:t[s]=o)}remove(t,s,a){t&&s&&(a!=null?t[s].splice(a,1):delete t[s])}};var Ki=class extends ci{constructor(t,s){super(),this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.context={skip:()=>this.should_skip=!0,remove:()=>this.should_remove=!0,replace:a=>this.replacement=a},this.enter=t,this.leave=s}visit(t,s,a,o){if(t){if(this.enter){let p=this.should_skip,g=this.should_remove,b=this.replacement;this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.enter.call(this.context,t,s,a,o),this.replacement&&(t=this.replacement,this.replace(s,a,o,t)),this.should_remove&&this.remove(s,a,o);let l=this.should_skip,P=this.should_remove;if(this.should_skip=p,this.should_remove=g,this.replacement=b,l)return t;if(P)return null}let c;for(c in t){let p=t[c];if(p&&typeof p=="object")if(Array.isArray(p)){let g=p;for(let b=0;b<g.length;b+=1){let l=g[b];co(l)&&(this.visit(l,t,c,b)||b--)}}else co(p)&&this.visit(p,t,c,null)}if(this.leave){let p=this.replacement,g=this.should_remove;this.replacement=null,this.should_remove=!1,this.leave.call(this.context,t,s,a,o),this.replacement&&(t=this.replacement,this.replace(s,a,o,t)),this.should_remove&&this.remove(s,a,o);let b=this.should_remove;if(this.replacement=p,this.should_remove=g,b)return null}}return t}};function co(e){return e!==null&&typeof e=="object"&&"type"in e&&typeof e.type=="string"}function lo(e,{enter:t,leave:s}){return new Ki(t,s).visit(e,null)}var po="__componentSourceLoc";var fo="react-code-locator.jsxSourceRegistry";var yl=Ae.extend(js(),(0,yo.default)()),go=Ae.extend(js());function gl(e){return/\.[jt]sx$/.test(e)?yl:go}var vl={...qs,JSXElement(e,t){this[e.openingElement.type](e.openingElement,t);for(let s of e.children)this[s.type](s,t);e.closingElement&&this[e.closingElement.type](e.closingElement,t)},JSXFragment(e,t){t.write("<>");for(let s of e.children)this[s.type](s,t);t.write("</>")},JSXOpeningElement(e,t){t.write("<"),this[e.name.type](e.name,t);for(let s of e.attributes)t.write(" "),this[s.type](s,t);t.write(e.selfClosing?" />":">")},JSXClosingElement(e,t){t.write("</"),this[e.name.type](e.name,t),t.write(">")},JSXIdentifier(e,t){t.write(e.name)},JSXMemberExpression(e,t){this[e.object.type](e.object,t),t.write("."),this[e.property.type](e.property,t)},JSXNamespacedName(e,t){this[e.namespace.type](e.namespace,t),t.write(":"),this[e.name.type](e.name,t)},JSXAttribute(e,t){this[e.name.type](e.name,t),e.value!==null&&(t.write("="),this[e.value.type](e.value,t))},JSXSpreadAttribute(e,t){t.write("{..."),this[e.argument.type](e.argument,t),t.write("}")},JSXExpressionContainer(e,t){t.write("{"),e.expression.type!=="JSXEmptyExpression"&&this[e.expression.type](e.expression,t),t.write("}")},JSXEmptyExpression(e,t){},JSXText(e,t){t.write(e.value)},JSXOpeningFragment(e,t){t.write("<>")},JSXClosingFragment(e,t){t.write("</>")},TSTypeAnnotation(e,t){},TSTypeParameterDeclaration(e,t){},TSTypeParameterInstantiation(e,t){},TSInterfaceDeclaration(e,t){},TSTypeAliasDeclaration(e,t){},TSEnumDeclaration(e,t){},TSModuleDeclaration(e,t){},TSImportEqualsDeclaration(e,t){},TSExportAssignment(e,t){},TSNamespaceExportDeclaration(e,t){},TSAsExpression(e,t){this[e.expression.type](e.expression,t)},TSSatisfiesExpression(e,t){this[e.expression.type](e.expression,t)},TSNonNullExpression(e,t){this[e.expression.type](e.expression,t)},TSTypeAssertion(e,t){this[e.expression.type](e.expression,t)},TSInstantiationExpression(e,t){this[e.expression.type](e.expression,t)},TSParameterProperty(e,t){this[e.parameter.type](e.parameter,t)}};function Ws(e,t,s){let a=s||process.cwd();return`${e.startsWith(a)?e.slice(a.length+1):e}:${t.line}:${t.column+1}`}function mo(e){return/^[A-Z]/.test(e)}function bl(e){let t=e.callee;if(t.type==="Identifier")return["jsx","jsxs","jsxDEV","_jsx","_jsxs","_jsxDEV","createElement"].includes(t.name);if(t.type==="MemberExpression"){let s=t.object,a=t.property;if(s.type==="Identifier"&&s.name==="React"&&a.type==="Identifier"&&a.name==="createElement")return!0}return!1}function Sl(e){if(!e)return!1;if(e.type==="ArrowFunctionExpression"||e.type==="FunctionExpression")return!0;if(e.type!=="CallExpression")return!1;let t=e.callee;if(t.type==="Identifier")return["memo","forwardRef"].includes(t.name);if(t.type==="MemberExpression"){let s=t.object,a=t.property;if(s.type==="Identifier"&&s.name==="React"&&a.type==="Identifier")return["memo","forwardRef"].includes(a.name)}return!1}function xo(e,t){return{type:"ExpressionStatement",expression:{type:"AssignmentExpression",operator:"=",left:{type:"MemberExpression",object:{type:"Identifier",name:e},property:{type:"Identifier",name:po},computed:!1},right:{type:"Literal",value:t}}}}function Cl(){let e=`
33
- function _markReactElementSource(element, source) {
34
- const registryKey = Symbol.for("${fo}");
35
- let registry = globalThis[registryKey];
36
- if (!(registry instanceof WeakMap)) {
37
- registry = globalThis[registryKey] = new WeakMap();
38
- }
39
- if (element && typeof element === "object" && typeof element.props === "object") {
40
- registry.set(element.props, source);
41
- }
42
- return element;
43
- }
44
- `;return go.parse(e,{ecmaVersion:"latest",sourceType:"module"}).body[0]}function wl(e,t){return{type:"CallExpression",callee:{type:"Identifier",name:"_markReactElementSource"},arguments:[e,{type:"Literal",value:t}],optional:!1}}function vo(e,t){let{filename:s,projectRoot:a=process.cwd(),injectJsxSource:o=!0,injectComponentSource:c=!0}=t,p;try{p=gl(s).parse(e,{ecmaVersion:"latest",sourceType:"module",locations:!0})}catch{return null}let g=!1,b=!1,l=new Set,P=[];if(lo(p,{enter(_,B){if(o&&_.type==="CallExpression"&&bl(_)){let w=_.loc;w&&(this.replace(wl(_,Ws(s,w.start,a))),this.skip(),b=!0,g=!0)}if(c&&_.type==="FunctionDeclaration"){let w=_.id?.name;w&&mo(w)&&!l.has(w)&&_.loc&&(P.push({node:_,parent:B,assignment:xo(w,Ws(s,_.loc.start,a))}),l.add(w),g=!0)}if(c&&_.type==="VariableDeclarator"){let w=_.id;if(w.type==="Identifier"&&mo(w.name)&&!l.has(w.name)){let E=_.init;if(E&&Sl(E)){let D=_.loc||E.loc;D&&(P.push({node:_,parent:B,assignment:xo(w.name,Ws(s,D.start,a))}),l.add(w.name),g=!0)}}}}}),!g)return null;if(b){let _=Cl();p.body.some(w=>w.type==="FunctionDeclaration"&&w.id?.name==="_markReactElementSource")||p.body.unshift(_)}for(let{node:_,parent:B,assignment:w}of P.reverse())if(B?.type==="Program"){let E=p.body.indexOf(_);E!==-1&&p.body.splice(E+1,0,w)}else if(B?.type==="ExportNamedDeclaration"){let E=p.body.find(D=>D.type==="ExportNamedDeclaration"&&D.declaration===B);E&&p.body.splice(p.body.indexOf(E)+1,0,w)}else B?.type==="ExportDefaultDeclaration"&&p.body.splice(p.body.indexOf(B)+1,0,w);return{code:ho(p,{generator:vl})}}var _l="virtual:react-code-locator/client",jp=`\0${_l}`;var Al=/\.([jt]sx)$/,El=/node_modules/;function kl(e,t,s){let a=Array.isArray(t)?t:[t];return(Array.isArray(s)?s:[s]).some(c=>c.test(e))?!1:a.some(c=>c.test(e))}var li=Ya((e={})=>{let{include:t=Al,exclude:s=El,projectRoot:a=process.cwd(),injectComponentSource:o=!0,injectJsxSource:c=!0}=e;return{name:"react-code-locator",transform(p,g){return process.env.NODE_ENV!=="development"||!kl(g,t,s)?null:vo(p,{filename:g,projectRoot:a,injectComponentSource:o,injectJsxSource:c})}}}),Gs=li;var $p=li.webpack,zp=li.rollup,Kp=li.esbuild,Xp=li.rspack;var Tl=Gs.webpack,Pl=Gs.webpack;0&&(module.exports={webpackPlugin});
32
+ `?(g=0,b++):g++;this.column=g,this.line=b;return}}let{length:a}=t,{lineEnd:o}=this;a>0&&(this.lineEndSize>0&&(o.length===1?t[a-1]===o:t.endsWith(o))?(this.line+=this.lineEndSize,this.column=0):this.column+=a)}toString(){return this.output}};function lo(e,t){let s=new Hs(t);return s.generator[e.type](e,s),s.output}var ci=class{constructor(){this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.context={skip:()=>this.should_skip=!0,remove:()=>this.should_remove=!0,replace:t=>this.replacement=t}}replace(t,s,a,o){t&&s&&(a!=null?t[s][a]=o:t[s]=o)}remove(t,s,a){t&&s&&(a!=null?t[s].splice(a,1):delete t[s])}};var Ki=class extends ci{constructor(t,s){super(),this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.context={skip:()=>this.should_skip=!0,remove:()=>this.should_remove=!0,replace:a=>this.replacement=a},this.enter=t,this.leave=s}visit(t,s,a,o){if(t){if(this.enter){let p=this.should_skip,g=this.should_remove,b=this.replacement;this.should_skip=!1,this.should_remove=!1,this.replacement=null,this.enter.call(this.context,t,s,a,o),this.replacement&&(t=this.replacement,this.replace(s,a,o,t)),this.should_remove&&this.remove(s,a,o);let l=this.should_skip,_=this.should_remove;if(this.should_skip=p,this.should_remove=g,this.replacement=b,l)return t;if(_)return null}let c;for(c in t){let p=t[c];if(p&&typeof p=="object")if(Array.isArray(p)){let g=p;for(let b=0;b<g.length;b+=1){let l=g[b];po(l)&&(this.visit(l,t,c,b)||b--)}}else po(p)&&this.visit(p,t,c,null)}if(this.leave){let p=this.replacement,g=this.should_remove;this.replacement=null,this.should_remove=!1,this.leave.call(this.context,t,s,a,o),this.replacement&&(t=this.replacement,this.replace(s,a,o,t)),this.should_remove&&this.remove(s,a,o);let b=this.should_remove;if(this.replacement=p,this.should_remove=g,b)return null}}return t}};function po(e){return e!==null&&typeof e=="object"&&"type"in e&&typeof e.type=="string"}function fo(e,{enter:t,leave:s}){return new Ki(t,s).visit(e,null)}var mo="__componentSourceLoc",Ws="$componentSourceLoc";var xl=Ae.extend(js(),(0,yo.default)()),yl=Ae.extend(js());function gl(e){return/\.[jt]sx$/.test(e)?xl:yl}var vl={...qs,JSXElement(e,t){this[e.openingElement.type](e.openingElement,t);for(let s of e.children)this[s.type](s,t);e.closingElement&&this[e.closingElement.type](e.closingElement,t)},JSXFragment(e,t){t.write("<>");for(let s of e.children)this[s.type](s,t);t.write("</>")},JSXOpeningElement(e,t){t.write("<"),this[e.name.type](e.name,t);for(let s of e.attributes)t.write(" "),this[s.type](s,t);t.write(e.selfClosing?" />":">")},JSXClosingElement(e,t){t.write("</"),this[e.name.type](e.name,t),t.write(">")},JSXIdentifier(e,t){t.write(e.name)},JSXMemberExpression(e,t){this[e.object.type](e.object,t),t.write("."),this[e.property.type](e.property,t)},JSXNamespacedName(e,t){this[e.namespace.type](e.namespace,t),t.write(":"),this[e.name.type](e.name,t)},JSXAttribute(e,t){this[e.name.type](e.name,t),e.value!==null&&(t.write("="),this[e.value.type](e.value,t))},JSXSpreadAttribute(e,t){t.write("{..."),this[e.argument.type](e.argument,t),t.write("}")},JSXExpressionContainer(e,t){t.write("{"),e.expression.type!=="JSXEmptyExpression"&&this[e.expression.type](e.expression,t),t.write("}")},JSXEmptyExpression(e,t){},JSXText(e,t){t.write(e.value)},JSXOpeningFragment(e,t){t.write("<>")},JSXClosingFragment(e,t){t.write("</>")},TSTypeAnnotation(e,t){},TSTypeParameterDeclaration(e,t){},TSTypeParameterInstantiation(e,t){},TSInterfaceDeclaration(e,t){},TSTypeAliasDeclaration(e,t){},TSEnumDeclaration(e,t){},TSModuleDeclaration(e,t){},TSImportEqualsDeclaration(e,t){},TSExportAssignment(e,t){},TSNamespaceExportDeclaration(e,t){},TSAsExpression(e,t){this[e.expression.type](e.expression,t)},TSSatisfiesExpression(e,t){this[e.expression.type](e.expression,t)},TSNonNullExpression(e,t){this[e.expression.type](e.expression,t)},TSTypeAssertion(e,t){this[e.expression.type](e.expression,t)},TSInstantiationExpression(e,t){this[e.expression.type](e.expression,t)},TSParameterProperty(e,t){this[e.parameter.type](e.parameter,t)}};function Gs(e,t,s){let a=s||process.cwd();return`${e.startsWith(a)?e.slice(a.length+1):e}:${t.line}:${t.column+1}`}function $s(e){return/^[A-Z]/.test(e)}function bl(e){return{type:"JSXAttribute",name:{type:"JSXIdentifier",name:Ws},value:{type:"Literal",value:e}}}function Sl(e){if(!e)return!1;if(e.type==="ArrowFunctionExpression"||e.type==="FunctionExpression")return!0;if(e.type!=="CallExpression")return!1;let t=e.callee;if(t.type==="Identifier")return["memo","forwardRef"].includes(t.name);if(t.type==="MemberExpression"){let s=t.object,a=t.property;if(s.type==="Identifier"&&s.name==="React"&&a.type==="Identifier")return["memo","forwardRef"].includes(a.name)}return!1}function xo(e,t){return{type:"ExpressionStatement",expression:{type:"AssignmentExpression",operator:"=",left:{type:"MemberExpression",object:{type:"Identifier",name:e},property:{type:"Identifier",name:mo},computed:!1},right:{type:"Literal",value:t}}}}function go(e,t){let{filename:s,projectRoot:a=process.cwd(),injectJsxSource:o=!0,injectComponentSource:c=!0}=t,p;try{p=gl(s).parse(e,{ecmaVersion:"latest",sourceType:"module",locations:!0})}catch{return null}let g=!1,b=new Set,l=[];if(fo(p,{enter(_,E){if(o&&_.type==="JSXElement"){let D=_.openingElement,w=D.name,k=!1;w.type==="JSXIdentifier"?k=$s(w.name):w.type==="JSXMemberExpression"&&(k=!0),k&&_.loc&&(D.attributes.some(V=>V.type==="JSXAttribute"&&V.name?.name===Ws)||(D.attributes.push(bl(Gs(s,_.loc.start,a))),g=!0))}if(c&&_.type==="FunctionDeclaration"){let D=_.id?.name;D&&$s(D)&&!b.has(D)&&_.loc&&(l.push({node:_,parent:E,assignment:xo(D,Gs(s,_.loc.start,a))}),b.add(D),g=!0)}if(c&&_.type==="VariableDeclarator"){let D=_.id;if(D.type==="Identifier"&&$s(D.name)&&!b.has(D.name)){let w=_.init;if(w&&Sl(w)){let k=_.loc||w.loc;k&&(l.push({node:_,parent:E,assignment:xo(D.name,Gs(s,k.start,a))}),b.add(D.name),g=!0)}}}}}),!g)return null;for(let{node:_,parent:E,assignment:D}of l.reverse())if(E?.type==="Program"){let w=p.body.indexOf(_);w!==-1&&p.body.splice(w+1,0,D)}else if(E?.type==="ExportNamedDeclaration"){let w=p.body.find(k=>k.type==="ExportNamedDeclaration"&&k.declaration===E);w&&p.body.splice(p.body.indexOf(w)+1,0,D)}else E?.type==="ExportDefaultDeclaration"&&p.body.splice(p.body.indexOf(E)+1,0,D);return{code:lo(p,{generator:vl})}}var Cl="virtual:react-code-locator/client",Bp=`\0${Cl}`;var wl=/\.([jt]sx)$/,_l=/node_modules/;function Al(e,t,s){let a=Array.isArray(t)?t:[t];return(Array.isArray(s)?s:[s]).some(c=>c.test(e))?!1:a.some(c=>c.test(e))}var li=en((e={})=>{let{include:t=wl,exclude:s=_l,projectRoot:a=process.cwd(),injectComponentSource:o=!0,injectJsxSource:c=!0}=e;return{name:"react-code-locator",enforce:"pre",transform(p,g){return process.env.NODE_ENV!=="development"||!Al(g,t,s)?null:go(p,{filename:g,projectRoot:a,injectComponentSource:o,injectJsxSource:c})}}}),zs=li;var Wp=li.webpack,Gp=li.rollup,$p=li.esbuild,zp=li.rspack;var El=zs.webpack,kl=zs.webpack;0&&(module.exports={webpackPlugin});
45
33
  //# sourceMappingURL=webpack.cjs.map