@junobuild/did-tools 0.1.2 → 0.2.0
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/node/index.mjs +6 -59
- package/dist/node/index.mjs.map +4 -4
- package/package.json +7 -7
package/dist/node/index.mjs
CHANGED
|
@@ -1,79 +1,26 @@
|
|
|
1
1
|
import { createRequire as topLevelCreateRequire } from 'module';
|
|
2
2
|
const require = topLevelCreateRequire(import.meta.url);
|
|
3
|
-
var
|
|
4
|
-
- Did you mean \`export { '${e}' as '${t}' } from 'some-module'\`?`,ExportDefaultFromAsIdentifier:"'from' is not allowed as an identifier after 'export default'.",ForInOfLoopInitializer:({type:e})=>`'${e==="ForInStatement"?"for-in":"for-of"}' loop variable declaration may not have an initializer.`,ForInUsing:"For-in loop may not start with 'using' declaration.",ForOfAsync:"The left-hand side of a for-of loop may not be 'async'.",ForOfLet:"The left-hand side of a for-of loop may not start with 'let'.",GeneratorInSingleStatementContext:"Generators can only be declared at the top level or inside a block.",IllegalBreakContinue:({type:e})=>`Unsyntactic ${e==="BreakStatement"?"break":"continue"}.`,IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list.",IllegalReturn:"'return' outside of function.",ImportAttributesUseAssert:"The `assert` keyword in import attributes is deprecated and it has been replaced by the `with` keyword. You can enable the `deprecatedAssertSyntax: true` option in the import attributes plugin to suppress this error.",ImportBindingIsString:({importName:e})=>`A string literal cannot be used as an imported binding.
|
|
5
|
-
- Did you mean \`import { "${e}" as foo }\`?`,ImportCallArgumentTrailingComma:"Trailing comma is disallowed inside import(...) arguments.",ImportCallArity:({maxArgumentCount:e})=>`\`import()\` requires exactly ${e===1?"one argument":"one or two arguments"}.`,ImportCallNotNewExpression:"Cannot use new with import(...).",ImportCallSpreadArgument:"`...` is not allowed in `import()`.",ImportJSONBindingNotDefault:"A JSON module can only be imported with `default`.",ImportReflectionHasAssertion:"`import module x` cannot have assertions.",ImportReflectionNotBinding:'Only `import module x from "./module"` is valid.',IncompatibleRegExpUVFlags:"The 'u' and 'v' regular expression flags cannot be enabled at the same time.",InvalidBigIntLiteral:"Invalid BigIntLiteral.",InvalidCodePoint:"Code point out of bounds.",InvalidCoverInitializedName:"Invalid shorthand property initializer.",InvalidDecimal:"Invalid decimal.",InvalidDigit:({radix:e})=>`Expected number in radix ${e}.`,InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:({reservedWord:e})=>`Escape sequence in keyword ${e}.`,InvalidIdentifier:({identifierName:e})=>`Invalid identifier ${e}.`,InvalidLhs:({ancestor:e})=>`Invalid left-hand side in ${Ds(e)}.`,InvalidLhsBinding:({ancestor:e})=>`Binding invalid left-hand side in ${Ds(e)}.`,InvalidLhsOptionalChaining:({ancestor:e})=>`Invalid optional chaining in the left-hand side of ${Ds(e)}.`,InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:({unexpected:e})=>`Unexpected character '${e}'.`,InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:({identifierName:e})=>`Private name #${e} is not defined.`,InvalidPropertyBindingPattern:"Binding member expression.",InvalidRecordProperty:"Only properties and spread elements are allowed in record definitions.",InvalidRestAssignmentPattern:"Invalid rest operator's argument.",LabelRedeclaration:({labelName:e})=>`Label '${e}' is already declared.`,LetInLexicalBinding:"'let' is disallowed as a lexically bound name.",LineTerminatorBeforeArrow:"No line break is allowed before '=>'.",MalformedRegExpFlags:"Invalid regular expression flag.",MissingClassName:"A class name is required.",MissingEqInAssignment:"Only '=' operator can be used for specifying default value.",MissingSemicolon:"Missing semicolon.",MissingPlugin:({missingPlugin:e})=>`This experimental syntax requires enabling the parser plugin: ${e.map(t=>JSON.stringify(t)).join(", ")}.`,MissingOneOfPlugins:({missingPlugin:e})=>`This experimental syntax requires enabling one of the following parser plugin(s): ${e.map(t=>JSON.stringify(t)).join(", ")}.`,MissingUnicodeEscape:"Expecting Unicode escape sequence \\uXXXX.",MixingCoalesceWithLogical:"Nullish coalescing operator(??) requires parens when mixing with logical operators.",ModuleAttributeDifferentFromType:"The only accepted module attribute is `type`.",ModuleAttributeInvalidValue:"Only string literals are allowed as module attribute values.",ModuleAttributesWithDuplicateKeys:({key:e})=>`Duplicate key "${e}" is not allowed in module attributes.`,ModuleExportNameHasLoneSurrogate:({surrogateCharCode:e})=>`An export name cannot include a lone surrogate, found '\\u${e.toString(16)}'.`,ModuleExportUndefined:({localName:e})=>`Export '${e}' is not defined.`,MultipleDefaultsInSwitch:"Multiple default clauses.",NewlineAfterThrow:"Illegal newline after throw.",NoCatchOrFinally:"Missing catch or finally clause.",NumberIdentifier:"Identifier directly after number.",NumericSeparatorInEscapeSequence:"Numeric separators are not allowed inside unicode escape sequences or hex escape sequences.",ObsoleteAwaitStar:"'await*' has been removed from the async functions proposal. Use Promise.all() instead.",OptionalChainingNoNew:"Constructors in/after an Optional Chain are not allowed.",OptionalChainingNoTemplate:"Tagged Template Literals are not allowed in optionalChain.",OverrideOnConstructor:"'override' modifier cannot appear on a constructor declaration.",ParamDupe:"Argument name clash.",PatternHasAccessor:"Object pattern can't contain getter or setter.",PatternHasMethod:"Object pattern can't contain methods.",PrivateInExpectedIn:({identifierName:e})=>`Private names are only allowed in property accesses (\`obj.#${e}\`) or in \`in\` expressions (\`#${e} in obj\`).`,PrivateNameRedeclaration:({identifierName:e})=>`Duplicate private name #${e}.`,RecordExpressionBarIncorrectEndSyntaxType:"Record expressions ending with '|}' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionBarIncorrectStartSyntaxType:"Record expressions starting with '{|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionHashIncorrectStartSyntaxType:"Record expressions starting with '#{' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",RecordNoProto:"'__proto__' is not allowed in Record expressions.",RestTrailingComma:"Unexpected trailing comma after rest element.",SloppyFunction:"In non-strict mode code, functions can only be declared at top level or inside a block.",SloppyFunctionAnnexB:"In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement.",SourcePhaseImportRequiresDefault:'Only `import source x from "./module"` is valid.',StaticPrototype:"Classes may not have static property named prototype.",SuperNotAllowed:"`super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class?",SuperPrivateField:"Private fields can't be accessed on super.",TrailingDecorator:"Decorators must be attached to a class element.",TupleExpressionBarIncorrectEndSyntaxType:"Tuple expressions ending with '|]' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionBarIncorrectStartSyntaxType:"Tuple expressions starting with '[|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionHashIncorrectStartSyntaxType:"Tuple expressions starting with '#[' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",UnexpectedArgumentPlaceholder:"Unexpected argument placeholder.",UnexpectedAwaitAfterPipelineBody:'Unexpected "await" after pipeline body; await must have parentheses in minimal proposal.',UnexpectedDigitAfterHash:"Unexpected digit after hash token.",UnexpectedImportExport:"'import' and 'export' may only appear at the top level.",UnexpectedKeyword:({keyword:e})=>`Unexpected keyword '${e}'.`,UnexpectedLeadingDecorator:"Leading decorators must be attached to a class declaration.",UnexpectedLexicalDeclaration:"Lexical declaration cannot appear in a single-statement context.",UnexpectedNewTarget:"`new.target` can only be used in functions or class properties.",UnexpectedNumericSeparator:"A numeric separator is only allowed between two digits.",UnexpectedPrivateField:"Unexpected private name.",UnexpectedReservedWord:({reservedWord:e})=>`Unexpected reserved word '${e}'.`,UnexpectedSuper:"'super' is only allowed in object methods and classes.",UnexpectedToken:({expected:e,unexpected:t})=>`Unexpected token${t?` '${t}'.`:""}${e?`, expected "${e}"`:""}`,UnexpectedTokenUnaryExponentiation:"Illegal expression. Wrap left hand side or entire exponentiation in parentheses.",UnexpectedUsingDeclaration:"Using declaration cannot appear in the top level when source type is `script`.",UnsupportedBind:"Binding should be performed on object property.",UnsupportedDecoratorExport:"A decorated export must export a class declaration.",UnsupportedDefaultExport:"Only expressions, functions or classes are allowed as the `default` export.",UnsupportedImport:"`import` can only be used in `import()` or `import.meta`.",UnsupportedMetaProperty:({target:e,onlyValidPropertyName:t})=>`The only valid meta property for ${e} is ${e}.${t}.`,UnsupportedParameterDecorator:"Decorators cannot be used to decorate parameters.",UnsupportedPropertyDecorator:"Decorators cannot be used to decorate object literal properties.",UnsupportedSuper:"'super' can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop]).",UnterminatedComment:"Unterminated comment.",UnterminatedRegExp:"Unterminated regular expression.",UnterminatedString:"Unterminated string constant.",UnterminatedTemplate:"Unterminated template.",UsingDeclarationExport:"Using declaration cannot be exported.",UsingDeclarationHasBindingPattern:"Using declaration cannot have destructuring patterns.",VarRedeclaration:({identifierName:e})=>`Identifier '${e}' has already been declared.`,YieldBindingIdentifier:"Can not use 'yield' as identifier inside a generator.",YieldInParameter:"Yield expression is not allowed in formal parameters.",ZeroDigitNumericSeparator:"Numeric separator can not be used after leading 0."},v0={StrictDelete:"Deleting local variable in strict mode.",StrictEvalArguments:({referenceName:e})=>`Assigning to '${e}' in strict mode.`,StrictEvalArgumentsBinding:({bindingName:e})=>`Binding '${e}' in strict mode.`,StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block.",StrictNumericEscape:"The only valid numeric escape in strict mode is '\\0'.",StrictOctalLiteral:"Legacy octal literals are not allowed in strict mode.",StrictWith:"'with' in strict mode."},C0=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]),I0={PipeBodyIsTighter:"Unexpected yield after pipeline body; any yield expression acting as Hack-style pipe body must be parenthesized due to its loose operator precedence.",PipeTopicRequiresHackPipes:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.',PipeTopicUnbound:"Topic reference is unbound; it must be inside a pipe body.",PipeTopicUnconfiguredToken:({token:e})=>`Invalid topic token ${e}. In order to use ${e} as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "${e}" }.`,PipeTopicUnused:"Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.",PipeUnparenthesizedBody:({type:e})=>`Hack-style pipe body cannot be an unparenthesized ${Ds({type:e})}; please wrap it in parentheses.`,PipelineBodyNoArrow:'Unexpected arrow "=>" after pipeline body; arrow function in pipeline body must be parenthesized.',PipelineBodySequenceExpression:"Pipeline body may not be a comma-separated sequence expression.",PipelineHeadSequenceExpression:"Pipeline head should not be a comma-separated sequence expression.",PipelineTopicUnused:"Pipeline is in topic style but does not use topic reference.",PrimaryTopicNotAllowed:"Topic reference was used in a lexical context without topic binding.",PrimaryTopicRequiresSmartPipeline:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.'},w0=["message"];function op(e,t,r){Object.defineProperty(e,t,{enumerable:!1,configurable:!0,value:r})}function O0({toMessage:e,code:t,reasonCode:r,syntaxPlugin:i}){let s=r==="MissingPlugin"||r==="MissingOneOfPlugins";{let n={AccessorCannotDeclareThisParameter:"AccesorCannotDeclareThisParameter",AccessorCannotHaveTypeParameters:"AccesorCannotHaveTypeParameters",ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:"ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference",SetAccessorCannotHaveOptionalParameter:"SetAccesorCannotHaveOptionalParameter",SetAccessorCannotHaveRestParameter:"SetAccesorCannotHaveRestParameter",SetAccessorCannotHaveReturnType:"SetAccesorCannotHaveReturnType"};n[r]&&(r=n[r])}return function n(a,o){let l=new SyntaxError;return l.code=t,l.reasonCode=r,l.loc=a,l.pos=a.index,l.syntaxPlugin=i,s&&(l.missingPlugin=o.missingPlugin),op(l,"clone",function(c={}){var T;let{line:P,column:E,index:v}=(T=c.loc)!=null?T:a;return n(new Xt(P,E,v),Object.assign({},o,c.details))}),op(l,"details",o),Object.defineProperty(l,"message",{configurable:!0,get(){let u=`${e(o)} (${a.line}:${a.column})`;return this.message=u,u},set(u){Object.defineProperty(this,"message",{value:u,writable:!0})}}),l}}function sr(e,t){if(Array.isArray(e))return i=>sr(i,e[0]);let r={};for(let i of Object.keys(e)){let s=e[i],n=typeof s=="string"?{message:()=>s}:typeof s=="function"?{message:s}:s,{message:a}=n,o=E0(n,w0),l=typeof a=="string"?()=>a:a;r[i]=O0(Object.assign({code:"BABEL_PARSER_SYNTAX_ERROR",reasonCode:i,toMessage:l},t?{syntaxPlugin:t}:{},o))}return r}var S=Object.assign({},sr(P0),sr(A0),sr(v0),sr`pipelineOperator`(I0)),{defineProperty:N0}=Object,lp=(e,t)=>{e&&N0(e,t,{enumerable:!1,value:e[t]})};function ki(e){return lp(e.loc.start,"index"),lp(e.loc.end,"index"),e}var _0=e=>class extends e{parse(){let r=ki(super.parse());return this.options.tokens&&(r.tokens=r.tokens.map(ki)),r}parseRegExpLiteral({pattern:r,flags:i}){let s=null;try{s=new RegExp(r,i)}catch{}let n=this.estreeParseLiteral(s);return n.regex={pattern:r,flags:i},n}parseBigIntLiteral(r){let i;try{i=BigInt(r)}catch{i=null}let s=this.estreeParseLiteral(i);return s.bigint=String(s.value||r),s}parseDecimalLiteral(r){let s=this.estreeParseLiteral(null);return s.decimal=String(s.value||r),s}estreeParseLiteral(r){return this.parseLiteral(r,"Literal")}parseStringLiteral(r){return this.estreeParseLiteral(r)}parseNumericLiteral(r){return this.estreeParseLiteral(r)}parseNullLiteral(){return this.estreeParseLiteral(null)}parseBooleanLiteral(r){return this.estreeParseLiteral(r)}directiveToStmt(r){let i=r.value;delete r.value,i.type="Literal",i.raw=i.extra.raw,i.value=i.extra.expressionValue;let s=r;return s.type="ExpressionStatement",s.expression=i,s.directive=i.extra.rawValue,delete i.extra,s}initFunction(r,i){super.initFunction(r,i),r.expression=!1}checkDeclaration(r){r!=null&&this.isObjectProperty(r)?this.checkDeclaration(r.value):super.checkDeclaration(r)}getObjectOrClassMethodParams(r){return r.value.params}isValidDirective(r){var i;return r.type==="ExpressionStatement"&&r.expression.type==="Literal"&&typeof r.expression.value=="string"&&!((i=r.expression.extra)!=null&&i.parenthesized)}parseBlockBody(r,i,s,n,a){super.parseBlockBody(r,i,s,n,a);let o=r.directives.map(l=>this.directiveToStmt(l));r.body=o.concat(r.body),delete r.directives}pushClassMethod(r,i,s,n,a,o){this.parseMethod(i,s,n,a,o,"ClassMethod",!0),i.typeParameters&&(i.value.typeParameters=i.typeParameters,delete i.typeParameters),r.body.push(i)}parsePrivateName(){let r=super.parsePrivateName();return this.getPluginOption("estree","classFeatures")?this.convertPrivateNameToPrivateIdentifier(r):r}convertPrivateNameToPrivateIdentifier(r){let i=super.getPrivateNameSV(r);return r=r,delete r.id,r.name=i,r.type="PrivateIdentifier",r}isPrivateName(r){return this.getPluginOption("estree","classFeatures")?r.type==="PrivateIdentifier":super.isPrivateName(r)}getPrivateNameSV(r){return this.getPluginOption("estree","classFeatures")?r.name:super.getPrivateNameSV(r)}parseLiteral(r,i){let s=super.parseLiteral(r,i);return s.raw=s.extra.raw,delete s.extra,s}parseFunctionBody(r,i,s=!1){super.parseFunctionBody(r,i,s),r.expression=r.body.type!=="BlockStatement"}parseMethod(r,i,s,n,a,o,l=!1){let u=this.startNode();return u.kind=r.kind,u=super.parseMethod(u,i,s,n,a,o,l),u.type="FunctionExpression",delete u.kind,r.value=u,o==="ClassPrivateMethod"&&(r.computed=!1),this.finishNode(r,"MethodDefinition")}nameIsConstructor(r){return r.type==="Literal"?r.value==="constructor":super.nameIsConstructor(r)}parseClassProperty(...r){let i=super.parseClassProperty(...r);return this.getPluginOption("estree","classFeatures")&&(i.type="PropertyDefinition"),i}parseClassPrivateProperty(...r){let i=super.parseClassPrivateProperty(...r);return this.getPluginOption("estree","classFeatures")&&(i.type="PropertyDefinition",i.computed=!1),i}parseObjectMethod(r,i,s,n,a){let o=super.parseObjectMethod(r,i,s,n,a);return o&&(o.type="Property",o.kind==="method"&&(o.kind="init"),o.shorthand=!1),o}parseObjectProperty(r,i,s,n){let a=super.parseObjectProperty(r,i,s,n);return a&&(a.kind="init",a.type="Property"),a}isValidLVal(r,i,s){return r==="Property"?"value":super.isValidLVal(r,i,s)}isAssignable(r,i){return r!=null&&this.isObjectProperty(r)?this.isAssignable(r.value,i):super.isAssignable(r,i)}toAssignable(r,i=!1){if(r!=null&&this.isObjectProperty(r)){let{key:s,value:n}=r;this.isPrivateName(s)&&this.classScope.usePrivateName(this.getPrivateNameSV(s),s.loc.start),this.toAssignable(n,i)}else super.toAssignable(r,i)}toAssignableObjectExpressionProp(r,i,s){r.type==="Property"&&(r.kind==="get"||r.kind==="set")?this.raise(S.PatternHasAccessor,r.key):r.type==="Property"&&r.method?this.raise(S.PatternHasMethod,r.key):super.toAssignableObjectExpressionProp(r,i,s)}finishCallExpression(r,i){let s=super.finishCallExpression(r,i);if(s.callee.type==="Import"){if(s.type="ImportExpression",s.source=s.arguments[0],this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions")){var n,a;s.options=(n=s.arguments[1])!=null?n:null,s.attributes=(a=s.arguments[1])!=null?a:null}delete s.arguments,delete s.callee}return s}toReferencedArguments(r){r.type!=="ImportExpression"&&super.toReferencedArguments(r)}parseExport(r,i){let s=this.state.lastTokStartLoc,n=super.parseExport(r,i);switch(n.type){case"ExportAllDeclaration":n.exported=null;break;case"ExportNamedDeclaration":n.specifiers.length===1&&n.specifiers[0].type==="ExportNamespaceSpecifier"&&(n.type="ExportAllDeclaration",n.exported=n.specifiers[0].exported,delete n.specifiers);case"ExportDefaultDeclaration":{var a;let{declaration:o}=n;o?.type==="ClassDeclaration"&&((a=o.decorators)==null?void 0:a.length)>0&&o.start===n.start&&this.resetStartLocation(n,s)}break}return n}parseSubscript(r,i,s,n){let a=super.parseSubscript(r,i,s,n);if(n.optionalChainMember){if((a.type==="OptionalMemberExpression"||a.type==="OptionalCallExpression")&&(a.type=a.type.substring(8)),n.stop){let o=this.startNodeAtNode(a);return o.expression=a,this.finishNode(o,"ChainExpression")}}else(a.type==="MemberExpression"||a.type==="CallExpression")&&(a.optional=!1);return a}isOptionalMemberExpression(r){return r.type==="ChainExpression"?r.expression.type==="MemberExpression":super.isOptionalMemberExpression(r)}hasPropertyAsPrivateName(r){return r.type==="ChainExpression"&&(r=r.expression),super.hasPropertyAsPrivateName(r)}isObjectProperty(r){return r.type==="Property"&&r.kind==="init"&&!r.method}isObjectMethod(r){return r.type==="Property"&&(r.method||r.kind==="get"||r.kind==="set")}finishNodeAt(r,i,s){return ki(super.finishNodeAt(r,i,s))}resetStartLocation(r,i){super.resetStartLocation(r,i),ki(r)}resetEndLocation(r,i=this.state.lastTokEndLoc){super.resetEndLocation(r,i),ki(r)}},Br=class{constructor(t,r){this.token=void 0,this.preserveSpace=void 0,this.token=t,this.preserveSpace=!!r}},ke={brace:new Br("{"),j_oTag:new Br("<tag"),j_cTag:new Br("</tag"),j_expr:new Br("<tag>...</tag>",!0)};ke.template=new Br("`",!0);var Te=!0,U=!0,da=!0,Li=!0,mr=!0,D0=!0,Ms=class{constructor(t,r={}){this.label=void 0,this.keyword=void 0,this.beforeExpr=void 0,this.startsExpr=void 0,this.rightAssociative=void 0,this.isLoop=void 0,this.isAssign=void 0,this.prefix=void 0,this.postfix=void 0,this.binop=void 0,this.label=t,this.keyword=r.keyword,this.beforeExpr=!!r.beforeExpr,this.startsExpr=!!r.startsExpr,this.rightAssociative=!!r.rightAssociative,this.isLoop=!!r.isLoop,this.isAssign=!!r.isAssign,this.prefix=!!r.prefix,this.postfix=!!r.postfix,this.binop=r.binop!=null?r.binop:null,this.updateContext=null}},qa=new Map;function Ee(e,t={}){t.keyword=e;let r=Z(e,t);return qa.set(e,r),r}function lt(e,t){return Z(e,{beforeExpr:Te,binop:t})}var ji=-1,rr=[],Ua=[],Va=[],Ka=[],Wa=[],Ya=[];function Z(e,t={}){var r,i,s,n;return++ji,Ua.push(e),Va.push((r=t.binop)!=null?r:-1),Ka.push((i=t.beforeExpr)!=null?i:!1),Wa.push((s=t.startsExpr)!=null?s:!1),Ya.push((n=t.prefix)!=null?n:!1),rr.push(new Ms(e,t)),ji}function ye(e,t={}){var r,i,s,n;return++ji,qa.set(e,ji),Ua.push(e),Va.push((r=t.binop)!=null?r:-1),Ka.push((i=t.beforeExpr)!=null?i:!1),Wa.push((s=t.startsExpr)!=null?s:!1),Ya.push((n=t.prefix)!=null?n:!1),rr.push(new Ms("name",t)),ji}var k0={bracketL:Z("[",{beforeExpr:Te,startsExpr:U}),bracketHashL:Z("#[",{beforeExpr:Te,startsExpr:U}),bracketBarL:Z("[|",{beforeExpr:Te,startsExpr:U}),bracketR:Z("]"),bracketBarR:Z("|]"),braceL:Z("{",{beforeExpr:Te,startsExpr:U}),braceBarL:Z("{|",{beforeExpr:Te,startsExpr:U}),braceHashL:Z("#{",{beforeExpr:Te,startsExpr:U}),braceR:Z("}"),braceBarR:Z("|}"),parenL:Z("(",{beforeExpr:Te,startsExpr:U}),parenR:Z(")"),comma:Z(",",{beforeExpr:Te}),semi:Z(";",{beforeExpr:Te}),colon:Z(":",{beforeExpr:Te}),doubleColon:Z("::",{beforeExpr:Te}),dot:Z("."),question:Z("?",{beforeExpr:Te}),questionDot:Z("?."),arrow:Z("=>",{beforeExpr:Te}),template:Z("template"),ellipsis:Z("...",{beforeExpr:Te}),backQuote:Z("`",{startsExpr:U}),dollarBraceL:Z("${",{beforeExpr:Te,startsExpr:U}),templateTail:Z("...`",{startsExpr:U}),templateNonTail:Z("...${",{beforeExpr:Te,startsExpr:U}),at:Z("@"),hash:Z("#",{startsExpr:U}),interpreterDirective:Z("#!..."),eq:Z("=",{beforeExpr:Te,isAssign:Li}),assign:Z("_=",{beforeExpr:Te,isAssign:Li}),slashAssign:Z("_=",{beforeExpr:Te,isAssign:Li}),xorAssign:Z("_=",{beforeExpr:Te,isAssign:Li}),moduloAssign:Z("_=",{beforeExpr:Te,isAssign:Li}),incDec:Z("++/--",{prefix:mr,postfix:D0,startsExpr:U}),bang:Z("!",{beforeExpr:Te,prefix:mr,startsExpr:U}),tilde:Z("~",{beforeExpr:Te,prefix:mr,startsExpr:U}),doubleCaret:Z("^^",{startsExpr:U}),doubleAt:Z("@@",{startsExpr:U}),pipeline:lt("|>",0),nullishCoalescing:lt("??",1),logicalOR:lt("||",1),logicalAND:lt("&&",2),bitwiseOR:lt("|",3),bitwiseXOR:lt("^",4),bitwiseAND:lt("&",5),equality:lt("==/!=/===/!==",6),lt:lt("</>/<=/>=",7),gt:lt("</>/<=/>=",7),relational:lt("</>/<=/>=",7),bitShift:lt("<</>>/>>>",8),bitShiftL:lt("<</>>/>>>",8),bitShiftR:lt("<</>>/>>>",8),plusMin:Z("+/-",{beforeExpr:Te,binop:9,prefix:mr,startsExpr:U}),modulo:Z("%",{binop:10,startsExpr:U}),star:Z("*",{binop:10}),slash:lt("/",10),exponent:Z("**",{beforeExpr:Te,binop:11,rightAssociative:!0}),_in:Ee("in",{beforeExpr:Te,binop:7}),_instanceof:Ee("instanceof",{beforeExpr:Te,binop:7}),_break:Ee("break"),_case:Ee("case",{beforeExpr:Te}),_catch:Ee("catch"),_continue:Ee("continue"),_debugger:Ee("debugger"),_default:Ee("default",{beforeExpr:Te}),_else:Ee("else",{beforeExpr:Te}),_finally:Ee("finally"),_function:Ee("function",{startsExpr:U}),_if:Ee("if"),_return:Ee("return",{beforeExpr:Te}),_switch:Ee("switch"),_throw:Ee("throw",{beforeExpr:Te,prefix:mr,startsExpr:U}),_try:Ee("try"),_var:Ee("var"),_const:Ee("const"),_with:Ee("with"),_new:Ee("new",{beforeExpr:Te,startsExpr:U}),_this:Ee("this",{startsExpr:U}),_super:Ee("super",{startsExpr:U}),_class:Ee("class",{startsExpr:U}),_extends:Ee("extends",{beforeExpr:Te}),_export:Ee("export"),_import:Ee("import",{startsExpr:U}),_null:Ee("null",{startsExpr:U}),_true:Ee("true",{startsExpr:U}),_false:Ee("false",{startsExpr:U}),_typeof:Ee("typeof",{beforeExpr:Te,prefix:mr,startsExpr:U}),_void:Ee("void",{beforeExpr:Te,prefix:mr,startsExpr:U}),_delete:Ee("delete",{beforeExpr:Te,prefix:mr,startsExpr:U}),_do:Ee("do",{isLoop:da,beforeExpr:Te}),_for:Ee("for",{isLoop:da}),_while:Ee("while",{isLoop:da}),_as:ye("as",{startsExpr:U}),_assert:ye("assert",{startsExpr:U}),_async:ye("async",{startsExpr:U}),_await:ye("await",{startsExpr:U}),_defer:ye("defer",{startsExpr:U}),_from:ye("from",{startsExpr:U}),_get:ye("get",{startsExpr:U}),_let:ye("let",{startsExpr:U}),_meta:ye("meta",{startsExpr:U}),_of:ye("of",{startsExpr:U}),_sent:ye("sent",{startsExpr:U}),_set:ye("set",{startsExpr:U}),_source:ye("source",{startsExpr:U}),_static:ye("static",{startsExpr:U}),_using:ye("using",{startsExpr:U}),_yield:ye("yield",{startsExpr:U}),_asserts:ye("asserts",{startsExpr:U}),_checks:ye("checks",{startsExpr:U}),_exports:ye("exports",{startsExpr:U}),_global:ye("global",{startsExpr:U}),_implements:ye("implements",{startsExpr:U}),_intrinsic:ye("intrinsic",{startsExpr:U}),_infer:ye("infer",{startsExpr:U}),_is:ye("is",{startsExpr:U}),_mixins:ye("mixins",{startsExpr:U}),_proto:ye("proto",{startsExpr:U}),_require:ye("require",{startsExpr:U}),_satisfies:ye("satisfies",{startsExpr:U}),_keyof:ye("keyof",{startsExpr:U}),_readonly:ye("readonly",{startsExpr:U}),_unique:ye("unique",{startsExpr:U}),_abstract:ye("abstract",{startsExpr:U}),_declare:ye("declare",{startsExpr:U}),_enum:ye("enum",{startsExpr:U}),_module:ye("module",{startsExpr:U}),_namespace:ye("namespace",{startsExpr:U}),_interface:ye("interface",{startsExpr:U}),_type:ye("type",{startsExpr:U}),_opaque:ye("opaque",{startsExpr:U}),name:Z("name",{startsExpr:U}),string:Z("string",{startsExpr:U}),num:Z("num",{startsExpr:U}),bigint:Z("bigint",{startsExpr:U}),decimal:Z("decimal",{startsExpr:U}),regexp:Z("regexp",{startsExpr:U}),privateName:Z("#name",{startsExpr:U}),eof:Z("eof"),jsxName:Z("jsxName"),jsxText:Z("jsxText",{beforeExpr:!0}),jsxTagStart:Z("jsxTagStart",{startsExpr:!0}),jsxTagEnd:Z("jsxTagEnd"),placeholder:Z("%%",{startsExpr:!0})};function Ie(e){return e>=93&&e<=132}function L0(e){return e<=92}function jt(e){return e>=58&&e<=132}function Sp(e){return e>=58&&e<=136}function M0(e){return Ka[e]}function Sa(e){return Wa[e]}function B0(e){return e>=29&&e<=33}function up(e){return e>=129&&e<=131}function F0(e){return e>=90&&e<=92}function Xa(e){return e>=58&&e<=92}function j0(e){return e>=39&&e<=59}function R0(e){return e===34}function q0(e){return Ya[e]}function U0(e){return e>=121&&e<=123}function V0(e){return e>=124&&e<=130}function Tr(e){return Ua[e]}function ks(e){return Va[e]}function K0(e){return e===57}function Bs(e){return e>=24&&e<=25}function tr(e){return rr[e]}rr[8].updateContext=e=>{e.pop()},rr[5].updateContext=rr[7].updateContext=rr[23].updateContext=e=>{e.push(ke.brace)},rr[22].updateContext=e=>{e[e.length-1]===ke.template?e.pop():e.push(ke.template)},rr[142].updateContext=e=>{e.push(ke.j_expr,ke.j_oTag)};var Ja="\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\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-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC",xp="\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\u0898-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65",W0=new RegExp("["+Ja+"]"),Y0=new RegExp("["+Ja+xp+"]");Ja=xp=null;var Ep=[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,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,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,159,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,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,757,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],X0=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,81,2,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,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,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,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,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,983,6,110,6,6,9,4759,9,787719,239];function xa(e,t){let r=65536;for(let i=0,s=t.length;i<s;i+=2){if(r+=t[i],r>e)return!1;if(r+=t[i+1],r>=e)return!0}return!1}function ir(e){return e<65?e===36:e<=90?!0:e<97?e===95:e<=122?!0:e<=65535?e>=170&&W0.test(String.fromCharCode(e)):xa(e,Ep)}function si(e){return e<48?e===36:e<58?!0:e<65?!1:e<=90?!0:e<97?e===95:e<=122?!0:e<=65535?e>=170&&Y0.test(String.fromCharCode(e)):xa(e,Ep)||xa(e,X0)}var $a={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]},J0=new Set($a.keyword),$0=new Set($a.strict),H0=new Set($a.strictBind);function Pp(e,t){return t&&e==="await"||e==="enum"}function Ap(e,t){return Pp(e,t)||$0.has(e)}function vp(e){return H0.has(e)}function Cp(e,t){return Ap(e,t)||vp(e)}function G0(e){return J0.has(e)}function z0(e,t,r){return e===64&&t===64&&ir(r)}var Q0=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete","implements","interface","let","package","private","protected","public","static","yield","eval","arguments","enum","await"]);function Z0(e){return Q0.has(e)}var Ri=class{constructor(t){this.flags=0,this.names=new Map,this.firstLexicalName="",this.flags=t}},qi=class{constructor(t,r){this.parser=void 0,this.scopeStack=[],this.inModule=void 0,this.undefinedExports=new Map,this.parser=t,this.inModule=r}get inTopLevel(){return(this.currentScope().flags&1)>0}get inFunction(){return(this.currentVarScopeFlags()&2)>0}get allowSuper(){return(this.currentThisScopeFlags()&16)>0}get allowDirectSuper(){return(this.currentThisScopeFlags()&32)>0}get inClass(){return(this.currentThisScopeFlags()&64)>0}get inClassAndNotInNonArrowFunction(){let t=this.currentThisScopeFlags();return(t&64)>0&&(t&2)===0}get inStaticBlock(){for(let t=this.scopeStack.length-1;;t--){let{flags:r}=this.scopeStack[t];if(r&128)return!0;if(r&451)return!1}}get inNonArrowFunction(){return(this.currentThisScopeFlags()&2)>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(t){return new Ri(t)}enter(t){this.scopeStack.push(this.createScope(t))}exit(){return this.scopeStack.pop().flags}treatFunctionsAsVarInScope(t){return!!(t.flags&130||!this.parser.inModule&&t.flags&1)}declareName(t,r,i){let s=this.currentScope();if(r&8||r&16){this.checkRedeclarationInScope(s,t,r,i);let n=s.names.get(t)||0;r&16?n=n|4:(s.firstLexicalName||(s.firstLexicalName=t),n=n|2),s.names.set(t,n),r&8&&this.maybeExportDefined(s,t)}else if(r&4)for(let n=this.scopeStack.length-1;n>=0&&(s=this.scopeStack[n],this.checkRedeclarationInScope(s,t,r,i),s.names.set(t,(s.names.get(t)||0)|1),this.maybeExportDefined(s,t),!(s.flags&387));--n);this.parser.inModule&&s.flags&1&&this.undefinedExports.delete(t)}maybeExportDefined(t,r){this.parser.inModule&&t.flags&1&&this.undefinedExports.delete(r)}checkRedeclarationInScope(t,r,i,s){this.isRedeclaredInScope(t,r,i)&&this.parser.raise(S.VarRedeclaration,s,{identifierName:r})}isRedeclaredInScope(t,r,i){if(!(i&1))return!1;if(i&8)return t.names.has(r);let s=t.names.get(r);return i&16?(s&2)>0||!this.treatFunctionsAsVarInScope(t)&&(s&1)>0:(s&2)>0&&!(t.flags&8&&t.firstLexicalName===r)||!this.treatFunctionsAsVarInScope(t)&&(s&4)>0}checkLocalExport(t){let{name:r}=t;this.scopeStack[0].names.has(r)||this.undefinedExports.set(r,t.loc.start)}currentScope(){return this.scopeStack[this.scopeStack.length-1]}currentVarScopeFlags(){for(let t=this.scopeStack.length-1;;t--){let{flags:r}=this.scopeStack[t];if(r&387)return r}}currentThisScopeFlags(){for(let t=this.scopeStack.length-1;;t--){let{flags:r}=this.scopeStack[t];if(r&451&&!(r&4))return r}}},Ea=class extends Ri{constructor(...t){super(...t),this.declareFunctions=new Set}},Pa=class extends qi{createScope(t){return new Ea(t)}declareName(t,r,i){let s=this.currentScope();if(r&2048){this.checkRedeclarationInScope(s,t,r,i),this.maybeExportDefined(s,t),s.declareFunctions.add(t);return}super.declareName(t,r,i)}isRedeclaredInScope(t,r,i){if(super.isRedeclaredInScope(t,r,i))return!0;if(i&2048&&!t.declareFunctions.has(r)){let s=t.names.get(r);return(s&4)>0||(s&2)>0}return!1}checkLocalExport(t){this.scopeStack[0].declareFunctions.has(t.name)||super.checkLocalExport(t)}},Aa=class{constructor(){this.sawUnambiguousESM=!1,this.ambiguousScriptDifferentAst=!1}hasPlugin(t){if(typeof t=="string")return this.plugins.has(t);{let[r,i]=t;if(!this.hasPlugin(r))return!1;let s=this.plugins.get(r);for(let n of Object.keys(i))if(s?.[n]!==i[n])return!1;return!0}}getPluginOption(t,r){var i;return(i=this.plugins.get(t))==null?void 0:i[r]}};function Ip(e,t){e.trailingComments===void 0?e.trailingComments=t:e.trailingComments.unshift(...t)}function eg(e,t){e.leadingComments===void 0?e.leadingComments=t:e.leadingComments.unshift(...t)}function Ui(e,t){e.innerComments===void 0?e.innerComments=t:e.innerComments.unshift(...t)}function Mi(e,t,r){let i=null,s=t.length;for(;i===null&&s>0;)i=t[--s];i===null||i.start>r.start?Ui(e,r.comments):Ip(i,r.comments)}var va=class extends Aa{addComment(t){this.filename&&(t.loc.filename=this.filename);let{commentsLen:r}=this.state;this.comments.length!==r&&(this.comments.length=r),this.comments.push(t),this.state.commentsLen++}processComment(t){let{commentStack:r}=this.state,i=r.length;if(i===0)return;let s=i-1,n=r[s];n.start===t.end&&(n.leadingNode=t,s--);let{start:a}=t;for(;s>=0;s--){let o=r[s],l=o.end;if(l>a)o.containingNode=t,this.finalizeComment(o),r.splice(s,1);else{l===a&&(o.trailingNode=t);break}}}finalizeComment(t){let{comments:r}=t;if(t.leadingNode!==null||t.trailingNode!==null)t.leadingNode!==null&&Ip(t.leadingNode,r),t.trailingNode!==null&&eg(t.trailingNode,r);else{let{containingNode:i,start:s}=t;if(this.input.charCodeAt(s-1)===44)switch(i.type){case"ObjectExpression":case"ObjectPattern":case"RecordExpression":Mi(i,i.properties,t);break;case"CallExpression":case"OptionalCallExpression":Mi(i,i.arguments,t);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":Mi(i,i.params,t);break;case"ArrayExpression":case"ArrayPattern":case"TupleExpression":Mi(i,i.elements,t);break;case"ExportNamedDeclaration":case"ImportDeclaration":Mi(i,i.specifiers,t);break;default:Ui(i,r)}else Ui(i,r)}}finalizeRemainingComments(){let{commentStack:t}=this.state;for(let r=t.length-1;r>=0;r--)this.finalizeComment(t[r]);this.state.commentStack=[]}resetPreviousNodeTrailingComments(t){let{commentStack:r}=this.state,{length:i}=r;if(i===0)return;let s=r[i-1];s.leadingNode===t&&(s.leadingNode=null)}resetPreviousIdentifierLeadingComments(t){let{commentStack:r}=this.state,{length:i}=r;i!==0&&(r[i-1].trailingNode===t?r[i-1].trailingNode=null:i>=2&&r[i-2].trailingNode===t&&(r[i-2].trailingNode=null))}takeSurroundingComments(t,r,i){let{commentStack:s}=this.state,n=s.length;if(n===0)return;let a=n-1;for(;a>=0;a--){let o=s[a],l=o.end;if(o.start===i)o.leadingNode=t;else if(l===r)o.trailingNode=t;else if(l<r)break}}},tg=/\r\n|[\r\n\u2028\u2029]/,Ns=new RegExp(tg.source,"g");function ni(e){switch(e){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}function cp(e,t,r){for(let i=t;i<r;i++)if(ni(e.charCodeAt(i)))return!0;return!1}var ma=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,ya=/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/g;function rg(e){switch(e){case 9:case 11:case 12:case 32:case 160:case 5760:case 8192:case 8193:case 8194:case 8195:case 8196:case 8197:case 8198:case 8199:case 8200:case 8201:case 8202:case 8239:case 8287:case 12288:case 65279:return!0;default:return!1}}var Ca=class e{constructor(){this.flags=1024,this.curLine=void 0,this.lineStart=void 0,this.startLoc=void 0,this.endLoc=void 0,this.errors=[],this.potentialArrowAt=-1,this.noArrowAt=[],this.noArrowParamsConversionAt=[],this.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null},this.labels=[],this.commentsLen=0,this.commentStack=[],this.pos=0,this.type=139,this.value=null,this.start=0,this.end=0,this.lastTokEndLoc=null,this.lastTokStartLoc=null,this.context=[ke.brace],this.firstInvalidTemplateEscapePos=null,this.strictErrors=new Map,this.tokensLength=0}get strict(){return(this.flags&1)>0}set strict(t){t?this.flags|=1:this.flags&=-2}init({strictMode:t,sourceType:r,startLine:i,startColumn:s}){this.strict=t===!1?!1:t===!0?!0:r==="module",this.curLine=i,this.lineStart=-s,this.startLoc=this.endLoc=new Xt(i,s,0)}get maybeInArrowParameters(){return(this.flags&2)>0}set maybeInArrowParameters(t){t?this.flags|=2:this.flags&=-3}get inType(){return(this.flags&4)>0}set inType(t){t?this.flags|=4:this.flags&=-5}get noAnonFunctionType(){return(this.flags&8)>0}set noAnonFunctionType(t){t?this.flags|=8:this.flags&=-9}get hasFlowComment(){return(this.flags&16)>0}set hasFlowComment(t){t?this.flags|=16:this.flags&=-17}get isAmbientContext(){return(this.flags&32)>0}set isAmbientContext(t){t?this.flags|=32:this.flags&=-33}get inAbstractClass(){return(this.flags&64)>0}set inAbstractClass(t){t?this.flags|=64:this.flags&=-65}get inDisallowConditionalTypesContext(){return(this.flags&128)>0}set inDisallowConditionalTypesContext(t){t?this.flags|=128:this.flags&=-129}get soloAwait(){return(this.flags&256)>0}set soloAwait(t){t?this.flags|=256:this.flags&=-257}get inFSharpPipelineDirectBody(){return(this.flags&512)>0}set inFSharpPipelineDirectBody(t){t?this.flags|=512:this.flags&=-513}get canStartJSXElement(){return(this.flags&1024)>0}set canStartJSXElement(t){t?this.flags|=1024:this.flags&=-1025}get containsEsc(){return(this.flags&2048)>0}set containsEsc(t){t?this.flags|=2048:this.flags&=-2049}get hasTopLevelAwait(){return(this.flags&4096)>0}set hasTopLevelAwait(t){t?this.flags|=4096:this.flags&=-4097}curPosition(){return new Xt(this.curLine,this.pos-this.lineStart,this.pos)}clone(){let t=new e;return t.flags=this.flags,t.curLine=this.curLine,t.lineStart=this.lineStart,t.startLoc=this.startLoc,t.endLoc=this.endLoc,t.errors=this.errors.slice(),t.potentialArrowAt=this.potentialArrowAt,t.noArrowAt=this.noArrowAt.slice(),t.noArrowParamsConversionAt=this.noArrowParamsConversionAt.slice(),t.topicContext=this.topicContext,t.labels=this.labels.slice(),t.commentsLen=this.commentsLen,t.commentStack=this.commentStack.slice(),t.pos=this.pos,t.type=this.type,t.value=this.value,t.start=this.start,t.end=this.end,t.lastTokEndLoc=this.lastTokEndLoc,t.lastTokStartLoc=this.lastTokStartLoc,t.context=this.context.slice(),t.firstInvalidTemplateEscapePos=this.firstInvalidTemplateEscapePos,t.strictErrors=this.strictErrors,t.tokensLength=this.tokensLength,t}},ig=function(t){return t>=48&&t<=57},pp={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},_s={bin:e=>e===48||e===49,oct:e=>e>=48&&e<=55,dec:e=>e>=48&&e<=57,hex:e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102};function fp(e,t,r,i,s,n){let a=r,o=i,l=s,u="",c=null,T=r,{length:P}=t;for(;;){if(r>=P){n.unterminated(a,o,l),u+=t.slice(T,r);break}let E=t.charCodeAt(r);if(sg(e,E,t,r)){u+=t.slice(T,r);break}if(E===92){u+=t.slice(T,r);let v=ng(t,r,i,s,e==="template",n);v.ch===null&&!c?c={pos:r,lineStart:i,curLine:s}:u+=v.ch,{pos:r,lineStart:i,curLine:s}=v,T=r}else E===8232||E===8233?(++r,++s,i=r):E===10||E===13?e==="template"?(u+=t.slice(T,r)+`
|
|
6
|
-
`,++r,E===13&&t.charCodeAt(r)===10&&++r,++s,T=i=r):n.unterminated(a,o,l):++r}return{pos:r,str:u,firstInvalidLoc:c,lineStart:i,curLine:s,containsInvalid:!!c}}function sg(e,t,r,i){return e==="template"?t===96||t===36&&r.charCodeAt(i+1)===123:t===(e==="double"?34:39)}function ng(e,t,r,i,s,n){let a=!s;t++;let o=u=>({pos:t,ch:u,lineStart:r,curLine:i}),l=e.charCodeAt(t++);switch(l){case 110:return o(`
|
|
7
|
-
`);case 114:return o("\r");case 120:{let u;return{code:u,pos:t}=Ia(e,t,r,i,2,!1,a,n),o(u===null?null:String.fromCharCode(u))}case 117:{let u;return{code:u,pos:t}=Op(e,t,r,i,a,n),o(u===null?null:String.fromCodePoint(u))}case 116:return o(" ");case 98:return o("\b");case 118:return o("\v");case 102:return o("\f");case 13:e.charCodeAt(t)===10&&++t;case 10:r=t,++i;case 8232:case 8233:return o("");case 56:case 57:if(s)return o(null);n.strictNumericEscape(t-1,r,i);default:if(l>=48&&l<=55){let u=t-1,T=/^[0-7]+/.exec(e.slice(u,t+2))[0],P=parseInt(T,8);P>255&&(T=T.slice(0,-1),P=parseInt(T,8)),t+=T.length-1;let E=e.charCodeAt(t);if(T!=="0"||E===56||E===57){if(s)return o(null);n.strictNumericEscape(u,r,i)}return o(String.fromCharCode(P))}return o(String.fromCharCode(l))}}function Ia(e,t,r,i,s,n,a,o){let l=t,u;return{n:u,pos:t}=wp(e,t,r,i,16,s,n,!1,o,!a),u===null&&(a?o.invalidEscapeSequence(l,r,i):t=l-1),{code:u,pos:t}}function wp(e,t,r,i,s,n,a,o,l,u){let c=t,T=s===16?pp.hex:pp.decBinOct,P=s===16?_s.hex:s===10?_s.dec:s===8?_s.oct:_s.bin,E=!1,v=0;for(let D=0,_=n??1/0;D<_;++D){let N=e.charCodeAt(t),M;if(N===95&&o!=="bail"){let ne=e.charCodeAt(t-1),ae=e.charCodeAt(t+1);if(o){if(Number.isNaN(ae)||!P(ae)||T.has(ne)||T.has(ae)){if(u)return{n:null,pos:t};l.unexpectedNumericSeparator(t,r,i)}}else{if(u)return{n:null,pos:t};l.numericSeparatorInEscapeSequence(t,r,i)}++t;continue}if(N>=97?M=N-97+10:N>=65?M=N-65+10:ig(N)?M=N-48:M=1/0,M>=s){if(M<=9&&u)return{n:null,pos:t};if(M<=9&&l.invalidDigit(t,r,i,s))M=0;else if(a)M=0,E=!0;else break}++t,v=v*s+M}return t===c||n!=null&&t-c!==n||E?{n:null,pos:t}:{n:v,pos:t}}function Op(e,t,r,i,s,n){let a=e.charCodeAt(t),o;if(a===123){if(++t,{code:o,pos:t}=Ia(e,t,r,i,e.indexOf("}",t)-t,!0,s,n),++t,o!==null&&o>1114111)if(s)n.invalidCodePoint(t,r,i);else return{code:null,pos:t}}else({code:o,pos:t}=Ia(e,t,r,i,4,!1,s,n));return{code:o,pos:t}}function Bi(e,t,r){return new Xt(r,e-t,e)}var ag=new Set([103,109,115,105,121,117,100,118]),Yt=class{constructor(t){this.type=t.type,this.value=t.value,this.start=t.start,this.end=t.end,this.loc=new oi(t.startLoc,t.endLoc)}},wa=class extends va{constructor(t,r){super(),this.isLookahead=void 0,this.tokens=[],this.errorHandlers_readInt={invalidDigit:(i,s,n,a)=>this.options.errorRecovery?(this.raise(S.InvalidDigit,Bi(i,s,n),{radix:a}),!0):!1,numericSeparatorInEscapeSequence:this.errorBuilder(S.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:this.errorBuilder(S.UnexpectedNumericSeparator)},this.errorHandlers_readCodePoint=Object.assign({},this.errorHandlers_readInt,{invalidEscapeSequence:this.errorBuilder(S.InvalidEscapeSequence),invalidCodePoint:this.errorBuilder(S.InvalidCodePoint)}),this.errorHandlers_readStringContents_string=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:(i,s,n)=>{this.recordStrictModeErrors(S.StrictNumericEscape,Bi(i,s,n))},unterminated:(i,s,n)=>{throw this.raise(S.UnterminatedString,Bi(i-1,s,n))}}),this.errorHandlers_readStringContents_template=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:this.errorBuilder(S.StrictNumericEscape),unterminated:(i,s,n)=>{throw this.raise(S.UnterminatedTemplate,Bi(i,s,n))}}),this.state=new Ca,this.state.init(t),this.input=r,this.length=r.length,this.comments=[],this.isLookahead=!1}pushToken(t){this.tokens.length=this.state.tokensLength,this.tokens.push(t),++this.state.tokensLength}next(){this.checkKeywordEscapes(),this.options.tokens&&this.pushToken(new Yt(this.state)),this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken()}eat(t){return this.match(t)?(this.next(),!0):!1}match(t){return this.state.type===t}createLookaheadState(t){return{pos:t.pos,value:null,type:t.type,start:t.start,end:t.end,context:[this.curContext()],inType:t.inType,startLoc:t.startLoc,lastTokEndLoc:t.lastTokEndLoc,curLine:t.curLine,lineStart:t.lineStart,curPosition:t.curPosition}}lookahead(){let t=this.state;this.state=this.createLookaheadState(t),this.isLookahead=!0,this.nextToken(),this.isLookahead=!1;let r=this.state;return this.state=t,r}nextTokenStart(){return this.nextTokenStartSince(this.state.pos)}nextTokenStartSince(t){return ma.lastIndex=t,ma.test(this.input)?ma.lastIndex:t}lookaheadCharCode(){return this.input.charCodeAt(this.nextTokenStart())}nextTokenInLineStart(){return this.nextTokenInLineStartSince(this.state.pos)}nextTokenInLineStartSince(t){return ya.lastIndex=t,ya.test(this.input)?ya.lastIndex:t}lookaheadInLineCharCode(){return this.input.charCodeAt(this.nextTokenInLineStart())}codePointAtPos(t){let r=this.input.charCodeAt(t);if((r&64512)===55296&&++t<this.input.length){let i=this.input.charCodeAt(t);(i&64512)===56320&&(r=65536+((r&1023)<<10)+(i&1023))}return r}setStrict(t){this.state.strict=t,t&&(this.state.strictErrors.forEach(([r,i])=>this.raise(r,i)),this.state.strictErrors.clear())}curContext(){return this.state.context[this.state.context.length-1]}nextToken(){if(this.skipSpace(),this.state.start=this.state.pos,this.isLookahead||(this.state.startLoc=this.state.curPosition()),this.state.pos>=this.length){this.finishToken(139);return}this.getTokenFromCode(this.codePointAtPos(this.state.pos))}skipBlockComment(t){let r;this.isLookahead||(r=this.state.curPosition());let i=this.state.pos,s=this.input.indexOf(t,i+2);if(s===-1)throw this.raise(S.UnterminatedComment,this.state.curPosition());for(this.state.pos=s+t.length,Ns.lastIndex=i+2;Ns.test(this.input)&&Ns.lastIndex<=s;)++this.state.curLine,this.state.lineStart=Ns.lastIndex;if(this.isLookahead)return;let n={type:"CommentBlock",value:this.input.slice(i+2,s),start:i,end:s+t.length,loc:new oi(r,this.state.curPosition())};return this.options.tokens&&this.pushToken(n),n}skipLineComment(t){let r=this.state.pos,i;this.isLookahead||(i=this.state.curPosition());let s=this.input.charCodeAt(this.state.pos+=t);if(this.state.pos<this.length)for(;!ni(s)&&++this.state.pos<this.length;)s=this.input.charCodeAt(this.state.pos);if(this.isLookahead)return;let n=this.state.pos,o={type:"CommentLine",value:this.input.slice(r+t,n),start:r,end:n,loc:new oi(i,this.state.curPosition())};return this.options.tokens&&this.pushToken(o),o}skipSpace(){let t=this.state.pos,r=[];e:for(;this.state.pos<this.length;){let i=this.input.charCodeAt(this.state.pos);switch(i){case 32:case 160:case 9:++this.state.pos;break;case 13:this.input.charCodeAt(this.state.pos+1)===10&&++this.state.pos;case 10:case 8232:case 8233:++this.state.pos,++this.state.curLine,this.state.lineStart=this.state.pos;break;case 47:switch(this.input.charCodeAt(this.state.pos+1)){case 42:{let s=this.skipBlockComment("*/");s!==void 0&&(this.addComment(s),this.options.attachComment&&r.push(s));break}case 47:{let s=this.skipLineComment(2);s!==void 0&&(this.addComment(s),this.options.attachComment&&r.push(s));break}default:break e}break;default:if(rg(i))++this.state.pos;else if(i===45&&!this.inModule&&this.options.annexB){let s=this.state.pos;if(this.input.charCodeAt(s+1)===45&&this.input.charCodeAt(s+2)===62&&(t===0||this.state.lineStart>t)){let n=this.skipLineComment(3);n!==void 0&&(this.addComment(n),this.options.attachComment&&r.push(n))}else break e}else if(i===60&&!this.inModule&&this.options.annexB){let s=this.state.pos;if(this.input.charCodeAt(s+1)===33&&this.input.charCodeAt(s+2)===45&&this.input.charCodeAt(s+3)===45){let n=this.skipLineComment(4);n!==void 0&&(this.addComment(n),this.options.attachComment&&r.push(n))}else break e}else break e}}if(r.length>0){let i=this.state.pos,s={start:t,end:i,comments:r,leadingNode:null,trailingNode:null,containingNode:null};this.state.commentStack.push(s)}}finishToken(t,r){this.state.end=this.state.pos,this.state.endLoc=this.state.curPosition();let i=this.state.type;this.state.type=t,this.state.value=r,this.isLookahead||this.updateContext(i)}replaceToken(t){this.state.type=t,this.updateContext()}readToken_numberSign(){if(this.state.pos===0&&this.readToken_interpreter())return;let t=this.state.pos+1,r=this.codePointAtPos(t);if(r>=48&&r<=57)throw this.raise(S.UnexpectedDigitAfterHash,this.state.curPosition());if(r===123||r===91&&this.hasPlugin("recordAndTuple")){if(this.expectPlugin("recordAndTuple"),this.getPluginOption("recordAndTuple","syntaxType")==="bar")throw this.raise(r===123?S.RecordExpressionHashIncorrectStartSyntaxType:S.TupleExpressionHashIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,r===123?this.finishToken(7):this.finishToken(1)}else ir(r)?(++this.state.pos,this.finishToken(138,this.readWord1(r))):r===92?(++this.state.pos,this.finishToken(138,this.readWord1())):this.finishOp(27,1)}readToken_dot(){let t=this.input.charCodeAt(this.state.pos+1);if(t>=48&&t<=57){this.readNumber(!0);return}t===46&&this.input.charCodeAt(this.state.pos+2)===46?(this.state.pos+=3,this.finishToken(21)):(++this.state.pos,this.finishToken(16))}readToken_slash(){this.input.charCodeAt(this.state.pos+1)===61?this.finishOp(31,2):this.finishOp(56,1)}readToken_interpreter(){if(this.state.pos!==0||this.length<2)return!1;let t=this.input.charCodeAt(this.state.pos+1);if(t!==33)return!1;let r=this.state.pos;for(this.state.pos+=1;!ni(t)&&++this.state.pos<this.length;)t=this.input.charCodeAt(this.state.pos);let i=this.input.slice(r+2,this.state.pos);return this.finishToken(28,i),!0}readToken_mult_modulo(t){let r=t===42?55:54,i=1,s=this.input.charCodeAt(this.state.pos+1);t===42&&s===42&&(i++,s=this.input.charCodeAt(this.state.pos+2),r=57),s===61&&!this.state.inType&&(i++,r=t===37?33:30),this.finishOp(r,i)}readToken_pipe_amp(t){let r=this.input.charCodeAt(this.state.pos+1);if(r===t){this.input.charCodeAt(this.state.pos+2)===61?this.finishOp(30,3):this.finishOp(t===124?41:42,2);return}if(t===124){if(r===62){this.finishOp(39,2);return}if(this.hasPlugin("recordAndTuple")&&r===125){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(S.RecordExpressionBarIncorrectEndSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(9);return}if(this.hasPlugin("recordAndTuple")&&r===93){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(S.TupleExpressionBarIncorrectEndSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(4);return}}if(r===61){this.finishOp(30,2);return}this.finishOp(t===124?43:45,1)}readToken_caret(){let t=this.input.charCodeAt(this.state.pos+1);t===61&&!this.state.inType?this.finishOp(32,2):t===94&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"^^"}])?(this.finishOp(37,2),this.input.codePointAt(this.state.pos)===94&&this.unexpected()):this.finishOp(44,1)}readToken_atSign(){this.input.charCodeAt(this.state.pos+1)===64&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"@@"}])?this.finishOp(38,2):this.finishOp(26,1)}readToken_plus_min(t){let r=this.input.charCodeAt(this.state.pos+1);if(r===t){this.finishOp(34,2);return}r===61?this.finishOp(30,2):this.finishOp(53,1)}readToken_lt(){let{pos:t}=this.state,r=this.input.charCodeAt(t+1);if(r===60){if(this.input.charCodeAt(t+2)===61){this.finishOp(30,3);return}this.finishOp(51,2);return}if(r===61){this.finishOp(49,2);return}this.finishOp(47,1)}readToken_gt(){let{pos:t}=this.state,r=this.input.charCodeAt(t+1);if(r===62){let i=this.input.charCodeAt(t+2)===62?3:2;if(this.input.charCodeAt(t+i)===61){this.finishOp(30,i+1);return}this.finishOp(52,i);return}if(r===61){this.finishOp(49,2);return}this.finishOp(48,1)}readToken_eq_excl(t){let r=this.input.charCodeAt(this.state.pos+1);if(r===61){this.finishOp(46,this.input.charCodeAt(this.state.pos+2)===61?3:2);return}if(t===61&&r===62){this.state.pos+=2,this.finishToken(19);return}this.finishOp(t===61?29:35,1)}readToken_question(){let t=this.input.charCodeAt(this.state.pos+1),r=this.input.charCodeAt(this.state.pos+2);t===63?r===61?this.finishOp(30,3):this.finishOp(40,2):t===46&&!(r>=48&&r<=57)?(this.state.pos+=2,this.finishToken(18)):(++this.state.pos,this.finishToken(17))}getTokenFromCode(t){switch(t){case 46:this.readToken_dot();return;case 40:++this.state.pos,this.finishToken(10);return;case 41:++this.state.pos,this.finishToken(11);return;case 59:++this.state.pos,this.finishToken(13);return;case 44:++this.state.pos,this.finishToken(12);return;case 91:if(this.hasPlugin("recordAndTuple")&&this.input.charCodeAt(this.state.pos+1)===124){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(S.TupleExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(2)}else++this.state.pos,this.finishToken(0);return;case 93:++this.state.pos,this.finishToken(3);return;case 123:if(this.hasPlugin("recordAndTuple")&&this.input.charCodeAt(this.state.pos+1)===124){if(this.getPluginOption("recordAndTuple","syntaxType")!=="bar")throw this.raise(S.RecordExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(6)}else++this.state.pos,this.finishToken(5);return;case 125:++this.state.pos,this.finishToken(8);return;case 58:this.hasPlugin("functionBind")&&this.input.charCodeAt(this.state.pos+1)===58?this.finishOp(15,2):(++this.state.pos,this.finishToken(14));return;case 63:this.readToken_question();return;case 96:this.readTemplateToken();return;case 48:{let r=this.input.charCodeAt(this.state.pos+1);if(r===120||r===88){this.readRadixNumber(16);return}if(r===111||r===79){this.readRadixNumber(8);return}if(r===98||r===66){this.readRadixNumber(2);return}}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:this.readNumber(!1);return;case 34:case 39:this.readString(t);return;case 47:this.readToken_slash();return;case 37:case 42:this.readToken_mult_modulo(t);return;case 124:case 38:this.readToken_pipe_amp(t);return;case 94:this.readToken_caret();return;case 43:case 45:this.readToken_plus_min(t);return;case 60:this.readToken_lt();return;case 62:this.readToken_gt();return;case 61:case 33:this.readToken_eq_excl(t);return;case 126:this.finishOp(36,1);return;case 64:this.readToken_atSign();return;case 35:this.readToken_numberSign();return;case 92:this.readWord();return;default:if(ir(t)){this.readWord(t);return}}throw this.raise(S.InvalidOrUnexpectedToken,this.state.curPosition(),{unexpected:String.fromCodePoint(t)})}finishOp(t,r){let i=this.input.slice(this.state.pos,this.state.pos+r);this.state.pos+=r,this.finishToken(t,i)}readRegexp(){let t=this.state.startLoc,r=this.state.start+1,i,s,{pos:n}=this.state;for(;;++n){if(n>=this.length)throw this.raise(S.UnterminatedRegExp,ut(t,1));let u=this.input.charCodeAt(n);if(ni(u))throw this.raise(S.UnterminatedRegExp,ut(t,1));if(i)i=!1;else{if(u===91)s=!0;else if(u===93&&s)s=!1;else if(u===47&&!s)break;i=u===92}}let a=this.input.slice(r,n);++n;let o="",l=()=>ut(t,n+2-r);for(;n<this.length;){let u=this.codePointAtPos(n),c=String.fromCharCode(u);if(ag.has(u))u===118?o.includes("u")&&this.raise(S.IncompatibleRegExpUVFlags,l()):u===117&&o.includes("v")&&this.raise(S.IncompatibleRegExpUVFlags,l()),o.includes(c)&&this.raise(S.DuplicateRegExpFlags,l());else if(si(u)||u===92)this.raise(S.MalformedRegExpFlags,l());else break;++n,o+=c}this.state.pos=n,this.finishToken(137,{pattern:a,flags:o})}readInt(t,r,i=!1,s=!0){let{n,pos:a}=wp(this.input,this.state.pos,this.state.lineStart,this.state.curLine,t,r,i,s,this.errorHandlers_readInt,!1);return this.state.pos=a,n}readRadixNumber(t){let r=this.state.curPosition(),i=!1;this.state.pos+=2;let s=this.readInt(t);s==null&&this.raise(S.InvalidDigit,ut(r,2),{radix:t});let n=this.input.charCodeAt(this.state.pos);if(n===110)++this.state.pos,i=!0;else if(n===109)throw this.raise(S.InvalidDecimal,r);if(ir(this.codePointAtPos(this.state.pos)))throw this.raise(S.NumberIdentifier,this.state.curPosition());if(i){let a=this.input.slice(r.index,this.state.pos).replace(/[_n]/g,"");this.finishToken(135,a);return}this.finishToken(134,s)}readNumber(t){let r=this.state.pos,i=this.state.curPosition(),s=!1,n=!1,a=!1,o=!1,l=!1;!t&&this.readInt(10)===null&&this.raise(S.InvalidNumber,this.state.curPosition());let u=this.state.pos-r>=2&&this.input.charCodeAt(r)===48;if(u){let E=this.input.slice(r,this.state.pos);if(this.recordStrictModeErrors(S.StrictOctalLiteral,i),!this.state.strict){let v=E.indexOf("_");v>0&&this.raise(S.ZeroDigitNumericSeparator,ut(i,v))}l=u&&!/[89]/.test(E)}let c=this.input.charCodeAt(this.state.pos);if(c===46&&!l&&(++this.state.pos,this.readInt(10),s=!0,c=this.input.charCodeAt(this.state.pos)),(c===69||c===101)&&!l&&(c=this.input.charCodeAt(++this.state.pos),(c===43||c===45)&&++this.state.pos,this.readInt(10)===null&&this.raise(S.InvalidOrMissingExponent,i),s=!0,o=!0,c=this.input.charCodeAt(this.state.pos)),c===110&&((s||u)&&this.raise(S.InvalidBigIntLiteral,i),++this.state.pos,n=!0),c===109&&(this.expectPlugin("decimal",this.state.curPosition()),(o||u)&&this.raise(S.InvalidDecimal,i),++this.state.pos,a=!0),ir(this.codePointAtPos(this.state.pos)))throw this.raise(S.NumberIdentifier,this.state.curPosition());let T=this.input.slice(r,this.state.pos).replace(/[_mn]/g,"");if(n){this.finishToken(135,T);return}if(a){this.finishToken(136,T);return}let P=l?parseInt(T,8):parseFloat(T);this.finishToken(134,P)}readCodePoint(t){let{code:r,pos:i}=Op(this.input,this.state.pos,this.state.lineStart,this.state.curLine,t,this.errorHandlers_readCodePoint);return this.state.pos=i,r}readString(t){let{str:r,pos:i,curLine:s,lineStart:n}=fp(t===34?"double":"single",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_string);this.state.pos=i+1,this.state.lineStart=n,this.state.curLine=s,this.finishToken(133,r)}readTemplateContinuation(){this.match(8)||this.unexpected(null,8),this.state.pos--,this.readTemplateToken()}readTemplateToken(){let t=this.input[this.state.pos],{str:r,firstInvalidLoc:i,pos:s,curLine:n,lineStart:a}=fp("template",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_template);this.state.pos=s+1,this.state.lineStart=a,this.state.curLine=n,i&&(this.state.firstInvalidTemplateEscapePos=new Xt(i.curLine,i.pos-i.lineStart,i.pos)),this.input.codePointAt(s)===96?this.finishToken(24,i?null:t+r+"`"):(this.state.pos++,this.finishToken(25,i?null:t+r+"${"))}recordStrictModeErrors(t,r){let i=r.index;this.state.strict&&!this.state.strictErrors.has(i)?this.raise(t,r):this.state.strictErrors.set(i,[t,r])}readWord1(t){this.state.containsEsc=!1;let r="",i=this.state.pos,s=this.state.pos;for(t!==void 0&&(this.state.pos+=t<=65535?1:2);this.state.pos<this.length;){let n=this.codePointAtPos(this.state.pos);if(si(n))this.state.pos+=n<=65535?1:2;else if(n===92){this.state.containsEsc=!0,r+=this.input.slice(s,this.state.pos);let a=this.state.curPosition(),o=this.state.pos===i?ir:si;if(this.input.charCodeAt(++this.state.pos)!==117){this.raise(S.MissingUnicodeEscape,this.state.curPosition()),s=this.state.pos-1;continue}++this.state.pos;let l=this.readCodePoint(!0);l!==null&&(o(l)||this.raise(S.EscapedCharNotAnIdentifier,a),r+=String.fromCodePoint(l)),s=this.state.pos}else break}return r+this.input.slice(s,this.state.pos)}readWord(t){let r=this.readWord1(t),i=qa.get(r);i!==void 0?this.finishToken(i,Tr(i)):this.finishToken(132,r)}checkKeywordEscapes(){let{type:t}=this.state;Xa(t)&&this.state.containsEsc&&this.raise(S.InvalidEscapedReservedWord,this.state.startLoc,{reservedWord:Tr(t)})}raise(t,r,i={}){let s=r instanceof Xt?r:r.loc.start,n=t(s,i);if(!this.options.errorRecovery)throw n;return this.isLookahead||this.state.errors.push(n),n}raiseOverwrite(t,r,i={}){let s=r instanceof Xt?r:r.loc.start,n=s.index,a=this.state.errors;for(let o=a.length-1;o>=0;o--){let l=a[o];if(l.loc.index===n)return a[o]=t(s,i);if(l.loc.index<n)break}return this.raise(t,r,i)}updateContext(t){}unexpected(t,r){throw this.raise(S.UnexpectedToken,t??this.state.startLoc,{expected:r?Tr(r):null})}expectPlugin(t,r){if(this.hasPlugin(t))return!0;throw this.raise(S.MissingPlugin,r??this.state.startLoc,{missingPlugin:[t]})}expectOnePlugin(t){if(!t.some(r=>this.hasPlugin(r)))throw this.raise(S.MissingOneOfPlugins,this.state.startLoc,{missingPlugin:t})}errorBuilder(t){return(r,i,s)=>{this.raise(t,Bi(r,i,s))}}},Oa=class{constructor(){this.privateNames=new Set,this.loneAccessors=new Map,this.undefinedPrivateNames=new Map}},Na=class{constructor(t){this.parser=void 0,this.stack=[],this.undefinedPrivateNames=new Map,this.parser=t}current(){return this.stack[this.stack.length-1]}enter(){this.stack.push(new Oa)}exit(){let t=this.stack.pop(),r=this.current();for(let[i,s]of Array.from(t.undefinedPrivateNames))r?r.undefinedPrivateNames.has(i)||r.undefinedPrivateNames.set(i,s):this.parser.raise(S.InvalidPrivateFieldResolution,s,{identifierName:i})}declarePrivateName(t,r,i){let{privateNames:s,loneAccessors:n,undefinedPrivateNames:a}=this.current(),o=s.has(t);if(r&3){let l=o&&n.get(t);if(l){let u=l&4,c=r&4,T=l&3,P=r&3;o=T===P||u!==c,o||n.delete(t)}else o||n.set(t,r)}o&&this.parser.raise(S.PrivateNameRedeclaration,i,{identifierName:t}),s.add(t),a.delete(t)}usePrivateName(t,r){let i;for(i of this.stack)if(i.privateNames.has(t))return;i?i.undefinedPrivateNames.set(t,r):this.parser.raise(S.InvalidPrivateFieldResolution,r,{identifierName:t})}},li=class{constructor(t=0){this.type=t}canBeArrowParameterDeclaration(){return this.type===2||this.type===1}isCertainlyParameterDeclaration(){return this.type===3}},Fs=class extends li{constructor(t){super(t),this.declarationErrors=new Map}recordDeclarationError(t,r){let i=r.index;this.declarationErrors.set(i,[t,r])}clearDeclarationError(t){this.declarationErrors.delete(t)}iterateErrors(t){this.declarationErrors.forEach(t)}},_a=class{constructor(t){this.parser=void 0,this.stack=[new li],this.parser=t}enter(t){this.stack.push(t)}exit(){this.stack.pop()}recordParameterInitializerError(t,r){let i=r.loc.start,{stack:s}=this,n=s.length-1,a=s[n];for(;!a.isCertainlyParameterDeclaration();){if(a.canBeArrowParameterDeclaration())a.recordDeclarationError(t,i);else return;a=s[--n]}this.parser.raise(t,i)}recordArrowParameterBindingError(t,r){let{stack:i}=this,s=i[i.length-1],n=r.loc.start;if(s.isCertainlyParameterDeclaration())this.parser.raise(t,n);else if(s.canBeArrowParameterDeclaration())s.recordDeclarationError(t,n);else return}recordAsyncArrowParametersError(t){let{stack:r}=this,i=r.length-1,s=r[i];for(;s.canBeArrowParameterDeclaration();)s.type===2&&s.recordDeclarationError(S.AwaitBindingIdentifier,t),s=r[--i]}validateAsPattern(){let{stack:t}=this,r=t[t.length-1];r.canBeArrowParameterDeclaration()&&r.iterateErrors(([i,s])=>{this.parser.raise(i,s);let n=t.length-2,a=t[n];for(;a.canBeArrowParameterDeclaration();)a.clearDeclarationError(s.index),a=t[--n]})}};function og(){return new li(3)}function lg(){return new Fs(1)}function ug(){return new Fs(2)}function Np(){return new li}var Da=class{constructor(){this.stacks=[]}enter(t){this.stacks.push(t)}exit(){this.stacks.pop()}currentFlags(){return this.stacks[this.stacks.length-1]}get hasAwait(){return(this.currentFlags()&2)>0}get hasYield(){return(this.currentFlags()&1)>0}get hasReturn(){return(this.currentFlags()&4)>0}get hasIn(){return(this.currentFlags()&8)>0}};function Ls(e,t){return(e?2:0)|(t?1:0)}var ka=class extends wa{addExtra(t,r,i,s=!0){if(!t)return;let{extra:n}=t;n==null&&(n={},t.extra=n),s?n[r]=i:Object.defineProperty(n,r,{enumerable:s,value:i})}isContextual(t){return this.state.type===t&&!this.state.containsEsc}isUnparsedContextual(t,r){let i=t+r.length;if(this.input.slice(t,i)===r){let s=this.input.charCodeAt(i);return!(si(s)||(s&64512)===55296)}return!1}isLookaheadContextual(t){let r=this.nextTokenStart();return this.isUnparsedContextual(r,t)}eatContextual(t){return this.isContextual(t)?(this.next(),!0):!1}expectContextual(t,r){if(!this.eatContextual(t)){if(r!=null)throw this.raise(r,this.state.startLoc);this.unexpected(null,t)}}canInsertSemicolon(){return this.match(139)||this.match(8)||this.hasPrecedingLineBreak()}hasPrecedingLineBreak(){return cp(this.input,this.state.lastTokEndLoc.index,this.state.start)}hasFollowingLineBreak(){return cp(this.input,this.state.end,this.nextTokenStart())}isLineTerminator(){return this.eat(13)||this.canInsertSemicolon()}semicolon(t=!0){(t?this.isLineTerminator():this.eat(13))||this.raise(S.MissingSemicolon,this.state.lastTokEndLoc)}expect(t,r){this.eat(t)||this.unexpected(r,t)}tryParse(t,r=this.state.clone()){let i={node:null};try{let s=t((n=null)=>{throw i.node=n,i});if(this.state.errors.length>r.errors.length){let n=this.state;return this.state=r,this.state.tokensLength=n.tokensLength,{node:s,error:n.errors[r.errors.length],thrown:!1,aborted:!1,failState:n}}return{node:s,error:null,thrown:!1,aborted:!1,failState:null}}catch(s){let n=this.state;if(this.state=r,s instanceof SyntaxError)return{node:null,error:s,thrown:!0,aborted:!1,failState:n};if(s===i)return{node:i.node,error:null,thrown:!1,aborted:!0,failState:n};throw s}}checkExpressionErrors(t,r){if(!t)return!1;let{shorthandAssignLoc:i,doubleProtoLoc:s,privateKeyLoc:n,optionalParametersLoc:a}=t,o=!!i||!!s||!!a||!!n;if(!r)return o;i!=null&&this.raise(S.InvalidCoverInitializedName,i),s!=null&&this.raise(S.DuplicateProto,s),n!=null&&this.raise(S.UnexpectedPrivateField,n),a!=null&&this.unexpected(a)}isLiteralPropertyName(){return Sp(this.state.type)}isPrivateName(t){return t.type==="PrivateName"}getPrivateNameSV(t){return t.id.name}hasPropertyAsPrivateName(t){return(t.type==="MemberExpression"||t.type==="OptionalMemberExpression")&&this.isPrivateName(t.property)}isObjectProperty(t){return t.type==="ObjectProperty"}isObjectMethod(t){return t.type==="ObjectMethod"}initializeScopes(t=this.options.sourceType==="module"){let r=this.state.labels;this.state.labels=[];let i=this.exportedIdentifiers;this.exportedIdentifiers=new Set;let s=this.inModule;this.inModule=t;let n=this.scope,a=this.getScopeHandler();this.scope=new a(this,t);let o=this.prodParam;this.prodParam=new Da;let l=this.classScope;this.classScope=new Na(this);let u=this.expressionScope;return this.expressionScope=new _a(this),()=>{this.state.labels=r,this.exportedIdentifiers=i,this.inModule=s,this.scope=n,this.prodParam=o,this.classScope=l,this.expressionScope=u}}enterInitialScopes(){let t=0;this.inModule&&(t|=2),this.scope.enter(1),this.prodParam.enter(t)}checkDestructuringPrivate(t){let{privateKeyLoc:r}=t;r!==null&&this.expectPlugin("destructuringPrivate",r)}},ai=class{constructor(){this.shorthandAssignLoc=null,this.doubleProtoLoc=null,this.privateKeyLoc=null,this.optionalParametersLoc=null}},ui=class{constructor(t,r,i){this.type="",this.start=r,this.end=0,this.loc=new oi(i),t!=null&&t.options.ranges&&(this.range=[r,0]),t!=null&&t.filename&&(this.loc.filename=t.filename)}},Ha=ui.prototype;Ha.__clone=function(){let e=new ui(void 0,this.start,this.loc.start),t=Object.keys(this);for(let r=0,i=t.length;r<i;r++){let s=t[r];s!=="leadingComments"&&s!=="trailingComments"&&s!=="innerComments"&&(e[s]=this[s])}return e};function cg(e){return nr(e)}function nr(e){let{type:t,start:r,end:i,loc:s,range:n,extra:a,name:o}=e,l=Object.create(Ha);return l.type=t,l.start=r,l.end=i,l.loc=s,l.range=n,l.extra=a,l.name=o,t==="Placeholder"&&(l.expectedNode=e.expectedNode),l}function pg(e){let{type:t,start:r,end:i,loc:s,range:n,extra:a}=e;if(t==="Placeholder")return cg(e);let o=Object.create(Ha);return o.type=t,o.start=r,o.end=i,o.loc=s,o.range=n,e.raw!==void 0?o.raw=e.raw:o.extra=a,o.value=e.value,o}var La=class extends ka{startNode(){let t=this.state.startLoc;return new ui(this,t.index,t)}startNodeAt(t){return new ui(this,t.index,t)}startNodeAtNode(t){return this.startNodeAt(t.loc.start)}finishNode(t,r){return this.finishNodeAt(t,r,this.state.lastTokEndLoc)}finishNodeAt(t,r,i){return t.type=r,t.end=i.index,t.loc.end=i,this.options.ranges&&(t.range[1]=i.index),this.options.attachComment&&this.processComment(t),t}resetStartLocation(t,r){t.start=r.index,t.loc.start=r,this.options.ranges&&(t.range[0]=r.index)}resetEndLocation(t,r=this.state.lastTokEndLoc){t.end=r.index,t.loc.end=r,this.options.ranges&&(t.range[1]=r.index)}resetStartLocationFromNode(t,r){this.resetStartLocation(t,r.loc.start)}},fg=new Set(["_","any","bool","boolean","empty","extends","false","interface","mixed","null","number","static","string","true","typeof","void"]),re=sr`flow`({AmbiguousConditionalArrow:"Ambiguous expression: wrap the arrow functions in parentheses to disambiguate.",AmbiguousDeclareModuleKind:"Found both `declare module.exports` and `declare export` in the same module. Modules can only have 1 since they are either an ES module or they are a CommonJS module.",AssignReservedType:({reservedType:e})=>`Cannot overwrite reserved type ${e}.`,DeclareClassElement:"The `declare` modifier can only appear on class fields.",DeclareClassFieldInitializer:"Initializers are not allowed in fields with the `declare` modifier.",DuplicateDeclareModuleExports:"Duplicate `declare module.exports` statement.",EnumBooleanMemberNotInitialized:({memberName:e,enumName:t})=>`Boolean enum members need to be initialized. Use either \`${e} = true,\` or \`${e} = false,\` in enum \`${t}\`.`,EnumDuplicateMemberName:({memberName:e,enumName:t})=>`Enum member names need to be unique, but the name \`${e}\` has already been used before in enum \`${t}\`.`,EnumInconsistentMemberValues:({enumName:e})=>`Enum \`${e}\` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.`,EnumInvalidExplicitType:({invalidEnumType:e,enumName:t})=>`Enum type \`${e}\` is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${t}\`.`,EnumInvalidExplicitTypeUnknownSupplied:({enumName:e})=>`Supplied enum type is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${e}\`.`,EnumInvalidMemberInitializerPrimaryType:({enumName:e,memberName:t,explicitType:r})=>`Enum \`${e}\` has type \`${r}\`, so the initializer of \`${t}\` needs to be a ${r} literal.`,EnumInvalidMemberInitializerSymbolType:({enumName:e,memberName:t})=>`Symbol enum members cannot be initialized. Use \`${t},\` in enum \`${e}\`.`,EnumInvalidMemberInitializerUnknownType:({enumName:e,memberName:t})=>`The enum member initializer for \`${t}\` needs to be a literal (either a boolean, number, or string) in enum \`${e}\`.`,EnumInvalidMemberName:({enumName:e,memberName:t,suggestion:r})=>`Enum member names cannot start with lowercase 'a' through 'z'. Instead of using \`${t}\`, consider using \`${r}\`, in enum \`${e}\`.`,EnumNumberMemberNotInitialized:({enumName:e,memberName:t})=>`Number enum members need to be initialized, e.g. \`${t} = 1\` in enum \`${e}\`.`,EnumStringMemberInconsistentlyInitialized:({enumName:e})=>`String enum members need to consistently either all use initializers, or use no initializers, in enum \`${e}\`.`,GetterMayNotHaveThisParam:"A getter cannot have a `this` parameter.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` or `typeof` keyword.",ImportTypeShorthandOnlyInPureImport:"The `type` and `typeof` keywords on named imports can only be used on regular `import` statements. It cannot be used with `import type` or `import typeof` statements.",InexactInsideExact:"Explicit inexact syntax cannot appear inside an explicit exact object type.",InexactInsideNonObject:"Explicit inexact syntax cannot appear in class or interface definitions.",InexactVariance:"Explicit inexact syntax cannot have variance.",InvalidNonTypeImportInDeclareModule:"Imports within a `declare module` body must always be `import type` or `import typeof`.",MissingTypeParamDefault:"Type parameter declaration needs a default, since a preceding type parameter declaration has a default.",NestedDeclareModule:"`declare module` cannot be used inside another `declare module`.",NestedFlowComment:"Cannot have a flow comment inside another flow comment.",PatternIsOptional:Object.assign({message:"A binding pattern parameter cannot be optional in an implementation signature."},{reasonCode:"OptionalBindingPattern"}),SetterMayNotHaveThisParam:"A setter cannot have a `this` parameter.",SpreadVariance:"Spread properties cannot have variance.",ThisParamAnnotationRequired:"A type annotation is required for the `this` parameter.",ThisParamBannedInConstructor:"Constructors cannot have a `this` parameter; constructors don't bind `this` like other functions.",ThisParamMayNotBeOptional:"The `this` parameter cannot be optional.",ThisParamMustBeFirst:"The `this` parameter must be the first function parameter.",ThisParamNoDefault:"The `this` parameter may not have a default value.",TypeBeforeInitializer:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeCastInPattern:"The type cast expression is expected to be wrapped with parenthesis.",UnexpectedExplicitInexactInObject:"Explicit inexact syntax must appear at the end of an inexact object.",UnexpectedReservedType:({reservedType:e})=>`Unexpected reserved type ${e}.`,UnexpectedReservedUnderscore:"`_` is only allowed as a type argument to call or new.",UnexpectedSpaceBetweenModuloChecks:"Spaces between `%` and `checks` are not allowed here.",UnexpectedSpreadType:"Spread operator cannot appear in class or interface definitions.",UnexpectedSubtractionOperand:'Unexpected token, expected "number" or "bigint".',UnexpectedTokenAfterTypeParameter:"Expected an arrow function after this type parameter declaration.",UnexpectedTypeParameterBeforeAsyncArrowFunction:"Type parameters must come after the async keyword, e.g. instead of `<T> async () => {}`, use `async <T>() => {}`.",UnsupportedDeclareExportKind:({unsupportedExportKind:e,suggestion:t})=>`\`declare export ${e}\` is not supported. Use \`${t}\` instead.`,UnsupportedStatementInDeclareModule:"Only declares and type imports are allowed inside declare module.",UnterminatedFlowComment:"Unterminated flow-comment."});function hg(e){return e.type==="DeclareExportAllDeclaration"||e.type==="DeclareExportDeclaration"&&(!e.declaration||e.declaration.type!=="TypeAlias"&&e.declaration.type!=="InterfaceDeclaration")}function hp(e){return e.importKind==="type"||e.importKind==="typeof"}var dg={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"};function mg(e,t){let r=[],i=[];for(let s=0;s<e.length;s++)(t(e[s],s,e)?r:i).push(e[s]);return[r,i]}var yg=/\*?\s*@((?:no)?flow)\b/,Tg=e=>class extends e{constructor(...r){super(...r),this.flowPragma=void 0}getScopeHandler(){return Pa}shouldParseTypes(){return this.getPluginOption("flow","all")||this.flowPragma==="flow"}shouldParseEnums(){return!!this.getPluginOption("flow","enums")}finishToken(r,i){r!==133&&r!==13&&r!==28&&this.flowPragma===void 0&&(this.flowPragma=null),super.finishToken(r,i)}addComment(r){if(this.flowPragma===void 0){let i=yg.exec(r.value);if(i)if(i[1]==="flow")this.flowPragma="flow";else if(i[1]==="noflow")this.flowPragma="noflow";else throw new Error("Unexpected flow pragma")}super.addComment(r)}flowParseTypeInitialiser(r){let i=this.state.inType;this.state.inType=!0,this.expect(r||14);let s=this.flowParseType();return this.state.inType=i,s}flowParsePredicate(){let r=this.startNode(),i=this.state.startLoc;return this.next(),this.expectContextual(110),this.state.lastTokStartLoc.index>i.index+1&&this.raise(re.UnexpectedSpaceBetweenModuloChecks,i),this.eat(10)?(r.value=super.parseExpression(),this.expect(11),this.finishNode(r,"DeclaredPredicate")):this.finishNode(r,"InferredPredicate")}flowParseTypeAndPredicateInitialiser(){let r=this.state.inType;this.state.inType=!0,this.expect(14);let i=null,s=null;return this.match(54)?(this.state.inType=r,s=this.flowParsePredicate()):(i=this.flowParseType(),this.state.inType=r,this.match(54)&&(s=this.flowParsePredicate())),[i,s]}flowParseDeclareClass(r){return this.next(),this.flowParseInterfaceish(r,!0),this.finishNode(r,"DeclareClass")}flowParseDeclareFunction(r){this.next();let i=r.id=this.parseIdentifier(),s=this.startNode(),n=this.startNode();this.match(47)?s.typeParameters=this.flowParseTypeParameterDeclaration():s.typeParameters=null,this.expect(10);let a=this.flowParseFunctionTypeParams();return s.params=a.params,s.rest=a.rest,s.this=a._this,this.expect(11),[s.returnType,r.predicate]=this.flowParseTypeAndPredicateInitialiser(),n.typeAnnotation=this.finishNode(s,"FunctionTypeAnnotation"),i.typeAnnotation=this.finishNode(n,"TypeAnnotation"),this.resetEndLocation(i),this.semicolon(),this.scope.declareName(r.id.name,2048,r.id.loc.start),this.finishNode(r,"DeclareFunction")}flowParseDeclare(r,i){if(this.match(80))return this.flowParseDeclareClass(r);if(this.match(68))return this.flowParseDeclareFunction(r);if(this.match(74))return this.flowParseDeclareVariable(r);if(this.eatContextual(127))return this.match(16)?this.flowParseDeclareModuleExports(r):(i&&this.raise(re.NestedDeclareModule,this.state.lastTokStartLoc),this.flowParseDeclareModule(r));if(this.isContextual(130))return this.flowParseDeclareTypeAlias(r);if(this.isContextual(131))return this.flowParseDeclareOpaqueType(r);if(this.isContextual(129))return this.flowParseDeclareInterface(r);if(this.match(82))return this.flowParseDeclareExportDeclaration(r,i);this.unexpected()}flowParseDeclareVariable(r){return this.next(),r.id=this.flowParseTypeAnnotatableIdentifier(!0),this.scope.declareName(r.id.name,5,r.id.loc.start),this.semicolon(),this.finishNode(r,"DeclareVariable")}flowParseDeclareModule(r){this.scope.enter(0),this.match(133)?r.id=super.parseExprAtom():r.id=this.parseIdentifier();let i=r.body=this.startNode(),s=i.body=[];for(this.expect(5);!this.match(8);){let o=this.startNode();this.match(83)?(this.next(),!this.isContextual(130)&&!this.match(87)&&this.raise(re.InvalidNonTypeImportInDeclareModule,this.state.lastTokStartLoc),super.parseImport(o)):(this.expectContextual(125,re.UnsupportedStatementInDeclareModule),o=this.flowParseDeclare(o,!0)),s.push(o)}this.scope.exit(),this.expect(8),this.finishNode(i,"BlockStatement");let n=null,a=!1;return s.forEach(o=>{hg(o)?(n==="CommonJS"&&this.raise(re.AmbiguousDeclareModuleKind,o),n="ES"):o.type==="DeclareModuleExports"&&(a&&this.raise(re.DuplicateDeclareModuleExports,o),n==="ES"&&this.raise(re.AmbiguousDeclareModuleKind,o),n="CommonJS",a=!0)}),r.kind=n||"CommonJS",this.finishNode(r,"DeclareModule")}flowParseDeclareExportDeclaration(r,i){if(this.expect(82),this.eat(65))return this.match(68)||this.match(80)?r.declaration=this.flowParseDeclare(this.startNode()):(r.declaration=this.flowParseType(),this.semicolon()),r.default=!0,this.finishNode(r,"DeclareExportDeclaration");if(this.match(75)||this.isLet()||(this.isContextual(130)||this.isContextual(129))&&!i){let s=this.state.value;throw this.raise(re.UnsupportedDeclareExportKind,this.state.startLoc,{unsupportedExportKind:s,suggestion:dg[s]})}if(this.match(74)||this.match(68)||this.match(80)||this.isContextual(131))return r.declaration=this.flowParseDeclare(this.startNode()),r.default=!1,this.finishNode(r,"DeclareExportDeclaration");if(this.match(55)||this.match(5)||this.isContextual(129)||this.isContextual(130)||this.isContextual(131))return r=this.parseExport(r,null),r.type==="ExportNamedDeclaration"&&(r.type="ExportDeclaration",r.default=!1,delete r.exportKind),r.type="Declare"+r.type,r;this.unexpected()}flowParseDeclareModuleExports(r){return this.next(),this.expectContextual(111),r.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(r,"DeclareModuleExports")}flowParseDeclareTypeAlias(r){this.next();let i=this.flowParseTypeAlias(r);return i.type="DeclareTypeAlias",i}flowParseDeclareOpaqueType(r){this.next();let i=this.flowParseOpaqueType(r,!0);return i.type="DeclareOpaqueType",i}flowParseDeclareInterface(r){return this.next(),this.flowParseInterfaceish(r,!1),this.finishNode(r,"DeclareInterface")}flowParseInterfaceish(r,i){if(r.id=this.flowParseRestrictedIdentifier(!i,!0),this.scope.declareName(r.id.name,i?17:8201,r.id.loc.start),this.match(47)?r.typeParameters=this.flowParseTypeParameterDeclaration():r.typeParameters=null,r.extends=[],this.eat(81))do r.extends.push(this.flowParseInterfaceExtends());while(!i&&this.eat(12));if(i){if(r.implements=[],r.mixins=[],this.eatContextual(117))do r.mixins.push(this.flowParseInterfaceExtends());while(this.eat(12));if(this.eatContextual(113))do r.implements.push(this.flowParseInterfaceExtends());while(this.eat(12))}r.body=this.flowParseObjectType({allowStatic:i,allowExact:!1,allowSpread:!1,allowProto:i,allowInexact:!1})}flowParseInterfaceExtends(){let r=this.startNode();return r.id=this.flowParseQualifiedTypeIdentifier(),this.match(47)?r.typeParameters=this.flowParseTypeParameterInstantiation():r.typeParameters=null,this.finishNode(r,"InterfaceExtends")}flowParseInterface(r){return this.flowParseInterfaceish(r,!1),this.finishNode(r,"InterfaceDeclaration")}checkNotUnderscore(r){r==="_"&&this.raise(re.UnexpectedReservedUnderscore,this.state.startLoc)}checkReservedType(r,i,s){fg.has(r)&&this.raise(s?re.AssignReservedType:re.UnexpectedReservedType,i,{reservedType:r})}flowParseRestrictedIdentifier(r,i){return this.checkReservedType(this.state.value,this.state.startLoc,i),this.parseIdentifier(r)}flowParseTypeAlias(r){return r.id=this.flowParseRestrictedIdentifier(!1,!0),this.scope.declareName(r.id.name,8201,r.id.loc.start),this.match(47)?r.typeParameters=this.flowParseTypeParameterDeclaration():r.typeParameters=null,r.right=this.flowParseTypeInitialiser(29),this.semicolon(),this.finishNode(r,"TypeAlias")}flowParseOpaqueType(r,i){return this.expectContextual(130),r.id=this.flowParseRestrictedIdentifier(!0,!0),this.scope.declareName(r.id.name,8201,r.id.loc.start),this.match(47)?r.typeParameters=this.flowParseTypeParameterDeclaration():r.typeParameters=null,r.supertype=null,this.match(14)&&(r.supertype=this.flowParseTypeInitialiser(14)),r.impltype=null,i||(r.impltype=this.flowParseTypeInitialiser(29)),this.semicolon(),this.finishNode(r,"OpaqueType")}flowParseTypeParameter(r=!1){let i=this.state.startLoc,s=this.startNode(),n=this.flowParseVariance(),a=this.flowParseTypeAnnotatableIdentifier();return s.name=a.name,s.variance=n,s.bound=a.typeAnnotation,this.match(29)?(this.eat(29),s.default=this.flowParseType()):r&&this.raise(re.MissingTypeParamDefault,i),this.finishNode(s,"TypeParameter")}flowParseTypeParameterDeclaration(){let r=this.state.inType,i=this.startNode();i.params=[],this.state.inType=!0,this.match(47)||this.match(142)?this.next():this.unexpected();let s=!1;do{let n=this.flowParseTypeParameter(s);i.params.push(n),n.default&&(s=!0),this.match(48)||this.expect(12)}while(!this.match(48));return this.expect(48),this.state.inType=r,this.finishNode(i,"TypeParameterDeclaration")}flowParseTypeParameterInstantiation(){let r=this.startNode(),i=this.state.inType;r.params=[],this.state.inType=!0,this.expect(47);let s=this.state.noAnonFunctionType;for(this.state.noAnonFunctionType=!1;!this.match(48);)r.params.push(this.flowParseType()),this.match(48)||this.expect(12);return this.state.noAnonFunctionType=s,this.expect(48),this.state.inType=i,this.finishNode(r,"TypeParameterInstantiation")}flowParseTypeParameterInstantiationCallOrNew(){let r=this.startNode(),i=this.state.inType;for(r.params=[],this.state.inType=!0,this.expect(47);!this.match(48);)r.params.push(this.flowParseTypeOrImplicitInstantiation()),this.match(48)||this.expect(12);return this.expect(48),this.state.inType=i,this.finishNode(r,"TypeParameterInstantiation")}flowParseInterfaceType(){let r=this.startNode();if(this.expectContextual(129),r.extends=[],this.eat(81))do r.extends.push(this.flowParseInterfaceExtends());while(this.eat(12));return r.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(r,"InterfaceTypeAnnotation")}flowParseObjectPropertyKey(){return this.match(134)||this.match(133)?super.parseExprAtom():this.parseIdentifier(!0)}flowParseObjectTypeIndexer(r,i,s){return r.static=i,this.lookahead().type===14?(r.id=this.flowParseObjectPropertyKey(),r.key=this.flowParseTypeInitialiser()):(r.id=null,r.key=this.flowParseType()),this.expect(3),r.value=this.flowParseTypeInitialiser(),r.variance=s,this.finishNode(r,"ObjectTypeIndexer")}flowParseObjectTypeInternalSlot(r,i){return r.static=i,r.id=this.flowParseObjectPropertyKey(),this.expect(3),this.expect(3),this.match(47)||this.match(10)?(r.method=!0,r.optional=!1,r.value=this.flowParseObjectTypeMethodish(this.startNodeAt(r.loc.start))):(r.method=!1,this.eat(17)&&(r.optional=!0),r.value=this.flowParseTypeInitialiser()),this.finishNode(r,"ObjectTypeInternalSlot")}flowParseObjectTypeMethodish(r){for(r.params=[],r.rest=null,r.typeParameters=null,r.this=null,this.match(47)&&(r.typeParameters=this.flowParseTypeParameterDeclaration()),this.expect(10),this.match(78)&&(r.this=this.flowParseFunctionTypeParam(!0),r.this.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)r.params.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(r.rest=this.flowParseFunctionTypeParam(!1)),this.expect(11),r.returnType=this.flowParseTypeInitialiser(),this.finishNode(r,"FunctionTypeAnnotation")}flowParseObjectTypeCallProperty(r,i){let s=this.startNode();return r.static=i,r.value=this.flowParseObjectTypeMethodish(s),this.finishNode(r,"ObjectTypeCallProperty")}flowParseObjectType({allowStatic:r,allowExact:i,allowSpread:s,allowProto:n,allowInexact:a}){let o=this.state.inType;this.state.inType=!0;let l=this.startNode();l.callProperties=[],l.properties=[],l.indexers=[],l.internalSlots=[];let u,c,T=!1;for(i&&this.match(6)?(this.expect(6),u=9,c=!0):(this.expect(5),u=8,c=!1),l.exact=c;!this.match(u);){let E=!1,v=null,D=null,_=this.startNode();if(n&&this.isContextual(118)){let M=this.lookahead();M.type!==14&&M.type!==17&&(this.next(),v=this.state.startLoc,r=!1)}if(r&&this.isContextual(106)){let M=this.lookahead();M.type!==14&&M.type!==17&&(this.next(),E=!0)}let N=this.flowParseVariance();if(this.eat(0))v!=null&&this.unexpected(v),this.eat(0)?(N&&this.unexpected(N.loc.start),l.internalSlots.push(this.flowParseObjectTypeInternalSlot(_,E))):l.indexers.push(this.flowParseObjectTypeIndexer(_,E,N));else if(this.match(10)||this.match(47))v!=null&&this.unexpected(v),N&&this.unexpected(N.loc.start),l.callProperties.push(this.flowParseObjectTypeCallProperty(_,E));else{let M="init";if(this.isContextual(99)||this.isContextual(104)){let ae=this.lookahead();Sp(ae.type)&&(M=this.state.value,this.next())}let ne=this.flowParseObjectTypeProperty(_,E,v,N,M,s,a??!c);ne===null?(T=!0,D=this.state.lastTokStartLoc):l.properties.push(ne)}this.flowObjectTypeSemicolon(),D&&!this.match(8)&&!this.match(9)&&this.raise(re.UnexpectedExplicitInexactInObject,D)}this.expect(u),s&&(l.inexact=T);let P=this.finishNode(l,"ObjectTypeAnnotation");return this.state.inType=o,P}flowParseObjectTypeProperty(r,i,s,n,a,o,l){if(this.eat(21))return this.match(12)||this.match(13)||this.match(8)||this.match(9)?(o?l||this.raise(re.InexactInsideExact,this.state.lastTokStartLoc):this.raise(re.InexactInsideNonObject,this.state.lastTokStartLoc),n&&this.raise(re.InexactVariance,n),null):(o||this.raise(re.UnexpectedSpreadType,this.state.lastTokStartLoc),s!=null&&this.unexpected(s),n&&this.raise(re.SpreadVariance,n),r.argument=this.flowParseType(),this.finishNode(r,"ObjectTypeSpreadProperty"));{r.key=this.flowParseObjectPropertyKey(),r.static=i,r.proto=s!=null,r.kind=a;let u=!1;return this.match(47)||this.match(10)?(r.method=!0,s!=null&&this.unexpected(s),n&&this.unexpected(n.loc.start),r.value=this.flowParseObjectTypeMethodish(this.startNodeAt(r.loc.start)),(a==="get"||a==="set")&&this.flowCheckGetterSetterParams(r),!o&&r.key.name==="constructor"&&r.value.this&&this.raise(re.ThisParamBannedInConstructor,r.value.this)):(a!=="init"&&this.unexpected(),r.method=!1,this.eat(17)&&(u=!0),r.value=this.flowParseTypeInitialiser(),r.variance=n),r.optional=u,this.finishNode(r,"ObjectTypeProperty")}}flowCheckGetterSetterParams(r){let i=r.kind==="get"?0:1,s=r.value.params.length+(r.value.rest?1:0);r.value.this&&this.raise(r.kind==="get"?re.GetterMayNotHaveThisParam:re.SetterMayNotHaveThisParam,r.value.this),s!==i&&this.raise(r.kind==="get"?S.BadGetterArity:S.BadSetterArity,r),r.kind==="set"&&r.value.rest&&this.raise(S.BadSetterRestParameter,r)}flowObjectTypeSemicolon(){!this.eat(13)&&!this.eat(12)&&!this.match(8)&&!this.match(9)&&this.unexpected()}flowParseQualifiedTypeIdentifier(r,i){var s;(s=r)!=null||(r=this.state.startLoc);let n=i||this.flowParseRestrictedIdentifier(!0);for(;this.eat(16);){let a=this.startNodeAt(r);a.qualification=n,a.id=this.flowParseRestrictedIdentifier(!0),n=this.finishNode(a,"QualifiedTypeIdentifier")}return n}flowParseGenericType(r,i){let s=this.startNodeAt(r);return s.typeParameters=null,s.id=this.flowParseQualifiedTypeIdentifier(r,i),this.match(47)&&(s.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(s,"GenericTypeAnnotation")}flowParseTypeofType(){let r=this.startNode();return this.expect(87),r.argument=this.flowParsePrimaryType(),this.finishNode(r,"TypeofTypeAnnotation")}flowParseTupleType(){let r=this.startNode();for(r.types=[],this.expect(0);this.state.pos<this.length&&!this.match(3)&&(r.types.push(this.flowParseType()),!this.match(3));)this.expect(12);return this.expect(3),this.finishNode(r,"TupleTypeAnnotation")}flowParseFunctionTypeParam(r){let i=null,s=!1,n=null,a=this.startNode(),o=this.lookahead(),l=this.state.type===78;return o.type===14||o.type===17?(l&&!r&&this.raise(re.ThisParamMustBeFirst,a),i=this.parseIdentifier(l),this.eat(17)&&(s=!0,l&&this.raise(re.ThisParamMayNotBeOptional,a)),n=this.flowParseTypeInitialiser()):n=this.flowParseType(),a.name=i,a.optional=s,a.typeAnnotation=n,this.finishNode(a,"FunctionTypeParam")}reinterpretTypeAsFunctionTypeParam(r){let i=this.startNodeAt(r.loc.start);return i.name=null,i.optional=!1,i.typeAnnotation=r,this.finishNode(i,"FunctionTypeParam")}flowParseFunctionTypeParams(r=[]){let i=null,s=null;for(this.match(78)&&(s=this.flowParseFunctionTypeParam(!0),s.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)r.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(i=this.flowParseFunctionTypeParam(!1)),{params:r,rest:i,_this:s}}flowIdentToTypeAnnotation(r,i,s){switch(s.name){case"any":return this.finishNode(i,"AnyTypeAnnotation");case"bool":case"boolean":return this.finishNode(i,"BooleanTypeAnnotation");case"mixed":return this.finishNode(i,"MixedTypeAnnotation");case"empty":return this.finishNode(i,"EmptyTypeAnnotation");case"number":return this.finishNode(i,"NumberTypeAnnotation");case"string":return this.finishNode(i,"StringTypeAnnotation");case"symbol":return this.finishNode(i,"SymbolTypeAnnotation");default:return this.checkNotUnderscore(s.name),this.flowParseGenericType(r,s)}}flowParsePrimaryType(){let r=this.state.startLoc,i=this.startNode(),s,n,a=!1,o=this.state.noAnonFunctionType;switch(this.state.type){case 5:return this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!0,allowProto:!1,allowInexact:!0});case 6:return this.flowParseObjectType({allowStatic:!1,allowExact:!0,allowSpread:!0,allowProto:!1,allowInexact:!1});case 0:return this.state.noAnonFunctionType=!1,n=this.flowParseTupleType(),this.state.noAnonFunctionType=o,n;case 47:{let l=this.startNode();return l.typeParameters=this.flowParseTypeParameterDeclaration(),this.expect(10),s=this.flowParseFunctionTypeParams(),l.params=s.params,l.rest=s.rest,l.this=s._this,this.expect(11),this.expect(19),l.returnType=this.flowParseType(),this.finishNode(l,"FunctionTypeAnnotation")}case 10:{let l=this.startNode();if(this.next(),!this.match(11)&&!this.match(21))if(Ie(this.state.type)||this.match(78)){let u=this.lookahead().type;a=u!==17&&u!==14}else a=!0;if(a){if(this.state.noAnonFunctionType=!1,n=this.flowParseType(),this.state.noAnonFunctionType=o,this.state.noAnonFunctionType||!(this.match(12)||this.match(11)&&this.lookahead().type===19))return this.expect(11),n;this.eat(12)}return n?s=this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(n)]):s=this.flowParseFunctionTypeParams(),l.params=s.params,l.rest=s.rest,l.this=s._this,this.expect(11),this.expect(19),l.returnType=this.flowParseType(),l.typeParameters=null,this.finishNode(l,"FunctionTypeAnnotation")}case 133:return this.parseLiteral(this.state.value,"StringLiteralTypeAnnotation");case 85:case 86:return i.value=this.match(85),this.next(),this.finishNode(i,"BooleanLiteralTypeAnnotation");case 53:if(this.state.value==="-"){if(this.next(),this.match(134))return this.parseLiteralAtNode(-this.state.value,"NumberLiteralTypeAnnotation",i);if(this.match(135))return this.parseLiteralAtNode(-this.state.value,"BigIntLiteralTypeAnnotation",i);throw this.raise(re.UnexpectedSubtractionOperand,this.state.startLoc)}this.unexpected();return;case 134:return this.parseLiteral(this.state.value,"NumberLiteralTypeAnnotation");case 135:return this.parseLiteral(this.state.value,"BigIntLiteralTypeAnnotation");case 88:return this.next(),this.finishNode(i,"VoidTypeAnnotation");case 84:return this.next(),this.finishNode(i,"NullLiteralTypeAnnotation");case 78:return this.next(),this.finishNode(i,"ThisTypeAnnotation");case 55:return this.next(),this.finishNode(i,"ExistsTypeAnnotation");case 87:return this.flowParseTypeofType();default:if(Xa(this.state.type)){let l=Tr(this.state.type);return this.next(),super.createIdentifier(i,l)}else if(Ie(this.state.type))return this.isContextual(129)?this.flowParseInterfaceType():this.flowIdentToTypeAnnotation(r,i,this.parseIdentifier())}this.unexpected()}flowParsePostfixType(){let r=this.state.startLoc,i=this.flowParsePrimaryType(),s=!1;for(;(this.match(0)||this.match(18))&&!this.canInsertSemicolon();){let n=this.startNodeAt(r),a=this.eat(18);s=s||a,this.expect(0),!a&&this.match(3)?(n.elementType=i,this.next(),i=this.finishNode(n,"ArrayTypeAnnotation")):(n.objectType=i,n.indexType=this.flowParseType(),this.expect(3),s?(n.optional=a,i=this.finishNode(n,"OptionalIndexedAccessType")):i=this.finishNode(n,"IndexedAccessType"))}return i}flowParsePrefixType(){let r=this.startNode();return this.eat(17)?(r.typeAnnotation=this.flowParsePrefixType(),this.finishNode(r,"NullableTypeAnnotation")):this.flowParsePostfixType()}flowParseAnonFunctionWithoutParens(){let r=this.flowParsePrefixType();if(!this.state.noAnonFunctionType&&this.eat(19)){let i=this.startNodeAt(r.loc.start);return i.params=[this.reinterpretTypeAsFunctionTypeParam(r)],i.rest=null,i.this=null,i.returnType=this.flowParseType(),i.typeParameters=null,this.finishNode(i,"FunctionTypeAnnotation")}return r}flowParseIntersectionType(){let r=this.startNode();this.eat(45);let i=this.flowParseAnonFunctionWithoutParens();for(r.types=[i];this.eat(45);)r.types.push(this.flowParseAnonFunctionWithoutParens());return r.types.length===1?i:this.finishNode(r,"IntersectionTypeAnnotation")}flowParseUnionType(){let r=this.startNode();this.eat(43);let i=this.flowParseIntersectionType();for(r.types=[i];this.eat(43);)r.types.push(this.flowParseIntersectionType());return r.types.length===1?i:this.finishNode(r,"UnionTypeAnnotation")}flowParseType(){let r=this.state.inType;this.state.inType=!0;let i=this.flowParseUnionType();return this.state.inType=r,i}flowParseTypeOrImplicitInstantiation(){if(this.state.type===132&&this.state.value==="_"){let r=this.state.startLoc,i=this.parseIdentifier();return this.flowParseGenericType(r,i)}else return this.flowParseType()}flowParseTypeAnnotation(){let r=this.startNode();return r.typeAnnotation=this.flowParseTypeInitialiser(),this.finishNode(r,"TypeAnnotation")}flowParseTypeAnnotatableIdentifier(r){let i=r?this.parseIdentifier():this.flowParseRestrictedIdentifier();return this.match(14)&&(i.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(i)),i}typeCastToParameter(r){return r.expression.typeAnnotation=r.typeAnnotation,this.resetEndLocation(r.expression,r.typeAnnotation.loc.end),r.expression}flowParseVariance(){let r=null;return this.match(53)?(r=this.startNode(),this.state.value==="+"?r.kind="plus":r.kind="minus",this.next(),this.finishNode(r,"Variance")):r}parseFunctionBody(r,i,s=!1){if(i){this.forwardNoArrowParamsConversionAt(r,()=>super.parseFunctionBody(r,!0,s));return}super.parseFunctionBody(r,!1,s)}parseFunctionBodyAndFinish(r,i,s=!1){if(this.match(14)){let n=this.startNode();[n.typeAnnotation,r.predicate]=this.flowParseTypeAndPredicateInitialiser(),r.returnType=n.typeAnnotation?this.finishNode(n,"TypeAnnotation"):null}return super.parseFunctionBodyAndFinish(r,i,s)}parseStatementLike(r){if(this.state.strict&&this.isContextual(129)){let s=this.lookahead();if(jt(s.type)){let n=this.startNode();return this.next(),this.flowParseInterface(n)}}else if(this.shouldParseEnums()&&this.isContextual(126)){let s=this.startNode();return this.next(),this.flowParseEnumDeclaration(s)}let i=super.parseStatementLike(r);return this.flowPragma===void 0&&!this.isValidDirective(i)&&(this.flowPragma=null),i}parseExpressionStatement(r,i,s){if(i.type==="Identifier"){if(i.name==="declare"){if(this.match(80)||Ie(this.state.type)||this.match(68)||this.match(74)||this.match(82))return this.flowParseDeclare(r)}else if(Ie(this.state.type)){if(i.name==="interface")return this.flowParseInterface(r);if(i.name==="type")return this.flowParseTypeAlias(r);if(i.name==="opaque")return this.flowParseOpaqueType(r,!1)}}return super.parseExpressionStatement(r,i,s)}shouldParseExportDeclaration(){let{type:r}=this.state;return up(r)||this.shouldParseEnums()&&r===126?!this.state.containsEsc:super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){let{type:r}=this.state;return up(r)||this.shouldParseEnums()&&r===126?this.state.containsEsc:super.isExportDefaultSpecifier()}parseExportDefaultExpression(){if(this.shouldParseEnums()&&this.isContextual(126)){let r=this.startNode();return this.next(),this.flowParseEnumDeclaration(r)}return super.parseExportDefaultExpression()}parseConditional(r,i,s){if(!this.match(17))return r;if(this.state.maybeInArrowParameters){let P=this.lookaheadCharCode();if(P===44||P===61||P===58||P===41)return this.setOptionalParametersError(s),r}this.expect(17);let n=this.state.clone(),a=this.state.noArrowAt,o=this.startNodeAt(i),{consequent:l,failed:u}=this.tryParseConditionalConsequent(),[c,T]=this.getArrowLikeExpressions(l);if(u||T.length>0){let P=[...a];if(T.length>0){this.state=n,this.state.noArrowAt=P;for(let E=0;E<T.length;E++)P.push(T[E].start);({consequent:l,failed:u}=this.tryParseConditionalConsequent()),[c,T]=this.getArrowLikeExpressions(l)}u&&c.length>1&&this.raise(re.AmbiguousConditionalArrow,n.startLoc),u&&c.length===1&&(this.state=n,P.push(c[0].start),this.state.noArrowAt=P,{consequent:l,failed:u}=this.tryParseConditionalConsequent())}return this.getArrowLikeExpressions(l,!0),this.state.noArrowAt=a,this.expect(14),o.test=r,o.consequent=l,o.alternate=this.forwardNoArrowParamsConversionAt(o,()=>this.parseMaybeAssign(void 0,void 0)),this.finishNode(o,"ConditionalExpression")}tryParseConditionalConsequent(){this.state.noArrowParamsConversionAt.push(this.state.start);let r=this.parseMaybeAssignAllowIn(),i=!this.match(14);return this.state.noArrowParamsConversionAt.pop(),{consequent:r,failed:i}}getArrowLikeExpressions(r,i){let s=[r],n=[];for(;s.length!==0;){let a=s.pop();a.type==="ArrowFunctionExpression"&&a.body.type!=="BlockStatement"?(a.typeParameters||!a.returnType?this.finishArrowValidation(a):n.push(a),s.push(a.body)):a.type==="ConditionalExpression"&&(s.push(a.consequent),s.push(a.alternate))}return i?(n.forEach(a=>this.finishArrowValidation(a)),[n,[]]):mg(n,a=>a.params.every(o=>this.isAssignable(o,!0)))}finishArrowValidation(r){var i;this.toAssignableList(r.params,(i=r.extra)==null?void 0:i.trailingCommaLoc,!1),this.scope.enter(6),super.checkParams(r,!1,!0),this.scope.exit()}forwardNoArrowParamsConversionAt(r,i){let s;return this.state.noArrowParamsConversionAt.includes(r.start)?(this.state.noArrowParamsConversionAt.push(this.state.start),s=i(),this.state.noArrowParamsConversionAt.pop()):s=i(),s}parseParenItem(r,i){let s=super.parseParenItem(r,i);if(this.eat(17)&&(s.optional=!0,this.resetEndLocation(r)),this.match(14)){let n=this.startNodeAt(i);return n.expression=s,n.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(n,"TypeCastExpression")}return s}assertModuleNodeAllowed(r){r.type==="ImportDeclaration"&&(r.importKind==="type"||r.importKind==="typeof")||r.type==="ExportNamedDeclaration"&&r.exportKind==="type"||r.type==="ExportAllDeclaration"&&r.exportKind==="type"||super.assertModuleNodeAllowed(r)}parseExportDeclaration(r){if(this.isContextual(130)){r.exportKind="type";let i=this.startNode();return this.next(),this.match(5)?(r.specifiers=this.parseExportSpecifiers(!0),super.parseExportFrom(r),null):this.flowParseTypeAlias(i)}else if(this.isContextual(131)){r.exportKind="type";let i=this.startNode();return this.next(),this.flowParseOpaqueType(i,!1)}else if(this.isContextual(129)){r.exportKind="type";let i=this.startNode();return this.next(),this.flowParseInterface(i)}else if(this.shouldParseEnums()&&this.isContextual(126)){r.exportKind="value";let i=this.startNode();return this.next(),this.flowParseEnumDeclaration(i)}else return super.parseExportDeclaration(r)}eatExportStar(r){return super.eatExportStar(r)?!0:this.isContextual(130)&&this.lookahead().type===55?(r.exportKind="type",this.next(),this.next(),!0):!1}maybeParseExportNamespaceSpecifier(r){let{startLoc:i}=this.state,s=super.maybeParseExportNamespaceSpecifier(r);return s&&r.exportKind==="type"&&this.unexpected(i),s}parseClassId(r,i,s){super.parseClassId(r,i,s),this.match(47)&&(r.typeParameters=this.flowParseTypeParameterDeclaration())}parseClassMember(r,i,s){let{startLoc:n}=this.state;if(this.isContextual(125)){if(super.parseClassMemberFromModifier(r,i))return;i.declare=!0}super.parseClassMember(r,i,s),i.declare&&(i.type!=="ClassProperty"&&i.type!=="ClassPrivateProperty"&&i.type!=="PropertyDefinition"?this.raise(re.DeclareClassElement,n):i.value&&this.raise(re.DeclareClassFieldInitializer,i.value))}isIterator(r){return r==="iterator"||r==="asyncIterator"}readIterator(){let r=super.readWord1(),i="@@"+r;(!this.isIterator(r)||!this.state.inType)&&this.raise(S.InvalidIdentifier,this.state.curPosition(),{identifierName:i}),this.finishToken(132,i)}getTokenFromCode(r){let i=this.input.charCodeAt(this.state.pos+1);r===123&&i===124?this.finishOp(6,2):this.state.inType&&(r===62||r===60)?this.finishOp(r===62?48:47,1):this.state.inType&&r===63?i===46?this.finishOp(18,2):this.finishOp(17,1):z0(r,i,this.input.charCodeAt(this.state.pos+2))?(this.state.pos+=2,this.readIterator()):super.getTokenFromCode(r)}isAssignable(r,i){return r.type==="TypeCastExpression"?this.isAssignable(r.expression,i):super.isAssignable(r,i)}toAssignable(r,i=!1){!i&&r.type==="AssignmentExpression"&&r.left.type==="TypeCastExpression"&&(r.left=this.typeCastToParameter(r.left)),super.toAssignable(r,i)}toAssignableList(r,i,s){for(let n=0;n<r.length;n++){let a=r[n];a?.type==="TypeCastExpression"&&(r[n]=this.typeCastToParameter(a))}super.toAssignableList(r,i,s)}toReferencedList(r,i){for(let n=0;n<r.length;n++){var s;let a=r[n];a&&a.type==="TypeCastExpression"&&!((s=a.extra)!=null&&s.parenthesized)&&(r.length>1||!i)&&this.raise(re.TypeCastInPattern,a.typeAnnotation)}return r}parseArrayLike(r,i,s,n){let a=super.parseArrayLike(r,i,s,n);return i&&!this.state.maybeInArrowParameters&&this.toReferencedList(a.elements),a}isValidLVal(r,i,s){return r==="TypeCastExpression"||super.isValidLVal(r,i,s)}parseClassProperty(r){return this.match(14)&&(r.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassProperty(r)}parseClassPrivateProperty(r){return this.match(14)&&(r.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassPrivateProperty(r)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(14)||super.isClassProperty()}isNonstaticConstructor(r){return!this.match(14)&&super.isNonstaticConstructor(r)}pushClassMethod(r,i,s,n,a,o){if(i.variance&&this.unexpected(i.variance.loc.start),delete i.variance,this.match(47)&&(i.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassMethod(r,i,s,n,a,o),i.params&&a){let l=i.params;l.length>0&&this.isThisParam(l[0])&&this.raise(re.ThisParamBannedInConstructor,i)}else if(i.type==="MethodDefinition"&&a&&i.value.params){let l=i.value.params;l.length>0&&this.isThisParam(l[0])&&this.raise(re.ThisParamBannedInConstructor,i)}}pushClassPrivateMethod(r,i,s,n){i.variance&&this.unexpected(i.variance.loc.start),delete i.variance,this.match(47)&&(i.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassPrivateMethod(r,i,s,n)}parseClassSuper(r){if(super.parseClassSuper(r),r.superClass&&this.match(47)&&(r.superTypeParameters=this.flowParseTypeParameterInstantiation()),this.isContextual(113)){this.next();let i=r.implements=[];do{let s=this.startNode();s.id=this.flowParseRestrictedIdentifier(!0),this.match(47)?s.typeParameters=this.flowParseTypeParameterInstantiation():s.typeParameters=null,i.push(this.finishNode(s,"ClassImplements"))}while(this.eat(12))}}checkGetterSetterParams(r){super.checkGetterSetterParams(r);let i=this.getObjectOrClassMethodParams(r);if(i.length>0){let s=i[0];this.isThisParam(s)&&r.kind==="get"?this.raise(re.GetterMayNotHaveThisParam,s):this.isThisParam(s)&&this.raise(re.SetterMayNotHaveThisParam,s)}}parsePropertyNamePrefixOperator(r){r.variance=this.flowParseVariance()}parseObjPropValue(r,i,s,n,a,o,l){r.variance&&this.unexpected(r.variance.loc.start),delete r.variance;let u;this.match(47)&&!o&&(u=this.flowParseTypeParameterDeclaration(),this.match(10)||this.unexpected());let c=super.parseObjPropValue(r,i,s,n,a,o,l);return u&&((c.value||c).typeParameters=u),c}parseAssignableListItemTypes(r){return this.eat(17)&&(r.type!=="Identifier"&&this.raise(re.PatternIsOptional,r),this.isThisParam(r)&&this.raise(re.ThisParamMayNotBeOptional,r),r.optional=!0),this.match(14)?r.typeAnnotation=this.flowParseTypeAnnotation():this.isThisParam(r)&&this.raise(re.ThisParamAnnotationRequired,r),this.match(29)&&this.isThisParam(r)&&this.raise(re.ThisParamNoDefault,r),this.resetEndLocation(r),r}parseMaybeDefault(r,i){let s=super.parseMaybeDefault(r,i);return s.type==="AssignmentPattern"&&s.typeAnnotation&&s.right.start<s.typeAnnotation.start&&this.raise(re.TypeBeforeInitializer,s.typeAnnotation),s}checkImportReflection(r){super.checkImportReflection(r),r.module&&r.importKind!=="value"&&this.raise(re.ImportReflectionHasImportType,r.specifiers[0].loc.start)}parseImportSpecifierLocal(r,i,s){i.local=hp(r)?this.flowParseRestrictedIdentifier(!0,!0):this.parseIdentifier(),r.specifiers.push(this.finishImportSpecifier(i,s))}isPotentialImportPhase(r){if(super.isPotentialImportPhase(r))return!0;if(this.isContextual(130)){if(!r)return!0;let i=this.lookaheadCharCode();return i===123||i===42}return!r&&this.isContextual(87)}applyImportPhase(r,i,s,n){if(super.applyImportPhase(r,i,s,n),i){if(!s&&this.match(65))return;r.exportKind=s==="type"?s:"value"}else s==="type"&&this.match(55)&&this.unexpected(),r.importKind=s==="type"||s==="typeof"?s:"value"}parseImportSpecifier(r,i,s,n,a){let o=r.imported,l=null;o.type==="Identifier"&&(o.name==="type"?l="type":o.name==="typeof"&&(l="typeof"));let u=!1;if(this.isContextual(93)&&!this.isLookaheadContextual("as")){let T=this.parseIdentifier(!0);l!==null&&!jt(this.state.type)?(r.imported=T,r.importKind=l,r.local=nr(T)):(r.imported=o,r.importKind=null,r.local=this.parseIdentifier())}else{if(l!==null&&jt(this.state.type))r.imported=this.parseIdentifier(!0),r.importKind=l;else{if(i)throw this.raise(S.ImportBindingIsString,r,{importName:o.value});r.imported=o,r.importKind=null}this.eatContextual(93)?r.local=this.parseIdentifier():(u=!0,r.local=nr(r.imported))}let c=hp(r);return s&&c&&this.raise(re.ImportTypeShorthandOnlyInPureImport,r),(s||c)&&this.checkReservedType(r.local.name,r.local.loc.start,!0),u&&!s&&!c&&this.checkReservedWord(r.local.name,r.loc.start,!0,!0),this.finishImportSpecifier(r,"ImportSpecifier")}parseBindingAtom(){switch(this.state.type){case 78:return this.parseIdentifier(!0);default:return super.parseBindingAtom()}}parseFunctionParams(r,i){let s=r.kind;s!=="get"&&s!=="set"&&this.match(47)&&(r.typeParameters=this.flowParseTypeParameterDeclaration()),super.parseFunctionParams(r,i)}parseVarId(r,i){super.parseVarId(r,i),this.match(14)&&(r.id.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(r.id))}parseAsyncArrowFromCallExpression(r,i){if(this.match(14)){let s=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0,r.returnType=this.flowParseTypeAnnotation(),this.state.noAnonFunctionType=s}return super.parseAsyncArrowFromCallExpression(r,i)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}parseMaybeAssign(r,i){var s;let n=null,a;if(this.hasPlugin("jsx")&&(this.match(142)||this.match(47))){if(n=this.state.clone(),a=this.tryParse(()=>super.parseMaybeAssign(r,i),n),!a.error)return a.node;let{context:u}=this.state,c=u[u.length-1];(c===ke.j_oTag||c===ke.j_expr)&&u.pop()}if((s=a)!=null&&s.error||this.match(47)){var o,l;n=n||this.state.clone();let u,c=this.tryParse(P=>{var E;u=this.flowParseTypeParameterDeclaration();let v=this.forwardNoArrowParamsConversionAt(u,()=>{let _=super.parseMaybeAssign(r,i);return this.resetStartLocationFromNode(_,u),_});(E=v.extra)!=null&&E.parenthesized&&P();let D=this.maybeUnwrapTypeCastExpression(v);return D.type!=="ArrowFunctionExpression"&&P(),D.typeParameters=u,this.resetStartLocationFromNode(D,u),v},n),T=null;if(c.node&&this.maybeUnwrapTypeCastExpression(c.node).type==="ArrowFunctionExpression"){if(!c.error&&!c.aborted)return c.node.async&&this.raise(re.UnexpectedTypeParameterBeforeAsyncArrowFunction,u),c.node;T=c.node}if((o=a)!=null&&o.node)return this.state=a.failState,a.node;if(T)return this.state=c.failState,T;throw(l=a)!=null&&l.thrown?a.error:c.thrown?c.error:this.raise(re.UnexpectedTokenAfterTypeParameter,u)}return super.parseMaybeAssign(r,i)}parseArrow(r){if(this.match(14)){let i=this.tryParse(()=>{let s=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0;let n=this.startNode();return[n.typeAnnotation,r.predicate]=this.flowParseTypeAndPredicateInitialiser(),this.state.noAnonFunctionType=s,this.canInsertSemicolon()&&this.unexpected(),this.match(19)||this.unexpected(),n});if(i.thrown)return null;i.error&&(this.state=i.failState),r.returnType=i.node.typeAnnotation?this.finishNode(i.node,"TypeAnnotation"):null}return super.parseArrow(r)}shouldParseArrow(r){return this.match(14)||super.shouldParseArrow(r)}setArrowFunctionParameters(r,i){this.state.noArrowParamsConversionAt.includes(r.start)?r.params=i:super.setArrowFunctionParameters(r,i)}checkParams(r,i,s,n=!0){if(!(s&&this.state.noArrowParamsConversionAt.includes(r.start))){for(let a=0;a<r.params.length;a++)this.isThisParam(r.params[a])&&a>0&&this.raise(re.ThisParamMustBeFirst,r.params[a]);super.checkParams(r,i,s,n)}}parseParenAndDistinguishExpression(r){return super.parseParenAndDistinguishExpression(r&&!this.state.noArrowAt.includes(this.state.start))}parseSubscripts(r,i,s){if(r.type==="Identifier"&&r.name==="async"&&this.state.noArrowAt.includes(i.index)){this.next();let n=this.startNodeAt(i);n.callee=r,n.arguments=super.parseCallExpressionArguments(11,!1),r=this.finishNode(n,"CallExpression")}else if(r.type==="Identifier"&&r.name==="async"&&this.match(47)){let n=this.state.clone(),a=this.tryParse(l=>this.parseAsyncArrowWithTypeParameters(i)||l(),n);if(!a.error&&!a.aborted)return a.node;let o=this.tryParse(()=>super.parseSubscripts(r,i,s),n);if(o.node&&!o.error)return o.node;if(a.node)return this.state=a.failState,a.node;if(o.node)return this.state=o.failState,o.node;throw a.error||o.error}return super.parseSubscripts(r,i,s)}parseSubscript(r,i,s,n){if(this.match(18)&&this.isLookaheadToken_lt()){if(n.optionalChainMember=!0,s)return n.stop=!0,r;this.next();let a=this.startNodeAt(i);return a.callee=r,a.typeArguments=this.flowParseTypeParameterInstantiation(),this.expect(10),a.arguments=this.parseCallExpressionArguments(11,!1),a.optional=!0,this.finishCallExpression(a,!0)}else if(!s&&this.shouldParseTypes()&&this.match(47)){let a=this.startNodeAt(i);a.callee=r;let o=this.tryParse(()=>(a.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew(),this.expect(10),a.arguments=super.parseCallExpressionArguments(11,!1),n.optionalChainMember&&(a.optional=!1),this.finishCallExpression(a,n.optionalChainMember)));if(o.node)return o.error&&(this.state=o.failState),o.node}return super.parseSubscript(r,i,s,n)}parseNewCallee(r){super.parseNewCallee(r);let i=null;this.shouldParseTypes()&&this.match(47)&&(i=this.tryParse(()=>this.flowParseTypeParameterInstantiationCallOrNew()).node),r.typeArguments=i}parseAsyncArrowWithTypeParameters(r){let i=this.startNodeAt(r);if(this.parseFunctionParams(i,!1),!!this.parseArrow(i))return super.parseArrowExpression(i,void 0,!0)}readToken_mult_modulo(r){let i=this.input.charCodeAt(this.state.pos+1);if(r===42&&i===47&&this.state.hasFlowComment){this.state.hasFlowComment=!1,this.state.pos+=2,this.nextToken();return}super.readToken_mult_modulo(r)}readToken_pipe_amp(r){let i=this.input.charCodeAt(this.state.pos+1);if(r===124&&i===125){this.finishOp(9,2);return}super.readToken_pipe_amp(r)}parseTopLevel(r,i){let s=super.parseTopLevel(r,i);return this.state.hasFlowComment&&this.raise(re.UnterminatedFlowComment,this.state.curPosition()),s}skipBlockComment(){if(this.hasPlugin("flowComments")&&this.skipFlowComment()){if(this.state.hasFlowComment)throw this.raise(re.NestedFlowComment,this.state.startLoc);this.hasFlowCommentCompletion();let r=this.skipFlowComment();r&&(this.state.pos+=r,this.state.hasFlowComment=!0);return}return super.skipBlockComment(this.state.hasFlowComment?"*-/":"*/")}skipFlowComment(){let{pos:r}=this.state,i=2;for(;[32,9].includes(this.input.charCodeAt(r+i));)i++;let s=this.input.charCodeAt(i+r),n=this.input.charCodeAt(i+r+1);return s===58&&n===58?i+2:this.input.slice(i+r,i+r+12)==="flow-include"?i+12:s===58&&n!==58?i:!1}hasFlowCommentCompletion(){if(this.input.indexOf("*/",this.state.pos)===-1)throw this.raise(S.UnterminatedComment,this.state.curPosition())}flowEnumErrorBooleanMemberNotInitialized(r,{enumName:i,memberName:s}){this.raise(re.EnumBooleanMemberNotInitialized,r,{memberName:s,enumName:i})}flowEnumErrorInvalidMemberInitializer(r,i){return this.raise(i.explicitType?i.explicitType==="symbol"?re.EnumInvalidMemberInitializerSymbolType:re.EnumInvalidMemberInitializerPrimaryType:re.EnumInvalidMemberInitializerUnknownType,r,i)}flowEnumErrorNumberMemberNotInitialized(r,i){this.raise(re.EnumNumberMemberNotInitialized,r,i)}flowEnumErrorStringMemberInconsistentlyInitialized(r,i){this.raise(re.EnumStringMemberInconsistentlyInitialized,r,i)}flowEnumMemberInit(){let r=this.state.startLoc,i=()=>this.match(12)||this.match(8);switch(this.state.type){case 134:{let s=this.parseNumericLiteral(this.state.value);return i()?{type:"number",loc:s.loc.start,value:s}:{type:"invalid",loc:r}}case 133:{let s=this.parseStringLiteral(this.state.value);return i()?{type:"string",loc:s.loc.start,value:s}:{type:"invalid",loc:r}}case 85:case 86:{let s=this.parseBooleanLiteral(this.match(85));return i()?{type:"boolean",loc:s.loc.start,value:s}:{type:"invalid",loc:r}}default:return{type:"invalid",loc:r}}}flowEnumMemberRaw(){let r=this.state.startLoc,i=this.parseIdentifier(!0),s=this.eat(29)?this.flowEnumMemberInit():{type:"none",loc:r};return{id:i,init:s}}flowEnumCheckExplicitTypeMismatch(r,i,s){let{explicitType:n}=i;n!==null&&n!==s&&this.flowEnumErrorInvalidMemberInitializer(r,i)}flowEnumMembers({enumName:r,explicitType:i}){let s=new Set,n={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]},a=!1;for(;!this.match(8);){if(this.eat(21)){a=!0;break}let o=this.startNode(),{id:l,init:u}=this.flowEnumMemberRaw(),c=l.name;if(c==="")continue;/^[a-z]/.test(c)&&this.raise(re.EnumInvalidMemberName,l,{memberName:c,suggestion:c[0].toUpperCase()+c.slice(1),enumName:r}),s.has(c)&&this.raise(re.EnumDuplicateMemberName,l,{memberName:c,enumName:r}),s.add(c);let T={enumName:r,explicitType:i,memberName:c};switch(o.id=l,u.type){case"boolean":{this.flowEnumCheckExplicitTypeMismatch(u.loc,T,"boolean"),o.init=u.value,n.booleanMembers.push(this.finishNode(o,"EnumBooleanMember"));break}case"number":{this.flowEnumCheckExplicitTypeMismatch(u.loc,T,"number"),o.init=u.value,n.numberMembers.push(this.finishNode(o,"EnumNumberMember"));break}case"string":{this.flowEnumCheckExplicitTypeMismatch(u.loc,T,"string"),o.init=u.value,n.stringMembers.push(this.finishNode(o,"EnumStringMember"));break}case"invalid":throw this.flowEnumErrorInvalidMemberInitializer(u.loc,T);case"none":switch(i){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(u.loc,T);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(u.loc,T);break;default:n.defaultedMembers.push(this.finishNode(o,"EnumDefaultedMember"))}}this.match(8)||this.expect(12)}return{members:n,hasUnknownMembers:a}}flowEnumStringMembers(r,i,{enumName:s}){if(r.length===0)return i;if(i.length===0)return r;if(i.length>r.length){for(let n of r)this.flowEnumErrorStringMemberInconsistentlyInitialized(n,{enumName:s});return i}else{for(let n of i)this.flowEnumErrorStringMemberInconsistentlyInitialized(n,{enumName:s});return r}}flowEnumParseExplicitType({enumName:r}){if(!this.eatContextual(102))return null;if(!Ie(this.state.type))throw this.raise(re.EnumInvalidExplicitTypeUnknownSupplied,this.state.startLoc,{enumName:r});let{value:i}=this.state;return this.next(),i!=="boolean"&&i!=="number"&&i!=="string"&&i!=="symbol"&&this.raise(re.EnumInvalidExplicitType,this.state.startLoc,{enumName:r,invalidEnumType:i}),i}flowEnumBody(r,i){let s=i.name,n=i.loc.start,a=this.flowEnumParseExplicitType({enumName:s});this.expect(5);let{members:o,hasUnknownMembers:l}=this.flowEnumMembers({enumName:s,explicitType:a});switch(r.hasUnknownMembers=l,a){case"boolean":return r.explicitType=!0,r.members=o.booleanMembers,this.expect(8),this.finishNode(r,"EnumBooleanBody");case"number":return r.explicitType=!0,r.members=o.numberMembers,this.expect(8),this.finishNode(r,"EnumNumberBody");case"string":return r.explicitType=!0,r.members=this.flowEnumStringMembers(o.stringMembers,o.defaultedMembers,{enumName:s}),this.expect(8),this.finishNode(r,"EnumStringBody");case"symbol":return r.members=o.defaultedMembers,this.expect(8),this.finishNode(r,"EnumSymbolBody");default:{let u=()=>(r.members=[],this.expect(8),this.finishNode(r,"EnumStringBody"));r.explicitType=!1;let c=o.booleanMembers.length,T=o.numberMembers.length,P=o.stringMembers.length,E=o.defaultedMembers.length;if(!c&&!T&&!P&&!E)return u();if(!c&&!T)return r.members=this.flowEnumStringMembers(o.stringMembers,o.defaultedMembers,{enumName:s}),this.expect(8),this.finishNode(r,"EnumStringBody");if(!T&&!P&&c>=E){for(let v of o.defaultedMembers)this.flowEnumErrorBooleanMemberNotInitialized(v.loc.start,{enumName:s,memberName:v.id.name});return r.members=o.booleanMembers,this.expect(8),this.finishNode(r,"EnumBooleanBody")}else if(!c&&!P&&T>=E){for(let v of o.defaultedMembers)this.flowEnumErrorNumberMemberNotInitialized(v.loc.start,{enumName:s,memberName:v.id.name});return r.members=o.numberMembers,this.expect(8),this.finishNode(r,"EnumNumberBody")}else return this.raise(re.EnumInconsistentMemberValues,n,{enumName:s}),u()}}}flowParseEnumDeclaration(r){let i=this.parseIdentifier();return r.id=i,r.body=this.flowEnumBody(this.startNode(),i),this.finishNode(r,"EnumDeclaration")}isLookaheadToken_lt(){let r=this.nextTokenStart();if(this.input.charCodeAt(r)===60){let i=this.input.charCodeAt(r+1);return i!==60&&i!==61}return!1}maybeUnwrapTypeCastExpression(r){return r.type==="TypeCastExpression"?r.expression:r}},gg={__proto__:null,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"},Mr=sr`jsx`({AttributeIsEmpty:"JSX attributes must only be assigned a non-empty expression.",MissingClosingTagElement:({openingTagName:e})=>`Expected corresponding JSX closing tag for <${e}>.`,MissingClosingTagFragment:"Expected corresponding JSX closing tag for <>.",UnexpectedSequenceExpression:"Sequence expressions cannot be directly nested inside JSX. Did you mean to wrap it in parentheses (...)?",UnexpectedToken:({unexpected:e,HTMLEntity:t})=>`Unexpected token \`${e}\`. Did you mean \`${t}\` or \`{'${e}'}\`?`,UnsupportedJsxValue:"JSX value should be either an expression or a quoted JSX text.",UnterminatedJsxContent:"Unterminated JSX contents.",UnwrappedAdjacentJSXElements:"Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...</>?"});function yr(e){return e?e.type==="JSXOpeningFragment"||e.type==="JSXClosingFragment":!1}function ii(e){if(e.type==="JSXIdentifier")return e.name;if(e.type==="JSXNamespacedName")return e.namespace.name+":"+e.name.name;if(e.type==="JSXMemberExpression")return ii(e.object)+"."+ii(e.property);throw new Error("Node had unexpected type: "+e.type)}var bg=e=>class extends e{jsxReadToken(){let r="",i=this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(Mr.UnterminatedJsxContent,this.state.startLoc);let s=this.input.charCodeAt(this.state.pos);switch(s){case 60:case 123:if(this.state.pos===this.state.start){s===60&&this.state.canStartJSXElement?(++this.state.pos,this.finishToken(142)):super.getTokenFromCode(s);return}r+=this.input.slice(i,this.state.pos),this.finishToken(141,r);return;case 38:r+=this.input.slice(i,this.state.pos),r+=this.jsxReadEntity(),i=this.state.pos;break;case 62:case 125:default:ni(s)?(r+=this.input.slice(i,this.state.pos),r+=this.jsxReadNewLine(!0),i=this.state.pos):++this.state.pos}}}jsxReadNewLine(r){let i=this.input.charCodeAt(this.state.pos),s;return++this.state.pos,i===13&&this.input.charCodeAt(this.state.pos)===10?(++this.state.pos,s=r?`
|
|
8
|
-
`:`\r
|
|
9
|
-
`):s=String.fromCharCode(i),++this.state.curLine,this.state.lineStart=this.state.pos,s}jsxReadString(r){let i="",s=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(S.UnterminatedString,this.state.startLoc);let n=this.input.charCodeAt(this.state.pos);if(n===r)break;n===38?(i+=this.input.slice(s,this.state.pos),i+=this.jsxReadEntity(),s=this.state.pos):ni(n)?(i+=this.input.slice(s,this.state.pos),i+=this.jsxReadNewLine(!1),s=this.state.pos):++this.state.pos}i+=this.input.slice(s,this.state.pos++),this.finishToken(133,i)}jsxReadEntity(){let r=++this.state.pos;if(this.codePointAtPos(this.state.pos)===35){++this.state.pos;let i=10;this.codePointAtPos(this.state.pos)===120&&(i=16,++this.state.pos);let s=this.readInt(i,void 0,!1,"bail");if(s!==null&&this.codePointAtPos(this.state.pos)===59)return++this.state.pos,String.fromCodePoint(s)}else{let i=0,s=!1;for(;i++<10&&this.state.pos<this.length&&!(s=this.codePointAtPos(this.state.pos)===59);)++this.state.pos;if(s){let n=this.input.slice(r,this.state.pos),a=gg[n];if(++this.state.pos,a)return a}}return this.state.pos=r,"&"}jsxReadWord(){let r,i=this.state.pos;do r=this.input.charCodeAt(++this.state.pos);while(si(r)||r===45);this.finishToken(140,this.input.slice(i,this.state.pos))}jsxParseIdentifier(){let r=this.startNode();return this.match(140)?r.name=this.state.value:Xa(this.state.type)?r.name=Tr(this.state.type):this.unexpected(),this.next(),this.finishNode(r,"JSXIdentifier")}jsxParseNamespacedName(){let r=this.state.startLoc,i=this.jsxParseIdentifier();if(!this.eat(14))return i;let s=this.startNodeAt(r);return s.namespace=i,s.name=this.jsxParseIdentifier(),this.finishNode(s,"JSXNamespacedName")}jsxParseElementName(){let r=this.state.startLoc,i=this.jsxParseNamespacedName();if(i.type==="JSXNamespacedName")return i;for(;this.eat(16);){let s=this.startNodeAt(r);s.object=i,s.property=this.jsxParseIdentifier(),i=this.finishNode(s,"JSXMemberExpression")}return i}jsxParseAttributeValue(){let r;switch(this.state.type){case 5:return r=this.startNode(),this.setContext(ke.brace),this.next(),r=this.jsxParseExpressionContainer(r,ke.j_oTag),r.expression.type==="JSXEmptyExpression"&&this.raise(Mr.AttributeIsEmpty,r),r;case 142:case 133:return this.parseExprAtom();default:throw this.raise(Mr.UnsupportedJsxValue,this.state.startLoc)}}jsxParseEmptyExpression(){let r=this.startNodeAt(this.state.lastTokEndLoc);return this.finishNodeAt(r,"JSXEmptyExpression",this.state.startLoc)}jsxParseSpreadChild(r){return this.next(),r.expression=this.parseExpression(),this.setContext(ke.j_expr),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(r,"JSXSpreadChild")}jsxParseExpressionContainer(r,i){if(this.match(8))r.expression=this.jsxParseEmptyExpression();else{let s=this.parseExpression();r.expression=s}return this.setContext(i),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(r,"JSXExpressionContainer")}jsxParseAttribute(){let r=this.startNode();return this.match(5)?(this.setContext(ke.brace),this.next(),this.expect(21),r.argument=this.parseMaybeAssignAllowIn(),this.setContext(ke.j_oTag),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(r,"JSXSpreadAttribute")):(r.name=this.jsxParseNamespacedName(),r.value=this.eat(29)?this.jsxParseAttributeValue():null,this.finishNode(r,"JSXAttribute"))}jsxParseOpeningElementAt(r){let i=this.startNodeAt(r);return this.eat(143)?this.finishNode(i,"JSXOpeningFragment"):(i.name=this.jsxParseElementName(),this.jsxParseOpeningElementAfterName(i))}jsxParseOpeningElementAfterName(r){let i=[];for(;!this.match(56)&&!this.match(143);)i.push(this.jsxParseAttribute());return r.attributes=i,r.selfClosing=this.eat(56),this.expect(143),this.finishNode(r,"JSXOpeningElement")}jsxParseClosingElementAt(r){let i=this.startNodeAt(r);return this.eat(143)?this.finishNode(i,"JSXClosingFragment"):(i.name=this.jsxParseElementName(),this.expect(143),this.finishNode(i,"JSXClosingElement"))}jsxParseElementAt(r){let i=this.startNodeAt(r),s=[],n=this.jsxParseOpeningElementAt(r),a=null;if(!n.selfClosing){e:for(;;)switch(this.state.type){case 142:if(r=this.state.startLoc,this.next(),this.eat(56)){a=this.jsxParseClosingElementAt(r);break e}s.push(this.jsxParseElementAt(r));break;case 141:s.push(this.parseLiteral(this.state.value,"JSXText"));break;case 5:{let o=this.startNode();this.setContext(ke.brace),this.next(),this.match(21)?s.push(this.jsxParseSpreadChild(o)):s.push(this.jsxParseExpressionContainer(o,ke.j_expr));break}default:this.unexpected()}yr(n)&&!yr(a)&&a!==null?this.raise(Mr.MissingClosingTagFragment,a):!yr(n)&&yr(a)?this.raise(Mr.MissingClosingTagElement,a,{openingTagName:ii(n.name)}):!yr(n)&&!yr(a)&&ii(a.name)!==ii(n.name)&&this.raise(Mr.MissingClosingTagElement,a,{openingTagName:ii(n.name)})}if(yr(n)?(i.openingFragment=n,i.closingFragment=a):(i.openingElement=n,i.closingElement=a),i.children=s,this.match(47))throw this.raise(Mr.UnwrappedAdjacentJSXElements,this.state.startLoc);return yr(n)?this.finishNode(i,"JSXFragment"):this.finishNode(i,"JSXElement")}jsxParseElement(){let r=this.state.startLoc;return this.next(),this.jsxParseElementAt(r)}setContext(r){let{context:i}=this.state;i[i.length-1]=r}parseExprAtom(r){return this.match(142)?this.jsxParseElement():this.match(47)&&this.input.charCodeAt(this.state.pos)!==33?(this.replaceToken(142),this.jsxParseElement()):super.parseExprAtom(r)}skipSpace(){this.curContext().preserveSpace||super.skipSpace()}getTokenFromCode(r){let i=this.curContext();if(i===ke.j_expr){this.jsxReadToken();return}if(i===ke.j_oTag||i===ke.j_cTag){if(ir(r)){this.jsxReadWord();return}if(r===62){++this.state.pos,this.finishToken(143);return}if((r===34||r===39)&&i===ke.j_oTag){this.jsxReadString(r);return}}if(r===60&&this.state.canStartJSXElement&&this.input.charCodeAt(this.state.pos+1)!==33){++this.state.pos,this.finishToken(142);return}super.getTokenFromCode(r)}updateContext(r){let{context:i,type:s}=this.state;if(s===56&&r===142)i.splice(-2,2,ke.j_cTag),this.state.canStartJSXElement=!1;else if(s===142)i.push(ke.j_oTag);else if(s===143){let n=i[i.length-1];n===ke.j_oTag&&r===56||n===ke.j_cTag?(i.pop(),this.state.canStartJSXElement=i[i.length-1]===ke.j_expr):(this.setContext(ke.j_expr),this.state.canStartJSXElement=!0)}else this.state.canStartJSXElement=M0(s)}},Ma=class extends Ri{constructor(...t){super(...t),this.tsNames=new Map}},Ba=class extends qi{constructor(...t){super(...t),this.importsStack=[]}createScope(t){return this.importsStack.push(new Set),new Ma(t)}enter(t){t===256&&this.importsStack.push(new Set),super.enter(t)}exit(){let t=super.exit();return t===256&&this.importsStack.pop(),t}hasImport(t,r){let i=this.importsStack.length;if(this.importsStack[i-1].has(t))return!0;if(!r&&i>1){for(let s=0;s<i-1;s++)if(this.importsStack[s].has(t))return!0}return!1}declareName(t,r,i){if(r&4096){this.hasImport(t,!0)&&this.parser.raise(S.VarRedeclaration,i,{identifierName:t}),this.importsStack[this.importsStack.length-1].add(t);return}let s=this.currentScope(),n=s.tsNames.get(t)||0;if(r&1024){this.maybeExportDefined(s,t),s.tsNames.set(t,n|16);return}super.declareName(t,r,i),r&2&&(r&1||(this.checkRedeclarationInScope(s,t,r,i),this.maybeExportDefined(s,t)),n=n|1),r&256&&(n=n|2),r&512&&(n=n|4),r&128&&(n=n|8),n&&s.tsNames.set(t,n)}isRedeclaredInScope(t,r,i){let s=t.tsNames.get(r);if((s&2)>0){if(i&256){let n=!!(i&512),a=(s&4)>0;return n!==a}return!0}return i&128&&(s&8)>0?t.names.get(r)&2?!!(i&1):!1:i&2&&(s&1)>0?!0:super.isRedeclaredInScope(t,r,i)}checkLocalExport(t){let{name:r}=t;if(this.hasImport(r))return;let i=this.scopeStack.length;for(let s=i-1;s>=0;s--){let a=this.scopeStack[s].tsNames.get(r);if((a&1)>0||(a&16)>0)return}super.checkLocalExport(t)}},_p=e=>e.type==="ParenthesizedExpression"?_p(e.expression):e,Fa=class extends La{toAssignable(t,r=!1){var i,s;let n;switch((t.type==="ParenthesizedExpression"||(i=t.extra)!=null&&i.parenthesized)&&(n=_p(t),r?n.type==="Identifier"?this.expressionScope.recordArrowParameterBindingError(S.InvalidParenthesizedAssignment,t):n.type!=="MemberExpression"&&!this.isOptionalMemberExpression(n)&&this.raise(S.InvalidParenthesizedAssignment,t):this.raise(S.InvalidParenthesizedAssignment,t)),t.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":t.type="ObjectPattern";for(let o=0,l=t.properties.length,u=l-1;o<l;o++){var a;let c=t.properties[o],T=o===u;this.toAssignableObjectExpressionProp(c,T,r),T&&c.type==="RestElement"&&(a=t.extra)!=null&&a.trailingCommaLoc&&this.raise(S.RestTrailingComma,t.extra.trailingCommaLoc)}break;case"ObjectProperty":{let{key:o,value:l}=t;this.isPrivateName(o)&&this.classScope.usePrivateName(this.getPrivateNameSV(o),o.loc.start),this.toAssignable(l,r);break}case"SpreadElement":throw new Error("Internal @babel/parser error (this is a bug, please report it). SpreadElement should be converted by .toAssignable's caller.");case"ArrayExpression":t.type="ArrayPattern",this.toAssignableList(t.elements,(s=t.extra)==null?void 0:s.trailingCommaLoc,r);break;case"AssignmentExpression":t.operator!=="="&&this.raise(S.MissingEqInAssignment,t.left.loc.end),t.type="AssignmentPattern",delete t.operator,this.toAssignable(t.left,r);break;case"ParenthesizedExpression":this.toAssignable(n,r);break}}toAssignableObjectExpressionProp(t,r,i){if(t.type==="ObjectMethod")this.raise(t.kind==="get"||t.kind==="set"?S.PatternHasAccessor:S.PatternHasMethod,t.key);else if(t.type==="SpreadElement"){t.type="RestElement";let s=t.argument;this.checkToRestConversion(s,!1),this.toAssignable(s,i),r||this.raise(S.RestTrailingComma,t)}else this.toAssignable(t,i)}toAssignableList(t,r,i){let s=t.length-1;for(let n=0;n<=s;n++){let a=t[n];if(a){if(a.type==="SpreadElement"){a.type="RestElement";let o=a.argument;this.checkToRestConversion(o,!0),this.toAssignable(o,i)}else this.toAssignable(a,i);a.type==="RestElement"&&(n<s?this.raise(S.RestTrailingComma,a):r&&this.raise(S.RestTrailingComma,r))}}}isAssignable(t,r){switch(t.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":return!0;case"ObjectExpression":{let i=t.properties.length-1;return t.properties.every((s,n)=>s.type!=="ObjectMethod"&&(n===i||s.type!=="SpreadElement")&&this.isAssignable(s))}case"ObjectProperty":return this.isAssignable(t.value);case"SpreadElement":return this.isAssignable(t.argument);case"ArrayExpression":return t.elements.every(i=>i===null||this.isAssignable(i));case"AssignmentExpression":return t.operator==="=";case"ParenthesizedExpression":return this.isAssignable(t.expression);case"MemberExpression":case"OptionalMemberExpression":return!r;default:return!1}}toReferencedList(t,r){return t}toReferencedListDeep(t,r){this.toReferencedList(t,r);for(let i of t)i?.type==="ArrayExpression"&&this.toReferencedListDeep(i.elements)}parseSpread(t){let r=this.startNode();return this.next(),r.argument=this.parseMaybeAssignAllowIn(t,void 0),this.finishNode(r,"SpreadElement")}parseRestBinding(){let t=this.startNode();return this.next(),t.argument=this.parseBindingAtom(),this.finishNode(t,"RestElement")}parseBindingAtom(){switch(this.state.type){case 0:{let t=this.startNode();return this.next(),t.elements=this.parseBindingList(3,93,1),this.finishNode(t,"ArrayPattern")}case 5:return this.parseObjectLike(8,!0)}return this.parseIdentifier()}parseBindingList(t,r,i){let s=i&1,n=[],a=!0;for(;!this.eat(t);)if(a?a=!1:this.expect(12),s&&this.match(12))n.push(null);else{if(this.eat(t))break;if(this.match(21)){if(n.push(this.parseAssignableListItemTypes(this.parseRestBinding(),i)),!this.checkCommaAfterRest(r)){this.expect(t);break}}else{let o=[];for(this.match(26)&&this.hasPlugin("decorators")&&this.raise(S.UnsupportedParameterDecorator,this.state.startLoc);this.match(26);)o.push(this.parseDecorator());n.push(this.parseAssignableListItem(i,o))}}return n}parseBindingRestProperty(t){return this.next(),t.argument=this.parseIdentifier(),this.checkCommaAfterRest(125),this.finishNode(t,"RestElement")}parseBindingProperty(){let{type:t,startLoc:r}=this.state;if(t===21)return this.parseBindingRestProperty(this.startNode());let i=this.startNode();return t===138?(this.expectPlugin("destructuringPrivate",r),this.classScope.usePrivateName(this.state.value,r),i.key=this.parsePrivateName()):this.parsePropertyName(i),i.method=!1,this.parseObjPropValue(i,r,!1,!1,!0,!1)}parseAssignableListItem(t,r){let i=this.parseMaybeDefault();this.parseAssignableListItemTypes(i,t);let s=this.parseMaybeDefault(i.loc.start,i);return r.length&&(i.decorators=r),s}parseAssignableListItemTypes(t,r){return t}parseMaybeDefault(t,r){var i,s;if((i=t)!=null||(t=this.state.startLoc),r=(s=r)!=null?s:this.parseBindingAtom(),!this.eat(29))return r;let n=this.startNodeAt(t);return n.left=r,n.right=this.parseMaybeAssignAllowIn(),this.finishNode(n,"AssignmentPattern")}isValidLVal(t,r,i){switch(t){case"AssignmentPattern":return"left";case"RestElement":return"argument";case"ObjectProperty":return"value";case"ParenthesizedExpression":return"expression";case"ArrayPattern":return"elements";case"ObjectPattern":return"properties"}return!1}isOptionalMemberExpression(t){return t.type==="OptionalMemberExpression"}checkLVal(t,r,i=64,s=!1,n=!1,a=!1){var o;let l=t.type;if(this.isObjectMethod(t))return;let u=this.isOptionalMemberExpression(t);if(u||l==="MemberExpression"){u&&(this.expectPlugin("optionalChainingAssign",t.loc.start),r.type!=="AssignmentExpression"&&this.raise(S.InvalidLhsOptionalChaining,t,{ancestor:r})),i!==64&&this.raise(S.InvalidPropertyBindingPattern,t);return}if(l==="Identifier"){this.checkIdentifier(t,i,n);let{name:D}=t;s&&(s.has(D)?this.raise(S.ParamDupe,t):s.add(D));return}let c=this.isValidLVal(l,!(a||(o=t.extra)!=null&&o.parenthesized)&&r.type==="AssignmentExpression",i);if(c===!0)return;if(c===!1){let D=i===64?S.InvalidLhs:S.InvalidLhsBinding;this.raise(D,t,{ancestor:r});return}let T,P;typeof c=="string"?(T=c,P=l==="ParenthesizedExpression"):[T,P]=c;let E=l==="ArrayPattern"||l==="ObjectPattern"?{type:l}:r,v=t[T];if(Array.isArray(v))for(let D of v)D&&this.checkLVal(D,E,i,s,n,P);else v&&this.checkLVal(v,E,i,s,n,P)}checkIdentifier(t,r,i=!1){this.state.strict&&(i?Cp(t.name,this.inModule):vp(t.name))&&(r===64?this.raise(S.StrictEvalArguments,t,{referenceName:t.name}):this.raise(S.StrictEvalArgumentsBinding,t,{bindingName:t.name})),r&8192&&t.name==="let"&&this.raise(S.LetInLexicalBinding,t),r&64||this.declareNameFromIdentifier(t,r)}declareNameFromIdentifier(t,r){this.scope.declareName(t.name,r,t.loc.start)}checkToRestConversion(t,r){switch(t.type){case"ParenthesizedExpression":this.checkToRestConversion(t.expression,r);break;case"Identifier":case"MemberExpression":break;case"ArrayExpression":case"ObjectExpression":if(r)break;default:this.raise(S.InvalidRestAssignmentPattern,t)}}checkCommaAfterRest(t){return this.match(12)?(this.raise(this.lookaheadCharCode()===t?S.RestTrailingComma:S.ElementAfterRest,this.state.startLoc),!0):!1}};function Sg(e){if(e==null)throw new Error(`Unexpected ${e} value.`);return e}function dp(e){if(!e)throw new Error("Assert fail")}var G=sr`typescript`({AbstractMethodHasImplementation:({methodName:e})=>`Method '${e}' cannot have an implementation because it is marked abstract.`,AbstractPropertyHasInitializer:({propertyName:e})=>`Property '${e}' cannot have an initializer because it is marked abstract.`,AccessorCannotBeOptional:"An 'accessor' property cannot be declared optional.",AccessorCannotDeclareThisParameter:"'get' and 'set' accessors cannot declare 'this' parameters.",AccessorCannotHaveTypeParameters:"An accessor cannot have type parameters.",ClassMethodHasDeclare:"Class methods cannot have the 'declare' modifier.",ClassMethodHasReadonly:"Class methods cannot have the 'readonly' modifier.",ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:"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:({kind:e})=>`'declare' is not allowed in ${e}ters.`,DeclareClassFieldHasInitializer:"Initializers are not allowed in ambient contexts.",DeclareFunctionHasImplementation:"An implementation cannot be declared in ambient contexts.",DuplicateAccessibilityModifier:({modifier:e})=>"Accessibility modifier already seen.",DuplicateModifier:({modifier:e})=>`Duplicate modifier: '${e}'.`,EmptyHeritageClauseType:({token:e})=>`'${e}' 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'.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` modifier",IncompatibleModifiers:({modifiers:e})=>`'${e[0]}' modifier cannot be used with '${e[1]}' modifier.`,IndexSignatureHasAbstract:"Index signatures cannot have the 'abstract' modifier.",IndexSignatureHasAccessibility:({modifier:e})=>`Index signatures cannot have an accessibility modifier ('${e}').`,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:({modifier:e})=>`'${e}' modifier cannot appear on a type member.`,InvalidModifierOnTypeParameter:({modifier:e})=>`'${e}' modifier cannot appear on a type parameter.`,InvalidModifierOnTypeParameterPositions:({modifier:e})=>`'${e}' modifier can only appear on a type parameter of a class, interface or type alias.`,InvalidModifiersOrder:({orderedModifiers:e})=>`'${e[0]}' modifier must precede '${e[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.",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:({modifier:e})=>`Private elements cannot have an accessibility modifier ('${e}').`,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.",SetAccessorCannotHaveOptionalParameter:"A 'set' accessor cannot have an optional parameter.",SetAccessorCannotHaveRestParameter:"A 'set' accessor cannot have rest parameter.",SetAccessorCannotHaveReturnType:"A 'set' accessor cannot have a return type annotation.",SingleTypeParameterWithoutTrailingComma:({typeParameterName:e})=>`Single type parameter ${e} should have a trailing comma. Example usage: <${e},>.`,StaticBlockCannotHaveModifier:"Static class blocks cannot have any modifier.",TupleOptionalAfterType:"A labeled tuple optional element must be declared using a question mark after the name and before the colon (`name?: type`), rather than after the type (`name: type?`).",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.",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:({type:e})=>`Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${e}.`});function xg(e){switch(e){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}}function mp(e){return e==="private"||e==="public"||e==="protected"}function Eg(e){return e==="in"||e==="out"}var Pg=e=>class extends e{constructor(...r){super(...r),this.tsParseInOutModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out"],disallowedModifiers:["const","public","private","protected","readonly","declare","abstract","override"],errorTemplate:G.InvalidModifierOnTypeParameter}),this.tsParseConstModifier=this.tsParseModifiers.bind(this,{allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:G.InvalidModifierOnTypeParameterPositions}),this.tsParseInOutConstModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out","const"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:G.InvalidModifierOnTypeParameter})}getScopeHandler(){return Ba}tsIsIdentifier(){return Ie(this.state.type)}tsTokenCanFollowModifier(){return this.match(0)||this.match(5)||this.match(55)||this.match(21)||this.match(138)||this.isLiteralPropertyName()}tsNextTokenOnSameLineAndCanFollowModifier(){return this.next(),this.hasPrecedingLineBreak()?!1:this.tsTokenCanFollowModifier()}tsNextTokenCanFollowModifier(){return this.match(106)?(this.next(),this.tsTokenCanFollowModifier()):this.tsNextTokenOnSameLineAndCanFollowModifier()}tsParseModifier(r,i){if(!Ie(this.state.type)&&this.state.type!==58&&this.state.type!==75)return;let s=this.state.value;if(r.includes(s)){if(i&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return s}}tsParseModifiers({allowedModifiers:r,disallowedModifiers:i,stopOnStartOfClassStaticBlock:s,errorTemplate:n=G.InvalidModifierOnTypeMember},a){let o=(u,c,T,P)=>{c===T&&a[P]&&this.raise(G.InvalidModifiersOrder,u,{orderedModifiers:[T,P]})},l=(u,c,T,P)=>{(a[T]&&c===P||a[P]&&c===T)&&this.raise(G.IncompatibleModifiers,u,{modifiers:[T,P]})};for(;;){let{startLoc:u}=this.state,c=this.tsParseModifier(r.concat(i??[]),s);if(!c)break;mp(c)?a.accessibility?this.raise(G.DuplicateAccessibilityModifier,u,{modifier:c}):(o(u,c,c,"override"),o(u,c,c,"static"),o(u,c,c,"readonly"),a.accessibility=c):Eg(c)?(a[c]&&this.raise(G.DuplicateModifier,u,{modifier:c}),a[c]=!0,o(u,c,"in","out")):(hasOwnProperty.call(a,c)?this.raise(G.DuplicateModifier,u,{modifier:c}):(o(u,c,"static","readonly"),o(u,c,"static","override"),o(u,c,"override","readonly"),o(u,c,"abstract","override"),l(u,c,"declare","override"),l(u,c,"static","abstract")),a[c]=!0),i!=null&&i.includes(c)&&this.raise(n,u,{modifier:c})}}tsIsListTerminator(r){switch(r){case"EnumMembers":case"TypeMembers":return this.match(8);case"HeritageClauseElement":return this.match(5);case"TupleElementTypes":return this.match(3);case"TypeParametersOrArguments":return this.match(48)}}tsParseList(r,i){let s=[];for(;!this.tsIsListTerminator(r);)s.push(i());return s}tsParseDelimitedList(r,i,s){return Sg(this.tsParseDelimitedListWorker(r,i,!0,s))}tsParseDelimitedListWorker(r,i,s,n){let a=[],o=-1;for(;!this.tsIsListTerminator(r);){o=-1;let l=i();if(l==null)return;if(a.push(l),this.eat(12)){o=this.state.lastTokStartLoc.index;continue}if(this.tsIsListTerminator(r))break;s&&this.expect(12);return}return n&&(n.value=o),a}tsParseBracketedList(r,i,s,n,a){n||(s?this.expect(0):this.expect(47));let o=this.tsParseDelimitedList(r,i,a);return s?this.expect(3):this.expect(48),o}tsParseImportType(){let r=this.startNode();return this.expect(83),this.expect(10),this.match(133)||this.raise(G.UnsupportedImportTypeArgument,this.state.startLoc),r.argument=super.parseExprAtom(),(this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions"))&&(r.options=null),this.eat(12)&&(this.expectImportAttributesPlugin(),this.match(11)||(r.options=super.parseMaybeAssignAllowIn(),this.eat(12))),this.expect(11),this.eat(16)&&(r.qualifier=this.tsParseEntityName()),this.match(47)&&(r.typeParameters=this.tsParseTypeArguments()),this.finishNode(r,"TSImportType")}tsParseEntityName(r=!0){let i=this.parseIdentifier(r);for(;this.eat(16);){let s=this.startNodeAtNode(i);s.left=i,s.right=this.parseIdentifier(r),i=this.finishNode(s,"TSQualifiedName")}return i}tsParseTypeReference(){let r=this.startNode();return r.typeName=this.tsParseEntityName(),!this.hasPrecedingLineBreak()&&this.match(47)&&(r.typeParameters=this.tsParseTypeArguments()),this.finishNode(r,"TSTypeReference")}tsParseThisTypePredicate(r){this.next();let i=this.startNodeAtNode(r);return i.parameterName=r,i.typeAnnotation=this.tsParseTypeAnnotation(!1),i.asserts=!1,this.finishNode(i,"TSTypePredicate")}tsParseThisTypeNode(){let r=this.startNode();return this.next(),this.finishNode(r,"TSThisType")}tsParseTypeQuery(){let r=this.startNode();return this.expect(87),this.match(83)?r.exprName=this.tsParseImportType():r.exprName=this.tsParseEntityName(),!this.hasPrecedingLineBreak()&&this.match(47)&&(r.typeParameters=this.tsParseTypeArguments()),this.finishNode(r,"TSTypeQuery")}tsParseTypeParameter(r){let i=this.startNode();return r(i),i.name=this.tsParseTypeParameterName(),i.constraint=this.tsEatThenParseType(81),i.default=this.tsEatThenParseType(29),this.finishNode(i,"TSTypeParameter")}tsTryParseTypeParameters(r){if(this.match(47))return this.tsParseTypeParameters(r)}tsParseTypeParameters(r){let i=this.startNode();this.match(47)||this.match(142)?this.next():this.unexpected();let s={value:-1};return i.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,r),!1,!0,s),i.params.length===0&&this.raise(G.EmptyTypeParameters,i),s.value!==-1&&this.addExtra(i,"trailingComma",s.value),this.finishNode(i,"TSTypeParameterDeclaration")}tsFillSignature(r,i){let s=r===19,n="parameters",a="typeAnnotation";i.typeParameters=this.tsTryParseTypeParameters(this.tsParseConstModifier),this.expect(10),i[n]=this.tsParseBindingListForSignature(),s?i[a]=this.tsParseTypeOrTypePredicateAnnotation(r):this.match(r)&&(i[a]=this.tsParseTypeOrTypePredicateAnnotation(r))}tsParseBindingListForSignature(){let r=super.parseBindingList(11,41,2);for(let i of r){let{type:s}=i;(s==="AssignmentPattern"||s==="TSParameterProperty")&&this.raise(G.UnsupportedSignatureParameterKind,i,{type:s})}return r}tsParseTypeMemberSemicolon(){!this.eat(12)&&!this.isLineTerminator()&&this.expect(13)}tsParseSignatureMember(r,i){return this.tsFillSignature(14,i),this.tsParseTypeMemberSemicolon(),this.finishNode(i,r)}tsIsUnambiguouslyIndexSignature(){return this.next(),Ie(this.state.type)?(this.next(),this.match(14)):!1}tsTryParseIndexSignature(r){if(!(this.match(0)&&this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this))))return;this.expect(0);let i=this.parseIdentifier();i.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(i),this.expect(3),r.parameters=[i];let s=this.tsTryParseTypeAnnotation();return s&&(r.typeAnnotation=s),this.tsParseTypeMemberSemicolon(),this.finishNode(r,"TSIndexSignature")}tsParsePropertyOrMethodSignature(r,i){this.eat(17)&&(r.optional=!0);let s=r;if(this.match(10)||this.match(47)){i&&this.raise(G.ReadonlyForMethodSignature,r);let n=s;n.kind&&this.match(47)&&this.raise(G.AccessorCannotHaveTypeParameters,this.state.curPosition()),this.tsFillSignature(14,n),this.tsParseTypeMemberSemicolon();let a="parameters",o="typeAnnotation";if(n.kind==="get")n[a].length>0&&(this.raise(S.BadGetterArity,this.state.curPosition()),this.isThisParam(n[a][0])&&this.raise(G.AccessorCannotDeclareThisParameter,this.state.curPosition()));else if(n.kind==="set"){if(n[a].length!==1)this.raise(S.BadSetterArity,this.state.curPosition());else{let l=n[a][0];this.isThisParam(l)&&this.raise(G.AccessorCannotDeclareThisParameter,this.state.curPosition()),l.type==="Identifier"&&l.optional&&this.raise(G.SetAccessorCannotHaveOptionalParameter,this.state.curPosition()),l.type==="RestElement"&&this.raise(G.SetAccessorCannotHaveRestParameter,this.state.curPosition())}n[o]&&this.raise(G.SetAccessorCannotHaveReturnType,n[o])}else n.kind="method";return this.finishNode(n,"TSMethodSignature")}else{let n=s;i&&(n.readonly=!0);let a=this.tsTryParseTypeAnnotation();return a&&(n.typeAnnotation=a),this.tsParseTypeMemberSemicolon(),this.finishNode(n,"TSPropertySignature")}}tsParseTypeMember(){let r=this.startNode();if(this.match(10)||this.match(47))return this.tsParseSignatureMember("TSCallSignatureDeclaration",r);if(this.match(77)){let s=this.startNode();return this.next(),this.match(10)||this.match(47)?this.tsParseSignatureMember("TSConstructSignatureDeclaration",r):(r.key=this.createIdentifier(s,"new"),this.tsParsePropertyOrMethodSignature(r,!1))}this.tsParseModifiers({allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]},r);let i=this.tsTryParseIndexSignature(r);return i||(super.parsePropertyName(r),!r.computed&&r.key.type==="Identifier"&&(r.key.name==="get"||r.key.name==="set")&&this.tsTokenCanFollowModifier()&&(r.kind=r.key.name,super.parsePropertyName(r)),this.tsParsePropertyOrMethodSignature(r,!!r.readonly))}tsParseTypeLiteral(){let r=this.startNode();return r.members=this.tsParseObjectTypeMembers(),this.finishNode(r,"TSTypeLiteral")}tsParseObjectTypeMembers(){this.expect(5);let r=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(8),r}tsIsStartOfMappedType(){return this.next(),this.eat(53)?this.isContextual(122):(this.isContextual(122)&&this.next(),!this.match(0)||(this.next(),!this.tsIsIdentifier())?!1:(this.next(),this.match(58)))}tsParseMappedType(){let r=this.startNode();this.expect(5),this.match(53)?(r.readonly=this.state.value,this.next(),this.expectContextual(122)):this.eatContextual(122)&&(r.readonly=!0),this.expect(0);{let i=this.startNode();i.name=this.tsParseTypeParameterName(),i.constraint=this.tsExpectThenParseType(58),r.typeParameter=this.finishNode(i,"TSTypeParameter")}return r.nameType=this.eatContextual(93)?this.tsParseType():null,this.expect(3),this.match(53)?(r.optional=this.state.value,this.next(),this.expect(17)):this.eat(17)&&(r.optional=!0),r.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(8),this.finishNode(r,"TSMappedType")}tsParseTupleType(){let r=this.startNode();r.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);let i=!1;return r.elementTypes.forEach(s=>{let{type:n}=s;i&&n!=="TSRestType"&&n!=="TSOptionalType"&&!(n==="TSNamedTupleMember"&&s.optional)&&this.raise(G.OptionalTypeBeforeRequired,s),i||(i=n==="TSNamedTupleMember"&&s.optional||n==="TSOptionalType")}),this.finishNode(r,"TSTupleType")}tsParseTupleElementType(){let{startLoc:r}=this.state,i=this.eat(21),s,n,a,o,u=jt(this.state.type)?this.lookaheadCharCode():null;if(u===58)s=!0,a=!1,n=this.parseIdentifier(!0),this.expect(14),o=this.tsParseType();else if(u===63){a=!0;let c=this.state.startLoc,T=this.state.value,P=this.tsParseNonArrayType();this.lookaheadCharCode()===58?(s=!0,n=this.createIdentifier(this.startNodeAt(c),T),this.expect(17),this.expect(14),o=this.tsParseType()):(s=!1,o=P,this.expect(17))}else o=this.tsParseType(),a=this.eat(17),s=this.eat(14);if(s){let c;n?(c=this.startNodeAtNode(n),c.optional=a,c.label=n,c.elementType=o,this.eat(17)&&(c.optional=!0,this.raise(G.TupleOptionalAfterType,this.state.lastTokStartLoc))):(c=this.startNodeAtNode(o),c.optional=a,this.raise(G.InvalidTupleMemberLabel,o),c.label=o,c.elementType=this.tsParseType()),o=this.finishNode(c,"TSNamedTupleMember")}else if(a){let c=this.startNodeAtNode(o);c.typeAnnotation=o,o=this.finishNode(c,"TSOptionalType")}if(i){let c=this.startNodeAt(r);c.typeAnnotation=o,o=this.finishNode(c,"TSRestType")}return o}tsParseParenthesizedType(){let r=this.startNode();return this.expect(10),r.typeAnnotation=this.tsParseType(),this.expect(11),this.finishNode(r,"TSParenthesizedType")}tsParseFunctionOrConstructorType(r,i){let s=this.startNode();return r==="TSConstructorType"&&(s.abstract=!!i,i&&this.next(),this.next()),this.tsInAllowConditionalTypesContext(()=>this.tsFillSignature(19,s)),this.finishNode(s,r)}tsParseLiteralTypeNode(){let r=this.startNode();switch(this.state.type){case 134:case 135:case 133:case 85:case 86:r.literal=super.parseExprAtom();break;default:this.unexpected()}return this.finishNode(r,"TSLiteralType")}tsParseTemplateLiteralType(){let r=this.startNode();return r.literal=super.parseTemplate(!1),this.finishNode(r,"TSLiteralType")}parseTemplateSubstitution(){return this.state.inType?this.tsParseType():super.parseTemplateSubstitution()}tsParseThisTypeOrThisTypePredicate(){let r=this.tsParseThisTypeNode();return this.isContextual(116)&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(r):r}tsParseNonArrayType(){switch(this.state.type){case 133:case 134:case 135:case 85:case 86:return this.tsParseLiteralTypeNode();case 53:if(this.state.value==="-"){let r=this.startNode(),i=this.lookahead();return i.type!==134&&i.type!==135&&this.unexpected(),r.literal=this.parseMaybeUnary(),this.finishNode(r,"TSLiteralType")}break;case 78:return this.tsParseThisTypeOrThisTypePredicate();case 87:return this.tsParseTypeQuery();case 83:return this.tsParseImportType();case 5:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case 0:return this.tsParseTupleType();case 10:return this.tsParseParenthesizedType();case 25:case 24:return this.tsParseTemplateLiteralType();default:{let{type:r}=this.state;if(Ie(r)||r===88||r===84){let i=r===88?"TSVoidKeyword":r===84?"TSNullKeyword":xg(this.state.value);if(i!==void 0&&this.lookaheadCharCode()!==46){let s=this.startNode();return this.next(),this.finishNode(s,i)}return this.tsParseTypeReference()}}}this.unexpected()}tsParseArrayTypeOrHigher(){let r=this.tsParseNonArrayType();for(;!this.hasPrecedingLineBreak()&&this.eat(0);)if(this.match(3)){let i=this.startNodeAtNode(r);i.elementType=r,this.expect(3),r=this.finishNode(i,"TSArrayType")}else{let i=this.startNodeAtNode(r);i.objectType=r,i.indexType=this.tsParseType(),this.expect(3),r=this.finishNode(i,"TSIndexedAccessType")}return r}tsParseTypeOperator(){let r=this.startNode(),i=this.state.value;return this.next(),r.operator=i,r.typeAnnotation=this.tsParseTypeOperatorOrHigher(),i==="readonly"&&this.tsCheckTypeAnnotationForReadOnly(r),this.finishNode(r,"TSTypeOperator")}tsCheckTypeAnnotationForReadOnly(r){switch(r.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(G.UnexpectedReadonly,r)}}tsParseInferType(){let r=this.startNode();this.expectContextual(115);let i=this.startNode();return i.name=this.tsParseTypeParameterName(),i.constraint=this.tsTryParse(()=>this.tsParseConstraintForInferType()),r.typeParameter=this.finishNode(i,"TSTypeParameter"),this.finishNode(r,"TSInferType")}tsParseConstraintForInferType(){if(this.eat(81)){let r=this.tsInDisallowConditionalTypesContext(()=>this.tsParseType());if(this.state.inDisallowConditionalTypesContext||!this.match(17))return r}}tsParseTypeOperatorOrHigher(){return U0(this.state.type)&&!this.state.containsEsc?this.tsParseTypeOperator():this.isContextual(115)?this.tsParseInferType():this.tsInAllowConditionalTypesContext(()=>this.tsParseArrayTypeOrHigher())}tsParseUnionOrIntersectionType(r,i,s){let n=this.startNode(),a=this.eat(s),o=[];do o.push(i());while(this.eat(s));return o.length===1&&!a?o[0]:(n.types=o,this.finishNode(n,r))}tsParseIntersectionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),45)}tsParseUnionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),43)}tsIsStartOfFunctionType(){return this.match(47)?!0:this.match(10)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsSkipParameterStart(){if(Ie(this.state.type)||this.match(78))return this.next(),!0;if(this.match(5)){let{errors:r}=this.state,i=r.length;try{return this.parseObjectLike(8,!0),r.length===i}catch{return!1}}if(this.match(0)){this.next();let{errors:r}=this.state,i=r.length;try{return super.parseBindingList(3,93,1),r.length===i}catch{return!1}}return!1}tsIsUnambiguouslyStartOfFunctionType(){return this.next(),!!(this.match(11)||this.match(21)||this.tsSkipParameterStart()&&(this.match(14)||this.match(12)||this.match(17)||this.match(29)||this.match(11)&&(this.next(),this.match(19))))}tsParseTypeOrTypePredicateAnnotation(r){return this.tsInType(()=>{let i=this.startNode();this.expect(r);let s=this.startNode(),n=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(n&&this.match(78)){let l=this.tsParseThisTypeOrThisTypePredicate();return l.type==="TSThisType"?(s.parameterName=l,s.asserts=!0,s.typeAnnotation=null,l=this.finishNode(s,"TSTypePredicate")):(this.resetStartLocationFromNode(l,s),l.asserts=!0),i.typeAnnotation=l,this.finishNode(i,"TSTypeAnnotation")}let a=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!a)return n?(s.parameterName=this.parseIdentifier(),s.asserts=n,s.typeAnnotation=null,i.typeAnnotation=this.finishNode(s,"TSTypePredicate"),this.finishNode(i,"TSTypeAnnotation")):this.tsParseTypeAnnotation(!1,i);let o=this.tsParseTypeAnnotation(!1);return s.parameterName=a,s.typeAnnotation=o,s.asserts=n,i.typeAnnotation=this.finishNode(s,"TSTypePredicate"),this.finishNode(i,"TSTypeAnnotation")})}tsTryParseTypeOrTypePredicateAnnotation(){if(this.match(14))return this.tsParseTypeOrTypePredicateAnnotation(14)}tsTryParseTypeAnnotation(){if(this.match(14))return this.tsParseTypeAnnotation()}tsTryParseType(){return this.tsEatThenParseType(14)}tsParseTypePredicatePrefix(){let r=this.parseIdentifier();if(this.isContextual(116)&&!this.hasPrecedingLineBreak())return this.next(),r}tsParseTypePredicateAsserts(){if(this.state.type!==109)return!1;let r=this.state.containsEsc;return this.next(),!Ie(this.state.type)&&!this.match(78)?!1:(r&&this.raise(S.InvalidEscapedReservedWord,this.state.lastTokStartLoc,{reservedWord:"asserts"}),!0)}tsParseTypeAnnotation(r=!0,i=this.startNode()){return this.tsInType(()=>{r&&this.expect(14),i.typeAnnotation=this.tsParseType()}),this.finishNode(i,"TSTypeAnnotation")}tsParseType(){dp(this.state.inType);let r=this.tsParseNonConditionalType();if(this.state.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(81))return r;let i=this.startNodeAtNode(r);return i.checkType=r,i.extendsType=this.tsInDisallowConditionalTypesContext(()=>this.tsParseNonConditionalType()),this.expect(17),i.trueType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.expect(14),i.falseType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.finishNode(i,"TSConditionalType")}isAbstractConstructorSignature(){return this.isContextual(124)&&this.lookahead().type===77}tsParseNonConditionalType(){return this.tsIsStartOfFunctionType()?this.tsParseFunctionOrConstructorType("TSFunctionType"):this.match(77)?this.tsParseFunctionOrConstructorType("TSConstructorType"):this.isAbstractConstructorSignature()?this.tsParseFunctionOrConstructorType("TSConstructorType",!0):this.tsParseUnionTypeOrHigher()}tsParseTypeAssertion(){this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(G.ReservedTypeAssertion,this.state.startLoc);let r=this.startNode();return r.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?this.tsParseTypeReference():this.tsParseType())),this.expect(48),r.expression=this.parseMaybeUnary(),this.finishNode(r,"TSTypeAssertion")}tsParseHeritageClause(r){let i=this.state.startLoc,s=this.tsParseDelimitedList("HeritageClauseElement",()=>{let n=this.startNode();return n.expression=this.tsParseEntityName(),this.match(47)&&(n.typeParameters=this.tsParseTypeArguments()),this.finishNode(n,"TSExpressionWithTypeArguments")});return s.length||this.raise(G.EmptyHeritageClauseType,i,{token:r}),s}tsParseInterfaceDeclaration(r,i={}){if(this.hasFollowingLineBreak())return null;this.expectContextual(129),i.declare&&(r.declare=!0),Ie(this.state.type)?(r.id=this.parseIdentifier(),this.checkIdentifier(r.id,130)):(r.id=null,this.raise(G.MissingInterfaceName,this.state.startLoc)),r.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers),this.eat(81)&&(r.extends=this.tsParseHeritageClause("extends"));let s=this.startNode();return s.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),r.body=this.finishNode(s,"TSInterfaceBody"),this.finishNode(r,"TSInterfaceDeclaration")}tsParseTypeAliasDeclaration(r){return r.id=this.parseIdentifier(),this.checkIdentifier(r.id,2),r.typeAnnotation=this.tsInType(()=>{if(r.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers),this.expect(29),this.isContextual(114)&&this.lookahead().type!==16){let i=this.startNode();return this.next(),this.finishNode(i,"TSIntrinsicKeyword")}return this.tsParseType()}),this.semicolon(),this.finishNode(r,"TSTypeAliasDeclaration")}tsInNoContext(r){let i=this.state.context;this.state.context=[i[0]];try{return r()}finally{this.state.context=i}}tsInType(r){let i=this.state.inType;this.state.inType=!0;try{return r()}finally{this.state.inType=i}}tsInDisallowConditionalTypesContext(r){let i=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!0;try{return r()}finally{this.state.inDisallowConditionalTypesContext=i}}tsInAllowConditionalTypesContext(r){let i=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!1;try{return r()}finally{this.state.inDisallowConditionalTypesContext=i}}tsEatThenParseType(r){if(this.match(r))return this.tsNextThenParseType()}tsExpectThenParseType(r){return this.tsInType(()=>(this.expect(r),this.tsParseType()))}tsNextThenParseType(){return this.tsInType(()=>(this.next(),this.tsParseType()))}tsParseEnumMember(){let r=this.startNode();return r.id=this.match(133)?super.parseStringLiteral(this.state.value):this.parseIdentifier(!0),this.eat(29)&&(r.initializer=super.parseMaybeAssignAllowIn()),this.finishNode(r,"TSEnumMember")}tsParseEnumDeclaration(r,i={}){return i.const&&(r.const=!0),i.declare&&(r.declare=!0),this.expectContextual(126),r.id=this.parseIdentifier(),this.checkIdentifier(r.id,r.const?8971:8459),this.expect(5),r.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(r,"TSEnumDeclaration")}tsParseModuleBlock(){let r=this.startNode();return this.scope.enter(0),this.expect(5),super.parseBlockOrModuleBlockBody(r.body=[],void 0,!0,8),this.scope.exit(),this.finishNode(r,"TSModuleBlock")}tsParseModuleOrNamespaceDeclaration(r,i=!1){if(r.id=this.parseIdentifier(),i||this.checkIdentifier(r.id,1024),this.eat(16)){let s=this.startNode();this.tsParseModuleOrNamespaceDeclaration(s,!0),r.body=s}else this.scope.enter(256),this.prodParam.enter(0),r.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit();return this.finishNode(r,"TSModuleDeclaration")}tsParseAmbientExternalModuleDeclaration(r){return this.isContextual(112)?(r.global=!0,r.id=this.parseIdentifier()):this.match(133)?r.id=super.parseStringLiteral(this.state.value):this.unexpected(),this.match(5)?(this.scope.enter(256),this.prodParam.enter(0),r.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit()):this.semicolon(),this.finishNode(r,"TSModuleDeclaration")}tsParseImportEqualsDeclaration(r,i,s){r.isExport=s||!1,r.id=i||this.parseIdentifier(),this.checkIdentifier(r.id,4096),this.expect(29);let n=this.tsParseModuleReference();return r.importKind==="type"&&n.type!=="TSExternalModuleReference"&&this.raise(G.ImportAliasHasImportType,n),r.moduleReference=n,this.semicolon(),this.finishNode(r,"TSImportEqualsDeclaration")}tsIsExternalModuleReference(){return this.isContextual(119)&&this.lookaheadCharCode()===40}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(!1)}tsParseExternalModuleReference(){let r=this.startNode();return this.expectContextual(119),this.expect(10),this.match(133)||this.unexpected(),r.expression=super.parseExprAtom(),this.expect(11),this.sawUnambiguousESM=!0,this.finishNode(r,"TSExternalModuleReference")}tsLookAhead(r){let i=this.state.clone(),s=r();return this.state=i,s}tsTryParseAndCatch(r){let i=this.tryParse(s=>r()||s());if(!(i.aborted||!i.node))return i.error&&(this.state=i.failState),i.node}tsTryParse(r){let i=this.state.clone(),s=r();if(s!==void 0&&s!==!1)return s;this.state=i}tsTryParseDeclare(r){if(this.isLineTerminator())return;let i=this.state.type,s;return this.isContextual(100)&&(i=74,s="let"),this.tsInAmbientContext(()=>{switch(i){case 68:return r.declare=!0,super.parseFunctionStatement(r,!1,!1);case 80:return r.declare=!0,this.parseClass(r,!0,!1);case 126:return this.tsParseEnumDeclaration(r,{declare:!0});case 112:return this.tsParseAmbientExternalModuleDeclaration(r);case 75:case 74:return!this.match(75)||!this.isLookaheadContextual("enum")?(r.declare=!0,this.parseVarStatement(r,s||this.state.value,!0)):(this.expect(75),this.tsParseEnumDeclaration(r,{const:!0,declare:!0}));case 129:{let n=this.tsParseInterfaceDeclaration(r,{declare:!0});if(n)return n}default:if(Ie(i))return this.tsParseDeclaration(r,this.state.value,!0,null)}})}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.state.value,!0,null)}tsParseExpressionStatement(r,i,s){switch(i.name){case"declare":{let n=this.tsTryParseDeclare(r);return n&&(n.declare=!0),n}case"global":if(this.match(5)){this.scope.enter(256),this.prodParam.enter(0);let n=r;return n.global=!0,n.id=i,n.body=this.tsParseModuleBlock(),this.scope.exit(),this.prodParam.exit(),this.finishNode(n,"TSModuleDeclaration")}break;default:return this.tsParseDeclaration(r,i.name,!1,s)}}tsParseDeclaration(r,i,s,n){switch(i){case"abstract":if(this.tsCheckLineTerminator(s)&&(this.match(80)||Ie(this.state.type)))return this.tsParseAbstractDeclaration(r,n);break;case"module":if(this.tsCheckLineTerminator(s)){if(this.match(133))return this.tsParseAmbientExternalModuleDeclaration(r);if(Ie(this.state.type))return this.tsParseModuleOrNamespaceDeclaration(r)}break;case"namespace":if(this.tsCheckLineTerminator(s)&&Ie(this.state.type))return this.tsParseModuleOrNamespaceDeclaration(r);break;case"type":if(this.tsCheckLineTerminator(s)&&Ie(this.state.type))return this.tsParseTypeAliasDeclaration(r);break}}tsCheckLineTerminator(r){return r?this.hasFollowingLineBreak()?!1:(this.next(),!0):!this.isLineTerminator()}tsTryParseGenericAsyncArrowFunction(r){if(!this.match(47))return;let i=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0;let s=this.tsTryParseAndCatch(()=>{let n=this.startNodeAt(r);return n.typeParameters=this.tsParseTypeParameters(this.tsParseConstModifier),super.parseFunctionParams(n),n.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(19),n});if(this.state.maybeInArrowParameters=i,!!s)return super.parseArrowExpression(s,null,!0)}tsParseTypeArgumentsInExpression(){if(this.reScan_lt()===47)return this.tsParseTypeArguments()}tsParseTypeArguments(){let r=this.startNode();return r.params=this.tsInType(()=>this.tsInNoContext(()=>(this.expect(47),this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))))),r.params.length===0?this.raise(G.EmptyTypeArguments,r):!this.state.inType&&this.curContext()===ke.brace&&this.reScan_lt_gt(),this.expect(48),this.finishNode(r,"TSTypeParameterInstantiation")}tsIsDeclarationStart(){return V0(this.state.type)}isExportDefaultSpecifier(){return this.tsIsDeclarationStart()?!1:super.isExportDefaultSpecifier()}parseAssignableListItem(r,i){let s=this.state.startLoc,n={};this.tsParseModifiers({allowedModifiers:["public","private","protected","override","readonly"]},n);let a=n.accessibility,o=n.override,l=n.readonly;!(r&4)&&(a||l||o)&&this.raise(G.UnexpectedParameterModifier,s);let u=this.parseMaybeDefault();this.parseAssignableListItemTypes(u,r);let c=this.parseMaybeDefault(u.loc.start,u);if(a||l||o){let T=this.startNodeAt(s);return i.length&&(T.decorators=i),a&&(T.accessibility=a),l&&(T.readonly=l),o&&(T.override=o),c.type!=="Identifier"&&c.type!=="AssignmentPattern"&&this.raise(G.UnsupportedParameterPropertyKind,T),T.parameter=c,this.finishNode(T,"TSParameterProperty")}return i.length&&(u.decorators=i),c}isSimpleParameter(r){return r.type==="TSParameterProperty"&&super.isSimpleParameter(r.parameter)||super.isSimpleParameter(r)}tsDisallowOptionalPattern(r){for(let i of r.params)i.type!=="Identifier"&&i.optional&&!this.state.isAmbientContext&&this.raise(G.PatternIsOptional,i)}setArrowFunctionParameters(r,i,s){super.setArrowFunctionParameters(r,i,s),this.tsDisallowOptionalPattern(r)}parseFunctionBodyAndFinish(r,i,s=!1){this.match(14)&&(r.returnType=this.tsParseTypeOrTypePredicateAnnotation(14));let n=i==="FunctionDeclaration"?"TSDeclareFunction":i==="ClassMethod"||i==="ClassPrivateMethod"?"TSDeclareMethod":void 0;return n&&!this.match(5)&&this.isLineTerminator()?this.finishNode(r,n):n==="TSDeclareFunction"&&this.state.isAmbientContext&&(this.raise(G.DeclareFunctionHasImplementation,r),r.declare)?super.parseFunctionBodyAndFinish(r,n,s):(this.tsDisallowOptionalPattern(r),super.parseFunctionBodyAndFinish(r,i,s))}registerFunctionStatementId(r){!r.body&&r.id?this.checkIdentifier(r.id,1024):super.registerFunctionStatementId(r)}tsCheckForInvalidTypeCasts(r){r.forEach(i=>{i?.type==="TSTypeCastExpression"&&this.raise(G.UnexpectedTypeAnnotation,i.typeAnnotation)})}toReferencedList(r,i){return this.tsCheckForInvalidTypeCasts(r),r}parseArrayLike(r,i,s,n){let a=super.parseArrayLike(r,i,s,n);return a.type==="ArrayExpression"&&this.tsCheckForInvalidTypeCasts(a.elements),a}parseSubscript(r,i,s,n){if(!this.hasPrecedingLineBreak()&&this.match(35)){this.state.canStartJSXElement=!1,this.next();let o=this.startNodeAt(i);return o.expression=r,this.finishNode(o,"TSNonNullExpression")}let a=!1;if(this.match(18)&&this.lookaheadCharCode()===60){if(s)return n.stop=!0,r;n.optionalChainMember=a=!0,this.next()}if(this.match(47)||this.match(51)){let o,l=this.tsTryParseAndCatch(()=>{if(!s&&this.atPossibleAsyncArrow(r)){let P=this.tsTryParseGenericAsyncArrowFunction(i);if(P)return P}let u=this.tsParseTypeArgumentsInExpression();if(!u)return;if(a&&!this.match(10)){o=this.state.curPosition();return}if(Bs(this.state.type)){let P=super.parseTaggedTemplateExpression(r,i,n);return P.typeParameters=u,P}if(!s&&this.eat(10)){let P=this.startNodeAt(i);return P.callee=r,P.arguments=this.parseCallExpressionArguments(11,!1),this.tsCheckForInvalidTypeCasts(P.arguments),P.typeParameters=u,n.optionalChainMember&&(P.optional=a),this.finishCallExpression(P,n.optionalChainMember)}let c=this.state.type;if(c===48||c===52||c!==10&&Sa(c)&&!this.hasPrecedingLineBreak())return;let T=this.startNodeAt(i);return T.expression=r,T.typeParameters=u,this.finishNode(T,"TSInstantiationExpression")});if(o&&this.unexpected(o,10),l)return l.type==="TSInstantiationExpression"&&(this.match(16)||this.match(18)&&this.lookaheadCharCode()!==40)&&this.raise(G.InvalidPropertyAccessAfterInstantiationExpression,this.state.startLoc),l}return super.parseSubscript(r,i,s,n)}parseNewCallee(r){var i;super.parseNewCallee(r);let{callee:s}=r;s.type==="TSInstantiationExpression"&&!((i=s.extra)!=null&&i.parenthesized)&&(r.typeParameters=s.typeParameters,r.callee=s.expression)}parseExprOp(r,i,s){let n;if(ks(58)>s&&!this.hasPrecedingLineBreak()&&(this.isContextual(93)||(n=this.isContextual(120)))){let a=this.startNodeAt(i);return a.expression=r,a.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?(n&&this.raise(S.UnexpectedKeyword,this.state.startLoc,{keyword:"const"}),this.tsParseTypeReference()):this.tsParseType())),this.finishNode(a,n?"TSSatisfiesExpression":"TSAsExpression"),this.reScan_lt_gt(),this.parseExprOp(a,i,s)}return super.parseExprOp(r,i,s)}checkReservedWord(r,i,s,n){this.state.isAmbientContext||super.checkReservedWord(r,i,s,n)}checkImportReflection(r){super.checkImportReflection(r),r.module&&r.importKind!=="value"&&this.raise(G.ImportReflectionHasImportType,r.specifiers[0].loc.start)}checkDuplicateExports(){}isPotentialImportPhase(r){if(super.isPotentialImportPhase(r))return!0;if(this.isContextual(130)){let i=this.lookaheadCharCode();return r?i===123||i===42:i!==61}return!r&&this.isContextual(87)}applyImportPhase(r,i,s,n){super.applyImportPhase(r,i,s,n),i?r.exportKind=s==="type"?"type":"value":r.importKind=s==="type"||s==="typeof"?s:"value"}parseImport(r){if(this.match(133))return r.importKind="value",super.parseImport(r);let i;if(Ie(this.state.type)&&this.lookaheadCharCode()===61)return r.importKind="value",this.tsParseImportEqualsDeclaration(r);if(this.isContextual(130)){let s=this.parseMaybeImportPhase(r,!1);if(this.lookaheadCharCode()===61)return this.tsParseImportEqualsDeclaration(r,s);i=super.parseImportSpecifiersAndAfter(r,s)}else i=super.parseImport(r);return i.importKind==="type"&&i.specifiers.length>1&&i.specifiers[0].type==="ImportDefaultSpecifier"&&this.raise(G.TypeImportCannotSpecifyDefaultAndNamed,i),i}parseExport(r,i){if(this.match(83)){this.next();let s=r,n=null;return this.isContextual(130)&&this.isPotentialImportPhase(!1)?n=this.parseMaybeImportPhase(s,!1):s.importKind="value",this.tsParseImportEqualsDeclaration(s,n,!0)}else if(this.eat(29)){let s=r;return s.expression=super.parseExpression(),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(s,"TSExportAssignment")}else if(this.eatContextual(93)){let s=r;return this.expectContextual(128),s.id=this.parseIdentifier(),this.semicolon(),this.finishNode(s,"TSNamespaceExportDeclaration")}else return super.parseExport(r,i)}isAbstractClass(){return this.isContextual(124)&&this.lookahead().type===80}parseExportDefaultExpression(){if(this.isAbstractClass()){let r=this.startNode();return this.next(),r.abstract=!0,this.parseClass(r,!0,!0)}if(this.match(129)){let r=this.tsParseInterfaceDeclaration(this.startNode());if(r)return r}return super.parseExportDefaultExpression()}parseVarStatement(r,i,s=!1){let{isAmbientContext:n}=this.state,a=super.parseVarStatement(r,i,s||n);if(!n)return a;for(let{id:o,init:l}of a.declarations)l&&(i!=="const"||o.typeAnnotation?this.raise(G.InitializerNotAllowedInAmbientContext,l):vg(l,this.hasPlugin("estree"))||this.raise(G.ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference,l));return a}parseStatementContent(r,i){if(this.match(75)&&this.isLookaheadContextual("enum")){let s=this.startNode();return this.expect(75),this.tsParseEnumDeclaration(s,{const:!0})}if(this.isContextual(126))return this.tsParseEnumDeclaration(this.startNode());if(this.isContextual(129)){let s=this.tsParseInterfaceDeclaration(this.startNode());if(s)return s}return super.parseStatementContent(r,i)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}tsHasSomeModifiers(r,i){return i.some(s=>mp(s)?r.accessibility===s:!!r[s])}tsIsStartOfStaticBlocks(){return this.isContextual(106)&&this.lookaheadCharCode()===123}parseClassMember(r,i,s){let n=["declare","private","public","protected","override","abstract","readonly","static"];this.tsParseModifiers({allowedModifiers:n,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:G.InvalidModifierOnTypeParameterPositions},i);let a=()=>{this.tsIsStartOfStaticBlocks()?(this.next(),this.next(),this.tsHasSomeModifiers(i,n)&&this.raise(G.StaticBlockCannotHaveModifier,this.state.curPosition()),super.parseClassStaticBlock(r,i)):this.parseClassMemberWithIsStatic(r,i,s,!!i.static)};i.declare?this.tsInAmbientContext(a):a()}parseClassMemberWithIsStatic(r,i,s,n){let a=this.tsTryParseIndexSignature(i);if(a){r.body.push(a),i.abstract&&this.raise(G.IndexSignatureHasAbstract,i),i.accessibility&&this.raise(G.IndexSignatureHasAccessibility,i,{modifier:i.accessibility}),i.declare&&this.raise(G.IndexSignatureHasDeclare,i),i.override&&this.raise(G.IndexSignatureHasOverride,i);return}!this.state.inAbstractClass&&i.abstract&&this.raise(G.NonAbstractClassHasAbstractMethod,i),i.override&&(s.hadSuperClass||this.raise(G.OverrideNotInSubClass,i)),super.parseClassMemberWithIsStatic(r,i,s,n)}parsePostMemberNameModifiers(r){this.eat(17)&&(r.optional=!0),r.readonly&&this.match(10)&&this.raise(G.ClassMethodHasReadonly,r),r.declare&&this.match(10)&&this.raise(G.ClassMethodHasDeclare,r)}parseExpressionStatement(r,i,s){return(i.type==="Identifier"?this.tsParseExpressionStatement(r,i,s):void 0)||super.parseExpressionStatement(r,i,s)}shouldParseExportDeclaration(){return this.tsIsDeclarationStart()?!0:super.shouldParseExportDeclaration()}parseConditional(r,i,s){if(!this.state.maybeInArrowParameters||!this.match(17))return super.parseConditional(r,i,s);let n=this.tryParse(()=>super.parseConditional(r,i));return n.node?(n.error&&(this.state=n.failState),n.node):(n.error&&super.setOptionalParametersError(s,n.error),r)}parseParenItem(r,i){let s=super.parseParenItem(r,i);if(this.eat(17)&&(s.optional=!0,this.resetEndLocation(r)),this.match(14)){let n=this.startNodeAt(i);return n.expression=r,n.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(n,"TSTypeCastExpression")}return r}parseExportDeclaration(r){if(!this.state.isAmbientContext&&this.isContextual(125))return this.tsInAmbientContext(()=>this.parseExportDeclaration(r));let i=this.state.startLoc,s=this.eatContextual(125);if(s&&(this.isContextual(125)||!this.shouldParseExportDeclaration()))throw this.raise(G.ExpectedAmbientAfterExportDeclare,this.state.startLoc);let a=Ie(this.state.type)&&this.tsTryParseExportDeclaration()||super.parseExportDeclaration(r);return a?((a.type==="TSInterfaceDeclaration"||a.type==="TSTypeAliasDeclaration"||s)&&(r.exportKind="type"),s&&(this.resetStartLocation(a,i),a.declare=!0),a):null}parseClassId(r,i,s,n){if((!i||s)&&this.isContextual(113))return;super.parseClassId(r,i,s,r.declare?1024:8331);let a=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers);a&&(r.typeParameters=a)}parseClassPropertyAnnotation(r){r.optional||(this.eat(35)?r.definite=!0:this.eat(17)&&(r.optional=!0));let i=this.tsTryParseTypeAnnotation();i&&(r.typeAnnotation=i)}parseClassProperty(r){if(this.parseClassPropertyAnnotation(r),this.state.isAmbientContext&&!(r.readonly&&!r.typeAnnotation)&&this.match(29)&&this.raise(G.DeclareClassFieldHasInitializer,this.state.startLoc),r.abstract&&this.match(29)){let{key:i}=r;this.raise(G.AbstractPropertyHasInitializer,this.state.startLoc,{propertyName:i.type==="Identifier"&&!r.computed?i.name:`[${this.input.slice(i.start,i.end)}]`})}return super.parseClassProperty(r)}parseClassPrivateProperty(r){return r.abstract&&this.raise(G.PrivateElementHasAbstract,r),r.accessibility&&this.raise(G.PrivateElementHasAccessibility,r,{modifier:r.accessibility}),this.parseClassPropertyAnnotation(r),super.parseClassPrivateProperty(r)}parseClassAccessorProperty(r){return this.parseClassPropertyAnnotation(r),r.optional&&this.raise(G.AccessorCannotBeOptional,r),super.parseClassAccessorProperty(r)}pushClassMethod(r,i,s,n,a,o){let l=this.tsTryParseTypeParameters(this.tsParseConstModifier);l&&a&&this.raise(G.ConstructorHasTypeParameters,l);let{declare:u=!1,kind:c}=i;u&&(c==="get"||c==="set")&&this.raise(G.DeclareAccessor,i,{kind:c}),l&&(i.typeParameters=l),super.pushClassMethod(r,i,s,n,a,o)}pushClassPrivateMethod(r,i,s,n){let a=this.tsTryParseTypeParameters(this.tsParseConstModifier);a&&(i.typeParameters=a),super.pushClassPrivateMethod(r,i,s,n)}declareClassPrivateMethodInScope(r,i){r.type!=="TSDeclareMethod"&&(r.type==="MethodDefinition"&&!hasOwnProperty.call(r.value,"body")||super.declareClassPrivateMethodInScope(r,i))}parseClassSuper(r){super.parseClassSuper(r),r.superClass&&(this.match(47)||this.match(51))&&(r.superTypeParameters=this.tsParseTypeArgumentsInExpression()),this.eatContextual(113)&&(r.implements=this.tsParseHeritageClause("implements"))}parseObjPropValue(r,i,s,n,a,o,l){let u=this.tsTryParseTypeParameters(this.tsParseConstModifier);return u&&(r.typeParameters=u),super.parseObjPropValue(r,i,s,n,a,o,l)}parseFunctionParams(r,i){let s=this.tsTryParseTypeParameters(this.tsParseConstModifier);s&&(r.typeParameters=s),super.parseFunctionParams(r,i)}parseVarId(r,i){super.parseVarId(r,i),r.id.type==="Identifier"&&!this.hasPrecedingLineBreak()&&this.eat(35)&&(r.definite=!0);let s=this.tsTryParseTypeAnnotation();s&&(r.id.typeAnnotation=s,this.resetEndLocation(r.id))}parseAsyncArrowFromCallExpression(r,i){return this.match(14)&&(r.returnType=this.tsParseTypeAnnotation()),super.parseAsyncArrowFromCallExpression(r,i)}parseMaybeAssign(r,i){var s,n,a,o,l;let u,c,T;if(this.hasPlugin("jsx")&&(this.match(142)||this.match(47))){if(u=this.state.clone(),c=this.tryParse(()=>super.parseMaybeAssign(r,i),u),!c.error)return c.node;let{context:v}=this.state,D=v[v.length-1];(D===ke.j_oTag||D===ke.j_expr)&&v.pop()}if(!((s=c)!=null&&s.error)&&!this.match(47))return super.parseMaybeAssign(r,i);(!u||u===this.state)&&(u=this.state.clone());let P,E=this.tryParse(v=>{var D,_;P=this.tsParseTypeParameters(this.tsParseConstModifier);let N=super.parseMaybeAssign(r,i);return(N.type!=="ArrowFunctionExpression"||(D=N.extra)!=null&&D.parenthesized)&&v(),((_=P)==null?void 0:_.params.length)!==0&&this.resetStartLocationFromNode(N,P),N.typeParameters=P,N},u);if(!E.error&&!E.aborted)return P&&this.reportReservedArrowTypeParam(P),E.node;if(!c&&(dp(!this.hasPlugin("jsx")),T=this.tryParse(()=>super.parseMaybeAssign(r,i),u),!T.error))return T.node;if((n=c)!=null&&n.node)return this.state=c.failState,c.node;if(E.node)return this.state=E.failState,P&&this.reportReservedArrowTypeParam(P),E.node;if((a=T)!=null&&a.node)return this.state=T.failState,T.node;throw((o=c)==null?void 0:o.error)||E.error||((l=T)==null?void 0:l.error)}reportReservedArrowTypeParam(r){var i;r.params.length===1&&!r.params[0].constraint&&!((i=r.extra)!=null&&i.trailingComma)&&this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(G.ReservedArrowTypeParam,r)}parseMaybeUnary(r,i){return!this.hasPlugin("jsx")&&this.match(47)?this.tsParseTypeAssertion():super.parseMaybeUnary(r,i)}parseArrow(r){if(this.match(14)){let i=this.tryParse(s=>{let n=this.tsParseTypeOrTypePredicateAnnotation(14);return(this.canInsertSemicolon()||!this.match(19))&&s(),n});if(i.aborted)return;i.thrown||(i.error&&(this.state=i.failState),r.returnType=i.node)}return super.parseArrow(r)}parseAssignableListItemTypes(r,i){if(!(i&2))return r;this.eat(17)&&(r.optional=!0);let s=this.tsTryParseTypeAnnotation();return s&&(r.typeAnnotation=s),this.resetEndLocation(r),r}isAssignable(r,i){switch(r.type){case"TSTypeCastExpression":return this.isAssignable(r.expression,i);case"TSParameterProperty":return!0;default:return super.isAssignable(r,i)}}toAssignable(r,i=!1){switch(r.type){case"ParenthesizedExpression":this.toAssignableParenthesizedExpression(r,i);break;case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":i?this.expressionScope.recordArrowParameterBindingError(G.UnexpectedTypeCastInParameter,r):this.raise(G.UnexpectedTypeCastInParameter,r),this.toAssignable(r.expression,i);break;case"AssignmentExpression":!i&&r.left.type==="TSTypeCastExpression"&&(r.left=this.typeCastToParameter(r.left));default:super.toAssignable(r,i)}}toAssignableParenthesizedExpression(r,i){switch(r.expression.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":this.toAssignable(r.expression,i);break;default:super.toAssignable(r,i)}}checkToRestConversion(r,i){switch(r.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":this.checkToRestConversion(r.expression,!1);break;default:super.checkToRestConversion(r,i)}}isValidLVal(r,i,s){switch(r){case"TSTypeCastExpression":return!0;case"TSParameterProperty":return"parameter";case"TSNonNullExpression":case"TSInstantiationExpression":return"expression";case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":return(s!==64||!i)&&["expression",!0];default:return super.isValidLVal(r,i,s)}}parseBindingAtom(){return this.state.type===78?this.parseIdentifier(!0):super.parseBindingAtom()}parseMaybeDecoratorArguments(r){if(this.match(47)||this.match(51)){let i=this.tsParseTypeArgumentsInExpression();if(this.match(10)){let s=super.parseMaybeDecoratorArguments(r);return s.typeParameters=i,s}this.unexpected(null,10)}return super.parseMaybeDecoratorArguments(r)}checkCommaAfterRest(r){return this.state.isAmbientContext&&this.match(12)&&this.lookaheadCharCode()===r?(this.next(),!1):super.checkCommaAfterRest(r)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(35)||this.match(14)||super.isClassProperty()}parseMaybeDefault(r,i){let s=super.parseMaybeDefault(r,i);return s.type==="AssignmentPattern"&&s.typeAnnotation&&s.right.start<s.typeAnnotation.start&&this.raise(G.TypeAnnotationAfterAssign,s.typeAnnotation),s}getTokenFromCode(r){if(this.state.inType){if(r===62){this.finishOp(48,1);return}if(r===60){this.finishOp(47,1);return}}super.getTokenFromCode(r)}reScan_lt_gt(){let{type:r}=this.state;r===47?(this.state.pos-=1,this.readToken_lt()):r===48&&(this.state.pos-=1,this.readToken_gt())}reScan_lt(){let{type:r}=this.state;return r===51?(this.state.pos-=2,this.finishOp(47,1),47):r}toAssignableList(r,i,s){for(let n=0;n<r.length;n++){let a=r[n];a?.type==="TSTypeCastExpression"&&(r[n]=this.typeCastToParameter(a))}super.toAssignableList(r,i,s)}typeCastToParameter(r){return r.expression.typeAnnotation=r.typeAnnotation,this.resetEndLocation(r.expression,r.typeAnnotation.loc.end),r.expression}shouldParseArrow(r){return this.match(14)?r.every(i=>this.isAssignable(i,!0)):super.shouldParseArrow(r)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}canHaveLeadingDecorator(){return super.canHaveLeadingDecorator()||this.isAbstractClass()}jsxParseOpeningElementAfterName(r){if(this.match(47)||this.match(51)){let i=this.tsTryParseAndCatch(()=>this.tsParseTypeArgumentsInExpression());i&&(r.typeParameters=i)}return super.jsxParseOpeningElementAfterName(r)}getGetterSetterExpectedParamCount(r){let i=super.getGetterSetterExpectedParamCount(r),n=this.getObjectOrClassMethodParams(r)[0];return n&&this.isThisParam(n)?i+1:i}parseCatchClauseParam(){let r=super.parseCatchClauseParam(),i=this.tsTryParseTypeAnnotation();return i&&(r.typeAnnotation=i,this.resetEndLocation(r)),r}tsInAmbientContext(r){let{isAmbientContext:i,strict:s}=this.state;this.state.isAmbientContext=!0,this.state.strict=!1;try{return r()}finally{this.state.isAmbientContext=i,this.state.strict=s}}parseClass(r,i,s){let n=this.state.inAbstractClass;this.state.inAbstractClass=!!r.abstract;try{return super.parseClass(r,i,s)}finally{this.state.inAbstractClass=n}}tsParseAbstractDeclaration(r,i){if(this.match(80))return r.abstract=!0,this.maybeTakeDecorators(i,this.parseClass(r,!0,!1));if(this.isContextual(129)){if(!this.hasFollowingLineBreak())return r.abstract=!0,this.raise(G.NonClassMethodPropertyHasAbstractModifer,r),this.tsParseInterfaceDeclaration(r)}else this.unexpected(null,80)}parseMethod(r,i,s,n,a,o,l){let u=super.parseMethod(r,i,s,n,a,o,l);if(u.abstract&&(this.hasPlugin("estree")?!!u.value.body:!!u.body)){let{key:T}=u;this.raise(G.AbstractMethodHasImplementation,u,{methodName:T.type==="Identifier"&&!u.computed?T.name:`[${this.input.slice(T.start,T.end)}]`})}return u}tsParseTypeParameterName(){return this.parseIdentifier().name}shouldParseAsAmbientContext(){return!!this.getPluginOption("typescript","dts")}parse(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.parse()}getExpression(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.getExpression()}parseExportSpecifier(r,i,s,n){return!i&&n?(this.parseTypeOnlyImportExportSpecifier(r,!1,s),this.finishNode(r,"ExportSpecifier")):(r.exportKind="value",super.parseExportSpecifier(r,i,s,n))}parseImportSpecifier(r,i,s,n,a){return!i&&n?(this.parseTypeOnlyImportExportSpecifier(r,!0,s),this.finishNode(r,"ImportSpecifier")):(r.importKind="value",super.parseImportSpecifier(r,i,s,n,s?4098:4096))}parseTypeOnlyImportExportSpecifier(r,i,s){let n=i?"imported":"local",a=i?"local":"exported",o=r[n],l,u=!1,c=!0,T=o.loc.start;if(this.isContextual(93)){let E=this.parseIdentifier();if(this.isContextual(93)){let v=this.parseIdentifier();jt(this.state.type)?(u=!0,o=E,l=i?this.parseIdentifier():this.parseModuleExportName(),c=!1):(l=v,c=!1)}else jt(this.state.type)?(c=!1,l=i?this.parseIdentifier():this.parseModuleExportName()):(u=!0,o=E)}else jt(this.state.type)&&(u=!0,i?(o=this.parseIdentifier(!0),this.isContextual(93)||this.checkReservedWord(o.name,o.loc.start,!0,!0)):o=this.parseModuleExportName());u&&s&&this.raise(i?G.TypeModifierIsUsedInTypeImports:G.TypeModifierIsUsedInTypeExports,T),r[n]=o,r[a]=l;let P=i?"importKind":"exportKind";r[P]=u?"type":"value",c&&this.eatContextual(93)&&(r[a]=i?this.parseIdentifier():this.parseModuleExportName()),r[a]||(r[a]=nr(r[n])),i&&this.checkIdentifier(r[a],u?4098:4096)}};function Ag(e){if(e.type!=="MemberExpression")return!1;let{computed:t,property:r}=e;return t&&r.type!=="StringLiteral"&&(r.type!=="TemplateLiteral"||r.expressions.length>0)?!1:kp(e.object)}function vg(e,t){var r;let{type:i}=e;if((r=e.extra)!=null&&r.parenthesized)return!1;if(t){if(i==="Literal"){let{value:s}=e;if(typeof s=="string"||typeof s=="boolean")return!0}}else if(i==="StringLiteral"||i==="BooleanLiteral")return!0;return!!(Dp(e,t)||Cg(e,t)||i==="TemplateLiteral"&&e.expressions.length===0||Ag(e))}function Dp(e,t){return t?e.type==="Literal"&&(typeof e.value=="number"||"bigint"in e):e.type==="NumericLiteral"||e.type==="BigIntLiteral"}function Cg(e,t){if(e.type==="UnaryExpression"){let{operator:r,argument:i}=e;if(r==="-"&&Dp(i,t))return!0}return!1}function kp(e){return e.type==="Identifier"?!0:e.type!=="MemberExpression"||e.computed?!1:kp(e.object)}var yp=sr`placeholders`({ClassNameIsRequired:"A class name is required.",UnexpectedSpace:"Unexpected space in placeholder."}),Ig=e=>class extends e{parsePlaceholder(r){if(this.match(144)){let i=this.startNode();return this.next(),this.assertNoSpace(),i.name=super.parseIdentifier(!0),this.assertNoSpace(),this.expect(144),this.finishPlaceholder(i,r)}}finishPlaceholder(r,i){let s=r;return(!s.expectedNode||!s.type)&&(s=this.finishNode(s,"Placeholder")),s.expectedNode=i,s}getTokenFromCode(r){r===37&&this.input.charCodeAt(this.state.pos+1)===37?this.finishOp(144,2):super.getTokenFromCode(r)}parseExprAtom(r){return this.parsePlaceholder("Expression")||super.parseExprAtom(r)}parseIdentifier(r){return this.parsePlaceholder("Identifier")||super.parseIdentifier(r)}checkReservedWord(r,i,s,n){r!==void 0&&super.checkReservedWord(r,i,s,n)}parseBindingAtom(){return this.parsePlaceholder("Pattern")||super.parseBindingAtom()}isValidLVal(r,i,s){return r==="Placeholder"||super.isValidLVal(r,i,s)}toAssignable(r,i){r&&r.type==="Placeholder"&&r.expectedNode==="Expression"?r.expectedNode="Pattern":super.toAssignable(r,i)}chStartsBindingIdentifier(r,i){return!!(super.chStartsBindingIdentifier(r,i)||this.lookahead().type===144)}verifyBreakContinue(r,i){r.label&&r.label.type==="Placeholder"||super.verifyBreakContinue(r,i)}parseExpressionStatement(r,i){var s;if(i.type!=="Placeholder"||(s=i.extra)!=null&&s.parenthesized)return super.parseExpressionStatement(r,i);if(this.match(14)){let a=r;return a.label=this.finishPlaceholder(i,"Identifier"),this.next(),a.body=super.parseStatementOrSloppyAnnexBFunctionDeclaration(),this.finishNode(a,"LabeledStatement")}this.semicolon();let n=r;return n.name=i.name,this.finishPlaceholder(n,"Statement")}parseBlock(r,i,s){return this.parsePlaceholder("BlockStatement")||super.parseBlock(r,i,s)}parseFunctionId(r){return this.parsePlaceholder("Identifier")||super.parseFunctionId(r)}parseClass(r,i,s){let n=i?"ClassDeclaration":"ClassExpression";this.next();let a=this.state.strict,o=this.parsePlaceholder("Identifier");if(o)if(this.match(81)||this.match(144)||this.match(5))r.id=o;else{if(s||!i)return r.id=null,r.body=this.finishPlaceholder(o,"ClassBody"),this.finishNode(r,n);throw this.raise(yp.ClassNameIsRequired,this.state.startLoc)}else this.parseClassId(r,i,s);return super.parseClassSuper(r),r.body=this.parsePlaceholder("ClassBody")||super.parseClassBody(!!r.superClass,a),this.finishNode(r,n)}parseExport(r,i){let s=this.parsePlaceholder("Identifier");if(!s)return super.parseExport(r,i);let n=r;if(!this.isContextual(98)&&!this.match(12))return n.specifiers=[],n.source=null,n.declaration=this.finishPlaceholder(s,"Declaration"),this.finishNode(n,"ExportNamedDeclaration");this.expectPlugin("exportDefaultFrom");let a=this.startNode();return a.exported=s,n.specifiers=[this.finishNode(a,"ExportDefaultSpecifier")],super.parseExport(n,i)}isExportDefaultSpecifier(){if(this.match(65)){let r=this.nextTokenStart();if(this.isUnparsedContextual(r,"from")&&this.input.startsWith(Tr(144),this.nextTokenStartSince(r+4)))return!0}return super.isExportDefaultSpecifier()}maybeParseExportDefaultSpecifier(r,i){var s;return(s=r.specifiers)!=null&&s.length?!0:super.maybeParseExportDefaultSpecifier(r,i)}checkExport(r){let{specifiers:i}=r;i!=null&&i.length&&(r.specifiers=i.filter(s=>s.exported.type==="Placeholder")),super.checkExport(r),r.specifiers=i}parseImport(r){let i=this.parsePlaceholder("Identifier");if(!i)return super.parseImport(r);if(r.specifiers=[],!this.isContextual(98)&&!this.match(12))return r.source=this.finishPlaceholder(i,"StringLiteral"),this.semicolon(),this.finishNode(r,"ImportDeclaration");let s=this.startNodeAtNode(i);return s.local=i,r.specifiers.push(this.finishNode(s,"ImportDefaultSpecifier")),this.eat(12)&&(this.maybeParseStarImportSpecifier(r)||this.parseNamedImportSpecifiers(r)),this.expectContextual(98),r.source=this.parseImportSource(),this.semicolon(),this.finishNode(r,"ImportDeclaration")}parseImportSource(){return this.parsePlaceholder("StringLiteral")||super.parseImportSource()}assertNoSpace(){this.state.start>this.state.lastTokEndLoc.index&&this.raise(yp.UnexpectedSpace,this.state.lastTokEndLoc)}},wg=e=>class extends e{parseV8Intrinsic(){if(this.match(54)){let r=this.state.startLoc,i=this.startNode();if(this.next(),Ie(this.state.type)){let s=this.parseIdentifierName(),n=this.createIdentifier(i,s);if(n.type="V8IntrinsicIdentifier",this.match(10))return n}this.unexpected(r)}}parseExprAtom(r){return this.parseV8Intrinsic()||super.parseExprAtom(r)}},Tp=["minimal","fsharp","hack","smart"],gp=["^^","@@","^","%","#"];function Og(e){if(e.has("decorators")){if(e.has("decorators-legacy"))throw new Error("Cannot use the decorators and decorators-legacy plugin together");let r=e.get("decorators").decoratorsBeforeExport;if(r!=null&&typeof r!="boolean")throw new Error("'decoratorsBeforeExport' must be a boolean, if specified.");let i=e.get("decorators").allowCallParenthesized;if(i!=null&&typeof i!="boolean")throw new Error("'allowCallParenthesized' must be a boolean.")}if(e.has("flow")&&e.has("typescript"))throw new Error("Cannot combine flow and typescript plugins.");if(e.has("placeholders")&&e.has("v8intrinsic"))throw new Error("Cannot combine placeholders and v8intrinsic plugins.");if(e.has("pipelineOperator")){var t;let r=e.get("pipelineOperator").proposal;if(!Tp.includes(r)){let s=Tp.map(n=>`"${n}"`).join(", ");throw new Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${s}.`)}let i=((t=e.get("recordAndTuple"))==null?void 0:t.syntaxType)==="hash";if(r==="hack"){if(e.has("placeholders"))throw new Error("Cannot combine placeholders plugin and Hack-style pipes.");if(e.has("v8intrinsic"))throw new Error("Cannot combine v8intrinsic plugin and Hack-style pipes.");let s=e.get("pipelineOperator").topicToken;if(!gp.includes(s)){let n=gp.map(a=>`"${a}"`).join(", ");throw new Error(`"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: ${n}.`)}if(s==="#"&&i)throw new Error(`Plugin conflict between \`["pipelineOperator", { proposal: "hack", topicToken: "#" }]\` and \`${JSON.stringify(["recordAndTuple",e.get("recordAndTuple")])}\`.`)}else if(r==="smart"&&i)throw new Error(`Plugin conflict between \`["pipelineOperator", { proposal: "smart" }]\` and \`${JSON.stringify(["recordAndTuple",e.get("recordAndTuple")])}\`.`)}if(e.has("moduleAttributes")){if(e.has("importAttributes")||e.has("importAssertions"))throw new Error("Cannot combine importAssertions, importAttributes and moduleAttributes plugins.");if(e.get("moduleAttributes").version!=="may-2020")throw new Error("The 'moduleAttributes' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is 'may-2020'.")}if(e.has("importAttributes")&&e.has("importAssertions"))throw new Error("Cannot combine importAssertions and importAttributes plugins.");if(e.has("recordAndTuple")){let r=e.get("recordAndTuple").syntaxType;if(r!=null){let i=["hash","bar"];if(!i.includes(r))throw new Error("The 'syntaxType' option of the 'recordAndTuple' plugin must be one of: "+i.map(s=>`'${s}'`).join(", "))}}if(e.has("asyncDoExpressions")&&!e.has("doExpressions")){let r=new Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.");throw r.missingPlugins="doExpressions",r}if(e.has("optionalChainingAssign")&&e.get("optionalChainingAssign").version!=="2023-07")throw new Error("The 'optionalChainingAssign' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is '2023-07'.")}var Lp={estree:_0,jsx:bg,flow:Tg,typescript:Pg,v8intrinsic:wg,placeholders:Ig},Ng=Object.keys(Lp),Ta={sourceType:"script",sourceFilename:void 0,startColumn:0,startLine:1,allowAwaitOutsideFunction:!1,allowReturnOutsideFunction:!1,allowNewTargetOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,allowUndeclaredExports:!1,plugins:[],strictMode:null,ranges:!1,tokens:!1,createImportExpressions:!1,createParenthesizedExpressions:!1,errorRecovery:!1,attachComment:!0,annexB:!0};function _g(e){if(e==null)return Object.assign({},Ta);if(e.annexB!=null&&e.annexB!==!1)throw new Error("The `annexB` option can only be set to `false`.");let t={};for(let i of Object.keys(Ta)){var r;t[i]=(r=e[i])!=null?r:Ta[i]}return t}var ja=class extends Fa{checkProto(t,r,i,s){if(t.type==="SpreadElement"||this.isObjectMethod(t)||t.computed||t.shorthand)return;let n=t.key;if((n.type==="Identifier"?n.name:n.value)==="__proto__"){if(r){this.raise(S.RecordNoProto,n);return}i.used&&(s?s.doubleProtoLoc===null&&(s.doubleProtoLoc=n.loc.start):this.raise(S.DuplicateProto,n)),i.used=!0}}shouldExitDescending(t,r){return t.type==="ArrowFunctionExpression"&&t.start===r}getExpression(){this.enterInitialScopes(),this.nextToken();let t=this.parseExpression();return this.match(139)||this.unexpected(),this.finalizeRemainingComments(),t.comments=this.comments,t.errors=this.state.errors,this.options.tokens&&(t.tokens=this.tokens),t}parseExpression(t,r){return t?this.disallowInAnd(()=>this.parseExpressionBase(r)):this.allowInAnd(()=>this.parseExpressionBase(r))}parseExpressionBase(t){let r=this.state.startLoc,i=this.parseMaybeAssign(t);if(this.match(12)){let s=this.startNodeAt(r);for(s.expressions=[i];this.eat(12);)s.expressions.push(this.parseMaybeAssign(t));return this.toReferencedList(s.expressions),this.finishNode(s,"SequenceExpression")}return i}parseMaybeAssignDisallowIn(t,r){return this.disallowInAnd(()=>this.parseMaybeAssign(t,r))}parseMaybeAssignAllowIn(t,r){return this.allowInAnd(()=>this.parseMaybeAssign(t,r))}setOptionalParametersError(t,r){var i;t.optionalParametersLoc=(i=r?.loc)!=null?i:this.state.startLoc}parseMaybeAssign(t,r){let i=this.state.startLoc;if(this.isContextual(108)&&this.prodParam.hasYield){let o=this.parseYield();return r&&(o=r.call(this,o,i)),o}let s;t?s=!1:(t=new ai,s=!0);let{type:n}=this.state;(n===10||Ie(n))&&(this.state.potentialArrowAt=this.state.start);let a=this.parseMaybeConditional(t);if(r&&(a=r.call(this,a,i)),B0(this.state.type)){let o=this.startNodeAt(i),l=this.state.value;if(o.operator=l,this.match(29)){this.toAssignable(a,!0),o.left=a;let u=i.index;t.doubleProtoLoc!=null&&t.doubleProtoLoc.index>=u&&(t.doubleProtoLoc=null),t.shorthandAssignLoc!=null&&t.shorthandAssignLoc.index>=u&&(t.shorthandAssignLoc=null),t.privateKeyLoc!=null&&t.privateKeyLoc.index>=u&&(this.checkDestructuringPrivate(t),t.privateKeyLoc=null)}else o.left=a;return this.next(),o.right=this.parseMaybeAssign(),this.checkLVal(a,this.finishNode(o,"AssignmentExpression")),o}else s&&this.checkExpressionErrors(t,!0);return a}parseMaybeConditional(t){let r=this.state.startLoc,i=this.state.potentialArrowAt,s=this.parseExprOps(t);return this.shouldExitDescending(s,i)?s:this.parseConditional(s,r,t)}parseConditional(t,r,i){if(this.eat(17)){let s=this.startNodeAt(r);return s.test=t,s.consequent=this.parseMaybeAssignAllowIn(),this.expect(14),s.alternate=this.parseMaybeAssign(),this.finishNode(s,"ConditionalExpression")}return t}parseMaybeUnaryOrPrivate(t){return this.match(138)?this.parsePrivateName():this.parseMaybeUnary(t)}parseExprOps(t){let r=this.state.startLoc,i=this.state.potentialArrowAt,s=this.parseMaybeUnaryOrPrivate(t);return this.shouldExitDescending(s,i)?s:this.parseExprOp(s,r,-1)}parseExprOp(t,r,i){if(this.isPrivateName(t)){let n=this.getPrivateNameSV(t);(i>=ks(58)||!this.prodParam.hasIn||!this.match(58))&&this.raise(S.PrivateInExpectedIn,t,{identifierName:n}),this.classScope.usePrivateName(n,t.loc.start)}let s=this.state.type;if(j0(s)&&(this.prodParam.hasIn||!this.match(58))){let n=ks(s);if(n>i){if(s===39){if(this.expectPlugin("pipelineOperator"),this.state.inFSharpPipelineDirectBody)return t;this.checkPipelineAtInfixOperator(t,r)}let a=this.startNodeAt(r);a.left=t,a.operator=this.state.value;let o=s===41||s===42,l=s===40;if(l&&(n=ks(42)),this.next(),s===39&&this.hasPlugin(["pipelineOperator",{proposal:"minimal"}])&&this.state.type===96&&this.prodParam.hasAwait)throw this.raise(S.UnexpectedAwaitAfterPipelineBody,this.state.startLoc);a.right=this.parseExprOpRightExpr(s,n);let u=this.finishNode(a,o||l?"LogicalExpression":"BinaryExpression"),c=this.state.type;if(l&&(c===41||c===42)||o&&c===40)throw this.raise(S.MixingCoalesceWithLogical,this.state.startLoc);return this.parseExprOp(u,r,i)}}return t}parseExprOpRightExpr(t,r){let i=this.state.startLoc;switch(t){case 39:switch(this.getPluginOption("pipelineOperator","proposal")){case"hack":return this.withTopicBindingContext(()=>this.parseHackPipeBody());case"smart":return this.withTopicBindingContext(()=>{if(this.prodParam.hasYield&&this.isContextual(108))throw this.raise(S.PipeBodyIsTighter,this.state.startLoc);return this.parseSmartPipelineBodyInStyle(this.parseExprOpBaseRightExpr(t,r),i)});case"fsharp":return this.withSoloAwaitPermittingContext(()=>this.parseFSharpPipelineBody(r))}default:return this.parseExprOpBaseRightExpr(t,r)}}parseExprOpBaseRightExpr(t,r){let i=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnaryOrPrivate(),i,K0(t)?r-1:r)}parseHackPipeBody(){var t;let{startLoc:r}=this.state,i=this.parseMaybeAssign();return C0.has(i.type)&&!((t=i.extra)!=null&&t.parenthesized)&&this.raise(S.PipeUnparenthesizedBody,r,{type:i.type}),this.topicReferenceWasUsedInCurrentContext()||this.raise(S.PipeTopicUnused,r),i}checkExponentialAfterUnary(t){this.match(57)&&this.raise(S.UnexpectedTokenUnaryExponentiation,t.argument)}parseMaybeUnary(t,r){let i=this.state.startLoc,s=this.isContextual(96);if(s&&this.recordAwaitIfAllowed()){this.next();let l=this.parseAwait(i);return r||this.checkExponentialAfterUnary(l),l}let n=this.match(34),a=this.startNode();if(q0(this.state.type)){a.operator=this.state.value,a.prefix=!0,this.match(72)&&this.expectPlugin("throwExpressions");let l=this.match(89);if(this.next(),a.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(t,!0),this.state.strict&&l){let u=a.argument;u.type==="Identifier"?this.raise(S.StrictDelete,a):this.hasPropertyAsPrivateName(u)&&this.raise(S.DeletePrivateField,a)}if(!n)return r||this.checkExponentialAfterUnary(a),this.finishNode(a,"UnaryExpression")}let o=this.parseUpdate(a,n,t);if(s){let{type:l}=this.state;if((this.hasPlugin("v8intrinsic")?Sa(l):Sa(l)&&!this.match(54))&&!this.isAmbiguousAwait())return this.raiseOverwrite(S.AwaitNotInAsyncContext,i),this.parseAwait(i)}return o}parseUpdate(t,r,i){if(r){let a=t;return this.checkLVal(a.argument,this.finishNode(a,"UpdateExpression")),t}let s=this.state.startLoc,n=this.parseExprSubscripts(i);if(this.checkExpressionErrors(i,!1))return n;for(;R0(this.state.type)&&!this.canInsertSemicolon();){let a=this.startNodeAt(s);a.operator=this.state.value,a.prefix=!1,a.argument=n,this.next(),this.checkLVal(n,n=this.finishNode(a,"UpdateExpression"))}return n}parseExprSubscripts(t){let r=this.state.startLoc,i=this.state.potentialArrowAt,s=this.parseExprAtom(t);return this.shouldExitDescending(s,i)?s:this.parseSubscripts(s,r)}parseSubscripts(t,r,i){let s={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(t),stop:!1};do t=this.parseSubscript(t,r,i,s),s.maybeAsyncArrow=!1;while(!s.stop);return t}parseSubscript(t,r,i,s){let{type:n}=this.state;if(!i&&n===15)return this.parseBind(t,r,i,s);if(Bs(n))return this.parseTaggedTemplateExpression(t,r,s);let a=!1;if(n===18){if(i&&(this.raise(S.OptionalChainingNoNew,this.state.startLoc),this.lookaheadCharCode()===40))return s.stop=!0,t;s.optionalChainMember=a=!0,this.next()}if(!i&&this.match(10))return this.parseCoverCallAndAsyncArrowHead(t,r,s,a);{let o=this.eat(0);return o||a||this.eat(16)?this.parseMember(t,r,s,o,a):(s.stop=!0,t)}}parseMember(t,r,i,s,n){let a=this.startNodeAt(r);return a.object=t,a.computed=s,s?(a.property=this.parseExpression(),this.expect(3)):this.match(138)?(t.type==="Super"&&this.raise(S.SuperPrivateField,r),this.classScope.usePrivateName(this.state.value,this.state.startLoc),a.property=this.parsePrivateName()):a.property=this.parseIdentifier(!0),i.optionalChainMember?(a.optional=n,this.finishNode(a,"OptionalMemberExpression")):this.finishNode(a,"MemberExpression")}parseBind(t,r,i,s){let n=this.startNodeAt(r);return n.object=t,this.next(),n.callee=this.parseNoCallExpr(),s.stop=!0,this.parseSubscripts(this.finishNode(n,"BindExpression"),r,i)}parseCoverCallAndAsyncArrowHead(t,r,i,s){let n=this.state.maybeInArrowParameters,a=null;this.state.maybeInArrowParameters=!0,this.next();let o=this.startNodeAt(r);o.callee=t;let{maybeAsyncArrow:l,optionalChainMember:u}=i;l&&(this.expressionScope.enter(ug()),a=new ai),u&&(o.optional=s),s?o.arguments=this.parseCallExpressionArguments(11):o.arguments=this.parseCallExpressionArguments(11,t.type==="Import",t.type!=="Super",o,a);let c=this.finishCallExpression(o,u);return l&&this.shouldParseAsyncArrow()&&!s?(i.stop=!0,this.checkDestructuringPrivate(a),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),c=this.parseAsyncArrowFromCallExpression(this.startNodeAt(r),c)):(l&&(this.checkExpressionErrors(a,!0),this.expressionScope.exit()),this.toReferencedArguments(c)),this.state.maybeInArrowParameters=n,c}toReferencedArguments(t,r){this.toReferencedListDeep(t.arguments,r)}parseTaggedTemplateExpression(t,r,i){let s=this.startNodeAt(r);return s.tag=t,s.quasi=this.parseTemplate(!0),i.optionalChainMember&&this.raise(S.OptionalChainingNoTemplate,r),this.finishNode(s,"TaggedTemplateExpression")}atPossibleAsyncArrow(t){return t.type==="Identifier"&&t.name==="async"&&this.state.lastTokEndLoc.index===t.end&&!this.canInsertSemicolon()&&t.end-t.start===5&&t.start===this.state.potentialArrowAt}expectImportAttributesPlugin(){this.hasPlugin("importAssertions")||this.expectPlugin("importAttributes")}finishCallExpression(t,r){if(t.callee.type==="Import")if(t.arguments.length===2&&(this.hasPlugin("moduleAttributes")||this.expectImportAttributesPlugin()),t.arguments.length===0||t.arguments.length>2)this.raise(S.ImportCallArity,t,{maxArgumentCount:this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions")||this.hasPlugin("moduleAttributes")?2:1});else for(let i of t.arguments)i.type==="SpreadElement"&&this.raise(S.ImportCallSpreadArgument,i);return this.finishNode(t,r?"OptionalCallExpression":"CallExpression")}parseCallExpressionArguments(t,r,i,s,n){let a=[],o=!0,l=this.state.inFSharpPipelineDirectBody;for(this.state.inFSharpPipelineDirectBody=!1;!this.eat(t);){if(o)o=!1;else if(this.expect(12),this.match(t)){r&&!this.hasPlugin("importAttributes")&&!this.hasPlugin("importAssertions")&&!this.hasPlugin("moduleAttributes")&&this.raise(S.ImportCallArgumentTrailingComma,this.state.lastTokStartLoc),s&&this.addTrailingCommaExtraToNode(s),this.next();break}a.push(this.parseExprListItem(!1,n,i))}return this.state.inFSharpPipelineDirectBody=l,a}shouldParseAsyncArrow(){return this.match(19)&&!this.canInsertSemicolon()}parseAsyncArrowFromCallExpression(t,r){var i;return this.resetPreviousNodeTrailingComments(r),this.expect(19),this.parseArrowExpression(t,r.arguments,!0,(i=r.extra)==null?void 0:i.trailingCommaLoc),r.innerComments&&Ui(t,r.innerComments),r.callee.trailingComments&&Ui(t,r.callee.trailingComments),t}parseNoCallExpr(){let t=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),t,!0)}parseExprAtom(t){let r,i=null,{type:s}=this.state;switch(s){case 79:return this.parseSuper();case 83:return r=this.startNode(),this.next(),this.match(16)?this.parseImportMetaProperty(r):this.match(10)?this.options.createImportExpressions?this.parseImportCall(r):this.finishNode(r,"Import"):(this.raise(S.UnsupportedImport,this.state.lastTokStartLoc),this.finishNode(r,"Import"));case 78:return r=this.startNode(),this.next(),this.finishNode(r,"ThisExpression");case 90:return this.parseDo(this.startNode(),!1);case 56:case 31:return this.readRegexp(),this.parseRegExpLiteral(this.state.value);case 134:return this.parseNumericLiteral(this.state.value);case 135:return this.parseBigIntLiteral(this.state.value);case 136:return this.parseDecimalLiteral(this.state.value);case 133:return this.parseStringLiteral(this.state.value);case 84:return this.parseNullLiteral();case 85:return this.parseBooleanLiteral(!0);case 86:return this.parseBooleanLiteral(!1);case 10:{let n=this.state.potentialArrowAt===this.state.start;return this.parseParenAndDistinguishExpression(n)}case 2:case 1:return this.parseArrayLike(this.state.type===2?4:3,!1,!0);case 0:return this.parseArrayLike(3,!0,!1,t);case 6:case 7:return this.parseObjectLike(this.state.type===6?9:8,!1,!0);case 5:return this.parseObjectLike(8,!1,!1,t);case 68:return this.parseFunctionOrFunctionSent();case 26:i=this.parseDecorators();case 80:return this.parseClass(this.maybeTakeDecorators(i,this.startNode()),!1);case 77:return this.parseNewOrNewTarget();case 25:case 24:return this.parseTemplate(!1);case 15:{r=this.startNode(),this.next(),r.object=null;let n=r.callee=this.parseNoCallExpr();if(n.type==="MemberExpression")return this.finishNode(r,"BindExpression");throw this.raise(S.UnsupportedBind,n)}case 138:return this.raise(S.PrivateInExpectedIn,this.state.startLoc,{identifierName:this.state.value}),this.parsePrivateName();case 33:return this.parseTopicReferenceThenEqualsSign(54,"%");case 32:return this.parseTopicReferenceThenEqualsSign(44,"^");case 37:case 38:return this.parseTopicReference("hack");case 44:case 54:case 27:{let n=this.getPluginOption("pipelineOperator","proposal");if(n)return this.parseTopicReference(n);this.unexpected();break}case 47:{let n=this.input.codePointAt(this.nextTokenStart());ir(n)||n===62?this.expectOnePlugin(["jsx","flow","typescript"]):this.unexpected();break}default:if(Ie(s)){if(this.isContextual(127)&&this.lookaheadInLineCharCode()===123)return this.parseModuleExpression();let n=this.state.potentialArrowAt===this.state.start,a=this.state.containsEsc,o=this.parseIdentifier();if(!a&&o.name==="async"&&!this.canInsertSemicolon()){let{type:l}=this.state;if(l===68)return this.resetPreviousNodeTrailingComments(o),this.next(),this.parseAsyncFunctionExpression(this.startNodeAtNode(o));if(Ie(l))return this.lookaheadCharCode()===61?this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(o)):o;if(l===90)return this.resetPreviousNodeTrailingComments(o),this.parseDo(this.startNodeAtNode(o),!0)}return n&&this.match(19)&&!this.canInsertSemicolon()?(this.next(),this.parseArrowExpression(this.startNodeAtNode(o),[o],!1)):o}else this.unexpected()}}parseTopicReferenceThenEqualsSign(t,r){let i=this.getPluginOption("pipelineOperator","proposal");if(i)return this.state.type=t,this.state.value=r,this.state.pos--,this.state.end--,this.state.endLoc=ut(this.state.endLoc,-1),this.parseTopicReference(i);this.unexpected()}parseTopicReference(t){let r=this.startNode(),i=this.state.startLoc,s=this.state.type;return this.next(),this.finishTopicReference(r,i,t,s)}finishTopicReference(t,r,i,s){if(this.testTopicReferenceConfiguration(i,r,s)){let n=i==="smart"?"PipelinePrimaryTopicReference":"TopicReference";return this.topicReferenceIsAllowedInCurrentContext()||this.raise(i==="smart"?S.PrimaryTopicNotAllowed:S.PipeTopicUnbound,r),this.registerTopicReference(),this.finishNode(t,n)}else throw this.raise(S.PipeTopicUnconfiguredToken,r,{token:Tr(s)})}testTopicReferenceConfiguration(t,r,i){switch(t){case"hack":return this.hasPlugin(["pipelineOperator",{topicToken:Tr(i)}]);case"smart":return i===27;default:throw this.raise(S.PipeTopicRequiresHackPipes,r)}}parseAsyncArrowUnaryFunction(t){this.prodParam.enter(Ls(!0,this.prodParam.hasYield));let r=[this.parseIdentifier()];return this.prodParam.exit(),this.hasPrecedingLineBreak()&&this.raise(S.LineTerminatorBeforeArrow,this.state.curPosition()),this.expect(19),this.parseArrowExpression(t,r,!0)}parseDo(t,r){this.expectPlugin("doExpressions"),r&&this.expectPlugin("asyncDoExpressions"),t.async=r,this.next();let i=this.state.labels;return this.state.labels=[],r?(this.prodParam.enter(2),t.body=this.parseBlock(),this.prodParam.exit()):t.body=this.parseBlock(),this.state.labels=i,this.finishNode(t,"DoExpression")}parseSuper(){let t=this.startNode();return this.next(),this.match(10)&&!this.scope.allowDirectSuper&&!this.options.allowSuperOutsideMethod?this.raise(S.SuperNotAllowed,t):!this.scope.allowSuper&&!this.options.allowSuperOutsideMethod&&this.raise(S.UnexpectedSuper,t),!this.match(10)&&!this.match(0)&&!this.match(16)&&this.raise(S.UnsupportedSuper,t),this.finishNode(t,"Super")}parsePrivateName(){let t=this.startNode(),r=this.startNodeAt(ut(this.state.startLoc,1)),i=this.state.value;return this.next(),t.id=this.createIdentifier(r,i),this.finishNode(t,"PrivateName")}parseFunctionOrFunctionSent(){let t=this.startNode();if(this.next(),this.prodParam.hasYield&&this.match(16)){let r=this.createIdentifier(this.startNodeAtNode(t),"function");return this.next(),this.match(103)?this.expectPlugin("functionSent"):this.hasPlugin("functionSent")||this.unexpected(),this.parseMetaProperty(t,r,"sent")}return this.parseFunction(t)}parseMetaProperty(t,r,i){t.meta=r;let s=this.state.containsEsc;return t.property=this.parseIdentifier(!0),(t.property.name!==i||s)&&this.raise(S.UnsupportedMetaProperty,t.property,{target:r.name,onlyValidPropertyName:i}),this.finishNode(t,"MetaProperty")}parseImportMetaProperty(t){let r=this.createIdentifier(this.startNodeAtNode(t),"import");if(this.next(),this.isContextual(101))this.inModule||this.raise(S.ImportMetaOutsideModule,r),this.sawUnambiguousESM=!0;else if(this.isContextual(105)||this.isContextual(97)){let i=this.isContextual(105);if(i||this.unexpected(),this.expectPlugin(i?"sourcePhaseImports":"deferredImportEvaluation"),!this.options.createImportExpressions)throw this.raise(S.DynamicImportPhaseRequiresImportExpressions,this.state.startLoc,{phase:this.state.value});return this.next(),t.phase=i?"source":"defer",this.parseImportCall(t)}return this.parseMetaProperty(t,r,"meta")}parseLiteralAtNode(t,r,i){return this.addExtra(i,"rawValue",t),this.addExtra(i,"raw",this.input.slice(i.start,this.state.end)),i.value=t,this.next(),this.finishNode(i,r)}parseLiteral(t,r){let i=this.startNode();return this.parseLiteralAtNode(t,r,i)}parseStringLiteral(t){return this.parseLiteral(t,"StringLiteral")}parseNumericLiteral(t){return this.parseLiteral(t,"NumericLiteral")}parseBigIntLiteral(t){return this.parseLiteral(t,"BigIntLiteral")}parseDecimalLiteral(t){return this.parseLiteral(t,"DecimalLiteral")}parseRegExpLiteral(t){let r=this.startNode();return this.addExtra(r,"raw",this.input.slice(r.start,this.state.end)),r.pattern=t.pattern,r.flags=t.flags,this.next(),this.finishNode(r,"RegExpLiteral")}parseBooleanLiteral(t){let r=this.startNode();return r.value=t,this.next(),this.finishNode(r,"BooleanLiteral")}parseNullLiteral(){let t=this.startNode();return this.next(),this.finishNode(t,"NullLiteral")}parseParenAndDistinguishExpression(t){let r=this.state.startLoc,i;this.next(),this.expressionScope.enter(lg());let s=this.state.maybeInArrowParameters,n=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=!0,this.state.inFSharpPipelineDirectBody=!1;let a=this.state.startLoc,o=[],l=new ai,u=!0,c,T;for(;!this.match(11);){if(u)u=!1;else if(this.expect(12,l.optionalParametersLoc===null?null:l.optionalParametersLoc),this.match(11)){T=this.state.startLoc;break}if(this.match(21)){let v=this.state.startLoc;if(c=this.state.startLoc,o.push(this.parseParenItem(this.parseRestBinding(),v)),!this.checkCommaAfterRest(41))break}else o.push(this.parseMaybeAssignAllowIn(l,this.parseParenItem))}let P=this.state.lastTokEndLoc;this.expect(11),this.state.maybeInArrowParameters=s,this.state.inFSharpPipelineDirectBody=n;let E=this.startNodeAt(r);return t&&this.shouldParseArrow(o)&&(E=this.parseArrow(E))?(this.checkDestructuringPrivate(l),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),this.parseArrowExpression(E,o,!1),E):(this.expressionScope.exit(),o.length||this.unexpected(this.state.lastTokStartLoc),T&&this.unexpected(T),c&&this.unexpected(c),this.checkExpressionErrors(l,!0),this.toReferencedListDeep(o,!0),o.length>1?(i=this.startNodeAt(a),i.expressions=o,this.finishNode(i,"SequenceExpression"),this.resetEndLocation(i,P)):i=o[0],this.wrapParenthesis(r,i))}wrapParenthesis(t,r){if(!this.options.createParenthesizedExpressions)return this.addExtra(r,"parenthesized",!0),this.addExtra(r,"parenStart",t.index),this.takeSurroundingComments(r,t.index,this.state.lastTokEndLoc.index),r;let i=this.startNodeAt(t);return i.expression=r,this.finishNode(i,"ParenthesizedExpression")}shouldParseArrow(t){return!this.canInsertSemicolon()}parseArrow(t){if(this.eat(19))return t}parseParenItem(t,r){return t}parseNewOrNewTarget(){let t=this.startNode();if(this.next(),this.match(16)){let r=this.createIdentifier(this.startNodeAtNode(t),"new");this.next();let i=this.parseMetaProperty(t,r,"target");return!this.scope.inNonArrowFunction&&!this.scope.inClass&&!this.options.allowNewTargetOutsideFunction&&this.raise(S.UnexpectedNewTarget,i),i}return this.parseNew(t)}parseNew(t){if(this.parseNewCallee(t),this.eat(10)){let r=this.parseExprList(11);this.toReferencedList(r),t.arguments=r}else t.arguments=[];return this.finishNode(t,"NewExpression")}parseNewCallee(t){let r=this.match(83),i=this.parseNoCallExpr();t.callee=i,r&&(i.type==="Import"||i.type==="ImportExpression")&&this.raise(S.ImportCallNotNewExpression,i)}parseTemplateElement(t){let{start:r,startLoc:i,end:s,value:n}=this.state,a=r+1,o=this.startNodeAt(ut(i,1));n===null&&(t||this.raise(S.InvalidEscapeSequenceTemplate,ut(this.state.firstInvalidTemplateEscapePos,1)));let l=this.match(24),u=l?-1:-2,c=s+u;o.value={raw:this.input.slice(a,c).replace(/\r\n?/g,`
|
|
10
|
-
`),cooked:n===null?null:n.slice(1,u)},o.tail=l,this.next();let T=this.finishNode(o,"TemplateElement");return this.resetEndLocation(T,ut(this.state.lastTokEndLoc,u)),T}parseTemplate(t){let r=this.startNode(),i=this.parseTemplateElement(t),s=[i],n=[];for(;!i.tail;)n.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),s.push(i=this.parseTemplateElement(t));return r.expressions=n,r.quasis=s,this.finishNode(r,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(t,r,i,s){i&&this.expectPlugin("recordAndTuple");let n=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let a=Object.create(null),o=!0,l=this.startNode();for(l.properties=[],this.next();!this.match(t);){if(o)o=!1;else if(this.expect(12),this.match(t)){this.addTrailingCommaExtraToNode(l);break}let c;r?c=this.parseBindingProperty():(c=this.parsePropertyDefinition(s),this.checkProto(c,i,a,s)),i&&!this.isObjectProperty(c)&&c.type!=="SpreadElement"&&this.raise(S.InvalidRecordProperty,c),c.shorthand&&this.addExtra(c,"shorthand",!0),l.properties.push(c)}this.next(),this.state.inFSharpPipelineDirectBody=n;let u="ObjectExpression";return r?u="ObjectPattern":i&&(u="RecordExpression"),this.finishNode(l,u)}addTrailingCommaExtraToNode(t){this.addExtra(t,"trailingComma",this.state.lastTokStartLoc.index),this.addExtra(t,"trailingCommaLoc",this.state.lastTokStartLoc,!1)}maybeAsyncOrAccessorProp(t){return!t.computed&&t.key.type==="Identifier"&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))}parsePropertyDefinition(t){let r=[];if(this.match(26))for(this.hasPlugin("decorators")&&this.raise(S.UnsupportedPropertyDecorator,this.state.startLoc);this.match(26);)r.push(this.parseDecorator());let i=this.startNode(),s=!1,n=!1,a;if(this.match(21))return r.length&&this.unexpected(),this.parseSpread();r.length&&(i.decorators=r,r=[]),i.method=!1,t&&(a=this.state.startLoc);let o=this.eat(55);this.parsePropertyNamePrefixOperator(i);let l=this.state.containsEsc;if(this.parsePropertyName(i,t),!o&&!l&&this.maybeAsyncOrAccessorProp(i)){let{key:u}=i,c=u.name;c==="async"&&!this.hasPrecedingLineBreak()&&(s=!0,this.resetPreviousNodeTrailingComments(u),o=this.eat(55),this.parsePropertyName(i)),(c==="get"||c==="set")&&(n=!0,this.resetPreviousNodeTrailingComments(u),i.kind=c,this.match(55)&&(o=!0,this.raise(S.AccessorIsGenerator,this.state.curPosition(),{kind:c}),this.next()),this.parsePropertyName(i))}return this.parseObjPropValue(i,a,o,s,!1,n,t)}getGetterSetterExpectedParamCount(t){return t.kind==="get"?0:1}getObjectOrClassMethodParams(t){return t.params}checkGetterSetterParams(t){var r;let i=this.getGetterSetterExpectedParamCount(t),s=this.getObjectOrClassMethodParams(t);s.length!==i&&this.raise(t.kind==="get"?S.BadGetterArity:S.BadSetterArity,t),t.kind==="set"&&((r=s[s.length-1])==null?void 0:r.type)==="RestElement"&&this.raise(S.BadSetterRestParameter,t)}parseObjectMethod(t,r,i,s,n){if(n){let a=this.parseMethod(t,r,!1,!1,!1,"ObjectMethod");return this.checkGetterSetterParams(a),a}if(i||r||this.match(10))return s&&this.unexpected(),t.kind="method",t.method=!0,this.parseMethod(t,r,i,!1,!1,"ObjectMethod")}parseObjectProperty(t,r,i,s){if(t.shorthand=!1,this.eat(14))return t.value=i?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowIn(s),this.finishNode(t,"ObjectProperty");if(!t.computed&&t.key.type==="Identifier"){if(this.checkReservedWord(t.key.name,t.key.loc.start,!0,!1),i)t.value=this.parseMaybeDefault(r,nr(t.key));else if(this.match(29)){let n=this.state.startLoc;s!=null?s.shorthandAssignLoc===null&&(s.shorthandAssignLoc=n):this.raise(S.InvalidCoverInitializedName,n),t.value=this.parseMaybeDefault(r,nr(t.key))}else t.value=nr(t.key);return t.shorthand=!0,this.finishNode(t,"ObjectProperty")}}parseObjPropValue(t,r,i,s,n,a,o){let l=this.parseObjectMethod(t,i,s,n,a)||this.parseObjectProperty(t,r,n,o);return l||this.unexpected(),l}parsePropertyName(t,r){if(this.eat(0))t.computed=!0,t.key=this.parseMaybeAssignAllowIn(),this.expect(3);else{let{type:i,value:s}=this.state,n;if(jt(i))n=this.parseIdentifier(!0);else switch(i){case 134:n=this.parseNumericLiteral(s);break;case 133:n=this.parseStringLiteral(s);break;case 135:n=this.parseBigIntLiteral(s);break;case 136:n=this.parseDecimalLiteral(s);break;case 138:{let a=this.state.startLoc;r!=null?r.privateKeyLoc===null&&(r.privateKeyLoc=a):this.raise(S.UnexpectedPrivateField,a),n=this.parsePrivateName();break}default:this.unexpected()}t.key=n,i!==138&&(t.computed=!1)}}initFunction(t,r){t.id=null,t.generator=!1,t.async=r}parseMethod(t,r,i,s,n,a,o=!1){this.initFunction(t,i),t.generator=r,this.scope.enter(18|(o?64:0)|(n?32:0)),this.prodParam.enter(Ls(i,t.generator)),this.parseFunctionParams(t,s);let l=this.parseFunctionBodyAndFinish(t,a,!0);return this.prodParam.exit(),this.scope.exit(),l}parseArrayLike(t,r,i,s){i&&this.expectPlugin("recordAndTuple");let n=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let a=this.startNode();return this.next(),a.elements=this.parseExprList(t,!i,s,a),this.state.inFSharpPipelineDirectBody=n,this.finishNode(a,i?"TupleExpression":"ArrayExpression")}parseArrowExpression(t,r,i,s){this.scope.enter(6);let n=Ls(i,!1);!this.match(5)&&this.prodParam.hasIn&&(n|=8),this.prodParam.enter(n),this.initFunction(t,i);let a=this.state.maybeInArrowParameters;return r&&(this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(t,r,s)),this.state.maybeInArrowParameters=!1,this.parseFunctionBody(t,!0),this.prodParam.exit(),this.scope.exit(),this.state.maybeInArrowParameters=a,this.finishNode(t,"ArrowFunctionExpression")}setArrowFunctionParameters(t,r,i){this.toAssignableList(r,i,!1),t.params=r}parseFunctionBodyAndFinish(t,r,i=!1){return this.parseFunctionBody(t,!1,i),this.finishNode(t,r)}parseFunctionBody(t,r,i=!1){let s=r&&!this.match(5);if(this.expressionScope.enter(Np()),s)t.body=this.parseMaybeAssign(),this.checkParams(t,!1,r,!1);else{let n=this.state.strict,a=this.state.labels;this.state.labels=[],this.prodParam.enter(this.prodParam.currentFlags()|4),t.body=this.parseBlock(!0,!1,o=>{let l=!this.isSimpleParamList(t.params);o&&l&&this.raise(S.IllegalLanguageModeDirective,(t.kind==="method"||t.kind==="constructor")&&t.key?t.key.loc.end:t);let u=!n&&this.state.strict;this.checkParams(t,!this.state.strict&&!r&&!i&&!l,r,u),this.state.strict&&t.id&&this.checkIdentifier(t.id,65,u)}),this.prodParam.exit(),this.state.labels=a}this.expressionScope.exit()}isSimpleParameter(t){return t.type==="Identifier"}isSimpleParamList(t){for(let r=0,i=t.length;r<i;r++)if(!this.isSimpleParameter(t[r]))return!1;return!0}checkParams(t,r,i,s=!0){let n=!r&&new Set,a={type:"FormalParameters"};for(let o of t.params)this.checkLVal(o,a,5,n,s)}parseExprList(t,r,i,s){let n=[],a=!0;for(;!this.eat(t);){if(a)a=!1;else if(this.expect(12),this.match(t)){s&&this.addTrailingCommaExtraToNode(s),this.next();break}n.push(this.parseExprListItem(r,i))}return n}parseExprListItem(t,r,i){let s;if(this.match(12))t||this.raise(S.UnexpectedToken,this.state.curPosition(),{unexpected:","}),s=null;else if(this.match(21)){let n=this.state.startLoc;s=this.parseParenItem(this.parseSpread(r),n)}else if(this.match(17)){this.expectPlugin("partialApplication"),i||this.raise(S.UnexpectedArgumentPlaceholder,this.state.startLoc);let n=this.startNode();this.next(),s=this.finishNode(n,"ArgumentPlaceholder")}else s=this.parseMaybeAssignAllowIn(r,this.parseParenItem);return s}parseIdentifier(t){let r=this.startNode(),i=this.parseIdentifierName(t);return this.createIdentifier(r,i)}createIdentifier(t,r){return t.name=r,t.loc.identifierName=r,this.finishNode(t,"Identifier")}parseIdentifierName(t){let r,{startLoc:i,type:s}=this.state;jt(s)?r=this.state.value:this.unexpected();let n=L0(s);return t?n&&this.replaceToken(132):this.checkReservedWord(r,i,n,!1),this.next(),r}checkReservedWord(t,r,i,s){if(t.length>10||!Z0(t))return;if(i&&G0(t)){this.raise(S.UnexpectedKeyword,r,{keyword:t});return}if((this.state.strict?s?Cp:Ap:Pp)(t,this.inModule)){this.raise(S.UnexpectedReservedWord,r,{reservedWord:t});return}else if(t==="yield"){if(this.prodParam.hasYield){this.raise(S.YieldBindingIdentifier,r);return}}else if(t==="await"){if(this.prodParam.hasAwait){this.raise(S.AwaitBindingIdentifier,r);return}if(this.scope.inStaticBlock){this.raise(S.AwaitBindingIdentifierInStaticBlock,r);return}this.expressionScope.recordAsyncArrowParametersError(r)}else if(t==="arguments"&&this.scope.inClassAndNotInNonArrowFunction){this.raise(S.ArgumentsInClass,r);return}}recordAwaitIfAllowed(){let t=this.prodParam.hasAwait||this.options.allowAwaitOutsideFunction&&!this.scope.inFunction;return t&&!this.scope.inFunction&&(this.state.hasTopLevelAwait=!0),t}parseAwait(t){let r=this.startNodeAt(t);return this.expressionScope.recordParameterInitializerError(S.AwaitExpressionFormalParameter,r),this.eat(55)&&this.raise(S.ObsoleteAwaitStar,r),!this.scope.inFunction&&!this.options.allowAwaitOutsideFunction&&(this.isAmbiguousAwait()?this.ambiguousScriptDifferentAst=!0:this.sawUnambiguousESM=!0),this.state.soloAwait||(r.argument=this.parseMaybeUnary(null,!0)),this.finishNode(r,"AwaitExpression")}isAmbiguousAwait(){if(this.hasPrecedingLineBreak())return!0;let{type:t}=this.state;return t===53||t===10||t===0||Bs(t)||t===102&&!this.state.containsEsc||t===137||t===56||this.hasPlugin("v8intrinsic")&&t===54}parseYield(){let t=this.startNode();this.expressionScope.recordParameterInitializerError(S.YieldInParameter,t),this.next();let r=!1,i=null;if(!this.hasPrecedingLineBreak())switch(r=this.eat(55),this.state.type){case 13:case 139:case 8:case 11:case 3:case 9:case 14:case 12:if(!r)break;default:i=this.parseMaybeAssign()}return t.delegate=r,t.argument=i,this.finishNode(t,"YieldExpression")}parseImportCall(t){return this.next(),t.source=this.parseMaybeAssignAllowIn(),(this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions"))&&(t.options=null),this.eat(12)&&(this.expectImportAttributesPlugin(),this.match(11)||(t.options=this.parseMaybeAssignAllowIn(),this.eat(12))),this.expect(11),this.finishNode(t,"ImportExpression")}checkPipelineAtInfixOperator(t,r){this.hasPlugin(["pipelineOperator",{proposal:"smart"}])&&t.type==="SequenceExpression"&&this.raise(S.PipelineHeadSequenceExpression,r)}parseSmartPipelineBodyInStyle(t,r){if(this.isSimpleReference(t)){let i=this.startNodeAt(r);return i.callee=t,this.finishNode(i,"PipelineBareFunction")}else{let i=this.startNodeAt(r);return this.checkSmartPipeTopicBodyEarlyErrors(r),i.expression=t,this.finishNode(i,"PipelineTopicExpression")}}isSimpleReference(t){switch(t.type){case"MemberExpression":return!t.computed&&this.isSimpleReference(t.object);case"Identifier":return!0;default:return!1}}checkSmartPipeTopicBodyEarlyErrors(t){if(this.match(19))throw this.raise(S.PipelineBodyNoArrow,this.state.startLoc);this.topicReferenceWasUsedInCurrentContext()||this.raise(S.PipelineTopicUnused,t)}withTopicBindingContext(t){let r=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return t()}finally{this.state.topicContext=r}}withSmartMixTopicForbiddingContext(t){if(this.hasPlugin(["pipelineOperator",{proposal:"smart"}])){let r=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};try{return t()}finally{this.state.topicContext=r}}else return t()}withSoloAwaitPermittingContext(t){let r=this.state.soloAwait;this.state.soloAwait=!0;try{return t()}finally{this.state.soloAwait=r}}allowInAnd(t){let r=this.prodParam.currentFlags();if(8&~r){this.prodParam.enter(r|8);try{return t()}finally{this.prodParam.exit()}}return t()}disallowInAnd(t){let r=this.prodParam.currentFlags();if(8&r){this.prodParam.enter(r&-9);try{return t()}finally{this.prodParam.exit()}}return t()}registerTopicReference(){this.state.topicContext.maxTopicIndex=0}topicReferenceIsAllowedInCurrentContext(){return this.state.topicContext.maxNumOfResolvableTopics>=1}topicReferenceWasUsedInCurrentContext(){return this.state.topicContext.maxTopicIndex!=null&&this.state.topicContext.maxTopicIndex>=0}parseFSharpPipelineBody(t){let r=this.state.startLoc;this.state.potentialArrowAt=this.state.start;let i=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;let s=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),r,t);return this.state.inFSharpPipelineDirectBody=i,s}parseModuleExpression(){this.expectPlugin("moduleBlocks");let t=this.startNode();this.next(),this.match(5)||this.unexpected(null,5);let r=this.startNodeAt(this.state.endLoc);this.next();let i=this.initializeScopes(!0);this.enterInitialScopes();try{t.body=this.parseProgram(r,8,"module")}finally{i()}return this.finishNode(t,"ModuleExpression")}parsePropertyNamePrefixOperator(t){}},ga={kind:1},Dg={kind:2},kg=/[\uD800-\uDFFF]/u,ba=/in(?:stanceof)?/y;function Lg(e,t){for(let r=0;r<e.length;r++){let i=e[r],{type:s}=i;if(typeof s=="number"){{if(s===138){let{loc:n,start:a,value:o,end:l}=i,u=a+1,c=ut(n.start,1);e.splice(r,1,new Yt({type:tr(27),value:"#",start:a,end:u,startLoc:n.start,endLoc:c}),new Yt({type:tr(132),value:o,start:u,end:l,startLoc:c,endLoc:n.end})),r++;continue}if(Bs(s)){let{loc:n,start:a,value:o,end:l}=i,u=a+1,c=ut(n.start,1),T;t.charCodeAt(a)===96?T=new Yt({type:tr(22),value:"`",start:a,end:u,startLoc:n.start,endLoc:c}):T=new Yt({type:tr(8),value:"}",start:a,end:u,startLoc:n.start,endLoc:c});let P,E,v,D;s===24?(E=l-1,v=ut(n.end,-1),P=o===null?null:o.slice(1,-1),D=new Yt({type:tr(22),value:"`",start:E,end:l,startLoc:v,endLoc:n.end})):(E=l-2,v=ut(n.end,-2),P=o===null?null:o.slice(1,-2),D=new Yt({type:tr(23),value:"${",start:E,end:l,startLoc:v,endLoc:n.end})),e.splice(r,1,T,new Yt({type:tr(20),value:P,start:u,end:E,startLoc:c,endLoc:v}),D),r+=2;continue}}i.type=tr(s)}}return e}var Ra=class extends ja{parseTopLevel(t,r){return t.program=this.parseProgram(r),t.comments=this.comments,this.options.tokens&&(t.tokens=Lg(this.tokens,this.input)),this.finishNode(t,"File")}parseProgram(t,r=139,i=this.options.sourceType){if(t.sourceType=i,t.interpreter=this.parseInterpreterDirective(),this.parseBlockBody(t,!0,!0,r),this.inModule){if(!this.options.allowUndeclaredExports&&this.scope.undefinedExports.size>0)for(let[n,a]of Array.from(this.scope.undefinedExports))this.raise(S.ModuleExportUndefined,a,{localName:n});this.addExtra(t,"topLevelAwait",this.state.hasTopLevelAwait)}let s;return r===139?s=this.finishNode(t,"Program"):s=this.finishNodeAt(t,"Program",ut(this.state.startLoc,-1)),s}stmtToDirective(t){let r=t;r.type="Directive",r.value=r.expression,delete r.expression;let i=r.value,s=i.value,n=this.input.slice(i.start,i.end),a=i.value=n.slice(1,-1);return this.addExtra(i,"raw",n),this.addExtra(i,"rawValue",a),this.addExtra(i,"expressionValue",s),i.type="DirectiveLiteral",r}parseInterpreterDirective(){if(!this.match(28))return null;let t=this.startNode();return t.value=this.state.value,this.next(),this.finishNode(t,"InterpreterDirective")}isLet(){return this.isContextual(100)?this.hasFollowingBindingAtom():!1}chStartsBindingIdentifier(t,r){if(ir(t)){if(ba.lastIndex=r,ba.test(this.input)){let i=this.codePointAtPos(ba.lastIndex);if(!si(i)&&i!==92)return!1}return!0}else return t===92}chStartsBindingPattern(t){return t===91||t===123}hasFollowingBindingAtom(){let t=this.nextTokenStart(),r=this.codePointAtPos(t);return this.chStartsBindingPattern(r)||this.chStartsBindingIdentifier(r,t)}hasInLineFollowingBindingIdentifierOrBrace(){let t=this.nextTokenInLineStart(),r=this.codePointAtPos(t);return r===123||this.chStartsBindingIdentifier(r,t)}startsUsingForOf(){let{type:t,containsEsc:r}=this.lookahead();if(t===102&&!r)return!1;if(Ie(t)&&!this.hasFollowingLineBreak())return this.expectPlugin("explicitResourceManagement"),!0}startsAwaitUsing(){let t=this.nextTokenInLineStart();if(this.isUnparsedContextual(t,"using")){t=this.nextTokenInLineStartSince(t+5);let r=this.codePointAtPos(t);if(this.chStartsBindingIdentifier(r,t))return this.expectPlugin("explicitResourceManagement"),!0}return!1}parseModuleItem(){return this.parseStatementLike(15)}parseStatementListItem(){return this.parseStatementLike(6|(!this.options.annexB||this.state.strict?0:8))}parseStatementOrSloppyAnnexBFunctionDeclaration(t=!1){let r=0;return this.options.annexB&&!this.state.strict&&(r|=4,t&&(r|=8)),this.parseStatementLike(r)}parseStatement(){return this.parseStatementLike(0)}parseStatementLike(t){let r=null;return this.match(26)&&(r=this.parseDecorators(!0)),this.parseStatementContent(t,r)}parseStatementContent(t,r){let i=this.state.type,s=this.startNode(),n=!!(t&2),a=!!(t&4),o=t&1;switch(i){case 60:return this.parseBreakContinueStatement(s,!0);case 63:return this.parseBreakContinueStatement(s,!1);case 64:return this.parseDebuggerStatement(s);case 90:return this.parseDoWhileStatement(s);case 91:return this.parseForStatement(s);case 68:if(this.lookaheadCharCode()===46)break;return a||this.raise(this.state.strict?S.StrictFunction:this.options.annexB?S.SloppyFunctionAnnexB:S.SloppyFunction,this.state.startLoc),this.parseFunctionStatement(s,!1,!n&&a);case 80:return n||this.unexpected(),this.parseClass(this.maybeTakeDecorators(r,s),!0);case 69:return this.parseIfStatement(s);case 70:return this.parseReturnStatement(s);case 71:return this.parseSwitchStatement(s);case 72:return this.parseThrowStatement(s);case 73:return this.parseTryStatement(s);case 96:if(!this.state.containsEsc&&this.startsAwaitUsing())return this.recordAwaitIfAllowed()?n||this.raise(S.UnexpectedLexicalDeclaration,s):this.raise(S.AwaitUsingNotInAsyncContext,s),this.next(),this.parseVarStatement(s,"await using");break;case 107:if(this.state.containsEsc||!this.hasInLineFollowingBindingIdentifierOrBrace())break;return this.expectPlugin("explicitResourceManagement"),!this.scope.inModule&&this.scope.inTopLevel?this.raise(S.UnexpectedUsingDeclaration,this.state.startLoc):n||this.raise(S.UnexpectedLexicalDeclaration,this.state.startLoc),this.parseVarStatement(s,"using");case 100:{if(this.state.containsEsc)break;let c=this.nextTokenStart(),T=this.codePointAtPos(c);if(T!==91&&(!n&&this.hasFollowingLineBreak()||!this.chStartsBindingIdentifier(T,c)&&T!==123))break}case 75:n||this.raise(S.UnexpectedLexicalDeclaration,this.state.startLoc);case 74:{let c=this.state.value;return this.parseVarStatement(s,c)}case 92:return this.parseWhileStatement(s);case 76:return this.parseWithStatement(s);case 5:return this.parseBlock();case 13:return this.parseEmptyStatement(s);case 83:{let c=this.lookaheadCharCode();if(c===40||c===46)break}case 82:{!this.options.allowImportExportEverywhere&&!o&&this.raise(S.UnexpectedImportExport,this.state.startLoc),this.next();let c;return i===83?(c=this.parseImport(s),c.type==="ImportDeclaration"&&(!c.importKind||c.importKind==="value")&&(this.sawUnambiguousESM=!0)):(c=this.parseExport(s,r),(c.type==="ExportNamedDeclaration"&&(!c.exportKind||c.exportKind==="value")||c.type==="ExportAllDeclaration"&&(!c.exportKind||c.exportKind==="value")||c.type==="ExportDefaultDeclaration")&&(this.sawUnambiguousESM=!0)),this.assertModuleNodeAllowed(c),c}default:if(this.isAsyncFunction())return n||this.raise(S.AsyncFunctionInSingleStatementContext,this.state.startLoc),this.next(),this.parseFunctionStatement(s,!0,!n&&a)}let l=this.state.value,u=this.parseExpression();return Ie(i)&&u.type==="Identifier"&&this.eat(14)?this.parseLabeledStatement(s,l,u,t):this.parseExpressionStatement(s,u,r)}assertModuleNodeAllowed(t){!this.options.allowImportExportEverywhere&&!this.inModule&&this.raise(S.ImportOutsideModule,t)}decoratorsEnabledBeforeExport(){return this.hasPlugin("decorators-legacy")?!0:this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")!==!1}maybeTakeDecorators(t,r,i){return t&&(r.decorators&&r.decorators.length>0?(typeof this.getPluginOption("decorators","decoratorsBeforeExport")!="boolean"&&this.raise(S.DecoratorsBeforeAfterExport,r.decorators[0]),r.decorators.unshift(...t)):r.decorators=t,this.resetStartLocationFromNode(r,t[0]),i&&this.resetStartLocationFromNode(i,r)),r}canHaveLeadingDecorator(){return this.match(80)}parseDecorators(t){let r=[];do r.push(this.parseDecorator());while(this.match(26));if(this.match(82))t||this.unexpected(),this.decoratorsEnabledBeforeExport()||this.raise(S.DecoratorExportClass,this.state.startLoc);else if(!this.canHaveLeadingDecorator())throw this.raise(S.UnexpectedLeadingDecorator,this.state.startLoc);return r}parseDecorator(){this.expectOnePlugin(["decorators","decorators-legacy"]);let t=this.startNode();if(this.next(),this.hasPlugin("decorators")){let r=this.state.startLoc,i;if(this.match(10)){let s=this.state.startLoc;this.next(),i=this.parseExpression(),this.expect(11),i=this.wrapParenthesis(s,i);let n=this.state.startLoc;t.expression=this.parseMaybeDecoratorArguments(i),this.getPluginOption("decorators","allowCallParenthesized")===!1&&t.expression!==i&&this.raise(S.DecoratorArgumentsOutsideParentheses,n)}else{for(i=this.parseIdentifier(!1);this.eat(16);){let s=this.startNodeAt(r);s.object=i,this.match(138)?(this.classScope.usePrivateName(this.state.value,this.state.startLoc),s.property=this.parsePrivateName()):s.property=this.parseIdentifier(!0),s.computed=!1,i=this.finishNode(s,"MemberExpression")}t.expression=this.parseMaybeDecoratorArguments(i)}}else t.expression=this.parseExprSubscripts();return this.finishNode(t,"Decorator")}parseMaybeDecoratorArguments(t){if(this.eat(10)){let r=this.startNodeAtNode(t);return r.callee=t,r.arguments=this.parseCallExpressionArguments(11,!1),this.toReferencedList(r.arguments),this.finishNode(r,"CallExpression")}return t}parseBreakContinueStatement(t,r){return this.next(),this.isLineTerminator()?t.label=null:(t.label=this.parseIdentifier(),this.semicolon()),this.verifyBreakContinue(t,r),this.finishNode(t,r?"BreakStatement":"ContinueStatement")}verifyBreakContinue(t,r){let i;for(i=0;i<this.state.labels.length;++i){let s=this.state.labels[i];if((t.label==null||s.name===t.label.name)&&(s.kind!=null&&(r||s.kind===1)||t.label&&r))break}if(i===this.state.labels.length){let s=r?"BreakStatement":"ContinueStatement";this.raise(S.IllegalBreakContinue,t,{type:s})}}parseDebuggerStatement(t){return this.next(),this.semicolon(),this.finishNode(t,"DebuggerStatement")}parseHeaderExpression(){this.expect(10);let t=this.parseExpression();return this.expect(11),t}parseDoWhileStatement(t){return this.next(),this.state.labels.push(ga),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.expect(92),t.test=this.parseHeaderExpression(),this.eat(13),this.finishNode(t,"DoWhileStatement")}parseForStatement(t){this.next(),this.state.labels.push(ga);let r=null;if(this.isContextual(96)&&this.recordAwaitIfAllowed()&&(r=this.state.startLoc,this.next()),this.scope.enter(0),this.expect(10),this.match(13))return r!==null&&this.unexpected(r),this.parseFor(t,null);let i=this.isContextual(100);{let l=this.isContextual(96)&&this.startsAwaitUsing(),u=l||this.isContextual(107)&&this.startsUsingForOf(),c=i&&this.hasFollowingBindingAtom()||u;if(this.match(74)||this.match(75)||c){let T=this.startNode(),P;l?(P="await using",this.recordAwaitIfAllowed()||this.raise(S.AwaitUsingNotInAsyncContext,this.state.startLoc),this.next()):P=this.state.value,this.next(),this.parseVar(T,!0,P);let E=this.finishNode(T,"VariableDeclaration"),v=this.match(58);return v&&u&&this.raise(S.ForInUsing,E),(v||this.isContextual(102))&&E.declarations.length===1?this.parseForIn(t,E,r):(r!==null&&this.unexpected(r),this.parseFor(t,E))}}let s=this.isContextual(95),n=new ai,a=this.parseExpression(!0,n),o=this.isContextual(102);if(o&&(i&&this.raise(S.ForOfLet,a),r===null&&s&&a.type==="Identifier"&&this.raise(S.ForOfAsync,a)),o||this.match(58)){this.checkDestructuringPrivate(n),this.toAssignable(a,!0);let l=o?"ForOfStatement":"ForInStatement";return this.checkLVal(a,{type:l}),this.parseForIn(t,a,r)}else this.checkExpressionErrors(n,!0);return r!==null&&this.unexpected(r),this.parseFor(t,a)}parseFunctionStatement(t,r,i){return this.next(),this.parseFunction(t,1|(i?2:0)|(r?8:0))}parseIfStatement(t){return this.next(),t.test=this.parseHeaderExpression(),t.consequent=this.parseStatementOrSloppyAnnexBFunctionDeclaration(),t.alternate=this.eat(66)?this.parseStatementOrSloppyAnnexBFunctionDeclaration():null,this.finishNode(t,"IfStatement")}parseReturnStatement(t){return!this.prodParam.hasReturn&&!this.options.allowReturnOutsideFunction&&this.raise(S.IllegalReturn,this.state.startLoc),this.next(),this.isLineTerminator()?t.argument=null:(t.argument=this.parseExpression(),this.semicolon()),this.finishNode(t,"ReturnStatement")}parseSwitchStatement(t){this.next(),t.discriminant=this.parseHeaderExpression();let r=t.cases=[];this.expect(5),this.state.labels.push(Dg),this.scope.enter(0);let i;for(let s;!this.match(8);)if(this.match(61)||this.match(65)){let n=this.match(61);i&&this.finishNode(i,"SwitchCase"),r.push(i=this.startNode()),i.consequent=[],this.next(),n?i.test=this.parseExpression():(s&&this.raise(S.MultipleDefaultsInSwitch,this.state.lastTokStartLoc),s=!0,i.test=null),this.expect(14)}else i?i.consequent.push(this.parseStatementListItem()):this.unexpected();return this.scope.exit(),i&&this.finishNode(i,"SwitchCase"),this.next(),this.state.labels.pop(),this.finishNode(t,"SwitchStatement")}parseThrowStatement(t){return this.next(),this.hasPrecedingLineBreak()&&this.raise(S.NewlineAfterThrow,this.state.lastTokEndLoc),t.argument=this.parseExpression(),this.semicolon(),this.finishNode(t,"ThrowStatement")}parseCatchClauseParam(){let t=this.parseBindingAtom();return this.scope.enter(this.options.annexB&&t.type==="Identifier"?8:0),this.checkLVal(t,{type:"CatchClause"},9),t}parseTryStatement(t){if(this.next(),t.block=this.parseBlock(),t.handler=null,this.match(62)){let r=this.startNode();this.next(),this.match(10)?(this.expect(10),r.param=this.parseCatchClauseParam(),this.expect(11)):(r.param=null,this.scope.enter(0)),r.body=this.withSmartMixTopicForbiddingContext(()=>this.parseBlock(!1,!1)),this.scope.exit(),t.handler=this.finishNode(r,"CatchClause")}return t.finalizer=this.eat(67)?this.parseBlock():null,!t.handler&&!t.finalizer&&this.raise(S.NoCatchOrFinally,t),this.finishNode(t,"TryStatement")}parseVarStatement(t,r,i=!1){return this.next(),this.parseVar(t,!1,r,i),this.semicolon(),this.finishNode(t,"VariableDeclaration")}parseWhileStatement(t){return this.next(),t.test=this.parseHeaderExpression(),this.state.labels.push(ga),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.finishNode(t,"WhileStatement")}parseWithStatement(t){return this.state.strict&&this.raise(S.StrictWith,this.state.startLoc),this.next(),t.object=this.parseHeaderExpression(),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.finishNode(t,"WithStatement")}parseEmptyStatement(t){return this.next(),this.finishNode(t,"EmptyStatement")}parseLabeledStatement(t,r,i,s){for(let a of this.state.labels)a.name===r&&this.raise(S.LabelRedeclaration,i,{labelName:r});let n=F0(this.state.type)?1:this.match(71)?2:null;for(let a=this.state.labels.length-1;a>=0;a--){let o=this.state.labels[a];if(o.statementStart===t.start)o.statementStart=this.state.start,o.kind=n;else break}return this.state.labels.push({name:r,kind:n,statementStart:this.state.start}),t.body=s&8?this.parseStatementOrSloppyAnnexBFunctionDeclaration(!0):this.parseStatement(),this.state.labels.pop(),t.label=i,this.finishNode(t,"LabeledStatement")}parseExpressionStatement(t,r,i){return t.expression=r,this.semicolon(),this.finishNode(t,"ExpressionStatement")}parseBlock(t=!1,r=!0,i){let s=this.startNode();return t&&this.state.strictErrors.clear(),this.expect(5),r&&this.scope.enter(0),this.parseBlockBody(s,t,!1,8,i),r&&this.scope.exit(),this.finishNode(s,"BlockStatement")}isValidDirective(t){return t.type==="ExpressionStatement"&&t.expression.type==="StringLiteral"&&!t.expression.extra.parenthesized}parseBlockBody(t,r,i,s,n){let a=t.body=[],o=t.directives=[];this.parseBlockOrModuleBlockBody(a,r?o:void 0,i,s,n)}parseBlockOrModuleBlockBody(t,r,i,s,n){let a=this.state.strict,o=!1,l=!1;for(;!this.match(s);){let u=i?this.parseModuleItem():this.parseStatementListItem();if(r&&!l){if(this.isValidDirective(u)){let c=this.stmtToDirective(u);r.push(c),!o&&c.value.value==="use strict"&&(o=!0,this.setStrict(!0));continue}l=!0,this.state.strictErrors.clear()}t.push(u)}n?.call(this,o),a||this.setStrict(!1),this.next()}parseFor(t,r){return t.init=r,this.semicolon(!1),t.test=this.match(13)?null:this.parseExpression(),this.semicolon(!1),t.update=this.match(11)?null:this.parseExpression(),this.expect(11),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(t,"ForStatement")}parseForIn(t,r,i){let s=this.match(58);return this.next(),s?i!==null&&this.unexpected(i):t.await=i!==null,r.type==="VariableDeclaration"&&r.declarations[0].init!=null&&(!s||!this.options.annexB||this.state.strict||r.kind!=="var"||r.declarations[0].id.type!=="Identifier")&&this.raise(S.ForInOfLoopInitializer,r,{type:s?"ForInStatement":"ForOfStatement"}),r.type==="AssignmentPattern"&&this.raise(S.InvalidLhs,r,{ancestor:{type:"ForStatement"}}),t.left=r,t.right=s?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(11),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(t,s?"ForInStatement":"ForOfStatement")}parseVar(t,r,i,s=!1){let n=t.declarations=[];for(t.kind=i;;){let a=this.startNode();if(this.parseVarId(a,i),a.init=this.eat(29)?r?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn():null,a.init===null&&!s&&(a.id.type!=="Identifier"&&!(r&&(this.match(58)||this.isContextual(102)))?this.raise(S.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:"destructuring"}):(i==="const"||i==="using"||i==="await using")&&!(this.match(58)||this.isContextual(102))&&this.raise(S.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:i})),n.push(this.finishNode(a,"VariableDeclarator")),!this.eat(12))break}return t}parseVarId(t,r){let i=this.parseBindingAtom();(r==="using"||r==="await using")&&(i.type==="ArrayPattern"||i.type==="ObjectPattern")&&this.raise(S.UsingDeclarationHasBindingPattern,i.loc.start),this.checkLVal(i,{type:"VariableDeclarator"},r==="var"?5:8201),t.id=i}parseAsyncFunctionExpression(t){return this.parseFunction(t,8)}parseFunction(t,r=0){let i=r&2,s=!!(r&1),n=s&&!(r&4),a=!!(r&8);this.initFunction(t,a),this.match(55)&&(i&&this.raise(S.GeneratorInSingleStatementContext,this.state.startLoc),this.next(),t.generator=!0),s&&(t.id=this.parseFunctionId(n));let o=this.state.maybeInArrowParameters;return this.state.maybeInArrowParameters=!1,this.scope.enter(2),this.prodParam.enter(Ls(a,t.generator)),s||(t.id=this.parseFunctionId()),this.parseFunctionParams(t,!1),this.withSmartMixTopicForbiddingContext(()=>{this.parseFunctionBodyAndFinish(t,s?"FunctionDeclaration":"FunctionExpression")}),this.prodParam.exit(),this.scope.exit(),s&&!i&&this.registerFunctionStatementId(t),this.state.maybeInArrowParameters=o,t}parseFunctionId(t){return t||Ie(this.state.type)?this.parseIdentifier():null}parseFunctionParams(t,r){this.expect(10),this.expressionScope.enter(og()),t.params=this.parseBindingList(11,41,2|(r?4:0)),this.expressionScope.exit()}registerFunctionStatementId(t){t.id&&this.scope.declareName(t.id.name,!this.options.annexB||this.state.strict||t.generator||t.async?this.scope.treatFunctionsAsVar?5:8201:17,t.id.loc.start)}parseClass(t,r,i){this.next();let s=this.state.strict;return this.state.strict=!0,this.parseClassId(t,r,i),this.parseClassSuper(t),t.body=this.parseClassBody(!!t.superClass,s),this.finishNode(t,r?"ClassDeclaration":"ClassExpression")}isClassProperty(){return this.match(29)||this.match(13)||this.match(8)}isClassMethod(){return this.match(10)}nameIsConstructor(t){return t.type==="Identifier"&&t.name==="constructor"||t.type==="StringLiteral"&&t.value==="constructor"}isNonstaticConstructor(t){return!t.computed&&!t.static&&this.nameIsConstructor(t.key)}parseClassBody(t,r){this.classScope.enter();let i={hadConstructor:!1,hadSuperClass:t},s=[],n=this.startNode();if(n.body=[],this.expect(5),this.withSmartMixTopicForbiddingContext(()=>{for(;!this.match(8);){if(this.eat(13)){if(s.length>0)throw this.raise(S.DecoratorSemicolon,this.state.lastTokEndLoc);continue}if(this.match(26)){s.push(this.parseDecorator());continue}let a=this.startNode();s.length&&(a.decorators=s,this.resetStartLocationFromNode(a,s[0]),s=[]),this.parseClassMember(n,a,i),a.kind==="constructor"&&a.decorators&&a.decorators.length>0&&this.raise(S.DecoratorConstructor,a)}}),this.state.strict=r,this.next(),s.length)throw this.raise(S.TrailingDecorator,this.state.startLoc);return this.classScope.exit(),this.finishNode(n,"ClassBody")}parseClassMemberFromModifier(t,r){let i=this.parseIdentifier(!0);if(this.isClassMethod()){let s=r;return s.kind="method",s.computed=!1,s.key=i,s.static=!1,this.pushClassMethod(t,s,!1,!1,!1,!1),!0}else if(this.isClassProperty()){let s=r;return s.computed=!1,s.key=i,s.static=!1,t.body.push(this.parseClassProperty(s)),!0}return this.resetPreviousNodeTrailingComments(i),!1}parseClassMember(t,r,i){let s=this.isContextual(106);if(s){if(this.parseClassMemberFromModifier(t,r))return;if(this.eat(5)){this.parseClassStaticBlock(t,r);return}}this.parseClassMemberWithIsStatic(t,r,i,s)}parseClassMemberWithIsStatic(t,r,i,s){let n=r,a=r,o=r,l=r,u=r,c=n,T=n;if(r.static=s,this.parsePropertyNamePrefixOperator(r),this.eat(55)){c.kind="method";let N=this.match(138);if(this.parseClassElementName(c),N){this.pushClassPrivateMethod(t,a,!0,!1);return}this.isNonstaticConstructor(n)&&this.raise(S.ConstructorIsGenerator,n.key),this.pushClassMethod(t,n,!0,!1,!1,!1);return}let P=!this.state.containsEsc&&Ie(this.state.type),E=this.parseClassElementName(r),v=P?E.name:null,D=this.isPrivateName(E),_=this.state.startLoc;if(this.parsePostMemberNameModifiers(T),this.isClassMethod()){if(c.kind="method",D){this.pushClassPrivateMethod(t,a,!1,!1);return}let N=this.isNonstaticConstructor(n),M=!1;N&&(n.kind="constructor",i.hadConstructor&&!this.hasPlugin("typescript")&&this.raise(S.DuplicateConstructor,E),N&&this.hasPlugin("typescript")&&r.override&&this.raise(S.OverrideOnConstructor,E),i.hadConstructor=!0,M=i.hadSuperClass),this.pushClassMethod(t,n,!1,!1,N,M)}else if(this.isClassProperty())D?this.pushClassPrivateProperty(t,l):this.pushClassProperty(t,o);else if(v==="async"&&!this.isLineTerminator()){this.resetPreviousNodeTrailingComments(E);let N=this.eat(55);T.optional&&this.unexpected(_),c.kind="method";let M=this.match(138);this.parseClassElementName(c),this.parsePostMemberNameModifiers(T),M?this.pushClassPrivateMethod(t,a,N,!0):(this.isNonstaticConstructor(n)&&this.raise(S.ConstructorIsAsync,n.key),this.pushClassMethod(t,n,N,!0,!1,!1))}else if((v==="get"||v==="set")&&!(this.match(55)&&this.isLineTerminator())){this.resetPreviousNodeTrailingComments(E),c.kind=v;let N=this.match(138);this.parseClassElementName(n),N?this.pushClassPrivateMethod(t,a,!1,!1):(this.isNonstaticConstructor(n)&&this.raise(S.ConstructorIsAccessor,n.key),this.pushClassMethod(t,n,!1,!1,!1,!1)),this.checkGetterSetterParams(n)}else if(v==="accessor"&&!this.isLineTerminator()){this.expectPlugin("decoratorAutoAccessors"),this.resetPreviousNodeTrailingComments(E);let N=this.match(138);this.parseClassElementName(o),this.pushClassAccessorProperty(t,u,N)}else this.isLineTerminator()?D?this.pushClassPrivateProperty(t,l):this.pushClassProperty(t,o):this.unexpected()}parseClassElementName(t){let{type:r,value:i}=this.state;if((r===132||r===133)&&t.static&&i==="prototype"&&this.raise(S.StaticPrototype,this.state.startLoc),r===138){i==="constructor"&&this.raise(S.ConstructorClassPrivateField,this.state.startLoc);let s=this.parsePrivateName();return t.key=s,s}return this.parsePropertyName(t),t.key}parseClassStaticBlock(t,r){var i;this.scope.enter(208);let s=this.state.labels;this.state.labels=[],this.prodParam.enter(0);let n=r.body=[];this.parseBlockOrModuleBlockBody(n,void 0,!1,8),this.prodParam.exit(),this.scope.exit(),this.state.labels=s,t.body.push(this.finishNode(r,"StaticBlock")),(i=r.decorators)!=null&&i.length&&this.raise(S.DecoratorStaticBlock,r)}pushClassProperty(t,r){!r.computed&&this.nameIsConstructor(r.key)&&this.raise(S.ConstructorClassField,r.key),t.body.push(this.parseClassProperty(r))}pushClassPrivateProperty(t,r){let i=this.parseClassPrivateProperty(r);t.body.push(i),this.classScope.declarePrivateName(this.getPrivateNameSV(i.key),0,i.key.loc.start)}pushClassAccessorProperty(t,r,i){!i&&!r.computed&&this.nameIsConstructor(r.key)&&this.raise(S.ConstructorClassField,r.key);let s=this.parseClassAccessorProperty(r);t.body.push(s),i&&this.classScope.declarePrivateName(this.getPrivateNameSV(s.key),0,s.key.loc.start)}pushClassMethod(t,r,i,s,n,a){t.body.push(this.parseMethod(r,i,s,n,a,"ClassMethod",!0))}pushClassPrivateMethod(t,r,i,s){let n=this.parseMethod(r,i,s,!1,!1,"ClassPrivateMethod",!0);t.body.push(n);let a=n.kind==="get"?n.static?6:2:n.kind==="set"?n.static?5:1:0;this.declareClassPrivateMethodInScope(n,a)}declareClassPrivateMethodInScope(t,r){this.classScope.declarePrivateName(this.getPrivateNameSV(t.key),r,t.key.loc.start)}parsePostMemberNameModifiers(t){}parseClassPrivateProperty(t){return this.parseInitializer(t),this.semicolon(),this.finishNode(t,"ClassPrivateProperty")}parseClassProperty(t){return this.parseInitializer(t),this.semicolon(),this.finishNode(t,"ClassProperty")}parseClassAccessorProperty(t){return this.parseInitializer(t),this.semicolon(),this.finishNode(t,"ClassAccessorProperty")}parseInitializer(t){this.scope.enter(80),this.expressionScope.enter(Np()),this.prodParam.enter(0),t.value=this.eat(29)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit()}parseClassId(t,r,i,s=8331){if(Ie(this.state.type))t.id=this.parseIdentifier(),r&&this.declareNameFromIdentifier(t.id,s);else if(i||!r)t.id=null;else throw this.raise(S.MissingClassName,this.state.startLoc)}parseClassSuper(t){t.superClass=this.eat(81)?this.parseExprSubscripts():null}parseExport(t,r){let i=this.parseMaybeImportPhase(t,!0),s=this.maybeParseExportDefaultSpecifier(t,i),n=!s||this.eat(12),a=n&&this.eatExportStar(t),o=a&&this.maybeParseExportNamespaceSpecifier(t),l=n&&(!o||this.eat(12)),u=s||a;if(a&&!o){if(s&&this.unexpected(),r)throw this.raise(S.UnsupportedDecoratorExport,t);return this.parseExportFrom(t,!0),this.finishNode(t,"ExportAllDeclaration")}let c=this.maybeParseExportNamedSpecifiers(t);s&&n&&!a&&!c&&this.unexpected(null,5),o&&l&&this.unexpected(null,98);let T;if(u||c){if(T=!1,r)throw this.raise(S.UnsupportedDecoratorExport,t);this.parseExportFrom(t,u)}else T=this.maybeParseExportDeclaration(t);if(u||c||T){var P;let E=t;if(this.checkExport(E,!0,!1,!!E.source),((P=E.declaration)==null?void 0:P.type)==="ClassDeclaration")this.maybeTakeDecorators(r,E.declaration,E);else if(r)throw this.raise(S.UnsupportedDecoratorExport,t);return this.finishNode(E,"ExportNamedDeclaration")}if(this.eat(65)){let E=t,v=this.parseExportDefaultExpression();if(E.declaration=v,v.type==="ClassDeclaration")this.maybeTakeDecorators(r,v,E);else if(r)throw this.raise(S.UnsupportedDecoratorExport,t);return this.checkExport(E,!0,!0),this.finishNode(E,"ExportDefaultDeclaration")}this.unexpected(null,5)}eatExportStar(t){return this.eat(55)}maybeParseExportDefaultSpecifier(t,r){if(r||this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom",r?.loc.start);let i=r||this.parseIdentifier(!0),s=this.startNodeAtNode(i);return s.exported=i,t.specifiers=[this.finishNode(s,"ExportDefaultSpecifier")],!0}return!1}maybeParseExportNamespaceSpecifier(t){if(this.isContextual(93)){var r,i;(i=(r=t).specifiers)!=null||(r.specifiers=[]);let s=this.startNodeAt(this.state.lastTokStartLoc);return this.next(),s.exported=this.parseModuleExportName(),t.specifiers.push(this.finishNode(s,"ExportNamespaceSpecifier")),!0}return!1}maybeParseExportNamedSpecifiers(t){if(this.match(5)){let r=t;r.specifiers||(r.specifiers=[]);let i=r.exportKind==="type";return r.specifiers.push(...this.parseExportSpecifiers(i)),r.source=null,r.declaration=null,this.hasPlugin("importAssertions")&&(r.assertions=[]),!0}return!1}maybeParseExportDeclaration(t){return this.shouldParseExportDeclaration()?(t.specifiers=[],t.source=null,this.hasPlugin("importAssertions")&&(t.assertions=[]),t.declaration=this.parseExportDeclaration(t),!0):!1}isAsyncFunction(){if(!this.isContextual(95))return!1;let t=this.nextTokenInLineStart();return this.isUnparsedContextual(t,"function")}parseExportDefaultExpression(){let t=this.startNode();if(this.match(68))return this.next(),this.parseFunction(t,5);if(this.isAsyncFunction())return this.next(),this.next(),this.parseFunction(t,13);if(this.match(80))return this.parseClass(t,!0,!0);if(this.match(26))return this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")===!0&&this.raise(S.DecoratorBeforeExport,this.state.startLoc),this.parseClass(this.maybeTakeDecorators(this.parseDecorators(!1),this.startNode()),!0,!0);if(this.match(75)||this.match(74)||this.isLet())throw this.raise(S.UnsupportedDefaultExport,this.state.startLoc);let r=this.parseMaybeAssignAllowIn();return this.semicolon(),r}parseExportDeclaration(t){return this.match(80)?this.parseClass(this.startNode(),!0,!1):this.parseStatementListItem()}isExportDefaultSpecifier(){let{type:t}=this.state;if(Ie(t)){if(t===95&&!this.state.containsEsc||t===100)return!1;if((t===130||t===129)&&!this.state.containsEsc){let{type:s}=this.lookahead();if(Ie(s)&&s!==98||s===5)return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(65))return!1;let r=this.nextTokenStart(),i=this.isUnparsedContextual(r,"from");if(this.input.charCodeAt(r)===44||Ie(this.state.type)&&i)return!0;if(this.match(65)&&i){let s=this.input.charCodeAt(this.nextTokenStartSince(r+4));return s===34||s===39}return!1}parseExportFrom(t,r){this.eatContextual(98)?(t.source=this.parseImportSource(),this.checkExport(t),this.maybeParseImportAttributes(t),this.checkJSONModuleImport(t)):r&&this.unexpected(),this.semicolon()}shouldParseExportDeclaration(){let{type:t}=this.state;return t===26&&(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators"))?(this.getPluginOption("decorators","decoratorsBeforeExport")===!0&&this.raise(S.DecoratorBeforeExport,this.state.startLoc),!0):this.isContextual(107)?(this.raise(S.UsingDeclarationExport,this.state.startLoc),!0):this.isContextual(96)&&this.startsAwaitUsing()?(this.raise(S.UsingDeclarationExport,this.state.startLoc),!0):t===74||t===75||t===68||t===80||this.isLet()||this.isAsyncFunction()}checkExport(t,r,i,s){if(r){var n;if(i){if(this.checkDuplicateExports(t,"default"),this.hasPlugin("exportDefaultFrom")){var a;let o=t.declaration;o.type==="Identifier"&&o.name==="from"&&o.end-o.start===4&&!((a=o.extra)!=null&&a.parenthesized)&&this.raise(S.ExportDefaultFromAsIdentifier,o)}}else if((n=t.specifiers)!=null&&n.length)for(let o of t.specifiers){let{exported:l}=o,u=l.type==="Identifier"?l.name:l.value;if(this.checkDuplicateExports(o,u),!s&&o.local){let{local:c}=o;c.type!=="Identifier"?this.raise(S.ExportBindingIsString,o,{localName:c.value,exportName:u}):(this.checkReservedWord(c.name,c.loc.start,!0,!1),this.scope.checkLocalExport(c))}}else if(t.declaration){let o=t.declaration;if(o.type==="FunctionDeclaration"||o.type==="ClassDeclaration"){let{id:l}=o;if(!l)throw new Error("Assertion failure");this.checkDuplicateExports(t,l.name)}else if(o.type==="VariableDeclaration")for(let l of o.declarations)this.checkDeclaration(l.id)}}}checkDeclaration(t){if(t.type==="Identifier")this.checkDuplicateExports(t,t.name);else if(t.type==="ObjectPattern")for(let r of t.properties)this.checkDeclaration(r);else if(t.type==="ArrayPattern")for(let r of t.elements)r&&this.checkDeclaration(r);else t.type==="ObjectProperty"?this.checkDeclaration(t.value):t.type==="RestElement"?this.checkDeclaration(t.argument):t.type==="AssignmentPattern"&&this.checkDeclaration(t.left)}checkDuplicateExports(t,r){this.exportedIdentifiers.has(r)&&(r==="default"?this.raise(S.DuplicateDefaultExport,t):this.raise(S.DuplicateExport,t,{exportName:r})),this.exportedIdentifiers.add(r)}parseExportSpecifiers(t){let r=[],i=!0;for(this.expect(5);!this.eat(8);){if(i)i=!1;else if(this.expect(12),this.eat(8))break;let s=this.isContextual(130),n=this.match(133),a=this.startNode();a.local=this.parseModuleExportName(),r.push(this.parseExportSpecifier(a,n,t,s))}return r}parseExportSpecifier(t,r,i,s){return this.eatContextual(93)?t.exported=this.parseModuleExportName():r?t.exported=pg(t.local):t.exported||(t.exported=nr(t.local)),this.finishNode(t,"ExportSpecifier")}parseModuleExportName(){if(this.match(133)){let t=this.parseStringLiteral(this.state.value),r=kg.exec(t.value);return r&&this.raise(S.ModuleExportNameHasLoneSurrogate,t,{surrogateCharCode:r[0].charCodeAt(0)}),t}return this.parseIdentifier(!0)}isJSONModuleImport(t){return t.assertions!=null?t.assertions.some(({key:r,value:i})=>i.value==="json"&&(r.type==="Identifier"?r.name==="type":r.value==="type")):!1}checkImportReflection(t){let{specifiers:r}=t,i=r.length===1?r[0].type:null;if(t.phase==="source")i!=="ImportDefaultSpecifier"&&this.raise(S.SourcePhaseImportRequiresDefault,r[0].loc.start);else if(t.phase==="defer")i!=="ImportNamespaceSpecifier"&&this.raise(S.DeferImportRequiresNamespace,r[0].loc.start);else if(t.module){var s;i!=="ImportDefaultSpecifier"&&this.raise(S.ImportReflectionNotBinding,r[0].loc.start),((s=t.assertions)==null?void 0:s.length)>0&&this.raise(S.ImportReflectionHasAssertion,r[0].loc.start)}}checkJSONModuleImport(t){if(this.isJSONModuleImport(t)&&t.type!=="ExportAllDeclaration"){let{specifiers:r}=t;if(r!=null){let i=r.find(s=>{let n;if(s.type==="ExportSpecifier"?n=s.local:s.type==="ImportSpecifier"&&(n=s.imported),n!==void 0)return n.type==="Identifier"?n.name!=="default":n.value!=="default"});i!==void 0&&this.raise(S.ImportJSONBindingNotDefault,i.loc.start)}}}isPotentialImportPhase(t){return t?!1:this.isContextual(105)||this.isContextual(97)||this.isContextual(127)}applyImportPhase(t,r,i,s){r||(i==="module"?(this.expectPlugin("importReflection",s),t.module=!0):this.hasPlugin("importReflection")&&(t.module=!1),i==="source"?(this.expectPlugin("sourcePhaseImports",s),t.phase="source"):i==="defer"?(this.expectPlugin("deferredImportEvaluation",s),t.phase="defer"):this.hasPlugin("sourcePhaseImports")&&(t.phase=null))}parseMaybeImportPhase(t,r){if(!this.isPotentialImportPhase(r))return this.applyImportPhase(t,r,null),null;let i=this.parseIdentifier(!0),{type:s}=this.state;return(jt(s)?s!==98||this.lookaheadCharCode()===102:s!==12)?(this.resetPreviousIdentifierLeadingComments(i),this.applyImportPhase(t,r,i.name,i.loc.start),null):(this.applyImportPhase(t,r,null),i)}isPrecedingIdImportPhase(t){let{type:r}=this.state;return Ie(r)?r!==98||this.lookaheadCharCode()===102:r!==12}parseImport(t){return this.match(133)?this.parseImportSourceAndAttributes(t):this.parseImportSpecifiersAndAfter(t,this.parseMaybeImportPhase(t,!1))}parseImportSpecifiersAndAfter(t,r){t.specifiers=[];let s=!this.maybeParseDefaultImportSpecifier(t,r)||this.eat(12),n=s&&this.maybeParseStarImportSpecifier(t);return s&&!n&&this.parseNamedImportSpecifiers(t),this.expectContextual(98),this.parseImportSourceAndAttributes(t)}parseImportSourceAndAttributes(t){var r;return(r=t.specifiers)!=null||(t.specifiers=[]),t.source=this.parseImportSource(),this.maybeParseImportAttributes(t),this.checkImportReflection(t),this.checkJSONModuleImport(t),this.semicolon(),this.finishNode(t,"ImportDeclaration")}parseImportSource(){return this.match(133)||this.unexpected(),this.parseExprAtom()}parseImportSpecifierLocal(t,r,i){r.local=this.parseIdentifier(),t.specifiers.push(this.finishImportSpecifier(r,i))}finishImportSpecifier(t,r,i=8201){return this.checkLVal(t.local,{type:r},i),this.finishNode(t,r)}parseImportAttributes(){this.expect(5);let t=[],r=new Set;do{if(this.match(8))break;let i=this.startNode(),s=this.state.value;if(r.has(s)&&this.raise(S.ModuleAttributesWithDuplicateKeys,this.state.startLoc,{key:s}),r.add(s),this.match(133)?i.key=this.parseStringLiteral(s):i.key=this.parseIdentifier(!0),this.expect(14),!this.match(133))throw this.raise(S.ModuleAttributeInvalidValue,this.state.startLoc);i.value=this.parseStringLiteral(this.state.value),t.push(this.finishNode(i,"ImportAttribute"))}while(this.eat(12));return this.expect(8),t}parseModuleAttributes(){let t=[],r=new Set;do{let i=this.startNode();if(i.key=this.parseIdentifier(!0),i.key.name!=="type"&&this.raise(S.ModuleAttributeDifferentFromType,i.key),r.has(i.key.name)&&this.raise(S.ModuleAttributesWithDuplicateKeys,i.key,{key:i.key.name}),r.add(i.key.name),this.expect(14),!this.match(133))throw this.raise(S.ModuleAttributeInvalidValue,this.state.startLoc);i.value=this.parseStringLiteral(this.state.value),t.push(this.finishNode(i,"ImportAttribute"))}while(this.eat(12));return t}maybeParseImportAttributes(t){let r,i=!1;if(this.match(76)){if(this.hasPrecedingLineBreak()&&this.lookaheadCharCode()===40)return;this.next(),this.hasPlugin("moduleAttributes")?r=this.parseModuleAttributes():(this.expectImportAttributesPlugin(),r=this.parseImportAttributes()),i=!0}else if(this.isContextual(94)&&!this.hasPrecedingLineBreak())this.hasPlugin("importAttributes")?(this.getPluginOption("importAttributes","deprecatedAssertSyntax")!==!0&&this.raise(S.ImportAttributesUseAssert,this.state.startLoc),this.addExtra(t,"deprecatedAssertSyntax",!0)):this.expectOnePlugin(["importAttributes","importAssertions"]),this.next(),r=this.parseImportAttributes();else if(this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions"))r=[];else if(this.hasPlugin("moduleAttributes"))r=[];else return;!i&&this.hasPlugin("importAssertions")?t.assertions=r:t.attributes=r}maybeParseDefaultImportSpecifier(t,r){if(r){let i=this.startNodeAtNode(r);return i.local=r,t.specifiers.push(this.finishImportSpecifier(i,"ImportDefaultSpecifier")),!0}else if(jt(this.state.type))return this.parseImportSpecifierLocal(t,this.startNode(),"ImportDefaultSpecifier"),!0;return!1}maybeParseStarImportSpecifier(t){if(this.match(55)){let r=this.startNode();return this.next(),this.expectContextual(93),this.parseImportSpecifierLocal(t,r,"ImportNamespaceSpecifier"),!0}return!1}parseNamedImportSpecifiers(t){let r=!0;for(this.expect(5);!this.eat(8);){if(r)r=!1;else{if(this.eat(14))throw this.raise(S.DestructureNamedImport,this.state.startLoc);if(this.expect(12),this.eat(8))break}let i=this.startNode(),s=this.match(133),n=this.isContextual(130);i.imported=this.parseModuleExportName();let a=this.parseImportSpecifier(i,s,t.importKind==="type"||t.importKind==="typeof",n,void 0);t.specifiers.push(a)}}parseImportSpecifier(t,r,i,s,n){if(this.eatContextual(93))t.local=this.parseIdentifier();else{let{imported:a}=t;if(r)throw this.raise(S.ImportBindingIsString,t,{importName:a.value});this.checkReservedWord(a.name,t.loc.start,!0,!0),t.local||(t.local=nr(a))}return this.finishImportSpecifier(t,"ImportSpecifier",n)}isThisParam(t){return t.type==="Identifier"&&t.name==="this"}},js=class extends Ra{constructor(t,r,i){t=_g(t),super(t,r),this.options=t,this.initializeScopes(),this.plugins=i,this.filename=t.sourceFilename}getScopeHandler(){return qi}parse(){this.enterInitialScopes();let t=this.startNode(),r=this.startNode();return this.nextToken(),t.errors=null,this.parseTopLevel(t,r),t.errors=this.state.errors,t.comments.length=this.state.commentsLen,t}};function Mg(e,t){var r;if(((r=t)==null?void 0:r.sourceType)==="unambiguous"){t=Object.assign({},t);try{t.sourceType="module";let i=Fi(t,e),s=i.parse();if(i.sawUnambiguousESM)return s;if(i.ambiguousScriptDifferentAst)try{return t.sourceType="script",Fi(t,e).parse()}catch{}else s.program.sourceType="script";return s}catch(i){try{return t.sourceType="script",Fi(t,e).parse()}catch{}throw i}}else return Fi(t,e).parse()}function Bg(e,t){let r=Fi(t,e);return r.options.strictMode&&(r.state.strict=!0),r.getExpression()}function Fg(e){let t={};for(let r of Object.keys(e))t[r]=tr(e[r]);return t}var jg=Fg(k0);function Fi(e,t){let r=js,i=new Map;if(e!=null&&e.plugins){for(let s of e.plugins){let n,a;typeof s=="string"?n=s:[n,a]=s,i.has(n)||i.set(n,a||{})}Og(i),r=Rg(i)}return new r(e,t,i)}var bp=new Map;function Rg(e){let t=[];for(let s of Ng)e.has(s)&&t.push(s);let r=t.join("|"),i=bp.get(r);if(!i){i=js;for(let s of t)i=Lp[s](i);bp.set(r,i)}return i}Vi.parse=Mg;Vi.parseExpression=Bg;Vi.tokTypes=jg});var qs=A(Ga=>{"use strict";Object.defineProperty(Ga,"__esModule",{value:!0});Ga.default=qg;function qg(e,t){let r=Object.keys(t);for(let i of r)if(e[i]!==t[i])return!1;return!0}});var Ki=A(za=>{"use strict";Object.defineProperty(za,"__esModule",{value:!0});za.default=Ug;var Mp=new Set;function Ug(e,t,r=""){if(Mp.has(e))return;Mp.add(e);let{internal:i,trace:s}=Vg(1,2);i||console.warn(`${r}\`${e}\` has been deprecated, please migrate to \`${t}\`
|
|
11
|
-
${s}`)}function Vg(e,t){let{stackTraceLimit:r,prepareStackTrace:i}=Error,s;if(Error.stackTraceLimit=1+e+t,Error.prepareStackTrace=function(a,o){s=o},new Error().stack,Error.stackTraceLimit=r,Error.prepareStackTrace=i,!s)return{internal:!1,trace:""};let n=s.slice(1+e,1+e+t);return{internal:/[\\/]@babel[\\/]/.test(n[1].getFileName()),trace:n.map(a=>` at ${a}`).join(`
|
|
12
|
-
`)}}});var We=A(h=>{"use strict";Object.defineProperty(h,"__esModule",{value:!0});h.isAccessor=rA;h.isAnyTypeAnnotation=PS;h.isArgumentPlaceholder=Qx;h.isArrayExpression=Kg;h.isArrayPattern=Ub;h.isArrayTypeAnnotation=AS;h.isArrowFunctionExpression=Vb;h.isAssignmentExpression=Wg;h.isAssignmentPattern=qb;h.isAwaitExpression=pS;h.isBigIntLiteral=hS;h.isBinary=vP;h.isBinaryExpression=Yg;h.isBindExpression=Zx;h.isBlock=wP;h.isBlockParent=IP;h.isBlockStatement=Hg;h.isBooleanLiteral=yb;h.isBooleanLiteralTypeAnnotation=CS;h.isBooleanTypeAnnotation=vS;h.isBreakStatement=Gg;h.isCallExpression=zg;h.isCatchClause=Qg;h.isClass=ZP;h.isClassAccessorProperty=gS;h.isClassBody=Kb;h.isClassDeclaration=Yb;h.isClassExpression=Wb;h.isClassImplements=wS;h.isClassMethod=iS;h.isClassPrivateMethod=SS;h.isClassPrivateProperty=bS;h.isClassProperty=TS;h.isCompletionStatement=_P;h.isConditional=DP;h.isConditionalExpression=Zg;h.isContinueStatement=eb;h.isDebuggerStatement=tb;h.isDecimalLiteral=aE;h.isDeclaration=UP;h.isDeclareClass=OS;h.isDeclareExportAllDeclaration=jS;h.isDeclareExportDeclaration=FS;h.isDeclareFunction=NS;h.isDeclareInterface=_S;h.isDeclareModule=DS;h.isDeclareModuleExports=kS;h.isDeclareOpaqueType=MS;h.isDeclareTypeAlias=LS;h.isDeclareVariable=BS;h.isDeclaredPredicate=RS;h.isDecorator=tE;h.isDirective=Jg;h.isDirectiveLiteral=$g;h.isDoExpression=rE;h.isDoWhileStatement=rb;h.isEmptyStatement=ib;h.isEmptyTypeAnnotation=GS;h.isEnumBody=uA;h.isEnumBooleanBody=Ax;h.isEnumBooleanMember=wx;h.isEnumDeclaration=Px;h.isEnumDefaultedMember=_x;h.isEnumMember=cA;h.isEnumNumberBody=vx;h.isEnumNumberMember=Ox;h.isEnumStringBody=Cx;h.isEnumStringMember=Nx;h.isEnumSymbolBody=Ix;h.isExistsTypeAnnotation=qS;h.isExportAllDeclaration=Xb;h.isExportDeclaration=eA;h.isExportDefaultDeclaration=Jb;h.isExportDefaultSpecifier=iE;h.isExportNamedDeclaration=$b;h.isExportNamespaceSpecifier=dS;h.isExportSpecifier=Hb;h.isExpression=AP;h.isExpressionStatement=sb;h.isExpressionWrapper=MP;h.isFile=nb;h.isFlow=sA;h.isFlowBaseAnnotation=aA;h.isFlowDeclaration=oA;h.isFlowPredicate=lA;h.isFlowType=nA;h.isFor=BP;h.isForInStatement=ab;h.isForOfStatement=Gb;h.isForStatement=ob;h.isForXStatement=FP;h.isFunction=jP;h.isFunctionDeclaration=lb;h.isFunctionExpression=ub;h.isFunctionParent=RP;h.isFunctionTypeAnnotation=US;h.isFunctionTypeParam=VS;h.isGenericTypeAnnotation=KS;h.isIdentifier=cb;h.isIfStatement=pb;h.isImmutable=XP;h.isImport=fS;h.isImportAttribute=eE;h.isImportDeclaration=zb;h.isImportDefaultSpecifier=Qb;h.isImportExpression=tS;h.isImportNamespaceSpecifier=Zb;h.isImportOrExportDeclaration=Bp;h.isImportSpecifier=eS;h.isIndexedAccessType=Dx;h.isInferredPredicate=WS;h.isInterfaceDeclaration=XS;h.isInterfaceExtends=YS;h.isInterfaceTypeAnnotation=JS;h.isInterpreterDirective=Xg;h.isIntersectionTypeAnnotation=$S;h.isJSX=pA;h.isJSXAttribute=Lx;h.isJSXClosingElement=Mx;h.isJSXClosingFragment=$x;h.isJSXElement=Bx;h.isJSXEmptyExpression=Fx;h.isJSXExpressionContainer=jx;h.isJSXFragment=Xx;h.isJSXIdentifier=qx;h.isJSXMemberExpression=Ux;h.isJSXNamespacedName=Vx;h.isJSXOpeningElement=Kx;h.isJSXOpeningFragment=Jx;h.isJSXSpreadAttribute=Wx;h.isJSXSpreadChild=Rx;h.isJSXText=Yx;h.isLVal=KP;h.isLabeledStatement=fb;h.isLiteral=YP;h.isLogicalExpression=gb;h.isLoop=kP;h.isMemberExpression=bb;h.isMetaProperty=rS;h.isMethod=$P;h.isMiscellaneous=fA;h.isMixedTypeAnnotation=HS;h.isModuleDeclaration=xA;h.isModuleExpression=oE;h.isModuleSpecifier=tA;h.isNewExpression=Sb;h.isNoop=Hx;h.isNullLiteral=mb;h.isNullLiteralTypeAnnotation=IS;h.isNullableTypeAnnotation=zS;h.isNumberLiteral=TA;h.isNumberLiteralTypeAnnotation=QS;h.isNumberTypeAnnotation=ZS;h.isNumericLiteral=db;h.isObjectExpression=Eb;h.isObjectMember=HP;h.isObjectMethod=Pb;h.isObjectPattern=sS;h.isObjectProperty=Ab;h.isObjectTypeAnnotation=ex;h.isObjectTypeCallProperty=rx;h.isObjectTypeIndexer=ix;h.isObjectTypeInternalSlot=tx;h.isObjectTypeProperty=sx;h.isObjectTypeSpreadProperty=nx;h.isOpaqueType=ax;h.isOptionalCallExpression=yS;h.isOptionalIndexedAccessType=kx;h.isOptionalMemberExpression=mS;h.isParenthesizedExpression=wb;h.isPattern=QP;h.isPatternLike=VP;h.isPipelineBareFunction=cE;h.isPipelinePrimaryTopicReference=pE;h.isPipelineTopicExpression=uE;h.isPlaceholder=Gx;h.isPrivate=iA;h.isPrivateName=xS;h.isProgram=xb;h.isProperty=GP;h.isPureish=qP;h.isQualifiedTypeIdentifier=ox;h.isRecordExpression=sE;h.isRegExpLiteral=Tb;h.isRegexLiteral=gA;h.isRestElement=vb;h.isRestProperty=bA;h.isReturnStatement=Cb;h.isScopable=CP;h.isSequenceExpression=Ib;h.isSpreadElement=nS;h.isSpreadProperty=SA;h.isStandardized=PP;h.isStatement=OP;h.isStaticBlock=ES;h.isStringLiteral=hb;h.isStringLiteralTypeAnnotation=lx;h.isStringTypeAnnotation=ux;h.isSuper=aS;h.isSwitchCase=Ob;h.isSwitchStatement=Nb;h.isSymbolTypeAnnotation=cx;h.isTSAnyKeyword=xE;h.isTSArrayType=UE;h.isTSAsExpression=aP;h.isTSBaseType=yA;h.isTSBigIntKeyword=PE;h.isTSBooleanKeyword=EE;h.isTSCallSignatureDeclaration=yE;h.isTSConditionalType=$E;h.isTSConstructSignatureDeclaration=TE;h.isTSConstructorType=BE;h.isTSDeclareFunction=hE;h.isTSDeclareMethod=dE;h.isTSEntityName=WP;h.isTSEnumDeclaration=uP;h.isTSEnumMember=cP;h.isTSExportAssignment=TP;h.isTSExpressionWithTypeArguments=tP;h.isTSExternalModuleReference=mP;h.isTSFunctionType=ME;h.isTSImportEqualsDeclaration=dP;h.isTSImportType=hP;h.isTSIndexSignature=SE;h.isTSIndexedAccessType=QE;h.isTSInferType=HE;h.isTSInstantiationExpression=nP;h.isTSInterfaceBody=iP;h.isTSInterfaceDeclaration=rP;h.isTSIntersectionType=JE;h.isTSIntrinsicKeyword=AE;h.isTSLiteralType=eP;h.isTSMappedType=ZE;h.isTSMethodSignature=bE;h.isTSModuleBlock=fP;h.isTSModuleDeclaration=pP;h.isTSNamedTupleMember=YE;h.isTSNamespaceExportDeclaration=gP;h.isTSNeverKeyword=vE;h.isTSNonNullExpression=yP;h.isTSNullKeyword=CE;h.isTSNumberKeyword=IE;h.isTSObjectKeyword=wE;h.isTSOptionalType=KE;h.isTSParameterProperty=fE;h.isTSParenthesizedType=GE;h.isTSPropertySignature=gE;h.isTSQualifiedName=mE;h.isTSRestType=WE;h.isTSSatisfiesExpression=oP;h.isTSStringKeyword=OE;h.isTSSymbolKeyword=NE;h.isTSThisType=LE;h.isTSTupleType=VE;h.isTSType=mA;h.isTSTypeAliasDeclaration=sP;h.isTSTypeAnnotation=bP;h.isTSTypeAssertion=lP;h.isTSTypeElement=dA;h.isTSTypeLiteral=qE;h.isTSTypeOperator=zE;h.isTSTypeParameter=EP;h.isTSTypeParameterDeclaration=xP;h.isTSTypeParameterInstantiation=SP;h.isTSTypePredicate=jE;h.isTSTypeQuery=RE;h.isTSTypeReference=FE;h.isTSUndefinedKeyword=_E;h.isTSUnionType=XE;h.isTSUnknownKeyword=DE;h.isTSVoidKeyword=kE;h.isTaggedTemplateExpression=oS;h.isTemplateElement=lS;h.isTemplateLiteral=uS;h.isTerminatorless=NP;h.isThisExpression=_b;h.isThisTypeAnnotation=px;h.isThrowStatement=Db;h.isTopicReference=lE;h.isTryStatement=kb;h.isTupleExpression=nE;h.isTupleTypeAnnotation=fx;h.isTypeAlias=dx;h.isTypeAnnotation=mx;h.isTypeCastExpression=yx;h.isTypeParameter=Tx;h.isTypeParameterDeclaration=gx;h.isTypeParameterInstantiation=bx;h.isTypeScript=hA;h.isTypeofTypeAnnotation=hx;h.isUnaryExpression=Lb;h.isUnaryLike=zP;h.isUnionTypeAnnotation=Sx;h.isUpdateExpression=Mb;h.isUserWhitespacable=JP;h.isV8IntrinsicIdentifier=zx;h.isVariableDeclaration=Bb;h.isVariableDeclarator=Fb;h.isVariance=xx;h.isVoidTypeAnnotation=Ex;h.isWhile=LP;h.isWhileStatement=jb;h.isWithStatement=Rb;h.isYieldExpression=cS;var y=qs(),Wi=Ki();function Kg(e,t){return!e||e.type!=="ArrayExpression"?!1:t==null||(0,y.default)(e,t)}function Wg(e,t){return!e||e.type!=="AssignmentExpression"?!1:t==null||(0,y.default)(e,t)}function Yg(e,t){return!e||e.type!=="BinaryExpression"?!1:t==null||(0,y.default)(e,t)}function Xg(e,t){return!e||e.type!=="InterpreterDirective"?!1:t==null||(0,y.default)(e,t)}function Jg(e,t){return!e||e.type!=="Directive"?!1:t==null||(0,y.default)(e,t)}function $g(e,t){return!e||e.type!=="DirectiveLiteral"?!1:t==null||(0,y.default)(e,t)}function Hg(e,t){return!e||e.type!=="BlockStatement"?!1:t==null||(0,y.default)(e,t)}function Gg(e,t){return!e||e.type!=="BreakStatement"?!1:t==null||(0,y.default)(e,t)}function zg(e,t){return!e||e.type!=="CallExpression"?!1:t==null||(0,y.default)(e,t)}function Qg(e,t){return!e||e.type!=="CatchClause"?!1:t==null||(0,y.default)(e,t)}function Zg(e,t){return!e||e.type!=="ConditionalExpression"?!1:t==null||(0,y.default)(e,t)}function eb(e,t){return!e||e.type!=="ContinueStatement"?!1:t==null||(0,y.default)(e,t)}function tb(e,t){return!e||e.type!=="DebuggerStatement"?!1:t==null||(0,y.default)(e,t)}function rb(e,t){return!e||e.type!=="DoWhileStatement"?!1:t==null||(0,y.default)(e,t)}function ib(e,t){return!e||e.type!=="EmptyStatement"?!1:t==null||(0,y.default)(e,t)}function sb(e,t){return!e||e.type!=="ExpressionStatement"?!1:t==null||(0,y.default)(e,t)}function nb(e,t){return!e||e.type!=="File"?!1:t==null||(0,y.default)(e,t)}function ab(e,t){return!e||e.type!=="ForInStatement"?!1:t==null||(0,y.default)(e,t)}function ob(e,t){return!e||e.type!=="ForStatement"?!1:t==null||(0,y.default)(e,t)}function lb(e,t){return!e||e.type!=="FunctionDeclaration"?!1:t==null||(0,y.default)(e,t)}function ub(e,t){return!e||e.type!=="FunctionExpression"?!1:t==null||(0,y.default)(e,t)}function cb(e,t){return!e||e.type!=="Identifier"?!1:t==null||(0,y.default)(e,t)}function pb(e,t){return!e||e.type!=="IfStatement"?!1:t==null||(0,y.default)(e,t)}function fb(e,t){return!e||e.type!=="LabeledStatement"?!1:t==null||(0,y.default)(e,t)}function hb(e,t){return!e||e.type!=="StringLiteral"?!1:t==null||(0,y.default)(e,t)}function db(e,t){return!e||e.type!=="NumericLiteral"?!1:t==null||(0,y.default)(e,t)}function mb(e,t){return!e||e.type!=="NullLiteral"?!1:t==null||(0,y.default)(e,t)}function yb(e,t){return!e||e.type!=="BooleanLiteral"?!1:t==null||(0,y.default)(e,t)}function Tb(e,t){return!e||e.type!=="RegExpLiteral"?!1:t==null||(0,y.default)(e,t)}function gb(e,t){return!e||e.type!=="LogicalExpression"?!1:t==null||(0,y.default)(e,t)}function bb(e,t){return!e||e.type!=="MemberExpression"?!1:t==null||(0,y.default)(e,t)}function Sb(e,t){return!e||e.type!=="NewExpression"?!1:t==null||(0,y.default)(e,t)}function xb(e,t){return!e||e.type!=="Program"?!1:t==null||(0,y.default)(e,t)}function Eb(e,t){return!e||e.type!=="ObjectExpression"?!1:t==null||(0,y.default)(e,t)}function Pb(e,t){return!e||e.type!=="ObjectMethod"?!1:t==null||(0,y.default)(e,t)}function Ab(e,t){return!e||e.type!=="ObjectProperty"?!1:t==null||(0,y.default)(e,t)}function vb(e,t){return!e||e.type!=="RestElement"?!1:t==null||(0,y.default)(e,t)}function Cb(e,t){return!e||e.type!=="ReturnStatement"?!1:t==null||(0,y.default)(e,t)}function Ib(e,t){return!e||e.type!=="SequenceExpression"?!1:t==null||(0,y.default)(e,t)}function wb(e,t){return!e||e.type!=="ParenthesizedExpression"?!1:t==null||(0,y.default)(e,t)}function Ob(e,t){return!e||e.type!=="SwitchCase"?!1:t==null||(0,y.default)(e,t)}function Nb(e,t){return!e||e.type!=="SwitchStatement"?!1:t==null||(0,y.default)(e,t)}function _b(e,t){return!e||e.type!=="ThisExpression"?!1:t==null||(0,y.default)(e,t)}function Db(e,t){return!e||e.type!=="ThrowStatement"?!1:t==null||(0,y.default)(e,t)}function kb(e,t){return!e||e.type!=="TryStatement"?!1:t==null||(0,y.default)(e,t)}function Lb(e,t){return!e||e.type!=="UnaryExpression"?!1:t==null||(0,y.default)(e,t)}function Mb(e,t){return!e||e.type!=="UpdateExpression"?!1:t==null||(0,y.default)(e,t)}function Bb(e,t){return!e||e.type!=="VariableDeclaration"?!1:t==null||(0,y.default)(e,t)}function Fb(e,t){return!e||e.type!=="VariableDeclarator"?!1:t==null||(0,y.default)(e,t)}function jb(e,t){return!e||e.type!=="WhileStatement"?!1:t==null||(0,y.default)(e,t)}function Rb(e,t){return!e||e.type!=="WithStatement"?!1:t==null||(0,y.default)(e,t)}function qb(e,t){return!e||e.type!=="AssignmentPattern"?!1:t==null||(0,y.default)(e,t)}function Ub(e,t){return!e||e.type!=="ArrayPattern"?!1:t==null||(0,y.default)(e,t)}function Vb(e,t){return!e||e.type!=="ArrowFunctionExpression"?!1:t==null||(0,y.default)(e,t)}function Kb(e,t){return!e||e.type!=="ClassBody"?!1:t==null||(0,y.default)(e,t)}function Wb(e,t){return!e||e.type!=="ClassExpression"?!1:t==null||(0,y.default)(e,t)}function Yb(e,t){return!e||e.type!=="ClassDeclaration"?!1:t==null||(0,y.default)(e,t)}function Xb(e,t){return!e||e.type!=="ExportAllDeclaration"?!1:t==null||(0,y.default)(e,t)}function Jb(e,t){return!e||e.type!=="ExportDefaultDeclaration"?!1:t==null||(0,y.default)(e,t)}function $b(e,t){return!e||e.type!=="ExportNamedDeclaration"?!1:t==null||(0,y.default)(e,t)}function Hb(e,t){return!e||e.type!=="ExportSpecifier"?!1:t==null||(0,y.default)(e,t)}function Gb(e,t){return!e||e.type!=="ForOfStatement"?!1:t==null||(0,y.default)(e,t)}function zb(e,t){return!e||e.type!=="ImportDeclaration"?!1:t==null||(0,y.default)(e,t)}function Qb(e,t){return!e||e.type!=="ImportDefaultSpecifier"?!1:t==null||(0,y.default)(e,t)}function Zb(e,t){return!e||e.type!=="ImportNamespaceSpecifier"?!1:t==null||(0,y.default)(e,t)}function eS(e,t){return!e||e.type!=="ImportSpecifier"?!1:t==null||(0,y.default)(e,t)}function tS(e,t){return!e||e.type!=="ImportExpression"?!1:t==null||(0,y.default)(e,t)}function rS(e,t){return!e||e.type!=="MetaProperty"?!1:t==null||(0,y.default)(e,t)}function iS(e,t){return!e||e.type!=="ClassMethod"?!1:t==null||(0,y.default)(e,t)}function sS(e,t){return!e||e.type!=="ObjectPattern"?!1:t==null||(0,y.default)(e,t)}function nS(e,t){return!e||e.type!=="SpreadElement"?!1:t==null||(0,y.default)(e,t)}function aS(e,t){return!e||e.type!=="Super"?!1:t==null||(0,y.default)(e,t)}function oS(e,t){return!e||e.type!=="TaggedTemplateExpression"?!1:t==null||(0,y.default)(e,t)}function lS(e,t){return!e||e.type!=="TemplateElement"?!1:t==null||(0,y.default)(e,t)}function uS(e,t){return!e||e.type!=="TemplateLiteral"?!1:t==null||(0,y.default)(e,t)}function cS(e,t){return!e||e.type!=="YieldExpression"?!1:t==null||(0,y.default)(e,t)}function pS(e,t){return!e||e.type!=="AwaitExpression"?!1:t==null||(0,y.default)(e,t)}function fS(e,t){return!e||e.type!=="Import"?!1:t==null||(0,y.default)(e,t)}function hS(e,t){return!e||e.type!=="BigIntLiteral"?!1:t==null||(0,y.default)(e,t)}function dS(e,t){return!e||e.type!=="ExportNamespaceSpecifier"?!1:t==null||(0,y.default)(e,t)}function mS(e,t){return!e||e.type!=="OptionalMemberExpression"?!1:t==null||(0,y.default)(e,t)}function yS(e,t){return!e||e.type!=="OptionalCallExpression"?!1:t==null||(0,y.default)(e,t)}function TS(e,t){return!e||e.type!=="ClassProperty"?!1:t==null||(0,y.default)(e,t)}function gS(e,t){return!e||e.type!=="ClassAccessorProperty"?!1:t==null||(0,y.default)(e,t)}function bS(e,t){return!e||e.type!=="ClassPrivateProperty"?!1:t==null||(0,y.default)(e,t)}function SS(e,t){return!e||e.type!=="ClassPrivateMethod"?!1:t==null||(0,y.default)(e,t)}function xS(e,t){return!e||e.type!=="PrivateName"?!1:t==null||(0,y.default)(e,t)}function ES(e,t){return!e||e.type!=="StaticBlock"?!1:t==null||(0,y.default)(e,t)}function PS(e,t){return!e||e.type!=="AnyTypeAnnotation"?!1:t==null||(0,y.default)(e,t)}function AS(e,t){return!e||e.type!=="ArrayTypeAnnotation"?!1:t==null||(0,y.default)(e,t)}function vS(e,t){return!e||e.type!=="BooleanTypeAnnotation"?!1:t==null||(0,y.default)(e,t)}function CS(e,t){return!e||e.type!=="BooleanLiteralTypeAnnotation"?!1:t==null||(0,y.default)(e,t)}function IS(e,t){return!e||e.type!=="NullLiteralTypeAnnotation"?!1:t==null||(0,y.default)(e,t)}function wS(e,t){return!e||e.type!=="ClassImplements"?!1:t==null||(0,y.default)(e,t)}function OS(e,t){return!e||e.type!=="DeclareClass"?!1:t==null||(0,y.default)(e,t)}function NS(e,t){return!e||e.type!=="DeclareFunction"?!1:t==null||(0,y.default)(e,t)}function _S(e,t){return!e||e.type!=="DeclareInterface"?!1:t==null||(0,y.default)(e,t)}function DS(e,t){return!e||e.type!=="DeclareModule"?!1:t==null||(0,y.default)(e,t)}function kS(e,t){return!e||e.type!=="DeclareModuleExports"?!1:t==null||(0,y.default)(e,t)}function LS(e,t){return!e||e.type!=="DeclareTypeAlias"?!1:t==null||(0,y.default)(e,t)}function MS(e,t){return!e||e.type!=="DeclareOpaqueType"?!1:t==null||(0,y.default)(e,t)}function BS(e,t){return!e||e.type!=="DeclareVariable"?!1:t==null||(0,y.default)(e,t)}function FS(e,t){return!e||e.type!=="DeclareExportDeclaration"?!1:t==null||(0,y.default)(e,t)}function jS(e,t){return!e||e.type!=="DeclareExportAllDeclaration"?!1:t==null||(0,y.default)(e,t)}function RS(e,t){return!e||e.type!=="DeclaredPredicate"?!1:t==null||(0,y.default)(e,t)}function qS(e,t){return!e||e.type!=="ExistsTypeAnnotation"?!1:t==null||(0,y.default)(e,t)}function US(e,t){return!e||e.type!=="FunctionTypeAnnotation"?!1:t==null||(0,y.default)(e,t)}function VS(e,t){return!e||e.type!=="FunctionTypeParam"?!1:t==null||(0,y.default)(e,t)}function KS(e,t){return!e||e.type!=="GenericTypeAnnotation"?!1:t==null||(0,y.default)(e,t)}function WS(e,t){return!e||e.type!=="InferredPredicate"?!1:t==null||(0,y.default)(e,t)}function YS(e,t){return!e||e.type!=="InterfaceExtends"?!1:t==null||(0,y.default)(e,t)}function XS(e,t){return!e||e.type!=="InterfaceDeclaration"?!1:t==null||(0,y.default)(e,t)}function JS(e,t){return!e||e.type!=="InterfaceTypeAnnotation"?!1:t==null||(0,y.default)(e,t)}function $S(e,t){return!e||e.type!=="IntersectionTypeAnnotation"?!1:t==null||(0,y.default)(e,t)}function HS(e,t){return!e||e.type!=="MixedTypeAnnotation"?!1:t==null||(0,y.default)(e,t)}function GS(e,t){return!e||e.type!=="EmptyTypeAnnotation"?!1:t==null||(0,y.default)(e,t)}function zS(e,t){return!e||e.type!=="NullableTypeAnnotation"?!1:t==null||(0,y.default)(e,t)}function QS(e,t){return!e||e.type!=="NumberLiteralTypeAnnotation"?!1:t==null||(0,y.default)(e,t)}function ZS(e,t){return!e||e.type!=="NumberTypeAnnotation"?!1:t==null||(0,y.default)(e,t)}function ex(e,t){return!e||e.type!=="ObjectTypeAnnotation"?!1:t==null||(0,y.default)(e,t)}function tx(e,t){return!e||e.type!=="ObjectTypeInternalSlot"?!1:t==null||(0,y.default)(e,t)}function rx(e,t){return!e||e.type!=="ObjectTypeCallProperty"?!1:t==null||(0,y.default)(e,t)}function ix(e,t){return!e||e.type!=="ObjectTypeIndexer"?!1:t==null||(0,y.default)(e,t)}function sx(e,t){return!e||e.type!=="ObjectTypeProperty"?!1:t==null||(0,y.default)(e,t)}function nx(e,t){return!e||e.type!=="ObjectTypeSpreadProperty"?!1:t==null||(0,y.default)(e,t)}function ax(e,t){return!e||e.type!=="OpaqueType"?!1:t==null||(0,y.default)(e,t)}function ox(e,t){return!e||e.type!=="QualifiedTypeIdentifier"?!1:t==null||(0,y.default)(e,t)}function lx(e,t){return!e||e.type!=="StringLiteralTypeAnnotation"?!1:t==null||(0,y.default)(e,t)}function ux(e,t){return!e||e.type!=="StringTypeAnnotation"?!1:t==null||(0,y.default)(e,t)}function cx(e,t){return!e||e.type!=="SymbolTypeAnnotation"?!1:t==null||(0,y.default)(e,t)}function px(e,t){return!e||e.type!=="ThisTypeAnnotation"?!1:t==null||(0,y.default)(e,t)}function fx(e,t){return!e||e.type!=="TupleTypeAnnotation"?!1:t==null||(0,y.default)(e,t)}function hx(e,t){return!e||e.type!=="TypeofTypeAnnotation"?!1:t==null||(0,y.default)(e,t)}function dx(e,t){return!e||e.type!=="TypeAlias"?!1:t==null||(0,y.default)(e,t)}function mx(e,t){return!e||e.type!=="TypeAnnotation"?!1:t==null||(0,y.default)(e,t)}function yx(e,t){return!e||e.type!=="TypeCastExpression"?!1:t==null||(0,y.default)(e,t)}function Tx(e,t){return!e||e.type!=="TypeParameter"?!1:t==null||(0,y.default)(e,t)}function gx(e,t){return!e||e.type!=="TypeParameterDeclaration"?!1:t==null||(0,y.default)(e,t)}function bx(e,t){return!e||e.type!=="TypeParameterInstantiation"?!1:t==null||(0,y.default)(e,t)}function Sx(e,t){return!e||e.type!=="UnionTypeAnnotation"?!1:t==null||(0,y.default)(e,t)}function xx(e,t){return!e||e.type!=="Variance"?!1:t==null||(0,y.default)(e,t)}function Ex(e,t){return!e||e.type!=="VoidTypeAnnotation"?!1:t==null||(0,y.default)(e,t)}function Px(e,t){return!e||e.type!=="EnumDeclaration"?!1:t==null||(0,y.default)(e,t)}function Ax(e,t){return!e||e.type!=="EnumBooleanBody"?!1:t==null||(0,y.default)(e,t)}function vx(e,t){return!e||e.type!=="EnumNumberBody"?!1:t==null||(0,y.default)(e,t)}function Cx(e,t){return!e||e.type!=="EnumStringBody"?!1:t==null||(0,y.default)(e,t)}function Ix(e,t){return!e||e.type!=="EnumSymbolBody"?!1:t==null||(0,y.default)(e,t)}function wx(e,t){return!e||e.type!=="EnumBooleanMember"?!1:t==null||(0,y.default)(e,t)}function Ox(e,t){return!e||e.type!=="EnumNumberMember"?!1:t==null||(0,y.default)(e,t)}function Nx(e,t){return!e||e.type!=="EnumStringMember"?!1:t==null||(0,y.default)(e,t)}function _x(e,t){return!e||e.type!=="EnumDefaultedMember"?!1:t==null||(0,y.default)(e,t)}function Dx(e,t){return!e||e.type!=="IndexedAccessType"?!1:t==null||(0,y.default)(e,t)}function kx(e,t){return!e||e.type!=="OptionalIndexedAccessType"?!1:t==null||(0,y.default)(e,t)}function Lx(e,t){return!e||e.type!=="JSXAttribute"?!1:t==null||(0,y.default)(e,t)}function Mx(e,t){return!e||e.type!=="JSXClosingElement"?!1:t==null||(0,y.default)(e,t)}function Bx(e,t){return!e||e.type!=="JSXElement"?!1:t==null||(0,y.default)(e,t)}function Fx(e,t){return!e||e.type!=="JSXEmptyExpression"?!1:t==null||(0,y.default)(e,t)}function jx(e,t){return!e||e.type!=="JSXExpressionContainer"?!1:t==null||(0,y.default)(e,t)}function Rx(e,t){return!e||e.type!=="JSXSpreadChild"?!1:t==null||(0,y.default)(e,t)}function qx(e,t){return!e||e.type!=="JSXIdentifier"?!1:t==null||(0,y.default)(e,t)}function Ux(e,t){return!e||e.type!=="JSXMemberExpression"?!1:t==null||(0,y.default)(e,t)}function Vx(e,t){return!e||e.type!=="JSXNamespacedName"?!1:t==null||(0,y.default)(e,t)}function Kx(e,t){return!e||e.type!=="JSXOpeningElement"?!1:t==null||(0,y.default)(e,t)}function Wx(e,t){return!e||e.type!=="JSXSpreadAttribute"?!1:t==null||(0,y.default)(e,t)}function Yx(e,t){return!e||e.type!=="JSXText"?!1:t==null||(0,y.default)(e,t)}function Xx(e,t){return!e||e.type!=="JSXFragment"?!1:t==null||(0,y.default)(e,t)}function Jx(e,t){return!e||e.type!=="JSXOpeningFragment"?!1:t==null||(0,y.default)(e,t)}function $x(e,t){return!e||e.type!=="JSXClosingFragment"?!1:t==null||(0,y.default)(e,t)}function Hx(e,t){return!e||e.type!=="Noop"?!1:t==null||(0,y.default)(e,t)}function Gx(e,t){return!e||e.type!=="Placeholder"?!1:t==null||(0,y.default)(e,t)}function zx(e,t){return!e||e.type!=="V8IntrinsicIdentifier"?!1:t==null||(0,y.default)(e,t)}function Qx(e,t){return!e||e.type!=="ArgumentPlaceholder"?!1:t==null||(0,y.default)(e,t)}function Zx(e,t){return!e||e.type!=="BindExpression"?!1:t==null||(0,y.default)(e,t)}function eE(e,t){return!e||e.type!=="ImportAttribute"?!1:t==null||(0,y.default)(e,t)}function tE(e,t){return!e||e.type!=="Decorator"?!1:t==null||(0,y.default)(e,t)}function rE(e,t){return!e||e.type!=="DoExpression"?!1:t==null||(0,y.default)(e,t)}function iE(e,t){return!e||e.type!=="ExportDefaultSpecifier"?!1:t==null||(0,y.default)(e,t)}function sE(e,t){return!e||e.type!=="RecordExpression"?!1:t==null||(0,y.default)(e,t)}function nE(e,t){return!e||e.type!=="TupleExpression"?!1:t==null||(0,y.default)(e,t)}function aE(e,t){return!e||e.type!=="DecimalLiteral"?!1:t==null||(0,y.default)(e,t)}function oE(e,t){return!e||e.type!=="ModuleExpression"?!1:t==null||(0,y.default)(e,t)}function lE(e,t){return!e||e.type!=="TopicReference"?!1:t==null||(0,y.default)(e,t)}function uE(e,t){return!e||e.type!=="PipelineTopicExpression"?!1:t==null||(0,y.default)(e,t)}function cE(e,t){return!e||e.type!=="PipelineBareFunction"?!1:t==null||(0,y.default)(e,t)}function pE(e,t){return!e||e.type!=="PipelinePrimaryTopicReference"?!1:t==null||(0,y.default)(e,t)}function fE(e,t){return!e||e.type!=="TSParameterProperty"?!1:t==null||(0,y.default)(e,t)}function hE(e,t){return!e||e.type!=="TSDeclareFunction"?!1:t==null||(0,y.default)(e,t)}function dE(e,t){return!e||e.type!=="TSDeclareMethod"?!1:t==null||(0,y.default)(e,t)}function mE(e,t){return!e||e.type!=="TSQualifiedName"?!1:t==null||(0,y.default)(e,t)}function yE(e,t){return!e||e.type!=="TSCallSignatureDeclaration"?!1:t==null||(0,y.default)(e,t)}function TE(e,t){return!e||e.type!=="TSConstructSignatureDeclaration"?!1:t==null||(0,y.default)(e,t)}function gE(e,t){return!e||e.type!=="TSPropertySignature"?!1:t==null||(0,y.default)(e,t)}function bE(e,t){return!e||e.type!=="TSMethodSignature"?!1:t==null||(0,y.default)(e,t)}function SE(e,t){return!e||e.type!=="TSIndexSignature"?!1:t==null||(0,y.default)(e,t)}function xE(e,t){return!e||e.type!=="TSAnyKeyword"?!1:t==null||(0,y.default)(e,t)}function EE(e,t){return!e||e.type!=="TSBooleanKeyword"?!1:t==null||(0,y.default)(e,t)}function PE(e,t){return!e||e.type!=="TSBigIntKeyword"?!1:t==null||(0,y.default)(e,t)}function AE(e,t){return!e||e.type!=="TSIntrinsicKeyword"?!1:t==null||(0,y.default)(e,t)}function vE(e,t){return!e||e.type!=="TSNeverKeyword"?!1:t==null||(0,y.default)(e,t)}function CE(e,t){return!e||e.type!=="TSNullKeyword"?!1:t==null||(0,y.default)(e,t)}function IE(e,t){return!e||e.type!=="TSNumberKeyword"?!1:t==null||(0,y.default)(e,t)}function wE(e,t){return!e||e.type!=="TSObjectKeyword"?!1:t==null||(0,y.default)(e,t)}function OE(e,t){return!e||e.type!=="TSStringKeyword"?!1:t==null||(0,y.default)(e,t)}function NE(e,t){return!e||e.type!=="TSSymbolKeyword"?!1:t==null||(0,y.default)(e,t)}function _E(e,t){return!e||e.type!=="TSUndefinedKeyword"?!1:t==null||(0,y.default)(e,t)}function DE(e,t){return!e||e.type!=="TSUnknownKeyword"?!1:t==null||(0,y.default)(e,t)}function kE(e,t){return!e||e.type!=="TSVoidKeyword"?!1:t==null||(0,y.default)(e,t)}function LE(e,t){return!e||e.type!=="TSThisType"?!1:t==null||(0,y.default)(e,t)}function ME(e,t){return!e||e.type!=="TSFunctionType"?!1:t==null||(0,y.default)(e,t)}function BE(e,t){return!e||e.type!=="TSConstructorType"?!1:t==null||(0,y.default)(e,t)}function FE(e,t){return!e||e.type!=="TSTypeReference"?!1:t==null||(0,y.default)(e,t)}function jE(e,t){return!e||e.type!=="TSTypePredicate"?!1:t==null||(0,y.default)(e,t)}function RE(e,t){return!e||e.type!=="TSTypeQuery"?!1:t==null||(0,y.default)(e,t)}function qE(e,t){return!e||e.type!=="TSTypeLiteral"?!1:t==null||(0,y.default)(e,t)}function UE(e,t){return!e||e.type!=="TSArrayType"?!1:t==null||(0,y.default)(e,t)}function VE(e,t){return!e||e.type!=="TSTupleType"?!1:t==null||(0,y.default)(e,t)}function KE(e,t){return!e||e.type!=="TSOptionalType"?!1:t==null||(0,y.default)(e,t)}function WE(e,t){return!e||e.type!=="TSRestType"?!1:t==null||(0,y.default)(e,t)}function YE(e,t){return!e||e.type!=="TSNamedTupleMember"?!1:t==null||(0,y.default)(e,t)}function XE(e,t){return!e||e.type!=="TSUnionType"?!1:t==null||(0,y.default)(e,t)}function JE(e,t){return!e||e.type!=="TSIntersectionType"?!1:t==null||(0,y.default)(e,t)}function $E(e,t){return!e||e.type!=="TSConditionalType"?!1:t==null||(0,y.default)(e,t)}function HE(e,t){return!e||e.type!=="TSInferType"?!1:t==null||(0,y.default)(e,t)}function GE(e,t){return!e||e.type!=="TSParenthesizedType"?!1:t==null||(0,y.default)(e,t)}function zE(e,t){return!e||e.type!=="TSTypeOperator"?!1:t==null||(0,y.default)(e,t)}function QE(e,t){return!e||e.type!=="TSIndexedAccessType"?!1:t==null||(0,y.default)(e,t)}function ZE(e,t){return!e||e.type!=="TSMappedType"?!1:t==null||(0,y.default)(e,t)}function eP(e,t){return!e||e.type!=="TSLiteralType"?!1:t==null||(0,y.default)(e,t)}function tP(e,t){return!e||e.type!=="TSExpressionWithTypeArguments"?!1:t==null||(0,y.default)(e,t)}function rP(e,t){return!e||e.type!=="TSInterfaceDeclaration"?!1:t==null||(0,y.default)(e,t)}function iP(e,t){return!e||e.type!=="TSInterfaceBody"?!1:t==null||(0,y.default)(e,t)}function sP(e,t){return!e||e.type!=="TSTypeAliasDeclaration"?!1:t==null||(0,y.default)(e,t)}function nP(e,t){return!e||e.type!=="TSInstantiationExpression"?!1:t==null||(0,y.default)(e,t)}function aP(e,t){return!e||e.type!=="TSAsExpression"?!1:t==null||(0,y.default)(e,t)}function oP(e,t){return!e||e.type!=="TSSatisfiesExpression"?!1:t==null||(0,y.default)(e,t)}function lP(e,t){return!e||e.type!=="TSTypeAssertion"?!1:t==null||(0,y.default)(e,t)}function uP(e,t){return!e||e.type!=="TSEnumDeclaration"?!1:t==null||(0,y.default)(e,t)}function cP(e,t){return!e||e.type!=="TSEnumMember"?!1:t==null||(0,y.default)(e,t)}function pP(e,t){return!e||e.type!=="TSModuleDeclaration"?!1:t==null||(0,y.default)(e,t)}function fP(e,t){return!e||e.type!=="TSModuleBlock"?!1:t==null||(0,y.default)(e,t)}function hP(e,t){return!e||e.type!=="TSImportType"?!1:t==null||(0,y.default)(e,t)}function dP(e,t){return!e||e.type!=="TSImportEqualsDeclaration"?!1:t==null||(0,y.default)(e,t)}function mP(e,t){return!e||e.type!=="TSExternalModuleReference"?!1:t==null||(0,y.default)(e,t)}function yP(e,t){return!e||e.type!=="TSNonNullExpression"?!1:t==null||(0,y.default)(e,t)}function TP(e,t){return!e||e.type!=="TSExportAssignment"?!1:t==null||(0,y.default)(e,t)}function gP(e,t){return!e||e.type!=="TSNamespaceExportDeclaration"?!1:t==null||(0,y.default)(e,t)}function bP(e,t){return!e||e.type!=="TSTypeAnnotation"?!1:t==null||(0,y.default)(e,t)}function SP(e,t){return!e||e.type!=="TSTypeParameterInstantiation"?!1:t==null||(0,y.default)(e,t)}function xP(e,t){return!e||e.type!=="TSTypeParameterDeclaration"?!1:t==null||(0,y.default)(e,t)}function EP(e,t){return!e||e.type!=="TSTypeParameter"?!1:t==null||(0,y.default)(e,t)}function PP(e,t){if(!e)return!1;switch(e.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"InterpreterDirective":case"Directive":case"DirectiveLiteral":case"BlockStatement":case"BreakStatement":case"CallExpression":case"CatchClause":case"ConditionalExpression":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"File":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"FunctionExpression":case"Identifier":case"IfStatement":case"LabeledStatement":case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"Program":case"ObjectExpression":case"ObjectMethod":case"ObjectProperty":case"RestElement":case"ReturnStatement":case"SequenceExpression":case"ParenthesizedExpression":case"SwitchCase":case"SwitchStatement":case"ThisExpression":case"ThrowStatement":case"TryStatement":case"UnaryExpression":case"UpdateExpression":case"VariableDeclaration":case"VariableDeclarator":case"WhileStatement":case"WithStatement":case"AssignmentPattern":case"ArrayPattern":case"ArrowFunctionExpression":case"ClassBody":case"ClassExpression":case"ClassDeclaration":case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ExportSpecifier":case"ForOfStatement":case"ImportDeclaration":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":case"ImportExpression":case"MetaProperty":case"ClassMethod":case"ObjectPattern":case"SpreadElement":case"Super":case"TaggedTemplateExpression":case"TemplateElement":case"TemplateLiteral":case"YieldExpression":case"AwaitExpression":case"Import":case"BigIntLiteral":case"ExportNamespaceSpecifier":case"OptionalMemberExpression":case"OptionalCallExpression":case"ClassProperty":case"ClassAccessorProperty":case"ClassPrivateProperty":case"ClassPrivateMethod":case"PrivateName":case"StaticBlock":break;case"Placeholder":switch(e.expectedNode){case"Identifier":case"StringLiteral":case"BlockStatement":case"ClassBody":break;default:return!1}break;default:return!1}return t==null||(0,y.default)(e,t)}function AP(e,t){if(!e)return!1;switch(e.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"CallExpression":case"ConditionalExpression":case"FunctionExpression":case"Identifier":case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"ObjectExpression":case"SequenceExpression":case"ParenthesizedExpression":case"ThisExpression":case"UnaryExpression":case"UpdateExpression":case"ArrowFunctionExpression":case"ClassExpression":case"ImportExpression":case"MetaProperty":case"Super":case"TaggedTemplateExpression":case"TemplateLiteral":case"YieldExpression":case"AwaitExpression":case"Import":case"BigIntLiteral":case"OptionalMemberExpression":case"OptionalCallExpression":case"TypeCastExpression":case"JSXElement":case"JSXFragment":case"BindExpression":case"DoExpression":case"RecordExpression":case"TupleExpression":case"DecimalLiteral":case"ModuleExpression":case"TopicReference":case"PipelineTopicExpression":case"PipelineBareFunction":case"PipelinePrimaryTopicReference":case"TSInstantiationExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(e.expectedNode){case"Expression":case"Identifier":case"StringLiteral":break;default:return!1}break;default:return!1}return t==null||(0,y.default)(e,t)}function vP(e,t){if(!e)return!1;switch(e.type){case"BinaryExpression":case"LogicalExpression":break;default:return!1}return t==null||(0,y.default)(e,t)}function CP(e,t){if(!e)return!1;switch(e.type){case"BlockStatement":case"CatchClause":case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"FunctionExpression":case"Program":case"ObjectMethod":case"SwitchStatement":case"WhileStatement":case"ArrowFunctionExpression":case"ClassExpression":case"ClassDeclaration":case"ForOfStatement":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;case"Placeholder":if(e.expectedNode==="BlockStatement")break;default:return!1}return t==null||(0,y.default)(e,t)}function IP(e,t){if(!e)return!1;switch(e.type){case"BlockStatement":case"CatchClause":case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"FunctionExpression":case"Program":case"ObjectMethod":case"SwitchStatement":case"WhileStatement":case"ArrowFunctionExpression":case"ForOfStatement":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;case"Placeholder":if(e.expectedNode==="BlockStatement")break;default:return!1}return t==null||(0,y.default)(e,t)}function wP(e,t){if(!e)return!1;switch(e.type){case"BlockStatement":case"Program":case"TSModuleBlock":break;case"Placeholder":if(e.expectedNode==="BlockStatement")break;default:return!1}return t==null||(0,y.default)(e,t)}function OP(e,t){if(!e)return!1;switch(e.type){case"BlockStatement":case"BreakStatement":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"IfStatement":case"LabeledStatement":case"ReturnStatement":case"SwitchStatement":case"ThrowStatement":case"TryStatement":case"VariableDeclaration":case"WhileStatement":case"WithStatement":case"ClassDeclaration":case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ForOfStatement":case"ImportDeclaration":case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"InterfaceDeclaration":case"OpaqueType":case"TypeAlias":case"EnumDeclaration":case"TSDeclareFunction":case"TSInterfaceDeclaration":case"TSTypeAliasDeclaration":case"TSEnumDeclaration":case"TSModuleDeclaration":case"TSImportEqualsDeclaration":case"TSExportAssignment":case"TSNamespaceExportDeclaration":break;case"Placeholder":switch(e.expectedNode){case"Statement":case"Declaration":case"BlockStatement":break;default:return!1}break;default:return!1}return t==null||(0,y.default)(e,t)}function NP(e,t){if(!e)return!1;switch(e.type){case"BreakStatement":case"ContinueStatement":case"ReturnStatement":case"ThrowStatement":case"YieldExpression":case"AwaitExpression":break;default:return!1}return t==null||(0,y.default)(e,t)}function _P(e,t){if(!e)return!1;switch(e.type){case"BreakStatement":case"ContinueStatement":case"ReturnStatement":case"ThrowStatement":break;default:return!1}return t==null||(0,y.default)(e,t)}function DP(e,t){if(!e)return!1;switch(e.type){case"ConditionalExpression":case"IfStatement":break;default:return!1}return t==null||(0,y.default)(e,t)}function kP(e,t){if(!e)return!1;switch(e.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":case"ForOfStatement":break;default:return!1}return t==null||(0,y.default)(e,t)}function LP(e,t){if(!e)return!1;switch(e.type){case"DoWhileStatement":case"WhileStatement":break;default:return!1}return t==null||(0,y.default)(e,t)}function MP(e,t){if(!e)return!1;switch(e.type){case"ExpressionStatement":case"ParenthesizedExpression":case"TypeCastExpression":break;default:return!1}return t==null||(0,y.default)(e,t)}function BP(e,t){if(!e)return!1;switch(e.type){case"ForInStatement":case"ForStatement":case"ForOfStatement":break;default:return!1}return t==null||(0,y.default)(e,t)}function FP(e,t){if(!e)return!1;switch(e.type){case"ForInStatement":case"ForOfStatement":break;default:return!1}return t==null||(0,y.default)(e,t)}function jP(e,t){if(!e)return!1;switch(e.type){case"FunctionDeclaration":case"FunctionExpression":case"ObjectMethod":case"ArrowFunctionExpression":case"ClassMethod":case"ClassPrivateMethod":break;default:return!1}return t==null||(0,y.default)(e,t)}function RP(e,t){if(!e)return!1;switch(e.type){case"FunctionDeclaration":case"FunctionExpression":case"ObjectMethod":case"ArrowFunctionExpression":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;default:return!1}return t==null||(0,y.default)(e,t)}function qP(e,t){if(!e)return!1;switch(e.type){case"FunctionDeclaration":case"FunctionExpression":case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"ArrowFunctionExpression":case"BigIntLiteral":case"DecimalLiteral":break;case"Placeholder":if(e.expectedNode==="StringLiteral")break;default:return!1}return t==null||(0,y.default)(e,t)}function UP(e,t){if(!e)return!1;switch(e.type){case"FunctionDeclaration":case"VariableDeclaration":case"ClassDeclaration":case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ImportDeclaration":case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"InterfaceDeclaration":case"OpaqueType":case"TypeAlias":case"EnumDeclaration":case"TSDeclareFunction":case"TSInterfaceDeclaration":case"TSTypeAliasDeclaration":case"TSEnumDeclaration":case"TSModuleDeclaration":break;case"Placeholder":if(e.expectedNode==="Declaration")break;default:return!1}return t==null||(0,y.default)(e,t)}function VP(e,t){if(!e)return!1;switch(e.type){case"Identifier":case"RestElement":case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(e.expectedNode){case"Pattern":case"Identifier":break;default:return!1}break;default:return!1}return t==null||(0,y.default)(e,t)}function KP(e,t){if(!e)return!1;switch(e.type){case"Identifier":case"MemberExpression":case"RestElement":case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"TSParameterProperty":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(e.expectedNode){case"Pattern":case"Identifier":break;default:return!1}break;default:return!1}return t==null||(0,y.default)(e,t)}function WP(e,t){if(!e)return!1;switch(e.type){case"Identifier":case"TSQualifiedName":break;case"Placeholder":if(e.expectedNode==="Identifier")break;default:return!1}return t==null||(0,y.default)(e,t)}function YP(e,t){if(!e)return!1;switch(e.type){case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"TemplateLiteral":case"BigIntLiteral":case"DecimalLiteral":break;case"Placeholder":if(e.expectedNode==="StringLiteral")break;default:return!1}return t==null||(0,y.default)(e,t)}function XP(e,t){if(!e)return!1;switch(e.type){case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"BigIntLiteral":case"JSXAttribute":case"JSXClosingElement":case"JSXElement":case"JSXExpressionContainer":case"JSXSpreadChild":case"JSXOpeningElement":case"JSXText":case"JSXFragment":case"JSXOpeningFragment":case"JSXClosingFragment":case"DecimalLiteral":break;case"Placeholder":if(e.expectedNode==="StringLiteral")break;default:return!1}return t==null||(0,y.default)(e,t)}function JP(e,t){if(!e)return!1;switch(e.type){case"ObjectMethod":case"ObjectProperty":case"ObjectTypeInternalSlot":case"ObjectTypeCallProperty":case"ObjectTypeIndexer":case"ObjectTypeProperty":case"ObjectTypeSpreadProperty":break;default:return!1}return t==null||(0,y.default)(e,t)}function $P(e,t){if(!e)return!1;switch(e.type){case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":break;default:return!1}return t==null||(0,y.default)(e,t)}function HP(e,t){if(!e)return!1;switch(e.type){case"ObjectMethod":case"ObjectProperty":break;default:return!1}return t==null||(0,y.default)(e,t)}function GP(e,t){if(!e)return!1;switch(e.type){case"ObjectProperty":case"ClassProperty":case"ClassAccessorProperty":case"ClassPrivateProperty":break;default:return!1}return t==null||(0,y.default)(e,t)}function zP(e,t){if(!e)return!1;switch(e.type){case"UnaryExpression":case"SpreadElement":break;default:return!1}return t==null||(0,y.default)(e,t)}function QP(e,t){if(!e)return!1;switch(e.type){case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":break;case"Placeholder":if(e.expectedNode==="Pattern")break;default:return!1}return t==null||(0,y.default)(e,t)}function ZP(e,t){if(!e)return!1;switch(e.type){case"ClassExpression":case"ClassDeclaration":break;default:return!1}return t==null||(0,y.default)(e,t)}function Bp(e,t){if(!e)return!1;switch(e.type){case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ImportDeclaration":break;default:return!1}return t==null||(0,y.default)(e,t)}function eA(e,t){if(!e)return!1;switch(e.type){case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":break;default:return!1}return t==null||(0,y.default)(e,t)}function tA(e,t){if(!e)return!1;switch(e.type){case"ExportSpecifier":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":break;default:return!1}return t==null||(0,y.default)(e,t)}function rA(e,t){if(!e)return!1;switch(e.type){case"ClassAccessorProperty":break;default:return!1}return t==null||(0,y.default)(e,t)}function iA(e,t){if(!e)return!1;switch(e.type){case"ClassPrivateProperty":case"ClassPrivateMethod":case"PrivateName":break;default:return!1}return t==null||(0,y.default)(e,t)}function sA(e,t){if(!e)return!1;switch(e.type){case"AnyTypeAnnotation":case"ArrayTypeAnnotation":case"BooleanTypeAnnotation":case"BooleanLiteralTypeAnnotation":case"NullLiteralTypeAnnotation":case"ClassImplements":case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"DeclaredPredicate":case"ExistsTypeAnnotation":case"FunctionTypeAnnotation":case"FunctionTypeParam":case"GenericTypeAnnotation":case"InferredPredicate":case"InterfaceExtends":case"InterfaceDeclaration":case"InterfaceTypeAnnotation":case"IntersectionTypeAnnotation":case"MixedTypeAnnotation":case"EmptyTypeAnnotation":case"NullableTypeAnnotation":case"NumberLiteralTypeAnnotation":case"NumberTypeAnnotation":case"ObjectTypeAnnotation":case"ObjectTypeInternalSlot":case"ObjectTypeCallProperty":case"ObjectTypeIndexer":case"ObjectTypeProperty":case"ObjectTypeSpreadProperty":case"OpaqueType":case"QualifiedTypeIdentifier":case"StringLiteralTypeAnnotation":case"StringTypeAnnotation":case"SymbolTypeAnnotation":case"ThisTypeAnnotation":case"TupleTypeAnnotation":case"TypeofTypeAnnotation":case"TypeAlias":case"TypeAnnotation":case"TypeCastExpression":case"TypeParameter":case"TypeParameterDeclaration":case"TypeParameterInstantiation":case"UnionTypeAnnotation":case"Variance":case"VoidTypeAnnotation":case"EnumDeclaration":case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":case"EnumDefaultedMember":case"IndexedAccessType":case"OptionalIndexedAccessType":break;default:return!1}return t==null||(0,y.default)(e,t)}function nA(e,t){if(!e)return!1;switch(e.type){case"AnyTypeAnnotation":case"ArrayTypeAnnotation":case"BooleanTypeAnnotation":case"BooleanLiteralTypeAnnotation":case"NullLiteralTypeAnnotation":case"ExistsTypeAnnotation":case"FunctionTypeAnnotation":case"GenericTypeAnnotation":case"InterfaceTypeAnnotation":case"IntersectionTypeAnnotation":case"MixedTypeAnnotation":case"EmptyTypeAnnotation":case"NullableTypeAnnotation":case"NumberLiteralTypeAnnotation":case"NumberTypeAnnotation":case"ObjectTypeAnnotation":case"StringLiteralTypeAnnotation":case"StringTypeAnnotation":case"SymbolTypeAnnotation":case"ThisTypeAnnotation":case"TupleTypeAnnotation":case"TypeofTypeAnnotation":case"UnionTypeAnnotation":case"VoidTypeAnnotation":case"IndexedAccessType":case"OptionalIndexedAccessType":break;default:return!1}return t==null||(0,y.default)(e,t)}function aA(e,t){if(!e)return!1;switch(e.type){case"AnyTypeAnnotation":case"BooleanTypeAnnotation":case"NullLiteralTypeAnnotation":case"MixedTypeAnnotation":case"EmptyTypeAnnotation":case"NumberTypeAnnotation":case"StringTypeAnnotation":case"SymbolTypeAnnotation":case"ThisTypeAnnotation":case"VoidTypeAnnotation":break;default:return!1}return t==null||(0,y.default)(e,t)}function oA(e,t){if(!e)return!1;switch(e.type){case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"InterfaceDeclaration":case"OpaqueType":case"TypeAlias":break;default:return!1}return t==null||(0,y.default)(e,t)}function lA(e,t){if(!e)return!1;switch(e.type){case"DeclaredPredicate":case"InferredPredicate":break;default:return!1}return t==null||(0,y.default)(e,t)}function uA(e,t){if(!e)return!1;switch(e.type){case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":break;default:return!1}return t==null||(0,y.default)(e,t)}function cA(e,t){if(!e)return!1;switch(e.type){case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":case"EnumDefaultedMember":break;default:return!1}return t==null||(0,y.default)(e,t)}function pA(e,t){if(!e)return!1;switch(e.type){case"JSXAttribute":case"JSXClosingElement":case"JSXElement":case"JSXEmptyExpression":case"JSXExpressionContainer":case"JSXSpreadChild":case"JSXIdentifier":case"JSXMemberExpression":case"JSXNamespacedName":case"JSXOpeningElement":case"JSXSpreadAttribute":case"JSXText":case"JSXFragment":case"JSXOpeningFragment":case"JSXClosingFragment":break;default:return!1}return t==null||(0,y.default)(e,t)}function fA(e,t){if(!e)return!1;switch(e.type){case"Noop":case"Placeholder":case"V8IntrinsicIdentifier":break;default:return!1}return t==null||(0,y.default)(e,t)}function hA(e,t){if(!e)return!1;switch(e.type){case"TSParameterProperty":case"TSDeclareFunction":case"TSDeclareMethod":case"TSQualifiedName":case"TSCallSignatureDeclaration":case"TSConstructSignatureDeclaration":case"TSPropertySignature":case"TSMethodSignature":case"TSIndexSignature":case"TSAnyKeyword":case"TSBooleanKeyword":case"TSBigIntKeyword":case"TSIntrinsicKeyword":case"TSNeverKeyword":case"TSNullKeyword":case"TSNumberKeyword":case"TSObjectKeyword":case"TSStringKeyword":case"TSSymbolKeyword":case"TSUndefinedKeyword":case"TSUnknownKeyword":case"TSVoidKeyword":case"TSThisType":case"TSFunctionType":case"TSConstructorType":case"TSTypeReference":case"TSTypePredicate":case"TSTypeQuery":case"TSTypeLiteral":case"TSArrayType":case"TSTupleType":case"TSOptionalType":case"TSRestType":case"TSNamedTupleMember":case"TSUnionType":case"TSIntersectionType":case"TSConditionalType":case"TSInferType":case"TSParenthesizedType":case"TSTypeOperator":case"TSIndexedAccessType":case"TSMappedType":case"TSLiteralType":case"TSExpressionWithTypeArguments":case"TSInterfaceDeclaration":case"TSInterfaceBody":case"TSTypeAliasDeclaration":case"TSInstantiationExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSEnumDeclaration":case"TSEnumMember":case"TSModuleDeclaration":case"TSModuleBlock":case"TSImportType":case"TSImportEqualsDeclaration":case"TSExternalModuleReference":case"TSNonNullExpression":case"TSExportAssignment":case"TSNamespaceExportDeclaration":case"TSTypeAnnotation":case"TSTypeParameterInstantiation":case"TSTypeParameterDeclaration":case"TSTypeParameter":break;default:return!1}return t==null||(0,y.default)(e,t)}function dA(e,t){if(!e)return!1;switch(e.type){case"TSCallSignatureDeclaration":case"TSConstructSignatureDeclaration":case"TSPropertySignature":case"TSMethodSignature":case"TSIndexSignature":break;default:return!1}return t==null||(0,y.default)(e,t)}function mA(e,t){if(!e)return!1;switch(e.type){case"TSAnyKeyword":case"TSBooleanKeyword":case"TSBigIntKeyword":case"TSIntrinsicKeyword":case"TSNeverKeyword":case"TSNullKeyword":case"TSNumberKeyword":case"TSObjectKeyword":case"TSStringKeyword":case"TSSymbolKeyword":case"TSUndefinedKeyword":case"TSUnknownKeyword":case"TSVoidKeyword":case"TSThisType":case"TSFunctionType":case"TSConstructorType":case"TSTypeReference":case"TSTypePredicate":case"TSTypeQuery":case"TSTypeLiteral":case"TSArrayType":case"TSTupleType":case"TSOptionalType":case"TSRestType":case"TSUnionType":case"TSIntersectionType":case"TSConditionalType":case"TSInferType":case"TSParenthesizedType":case"TSTypeOperator":case"TSIndexedAccessType":case"TSMappedType":case"TSLiteralType":case"TSExpressionWithTypeArguments":case"TSImportType":break;default:return!1}return t==null||(0,y.default)(e,t)}function yA(e,t){if(!e)return!1;switch(e.type){case"TSAnyKeyword":case"TSBooleanKeyword":case"TSBigIntKeyword":case"TSIntrinsicKeyword":case"TSNeverKeyword":case"TSNullKeyword":case"TSNumberKeyword":case"TSObjectKeyword":case"TSStringKeyword":case"TSSymbolKeyword":case"TSUndefinedKeyword":case"TSUnknownKeyword":case"TSVoidKeyword":case"TSThisType":case"TSLiteralType":break;default:return!1}return t==null||(0,y.default)(e,t)}function TA(e,t){return(0,Wi.default)("isNumberLiteral","isNumericLiteral"),!e||e.type!=="NumberLiteral"?!1:t==null||(0,y.default)(e,t)}function gA(e,t){return(0,Wi.default)("isRegexLiteral","isRegExpLiteral"),!e||e.type!=="RegexLiteral"?!1:t==null||(0,y.default)(e,t)}function bA(e,t){return(0,Wi.default)("isRestProperty","isRestElement"),!e||e.type!=="RestProperty"?!1:t==null||(0,y.default)(e,t)}function SA(e,t){return(0,Wi.default)("isSpreadProperty","isSpreadElement"),!e||e.type!=="SpreadProperty"?!1:t==null||(0,y.default)(e,t)}function xA(e,t){return(0,Wi.default)("isModuleDeclaration","isImportOrExportDeclaration"),Bp(e,t)}});var Za=A(Qa=>{"use strict";Object.defineProperty(Qa,"__esModule",{value:!0});Qa.default=EA;var Yi=We();function EA(e,t,r){if(!(0,Yi.isMemberExpression)(e))return!1;let i=Array.isArray(t)?t:t.split("."),s=[],n;for(n=e;(0,Yi.isMemberExpression)(n);n=n.object)s.push(n.property);if(s.push(n),s.length<i.length||!r&&s.length>i.length)return!1;for(let a=0,o=s.length-1;a<i.length;a++,o--){let l=s[o],u;if((0,Yi.isIdentifier)(l))u=l.name;else if((0,Yi.isStringLiteral)(l))u=l.value;else if((0,Yi.isThisExpression)(l))u="this";else return!1;if(i[a]!==u)return!1}return!0}});var to=A(eo=>{"use strict";Object.defineProperty(eo,"__esModule",{value:!0});eo.default=AA;var PA=Za();function AA(e,t){let r=e.split(".");return i=>(0,PA.default)(i,r,t)}});var Fp=A(Us=>{"use strict";Object.defineProperty(Us,"__esModule",{value:!0});Us.default=void 0;var vA=to(),CA=(0,vA.default)("React.Component"),vX=Us.default=CA});var jp=A(ro=>{"use strict";Object.defineProperty(ro,"__esModule",{value:!0});ro.default=IA;function IA(e){return!!e&&/^[a-z]/.test(e)}});var qp=A((wX,Rp)=>{"use strict";var Xi=null;function Ji(e){if(Xi!==null&&typeof Xi.property){let t=Xi;return Xi=Ji.prototype=null,t}return Xi=Ji.prototype=e??Object.create(null),new Ji}Ji();Rp.exports=function(t){return Ji(t)}});var Vs=A(io=>{"use strict";Object.defineProperty(io,"__esModule",{value:!0});io.default=wA;var Up=It();function wA(e,t){if(e===t)return!0;if(e==null||Up.ALIAS_KEYS[t])return!1;let r=Up.FLIPPED_ALIAS_KEYS[t];if(r){if(r[0]===e)return!0;for(let i of r)if(e===i)return!0}return!1}});var no=A(so=>{"use strict";Object.defineProperty(so,"__esModule",{value:!0});so.default=NA;var OA=It();function NA(e,t){if(e===t)return!0;let r=OA.PLACEHOLDERS_ALIAS[e];if(r){for(let i of r)if(t===i)return!0}return!1}});var ci=A(ao=>{"use strict";Object.defineProperty(ao,"__esModule",{value:!0});ao.default=MA;var _A=qs(),DA=Vs(),kA=no(),LA=It();function MA(e,t,r){return t?(0,DA.default)(t.type,e)?typeof r>"u"?!0:(0,_A.default)(t,r):!r&&t.type==="Placeholder"&&e in LA.FLIPPED_ALIAS_KEYS?(0,kA.default)(t.expectedNode,e):!1:!1}});var Xp=A($i=>{"use strict";Object.defineProperty($i,"__esModule",{value:!0});$i.isIdentifierChar=Yp;$i.isIdentifierName=RA;$i.isIdentifierStart=Wp;var lo="\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\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-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC",Vp="\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\u0898-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65",BA=new RegExp("["+lo+"]"),FA=new RegExp("["+lo+Vp+"]");lo=Vp=null;var Kp=[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,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,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,159,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,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,757,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],jA=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,81,2,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,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,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,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,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,983,6,110,6,6,9,4759,9,787719,239];function oo(e,t){let r=65536;for(let i=0,s=t.length;i<s;i+=2){if(r+=t[i],r>e)return!1;if(r+=t[i+1],r>=e)return!0}return!1}function Wp(e){return e<65?e===36:e<=90?!0:e<97?e===95:e<=122?!0:e<=65535?e>=170&&BA.test(String.fromCharCode(e)):oo(e,Kp)}function Yp(e){return e<48?e===36:e<58?!0:e<65?!1:e<=90?!0:e<97?e===95:e<=122?!0:e<=65535?e>=170&&FA.test(String.fromCharCode(e)):oo(e,Kp)||oo(e,jA)}function RA(e){let t=!0;for(let r=0;r<e.length;r++){let i=e.charCodeAt(r);if((i&64512)===55296&&r+1<e.length){let s=e.charCodeAt(++r);(s&64512)===56320&&(i=65536+((i&1023)<<10)+(s&1023))}if(t){if(t=!1,!Wp(i))return!1}else if(!Yp(i))return!1}return!t}});var Gp=A(Fr=>{"use strict";Object.defineProperty(Fr,"__esModule",{value:!0});Fr.isKeyword=WA;Fr.isReservedWord=Jp;Fr.isStrictBindOnlyReservedWord=Hp;Fr.isStrictBindReservedWord=KA;Fr.isStrictReservedWord=$p;var uo={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]},qA=new Set(uo.keyword),UA=new Set(uo.strict),VA=new Set(uo.strictBind);function Jp(e,t){return t&&e==="await"||e==="enum"}function $p(e,t){return Jp(e,t)||UA.has(e)}function Hp(e){return VA.has(e)}function KA(e,t){return $p(e,t)||Hp(e)}function WA(e){return qA.has(e)}});var Gi=A(Jt=>{"use strict";Object.defineProperty(Jt,"__esModule",{value:!0});Object.defineProperty(Jt,"isIdentifierChar",{enumerable:!0,get:function(){return co.isIdentifierChar}});Object.defineProperty(Jt,"isIdentifierName",{enumerable:!0,get:function(){return co.isIdentifierName}});Object.defineProperty(Jt,"isIdentifierStart",{enumerable:!0,get:function(){return co.isIdentifierStart}});Object.defineProperty(Jt,"isKeyword",{enumerable:!0,get:function(){return Hi.isKeyword}});Object.defineProperty(Jt,"isReservedWord",{enumerable:!0,get:function(){return Hi.isReservedWord}});Object.defineProperty(Jt,"isStrictBindOnlyReservedWord",{enumerable:!0,get:function(){return Hi.isStrictBindOnlyReservedWord}});Object.defineProperty(Jt,"isStrictBindReservedWord",{enumerable:!0,get:function(){return Hi.isStrictBindReservedWord}});Object.defineProperty(Jt,"isStrictReservedWord",{enumerable:!0,get:function(){return Hi.isStrictReservedWord}});var co=Xp(),Hi=Gp()});var pi=A(fo=>{"use strict";Object.defineProperty(fo,"__esModule",{value:!0});fo.default=YA;var po=Gi();function YA(e,t=!0){return typeof e!="string"||t&&((0,po.isKeyword)(e)||(0,po.isStrictReservedWord)(e,!0))?!1:(0,po.isIdentifierName)(e)}});var ef=A(zi=>{"use strict";Object.defineProperty(zi,"__esModule",{value:!0});zi.readCodePoint=Zp;zi.readInt=Qp;zi.readStringContents=JA;var XA=function(t){return t>=48&&t<=57},zp={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},Ks={bin:e=>e===48||e===49,oct:e=>e>=48&&e<=55,dec:e=>e>=48&&e<=57,hex:e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102};function JA(e,t,r,i,s,n){let a=r,o=i,l=s,u="",c=null,T=r,{length:P}=t;for(;;){if(r>=P){n.unterminated(a,o,l),u+=t.slice(T,r);break}let E=t.charCodeAt(r);if($A(e,E,t,r)){u+=t.slice(T,r);break}if(E===92){u+=t.slice(T,r);let v=HA(t,r,i,s,e==="template",n);v.ch===null&&!c?c={pos:r,lineStart:i,curLine:s}:u+=v.ch,{pos:r,lineStart:i,curLine:s}=v,T=r}else E===8232||E===8233?(++r,++s,i=r):E===10||E===13?e==="template"?(u+=t.slice(T,r)+`
|
|
13
|
-
`,++r,E===13&&t.charCodeAt(r)===10&&++r,++s,T=i=r):n.unterminated(a,o,l):++r}return{pos:r,str:u,firstInvalidLoc:c,lineStart:i,curLine:s,containsInvalid:!!c}}function $A(e,t,r,i){return e==="template"?t===96||t===36&&r.charCodeAt(i+1)===123:t===(e==="double"?34:39)}function HA(e,t,r,i,s,n){let a=!s;t++;let o=u=>({pos:t,ch:u,lineStart:r,curLine:i}),l=e.charCodeAt(t++);switch(l){case 110:return o(`
|
|
14
|
-
`);case 114:return o("\r");case 120:{let u;return{code:u,pos:t}=ho(e,t,r,i,2,!1,a,n),o(u===null?null:String.fromCharCode(u))}case 117:{let u;return{code:u,pos:t}=Zp(e,t,r,i,a,n),o(u===null?null:String.fromCodePoint(u))}case 116:return o(" ");case 98:return o("\b");case 118:return o("\v");case 102:return o("\f");case 13:e.charCodeAt(t)===10&&++t;case 10:r=t,++i;case 8232:case 8233:return o("");case 56:case 57:if(s)return o(null);n.strictNumericEscape(t-1,r,i);default:if(l>=48&&l<=55){let u=t-1,T=/^[0-7]+/.exec(e.slice(u,t+2))[0],P=parseInt(T,8);P>255&&(T=T.slice(0,-1),P=parseInt(T,8)),t+=T.length-1;let E=e.charCodeAt(t);if(T!=="0"||E===56||E===57){if(s)return o(null);n.strictNumericEscape(u,r,i)}return o(String.fromCharCode(P))}return o(String.fromCharCode(l))}}function ho(e,t,r,i,s,n,a,o){let l=t,u;return{n:u,pos:t}=Qp(e,t,r,i,16,s,n,!1,o,!a),u===null&&(a?o.invalidEscapeSequence(l,r,i):t=l-1),{code:u,pos:t}}function Qp(e,t,r,i,s,n,a,o,l,u){let c=t,T=s===16?zp.hex:zp.decBinOct,P=s===16?Ks.hex:s===10?Ks.dec:s===8?Ks.oct:Ks.bin,E=!1,v=0;for(let D=0,_=n??1/0;D<_;++D){let N=e.charCodeAt(t),M;if(N===95&&o!=="bail"){let ne=e.charCodeAt(t-1),ae=e.charCodeAt(t+1);if(o){if(Number.isNaN(ae)||!P(ae)||T.has(ne)||T.has(ae)){if(u)return{n:null,pos:t};l.unexpectedNumericSeparator(t,r,i)}}else{if(u)return{n:null,pos:t};l.numericSeparatorInEscapeSequence(t,r,i)}++t;continue}if(N>=97?M=N-97+10:N>=65?M=N-65+10:XA(N)?M=N-48:M=1/0,M>=s){if(M<=9&&u)return{n:null,pos:t};if(M<=9&&l.invalidDigit(t,r,i,s))M=0;else if(a)M=0,E=!0;else break}++t,v=v*s+M}return t===c||n!=null&&t-c!==n||E?{n:null,pos:t}:{n:v,pos:t}}function Zp(e,t,r,i,s,n){let a=e.charCodeAt(t),o;if(a===123){if(++t,{code:o,pos:t}=ho(e,t,r,i,e.indexOf("}",t)-t,!0,s,n),++t,o!==null&&o>1114111)if(s)n.invalidCodePoint(t,r,i);else return{code:null,pos:t}}else({code:o,pos:t}=ho(e,t,r,i,4,!1,s,n));return{code:o,pos:t}}});var gr=A(he=>{"use strict";Object.defineProperty(he,"__esModule",{value:!0});he.UPDATE_OPERATORS=he.UNARY_OPERATORS=he.STRING_UNARY_OPERATORS=he.STATEMENT_OR_BLOCK_KEYS=he.NUMBER_UNARY_OPERATORS=he.NUMBER_BINARY_OPERATORS=he.NOT_LOCAL_BINDING=he.LOGICAL_OPERATORS=he.INHERIT_KEYS=he.FOR_INIT_KEYS=he.FLATTENABLE_KEYS=he.EQUALITY_BINARY_OPERATORS=he.COMPARISON_BINARY_OPERATORS=he.COMMENT_KEYS=he.BOOLEAN_UNARY_OPERATORS=he.BOOLEAN_NUMBER_BINARY_OPERATORS=he.BOOLEAN_BINARY_OPERATORS=he.BLOCK_SCOPED_SYMBOL=he.BINARY_OPERATORS=he.ASSIGNMENT_OPERATORS=void 0;var FX=he.STATEMENT_OR_BLOCK_KEYS=["consequent","body","alternate"],jX=he.FLATTENABLE_KEYS=["body","expressions"],RX=he.FOR_INIT_KEYS=["left","init"],qX=he.COMMENT_KEYS=["leadingComments","trailingComments","innerComments"],GA=he.LOGICAL_OPERATORS=["||","&&","??"],UX=he.UPDATE_OPERATORS=["++","--"],zA=he.BOOLEAN_NUMBER_BINARY_OPERATORS=[">","<",">=","<="],QA=he.EQUALITY_BINARY_OPERATORS=["==","===","!=","!=="],ZA=he.COMPARISON_BINARY_OPERATORS=[...QA,"in","instanceof"],ev=he.BOOLEAN_BINARY_OPERATORS=[...ZA,...zA],tf=he.NUMBER_BINARY_OPERATORS=["-","/","%","*","**","&","|",">>",">>>","<<","^"],VX=he.BINARY_OPERATORS=["+",...tf,...ev,"|>"],KX=he.ASSIGNMENT_OPERATORS=["=","+=",...tf.map(e=>e+"="),...GA.map(e=>e+"=")],tv=he.BOOLEAN_UNARY_OPERATORS=["delete","!"],rv=he.NUMBER_UNARY_OPERATORS=["+","-","~"],iv=he.STRING_UNARY_OPERATORS=["typeof"],WX=he.UNARY_OPERATORS=["void","throw",...tv,...rv,...iv],YX=he.INHERIT_KEYS={optional:["typeAnnotation","typeParameters","returnType"],force:["start","loc","end"]},XX=he.BLOCK_SCOPED_SYMBOL=Symbol.for("var used to be block scoped"),JX=he.NOT_LOCAL_BINDING=Symbol.for("should not be considered a local binding")});var ar=A(Ae=>{"use strict";Object.defineProperty(Ae,"__esModule",{value:!0});Ae.VISITOR_KEYS=Ae.NODE_PARENT_VALIDATIONS=Ae.NODE_FIELDS=Ae.FLIPPED_ALIAS_KEYS=Ae.DEPRECATED_KEYS=Ae.BUILDER_KEYS=Ae.ALIAS_KEYS=void 0;Ae.arrayOf=sf;Ae.arrayOfType=nf;Ae.assertEach=af;Ae.assertNodeOrValueType=mv;Ae.assertNodeType=yo;Ae.assertOneOf=dv;Ae.assertOptionalChainStart=Tv;Ae.assertShape=yv;Ae.assertValueType=bo;Ae.chain=of;Ae.default=lf;Ae.defineAliasedType=Sv;Ae.typeIs=Xs;Ae.validate=go;Ae.validateArrayOfType=hv;Ae.validateOptional=pv;Ae.validateOptionalType=fv;Ae.validateType=cv;var rf=ci(),Ys=Js(),sv=Ae.VISITOR_KEYS={},nv=Ae.ALIAS_KEYS={},mo=Ae.FLIPPED_ALIAS_KEYS={},av=Ae.NODE_FIELDS={},ov=Ae.BUILDER_KEYS={},lv=Ae.DEPRECATED_KEYS={},uv=Ae.NODE_PARENT_VALIDATIONS={};function Ws(e){return Array.isArray(e)?"array":e===null?"null":typeof e}function go(e){return{validate:e}}function Xs(e){return typeof e=="string"?yo(e):yo(...e)}function cv(e){return go(Xs(e))}function pv(e){return{validate:e,optional:!0}}function fv(e){return{validate:Xs(e),optional:!0}}function sf(e){return of(bo("array"),af(e))}function nf(e){return sf(Xs(e))}function hv(e){return go(nf(e))}function af(e){function t(r,i,s){if(Array.isArray(s))for(let n=0;n<s.length;n++){let a=`${i}[${n}]`,o=s[n];e(r,a,o),process.env.BABEL_TYPES_8_BREAKING&&(0,Ys.validateChild)(r,a,o)}}return t.each=e,t}function dv(...e){function t(r,i,s){if(!e.includes(s))throw new TypeError(`Property ${i} expected value to be one of ${JSON.stringify(e)} but got ${JSON.stringify(s)}`)}return t.oneOf=e,t}function yo(...e){function t(r,i,s){for(let n of e)if((0,rf.default)(n,s)){(0,Ys.validateChild)(r,i,s);return}throw new TypeError(`Property ${i} of ${r.type} expected node to be of a type ${JSON.stringify(e)} but instead got ${JSON.stringify(s?.type)}`)}return t.oneOfNodeTypes=e,t}function mv(...e){function t(r,i,s){for(let n of e)if(Ws(s)===n||(0,rf.default)(n,s)){(0,Ys.validateChild)(r,i,s);return}throw new TypeError(`Property ${i} of ${r.type} expected node to be of a type ${JSON.stringify(e)} but instead got ${JSON.stringify(s?.type)}`)}return t.oneOfNodeOrValueTypes=e,t}function bo(e){function t(r,i,s){if(!(Ws(s)===e))throw new TypeError(`Property ${i} expected type of ${e} but got ${Ws(s)}`)}return t.type=e,t}function yv(e){function t(r,i,s){let n=[];for(let a of Object.keys(e))try{(0,Ys.validateField)(r,a,s[a],e[a])}catch(o){if(o instanceof TypeError){n.push(o.message);continue}throw o}if(n.length)throw new TypeError(`Property ${i} of ${r.type} expected to have the following:
|
|
15
|
-
${n.join(`
|
|
16
|
-
`)}`)}return t.shapeOf=e,t}function Tv(){function e(t){var r;let i=t;for(;t;){let{type:s}=i;if(s==="OptionalCallExpression"){if(i.optional)return;i=i.callee;continue}if(s==="OptionalMemberExpression"){if(i.optional)return;i=i.object;continue}break}throw new TypeError(`Non-optional ${t.type} must chain from an optional OptionalMemberExpression or OptionalCallExpression. Found chain from ${(r=i)==null?void 0:r.type}`)}return e}function of(...e){function t(...r){for(let i of e)i(...r)}if(t.chainOf=e,e.length>=2&&"type"in e[0]&&e[0].type==="array"&&!("each"in e[1]))throw new Error('An assertValueType("array") validator can only be followed by an assertEach(...) validator.');return t}var gv=["aliases","builder","deprecatedAlias","fields","inherits","visitor","validate"],bv=["default","optional","deprecated","validate"],To={};function Sv(...e){return(t,r={})=>{let i=r.aliases;if(!i){var s,n;r.inherits&&(i=(s=To[r.inherits].aliases)==null?void 0:s.slice()),(n=i)!=null||(i=[]),r.aliases=i}let a=e.filter(o=>!i.includes(o));i.unshift(...a),lf(t,r)}}function lf(e,t={}){let r=t.inherits&&To[t.inherits]||{},i=t.fields;if(!i&&(i={},r.fields)){let o=Object.getOwnPropertyNames(r.fields);for(let l of o){let u=r.fields[l],c=u.default;if(Array.isArray(c)?c.length>0:c&&typeof c=="object")throw new Error("field defaults can only be primitives or empty arrays currently");i[l]={default:Array.isArray(c)?[]:c,optional:u.optional,deprecated:u.deprecated,validate:u.validate}}}let s=t.visitor||r.visitor||[],n=t.aliases||r.aliases||[],a=t.builder||r.builder||t.visitor||[];for(let o of Object.keys(t))if(!gv.includes(o))throw new Error(`Unknown type option "${o}" on ${e}`);t.deprecatedAlias&&(lv[t.deprecatedAlias]=e);for(let o of s.concat(a))i[o]=i[o]||{};for(let o of Object.keys(i)){let l=i[o];l.default!==void 0&&!a.includes(o)&&(l.optional=!0),l.default===void 0?l.default=null:!l.validate&&l.default!=null&&(l.validate=bo(Ws(l.default)));for(let u of Object.keys(l))if(!bv.includes(u))throw new Error(`Unknown field key "${u}" on ${e}.${o}`)}sv[e]=t.visitor=s,ov[e]=t.builder=a,av[e]=t.fields=i,nv[e]=t.aliases=n,n.forEach(o=>{mo[o]=mo[o]||[],mo[o].push(e)}),t.validate&&(uv[e]=t.validate),To[e]=t}});var xo=A(bt=>{"use strict";Object.defineProperty(bt,"__esModule",{value:!0});bt.patternLikeCommon=bt.functionTypeAnnotationCommon=bt.functionDeclarationCommon=bt.functionCommon=bt.classMethodOrPropertyCommon=bt.classMethodOrDeclareMethodCommon=void 0;var ct=ci(),xv=pi(),uf=Gi(),Ev=ef(),Qi=gr(),p=ar(),j=(0,p.defineAliasedType)("Standardized");j("ArrayExpression",{fields:{elements:{validate:(0,p.chain)((0,p.assertValueType)("array"),(0,p.assertEach)((0,p.assertNodeOrValueType)("null","Expression","SpreadElement"))),default:process.env.BABEL_TYPES_8_BREAKING?void 0:[]}},visitor:["elements"],aliases:["Expression"]});j("AssignmentExpression",{fields:{operator:{validate:function(){if(!process.env.BABEL_TYPES_8_BREAKING)return(0,p.assertValueType)("string");let e=(0,p.assertOneOf)(...Qi.ASSIGNMENT_OPERATORS),t=(0,p.assertOneOf)("=");return function(r,i,s){((0,ct.default)("Pattern",r.left)?t:e)(r,i,s)}}()},left:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,p.assertNodeType)("Identifier","MemberExpression","OptionalMemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"):(0,p.assertNodeType)("LVal","OptionalMemberExpression")},right:{validate:(0,p.assertNodeType)("Expression")}},builder:["operator","left","right"],visitor:["left","right"],aliases:["Expression"]});j("BinaryExpression",{builder:["operator","left","right"],fields:{operator:{validate:(0,p.assertOneOf)(...Qi.BINARY_OPERATORS)},left:{validate:function(){let e=(0,p.assertNodeType)("Expression"),t=(0,p.assertNodeType)("Expression","PrivateName");return Object.assign(function(i,s,n){(i.operator==="in"?t:e)(i,s,n)},{oneOfNodeTypes:["Expression","PrivateName"]})}()},right:{validate:(0,p.assertNodeType)("Expression")}},visitor:["left","right"],aliases:["Binary","Expression"]});j("InterpreterDirective",{builder:["value"],fields:{value:{validate:(0,p.assertValueType)("string")}}});j("Directive",{visitor:["value"],fields:{value:{validate:(0,p.assertNodeType)("DirectiveLiteral")}}});j("DirectiveLiteral",{builder:["value"],fields:{value:{validate:(0,p.assertValueType)("string")}}});j("BlockStatement",{builder:["body","directives"],visitor:["directives","body"],fields:{directives:{validate:(0,p.chain)((0,p.assertValueType)("array"),(0,p.assertEach)((0,p.assertNodeType)("Directive"))),default:[]},body:{validate:(0,p.chain)((0,p.assertValueType)("array"),(0,p.assertEach)((0,p.assertNodeType)("Statement")))}},aliases:["Scopable","BlockParent","Block","Statement"]});j("BreakStatement",{visitor:["label"],fields:{label:{validate:(0,p.assertNodeType)("Identifier"),optional:!0}},aliases:["Statement","Terminatorless","CompletionStatement"]});j("CallExpression",{visitor:["callee","arguments","typeParameters","typeArguments"],builder:["callee","arguments"],aliases:["Expression"],fields:Object.assign({callee:{validate:(0,p.assertNodeType)("Expression","Super","V8IntrinsicIdentifier")},arguments:{validate:(0,p.chain)((0,p.assertValueType)("array"),(0,p.assertEach)((0,p.assertNodeType)("Expression","SpreadElement","ArgumentPlaceholder")))}},process.env.BABEL_TYPES_8_BREAKING?{}:{optional:{validate:(0,p.assertOneOf)(!0,!1),optional:!0}},{typeArguments:{validate:(0,p.assertNodeType)("TypeParameterInstantiation"),optional:!0},typeParameters:{validate:(0,p.assertNodeType)("TSTypeParameterInstantiation"),optional:!0}})});j("CatchClause",{visitor:["param","body"],fields:{param:{validate:(0,p.assertNodeType)("Identifier","ArrayPattern","ObjectPattern"),optional:!0},body:{validate:(0,p.assertNodeType)("BlockStatement")}},aliases:["Scopable","BlockParent"]});j("ConditionalExpression",{visitor:["test","consequent","alternate"],fields:{test:{validate:(0,p.assertNodeType)("Expression")},consequent:{validate:(0,p.assertNodeType)("Expression")},alternate:{validate:(0,p.assertNodeType)("Expression")}},aliases:["Expression","Conditional"]});j("ContinueStatement",{visitor:["label"],fields:{label:{validate:(0,p.assertNodeType)("Identifier"),optional:!0}},aliases:["Statement","Terminatorless","CompletionStatement"]});j("DebuggerStatement",{aliases:["Statement"]});j("DoWhileStatement",{builder:["test","body"],visitor:["body","test"],fields:{test:{validate:(0,p.assertNodeType)("Expression")},body:{validate:(0,p.assertNodeType)("Statement")}},aliases:["Statement","BlockParent","Loop","While","Scopable"]});j("EmptyStatement",{aliases:["Statement"]});j("ExpressionStatement",{visitor:["expression"],fields:{expression:{validate:(0,p.assertNodeType)("Expression")}},aliases:["Statement","ExpressionWrapper"]});j("File",{builder:["program","comments","tokens"],visitor:["program"],fields:{program:{validate:(0,p.assertNodeType)("Program")},comments:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,p.assertEach)((0,p.assertNodeType)("CommentBlock","CommentLine")):Object.assign(()=>{},{each:{oneOfNodeTypes:["CommentBlock","CommentLine"]}}),optional:!0},tokens:{validate:(0,p.assertEach)(Object.assign(()=>{},{type:"any"})),optional:!0}}});j("ForInStatement",{visitor:["left","right","body"],aliases:["Scopable","Statement","For","BlockParent","Loop","ForXStatement"],fields:{left:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,p.assertNodeType)("VariableDeclaration","Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"):(0,p.assertNodeType)("VariableDeclaration","LVal")},right:{validate:(0,p.assertNodeType)("Expression")},body:{validate:(0,p.assertNodeType)("Statement")}}});j("ForStatement",{visitor:["init","test","update","body"],aliases:["Scopable","Statement","For","BlockParent","Loop"],fields:{init:{validate:(0,p.assertNodeType)("VariableDeclaration","Expression"),optional:!0},test:{validate:(0,p.assertNodeType)("Expression"),optional:!0},update:{validate:(0,p.assertNodeType)("Expression"),optional:!0},body:{validate:(0,p.assertNodeType)("Statement")}}});var fi=()=>({params:{validate:(0,p.chain)((0,p.assertValueType)("array"),(0,p.assertEach)((0,p.assertNodeType)("Identifier","Pattern","RestElement")))},generator:{default:!1},async:{default:!1}});bt.functionCommon=fi;var jr=()=>({returnType:{validate:(0,p.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},typeParameters:{validate:(0,p.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0}});bt.functionTypeAnnotationCommon=jr;var cf=()=>Object.assign({},fi(),{declare:{validate:(0,p.assertValueType)("boolean"),optional:!0},id:{validate:(0,p.assertNodeType)("Identifier"),optional:!0}});bt.functionDeclarationCommon=cf;j("FunctionDeclaration",{builder:["id","params","body","generator","async"],visitor:["id","typeParameters","params","returnType","body"],fields:Object.assign({},cf(),jr(),{body:{validate:(0,p.assertNodeType)("BlockStatement")},predicate:{validate:(0,p.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:!0}}),aliases:["Scopable","Function","BlockParent","FunctionParent","Statement","Pureish","Declaration"],validate:function(){if(!process.env.BABEL_TYPES_8_BREAKING)return()=>{};let e=(0,p.assertNodeType)("Identifier");return function(t,r,i){(0,ct.default)("ExportDefaultDeclaration",t)||e(i,"id",i.id)}}()});j("FunctionExpression",{inherits:"FunctionDeclaration",aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:Object.assign({},fi(),jr(),{id:{validate:(0,p.assertNodeType)("Identifier"),optional:!0},body:{validate:(0,p.assertNodeType)("BlockStatement")},predicate:{validate:(0,p.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:!0}})});var hi=()=>({typeAnnotation:{validate:(0,p.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},optional:{validate:(0,p.assertValueType)("boolean"),optional:!0},decorators:{validate:(0,p.chain)((0,p.assertValueType)("array"),(0,p.assertEach)((0,p.assertNodeType)("Decorator"))),optional:!0}});bt.patternLikeCommon=hi;j("Identifier",{builder:["name"],visitor:["typeAnnotation","decorators"],aliases:["Expression","PatternLike","LVal","TSEntityName"],fields:Object.assign({},hi(),{name:{validate:(0,p.chain)((0,p.assertValueType)("string"),Object.assign(function(e,t,r){if(process.env.BABEL_TYPES_8_BREAKING&&!(0,xv.default)(r,!1))throw new TypeError(`"${r}" is not a valid identifier name`)},{type:"string"}))}}),validate(e,t,r){if(!process.env.BABEL_TYPES_8_BREAKING)return;let i=/\.(\w+)$/.exec(t);if(!i)return;let[,s]=i,n={computed:!1};if(s==="property"){if((0,ct.default)("MemberExpression",e,n)||(0,ct.default)("OptionalMemberExpression",e,n))return}else if(s==="key"){if((0,ct.default)("Property",e,n)||(0,ct.default)("Method",e,n))return}else if(s==="exported"){if((0,ct.default)("ExportSpecifier",e))return}else if(s==="imported"){if((0,ct.default)("ImportSpecifier",e,{imported:r}))return}else if(s==="meta"&&(0,ct.default)("MetaProperty",e,{meta:r}))return;if(((0,uf.isKeyword)(r.name)||(0,uf.isReservedWord)(r.name,!1))&&r.name!=="this")throw new TypeError(`"${r.name}" is not a valid identifier`)}});j("IfStatement",{visitor:["test","consequent","alternate"],aliases:["Statement","Conditional"],fields:{test:{validate:(0,p.assertNodeType)("Expression")},consequent:{validate:(0,p.assertNodeType)("Statement")},alternate:{optional:!0,validate:(0,p.assertNodeType)("Statement")}}});j("LabeledStatement",{visitor:["label","body"],aliases:["Statement"],fields:{label:{validate:(0,p.assertNodeType)("Identifier")},body:{validate:(0,p.assertNodeType)("Statement")}}});j("StringLiteral",{builder:["value"],fields:{value:{validate:(0,p.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]});j("NumericLiteral",{builder:["value"],deprecatedAlias:"NumberLiteral",fields:{value:{validate:(0,p.chain)((0,p.assertValueType)("number"),Object.assign(function(e,t,r){if(1/r<0||!Number.isFinite(r)){let i=new Error(`NumericLiterals must be non-negative finite numbers. You can use t.valueToNode(${r}) instead.`)}},{type:"number"}))}},aliases:["Expression","Pureish","Literal","Immutable"]});j("NullLiteral",{aliases:["Expression","Pureish","Literal","Immutable"]});j("BooleanLiteral",{builder:["value"],fields:{value:{validate:(0,p.assertValueType)("boolean")}},aliases:["Expression","Pureish","Literal","Immutable"]});j("RegExpLiteral",{builder:["pattern","flags"],deprecatedAlias:"RegexLiteral",aliases:["Expression","Pureish","Literal"],fields:{pattern:{validate:(0,p.assertValueType)("string")},flags:{validate:(0,p.chain)((0,p.assertValueType)("string"),Object.assign(function(e,t,r){if(!process.env.BABEL_TYPES_8_BREAKING)return;let i=/[^gimsuy]/.exec(r);if(i)throw new TypeError(`"${i[0]}" is not a valid RegExp flag`)},{type:"string"})),default:""}}});j("LogicalExpression",{builder:["operator","left","right"],visitor:["left","right"],aliases:["Binary","Expression"],fields:{operator:{validate:(0,p.assertOneOf)(...Qi.LOGICAL_OPERATORS)},left:{validate:(0,p.assertNodeType)("Expression")},right:{validate:(0,p.assertNodeType)("Expression")}}});j("MemberExpression",{builder:["object","property","computed",...process.env.BABEL_TYPES_8_BREAKING?[]:["optional"]],visitor:["object","property"],aliases:["Expression","LVal"],fields:Object.assign({object:{validate:(0,p.assertNodeType)("Expression","Super")},property:{validate:function(){let e=(0,p.assertNodeType)("Identifier","PrivateName"),t=(0,p.assertNodeType)("Expression"),r=function(i,s,n){(i.computed?t:e)(i,s,n)};return r.oneOfNodeTypes=["Expression","Identifier","PrivateName"],r}()},computed:{default:!1}},process.env.BABEL_TYPES_8_BREAKING?{}:{optional:{validate:(0,p.assertOneOf)(!0,!1),optional:!0}})});j("NewExpression",{inherits:"CallExpression"});j("Program",{visitor:["directives","body"],builder:["body","directives","sourceType","interpreter"],fields:{sourceType:{validate:(0,p.assertOneOf)("script","module"),default:"script"},interpreter:{validate:(0,p.assertNodeType)("InterpreterDirective"),default:null,optional:!0},directives:{validate:(0,p.chain)((0,p.assertValueType)("array"),(0,p.assertEach)((0,p.assertNodeType)("Directive"))),default:[]},body:{validate:(0,p.chain)((0,p.assertValueType)("array"),(0,p.assertEach)((0,p.assertNodeType)("Statement")))}},aliases:["Scopable","BlockParent","Block"]});j("ObjectExpression",{visitor:["properties"],aliases:["Expression"],fields:{properties:{validate:(0,p.chain)((0,p.assertValueType)("array"),(0,p.assertEach)((0,p.assertNodeType)("ObjectMethod","ObjectProperty","SpreadElement")))}}});j("ObjectMethod",{builder:["kind","key","params","body","computed","generator","async"],visitor:["decorators","key","typeParameters","params","returnType","body"],fields:Object.assign({},fi(),jr(),{kind:Object.assign({validate:(0,p.assertOneOf)("method","get","set")},process.env.BABEL_TYPES_8_BREAKING?{}:{default:"method"}),computed:{default:!1},key:{validate:function(){let e=(0,p.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral"),t=(0,p.assertNodeType)("Expression"),r=function(i,s,n){(i.computed?t:e)(i,s,n)};return r.oneOfNodeTypes=["Expression","Identifier","StringLiteral","NumericLiteral","BigIntLiteral"],r}()},decorators:{validate:(0,p.chain)((0,p.assertValueType)("array"),(0,p.assertEach)((0,p.assertNodeType)("Decorator"))),optional:!0},body:{validate:(0,p.assertNodeType)("BlockStatement")}}),aliases:["UserWhitespacable","Function","Scopable","BlockParent","FunctionParent","Method","ObjectMember"]});j("ObjectProperty",{builder:["key","value","computed","shorthand",...process.env.BABEL_TYPES_8_BREAKING?[]:["decorators"]],fields:{computed:{default:!1},key:{validate:function(){let e=(0,p.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","DecimalLiteral","PrivateName"),t=(0,p.assertNodeType)("Expression");return Object.assign(function(i,s,n){(i.computed?t:e)(i,s,n)},{oneOfNodeTypes:["Expression","Identifier","StringLiteral","NumericLiteral","BigIntLiteral","DecimalLiteral","PrivateName"]})}()},value:{validate:(0,p.assertNodeType)("Expression","PatternLike")},shorthand:{validate:(0,p.chain)((0,p.assertValueType)("boolean"),Object.assign(function(e,t,r){if(process.env.BABEL_TYPES_8_BREAKING&&r&&e.computed)throw new TypeError("Property shorthand of ObjectProperty cannot be true if computed is true")},{type:"boolean"}),function(e,t,r){if(process.env.BABEL_TYPES_8_BREAKING&&r&&!(0,ct.default)("Identifier",e.key))throw new TypeError("Property shorthand of ObjectProperty cannot be true if key is not an Identifier")}),default:!1},decorators:{validate:(0,p.chain)((0,p.assertValueType)("array"),(0,p.assertEach)((0,p.assertNodeType)("Decorator"))),optional:!0}},visitor:["key","value","decorators"],aliases:["UserWhitespacable","Property","ObjectMember"],validate:function(){let e=(0,p.assertNodeType)("Identifier","Pattern","TSAsExpression","TSSatisfiesExpression","TSNonNullExpression","TSTypeAssertion"),t=(0,p.assertNodeType)("Expression");return function(r,i,s){if(!process.env.BABEL_TYPES_8_BREAKING)return;((0,ct.default)("ObjectPattern",r)?e:t)(s,"value",s.value)}}()});j("RestElement",{visitor:["argument","typeAnnotation"],builder:["argument"],aliases:["LVal","PatternLike"],deprecatedAlias:"RestProperty",fields:Object.assign({},hi(),{argument:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,p.assertNodeType)("Identifier","ArrayPattern","ObjectPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"):(0,p.assertNodeType)("LVal")}}),validate(e,t){if(!process.env.BABEL_TYPES_8_BREAKING)return;let r=/(\w+)\[(\d+)\]/.exec(t);if(!r)throw new Error("Internal Babel error: malformed key.");let[,i,s]=r;if(e[i].length>+s+1)throw new TypeError(`RestElement must be last element of ${i}`)}});j("ReturnStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:(0,p.assertNodeType)("Expression"),optional:!0}}});j("SequenceExpression",{visitor:["expressions"],fields:{expressions:{validate:(0,p.chain)((0,p.assertValueType)("array"),(0,p.assertEach)((0,p.assertNodeType)("Expression")))}},aliases:["Expression"]});j("ParenthesizedExpression",{visitor:["expression"],aliases:["Expression","ExpressionWrapper"],fields:{expression:{validate:(0,p.assertNodeType)("Expression")}}});j("SwitchCase",{visitor:["test","consequent"],fields:{test:{validate:(0,p.assertNodeType)("Expression"),optional:!0},consequent:{validate:(0,p.chain)((0,p.assertValueType)("array"),(0,p.assertEach)((0,p.assertNodeType)("Statement")))}}});j("SwitchStatement",{visitor:["discriminant","cases"],aliases:["Statement","BlockParent","Scopable"],fields:{discriminant:{validate:(0,p.assertNodeType)("Expression")},cases:{validate:(0,p.chain)((0,p.assertValueType)("array"),(0,p.assertEach)((0,p.assertNodeType)("SwitchCase")))}}});j("ThisExpression",{aliases:["Expression"]});j("ThrowStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:(0,p.assertNodeType)("Expression")}}});j("TryStatement",{visitor:["block","handler","finalizer"],aliases:["Statement"],fields:{block:{validate:(0,p.chain)((0,p.assertNodeType)("BlockStatement"),Object.assign(function(e){if(process.env.BABEL_TYPES_8_BREAKING&&!e.handler&&!e.finalizer)throw new TypeError("TryStatement expects either a handler or finalizer, or both")},{oneOfNodeTypes:["BlockStatement"]}))},handler:{optional:!0,validate:(0,p.assertNodeType)("CatchClause")},finalizer:{optional:!0,validate:(0,p.assertNodeType)("BlockStatement")}}});j("UnaryExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!0},argument:{validate:(0,p.assertNodeType)("Expression")},operator:{validate:(0,p.assertOneOf)(...Qi.UNARY_OPERATORS)}},visitor:["argument"],aliases:["UnaryLike","Expression"]});j("UpdateExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!1},argument:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,p.assertNodeType)("Identifier","MemberExpression"):(0,p.assertNodeType)("Expression")},operator:{validate:(0,p.assertOneOf)(...Qi.UPDATE_OPERATORS)}},visitor:["argument"],aliases:["Expression"]});j("VariableDeclaration",{builder:["kind","declarations"],visitor:["declarations"],aliases:["Statement","Declaration"],fields:{declare:{validate:(0,p.assertValueType)("boolean"),optional:!0},kind:{validate:(0,p.assertOneOf)("var","let","const","using","await using")},declarations:{validate:(0,p.chain)((0,p.assertValueType)("array"),(0,p.assertEach)((0,p.assertNodeType)("VariableDeclarator")))}},validate(e,t,r){if(process.env.BABEL_TYPES_8_BREAKING&&(0,ct.default)("ForXStatement",e,{left:r})&&r.declarations.length!==1)throw new TypeError(`Exactly one VariableDeclarator is required in the VariableDeclaration of a ${e.type}`)}});j("VariableDeclarator",{visitor:["id","init"],fields:{id:{validate:function(){if(!process.env.BABEL_TYPES_8_BREAKING)return(0,p.assertNodeType)("LVal");let e=(0,p.assertNodeType)("Identifier","ArrayPattern","ObjectPattern"),t=(0,p.assertNodeType)("Identifier");return function(r,i,s){(r.init?e:t)(r,i,s)}}()},definite:{optional:!0,validate:(0,p.assertValueType)("boolean")},init:{optional:!0,validate:(0,p.assertNodeType)("Expression")}}});j("WhileStatement",{visitor:["test","body"],aliases:["Statement","BlockParent","Loop","While","Scopable"],fields:{test:{validate:(0,p.assertNodeType)("Expression")},body:{validate:(0,p.assertNodeType)("Statement")}}});j("WithStatement",{visitor:["object","body"],aliases:["Statement"],fields:{object:{validate:(0,p.assertNodeType)("Expression")},body:{validate:(0,p.assertNodeType)("Statement")}}});j("AssignmentPattern",{visitor:["left","right","decorators"],builder:["left","right"],aliases:["Pattern","PatternLike","LVal"],fields:Object.assign({},hi(),{left:{validate:(0,p.assertNodeType)("Identifier","ObjectPattern","ArrayPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression")},right:{validate:(0,p.assertNodeType)("Expression")},decorators:{validate:(0,p.chain)((0,p.assertValueType)("array"),(0,p.assertEach)((0,p.assertNodeType)("Decorator"))),optional:!0}})});j("ArrayPattern",{visitor:["elements","typeAnnotation"],builder:["elements"],aliases:["Pattern","PatternLike","LVal"],fields:Object.assign({},hi(),{elements:{validate:(0,p.chain)((0,p.assertValueType)("array"),(0,p.assertEach)((0,p.assertNodeOrValueType)("null","PatternLike","LVal")))}})});j("ArrowFunctionExpression",{builder:["params","body","async"],visitor:["typeParameters","params","returnType","body"],aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:Object.assign({},fi(),jr(),{expression:{validate:(0,p.assertValueType)("boolean")},body:{validate:(0,p.assertNodeType)("BlockStatement","Expression")},predicate:{validate:(0,p.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:!0}})});j("ClassBody",{visitor:["body"],fields:{body:{validate:(0,p.chain)((0,p.assertValueType)("array"),(0,p.assertEach)((0,p.assertNodeType)("ClassMethod","ClassPrivateMethod","ClassProperty","ClassPrivateProperty","ClassAccessorProperty","TSDeclareMethod","TSIndexSignature","StaticBlock")))}}});j("ClassExpression",{builder:["id","superClass","body","decorators"],visitor:["decorators","id","typeParameters","superClass","superTypeParameters","mixins","implements","body"],aliases:["Scopable","Class","Expression"],fields:{id:{validate:(0,p.assertNodeType)("Identifier"),optional:!0},typeParameters:{validate:(0,p.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0},body:{validate:(0,p.assertNodeType)("ClassBody")},superClass:{optional:!0,validate:(0,p.assertNodeType)("Expression")},superTypeParameters:{validate:(0,p.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0},implements:{validate:(0,p.chain)((0,p.assertValueType)("array"),(0,p.assertEach)((0,p.assertNodeType)("TSExpressionWithTypeArguments","ClassImplements"))),optional:!0},decorators:{validate:(0,p.chain)((0,p.assertValueType)("array"),(0,p.assertEach)((0,p.assertNodeType)("Decorator"))),optional:!0},mixins:{validate:(0,p.assertNodeType)("InterfaceExtends"),optional:!0}}});j("ClassDeclaration",{inherits:"ClassExpression",aliases:["Scopable","Class","Statement","Declaration"],fields:{id:{validate:(0,p.assertNodeType)("Identifier"),optional:!0},typeParameters:{validate:(0,p.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0},body:{validate:(0,p.assertNodeType)("ClassBody")},superClass:{optional:!0,validate:(0,p.assertNodeType)("Expression")},superTypeParameters:{validate:(0,p.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0},implements:{validate:(0,p.chain)((0,p.assertValueType)("array"),(0,p.assertEach)((0,p.assertNodeType)("TSExpressionWithTypeArguments","ClassImplements"))),optional:!0},decorators:{validate:(0,p.chain)((0,p.assertValueType)("array"),(0,p.assertEach)((0,p.assertNodeType)("Decorator"))),optional:!0},mixins:{validate:(0,p.assertNodeType)("InterfaceExtends"),optional:!0},declare:{validate:(0,p.assertValueType)("boolean"),optional:!0},abstract:{validate:(0,p.assertValueType)("boolean"),optional:!0}},validate:function(){let e=(0,p.assertNodeType)("Identifier");return function(t,r,i){process.env.BABEL_TYPES_8_BREAKING&&((0,ct.default)("ExportDefaultDeclaration",t)||e(i,"id",i.id))}}()});j("ExportAllDeclaration",{builder:["source"],visitor:["source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:{source:{validate:(0,p.assertNodeType)("StringLiteral")},exportKind:(0,p.validateOptional)((0,p.assertOneOf)("type","value")),attributes:{optional:!0,validate:(0,p.chain)((0,p.assertValueType)("array"),(0,p.assertEach)((0,p.assertNodeType)("ImportAttribute")))},assertions:{optional:!0,validate:(0,p.chain)((0,p.assertValueType)("array"),(0,p.assertEach)((0,p.assertNodeType)("ImportAttribute")))}}});j("ExportDefaultDeclaration",{visitor:["declaration"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:{declaration:{validate:(0,p.assertNodeType)("TSDeclareFunction","FunctionDeclaration","ClassDeclaration","Expression")},exportKind:(0,p.validateOptional)((0,p.assertOneOf)("value"))}});j("ExportNamedDeclaration",{builder:["declaration","specifiers","source"],visitor:["declaration","specifiers","source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:{declaration:{optional:!0,validate:(0,p.chain)((0,p.assertNodeType)("Declaration"),Object.assign(function(e,t,r){if(process.env.BABEL_TYPES_8_BREAKING&&r&&e.specifiers.length)throw new TypeError("Only declaration or specifiers is allowed on ExportNamedDeclaration")},{oneOfNodeTypes:["Declaration"]}),function(e,t,r){if(process.env.BABEL_TYPES_8_BREAKING&&r&&e.source)throw new TypeError("Cannot export a declaration from a source")})},attributes:{optional:!0,validate:(0,p.chain)((0,p.assertValueType)("array"),(0,p.assertEach)((0,p.assertNodeType)("ImportAttribute")))},assertions:{optional:!0,validate:(0,p.chain)((0,p.assertValueType)("array"),(0,p.assertEach)((0,p.assertNodeType)("ImportAttribute")))},specifiers:{default:[],validate:(0,p.chain)((0,p.assertValueType)("array"),(0,p.assertEach)(function(){let e=(0,p.assertNodeType)("ExportSpecifier","ExportDefaultSpecifier","ExportNamespaceSpecifier"),t=(0,p.assertNodeType)("ExportSpecifier");return process.env.BABEL_TYPES_8_BREAKING?function(r,i,s){(r.source?e:t)(r,i,s)}:e}()))},source:{validate:(0,p.assertNodeType)("StringLiteral"),optional:!0},exportKind:(0,p.validateOptional)((0,p.assertOneOf)("type","value"))}});j("ExportSpecifier",{visitor:["local","exported"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,p.assertNodeType)("Identifier")},exported:{validate:(0,p.assertNodeType)("Identifier","StringLiteral")},exportKind:{validate:(0,p.assertOneOf)("type","value"),optional:!0}}});j("ForOfStatement",{visitor:["left","right","body"],builder:["left","right","body","await"],aliases:["Scopable","Statement","For","BlockParent","Loop","ForXStatement"],fields:{left:{validate:function(){if(!process.env.BABEL_TYPES_8_BREAKING)return(0,p.assertNodeType)("VariableDeclaration","LVal");let e=(0,p.assertNodeType)("VariableDeclaration"),t=(0,p.assertNodeType)("Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression");return function(r,i,s){(0,ct.default)("VariableDeclaration",s)?e(r,i,s):t(r,i,s)}}()},right:{validate:(0,p.assertNodeType)("Expression")},body:{validate:(0,p.assertNodeType)("Statement")},await:{default:!1}}});j("ImportDeclaration",{builder:["specifiers","source"],visitor:["specifiers","source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration"],fields:{attributes:{optional:!0,validate:(0,p.chain)((0,p.assertValueType)("array"),(0,p.assertEach)((0,p.assertNodeType)("ImportAttribute")))},assertions:{optional:!0,validate:(0,p.chain)((0,p.assertValueType)("array"),(0,p.assertEach)((0,p.assertNodeType)("ImportAttribute")))},module:{optional:!0,validate:(0,p.assertValueType)("boolean")},phase:{default:null,validate:(0,p.assertOneOf)("source","defer")},specifiers:{validate:(0,p.chain)((0,p.assertValueType)("array"),(0,p.assertEach)((0,p.assertNodeType)("ImportSpecifier","ImportDefaultSpecifier","ImportNamespaceSpecifier")))},source:{validate:(0,p.assertNodeType)("StringLiteral")},importKind:{validate:(0,p.assertOneOf)("type","typeof","value"),optional:!0}}});j("ImportDefaultSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,p.assertNodeType)("Identifier")}}});j("ImportNamespaceSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,p.assertNodeType)("Identifier")}}});j("ImportSpecifier",{visitor:["imported","local"],builder:["local","imported"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,p.assertNodeType)("Identifier")},imported:{validate:(0,p.assertNodeType)("Identifier","StringLiteral")},importKind:{validate:(0,p.assertOneOf)("type","typeof","value"),optional:!0}}});j("ImportExpression",{visitor:["source","options"],aliases:["Expression"],fields:{phase:{default:null,validate:(0,p.assertOneOf)("source","defer")},source:{validate:(0,p.assertNodeType)("Expression")},options:{validate:(0,p.assertNodeType)("Expression"),optional:!0}}});j("MetaProperty",{visitor:["meta","property"],aliases:["Expression"],fields:{meta:{validate:(0,p.chain)((0,p.assertNodeType)("Identifier"),Object.assign(function(e,t,r){if(!process.env.BABEL_TYPES_8_BREAKING)return;let i;switch(r.name){case"function":i="sent";break;case"new":i="target";break;case"import":i="meta";break}if(!(0,ct.default)("Identifier",e.property,{name:i}))throw new TypeError("Unrecognised MetaProperty")},{oneOfNodeTypes:["Identifier"]}))},property:{validate:(0,p.assertNodeType)("Identifier")}}});var $s=()=>({abstract:{validate:(0,p.assertValueType)("boolean"),optional:!0},accessibility:{validate:(0,p.assertOneOf)("public","private","protected"),optional:!0},static:{default:!1},override:{default:!1},computed:{default:!1},optional:{validate:(0,p.assertValueType)("boolean"),optional:!0},key:{validate:(0,p.chain)(function(){let e=(0,p.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral"),t=(0,p.assertNodeType)("Expression");return function(r,i,s){(r.computed?t:e)(r,i,s)}}(),(0,p.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","Expression"))}});bt.classMethodOrPropertyCommon=$s;var So=()=>Object.assign({},fi(),$s(),{params:{validate:(0,p.chain)((0,p.assertValueType)("array"),(0,p.assertEach)((0,p.assertNodeType)("Identifier","Pattern","RestElement","TSParameterProperty")))},kind:{validate:(0,p.assertOneOf)("get","set","method","constructor"),default:"method"},access:{validate:(0,p.chain)((0,p.assertValueType)("string"),(0,p.assertOneOf)("public","private","protected")),optional:!0},decorators:{validate:(0,p.chain)((0,p.assertValueType)("array"),(0,p.assertEach)((0,p.assertNodeType)("Decorator"))),optional:!0}});bt.classMethodOrDeclareMethodCommon=So;j("ClassMethod",{aliases:["Function","Scopable","BlockParent","FunctionParent","Method"],builder:["kind","key","params","body","computed","static","generator","async"],visitor:["decorators","key","typeParameters","params","returnType","body"],fields:Object.assign({},So(),jr(),{body:{validate:(0,p.assertNodeType)("BlockStatement")}})});j("ObjectPattern",{visitor:["properties","typeAnnotation","decorators"],builder:["properties"],aliases:["Pattern","PatternLike","LVal"],fields:Object.assign({},hi(),{properties:{validate:(0,p.chain)((0,p.assertValueType)("array"),(0,p.assertEach)((0,p.assertNodeType)("RestElement","ObjectProperty")))}})});j("SpreadElement",{visitor:["argument"],aliases:["UnaryLike"],deprecatedAlias:"SpreadProperty",fields:{argument:{validate:(0,p.assertNodeType)("Expression")}}});j("Super",{aliases:["Expression"]});j("TaggedTemplateExpression",{visitor:["tag","typeParameters","quasi"],builder:["tag","quasi"],aliases:["Expression"],fields:{tag:{validate:(0,p.assertNodeType)("Expression")},quasi:{validate:(0,p.assertNodeType)("TemplateLiteral")},typeParameters:{validate:(0,p.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0}}});j("TemplateElement",{builder:["value","tail"],fields:{value:{validate:(0,p.chain)((0,p.assertShape)({raw:{validate:(0,p.assertValueType)("string")},cooked:{validate:(0,p.assertValueType)("string"),optional:!0}}),function(t){let r=t.value.raw,i=!1,s=()=>{throw new Error("Internal @babel/types error.")},{str:n,firstInvalidLoc:a}=(0,Ev.readStringContents)("template",r,0,0,0,{unterminated(){i=!0},strictNumericEscape:s,invalidEscapeSequence:s,numericSeparatorInEscapeSequence:s,unexpectedNumericSeparator:s,invalidDigit:s,invalidCodePoint:s});if(!i)throw new Error("Invalid raw");t.value.cooked=a?null:n})},tail:{default:!1}}});j("TemplateLiteral",{visitor:["quasis","expressions"],aliases:["Expression","Literal"],fields:{quasis:{validate:(0,p.chain)((0,p.assertValueType)("array"),(0,p.assertEach)((0,p.assertNodeType)("TemplateElement")))},expressions:{validate:(0,p.chain)((0,p.assertValueType)("array"),(0,p.assertEach)((0,p.assertNodeType)("Expression","TSType")),function(e,t,r){if(e.quasis.length!==r.length+1)throw new TypeError(`Number of ${e.type} quasis should be exactly one more than the number of expressions.
|
|
17
|
-
Expected ${r.length+1} quasis but got ${e.quasis.length}`)})}}});j("YieldExpression",{builder:["argument","delegate"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{delegate:{validate:(0,p.chain)((0,p.assertValueType)("boolean"),Object.assign(function(e,t,r){if(process.env.BABEL_TYPES_8_BREAKING&&r&&!e.argument)throw new TypeError("Property delegate of YieldExpression cannot be true if there is no argument")},{type:"boolean"})),default:!1},argument:{optional:!0,validate:(0,p.assertNodeType)("Expression")}}});j("AwaitExpression",{builder:["argument"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{argument:{validate:(0,p.assertNodeType)("Expression")}}});j("Import",{aliases:["Expression"]});j("BigIntLiteral",{builder:["value"],fields:{value:{validate:(0,p.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]});j("ExportNamespaceSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:(0,p.assertNodeType)("Identifier")}}});j("OptionalMemberExpression",{builder:["object","property","computed","optional"],visitor:["object","property"],aliases:["Expression"],fields:{object:{validate:(0,p.assertNodeType)("Expression")},property:{validate:function(){let e=(0,p.assertNodeType)("Identifier"),t=(0,p.assertNodeType)("Expression");return Object.assign(function(i,s,n){(i.computed?t:e)(i,s,n)},{oneOfNodeTypes:["Expression","Identifier"]})}()},computed:{default:!1},optional:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,p.chain)((0,p.assertValueType)("boolean"),(0,p.assertOptionalChainStart)()):(0,p.assertValueType)("boolean")}}});j("OptionalCallExpression",{visitor:["callee","arguments","typeParameters","typeArguments"],builder:["callee","arguments","optional"],aliases:["Expression"],fields:{callee:{validate:(0,p.assertNodeType)("Expression")},arguments:{validate:(0,p.chain)((0,p.assertValueType)("array"),(0,p.assertEach)((0,p.assertNodeType)("Expression","SpreadElement","ArgumentPlaceholder")))},optional:{validate:process.env.BABEL_TYPES_8_BREAKING?(0,p.chain)((0,p.assertValueType)("boolean"),(0,p.assertOptionalChainStart)()):(0,p.assertValueType)("boolean")},typeArguments:{validate:(0,p.assertNodeType)("TypeParameterInstantiation"),optional:!0},typeParameters:{validate:(0,p.assertNodeType)("TSTypeParameterInstantiation"),optional:!0}}});j("ClassProperty",{visitor:["decorators","key","typeAnnotation","value"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property"],fields:Object.assign({},$s(),{value:{validate:(0,p.assertNodeType)("Expression"),optional:!0},definite:{validate:(0,p.assertValueType)("boolean"),optional:!0},typeAnnotation:{validate:(0,p.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,p.chain)((0,p.assertValueType)("array"),(0,p.assertEach)((0,p.assertNodeType)("Decorator"))),optional:!0},readonly:{validate:(0,p.assertValueType)("boolean"),optional:!0},declare:{validate:(0,p.assertValueType)("boolean"),optional:!0},variance:{validate:(0,p.assertNodeType)("Variance"),optional:!0}})});j("ClassAccessorProperty",{visitor:["decorators","key","typeAnnotation","value"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property","Accessor"],fields:Object.assign({},$s(),{key:{validate:(0,p.chain)(function(){let e=(0,p.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","PrivateName"),t=(0,p.assertNodeType)("Expression");return function(r,i,s){(r.computed?t:e)(r,i,s)}}(),(0,p.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","Expression","PrivateName"))},value:{validate:(0,p.assertNodeType)("Expression"),optional:!0},definite:{validate:(0,p.assertValueType)("boolean"),optional:!0},typeAnnotation:{validate:(0,p.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,p.chain)((0,p.assertValueType)("array"),(0,p.assertEach)((0,p.assertNodeType)("Decorator"))),optional:!0},readonly:{validate:(0,p.assertValueType)("boolean"),optional:!0},declare:{validate:(0,p.assertValueType)("boolean"),optional:!0},variance:{validate:(0,p.assertNodeType)("Variance"),optional:!0}})});j("ClassPrivateProperty",{visitor:["decorators","key","typeAnnotation","value"],builder:["key","value","decorators","static"],aliases:["Property","Private"],fields:{key:{validate:(0,p.assertNodeType)("PrivateName")},value:{validate:(0,p.assertNodeType)("Expression"),optional:!0},typeAnnotation:{validate:(0,p.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,p.chain)((0,p.assertValueType)("array"),(0,p.assertEach)((0,p.assertNodeType)("Decorator"))),optional:!0},static:{validate:(0,p.assertValueType)("boolean"),default:!1},readonly:{validate:(0,p.assertValueType)("boolean"),optional:!0},definite:{validate:(0,p.assertValueType)("boolean"),optional:!0},variance:{validate:(0,p.assertNodeType)("Variance"),optional:!0}}});j("ClassPrivateMethod",{builder:["kind","key","params","body","static"],visitor:["decorators","key","typeParameters","params","returnType","body"],aliases:["Function","Scopable","BlockParent","FunctionParent","Method","Private"],fields:Object.assign({},So(),jr(),{kind:{validate:(0,p.assertOneOf)("get","set","method"),default:"method"},key:{validate:(0,p.assertNodeType)("PrivateName")},body:{validate:(0,p.assertNodeType)("BlockStatement")}})});j("PrivateName",{visitor:["id"],aliases:["Private"],fields:{id:{validate:(0,p.assertNodeType)("Identifier")}}});j("StaticBlock",{visitor:["body"],fields:{body:{validate:(0,p.chain)((0,p.assertValueType)("array"),(0,p.assertEach)((0,p.assertNodeType)("Statement")))}},aliases:["Scopable","BlockParent","FunctionParent"]})});var pf=A(()=>{"use strict";var C=ar(),z=(0,C.defineAliasedType)("Flow"),Eo=e=>{let t=e==="DeclareClass";z(e,{builder:["id","typeParameters","extends","body"],visitor:["id","typeParameters","extends",...t?["mixins","implements"]:[],"body"],aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({id:(0,C.validateType)("Identifier"),typeParameters:(0,C.validateOptionalType)("TypeParameterDeclaration"),extends:(0,C.validateOptional)((0,C.arrayOfType)("InterfaceExtends"))},t?{mixins:(0,C.validateOptional)((0,C.arrayOfType)("InterfaceExtends")),implements:(0,C.validateOptional)((0,C.arrayOfType)("ClassImplements"))}:{},{body:(0,C.validateType)("ObjectTypeAnnotation")})})};z("AnyTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});z("ArrayTypeAnnotation",{visitor:["elementType"],aliases:["FlowType"],fields:{elementType:(0,C.validateType)("FlowType")}});z("BooleanTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});z("BooleanLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0,C.validate)((0,C.assertValueType)("boolean"))}});z("NullLiteralTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});z("ClassImplements",{visitor:["id","typeParameters"],fields:{id:(0,C.validateType)("Identifier"),typeParameters:(0,C.validateOptionalType)("TypeParameterInstantiation")}});Eo("DeclareClass");z("DeclareFunction",{visitor:["id"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,C.validateType)("Identifier"),predicate:(0,C.validateOptionalType)("DeclaredPredicate")}});Eo("DeclareInterface");z("DeclareModule",{builder:["id","body","kind"],visitor:["id","body"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,C.validateType)(["Identifier","StringLiteral"]),body:(0,C.validateType)("BlockStatement"),kind:(0,C.validateOptional)((0,C.assertOneOf)("CommonJS","ES"))}});z("DeclareModuleExports",{visitor:["typeAnnotation"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{typeAnnotation:(0,C.validateType)("TypeAnnotation")}});z("DeclareTypeAlias",{visitor:["id","typeParameters","right"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,C.validateType)("Identifier"),typeParameters:(0,C.validateOptionalType)("TypeParameterDeclaration"),right:(0,C.validateType)("FlowType")}});z("DeclareOpaqueType",{visitor:["id","typeParameters","supertype"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,C.validateType)("Identifier"),typeParameters:(0,C.validateOptionalType)("TypeParameterDeclaration"),supertype:(0,C.validateOptionalType)("FlowType"),impltype:(0,C.validateOptionalType)("FlowType")}});z("DeclareVariable",{visitor:["id"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,C.validateType)("Identifier")}});z("DeclareExportDeclaration",{visitor:["declaration","specifiers","source"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{declaration:(0,C.validateOptionalType)("Flow"),specifiers:(0,C.validateOptional)((0,C.arrayOfType)(["ExportSpecifier","ExportNamespaceSpecifier"])),source:(0,C.validateOptionalType)("StringLiteral"),default:(0,C.validateOptional)((0,C.assertValueType)("boolean"))}});z("DeclareExportAllDeclaration",{visitor:["source"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{source:(0,C.validateType)("StringLiteral"),exportKind:(0,C.validateOptional)((0,C.assertOneOf)("type","value"))}});z("DeclaredPredicate",{visitor:["value"],aliases:["FlowPredicate"],fields:{value:(0,C.validateType)("Flow")}});z("ExistsTypeAnnotation",{aliases:["FlowType"]});z("FunctionTypeAnnotation",{visitor:["typeParameters","params","rest","returnType"],aliases:["FlowType"],fields:{typeParameters:(0,C.validateOptionalType)("TypeParameterDeclaration"),params:(0,C.validate)((0,C.arrayOfType)("FunctionTypeParam")),rest:(0,C.validateOptionalType)("FunctionTypeParam"),this:(0,C.validateOptionalType)("FunctionTypeParam"),returnType:(0,C.validateType)("FlowType")}});z("FunctionTypeParam",{visitor:["name","typeAnnotation"],fields:{name:(0,C.validateOptionalType)("Identifier"),typeAnnotation:(0,C.validateType)("FlowType"),optional:(0,C.validateOptional)((0,C.assertValueType)("boolean"))}});z("GenericTypeAnnotation",{visitor:["id","typeParameters"],aliases:["FlowType"],fields:{id:(0,C.validateType)(["Identifier","QualifiedTypeIdentifier"]),typeParameters:(0,C.validateOptionalType)("TypeParameterInstantiation")}});z("InferredPredicate",{aliases:["FlowPredicate"]});z("InterfaceExtends",{visitor:["id","typeParameters"],fields:{id:(0,C.validateType)(["Identifier","QualifiedTypeIdentifier"]),typeParameters:(0,C.validateOptionalType)("TypeParameterInstantiation")}});Eo("InterfaceDeclaration");z("InterfaceTypeAnnotation",{visitor:["extends","body"],aliases:["FlowType"],fields:{extends:(0,C.validateOptional)((0,C.arrayOfType)("InterfaceExtends")),body:(0,C.validateType)("ObjectTypeAnnotation")}});z("IntersectionTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0,C.validate)((0,C.arrayOfType)("FlowType"))}});z("MixedTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});z("EmptyTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});z("NullableTypeAnnotation",{visitor:["typeAnnotation"],aliases:["FlowType"],fields:{typeAnnotation:(0,C.validateType)("FlowType")}});z("NumberLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0,C.validate)((0,C.assertValueType)("number"))}});z("NumberTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});z("ObjectTypeAnnotation",{visitor:["properties","indexers","callProperties","internalSlots"],aliases:["FlowType"],builder:["properties","indexers","callProperties","internalSlots","exact"],fields:{properties:(0,C.validate)((0,C.arrayOfType)(["ObjectTypeProperty","ObjectTypeSpreadProperty"])),indexers:{validate:(0,C.arrayOfType)("ObjectTypeIndexer"),optional:!0,default:[]},callProperties:{validate:(0,C.arrayOfType)("ObjectTypeCallProperty"),optional:!0,default:[]},internalSlots:{validate:(0,C.arrayOfType)("ObjectTypeInternalSlot"),optional:!0,default:[]},exact:{validate:(0,C.assertValueType)("boolean"),default:!1},inexact:(0,C.validateOptional)((0,C.assertValueType)("boolean"))}});z("ObjectTypeInternalSlot",{visitor:["id","value"],builder:["id","value","optional","static","method"],aliases:["UserWhitespacable"],fields:{id:(0,C.validateType)("Identifier"),value:(0,C.validateType)("FlowType"),optional:(0,C.validate)((0,C.assertValueType)("boolean")),static:(0,C.validate)((0,C.assertValueType)("boolean")),method:(0,C.validate)((0,C.assertValueType)("boolean"))}});z("ObjectTypeCallProperty",{visitor:["value"],aliases:["UserWhitespacable"],fields:{value:(0,C.validateType)("FlowType"),static:(0,C.validate)((0,C.assertValueType)("boolean"))}});z("ObjectTypeIndexer",{visitor:["variance","id","key","value"],builder:["id","key","value","variance"],aliases:["UserWhitespacable"],fields:{id:(0,C.validateOptionalType)("Identifier"),key:(0,C.validateType)("FlowType"),value:(0,C.validateType)("FlowType"),static:(0,C.validate)((0,C.assertValueType)("boolean")),variance:(0,C.validateOptionalType)("Variance")}});z("ObjectTypeProperty",{visitor:["key","value","variance"],aliases:["UserWhitespacable"],fields:{key:(0,C.validateType)(["Identifier","StringLiteral"]),value:(0,C.validateType)("FlowType"),kind:(0,C.validate)((0,C.assertOneOf)("init","get","set")),static:(0,C.validate)((0,C.assertValueType)("boolean")),proto:(0,C.validate)((0,C.assertValueType)("boolean")),optional:(0,C.validate)((0,C.assertValueType)("boolean")),variance:(0,C.validateOptionalType)("Variance"),method:(0,C.validate)((0,C.assertValueType)("boolean"))}});z("ObjectTypeSpreadProperty",{visitor:["argument"],aliases:["UserWhitespacable"],fields:{argument:(0,C.validateType)("FlowType")}});z("OpaqueType",{visitor:["id","typeParameters","supertype","impltype"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,C.validateType)("Identifier"),typeParameters:(0,C.validateOptionalType)("TypeParameterDeclaration"),supertype:(0,C.validateOptionalType)("FlowType"),impltype:(0,C.validateType)("FlowType")}});z("QualifiedTypeIdentifier",{visitor:["qualification","id"],builder:["id","qualification"],fields:{id:(0,C.validateType)("Identifier"),qualification:(0,C.validateType)(["Identifier","QualifiedTypeIdentifier"])}});z("StringLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0,C.validate)((0,C.assertValueType)("string"))}});z("StringTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});z("SymbolTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});z("ThisTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});z("TupleTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0,C.validate)((0,C.arrayOfType)("FlowType"))}});z("TypeofTypeAnnotation",{visitor:["argument"],aliases:["FlowType"],fields:{argument:(0,C.validateType)("FlowType")}});z("TypeAlias",{visitor:["id","typeParameters","right"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,C.validateType)("Identifier"),typeParameters:(0,C.validateOptionalType)("TypeParameterDeclaration"),right:(0,C.validateType)("FlowType")}});z("TypeAnnotation",{visitor:["typeAnnotation"],fields:{typeAnnotation:(0,C.validateType)("FlowType")}});z("TypeCastExpression",{visitor:["expression","typeAnnotation"],aliases:["ExpressionWrapper","Expression"],fields:{expression:(0,C.validateType)("Expression"),typeAnnotation:(0,C.validateType)("TypeAnnotation")}});z("TypeParameter",{visitor:["bound","default","variance"],fields:{name:(0,C.validate)((0,C.assertValueType)("string")),bound:(0,C.validateOptionalType)("TypeAnnotation"),default:(0,C.validateOptionalType)("FlowType"),variance:(0,C.validateOptionalType)("Variance")}});z("TypeParameterDeclaration",{visitor:["params"],fields:{params:(0,C.validate)((0,C.arrayOfType)("TypeParameter"))}});z("TypeParameterInstantiation",{visitor:["params"],fields:{params:(0,C.validate)((0,C.arrayOfType)("FlowType"))}});z("UnionTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0,C.validate)((0,C.arrayOfType)("FlowType"))}});z("Variance",{builder:["kind"],fields:{kind:(0,C.validate)((0,C.assertOneOf)("minus","plus"))}});z("VoidTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]});z("EnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:{id:(0,C.validateType)("Identifier"),body:(0,C.validateType)(["EnumBooleanBody","EnumNumberBody","EnumStringBody","EnumSymbolBody"])}});z("EnumBooleanBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,C.validate)((0,C.assertValueType)("boolean")),members:(0,C.validateArrayOfType)("EnumBooleanMember"),hasUnknownMembers:(0,C.validate)((0,C.assertValueType)("boolean"))}});z("EnumNumberBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,C.validate)((0,C.assertValueType)("boolean")),members:(0,C.validateArrayOfType)("EnumNumberMember"),hasUnknownMembers:(0,C.validate)((0,C.assertValueType)("boolean"))}});z("EnumStringBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,C.validate)((0,C.assertValueType)("boolean")),members:(0,C.validateArrayOfType)(["EnumStringMember","EnumDefaultedMember"]),hasUnknownMembers:(0,C.validate)((0,C.assertValueType)("boolean"))}});z("EnumSymbolBody",{aliases:["EnumBody"],visitor:["members"],fields:{members:(0,C.validateArrayOfType)("EnumDefaultedMember"),hasUnknownMembers:(0,C.validate)((0,C.assertValueType)("boolean"))}});z("EnumBooleanMember",{aliases:["EnumMember"],visitor:["id"],fields:{id:(0,C.validateType)("Identifier"),init:(0,C.validateType)("BooleanLiteral")}});z("EnumNumberMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:(0,C.validateType)("Identifier"),init:(0,C.validateType)("NumericLiteral")}});z("EnumStringMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:(0,C.validateType)("Identifier"),init:(0,C.validateType)("StringLiteral")}});z("EnumDefaultedMember",{aliases:["EnumMember"],visitor:["id"],fields:{id:(0,C.validateType)("Identifier")}});z("IndexedAccessType",{visitor:["objectType","indexType"],aliases:["FlowType"],fields:{objectType:(0,C.validateType)("FlowType"),indexType:(0,C.validateType)("FlowType")}});z("OptionalIndexedAccessType",{visitor:["objectType","indexType"],aliases:["FlowType"],fields:{objectType:(0,C.validateType)("FlowType"),indexType:(0,C.validateType)("FlowType"),optional:(0,C.validate)((0,C.assertValueType)("boolean"))}})});var ff=A(()=>{"use strict";var we=ar(),pt=(0,we.defineAliasedType)("JSX");pt("JSXAttribute",{visitor:["name","value"],aliases:["Immutable"],fields:{name:{validate:(0,we.assertNodeType)("JSXIdentifier","JSXNamespacedName")},value:{optional:!0,validate:(0,we.assertNodeType)("JSXElement","JSXFragment","StringLiteral","JSXExpressionContainer")}}});pt("JSXClosingElement",{visitor:["name"],aliases:["Immutable"],fields:{name:{validate:(0,we.assertNodeType)("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")}}});pt("JSXElement",{builder:["openingElement","closingElement","children","selfClosing"],visitor:["openingElement","children","closingElement"],aliases:["Immutable","Expression"],fields:Object.assign({openingElement:{validate:(0,we.assertNodeType)("JSXOpeningElement")},closingElement:{optional:!0,validate:(0,we.assertNodeType)("JSXClosingElement")},children:{validate:(0,we.chain)((0,we.assertValueType)("array"),(0,we.assertEach)((0,we.assertNodeType)("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")))}},{selfClosing:{validate:(0,we.assertValueType)("boolean"),optional:!0}})});pt("JSXEmptyExpression",{});pt("JSXExpressionContainer",{visitor:["expression"],aliases:["Immutable"],fields:{expression:{validate:(0,we.assertNodeType)("Expression","JSXEmptyExpression")}}});pt("JSXSpreadChild",{visitor:["expression"],aliases:["Immutable"],fields:{expression:{validate:(0,we.assertNodeType)("Expression")}}});pt("JSXIdentifier",{builder:["name"],fields:{name:{validate:(0,we.assertValueType)("string")}}});pt("JSXMemberExpression",{visitor:["object","property"],fields:{object:{validate:(0,we.assertNodeType)("JSXMemberExpression","JSXIdentifier")},property:{validate:(0,we.assertNodeType)("JSXIdentifier")}}});pt("JSXNamespacedName",{visitor:["namespace","name"],fields:{namespace:{validate:(0,we.assertNodeType)("JSXIdentifier")},name:{validate:(0,we.assertNodeType)("JSXIdentifier")}}});pt("JSXOpeningElement",{builder:["name","attributes","selfClosing"],visitor:["name","attributes"],aliases:["Immutable"],fields:{name:{validate:(0,we.assertNodeType)("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")},selfClosing:{default:!1},attributes:{validate:(0,we.chain)((0,we.assertValueType)("array"),(0,we.assertEach)((0,we.assertNodeType)("JSXAttribute","JSXSpreadAttribute")))},typeParameters:{validate:(0,we.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0}}});pt("JSXSpreadAttribute",{visitor:["argument"],fields:{argument:{validate:(0,we.assertNodeType)("Expression")}}});pt("JSXText",{aliases:["Immutable"],builder:["value"],fields:{value:{validate:(0,we.assertValueType)("string")}}});pt("JSXFragment",{builder:["openingFragment","closingFragment","children"],visitor:["openingFragment","children","closingFragment"],aliases:["Immutable","Expression"],fields:{openingFragment:{validate:(0,we.assertNodeType)("JSXOpeningFragment")},closingFragment:{validate:(0,we.assertNodeType)("JSXClosingFragment")},children:{validate:(0,we.chain)((0,we.assertValueType)("array"),(0,we.assertEach)((0,we.assertNodeType)("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")))}}});pt("JSXOpeningFragment",{aliases:["Immutable"]});pt("JSXClosingFragment",{aliases:["Immutable"]})});var vo=A(br=>{"use strict";Object.defineProperty(br,"__esModule",{value:!0});br.PLACEHOLDERS_FLIPPED_ALIAS=br.PLACEHOLDERS_ALIAS=br.PLACEHOLDERS=void 0;var Pv=ar(),Av=br.PLACEHOLDERS=["Identifier","StringLiteral","Expression","Statement","Declaration","BlockStatement","ClassBody","Pattern"],Ao=br.PLACEHOLDERS_ALIAS={Declaration:["Statement"],Pattern:["PatternLike","LVal"]};for(let e of Av){let t=Pv.ALIAS_KEYS[e];t!=null&&t.length&&(Ao[e]=t)}var Po=br.PLACEHOLDERS_FLIPPED_ALIAS={};Object.keys(Ao).forEach(e=>{Ao[e].forEach(t=>{hasOwnProperty.call(Po,t)||(Po[t]=[]),Po[t].push(e)})})});var hf=A(()=>{"use strict";var Hs=ar(),vv=vo(),Co=(0,Hs.defineAliasedType)("Miscellaneous");Co("Noop",{visitor:[]});Co("Placeholder",{visitor:[],builder:["expectedNode","name"],fields:{name:{validate:(0,Hs.assertNodeType)("Identifier")},expectedNode:{validate:(0,Hs.assertOneOf)(...vv.PLACEHOLDERS)}}});Co("V8IntrinsicIdentifier",{builder:["name"],fields:{name:{validate:(0,Hs.assertValueType)("string")}}})});var df=A(()=>{"use strict";var ve=ar();(0,ve.default)("ArgumentPlaceholder",{});(0,ve.default)("BindExpression",{visitor:["object","callee"],aliases:["Expression"],fields:process.env.BABEL_TYPES_8_BREAKING?{object:{validate:(0,ve.assertNodeType)("Expression")},callee:{validate:(0,ve.assertNodeType)("Expression")}}:{object:{validate:Object.assign(()=>{},{oneOfNodeTypes:["Expression"]})},callee:{validate:Object.assign(()=>{},{oneOfNodeTypes:["Expression"]})}}});(0,ve.default)("ImportAttribute",{visitor:["key","value"],fields:{key:{validate:(0,ve.assertNodeType)("Identifier","StringLiteral")},value:{validate:(0,ve.assertNodeType)("StringLiteral")}}});(0,ve.default)("Decorator",{visitor:["expression"],fields:{expression:{validate:(0,ve.assertNodeType)("Expression")}}});(0,ve.default)("DoExpression",{visitor:["body"],builder:["body","async"],aliases:["Expression"],fields:{body:{validate:(0,ve.assertNodeType)("BlockStatement")},async:{validate:(0,ve.assertValueType)("boolean"),default:!1}}});(0,ve.default)("ExportDefaultSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:(0,ve.assertNodeType)("Identifier")}}});(0,ve.default)("RecordExpression",{visitor:["properties"],aliases:["Expression"],fields:{properties:{validate:(0,ve.chain)((0,ve.assertValueType)("array"),(0,ve.assertEach)((0,ve.assertNodeType)("ObjectProperty","SpreadElement")))}}});(0,ve.default)("TupleExpression",{fields:{elements:{validate:(0,ve.chain)((0,ve.assertValueType)("array"),(0,ve.assertEach)((0,ve.assertNodeType)("Expression","SpreadElement"))),default:[]}},visitor:["elements"],aliases:["Expression"]});(0,ve.default)("DecimalLiteral",{builder:["value"],fields:{value:{validate:(0,ve.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]});(0,ve.default)("ModuleExpression",{visitor:["body"],fields:{body:{validate:(0,ve.assertNodeType)("Program")}},aliases:["Expression"]});(0,ve.default)("TopicReference",{aliases:["Expression"]});(0,ve.default)("PipelineTopicExpression",{builder:["expression"],visitor:["expression"],fields:{expression:{validate:(0,ve.assertNodeType)("Expression")}},aliases:["Expression"]});(0,ve.default)("PipelineBareFunction",{builder:["callee"],visitor:["callee"],fields:{callee:{validate:(0,ve.assertNodeType)("Expression")}},aliases:["Expression"]});(0,ve.default)("PipelinePrimaryTopicReference",{aliases:["Expression"]})});var Ef=A(()=>{"use strict";var O=ar(),mf=xo(),Cv=ci(),se=(0,O.defineAliasedType)("TypeScript"),St=(0,O.assertValueType)("boolean"),yf=()=>({returnType:{validate:(0,O.assertNodeType)("TSTypeAnnotation","Noop"),optional:!0},typeParameters:{validate:(0,O.assertNodeType)("TSTypeParameterDeclaration","Noop"),optional:!0}});se("TSParameterProperty",{aliases:["LVal"],visitor:["parameter"],fields:{accessibility:{validate:(0,O.assertOneOf)("public","private","protected"),optional:!0},readonly:{validate:(0,O.assertValueType)("boolean"),optional:!0},parameter:{validate:(0,O.assertNodeType)("Identifier","AssignmentPattern")},override:{validate:(0,O.assertValueType)("boolean"),optional:!0},decorators:{validate:(0,O.chain)((0,O.assertValueType)("array"),(0,O.assertEach)((0,O.assertNodeType)("Decorator"))),optional:!0}}});se("TSDeclareFunction",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","params","returnType"],fields:Object.assign({},(0,mf.functionDeclarationCommon)(),yf())});se("TSDeclareMethod",{visitor:["decorators","key","typeParameters","params","returnType"],fields:Object.assign({},(0,mf.classMethodOrDeclareMethodCommon)(),yf())});se("TSQualifiedName",{aliases:["TSEntityName"],visitor:["left","right"],fields:{left:(0,O.validateType)("TSEntityName"),right:(0,O.validateType)("Identifier")}});var Gs=()=>({typeParameters:(0,O.validateOptionalType)("TSTypeParameterDeclaration"),parameters:(0,O.validateArrayOfType)(["ArrayPattern","Identifier","ObjectPattern","RestElement"]),typeAnnotation:(0,O.validateOptionalType)("TSTypeAnnotation")}),Tf={aliases:["TSTypeElement"],visitor:["typeParameters","parameters","typeAnnotation"],fields:Gs()};se("TSCallSignatureDeclaration",Tf);se("TSConstructSignatureDeclaration",Tf);var gf=()=>({key:(0,O.validateType)("Expression"),computed:{default:!1},optional:(0,O.validateOptional)(St)});se("TSPropertySignature",{aliases:["TSTypeElement"],visitor:["key","typeAnnotation"],fields:Object.assign({},gf(),{readonly:(0,O.validateOptional)(St),typeAnnotation:(0,O.validateOptionalType)("TSTypeAnnotation"),kind:{validate:(0,O.assertOneOf)("get","set")}})});se("TSMethodSignature",{aliases:["TSTypeElement"],visitor:["key","typeParameters","parameters","typeAnnotation"],fields:Object.assign({},Gs(),gf(),{kind:{validate:(0,O.assertOneOf)("method","get","set")}})});se("TSIndexSignature",{aliases:["TSTypeElement"],visitor:["parameters","typeAnnotation"],fields:{readonly:(0,O.validateOptional)(St),static:(0,O.validateOptional)(St),parameters:(0,O.validateArrayOfType)("Identifier"),typeAnnotation:(0,O.validateOptionalType)("TSTypeAnnotation")}});var Iv=["TSAnyKeyword","TSBooleanKeyword","TSBigIntKeyword","TSIntrinsicKeyword","TSNeverKeyword","TSNullKeyword","TSNumberKeyword","TSObjectKeyword","TSStringKeyword","TSSymbolKeyword","TSUndefinedKeyword","TSUnknownKeyword","TSVoidKeyword"];for(let e of Iv)se(e,{aliases:["TSType","TSBaseType"],visitor:[],fields:{}});se("TSThisType",{aliases:["TSType","TSBaseType"],visitor:[],fields:{}});var bf={aliases:["TSType"],visitor:["typeParameters","parameters","typeAnnotation"]};se("TSFunctionType",Object.assign({},bf,{fields:Gs()}));se("TSConstructorType",Object.assign({},bf,{fields:Object.assign({},Gs(),{abstract:(0,O.validateOptional)(St)})}));se("TSTypeReference",{aliases:["TSType"],visitor:["typeName","typeParameters"],fields:{typeName:(0,O.validateType)("TSEntityName"),typeParameters:(0,O.validateOptionalType)("TSTypeParameterInstantiation")}});se("TSTypePredicate",{aliases:["TSType"],visitor:["parameterName","typeAnnotation"],builder:["parameterName","typeAnnotation","asserts"],fields:{parameterName:(0,O.validateType)(["Identifier","TSThisType"]),typeAnnotation:(0,O.validateOptionalType)("TSTypeAnnotation"),asserts:(0,O.validateOptional)(St)}});se("TSTypeQuery",{aliases:["TSType"],visitor:["exprName","typeParameters"],fields:{exprName:(0,O.validateType)(["TSEntityName","TSImportType"]),typeParameters:(0,O.validateOptionalType)("TSTypeParameterInstantiation")}});se("TSTypeLiteral",{aliases:["TSType"],visitor:["members"],fields:{members:(0,O.validateArrayOfType)("TSTypeElement")}});se("TSArrayType",{aliases:["TSType"],visitor:["elementType"],fields:{elementType:(0,O.validateType)("TSType")}});se("TSTupleType",{aliases:["TSType"],visitor:["elementTypes"],fields:{elementTypes:(0,O.validateArrayOfType)(["TSType","TSNamedTupleMember"])}});se("TSOptionalType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,O.validateType)("TSType")}});se("TSRestType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,O.validateType)("TSType")}});se("TSNamedTupleMember",{visitor:["label","elementType"],builder:["label","elementType","optional"],fields:{label:(0,O.validateType)("Identifier"),optional:{validate:St,default:!1},elementType:(0,O.validateType)("TSType")}});var Sf={aliases:["TSType"],visitor:["types"],fields:{types:(0,O.validateArrayOfType)("TSType")}};se("TSUnionType",Sf);se("TSIntersectionType",Sf);se("TSConditionalType",{aliases:["TSType"],visitor:["checkType","extendsType","trueType","falseType"],fields:{checkType:(0,O.validateType)("TSType"),extendsType:(0,O.validateType)("TSType"),trueType:(0,O.validateType)("TSType"),falseType:(0,O.validateType)("TSType")}});se("TSInferType",{aliases:["TSType"],visitor:["typeParameter"],fields:{typeParameter:(0,O.validateType)("TSTypeParameter")}});se("TSParenthesizedType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,O.validateType)("TSType")}});se("TSTypeOperator",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{operator:(0,O.validate)((0,O.assertValueType)("string")),typeAnnotation:(0,O.validateType)("TSType")}});se("TSIndexedAccessType",{aliases:["TSType"],visitor:["objectType","indexType"],fields:{objectType:(0,O.validateType)("TSType"),indexType:(0,O.validateType)("TSType")}});se("TSMappedType",{aliases:["TSType"],visitor:["typeParameter","nameType","typeAnnotation"],builder:["typeParameter","typeAnnotation","nameType"],fields:Object.assign({},{typeParameter:(0,O.validateType)("TSTypeParameter")},{readonly:(0,O.validateOptional)((0,O.assertOneOf)(!0,!1,"+","-")),optional:(0,O.validateOptional)((0,O.assertOneOf)(!0,!1,"+","-")),typeAnnotation:(0,O.validateOptionalType)("TSType"),nameType:(0,O.validateOptionalType)("TSType")})});se("TSLiteralType",{aliases:["TSType","TSBaseType"],visitor:["literal"],fields:{literal:{validate:function(){let e=(0,O.assertNodeType)("NumericLiteral","BigIntLiteral"),t=(0,O.assertOneOf)("-"),r=(0,O.assertNodeType)("NumericLiteral","StringLiteral","BooleanLiteral","BigIntLiteral","TemplateLiteral");function i(s,n,a){(0,Cv.default)("UnaryExpression",a)?(t(a,"operator",a.operator),e(a,"argument",a.argument)):r(s,n,a)}return i.oneOfNodeTypes=["NumericLiteral","StringLiteral","BooleanLiteral","BigIntLiteral","TemplateLiteral","UnaryExpression"],i}()}}});se("TSExpressionWithTypeArguments",{aliases:["TSType"],visitor:["expression","typeParameters"],fields:{expression:(0,O.validateType)("TSEntityName"),typeParameters:(0,O.validateOptionalType)("TSTypeParameterInstantiation")}});se("TSInterfaceDeclaration",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","extends","body"],fields:{declare:(0,O.validateOptional)(St),id:(0,O.validateType)("Identifier"),typeParameters:(0,O.validateOptionalType)("TSTypeParameterDeclaration"),extends:(0,O.validateOptional)((0,O.arrayOfType)("TSExpressionWithTypeArguments")),body:(0,O.validateType)("TSInterfaceBody")}});se("TSInterfaceBody",{visitor:["body"],fields:{body:(0,O.validateArrayOfType)("TSTypeElement")}});se("TSTypeAliasDeclaration",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","typeAnnotation"],fields:{declare:(0,O.validateOptional)(St),id:(0,O.validateType)("Identifier"),typeParameters:(0,O.validateOptionalType)("TSTypeParameterDeclaration"),typeAnnotation:(0,O.validateType)("TSType")}});se("TSInstantiationExpression",{aliases:["Expression"],visitor:["expression","typeParameters"],fields:{expression:(0,O.validateType)("Expression"),typeParameters:(0,O.validateOptionalType)("TSTypeParameterInstantiation")}});var xf={aliases:["Expression","LVal","PatternLike"],visitor:["expression","typeAnnotation"],fields:{expression:(0,O.validateType)("Expression"),typeAnnotation:(0,O.validateType)("TSType")}};se("TSAsExpression",xf);se("TSSatisfiesExpression",xf);se("TSTypeAssertion",{aliases:["Expression","LVal","PatternLike"],visitor:["typeAnnotation","expression"],fields:{typeAnnotation:(0,O.validateType)("TSType"),expression:(0,O.validateType)("Expression")}});se("TSEnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","members"],fields:{declare:(0,O.validateOptional)(St),const:(0,O.validateOptional)(St),id:(0,O.validateType)("Identifier"),members:(0,O.validateArrayOfType)("TSEnumMember"),initializer:(0,O.validateOptionalType)("Expression")}});se("TSEnumMember",{visitor:["id","initializer"],fields:{id:(0,O.validateType)(["Identifier","StringLiteral"]),initializer:(0,O.validateOptionalType)("Expression")}});se("TSModuleDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:{declare:(0,O.validateOptional)(St),global:(0,O.validateOptional)(St),id:(0,O.validateType)(["Identifier","StringLiteral"]),body:(0,O.validateType)(["TSModuleBlock","TSModuleDeclaration"])}});se("TSModuleBlock",{aliases:["Scopable","Block","BlockParent","FunctionParent"],visitor:["body"],fields:{body:(0,O.validateArrayOfType)("Statement")}});se("TSImportType",{aliases:["TSType"],visitor:["argument","qualifier","typeParameters"],fields:{argument:(0,O.validateType)("StringLiteral"),qualifier:(0,O.validateOptionalType)("TSEntityName"),typeParameters:(0,O.validateOptionalType)("TSTypeParameterInstantiation"),options:{validate:(0,O.assertNodeType)("Expression"),optional:!0}}});se("TSImportEqualsDeclaration",{aliases:["Statement"],visitor:["id","moduleReference"],fields:{isExport:(0,O.validate)(St),id:(0,O.validateType)("Identifier"),moduleReference:(0,O.validateType)(["TSEntityName","TSExternalModuleReference"]),importKind:{validate:(0,O.assertOneOf)("type","value"),optional:!0}}});se("TSExternalModuleReference",{visitor:["expression"],fields:{expression:(0,O.validateType)("StringLiteral")}});se("TSNonNullExpression",{aliases:["Expression","LVal","PatternLike"],visitor:["expression"],fields:{expression:(0,O.validateType)("Expression")}});se("TSExportAssignment",{aliases:["Statement"],visitor:["expression"],fields:{expression:(0,O.validateType)("Expression")}});se("TSNamespaceExportDeclaration",{aliases:["Statement"],visitor:["id"],fields:{id:(0,O.validateType)("Identifier")}});se("TSTypeAnnotation",{visitor:["typeAnnotation"],fields:{typeAnnotation:{validate:(0,O.assertNodeType)("TSType")}}});se("TSTypeParameterInstantiation",{visitor:["params"],fields:{params:{validate:(0,O.chain)((0,O.assertValueType)("array"),(0,O.assertEach)((0,O.assertNodeType)("TSType")))}}});se("TSTypeParameterDeclaration",{visitor:["params"],fields:{params:{validate:(0,O.chain)((0,O.assertValueType)("array"),(0,O.assertEach)((0,O.assertNodeType)("TSTypeParameter")))}}});se("TSTypeParameter",{builder:["constraint","default","name"],visitor:["constraint","default"],fields:{name:{validate:(0,O.assertValueType)("string")},in:{validate:(0,O.assertValueType)("boolean"),optional:!0},out:{validate:(0,O.assertValueType)("boolean"),optional:!0},const:{validate:(0,O.assertValueType)("boolean"),optional:!0},constraint:{validate:(0,O.assertNodeType)("TSType"),optional:!0},default:{validate:(0,O.assertNodeType)("TSType"),optional:!0}}})});var Pf=A(zs=>{"use strict";Object.defineProperty(zs,"__esModule",{value:!0});zs.DEPRECATED_ALIASES=void 0;var lJ=zs.DEPRECATED_ALIASES={ModuleDeclaration:"ImportOrExportDeclaration"}});var It=A(ft=>{"use strict";Object.defineProperty(ft,"__esModule",{value:!0});Object.defineProperty(ft,"ALIAS_KEYS",{enumerable:!0,get:function(){return ze.ALIAS_KEYS}});Object.defineProperty(ft,"BUILDER_KEYS",{enumerable:!0,get:function(){return ze.BUILDER_KEYS}});Object.defineProperty(ft,"DEPRECATED_ALIASES",{enumerable:!0,get:function(){return Io.DEPRECATED_ALIASES}});Object.defineProperty(ft,"DEPRECATED_KEYS",{enumerable:!0,get:function(){return ze.DEPRECATED_KEYS}});Object.defineProperty(ft,"FLIPPED_ALIAS_KEYS",{enumerable:!0,get:function(){return ze.FLIPPED_ALIAS_KEYS}});Object.defineProperty(ft,"NODE_FIELDS",{enumerable:!0,get:function(){return ze.NODE_FIELDS}});Object.defineProperty(ft,"NODE_PARENT_VALIDATIONS",{enumerable:!0,get:function(){return ze.NODE_PARENT_VALIDATIONS}});Object.defineProperty(ft,"PLACEHOLDERS",{enumerable:!0,get:function(){return Zi.PLACEHOLDERS}});Object.defineProperty(ft,"PLACEHOLDERS_ALIAS",{enumerable:!0,get:function(){return Zi.PLACEHOLDERS_ALIAS}});Object.defineProperty(ft,"PLACEHOLDERS_FLIPPED_ALIAS",{enumerable:!0,get:function(){return Zi.PLACEHOLDERS_FLIPPED_ALIAS}});ft.TYPES=void 0;Object.defineProperty(ft,"VISITOR_KEYS",{enumerable:!0,get:function(){return ze.VISITOR_KEYS}});var Sr=qp();xo();pf();ff();hf();df();Ef();var ze=ar(),Zi=vo(),Io=Pf();Object.keys(Io.DEPRECATED_ALIASES).forEach(e=>{ze.FLIPPED_ALIAS_KEYS[e]=ze.FLIPPED_ALIAS_KEYS[Io.DEPRECATED_ALIASES[e]]});Sr(ze.VISITOR_KEYS);Sr(ze.ALIAS_KEYS);Sr(ze.FLIPPED_ALIAS_KEYS);Sr(ze.NODE_FIELDS);Sr(ze.BUILDER_KEYS);Sr(ze.DEPRECATED_KEYS);Sr(Zi.PLACEHOLDERS_ALIAS);Sr(Zi.PLACEHOLDERS_FLIPPED_ALIAS);var cJ=ft.TYPES=[].concat(Object.keys(ze.VISITOR_KEYS),Object.keys(ze.FLIPPED_ALIAS_KEYS),Object.keys(ze.DEPRECATED_KEYS))});var Js=A(es=>{"use strict";Object.defineProperty(es,"__esModule",{value:!0});es.default=wv;es.validateChild=Cf;es.validateField=vf;var Af=It();function wv(e,t,r){if(!e)return;let i=Af.NODE_FIELDS[e.type];if(!i)return;let s=i[t];vf(e,t,r,s),Cf(e,t,r)}function vf(e,t,r,i){i!=null&&i.validate&&(i.optional&&r==null||i.validate(e,t,r))}function Cf(e,t,r){if(r==null)return;let i=Af.NODE_PARENT_VALIDATIONS[r.type];i&&i(e,t,r)}});var If=A(wo=>{"use strict";Object.defineProperty(wo,"__esModule",{value:!0});wo.default=_v;var Ov=Js(),Nv=de();function _v(e){let t=Nv.BUILDER_KEYS[e.type];for(let r of t)(0,Ov.default)(e,r,e[r]);return e}});var ht=A(f=>{"use strict";Object.defineProperty(f,"__esModule",{value:!0});f.anyTypeAnnotation=lC;f.argumentPlaceholder=FI;f.arrayExpression=Dv;f.arrayPattern=I1;f.arrayTypeAnnotation=uC;f.arrowFunctionExpression=w1;f.assignmentExpression=kv;f.assignmentPattern=C1;f.awaitExpression=G1;f.bigIntLiteral=Q1;f.binaryExpression=Lv;f.bindExpression=jI;f.blockStatement=jv;f.booleanLiteral=s1;f.booleanLiteralTypeAnnotation=pC;f.booleanTypeAnnotation=cC;f.breakStatement=Rv;f.callExpression=qv;f.catchClause=Uv;f.classAccessorProperty=iC;f.classBody=O1;f.classDeclaration=_1;f.classExpression=N1;f.classImplements=hC;f.classMethod=K1;f.classPrivateMethod=nC;f.classPrivateProperty=sC;f.classProperty=rC;f.conditionalExpression=Vv;f.continueStatement=Kv;f.debuggerStatement=Wv;f.decimalLiteral=YI;f.declareClass=dC;f.declareExportAllDeclaration=PC;f.declareExportDeclaration=EC;f.declareFunction=mC;f.declareInterface=yC;f.declareModule=TC;f.declareModuleExports=gC;f.declareOpaqueType=SC;f.declareTypeAlias=bC;f.declareVariable=xC;f.declaredPredicate=AC;f.decorator=qI;f.directive=Bv;f.directiveLiteral=Fv;f.doExpression=UI;f.doWhileStatement=Yv;f.emptyStatement=Xv;f.emptyTypeAnnotation=MC;f.enumBooleanBody=uI;f.enumBooleanMember=hI;f.enumDeclaration=lI;f.enumDefaultedMember=yI;f.enumNumberBody=cI;f.enumNumberMember=dI;f.enumStringBody=pI;f.enumStringMember=mI;f.enumSymbolBody=fI;f.existsTypeAnnotation=vC;f.exportAllDeclaration=D1;f.exportDefaultDeclaration=k1;f.exportDefaultSpecifier=VI;f.exportNamedDeclaration=L1;f.exportNamespaceSpecifier=Z1;f.exportSpecifier=M1;f.expressionStatement=Jv;f.file=$v;f.forInStatement=Hv;f.forOfStatement=B1;f.forStatement=Gv;f.functionDeclaration=zv;f.functionExpression=Qv;f.functionTypeAnnotation=CC;f.functionTypeParam=IC;f.genericTypeAnnotation=wC;f.identifier=Zv;f.ifStatement=e1;f.import=z1;f.importAttribute=RI;f.importDeclaration=F1;f.importDefaultSpecifier=j1;f.importExpression=U1;f.importNamespaceSpecifier=R1;f.importSpecifier=q1;f.indexedAccessType=TI;f.inferredPredicate=OC;f.interfaceDeclaration=_C;f.interfaceExtends=NC;f.interfaceTypeAnnotation=DC;f.interpreterDirective=Mv;f.intersectionTypeAnnotation=kC;f.jSXAttribute=f.jsxAttribute=bI;f.jSXClosingElement=f.jsxClosingElement=SI;f.jSXClosingFragment=f.jsxClosingFragment=kI;f.jSXElement=f.jsxElement=xI;f.jSXEmptyExpression=f.jsxEmptyExpression=EI;f.jSXExpressionContainer=f.jsxExpressionContainer=PI;f.jSXFragment=f.jsxFragment=_I;f.jSXIdentifier=f.jsxIdentifier=vI;f.jSXMemberExpression=f.jsxMemberExpression=CI;f.jSXNamespacedName=f.jsxNamespacedName=II;f.jSXOpeningElement=f.jsxOpeningElement=wI;f.jSXOpeningFragment=f.jsxOpeningFragment=DI;f.jSXSpreadAttribute=f.jsxSpreadAttribute=OI;f.jSXSpreadChild=f.jsxSpreadChild=AI;f.jSXText=f.jsxText=NI;f.labeledStatement=t1;f.logicalExpression=n1;f.memberExpression=a1;f.metaProperty=V1;f.mixedTypeAnnotation=LC;f.moduleExpression=XI;f.newExpression=o1;f.noop=LI;f.nullLiteral=i1;f.nullLiteralTypeAnnotation=fC;f.nullableTypeAnnotation=BC;f.numberLiteral=lO;f.numberLiteralTypeAnnotation=FC;f.numberTypeAnnotation=jC;f.numericLiteral=wf;f.objectExpression=u1;f.objectMethod=c1;f.objectPattern=W1;f.objectProperty=p1;f.objectTypeAnnotation=RC;f.objectTypeCallProperty=UC;f.objectTypeIndexer=VC;f.objectTypeInternalSlot=qC;f.objectTypeProperty=KC;f.objectTypeSpreadProperty=WC;f.opaqueType=YC;f.optionalCallExpression=tC;f.optionalIndexedAccessType=gI;f.optionalMemberExpression=eC;f.parenthesizedExpression=d1;f.pipelineBareFunction=HI;f.pipelinePrimaryTopicReference=GI;f.pipelineTopicExpression=$I;f.placeholder=MI;f.privateName=aC;f.program=l1;f.qualifiedTypeIdentifier=XC;f.recordExpression=KI;f.regExpLiteral=Of;f.regexLiteral=uO;f.restElement=Nf;f.restProperty=cO;f.returnStatement=f1;f.sequenceExpression=h1;f.spreadElement=_f;f.spreadProperty=pO;f.staticBlock=oC;f.stringLiteral=r1;f.stringLiteralTypeAnnotation=JC;f.stringTypeAnnotation=$C;f.super=Y1;f.switchCase=m1;f.switchStatement=y1;f.symbolTypeAnnotation=HC;f.taggedTemplateExpression=X1;f.templateElement=J1;f.templateLiteral=$1;f.thisExpression=T1;f.thisTypeAnnotation=GC;f.throwStatement=g1;f.topicReference=JI;f.tryStatement=b1;f.tSAnyKeyword=f.tsAnyKeyword=aw;f.tSArrayType=f.tsArrayType=Cw;f.tSAsExpression=f.tsAsExpression=Yw;f.tSBigIntKeyword=f.tsBigIntKeyword=lw;f.tSBooleanKeyword=f.tsBooleanKeyword=ow;f.tSCallSignatureDeclaration=f.tsCallSignatureDeclaration=tw;f.tSConditionalType=f.tsConditionalType=kw;f.tSConstructSignatureDeclaration=f.tsConstructSignatureDeclaration=rw;f.tSConstructorType=f.tsConstructorType=xw;f.tSDeclareFunction=f.tsDeclareFunction=QI;f.tSDeclareMethod=f.tsDeclareMethod=ZI;f.tSEnumDeclaration=f.tsEnumDeclaration=$w;f.tSEnumMember=f.tsEnumMember=Hw;f.tSExportAssignment=f.tsExportAssignment=rO;f.tSExpressionWithTypeArguments=f.tsExpressionWithTypeArguments=qw;f.tSExternalModuleReference=f.tsExternalModuleReference=eO;f.tSFunctionType=f.tsFunctionType=Sw;f.tSImportEqualsDeclaration=f.tsImportEqualsDeclaration=Zw;f.tSImportType=f.tsImportType=Qw;f.tSIndexSignature=f.tsIndexSignature=nw;f.tSIndexedAccessType=f.tsIndexedAccessType=Fw;f.tSInferType=f.tsInferType=Lw;f.tSInstantiationExpression=f.tsInstantiationExpression=Ww;f.tSInterfaceBody=f.tsInterfaceBody=Vw;f.tSInterfaceDeclaration=f.tsInterfaceDeclaration=Uw;f.tSIntersectionType=f.tsIntersectionType=Dw;f.tSIntrinsicKeyword=f.tsIntrinsicKeyword=uw;f.tSLiteralType=f.tsLiteralType=Rw;f.tSMappedType=f.tsMappedType=jw;f.tSMethodSignature=f.tsMethodSignature=sw;f.tSModuleBlock=f.tsModuleBlock=zw;f.tSModuleDeclaration=f.tsModuleDeclaration=Gw;f.tSNamedTupleMember=f.tsNamedTupleMember=Nw;f.tSNamespaceExportDeclaration=f.tsNamespaceExportDeclaration=iO;f.tSNeverKeyword=f.tsNeverKeyword=cw;f.tSNonNullExpression=f.tsNonNullExpression=tO;f.tSNullKeyword=f.tsNullKeyword=pw;f.tSNumberKeyword=f.tsNumberKeyword=fw;f.tSObjectKeyword=f.tsObjectKeyword=hw;f.tSOptionalType=f.tsOptionalType=ww;f.tSParameterProperty=f.tsParameterProperty=zI;f.tSParenthesizedType=f.tsParenthesizedType=Mw;f.tSPropertySignature=f.tsPropertySignature=iw;f.tSQualifiedName=f.tsQualifiedName=ew;f.tSRestType=f.tsRestType=Ow;f.tSSatisfiesExpression=f.tsSatisfiesExpression=Xw;f.tSStringKeyword=f.tsStringKeyword=dw;f.tSSymbolKeyword=f.tsSymbolKeyword=mw;f.tSThisType=f.tsThisType=bw;f.tSTupleType=f.tsTupleType=Iw;f.tSTypeAliasDeclaration=f.tsTypeAliasDeclaration=Kw;f.tSTypeAnnotation=f.tsTypeAnnotation=sO;f.tSTypeAssertion=f.tsTypeAssertion=Jw;f.tSTypeLiteral=f.tsTypeLiteral=vw;f.tSTypeOperator=f.tsTypeOperator=Bw;f.tSTypeParameter=f.tsTypeParameter=oO;f.tSTypeParameterDeclaration=f.tsTypeParameterDeclaration=aO;f.tSTypeParameterInstantiation=f.tsTypeParameterInstantiation=nO;f.tSTypePredicate=f.tsTypePredicate=Pw;f.tSTypeQuery=f.tsTypeQuery=Aw;f.tSTypeReference=f.tsTypeReference=Ew;f.tSUndefinedKeyword=f.tsUndefinedKeyword=yw;f.tSUnionType=f.tsUnionType=_w;f.tSUnknownKeyword=f.tsUnknownKeyword=Tw;f.tSVoidKeyword=f.tsVoidKeyword=gw;f.tupleExpression=WI;f.tupleTypeAnnotation=zC;f.typeAlias=ZC;f.typeAnnotation=eI;f.typeCastExpression=tI;f.typeParameter=rI;f.typeParameterDeclaration=iI;f.typeParameterInstantiation=sI;f.typeofTypeAnnotation=QC;f.unaryExpression=S1;f.unionTypeAnnotation=nI;f.updateExpression=x1;f.v8IntrinsicIdentifier=BI;f.variableDeclaration=E1;f.variableDeclarator=P1;f.variance=aI;f.voidTypeAnnotation=oI;f.whileStatement=A1;f.withStatement=v1;f.yieldExpression=H1;var x=If(),Qs=Ki();function Dv(e=[]){return(0,x.default)({type:"ArrayExpression",elements:e})}function kv(e,t,r){return(0,x.default)({type:"AssignmentExpression",operator:e,left:t,right:r})}function Lv(e,t,r){return(0,x.default)({type:"BinaryExpression",operator:e,left:t,right:r})}function Mv(e){return(0,x.default)({type:"InterpreterDirective",value:e})}function Bv(e){return(0,x.default)({type:"Directive",value:e})}function Fv(e){return(0,x.default)({type:"DirectiveLiteral",value:e})}function jv(e,t=[]){return(0,x.default)({type:"BlockStatement",body:e,directives:t})}function Rv(e=null){return(0,x.default)({type:"BreakStatement",label:e})}function qv(e,t){return(0,x.default)({type:"CallExpression",callee:e,arguments:t})}function Uv(e=null,t){return(0,x.default)({type:"CatchClause",param:e,body:t})}function Vv(e,t,r){return(0,x.default)({type:"ConditionalExpression",test:e,consequent:t,alternate:r})}function Kv(e=null){return(0,x.default)({type:"ContinueStatement",label:e})}function Wv(){return{type:"DebuggerStatement"}}function Yv(e,t){return(0,x.default)({type:"DoWhileStatement",test:e,body:t})}function Xv(){return{type:"EmptyStatement"}}function Jv(e){return(0,x.default)({type:"ExpressionStatement",expression:e})}function $v(e,t=null,r=null){return(0,x.default)({type:"File",program:e,comments:t,tokens:r})}function Hv(e,t,r){return(0,x.default)({type:"ForInStatement",left:e,right:t,body:r})}function Gv(e=null,t=null,r=null,i){return(0,x.default)({type:"ForStatement",init:e,test:t,update:r,body:i})}function zv(e=null,t,r,i=!1,s=!1){return(0,x.default)({type:"FunctionDeclaration",id:e,params:t,body:r,generator:i,async:s})}function Qv(e=null,t,r,i=!1,s=!1){return(0,x.default)({type:"FunctionExpression",id:e,params:t,body:r,generator:i,async:s})}function Zv(e){return(0,x.default)({type:"Identifier",name:e})}function e1(e,t,r=null){return(0,x.default)({type:"IfStatement",test:e,consequent:t,alternate:r})}function t1(e,t){return(0,x.default)({type:"LabeledStatement",label:e,body:t})}function r1(e){return(0,x.default)({type:"StringLiteral",value:e})}function wf(e){return(0,x.default)({type:"NumericLiteral",value:e})}function i1(){return{type:"NullLiteral"}}function s1(e){return(0,x.default)({type:"BooleanLiteral",value:e})}function Of(e,t=""){return(0,x.default)({type:"RegExpLiteral",pattern:e,flags:t})}function n1(e,t,r){return(0,x.default)({type:"LogicalExpression",operator:e,left:t,right:r})}function a1(e,t,r=!1,i=null){return(0,x.default)({type:"MemberExpression",object:e,property:t,computed:r,optional:i})}function o1(e,t){return(0,x.default)({type:"NewExpression",callee:e,arguments:t})}function l1(e,t=[],r="script",i=null){return(0,x.default)({type:"Program",body:e,directives:t,sourceType:r,interpreter:i})}function u1(e){return(0,x.default)({type:"ObjectExpression",properties:e})}function c1(e="method",t,r,i,s=!1,n=!1,a=!1){return(0,x.default)({type:"ObjectMethod",kind:e,key:t,params:r,body:i,computed:s,generator:n,async:a})}function p1(e,t,r=!1,i=!1,s=null){return(0,x.default)({type:"ObjectProperty",key:e,value:t,computed:r,shorthand:i,decorators:s})}function Nf(e){return(0,x.default)({type:"RestElement",argument:e})}function f1(e=null){return(0,x.default)({type:"ReturnStatement",argument:e})}function h1(e){return(0,x.default)({type:"SequenceExpression",expressions:e})}function d1(e){return(0,x.default)({type:"ParenthesizedExpression",expression:e})}function m1(e=null,t){return(0,x.default)({type:"SwitchCase",test:e,consequent:t})}function y1(e,t){return(0,x.default)({type:"SwitchStatement",discriminant:e,cases:t})}function T1(){return{type:"ThisExpression"}}function g1(e){return(0,x.default)({type:"ThrowStatement",argument:e})}function b1(e,t=null,r=null){return(0,x.default)({type:"TryStatement",block:e,handler:t,finalizer:r})}function S1(e,t,r=!0){return(0,x.default)({type:"UnaryExpression",operator:e,argument:t,prefix:r})}function x1(e,t,r=!1){return(0,x.default)({type:"UpdateExpression",operator:e,argument:t,prefix:r})}function E1(e,t){return(0,x.default)({type:"VariableDeclaration",kind:e,declarations:t})}function P1(e,t=null){return(0,x.default)({type:"VariableDeclarator",id:e,init:t})}function A1(e,t){return(0,x.default)({type:"WhileStatement",test:e,body:t})}function v1(e,t){return(0,x.default)({type:"WithStatement",object:e,body:t})}function C1(e,t){return(0,x.default)({type:"AssignmentPattern",left:e,right:t})}function I1(e){return(0,x.default)({type:"ArrayPattern",elements:e})}function w1(e,t,r=!1){return(0,x.default)({type:"ArrowFunctionExpression",params:e,body:t,async:r,expression:null})}function O1(e){return(0,x.default)({type:"ClassBody",body:e})}function N1(e=null,t=null,r,i=null){return(0,x.default)({type:"ClassExpression",id:e,superClass:t,body:r,decorators:i})}function _1(e=null,t=null,r,i=null){return(0,x.default)({type:"ClassDeclaration",id:e,superClass:t,body:r,decorators:i})}function D1(e){return(0,x.default)({type:"ExportAllDeclaration",source:e})}function k1(e){return(0,x.default)({type:"ExportDefaultDeclaration",declaration:e})}function L1(e=null,t=[],r=null){return(0,x.default)({type:"ExportNamedDeclaration",declaration:e,specifiers:t,source:r})}function M1(e,t){return(0,x.default)({type:"ExportSpecifier",local:e,exported:t})}function B1(e,t,r,i=!1){return(0,x.default)({type:"ForOfStatement",left:e,right:t,body:r,await:i})}function F1(e,t){return(0,x.default)({type:"ImportDeclaration",specifiers:e,source:t})}function j1(e){return(0,x.default)({type:"ImportDefaultSpecifier",local:e})}function R1(e){return(0,x.default)({type:"ImportNamespaceSpecifier",local:e})}function q1(e,t){return(0,x.default)({type:"ImportSpecifier",local:e,imported:t})}function U1(e,t=null){return(0,x.default)({type:"ImportExpression",source:e,options:t})}function V1(e,t){return(0,x.default)({type:"MetaProperty",meta:e,property:t})}function K1(e="method",t,r,i,s=!1,n=!1,a=!1,o=!1){return(0,x.default)({type:"ClassMethod",kind:e,key:t,params:r,body:i,computed:s,static:n,generator:a,async:o})}function W1(e){return(0,x.default)({type:"ObjectPattern",properties:e})}function _f(e){return(0,x.default)({type:"SpreadElement",argument:e})}function Y1(){return{type:"Super"}}function X1(e,t){return(0,x.default)({type:"TaggedTemplateExpression",tag:e,quasi:t})}function J1(e,t=!1){return(0,x.default)({type:"TemplateElement",value:e,tail:t})}function $1(e,t){return(0,x.default)({type:"TemplateLiteral",quasis:e,expressions:t})}function H1(e=null,t=!1){return(0,x.default)({type:"YieldExpression",argument:e,delegate:t})}function G1(e){return(0,x.default)({type:"AwaitExpression",argument:e})}function z1(){return{type:"Import"}}function Q1(e){return(0,x.default)({type:"BigIntLiteral",value:e})}function Z1(e){return(0,x.default)({type:"ExportNamespaceSpecifier",exported:e})}function eC(e,t,r=!1,i){return(0,x.default)({type:"OptionalMemberExpression",object:e,property:t,computed:r,optional:i})}function tC(e,t,r){return(0,x.default)({type:"OptionalCallExpression",callee:e,arguments:t,optional:r})}function rC(e,t=null,r=null,i=null,s=!1,n=!1){return(0,x.default)({type:"ClassProperty",key:e,value:t,typeAnnotation:r,decorators:i,computed:s,static:n})}function iC(e,t=null,r=null,i=null,s=!1,n=!1){return(0,x.default)({type:"ClassAccessorProperty",key:e,value:t,typeAnnotation:r,decorators:i,computed:s,static:n})}function sC(e,t=null,r=null,i=!1){return(0,x.default)({type:"ClassPrivateProperty",key:e,value:t,decorators:r,static:i})}function nC(e="method",t,r,i,s=!1){return(0,x.default)({type:"ClassPrivateMethod",kind:e,key:t,params:r,body:i,static:s})}function aC(e){return(0,x.default)({type:"PrivateName",id:e})}function oC(e){return(0,x.default)({type:"StaticBlock",body:e})}function lC(){return{type:"AnyTypeAnnotation"}}function uC(e){return(0,x.default)({type:"ArrayTypeAnnotation",elementType:e})}function cC(){return{type:"BooleanTypeAnnotation"}}function pC(e){return(0,x.default)({type:"BooleanLiteralTypeAnnotation",value:e})}function fC(){return{type:"NullLiteralTypeAnnotation"}}function hC(e,t=null){return(0,x.default)({type:"ClassImplements",id:e,typeParameters:t})}function dC(e,t=null,r=null,i){return(0,x.default)({type:"DeclareClass",id:e,typeParameters:t,extends:r,body:i})}function mC(e){return(0,x.default)({type:"DeclareFunction",id:e})}function yC(e,t=null,r=null,i){return(0,x.default)({type:"DeclareInterface",id:e,typeParameters:t,extends:r,body:i})}function TC(e,t,r=null){return(0,x.default)({type:"DeclareModule",id:e,body:t,kind:r})}function gC(e){return(0,x.default)({type:"DeclareModuleExports",typeAnnotation:e})}function bC(e,t=null,r){return(0,x.default)({type:"DeclareTypeAlias",id:e,typeParameters:t,right:r})}function SC(e,t=null,r=null){return(0,x.default)({type:"DeclareOpaqueType",id:e,typeParameters:t,supertype:r})}function xC(e){return(0,x.default)({type:"DeclareVariable",id:e})}function EC(e=null,t=null,r=null){return(0,x.default)({type:"DeclareExportDeclaration",declaration:e,specifiers:t,source:r})}function PC(e){return(0,x.default)({type:"DeclareExportAllDeclaration",source:e})}function AC(e){return(0,x.default)({type:"DeclaredPredicate",value:e})}function vC(){return{type:"ExistsTypeAnnotation"}}function CC(e=null,t,r=null,i){return(0,x.default)({type:"FunctionTypeAnnotation",typeParameters:e,params:t,rest:r,returnType:i})}function IC(e=null,t){return(0,x.default)({type:"FunctionTypeParam",name:e,typeAnnotation:t})}function wC(e,t=null){return(0,x.default)({type:"GenericTypeAnnotation",id:e,typeParameters:t})}function OC(){return{type:"InferredPredicate"}}function NC(e,t=null){return(0,x.default)({type:"InterfaceExtends",id:e,typeParameters:t})}function _C(e,t=null,r=null,i){return(0,x.default)({type:"InterfaceDeclaration",id:e,typeParameters:t,extends:r,body:i})}function DC(e=null,t){return(0,x.default)({type:"InterfaceTypeAnnotation",extends:e,body:t})}function kC(e){return(0,x.default)({type:"IntersectionTypeAnnotation",types:e})}function LC(){return{type:"MixedTypeAnnotation"}}function MC(){return{type:"EmptyTypeAnnotation"}}function BC(e){return(0,x.default)({type:"NullableTypeAnnotation",typeAnnotation:e})}function FC(e){return(0,x.default)({type:"NumberLiteralTypeAnnotation",value:e})}function jC(){return{type:"NumberTypeAnnotation"}}function RC(e,t=[],r=[],i=[],s=!1){return(0,x.default)({type:"ObjectTypeAnnotation",properties:e,indexers:t,callProperties:r,internalSlots:i,exact:s})}function qC(e,t,r,i,s){return(0,x.default)({type:"ObjectTypeInternalSlot",id:e,value:t,optional:r,static:i,method:s})}function UC(e){return(0,x.default)({type:"ObjectTypeCallProperty",value:e,static:null})}function VC(e=null,t,r,i=null){return(0,x.default)({type:"ObjectTypeIndexer",id:e,key:t,value:r,variance:i,static:null})}function KC(e,t,r=null){return(0,x.default)({type:"ObjectTypeProperty",key:e,value:t,variance:r,kind:null,method:null,optional:null,proto:null,static:null})}function WC(e){return(0,x.default)({type:"ObjectTypeSpreadProperty",argument:e})}function YC(e,t=null,r=null,i){return(0,x.default)({type:"OpaqueType",id:e,typeParameters:t,supertype:r,impltype:i})}function XC(e,t){return(0,x.default)({type:"QualifiedTypeIdentifier",id:e,qualification:t})}function JC(e){return(0,x.default)({type:"StringLiteralTypeAnnotation",value:e})}function $C(){return{type:"StringTypeAnnotation"}}function HC(){return{type:"SymbolTypeAnnotation"}}function GC(){return{type:"ThisTypeAnnotation"}}function zC(e){return(0,x.default)({type:"TupleTypeAnnotation",types:e})}function QC(e){return(0,x.default)({type:"TypeofTypeAnnotation",argument:e})}function ZC(e,t=null,r){return(0,x.default)({type:"TypeAlias",id:e,typeParameters:t,right:r})}function eI(e){return(0,x.default)({type:"TypeAnnotation",typeAnnotation:e})}function tI(e,t){return(0,x.default)({type:"TypeCastExpression",expression:e,typeAnnotation:t})}function rI(e=null,t=null,r=null){return(0,x.default)({type:"TypeParameter",bound:e,default:t,variance:r,name:null})}function iI(e){return(0,x.default)({type:"TypeParameterDeclaration",params:e})}function sI(e){return(0,x.default)({type:"TypeParameterInstantiation",params:e})}function nI(e){return(0,x.default)({type:"UnionTypeAnnotation",types:e})}function aI(e){return(0,x.default)({type:"Variance",kind:e})}function oI(){return{type:"VoidTypeAnnotation"}}function lI(e,t){return(0,x.default)({type:"EnumDeclaration",id:e,body:t})}function uI(e){return(0,x.default)({type:"EnumBooleanBody",members:e,explicitType:null,hasUnknownMembers:null})}function cI(e){return(0,x.default)({type:"EnumNumberBody",members:e,explicitType:null,hasUnknownMembers:null})}function pI(e){return(0,x.default)({type:"EnumStringBody",members:e,explicitType:null,hasUnknownMembers:null})}function fI(e){return(0,x.default)({type:"EnumSymbolBody",members:e,hasUnknownMembers:null})}function hI(e){return(0,x.default)({type:"EnumBooleanMember",id:e,init:null})}function dI(e,t){return(0,x.default)({type:"EnumNumberMember",id:e,init:t})}function mI(e,t){return(0,x.default)({type:"EnumStringMember",id:e,init:t})}function yI(e){return(0,x.default)({type:"EnumDefaultedMember",id:e})}function TI(e,t){return(0,x.default)({type:"IndexedAccessType",objectType:e,indexType:t})}function gI(e,t){return(0,x.default)({type:"OptionalIndexedAccessType",objectType:e,indexType:t,optional:null})}function bI(e,t=null){return(0,x.default)({type:"JSXAttribute",name:e,value:t})}function SI(e){return(0,x.default)({type:"JSXClosingElement",name:e})}function xI(e,t=null,r,i=null){return(0,x.default)({type:"JSXElement",openingElement:e,closingElement:t,children:r,selfClosing:i})}function EI(){return{type:"JSXEmptyExpression"}}function PI(e){return(0,x.default)({type:"JSXExpressionContainer",expression:e})}function AI(e){return(0,x.default)({type:"JSXSpreadChild",expression:e})}function vI(e){return(0,x.default)({type:"JSXIdentifier",name:e})}function CI(e,t){return(0,x.default)({type:"JSXMemberExpression",object:e,property:t})}function II(e,t){return(0,x.default)({type:"JSXNamespacedName",namespace:e,name:t})}function wI(e,t,r=!1){return(0,x.default)({type:"JSXOpeningElement",name:e,attributes:t,selfClosing:r})}function OI(e){return(0,x.default)({type:"JSXSpreadAttribute",argument:e})}function NI(e){return(0,x.default)({type:"JSXText",value:e})}function _I(e,t,r){return(0,x.default)({type:"JSXFragment",openingFragment:e,closingFragment:t,children:r})}function DI(){return{type:"JSXOpeningFragment"}}function kI(){return{type:"JSXClosingFragment"}}function LI(){return{type:"Noop"}}function MI(e,t){return(0,x.default)({type:"Placeholder",expectedNode:e,name:t})}function BI(e){return(0,x.default)({type:"V8IntrinsicIdentifier",name:e})}function FI(){return{type:"ArgumentPlaceholder"}}function jI(e,t){return(0,x.default)({type:"BindExpression",object:e,callee:t})}function RI(e,t){return(0,x.default)({type:"ImportAttribute",key:e,value:t})}function qI(e){return(0,x.default)({type:"Decorator",expression:e})}function UI(e,t=!1){return(0,x.default)({type:"DoExpression",body:e,async:t})}function VI(e){return(0,x.default)({type:"ExportDefaultSpecifier",exported:e})}function KI(e){return(0,x.default)({type:"RecordExpression",properties:e})}function WI(e=[]){return(0,x.default)({type:"TupleExpression",elements:e})}function YI(e){return(0,x.default)({type:"DecimalLiteral",value:e})}function XI(e){return(0,x.default)({type:"ModuleExpression",body:e})}function JI(){return{type:"TopicReference"}}function $I(e){return(0,x.default)({type:"PipelineTopicExpression",expression:e})}function HI(e){return(0,x.default)({type:"PipelineBareFunction",callee:e})}function GI(){return{type:"PipelinePrimaryTopicReference"}}function zI(e){return(0,x.default)({type:"TSParameterProperty",parameter:e})}function QI(e=null,t=null,r,i=null){return(0,x.default)({type:"TSDeclareFunction",id:e,typeParameters:t,params:r,returnType:i})}function ZI(e=null,t,r=null,i,s=null){return(0,x.default)({type:"TSDeclareMethod",decorators:e,key:t,typeParameters:r,params:i,returnType:s})}function ew(e,t){return(0,x.default)({type:"TSQualifiedName",left:e,right:t})}function tw(e=null,t,r=null){return(0,x.default)({type:"TSCallSignatureDeclaration",typeParameters:e,parameters:t,typeAnnotation:r})}function rw(e=null,t,r=null){return(0,x.default)({type:"TSConstructSignatureDeclaration",typeParameters:e,parameters:t,typeAnnotation:r})}function iw(e,t=null){return(0,x.default)({type:"TSPropertySignature",key:e,typeAnnotation:t,kind:null})}function sw(e,t=null,r,i=null){return(0,x.default)({type:"TSMethodSignature",key:e,typeParameters:t,parameters:r,typeAnnotation:i,kind:null})}function nw(e,t=null){return(0,x.default)({type:"TSIndexSignature",parameters:e,typeAnnotation:t})}function aw(){return{type:"TSAnyKeyword"}}function ow(){return{type:"TSBooleanKeyword"}}function lw(){return{type:"TSBigIntKeyword"}}function uw(){return{type:"TSIntrinsicKeyword"}}function cw(){return{type:"TSNeverKeyword"}}function pw(){return{type:"TSNullKeyword"}}function fw(){return{type:"TSNumberKeyword"}}function hw(){return{type:"TSObjectKeyword"}}function dw(){return{type:"TSStringKeyword"}}function mw(){return{type:"TSSymbolKeyword"}}function yw(){return{type:"TSUndefinedKeyword"}}function Tw(){return{type:"TSUnknownKeyword"}}function gw(){return{type:"TSVoidKeyword"}}function bw(){return{type:"TSThisType"}}function Sw(e=null,t,r=null){return(0,x.default)({type:"TSFunctionType",typeParameters:e,parameters:t,typeAnnotation:r})}function xw(e=null,t,r=null){return(0,x.default)({type:"TSConstructorType",typeParameters:e,parameters:t,typeAnnotation:r})}function Ew(e,t=null){return(0,x.default)({type:"TSTypeReference",typeName:e,typeParameters:t})}function Pw(e,t=null,r=null){return(0,x.default)({type:"TSTypePredicate",parameterName:e,typeAnnotation:t,asserts:r})}function Aw(e,t=null){return(0,x.default)({type:"TSTypeQuery",exprName:e,typeParameters:t})}function vw(e){return(0,x.default)({type:"TSTypeLiteral",members:e})}function Cw(e){return(0,x.default)({type:"TSArrayType",elementType:e})}function Iw(e){return(0,x.default)({type:"TSTupleType",elementTypes:e})}function ww(e){return(0,x.default)({type:"TSOptionalType",typeAnnotation:e})}function Ow(e){return(0,x.default)({type:"TSRestType",typeAnnotation:e})}function Nw(e,t,r=!1){return(0,x.default)({type:"TSNamedTupleMember",label:e,elementType:t,optional:r})}function _w(e){return(0,x.default)({type:"TSUnionType",types:e})}function Dw(e){return(0,x.default)({type:"TSIntersectionType",types:e})}function kw(e,t,r,i){return(0,x.default)({type:"TSConditionalType",checkType:e,extendsType:t,trueType:r,falseType:i})}function Lw(e){return(0,x.default)({type:"TSInferType",typeParameter:e})}function Mw(e){return(0,x.default)({type:"TSParenthesizedType",typeAnnotation:e})}function Bw(e){return(0,x.default)({type:"TSTypeOperator",typeAnnotation:e,operator:null})}function Fw(e,t){return(0,x.default)({type:"TSIndexedAccessType",objectType:e,indexType:t})}function jw(e,t=null,r=null){return(0,x.default)({type:"TSMappedType",typeParameter:e,typeAnnotation:t,nameType:r})}function Rw(e){return(0,x.default)({type:"TSLiteralType",literal:e})}function qw(e,t=null){return(0,x.default)({type:"TSExpressionWithTypeArguments",expression:e,typeParameters:t})}function Uw(e,t=null,r=null,i){return(0,x.default)({type:"TSInterfaceDeclaration",id:e,typeParameters:t,extends:r,body:i})}function Vw(e){return(0,x.default)({type:"TSInterfaceBody",body:e})}function Kw(e,t=null,r){return(0,x.default)({type:"TSTypeAliasDeclaration",id:e,typeParameters:t,typeAnnotation:r})}function Ww(e,t=null){return(0,x.default)({type:"TSInstantiationExpression",expression:e,typeParameters:t})}function Yw(e,t){return(0,x.default)({type:"TSAsExpression",expression:e,typeAnnotation:t})}function Xw(e,t){return(0,x.default)({type:"TSSatisfiesExpression",expression:e,typeAnnotation:t})}function Jw(e,t){return(0,x.default)({type:"TSTypeAssertion",typeAnnotation:e,expression:t})}function $w(e,t){return(0,x.default)({type:"TSEnumDeclaration",id:e,members:t})}function Hw(e,t=null){return(0,x.default)({type:"TSEnumMember",id:e,initializer:t})}function Gw(e,t){return(0,x.default)({type:"TSModuleDeclaration",id:e,body:t})}function zw(e){return(0,x.default)({type:"TSModuleBlock",body:e})}function Qw(e,t=null,r=null){return(0,x.default)({type:"TSImportType",argument:e,qualifier:t,typeParameters:r})}function Zw(e,t){return(0,x.default)({type:"TSImportEqualsDeclaration",id:e,moduleReference:t,isExport:null})}function eO(e){return(0,x.default)({type:"TSExternalModuleReference",expression:e})}function tO(e){return(0,x.default)({type:"TSNonNullExpression",expression:e})}function rO(e){return(0,x.default)({type:"TSExportAssignment",expression:e})}function iO(e){return(0,x.default)({type:"TSNamespaceExportDeclaration",id:e})}function sO(e){return(0,x.default)({type:"TSTypeAnnotation",typeAnnotation:e})}function nO(e){return(0,x.default)({type:"TSTypeParameterInstantiation",params:e})}function aO(e){return(0,x.default)({type:"TSTypeParameterDeclaration",params:e})}function oO(e=null,t=null,r){return(0,x.default)({type:"TSTypeParameter",constraint:e,default:t,name:r})}function lO(e){return(0,Qs.default)("NumberLiteral","NumericLiteral","The node type "),wf(e)}function uO(e,t=""){return(0,Qs.default)("RegexLiteral","RegExpLiteral","The node type "),Of(e,t)}function cO(e){return(0,Qs.default)("RestProperty","RestElement","The node type "),Nf(e)}function pO(e){return(0,Qs.default)("SpreadProperty","SpreadElement","The node type "),_f(e)}});var Df=A(Oo=>{"use strict";Object.defineProperty(Oo,"__esModule",{value:!0});Oo.default=dO;var fO=ht(),hO=de();function dO(e,t){let r=e.value.split(/\r\n|\n|\r/),i=0;for(let n=0;n<r.length;n++)/[^ \t]/.exec(r[n])&&(i=n);let s="";for(let n=0;n<r.length;n++){let a=r[n],o=n===0,l=n===r.length-1,u=n===i,c=a.replace(/\t/g," ");o||(c=c.replace(/^ +/,"")),l||(c=c.replace(/ +$/,"")),c&&(u||(c+=" "),s+=c)}s&&t.push((0,hO.inherits)((0,fO.stringLiteral)(s),e))}});var kf=A(_o=>{"use strict";Object.defineProperty(_o,"__esModule",{value:!0});_o.default=yO;var No=We(),mO=Df();function yO(e){let t=[];for(let r=0;r<e.children.length;r++){let i=e.children[r];if((0,No.isJSXText)(i)){(0,mO.default)(i,t);continue}(0,No.isJSXExpressionContainer)(i)&&(i=i.expression),!(0,No.isJSXEmptyExpression)(i)&&t.push(i)}return t}});var ko=A(Do=>{"use strict";Object.defineProperty(Do,"__esModule",{value:!0});Do.default=gO;var TO=It();function gO(e){return!!(e&&TO.VISITOR_KEYS[e.type])}});var Lf=A(Lo=>{"use strict";Object.defineProperty(Lo,"__esModule",{value:!0});Lo.default=SO;var bO=ko();function SO(e){if(!(0,bO.default)(e)){var t;let r=(t=e?.type)!=null?t:JSON.stringify(e);throw new TypeError(`Not a valid node of type "${r}"`)}}});var Mf=A(d=>{"use strict";Object.defineProperty(d,"__esModule",{value:!0});d.assertAccessor=Bk;d.assertAnyTypeAnnotation=r_;d.assertArgumentPlaceholder=_2;d.assertArrayExpression=EO;d.assertArrayPattern=SN;d.assertArrayTypeAnnotation=i_;d.assertArrowFunctionExpression=xN;d.assertAssignmentExpression=PO;d.assertAssignmentPattern=bN;d.assertAwaitExpression=WN;d.assertBigIntLiteral=XN;d.assertBinary=sk;d.assertBinaryExpression=AO;d.assertBindExpression=D2;d.assertBlock=ok;d.assertBlockParent=ak;d.assertBlockStatement=wO;d.assertBooleanLiteral=HO;d.assertBooleanLiteralTypeAnnotation=n_;d.assertBooleanTypeAnnotation=s_;d.assertBreakStatement=OO;d.assertCallExpression=NO;d.assertCatchClause=_O;d.assertClass=Dk;d.assertClassAccessorProperty=zN;d.assertClassBody=EN;d.assertClassDeclaration=AN;d.assertClassExpression=PN;d.assertClassImplements=o_;d.assertClassMethod=BN;d.assertClassPrivateMethod=ZN;d.assertClassPrivateProperty=QN;d.assertClassProperty=GN;d.assertCompletionStatement=ck;d.assertConditional=pk;d.assertConditionalExpression=DO;d.assertContinueStatement=kO;d.assertDebuggerStatement=LO;d.assertDecimalLiteral=R2;d.assertDeclaration=Sk;d.assertDeclareClass=l_;d.assertDeclareExportAllDeclaration=T_;d.assertDeclareExportDeclaration=y_;d.assertDeclareFunction=u_;d.assertDeclareInterface=c_;d.assertDeclareModule=p_;d.assertDeclareModuleExports=f_;d.assertDeclareOpaqueType=d_;d.assertDeclareTypeAlias=h_;d.assertDeclareVariable=m_;d.assertDeclaredPredicate=g_;d.assertDecorator=L2;d.assertDirective=CO;d.assertDirectiveLiteral=IO;d.assertDoExpression=M2;d.assertDoWhileStatement=MO;d.assertEmptyStatement=BO;d.assertEmptyTypeAnnotation=O_;d.assertEnumBody=Kk;d.assertEnumBooleanBody=i2;d.assertEnumBooleanMember=o2;d.assertEnumDeclaration=r2;d.assertEnumDefaultedMember=c2;d.assertEnumMember=Wk;d.assertEnumNumberBody=s2;d.assertEnumNumberMember=l2;d.assertEnumStringBody=n2;d.assertEnumStringMember=u2;d.assertEnumSymbolBody=a2;d.assertExistsTypeAnnotation=b_;d.assertExportAllDeclaration=vN;d.assertExportDeclaration=Lk;d.assertExportDefaultDeclaration=CN;d.assertExportDefaultSpecifier=B2;d.assertExportNamedDeclaration=IN;d.assertExportNamespaceSpecifier=JN;d.assertExportSpecifier=wN;d.assertExpression=ik;d.assertExpressionStatement=FO;d.assertExpressionWrapper=dk;d.assertFile=jO;d.assertFlow=jk;d.assertFlowBaseAnnotation=qk;d.assertFlowDeclaration=Uk;d.assertFlowPredicate=Vk;d.assertFlowType=Rk;d.assertFor=mk;d.assertForInStatement=RO;d.assertForOfStatement=ON;d.assertForStatement=qO;d.assertForXStatement=yk;d.assertFunction=Tk;d.assertFunctionDeclaration=UO;d.assertFunctionExpression=VO;d.assertFunctionParent=gk;d.assertFunctionTypeAnnotation=S_;d.assertFunctionTypeParam=x_;d.assertGenericTypeAnnotation=E_;d.assertIdentifier=KO;d.assertIfStatement=WO;d.assertImmutable=vk;d.assertImport=YN;d.assertImportAttribute=k2;d.assertImportDeclaration=NN;d.assertImportDefaultSpecifier=_N;d.assertImportExpression=LN;d.assertImportNamespaceSpecifier=DN;d.assertImportOrExportDeclaration=kk;d.assertImportSpecifier=kN;d.assertIndexedAccessType=p2;d.assertInferredPredicate=P_;d.assertInterfaceDeclaration=v_;d.assertInterfaceExtends=A_;d.assertInterfaceTypeAnnotation=C_;d.assertInterpreterDirective=vO;d.assertIntersectionTypeAnnotation=I_;d.assertJSX=Yk;d.assertJSXAttribute=h2;d.assertJSXClosingElement=d2;d.assertJSXClosingFragment=I2;d.assertJSXElement=m2;d.assertJSXEmptyExpression=y2;d.assertJSXExpressionContainer=T2;d.assertJSXFragment=v2;d.assertJSXIdentifier=b2;d.assertJSXMemberExpression=S2;d.assertJSXNamespacedName=x2;d.assertJSXOpeningElement=E2;d.assertJSXOpeningFragment=C2;d.assertJSXSpreadAttribute=P2;d.assertJSXSpreadChild=g2;d.assertJSXText=A2;d.assertLVal=Ek;d.assertLabeledStatement=YO;d.assertLiteral=Ak;d.assertLogicalExpression=zO;d.assertLoop=fk;d.assertMemberExpression=QO;d.assertMetaProperty=MN;d.assertMethod=Ik;d.assertMiscellaneous=Xk;d.assertMixedTypeAnnotation=w_;d.assertModuleDeclaration=tL;d.assertModuleExpression=q2;d.assertModuleSpecifier=Mk;d.assertNewExpression=ZO;d.assertNoop=w2;d.assertNullLiteral=$O;d.assertNullLiteralTypeAnnotation=a_;d.assertNullableTypeAnnotation=N_;d.assertNumberLiteral=zk;d.assertNumberLiteralTypeAnnotation=__;d.assertNumberTypeAnnotation=D_;d.assertNumericLiteral=JO;d.assertObjectExpression=tN;d.assertObjectMember=wk;d.assertObjectMethod=rN;d.assertObjectPattern=FN;d.assertObjectProperty=iN;d.assertObjectTypeAnnotation=k_;d.assertObjectTypeCallProperty=M_;d.assertObjectTypeIndexer=B_;d.assertObjectTypeInternalSlot=L_;d.assertObjectTypeProperty=F_;d.assertObjectTypeSpreadProperty=j_;d.assertOpaqueType=R_;d.assertOptionalCallExpression=HN;d.assertOptionalIndexedAccessType=f2;d.assertOptionalMemberExpression=$N;d.assertParenthesizedExpression=oN;d.assertPattern=_k;d.assertPatternLike=xk;d.assertPipelineBareFunction=K2;d.assertPipelinePrimaryTopicReference=W2;d.assertPipelineTopicExpression=V2;d.assertPlaceholder=O2;d.assertPrivate=Fk;d.assertPrivateName=e_;d.assertProgram=eN;d.assertProperty=Ok;d.assertPureish=bk;d.assertQualifiedTypeIdentifier=q_;d.assertRecordExpression=F2;d.assertRegExpLiteral=GO;d.assertRegexLiteral=Qk;d.assertRestElement=sN;d.assertRestProperty=Zk;d.assertReturnStatement=nN;d.assertScopable=nk;d.assertSequenceExpression=aN;d.assertSpreadElement=jN;d.assertSpreadProperty=eL;d.assertStandardized=rk;d.assertStatement=lk;d.assertStaticBlock=t_;d.assertStringLiteral=XO;d.assertStringLiteralTypeAnnotation=U_;d.assertStringTypeAnnotation=V_;d.assertSuper=RN;d.assertSwitchCase=lN;d.assertSwitchStatement=uN;d.assertSymbolTypeAnnotation=K_;d.assertTSAnyKeyword=eD;d.assertTSArrayType=SD;d.assertTSAsExpression=RD;d.assertTSBaseType=Gk;d.assertTSBigIntKeyword=rD;d.assertTSBooleanKeyword=tD;d.assertTSCallSignatureDeclaration=H2;d.assertTSConditionalType=ID;d.assertTSConstructSignatureDeclaration=G2;d.assertTSConstructorType=mD;d.assertTSDeclareFunction=X2;d.assertTSDeclareMethod=J2;d.assertTSEntityName=Pk;d.assertTSEnumDeclaration=VD;d.assertTSEnumMember=KD;d.assertTSExportAssignment=GD;d.assertTSExpressionWithTypeArguments=LD;d.assertTSExternalModuleReference=$D;d.assertTSFunctionType=dD;d.assertTSImportEqualsDeclaration=JD;d.assertTSImportType=XD;d.assertTSIndexSignature=Z2;d.assertTSIndexedAccessType=_D;d.assertTSInferType=wD;d.assertTSInstantiationExpression=jD;d.assertTSInterfaceBody=BD;d.assertTSInterfaceDeclaration=MD;d.assertTSIntersectionType=CD;d.assertTSIntrinsicKeyword=iD;d.assertTSLiteralType=kD;d.assertTSMappedType=DD;d.assertTSMethodSignature=Q2;d.assertTSModuleBlock=YD;d.assertTSModuleDeclaration=WD;d.assertTSNamedTupleMember=AD;d.assertTSNamespaceExportDeclaration=zD;d.assertTSNeverKeyword=sD;d.assertTSNonNullExpression=HD;d.assertTSNullKeyword=nD;d.assertTSNumberKeyword=aD;d.assertTSObjectKeyword=oD;d.assertTSOptionalType=ED;d.assertTSParameterProperty=Y2;d.assertTSParenthesizedType=OD;d.assertTSPropertySignature=z2;d.assertTSQualifiedName=$2;d.assertTSRestType=PD;d.assertTSSatisfiesExpression=qD;d.assertTSStringKeyword=lD;d.assertTSSymbolKeyword=uD;d.assertTSThisType=hD;d.assertTSTupleType=xD;d.assertTSType=Hk;d.assertTSTypeAliasDeclaration=FD;d.assertTSTypeAnnotation=QD;d.assertTSTypeAssertion=UD;d.assertTSTypeElement=$k;d.assertTSTypeLiteral=bD;d.assertTSTypeOperator=ND;d.assertTSTypeParameter=tk;d.assertTSTypeParameterDeclaration=ek;d.assertTSTypeParameterInstantiation=ZD;d.assertTSTypePredicate=TD;d.assertTSTypeQuery=gD;d.assertTSTypeReference=yD;d.assertTSUndefinedKeyword=cD;d.assertTSUnionType=vD;d.assertTSUnknownKeyword=pD;d.assertTSVoidKeyword=fD;d.assertTaggedTemplateExpression=qN;d.assertTemplateElement=UN;d.assertTemplateLiteral=VN;d.assertTerminatorless=uk;d.assertThisExpression=cN;d.assertThisTypeAnnotation=W_;d.assertThrowStatement=pN;d.assertTopicReference=U2;d.assertTryStatement=fN;d.assertTupleExpression=j2;d.assertTupleTypeAnnotation=Y_;d.assertTypeAlias=J_;d.assertTypeAnnotation=$_;d.assertTypeCastExpression=H_;d.assertTypeParameter=G_;d.assertTypeParameterDeclaration=z_;d.assertTypeParameterInstantiation=Q_;d.assertTypeScript=Jk;d.assertTypeofTypeAnnotation=X_;d.assertUnaryExpression=hN;d.assertUnaryLike=Nk;d.assertUnionTypeAnnotation=Z_;d.assertUpdateExpression=dN;d.assertUserWhitespacable=Ck;d.assertV8IntrinsicIdentifier=N2;d.assertVariableDeclaration=mN;d.assertVariableDeclarator=yN;d.assertVariance=e2;d.assertVoidTypeAnnotation=t2;d.assertWhile=hk;d.assertWhileStatement=TN;d.assertWithStatement=gN;d.assertYieldExpression=KN;var xO=ci(),ts=Ki();function m(e,t,r){if(!(0,xO.default)(e,t,r))throw new Error(`Expected type "${e}" with option ${JSON.stringify(r)}, but instead got "${t.type}".`)}function EO(e,t){m("ArrayExpression",e,t)}function PO(e,t){m("AssignmentExpression",e,t)}function AO(e,t){m("BinaryExpression",e,t)}function vO(e,t){m("InterpreterDirective",e,t)}function CO(e,t){m("Directive",e,t)}function IO(e,t){m("DirectiveLiteral",e,t)}function wO(e,t){m("BlockStatement",e,t)}function OO(e,t){m("BreakStatement",e,t)}function NO(e,t){m("CallExpression",e,t)}function _O(e,t){m("CatchClause",e,t)}function DO(e,t){m("ConditionalExpression",e,t)}function kO(e,t){m("ContinueStatement",e,t)}function LO(e,t){m("DebuggerStatement",e,t)}function MO(e,t){m("DoWhileStatement",e,t)}function BO(e,t){m("EmptyStatement",e,t)}function FO(e,t){m("ExpressionStatement",e,t)}function jO(e,t){m("File",e,t)}function RO(e,t){m("ForInStatement",e,t)}function qO(e,t){m("ForStatement",e,t)}function UO(e,t){m("FunctionDeclaration",e,t)}function VO(e,t){m("FunctionExpression",e,t)}function KO(e,t){m("Identifier",e,t)}function WO(e,t){m("IfStatement",e,t)}function YO(e,t){m("LabeledStatement",e,t)}function XO(e,t){m("StringLiteral",e,t)}function JO(e,t){m("NumericLiteral",e,t)}function $O(e,t){m("NullLiteral",e,t)}function HO(e,t){m("BooleanLiteral",e,t)}function GO(e,t){m("RegExpLiteral",e,t)}function zO(e,t){m("LogicalExpression",e,t)}function QO(e,t){m("MemberExpression",e,t)}function ZO(e,t){m("NewExpression",e,t)}function eN(e,t){m("Program",e,t)}function tN(e,t){m("ObjectExpression",e,t)}function rN(e,t){m("ObjectMethod",e,t)}function iN(e,t){m("ObjectProperty",e,t)}function sN(e,t){m("RestElement",e,t)}function nN(e,t){m("ReturnStatement",e,t)}function aN(e,t){m("SequenceExpression",e,t)}function oN(e,t){m("ParenthesizedExpression",e,t)}function lN(e,t){m("SwitchCase",e,t)}function uN(e,t){m("SwitchStatement",e,t)}function cN(e,t){m("ThisExpression",e,t)}function pN(e,t){m("ThrowStatement",e,t)}function fN(e,t){m("TryStatement",e,t)}function hN(e,t){m("UnaryExpression",e,t)}function dN(e,t){m("UpdateExpression",e,t)}function mN(e,t){m("VariableDeclaration",e,t)}function yN(e,t){m("VariableDeclarator",e,t)}function TN(e,t){m("WhileStatement",e,t)}function gN(e,t){m("WithStatement",e,t)}function bN(e,t){m("AssignmentPattern",e,t)}function SN(e,t){m("ArrayPattern",e,t)}function xN(e,t){m("ArrowFunctionExpression",e,t)}function EN(e,t){m("ClassBody",e,t)}function PN(e,t){m("ClassExpression",e,t)}function AN(e,t){m("ClassDeclaration",e,t)}function vN(e,t){m("ExportAllDeclaration",e,t)}function CN(e,t){m("ExportDefaultDeclaration",e,t)}function IN(e,t){m("ExportNamedDeclaration",e,t)}function wN(e,t){m("ExportSpecifier",e,t)}function ON(e,t){m("ForOfStatement",e,t)}function NN(e,t){m("ImportDeclaration",e,t)}function _N(e,t){m("ImportDefaultSpecifier",e,t)}function DN(e,t){m("ImportNamespaceSpecifier",e,t)}function kN(e,t){m("ImportSpecifier",e,t)}function LN(e,t){m("ImportExpression",e,t)}function MN(e,t){m("MetaProperty",e,t)}function BN(e,t){m("ClassMethod",e,t)}function FN(e,t){m("ObjectPattern",e,t)}function jN(e,t){m("SpreadElement",e,t)}function RN(e,t){m("Super",e,t)}function qN(e,t){m("TaggedTemplateExpression",e,t)}function UN(e,t){m("TemplateElement",e,t)}function VN(e,t){m("TemplateLiteral",e,t)}function KN(e,t){m("YieldExpression",e,t)}function WN(e,t){m("AwaitExpression",e,t)}function YN(e,t){m("Import",e,t)}function XN(e,t){m("BigIntLiteral",e,t)}function JN(e,t){m("ExportNamespaceSpecifier",e,t)}function $N(e,t){m("OptionalMemberExpression",e,t)}function HN(e,t){m("OptionalCallExpression",e,t)}function GN(e,t){m("ClassProperty",e,t)}function zN(e,t){m("ClassAccessorProperty",e,t)}function QN(e,t){m("ClassPrivateProperty",e,t)}function ZN(e,t){m("ClassPrivateMethod",e,t)}function e_(e,t){m("PrivateName",e,t)}function t_(e,t){m("StaticBlock",e,t)}function r_(e,t){m("AnyTypeAnnotation",e,t)}function i_(e,t){m("ArrayTypeAnnotation",e,t)}function s_(e,t){m("BooleanTypeAnnotation",e,t)}function n_(e,t){m("BooleanLiteralTypeAnnotation",e,t)}function a_(e,t){m("NullLiteralTypeAnnotation",e,t)}function o_(e,t){m("ClassImplements",e,t)}function l_(e,t){m("DeclareClass",e,t)}function u_(e,t){m("DeclareFunction",e,t)}function c_(e,t){m("DeclareInterface",e,t)}function p_(e,t){m("DeclareModule",e,t)}function f_(e,t){m("DeclareModuleExports",e,t)}function h_(e,t){m("DeclareTypeAlias",e,t)}function d_(e,t){m("DeclareOpaqueType",e,t)}function m_(e,t){m("DeclareVariable",e,t)}function y_(e,t){m("DeclareExportDeclaration",e,t)}function T_(e,t){m("DeclareExportAllDeclaration",e,t)}function g_(e,t){m("DeclaredPredicate",e,t)}function b_(e,t){m("ExistsTypeAnnotation",e,t)}function S_(e,t){m("FunctionTypeAnnotation",e,t)}function x_(e,t){m("FunctionTypeParam",e,t)}function E_(e,t){m("GenericTypeAnnotation",e,t)}function P_(e,t){m("InferredPredicate",e,t)}function A_(e,t){m("InterfaceExtends",e,t)}function v_(e,t){m("InterfaceDeclaration",e,t)}function C_(e,t){m("InterfaceTypeAnnotation",e,t)}function I_(e,t){m("IntersectionTypeAnnotation",e,t)}function w_(e,t){m("MixedTypeAnnotation",e,t)}function O_(e,t){m("EmptyTypeAnnotation",e,t)}function N_(e,t){m("NullableTypeAnnotation",e,t)}function __(e,t){m("NumberLiteralTypeAnnotation",e,t)}function D_(e,t){m("NumberTypeAnnotation",e,t)}function k_(e,t){m("ObjectTypeAnnotation",e,t)}function L_(e,t){m("ObjectTypeInternalSlot",e,t)}function M_(e,t){m("ObjectTypeCallProperty",e,t)}function B_(e,t){m("ObjectTypeIndexer",e,t)}function F_(e,t){m("ObjectTypeProperty",e,t)}function j_(e,t){m("ObjectTypeSpreadProperty",e,t)}function R_(e,t){m("OpaqueType",e,t)}function q_(e,t){m("QualifiedTypeIdentifier",e,t)}function U_(e,t){m("StringLiteralTypeAnnotation",e,t)}function V_(e,t){m("StringTypeAnnotation",e,t)}function K_(e,t){m("SymbolTypeAnnotation",e,t)}function W_(e,t){m("ThisTypeAnnotation",e,t)}function Y_(e,t){m("TupleTypeAnnotation",e,t)}function X_(e,t){m("TypeofTypeAnnotation",e,t)}function J_(e,t){m("TypeAlias",e,t)}function $_(e,t){m("TypeAnnotation",e,t)}function H_(e,t){m("TypeCastExpression",e,t)}function G_(e,t){m("TypeParameter",e,t)}function z_(e,t){m("TypeParameterDeclaration",e,t)}function Q_(e,t){m("TypeParameterInstantiation",e,t)}function Z_(e,t){m("UnionTypeAnnotation",e,t)}function e2(e,t){m("Variance",e,t)}function t2(e,t){m("VoidTypeAnnotation",e,t)}function r2(e,t){m("EnumDeclaration",e,t)}function i2(e,t){m("EnumBooleanBody",e,t)}function s2(e,t){m("EnumNumberBody",e,t)}function n2(e,t){m("EnumStringBody",e,t)}function a2(e,t){m("EnumSymbolBody",e,t)}function o2(e,t){m("EnumBooleanMember",e,t)}function l2(e,t){m("EnumNumberMember",e,t)}function u2(e,t){m("EnumStringMember",e,t)}function c2(e,t){m("EnumDefaultedMember",e,t)}function p2(e,t){m("IndexedAccessType",e,t)}function f2(e,t){m("OptionalIndexedAccessType",e,t)}function h2(e,t){m("JSXAttribute",e,t)}function d2(e,t){m("JSXClosingElement",e,t)}function m2(e,t){m("JSXElement",e,t)}function y2(e,t){m("JSXEmptyExpression",e,t)}function T2(e,t){m("JSXExpressionContainer",e,t)}function g2(e,t){m("JSXSpreadChild",e,t)}function b2(e,t){m("JSXIdentifier",e,t)}function S2(e,t){m("JSXMemberExpression",e,t)}function x2(e,t){m("JSXNamespacedName",e,t)}function E2(e,t){m("JSXOpeningElement",e,t)}function P2(e,t){m("JSXSpreadAttribute",e,t)}function A2(e,t){m("JSXText",e,t)}function v2(e,t){m("JSXFragment",e,t)}function C2(e,t){m("JSXOpeningFragment",e,t)}function I2(e,t){m("JSXClosingFragment",e,t)}function w2(e,t){m("Noop",e,t)}function O2(e,t){m("Placeholder",e,t)}function N2(e,t){m("V8IntrinsicIdentifier",e,t)}function _2(e,t){m("ArgumentPlaceholder",e,t)}function D2(e,t){m("BindExpression",e,t)}function k2(e,t){m("ImportAttribute",e,t)}function L2(e,t){m("Decorator",e,t)}function M2(e,t){m("DoExpression",e,t)}function B2(e,t){m("ExportDefaultSpecifier",e,t)}function F2(e,t){m("RecordExpression",e,t)}function j2(e,t){m("TupleExpression",e,t)}function R2(e,t){m("DecimalLiteral",e,t)}function q2(e,t){m("ModuleExpression",e,t)}function U2(e,t){m("TopicReference",e,t)}function V2(e,t){m("PipelineTopicExpression",e,t)}function K2(e,t){m("PipelineBareFunction",e,t)}function W2(e,t){m("PipelinePrimaryTopicReference",e,t)}function Y2(e,t){m("TSParameterProperty",e,t)}function X2(e,t){m("TSDeclareFunction",e,t)}function J2(e,t){m("TSDeclareMethod",e,t)}function $2(e,t){m("TSQualifiedName",e,t)}function H2(e,t){m("TSCallSignatureDeclaration",e,t)}function G2(e,t){m("TSConstructSignatureDeclaration",e,t)}function z2(e,t){m("TSPropertySignature",e,t)}function Q2(e,t){m("TSMethodSignature",e,t)}function Z2(e,t){m("TSIndexSignature",e,t)}function eD(e,t){m("TSAnyKeyword",e,t)}function tD(e,t){m("TSBooleanKeyword",e,t)}function rD(e,t){m("TSBigIntKeyword",e,t)}function iD(e,t){m("TSIntrinsicKeyword",e,t)}function sD(e,t){m("TSNeverKeyword",e,t)}function nD(e,t){m("TSNullKeyword",e,t)}function aD(e,t){m("TSNumberKeyword",e,t)}function oD(e,t){m("TSObjectKeyword",e,t)}function lD(e,t){m("TSStringKeyword",e,t)}function uD(e,t){m("TSSymbolKeyword",e,t)}function cD(e,t){m("TSUndefinedKeyword",e,t)}function pD(e,t){m("TSUnknownKeyword",e,t)}function fD(e,t){m("TSVoidKeyword",e,t)}function hD(e,t){m("TSThisType",e,t)}function dD(e,t){m("TSFunctionType",e,t)}function mD(e,t){m("TSConstructorType",e,t)}function yD(e,t){m("TSTypeReference",e,t)}function TD(e,t){m("TSTypePredicate",e,t)}function gD(e,t){m("TSTypeQuery",e,t)}function bD(e,t){m("TSTypeLiteral",e,t)}function SD(e,t){m("TSArrayType",e,t)}function xD(e,t){m("TSTupleType",e,t)}function ED(e,t){m("TSOptionalType",e,t)}function PD(e,t){m("TSRestType",e,t)}function AD(e,t){m("TSNamedTupleMember",e,t)}function vD(e,t){m("TSUnionType",e,t)}function CD(e,t){m("TSIntersectionType",e,t)}function ID(e,t){m("TSConditionalType",e,t)}function wD(e,t){m("TSInferType",e,t)}function OD(e,t){m("TSParenthesizedType",e,t)}function ND(e,t){m("TSTypeOperator",e,t)}function _D(e,t){m("TSIndexedAccessType",e,t)}function DD(e,t){m("TSMappedType",e,t)}function kD(e,t){m("TSLiteralType",e,t)}function LD(e,t){m("TSExpressionWithTypeArguments",e,t)}function MD(e,t){m("TSInterfaceDeclaration",e,t)}function BD(e,t){m("TSInterfaceBody",e,t)}function FD(e,t){m("TSTypeAliasDeclaration",e,t)}function jD(e,t){m("TSInstantiationExpression",e,t)}function RD(e,t){m("TSAsExpression",e,t)}function qD(e,t){m("TSSatisfiesExpression",e,t)}function UD(e,t){m("TSTypeAssertion",e,t)}function VD(e,t){m("TSEnumDeclaration",e,t)}function KD(e,t){m("TSEnumMember",e,t)}function WD(e,t){m("TSModuleDeclaration",e,t)}function YD(e,t){m("TSModuleBlock",e,t)}function XD(e,t){m("TSImportType",e,t)}function JD(e,t){m("TSImportEqualsDeclaration",e,t)}function $D(e,t){m("TSExternalModuleReference",e,t)}function HD(e,t){m("TSNonNullExpression",e,t)}function GD(e,t){m("TSExportAssignment",e,t)}function zD(e,t){m("TSNamespaceExportDeclaration",e,t)}function QD(e,t){m("TSTypeAnnotation",e,t)}function ZD(e,t){m("TSTypeParameterInstantiation",e,t)}function ek(e,t){m("TSTypeParameterDeclaration",e,t)}function tk(e,t){m("TSTypeParameter",e,t)}function rk(e,t){m("Standardized",e,t)}function ik(e,t){m("Expression",e,t)}function sk(e,t){m("Binary",e,t)}function nk(e,t){m("Scopable",e,t)}function ak(e,t){m("BlockParent",e,t)}function ok(e,t){m("Block",e,t)}function lk(e,t){m("Statement",e,t)}function uk(e,t){m("Terminatorless",e,t)}function ck(e,t){m("CompletionStatement",e,t)}function pk(e,t){m("Conditional",e,t)}function fk(e,t){m("Loop",e,t)}function hk(e,t){m("While",e,t)}function dk(e,t){m("ExpressionWrapper",e,t)}function mk(e,t){m("For",e,t)}function yk(e,t){m("ForXStatement",e,t)}function Tk(e,t){m("Function",e,t)}function gk(e,t){m("FunctionParent",e,t)}function bk(e,t){m("Pureish",e,t)}function Sk(e,t){m("Declaration",e,t)}function xk(e,t){m("PatternLike",e,t)}function Ek(e,t){m("LVal",e,t)}function Pk(e,t){m("TSEntityName",e,t)}function Ak(e,t){m("Literal",e,t)}function vk(e,t){m("Immutable",e,t)}function Ck(e,t){m("UserWhitespacable",e,t)}function Ik(e,t){m("Method",e,t)}function wk(e,t){m("ObjectMember",e,t)}function Ok(e,t){m("Property",e,t)}function Nk(e,t){m("UnaryLike",e,t)}function _k(e,t){m("Pattern",e,t)}function Dk(e,t){m("Class",e,t)}function kk(e,t){m("ImportOrExportDeclaration",e,t)}function Lk(e,t){m("ExportDeclaration",e,t)}function Mk(e,t){m("ModuleSpecifier",e,t)}function Bk(e,t){m("Accessor",e,t)}function Fk(e,t){m("Private",e,t)}function jk(e,t){m("Flow",e,t)}function Rk(e,t){m("FlowType",e,t)}function qk(e,t){m("FlowBaseAnnotation",e,t)}function Uk(e,t){m("FlowDeclaration",e,t)}function Vk(e,t){m("FlowPredicate",e,t)}function Kk(e,t){m("EnumBody",e,t)}function Wk(e,t){m("EnumMember",e,t)}function Yk(e,t){m("JSX",e,t)}function Xk(e,t){m("Miscellaneous",e,t)}function Jk(e,t){m("TypeScript",e,t)}function $k(e,t){m("TSTypeElement",e,t)}function Hk(e,t){m("TSType",e,t)}function Gk(e,t){m("TSBaseType",e,t)}function zk(e,t){(0,ts.default)("assertNumberLiteral","assertNumericLiteral"),m("NumberLiteral",e,t)}function Qk(e,t){(0,ts.default)("assertRegexLiteral","assertRegExpLiteral"),m("RegexLiteral",e,t)}function Zk(e,t){(0,ts.default)("assertRestProperty","assertRestElement"),m("RestProperty",e,t)}function eL(e,t){(0,ts.default)("assertSpreadProperty","assertSpreadElement"),m("SpreadProperty",e,t)}function tL(e,t){(0,ts.default)("assertModuleDeclaration","assertImportOrExportDeclaration"),m("ModuleDeclaration",e,t)}});var Bf=A(Zs=>{"use strict";Object.defineProperty(Zs,"__esModule",{value:!0});Zs.default=void 0;var Rt=ht(),SJ=Zs.default=rL;function rL(e){switch(e){case"string":return(0,Rt.stringTypeAnnotation)();case"number":return(0,Rt.numberTypeAnnotation)();case"undefined":return(0,Rt.voidTypeAnnotation)();case"boolean":return(0,Rt.booleanTypeAnnotation)();case"function":return(0,Rt.genericTypeAnnotation)((0,Rt.identifier)("Function"));case"object":return(0,Rt.genericTypeAnnotation)((0,Rt.identifier)("Object"));case"symbol":return(0,Rt.genericTypeAnnotation)((0,Rt.identifier)("Symbol"));case"bigint":return(0,Rt.anyTypeAnnotation)()}throw new Error("Invalid typeof value: "+e)}});var Bo=A(Mo=>{"use strict";Object.defineProperty(Mo,"__esModule",{value:!0});Mo.default=jf;var rs=We();function Ff(e){return(0,rs.isIdentifier)(e)?e.name:`${e.id.name}.${Ff(e.qualification)}`}function jf(e){let t=Array.from(e),r=new Map,i=new Map,s=new Set,n=[];for(let a=0;a<t.length;a++){let o=t[a];if(o&&!n.includes(o)){if((0,rs.isAnyTypeAnnotation)(o))return[o];if((0,rs.isFlowBaseAnnotation)(o)){i.set(o.type,o);continue}if((0,rs.isUnionTypeAnnotation)(o)){s.has(o.types)||(t.push(...o.types),s.add(o.types));continue}if((0,rs.isGenericTypeAnnotation)(o)){let l=Ff(o.id);if(r.has(l)){let u=r.get(l);u.typeParameters?o.typeParameters&&(u.typeParameters.params.push(...o.typeParameters.params),u.typeParameters.params=jf(u.typeParameters.params)):u=o.typeParameters}else r.set(l,o);continue}n.push(o)}}for(let[,a]of i)n.push(a);for(let[,a]of r)n.push(a);return n}});var Rf=A(Fo=>{"use strict";Object.defineProperty(Fo,"__esModule",{value:!0});Fo.default=nL;var iL=ht(),sL=Bo();function nL(e){let t=(0,sL.default)(e);return t.length===1?t[0]:(0,iL.unionTypeAnnotation)(t)}});var Vf=A(jo=>{"use strict";Object.defineProperty(jo,"__esModule",{value:!0});jo.default=Uf;var is=We();function qf(e){return(0,is.isIdentifier)(e)?e.name:`${e.right.name}.${qf(e.left)}`}function Uf(e){let t=Array.from(e),r=new Map,i=new Map,s=new Set,n=[];for(let a=0;a<t.length;a++){let o=t[a];if(o&&!n.includes(o)){if((0,is.isTSAnyKeyword)(o))return[o];if((0,is.isTSBaseType)(o)){i.set(o.type,o);continue}if((0,is.isTSUnionType)(o)){s.has(o.types)||(t.push(...o.types),s.add(o.types));continue}if((0,is.isTSTypeReference)(o)&&o.typeParameters){let l=qf(o.typeName);if(r.has(l)){let u=r.get(l);u.typeParameters?o.typeParameters&&(u.typeParameters.params.push(...o.typeParameters.params),u.typeParameters.params=Uf(u.typeParameters.params)):u=o.typeParameters}else r.set(l,o);continue}n.push(o)}}for(let[,a]of i)n.push(a);for(let[,a]of r)n.push(a);return n}});var Kf=A(Ro=>{"use strict";Object.defineProperty(Ro,"__esModule",{value:!0});Ro.default=uL;var aL=ht(),oL=Vf(),lL=We();function uL(e){let t=e.map(i=>(0,lL.isTSTypeAnnotation)(i)?i.typeAnnotation:i),r=(0,oL.default)(t);return r.length===1?r[0]:(0,aL.tsUnionType)(r)}});var Wf=A(g=>{"use strict";Object.defineProperty(g,"__esModule",{value:!0});Object.defineProperty(g,"AnyTypeAnnotation",{enumerable:!0,get:function(){return b.anyTypeAnnotation}});Object.defineProperty(g,"ArgumentPlaceholder",{enumerable:!0,get:function(){return b.argumentPlaceholder}});Object.defineProperty(g,"ArrayExpression",{enumerable:!0,get:function(){return b.arrayExpression}});Object.defineProperty(g,"ArrayPattern",{enumerable:!0,get:function(){return b.arrayPattern}});Object.defineProperty(g,"ArrayTypeAnnotation",{enumerable:!0,get:function(){return b.arrayTypeAnnotation}});Object.defineProperty(g,"ArrowFunctionExpression",{enumerable:!0,get:function(){return b.arrowFunctionExpression}});Object.defineProperty(g,"AssignmentExpression",{enumerable:!0,get:function(){return b.assignmentExpression}});Object.defineProperty(g,"AssignmentPattern",{enumerable:!0,get:function(){return b.assignmentPattern}});Object.defineProperty(g,"AwaitExpression",{enumerable:!0,get:function(){return b.awaitExpression}});Object.defineProperty(g,"BigIntLiteral",{enumerable:!0,get:function(){return b.bigIntLiteral}});Object.defineProperty(g,"BinaryExpression",{enumerable:!0,get:function(){return b.binaryExpression}});Object.defineProperty(g,"BindExpression",{enumerable:!0,get:function(){return b.bindExpression}});Object.defineProperty(g,"BlockStatement",{enumerable:!0,get:function(){return b.blockStatement}});Object.defineProperty(g,"BooleanLiteral",{enumerable:!0,get:function(){return b.booleanLiteral}});Object.defineProperty(g,"BooleanLiteralTypeAnnotation",{enumerable:!0,get:function(){return b.booleanLiteralTypeAnnotation}});Object.defineProperty(g,"BooleanTypeAnnotation",{enumerable:!0,get:function(){return b.booleanTypeAnnotation}});Object.defineProperty(g,"BreakStatement",{enumerable:!0,get:function(){return b.breakStatement}});Object.defineProperty(g,"CallExpression",{enumerable:!0,get:function(){return b.callExpression}});Object.defineProperty(g,"CatchClause",{enumerable:!0,get:function(){return b.catchClause}});Object.defineProperty(g,"ClassAccessorProperty",{enumerable:!0,get:function(){return b.classAccessorProperty}});Object.defineProperty(g,"ClassBody",{enumerable:!0,get:function(){return b.classBody}});Object.defineProperty(g,"ClassDeclaration",{enumerable:!0,get:function(){return b.classDeclaration}});Object.defineProperty(g,"ClassExpression",{enumerable:!0,get:function(){return b.classExpression}});Object.defineProperty(g,"ClassImplements",{enumerable:!0,get:function(){return b.classImplements}});Object.defineProperty(g,"ClassMethod",{enumerable:!0,get:function(){return b.classMethod}});Object.defineProperty(g,"ClassPrivateMethod",{enumerable:!0,get:function(){return b.classPrivateMethod}});Object.defineProperty(g,"ClassPrivateProperty",{enumerable:!0,get:function(){return b.classPrivateProperty}});Object.defineProperty(g,"ClassProperty",{enumerable:!0,get:function(){return b.classProperty}});Object.defineProperty(g,"ConditionalExpression",{enumerable:!0,get:function(){return b.conditionalExpression}});Object.defineProperty(g,"ContinueStatement",{enumerable:!0,get:function(){return b.continueStatement}});Object.defineProperty(g,"DebuggerStatement",{enumerable:!0,get:function(){return b.debuggerStatement}});Object.defineProperty(g,"DecimalLiteral",{enumerable:!0,get:function(){return b.decimalLiteral}});Object.defineProperty(g,"DeclareClass",{enumerable:!0,get:function(){return b.declareClass}});Object.defineProperty(g,"DeclareExportAllDeclaration",{enumerable:!0,get:function(){return b.declareExportAllDeclaration}});Object.defineProperty(g,"DeclareExportDeclaration",{enumerable:!0,get:function(){return b.declareExportDeclaration}});Object.defineProperty(g,"DeclareFunction",{enumerable:!0,get:function(){return b.declareFunction}});Object.defineProperty(g,"DeclareInterface",{enumerable:!0,get:function(){return b.declareInterface}});Object.defineProperty(g,"DeclareModule",{enumerable:!0,get:function(){return b.declareModule}});Object.defineProperty(g,"DeclareModuleExports",{enumerable:!0,get:function(){return b.declareModuleExports}});Object.defineProperty(g,"DeclareOpaqueType",{enumerable:!0,get:function(){return b.declareOpaqueType}});Object.defineProperty(g,"DeclareTypeAlias",{enumerable:!0,get:function(){return b.declareTypeAlias}});Object.defineProperty(g,"DeclareVariable",{enumerable:!0,get:function(){return b.declareVariable}});Object.defineProperty(g,"DeclaredPredicate",{enumerable:!0,get:function(){return b.declaredPredicate}});Object.defineProperty(g,"Decorator",{enumerable:!0,get:function(){return b.decorator}});Object.defineProperty(g,"Directive",{enumerable:!0,get:function(){return b.directive}});Object.defineProperty(g,"DirectiveLiteral",{enumerable:!0,get:function(){return b.directiveLiteral}});Object.defineProperty(g,"DoExpression",{enumerable:!0,get:function(){return b.doExpression}});Object.defineProperty(g,"DoWhileStatement",{enumerable:!0,get:function(){return b.doWhileStatement}});Object.defineProperty(g,"EmptyStatement",{enumerable:!0,get:function(){return b.emptyStatement}});Object.defineProperty(g,"EmptyTypeAnnotation",{enumerable:!0,get:function(){return b.emptyTypeAnnotation}});Object.defineProperty(g,"EnumBooleanBody",{enumerable:!0,get:function(){return b.enumBooleanBody}});Object.defineProperty(g,"EnumBooleanMember",{enumerable:!0,get:function(){return b.enumBooleanMember}});Object.defineProperty(g,"EnumDeclaration",{enumerable:!0,get:function(){return b.enumDeclaration}});Object.defineProperty(g,"EnumDefaultedMember",{enumerable:!0,get:function(){return b.enumDefaultedMember}});Object.defineProperty(g,"EnumNumberBody",{enumerable:!0,get:function(){return b.enumNumberBody}});Object.defineProperty(g,"EnumNumberMember",{enumerable:!0,get:function(){return b.enumNumberMember}});Object.defineProperty(g,"EnumStringBody",{enumerable:!0,get:function(){return b.enumStringBody}});Object.defineProperty(g,"EnumStringMember",{enumerable:!0,get:function(){return b.enumStringMember}});Object.defineProperty(g,"EnumSymbolBody",{enumerable:!0,get:function(){return b.enumSymbolBody}});Object.defineProperty(g,"ExistsTypeAnnotation",{enumerable:!0,get:function(){return b.existsTypeAnnotation}});Object.defineProperty(g,"ExportAllDeclaration",{enumerable:!0,get:function(){return b.exportAllDeclaration}});Object.defineProperty(g,"ExportDefaultDeclaration",{enumerable:!0,get:function(){return b.exportDefaultDeclaration}});Object.defineProperty(g,"ExportDefaultSpecifier",{enumerable:!0,get:function(){return b.exportDefaultSpecifier}});Object.defineProperty(g,"ExportNamedDeclaration",{enumerable:!0,get:function(){return b.exportNamedDeclaration}});Object.defineProperty(g,"ExportNamespaceSpecifier",{enumerable:!0,get:function(){return b.exportNamespaceSpecifier}});Object.defineProperty(g,"ExportSpecifier",{enumerable:!0,get:function(){return b.exportSpecifier}});Object.defineProperty(g,"ExpressionStatement",{enumerable:!0,get:function(){return b.expressionStatement}});Object.defineProperty(g,"File",{enumerable:!0,get:function(){return b.file}});Object.defineProperty(g,"ForInStatement",{enumerable:!0,get:function(){return b.forInStatement}});Object.defineProperty(g,"ForOfStatement",{enumerable:!0,get:function(){return b.forOfStatement}});Object.defineProperty(g,"ForStatement",{enumerable:!0,get:function(){return b.forStatement}});Object.defineProperty(g,"FunctionDeclaration",{enumerable:!0,get:function(){return b.functionDeclaration}});Object.defineProperty(g,"FunctionExpression",{enumerable:!0,get:function(){return b.functionExpression}});Object.defineProperty(g,"FunctionTypeAnnotation",{enumerable:!0,get:function(){return b.functionTypeAnnotation}});Object.defineProperty(g,"FunctionTypeParam",{enumerable:!0,get:function(){return b.functionTypeParam}});Object.defineProperty(g,"GenericTypeAnnotation",{enumerable:!0,get:function(){return b.genericTypeAnnotation}});Object.defineProperty(g,"Identifier",{enumerable:!0,get:function(){return b.identifier}});Object.defineProperty(g,"IfStatement",{enumerable:!0,get:function(){return b.ifStatement}});Object.defineProperty(g,"Import",{enumerable:!0,get:function(){return b.import}});Object.defineProperty(g,"ImportAttribute",{enumerable:!0,get:function(){return b.importAttribute}});Object.defineProperty(g,"ImportDeclaration",{enumerable:!0,get:function(){return b.importDeclaration}});Object.defineProperty(g,"ImportDefaultSpecifier",{enumerable:!0,get:function(){return b.importDefaultSpecifier}});Object.defineProperty(g,"ImportExpression",{enumerable:!0,get:function(){return b.importExpression}});Object.defineProperty(g,"ImportNamespaceSpecifier",{enumerable:!0,get:function(){return b.importNamespaceSpecifier}});Object.defineProperty(g,"ImportSpecifier",{enumerable:!0,get:function(){return b.importSpecifier}});Object.defineProperty(g,"IndexedAccessType",{enumerable:!0,get:function(){return b.indexedAccessType}});Object.defineProperty(g,"InferredPredicate",{enumerable:!0,get:function(){return b.inferredPredicate}});Object.defineProperty(g,"InterfaceDeclaration",{enumerable:!0,get:function(){return b.interfaceDeclaration}});Object.defineProperty(g,"InterfaceExtends",{enumerable:!0,get:function(){return b.interfaceExtends}});Object.defineProperty(g,"InterfaceTypeAnnotation",{enumerable:!0,get:function(){return b.interfaceTypeAnnotation}});Object.defineProperty(g,"InterpreterDirective",{enumerable:!0,get:function(){return b.interpreterDirective}});Object.defineProperty(g,"IntersectionTypeAnnotation",{enumerable:!0,get:function(){return b.intersectionTypeAnnotation}});Object.defineProperty(g,"JSXAttribute",{enumerable:!0,get:function(){return b.jsxAttribute}});Object.defineProperty(g,"JSXClosingElement",{enumerable:!0,get:function(){return b.jsxClosingElement}});Object.defineProperty(g,"JSXClosingFragment",{enumerable:!0,get:function(){return b.jsxClosingFragment}});Object.defineProperty(g,"JSXElement",{enumerable:!0,get:function(){return b.jsxElement}});Object.defineProperty(g,"JSXEmptyExpression",{enumerable:!0,get:function(){return b.jsxEmptyExpression}});Object.defineProperty(g,"JSXExpressionContainer",{enumerable:!0,get:function(){return b.jsxExpressionContainer}});Object.defineProperty(g,"JSXFragment",{enumerable:!0,get:function(){return b.jsxFragment}});Object.defineProperty(g,"JSXIdentifier",{enumerable:!0,get:function(){return b.jsxIdentifier}});Object.defineProperty(g,"JSXMemberExpression",{enumerable:!0,get:function(){return b.jsxMemberExpression}});Object.defineProperty(g,"JSXNamespacedName",{enumerable:!0,get:function(){return b.jsxNamespacedName}});Object.defineProperty(g,"JSXOpeningElement",{enumerable:!0,get:function(){return b.jsxOpeningElement}});Object.defineProperty(g,"JSXOpeningFragment",{enumerable:!0,get:function(){return b.jsxOpeningFragment}});Object.defineProperty(g,"JSXSpreadAttribute",{enumerable:!0,get:function(){return b.jsxSpreadAttribute}});Object.defineProperty(g,"JSXSpreadChild",{enumerable:!0,get:function(){return b.jsxSpreadChild}});Object.defineProperty(g,"JSXText",{enumerable:!0,get:function(){return b.jsxText}});Object.defineProperty(g,"LabeledStatement",{enumerable:!0,get:function(){return b.labeledStatement}});Object.defineProperty(g,"LogicalExpression",{enumerable:!0,get:function(){return b.logicalExpression}});Object.defineProperty(g,"MemberExpression",{enumerable:!0,get:function(){return b.memberExpression}});Object.defineProperty(g,"MetaProperty",{enumerable:!0,get:function(){return b.metaProperty}});Object.defineProperty(g,"MixedTypeAnnotation",{enumerable:!0,get:function(){return b.mixedTypeAnnotation}});Object.defineProperty(g,"ModuleExpression",{enumerable:!0,get:function(){return b.moduleExpression}});Object.defineProperty(g,"NewExpression",{enumerable:!0,get:function(){return b.newExpression}});Object.defineProperty(g,"Noop",{enumerable:!0,get:function(){return b.noop}});Object.defineProperty(g,"NullLiteral",{enumerable:!0,get:function(){return b.nullLiteral}});Object.defineProperty(g,"NullLiteralTypeAnnotation",{enumerable:!0,get:function(){return b.nullLiteralTypeAnnotation}});Object.defineProperty(g,"NullableTypeAnnotation",{enumerable:!0,get:function(){return b.nullableTypeAnnotation}});Object.defineProperty(g,"NumberLiteral",{enumerable:!0,get:function(){return b.numberLiteral}});Object.defineProperty(g,"NumberLiteralTypeAnnotation",{enumerable:!0,get:function(){return b.numberLiteralTypeAnnotation}});Object.defineProperty(g,"NumberTypeAnnotation",{enumerable:!0,get:function(){return b.numberTypeAnnotation}});Object.defineProperty(g,"NumericLiteral",{enumerable:!0,get:function(){return b.numericLiteral}});Object.defineProperty(g,"ObjectExpression",{enumerable:!0,get:function(){return b.objectExpression}});Object.defineProperty(g,"ObjectMethod",{enumerable:!0,get:function(){return b.objectMethod}});Object.defineProperty(g,"ObjectPattern",{enumerable:!0,get:function(){return b.objectPattern}});Object.defineProperty(g,"ObjectProperty",{enumerable:!0,get:function(){return b.objectProperty}});Object.defineProperty(g,"ObjectTypeAnnotation",{enumerable:!0,get:function(){return b.objectTypeAnnotation}});Object.defineProperty(g,"ObjectTypeCallProperty",{enumerable:!0,get:function(){return b.objectTypeCallProperty}});Object.defineProperty(g,"ObjectTypeIndexer",{enumerable:!0,get:function(){return b.objectTypeIndexer}});Object.defineProperty(g,"ObjectTypeInternalSlot",{enumerable:!0,get:function(){return b.objectTypeInternalSlot}});Object.defineProperty(g,"ObjectTypeProperty",{enumerable:!0,get:function(){return b.objectTypeProperty}});Object.defineProperty(g,"ObjectTypeSpreadProperty",{enumerable:!0,get:function(){return b.objectTypeSpreadProperty}});Object.defineProperty(g,"OpaqueType",{enumerable:!0,get:function(){return b.opaqueType}});Object.defineProperty(g,"OptionalCallExpression",{enumerable:!0,get:function(){return b.optionalCallExpression}});Object.defineProperty(g,"OptionalIndexedAccessType",{enumerable:!0,get:function(){return b.optionalIndexedAccessType}});Object.defineProperty(g,"OptionalMemberExpression",{enumerable:!0,get:function(){return b.optionalMemberExpression}});Object.defineProperty(g,"ParenthesizedExpression",{enumerable:!0,get:function(){return b.parenthesizedExpression}});Object.defineProperty(g,"PipelineBareFunction",{enumerable:!0,get:function(){return b.pipelineBareFunction}});Object.defineProperty(g,"PipelinePrimaryTopicReference",{enumerable:!0,get:function(){return b.pipelinePrimaryTopicReference}});Object.defineProperty(g,"PipelineTopicExpression",{enumerable:!0,get:function(){return b.pipelineTopicExpression}});Object.defineProperty(g,"Placeholder",{enumerable:!0,get:function(){return b.placeholder}});Object.defineProperty(g,"PrivateName",{enumerable:!0,get:function(){return b.privateName}});Object.defineProperty(g,"Program",{enumerable:!0,get:function(){return b.program}});Object.defineProperty(g,"QualifiedTypeIdentifier",{enumerable:!0,get:function(){return b.qualifiedTypeIdentifier}});Object.defineProperty(g,"RecordExpression",{enumerable:!0,get:function(){return b.recordExpression}});Object.defineProperty(g,"RegExpLiteral",{enumerable:!0,get:function(){return b.regExpLiteral}});Object.defineProperty(g,"RegexLiteral",{enumerable:!0,get:function(){return b.regexLiteral}});Object.defineProperty(g,"RestElement",{enumerable:!0,get:function(){return b.restElement}});Object.defineProperty(g,"RestProperty",{enumerable:!0,get:function(){return b.restProperty}});Object.defineProperty(g,"ReturnStatement",{enumerable:!0,get:function(){return b.returnStatement}});Object.defineProperty(g,"SequenceExpression",{enumerable:!0,get:function(){return b.sequenceExpression}});Object.defineProperty(g,"SpreadElement",{enumerable:!0,get:function(){return b.spreadElement}});Object.defineProperty(g,"SpreadProperty",{enumerable:!0,get:function(){return b.spreadProperty}});Object.defineProperty(g,"StaticBlock",{enumerable:!0,get:function(){return b.staticBlock}});Object.defineProperty(g,"StringLiteral",{enumerable:!0,get:function(){return b.stringLiteral}});Object.defineProperty(g,"StringLiteralTypeAnnotation",{enumerable:!0,get:function(){return b.stringLiteralTypeAnnotation}});Object.defineProperty(g,"StringTypeAnnotation",{enumerable:!0,get:function(){return b.stringTypeAnnotation}});Object.defineProperty(g,"Super",{enumerable:!0,get:function(){return b.super}});Object.defineProperty(g,"SwitchCase",{enumerable:!0,get:function(){return b.switchCase}});Object.defineProperty(g,"SwitchStatement",{enumerable:!0,get:function(){return b.switchStatement}});Object.defineProperty(g,"SymbolTypeAnnotation",{enumerable:!0,get:function(){return b.symbolTypeAnnotation}});Object.defineProperty(g,"TSAnyKeyword",{enumerable:!0,get:function(){return b.tsAnyKeyword}});Object.defineProperty(g,"TSArrayType",{enumerable:!0,get:function(){return b.tsArrayType}});Object.defineProperty(g,"TSAsExpression",{enumerable:!0,get:function(){return b.tsAsExpression}});Object.defineProperty(g,"TSBigIntKeyword",{enumerable:!0,get:function(){return b.tsBigIntKeyword}});Object.defineProperty(g,"TSBooleanKeyword",{enumerable:!0,get:function(){return b.tsBooleanKeyword}});Object.defineProperty(g,"TSCallSignatureDeclaration",{enumerable:!0,get:function(){return b.tsCallSignatureDeclaration}});Object.defineProperty(g,"TSConditionalType",{enumerable:!0,get:function(){return b.tsConditionalType}});Object.defineProperty(g,"TSConstructSignatureDeclaration",{enumerable:!0,get:function(){return b.tsConstructSignatureDeclaration}});Object.defineProperty(g,"TSConstructorType",{enumerable:!0,get:function(){return b.tsConstructorType}});Object.defineProperty(g,"TSDeclareFunction",{enumerable:!0,get:function(){return b.tsDeclareFunction}});Object.defineProperty(g,"TSDeclareMethod",{enumerable:!0,get:function(){return b.tsDeclareMethod}});Object.defineProperty(g,"TSEnumDeclaration",{enumerable:!0,get:function(){return b.tsEnumDeclaration}});Object.defineProperty(g,"TSEnumMember",{enumerable:!0,get:function(){return b.tsEnumMember}});Object.defineProperty(g,"TSExportAssignment",{enumerable:!0,get:function(){return b.tsExportAssignment}});Object.defineProperty(g,"TSExpressionWithTypeArguments",{enumerable:!0,get:function(){return b.tsExpressionWithTypeArguments}});Object.defineProperty(g,"TSExternalModuleReference",{enumerable:!0,get:function(){return b.tsExternalModuleReference}});Object.defineProperty(g,"TSFunctionType",{enumerable:!0,get:function(){return b.tsFunctionType}});Object.defineProperty(g,"TSImportEqualsDeclaration",{enumerable:!0,get:function(){return b.tsImportEqualsDeclaration}});Object.defineProperty(g,"TSImportType",{enumerable:!0,get:function(){return b.tsImportType}});Object.defineProperty(g,"TSIndexSignature",{enumerable:!0,get:function(){return b.tsIndexSignature}});Object.defineProperty(g,"TSIndexedAccessType",{enumerable:!0,get:function(){return b.tsIndexedAccessType}});Object.defineProperty(g,"TSInferType",{enumerable:!0,get:function(){return b.tsInferType}});Object.defineProperty(g,"TSInstantiationExpression",{enumerable:!0,get:function(){return b.tsInstantiationExpression}});Object.defineProperty(g,"TSInterfaceBody",{enumerable:!0,get:function(){return b.tsInterfaceBody}});Object.defineProperty(g,"TSInterfaceDeclaration",{enumerable:!0,get:function(){return b.tsInterfaceDeclaration}});Object.defineProperty(g,"TSIntersectionType",{enumerable:!0,get:function(){return b.tsIntersectionType}});Object.defineProperty(g,"TSIntrinsicKeyword",{enumerable:!0,get:function(){return b.tsIntrinsicKeyword}});Object.defineProperty(g,"TSLiteralType",{enumerable:!0,get:function(){return b.tsLiteralType}});Object.defineProperty(g,"TSMappedType",{enumerable:!0,get:function(){return b.tsMappedType}});Object.defineProperty(g,"TSMethodSignature",{enumerable:!0,get:function(){return b.tsMethodSignature}});Object.defineProperty(g,"TSModuleBlock",{enumerable:!0,get:function(){return b.tsModuleBlock}});Object.defineProperty(g,"TSModuleDeclaration",{enumerable:!0,get:function(){return b.tsModuleDeclaration}});Object.defineProperty(g,"TSNamedTupleMember",{enumerable:!0,get:function(){return b.tsNamedTupleMember}});Object.defineProperty(g,"TSNamespaceExportDeclaration",{enumerable:!0,get:function(){return b.tsNamespaceExportDeclaration}});Object.defineProperty(g,"TSNeverKeyword",{enumerable:!0,get:function(){return b.tsNeverKeyword}});Object.defineProperty(g,"TSNonNullExpression",{enumerable:!0,get:function(){return b.tsNonNullExpression}});Object.defineProperty(g,"TSNullKeyword",{enumerable:!0,get:function(){return b.tsNullKeyword}});Object.defineProperty(g,"TSNumberKeyword",{enumerable:!0,get:function(){return b.tsNumberKeyword}});Object.defineProperty(g,"TSObjectKeyword",{enumerable:!0,get:function(){return b.tsObjectKeyword}});Object.defineProperty(g,"TSOptionalType",{enumerable:!0,get:function(){return b.tsOptionalType}});Object.defineProperty(g,"TSParameterProperty",{enumerable:!0,get:function(){return b.tsParameterProperty}});Object.defineProperty(g,"TSParenthesizedType",{enumerable:!0,get:function(){return b.tsParenthesizedType}});Object.defineProperty(g,"TSPropertySignature",{enumerable:!0,get:function(){return b.tsPropertySignature}});Object.defineProperty(g,"TSQualifiedName",{enumerable:!0,get:function(){return b.tsQualifiedName}});Object.defineProperty(g,"TSRestType",{enumerable:!0,get:function(){return b.tsRestType}});Object.defineProperty(g,"TSSatisfiesExpression",{enumerable:!0,get:function(){return b.tsSatisfiesExpression}});Object.defineProperty(g,"TSStringKeyword",{enumerable:!0,get:function(){return b.tsStringKeyword}});Object.defineProperty(g,"TSSymbolKeyword",{enumerable:!0,get:function(){return b.tsSymbolKeyword}});Object.defineProperty(g,"TSThisType",{enumerable:!0,get:function(){return b.tsThisType}});Object.defineProperty(g,"TSTupleType",{enumerable:!0,get:function(){return b.tsTupleType}});Object.defineProperty(g,"TSTypeAliasDeclaration",{enumerable:!0,get:function(){return b.tsTypeAliasDeclaration}});Object.defineProperty(g,"TSTypeAnnotation",{enumerable:!0,get:function(){return b.tsTypeAnnotation}});Object.defineProperty(g,"TSTypeAssertion",{enumerable:!0,get:function(){return b.tsTypeAssertion}});Object.defineProperty(g,"TSTypeLiteral",{enumerable:!0,get:function(){return b.tsTypeLiteral}});Object.defineProperty(g,"TSTypeOperator",{enumerable:!0,get:function(){return b.tsTypeOperator}});Object.defineProperty(g,"TSTypeParameter",{enumerable:!0,get:function(){return b.tsTypeParameter}});Object.defineProperty(g,"TSTypeParameterDeclaration",{enumerable:!0,get:function(){return b.tsTypeParameterDeclaration}});Object.defineProperty(g,"TSTypeParameterInstantiation",{enumerable:!0,get:function(){return b.tsTypeParameterInstantiation}});Object.defineProperty(g,"TSTypePredicate",{enumerable:!0,get:function(){return b.tsTypePredicate}});Object.defineProperty(g,"TSTypeQuery",{enumerable:!0,get:function(){return b.tsTypeQuery}});Object.defineProperty(g,"TSTypeReference",{enumerable:!0,get:function(){return b.tsTypeReference}});Object.defineProperty(g,"TSUndefinedKeyword",{enumerable:!0,get:function(){return b.tsUndefinedKeyword}});Object.defineProperty(g,"TSUnionType",{enumerable:!0,get:function(){return b.tsUnionType}});Object.defineProperty(g,"TSUnknownKeyword",{enumerable:!0,get:function(){return b.tsUnknownKeyword}});Object.defineProperty(g,"TSVoidKeyword",{enumerable:!0,get:function(){return b.tsVoidKeyword}});Object.defineProperty(g,"TaggedTemplateExpression",{enumerable:!0,get:function(){return b.taggedTemplateExpression}});Object.defineProperty(g,"TemplateElement",{enumerable:!0,get:function(){return b.templateElement}});Object.defineProperty(g,"TemplateLiteral",{enumerable:!0,get:function(){return b.templateLiteral}});Object.defineProperty(g,"ThisExpression",{enumerable:!0,get:function(){return b.thisExpression}});Object.defineProperty(g,"ThisTypeAnnotation",{enumerable:!0,get:function(){return b.thisTypeAnnotation}});Object.defineProperty(g,"ThrowStatement",{enumerable:!0,get:function(){return b.throwStatement}});Object.defineProperty(g,"TopicReference",{enumerable:!0,get:function(){return b.topicReference}});Object.defineProperty(g,"TryStatement",{enumerable:!0,get:function(){return b.tryStatement}});Object.defineProperty(g,"TupleExpression",{enumerable:!0,get:function(){return b.tupleExpression}});Object.defineProperty(g,"TupleTypeAnnotation",{enumerable:!0,get:function(){return b.tupleTypeAnnotation}});Object.defineProperty(g,"TypeAlias",{enumerable:!0,get:function(){return b.typeAlias}});Object.defineProperty(g,"TypeAnnotation",{enumerable:!0,get:function(){return b.typeAnnotation}});Object.defineProperty(g,"TypeCastExpression",{enumerable:!0,get:function(){return b.typeCastExpression}});Object.defineProperty(g,"TypeParameter",{enumerable:!0,get:function(){return b.typeParameter}});Object.defineProperty(g,"TypeParameterDeclaration",{enumerable:!0,get:function(){return b.typeParameterDeclaration}});Object.defineProperty(g,"TypeParameterInstantiation",{enumerable:!0,get:function(){return b.typeParameterInstantiation}});Object.defineProperty(g,"TypeofTypeAnnotation",{enumerable:!0,get:function(){return b.typeofTypeAnnotation}});Object.defineProperty(g,"UnaryExpression",{enumerable:!0,get:function(){return b.unaryExpression}});Object.defineProperty(g,"UnionTypeAnnotation",{enumerable:!0,get:function(){return b.unionTypeAnnotation}});Object.defineProperty(g,"UpdateExpression",{enumerable:!0,get:function(){return b.updateExpression}});Object.defineProperty(g,"V8IntrinsicIdentifier",{enumerable:!0,get:function(){return b.v8IntrinsicIdentifier}});Object.defineProperty(g,"VariableDeclaration",{enumerable:!0,get:function(){return b.variableDeclaration}});Object.defineProperty(g,"VariableDeclarator",{enumerable:!0,get:function(){return b.variableDeclarator}});Object.defineProperty(g,"Variance",{enumerable:!0,get:function(){return b.variance}});Object.defineProperty(g,"VoidTypeAnnotation",{enumerable:!0,get:function(){return b.voidTypeAnnotation}});Object.defineProperty(g,"WhileStatement",{enumerable:!0,get:function(){return b.whileStatement}});Object.defineProperty(g,"WithStatement",{enumerable:!0,get:function(){return b.withStatement}});Object.defineProperty(g,"YieldExpression",{enumerable:!0,get:function(){return b.yieldExpression}});var b=ht()});var Uo=A(qo=>{"use strict";Object.defineProperty(qo,"__esModule",{value:!0});qo.buildUndefinedNode=cL;var Yf=ht();function cL(){return(0,Yf.unaryExpression)("void",(0,Yf.numericLiteral)(0),!0)}});var xr=A(Ko=>{"use strict";Object.defineProperty(Ko,"__esModule",{value:!0});Ko.default=pL;var Xf=It(),Jf=We(),{hasOwn:$t}={hasOwn:Function.call.bind(Object.prototype.hasOwnProperty)};function $f(e,t,r,i){return e&&typeof e.type=="string"?Hf(e,t,r,i):e}function Vo(e,t,r,i){return Array.isArray(e)?e.map(s=>$f(s,t,r,i)):$f(e,t,r,i)}function pL(e,t=!0,r=!1){return Hf(e,t,r,new Map)}function Hf(e,t=!0,r=!1,i){if(!e)return e;let{type:s}=e,n={type:e.type};if((0,Jf.isIdentifier)(e))n.name=e.name,$t(e,"optional")&&typeof e.optional=="boolean"&&(n.optional=e.optional),$t(e,"typeAnnotation")&&(n.typeAnnotation=t?Vo(e.typeAnnotation,!0,r,i):e.typeAnnotation),$t(e,"decorators")&&(n.decorators=t?Vo(e.decorators,!0,r,i):e.decorators);else if($t(Xf.NODE_FIELDS,s))for(let a of Object.keys(Xf.NODE_FIELDS[s]))$t(e,a)&&(t?n[a]=(0,Jf.isFile)(e)&&a==="comments"?en(e.comments,t,r,i):Vo(e[a],!0,r,i):n[a]=e[a]);else throw new Error(`Unknown node type: "${s}"`);return $t(e,"loc")&&(r?n.loc=null:n.loc=e.loc),$t(e,"leadingComments")&&(n.leadingComments=en(e.leadingComments,t,r,i)),$t(e,"innerComments")&&(n.innerComments=en(e.innerComments,t,r,i)),$t(e,"trailingComments")&&(n.trailingComments=en(e.trailingComments,t,r,i)),$t(e,"extra")&&(n.extra=Object.assign({},e.extra)),n}function en(e,t,r,i){return!e||!t?e:e.map(s=>{let n=i.get(s);if(n)return n;let{type:a,value:o,loc:l}=s,u={type:a,value:o,loc:l};return r&&(u.loc=null),i.set(s,u),u})}});var Gf=A(Wo=>{"use strict";Object.defineProperty(Wo,"__esModule",{value:!0});Wo.default=hL;var fL=xr();function hL(e){return(0,fL.default)(e,!1)}});var zf=A(Yo=>{"use strict";Object.defineProperty(Yo,"__esModule",{value:!0});Yo.default=mL;var dL=xr();function mL(e){return(0,dL.default)(e)}});var Qf=A(Xo=>{"use strict";Object.defineProperty(Xo,"__esModule",{value:!0});Xo.default=TL;var yL=xr();function TL(e){return(0,yL.default)(e,!0,!0)}});var Zf=A(Jo=>{"use strict";Object.defineProperty(Jo,"__esModule",{value:!0});Jo.default=bL;var gL=xr();function bL(e){return(0,gL.default)(e,!1,!0)}});var Ho=A($o=>{"use strict";Object.defineProperty($o,"__esModule",{value:!0});$o.default=SL;function SL(e,t,r){if(!r||!e)return e;let i=`${t}Comments`;return e[i]?t==="leading"?e[i]=r.concat(e[i]):e[i].push(...r):e[i]=r,e}});var eh=A(Go=>{"use strict";Object.defineProperty(Go,"__esModule",{value:!0});Go.default=EL;var xL=Ho();function EL(e,t,r,i){return(0,xL.default)(e,t,[{type:i?"CommentLine":"CommentBlock",value:r}])}});var tn=A(zo=>{"use strict";Object.defineProperty(zo,"__esModule",{value:!0});zo.default=PL;function PL(e,t,r){t&&r&&(t[e]=Array.from(new Set([].concat(t[e],r[e]).filter(Boolean))))}});var Zo=A(Qo=>{"use strict";Object.defineProperty(Qo,"__esModule",{value:!0});Qo.default=vL;var AL=tn();function vL(e,t){(0,AL.default)("innerComments",e,t)}});var tl=A(el=>{"use strict";Object.defineProperty(el,"__esModule",{value:!0});el.default=IL;var CL=tn();function IL(e,t){(0,CL.default)("leadingComments",e,t)}});var il=A(rl=>{"use strict";Object.defineProperty(rl,"__esModule",{value:!0});rl.default=OL;var wL=tn();function OL(e,t){(0,wL.default)("trailingComments",e,t)}});var nl=A(sl=>{"use strict";Object.defineProperty(sl,"__esModule",{value:!0});sl.default=kL;var NL=il(),_L=tl(),DL=Zo();function kL(e,t){return(0,NL.default)(e,t),(0,_L.default)(e,t),(0,DL.default)(e,t),e}});var th=A(al=>{"use strict";Object.defineProperty(al,"__esModule",{value:!0});al.default=ML;var LL=gr();function ML(e){return LL.COMMENT_KEYS.forEach(t=>{e[t]=null}),e}});var rh=A(k=>{"use strict";Object.defineProperty(k,"__esModule",{value:!0});k.WHILE_TYPES=k.USERWHITESPACABLE_TYPES=k.UNARYLIKE_TYPES=k.TYPESCRIPT_TYPES=k.TSTYPE_TYPES=k.TSTYPEELEMENT_TYPES=k.TSENTITYNAME_TYPES=k.TSBASETYPE_TYPES=k.TERMINATORLESS_TYPES=k.STATEMENT_TYPES=k.STANDARDIZED_TYPES=k.SCOPABLE_TYPES=k.PUREISH_TYPES=k.PROPERTY_TYPES=k.PRIVATE_TYPES=k.PATTERN_TYPES=k.PATTERNLIKE_TYPES=k.OBJECTMEMBER_TYPES=k.MODULESPECIFIER_TYPES=k.MODULEDECLARATION_TYPES=k.MISCELLANEOUS_TYPES=k.METHOD_TYPES=k.LVAL_TYPES=k.LOOP_TYPES=k.LITERAL_TYPES=k.JSX_TYPES=k.IMPORTOREXPORTDECLARATION_TYPES=k.IMMUTABLE_TYPES=k.FUNCTION_TYPES=k.FUNCTIONPARENT_TYPES=k.FOR_TYPES=k.FORXSTATEMENT_TYPES=k.FLOW_TYPES=k.FLOWTYPE_TYPES=k.FLOWPREDICATE_TYPES=k.FLOWDECLARATION_TYPES=k.FLOWBASEANNOTATION_TYPES=k.EXPRESSION_TYPES=k.EXPRESSIONWRAPPER_TYPES=k.EXPORTDECLARATION_TYPES=k.ENUMMEMBER_TYPES=k.ENUMBODY_TYPES=k.DECLARATION_TYPES=k.CONDITIONAL_TYPES=k.COMPLETIONSTATEMENT_TYPES=k.CLASS_TYPES=k.BLOCK_TYPES=k.BLOCKPARENT_TYPES=k.BINARY_TYPES=k.ACCESSOR_TYPES=void 0;var oe=It(),UJ=k.STANDARDIZED_TYPES=oe.FLIPPED_ALIAS_KEYS.Standardized,VJ=k.EXPRESSION_TYPES=oe.FLIPPED_ALIAS_KEYS.Expression,KJ=k.BINARY_TYPES=oe.FLIPPED_ALIAS_KEYS.Binary,WJ=k.SCOPABLE_TYPES=oe.FLIPPED_ALIAS_KEYS.Scopable,YJ=k.BLOCKPARENT_TYPES=oe.FLIPPED_ALIAS_KEYS.BlockParent,XJ=k.BLOCK_TYPES=oe.FLIPPED_ALIAS_KEYS.Block,JJ=k.STATEMENT_TYPES=oe.FLIPPED_ALIAS_KEYS.Statement,$J=k.TERMINATORLESS_TYPES=oe.FLIPPED_ALIAS_KEYS.Terminatorless,HJ=k.COMPLETIONSTATEMENT_TYPES=oe.FLIPPED_ALIAS_KEYS.CompletionStatement,GJ=k.CONDITIONAL_TYPES=oe.FLIPPED_ALIAS_KEYS.Conditional,zJ=k.LOOP_TYPES=oe.FLIPPED_ALIAS_KEYS.Loop,QJ=k.WHILE_TYPES=oe.FLIPPED_ALIAS_KEYS.While,ZJ=k.EXPRESSIONWRAPPER_TYPES=oe.FLIPPED_ALIAS_KEYS.ExpressionWrapper,e$=k.FOR_TYPES=oe.FLIPPED_ALIAS_KEYS.For,t$=k.FORXSTATEMENT_TYPES=oe.FLIPPED_ALIAS_KEYS.ForXStatement,r$=k.FUNCTION_TYPES=oe.FLIPPED_ALIAS_KEYS.Function,i$=k.FUNCTIONPARENT_TYPES=oe.FLIPPED_ALIAS_KEYS.FunctionParent,s$=k.PUREISH_TYPES=oe.FLIPPED_ALIAS_KEYS.Pureish,n$=k.DECLARATION_TYPES=oe.FLIPPED_ALIAS_KEYS.Declaration,a$=k.PATTERNLIKE_TYPES=oe.FLIPPED_ALIAS_KEYS.PatternLike,o$=k.LVAL_TYPES=oe.FLIPPED_ALIAS_KEYS.LVal,l$=k.TSENTITYNAME_TYPES=oe.FLIPPED_ALIAS_KEYS.TSEntityName,u$=k.LITERAL_TYPES=oe.FLIPPED_ALIAS_KEYS.Literal,c$=k.IMMUTABLE_TYPES=oe.FLIPPED_ALIAS_KEYS.Immutable,p$=k.USERWHITESPACABLE_TYPES=oe.FLIPPED_ALIAS_KEYS.UserWhitespacable,f$=k.METHOD_TYPES=oe.FLIPPED_ALIAS_KEYS.Method,h$=k.OBJECTMEMBER_TYPES=oe.FLIPPED_ALIAS_KEYS.ObjectMember,d$=k.PROPERTY_TYPES=oe.FLIPPED_ALIAS_KEYS.Property,m$=k.UNARYLIKE_TYPES=oe.FLIPPED_ALIAS_KEYS.UnaryLike,y$=k.PATTERN_TYPES=oe.FLIPPED_ALIAS_KEYS.Pattern,T$=k.CLASS_TYPES=oe.FLIPPED_ALIAS_KEYS.Class,BL=k.IMPORTOREXPORTDECLARATION_TYPES=oe.FLIPPED_ALIAS_KEYS.ImportOrExportDeclaration,g$=k.EXPORTDECLARATION_TYPES=oe.FLIPPED_ALIAS_KEYS.ExportDeclaration,b$=k.MODULESPECIFIER_TYPES=oe.FLIPPED_ALIAS_KEYS.ModuleSpecifier,S$=k.ACCESSOR_TYPES=oe.FLIPPED_ALIAS_KEYS.Accessor,x$=k.PRIVATE_TYPES=oe.FLIPPED_ALIAS_KEYS.Private,E$=k.FLOW_TYPES=oe.FLIPPED_ALIAS_KEYS.Flow,P$=k.FLOWTYPE_TYPES=oe.FLIPPED_ALIAS_KEYS.FlowType,A$=k.FLOWBASEANNOTATION_TYPES=oe.FLIPPED_ALIAS_KEYS.FlowBaseAnnotation,v$=k.FLOWDECLARATION_TYPES=oe.FLIPPED_ALIAS_KEYS.FlowDeclaration,C$=k.FLOWPREDICATE_TYPES=oe.FLIPPED_ALIAS_KEYS.FlowPredicate,I$=k.ENUMBODY_TYPES=oe.FLIPPED_ALIAS_KEYS.EnumBody,w$=k.ENUMMEMBER_TYPES=oe.FLIPPED_ALIAS_KEYS.EnumMember,O$=k.JSX_TYPES=oe.FLIPPED_ALIAS_KEYS.JSX,N$=k.MISCELLANEOUS_TYPES=oe.FLIPPED_ALIAS_KEYS.Miscellaneous,_$=k.TYPESCRIPT_TYPES=oe.FLIPPED_ALIAS_KEYS.TypeScript,D$=k.TSTYPEELEMENT_TYPES=oe.FLIPPED_ALIAS_KEYS.TSTypeElement,k$=k.TSTYPE_TYPES=oe.FLIPPED_ALIAS_KEYS.TSType,L$=k.TSBASETYPE_TYPES=oe.FLIPPED_ALIAS_KEYS.TSBaseType,M$=k.MODULEDECLARATION_TYPES=BL});var ul=A(ll=>{"use strict";Object.defineProperty(ll,"__esModule",{value:!0});ll.default=FL;var rn=We(),ol=ht();function FL(e,t){if((0,rn.isBlockStatement)(e))return e;let r=[];return(0,rn.isEmptyStatement)(e)?r=[]:((0,rn.isStatement)(e)||((0,rn.isFunction)(t)?e=(0,ol.returnStatement)(e):e=(0,ol.expressionStatement)(e)),r=[e]),(0,ol.blockStatement)(r)}});var ih=A(cl=>{"use strict";Object.defineProperty(cl,"__esModule",{value:!0});cl.default=RL;var jL=ul();function RL(e,t="body"){let r=(0,jL.default)(e[t],e);return e[t]=r,r}});var fl=A(pl=>{"use strict";Object.defineProperty(pl,"__esModule",{value:!0});pl.default=VL;var qL=pi(),UL=Gi();function VL(e){e=e+"";let t="";for(let r of e)t+=(0,UL.isIdentifierChar)(r.codePointAt(0))?r:"-";return t=t.replace(/^[-0-9]+/,""),t=t.replace(/[-\s]+(.)?/g,function(r,i){return i?i.toUpperCase():""}),(0,qL.default)(t)||(t=`_${t}`),t||"_"}});var sh=A(hl=>{"use strict";Object.defineProperty(hl,"__esModule",{value:!0});hl.default=WL;var KL=fl();function WL(e){return e=(0,KL.default)(e),(e==="eval"||e==="arguments")&&(e="_"+e),e}});var nh=A(dl=>{"use strict";Object.defineProperty(dl,"__esModule",{value:!0});dl.default=JL;var YL=We(),XL=ht();function JL(e,t=e.key||e.property){return!e.computed&&(0,YL.isIdentifier)(t)&&(t=(0,XL.stringLiteral)(t.name)),t}});var ah=A(sn=>{"use strict";Object.defineProperty(sn,"__esModule",{value:!0});sn.default=void 0;var ss=We(),V$=sn.default=$L;function $L(e){if((0,ss.isExpressionStatement)(e)&&(e=e.expression),(0,ss.isExpression)(e))return e;if((0,ss.isClass)(e)?e.type="ClassExpression":(0,ss.isFunction)(e)&&(e.type="FunctionExpression"),!(0,ss.isExpression)(e))throw new Error(`cannot turn ${e.type} to an expression`);return e}});var Tl=A(yl=>{"use strict";Object.defineProperty(yl,"__esModule",{value:!0});yl.default=ml;var HL=It();function ml(e,t,r){if(!e)return;let i=HL.VISITOR_KEYS[e.type];if(i){r=r||{},t(e,r);for(let s of i){let n=e[s];if(Array.isArray(n))for(let a of n)ml(a,t,r);else ml(n,t,r)}}}});var bl=A(gl=>{"use strict";Object.defineProperty(gl,"__esModule",{value:!0});gl.default=QL;var GL=gr(),oh=["tokens","start","end","loc","raw","rawValue"],zL=[...GL.COMMENT_KEYS,"comments",...oh];function QL(e,t={}){let r=t.preserveComments?oh:zL;for(let s of r)e[s]!=null&&(e[s]=void 0);for(let s of Object.keys(e))s[0]==="_"&&e[s]!=null&&(e[s]=void 0);let i=Object.getOwnPropertySymbols(e);for(let s of i)e[s]=null}});var xl=A(Sl=>{"use strict";Object.defineProperty(Sl,"__esModule",{value:!0});Sl.default=tM;var ZL=Tl(),eM=bl();function tM(e,t){return(0,ZL.default)(e,eM.default,t),e}});var uh=A(El=>{"use strict";Object.defineProperty(El,"__esModule",{value:!0});El.default=Rr;var lh=We(),rM=xr(),iM=xl();function Rr(e,t=e.key){let r;return e.kind==="method"?Rr.increment()+"":((0,lh.isIdentifier)(t)?r=t.name:(0,lh.isStringLiteral)(t)?r=JSON.stringify(t.value):r=JSON.stringify((0,iM.default)((0,rM.default)(t))),e.computed&&(r=`[${r}]`),e.static&&(r=`static:${r}`),r)}Rr.uid=0;Rr.increment=function(){return Rr.uid>=Number.MAX_SAFE_INTEGER?Rr.uid=0:Rr.uid++}});var ch=A(an=>{"use strict";Object.defineProperty(an,"__esModule",{value:!0});an.default=void 0;var nn=We(),sM=ht(),$$=an.default=nM;function nM(e,t){if((0,nn.isStatement)(e))return e;let r=!1,i;if((0,nn.isClass)(e))r=!0,i="ClassDeclaration";else if((0,nn.isFunction)(e))r=!0,i="FunctionDeclaration";else if((0,nn.isAssignmentExpression)(e))return(0,sM.expressionStatement)(e);if(r&&!e.id&&(i=!1),!i){if(t)return!1;throw new Error(`cannot turn ${e.type} to a statement`)}return e.type=i,e}});var ph=A(on=>{"use strict";Object.defineProperty(on,"__esModule",{value:!0});on.default=void 0;var aM=pi(),st=ht(),G$=on.default=Pl,oM=Function.call.bind(Object.prototype.toString);function lM(e){return oM(e)==="[object RegExp]"}function uM(e){if(typeof e!="object"||e===null||Object.prototype.toString.call(e)!=="[object Object]")return!1;let t=Object.getPrototypeOf(e);return t===null||Object.getPrototypeOf(t)===null}function Pl(e){if(e===void 0)return(0,st.identifier)("undefined");if(e===!0||e===!1)return(0,st.booleanLiteral)(e);if(e===null)return(0,st.nullLiteral)();if(typeof e=="string")return(0,st.stringLiteral)(e);if(typeof e=="number"){let t;if(Number.isFinite(e))t=(0,st.numericLiteral)(Math.abs(e));else{let r;Number.isNaN(e)?r=(0,st.numericLiteral)(0):r=(0,st.numericLiteral)(1),t=(0,st.binaryExpression)("/",r,(0,st.numericLiteral)(0))}return(e<0||Object.is(e,-0))&&(t=(0,st.unaryExpression)("-",t)),t}if(lM(e)){let t=e.source,r=/\/([a-z]*)$/.exec(e.toString())[1];return(0,st.regExpLiteral)(t,r)}if(Array.isArray(e))return(0,st.arrayExpression)(e.map(Pl));if(uM(e)){let t=[];for(let r of Object.keys(e)){let i;(0,aM.default)(r)?i=(0,st.identifier)(r):i=(0,st.stringLiteral)(r),t.push((0,st.objectProperty)(i,Pl(e[r])))}return(0,st.objectExpression)(t)}throw new Error("don't know how to turn this value into a node")}});var fh=A(Al=>{"use strict";Object.defineProperty(Al,"__esModule",{value:!0});Al.default=pM;var cM=ht();function pM(e,t,r=!1){return e.object=(0,cM.memberExpression)(e.object,e.property,e.computed),e.property=t,e.computed=!!r,e}});var dh=A(vl=>{"use strict";Object.defineProperty(vl,"__esModule",{value:!0});vl.default=hM;var hh=gr(),fM=nl();function hM(e,t){if(!e||!t)return e;for(let r of hh.INHERIT_KEYS.optional)e[r]==null&&(e[r]=t[r]);for(let r of Object.keys(t))r[0]==="_"&&r!=="__clone"&&(e[r]=t[r]);for(let r of hh.INHERIT_KEYS.force)e[r]=t[r];return(0,fM.default)(e,t),e}});var mh=A(Cl=>{"use strict";Object.defineProperty(Cl,"__esModule",{value:!0});Cl.default=yM;var dM=ht(),mM=de();function yM(e,t){if((0,mM.isSuper)(e.object))throw new Error("Cannot prepend node to super property access (`super.foo`).");return e.object=(0,dM.memberExpression)(t,e.object),e}});var yh=A(Il=>{"use strict";Object.defineProperty(Il,"__esModule",{value:!0});Il.default=TM;function TM(e){let t=[].concat(e),r=Object.create(null);for(;t.length;){let i=t.pop();if(i)switch(i.type){case"ArrayPattern":t.push(...i.elements);break;case"AssignmentExpression":case"AssignmentPattern":case"ForInStatement":case"ForOfStatement":t.push(i.left);break;case"ObjectPattern":t.push(...i.properties);break;case"ObjectProperty":t.push(i.value);break;case"RestElement":case"UpdateExpression":t.push(i.argument);break;case"UnaryExpression":i.operator==="delete"&&t.push(i.argument);break;case"Identifier":r[i.name]=i;break;default:break}}return r}});var ns=A(Ol=>{"use strict";Object.defineProperty(Ol,"__esModule",{value:!0});Ol.default=wl;var or=We();function wl(e,t,r,i){let s=[].concat(e),n=Object.create(null);for(;s.length;){let a=s.shift();if(!a||i&&((0,or.isAssignmentExpression)(a)||(0,or.isUnaryExpression)(a)||(0,or.isUpdateExpression)(a)))continue;if((0,or.isIdentifier)(a)){t?(n[a.name]=n[a.name]||[]).push(a):n[a.name]=a;continue}if((0,or.isExportDeclaration)(a)&&!(0,or.isExportAllDeclaration)(a)){(0,or.isDeclaration)(a.declaration)&&s.push(a.declaration);continue}if(r){if((0,or.isFunctionDeclaration)(a)){s.push(a.id);continue}if((0,or.isFunctionExpression)(a))continue}let o=wl.keys[a.type];if(o)for(let l=0;l<o.length;l++){let u=o[l],c=a[u];c&&(Array.isArray(c)?s.push(...c):s.push(c))}}return n}var gM={DeclareClass:["id"],DeclareFunction:["id"],DeclareModule:["id"],DeclareVariable:["id"],DeclareInterface:["id"],DeclareTypeAlias:["id"],DeclareOpaqueType:["id"],InterfaceDeclaration:["id"],TypeAlias:["id"],OpaqueType:["id"],CatchClause:["param"],LabeledStatement:["label"],UnaryExpression:["argument"],AssignmentExpression:["left"],ImportSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportDefaultSpecifier:["local"],ImportDeclaration:["specifiers"],ExportSpecifier:["exported"],ExportNamespaceSpecifier:["exported"],ExportDefaultSpecifier:["exported"],FunctionDeclaration:["id","params"],FunctionExpression:["id","params"],ArrowFunctionExpression:["params"],ObjectMethod:["params"],ClassMethod:["params"],ClassPrivateMethod:["params"],ForInStatement:["left"],ForOfStatement:["left"],ClassDeclaration:["id"],ClassExpression:["id"],RestElement:["argument"],UpdateExpression:["argument"],ObjectProperty:["value"],AssignmentPattern:["left"],ArrayPattern:["elements"],ObjectPattern:["properties"],VariableDeclaration:["declarations"],VariableDeclarator:["id"]};wl.keys=gM});var Th=A(ln=>{"use strict";Object.defineProperty(ln,"__esModule",{value:!0});ln.default=void 0;var bM=ns(),iH=ln.default=SM;function SM(e,t){return(0,bM.default)(e,t,!0)}});var bh=A(Nl=>{"use strict";Object.defineProperty(Nl,"__esModule",{value:!0});Nl.default=EM;var wt=We();function xM(e){return(0,wt.isNullLiteral)(e)?"null":(0,wt.isRegExpLiteral)(e)?`/${e.pattern}/${e.flags}`:(0,wt.isTemplateLiteral)(e)?e.quasis.map(t=>t.value.raw).join(""):e.value!==void 0?String(e.value):null}function gh(e){if(!e.computed||(0,wt.isLiteral)(e.key))return e.key}function EM(e,t){if("id"in e&&e.id)return{name:e.id.name,originalNode:e.id};let r="",i;if((0,wt.isObjectProperty)(t,{value:e})?i=gh(t):(0,wt.isObjectMethod)(e)||(0,wt.isClassMethod)(e)?(i=gh(e),e.kind==="get"?r="get ":e.kind==="set"&&(r="set ")):(0,wt.isVariableDeclarator)(t,{init:e})?i=t.id:(0,wt.isAssignmentExpression)(t,{operator:"=",right:e})&&(i=t.left),!i)return null;let s=(0,wt.isLiteral)(i)?xM(i):(0,wt.isIdentifier)(i)?i.name:(0,wt.isPrivateName)(i)?i.id.name:null;return s==null?null:{name:r+s,originalNode:i}}});var Sh=A(Dl=>{"use strict";Object.defineProperty(Dl,"__esModule",{value:!0});Dl.default=AM;var PM=It();function AM(e,t,r){typeof t=="function"&&(t={enter:t});let{enter:i,exit:s}=t;_l(e,i,s,r,[])}function _l(e,t,r,i,s){let n=PM.VISITOR_KEYS[e.type];if(n){t&&t(e,s,i);for(let a of n){let o=e[a];if(Array.isArray(o))for(let l=0;l<o.length;l++){let u=o[l];u&&(s.push({node:e,key:a,index:l}),_l(u,t,r,i,s),s.pop())}else o&&(s.push({node:e,key:a}),_l(o,t,r,i,s),s.pop())}r&&r(e,s,i)}}});var xh=A(kl=>{"use strict";Object.defineProperty(kl,"__esModule",{value:!0});kl.default=CM;var vM=ns();function CM(e,t,r){if(r&&e.type==="Identifier"&&t.type==="ObjectProperty"&&r.type==="ObjectExpression")return!1;let i=vM.default.keys[t.type];if(i)for(let s=0;s<i.length;s++){let n=i[s],a=t[n];if(Array.isArray(a)){if(a.includes(e))return!0}else if(a===e)return!0}return!1}});var Ml=A(Ll=>{"use strict";Object.defineProperty(Ll,"__esModule",{value:!0});Ll.default=OM;var IM=We(),wM=gr();function OM(e){return(0,IM.isVariableDeclaration)(e)&&(e.kind!=="var"||e[wM.BLOCK_SCOPED_SYMBOL])}});var Ph=A(Bl=>{"use strict";Object.defineProperty(Bl,"__esModule",{value:!0});Bl.default=_M;var Eh=We(),NM=Ml();function _M(e){return(0,Eh.isFunctionDeclaration)(e)||(0,Eh.isClassDeclaration)(e)||(0,NM.default)(e)}});var Ah=A(Fl=>{"use strict";Object.defineProperty(Fl,"__esModule",{value:!0});Fl.default=LM;var DM=Vs(),kM=We();function LM(e){return(0,DM.default)(e.type,"Immutable")?!0:(0,kM.isIdentifier)(e)?e.name==="undefined":!1}});var Ch=A(Rl=>{"use strict";Object.defineProperty(Rl,"__esModule",{value:!0});Rl.default=jl;var vh=It();function jl(e,t){if(typeof e!="object"||typeof t!="object"||e==null||t==null)return e===t;if(e.type!==t.type)return!1;let r=Object.keys(vh.NODE_FIELDS[e.type]||e.type),i=vh.VISITOR_KEYS[e.type];for(let s of r){let n=e[s],a=t[s];if(typeof n!=typeof a)return!1;if(!(n==null&&a==null)){if(n==null||a==null)return!1;if(Array.isArray(n)){if(!Array.isArray(a)||n.length!==a.length)return!1;for(let o=0;o<n.length;o++)if(!jl(n[o],a[o]))return!1;continue}if(typeof n=="object"&&!(i!=null&&i.includes(s))){for(let o of Object.keys(n))if(n[o]!==a[o])return!1;continue}if(!jl(n,a))return!1}}return!0}});var Ih=A(ql=>{"use strict";Object.defineProperty(ql,"__esModule",{value:!0});ql.default=MM;function MM(e,t,r){switch(t.type){case"MemberExpression":case"OptionalMemberExpression":return t.property===e?!!t.computed:t.object===e;case"JSXMemberExpression":return t.object===e;case"VariableDeclarator":return t.init===e;case"ArrowFunctionExpression":return t.body===e;case"PrivateName":return!1;case"ClassMethod":case"ClassPrivateMethod":case"ObjectMethod":return t.key===e?!!t.computed:!1;case"ObjectProperty":return t.key===e?!!t.computed:!r||r.type!=="ObjectPattern";case"ClassProperty":case"ClassAccessorProperty":return t.key===e?!!t.computed:!0;case"ClassPrivateProperty":return t.key!==e;case"ClassDeclaration":case"ClassExpression":return t.superClass===e;case"AssignmentExpression":return t.right===e;case"AssignmentPattern":return t.right===e;case"LabeledStatement":return!1;case"CatchClause":return!1;case"RestElement":return!1;case"BreakStatement":case"ContinueStatement":return!1;case"FunctionDeclaration":case"FunctionExpression":return!1;case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":return!1;case"ExportSpecifier":return r!=null&&r.source?!1:t.local===e;case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":return!1;case"ImportAttribute":return!1;case"JSXAttribute":return!1;case"ObjectPattern":case"ArrayPattern":return!1;case"MetaProperty":return!1;case"ObjectTypeProperty":return t.key!==e;case"TSEnumMember":return t.id!==e;case"TSPropertySignature":return t.key===e?!!t.computed:!0}return!0}});var wh=A(Ul=>{"use strict";Object.defineProperty(Ul,"__esModule",{value:!0});Ul.default=BM;var qr=We();function BM(e,t){return(0,qr.isBlockStatement)(e)&&((0,qr.isFunction)(t)||(0,qr.isCatchClause)(t))?!1:(0,qr.isPattern)(e)&&((0,qr.isFunction)(t)||(0,qr.isCatchClause)(t))?!0:(0,qr.isScopable)(e)}});var Nh=A(Vl=>{"use strict";Object.defineProperty(Vl,"__esModule",{value:!0});Vl.default=FM;var Oh=We();function FM(e){return(0,Oh.isImportDefaultSpecifier)(e)||(0,Oh.isIdentifier)(e.imported||e.exported,{name:"default"})}});var _h=A(Kl=>{"use strict";Object.defineProperty(Kl,"__esModule",{value:!0});Kl.default=qM;var jM=pi(),RM=new Set(["abstract","boolean","byte","char","double","enum","final","float","goto","implements","int","interface","long","native","package","private","protected","public","short","static","synchronized","throws","transient","volatile"]);function qM(e){return(0,jM.default)(e)&&!RM.has(e)}});var Dh=A(Wl=>{"use strict";Object.defineProperty(Wl,"__esModule",{value:!0});Wl.default=KM;var UM=We(),VM=gr();function KM(e){return(0,UM.isVariableDeclaration)(e,{kind:"var"})&&!e[VM.BLOCK_SCOPED_SYMBOL]}});var kh=A(Jl=>{"use strict";Object.defineProperty(Jl,"__esModule",{value:!0});Jl.default=un;var WM=ns(),Ur=We(),Yl=ht(),Xl=Uo(),YM=xr();function un(e,t){let r=[],i=!0;for(let s of e)if((0,Ur.isEmptyStatement)(s)||(i=!1),(0,Ur.isExpression)(s))r.push(s);else if((0,Ur.isExpressionStatement)(s))r.push(s.expression);else if((0,Ur.isVariableDeclaration)(s)){if(s.kind!=="var")return;for(let n of s.declarations){let a=(0,WM.default)(n);for(let o of Object.keys(a))t.push({kind:s.kind,id:(0,YM.default)(a[o])});n.init&&r.push((0,Yl.assignmentExpression)("=",n.id,n.init))}i=!0}else if((0,Ur.isIfStatement)(s)){let n=s.consequent?un([s.consequent],t):(0,Xl.buildUndefinedNode)(),a=s.alternate?un([s.alternate],t):(0,Xl.buildUndefinedNode)();if(!n||!a)return;r.push((0,Yl.conditionalExpression)(s.test,n,a))}else if((0,Ur.isBlockStatement)(s)){let n=un(s.body,t);if(!n)return;r.push(n)}else if((0,Ur.isEmptyStatement)(s))e.indexOf(s)===0&&(i=!0);else return;return i&&r.push((0,Xl.buildUndefinedNode)()),r.length===1?r[0]:(0,Yl.sequenceExpression)(r)}});var Lh=A($l=>{"use strict";Object.defineProperty($l,"__esModule",{value:!0});$l.default=JM;var XM=kh();function JM(e,t){if(!(e!=null&&e.length))return;let r=[],i=(0,XM.default)(e,r);if(i){for(let s of r)t.push(s);return i}}});var de=A(F=>{"use strict";Object.defineProperty(F,"__esModule",{value:!0});var lr={react:!0,assertNode:!0,createTypeAnnotationBasedOnTypeof:!0,createUnionTypeAnnotation:!0,createFlowUnionType:!0,createTSUnionType:!0,cloneNode:!0,clone:!0,cloneDeep:!0,cloneDeepWithoutLoc:!0,cloneWithoutLoc:!0,addComment:!0,addComments:!0,inheritInnerComments:!0,inheritLeadingComments:!0,inheritsComments:!0,inheritTrailingComments:!0,removeComments:!0,ensureBlock:!0,toBindingIdentifierName:!0,toBlock:!0,toComputedKey:!0,toExpression:!0,toIdentifier:!0,toKeyAlias:!0,toStatement:!0,valueToNode:!0,appendToMemberExpression:!0,inherits:!0,prependToMemberExpression:!0,removeProperties:!0,removePropertiesDeep:!0,removeTypeDuplicates:!0,getAssignmentIdentifiers:!0,getBindingIdentifiers:!0,getOuterBindingIdentifiers:!0,getFunctionName:!0,traverse:!0,traverseFast:!0,shallowEqual:!0,is:!0,isBinding:!0,isBlockScoped:!0,isImmutable:!0,isLet:!0,isNode:!0,isNodesEquivalent:!0,isPlaceholderType:!0,isReferenced:!0,isScope:!0,isSpecifierDefault:!0,isType:!0,isValidES3Identifier:!0,isValidIdentifier:!0,isVar:!0,matchesPattern:!0,validate:!0,buildMatchMemberExpression:!0,__internal__deprecationWarning:!0};Object.defineProperty(F,"__internal__deprecationWarning",{enumerable:!0,get:function(){return zB.default}});Object.defineProperty(F,"addComment",{enumerable:!0,get:function(){return nB.default}});Object.defineProperty(F,"addComments",{enumerable:!0,get:function(){return aB.default}});Object.defineProperty(F,"appendToMemberExpression",{enumerable:!0,get:function(){return xB.default}});Object.defineProperty(F,"assertNode",{enumerable:!0,get:function(){return zM.default}});Object.defineProperty(F,"buildMatchMemberExpression",{enumerable:!0,get:function(){return GB.default}});Object.defineProperty(F,"clone",{enumerable:!0,get:function(){return tB.default}});Object.defineProperty(F,"cloneDeep",{enumerable:!0,get:function(){return rB.default}});Object.defineProperty(F,"cloneDeepWithoutLoc",{enumerable:!0,get:function(){return iB.default}});Object.defineProperty(F,"cloneNode",{enumerable:!0,get:function(){return eB.default}});Object.defineProperty(F,"cloneWithoutLoc",{enumerable:!0,get:function(){return sB.default}});Object.defineProperty(F,"createFlowUnionType",{enumerable:!0,get:function(){return Mh.default}});Object.defineProperty(F,"createTSUnionType",{enumerable:!0,get:function(){return ZM.default}});Object.defineProperty(F,"createTypeAnnotationBasedOnTypeof",{enumerable:!0,get:function(){return QM.default}});Object.defineProperty(F,"createUnionTypeAnnotation",{enumerable:!0,get:function(){return Mh.default}});Object.defineProperty(F,"ensureBlock",{enumerable:!0,get:function(){return fB.default}});Object.defineProperty(F,"getAssignmentIdentifiers",{enumerable:!0,get:function(){return IB.default}});Object.defineProperty(F,"getBindingIdentifiers",{enumerable:!0,get:function(){return wB.default}});Object.defineProperty(F,"getFunctionName",{enumerable:!0,get:function(){return NB.default}});Object.defineProperty(F,"getOuterBindingIdentifiers",{enumerable:!0,get:function(){return OB.default}});Object.defineProperty(F,"inheritInnerComments",{enumerable:!0,get:function(){return oB.default}});Object.defineProperty(F,"inheritLeadingComments",{enumerable:!0,get:function(){return lB.default}});Object.defineProperty(F,"inheritTrailingComments",{enumerable:!0,get:function(){return cB.default}});Object.defineProperty(F,"inherits",{enumerable:!0,get:function(){return EB.default}});Object.defineProperty(F,"inheritsComments",{enumerable:!0,get:function(){return uB.default}});Object.defineProperty(F,"is",{enumerable:!0,get:function(){return kB.default}});Object.defineProperty(F,"isBinding",{enumerable:!0,get:function(){return LB.default}});Object.defineProperty(F,"isBlockScoped",{enumerable:!0,get:function(){return MB.default}});Object.defineProperty(F,"isImmutable",{enumerable:!0,get:function(){return BB.default}});Object.defineProperty(F,"isLet",{enumerable:!0,get:function(){return FB.default}});Object.defineProperty(F,"isNode",{enumerable:!0,get:function(){return jB.default}});Object.defineProperty(F,"isNodesEquivalent",{enumerable:!0,get:function(){return RB.default}});Object.defineProperty(F,"isPlaceholderType",{enumerable:!0,get:function(){return qB.default}});Object.defineProperty(F,"isReferenced",{enumerable:!0,get:function(){return UB.default}});Object.defineProperty(F,"isScope",{enumerable:!0,get:function(){return VB.default}});Object.defineProperty(F,"isSpecifierDefault",{enumerable:!0,get:function(){return KB.default}});Object.defineProperty(F,"isType",{enumerable:!0,get:function(){return WB.default}});Object.defineProperty(F,"isValidES3Identifier",{enumerable:!0,get:function(){return YB.default}});Object.defineProperty(F,"isValidIdentifier",{enumerable:!0,get:function(){return XB.default}});Object.defineProperty(F,"isVar",{enumerable:!0,get:function(){return JB.default}});Object.defineProperty(F,"matchesPattern",{enumerable:!0,get:function(){return $B.default}});Object.defineProperty(F,"prependToMemberExpression",{enumerable:!0,get:function(){return PB.default}});F.react=void 0;Object.defineProperty(F,"removeComments",{enumerable:!0,get:function(){return pB.default}});Object.defineProperty(F,"removeProperties",{enumerable:!0,get:function(){return AB.default}});Object.defineProperty(F,"removePropertiesDeep",{enumerable:!0,get:function(){return vB.default}});Object.defineProperty(F,"removeTypeDuplicates",{enumerable:!0,get:function(){return CB.default}});Object.defineProperty(F,"shallowEqual",{enumerable:!0,get:function(){return DB.default}});Object.defineProperty(F,"toBindingIdentifierName",{enumerable:!0,get:function(){return hB.default}});Object.defineProperty(F,"toBlock",{enumerable:!0,get:function(){return dB.default}});Object.defineProperty(F,"toComputedKey",{enumerable:!0,get:function(){return mB.default}});Object.defineProperty(F,"toExpression",{enumerable:!0,get:function(){return yB.default}});Object.defineProperty(F,"toIdentifier",{enumerable:!0,get:function(){return TB.default}});Object.defineProperty(F,"toKeyAlias",{enumerable:!0,get:function(){return gB.default}});Object.defineProperty(F,"toStatement",{enumerable:!0,get:function(){return bB.default}});Object.defineProperty(F,"traverse",{enumerable:!0,get:function(){return cn.default}});Object.defineProperty(F,"traverseFast",{enumerable:!0,get:function(){return _B.default}});Object.defineProperty(F,"validate",{enumerable:!0,get:function(){return HB.default}});Object.defineProperty(F,"valueToNode",{enumerable:!0,get:function(){return SB.default}});var $M=Fp(),HM=jp(),GM=kf(),zM=Lf(),Hl=Mf();Object.keys(Hl).forEach(function(e){e==="default"||e==="__esModule"||Object.prototype.hasOwnProperty.call(lr,e)||e in F&&F[e]===Hl[e]||Object.defineProperty(F,e,{enumerable:!0,get:function(){return Hl[e]}})});var QM=Bf(),Mh=Rf(),ZM=Kf(),Gl=ht();Object.keys(Gl).forEach(function(e){e==="default"||e==="__esModule"||Object.prototype.hasOwnProperty.call(lr,e)||e in F&&F[e]===Gl[e]||Object.defineProperty(F,e,{enumerable:!0,get:function(){return Gl[e]}})});var zl=Wf();Object.keys(zl).forEach(function(e){e==="default"||e==="__esModule"||Object.prototype.hasOwnProperty.call(lr,e)||e in F&&F[e]===zl[e]||Object.defineProperty(F,e,{enumerable:!0,get:function(){return zl[e]}})});var Ql=Uo();Object.keys(Ql).forEach(function(e){e==="default"||e==="__esModule"||Object.prototype.hasOwnProperty.call(lr,e)||e in F&&F[e]===Ql[e]||Object.defineProperty(F,e,{enumerable:!0,get:function(){return Ql[e]}})});var eB=xr(),tB=Gf(),rB=zf(),iB=Qf(),sB=Zf(),nB=eh(),aB=Ho(),oB=Zo(),lB=tl(),uB=nl(),cB=il(),pB=th(),Zl=rh();Object.keys(Zl).forEach(function(e){e==="default"||e==="__esModule"||Object.prototype.hasOwnProperty.call(lr,e)||e in F&&F[e]===Zl[e]||Object.defineProperty(F,e,{enumerable:!0,get:function(){return Zl[e]}})});var eu=gr();Object.keys(eu).forEach(function(e){e==="default"||e==="__esModule"||Object.prototype.hasOwnProperty.call(lr,e)||e in F&&F[e]===eu[e]||Object.defineProperty(F,e,{enumerable:!0,get:function(){return eu[e]}})});var fB=ih(),hB=sh(),dB=ul(),mB=nh(),yB=ah(),TB=fl(),gB=uh(),bB=ch(),SB=ph(),tu=It();Object.keys(tu).forEach(function(e){e==="default"||e==="__esModule"||Object.prototype.hasOwnProperty.call(lr,e)||e in F&&F[e]===tu[e]||Object.defineProperty(F,e,{enumerable:!0,get:function(){return tu[e]}})});var xB=fh(),EB=dh(),PB=mh(),AB=bl(),vB=xl(),CB=Bo(),IB=yh(),wB=ns(),OB=Th(),NB=bh(),cn=Sh();Object.keys(cn).forEach(function(e){e==="default"||e==="__esModule"||Object.prototype.hasOwnProperty.call(lr,e)||e in F&&F[e]===cn[e]||Object.defineProperty(F,e,{enumerable:!0,get:function(){return cn[e]}})});var _B=Tl(),DB=qs(),kB=ci(),LB=xh(),MB=Ph(),BB=Ah(),FB=Ml(),jB=ko(),RB=Ch(),qB=no(),UB=Ih(),VB=wh(),KB=Nh(),WB=Vs(),YB=_h(),XB=pi(),JB=Dh(),$B=Za(),HB=Js(),GB=to(),ru=We();Object.keys(ru).forEach(function(e){e==="default"||e==="__esModule"||Object.prototype.hasOwnProperty.call(lr,e)||e in F&&F[e]===ru[e]||Object.defineProperty(F,e,{enumerable:!0,get:function(){return ru[e]}})});var zB=Ki(),bH=F.react={isReactComponent:$M.default,isCompatTag:HM.default,buildChildren:GM.default};F.toSequenceExpression=Lh().default});var iu=A(be=>{"use strict";Object.defineProperty(be,"__esModule",{value:!0});be.Var=be.User=be.Statement=be.SpreadProperty=be.Scope=be.RestProperty=be.ReferencedMemberExpression=be.ReferencedIdentifier=be.Referenced=be.Pure=be.NumericLiteralTypeAnnotation=be.Generated=be.ForAwaitStatement=be.Flow=be.Expression=be.ExistentialTypeParam=be.BlockScoped=be.BindingIdentifier=void 0;var xH=be.ReferencedIdentifier=["Identifier","JSXIdentifier"],EH=be.ReferencedMemberExpression=["MemberExpression"],PH=be.BindingIdentifier=["Identifier"],AH=be.Statement=["Statement"],vH=be.Expression=["Expression"],CH=be.Scope=["Scopable","Pattern"],IH=be.Referenced=null,wH=be.BlockScoped=null,OH=be.Var=["VariableDeclaration"],NH=be.User=null,_H=be.Generated=null,DH=be.Pure=null,kH=be.Flow=["Flow","ImportDeclaration","ExportDeclaration","ImportSpecifier"],LH=be.RestProperty=["RestElement"],MH=be.SpreadProperty=["RestElement"],BH=be.ExistentialTypeParam=["ExistsTypeAnnotation"],FH=be.NumericLiteralTypeAnnotation=["NumberLiteralTypeAnnotation"],jH=be.ForAwaitStatement=["ForOfStatement"]});var Fh=A((qH,Bh)=>{var di=1e3,mi=di*60,yi=mi*60,Vr=yi*24,QB=Vr*7,ZB=Vr*365.25;Bh.exports=function(e,t){t=t||{};var r=typeof e;if(r==="string"&&e.length>0)return e3(e);if(r==="number"&&isFinite(e))return t.long?r3(e):t3(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function e3(e){if(e=String(e),!(e.length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]),i=(t[2]||"ms").toLowerCase();switch(i){case"years":case"year":case"yrs":case"yr":case"y":return r*ZB;case"weeks":case"week":case"w":return r*QB;case"days":case"day":case"d":return r*Vr;case"hours":case"hour":case"hrs":case"hr":case"h":return r*yi;case"minutes":case"minute":case"mins":case"min":case"m":return r*mi;case"seconds":case"second":case"secs":case"sec":case"s":return r*di;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function t3(e){var t=Math.abs(e);return t>=Vr?Math.round(e/Vr)+"d":t>=yi?Math.round(e/yi)+"h":t>=mi?Math.round(e/mi)+"m":t>=di?Math.round(e/di)+"s":e+"ms"}function r3(e){var t=Math.abs(e);return t>=Vr?pn(e,t,Vr,"day"):t>=yi?pn(e,t,yi,"hour"):t>=mi?pn(e,t,mi,"minute"):t>=di?pn(e,t,di,"second"):e+" ms"}function pn(e,t,r,i){var s=t>=r*1.5;return Math.round(e/r)+" "+i+(s?"s":"")}});var su=A((UH,jh)=>{function i3(e){r.debug=r,r.default=r,r.coerce=l,r.disable=a,r.enable=s,r.enabled=o,r.humanize=Fh(),r.destroy=u,Object.keys(e).forEach(c=>{r[c]=e[c]}),r.names=[],r.skips=[],r.formatters={};function t(c){let T=0;for(let P=0;P<c.length;P++)T=(T<<5)-T+c.charCodeAt(P),T|=0;return r.colors[Math.abs(T)%r.colors.length]}r.selectColor=t;function r(c){let T,P=null,E,v;function D(..._){if(!D.enabled)return;let N=D,M=Number(new Date),ne=M-(T||M);N.diff=ne,N.prev=T,N.curr=M,T=M,_[0]=r.coerce(_[0]),typeof _[0]!="string"&&_.unshift("%O");let ae=0;_[0]=_[0].replace(/%([a-zA-Z%])/g,(ee,qe)=>{if(ee==="%%")return"%";ae++;let Ue=r.formatters[qe];if(typeof Ue=="function"){let Y=_[ae];ee=Ue.call(N,Y),_.splice(ae,1),ae--}return ee}),r.formatArgs.call(N,_),(N.log||r.log).apply(N,_)}return D.namespace=c,D.useColors=r.useColors(),D.color=r.selectColor(c),D.extend=i,D.destroy=r.destroy,Object.defineProperty(D,"enabled",{enumerable:!0,configurable:!1,get:()=>P!==null?P:(E!==r.namespaces&&(E=r.namespaces,v=r.enabled(c)),v),set:_=>{P=_}}),typeof r.init=="function"&&r.init(D),D}function i(c,T){let P=r(this.namespace+(typeof T>"u"?":":T)+c);return P.log=this.log,P}function s(c){r.save(c),r.namespaces=c,r.names=[],r.skips=[];let T=(typeof c=="string"?c:"").trim().replace(" ",",").split(",").filter(Boolean);for(let P of T)P[0]==="-"?r.skips.push(P.slice(1)):r.names.push(P)}function n(c,T){let P=0,E=0,v=-1,D=0;for(;P<c.length;)if(E<T.length&&(T[E]===c[P]||T[E]==="*"))T[E]==="*"?(v=E,D=P,E++):(P++,E++);else if(v!==-1)E=v+1,D++,P=D;else return!1;for(;E<T.length&&T[E]==="*";)E++;return E===T.length}function a(){let c=[...r.names,...r.skips.map(T=>"-"+T)].join(",");return r.enable(""),c}function o(c){for(let T of r.skips)if(n(c,T))return!1;for(let T of r.names)if(n(c,T))return!0;return!1}function l(c){return c instanceof Error?c.stack||c.message:c}function u(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}jh.exports=i3});var Rh=A((Pt,fn)=>{Pt.formatArgs=n3;Pt.save=a3;Pt.load=o3;Pt.useColors=s3;Pt.storage=l3();Pt.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();Pt.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function s3(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function n3(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+fn.exports.humanize(this.diff),!this.useColors)return;let t="color: "+this.color;e.splice(1,0,t,"color: inherit");let r=0,i=0;e[0].replace(/%[a-zA-Z%]/g,s=>{s!=="%%"&&(r++,s==="%c"&&(i=r))}),e.splice(i,0,t)}Pt.log=console.debug||console.log||(()=>{});function a3(e){try{e?Pt.storage.setItem("debug",e):Pt.storage.removeItem("debug")}catch{}}function o3(){let e;try{e=Pt.storage.getItem("debug")}catch{}return!e&&typeof process<"u"&&"env"in process&&(e=process.env.DEBUG),e}function l3(){try{return localStorage}catch{}}fn.exports=su()(Pt);var{formatters:u3}=fn.exports;u3.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}});var Uh=A((VH,qh)=>{"use strict";qh.exports=(e,t=process.argv)=>{let r=e.startsWith("-")?"":e.length===1?"-":"--",i=t.indexOf(r+e),s=t.indexOf("--");return i!==-1&&(s===-1||i<s)}});var Wh=A((KH,Kh)=>{"use strict";var c3=Di("os"),Vh=Di("tty"),Ot=Uh(),{env:Qe}=process,Er;Ot("no-color")||Ot("no-colors")||Ot("color=false")||Ot("color=never")?Er=0:(Ot("color")||Ot("colors")||Ot("color=true")||Ot("color=always"))&&(Er=1);"FORCE_COLOR"in Qe&&(Qe.FORCE_COLOR==="true"?Er=1:Qe.FORCE_COLOR==="false"?Er=0:Er=Qe.FORCE_COLOR.length===0?1:Math.min(parseInt(Qe.FORCE_COLOR,10),3));function nu(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function au(e,t){if(Er===0)return 0;if(Ot("color=16m")||Ot("color=full")||Ot("color=truecolor"))return 3;if(Ot("color=256"))return 2;if(e&&!t&&Er===void 0)return 0;let r=Er||0;if(Qe.TERM==="dumb")return r;if(process.platform==="win32"){let i=c3.release().split(".");return Number(i[0])>=10&&Number(i[2])>=10586?Number(i[2])>=14931?3:2:1}if("CI"in Qe)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(i=>i in Qe)||Qe.CI_NAME==="codeship"?1:r;if("TEAMCITY_VERSION"in Qe)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Qe.TEAMCITY_VERSION)?1:0;if(Qe.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in Qe){let i=parseInt((Qe.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Qe.TERM_PROGRAM){case"iTerm.app":return i>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Qe.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Qe.TERM)||"COLORTERM"in Qe?1:r}function p3(e){let t=au(e,e&&e.isTTY);return nu(t)}Kh.exports={supportsColor:p3,stdout:nu(au(!0,Vh.isatty(1))),stderr:nu(au(!0,Vh.isatty(2)))}});var Xh=A((Ze,dn)=>{var f3=Di("tty"),hn=Di("util");Ze.init=b3;Ze.log=y3;Ze.formatArgs=d3;Ze.save=T3;Ze.load=g3;Ze.useColors=h3;Ze.destroy=hn.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");Ze.colors=[6,2,3,4,5,1];try{let e=Wh();e&&(e.stderr||e).level>=2&&(Ze.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}Ze.inspectOpts=Object.keys(process.env).filter(e=>/^debug_/i.test(e)).reduce((e,t)=>{let r=t.substring(6).toLowerCase().replace(/_([a-z])/g,(s,n)=>n.toUpperCase()),i=process.env[t];return/^(yes|on|true|enabled)$/i.test(i)?i=!0:/^(no|off|false|disabled)$/i.test(i)?i=!1:i==="null"?i=null:i=Number(i),e[r]=i,e},{});function h3(){return"colors"in Ze.inspectOpts?!!Ze.inspectOpts.colors:f3.isatty(process.stderr.fd)}function d3(e){let{namespace:t,useColors:r}=this;if(r){let i=this.color,s="\x1B[3"+(i<8?i:"8;5;"+i),n=` ${s};1m${t} \x1B[0m`;e[0]=n+e[0].split(`
|
|
18
|
-
`).join(`
|
|
19
|
-
`+n),e.push(s+"m+"+dn.exports.humanize(this.diff)+"\x1B[0m")}else e[0]=m3()+t+" "+e[0]}function m3(){return Ze.inspectOpts.hideDate?"":new Date().toISOString()+" "}function y3(...e){return process.stderr.write(hn.formatWithOptions(Ze.inspectOpts,...e)+`
|
|
20
|
-
`)}function T3(e){e?process.env.DEBUG=e:delete process.env.DEBUG}function g3(){return process.env.DEBUG}function b3(e){e.inspectOpts={};let t=Object.keys(Ze.inspectOpts);for(let r=0;r<t.length;r++)e.inspectOpts[t[r]]=Ze.inspectOpts[t[r]]}dn.exports=su()(Ze);var{formatters:Yh}=dn.exports;Yh.o=function(e){return this.inspectOpts.colors=this.useColors,hn.inspect(e,this.inspectOpts).split(`
|
|
21
|
-
`).map(t=>t.trim()).join(" ")};Yh.O=function(e){return this.inspectOpts.colors=this.useColors,hn.inspect(e,this.inspectOpts)}});var Jh=A((WH,ou)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?ou.exports=Rh():ou.exports=Xh()});var uu=A(He=>{"use strict";Object.defineProperty(He,"__esModule",{value:!0});He.isBindingIdentifier=V3;He.isBlockScoped=J3;He.isExpression=W3;He.isFlow=Q3;He.isForAwaitStatement=tF;He.isGenerated=G3;He.isPure=z3;He.isReferenced=X3;He.isReferencedIdentifier=q3;He.isReferencedMemberExpression=U3;He.isRestProperty=Z3;He.isScope=Y3;He.isSpreadProperty=eF;He.isStatement=K3;He.isUser=H3;He.isVar=$3;var S3=de(),{isBinding:x3,isBlockScoped:E3,isExportDeclaration:P3,isExpression:A3,isFlow:v3,isForStatement:C3,isForXStatement:I3,isIdentifier:$h,isImportDeclaration:w3,isImportSpecifier:O3,isJSXIdentifier:N3,isJSXMemberExpression:_3,isMemberExpression:D3,isRestElement:Hh,isReferenced:lu,isScope:k3,isStatement:L3,isVar:M3,isVariableDeclaration:B3,react:F3,isForOfStatement:j3}=S3,{isCompatTag:R3}=F3;function q3(e){let{node:t,parent:r}=this;if(!$h(t,e)&&!_3(r,e))if(N3(t,e)){if(R3(t.name))return!1}else return!1;return lu(t,r,this.parentPath.parent)}function U3(){let{node:e,parent:t}=this;return D3(e)&&lu(e,t)}function V3(){let{node:e,parent:t}=this,r=this.parentPath.parent;return $h(e)&&x3(e,t,r)}function K3(){let{node:e,parent:t}=this;return L3(e)?!(B3(e)&&(I3(t,{left:e})||C3(t,{init:e}))):!1}function W3(){return this.isIdentifier()?this.isReferencedIdentifier():A3(this.node)}function Y3(){return k3(this.node,this.parent)}function X3(){return lu(this.node,this.parent)}function J3(){return E3(this.node)}function $3(){return M3(this.node)}function H3(){return this.node&&!!this.node.loc}function G3(){return!this.isUser()}function z3(e){return this.scope.isPure(this.node,e)}function Q3(){let{node:e}=this;return v3(e)?!0:w3(e)?e.importKind==="type"||e.importKind==="typeof":P3(e)?e.exportKind==="type":O3(e)?e.importKind==="type"||e.importKind==="typeof":!1}function Z3(){var e;return Hh(this.node)&&((e=this.parentPath)==null?void 0:e.isObjectPattern())}function eF(){var e;return Hh(this.node)&&((e=this.parentPath)==null?void 0:e.isObjectExpression())}function tF(){return j3(this.node,{await:!0})}He.isExistentialTypeParam=function(){throw new Error("`path.isExistentialTypeParam` has been renamed to `path.isExistsTypeAnnotation()` in Babel 7.")},He.isNumericLiteralTypeAnnotation=function(){throw new Error("`path.isNumericLiteralTypeAnnotation()` has been renamed to `path.isNumberLiteralTypeAnnotation()` in Babel 7.")}});var os=A(Wr=>{"use strict";Object.defineProperty(Wr,"__esModule",{value:!0});Wr.environmentVisitor=uF;Wr.explode=ad;Wr.isExplodedVisitor=nd;Wr.merge=ld;Wr.verify=od;var sd=iu(),rF=uu(),iF=de(),Gh=Ht(),{DEPRECATED_KEYS:zh,DEPRECATED_ALIASES:Qh,FLIPPED_ALIAS_KEYS:Zh,TYPES:sF,__internal__deprecationWarning:ed}=iF;function nF(e){return e in sd}function nd(e){return e?._exploded}function ad(e){if(nd(e))return e;e._exploded=!0;for(let t of Object.keys(e)){if(Kr(t))continue;let r=t.split("|");if(r.length===1)continue;let i=e[t];delete e[t];for(let s of r)e[s]=i}od(e),delete e.__esModule,aF(e),id(e);for(let t of Object.keys(e)){if(Kr(t)||!nF(t))continue;let r=e[t];for(let s of Object.keys(r))r[s]=oF(t,r[s]);delete e[t];let i=sd[t];if(i!==null)for(let s of i)e[s]?as(e[s],r):e[s]=r;else as(e,r)}for(let t of Object.keys(e)){if(Kr(t))continue;let r=Zh[t];if(t in zh){let s=zh[t];ed(t,s,"Visitor "),r=[s]}else if(t in Qh){let s=Qh[t];ed(t,s,"Visitor "),r=Zh[s]}if(!r)continue;let i=e[t];delete e[t];for(let s of r){let n=e[s];n?as(n,i):e[s]=Object.assign({},i)}}for(let t of Object.keys(e))Kr(t)||id(e[t]);return e}function od(e){if(!e._verified){if(typeof e=="function")throw new Error("You passed `traverse()` a function when it expected a visitor object, are you sure you didn't mean `{ enter: Function }`?");for(let t of Object.keys(e)){if((t==="enter"||t==="exit")&&td(t,e[t]),Kr(t))continue;if(!sF.includes(t))throw new Error(`You gave us a visitor for the node type ${t} but it's not a valid type in @babel/traverse 7.25.6`);let r=e[t];if(typeof r=="object")for(let i of Object.keys(r))if(i==="enter"||i==="exit")td(`${t}.${i}`,r[i]);else throw new Error(`You passed \`traverse()\` a visitor object with the property ${t} that has the invalid property ${i}`)}e._verified=!0}}function td(e,t){let r=[].concat(t);for(let i of r)if(typeof i!="function")throw new TypeError(`Non-function found defined in ${e} with type ${typeof i}`)}function ld(e,t=[],r){let i={_verified:!0,_exploded:!0};Object.defineProperty(i,"_exploded",{enumerable:!1}),Object.defineProperty(i,"_verified",{enumerable:!1});for(let s=0;s<e.length;s++){let n=ad(e[s]),a=t[s],o=n;(a||r)&&(o=rd(o,a,r)),as(i,o);for(let l of Object.keys(n)){if(Kr(l))continue;let u=n[l];(a||r)&&(u=rd(u,a,r));let c=i[l]||(i[l]={});as(c,u)}}return i}function rd(e,t,r){let i={};for(let s of["enter","exit"]){let n=e[s];Array.isArray(n)&&(n=n.map(function(a){let o=a;return t&&(o=function(l){a.call(t,l,t)}),r&&(o=r(t?.key,s,o)),o!==a&&(o.toString=()=>a.toString()),o}),i[s]=n)}return i}function aF(e){for(let t of Object.keys(e)){if(Kr(t))continue;let r=e[t];typeof r=="function"&&(e[t]={enter:r})}}function id(e){e.enter&&!Array.isArray(e.enter)&&(e.enter=[e.enter]),e.exit&&!Array.isArray(e.exit)&&(e.exit=[e.exit])}function oF(e,t){let r=`is${e}`,i=rF[r],s=function(n){if(i.call(n))return t.apply(this,arguments)};return s.toString=()=>t.toString(),s}function Kr(e){return e[0]==="_"||e==="enter"||e==="exit"||e==="shouldSkip"||e==="denylist"||e==="noScope"||e==="skipKeys"||e==="blacklist"}function as(e,t){for(let r of["enter","exit"])t[r]&&(e[r]=[].concat(e[r]||[],t[r]))}var lF={FunctionParent(e){e.isArrowFunctionExpression()||(e.skip(),e.isMethod()&&(e.requeueComputedKeyAndDecorators?e.requeueComputedKeyAndDecorators():Gh.requeueComputedKeyAndDecorators.call(e)))},Property(e){e.isObjectProperty()||(e.skip(),e.requeueComputedKeyAndDecorators?e.requeueComputedKeyAndDecorators():Gh.requeueComputedKeyAndDecorators.call(e))}};function uF(e){return ld([lF,e])}});var ud=A(yn=>{"use strict";Object.defineProperty(yn,"__esModule",{value:!0});yn.default=void 0;var mn=de(),cF=mn,pF=Tn(),fF=os(),hF=Ht(),{getAssignmentIdentifiers:dF}=cF,mF={ReferencedIdentifier({node:e},t){e.name===t.oldName&&(e.name=t.newName)},Scope(e,t){e.scope.bindingIdentifierEquals(t.oldName,t.binding.identifier)||(e.skip(),e.isMethod()&&(e.requeueComputedKeyAndDecorators?e.requeueComputedKeyAndDecorators():hF.requeueComputedKeyAndDecorators.call(e)))},ObjectProperty({node:e,scope:t},r){let{name:i}=e.key;if(e.shorthand&&(i===r.oldName||i===r.newName)&&t.getBindingIdentifier(i)===r.binding.identifier){e.shorthand=!1;{var s;(s=e.extra)!=null&&s.shorthand&&(e.extra.shorthand=!1)}}},"AssignmentExpression|Declaration|VariableDeclarator"(e,t){if(e.isVariableDeclaration())return;let r=e.isAssignmentExpression()?dF(e.node):e.getOuterBindingIdentifiers();for(let i in r)i===t.oldName&&(r[i].name=t.newName)}},cu=class{constructor(t,r,i){this.newName=i,this.oldName=r,this.binding=t}maybeConvertFromExportDeclaration(t){let r=t.parentPath;if(r.isExportDeclaration()){if(r.isExportDefaultDeclaration()){let{declaration:i}=r.node;if(mn.isDeclaration(i)&&!i.id)return}r.isExportAllDeclaration()||r.splitExportDeclaration()}}maybeConvertFromClassFunctionDeclaration(t){return t}maybeConvertFromClassFunctionExpression(t){return t}rename(){let{binding:t,oldName:r,newName:i}=this,{scope:s,path:n}=t,a=n.find(u=>u.isDeclaration()||u.isFunctionExpression()||u.isClassExpression());a&&a.getOuterBindingIdentifiers()[r]===t.identifier&&this.maybeConvertFromExportDeclaration(a);let o=arguments[0]||s.block,l={discriminant:!0};mn.isMethod(o)&&(o.computed&&(l.key=!0),mn.isObjectMethod(o)||(l.decorators=!0)),(0,pF.traverseNode)(o,(0,fF.explode)(mF),s,this,s.path,l),arguments[0]||(s.removeOwnBinding(r),s.bindings[i]=t,this.binding.identifier.name=i),a&&(this.maybeConvertFromClassFunctionDeclaration(n),this.maybeConvertFromClassFunctionExpression(n))}};yn.default=cu});var cd=A(gn=>{"use strict";Object.defineProperty(gn,"__esModule",{value:!0});gn.default=void 0;var pu=class{constructor({identifier:t,scope:r,path:i,kind:s}){this.identifier=void 0,this.scope=void 0,this.path=void 0,this.kind=void 0,this.constantViolations=[],this.constant=!0,this.referencePaths=[],this.referenced=!1,this.references=0,this.identifier=t,this.scope=r,this.path=i,this.kind=s,(s==="var"||s==="hoisted")&&yF(i)&&this.reassign(i),this.clearValue()}deoptValue(){this.clearValue(),this.hasDeoptedValue=!0}setValue(t){this.hasDeoptedValue||(this.hasValue=!0,this.value=t)}clearValue(){this.hasDeoptedValue=!1,this.hasValue=!1,this.value=null}reassign(t){this.constant=!1,!this.constantViolations.includes(t)&&this.constantViolations.push(t)}reference(t){this.referencePaths.includes(t)||(this.referenced=!0,this.references++,this.referencePaths.push(t))}dereference(){this.references--,this.referenced=!!this.references}};gn.default=pu;function yF(e){for(let{parentPath:t,key:r}=e;t;{parentPath:t,key:r}=t){if(t.isFunctionParent())return!1;if(t.isWhile()||t.isForXStatement()||t.isForStatement()&&r==="body")return!0}return!1}});var pd=A((HH,TF)=>{TF.exports={builtin:{Array:!1,ArrayBuffer:!1,Atomics:!1,BigInt:!1,BigInt64Array:!1,BigUint64Array:!1,Boolean:!1,constructor:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,Float32Array:!1,Float64Array:!1,Function:!1,globalThis:!1,hasOwnProperty:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,isFinite:!1,isNaN:!1,isPrototypeOf:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,propertyIsEnumerable:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,SharedArrayBuffer:!1,String:!1,Symbol:!1,SyntaxError:!1,toLocaleString:!1,toString:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,valueOf:!1,WeakMap:!1,WeakSet:!1},es5:{Array:!1,Boolean:!1,constructor:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,Function:!1,hasOwnProperty:!1,Infinity:!1,isFinite:!1,isNaN:!1,isPrototypeOf:!1,JSON:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,propertyIsEnumerable:!1,RangeError:!1,ReferenceError:!1,RegExp:!1,String:!1,SyntaxError:!1,toLocaleString:!1,toString:!1,TypeError:!1,undefined:!1,unescape:!1,URIError:!1,valueOf:!1},es2015:{Array:!1,ArrayBuffer:!1,Boolean:!1,constructor:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,Float32Array:!1,Float64Array:!1,Function:!1,hasOwnProperty:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,isFinite:!1,isNaN:!1,isPrototypeOf:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,propertyIsEnumerable:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,String:!1,Symbol:!1,SyntaxError:!1,toLocaleString:!1,toString:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,valueOf:!1,WeakMap:!1,WeakSet:!1},es2017:{Array:!1,ArrayBuffer:!1,Atomics:!1,Boolean:!1,constructor:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,Float32Array:!1,Float64Array:!1,Function:!1,hasOwnProperty:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,isFinite:!1,isNaN:!1,isPrototypeOf:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,propertyIsEnumerable:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,SharedArrayBuffer:!1,String:!1,Symbol:!1,SyntaxError:!1,toLocaleString:!1,toString:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,valueOf:!1,WeakMap:!1,WeakSet:!1},browser:{AbortController:!1,AbortSignal:!1,addEventListener:!1,alert:!1,AnalyserNode:!1,Animation:!1,AnimationEffectReadOnly:!1,AnimationEffectTiming:!1,AnimationEffectTimingReadOnly:!1,AnimationEvent:!1,AnimationPlaybackEvent:!1,AnimationTimeline:!1,applicationCache:!1,ApplicationCache:!1,ApplicationCacheErrorEvent:!1,atob:!1,Attr:!1,Audio:!1,AudioBuffer:!1,AudioBufferSourceNode:!1,AudioContext:!1,AudioDestinationNode:!1,AudioListener:!1,AudioNode:!1,AudioParam:!1,AudioProcessingEvent:!1,AudioScheduledSourceNode:!1,"AudioWorkletGlobalScope ":!1,AudioWorkletNode:!1,AudioWorkletProcessor:!1,BarProp:!1,BaseAudioContext:!1,BatteryManager:!1,BeforeUnloadEvent:!1,BiquadFilterNode:!1,Blob:!1,BlobEvent:!1,blur:!1,BroadcastChannel:!1,btoa:!1,BudgetService:!1,ByteLengthQueuingStrategy:!1,Cache:!1,caches:!1,CacheStorage:!1,cancelAnimationFrame:!1,cancelIdleCallback:!1,CanvasCaptureMediaStreamTrack:!1,CanvasGradient:!1,CanvasPattern:!1,CanvasRenderingContext2D:!1,ChannelMergerNode:!1,ChannelSplitterNode:!1,CharacterData:!1,clearInterval:!1,clearTimeout:!1,clientInformation:!1,ClipboardEvent:!1,close:!1,closed:!1,CloseEvent:!1,Comment:!1,CompositionEvent:!1,confirm:!1,console:!1,ConstantSourceNode:!1,ConvolverNode:!1,CountQueuingStrategy:!1,createImageBitmap:!1,Credential:!1,CredentialsContainer:!1,crypto:!1,Crypto:!1,CryptoKey:!1,CSS:!1,CSSConditionRule:!1,CSSFontFaceRule:!1,CSSGroupingRule:!1,CSSImportRule:!1,CSSKeyframeRule:!1,CSSKeyframesRule:!1,CSSMediaRule:!1,CSSNamespaceRule:!1,CSSPageRule:!1,CSSRule:!1,CSSRuleList:!1,CSSStyleDeclaration:!1,CSSStyleRule:!1,CSSStyleSheet:!1,CSSSupportsRule:!1,CustomElementRegistry:!1,customElements:!1,CustomEvent:!1,DataTransfer:!1,DataTransferItem:!1,DataTransferItemList:!1,defaultstatus:!1,defaultStatus:!1,DelayNode:!1,DeviceMotionEvent:!1,DeviceOrientationEvent:!1,devicePixelRatio:!1,dispatchEvent:!1,document:!1,Document:!1,DocumentFragment:!1,DocumentType:!1,DOMError:!1,DOMException:!1,DOMImplementation:!1,DOMMatrix:!1,DOMMatrixReadOnly:!1,DOMParser:!1,DOMPoint:!1,DOMPointReadOnly:!1,DOMQuad:!1,DOMRect:!1,DOMRectReadOnly:!1,DOMStringList:!1,DOMStringMap:!1,DOMTokenList:!1,DragEvent:!1,DynamicsCompressorNode:!1,Element:!1,ErrorEvent:!1,event:!1,Event:!1,EventSource:!1,EventTarget:!1,external:!1,fetch:!1,File:!1,FileList:!1,FileReader:!1,find:!1,focus:!1,FocusEvent:!1,FontFace:!1,FontFaceSetLoadEvent:!1,FormData:!1,frameElement:!1,frames:!1,GainNode:!1,Gamepad:!1,GamepadButton:!1,GamepadEvent:!1,getComputedStyle:!1,getSelection:!1,HashChangeEvent:!1,Headers:!1,history:!1,History:!1,HTMLAllCollection:!1,HTMLAnchorElement:!1,HTMLAreaElement:!1,HTMLAudioElement:!1,HTMLBaseElement:!1,HTMLBodyElement:!1,HTMLBRElement:!1,HTMLButtonElement:!1,HTMLCanvasElement:!1,HTMLCollection:!1,HTMLContentElement:!1,HTMLDataElement:!1,HTMLDataListElement:!1,HTMLDetailsElement:!1,HTMLDialogElement:!1,HTMLDirectoryElement:!1,HTMLDivElement:!1,HTMLDListElement:!1,HTMLDocument:!1,HTMLElement:!1,HTMLEmbedElement:!1,HTMLFieldSetElement:!1,HTMLFontElement:!1,HTMLFormControlsCollection:!1,HTMLFormElement:!1,HTMLFrameElement:!1,HTMLFrameSetElement:!1,HTMLHeadElement:!1,HTMLHeadingElement:!1,HTMLHRElement:!1,HTMLHtmlElement:!1,HTMLIFrameElement:!1,HTMLImageElement:!1,HTMLInputElement:!1,HTMLLabelElement:!1,HTMLLegendElement:!1,HTMLLIElement:!1,HTMLLinkElement:!1,HTMLMapElement:!1,HTMLMarqueeElement:!1,HTMLMediaElement:!1,HTMLMenuElement:!1,HTMLMetaElement:!1,HTMLMeterElement:!1,HTMLModElement:!1,HTMLObjectElement:!1,HTMLOListElement:!1,HTMLOptGroupElement:!1,HTMLOptionElement:!1,HTMLOptionsCollection:!1,HTMLOutputElement:!1,HTMLParagraphElement:!1,HTMLParamElement:!1,HTMLPictureElement:!1,HTMLPreElement:!1,HTMLProgressElement:!1,HTMLQuoteElement:!1,HTMLScriptElement:!1,HTMLSelectElement:!1,HTMLShadowElement:!1,HTMLSlotElement:!1,HTMLSourceElement:!1,HTMLSpanElement:!1,HTMLStyleElement:!1,HTMLTableCaptionElement:!1,HTMLTableCellElement:!1,HTMLTableColElement:!1,HTMLTableElement:!1,HTMLTableRowElement:!1,HTMLTableSectionElement:!1,HTMLTemplateElement:!1,HTMLTextAreaElement:!1,HTMLTimeElement:!1,HTMLTitleElement:!1,HTMLTrackElement:!1,HTMLUListElement:!1,HTMLUnknownElement:!1,HTMLVideoElement:!1,IDBCursor:!1,IDBCursorWithValue:!1,IDBDatabase:!1,IDBFactory:!1,IDBIndex:!1,IDBKeyRange:!1,IDBObjectStore:!1,IDBOpenDBRequest:!1,IDBRequest:!1,IDBTransaction:!1,IDBVersionChangeEvent:!1,IdleDeadline:!1,IIRFilterNode:!1,Image:!1,ImageBitmap:!1,ImageBitmapRenderingContext:!1,ImageCapture:!1,ImageData:!1,indexedDB:!1,innerHeight:!1,innerWidth:!1,InputEvent:!1,IntersectionObserver:!1,IntersectionObserverEntry:!1,Intl:!1,isSecureContext:!1,KeyboardEvent:!1,KeyframeEffect:!1,KeyframeEffectReadOnly:!1,length:!1,localStorage:!1,location:!0,Location:!1,locationbar:!1,matchMedia:!1,MediaDeviceInfo:!1,MediaDevices:!1,MediaElementAudioSourceNode:!1,MediaEncryptedEvent:!1,MediaError:!1,MediaKeyMessageEvent:!1,MediaKeySession:!1,MediaKeyStatusMap:!1,MediaKeySystemAccess:!1,MediaList:!1,MediaQueryList:!1,MediaQueryListEvent:!1,MediaRecorder:!1,MediaSettingsRange:!1,MediaSource:!1,MediaStream:!1,MediaStreamAudioDestinationNode:!1,MediaStreamAudioSourceNode:!1,MediaStreamEvent:!1,MediaStreamTrack:!1,MediaStreamTrackEvent:!1,menubar:!1,MessageChannel:!1,MessageEvent:!1,MessagePort:!1,MIDIAccess:!1,MIDIConnectionEvent:!1,MIDIInput:!1,MIDIInputMap:!1,MIDIMessageEvent:!1,MIDIOutput:!1,MIDIOutputMap:!1,MIDIPort:!1,MimeType:!1,MimeTypeArray:!1,MouseEvent:!1,moveBy:!1,moveTo:!1,MutationEvent:!1,MutationObserver:!1,MutationRecord:!1,name:!1,NamedNodeMap:!1,NavigationPreloadManager:!1,navigator:!1,Navigator:!1,NetworkInformation:!1,Node:!1,NodeFilter:!1,NodeIterator:!1,NodeList:!1,Notification:!1,OfflineAudioCompletionEvent:!1,OfflineAudioContext:!1,offscreenBuffering:!1,OffscreenCanvas:!0,onabort:!0,onafterprint:!0,onanimationend:!0,onanimationiteration:!0,onanimationstart:!0,onappinstalled:!0,onauxclick:!0,onbeforeinstallprompt:!0,onbeforeprint:!0,onbeforeunload:!0,onblur:!0,oncancel:!0,oncanplay:!0,oncanplaythrough:!0,onchange:!0,onclick:!0,onclose:!0,oncontextmenu:!0,oncuechange:!0,ondblclick:!0,ondevicemotion:!0,ondeviceorientation:!0,ondeviceorientationabsolute:!0,ondrag:!0,ondragend:!0,ondragenter:!0,ondragleave:!0,ondragover:!0,ondragstart:!0,ondrop:!0,ondurationchange:!0,onemptied:!0,onended:!0,onerror:!0,onfocus:!0,ongotpointercapture:!0,onhashchange:!0,oninput:!0,oninvalid:!0,onkeydown:!0,onkeypress:!0,onkeyup:!0,onlanguagechange:!0,onload:!0,onloadeddata:!0,onloadedmetadata:!0,onloadstart:!0,onlostpointercapture:!0,onmessage:!0,onmessageerror:!0,onmousedown:!0,onmouseenter:!0,onmouseleave:!0,onmousemove:!0,onmouseout:!0,onmouseover:!0,onmouseup:!0,onmousewheel:!0,onoffline:!0,ononline:!0,onpagehide:!0,onpageshow:!0,onpause:!0,onplay:!0,onplaying:!0,onpointercancel:!0,onpointerdown:!0,onpointerenter:!0,onpointerleave:!0,onpointermove:!0,onpointerout:!0,onpointerover:!0,onpointerup:!0,onpopstate:!0,onprogress:!0,onratechange:!0,onrejectionhandled:!0,onreset:!0,onresize:!0,onscroll:!0,onsearch:!0,onseeked:!0,onseeking:!0,onselect:!0,onstalled:!0,onstorage:!0,onsubmit:!0,onsuspend:!0,ontimeupdate:!0,ontoggle:!0,ontransitionend:!0,onunhandledrejection:!0,onunload:!0,onvolumechange:!0,onwaiting:!0,onwheel:!0,open:!1,openDatabase:!1,opener:!1,Option:!1,origin:!1,OscillatorNode:!1,outerHeight:!1,outerWidth:!1,PageTransitionEvent:!1,pageXOffset:!1,pageYOffset:!1,PannerNode:!1,parent:!1,Path2D:!1,PaymentAddress:!1,PaymentRequest:!1,PaymentRequestUpdateEvent:!1,PaymentResponse:!1,performance:!1,Performance:!1,PerformanceEntry:!1,PerformanceLongTaskTiming:!1,PerformanceMark:!1,PerformanceMeasure:!1,PerformanceNavigation:!1,PerformanceNavigationTiming:!1,PerformanceObserver:!1,PerformanceObserverEntryList:!1,PerformancePaintTiming:!1,PerformanceResourceTiming:!1,PerformanceTiming:!1,PeriodicWave:!1,Permissions:!1,PermissionStatus:!1,personalbar:!1,PhotoCapabilities:!1,Plugin:!1,PluginArray:!1,PointerEvent:!1,PopStateEvent:!1,postMessage:!1,Presentation:!1,PresentationAvailability:!1,PresentationConnection:!1,PresentationConnectionAvailableEvent:!1,PresentationConnectionCloseEvent:!1,PresentationConnectionList:!1,PresentationReceiver:!1,PresentationRequest:!1,print:!1,ProcessingInstruction:!1,ProgressEvent:!1,PromiseRejectionEvent:!1,prompt:!1,PushManager:!1,PushSubscription:!1,PushSubscriptionOptions:!1,queueMicrotask:!1,RadioNodeList:!1,Range:!1,ReadableStream:!1,registerProcessor:!1,RemotePlayback:!1,removeEventListener:!1,Request:!1,requestAnimationFrame:!1,requestIdleCallback:!1,resizeBy:!1,ResizeObserver:!1,ResizeObserverEntry:!1,resizeTo:!1,Response:!1,RTCCertificate:!1,RTCDataChannel:!1,RTCDataChannelEvent:!1,RTCDtlsTransport:!1,RTCIceCandidate:!1,RTCIceGatherer:!1,RTCIceTransport:!1,RTCPeerConnection:!1,RTCPeerConnectionIceEvent:!1,RTCRtpContributingSource:!1,RTCRtpReceiver:!1,RTCRtpSender:!1,RTCSctpTransport:!1,RTCSessionDescription:!1,RTCStatsReport:!1,RTCTrackEvent:!1,screen:!1,Screen:!1,screenLeft:!1,ScreenOrientation:!1,screenTop:!1,screenX:!1,screenY:!1,ScriptProcessorNode:!1,scroll:!1,scrollbars:!1,scrollBy:!1,scrollTo:!1,scrollX:!1,scrollY:!1,SecurityPolicyViolationEvent:!1,Selection:!1,self:!1,ServiceWorker:!1,ServiceWorkerContainer:!1,ServiceWorkerRegistration:!1,sessionStorage:!1,setInterval:!1,setTimeout:!1,ShadowRoot:!1,SharedWorker:!1,SourceBuffer:!1,SourceBufferList:!1,speechSynthesis:!1,SpeechSynthesisEvent:!1,SpeechSynthesisUtterance:!1,StaticRange:!1,status:!1,statusbar:!1,StereoPannerNode:!1,stop:!1,Storage:!1,StorageEvent:!1,StorageManager:!1,styleMedia:!1,StyleSheet:!1,StyleSheetList:!1,SubtleCrypto:!1,SVGAElement:!1,SVGAngle:!1,SVGAnimatedAngle:!1,SVGAnimatedBoolean:!1,SVGAnimatedEnumeration:!1,SVGAnimatedInteger:!1,SVGAnimatedLength:!1,SVGAnimatedLengthList:!1,SVGAnimatedNumber:!1,SVGAnimatedNumberList:!1,SVGAnimatedPreserveAspectRatio:!1,SVGAnimatedRect:!1,SVGAnimatedString:!1,SVGAnimatedTransformList:!1,SVGAnimateElement:!1,SVGAnimateMotionElement:!1,SVGAnimateTransformElement:!1,SVGAnimationElement:!1,SVGCircleElement:!1,SVGClipPathElement:!1,SVGComponentTransferFunctionElement:!1,SVGDefsElement:!1,SVGDescElement:!1,SVGDiscardElement:!1,SVGElement:!1,SVGEllipseElement:!1,SVGFEBlendElement:!1,SVGFEColorMatrixElement:!1,SVGFEComponentTransferElement:!1,SVGFECompositeElement:!1,SVGFEConvolveMatrixElement:!1,SVGFEDiffuseLightingElement:!1,SVGFEDisplacementMapElement:!1,SVGFEDistantLightElement:!1,SVGFEDropShadowElement:!1,SVGFEFloodElement:!1,SVGFEFuncAElement:!1,SVGFEFuncBElement:!1,SVGFEFuncGElement:!1,SVGFEFuncRElement:!1,SVGFEGaussianBlurElement:!1,SVGFEImageElement:!1,SVGFEMergeElement:!1,SVGFEMergeNodeElement:!1,SVGFEMorphologyElement:!1,SVGFEOffsetElement:!1,SVGFEPointLightElement:!1,SVGFESpecularLightingElement:!1,SVGFESpotLightElement:!1,SVGFETileElement:!1,SVGFETurbulenceElement:!1,SVGFilterElement:!1,SVGForeignObjectElement:!1,SVGGElement:!1,SVGGeometryElement:!1,SVGGradientElement:!1,SVGGraphicsElement:!1,SVGImageElement:!1,SVGLength:!1,SVGLengthList:!1,SVGLinearGradientElement:!1,SVGLineElement:!1,SVGMarkerElement:!1,SVGMaskElement:!1,SVGMatrix:!1,SVGMetadataElement:!1,SVGMPathElement:!1,SVGNumber:!1,SVGNumberList:!1,SVGPathElement:!1,SVGPatternElement:!1,SVGPoint:!1,SVGPointList:!1,SVGPolygonElement:!1,SVGPolylineElement:!1,SVGPreserveAspectRatio:!1,SVGRadialGradientElement:!1,SVGRect:!1,SVGRectElement:!1,SVGScriptElement:!1,SVGSetElement:!1,SVGStopElement:!1,SVGStringList:!1,SVGStyleElement:!1,SVGSVGElement:!1,SVGSwitchElement:!1,SVGSymbolElement:!1,SVGTextContentElement:!1,SVGTextElement:!1,SVGTextPathElement:!1,SVGTextPositioningElement:!1,SVGTitleElement:!1,SVGTransform:!1,SVGTransformList:!1,SVGTSpanElement:!1,SVGUnitTypes:!1,SVGUseElement:!1,SVGViewElement:!1,TaskAttributionTiming:!1,Text:!1,TextDecoder:!1,TextEncoder:!1,TextEvent:!1,TextMetrics:!1,TextTrack:!1,TextTrackCue:!1,TextTrackCueList:!1,TextTrackList:!1,TimeRanges:!1,toolbar:!1,top:!1,Touch:!1,TouchEvent:!1,TouchList:!1,TrackEvent:!1,TransitionEvent:!1,TreeWalker:!1,UIEvent:!1,URL:!1,URLSearchParams:!1,ValidityState:!1,visualViewport:!1,VisualViewport:!1,VTTCue:!1,WaveShaperNode:!1,WebAssembly:!1,WebGL2RenderingContext:!1,WebGLActiveInfo:!1,WebGLBuffer:!1,WebGLContextEvent:!1,WebGLFramebuffer:!1,WebGLProgram:!1,WebGLQuery:!1,WebGLRenderbuffer:!1,WebGLRenderingContext:!1,WebGLSampler:!1,WebGLShader:!1,WebGLShaderPrecisionFormat:!1,WebGLSync:!1,WebGLTexture:!1,WebGLTransformFeedback:!1,WebGLUniformLocation:!1,WebGLVertexArrayObject:!1,WebSocket:!1,WheelEvent:!1,window:!1,Window:!1,Worker:!1,WritableStream:!1,XMLDocument:!1,XMLHttpRequest:!1,XMLHttpRequestEventTarget:!1,XMLHttpRequestUpload:!1,XMLSerializer:!1,XPathEvaluator:!1,XPathExpression:!1,XPathResult:!1,XSLTProcessor:!1},worker:{addEventListener:!1,applicationCache:!1,atob:!1,Blob:!1,BroadcastChannel:!1,btoa:!1,Cache:!1,caches:!1,clearInterval:!1,clearTimeout:!1,close:!0,console:!1,fetch:!1,FileReaderSync:!1,FormData:!1,Headers:!1,IDBCursor:!1,IDBCursorWithValue:!1,IDBDatabase:!1,IDBFactory:!1,IDBIndex:!1,IDBKeyRange:!1,IDBObjectStore:!1,IDBOpenDBRequest:!1,IDBRequest:!1,IDBTransaction:!1,IDBVersionChangeEvent:!1,ImageData:!1,importScripts:!0,indexedDB:!1,location:!1,MessageChannel:!1,MessagePort:!1,name:!1,navigator:!1,Notification:!1,onclose:!0,onconnect:!0,onerror:!0,onlanguagechange:!0,onmessage:!0,onoffline:!0,ononline:!0,onrejectionhandled:!0,onunhandledrejection:!0,performance:!1,Performance:!1,PerformanceEntry:!1,PerformanceMark:!1,PerformanceMeasure:!1,PerformanceNavigation:!1,PerformanceResourceTiming:!1,PerformanceTiming:!1,postMessage:!0,Promise:!1,queueMicrotask:!1,removeEventListener:!1,Request:!1,Response:!1,self:!0,ServiceWorkerRegistration:!1,setInterval:!1,setTimeout:!1,TextDecoder:!1,TextEncoder:!1,URL:!1,URLSearchParams:!1,WebSocket:!1,Worker:!1,WorkerGlobalScope:!1,XMLHttpRequest:!1},node:{__dirname:!1,__filename:!1,Buffer:!1,clearImmediate:!1,clearInterval:!1,clearTimeout:!1,console:!1,exports:!0,global:!1,Intl:!1,module:!1,process:!1,queueMicrotask:!1,require:!1,setImmediate:!1,setInterval:!1,setTimeout:!1,TextDecoder:!1,TextEncoder:!1,URL:!1,URLSearchParams:!1},commonjs:{exports:!0,global:!1,module:!1,require:!1},amd:{define:!1,require:!1},mocha:{after:!1,afterEach:!1,before:!1,beforeEach:!1,context:!1,describe:!1,it:!1,mocha:!1,run:!1,setup:!1,specify:!1,suite:!1,suiteSetup:!1,suiteTeardown:!1,teardown:!1,test:!1,xcontext:!1,xdescribe:!1,xit:!1,xspecify:!1},jasmine:{afterAll:!1,afterEach:!1,beforeAll:!1,beforeEach:!1,describe:!1,expect:!1,fail:!1,fdescribe:!1,fit:!1,it:!1,jasmine:!1,pending:!1,runs:!1,spyOn:!1,spyOnProperty:!1,waits:!1,waitsFor:!1,xdescribe:!1,xit:!1},jest:{afterAll:!1,afterEach:!1,beforeAll:!1,beforeEach:!1,describe:!1,expect:!1,fdescribe:!1,fit:!1,it:!1,jest:!1,pit:!1,require:!1,test:!1,xdescribe:!1,xit:!1,xtest:!1},qunit:{asyncTest:!1,deepEqual:!1,equal:!1,expect:!1,module:!1,notDeepEqual:!1,notEqual:!1,notOk:!1,notPropEqual:!1,notStrictEqual:!1,ok:!1,propEqual:!1,QUnit:!1,raises:!1,start:!1,stop:!1,strictEqual:!1,test:!1,throws:!1},phantomjs:{console:!0,exports:!0,phantom:!0,require:!0,WebPage:!0},couch:{emit:!1,exports:!1,getRow:!1,log:!1,module:!1,provides:!1,require:!1,respond:!1,send:!1,start:!1,sum:!1},rhino:{defineClass:!1,deserialize:!1,gc:!1,help:!1,importClass:!1,importPackage:!1,java:!1,load:!1,loadClass:!1,Packages:!1,print:!1,quit:!1,readFile:!1,readUrl:!1,runCommand:!1,seal:!1,serialize:!1,spawn:!1,sync:!1,toint32:!1,version:!1},nashorn:{__DIR__:!1,__FILE__:!1,__LINE__:!1,com:!1,edu:!1,exit:!1,java:!1,Java:!1,javafx:!1,JavaImporter:!1,javax:!1,JSAdapter:!1,load:!1,loadWithNewGlobal:!1,org:!1,Packages:!1,print:!1,quit:!1},wsh:{ActiveXObject:!0,Enumerator:!0,GetObject:!0,ScriptEngine:!0,ScriptEngineBuildVersion:!0,ScriptEngineMajorVersion:!0,ScriptEngineMinorVersion:!0,VBArray:!0,WScript:!0,WSH:!0,XDomainRequest:!0},jquery:{$:!1,jQuery:!1},yui:{YAHOO:!1,YAHOO_config:!1,YUI:!1,YUI_config:!1},shelljs:{cat:!1,cd:!1,chmod:!1,config:!1,cp:!1,dirs:!1,echo:!1,env:!1,error:!1,exec:!1,exit:!1,find:!1,grep:!1,ln:!1,ls:!1,mkdir:!1,mv:!1,popd:!1,pushd:!1,pwd:!1,rm:!1,sed:!1,set:!1,target:!1,tempdir:!1,test:!1,touch:!1,which:!1},prototypejs:{$:!1,$$:!1,$A:!1,$break:!1,$continue:!1,$F:!1,$H:!1,$R:!1,$w:!1,Abstract:!1,Ajax:!1,Autocompleter:!1,Builder:!1,Class:!1,Control:!1,Draggable:!1,Draggables:!1,Droppables:!1,Effect:!1,Element:!1,Enumerable:!1,Event:!1,Field:!1,Form:!1,Hash:!1,Insertion:!1,ObjectRange:!1,PeriodicalExecuter:!1,Position:!1,Prototype:!1,Scriptaculous:!1,Selector:!1,Sortable:!1,SortableObserver:!1,Sound:!1,Template:!1,Toggle:!1,Try:!1},meteor:{_:!1,$:!1,Accounts:!1,AccountsClient:!1,AccountsCommon:!1,AccountsServer:!1,App:!1,Assets:!1,Blaze:!1,check:!1,Cordova:!1,DDP:!1,DDPRateLimiter:!1,DDPServer:!1,Deps:!1,EJSON:!1,Email:!1,HTTP:!1,Log:!1,Match:!1,Meteor:!1,Mongo:!1,MongoInternals:!1,Npm:!1,Package:!1,Plugin:!1,process:!1,Random:!1,ReactiveDict:!1,ReactiveVar:!1,Router:!1,ServiceConfiguration:!1,Session:!1,share:!1,Spacebars:!1,Template:!1,Tinytest:!1,Tracker:!1,UI:!1,Utils:!1,WebApp:!1,WebAppInternals:!1},mongo:{_isWindows:!1,_rand:!1,BulkWriteResult:!1,cat:!1,cd:!1,connect:!1,db:!1,getHostName:!1,getMemInfo:!1,hostname:!1,ISODate:!1,listFiles:!1,load:!1,ls:!1,md5sumFile:!1,mkdir:!1,Mongo:!1,NumberInt:!1,NumberLong:!1,ObjectId:!1,PlanCache:!1,print:!1,printjson:!1,pwd:!1,quit:!1,removeFile:!1,rs:!1,sh:!1,UUID:!1,version:!1,WriteResult:!1},applescript:{$:!1,Application:!1,Automation:!1,console:!1,delay:!1,Library:!1,ObjC:!1,ObjectSpecifier:!1,Path:!1,Progress:!1,Ref:!1},serviceworker:{addEventListener:!1,applicationCache:!1,atob:!1,Blob:!1,BroadcastChannel:!1,btoa:!1,Cache:!1,caches:!1,CacheStorage:!1,clearInterval:!1,clearTimeout:!1,Client:!1,clients:!1,Clients:!1,close:!0,console:!1,ExtendableEvent:!1,ExtendableMessageEvent:!1,fetch:!1,FetchEvent:!1,FileReaderSync:!1,FormData:!1,Headers:!1,IDBCursor:!1,IDBCursorWithValue:!1,IDBDatabase:!1,IDBFactory:!1,IDBIndex:!1,IDBKeyRange:!1,IDBObjectStore:!1,IDBOpenDBRequest:!1,IDBRequest:!1,IDBTransaction:!1,IDBVersionChangeEvent:!1,ImageData:!1,importScripts:!1,indexedDB:!1,location:!1,MessageChannel:!1,MessagePort:!1,name:!1,navigator:!1,Notification:!1,onclose:!0,onconnect:!0,onerror:!0,onfetch:!0,oninstall:!0,onlanguagechange:!0,onmessage:!0,onmessageerror:!0,onnotificationclick:!0,onnotificationclose:!0,onoffline:!0,ononline:!0,onpush:!0,onpushsubscriptionchange:!0,onrejectionhandled:!0,onsync:!0,onunhandledrejection:!0,performance:!1,Performance:!1,PerformanceEntry:!1,PerformanceMark:!1,PerformanceMeasure:!1,PerformanceNavigation:!1,PerformanceResourceTiming:!1,PerformanceTiming:!1,postMessage:!0,Promise:!1,queueMicrotask:!1,registration:!1,removeEventListener:!1,Request:!1,Response:!1,self:!1,ServiceWorker:!1,ServiceWorkerContainer:!1,ServiceWorkerGlobalScope:!1,ServiceWorkerMessageEvent:!1,ServiceWorkerRegistration:!1,setInterval:!1,setTimeout:!1,skipWaiting:!1,TextDecoder:!1,TextEncoder:!1,URL:!1,URLSearchParams:!1,WebSocket:!1,WindowClient:!1,Worker:!1,WorkerGlobalScope:!1,XMLHttpRequest:!1},atomtest:{advanceClock:!1,fakeClearInterval:!1,fakeClearTimeout:!1,fakeSetInterval:!1,fakeSetTimeout:!1,resetTimeouts:!1,waitsForPromise:!1},embertest:{andThen:!1,click:!1,currentPath:!1,currentRouteName:!1,currentURL:!1,fillIn:!1,find:!1,findAll:!1,findWithAssert:!1,keyEvent:!1,pauseTest:!1,resumeTest:!1,triggerEvent:!1,visit:!1,wait:!1},protractor:{$:!1,$$:!1,browser:!1,by:!1,By:!1,DartObject:!1,element:!1,protractor:!1},"shared-node-browser":{clearInterval:!1,clearTimeout:!1,console:!1,setInterval:!1,setTimeout:!1,URL:!1,URLSearchParams:!1},webextensions:{browser:!1,chrome:!1,opr:!1},greasemonkey:{cloneInto:!1,createObjectIn:!1,exportFunction:!1,GM:!1,GM_addStyle:!1,GM_deleteValue:!1,GM_getResourceText:!1,GM_getResourceURL:!1,GM_getValue:!1,GM_info:!1,GM_listValues:!1,GM_log:!1,GM_openInTab:!1,GM_registerMenuCommand:!1,GM_setClipboard:!1,GM_setValue:!1,GM_xmlhttpRequest:!1,unsafeWindow:!1},devtools:{$:!1,$_:!1,$$:!1,$0:!1,$1:!1,$2:!1,$3:!1,$4:!1,$x:!1,chrome:!1,clear:!1,copy:!1,debug:!1,dir:!1,dirxml:!1,getEventListeners:!1,inspect:!1,keys:!1,monitor:!1,monitorEvents:!1,profile:!1,profileEnd:!1,queryObjects:!1,table:!1,undebug:!1,unmonitor:!1,unmonitorEvents:!1,values:!1}}});var hd=A((GH,fd)=>{"use strict";fd.exports=pd()});var Yr=A(At=>{"use strict";Object.defineProperty(At,"__esModule",{value:!0});At.clear=bF;At.clearPath=dd;At.clearScope=md;At.getCachedPaths=SF;At.getOrCreateCachedPaths=xF;At.scope=At.path=void 0;var bn=At.path=new WeakMap,gF=At.scope=new WeakMap;function bF(){dd(),md()}function dd(){At.path=bn=new WeakMap}function md(){At.scope=gF=new WeakMap}var fu=Object.freeze({});function SF(e,t){var r,i;return e=null,(r=bn.get((i=e)!=null?i:fu))==null?void 0:r.get(t)}function xF(e,t){var r,i;e=null;let s=bn.get((r=e)!=null?r:fu);s||bn.set((i=e)!=null?i:fu,s=new WeakMap);let n=s.get(t);return n||s.set(t,n=new Map),n}});var yu=A(xn=>{"use strict";Object.defineProperty(xn,"__esModule",{value:!0});xn.default=void 0;var EF=ud(),PF=us(),AF=cd(),vF=hd(),vd=de(),CF=vd,yd=Yr(),IF=os(),{NOT_LOCAL_BINDING:Td,assignmentExpression:wF,callExpression:gd,cloneNode:bd,getBindingIdentifiers:Cd,identifier:Xr,isArrayExpression:Sd,isBinary:OF,isCallExpression:xd,isClass:NF,isClassBody:_F,isClassDeclaration:DF,isExportAllDeclaration:Id,isExportDefaultDeclaration:kF,isExportNamedDeclaration:hu,isFunctionDeclaration:LF,isIdentifier:Jr,isImportDeclaration:du,isLiteral:MF,isMemberExpression:BF,isMethod:FF,isModuleSpecifier:jF,isNullLiteral:RF,isObjectExpression:qF,isProperty:UF,isPureish:VF,isRegExpLiteral:KF,isSuper:WF,isTaggedTemplateExpression:YF,isTemplateLiteral:wd,isThisExpression:Ed,isUnaryExpression:XF,isVariableDeclaration:JF,expressionStatement:$F,matchesPattern:Pd,memberExpression:mu,numericLiteral:HF,toIdentifier:GF,variableDeclaration:zF,variableDeclarator:QF,isRecordExpression:ZF,isTupleExpression:ej,isObjectProperty:tj,isTopicReference:Ad,isMetaProperty:rj,isPrivateName:ij,isExportDeclaration:sj,buildUndefinedNode:nj,sequenceExpression:aj}=vd;function Fe(e,t){switch(e?.type){default:if(du(e)||sj(e)){var r;if((Id(e)||hu(e)||du(e))&&e.source)Fe(e.source,t);else if((hu(e)||du(e))&&(r=e.specifiers)!=null&&r.length)for(let i of e.specifiers)Fe(i,t);else(kF(e)||hu(e))&&e.declaration&&Fe(e.declaration,t)}else jF(e)?Fe(e.local,t):MF(e)&&!RF(e)&&!KF(e)&&!wd(e)&&t.push(e.value);break;case"MemberExpression":case"OptionalMemberExpression":case"JSXMemberExpression":Fe(e.object,t),Fe(e.property,t);break;case"Identifier":case"JSXIdentifier":t.push(e.name);break;case"CallExpression":case"OptionalCallExpression":case"NewExpression":Fe(e.callee,t);break;case"ObjectExpression":case"ObjectPattern":for(let i of e.properties)Fe(i,t);break;case"SpreadElement":case"RestElement":Fe(e.argument,t);break;case"ObjectProperty":case"ObjectMethod":case"ClassProperty":case"ClassMethod":case"ClassPrivateProperty":case"ClassPrivateMethod":Fe(e.key,t);break;case"ThisExpression":t.push("this");break;case"Super":t.push("super");break;case"Import":t.push("import");break;case"DoExpression":t.push("do");break;case"YieldExpression":t.push("yield"),Fe(e.argument,t);break;case"AwaitExpression":t.push("await"),Fe(e.argument,t);break;case"AssignmentExpression":Fe(e.left,t);break;case"VariableDeclarator":Fe(e.id,t);break;case"FunctionExpression":case"FunctionDeclaration":case"ClassExpression":case"ClassDeclaration":Fe(e.id,t);break;case"PrivateName":Fe(e.id,t);break;case"ParenthesizedExpression":Fe(e.expression,t);break;case"UnaryExpression":case"UpdateExpression":Fe(e.argument,t);break;case"MetaProperty":Fe(e.meta,t),Fe(e.property,t);break;case"JSXElement":Fe(e.openingElement,t);break;case"JSXOpeningElement":Fe(e.name,t);break;case"JSXFragment":Fe(e.openingFragment,t);break;case"JSXOpeningFragment":t.push("Fragment");break;case"JSXNamespacedName":Fe(e.namespace,t),Fe(e.name,t);break}}var Sn={ForStatement(e){let t=e.get("init");if(t.isVar()){let{scope:r}=e;(r.getFunctionParent()||r.getProgramParent()).registerBinding("var",t)}},Declaration(e){if(e.isBlockScoped()||e.isImportDeclaration()||e.isExportDeclaration())return;(e.scope.getFunctionParent()||e.scope.getProgramParent()).registerDeclaration(e)},ImportDeclaration(e){e.scope.getBlockParent().registerDeclaration(e)},ReferencedIdentifier(e,t){t.references.push(e)},ForXStatement(e,t){let r=e.get("left");if(r.isPattern()||r.isIdentifier())t.constantViolations.push(e);else if(r.isVar()){let{scope:i}=e;(i.getFunctionParent()||i.getProgramParent()).registerBinding("var",r)}},ExportDeclaration:{exit(e){let{node:t,scope:r}=e;if(Id(t))return;let i=t.declaration;if(DF(i)||LF(i)){let s=i.id;if(!s)return;let n=r.getBinding(s.name);n?.reference(e)}else if(JF(i))for(let s of i.declarations)for(let n of Object.keys(Cd(s))){let a=r.getBinding(n);a?.reference(e)}}},LabeledStatement(e){e.scope.getBlockParent().registerDeclaration(e)},AssignmentExpression(e,t){t.assignments.push(e)},UpdateExpression(e,t){t.constantViolations.push(e)},UnaryExpression(e,t){e.node.operator==="delete"&&t.constantViolations.push(e)},BlockScoped(e){let t=e.scope;if(t.path===e&&(t=t.parent),t.getBlockParent().registerDeclaration(e),e.isClassDeclaration()&&e.node.id){let s=e.node.id.name;e.scope.bindings[s]=e.scope.parent.getBinding(s)}},CatchClause(e){e.scope.registerBinding("let",e)},Function(e){let t=e.get("params");for(let r of t)e.scope.registerBinding("param",r);e.isFunctionExpression()&&e.node.id&&!e.node.id[Td]&&e.scope.registerBinding("local",e.get("id"),e)},ClassExpression(e){e.node.id&&!e.node.id[Td]&&e.scope.registerBinding("local",e.get("id"),e)},TSTypeAnnotation(e){e.skip()}},oj=0,ls=class e{constructor(t){this.uid=void 0,this.path=void 0,this.block=void 0,this.labels=void 0,this.inited=void 0,this.bindings=void 0,this.references=void 0,this.globals=void 0,this.uids=void 0,this.data=void 0,this.crawling=void 0;let{node:r}=t,i=yd.scope.get(r);if(i?.path===t)return i;yd.scope.set(r,this),this.uid=oj++,this.block=r,this.path=t,this.labels=new Map,this.inited=!1}get parent(){var t;let r,i=this.path;do{var s;let n=i.key==="key"||i.listKey==="decorators";i=i.parentPath,n&&i.isMethod()&&(i=i.parentPath),(s=i)!=null&&s.isScope()&&(r=i)}while(i&&!r);return(t=r)==null?void 0:t.scope}get parentBlock(){return this.path.parent}get hub(){return this.path.hub}traverse(t,r,i){(0,PF.default)(t,r,this,i,this.path)}generateDeclaredUidIdentifier(t){let r=this.generateUidIdentifier(t);return this.push({id:r}),bd(r)}generateUidIdentifier(t){return Xr(this.generateUid(t))}generateUid(t="temp"){t=GF(t).replace(/^_+/,"").replace(/\d+$/g,"");let r,i=1;do r=this._generateUid(t,i),i++;while(this.hasLabel(r)||this.hasBinding(r)||this.hasGlobal(r)||this.hasReference(r));let s=this.getProgramParent();return s.references[r]=!0,s.uids[r]=!0,r}_generateUid(t,r){let i=t;return r>1&&(i+=r),`_${i}`}generateUidBasedOnNode(t,r){let i=[];Fe(t,i);let s=i.join("$");return s=s.replace(/^_/,"")||r||"ref",this.generateUid(s.slice(0,20))}generateUidIdentifierBasedOnNode(t,r){return Xr(this.generateUidBasedOnNode(t,r))}isStatic(t){if(Ed(t)||WF(t)||Ad(t))return!0;if(Jr(t)){let r=this.getBinding(t.name);return r?r.constant:this.hasBinding(t.name)}return!1}maybeGenerateMemoised(t,r){if(this.isStatic(t))return null;{let i=this.generateUidIdentifierBasedOnNode(t);return r?i:(this.push({id:i}),bd(i))}}checkBlockScopedCollisions(t,r,i,s){if(r==="param"||t.kind==="local")return;if(r==="let"||t.kind==="let"||t.kind==="const"||t.kind==="module"||t.kind==="param"&&r==="const")throw this.hub.buildError(s,`Duplicate declaration "${i}"`,TypeError)}rename(t,r){let i=this.getBinding(t);i&&(r||(r=this.generateUidIdentifier(t).name),new EF.default(i,t,r).rename(arguments[2]))}_renameFromMap(t,r,i,s){t[r]&&(t[i]=s,t[r]=null)}dump(){let t="-".repeat(60);console.log(t);let r=this;do{console.log("#",r.block.type);for(let i of Object.keys(r.bindings)){let s=r.bindings[i];console.log(" -",i,{constant:s.constant,references:s.references,violations:s.constantViolations.length,kind:s.kind})}}while(r=r.parent);console.log(t)}toArray(t,r,i){if(Jr(t)){let a=this.getBinding(t.name);if(a!=null&&a.constant&&a.path.isGenericType("Array"))return t}if(Sd(t))return t;if(Jr(t,{name:"arguments"}))return gd(mu(mu(mu(Xr("Array"),Xr("prototype")),Xr("slice")),Xr("call")),[t]);let s,n=[t];return r===!0?s="toConsumableArray":typeof r=="number"?(n.push(HF(r)),s="slicedToArray"):s="toArray",i&&(n.unshift(this.hub.addHelper(s)),s="maybeArrayLike"),gd(this.hub.addHelper(s),n)}hasLabel(t){return!!this.getLabel(t)}getLabel(t){return this.labels.get(t)}registerLabel(t){this.labels.set(t.node.label.name,t)}registerDeclaration(t){if(t.isLabeledStatement())this.registerLabel(t);else if(t.isFunctionDeclaration())this.registerBinding("hoisted",t.get("id"),t);else if(t.isVariableDeclaration()){let r=t.get("declarations"),{kind:i}=t.node;for(let s of r)this.registerBinding(i==="using"||i==="await using"?"const":i,s)}else if(t.isClassDeclaration()){if(t.node.declare)return;this.registerBinding("let",t)}else if(t.isImportDeclaration()){let r=t.node.importKind==="type"||t.node.importKind==="typeof",i=t.get("specifiers");for(let s of i){let n=r||s.isImportSpecifier()&&(s.node.importKind==="type"||s.node.importKind==="typeof");this.registerBinding(n?"unknown":"module",s)}}else if(t.isExportDeclaration()){let r=t.get("declaration");(r.isClassDeclaration()||r.isFunctionDeclaration()||r.isVariableDeclaration())&&this.registerDeclaration(r)}else this.registerBinding("unknown",t)}buildUndefinedNode(){return nj()}registerConstantViolation(t){let r=t.getAssignmentIdentifiers();for(let s of Object.keys(r)){var i;(i=this.getBinding(s))==null||i.reassign(t)}}registerBinding(t,r,i=r){if(!t)throw new ReferenceError("no `kind`");if(r.isVariableDeclaration()){let a=r.get("declarations");for(let o of a)this.registerBinding(t,o);return}let s=this.getProgramParent(),n=r.getOuterBindingIdentifiers(!0);for(let a of Object.keys(n)){s.references[a]=!0;for(let o of n[a]){let l=this.getOwnBinding(a);if(l){if(l.identifier===o)continue;this.checkBlockScopedCollisions(l,t,a,o)}l?l.reassign(i):this.bindings[a]=new AF.default({identifier:o,scope:this,path:i,kind:t})}}}addGlobal(t){this.globals[t.name]=t}hasUid(t){let r=this;do if(r.uids[t])return!0;while(r=r.parent);return!1}hasGlobal(t){let r=this;do if(r.globals[t])return!0;while(r=r.parent);return!1}hasReference(t){return!!this.getProgramParent().references[t]}isPure(t,r){if(Jr(t)){let a=this.getBinding(t.name);return a?r?a.constant:!0:!1}else{if(Ed(t)||rj(t)||Ad(t)||ij(t))return!0;if(NF(t)){var i;return t.superClass&&!this.isPure(t.superClass,r)||((i=t.decorators)==null?void 0:i.length)>0?!1:this.isPure(t.body,r)}else if(_F(t)){for(let a of t.body)if(!this.isPure(a,r))return!1;return!0}else{if(OF(t))return this.isPure(t.left,r)&&this.isPure(t.right,r);if(Sd(t)||ej(t)){for(let a of t.elements)if(a!==null&&!this.isPure(a,r))return!1;return!0}else if(qF(t)||ZF(t)){for(let a of t.properties)if(!this.isPure(a,r))return!1;return!0}else if(FF(t)){var s;return!(t.computed&&!this.isPure(t.key,r)||((s=t.decorators)==null?void 0:s.length)>0)}else if(UF(t)){var n;return!(t.computed&&!this.isPure(t.key,r)||((n=t.decorators)==null?void 0:n.length)>0||(tj(t)||t.static)&&t.value!==null&&!this.isPure(t.value,r))}else{if(XF(t))return this.isPure(t.argument,r);if(wd(t)){for(let a of t.expressions)if(!this.isPure(a,r))return!1;return!0}else return YF(t)?Pd(t.tag,"String.raw")&&!this.hasBinding("String",{noGlobals:!0})&&this.isPure(t.quasi,r):BF(t)?!t.computed&&Jr(t.object)&&t.object.name==="Symbol"&&Jr(t.property)&&t.property.name!=="for"&&!this.hasBinding("Symbol",{noGlobals:!0}):xd(t)?Pd(t.callee,"Symbol.for")&&!this.hasBinding("Symbol",{noGlobals:!0})&&t.arguments.length===1&&CF.isStringLiteral(t.arguments[0]):VF(t)}}}}setData(t,r){return this.data[t]=r}getData(t){let r=this;do{let i=r.data[t];if(i!=null)return i}while(r=r.parent)}removeData(t){let r=this;do r.data[t]!=null&&(r.data[t]=null);while(r=r.parent)}init(){this.inited||(this.inited=!0,this.crawl())}crawl(){let t=this.path;this.references=Object.create(null),this.bindings=Object.create(null),this.globals=Object.create(null),this.uids=Object.create(null),this.data=Object.create(null);let r=this.getProgramParent();if(r.crawling)return;let i={references:[],constantViolations:[],assignments:[]};if(this.crawling=!0,t.type!=="Program"&&(0,IF.isExplodedVisitor)(Sn)){for(let n of Sn.enter)n.call(i,t,i);let s=Sn[t.type];if(s)for(let n of s.enter)n.call(i,t,i)}t.traverse(Sn,i),this.crawling=!1;for(let s of i.assignments){let n=s.getAssignmentIdentifiers();for(let a of Object.keys(n))s.scope.getBinding(a)||r.addGlobal(n[a]);s.scope.registerConstantViolation(s)}for(let s of i.references){let n=s.scope.getBinding(s.node.name);n?n.reference(s):r.addGlobal(s.node)}for(let s of i.constantViolations)s.scope.registerConstantViolation(s)}push(t){let r=this.path;r.isPattern()?r=this.getPatternParent().path:!r.isBlockStatement()&&!r.isProgram()&&(r=this.getBlockParent().path),r.isSwitchStatement()&&(r=(this.getFunctionParent()||this.getProgramParent()).path);let{init:i,unique:s,kind:n="var",id:a}=t;if(!i&&!s&&(n==="var"||n==="let")&&r.isFunction()&&!r.node.name&&xd(r.parent,{callee:r.node})&&r.parent.arguments.length<=r.node.params.length&&Jr(a)){r.pushContainer("params",a),r.scope.registerBinding("param",r.get("params")[r.node.params.length-1]);return}(r.isLoop()||r.isCatchClause()||r.isFunction())&&(r.ensureBlock(),r=r.get("body"));let o=t._blockHoist==null?2:t._blockHoist,l=`declaration:${n}:${o}`,u=!s&&r.getData(l);if(!u){let P=zF(n,[]);P._blockHoist=o,[u]=r.unshiftContainer("body",[P]),s||r.setData(l,u)}let c=QF(a,i),T=u.node.declarations.push(c);r.scope.registerBinding(n,u.get("declarations")[T-1])}getProgramParent(){let t=this;do if(t.path.isProgram())return t;while(t=t.parent);throw new Error("Couldn't find a Program")}getFunctionParent(){let t=this;do if(t.path.isFunctionParent())return t;while(t=t.parent);return null}getBlockParent(){let t=this;do if(t.path.isBlockParent())return t;while(t=t.parent);throw new Error("We couldn't find a BlockStatement, For, Switch, Function, Loop or Program...")}getPatternParent(){let t=this;do if(!t.path.isPattern())return t.getBlockParent();while(t=t.parent.parent);throw new Error("We couldn't find a BlockStatement, For, Switch, Function, Loop or Program...")}getAllBindings(){let t=Object.create(null),r=this;do{for(let i of Object.keys(r.bindings))i in t||(t[i]=r.bindings[i]);r=r.parent}while(r);return t}getAllBindingsOfKind(...t){let r=Object.create(null);for(let i of t){let s=this;do{for(let n of Object.keys(s.bindings)){let a=s.bindings[n];a.kind===i&&(r[n]=a)}s=s.parent}while(s)}return r}bindingIdentifierEquals(t,r){return this.getBindingIdentifier(t)===r}getBinding(t){let r=this,i;do{let n=r.getOwnBinding(t);if(n){var s;if(!((s=i)!=null&&s.isPattern()&&n.kind!=="param"&&n.kind!=="local"))return n}else if(!n&&t==="arguments"&&r.path.isFunction()&&!r.path.isArrowFunctionExpression())break;i=r.path}while(r=r.parent)}getOwnBinding(t){return this.bindings[t]}getBindingIdentifier(t){var r;return(r=this.getBinding(t))==null?void 0:r.identifier}getOwnBindingIdentifier(t){let r=this.bindings[t];return r?.identifier}hasOwnBinding(t){return!!this.getOwnBinding(t)}hasBinding(t,r){if(!t)return!1;let i=this;do if(i.hasOwnBinding(t))return!0;while(i=i.parent);let s,n;return typeof r=="object"?(s=r.noGlobals,n=r.noUids):typeof r=="boolean"&&(s=r),!!(!n&&this.hasUid(t)||!s&&e.globals.includes(t)||!s&&e.contextVariables.includes(t))}parentHasBinding(t,r){var i;return(i=this.parent)==null?void 0:i.hasBinding(t,r)}moveBindingTo(t,r){let i=this.getBinding(t);i&&(i.scope.removeOwnBinding(t),i.scope=r,r.bindings[t]=i)}removeOwnBinding(t){delete this.bindings[t]}removeBinding(t){var r;(r=this.getBinding(t))==null||r.scope.removeOwnBinding(t);let i=this;do i.uids[t]&&(i.uids[t]=!1);while(i=i.parent)}hoistVariables(t=r=>this.push({id:r})){this.crawl();let r=new Set;for(let s of Object.keys(this.bindings)){let n=this.bindings[s];if(!n)continue;let{path:a}=n;if(!a.isVariableDeclarator())continue;let{parent:o,parentPath:l}=a;if(o.kind!=="var"||r.has(o))continue;r.add(a.parent);let u,c=[];for(let T of o.declarations){var i;(i=u)!=null||(u=T.id),T.init&&c.push(wF("=",T.id,T.init));let P=Object.keys(Cd(T,!1,!0,!0));for(let E of P)t(Xr(E),T.init!=null)}if(l.parentPath.isFor({left:o}))l.replaceWith(u);else if(c.length===0)l.remove();else{let T=c.length===1?c[0]:aj(c);l.parentPath.isForStatement({init:o})?l.replaceWith(T):l.replaceWith($F(T))}}}};xn.default=ls;ls.globals=Object.keys(vF.builtin);ls.contextVariables=["arguments","undefined","Infinity","NaN"]});var Nd=A((En,Od)=>{(function(e,t){typeof En=="object"&&typeof Od<"u"?t(En):typeof define=="function"&&define.amd?define(["exports"],t):(e=typeof globalThis<"u"?globalThis:e||self,t(e.setArray={}))})(En,function(e){"use strict";class t{constructor(){this._indexes={__proto__:null},this.array=[]}}function r(o){return o}function i(o,l){return o._indexes[l]}function s(o,l){let u=i(o,l);if(u!==void 0)return u;let{array:c,_indexes:T}=o,P=c.push(l);return T[l]=P-1}function n(o){let{array:l,_indexes:u}=o;if(l.length===0)return;let c=l.pop();u[c]=void 0}function a(o,l){let u=i(o,l);if(u===void 0)return;let{array:c,_indexes:T}=o;for(let P=u+1;P<c.length;P++){let E=c[P];c[P-1]=E,T[E]--}T[l]=void 0,c.pop()}e.SetArray=t,e.get=i,e.pop=n,e.put=s,e.remove=a,Object.defineProperty(e,"__esModule",{value:!0})})});var Tu=A((Pn,_d)=>{(function(e,t){typeof Pn=="object"&&typeof _d<"u"?t(Pn):typeof define=="function"&&define.amd?define(["exports"],t):(e=typeof globalThis<"u"?globalThis:e||self,t(e.sourcemapCodec={}))})(Pn,function(e){"use strict";let i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=new Uint8Array(64),n=new Uint8Array(128);for(let Y=0;Y<i.length;Y++){let W=i.charCodeAt(Y);s[Y]=W,n[W]=Y}function a(Y,W){let w=0,V=0,ce=0;do{let q=Y.next();ce=n[q],w|=(ce&31)<<V,V+=5}while(ce&32);let me=w&1;return w>>>=1,me&&(w=-2147483648|-w),W+w}function o(Y,W,w){let V=W-w;V=V<0?-V<<1|1:V<<1;do{let ce=V&31;V>>>=5,V>0&&(ce|=32),Y.write(s[ce])}while(V>0);return W}function l(Y,W){return Y.pos>=W?!1:Y.peek()!==44}let u=1024*16,c=typeof TextDecoder<"u"?new TextDecoder:typeof Buffer<"u"?{decode(Y){return Buffer.from(Y.buffer,Y.byteOffset,Y.byteLength).toString()}}:{decode(Y){let W="";for(let w=0;w<Y.length;w++)W+=String.fromCharCode(Y[w]);return W}};class T{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(u)}write(W){let{buffer:w}=this;w[this.pos++]=W,this.pos===u&&(this.out+=c.decode(w),this.pos=0)}flush(){let{buffer:W,out:w,pos:V}=this;return V>0?w+c.decode(W.subarray(0,V)):w}}class P{constructor(W){this.pos=0,this.buffer=W}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(W){let{buffer:w,pos:V}=this,ce=w.indexOf(W,V);return ce===-1?w.length:ce}}let E=[];function v(Y){let{length:W}=Y,w=new P(Y),V=[],ce=[],me=0;for(;w.pos<W;w.pos++){me=a(w,me);let q=a(w,0);if(!l(w,W)){let pe=ce.pop();pe[2]=me,pe[3]=q;continue}let R=a(w,0),ie=a(w,0)&1?[me,q,0,0,R,a(w,0)]:[me,q,0,0,R],le=E;if(l(w,W)){le=[];do{let pe=a(w,0);le.push(pe)}while(l(w,W))}ie.vars=le,V.push(ie),ce.push(ie)}return V}function D(Y){let W=new T;for(let w=0;w<Y.length;)w=_(Y,w,W,[0]);return W.flush()}function _(Y,W,w,V){let ce=Y[W],{0:me,1:q,2:R,3:J,4:H,vars:ie}=ce;W>0&&w.write(44),V[0]=o(w,me,V[0]),o(w,q,0),o(w,H,0);let le=ce.length===6?1:0;o(w,le,0),ce.length===6&&o(w,ce[5],0);for(let pe of ie)o(w,pe,0);for(W++;W<Y.length;){let pe=Y[W],{0:fe,1:ge}=pe;if(fe>R||fe===R&&ge>=J)break;W=_(Y,W,w,V)}return w.write(44),V[0]=o(w,R,V[0]),o(w,J,0),W}function N(Y){let{length:W}=Y,w=new P(Y),V=[],ce=[],me=0,q=0,R=0,J=0,H=0,ie=0,le=0,pe=0;do{let fe=w.indexOf(";"),ge=0;for(;w.pos<fe;w.pos++){if(ge=a(w,ge),!l(w,fe)){let et=ce.pop();et[2]=me,et[3]=ge;continue}let it=a(w,0),Bt=it&1,Et=it&2,vt=it&4,Kt=null,Ft=E,at;if(Bt){let et=a(w,q);R=a(w,q===et?R:0),q=et,at=[me,ge,0,0,et,R]}else at=[me,ge,0,0];if(at.isScope=!!vt,Et){let et=J,er=H;J=a(w,J);let Dr=et===J;H=a(w,Dr?H:0),ie=a(w,Dr&&er===H?ie:0),Kt=[J,H,ie]}if(at.callsite=Kt,l(w,fe)){Ft=[];do{le=me,pe=ge;let et=a(w,0),er;if(et<-1){er=[[a(w,0)]];for(let Dr=-1;Dr>et;Dr--){let ca=le;le=a(w,le),pe=a(w,le===ca?pe:0);let Ni=a(w,0);er.push([Ni,le,pe])}}else er=[[et]];Ft.push(er)}while(l(w,fe))}at.bindings=Ft,V.push(at),ce.push(at)}me++,w.pos=fe+1}while(w.pos<W);return V}function M(Y){if(Y.length===0)return"";let W=new T;for(let w=0;w<Y.length;)w=ne(Y,w,W,[0,0,0,0,0,0,0]);return W.flush()}function ne(Y,W,w,V){let ce=Y[W],{0:me,1:q,2:R,3:J,isScope:H,callsite:ie,bindings:le}=ce;V[0]<me?(ae(w,V[0],me),V[0]=me,V[1]=0):W>0&&w.write(44),V[1]=o(w,ce[1],V[1]);let pe=(ce.length===6?1:0)|(ie?2:0)|(H?4:0);if(o(w,pe,0),ce.length===6){let{4:fe,5:ge}=ce;fe!==V[2]&&(V[3]=0),V[2]=o(w,fe,V[2]),V[3]=o(w,ge,V[3])}if(ie){let{0:fe,1:ge,2:it}=ce.callsite;fe!==V[4]?(V[5]=0,V[6]=0):ge!==V[5]&&(V[6]=0),V[4]=o(w,fe,V[4]),V[5]=o(w,ge,V[5]),V[6]=o(w,it,V[6])}if(le)for(let fe of le){fe.length>1&&o(w,-fe.length,0);let ge=fe[0][0];o(w,ge,0);let it=me,Bt=q;for(let Et=1;Et<fe.length;Et++){let vt=fe[Et];it=o(w,vt[1],it),Bt=o(w,vt[2],Bt),o(w,vt[0],0)}}for(W++;W<Y.length;){let fe=Y[W],{0:ge,1:it}=fe;if(ge>R||ge===R&&it>=J)break;W=ne(Y,W,w,V)}return V[0]<R?(ae(w,V[0],R),V[0]=R,V[1]=0):w.write(44),V[1]=o(w,J,V[1]),W}function ae(Y,W,w){do Y.write(59);while(++W<w)}function xe(Y){let{length:W}=Y,w=new P(Y),V=[],ce=0,me=0,q=0,R=0,J=0;do{let H=w.indexOf(";"),ie=[],le=!0,pe=0;for(ce=0;w.pos<H;){let fe;ce=a(w,ce),ce<pe&&(le=!1),pe=ce,l(w,H)?(me=a(w,me),q=a(w,q),R=a(w,R),l(w,H)?(J=a(w,J),fe=[ce,me,q,R,J]):fe=[ce,me,q,R]):fe=[ce],ie.push(fe),w.pos++}le||ee(ie),V.push(ie),w.pos=H+1}while(w.pos<=W);return V}function ee(Y){Y.sort(qe)}function qe(Y,W){return Y[0]-W[0]}function Ue(Y){let W=new T,w=0,V=0,ce=0,me=0;for(let q=0;q<Y.length;q++){let R=Y[q];if(q>0&&W.write(59),R.length===0)continue;let J=0;for(let H=0;H<R.length;H++){let ie=R[H];H>0&&W.write(44),J=o(W,ie[0],J),ie.length!==1&&(w=o(W,ie[1],w),V=o(W,ie[2],V),ce=o(W,ie[3],ce),ie.length!==4&&(me=o(W,ie[4],me)))}}return W.flush()}e.decode=xe,e.decodeGeneratedRanges=N,e.decodeOriginalScopes=v,e.encode=Ue,e.encodeGeneratedRanges=M,e.encodeOriginalScopes=D,Object.defineProperty(e,"__esModule",{value:!0})})});var Dd=A((gu,bu)=>{(function(e,t){typeof gu=="object"&&typeof bu<"u"?bu.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self,e.resolveURI=t())})(gu,function(){"use strict";let e=/^[\w+.-]+:\/\//,t=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,r=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;function i(_){return e.test(_)}function s(_){return _.startsWith("//")}function n(_){return _.startsWith("/")}function a(_){return _.startsWith("file:")}function o(_){return/^[.?#]/.test(_)}function l(_){let N=t.exec(_);return c(N[1],N[2]||"",N[3],N[4]||"",N[5]||"/",N[6]||"",N[7]||"")}function u(_){let N=r.exec(_),M=N[2];return c("file:","",N[1]||"","",n(M)?M:"/"+M,N[3]||"",N[4]||"")}function c(_,N,M,ne,ae,xe,ee){return{scheme:_,user:N,host:M,port:ne,path:ae,query:xe,hash:ee,type:7}}function T(_){if(s(_)){let M=l("http:"+_);return M.scheme="",M.type=6,M}if(n(_)){let M=l("http://foo.com"+_);return M.scheme="",M.host="",M.type=5,M}if(a(_))return u(_);if(i(_))return l(_);let N=l("http://foo.com/"+_);return N.scheme="",N.host="",N.type=_?_.startsWith("?")?3:_.startsWith("#")?2:4:1,N}function P(_){if(_.endsWith("/.."))return _;let N=_.lastIndexOf("/");return _.slice(0,N+1)}function E(_,N){v(N,N.type),_.path==="/"?_.path=N.path:_.path=P(N.path)+_.path}function v(_,N){let M=N<=4,ne=_.path.split("/"),ae=1,xe=0,ee=!1;for(let Ue=1;Ue<ne.length;Ue++){let Y=ne[Ue];if(!Y){ee=!0;continue}if(ee=!1,Y!=="."){if(Y===".."){xe?(ee=!0,xe--,ae--):M&&(ne[ae++]=Y);continue}ne[ae++]=Y,xe++}}let qe="";for(let Ue=1;Ue<ae;Ue++)qe+="/"+ne[Ue];(!qe||ee&&!qe.endsWith("/.."))&&(qe+="/"),_.path=qe}function D(_,N){if(!_&&!N)return"";let M=T(_),ne=M.type;if(N&&ne!==7){let xe=T(N),ee=xe.type;switch(ne){case 1:M.hash=xe.hash;case 2:M.query=xe.query;case 3:case 4:E(M,xe);case 5:M.user=xe.user,M.host=xe.host,M.port=xe.port;case 6:M.scheme=xe.scheme}ee>ne&&(ne=ee)}v(M,ne);let ae=M.query+M.hash;switch(ne){case 2:case 3:return ae;case 4:{let xe=M.path.slice(1);return xe?o(N||_)&&!o(xe)?"./"+xe+ae:xe+ae:ae||"."}case 5:return M.path+ae;default:return M.scheme+"//"+M.user+M.host+M.port+M.path+ae}}return D})});var Su=A((An,kd)=>{(function(e,t){typeof An=="object"&&typeof kd<"u"?t(An,Tu(),Dd()):typeof define=="function"&&define.amd?define(["exports","@jridgewell/sourcemap-codec","@jridgewell/resolve-uri"],t):(e=typeof globalThis<"u"?globalThis:e||self,t(e.traceMapping={},e.sourcemapCodec,e.resolveURI))})(An,function(e,t,r){"use strict";function i(I,L){return L&&!L.endsWith("/")&&(L+="/"),r(I,L)}function s(I){if(!I)return"";let L=I.lastIndexOf("/");return I.slice(0,L+1)}let n=0,a=1,o=2,l=3,u=4,c=1,T=2;function P(I,L){let B=E(I,0);if(B===I.length)return I;L||(I=I.slice());for(let K=B;K<I.length;K=E(I,K+1))I[K]=D(I[K],L);return I}function E(I,L){for(let B=L;B<I.length;B++)if(!v(I[B]))return B;return I.length}function v(I){for(let L=1;L<I.length;L++)if(I[L][n]<I[L-1][n])return!1;return!0}function D(I,L){return L||(I=I.slice()),I.sort(_)}function _(I,L){return I[n]-L[n]}let N=!1;function M(I,L,B,K){for(;B<=K;){let ue=B+(K-B>>1),te=I[ue][n]-L;if(te===0)return N=!0,ue;te<0?B=ue+1:K=ue-1}return N=!1,B-1}function ne(I,L,B){for(let K=B+1;K<I.length&&I[K][n]===L;B=K++);return B}function ae(I,L,B){for(let K=B-1;K>=0&&I[K][n]===L;B=K--);return B}function xe(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function ee(I,L,B,K){let{lastKey:ue,lastNeedle:te,lastIndex:Ce}=B,Me=0,Se=I.length-1;if(K===ue){if(L===te)return N=Ce!==-1&&I[Ce][n]===L,Ce;L>=te?Me=Ce===-1?0:Ce:Se=Ce}return B.lastKey=K,B.lastNeedle=L,B.lastIndex=M(I,L,Me,Se)}function qe(I,L){let B=L.map(Y);for(let K=0;K<I.length;K++){let ue=I[K];for(let te=0;te<ue.length;te++){let Ce=ue[te];if(Ce.length===1)continue;let Me=Ce[a],Se=Ce[o],Be=Ce[l],gt=B[Me],Je=gt[Se]||(gt[Se]=[]),Ke=L[Me],ot=ne(Je,Be,ee(Je,Be,Ke,Se));Ke.lastIndex=++ot,Ue(Je,ot,[Be,K,Ce[n]])}}return B}function Ue(I,L,B){for(let K=I.length;K>L;K--)I[K]=I[K-1];I[L]=B}function Y(){return{__proto__:null}}let W=function(I,L){let B=w(I);if(!("sections"in B))return new le(B,L);let K=[],ue=[],te=[],Ce=[],Me=[];V(B,L,K,ue,te,Ce,Me,0,0,1/0,1/0);let Se={version:3,file:B.file,names:Ce,sources:ue,sourcesContent:te,mappings:K,ignoreList:Me};return er(Se)};function w(I){return typeof I=="string"?JSON.parse(I):I}function V(I,L,B,K,ue,te,Ce,Me,Se,Be,gt){let{sections:Je}=I;for(let Ke=0;Ke<Je.length;Ke++){let{map:ot,offset:Wt}=Je[Ke],kr=Be,ti=gt;if(Ke+1<Je.length){let ri=Je[Ke+1].offset;kr=Math.min(Be,Me+ri.line),kr===Be?ti=Math.min(gt,Se+ri.column):kr<Be&&(ti=Se+ri.column)}ce(ot,L,B,K,ue,te,Ce,Me+Wt.line,Se+Wt.column,kr,ti)}}function ce(I,L,B,K,ue,te,Ce,Me,Se,Be,gt){let Je=w(I);if("sections"in Je)return V(...arguments);let Ke=new le(Je,L),ot=K.length,Wt=te.length,kr=ge(Ke),{resolvedSources:ti,sourcesContent:ri,ignoreList:pa}=Ke;if(me(K,ti),me(te,Ke.names),ri)me(ue,ri);else for(let Ct=0;Ct<ti.length;Ct++)ue.push(null);if(pa)for(let Ct=0;Ct<pa.length;Ct++)Ce.push(pa[Ct]+ot);for(let Ct=0;Ct<kr.length;Ct++){let fa=Me+Ct;if(fa>Be)return;let Qc=q(B,fa),m0=Ct===0?Se:0,Zc=kr[Ct];for(let ha=0;ha<Zc.length;ha++){let Lr=Zc[ha],Os=m0+Lr[n];if(fa===Be&&Os>=gt)return;if(Lr.length===1){Qc.push([Os]);continue}let ep=ot+Lr[a],tp=Lr[o],rp=Lr[l];Qc.push(Lr.length===4?[Os,ep,tp,rp]:[Os,ep,tp,rp,Wt+Lr[u]])}}}function me(I,L){for(let B=0;B<L.length;B++)I.push(L[B])}function q(I,L){for(let B=I.length;B<=L;B++)I[B]=[];return I[L]}let R="`line` must be greater than 0 (lines start at line 1)",J="`column` must be greater than or equal to 0 (columns start at column 0)",H=-1,ie=1;class le{constructor(L,B){let K=typeof L=="string";if(!K&&L._decodedMemo)return L;let ue=K?JSON.parse(L):L,{version:te,file:Ce,names:Me,sourceRoot:Se,sources:Be,sourcesContent:gt}=ue;this.version=te,this.file=Ce,this.names=Me||[],this.sourceRoot=Se,this.sources=Be,this.sourcesContent=gt,this.ignoreList=ue.ignoreList||ue.x_google_ignoreList||void 0;let Je=i(Se||"",s(B));this.resolvedSources=Be.map(ot=>i(ot||"",Je));let{mappings:Ke}=ue;typeof Ke=="string"?(this._encoded=Ke,this._decoded=void 0):(this._encoded=void 0,this._decoded=P(Ke,K)),this._decodedMemo=xe(),this._bySources=void 0,this._bySourceMemos=void 0}}function pe(I){return I}function fe(I){var L,B;return(L=(B=I)._encoded)!==null&&L!==void 0?L:B._encoded=t.encode(I._decoded)}function ge(I){var L;return(L=I)._decoded||(L._decoded=t.decode(I._encoded))}function it(I,L,B){let K=ge(I);if(L>=K.length)return null;let ue=K[L],te=ws(ue,I._decodedMemo,L,B,ie);return te===-1?null:ue[te]}function Bt(I,L){let{line:B,column:K,bias:ue}=L;if(B--,B<0)throw new Error(R);if(K<0)throw new Error(J);let te=ge(I);if(B>=te.length)return Is(null,null,null,null);let Ce=te[B],Me=ws(Ce,I._decodedMemo,B,K,ue||ie);if(Me===-1)return Is(null,null,null,null);let Se=Ce[Me];if(Se.length===1)return Is(null,null,null,null);let{names:Be,resolvedSources:gt}=I;return Is(gt[Se[a]],Se[o]+1,Se[l],Se.length===5?Be[Se[u]]:null)}function Et(I,L){let{source:B,line:K,column:ue,bias:te}=L;return zc(I,B,K,ue,te||ie,!1)}function vt(I,L){let{source:B,line:K,column:ue,bias:te}=L;return zc(I,B,K,ue,te||H,!0)}function Kt(I,L){let B=ge(I),{names:K,resolvedSources:ue}=I;for(let te=0;te<B.length;te++){let Ce=B[te];for(let Me=0;Me<Ce.length;Me++){let Se=Ce[Me],Be=te+1,gt=Se[0],Je=null,Ke=null,ot=null,Wt=null;Se.length!==1&&(Je=ue[Se[1]],Ke=Se[2]+1,ot=Se[3]),Se.length===5&&(Wt=K[Se[4]]),L({generatedLine:Be,generatedColumn:gt,source:Je,originalLine:Ke,originalColumn:ot,name:Wt})}}}function Ft(I,L){let{sources:B,resolvedSources:K}=I,ue=B.indexOf(L);return ue===-1&&(ue=K.indexOf(L)),ue}function at(I,L){let{sourcesContent:B}=I;if(B==null)return null;let K=Ft(I,L);return K===-1?null:B[K]}function et(I,L){let{ignoreList:B}=I;if(B==null)return!1;let K=Ft(I,L);return K===-1?!1:B.includes(K)}function er(I,L){let B=new le(Ni(I,[]),L);return B._decoded=I.mappings,B}function Dr(I){return Ni(I,ge(I))}function ca(I){return Ni(I,fe(I))}function Ni(I,L){return{version:I.version,file:I.file,names:I.names,sourceRoot:I.sourceRoot,sources:I.sources,sourcesContent:I.sourcesContent,mappings:L,ignoreList:I.ignoreList||I.x_google_ignoreList}}function Is(I,L,B,K){return{source:I,line:L,column:B,name:K}}function _i(I,L){return{line:I,column:L}}function ws(I,L,B,K,ue){let te=ee(I,K,L,B);return N?te=(ue===H?ne:ae)(I,K,te):ue===H&&te++,te===-1||te===I.length?-1:te}function d0(I,L,B,K,ue){let te=ws(I,L,B,K,ie);if(!N&&ue===H&&te++,te===-1||te===I.length)return[];let Ce=N?K:I[te][n];N||(te=ae(I,Ce,te));let Me=ne(I,Ce,te),Se=[];for(;te<=Me;te++){let Be=I[te];Se.push(_i(Be[c]+1,Be[T]))}return Se}function zc(I,L,B,K,ue,te){var Ce;if(B--,B<0)throw new Error(R);if(K<0)throw new Error(J);let{sources:Me,resolvedSources:Se}=I,Be=Me.indexOf(L);if(Be===-1&&(Be=Se.indexOf(L)),Be===-1)return te?[]:_i(null,null);let Je=((Ce=I)._bySources||(Ce._bySources=qe(ge(I),I._bySourceMemos=Me.map(xe))))[Be][B];if(Je==null)return te?[]:_i(null,null);let Ke=I._bySourceMemos[Be];if(te)return d0(Je,Ke,B,K,ue);let ot=ws(Je,Ke,B,K,ue);if(ot===-1)return _i(null,null);let Wt=Je[ot];return _i(Wt[c]+1,Wt[T])}e.AnyMap=W,e.GREATEST_LOWER_BOUND=ie,e.LEAST_UPPER_BOUND=H,e.TraceMap=le,e.allGeneratedPositionsFor=vt,e.decodedMap=Dr,e.decodedMappings=ge,e.eachMapping=Kt,e.encodedMap=ca,e.encodedMappings=fe,e.generatedPositionFor=Et,e.isIgnored=et,e.originalPositionFor=Bt,e.presortedDecodedMap=er,e.sourceContentFor=at,e.traceSegment=it})});var Md=A((vn,Ld)=>{(function(e,t){typeof vn=="object"&&typeof Ld<"u"?t(vn,Nd(),Tu(),Su()):typeof define=="function"&&define.amd?define(["exports","@jridgewell/set-array","@jridgewell/sourcemap-codec","@jridgewell/trace-mapping"],t):(e=typeof globalThis<"u"?globalThis:e||self,t(e.genMapping={},e.setArray,e.sourcemapCodec,e.traceMapping))})(vn,function(e,t,r,i){"use strict";class c{constructor({file:R,sourceRoot:J}={}){this._names=new t.SetArray,this._sources=new t.SetArray,this._sourcesContent=[],this._mappings=[],this.file=R,this.sourceRoot=J,this._ignoreList=new t.SetArray}}function T(q){return q}function P(q,R,J,H,ie,le,pe,fe){return ee(!1,q,R,J,H,ie,le,pe,fe)}function E(q,R){return me(!1,q,R)}let v=(q,R,J,H,ie,le,pe,fe)=>ee(!0,q,R,J,H,ie,le,pe,fe),D=(q,R)=>me(!0,q,R);function _(q,R,J){let{_sources:H,_sourcesContent:ie}=q,le=t.put(H,R);ie[le]=J}function N(q,R,J=!0){let{_sources:H,_sourcesContent:ie,_ignoreList:le}=q,pe=t.put(H,R);pe===ie.length&&(ie[pe]=null),J?t.put(le,pe):t.remove(le,pe)}function M(q){let{_mappings:R,_sources:J,_sourcesContent:H,_names:ie,_ignoreList:le}=q;return W(R),{version:3,file:q.file||void 0,names:ie.array,sourceRoot:q.sourceRoot||void 0,sources:J.array,sourcesContent:H,mappings:R,ignoreList:le.array}}function ne(q){let R=M(q);return Object.assign(Object.assign({},R),{mappings:r.encode(R.mappings)})}function ae(q){let R=new i.TraceMap(q),J=new c({file:R.file,sourceRoot:R.sourceRoot});return w(J._names,R.names),w(J._sources,R.sources),J._sourcesContent=R.sourcesContent||R.sources.map(()=>null),J._mappings=i.decodedMappings(R),R.ignoreList&&w(J._ignoreList,R.ignoreList),J}function xe(q){let R=[],{_mappings:J,_sources:H,_names:ie}=q;for(let le=0;le<J.length;le++){let pe=J[le];for(let fe=0;fe<pe.length;fe++){let ge=pe[fe],it={line:le+1,column:ge[0]},Bt,Et,vt;ge.length!==1&&(Bt=H.array[ge[1]],Et={line:ge[2]+1,column:ge[3]},ge.length===5&&(vt=ie.array[ge[4]])),R.push({generated:it,source:Bt,original:Et,name:vt})}}return R}function ee(q,R,J,H,ie,le,pe,fe,ge){let{_mappings:it,_sources:Bt,_sourcesContent:Et,_names:vt}=R,Kt=qe(it,J),Ft=Ue(Kt,H);if(!ie)return q&&V(Kt,Ft)?void 0:Y(Kt,Ft,[H]);let at=t.put(Bt,ie),et=fe?t.put(vt,fe):-1;if(at===Et.length&&(Et[at]=ge??null),!(q&&ce(Kt,Ft,at,le,pe,et)))return Y(Kt,Ft,fe?[H,at,le,pe,et]:[H,at,le,pe])}function qe(q,R){for(let J=q.length;J<=R;J++)q[J]=[];return q[R]}function Ue(q,R){let J=q.length;for(let H=J-1;H>=0;J=H--){let ie=q[H];if(R>=ie[0])break}return J}function Y(q,R,J){for(let H=q.length;H>R;H--)q[H]=q[H-1];q[R]=J}function W(q){let{length:R}=q,J=R;for(let H=J-1;H>=0&&!(q[H].length>0);J=H,H--);J<R&&(q.length=J)}function w(q,R){for(let J=0;J<R.length;J++)t.put(q,R[J])}function V(q,R){return R===0?!0:q[R-1].length===1}function ce(q,R,J,H,ie,le){if(R===0)return!1;let pe=q[R-1];return pe.length===1?!1:J===pe[1]&&H===pe[2]&&ie===pe[3]&&le===(pe.length===5?pe[4]:-1)}function me(q,R,J){let{generated:H,source:ie,original:le,name:pe,content:fe}=J;return ie?ee(q,R,H.line-1,H.column,ie,le.line-1,le.column,pe,fe):ee(q,R,H.line-1,H.column,null,null,null,null,null)}e.GenMapping=c,e.addMapping=E,e.addSegment=P,e.allMappings=xe,e.fromMap=ae,e.maybeAddMapping=D,e.maybeAddSegment=v,e.setIgnore=N,e.setSourceContent=_,e.toDecodedMap=M,e.toEncodedMap=ne,Object.defineProperty(e,"__esModule",{value:!0})})});var Bd=A(Cn=>{"use strict";Object.defineProperty(Cn,"__esModule",{value:!0});Cn.default=void 0;var Pr=Md(),xu=Su(),Eu=class{constructor(t,r){var i;this._map=void 0,this._rawMappings=void 0,this._sourceFileName=void 0,this._lastGenLine=0,this._lastSourceLine=0,this._lastSourceColumn=0,this._inputMap=void 0;let s=this._map=new Pr.GenMapping({sourceRoot:t.sourceRoot});if(this._sourceFileName=(i=t.sourceFileName)==null?void 0:i.replace(/\\/g,"/"),this._rawMappings=void 0,t.inputSourceMap){this._inputMap=new xu.TraceMap(t.inputSourceMap);let a=this._inputMap.resolvedSources;if(a.length)for(let o=0;o<a.length;o++){var n;(0,Pr.setSourceContent)(s,a[o],(n=this._inputMap.sourcesContent)==null?void 0:n[o])}}if(typeof r=="string"&&!t.inputSourceMap)(0,Pr.setSourceContent)(s,this._sourceFileName,r);else if(typeof r=="object")for(let a of Object.keys(r))(0,Pr.setSourceContent)(s,a.replace(/\\/g,"/"),r[a])}get(){return(0,Pr.toEncodedMap)(this._map)}getDecoded(){return(0,Pr.toDecodedMap)(this._map)}getRawMappings(){return this._rawMappings||(this._rawMappings=(0,Pr.allMappings)(this._map))}mark(t,r,i,s,n,a){var o;this._rawMappings=void 0;let l;if(r!=null)if(this._inputMap){if(l=(0,xu.originalPositionFor)(this._inputMap,{line:r,column:i}),!l.name&&n){let u=(0,xu.originalPositionFor)(this._inputMap,n);u.name&&(s=u.name)}}else l={source:a?.replace(/\\/g,"/")||this._sourceFileName,line:r,column:i};(0,Pr.maybeAddMapping)(this._map,{name:s,generated:t,source:(o=l)==null?void 0:o.source,original:l})}};Cn.default=Eu});var Fd=A(In=>{"use strict";Object.defineProperty(In,"__esModule",{value:!0});In.default=void 0;var Pu=class{constructor(t,r){this._map=null,this._buf="",this._str="",this._appendCount=0,this._last=0,this._queue=[],this._queueCursor=0,this._canMarkIdName=!0,this._indentChar="",this._fastIndentations=[],this._position={line:1,column:0},this._sourcePosition={identifierName:void 0,identifierNamePos:void 0,line:void 0,column:void 0,filename:void 0},this._map=t,this._indentChar=r;for(let i=0;i<64;i++)this._fastIndentations.push(r.repeat(i));this._allocQueue()}_allocQueue(){let t=this._queue;for(let r=0;r<16;r++)t.push({char:0,repeat:1,line:void 0,column:void 0,identifierName:void 0,identifierNamePos:void 0,filename:""})}_pushQueue(t,r,i,s,n){let a=this._queueCursor;a===this._queue.length&&this._allocQueue();let o=this._queue[a];o.char=t,o.repeat=r,o.line=i,o.column=s,o.filename=n,this._queueCursor++}_popQueue(){if(this._queueCursor===0)throw new Error("Cannot pop from empty queue");return this._queue[--this._queueCursor]}get(){this._flush();let t=this._map,r={code:(this._buf+this._str).trimRight(),decodedMap:t?.getDecoded(),get __mergedMap(){return this.map},get map(){let i=t?t.get():null;return r.map=i,i},set map(i){Object.defineProperty(r,"map",{value:i,writable:!0})},get rawMappings(){let i=t?.getRawMappings();return r.rawMappings=i,i},set rawMappings(i){Object.defineProperty(r,"rawMappings",{value:i,writable:!0})}};return r}append(t,r){this._flush(),this._append(t,this._sourcePosition,r)}appendChar(t){this._flush(),this._appendChar(t,1,this._sourcePosition)}queue(t){if(t===10)for(;this._queueCursor!==0;){let i=this._queue[this._queueCursor-1].char;if(i!==32&&i!==9)break;this._queueCursor--}let r=this._sourcePosition;this._pushQueue(t,1,r.line,r.column,r.filename)}queueIndentation(t){t!==0&&this._pushQueue(-1,t,void 0,void 0,void 0)}_flush(){let t=this._queueCursor,r=this._queue;for(let i=0;i<t;i++){let s=r[i];this._appendChar(s.char,s.repeat,s)}this._queueCursor=0}_appendChar(t,r,i){if(this._last=t,t===-1){let s=this._fastIndentations[r];s!==void 0?this._str+=s:this._str+=r>1?this._indentChar.repeat(r):this._indentChar}else this._str+=r>1?String.fromCharCode(t).repeat(r):String.fromCharCode(t);t!==10?(this._mark(i.line,i.column,i.identifierName,i.identifierNamePos,i.filename),this._position.column+=r):(this._position.line++,this._position.column=0),this._canMarkIdName&&(i.identifierName=void 0,i.identifierNamePos=void 0)}_append(t,r,i){let s=t.length,n=this._position;if(this._last=t.charCodeAt(s-1),++this._appendCount>4096?(+this._str,this._buf+=this._str,this._str=t,this._appendCount=0):this._str+=t,!i&&!this._map){n.column+=s;return}let{column:a,identifierName:o,identifierNamePos:l,filename:u}=r,c=r.line;(o!=null||l!=null)&&this._canMarkIdName&&(r.identifierName=void 0,r.identifierNamePos=void 0);let T=t.indexOf(`
|
|
22
|
-
`),P=0;for(T!==0&&this._mark(c,a,o,l,u);T!==-1;)n.line++,n.column=0,P=T+1,P<s&&c!==void 0&&this._mark(++c,0,null,null,u),T=t.indexOf(`
|
|
23
|
-
`,P);n.column+=s-P}_mark(t,r,i,s,n){var a;(a=this._map)==null||a.mark(this._position,t,r,i,s,n)}removeTrailingNewline(){let t=this._queueCursor;t!==0&&this._queue[t-1].char===10&&this._queueCursor--}removeLastSemicolon(){let t=this._queueCursor;t!==0&&this._queue[t-1].char===59&&this._queueCursor--}getLastChar(){let t=this._queueCursor;return t!==0?this._queue[t-1].char:this._last}getNewlineCount(){let t=this._queueCursor,r=0;if(t===0)return this._last===10?1:0;for(let i=t-1;i>=0&&this._queue[i].char===10;i--)r++;return r===t&&this._last===10?r+1:r}endsWithCharAndNewline(){let t=this._queue,r=this._queueCursor;if(r!==0)return t[r-1].char!==10?void 0:r>1?t[r-2].char:this._last}hasContent(){return this._queueCursor!==0||!!this._last}exactSource(t,r){if(!this._map){r();return}this.source("start",t);let i=t.identifierName,s=this._sourcePosition;i&&(this._canMarkIdName=!1,s.identifierName=i),r(),i&&(this._canMarkIdName=!0,s.identifierName=void 0,s.identifierNamePos=void 0),this.source("end",t)}source(t,r){this._map&&this._normalizePosition(t,r,0)}sourceWithOffset(t,r,i){this._map&&this._normalizePosition(t,r,i)}_normalizePosition(t,r,i){let s=r[t],n=this._sourcePosition;s&&(n.line=s.line,n.column=Math.max(s.column+i,0),n.filename=r.filename)}getCurrentColumn(){let t=this._queue,r=this._queueCursor,i=-1,s=0;for(let n=0;n<r;n++){let a=t[n];a.char===10&&(i=s),s+=a.repeat}return i===-1?this._position.column+s:s-1-i}getCurrentLine(){let t=0,r=this._queue;for(let i=0;i<this._queueCursor;i++)r[i].char===10&&t++;return this._position.line+t}};In.default=Pu});var Vd=A(On=>{"use strict";Object.defineProperty(On,"__esModule",{value:!0});On.nodes=void 0;var lj=de(),{FLIPPED_ALIAS_KEYS:uj,isArrayExpression:cj,isAssignmentExpression:Rd,isBinary:qd,isBlockStatement:pj,isCallExpression:Ud,isFunction:cs,isIdentifier:wn,isLiteral:fj,isMemberExpression:Au,isObjectExpression:hj,isOptionalCallExpression:dj,isOptionalMemberExpression:mj,isStringLiteral:yj}=lj;function Ti(e,t){return e&&(Au(e)||mj(e)?(Ti(e.object,t),e.computed&&Ti(e.property,t)):qd(e)||Rd(e)?(Ti(e.left,t),Ti(e.right,t)):Ud(e)||dj(e)?(t.hasCall=!0,Ti(e.callee,t)):cs(e)?t.hasFunction=!0:wn(e)&&(t.hasHelper=t.hasHelper||e.callee&&ur(e.callee))),t}function jd(e){return Ti(e,{hasCall:!1,hasFunction:!1,hasHelper:!1})}function ur(e){return e?Au(e)?ur(e.object)||ur(e.property):wn(e)?e.name==="require"||e.name.charCodeAt(0)===95:Ud(e)?ur(e.callee):qd(e)||Rd(e)?wn(e.left)&&ur(e.left)||ur(e.right):!1:!1}function Tj(e){return fj(e)||hj(e)||cj(e)||wn(e)||Au(e)}var $r=On.nodes={AssignmentExpression(e){let t=jd(e.right);if(t.hasCall&&t.hasHelper||t.hasFunction)return t.hasFunction?3:2},SwitchCase(e,t){return(e.consequent.length||t.cases[0]===e?1:0)|(!e.consequent.length&&t.cases[t.cases.length-1]===e?2:0)},LogicalExpression(e){if(cs(e.left)||cs(e.right))return 2},Literal(e){if(yj(e)&&e.value==="use strict")return 2},CallExpression(e){if(cs(e.callee)||ur(e))return 3},OptionalCallExpression(e){if(cs(e.callee))return 3},VariableDeclaration(e){for(let t=0;t<e.declarations.length;t++){let r=e.declarations[t],i=ur(r.id)&&!Tj(r.init);if(!i&&r.init){let s=jd(r.init);i=ur(r.init)&&s.hasCall||s.hasFunction}if(i)return 3}},IfStatement(e){if(pj(e.consequent))return 3}};$r.ObjectProperty=$r.ObjectTypeProperty=$r.ObjectMethod=function(e,t){if(t.properties[0]===e)return 1};$r.ObjectTypeCallProperty=function(e,t){var r;if(t.callProperties[0]===e&&!((r=t.properties)!=null&&r.length))return 1};$r.ObjectTypeIndexer=function(e,t){var r,i;if(t.indexers[0]===e&&!((r=t.properties)!=null&&r.length)&&!((i=t.callProperties)!=null&&i.length))return 1};$r.ObjectTypeInternalSlot=function(e,t){var r,i,s;if(t.internalSlots[0]===e&&!((r=t.properties)!=null&&r.length)&&!((i=t.callProperties)!=null&&i.length)&&!((s=t.indexers)!=null&&s.length))return 1};[["Function",!0],["Class",!0],["Loop",!0],["LabeledStatement",!0],["SwitchStatement",!0],["TryStatement",!0]].forEach(function([e,t]){[e].concat(uj[e]||[]).forEach(function(r){let i=t?3:0;$r[r]=()=>i})})});var Gd=A(Oe=>{"use strict";Object.defineProperty(Oe,"__esModule",{value:!0});Oe.AssignmentExpression=Yj;Oe.Binary=Jd;Oe.BinaryExpression=Rj;Oe.ClassExpression=Vj;Oe.ArrowFunctionExpression=Oe.ConditionalExpression=Hd;Oe.DoExpression=Dj;Oe.FunctionExpression=Kj;Oe.FunctionTypeAnnotation=Oj;Oe.Identifier=Jj;Oe.LogicalExpression=Xj;Oe.NullableTypeAnnotation=wj;Oe.ObjectExpression=_j;Oe.OptionalIndexedAccessType=Lj;Oe.OptionalCallExpression=Oe.OptionalMemberExpression=Wj;Oe.SequenceExpression=qj;Oe.TSSatisfiesExpression=Oe.TSAsExpression=Mj;Oe.TSInferType=Fj;Oe.TSInstantiationExpression=jj;Oe.UnaryLike=Oe.TSTypeAssertion=$d;Oe.TSIntersectionType=Oe.TSUnionType=Bj;Oe.IntersectionTypeAnnotation=Oe.UnionTypeAnnotation=kj;Oe.UpdateExpression=Nj;Oe.AwaitExpression=Oe.YieldExpression=Uj;var gj=de(),Nt=Ar(),{isArrayTypeAnnotation:bj,isBinaryExpression:Sj,isCallExpression:xj,isForOfStatement:Ej,isIndexedAccessType:Pj,isMemberExpression:Yd,isObjectPattern:Aj,isOptionalMemberExpression:vj,isYieldExpression:Cj,isStatement:Ij}=gj,Kd=new Map([["||",0],["??",0],["|>",0],["&&",1],["|",2],["^",3],["&",4],["==",5],["===",5],["!=",5],["!==",5],["<",6],[">",6],["<=",6],[">=",6],["in",6],["instanceof",6],[">>",7],["<<",7],[">>>",7],["+",8],["-",8],["*",9],["/",9],["%",9],["**",10]]);function Wd(e,t){if(t==="BinaryExpression"||t==="LogicalExpression")return Kd.get(e.operator);if(t==="TSAsExpression"||t==="TSSatisfiesExpression")return Kd.get("in")}function vu(e){return e==="TSAsExpression"||e==="TSSatisfiesExpression"||e==="TSTypeAssertion"}var Nn=(e,t)=>{let r=t.type;return(r==="ClassDeclaration"||r==="ClassExpression")&&t.superClass===e},_n=(e,t)=>{let r=t.type;return(r==="MemberExpression"||r==="OptionalMemberExpression")&&t.object===e||(r==="CallExpression"||r==="OptionalCallExpression"||r==="NewExpression")&&t.callee===e||r==="TaggedTemplateExpression"&&t.tag===e||r==="TSNonNullExpression"};function wj(e,t){return bj(t)}function Oj(e,t,r){let i=t.type;return i==="UnionTypeAnnotation"||i==="IntersectionTypeAnnotation"||i==="ArrayTypeAnnotation"||!!(r&Nt.TokenContext.arrowFlowReturnType)}function Nj(e,t){return _n(e,t)||Nn(e,t)}function Xd(e){return!!(e&(Nt.TokenContext.expressionStatement|Nt.TokenContext.arrowBody))}function _j(e,t,r){return Xd(r)}function Dj(e,t,r){return!e.async&&!!(r&Nt.TokenContext.expressionStatement)}function Jd(e,t){let r=t.type;if(e.type==="BinaryExpression"&&e.operator==="**"&&r==="BinaryExpression"&&t.operator==="**")return t.left===e;if(Nn(e,t)||_n(e,t)||r==="UnaryExpression"||r==="SpreadElement"||r==="AwaitExpression")return!0;let i=Wd(t,r);if(i!=null){let s=Wd(e,e.type);if(i===s&&r==="BinaryExpression"&&t.right===e||i>s)return!0}}function kj(e,t){let r=t.type;return r==="ArrayTypeAnnotation"||r==="NullableTypeAnnotation"||r==="IntersectionTypeAnnotation"||r==="UnionTypeAnnotation"}function Lj(e,t){return Pj(t)&&t.objectType===e}function Mj(e,t){return(t.type==="AssignmentExpression"||t.type==="AssignmentPattern")&&t.left===e||t.type==="BinaryExpression"&&(t.operator==="|"||t.operator==="&")&&e===t.left?!0:Jd(e,t)}function Bj(e,t){let r=t.type;return r==="TSArrayType"||r==="TSOptionalType"||r==="TSIntersectionType"||r==="TSRestType"}function Fj(e,t){let r=t.type;return r==="TSArrayType"||r==="TSOptionalType"}function jj(e,t){let r=t.type;return(r==="CallExpression"||r==="OptionalCallExpression"||r==="NewExpression"||r==="TSInstantiationExpression")&&!!t.typeParameters}function Rj(e,t,r,i){return e.operator==="in"&&i}function qj(e,t){let r=t.type;return r==="SequenceExpression"||r==="ParenthesizedExpression"||r==="MemberExpression"&&t.property===e||r==="OptionalMemberExpression"&&t.property===e||r==="TemplateLiteral"?!1:r==="ClassDeclaration"?!0:r==="ForOfStatement"?t.right===e:r==="ExportDefaultDeclaration"?!0:!Ij(t)}function Uj(e,t){let r=t.type;return r==="BinaryExpression"||r==="LogicalExpression"||r==="UnaryExpression"||r==="SpreadElement"||_n(e,t)||r==="AwaitExpression"&&Cj(e)||r==="ConditionalExpression"&&e===t.test||Nn(e,t)||vu(r)}function Vj(e,t,r){return!!(r&(Nt.TokenContext.expressionStatement|Nt.TokenContext.exportDefault))}function $d(e,t){return _n(e,t)||Sj(t)&&t.operator==="**"&&t.left===e||Nn(e,t)}function Kj(e,t,r){return!!(r&(Nt.TokenContext.expressionStatement|Nt.TokenContext.exportDefault))}function Hd(e,t){let r=t.type;return r==="UnaryExpression"||r==="SpreadElement"||r==="BinaryExpression"||r==="LogicalExpression"||r==="ConditionalExpression"&&t.test===e||r==="AwaitExpression"||vu(r)?!0:$d(e,t)}function Wj(e,t){return xj(t)&&t.callee===e||Yd(t)&&t.object===e}function Yj(e,t,r){return Xd(r)&&Aj(e.left)?!0:Hd(e,t)}function Xj(e,t){let r=t.type;if(vu(r))return!0;if(r!=="LogicalExpression")return!1;switch(e.operator){case"||":return t.operator==="??"||t.operator==="&&";case"&&":return t.operator==="??";case"??":return t.operator!=="??"}}function Jj(e,t,r){var i;let s=t.type;if((i=e.extra)!=null&&i.parenthesized&&s==="AssignmentExpression"&&t.left===e){let n=t.right.type;if((n==="FunctionExpression"||n==="ClassExpression")&&t.right.id==null)return!0}return e.name==="let"?(Yd(t,{object:e,computed:!0})||vj(t,{object:e,computed:!0,optional:!1}))&&r&(Nt.TokenContext.expressionStatement|Nt.TokenContext.forHead|Nt.TokenContext.forInHead)?!0:!!(r&Nt.TokenContext.forOfHead):e.name==="async"&&Ej(t,{left:e,await:!1})}});var Ar=A(vr=>{"use strict";Object.defineProperty(vr,"__esModule",{value:!0});vr.TokenContext=void 0;vr.needsParens=oR;vr.needsWhitespace=Iu;vr.needsWhitespaceAfter=aR;vr.needsWhitespaceBefore=nR;var $j=Vd(),Hj=Gd(),Gj=de(),{FLIPPED_ALIAS_KEYS:zj,isCallExpression:zd,isDecorator:Qj,isExpressionStatement:Zj,isMemberExpression:eR,isNewExpression:tR,isParenthesizedExpression:rR}=Gj,iG=vr.TokenContext={expressionStatement:1,arrowBody:2,exportDefault:4,forHead:8,forInHead:16,forOfHead:32,arrowFlowReturnType:64};function Qd(e){let t=new Map;function r(i,s){let n=t.get(i);t.set(i,n?function(a,o,l,u){var c;return(c=n(a,o,l,u))!=null?c:s(a,o,l,u)}:s)}for(let i of Object.keys(e)){let s=zj[i];if(s)for(let n of s)r(n,e[i]);else r(i,e[i])}return t}var iR=Qd(Hj),sR=Qd($j.nodes);function Zd(e){return zd(e)?!0:eR(e)&&Zd(e.object)}function Iu(e,t,r){var i;if(!e)return!1;Zj(e)&&(e=e.expression);let s=(i=sR.get(e.type))==null?void 0:i(e,t);return typeof s=="number"?(s&r)!==0:!1}function nR(e,t){return Iu(e,t,1)}function aR(e,t){return Iu(e,t,2)}function oR(e,t,r,i){var s;return t?tR(t)&&t.callee===e&&Zd(e)?!0:Qj(t)?!Cu(e)&&!(zd(e)&&Cu(e.callee))&&!rR(e):(s=iR.get(e.type))==null?void 0:s(e,t,r,i):!1}function Cu(e){switch(e.type){case"Identifier":return!0;case"MemberExpression":return!e.computed&&e.property.type==="Identifier"&&Cu(e.object);default:return!1}}});var em=A(ps=>{"use strict";Object.defineProperty(ps,"__esModule",{value:!0});ps.TaggedTemplateExpression=lR;ps.TemplateElement=uR;ps.TemplateLiteral=cR;function lR(e){this.print(e.tag),this.print(e.typeParameters),this.print(e.quasi)}function uR(){throw new Error("TemplateElement printing is handled in TemplateLiteral")}function cR(e){let t=e.quasis,r="`";for(let i=0;i<t.length;i++)r+=t[i].value.raw,i+1<t.length&&(this.token(r+"${",!0),this.print(e.expressions[i]),r="}");this.token(r+"`",!0)}});var rm=A(De=>{"use strict";Object.defineProperty(De,"__esModule",{value:!0});De.LogicalExpression=De.BinaryExpression=De.AssignmentExpression=MR;De.AssignmentPattern=LR;De.AwaitExpression=NR;De.BindExpression=BR;De.CallExpression=wR;De.ConditionalExpression=bR;De.Decorator=vR;De.DoExpression=yR;De.EmptyStatement=DR;De.ExpressionStatement=kR;De.Import=OR;De.MemberExpression=FR;De.MetaProperty=jR;De.ModuleExpression=UR;De.NewExpression=SR;De.OptionalCallExpression=IR;De.OptionalMemberExpression=CR;De.ParenthesizedExpression=TR;De.PrivateName=RR;De.SequenceExpression=xR;De.Super=PR;De.ThisExpression=ER;De.UnaryExpression=mR;De.UpdateExpression=gR;De.V8IntrinsicIdentifier=qR;De.YieldExpression=_R;De._shouldPrintDecoratorsBeforeExport=AR;var pR=de(),fR=Ar(),{isCallExpression:hR,isLiteral:tm,isMemberExpression:wu,isNewExpression:dR}=pR;function mR(e){let{operator:t}=e;t==="void"||t==="delete"||t==="typeof"||t==="throw"?(this.word(t),this.space()):this.token(t),this.print(e.argument)}function yR(e){e.async&&(this.word("async",!0),this.space()),this.word("do"),this.space(),this.print(e.body)}function TR(e){this.tokenChar(40),this.print(e.expression),this.rightParens(e)}function gR(e){e.prefix?(this.token(e.operator),this.print(e.argument)):(this.printTerminatorless(e.argument,!0),this.token(e.operator))}function bR(e){this.print(e.test),this.space(),this.tokenChar(63),this.space(),this.print(e.consequent),this.space(),this.tokenChar(58),this.space(),this.print(e.alternate)}function SR(e,t){if(this.word("new"),this.space(),this.print(e.callee),this.format.minified&&e.arguments.length===0&&!e.optional&&!hR(t,{callee:e})&&!wu(t)&&!dR(t))return;this.print(e.typeArguments),this.print(e.typeParameters),e.optional&&this.token("?."),this.tokenChar(40);let r=this.enterForStatementInit(!1);this.printList(e.arguments),r(),this.rightParens(e)}function xR(e){this.printList(e.expressions)}function ER(){this.word("this")}function PR(){this.word("super")}function AR(e){return typeof this.format.decoratorsBeforeExport=="boolean"?this.format.decoratorsBeforeExport:typeof e.start=="number"&&e.start===e.declaration.start}function vR(e){this.tokenChar(64),this.print(e.expression),this.newline()}function CR(e){let{computed:t}=e,{optional:r,property:i}=e;if(this.print(e.object),!t&&wu(i))throw new TypeError("Got a MemberExpression for MemberExpression property");tm(i)&&typeof i.value=="number"&&(t=!0),r&&this.token("?."),t?(this.tokenChar(91),this.print(i),this.tokenChar(93)):(r||this.tokenChar(46),this.print(i))}function IR(e){this.print(e.callee),this.print(e.typeParameters),e.optional&&this.token("?."),this.print(e.typeArguments),this.tokenChar(40);let t=this.enterForStatementInit(!1);this.printList(e.arguments),t(),this.rightParens(e)}function wR(e){this.print(e.callee),this.print(e.typeArguments),this.print(e.typeParameters),this.tokenChar(40);let t=this.enterForStatementInit(!1);this.printList(e.arguments),t(),this.rightParens(e)}function OR(){this.word("import")}function NR(e){this.word("await"),e.argument&&(this.space(),this.printTerminatorless(e.argument,!1))}function _R(e){this.word("yield",!0),e.delegate?(this.tokenChar(42),e.argument&&(this.space(),this.print(e.argument))):e.argument&&(this.space(),this.printTerminatorless(e.argument,!1))}function DR(){this.semicolon(!0)}function kR(e){this.tokenContext|=fR.TokenContext.expressionStatement,this.print(e.expression),this.semicolon()}function LR(e){this.print(e.left),e.left.type==="Identifier"&&(e.left.optional&&this.tokenChar(63),this.print(e.left.typeAnnotation)),this.space(),this.tokenChar(61),this.space(),this.print(e.right)}function MR(e){this.print(e.left),this.space(),e.operator==="in"||e.operator==="instanceof"?this.word(e.operator):(this.token(e.operator),this._endsWithDiv=e.operator==="/"),this.space(),this.print(e.right)}function BR(e){this.print(e.object),this.token("::"),this.print(e.callee)}function FR(e){if(this.print(e.object),!e.computed&&wu(e.property))throw new TypeError("Got a MemberExpression for MemberExpression property");let t=e.computed;if(tm(e.property)&&typeof e.property.value=="number"&&(t=!0),t){let r=this.enterForStatementInit(!1);this.tokenChar(91),this.print(e.property),this.tokenChar(93),r()}else this.tokenChar(46),this.print(e.property)}function jR(e){this.print(e.meta),this.tokenChar(46),this.print(e.property)}function RR(e){this.tokenChar(35),this.print(e.id)}function qR(e){this.tokenChar(37),this.word(e.name)}function UR(e){this.word("module",!0),this.space(),this.tokenChar(123),this.indent();let{body:t}=e;(t.body.length||t.directives.length)&&this.newline(),this.print(t),this.dedent(),this.rightBrace(e)}});var am=A(Ve=>{"use strict";Object.defineProperty(Ve,"__esModule",{value:!0});Ve.BreakStatement=zR;Ve.CatchClause=i5;Ve.ContinueStatement=QR;Ve.DebuggerStatement=a5;Ve.DoWhileStatement=GR;Ve.ForOfStatement=Ve.ForInStatement=void 0;Ve.ForStatement=$R;Ve.IfStatement=JR;Ve.LabeledStatement=t5;Ve.ReturnStatement=ZR;Ve.SwitchCase=n5;Ve.SwitchStatement=s5;Ve.ThrowStatement=e5;Ve.TryStatement=r5;Ve.VariableDeclaration=o5;Ve.VariableDeclarator=l5;Ve.WhileStatement=HR;Ve.WithStatement=XR;var VR=de(),Ou=Ar(),{isFor:im,isForStatement:KR,isIfStatement:WR,isStatement:YR}=VR;function XR(e){this.word("with"),this.space(),this.tokenChar(40),this.print(e.object),this.tokenChar(41),this.printBlock(e)}function JR(e){this.word("if"),this.space(),this.tokenChar(40),this.print(e.test),this.tokenChar(41),this.space();let t=e.alternate&&WR(sm(e.consequent));t&&(this.tokenChar(123),this.newline(),this.indent()),this.printAndIndentOnComments(e.consequent),t&&(this.dedent(),this.newline(),this.tokenChar(125)),e.alternate&&(this.endsWith(125)&&this.space(),this.word("else"),this.space(),this.printAndIndentOnComments(e.alternate))}function sm(e){let{body:t}=e;return YR(t)===!1?e:sm(t)}function $R(e){this.word("for"),this.space(),this.tokenChar(40);{let t=this.enterForStatementInit(!0);this.tokenContext|=Ou.TokenContext.forHead,this.print(e.init),t()}this.tokenChar(59),e.test&&(this.space(),this.print(e.test)),this.tokenChar(59),e.update&&(this.space(),this.print(e.update)),this.tokenChar(41),this.printBlock(e)}function HR(e){this.word("while"),this.space(),this.tokenChar(40),this.print(e.test),this.tokenChar(41),this.printBlock(e)}function nm(e){this.word("for"),this.space();let t=e.type==="ForOfStatement";t&&e.await&&(this.word("await"),this.space()),this.noIndentInnerCommentsHere(),this.tokenChar(40);{let r=t?null:this.enterForStatementInit(!0);this.tokenContext|=t?Ou.TokenContext.forOfHead:Ou.TokenContext.forInHead,this.print(e.left),r?.()}this.space(),this.word(t?"of":"in"),this.space(),this.print(e.right),this.tokenChar(41),this.printBlock(e)}var oG=Ve.ForInStatement=nm,lG=Ve.ForOfStatement=nm;function GR(e){this.word("do"),this.space(),this.print(e.body),this.space(),this.word("while"),this.space(),this.tokenChar(40),this.print(e.test),this.tokenChar(41),this.semicolon()}function Dn(e,t,r){t&&(e.space(),e.printTerminatorless(t,r)),e.semicolon()}function zR(e){this.word("break"),Dn(this,e.label,!0)}function QR(e){this.word("continue"),Dn(this,e.label,!0)}function ZR(e){this.word("return"),Dn(this,e.argument,!1)}function e5(e){this.word("throw"),Dn(this,e.argument,!1)}function t5(e){this.print(e.label),this.tokenChar(58),this.space(),this.print(e.body)}function r5(e){this.word("try"),this.space(),this.print(e.block),this.space(),e.handlers?this.print(e.handlers[0]):this.print(e.handler),e.finalizer&&(this.space(),this.word("finally"),this.space(),this.print(e.finalizer))}function i5(e){this.word("catch"),this.space(),e.param&&(this.tokenChar(40),this.print(e.param),this.print(e.param.typeAnnotation),this.tokenChar(41),this.space()),this.print(e.body)}function s5(e){this.word("switch"),this.space(),this.tokenChar(40),this.print(e.discriminant),this.tokenChar(41),this.space(),this.tokenChar(123),this.printSequence(e.cases,{indent:!0,addNewlines(t,r){if(!t&&e.cases[e.cases.length-1]===r)return-1}}),this.rightBrace(e)}function n5(e){e.test?(this.word("case"),this.space(),this.print(e.test),this.tokenChar(58)):(this.word("default"),this.tokenChar(58)),e.consequent.length&&(this.newline(),this.printSequence(e.consequent,{indent:!0}))}function a5(){this.word("debugger"),this.semicolon()}function o5(e,t){e.declare&&(this.word("declare"),this.space());let{kind:r}=e;r==="await using"?(this.word("await"),this.space(),this.word("using",!0)):this.word(r,r==="using"),this.space();let i=!1;if(!im(t))for(let s of e.declarations)s.init&&(i=!0);if(this.printList(e.declarations,{separator:i?function(){this.tokenChar(44),this.newline()}:void 0,indent:e.declarations.length>1}),im(t)){if(KR(t)){if(t.init===e)return}else if(t.left===e)return}this.semicolon()}function l5(e){this.print(e.id),e.definite&&this.tokenChar(33),this.print(e.id.typeAnnotation),e.init&&(this.space(),this.tokenChar(61),this.space(),this.print(e.init))}});var om=A(_t=>{"use strict";Object.defineProperty(_t,"__esModule",{value:!0});_t.ClassAccessorProperty=m5;_t.ClassBody=h5;_t.ClassExpression=_t.ClassDeclaration=f5;_t.ClassMethod=T5;_t.ClassPrivateMethod=g5;_t.ClassPrivateProperty=y5;_t.ClassProperty=d5;_t.StaticBlock=S5;_t._classMethodHead=b5;var u5=de(),{isExportDefaultDeclaration:c5,isExportNamedDeclaration:p5}=u5;function f5(e,t){(!(c5(t)||p5(t))||!this._shouldPrintDecoratorsBeforeExport(t))&&this.printJoin(e.decorators),e.declare&&(this.word("declare"),this.space()),e.abstract&&(this.word("abstract"),this.space()),this.word("class"),e.id&&(this.space(),this.print(e.id)),this.print(e.typeParameters),e.superClass&&(this.space(),this.word("extends"),this.space(),this.print(e.superClass),this.print(e.superTypeParameters)),e.implements&&(this.space(),this.word("implements"),this.space(),this.printList(e.implements)),this.space(),this.print(e.body)}function h5(e){if(this.tokenChar(123),e.body.length===0)this.tokenChar(125);else{this.newline();let t=this.enterForStatementInit(!1);this.printSequence(e.body,{indent:!0}),t(),this.endsWith(10)||this.newline(),this.rightBrace(e)}}function d5(e){var t;this.printJoin(e.decorators);let r=(t=e.key.loc)==null||(t=t.end)==null?void 0:t.line;r&&this.catchUp(r),this.tsPrintClassMemberModifiers(e),e.computed?(this.tokenChar(91),this.print(e.key),this.tokenChar(93)):(this._variance(e),this.print(e.key)),e.optional&&this.tokenChar(63),e.definite&&this.tokenChar(33),this.print(e.typeAnnotation),e.value&&(this.space(),this.tokenChar(61),this.space(),this.print(e.value)),this.semicolon()}function m5(e){var t;this.printJoin(e.decorators);let r=(t=e.key.loc)==null||(t=t.end)==null?void 0:t.line;r&&this.catchUp(r),this.tsPrintClassMemberModifiers(e),this.word("accessor",!0),this.space(),e.computed?(this.tokenChar(91),this.print(e.key),this.tokenChar(93)):(this._variance(e),this.print(e.key)),e.optional&&this.tokenChar(63),e.definite&&this.tokenChar(33),this.print(e.typeAnnotation),e.value&&(this.space(),this.tokenChar(61),this.space(),this.print(e.value)),this.semicolon()}function y5(e){this.printJoin(e.decorators),e.static&&(this.word("static"),this.space()),this.print(e.key),this.print(e.typeAnnotation),e.value&&(this.space(),this.tokenChar(61),this.space(),this.print(e.value)),this.semicolon()}function T5(e){this._classMethodHead(e),this.space(),this.print(e.body)}function g5(e){this._classMethodHead(e),this.space(),this.print(e.body)}function b5(e){var t;this.printJoin(e.decorators);let r=(t=e.key.loc)==null||(t=t.end)==null?void 0:t.line;r&&this.catchUp(r),this.tsPrintClassMemberModifiers(e),this._methodHead(e)}function S5(e){this.word("static"),this.space(),this.tokenChar(123),e.body.length===0?this.tokenChar(125):(this.newline(),this.printSequence(e.body,{indent:!0}),this.rightBrace(e))}});var lm=A(qt=>{"use strict";Object.defineProperty(qt,"__esModule",{value:!0});qt.ArrowFunctionExpression=_5;qt.FunctionDeclaration=qt.FunctionExpression=N5;qt._functionHead=O5;qt._methodHead=I5;qt._param=C5;qt._parameters=v5;qt._params=A5;qt._predicate=w5;var x5=de(),E5=Ar(),{isIdentifier:P5}=x5;function A5(e,t,r){this.print(e.typeParameters);let i=k5.call(this,t,r);i&&this.sourceIdentifierName(i.name,i.pos),this.tokenChar(40),this._parameters(e.params),this.tokenChar(41);let s=e.type==="ArrowFunctionExpression";this.print(e.returnType,s),this._noLineTerminator=s}function v5(e){let t=this.enterForStatementInit(!1),r=e.length;for(let i=0;i<r;i++)this._param(e[i]),i<e.length-1&&(this.tokenChar(44),this.space());t()}function C5(e){this.printJoin(e.decorators),this.print(e),e.optional&&this.tokenChar(63),this.print(e.typeAnnotation)}function I5(e){let t=e.kind,r=e.key;(t==="get"||t==="set")&&(this.word(t),this.space()),e.async&&(this.word("async",!0),this.space()),(t==="method"||t==="init")&&e.generator&&this.tokenChar(42),e.computed?(this.tokenChar(91),this.print(r),this.tokenChar(93)):this.print(r),e.optional&&this.tokenChar(63),this._params(e,e.computed&&e.key.type!=="StringLiteral"?void 0:e.key,void 0)}function w5(e,t){e.predicate&&(e.returnType||this.tokenChar(58),this.space(),this.print(e.predicate,t))}function O5(e,t){e.async&&(this.word("async"),this._endsWithInnerRaw=!1,this.space()),this.word("function"),e.generator&&(this._endsWithInnerRaw=!1,this.tokenChar(42)),this.space(),e.id&&this.print(e.id),this._params(e,e.id,t),e.type!=="TSDeclareFunction"&&this._predicate(e)}function N5(e,t){this._functionHead(e,t),this.space(),this.print(e.body)}function _5(e,t){e.async&&(this.word("async",!0),this.space());let r;!this.format.retainLines&&e.params.length===1&&P5(r=e.params[0])&&!D5(e,r)?this.print(r,!0):this._params(e,void 0,t),this._predicate(e,!0),this.space(),this.printInnerComments(),this.token("=>"),this.space(),this.tokenContext|=E5.TokenContext.arrowBody,this.print(e.body)}function D5(e,t){var r,i;return!!(e.typeParameters||e.returnType||e.predicate||t.typeAnnotation||t.optional||(r=t.leadingComments)!=null&&r.length||(i=t.trailingComments)!=null&&i.length)}function k5(e,t){let r=e;if(!r&&t){let l=t.type;l==="VariableDeclarator"?r=t.id:l==="AssignmentExpression"||l==="AssignmentPattern"?r=t.left:l==="ObjectProperty"||l==="ClassProperty"?(!t.computed||t.key.type==="StringLiteral")&&(r=t.key):(l==="ClassPrivateProperty"||l==="ClassAccessorProperty")&&(r=t.key)}if(!r)return;let i;if(r.type==="Identifier"){var s,n;i={pos:(s=r.loc)==null?void 0:s.start,name:((n=r.loc)==null?void 0:n.identifierName)||r.name}}else if(r.type==="PrivateName"){var a;i={pos:(a=r.loc)==null?void 0:a.start,name:"#"+r.id.name}}else if(r.type==="StringLiteral"){var o;i={pos:(o=r.loc)==null?void 0:o.start,name:r.value}}return i}});var Nu=A(dt=>{"use strict";Object.defineProperty(dt,"__esModule",{value:!0});dt.ExportAllDeclaration=J5;dt.ExportDefaultDeclaration=H5;dt.ExportDefaultSpecifier=K5;dt.ExportNamedDeclaration=$5;dt.ExportNamespaceSpecifier=Y5;dt.ExportSpecifier=W5;dt.ImportAttribute=z5;dt.ImportDeclaration=G5;dt.ImportDefaultSpecifier=V5;dt.ImportExpression=Z5;dt.ImportNamespaceSpecifier=Q5;dt.ImportSpecifier=U5;dt._printAttributes=X5;var L5=de(),M5=Ar(),{isClassDeclaration:B5,isExportDefaultSpecifier:F5,isExportNamespaceSpecifier:j5,isImportDefaultSpecifier:R5,isImportNamespaceSpecifier:q5,isStatement:cm}=L5;function U5(e){(e.importKind==="type"||e.importKind==="typeof")&&(this.word(e.importKind),this.space()),this.print(e.imported),e.local&&e.local.name!==e.imported.name&&(this.space(),this.word("as"),this.space(),this.print(e.local))}function V5(e){this.print(e.local)}function K5(e){this.print(e.exported)}function W5(e){e.exportKind==="type"&&(this.word("type"),this.space()),this.print(e.local),e.exported&&e.local.name!==e.exported.name&&(this.space(),this.word("as"),this.space(),this.print(e.exported))}function Y5(e){this.tokenChar(42),this.space(),this.word("as"),this.space(),this.print(e.exported)}var um=!1;function X5(e){let{importAttributesKeyword:t}=this.format,{attributes:r,assertions:i}=e;r&&!t&&!um&&(um=!0,console.warn('You are using import attributes, without specifying the desired output syntax.\nPlease specify the "importAttributesKeyword" generator option, whose value can be one of:\n - "with" : `import { a } from "b" with { type: "json" };`\n - "assert" : `import { a } from "b" assert { type: "json" };`\n - "with-legacy" : `import { a } from "b" with type: "json";`\n'));let s=t==="assert"||!t&&i;if(this.word(s?"assert":"with"),this.space(),!s&&t!=="with"){this.printList(r||i);return}this.tokenChar(123),this.space(),this.printList(r||i),this.space(),this.tokenChar(125)}function J5(e){var t,r;this.word("export"),this.space(),e.exportKind==="type"&&(this.word("type"),this.space()),this.tokenChar(42),this.space(),this.word("from"),this.space(),(t=e.attributes)!=null&&t.length||(r=e.assertions)!=null&&r.length?(this.print(e.source,!0),this.space(),this._printAttributes(e)):this.print(e.source),this.semicolon()}function pm(e,t){B5(t.declaration)&&e._shouldPrintDecoratorsBeforeExport(t)&&e.printJoin(t.declaration.decorators)}function $5(e){if(pm(this,e),this.word("export"),this.space(),e.declaration){let i=e.declaration;this.print(i),cm(i)||this.semicolon()}else{e.exportKind==="type"&&(this.word("type"),this.space());let i=e.specifiers.slice(0),s=!1;for(;;){let n=i[0];if(F5(n)||j5(n))s=!0,this.print(i.shift()),i.length&&(this.tokenChar(44),this.space());else break}if((i.length||!i.length&&!s)&&(this.tokenChar(123),i.length&&(this.space(),this.printList(i),this.space()),this.tokenChar(125)),e.source){var t,r;this.space(),this.word("from"),this.space(),(t=e.attributes)!=null&&t.length||(r=e.assertions)!=null&&r.length?(this.print(e.source,!0),this.space(),this._printAttributes(e)):this.print(e.source)}this.semicolon()}}function H5(e){pm(this,e),this.word("export"),this.noIndentInnerCommentsHere(),this.space(),this.word("default"),this.space(),this.tokenContext|=M5.TokenContext.exportDefault;let t=e.declaration;this.print(t),cm(t)||this.semicolon()}function G5(e){var t,r;this.word("import"),this.space();let i=e.importKind==="type"||e.importKind==="typeof";i?(this.noIndentInnerCommentsHere(),this.word(e.importKind),this.space()):e.module?(this.noIndentInnerCommentsHere(),this.word("module"),this.space()):e.phase&&(this.noIndentInnerCommentsHere(),this.word(e.phase),this.space());let s=e.specifiers.slice(0),n=!!s.length;for(;n;){let a=s[0];if(R5(a)||q5(a))this.print(s.shift()),s.length&&(this.tokenChar(44),this.space());else break}s.length?(this.tokenChar(123),this.space(),this.printList(s),this.space(),this.tokenChar(125)):i&&!n&&(this.tokenChar(123),this.tokenChar(125)),(n||i)&&(this.space(),this.word("from"),this.space()),(t=e.attributes)!=null&&t.length||(r=e.assertions)!=null&&r.length?(this.print(e.source,!0),this.space(),this._printAttributes(e)):this.print(e.source),this.semicolon()}function z5(e){this.print(e.key),this.tokenChar(58),this.space(),this.print(e.value)}function Q5(e){this.tokenChar(42),this.space(),this.word("as"),this.space(),this.print(e.local)}function Z5(e){this.word("import"),e.phase&&(this.tokenChar(46),this.word(e.phase)),this.tokenChar(40),this.print(e.source),e.options!=null&&(this.tokenChar(44),this.space(),this.print(e.options)),this.tokenChar(41)}});var mm=A((hG,dm)=>{"use strict";var fm={},e4=fm.hasOwnProperty,hm=(e,t)=>{for(let r in e)e4.call(e,r)&&t(r,e[r])},t4=(e,t)=>(t&&hm(t,(r,i)=>{e[r]=i}),e),r4=(e,t)=>{let r=e.length,i=-1;for(;++i<r;)t(e[i])},fs=fm.toString,i4=Array.isArray,s4=Buffer.isBuffer,n4=e=>fs.call(e)=="[object Object]",a4=e=>typeof e=="string"||fs.call(e)=="[object String]",o4=e=>typeof e=="number"||fs.call(e)=="[object Number]",l4=e=>typeof e=="function",u4=e=>fs.call(e)=="[object Map]",c4=e=>fs.call(e)=="[object Set]",p4={'"':'\\"',"'":"\\'","\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t"},f4=/["'\\\b\f\n\r\t]/,h4=/[0-9]/,d4=/[ !#-&\(-\[\]-_a-~]/,Cr=(e,t)=>{let r=()=>{u=l,++t.indentLevel,l=t.indent.repeat(t.indentLevel)},i={escapeEverything:!1,minimal:!1,isScriptContext:!1,quotes:"single",wrap:!1,es6:!1,json:!1,compact:!0,lowercaseHex:!1,numbers:"decimal",indent:" ",indentLevel:0,__inline1__:!1,__inline2__:!1},s=t&&t.json;s&&(i.quotes="double",i.wrap=!0),t=t4(i,t),t.quotes!="single"&&t.quotes!="double"&&t.quotes!="backtick"&&(t.quotes="single");let n=t.quotes=="double"?'"':t.quotes=="backtick"?"`":"'",a=t.compact,o=t.lowercaseHex,l=t.indent.repeat(t.indentLevel),u="",c=t.__inline1__,T=t.__inline2__,P=a?"":`
|
|
24
|
-
`,E,v=!0,D=t.numbers=="binary",_=t.numbers=="octal",N=t.numbers=="decimal",M=t.numbers=="hexadecimal";if(s&&e&&l4(e.toJSON)&&(e=e.toJSON()),!a4(e)){if(u4(e))return e.size==0?"new Map()":(a||(t.__inline1__=!0,t.__inline2__=!1),"new Map("+Cr(Array.from(e),t)+")");if(c4(e))return e.size==0?"new Set()":"new Set("+Cr(Array.from(e),t)+")";if(s4(e))return e.length==0?"Buffer.from([])":"Buffer.from("+Cr(Array.from(e),t)+")";if(i4(e))return E=[],t.wrap=!0,c&&(t.__inline1__=!1,t.__inline2__=!0),T||r(),r4(e,ee=>{v=!1,T&&(t.__inline2__=!1),E.push((a||T?"":l)+Cr(ee,t))}),v?"[]":T?"["+E.join(", ")+"]":"["+P+E.join(","+P)+P+(a?"":u)+"]";if(o4(e)){if(s)return JSON.stringify(e);if(N)return String(e);if(M){let ee=e.toString(16);return o||(ee=ee.toUpperCase()),"0x"+ee}if(D)return"0b"+e.toString(2);if(_)return"0o"+e.toString(8)}else return n4(e)?(E=[],t.wrap=!0,r(),hm(e,(ee,qe)=>{v=!1,E.push((a?"":l)+Cr(ee,t)+":"+(a?"":" ")+Cr(qe,t))}),v?"{}":"{"+P+E.join(","+P)+P+(a?"":u)+"}"):s?JSON.stringify(e)||"null":String(e)}let ne=e,ae=-1,xe=ne.length;for(E="";++ae<xe;){let ee=ne.charAt(ae);if(t.es6){let w=ne.charCodeAt(ae);if(w>=55296&&w<=56319&&xe>ae+1){let V=ne.charCodeAt(ae+1);if(V>=56320&&V<=57343){let me=((w-55296)*1024+V-56320+65536).toString(16);o||(me=me.toUpperCase()),E+="\\u{"+me+"}",++ae;continue}}}if(!t.escapeEverything){if(d4.test(ee)){E+=ee;continue}if(ee=='"'){E+=n==ee?'\\"':ee;continue}if(ee=="`"){E+=n==ee?"\\`":ee;continue}if(ee=="'"){E+=n==ee?"\\'":ee;continue}}if(ee=="\0"&&!s&&!h4.test(ne.charAt(ae+1))){E+="\\0";continue}if(f4.test(ee)){E+=p4[ee];continue}let qe=ee.charCodeAt(0);if(t.minimal&&qe!=8232&&qe!=8233){E+=ee;continue}let Ue=qe.toString(16);o||(Ue=Ue.toUpperCase());let Y=Ue.length>2||s,W="\\"+(Y?"u":"x")+("0000"+Ue).slice(Y?-4:-2);E+=W}return t.wrap&&(E=n+E+n),n=="`"&&(E=E.replace(/\$\{/g,"\\${")),t.isScriptContext?E.replace(/<\/(script|style)/gi,"<\\/$1").replace(/<!--/g,s?"\\u003C!--":"\\x3C!--"):E};Cr.version="2.5.2";dm.exports=Cr});var Du=A(je=>{"use strict";Object.defineProperty(je,"__esModule",{value:!0});je.ArgumentPlaceholder=g4;je.ArrayPattern=je.ArrayExpression=P4;je.BigIntLiteral=_4;je.BooleanLiteral=I4;je.DecimalLiteral=D4;je.Identifier=T4;je.NullLiteral=w4;je.NumericLiteral=O4;je.ObjectPattern=je.ObjectExpression=S4;je.ObjectMethod=x4;je.ObjectProperty=E4;je.PipelineBareFunction=M4;je.PipelinePrimaryTopicReference=B4;je.PipelineTopicExpression=L4;je.RecordExpression=A4;je.RegExpLiteral=C4;je.SpreadElement=je.RestElement=b4;je.StringLiteral=N4;je.TopicReference=k4;je.TupleExpression=v4;var m4=de(),Tm=mm(),{isAssignmentPattern:y4,isIdentifier:_u}=m4;function T4(e){var t;this.sourceIdentifierName(((t=e.loc)==null?void 0:t.identifierName)||e.name),this.word(e.name)}function g4(){this.tokenChar(63)}function b4(e){this.token("..."),this.print(e.argument)}function S4(e){let t=e.properties;if(this.tokenChar(123),t.length){let r=this.enterForStatementInit(!1);this.space(),this.printList(t,{indent:!0,statement:!0}),this.space(),r()}this.sourceWithOffset("end",e.loc,-1),this.tokenChar(125)}function x4(e){this.printJoin(e.decorators),this._methodHead(e),this.space(),this.print(e.body)}function E4(e){if(this.printJoin(e.decorators),e.computed)this.tokenChar(91),this.print(e.key),this.tokenChar(93);else{if(y4(e.value)&&_u(e.key)&&e.key.name===e.value.left.name){this.print(e.value);return}if(this.print(e.key),e.shorthand&&_u(e.key)&&_u(e.value)&&e.key.name===e.value.name)return}this.tokenChar(58),this.space(),this.print(e.value)}function P4(e){let t=e.elements,r=t.length;this.tokenChar(91);let i=this.enterForStatementInit(!1);for(let s=0;s<t.length;s++){let n=t[s];n?(s>0&&this.space(),this.print(n),s<r-1&&this.tokenChar(44)):this.tokenChar(44)}i(),this.tokenChar(93)}function A4(e){let t=e.properties,r,i;if(this.format.recordAndTupleSyntaxType==="bar")r="{|",i="|}";else{if(this.format.recordAndTupleSyntaxType!=="hash"&&this.format.recordAndTupleSyntaxType!=null)throw new Error(`The "recordAndTupleSyntaxType" generator option must be "bar" or "hash" (${JSON.stringify(this.format.recordAndTupleSyntaxType)} received).`);r="#{",i="}"}this.token(r),t.length&&(this.space(),this.printList(t,{indent:!0,statement:!0}),this.space()),this.token(i)}function v4(e){let t=e.elements,r=t.length,i,s;if(this.format.recordAndTupleSyntaxType==="bar")i="[|",s="|]";else if(this.format.recordAndTupleSyntaxType==="hash")i="#[",s="]";else throw new Error(`${this.format.recordAndTupleSyntaxType} is not a valid recordAndTuple syntax type`);this.token(i);for(let n=0;n<t.length;n++){let a=t[n];a&&(n>0&&this.space(),this.print(a),n<r-1&&this.tokenChar(44))}this.token(s)}function C4(e){this.word(`/${e.pattern}/${e.flags}`)}function I4(e){this.word(e.value?"true":"false")}function w4(){this.word("null")}function O4(e){let t=this.getPossibleRaw(e),r=this.format.jsescOption,i=e.value,s=i+"";r.numbers?this.number(Tm(i,r),i):t==null?this.number(s,i):this.format.minified?this.number(t.length<s.length?t:s,i):this.number(t,i)}function N4(e){let t=this.getPossibleRaw(e);if(!this.format.minified&&t!==void 0){this.token(t);return}let r=Tm(e.value,this.format.jsescOption);this.token(r)}function _4(e){let t=this.getPossibleRaw(e);if(!this.format.minified&&t!==void 0){this.word(t);return}this.word(e.value+"n")}function D4(e){let t=this.getPossibleRaw(e);if(!this.format.minified&&t!==void 0){this.word(t);return}this.word(e.value+"m")}var ym=new Set(["^^","@@","^","%","#"]);function k4(){let{topicToken:e}=this.format;if(ym.has(e))this.token(e);else{let t=JSON.stringify(e),r=Array.from(ym,i=>JSON.stringify(i));throw new Error(`The "topicToken" generator option must be one of ${r.join(", ")} (${t} received instead).`)}}function L4(e){this.print(e.expression)}function M4(e){this.print(e.callee)}function B4(){this.tokenChar(35)}});var bm=A($=>{"use strict";Object.defineProperty($,"__esModule",{value:!0});$.AnyTypeAnnotation=U4;$.ArrayTypeAnnotation=V4;$.BooleanLiteralTypeAnnotation=W4;$.BooleanTypeAnnotation=K4;$.DeclareClass=X4;$.DeclareExportAllDeclaration=i6;$.DeclareExportDeclaration=r6;$.DeclareFunction=J4;$.DeclareInterface=G4;$.DeclareModule=z4;$.DeclareModuleExports=Q4;$.DeclareOpaqueType=e6;$.DeclareTypeAlias=Z4;$.DeclareVariable=t6;$.DeclaredPredicate=H4;$.EmptyTypeAnnotation=v6;$.EnumBooleanBody=n6;$.EnumBooleanMember=c6;$.EnumDeclaration=s6;$.EnumDefaultedMember=u6;$.EnumNumberBody=a6;$.EnumNumberMember=p6;$.EnumStringBody=o6;$.EnumStringMember=f6;$.EnumSymbolBody=l6;$.ExistsTypeAnnotation=d6;$.FunctionTypeAnnotation=m6;$.FunctionTypeParam=y6;$.IndexedAccessType=G6;$.InferredPredicate=$4;$.InterfaceDeclaration=S6;$.GenericTypeAnnotation=$.ClassImplements=$.InterfaceExtends=T6;$.InterfaceTypeAnnotation=E6;$.IntersectionTypeAnnotation=P6;$.MixedTypeAnnotation=A6;$.NullLiteralTypeAnnotation=Y4;$.NullableTypeAnnotation=C6;Object.defineProperty($,"NumberLiteralTypeAnnotation",{enumerable:!0,get:function(){return gm.NumericLiteral}});$.NumberTypeAnnotation=I6;$.ObjectTypeAnnotation=F6;$.ObjectTypeCallProperty=R6;$.ObjectTypeIndexer=q6;$.ObjectTypeInternalSlot=j6;$.ObjectTypeProperty=U6;$.ObjectTypeSpreadProperty=V6;$.OpaqueType=B6;$.OptionalIndexedAccessType=z6;$.QualifiedTypeIdentifier=K6;Object.defineProperty($,"StringLiteralTypeAnnotation",{enumerable:!0,get:function(){return gm.StringLiteral}});$.StringTypeAnnotation=w6;$.SymbolTypeAnnotation=W6;$.ThisTypeAnnotation=O6;$.TupleTypeAnnotation=N6;$.TypeAlias=D6;$.TypeAnnotation=k6;$.TypeCastExpression=J6;$.TypeParameter=M6;$.TypeParameterDeclaration=$.TypeParameterInstantiation=L6;$.TypeofTypeAnnotation=_6;$.UnionTypeAnnotation=X6;$.Variance=$6;$.VoidTypeAnnotation=H6;$._interfaceish=g6;$._variance=b6;var F4=de(),j4=Nu(),R4=Ar(),gm=Du(),{isDeclareExportDeclaration:kn,isStatement:q4}=F4;function U4(){this.word("any")}function V4(e){this.print(e.elementType,!0),this.tokenChar(91),this.tokenChar(93)}function K4(){this.word("boolean")}function W4(e){this.word(e.value?"true":"false")}function Y4(){this.word("null")}function X4(e,t){kn(t)||(this.word("declare"),this.space()),this.word("class"),this.space(),this._interfaceish(e)}function J4(e,t){kn(t)||(this.word("declare"),this.space()),this.word("function"),this.space(),this.print(e.id),this.print(e.id.typeAnnotation.typeAnnotation),e.predicate&&(this.space(),this.print(e.predicate)),this.semicolon()}function $4(){this.tokenChar(37),this.word("checks")}function H4(e){this.tokenChar(37),this.word("checks"),this.tokenChar(40),this.print(e.value),this.tokenChar(41)}function G4(e){this.word("declare"),this.space(),this.InterfaceDeclaration(e)}function z4(e){this.word("declare"),this.space(),this.word("module"),this.space(),this.print(e.id),this.space(),this.print(e.body)}function Q4(e){this.word("declare"),this.space(),this.word("module"),this.tokenChar(46),this.word("exports"),this.print(e.typeAnnotation)}function Z4(e){this.word("declare"),this.space(),this.TypeAlias(e)}function e6(e,t){kn(t)||(this.word("declare"),this.space()),this.OpaqueType(e)}function t6(e,t){kn(t)||(this.word("declare"),this.space()),this.word("var"),this.space(),this.print(e.id),this.print(e.id.typeAnnotation),this.semicolon()}function r6(e){this.word("declare"),this.space(),this.word("export"),this.space(),e.default&&(this.word("default"),this.space()),h6.call(this,e)}function i6(e){this.word("declare"),this.space(),j4.ExportAllDeclaration.call(this,e)}function s6(e){let{id:t,body:r}=e;this.word("enum"),this.space(),this.print(t),this.print(r)}function Ln(e,t,r){r&&(e.space(),e.word("of"),e.space(),e.word(t)),e.space()}function Mn(e,t){let{members:r}=t;e.token("{"),e.indent(),e.newline();for(let i of r)e.print(i),e.newline();t.hasUnknownMembers&&(e.token("..."),e.newline()),e.dedent(),e.token("}")}function n6(e){let{explicitType:t}=e;Ln(this,"boolean",t),Mn(this,e)}function a6(e){let{explicitType:t}=e;Ln(this,"number",t),Mn(this,e)}function o6(e){let{explicitType:t}=e;Ln(this,"string",t),Mn(this,e)}function l6(e){Ln(this,"symbol",!0),Mn(this,e)}function u6(e){let{id:t}=e;this.print(t),this.tokenChar(44)}function ku(e,t){e.print(t.id),e.space(),e.token("="),e.space(),e.print(t.init),e.token(",")}function c6(e){ku(this,e)}function p6(e){ku(this,e)}function f6(e){ku(this,e)}function h6(e){if(e.declaration){let t=e.declaration;this.print(t),q4(t)||this.semicolon()}else this.tokenChar(123),e.specifiers.length&&(this.space(),this.printList(e.specifiers),this.space()),this.tokenChar(125),e.source&&(this.space(),this.word("from"),this.space(),this.print(e.source)),this.semicolon()}function d6(){this.tokenChar(42)}function m6(e,t){this.print(e.typeParameters),this.tokenChar(40),e.this&&(this.word("this"),this.tokenChar(58),this.space(),this.print(e.this.typeAnnotation),(e.params.length||e.rest)&&(this.tokenChar(44),this.space())),this.printList(e.params),e.rest&&(e.params.length&&(this.tokenChar(44),this.space()),this.token("..."),this.print(e.rest)),this.tokenChar(41);let r=t?.type;r!=null&&(r==="ObjectTypeCallProperty"||r==="ObjectTypeInternalSlot"||r==="DeclareFunction"||r==="ObjectTypeProperty"&&t.method)?this.tokenChar(58):(this.space(),this.token("=>")),this.space(),this.print(e.returnType)}function y6(e){this.print(e.name),e.optional&&this.tokenChar(63),e.name&&(this.tokenChar(58),this.space()),this.print(e.typeAnnotation)}function T6(e){this.print(e.id),this.print(e.typeParameters,!0)}function g6(e){var t;if(this.print(e.id),this.print(e.typeParameters),(t=e.extends)!=null&&t.length&&(this.space(),this.word("extends"),this.space(),this.printList(e.extends)),e.type==="DeclareClass"){var r,i;(r=e.mixins)!=null&&r.length&&(this.space(),this.word("mixins"),this.space(),this.printList(e.mixins)),(i=e.implements)!=null&&i.length&&(this.space(),this.word("implements"),this.space(),this.printList(e.implements))}this.space(),this.print(e.body)}function b6(e){var t;let r=(t=e.variance)==null?void 0:t.kind;r!=null&&(r==="plus"?this.tokenChar(43):r==="minus"&&this.tokenChar(45))}function S6(e){this.word("interface"),this.space(),this._interfaceish(e)}function x6(){this.space(),this.tokenChar(38),this.space()}function E6(e){var t;this.word("interface"),(t=e.extends)!=null&&t.length&&(this.space(),this.word("extends"),this.space(),this.printList(e.extends)),this.space(),this.print(e.body)}function P6(e){this.printJoin(e.types,{separator:x6})}function A6(){this.word("mixed")}function v6(){this.word("empty")}function C6(e){this.tokenChar(63),this.print(e.typeAnnotation)}function I6(){this.word("number")}function w6(){this.word("string")}function O6(){this.word("this")}function N6(e){this.tokenChar(91),this.printList(e.types),this.tokenChar(93)}function _6(e){this.word("typeof"),this.space(),this.print(e.argument)}function D6(e){this.word("type"),this.space(),this.print(e.id),this.print(e.typeParameters),this.space(),this.tokenChar(61),this.space(),this.print(e.right),this.semicolon()}function k6(e,t){this.tokenChar(58),this.space(),t.type==="ArrowFunctionExpression"?this.tokenContext|=R4.TokenContext.arrowFlowReturnType:e.optional&&this.tokenChar(63),this.print(e.typeAnnotation)}function L6(e){this.tokenChar(60),this.printList(e.params,{}),this.tokenChar(62)}function M6(e){this._variance(e),this.word(e.name),e.bound&&this.print(e.bound),e.default&&(this.space(),this.tokenChar(61),this.space(),this.print(e.default))}function B6(e){this.word("opaque"),this.space(),this.word("type"),this.space(),this.print(e.id),this.print(e.typeParameters),e.supertype&&(this.tokenChar(58),this.space(),this.print(e.supertype)),e.impltype&&(this.space(),this.tokenChar(61),this.space(),this.print(e.impltype)),this.semicolon()}function F6(e){e.exact?this.token("{|"):this.tokenChar(123);let t=[...e.properties,...e.callProperties||[],...e.indexers||[],...e.internalSlots||[]];t.length&&(this.newline(),this.space(),this.printJoin(t,{addNewlines(r){if(r&&!t[0])return 1},indent:!0,statement:!0,iterator:()=>{(t.length!==1||e.inexact)&&(this.tokenChar(44),this.space())}}),this.space()),e.inexact&&(this.indent(),this.token("..."),t.length&&this.newline(),this.dedent()),e.exact?this.token("|}"):this.tokenChar(125)}function j6(e){e.static&&(this.word("static"),this.space()),this.tokenChar(91),this.tokenChar(91),this.print(e.id),this.tokenChar(93),this.tokenChar(93),e.optional&&this.tokenChar(63),e.method||(this.tokenChar(58),this.space()),this.print(e.value)}function R6(e){e.static&&(this.word("static"),this.space()),this.print(e.value)}function q6(e){e.static&&(this.word("static"),this.space()),this._variance(e),this.tokenChar(91),e.id&&(this.print(e.id),this.tokenChar(58),this.space()),this.print(e.key),this.tokenChar(93),this.tokenChar(58),this.space(),this.print(e.value)}function U6(e){e.proto&&(this.word("proto"),this.space()),e.static&&(this.word("static"),this.space()),(e.kind==="get"||e.kind==="set")&&(this.word(e.kind),this.space()),this._variance(e),this.print(e.key),e.optional&&this.tokenChar(63),e.method||(this.tokenChar(58),this.space()),this.print(e.value)}function V6(e){this.token("..."),this.print(e.argument)}function K6(e){this.print(e.qualification),this.tokenChar(46),this.print(e.id)}function W6(){this.word("symbol")}function Y6(){this.space(),this.tokenChar(124),this.space()}function X6(e){this.printJoin(e.types,{separator:Y6})}function J6(e){this.tokenChar(40),this.print(e.expression),this.print(e.typeAnnotation),this.tokenChar(41)}function $6(e){e.kind==="plus"?this.tokenChar(43):this.tokenChar(45)}function H6(){this.word("void")}function G6(e){this.print(e.objectType,!0),this.tokenChar(91),this.print(e.indexType),this.tokenChar(93)}function z6(e){this.print(e.objectType),e.optional&&this.token("?."),this.tokenChar(91),this.print(e.indexType),this.tokenChar(93)}});var Sm=A(cr=>{"use strict";Object.defineProperty(cr,"__esModule",{value:!0});cr.BlockStatement=e8;cr.Directive=t8;cr.DirectiveLiteral=s8;cr.File=Q6;cr.InterpreterDirective=n8;cr.Placeholder=a8;cr.Program=Z6;function Q6(e){e.program&&this.print(e.program.interpreter),this.print(e.program)}function Z6(e){var t;this.noIndentInnerCommentsHere(),this.printInnerComments();let r=(t=e.directives)==null?void 0:t.length;if(r){var i;let s=e.body.length?2:1;this.printSequence(e.directives,{trailingCommentsLineOffset:s}),(i=e.directives[r-1].trailingComments)!=null&&i.length||this.newline(s)}this.printSequence(e.body)}function e8(e){var t;this.tokenChar(123);let r=(t=e.directives)==null?void 0:t.length;if(r){var i;let n=e.body.length?2:1;this.printSequence(e.directives,{indent:!0,trailingCommentsLineOffset:n}),(i=e.directives[r-1].trailingComments)!=null&&i.length||this.newline(n)}let s=this.enterForStatementInit(!1);this.printSequence(e.body,{indent:!0}),s(),this.rightBrace(e)}function t8(e){this.print(e.value),this.semicolon()}var r8=/(?:^|[^\\])(?:\\\\)*'/,i8=/(?:^|[^\\])(?:\\\\)*"/;function s8(e){let t=this.getPossibleRaw(e);if(!this.format.minified&&t!==void 0){this.token(t);return}let{value:r}=e;if(!i8.test(r))this.token(`"${r}"`);else if(!r8.test(r))this.token(`'${r}'`);else throw new Error("Malformed AST: it is not possible to print a directive containing both unescaped single and double quotes.")}function n8(e){this.token(`#!${e.value}`),this.newline(1,!0)}function a8(e){this.token("%%"),this.print(e.name),this.token("%%"),e.expectedNode==="Statement"&&this.semicolon()}});var xm=A(tt=>{"use strict";Object.defineProperty(tt,"__esModule",{value:!0});tt.JSXAttribute=o8;tt.JSXClosingElement=g8;tt.JSXClosingFragment=E8;tt.JSXElement=m8;tt.JSXEmptyExpression=b8;tt.JSXExpressionContainer=f8;tt.JSXFragment=S8;tt.JSXIdentifier=l8;tt.JSXMemberExpression=c8;tt.JSXNamespacedName=u8;tt.JSXOpeningElement=T8;tt.JSXOpeningFragment=x8;tt.JSXSpreadAttribute=p8;tt.JSXSpreadChild=h8;tt.JSXText=d8;function o8(e){this.print(e.name),e.value&&(this.tokenChar(61),this.print(e.value))}function l8(e){this.word(e.name)}function u8(e){this.print(e.namespace),this.tokenChar(58),this.print(e.name)}function c8(e){this.print(e.object),this.tokenChar(46),this.print(e.property)}function p8(e){this.tokenChar(123),this.token("..."),this.print(e.argument),this.rightBrace(e)}function f8(e){this.tokenChar(123),this.print(e.expression),this.rightBrace(e)}function h8(e){this.tokenChar(123),this.token("..."),this.print(e.expression),this.rightBrace(e)}function d8(e){let t=this.getPossibleRaw(e);t!==void 0?this.token(t,!0):this.token(e.value,!0)}function m8(e){let t=e.openingElement;if(this.print(t),!t.selfClosing){this.indent();for(let r of e.children)this.print(r);this.dedent(),this.print(e.closingElement)}}function y8(){this.space()}function T8(e){this.tokenChar(60),this.print(e.name),this.print(e.typeParameters),e.attributes.length>0&&(this.space(),this.printJoin(e.attributes,{separator:y8})),e.selfClosing?(this.space(),this.token("/>")):this.tokenChar(62)}function g8(e){this.token("</"),this.print(e.name),this.tokenChar(62)}function b8(){this.printInnerComments()}function S8(e){this.print(e.openingFragment),this.indent();for(let t of e.children)this.print(t);this.dedent(),this.print(e.closingFragment)}function x8(){this.tokenChar(60),this.tokenChar(62)}function E8(){this.token("</"),this.tokenChar(62)}});var Am=A(X=>{"use strict";Object.defineProperty(X,"__esModule",{value:!0});X.TSAnyKeyword=B8;X.TSArrayType=s9;X.TSSatisfiesExpression=X.TSAsExpression=E9;X.TSBigIntKeyword=F8;X.TSBooleanKeyword=U8;X.TSCallSignatureDeclaration=N8;X.TSConditionalType=p9;X.TSConstructSignatureDeclaration=_8;X.TSConstructorType=z8;X.TSDeclareFunction=I8;X.TSDeclareMethod=w8;X.TSEnumDeclaration=v9;X.TSEnumMember=C9;X.TSExportAssignment=k9;X.TSExpressionWithTypeArguments=g9;X.TSExternalModuleReference=_9;X.TSFunctionType=G8;X.TSImportEqualsDeclaration=N9;X.TSImportType=O9;X.TSIndexSignature=M8;X.TSIndexedAccessType=m9;X.TSInferType=f9;X.TSInstantiationExpression=A9;X.TSInterfaceBody=S9;X.TSInterfaceDeclaration=b9;X.TSIntersectionType=c9;X.TSIntrinsicKeyword=$8;X.TSLiteralType=T9;X.TSMappedType=y9;X.TSMethodSignature=L8;X.TSModuleBlock=w9;X.TSModuleDeclaration=I9;X.TSNamedTupleMember=l9;X.TSNamespaceExportDeclaration=L9;X.TSNeverKeyword=J8;X.TSNonNullExpression=D9;X.TSNullKeyword=X8;X.TSNumberKeyword=R8;X.TSObjectKeyword=q8;X.TSOptionalType=a9;X.TSParameterProperty=C8;X.TSParenthesizedType=h9;X.TSPropertySignature=D8;X.TSQualifiedName=O8;X.TSRestType=o9;X.TSStringKeyword=V8;X.TSSymbolKeyword=K8;X.TSThisType=H8;X.TSTupleType=n9;X.TSTypeAliasDeclaration=x9;X.TSTypeAnnotation=P8;X.TSTypeAssertion=P9;X.TSTypeLiteral=r9;X.TSTypeOperator=d9;X.TSTypeParameter=v8;X.TSTypeParameterDeclaration=X.TSTypeParameterInstantiation=A8;X.TSTypePredicate=e9;X.TSTypeQuery=t9;X.TSTypeReference=Z8;X.TSUndefinedKeyword=Y8;X.TSUnionType=u9;X.TSUnknownKeyword=j8;X.TSVoidKeyword=W8;X.tsPrintClassMemberModifiers=B9;X.tsPrintFunctionOrConstructorType=Q8;X.tsPrintPropertyOrMethodName=k8;X.tsPrintSignatureDeclarationBase=M9;X.tsPrintTypeLiteralOrInterfaceBody=i9;function P8(e){this.tokenChar(58),this.space(),e.optional&&this.tokenChar(63),this.print(e.typeAnnotation)}function A8(e,t){this.tokenChar(60),this.printList(e.params,{}),t.type==="ArrowFunctionExpression"&&e.params.length===1&&this.tokenChar(44),this.tokenChar(62)}function v8(e){e.in&&(this.word("in"),this.space()),e.out&&(this.word("out"),this.space()),this.word(e.name),e.constraint&&(this.space(),this.word("extends"),this.space(),this.print(e.constraint)),e.default&&(this.space(),this.tokenChar(61),this.space(),this.print(e.default))}function C8(e){e.accessibility&&(this.word(e.accessibility),this.space()),e.readonly&&(this.word("readonly"),this.space()),this._param(e.parameter)}function I8(e,t){e.declare&&(this.word("declare"),this.space()),this._functionHead(e,t),this.semicolon()}function w8(e){this._classMethodHead(e),this.semicolon()}function O8(e){this.print(e.left),this.tokenChar(46),this.print(e.right)}function N8(e){this.tsPrintSignatureDeclarationBase(e),this.semicolon()}function _8(e){this.word("new"),this.space(),this.tsPrintSignatureDeclarationBase(e),this.semicolon()}function D8(e){let{readonly:t}=e;t&&(this.word("readonly"),this.space()),this.tsPrintPropertyOrMethodName(e),this.print(e.typeAnnotation),this.semicolon()}function k8(e){e.computed&&this.tokenChar(91),this.print(e.key),e.computed&&this.tokenChar(93),e.optional&&this.tokenChar(63)}function L8(e){let{kind:t}=e;(t==="set"||t==="get")&&(this.word(t),this.space()),this.tsPrintPropertyOrMethodName(e),this.tsPrintSignatureDeclarationBase(e),this.semicolon()}function M8(e){let{readonly:t,static:r}=e;r&&(this.word("static"),this.space()),t&&(this.word("readonly"),this.space()),this.tokenChar(91),this._parameters(e.parameters),this.tokenChar(93),this.print(e.typeAnnotation),this.semicolon()}function B8(){this.word("any")}function F8(){this.word("bigint")}function j8(){this.word("unknown")}function R8(){this.word("number")}function q8(){this.word("object")}function U8(){this.word("boolean")}function V8(){this.word("string")}function K8(){this.word("symbol")}function W8(){this.word("void")}function Y8(){this.word("undefined")}function X8(){this.word("null")}function J8(){this.word("never")}function $8(){this.word("intrinsic")}function H8(){this.word("this")}function G8(e){this.tsPrintFunctionOrConstructorType(e)}function z8(e){e.abstract&&(this.word("abstract"),this.space()),this.word("new"),this.space(),this.tsPrintFunctionOrConstructorType(e)}function Q8(e){let{typeParameters:t}=e,r=e.parameters;this.print(t),this.tokenChar(40),this._parameters(r),this.tokenChar(41),this.space(),this.token("=>"),this.space();let i=e.typeAnnotation;this.print(i.typeAnnotation)}function Z8(e){this.print(e.typeName,!0),this.print(e.typeParameters,!0)}function e9(e){e.asserts&&(this.word("asserts"),this.space()),this.print(e.parameterName),e.typeAnnotation&&(this.space(),this.word("is"),this.space(),this.print(e.typeAnnotation.typeAnnotation))}function t9(e){this.word("typeof"),this.space(),this.print(e.exprName),e.typeParameters&&this.print(e.typeParameters)}function r9(e){this.tsPrintTypeLiteralOrInterfaceBody(e.members,e)}function i9(e,t){Lu(this,e,t)}function Lu(e,t,r){if(e.token("{"),t.length){e.indent(),e.newline();for(let i of t)e.print(i),e.newline();e.dedent()}e.rightBrace(r)}function s9(e){this.print(e.elementType,!0),this.tokenChar(91),this.tokenChar(93)}function n9(e){this.tokenChar(91),this.printList(e.elementTypes),this.tokenChar(93)}function a9(e){this.print(e.typeAnnotation),this.tokenChar(63)}function o9(e){this.token("..."),this.print(e.typeAnnotation)}function l9(e){this.print(e.label),e.optional&&this.tokenChar(63),this.tokenChar(58),this.space(),this.print(e.elementType)}function u9(e){Pm(this,e,"|")}function c9(e){Pm(this,e,"&")}function Pm(e,t,r){e.printJoin(t.types,{separator(){this.space(),this.token(r),this.space()}})}function p9(e){this.print(e.checkType),this.space(),this.word("extends"),this.space(),this.print(e.extendsType),this.space(),this.tokenChar(63),this.space(),this.print(e.trueType),this.space(),this.tokenChar(58),this.space(),this.print(e.falseType)}function f9(e){this.token("infer"),this.space(),this.print(e.typeParameter)}function h9(e){this.tokenChar(40),this.print(e.typeAnnotation),this.tokenChar(41)}function d9(e){this.word(e.operator),this.space(),this.print(e.typeAnnotation)}function m9(e){this.print(e.objectType,!0),this.tokenChar(91),this.print(e.indexType),this.tokenChar(93)}function y9(e){let{nameType:t,optional:r,readonly:i,typeAnnotation:s}=e;this.tokenChar(123),this.space(),i&&(Em(this,i),this.word("readonly"),this.space()),this.tokenChar(91),this.word(e.typeParameter.name),this.space(),this.word("in"),this.space(),this.print(e.typeParameter.constraint),t&&(this.space(),this.word("as"),this.space(),this.print(t)),this.tokenChar(93),r&&(Em(this,r),this.tokenChar(63)),s&&(this.tokenChar(58),this.space(),this.print(s)),this.space(),this.tokenChar(125)}function Em(e,t){t!==!0&&e.token(t)}function T9(e){this.print(e.literal)}function g9(e){this.print(e.expression),this.print(e.typeParameters)}function b9(e){let{declare:t,id:r,typeParameters:i,extends:s,body:n}=e;t&&(this.word("declare"),this.space()),this.word("interface"),this.space(),this.print(r),this.print(i),s!=null&&s.length&&(this.space(),this.word("extends"),this.space(),this.printList(s)),this.space(),this.print(n)}function S9(e){this.tsPrintTypeLiteralOrInterfaceBody(e.body,e)}function x9(e){let{declare:t,id:r,typeParameters:i,typeAnnotation:s}=e;t&&(this.word("declare"),this.space()),this.word("type"),this.space(),this.print(r),this.print(i),this.space(),this.tokenChar(61),this.space(),this.print(s),this.semicolon()}function E9(e){var t;let{type:r,expression:i,typeAnnotation:s}=e,n=(t=i.trailingComments)==null?void 0:t.some(a=>a.type==="CommentLine"||/[\r\n\u2028\u2029]/.test(a.value));this.print(i,!0,void 0,n),this.space(),this.word(r==="TSAsExpression"?"as":"satisfies"),this.space(),this.print(s)}function P9(e){let{typeAnnotation:t,expression:r}=e;this.tokenChar(60),this.print(t),this.tokenChar(62),this.space(),this.print(r)}function A9(e){this.print(e.expression),this.print(e.typeParameters)}function v9(e){let{declare:t,const:r,id:i,members:s}=e;t&&(this.word("declare"),this.space()),r&&(this.word("const"),this.space()),this.word("enum"),this.space(),this.print(i),this.space(),Lu(this,s,e)}function C9(e){let{id:t,initializer:r}=e;this.print(t),r&&(this.space(),this.tokenChar(61),this.space(),this.print(r)),this.tokenChar(44)}function I9(e){let{declare:t,id:r}=e;if(t&&(this.word("declare"),this.space()),e.global||(this.word(r.type==="Identifier"?"namespace":"module"),this.space()),this.print(r),!e.body){this.semicolon();return}let i=e.body;for(;i.type==="TSModuleDeclaration";)this.tokenChar(46),this.print(i.id),i=i.body;this.space(),this.print(i)}function w9(e){Lu(this,e.body,e)}function O9(e){let{argument:t,qualifier:r,typeParameters:i}=e;this.word("import"),this.tokenChar(40),this.print(t),this.tokenChar(41),r&&(this.tokenChar(46),this.print(r)),i&&this.print(i)}function N9(e){let{isExport:t,id:r,moduleReference:i}=e;t&&(this.word("export"),this.space()),this.word("import"),this.space(),this.print(r),this.space(),this.tokenChar(61),this.space(),this.print(i),this.semicolon()}function _9(e){this.token("require("),this.print(e.expression),this.tokenChar(41)}function D9(e){this.print(e.expression),this.tokenChar(33)}function k9(e){this.word("export"),this.space(),this.tokenChar(61),this.space(),this.print(e.expression),this.semicolon()}function L9(e){this.word("export"),this.space(),this.word("as"),this.space(),this.word("namespace"),this.space(),this.print(e.id),this.semicolon()}function M9(e){let{typeParameters:t}=e,r=e.parameters;this.print(t),this.tokenChar(40),this._parameters(r),this.tokenChar(41);let i=e.typeAnnotation;this.print(i)}function B9(e){let t=e.type==="ClassAccessorProperty"||e.type==="ClassProperty";t&&e.declare&&(this.word("declare"),this.space()),e.accessibility&&(this.word(e.accessibility),this.space()),e.static&&(this.word("static"),this.space()),e.override&&(this.word("override"),this.space()),e.abstract&&(this.word("abstract"),this.space()),t&&e.readonly&&(this.word("readonly"),this.space())}});var vm=A(Pe=>{"use strict";Object.defineProperty(Pe,"__esModule",{value:!0});var Mu=em();Object.keys(Mu).forEach(function(e){e==="default"||e==="__esModule"||e in Pe&&Pe[e]===Mu[e]||Object.defineProperty(Pe,e,{enumerable:!0,get:function(){return Mu[e]}})});var Bu=rm();Object.keys(Bu).forEach(function(e){e==="default"||e==="__esModule"||e in Pe&&Pe[e]===Bu[e]||Object.defineProperty(Pe,e,{enumerable:!0,get:function(){return Bu[e]}})});var Fu=am();Object.keys(Fu).forEach(function(e){e==="default"||e==="__esModule"||e in Pe&&Pe[e]===Fu[e]||Object.defineProperty(Pe,e,{enumerable:!0,get:function(){return Fu[e]}})});var ju=om();Object.keys(ju).forEach(function(e){e==="default"||e==="__esModule"||e in Pe&&Pe[e]===ju[e]||Object.defineProperty(Pe,e,{enumerable:!0,get:function(){return ju[e]}})});var Ru=lm();Object.keys(Ru).forEach(function(e){e==="default"||e==="__esModule"||e in Pe&&Pe[e]===Ru[e]||Object.defineProperty(Pe,e,{enumerable:!0,get:function(){return Ru[e]}})});var qu=Nu();Object.keys(qu).forEach(function(e){e==="default"||e==="__esModule"||e in Pe&&Pe[e]===qu[e]||Object.defineProperty(Pe,e,{enumerable:!0,get:function(){return qu[e]}})});var Uu=Du();Object.keys(Uu).forEach(function(e){e==="default"||e==="__esModule"||e in Pe&&Pe[e]===Uu[e]||Object.defineProperty(Pe,e,{enumerable:!0,get:function(){return Uu[e]}})});var Vu=bm();Object.keys(Vu).forEach(function(e){e==="default"||e==="__esModule"||e in Pe&&Pe[e]===Vu[e]||Object.defineProperty(Pe,e,{enumerable:!0,get:function(){return Vu[e]}})});var Ku=Sm();Object.keys(Ku).forEach(function(e){e==="default"||e==="__esModule"||e in Pe&&Pe[e]===Ku[e]||Object.defineProperty(Pe,e,{enumerable:!0,get:function(){return Ku[e]}})});var Wu=xm();Object.keys(Wu).forEach(function(e){e==="default"||e==="__esModule"||e in Pe&&Pe[e]===Wu[e]||Object.defineProperty(Pe,e,{enumerable:!0,get:function(){return Wu[e]}})});var Yu=Am();Object.keys(Yu).forEach(function(e){e==="default"||e==="__esModule"||e in Pe&&Pe[e]===Yu[e]||Object.defineProperty(Pe,e,{enumerable:!0,get:function(){return Yu[e]}})})});var Im=A(Bn=>{"use strict";Object.defineProperty(Bn,"__esModule",{value:!0});Bn.default=void 0;var F9=Fd(),j9=Ar(),R9=de(),q9=vm(),{isFunction:U9,isStatement:V9,isClassBody:K9,isTSInterfaceBody:W9,isTSEnumDeclaration:Y9}=R9,X9=/e/i,J9=/\.0+$/,Cm=/[\n\r\u2028\u2029]/,$9=/[\n\r\u2028\u2029]|\*\//,{needsParens:H9}=j9,hs=class{constructor(t,r){this.inForStatementInit=!1,this.tokenContext=0,this._currentNode=null,this._indent=0,this._indentRepeat=0,this._insideAux=!1,this._parenPushNewlineState=null,this._noLineTerminator=!1,this._printAuxAfterOnNextUserNode=!1,this._printedComments=new Set,this._endsWithInteger=!1,this._endsWithWord=!1,this._endsWithDiv=!1,this._lastCommentLine=0,this._endsWithInnerRaw=!1,this._indentInnerComments=!0,this.format=t,this._indentRepeat=t.indent.style.length,this._inputMap=r?._inputMap,this._buf=new F9.default(r,t.indent.style[0])}enterForStatementInit(t){let r=this.inForStatementInit;return r===t?()=>{}:(this.inForStatementInit=t,()=>{this.inForStatementInit=r})}generate(t){return this.print(t),this._maybeAddAuxComment(),this._buf.get()}indent(){this.format.compact||this.format.concise||this._indent++}dedent(){this.format.compact||this.format.concise||this._indent--}semicolon(t=!1){this._maybeAddAuxComment(),t?this._appendChar(59):this._queue(59),this._noLineTerminator=!1}rightBrace(t){this.format.minified&&this._buf.removeLastSemicolon(),this.sourceWithOffset("end",t.loc,-1),this.tokenChar(125)}rightParens(t){this.sourceWithOffset("end",t.loc,-1),this.tokenChar(41)}space(t=!1){if(!this.format.compact){if(t)this._space();else if(this._buf.hasContent()){let r=this.getLastChar();r!==32&&r!==10&&this._space()}}}word(t,r=!1){this.tokenContext=0,this._maybePrintInnerComments(),(this._endsWithWord||this._endsWithDiv&&t.charCodeAt(0)===47)&&this._space(),this._maybeAddAuxComment(),this._append(t,!1),this._endsWithWord=!0,this._noLineTerminator=r}number(t,r){function i(s){if(s.length>2&&s.charCodeAt(0)===48){let n=s.charCodeAt(1);return n===98||n===111||n===120}return!1}this.word(t),this._endsWithInteger=Number.isInteger(r)&&!i(t)&&!X9.test(t)&&!J9.test(t)&&t.charCodeAt(t.length-1)!==46}token(t,r=!1){this.tokenContext=0,this._maybePrintInnerComments();let i=this.getLastChar(),s=t.charCodeAt(0);(i===33&&(t==="--"||s===61)||s===43&&i===43||s===45&&i===45||s===46&&this._endsWithInteger)&&this._space(),this._maybeAddAuxComment(),this._append(t,r),this._noLineTerminator=!1}tokenChar(t){this.tokenContext=0,this._maybePrintInnerComments();let r=this.getLastChar();(t===43&&r===43||t===45&&r===45||t===46&&this._endsWithInteger)&&this._space(),this._maybeAddAuxComment(),this._appendChar(t),this._noLineTerminator=!1}newline(t=1,r){if(!(t<=0)){if(!r){if(this.format.retainLines||this.format.compact)return;if(this.format.concise){this.space();return}}t>2&&(t=2),t-=this._buf.getNewlineCount();for(let i=0;i<t;i++)this._newline()}}endsWith(t){return this.getLastChar()===t}getLastChar(){return this._buf.getLastChar()}endsWithCharAndNewline(){return this._buf.endsWithCharAndNewline()}removeTrailingNewline(){this._buf.removeTrailingNewline()}exactSource(t,r){if(!t){r();return}this._catchUp("start",t),this._buf.exactSource(t,r)}source(t,r){r&&(this._catchUp(t,r),this._buf.source(t,r))}sourceWithOffset(t,r,i){r&&(this._catchUp(t,r),this._buf.sourceWithOffset(t,r,i))}sourceIdentifierName(t,r){if(!this._buf._canMarkIdName)return;let i=this._buf._sourcePosition;i.identifierNamePos=r,i.identifierName=t}_space(){this._queue(32)}_newline(){this._queue(10)}_append(t,r){this._maybeAddParen(t),this._maybeIndent(t.charCodeAt(0)),this._buf.append(t,r),this._endsWithWord=!1,this._endsWithInteger=!1,this._endsWithDiv=!1}_appendChar(t){this._maybeAddParenChar(t),this._maybeIndent(t),this._buf.appendChar(t),this._endsWithWord=!1,this._endsWithInteger=!1,this._endsWithDiv=!1}_queue(t){this._maybeAddParenChar(t),this._maybeIndent(t),this._buf.queue(t),this._endsWithWord=!1,this._endsWithInteger=!1}_maybeIndent(t){this._indent&&t!==10&&this.endsWith(10)&&this._buf.queueIndentation(this._getIndent())}_shouldIndent(t){if(this._indent&&t!==10&&this.endsWith(10))return!0}_maybeAddParenChar(t){let r=this._parenPushNewlineState;if(r&&t!==32){if(t!==10){this._parenPushNewlineState=null;return}this.tokenChar(40),this.indent(),r.printed=!0}}_maybeAddParen(t){let r=this._parenPushNewlineState;if(!r)return;let i=t.length,s;for(s=0;s<i&&t.charCodeAt(s)===32;s++);if(s===i)return;let n=t.charCodeAt(s);if(n!==10){if(n!==47||s+1===i){this._parenPushNewlineState=null;return}let a=t.charCodeAt(s+1);if(a===42)return;if(a!==47){this._parenPushNewlineState=null;return}}this.tokenChar(40),this.indent(),r.printed=!0}catchUp(t){if(!this.format.retainLines)return;let r=t-this._buf.getCurrentLine();for(let i=0;i<r;i++)this._newline()}_catchUp(t,r){var i;if(!this.format.retainLines)return;let s=r==null||(i=r[t])==null?void 0:i.line;if(s!=null){let n=s-this._buf.getCurrentLine();for(let a=0;a<n;a++)this._newline()}}_getIndent(){return this._indentRepeat*this._indent}printTerminatorless(t,r){if(r)this._noLineTerminator=!0,this.print(t);else{let i={printed:!1};this._parenPushNewlineState=i,this.print(t),i.printed&&(this.dedent(),this.newline(),this.tokenChar(41))}}print(t,r,i,s){var n,a;if(!t)return;this._endsWithInnerRaw=!1;let o=t.type,l=this.format,u=l.concise;t._compact&&(l.concise=!0);let c=this[o];if(c===void 0)throw new ReferenceError(`unknown node of type ${JSON.stringify(o)} with constructor ${JSON.stringify(t.constructor.name)}`);let T=this._currentNode;this._currentNode=t;let P=this._insideAux;this._insideAux=t.loc==null,this._maybeAddAuxComment(this._insideAux&&!P);let E=(n=t.extra)==null?void 0:n.parenthesized,v=s||E&&l.retainFunctionParens&&o==="FunctionExpression"||H9(t,T,this.tokenContext,this.inForStatementInit);if(!v&&E&&(a=t.leadingComments)!=null&&a.length&&t.leadingComments[0].type==="CommentBlock")switch(T?.type){case"ExpressionStatement":case"VariableDeclarator":case"AssignmentExpression":case"ReturnStatement":break;case"CallExpression":case"OptionalCallExpression":case"NewExpression":if(T.callee!==t)break;default:v=!0}let D;v&&(this.tokenChar(40),this._endsWithInnerRaw=!1,D=this.enterForStatementInit(!1)),this._lastCommentLine=0,this._printLeadingComments(t,T);let _=o==="Program"||o==="File"?null:t.loc;this.exactSource(_,c.bind(this,t,T)),v?(this._printTrailingComments(t,T),this.tokenChar(41),this._noLineTerminator=r,D()):r&&!this._noLineTerminator?(this._noLineTerminator=!0,this._printTrailingComments(t,T)):this._printTrailingComments(t,T,i),this._currentNode=T,l.concise=u,this._insideAux=P,this._endsWithInnerRaw=!1}_maybeAddAuxComment(t){t&&this._printAuxBeforeComment(),this._insideAux||this._printAuxAfterComment()}_printAuxBeforeComment(){if(this._printAuxAfterOnNextUserNode)return;this._printAuxAfterOnNextUserNode=!0;let t=this.format.auxiliaryCommentBefore;t&&this._printComment({type:"CommentBlock",value:t},0)}_printAuxAfterComment(){if(!this._printAuxAfterOnNextUserNode)return;this._printAuxAfterOnNextUserNode=!1;let t=this.format.auxiliaryCommentAfter;t&&this._printComment({type:"CommentBlock",value:t},0)}getPossibleRaw(t){let r=t.extra;if(r?.raw!=null&&r.rawValue!=null&&t.value===r.rawValue)return r.raw}printJoin(t,r={}){if(!(t!=null&&t.length))return;let{indent:i}=r;if(i==null&&this.format.retainLines){var s;let c=(s=t[0].loc)==null?void 0:s.start.line;c!=null&&c!==this._buf.getCurrentLine()&&(i=!0)}i&&this.indent();let n={addNewlines:r.addNewlines,nextNodeStartLine:0},a=r.separator?r.separator.bind(this):null,o=t.length;for(let c=0;c<o;c++){let T=t[c];if(T&&(r.statement&&this._printNewline(c===0,n),this.print(T,void 0,r.trailingCommentsLineOffset||0),r.iterator==null||r.iterator(T,c),c<o-1&&a?.(),r.statement)){var l;if((l=T.trailingComments)!=null&&l.length||(this._lastCommentLine=0),c+1===o)this.newline(1);else{var u;let P=t[c+1];n.nextNodeStartLine=((u=P.loc)==null?void 0:u.start.line)||0,this._printNewline(!0,n)}}}i&&this.dedent()}printAndIndentOnComments(t){let r=t.leadingComments&&t.leadingComments.length>0;r&&this.indent(),this.print(t),r&&this.dedent()}printBlock(t){let r=t.body;r.type!=="EmptyStatement"&&this.space(),this.print(r)}_printTrailingComments(t,r,i){let{innerComments:s,trailingComments:n}=t;s!=null&&s.length&&this._printComments(2,s,t,r,i),n!=null&&n.length&&this._printComments(2,n,t,r,i)}_printLeadingComments(t,r){let i=t.leadingComments;i!=null&&i.length&&this._printComments(0,i,t,r)}_maybePrintInnerComments(){this._endsWithInnerRaw&&this.printInnerComments(),this._endsWithInnerRaw=!0,this._indentInnerComments=!0}printInnerComments(){let t=this._currentNode,r=t.innerComments;if(!(r!=null&&r.length))return;let i=this.endsWith(32),s=this._indentInnerComments,n=this._printedComments.size;s&&this.indent(),this._printComments(1,r,t),i&&n!==this._printedComments.size&&this.space(),s&&this.dedent()}noIndentInnerCommentsHere(){this._indentInnerComments=!1}printSequence(t,r={}){var i;r.statement=!0,(i=r.indent)!=null||(r.indent=!1),this.printJoin(t,r)}printList(t,r={}){r.separator==null&&(r.separator=G9),this.printJoin(t,r)}_printNewline(t,r){let i=this.format;if(i.retainLines||i.compact)return;if(i.concise){this.space();return}if(!t)return;let s=r.nextNodeStartLine,n=this._lastCommentLine;if(s>0&&n>0){let a=s-n;if(a>=0){this.newline(a||1);return}}this._buf.hasContent()&&this.newline(1)}_shouldPrintComment(t){return t.ignore||this._printedComments.has(t)?0:this._noLineTerminator&&$9.test(t.value)?2:(this._printedComments.add(t),this.format.shouldPrintComment(t.value)?1:0)}_printComment(t,r){let i=this._noLineTerminator,s=t.type==="CommentBlock",n=s&&r!==1&&!this._noLineTerminator;n&&this._buf.hasContent()&&r!==2&&this.newline(1);let a=this.getLastChar();a!==91&&a!==123&&a!==40&&this.space();let o;if(s){let{_parenPushNewlineState:u}=this;if(u?.printed===!1&&Cm.test(t.value)&&(this.tokenChar(40),this.indent(),u.printed=!0),o=`/*${t.value}*/`,this.format.indent.adjustMultilineComment){var l;let c=(l=t.loc)==null?void 0:l.start.column;if(c){let T=new RegExp("\\n\\s{1,"+c+"}","g");o=o.replace(T,`
|
|
25
|
-
`)}if(this.format.concise)o=o.replace(/\n(?!$)/g,`
|
|
26
|
-
`);else{let T=this.format.retainLines?0:this._buf.getCurrentColumn();(this._shouldIndent(47)||this.format.retainLines)&&(T+=this._getIndent()),o=o.replace(/\n(?!$)/g,`
|
|
27
|
-
${" ".repeat(T)}`)}}}else i?o=`/*${t.value}*/`:o=`//${t.value}`;this._endsWithDiv&&this._space(),this.source("start",t.loc),this._append(o,s),!s&&!i&&this.newline(1,!0),n&&r!==3&&this.newline(1)}_printComments(t,r,i,s,n=0){let a=i.loc,o=r.length,l=!!a,u=l?a.start.line:0,c=l?a.end.line:0,T=0,P=0,E=this._noLineTerminator?function(){}:this.newline.bind(this);for(let v=0;v<o;v++){let D=r[v],_=this._shouldPrintComment(D);if(_===2){l=!1;break}if(l&&D.loc&&_===1){let N=D.loc.start.line,M=D.loc.end.line;if(t===0){let ne=0;v===0?this._buf.hasContent()&&(D.type==="CommentLine"||N!==M)&&(ne=P=1):ne=N-T,T=M,E(ne),this._printComment(D,1),v+1===o&&(E(Math.max(u-T,P)),T=u)}else if(t===1){let ne=N-(v===0?u:T);T=M,E(ne),this._printComment(D,1),v+1===o&&(E(Math.min(1,c-T)),T=c)}else{let ne=N-(v===0?c-n:T);T=M,E(ne),this._printComment(D,1)}}else{if(l=!1,_!==1)continue;if(o===1){let N=D.loc?D.loc.start.line===D.loc.end.line:!Cm.test(D.value),M=N&&!V9(i)&&!K9(s)&&!W9(s)&&!Y9(s);t===0?this._printComment(D,M&&i.type!=="ObjectExpression"||N&&U9(s,{body:i})?1:0):M&&t===2?this._printComment(D,1):this._printComment(D,0)}else t===1&&!(i.type==="ObjectExpression"&&i.properties.length>1)&&i.type!=="ClassBody"&&i.type!=="TSInterfaceBody"?this._printComment(D,v===0?2:v===o-1?3:0):this._printComment(D,0)}}t===2&&l&&T&&(this._lastCommentLine=T)}};Object.assign(hs.prototype,q9);hs.prototype.Noop=function(){};var SG=Bn.default=hs;function G9(){this.tokenChar(44),this.space()}});var _m=A(Fn=>{"use strict";Object.defineProperty(Fn,"__esModule",{value:!0});Fn.default=z9;var wm=Bd(),Om=Im();function Nm(e,t){let r={auxiliaryCommentBefore:t.auxiliaryCommentBefore,auxiliaryCommentAfter:t.auxiliaryCommentAfter,shouldPrintComment:t.shouldPrintComment,retainLines:t.retainLines,retainFunctionParens:t.retainFunctionParens,comments:t.comments==null||t.comments,compact:t.compact,minified:t.minified,concise:t.concise,indent:{adjustMultilineComment:!0,style:" "},jsescOption:Object.assign({quotes:"double",wrap:!0,minimal:!1},t.jsescOption),topicToken:t.topicToken,importAttributesKeyword:t.importAttributesKeyword};{var i;r.decoratorsBeforeExport=t.decoratorsBeforeExport,r.jsescOption.json=t.jsonCompatibleStrings,r.recordAndTupleSyntaxType=(i=t.recordAndTupleSyntaxType)!=null?i:"hash"}r.minified?(r.compact=!0,r.shouldPrintComment=r.shouldPrintComment||(()=>r.comments)):r.shouldPrintComment=r.shouldPrintComment||(o=>r.comments||o.includes("@license")||o.includes("@preserve")),r.compact==="auto"&&(r.compact=typeof e=="string"&&e.length>5e5,r.compact&&console.error(`[BABEL] Note: The code generator has deoptimised the styling of ${t.filename} as it exceeds the max of 500KB.`)),r.compact&&(r.indent.adjustMultilineComment=!1);let{auxiliaryCommentBefore:s,auxiliaryCommentAfter:n,shouldPrintComment:a}=r;return s&&!a(s)&&(r.auxiliaryCommentBefore=void 0),n&&!a(n)&&(r.auxiliaryCommentAfter=void 0),r}Fn.CodeGenerator=class{constructor(t,r={},i){this._ast=void 0,this._format=void 0,this._map=void 0,this._ast=t,this._format=Nm(i,r),this._map=r.sourceMaps?new wm.default(r,i):null}generate(){return new Om.default(this._format,this._map).generate(this._ast)}};function z9(e,t={},r){let i=Nm(r,t),s=t.sourceMaps?new wm.default(t,r):null;return new Om.default(i,s).generate(e)}});var Dm=A(Dt=>{"use strict";Object.defineProperty(Dt,"__esModule",{value:!0});Dt.find=t7;Dt.findParent=e7;Dt.getAncestry=a7;Dt.getDeepestCommonAncestorFrom=n7;Dt.getEarliestCommonAncestorFrom=s7;Dt.getFunctionParent=r7;Dt.getStatementParent=i7;Dt.inType=u7;Dt.isAncestor=o7;Dt.isDescendant=l7;var Q9=de(),{VISITOR_KEYS:Z9}=Q9;function e7(e){let t=this;for(;t=t.parentPath;)if(e(t))return t;return null}function t7(e){let t=this;do if(e(t))return t;while(t=t.parentPath);return null}function r7(){return this.findParent(e=>e.isFunction())}function i7(){let e=this;do{if(!e.parentPath||Array.isArray(e.container)&&e.isStatement())break;e=e.parentPath}while(e);if(e&&(e.isProgram()||e.isFile()))throw new Error("File/Program node, we can't possibly find a statement parent to this");return e}function s7(e){return this.getDeepestCommonAncestorFrom(e,function(t,r,i){let s,n=Z9[t.type];for(let a of i){let o=a[r+1];if(!s){s=o;continue}if(o.listKey&&s.listKey===o.listKey&&o.key<s.key){s=o;continue}let l=n.indexOf(s.parentKey),u=n.indexOf(o.parentKey);l>u&&(s=o)}return s})}function n7(e,t){if(!e.length)return this;if(e.length===1)return e[0];let r=1/0,i,s,n=e.map(o=>{let l=[];do l.unshift(o);while((o=o.parentPath)&&o!==this);return l.length<r&&(r=l.length),l}),a=n[0];e:for(let o=0;o<r;o++){let l=a[o];for(let u of n)if(u[o]!==l)break e;i=o,s=l}if(s)return t?t(s,i,n):s;throw new Error("Couldn't find intersection")}function a7(){let e=this,t=[];do t.push(e);while(e=e.parentPath);return t}function o7(e){return e.isDescendant(this)}function l7(e){return!!this.findParent(t=>t===e)}function u7(...e){let t=this;for(;t;){for(let r of e)if(t.node.type===r)return!0;t=t.parentPath}return!1}});var Ju=A(Xu=>{"use strict";Object.defineProperty(Xu,"__esModule",{value:!0});Xu.createUnionType=d7;var c7=de(),{createFlowUnionType:km,createTSUnionType:Lm,createUnionTypeAnnotation:p7,isFlowType:f7,isTSType:h7}=c7;function d7(e){{if(e.every(t=>f7(t)))return km?km(e):p7(e);if(e.every(t=>h7(t))&&Lm)return Lm(e)}}});var Rm=A($u=>{"use strict";Object.defineProperty($u,"__esModule",{value:!0});$u.default=b7;var m7=de(),Bm=Ju(),{BOOLEAN_NUMBER_BINARY_OPERATORS:y7,createTypeAnnotationBasedOnTypeof:T7,numberTypeAnnotation:Fm,voidTypeAnnotation:g7}=m7;function b7(e){if(!this.isReferenced())return;let t=this.scope.getBinding(e.name);if(t)return t.identifier.typeAnnotation?t.identifier.typeAnnotation:S7(t,this,e.name);if(e.name==="undefined")return g7();if(e.name==="NaN"||e.name==="Infinity")return Fm();e.name}function S7(e,t,r){let i=[],s=[],n=Mm(e,t,s),a=jm(e,t,r);if(a){let o=Mm(e,a.ifStatement);n=n.filter(l=>!o.includes(l)),i.push(a.typeAnnotation)}if(n.length){n.push(...s);for(let o of n)i.push(o.getTypeAnnotation())}if(i.length)return(0,Bm.createUnionType)(i)}function Mm(e,t,r){let i=e.constantViolations.slice();return i.unshift(e.path),i.filter(s=>{s=s.resolve();let n=s._guessExecutionStatusRelativeTo(t);return r&&n==="unknown"&&r.push(s),n==="before"})}function x7(e,t){let r=t.node.operator,i=t.get("right").resolve(),s=t.get("left").resolve(),n;if(s.isIdentifier({name:e})?n=i:i.isIdentifier({name:e})&&(n=s),n)return r==="==="?n.getTypeAnnotation():y7.includes(r)?Fm():void 0;if(r!=="==="&&r!=="==")return;let a,o;if(s.isUnaryExpression({operator:"typeof"})?(a=s,o=i):i.isUnaryExpression({operator:"typeof"})&&(a=i,o=s),!a||!a.get("argument").isIdentifier({name:e})||(o=o.resolve(),!o.isLiteral()))return;let l=o.node.value;if(typeof l=="string")return T7(l)}function E7(e,t,r){let i;for(;i=t.parentPath;){if(i.isIfStatement()||i.isConditionalExpression())return t.key==="test"?void 0:i;if(i.isFunction()&&i.parentPath.scope.getBinding(r)!==e)return;t=i}}function jm(e,t,r){let i=E7(e,t,r);if(!i)return;let n=[i.get("test")],a=[];for(let o=0;o<n.length;o++){let l=n[o];if(l.isLogicalExpression())l.node.operator==="&&"&&(n.push(l.get("left")),n.push(l.get("right")));else if(l.isBinaryExpression()){let u=x7(r,l);u&&a.push(u)}}return a.length?{typeAnnotation:(0,Bm.createUnionType)(a),ifStatement:i}:jm(e,i,r)}});var Jm=A(Ne=>{"use strict";Object.defineProperty(Ne,"__esModule",{value:!0});Ne.ArrayExpression=Wm;Ne.AssignmentExpression=Y7;Ne.BinaryExpression=q7;Ne.BooleanLiteral=H7;Ne.CallExpression=sq;Ne.ConditionalExpression=V7;Ne.ClassDeclaration=Ne.ClassExpression=Ne.FunctionDeclaration=Ne.ArrowFunctionExpression=Ne.FunctionExpression=Z7;Object.defineProperty(Ne,"Identifier",{enumerable:!0,get:function(){return A7.default}});Ne.LogicalExpression=U7;Ne.NewExpression=F7;Ne.NullLiteral=G7;Ne.NumericLiteral=$7;Ne.ObjectExpression=Q7;Ne.ParenthesizedExpression=W7;Ne.RegExpLiteral=z7;Ne.RestElement=Ym;Ne.SequenceExpression=K7;Ne.StringLiteral=J7;Ne.TSAsExpression=Km;Ne.TSNonNullExpression=B7;Ne.TaggedTemplateExpression=nq;Ne.TemplateLiteral=j7;Ne.TypeCastExpression=Vm;Ne.UnaryExpression=R7;Ne.UpdateExpression=X7;Ne.VariableDeclarator=M7;var P7=de(),A7=Rm(),Um=Ju(),{BOOLEAN_BINARY_OPERATORS:v7,BOOLEAN_UNARY_OPERATORS:C7,NUMBER_BINARY_OPERATORS:I7,NUMBER_UNARY_OPERATORS:w7,STRING_UNARY_OPERATORS:O7,anyTypeAnnotation:qm,arrayTypeAnnotation:Hu,booleanTypeAnnotation:Gu,buildMatchMemberExpression:jn,genericTypeAnnotation:Ir,identifier:Hr,nullLiteralTypeAnnotation:N7,numberTypeAnnotation:gi,stringTypeAnnotation:Gr,tupleTypeAnnotation:_7,unionTypeAnnotation:D7,voidTypeAnnotation:k7,isIdentifier:L7}=P7;function M7(){if(this.get("id").isIdentifier())return this.get("init").getTypeAnnotation()}function Vm(e){return e.typeAnnotation}Vm.validParent=!0;function Km(e){return e.typeAnnotation}Km.validParent=!0;function B7(){return this.get("expression").getTypeAnnotation()}function F7(e){if(e.callee.type==="Identifier")return Ir(e.callee)}function j7(){return Gr()}function R7(e){let t=e.operator;if(t==="void")return k7();if(w7.includes(t))return gi();if(O7.includes(t))return Gr();if(C7.includes(t))return Gu()}function q7(e){let t=e.operator;if(I7.includes(t))return gi();if(v7.includes(t))return Gu();if(t==="+"){let r=this.get("right"),i=this.get("left");return i.isBaseType("number")&&r.isBaseType("number")?gi():i.isBaseType("string")||r.isBaseType("string")?Gr():D7([Gr(),gi()])}}function U7(){let e=[this.get("left").getTypeAnnotation(),this.get("right").getTypeAnnotation()];return(0,Um.createUnionType)(e)}function V7(){let e=[this.get("consequent").getTypeAnnotation(),this.get("alternate").getTypeAnnotation()];return(0,Um.createUnionType)(e)}function K7(){return this.get("expressions").pop().getTypeAnnotation()}function W7(){return this.get("expression").getTypeAnnotation()}function Y7(){return this.get("right").getTypeAnnotation()}function X7(e){let t=e.operator;if(t==="++"||t==="--")return gi()}function J7(){return Gr()}function $7(){return gi()}function H7(){return Gu()}function G7(){return N7()}function z7(){return Ir(Hr("RegExp"))}function Q7(){return Ir(Hr("Object"))}function Wm(){return Ir(Hr("Array"))}function Ym(){return Wm()}Ym.validParent=!0;function Z7(){return Ir(Hr("Function"))}var eq=jn("Array.from"),tq=jn("Object.keys"),rq=jn("Object.values"),iq=jn("Object.entries");function sq(){let{callee:e}=this.node;return tq(e)?Hu(Gr()):eq(e)||rq(e)||L7(e,{name:"Array"})?Hu(qm()):iq(e)?Hu(_7([Gr(),qm()])):Xm(this.get("callee"))}function nq(){return Xm(this.get("tag"))}function Xm(e){if(e=e.resolve(),e.isFunction()){let{node:t}=e;if(t.async)return t.generator?Ir(Hr("AsyncIterator")):Ir(Hr("Promise"));if(t.generator)return Ir(Hr("Iterator"));if(e.node.returnType)return e.node.returnType}}});var Qm=A(wr=>{"use strict";Object.defineProperty(wr,"__esModule",{value:!0});wr._getTypeAnnotation=zm;wr.baseTypeStrictlyMatches=Iq;wr.couldBeBaseType=Cq;wr.getTypeAnnotation=Aq;wr.isBaseType=vq;wr.isGenericType=wq;var $m=Jm(),aq=de(),{anyTypeAnnotation:Gm,isAnyTypeAnnotation:Rn,isArrayTypeAnnotation:oq,isBooleanTypeAnnotation:lq,isEmptyTypeAnnotation:uq,isFlowBaseAnnotation:cq,isGenericTypeAnnotation:pq,isIdentifier:Hm,isMixedTypeAnnotation:fq,isNumberTypeAnnotation:hq,isStringTypeAnnotation:dq,isTSArrayType:mq,isTSTypeAnnotation:yq,isTSTypeReference:Tq,isTupleTypeAnnotation:gq,isTypeAnnotation:bq,isUnionTypeAnnotation:Sq,isVoidTypeAnnotation:xq,stringTypeAnnotation:Eq,voidTypeAnnotation:Pq}=aq;function Aq(){let e=this.getData("typeAnnotation");return e!=null||(e=zm.call(this)||Gm(),(bq(e)||yq(e))&&(e=e.typeAnnotation),this.setData("typeAnnotation",e)),e}var zu=new WeakSet;function zm(){let e=this.node;if(!e)if(this.key==="init"&&this.parentPath.isVariableDeclarator()){let r=this.parentPath.parentPath,i=r.parentPath;return r.key==="left"&&i.isForInStatement()?Eq():r.key==="left"&&i.isForOfStatement()?Gm():Pq()}else return;if(e.typeAnnotation)return e.typeAnnotation;if(!zu.has(e)){zu.add(e);try{var t;let r=$m[e.type];if(r)return r.call(this,e);if(r=$m[this.parentPath.type],(t=r)!=null&&t.validParent)return this.parentPath.getTypeAnnotation()}finally{zu.delete(e)}}}function vq(e,t){return Qu(e,this.getTypeAnnotation(),t)}function Qu(e,t,r){if(e==="string")return dq(t);if(e==="number")return hq(t);if(e==="boolean")return lq(t);if(e==="any")return Rn(t);if(e==="mixed")return fq(t);if(e==="empty")return uq(t);if(e==="void")return xq(t);if(r)return!1;throw new Error(`Unknown base type ${e}`)}function Cq(e){let t=this.getTypeAnnotation();if(Rn(t))return!0;if(Sq(t)){for(let r of t.types)if(Rn(r)||Qu(e,r,!0))return!0;return!1}else return Qu(e,t,!0)}function Iq(e){let t=this.getTypeAnnotation(),r=e.getTypeAnnotation();return!Rn(t)&&cq(t)?r.type===t.type:!1}function wq(e){let t=this.getTypeAnnotation();return e==="Array"&&(mq(t)||oq(t)||gq(t))?!0:pq(t)&&Hm(t.id,{name:e})||Tq(t)&&Hm(t.typeName,{name:e})}});var Zm=A(qn=>{Object.defineProperty(qn,"__esModule",{value:!0});qn.default=/((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g;qn.matchToToken=function(e){var t={type:"invalid",value:e[0],closed:void 0};return e[1]?(t.type="string",t.closed=!!(e[3]||e[4])):e[5]?t.type="comment":e[6]?(t.type="comment",t.closed=!!e[7]):e[8]?t.type="regex":e[9]?t.type="number":e[10]?t.type="name":e[11]?t.type="punctuator":e[12]&&(t.type="whitespace"),t}});var ec=A((NG,Zu)=>{var Vn=process||{},ey=Vn.argv||[],Un=Vn.env||{},Oq=!(Un.NO_COLOR||ey.includes("--no-color"))&&(!!Un.FORCE_COLOR||ey.includes("--color")||Vn.platform==="win32"||(Vn.stdout||{}).isTTY&&Un.TERM!=="dumb"||!!Un.CI),Nq=(e,t,r=e)=>i=>{let s=""+i,n=s.indexOf(t,e.length);return~n?e+_q(s,t,r,n)+t:e+s+t},_q=(e,t,r,i)=>{let s="",n=0;do s+=e.substring(n,i)+r,n=i+t.length,i=e.indexOf(t,n);while(~i);return s+e.substring(n)},ty=(e=Oq)=>{let t=e?Nq:()=>String;return{isColorSupported:e,reset:t("\x1B[0m","\x1B[0m"),bold:t("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),dim:t("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),italic:t("\x1B[3m","\x1B[23m"),underline:t("\x1B[4m","\x1B[24m"),inverse:t("\x1B[7m","\x1B[27m"),hidden:t("\x1B[8m","\x1B[28m"),strikethrough:t("\x1B[9m","\x1B[29m"),black:t("\x1B[30m","\x1B[39m"),red:t("\x1B[31m","\x1B[39m"),green:t("\x1B[32m","\x1B[39m"),yellow:t("\x1B[33m","\x1B[39m"),blue:t("\x1B[34m","\x1B[39m"),magenta:t("\x1B[35m","\x1B[39m"),cyan:t("\x1B[36m","\x1B[39m"),white:t("\x1B[37m","\x1B[39m"),gray:t("\x1B[90m","\x1B[39m"),bgBlack:t("\x1B[40m","\x1B[49m"),bgRed:t("\x1B[41m","\x1B[49m"),bgGreen:t("\x1B[42m","\x1B[49m"),bgYellow:t("\x1B[43m","\x1B[49m"),bgBlue:t("\x1B[44m","\x1B[49m"),bgMagenta:t("\x1B[45m","\x1B[49m"),bgCyan:t("\x1B[46m","\x1B[49m"),bgWhite:t("\x1B[47m","\x1B[49m"),blackBright:t("\x1B[90m","\x1B[39m"),redBright:t("\x1B[91m","\x1B[39m"),greenBright:t("\x1B[92m","\x1B[39m"),yellowBright:t("\x1B[93m","\x1B[39m"),blueBright:t("\x1B[94m","\x1B[39m"),magentaBright:t("\x1B[95m","\x1B[39m"),cyanBright:t("\x1B[96m","\x1B[39m"),whiteBright:t("\x1B[97m","\x1B[39m"),bgBlackBright:t("\x1B[100m","\x1B[49m"),bgRedBright:t("\x1B[101m","\x1B[49m"),bgGreenBright:t("\x1B[102m","\x1B[49m"),bgYellowBright:t("\x1B[103m","\x1B[49m"),bgBlueBright:t("\x1B[104m","\x1B[49m"),bgMagentaBright:t("\x1B[105m","\x1B[49m"),bgCyanBright:t("\x1B[106m","\x1B[49m"),bgWhiteBright:t("\x1B[107m","\x1B[49m")}};Zu.exports=ty();Zu.exports.createColors=ty});var iy=A((_G,ry)=>{"use strict";var Dq=/[|\\{}()[\]^$+*?.]/g;ry.exports=function(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(Dq,"\\$&")}});var ny=A((DG,sy)=>{"use strict";sy.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}});var tc=A((kG,uy)=>{var zr=ny(),ly={};for(Kn in zr)zr.hasOwnProperty(Kn)&&(ly[zr[Kn]]=Kn);var Kn,Q=uy.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(mt in Q)if(Q.hasOwnProperty(mt)){if(!("channels"in Q[mt]))throw new Error("missing channels property: "+mt);if(!("labels"in Q[mt]))throw new Error("missing channel labels property: "+mt);if(Q[mt].labels.length!==Q[mt].channels)throw new Error("channel and label counts mismatch: "+mt);ay=Q[mt].channels,oy=Q[mt].labels,delete Q[mt].channels,delete Q[mt].labels,Object.defineProperty(Q[mt],"channels",{value:ay}),Object.defineProperty(Q[mt],"labels",{value:oy})}var ay,oy,mt;Q.rgb.hsl=function(e){var t=e[0]/255,r=e[1]/255,i=e[2]/255,s=Math.min(t,r,i),n=Math.max(t,r,i),a=n-s,o,l,u;return n===s?o=0:t===n?o=(r-i)/a:r===n?o=2+(i-t)/a:i===n&&(o=4+(t-r)/a),o=Math.min(o*60,360),o<0&&(o+=360),u=(s+n)/2,n===s?l=0:u<=.5?l=a/(n+s):l=a/(2-n-s),[o,l*100,u*100]};Q.rgb.hsv=function(e){var t,r,i,s,n,a=e[0]/255,o=e[1]/255,l=e[2]/255,u=Math.max(a,o,l),c=u-Math.min(a,o,l),T=function(P){return(u-P)/6/c+1/2};return c===0?s=n=0:(n=c/u,t=T(a),r=T(o),i=T(l),a===u?s=i-r:o===u?s=1/3+t-i:l===u&&(s=2/3+r-t),s<0?s+=1:s>1&&(s-=1)),[s*360,n*100,u*100]};Q.rgb.hwb=function(e){var t=e[0],r=e[1],i=e[2],s=Q.rgb.hsl(e)[0],n=1/255*Math.min(t,Math.min(r,i));return i=1-1/255*Math.max(t,Math.max(r,i)),[s,n*100,i*100]};Q.rgb.cmyk=function(e){var t=e[0]/255,r=e[1]/255,i=e[2]/255,s,n,a,o;return o=Math.min(1-t,1-r,1-i),s=(1-t-o)/(1-o)||0,n=(1-r-o)/(1-o)||0,a=(1-i-o)/(1-o)||0,[s*100,n*100,a*100,o*100]};function kq(e,t){return Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2)+Math.pow(e[2]-t[2],2)}Q.rgb.keyword=function(e){var t=ly[e];if(t)return t;var r=1/0,i;for(var s in zr)if(zr.hasOwnProperty(s)){var n=zr[s],a=kq(e,n);a<r&&(r=a,i=s)}return i};Q.keyword.rgb=function(e){return zr[e]};Q.rgb.xyz=function(e){var t=e[0]/255,r=e[1]/255,i=e[2]/255;t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92,r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92,i=i>.04045?Math.pow((i+.055)/1.055,2.4):i/12.92;var s=t*.4124+r*.3576+i*.1805,n=t*.2126+r*.7152+i*.0722,a=t*.0193+r*.1192+i*.9505;return[s*100,n*100,a*100]};Q.rgb.lab=function(e){var t=Q.rgb.xyz(e),r=t[0],i=t[1],s=t[2],n,a,o;return r/=95.047,i/=100,s/=108.883,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,s=s>.008856?Math.pow(s,1/3):7.787*s+16/116,n=116*i-16,a=500*(r-i),o=200*(i-s),[n,a,o]};Q.hsl.rgb=function(e){var t=e[0]/360,r=e[1]/100,i=e[2]/100,s,n,a,o,l;if(r===0)return l=i*255,[l,l,l];i<.5?n=i*(1+r):n=i+r-i*r,s=2*i-n,o=[0,0,0];for(var u=0;u<3;u++)a=t+1/3*-(u-1),a<0&&a++,a>1&&a--,6*a<1?l=s+(n-s)*6*a:2*a<1?l=n:3*a<2?l=s+(n-s)*(2/3-a)*6:l=s,o[u]=l*255;return o};Q.hsl.hsv=function(e){var t=e[0],r=e[1]/100,i=e[2]/100,s=r,n=Math.max(i,.01),a,o;return i*=2,r*=i<=1?i:2-i,s*=n<=1?n:2-n,o=(i+r)/2,a=i===0?2*s/(n+s):2*r/(i+r),[t,a*100,o*100]};Q.hsv.rgb=function(e){var t=e[0]/60,r=e[1]/100,i=e[2]/100,s=Math.floor(t)%6,n=t-Math.floor(t),a=255*i*(1-r),o=255*i*(1-r*n),l=255*i*(1-r*(1-n));switch(i*=255,s){case 0:return[i,l,a];case 1:return[o,i,a];case 2:return[a,i,l];case 3:return[a,o,i];case 4:return[l,a,i];case 5:return[i,a,o]}};Q.hsv.hsl=function(e){var t=e[0],r=e[1]/100,i=e[2]/100,s=Math.max(i,.01),n,a,o;return o=(2-r)*i,n=(2-r)*s,a=r*s,a/=n<=1?n:2-n,a=a||0,o/=2,[t,a*100,o*100]};Q.hwb.rgb=function(e){var t=e[0]/360,r=e[1]/100,i=e[2]/100,s=r+i,n,a,o,l;s>1&&(r/=s,i/=s),n=Math.floor(6*t),a=1-i,o=6*t-n,(n&1)!==0&&(o=1-o),l=r+o*(a-r);var u,c,T;switch(n){default:case 6:case 0:u=a,c=l,T=r;break;case 1:u=l,c=a,T=r;break;case 2:u=r,c=a,T=l;break;case 3:u=r,c=l,T=a;break;case 4:u=l,c=r,T=a;break;case 5:u=a,c=r,T=l;break}return[u*255,c*255,T*255]};Q.cmyk.rgb=function(e){var t=e[0]/100,r=e[1]/100,i=e[2]/100,s=e[3]/100,n,a,o;return n=1-Math.min(1,t*(1-s)+s),a=1-Math.min(1,r*(1-s)+s),o=1-Math.min(1,i*(1-s)+s),[n*255,a*255,o*255]};Q.xyz.rgb=function(e){var t=e[0]/100,r=e[1]/100,i=e[2]/100,s,n,a;return s=t*3.2406+r*-1.5372+i*-.4986,n=t*-.9689+r*1.8758+i*.0415,a=t*.0557+r*-.204+i*1.057,s=s>.0031308?1.055*Math.pow(s,1/2.4)-.055:s*12.92,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:n*12.92,a=a>.0031308?1.055*Math.pow(a,1/2.4)-.055:a*12.92,s=Math.min(Math.max(0,s),1),n=Math.min(Math.max(0,n),1),a=Math.min(Math.max(0,a),1),[s*255,n*255,a*255]};Q.xyz.lab=function(e){var t=e[0],r=e[1],i=e[2],s,n,a;return t/=95.047,r/=100,i/=108.883,t=t>.008856?Math.pow(t,1/3):7.787*t+16/116,r=r>.008856?Math.pow(r,1/3):7.787*r+16/116,i=i>.008856?Math.pow(i,1/3):7.787*i+16/116,s=116*r-16,n=500*(t-r),a=200*(r-i),[s,n,a]};Q.lab.xyz=function(e){var t=e[0],r=e[1],i=e[2],s,n,a;n=(t+16)/116,s=r/500+n,a=n-i/200;var o=Math.pow(n,3),l=Math.pow(s,3),u=Math.pow(a,3);return n=o>.008856?o:(n-16/116)/7.787,s=l>.008856?l:(s-16/116)/7.787,a=u>.008856?u:(a-16/116)/7.787,s*=95.047,n*=100,a*=108.883,[s,n,a]};Q.lab.lch=function(e){var t=e[0],r=e[1],i=e[2],s,n,a;return s=Math.atan2(i,r),n=s*360/2/Math.PI,n<0&&(n+=360),a=Math.sqrt(r*r+i*i),[t,a,n]};Q.lch.lab=function(e){var t=e[0],r=e[1],i=e[2],s,n,a;return a=i/360*2*Math.PI,s=r*Math.cos(a),n=r*Math.sin(a),[t,s,n]};Q.rgb.ansi16=function(e){var t=e[0],r=e[1],i=e[2],s=1 in arguments?arguments[1]:Q.rgb.hsv(e)[2];if(s=Math.round(s/50),s===0)return 30;var n=30+(Math.round(i/255)<<2|Math.round(r/255)<<1|Math.round(t/255));return s===2&&(n+=60),n};Q.hsv.ansi16=function(e){return Q.rgb.ansi16(Q.hsv.rgb(e),e[2])};Q.rgb.ansi256=function(e){var t=e[0],r=e[1],i=e[2];if(t===r&&r===i)return t<8?16:t>248?231:Math.round((t-8)/247*24)+232;var s=16+36*Math.round(t/255*5)+6*Math.round(r/255*5)+Math.round(i/255*5);return s};Q.ansi16.rgb=function(e){var t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];var r=(~~(e>50)+1)*.5,i=(t&1)*r*255,s=(t>>1&1)*r*255,n=(t>>2&1)*r*255;return[i,s,n]};Q.ansi256.rgb=function(e){if(e>=232){var t=(e-232)*10+8;return[t,t,t]}e-=16;var r,i=Math.floor(e/36)/5*255,s=Math.floor((r=e%36)/6)/5*255,n=r%6/5*255;return[i,s,n]};Q.rgb.hex=function(e){var t=((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255),r=t.toString(16).toUpperCase();return"000000".substring(r.length)+r};Q.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var r=t[0];t[0].length===3&&(r=r.split("").map(function(o){return o+o}).join(""));var i=parseInt(r,16),s=i>>16&255,n=i>>8&255,a=i&255;return[s,n,a]};Q.rgb.hcg=function(e){var t=e[0]/255,r=e[1]/255,i=e[2]/255,s=Math.max(Math.max(t,r),i),n=Math.min(Math.min(t,r),i),a=s-n,o,l;return a<1?o=n/(1-a):o=0,a<=0?l=0:s===t?l=(r-i)/a%6:s===r?l=2+(i-t)/a:l=4+(t-r)/a+4,l/=6,l%=1,[l*360,a*100,o*100]};Q.hsl.hcg=function(e){var t=e[1]/100,r=e[2]/100,i=1,s=0;return r<.5?i=2*t*r:i=2*t*(1-r),i<1&&(s=(r-.5*i)/(1-i)),[e[0],i*100,s*100]};Q.hsv.hcg=function(e){var t=e[1]/100,r=e[2]/100,i=t*r,s=0;return i<1&&(s=(r-i)/(1-i)),[e[0],i*100,s*100]};Q.hcg.rgb=function(e){var t=e[0]/360,r=e[1]/100,i=e[2]/100;if(r===0)return[i*255,i*255,i*255];var s=[0,0,0],n=t%1*6,a=n%1,o=1-a,l=0;switch(Math.floor(n)){case 0:s[0]=1,s[1]=a,s[2]=0;break;case 1:s[0]=o,s[1]=1,s[2]=0;break;case 2:s[0]=0,s[1]=1,s[2]=a;break;case 3:s[0]=0,s[1]=o,s[2]=1;break;case 4:s[0]=a,s[1]=0,s[2]=1;break;default:s[0]=1,s[1]=0,s[2]=o}return l=(1-r)*i,[(r*s[0]+l)*255,(r*s[1]+l)*255,(r*s[2]+l)*255]};Q.hcg.hsv=function(e){var t=e[1]/100,r=e[2]/100,i=t+r*(1-t),s=0;return i>0&&(s=t/i),[e[0],s*100,i*100]};Q.hcg.hsl=function(e){var t=e[1]/100,r=e[2]/100,i=r*(1-t)+.5*t,s=0;return i>0&&i<.5?s=t/(2*i):i>=.5&&i<1&&(s=t/(2*(1-i))),[e[0],s*100,i*100]};Q.hcg.hwb=function(e){var t=e[1]/100,r=e[2]/100,i=t+r*(1-t);return[e[0],(i-t)*100,(1-i)*100]};Q.hwb.hcg=function(e){var t=e[1]/100,r=e[2]/100,i=1-r,s=i-t,n=0;return s<1&&(n=(i-s)/(1-s)),[e[0],s*100,n*100]};Q.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};Q.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};Q.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};Q.gray.hsl=Q.gray.hsv=function(e){return[0,0,e[0]]};Q.gray.hwb=function(e){return[0,100,e[0]]};Q.gray.cmyk=function(e){return[0,0,0,e[0]]};Q.gray.lab=function(e){return[e[0],0,0]};Q.gray.hex=function(e){var t=Math.round(e[0]/100*255)&255,r=(t<<16)+(t<<8)+t,i=r.toString(16).toUpperCase();return"000000".substring(i.length)+i};Q.rgb.gray=function(e){var t=(e[0]+e[1]+e[2])/3;return[t/255*100]}});var py=A((LG,cy)=>{var Wn=tc();function Lq(){for(var e={},t=Object.keys(Wn),r=t.length,i=0;i<r;i++)e[t[i]]={distance:-1,parent:null};return e}function Mq(e){var t=Lq(),r=[e];for(t[e].distance=0;r.length;)for(var i=r.pop(),s=Object.keys(Wn[i]),n=s.length,a=0;a<n;a++){var o=s[a],l=t[o];l.distance===-1&&(l.distance=t[i].distance+1,l.parent=i,r.unshift(o))}return t}function Bq(e,t){return function(r){return t(e(r))}}function Fq(e,t){for(var r=[t[e].parent,e],i=Wn[t[e].parent][e],s=t[e].parent;t[s].parent;)r.unshift(t[s].parent),i=Bq(Wn[t[s].parent][s],i),s=t[s].parent;return i.conversion=r,i}cy.exports=function(e){for(var t=Mq(e),r={},i=Object.keys(t),s=i.length,n=0;n<s;n++){var a=i[n],o=t[a];o.parent!==null&&(r[a]=Fq(a,t))}return r}});var hy=A((MG,fy)=>{var rc=tc(),jq=py(),bi={},Rq=Object.keys(rc);function qq(e){var t=function(r){return r==null?r:(arguments.length>1&&(r=Array.prototype.slice.call(arguments)),e(r))};return"conversion"in e&&(t.conversion=e.conversion),t}function Uq(e){var t=function(r){if(r==null)return r;arguments.length>1&&(r=Array.prototype.slice.call(arguments));var i=e(r);if(typeof i=="object")for(var s=i.length,n=0;n<s;n++)i[n]=Math.round(i[n]);return i};return"conversion"in e&&(t.conversion=e.conversion),t}Rq.forEach(function(e){bi[e]={},Object.defineProperty(bi[e],"channels",{value:rc[e].channels}),Object.defineProperty(bi[e],"labels",{value:rc[e].labels});var t=jq(e),r=Object.keys(t);r.forEach(function(i){var s=t[i];bi[e][i]=Uq(s),bi[e][i].raw=qq(s)})});fy.exports=bi});var my=A((BG,dy)=>{"use strict";var Si=hy(),Yn=(e,t)=>function(){return`\x1B[${e.apply(Si,arguments)+t}m`},Xn=(e,t)=>function(){let r=e.apply(Si,arguments);return`\x1B[${38+t};5;${r}m`},Jn=(e,t)=>function(){let r=e.apply(Si,arguments);return`\x1B[${38+t};2;${r[0]};${r[1]};${r[2]}m`};function Vq(){let e=new Map,t={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};t.color.grey=t.color.gray;for(let s of Object.keys(t)){let n=t[s];for(let a of Object.keys(n)){let o=n[a];t[a]={open:`\x1B[${o[0]}m`,close:`\x1B[${o[1]}m`},n[a]=t[a],e.set(o[0],o[1])}Object.defineProperty(t,s,{value:n,enumerable:!1}),Object.defineProperty(t,"codes",{value:e,enumerable:!1})}let r=s=>s,i=(s,n,a)=>[s,n,a];t.color.close="\x1B[39m",t.bgColor.close="\x1B[49m",t.color.ansi={ansi:Yn(r,0)},t.color.ansi256={ansi256:Xn(r,0)},t.color.ansi16m={rgb:Jn(i,0)},t.bgColor.ansi={ansi:Yn(r,10)},t.bgColor.ansi256={ansi256:Xn(r,10)},t.bgColor.ansi16m={rgb:Jn(i,10)};for(let s of Object.keys(Si)){if(typeof Si[s]!="object")continue;let n=Si[s];s==="ansi16"&&(s="ansi"),"ansi16"in n&&(t.color.ansi[s]=Yn(n.ansi16,0),t.bgColor.ansi[s]=Yn(n.ansi16,10)),"ansi256"in n&&(t.color.ansi256[s]=Xn(n.ansi256,0),t.bgColor.ansi256[s]=Xn(n.ansi256,10)),"rgb"in n&&(t.color.ansi16m[s]=Jn(n.rgb,0),t.bgColor.ansi16m[s]=Jn(n.rgb,10))}return t}Object.defineProperty(dy,"exports",{enumerable:!0,get:Vq})});var Ty=A((FG,yy)=>{"use strict";yy.exports=(e,t)=>{t=t||process.argv;let r=e.startsWith("-")?"":e.length===1?"-":"--",i=t.indexOf(r+e),s=t.indexOf("--");return i!==-1&&(s===-1?!0:i<s)}});var by=A((jG,gy)=>{"use strict";var Kq=Di("os"),Ut=Ty(),nt=process.env,xi;Ut("no-color")||Ut("no-colors")||Ut("color=false")?xi=!1:(Ut("color")||Ut("colors")||Ut("color=true")||Ut("color=always"))&&(xi=!0);"FORCE_COLOR"in nt&&(xi=nt.FORCE_COLOR.length===0||parseInt(nt.FORCE_COLOR,10)!==0);function Wq(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function Yq(e){if(xi===!1)return 0;if(Ut("color=16m")||Ut("color=full")||Ut("color=truecolor"))return 3;if(Ut("color=256"))return 2;if(e&&!e.isTTY&&xi!==!0)return 0;let t=xi?1:0;if(process.platform==="win32"){let r=Kq.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(r[0])>=10&&Number(r[2])>=10586?Number(r[2])>=14931?3:2:1}if("CI"in nt)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(r=>r in nt)||nt.CI_NAME==="codeship"?1:t;if("TEAMCITY_VERSION"in nt)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(nt.TEAMCITY_VERSION)?1:0;if(nt.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in nt){let r=parseInt((nt.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(nt.TERM_PROGRAM){case"iTerm.app":return r>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(nt.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(nt.TERM)||"COLORTERM"in nt?1:(nt.TERM==="dumb",t)}function ic(e){let t=Yq(e);return Wq(t)}gy.exports={supportsColor:ic,stdout:ic(process.stdout),stderr:ic(process.stderr)}});var Ay=A((RG,Py)=>{"use strict";var Xq=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,Sy=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,Jq=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,$q=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,Hq=new Map([["n",`
|
|
28
|
-
`],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function Ey(e){return e[0]==="u"&&e.length===5||e[0]==="x"&&e.length===3?String.fromCharCode(parseInt(e.slice(1),16)):Hq.get(e)||e}function Gq(e,t){let r=[],i=t.trim().split(/\s*,\s*/g),s;for(let n of i)if(!isNaN(n))r.push(Number(n));else if(s=n.match(Jq))r.push(s[2].replace($q,(a,o,l)=>o?Ey(o):l));else throw new Error(`Invalid Chalk template style argument: ${n} (in style '${e}')`);return r}function zq(e){Sy.lastIndex=0;let t=[],r;for(;(r=Sy.exec(e))!==null;){let i=r[1];if(r[2]){let s=Gq(i,r[2]);t.push([i].concat(s))}else t.push([i])}return t}function xy(e,t){let r={};for(let s of t)for(let n of s.styles)r[n[0]]=s.inverse?null:n.slice(1);let i=e;for(let s of Object.keys(r))if(Array.isArray(r[s])){if(!(s in i))throw new Error(`Unknown Chalk style: ${s}`);r[s].length>0?i=i[s].apply(i,r[s]):i=i[s]}return i}Py.exports=(e,t)=>{let r=[],i=[],s=[];if(t.replace(Xq,(n,a,o,l,u,c)=>{if(a)s.push(Ey(a));else if(l){let T=s.join("");s=[],i.push(r.length===0?T:xy(e,r)(T)),r.push({inverse:o,styles:zq(l)})}else if(u){if(r.length===0)throw new Error("Found extraneous } in Chalk template literal");i.push(xy(e,r)(s.join(""))),s=[],r.pop()}else s.push(c)}),i.push(s.join("")),r.length>0){let n=`Chalk template literal is missing ${r.length} closing bracket${r.length===1?"":"s"} (\`}\`)`;throw new Error(n)}return i.join("")}});var Oy=A((qG,ms)=>{"use strict";var nc=iy(),Ge=my(),sc=by().stdout,Qq=Ay(),Cy=process.platform==="win32"&&!(process.env.TERM||"").toLowerCase().startsWith("xterm"),Iy=["ansi","ansi","ansi256","ansi16m"],wy=new Set(["gray"]),Ei=Object.create(null);function vy(e,t){t=t||{};let r=sc?sc.level:0;e.level=t.level===void 0?r:t.level,e.enabled="enabled"in t?t.enabled:e.level>0}function ds(e){if(!this||!(this instanceof ds)||this.template){let t={};return vy(t,e),t.template=function(){let r=[].slice.call(arguments);return tU.apply(null,[t.template].concat(r))},Object.setPrototypeOf(t,ds.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=ds,t.template}vy(this,e)}Cy&&(Ge.blue.open="\x1B[94m");for(let e of Object.keys(Ge))Ge[e].closeRe=new RegExp(nc(Ge[e].close),"g"),Ei[e]={get(){let t=Ge[e];return $n.call(this,this._styles?this._styles.concat(t):[t],this._empty,e)}};Ei.visible={get(){return $n.call(this,this._styles||[],!0,"visible")}};Ge.color.closeRe=new RegExp(nc(Ge.color.close),"g");for(let e of Object.keys(Ge.color.ansi))wy.has(e)||(Ei[e]={get(){let t=this.level;return function(){let i={open:Ge.color[Iy[t]][e].apply(null,arguments),close:Ge.color.close,closeRe:Ge.color.closeRe};return $n.call(this,this._styles?this._styles.concat(i):[i],this._empty,e)}}});Ge.bgColor.closeRe=new RegExp(nc(Ge.bgColor.close),"g");for(let e of Object.keys(Ge.bgColor.ansi)){if(wy.has(e))continue;let t="bg"+e[0].toUpperCase()+e.slice(1);Ei[t]={get(){let r=this.level;return function(){let s={open:Ge.bgColor[Iy[r]][e].apply(null,arguments),close:Ge.bgColor.close,closeRe:Ge.bgColor.closeRe};return $n.call(this,this._styles?this._styles.concat(s):[s],this._empty,e)}}}}var Zq=Object.defineProperties(()=>{},Ei);function $n(e,t,r){let i=function(){return eU.apply(i,arguments)};i._styles=e,i._empty=t;let s=this;return Object.defineProperty(i,"level",{enumerable:!0,get(){return s.level},set(n){s.level=n}}),Object.defineProperty(i,"enabled",{enumerable:!0,get(){return s.enabled},set(n){s.enabled=n}}),i.hasGrey=this.hasGrey||r==="gray"||r==="grey",i.__proto__=Zq,i}function eU(){let e=arguments,t=e.length,r=String(arguments[0]);if(t===0)return"";if(t>1)for(let s=1;s<t;s++)r+=" "+e[s];if(!this.enabled||this.level<=0||!r)return this._empty?"":r;let i=Ge.dim.open;Cy&&this.hasGrey&&(Ge.dim.open="");for(let s of this._styles.slice().reverse())r=s.open+r.replace(s.closeRe,s.open)+s.close,r=r.replace(/\r?\n/g,`${s.close}$&${s.open}`);return Ge.dim.open=i,r}function tU(e,t){if(!Array.isArray(t))return[].slice.call(arguments,1).join(" ");let r=[].slice.call(arguments,2),i=[t.raw[0]];for(let s=1;s<t.length;s++)i.push(String(r[s-1]).replace(/[{}\\]/g,"\\$&")),i.push(String(t.raw[s]));return Qq(e,i.join(""))}Object.defineProperties(ds.prototype,Ei);ms.exports=ds();ms.exports.supportsColor=sc;ms.exports.default=ms.exports});var Fy=A(ys=>{"use strict";Object.defineProperty(ys,"__esModule",{value:!0});ys.default=uU;ys.shouldHighlight=By;var Ny=Zm(),_y=Gi(),oc=rU(ec(),!0);function ky(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(ky=function(i){return i?r:t})(e)}function rU(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=ky(t);if(r&&r.has(e))return r.get(e);var i={__proto__:null},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(n!=="default"&&{}.hasOwnProperty.call(e,n)){var a=s?Object.getOwnPropertyDescriptor(e,n):null;a&&(a.get||a.set)?Object.defineProperty(i,n,a):i[n]=e[n]}return i.default=e,r&&r.set(e,i),i}var Ly=typeof process=="object"&&(process.env.FORCE_COLOR==="0"||process.env.FORCE_COLOR==="false")?(0,oc.createColors)(!1):oc.default,Dy=(e,t)=>r=>e(t(r)),iU=new Set(["as","async","from","get","of","set"]);function sU(e){return{keyword:e.cyan,capitalized:e.yellow,jsxIdentifier:e.yellow,punctuator:e.yellow,number:e.magenta,string:e.green,regex:e.magenta,comment:e.gray,invalid:Dy(Dy(e.white,e.bgRed),e.bold)}}var nU=/\r\n|[\n\r\u2028\u2029]/,aU=/^[()[\]{}]$/,My;{let e=/^[a-z][\w-]*$/i,t=function(r,i,s){if(r.type==="name"){if((0,_y.isKeyword)(r.value)||(0,_y.isStrictReservedWord)(r.value,!0)||iU.has(r.value))return"keyword";if(e.test(r.value)&&(s[i-1]==="<"||s.slice(i-2,i)==="</"))return"jsxIdentifier";if(r.value[0]!==r.value[0].toLowerCase())return"capitalized"}return r.type==="punctuator"&&aU.test(r.value)?"bracket":r.type==="invalid"&&(r.value==="@"||r.value==="#")?"punctuator":r.type};My=function*(r){let i;for(;i=Ny.default.exec(r);){let s=Ny.matchToToken(i);yield{type:t(s,i.index,r),value:s.value}}}}function oU(e,t){let r="";for(let{type:i,value:s}of My(t)){let n=e[i];n?r+=s.split(nU).map(a=>n(a)).join(`
|
|
29
|
-
`):r+=s}return r}function By(e){return Ly.isColorSupported||e.forceColor}var ac;function lU(e){if(e){var t;return(t=ac)!=null||(ac=(0,oc.createColors)(!0)),ac}return Ly}function uU(e,t={}){if(e!==""&&By(t)){let r=sU(lU(t.forceColor));return oU(r,e)}else return e}{let e,t;ys.getChalk=({forceColor:r})=>{var i;if((i=e)!=null||(e=Oy()),r){var s;return(s=t)!=null||(t=new e.constructor({enabled:!0,level:1})),t}return e}}});var cc=A(Hn=>{"use strict";Object.defineProperty(Hn,"__esModule",{value:!0});Hn.codeFrameColumns=Ky;Hn.default=mU;var jy=Fy(),uc=cU(ec(),!0);function Vy(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(Vy=function(i){return i?r:t})(e)}function cU(e,t){if(!t&&e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=Vy(t);if(r&&r.has(e))return r.get(e);var i={__proto__:null},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(n!=="default"&&{}.hasOwnProperty.call(e,n)){var a=s?Object.getOwnPropertyDescriptor(e,n):null;a&&(a.get||a.set)?Object.defineProperty(i,n,a):i[n]=e[n]}return i.default=e,r&&r.set(e,i),i}var pU=typeof process=="object"&&(process.env.FORCE_COLOR==="0"||process.env.FORCE_COLOR==="false")?(0,uc.createColors)(!1):uc.default,Ry=(e,t)=>r=>e(t(r)),lc;function fU(e){if(e){var t;return(t=lc)!=null||(lc=(0,uc.createColors)(!0)),lc}return pU}var qy=!1;function hU(e){return{gutter:e.gray,marker:Ry(e.red,e.bold),message:Ry(e.red,e.bold)}}var Uy=/\r\n|[\n\r\u2028\u2029]/;function dU(e,t,r){let i=Object.assign({column:0,line:-1},e.start),s=Object.assign({},i,e.end),{linesAbove:n=2,linesBelow:a=3}=r||{},o=i.line,l=i.column,u=s.line,c=s.column,T=Math.max(o-(n+1),0),P=Math.min(t.length,u+a);o===-1&&(T=0),u===-1&&(P=t.length);let E=u-o,v={};if(E)for(let D=0;D<=E;D++){let _=D+o;if(!l)v[_]=!0;else if(D===0){let N=t[_-1].length;v[_]=[l,N-l+1]}else if(D===E)v[_]=[0,c];else{let N=t[_-D].length;v[_]=[0,N]}}else l===c?l?v[o]=[l,0]:v[o]=!0:v[o]=[l,c-l];return{start:T,end:P,markerLines:v}}function Ky(e,t,r={}){let i=(r.highlightCode||r.forceColor)&&(0,jy.shouldHighlight)(r),s=fU(r.forceColor),n=hU(s),a=(D,_)=>i?D(_):_,o=e.split(Uy),{start:l,end:u,markerLines:c}=dU(t,o,r),T=t.start&&typeof t.start.column=="number",P=String(u).length,v=(i?(0,jy.default)(e,r):e).split(Uy,u).slice(l,u).map((D,_)=>{let N=l+1+_,ne=` ${` ${N}`.slice(-P)} |`,ae=c[N],xe=!c[N+1];if(ae){let ee="";if(Array.isArray(ae)){let qe=D.slice(0,Math.max(ae[0]-1,0)).replace(/[^\t]/g," "),Ue=ae[1]||1;ee=[`
|
|
30
|
-
`,a(n.gutter,ne.replace(/\d/g," "))," ",qe,a(n.marker,"^").repeat(Ue)].join(""),xe&&r.message&&(ee+=" "+a(n.message,r.message))}return[a(n.marker,">"),a(n.gutter,ne),D.length>0?` ${D}`:"",ee].join("")}else return` ${a(n.gutter,ne)}${D.length>0?` ${D}`:""}`}).join(`
|
|
31
|
-
`);return r.message&&!T&&(v=`${" ".repeat(P+1)}${r.message}
|
|
32
|
-
${v}`),i?s.reset(v):v}function mU(e,t,r,i={}){if(!qy){qy=!0;let n="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";if(process.emitWarning)process.emitWarning(n,"DeprecationWarning");else{let a=new Error(n);a.name="DeprecationWarning",console.warn(new Error(n))}}return r=Math.max(r,0),Ky(e,{start:{column:r,line:t}},i)}});var Yy=A(Gn=>{"use strict";Object.defineProperty(Gn,"__esModule",{value:!0});Gn.default=void 0;var Wy=de(),yU=Wy,{react:TU}=Wy,{cloneNode:gU,jsxExpressionContainer:bU,variableDeclaration:SU,variableDeclarator:xU}=yU,EU={ReferencedIdentifier(e,t){if(e.isJSXIdentifier()&&TU.isCompatTag(e.node.name)&&!e.parentPath.isJSXMemberExpression())return;if(e.node.name==="this"){let i=e.scope;do if(i.path.isFunction()&&!i.path.isArrowFunctionExpression())break;while(i=i.parent);i&&t.breakOnScopePaths.push(i.path)}let r=e.scope.getBinding(e.node.name);if(r){for(let i of r.constantViolations)if(i.scope!==r.path.scope){t.mutableBinding=!0,e.stop();return}r===t.scope.getBinding(e.node.name)&&(t.bindings[e.node.name]=r)}}},pc=class{constructor(t,r){this.breakOnScopePaths=void 0,this.bindings=void 0,this.mutableBinding=void 0,this.scopes=void 0,this.scope=void 0,this.path=void 0,this.attachAfter=void 0,this.breakOnScopePaths=[],this.bindings={},this.mutableBinding=!1,this.scopes=[],this.scope=r,this.path=t,this.attachAfter=!1}isCompatibleScope(t){for(let r of Object.keys(this.bindings)){let i=this.bindings[r];if(!t.bindingIdentifierEquals(r,i.identifier))return!1}return!0}getCompatibleScopes(){let t=this.path.scope;do{if(this.isCompatibleScope(t))this.scopes.push(t);else break;if(this.breakOnScopePaths.includes(t.path))break}while(t=t.parent)}getAttachmentPath(){let t=this._getAttachmentPath();if(!t)return;let r=t.scope;if(r.path===t&&(r=t.scope.parent),r.path.isProgram()||r.path.isFunction())for(let i of Object.keys(this.bindings)){if(!r.hasOwnBinding(i))continue;let s=this.bindings[i];if(s.kind==="param"||s.path.parentKey==="params")continue;if(this.getAttachmentParentForPath(s.path).key>=t.key){this.attachAfter=!0,t=s.path;for(let a of s.constantViolations)this.getAttachmentParentForPath(a).key>t.key&&(t=a)}}return t}_getAttachmentPath(){let r=this.scopes.pop();if(r){if(r.path.isFunction())if(this.hasOwnParamBindings(r)){if(this.scope===r)return;let i=r.path.get("body").get("body");for(let s=0;s<i.length;s++)if(!i[s].node._blockHoist)return i[s]}else return this.getNextScopeAttachmentParent();else if(r.path.isProgram())return this.getNextScopeAttachmentParent()}}getNextScopeAttachmentParent(){let t=this.scopes.pop();if(t)return this.getAttachmentParentForPath(t.path)}getAttachmentParentForPath(t){do if(!t.parentPath||Array.isArray(t.container)&&t.isStatement())return t;while(t=t.parentPath)}hasOwnParamBindings(t){for(let r of Object.keys(this.bindings)){if(!t.hasOwnBinding(r))continue;let i=this.bindings[r];if(i.kind==="param"&&i.constant)return!0}return!1}run(){if(this.path.traverse(EU,this),this.mutableBinding)return;this.getCompatibleScopes();let t=this.getAttachmentPath();if(!t||t.getFunctionParent()===this.path.getFunctionParent())return;let r=t.scope.generateUidIdentifier("ref"),i=xU(r,this.path.node),s=this.attachAfter?"insertAfter":"insertBefore",[n]=t[s]([t.isVariableDeclarator()?i:SU("var",[i])]),a=this.path.parentPath;return a.isJSXElement()&&this.path.container===a.node.children&&(r=bU(r)),this.path.replaceWith(gU(r)),t.isVariableDeclarator()?n.get("init"):n.get("declarations.0.init")}};Gn.default=pc});var Xy=A(zn=>{"use strict";Object.defineProperty(zn,"__esModule",{value:!0});zn.hooks=void 0;var WG=zn.hooks=[function(e,t){if(e.key==="test"&&(t.isWhile()||t.isSwitchCase())||e.key==="declaration"&&t.isExportDeclaration()||e.key==="body"&&t.isLabeledStatement()||e.listKey==="declarations"&&t.isVariableDeclaration()&&t.node.declarations.length===1||e.key==="expression"&&t.isExpressionStatement())return t.remove(),!0},function(e,t){if(t.isSequenceExpression()&&t.node.expressions.length===1)return t.replaceWith(t.node.expressions[0]),!0},function(e,t){if(t.isBinary())return e.key==="left"?t.replaceWith(t.node.right):t.replaceWith(t.node.left),!0},function(e,t){if(t.isIfStatement()&&e.key==="consequent"||e.key==="body"&&(t.isLoop()||t.isArrowFunctionExpression()))return e.replaceWith({type:"BlockStatement",body:[]}),!0}]});var Qn=A(Or=>{"use strict";Object.defineProperty(Or,"__esModule",{value:!0});Or._assertUnremoved=zy;Or._callRemovalHooks=Hy;Or._markRemoved=fc;Or._remove=Gy;Or._removeFromScope=$y;Or.remove=NU;var PU=Xy(),AU=Yr(),vU=hc(),Jy=Nr(),CU=de(),IU=Zn(),wU=Ht(),{getBindingIdentifiers:OU}=CU;function NU(){var e;if(zy.call(this),wU.resync.call(this),Hy.call(this)){fc.call(this);return}(e=this.opts)!=null&&e.noScope||$y.call(this),this.shareCommentsWithSiblings(),Gy.call(this),fc.call(this)}function $y(){let e=OU(this.node,!1,!1,!0);Object.keys(e).forEach(t=>this.scope.removeBinding(t))}function Hy(){if(this.parentPath){for(let e of PU.hooks)if(e(this,this.parentPath))return!0}}function Gy(){Array.isArray(this.container)?(this.container.splice(this.key,1),IU.updateSiblingKeys.call(this,this.key,-1)):vU._replaceWith.call(this,null)}function fc(){this._traverseFlags|=Jy.SHOULD_SKIP|Jy.REMOVED,this.parent&&(0,AU.getCachedPaths)(this.hub,this.parent).delete(this.node),this.node=null}function zy(){if(this.removed)throw this.buildCodeFrameError("NodePath has been removed so is read-only.")}});var Zn=A(kt=>{"use strict";Object.defineProperty(kt,"__esModule",{value:!0});kt._containerInsert=gc;kt._containerInsertAfter=eT;kt._containerInsertBefore=bc;kt._verifyNodeList=Ts;kt.insertAfter=JU;kt.insertBefore=YU;kt.pushContainer=HU;kt.unshiftContainer=$U;kt.updateSiblingKeys=iT;var _U=Yr(),DU=Yy(),Tc=Nr(),dc=Ht(),ea=Qn(),kU=de(),{arrowFunctionExpression:LU,assertExpression:MU,assignmentExpression:BU,blockStatement:Qy,callExpression:FU,cloneNode:mc,expressionStatement:yc,isAssignmentExpression:jU,isCallExpression:RU,isExportNamedDeclaration:Zy,isExpression:qU,isIdentifier:UU,isSequenceExpression:VU,isSuper:KU,thisExpression:WU}=kU;function YU(e){ea._assertUnremoved.call(this);let t=Ts.call(this,e),{parentPath:r,parent:i}=this;if(r.isExpressionStatement()||r.isLabeledStatement()||Zy(i)||r.isExportDefaultDeclaration()&&this.isDeclaration())return r.insertBefore(t);if(this.isNodeType("Expression")&&!this.isJSXElement()||r.isForStatement()&&this.key==="init")return this.node&&t.push(this.node),this.replaceExpressionWithStatements(t);if(Array.isArray(this.container))return bc.call(this,t);if(this.isStatementOrBlock()){let s=this.node,n=s&&(!this.isExpressionStatement()||s.expression!=null);return this.replaceWith(Qy(n?[s]:[])),this.unshiftContainer("body",t)}else throw new Error("We don't know what to do with this node type. We were previously a Statement but we can't fit in here?")}function gc(e,t){iT.call(this,e,t.length);let r=[];this.container.splice(e,0,...t);for(let n=0;n<t.length;n++){var i;let a=e+n,o=this.getSibling(a);r.push(o),(i=this.context)!=null&&i.queue&&dc.pushContext.call(o,this.context)}let s=dc._getQueueContexts.call(this);for(let n of r){dc.setScope.call(n),n.debug("Inserted.");for(let a of s)a.maybeQueue(n,!0)}return r}function bc(e){return gc.call(this,this.key,e)}function eT(e){return gc.call(this,this.key+1,e)}var tT=e=>e[e.length-1];function rT(e){return VU(e.parent)&&(tT(e.parent.expressions)!==e.node||rT(e.parentPath))}function XU(e,t){if(!jU(e)||!UU(e.left))return!1;let r=t.getBlockParent();return r.hasOwnBinding(e.left.name)&&r.getOwnBinding(e.left.name).constantViolations.length<=1}function JU(e){if(ea._assertUnremoved.call(this),this.isSequenceExpression())return tT(this.get("expressions")).insertAfter(e);let t=Ts.call(this,e),{parentPath:r,parent:i}=this;if(r.isExpressionStatement()||r.isLabeledStatement()||Zy(i)||r.isExportDefaultDeclaration()&&this.isDeclaration())return r.insertAfter(t.map(s=>qU(s)?yc(s):s));if(this.isNodeType("Expression")&&!this.isJSXElement()&&!r.isJSXElement()||r.isForStatement()&&this.key==="init"){let s=this;if(s.node){let n=s.node,{scope:a}=this;if(a.path.isPattern())return MU(n),s.replaceWith(FU(LU([],n),[])),s.get("callee.body").insertAfter(t),[s];if(rT(s))t.unshift(n);else if(RU(n)&&KU(n.callee))t.unshift(n),t.push(WU());else if(XU(n,a))t.unshift(n),t.push(mc(n.left));else if(a.isPure(n,!0))t.push(n);else{r.isMethod({computed:!0,key:n})&&(a=a.parent);let o=a.generateDeclaredUidIdentifier();t.unshift(yc(BU("=",mc(o),n))),t.push(yc(mc(o)))}}return this.replaceExpressionWithStatements(t)}else{if(Array.isArray(this.container))return eT.call(this,t);if(this.isStatementOrBlock()){let s=this.node,n=s&&(!this.isExpressionStatement()||s.expression!=null);return this.replaceWith(Qy(n?[s]:[])),this.pushContainer("body",t)}else throw new Error("We don't know what to do with this node type. We were previously a Statement but we can't fit in here?")}}function iT(e,t){if(!this.parent)return;let r=(0,_U.getCachedPaths)(this.hub,this.parent)||[];for(let[,i]of r)typeof i.key=="number"&&i.key>=e&&(i.key+=t)}function Ts(e){if(!e)return[];Array.isArray(e)||(e=[e]);for(let t=0;t<e.length;t++){let r=e[t],i;if(r?typeof r!="object"?i="contains a non-object node":r.type?r instanceof Tc.default&&(i="has a NodePath when it expected a raw object"):i="without a type":i="has falsy node",i){let s=Array.isArray(r)?"array":typeof r;throw new Error(`Node list ${i} with the index of ${t} and type of ${s}`)}}return e}function $U(e,t){ea._assertUnremoved.call(this),t=Ts.call(this,t);let r=Tc.default.get({parentPath:this,parent:this.node,container:this.node[e],listKey:e,key:0}).setContext(this.context);return bc.call(r,t)}function HU(e,t){ea._assertUnremoved.call(this);let r=Ts.call(this,t),i=this.node[e];return Tc.default.get({parentPath:this,parent:this.node,container:i,listKey:e,key:i.length}).setContext(this.context).replaceWithMultiple(r)}kt.hoist=function(t=this.scope){return new DU.default(this,t).run()}});var hc=A(_r=>{"use strict";Object.defineProperty(_r,"__esModule",{value:!0});_r._replaceWith=pT;_r.replaceExpressionWithStatements=PV;_r.replaceInline=AV;_r.replaceWith=EV;_r.replaceWithMultiple=SV;_r.replaceWithSourceString=xV;var GU=cc(),xc=us(),zU=Nr(),lT=Yr(),Ec=Zn(),QU=Rs(),ZU=de(),Pi=Ht(),{FUNCTION_TYPES:sT,arrowFunctionExpression:eV,assignmentExpression:uT,awaitExpression:tV,blockStatement:rV,buildUndefinedNode:Sc,callExpression:iV,cloneNode:Pc,conditionalExpression:sV,expressionStatement:nV,getBindingIdentifiers:aV,identifier:oV,inheritLeadingComments:lV,inheritTrailingComments:uV,inheritsComments:cV,isBlockStatement:pV,isEmptyStatement:nT,isExpression:cT,isExpressionStatement:fV,isIfStatement:hV,isProgram:dV,isStatement:mV,isVariableDeclaration:yV,removeComments:TV,returnStatement:aT,sequenceExpression:gV,validate:oT,yieldExpression:bV}=ZU;function SV(e){var t;Pi.resync.call(this),e=Ec._verifyNodeList.call(this,e),lV(e[0],this.node),uV(e[e.length-1],this.node),(t=(0,lT.getCachedPaths)(this.hub,this.parent))==null||t.delete(this.node),this.node=this.container[this.key]=null;let r=this.insertAfter(e);return this.node?this.requeue():this.remove(),r}function xV(e){Pi.resync.call(this);let t;try{e=`(${e})`,t=(0,QU.parse)(e)}catch(i){let s=i.loc;throw s&&(i.message+=` - make sure this is an expression.
|
|
33
|
-
`+(0,GU.codeFrameColumns)(e,{start:{line:s.line,column:s.column+1}}),i.code="BABEL_REPLACE_SOURCE_ERROR"),i}let r=t.program.body[0].expression;return xc.default.removeProperties(r),this.replaceWith(r)}function EV(e){if(Pi.resync.call(this),this.removed)throw new Error("You can't replace this node, we've already removed it");let t=e instanceof zU.default?e.node:e;if(!t)throw new Error("You passed `path.replaceWith()` a falsy node, use `path.remove()` instead");if(this.node===t)return[this];if(this.isProgram()&&!dV(t))throw new Error("You can only replace a Program root node with another Program node");if(Array.isArray(t))throw new Error("Don't use `path.replaceWith()` with an array of nodes, use `path.replaceWithMultiple()`");if(typeof t=="string")throw new Error("Don't use `path.replaceWith()` with a source string, use `path.replaceWithSourceString()`");let r="";if(this.isNodeType("Statement")&&cT(t)&&!this.canHaveVariableDeclarationOrExpression()&&!this.canSwapBetweenExpressionAndStatement(t)&&!this.parentPath.isExportDefaultDeclaration()&&(t=nV(t),r="expression"),this.isNodeType("Expression")&&mV(t)&&!this.canHaveVariableDeclarationOrExpression()&&!this.canSwapBetweenExpressionAndStatement(t))return this.replaceExpressionWithStatements([t]);let i=this.node;return i&&(cV(t,i),TV(i)),pT.call(this,t),this.type=t.type,Pi.setScope.call(this),this.requeue(),[r?this.get(r):this]}function pT(e){var t;if(!this.container)throw new ReferenceError("Container is falsy");this.inList?oT(this.parent,this.key,[e]):oT(this.parent,this.key,e),this.debug(`Replace with ${e?.type}`),(t=(0,lT.getCachedPaths)(this.hub,this.parent))==null||t.set(e,this).delete(this.node),this.node=this.container[this.key]=e}function PV(e){Pi.resync.call(this);let t=[],r=ta(e,t);if(r){for(let P of t)this.scope.push({id:P});return this.replaceWith(r)[0].get("expressions")}let i=this.getFunctionParent(),s=i?.node.async,n=i?.node.generator,a=eV([],rV(e));this.replaceWith(iV(a,[]));let o=this.get("callee");o.get("body").scope.hoistVariables(P=>this.scope.push({id:P}));let l=o.getCompletionRecords();for(let P of l){if(!P.isExpressionStatement())continue;let E=P.findParent(v=>v.isLoop());if(E){let v=E.getData("expressionReplacementReturnUid");v?v=oV(v.name):(v=o.scope.generateDeclaredUidIdentifier("ret"),o.get("body").pushContainer("body",aT(Pc(v))),E.setData("expressionReplacementReturnUid",v)),P.get("expression").replaceWith(uT("=",Pc(v),P.node.expression))}else P.replaceWith(aT(P.node.expression))}o.arrowFunctionToExpression();let u=o,c=s&&xc.default.hasType(this.get("callee.body").node,"AwaitExpression",sT),T=n&&xc.default.hasType(this.get("callee.body").node,"YieldExpression",sT);return c&&(u.set("async",!0),T||this.replaceWith(tV(this.node))),T&&(u.set("generator",!0),this.replaceWith(bV(this.node,!0))),u.get("body.body")}function ta(e,t){let r=[],i=!0;for(let s of e)if(nT(s)||(i=!1),cT(s))r.push(s);else if(fV(s))r.push(s.expression);else if(yV(s)){if(s.kind!=="var")return;for(let n of s.declarations){let a=aV(n);for(let o of Object.keys(a))t.push(Pc(a[o]));n.init&&r.push(uT("=",n.id,n.init))}i=!0}else if(hV(s)){let n=s.consequent?ta([s.consequent],t):Sc(),a=s.alternate?ta([s.alternate],t):Sc();if(!n||!a)return;r.push(sV(s.test,n,a))}else if(pV(s)){let n=ta(s.body,t);if(!n)return;r.push(n)}else if(nT(s))e.indexOf(s)===0&&(i=!0);else return;return i&&r.push(Sc()),r.length===1?r[0]:gV(r)}function AV(e){if(Pi.resync.call(this),Array.isArray(e))if(Array.isArray(this.container)){e=Ec._verifyNodeList.call(this,e);let t=Ec._containerInsertAfter.call(this,e);return this.remove(),t}else return this.replaceWithMultiple(e);else return this.replaceWith(e)}});var mT=A(ra=>{"use strict";Object.defineProperty(ra,"__esModule",{value:!0});ra.evaluate=DV;ra.evaluateTruthy=NV;var vV=["Number","String","Math"],CV=["isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent",null,null],IV=["random"];function fT(e){return vV.includes(e)}function wV(e){return CV.includes(e)}function OV(e){return IV.includes(e)}function NV(){let e=this.evaluate();if(e.confident)return!!e.value}function pr(e,t){t.confident&&(t.deoptPath=e,t.confident=!1)}var hT=new Map([["undefined",void 0],["Infinity",1/0],["NaN",NaN]]);function yt(e,t){let{node:r}=e,{seen:i}=t;if(i.has(r)){let s=i.get(r);if(s.resolved)return s.value;pr(e,t);return}else{let s={resolved:!1};i.set(r,s);let n=_V(e,t);return t.confident&&(s.resolved=!0,s.value=n),n}}function _V(e,t){if(t.confident){if(e.isSequenceExpression()){let r=e.get("expressions");return yt(r[r.length-1],t)}if(e.isStringLiteral()||e.isNumericLiteral()||e.isBooleanLiteral())return e.node.value;if(e.isNullLiteral())return null;if(e.isTemplateLiteral())return dT(e,e.node.quasis,t);if(e.isTaggedTemplateExpression()&&e.get("tag").isMemberExpression()){let r=e.get("tag.object"),{node:{name:i}}=r,s=e.get("tag.property");if(r.isIdentifier()&&i==="String"&&!e.scope.getBinding(i)&&s.isIdentifier()&&s.node.name==="raw")return dT(e,e.node.quasi.quasis,t,!0)}if(e.isConditionalExpression()){let r=yt(e.get("test"),t);return t.confident?yt(r?e.get("consequent"):e.get("alternate"),t):void 0}if(e.isExpressionWrapper())return yt(e.get("expression"),t);if(e.isMemberExpression()&&!e.parentPath.isCallExpression({callee:e.node})){let r=e.get("property"),i=e.get("object");if(i.isLiteral()){let s=i.node.value,n=typeof s,a=null;if(e.node.computed){if(a=yt(r,t),!t.confident)return}else r.isIdentifier()&&(a=r.node.name);if((n==="number"||n==="string")&&a!=null&&(typeof a=="number"||typeof a=="string"))return s[a]}}if(e.isReferencedIdentifier()){let r=e.scope.getBinding(e.node.name);if(r){if(r.constantViolations.length>0||e.node.start<r.path.node.end){pr(r.path,t);return}if(r.hasValue)return r.value}let i=e.node.name;if(hT.has(i)){if(!r)return hT.get(i);pr(r.path,t);return}let s=e.resolve();if(s===e){pr(e,t);return}else return yt(s,t)}if(e.isUnaryExpression({prefix:!0})){if(e.node.operator==="void")return;let r=e.get("argument");if(e.node.operator==="typeof"&&(r.isFunction()||r.isClass()))return"function";let i=yt(r,t);if(!t.confident)return;switch(e.node.operator){case"!":return!i;case"+":return+i;case"-":return-i;case"~":return~i;case"typeof":return typeof i}}if(e.isArrayExpression()){let r=[],i=e.get("elements");for(let s of i){let n=s.evaluate();if(n.confident)r.push(n.value);else{pr(n.deopt,t);return}}return r}if(e.isObjectExpression()){let r={},i=e.get("properties");for(let s of i){if(s.isObjectMethod()||s.isSpreadElement()){pr(s,t);return}let n=s.get("key"),a;if(s.node.computed){if(a=n.evaluate(),!a.confident){pr(a.deopt,t);return}a=a.value}else n.isIdentifier()?a=n.node.name:a=n.node.value;let l=s.get("value").evaluate();if(!l.confident){pr(l.deopt,t);return}l=l.value,r[a]=l}return r}if(e.isLogicalExpression()){let r=t.confident,i=yt(e.get("left"),t),s=t.confident;t.confident=r;let n=yt(e.get("right"),t),a=t.confident;switch(e.node.operator){case"||":return t.confident=s&&(!!i||a),t.confident?i||n:void 0;case"&&":return t.confident=s&&(!i||a),t.confident?i&&n:void 0;case"??":return t.confident=s&&(i!=null||a),t.confident?i??n:void 0}}if(e.isBinaryExpression()){let r=yt(e.get("left"),t);if(!t.confident)return;let i=yt(e.get("right"),t);if(!t.confident)return;switch(e.node.operator){case"-":return r-i;case"+":return r+i;case"/":return r/i;case"*":return r*i;case"%":return r%i;case"**":return Math.pow(r,i);case"<":return r<i;case">":return r>i;case"<=":return r<=i;case">=":return r>=i;case"==":return r==i;case"!=":return r!=i;case"===":return r===i;case"!==":return r!==i;case"|":return r|i;case"&":return r&i;case"^":return r^i;case"<<":return r<<i;case">>":return r>>i;case">>>":return r>>>i}}if(e.isCallExpression()){let r=e.get("callee"),i,s;if(r.isIdentifier()&&!e.scope.getBinding(r.node.name)&&(fT(r.node.name)||wV(r.node.name))&&(s=global[r.node.name]),r.isMemberExpression()){let n=r.get("object"),a=r.get("property");if(n.isIdentifier()&&a.isIdentifier()&&fT(n.node.name)&&!OV(a.node.name)){i=global[n.node.name];let o=a.node.name;hasOwnProperty.call(i,o)&&(s=i[o])}if(n.isLiteral()&&a.isIdentifier()){let o=typeof n.node.value;(o==="string"||o==="number")&&(i=n.node.value,s=i[a.node.name])}}if(s){let n=e.get("arguments").map(a=>yt(a,t));return t.confident?s.apply(i,n):void 0}}pr(e,t)}}function dT(e,t,r,i=!1){let s="",n=0,a=e.isTemplateLiteral()?e.get("expressions"):e.get("quasi.expressions");for(let o of t){if(!r.confident)break;s+=i?o.value.raw:o.value.cooked;let l=a[n++];l&&(s+=String(yt(l,r)))}if(r.confident)return s}function DV(){let e={confident:!0,deoptPath:null,seen:new Map},t=yt(this,e);return e.confident||(t=void 0),{confident:e.confident,deopt:e.deoptPath,value:t}}});var yT=A(Lt=>{"use strict";Object.defineProperty(Lt,"__esModule",{value:!0});Lt.statements=Lt.statement=Lt.smart=Lt.program=Lt.expression=void 0;var kV=de(),{assertExpressionStatement:LV}=kV;function Ac(e){return{code:t=>`/* @babel/template */;
|
|
34
|
-
${t}`,validate:()=>{},unwrap:t=>e(t.program.body.slice(1))}}var GG=Lt.smart=Ac(e=>e.length>1?e:e[0]),zG=Lt.statements=Ac(e=>e),QG=Lt.statement=Ac(e=>{if(e.length===0)throw new Error("Found nothing to return.");if(e.length>1)throw new Error("Found multiple statements but wanted one");return e[0]}),MV=Lt.expression={code:e=>`(
|
|
35
|
-
${e}
|
|
36
|
-
)`,validate:e=>{if(e.program.body.length>1)throw new Error("Found multiple statements but wanted one");if(MV.unwrap(e).start===0)throw new Error("Parse result included parens.")},unwrap:({program:e})=>{let[t]=e.body;return LV(t),t.expression}},ZG=Lt.program={code:e=>e,validate:()=>{},unwrap:e=>e.program}});var ia=A(gs=>{"use strict";Object.defineProperty(gs,"__esModule",{value:!0});gs.merge=jV;gs.normalizeReplacements=qV;gs.validate=RV;var BV=["placeholderWhitelist","placeholderPattern","preserveComments","syntacticPlaceholders"];function FV(e,t){if(e==null)return{};var r={},i=Object.keys(e),s,n;for(n=0;n<i.length;n++)s=i[n],!(t.indexOf(s)>=0)&&(r[s]=e[s]);return r}function jV(e,t){let{placeholderWhitelist:r=e.placeholderWhitelist,placeholderPattern:i=e.placeholderPattern,preserveComments:s=e.preserveComments,syntacticPlaceholders:n=e.syntacticPlaceholders}=t;return{parser:Object.assign({},e.parser,t.parser),placeholderWhitelist:r,placeholderPattern:i,preserveComments:s,syntacticPlaceholders:n}}function RV(e){if(e!=null&&typeof e!="object")throw new Error("Unknown template options.");let t=e||{},{placeholderWhitelist:r,placeholderPattern:i,preserveComments:s,syntacticPlaceholders:n}=t,a=FV(t,BV);if(r!=null&&!(r instanceof Set))throw new Error("'.placeholderWhitelist' must be a Set, null, or undefined");if(i!=null&&!(i instanceof RegExp)&&i!==!1)throw new Error("'.placeholderPattern' must be a RegExp, false, null, or undefined");if(s!=null&&typeof s!="boolean")throw new Error("'.preserveComments' must be a boolean, null, or undefined");if(n!=null&&typeof n!="boolean")throw new Error("'.syntacticPlaceholders' must be a boolean, null, or undefined");if(n===!0&&(r!=null||i!=null))throw new Error("'.placeholderWhitelist' and '.placeholderPattern' aren't compatible with '.syntacticPlaceholders: true'");return{parser:a,placeholderWhitelist:r||void 0,placeholderPattern:i??void 0,preserveComments:s??void 0,syntacticPlaceholders:n??void 0}}function qV(e){if(Array.isArray(e))return e.reduce((t,r,i)=>(t["$"+i]=r,t),{});if(typeof e=="object"||e==null)return e||void 0;throw new Error("Template replacements must be an array, object, null, or undefined")}});var Cc=A(vc=>{"use strict";Object.defineProperty(vc,"__esModule",{value:!0});vc.default=eK;var UV=de(),VV=Rs(),KV=cc(),{isCallExpression:WV,isExpressionStatement:YV,isFunction:XV,isIdentifier:JV,isJSXIdentifier:$V,isNewExpression:HV,isPlaceholder:sa,isStatement:GV,isStringLiteral:TT,removePropertiesDeep:zV,traverse:QV}=UV,ZV=/^[_$A-Z0-9]+$/;function eK(e,t,r){let{placeholderWhitelist:i,placeholderPattern:s,preserveComments:n,syntacticPlaceholders:a}=r,o=iK(t,r.parser,a);zV(o,{preserveComments:n}),e.validate(o);let l={syntactic:{placeholders:[],placeholderNames:new Set},legacy:{placeholders:[],placeholderNames:new Set},placeholderWhitelist:i,placeholderPattern:s,syntacticPlaceholders:a};return QV(o,tK,l),Object.assign({ast:o},l.syntactic.placeholders.length?l.syntactic:l.legacy)}function tK(e,t,r){var i;let s,n=r.syntactic.placeholders.length>0;if(sa(e)){if(r.syntacticPlaceholders===!1)throw new Error("%%foo%%-style placeholders can't be used when '.syntacticPlaceholders' is false.");s=e.name.name,n=!0}else{if(n||r.syntacticPlaceholders)return;if(JV(e)||$V(e))s=e.name;else if(TT(e))s=e.value;else return}if(n&&(r.placeholderPattern!=null||r.placeholderWhitelist!=null))throw new Error("'.placeholderWhitelist' and '.placeholderPattern' aren't compatible with '.syntacticPlaceholders: true'");if(!n&&(r.placeholderPattern===!1||!(r.placeholderPattern||ZV).test(s))&&!((i=r.placeholderWhitelist)!=null&&i.has(s)))return;t=t.slice();let{node:a,key:o}=t[t.length-1],l;TT(e)||sa(e,{expectedNode:"StringLiteral"})?l="string":HV(a)&&o==="arguments"||WV(a)&&o==="arguments"||XV(a)&&o==="params"?l="param":YV(a)&&!sa(e)?(l="statement",t=t.slice(0,-1)):GV(e)&&sa(e)?l="statement":l="other";let{placeholders:u,placeholderNames:c}=n?r.syntactic:r.legacy;u.push({name:s,type:l,resolve:T=>rK(T,t),isDuplicate:c.has(s)}),c.add(s)}function rK(e,t){let r=e;for(let n=0;n<t.length-1;n++){let{key:a,index:o}=t[n];o===void 0?r=r[a]:r=r[a][o]}let{key:i,index:s}=t[t.length-1];return{parent:r,key:i,index:s}}function iK(e,t,r){let i=(t.plugins||[]).slice();r!==!1&&i.push("placeholders"),t=Object.assign({allowReturnOutsideFunction:!0,allowSuperOutsideMethod:!0,sourceType:"module"},t,{plugins:i});try{return(0,VV.parse)(e,t)}catch(s){let n=s.loc;throw n&&(s.message+=`
|
|
37
|
-
`+(0,KV.codeFrameColumns)(e,{start:n}),s.code="BABEL_TEMPLATE_PARSE_ERROR"),s}}});var Nc=A(Oc=>{"use strict";Object.defineProperty(Oc,"__esModule",{value:!0});Oc.default=uK;var sK=de(),{blockStatement:nK,cloneNode:wc,emptyStatement:aK,expressionStatement:Ic,identifier:na,isStatement:gT,isStringLiteral:oK,stringLiteral:lK,validate:bT}=sK;function uK(e,t){let r=wc(e.ast);return t&&(e.placeholders.forEach(i=>{if(!hasOwnProperty.call(t,i.name)){let s=i.name;throw new Error(`Error: No substitution given for "${s}". If this is not meant to be a
|
|
38
|
-
placeholder you may want to consider passing one of the following options to @babel/template:
|
|
39
|
-
- { placeholderPattern: false, placeholderWhitelist: new Set(['${s}'])}
|
|
40
|
-
- { placeholderPattern: /^${s}$/ }`)}}),Object.keys(t).forEach(i=>{if(!e.placeholderNames.has(i))throw new Error(`Unknown substitution "${i}" given`)})),e.placeholders.slice().reverse().forEach(i=>{try{cK(i,r,t&&t[i.name]||null)}catch(s){throw s.message=`@babel/template placeholder "${i.name}": ${s.message}`,s}}),r}function cK(e,t,r){e.isDuplicate&&(Array.isArray(r)?r=r.map(o=>wc(o)):typeof r=="object"&&(r=wc(r)));let{parent:i,key:s,index:n}=e.resolve(t);if(e.type==="string"){if(typeof r=="string"&&(r=lK(r)),!r||!oK(r))throw new Error("Expected string substitution")}else if(e.type==="statement")n===void 0?r?Array.isArray(r)?r=nK(r):typeof r=="string"?r=Ic(na(r)):gT(r)||(r=Ic(r)):r=aK():r&&!Array.isArray(r)&&(typeof r=="string"&&(r=na(r)),gT(r)||(r=Ic(r)));else if(e.type==="param"){if(typeof r=="string"&&(r=na(r)),n===void 0)throw new Error("Assertion failure.")}else if(typeof r=="string"&&(r=na(r)),Array.isArray(r))throw new Error("Cannot replace single expression with an array.");function a(o,l,u){let c=o[l];o[l]=u,c.type==="Identifier"&&(c.typeAnnotation&&(u.typeAnnotation=c.typeAnnotation),c.optional&&(u.optional=c.optional),c.decorators&&(u.decorators=c.decorators))}if(n===void 0)bT(i,s,r),a(i,s,r);else{let o=i[s].slice();e.type==="statement"||e.type==="param"?r==null?o.splice(n,1):Array.isArray(r)?o.splice(n,1,...r):a(o,n,r):a(o,n,r),bT(i,s,o),i[s]=o}}});var ST=A(_c=>{"use strict";Object.defineProperty(_c,"__esModule",{value:!0});_c.default=dK;var pK=ia(),fK=Cc(),hK=Nc();function dK(e,t,r){t=e.code(t);let i;return s=>{let n=(0,pK.normalizeReplacements)(s);return i||(i=(0,fK.default)(e,t,r)),e.unwrap((0,hK.default)(i,n))}}});var xT=A(Dc=>{"use strict";Object.defineProperty(Dc,"__esModule",{value:!0});Dc.default=gK;var mK=ia(),yK=Cc(),TK=Nc();function gK(e,t,r){let{metadata:i,names:s}=bK(e,t,r);return n=>{let a={};return n.forEach((o,l)=>{a[s[l]]=o}),o=>{let l=(0,mK.normalizeReplacements)(o);return l&&Object.keys(l).forEach(u=>{if(hasOwnProperty.call(a,u))throw new Error("Unexpected replacement overlap.")}),e.unwrap((0,TK.default)(i,l?Object.assign(l,a):a))}}}function bK(e,t,r){let i="BABEL_TPL$",s=t.join("");do i="$$"+i;while(s.includes(i));let{names:n,code:a}=SK(t,i);return{metadata:(0,yK.default)(e,e.code(a),{parser:r.parser,placeholderWhitelist:new Set(n.concat(r.placeholderWhitelist?Array.from(r.placeholderWhitelist):[])),placeholderPattern:r.placeholderPattern,preserveComments:r.preserveComments,syntacticPlaceholders:r.syntacticPlaceholders}),names:n}}function SK(e,t){let r=[],i=e[0];for(let s=1;s<e.length;s++){let n=`${t}${s-1}`;r.push(n),i+=n+e[s]}return{names:r,code:i}}});var IT=A(kc=>{"use strict";Object.defineProperty(kc,"__esModule",{value:!0});kc.default=CT;var Gt=ia(),ET=ST(),PT=xT(),AT=(0,Gt.validate)({placeholderPattern:!1});function CT(e,t){let r=new WeakMap,i=new WeakMap,s=t||(0,Gt.validate)(null);return Object.assign((n,...a)=>{if(typeof n=="string"){if(a.length>1)throw new Error("Unexpected extra params.");return vT((0,ET.default)(e,n,(0,Gt.merge)(s,(0,Gt.validate)(a[0]))))}else if(Array.isArray(n)){let o=r.get(n);return o||(o=(0,PT.default)(e,n,s),r.set(n,o)),vT(o(a))}else if(typeof n=="object"&&n){if(a.length>0)throw new Error("Unexpected extra params.");return CT(e,(0,Gt.merge)(s,(0,Gt.validate)(n)))}throw new Error(`Unexpected template param ${typeof n}`)},{ast:(n,...a)=>{if(typeof n=="string"){if(a.length>1)throw new Error("Unexpected extra params.");return(0,ET.default)(e,n,(0,Gt.merge)((0,Gt.merge)(s,(0,Gt.validate)(a[0])),AT))()}else if(Array.isArray(n)){let o=i.get(n);return o||(o=(0,PT.default)(e,n,(0,Gt.merge)(s,AT)),i.set(n,o)),o(a)()}throw new Error(`Unexpected template param ${typeof n}`)}})}function vT(e){let t="";try{throw new Error}catch(r){r.stack&&(t=r.stack.split(`
|
|
41
|
-
`).slice(3).join(`
|
|
42
|
-
`))}return r=>{try{return e(r)}catch(i){throw i.stack+=`
|
|
43
|
-
=============
|
|
44
|
-
${t}`,i}}}});var wT=A(xt=>{"use strict";Object.defineProperty(xt,"__esModule",{value:!0});xt.statements=xt.statement=xt.smart=xt.program=xt.expression=xt.default=void 0;var bs=yT(),Ss=IT(),Lc=xt.smart=(0,Ss.default)(bs.smart),xK=xt.statement=(0,Ss.default)(bs.statement),EK=xt.statements=(0,Ss.default)(bs.statements),PK=xt.expression=(0,Ss.default)(bs.expression),AK=xt.program=(0,Ss.default)(bs.program),oz=xt.default=Object.assign(Lc.bind(void 0),{smart:Lc,statement:xK,statements:EK,expression:PK,program:AK,ast:Lc.ast})});var BT=A(fr=>{"use strict";Object.defineProperty(fr,"__esModule",{value:!0});fr.arrowFunctionToExpression=eW;fr.ensureBlock=zK;fr.ensureFunctionName=fW;fr.splitExportDeclaration=cW;fr.toComputedKey=GK;fr.unwrapFunctionEnvironment=QK;var vK=de(),CK=wT(),Fc=os(),IK=Ht(),{arrowFunctionExpression:jc,assignmentExpression:Qr,binaryExpression:Mc,blockStatement:wK,callExpression:Ai,conditionalExpression:OK,expressionStatement:_T,identifier:Le,isIdentifier:NK,jsxIdentifier:_K,logicalExpression:DK,LOGICAL_OPERATORS:kK,memberExpression:Vt,metaProperty:LK,numericLiteral:MK,objectExpression:BK,restElement:FK,returnStatement:jK,sequenceExpression:RK,spreadElement:qK,stringLiteral:DT,super:Bc,thisExpression:xs,toExpression:kT,unaryExpression:UK,toBindingIdentifierName:VK,isFunction:KK,isAssignmentPattern:WK,isRestElement:YK,getFunctionName:XK,cloneNode:Zr,variableDeclaration:JK,variableDeclarator:$K,exportNamedDeclaration:OT,exportSpecifier:NT,inherits:HK}=vK;function GK(){let e;if(this.isMemberExpression())e=this.node.property;else if(this.isProperty()||this.isMethod())e=this.node.key;else throw new ReferenceError("todo");return this.node.computed||NK(e)&&(e=DT(e.name)),e}function zK(){let e=this.get("body"),t=e.node;if(Array.isArray(e))throw new Error("Can't convert array path to a block statement");if(!t)throw new Error("Can't convert node without a body");if(e.isBlockStatement())return t;let r=[],i="body",s,n;e.isStatement()?(n="body",s=0,r.push(e.node)):(i+=".body.0",this.isFunction()?(s="argument",r.push(jK(e.node))):(s="expression",r.push(_T(e.node)))),this.node.body=wK(r);let a=this.get(i);return IK.setup.call(e,a,n?a.node[n]:a.node,n,s),this.node}fr.arrowFunctionToShadowed=function(){this.isArrowFunctionExpression()&&this.arrowFunctionToExpression()};function QK(){if(!this.isArrowFunctionExpression()&&!this.isFunctionExpression()&&!this.isFunctionDeclaration())throw this.buildCodeFrameError("Can only unwrap the environment of a function.");LT(this)}function ZK(e,t){e.node.type=t}function eW({allowInsertArrow:e=!0,allowInsertArrowWithRest:t=e,noNewArrows:r=!(i=>(i=arguments[0])==null?void 0:i.specCompliant)()}={}){if(!this.isArrowFunctionExpression())throw this.buildCodeFrameError("Cannot convert non-arrow function to a function expression.");let i=this;if(!r){var s;i=(s=i.ensureFunctionName(!1))!=null?s:i}let{thisBinding:n,fnPath:a}=LT(i,r,e,t);if(a.ensureBlock(),ZK(a,"FunctionExpression"),!r){let o=n?null:a.scope.generateUidIdentifier("arrowCheckId");return o&&a.parentPath.scope.push({id:o,init:BK([])}),a.get("body").unshiftContainer("body",_T(Ai(this.hub.addHelper("newArrowCheck"),[xs(),Le(o?o.name:n)]))),a.replaceWith(Ai(Vt(a.node,Le("bind")),[o?Le(o.name):xs()])),a.get("callee.object")}return a}var tW=(0,Fc.environmentVisitor)({CallExpression(e,{allSuperCalls:t}){e.get("callee").isSuper()&&t.push(e)}});function LT(e,t=!0,r=!0,i=!0){let s,n=e.findParent(E=>{if(E.isArrowFunctionExpression()){var v;return(v=s)!=null||(s=E),!1}return E.isFunction()||E.isProgram()||E.isClassProperty({static:!1})||E.isClassPrivateProperty({static:!1})}),a=n.isClassMethod({kind:"constructor"});if(n.isClassProperty()||n.isClassPrivateProperty())if(s)n=s;else if(r)e.replaceWith(Ai(jc([],kT(e.node)),[])),n=e.get("callee"),e=n.get("body");else throw e.buildCodeFrameError("Unable to transform arrow inside class property");let{thisPaths:o,argumentsPaths:l,newTargetPaths:u,superProps:c,superCalls:T}=uW(e);if(a&&T.length>0){if(!r)throw T[0].buildCodeFrameError("When using '@babel/plugin-transform-arrow-functions', it's not possible to compile `super()` in an arrow function without compiling classes.\nPlease add '@babel/plugin-transform-classes' to your Babel configuration.");if(!i)throw T[0].buildCodeFrameError("When using '@babel/plugin-transform-parameters', it's not possible to compile `super()` in an arrow function with default or rest parameters without compiling classes.\nPlease add '@babel/plugin-transform-classes' to your Babel configuration.");let E=[];n.traverse(tW,{allSuperCalls:E});let v=aW(n);E.forEach(D=>{let _=Le(v);_.loc=D.node.callee.loc,D.get("callee").replaceWith(_)})}if(l.length>0){let E=Es(n,"arguments",()=>{let v=()=>Le("arguments");return n.scope.path.isProgram()?OK(Mc("===",UK("typeof",v()),DT("undefined")),n.scope.buildUndefinedNode(),v()):v()});l.forEach(v=>{let D=Le(E);D.loc=v.node.loc,v.replaceWith(D)})}if(u.length>0){let E=Es(n,"newtarget",()=>LK(Le("new"),Le("target")));u.forEach(v=>{let D=Le(E);D.loc=v.node.loc,v.replaceWith(D)})}if(c.length>0){if(!r)throw c[0].buildCodeFrameError("When using '@babel/plugin-transform-arrow-functions', it's not possible to compile `super.prop` in an arrow function without compiling classes.\nPlease add '@babel/plugin-transform-classes' to your Babel configuration.");c.reduce((v,D)=>v.concat(iW(D)),[]).forEach(v=>{let D=v.node.computed?"":v.get("property").node.name,_=v.parentPath,N=_.isAssignmentExpression({left:v.node}),M=_.isCallExpression({callee:v.node}),ne=_.isTaggedTemplateExpression({tag:v.node}),ae=oW(n,N,D),xe=[];if(v.node.computed&&xe.push(v.get("property").node),N){let qe=_.node.right;xe.push(qe)}let ee=Ai(Le(ae),xe);M?(_.unshiftContainer("arguments",xs()),v.replaceWith(Vt(ee,Le("call"))),o.push(_.get("arguments.0"))):N?_.replaceWith(ee):ne?(v.replaceWith(Ai(Vt(ee,Le("bind"),!1),[xs()])),o.push(v.get("arguments.0"))):v.replaceWith(ee)})}let P;return(o.length>0||!t)&&(P=nW(n,a),(t||a&&MT(n))&&(o.forEach(E=>{let v=E.isJSX()?_K(P):Le(P);v.loc=E.node.loc,E.replaceWith(v)}),t||(P=null))),{thisBinding:P,fnPath:e}}function rW(e){return kK.includes(e)}function iW(e){if(e.parentPath.isAssignmentExpression()&&e.parentPath.node.operator!=="="){let r=e.parentPath,i=r.node.operator.slice(0,-1),s=r.node.right,n=rW(i);if(e.node.computed){let a=e.scope.generateDeclaredUidIdentifier("tmp"),o=e.node.object,l=e.node.property;r.get("left").replaceWith(Vt(o,Qr("=",a,l),!0)),r.get("right").replaceWith(t(n?"=":i,Vt(o,Le(a.name),!0),s))}else{let a=e.node.object,o=e.node.property;r.get("left").replaceWith(Vt(a,o)),r.get("right").replaceWith(t(n?"=":i,Vt(a,Le(o.name)),s))}return n?r.replaceWith(DK(i,r.node.left,r.node.right)):r.node.operator="=",[r.get("left"),r.get("right").get("left")]}else if(e.parentPath.isUpdateExpression()){let r=e.parentPath,i=e.scope.generateDeclaredUidIdentifier("tmp"),s=e.node.computed?e.scope.generateDeclaredUidIdentifier("prop"):null,n=[Qr("=",i,Vt(e.node.object,s?Qr("=",s,e.node.property):e.node.property,e.node.computed)),Qr("=",Vt(e.node.object,s?Le(s.name):e.node.property,e.node.computed),Mc(e.parentPath.node.operator[0],Le(i.name),MK(1)))];e.parentPath.node.prefix||n.push(Le(i.name)),r.replaceWith(RK(n));let a=r.get("expressions.0.right"),o=r.get("expressions.1.left");return[a,o]}return[e];function t(r,i,s){return r==="="?Qr("=",i,s):Mc(r,i,s)}}function MT(e){return e.isClassMethod()&&!!e.parentPath.parentPath.node.superClass}var sW=(0,Fc.environmentVisitor)({CallExpression(e,{supers:t,thisBinding:r}){e.get("callee").isSuper()&&(t.has(e.node)||(t.add(e.node),e.replaceWithMultiple([e.node,Qr("=",Le(r),Le("this"))])))}});function nW(e,t){return Es(e,"this",r=>{if(!t||!MT(e))return xs();e.traverse(sW,{supers:new WeakSet,thisBinding:r})})}function aW(e){return Es(e,"supercall",()=>{let t=e.scope.generateUidIdentifier("args");return jc([FK(t)],Ai(Bc(),[qK(Le(t.name))]))})}function oW(e,t,r){return Es(e,`superprop_${t?"set":"get"}:${r||""}`,()=>{let s=[],n;if(r)n=Vt(Bc(),Le(r));else{let a=e.scope.generateUidIdentifier("prop");s.unshift(a),n=Vt(Bc(),Le(a.name),!0)}if(t){let a=e.scope.generateUidIdentifier("value");s.push(a),n=Qr("=",n,Le(a.name))}return jc(s,n)})}function Es(e,t,r){let i="binding:"+t,s=e.getData(i);if(!s){let n=e.scope.generateUidIdentifier(t);s=n.name,e.setData(i,s),e.scope.push({id:n,init:r(s)})}return s}var lW=(0,Fc.environmentVisitor)({ThisExpression(e,{thisPaths:t}){t.push(e)},JSXIdentifier(e,{thisPaths:t}){e.node.name==="this"&&(!e.parentPath.isJSXMemberExpression({object:e.node})&&!e.parentPath.isJSXOpeningElement({name:e.node})||t.push(e))},CallExpression(e,{superCalls:t}){e.get("callee").isSuper()&&t.push(e)},MemberExpression(e,{superProps:t}){e.get("object").isSuper()&&t.push(e)},Identifier(e,{argumentsPaths:t}){if(!e.isReferencedIdentifier({name:"arguments"}))return;let r=e.scope;do{if(r.hasOwnBinding("arguments")){r.rename("arguments");return}if(r.path.isFunction()&&!r.path.isArrowFunctionExpression())break}while(r=r.parent);t.push(e)},MetaProperty(e,{newTargetPaths:t}){e.get("meta").isIdentifier({name:"new"})&&e.get("property").isIdentifier({name:"target"})&&t.push(e)}});function uW(e){let t=[],r=[],i=[],s=[],n=[];return e.traverse(lW,{thisPaths:t,argumentsPaths:r,newTargetPaths:i,superProps:s,superCalls:n}),{thisPaths:t,argumentsPaths:r,newTargetPaths:i,superProps:s,superCalls:n}}function cW(){if(!this.isExportDeclaration()||this.isExportAllDeclaration())throw new Error("Only default and named export declarations can be split.");if(this.isExportNamedDeclaration()&&this.get("specifiers").length>0)throw new Error("It doesn't make sense to split exported specifiers.");let e=this.get("declaration");if(this.isExportDefaultDeclaration()){let s=e.isFunctionDeclaration()||e.isClassDeclaration(),n=e.isFunctionExpression()||e.isClassExpression(),a=e.isScope()?e.scope.parent:e.scope,o=e.node.id,l=!1;o?n&&a.hasBinding(o.name)&&(l=!0,o=a.generateUidIdentifier(o.name)):(l=!0,o=a.generateUidIdentifier("default"),(s||n)&&(e.node.id=Zr(o)));let u=s?e.node:JK("var",[$K(Zr(o),e.node)]),c=OT(null,[NT(Zr(o),Le("default"))]);return this.insertAfter(c),this.replaceWith(u),l&&a.registerDeclaration(this),this}else if(this.get("specifiers").length>0)throw new Error("It doesn't make sense to split exported specifiers.");let t=e.getOuterBindingIdentifiers(),r=Object.keys(t).map(s=>NT(Le(s),Le(s))),i=OT(null,r);return this.insertAfter(i),this.replaceWith(e.node),this}var pW={"ReferencedIdentifier|BindingIdentifier"(e,t){e.node.name===t.name&&(t.needsRename=!0,e.stop())},Scope(e,t){e.scope.hasOwnBinding(t.name)&&e.skip()}};function fW(e){if(this.node.id)return this;let t=XK(this.node,this.parent);if(t==null)return this;let{name:r}=t;if(!e&&/[\uD800-\uDFFF]/.test(r)||r.startsWith("get ")||r.startsWith("set "))return null;r=VK(r.replace(/[/ ]/g,"_"));let i=Le(r);HK(i,t.originalNode);let s={needsRename:!1,name:r},{scope:n}=this,a=n.getOwnBinding(r);if(a?a.kind==="param"&&(s.needsRename=!0):(n.parent.hasBinding(r)||n.hasGlobal(r))&&this.traverse(pW,s),!s.needsRename)return this.node.id=i,n.getProgramParent().references[i.name]=!0,this;if(n.hasBinding(i.name)&&!n.hasGlobal(i.name))return n.rename(i.name),this.node.id=i,n.getProgramParent().references[i.name]=!0,this;if(!KK(this.node))return null;let o=n.generateUidIdentifier(i.name),l=[];for(let c=0,T=hW(this.node);c<T;c++)l.push(n.generateUidIdentifier("x"));let u=CK.default.expression.ast`
|
|
45
|
-
(function (${o}) {
|
|
46
|
-
function ${i}(${l}) {
|
|
47
|
-
return ${Zr(o)}.apply(this, arguments);
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
${Zr(i)}.toString = function () {
|
|
51
|
-
return ${Zr(o)}.toString();
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
return ${Zr(i)};
|
|
55
|
-
})(${kT(this.node)})
|
|
56
|
-
`;return this.replaceWith(u)[0].get("arguments.0")}function hW(e){let t=e.params.findIndex(r=>WK(r)||YK(r));return t===-1?e.params.length:t}});var VT=A(Ye=>{"use strict";Object.defineProperty(Ye,"__esModule",{value:!0});Ye._guessExecutionStatusRelativeTo=LW;Ye._resolve=UT;Ye.canHaveVariableDeclarationOrExpression=CW;Ye.canSwapBetweenExpressionAndStatement=IW;Ye.getSource=_W;Ye.isCompletionRecord=wW;Ye.isConstantExpression=jW;Ye.isInStrictMode=RW;Ye.isNodeType=vW;Ye.isStatementOrBlock=OW;Ye.isStatic=AW;Ye.matchesPattern=PW;Ye.referencesImport=NW;Ye.resolve=FW;Ye.willIMaybeExecuteBefore=DW;var dW=de(),{STATEMENT_OR_BLOCK_KEYS:mW,VISITOR_KEYS:yW,isBlockStatement:qT,isExpression:TW,isIdentifier:gW,isLiteral:bW,isStringLiteral:SW,isType:xW,matchesPattern:EW}=dW;function PW(e,t){return EW(this.node,e,t)}Ye.has=function(t){var r;let i=(r=this.node)==null?void 0:r[t];return i&&Array.isArray(i)?!!i.length:!!i};function AW(){return this.scope.isStatic(this.node)}Ye.is=Ye.has,Ye.isnt=function(t){return!this.has(t)},Ye.equals=function(t,r){return this.node[t]===r};function vW(e){return xW(this.type,e)}function CW(){return(this.key==="init"||this.key==="left")&&this.parentPath.isFor()}function IW(e){return this.key!=="body"||!this.parentPath.isArrowFunctionExpression()?!1:this.isExpression()?qT(e):this.isBlockStatement()?TW(e):!1}function wW(e){let t=this,r=!0;do{let{type:i,container:s}=t;if(!r&&(t.isFunction()||i==="StaticBlock"))return!!e;if(r=!1,Array.isArray(s)&&t.key!==s.length-1)return!1}while((t=t.parentPath)&&!t.isProgram()&&!t.isDoExpression());return!0}function OW(){return this.parentPath.isLabeledStatement()||qT(this.container)?!1:mW.includes(this.key)}function NW(e,t){if(!this.isReferencedIdentifier()){if(this.isJSXMemberExpression()&&this.node.property.name===t||(this.isMemberExpression()||this.isOptionalMemberExpression())&&(this.node.computed?SW(this.node.property,{value:t}):this.node.property.name===t)){let n=this.get("object");return n.isReferencedIdentifier()&&n.referencesImport(e,"*")}return!1}let r=this.scope.getBinding(this.node.name);if(!r||r.kind!=="module")return!1;let i=r.path,s=i.parentPath;if(!s.isImportDeclaration())return!1;if(s.node.source.value===e){if(!t)return!0}else return!1;return!!(i.isImportDefaultSpecifier()&&t==="default"||i.isImportNamespaceSpecifier()&&t==="*"||i.isImportSpecifier()&&gW(i.node.imported,{name:t}))}function _W(){let e=this.node;if(e.end){let t=this.hub.getCode();if(t)return t.slice(e.start,e.end)}return""}function DW(e){return this._guessExecutionStatusRelativeTo(e)!=="after"}function FT(e){return e.isProgram()?e:(e.parentPath.scope.getFunctionParent()||e.parentPath.scope.getProgramParent()).path}function kW(e,t){switch(e){case"LogicalExpression":return t==="right";case"ConditionalExpression":case"IfStatement":return t==="consequent"||t==="alternate";case"WhileStatement":case"DoWhileStatement":case"ForInStatement":case"ForOfStatement":return t==="body";case"ForStatement":return t==="body"||t==="update";case"SwitchStatement":return t==="cases";case"TryStatement":return t==="handler";case"AssignmentPattern":return t==="right";case"OptionalMemberExpression":return t==="property";case"OptionalCallExpression":return t==="arguments";default:return!1}}function jT(e,t){for(let r=0;r<t;r++){let i=e[r];if(kW(i.parent.type,i.parentKey))return!0}return!1}var RT=Symbol();function LW(e){return Rc(this,e,new Map)}function Rc(e,t,r){let i={this:FT(e),target:FT(t)};if(i.target.node!==i.this.node)return BW(e,i.target,r);let s={target:t.getAncestry(),this:e.getAncestry()};if(s.target.includes(e))return"after";if(s.this.includes(t))return"before";let n,a={target:0,this:0};for(;!n&&a.this<s.this.length;){let c=s.this[a.this];a.target=s.target.indexOf(c),a.target>=0?n=c:a.this++}if(!n)throw new Error("Internal Babel error - The two compared nodes don't appear to belong to the same program.");if(jT(s.this,a.this-1)||jT(s.target,a.target-1))return"unknown";let o={this:s.this[a.this-1],target:s.target[a.target-1]};if(o.target.listKey&&o.this.listKey&&o.target.container===o.this.container)return o.target.key>o.this.key?"before":"after";let l=yW[n.type],u={this:l.indexOf(o.this.parentKey),target:l.indexOf(o.target.parentKey)};return u.target>u.this?"before":"after"}function MW(e,t,r){if(t.isFunctionDeclaration()){if(t.parentPath.isExportDeclaration())return"unknown"}else return Rc(e,t,r)==="before"?"before":"unknown";let i=t.scope.getBinding(t.node.id.name);if(!i.references)return"before";let s=i.referencePaths,n;for(let a of s){if(!!a.find(u=>u.node===t.node))continue;if(a.key!=="callee"||!a.parentPath.isCallExpression())return"unknown";let l=Rc(e,a,r);if(n&&n!==l)return"unknown";n=l}return n}function BW(e,t,r){let i=r.get(e.node),s;if(!i)r.set(e.node,i=new Map);else if(s=i.get(t.node))return s===RT?"unknown":s;i.set(t.node,RT);let n=MW(e,t,r);return i.set(t.node,n),n}function FW(e,t){return UT.call(this,e,t)||this}function UT(e,t){var r;if(!((r=t)!=null&&r.includes(this)))if(t=t||[],t.push(this),this.isVariableDeclarator()){if(this.get("id").isIdentifier())return this.get("init").resolve(e,t)}else if(this.isReferencedIdentifier()){let i=this.scope.getBinding(this.node.name);if(!i||!i.constant||i.kind==="module")return;if(i.path!==this){let s=i.path.resolve(e,t);return this.find(n=>n.node===s.node)?void 0:s}}else{if(this.isTypeCastExpression())return this.get("expression").resolve(e,t);if(e&&this.isMemberExpression()){let i=this.toComputedKey();if(!bW(i))return;let s=i.value,n=this.get("object").resolve(e,t);if(n.isObjectExpression()){let a=n.get("properties");for(let o of a){if(!o.isProperty())continue;let l=o.get("key"),u=o.isnt("computed")&&l.isIdentifier({name:s});if(u=u||l.isLiteral({value:s}),u)return o.get("value").resolve(e,t)}}else if(n.isArrayExpression()&&!isNaN(+s)){let o=n.get("elements")[s];if(o)return o.resolve(e,t)}}}}function jW(){if(this.isIdentifier()){let e=this.scope.getBinding(this.node.name);return e?e.constant:!1}if(this.isLiteral())return this.isRegExpLiteral()?!1:this.isTemplateLiteral()?this.get("expressions").every(e=>e.isConstantExpression()):!0;if(this.isUnaryExpression())return this.node.operator!=="void"?!1:this.get("argument").isConstantExpression();if(this.isBinaryExpression()){let{operator:e}=this.node;return e!=="in"&&e!=="instanceof"&&this.get("left").isConstantExpression()&&this.get("right").isConstantExpression()}return this.isMemberExpression()?!this.node.computed&&this.get("object").isIdentifier({name:"Symbol"})&&!this.scope.hasBinding("Symbol",{noGlobals:!0}):this.isCallExpression()?this.node.arguments.length===1&&this.get("callee").matchesPattern("Symbol.for")&&!this.scope.hasBinding("Symbol",{noGlobals:!0})&&this.get("arguments")[0].isStringLiteral():!1}function RW(){return!!(this.isProgram()?this:this.parentPath).find(r=>{if(r.isProgram({sourceType:"module"})||r.isClass())return!0;if(r.isArrowFunctionExpression()&&!r.get("body").isBlockStatement())return!1;let i;if(r.isFunction())i=r.node.body;else if(r.isProgram())i=r.node;else return!1;for(let s of i.directives)if(s.value.value==="use strict")return!0})}});var JT=A(rt=>{"use strict";Object.defineProperty(rt,"__esModule",{value:!0});rt._getKey=YT;rt._getPattern=XT;rt.get=rY;rt.getAllNextSiblings=eY;rt.getAllPrevSiblings=tY;rt.getAssignmentIdentifiers=iY;rt.getBindingIdentifierPaths=aY;rt.getBindingIdentifiers=sY;rt.getCompletionRecords=GW;rt.getNextSibling=ZW;rt.getOpposite=JW;rt.getOuterBindingIdentifierPaths=oY;rt.getOuterBindingIdentifiers=nY;rt.getPrevSibling=QW;rt.getSibling=zW;var Uc=Nr(),qW=de(),{getAssignmentIdentifiers:UW,getBindingIdentifiers:WT,getOuterBindingIdentifiers:VW,numericLiteral:KW,unaryExpression:WW}=qW,Vc=0,Ps=1;function YW(e){return{type:Vc,path:e}}function XW(e){return{type:Ps,path:e}}function JW(){return this.key==="left"?this.getSibling("right"):this.key==="right"?this.getSibling("left"):null}function vi(e,t,r){return e&&t.push(...Ci(e,r)),t}function $W(e,t,r){let i=[];for(let s=0;s<e.length;s++){let n=e[s],a=Ci(n,r),o=[],l=[];for(let u of a)u.type===Vc&&o.push(u),u.type===Ps&&l.push(u);o.length&&(i=o),t.push(...l)}return t.push(...i),t}function HW(e){e.forEach(t=>{t.type=Ps})}function qc(e,t){e.forEach(r=>{r.path.isBreakStatement({label:null})&&(t?r.path.replaceWith(WW("void",KW(0))):r.path.remove())})}function KT(e,t){let r=[];if(t.canHaveBreak){let i=[];for(let s=0;s<e.length;s++){let n=e[s],a=Object.assign({},t,{inCaseClause:!1});n.isBlockStatement()&&(t.inCaseClause||t.shouldPopulateBreak)?a.shouldPopulateBreak=!0:a.shouldPopulateBreak=!1;let o=Ci(n,a);if(o.length>0&&o.every(l=>l.type===Ps)){i.length>0&&o.every(l=>l.path.isBreakStatement({label:null}))?(HW(i),r.push(...i),i.some(l=>l.path.isDeclaration())&&(r.push(...o),qc(o,!0)),qc(o,!1)):(r.push(...o),t.shouldPopulateBreak||qc(o,!0));break}if(s===e.length-1)r.push(...o);else{i=[];for(let l=0;l<o.length;l++){let u=o[l];u.type===Ps&&r.push(u),u.type===Vc&&i.push(u)}}}}else if(e.length)for(let i=e.length-1;i>=0;i--){let s=Ci(e[i],t);if(s.length>1||s.length===1&&!s[0].path.isVariableDeclaration()){r.push(...s);break}}return r}function Ci(e,t){let r=[];if(e.isIfStatement())r=vi(e.get("consequent"),r,t),r=vi(e.get("alternate"),r,t);else{if(e.isDoExpression()||e.isFor()||e.isWhile()||e.isLabeledStatement())return vi(e.get("body"),r,t);if(e.isProgram()||e.isBlockStatement())return KT(e.get("body"),t);if(e.isFunction())return Ci(e.get("body"),t);if(e.isTryStatement())r=vi(e.get("block"),r,t),r=vi(e.get("handler"),r,t);else{if(e.isCatchClause())return vi(e.get("body"),r,t);if(e.isSwitchStatement())return $W(e.get("cases"),r,t);if(e.isSwitchCase())return KT(e.get("consequent"),{canHaveBreak:!0,shouldPopulateBreak:!1,inCaseClause:!0});e.isBreakStatement()?r.push(XW(e)):r.push(YW(e))}}return r}function GW(){return Ci(this,{canHaveBreak:!1,shouldPopulateBreak:!1,inCaseClause:!1}).map(t=>t.path)}function zW(e){return Uc.default.get({parentPath:this.parentPath,parent:this.parent,container:this.container,listKey:this.listKey,key:e}).setContext(this.context)}function QW(){return this.getSibling(this.key-1)}function ZW(){return this.getSibling(this.key+1)}function eY(){let e=this.key,t=this.getSibling(++e),r=[];for(;t.node;)r.push(t),t=this.getSibling(++e);return r}function tY(){let e=this.key,t=this.getSibling(--e),r=[];for(;t.node;)r.push(t),t=this.getSibling(--e);return r}function rY(e,t=!0){t===!0&&(t=this.context);let r=e.split(".");return r.length===1?YT.call(this,e,t):XT.call(this,r,t)}function YT(e,t){let r=this.node,i=r[e];return Array.isArray(i)?i.map((s,n)=>Uc.default.get({listKey:e,parentPath:this,parent:r,container:i,key:n}).setContext(t)):Uc.default.get({parentPath:this,parent:r,container:r,key:e}).setContext(t)}function XT(e,t){let r=this;for(let i of e)i==="."?r=r.parentPath:Array.isArray(r)?r=r[i]:r=r.get(i,t);return r}function iY(){return UW(this.node)}function sY(e){return WT(this.node,e)}function nY(e){return VW(this.node,e)}function aY(e=!1,t=!1){let i=[this],s=Object.create(null);for(;i.length;){let n=i.shift();if(!n||!n.node)continue;let a=WT.keys[n.node.type];if(n.isIdentifier()){e?(s[n.node.name]=s[n.node.name]||[]).push(n):s[n.node.name]=n;continue}if(n.isExportDeclaration()){let o=n.get("declaration");o.isDeclaration()&&i.push(o);continue}if(t){if(n.isFunctionDeclaration()){i.push(n.get("id"));continue}if(n.isFunctionExpression())continue}if(a)for(let o=0;o<a.length;o++){let l=a[o],u=n.get(l);Array.isArray(u)?i.push(...u):u.node&&i.push(u)}}return s}function oY(e=!1){return this.getBindingIdentifierPaths(e,!0)}});var HT=A(As=>{"use strict";Object.defineProperty(As,"__esModule",{value:!0});As.addComment=fY;As.addComments=hY;As.shareCommentsWithSiblings=pY;var lY=de(),{addComment:uY,addComments:cY}=lY;function pY(){if(typeof this.key=="string")return;let e=this.node;if(!e)return;let t=e.trailingComments,r=e.leadingComments;if(!t&&!r)return;let i=this.getSibling(this.key-1),s=this.getSibling(this.key+1),n=!!i.node,a=!!s.node;n&&(r&&i.addComments("trailing",$T(r,i.node.trailingComments)),t&&!a&&i.addComments("trailing",t)),a&&(t&&s.addComments("leading",$T(t,s.node.leadingComments)),r&&!n&&s.addComments("leading",r))}function $T(e,t){if(!(t!=null&&t.length))return e;let r=new Set(t);return e.filter(i=>!r.has(i))}function fY(e,t,r){uY(this.node,e,t,r)}function hY(e,t){cY(this.node,e,t)}});var Nr=A(Zt=>{"use strict";Object.defineProperty(Zt,"__esModule",{value:!0});Zt.default=Zt.SHOULD_STOP=Zt.SHOULD_SKIP=Zt.REMOVED=void 0;var dY=iu(),mY=Jh(),yY=us(),TY=yu(),QT=de(),aa=QT,gY=Yr(),bY=_m(),zt=Dm(),Ii=Qm(),wi=hc(),GT=mT(),ei=BT(),$e=VT(),ZT=Ht(),Xe=ZT,Oi=Qn(),Qt=Zn(),Tt=JT(),Kc=HT(),SY=uu(),{validate:xY}=QT,zT=mY("babel"),hz=Zt.REMOVED=1,dz=Zt.SHOULD_STOP=2,mz=Zt.SHOULD_SKIP=4,hr=Zt.default=class e0{constructor(t,r){this.contexts=[],this.state=null,this.opts=null,this._traverseFlags=0,this.skipKeys=null,this.parentPath=null,this.container=null,this.listKey=null,this.key=null,this.node=null,this.type=null,this.parent=r,this.hub=t,this.data=null,this.context=null,this.scope=null}get removed(){return(this._traverseFlags&1)>0}set removed(t){t?this._traverseFlags|=1:this._traverseFlags&=-2}get shouldStop(){return(this._traverseFlags&2)>0}set shouldStop(t){t?this._traverseFlags|=2:this._traverseFlags&=-3}get shouldSkip(){return(this._traverseFlags&4)>0}set shouldSkip(t){t?this._traverseFlags|=4:this._traverseFlags&=-5}static get({hub:t,parentPath:r,parent:i,container:s,listKey:n,key:a}){if(!t&&r&&(t=r.hub),!i)throw new Error("To get a node path the parent needs to exist");let o=s[a],l=gY.getOrCreateCachedPaths(t,i),u=l.get(o);return u||(u=new e0(t,i),o&&l.set(o,u)),ZT.setup.call(u,r,s,n,a),u}getScope(t){return this.isScope()?new TY.default(this):t}setData(t,r){return this.data==null&&(this.data=Object.create(null)),this.data[t]=r}getData(t,r){this.data==null&&(this.data=Object.create(null));let i=this.data[t];return i===void 0&&r!==void 0&&(i=this.data[t]=r),i}hasNode(){return this.node!=null}buildCodeFrameError(t,r=SyntaxError){return this.hub.buildError(this.node,t,r)}traverse(t,r){(0,yY.default)(this.node,t,this.scope,r,this)}set(t,r){xY(this.node,t,r),this.node[t]=r}getPathLocation(){let t=[],r=this;do{let i=r.key;r.inList&&(i=`${r.listKey}[${i}]`),t.unshift(i)}while(r=r.parentPath);return t.join(".")}debug(t){zT.enabled&&zT(`${this.getPathLocation()} ${this.type}: ${t}`)}toString(){return(0,bY.default)(this.node).code}get inList(){return!!this.listKey}set inList(t){t||(this.listKey=null)}get parentKey(){return this.listKey||this.key}},EY={findParent:zt.findParent,find:zt.find,getFunctionParent:zt.getFunctionParent,getStatementParent:zt.getStatementParent,getEarliestCommonAncestorFrom:zt.getEarliestCommonAncestorFrom,getDeepestCommonAncestorFrom:zt.getDeepestCommonAncestorFrom,getAncestry:zt.getAncestry,isAncestor:zt.isAncestor,isDescendant:zt.isDescendant,inType:zt.inType,getTypeAnnotation:Ii.getTypeAnnotation,isBaseType:Ii.isBaseType,couldBeBaseType:Ii.couldBeBaseType,baseTypeStrictlyMatches:Ii.baseTypeStrictlyMatches,isGenericType:Ii.isGenericType,replaceWithMultiple:wi.replaceWithMultiple,replaceWithSourceString:wi.replaceWithSourceString,replaceWith:wi.replaceWith,replaceExpressionWithStatements:wi.replaceExpressionWithStatements,replaceInline:wi.replaceInline,evaluateTruthy:GT.evaluateTruthy,evaluate:GT.evaluate,toComputedKey:ei.toComputedKey,ensureBlock:ei.ensureBlock,unwrapFunctionEnvironment:ei.unwrapFunctionEnvironment,arrowFunctionToExpression:ei.arrowFunctionToExpression,splitExportDeclaration:ei.splitExportDeclaration,ensureFunctionName:ei.ensureFunctionName,matchesPattern:$e.matchesPattern,isStatic:$e.isStatic,isNodeType:$e.isNodeType,canHaveVariableDeclarationOrExpression:$e.canHaveVariableDeclarationOrExpression,canSwapBetweenExpressionAndStatement:$e.canSwapBetweenExpressionAndStatement,isCompletionRecord:$e.isCompletionRecord,isStatementOrBlock:$e.isStatementOrBlock,referencesImport:$e.referencesImport,getSource:$e.getSource,willIMaybeExecuteBefore:$e.willIMaybeExecuteBefore,_guessExecutionStatusRelativeTo:$e._guessExecutionStatusRelativeTo,resolve:$e.resolve,isConstantExpression:$e.isConstantExpression,isInStrictMode:$e.isInStrictMode,isDenylisted:Xe.isDenylisted,visit:Xe.visit,skip:Xe.skip,skipKey:Xe.skipKey,stop:Xe.stop,setContext:Xe.setContext,requeue:Xe.requeue,requeueComputedKeyAndDecorators:Xe.requeueComputedKeyAndDecorators,remove:Oi.remove,insertBefore:Qt.insertBefore,insertAfter:Qt.insertAfter,unshiftContainer:Qt.unshiftContainer,pushContainer:Qt.pushContainer,getOpposite:Tt.getOpposite,getCompletionRecords:Tt.getCompletionRecords,getSibling:Tt.getSibling,getPrevSibling:Tt.getPrevSibling,getNextSibling:Tt.getNextSibling,getAllNextSiblings:Tt.getAllNextSiblings,getAllPrevSiblings:Tt.getAllPrevSiblings,get:Tt.get,getAssignmentIdentifiers:Tt.getAssignmentIdentifiers,getBindingIdentifiers:Tt.getBindingIdentifiers,getOuterBindingIdentifiers:Tt.getOuterBindingIdentifiers,getBindingIdentifierPaths:Tt.getBindingIdentifierPaths,getOuterBindingIdentifierPaths:Tt.getOuterBindingIdentifierPaths,shareCommentsWithSiblings:Kc.shareCommentsWithSiblings,addComment:Kc.addComment,addComments:Kc.addComments};Object.assign(hr.prototype,EY);hr.prototype.arrowFunctionToShadowed=ei.arrowFunctionToShadowed,Object.assign(hr.prototype,{has:$e.has,is:$e.is,isnt:$e.isnt,equals:$e.equals,hoist:Qt.hoist,updateSiblingKeys:Qt.updateSiblingKeys,call:Xe.call,isBlacklisted:Xe.isBlacklisted,setScope:Xe.setScope,resync:Xe.resync,popContext:Xe.popContext,pushContext:Xe.pushContext,setup:Xe.setup,setKey:Xe.setKey});hr.prototype._guessExecutionStatusRelativeToDifferentFunctions=$e._guessExecutionStatusRelativeTo,hr.prototype._guessExecutionStatusRelativeToDifferentFunctions=$e._guessExecutionStatusRelativeTo,Object.assign(hr.prototype,{_getTypeAnnotation:Ii._getTypeAnnotation,_replaceWith:wi._replaceWith,_resolve:$e._resolve,_call:Xe._call,_resyncParent:Xe._resyncParent,_resyncKey:Xe._resyncKey,_resyncList:Xe._resyncList,_resyncRemoved:Xe._resyncRemoved,_getQueueContexts:Xe._getQueueContexts,_removeFromScope:Oi._removeFromScope,_callRemovalHooks:Oi._callRemovalHooks,_remove:Oi._remove,_markRemoved:Oi._markRemoved,_assertUnremoved:Oi._assertUnremoved,_containerInsert:Qt._containerInsert,_containerInsertBefore:Qt._containerInsertBefore,_containerInsertAfter:Qt._containerInsertAfter,_verifyNodeList:Qt._verifyNodeList,_getKey:Tt._getKey,_getPattern:Tt._getPattern});for(let e of aa.TYPES){let t=`is${e}`,r=aa[t];hr.prototype[t]=function(i){return r(this.node,i)},hr.prototype[`assert${e}`]=function(i){if(!r(this.node,i))throw new TypeError(`Expected node path of type ${e}`)}}Object.assign(hr.prototype,SY);for(let e of Object.keys(dY))e[0]!=="_"&&(aa.TYPES.includes(e)||aa.TYPES.push(e))});var t0=A(oa=>{"use strict";Object.defineProperty(oa,"__esModule",{value:!0});oa.default=void 0;var PY=Nr(),AY=de(),Wc=Ht(),{VISITOR_KEYS:vY}=AY,Yc=class{constructor(t,r,i,s){this.queue=null,this.priorityQueue=null,this.parentPath=s,this.scope=t,this.state=i,this.opts=r}shouldVisit(t){let r=this.opts;if(r.enter||r.exit||r[t.type])return!0;let i=vY[t.type];if(!(i!=null&&i.length))return!1;for(let s of i)if(t[s])return!0;return!1}create(t,r,i,s){return PY.default.get({parentPath:this.parentPath,parent:t,container:r,key:i,listKey:s})}maybeQueue(t,r){this.queue&&(r?this.queue.push(t):this.priorityQueue.push(t))}visitMultiple(t,r,i){if(t.length===0)return!1;let s=[];for(let n=0;n<t.length;n++){let a=t[n];a&&this.shouldVisit(a)&&s.push(this.create(r,t,n,i))}return this.visitQueue(s)}visitSingle(t,r){return this.shouldVisit(t[r])?this.visitQueue([this.create(t,t,r)]):!1}visitQueue(t){this.queue=t,this.priorityQueue=[];let r=new WeakSet,i=!1,s=0;for(;s<t.length;){let n=t[s];if(s++,Wc.resync.call(n),(n.contexts.length===0||n.contexts[n.contexts.length-1]!==this)&&Wc.pushContext.call(n,this),n.key===null)continue;let{node:a}=n;if(!r.has(a)){if(a&&r.add(a),n.visit()){i=!0;break}if(this.priorityQueue.length&&(i=this.visitQueue(this.priorityQueue),this.priorityQueue=[],this.queue=t,i))break}}for(let n=0;n<s;n++)Wc.popContext.call(t[n]);return this.queue=null,i}visit(t,r){let i=t[r];return i?Array.isArray(i)?this.visitMultiple(i,t,r):this.visitSingle(t,r):!1}};oa.default=Yc});var Tn=A(Xc=>{"use strict";Object.defineProperty(Xc,"__esModule",{value:!0});Xc.traverseNode=OY;var CY=t0(),IY=de(),{VISITOR_KEYS:wY}=IY;function OY(e,t,r,i,s,n,a){let o=wY[e.type];if(!o)return!1;let l=new CY.default(r,t,i,s);if(a)return n!=null&&n[s.parentKey]?!1:l.visitQueue([s]);for(let u of o)if(!(n!=null&&n[u])&&l.visit(e,u))return!0;return!1}});var Ht=A(Re=>{"use strict";Object.defineProperty(Re,"__esModule",{value:!0});Re._call=$c;Re._getQueueContexts=YY;Re._resyncKey=o0;Re._resyncList=l0;Re._resyncParent=a0;Re._resyncRemoved=RY;Re.call=Jc;Re.isDenylisted=s0;Re.popContext=qY;Re.pushContext=UY;Re.requeue=KY;Re.requeueComputedKeyAndDecorators=WY;Re.resync=jY;Re.setContext=FY;Re.setKey=la;Re.setScope=n0;Re.setup=VY;Re.skip=LY;Re.skipKey=MY;Re.stop=BY;Re.visit=kY;var NY=Tn(),r0=Nr(),_Y=Qn(),DY=de();function Jc(e){let t=this.opts;if(this.debug(e),this.node&&$c.call(this,t[e]))return!0;if(this.node){var r;return $c.call(this,(r=t[this.node.type])==null?void 0:r[e])}return!1}function $c(e){if(!e)return!1;for(let t of e){if(!t)continue;let r=this.node;if(!r)return!0;let i=t.call(this.state,this,this.state);if(i&&typeof i=="object"&&typeof i.then=="function")throw new Error("You appear to be using a plugin with an async traversal visitor, which your current version of Babel does not support. If you're using a published plugin, you may need to upgrade your @babel/core version.");if(i)throw new Error(`Unexpected return value from visitor method ${t}`);if(this.node!==r||this._traverseFlags>0)return!0}return!1}function s0(){var e;let t=(e=this.opts.denylist)!=null?e:this.opts.blacklist;return t&&t.indexOf(this.node.type)>-1}Re.isBlacklisted=s0;function i0(e,t){e.context!==t&&(e.context=t,e.state=t.state,e.opts=t.opts)}function kY(){var e,t;if(!this.node||this.isDenylisted()||(e=(t=this.opts).shouldSkip)!=null&&e.call(t,this))return!1;let r=this.context;return this.shouldSkip||Jc.call(this,"enter")?(this.debug("Skip..."),this.shouldStop):(i0(this,r),this.debug("Recursing into..."),this.shouldStop=(0,NY.traverseNode)(this.node,this.opts,this.scope,this.state,this,this.skipKeys),i0(this,r),Jc.call(this,"exit"),this.shouldStop)}function LY(){this.shouldSkip=!0}function MY(e){this.skipKeys==null&&(this.skipKeys={}),this.skipKeys[e]=!0}function BY(){this._traverseFlags|=r0.SHOULD_SKIP|r0.SHOULD_STOP}function n0(){var e,t;if((e=this.opts)!=null&&e.noScope)return;let r=this.parentPath;((this.key==="key"||this.listKey==="decorators")&&r.isMethod()||this.key==="discriminant"&&r.isSwitchStatement())&&(r=r.parentPath);let i;for(;r&&!i;){var s;if((s=r.opts)!=null&&s.noScope)return;i=r.scope,r=r.parentPath}this.scope=this.getScope(i),(t=this.scope)==null||t.init()}function FY(e){return this.skipKeys!=null&&(this.skipKeys={}),this._traverseFlags=0,e&&(this.context=e,this.state=e.state,this.opts=e.opts),n0.call(this),this}function jY(){this.removed||(a0.call(this),l0.call(this),o0.call(this))}function a0(){this.parentPath&&(this.parent=this.parentPath.node)}function o0(){if(this.container&&this.node!==this.container[this.key]){if(Array.isArray(this.container)){for(let e=0;e<this.container.length;e++)if(this.container[e]===this.node){la.call(this,e);return}}else for(let e of Object.keys(this.container))if(this.container[e]===this.node){la.call(this,e);return}this.key=null}}function l0(){if(!this.parent||!this.inList)return;let e=this.parent[this.listKey];this.container!==e&&(this.container=e||null)}function RY(){(this.key==null||!this.container||this.container[this.key]!==this.node)&&_Y._markRemoved.call(this)}function qY(){this.contexts.pop(),this.contexts.length>0?this.setContext(this.contexts[this.contexts.length-1]):this.setContext(void 0)}function UY(e){this.contexts.push(e),this.setContext(e)}function VY(e,t,r,i){this.listKey=r,this.container=t,this.parentPath=e||this.parentPath,la.call(this,i)}function la(e){var t;this.key=e,this.node=this.container[this.key],this.type=(t=this.node)==null?void 0:t.type}function KY(e=this){if(e.removed)return;let t=this.contexts;for(let r of t)r.maybeQueue(e)}function WY(){let{context:e,node:t}=this;if(!DY.isPrivate(t)&&t.computed&&e.maybeQueue(this.get("key")),t.decorators)for(let r of this.get("decorators"))e.maybeQueue(r)}function YY(){let e=this,t=this.contexts;for(;!t.length&&(e=e.parentPath,!!e);)t=e.contexts;return t}});var u0=A(ua=>{"use strict";Object.defineProperty(ua,"__esModule",{value:!0});ua.default=void 0;var Hc=class{getCode(){}getScope(){}addHelper(){throw new Error("Helpers are not supported by the default hub.")}buildError(t,r,i=TypeError){return new i(r)}};ua.default=Hc});var us=A(dr=>{"use strict";Object.defineProperty(dr,"__esModule",{value:!0});Object.defineProperty(dr,"Hub",{enumerable:!0,get:function(){return GY.default}});Object.defineProperty(dr,"NodePath",{enumerable:!0,get:function(){return $Y.default}});Object.defineProperty(dr,"Scope",{enumerable:!0,get:function(){return HY.default}});dr.visitors=dr.default=void 0;Ht();var vs=os();dr.visitors=vs;var XY=de(),JY=Yr(),c0=Tn(),$Y=Nr(),HY=yu(),GY=u0(),{VISITOR_KEYS:zY,removeProperties:QY,traverseFast:p0}=XY;function Mt(e,t={},r,i,s,n){if(e){if(!t.noScope&&!r&&e.type!=="Program"&&e.type!=="File")throw new Error(`You must pass a scope and parentPath unless traversing a Program/File. Instead of that you tried to traverse a ${e.type} node without passing scope and parentPath.`);if(!s&&n)throw new Error("visitSelf can only be used when providing a NodePath.");zY[e.type]&&(vs.explode(t),(0,c0.traverseNode)(e,t,r,i,s,null,n))}}var xz=dr.default=Mt;Mt.visitors=vs;Mt.verify=vs.verify;Mt.explode=vs.explode;Mt.cheap=function(e,t){p0(e,t)};Mt.node=function(e,t,r,i,s,n){(0,c0.traverseNode)(e,t,r,i,s,n)};Mt.clearNode=function(e,t){QY(e,t)};Mt.removeProperties=function(e,t){return p0(e,Mt.clearNode,t),e};function ZY(e,t){e.node.type===t.type&&(t.has=!0,e.stop())}Mt.hasType=function(e,t,r){if(r!=null&&r.includes(e.type))return!1;if(e.type===t)return!0;let i={has:!1,type:t};return Mt(e,{noScope:!0,denylist:r,enter:ZY},null,i),i.has};Mt.cache=JY});import{writeFile as pX}from"node:fs/promises";var eX=sp(Rs(),1),_e=sp(de(),1);import{isNullish as Gc,nonNullish as tX}from"@dfinity/utils";import{readFile as rX}from"node:fs/promises";var{parse:iX}=eX,sX={sourceType:"module",plugins:["typescript"]},f0=async({inputFile:e})=>{let t=await rX(e,"utf-8"),r=iX(t,sX),i=[],s=[],n=[],{default:a}=us();return a(r,{TSInterfaceDeclaration(o){if(o.node.id.name==="_SERVICE"){let l=o.node.body.body;for(let u of l)if(u.type==="TSMethodSignature"||u.type==="TSPropertySignature"){let c=nX(u);tX(c)&&i.push(c)}}else s.push(o.node.id.name)},TSTypeAliasDeclaration(o){n.push(o.node.id.name)}}),{methods:i,imports:[...s,...n]}},Cs=e=>Gc(e)?"unknown":(0,_e.isTSTypeReference)(e)?e.typeName?.name??"unknown":(0,_e.isTSStringKeyword)(e)?"string":(0,_e.isTSNumberKeyword)(e)?"number":(0,_e.isTSBooleanKeyword)(e)?"boolean":(0,_e.isTSBigIntKeyword)(e)?"bigint":(0,_e.isTSSymbolKeyword)(e)?"symbol":(0,_e.isTSNullKeyword)(e)?"null":(0,_e.isTSUndefinedKeyword)(e)?"undefined":(0,_e.isTSVoidKeyword)(e)?"void":(0,_e.isTSNeverKeyword)(e)?"never":(0,_e.isTSUnknownKeyword)(e)?"unknown":(0,_e.isTSAnyKeyword)(e)?"any":(0,_e.isTSObjectKeyword)(e)?"object":(0,_e.isTSTupleType)(e)?`[${e.elementTypes.map(Cs).join(", ")}]`:(0,_e.isTSArrayType)(e)?`${Cs(e.elementType)}[]`:"unknown",nX=e=>{let{type:t,key:r}=e,s=(()=>{if(r.type==="Identifier")return r.name;if(r.type==="StringLiteral")return r.value})();if(Gc(s)||t!=="TSPropertySignature")return;let n=e.typeAnnotation?.typeAnnotation;if(!(0,_e.isTSTypeReference)(n)||n.typeName?.name!=="ActorMethod"||Gc(n.typeParameters))return;let[o,l]=n.typeParameters.params,u=(0,_e.isTSTupleType)(o)?o.elementTypes.map(Cs):[Cs(o)];return{name:s,paramsType:u,returnType:Cs(l)}};var aX=`// This file was automatically generated by the Juno CLI.
|
|
3
|
+
var y=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(r,n)=>(typeof require<"u"?require:r)[n]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});import{writeFile as B}from"node:fs/promises";import*as M from"@babel/parser";import{isTSAnyKeyword as g,isTSArrayType as E,isTSBigIntKeyword as A,isTSBooleanKeyword as O,isTSNeverKeyword as _,isTSNullKeyword as h,isTSNumberKeyword as D,isTSObjectKeyword as w,isTSStringKeyword as N,isTSSymbolKeyword as P,isTSTupleType as T,isTSTypeReference as l,isTSUndefinedKeyword as b,isTSUnknownKeyword as I,isTSVoidKeyword as R}from"@babel/types";import{isNullish as c,nonNullish as L}from"@dfinity/utils";import{readFile as H}from"node:fs/promises";var{parse:K}=M,j={sourceType:"module",plugins:["typescript"]},f=async({inputFile:e})=>{let r=await H(e,"utf-8"),n=K(r,j),p=[],a=[],s=[],{default:m}=y("@babel/traverse");return m(n,{TSInterfaceDeclaration(i){if(i.node.id.name==="_SERVICE"){let t=i.node.body.body;for(let o of t)if(o.type==="TSMethodSignature"||o.type==="TSPropertySignature"){let d=C(o);L(d)&&p.push(d)}}else a.push(i.node.id.name)},TSTypeAliasDeclaration(i){s.push(i.node.id.name)}}),{methods:p,imports:[...a,...s]}},u=e=>c(e)?"unknown":l(e)?e.typeName?.name??"unknown":N(e)?"string":D(e)?"number":O(e)?"boolean":A(e)?"bigint":P(e)?"symbol":h(e)?"null":b(e)?"undefined":R(e)?"void":_(e)?"never":I(e)?"unknown":g(e)?"any":w(e)?"object":T(e)?`[${e.elementTypes.map(u).join(", ")}]`:E(e)?`${u(e.elementType)}[]`:"unknown",C=e=>{let{type:r,key:n}=e,a=(()=>{if(n.type==="Identifier")return n.name;if(n.type==="StringLiteral")return n.value})();if(c(a)||r!=="TSPropertySignature")return;let s=e.typeAnnotation?.typeAnnotation;if(!l(s)||s.typeName?.name!=="ActorMethod"||c(s.typeParameters))return;let[i,t]=s.typeParameters.params,o=T(i)?i.elementTypes.map(u):[u(i)];return{name:a,paramsType:o,returnType:u(t)}};var x=`// This file was automatically generated by the Juno CLI.
|
|
57
4
|
// Any modifications may be overwritten.
|
|
58
5
|
%IMPORT%
|
|
59
6
|
import {idlFactory} from './satellite.factory.did.js';
|
|
60
7
|
import {getSatelliteExtendedActor} from '@junobuild/%CORE_LIB%';
|
|
61
8
|
|
|
62
9
|
%METHODS%
|
|
63
|
-
`,
|
|
10
|
+
`,v=`export const %METHOD_NAME% = async (%PARAMS%): Promise<%METHOD_RESULT%> => {
|
|
64
11
|
const {%DID_METHOD_NAME%} = await getSatelliteExtendedActor<SatelliteActor>({
|
|
65
12
|
idlFactory
|
|
66
13
|
});
|
|
67
14
|
|
|
68
15
|
return await %DID_METHOD_NAME%(%CALL_PARAMS%);
|
|
69
|
-
}`,
|
|
16
|
+
}`,F=`export const %METHOD_NAME% = async (%CALL_PARAMS%) => {
|
|
70
17
|
const {%DID_METHOD_NAME%} = await getSatelliteExtendedActor({
|
|
71
18
|
idlFactory
|
|
72
19
|
});
|
|
73
20
|
|
|
74
21
|
return await %DID_METHOD_NAME%(%CALL_PARAMS%);
|
|
75
|
-
}
|
|
76
|
-
import type {_SERVICE as SatelliteActor%IMPORTS%} from './satellite.did';`,
|
|
22
|
+
}`,$=`
|
|
23
|
+
import type {_SERVICE as SatelliteActor%IMPORTS%} from './satellite.did';`,S=({methods:e,imports:r,transformerOptions:{coreLib:n,outputLanguage:p}})=>{let a=p==="js"?F:v,s=e.map(m=>{let i=k(m),t=a;return Object.entries(i).map(([o,d])=>{t=t.replaceAll(`%${o}%`,d)}),t}).join(`
|
|
77
24
|
|
|
78
|
-
`);return
|
|
25
|
+
`);return x.replace("%CORE_LIB%",n??"core").replace("%METHODS%",s).replace("%IMPORT%",p==="js"?"":$.replace("%IMPORTS%",r.length===0?"":`, ${r.join(", ")}`)).trim()},k=({name:e,returnType:r,paramsType:n})=>{let a=(t=>t.replace(/_./g,o=>o[1].toUpperCase()))(e),s=n.map((t,o)=>({param:`value${o}`,type:t})),m=`${s.map(({param:t})=>t).join(", ")}`,i=s.map(({param:t,type:o})=>`${t}: ${o}`).join(", ");return{METHOD_NAME:a,DID_METHOD_NAME:e,METHOD_RESULT:r,PARAMS:i,CALL_PARAMS:m}};var Y=async({inputFile:e,outputFile:r,transformerOptions:n})=>{let p=await f({inputFile:e}),a=S({...p,transformerOptions:n});await B(r,a,"utf-8")};export{Y as generateApi};
|
|
79
26
|
//# sourceMappingURL=index.mjs.map
|