]/.test(h)||/[enwfd]/.test(h)&&/\b(case|else|return|throw|new|in|(instance|type)?of|delete|void)$/.test(this.input.slice(p-10,p)),this.options.locations){this.toks.curLine=1,this.toks.lineStart=t.lineBreakG.lastIndex=0;for(var T;(T=t.lineBreakG.exec(this.input))&&T.indexthis.ahead.length;)this.ahead.push(this.readToken());return this.ahead[p-1]};var y=a.prototype;y.parseTopLevel=function(){var p=this.startNodeAt(this.options.locations?[0,t.getLineInfo(this.input,0)]:0);for(p.body=[];this.tok.type!==t.tokTypes.eof;)p.body.push(this.parseStatement());return this.toks.adaptDirectivePrologue(p.body),this.last=this.tok,p.sourceType=this.options.sourceType==="commonjs"?"script":this.options.sourceType,this.finishNode(p,"Program")},y.parseStatement=function(){var p=this.tok.type,h=this.startNode(),T;switch(this.toks.isLet()&&(p=t.tokTypes._var,T="let"),p){case t.tokTypes._break:case t.tokTypes._continue:this.next();var x=p===t.tokTypes._break;return this.semicolon()||this.canInsertSemicolon()?h.label=null:(h.label=this.tok.type===t.tokTypes.name?this.parseIdent():null,this.semicolon()),this.finishNode(h,x?"BreakStatement":"ContinueStatement");case t.tokTypes._debugger:return this.next(),this.semicolon(),this.finishNode(h,"DebuggerStatement");case t.tokTypes._do:return this.next(),h.body=this.parseStatement(),h.test=this.eat(t.tokTypes._while)?this.parseParenExpression():this.dummyIdent(),this.semicolon(),this.finishNode(h,"DoWhileStatement");case t.tokTypes._for:this.next();var w=this.options.ecmaVersion>=9&&this.eatContextual("await");if(this.pushCx(),this.expect(t.tokTypes.parenL),this.tok.type===t.tokTypes.semi)return this.parseFor(h,null);var S=this.toks.isLet(),A=this.toks.isAwaitUsing(!0),U=!A&&this.toks.isUsing(!0);if(S||this.tok.type===t.tokTypes._var||this.tok.type===t.tokTypes._const||U||A){var M=S?"let":U?"using":A?"await using":this.tok.value,c=this.startNode();return U||A?(A&&this.next(),this.parseVar(c,!0,M)):c=this.parseVar(c,!0,M),c.declarations.length===1&&(this.tok.type===t.tokTypes._in||this.isContextual("of"))?(this.options.ecmaVersion>=9&&this.tok.type!==t.tokTypes._in&&(h.await=w),this.parseForIn(h,c)):this.parseFor(h,c)}var R=this.parseExpression(!0);return this.tok.type===t.tokTypes._in||this.isContextual("of")?(this.options.ecmaVersion>=9&&this.tok.type!==t.tokTypes._in&&(h.await=w),this.parseForIn(h,this.toAssignable(R))):this.parseFor(h,R);case t.tokTypes._function:return this.next(),this.parseFunction(h,!0);case t.tokTypes._if:return this.next(),h.test=this.parseParenExpression(),h.consequent=this.parseStatement(),h.alternate=this.eat(t.tokTypes._else)?this.parseStatement():null,this.finishNode(h,"IfStatement");case t.tokTypes._return:return this.next(),this.eat(t.tokTypes.semi)||this.canInsertSemicolon()?h.argument=null:(h.argument=this.parseExpression(),this.semicolon()),this.finishNode(h,"ReturnStatement");case t.tokTypes._switch:var W=this.curIndent,Y=this.curLineStart;this.next(),h.discriminant=this.parseParenExpression(),h.cases=[],this.pushCx(),this.expect(t.tokTypes.braceL);for(var ie;!this.closes(t.tokTypes.braceR,W,Y,!0);)if(this.tok.type===t.tokTypes._case||this.tok.type===t.tokTypes._default){var pe=this.tok.type===t.tokTypes._case;ie&&this.finishNode(ie,"SwitchCase"),h.cases.push(ie=this.startNode()),ie.consequent=[],this.next(),pe?ie.test=this.parseExpression():ie.test=null,this.expect(t.tokTypes.colon)}else ie||(h.cases.push(ie=this.startNode()),ie.consequent=[],ie.test=null),ie.consequent.push(this.parseStatement());return ie&&this.finishNode(ie,"SwitchCase"),this.popCx(),this.eat(t.tokTypes.braceR),this.finishNode(h,"SwitchStatement");case t.tokTypes._throw:return this.next(),h.argument=this.parseExpression(),this.semicolon(),this.finishNode(h,"ThrowStatement");case t.tokTypes._try:if(this.next(),h.block=this.parseBlock(),h.handler=null,this.tok.type===t.tokTypes._catch){var ae=this.startNode();this.next(),this.eat(t.tokTypes.parenL)?(ae.param=this.toAssignable(this.parseExprAtom(),!0),this.expect(t.tokTypes.parenR)):ae.param=null,ae.body=this.parseBlock(),h.handler=this.finishNode(ae,"CatchClause")}return h.finalizer=this.eat(t.tokTypes._finally)?this.parseBlock():null,!h.handler&&!h.finalizer?h.block:this.finishNode(h,"TryStatement");case t.tokTypes._var:case t.tokTypes._const:return this.parseVar(h,!1,T||this.tok.value);case t.tokTypes._while:return this.next(),h.test=this.parseParenExpression(),h.body=this.parseStatement(),this.finishNode(h,"WhileStatement");case t.tokTypes._with:return this.next(),h.object=this.parseParenExpression(),h.body=this.parseStatement(),this.finishNode(h,"WithStatement");case t.tokTypes.braceL:return this.parseBlock();case t.tokTypes.semi:return this.next(),this.finishNode(h,"EmptyStatement");case t.tokTypes._class:return this.parseClass(!0);case t.tokTypes._import:if(this.options.ecmaVersion>10){var He=this.lookAhead(1).type;if(He===t.tokTypes.parenL||He===t.tokTypes.dot)return h.expression=this.parseExpression(),this.semicolon(),this.finishNode(h,"ExpressionStatement")}return this.parseImport();case t.tokTypes._export:return this.parseExport();default:if(this.toks.isAsyncFunction())return this.next(),this.next(),this.parseFunction(h,!0,!0);if(this.toks.isUsing(!1))return this.parseVar(h,!1,"using");if(this.toks.isAwaitUsing(!1))return this.next(),this.parseVar(h,!1,"await using");var qe=this.parseExpression();return i(qe)?(this.next(),this.tok.type===t.tokTypes.eof?this.finishNode(h,"EmptyStatement"):this.parseStatement()):p===t.tokTypes.name&&qe.type==="Identifier"&&this.eat(t.tokTypes.colon)?(h.body=this.parseStatement(),h.label=qe,this.finishNode(h,"LabeledStatement")):(h.expression=qe,this.semicolon(),this.finishNode(h,"ExpressionStatement"))}},y.parseBlock=function(){var p=this.startNode();this.pushCx(),this.expect(t.tokTypes.braceL);var h=this.curIndent,T=this.curLineStart;for(p.body=[];!this.closes(t.tokTypes.braceR,h,T,!0);)p.body.push(this.parseStatement());return this.popCx(),this.eat(t.tokTypes.braceR),this.finishNode(p,"BlockStatement")},y.parseFor=function(p,h){return p.init=h,p.test=p.update=null,this.eat(t.tokTypes.semi)&&this.tok.type!==t.tokTypes.semi&&(p.test=this.parseExpression()),this.eat(t.tokTypes.semi)&&this.tok.type!==t.tokTypes.parenR&&(p.update=this.parseExpression()),this.popCx(),this.expect(t.tokTypes.parenR),p.body=this.parseStatement(),this.finishNode(p,"ForStatement")},y.parseForIn=function(p,h){var T=this.tok.type===t.tokTypes._in?"ForInStatement":"ForOfStatement";return this.next(),p.left=h,p.right=this.parseExpression(),this.popCx(),this.expect(t.tokTypes.parenR),p.body=this.parseStatement(),this.finishNode(p,T)},y.parseVar=function(p,h,T){p.kind=T,this.next(),p.declarations=[];do{var x=this.startNode();x.id=this.options.ecmaVersion>=6?this.toAssignable(this.parseExprAtom(),!0):this.parseIdent(),x.init=this.eat(t.tokTypes.eq)?this.parseMaybeAssign(h):null,p.declarations.push(this.finishNode(x,"VariableDeclarator"))}while(this.eat(t.tokTypes.comma));if(!p.declarations.length){var w=this.startNode();w.id=this.dummyIdent(),p.declarations.push(this.finishNode(w,"VariableDeclarator"))}return h||this.semicolon(),this.finishNode(p,"VariableDeclaration")},y.parseClass=function(p){var h=this.startNode();this.next(),this.tok.type===t.tokTypes.name?h.id=this.parseIdent():p===!0?h.id=this.dummyIdent():h.id=null,h.superClass=this.eat(t.tokTypes._extends)?this.parseExpression():null,h.body=this.startNode(),h.body.body=[],this.pushCx();var T=this.curIndent+1,x=this.curLineStart;for(this.eat(t.tokTypes.braceL),this.curIndent+1=13&&this.eat(t.tokTypes.braceL))return this.parseClassStaticBlock(S),S;this.isClassElementNameStart()||this.toks.type===t.tokTypes.star?R=!0:A="static"}if(S.static=R,!A&&h>=8&&this.eatContextual("async")&&((this.isClassElementNameStart()||this.toks.type===t.tokTypes.star)&&!this.canInsertSemicolon()?M=!0:A="async"),!A){U=this.eat(t.tokTypes.star);var W=this.toks.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?c=W:A=W)}if(A)S.computed=!1,S.key=this.startNodeAt(T?[this.toks.lastTokStart,this.toks.lastTokStartLoc]:this.toks.lastTokStart),S.key.name=A,this.finishNode(S.key,"Identifier");else if(this.parseClassElementName(S),i(S.key))return i(this.parseMaybeAssign())&&this.next(),this.eat(t.tokTypes.comma),null;if(h<13||this.toks.type===t.tokTypes.parenL||c!=="method"||U||M){var Y=!S.computed&&!S.static&&!U&&!M&&c==="method"&&(S.key.type==="Identifier"&&S.key.name==="constructor"||S.key.type==="Literal"&&S.key.value==="constructor");S.kind=Y?"constructor":c,S.value=this.parseMethod(U,M),this.finishNode(S,"MethodDefinition")}else{if(this.eat(t.tokTypes.eq))if(this.curLineStart!==w&&this.curIndent<=x&&this.tokenStartsLine())S.value=null;else{var ie=this.inAsync,pe=this.inGenerator;this.inAsync=!1,this.inGenerator=!1,S.value=this.parseMaybeAssign(),this.inAsync=ie,this.inGenerator=pe}else S.value=null;this.semicolon(),this.finishNode(S,"PropertyDefinition")}return S},y.parseClassStaticBlock=function(p){var h=this.curIndent,T=this.curLineStart;for(p.body=[],this.pushCx();!this.closes(t.tokTypes.braceR,h,T,!0);)p.body.push(this.parseStatement());return this.popCx(),this.eat(t.tokTypes.braceR),this.finishNode(p,"StaticBlock")},y.isClassElementNameStart=function(){return this.toks.isClassElementNameStart()},y.parseClassElementName=function(p){this.toks.type===t.tokTypes.privateId?(p.computed=!1,p.key=this.parsePrivateIdent()):this.parsePropertyName(p)},y.parseFunction=function(p,h,T){var x=this.inAsync,w=this.inGenerator,S=this.inFunction;return this.initFunction(p),this.options.ecmaVersion>=6&&(p.generator=this.eat(t.tokTypes.star)),this.options.ecmaVersion>=8&&(p.async=!!T),this.tok.type===t.tokTypes.name?p.id=this.parseIdent():h===!0&&(p.id=this.dummyIdent()),this.inAsync=p.async,this.inGenerator=p.generator,this.inFunction=!0,p.params=this.parseFunctionParams(),p.body=this.parseBlock(),this.toks.adaptDirectivePrologue(p.body.body),this.inAsync=x,this.inGenerator=w,this.inFunction=S,this.finishNode(p,h?"FunctionDeclaration":"FunctionExpression")},y.parseExport=function(){var p=this.startNode();if(this.next(),this.eat(t.tokTypes.star))return this.options.ecmaVersion>=11&&(this.eatContextual("as")?p.exported=this.parseExprAtom():p.exported=null),p.source=this.eatContextual("from")?this.parseExprAtom():this.dummyString(),this.options.ecmaVersion>=16&&(p.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(p,"ExportAllDeclaration");if(this.eat(t.tokTypes._default)){var h;if(this.tok.type===t.tokTypes._function||(h=this.toks.isAsyncFunction())){var T=this.startNode();this.next(),h&&this.next(),p.declaration=this.parseFunction(T,"nullableID",h)}else this.tok.type===t.tokTypes._class?p.declaration=this.parseClass("nullableID"):(p.declaration=this.parseMaybeAssign(),this.semicolon());return this.finishNode(p,"ExportDefaultDeclaration")}return this.tok.type.keyword||this.toks.isLet()||this.toks.isAsyncFunction()?(p.declaration=this.parseStatement(),p.specifiers=[],p.source=null):(p.declaration=null,p.specifiers=this.parseExportSpecifierList(),p.source=this.eatContextual("from")?this.parseExprAtom():null,this.options.ecmaVersion>=16&&(p.attributes=this.parseWithClause()),this.semicolon()),this.finishNode(p,"ExportNamedDeclaration")},y.parseImport=function(){var p=this.startNode();if(this.next(),this.tok.type===t.tokTypes.string)p.specifiers=[],p.source=this.parseExprAtom();else{var h;this.tok.type===t.tokTypes.name&&this.tok.value!=="from"&&(h=this.startNode(),h.local=this.parseIdent(),this.finishNode(h,"ImportDefaultSpecifier"),this.eat(t.tokTypes.comma)),p.specifiers=this.parseImportSpecifiers(),p.source=this.eatContextual("from")&&this.tok.type===t.tokTypes.string?this.parseExprAtom():this.dummyString(),h&&p.specifiers.unshift(h)}return this.options.ecmaVersion>=16&&(p.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(p,"ImportDeclaration")},y.parseImportSpecifiers=function(){var p=[];if(this.tok.type===t.tokTypes.star){var h=this.startNode();this.next(),h.local=this.eatContextual("as")?this.parseIdent():this.dummyIdent(),p.push(this.finishNode(h,"ImportNamespaceSpecifier"))}else{var T=this.curIndent,x=this.curLineStart,w=this.nextLineStart;for(this.pushCx(),this.eat(t.tokTypes.braceL),this.curLineStart>w&&(w=this.curLineStart);!this.closes(t.tokTypes.braceR,T+(this.curLineStart<=w?1:0),x);){var S=this.startNode();if(this.eat(t.tokTypes.star))S.local=this.eatContextual("as")?this.parseModuleExportName():this.dummyIdent(),this.finishNode(S,"ImportNamespaceSpecifier");else{if(this.isContextual("from")||(S.imported=this.parseModuleExportName(),i(S.imported)))break;S.local=this.eatContextual("as")?this.parseModuleExportName():S.imported,this.finishNode(S,"ImportSpecifier")}p.push(S),this.eat(t.tokTypes.comma)}this.eat(t.tokTypes.braceR),this.popCx()}return p},y.parseWithClause=function(){var p=[];if(!this.eat(t.tokTypes._with))return p;var h=this.curIndent,T=this.curLineStart,x=this.nextLineStart;for(this.pushCx(),this.eat(t.tokTypes.braceL),this.curLineStart>x&&(x=this.curLineStart);!this.closes(t.tokTypes.braceR,h+(this.curLineStart<=x?1:0),T);){var w=this.startNode();if(w.key=this.tok.type===t.tokTypes.string?this.parseExprAtom():this.parseIdent(),this.eat(t.tokTypes.colon))this.tok.type===t.tokTypes.string?w.value=this.parseExprAtom():w.value=this.dummyString();else{if(i(w.key))break;if(this.tok.type===t.tokTypes.string)w.value=this.parseExprAtom();else break}p.push(this.finishNode(w,"ImportAttribute")),this.eat(t.tokTypes.comma)}return this.eat(t.tokTypes.braceR),this.popCx(),p},y.parseExportSpecifierList=function(){var p=[],h=this.curIndent,T=this.curLineStart,x=this.nextLineStart;for(this.pushCx(),this.eat(t.tokTypes.braceL),this.curLineStart>x&&(x=this.curLineStart);!this.closes(t.tokTypes.braceR,h+(this.curLineStart<=x?1:0),T)&&!this.isContextual("from");){var w=this.startNode();if(w.local=this.parseModuleExportName(),i(w.local))break;w.exported=this.eatContextual("as")?this.parseModuleExportName():w.local,this.finishNode(w,"ExportSpecifier"),p.push(w),this.eat(t.tokTypes.comma)}return this.eat(t.tokTypes.braceR),this.popCx(),p},y.parseModuleExportName=function(){return this.options.ecmaVersion>=13&&this.tok.type===t.tokTypes.string?this.parseExprAtom():this.parseIdent()};var g=a.prototype;g.checkLVal=function(p){if(!p)return p;switch(p.type){case"Identifier":case"MemberExpression":return p;case"ParenthesizedExpression":return p.expression=this.checkLVal(p.expression),p;default:return this.dummyIdent()}},g.parseExpression=function(p){var h=this.storeCurrentPos(),T=this.parseMaybeAssign(p);if(this.tok.type===t.tokTypes.comma){var x=this.startNodeAt(h);for(x.expressions=[T];this.eat(t.tokTypes.comma);)x.expressions.push(this.parseMaybeAssign(p));return this.finishNode(x,"SequenceExpression")}return T},g.parseParenExpression=function(){this.pushCx(),this.expect(t.tokTypes.parenL);var p=this.parseExpression();return this.popCx(),this.expect(t.tokTypes.parenR),p},g.parseMaybeAssign=function(p){if(this.inGenerator&&this.toks.isContextual("yield")){var h=this.startNode();return this.next(),this.semicolon()||this.canInsertSemicolon()||this.tok.type!==t.tokTypes.star&&!this.tok.type.startsExpr?(h.delegate=!1,h.argument=null):(h.delegate=this.eat(t.tokTypes.star),h.argument=this.parseMaybeAssign()),this.finishNode(h,"YieldExpression")}var T=this.storeCurrentPos(),x=this.parseMaybeConditional(p);if(this.tok.type.isAssign){var w=this.startNodeAt(T);return w.operator=this.tok.value,w.left=this.tok.type===t.tokTypes.eq?this.toAssignable(x):this.checkLVal(x),this.next(),w.right=this.parseMaybeAssign(p),this.finishNode(w,"AssignmentExpression")}return x},g.parseMaybeConditional=function(p){var h=this.storeCurrentPos(),T=this.parseExprOps(p);if(this.eat(t.tokTypes.question)){var x=this.startNodeAt(h);return x.test=T,x.consequent=this.parseMaybeAssign(),x.alternate=this.expect(t.tokTypes.colon)?this.parseMaybeAssign(p):this.dummyIdent(),this.finishNode(x,"ConditionalExpression")}return T},g.parseExprOps=function(p){var h=this.storeCurrentPos(),T=this.curIndent,x=this.curLineStart;return this.parseExprOp(this.parseMaybeUnary(!1),h,-1,p,T,x)},g.parseExprOp=function(p,h,T,x,w,S){if(this.curLineStart!==S&&this.curIndentT){var U=this.startNodeAt(h);if(U.left=p,U.operator=this.tok.value,this.next(),this.curLineStart!==S&&this.curIndent=8&&this.toks.isContextual("await")&&(this.inAsync||this.toks.inModule&&this.options.ecmaVersion>=13||!this.inFunction&&this.options.allowAwaitOutsideFunction))T=this.parseAwait(),p=!0;else if(this.tok.type.prefix){var x=this.startNode(),w=this.tok.type===t.tokTypes.incDec;w||(p=!0),x.operator=this.tok.value,x.prefix=!0,this.next(),x.argument=this.parseMaybeUnary(!0),w&&(x.argument=this.checkLVal(x.argument)),T=this.finishNode(x,w?"UpdateExpression":"UnaryExpression")}else if(this.tok.type===t.tokTypes.ellipsis){var S=this.startNode();this.next(),S.argument=this.parseMaybeUnary(p),T=this.finishNode(S,"SpreadElement")}else if(!p&&this.tok.type===t.tokTypes.privateId)T=this.parsePrivateIdent();else for(T=this.parseExprSubscripts();this.tok.type.postfix&&!this.canInsertSemicolon();){var A=this.startNodeAt(h);A.operator=this.tok.value,A.prefix=!1,A.argument=this.checkLVal(T),this.next(),T=this.finishNode(A,"UpdateExpression")}if(!p&&this.eat(t.tokTypes.starstar)){var U=this.startNodeAt(h);return U.operator="**",U.left=T,U.right=this.parseMaybeUnary(!1),this.finishNode(U,"BinaryExpression")}return T},g.parseExprSubscripts=function(){var p=this.storeCurrentPos();return this.parseSubscripts(this.parseExprAtom(),p,!1,this.curIndent,this.curLineStart)},g.parseSubscripts=function(p,h,T,x,w){for(var S=this.options.ecmaVersion>=11,A=!1;;){if(this.curLineStart!==w&&this.curIndent<=x&&this.tokenStartsLine())if(this.tok.type===t.tokTypes.dot&&this.curIndent===x)--x;else break;var U=p.type==="Identifier"&&p.name==="async"&&!this.canInsertSemicolon(),M=S&&this.eat(t.tokTypes.questionDot);if(M&&(A=!0),M&&this.tok.type!==t.tokTypes.parenL&&this.tok.type!==t.tokTypes.bracketL&&this.tok.type!==t.tokTypes.backQuote||this.eat(t.tokTypes.dot)){var c=this.startNodeAt(h);c.object=p,this.curLineStart!==w&&this.curIndent<=x&&this.tokenStartsLine()?c.property=this.dummyIdent():c.property=this.parsePropertyAccessor()||this.dummyIdent(),c.computed=!1,S&&(c.optional=M),p=this.finishNode(c,"MemberExpression")}else if(this.tok.type===t.tokTypes.bracketL){this.pushCx(),this.next();var R=this.startNodeAt(h);R.object=p,R.property=this.parseExpression(),R.computed=!0,S&&(R.optional=M),this.popCx(),this.expect(t.tokTypes.bracketR),p=this.finishNode(R,"MemberExpression")}else if(!T&&this.tok.type===t.tokTypes.parenL){var W=this.parseExprList(t.tokTypes.parenR);if(U&&this.eat(t.tokTypes.arrow))return this.parseArrowExpression(this.startNodeAt(h),W,!0);var Y=this.startNodeAt(h);Y.callee=p,Y.arguments=W,S&&(Y.optional=M),p=this.finishNode(Y,"CallExpression")}else if(this.tok.type===t.tokTypes.backQuote){var ie=this.startNodeAt(h);ie.tag=p,ie.quasi=this.parseTemplate(),p=this.finishNode(ie,"TaggedTemplateExpression")}else break}if(A){var pe=this.startNodeAt(h);pe.expression=p,p=this.finishNode(pe,"ChainExpression")}return p},g.parseExprAtom=function(){var p;switch(this.tok.type){case t.tokTypes._this:case t.tokTypes._super:var h=this.tok.type===t.tokTypes._this?"ThisExpression":"Super";return p=this.startNode(),this.next(),this.finishNode(p,h);case t.tokTypes.name:var T=this.storeCurrentPos(),x=this.parseIdent(),w=!1;if(x.name==="async"&&!this.canInsertSemicolon()){if(this.eat(t.tokTypes._function))return this.toks.overrideContext(t.tokContexts.f_expr),this.parseFunction(this.startNodeAt(T),!1,!0);this.tok.type===t.tokTypes.name&&(x=this.parseIdent(),w=!0)}return this.eat(t.tokTypes.arrow)?this.parseArrowExpression(this.startNodeAt(T),[x],w):x;case t.tokTypes.regexp:p=this.startNode();var S=this.tok.value;return p.regex={pattern:S.pattern,flags:S.flags},p.value=S.value,p.raw=this.input.slice(this.tok.start,this.tok.end),this.next(),this.finishNode(p,"Literal");case t.tokTypes.num:case t.tokTypes.string:return p=this.startNode(),p.value=this.tok.value,p.raw=this.input.slice(this.tok.start,this.tok.end),this.tok.type===t.tokTypes.num&&p.raw.charCodeAt(p.raw.length-1)===110&&(p.bigint=p.value!=null?p.value.toString():p.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(p,"Literal");case t.tokTypes._null:case t.tokTypes._true:case t.tokTypes._false:return p=this.startNode(),p.value=this.tok.type===t.tokTypes._null?null:this.tok.type===t.tokTypes._true,p.raw=this.tok.type.keyword,this.next(),this.finishNode(p,"Literal");case t.tokTypes.parenL:var A=this.storeCurrentPos();this.next();var U=this.parseExpression();if(this.expect(t.tokTypes.parenR),this.eat(t.tokTypes.arrow)){var M=U.expressions||[U];return M.length&&i(M[M.length-1])&&M.pop(),this.parseArrowExpression(this.startNodeAt(A),M)}if(this.options.preserveParens){var c=this.startNodeAt(A);c.expression=U,U=this.finishNode(c,"ParenthesizedExpression")}return U;case t.tokTypes.bracketL:return p=this.startNode(),p.elements=this.parseExprList(t.tokTypes.bracketR,!0),this.finishNode(p,"ArrayExpression");case t.tokTypes.braceL:return this.toks.overrideContext(t.tokContexts.b_expr),this.parseObj();case t.tokTypes._class:return this.parseClass(!1);case t.tokTypes._function:return p=this.startNode(),this.next(),this.parseFunction(p,!1);case t.tokTypes._new:return this.parseNew();case t.tokTypes.backQuote:return this.parseTemplate();case t.tokTypes._import:return this.options.ecmaVersion>=11?this.parseExprImport():this.dummyIdent();default:return this.dummyIdent()}},g.parseExprImport=function(){var p=this.startNode(),h=this.parseIdent(!0);switch(this.tok.type){case t.tokTypes.parenL:return this.parseDynamicImport(p);case t.tokTypes.dot:return p.meta=h,this.parseImportMeta(p);default:return p.name="import",this.finishNode(p,"Identifier")}},g.parseDynamicImport=function(p){var h=this.parseExprList(t.tokTypes.parenR);return p.source=h[0]||this.dummyString(),p.options=h[1]||null,this.finishNode(p,"ImportExpression")},g.parseImportMeta=function(p){return this.next(),p.property=this.parseIdent(!0),this.finishNode(p,"MetaProperty")},g.parseNew=function(){var p=this.startNode(),h=this.curIndent,T=this.curLineStart,x=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(t.tokTypes.dot))return p.meta=x,p.property=this.parseIdent(!0),this.finishNode(p,"MetaProperty");var w=this.storeCurrentPos();return p.callee=this.parseSubscripts(this.parseExprAtom(),w,!0,h,T),this.tok.type===t.tokTypes.parenL?p.arguments=this.parseExprList(t.tokTypes.parenR):p.arguments=[],this.finishNode(p,"NewExpression")},g.parseTemplateElement=function(){var p=this.startNode();return this.tok.type===t.tokTypes.invalidTemplate?p.value={raw:this.tok.value,cooked:null}:p.value={raw:this.input.slice(this.tok.start,this.tok.end).replace(/\r\n?/g,`
+`),cooked:this.tok.value},this.next(),p.tail=this.tok.type===t.tokTypes.backQuote,this.finishNode(p,"TemplateElement")},g.parseTemplate=function(){var p=this.startNode();this.next(),p.expressions=[];var h=this.parseTemplateElement();for(p.quasis=[h];!h.tail;)this.next(),p.expressions.push(this.parseExpression()),this.expect(t.tokTypes.braceR)?h=this.parseTemplateElement():(h=this.startNode(),h.value={cooked:"",raw:""},h.tail=!0,this.finishNode(h,"TemplateElement")),p.quasis.push(h);return this.expect(t.tokTypes.backQuote),this.finishNode(p,"TemplateLiteral")},g.parseObj=function(){var p=this.startNode();p.properties=[],this.pushCx();var h=this.curIndent+1,T=this.curLineStart;for(this.eat(t.tokTypes.braceL),this.curIndent+1=9&&this.eat(t.tokTypes.ellipsis)){x.argument=this.parseMaybeAssign(),p.properties.push(this.finishNode(x,"SpreadElement")),this.eat(t.tokTypes.comma);continue}if(this.options.ecmaVersion>=6&&(A=this.storeCurrentPos(),x.method=!1,x.shorthand=!1,w=this.eat(t.tokTypes.star)),this.parsePropertyName(x),this.toks.isAsyncProp(x)?(S=!0,w=this.options.ecmaVersion>=9&&this.eat(t.tokTypes.star),this.parsePropertyName(x)):S=!1,i(x.key)){i(this.parseMaybeAssign())&&this.next(),this.eat(t.tokTypes.comma);continue}if(this.eat(t.tokTypes.colon))x.kind="init",x.value=this.parseMaybeAssign();else if(this.options.ecmaVersion>=6&&(this.tok.type===t.tokTypes.parenL||this.tok.type===t.tokTypes.braceL))x.kind="init",x.method=!0,x.value=this.parseMethod(w,S);else if(this.options.ecmaVersion>=5&&x.key.type==="Identifier"&&!x.computed&&(x.key.name==="get"||x.key.name==="set")&&this.tok.type!==t.tokTypes.comma&&this.tok.type!==t.tokTypes.braceR&&this.tok.type!==t.tokTypes.eq)x.kind=x.key.name,this.parsePropertyName(x),x.value=this.parseMethod(!1);else{if(x.kind="init",this.options.ecmaVersion>=6)if(this.eat(t.tokTypes.eq)){var U=this.startNodeAt(A);U.operator="=",U.left=x.key,U.right=this.parseMaybeAssign(),x.value=this.finishNode(U,"AssignmentExpression")}else x.value=x.key;else x.value=this.dummyIdent();x.shorthand=!0}p.properties.push(this.finishNode(x,"Property")),this.eat(t.tokTypes.comma)}return this.popCx(),this.eat(t.tokTypes.braceR)||(this.last.end=this.tok.start,this.options.locations&&(this.last.loc.end=this.tok.loc.start)),this.finishNode(p,"ObjectExpression")},g.parsePropertyName=function(p){if(this.options.ecmaVersion>=6)if(this.eat(t.tokTypes.bracketL)){p.computed=!0,p.key=this.parseExpression(),this.expect(t.tokTypes.bracketR);return}else p.computed=!1;var h=this.tok.type===t.tokTypes.num||this.tok.type===t.tokTypes.string?this.parseExprAtom():this.parseIdent();p.key=h||this.dummyIdent()},g.parsePropertyAccessor=function(){if(this.tok.type===t.tokTypes.name||this.tok.type.keyword)return this.parseIdent();if(this.tok.type===t.tokTypes.privateId)return this.parsePrivateIdent()},g.parseIdent=function(){var p=this.tok.type===t.tokTypes.name?this.tok.value:this.tok.type.keyword;if(!p)return this.dummyIdent();this.tok.type.keyword&&(this.toks.type=t.tokTypes.name);var h=this.startNode();return this.next(),h.name=p,this.finishNode(h,"Identifier")},g.parsePrivateIdent=function(){var p=this.startNode();return p.name=this.tok.value,this.next(),this.finishNode(p,"PrivateIdentifier")},g.initFunction=function(p){p.id=null,p.params=[],this.options.ecmaVersion>=6&&(p.generator=!1,p.expression=!1),this.options.ecmaVersion>=8&&(p.async=!1)},g.toAssignable=function(p,h){if(!(!p||p.type==="Identifier"||p.type==="MemberExpression"&&!h))if(p.type==="ParenthesizedExpression")this.toAssignable(p.expression,h);else{if(this.options.ecmaVersion<6)return this.dummyIdent();if(p.type==="ObjectExpression"){p.type="ObjectPattern";for(var T=0,x=p.properties;T=6&&(T.generator=!!p),this.options.ecmaVersion>=8&&(T.async=!!h),this.inAsync=T.async,this.inGenerator=T.generator,this.inFunction=!0,T.params=this.parseFunctionParams(),T.body=this.parseBlock(),this.toks.adaptDirectivePrologue(T.body.body),this.inAsync=x,this.inGenerator=w,this.inFunction=S,this.finishNode(T,"FunctionExpression")},g.parseArrowExpression=function(p,h,T){var x=this.inAsync,w=this.inGenerator,S=this.inFunction;return this.initFunction(p),this.options.ecmaVersion>=8&&(p.async=!!T),this.inAsync=p.async,this.inGenerator=!1,this.inFunction=!0,p.params=this.toAssignableList(h,!0),p.expression=this.tok.type!==t.tokTypes.braceL,p.expression?p.body=this.parseMaybeAssign():(p.body=this.parseBlock(),this.toks.adaptDirectivePrologue(p.body.body)),this.inAsync=x,this.inGenerator=w,this.inFunction=S,this.finishNode(p,"ArrowFunctionExpression")},g.parseExprList=function(p,h){this.pushCx();var T=this.curIndent,x=this.curLineStart,w=[];for(this.next();!this.closes(p,T+1,x);){if(this.eat(t.tokTypes.comma)){w.push(h?null:this.dummyIdent());continue}var S=this.parseMaybeAssign();if(i(S)){if(this.closes(p,T,x))break;this.next()}else w.push(S);this.eat(t.tokTypes.comma)}return this.popCx(),this.eat(p)||(this.last.end=this.tok.start,this.options.locations&&(this.last.loc.end=this.tok.loc.start)),w},g.parseAwait=function(){var p=this.startNode();return this.next(),p.argument=this.parseMaybeUnary(),this.finishNode(p,"AwaitExpression")},t.defaultOptions.tabSize=4;function L(p,h){return a.parse(p,h)}e.LooseParser=a,e.isDummy=i,e.parse=L})});var Vo=Li(),Hg=Qc(),dr=t1(),Wg=pf(),kf=mf(),Os=null;function vf(){return new Proxy({},{get:function(e,t){if(t in e)return e[t];var s=String(t).split("#"),i=s[0],r=s[1]||"default",a={id:i,chunks:[i],name:r,async:!0};return e[t]=a,a}})}var Nc={};function yf(e,t,s){var i=dr.registerServerReference(e,t,s),r=t+"#"+s;return Nc[r]=e,i}function Gg(e){if(e.indexOf("use client")===-1&&e.indexOf("use server")===-1)return null;try{var t=kf.parse(e,{ecmaVersion:"2024",sourceType:"source"}).body}catch{return null}for(var s=0;s0&&T.body&&T.body.type==="BlockStatement")for(var S=T.body.body,A=0;A