web-dc-api 0.1.2 → 0.1.3

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.
Files changed (46) hide show
  1. package/dist/cjs/babel-tools-BoLJtxtW.js +1 -0
  2. package/dist/cjs/cache-CRG9ugF3.js +1 -0
  3. package/dist/cjs/helia-core-B1Xqha7a.js +1 -0
  4. package/dist/cjs/helia-core-D8Uv1KjQ.js +1 -0
  5. package/dist/cjs/{index-B9UlHr3P.js → index-DtuGISOe.js} +1 -1
  6. package/dist/cjs/index.js +1 -1
  7. package/dist/cjs/{jwt-CcLVpKo_.js → jwt-DW2WimlW.js} +1 -1
  8. package/dist/cjs/polkadot-api-7PhQf3ws.js +1 -0
  9. package/dist/cjs/polkadot-api-CtrJVWuZ.js +1 -0
  10. package/dist/cjs/protobuf-BYUoud7y.js +1 -0
  11. package/dist/cjs/{validation-DfsHeOHP.js → validation-DPN2BqQd.js} +1 -1
  12. package/dist/dc.min.js +1 -1
  13. package/dist/esm/chunks/babel-tools-sSecqeD4.js +1 -0
  14. package/dist/esm/chunks/cache-C0pUsIbC.js +1 -0
  15. package/dist/esm/chunks/helia-core-BxMqyK2Y.js +1 -0
  16. package/dist/esm/chunks/helia-core-DMXRpcO-.js +1 -0
  17. package/dist/esm/chunks/{index-BUlGxni-.js → index-CsnoYfJo.js} +1 -1
  18. package/dist/esm/chunks/{jwt-DLILrtNW.js → jwt-DfD7pIy4.js} +1 -1
  19. package/dist/esm/chunks/polkadot-api-5Y9Bw8VT.js +1 -0
  20. package/dist/esm/chunks/polkadot-api-D69Ioun_.js +1 -0
  21. package/dist/esm/chunks/protobuf-25futi__.js +1 -0
  22. package/dist/esm/chunks/{validation-D9YLFwug.js → validation-C90ZcLFM.js} +1 -1
  23. package/dist/esm/index.js +1 -1
  24. package/dist/index.d.ts +3 -2
  25. package/lib/common/define.ts +1 -1
  26. package/lib/implements/threaddb/common/logstore.ts +1 -1
  27. package/lib/implements/threaddb/core/logstore.ts +2 -2
  28. package/lib/implements/threaddb/dbclient.ts +34 -11
  29. package/lib/implements/threaddb/lsstoreds/addr_book.ts +134 -48
  30. package/lib/implements/threaddb/lsstoreds/headbook.ts +48 -24
  31. package/lib/implements/threaddb/net/net.ts +18 -3
  32. package/lib/implements/wallet/manager.ts +4 -2
  33. package/lib/interfaces/components/news-component.ts +0 -0
  34. package/lib/modules/auth-module.ts +2 -2
  35. package/lib/modules/components/news-components.ts +390 -0
  36. package/package.json +1 -1
  37. package/dist/cjs/babel-tools-BWeUL20Q.js +0 -1
  38. package/dist/cjs/cache-DB5vOYUa.js +0 -1
  39. package/dist/cjs/helia-core-CGrygIE7.js +0 -1
  40. package/dist/cjs/polkadot-api-9SXYLDre.js +0 -1
  41. package/dist/cjs/protobuf-89JdugaK.js +0 -1
  42. package/dist/esm/chunks/babel-tools-CmeA0jUH.js +0 -1
  43. package/dist/esm/chunks/cache-NFMLvSTk.js +0 -1
  44. package/dist/esm/chunks/helia-core-BkEzHB9G.js +0 -1
  45. package/dist/esm/chunks/polkadot-api-BIp1_8eq.js +0 -1
  46. package/dist/esm/chunks/protobuf-De5gI78A.js +0 -1
@@ -0,0 +1 @@
1
+ "use strict";function e(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(r){if("default"!==r&&!(r in e)){var i=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,i.get?i:{enumerable:!0,get:function(){return t[r]}})}}))})),Object.freeze(e)}function t(e,t){this.v=e,this.k=t}function r(e,t,r){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:r;throw new TypeError("Private element is not present on this object")}function i(e){function t(e){if(Object(e)!==e)return Promise.reject(new TypeError(e+" is not an object."));var t=e.done;return Promise.resolve(e.value).then((function(e){return{value:e,done:t}}))}return i=function(e){this.s=e,this.n=e.next},i.prototype={s:null,n:null,next:function(){return t(this.n.apply(this.s,arguments))},return:function(e){var r=this.s.return;return void 0===r?Promise.resolve({value:e,done:!0}):t(r.apply(this.s,arguments))},throw:function(e){var r=this.s.return;return void 0===r?Promise.reject(e):t(r.apply(this.s,arguments))}},new i(e)}function n(e,t,r,i,n,a,s){try{var o=e[a](s),l=o.value}catch(e){return void r(e)}o.done?t(l):Promise.resolve(l).then(i,n)}function a(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function s(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var i=r.call(e,t);if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)({}).hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},o.apply(null,arguments)}function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,i)}return r}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}function c(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function u(e){var r,i;function n(r,i){try{var s=e[r](i),o=s.value,l=o instanceof t;Promise.resolve(l?o.v:o).then((function(t){if(l){var i="return"===r?"return":"next";if(!o.k||t.done)return n(i,t);t=e[i](t).value}a(s.done?"return":"normal",t)}),(function(e){n("throw",e)}))}catch(e){a("throw",e)}}function a(e,t){switch(e){case"return":r.resolve({value:t,done:!0});break;case"throw":r.reject(t);break;default:r.resolve({value:t,done:!1})}(r=r.next)?n(r.key,r.arg):i=null}this._invoke=function(e,t){return new Promise((function(a,s){var o={key:e,arg:t,resolve:a,reject:s,next:null};i?i=i.next=o:(r=i=o,n(e,t))}))},"function"!=typeof e.return&&(this.return=void 0)}function h(){h=function(e,t){return new r(e,void 0,t)};var e=RegExp.prototype,t=new WeakMap;function r(e,i,n){var a=RegExp(e,i);return t.set(a,n||t.get(e)),p(a,r.prototype)}function i(e,r){var i=t.get(r);return Object.keys(i).reduce((function(t,r){var n=i[r];if("number"==typeof n)t[r]=e[n];else{for(var a=0;void 0===e[n[a]]&&a+1<n.length;)a++;t[r]=e[n[a]]}return t}),Object.create(null))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(r,RegExp),r.prototype.exec=function(t){var r=e.exec.call(this,t);if(r){r.groups=i(r,this);var n=r.indices;n&&(n.groups=i(n,this))}return r},r.prototype[Symbol.replace]=function(r,n){if("string"==typeof n){var a=t.get(this);return e[Symbol.replace].call(this,r,n.replace(/\$<([^>]+)(>|$)/g,(function(e,t,r){if(""===r)return e;var i=a[t];return Array.isArray(i)?"$"+i.join("$"):"number"==typeof i?"$"+i:""})))}if("function"==typeof n){var s=this;return e[Symbol.replace].call(this,r,(function(){var e=arguments;return"object"!=typeof e[e.length-1]&&(e=[].slice.call(e)).push(i(e,s)),n.apply(this,e)}))}return e[Symbol.replace].call(this,r,n)},h.apply(this,arguments)}u.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},u.prototype.next=function(e){return this._invoke("next",e)},u.prototype.throw=function(e){return this._invoke("throw",e)},u.prototype.return=function(e){return this._invoke("return",e)};var d="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function f(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function m(e){return e&&Object.prototype.hasOwnProperty.call(e,"default")&&1===Object.keys(e).length?e.default:e}var y,v={exports:{}};var T,g,S,x,b,P,E=function(){if(y)return v.exports;y=1;var e,t,r=v.exports={};function i(){throw new Error("setTimeout has not been defined")}function n(){throw new Error("clearTimeout has not been defined")}function a(t){if(e===setTimeout)return setTimeout(t,0);if((e===i||!e)&&setTimeout)return e=setTimeout,setTimeout(t,0);try{return e(t,0)}catch(r){try{return e.call(null,t,0)}catch(r){return e.call(this,t,0)}}}!function(){try{e="function"==typeof setTimeout?setTimeout:i}catch(t){e=i}try{t="function"==typeof clearTimeout?clearTimeout:n}catch(e){t=n}}();var s,o=[],l=!1,p=-1;function c(){l&&s&&(l=!1,s.length?o=s.concat(o):p=-1,o.length&&u())}function u(){if(!l){var e=a(c);l=!0;for(var r=o.length;r;){for(s=o,o=[];++p<r;)s&&s[p].run();p=-1,r=o.length}s=null,l=!1,function(e){if(t===clearTimeout)return clearTimeout(e);if((t===n||!t)&&clearTimeout)return t=clearTimeout,clearTimeout(e);try{return t(e)}catch(r){try{return t.call(null,e)}catch(r){return t.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function d(){}return r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];o.push(new h(e,t)),1!==o.length||l||a(u)},h.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=d,r.addListener=d,r.once=d,r.off=d,r.removeListener=d,r.removeAllListeners=d,r.emit=d,r.prependListener=d,r.prependOnceListener=d,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0},v.exports}(),A=f(E),C={};function w(){if(P)return C;P=1,Object.defineProperty(C,"__esModule",{value:!0});class e{constructor(e,t,r){this.line=void 0,this.column=void 0,this.index=void 0,this.line=e,this.column=t,this.index=r}}class t{constructor(e,t){this.start=void 0,this.end=void 0,this.filename=void 0,this.identifierName=void 0,this.start=e,this.end=t}}function r(t,r){var{line:i,column:n,index:a}=t;return new e(i,n+r,a+r)}var i="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED",n={ImportMetaOutsideModule:{message:"import.meta may appear only with 'sourceType: \"module\"'",code:i},ImportOutsideModule:{message:"'import' and 'export' may appear only with 'sourceType: \"module\"'",code:i}},a={ArrayPattern:"array destructuring pattern",AssignmentExpression:"assignment expression",AssignmentPattern:"assignment expression",ArrowFunctionExpression:"arrow function expression",ConditionalExpression:"conditional expression",CatchClause:"catch clause",ForOfStatement:"for-of statement",ForInStatement:"for-in statement",ForStatement:"for-loop",FormalParameters:"function parameter list",Identifier:"identifier",ImportSpecifier:"import specifier",ImportDefaultSpecifier:"import default specifier",ImportNamespaceSpecifier:"import namespace specifier",ObjectPattern:"object destructuring pattern",ParenthesizedExpression:"parenthesized expression",RestElement:"rest element",UpdateExpression:{true:"prefix operation",false:"postfix operation"},VariableDeclarator:"variable declaration",YieldExpression:"yield expression"},s=e=>"UpdateExpression"===e.type?a.UpdateExpression["".concat(e.prefix)]:a[e.type],o={AccessorIsGenerator:e=>{var{kind:t}=e;return"A ".concat(t,"ter cannot be a generator.")},ArgumentsInClass:"'arguments' is only allowed in functions and class methods.",AsyncFunctionInSingleStatementContext:"Async functions can only be declared at the top level or inside a block.",AwaitBindingIdentifier:"Can not use 'await' as identifier inside an async function.",AwaitBindingIdentifierInStaticBlock:"Can not use 'await' as identifier inside a static block.",AwaitExpressionFormalParameter:"'await' is not allowed in async function parameters.",AwaitUsingNotInAsyncContext:"'await using' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncContext:"'await' is only allowed within async functions and at the top levels of modules.",BadGetterArity:"A 'get' accessor must not have any formal parameters.",BadSetterArity:"A 'set' accessor must have exactly one formal parameter.",BadSetterRestParameter:"A 'set' accessor function argument must not be a rest parameter.",ConstructorClassField:"Classes may not have a field named 'constructor'.",ConstructorClassPrivateField:"Classes may not have a private field named '#constructor'.",ConstructorIsAccessor:"Class constructor may not be an accessor.",ConstructorIsAsync:"Constructor can't be an async function.",ConstructorIsGenerator:"Constructor can't be a generator.",DeclarationMissingInitializer:e=>{var{kind:t}=e;return"Missing initializer in ".concat(t," declaration.")},DecoratorArgumentsOutsideParentheses:"Decorator arguments must be moved inside parentheses: use '@(decorator(args))' instead of '@(decorator)(args)'.",DecoratorBeforeExport:"Decorators must be placed *before* the 'export' keyword. Remove the 'decoratorsBeforeExport: true' option to use the 'export @decorator class {}' syntax.",DecoratorsBeforeAfterExport:"Decorators can be placed *either* before or after the 'export' keyword, but not in both locations at the same time.",DecoratorConstructor:"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?",DecoratorExportClass:"Decorators must be placed *after* the 'export' keyword. Remove the 'decoratorsBeforeExport: false' option to use the '@decorator export class {}' syntax.",DecoratorSemicolon:"Decorators must not be followed by a semicolon.",DecoratorStaticBlock:"Decorators can't be used with a static block.",DeferImportRequiresNamespace:'Only `import defer * as x from "./module"` is valid.',DeletePrivateField:"Deleting a private field is not allowed.",DestructureNamedImport:"ES2015 named imports do not destructure. Use another statement for destructuring after the import.",DuplicateConstructor:"Duplicate constructor in the same class.",DuplicateDefaultExport:"Only one default export allowed per module.",DuplicateExport:e=>{var{exportName:t}=e;return"`".concat(t,"` has already been exported. Exported identifiers must be unique.")},DuplicateProto:"Redefinition of __proto__ property.",DuplicateRegExpFlags:"Duplicate regular expression flag.",ElementAfterRest:"Rest element must be last element.",EscapedCharNotAnIdentifier:"Invalid Unicode escape.",ExportBindingIsString:e=>{var{localName:t,exportName:r}=e;return"A string literal cannot be used as an exported binding without `from`.\n- Did you mean `export { '".concat(t,"' as '").concat(r,"' } from 'some-module'`?")},ExportDefaultFromAsIdentifier:"'from' is not allowed as an identifier after 'export default'.",ForInOfLoopInitializer:e=>{var{type:t}=e;return"'".concat("ForInStatement"===t?"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:e=>{var{type:t}=e;return"Unsyntactic ".concat("BreakStatement"===t?"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 `deprecatedImportAssert` parser plugin to suppress this error.",ImportBindingIsString:e=>{var{importName:t}=e;return'A string literal cannot be used as an imported binding.\n- Did you mean `import { "'.concat(t,'" as foo }`?')},ImportCallArity:"`import()` requires exactly 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.",InvalidCoverDiscardElement:"'void' must be followed by an expression when not used in a binding position.",InvalidCoverInitializedName:"Invalid shorthand property initializer.",InvalidDecimal:"Invalid decimal.",InvalidDigit:e=>{var{radix:t}=e;return"Expected number in radix ".concat(t,".")},InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:e=>{var{reservedWord:t}=e;return"Escape sequence in keyword ".concat(t,".")},InvalidIdentifier:e=>{var{identifierName:t}=e;return"Invalid identifier ".concat(t,".")},InvalidLhs:e=>{var{ancestor:t}=e;return"Invalid left-hand side in ".concat(s(t),".")},InvalidLhsBinding:e=>{var{ancestor:t}=e;return"Binding invalid left-hand side in ".concat(s(t),".")},InvalidLhsOptionalChaining:e=>{var{ancestor:t}=e;return"Invalid optional chaining in the left-hand side of ".concat(s(t),".")},InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:e=>{var{unexpected:t}=e;return"Unexpected character '".concat(t,"'.")},InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:e=>{var{identifierName:t}=e;return"Private name #".concat(t," 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:e=>{var{labelName:t}=e;return"Label '".concat(t,"' 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:e=>{var{missingPlugin:t}=e;return"This experimental syntax requires enabling the parser plugin: ".concat(t.map((e=>JSON.stringify(e))).join(", "),".")},MissingOneOfPlugins:e=>{var{missingPlugin:t}=e;return"This experimental syntax requires enabling one of the following parser plugin(s): ".concat(t.map((e=>JSON.stringify(e))).join(", "),".")},MissingUnicodeEscape:"Expecting Unicode escape sequence \\uXXXX.",MixingCoalesceWithLogical:"Nullish coalescing operator(??) requires parens when mixing with logical operators.",ModuleAttributeDifferentFromType:"The only accepted module attribute is `type`.",ModuleAttributeInvalidValue:"Only string literals are allowed as module attribute values.",ModuleAttributesWithDuplicateKeys:e=>{var{key:t}=e;return'Duplicate key "'.concat(t,'" is not allowed in module attributes.')},ModuleExportNameHasLoneSurrogate:e=>{var{surrogateCharCode:t}=e;return"An export name cannot include a lone surrogate, found '\\u".concat(t.toString(16),"'.")},ModuleExportUndefined:e=>{var{localName:t}=e;return"Export '".concat(t,"' 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:e=>{var{identifierName:t}=e;return"Private names are only allowed in property accesses (`obj.#".concat(t,"`) or in `in` expressions (`#").concat(t," in obj`).")},PrivateNameRedeclaration:e=>{var{identifierName:t}=e;return"Duplicate private name #".concat(t,".")},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:e=>{var{keyword:t}=e;return"Unexpected keyword '".concat(t,"'.")},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:e=>{var{reservedWord:t}=e;return"Unexpected reserved word '".concat(t,"'.")},UnexpectedSuper:"'super' is only allowed in object methods and classes.",UnexpectedToken:e=>{var{expected:t,unexpected:r}=e;return"Unexpected token".concat(r?" '".concat(r,"'."):"").concat(t?', expected "'.concat(t,'"'):"")},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` or in the bare case statement.",UnexpectedVoidPattern:"Unexpected void binding.",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:e=>{var{target:t,onlyValidPropertyName:r}=e;return"The only valid meta property for ".concat(t," is ").concat(t,".").concat(r,".")},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:e=>{var{identifierName:t}=e;return"Identifier '".concat(t,"' has already been declared.")},VoidPatternCatchClauseParam:"A void binding can not be the catch clause parameter. Use `try { ... } catch { ... }` if you want to discard the caught error.",VoidPatternInitializer:"A void binding may not have an initializer.",YieldBindingIdentifier:"Can not use 'yield' as identifier inside a generator.",YieldInParameter:"Yield expression is not allowed in formal parameters.",YieldNotInGeneratorFunction:"'yield' is only allowed within generator functions.",ZeroDigitNumericSeparator:"Numeric separator can not be used after leading 0."},l={ParseExpressionEmptyInput:"Unexpected parseExpression() input: The input is empty or contains only comments.",ParseExpressionExpectsEOF:e=>{var{unexpected:t}=e;return"Unexpected parseExpression() input: The input should contain exactly one expression, but the first expression is followed by the unexpected character `".concat(String.fromCodePoint(t),"`.")}},p=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]),u=Object.assign({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:e=>{var{token:t}=e;return"Invalid topic token ".concat(t,". In order to use ").concat(t,' as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "').concat(t,'" }.')},PipeTopicUnused:"Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.",PipeUnparenthesizedBody:e=>{var{type:t}=e;return"Hack-style pipe body cannot be an unparenthesized ".concat(s({type:t}),"; please wrap it in parentheses.")}},{PipelineBodyNoArrow:'Unexpected arrow "=>" after pipeline body; arrow function in pipeline body must be parenthesized.',PipelineBodySequenceExpression:"Pipeline body may not be a comma-separated sequence expression.",PipelineHeadSequenceExpression:"Pipeline head should not be a comma-separated sequence expression.",PipelineTopicUnused:"Pipeline is in topic style but does not use topic reference.",PrimaryTopicNotAllowed:"Topic reference was used in a lexical context without topic binding.",PrimaryTopicRequiresSmartPipeline:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.'}),h=["message"];function d(e,t,r){Object.defineProperty(e,t,{enumerable:!1,configurable:!0,value:r})}function f(t,r){if(Array.isArray(t))return e=>f(e,t[0]);var i={},n=function(){var n=t[a],s="string"==typeof n?{message:()=>n}:"function"==typeof n?{message:n}:n,{message:o}=s,l=function(e,t){if(null==e)return{};var r={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(-1!==t.indexOf(i))continue;r[i]=e[i]}return r}(s,h),p="string"==typeof o?()=>o:o;i[a]=function(t){var{toMessage:r,code:i,reasonCode:n,syntaxPlugin:a}=t,s="MissingPlugin"===n||"MissingOneOfPlugins"===n,o={AccessorCannotDeclareThisParameter:"AccesorCannotDeclareThisParameter",AccessorCannotHaveTypeParameters:"AccesorCannotHaveTypeParameters",ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:"ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference",SetAccessorCannotHaveOptionalParameter:"SetAccesorCannotHaveOptionalParameter",SetAccessorCannotHaveRestParameter:"SetAccesorCannotHaveRestParameter",SetAccessorCannotHaveReturnType:"SetAccesorCannotHaveReturnType"};return o[n]&&(n=o[n]),function t(o,l){var p=new SyntaxError;return p.code=i,p.reasonCode=n,p.loc=o,p.pos=o.index,p.syntaxPlugin=a,s&&(p.missingPlugin=l.missingPlugin),d(p,"clone",(function(){var r,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{line:n,column:a,index:s}=null!=(r=i.loc)?r:o;return t(new e(n,a,s),Object.assign({},l,i.details))})),d(p,"details",l),Object.defineProperty(p,"message",{configurable:!0,get(){var e="".concat(r(l)," (").concat(o.line,":").concat(o.column,")");return this.message=e,e},set(e){Object.defineProperty(this,"message",{value:e,writable:!0})}}),p}}(Object.assign({code:"BABEL_PARSER_SYNTAX_ERROR",reasonCode:a,toMessage:p},r?{syntaxPlugin:r}:{},l))};for(var a of Object.keys(t))n();return i}var m=Object.assign({},f(n),f(o),f({StrictDelete:"Deleting local variable in strict mode.",StrictEvalArguments:e=>{var{referenceName:t}=e;return"Assigning to '".concat(t,"' in strict mode.")},StrictEvalArgumentsBinding:e=>{var{bindingName:t}=e;return"Binding '".concat(t,"' 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."}),f(l),f(T||(T=c(["pipelineOperator"])))(u));var{defineProperty:y}=Object,v=(e,t)=>{e&&y(e,t,{enumerable:!1,value:e[t]})};function E(e){return v(e.loc.start,"index"),v(e.loc.end,"index"),e}class A{constructor(e,t){this.token=void 0,this.preserveSpace=void 0,this.token=e,this.preserveSpace=!!t}}var w={brace:new A("{"),j_oTag:new A("<tag"),j_cTag:new A("</tag"),j_expr:new A("<tag>...</tag>",!0)};w.template=new A("`",!0);var I=!0,N=!0,k=!0,O=!0,D=!0;class _{constructor(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};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=e,this.keyword=t.keyword,this.beforeExpr=!!t.beforeExpr,this.startsExpr=!!t.startsExpr,this.rightAssociative=!!t.rightAssociative,this.isLoop=!!t.isLoop,this.isAssign=!!t.isAssign,this.prefix=!!t.prefix,this.postfix=!!t.postfix,this.binop=null!=t.binop?t.binop:null,this.updateContext=null}}var L=new Map;function M(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.keyword=e;var r=W(e,t);return L.set(e,r),r}function F(e,t){return W(e,{beforeExpr:I,binop:t})}var B=-1,j=[],R=[],U=[],K=[],V=[],q=[];function W(e){var t,r,i,n,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return++B,R.push(e),U.push(null!=(t=a.binop)?t:-1),K.push(null!=(r=a.beforeExpr)&&r),V.push(null!=(i=a.startsExpr)&&i),q.push(null!=(n=a.prefix)&&n),j.push(new _(e,a)),B}function Y(e){var t,r,i,n,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return++B,L.set(e,B),R.push(e),U.push(null!=(t=a.binop)?t:-1),K.push(null!=(r=a.beforeExpr)&&r),V.push(null!=(i=a.startsExpr)&&i),q.push(null!=(n=a.prefix)&&n),j.push(new _("name",a)),B}var J={bracketL:W("[",{beforeExpr:I,startsExpr:N}),bracketHashL:W("#[",{beforeExpr:I,startsExpr:N}),bracketBarL:W("[|",{beforeExpr:I,startsExpr:N}),bracketR:W("]"),bracketBarR:W("|]"),braceL:W("{",{beforeExpr:I,startsExpr:N}),braceBarL:W("{|",{beforeExpr:I,startsExpr:N}),braceHashL:W("#{",{beforeExpr:I,startsExpr:N}),braceR:W("}"),braceBarR:W("|}"),parenL:W("(",{beforeExpr:I,startsExpr:N}),parenR:W(")"),comma:W(",",{beforeExpr:I}),semi:W(";",{beforeExpr:I}),colon:W(":",{beforeExpr:I}),doubleColon:W("::",{beforeExpr:I}),dot:W("."),question:W("?",{beforeExpr:I}),questionDot:W("?."),arrow:W("=>",{beforeExpr:I}),template:W("template"),ellipsis:W("...",{beforeExpr:I}),backQuote:W("`",{startsExpr:N}),dollarBraceL:W("${",{beforeExpr:I,startsExpr:N}),templateTail:W("...`",{startsExpr:N}),templateNonTail:W("...${",{beforeExpr:I,startsExpr:N}),at:W("@"),hash:W("#",{startsExpr:N}),interpreterDirective:W("#!..."),eq:W("=",{beforeExpr:I,isAssign:O}),assign:W("_=",{beforeExpr:I,isAssign:O}),slashAssign:W("_=",{beforeExpr:I,isAssign:O}),xorAssign:W("_=",{beforeExpr:I,isAssign:O}),moduloAssign:W("_=",{beforeExpr:I,isAssign:O}),incDec:W("++/--",{prefix:D,postfix:!0,startsExpr:N}),bang:W("!",{beforeExpr:I,prefix:D,startsExpr:N}),tilde:W("~",{beforeExpr:I,prefix:D,startsExpr:N}),doubleCaret:W("^^",{startsExpr:N}),doubleAt:W("@@",{startsExpr:N}),pipeline:F("|>",0),nullishCoalescing:F("??",1),logicalOR:F("||",1),logicalAND:F("&&",2),bitwiseOR:F("|",3),bitwiseXOR:F("^",4),bitwiseAND:F("&",5),equality:F("==/!=/===/!==",6),lt:F("</>/<=/>=",7),gt:F("</>/<=/>=",7),relational:F("</>/<=/>=",7),bitShift:F("<</>>/>>>",8),bitShiftL:F("<</>>/>>>",8),bitShiftR:F("<</>>/>>>",8),plusMin:W("+/-",{beforeExpr:I,binop:9,prefix:D,startsExpr:N}),modulo:W("%",{binop:10,startsExpr:N}),star:W("*",{binop:10}),slash:F("/",10),exponent:W("**",{beforeExpr:I,binop:11,rightAssociative:!0}),_in:M("in",{beforeExpr:I,binop:7}),_instanceof:M("instanceof",{beforeExpr:I,binop:7}),_break:M("break"),_case:M("case",{beforeExpr:I}),_catch:M("catch"),_continue:M("continue"),_debugger:M("debugger"),_default:M("default",{beforeExpr:I}),_else:M("else",{beforeExpr:I}),_finally:M("finally"),_function:M("function",{startsExpr:N}),_if:M("if"),_return:M("return",{beforeExpr:I}),_switch:M("switch"),_throw:M("throw",{beforeExpr:I,prefix:D,startsExpr:N}),_try:M("try"),_var:M("var"),_const:M("const"),_with:M("with"),_new:M("new",{beforeExpr:I,startsExpr:N}),_this:M("this",{startsExpr:N}),_super:M("super",{startsExpr:N}),_class:M("class",{startsExpr:N}),_extends:M("extends",{beforeExpr:I}),_export:M("export"),_import:M("import",{startsExpr:N}),_null:M("null",{startsExpr:N}),_true:M("true",{startsExpr:N}),_false:M("false",{startsExpr:N}),_typeof:M("typeof",{beforeExpr:I,prefix:D,startsExpr:N}),_void:M("void",{beforeExpr:I,prefix:D,startsExpr:N}),_delete:M("delete",{beforeExpr:I,prefix:D,startsExpr:N}),_do:M("do",{isLoop:k,beforeExpr:I}),_for:M("for",{isLoop:k}),_while:M("while",{isLoop:k}),_as:Y("as",{startsExpr:N}),_assert:Y("assert",{startsExpr:N}),_async:Y("async",{startsExpr:N}),_await:Y("await",{startsExpr:N}),_defer:Y("defer",{startsExpr:N}),_from:Y("from",{startsExpr:N}),_get:Y("get",{startsExpr:N}),_let:Y("let",{startsExpr:N}),_meta:Y("meta",{startsExpr:N}),_of:Y("of",{startsExpr:N}),_sent:Y("sent",{startsExpr:N}),_set:Y("set",{startsExpr:N}),_source:Y("source",{startsExpr:N}),_static:Y("static",{startsExpr:N}),_using:Y("using",{startsExpr:N}),_yield:Y("yield",{startsExpr:N}),_asserts:Y("asserts",{startsExpr:N}),_checks:Y("checks",{startsExpr:N}),_exports:Y("exports",{startsExpr:N}),_global:Y("global",{startsExpr:N}),_implements:Y("implements",{startsExpr:N}),_intrinsic:Y("intrinsic",{startsExpr:N}),_infer:Y("infer",{startsExpr:N}),_is:Y("is",{startsExpr:N}),_mixins:Y("mixins",{startsExpr:N}),_proto:Y("proto",{startsExpr:N}),_require:Y("require",{startsExpr:N}),_satisfies:Y("satisfies",{startsExpr:N}),_keyof:Y("keyof",{startsExpr:N}),_readonly:Y("readonly",{startsExpr:N}),_unique:Y("unique",{startsExpr:N}),_abstract:Y("abstract",{startsExpr:N}),_declare:Y("declare",{startsExpr:N}),_enum:Y("enum",{startsExpr:N}),_module:Y("module",{startsExpr:N}),_namespace:Y("namespace",{startsExpr:N}),_interface:Y("interface",{startsExpr:N}),_type:Y("type",{startsExpr:N}),_opaque:Y("opaque",{startsExpr:N}),name:W("name",{startsExpr:N}),placeholder:W("%%",{startsExpr:N}),string:W("string",{startsExpr:N}),num:W("num",{startsExpr:N}),bigint:W("bigint",{startsExpr:N}),decimal:W("decimal",{startsExpr:N}),regexp:W("regexp",{startsExpr:N}),privateName:W("#name",{startsExpr:N}),eof:W("eof"),jsxName:W("jsxName"),jsxText:W("jsxText",{beforeExpr:I}),jsxTagStart:W("jsxTagStart",{startsExpr:N}),jsxTagEnd:W("jsxTagEnd")};function X(e){return e>=93&&e<=133}function H(e){return e>=58&&e<=133}function z(e){return e>=58&&e<=137}function G(e){return V[e]}function Q(e){return e>=129&&e<=131}function $(e){return e>=58&&e<=92}function Z(e){return R[e]}function ee(e){return U[e]}function te(e){return e>=24&&e<=25}function re(e){return j[e]}j[8].updateContext=e=>{e.pop()},j[5].updateContext=j[7].updateContext=j[23].updateContext=e=>{e.push(w.brace)},j[22].updateContext=e=>{e[e.length-1]===w.template?e.pop():e.push(w.template)},j[143].updateContext=e=>{e.push(w.j_expr,w.j_oTag)};var ie="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-࢏ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚ౜ౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ೜-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ƛ꟱-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",ne="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-᫝᫠-᫫ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・",ae=new RegExp("["+ie+"]"),se=new RegExp("["+ie+ne+"]");ie=ne=null;var oe=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,7,25,39,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,5,57,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,24,43,261,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7381,42,31,98,114,8702,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,208,30,2,2,2,1,2,6,3,4,10,1,225,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4381,3,5773,3,7472,16,621,2467,541,1507,4938,6,8489],le=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,78,5,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,199,7,137,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,55,9,266,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239];function pe(e,t){for(var r=65536,i=0,n=t.length;i<n;i+=2){if((r+=t[i])>e)return!1;if((r+=t[i+1])>=e)return!0}return!1}function ce(e){return e<65?36===e:e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&ae.test(String.fromCharCode(e)):pe(e,oe)))}function ue(e){return e<48?36===e:e<58||!(e<65)&&(e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&se.test(String.fromCharCode(e)):pe(e,oe)||pe(e,le))))}var he=["implements","interface","let","package","private","protected","public","static","yield"],de=["eval","arguments"],fe=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"]),me=new Set(he),ye=new Set(de);function ve(e,t){return t&&"await"===e||"enum"===e}function Te(e,t){return ve(e,t)||me.has(e)}function ge(e){return ye.has(e)}function Se(e,t){return Te(e,t)||ge(e)}var xe=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"]);class be{constructor(e){this.flags=0,this.names=new Map,this.firstLexicalName="",this.flags=e}}class Pe{constructor(e,t){this.parser=void 0,this.scopeStack=[],this.inModule=void 0,this.undefinedExports=new Map,this.parser=e,this.inModule=t}get inTopLevel(){return(1&this.currentScope().flags)>0}get inFunction(){return(2&this.currentVarScopeFlags())>0}get allowSuper(){return(16&this.currentThisScopeFlags())>0}get allowDirectSuper(){return(32&this.currentThisScopeFlags())>0}get allowNewTarget(){return(512&this.currentThisScopeFlags())>0}get inClass(){return(64&this.currentThisScopeFlags())>0}get inClassAndNotInNonArrowFunction(){var e=this.currentThisScopeFlags();return(64&e)>0&&!(2&e)}get inStaticBlock(){for(var e=this.scopeStack.length-1;;e--){var{flags:t}=this.scopeStack[e];if(128&t)return!0;if(1731&t)return!1}}get inNonArrowFunction(){return(2&this.currentThisScopeFlags())>0}get inBareCaseStatement(){return(256&this.currentScope().flags)>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(e){return new be(e)}enter(e){this.scopeStack.push(this.createScope(e))}exit(){return this.scopeStack.pop().flags}treatFunctionsAsVarInScope(e){return!!(130&e.flags||!this.parser.inModule&&1&e.flags)}declareName(e,t,r){var i=this.currentScope();if(8&t||16&t){this.checkRedeclarationInScope(i,e,t,r);var n=i.names.get(e)||0;16&t?n|=4:(i.firstLexicalName||(i.firstLexicalName=e),n|=2),i.names.set(e,n),8&t&&this.maybeExportDefined(i,e)}else if(4&t)for(var a=this.scopeStack.length-1;a>=0&&(i=this.scopeStack[a],this.checkRedeclarationInScope(i,e,t,r),i.names.set(e,1|(i.names.get(e)||0)),this.maybeExportDefined(i,e),!(1667&i.flags));--a);this.parser.inModule&&1&i.flags&&this.undefinedExports.delete(e)}maybeExportDefined(e,t){this.parser.inModule&&1&e.flags&&this.undefinedExports.delete(t)}checkRedeclarationInScope(e,t,r,i){this.isRedeclaredInScope(e,t,r)&&this.parser.raise(m.VarRedeclaration,i,{identifierName:t})}isRedeclaredInScope(e,t,r){if(!(1&r))return!1;if(8&r)return e.names.has(t);var i=e.names.get(t)||0;return 16&r?(2&i)>0||!this.treatFunctionsAsVarInScope(e)&&(1&i)>0:(2&i)>0&&!(8&e.flags&&e.firstLexicalName===t)||!this.treatFunctionsAsVarInScope(e)&&(4&i)>0}checkLocalExport(e){var{name:t}=e;this.scopeStack[0].names.has(t)||this.undefinedExports.set(t,e.loc.start)}currentScope(){return this.scopeStack[this.scopeStack.length-1]}currentVarScopeFlags(){for(var e=this.scopeStack.length-1;;e--){var{flags:t}=this.scopeStack[e];if(1667&t)return t}}currentThisScopeFlags(){for(var e=this.scopeStack.length-1;;e--){var{flags:t}=this.scopeStack[e];if(1731&t&&!(4&t))return t}}}class Ee extends be{constructor(){super(...arguments),this.declareFunctions=new Set}}class Ae extends Pe{createScope(e){return new Ee(e)}declareName(e,t,r){var i=this.currentScope();if(2048&t)return this.checkRedeclarationInScope(i,e,t,r),this.maybeExportDefined(i,e),void i.declareFunctions.add(e);super.declareName(e,t,r)}isRedeclaredInScope(e,t,r){if(super.isRedeclaredInScope(e,t,r))return!0;if(2048&r&&!e.declareFunctions.has(t)){var i=e.names.get(t);return(4&i)>0||(2&i)>0}return!1}checkLocalExport(e){this.scopeStack[0].declareFunctions.has(e.name)||super.checkLocalExport(e)}}var Ce=new Set(["_","any","bool","boolean","empty","extends","false","interface","mixed","null","number","static","string","true","typeof","void"]),we=f(g||(g=c(["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:e=>{var{reservedType:t}=e;return"Cannot overwrite reserved type ".concat(t,".")},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:e=>{var{memberName:t,enumName:r}=e;return"Boolean enum members need to be initialized. Use either `".concat(t," = true,` or `").concat(t," = false,` in enum `").concat(r,"`.")},EnumDuplicateMemberName:e=>{var{memberName:t,enumName:r}=e;return"Enum member names need to be unique, but the name `".concat(t,"` has already been used before in enum `").concat(r,"`.")},EnumInconsistentMemberValues:e=>{var{enumName:t}=e;return"Enum `".concat(t,"` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.")},EnumInvalidExplicitType:e=>{var{invalidEnumType:t,enumName:r}=e;return"Enum type `".concat(t,"` is not valid. Use one of `boolean`, `number`, `string`, or `symbol` in enum `").concat(r,"`.")},EnumInvalidExplicitTypeUnknownSupplied:e=>{var{enumName:t}=e;return"Supplied enum type is not valid. Use one of `boolean`, `number`, `string`, or `symbol` in enum `".concat(t,"`.")},EnumInvalidMemberInitializerPrimaryType:e=>{var{enumName:t,memberName:r,explicitType:i}=e;return"Enum `".concat(t,"` has type `").concat(i,"`, so the initializer of `").concat(r,"` needs to be a ").concat(i," literal.")},EnumInvalidMemberInitializerSymbolType:e=>{var{enumName:t,memberName:r}=e;return"Symbol enum members cannot be initialized. Use `".concat(r,",` in enum `").concat(t,"`.")},EnumInvalidMemberInitializerUnknownType:e=>{var{enumName:t,memberName:r}=e;return"The enum member initializer for `".concat(r,"` needs to be a literal (either a boolean, number, or string) in enum `").concat(t,"`.")},EnumInvalidMemberName:e=>{var{enumName:t,memberName:r,suggestion:i}=e;return"Enum member names cannot start with lowercase 'a' through 'z'. Instead of using `".concat(r,"`, consider using `").concat(i,"`, in enum `").concat(t,"`.")},EnumNumberMemberNotInitialized:e=>{var{enumName:t,memberName:r}=e;return"Number enum members need to be initialized, e.g. `".concat(r," = 1` in enum `").concat(t,"`.")},EnumStringMemberInconsistentlyInitialized:e=>{var{enumName:t}=e;return"String enum members need to consistently either all use initializers, or use no initializers, in enum `".concat(t,"`.")},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:e=>{var{reservedType:t}=e;return"Unexpected reserved type ".concat(t,".")},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:e=>{var{unsupportedExportKind:t,suggestion:r}=e;return"`declare export ".concat(t,"` is not supported. Use `").concat(r,"` instead.")},UnsupportedStatementInDeclareModule:"Only declares and type imports are allowed inside declare module.",UnterminatedFlowComment:"Unterminated flow-comment."});function Ie(e){return"type"===e.importKind||"typeof"===e.importKind}var Ne={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"};var ke=/\*?\s*@((?:no)?flow)\b/,Oe={__proto__:null,quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"},De=new RegExp(/\r\n|[\r\n\u2028\u2029]/.source,"g");function _e(e){switch(e){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}function Le(e,t,r){for(var i=t;i<r;i++)if(_e(e.charCodeAt(i)))return!0;return!1}var Me=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,Fe=/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/g;function Be(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 je=f(S||(S=c(["jsx"])))({AttributeIsEmpty:"JSX attributes must only be assigned a non-empty expression.",MissingClosingTagElement:e=>{var{openingTagName:t}=e;return"Expected corresponding JSX closing tag for <".concat(t,">.")},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:e=>{var{unexpected:t,HTMLEntity:r}=e;return"Unexpected token `".concat(t,"`. Did you mean `").concat(r,"` or `{'").concat(t,"'}`?")},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 Re(e){return!!e&&("JSXOpeningFragment"===e.type||"JSXClosingFragment"===e.type)}function Ue(e){if("JSXIdentifier"===e.type)return e.name;if("JSXNamespacedName"===e.type)return e.namespace.name+":"+e.name.name;if("JSXMemberExpression"===e.type)return Ue(e.object)+"."+Ue(e.property);throw new Error("Node had unexpected type: "+e.type)}class Ke extends be{constructor(){super(...arguments),this.tsNames=new Map}}class Ve extends Pe{constructor(){super(...arguments),this.importsStack=[]}createScope(e){return this.importsStack.push(new Set),new Ke(e)}enter(e){1024===e&&this.importsStack.push(new Set),super.enter(e)}exit(){var e=super.exit();return 1024===e&&this.importsStack.pop(),e}hasImport(e,t){var r=this.importsStack.length;if(this.importsStack[r-1].has(e))return!0;if(!t&&r>1)for(var i=0;i<r-1;i++)if(this.importsStack[i].has(e))return!0;return!1}declareName(e,t,r){if(4096&t)return this.hasImport(e,!0)&&this.parser.raise(m.VarRedeclaration,r,{identifierName:e}),void this.importsStack[this.importsStack.length-1].add(e);var i=this.currentScope(),n=i.tsNames.get(e)||0;if(1024&t)return this.maybeExportDefined(i,e),void i.tsNames.set(e,16|n);super.declareName(e,t,r),2&t&&(1&t||(this.checkRedeclarationInScope(i,e,t,r),this.maybeExportDefined(i,e)),n|=1),256&t&&(n|=2),512&t&&(n|=4),128&t&&(n|=8),n&&i.tsNames.set(e,n)}isRedeclaredInScope(e,t,r){var i=e.tsNames.get(t);return(2&i)>0?!(256&r)||!!(512&r)!==(4&i)>0:128&r&&(8&i)>0?!!(2&e.names.get(t))&&!!(1&r):!!(2&r&&(1&i)>0)||super.isRedeclaredInScope(e,t,r)}checkLocalExport(e){var{name:t}=e;if(!this.hasImport(t)){for(var r=this.scopeStack.length-1;r>=0;r--){var i=this.scopeStack[r].tsNames.get(t);if((1&i)>0||(16&i)>0)return}super.checkLocalExport(e)}}}class qe{constructor(){this.stacks=[]}enter(e){this.stacks.push(e)}exit(){this.stacks.pop()}currentFlags(){return this.stacks[this.stacks.length-1]}get hasAwait(){return(2&this.currentFlags())>0}get hasYield(){return(1&this.currentFlags())>0}get hasReturn(){return(4&this.currentFlags())>0}get hasIn(){return(8&this.currentFlags())>0}}function We(e,t){return(e?2:0)|(t?1:0)}class Ye{constructor(){this.sawUnambiguousESM=!1,this.ambiguousScriptDifferentAst=!1}sourceToOffsetPos(e){return e+this.startIndex}offsetToSourcePos(e){return e-this.startIndex}hasPlugin(e){if("string"==typeof e)return this.plugins.has(e);var[t,r]=e;if(!this.hasPlugin(t))return!1;var i=this.plugins.get(t);for(var n of Object.keys(r))if((null==i?void 0:i[n])!==r[n])return!1;return!0}getPluginOption(e,t){var r;return null==(r=this.plugins.get(e))?void 0:r[t]}}function Je(e,t){void 0===e.trailingComments?e.trailingComments=t:e.trailingComments.unshift(...t)}function Xe(e,t){void 0===e.innerComments?e.innerComments=t:e.innerComments.unshift(...t)}function He(e,t,r){for(var i=null,n=t.length;null===i&&n>0;)i=t[--n];null===i||i.start>r.start?Xe(e,r.comments):Je(i,r.comments)}class ze extends Ye{addComment(e){this.filename&&(e.loc.filename=this.filename);var{commentsLen:t}=this.state;this.comments.length!==t&&(this.comments.length=t),this.comments.push(e),this.state.commentsLen++}processComment(e){var{commentStack:t}=this.state,r=t.length;if(0!==r){var i=r-1,n=t[i];n.start===e.end&&(n.leadingNode=e,i--);for(var{start:a}=e;i>=0;i--){var s=t[i],o=s.end;if(!(o>a)){o===a&&(s.trailingNode=e);break}s.containingNode=e,this.finalizeComment(s),t.splice(i,1)}}}finalizeComment(e){var t,{comments:r}=e;if(null!==e.leadingNode||null!==e.trailingNode)null!==e.leadingNode&&Je(e.leadingNode,r),null!==e.trailingNode&&function(e,t){void 0===e.leadingComments?e.leadingComments=t:e.leadingComments.unshift(...t)}(e.trailingNode,r);else{var i=e.containingNode,n=e.start;if(44===this.input.charCodeAt(this.offsetToSourcePos(n)-1))switch(i.type){case"ObjectExpression":case"ObjectPattern":case"RecordExpression":He(i,i.properties,e);break;case"CallExpression":case"OptionalCallExpression":He(i,i.arguments,e);break;case"ImportExpression":He(i,[i.source,null!=(t=i.options)?t:null],e);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":He(i,i.params,e);break;case"ArrayExpression":case"ArrayPattern":case"TupleExpression":He(i,i.elements,e);break;case"ExportNamedDeclaration":case"ImportDeclaration":He(i,i.specifiers,e);break;case"TSEnumDeclaration":case"TSEnumBody":He(i,i.members,e);break;default:Xe(i,r)}else Xe(i,r)}}finalizeRemainingComments(){for(var{commentStack:e}=this.state,t=e.length-1;t>=0;t--)this.finalizeComment(e[t]);this.state.commentStack=[]}resetPreviousNodeTrailingComments(e){var{commentStack:t}=this.state,{length:r}=t;if(0!==r){var i=t[r-1];i.leadingNode===e&&(i.leadingNode=null)}}takeSurroundingComments(e,t,r){var{commentStack:i}=this.state,n=i.length;if(0!==n)for(var a=n-1;a>=0;a--){var s=i[a],o=s.end;if(s.start===r)s.leadingNode=e;else if(o===t)s.trailingNode=e;else if(o<t)break}}}class Ge{constructor(){this.flags=1024,this.startIndex=void 0,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=140,this.value=null,this.start=0,this.end=0,this.lastTokEndLoc=null,this.lastTokStartLoc=null,this.context=[w.brace],this.firstInvalidTemplateEscapePos=null,this.strictErrors=new Map,this.tokensLength=0}get strict(){return(1&this.flags)>0}set strict(e){e?this.flags|=1:this.flags&=-2}init(t){var{strictMode:r,sourceType:i,startIndex:n,startLine:a,startColumn:s}=t;this.strict=!1!==r&&(!0===r||"module"===i),this.startIndex=n,this.curLine=a,this.lineStart=-s,this.startLoc=this.endLoc=new e(a,s,n)}get maybeInArrowParameters(){return(2&this.flags)>0}set maybeInArrowParameters(e){e?this.flags|=2:this.flags&=-3}get inType(){return(4&this.flags)>0}set inType(e){e?this.flags|=4:this.flags&=-5}get noAnonFunctionType(){return(8&this.flags)>0}set noAnonFunctionType(e){e?this.flags|=8:this.flags&=-9}get hasFlowComment(){return(16&this.flags)>0}set hasFlowComment(e){e?this.flags|=16:this.flags&=-17}get isAmbientContext(){return(32&this.flags)>0}set isAmbientContext(e){e?this.flags|=32:this.flags&=-33}get inAbstractClass(){return(64&this.flags)>0}set inAbstractClass(e){e?this.flags|=64:this.flags&=-65}get inDisallowConditionalTypesContext(){return(128&this.flags)>0}set inDisallowConditionalTypesContext(e){e?this.flags|=128:this.flags&=-129}get soloAwait(){return(256&this.flags)>0}set soloAwait(e){e?this.flags|=256:this.flags&=-257}get inFSharpPipelineDirectBody(){return(512&this.flags)>0}set inFSharpPipelineDirectBody(e){e?this.flags|=512:this.flags&=-513}get canStartJSXElement(){return(1024&this.flags)>0}set canStartJSXElement(e){e?this.flags|=1024:this.flags&=-1025}get containsEsc(){return(2048&this.flags)>0}set containsEsc(e){e?this.flags|=2048:this.flags&=-2049}get hasTopLevelAwait(){return(4096&this.flags)>0}set hasTopLevelAwait(e){e?this.flags|=4096:this.flags&=-4097}curPosition(){return new e(this.curLine,this.pos-this.lineStart,this.pos+this.startIndex)}clone(){var e=new Ge;return e.flags=this.flags,e.startIndex=this.startIndex,e.curLine=this.curLine,e.lineStart=this.lineStart,e.startLoc=this.startLoc,e.endLoc=this.endLoc,e.errors=this.errors.slice(),e.potentialArrowAt=this.potentialArrowAt,e.noArrowAt=this.noArrowAt.slice(),e.noArrowParamsConversionAt=this.noArrowParamsConversionAt.slice(),e.topicContext=this.topicContext,e.labels=this.labels.slice(),e.commentsLen=this.commentsLen,e.commentStack=this.commentStack.slice(),e.pos=this.pos,e.type=this.type,e.value=this.value,e.start=this.start,e.end=this.end,e.lastTokEndLoc=this.lastTokEndLoc,e.lastTokStartLoc=this.lastTokStartLoc,e.context=this.context.slice(),e.firstInvalidTemplateEscapePos=this.firstInvalidTemplateEscapePos,e.strictErrors=this.strictErrors,e.tokensLength=this.tokensLength,e}}var Qe=function(e){return e>=48&&e<=57},$e={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},Ze={bin:e=>48===e||49===e,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 et(e,t,r,i,n,a){for(var s=r,o=i,l=n,p="",c=null,u=r,{length:h}=t;;){if(r>=h){a.unterminated(s,o,l),p+=t.slice(u,r);break}var d=t.charCodeAt(r);if(tt(e,d,t,r)){p+=t.slice(u,r);break}if(92===d){p+=t.slice(u,r);var f=rt(t,r,i,n,"template"===e,a);null!==f.ch||c?p+=f.ch:c={pos:r,lineStart:i,curLine:n},({pos:r,lineStart:i,curLine:n}=f),u=r}else 8232===d||8233===d?(++n,i=++r):10===d||13===d?"template"===e?(p+=t.slice(u,r)+"\n",++r,13===d&&10===t.charCodeAt(r)&&++r,++n,u=i=r):a.unterminated(s,o,l):++r}return{pos:r,str:p,firstInvalidLoc:c,lineStart:i,curLine:n,containsInvalid:!!c}}function tt(e,t,r,i){return"template"===e?96===t||36===t&&123===r.charCodeAt(i+1):t===("double"===e?34:39)}function rt(e,t,r,i,n,a){var s=!n;t++;var o=e=>({pos:t,ch:e,lineStart:r,curLine:i}),l=e.charCodeAt(t++);switch(l){case 110:return o("\n");case 114:return o("\r");case 120:var p;return({code:p,pos:t}=it(e,t,r,i,2,!1,s,a)),o(null===p?null:String.fromCharCode(p));case 117:var c;return({code:c,pos:t}=at(e,t,r,i,s,a)),o(null===c?null:String.fromCodePoint(c));case 116:return o("\t");case 98:return o("\b");case 118:return o("\v");case 102:return o("\f");case 13:10===e.charCodeAt(t)&&++t;case 10:r=t,++i;case 8232:case 8233:return o("");case 56:case 57:if(n)return o(null);a.strictNumericEscape(t-1,r,i);default:if(l>=48&&l<=55){var u=t-1,h=/^[0-7]+/.exec(e.slice(u,t+2))[0],d=parseInt(h,8);d>255&&(h=h.slice(0,-1),d=parseInt(h,8)),t+=h.length-1;var f=e.charCodeAt(t);if("0"!==h||56===f||57===f){if(n)return o(null);a.strictNumericEscape(u,r,i)}return o(String.fromCharCode(d))}return o(String.fromCharCode(l))}}function it(e,t,r,i,n,a,s,o){var l,p=t;return({n:l,pos:t}=nt(e,t,r,i,16,n,a,!1,o,!s)),null===l&&(s?o.invalidEscapeSequence(p,r,i):t=p-1),{code:l,pos:t}}function nt(e,t,r,i,n,a,s,o,l,p){for(var c=t,u=16===n?$e.hex:$e.decBinOct,h=16===n?Ze.hex:10===n?Ze.dec:8===n?Ze.oct:Ze.bin,d=!1,f=0,m=0,y=null==a?1/0:a;m<y;++m){var v=e.charCodeAt(t),T=void 0;if(95!==v||"bail"===o){if((T=v>=97?v-97+10:v>=65?v-65+10:Qe(v)?v-48:1/0)>=n){if(T<=9&&p)return{n:null,pos:t};if(T<=9&&l.invalidDigit(t,r,i,n))T=0;else{if(!s)break;T=0,d=!0}}++t,f=f*n+T}else{var g=e.charCodeAt(t-1),S=e.charCodeAt(t+1);if(o){if(Number.isNaN(S)||!h(S)||u.has(g)||u.has(S)){if(p)return{n:null,pos:t};l.unexpectedNumericSeparator(t,r,i)}}else{if(p)return{n:null,pos:t};l.numericSeparatorInEscapeSequence(t,r,i)}++t}}return t===c||null!=a&&t-c!==a||d?{n:null,pos:t}:{n:f,pos:t}}function at(e,t,r,i,n,a){var s;if(123===e.charCodeAt(t)){if(++t,({code:s,pos:t}=it(e,t,r,i,e.indexOf("}",t)-t,!0,n,a)),++t,null!==s&&s>1114111){if(!n)return{code:null,pos:t};a.invalidCodePoint(t,r,i)}}else({code:s,pos:t}=it(e,t,r,i,4,!1,n,a));return{code:s,pos:t}}function st(t,r,i){return new e(i,t-r,t)}var ot=new Set([103,109,115,105,121,117,100,118]);class lt{constructor(e){var r=e.startIndex||0;this.type=e.type,this.value=e.value,this.start=r+e.start,this.end=r+e.end,this.loc=new t(e.startLoc,e.endLoc)}}class pt extends ze{constructor(e,t){super(),this.isLookahead=void 0,this.tokens=[],this.errorHandlers_readInt={invalidDigit:(e,t,r,i)=>!!(2048&this.optionFlags)&&(this.raise(m.InvalidDigit,st(e,t,r),{radix:i}),!0),numericSeparatorInEscapeSequence:this.errorBuilder(m.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:this.errorBuilder(m.UnexpectedNumericSeparator)},this.errorHandlers_readCodePoint=Object.assign({},this.errorHandlers_readInt,{invalidEscapeSequence:this.errorBuilder(m.InvalidEscapeSequence),invalidCodePoint:this.errorBuilder(m.InvalidCodePoint)}),this.errorHandlers_readStringContents_string=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:(e,t,r)=>{this.recordStrictModeErrors(m.StrictNumericEscape,st(e,t,r))},unterminated:(e,t,r)=>{throw this.raise(m.UnterminatedString,st(e-1,t,r))}}),this.errorHandlers_readStringContents_template=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:this.errorBuilder(m.StrictNumericEscape),unterminated:(e,t,r)=>{throw this.raise(m.UnterminatedTemplate,st(e,t,r))}}),this.state=new Ge,this.state.init(e),this.input=t,this.length=t.length,this.comments=[],this.isLookahead=!1}pushToken(e){this.tokens.length=this.state.tokensLength,this.tokens.push(e),++this.state.tokensLength}next(){this.checkKeywordEscapes(),256&this.optionFlags&&this.pushToken(new lt(this.state)),this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken()}eat(e){return!!this.match(e)&&(this.next(),!0)}match(e){return this.state.type===e}createLookaheadState(e){return{pos:e.pos,value:null,type:e.type,start:e.start,end:e.end,context:[this.curContext()],inType:e.inType,startLoc:e.startLoc,lastTokEndLoc:e.lastTokEndLoc,curLine:e.curLine,lineStart:e.lineStart,curPosition:e.curPosition}}lookahead(){var e=this.state;this.state=this.createLookaheadState(e),this.isLookahead=!0,this.nextToken(),this.isLookahead=!1;var t=this.state;return this.state=e,t}nextTokenStart(){return this.nextTokenStartSince(this.state.pos)}nextTokenStartSince(e){return Me.lastIndex=e,Me.test(this.input)?Me.lastIndex:e}lookaheadCharCode(){return this.lookaheadCharCodeSince(this.state.pos)}lookaheadCharCodeSince(e){return this.input.charCodeAt(this.nextTokenStartSince(e))}nextTokenInLineStart(){return this.nextTokenInLineStartSince(this.state.pos)}nextTokenInLineStartSince(e){return Fe.lastIndex=e,Fe.test(this.input)?Fe.lastIndex:e}lookaheadInLineCharCode(){return this.input.charCodeAt(this.nextTokenInLineStart())}codePointAtPos(e){var t=this.input.charCodeAt(e);if(55296==(64512&t)&&++e<this.input.length){var r=this.input.charCodeAt(e);56320==(64512&r)&&(t=65536+((1023&t)<<10)+(1023&r))}return t}setStrict(e){this.state.strict=e,e&&(this.state.strictErrors.forEach((e=>{var[t,r]=e;return this.raise(t,r)})),this.state.strictErrors.clear())}curContext(){return this.state.context[this.state.context.length-1]}nextToken(){this.skipSpace(),this.state.start=this.state.pos,this.isLookahead||(this.state.startLoc=this.state.curPosition()),this.state.pos>=this.length?this.finishToken(140):this.getTokenFromCode(this.codePointAtPos(this.state.pos))}skipBlockComment(e){var r;this.isLookahead||(r=this.state.curPosition());var i=this.state.pos,n=this.input.indexOf(e,i+2);if(-1===n)throw this.raise(m.UnterminatedComment,this.state.curPosition());for(this.state.pos=n+e.length,De.lastIndex=i+2;De.test(this.input)&&De.lastIndex<=n;)++this.state.curLine,this.state.lineStart=De.lastIndex;if(!this.isLookahead){var a={type:"CommentBlock",value:this.input.slice(i+2,n),start:this.sourceToOffsetPos(i),end:this.sourceToOffsetPos(n+e.length),loc:new t(r,this.state.curPosition())};return 256&this.optionFlags&&this.pushToken(a),a}}skipLineComment(e){var r,i=this.state.pos;this.isLookahead||(r=this.state.curPosition());var n=this.input.charCodeAt(this.state.pos+=e);if(this.state.pos<this.length)for(;!_e(n)&&++this.state.pos<this.length;)n=this.input.charCodeAt(this.state.pos);if(!this.isLookahead){var a=this.state.pos,s={type:"CommentLine",value:this.input.slice(i+e,a),start:this.sourceToOffsetPos(i),end:this.sourceToOffsetPos(a),loc:new t(r,this.state.curPosition())};return 256&this.optionFlags&&this.pushToken(s),s}}skipSpace(){var e=this.state.pos,t=4096&this.optionFlags?[]:null;e:for(;this.state.pos<this.length;){var r=this.input.charCodeAt(this.state.pos);switch(r){case 32:case 160:case 9:++this.state.pos;break;case 13:10===this.input.charCodeAt(this.state.pos+1)&&++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:var i=this.skipBlockComment("*/");void 0!==i&&(this.addComment(i),null==t||t.push(i));break;case 47:var n=this.skipLineComment(2);void 0!==n&&(this.addComment(n),null==t||t.push(n));break;default:break e}break;default:if(Be(r))++this.state.pos;else if(45===r&&!this.inModule&&8192&this.optionFlags){var a=this.state.pos;if(45!==this.input.charCodeAt(a+1)||62!==this.input.charCodeAt(a+2)||!(0===e||this.state.lineStart>e))break e;var s=this.skipLineComment(3);void 0!==s&&(this.addComment(s),null==t||t.push(s))}else{if(60!==r||this.inModule||!(8192&this.optionFlags))break e;var o=this.state.pos;if(33!==this.input.charCodeAt(o+1)||45!==this.input.charCodeAt(o+2)||45!==this.input.charCodeAt(o+3))break e;var l=this.skipLineComment(4);void 0!==l&&(this.addComment(l),null==t||t.push(l))}}}if((null==t?void 0:t.length)>0){var p=this.state.pos,c={start:this.sourceToOffsetPos(e),end:this.sourceToOffsetPos(p),comments:t,leadingNode:null,trailingNode:null,containingNode:null};this.state.commentStack.push(c)}}finishToken(e,t){this.state.end=this.state.pos,this.state.endLoc=this.state.curPosition();var r=this.state.type;this.state.type=e,this.state.value=t,this.isLookahead||this.updateContext(r)}replaceToken(e){this.state.type=e,this.updateContext()}readToken_numberSign(){if(0!==this.state.pos||!this.readToken_interpreter()){var e=this.state.pos+1,t=this.codePointAtPos(e);if(t>=48&&t<=57)throw this.raise(m.UnexpectedDigitAfterHash,this.state.curPosition());if(123===t||91===t&&this.hasPlugin("recordAndTuple")){if(this.expectPlugin("recordAndTuple"),"bar"===this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(123===t?m.RecordExpressionHashIncorrectStartSyntaxType:m.TupleExpressionHashIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,123===t?this.finishToken(7):this.finishToken(1)}else ce(t)?(++this.state.pos,this.finishToken(139,this.readWord1(t))):92===t?(++this.state.pos,this.finishToken(139,this.readWord1())):this.finishOp(27,1)}}readToken_dot(){var e=this.input.charCodeAt(this.state.pos+1);e>=48&&e<=57?this.readNumber(!0):46===e&&46===this.input.charCodeAt(this.state.pos+2)?(this.state.pos+=3,this.finishToken(21)):(++this.state.pos,this.finishToken(16))}readToken_slash(){61===this.input.charCodeAt(this.state.pos+1)?this.finishOp(31,2):this.finishOp(56,1)}readToken_interpreter(){if(0!==this.state.pos||this.length<2)return!1;var e=this.input.charCodeAt(this.state.pos+1);if(33!==e)return!1;var t=this.state.pos;for(this.state.pos+=1;!_e(e)&&++this.state.pos<this.length;)e=this.input.charCodeAt(this.state.pos);var r=this.input.slice(t+2,this.state.pos);return this.finishToken(28,r),!0}readToken_mult_modulo(e){var t=42===e?55:54,r=1,i=this.input.charCodeAt(this.state.pos+1);42===e&&42===i&&(r++,i=this.input.charCodeAt(this.state.pos+2),t=57),61!==i||this.state.inType||(r++,t=37===e?33:30),this.finishOp(t,r)}readToken_pipe_amp(e){var t=this.input.charCodeAt(this.state.pos+1);if(t!==e){if(124===e){if(62===t)return void this.finishOp(39,2);if(this.hasPlugin("recordAndTuple")&&125===t){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(m.RecordExpressionBarIncorrectEndSyntaxType,this.state.curPosition());return this.state.pos+=2,void this.finishToken(9)}if(this.hasPlugin("recordAndTuple")&&93===t){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(m.TupleExpressionBarIncorrectEndSyntaxType,this.state.curPosition());return this.state.pos+=2,void this.finishToken(4)}}61!==t?this.finishOp(124===e?43:45,1):this.finishOp(30,2)}else 61===this.input.charCodeAt(this.state.pos+2)?this.finishOp(30,3):this.finishOp(124===e?41:42,2)}readToken_caret(){var e=this.input.charCodeAt(this.state.pos+1);if(61!==e||this.state.inType)if(94===e&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"^^"}])){this.finishOp(37,2),94===this.input.codePointAt(this.state.pos)&&this.unexpected()}else this.finishOp(44,1);else this.finishOp(32,2)}readToken_atSign(){64===this.input.charCodeAt(this.state.pos+1)&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"@@"}])?this.finishOp(38,2):this.finishOp(26,1)}readToken_plus_min(e){var t=this.input.charCodeAt(this.state.pos+1);t!==e?61===t?this.finishOp(30,2):this.finishOp(53,1):this.finishOp(34,2)}readToken_lt(){var{pos:e}=this.state,t=this.input.charCodeAt(e+1);if(60===t)return 61===this.input.charCodeAt(e+2)?void this.finishOp(30,3):void this.finishOp(51,2);61!==t?this.finishOp(47,1):this.finishOp(49,2)}readToken_gt(){var{pos:e}=this.state,t=this.input.charCodeAt(e+1);if(62===t){var r=62===this.input.charCodeAt(e+2)?3:2;return 61===this.input.charCodeAt(e+r)?void this.finishOp(30,r+1):void this.finishOp(52,r)}61!==t?this.finishOp(48,1):this.finishOp(49,2)}readToken_eq_excl(e){var t=this.input.charCodeAt(this.state.pos+1);if(61!==t)return 61===e&&62===t?(this.state.pos+=2,void this.finishToken(19)):void this.finishOp(61===e?29:35,1);this.finishOp(46,61===this.input.charCodeAt(this.state.pos+2)?3:2)}readToken_question(){var e=this.input.charCodeAt(this.state.pos+1),t=this.input.charCodeAt(this.state.pos+2);63===e?61===t?this.finishOp(30,3):this.finishOp(40,2):46!==e||t>=48&&t<=57?(++this.state.pos,this.finishToken(17)):(this.state.pos+=2,this.finishToken(18))}getTokenFromCode(e){switch(e){case 46:return void this.readToken_dot();case 40:return++this.state.pos,void this.finishToken(10);case 41:return++this.state.pos,void this.finishToken(11);case 59:return++this.state.pos,void this.finishToken(13);case 44:return++this.state.pos,void this.finishToken(12);case 91:if(this.hasPlugin("recordAndTuple")&&124===this.input.charCodeAt(this.state.pos+1)){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(m.TupleExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(2)}else++this.state.pos,this.finishToken(0);return;case 93:return++this.state.pos,void this.finishToken(3);case 123:if(this.hasPlugin("recordAndTuple")&&124===this.input.charCodeAt(this.state.pos+1)){if("bar"!==this.getPluginOption("recordAndTuple","syntaxType"))throw this.raise(m.RecordExpressionBarIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,this.finishToken(6)}else++this.state.pos,this.finishToken(5);return;case 125:return++this.state.pos,void this.finishToken(8);case 58:return void(this.hasPlugin("functionBind")&&58===this.input.charCodeAt(this.state.pos+1)?this.finishOp(15,2):(++this.state.pos,this.finishToken(14)));case 63:return void this.readToken_question();case 96:return void this.readTemplateToken();case 48:var t=this.input.charCodeAt(this.state.pos+1);if(120===t||88===t)return void this.readRadixNumber(16);if(111===t||79===t)return void this.readRadixNumber(8);if(98===t||66===t)return void this.readRadixNumber(2);case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return void this.readNumber(!1);case 34:case 39:return void this.readString(e);case 47:return void this.readToken_slash();case 37:case 42:return void this.readToken_mult_modulo(e);case 124:case 38:return void this.readToken_pipe_amp(e);case 94:return void this.readToken_caret();case 43:case 45:return void this.readToken_plus_min(e);case 60:return void this.readToken_lt();case 62:return void this.readToken_gt();case 61:case 33:return void this.readToken_eq_excl(e);case 126:return void this.finishOp(36,1);case 64:return void this.readToken_atSign();case 35:return void this.readToken_numberSign();case 92:return void this.readWord();default:if(ce(e))return void this.readWord(e)}throw this.raise(m.InvalidOrUnexpectedToken,this.state.curPosition(),{unexpected:String.fromCodePoint(e)})}finishOp(e,t){var r=this.input.slice(this.state.pos,this.state.pos+t);this.state.pos+=t,this.finishToken(e,r)}readRegexp(){for(var e,t,i=this.state.startLoc,n=this.state.start+1,{pos:a}=this.state;;++a){if(a>=this.length)throw this.raise(m.UnterminatedRegExp,r(i,1));var s=this.input.charCodeAt(a);if(_e(s))throw this.raise(m.UnterminatedRegExp,r(i,1));if(e)e=!1;else{if(91===s)t=!0;else if(93===s&&t)t=!1;else if(47===s&&!t)break;e=92===s}}var o=this.input.slice(n,a);++a;for(var l="",p=()=>r(i,a+2-n);a<this.length;){var c=this.codePointAtPos(a),u=String.fromCharCode(c);if(ot.has(c))118===c?l.includes("u")&&this.raise(m.IncompatibleRegExpUVFlags,p()):117===c&&l.includes("v")&&this.raise(m.IncompatibleRegExpUVFlags,p()),l.includes(u)&&this.raise(m.DuplicateRegExpFlags,p());else{if(!ue(c)&&92!==c)break;this.raise(m.MalformedRegExpFlags,p())}++a,l+=u}this.state.pos=a,this.finishToken(138,{pattern:o,flags:l})}readInt(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],{n:n,pos:a}=nt(this.input,this.state.pos,this.state.lineStart,this.state.curLine,e,t,r,i,this.errorHandlers_readInt,!1);return this.state.pos=a,n}readRadixNumber(e){var t=this.state.pos,i=this.state.curPosition(),n=!1;this.state.pos+=2;var a=this.readInt(e);null==a&&this.raise(m.InvalidDigit,r(i,2),{radix:e});var s=this.input.charCodeAt(this.state.pos);if(110===s)++this.state.pos,n=!0;else if(109===s)throw this.raise(m.InvalidDecimal,i);if(ce(this.codePointAtPos(this.state.pos)))throw this.raise(m.NumberIdentifier,this.state.curPosition());if(n){var o=this.input.slice(t,this.state.pos).replace(/[_n]/g,"");this.finishToken(136,o)}else this.finishToken(135,a)}readNumber(e){var t=this.state.pos,i=this.state.curPosition(),n=!1,a=!1,s=!1,o=!1;e||null!==this.readInt(10)||this.raise(m.InvalidNumber,this.state.curPosition());var l=this.state.pos-t>=2&&48===this.input.charCodeAt(t);if(l){var p=this.input.slice(t,this.state.pos);if(this.recordStrictModeErrors(m.StrictOctalLiteral,i),!this.state.strict){var c=p.indexOf("_");c>0&&this.raise(m.ZeroDigitNumericSeparator,r(i,c))}o=l&&!/[89]/.test(p)}var u=this.input.charCodeAt(this.state.pos);if(46!==u||o||(++this.state.pos,this.readInt(10),n=!0,u=this.input.charCodeAt(this.state.pos)),69!==u&&101!==u||o||(43!==(u=this.input.charCodeAt(++this.state.pos))&&45!==u||++this.state.pos,null===this.readInt(10)&&this.raise(m.InvalidOrMissingExponent,i),n=!0,s=!0,u=this.input.charCodeAt(this.state.pos)),110===u&&((n||l)&&this.raise(m.InvalidBigIntLiteral,i),++this.state.pos,a=!0),109===u){this.expectPlugin("decimal",this.state.curPosition()),(s||l)&&this.raise(m.InvalidDecimal,i),++this.state.pos;var h=!0}if(ce(this.codePointAtPos(this.state.pos)))throw this.raise(m.NumberIdentifier,this.state.curPosition());var d=this.input.slice(t,this.state.pos).replace(/[_mn]/g,"");if(a)this.finishToken(136,d);else if(h)this.finishToken(137,d);else{var f=o?parseInt(d,8):parseFloat(d);this.finishToken(135,f)}}readCodePoint(e){var{code:t,pos:r}=at(this.input,this.state.pos,this.state.lineStart,this.state.curLine,e,this.errorHandlers_readCodePoint);return this.state.pos=r,t}readString(e){var{str:t,pos:r,curLine:i,lineStart:n}=et(34===e?"double":"single",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_string);this.state.pos=r+1,this.state.lineStart=n,this.state.curLine=i,this.finishToken(134,t)}readTemplateContinuation(){this.match(8)||this.unexpected(null,8),this.state.pos--,this.readTemplateToken()}readTemplateToken(){var t=this.input[this.state.pos],{str:r,firstInvalidLoc:i,pos:n,curLine:a,lineStart:s}=et("template",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_template);this.state.pos=n+1,this.state.lineStart=s,this.state.curLine=a,i&&(this.state.firstInvalidTemplateEscapePos=new e(i.curLine,i.pos-i.lineStart,this.sourceToOffsetPos(i.pos))),96===this.input.codePointAt(n)?this.finishToken(24,i?null:t+r+"`"):(this.state.pos++,this.finishToken(25,i?null:t+r+"${"))}recordStrictModeErrors(e,t){var r=t.index;this.state.strict&&!this.state.strictErrors.has(r)?this.raise(e,t):this.state.strictErrors.set(r,[e,t])}readWord1(e){this.state.containsEsc=!1;var t="",r=this.state.pos,i=this.state.pos;for(void 0!==e&&(this.state.pos+=e<=65535?1:2);this.state.pos<this.length;){var n=this.codePointAtPos(this.state.pos);if(ue(n))this.state.pos+=n<=65535?1:2;else{if(92!==n)break;this.state.containsEsc=!0,t+=this.input.slice(i,this.state.pos);var a=this.state.curPosition(),s=this.state.pos===r?ce:ue;if(117!==this.input.charCodeAt(++this.state.pos)){this.raise(m.MissingUnicodeEscape,this.state.curPosition()),i=this.state.pos-1;continue}++this.state.pos;var o=this.readCodePoint(!0);null!==o&&(s(o)||this.raise(m.EscapedCharNotAnIdentifier,a),t+=String.fromCodePoint(o)),i=this.state.pos}}return t+this.input.slice(i,this.state.pos)}readWord(e){var t=this.readWord1(e),r=L.get(t);void 0!==r?this.finishToken(r,Z(r)):this.finishToken(132,t)}checkKeywordEscapes(){var{type:e}=this.state;$(e)&&this.state.containsEsc&&this.raise(m.InvalidEscapedReservedWord,this.state.startLoc,{reservedWord:Z(e)})}raise(t,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=t(r instanceof e?r:r.loc.start,i);if(!(2048&this.optionFlags))throw n;return this.isLookahead||this.state.errors.push(n),n}raiseOverwrite(t,r){for(var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=r instanceof e?r:r.loc.start,a=n.index,s=this.state.errors,o=s.length-1;o>=0;o--){var l=s[o];if(l.loc.index===a)return s[o]=t(n,i);if(l.loc.index<a)break}return this.raise(t,r,i)}updateContext(e){}unexpected(e,t){throw this.raise(m.UnexpectedToken,null!=e?e:this.state.startLoc,{expected:t?Z(t):null})}expectPlugin(e,t){if(this.hasPlugin(e))return!0;throw this.raise(m.MissingPlugin,null!=t?t:this.state.startLoc,{missingPlugin:[e]})}expectOnePlugin(e){if(!e.some((e=>this.hasPlugin(e))))throw this.raise(m.MissingOneOfPlugins,this.state.startLoc,{missingPlugin:e})}errorBuilder(e){return(t,r,i)=>{this.raise(e,st(t,r,i))}}}class ct{constructor(){this.privateNames=new Set,this.loneAccessors=new Map,this.undefinedPrivateNames=new Map}}class ut{constructor(e){this.parser=void 0,this.stack=[],this.undefinedPrivateNames=new Map,this.parser=e}current(){return this.stack[this.stack.length-1]}enter(){this.stack.push(new ct)}exit(){var e=this.stack.pop(),t=this.current();for(var[r,i]of Array.from(e.undefinedPrivateNames))t?t.undefinedPrivateNames.has(r)||t.undefinedPrivateNames.set(r,i):this.parser.raise(m.InvalidPrivateFieldResolution,i,{identifierName:r})}declarePrivateName(e,t,r){var{privateNames:i,loneAccessors:n,undefinedPrivateNames:a}=this.current(),s=i.has(e);if(3&t){var o=s&&n.get(e);if(o)(s=(3&o)===(3&t)||(4&o)!==(4&t))||n.delete(e);else s||n.set(e,t)}s&&this.parser.raise(m.PrivateNameRedeclaration,r,{identifierName:e}),i.add(e),a.delete(e)}usePrivateName(e,t){var r;for(r of this.stack)if(r.privateNames.has(e))return;r?r.undefinedPrivateNames.set(e,t):this.parser.raise(m.InvalidPrivateFieldResolution,t,{identifierName:e})}}class ht{constructor(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.type=e}canBeArrowParameterDeclaration(){return 2===this.type||1===this.type}isCertainlyParameterDeclaration(){return 3===this.type}}class dt extends ht{constructor(e){super(e),this.declarationErrors=new Map}recordDeclarationError(e,t){var r=t.index;this.declarationErrors.set(r,[e,t])}clearDeclarationError(e){this.declarationErrors.delete(e)}iterateErrors(e){this.declarationErrors.forEach(e)}}class ft{constructor(e){this.parser=void 0,this.stack=[new ht],this.parser=e}enter(e){this.stack.push(e)}exit(){this.stack.pop()}recordParameterInitializerError(e,t){for(var r=t.loc.start,{stack:i}=this,n=i.length-1,a=i[n];!a.isCertainlyParameterDeclaration();){if(!a.canBeArrowParameterDeclaration())return;a.recordDeclarationError(e,r),a=i[--n]}this.parser.raise(e,r)}recordArrowParameterBindingError(e,t){var{stack:r}=this,i=r[r.length-1],n=t.loc.start;if(i.isCertainlyParameterDeclaration())this.parser.raise(e,n);else{if(!i.canBeArrowParameterDeclaration())return;i.recordDeclarationError(e,n)}}recordAsyncArrowParametersError(e){for(var{stack:t}=this,r=t.length-1,i=t[r];i.canBeArrowParameterDeclaration();)2===i.type&&i.recordDeclarationError(m.AwaitBindingIdentifier,e),i=t[--r]}validateAsPattern(){var{stack:e}=this,t=e[e.length-1];t.canBeArrowParameterDeclaration()&&t.iterateErrors((t=>{var[r,i]=t;this.parser.raise(r,i);for(var n=e.length-2,a=e[n];a.canBeArrowParameterDeclaration();)a.clearDeclarationError(i.index),a=e[--n]}))}}function mt(){return new ht}class yt extends pt{addExtra(e,t,r){var i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(e){var{extra:n}=e;null==n&&(n={},e.extra=n),i?n[t]=r:Object.defineProperty(n,t,{enumerable:i,value:r})}}isContextual(e){return this.state.type===e&&!this.state.containsEsc}isUnparsedContextual(e,t){if(this.input.startsWith(t,e)){var r=this.input.charCodeAt(e+t.length);return!(ue(r)||55296==(64512&r))}return!1}isLookaheadContextual(e){var t=this.nextTokenStart();return this.isUnparsedContextual(t,e)}eatContextual(e){return!!this.isContextual(e)&&(this.next(),!0)}expectContextual(e,t){if(!this.eatContextual(e)){if(null!=t)throw this.raise(t,this.state.startLoc);this.unexpected(null,e)}}canInsertSemicolon(){return this.match(140)||this.match(8)||this.hasPrecedingLineBreak()}hasPrecedingLineBreak(){return Le(this.input,this.offsetToSourcePos(this.state.lastTokEndLoc.index),this.state.start)}hasFollowingLineBreak(){return Le(this.input,this.state.end,this.nextTokenStart())}isLineTerminator(){return this.eat(13)||this.canInsertSemicolon()}semicolon(){(!(arguments.length>0&&void 0!==arguments[0])||arguments[0]?this.isLineTerminator():this.eat(13))||this.raise(m.MissingSemicolon,this.state.lastTokEndLoc)}expect(e,t){this.eat(e)||this.unexpected(t,e)}tryParse(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state.clone(),r={node:null};try{var i=e((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;throw r.node=e,r}));if(this.state.errors.length>t.errors.length){var n=this.state;return this.state=t,this.state.tokensLength=n.tokensLength,{node:i,error:n.errors[t.errors.length],thrown:!1,aborted:!1,failState:n}}return{node:i,error:null,thrown:!1,aborted:!1,failState:null}}catch(e){var a=this.state;if(this.state=t,e instanceof SyntaxError)return{node:null,error:e,thrown:!0,aborted:!1,failState:a};if(e===r)return{node:r.node,error:null,thrown:!1,aborted:!0,failState:a};throw e}}checkExpressionErrors(e,t){if(!e)return!1;var{shorthandAssignLoc:r,doubleProtoLoc:i,privateKeyLoc:n,optionalParametersLoc:a,voidPatternLoc:s}=e;if(!t)return!!(r||i||a||n||s);null!=r&&this.raise(m.InvalidCoverInitializedName,r),null!=i&&this.raise(m.DuplicateProto,i),null!=n&&this.raise(m.UnexpectedPrivateField,n),null!=a&&this.unexpected(a),null!=s&&this.raise(m.InvalidCoverDiscardElement,s)}isLiteralPropertyName(){return z(this.state.type)}isPrivateName(e){return"PrivateName"===e.type}getPrivateNameSV(e){return e.id.name}hasPropertyAsPrivateName(e){return("MemberExpression"===e.type||"OptionalMemberExpression"===e.type)&&this.isPrivateName(e.property)}isObjectProperty(e){return"ObjectProperty"===e.type}isObjectMethod(e){return"ObjectMethod"===e.type}initializeScopes(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"module"===this.options.sourceType,t=this.state.labels;this.state.labels=[];var r=this.exportedIdentifiers;this.exportedIdentifiers=new Set;var i=this.inModule;this.inModule=e;var n=this.scope,a=this.getScopeHandler();this.scope=new a(this,e);var s=this.prodParam;this.prodParam=new qe;var o=this.classScope;this.classScope=new ut(this);var l=this.expressionScope;return this.expressionScope=new ft(this),()=>{this.state.labels=t,this.exportedIdentifiers=r,this.inModule=i,this.scope=n,this.prodParam=s,this.classScope=o,this.expressionScope=l}}enterInitialScopes(){var e=0;(this.inModule||1&this.optionFlags)&&(e|=2),32&this.optionFlags&&(e|=1);var t=!this.inModule&&"commonjs"===this.options.sourceType;(t||2&this.optionFlags)&&(e|=4),this.prodParam.enter(e);var r=t?514:1;4&this.optionFlags&&(r|=512),this.scope.enter(r)}checkDestructuringPrivate(e){var{privateKeyLoc:t}=e;null!==t&&this.expectPlugin("destructuringPrivate",t)}}class vt{constructor(){this.shorthandAssignLoc=null,this.doubleProtoLoc=null,this.privateKeyLoc=null,this.optionalParametersLoc=null,this.voidPatternLoc=null}}class Tt{constructor(e,r,i){this.type="",this.start=r,this.end=0,this.loc=new t(i),128&(null==e?void 0:e.optionFlags)&&(this.range=[r,0]),null!=e&&e.filename&&(this.loc.filename=e.filename)}}var gt=Tt.prototype;gt.__clone=function(){for(var e=new Tt(void 0,this.start,this.loc.start),t=Object.keys(this),r=0,i=t.length;r<i;r++){var n=t[r];"leadingComments"!==n&&"trailingComments"!==n&&"innerComments"!==n&&(e[n]=this[n])}return e};class St extends yt{startNode(){var e=this.state.startLoc;return new Tt(this,e.index,e)}startNodeAt(e){return new Tt(this,e.index,e)}startNodeAtNode(e){return this.startNodeAt(e.loc.start)}finishNode(e,t){return this.finishNodeAt(e,t,this.state.lastTokEndLoc)}finishNodeAt(e,t,r){return e.type=t,e.end=r.index,e.loc.end=r,128&this.optionFlags&&(e.range[1]=r.index),4096&this.optionFlags&&this.processComment(e),e}resetStartLocation(e,t){e.start=t.index,e.loc.start=t,128&this.optionFlags&&(e.range[0]=t.index)}resetEndLocation(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state.lastTokEndLoc;e.end=t.index,e.loc.end=t,128&this.optionFlags&&(e.range[1]=t.index)}resetStartLocationFromNode(e,t){this.resetStartLocation(e,t.loc.start)}castNodeTo(e,t){return e.type=t,e}cloneIdentifier(e){var{type:t,start:r,end:i,loc:n,range:a,name:s}=e,o=Object.create(gt);return o.type=t,o.start=r,o.end=i,o.loc=n,o.range=a,o.name=s,e.extra&&(o.extra=e.extra),o}cloneStringLiteral(e){var{type:t,start:r,end:i,loc:n,range:a,extra:s}=e,o=Object.create(gt);return o.type=t,o.start=r,o.end=i,o.loc=n,o.range=a,o.extra=s,o.value=e.value,o}}var xt=e=>"ParenthesizedExpression"===e.type?xt(e.expression):e;class bt extends St{toAssignable(e){var t,r,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=void 0;switch(("ParenthesizedExpression"===e.type||null!=(t=e.extra)&&t.parenthesized)&&(n=xt(e),i?"Identifier"===n.type?this.expressionScope.recordArrowParameterBindingError(m.InvalidParenthesizedAssignment,e):"CallExpression"===n.type||"MemberExpression"===n.type||this.isOptionalMemberExpression(n)||this.raise(m.InvalidParenthesizedAssignment,e):this.raise(m.InvalidParenthesizedAssignment,e)),e.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":case"VoidPattern":break;case"ObjectExpression":this.castNodeTo(e,"ObjectPattern");for(var a=0,s=e.properties.length,o=s-1;a<s;a++){var l,p=e.properties[a],c=a===o;this.toAssignableObjectExpressionProp(p,c,i),c&&"RestElement"===p.type&&null!=(l=e.extra)&&l.trailingCommaLoc&&this.raise(m.RestTrailingComma,e.extra.trailingCommaLoc)}break;case"ObjectProperty":var{key:u,value:h}=e;this.isPrivateName(u)&&this.classScope.usePrivateName(this.getPrivateNameSV(u),u.loc.start),this.toAssignable(h,i);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":this.castNodeTo(e,"ArrayPattern"),this.toAssignableList(e.elements,null==(r=e.extra)?void 0:r.trailingCommaLoc,i);break;case"AssignmentExpression":"="!==e.operator&&this.raise(m.MissingEqInAssignment,e.left.loc.end),this.castNodeTo(e,"AssignmentPattern"),delete e.operator,"VoidPattern"===e.left.type&&this.raise(m.VoidPatternInitializer,e.left),this.toAssignable(e.left,i);break;case"ParenthesizedExpression":this.toAssignable(n,i)}}toAssignableObjectExpressionProp(e,t,r){if("ObjectMethod"===e.type)this.raise("get"===e.kind||"set"===e.kind?m.PatternHasAccessor:m.PatternHasMethod,e.key);else if("SpreadElement"===e.type){this.castNodeTo(e,"RestElement");var i=e.argument;this.checkToRestConversion(i,!1),this.toAssignable(i,r),t||this.raise(m.RestTrailingComma,e)}else this.toAssignable(e,r)}toAssignableList(e,t,r){for(var i=e.length-1,n=0;n<=i;n++){var a=e[n];a&&(this.toAssignableListItem(e,n,r),"RestElement"===a.type&&(n<i?this.raise(m.RestTrailingComma,a):t&&this.raise(m.RestTrailingComma,t)))}}toAssignableListItem(e,t,r){var i=e[t];if("SpreadElement"===i.type){this.castNodeTo(i,"RestElement");var n=i.argument;this.checkToRestConversion(n,!0),this.toAssignable(n,r)}else this.toAssignable(i,r)}isAssignable(e,t){switch(e.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":case"VoidPattern":return!0;case"ObjectExpression":var r=e.properties.length-1;return e.properties.every(((e,t)=>"ObjectMethod"!==e.type&&(t===r||"SpreadElement"!==e.type)&&this.isAssignable(e)));case"ObjectProperty":return this.isAssignable(e.value);case"SpreadElement":return this.isAssignable(e.argument);case"ArrayExpression":return e.elements.every((e=>null===e||this.isAssignable(e)));case"AssignmentExpression":return"="===e.operator;case"ParenthesizedExpression":return this.isAssignable(e.expression);case"MemberExpression":case"OptionalMemberExpression":return!t;default:return!1}}toReferencedList(e,t){return e}toReferencedListDeep(e,t){for(var r of(this.toReferencedList(e,t),e))"ArrayExpression"===(null==r?void 0:r.type)&&this.toReferencedListDeep(r.elements)}parseSpread(e){var t=this.startNode();return this.next(),t.argument=this.parseMaybeAssignAllowIn(e,void 0),this.finishNode(t,"SpreadElement")}parseRestBinding(){var e=this.startNode();this.next();var t=this.parseBindingAtom();return"VoidPattern"===t.type&&this.raise(m.UnexpectedVoidPattern,t),e.argument=t,this.finishNode(e,"RestElement")}parseBindingAtom(){switch(this.state.type){case 0:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(3,93,1),this.finishNode(e,"ArrayPattern");case 5:return this.parseObjectLike(8,!0);case 88:return this.parseVoidPattern(null)}return this.parseIdentifier()}parseBindingList(e,t,r){for(var i=1&r,n=[],a=!0;!this.eat(e);)if(a?a=!1:this.expect(12),i&&this.match(12))n.push(null);else{if(this.eat(e))break;if(this.match(21)){var s=this.parseRestBinding();if((this.hasPlugin("flow")||2&r)&&(s=this.parseFunctionParamType(s)),n.push(s),!this.checkCommaAfterRest(t)){this.expect(e);break}}else{var o=[];if(2&r)for(this.match(26)&&this.hasPlugin("decorators")&&this.raise(m.UnsupportedParameterDecorator,this.state.startLoc);this.match(26);)o.push(this.parseDecorator());n.push(this.parseBindingElement(r,o))}}return n}parseBindingRestProperty(e){return this.next(),this.hasPlugin("discardBinding")&&this.match(88)?(e.argument=this.parseVoidPattern(null),this.raise(m.UnexpectedVoidPattern,e.argument)):e.argument=this.parseIdentifier(),this.checkCommaAfterRest(125),this.finishNode(e,"RestElement")}parseBindingProperty(){var{type:e,startLoc:t}=this.state;if(21===e)return this.parseBindingRestProperty(this.startNode());var r=this.startNode();return 139===e?(this.expectPlugin("destructuringPrivate",t),this.classScope.usePrivateName(this.state.value,t),r.key=this.parsePrivateName()):this.parsePropertyName(r),r.method=!1,this.parseObjPropValue(r,t,!1,!1,!0,!1)}parseBindingElement(e,t){var r=this.parseMaybeDefault();return(this.hasPlugin("flow")||2&e)&&this.parseFunctionParamType(r),t.length&&(r.decorators=t,this.resetStartLocationFromNode(r,t[0])),this.parseMaybeDefault(r.loc.start,r)}parseFunctionParamType(e){return e}parseMaybeDefault(e,t){if(null!=e||(e=this.state.startLoc),t=null!=t?t:this.parseBindingAtom(),!this.eat(29))return t;var r=this.startNodeAt(e);return"VoidPattern"===t.type&&this.raise(m.VoidPatternInitializer,t),r.left=t,r.right=this.parseMaybeAssignAllowIn(),this.finishNode(r,"AssignmentPattern")}isValidLVal(e,t,r,i){switch(e){case"AssignmentPattern":return"left";case"RestElement":return"argument";case"ObjectProperty":return"value";case"ParenthesizedExpression":return"expression";case"ArrayPattern":return"elements";case"ObjectPattern":return"properties";case"VoidPattern":return!0;case"CallExpression":if(!t&&!this.state.strict&&8192&this.optionFlags)return!0}return!1}isOptionalMemberExpression(e){return"OptionalMemberExpression"===e.type}checkLVal(e,t){var r,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:64,n=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=arguments.length>4&&void 0!==arguments[4]&&arguments[4],s=arguments.length>5&&void 0!==arguments[5]&&arguments[5],o=arguments.length>6&&void 0!==arguments[6]&&arguments[6],l=e.type;if(!this.isObjectMethod(e)){var p=this.isOptionalMemberExpression(e);if(p||"MemberExpression"===l)return p&&(this.expectPlugin("optionalChainingAssign",e.loc.start),"AssignmentExpression"!==t.type&&this.raise(m.InvalidLhsOptionalChaining,e,{ancestor:t})),void(64!==i&&this.raise(m.InvalidPropertyBindingPattern,e));if("Identifier"!==l){"VoidPattern"===l&&"CatchClause"===t.type&&this.raise(m.VoidPatternCatchClauseParam,e);var c=xt(e);o||(o="CallExpression"===c.type&&("Import"===c.callee.type||"Super"===c.callee.type));var u=this.isValidLVal(l,o,!(s||null!=(r=e.extra)&&r.parenthesized)&&"AssignmentExpression"===t.type,i);if(!0!==u)if(!1!==u){var h,d;"string"==typeof u?(h=u,d="ParenthesizedExpression"===l):[h,d]=u;var f="ArrayPattern"===l||"ObjectPattern"===l?{type:l}:t,y=e[h];if(Array.isArray(y))for(var v of y)v&&this.checkLVal(v,f,i,n,a,d,!0);else y&&this.checkLVal(y,f,i,n,a,d,o)}else{var T=64===i?m.InvalidLhs:m.InvalidLhsBinding;this.raise(T,e,{ancestor:t})}}else{this.checkIdentifier(e,i,a);var{name:g}=e;n&&(n.has(g)?this.raise(m.ParamDupe,e):n.add(g))}}}checkIdentifier(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.state.strict&&(r?Se(e.name,this.inModule):ge(e.name))&&(64===t?this.raise(m.StrictEvalArguments,e,{referenceName:e.name}):this.raise(m.StrictEvalArgumentsBinding,e,{bindingName:e.name})),8192&t&&"let"===e.name&&this.raise(m.LetInLexicalBinding,e),64&t||this.declareNameFromIdentifier(e,t)}declareNameFromIdentifier(e,t){this.scope.declareName(e.name,t,e.loc.start)}checkToRestConversion(e,t){switch(e.type){case"ParenthesizedExpression":this.checkToRestConversion(e.expression,t);break;case"Identifier":case"MemberExpression":break;case"ArrayExpression":case"ObjectExpression":if(t)break;default:this.raise(m.InvalidRestAssignmentPattern,e)}}checkCommaAfterRest(e){return!!this.match(12)&&(this.raise(this.lookaheadCharCode()===e?m.RestTrailingComma:m.ElementAfterRest,this.state.startLoc),!0)}}var Pt=/in(?:stanceof)?|as|satisfies/y;function Et(e){if(!e)throw new Error("Assert fail")}var At=f(x||(x=c(["typescript"])))({AbstractMethodHasImplementation:e=>{var{methodName:t}=e;return"Method '".concat(t,"' cannot have an implementation because it is marked abstract.")},AbstractPropertyHasInitializer:e=>{var{propertyName:t}=e;return"Property '".concat(t,"' 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:e=>{var{kind:t}=e;return"'declare' is not allowed in ".concat(t,"ters.")},DeclareClassFieldHasInitializer:"Initializers are not allowed in ambient contexts.",DeclareFunctionHasImplementation:"An implementation cannot be declared in ambient contexts.",DuplicateAccessibilityModifier:e=>{var{modifier:t}=e;return"Accessibility modifier already seen: '".concat(t,"'.")},DuplicateModifier:e=>{var{modifier:t}=e;return"Duplicate modifier: '".concat(t,"'.")},EmptyHeritageClauseType:e=>{var{token:t}=e;return"'".concat(t,"' 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:e=>{var{modifiers:t}=e;return"'".concat(t[0],"' modifier cannot be used with '").concat(t[1],"' modifier.")},IndexSignatureHasAbstract:"Index signatures cannot have the 'abstract' modifier.",IndexSignatureHasAccessibility:e=>{var{modifier:t}=e;return"Index signatures cannot have an accessibility modifier ('".concat(t,"').")},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.",InvalidHeritageClauseType:e=>{var{token:t}=e;return"'".concat(t,"' list can only include identifiers or qualified-names with optional type arguments.")},InvalidModifierOnAwaitUsingDeclaration:e=>"'".concat(e,"' modifier cannot appear on an await using declaration."),InvalidModifierOnTypeMember:e=>{var{modifier:t}=e;return"'".concat(t,"' modifier cannot appear on a type member.")},InvalidModifierOnTypeParameter:e=>{var{modifier:t}=e;return"'".concat(t,"' modifier cannot appear on a type parameter.")},InvalidModifierOnTypeParameterPositions:e=>{var{modifier:t}=e;return"'".concat(t,"' modifier can only appear on a type parameter of a class, interface or type alias.")},InvalidModifierOnUsingDeclaration:e=>"'".concat(e,"' modifier cannot appear on a using declaration."),InvalidModifiersOrder:e=>{var{orderedModifiers:t}=e;return"'".concat(t[0],"' modifier must precede '").concat(t[1],"' modifier.")},InvalidPropertyAccessAfterInstantiationExpression:"Invalid property access after an instantiation expression. You can either wrap the instantiation expression in parentheses, or delete the type arguments.",InvalidTupleMemberLabel:"Tuple members must be labeled with a simple identifier.",MissingInterfaceName:"'interface' declarations must be followed by an identifier.",NonAbstractClassHasAbstractMethod:"Abstract methods can only appear within an abstract class.",NonClassMethodPropertyHasAbstractModifier:"'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:e=>{var{modifier:t}=e;return"Private elements cannot have an accessibility modifier ('".concat(t,"').")},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:e=>{var{typeParameterName:t}=e;return"Single type parameter ".concat(t," should have a trailing comma. Example usage: <").concat(t,",>.")},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:e=>{var{type:t}=e;return"Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ".concat(t,".")},UsingDeclarationInAmbientContext:e=>"'".concat(e,"' declarations are not allowed in ambient contexts.")});function Ct(e){return"private"===e||"public"===e||"protected"===e}function wt(e){return"in"===e||"out"===e}function It(e){if("MemberExpression"!==e.type)return!1;var{computed:t,property:r}=e;return(!t||"StringLiteral"===r.type||!("TemplateLiteral"!==r.type||r.expressions.length>0))&&Ot(e.object)}function Nt(e,t){var r,{type:i}=e;if(null!=(r=e.extra)&&r.parenthesized)return!1;if(t){if("Literal"===i){var{value:n}=e;if("string"==typeof n||"boolean"==typeof n)return!0}}else if("StringLiteral"===i||"BooleanLiteral"===i)return!0;return!(!kt(e,t)&&!function(e,t){if("UnaryExpression"===e.type){var{operator:r,argument:i}=e;if("-"===r&&kt(i,t))return!0}return!1}(e,t))||("TemplateLiteral"===i&&0===e.expressions.length||!!It(e))}function kt(e,t){return t?"Literal"===e.type&&("number"==typeof e.value||"bigint"in e):"NumericLiteral"===e.type||"BigIntLiteral"===e.type}function Ot(e){return"Identifier"===e.type||"MemberExpression"===e.type&&!e.computed&&Ot(e.object)}var Dt=f(b||(b=c(["placeholders"])))({ClassNameIsRequired:"A class name is required.",UnexpectedSpace:"Unexpected space in placeholder."}),_t=["minimal","fsharp","hack","smart"],Lt=["^^","@@","^","%","#"];var Mt={estree:e=>class extends e{parse(){var e=E(super.parse());return 256&this.optionFlags&&(e.tokens=e.tokens.map(E)),e}parseRegExpLiteral(e){var{pattern:t,flags:r}=e,i=null;try{i=new RegExp(t,r)}catch(e){}var n=this.estreeParseLiteral(i);return n.regex={pattern:t,flags:r},n}parseBigIntLiteral(e){var t;try{t=BigInt(e)}catch(e){t=null}var r=this.estreeParseLiteral(t);return r.bigint=String(r.value||e),r}parseDecimalLiteral(e){var t=this.estreeParseLiteral(null);return t.decimal=String(t.value||e),t}estreeParseLiteral(e){return this.parseLiteral(e,"Literal")}parseStringLiteral(e){return this.estreeParseLiteral(e)}parseNumericLiteral(e){return this.estreeParseLiteral(e)}parseNullLiteral(){return this.estreeParseLiteral(null)}parseBooleanLiteral(e){return this.estreeParseLiteral(e)}estreeParseChainExpression(e,t){var r=this.startNodeAtNode(e);return r.expression=e,this.finishNodeAt(r,"ChainExpression",t)}directiveToStmt(e){var t=e.value;delete e.value,this.castNodeTo(t,"Literal"),t.raw=t.extra.raw,t.value=t.extra.expressionValue;var r=this.castNodeTo(e,"ExpressionStatement");return r.expression=t,r.directive=t.extra.rawValue,delete t.extra,r}fillOptionalPropertiesForTSESLint(e){}cloneEstreeStringLiteral(e){var{start:t,end:r,loc:i,range:n,raw:a,value:s}=e,o=Object.create(e.constructor.prototype);return o.type="Literal",o.start=t,o.end=r,o.loc=i,o.range=n,o.raw=a,o.value=s,o}initFunction(e,t){super.initFunction(e,t),e.expression=!1}checkDeclaration(e){null!=e&&this.isObjectProperty(e)?this.checkDeclaration(e.value):super.checkDeclaration(e)}getObjectOrClassMethodParams(e){return e.value.params}isValidDirective(e){var t;return"ExpressionStatement"===e.type&&"Literal"===e.expression.type&&"string"==typeof e.expression.value&&!(null!=(t=e.expression.extra)&&t.parenthesized)}parseBlockBody(e,t,r,i,n){super.parseBlockBody(e,t,r,i,n);var a=e.directives.map((e=>this.directiveToStmt(e)));e.body=a.concat(e.body),delete e.directives}parsePrivateName(){var e=super.parsePrivateName();return this.getPluginOption("estree","classFeatures")?this.convertPrivateNameToPrivateIdentifier(e):e}convertPrivateNameToPrivateIdentifier(e){var t=super.getPrivateNameSV(e);return delete e.id,e.name=t,this.castNodeTo(e,"PrivateIdentifier")}isPrivateName(e){return this.getPluginOption("estree","classFeatures")?"PrivateIdentifier"===e.type:super.isPrivateName(e)}getPrivateNameSV(e){return this.getPluginOption("estree","classFeatures")?e.name:super.getPrivateNameSV(e)}parseLiteral(e,t){var r=super.parseLiteral(e,t);return r.raw=r.extra.raw,delete r.extra,r}parseFunctionBody(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];super.parseFunctionBody(e,t,r),e.expression="BlockStatement"!==e.body.type}parseMethod(e,t,r,i,n,a){var s=arguments.length>6&&void 0!==arguments[6]&&arguments[6],o=this.startNode();o.kind=e.kind,delete(o=super.parseMethod(o,t,r,i,n,a,s)).kind;var{typeParameters:l}=e;l&&(delete e.typeParameters,o.typeParameters=l,this.resetStartLocationFromNode(o,l));var p=this.castNodeTo(o,"FunctionExpression");return e.value=p,"ClassPrivateMethod"===a&&(e.computed=!1),"ObjectMethod"===a?("method"===e.kind&&(e.kind="init"),e.shorthand=!1,this.finishNode(e,"Property")):this.finishNode(e,"MethodDefinition")}nameIsConstructor(e){return"Literal"===e.type?"constructor"===e.value:super.nameIsConstructor(e)}parseClassProperty(){var e=super.parseClassProperty(...arguments);return this.getPluginOption("estree","classFeatures")?(this.castNodeTo(e,"PropertyDefinition"),e):e}parseClassPrivateProperty(){var e=super.parseClassPrivateProperty(...arguments);return this.getPluginOption("estree","classFeatures")?(this.castNodeTo(e,"PropertyDefinition"),e.computed=!1,e):e}parseClassAccessorProperty(e){var t=super.parseClassAccessorProperty(e);return this.getPluginOption("estree","classFeatures")?(t.abstract&&this.hasPlugin("typescript")?(delete t.abstract,this.castNodeTo(t,"TSAbstractAccessorProperty")):this.castNodeTo(t,"AccessorProperty"),t):t}parseObjectProperty(e,t,r,i){var n=super.parseObjectProperty(e,t,r,i);return n&&(n.kind="init",this.castNodeTo(n,"Property")),n}finishObjectProperty(e){return e.kind="init",this.finishNode(e,"Property")}isValidLVal(e,t,r,i){return"Property"===e?"value":super.isValidLVal(e,t,r,i)}isAssignable(e,t){return null!=e&&this.isObjectProperty(e)?this.isAssignable(e.value,t):super.isAssignable(e,t)}toAssignable(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(null!=e&&this.isObjectProperty(e)){var{key:r,value:i}=e;this.isPrivateName(r)&&this.classScope.usePrivateName(this.getPrivateNameSV(r),r.loc.start),this.toAssignable(i,t)}else super.toAssignable(e,t)}toAssignableObjectExpressionProp(e,t,r){"Property"!==e.type||"get"!==e.kind&&"set"!==e.kind?"Property"===e.type&&e.method?this.raise(m.PatternHasMethod,e.key):super.toAssignableObjectExpressionProp(e,t,r):this.raise(m.PatternHasAccessor,e.key)}finishCallExpression(e,t){var r,i,n=super.finishCallExpression(e,t);"Import"===n.callee.type?(this.castNodeTo(n,"ImportExpression"),n.source=n.arguments[0],n.options=null!=(r=n.arguments[1])?r:null,n.attributes=null!=(i=n.arguments[1])?i:null,delete n.arguments,delete n.callee):"OptionalCallExpression"===n.type?this.castNodeTo(n,"CallExpression"):n.optional=!1;return n}toReferencedArguments(e){"ImportExpression"!==e.type&&super.toReferencedArguments(e)}parseExport(e,t){var r=this.state.lastTokStartLoc,i=super.parseExport(e,t);switch(i.type){case"ExportAllDeclaration":i.exported=null;break;case"ExportNamedDeclaration":1===i.specifiers.length&&"ExportNamespaceSpecifier"===i.specifiers[0].type&&(this.castNodeTo(i,"ExportAllDeclaration"),i.exported=i.specifiers[0].exported,delete i.specifiers);case"ExportDefaultDeclaration":var n,{declaration:a}=i;"ClassDeclaration"===(null==a?void 0:a.type)&&(null==(n=a.decorators)?void 0:n.length)>0&&a.start===i.start&&this.resetStartLocation(i,r)}return i}stopParseSubscript(e,t){var r=super.stopParseSubscript(e,t);return t.optionalChainMember?this.estreeParseChainExpression(r,e.loc.end):r}parseMember(e,t,r,i,n){var a=super.parseMember(e,t,r,i,n);return"OptionalMemberExpression"===a.type?this.castNodeTo(a,"MemberExpression"):a.optional=!1,a}isOptionalMemberExpression(e){return"ChainExpression"===e.type?"MemberExpression"===e.expression.type:super.isOptionalMemberExpression(e)}hasPropertyAsPrivateName(e){return"ChainExpression"===e.type&&(e=e.expression),super.hasPropertyAsPrivateName(e)}isObjectProperty(e){return"Property"===e.type&&"init"===e.kind&&!e.method}isObjectMethod(e){return"Property"===e.type&&(e.method||"get"===e.kind||"set"===e.kind)}castNodeTo(e,t){var r=super.castNodeTo(e,t);return this.fillOptionalPropertiesForTSESLint(r),r}cloneIdentifier(e){var t=super.cloneIdentifier(e);return this.fillOptionalPropertiesForTSESLint(t),t}cloneStringLiteral(e){return"Literal"===e.type?this.cloneEstreeStringLiteral(e):super.cloneStringLiteral(e)}finishNodeAt(e,t,r){return E(super.finishNodeAt(e,t,r))}finishNode(e,t){var r=super.finishNode(e,t);return this.fillOptionalPropertiesForTSESLint(r),r}resetStartLocation(e,t){super.resetStartLocation(e,t),E(e)}resetEndLocation(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.state.lastTokEndLoc;super.resetEndLocation(e,t),E(e)}},jsx:e=>class extends e{jsxReadToken(){for(var e="",t=this.state.pos;;){if(this.state.pos>=this.length)throw this.raise(je.UnterminatedJsxContent,this.state.startLoc);var r=this.input.charCodeAt(this.state.pos);switch(r){case 60:case 123:return this.state.pos===this.state.start?void(60===r&&this.state.canStartJSXElement?(++this.state.pos,this.finishToken(143)):super.getTokenFromCode(r)):(e+=this.input.slice(t,this.state.pos),void this.finishToken(142,e));case 38:e+=this.input.slice(t,this.state.pos),e+=this.jsxReadEntity(),t=this.state.pos;break;default:_e(r)?(e+=this.input.slice(t,this.state.pos),e+=this.jsxReadNewLine(!0),t=this.state.pos):++this.state.pos}}}jsxReadNewLine(e){var t,r=this.input.charCodeAt(this.state.pos);return++this.state.pos,13===r&&10===this.input.charCodeAt(this.state.pos)?(++this.state.pos,t=e?"\n":"\r\n"):t=String.fromCharCode(r),++this.state.curLine,this.state.lineStart=this.state.pos,t}jsxReadString(e){for(var t="",r=++this.state.pos;;){if(this.state.pos>=this.length)throw this.raise(m.UnterminatedString,this.state.startLoc);var i=this.input.charCodeAt(this.state.pos);if(i===e)break;38===i?(t+=this.input.slice(r,this.state.pos),t+=this.jsxReadEntity(),r=this.state.pos):_e(i)?(t+=this.input.slice(r,this.state.pos),t+=this.jsxReadNewLine(!1),r=this.state.pos):++this.state.pos}t+=this.input.slice(r,this.state.pos++),this.finishToken(134,t)}jsxReadEntity(){var e=++this.state.pos;if(35===this.codePointAtPos(this.state.pos)){++this.state.pos;var t=10;120===this.codePointAtPos(this.state.pos)&&(t=16,++this.state.pos);var r=this.readInt(t,void 0,!1,"bail");if(null!==r&&59===this.codePointAtPos(this.state.pos))return++this.state.pos,String.fromCodePoint(r)}else{for(var i=0,n=!1;i++<10&&this.state.pos<this.length&&!(n=59===this.codePointAtPos(this.state.pos));)++this.state.pos;if(n){var a=this.input.slice(e,this.state.pos),s=Oe[a];if(++this.state.pos,s)return s}}return this.state.pos=e,"&"}jsxReadWord(){var e,t=this.state.pos;do{e=this.input.charCodeAt(++this.state.pos)}while(ue(e)||45===e);this.finishToken(141,this.input.slice(t,this.state.pos))}jsxParseIdentifier(){var e=this.startNode();return this.match(141)?e.name=this.state.value:$(this.state.type)?e.name=Z(this.state.type):this.unexpected(),this.next(),this.finishNode(e,"JSXIdentifier")}jsxParseNamespacedName(){var e=this.state.startLoc,t=this.jsxParseIdentifier();if(!this.eat(14))return t;var r=this.startNodeAt(e);return r.namespace=t,r.name=this.jsxParseIdentifier(),this.finishNode(r,"JSXNamespacedName")}jsxParseElementName(){var e=this.state.startLoc,t=this.jsxParseNamespacedName();if("JSXNamespacedName"===t.type)return t;for(;this.eat(16);){var r=this.startNodeAt(e);r.object=t,r.property=this.jsxParseIdentifier(),t=this.finishNode(r,"JSXMemberExpression")}return t}jsxParseAttributeValue(){var e;switch(this.state.type){case 5:return e=this.startNode(),this.setContext(w.brace),this.next(),"JSXEmptyExpression"===(e=this.jsxParseExpressionContainer(e,w.j_oTag)).expression.type&&this.raise(je.AttributeIsEmpty,e),e;case 143:case 134:return this.parseExprAtom();default:throw this.raise(je.UnsupportedJsxValue,this.state.startLoc)}}jsxParseEmptyExpression(){var e=this.startNodeAt(this.state.lastTokEndLoc);return this.finishNodeAt(e,"JSXEmptyExpression",this.state.startLoc)}jsxParseSpreadChild(e){return this.next(),e.expression=this.parseExpression(),this.setContext(w.j_expr),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(e,"JSXSpreadChild")}jsxParseExpressionContainer(e,t){if(this.match(8))e.expression=this.jsxParseEmptyExpression();else{var r=this.parseExpression();e.expression=r}return this.setContext(t),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(e,"JSXExpressionContainer")}jsxParseAttribute(){var e=this.startNode();return this.match(5)?(this.setContext(w.brace),this.next(),this.expect(21),e.argument=this.parseMaybeAssignAllowIn(),this.setContext(w.j_oTag),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(e,"JSXSpreadAttribute")):(e.name=this.jsxParseNamespacedName(),e.value=this.eat(29)?this.jsxParseAttributeValue():null,this.finishNode(e,"JSXAttribute"))}jsxParseOpeningElementAt(e){var t=this.startNodeAt(e);return this.eat(144)?this.finishNode(t,"JSXOpeningFragment"):(t.name=this.jsxParseElementName(),this.jsxParseOpeningElementAfterName(t))}jsxParseOpeningElementAfterName(e){for(var t=[];!this.match(56)&&!this.match(144);)t.push(this.jsxParseAttribute());return e.attributes=t,e.selfClosing=this.eat(56),this.expect(144),this.finishNode(e,"JSXOpeningElement")}jsxParseClosingElementAt(e){var t=this.startNodeAt(e);return this.eat(144)?this.finishNode(t,"JSXClosingFragment"):(t.name=this.jsxParseElementName(),this.expect(144),this.finishNode(t,"JSXClosingElement"))}jsxParseElementAt(e){var t=this.startNodeAt(e),r=[],i=this.jsxParseOpeningElementAt(e),n=null;if(!i.selfClosing){e:for(;;)switch(this.state.type){case 143:if(e=this.state.startLoc,this.next(),this.eat(56)){n=this.jsxParseClosingElementAt(e);break e}r.push(this.jsxParseElementAt(e));break;case 142:r.push(this.parseLiteral(this.state.value,"JSXText"));break;case 5:var a=this.startNode();this.setContext(w.brace),this.next(),this.match(21)?r.push(this.jsxParseSpreadChild(a)):r.push(this.jsxParseExpressionContainer(a,w.j_expr));break;default:this.unexpected()}Re(i)&&!Re(n)&&null!==n?this.raise(je.MissingClosingTagFragment,n):!Re(i)&&Re(n)?this.raise(je.MissingClosingTagElement,n,{openingTagName:Ue(i.name)}):Re(i)||Re(n)||Ue(n.name)!==Ue(i.name)&&this.raise(je.MissingClosingTagElement,n,{openingTagName:Ue(i.name)})}if(Re(i)?(t.openingFragment=i,t.closingFragment=n):(t.openingElement=i,t.closingElement=n),t.children=r,this.match(47))throw this.raise(je.UnwrappedAdjacentJSXElements,this.state.startLoc);return Re(i)?this.finishNode(t,"JSXFragment"):this.finishNode(t,"JSXElement")}jsxParseElement(){var e=this.state.startLoc;return this.next(),this.jsxParseElementAt(e)}setContext(e){var{context:t}=this.state;t[t.length-1]=e}parseExprAtom(e){return this.match(143)?this.jsxParseElement():this.match(47)&&33!==this.input.charCodeAt(this.state.pos)?(this.replaceToken(143),this.jsxParseElement()):super.parseExprAtom(e)}skipSpace(){this.curContext().preserveSpace||super.skipSpace()}getTokenFromCode(e){var t=this.curContext();if(t!==w.j_expr){if(t===w.j_oTag||t===w.j_cTag){if(ce(e))return void this.jsxReadWord();if(62===e)return++this.state.pos,void this.finishToken(144);if((34===e||39===e)&&t===w.j_oTag)return void this.jsxReadString(e)}if(60===e&&this.state.canStartJSXElement&&33!==this.input.charCodeAt(this.state.pos+1))return++this.state.pos,void this.finishToken(143);super.getTokenFromCode(e)}else this.jsxReadToken()}updateContext(e){var{context:t,type:r}=this.state;if(56===r&&143===e)t.splice(-2,2,w.j_cTag),this.state.canStartJSXElement=!1;else if(143===r)t.push(w.j_oTag);else if(144===r){var i=t[t.length-1];i===w.j_oTag&&56===e||i===w.j_cTag?(t.pop(),this.state.canStartJSXElement=t[t.length-1]===w.j_expr):(this.setContext(w.j_expr),this.state.canStartJSXElement=!0)}else this.state.canStartJSXElement=K[r]}},flow:e=>class extends e{constructor(){super(...arguments),this.flowPragma=void 0}getScopeHandler(){return Ae}shouldParseTypes(){return this.getPluginOption("flow","all")||"flow"===this.flowPragma}finishToken(e,t){134!==e&&13!==e&&28!==e&&void 0===this.flowPragma&&(this.flowPragma=null),super.finishToken(e,t)}addComment(e){if(void 0===this.flowPragma){var t=ke.exec(e.value);if(t)if("flow"===t[1])this.flowPragma="flow";else{if("noflow"!==t[1])throw new Error("Unexpected flow pragma");this.flowPragma="noflow"}else;}super.addComment(e)}flowParseTypeInitialiser(e){var t=this.state.inType;this.state.inType=!0,this.expect(e||14);var r=this.flowParseType();return this.state.inType=t,r}flowParsePredicate(){var e=this.startNode(),t=this.state.startLoc;return this.next(),this.expectContextual(110),this.state.lastTokStartLoc.index>t.index+1&&this.raise(we.UnexpectedSpaceBetweenModuloChecks,t),this.eat(10)?(e.value=super.parseExpression(),this.expect(11),this.finishNode(e,"DeclaredPredicate")):this.finishNode(e,"InferredPredicate")}flowParseTypeAndPredicateInitialiser(){var e=this.state.inType;this.state.inType=!0,this.expect(14);var t=null,r=null;return this.match(54)?(this.state.inType=e,r=this.flowParsePredicate()):(t=this.flowParseType(),this.state.inType=e,this.match(54)&&(r=this.flowParsePredicate())),[t,r]}flowParseDeclareClass(e){return this.next(),this.flowParseInterfaceish(e,!0),this.finishNode(e,"DeclareClass")}flowParseDeclareFunction(e){this.next();var t=e.id=this.parseIdentifier(),r=this.startNode(),i=this.startNode();this.match(47)?r.typeParameters=this.flowParseTypeParameterDeclaration():r.typeParameters=null,this.expect(10);var n=this.flowParseFunctionTypeParams();return r.params=n.params,r.rest=n.rest,r.this=n._this,this.expect(11),[r.returnType,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),i.typeAnnotation=this.finishNode(r,"FunctionTypeAnnotation"),t.typeAnnotation=this.finishNode(i,"TypeAnnotation"),this.resetEndLocation(t),this.semicolon(),this.scope.declareName(e.id.name,2048,e.id.loc.start),this.finishNode(e,"DeclareFunction")}flowParseDeclare(e,t){if(this.match(80))return this.flowParseDeclareClass(e);if(this.match(68))return this.flowParseDeclareFunction(e);if(this.match(74))return this.flowParseDeclareVariable(e);if(this.eatContextual(127))return this.match(16)?this.flowParseDeclareModuleExports(e):(t&&this.raise(we.NestedDeclareModule,this.state.lastTokStartLoc),this.flowParseDeclareModule(e));if(this.isContextual(130))return this.flowParseDeclareTypeAlias(e);if(this.isContextual(131))return this.flowParseDeclareOpaqueType(e);if(this.isContextual(129))return this.flowParseDeclareInterface(e);if(this.match(82))return this.flowParseDeclareExportDeclaration(e,t);throw this.unexpected()}flowParseDeclareVariable(e){return this.next(),e.id=this.flowParseTypeAnnotatableIdentifier(!0),this.scope.declareName(e.id.name,5,e.id.loc.start),this.semicolon(),this.finishNode(e,"DeclareVariable")}flowParseDeclareModule(e){this.scope.enter(0),this.match(134)?e.id=super.parseExprAtom():e.id=this.parseIdentifier();var t=e.body=this.startNode(),r=t.body=[];for(this.expect(5);!this.match(8);){var i=this.startNode();this.match(83)?(this.next(),this.isContextual(130)||this.match(87)||this.raise(we.InvalidNonTypeImportInDeclareModule,this.state.lastTokStartLoc),r.push(super.parseImport(i))):(this.expectContextual(125,we.UnsupportedStatementInDeclareModule),r.push(this.flowParseDeclare(i,!0)))}this.scope.exit(),this.expect(8),this.finishNode(t,"BlockStatement");var n=null,a=!1;return r.forEach((e=>{!function(e){return"DeclareExportAllDeclaration"===e.type||"DeclareExportDeclaration"===e.type&&(!e.declaration||"TypeAlias"!==e.declaration.type&&"InterfaceDeclaration"!==e.declaration.type)}(e)?"DeclareModuleExports"===e.type&&(a&&this.raise(we.DuplicateDeclareModuleExports,e),"ES"===n&&this.raise(we.AmbiguousDeclareModuleKind,e),n="CommonJS",a=!0):("CommonJS"===n&&this.raise(we.AmbiguousDeclareModuleKind,e),n="ES")})),e.kind=n||"CommonJS",this.finishNode(e,"DeclareModule")}flowParseDeclareExportDeclaration(e,t){if(this.expect(82),this.eat(65))return this.match(68)||this.match(80)?e.declaration=this.flowParseDeclare(this.startNode()):(e.declaration=this.flowParseType(),this.semicolon()),e.default=!0,this.finishNode(e,"DeclareExportDeclaration");if(this.match(75)||this.isLet()||(this.isContextual(130)||this.isContextual(129))&&!t){var r=this.state.value;throw this.raise(we.UnsupportedDeclareExportKind,this.state.startLoc,{unsupportedExportKind:r,suggestion:Ne[r]})}if(this.match(74)||this.match(68)||this.match(80)||this.isContextual(131))return e.declaration=this.flowParseDeclare(this.startNode()),e.default=!1,this.finishNode(e,"DeclareExportDeclaration");if(this.match(55)||this.match(5)||this.isContextual(129)||this.isContextual(130)||this.isContextual(131))return"ExportNamedDeclaration"===(e=this.parseExport(e,null)).type?(e.default=!1,delete e.exportKind,this.castNodeTo(e,"DeclareExportDeclaration")):this.castNodeTo(e,"DeclareExportAllDeclaration");throw this.unexpected()}flowParseDeclareModuleExports(e){return this.next(),this.expectContextual(111),e.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(e,"DeclareModuleExports")}flowParseDeclareTypeAlias(e){this.next();var t=this.flowParseTypeAlias(e);return this.castNodeTo(t,"DeclareTypeAlias"),t}flowParseDeclareOpaqueType(e){this.next();var t=this.flowParseOpaqueType(e,!0);return this.castNodeTo(t,"DeclareOpaqueType"),t}flowParseDeclareInterface(e){return this.next(),this.flowParseInterfaceish(e,!1),this.finishNode(e,"DeclareInterface")}flowParseInterfaceish(e,t){if(e.id=this.flowParseRestrictedIdentifier(!t,!0),this.scope.declareName(e.id.name,t?17:8201,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.extends=[],this.eat(81))do{e.extends.push(this.flowParseInterfaceExtends())}while(!t&&this.eat(12));if(t){if(e.implements=[],e.mixins=[],this.eatContextual(117))do{e.mixins.push(this.flowParseInterfaceExtends())}while(this.eat(12));if(this.eatContextual(113))do{e.implements.push(this.flowParseInterfaceExtends())}while(this.eat(12))}e.body=this.flowParseObjectType({allowStatic:t,allowExact:!1,allowSpread:!1,allowProto:t,allowInexact:!1})}flowParseInterfaceExtends(){var e=this.startNode();return e.id=this.flowParseQualifiedTypeIdentifier(),this.match(47)?e.typeParameters=this.flowParseTypeParameterInstantiation():e.typeParameters=null,this.finishNode(e,"InterfaceExtends")}flowParseInterface(e){return this.flowParseInterfaceish(e,!1),this.finishNode(e,"InterfaceDeclaration")}checkNotUnderscore(e){"_"===e&&this.raise(we.UnexpectedReservedUnderscore,this.state.startLoc)}checkReservedType(e,t,r){Ce.has(e)&&this.raise(r?we.AssignReservedType:we.UnexpectedReservedType,t,{reservedType:e})}flowParseRestrictedIdentifier(e,t){return this.checkReservedType(this.state.value,this.state.startLoc,t),this.parseIdentifier(e)}flowParseTypeAlias(e){return e.id=this.flowParseRestrictedIdentifier(!1,!0),this.scope.declareName(e.id.name,8201,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.right=this.flowParseTypeInitialiser(29),this.semicolon(),this.finishNode(e,"TypeAlias")}flowParseOpaqueType(e,t){return this.expectContextual(130),e.id=this.flowParseRestrictedIdentifier(!0,!0),this.scope.declareName(e.id.name,8201,e.id.loc.start),this.match(47)?e.typeParameters=this.flowParseTypeParameterDeclaration():e.typeParameters=null,e.supertype=null,this.match(14)&&(e.supertype=this.flowParseTypeInitialiser(14)),e.impltype=null,t||(e.impltype=this.flowParseTypeInitialiser(29)),this.semicolon(),this.finishNode(e,"OpaqueType")}flowParseTypeParameter(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.state.startLoc,r=this.startNode(),i=this.flowParseVariance(),n=this.flowParseTypeAnnotatableIdentifier();return r.name=n.name,r.variance=i,r.bound=n.typeAnnotation,this.match(29)?(this.eat(29),r.default=this.flowParseType()):e&&this.raise(we.MissingTypeParamDefault,t),this.finishNode(r,"TypeParameter")}flowParseTypeParameterDeclaration(){var e=this.state.inType,t=this.startNode();t.params=[],this.state.inType=!0,this.match(47)||this.match(143)?this.next():this.unexpected();var r=!1;do{var i=this.flowParseTypeParameter(r);t.params.push(i),i.default&&(r=!0),this.match(48)||this.expect(12)}while(!this.match(48));return this.expect(48),this.state.inType=e,this.finishNode(t,"TypeParameterDeclaration")}flowInTopLevelContext(e){if(this.curContext()===w.brace)return e();var t=this.state.context;this.state.context=[t[0]];try{return e()}finally{this.state.context=t}}flowParseTypeParameterInstantiationInExpression(){if(47===this.reScan_lt())return this.flowParseTypeParameterInstantiation()}flowParseTypeParameterInstantiation(){var e=this.startNode(),t=this.state.inType;return this.state.inType=!0,e.params=[],this.flowInTopLevelContext((()=>{this.expect(47);var t=this.state.noAnonFunctionType;for(this.state.noAnonFunctionType=!1;!this.match(48);)e.params.push(this.flowParseType()),this.match(48)||this.expect(12);this.state.noAnonFunctionType=t})),this.state.inType=t,this.state.inType||this.curContext()!==w.brace||this.reScan_lt_gt(),this.expect(48),this.finishNode(e,"TypeParameterInstantiation")}flowParseTypeParameterInstantiationCallOrNew(){if(47!==this.reScan_lt())return null;var e=this.startNode(),t=this.state.inType;for(e.params=[],this.state.inType=!0,this.expect(47);!this.match(48);)e.params.push(this.flowParseTypeOrImplicitInstantiation()),this.match(48)||this.expect(12);return this.expect(48),this.state.inType=t,this.finishNode(e,"TypeParameterInstantiation")}flowParseInterfaceType(){var e=this.startNode();if(this.expectContextual(129),e.extends=[],this.eat(81))do{e.extends.push(this.flowParseInterfaceExtends())}while(this.eat(12));return e.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(e,"InterfaceTypeAnnotation")}flowParseObjectPropertyKey(){return this.match(135)||this.match(134)?super.parseExprAtom():this.parseIdentifier(!0)}flowParseObjectTypeIndexer(e,t,r){return e.static=t,14===this.lookahead().type?(e.id=this.flowParseObjectPropertyKey(),e.key=this.flowParseTypeInitialiser()):(e.id=null,e.key=this.flowParseType()),this.expect(3),e.value=this.flowParseTypeInitialiser(),e.variance=r,this.finishNode(e,"ObjectTypeIndexer")}flowParseObjectTypeInternalSlot(e,t){return e.static=t,e.id=this.flowParseObjectPropertyKey(),this.expect(3),this.expect(3),this.match(47)||this.match(10)?(e.method=!0,e.optional=!1,e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.loc.start))):(e.method=!1,this.eat(17)&&(e.optional=!0),e.value=this.flowParseTypeInitialiser()),this.finishNode(e,"ObjectTypeInternalSlot")}flowParseObjectTypeMethodish(e){for(e.params=[],e.rest=null,e.typeParameters=null,e.this=null,this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration()),this.expect(10),this.match(78)&&(e.this=this.flowParseFunctionTypeParam(!0),e.this.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)e.params.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(e.rest=this.flowParseFunctionTypeParam(!1)),this.expect(11),e.returnType=this.flowParseTypeInitialiser(),this.finishNode(e,"FunctionTypeAnnotation")}flowParseObjectTypeCallProperty(e,t){var r=this.startNode();return e.static=t,e.value=this.flowParseObjectTypeMethodish(r),this.finishNode(e,"ObjectTypeCallProperty")}flowParseObjectType(e){var{allowStatic:t,allowExact:r,allowSpread:i,allowProto:n,allowInexact:a}=e,s=this.state.inType;this.state.inType=!0;var o,l,p=this.startNode();p.callProperties=[],p.properties=[],p.indexers=[],p.internalSlots=[];var c=!1;for(r&&this.match(6)?(this.expect(6),o=9,l=!0):(this.expect(5),o=8,l=!1),p.exact=l;!this.match(o);){var u=!1,h=null,d=null,f=this.startNode();if(n&&this.isContextual(118)){var m=this.lookahead();14!==m.type&&17!==m.type&&(this.next(),h=this.state.startLoc,t=!1)}if(t&&this.isContextual(106)){var y=this.lookahead();14!==y.type&&17!==y.type&&(this.next(),u=!0)}var v=this.flowParseVariance();if(this.eat(0))null!=h&&this.unexpected(h),this.eat(0)?(v&&this.unexpected(v.loc.start),p.internalSlots.push(this.flowParseObjectTypeInternalSlot(f,u))):p.indexers.push(this.flowParseObjectTypeIndexer(f,u,v));else if(this.match(10)||this.match(47))null!=h&&this.unexpected(h),v&&this.unexpected(v.loc.start),p.callProperties.push(this.flowParseObjectTypeCallProperty(f,u));else{var T="init";if(this.isContextual(99)||this.isContextual(104))z(this.lookahead().type)&&(T=this.state.value,this.next());var g=this.flowParseObjectTypeProperty(f,u,h,v,T,i,null!=a?a:!l);null===g?(c=!0,d=this.state.lastTokStartLoc):p.properties.push(g)}this.flowObjectTypeSemicolon(),!d||this.match(8)||this.match(9)||this.raise(we.UnexpectedExplicitInexactInObject,d)}this.expect(o),i&&(p.inexact=c);var S=this.finishNode(p,"ObjectTypeAnnotation");return this.state.inType=s,S}flowParseObjectTypeProperty(e,t,r,i,n,a,s){if(this.eat(21))return this.match(12)||this.match(13)||this.match(8)||this.match(9)?(a?s||this.raise(we.InexactInsideExact,this.state.lastTokStartLoc):this.raise(we.InexactInsideNonObject,this.state.lastTokStartLoc),i&&this.raise(we.InexactVariance,i),null):(a||this.raise(we.UnexpectedSpreadType,this.state.lastTokStartLoc),null!=r&&this.unexpected(r),i&&this.raise(we.SpreadVariance,i),e.argument=this.flowParseType(),this.finishNode(e,"ObjectTypeSpreadProperty"));e.key=this.flowParseObjectPropertyKey(),e.static=t,e.proto=null!=r,e.kind=n;var o=!1;return this.match(47)||this.match(10)?(e.method=!0,null!=r&&this.unexpected(r),i&&this.unexpected(i.loc.start),e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.loc.start)),"get"!==n&&"set"!==n||this.flowCheckGetterSetterParams(e),!a&&"constructor"===e.key.name&&e.value.this&&this.raise(we.ThisParamBannedInConstructor,e.value.this)):("init"!==n&&this.unexpected(),e.method=!1,this.eat(17)&&(o=!0),e.value=this.flowParseTypeInitialiser(),e.variance=i),e.optional=o,this.finishNode(e,"ObjectTypeProperty")}flowCheckGetterSetterParams(e){var t="get"===e.kind?0:1,r=e.value.params.length+(e.value.rest?1:0);e.value.this&&this.raise("get"===e.kind?we.GetterMayNotHaveThisParam:we.SetterMayNotHaveThisParam,e.value.this),r!==t&&this.raise("get"===e.kind?m.BadGetterArity:m.BadSetterArity,e),"set"===e.kind&&e.value.rest&&this.raise(m.BadSetterRestParameter,e)}flowObjectTypeSemicolon(){this.eat(13)||this.eat(12)||this.match(8)||this.match(9)||this.unexpected()}flowParseQualifiedTypeIdentifier(e,t){null!=e||(e=this.state.startLoc);for(var r=t||this.flowParseRestrictedIdentifier(!0);this.eat(16);){var i=this.startNodeAt(e);i.qualification=r,i.id=this.flowParseRestrictedIdentifier(!0),r=this.finishNode(i,"QualifiedTypeIdentifier")}return r}flowParseGenericType(e,t){var r=this.startNodeAt(e);return r.typeParameters=null,r.id=this.flowParseQualifiedTypeIdentifier(e,t),this.match(47)&&(r.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(r,"GenericTypeAnnotation")}flowParseTypeofType(){var e=this.startNode();return this.expect(87),e.argument=this.flowParsePrimaryType(),this.finishNode(e,"TypeofTypeAnnotation")}flowParseTupleType(){var e=this.startNode();for(e.types=[],this.expect(0);this.state.pos<this.length&&!this.match(3)&&(e.types.push(this.flowParseType()),!this.match(3));)this.expect(12);return this.expect(3),this.finishNode(e,"TupleTypeAnnotation")}flowParseFunctionTypeParam(e){var t=null,r=!1,i=null,n=this.startNode(),a=this.lookahead(),s=78===this.state.type;return 14===a.type||17===a.type?(s&&!e&&this.raise(we.ThisParamMustBeFirst,n),t=this.parseIdentifier(s),this.eat(17)&&(r=!0,s&&this.raise(we.ThisParamMayNotBeOptional,n)),i=this.flowParseTypeInitialiser()):i=this.flowParseType(),n.name=t,n.optional=r,n.typeAnnotation=i,this.finishNode(n,"FunctionTypeParam")}reinterpretTypeAsFunctionTypeParam(e){var t=this.startNodeAt(e.loc.start);return t.name=null,t.optional=!1,t.typeAnnotation=e,this.finishNode(t,"FunctionTypeParam")}flowParseFunctionTypeParams(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=null,r=null;for(this.match(78)&&((r=this.flowParseFunctionTypeParam(!0)).name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)e.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(t=this.flowParseFunctionTypeParam(!1)),{params:e,rest:t,_this:r}}flowIdentToTypeAnnotation(e,t,r){switch(r.name){case"any":return this.finishNode(t,"AnyTypeAnnotation");case"bool":case"boolean":return this.finishNode(t,"BooleanTypeAnnotation");case"mixed":return this.finishNode(t,"MixedTypeAnnotation");case"empty":return this.finishNode(t,"EmptyTypeAnnotation");case"number":return this.finishNode(t,"NumberTypeAnnotation");case"string":return this.finishNode(t,"StringTypeAnnotation");case"symbol":return this.finishNode(t,"SymbolTypeAnnotation");default:return this.checkNotUnderscore(r.name),this.flowParseGenericType(e,r)}}flowParsePrimaryType(){var e,t,r=this.state.startLoc,i=this.startNode(),n=!1,a=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,t=this.flowParseTupleType(),this.state.noAnonFunctionType=a,t;case 47:var s=this.startNode();return s.typeParameters=this.flowParseTypeParameterDeclaration(),this.expect(10),e=this.flowParseFunctionTypeParams(),s.params=e.params,s.rest=e.rest,s.this=e._this,this.expect(11),this.expect(19),s.returnType=this.flowParseType(),this.finishNode(s,"FunctionTypeAnnotation");case 10:var o=this.startNode();if(this.next(),!this.match(11)&&!this.match(21))if(X(this.state.type)||this.match(78)){var l=this.lookahead().type;n=17!==l&&14!==l}else n=!0;if(n){if(this.state.noAnonFunctionType=!1,t=this.flowParseType(),this.state.noAnonFunctionType=a,this.state.noAnonFunctionType||!(this.match(12)||this.match(11)&&19===this.lookahead().type))return this.expect(11),t;this.eat(12)}return e=t?this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(t)]):this.flowParseFunctionTypeParams(),o.params=e.params,o.rest=e.rest,o.this=e._this,this.expect(11),this.expect(19),o.returnType=this.flowParseType(),o.typeParameters=null,this.finishNode(o,"FunctionTypeAnnotation");case 134: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(135))return this.parseLiteralAtNode(-this.state.value,"NumberLiteralTypeAnnotation",i);if(this.match(136))return this.parseLiteralAtNode(-this.state.value,"BigIntLiteralTypeAnnotation",i);throw this.raise(we.UnexpectedSubtractionOperand,this.state.startLoc)}throw this.unexpected();case 135:return this.parseLiteral(this.state.value,"NumberLiteralTypeAnnotation");case 136: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($(this.state.type)){var p=Z(this.state.type);return this.next(),super.createIdentifier(i,p)}if(X(this.state.type))return this.isContextual(129)?this.flowParseInterfaceType():this.flowIdentToTypeAnnotation(r,i,this.parseIdentifier())}throw this.unexpected()}flowParsePostfixType(){for(var e=this.state.startLoc,t=this.flowParsePrimaryType(),r=!1;(this.match(0)||this.match(18))&&!this.canInsertSemicolon();){var i=this.startNodeAt(e),n=this.eat(18);r=r||n,this.expect(0),!n&&this.match(3)?(i.elementType=t,this.next(),t=this.finishNode(i,"ArrayTypeAnnotation")):(i.objectType=t,i.indexType=this.flowParseType(),this.expect(3),r?(i.optional=n,t=this.finishNode(i,"OptionalIndexedAccessType")):t=this.finishNode(i,"IndexedAccessType"))}return t}flowParsePrefixType(){var e=this.startNode();return this.eat(17)?(e.typeAnnotation=this.flowParsePrefixType(),this.finishNode(e,"NullableTypeAnnotation")):this.flowParsePostfixType()}flowParseAnonFunctionWithoutParens(){var e=this.flowParsePrefixType();if(!this.state.noAnonFunctionType&&this.eat(19)){var t=this.startNodeAt(e.loc.start);return t.params=[this.reinterpretTypeAsFunctionTypeParam(e)],t.rest=null,t.this=null,t.returnType=this.flowParseType(),t.typeParameters=null,this.finishNode(t,"FunctionTypeAnnotation")}return e}flowParseIntersectionType(){var e=this.startNode();this.eat(45);var t=this.flowParseAnonFunctionWithoutParens();for(e.types=[t];this.eat(45);)e.types.push(this.flowParseAnonFunctionWithoutParens());return 1===e.types.length?t:this.finishNode(e,"IntersectionTypeAnnotation")}flowParseUnionType(){var e=this.startNode();this.eat(43);var t=this.flowParseIntersectionType();for(e.types=[t];this.eat(43);)e.types.push(this.flowParseIntersectionType());return 1===e.types.length?t:this.finishNode(e,"UnionTypeAnnotation")}flowParseType(){var e=this.state.inType;this.state.inType=!0;var t=this.flowParseUnionType();return this.state.inType=e,t}flowParseTypeOrImplicitInstantiation(){if(132===this.state.type&&"_"===this.state.value){var e=this.state.startLoc,t=this.parseIdentifier();return this.flowParseGenericType(e,t)}return this.flowParseType()}flowParseTypeAnnotation(){var e=this.startNode();return e.typeAnnotation=this.flowParseTypeInitialiser(),this.finishNode(e,"TypeAnnotation")}flowParseTypeAnnotatableIdentifier(e){var t=e?this.parseIdentifier():this.flowParseRestrictedIdentifier();return this.match(14)&&(t.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(t)),t}typeCastToParameter(e){return e.expression.typeAnnotation=e.typeAnnotation,this.resetEndLocation(e.expression,e.typeAnnotation.loc.end),e.expression}flowParseVariance(){var e=null;return this.match(53)?(e=this.startNode(),"+"===this.state.value?e.kind="plus":e.kind="minus",this.next(),this.finishNode(e,"Variance")):e}parseFunctionBody(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];t?this.forwardNoArrowParamsConversionAt(e,(()=>super.parseFunctionBody(e,!0,r))):super.parseFunctionBody(e,!1,r)}parseFunctionBodyAndFinish(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(this.match(14)){var i=this.startNode();[i.typeAnnotation,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),e.returnType=i.typeAnnotation?this.finishNode(i,"TypeAnnotation"):null}return super.parseFunctionBodyAndFinish(e,t,r)}parseStatementLike(e){if(this.state.strict&&this.isContextual(129)){if(H(this.lookahead().type)){var t=this.startNode();return this.next(),this.flowParseInterface(t)}}else if(this.isContextual(126)){var r=this.startNode();return this.next(),this.flowParseEnumDeclaration(r)}var i=super.parseStatementLike(e);return void 0!==this.flowPragma||this.isValidDirective(i)||(this.flowPragma=null),i}parseExpressionStatement(e,t,r){if("Identifier"===t.type)if("declare"===t.name){if(this.match(80)||X(this.state.type)||this.match(68)||this.match(74)||this.match(82))return this.flowParseDeclare(e)}else if(X(this.state.type)){if("interface"===t.name)return this.flowParseInterface(e);if("type"===t.name)return this.flowParseTypeAlias(e);if("opaque"===t.name)return this.flowParseOpaqueType(e,!1)}return super.parseExpressionStatement(e,t,r)}shouldParseExportDeclaration(){var{type:e}=this.state;return 126===e||Q(e)?!this.state.containsEsc:super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){var{type:e}=this.state;return 126===e||Q(e)?this.state.containsEsc:super.isExportDefaultSpecifier()}parseExportDefaultExpression(){if(this.isContextual(126)){var e=this.startNode();return this.next(),this.flowParseEnumDeclaration(e)}return super.parseExportDefaultExpression()}parseConditional(e,t,r){if(!this.match(17))return e;if(this.state.maybeInArrowParameters){var i=this.lookaheadCharCode();if(44===i||61===i||58===i||41===i)return this.setOptionalParametersError(r),e}this.expect(17);var n=this.state.clone(),a=this.state.noArrowAt,s=this.startNodeAt(t),{consequent:o,failed:l}=this.tryParseConditionalConsequent(),[p,c]=this.getArrowLikeExpressions(o);if(l||c.length>0){var u=[...a];if(c.length>0){this.state=n,this.state.noArrowAt=u;for(var h=0;h<c.length;h++)u.push(c[h].start);({consequent:o,failed:l}=this.tryParseConditionalConsequent()),[p,c]=this.getArrowLikeExpressions(o)}l&&p.length>1&&this.raise(we.AmbiguousConditionalArrow,n.startLoc),l&&1===p.length&&(this.state=n,u.push(p[0].start),this.state.noArrowAt=u,({consequent:o,failed:l}=this.tryParseConditionalConsequent()))}return this.getArrowLikeExpressions(o,!0),this.state.noArrowAt=a,this.expect(14),s.test=e,s.consequent=o,s.alternate=this.forwardNoArrowParamsConversionAt(s,(()=>this.parseMaybeAssign(void 0,void 0))),this.finishNode(s,"ConditionalExpression")}tryParseConditionalConsequent(){this.state.noArrowParamsConversionAt.push(this.state.start);var e=this.parseMaybeAssignAllowIn(),t=!this.match(14);return this.state.noArrowParamsConversionAt.pop(),{consequent:e,failed:t}}getArrowLikeExpressions(e,t){for(var r=[e],i=[];0!==r.length;){var n=r.pop();"ArrowFunctionExpression"===n.type&&"BlockStatement"!==n.body.type?(n.typeParameters||!n.returnType?this.finishArrowValidation(n):i.push(n),r.push(n.body)):"ConditionalExpression"===n.type&&(r.push(n.consequent),r.push(n.alternate))}return t?(i.forEach((e=>this.finishArrowValidation(e))),[i,[]]):function(e,t){for(var r=[],i=[],n=0;n<e.length;n++)(t(e[n],n,e)?r:i).push(e[n]);return[r,i]}(i,(e=>e.params.every((e=>this.isAssignable(e,!0)))))}finishArrowValidation(e){var t;this.toAssignableList(e.params,null==(t=e.extra)?void 0:t.trailingCommaLoc,!1),this.scope.enter(518),super.checkParams(e,!1,!0),this.scope.exit()}forwardNoArrowParamsConversionAt(e,t){var r;return this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(e.start))?(this.state.noArrowParamsConversionAt.push(this.state.start),r=t(),this.state.noArrowParamsConversionAt.pop()):r=t(),r}parseParenItem(e,t){var r=super.parseParenItem(e,t);if(this.eat(17)&&(r.optional=!0,this.resetEndLocation(e)),this.match(14)){var i=this.startNodeAt(t);return i.expression=r,i.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(i,"TypeCastExpression")}return r}assertModuleNodeAllowed(e){"ImportDeclaration"===e.type&&("type"===e.importKind||"typeof"===e.importKind)||"ExportNamedDeclaration"===e.type&&"type"===e.exportKind||"ExportAllDeclaration"===e.type&&"type"===e.exportKind||super.assertModuleNodeAllowed(e)}parseExportDeclaration(e){if(this.isContextual(130)){e.exportKind="type";var t=this.startNode();return this.next(),this.match(5)?(e.specifiers=this.parseExportSpecifiers(!0),super.parseExportFrom(e),null):this.flowParseTypeAlias(t)}if(this.isContextual(131)){e.exportKind="type";var r=this.startNode();return this.next(),this.flowParseOpaqueType(r,!1)}if(this.isContextual(129)){e.exportKind="type";var i=this.startNode();return this.next(),this.flowParseInterface(i)}if(this.isContextual(126)){e.exportKind="value";var n=this.startNode();return this.next(),this.flowParseEnumDeclaration(n)}return super.parseExportDeclaration(e)}eatExportStar(e){return!!super.eatExportStar(e)||!(!this.isContextual(130)||55!==this.lookahead().type)&&(e.exportKind="type",this.next(),this.next(),!0)}maybeParseExportNamespaceSpecifier(e){var{startLoc:t}=this.state,r=super.maybeParseExportNamespaceSpecifier(e);return r&&"type"===e.exportKind&&this.unexpected(t),r}parseClassId(e,t,r){super.parseClassId(e,t,r),this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration())}parseClassMember(e,t,r){var{startLoc:i}=this.state;if(this.isContextual(125)){if(super.parseClassMemberFromModifier(e,t))return;t.declare=!0}super.parseClassMember(e,t,r),t.declare&&("ClassProperty"!==t.type&&"ClassPrivateProperty"!==t.type&&"PropertyDefinition"!==t.type?this.raise(we.DeclareClassElement,i):t.value&&this.raise(we.DeclareClassFieldInitializer,t.value))}isIterator(e){return"iterator"===e||"asyncIterator"===e}readIterator(){var e=super.readWord1(),t="@@"+e;this.isIterator(e)&&this.state.inType||this.raise(m.InvalidIdentifier,this.state.curPosition(),{identifierName:t}),this.finishToken(132,t)}getTokenFromCode(e){var t=this.input.charCodeAt(this.state.pos+1);123===e&&124===t?this.finishOp(6,2):!this.state.inType||62!==e&&60!==e?this.state.inType&&63===e?46===t?this.finishOp(18,2):this.finishOp(17,1):!function(e,t,r){return 64===e&&64===t&&ce(r)}(e,t,this.input.charCodeAt(this.state.pos+2))?super.getTokenFromCode(e):(this.state.pos+=2,this.readIterator()):this.finishOp(62===e?48:47,1)}isAssignable(e,t){return"TypeCastExpression"===e.type?this.isAssignable(e.expression,t):super.isAssignable(e,t)}toAssignable(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t||"AssignmentExpression"!==e.type||"TypeCastExpression"!==e.left.type||(e.left=this.typeCastToParameter(e.left)),super.toAssignable(e,t)}toAssignableList(e,t,r){for(var i=0;i<e.length;i++){var n=e[i];"TypeCastExpression"===(null==n?void 0:n.type)&&(e[i]=this.typeCastToParameter(n))}super.toAssignableList(e,t,r)}toReferencedList(e,t){for(var r=0;r<e.length;r++){var i,n=e[r];!n||"TypeCastExpression"!==n.type||null!=(i=n.extra)&&i.parenthesized||!(e.length>1)&&t||this.raise(we.TypeCastInPattern,n.typeAnnotation)}return e}parseArrayLike(e,t,r){var i=super.parseArrayLike(e,t,r);return null==r||this.state.maybeInArrowParameters||this.toReferencedList(i.elements),i}isValidLVal(e,t,r,i){return"TypeCastExpression"===e||super.isValidLVal(e,t,r,i)}parseClassProperty(e){return this.match(14)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassProperty(e)}parseClassPrivateProperty(e){return this.match(14)&&(e.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassPrivateProperty(e)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(14)||super.isClassProperty()}isNonstaticConstructor(e){return!this.match(14)&&super.isNonstaticConstructor(e)}pushClassMethod(e,t,r,i,n,a){if(t.variance&&this.unexpected(t.variance.loc.start),delete t.variance,this.match(47)&&(t.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassMethod(e,t,r,i,n,a),t.params&&n){var s=t.params;s.length>0&&this.isThisParam(s[0])&&this.raise(we.ThisParamBannedInConstructor,t)}else if("MethodDefinition"===t.type&&n&&t.value.params){var o=t.value.params;o.length>0&&this.isThisParam(o[0])&&this.raise(we.ThisParamBannedInConstructor,t)}}pushClassPrivateMethod(e,t,r,i){t.variance&&this.unexpected(t.variance.loc.start),delete t.variance,this.match(47)&&(t.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassPrivateMethod(e,t,r,i)}parseClassSuper(e){if(super.parseClassSuper(e),e.superClass&&(this.match(47)||this.match(51))&&(e.superTypeParameters=this.flowParseTypeParameterInstantiationInExpression()),this.isContextual(113)){this.next();var t=e.implements=[];do{var r=this.startNode();r.id=this.flowParseRestrictedIdentifier(!0),this.match(47)?r.typeParameters=this.flowParseTypeParameterInstantiation():r.typeParameters=null,t.push(this.finishNode(r,"ClassImplements"))}while(this.eat(12))}}checkGetterSetterParams(e){super.checkGetterSetterParams(e);var t=this.getObjectOrClassMethodParams(e);if(t.length>0){var r=t[0];this.isThisParam(r)&&"get"===e.kind?this.raise(we.GetterMayNotHaveThisParam,r):this.isThisParam(r)&&this.raise(we.SetterMayNotHaveThisParam,r)}}parsePropertyNamePrefixOperator(e){e.variance=this.flowParseVariance()}parseObjPropValue(e,t,r,i,n,a,s){var o;e.variance&&this.unexpected(e.variance.loc.start),delete e.variance,this.match(47)&&!a&&(o=this.flowParseTypeParameterDeclaration(),this.match(10)||this.unexpected());var l=super.parseObjPropValue(e,t,r,i,n,a,s);return o&&((l.value||l).typeParameters=o),l}parseFunctionParamType(e){return this.eat(17)&&("Identifier"!==e.type&&this.raise(we.PatternIsOptional,e),this.isThisParam(e)&&this.raise(we.ThisParamMayNotBeOptional,e),e.optional=!0),this.match(14)?e.typeAnnotation=this.flowParseTypeAnnotation():this.isThisParam(e)&&this.raise(we.ThisParamAnnotationRequired,e),this.match(29)&&this.isThisParam(e)&&this.raise(we.ThisParamNoDefault,e),this.resetEndLocation(e),e}parseMaybeDefault(e,t){var r=super.parseMaybeDefault(e,t);return"AssignmentPattern"===r.type&&r.typeAnnotation&&r.right.start<r.typeAnnotation.start&&this.raise(we.TypeBeforeInitializer,r.typeAnnotation),r}checkImportReflection(e){super.checkImportReflection(e),e.module&&"value"!==e.importKind&&this.raise(we.ImportReflectionHasImportType,e.specifiers[0].loc.start)}parseImportSpecifierLocal(e,t,r){t.local=Ie(e)?this.flowParseRestrictedIdentifier(!0,!0):this.parseIdentifier(),e.specifiers.push(this.finishImportSpecifier(t,r))}isPotentialImportPhase(e){if(super.isPotentialImportPhase(e))return!0;if(this.isContextual(130)){if(!e)return!0;var t=this.lookaheadCharCode();return 123===t||42===t}return!e&&this.isContextual(87)}applyImportPhase(e,t,r,i){if(super.applyImportPhase(e,t,r,i),t){if(!r&&this.match(65))return;e.exportKind="type"===r?r:"value"}else"type"===r&&this.match(55)&&this.unexpected(),e.importKind="type"===r||"typeof"===r?r:"value"}parseImportSpecifier(e,t,r,i,n){var a=e.imported,s=null;"Identifier"===a.type&&("type"===a.name?s="type":"typeof"===a.name&&(s="typeof"));var o=!1;if(this.isContextual(93)&&!this.isLookaheadContextual("as")){var l=this.parseIdentifier(!0);null===s||H(this.state.type)?(e.imported=a,e.importKind=null,e.local=this.parseIdentifier()):(e.imported=l,e.importKind=s,e.local=this.cloneIdentifier(l))}else{if(null!==s&&H(this.state.type))e.imported=this.parseIdentifier(!0),e.importKind=s;else{if(t)throw this.raise(m.ImportBindingIsString,e,{importName:a.value});e.imported=a,e.importKind=null}this.eatContextual(93)?e.local=this.parseIdentifier():(o=!0,e.local=this.cloneIdentifier(e.imported))}var p=Ie(e);return r&&p&&this.raise(we.ImportTypeShorthandOnlyInPureImport,e),(r||p)&&this.checkReservedType(e.local.name,e.local.loc.start,!0),!o||r||p||this.checkReservedWord(e.local.name,e.loc.start,!0,!0),this.finishImportSpecifier(e,"ImportSpecifier")}parseBindingAtom(){return 78===this.state.type?this.parseIdentifier(!0):super.parseBindingAtom()}parseFunctionParams(e,t){var r=e.kind;"get"!==r&&"set"!==r&&this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration()),super.parseFunctionParams(e,t)}parseVarId(e,t){super.parseVarId(e,t),this.match(14)&&(e.id.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(e.id))}parseAsyncArrowFromCallExpression(e,t){if(this.match(14)){var r=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0,e.returnType=this.flowParseTypeAnnotation(),this.state.noAnonFunctionType=r}return super.parseAsyncArrowFromCallExpression(e,t)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}parseMaybeAssign(e,t){var r,i,n=null;if(this.hasPlugin("jsx")&&(this.match(143)||this.match(47))){if(n=this.state.clone(),!(i=this.tryParse((()=>super.parseMaybeAssign(e,t)),n)).error)return i.node;var{context:a}=this.state,s=a[a.length-1];s!==w.j_oTag&&s!==w.j_expr||a.pop()}if(null!=(r=i)&&r.error||this.match(47)){var o,l,p;n=n||this.state.clone();var c=this.tryParse((r=>{var i;p=this.flowParseTypeParameterDeclaration();var n=this.forwardNoArrowParamsConversionAt(p,(()=>{var r=super.parseMaybeAssign(e,t);return this.resetStartLocationFromNode(r,p),r}));null!=(i=n.extra)&&i.parenthesized&&r();var a=this.maybeUnwrapTypeCastExpression(n);return"ArrowFunctionExpression"!==a.type&&r(),a.typeParameters=p,this.resetStartLocationFromNode(a,p),n}),n),u=null;if(c.node&&"ArrowFunctionExpression"===this.maybeUnwrapTypeCastExpression(c.node).type){if(!c.error&&!c.aborted)return c.node.async&&this.raise(we.UnexpectedTypeParameterBeforeAsyncArrowFunction,p),c.node;u=c.node}if(null!=(o=i)&&o.node)return this.state=i.failState,i.node;if(u)return this.state=c.failState,u;if(null!=(l=i)&&l.thrown)throw i.error;if(c.thrown)throw c.error;throw this.raise(we.UnexpectedTokenAfterTypeParameter,p)}return super.parseMaybeAssign(e,t)}parseArrow(e){if(this.match(14)){var t=this.tryParse((()=>{var t=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0;var r=this.startNode();return[r.typeAnnotation,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),this.state.noAnonFunctionType=t,this.canInsertSemicolon()&&this.unexpected(),this.match(19)||this.unexpected(),r}));if(t.thrown)return null;t.error&&(this.state=t.failState),e.returnType=t.node.typeAnnotation?this.finishNode(t.node,"TypeAnnotation"):null}return super.parseArrow(e)}shouldParseArrow(e){return this.match(14)||super.shouldParseArrow(e)}setArrowFunctionParameters(e,t){this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(e.start))?e.params=t:super.setArrowFunctionParameters(e,t)}checkParams(e,t,r){var i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(!r||!this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(e.start))){for(var n=0;n<e.params.length;n++)this.isThisParam(e.params[n])&&n>0&&this.raise(we.ThisParamMustBeFirst,e.params[n]);super.checkParams(e,t,r,i)}}parseParenAndDistinguishExpression(e){return super.parseParenAndDistinguishExpression(e&&!this.state.noArrowAt.includes(this.sourceToOffsetPos(this.state.start)))}parseSubscripts(e,t,r){if("Identifier"===e.type&&"async"===e.name&&this.state.noArrowAt.includes(t.index)){this.next();var i=this.startNodeAt(t);i.callee=e,i.arguments=super.parseCallExpressionArguments(),e=this.finishNode(i,"CallExpression")}else if("Identifier"===e.type&&"async"===e.name&&this.match(47)){var n=this.state.clone(),a=this.tryParse((e=>this.parseAsyncArrowWithTypeParameters(t)||e()),n);if(!a.error&&!a.aborted)return a.node;var s=this.tryParse((()=>super.parseSubscripts(e,t,r)),n);if(s.node&&!s.error)return s.node;if(a.node)return this.state=a.failState,a.node;if(s.node)return this.state=s.failState,s.node;throw a.error||s.error}return super.parseSubscripts(e,t,r)}parseSubscript(e,t,r,i){if(this.match(18)&&this.isLookaheadToken_lt()){if(i.optionalChainMember=!0,r)return i.stop=!0,e;this.next();var n=this.startNodeAt(t);return n.callee=e,n.typeArguments=this.flowParseTypeParameterInstantiationInExpression(),this.expect(10),n.arguments=this.parseCallExpressionArguments(),n.optional=!0,this.finishCallExpression(n,!0)}if(!r&&this.shouldParseTypes()&&(this.match(47)||this.match(51))){var a=this.startNodeAt(t);a.callee=e;var s=this.tryParse((()=>(a.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew(),this.expect(10),a.arguments=super.parseCallExpressionArguments(),i.optionalChainMember&&(a.optional=!1),this.finishCallExpression(a,i.optionalChainMember))));if(s.node)return s.error&&(this.state=s.failState),s.node}return super.parseSubscript(e,t,r,i)}parseNewCallee(e){super.parseNewCallee(e);var t=null;this.shouldParseTypes()&&this.match(47)&&(t=this.tryParse((()=>this.flowParseTypeParameterInstantiationCallOrNew())).node),e.typeArguments=t}parseAsyncArrowWithTypeParameters(e){var t=this.startNodeAt(e);if(this.parseFunctionParams(t,!1),this.parseArrow(t))return super.parseArrowExpression(t,void 0,!0)}readToken_mult_modulo(e){var t=this.input.charCodeAt(this.state.pos+1);if(42===e&&47===t&&this.state.hasFlowComment)return this.state.hasFlowComment=!1,this.state.pos+=2,void this.nextToken();super.readToken_mult_modulo(e)}readToken_pipe_amp(e){var t=this.input.charCodeAt(this.state.pos+1);124!==e||125!==t?super.readToken_pipe_amp(e):this.finishOp(9,2)}parseTopLevel(e,t){var r=super.parseTopLevel(e,t);return this.state.hasFlowComment&&this.raise(we.UnterminatedFlowComment,this.state.curPosition()),r}skipBlockComment(){if(!this.hasPlugin("flowComments")||!this.skipFlowComment())return super.skipBlockComment(this.state.hasFlowComment?"*-/":"*/");if(this.state.hasFlowComment)throw this.raise(we.NestedFlowComment,this.state.startLoc);this.hasFlowCommentCompletion();var e=this.skipFlowComment();e&&(this.state.pos+=e,this.state.hasFlowComment=!0)}skipFlowComment(){for(var{pos:e}=this.state,t=2;[32,9].includes(this.input.charCodeAt(e+t));)t++;var r=this.input.charCodeAt(t+e),i=this.input.charCodeAt(t+e+1);return 58===r&&58===i?t+2:"flow-include"===this.input.slice(t+e,t+e+12)?t+12:58===r&&58!==i&&t}hasFlowCommentCompletion(){if(-1===this.input.indexOf("*/",this.state.pos))throw this.raise(m.UnterminatedComment,this.state.curPosition())}flowEnumErrorBooleanMemberNotInitialized(e,t){var{enumName:r,memberName:i}=t;this.raise(we.EnumBooleanMemberNotInitialized,e,{memberName:i,enumName:r})}flowEnumErrorInvalidMemberInitializer(e,t){return this.raise(t.explicitType?"symbol"===t.explicitType?we.EnumInvalidMemberInitializerSymbolType:we.EnumInvalidMemberInitializerPrimaryType:we.EnumInvalidMemberInitializerUnknownType,e,t)}flowEnumErrorNumberMemberNotInitialized(e,t){this.raise(we.EnumNumberMemberNotInitialized,e,t)}flowEnumErrorStringMemberInconsistentlyInitialized(e,t){this.raise(we.EnumStringMemberInconsistentlyInitialized,e,t)}flowEnumMemberInit(){var e=this.state.startLoc,t=()=>this.match(12)||this.match(8);switch(this.state.type){case 135:var r=this.parseNumericLiteral(this.state.value);return t()?{type:"number",loc:r.loc.start,value:r}:{type:"invalid",loc:e};case 134:var i=this.parseStringLiteral(this.state.value);return t()?{type:"string",loc:i.loc.start,value:i}:{type:"invalid",loc:e};case 85:case 86:var n=this.parseBooleanLiteral(this.match(85));return t()?{type:"boolean",loc:n.loc.start,value:n}:{type:"invalid",loc:e};default:return{type:"invalid",loc:e}}}flowEnumMemberRaw(){var e=this.state.startLoc;return{id:this.parseIdentifier(!0),init:this.eat(29)?this.flowEnumMemberInit():{type:"none",loc:e}}}flowEnumCheckExplicitTypeMismatch(e,t,r){var{explicitType:i}=t;null!==i&&i!==r&&this.flowEnumErrorInvalidMemberInitializer(e,t)}flowEnumMembers(e){for(var{enumName:t,explicitType:r}=e,i=new Set,n={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]},a=!1;!this.match(8);){if(this.eat(21)){a=!0;break}var s=this.startNode(),{id:o,init:l}=this.flowEnumMemberRaw(),p=o.name;if(""!==p){/^[a-z]/.test(p)&&this.raise(we.EnumInvalidMemberName,o,{memberName:p,suggestion:p[0].toUpperCase()+p.slice(1),enumName:t}),i.has(p)&&this.raise(we.EnumDuplicateMemberName,o,{memberName:p,enumName:t}),i.add(p);var c={enumName:t,explicitType:r,memberName:p};switch(s.id=o,l.type){case"boolean":this.flowEnumCheckExplicitTypeMismatch(l.loc,c,"boolean"),s.init=l.value,n.booleanMembers.push(this.finishNode(s,"EnumBooleanMember"));break;case"number":this.flowEnumCheckExplicitTypeMismatch(l.loc,c,"number"),s.init=l.value,n.numberMembers.push(this.finishNode(s,"EnumNumberMember"));break;case"string":this.flowEnumCheckExplicitTypeMismatch(l.loc,c,"string"),s.init=l.value,n.stringMembers.push(this.finishNode(s,"EnumStringMember"));break;case"invalid":throw this.flowEnumErrorInvalidMemberInitializer(l.loc,c);case"none":switch(r){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(l.loc,c);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(l.loc,c);break;default:n.defaultedMembers.push(this.finishNode(s,"EnumDefaultedMember"))}}this.match(8)||this.expect(12)}}return{members:n,hasUnknownMembers:a}}flowEnumStringMembers(e,t,r){var{enumName:i}=r;if(0===e.length)return t;if(0===t.length)return e;if(t.length>e.length){for(var n of e)this.flowEnumErrorStringMemberInconsistentlyInitialized(n,{enumName:i});return t}for(var a of t)this.flowEnumErrorStringMemberInconsistentlyInitialized(a,{enumName:i});return e}flowEnumParseExplicitType(e){var{enumName:t}=e;if(!this.eatContextual(102))return null;if(!X(this.state.type))throw this.raise(we.EnumInvalidExplicitTypeUnknownSupplied,this.state.startLoc,{enumName:t});var{value:r}=this.state;return this.next(),"boolean"!==r&&"number"!==r&&"string"!==r&&"symbol"!==r&&this.raise(we.EnumInvalidExplicitType,this.state.startLoc,{enumName:t,invalidEnumType:r}),r}flowEnumBody(e,t){var r=t.name,i=t.loc.start,n=this.flowEnumParseExplicitType({enumName:r});this.expect(5);var{members:a,hasUnknownMembers:s}=this.flowEnumMembers({enumName:r,explicitType:n});switch(e.hasUnknownMembers=s,n){case"boolean":return e.explicitType=!0,e.members=a.booleanMembers,this.expect(8),this.finishNode(e,"EnumBooleanBody");case"number":return e.explicitType=!0,e.members=a.numberMembers,this.expect(8),this.finishNode(e,"EnumNumberBody");case"string":return e.explicitType=!0,e.members=this.flowEnumStringMembers(a.stringMembers,a.defaultedMembers,{enumName:r}),this.expect(8),this.finishNode(e,"EnumStringBody");case"symbol":return e.members=a.defaultedMembers,this.expect(8),this.finishNode(e,"EnumSymbolBody");default:var o=()=>(e.members=[],this.expect(8),this.finishNode(e,"EnumStringBody"));e.explicitType=!1;var l=a.booleanMembers.length,p=a.numberMembers.length,c=a.stringMembers.length,u=a.defaultedMembers.length;if(l||p||c||u){if(l||p){if(!p&&!c&&l>=u){for(var h of a.defaultedMembers)this.flowEnumErrorBooleanMemberNotInitialized(h.loc.start,{enumName:r,memberName:h.id.name});return e.members=a.booleanMembers,this.expect(8),this.finishNode(e,"EnumBooleanBody")}if(!l&&!c&&p>=u){for(var d of a.defaultedMembers)this.flowEnumErrorNumberMemberNotInitialized(d.loc.start,{enumName:r,memberName:d.id.name});return e.members=a.numberMembers,this.expect(8),this.finishNode(e,"EnumNumberBody")}return this.raise(we.EnumInconsistentMemberValues,i,{enumName:r}),o()}return e.members=this.flowEnumStringMembers(a.stringMembers,a.defaultedMembers,{enumName:r}),this.expect(8),this.finishNode(e,"EnumStringBody")}return o()}}flowParseEnumDeclaration(e){var t=this.parseIdentifier();return e.id=t,e.body=this.flowEnumBody(this.startNode(),t),this.finishNode(e,"EnumDeclaration")}jsxParseOpeningElementAfterName(e){return this.shouldParseTypes()&&(this.match(47)||this.match(51))&&(e.typeArguments=this.flowParseTypeParameterInstantiationInExpression()),super.jsxParseOpeningElementAfterName(e)}isLookaheadToken_lt(){var e=this.nextTokenStart();if(60===this.input.charCodeAt(e)){var t=this.input.charCodeAt(e+1);return 60!==t&&61!==t}return!1}reScan_lt_gt(){var{type:e}=this.state;47===e?(this.state.pos-=1,this.readToken_lt()):48===e&&(this.state.pos-=1,this.readToken_gt())}reScan_lt(){var{type:e}=this.state;return 51===e?(this.state.pos-=2,this.finishOp(47,1),47):e}maybeUnwrapTypeCastExpression(e){return"TypeCastExpression"===e.type?e.expression:e}},typescript:e=>class extends e{constructor(){super(...arguments),this.tsParseInOutModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out"],disallowedModifiers:["const","public","private","protected","readonly","declare","abstract","override"],errorTemplate:At.InvalidModifierOnTypeParameter}),this.tsParseConstModifier=this.tsParseModifiers.bind(this,{allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:At.InvalidModifierOnTypeParameterPositions}),this.tsParseInOutConstModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out","const"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:At.InvalidModifierOnTypeParameter})}getScopeHandler(){return Ve}tsIsIdentifier(){return X(this.state.type)}tsTokenCanFollowModifier(){return this.match(0)||this.match(5)||this.match(55)||this.match(21)||this.match(139)||this.isLiteralPropertyName()}tsNextTokenOnSameLineAndCanFollowModifier(){return this.next(),!this.hasPrecedingLineBreak()&&this.tsTokenCanFollowModifier()}tsNextTokenCanFollowModifier(){return this.match(106)?(this.next(),this.tsTokenCanFollowModifier()):this.tsNextTokenOnSameLineAndCanFollowModifier()}tsParseModifier(e,t,r){if(X(this.state.type)||58===this.state.type||75===this.state.type){var i=this.state.value;if(e.includes(i)){if(r&&this.match(106))return;if(t&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return i}}}tsParseModifiers(e,t){for(var{allowedModifiers:r,disallowedModifiers:i,stopOnStartOfClassStaticBlock:n,errorTemplate:a=At.InvalidModifierOnTypeMember}=e,s=(e,r,i,n)=>{r===i&&t[n]&&this.raise(At.InvalidModifiersOrder,e,{orderedModifiers:[i,n]})},o=(e,r,i,n)=>{(t[i]&&r===n||t[n]&&r===i)&&this.raise(At.IncompatibleModifiers,e,{modifiers:[i,n]})};;){var{startLoc:l}=this.state,p=this.tsParseModifier(r.concat(null!=i?i:[]),n,t.static);if(!p)break;Ct(p)?t.accessibility?this.raise(At.DuplicateAccessibilityModifier,l,{modifier:p}):(s(l,p,p,"override"),s(l,p,p,"static"),s(l,p,p,"readonly"),t.accessibility=p):wt(p)?(t[p]&&this.raise(At.DuplicateModifier,l,{modifier:p}),t[p]=!0,s(l,p,"in","out")):(hasOwnProperty.call(t,p)?this.raise(At.DuplicateModifier,l,{modifier:p}):(s(l,p,"static","readonly"),s(l,p,"static","override"),s(l,p,"override","readonly"),s(l,p,"abstract","override"),o(l,p,"declare","override"),o(l,p,"static","abstract")),t[p]=!0),null!=i&&i.includes(p)&&this.raise(a,l,{modifier:p})}}tsIsListTerminator(e){switch(e){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(e,t){for(var r=[];!this.tsIsListTerminator(e);)r.push(t());return r}tsParseDelimitedList(e,t,r){return function(e){if(null==e)throw new Error("Unexpected ".concat(e," value."));return e}(this.tsParseDelimitedListWorker(e,t,!0,r))}tsParseDelimitedListWorker(e,t,r,i){for(var n=[],a=-1;!this.tsIsListTerminator(e);){a=-1;var s=t();if(null==s)return;if(n.push(s),!this.eat(12)){if(this.tsIsListTerminator(e))break;return void(r&&this.expect(12))}a=this.state.lastTokStartLoc.index}return i&&(i.value=a),n}tsParseBracketedList(e,t,r,i,n){i||(r?this.expect(0):this.expect(47));var a=this.tsParseDelimitedList(e,t,n);return r?this.expect(3):this.expect(48),a}tsParseImportType(){var e=this.startNode();return this.expect(83),this.expect(10),this.match(134)?e.argument=this.parseStringLiteral(this.state.value):(this.raise(At.UnsupportedImportTypeArgument,this.state.startLoc),e.argument=super.parseExprAtom()),this.eat(12)?e.options=this.tsParseImportTypeOptions():e.options=null,this.expect(11),this.eat(16)&&(e.qualifier=this.tsParseEntityName(3)),this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSImportType")}tsParseImportTypeOptions(){var e=this.startNode();this.expect(5);var t=this.startNode();return this.isContextual(76)?(t.method=!1,t.key=this.parseIdentifier(!0),t.computed=!1,t.shorthand=!1):this.unexpected(null,76),this.expect(14),t.value=this.tsParseImportTypeWithPropertyValue(),e.properties=[this.finishObjectProperty(t)],this.eat(12),this.expect(8),this.finishNode(e,"ObjectExpression")}tsParseImportTypeWithPropertyValue(){var e=this.startNode(),t=[];for(this.expect(5);!this.match(8);){var r=this.state.type;X(r)||134===r?t.push(super.parsePropertyDefinition(null)):this.unexpected(),this.eat(12)}return e.properties=t,this.next(),this.finishNode(e,"ObjectExpression")}tsParseEntityName(e){var t;if(1&e&&this.match(78))if(2&e)t=this.parseIdentifier(!0);else{var r=this.startNode();this.next(),t=this.finishNode(r,"ThisExpression")}else t=this.parseIdentifier(!!(1&e));for(;this.eat(16);){var i=this.startNodeAtNode(t);i.left=t,i.right=this.parseIdentifier(!!(1&e)),t=this.finishNode(i,"TSQualifiedName")}return t}tsParseTypeReference(){var e=this.startNode();return e.typeName=this.tsParseEntityName(1),!this.hasPrecedingLineBreak()&&this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSTypeReference")}tsParseThisTypePredicate(e){this.next();var t=this.startNodeAtNode(e);return t.parameterName=e,t.typeAnnotation=this.tsParseTypeAnnotation(!1),t.asserts=!1,this.finishNode(t,"TSTypePredicate")}tsParseThisTypeNode(){var e=this.startNode();return this.next(),this.finishNode(e,"TSThisType")}tsParseTypeQuery(){var e=this.startNode();return this.expect(87),this.match(83)?e.exprName=this.tsParseImportType():e.exprName=this.tsParseEntityName(3),!this.hasPrecedingLineBreak()&&this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSTypeQuery")}tsParseTypeParameter(e){var t=this.startNode();return e(t),t.name=this.tsParseTypeParameterName(),t.constraint=this.tsEatThenParseType(81),t.default=this.tsEatThenParseType(29),this.finishNode(t,"TSTypeParameter")}tsTryParseTypeParameters(e){if(this.match(47))return this.tsParseTypeParameters(e)}tsParseTypeParameters(e){var t=this.startNode();this.match(47)||this.match(143)?this.next():this.unexpected();var r={value:-1};return t.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,e),!1,!0,r),0===t.params.length&&this.raise(At.EmptyTypeParameters,t),-1!==r.value&&this.addExtra(t,"trailingComma",r.value),this.finishNode(t,"TSTypeParameterDeclaration")}tsFillSignature(e,t){var r=19===e,i="typeAnnotation";t.typeParameters=this.tsTryParseTypeParameters(this.tsParseConstModifier),this.expect(10),t.parameters=this.tsParseBindingListForSignature(),(r||this.match(e))&&(t[i]=this.tsParseTypeOrTypePredicateAnnotation(e))}tsParseBindingListForSignature(){var e=super.parseBindingList(11,41,2);for(var t of e){var{type:r}=t;"AssignmentPattern"!==r&&"TSParameterProperty"!==r||this.raise(At.UnsupportedSignatureParameterKind,t,{type:r})}return e}tsParseTypeMemberSemicolon(){this.eat(12)||this.isLineTerminator()||this.expect(13)}tsParseSignatureMember(e,t){return this.tsFillSignature(14,t),this.tsParseTypeMemberSemicolon(),this.finishNode(t,e)}tsIsUnambiguouslyIndexSignature(){return this.next(),!!X(this.state.type)&&(this.next(),this.match(14))}tsTryParseIndexSignature(e){if(this.match(0)&&this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this))){this.expect(0);var t=this.parseIdentifier();t.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(t),this.expect(3),e.parameters=[t];var r=this.tsTryParseTypeAnnotation();return r&&(e.typeAnnotation=r),this.tsParseTypeMemberSemicolon(),this.finishNode(e,"TSIndexSignature")}}tsParsePropertyOrMethodSignature(e,t){if(this.eat(17)&&(e.optional=!0),this.match(10)||this.match(47)){t&&this.raise(At.ReadonlyForMethodSignature,e);var r=e;r.kind&&this.match(47)&&this.raise(At.AccessorCannotHaveTypeParameters,this.state.curPosition()),this.tsFillSignature(14,r),this.tsParseTypeMemberSemicolon();var i="parameters",n="typeAnnotation";if("get"===r.kind)r[i].length>0&&(this.raise(m.BadGetterArity,this.state.curPosition()),this.isThisParam(r[i][0])&&this.raise(At.AccessorCannotDeclareThisParameter,this.state.curPosition()));else if("set"===r.kind){if(1!==r[i].length)this.raise(m.BadSetterArity,this.state.curPosition());else{var a=r[i][0];this.isThisParam(a)&&this.raise(At.AccessorCannotDeclareThisParameter,this.state.curPosition()),"Identifier"===a.type&&a.optional&&this.raise(At.SetAccessorCannotHaveOptionalParameter,this.state.curPosition()),"RestElement"===a.type&&this.raise(At.SetAccessorCannotHaveRestParameter,this.state.curPosition())}r[n]&&this.raise(At.SetAccessorCannotHaveReturnType,r[n])}else r.kind="method";return this.finishNode(r,"TSMethodSignature")}var s=e;t&&(s.readonly=!0);var o=this.tsTryParseTypeAnnotation();return o&&(s.typeAnnotation=o),this.tsParseTypeMemberSemicolon(),this.finishNode(s,"TSPropertySignature")}tsParseTypeMember(){var e=this.startNode();if(this.match(10)||this.match(47))return this.tsParseSignatureMember("TSCallSignatureDeclaration",e);if(this.match(77)){var t=this.startNode();return this.next(),this.match(10)||this.match(47)?this.tsParseSignatureMember("TSConstructSignatureDeclaration",e):(e.key=this.createIdentifier(t,"new"),this.tsParsePropertyOrMethodSignature(e,!1))}this.tsParseModifiers({allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]},e);var r=this.tsTryParseIndexSignature(e);return r||(super.parsePropertyName(e),e.computed||"Identifier"!==e.key.type||"get"!==e.key.name&&"set"!==e.key.name||!this.tsTokenCanFollowModifier()||(e.kind=e.key.name,super.parsePropertyName(e),this.match(10)||this.match(47)||this.unexpected(null,10)),this.tsParsePropertyOrMethodSignature(e,!!e.readonly))}tsParseTypeLiteral(){var e=this.startNode();return e.members=this.tsParseObjectTypeMembers(),this.finishNode(e,"TSTypeLiteral")}tsParseObjectTypeMembers(){this.expect(5);var e=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(8),e}tsIsStartOfMappedType(){return this.next(),this.eat(53)?this.isContextual(122):(this.isContextual(122)&&this.next(),!!this.match(0)&&(this.next(),!!this.tsIsIdentifier()&&(this.next(),this.match(58))))}tsParseMappedType(){var e=this.startNode();this.expect(5),this.match(53)?(e.readonly=this.state.value,this.next(),this.expectContextual(122)):this.eatContextual(122)&&(e.readonly=!0),this.expect(0);var t=this.startNode();return t.name=this.tsParseTypeParameterName(),t.constraint=this.tsExpectThenParseType(58),e.typeParameter=this.finishNode(t,"TSTypeParameter"),e.nameType=this.eatContextual(93)?this.tsParseType():null,this.expect(3),this.match(53)?(e.optional=this.state.value,this.next(),this.expect(17)):this.eat(17)&&(e.optional=!0),e.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(8),this.finishNode(e,"TSMappedType")}tsParseTupleType(){var e=this.startNode();e.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);var t=!1;return e.elementTypes.forEach((e=>{var{type:r}=e;!t||"TSRestType"===r||"TSOptionalType"===r||"TSNamedTupleMember"===r&&e.optional||this.raise(At.OptionalTypeBeforeRequired,e),t||(t="TSNamedTupleMember"===r&&e.optional||"TSOptionalType"===r)})),this.finishNode(e,"TSTupleType")}tsParseTupleElementType(){var e,t,r,i,n,a=this.state.startLoc,s=this.eat(21),{startLoc:o}=this.state,l=H(this.state.type)?this.lookaheadCharCode():null;if(58===l)e=!0,r=!1,t=this.parseIdentifier(!0),this.expect(14),i=this.tsParseType();else if(63===l){r=!0;var p=this.state.value,c=this.tsParseNonArrayType();58===this.lookaheadCharCode()?(e=!0,t=this.createIdentifier(this.startNodeAt(o),p),this.expect(17),this.expect(14),i=this.tsParseType()):(e=!1,i=c,this.expect(17))}else i=this.tsParseType(),r=this.eat(17),e=this.eat(14);if(e)t?((n=this.startNodeAt(o)).optional=r,n.label=t,n.elementType=i,this.eat(17)&&(n.optional=!0,this.raise(At.TupleOptionalAfterType,this.state.lastTokStartLoc))):((n=this.startNodeAt(o)).optional=r,this.raise(At.InvalidTupleMemberLabel,i),n.label=i,n.elementType=this.tsParseType()),i=this.finishNode(n,"TSNamedTupleMember");else if(r){var u=this.startNodeAt(o);u.typeAnnotation=i,i=this.finishNode(u,"TSOptionalType")}if(s){var h=this.startNodeAt(a);h.typeAnnotation=i,i=this.finishNode(h,"TSRestType")}return i}tsParseParenthesizedType(){var e=this.startNode();return this.expect(10),e.typeAnnotation=this.tsParseType(),this.expect(11),this.finishNode(e,"TSParenthesizedType")}tsParseFunctionOrConstructorType(e,t){var r=this.startNode();return"TSConstructorType"===e&&(r.abstract=!!t,t&&this.next(),this.next()),this.tsInAllowConditionalTypesContext((()=>this.tsFillSignature(19,r))),this.finishNode(r,e)}tsParseLiteralTypeNode(){var e=this.startNode();switch(this.state.type){case 135:case 136:case 134:case 85:case 86:e.literal=super.parseExprAtom();break;default:this.unexpected()}return this.finishNode(e,"TSLiteralType")}tsParseTemplateLiteralType(){var e=this.startNode();return e.literal=super.parseTemplate(!1),this.finishNode(e,"TSLiteralType")}parseTemplateSubstitution(){return this.state.inType?this.tsParseType():super.parseTemplateSubstitution()}tsParseThisTypeOrThisTypePredicate(){var e=this.tsParseThisTypeNode();return this.isContextual(116)&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(e):e}tsParseNonArrayType(){switch(this.state.type){case 134:case 135:case 136:case 85:case 86:return this.tsParseLiteralTypeNode();case 53:if("-"===this.state.value){var e=this.startNode(),t=this.lookahead();return 135!==t.type&&136!==t.type&&this.unexpected(),e.literal=this.parseMaybeUnary(),this.finishNode(e,"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:var{type:r}=this.state;if(X(r)||88===r||84===r){var i=88===r?"TSVoidKeyword":84===r?"TSNullKeyword":function(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}}(this.state.value);if(void 0!==i&&46!==this.lookaheadCharCode()){var n=this.startNode();return this.next(),this.finishNode(n,i)}return this.tsParseTypeReference()}}throw this.unexpected()}tsParseArrayTypeOrHigher(){for(var{startLoc:e}=this.state,t=this.tsParseNonArrayType();!this.hasPrecedingLineBreak()&&this.eat(0);)if(this.match(3)){var r=this.startNodeAt(e);r.elementType=t,this.expect(3),t=this.finishNode(r,"TSArrayType")}else{var i=this.startNodeAt(e);i.objectType=t,i.indexType=this.tsParseType(),this.expect(3),t=this.finishNode(i,"TSIndexedAccessType")}return t}tsParseTypeOperator(){var e=this.startNode(),t=this.state.value;return this.next(),e.operator=t,e.typeAnnotation=this.tsParseTypeOperatorOrHigher(),"readonly"===t&&this.tsCheckTypeAnnotationForReadOnly(e),this.finishNode(e,"TSTypeOperator")}tsCheckTypeAnnotationForReadOnly(e){switch(e.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(At.UnexpectedReadonly,e)}}tsParseInferType(){var e=this.startNode();this.expectContextual(115);var t=this.startNode();return t.name=this.tsParseTypeParameterName(),t.constraint=this.tsTryParse((()=>this.tsParseConstraintForInferType())),e.typeParameter=this.finishNode(t,"TSTypeParameter"),this.finishNode(e,"TSInferType")}tsParseConstraintForInferType(){if(this.eat(81)){var e=this.tsInDisallowConditionalTypesContext((()=>this.tsParseType()));if(this.state.inDisallowConditionalTypesContext||!this.match(17))return e}}tsParseTypeOperatorOrHigher(){var e;return(e=this.state.type)>=121&&e<=123&&!this.state.containsEsc?this.tsParseTypeOperator():this.isContextual(115)?this.tsParseInferType():this.tsInAllowConditionalTypesContext((()=>this.tsParseArrayTypeOrHigher()))}tsParseUnionOrIntersectionType(e,t,r){var i=this.startNode(),n=this.eat(r),a=[];do{a.push(t())}while(this.eat(r));return 1!==a.length||n?(i.types=a,this.finishNode(i,e)):a[0]}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)||this.match(10)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsSkipParameterStart(){if(X(this.state.type)||this.match(78))return this.next(),!0;if(this.match(5)){var{errors:e}=this.state,t=e.length;try{return this.parseObjectLike(8,!0),e.length===t}catch(e){return!1}}if(this.match(0)){this.next();var{errors:r}=this.state,i=r.length;try{return super.parseBindingList(3,93,1),r.length===i}catch(e){return!1}}return!1}tsIsUnambiguouslyStartOfFunctionType(){if(this.next(),this.match(11)||this.match(21))return!0;if(this.tsSkipParameterStart()){if(this.match(14)||this.match(12)||this.match(17)||this.match(29))return!0;if(this.match(11)&&(this.next(),this.match(19)))return!0}return!1}tsParseTypeOrTypePredicateAnnotation(e){return this.tsInType((()=>{var t=this.startNode();this.expect(e);var r=this.startNode(),i=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(i&&this.match(78)){var n=this.tsParseThisTypeOrThisTypePredicate();return"TSThisType"===n.type?(r.parameterName=n,r.asserts=!0,r.typeAnnotation=null,n=this.finishNode(r,"TSTypePredicate")):(this.resetStartLocationFromNode(n,r),n.asserts=!0),t.typeAnnotation=n,this.finishNode(t,"TSTypeAnnotation")}var a=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!a)return i?(r.parameterName=this.parseIdentifier(),r.asserts=i,r.typeAnnotation=null,t.typeAnnotation=this.finishNode(r,"TSTypePredicate"),this.finishNode(t,"TSTypeAnnotation")):this.tsParseTypeAnnotation(!1,t);var s=this.tsParseTypeAnnotation(!1);return r.parameterName=a,r.typeAnnotation=s,r.asserts=i,t.typeAnnotation=this.finishNode(r,"TSTypePredicate"),this.finishNode(t,"TSTypeAnnotation")}))}tsTryParseTypeOrTypePredicateAnnotation(){if(this.match(14))return this.tsParseTypeOrTypePredicateAnnotation(14)}tsTryParseTypeAnnotation(){if(this.match(14))return this.tsParseTypeAnnotation()}tsTryParseType(){return this.tsEatThenParseType(14)}tsParseTypePredicatePrefix(){var e=this.parseIdentifier();if(this.isContextual(116)&&!this.hasPrecedingLineBreak())return this.next(),e}tsParseTypePredicateAsserts(){if(109!==this.state.type)return!1;var e=this.state.containsEsc;return this.next(),!(!X(this.state.type)&&!this.match(78))&&(e&&this.raise(m.InvalidEscapedReservedWord,this.state.lastTokStartLoc,{reservedWord:"asserts"}),!0)}tsParseTypeAnnotation(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.startNode();return this.tsInType((()=>{e&&this.expect(14),t.typeAnnotation=this.tsParseType()})),this.finishNode(t,"TSTypeAnnotation")}tsParseType(){Et(this.state.inType);var e=this.tsParseNonConditionalType();if(this.state.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(81))return e;var t=this.startNodeAtNode(e);return t.checkType=e,t.extendsType=this.tsInDisallowConditionalTypesContext((()=>this.tsParseNonConditionalType())),this.expect(17),t.trueType=this.tsInAllowConditionalTypesContext((()=>this.tsParseType())),this.expect(14),t.falseType=this.tsInAllowConditionalTypesContext((()=>this.tsParseType())),this.finishNode(t,"TSConditionalType")}isAbstractConstructorSignature(){return this.isContextual(124)&&this.isLookaheadContextual("new")}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(At.ReservedTypeAssertion,this.state.startLoc);var e=this.startNode();return e.typeAnnotation=this.tsInType((()=>(this.next(),this.match(75)?this.tsParseTypeReference():this.tsParseType()))),this.expect(48),e.expression=this.parseMaybeUnary(),this.finishNode(e,"TSTypeAssertion")}tsParseHeritageClause(e){var t=this.state.startLoc,r=this.tsParseDelimitedList("HeritageClauseElement",(()=>{var e=this.startNode();return e.expression=this.tsParseEntityName(3),this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSExpressionWithTypeArguments")}));return r.length||this.raise(At.EmptyHeritageClauseType,t,{token:e}),r}tsParseInterfaceDeclaration(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.hasFollowingLineBreak())return null;this.expectContextual(129),t.declare&&(e.declare=!0),X(this.state.type)?(e.id=this.parseIdentifier(),this.checkIdentifier(e.id,130)):(e.id=null,this.raise(At.MissingInterfaceName,this.state.startLoc)),e.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers),this.eat(81)&&(e.extends=this.tsParseHeritageClause("extends"));var r=this.startNode();return r.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),e.body=this.finishNode(r,"TSInterfaceBody"),this.finishNode(e,"TSInterfaceDeclaration")}tsParseTypeAliasDeclaration(e){return e.id=this.parseIdentifier(),this.checkIdentifier(e.id,2),e.typeAnnotation=this.tsInType((()=>{if(e.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers),this.expect(29),this.isContextual(114)&&46!==this.lookaheadCharCode()){var t=this.startNode();return this.next(),this.finishNode(t,"TSIntrinsicKeyword")}return this.tsParseType()})),this.semicolon(),this.finishNode(e,"TSTypeAliasDeclaration")}tsInTopLevelContext(e){if(this.curContext()===w.brace)return e();var t=this.state.context;this.state.context=[t[0]];try{return e()}finally{this.state.context=t}}tsInType(e){var t=this.state.inType;this.state.inType=!0;try{return e()}finally{this.state.inType=t}}tsInDisallowConditionalTypesContext(e){var t=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!0;try{return e()}finally{this.state.inDisallowConditionalTypesContext=t}}tsInAllowConditionalTypesContext(e){var t=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!1;try{return e()}finally{this.state.inDisallowConditionalTypesContext=t}}tsEatThenParseType(e){if(this.match(e))return this.tsNextThenParseType()}tsExpectThenParseType(e){return this.tsInType((()=>(this.expect(e),this.tsParseType())))}tsNextThenParseType(){return this.tsInType((()=>(this.next(),this.tsParseType())))}tsParseEnumMember(){var e=this.startNode();return e.id=this.match(134)?super.parseStringLiteral(this.state.value):this.parseIdentifier(!0),this.eat(29)&&(e.initializer=super.parseMaybeAssignAllowIn()),this.finishNode(e,"TSEnumMember")}tsParseEnumDeclaration(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.const&&(e.const=!0),t.declare&&(e.declare=!0),this.expectContextual(126),e.id=this.parseIdentifier(),this.checkIdentifier(e.id,e.const?8971:8459),this.expect(5),e.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(e,"TSEnumDeclaration")}tsParseEnumBody(){var e=this.startNode();return this.expect(5),e.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(e,"TSEnumBody")}tsParseModuleBlock(){var e=this.startNode();return this.scope.enter(0),this.expect(5),super.parseBlockOrModuleBlockBody(e.body=[],void 0,!0,8),this.scope.exit(),this.finishNode(e,"TSModuleBlock")}tsParseModuleOrNamespaceDeclaration(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e.id=this.parseIdentifier(),t||this.checkIdentifier(e.id,1024),this.eat(16)){var r=this.startNode();this.tsParseModuleOrNamespaceDeclaration(r,!0),e.body=r}else this.scope.enter(1024),this.prodParam.enter(0),e.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit();return this.finishNode(e,"TSModuleDeclaration")}tsParseAmbientExternalModuleDeclaration(e){return this.isContextual(112)?(e.kind="global",e.global=!0,e.id=this.parseIdentifier()):this.match(134)?(e.kind="module",e.id=super.parseStringLiteral(this.state.value)):this.unexpected(),this.match(5)?(this.scope.enter(1024),this.prodParam.enter(0),e.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit()):this.semicolon(),this.finishNode(e,"TSModuleDeclaration")}tsParseImportEqualsDeclaration(e,t,r){e.isExport=r||!1,e.id=t||this.parseIdentifier(),this.checkIdentifier(e.id,4096),this.expect(29);var i=this.tsParseModuleReference();return"type"===e.importKind&&"TSExternalModuleReference"!==i.type&&this.raise(At.ImportAliasHasImportType,i),e.moduleReference=i,this.semicolon(),this.finishNode(e,"TSImportEqualsDeclaration")}tsIsExternalModuleReference(){return this.isContextual(119)&&40===this.lookaheadCharCode()}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(0)}tsParseExternalModuleReference(){var e=this.startNode();return this.expectContextual(119),this.expect(10),this.match(134)||this.unexpected(),e.expression=super.parseExprAtom(),this.expect(11),this.sawUnambiguousESM=!0,this.finishNode(e,"TSExternalModuleReference")}tsLookAhead(e){var t=this.state.clone(),r=e();return this.state=t,r}tsTryParseAndCatch(e){var t=this.tryParse((t=>e()||t()));if(!t.aborted&&t.node)return t.error&&(this.state=t.failState),t.node}tsTryParse(e){var t=this.state.clone(),r=e();if(void 0!==r&&!1!==r)return r;this.state=t}tsTryParseDeclare(e){if(!this.isLineTerminator()){var t=this.state.type;return this.tsInAmbientContext((()=>{switch(t){case 68:return e.declare=!0,super.parseFunctionStatement(e,!1,!1);case 80:return e.declare=!0,this.parseClass(e,!0,!1);case 126:return this.tsParseEnumDeclaration(e,{declare:!0});case 112:return this.tsParseAmbientExternalModuleDeclaration(e);case 100:if(this.state.containsEsc)return;case 75:case 74:return this.match(75)&&this.isLookaheadContextual("enum")?(this.expect(75),this.tsParseEnumDeclaration(e,{const:!0,declare:!0})):(e.declare=!0,this.parseVarStatement(e,this.state.value,!0));case 107:if(this.isUsing())return this.raise(At.InvalidModifierOnUsingDeclaration,this.state.startLoc,"declare"),e.declare=!0,this.parseVarStatement(e,"using",!0);break;case 96:if(this.isAwaitUsing())return this.raise(At.InvalidModifierOnAwaitUsingDeclaration,this.state.startLoc,"declare"),e.declare=!0,this.next(),this.parseVarStatement(e,"await using",!0);break;case 129:var r=this.tsParseInterfaceDeclaration(e,{declare:!0});if(r)return r;default:if(X(t))return this.tsParseDeclaration(e,this.state.type,!0,null)}}))}}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.state.type,!0,null)}tsParseDeclaration(e,t,r,i){switch(t){case 124:if(this.tsCheckLineTerminator(r)&&(this.match(80)||X(this.state.type)))return this.tsParseAbstractDeclaration(e,i);break;case 127:if(this.tsCheckLineTerminator(r)){if(this.match(134))return this.tsParseAmbientExternalModuleDeclaration(e);if(X(this.state.type))return e.kind="module",this.tsParseModuleOrNamespaceDeclaration(e)}break;case 128:if(this.tsCheckLineTerminator(r)&&X(this.state.type))return e.kind="namespace",this.tsParseModuleOrNamespaceDeclaration(e);break;case 130:if(this.tsCheckLineTerminator(r)&&X(this.state.type))return this.tsParseTypeAliasDeclaration(e)}}tsCheckLineTerminator(e){return e?!this.hasFollowingLineBreak()&&(this.next(),!0):!this.isLineTerminator()}tsTryParseGenericAsyncArrowFunction(e){if(this.match(47)){var t=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0;var r=this.tsTryParseAndCatch((()=>{var t=this.startNodeAt(e);return t.typeParameters=this.tsParseTypeParameters(this.tsParseConstModifier),super.parseFunctionParams(t),t.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(19),t}));if(this.state.maybeInArrowParameters=t,r)return super.parseArrowExpression(r,null,!0)}}tsParseTypeArgumentsInExpression(){if(47===this.reScan_lt())return this.tsParseTypeArguments()}tsParseTypeArguments(){var e=this.startNode();return e.params=this.tsInType((()=>this.tsInTopLevelContext((()=>(this.expect(47),this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))))))),0===e.params.length?this.raise(At.EmptyTypeArguments,e):this.state.inType||this.curContext()!==w.brace||this.reScan_lt_gt(),this.expect(48),this.finishNode(e,"TSTypeParameterInstantiation")}tsIsDeclarationStart(){return(e=this.state.type)>=124&&e<=130;var e}isExportDefaultSpecifier(){return!this.tsIsDeclarationStart()&&super.isExportDefaultSpecifier()}parseBindingElement(e,t){var r=t.length?t[0].loc.start:this.state.startLoc,i={};this.tsParseModifiers({allowedModifiers:["public","private","protected","override","readonly"]},i);var n=i.accessibility,a=i.override,s=i.readonly;4&e||!(n||s||a)||this.raise(At.UnexpectedParameterModifier,r);var o=this.parseMaybeDefault();2&e&&this.parseFunctionParamType(o);var l=this.parseMaybeDefault(o.loc.start,o);if(n||s||a){var p=this.startNodeAt(r);return t.length&&(p.decorators=t),n&&(p.accessibility=n),s&&(p.readonly=s),a&&(p.override=a),"Identifier"!==l.type&&"AssignmentPattern"!==l.type&&this.raise(At.UnsupportedParameterPropertyKind,p),p.parameter=l,this.finishNode(p,"TSParameterProperty")}return t.length&&(o.decorators=t),l}isSimpleParameter(e){return"TSParameterProperty"===e.type&&super.isSimpleParameter(e.parameter)||super.isSimpleParameter(e)}tsDisallowOptionalPattern(e){for(var t of e.params)"Identifier"!==t.type&&t.optional&&!this.state.isAmbientContext&&this.raise(At.PatternIsOptional,t)}setArrowFunctionParameters(e,t,r){super.setArrowFunctionParameters(e,t,r),this.tsDisallowOptionalPattern(e)}parseFunctionBodyAndFinish(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];this.match(14)&&(e.returnType=this.tsParseTypeOrTypePredicateAnnotation(14));var i="FunctionDeclaration"===t?"TSDeclareFunction":"ClassMethod"===t||"ClassPrivateMethod"===t?"TSDeclareMethod":void 0;return i&&!this.match(5)&&this.isLineTerminator()?this.finishNode(e,i):"TSDeclareFunction"===i&&this.state.isAmbientContext&&(this.raise(At.DeclareFunctionHasImplementation,e),e.declare)?super.parseFunctionBodyAndFinish(e,i,r):(this.tsDisallowOptionalPattern(e),super.parseFunctionBodyAndFinish(e,t,r))}registerFunctionStatementId(e){!e.body&&e.id?this.checkIdentifier(e.id,1024):super.registerFunctionStatementId(e)}tsCheckForInvalidTypeCasts(e){e.forEach((e=>{"TSTypeCastExpression"===(null==e?void 0:e.type)&&this.raise(At.UnexpectedTypeAnnotation,e.typeAnnotation)}))}toReferencedList(e,t){return this.tsCheckForInvalidTypeCasts(e),e}parseArrayLike(e,t,r){var i=super.parseArrayLike(e,t,r);return"ArrayExpression"===i.type&&this.tsCheckForInvalidTypeCasts(i.elements),i}parseSubscript(e,t,r,i){if(!this.hasPrecedingLineBreak()&&this.match(35)){this.state.canStartJSXElement=!1,this.next();var n=this.startNodeAt(t);return n.expression=e,this.finishNode(n,"TSNonNullExpression")}var a=!1;if(this.match(18)&&60===this.lookaheadCharCode()){if(r)return i.stop=!0,e;i.optionalChainMember=a=!0,this.next()}if(this.match(47)||this.match(51)){var s,o=this.tsTryParseAndCatch((()=>{if(!r&&this.atPossibleAsyncArrow(e)){var n=this.tsTryParseGenericAsyncArrowFunction(t);if(n)return i.stop=!0,n}var o=this.tsParseTypeArgumentsInExpression();if(o)if(!a||this.match(10)){if(te(this.state.type)){var l=super.parseTaggedTemplateExpression(e,t,i);return l.typeParameters=o,l}if(!r&&this.eat(10)){var p=this.startNodeAt(t);return p.callee=e,p.arguments=this.parseCallExpressionArguments(),this.tsCheckForInvalidTypeCasts(p.arguments),p.typeParameters=o,i.optionalChainMember&&(p.optional=a),this.finishCallExpression(p,i.optionalChainMember)}var c=this.state.type;if(48!==c&&52!==c&&(10===c||!G(c)||this.hasPrecedingLineBreak())){var u=this.startNodeAt(t);return u.expression=e,u.typeParameters=o,this.finishNode(u,"TSInstantiationExpression")}}else s=this.state.curPosition()}));if(s&&this.unexpected(s,10),o)return"TSInstantiationExpression"===o.type&&((this.match(16)||this.match(18)&&40!==this.lookaheadCharCode())&&this.raise(At.InvalidPropertyAccessAfterInstantiationExpression,this.state.startLoc),this.match(16)||this.match(18)||(o.expression=super.stopParseSubscript(e,i))),o}return super.parseSubscript(e,t,r,i)}parseNewCallee(e){var t;super.parseNewCallee(e);var{callee:r}=e;"TSInstantiationExpression"!==r.type||null!=(t=r.extra)&&t.parenthesized||(e.typeParameters=r.typeParameters,e.callee=r.expression)}parseExprOp(e,t,r){var i;if(ee(58)>r&&!this.hasPrecedingLineBreak()&&(this.isContextual(93)||(i=this.isContextual(120)))){var n=this.startNodeAt(t);return n.expression=e,n.typeAnnotation=this.tsInType((()=>(this.next(),this.match(75)?(i&&this.raise(m.UnexpectedKeyword,this.state.startLoc,{keyword:"const"}),this.tsParseTypeReference()):this.tsParseType()))),this.finishNode(n,i?"TSSatisfiesExpression":"TSAsExpression"),this.reScan_lt_gt(),this.parseExprOp(n,t,r)}return super.parseExprOp(e,t,r)}checkReservedWord(e,t,r,i){this.state.isAmbientContext||super.checkReservedWord(e,t,r,i)}checkImportReflection(e){super.checkImportReflection(e),e.module&&"value"!==e.importKind&&this.raise(At.ImportReflectionHasImportType,e.specifiers[0].loc.start)}checkDuplicateExports(){}isPotentialImportPhase(e){if(super.isPotentialImportPhase(e))return!0;if(this.isContextual(130)){var t=this.lookaheadCharCode();return e?123===t||42===t:61!==t}return!e&&this.isContextual(87)}applyImportPhase(e,t,r,i){super.applyImportPhase(e,t,r,i),t?e.exportKind="type"===r?"type":"value":e.importKind="type"===r||"typeof"===r?r:"value"}parseImport(e){if(this.match(134))return e.importKind="value",super.parseImport(e);var t;if(X(this.state.type)&&61===this.lookaheadCharCode())return e.importKind="value",this.tsParseImportEqualsDeclaration(e);if(this.isContextual(130)){var r=this.parseMaybeImportPhase(e,!1);if(61===this.lookaheadCharCode())return this.tsParseImportEqualsDeclaration(e,r);t=super.parseImportSpecifiersAndAfter(e,r)}else t=super.parseImport(e);return"type"===t.importKind&&t.specifiers.length>1&&"ImportDefaultSpecifier"===t.specifiers[0].type&&this.raise(At.TypeImportCannotSpecifyDefaultAndNamed,t),t}parseExport(e,t){if(this.match(83)){var r=e;this.next();var i=null;return this.isContextual(130)&&this.isPotentialImportPhase(!1)?i=this.parseMaybeImportPhase(r,!1):r.importKind="value",this.tsParseImportEqualsDeclaration(r,i,!0)}if(this.eat(29)){var n=e;return n.expression=super.parseExpression(),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(n,"TSExportAssignment")}if(this.eatContextual(93)){var a=e;return this.expectContextual(128),a.id=this.parseIdentifier(),this.semicolon(),this.finishNode(a,"TSNamespaceExportDeclaration")}return super.parseExport(e,t)}isAbstractClass(){return this.isContextual(124)&&this.isLookaheadContextual("class")}parseExportDefaultExpression(){if(this.isAbstractClass()){var e=this.startNode();return this.next(),e.abstract=!0,this.parseClass(e,!0,!0)}if(this.match(129)){var t=this.tsParseInterfaceDeclaration(this.startNode());if(t)return t}return super.parseExportDefaultExpression()}parseVarStatement(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],{isAmbientContext:i}=this.state,n=super.parseVarStatement(e,t,r||i);if(!i)return n;if(!e.declare&&("using"===t||"await using"===t))return this.raiseOverwrite(At.UsingDeclarationInAmbientContext,e,t),n;for(var{id:a,init:s}of n.declarations)s&&("var"===t||"let"===t||a.typeAnnotation?this.raise(At.InitializerNotAllowedInAmbientContext,s):Nt(s,this.hasPlugin("estree"))||this.raise(At.ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference,s));return n}parseStatementContent(e,t){if(!this.state.containsEsc)switch(this.state.type){case 75:if(this.isLookaheadContextual("enum")){var r=this.startNode();return this.expect(75),this.tsParseEnumDeclaration(r,{const:!0})}break;case 124:case 125:if(this.nextTokenIsIdentifierAndNotTSRelationalOperatorOnSameLine()){var i=this.state.type,n=this.startNode();this.next();var a=125===i?this.tsTryParseDeclare(n):this.tsParseAbstractDeclaration(n,t);return a?(125===i&&(a.declare=!0),a):(n.expression=this.createIdentifier(this.startNodeAt(n.loc.start),125===i?"declare":"abstract"),this.semicolon(!1),this.finishNode(n,"ExpressionStatement"))}break;case 126:return this.tsParseEnumDeclaration(this.startNode());case 112:if(123===this.lookaheadCharCode()){var s=this.startNode();return this.tsParseAmbientExternalModuleDeclaration(s)}break;case 129:var o=this.tsParseInterfaceDeclaration(this.startNode());if(o)return o;break;case 127:if(this.nextTokenIsIdentifierOrStringLiteralOnSameLine()){var l=this.startNode();return this.next(),this.tsParseDeclaration(l,127,!1,t)}break;case 128:if(this.nextTokenIsIdentifierOnSameLine()){var p=this.startNode();return this.next(),this.tsParseDeclaration(p,128,!1,t)}break;case 130:if(this.nextTokenIsIdentifierOnSameLine()){var c=this.startNode();return this.next(),this.tsParseTypeAliasDeclaration(c)}}return super.parseStatementContent(e,t)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}tsHasSomeModifiers(e,t){return t.some((t=>Ct(t)?e.accessibility===t:!!e[t]))}tsIsStartOfStaticBlocks(){return this.isContextual(106)&&123===this.lookaheadCharCode()}parseClassMember(e,t,r){var i=["declare","private","public","protected","override","abstract","readonly","static"];this.tsParseModifiers({allowedModifiers:i,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:At.InvalidModifierOnTypeParameterPositions},t);var n=()=>{this.tsIsStartOfStaticBlocks()?(this.next(),this.next(),this.tsHasSomeModifiers(t,i)&&this.raise(At.StaticBlockCannotHaveModifier,this.state.curPosition()),super.parseClassStaticBlock(e,t)):this.parseClassMemberWithIsStatic(e,t,r,!!t.static)};t.declare?this.tsInAmbientContext(n):n()}parseClassMemberWithIsStatic(e,t,r,i){var n=this.tsTryParseIndexSignature(t);if(n)return e.body.push(n),t.abstract&&this.raise(At.IndexSignatureHasAbstract,t),t.accessibility&&this.raise(At.IndexSignatureHasAccessibility,t,{modifier:t.accessibility}),t.declare&&this.raise(At.IndexSignatureHasDeclare,t),void(t.override&&this.raise(At.IndexSignatureHasOverride,t));!this.state.inAbstractClass&&t.abstract&&this.raise(At.NonAbstractClassHasAbstractMethod,t),t.override&&(r.hadSuperClass||this.raise(At.OverrideNotInSubClass,t)),super.parseClassMemberWithIsStatic(e,t,r,i)}parsePostMemberNameModifiers(e){this.eat(17)&&(e.optional=!0),e.readonly&&this.match(10)&&this.raise(At.ClassMethodHasReadonly,e),e.declare&&this.match(10)&&this.raise(At.ClassMethodHasDeclare,e)}shouldParseExportDeclaration(){return!!this.tsIsDeclarationStart()||super.shouldParseExportDeclaration()}parseConditional(e,t,r){if(!this.match(17))return e;if(this.state.maybeInArrowParameters){var i=this.lookaheadCharCode();if(44===i||61===i||58===i||41===i)return this.setOptionalParametersError(r),e}return super.parseConditional(e,t,r)}parseParenItem(e,t){var r=super.parseParenItem(e,t);if(this.eat(17)&&(r.optional=!0,this.resetEndLocation(e)),this.match(14)){var i=this.startNodeAt(t);return i.expression=e,i.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(i,"TSTypeCastExpression")}return e}parseExportDeclaration(e){if(!this.state.isAmbientContext&&this.isContextual(125))return this.tsInAmbientContext((()=>this.parseExportDeclaration(e)));var t=this.state.startLoc,r=this.eatContextual(125);if(r&&(this.isContextual(125)||!this.shouldParseExportDeclaration()))throw this.raise(At.ExpectedAmbientAfterExportDeclare,this.state.startLoc);var i=X(this.state.type)&&this.tsTryParseExportDeclaration()||super.parseExportDeclaration(e);return i?(("TSInterfaceDeclaration"===i.type||"TSTypeAliasDeclaration"===i.type||r)&&(e.exportKind="type"),r&&"TSImportEqualsDeclaration"!==i.type&&(this.resetStartLocation(i,t),i.declare=!0),i):null}parseClassId(e,t,r,i){if(t&&!r||!this.isContextual(113)){super.parseClassId(e,t,r,e.declare?1024:8331);var n=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers);n&&(e.typeParameters=n)}}parseClassPropertyAnnotation(e){e.optional||(this.eat(35)?e.definite=!0:this.eat(17)&&(e.optional=!0));var t=this.tsTryParseTypeAnnotation();t&&(e.typeAnnotation=t)}parseClassProperty(e){if(this.parseClassPropertyAnnotation(e),this.state.isAmbientContext&&(!e.readonly||e.typeAnnotation)&&this.match(29)&&this.raise(At.DeclareClassFieldHasInitializer,this.state.startLoc),e.abstract&&this.match(29)){var{key:t}=e;this.raise(At.AbstractPropertyHasInitializer,this.state.startLoc,{propertyName:"Identifier"!==t.type||e.computed?"[".concat(this.input.slice(this.offsetToSourcePos(t.start),this.offsetToSourcePos(t.end)),"]"):t.name})}return super.parseClassProperty(e)}parseClassPrivateProperty(e){return e.abstract&&this.raise(At.PrivateElementHasAbstract,e),e.accessibility&&this.raise(At.PrivateElementHasAccessibility,e,{modifier:e.accessibility}),this.parseClassPropertyAnnotation(e),super.parseClassPrivateProperty(e)}parseClassAccessorProperty(e){return this.parseClassPropertyAnnotation(e),e.optional&&this.raise(At.AccessorCannotBeOptional,e),super.parseClassAccessorProperty(e)}pushClassMethod(e,t,r,i,n,a){var s=this.tsTryParseTypeParameters(this.tsParseConstModifier);s&&n&&this.raise(At.ConstructorHasTypeParameters,s);var{declare:o=!1,kind:l}=t;!o||"get"!==l&&"set"!==l||this.raise(At.DeclareAccessor,t,{kind:l}),s&&(t.typeParameters=s),super.pushClassMethod(e,t,r,i,n,a)}pushClassPrivateMethod(e,t,r,i){var n=this.tsTryParseTypeParameters(this.tsParseConstModifier);n&&(t.typeParameters=n),super.pushClassPrivateMethod(e,t,r,i)}declareClassPrivateMethodInScope(e,t){"TSDeclareMethod"!==e.type&&("MethodDefinition"===e.type&&null==e.value.body||super.declareClassPrivateMethodInScope(e,t))}parseClassSuper(e){super.parseClassSuper(e),e.superClass&&(this.match(47)||this.match(51))&&(e.superTypeParameters=this.tsParseTypeArgumentsInExpression()),this.eatContextual(113)&&(e.implements=this.tsParseHeritageClause("implements"))}parseObjPropValue(e,t,r,i,n,a,s){var o=this.tsTryParseTypeParameters(this.tsParseConstModifier);return o&&(e.typeParameters=o),super.parseObjPropValue(e,t,r,i,n,a,s)}parseFunctionParams(e,t){var r=this.tsTryParseTypeParameters(this.tsParseConstModifier);r&&(e.typeParameters=r),super.parseFunctionParams(e,t)}parseVarId(e,t){super.parseVarId(e,t),"Identifier"===e.id.type&&!this.hasPrecedingLineBreak()&&this.eat(35)&&(e.definite=!0);var r=this.tsTryParseTypeAnnotation();r&&(e.id.typeAnnotation=r,this.resetEndLocation(e.id))}parseAsyncArrowFromCallExpression(e,t){return this.match(14)&&(e.returnType=this.tsParseTypeAnnotation()),super.parseAsyncArrowFromCallExpression(e,t)}parseMaybeAssign(e,t){var r,i,n,a,s,o,l,p,c;if(this.hasPlugin("jsx")&&(this.match(143)||this.match(47))){if(o=this.state.clone(),!(l=this.tryParse((()=>super.parseMaybeAssign(e,t)),o)).error)return l.node;var{context:u}=this.state,h=u[u.length-1];h!==w.j_oTag&&h!==w.j_expr||u.pop()}if(!(null!=(r=l)&&r.error||this.match(47)))return super.parseMaybeAssign(e,t);o&&o!==this.state||(o=this.state.clone());var d=this.tryParse((r=>{var i,n;c=this.tsParseTypeParameters(this.tsParseConstModifier);var a=super.parseMaybeAssign(e,t);return("ArrowFunctionExpression"!==a.type||null!=(i=a.extra)&&i.parenthesized)&&r(),0!==(null==(n=c)?void 0:n.params.length)&&this.resetStartLocationFromNode(a,c),a.typeParameters=c,a}),o);if(!d.error&&!d.aborted)return c&&this.reportReservedArrowTypeParam(c),d.node;if(!l&&(Et(!this.hasPlugin("jsx")),!(p=this.tryParse((()=>super.parseMaybeAssign(e,t)),o)).error))return p.node;if(null!=(i=l)&&i.node)return this.state=l.failState,l.node;if(d.node)return this.state=d.failState,c&&this.reportReservedArrowTypeParam(c),d.node;if(null!=(n=p)&&n.node)return this.state=p.failState,p.node;throw(null==(a=l)?void 0:a.error)||d.error||(null==(s=p)?void 0:s.error)}reportReservedArrowTypeParam(e){var t;1!==e.params.length||e.params[0].constraint||null!=(t=e.extra)&&t.trailingComma||!this.getPluginOption("typescript","disallowAmbiguousJSXLike")||this.raise(At.ReservedArrowTypeParam,e)}parseMaybeUnary(e,t){return!this.hasPlugin("jsx")&&this.match(47)?this.tsParseTypeAssertion():super.parseMaybeUnary(e,t)}parseArrow(e){if(this.match(14)){var t=this.tryParse((e=>{var t=this.tsParseTypeOrTypePredicateAnnotation(14);return!this.canInsertSemicolon()&&this.match(19)||e(),t}));if(t.aborted)return;t.thrown||(t.error&&(this.state=t.failState),e.returnType=t.node)}return super.parseArrow(e)}parseFunctionParamType(e){this.eat(17)&&(e.optional=!0);var t=this.tsTryParseTypeAnnotation();return t&&(e.typeAnnotation=t),this.resetEndLocation(e),e}isAssignable(e,t){switch(e.type){case"TSTypeCastExpression":return this.isAssignable(e.expression,t);case"TSParameterProperty":return!0;default:return super.isAssignable(e,t)}}toAssignable(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];switch(e.type){case"ParenthesizedExpression":this.toAssignableParenthesizedExpression(e,t);break;case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":t?this.expressionScope.recordArrowParameterBindingError(At.UnexpectedTypeCastInParameter,e):this.raise(At.UnexpectedTypeCastInParameter,e),this.toAssignable(e.expression,t);break;case"AssignmentExpression":t||"TSTypeCastExpression"!==e.left.type||(e.left=this.typeCastToParameter(e.left));default:super.toAssignable(e,t)}}toAssignableParenthesizedExpression(e,t){switch(e.expression.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":this.toAssignable(e.expression,t);break;default:super.toAssignable(e,t)}}checkToRestConversion(e,t){switch(e.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":this.checkToRestConversion(e.expression,!1);break;default:super.checkToRestConversion(e,t)}}isValidLVal(e,t,r,i){switch(e){case"TSTypeCastExpression":return!0;case"TSParameterProperty":return"parameter";case"TSNonNullExpression":return"expression";case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":return(64!==i||!r)&&["expression",!0];default:return super.isValidLVal(e,t,r,i)}}parseBindingAtom(){return 78===this.state.type?this.parseIdentifier(!0):super.parseBindingAtom()}parseMaybeDecoratorArguments(e,t){if(this.match(47)||this.match(51)){var r=this.tsParseTypeArgumentsInExpression();if(this.match(10)){var i=super.parseMaybeDecoratorArguments(e,t);return i.typeParameters=r,i}this.unexpected(null,10)}return super.parseMaybeDecoratorArguments(e,t)}checkCommaAfterRest(e){return this.state.isAmbientContext&&this.match(12)&&this.lookaheadCharCode()===e?(this.next(),!1):super.checkCommaAfterRest(e)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(35)||this.match(14)||super.isClassProperty()}parseMaybeDefault(e,t){var r=super.parseMaybeDefault(e,t);return"AssignmentPattern"===r.type&&r.typeAnnotation&&r.right.start<r.typeAnnotation.start&&this.raise(At.TypeAnnotationAfterAssign,r.typeAnnotation),r}getTokenFromCode(e){if(this.state.inType){if(62===e)return void this.finishOp(48,1);if(60===e)return void this.finishOp(47,1)}super.getTokenFromCode(e)}reScan_lt_gt(){var{type:e}=this.state;47===e?(this.state.pos-=1,this.readToken_lt()):48===e&&(this.state.pos-=1,this.readToken_gt())}reScan_lt(){var{type:e}=this.state;return 51===e?(this.state.pos-=2,this.finishOp(47,1),47):e}toAssignableListItem(e,t,r){var i=e[t];"TSTypeCastExpression"===i.type&&(e[t]=this.typeCastToParameter(i)),super.toAssignableListItem(e,t,r)}typeCastToParameter(e){return e.expression.typeAnnotation=e.typeAnnotation,this.resetEndLocation(e.expression,e.typeAnnotation.loc.end),e.expression}shouldParseArrow(e){return this.match(14)?e.every((e=>this.isAssignable(e,!0))):super.shouldParseArrow(e)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}canHaveLeadingDecorator(){return super.canHaveLeadingDecorator()||this.isAbstractClass()}jsxParseOpeningElementAfterName(e){if(this.match(47)||this.match(51)){var t=this.tsTryParseAndCatch((()=>this.tsParseTypeArgumentsInExpression()));t&&(e.typeParameters=t)}return super.jsxParseOpeningElementAfterName(e)}getGetterSetterExpectedParamCount(e){var t=super.getGetterSetterExpectedParamCount(e),r=this.getObjectOrClassMethodParams(e)[0];return r&&this.isThisParam(r)?t+1:t}parseCatchClauseParam(){var e=super.parseCatchClauseParam(),t=this.tsTryParseTypeAnnotation();return t&&(e.typeAnnotation=t,this.resetEndLocation(e)),e}tsInAmbientContext(e){var{isAmbientContext:t,strict:r}=this.state;this.state.isAmbientContext=!0,this.state.strict=!1;try{return e()}finally{this.state.isAmbientContext=t,this.state.strict=r}}parseClass(e,t,r){var i=this.state.inAbstractClass;this.state.inAbstractClass=!!e.abstract;try{return super.parseClass(e,t,r)}finally{this.state.inAbstractClass=i}}tsParseAbstractDeclaration(e,t){if(this.match(80))return e.abstract=!0,this.maybeTakeDecorators(t,this.parseClass(e,!0,!1));if(this.isContextual(129))return this.hasFollowingLineBreak()?null:(e.abstract=!0,this.raise(At.NonClassMethodPropertyHasAbstractModifier,e),this.tsParseInterfaceDeclaration(e));throw this.unexpected(null,80)}parseMethod(e,t,r,i,n,a,s){var o=super.parseMethod(e,t,r,i,n,a,s);if((o.abstract||"TSAbstractMethodDefinition"===o.type)&&(this.hasPlugin("estree")?o.value:o).body){var{key:l}=o;this.raise(At.AbstractMethodHasImplementation,o,{methodName:"Identifier"!==l.type||o.computed?"[".concat(this.input.slice(this.offsetToSourcePos(l.start),this.offsetToSourcePos(l.end)),"]"):l.name})}return o}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(e,t,r,i){return!t&&i?(this.parseTypeOnlyImportExportSpecifier(e,!1,r),this.finishNode(e,"ExportSpecifier")):(e.exportKind="value",super.parseExportSpecifier(e,t,r,i))}parseImportSpecifier(e,t,r,i,n){return!t&&i?(this.parseTypeOnlyImportExportSpecifier(e,!0,r),this.finishNode(e,"ImportSpecifier")):(e.importKind="value",super.parseImportSpecifier(e,t,r,i,r?4098:4096))}parseTypeOnlyImportExportSpecifier(e,t,r){var i,n=t?"imported":"local",a=t?"local":"exported",s=e[n],o=!1,l=!0,p=s.loc.start;if(this.isContextual(93)){var c=this.parseIdentifier();if(this.isContextual(93)){var u=this.parseIdentifier();H(this.state.type)?(o=!0,s=c,i=t?this.parseIdentifier():this.parseModuleExportName(),l=!1):(i=u,l=!1)}else H(this.state.type)?(l=!1,i=t?this.parseIdentifier():this.parseModuleExportName()):(o=!0,s=c)}else H(this.state.type)&&(o=!0,t?(s=this.parseIdentifier(!0),this.isContextual(93)||this.checkReservedWord(s.name,s.loc.start,!0,!0)):s=this.parseModuleExportName());o&&r&&this.raise(t?At.TypeModifierIsUsedInTypeImports:At.TypeModifierIsUsedInTypeExports,p),e[n]=s,e[a]=i,e[t?"importKind":"exportKind"]=o?"type":"value",l&&this.eatContextual(93)&&(e[a]=t?this.parseIdentifier():this.parseModuleExportName()),e[a]||(e[a]=this.cloneIdentifier(e[n])),t&&this.checkIdentifier(e[a],o?4098:4096)}fillOptionalPropertiesForTSESLint(e){switch(e.type){case"ExpressionStatement":return void(null!=e.directive||(e.directive=void 0));case"RestElement":e.value=void 0;case"Identifier":case"ArrayPattern":case"AssignmentPattern":case"ObjectPattern":return null!=e.decorators||(e.decorators=[]),null!=e.optional||(e.optional=!1),void(null!=e.typeAnnotation||(e.typeAnnotation=void 0));case"TSParameterProperty":return null!=e.accessibility||(e.accessibility=void 0),null!=e.decorators||(e.decorators=[]),null!=e.override||(e.override=!1),null!=e.readonly||(e.readonly=!1),void(null!=e.static||(e.static=!1));case"TSEmptyBodyFunctionExpression":e.body=null;case"TSDeclareFunction":case"FunctionDeclaration":case"FunctionExpression":case"ClassMethod":case"ClassPrivateMethod":return null!=e.declare||(e.declare=!1),null!=e.returnType||(e.returnType=void 0),void(null!=e.typeParameters||(e.typeParameters=void 0));case"Property":return void(null!=e.optional||(e.optional=!1));case"TSMethodSignature":case"TSPropertySignature":null!=e.optional||(e.optional=!1);case"TSIndexSignature":return null!=e.accessibility||(e.accessibility=void 0),null!=e.readonly||(e.readonly=!1),void(null!=e.static||(e.static=!1));case"TSAbstractPropertyDefinition":case"PropertyDefinition":case"TSAbstractAccessorProperty":case"AccessorProperty":null!=e.declare||(e.declare=!1),null!=e.definite||(e.definite=!1),null!=e.readonly||(e.readonly=!1),null!=e.typeAnnotation||(e.typeAnnotation=void 0);case"TSAbstractMethodDefinition":case"MethodDefinition":return null!=e.accessibility||(e.accessibility=void 0),null!=e.decorators||(e.decorators=[]),null!=e.override||(e.override=!1),void(null!=e.optional||(e.optional=!1));case"ClassExpression":null!=e.id||(e.id=null);case"ClassDeclaration":return null!=e.abstract||(e.abstract=!1),null!=e.declare||(e.declare=!1),null!=e.decorators||(e.decorators=[]),null!=e.implements||(e.implements=[]),null!=e.superTypeArguments||(e.superTypeArguments=void 0),void(null!=e.typeParameters||(e.typeParameters=void 0));case"TSTypeAliasDeclaration":case"VariableDeclaration":return void(null!=e.declare||(e.declare=!1));case"VariableDeclarator":return void(null!=e.definite||(e.definite=!1));case"TSEnumDeclaration":return null!=e.const||(e.const=!1),void(null!=e.declare||(e.declare=!1));case"TSEnumMember":return void(null!=e.computed||(e.computed=!1));case"TSImportType":return null!=e.qualifier||(e.qualifier=null),void(null!=e.options||(e.options=null));case"TSInterfaceDeclaration":return null!=e.declare||(e.declare=!1),void(null!=e.extends||(e.extends=[]));case"TSMappedType":return null!=e.optional||(e.optional=!1),void(null!=e.readonly||(e.readonly=void 0));case"TSModuleDeclaration":return null!=e.declare||(e.declare=!1),void(null!=e.global||(e.global="global"===e.kind));case"TSTypeParameter":return null!=e.const||(e.const=!1),null!=e.in||(e.in=!1),void(null!=e.out||(e.out=!1))}}chStartsBindingIdentifierAndNotRelationalOperator(e,t){if(ce(e)){if(Pt.lastIndex=t,Pt.test(this.input)){var r=this.codePointAtPos(Pt.lastIndex);if(!ue(r)&&92!==r)return!1}return!0}return 92===e}nextTokenIsIdentifierAndNotTSRelationalOperatorOnSameLine(){var e=this.nextTokenInLineStart(),t=this.codePointAtPos(e);return this.chStartsBindingIdentifierAndNotRelationalOperator(t,e)}nextTokenIsIdentifierOrStringLiteralOnSameLine(){var e=this.nextTokenInLineStart(),t=this.codePointAtPos(e);return this.chStartsBindingIdentifier(t,e)||34===t||39===t}},v8intrinsic:e=>class extends e{parseV8Intrinsic(){if(this.match(54)){var e=this.state.startLoc,t=this.startNode();if(this.next(),X(this.state.type)){var r=this.parseIdentifierName(),i=this.createIdentifier(t,r);if(this.castNodeTo(i,"V8IntrinsicIdentifier"),this.match(10))return i}this.unexpected(e)}}parseExprAtom(e){return this.parseV8Intrinsic()||super.parseExprAtom(e)}},placeholders:e=>class extends e{parsePlaceholder(e){if(this.match(133)){var t=this.startNode();return this.next(),this.assertNoSpace(),t.name=super.parseIdentifier(!0),this.assertNoSpace(),this.expect(133),this.finishPlaceholder(t,e)}}finishPlaceholder(e,t){var r=e;return r.expectedNode&&r.type||(r=this.finishNode(r,"Placeholder")),r.expectedNode=t,r}getTokenFromCode(e){37===e&&37===this.input.charCodeAt(this.state.pos+1)?this.finishOp(133,2):super.getTokenFromCode(e)}parseExprAtom(e){return this.parsePlaceholder("Expression")||super.parseExprAtom(e)}parseIdentifier(e){return this.parsePlaceholder("Identifier")||super.parseIdentifier(e)}checkReservedWord(e,t,r,i){void 0!==e&&super.checkReservedWord(e,t,r,i)}cloneIdentifier(e){var t=super.cloneIdentifier(e);return"Placeholder"===t.type&&(t.expectedNode=e.expectedNode),t}cloneStringLiteral(e){return"Placeholder"===e.type?this.cloneIdentifier(e):super.cloneStringLiteral(e)}parseBindingAtom(){return this.parsePlaceholder("Pattern")||super.parseBindingAtom()}isValidLVal(e,t,r,i){return"Placeholder"===e||super.isValidLVal(e,t,r,i)}toAssignable(e,t){e&&"Placeholder"===e.type&&"Expression"===e.expectedNode?e.expectedNode="Pattern":super.toAssignable(e,t)}chStartsBindingIdentifier(e,t){if(super.chStartsBindingIdentifier(e,t))return!0;var r=this.nextTokenStart();return 37===this.input.charCodeAt(r)&&37===this.input.charCodeAt(r+1)}verifyBreakContinue(e,t){e.label&&"Placeholder"===e.label.type||super.verifyBreakContinue(e,t)}parseExpressionStatement(e,t){var r;if("Placeholder"!==t.type||null!=(r=t.extra)&&r.parenthesized)return super.parseExpressionStatement(e,t);if(this.match(14)){var i=e;return i.label=this.finishPlaceholder(t,"Identifier"),this.next(),i.body=super.parseStatementOrSloppyAnnexBFunctionDeclaration(),this.finishNode(i,"LabeledStatement")}this.semicolon();var n=e;return n.name=t.name,this.finishPlaceholder(n,"Statement")}parseBlock(e,t,r){return this.parsePlaceholder("BlockStatement")||super.parseBlock(e,t,r)}parseFunctionId(e){return this.parsePlaceholder("Identifier")||super.parseFunctionId(e)}parseClass(e,t,r){var i=t?"ClassDeclaration":"ClassExpression";this.next();var n=this.state.strict,a=this.parsePlaceholder("Identifier");if(a){if(!(this.match(81)||this.match(133)||this.match(5))){if(r||!t)return e.id=null,e.body=this.finishPlaceholder(a,"ClassBody"),this.finishNode(e,i);throw this.raise(Dt.ClassNameIsRequired,this.state.startLoc)}e.id=a}else this.parseClassId(e,t,r);return super.parseClassSuper(e),e.body=this.parsePlaceholder("ClassBody")||super.parseClassBody(!!e.superClass,n),this.finishNode(e,i)}parseExport(e,t){var r=this.parsePlaceholder("Identifier");if(!r)return super.parseExport(e,t);var i=e;if(!this.isContextual(98)&&!this.match(12))return i.specifiers=[],i.source=null,i.declaration=this.finishPlaceholder(r,"Declaration"),this.finishNode(i,"ExportNamedDeclaration");this.expectPlugin("exportDefaultFrom");var n=this.startNode();return n.exported=r,i.specifiers=[this.finishNode(n,"ExportDefaultSpecifier")],super.parseExport(i,t)}isExportDefaultSpecifier(){if(this.match(65)){var e=this.nextTokenStart();if(this.isUnparsedContextual(e,"from")&&this.input.startsWith(Z(133),this.nextTokenStartSince(e+4)))return!0}return super.isExportDefaultSpecifier()}maybeParseExportDefaultSpecifier(e,t){var r;return!(null==(r=e.specifiers)||!r.length)||super.maybeParseExportDefaultSpecifier(e,t)}checkExport(e){var{specifiers:t}=e;null!=t&&t.length&&(e.specifiers=t.filter((e=>"Placeholder"===e.exported.type))),super.checkExport(e),e.specifiers=t}parseImport(e){var t=this.parsePlaceholder("Identifier");if(!t)return super.parseImport(e);if(e.specifiers=[],!this.isContextual(98)&&!this.match(12))return e.source=this.finishPlaceholder(t,"StringLiteral"),this.semicolon(),this.finishNode(e,"ImportDeclaration");var r=this.startNodeAtNode(t);(r.local=t,e.specifiers.push(this.finishNode(r,"ImportDefaultSpecifier")),this.eat(12))&&(this.maybeParseStarImportSpecifier(e)||this.parseNamedImportSpecifiers(e));return this.expectContextual(98),e.source=this.parseImportSource(),this.semicolon(),this.finishNode(e,"ImportDeclaration")}parseImportSource(){return this.parsePlaceholder("StringLiteral")||super.parseImportSource()}assertNoSpace(){this.state.start>this.offsetToSourcePos(this.state.lastTokEndLoc.index)&&this.raise(Dt.UnexpectedSpace,this.state.lastTokEndLoc)}}},Ft=Object.keys(Mt);class Bt extends bt{checkProto(e,t,r,i){if("SpreadElement"===e.type||this.isObjectMethod(e)||e.computed||e.shorthand)return r;var n=e.key;return"__proto__"===("Identifier"===n.type?n.name:n.value)?t?(this.raise(m.RecordNoProto,n),!0):(r&&(i?null===i.doubleProtoLoc&&(i.doubleProtoLoc=n.loc.start):this.raise(m.DuplicateProto,n)),!0):r}shouldExitDescending(e,t){return"ArrowFunctionExpression"===e.type&&this.offsetToSourcePos(e.start)===t}getExpression(){if(this.enterInitialScopes(),this.nextToken(),this.match(140))throw this.raise(m.ParseExpressionEmptyInput,this.state.startLoc);var e=this.parseExpression();if(!this.match(140))throw this.raise(m.ParseExpressionExpectsEOF,this.state.startLoc,{unexpected:this.input.codePointAt(this.state.start)});return this.finalizeRemainingComments(),e.comments=this.comments,e.errors=this.state.errors,256&this.optionFlags&&(e.tokens=this.tokens),e}parseExpression(e,t){return e?this.disallowInAnd((()=>this.parseExpressionBase(t))):this.allowInAnd((()=>this.parseExpressionBase(t)))}parseExpressionBase(e){var t=this.state.startLoc,r=this.parseMaybeAssign(e);if(this.match(12)){var i=this.startNodeAt(t);for(i.expressions=[r];this.eat(12);)i.expressions.push(this.parseMaybeAssign(e));return this.toReferencedList(i.expressions),this.finishNode(i,"SequenceExpression")}return r}parseMaybeAssignDisallowIn(e,t){return this.disallowInAnd((()=>this.parseMaybeAssign(e,t)))}parseMaybeAssignAllowIn(e,t){return this.allowInAnd((()=>this.parseMaybeAssign(e,t)))}setOptionalParametersError(e){e.optionalParametersLoc=this.state.startLoc}parseMaybeAssign(e,t){var r,i=this.state.startLoc,n=this.isContextual(108);if(n&&this.prodParam.hasYield){this.next();var a=this.parseYield(i);return t&&(a=t.call(this,a,i)),a}e?r=!1:(e=new vt,r=!0);var{type:s}=this.state;(10===s||X(s))&&(this.state.potentialArrowAt=this.state.start);var o,l=this.parseMaybeConditional(e);if(t&&(l=t.call(this,l,i)),(o=this.state.type)>=29&&o<=33){var p=this.startNodeAt(i),c=this.state.value;if(p.operator=c,this.match(29)){this.toAssignable(l,!0),p.left=l;var u=i.index;null!=e.doubleProtoLoc&&e.doubleProtoLoc.index>=u&&(e.doubleProtoLoc=null),null!=e.shorthandAssignLoc&&e.shorthandAssignLoc.index>=u&&(e.shorthandAssignLoc=null),null!=e.privateKeyLoc&&e.privateKeyLoc.index>=u&&(this.checkDestructuringPrivate(e),e.privateKeyLoc=null),null!=e.voidPatternLoc&&e.voidPatternLoc.index>=u&&(e.voidPatternLoc=null)}else p.left=l;return this.next(),p.right=this.parseMaybeAssign(),this.checkLVal(l,this.finishNode(p,"AssignmentExpression"),void 0,void 0,void 0,void 0,"||="===c||"&&="===c||"??="===c),p}if(r&&this.checkExpressionErrors(e,!0),n){var{type:h}=this.state;if((this.hasPlugin("v8intrinsic")?G(h):G(h)&&!this.match(54))&&!this.isAmbiguousPrefixOrIdentifier())return this.raiseOverwrite(m.YieldNotInGeneratorFunction,i),this.parseYield(i)}return l}parseMaybeConditional(e){var t=this.state.startLoc,r=this.state.potentialArrowAt,i=this.parseExprOps(e);return this.shouldExitDescending(i,r)?i:this.parseConditional(i,t,e)}parseConditional(e,t,r){if(this.eat(17)){var i=this.startNodeAt(t);return i.test=e,i.consequent=this.parseMaybeAssignAllowIn(),this.expect(14),i.alternate=this.parseMaybeAssign(),this.finishNode(i,"ConditionalExpression")}return e}parseMaybeUnaryOrPrivate(e){return this.match(139)?this.parsePrivateName():this.parseMaybeUnary(e)}parseExprOps(e){var t=this.state.startLoc,r=this.state.potentialArrowAt,i=this.parseMaybeUnaryOrPrivate(e);return this.shouldExitDescending(i,r)?i:this.parseExprOp(i,t,-1)}parseExprOp(e,t,r){if(this.isPrivateName(e)){var i=this.getPrivateNameSV(e);(r>=ee(58)||!this.prodParam.hasIn||!this.match(58))&&this.raise(m.PrivateInExpectedIn,e,{identifierName:i}),this.classScope.usePrivateName(i,e.loc.start)}var n,a=this.state.type;if((n=a)>=39&&n<=59&&(this.prodParam.hasIn||!this.match(58))){var s=ee(a);if(s>r){if(39===a){if(this.expectPlugin("pipelineOperator"),this.state.inFSharpPipelineDirectBody)return e;this.checkPipelineAtInfixOperator(e,t)}var o=this.startNodeAt(t);o.left=e,o.operator=this.state.value;var l=41===a||42===a,p=40===a;if(p&&(s=ee(42)),this.next(),39===a&&this.hasPlugin(["pipelineOperator",{proposal:"minimal"}])&&96===this.state.type&&this.prodParam.hasAwait)throw this.raise(m.UnexpectedAwaitAfterPipelineBody,this.state.startLoc);o.right=this.parseExprOpRightExpr(a,s);var c=this.finishNode(o,l||p?"LogicalExpression":"BinaryExpression"),u=this.state.type;if(p&&(41===u||42===u)||l&&40===u)throw this.raise(m.MixingCoalesceWithLogical,this.state.startLoc);return this.parseExprOp(c,t,r)}}return e}parseExprOpRightExpr(e,t){var r=this.state.startLoc;if(39===e){switch(this.getPluginOption("pipelineOperator","proposal")){case"hack":return this.withTopicBindingContext((()=>this.parseHackPipeBody()));case"fsharp":return this.withSoloAwaitPermittingContext((()=>this.parseFSharpPipelineBody(t)))}if("smart"===this.getPluginOption("pipelineOperator","proposal"))return this.withTopicBindingContext((()=>{if(this.prodParam.hasYield&&this.isContextual(108))throw this.raise(m.PipeBodyIsTighter,this.state.startLoc);return this.parseSmartPipelineBodyInStyle(this.parseExprOpBaseRightExpr(e,t),r)}))}return this.parseExprOpBaseRightExpr(e,t)}parseExprOpBaseRightExpr(e,t){var r=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnaryOrPrivate(),r,57===e?t-1:t)}parseHackPipeBody(){var e,{startLoc:t}=this.state,r=this.parseMaybeAssign();return!p.has(r.type)||null!=(e=r.extra)&&e.parenthesized||this.raise(m.PipeUnparenthesizedBody,t,{type:r.type}),this.topicReferenceWasUsedInCurrentContext()||this.raise(m.PipeTopicUnused,t),r}checkExponentialAfterUnary(e){this.match(57)&&this.raise(m.UnexpectedTokenUnaryExponentiation,e.argument)}parseMaybeUnary(e,t){var r=this.state.startLoc,i=this.isContextual(96);if(i&&this.recordAwaitIfAllowed()){this.next();var n=this.parseAwait(r);return t||this.checkExponentialAfterUnary(n),n}var a,s=this.match(34),o=this.startNode();if(a=this.state.type,q[a]){o.operator=this.state.value,o.prefix=!0,this.match(72)&&this.expectPlugin("throwExpressions");var l=this.match(89);if(this.next(),o.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(e,!0),this.state.strict&&l){var p=o.argument;"Identifier"===p.type?this.raise(m.StrictDelete,o):this.hasPropertyAsPrivateName(p)&&this.raise(m.DeletePrivateField,o)}if(!s)return t||this.checkExponentialAfterUnary(o),this.finishNode(o,"UnaryExpression")}var c=this.parseUpdate(o,s,e);if(i){var{type:u}=this.state;if((this.hasPlugin("v8intrinsic")?G(u):G(u)&&!this.match(54))&&!this.isAmbiguousPrefixOrIdentifier())return this.raiseOverwrite(m.AwaitNotInAsyncContext,r),this.parseAwait(r)}return c}parseUpdate(e,t,r){if(t){var i=e;return this.checkLVal(i.argument,this.finishNode(i,"UpdateExpression")),e}var n=this.state.startLoc,a=this.parseExprSubscripts(r);if(this.checkExpressionErrors(r,!1))return a;for(;34===this.state.type&&!this.canInsertSemicolon();){var s=this.startNodeAt(n);s.operator=this.state.value,s.prefix=!1,s.argument=a,this.next(),this.checkLVal(a,a=this.finishNode(s,"UpdateExpression"))}return a}parseExprSubscripts(e){var t=this.state.startLoc,r=this.state.potentialArrowAt,i=this.parseExprAtom(e);return this.shouldExitDescending(i,r)?i:this.parseSubscripts(i,t)}parseSubscripts(e,t,r){var i={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(e),stop:!1};do{e=this.parseSubscript(e,t,r,i),i.maybeAsyncArrow=!1}while(!i.stop);return e}parseSubscript(e,t,r,i){var{type:n}=this.state;if(!r&&15===n)return this.parseBind(e,t,r,i);if(te(n))return this.parseTaggedTemplateExpression(e,t,i);var a=!1;if(18===n){if(r&&(this.raise(m.OptionalChainingNoNew,this.state.startLoc),40===this.lookaheadCharCode()))return this.stopParseSubscript(e,i);i.optionalChainMember=a=!0,this.next()}if(!r&&this.match(10))return this.parseCoverCallAndAsyncArrowHead(e,t,i,a);var s=this.eat(0);return s||a||this.eat(16)?this.parseMember(e,t,i,s,a):this.stopParseSubscript(e,i)}stopParseSubscript(e,t){return t.stop=!0,e}parseMember(e,t,r,i,n){var a=this.startNodeAt(t);return a.object=e,a.computed=i,i?(a.property=this.parseExpression(),this.expect(3)):this.match(139)?("Super"===e.type&&this.raise(m.SuperPrivateField,t),this.classScope.usePrivateName(this.state.value,this.state.startLoc),a.property=this.parsePrivateName()):a.property=this.parseIdentifier(!0),r.optionalChainMember?(a.optional=n,this.finishNode(a,"OptionalMemberExpression")):this.finishNode(a,"MemberExpression")}parseBind(e,t,r,i){var n=this.startNodeAt(t);return n.object=e,this.next(),n.callee=this.parseNoCallExpr(),i.stop=!0,this.parseSubscripts(this.finishNode(n,"BindExpression"),t,r)}parseCoverCallAndAsyncArrowHead(e,t,r,i){var n=this.state.maybeInArrowParameters,a=null;this.state.maybeInArrowParameters=!0,this.next();var s=this.startNodeAt(t);s.callee=e;var{maybeAsyncArrow:o,optionalChainMember:l}=r;o&&(this.expressionScope.enter(new dt(2)),a=new vt),l&&(s.optional=i),s.arguments=i?this.parseCallExpressionArguments():this.parseCallExpressionArguments("Super"!==e.type,s,a);var p=this.finishCallExpression(s,l);return o&&this.shouldParseAsyncArrow()&&!i?(r.stop=!0,this.checkDestructuringPrivate(a),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),p=this.parseAsyncArrowFromCallExpression(this.startNodeAt(t),p)):(o&&(this.checkExpressionErrors(a,!0),this.expressionScope.exit()),this.toReferencedArguments(p)),this.state.maybeInArrowParameters=n,p}toReferencedArguments(e,t){this.toReferencedListDeep(e.arguments,t)}parseTaggedTemplateExpression(e,t,r){var i=this.startNodeAt(t);return i.tag=e,i.quasi=this.parseTemplate(!0),r.optionalChainMember&&this.raise(m.OptionalChainingNoTemplate,t),this.finishNode(i,"TaggedTemplateExpression")}atPossibleAsyncArrow(e){return"Identifier"===e.type&&"async"===e.name&&this.state.lastTokEndLoc.index===e.end&&!this.canInsertSemicolon()&&e.end-e.start===5&&this.offsetToSourcePos(e.start)===this.state.potentialArrowAt}finishCallExpression(e,t){if("Import"===e.callee.type)if(0===e.arguments.length||e.arguments.length>2)this.raise(m.ImportCallArity,e);else for(var r of e.arguments)"SpreadElement"===r.type&&this.raise(m.ImportCallSpreadArgument,r);return this.finishNode(e,t?"OptionalCallExpression":"CallExpression")}parseCallExpressionArguments(e,t,r){var i=[],n=!0,a=this.state.inFSharpPipelineDirectBody;for(this.state.inFSharpPipelineDirectBody=!1;!this.eat(11);){if(n)n=!1;else if(this.expect(12),this.match(11)){t&&this.addTrailingCommaExtraToNode(t),this.next();break}i.push(this.parseExprListItem(11,!1,r,e))}return this.state.inFSharpPipelineDirectBody=a,i}shouldParseAsyncArrow(){return this.match(19)&&!this.canInsertSemicolon()}parseAsyncArrowFromCallExpression(e,t){var r;return this.resetPreviousNodeTrailingComments(t),this.expect(19),this.parseArrowExpression(e,t.arguments,!0,null==(r=t.extra)?void 0:r.trailingCommaLoc),t.innerComments&&Xe(e,t.innerComments),t.callee.trailingComments&&Xe(e,t.callee.trailingComments),e}parseNoCallExpr(){var e=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),e,!0)}parseExprAtom(e){var t,r=null,{type:i}=this.state;switch(i){case 79:return this.parseSuper();case 83:return t=this.startNode(),this.next(),this.match(16)?this.parseImportMetaPropertyOrPhaseCall(t):this.match(10)?512&this.optionFlags?this.parseImportCall(t):this.finishNode(t,"Import"):(this.raise(m.UnsupportedImport,this.state.lastTokStartLoc),this.finishNode(t,"Import"));case 78:return t=this.startNode(),this.next(),this.finishNode(t,"ThisExpression");case 90:return this.parseDo(this.startNode(),!1);case 56:case 31:return this.readRegexp(),this.parseRegExpLiteral(this.state.value);case 135:return this.parseNumericLiteral(this.state.value);case 136:return this.parseBigIntLiteral(this.state.value);case 134: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:var n=this.state.potentialArrowAt===this.state.start;return this.parseParenAndDistinguishExpression(n);case 0:return this.parseArrayLike(3,!1,e);case 5:return this.parseObjectLike(8,!1,!1,e);case 68:return this.parseFunctionOrFunctionSent();case 26:r=this.parseDecorators();case 80:return this.parseClass(this.maybeTakeDecorators(r,this.startNode()),!1);case 77:return this.parseNewOrNewTarget();case 25:case 24:return this.parseTemplate(!1);case 15:t=this.startNode(),this.next(),t.object=null;var a=t.callee=this.parseNoCallExpr();if("MemberExpression"===a.type)return this.finishNode(t,"BindExpression");throw this.raise(m.UnsupportedBind,a);case 139:return this.raise(m.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:var s=this.getPluginOption("pipelineOperator","proposal");if(s)return this.parseTopicReference(s);throw this.unexpected();case 47:var o=this.input.codePointAt(this.nextTokenStart());if(ce(o)||62===o)throw this.expectOnePlugin(["jsx","flow","typescript"]);throw this.unexpected();default:if(137===i)return this.parseDecimalLiteral(this.state.value);if(2===i||1===i)return this.parseArrayLike(2===this.state.type?4:3,!0);if(6===i||7===i)return this.parseObjectLike(6===this.state.type?9:8,!1,!0);if(X(i)){if(this.isContextual(127)&&123===this.lookaheadInLineCharCode())return this.parseModuleExpression();var l=this.state.potentialArrowAt===this.state.start,p=this.state.containsEsc,c=this.parseIdentifier();if(!p&&"async"===c.name&&!this.canInsertSemicolon()){var{type:u}=this.state;if(68===u)return this.resetPreviousNodeTrailingComments(c),this.next(),this.parseAsyncFunctionExpression(this.startNodeAtNode(c));if(X(u))return 61===this.lookaheadCharCode()?this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(c)):c;if(90===u)return this.resetPreviousNodeTrailingComments(c),this.parseDo(this.startNodeAtNode(c),!0)}return l&&this.match(19)&&!this.canInsertSemicolon()?(this.next(),this.parseArrowExpression(this.startNodeAtNode(c),[c],!1)):c}throw this.unexpected()}}parseTopicReferenceThenEqualsSign(e,t){var i=this.getPluginOption("pipelineOperator","proposal");if(i)return this.state.type=e,this.state.value=t,this.state.pos--,this.state.end--,this.state.endLoc=r(this.state.endLoc,-1),this.parseTopicReference(i);throw this.unexpected()}parseTopicReference(e){var t=this.startNode(),r=this.state.startLoc,i=this.state.type;return this.next(),this.finishTopicReference(t,r,e,i)}finishTopicReference(e,t,r,i){if(this.testTopicReferenceConfiguration(r,t,i))return"hack"===r?(this.topicReferenceIsAllowedInCurrentContext()||this.raise(m.PipeTopicUnbound,t),this.registerTopicReference(),this.finishNode(e,"TopicReference")):(this.topicReferenceIsAllowedInCurrentContext()||this.raise(m.PrimaryTopicNotAllowed,t),this.registerTopicReference(),this.finishNode(e,"PipelinePrimaryTopicReference"));throw this.raise(m.PipeTopicUnconfiguredToken,t,{token:Z(i)})}testTopicReferenceConfiguration(e,t,r){switch(e){case"hack":return this.hasPlugin(["pipelineOperator",{topicToken:Z(r)}]);case"smart":return 27===r;default:throw this.raise(m.PipeTopicRequiresHackPipes,t)}}parseAsyncArrowUnaryFunction(e){this.prodParam.enter(We(!0,this.prodParam.hasYield));var t=[this.parseIdentifier()];return this.prodParam.exit(),this.hasPrecedingLineBreak()&&this.raise(m.LineTerminatorBeforeArrow,this.state.curPosition()),this.expect(19),this.parseArrowExpression(e,t,!0)}parseDo(e,t){this.expectPlugin("doExpressions"),t&&this.expectPlugin("asyncDoExpressions"),e.async=t,this.next();var r=this.state.labels;return this.state.labels=[],t?(this.prodParam.enter(2),e.body=this.parseBlock(),this.prodParam.exit()):e.body=this.parseBlock(),this.state.labels=r,this.finishNode(e,"DoExpression")}parseSuper(){var e=this.startNode();return this.next(),this.match(10)&&!this.scope.allowDirectSuper?16&this.optionFlags||this.raise(m.SuperNotAllowed,e):this.scope.allowSuper||16&this.optionFlags||this.raise(m.UnexpectedSuper,e),this.match(10)||this.match(0)||this.match(16)||this.raise(m.UnsupportedSuper,e),this.finishNode(e,"Super")}parsePrivateName(){var e=this.startNode(),t=this.startNodeAt(r(this.state.startLoc,1)),i=this.state.value;return this.next(),e.id=this.createIdentifier(t,i),this.finishNode(e,"PrivateName")}parseFunctionOrFunctionSent(){var e=this.startNode();if(this.next(),this.prodParam.hasYield&&this.match(16)){var t=this.createIdentifier(this.startNodeAtNode(e),"function");return this.next(),this.match(103)?this.expectPlugin("functionSent"):this.hasPlugin("functionSent")||this.unexpected(),this.parseMetaProperty(e,t,"sent")}return this.parseFunction(e)}parseMetaProperty(e,t,r){e.meta=t;var i=this.state.containsEsc;return e.property=this.parseIdentifier(!0),(e.property.name!==r||i)&&this.raise(m.UnsupportedMetaProperty,e.property,{target:t.name,onlyValidPropertyName:r}),this.finishNode(e,"MetaProperty")}parseImportMetaPropertyOrPhaseCall(e){if(this.next(),this.isContextual(105)||this.isContextual(97)){var t=this.isContextual(105);return this.expectPlugin(t?"sourcePhaseImports":"deferredImportEvaluation"),this.next(),e.phase=t?"source":"defer",this.parseImportCall(e)}var r=this.createIdentifierAt(this.startNodeAtNode(e),"import",this.state.lastTokStartLoc);return this.isContextual(101)&&(this.inModule||this.raise(m.ImportMetaOutsideModule,r),this.sawUnambiguousESM=!0),this.parseMetaProperty(e,r,"meta")}parseLiteralAtNode(e,t,r){return this.addExtra(r,"rawValue",e),this.addExtra(r,"raw",this.input.slice(this.offsetToSourcePos(r.start),this.state.end)),r.value=e,this.next(),this.finishNode(r,t)}parseLiteral(e,t){var r=this.startNode();return this.parseLiteralAtNode(e,t,r)}parseStringLiteral(e){return this.parseLiteral(e,"StringLiteral")}parseNumericLiteral(e){return this.parseLiteral(e,"NumericLiteral")}parseBigIntLiteral(e){return this.parseLiteral(e,"BigIntLiteral")}parseDecimalLiteral(e){return this.parseLiteral(e,"DecimalLiteral")}parseRegExpLiteral(e){var t=this.startNode();return this.addExtra(t,"raw",this.input.slice(this.offsetToSourcePos(t.start),this.state.end)),t.pattern=e.pattern,t.flags=e.flags,this.next(),this.finishNode(t,"RegExpLiteral")}parseBooleanLiteral(e){var t=this.startNode();return t.value=e,this.next(),this.finishNode(t,"BooleanLiteral")}parseNullLiteral(){var e=this.startNode();return this.next(),this.finishNode(e,"NullLiteral")}parseParenAndDistinguishExpression(e){var t,r=this.state.startLoc;this.next(),this.expressionScope.enter(new dt(1));var i=this.state.maybeInArrowParameters,n=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=!0,this.state.inFSharpPipelineDirectBody=!1;for(var a,s,o=this.state.startLoc,l=[],p=new vt,c=!0;!this.match(11);){if(c)c=!1;else if(this.expect(12,null===p.optionalParametersLoc?null:p.optionalParametersLoc),this.match(11)){s=this.state.startLoc;break}if(this.match(21)){var u=this.state.startLoc;if(a=this.state.startLoc,l.push(this.parseParenItem(this.parseRestBinding(),u)),!this.checkCommaAfterRest(41))break}else l.push(this.parseMaybeAssignAllowInOrVoidPattern(11,p,this.parseParenItem))}var h=this.state.lastTokEndLoc;this.expect(11),this.state.maybeInArrowParameters=i,this.state.inFSharpPipelineDirectBody=n;var d=this.startNodeAt(r);return e&&this.shouldParseArrow(l)&&(d=this.parseArrow(d))?(this.checkDestructuringPrivate(p),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),this.parseArrowExpression(d,l,!1),d):(this.expressionScope.exit(),l.length||this.unexpected(this.state.lastTokStartLoc),s&&this.unexpected(s),a&&this.unexpected(a),this.checkExpressionErrors(p,!0),this.toReferencedListDeep(l,!0),l.length>1?((t=this.startNodeAt(o)).expressions=l,this.finishNode(t,"SequenceExpression"),this.resetEndLocation(t,h)):t=l[0],this.wrapParenthesis(r,t))}wrapParenthesis(e,t){if(!(1024&this.optionFlags))return this.addExtra(t,"parenthesized",!0),this.addExtra(t,"parenStart",e.index),this.takeSurroundingComments(t,e.index,this.state.lastTokEndLoc.index),t;var r=this.startNodeAt(e);return r.expression=t,this.finishNode(r,"ParenthesizedExpression")}shouldParseArrow(e){return!this.canInsertSemicolon()}parseArrow(e){if(this.eat(19))return e}parseParenItem(e,t){return e}parseNewOrNewTarget(){var e=this.startNode();if(this.next(),this.match(16)){var t=this.createIdentifier(this.startNodeAtNode(e),"new");this.next();var r=this.parseMetaProperty(e,t,"target");return this.scope.allowNewTarget||this.raise(m.UnexpectedNewTarget,r),r}return this.parseNew(e)}parseNew(e){if(this.parseNewCallee(e),this.eat(10)){var t=this.parseExprList(11);this.toReferencedList(t),e.arguments=t}else e.arguments=[];return this.finishNode(e,"NewExpression")}parseNewCallee(e){var t=this.match(83),r=this.parseNoCallExpr();e.callee=r,!t||"Import"!==r.type&&"ImportExpression"!==r.type||this.raise(m.ImportCallNotNewExpression,r)}parseTemplateElement(e){var{start:t,startLoc:i,end:n,value:a}=this.state,s=t+1,o=this.startNodeAt(r(i,1));null===a&&(e||this.raise(m.InvalidEscapeSequenceTemplate,r(this.state.firstInvalidTemplateEscapePos,1)));var l=this.match(24),p=l?-1:-2,c=n+p;o.value={raw:this.input.slice(s,c).replace(/\r\n?/g,"\n"),cooked:null===a?null:a.slice(1,p)},o.tail=l,this.next();var u=this.finishNode(o,"TemplateElement");return this.resetEndLocation(u,r(this.state.lastTokEndLoc,p)),u}parseTemplate(e){for(var t=this.startNode(),r=this.parseTemplateElement(e),i=[r],n=[];!r.tail;)n.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),i.push(r=this.parseTemplateElement(e));return t.expressions=n,t.quasis=i,this.finishNode(t,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(e,t,r,i){r&&this.expectPlugin("recordAndTuple");var n=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;var a=!1,s=!0,o=this.startNode();for(o.properties=[],this.next();!this.match(e);){if(s)s=!1;else if(this.expect(12),this.match(e)){this.addTrailingCommaExtraToNode(o);break}var l=void 0;t?l=this.parseBindingProperty():(l=this.parsePropertyDefinition(i),a=this.checkProto(l,r,a,i)),r&&!this.isObjectProperty(l)&&"SpreadElement"!==l.type&&this.raise(m.InvalidRecordProperty,l),l.shorthand&&this.addExtra(l,"shorthand",!0),o.properties.push(l)}this.next(),this.state.inFSharpPipelineDirectBody=n;var p="ObjectExpression";return t?p="ObjectPattern":r&&(p="RecordExpression"),this.finishNode(o,p)}addTrailingCommaExtraToNode(e){this.addExtra(e,"trailingComma",this.state.lastTokStartLoc.index),this.addExtra(e,"trailingCommaLoc",this.state.lastTokStartLoc,!1)}maybeAsyncOrAccessorProp(e){return!e.computed&&"Identifier"===e.key.type&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))}parsePropertyDefinition(e){var t=[];if(this.match(26))for(this.hasPlugin("decorators")&&this.raise(m.UnsupportedPropertyDecorator,this.state.startLoc);this.match(26);)t.push(this.parseDecorator());var r,i=this.startNode(),n=!1,a=!1;if(this.match(21))return t.length&&this.unexpected(),this.parseSpread();t.length&&(i.decorators=t,t=[]),i.method=!1,e&&(r=this.state.startLoc);var s=this.eat(55);this.parsePropertyNamePrefixOperator(i);var o=this.state.containsEsc;if(this.parsePropertyName(i,e),!s&&!o&&this.maybeAsyncOrAccessorProp(i)){var{key:l}=i,p=l.name;"async"!==p||this.hasPrecedingLineBreak()||(n=!0,this.resetPreviousNodeTrailingComments(l),s=this.eat(55),this.parsePropertyName(i)),"get"!==p&&"set"!==p||(a=!0,this.resetPreviousNodeTrailingComments(l),i.kind=p,this.match(55)&&(s=!0,this.raise(m.AccessorIsGenerator,this.state.curPosition(),{kind:p}),this.next()),this.parsePropertyName(i))}return this.parseObjPropValue(i,r,s,n,!1,a,e)}getGetterSetterExpectedParamCount(e){return"get"===e.kind?0:1}getObjectOrClassMethodParams(e){return e.params}checkGetterSetterParams(e){var t,r=this.getGetterSetterExpectedParamCount(e),i=this.getObjectOrClassMethodParams(e);i.length!==r&&this.raise("get"===e.kind?m.BadGetterArity:m.BadSetterArity,e),"set"===e.kind&&"RestElement"===(null==(t=i[i.length-1])?void 0:t.type)&&this.raise(m.BadSetterRestParameter,e)}parseObjectMethod(e,t,r,i,n){if(n){var a=this.parseMethod(e,t,!1,!1,!1,"ObjectMethod");return this.checkGetterSetterParams(a),a}if(r||t||this.match(10))return i&&this.unexpected(),e.kind="method",e.method=!0,this.parseMethod(e,t,r,!1,!1,"ObjectMethod")}parseObjectProperty(e,t,r,i){if(e.shorthand=!1,this.eat(14))return e.value=r?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowInOrVoidPattern(8,i),this.finishObjectProperty(e);if(!e.computed&&"Identifier"===e.key.type){if(this.checkReservedWord(e.key.name,e.key.loc.start,!0,!1),r)e.value=this.parseMaybeDefault(t,this.cloneIdentifier(e.key));else if(this.match(29)){var n=this.state.startLoc;null!=i?null===i.shorthandAssignLoc&&(i.shorthandAssignLoc=n):this.raise(m.InvalidCoverInitializedName,n),e.value=this.parseMaybeDefault(t,this.cloneIdentifier(e.key))}else e.value=this.cloneIdentifier(e.key);return e.shorthand=!0,this.finishObjectProperty(e)}}finishObjectProperty(e){return this.finishNode(e,"ObjectProperty")}parseObjPropValue(e,t,r,i,n,a,s){var o=this.parseObjectMethod(e,r,i,n,a)||this.parseObjectProperty(e,t,n,s);return o||this.unexpected(),o}parsePropertyName(e,t){if(this.eat(0))e.computed=!0,e.key=this.parseMaybeAssignAllowIn(),this.expect(3);else{var r,{type:i,value:n}=this.state;if(H(i))r=this.parseIdentifier(!0);else switch(i){case 135:r=this.parseNumericLiteral(n);break;case 134:r=this.parseStringLiteral(n);break;case 136:r=this.parseBigIntLiteral(n);break;case 139:var a=this.state.startLoc;null!=t?null===t.privateKeyLoc&&(t.privateKeyLoc=a):this.raise(m.UnexpectedPrivateField,a),r=this.parsePrivateName();break;default:if(137===i){r=this.parseDecimalLiteral(n);break}this.unexpected()}e.key=r,139!==i&&(e.computed=!1)}}initFunction(e,t){e.id=null,e.generator=!1,e.async=t}parseMethod(e,t,r,i,n,a){var s=arguments.length>6&&void 0!==arguments[6]&&arguments[6];this.initFunction(e,r),e.generator=t,this.scope.enter(530|(s?576:0)|(n?32:0)),this.prodParam.enter(We(r,e.generator)),this.parseFunctionParams(e,i);var o=this.parseFunctionBodyAndFinish(e,a,!0);return this.prodParam.exit(),this.scope.exit(),o}parseArrayLike(e,t,r){t&&this.expectPlugin("recordAndTuple");var i=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;var n=this.startNode();return this.next(),n.elements=this.parseExprList(e,!t,r,n),this.state.inFSharpPipelineDirectBody=i,this.finishNode(n,t?"TupleExpression":"ArrayExpression")}parseArrowExpression(e,t,r,i){this.scope.enter(518);var n=We(r,!1);!this.match(5)&&this.prodParam.hasIn&&(n|=8),this.prodParam.enter(n),this.initFunction(e,r);var a=this.state.maybeInArrowParameters;return t&&(this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(e,t,i)),this.state.maybeInArrowParameters=!1,this.parseFunctionBody(e,!0),this.prodParam.exit(),this.scope.exit(),this.state.maybeInArrowParameters=a,this.finishNode(e,"ArrowFunctionExpression")}setArrowFunctionParameters(e,t,r){this.toAssignableList(t,r,!1),e.params=t}parseFunctionBodyAndFinish(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return this.parseFunctionBody(e,!1,r),this.finishNode(e,t)}parseFunctionBody(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=t&&!this.match(5);if(this.expressionScope.enter(mt()),i)e.body=this.parseMaybeAssign(),this.checkParams(e,!1,t,!1);else{var n=this.state.strict,a=this.state.labels;this.state.labels=[],this.prodParam.enter(4|this.prodParam.currentFlags()),e.body=this.parseBlock(!0,!1,(i=>{var a=!this.isSimpleParamList(e.params);i&&a&&this.raise(m.IllegalLanguageModeDirective,"method"!==e.kind&&"constructor"!==e.kind||!e.key?e:e.key.loc.end);var s=!n&&this.state.strict;this.checkParams(e,!(this.state.strict||t||r||a),t,s),this.state.strict&&e.id&&this.checkIdentifier(e.id,65,s)})),this.prodParam.exit(),this.state.labels=a}this.expressionScope.exit()}isSimpleParameter(e){return"Identifier"===e.type}isSimpleParamList(e){for(var t=0,r=e.length;t<r;t++)if(!this.isSimpleParameter(e[t]))return!1;return!0}checkParams(e,t,r){var i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],n=!t&&new Set,a={type:"FormalParameters"};for(var s of e.params)this.checkLVal(s,a,5,n,i)}parseExprList(e,t,r,i){for(var n=[],a=!0;!this.eat(e);){if(a)a=!1;else if(this.expect(12),this.match(e)){i&&this.addTrailingCommaExtraToNode(i),this.next();break}n.push(this.parseExprListItem(e,t,r))}return n}parseExprListItem(e,t,r,i){var n;if(this.match(12))t||this.raise(m.UnexpectedToken,this.state.curPosition(),{unexpected:","}),n=null;else if(this.match(21)){var a=this.state.startLoc;n=this.parseParenItem(this.parseSpread(r),a)}else if(this.match(17)){this.expectPlugin("partialApplication"),i||this.raise(m.UnexpectedArgumentPlaceholder,this.state.startLoc);var s=this.startNode();this.next(),n=this.finishNode(s,"ArgumentPlaceholder")}else n=this.parseMaybeAssignAllowInOrVoidPattern(e,r,this.parseParenItem);return n}parseIdentifier(e){var t=this.startNode(),r=this.parseIdentifierName(e);return this.createIdentifier(t,r)}createIdentifier(e,t){return e.name=t,e.loc.identifierName=t,this.finishNode(e,"Identifier")}createIdentifierAt(e,t,r){return e.name=t,e.loc.identifierName=t,this.finishNodeAt(e,"Identifier",r)}parseIdentifierName(e){var t,{startLoc:r,type:i}=this.state;H(i)?t=this.state.value:this.unexpected();var n=i<=92;return e?n&&this.replaceToken(132):this.checkReservedWord(t,r,n,!1),this.next(),t}checkReservedWord(e,t,r,i){if(!(e.length>10)&&function(e){return xe.has(e)}(e))if(r&&function(e){return fe.has(e)}(e))this.raise(m.UnexpectedKeyword,t,{keyword:e});else if((this.state.strict?i?Se:Te:ve)(e,this.inModule))this.raise(m.UnexpectedReservedWord,t,{reservedWord:e});else if("yield"===e){if(this.prodParam.hasYield)return void this.raise(m.YieldBindingIdentifier,t)}else if("await"===e){if(this.prodParam.hasAwait)return void this.raise(m.AwaitBindingIdentifier,t);if(this.scope.inStaticBlock)return void this.raise(m.AwaitBindingIdentifierInStaticBlock,t);this.expressionScope.recordAsyncArrowParametersError(t)}else if("arguments"===e&&this.scope.inClassAndNotInNonArrowFunction)return void this.raise(m.ArgumentsInClass,t)}recordAwaitIfAllowed(){var e=this.prodParam.hasAwait;return e&&!this.scope.inFunction&&(this.state.hasTopLevelAwait=!0),e}parseAwait(e){var t=this.startNodeAt(e);return this.expressionScope.recordParameterInitializerError(m.AwaitExpressionFormalParameter,t),this.eat(55)&&this.raise(m.ObsoleteAwaitStar,t),this.scope.inFunction||1&this.optionFlags||(this.isAmbiguousPrefixOrIdentifier()?this.ambiguousScriptDifferentAst=!0:this.sawUnambiguousESM=!0),this.state.soloAwait||(t.argument=this.parseMaybeUnary(null,!0)),this.finishNode(t,"AwaitExpression")}isAmbiguousPrefixOrIdentifier(){if(this.hasPrecedingLineBreak())return!0;var{type:e}=this.state;return 53===e||10===e||0===e||te(e)||102===e&&!this.state.containsEsc||138===e||56===e||this.hasPlugin("v8intrinsic")&&54===e}parseYield(e){var t=this.startNodeAt(e);this.expressionScope.recordParameterInitializerError(m.YieldInParameter,t);var r=!1,i=null;if(!this.hasPrecedingLineBreak())switch(r=this.eat(55),this.state.type){case 13:case 140: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(e){if(this.next(),e.source=this.parseMaybeAssignAllowIn(),e.options=null,this.eat(12))if(this.match(11))this.addTrailingCommaExtraToNode(e.source);else if(e.options=this.parseMaybeAssignAllowIn(),this.eat(12)&&(this.addTrailingCommaExtraToNode(e.options),!this.match(11))){do{this.parseMaybeAssignAllowIn()}while(this.eat(12)&&!this.match(11));this.raise(m.ImportCallArity,e)}return this.expect(11),this.finishNode(e,"ImportExpression")}checkPipelineAtInfixOperator(e,t){this.hasPlugin(["pipelineOperator",{proposal:"smart"}])&&"SequenceExpression"===e.type&&this.raise(m.PipelineHeadSequenceExpression,t)}parseSmartPipelineBodyInStyle(e,t){if(this.isSimpleReference(e)){var r=this.startNodeAt(t);return r.callee=e,this.finishNode(r,"PipelineBareFunction")}var i=this.startNodeAt(t);return this.checkSmartPipeTopicBodyEarlyErrors(t),i.expression=e,this.finishNode(i,"PipelineTopicExpression")}isSimpleReference(e){switch(e.type){case"MemberExpression":return!e.computed&&this.isSimpleReference(e.object);case"Identifier":return!0;default:return!1}}checkSmartPipeTopicBodyEarlyErrors(e){if(this.match(19))throw this.raise(m.PipelineBodyNoArrow,this.state.startLoc);this.topicReferenceWasUsedInCurrentContext()||this.raise(m.PipelineTopicUnused,e)}withTopicBindingContext(e){var t=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return e()}finally{this.state.topicContext=t}}withSmartMixTopicForbiddingContext(e){if(!this.hasPlugin(["pipelineOperator",{proposal:"smart"}]))return e();var t=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};try{return e()}finally{this.state.topicContext=t}}withSoloAwaitPermittingContext(e){var t=this.state.soloAwait;this.state.soloAwait=!0;try{return e()}finally{this.state.soloAwait=t}}allowInAnd(e){var t=this.prodParam.currentFlags();if(8&~t){this.prodParam.enter(8|t);try{return e()}finally{this.prodParam.exit()}}return e()}disallowInAnd(e){var t=this.prodParam.currentFlags();if(8&t){this.prodParam.enter(-9&t);try{return e()}finally{this.prodParam.exit()}}return e()}registerTopicReference(){this.state.topicContext.maxTopicIndex=0}topicReferenceIsAllowedInCurrentContext(){return this.state.topicContext.maxNumOfResolvableTopics>=1}topicReferenceWasUsedInCurrentContext(){return null!=this.state.topicContext.maxTopicIndex&&this.state.topicContext.maxTopicIndex>=0}parseFSharpPipelineBody(e){var t=this.state.startLoc;this.state.potentialArrowAt=this.state.start;var r=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;var i=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),t,e);return this.state.inFSharpPipelineDirectBody=r,i}parseModuleExpression(){this.expectPlugin("moduleBlocks");var e=this.startNode();this.next(),this.match(5)||this.unexpected(null,5);var t=this.startNodeAt(this.state.endLoc);this.next();var r=this.initializeScopes(!0);this.enterInitialScopes();try{e.body=this.parseProgram(t,8,"module")}finally{r()}return this.finishNode(e,"ModuleExpression")}parseVoidPattern(e){this.expectPlugin("discardBinding");var t=this.startNode();return null!=e&&(e.voidPatternLoc=this.state.startLoc),this.next(),this.finishNode(t,"VoidPattern")}parseMaybeAssignAllowInOrVoidPattern(e,t,r){if(null!=t&&this.match(88)){var i=this.lookaheadCharCode();if(44===i||i===(3===e?93:8===e?125:41)||61===i)return this.parseMaybeDefault(this.state.startLoc,this.parseVoidPattern(t))}return this.parseMaybeAssignAllowIn(t,r)}parsePropertyNamePrefixOperator(e){}}var jt={kind:1},Rt={kind:2},Ut=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,Kt=/in(?:stanceof)?/y;class Vt extends Bt{parseTopLevel(e,t){return e.program=this.parseProgram(t,140,"module"===this.options.sourceType?"module":"script"),e.comments=this.comments,256&this.optionFlags&&(e.tokens=function(e,t,i){for(var n=0;n<e.length;n++){var a=e[n],{type:s}=a;if("number"==typeof s){if(139===s){var{loc:o,start:l,value:p,end:c}=a,u=l+1,h=r(o.start,1);e.splice(n,1,new lt({type:re(27),value:"#",start:l,end:u,startLoc:o.start,endLoc:h}),new lt({type:re(132),value:p,start:u,end:c,startLoc:h,endLoc:o.end})),n++;continue}if(te(s)){var{loc:d,start:f,value:m,end:y}=a,v=f+1,T=r(d.start,1),g=void 0;g=96===t.charCodeAt(f-i)?new lt({type:re(22),value:"`",start:f,end:v,startLoc:d.start,endLoc:T}):new lt({type:re(8),value:"}",start:f,end:v,startLoc:d.start,endLoc:T});var S=void 0,x=void 0,b=void 0,P=void 0;24===s?(x=y-1,b=r(d.end,-1),S=null===m?null:m.slice(1,-1),P=new lt({type:re(22),value:"`",start:x,end:y,startLoc:b,endLoc:d.end})):(x=y-2,b=r(d.end,-2),S=null===m?null:m.slice(1,-2),P=new lt({type:re(23),value:"${",start:x,end:y,startLoc:b,endLoc:d.end})),e.splice(n,1,g,new lt({type:re(20),value:S,start:v,end:x,startLoc:T,endLoc:b}),P),n+=2;continue}a.type=re(s)}}return e}(this.tokens,this.input,this.startIndex)),this.finishNode(e,"File")}parseProgram(e,t,i){if(e.sourceType=i,e.interpreter=this.parseInterpreterDirective(),this.parseBlockBody(e,!0,!0,t),this.inModule){if(!(64&this.optionFlags)&&this.scope.undefinedExports.size>0)for(var[n,a]of Array.from(this.scope.undefinedExports))this.raise(m.ModuleExportUndefined,a,{localName:n});this.addExtra(e,"topLevelAwait",this.state.hasTopLevelAwait)}return 140===t?this.finishNode(e,"Program"):this.finishNodeAt(e,"Program",r(this.state.startLoc,-1))}stmtToDirective(e){var t=this.castNodeTo(e,"Directive"),r=this.castNodeTo(e.expression,"DirectiveLiteral"),i=r.value,n=this.input.slice(this.offsetToSourcePos(r.start),this.offsetToSourcePos(r.end)),a=r.value=n.slice(1,-1);return this.addExtra(r,"raw",n),this.addExtra(r,"rawValue",a),this.addExtra(r,"expressionValue",i),t.value=r,delete e.expression,t}parseInterpreterDirective(){if(!this.match(28))return null;var e=this.startNode();return e.value=this.state.value,this.next(),this.finishNode(e,"InterpreterDirective")}isLet(){return!!this.isContextual(100)&&this.hasFollowingBindingAtom()}isUsing(){return!!this.isContextual(107)&&this.nextTokenIsIdentifierOnSameLine()}isForUsing(){if(!this.isContextual(107))return!1;var e=this.nextTokenInLineStart(),t=this.codePointAtPos(e);if(this.isUnparsedContextual(e,"of")){var r=this.lookaheadCharCodeSince(e+2);if(61!==r&&58!==r&&59!==r)return!1}return!(!this.chStartsBindingIdentifier(t,e)&&!this.isUnparsedContextual(e,"void"))}nextTokenIsIdentifierOnSameLine(){var e=this.nextTokenInLineStart(),t=this.codePointAtPos(e);return this.chStartsBindingIdentifier(t,e)}isAwaitUsing(){if(!this.isContextual(96))return!1;var e=this.nextTokenInLineStart();if(this.isUnparsedContextual(e,"using")){e=this.nextTokenInLineStartSince(e+5);var t=this.codePointAtPos(e);if(this.chStartsBindingIdentifier(t,e))return!0}return!1}chStartsBindingIdentifier(e,t){if(ce(e)){if(Kt.lastIndex=t,Kt.test(this.input)){var r=this.codePointAtPos(Kt.lastIndex);if(!ue(r)&&92!==r)return!1}return!0}return 92===e}chStartsBindingPattern(e){return 91===e||123===e}hasFollowingBindingAtom(){var e=this.nextTokenStart(),t=this.codePointAtPos(e);return this.chStartsBindingPattern(t)||this.chStartsBindingIdentifier(t,e)}hasInLineFollowingBindingIdentifierOrBrace(){var e=this.nextTokenInLineStart(),t=this.codePointAtPos(e);return 123===t||this.chStartsBindingIdentifier(t,e)}allowsUsing(){return(this.scope.inModule||!this.scope.inTopLevel)&&!this.scope.inBareCaseStatement}parseModuleItem(){return this.parseStatementLike(15)}parseStatementListItem(){return this.parseStatementLike(6|(!this.options.annexB||this.state.strict?0:8))}parseStatementOrSloppyAnnexBFunctionDeclaration(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=0;return this.options.annexB&&!this.state.strict&&(t|=4,e&&(t|=8)),this.parseStatementLike(t)}parseStatement(){return this.parseStatementLike(0)}parseStatementLike(e){var t=null;return this.match(26)&&(t=this.parseDecorators(!0)),this.parseStatementContent(e,t)}parseStatementContent(e,t){var r=this.state.type,i=this.startNode(),n=!!(2&e),a=!!(4&e),s=1&e;switch(r){case 60:return this.parseBreakContinueStatement(i,!0);case 63:return this.parseBreakContinueStatement(i,!1);case 64:return this.parseDebuggerStatement(i);case 90:return this.parseDoWhileStatement(i);case 91:return this.parseForStatement(i);case 68:if(46===this.lookaheadCharCode())break;return a||this.raise(this.state.strict?m.StrictFunction:this.options.annexB?m.SloppyFunctionAnnexB:m.SloppyFunction,this.state.startLoc),this.parseFunctionStatement(i,!1,!n&&a);case 80:return n||this.unexpected(),this.parseClass(this.maybeTakeDecorators(t,i),!0);case 69:return this.parseIfStatement(i);case 70:return this.parseReturnStatement(i);case 71:return this.parseSwitchStatement(i);case 72:return this.parseThrowStatement(i);case 73:return this.parseTryStatement(i);case 96:if(this.isAwaitUsing())return this.allowsUsing()?n?this.recordAwaitIfAllowed()||this.raise(m.AwaitUsingNotInAsyncContext,i):this.raise(m.UnexpectedLexicalDeclaration,i):this.raise(m.UnexpectedUsingDeclaration,i),this.next(),this.parseVarStatement(i,"await using");break;case 107:if(this.state.containsEsc||!this.hasInLineFollowingBindingIdentifierOrBrace())break;return this.allowsUsing()?n||this.raise(m.UnexpectedLexicalDeclaration,this.state.startLoc):this.raise(m.UnexpectedUsingDeclaration,this.state.startLoc),this.parseVarStatement(i,"using");case 100:if(this.state.containsEsc)break;var o=this.nextTokenStart(),l=this.codePointAtPos(o);if(91!==l){if(!n&&this.hasFollowingLineBreak())break;if(!this.chStartsBindingIdentifier(l,o)&&123!==l)break}case 75:n||this.raise(m.UnexpectedLexicalDeclaration,this.state.startLoc);case 74:var p=this.state.value;return this.parseVarStatement(i,p);case 92:return this.parseWhileStatement(i);case 76:return this.parseWithStatement(i);case 5:return this.parseBlock();case 13:return this.parseEmptyStatement(i);case 83:var c=this.lookaheadCharCode();if(40===c||46===c)break;case 82:var u;return 8&this.optionFlags||s||this.raise(m.UnexpectedImportExport,this.state.startLoc),this.next(),u=83===r?this.parseImport(i):this.parseExport(i,t),this.assertModuleNodeAllowed(u),u;default:if(this.isAsyncFunction())return n||this.raise(m.AsyncFunctionInSingleStatementContext,this.state.startLoc),this.next(),this.parseFunctionStatement(i,!0,!n&&a)}var h=this.state.value,d=this.parseExpression();return X(r)&&"Identifier"===d.type&&this.eat(14)?this.parseLabeledStatement(i,h,d,e):this.parseExpressionStatement(i,d,t)}assertModuleNodeAllowed(e){8&this.optionFlags||this.inModule||this.raise(m.ImportOutsideModule,e)}decoratorsEnabledBeforeExport(){return!!this.hasPlugin("decorators-legacy")||this.hasPlugin("decorators")&&!1!==this.getPluginOption("decorators","decoratorsBeforeExport")}maybeTakeDecorators(e,t,r){var i;e&&(null!=(i=t.decorators)&&i.length?("boolean"!=typeof this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(m.DecoratorsBeforeAfterExport,t.decorators[0]),t.decorators.unshift(...e)):t.decorators=e,this.resetStartLocationFromNode(t,e[0]),r&&this.resetStartLocationFromNode(r,t));return t}canHaveLeadingDecorator(){return this.match(80)}parseDecorators(e){var t=[];do{t.push(this.parseDecorator())}while(this.match(26));if(this.match(82))e||this.unexpected(),this.decoratorsEnabledBeforeExport()||this.raise(m.DecoratorExportClass,this.state.startLoc);else if(!this.canHaveLeadingDecorator())throw this.raise(m.UnexpectedLeadingDecorator,this.state.startLoc);return t}parseDecorator(){this.expectOnePlugin(["decorators","decorators-legacy"]);var e=this.startNode();if(this.next(),this.hasPlugin("decorators")){var t,r=this.state.startLoc;if(this.match(10)){var i=this.state.startLoc;this.next(),t=this.parseExpression(),this.expect(11),t=this.wrapParenthesis(i,t);var n=this.state.startLoc;e.expression=this.parseMaybeDecoratorArguments(t,i),!1===this.getPluginOption("decorators","allowCallParenthesized")&&e.expression!==t&&this.raise(m.DecoratorArgumentsOutsideParentheses,n)}else{for(t=this.parseIdentifier(!1);this.eat(16);){var a=this.startNodeAt(r);a.object=t,this.match(139)?(this.classScope.usePrivateName(this.state.value,this.state.startLoc),a.property=this.parsePrivateName()):a.property=this.parseIdentifier(!0),a.computed=!1,t=this.finishNode(a,"MemberExpression")}e.expression=this.parseMaybeDecoratorArguments(t,r)}}else e.expression=this.parseExprSubscripts();return this.finishNode(e,"Decorator")}parseMaybeDecoratorArguments(e,t){if(this.eat(10)){var r=this.startNodeAt(t);return r.callee=e,r.arguments=this.parseCallExpressionArguments(),this.toReferencedList(r.arguments),this.finishNode(r,"CallExpression")}return e}parseBreakContinueStatement(e,t){return this.next(),this.isLineTerminator()?e.label=null:(e.label=this.parseIdentifier(),this.semicolon()),this.verifyBreakContinue(e,t),this.finishNode(e,t?"BreakStatement":"ContinueStatement")}verifyBreakContinue(e,t){var r;for(r=0;r<this.state.labels.length;++r){var i=this.state.labels[r];if(null==e.label||i.name===e.label.name){if(null!=i.kind&&(t||1===i.kind))break;if(e.label&&t)break}}if(r===this.state.labels.length){var n=t?"BreakStatement":"ContinueStatement";this.raise(m.IllegalBreakContinue,e,{type:n})}}parseDebuggerStatement(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")}parseHeaderExpression(){this.expect(10);var e=this.parseExpression();return this.expect(11),e}parseDoWhileStatement(e){return this.next(),this.state.labels.push(jt),e.body=this.withSmartMixTopicForbiddingContext((()=>this.parseStatement())),this.state.labels.pop(),this.expect(92),e.test=this.parseHeaderExpression(),this.eat(13),this.finishNode(e,"DoWhileStatement")}parseForStatement(e){this.next(),this.state.labels.push(jt);var t=null;if(this.isContextual(96)&&this.recordAwaitIfAllowed()&&(t=this.state.startLoc,this.next()),this.scope.enter(0),this.expect(10),this.match(13))return null!==t&&this.unexpected(t),this.parseFor(e,null);var r=this.isContextual(100),i=this.isAwaitUsing(),n=i||this.isForUsing(),a=r&&this.hasFollowingBindingAtom()||n;if(this.match(74)||this.match(75)||a){var s,o=this.startNode();i?(s="await using",this.recordAwaitIfAllowed()||this.raise(m.AwaitUsingNotInAsyncContext,this.state.startLoc),this.next()):s=this.state.value,this.next(),this.parseVar(o,!0,s);var l=this.finishNode(o,"VariableDeclaration"),p=this.match(58);return p&&n&&this.raise(m.ForInUsing,l),(p||this.isContextual(102))&&1===l.declarations.length?this.parseForIn(e,l,t):(null!==t&&this.unexpected(t),this.parseFor(e,l))}var c=this.isContextual(95),u=new vt,h=this.parseExpression(!0,u),d=this.isContextual(102);if(d&&(r&&this.raise(m.ForOfLet,h),null===t&&c&&"Identifier"===h.type&&this.raise(m.ForOfAsync,h)),d||this.match(58)){this.checkDestructuringPrivate(u),this.toAssignable(h,!0);var f=d?"ForOfStatement":"ForInStatement";return this.checkLVal(h,{type:f}),this.parseForIn(e,h,t)}return this.checkExpressionErrors(u,!0),null!==t&&this.unexpected(t),this.parseFor(e,h)}parseFunctionStatement(e,t,r){return this.next(),this.parseFunction(e,1|(r?2:0)|(t?8:0))}parseIfStatement(e){return this.next(),e.test=this.parseHeaderExpression(),e.consequent=this.parseStatementOrSloppyAnnexBFunctionDeclaration(),e.alternate=this.eat(66)?this.parseStatementOrSloppyAnnexBFunctionDeclaration():null,this.finishNode(e,"IfStatement")}parseReturnStatement(e){return this.prodParam.hasReturn||this.raise(m.IllegalReturn,this.state.startLoc),this.next(),this.isLineTerminator()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")}parseSwitchStatement(e){this.next(),e.discriminant=this.parseHeaderExpression();var t,r,i=e.cases=[];for(this.expect(5),this.state.labels.push(Rt),this.scope.enter(256);!this.match(8);)if(this.match(61)||this.match(65)){var n=this.match(61);t&&this.finishNode(t,"SwitchCase"),i.push(t=this.startNode()),t.consequent=[],this.next(),n?t.test=this.parseExpression():(r&&this.raise(m.MultipleDefaultsInSwitch,this.state.lastTokStartLoc),r=!0,t.test=null),this.expect(14)}else t?t.consequent.push(this.parseStatementListItem()):this.unexpected();return this.scope.exit(),t&&this.finishNode(t,"SwitchCase"),this.next(),this.state.labels.pop(),this.finishNode(e,"SwitchStatement")}parseThrowStatement(e){return this.next(),this.hasPrecedingLineBreak()&&this.raise(m.NewlineAfterThrow,this.state.lastTokEndLoc),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")}parseCatchClauseParam(){var e=this.parseBindingAtom();return this.scope.enter(this.options.annexB&&"Identifier"===e.type?8:0),this.checkLVal(e,{type:"CatchClause"},9),e}parseTryStatement(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.match(62)){var t=this.startNode();this.next(),this.match(10)?(this.expect(10),t.param=this.parseCatchClauseParam(),this.expect(11)):(t.param=null,this.scope.enter(0)),t.body=this.withSmartMixTopicForbiddingContext((()=>this.parseBlock(!1,!1))),this.scope.exit(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(67)?this.parseBlock():null,e.handler||e.finalizer||this.raise(m.NoCatchOrFinally,e),this.finishNode(e,"TryStatement")}parseVarStatement(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return this.next(),this.parseVar(e,!1,t,r),this.semicolon(),this.finishNode(e,"VariableDeclaration")}parseWhileStatement(e){return this.next(),e.test=this.parseHeaderExpression(),this.state.labels.push(jt),e.body=this.withSmartMixTopicForbiddingContext((()=>this.parseStatement())),this.state.labels.pop(),this.finishNode(e,"WhileStatement")}parseWithStatement(e){return this.state.strict&&this.raise(m.StrictWith,this.state.startLoc),this.next(),e.object=this.parseHeaderExpression(),e.body=this.withSmartMixTopicForbiddingContext((()=>this.parseStatement())),this.finishNode(e,"WithStatement")}parseEmptyStatement(e){return this.next(),this.finishNode(e,"EmptyStatement")}parseLabeledStatement(e,t,r,i){for(var n of this.state.labels)n.name===t&&this.raise(m.LabelRedeclaration,r,{labelName:t});for(var a,s=(a=this.state.type)>=90&&a<=92?1:this.match(71)?2:null,o=this.state.labels.length-1;o>=0;o--){var l=this.state.labels[o];if(l.statementStart!==e.start)break;l.statementStart=this.sourceToOffsetPos(this.state.start),l.kind=s}return this.state.labels.push({name:t,kind:s,statementStart:this.sourceToOffsetPos(this.state.start)}),e.body=8&i?this.parseStatementOrSloppyAnnexBFunctionDeclaration(!0):this.parseStatement(),this.state.labels.pop(),e.label=r,this.finishNode(e,"LabeledStatement")}parseExpressionStatement(e,t,r){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")}parseBlock(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=arguments.length>2?arguments[2]:void 0,i=this.startNode();return e&&this.state.strictErrors.clear(),this.expect(5),t&&this.scope.enter(0),this.parseBlockBody(i,e,!1,8,r),t&&this.scope.exit(),this.finishNode(i,"BlockStatement")}isValidDirective(e){return"ExpressionStatement"===e.type&&"StringLiteral"===e.expression.type&&!e.expression.extra.parenthesized}parseBlockBody(e,t,r,i,n){var a=e.body=[],s=e.directives=[];this.parseBlockOrModuleBlockBody(a,t?s:void 0,r,i,n)}parseBlockOrModuleBlockBody(e,t,r,i,n){for(var a=this.state.strict,s=!1,o=!1;!this.match(i);){var l=r?this.parseModuleItem():this.parseStatementListItem();if(t&&!o){if(this.isValidDirective(l)){var p=this.stmtToDirective(l);t.push(p),s||"use strict"!==p.value.value||(s=!0,this.setStrict(!0));continue}o=!0,this.state.strictErrors.clear()}e.push(l)}null==n||n.call(this,s),a||this.setStrict(!1),this.next()}parseFor(e,t){return e.init=t,this.semicolon(!1),e.test=this.match(13)?null:this.parseExpression(),this.semicolon(!1),e.update=this.match(11)?null:this.parseExpression(),this.expect(11),e.body=this.withSmartMixTopicForbiddingContext((()=>this.parseStatement())),this.scope.exit(),this.state.labels.pop(),this.finishNode(e,"ForStatement")}parseForIn(e,t,r){var i=this.match(58);return this.next(),i?null!==r&&this.unexpected(r):e.await=null!==r,"VariableDeclaration"!==t.type||null==t.declarations[0].init||i&&this.options.annexB&&!this.state.strict&&"var"===t.kind&&"Identifier"===t.declarations[0].id.type||this.raise(m.ForInOfLoopInitializer,t,{type:i?"ForInStatement":"ForOfStatement"}),"AssignmentPattern"===t.type&&this.raise(m.InvalidLhs,t,{ancestor:{type:"ForStatement"}}),e.left=t,e.right=i?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(11),e.body=this.withSmartMixTopicForbiddingContext((()=>this.parseStatement())),this.scope.exit(),this.state.labels.pop(),this.finishNode(e,i?"ForInStatement":"ForOfStatement")}parseVar(e,t,r){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],n=e.declarations=[];for(e.kind=r;;){var a=this.startNode();if(this.parseVarId(a,r),a.init=this.eat(29)?t?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn():null,null!==a.init||i||("Identifier"===a.id.type||t&&(this.match(58)||this.isContextual(102))?"const"!==r&&"using"!==r&&"await using"!==r||this.match(58)||this.isContextual(102)||this.raise(m.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:r}):this.raise(m.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:"destructuring"})),n.push(this.finishNode(a,"VariableDeclarator")),!this.eat(12))break}return e}parseVarId(e,t){var r=this.parseBindingAtom();"using"===t||"await using"===t?"ArrayPattern"!==r.type&&"ObjectPattern"!==r.type||this.raise(m.UsingDeclarationHasBindingPattern,r.loc.start):"VoidPattern"===r.type&&this.raise(m.UnexpectedVoidPattern,r.loc.start),this.checkLVal(r,{type:"VariableDeclarator"},"var"===t?5:8201),e.id=r}parseAsyncFunctionExpression(e){return this.parseFunction(e,8)}parseFunction(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=2&t,i=!!(1&t),n=i&&!(4&t),a=!!(8&t);this.initFunction(e,a),this.match(55)&&(r&&this.raise(m.GeneratorInSingleStatementContext,this.state.startLoc),this.next(),e.generator=!0),i&&(e.id=this.parseFunctionId(n));var s=this.state.maybeInArrowParameters;return this.state.maybeInArrowParameters=!1,this.scope.enter(514),this.prodParam.enter(We(a,e.generator)),i||(e.id=this.parseFunctionId()),this.parseFunctionParams(e,!1),this.withSmartMixTopicForbiddingContext((()=>{this.parseFunctionBodyAndFinish(e,i?"FunctionDeclaration":"FunctionExpression")})),this.prodParam.exit(),this.scope.exit(),i&&!r&&this.registerFunctionStatementId(e),this.state.maybeInArrowParameters=s,e}parseFunctionId(e){return e||X(this.state.type)?this.parseIdentifier():null}parseFunctionParams(e,t){this.expect(10),this.expressionScope.enter(new ht(3)),e.params=this.parseBindingList(11,41,2|(t?4:0)),this.expressionScope.exit()}registerFunctionStatementId(e){e.id&&this.scope.declareName(e.id.name,!this.options.annexB||this.state.strict||e.generator||e.async?this.scope.treatFunctionsAsVar?5:8201:17,e.id.loc.start)}parseClass(e,t,r){this.next();var i=this.state.strict;return this.state.strict=!0,this.parseClassId(e,t,r),this.parseClassSuper(e),e.body=this.parseClassBody(!!e.superClass,i),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")}isClassProperty(){return this.match(29)||this.match(13)||this.match(8)}isClassMethod(){return this.match(10)}nameIsConstructor(e){return"Identifier"===e.type&&"constructor"===e.name||"StringLiteral"===e.type&&"constructor"===e.value}isNonstaticConstructor(e){return!e.computed&&!e.static&&this.nameIsConstructor(e.key)}parseClassBody(e,t){this.classScope.enter();var r={hadConstructor:!1,hadSuperClass:e},i=[],n=this.startNode();if(n.body=[],this.expect(5),this.withSmartMixTopicForbiddingContext((()=>{for(;!this.match(8);)if(this.eat(13)){if(i.length>0)throw this.raise(m.DecoratorSemicolon,this.state.lastTokEndLoc)}else if(this.match(26))i.push(this.parseDecorator());else{var e=this.startNode();i.length&&(e.decorators=i,this.resetStartLocationFromNode(e,i[0]),i=[]),this.parseClassMember(n,e,r),"constructor"===e.kind&&e.decorators&&e.decorators.length>0&&this.raise(m.DecoratorConstructor,e)}})),this.state.strict=t,this.next(),i.length)throw this.raise(m.TrailingDecorator,this.state.startLoc);return this.classScope.exit(),this.finishNode(n,"ClassBody")}parseClassMemberFromModifier(e,t){var r=this.parseIdentifier(!0);if(this.isClassMethod()){var i=t;return i.kind="method",i.computed=!1,i.key=r,i.static=!1,this.pushClassMethod(e,i,!1,!1,!1,!1),!0}if(this.isClassProperty()){var n=t;return n.computed=!1,n.key=r,n.static=!1,e.body.push(this.parseClassProperty(n)),!0}return this.resetPreviousNodeTrailingComments(r),!1}parseClassMember(e,t,r){var i=this.isContextual(106);if(i){if(this.parseClassMemberFromModifier(e,t))return;if(this.eat(5))return void this.parseClassStaticBlock(e,t)}this.parseClassMemberWithIsStatic(e,t,r,i)}parseClassMemberWithIsStatic(e,t,r,i){var n=t,a=t,s=t,o=t,l=t,p=n,c=n;if(t.static=i,this.parsePropertyNamePrefixOperator(t),this.eat(55)){p.kind="method";var u=this.match(139);return this.parseClassElementName(p),this.parsePostMemberNameModifiers(p),u?void this.pushClassPrivateMethod(e,a,!0,!1):(this.isNonstaticConstructor(n)&&this.raise(m.ConstructorIsGenerator,n.key),void this.pushClassMethod(e,n,!0,!1,!1,!1))}var h=!this.state.containsEsc&&X(this.state.type),d=this.parseClassElementName(t),f=h?d.name:null,y=this.isPrivateName(d),v=this.state.startLoc;if(this.parsePostMemberNameModifiers(c),this.isClassMethod()){if(p.kind="method",y)return void this.pushClassPrivateMethod(e,a,!1,!1);var T=this.isNonstaticConstructor(n),g=!1;T&&(n.kind="constructor",r.hadConstructor&&!this.hasPlugin("typescript")&&this.raise(m.DuplicateConstructor,d),T&&this.hasPlugin("typescript")&&t.override&&this.raise(m.OverrideOnConstructor,d),r.hadConstructor=!0,g=r.hadSuperClass),this.pushClassMethod(e,n,!1,!1,T,g)}else if(this.isClassProperty())y?this.pushClassPrivateProperty(e,o):this.pushClassProperty(e,s);else if("async"!==f||this.isLineTerminator())if("get"!==f&&"set"!==f||this.match(55)&&this.isLineTerminator())if("accessor"!==f||this.isLineTerminator())this.isLineTerminator()?y?this.pushClassPrivateProperty(e,o):this.pushClassProperty(e,s):this.unexpected();else{this.expectPlugin("decoratorAutoAccessors"),this.resetPreviousNodeTrailingComments(d);var S=this.match(139);this.parseClassElementName(s),this.pushClassAccessorProperty(e,l,S)}else{this.resetPreviousNodeTrailingComments(d),p.kind=f;var x=this.match(139);this.parseClassElementName(n),x?this.pushClassPrivateMethod(e,a,!1,!1):(this.isNonstaticConstructor(n)&&this.raise(m.ConstructorIsAccessor,n.key),this.pushClassMethod(e,n,!1,!1,!1,!1)),this.checkGetterSetterParams(n)}else{this.resetPreviousNodeTrailingComments(d);var b=this.eat(55);c.optional&&this.unexpected(v),p.kind="method";var P=this.match(139);this.parseClassElementName(p),this.parsePostMemberNameModifiers(c),P?this.pushClassPrivateMethod(e,a,b,!0):(this.isNonstaticConstructor(n)&&this.raise(m.ConstructorIsAsync,n.key),this.pushClassMethod(e,n,b,!0,!1,!1))}}parseClassElementName(e){var{type:t,value:r}=this.state;if(132!==t&&134!==t||!e.static||"prototype"!==r||this.raise(m.StaticPrototype,this.state.startLoc),139===t){"constructor"===r&&this.raise(m.ConstructorClassPrivateField,this.state.startLoc);var i=this.parsePrivateName();return e.key=i,i}return this.parsePropertyName(e),e.key}parseClassStaticBlock(e,t){var r;this.scope.enter(720);var i=this.state.labels;this.state.labels=[],this.prodParam.enter(0);var n=t.body=[];this.parseBlockOrModuleBlockBody(n,void 0,!1,8),this.prodParam.exit(),this.scope.exit(),this.state.labels=i,e.body.push(this.finishNode(t,"StaticBlock")),null!=(r=t.decorators)&&r.length&&this.raise(m.DecoratorStaticBlock,t)}pushClassProperty(e,t){!t.computed&&this.nameIsConstructor(t.key)&&this.raise(m.ConstructorClassField,t.key),e.body.push(this.parseClassProperty(t))}pushClassPrivateProperty(e,t){var r=this.parseClassPrivateProperty(t);e.body.push(r),this.classScope.declarePrivateName(this.getPrivateNameSV(r.key),0,r.key.loc.start)}pushClassAccessorProperty(e,t,r){r||t.computed||!this.nameIsConstructor(t.key)||this.raise(m.ConstructorClassField,t.key);var i=this.parseClassAccessorProperty(t);e.body.push(i),r&&this.classScope.declarePrivateName(this.getPrivateNameSV(i.key),0,i.key.loc.start)}pushClassMethod(e,t,r,i,n,a){e.body.push(this.parseMethod(t,r,i,n,a,"ClassMethod",!0))}pushClassPrivateMethod(e,t,r,i){var n=this.parseMethod(t,r,i,!1,!1,"ClassPrivateMethod",!0);e.body.push(n);var a="get"===n.kind?n.static?6:2:"set"===n.kind?n.static?5:1:0;this.declareClassPrivateMethodInScope(n,a)}declareClassPrivateMethodInScope(e,t){this.classScope.declarePrivateName(this.getPrivateNameSV(e.key),t,e.key.loc.start)}parsePostMemberNameModifiers(e){}parseClassPrivateProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassPrivateProperty")}parseClassProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassProperty")}parseClassAccessorProperty(e){return this.parseInitializer(e),this.semicolon(),this.finishNode(e,"ClassAccessorProperty")}parseInitializer(e){this.scope.enter(592),this.expressionScope.enter(mt()),this.prodParam.enter(0),e.value=this.eat(29)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit()}parseClassId(e,t,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:8331;if(X(this.state.type))e.id=this.parseIdentifier(),t&&this.declareNameFromIdentifier(e.id,i);else{if(!r&&t)throw this.raise(m.MissingClassName,this.state.startLoc);e.id=null}}parseClassSuper(e){e.superClass=this.eat(81)?this.parseExprSubscripts():null}parseExport(e,t){var r=this.parseMaybeImportPhase(e,!0),i=this.maybeParseExportDefaultSpecifier(e,r),n=!i||this.eat(12),a=n&&this.eatExportStar(e),s=a&&this.maybeParseExportNamespaceSpecifier(e),o=n&&(!s||this.eat(12)),l=i||a;if(a&&!s){if(i&&this.unexpected(),t)throw this.raise(m.UnsupportedDecoratorExport,e);return this.parseExportFrom(e,!0),this.sawUnambiguousESM=!0,this.finishNode(e,"ExportAllDeclaration")}var p,c=this.maybeParseExportNamedSpecifiers(e);if(i&&n&&!a&&!c&&this.unexpected(null,5),s&&o&&this.unexpected(null,98),l||c){if(p=!1,t)throw this.raise(m.UnsupportedDecoratorExport,e);this.parseExportFrom(e,l)}else p=this.maybeParseExportDeclaration(e);if(l||c||p){var u,h=e;if(this.checkExport(h,!0,!1,!!h.source),"ClassDeclaration"===(null==(u=h.declaration)?void 0:u.type))this.maybeTakeDecorators(t,h.declaration,h);else if(t)throw this.raise(m.UnsupportedDecoratorExport,e);return this.sawUnambiguousESM=!0,this.finishNode(h,"ExportNamedDeclaration")}if(this.eat(65)){var d=e,f=this.parseExportDefaultExpression();if(d.declaration=f,"ClassDeclaration"===f.type)this.maybeTakeDecorators(t,f,d);else if(t)throw this.raise(m.UnsupportedDecoratorExport,e);return this.checkExport(d,!0,!0),this.sawUnambiguousESM=!0,this.finishNode(d,"ExportDefaultDeclaration")}throw this.unexpected(null,5)}eatExportStar(e){return this.eat(55)}maybeParseExportDefaultSpecifier(e,t){if(t||this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom",null==t?void 0:t.loc.start);var r=t||this.parseIdentifier(!0),i=this.startNodeAtNode(r);return i.exported=r,e.specifiers=[this.finishNode(i,"ExportDefaultSpecifier")],!0}return!1}maybeParseExportNamespaceSpecifier(e){if(this.isContextual(93)){var t;null!=(t=e).specifiers||(t.specifiers=[]);var r=this.startNodeAt(this.state.lastTokStartLoc);return this.next(),r.exported=this.parseModuleExportName(),e.specifiers.push(this.finishNode(r,"ExportNamespaceSpecifier")),!0}return!1}maybeParseExportNamedSpecifiers(e){if(this.match(5)){var t=e;t.specifiers||(t.specifiers=[]);var r="type"===t.exportKind;return t.specifiers.push(...this.parseExportSpecifiers(r)),t.source=null,this.hasPlugin("importAssertions")?t.assertions=[]:t.attributes=[],t.declaration=null,!0}return!1}maybeParseExportDeclaration(e){return!!this.shouldParseExportDeclaration()&&(e.specifiers=[],e.source=null,this.hasPlugin("importAssertions")?e.assertions=[]:e.attributes=[],e.declaration=this.parseExportDeclaration(e),!0)}isAsyncFunction(){if(!this.isContextual(95))return!1;var e=this.nextTokenInLineStart();return this.isUnparsedContextual(e,"function")}parseExportDefaultExpression(){var e=this.startNode();if(this.match(68))return this.next(),this.parseFunction(e,5);if(this.isAsyncFunction())return this.next(),this.next(),this.parseFunction(e,13);if(this.match(80))return this.parseClass(e,!0,!0);if(this.match(26))return this.hasPlugin("decorators")&&!0===this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(m.DecoratorBeforeExport,this.state.startLoc),this.parseClass(this.maybeTakeDecorators(this.parseDecorators(!1),this.startNode()),!0,!0);if(this.match(75)||this.match(74)||this.isLet()||this.isUsing()||this.isAwaitUsing())throw this.raise(m.UnsupportedDefaultExport,this.state.startLoc);var t=this.parseMaybeAssignAllowIn();return this.semicolon(),t}parseExportDeclaration(e){return this.match(80)?this.parseClass(this.startNode(),!0,!1):this.parseStatementListItem()}isExportDefaultSpecifier(){var{type:e}=this.state;if(X(e)){if(95===e&&!this.state.containsEsc||100===e)return!1;if((130===e||129===e)&&!this.state.containsEsc){var t=this.nextTokenStart(),r=this.input.charCodeAt(t);if(123===r||this.chStartsBindingIdentifier(r,t)&&!this.input.startsWith("from",t))return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(65))return!1;var i=this.nextTokenStart(),n=this.isUnparsedContextual(i,"from");if(44===this.input.charCodeAt(i)||X(this.state.type)&&n)return!0;if(this.match(65)&&n){var a=this.input.charCodeAt(this.nextTokenStartSince(i+4));return 34===a||39===a}return!1}parseExportFrom(e,t){this.eatContextual(98)?(e.source=this.parseImportSource(),this.checkExport(e),this.maybeParseImportAttributes(e),this.checkJSONModuleImport(e)):t&&this.unexpected(),this.semicolon()}shouldParseExportDeclaration(){var{type:e}=this.state;return 26===e&&(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators"))?(!0===this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(m.DecoratorBeforeExport,this.state.startLoc),!0):this.isUsing()||this.isAwaitUsing()?(this.raise(m.UsingDeclarationExport,this.state.startLoc),!0):74===e||75===e||68===e||80===e||this.isLet()||this.isAsyncFunction()}checkExport(e,t,r,i){var n;if(t)if(r){if(this.checkDuplicateExports(e,"default"),this.hasPlugin("exportDefaultFrom")){var a,s=e.declaration;"Identifier"!==s.type||"from"!==s.name||s.end-s.start!==4||null!=(a=s.extra)&&a.parenthesized||this.raise(m.ExportDefaultFromAsIdentifier,s)}}else if(null!=(n=e.specifiers)&&n.length)for(var o of e.specifiers){var{exported:l}=o,p="Identifier"===l.type?l.name:l.value;if(this.checkDuplicateExports(o,p),!i&&o.local){var{local:c}=o;"Identifier"!==c.type?this.raise(m.ExportBindingIsString,o,{localName:c.value,exportName:p}):(this.checkReservedWord(c.name,c.loc.start,!0,!1),this.scope.checkLocalExport(c))}}else if(e.declaration){var u=e.declaration;if("FunctionDeclaration"===u.type||"ClassDeclaration"===u.type){var{id:h}=u;if(!h)throw new Error("Assertion failure");this.checkDuplicateExports(e,h.name)}else if("VariableDeclaration"===u.type)for(var d of u.declarations)this.checkDeclaration(d.id)}}checkDeclaration(e){if("Identifier"===e.type)this.checkDuplicateExports(e,e.name);else if("ObjectPattern"===e.type)for(var t of e.properties)this.checkDeclaration(t);else if("ArrayPattern"===e.type)for(var r of e.elements)r&&this.checkDeclaration(r);else"ObjectProperty"===e.type?this.checkDeclaration(e.value):"RestElement"===e.type?this.checkDeclaration(e.argument):"AssignmentPattern"===e.type&&this.checkDeclaration(e.left)}checkDuplicateExports(e,t){this.exportedIdentifiers.has(t)&&("default"===t?this.raise(m.DuplicateDefaultExport,e):this.raise(m.DuplicateExport,e,{exportName:t})),this.exportedIdentifiers.add(t)}parseExportSpecifiers(e){var t=[],r=!0;for(this.expect(5);!this.eat(8);){if(r)r=!1;else if(this.expect(12),this.eat(8))break;var i=this.isContextual(130),n=this.match(134),a=this.startNode();a.local=this.parseModuleExportName(),t.push(this.parseExportSpecifier(a,n,e,i))}return t}parseExportSpecifier(e,t,r,i){return this.eatContextual(93)?e.exported=this.parseModuleExportName():t?e.exported=this.cloneStringLiteral(e.local):e.exported||(e.exported=this.cloneIdentifier(e.local)),this.finishNode(e,"ExportSpecifier")}parseModuleExportName(){if(this.match(134)){var e=this.parseStringLiteral(this.state.value),t=Ut.exec(e.value);return t&&this.raise(m.ModuleExportNameHasLoneSurrogate,e,{surrogateCharCode:t[0].charCodeAt(0)}),e}return this.parseIdentifier(!0)}isJSONModuleImport(e){return null!=e.assertions&&e.assertions.some((e=>{var{key:t,value:r}=e;return"json"===r.value&&("Identifier"===t.type?"type"===t.name:"type"===t.value)}))}checkImportReflection(e){var{specifiers:t}=e,r=1===t.length?t[0].type:null;if("source"===e.phase)"ImportDefaultSpecifier"!==r&&this.raise(m.SourcePhaseImportRequiresDefault,t[0].loc.start);else if("defer"===e.phase)"ImportNamespaceSpecifier"!==r&&this.raise(m.DeferImportRequiresNamespace,t[0].loc.start);else if(e.module){var i;"ImportDefaultSpecifier"!==r&&this.raise(m.ImportReflectionNotBinding,t[0].loc.start),(null==(i=e.assertions)?void 0:i.length)>0&&this.raise(m.ImportReflectionHasAssertion,t[0].loc.start)}}checkJSONModuleImport(e){if(this.isJSONModuleImport(e)&&"ExportAllDeclaration"!==e.type){var{specifiers:t}=e;if(null!=t){var r=t.find((e=>{var t;if("ExportSpecifier"===e.type?t=e.local:"ImportSpecifier"===e.type&&(t=e.imported),void 0!==t)return"Identifier"===t.type?"default"!==t.name:"default"!==t.value}));void 0!==r&&this.raise(m.ImportJSONBindingNotDefault,r.loc.start)}}}isPotentialImportPhase(e){return!e&&(this.isContextual(105)||this.isContextual(97)||this.isContextual(127))}applyImportPhase(e,t,r,i){t||("module"===r?(this.expectPlugin("importReflection",i),e.module=!0):this.hasPlugin("importReflection")&&(e.module=!1),"source"===r?(this.expectPlugin("sourcePhaseImports",i),e.phase="source"):"defer"===r?(this.expectPlugin("deferredImportEvaluation",i),e.phase="defer"):this.hasPlugin("sourcePhaseImports")&&(e.phase=null))}parseMaybeImportPhase(e,t){if(!this.isPotentialImportPhase(t))return this.applyImportPhase(e,t,null),null;var r=this.startNode(),i=this.parseIdentifierName(!0),{type:n}=this.state;return(H(n)?98!==n||102===this.lookaheadCharCode():12!==n)?(this.applyImportPhase(e,t,i,r.loc.start),null):(this.applyImportPhase(e,t,null),this.createIdentifier(r,i))}isPrecedingIdImportPhase(e){var{type:t}=this.state;return X(t)?98!==t||102===this.lookaheadCharCode():12!==t}parseImport(e){return this.match(134)?this.parseImportSourceAndAttributes(e):this.parseImportSpecifiersAndAfter(e,this.parseMaybeImportPhase(e,!1))}parseImportSpecifiersAndAfter(e,t){e.specifiers=[];var r=!this.maybeParseDefaultImportSpecifier(e,t)||this.eat(12),i=r&&this.maybeParseStarImportSpecifier(e);return r&&!i&&this.parseNamedImportSpecifiers(e),this.expectContextual(98),this.parseImportSourceAndAttributes(e)}parseImportSourceAndAttributes(e){return null!=e.specifiers||(e.specifiers=[]),e.source=this.parseImportSource(),this.maybeParseImportAttributes(e),this.checkImportReflection(e),this.checkJSONModuleImport(e),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(e,"ImportDeclaration")}parseImportSource(){return this.match(134)||this.unexpected(),this.parseExprAtom()}parseImportSpecifierLocal(e,t,r){t.local=this.parseIdentifier(),e.specifiers.push(this.finishImportSpecifier(t,r))}finishImportSpecifier(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:8201;return this.checkLVal(e.local,{type:t},r),this.finishNode(e,t)}parseImportAttributes(){this.expect(5);var e=[],t=new Set;do{if(this.match(8))break;var r=this.startNode(),i=this.state.value;if(t.has(i)&&this.raise(m.ModuleAttributesWithDuplicateKeys,this.state.startLoc,{key:i}),t.add(i),this.match(134)?r.key=this.parseStringLiteral(i):r.key=this.parseIdentifier(!0),this.expect(14),!this.match(134))throw this.raise(m.ModuleAttributeInvalidValue,this.state.startLoc);r.value=this.parseStringLiteral(this.state.value),e.push(this.finishNode(r,"ImportAttribute"))}while(this.eat(12));return this.expect(8),e}parseModuleAttributes(){var e=[],t=new Set;do{var r=this.startNode();if(r.key=this.parseIdentifier(!0),"type"!==r.key.name&&this.raise(m.ModuleAttributeDifferentFromType,r.key),t.has(r.key.name)&&this.raise(m.ModuleAttributesWithDuplicateKeys,r.key,{key:r.key.name}),t.add(r.key.name),this.expect(14),!this.match(134))throw this.raise(m.ModuleAttributeInvalidValue,this.state.startLoc);r.value=this.parseStringLiteral(this.state.value),e.push(this.finishNode(r,"ImportAttribute"))}while(this.eat(12));return e}maybeParseImportAttributes(e){var t,r=!1;if(this.match(76)){if(this.hasPrecedingLineBreak()&&40===this.lookaheadCharCode())return;this.next(),this.hasPlugin("moduleAttributes")?(t=this.parseModuleAttributes(),this.addExtra(e,"deprecatedWithLegacySyntax",!0)):t=this.parseImportAttributes(),r=!0}else this.isContextual(94)&&!this.hasPrecedingLineBreak()?(this.hasPlugin("deprecatedImportAssert")||this.hasPlugin("importAssertions")||this.raise(m.ImportAttributesUseAssert,this.state.startLoc),this.hasPlugin("importAssertions")||this.addExtra(e,"deprecatedAssertSyntax",!0),this.next(),t=this.parseImportAttributes()):t=[];!r&&this.hasPlugin("importAssertions")?e.assertions=t:e.attributes=t}maybeParseDefaultImportSpecifier(e,t){if(t){var r=this.startNodeAtNode(t);return r.local=t,e.specifiers.push(this.finishImportSpecifier(r,"ImportDefaultSpecifier")),!0}return!!H(this.state.type)&&(this.parseImportSpecifierLocal(e,this.startNode(),"ImportDefaultSpecifier"),!0)}maybeParseStarImportSpecifier(e){if(this.match(55)){var t=this.startNode();return this.next(),this.expectContextual(93),this.parseImportSpecifierLocal(e,t,"ImportNamespaceSpecifier"),!0}return!1}parseNamedImportSpecifiers(e){var t=!0;for(this.expect(5);!this.eat(8);){if(t)t=!1;else{if(this.eat(14))throw this.raise(m.DestructureNamedImport,this.state.startLoc);if(this.expect(12),this.eat(8))break}var r=this.startNode(),i=this.match(134),n=this.isContextual(130);r.imported=this.parseModuleExportName();var a=this.parseImportSpecifier(r,i,"type"===e.importKind||"typeof"===e.importKind,n,void 0);e.specifiers.push(a)}}parseImportSpecifier(e,t,r,i,n){if(this.eatContextual(93))e.local=this.parseIdentifier();else{var{imported:a}=e;if(t)throw this.raise(m.ImportBindingIsString,e,{importName:a.value});this.checkReservedWord(a.name,e.loc.start,!0,!0),e.local||(e.local=this.cloneIdentifier(a))}return this.finishImportSpecifier(e,"ImportSpecifier",n)}isThisParam(e){return"Identifier"===e.type&&"this"===e.name}}class qt extends Vt{constructor(e,t,r){var i=function(e){var t={sourceType:"script",sourceFilename:void 0,startIndex:0,startColumn:0,startLine:1,allowAwaitOutsideFunction:!1,allowReturnOutsideFunction:!1,allowNewTargetOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,allowUndeclaredExports:!1,allowYieldOutsideFunction:!1,plugins:[],strictMode:void 0,ranges:!1,tokens:!1,createImportExpressions:!1,createParenthesizedExpressions:!1,errorRecovery:!1,attachComment:!0,annexB:!0};if(null==e)return t;if(null!=e.annexB&&!1!==e.annexB)throw new Error("The `annexB` option can only be set to `false`.");for(var r of Object.keys(t))null!=e[r]&&(t[r]=e[r]);if(1===t.startLine)null==e.startIndex&&t.startColumn>0?t.startIndex=t.startColumn:null==e.startColumn&&t.startIndex>0&&(t.startColumn=t.startIndex);else if((null==e.startColumn||null==e.startIndex)&&null!=e.startIndex)throw new Error("With a `startLine > 1` you must also specify `startIndex` and `startColumn`.");if("commonjs"===t.sourceType){if(null!=e.allowAwaitOutsideFunction)throw new Error("The `allowAwaitOutsideFunction` option cannot be used with `sourceType: 'commonjs'`.");if(null!=e.allowReturnOutsideFunction)throw new Error("`sourceType: 'commonjs'` implies `allowReturnOutsideFunction: true`, please remove the `allowReturnOutsideFunction` option or use `sourceType: 'script'`.");if(null!=e.allowNewTargetOutsideFunction)throw new Error("`sourceType: 'commonjs'` implies `allowNewTargetOutsideFunction: true`, please remove the `allowNewTargetOutsideFunction` option or use `sourceType: 'script'`.")}return t}(e);super(i,t),this.options=i,this.initializeScopes(),this.plugins=r,this.filename=i.sourceFilename,this.startIndex=i.startIndex;var n=0;i.allowAwaitOutsideFunction&&(n|=1),i.allowReturnOutsideFunction&&(n|=2),i.allowImportExportEverywhere&&(n|=8),i.allowSuperOutsideMethod&&(n|=16),i.allowUndeclaredExports&&(n|=64),i.allowNewTargetOutsideFunction&&(n|=4),i.allowYieldOutsideFunction&&(n|=32),i.ranges&&(n|=128),i.tokens&&(n|=256),i.createImportExpressions&&(n|=512),i.createParenthesizedExpressions&&(n|=1024),i.errorRecovery&&(n|=2048),i.attachComment&&(n|=4096),i.annexB&&(n|=8192),this.optionFlags=n}getScopeHandler(){return Pe}parse(){this.enterInitialScopes();var e=this.startNode(),t=this.startNode();this.nextToken(),e.errors=null;var r=this.parseTopLevel(e,t);return r.errors=this.state.errors,r.comments.length=this.state.commentsLen,r}}var Wt=function(e){var t={};for(var r of Object.keys(e))t[r]=re(e[r]);return t}(J);function Yt(e,t){var r=qt,i=new Map;if(null!=e&&e.plugins){for(var n of e.plugins){var a=void 0,s=void 0;"string"==typeof n?a=n:[a,s]=n,i.has(a)||i.set(a,s||{})}!function(e){if(e.has("decorators")){if(e.has("decorators-legacy"))throw new Error("Cannot use the decorators and decorators-legacy plugin together");var t=e.get("decorators").decoratorsBeforeExport;if(null!=t&&"boolean"!=typeof t)throw new Error("'decoratorsBeforeExport' must be a boolean, if specified.");var r=e.get("decorators").allowCallParenthesized;if(null!=r&&"boolean"!=typeof r)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 i,n=e.get("pipelineOperator").proposal;if(!_t.includes(n)){var a=_t.map((e=>'"'.concat(e,'"'))).join(", ");throw new Error('"pipelineOperator" requires "proposal" option whose value must be one of: '.concat(a,"."))}if("hack"===n){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.");var s,o=e.get("pipelineOperator").topicToken;if(!Lt.includes(o)){var l=Lt.map((e=>'"'.concat(e,'"'))).join(", ");throw new Error('"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: '.concat(l,"."))}if("#"===o&&"hash"===(null==(s=e.get("recordAndTuple"))?void 0:s.syntaxType))throw new Error('Plugin conflict between `["pipelineOperator", { proposal: "hack", topicToken: "#" }]` and `'.concat(JSON.stringify(["recordAndTuple",e.get("recordAndTuple")]),"`."))}else if("smart"===n&&"hash"===(null==(i=e.get("recordAndTuple"))?void 0:i.syntaxType))throw new Error('Plugin conflict between `["pipelineOperator", { proposal: "smart" }]` and `'.concat(JSON.stringify(["recordAndTuple",e.get("recordAndTuple")]),"`."))}if(e.has("moduleAttributes")){if(e.has("deprecatedImportAssert")||e.has("importAssertions"))throw new Error("Cannot combine importAssertions, deprecatedImportAssert and moduleAttributes plugins.");if("may-2020"!==e.get("moduleAttributes").version)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("importAssertions")&&e.has("deprecatedImportAssert"))throw new Error("Cannot combine importAssertions and deprecatedImportAssert plugins.");if(!e.has("deprecatedImportAssert")&&e.has("importAttributes")&&e.get("importAttributes").deprecatedAssertSyntax&&e.set("deprecatedImportAssert",{}),e.has("recordAndTuple")){var p=e.get("recordAndTuple").syntaxType;if(null!=p){var c=["hash","bar"];if(!c.includes(p))throw new Error("The 'syntaxType' option of the 'recordAndTuple' plugin must be one of: "+c.map((e=>"'".concat(e,"'"))).join(", "))}}if(e.has("asyncDoExpressions")&&!e.has("doExpressions")){var u=new Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.");throw u.missingPlugins="doExpressions",u}if(e.has("optionalChainingAssign")&&"2023-07"!==e.get("optionalChainingAssign").version)throw new Error("The 'optionalChainingAssign' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is '2023-07'.");if(e.has("discardBinding")&&"void"!==e.get("discardBinding").syntaxType)throw new Error("The 'discardBinding' plugin requires a 'syntaxType' option. Currently the only supported value is 'void'.")}(i),r=function(e){var t=[];for(var r of Ft)e.has(r)&&t.push(r);var i=t.join("|"),n=Jt.get(i);if(!n){for(var a of(n=qt,t))n=Mt[a](n);Jt.set(i,n)}return n}(i)}return new r(e,t,i)}var Jt=new Map;return C.parse=function(e,t){var r;if("unambiguous"!==(null==(r=t)?void 0:r.sourceType))return Yt(t,e).parse();t=Object.assign({},t);try{t.sourceType="module";var i=Yt(t,e),n=i.parse();if(i.sawUnambiguousESM)return n;if(i.ambiguousScriptDifferentAst)try{return t.sourceType="script",Yt(t,e).parse()}catch(e){}else n.program.sourceType="script";return n}catch(r){try{return t.sourceType="script",Yt(t,e).parse()}catch(e){}throw r}},C.parseExpression=function(e,t){var r=Yt(t,e);return r.options.strictMode&&(r.state.strict=!0),r.getExpression()},C.tokTypes=Wt,C}var I,N=w(),k=e({__proto__:null,default:f(N)},[N]),O={},D={},_={},L={},M={},F={};function B(){if(I)return F;return I=1,Object.defineProperty(F,"__esModule",{value:!0}),F.default=function(e,t){var r=Object.keys(t);for(var i of r)if(e[i]!==t[i])return!1;return!0},F}var j,R,U,K,V,q={};function W(){if(j)return q;j=1,Object.defineProperty(q,"__esModule",{value:!0}),q.default=function(t,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t;if(e.has(i))return;e.add(i);var{internal:n,trace:a}=function(e,t){var r,{stackTraceLimit:i,prepareStackTrace:n}=Error;if(Error.stackTraceLimit=1+e+t,Error.prepareStackTrace=function(e,t){r=t},(new Error).stack,Error.stackTraceLimit=i,Error.prepareStackTrace=n,!r)return{internal:!1,trace:""};var a=r.slice(1+e,1+e+t);return{internal:/[\\/]@babel[\\/]/.test(a[1].getFileName()),trace:a.map((e=>" at ".concat(e))).join("\n")}}(1,2);if(n)return};var e=new Set;return q}function Y(){if(R)return M;R=1,Object.defineProperty(M,"__esModule",{value:!0}),M.isAccessor=function(t,r){if(!t)return!1;if("ClassAccessorProperty"!==t.type)return!1;return null==r||(0,e.default)(t,r)},M.isAnyTypeAnnotation=function(t,r){return!!t&&("AnyTypeAnnotation"===t.type&&(null==r||(0,e.default)(t,r)))},M.isArgumentPlaceholder=function(t,r){return!!t&&("ArgumentPlaceholder"===t.type&&(null==r||(0,e.default)(t,r)))},M.isArrayExpression=function(t,r){return!!t&&("ArrayExpression"===t.type&&(null==r||(0,e.default)(t,r)))},M.isArrayPattern=function(t,r){return!!t&&("ArrayPattern"===t.type&&(null==r||(0,e.default)(t,r)))},M.isArrayTypeAnnotation=function(t,r){return!!t&&("ArrayTypeAnnotation"===t.type&&(null==r||(0,e.default)(t,r)))},M.isArrowFunctionExpression=function(t,r){return!!t&&("ArrowFunctionExpression"===t.type&&(null==r||(0,e.default)(t,r)))},M.isAssignmentExpression=function(t,r){return!!t&&("AssignmentExpression"===t.type&&(null==r||(0,e.default)(t,r)))},M.isAssignmentPattern=function(t,r){return!!t&&("AssignmentPattern"===t.type&&(null==r||(0,e.default)(t,r)))},M.isAwaitExpression=function(t,r){return!!t&&("AwaitExpression"===t.type&&(null==r||(0,e.default)(t,r)))},M.isBigIntLiteral=function(t,r){return!!t&&("BigIntLiteral"===t.type&&(null==r||(0,e.default)(t,r)))},M.isBinary=function(t,r){if(!t)return!1;switch(t.type){case"BinaryExpression":case"LogicalExpression":break;default:return!1}return null==r||(0,e.default)(t,r)},M.isBinaryExpression=function(t,r){return!!t&&("BinaryExpression"===t.type&&(null==r||(0,e.default)(t,r)))},M.isBindExpression=function(t,r){return!!t&&("BindExpression"===t.type&&(null==r||(0,e.default)(t,r)))},M.isBlock=function(t,r){if(!t)return!1;switch(t.type){case"BlockStatement":case"Program":case"TSModuleBlock":break;case"Placeholder":if("BlockStatement"===t.expectedNode)break;default:return!1}return null==r||(0,e.default)(t,r)},M.isBlockParent=function(t,r){if(!t)return!1;switch(t.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("BlockStatement"===t.expectedNode)break;default:return!1}return null==r||(0,e.default)(t,r)},M.isBlockStatement=function(t,r){return!!t&&("BlockStatement"===t.type&&(null==r||(0,e.default)(t,r)))},M.isBooleanLiteral=function(t,r){return!!t&&("BooleanLiteral"===t.type&&(null==r||(0,e.default)(t,r)))},M.isBooleanLiteralTypeAnnotation=function(t,r){return!!t&&("BooleanLiteralTypeAnnotation"===t.type&&(null==r||(0,e.default)(t,r)))},M.isBooleanTypeAnnotation=function(t,r){return!!t&&("BooleanTypeAnnotation"===t.type&&(null==r||(0,e.default)(t,r)))},M.isBreakStatement=function(t,r){return!!t&&("BreakStatement"===t.type&&(null==r||(0,e.default)(t,r)))},M.isCallExpression=function(t,r){return!!t&&("CallExpression"===t.type&&(null==r||(0,e.default)(t,r)))},M.isCatchClause=function(t,r){return!!t&&("CatchClause"===t.type&&(null==r||(0,e.default)(t,r)))},M.isClass=function(t,r){if(!t)return!1;switch(t.type){case"ClassExpression":case"ClassDeclaration":break;default:return!1}return null==r||(0,e.default)(t,r)},M.isClassAccessorProperty=function(t,r){return!!t&&("ClassAccessorProperty"===t.type&&(null==r||(0,e.default)(t,r)))},M.isClassBody=function(t,r){return!!t&&("ClassBody"===t.type&&(null==r||(0,e.default)(t,r)))},M.isClassDeclaration=function(t,r){return!!t&&("ClassDeclaration"===t.type&&(null==r||(0,e.default)(t,r)))},M.isClassExpression=function(t,r){return!!t&&("ClassExpression"===t.type&&(null==r||(0,e.default)(t,r)))},M.isClassImplements=function(t,r){return!!t&&("ClassImplements"===t.type&&(null==r||(0,e.default)(t,r)))},M.isClassMethod=function(t,r){return!!t&&("ClassMethod"===t.type&&(null==r||(0,e.default)(t,r)))},M.isClassPrivateMethod=function(t,r){return!!t&&("ClassPrivateMethod"===t.type&&(null==r||(0,e.default)(t,r)))},M.isClassPrivateProperty=function(t,r){return!!t&&("ClassPrivateProperty"===t.type&&(null==r||(0,e.default)(t,r)))},M.isClassProperty=function(t,r){return!!t&&("ClassProperty"===t.type&&(null==r||(0,e.default)(t,r)))},M.isCompletionStatement=function(t,r){if(!t)return!1;switch(t.type){case"BreakStatement":case"ContinueStatement":case"ReturnStatement":case"ThrowStatement":break;default:return!1}return null==r||(0,e.default)(t,r)},M.isConditional=function(t,r){if(!t)return!1;switch(t.type){case"ConditionalExpression":case"IfStatement":break;default:return!1}return null==r||(0,e.default)(t,r)},M.isConditionalExpression=function(t,r){return!!t&&("ConditionalExpression"===t.type&&(null==r||(0,e.default)(t,r)))},M.isContinueStatement=function(t,r){return!!t&&("ContinueStatement"===t.type&&(null==r||(0,e.default)(t,r)))},M.isDebuggerStatement=function(t,r){return!!t&&("DebuggerStatement"===t.type&&(null==r||(0,e.default)(t,r)))},M.isDecimalLiteral=function(t,r){return!!t&&("DecimalLiteral"===t.type&&(null==r||(0,e.default)(t,r)))},M.isDeclaration=function(t,r){if(!t)return!1;switch(t.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":case"TSImportEqualsDeclaration":break;case"Placeholder":if("Declaration"===t.expectedNode)break;default:return!1}return null==r||(0,e.default)(t,r)},M.isDeclareClass=function(t,r){return!!t&&("DeclareClass"===t.type&&(null==r||(0,e.default)(t,r)))},M.isDeclareExportAllDeclaration=function(t,r){return!!t&&("DeclareExportAllDeclaration"===t.type&&(null==r||(0,e.default)(t,r)))},M.isDeclareExportDeclaration=function(t,r){return!!t&&("DeclareExportDeclaration"===t.type&&(null==r||(0,e.default)(t,r)))},M.isDeclareFunction=function(t,r){return!!t&&("DeclareFunction"===t.type&&(null==r||(0,e.default)(t,r)))},M.isDeclareInterface=function(t,r){return!!t&&("DeclareInterface"===t.type&&(null==r||(0,e.default)(t,r)))},M.isDeclareModule=function(t,r){return!!t&&("DeclareModule"===t.type&&(null==r||(0,e.default)(t,r)))},M.isDeclareModuleExports=function(t,r){return!!t&&("DeclareModuleExports"===t.type&&(null==r||(0,e.default)(t,r)))},M.isDeclareOpaqueType=function(t,r){return!!t&&("DeclareOpaqueType"===t.type&&(null==r||(0,e.default)(t,r)))},M.isDeclareTypeAlias=function(t,r){return!!t&&("DeclareTypeAlias"===t.type&&(null==r||(0,e.default)(t,r)))},M.isDeclareVariable=function(t,r){return!!t&&("DeclareVariable"===t.type&&(null==r||(0,e.default)(t,r)))},M.isDeclaredPredicate=function(t,r){return!!t&&("DeclaredPredicate"===t.type&&(null==r||(0,e.default)(t,r)))},M.isDecorator=function(t,r){return!!t&&("Decorator"===t.type&&(null==r||(0,e.default)(t,r)))},M.isDirective=function(t,r){return!!t&&("Directive"===t.type&&(null==r||(0,e.default)(t,r)))},M.isDirectiveLiteral=function(t,r){return!!t&&("DirectiveLiteral"===t.type&&(null==r||(0,e.default)(t,r)))},M.isDoExpression=function(t,r){return!!t&&("DoExpression"===t.type&&(null==r||(0,e.default)(t,r)))},M.isDoWhileStatement=function(t,r){return!!t&&("DoWhileStatement"===t.type&&(null==r||(0,e.default)(t,r)))},M.isEmptyStatement=function(t,r){return!!t&&("EmptyStatement"===t.type&&(null==r||(0,e.default)(t,r)))},M.isEmptyTypeAnnotation=function(t,r){return!!t&&("EmptyTypeAnnotation"===t.type&&(null==r||(0,e.default)(t,r)))},M.isEnumBody=function(t,r){if(!t)return!1;switch(t.type){case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":break;default:return!1}return null==r||(0,e.default)(t,r)},M.isEnumBooleanBody=function(t,r){return!!t&&("EnumBooleanBody"===t.type&&(null==r||(0,e.default)(t,r)))},M.isEnumBooleanMember=function(t,r){return!!t&&("EnumBooleanMember"===t.type&&(null==r||(0,e.default)(t,r)))},M.isEnumDeclaration=function(t,r){return!!t&&("EnumDeclaration"===t.type&&(null==r||(0,e.default)(t,r)))},M.isEnumDefaultedMember=function(t,r){return!!t&&("EnumDefaultedMember"===t.type&&(null==r||(0,e.default)(t,r)))},M.isEnumMember=function(t,r){if(!t)return!1;switch(t.type){case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":case"EnumDefaultedMember":break;default:return!1}return null==r||(0,e.default)(t,r)},M.isEnumNumberBody=function(t,r){return!!t&&("EnumNumberBody"===t.type&&(null==r||(0,e.default)(t,r)))},M.isEnumNumberMember=function(t,r){return!!t&&("EnumNumberMember"===t.type&&(null==r||(0,e.default)(t,r)))},M.isEnumStringBody=function(t,r){return!!t&&("EnumStringBody"===t.type&&(null==r||(0,e.default)(t,r)))},M.isEnumStringMember=function(t,r){return!!t&&("EnumStringMember"===t.type&&(null==r||(0,e.default)(t,r)))},M.isEnumSymbolBody=function(t,r){return!!t&&("EnumSymbolBody"===t.type&&(null==r||(0,e.default)(t,r)))},M.isExistsTypeAnnotation=function(t,r){return!!t&&("ExistsTypeAnnotation"===t.type&&(null==r||(0,e.default)(t,r)))},M.isExportAllDeclaration=function(t,r){return!!t&&("ExportAllDeclaration"===t.type&&(null==r||(0,e.default)(t,r)))},M.isExportDeclaration=function(t,r){if(!t)return!1;switch(t.type){case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":break;default:return!1}return null==r||(0,e.default)(t,r)},M.isExportDefaultDeclaration=function(t,r){return!!t&&("ExportDefaultDeclaration"===t.type&&(null==r||(0,e.default)(t,r)))},M.isExportDefaultSpecifier=function(t,r){return!!t&&("ExportDefaultSpecifier"===t.type&&(null==r||(0,e.default)(t,r)))},M.isExportNamedDeclaration=function(t,r){return!!t&&("ExportNamedDeclaration"===t.type&&(null==r||(0,e.default)(t,r)))},M.isExportNamespaceSpecifier=function(t,r){return!!t&&("ExportNamespaceSpecifier"===t.type&&(null==r||(0,e.default)(t,r)))},M.isExportSpecifier=function(t,r){return!!t&&("ExportSpecifier"===t.type&&(null==r||(0,e.default)(t,r)))},M.isExpression=function(t,r){if(!t)return!1;switch(t.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(t.expectedNode){case"Expression":case"Identifier":case"StringLiteral":break;default:return!1}break;default:return!1}return null==r||(0,e.default)(t,r)},M.isExpressionStatement=function(t,r){return!!t&&("ExpressionStatement"===t.type&&(null==r||(0,e.default)(t,r)))},M.isExpressionWrapper=function(t,r){if(!t)return!1;switch(t.type){case"ExpressionStatement":case"ParenthesizedExpression":case"TypeCastExpression":break;default:return!1}return null==r||(0,e.default)(t,r)},M.isFile=function(t,r){return!!t&&("File"===t.type&&(null==r||(0,e.default)(t,r)))},M.isFlow=function(t,r){if(!t)return!1;switch(t.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 null==r||(0,e.default)(t,r)},M.isFlowBaseAnnotation=function(t,r){if(!t)return!1;switch(t.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 null==r||(0,e.default)(t,r)},M.isFlowDeclaration=function(t,r){if(!t)return!1;switch(t.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 null==r||(0,e.default)(t,r)},M.isFlowPredicate=function(t,r){if(!t)return!1;switch(t.type){case"DeclaredPredicate":case"InferredPredicate":break;default:return!1}return null==r||(0,e.default)(t,r)},M.isFlowType=function(t,r){if(!t)return!1;switch(t.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 null==r||(0,e.default)(t,r)},M.isFor=function(t,r){if(!t)return!1;switch(t.type){case"ForInStatement":case"ForStatement":case"ForOfStatement":break;default:return!1}return null==r||(0,e.default)(t,r)},M.isForInStatement=function(t,r){return!!t&&("ForInStatement"===t.type&&(null==r||(0,e.default)(t,r)))},M.isForOfStatement=function(t,r){return!!t&&("ForOfStatement"===t.type&&(null==r||(0,e.default)(t,r)))},M.isForStatement=function(t,r){return!!t&&("ForStatement"===t.type&&(null==r||(0,e.default)(t,r)))},M.isForXStatement=function(t,r){if(!t)return!1;switch(t.type){case"ForInStatement":case"ForOfStatement":break;default:return!1}return null==r||(0,e.default)(t,r)},M.isFunction=function(t,r){if(!t)return!1;switch(t.type){case"FunctionDeclaration":case"FunctionExpression":case"ObjectMethod":case"ArrowFunctionExpression":case"ClassMethod":case"ClassPrivateMethod":break;default:return!1}return null==r||(0,e.default)(t,r)},M.isFunctionDeclaration=function(t,r){return!!t&&("FunctionDeclaration"===t.type&&(null==r||(0,e.default)(t,r)))},M.isFunctionExpression=function(t,r){return!!t&&("FunctionExpression"===t.type&&(null==r||(0,e.default)(t,r)))},M.isFunctionParameter=function(t,r){if(!t)return!1;switch(t.type){case"Identifier":case"RestElement":case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"VoidPattern":break;case"Placeholder":if("Identifier"===t.expectedNode)break;default:return!1}return null==r||(0,e.default)(t,r)},M.isFunctionParent=function(t,r){if(!t)return!1;switch(t.type){case"FunctionDeclaration":case"FunctionExpression":case"ObjectMethod":case"ArrowFunctionExpression":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;default:return!1}return null==r||(0,e.default)(t,r)},M.isFunctionTypeAnnotation=function(t,r){return!!t&&("FunctionTypeAnnotation"===t.type&&(null==r||(0,e.default)(t,r)))},M.isFunctionTypeParam=function(t,r){return!!t&&("FunctionTypeParam"===t.type&&(null==r||(0,e.default)(t,r)))},M.isGenericTypeAnnotation=function(t,r){return!!t&&("GenericTypeAnnotation"===t.type&&(null==r||(0,e.default)(t,r)))},M.isIdentifier=function(t,r){return!!t&&("Identifier"===t.type&&(null==r||(0,e.default)(t,r)))},M.isIfStatement=function(t,r){return!!t&&("IfStatement"===t.type&&(null==r||(0,e.default)(t,r)))},M.isImmutable=function(t,r){if(!t)return!1;switch(t.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("StringLiteral"===t.expectedNode)break;default:return!1}return null==r||(0,e.default)(t,r)},M.isImport=function(t,r){return!!t&&("Import"===t.type&&(null==r||(0,e.default)(t,r)))},M.isImportAttribute=function(t,r){return!!t&&("ImportAttribute"===t.type&&(null==r||(0,e.default)(t,r)))},M.isImportDeclaration=function(t,r){return!!t&&("ImportDeclaration"===t.type&&(null==r||(0,e.default)(t,r)))},M.isImportDefaultSpecifier=function(t,r){return!!t&&("ImportDefaultSpecifier"===t.type&&(null==r||(0,e.default)(t,r)))},M.isImportExpression=function(t,r){return!!t&&("ImportExpression"===t.type&&(null==r||(0,e.default)(t,r)))},M.isImportNamespaceSpecifier=function(t,r){return!!t&&("ImportNamespaceSpecifier"===t.type&&(null==r||(0,e.default)(t,r)))},M.isImportOrExportDeclaration=r,M.isImportSpecifier=function(t,r){return!!t&&("ImportSpecifier"===t.type&&(null==r||(0,e.default)(t,r)))},M.isIndexedAccessType=function(t,r){return!!t&&("IndexedAccessType"===t.type&&(null==r||(0,e.default)(t,r)))},M.isInferredPredicate=function(t,r){return!!t&&("InferredPredicate"===t.type&&(null==r||(0,e.default)(t,r)))},M.isInterfaceDeclaration=function(t,r){return!!t&&("InterfaceDeclaration"===t.type&&(null==r||(0,e.default)(t,r)))},M.isInterfaceExtends=function(t,r){return!!t&&("InterfaceExtends"===t.type&&(null==r||(0,e.default)(t,r)))},M.isInterfaceTypeAnnotation=function(t,r){return!!t&&("InterfaceTypeAnnotation"===t.type&&(null==r||(0,e.default)(t,r)))},M.isInterpreterDirective=function(t,r){return!!t&&("InterpreterDirective"===t.type&&(null==r||(0,e.default)(t,r)))},M.isIntersectionTypeAnnotation=function(t,r){return!!t&&("IntersectionTypeAnnotation"===t.type&&(null==r||(0,e.default)(t,r)))},M.isJSX=function(t,r){if(!t)return!1;switch(t.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 null==r||(0,e.default)(t,r)},M.isJSXAttribute=function(t,r){return!!t&&("JSXAttribute"===t.type&&(null==r||(0,e.default)(t,r)))},M.isJSXClosingElement=function(t,r){return!!t&&("JSXClosingElement"===t.type&&(null==r||(0,e.default)(t,r)))},M.isJSXClosingFragment=function(t,r){return!!t&&("JSXClosingFragment"===t.type&&(null==r||(0,e.default)(t,r)))},M.isJSXElement=function(t,r){return!!t&&("JSXElement"===t.type&&(null==r||(0,e.default)(t,r)))},M.isJSXEmptyExpression=function(t,r){return!!t&&("JSXEmptyExpression"===t.type&&(null==r||(0,e.default)(t,r)))},M.isJSXExpressionContainer=function(t,r){return!!t&&("JSXExpressionContainer"===t.type&&(null==r||(0,e.default)(t,r)))},M.isJSXFragment=function(t,r){return!!t&&("JSXFragment"===t.type&&(null==r||(0,e.default)(t,r)))},M.isJSXIdentifier=function(t,r){return!!t&&("JSXIdentifier"===t.type&&(null==r||(0,e.default)(t,r)))},M.isJSXMemberExpression=function(t,r){return!!t&&("JSXMemberExpression"===t.type&&(null==r||(0,e.default)(t,r)))},M.isJSXNamespacedName=function(t,r){return!!t&&("JSXNamespacedName"===t.type&&(null==r||(0,e.default)(t,r)))},M.isJSXOpeningElement=function(t,r){return!!t&&("JSXOpeningElement"===t.type&&(null==r||(0,e.default)(t,r)))},M.isJSXOpeningFragment=function(t,r){return!!t&&("JSXOpeningFragment"===t.type&&(null==r||(0,e.default)(t,r)))},M.isJSXSpreadAttribute=function(t,r){return!!t&&("JSXSpreadAttribute"===t.type&&(null==r||(0,e.default)(t,r)))},M.isJSXSpreadChild=function(t,r){return!!t&&("JSXSpreadChild"===t.type&&(null==r||(0,e.default)(t,r)))},M.isJSXText=function(t,r){return!!t&&("JSXText"===t.type&&(null==r||(0,e.default)(t,r)))},M.isLVal=function(t,r){if(!t)return!1;switch(t.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(t.expectedNode){case"Pattern":case"Identifier":break;default:return!1}break;default:return!1}return null==r||(0,e.default)(t,r)},M.isLabeledStatement=function(t,r){return!!t&&("LabeledStatement"===t.type&&(null==r||(0,e.default)(t,r)))},M.isLiteral=function(t,r){if(!t)return!1;switch(t.type){case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"TemplateLiteral":case"BigIntLiteral":case"DecimalLiteral":break;case"Placeholder":if("StringLiteral"===t.expectedNode)break;default:return!1}return null==r||(0,e.default)(t,r)},M.isLogicalExpression=function(t,r){return!!t&&("LogicalExpression"===t.type&&(null==r||(0,e.default)(t,r)))},M.isLoop=function(t,r){if(!t)return!1;switch(t.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":case"ForOfStatement":break;default:return!1}return null==r||(0,e.default)(t,r)},M.isMemberExpression=function(t,r){return!!t&&("MemberExpression"===t.type&&(null==r||(0,e.default)(t,r)))},M.isMetaProperty=function(t,r){return!!t&&("MetaProperty"===t.type&&(null==r||(0,e.default)(t,r)))},M.isMethod=function(t,r){if(!t)return!1;switch(t.type){case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":break;default:return!1}return null==r||(0,e.default)(t,r)},M.isMiscellaneous=function(t,r){if(!t)return!1;switch(t.type){case"Noop":case"Placeholder":case"V8IntrinsicIdentifier":break;default:return!1}return null==r||(0,e.default)(t,r)},M.isMixedTypeAnnotation=function(t,r){return!!t&&("MixedTypeAnnotation"===t.type&&(null==r||(0,e.default)(t,r)))},M.isModuleDeclaration=function(e,i){return(0,t.default)("isModuleDeclaration","isImportOrExportDeclaration"),r(e,i)},M.isModuleExpression=function(t,r){return!!t&&("ModuleExpression"===t.type&&(null==r||(0,e.default)(t,r)))},M.isModuleSpecifier=function(t,r){if(!t)return!1;switch(t.type){case"ExportSpecifier":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":break;default:return!1}return null==r||(0,e.default)(t,r)},M.isNewExpression=function(t,r){return!!t&&("NewExpression"===t.type&&(null==r||(0,e.default)(t,r)))},M.isNoop=function(t,r){return!!t&&("Noop"===t.type&&(null==r||(0,e.default)(t,r)))},M.isNullLiteral=function(t,r){return!!t&&("NullLiteral"===t.type&&(null==r||(0,e.default)(t,r)))},M.isNullLiteralTypeAnnotation=function(t,r){return!!t&&("NullLiteralTypeAnnotation"===t.type&&(null==r||(0,e.default)(t,r)))},M.isNullableTypeAnnotation=function(t,r){return!!t&&("NullableTypeAnnotation"===t.type&&(null==r||(0,e.default)(t,r)))},M.isNumberLiteral=function(r,i){return(0,t.default)("isNumberLiteral","isNumericLiteral"),!!r&&("NumberLiteral"===r.type&&(null==i||(0,e.default)(r,i)))},M.isNumberLiteralTypeAnnotation=function(t,r){return!!t&&("NumberLiteralTypeAnnotation"===t.type&&(null==r||(0,e.default)(t,r)))},M.isNumberTypeAnnotation=function(t,r){return!!t&&("NumberTypeAnnotation"===t.type&&(null==r||(0,e.default)(t,r)))},M.isNumericLiteral=function(t,r){return!!t&&("NumericLiteral"===t.type&&(null==r||(0,e.default)(t,r)))},M.isObjectExpression=function(t,r){return!!t&&("ObjectExpression"===t.type&&(null==r||(0,e.default)(t,r)))},M.isObjectMember=function(t,r){if(!t)return!1;switch(t.type){case"ObjectMethod":case"ObjectProperty":break;default:return!1}return null==r||(0,e.default)(t,r)},M.isObjectMethod=function(t,r){return!!t&&("ObjectMethod"===t.type&&(null==r||(0,e.default)(t,r)))},M.isObjectPattern=function(t,r){return!!t&&("ObjectPattern"===t.type&&(null==r||(0,e.default)(t,r)))},M.isObjectProperty=function(t,r){return!!t&&("ObjectProperty"===t.type&&(null==r||(0,e.default)(t,r)))},M.isObjectTypeAnnotation=function(t,r){return!!t&&("ObjectTypeAnnotation"===t.type&&(null==r||(0,e.default)(t,r)))},M.isObjectTypeCallProperty=function(t,r){return!!t&&("ObjectTypeCallProperty"===t.type&&(null==r||(0,e.default)(t,r)))},M.isObjectTypeIndexer=function(t,r){return!!t&&("ObjectTypeIndexer"===t.type&&(null==r||(0,e.default)(t,r)))},M.isObjectTypeInternalSlot=function(t,r){return!!t&&("ObjectTypeInternalSlot"===t.type&&(null==r||(0,e.default)(t,r)))},M.isObjectTypeProperty=function(t,r){return!!t&&("ObjectTypeProperty"===t.type&&(null==r||(0,e.default)(t,r)))},M.isObjectTypeSpreadProperty=function(t,r){return!!t&&("ObjectTypeSpreadProperty"===t.type&&(null==r||(0,e.default)(t,r)))},M.isOpaqueType=function(t,r){return!!t&&("OpaqueType"===t.type&&(null==r||(0,e.default)(t,r)))},M.isOptionalCallExpression=function(t,r){return!!t&&("OptionalCallExpression"===t.type&&(null==r||(0,e.default)(t,r)))},M.isOptionalIndexedAccessType=function(t,r){return!!t&&("OptionalIndexedAccessType"===t.type&&(null==r||(0,e.default)(t,r)))},M.isOptionalMemberExpression=function(t,r){return!!t&&("OptionalMemberExpression"===t.type&&(null==r||(0,e.default)(t,r)))},M.isParenthesizedExpression=function(t,r){return!!t&&("ParenthesizedExpression"===t.type&&(null==r||(0,e.default)(t,r)))},M.isPattern=function(t,r){if(!t)return!1;switch(t.type){case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"VoidPattern":break;case"Placeholder":if("Pattern"===t.expectedNode)break;default:return!1}return null==r||(0,e.default)(t,r)},M.isPatternLike=function(t,r){if(!t)return!1;switch(t.type){case"Identifier":case"MemberExpression":case"RestElement":case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"VoidPattern":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(t.expectedNode){case"Pattern":case"Identifier":break;default:return!1}break;default:return!1}return null==r||(0,e.default)(t,r)},M.isPipelineBareFunction=function(t,r){return!!t&&("PipelineBareFunction"===t.type&&(null==r||(0,e.default)(t,r)))},M.isPipelinePrimaryTopicReference=function(t,r){return!!t&&("PipelinePrimaryTopicReference"===t.type&&(null==r||(0,e.default)(t,r)))},M.isPipelineTopicExpression=function(t,r){return!!t&&("PipelineTopicExpression"===t.type&&(null==r||(0,e.default)(t,r)))},M.isPlaceholder=function(t,r){return!!t&&("Placeholder"===t.type&&(null==r||(0,e.default)(t,r)))},M.isPrivate=function(t,r){if(!t)return!1;switch(t.type){case"ClassPrivateProperty":case"ClassPrivateMethod":case"PrivateName":break;default:return!1}return null==r||(0,e.default)(t,r)},M.isPrivateName=function(t,r){return!!t&&("PrivateName"===t.type&&(null==r||(0,e.default)(t,r)))},M.isProgram=function(t,r){return!!t&&("Program"===t.type&&(null==r||(0,e.default)(t,r)))},M.isProperty=function(t,r){if(!t)return!1;switch(t.type){case"ObjectProperty":case"ClassProperty":case"ClassAccessorProperty":case"ClassPrivateProperty":break;default:return!1}return null==r||(0,e.default)(t,r)},M.isPureish=function(t,r){if(!t)return!1;switch(t.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("StringLiteral"===t.expectedNode)break;default:return!1}return null==r||(0,e.default)(t,r)},M.isQualifiedTypeIdentifier=function(t,r){return!!t&&("QualifiedTypeIdentifier"===t.type&&(null==r||(0,e.default)(t,r)))},M.isRecordExpression=function(t,r){return!!t&&("RecordExpression"===t.type&&(null==r||(0,e.default)(t,r)))},M.isRegExpLiteral=function(t,r){return!!t&&("RegExpLiteral"===t.type&&(null==r||(0,e.default)(t,r)))},M.isRegexLiteral=function(r,i){return(0,t.default)("isRegexLiteral","isRegExpLiteral"),!!r&&("RegexLiteral"===r.type&&(null==i||(0,e.default)(r,i)))},M.isRestElement=function(t,r){return!!t&&("RestElement"===t.type&&(null==r||(0,e.default)(t,r)))},M.isRestProperty=function(r,i){return(0,t.default)("isRestProperty","isRestElement"),!!r&&("RestProperty"===r.type&&(null==i||(0,e.default)(r,i)))},M.isReturnStatement=function(t,r){return!!t&&("ReturnStatement"===t.type&&(null==r||(0,e.default)(t,r)))},M.isScopable=function(t,r){if(!t)return!1;switch(t.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("BlockStatement"===t.expectedNode)break;default:return!1}return null==r||(0,e.default)(t,r)},M.isSequenceExpression=function(t,r){return!!t&&("SequenceExpression"===t.type&&(null==r||(0,e.default)(t,r)))},M.isSpreadElement=function(t,r){return!!t&&("SpreadElement"===t.type&&(null==r||(0,e.default)(t,r)))},M.isSpreadProperty=function(r,i){return(0,t.default)("isSpreadProperty","isSpreadElement"),!!r&&("SpreadProperty"===r.type&&(null==i||(0,e.default)(r,i)))},M.isStandardized=function(t,r){if(!t)return!1;switch(t.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":case"ImportAttribute":break;case"Placeholder":switch(t.expectedNode){case"Identifier":case"StringLiteral":case"BlockStatement":case"ClassBody":break;default:return!1}break;default:return!1}return null==r||(0,e.default)(t,r)},M.isStatement=function(t,r){if(!t)return!1;switch(t.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(t.expectedNode){case"Statement":case"Declaration":case"BlockStatement":break;default:return!1}break;default:return!1}return null==r||(0,e.default)(t,r)},M.isStaticBlock=function(t,r){return!!t&&("StaticBlock"===t.type&&(null==r||(0,e.default)(t,r)))},M.isStringLiteral=function(t,r){return!!t&&("StringLiteral"===t.type&&(null==r||(0,e.default)(t,r)))},M.isStringLiteralTypeAnnotation=function(t,r){return!!t&&("StringLiteralTypeAnnotation"===t.type&&(null==r||(0,e.default)(t,r)))},M.isStringTypeAnnotation=function(t,r){return!!t&&("StringTypeAnnotation"===t.type&&(null==r||(0,e.default)(t,r)))},M.isSuper=function(t,r){return!!t&&("Super"===t.type&&(null==r||(0,e.default)(t,r)))},M.isSwitchCase=function(t,r){return!!t&&("SwitchCase"===t.type&&(null==r||(0,e.default)(t,r)))},M.isSwitchStatement=function(t,r){return!!t&&("SwitchStatement"===t.type&&(null==r||(0,e.default)(t,r)))},M.isSymbolTypeAnnotation=function(t,r){return!!t&&("SymbolTypeAnnotation"===t.type&&(null==r||(0,e.default)(t,r)))},M.isTSAnyKeyword=function(t,r){return!!t&&("TSAnyKeyword"===t.type&&(null==r||(0,e.default)(t,r)))},M.isTSArrayType=function(t,r){return!!t&&("TSArrayType"===t.type&&(null==r||(0,e.default)(t,r)))},M.isTSAsExpression=function(t,r){return!!t&&("TSAsExpression"===t.type&&(null==r||(0,e.default)(t,r)))},M.isTSBaseType=function(t,r){if(!t)return!1;switch(t.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"TSTemplateLiteralType":case"TSLiteralType":break;default:return!1}return null==r||(0,e.default)(t,r)},M.isTSBigIntKeyword=function(t,r){return!!t&&("TSBigIntKeyword"===t.type&&(null==r||(0,e.default)(t,r)))},M.isTSBooleanKeyword=function(t,r){return!!t&&("TSBooleanKeyword"===t.type&&(null==r||(0,e.default)(t,r)))},M.isTSCallSignatureDeclaration=function(t,r){return!!t&&("TSCallSignatureDeclaration"===t.type&&(null==r||(0,e.default)(t,r)))},M.isTSConditionalType=function(t,r){return!!t&&("TSConditionalType"===t.type&&(null==r||(0,e.default)(t,r)))},M.isTSConstructSignatureDeclaration=function(t,r){return!!t&&("TSConstructSignatureDeclaration"===t.type&&(null==r||(0,e.default)(t,r)))},M.isTSConstructorType=function(t,r){return!!t&&("TSConstructorType"===t.type&&(null==r||(0,e.default)(t,r)))},M.isTSDeclareFunction=function(t,r){return!!t&&("TSDeclareFunction"===t.type&&(null==r||(0,e.default)(t,r)))},M.isTSDeclareMethod=function(t,r){return!!t&&("TSDeclareMethod"===t.type&&(null==r||(0,e.default)(t,r)))},M.isTSEntityName=function(t,r){if(!t)return!1;switch(t.type){case"Identifier":case"TSQualifiedName":break;case"Placeholder":if("Identifier"===t.expectedNode)break;default:return!1}return null==r||(0,e.default)(t,r)},M.isTSEnumBody=function(t,r){return!!t&&("TSEnumBody"===t.type&&(null==r||(0,e.default)(t,r)))},M.isTSEnumDeclaration=function(t,r){return!!t&&("TSEnumDeclaration"===t.type&&(null==r||(0,e.default)(t,r)))},M.isTSEnumMember=function(t,r){return!!t&&("TSEnumMember"===t.type&&(null==r||(0,e.default)(t,r)))},M.isTSExportAssignment=function(t,r){return!!t&&("TSExportAssignment"===t.type&&(null==r||(0,e.default)(t,r)))},M.isTSExpressionWithTypeArguments=function(t,r){return!!t&&("TSExpressionWithTypeArguments"===t.type&&(null==r||(0,e.default)(t,r)))},M.isTSExternalModuleReference=function(t,r){return!!t&&("TSExternalModuleReference"===t.type&&(null==r||(0,e.default)(t,r)))},M.isTSFunctionType=function(t,r){return!!t&&("TSFunctionType"===t.type&&(null==r||(0,e.default)(t,r)))},M.isTSImportEqualsDeclaration=function(t,r){return!!t&&("TSImportEqualsDeclaration"===t.type&&(null==r||(0,e.default)(t,r)))},M.isTSImportType=function(t,r){return!!t&&("TSImportType"===t.type&&(null==r||(0,e.default)(t,r)))},M.isTSIndexSignature=function(t,r){return!!t&&("TSIndexSignature"===t.type&&(null==r||(0,e.default)(t,r)))},M.isTSIndexedAccessType=function(t,r){return!!t&&("TSIndexedAccessType"===t.type&&(null==r||(0,e.default)(t,r)))},M.isTSInferType=function(t,r){return!!t&&("TSInferType"===t.type&&(null==r||(0,e.default)(t,r)))},M.isTSInstantiationExpression=function(t,r){return!!t&&("TSInstantiationExpression"===t.type&&(null==r||(0,e.default)(t,r)))},M.isTSInterfaceBody=function(t,r){return!!t&&("TSInterfaceBody"===t.type&&(null==r||(0,e.default)(t,r)))},M.isTSInterfaceDeclaration=function(t,r){return!!t&&("TSInterfaceDeclaration"===t.type&&(null==r||(0,e.default)(t,r)))},M.isTSIntersectionType=function(t,r){return!!t&&("TSIntersectionType"===t.type&&(null==r||(0,e.default)(t,r)))},M.isTSIntrinsicKeyword=function(t,r){return!!t&&("TSIntrinsicKeyword"===t.type&&(null==r||(0,e.default)(t,r)))},M.isTSLiteralType=function(t,r){return!!t&&("TSLiteralType"===t.type&&(null==r||(0,e.default)(t,r)))},M.isTSMappedType=function(t,r){return!!t&&("TSMappedType"===t.type&&(null==r||(0,e.default)(t,r)))},M.isTSMethodSignature=function(t,r){return!!t&&("TSMethodSignature"===t.type&&(null==r||(0,e.default)(t,r)))},M.isTSModuleBlock=function(t,r){return!!t&&("TSModuleBlock"===t.type&&(null==r||(0,e.default)(t,r)))},M.isTSModuleDeclaration=function(t,r){return!!t&&("TSModuleDeclaration"===t.type&&(null==r||(0,e.default)(t,r)))},M.isTSNamedTupleMember=function(t,r){return!!t&&("TSNamedTupleMember"===t.type&&(null==r||(0,e.default)(t,r)))},M.isTSNamespaceExportDeclaration=function(t,r){return!!t&&("TSNamespaceExportDeclaration"===t.type&&(null==r||(0,e.default)(t,r)))},M.isTSNeverKeyword=function(t,r){return!!t&&("TSNeverKeyword"===t.type&&(null==r||(0,e.default)(t,r)))},M.isTSNonNullExpression=function(t,r){return!!t&&("TSNonNullExpression"===t.type&&(null==r||(0,e.default)(t,r)))},M.isTSNullKeyword=function(t,r){return!!t&&("TSNullKeyword"===t.type&&(null==r||(0,e.default)(t,r)))},M.isTSNumberKeyword=function(t,r){return!!t&&("TSNumberKeyword"===t.type&&(null==r||(0,e.default)(t,r)))},M.isTSObjectKeyword=function(t,r){return!!t&&("TSObjectKeyword"===t.type&&(null==r||(0,e.default)(t,r)))},M.isTSOptionalType=function(t,r){return!!t&&("TSOptionalType"===t.type&&(null==r||(0,e.default)(t,r)))},M.isTSParameterProperty=function(t,r){return!!t&&("TSParameterProperty"===t.type&&(null==r||(0,e.default)(t,r)))},M.isTSParenthesizedType=function(t,r){return!!t&&("TSParenthesizedType"===t.type&&(null==r||(0,e.default)(t,r)))},M.isTSPropertySignature=function(t,r){return!!t&&("TSPropertySignature"===t.type&&(null==r||(0,e.default)(t,r)))},M.isTSQualifiedName=function(t,r){return!!t&&("TSQualifiedName"===t.type&&(null==r||(0,e.default)(t,r)))},M.isTSRestType=function(t,r){return!!t&&("TSRestType"===t.type&&(null==r||(0,e.default)(t,r)))},M.isTSSatisfiesExpression=function(t,r){return!!t&&("TSSatisfiesExpression"===t.type&&(null==r||(0,e.default)(t,r)))},M.isTSStringKeyword=function(t,r){return!!t&&("TSStringKeyword"===t.type&&(null==r||(0,e.default)(t,r)))},M.isTSSymbolKeyword=function(t,r){return!!t&&("TSSymbolKeyword"===t.type&&(null==r||(0,e.default)(t,r)))},M.isTSTemplateLiteralType=function(t,r){return!!t&&("TSTemplateLiteralType"===t.type&&(null==r||(0,e.default)(t,r)))},M.isTSThisType=function(t,r){return!!t&&("TSThisType"===t.type&&(null==r||(0,e.default)(t,r)))},M.isTSTupleType=function(t,r){return!!t&&("TSTupleType"===t.type&&(null==r||(0,e.default)(t,r)))},M.isTSType=function(t,r){if(!t)return!1;switch(t.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"TSTemplateLiteralType":case"TSLiteralType":case"TSExpressionWithTypeArguments":case"TSImportType":break;default:return!1}return null==r||(0,e.default)(t,r)},M.isTSTypeAliasDeclaration=function(t,r){return!!t&&("TSTypeAliasDeclaration"===t.type&&(null==r||(0,e.default)(t,r)))},M.isTSTypeAnnotation=function(t,r){return!!t&&("TSTypeAnnotation"===t.type&&(null==r||(0,e.default)(t,r)))},M.isTSTypeAssertion=function(t,r){return!!t&&("TSTypeAssertion"===t.type&&(null==r||(0,e.default)(t,r)))},M.isTSTypeElement=function(t,r){if(!t)return!1;switch(t.type){case"TSCallSignatureDeclaration":case"TSConstructSignatureDeclaration":case"TSPropertySignature":case"TSMethodSignature":case"TSIndexSignature":break;default:return!1}return null==r||(0,e.default)(t,r)},M.isTSTypeLiteral=function(t,r){return!!t&&("TSTypeLiteral"===t.type&&(null==r||(0,e.default)(t,r)))},M.isTSTypeOperator=function(t,r){return!!t&&("TSTypeOperator"===t.type&&(null==r||(0,e.default)(t,r)))},M.isTSTypeParameter=function(t,r){return!!t&&("TSTypeParameter"===t.type&&(null==r||(0,e.default)(t,r)))},M.isTSTypeParameterDeclaration=function(t,r){return!!t&&("TSTypeParameterDeclaration"===t.type&&(null==r||(0,e.default)(t,r)))},M.isTSTypeParameterInstantiation=function(t,r){return!!t&&("TSTypeParameterInstantiation"===t.type&&(null==r||(0,e.default)(t,r)))},M.isTSTypePredicate=function(t,r){return!!t&&("TSTypePredicate"===t.type&&(null==r||(0,e.default)(t,r)))},M.isTSTypeQuery=function(t,r){return!!t&&("TSTypeQuery"===t.type&&(null==r||(0,e.default)(t,r)))},M.isTSTypeReference=function(t,r){return!!t&&("TSTypeReference"===t.type&&(null==r||(0,e.default)(t,r)))},M.isTSUndefinedKeyword=function(t,r){return!!t&&("TSUndefinedKeyword"===t.type&&(null==r||(0,e.default)(t,r)))},M.isTSUnionType=function(t,r){return!!t&&("TSUnionType"===t.type&&(null==r||(0,e.default)(t,r)))},M.isTSUnknownKeyword=function(t,r){return!!t&&("TSUnknownKeyword"===t.type&&(null==r||(0,e.default)(t,r)))},M.isTSVoidKeyword=function(t,r){return!!t&&("TSVoidKeyword"===t.type&&(null==r||(0,e.default)(t,r)))},M.isTaggedTemplateExpression=function(t,r){return!!t&&("TaggedTemplateExpression"===t.type&&(null==r||(0,e.default)(t,r)))},M.isTemplateElement=function(t,r){return!!t&&("TemplateElement"===t.type&&(null==r||(0,e.default)(t,r)))},M.isTemplateLiteral=function(t,r){return!!t&&("TemplateLiteral"===t.type&&(null==r||(0,e.default)(t,r)))},M.isTerminatorless=function(t,r){if(!t)return!1;switch(t.type){case"BreakStatement":case"ContinueStatement":case"ReturnStatement":case"ThrowStatement":case"YieldExpression":case"AwaitExpression":break;default:return!1}return null==r||(0,e.default)(t,r)},M.isThisExpression=function(t,r){return!!t&&("ThisExpression"===t.type&&(null==r||(0,e.default)(t,r)))},M.isThisTypeAnnotation=function(t,r){return!!t&&("ThisTypeAnnotation"===t.type&&(null==r||(0,e.default)(t,r)))},M.isThrowStatement=function(t,r){return!!t&&("ThrowStatement"===t.type&&(null==r||(0,e.default)(t,r)))},M.isTopicReference=function(t,r){return!!t&&("TopicReference"===t.type&&(null==r||(0,e.default)(t,r)))},M.isTryStatement=function(t,r){return!!t&&("TryStatement"===t.type&&(null==r||(0,e.default)(t,r)))},M.isTupleExpression=function(t,r){return!!t&&("TupleExpression"===t.type&&(null==r||(0,e.default)(t,r)))},M.isTupleTypeAnnotation=function(t,r){return!!t&&("TupleTypeAnnotation"===t.type&&(null==r||(0,e.default)(t,r)))},M.isTypeAlias=function(t,r){return!!t&&("TypeAlias"===t.type&&(null==r||(0,e.default)(t,r)))},M.isTypeAnnotation=function(t,r){return!!t&&("TypeAnnotation"===t.type&&(null==r||(0,e.default)(t,r)))},M.isTypeCastExpression=function(t,r){return!!t&&("TypeCastExpression"===t.type&&(null==r||(0,e.default)(t,r)))},M.isTypeParameter=function(t,r){return!!t&&("TypeParameter"===t.type&&(null==r||(0,e.default)(t,r)))},M.isTypeParameterDeclaration=function(t,r){return!!t&&("TypeParameterDeclaration"===t.type&&(null==r||(0,e.default)(t,r)))},M.isTypeParameterInstantiation=function(t,r){return!!t&&("TypeParameterInstantiation"===t.type&&(null==r||(0,e.default)(t,r)))},M.isTypeScript=function(t,r){if(!t)return!1;switch(t.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"TSTemplateLiteralType":case"TSLiteralType":case"TSExpressionWithTypeArguments":case"TSInterfaceDeclaration":case"TSInterfaceBody":case"TSTypeAliasDeclaration":case"TSInstantiationExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSEnumBody":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 null==r||(0,e.default)(t,r)},M.isTypeofTypeAnnotation=function(t,r){return!!t&&("TypeofTypeAnnotation"===t.type&&(null==r||(0,e.default)(t,r)))},M.isUnaryExpression=function(t,r){return!!t&&("UnaryExpression"===t.type&&(null==r||(0,e.default)(t,r)))},M.isUnaryLike=function(t,r){if(!t)return!1;switch(t.type){case"UnaryExpression":case"SpreadElement":break;default:return!1}return null==r||(0,e.default)(t,r)},M.isUnionTypeAnnotation=function(t,r){return!!t&&("UnionTypeAnnotation"===t.type&&(null==r||(0,e.default)(t,r)))},M.isUpdateExpression=function(t,r){return!!t&&("UpdateExpression"===t.type&&(null==r||(0,e.default)(t,r)))},M.isUserWhitespacable=function(t,r){if(!t)return!1;switch(t.type){case"ObjectMethod":case"ObjectProperty":case"ObjectTypeInternalSlot":case"ObjectTypeCallProperty":case"ObjectTypeIndexer":case"ObjectTypeProperty":case"ObjectTypeSpreadProperty":break;default:return!1}return null==r||(0,e.default)(t,r)},M.isV8IntrinsicIdentifier=function(t,r){return!!t&&("V8IntrinsicIdentifier"===t.type&&(null==r||(0,e.default)(t,r)))},M.isVariableDeclaration=function(t,r){return!!t&&("VariableDeclaration"===t.type&&(null==r||(0,e.default)(t,r)))},M.isVariableDeclarator=function(t,r){return!!t&&("VariableDeclarator"===t.type&&(null==r||(0,e.default)(t,r)))},M.isVariance=function(t,r){return!!t&&("Variance"===t.type&&(null==r||(0,e.default)(t,r)))},M.isVoidPattern=function(t,r){return!!t&&("VoidPattern"===t.type&&(null==r||(0,e.default)(t,r)))},M.isVoidTypeAnnotation=function(t,r){return!!t&&("VoidTypeAnnotation"===t.type&&(null==r||(0,e.default)(t,r)))},M.isWhile=function(t,r){if(!t)return!1;switch(t.type){case"DoWhileStatement":case"WhileStatement":break;default:return!1}return null==r||(0,e.default)(t,r)},M.isWhileStatement=function(t,r){return!!t&&("WhileStatement"===t.type&&(null==r||(0,e.default)(t,r)))},M.isWithStatement=function(t,r){return!!t&&("WithStatement"===t.type&&(null==r||(0,e.default)(t,r)))},M.isYieldExpression=function(t,r){return!!t&&("YieldExpression"===t.type&&(null==r||(0,e.default)(t,r)))};var e=B(),t=W();function r(t,r){if(!t)return!1;switch(t.type){case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ImportDeclaration":break;default:return!1}return null==r||(0,e.default)(t,r)}return M}function J(){if(U)return L;U=1,Object.defineProperty(L,"__esModule",{value:!0}),L.default=function(r,i,n){if(!t(r))return!1;var a,s=Array.isArray(i)?i:i.split("."),o=[];for(a=r;t(a);a=null!=(l=a.object)?l:a.meta){var l;o.push(a.property)}if(o.push(a),o.length<s.length)return!1;if(!n&&o.length>s.length)return!1;for(var p=0,c=o.length-1;p<s.length;p++,c--){var u=o[c],h=void 0;if((0,e.isIdentifier)(u))h=u.name;else if((0,e.isStringLiteral)(u))h=u.value;else if((0,e.isThisExpression)(u))h="this";else if((0,e.isSuper)(u))h="super";else{if(!(0,e.isPrivateName)(u))return!1;h="#"+u.id.name}if(s[p]!==h)return!1}return!0};var e=Y();function t(t){return(0,e.isMemberExpression)(t)||(0,e.isMetaProperty)(t)}return L}function X(){if(K)return _;K=1,Object.defineProperty(_,"__esModule",{value:!0}),_.default=function(t,r){var i=t.split(".");return t=>(0,e.default)(t,i,r)};var e=J();return _}var H,z={};var G,Q={},$={},Z={},ee={},te={},re={},ie={},ne={},ae={};function se(){if(G)return ae;G=1,Object.defineProperty(ae,"__esModule",{value:!0}),ae.default=function(t,r){if(t===r)return!0;if(null==t)return!1;if(e.ALIAS_KEYS[r])return!1;var i=e.FLIPPED_ALIAS_KEYS[r];return!(null==i||!i.includes(t))};var e=Ge();return ae}var oe,le,pe={};function ce(){if(oe)return pe;oe=1,Object.defineProperty(pe,"__esModule",{value:!0}),pe.default=function(t,r){if(t===r)return!0;var i=e.PLACEHOLDERS_ALIAS[t];return!(null==i||!i.includes(r))};var e=Ge();return pe}function ue(){if(le)return ne;le=1,Object.defineProperty(ne,"__esModule",{value:!0}),ne.default=function(n,a,s){if(!a)return!1;var o=(0,t.default)(a.type,n);if(!o)return!s&&"Placeholder"===a.type&&n in i.FLIPPED_ALIAS_KEYS&&(0,r.default)(a.expectedNode,n);return void 0===s||(0,e.default)(a,s)};var e=B(),t=se(),r=ce(),i=Ge();return ne}var he,de={},fe={},me={};var ye,ve,Te,ge={};function Se(){return ve||(ve=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isIdentifierChar",{enumerable:!0,get:function(){return t.isIdentifierChar}}),Object.defineProperty(e,"isIdentifierName",{enumerable:!0,get:function(){return t.isIdentifierName}}),Object.defineProperty(e,"isIdentifierStart",{enumerable:!0,get:function(){return t.isIdentifierStart}}),Object.defineProperty(e,"isKeyword",{enumerable:!0,get:function(){return r.isKeyword}}),Object.defineProperty(e,"isReservedWord",{enumerable:!0,get:function(){return r.isReservedWord}}),Object.defineProperty(e,"isStrictBindOnlyReservedWord",{enumerable:!0,get:function(){return r.isStrictBindOnlyReservedWord}}),Object.defineProperty(e,"isStrictBindReservedWord",{enumerable:!0,get:function(){return r.isStrictBindReservedWord}}),Object.defineProperty(e,"isStrictReservedWord",{enumerable:!0,get:function(){return r.isStrictReservedWord}});var t=function(){if(he)return me;he=1,Object.defineProperty(me,"__esModule",{value:!0}),me.isIdentifierChar=l,me.isIdentifierName=function(e){for(var t=!0,r=0;r<e.length;r++){var i=e.charCodeAt(r);if(55296==(64512&i)&&r+1<e.length){var n=e.charCodeAt(++r);56320==(64512&n)&&(i=65536+((1023&i)<<10)+(1023&n))}if(t){if(t=!1,!o(i))return!1}else if(!l(i))return!1}return!t},me.isIdentifierStart=o;var e="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-࢏ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚ౜ౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ೜-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ƛ꟱-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",t="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-᫝᫠-᫫ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・",r=new RegExp("["+e+"]"),i=new RegExp("["+e+t+"]");e=t=null;var n=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,7,25,39,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,5,57,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,24,43,261,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7381,42,31,98,114,8702,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,208,30,2,2,2,1,2,6,3,4,10,1,225,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4381,3,5773,3,7472,16,621,2467,541,1507,4938,6,8489],a=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,78,5,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,199,7,137,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,55,9,266,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239];function s(e,t){for(var r=65536,i=0,n=t.length;i<n;i+=2){if((r+=t[i])>e)return!1;if((r+=t[i+1])>=e)return!0}return!1}function o(e){return e<65?36===e:e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&r.test(String.fromCharCode(e)):s(e,n)))}function l(e){return e<48?36===e:e<58||!(e<65)&&(e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&i.test(String.fromCharCode(e)):s(e,n)||s(e,a))))}return me}(),r=function(){if(ye)return ge;ye=1,Object.defineProperty(ge,"__esModule",{value:!0}),ge.isKeyword=function(e){return r.has(e)},ge.isReservedWord=a,ge.isStrictBindOnlyReservedWord=o,ge.isStrictBindReservedWord=function(e,t){return s(e,t)||o(e)},ge.isStrictReservedWord=s;var e=["implements","interface","let","package","private","protected","public","static","yield"],t=["eval","arguments"],r=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"]),i=new Set(e),n=new Set(t);function a(e,t){return t&&"await"===e||"enum"===e}function s(e,t){return a(e,t)||i.has(e)}function o(e){return n.has(e)}return ge}()}(fe)),fe}function xe(){if(Te)return de;Te=1,Object.defineProperty(de,"__esModule",{value:!0}),de.default=function(t){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if("string"!=typeof t)return!1;if(r&&((0,e.isKeyword)(t)||(0,e.isStrictReservedWord)(t,!0)))return!1;return(0,e.isIdentifierName)(t)};var e=Se();return de}var be,Pe={};var Ee,Ae={};function Ce(){if(Ee)return Ae;Ee=1,Object.defineProperty(Ae,"__esModule",{value:!0}),Ae.UPDATE_OPERATORS=Ae.UNARY_OPERATORS=Ae.STRING_UNARY_OPERATORS=Ae.STATEMENT_OR_BLOCK_KEYS=Ae.NUMBER_UNARY_OPERATORS=Ae.NUMBER_BINARY_OPERATORS=Ae.LOGICAL_OPERATORS=Ae.INHERIT_KEYS=Ae.FOR_INIT_KEYS=Ae.FLATTENABLE_KEYS=Ae.EQUALITY_BINARY_OPERATORS=Ae.COMPARISON_BINARY_OPERATORS=Ae.COMMENT_KEYS=Ae.BOOLEAN_UNARY_OPERATORS=Ae.BOOLEAN_NUMBER_BINARY_OPERATORS=Ae.BOOLEAN_BINARY_OPERATORS=Ae.BINARY_OPERATORS=Ae.ASSIGNMENT_OPERATORS=void 0,Ae.STATEMENT_OR_BLOCK_KEYS=["consequent","body","alternate"],Ae.FLATTENABLE_KEYS=["body","expressions"],Ae.FOR_INIT_KEYS=["left","init"],Ae.COMMENT_KEYS=["leadingComments","trailingComments","innerComments"];var e=Ae.LOGICAL_OPERATORS=["||","&&","??"];Ae.UPDATE_OPERATORS=["++","--"];var t=Ae.BOOLEAN_NUMBER_BINARY_OPERATORS=[">","<",">=","<="],r=Ae.EQUALITY_BINARY_OPERATORS=["==","===","!=","!=="],i=Ae.COMPARISON_BINARY_OPERATORS=[...r,"in","instanceof"],n=Ae.BOOLEAN_BINARY_OPERATORS=[...i,...t],a=Ae.NUMBER_BINARY_OPERATORS=["-","/","%","*","**","&","|",">>",">>>","<<","^"];Ae.BINARY_OPERATORS=["+",...a,...n,"|>"],Ae.ASSIGNMENT_OPERATORS=["=","+=",...a.map((e=>e+"=")),...e.map((e=>e+"="))];var s=Ae.BOOLEAN_UNARY_OPERATORS=["delete","!"],o=Ae.NUMBER_UNARY_OPERATORS=["+","-","~"],l=Ae.STRING_UNARY_OPERATORS=["typeof"];return Ae.UNARY_OPERATORS=["void","throw",...s,...o,...l],Ae.INHERIT_KEYS={optional:["typeAnnotation","typeParameters","returnType"],force:["start","loc","end"]},Ae.BLOCK_SCOPED_SYMBOL=Symbol.for("var used to be block scoped"),Ae.NOT_LOCAL_BINDING=Symbol.for("should not be considered a local binding"),Ae}var we,Ie,Ne={};function ke(){if(we)return Ne;we=1,Object.defineProperty(Ne,"__esModule",{value:!0}),Ne.allExpandedTypes=Ne.VISITOR_KEYS=Ne.NODE_UNION_SHAPES__PRIVATE=Ne.NODE_PARENT_VALIDATIONS=Ne.NODE_FIELDS=Ne.FLIPPED_ALIAS_KEYS=Ne.DEPRECATED_KEYS=Ne.BUILDER_KEYS=Ne.ALIAS_KEYS=void 0,Ne.arrayOf=h,Ne.arrayOfType=d,Ne.assertEach=f,Ne.assertNodeOrValueType=function(){for(var r=arguments.length,i=new Array(r),n=0;n<r;n++)i[n]=arguments[n];function a(r,n,a){var s=c(a);for(var o of i)if(s===o||(0,e.default)(o,a))return void(0,t.validateChild)(r,n,a);throw new TypeError("Property ".concat(n," of ").concat(r.type," expected node to be of a type ").concat(JSON.stringify(i)," but instead got ").concat(JSON.stringify(null==a?void 0:a.type)))}return a.oneOfNodeOrValueTypes=i,a},Ne.assertNodeType=y,Ne.assertOneOf=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];function i(e,r,i){if(!t.includes(i))throw new TypeError("Property ".concat(r," expected value to be one of ").concat(JSON.stringify(t)," but got ").concat(JSON.stringify(i)))}return i.oneOf=t,i},Ne.assertOptionalChainStart=function(){return function(e){for(var t,r=e;e;){var{type:i}=r;if("OptionalCallExpression"!==i){if("OptionalMemberExpression"!==i)break;if(r.optional)return;r=r.object}else{if(r.optional)return;r=r.callee}}throw new TypeError("Non-optional ".concat(e.type," must chain from an optional OptionalMemberExpression or OptionalCallExpression. Found chain from ").concat(null==(t=r)?void 0:t.type))}},Ne.assertShape=function(e){var r=Object.keys(e);function i(i,n,a){var s=[];for(var o of r)try{(0,t.validateField)(i,o,a[o],e[o])}catch(e){if(e instanceof TypeError){s.push(e.message);continue}throw e}if(s.length)throw new TypeError("Property ".concat(n," of ").concat(i.type," expected to have the following:\n").concat(s.join("\n")))}return i.shapeOf=e,i},Ne.assertValueType=v,Ne.chain=T,Ne.default=b,Ne.defineAliasedType=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=i.aliases;n||(i.inherits&&(n=null==(r=x[i.inherits].aliases)?void 0:r.slice()),null!=n||(n=[]),i.aliases=n);var a=t.filter((e=>!n.includes(e)));n.unshift(...a),b(e,i)}},Ne.validate=u,Ne.validateArrayOfType=function(){return u(d(...arguments))},Ne.validateOptional=function(e){return{validate:e,optional:!0}},Ne.validateOptionalType=function(){return{validate:y(...arguments),optional:!0}},Ne.validateType=function(){return u(y(...arguments))};var e=ue(),t=Qe(),r=Ne.VISITOR_KEYS={},i=Ne.ALIAS_KEYS={},n=Ne.FLIPPED_ALIAS_KEYS={},a=Ne.NODE_FIELDS={},s=Ne.BUILDER_KEYS={},o=Ne.DEPRECATED_KEYS={},l=Ne.NODE_PARENT_VALIDATIONS={},p=Ne.NODE_UNION_SHAPES__PRIVATE={};function c(e){return Array.isArray(e)?"array":null===e?"null":typeof e}function u(e){return{validate:e}}function h(e){return T(v("array"),f(e))}function d(){return h(y(...arguments))}function f(e){var r=A.env.BABEL_TYPES_8_BREAKING?t.validateChild:()=>{};function i(t,i,n){if(Array.isArray(n))for(var a=0,s={toString:()=>"".concat(i,"[").concat(a,"]")};a<n.length;a++){var o=n[a];e(t,s,o),r(t,s,o)}}return i.each=e,i}var m=Ne.allExpandedTypes=[];function y(){for(var r=arguments.length,i=new Array(r),n=0;n<r;n++)i[n]=arguments[n];var a=new Set;function s(r,n,s){var o=null==s?void 0:s.type;if(null!=o){if(a.has(o))return void(0,t.validateChild)(r,n,s);if("Placeholder"===o)for(var l of i)if((0,e.default)(l,s))return void(0,t.validateChild)(r,n,s)}throw new TypeError("Property ".concat(n," of ").concat(r.type," expected node to be of a type ").concat(JSON.stringify(i)," but instead got ").concat(JSON.stringify(o)))}return m.push({types:i,set:a}),s.oneOfNodeTypes=i,s}function v(e){function t(t,r,i){if(c(i)!==e)throw new TypeError("Property ".concat(r," expected type of ").concat(e," but got ").concat(c(i)))}return t.type=e,t}function T(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];function i(){for(var e of t)e(...arguments)}if(i.chainOf=t,t.length>=2&&"type"in t[0]&&"array"===t[0].type&&!("each"in t[1]))throw new Error('An assertValueType("array") validator can only be followed by an assertEach(...) validator.');return i}var g=new Set(["aliases","builder","deprecatedAlias","fields","inherits","visitor","validate","unionShape"]),S=new Set(["default","optional","deprecated","validate"]),x={};function b(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},u=t.inherits&&x[t.inherits]||{},h=t.fields;if(!h&&(h={},u.fields)){var d=Object.getOwnPropertyNames(u.fields);for(var f of d){var m=u.fields[f],y=m.default;if(Array.isArray(y)?y.length>0:y&&"object"==typeof y)throw new Error("field defaults can only be primitives or empty arrays currently");h[f]={default:Array.isArray(y)?[]:y,optional:m.optional,deprecated:m.deprecated,validate:m.validate}}}var T=t.visitor||u.visitor||[],b=t.aliases||u.aliases||[],P=t.builder||u.builder||t.visitor||[];for(var E of Object.keys(t))if(!g.has(E))throw new Error('Unknown type option "'.concat(E,'" on ').concat(e));for(var A of(t.deprecatedAlias&&(o[t.deprecatedAlias]=e),T.concat(P)))h[A]=h[A]||{};for(var C of Object.keys(h)){var w=h[C];for(var I of(void 0===w.default||P.includes(C)||(w.optional=!0),void 0===w.default?w.default=null:w.validate||null==w.default||(w.validate=v(c(w.default))),Object.keys(w)))if(!S.has(I))throw new Error('Unknown field key "'.concat(I,'" on ').concat(e,".").concat(C))}r[e]=t.visitor=T,s[e]=t.builder=P,a[e]=t.fields=h,i[e]=t.aliases=b,b.forEach((t=>{n[t]=n[t]||[],n[t].push(e)})),t.validate&&(l[e]=t.validate),t.unionShape&&(p[e]=t.unionShape),x[e]=t}return Ne}function Oe(){if(Ie)return ie;Ie=1,Object.defineProperty(ie,"__esModule",{value:!0}),ie.patternLikeCommon=ie.importAttributes=ie.functionTypeAnnotationCommon=ie.functionDeclarationCommon=ie.functionCommon=ie.classMethodOrPropertyUnionShapeCommon=ie.classMethodOrPropertyCommon=ie.classMethodOrDeclareMethodCommon=void 0;var e=ue(),t=xe(),r=Se(),i=function(){if(be)return Pe;be=1,Object.defineProperty(Pe,"__esModule",{value:!0}),Pe.readCodePoint=o,Pe.readInt=s,Pe.readStringContents=function(e,t,r,a,s,o){for(var l=r,p=a,c=s,u="",h=null,d=r,{length:f}=t;;){if(r>=f){o.unterminated(l,p,c),u+=t.slice(d,r);break}var m=t.charCodeAt(r);if(i(e,m,t,r)){u+=t.slice(d,r);break}if(92===m){u+=t.slice(d,r);var y=n(t,r,a,s,"template"===e,o);null!==y.ch||h?u+=y.ch:h={pos:r,lineStart:a,curLine:s},({pos:r,lineStart:a,curLine:s}=y),d=r}else 8232===m||8233===m?(++s,a=++r):10===m||13===m?"template"===e?(u+=t.slice(d,r)+"\n",++r,13===m&&10===t.charCodeAt(r)&&++r,++s,d=a=r):o.unterminated(l,p,c):++r}return{pos:r,str:u,firstInvalidLoc:h,lineStart:a,curLine:s,containsInvalid:!!h}};var e=function(e){return e>=48&&e<=57},t={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},r={bin:e=>48===e||49===e,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 i(e,t,r,i){return"template"===e?96===t||36===t&&123===r.charCodeAt(i+1):t===("double"===e?34:39)}function n(e,t,r,i,n,s){var l=!n;t++;var p=e=>({pos:t,ch:e,lineStart:r,curLine:i}),c=e.charCodeAt(t++);switch(c){case 110:return p("\n");case 114:return p("\r");case 120:var u;return({code:u,pos:t}=a(e,t,r,i,2,!1,l,s)),p(null===u?null:String.fromCharCode(u));case 117:var h;return({code:h,pos:t}=o(e,t,r,i,l,s)),p(null===h?null:String.fromCodePoint(h));case 116:return p("\t");case 98:return p("\b");case 118:return p("\v");case 102:return p("\f");case 13:10===e.charCodeAt(t)&&++t;case 10:r=t,++i;case 8232:case 8233:return p("");case 56:case 57:if(n)return p(null);s.strictNumericEscape(t-1,r,i);default:if(c>=48&&c<=55){var d=t-1,f=/^[0-7]+/.exec(e.slice(d,t+2))[0],m=parseInt(f,8);m>255&&(f=f.slice(0,-1),m=parseInt(f,8)),t+=f.length-1;var y=e.charCodeAt(t);if("0"!==f||56===y||57===y){if(n)return p(null);s.strictNumericEscape(d,r,i)}return p(String.fromCharCode(m))}return p(String.fromCharCode(c))}}function a(e,t,r,i,n,a,o,l){var p,c=t;return({n:p,pos:t}=s(e,t,r,i,16,n,a,!1,l,!o)),null===p&&(o?l.invalidEscapeSequence(c,r,i):t=c-1),{code:p,pos:t}}function s(i,n,a,s,o,l,p,c,u,h){for(var d=n,f=16===o?t.hex:t.decBinOct,m=16===o?r.hex:10===o?r.dec:8===o?r.oct:r.bin,y=!1,v=0,T=0,g=null==l?1/0:l;T<g;++T){var S=i.charCodeAt(n),x=void 0;if(95!==S||"bail"===c){if((x=S>=97?S-97+10:S>=65?S-65+10:e(S)?S-48:1/0)>=o){if(x<=9&&h)return{n:null,pos:n};if(x<=9&&u.invalidDigit(n,a,s,o))x=0;else{if(!p)break;x=0,y=!0}}++n,v=v*o+x}else{var b=i.charCodeAt(n-1),P=i.charCodeAt(n+1);if(c){if(Number.isNaN(P)||!m(P)||f.has(b)||f.has(P)){if(h)return{n:null,pos:n};u.unexpectedNumericSeparator(n,a,s)}}else{if(h)return{n:null,pos:n};u.numericSeparatorInEscapeSequence(n,a,s)}++n}}return n===d||null!=l&&n-d!==l||y?{n:null,pos:n}:{n:v,pos:n}}function o(e,t,r,i,n,s){var o;if(123===e.charCodeAt(t)){if(++t,({code:o,pos:t}=a(e,t,r,i,e.indexOf("}",t)-t,!0,n,s)),++t,null!==o&&o>1114111){if(!n)return{code:null,pos:t};s.invalidCodePoint(t,r,i)}}else({code:o,pos:t}=a(e,t,r,i,4,!1,n,s));return{code:o,pos:t}}return Pe}(),n=Ce(),a=ke(),s=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return{unionShape:{discriminator:"computed",shapes:[{name:"computed",value:[!0],properties:{key:{validate:(0,a.assertNodeType)("Expression")}}},{name:"nonComputed",value:[!1],properties:{key:{validate:e?(0,a.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","PrivateName"):(0,a.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral")}}}]}}};ie.classMethodOrPropertyUnionShapeCommon=s;var o,l,p,c=(0,a.defineAliasedType)("Standardized");c("ArrayExpression",{fields:{elements:{validate:(0,a.arrayOf)((0,a.assertNodeOrValueType)("null","Expression","SpreadElement")),default:A.env.BABEL_TYPES_8_BREAKING?void 0:[]}},visitor:["elements"],aliases:["Expression"]}),c("AssignmentExpression",{fields:{operator:{validate:A.env.BABEL_TYPES_8_BREAKING?Object.assign(function(){var t=(0,a.assertOneOf)(...n.ASSIGNMENT_OPERATORS),r=(0,a.assertOneOf)("=");return function(i,n,a){((0,e.default)("Pattern",i.left)?r:t)(i,n,a)}}(),{oneOf:n.ASSIGNMENT_OPERATORS}):(0,a.assertValueType)("string")},left:{validate:A.env.BABEL_TYPES_8_BREAKING?(0,a.assertNodeType)("Identifier","MemberExpression","OptionalMemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"):(0,a.assertNodeType)("LVal","OptionalMemberExpression")},right:{validate:(0,a.assertNodeType)("Expression")}},builder:["operator","left","right"],visitor:["left","right"],aliases:["Expression"]}),c("BinaryExpression",{builder:["operator","left","right"],fields:{operator:{validate:(0,a.assertOneOf)(...n.BINARY_OPERATORS)},left:{validate:(o=(0,a.assertNodeType)("Expression"),l=(0,a.assertNodeType)("Expression","PrivateName"),p=Object.assign((function(e,t,r){("in"===e.operator?l:o)(e,t,r)}),{oneOfNodeTypes:["Expression","PrivateName"]}),p)},right:{validate:(0,a.assertNodeType)("Expression")}},visitor:["left","right"],aliases:["Binary","Expression"]}),c("InterpreterDirective",{builder:["value"],fields:{value:{validate:(0,a.assertValueType)("string")}}}),c("Directive",{visitor:["value"],fields:{value:{validate:(0,a.assertNodeType)("DirectiveLiteral")}}}),c("DirectiveLiteral",{builder:["value"],fields:{value:{validate:(0,a.assertValueType)("string")}}}),c("BlockStatement",{builder:["body","directives"],visitor:["directives","body"],fields:{directives:{validate:(0,a.arrayOfType)("Directive"),default:[]},body:(0,a.validateArrayOfType)("Statement")},aliases:["Scopable","BlockParent","Block","Statement"]}),c("BreakStatement",{visitor:["label"],fields:{label:{validate:(0,a.assertNodeType)("Identifier"),optional:!0}},aliases:["Statement","Terminatorless","CompletionStatement"]}),c("CallExpression",{visitor:["callee","typeParameters","typeArguments","arguments"],builder:["callee","arguments"],aliases:["Expression"],fields:Object.assign({callee:{validate:(0,a.assertNodeType)("Expression","Super","V8IntrinsicIdentifier")},arguments:(0,a.validateArrayOfType)("Expression","SpreadElement","ArgumentPlaceholder"),typeArguments:{validate:(0,a.assertNodeType)("TypeParameterInstantiation"),optional:!0}},A.env.BABEL_TYPES_8_BREAKING?{}:{optional:{validate:(0,a.assertValueType)("boolean"),optional:!0},typeParameters:{validate:(0,a.assertNodeType)("TSTypeParameterInstantiation"),optional:!0}})}),c("CatchClause",{visitor:["param","body"],fields:{param:{validate:(0,a.assertNodeType)("Identifier","ArrayPattern","ObjectPattern"),optional:!0},body:{validate:(0,a.assertNodeType)("BlockStatement")}},aliases:["Scopable","BlockParent"]}),c("ConditionalExpression",{visitor:["test","consequent","alternate"],fields:{test:{validate:(0,a.assertNodeType)("Expression")},consequent:{validate:(0,a.assertNodeType)("Expression")},alternate:{validate:(0,a.assertNodeType)("Expression")}},aliases:["Expression","Conditional"]}),c("ContinueStatement",{visitor:["label"],fields:{label:{validate:(0,a.assertNodeType)("Identifier"),optional:!0}},aliases:["Statement","Terminatorless","CompletionStatement"]}),c("DebuggerStatement",{aliases:["Statement"]}),c("DoWhileStatement",{builder:["test","body"],visitor:["body","test"],fields:{test:{validate:(0,a.assertNodeType)("Expression")},body:{validate:(0,a.assertNodeType)("Statement")}},aliases:["Statement","BlockParent","Loop","While","Scopable"]}),c("EmptyStatement",{aliases:["Statement"]}),c("ExpressionStatement",{visitor:["expression"],fields:{expression:{validate:(0,a.assertNodeType)("Expression")}},aliases:["Statement","ExpressionWrapper"]}),c("File",{builder:["program","comments","tokens"],visitor:["program"],fields:{program:{validate:(0,a.assertNodeType)("Program")},comments:{validate:A.env.BABEL_TYPES_8_BREAKING?(0,a.assertEach)((0,a.assertNodeType)("CommentBlock","CommentLine")):Object.assign((()=>{}),{each:{oneOfNodeTypes:["CommentBlock","CommentLine"]}}),optional:!0},tokens:{validate:(0,a.assertEach)(Object.assign((()=>{}),{type:"any"})),optional:!0}}}),c("ForInStatement",{visitor:["left","right","body"],aliases:["Scopable","Statement","For","BlockParent","Loop","ForXStatement"],fields:{left:{validate:A.env.BABEL_TYPES_8_BREAKING?(0,a.assertNodeType)("VariableDeclaration","Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"):(0,a.assertNodeType)("VariableDeclaration","LVal")},right:{validate:(0,a.assertNodeType)("Expression")},body:{validate:(0,a.assertNodeType)("Statement")}}}),c("ForStatement",{visitor:["init","test","update","body"],aliases:["Scopable","Statement","For","BlockParent","Loop"],fields:{init:{validate:(0,a.assertNodeType)("VariableDeclaration","Expression"),optional:!0},test:{validate:(0,a.assertNodeType)("Expression"),optional:!0},update:{validate:(0,a.assertNodeType)("Expression"),optional:!0},body:{validate:(0,a.assertNodeType)("Statement")}}});var u=()=>({params:(0,a.validateArrayOfType)("FunctionParameter"),generator:{default:!1},async:{default:!1}});ie.functionCommon=u;var h=()=>({returnType:{validate:(0,a.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},typeParameters:{validate:(0,a.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0}});ie.functionTypeAnnotationCommon=h;var d=()=>Object.assign({},u(),{declare:{validate:(0,a.assertValueType)("boolean"),optional:!0},id:{validate:(0,a.assertNodeType)("Identifier"),optional:!0}});ie.functionDeclarationCommon=d,c("FunctionDeclaration",{builder:["id","params","body","generator","async"],visitor:["id","typeParameters","params","predicate","returnType","body"],fields:Object.assign({},d(),h(),{body:{validate:(0,a.assertNodeType)("BlockStatement")},predicate:{validate:(0,a.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:!0}}),aliases:["Scopable","Function","BlockParent","FunctionParent","Statement","Pureish","Declaration"],validate:A.env.BABEL_TYPES_8_BREAKING?function(){var t=(0,a.assertNodeType)("Identifier");return function(r,i,n){(0,e.default)("ExportDefaultDeclaration",r)||t(n,"id",n.id)}}():void 0}),c("FunctionExpression",{inherits:"FunctionDeclaration",aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:Object.assign({},u(),h(),{id:{validate:(0,a.assertNodeType)("Identifier"),optional:!0},body:{validate:(0,a.assertNodeType)("BlockStatement")},predicate:{validate:(0,a.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:!0}})});var f,m,y,v=()=>({typeAnnotation:{validate:(0,a.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},optional:{validate:(0,a.assertValueType)("boolean"),optional:!0},decorators:{validate:(0,a.arrayOfType)("Decorator"),optional:!0}});ie.patternLikeCommon=v,c("Identifier",{builder:["name"],visitor:["typeAnnotation","decorators"],aliases:["Expression","FunctionParameter","PatternLike","LVal","TSEntityName"],fields:Object.assign({},v(),{name:{validate:A.env.BABEL_TYPES_8_BREAKING?(0,a.chain)((0,a.assertValueType)("string"),Object.assign((function(e,r,i){if(!(0,t.default)(i,!1))throw new TypeError('"'.concat(i,'" is not a valid identifier name'))}),{type:"string"})):(0,a.assertValueType)("string")}}),validate:A.env.BABEL_TYPES_8_BREAKING?function(t,i,n){var a=/\.(\w+)$/.exec(i.toString());if(a){var[,s]=a,o={computed:!1};if("property"===s){if((0,e.default)("MemberExpression",t,o))return;if((0,e.default)("OptionalMemberExpression",t,o))return}else if("key"===s){if((0,e.default)("Property",t,o))return;if((0,e.default)("Method",t,o))return}else if("exported"===s){if((0,e.default)("ExportSpecifier",t))return}else if("imported"===s){if((0,e.default)("ImportSpecifier",t,{imported:n}))return}else if("meta"===s&&(0,e.default)("MetaProperty",t,{meta:n}))return;if(((0,r.isKeyword)(n.name)||(0,r.isReservedWord)(n.name,!1))&&"this"!==n.name)throw new TypeError('"'.concat(n.name,'" is not a valid identifier'))}}:void 0}),c("IfStatement",{visitor:["test","consequent","alternate"],aliases:["Statement","Conditional"],fields:{test:{validate:(0,a.assertNodeType)("Expression")},consequent:{validate:(0,a.assertNodeType)("Statement")},alternate:{optional:!0,validate:(0,a.assertNodeType)("Statement")}}}),c("LabeledStatement",{visitor:["label","body"],aliases:["Statement"],fields:{label:{validate:(0,a.assertNodeType)("Identifier")},body:{validate:(0,a.assertNodeType)("Statement")}}}),c("StringLiteral",{builder:["value"],fields:{value:{validate:(0,a.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]}),c("NumericLiteral",{builder:["value"],deprecatedAlias:"NumberLiteral",fields:{value:{validate:(0,a.chain)((0,a.assertValueType)("number"),Object.assign((function(e,t,r){}),{type:"number"}))}},aliases:["Expression","Pureish","Literal","Immutable"]}),c("NullLiteral",{aliases:["Expression","Pureish","Literal","Immutable"]}),c("BooleanLiteral",{builder:["value"],fields:{value:{validate:(0,a.assertValueType)("boolean")}},aliases:["Expression","Pureish","Literal","Immutable"]}),c("RegExpLiteral",{builder:["pattern","flags"],deprecatedAlias:"RegexLiteral",aliases:["Expression","Pureish","Literal"],fields:{pattern:{validate:(0,a.assertValueType)("string")},flags:{validate:A.env.BABEL_TYPES_8_BREAKING?(0,a.chain)((0,a.assertValueType)("string"),Object.assign((function(e,t,r){var i=/[^dgimsuvy]/.exec(r);if(i)throw new TypeError('"'.concat(i[0],'" is not a valid RegExp flag'))}),{type:"string"})):(0,a.assertValueType)("string"),default:""}}}),c("LogicalExpression",{builder:["operator","left","right"],visitor:["left","right"],aliases:["Binary","Expression"],fields:{operator:{validate:(0,a.assertOneOf)(...n.LOGICAL_OPERATORS)},left:{validate:(0,a.assertNodeType)("Expression")},right:{validate:(0,a.assertNodeType)("Expression")}}}),c("MemberExpression",{builder:["object","property","computed",...A.env.BABEL_TYPES_8_BREAKING?[]:["optional"]],visitor:["object","property"],aliases:["Expression","LVal","PatternLike"],unionShape:{discriminator:"computed",shapes:[{name:"computed",value:[!0],properties:{property:{validate:(0,a.assertNodeType)("Expression")}}},{name:"nonComputed",value:[!1],properties:{property:{validate:(0,a.assertNodeType)("Identifier","PrivateName")}}}]},fields:Object.assign({object:{validate:(0,a.assertNodeType)("Expression","Super")},property:{validate:function(){var e=(0,a.assertNodeType)("Identifier","PrivateName"),t=(0,a.assertNodeType)("Expression"),r=function(r,i,n){var a=r.computed?t:e;a(r,i,n)};return r.oneOfNodeTypes=["Expression","Identifier","PrivateName"],r}()},computed:{default:!1}},A.env.BABEL_TYPES_8_BREAKING?{}:{optional:{validate:(0,a.assertValueType)("boolean"),optional:!0}})}),c("NewExpression",{inherits:"CallExpression"}),c("Program",{visitor:["directives","body"],builder:["body","directives","sourceType","interpreter"],fields:{sourceType:{validate:(0,a.assertOneOf)("script","module"),default:"script"},interpreter:{validate:(0,a.assertNodeType)("InterpreterDirective"),default:null,optional:!0},directives:{validate:(0,a.arrayOfType)("Directive"),default:[]},body:(0,a.validateArrayOfType)("Statement")},aliases:["Scopable","BlockParent","Block"]}),c("ObjectExpression",{visitor:["properties"],aliases:["Expression"],fields:{properties:(0,a.validateArrayOfType)("ObjectMethod","ObjectProperty","SpreadElement")}}),c("ObjectMethod",Object.assign({builder:["kind","key","params","body","computed","generator","async"],visitor:["decorators","key","typeParameters","params","returnType","body"]},s(),{fields:Object.assign({},u(),h(),{kind:Object.assign({validate:(0,a.assertOneOf)("method","get","set")},A.env.BABEL_TYPES_8_BREAKING?{}:{default:"method"}),computed:{default:!1},key:{validate:function(){var e=(0,a.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral"),t=(0,a.assertNodeType)("Expression"),r=function(r,i,n){var a=r.computed?t:e;a(r,i,n)};return r.oneOfNodeTypes=["Expression","Identifier","StringLiteral","NumericLiteral","BigIntLiteral"],r}()},decorators:{validate:(0,a.arrayOfType)("Decorator"),optional:!0},body:{validate:(0,a.assertNodeType)("BlockStatement")}}),aliases:["UserWhitespacable","Function","Scopable","BlockParent","FunctionParent","Method","ObjectMember"]})),c("ObjectProperty",{builder:["key","value","computed","shorthand",...A.env.BABEL_TYPES_8_BREAKING?[]:["decorators"]],unionShape:{discriminator:"computed",shapes:[{name:"computed",value:[!0],properties:{key:{validate:(0,a.assertNodeType)("Expression")}}},{name:"nonComputed",value:[!1],properties:{key:{validate:(0,a.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","DecimalLiteral","PrivateName")}}}]},fields:{computed:{default:!1},key:{validate:function(){var e=(0,a.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","DecimalLiteral","PrivateName"),t=(0,a.assertNodeType)("Expression"),r=Object.assign((function(r,i,n){(r.computed?t:e)(r,i,n)}),{oneOfNodeTypes:["Expression","Identifier","StringLiteral","NumericLiteral","BigIntLiteral","DecimalLiteral","PrivateName"]});return r}()},value:{validate:(0,a.assertNodeType)("Expression","PatternLike")},shorthand:{validate:A.env.BABEL_TYPES_8_BREAKING?(0,a.chain)((0,a.assertValueType)("boolean"),Object.assign((function(t,r,i){if(i){if(t.computed)throw new TypeError("Property shorthand of ObjectProperty cannot be true if computed is true");if(!(0,e.default)("Identifier",t.key))throw new TypeError("Property shorthand of ObjectProperty cannot be true if key is not an Identifier")}}),{type:"boolean"})):(0,a.assertValueType)("boolean"),default:!1},decorators:{validate:(0,a.arrayOfType)("Decorator"),optional:!0}},visitor:["decorators","key","value"],aliases:["UserWhitespacable","Property","ObjectMember"],validate:A.env.BABEL_TYPES_8_BREAKING?function(){var t=(0,a.assertNodeType)("Identifier","Pattern","TSAsExpression","TSSatisfiesExpression","TSNonNullExpression","TSTypeAssertion"),r=(0,a.assertNodeType)("Expression");return function(i,n,a){((0,e.default)("ObjectPattern",i)?t:r)(a,"value",a.value)}}():void 0}),c("RestElement",{visitor:["argument","typeAnnotation"],builder:["argument"],aliases:["FunctionParameter","PatternLike","LVal"],deprecatedAlias:"RestProperty",fields:Object.assign({},v(),{argument:{validate:A.env.BABEL_TYPES_8_BREAKING?(0,a.assertNodeType)("Identifier","ArrayPattern","ObjectPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"):(0,a.assertNodeType)("Identifier","ArrayPattern","ObjectPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression","RestElement","AssignmentPattern")}}),validate:A.env.BABEL_TYPES_8_BREAKING?function(e,t){var r=/(\w+)\[(\d+)\]/.exec(t.toString());if(!r)throw new Error("Internal Babel error: malformed key.");var[,i,n]=r;if(e[i].length>+n+1)throw new TypeError("RestElement must be last element of ".concat(i))}:void 0}),c("ReturnStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:(0,a.assertNodeType)("Expression"),optional:!0}}}),c("SequenceExpression",{visitor:["expressions"],fields:{expressions:(0,a.validateArrayOfType)("Expression")},aliases:["Expression"]}),c("ParenthesizedExpression",{visitor:["expression"],aliases:["Expression","ExpressionWrapper"],fields:{expression:{validate:(0,a.assertNodeType)("Expression")}}}),c("SwitchCase",{visitor:["test","consequent"],fields:{test:{validate:(0,a.assertNodeType)("Expression"),optional:!0},consequent:(0,a.validateArrayOfType)("Statement")}}),c("SwitchStatement",{visitor:["discriminant","cases"],aliases:["Statement","BlockParent","Scopable"],fields:{discriminant:{validate:(0,a.assertNodeType)("Expression")},cases:(0,a.validateArrayOfType)("SwitchCase")}}),c("ThisExpression",{aliases:["Expression"]}),c("ThrowStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:(0,a.assertNodeType)("Expression")}}}),c("TryStatement",{visitor:["block","handler","finalizer"],aliases:["Statement"],fields:{block:{validate:A.env.BABEL_TYPES_8_BREAKING?(0,a.chain)((0,a.assertNodeType)("BlockStatement"),Object.assign((function(e){if(!e.handler&&!e.finalizer)throw new TypeError("TryStatement expects either a handler or finalizer, or both")}),{oneOfNodeTypes:["BlockStatement"]})):(0,a.assertNodeType)("BlockStatement")},handler:{optional:!0,validate:(0,a.assertNodeType)("CatchClause")},finalizer:{optional:!0,validate:(0,a.assertNodeType)("BlockStatement")}}}),c("UnaryExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!0},argument:{validate:(0,a.assertNodeType)("Expression")},operator:{validate:(0,a.assertOneOf)(...n.UNARY_OPERATORS)}},visitor:["argument"],aliases:["UnaryLike","Expression"]}),c("UpdateExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!1},argument:{validate:A.env.BABEL_TYPES_8_BREAKING?(0,a.assertNodeType)("Identifier","MemberExpression"):(0,a.assertNodeType)("Expression")},operator:{validate:(0,a.assertOneOf)(...n.UPDATE_OPERATORS)}},visitor:["argument"],aliases:["Expression"]}),c("VariableDeclaration",{builder:["kind","declarations"],visitor:["declarations"],aliases:["Statement","Declaration"],fields:{declare:{validate:(0,a.assertValueType)("boolean"),optional:!0},kind:{validate:(0,a.assertOneOf)("var","let","const","using","await using")},declarations:(0,a.validateArrayOfType)("VariableDeclarator")},validate:A.env.BABEL_TYPES_8_BREAKING?(f=(0,a.assertNodeType)("Identifier","Placeholder"),m=(0,a.assertNodeType)("Identifier","ArrayPattern","ObjectPattern","Placeholder"),y=(0,a.assertNodeType)("Identifier","VoidPattern","Placeholder"),function(t,r,i){var{kind:n,declarations:a}=i,s=(0,e.default)("ForXStatement",t,{left:i});if(s&&1!==a.length)throw new TypeError("Exactly one VariableDeclarator is required in the VariableDeclaration of a ".concat(t.type));for(var o of a)"const"===n||"let"===n||"var"===n?s||o.init?m(o,"id",o.id):f(o,"id",o.id):y(o,"id",o.id)}):void 0}),c("VariableDeclarator",{visitor:["id","init"],fields:{id:{validate:A.env.BABEL_TYPES_8_BREAKING?(0,a.assertNodeType)("Identifier","ArrayPattern","ObjectPattern","VoidPattern"):(0,a.assertNodeType)("LVal","VoidPattern")},definite:{optional:!0,validate:(0,a.assertValueType)("boolean")},init:{optional:!0,validate:(0,a.assertNodeType)("Expression")}}}),c("WhileStatement",{visitor:["test","body"],aliases:["Statement","BlockParent","Loop","While","Scopable"],fields:{test:{validate:(0,a.assertNodeType)("Expression")},body:{validate:(0,a.assertNodeType)("Statement")}}}),c("WithStatement",{visitor:["object","body"],aliases:["Statement"],fields:{object:{validate:(0,a.assertNodeType)("Expression")},body:{validate:(0,a.assertNodeType)("Statement")}}}),c("AssignmentPattern",{visitor:["left","right","decorators"],builder:["left","right"],aliases:["FunctionParameter","Pattern","PatternLike","LVal"],fields:Object.assign({},v(),{left:{validate:(0,a.assertNodeType)("Identifier","ObjectPattern","ArrayPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression")},right:{validate:(0,a.assertNodeType)("Expression")},decorators:{validate:(0,a.arrayOfType)("Decorator"),optional:!0}})}),c("ArrayPattern",{visitor:["elements","typeAnnotation"],builder:["elements"],aliases:["FunctionParameter","Pattern","PatternLike","LVal"],fields:Object.assign({},v(),{elements:{validate:(0,a.chain)((0,a.assertValueType)("array"),(0,a.assertEach)((0,a.assertNodeOrValueType)("null","PatternLike")))}})}),c("ArrowFunctionExpression",{builder:["params","body","async"],visitor:["typeParameters","params","predicate","returnType","body"],aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:Object.assign({},u(),h(),{expression:{validate:(0,a.assertValueType)("boolean")},body:{validate:(0,a.assertNodeType)("BlockStatement","Expression")},predicate:{validate:(0,a.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:!0}})}),c("ClassBody",{visitor:["body"],fields:{body:(0,a.validateArrayOfType)("ClassMethod","ClassPrivateMethod","ClassProperty","ClassPrivateProperty","ClassAccessorProperty","TSDeclareMethod","TSIndexSignature","StaticBlock")}}),c("ClassExpression",{builder:["id","superClass","body","decorators"],visitor:["decorators","id","typeParameters","superClass","superTypeParameters","mixins","implements","body"],aliases:["Scopable","Class","Expression"],fields:{id:{validate:(0,a.assertNodeType)("Identifier"),optional:!0},typeParameters:{validate:(0,a.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0},body:{validate:(0,a.assertNodeType)("ClassBody")},superClass:{optional:!0,validate:(0,a.assertNodeType)("Expression")},superTypeParameters:{validate:(0,a.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0},implements:{validate:(0,a.arrayOfType)("TSExpressionWithTypeArguments","ClassImplements"),optional:!0},decorators:{validate:(0,a.arrayOfType)("Decorator"),optional:!0},mixins:{validate:(0,a.assertNodeType)("InterfaceExtends"),optional:!0}}}),c("ClassDeclaration",{inherits:"ClassExpression",aliases:["Scopable","Class","Statement","Declaration"],fields:{id:{validate:(0,a.assertNodeType)("Identifier"),optional:!0},typeParameters:{validate:(0,a.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0},body:{validate:(0,a.assertNodeType)("ClassBody")},superClass:{optional:!0,validate:(0,a.assertNodeType)("Expression")},superTypeParameters:{validate:(0,a.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0},implements:{validate:(0,a.arrayOfType)("TSExpressionWithTypeArguments","ClassImplements"),optional:!0},decorators:{validate:(0,a.arrayOfType)("Decorator"),optional:!0},mixins:{validate:(0,a.assertNodeType)("InterfaceExtends"),optional:!0},declare:{validate:(0,a.assertValueType)("boolean"),optional:!0},abstract:{validate:(0,a.assertValueType)("boolean"),optional:!0}},validate:A.env.BABEL_TYPES_8_BREAKING?function(){var t=(0,a.assertNodeType)("Identifier");return function(r,i,n){(0,e.default)("ExportDefaultDeclaration",r)||t(n,"id",n.id)}}():void 0});var T,g,S=ie.importAttributes={attributes:{optional:!0,validate:(0,a.arrayOfType)("ImportAttribute")},assertions:{deprecated:!0,optional:!0,validate:(0,a.arrayOfType)("ImportAttribute")}};c("ExportAllDeclaration",{builder:["source"],visitor:["source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:Object.assign({source:{validate:(0,a.assertNodeType)("StringLiteral")},exportKind:(0,a.validateOptional)((0,a.assertOneOf)("type","value"))},S)}),c("ExportDefaultDeclaration",{visitor:["declaration"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:{declaration:(0,a.validateType)("TSDeclareFunction","FunctionDeclaration","ClassDeclaration","Expression"),exportKind:(0,a.validateOptional)((0,a.assertOneOf)("value"))}}),c("ExportNamedDeclaration",{builder:["declaration","specifiers","source"],visitor:["declaration","specifiers","source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:Object.assign({declaration:{optional:!0,validate:A.env.BABEL_TYPES_8_BREAKING?(0,a.chain)((0,a.assertNodeType)("Declaration"),Object.assign((function(e,t,r){if(r&&e.specifiers.length)throw new TypeError("Only declaration or specifiers is allowed on ExportNamedDeclaration");if(r&&e.source)throw new TypeError("Cannot export a declaration from a source")}),{oneOfNodeTypes:["Declaration"]})):(0,a.assertNodeType)("Declaration")}},S,{specifiers:{default:[],validate:(0,a.arrayOf)((T=(0,a.assertNodeType)("ExportSpecifier","ExportDefaultSpecifier","ExportNamespaceSpecifier"),g=(0,a.assertNodeType)("ExportSpecifier"),A.env.BABEL_TYPES_8_BREAKING?Object.assign((function(e,t,r){(e.source?T:g)(e,t,r)}),{oneOfNodeTypes:["ExportSpecifier","ExportDefaultSpecifier","ExportNamespaceSpecifier"]}):T))},source:{validate:(0,a.assertNodeType)("StringLiteral"),optional:!0},exportKind:(0,a.validateOptional)((0,a.assertOneOf)("type","value"))})}),c("ExportSpecifier",{visitor:["local","exported"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,a.assertNodeType)("Identifier")},exported:{validate:(0,a.assertNodeType)("Identifier","StringLiteral")},exportKind:{validate:(0,a.assertOneOf)("type","value"),optional:!0}}}),c("ForOfStatement",{visitor:["left","right","body"],builder:["left","right","body","await"],aliases:["Scopable","Statement","For","BlockParent","Loop","ForXStatement"],fields:{left:{validate:function(){if(!A.env.BABEL_TYPES_8_BREAKING)return(0,a.assertNodeType)("VariableDeclaration","LVal");var t=(0,a.assertNodeType)("VariableDeclaration"),r=(0,a.assertNodeType)("Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression");return Object.assign((function(i,n,a){(0,e.default)("VariableDeclaration",a)?t(i,n,a):r(i,n,a)}),{oneOfNodeTypes:["VariableDeclaration","Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"]})}()},right:{validate:(0,a.assertNodeType)("Expression")},body:{validate:(0,a.assertNodeType)("Statement")},await:{default:!1}}}),c("ImportDeclaration",{builder:["specifiers","source"],visitor:["specifiers","source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration"],fields:Object.assign({},S,{module:{optional:!0,validate:(0,a.assertValueType)("boolean")},phase:{default:null,validate:(0,a.assertOneOf)("source","defer")},specifiers:(0,a.validateArrayOfType)("ImportSpecifier","ImportDefaultSpecifier","ImportNamespaceSpecifier"),source:{validate:(0,a.assertNodeType)("StringLiteral")},importKind:{validate:(0,a.assertOneOf)("type","typeof","value"),optional:!0}})}),c("ImportDefaultSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,a.assertNodeType)("Identifier")}}}),c("ImportNamespaceSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,a.assertNodeType)("Identifier")}}}),c("ImportSpecifier",{visitor:["imported","local"],builder:["local","imported"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,a.assertNodeType)("Identifier")},imported:{validate:(0,a.assertNodeType)("Identifier","StringLiteral")},importKind:{validate:(0,a.assertOneOf)("type","typeof","value"),optional:!0}}}),c("ImportExpression",{visitor:["source","options"],aliases:["Expression"],fields:{phase:{default:null,validate:(0,a.assertOneOf)("source","defer")},source:{validate:(0,a.assertNodeType)("Expression")},options:{validate:(0,a.assertNodeType)("Expression"),optional:!0}}}),c("MetaProperty",{visitor:["meta","property"],aliases:["Expression"],fields:{meta:{validate:A.env.BABEL_TYPES_8_BREAKING?(0,a.chain)((0,a.assertNodeType)("Identifier"),Object.assign((function(t,r,i){var n;switch(i.name){case"function":n="sent";break;case"new":n="target";break;case"import":n="meta"}if(!(0,e.default)("Identifier",t.property,{name:n}))throw new TypeError("Unrecognised MetaProperty")}),{oneOfNodeTypes:["Identifier"]})):(0,a.assertNodeType)("Identifier")},property:{validate:(0,a.assertNodeType)("Identifier")}}});var x=()=>{return{abstract:{validate:(0,a.assertValueType)("boolean"),optional:!0},accessibility:{validate:(0,a.assertOneOf)("public","private","protected"),optional:!0},static:{default:!1},override:{default:!1},computed:{default:!1},optional:{validate:(0,a.assertValueType)("boolean"),optional:!0},key:{validate:(0,a.chain)((e=(0,a.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral"),t=(0,a.assertNodeType)("Expression"),function(r,i,n){(r.computed?t:e)(r,i,n)}),(0,a.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","Expression"))}};var e,t};ie.classMethodOrPropertyCommon=x;var b,P,E=()=>Object.assign({},u(),x(),{params:(0,a.validateArrayOfType)("FunctionParameter","TSParameterProperty"),kind:{validate:(0,a.assertOneOf)("get","set","method","constructor"),default:"method"},access:{validate:(0,a.chain)((0,a.assertValueType)("string"),(0,a.assertOneOf)("public","private","protected")),optional:!0},decorators:{validate:(0,a.arrayOfType)("Decorator"),optional:!0}});return ie.classMethodOrDeclareMethodCommon=E,c("ClassMethod",Object.assign({aliases:["Function","Scopable","BlockParent","FunctionParent","Method"],builder:["kind","key","params","body","computed","static","generator","async"],visitor:["decorators","key","typeParameters","params","returnType","body"]},s(),{fields:Object.assign({},E(),h(),{body:{validate:(0,a.assertNodeType)("BlockStatement")}})})),c("ObjectPattern",{visitor:["decorators","properties","typeAnnotation"],builder:["properties"],aliases:["FunctionParameter","Pattern","PatternLike","LVal"],fields:Object.assign({},v(),{properties:(0,a.validateArrayOfType)("RestElement","ObjectProperty")})}),c("SpreadElement",{visitor:["argument"],aliases:["UnaryLike"],deprecatedAlias:"SpreadProperty",fields:{argument:{validate:(0,a.assertNodeType)("Expression")}}}),c("Super",{aliases:["Expression"]}),c("TaggedTemplateExpression",{visitor:["tag","typeParameters","quasi"],builder:["tag","quasi"],aliases:["Expression"],fields:{tag:{validate:(0,a.assertNodeType)("Expression")},quasi:{validate:(0,a.assertNodeType)("TemplateLiteral")},typeParameters:{validate:(0,a.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0}}}),c("TemplateElement",{builder:["value","tail"],fields:{value:{validate:(0,a.chain)((0,a.assertShape)({raw:{validate:(0,a.assertValueType)("string")},cooked:{validate:(0,a.assertValueType)("string"),optional:!0}}),(function(e){var t=e.value.raw,r=!1,n=()=>{throw new Error("Internal @babel/types error.")},{str:a,firstInvalidLoc:s}=(0,i.readStringContents)("template",t,0,0,0,{unterminated(){r=!0},strictNumericEscape:n,invalidEscapeSequence:n,numericSeparatorInEscapeSequence:n,unexpectedNumericSeparator:n,invalidDigit:n,invalidCodePoint:n});if(!r)throw new Error("Invalid raw");e.value.cooked=s?null:a}))},tail:{default:!1}}}),c("TemplateLiteral",{visitor:["quasis","expressions"],aliases:["Expression","Literal"],fields:{quasis:(0,a.validateArrayOfType)("TemplateElement"),expressions:{validate:(0,a.chain)((0,a.assertValueType)("array"),(0,a.assertEach)((0,a.assertNodeType)("Expression","TSType")),(function(e,t,r){if(e.quasis.length!==r.length+1)throw new TypeError("Number of ".concat(e.type," quasis should be exactly one more than the number of expressions.\nExpected ").concat(r.length+1," quasis but got ").concat(e.quasis.length))}))}}}),c("YieldExpression",{builder:["argument","delegate"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{delegate:{validate:A.env.BABEL_TYPES_8_BREAKING?(0,a.chain)((0,a.assertValueType)("boolean"),Object.assign((function(e,t,r){if(r&&!e.argument)throw new TypeError("Property delegate of YieldExpression cannot be true if there is no argument")}),{type:"boolean"})):(0,a.assertValueType)("boolean"),default:!1},argument:{optional:!0,validate:(0,a.assertNodeType)("Expression")}}}),c("AwaitExpression",{builder:["argument"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{argument:{validate:(0,a.assertNodeType)("Expression")}}}),c("Import",{aliases:["Expression"]}),c("BigIntLiteral",{builder:["value"],fields:{value:{validate:(0,a.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]}),c("ExportNamespaceSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:(0,a.assertNodeType)("Identifier")}}}),c("OptionalMemberExpression",{builder:["object","property","computed","optional"],visitor:["object","property"],aliases:["Expression"],fields:{object:{validate:(0,a.assertNodeType)("Expression")},property:{validate:function(){var e=(0,a.assertNodeType)("Identifier"),t=(0,a.assertNodeType)("Expression"),r=Object.assign((function(r,i,n){(r.computed?t:e)(r,i,n)}),{oneOfNodeTypes:["Expression","Identifier"]});return r}()},computed:{default:!1},optional:{validate:A.env.BABEL_TYPES_8_BREAKING?(0,a.chain)((0,a.assertValueType)("boolean"),(0,a.assertOptionalChainStart)()):(0,a.assertValueType)("boolean")}}}),c("OptionalCallExpression",{visitor:["callee","typeParameters","typeArguments","arguments"],builder:["callee","arguments","optional"],aliases:["Expression"],fields:Object.assign({callee:{validate:(0,a.assertNodeType)("Expression")},arguments:(0,a.validateArrayOfType)("Expression","SpreadElement","ArgumentPlaceholder"),optional:{validate:A.env.BABEL_TYPES_8_BREAKING?(0,a.chain)((0,a.assertValueType)("boolean"),(0,a.assertOptionalChainStart)()):(0,a.assertValueType)("boolean")},typeArguments:{validate:(0,a.assertNodeType)("TypeParameterInstantiation"),optional:!0}},{typeParameters:{validate:(0,a.assertNodeType)("TSTypeParameterInstantiation"),optional:!0}})}),c("ClassProperty",Object.assign({visitor:["decorators","variance","key","typeAnnotation","value"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property"]},s(),{fields:Object.assign({},x(),{value:{validate:(0,a.assertNodeType)("Expression"),optional:!0},definite:{validate:(0,a.assertValueType)("boolean"),optional:!0},typeAnnotation:{validate:(0,a.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,a.arrayOfType)("Decorator"),optional:!0},readonly:{validate:(0,a.assertValueType)("boolean"),optional:!0},declare:{validate:(0,a.assertValueType)("boolean"),optional:!0},variance:{validate:(0,a.assertNodeType)("Variance"),optional:!0}})})),c("ClassAccessorProperty",Object.assign({visitor:["decorators","key","typeAnnotation","value"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property","Accessor"]},s(!0),{fields:Object.assign({},x(),{key:{validate:(0,a.chain)((b=(0,a.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","PrivateName"),P=(0,a.assertNodeType)("Expression"),function(e,t,r){(e.computed?P:b)(e,t,r)}),(0,a.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","Expression","PrivateName"))},value:{validate:(0,a.assertNodeType)("Expression"),optional:!0},definite:{validate:(0,a.assertValueType)("boolean"),optional:!0},typeAnnotation:{validate:(0,a.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,a.arrayOfType)("Decorator"),optional:!0},readonly:{validate:(0,a.assertValueType)("boolean"),optional:!0},declare:{validate:(0,a.assertValueType)("boolean"),optional:!0},variance:{validate:(0,a.assertNodeType)("Variance"),optional:!0}})})),c("ClassPrivateProperty",{visitor:["decorators","variance","key","typeAnnotation","value"],builder:["key","value","decorators","static"],aliases:["Property","Private"],fields:{key:{validate:(0,a.assertNodeType)("PrivateName")},value:{validate:(0,a.assertNodeType)("Expression"),optional:!0},typeAnnotation:{validate:(0,a.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,a.arrayOfType)("Decorator"),optional:!0},static:{validate:(0,a.assertValueType)("boolean"),default:!1},readonly:{validate:(0,a.assertValueType)("boolean"),optional:!0},optional:{validate:(0,a.assertValueType)("boolean"),optional:!0},definite:{validate:(0,a.assertValueType)("boolean"),optional:!0},variance:{validate:(0,a.assertNodeType)("Variance"),optional:!0}}}),c("ClassPrivateMethod",{builder:["kind","key","params","body","static"],visitor:["decorators","key","typeParameters","params","returnType","body"],aliases:["Function","Scopable","BlockParent","FunctionParent","Method","Private"],fields:Object.assign({},E(),h(),{kind:{validate:(0,a.assertOneOf)("get","set","method"),default:"method"},key:{validate:(0,a.assertNodeType)("PrivateName")},body:{validate:(0,a.assertNodeType)("BlockStatement")}})}),c("PrivateName",{visitor:["id"],aliases:["Private"],fields:{id:{validate:(0,a.assertNodeType)("Identifier")}}}),c("StaticBlock",{visitor:["body"],fields:{body:(0,a.validateArrayOfType)("Statement")},aliases:["Scopable","BlockParent","FunctionParent"]}),c("ImportAttribute",{visitor:["key","value"],fields:{key:{validate:(0,a.assertNodeType)("Identifier","StringLiteral")},value:{validate:(0,a.assertNodeType)("StringLiteral")}}}),ie}var De,_e={};var Le,Me={};var Fe,Be,je={},Re={};function Ue(){if(Fe)return Re;Fe=1,Object.defineProperty(Re,"__esModule",{value:!0}),Re.PLACEHOLDERS_FLIPPED_ALIAS=Re.PLACEHOLDERS_ALIAS=Re.PLACEHOLDERS=void 0;var e=ke(),t=Re.PLACEHOLDERS=["Identifier","StringLiteral","Expression","Statement","Declaration","BlockStatement","ClassBody","Pattern"],r=Re.PLACEHOLDERS_ALIAS={Declaration:["Statement"],Pattern:["PatternLike","LVal"]};for(var i of t){var n=e.ALIAS_KEYS[i];null!=n&&n.length&&(r[i]=n)}var a=Re.PLACEHOLDERS_FLIPPED_ALIAS={};return Object.keys(r).forEach((e=>{r[e].forEach((t=>{hasOwnProperty.call(a,t)||(a[t]=[]),a[t].push(e)}))})),Re}var Ke,Ve={};var qe,We={};var Ye,Je,Xe,He,ze={};function Ge(){return Je||(Je=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ALIAS_KEYS",{enumerable:!0,get:function(){return t.ALIAS_KEYS}}),Object.defineProperty(e,"BUILDER_KEYS",{enumerable:!0,get:function(){return t.BUILDER_KEYS}}),Object.defineProperty(e,"DEPRECATED_ALIASES",{enumerable:!0,get:function(){return i.DEPRECATED_ALIASES}}),Object.defineProperty(e,"DEPRECATED_KEYS",{enumerable:!0,get:function(){return t.DEPRECATED_KEYS}}),Object.defineProperty(e,"FLIPPED_ALIAS_KEYS",{enumerable:!0,get:function(){return t.FLIPPED_ALIAS_KEYS}}),Object.defineProperty(e,"NODE_FIELDS",{enumerable:!0,get:function(){return t.NODE_FIELDS}}),Object.defineProperty(e,"NODE_PARENT_VALIDATIONS",{enumerable:!0,get:function(){return t.NODE_PARENT_VALIDATIONS}}),Object.defineProperty(e,"NODE_UNION_SHAPES__PRIVATE",{enumerable:!0,get:function(){return t.NODE_UNION_SHAPES__PRIVATE}}),Object.defineProperty(e,"PLACEHOLDERS",{enumerable:!0,get:function(){return r.PLACEHOLDERS}}),Object.defineProperty(e,"PLACEHOLDERS_ALIAS",{enumerable:!0,get:function(){return r.PLACEHOLDERS_ALIAS}}),Object.defineProperty(e,"PLACEHOLDERS_FLIPPED_ALIAS",{enumerable:!0,get:function(){return r.PLACEHOLDERS_FLIPPED_ALIAS}}),e.TYPES=void 0,Object.defineProperty(e,"VISITOR_KEYS",{enumerable:!0,get:function(){return t.VISITOR_KEYS}}),Oe(),function(){if(De)return _e;De=1;var e=Oe(),t=ke(),r=(0,t.defineAliasedType)("Flow"),i=e=>{var i="DeclareClass"===e;r(e,{builder:["id","typeParameters","extends","body"],visitor:["id","typeParameters","extends",...i?["mixins","implements"]:[],"body"],aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({id:(0,t.validateType)("Identifier"),typeParameters:(0,t.validateOptionalType)("TypeParameterDeclaration"),extends:(0,t.validateOptional)((0,t.arrayOfType)("InterfaceExtends"))},i?{mixins:(0,t.validateOptional)((0,t.arrayOfType)("InterfaceExtends")),implements:(0,t.validateOptional)((0,t.arrayOfType)("ClassImplements"))}:{},{body:(0,t.validateType)("ObjectTypeAnnotation")})})};r("AnyTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),r("ArrayTypeAnnotation",{visitor:["elementType"],aliases:["FlowType"],fields:{elementType:(0,t.validateType)("FlowType")}}),r("BooleanTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),r("BooleanLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0,t.validate)((0,t.assertValueType)("boolean"))}}),r("NullLiteralTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),r("ClassImplements",{visitor:["id","typeParameters"],fields:{id:(0,t.validateType)("Identifier"),typeParameters:(0,t.validateOptionalType)("TypeParameterInstantiation")}}),i("DeclareClass"),r("DeclareFunction",{builder:["id"],visitor:["id","predicate"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,t.validateType)("Identifier"),predicate:(0,t.validateOptionalType)("DeclaredPredicate")}}),i("DeclareInterface"),r("DeclareModule",{builder:["id","body","kind"],visitor:["id","body"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,t.validateType)("Identifier","StringLiteral"),body:(0,t.validateType)("BlockStatement"),kind:(0,t.validateOptional)((0,t.assertOneOf)("CommonJS","ES"))}}),r("DeclareModuleExports",{visitor:["typeAnnotation"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{typeAnnotation:(0,t.validateType)("TypeAnnotation")}}),r("DeclareTypeAlias",{visitor:["id","typeParameters","right"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,t.validateType)("Identifier"),typeParameters:(0,t.validateOptionalType)("TypeParameterDeclaration"),right:(0,t.validateType)("FlowType")}}),r("DeclareOpaqueType",{visitor:["id","typeParameters","supertype"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,t.validateType)("Identifier"),typeParameters:(0,t.validateOptionalType)("TypeParameterDeclaration"),supertype:(0,t.validateOptionalType)("FlowType"),impltype:(0,t.validateOptionalType)("FlowType")}}),r("DeclareVariable",{visitor:["id"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,t.validateType)("Identifier")}}),r("DeclareExportDeclaration",{visitor:["declaration","specifiers","source","attributes"],aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({declaration:(0,t.validateOptionalType)("Flow"),specifiers:(0,t.validateOptional)((0,t.arrayOfType)("ExportSpecifier","ExportNamespaceSpecifier")),source:(0,t.validateOptionalType)("StringLiteral"),default:(0,t.validateOptional)((0,t.assertValueType)("boolean"))},e.importAttributes)}),r("DeclareExportAllDeclaration",{visitor:["source","attributes"],aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({source:(0,t.validateType)("StringLiteral"),exportKind:(0,t.validateOptional)((0,t.assertOneOf)("type","value"))},e.importAttributes)}),r("DeclaredPredicate",{visitor:["value"],aliases:["FlowPredicate"],fields:{value:(0,t.validateType)("Flow")}}),r("ExistsTypeAnnotation",{aliases:["FlowType"]}),r("FunctionTypeAnnotation",{builder:["typeParameters","params","rest","returnType"],visitor:["typeParameters","this","params","rest","returnType"],aliases:["FlowType"],fields:{typeParameters:(0,t.validateOptionalType)("TypeParameterDeclaration"),params:(0,t.validateArrayOfType)("FunctionTypeParam"),rest:(0,t.validateOptionalType)("FunctionTypeParam"),this:(0,t.validateOptionalType)("FunctionTypeParam"),returnType:(0,t.validateType)("FlowType")}}),r("FunctionTypeParam",{visitor:["name","typeAnnotation"],fields:{name:(0,t.validateOptionalType)("Identifier"),typeAnnotation:(0,t.validateType)("FlowType"),optional:(0,t.validateOptional)((0,t.assertValueType)("boolean"))}}),r("GenericTypeAnnotation",{visitor:["id","typeParameters"],aliases:["FlowType"],fields:{id:(0,t.validateType)("Identifier","QualifiedTypeIdentifier"),typeParameters:(0,t.validateOptionalType)("TypeParameterInstantiation")}}),r("InferredPredicate",{aliases:["FlowPredicate"]}),r("InterfaceExtends",{visitor:["id","typeParameters"],fields:{id:(0,t.validateType)("Identifier","QualifiedTypeIdentifier"),typeParameters:(0,t.validateOptionalType)("TypeParameterInstantiation")}}),i("InterfaceDeclaration"),r("InterfaceTypeAnnotation",{visitor:["extends","body"],aliases:["FlowType"],fields:{extends:(0,t.validateOptional)((0,t.arrayOfType)("InterfaceExtends")),body:(0,t.validateType)("ObjectTypeAnnotation")}}),r("IntersectionTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0,t.validate)((0,t.arrayOfType)("FlowType"))}}),r("MixedTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),r("EmptyTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),r("NullableTypeAnnotation",{visitor:["typeAnnotation"],aliases:["FlowType"],fields:{typeAnnotation:(0,t.validateType)("FlowType")}}),r("NumberLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0,t.validate)((0,t.assertValueType)("number"))}}),r("NumberTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),r("ObjectTypeAnnotation",{visitor:["properties","indexers","callProperties","internalSlots"],aliases:["FlowType"],builder:["properties","indexers","callProperties","internalSlots","exact"],fields:{properties:(0,t.validate)((0,t.arrayOfType)("ObjectTypeProperty","ObjectTypeSpreadProperty")),indexers:{validate:(0,t.arrayOfType)("ObjectTypeIndexer"),optional:!0,default:[]},callProperties:{validate:(0,t.arrayOfType)("ObjectTypeCallProperty"),optional:!0,default:[]},internalSlots:{validate:(0,t.arrayOfType)("ObjectTypeInternalSlot"),optional:!0,default:[]},exact:{validate:(0,t.assertValueType)("boolean"),default:!1},inexact:(0,t.validateOptional)((0,t.assertValueType)("boolean"))}}),r("ObjectTypeInternalSlot",{visitor:["id","value"],builder:["id","value","optional","static","method"],aliases:["UserWhitespacable"],fields:{id:(0,t.validateType)("Identifier"),value:(0,t.validateType)("FlowType"),optional:(0,t.validate)((0,t.assertValueType)("boolean")),static:(0,t.validate)((0,t.assertValueType)("boolean")),method:(0,t.validate)((0,t.assertValueType)("boolean"))}}),r("ObjectTypeCallProperty",{visitor:["value"],aliases:["UserWhitespacable"],fields:{value:(0,t.validateType)("FlowType"),static:(0,t.validate)((0,t.assertValueType)("boolean"))}}),r("ObjectTypeIndexer",{visitor:["variance","id","key","value"],builder:["id","key","value","variance"],aliases:["UserWhitespacable"],fields:{id:(0,t.validateOptionalType)("Identifier"),key:(0,t.validateType)("FlowType"),value:(0,t.validateType)("FlowType"),static:(0,t.validate)((0,t.assertValueType)("boolean")),variance:(0,t.validateOptionalType)("Variance")}}),r("ObjectTypeProperty",{visitor:["key","value","variance"],aliases:["UserWhitespacable"],fields:{key:(0,t.validateType)("Identifier","StringLiteral"),value:(0,t.validateType)("FlowType"),kind:(0,t.validate)((0,t.assertOneOf)("init","get","set")),static:(0,t.validate)((0,t.assertValueType)("boolean")),proto:(0,t.validate)((0,t.assertValueType)("boolean")),optional:(0,t.validate)((0,t.assertValueType)("boolean")),variance:(0,t.validateOptionalType)("Variance"),method:(0,t.validate)((0,t.assertValueType)("boolean"))}}),r("ObjectTypeSpreadProperty",{visitor:["argument"],aliases:["UserWhitespacable"],fields:{argument:(0,t.validateType)("FlowType")}}),r("OpaqueType",{visitor:["id","typeParameters","supertype","impltype"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,t.validateType)("Identifier"),typeParameters:(0,t.validateOptionalType)("TypeParameterDeclaration"),supertype:(0,t.validateOptionalType)("FlowType"),impltype:(0,t.validateType)("FlowType")}}),r("QualifiedTypeIdentifier",{visitor:["qualification","id"],builder:["id","qualification"],fields:{id:(0,t.validateType)("Identifier"),qualification:(0,t.validateType)("Identifier","QualifiedTypeIdentifier")}}),r("StringLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0,t.validate)((0,t.assertValueType)("string"))}}),r("StringTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),r("SymbolTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),r("ThisTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),r("TupleTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0,t.validate)((0,t.arrayOfType)("FlowType"))}}),r("TypeofTypeAnnotation",{visitor:["argument"],aliases:["FlowType"],fields:{argument:(0,t.validateType)("FlowType")}}),r("TypeAlias",{visitor:["id","typeParameters","right"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,t.validateType)("Identifier"),typeParameters:(0,t.validateOptionalType)("TypeParameterDeclaration"),right:(0,t.validateType)("FlowType")}}),r("TypeAnnotation",{visitor:["typeAnnotation"],fields:{typeAnnotation:(0,t.validateType)("FlowType")}}),r("TypeCastExpression",{visitor:["expression","typeAnnotation"],aliases:["ExpressionWrapper","Expression"],fields:{expression:(0,t.validateType)("Expression"),typeAnnotation:(0,t.validateType)("TypeAnnotation")}}),r("TypeParameter",{visitor:["bound","default","variance"],fields:{name:(0,t.validate)((0,t.assertValueType)("string")),bound:(0,t.validateOptionalType)("TypeAnnotation"),default:(0,t.validateOptionalType)("FlowType"),variance:(0,t.validateOptionalType)("Variance")}}),r("TypeParameterDeclaration",{visitor:["params"],fields:{params:(0,t.validate)((0,t.arrayOfType)("TypeParameter"))}}),r("TypeParameterInstantiation",{visitor:["params"],fields:{params:(0,t.validate)((0,t.arrayOfType)("FlowType"))}}),r("UnionTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0,t.validate)((0,t.arrayOfType)("FlowType"))}}),r("Variance",{builder:["kind"],fields:{kind:(0,t.validate)((0,t.assertOneOf)("minus","plus"))}}),r("VoidTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),r("EnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:{id:(0,t.validateType)("Identifier"),body:(0,t.validateType)("EnumBooleanBody","EnumNumberBody","EnumStringBody","EnumSymbolBody")}}),r("EnumBooleanBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,t.validate)((0,t.assertValueType)("boolean")),members:(0,t.validateArrayOfType)("EnumBooleanMember"),hasUnknownMembers:(0,t.validate)((0,t.assertValueType)("boolean"))}}),r("EnumNumberBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,t.validate)((0,t.assertValueType)("boolean")),members:(0,t.validateArrayOfType)("EnumNumberMember"),hasUnknownMembers:(0,t.validate)((0,t.assertValueType)("boolean"))}}),r("EnumStringBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,t.validate)((0,t.assertValueType)("boolean")),members:(0,t.validateArrayOfType)("EnumStringMember","EnumDefaultedMember"),hasUnknownMembers:(0,t.validate)((0,t.assertValueType)("boolean"))}}),r("EnumSymbolBody",{aliases:["EnumBody"],visitor:["members"],fields:{members:(0,t.validateArrayOfType)("EnumDefaultedMember"),hasUnknownMembers:(0,t.validate)((0,t.assertValueType)("boolean"))}}),r("EnumBooleanMember",{aliases:["EnumMember"],builder:["id"],visitor:["id","init"],fields:{id:(0,t.validateType)("Identifier"),init:(0,t.validateType)("BooleanLiteral")}}),r("EnumNumberMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:(0,t.validateType)("Identifier"),init:(0,t.validateType)("NumericLiteral")}}),r("EnumStringMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:(0,t.validateType)("Identifier"),init:(0,t.validateType)("StringLiteral")}}),r("EnumDefaultedMember",{aliases:["EnumMember"],visitor:["id"],fields:{id:(0,t.validateType)("Identifier")}}),r("IndexedAccessType",{visitor:["objectType","indexType"],aliases:["FlowType"],fields:{objectType:(0,t.validateType)("FlowType"),indexType:(0,t.validateType)("FlowType")}}),r("OptionalIndexedAccessType",{visitor:["objectType","indexType"],aliases:["FlowType"],fields:{objectType:(0,t.validateType)("FlowType"),indexType:(0,t.validateType)("FlowType"),optional:(0,t.validate)((0,t.assertValueType)("boolean"))}})}(),function(){if(Le)return Me;Le=1;var e=ke(),t=(0,e.defineAliasedType)("JSX");t("JSXAttribute",{visitor:["name","value"],aliases:["Immutable"],fields:{name:{validate:(0,e.assertNodeType)("JSXIdentifier","JSXNamespacedName")},value:{optional:!0,validate:(0,e.assertNodeType)("JSXElement","JSXFragment","StringLiteral","JSXExpressionContainer")}}}),t("JSXClosingElement",{visitor:["name"],aliases:["Immutable"],fields:{name:{validate:(0,e.assertNodeType)("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")}}}),t("JSXElement",{builder:["openingElement","closingElement","children","selfClosing"],visitor:["openingElement","children","closingElement"],aliases:["Immutable","Expression"],fields:Object.assign({openingElement:{validate:(0,e.assertNodeType)("JSXOpeningElement")},closingElement:{optional:!0,validate:(0,e.assertNodeType)("JSXClosingElement")},children:(0,e.validateArrayOfType)("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")},{selfClosing:{validate:(0,e.assertValueType)("boolean"),optional:!0}})}),t("JSXEmptyExpression",{}),t("JSXExpressionContainer",{visitor:["expression"],aliases:["Immutable"],fields:{expression:{validate:(0,e.assertNodeType)("Expression","JSXEmptyExpression")}}}),t("JSXSpreadChild",{visitor:["expression"],aliases:["Immutable"],fields:{expression:{validate:(0,e.assertNodeType)("Expression")}}}),t("JSXIdentifier",{builder:["name"],fields:{name:{validate:(0,e.assertValueType)("string")}}}),t("JSXMemberExpression",{visitor:["object","property"],fields:{object:{validate:(0,e.assertNodeType)("JSXMemberExpression","JSXIdentifier")},property:{validate:(0,e.assertNodeType)("JSXIdentifier")}}}),t("JSXNamespacedName",{visitor:["namespace","name"],fields:{namespace:{validate:(0,e.assertNodeType)("JSXIdentifier")},name:{validate:(0,e.assertNodeType)("JSXIdentifier")}}}),t("JSXOpeningElement",{builder:["name","attributes","selfClosing"],visitor:["name","typeParameters","typeArguments","attributes"],aliases:["Immutable"],fields:Object.assign({name:{validate:(0,e.assertNodeType)("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")},selfClosing:{default:!1},attributes:(0,e.validateArrayOfType)("JSXAttribute","JSXSpreadAttribute"),typeArguments:{validate:(0,e.assertNodeType)("TypeParameterInstantiation"),optional:!0}},{typeParameters:{validate:(0,e.assertNodeType)("TSTypeParameterInstantiation"),optional:!0}})}),t("JSXSpreadAttribute",{visitor:["argument"],fields:{argument:{validate:(0,e.assertNodeType)("Expression")}}}),t("JSXText",{aliases:["Immutable"],builder:["value"],fields:{value:{validate:(0,e.assertValueType)("string")}}}),t("JSXFragment",{builder:["openingFragment","closingFragment","children"],visitor:["openingFragment","children","closingFragment"],aliases:["Immutable","Expression"],fields:{openingFragment:{validate:(0,e.assertNodeType)("JSXOpeningFragment")},closingFragment:{validate:(0,e.assertNodeType)("JSXClosingFragment")},children:(0,e.validateArrayOfType)("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")}}),t("JSXOpeningFragment",{aliases:["Immutable"]}),t("JSXClosingFragment",{aliases:["Immutable"]})}(),function(){if(Be)return je;Be=1;var e=ke(),t=Ue(),r=Oe(),i=(0,e.defineAliasedType)("Miscellaneous");i("Noop",{visitor:[]}),i("Placeholder",{visitor:[],builder:["expectedNode","name"],fields:Object.assign({name:{validate:(0,e.assertNodeType)("Identifier")},expectedNode:{validate:(0,e.assertOneOf)(...t.PLACEHOLDERS)}},(0,r.patternLikeCommon)())}),i("V8IntrinsicIdentifier",{builder:["name"],fields:{name:{validate:(0,e.assertValueType)("string")}}})}(),function(){if(Ke)return Ve;Ke=1;var e=ke();(0,e.default)("ArgumentPlaceholder",{}),(0,e.default)("BindExpression",{visitor:["object","callee"],aliases:["Expression"],fields:A.env.BABEL_TYPES_8_BREAKING?{object:{validate:(0,e.assertNodeType)("Expression")},callee:{validate:(0,e.assertNodeType)("Expression")}}:{object:{validate:Object.assign((()=>{}),{oneOfNodeTypes:["Expression"]})},callee:{validate:Object.assign((()=>{}),{oneOfNodeTypes:["Expression"]})}}}),(0,e.default)("Decorator",{visitor:["expression"],fields:{expression:{validate:(0,e.assertNodeType)("Expression")}}}),(0,e.default)("DoExpression",{visitor:["body"],builder:["body","async"],aliases:["Expression"],fields:{body:{validate:(0,e.assertNodeType)("BlockStatement")},async:{validate:(0,e.assertValueType)("boolean"),default:!1}}}),(0,e.default)("ExportDefaultSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:(0,e.assertNodeType)("Identifier")}}}),(0,e.default)("RecordExpression",{visitor:["properties"],aliases:["Expression"],fields:{properties:(0,e.validateArrayOfType)("ObjectProperty","SpreadElement")}}),(0,e.default)("TupleExpression",{fields:{elements:{validate:(0,e.arrayOfType)("Expression","SpreadElement"),default:[]}},visitor:["elements"],aliases:["Expression"]}),(0,e.default)("DecimalLiteral",{builder:["value"],fields:{value:{validate:(0,e.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]}),(0,e.default)("ModuleExpression",{visitor:["body"],fields:{body:{validate:(0,e.assertNodeType)("Program")}},aliases:["Expression"]}),(0,e.default)("TopicReference",{aliases:["Expression"]}),(0,e.default)("PipelineTopicExpression",{builder:["expression"],visitor:["expression"],fields:{expression:{validate:(0,e.assertNodeType)("Expression")}},aliases:["Expression"]}),(0,e.default)("PipelineBareFunction",{builder:["callee"],visitor:["callee"],fields:{callee:{validate:(0,e.assertNodeType)("Expression")}},aliases:["Expression"]}),(0,e.default)("PipelinePrimaryTopicReference",{aliases:["Expression"]}),(0,e.default)("VoidPattern",{aliases:["Pattern","PatternLike","FunctionParameter"]})}(),function(){if(qe)return We;qe=1;var e=ke(),t=Oe(),r=ue(),i=(0,e.defineAliasedType)("TypeScript"),n=(0,e.assertValueType)("boolean"),a=()=>({returnType:{validate:(0,e.assertNodeType)("TSTypeAnnotation","Noop"),optional:!0},typeParameters:{validate:(0,e.assertNodeType)("TSTypeParameterDeclaration","Noop"),optional:!0}});i("TSParameterProperty",{aliases:["LVal"],visitor:["parameter"],fields:{accessibility:{validate:(0,e.assertOneOf)("public","private","protected"),optional:!0},readonly:{validate:(0,e.assertValueType)("boolean"),optional:!0},parameter:{validate:(0,e.assertNodeType)("Identifier","AssignmentPattern")},override:{validate:(0,e.assertValueType)("boolean"),optional:!0},decorators:{validate:(0,e.arrayOfType)("Decorator"),optional:!0}}}),i("TSDeclareFunction",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","params","returnType"],fields:Object.assign({},(0,t.functionDeclarationCommon)(),a())}),i("TSDeclareMethod",Object.assign({visitor:["decorators","key","typeParameters","params","returnType"]},(0,t.classMethodOrPropertyUnionShapeCommon)(),{fields:Object.assign({},(0,t.classMethodOrDeclareMethodCommon)(),a())})),i("TSQualifiedName",{aliases:["TSEntityName"],visitor:["left","right"],fields:{left:(0,e.validateType)("TSEntityName"),right:(0,e.validateType)("Identifier")}});var s=()=>({typeParameters:(0,e.validateOptionalType)("TSTypeParameterDeclaration"),parameters:(0,e.validateArrayOfType)("ArrayPattern","Identifier","ObjectPattern","RestElement"),typeAnnotation:(0,e.validateOptionalType)("TSTypeAnnotation")}),o={aliases:["TSTypeElement"],visitor:["typeParameters","parameters","typeAnnotation"],fields:s()};i("TSCallSignatureDeclaration",o),i("TSConstructSignatureDeclaration",o);var l=()=>({key:(0,e.validateType)("Expression"),computed:{default:!1},optional:(0,e.validateOptional)(n)});for(var p of(i("TSPropertySignature",{aliases:["TSTypeElement"],visitor:["key","typeAnnotation"],fields:Object.assign({},l(),{readonly:(0,e.validateOptional)(n),typeAnnotation:(0,e.validateOptionalType)("TSTypeAnnotation"),kind:{optional:!0,validate:(0,e.assertOneOf)("get","set")}})}),i("TSMethodSignature",{aliases:["TSTypeElement"],visitor:["key","typeParameters","parameters","typeAnnotation"],fields:Object.assign({},s(),l(),{kind:{validate:(0,e.assertOneOf)("method","get","set")}})}),i("TSIndexSignature",{aliases:["TSTypeElement"],visitor:["parameters","typeAnnotation"],fields:{readonly:(0,e.validateOptional)(n),static:(0,e.validateOptional)(n),parameters:(0,e.validateArrayOfType)("Identifier"),typeAnnotation:(0,e.validateOptionalType)("TSTypeAnnotation")}}),["TSAnyKeyword","TSBooleanKeyword","TSBigIntKeyword","TSIntrinsicKeyword","TSNeverKeyword","TSNullKeyword","TSNumberKeyword","TSObjectKeyword","TSStringKeyword","TSSymbolKeyword","TSUndefinedKeyword","TSUnknownKeyword","TSVoidKeyword"]))i(p,{aliases:["TSType","TSBaseType"],visitor:[],fields:{}});i("TSThisType",{aliases:["TSType","TSBaseType"],visitor:[],fields:{}});var c={aliases:["TSType"],visitor:["typeParameters","parameters","typeAnnotation"]};i("TSFunctionType",Object.assign({},c,{fields:s()})),i("TSConstructorType",Object.assign({},c,{fields:Object.assign({},s(),{abstract:(0,e.validateOptional)(n)})})),i("TSTypeReference",{aliases:["TSType"],visitor:["typeName","typeParameters"],fields:{typeName:(0,e.validateType)("TSEntityName"),typeParameters:(0,e.validateOptionalType)("TSTypeParameterInstantiation")}}),i("TSTypePredicate",{aliases:["TSType"],visitor:["parameterName","typeAnnotation"],builder:["parameterName","typeAnnotation","asserts"],fields:{parameterName:(0,e.validateType)("Identifier","TSThisType"),typeAnnotation:(0,e.validateOptionalType)("TSTypeAnnotation"),asserts:(0,e.validateOptional)(n)}}),i("TSTypeQuery",{aliases:["TSType"],visitor:["exprName","typeParameters"],fields:{exprName:(0,e.validateType)("TSEntityName","TSImportType"),typeParameters:(0,e.validateOptionalType)("TSTypeParameterInstantiation")}}),i("TSTypeLiteral",{aliases:["TSType"],visitor:["members"],fields:{members:(0,e.validateArrayOfType)("TSTypeElement")}}),i("TSArrayType",{aliases:["TSType"],visitor:["elementType"],fields:{elementType:(0,e.validateType)("TSType")}}),i("TSTupleType",{aliases:["TSType"],visitor:["elementTypes"],fields:{elementTypes:(0,e.validateArrayOfType)("TSType","TSNamedTupleMember")}}),i("TSOptionalType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,e.validateType)("TSType")}}),i("TSRestType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,e.validateType)("TSType")}}),i("TSNamedTupleMember",{visitor:["label","elementType"],builder:["label","elementType","optional"],fields:{label:(0,e.validateType)("Identifier"),optional:{validate:n,default:!1},elementType:(0,e.validateType)("TSType")}});var u={aliases:["TSType"],visitor:["types"],fields:{types:(0,e.validateArrayOfType)("TSType")}};i("TSUnionType",u),i("TSIntersectionType",u),i("TSConditionalType",{aliases:["TSType"],visitor:["checkType","extendsType","trueType","falseType"],fields:{checkType:(0,e.validateType)("TSType"),extendsType:(0,e.validateType)("TSType"),trueType:(0,e.validateType)("TSType"),falseType:(0,e.validateType)("TSType")}}),i("TSInferType",{aliases:["TSType"],visitor:["typeParameter"],fields:{typeParameter:(0,e.validateType)("TSTypeParameter")}}),i("TSParenthesizedType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,e.validateType)("TSType")}}),i("TSTypeOperator",{aliases:["TSType"],visitor:["typeAnnotation"],builder:["typeAnnotation","operator"],fields:{operator:{validate:(0,e.assertValueType)("string"),default:"keyof"},typeAnnotation:(0,e.validateType)("TSType")}}),i("TSIndexedAccessType",{aliases:["TSType"],visitor:["objectType","indexType"],fields:{objectType:(0,e.validateType)("TSType"),indexType:(0,e.validateType)("TSType")}}),i("TSMappedType",{aliases:["TSType"],visitor:["typeParameter","nameType","typeAnnotation"],builder:["typeParameter","typeAnnotation","nameType"],fields:Object.assign({},{typeParameter:(0,e.validateType)("TSTypeParameter")},{readonly:(0,e.validateOptional)((0,e.assertOneOf)(!0,!1,"+","-")),optional:(0,e.validateOptional)((0,e.assertOneOf)(!0,!1,"+","-")),typeAnnotation:(0,e.validateOptionalType)("TSType"),nameType:(0,e.validateOptionalType)("TSType")})}),i("TSTemplateLiteralType",{aliases:["TSType","TSBaseType"],visitor:["quasis","types"],fields:{quasis:(0,e.validateArrayOfType)("TemplateElement"),types:{validate:(0,e.chain)((0,e.assertValueType)("array"),(0,e.assertEach)((0,e.assertNodeType)("TSType")),(function(e,t,r){if(e.quasis.length!==r.length+1)throw new TypeError("Number of ".concat(e.type," quasis should be exactly one more than the number of types.\nExpected ").concat(r.length+1," quasis but got ").concat(e.quasis.length))}))}}}),i("TSLiteralType",{aliases:["TSType","TSBaseType"],visitor:["literal"],fields:{literal:{validate:function(){var t=(0,e.assertNodeType)("NumericLiteral","BigIntLiteral"),i=(0,e.assertOneOf)("-"),n=(0,e.assertNodeType)("NumericLiteral","StringLiteral","BooleanLiteral","BigIntLiteral","TemplateLiteral"),a=function(e,a,s){(0,r.default)("UnaryExpression",s)?(i(s,"operator",s.operator),t(s,"argument",s.argument)):n(e,a,s)};return a.oneOfNodeTypes=["NumericLiteral","StringLiteral","BooleanLiteral","BigIntLiteral","TemplateLiteral","UnaryExpression"],a}()}}}),i("TSExpressionWithTypeArguments",{aliases:["TSType"],visitor:["expression","typeParameters"],fields:{expression:(0,e.validateType)("TSEntityName"),typeParameters:(0,e.validateOptionalType)("TSTypeParameterInstantiation")}}),i("TSInterfaceDeclaration",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","extends","body"],fields:{declare:(0,e.validateOptional)(n),id:(0,e.validateType)("Identifier"),typeParameters:(0,e.validateOptionalType)("TSTypeParameterDeclaration"),extends:(0,e.validateOptional)((0,e.arrayOfType)("TSExpressionWithTypeArguments")),body:(0,e.validateType)("TSInterfaceBody")}}),i("TSInterfaceBody",{visitor:["body"],fields:{body:(0,e.validateArrayOfType)("TSTypeElement")}}),i("TSTypeAliasDeclaration",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","typeAnnotation"],fields:{declare:(0,e.validateOptional)(n),id:(0,e.validateType)("Identifier"),typeParameters:(0,e.validateOptionalType)("TSTypeParameterDeclaration"),typeAnnotation:(0,e.validateType)("TSType")}}),i("TSInstantiationExpression",{aliases:["Expression"],visitor:["expression","typeParameters"],fields:{expression:(0,e.validateType)("Expression"),typeParameters:(0,e.validateOptionalType)("TSTypeParameterInstantiation")}});var h={aliases:["Expression","LVal","PatternLike"],visitor:["expression","typeAnnotation"],fields:{expression:(0,e.validateType)("Expression"),typeAnnotation:(0,e.validateType)("TSType")}};i("TSAsExpression",h),i("TSSatisfiesExpression",h),i("TSTypeAssertion",{aliases:["Expression","LVal","PatternLike"],visitor:["typeAnnotation","expression"],fields:{typeAnnotation:(0,e.validateType)("TSType"),expression:(0,e.validateType)("Expression")}}),i("TSEnumBody",{visitor:["members"],fields:{members:(0,e.validateArrayOfType)("TSEnumMember")}}),i("TSEnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","members"],fields:{declare:(0,e.validateOptional)(n),const:(0,e.validateOptional)(n),id:(0,e.validateType)("Identifier"),members:(0,e.validateArrayOfType)("TSEnumMember"),initializer:(0,e.validateOptionalType)("Expression"),body:(0,e.validateOptionalType)("TSEnumBody")}}),i("TSEnumMember",{visitor:["id","initializer"],fields:{id:(0,e.validateType)("Identifier","StringLiteral"),initializer:(0,e.validateOptionalType)("Expression")}}),i("TSModuleDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:Object.assign({kind:{validate:(0,e.assertOneOf)("global","module","namespace")},declare:(0,e.validateOptional)(n)},{global:(0,e.validateOptional)(n)},{id:(0,e.validateType)("Identifier","StringLiteral"),body:(0,e.validateType)("TSModuleBlock","TSModuleDeclaration")})}),i("TSModuleBlock",{aliases:["Scopable","Block","BlockParent","FunctionParent"],visitor:["body"],fields:{body:(0,e.validateArrayOfType)("Statement")}}),i("TSImportType",{aliases:["TSType"],builder:["argument","qualifier","typeParameters"],visitor:["argument","options","qualifier","typeParameters"],fields:{argument:(0,e.validateType)("StringLiteral"),qualifier:(0,e.validateOptionalType)("TSEntityName"),typeParameters:(0,e.validateOptionalType)("TSTypeParameterInstantiation"),options:{validate:(0,e.assertNodeType)("ObjectExpression"),optional:!0}}}),i("TSImportEqualsDeclaration",{aliases:["Statement","Declaration"],visitor:["id","moduleReference"],fields:Object.assign({},{isExport:(0,e.validate)(n)},{id:(0,e.validateType)("Identifier"),moduleReference:(0,e.validateType)("TSEntityName","TSExternalModuleReference"),importKind:{validate:(0,e.assertOneOf)("type","value"),optional:!0}})}),i("TSExternalModuleReference",{visitor:["expression"],fields:{expression:(0,e.validateType)("StringLiteral")}}),i("TSNonNullExpression",{aliases:["Expression","LVal","PatternLike"],visitor:["expression"],fields:{expression:(0,e.validateType)("Expression")}}),i("TSExportAssignment",{aliases:["Statement"],visitor:["expression"],fields:{expression:(0,e.validateType)("Expression")}}),i("TSNamespaceExportDeclaration",{aliases:["Statement"],visitor:["id"],fields:{id:(0,e.validateType)("Identifier")}}),i("TSTypeAnnotation",{visitor:["typeAnnotation"],fields:{typeAnnotation:{validate:(0,e.assertNodeType)("TSType")}}}),i("TSTypeParameterInstantiation",{visitor:["params"],fields:{params:(0,e.validateArrayOfType)("TSType")}}),i("TSTypeParameterDeclaration",{visitor:["params"],fields:{params:(0,e.validateArrayOfType)("TSTypeParameter")}}),i("TSTypeParameter",{builder:["constraint","default","name"],visitor:["constraint","default"],fields:{name:{validate:(0,e.assertValueType)("string")},in:{validate:(0,e.assertValueType)("boolean"),optional:!0},out:{validate:(0,e.assertValueType)("boolean"),optional:!0},const:{validate:(0,e.assertValueType)("boolean"),optional:!0},constraint:{validate:(0,e.assertNodeType)("TSType"),optional:!0},default:{validate:(0,e.assertNodeType)("TSType"),optional:!0}}})}();var t=ke(),r=Ue(),i=(Ye||(Ye=1,Object.defineProperty(ze,"__esModule",{value:!0}),ze.DEPRECATED_ALIASES=void 0,ze.DEPRECATED_ALIASES={ModuleDeclaration:"ImportOrExportDeclaration"}),ze);for(var{types:n,set:a}of(Object.keys(i.DEPRECATED_ALIASES).forEach((e=>{t.FLIPPED_ALIAS_KEYS[e]=t.FLIPPED_ALIAS_KEYS[i.DEPRECATED_ALIASES[e]]})),t.allExpandedTypes))for(var s of n){var o=t.FLIPPED_ALIAS_KEYS[s];o?o.forEach(a.add,a):a.add(s)}e.TYPES=[].concat(Object.keys(t.VISITOR_KEYS),Object.keys(t.FLIPPED_ALIAS_KEYS),Object.keys(t.DEPRECATED_KEYS))}(re)),re}function Qe(){if(Xe)return te;Xe=1,Object.defineProperty(te,"__esModule",{value:!0}),te.default=function(i,n,a){if(!i)return;var s=e.NODE_FIELDS[i.type];if(!s)return;var o=s[n];t(i,n,a,o),r(i,n,a)},te.validateChild=r,te.validateField=t,te.validateInternal=function(t,r,i,n,a){if(null==t||!t.validate)return;if(t.optional&&null==n)return;if(t.validate(r,i,n),a){var s,o=n.type;if(null==o)return;null==(s=e.NODE_PARENT_VALIDATIONS[o])||s.call(e.NODE_PARENT_VALIDATIONS,r,i,n)}};var e=Ge();function t(e,t,r,i){null!=i&&i.validate&&(i.optional&&null==r||i.validate(e,t,r))}function r(t,r,i){var n,a=null==i?void 0:i.type;null!=a&&(null==(n=e.NODE_PARENT_VALIDATIONS[a])||n.call(e.NODE_PARENT_VALIDATIONS,t,r,i))}return te}function $e(){if(He)return ee;He=1,Object.defineProperty(ee,"__esModule",{value:!0}),ee.anyTypeAnnotation=function(){return{type:"AnyTypeAnnotation"}},ee.argumentPlaceholder=function(){return{type:"ArgumentPlaceholder"}},ee.arrayExpression=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t={type:"ArrayExpression",elements:e},r=n.ArrayExpression;return i(r.elements,t,"elements",e,1),t},ee.arrayPattern=function(e){var t={type:"ArrayPattern",elements:e},r=n.ArrayPattern;return i(r.elements,t,"elements",e,1),t},ee.arrayTypeAnnotation=function(e){var t={type:"ArrayTypeAnnotation",elementType:e},r=n.ArrayTypeAnnotation;return i(r.elementType,t,"elementType",e,1),t},ee.arrowFunctionExpression=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a={type:"ArrowFunctionExpression",params:e,body:t,async:r,expression:null},s=n.ArrowFunctionExpression;return i(s.params,a,"params",e,1),i(s.body,a,"body",t,1),i(s.async,a,"async",r),a},ee.assignmentExpression=function(e,t,r){var a={type:"AssignmentExpression",operator:e,left:t,right:r},s=n.AssignmentExpression;return i(s.operator,a,"operator",e),i(s.left,a,"left",t,1),i(s.right,a,"right",r,1),a},ee.assignmentPattern=function(e,t){var r={type:"AssignmentPattern",left:e,right:t},a=n.AssignmentPattern;return i(a.left,r,"left",e,1),i(a.right,r,"right",t,1),r},ee.awaitExpression=function(e){var t={type:"AwaitExpression",argument:e},r=n.AwaitExpression;return i(r.argument,t,"argument",e,1),t},ee.bigIntLiteral=function(e){"bigint"==typeof e&&(e=e.toString());var t={type:"BigIntLiteral",value:e},r=n.BigIntLiteral;return i(r.value,t,"value",e),t},ee.binaryExpression=function(e,t,r){var a={type:"BinaryExpression",operator:e,left:t,right:r},s=n.BinaryExpression;return i(s.operator,a,"operator",e),i(s.left,a,"left",t,1),i(s.right,a,"right",r,1),a},ee.bindExpression=function(e,t){var r={type:"BindExpression",object:e,callee:t},a=n.BindExpression;return i(a.object,r,"object",e,1),i(a.callee,r,"callee",t,1),r},ee.blockStatement=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r={type:"BlockStatement",body:e,directives:t},a=n.BlockStatement;return i(a.body,r,"body",e,1),i(a.directives,r,"directives",t,1),r},ee.booleanLiteral=function(e){var t={type:"BooleanLiteral",value:e},r=n.BooleanLiteral;return i(r.value,t,"value",e),t},ee.booleanLiteralTypeAnnotation=function(e){var t={type:"BooleanLiteralTypeAnnotation",value:e},r=n.BooleanLiteralTypeAnnotation;return i(r.value,t,"value",e),t},ee.booleanTypeAnnotation=function(){return{type:"BooleanTypeAnnotation"}},ee.breakStatement=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t={type:"BreakStatement",label:e},r=n.BreakStatement;return i(r.label,t,"label",e,1),t},ee.callExpression=function(e,t){var r={type:"CallExpression",callee:e,arguments:t},a=n.CallExpression;return i(a.callee,r,"callee",e,1),i(a.arguments,r,"arguments",t,1),r},ee.catchClause=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,r={type:"CatchClause",param:e,body:t},a=n.CatchClause;return i(a.param,r,"param",e,1),i(a.body,r,"body",t,1),r},ee.classAccessorProperty=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,s=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o=arguments.length>5&&void 0!==arguments[5]&&arguments[5],l={type:"ClassAccessorProperty",key:e,value:t,typeAnnotation:r,decorators:a,computed:s,static:o},p=n.ClassAccessorProperty;return i(p.key,l,"key",e,1),i(p.value,l,"value",t,1),i(p.typeAnnotation,l,"typeAnnotation",r,1),i(p.decorators,l,"decorators",a,1),i(p.computed,l,"computed",s),i(p.static,l,"static",o),l},ee.classBody=function(e){var t={type:"ClassBody",body:e},r=n.ClassBody;return i(r.body,t,"body",e,1),t},ee.classDeclaration=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2?arguments[2]:void 0,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,s={type:"ClassDeclaration",id:e,superClass:t,body:r,decorators:a},o=n.ClassDeclaration;return i(o.id,s,"id",e,1),i(o.superClass,s,"superClass",t,1),i(o.body,s,"body",r,1),i(o.decorators,s,"decorators",a,1),s},ee.classExpression=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2?arguments[2]:void 0,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,s={type:"ClassExpression",id:e,superClass:t,body:r,decorators:a},o=n.ClassExpression;return i(o.id,s,"id",e,1),i(o.superClass,s,"superClass",t,1),i(o.body,s,"body",r,1),i(o.decorators,s,"decorators",a,1),s},ee.classImplements=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r={type:"ClassImplements",id:e,typeParameters:t},a=n.ClassImplements;return i(a.id,r,"id",e,1),i(a.typeParameters,r,"typeParameters",t,1),r},ee.classMethod=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"method",t=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,s=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o=arguments.length>5&&void 0!==arguments[5]&&arguments[5],l=arguments.length>6&&void 0!==arguments[6]&&arguments[6],p=arguments.length>7&&void 0!==arguments[7]&&arguments[7],c={type:"ClassMethod",kind:e,key:t,params:r,body:a,computed:s,static:o,generator:l,async:p},u=n.ClassMethod;return i(u.kind,c,"kind",e),i(u.key,c,"key",t,1),i(u.params,c,"params",r,1),i(u.body,c,"body",a,1),i(u.computed,c,"computed",s),i(u.static,c,"static",o),i(u.generator,c,"generator",l),i(u.async,c,"async",p),c},ee.classPrivateMethod=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"method",t=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,s=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o={type:"ClassPrivateMethod",kind:e,key:t,params:r,body:a,static:s},l=n.ClassPrivateMethod;return i(l.kind,o,"kind",e),i(l.key,o,"key",t,1),i(l.params,o,"params",r,1),i(l.body,o,"body",a,1),i(l.static,o,"static",s),o},ee.classPrivateProperty=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],s={type:"ClassPrivateProperty",key:e,value:t,decorators:r,static:a},o=n.ClassPrivateProperty;return i(o.key,s,"key",e,1),i(o.value,s,"value",t,1),i(o.decorators,s,"decorators",r,1),i(o.static,s,"static",a),s},ee.classProperty=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,s=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o=arguments.length>5&&void 0!==arguments[5]&&arguments[5],l={type:"ClassProperty",key:e,value:t,typeAnnotation:r,decorators:a,computed:s,static:o},p=n.ClassProperty;return i(p.key,l,"key",e,1),i(p.value,l,"value",t,1),i(p.typeAnnotation,l,"typeAnnotation",r,1),i(p.decorators,l,"decorators",a,1),i(p.computed,l,"computed",s),i(p.static,l,"static",o),l},ee.conditionalExpression=function(e,t,r){var a={type:"ConditionalExpression",test:e,consequent:t,alternate:r},s=n.ConditionalExpression;return i(s.test,a,"test",e,1),i(s.consequent,a,"consequent",t,1),i(s.alternate,a,"alternate",r,1),a},ee.continueStatement=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t={type:"ContinueStatement",label:e},r=n.ContinueStatement;return i(r.label,t,"label",e,1),t},ee.debuggerStatement=function(){return{type:"DebuggerStatement"}},ee.decimalLiteral=function(e){var t={type:"DecimalLiteral",value:e},r=n.DecimalLiteral;return i(r.value,t,"value",e),t},ee.declareClass=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a=arguments.length>3?arguments[3]:void 0,s={type:"DeclareClass",id:e,typeParameters:t,extends:r,body:a},o=n.DeclareClass;return i(o.id,s,"id",e,1),i(o.typeParameters,s,"typeParameters",t,1),i(o.extends,s,"extends",r,1),i(o.body,s,"body",a,1),s},ee.declareExportAllDeclaration=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r={type:"DeclareExportAllDeclaration",source:e,attributes:t},a=n.DeclareExportAllDeclaration;return i(a.source,r,"source",e,1),i(a.attributes,r,"attributes",t,1),r},ee.declareExportDeclaration=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,s={type:"DeclareExportDeclaration",declaration:e,specifiers:t,source:r,attributes:a},o=n.DeclareExportDeclaration;return i(o.declaration,s,"declaration",e,1),i(o.specifiers,s,"specifiers",t,1),i(o.source,s,"source",r,1),i(o.attributes,s,"attributes",a,1),s},ee.declareFunction=function(e){var t={type:"DeclareFunction",id:e},r=n.DeclareFunction;return i(r.id,t,"id",e,1),t},ee.declareInterface=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a=arguments.length>3?arguments[3]:void 0,s={type:"DeclareInterface",id:e,typeParameters:t,extends:r,body:a},o=n.DeclareInterface;return i(o.id,s,"id",e,1),i(o.typeParameters,s,"typeParameters",t,1),i(o.extends,s,"extends",r,1),i(o.body,s,"body",a,1),s},ee.declareModule=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a={type:"DeclareModule",id:e,body:t,kind:r},s=n.DeclareModule;return i(s.id,a,"id",e,1),i(s.body,a,"body",t,1),i(s.kind,a,"kind",r),a},ee.declareModuleExports=function(e){var t={type:"DeclareModuleExports",typeAnnotation:e},r=n.DeclareModuleExports;return i(r.typeAnnotation,t,"typeAnnotation",e,1),t},ee.declareOpaqueType=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a={type:"DeclareOpaqueType",id:e,typeParameters:t,supertype:r},s=n.DeclareOpaqueType;return i(s.id,a,"id",e,1),i(s.typeParameters,a,"typeParameters",t,1),i(s.supertype,a,"supertype",r,1),a},ee.declareTypeAlias=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2?arguments[2]:void 0,a={type:"DeclareTypeAlias",id:e,typeParameters:t,right:r},s=n.DeclareTypeAlias;return i(s.id,a,"id",e,1),i(s.typeParameters,a,"typeParameters",t,1),i(s.right,a,"right",r,1),a},ee.declareVariable=function(e){var t={type:"DeclareVariable",id:e},r=n.DeclareVariable;return i(r.id,t,"id",e,1),t},ee.declaredPredicate=function(e){var t={type:"DeclaredPredicate",value:e},r=n.DeclaredPredicate;return i(r.value,t,"value",e,1),t},ee.decorator=function(e){var t={type:"Decorator",expression:e},r=n.Decorator;return i(r.expression,t,"expression",e,1),t},ee.directive=function(e){var t={type:"Directive",value:e},r=n.Directive;return i(r.value,t,"value",e,1),t},ee.directiveLiteral=function(e){var t={type:"DirectiveLiteral",value:e},r=n.DirectiveLiteral;return i(r.value,t,"value",e),t},ee.doExpression=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r={type:"DoExpression",body:e,async:t},a=n.DoExpression;return i(a.body,r,"body",e,1),i(a.async,r,"async",t),r},ee.doWhileStatement=function(e,t){var r={type:"DoWhileStatement",test:e,body:t},a=n.DoWhileStatement;return i(a.test,r,"test",e,1),i(a.body,r,"body",t,1),r},ee.emptyStatement=function(){return{type:"EmptyStatement"}},ee.emptyTypeAnnotation=function(){return{type:"EmptyTypeAnnotation"}},ee.enumBooleanBody=function(e){var t={type:"EnumBooleanBody",members:e,explicitType:null,hasUnknownMembers:null},r=n.EnumBooleanBody;return i(r.members,t,"members",e,1),t},ee.enumBooleanMember=function(e){var t={type:"EnumBooleanMember",id:e,init:null},r=n.EnumBooleanMember;return i(r.id,t,"id",e,1),t},ee.enumDeclaration=function(e,t){var r={type:"EnumDeclaration",id:e,body:t},a=n.EnumDeclaration;return i(a.id,r,"id",e,1),i(a.body,r,"body",t,1),r},ee.enumDefaultedMember=function(e){var t={type:"EnumDefaultedMember",id:e},r=n.EnumDefaultedMember;return i(r.id,t,"id",e,1),t},ee.enumNumberBody=function(e){var t={type:"EnumNumberBody",members:e,explicitType:null,hasUnknownMembers:null},r=n.EnumNumberBody;return i(r.members,t,"members",e,1),t},ee.enumNumberMember=function(e,t){var r={type:"EnumNumberMember",id:e,init:t},a=n.EnumNumberMember;return i(a.id,r,"id",e,1),i(a.init,r,"init",t,1),r},ee.enumStringBody=function(e){var t={type:"EnumStringBody",members:e,explicitType:null,hasUnknownMembers:null},r=n.EnumStringBody;return i(r.members,t,"members",e,1),t},ee.enumStringMember=function(e,t){var r={type:"EnumStringMember",id:e,init:t},a=n.EnumStringMember;return i(a.id,r,"id",e,1),i(a.init,r,"init",t,1),r},ee.enumSymbolBody=function(e){var t={type:"EnumSymbolBody",members:e,hasUnknownMembers:null},r=n.EnumSymbolBody;return i(r.members,t,"members",e,1),t},ee.existsTypeAnnotation=function(){return{type:"ExistsTypeAnnotation"}},ee.exportAllDeclaration=function(e){var t={type:"ExportAllDeclaration",source:e},r=n.ExportAllDeclaration;return i(r.source,t,"source",e,1),t},ee.exportDefaultDeclaration=function(e){var t={type:"ExportDefaultDeclaration",declaration:e},r=n.ExportDefaultDeclaration;return i(r.declaration,t,"declaration",e,1),t},ee.exportDefaultSpecifier=function(e){var t={type:"ExportDefaultSpecifier",exported:e},r=n.ExportDefaultSpecifier;return i(r.exported,t,"exported",e,1),t},ee.exportNamedDeclaration=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a={type:"ExportNamedDeclaration",declaration:e,specifiers:t,source:r},s=n.ExportNamedDeclaration;return i(s.declaration,a,"declaration",e,1),i(s.specifiers,a,"specifiers",t,1),i(s.source,a,"source",r,1),a},ee.exportNamespaceSpecifier=function(e){var t={type:"ExportNamespaceSpecifier",exported:e},r=n.ExportNamespaceSpecifier;return i(r.exported,t,"exported",e,1),t},ee.exportSpecifier=function(e,t){var r={type:"ExportSpecifier",local:e,exported:t},a=n.ExportSpecifier;return i(a.local,r,"local",e,1),i(a.exported,r,"exported",t,1),r},ee.expressionStatement=function(e){var t={type:"ExpressionStatement",expression:e},r=n.ExpressionStatement;return i(r.expression,t,"expression",e,1),t},ee.file=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a={type:"File",program:e,comments:t,tokens:r},s=n.File;return i(s.program,a,"program",e,1),i(s.comments,a,"comments",t,1),i(s.tokens,a,"tokens",r),a},ee.forInStatement=function(e,t,r){var a={type:"ForInStatement",left:e,right:t,body:r},s=n.ForInStatement;return i(s.left,a,"left",e,1),i(s.right,a,"right",t,1),i(s.body,a,"body",r,1),a},ee.forOfStatement=function(e,t,r){var a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],s={type:"ForOfStatement",left:e,right:t,body:r,await:a},o=n.ForOfStatement;return i(o.left,s,"left",e,1),i(o.right,s,"right",t,1),i(o.body,s,"body",r,1),i(o.await,s,"await",a),s},ee.forStatement=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a=arguments.length>3?arguments[3]:void 0,s={type:"ForStatement",init:e,test:t,update:r,body:a},o=n.ForStatement;return i(o.init,s,"init",e,1),i(o.test,s,"test",t,1),i(o.update,s,"update",r,1),i(o.body,s,"body",a,1),s},ee.functionDeclaration=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],s=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o={type:"FunctionDeclaration",id:e,params:t,body:r,generator:a,async:s},l=n.FunctionDeclaration;return i(l.id,o,"id",e,1),i(l.params,o,"params",t,1),i(l.body,o,"body",r,1),i(l.generator,o,"generator",a),i(l.async,o,"async",s),o},ee.functionExpression=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],s=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o={type:"FunctionExpression",id:e,params:t,body:r,generator:a,async:s},l=n.FunctionExpression;return i(l.id,o,"id",e,1),i(l.params,o,"params",t,1),i(l.body,o,"body",r,1),i(l.generator,o,"generator",a),i(l.async,o,"async",s),o},ee.functionTypeAnnotation=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a=arguments.length>3?arguments[3]:void 0,s={type:"FunctionTypeAnnotation",typeParameters:e,params:t,rest:r,returnType:a},o=n.FunctionTypeAnnotation;return i(o.typeParameters,s,"typeParameters",e,1),i(o.params,s,"params",t,1),i(o.rest,s,"rest",r,1),i(o.returnType,s,"returnType",a,1),s},ee.functionTypeParam=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,r={type:"FunctionTypeParam",name:e,typeAnnotation:t},a=n.FunctionTypeParam;return i(a.name,r,"name",e,1),i(a.typeAnnotation,r,"typeAnnotation",t,1),r},ee.genericTypeAnnotation=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r={type:"GenericTypeAnnotation",id:e,typeParameters:t},a=n.GenericTypeAnnotation;return i(a.id,r,"id",e,1),i(a.typeParameters,r,"typeParameters",t,1),r},ee.identifier=function(e){var t={type:"Identifier",name:e},r=n.Identifier;return i(r.name,t,"name",e),t},ee.ifStatement=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a={type:"IfStatement",test:e,consequent:t,alternate:r},s=n.IfStatement;return i(s.test,a,"test",e,1),i(s.consequent,a,"consequent",t,1),i(s.alternate,a,"alternate",r,1),a},ee.import=function(){return{type:"Import"}},ee.importAttribute=function(e,t){var r={type:"ImportAttribute",key:e,value:t},a=n.ImportAttribute;return i(a.key,r,"key",e,1),i(a.value,r,"value",t,1),r},ee.importDeclaration=function(e,t){var r={type:"ImportDeclaration",specifiers:e,source:t},a=n.ImportDeclaration;return i(a.specifiers,r,"specifiers",e,1),i(a.source,r,"source",t,1),r},ee.importDefaultSpecifier=function(e){var t={type:"ImportDefaultSpecifier",local:e},r=n.ImportDefaultSpecifier;return i(r.local,t,"local",e,1),t},ee.importExpression=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r={type:"ImportExpression",source:e,options:t},a=n.ImportExpression;return i(a.source,r,"source",e,1),i(a.options,r,"options",t,1),r},ee.importNamespaceSpecifier=function(e){var t={type:"ImportNamespaceSpecifier",local:e},r=n.ImportNamespaceSpecifier;return i(r.local,t,"local",e,1),t},ee.importSpecifier=function(e,t){var r={type:"ImportSpecifier",local:e,imported:t},a=n.ImportSpecifier;return i(a.local,r,"local",e,1),i(a.imported,r,"imported",t,1),r},ee.indexedAccessType=function(e,t){var r={type:"IndexedAccessType",objectType:e,indexType:t},a=n.IndexedAccessType;return i(a.objectType,r,"objectType",e,1),i(a.indexType,r,"indexType",t,1),r},ee.inferredPredicate=function(){return{type:"InferredPredicate"}},ee.interfaceDeclaration=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a=arguments.length>3?arguments[3]:void 0,s={type:"InterfaceDeclaration",id:e,typeParameters:t,extends:r,body:a},o=n.InterfaceDeclaration;return i(o.id,s,"id",e,1),i(o.typeParameters,s,"typeParameters",t,1),i(o.extends,s,"extends",r,1),i(o.body,s,"body",a,1),s},ee.interfaceExtends=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r={type:"InterfaceExtends",id:e,typeParameters:t},a=n.InterfaceExtends;return i(a.id,r,"id",e,1),i(a.typeParameters,r,"typeParameters",t,1),r},ee.interfaceTypeAnnotation=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,r={type:"InterfaceTypeAnnotation",extends:e,body:t},a=n.InterfaceTypeAnnotation;return i(a.extends,r,"extends",e,1),i(a.body,r,"body",t,1),r},ee.interpreterDirective=function(e){var t={type:"InterpreterDirective",value:e},r=n.InterpreterDirective;return i(r.value,t,"value",e),t},ee.intersectionTypeAnnotation=function(e){var t={type:"IntersectionTypeAnnotation",types:e},r=n.IntersectionTypeAnnotation;return i(r.types,t,"types",e,1),t},ee.jSXAttribute=ee.jsxAttribute=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r={type:"JSXAttribute",name:e,value:t},a=n.JSXAttribute;return i(a.name,r,"name",e,1),i(a.value,r,"value",t,1),r},ee.jSXClosingElement=ee.jsxClosingElement=function(e){var t={type:"JSXClosingElement",name:e},r=n.JSXClosingElement;return i(r.name,t,"name",e,1),t},ee.jSXClosingFragment=ee.jsxClosingFragment=function(){return{type:"JSXClosingFragment"}},ee.jSXElement=ee.jsxElement=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2?arguments[2]:void 0,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,s={type:"JSXElement",openingElement:e,closingElement:t,children:r,selfClosing:a},o=n.JSXElement;return i(o.openingElement,s,"openingElement",e,1),i(o.closingElement,s,"closingElement",t,1),i(o.children,s,"children",r,1),i(o.selfClosing,s,"selfClosing",a),s},ee.jSXEmptyExpression=ee.jsxEmptyExpression=function(){return{type:"JSXEmptyExpression"}},ee.jSXExpressionContainer=ee.jsxExpressionContainer=function(e){var t={type:"JSXExpressionContainer",expression:e},r=n.JSXExpressionContainer;return i(r.expression,t,"expression",e,1),t},ee.jSXFragment=ee.jsxFragment=function(e,t,r){var a={type:"JSXFragment",openingFragment:e,closingFragment:t,children:r},s=n.JSXFragment;return i(s.openingFragment,a,"openingFragment",e,1),i(s.closingFragment,a,"closingFragment",t,1),i(s.children,a,"children",r,1),a},ee.jSXIdentifier=ee.jsxIdentifier=function(e){var t={type:"JSXIdentifier",name:e},r=n.JSXIdentifier;return i(r.name,t,"name",e),t},ee.jSXMemberExpression=ee.jsxMemberExpression=function(e,t){var r={type:"JSXMemberExpression",object:e,property:t},a=n.JSXMemberExpression;return i(a.object,r,"object",e,1),i(a.property,r,"property",t,1),r},ee.jSXNamespacedName=ee.jsxNamespacedName=function(e,t){var r={type:"JSXNamespacedName",namespace:e,name:t},a=n.JSXNamespacedName;return i(a.namespace,r,"namespace",e,1),i(a.name,r,"name",t,1),r},ee.jSXOpeningElement=ee.jsxOpeningElement=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a={type:"JSXOpeningElement",name:e,attributes:t,selfClosing:r},s=n.JSXOpeningElement;return i(s.name,a,"name",e,1),i(s.attributes,a,"attributes",t,1),i(s.selfClosing,a,"selfClosing",r),a},ee.jSXOpeningFragment=ee.jsxOpeningFragment=function(){return{type:"JSXOpeningFragment"}},ee.jSXSpreadAttribute=ee.jsxSpreadAttribute=function(e){var t={type:"JSXSpreadAttribute",argument:e},r=n.JSXSpreadAttribute;return i(r.argument,t,"argument",e,1),t},ee.jSXSpreadChild=ee.jsxSpreadChild=function(e){var t={type:"JSXSpreadChild",expression:e},r=n.JSXSpreadChild;return i(r.expression,t,"expression",e,1),t},ee.jSXText=ee.jsxText=function(e){var t={type:"JSXText",value:e},r=n.JSXText;return i(r.value,t,"value",e),t},ee.labeledStatement=function(e,t){var r={type:"LabeledStatement",label:e,body:t},a=n.LabeledStatement;return i(a.label,r,"label",e,1),i(a.body,r,"body",t,1),r},ee.logicalExpression=function(e,t,r){var a={type:"LogicalExpression",operator:e,left:t,right:r},s=n.LogicalExpression;return i(s.operator,a,"operator",e),i(s.left,a,"left",t,1),i(s.right,a,"right",r,1),a},ee.memberExpression=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,s={type:"MemberExpression",object:e,property:t,computed:r,optional:a},o=n.MemberExpression;return i(o.object,s,"object",e,1),i(o.property,s,"property",t,1),i(o.computed,s,"computed",r),i(o.optional,s,"optional",a),s},ee.metaProperty=function(e,t){var r={type:"MetaProperty",meta:e,property:t},a=n.MetaProperty;return i(a.meta,r,"meta",e,1),i(a.property,r,"property",t,1),r},ee.mixedTypeAnnotation=function(){return{type:"MixedTypeAnnotation"}},ee.moduleExpression=function(e){var t={type:"ModuleExpression",body:e},r=n.ModuleExpression;return i(r.body,t,"body",e,1),t},ee.newExpression=function(e,t){var r={type:"NewExpression",callee:e,arguments:t},a=n.NewExpression;return i(a.callee,r,"callee",e,1),i(a.arguments,r,"arguments",t,1),r},ee.noop=function(){return{type:"Noop"}},ee.nullLiteral=function(){return{type:"NullLiteral"}},ee.nullLiteralTypeAnnotation=function(){return{type:"NullLiteralTypeAnnotation"}},ee.nullableTypeAnnotation=function(e){var t={type:"NullableTypeAnnotation",typeAnnotation:e},r=n.NullableTypeAnnotation;return i(r.typeAnnotation,t,"typeAnnotation",e,1),t},ee.numberLiteral=function(e){return(0,t.default)("NumberLiteral","NumericLiteral","The node type "),a(e)},ee.numberLiteralTypeAnnotation=function(e){var t={type:"NumberLiteralTypeAnnotation",value:e},r=n.NumberLiteralTypeAnnotation;return i(r.value,t,"value",e),t},ee.numberTypeAnnotation=function(){return{type:"NumberTypeAnnotation"}},ee.numericLiteral=a,ee.objectExpression=function(e){var t={type:"ObjectExpression",properties:e},r=n.ObjectExpression;return i(r.properties,t,"properties",e,1),t},ee.objectMethod=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"method",t=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,s=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o=arguments.length>5&&void 0!==arguments[5]&&arguments[5],l=arguments.length>6&&void 0!==arguments[6]&&arguments[6],p={type:"ObjectMethod",kind:e,key:t,params:r,body:a,computed:s,generator:o,async:l},c=n.ObjectMethod;return i(c.kind,p,"kind",e),i(c.key,p,"key",t,1),i(c.params,p,"params",r,1),i(c.body,p,"body",a,1),i(c.computed,p,"computed",s),i(c.generator,p,"generator",o),i(c.async,p,"async",l),p},ee.objectPattern=function(e){var t={type:"ObjectPattern",properties:e},r=n.ObjectPattern;return i(r.properties,t,"properties",e,1),t},ee.objectProperty=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,o={type:"ObjectProperty",key:e,value:t,computed:r,shorthand:a,decorators:s},l=n.ObjectProperty;return i(l.key,o,"key",e,1),i(l.value,o,"value",t,1),i(l.computed,o,"computed",r),i(l.shorthand,o,"shorthand",a),i(l.decorators,o,"decorators",s,1),o},ee.objectTypeAnnotation=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],s=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o={type:"ObjectTypeAnnotation",properties:e,indexers:t,callProperties:r,internalSlots:a,exact:s},l=n.ObjectTypeAnnotation;return i(l.properties,o,"properties",e,1),i(l.indexers,o,"indexers",t,1),i(l.callProperties,o,"callProperties",r,1),i(l.internalSlots,o,"internalSlots",a,1),i(l.exact,o,"exact",s),o},ee.objectTypeCallProperty=function(e){var t={type:"ObjectTypeCallProperty",value:e,static:null},r=n.ObjectTypeCallProperty;return i(r.value,t,"value",e,1),t},ee.objectTypeIndexer=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,s={type:"ObjectTypeIndexer",id:e,key:t,value:r,variance:a,static:null},o=n.ObjectTypeIndexer;return i(o.id,s,"id",e,1),i(o.key,s,"key",t,1),i(o.value,s,"value",r,1),i(o.variance,s,"variance",a,1),s},ee.objectTypeInternalSlot=function(e,t,r,a,s){var o={type:"ObjectTypeInternalSlot",id:e,value:t,optional:r,static:a,method:s},l=n.ObjectTypeInternalSlot;return i(l.id,o,"id",e,1),i(l.value,o,"value",t,1),i(l.optional,o,"optional",r),i(l.static,o,"static",a),i(l.method,o,"method",s),o},ee.objectTypeProperty=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a={type:"ObjectTypeProperty",key:e,value:t,variance:r,kind:null,method:null,optional:null,proto:null,static:null},s=n.ObjectTypeProperty;return i(s.key,a,"key",e,1),i(s.value,a,"value",t,1),i(s.variance,a,"variance",r,1),a},ee.objectTypeSpreadProperty=function(e){var t={type:"ObjectTypeSpreadProperty",argument:e},r=n.ObjectTypeSpreadProperty;return i(r.argument,t,"argument",e,1),t},ee.opaqueType=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a=arguments.length>3?arguments[3]:void 0,s={type:"OpaqueType",id:e,typeParameters:t,supertype:r,impltype:a},o=n.OpaqueType;return i(o.id,s,"id",e,1),i(o.typeParameters,s,"typeParameters",t,1),i(o.supertype,s,"supertype",r,1),i(o.impltype,s,"impltype",a,1),s},ee.optionalCallExpression=function(e,t,r){var a={type:"OptionalCallExpression",callee:e,arguments:t,optional:r},s=n.OptionalCallExpression;return i(s.callee,a,"callee",e,1),i(s.arguments,a,"arguments",t,1),i(s.optional,a,"optional",r),a},ee.optionalIndexedAccessType=function(e,t){var r={type:"OptionalIndexedAccessType",objectType:e,indexType:t,optional:null},a=n.OptionalIndexedAccessType;return i(a.objectType,r,"objectType",e,1),i(a.indexType,r,"indexType",t,1),r},ee.optionalMemberExpression=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=arguments.length>3?arguments[3]:void 0,s={type:"OptionalMemberExpression",object:e,property:t,computed:r,optional:a},o=n.OptionalMemberExpression;return i(o.object,s,"object",e,1),i(o.property,s,"property",t,1),i(o.computed,s,"computed",r),i(o.optional,s,"optional",a),s},ee.parenthesizedExpression=function(e){var t={type:"ParenthesizedExpression",expression:e},r=n.ParenthesizedExpression;return i(r.expression,t,"expression",e,1),t},ee.pipelineBareFunction=function(e){var t={type:"PipelineBareFunction",callee:e},r=n.PipelineBareFunction;return i(r.callee,t,"callee",e,1),t},ee.pipelinePrimaryTopicReference=function(){return{type:"PipelinePrimaryTopicReference"}},ee.pipelineTopicExpression=function(e){var t={type:"PipelineTopicExpression",expression:e},r=n.PipelineTopicExpression;return i(r.expression,t,"expression",e,1),t},ee.placeholder=function(e,t){var r={type:"Placeholder",expectedNode:e,name:t},a=n.Placeholder;return i(a.expectedNode,r,"expectedNode",e),i(a.name,r,"name",t,1),r},ee.privateName=function(e){var t={type:"PrivateName",id:e},r=n.PrivateName;return i(r.id,t,"id",e,1),t},ee.program=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"script",a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,s={type:"Program",body:e,directives:t,sourceType:r,interpreter:a},o=n.Program;return i(o.body,s,"body",e,1),i(o.directives,s,"directives",t,1),i(o.sourceType,s,"sourceType",r),i(o.interpreter,s,"interpreter",a,1),s},ee.qualifiedTypeIdentifier=function(e,t){var r={type:"QualifiedTypeIdentifier",id:e,qualification:t},a=n.QualifiedTypeIdentifier;return i(a.id,r,"id",e,1),i(a.qualification,r,"qualification",t,1),r},ee.recordExpression=function(e){var t={type:"RecordExpression",properties:e},r=n.RecordExpression;return i(r.properties,t,"properties",e,1),t},ee.regExpLiteral=s,ee.regexLiteral=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return(0,t.default)("RegexLiteral","RegExpLiteral","The node type "),s(e,r)},ee.restElement=o,ee.restProperty=function(e){return(0,t.default)("RestProperty","RestElement","The node type "),o(e)},ee.returnStatement=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t={type:"ReturnStatement",argument:e},r=n.ReturnStatement;return i(r.argument,t,"argument",e,1),t},ee.sequenceExpression=function(e){var t={type:"SequenceExpression",expressions:e},r=n.SequenceExpression;return i(r.expressions,t,"expressions",e,1),t},ee.spreadElement=l,ee.spreadProperty=function(e){return(0,t.default)("SpreadProperty","SpreadElement","The node type "),l(e)},ee.staticBlock=function(e){var t={type:"StaticBlock",body:e},r=n.StaticBlock;return i(r.body,t,"body",e,1),t},ee.stringLiteral=function(e){var t={type:"StringLiteral",value:e},r=n.StringLiteral;return i(r.value,t,"value",e),t},ee.stringLiteralTypeAnnotation=function(e){var t={type:"StringLiteralTypeAnnotation",value:e},r=n.StringLiteralTypeAnnotation;return i(r.value,t,"value",e),t},ee.stringTypeAnnotation=function(){return{type:"StringTypeAnnotation"}},ee.super=function(){return{type:"Super"}},ee.switchCase=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,r={type:"SwitchCase",test:e,consequent:t},a=n.SwitchCase;return i(a.test,r,"test",e,1),i(a.consequent,r,"consequent",t,1),r},ee.switchStatement=function(e,t){var r={type:"SwitchStatement",discriminant:e,cases:t},a=n.SwitchStatement;return i(a.discriminant,r,"discriminant",e,1),i(a.cases,r,"cases",t,1),r},ee.symbolTypeAnnotation=function(){return{type:"SymbolTypeAnnotation"}},ee.taggedTemplateExpression=function(e,t){var r={type:"TaggedTemplateExpression",tag:e,quasi:t},a=n.TaggedTemplateExpression;return i(a.tag,r,"tag",e,1),i(a.quasi,r,"quasi",t,1),r},ee.templateElement=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r={type:"TemplateElement",value:e,tail:t},a=n.TemplateElement;return i(a.value,r,"value",e),i(a.tail,r,"tail",t),r},ee.templateLiteral=function(e,t){var r={type:"TemplateLiteral",quasis:e,expressions:t},a=n.TemplateLiteral;return i(a.quasis,r,"quasis",e,1),i(a.expressions,r,"expressions",t,1),r},ee.thisExpression=function(){return{type:"ThisExpression"}},ee.thisTypeAnnotation=function(){return{type:"ThisTypeAnnotation"}},ee.throwStatement=function(e){var t={type:"ThrowStatement",argument:e},r=n.ThrowStatement;return i(r.argument,t,"argument",e,1),t},ee.topicReference=function(){return{type:"TopicReference"}},ee.tryStatement=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a={type:"TryStatement",block:e,handler:t,finalizer:r},s=n.TryStatement;return i(s.block,a,"block",e,1),i(s.handler,a,"handler",t,1),i(s.finalizer,a,"finalizer",r,1),a},ee.tSAnyKeyword=ee.tsAnyKeyword=function(){return{type:"TSAnyKeyword"}},ee.tSArrayType=ee.tsArrayType=function(e){var t={type:"TSArrayType",elementType:e},r=n.TSArrayType;return i(r.elementType,t,"elementType",e,1),t},ee.tSAsExpression=ee.tsAsExpression=function(e,t){var r={type:"TSAsExpression",expression:e,typeAnnotation:t},a=n.TSAsExpression;return i(a.expression,r,"expression",e,1),i(a.typeAnnotation,r,"typeAnnotation",t,1),r},ee.tSBigIntKeyword=ee.tsBigIntKeyword=function(){return{type:"TSBigIntKeyword"}},ee.tSBooleanKeyword=ee.tsBooleanKeyword=function(){return{type:"TSBooleanKeyword"}},ee.tSCallSignatureDeclaration=ee.tsCallSignatureDeclaration=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a={type:"TSCallSignatureDeclaration",typeParameters:e,parameters:t,typeAnnotation:r},s=n.TSCallSignatureDeclaration;return i(s.typeParameters,a,"typeParameters",e,1),i(s.parameters,a,"parameters",t,1),i(s.typeAnnotation,a,"typeAnnotation",r,1),a},ee.tSConditionalType=ee.tsConditionalType=function(e,t,r,a){var s={type:"TSConditionalType",checkType:e,extendsType:t,trueType:r,falseType:a},o=n.TSConditionalType;return i(o.checkType,s,"checkType",e,1),i(o.extendsType,s,"extendsType",t,1),i(o.trueType,s,"trueType",r,1),i(o.falseType,s,"falseType",a,1),s},ee.tSConstructSignatureDeclaration=ee.tsConstructSignatureDeclaration=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a={type:"TSConstructSignatureDeclaration",typeParameters:e,parameters:t,typeAnnotation:r},s=n.TSConstructSignatureDeclaration;return i(s.typeParameters,a,"typeParameters",e,1),i(s.parameters,a,"parameters",t,1),i(s.typeAnnotation,a,"typeAnnotation",r,1),a},ee.tSConstructorType=ee.tsConstructorType=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a={type:"TSConstructorType",typeParameters:e,parameters:t,typeAnnotation:r},s=n.TSConstructorType;return i(s.typeParameters,a,"typeParameters",e,1),i(s.parameters,a,"parameters",t,1),i(s.typeAnnotation,a,"typeAnnotation",r,1),a},ee.tSDeclareFunction=ee.tsDeclareFunction=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2?arguments[2]:void 0,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,s={type:"TSDeclareFunction",id:e,typeParameters:t,params:r,returnType:a},o=n.TSDeclareFunction;return i(o.id,s,"id",e,1),i(o.typeParameters,s,"typeParameters",t,1),i(o.params,s,"params",r,1),i(o.returnType,s,"returnType",a,1),s},ee.tSDeclareMethod=ee.tsDeclareMethod=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a=arguments.length>3?arguments[3]:void 0,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,o={type:"TSDeclareMethod",decorators:e,key:t,typeParameters:r,params:a,returnType:s},l=n.TSDeclareMethod;return i(l.decorators,o,"decorators",e,1),i(l.key,o,"key",t,1),i(l.typeParameters,o,"typeParameters",r,1),i(l.params,o,"params",a,1),i(l.returnType,o,"returnType",s,1),o},ee.tSEnumBody=ee.tsEnumBody=function(e){var t={type:"TSEnumBody",members:e},r=n.TSEnumBody;return i(r.members,t,"members",e,1),t},ee.tSEnumDeclaration=ee.tsEnumDeclaration=function(e,t){var r={type:"TSEnumDeclaration",id:e,members:t},a=n.TSEnumDeclaration;return i(a.id,r,"id",e,1),i(a.members,r,"members",t,1),r},ee.tSEnumMember=ee.tsEnumMember=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r={type:"TSEnumMember",id:e,initializer:t},a=n.TSEnumMember;return i(a.id,r,"id",e,1),i(a.initializer,r,"initializer",t,1),r},ee.tSExportAssignment=ee.tsExportAssignment=function(e){var t={type:"TSExportAssignment",expression:e},r=n.TSExportAssignment;return i(r.expression,t,"expression",e,1),t},ee.tSExpressionWithTypeArguments=ee.tsExpressionWithTypeArguments=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r={type:"TSExpressionWithTypeArguments",expression:e,typeParameters:t},a=n.TSExpressionWithTypeArguments;return i(a.expression,r,"expression",e,1),i(a.typeParameters,r,"typeParameters",t,1),r},ee.tSExternalModuleReference=ee.tsExternalModuleReference=function(e){var t={type:"TSExternalModuleReference",expression:e},r=n.TSExternalModuleReference;return i(r.expression,t,"expression",e,1),t},ee.tSFunctionType=ee.tsFunctionType=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a={type:"TSFunctionType",typeParameters:e,parameters:t,typeAnnotation:r},s=n.TSFunctionType;return i(s.typeParameters,a,"typeParameters",e,1),i(s.parameters,a,"parameters",t,1),i(s.typeAnnotation,a,"typeAnnotation",r,1),a},ee.tSImportEqualsDeclaration=ee.tsImportEqualsDeclaration=function(e,t){var r={type:"TSImportEqualsDeclaration",id:e,moduleReference:t,isExport:null},a=n.TSImportEqualsDeclaration;return i(a.id,r,"id",e,1),i(a.moduleReference,r,"moduleReference",t,1),r},ee.tSImportType=ee.tsImportType=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a={type:"TSImportType",argument:e,qualifier:t,typeParameters:r},s=n.TSImportType;return i(s.argument,a,"argument",e,1),i(s.qualifier,a,"qualifier",t,1),i(s.typeParameters,a,"typeParameters",r,1),a},ee.tSIndexSignature=ee.tsIndexSignature=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r={type:"TSIndexSignature",parameters:e,typeAnnotation:t},a=n.TSIndexSignature;return i(a.parameters,r,"parameters",e,1),i(a.typeAnnotation,r,"typeAnnotation",t,1),r},ee.tSIndexedAccessType=ee.tsIndexedAccessType=function(e,t){var r={type:"TSIndexedAccessType",objectType:e,indexType:t},a=n.TSIndexedAccessType;return i(a.objectType,r,"objectType",e,1),i(a.indexType,r,"indexType",t,1),r},ee.tSInferType=ee.tsInferType=function(e){var t={type:"TSInferType",typeParameter:e},r=n.TSInferType;return i(r.typeParameter,t,"typeParameter",e,1),t},ee.tSInstantiationExpression=ee.tsInstantiationExpression=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r={type:"TSInstantiationExpression",expression:e,typeParameters:t},a=n.TSInstantiationExpression;return i(a.expression,r,"expression",e,1),i(a.typeParameters,r,"typeParameters",t,1),r},ee.tSInterfaceBody=ee.tsInterfaceBody=function(e){var t={type:"TSInterfaceBody",body:e},r=n.TSInterfaceBody;return i(r.body,t,"body",e,1),t},ee.tSInterfaceDeclaration=ee.tsInterfaceDeclaration=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a=arguments.length>3?arguments[3]:void 0,s={type:"TSInterfaceDeclaration",id:e,typeParameters:t,extends:r,body:a},o=n.TSInterfaceDeclaration;return i(o.id,s,"id",e,1),i(o.typeParameters,s,"typeParameters",t,1),i(o.extends,s,"extends",r,1),i(o.body,s,"body",a,1),s},ee.tSIntersectionType=ee.tsIntersectionType=function(e){var t={type:"TSIntersectionType",types:e},r=n.TSIntersectionType;return i(r.types,t,"types",e,1),t},ee.tSIntrinsicKeyword=ee.tsIntrinsicKeyword=function(){return{type:"TSIntrinsicKeyword"}},ee.tSLiteralType=ee.tsLiteralType=function(e){var t={type:"TSLiteralType",literal:e},r=n.TSLiteralType;return i(r.literal,t,"literal",e,1),t},ee.tSMappedType=ee.tsMappedType=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a={type:"TSMappedType",typeParameter:e,typeAnnotation:t,nameType:r},s=n.TSMappedType;return i(s.typeParameter,a,"typeParameter",e,1),i(s.typeAnnotation,a,"typeAnnotation",t,1),i(s.nameType,a,"nameType",r,1),a},ee.tSMethodSignature=ee.tsMethodSignature=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2?arguments[2]:void 0,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,s={type:"TSMethodSignature",key:e,typeParameters:t,parameters:r,typeAnnotation:a,kind:null},o=n.TSMethodSignature;return i(o.key,s,"key",e,1),i(o.typeParameters,s,"typeParameters",t,1),i(o.parameters,s,"parameters",r,1),i(o.typeAnnotation,s,"typeAnnotation",a,1),s},ee.tSModuleBlock=ee.tsModuleBlock=function(e){var t={type:"TSModuleBlock",body:e},r=n.TSModuleBlock;return i(r.body,t,"body",e,1),t},ee.tSModuleDeclaration=ee.tsModuleDeclaration=function(e,t){var r={type:"TSModuleDeclaration",id:e,body:t,kind:null},a=n.TSModuleDeclaration;return i(a.id,r,"id",e,1),i(a.body,r,"body",t,1),r},ee.tSNamedTupleMember=ee.tsNamedTupleMember=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a={type:"TSNamedTupleMember",label:e,elementType:t,optional:r},s=n.TSNamedTupleMember;return i(s.label,a,"label",e,1),i(s.elementType,a,"elementType",t,1),i(s.optional,a,"optional",r),a},ee.tSNamespaceExportDeclaration=ee.tsNamespaceExportDeclaration=function(e){var t={type:"TSNamespaceExportDeclaration",id:e},r=n.TSNamespaceExportDeclaration;return i(r.id,t,"id",e,1),t},ee.tSNeverKeyword=ee.tsNeverKeyword=function(){return{type:"TSNeverKeyword"}},ee.tSNonNullExpression=ee.tsNonNullExpression=function(e){var t={type:"TSNonNullExpression",expression:e},r=n.TSNonNullExpression;return i(r.expression,t,"expression",e,1),t},ee.tSNullKeyword=ee.tsNullKeyword=function(){return{type:"TSNullKeyword"}},ee.tSNumberKeyword=ee.tsNumberKeyword=function(){return{type:"TSNumberKeyword"}},ee.tSObjectKeyword=ee.tsObjectKeyword=function(){return{type:"TSObjectKeyword"}},ee.tSOptionalType=ee.tsOptionalType=function(e){var t={type:"TSOptionalType",typeAnnotation:e},r=n.TSOptionalType;return i(r.typeAnnotation,t,"typeAnnotation",e,1),t},ee.tSParameterProperty=ee.tsParameterProperty=function(e){var t={type:"TSParameterProperty",parameter:e},r=n.TSParameterProperty;return i(r.parameter,t,"parameter",e,1),t},ee.tSParenthesizedType=ee.tsParenthesizedType=function(e){var t={type:"TSParenthesizedType",typeAnnotation:e},r=n.TSParenthesizedType;return i(r.typeAnnotation,t,"typeAnnotation",e,1),t},ee.tSPropertySignature=ee.tsPropertySignature=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r={type:"TSPropertySignature",key:e,typeAnnotation:t},a=n.TSPropertySignature;return i(a.key,r,"key",e,1),i(a.typeAnnotation,r,"typeAnnotation",t,1),r},ee.tSQualifiedName=ee.tsQualifiedName=function(e,t){var r={type:"TSQualifiedName",left:e,right:t},a=n.TSQualifiedName;return i(a.left,r,"left",e,1),i(a.right,r,"right",t,1),r},ee.tSRestType=ee.tsRestType=function(e){var t={type:"TSRestType",typeAnnotation:e},r=n.TSRestType;return i(r.typeAnnotation,t,"typeAnnotation",e,1),t},ee.tSSatisfiesExpression=ee.tsSatisfiesExpression=function(e,t){var r={type:"TSSatisfiesExpression",expression:e,typeAnnotation:t},a=n.TSSatisfiesExpression;return i(a.expression,r,"expression",e,1),i(a.typeAnnotation,r,"typeAnnotation",t,1),r},ee.tSStringKeyword=ee.tsStringKeyword=function(){return{type:"TSStringKeyword"}},ee.tSSymbolKeyword=ee.tsSymbolKeyword=function(){return{type:"TSSymbolKeyword"}},ee.tSTemplateLiteralType=ee.tsTemplateLiteralType=function(e,t){var r={type:"TSTemplateLiteralType",quasis:e,types:t},a=n.TSTemplateLiteralType;return i(a.quasis,r,"quasis",e,1),i(a.types,r,"types",t,1),r},ee.tSThisType=ee.tsThisType=function(){return{type:"TSThisType"}},ee.tSTupleType=ee.tsTupleType=function(e){var t={type:"TSTupleType",elementTypes:e},r=n.TSTupleType;return i(r.elementTypes,t,"elementTypes",e,1),t},ee.tSTypeAliasDeclaration=ee.tsTypeAliasDeclaration=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2?arguments[2]:void 0,a={type:"TSTypeAliasDeclaration",id:e,typeParameters:t,typeAnnotation:r},s=n.TSTypeAliasDeclaration;return i(s.id,a,"id",e,1),i(s.typeParameters,a,"typeParameters",t,1),i(s.typeAnnotation,a,"typeAnnotation",r,1),a},ee.tSTypeAnnotation=ee.tsTypeAnnotation=function(e){var t={type:"TSTypeAnnotation",typeAnnotation:e},r=n.TSTypeAnnotation;return i(r.typeAnnotation,t,"typeAnnotation",e,1),t},ee.tSTypeAssertion=ee.tsTypeAssertion=function(e,t){var r={type:"TSTypeAssertion",typeAnnotation:e,expression:t},a=n.TSTypeAssertion;return i(a.typeAnnotation,r,"typeAnnotation",e,1),i(a.expression,r,"expression",t,1),r},ee.tSTypeLiteral=ee.tsTypeLiteral=function(e){var t={type:"TSTypeLiteral",members:e},r=n.TSTypeLiteral;return i(r.members,t,"members",e,1),t},ee.tSTypeOperator=ee.tsTypeOperator=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"keyof",r={type:"TSTypeOperator",typeAnnotation:e,operator:t},a=n.TSTypeOperator;return i(a.typeAnnotation,r,"typeAnnotation",e,1),i(a.operator,r,"operator",t),r},ee.tSTypeParameter=ee.tsTypeParameter=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2?arguments[2]:void 0,a={type:"TSTypeParameter",constraint:e,default:t,name:r},s=n.TSTypeParameter;return i(s.constraint,a,"constraint",e,1),i(s.default,a,"default",t,1),i(s.name,a,"name",r),a},ee.tSTypeParameterDeclaration=ee.tsTypeParameterDeclaration=function(e){var t={type:"TSTypeParameterDeclaration",params:e},r=n.TSTypeParameterDeclaration;return i(r.params,t,"params",e,1),t},ee.tSTypeParameterInstantiation=ee.tsTypeParameterInstantiation=function(e){var t={type:"TSTypeParameterInstantiation",params:e},r=n.TSTypeParameterInstantiation;return i(r.params,t,"params",e,1),t},ee.tSTypePredicate=ee.tsTypePredicate=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a={type:"TSTypePredicate",parameterName:e,typeAnnotation:t,asserts:r},s=n.TSTypePredicate;return i(s.parameterName,a,"parameterName",e,1),i(s.typeAnnotation,a,"typeAnnotation",t,1),i(s.asserts,a,"asserts",r),a},ee.tSTypeQuery=ee.tsTypeQuery=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r={type:"TSTypeQuery",exprName:e,typeParameters:t},a=n.TSTypeQuery;return i(a.exprName,r,"exprName",e,1),i(a.typeParameters,r,"typeParameters",t,1),r},ee.tSTypeReference=ee.tsTypeReference=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r={type:"TSTypeReference",typeName:e,typeParameters:t},a=n.TSTypeReference;return i(a.typeName,r,"typeName",e,1),i(a.typeParameters,r,"typeParameters",t,1),r},ee.tSUndefinedKeyword=ee.tsUndefinedKeyword=function(){return{type:"TSUndefinedKeyword"}},ee.tSUnionType=ee.tsUnionType=function(e){var t={type:"TSUnionType",types:e},r=n.TSUnionType;return i(r.types,t,"types",e,1),t},ee.tSUnknownKeyword=ee.tsUnknownKeyword=function(){return{type:"TSUnknownKeyword"}},ee.tSVoidKeyword=ee.tsVoidKeyword=function(){return{type:"TSVoidKeyword"}},ee.tupleExpression=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t={type:"TupleExpression",elements:e},r=n.TupleExpression;return i(r.elements,t,"elements",e,1),t},ee.tupleTypeAnnotation=function(e){var t={type:"TupleTypeAnnotation",types:e},r=n.TupleTypeAnnotation;return i(r.types,t,"types",e,1),t},ee.typeAlias=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2?arguments[2]:void 0,a={type:"TypeAlias",id:e,typeParameters:t,right:r},s=n.TypeAlias;return i(s.id,a,"id",e,1),i(s.typeParameters,a,"typeParameters",t,1),i(s.right,a,"right",r,1),a},ee.typeAnnotation=function(e){var t={type:"TypeAnnotation",typeAnnotation:e},r=n.TypeAnnotation;return i(r.typeAnnotation,t,"typeAnnotation",e,1),t},ee.typeCastExpression=function(e,t){var r={type:"TypeCastExpression",expression:e,typeAnnotation:t},a=n.TypeCastExpression;return i(a.expression,r,"expression",e,1),i(a.typeAnnotation,r,"typeAnnotation",t,1),r},ee.typeParameter=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a={type:"TypeParameter",bound:e,default:t,variance:r,name:null},s=n.TypeParameter;return i(s.bound,a,"bound",e,1),i(s.default,a,"default",t,1),i(s.variance,a,"variance",r,1),a},ee.typeParameterDeclaration=function(e){var t={type:"TypeParameterDeclaration",params:e},r=n.TypeParameterDeclaration;return i(r.params,t,"params",e,1),t},ee.typeParameterInstantiation=function(e){var t={type:"TypeParameterInstantiation",params:e},r=n.TypeParameterInstantiation;return i(r.params,t,"params",e,1),t},ee.typeofTypeAnnotation=function(e){var t={type:"TypeofTypeAnnotation",argument:e},r=n.TypeofTypeAnnotation;return i(r.argument,t,"argument",e,1),t},ee.unaryExpression=function(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a={type:"UnaryExpression",operator:e,argument:t,prefix:r},s=n.UnaryExpression;return i(s.operator,a,"operator",e),i(s.argument,a,"argument",t,1),i(s.prefix,a,"prefix",r),a},ee.unionTypeAnnotation=function(e){var t={type:"UnionTypeAnnotation",types:e},r=n.UnionTypeAnnotation;return i(r.types,t,"types",e,1),t},ee.updateExpression=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a={type:"UpdateExpression",operator:e,argument:t,prefix:r},s=n.UpdateExpression;return i(s.operator,a,"operator",e),i(s.argument,a,"argument",t,1),i(s.prefix,a,"prefix",r),a},ee.v8IntrinsicIdentifier=function(e){var t={type:"V8IntrinsicIdentifier",name:e},r=n.V8IntrinsicIdentifier;return i(r.name,t,"name",e),t},ee.variableDeclaration=function(e,t){var r={type:"VariableDeclaration",kind:e,declarations:t},a=n.VariableDeclaration;return i(a.kind,r,"kind",e),i(a.declarations,r,"declarations",t,1),r},ee.variableDeclarator=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r={type:"VariableDeclarator",id:e,init:t},a=n.VariableDeclarator;return i(a.id,r,"id",e,1),i(a.init,r,"init",t,1),r},ee.variance=function(e){var t={type:"Variance",kind:e},r=n.Variance;return i(r.kind,t,"kind",e),t},ee.voidPattern=function(){return{type:"VoidPattern"}},ee.voidTypeAnnotation=function(){return{type:"VoidTypeAnnotation"}},ee.whileStatement=function(e,t){var r={type:"WhileStatement",test:e,body:t},a=n.WhileStatement;return i(a.test,r,"test",e,1),i(a.body,r,"body",t,1),r},ee.withStatement=function(e,t){var r={type:"WithStatement",object:e,body:t},a=n.WithStatement;return i(a.object,r,"object",e,1),i(a.body,r,"body",t,1),r},ee.yieldExpression=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r={type:"YieldExpression",argument:e,delegate:t},a=n.YieldExpression;return i(a.argument,r,"argument",e,1),i(a.delegate,r,"delegate",t),r};var e=Qe(),t=W(),r=ke(),{validateInternal:i}=e,{NODE_FIELDS:n}=r;function a(e){var t={type:"NumericLiteral",value:e},r=n.NumericLiteral;return i(r.value,t,"value",e),t}function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r={type:"RegExpLiteral",pattern:e,flags:t},a=n.RegExpLiteral;return i(a.pattern,r,"pattern",e),i(a.flags,r,"flags",t),r}function o(e){var t={type:"RestElement",argument:e},r=n.RestElement;return i(r.argument,t,"argument",e,1),t}function l(e){var t={type:"SpreadElement",argument:e},r=n.SpreadElement;return i(r.argument,t,"argument",e,1),t}return ee}var Ze,et,tt,rt,it={};function nt(){return et||(et=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=$e();Object.keys(t).forEach((function(r){"default"!==r&&"__esModule"!==r&&(r in e&&e[r]===t[r]||Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[r]}}))}));var r=function(){if(Ze)return it;Ze=1,Object.defineProperty(it,"__esModule",{value:!0}),it.JSXIdentifier=it.JSXFragment=it.JSXExpressionContainer=it.JSXEmptyExpression=it.JSXElement=it.JSXClosingFragment=it.JSXClosingElement=it.JSXAttribute=it.IntersectionTypeAnnotation=it.InterpreterDirective=it.InterfaceTypeAnnotation=it.InterfaceExtends=it.InterfaceDeclaration=it.InferredPredicate=it.IndexedAccessType=it.ImportSpecifier=it.ImportNamespaceSpecifier=it.ImportExpression=it.ImportDefaultSpecifier=it.ImportDeclaration=it.ImportAttribute=it.Import=it.IfStatement=it.Identifier=it.GenericTypeAnnotation=it.FunctionTypeParam=it.FunctionTypeAnnotation=it.FunctionExpression=it.FunctionDeclaration=it.ForStatement=it.ForOfStatement=it.ForInStatement=it.File=it.ExpressionStatement=it.ExportSpecifier=it.ExportNamespaceSpecifier=it.ExportNamedDeclaration=it.ExportDefaultSpecifier=it.ExportDefaultDeclaration=it.ExportAllDeclaration=it.ExistsTypeAnnotation=it.EnumSymbolBody=it.EnumStringMember=it.EnumStringBody=it.EnumNumberMember=it.EnumNumberBody=it.EnumDefaultedMember=it.EnumDeclaration=it.EnumBooleanMember=it.EnumBooleanBody=it.EmptyTypeAnnotation=it.EmptyStatement=it.DoWhileStatement=it.DoExpression=it.DirectiveLiteral=it.Directive=it.Decorator=it.DeclaredPredicate=it.DeclareVariable=it.DeclareTypeAlias=it.DeclareOpaqueType=it.DeclareModuleExports=it.DeclareModule=it.DeclareInterface=it.DeclareFunction=it.DeclareExportDeclaration=it.DeclareExportAllDeclaration=it.DeclareClass=it.DecimalLiteral=it.DebuggerStatement=it.ContinueStatement=it.ConditionalExpression=it.ClassProperty=it.ClassPrivateProperty=it.ClassPrivateMethod=it.ClassMethod=it.ClassImplements=it.ClassExpression=it.ClassDeclaration=it.ClassBody=it.ClassAccessorProperty=it.CatchClause=it.CallExpression=it.BreakStatement=it.BooleanTypeAnnotation=it.BooleanLiteralTypeAnnotation=it.BooleanLiteral=it.BlockStatement=it.BindExpression=it.BinaryExpression=it.BigIntLiteral=it.AwaitExpression=it.AssignmentPattern=it.AssignmentExpression=it.ArrowFunctionExpression=it.ArrayTypeAnnotation=it.ArrayPattern=it.ArrayExpression=it.ArgumentPlaceholder=it.AnyTypeAnnotation=void 0,it.TSNumberKeyword=it.TSNullKeyword=it.TSNonNullExpression=it.TSNeverKeyword=it.TSNamespaceExportDeclaration=it.TSNamedTupleMember=it.TSModuleDeclaration=it.TSModuleBlock=it.TSMethodSignature=it.TSMappedType=it.TSLiteralType=it.TSIntrinsicKeyword=it.TSIntersectionType=it.TSInterfaceDeclaration=it.TSInterfaceBody=it.TSInstantiationExpression=it.TSInferType=it.TSIndexedAccessType=it.TSIndexSignature=it.TSImportType=it.TSImportEqualsDeclaration=it.TSFunctionType=it.TSExternalModuleReference=it.TSExpressionWithTypeArguments=it.TSExportAssignment=it.TSEnumMember=it.TSEnumDeclaration=it.TSEnumBody=it.TSDeclareMethod=it.TSDeclareFunction=it.TSConstructorType=it.TSConstructSignatureDeclaration=it.TSConditionalType=it.TSCallSignatureDeclaration=it.TSBooleanKeyword=it.TSBigIntKeyword=it.TSAsExpression=it.TSArrayType=it.TSAnyKeyword=it.SymbolTypeAnnotation=it.SwitchStatement=it.SwitchCase=it.Super=it.StringTypeAnnotation=it.StringLiteralTypeAnnotation=it.StringLiteral=it.StaticBlock=it.SpreadProperty=it.SpreadElement=it.SequenceExpression=it.ReturnStatement=it.RestProperty=it.RestElement=it.RegexLiteral=it.RegExpLiteral=it.RecordExpression=it.QualifiedTypeIdentifier=it.Program=it.PrivateName=it.Placeholder=it.PipelineTopicExpression=it.PipelinePrimaryTopicReference=it.PipelineBareFunction=it.ParenthesizedExpression=it.OptionalMemberExpression=it.OptionalIndexedAccessType=it.OptionalCallExpression=it.OpaqueType=it.ObjectTypeSpreadProperty=it.ObjectTypeProperty=it.ObjectTypeInternalSlot=it.ObjectTypeIndexer=it.ObjectTypeCallProperty=it.ObjectTypeAnnotation=it.ObjectProperty=it.ObjectPattern=it.ObjectMethod=it.ObjectExpression=it.NumericLiteral=it.NumberTypeAnnotation=it.NumberLiteralTypeAnnotation=it.NumberLiteral=it.NullableTypeAnnotation=it.NullLiteralTypeAnnotation=it.NullLiteral=it.Noop=it.NewExpression=it.ModuleExpression=it.MixedTypeAnnotation=it.MetaProperty=it.MemberExpression=it.LogicalExpression=it.LabeledStatement=it.JSXText=it.JSXSpreadChild=it.JSXSpreadAttribute=it.JSXOpeningFragment=it.JSXOpeningElement=it.JSXNamespacedName=it.JSXMemberExpression=void 0,it.YieldExpression=it.WithStatement=it.WhileStatement=it.VoidTypeAnnotation=it.VoidPattern=it.Variance=it.VariableDeclarator=it.VariableDeclaration=it.V8IntrinsicIdentifier=it.UpdateExpression=it.UnionTypeAnnotation=it.UnaryExpression=it.TypeofTypeAnnotation=it.TypeParameterInstantiation=it.TypeParameterDeclaration=it.TypeParameter=it.TypeCastExpression=it.TypeAnnotation=it.TypeAlias=it.TupleTypeAnnotation=it.TupleExpression=it.TryStatement=it.TopicReference=it.ThrowStatement=it.ThisTypeAnnotation=it.ThisExpression=it.TemplateLiteral=it.TemplateElement=it.TaggedTemplateExpression=it.TSVoidKeyword=it.TSUnknownKeyword=it.TSUnionType=it.TSUndefinedKeyword=it.TSTypeReference=it.TSTypeQuery=it.TSTypePredicate=it.TSTypeParameterInstantiation=it.TSTypeParameterDeclaration=it.TSTypeParameter=it.TSTypeOperator=it.TSTypeLiteral=it.TSTypeAssertion=it.TSTypeAnnotation=it.TSTypeAliasDeclaration=it.TSTupleType=it.TSThisType=it.TSTemplateLiteralType=it.TSSymbolKeyword=it.TSStringKeyword=it.TSSatisfiesExpression=it.TSRestType=it.TSQualifiedName=it.TSPropertySignature=it.TSParenthesizedType=it.TSParameterProperty=it.TSOptionalType=it.TSObjectKeyword=void 0;var e=$e();function t(t){return e[t]}return W(),it.ArrayExpression=t("arrayExpression"),it.AssignmentExpression=t("assignmentExpression"),it.BinaryExpression=t("binaryExpression"),it.InterpreterDirective=t("interpreterDirective"),it.Directive=t("directive"),it.DirectiveLiteral=t("directiveLiteral"),it.BlockStatement=t("blockStatement"),it.BreakStatement=t("breakStatement"),it.CallExpression=t("callExpression"),it.CatchClause=t("catchClause"),it.ConditionalExpression=t("conditionalExpression"),it.ContinueStatement=t("continueStatement"),it.DebuggerStatement=t("debuggerStatement"),it.DoWhileStatement=t("doWhileStatement"),it.EmptyStatement=t("emptyStatement"),it.ExpressionStatement=t("expressionStatement"),it.File=t("file"),it.ForInStatement=t("forInStatement"),it.ForStatement=t("forStatement"),it.FunctionDeclaration=t("functionDeclaration"),it.FunctionExpression=t("functionExpression"),it.Identifier=t("identifier"),it.IfStatement=t("ifStatement"),it.LabeledStatement=t("labeledStatement"),it.StringLiteral=t("stringLiteral"),it.NumericLiteral=t("numericLiteral"),it.NullLiteral=t("nullLiteral"),it.BooleanLiteral=t("booleanLiteral"),it.RegExpLiteral=t("regExpLiteral"),it.LogicalExpression=t("logicalExpression"),it.MemberExpression=t("memberExpression"),it.NewExpression=t("newExpression"),it.Program=t("program"),it.ObjectExpression=t("objectExpression"),it.ObjectMethod=t("objectMethod"),it.ObjectProperty=t("objectProperty"),it.RestElement=t("restElement"),it.ReturnStatement=t("returnStatement"),it.SequenceExpression=t("sequenceExpression"),it.ParenthesizedExpression=t("parenthesizedExpression"),it.SwitchCase=t("switchCase"),it.SwitchStatement=t("switchStatement"),it.ThisExpression=t("thisExpression"),it.ThrowStatement=t("throwStatement"),it.TryStatement=t("tryStatement"),it.UnaryExpression=t("unaryExpression"),it.UpdateExpression=t("updateExpression"),it.VariableDeclaration=t("variableDeclaration"),it.VariableDeclarator=t("variableDeclarator"),it.WhileStatement=t("whileStatement"),it.WithStatement=t("withStatement"),it.AssignmentPattern=t("assignmentPattern"),it.ArrayPattern=t("arrayPattern"),it.ArrowFunctionExpression=t("arrowFunctionExpression"),it.ClassBody=t("classBody"),it.ClassExpression=t("classExpression"),it.ClassDeclaration=t("classDeclaration"),it.ExportAllDeclaration=t("exportAllDeclaration"),it.ExportDefaultDeclaration=t("exportDefaultDeclaration"),it.ExportNamedDeclaration=t("exportNamedDeclaration"),it.ExportSpecifier=t("exportSpecifier"),it.ForOfStatement=t("forOfStatement"),it.ImportDeclaration=t("importDeclaration"),it.ImportDefaultSpecifier=t("importDefaultSpecifier"),it.ImportNamespaceSpecifier=t("importNamespaceSpecifier"),it.ImportSpecifier=t("importSpecifier"),it.ImportExpression=t("importExpression"),it.MetaProperty=t("metaProperty"),it.ClassMethod=t("classMethod"),it.ObjectPattern=t("objectPattern"),it.SpreadElement=t("spreadElement"),it.Super=t("super"),it.TaggedTemplateExpression=t("taggedTemplateExpression"),it.TemplateElement=t("templateElement"),it.TemplateLiteral=t("templateLiteral"),it.YieldExpression=t("yieldExpression"),it.AwaitExpression=t("awaitExpression"),it.Import=t("import"),it.BigIntLiteral=t("bigIntLiteral"),it.ExportNamespaceSpecifier=t("exportNamespaceSpecifier"),it.OptionalMemberExpression=t("optionalMemberExpression"),it.OptionalCallExpression=t("optionalCallExpression"),it.ClassProperty=t("classProperty"),it.ClassAccessorProperty=t("classAccessorProperty"),it.ClassPrivateProperty=t("classPrivateProperty"),it.ClassPrivateMethod=t("classPrivateMethod"),it.PrivateName=t("privateName"),it.StaticBlock=t("staticBlock"),it.ImportAttribute=t("importAttribute"),it.AnyTypeAnnotation=t("anyTypeAnnotation"),it.ArrayTypeAnnotation=t("arrayTypeAnnotation"),it.BooleanTypeAnnotation=t("booleanTypeAnnotation"),it.BooleanLiteralTypeAnnotation=t("booleanLiteralTypeAnnotation"),it.NullLiteralTypeAnnotation=t("nullLiteralTypeAnnotation"),it.ClassImplements=t("classImplements"),it.DeclareClass=t("declareClass"),it.DeclareFunction=t("declareFunction"),it.DeclareInterface=t("declareInterface"),it.DeclareModule=t("declareModule"),it.DeclareModuleExports=t("declareModuleExports"),it.DeclareTypeAlias=t("declareTypeAlias"),it.DeclareOpaqueType=t("declareOpaqueType"),it.DeclareVariable=t("declareVariable"),it.DeclareExportDeclaration=t("declareExportDeclaration"),it.DeclareExportAllDeclaration=t("declareExportAllDeclaration"),it.DeclaredPredicate=t("declaredPredicate"),it.ExistsTypeAnnotation=t("existsTypeAnnotation"),it.FunctionTypeAnnotation=t("functionTypeAnnotation"),it.FunctionTypeParam=t("functionTypeParam"),it.GenericTypeAnnotation=t("genericTypeAnnotation"),it.InferredPredicate=t("inferredPredicate"),it.InterfaceExtends=t("interfaceExtends"),it.InterfaceDeclaration=t("interfaceDeclaration"),it.InterfaceTypeAnnotation=t("interfaceTypeAnnotation"),it.IntersectionTypeAnnotation=t("intersectionTypeAnnotation"),it.MixedTypeAnnotation=t("mixedTypeAnnotation"),it.EmptyTypeAnnotation=t("emptyTypeAnnotation"),it.NullableTypeAnnotation=t("nullableTypeAnnotation"),it.NumberLiteralTypeAnnotation=t("numberLiteralTypeAnnotation"),it.NumberTypeAnnotation=t("numberTypeAnnotation"),it.ObjectTypeAnnotation=t("objectTypeAnnotation"),it.ObjectTypeInternalSlot=t("objectTypeInternalSlot"),it.ObjectTypeCallProperty=t("objectTypeCallProperty"),it.ObjectTypeIndexer=t("objectTypeIndexer"),it.ObjectTypeProperty=t("objectTypeProperty"),it.ObjectTypeSpreadProperty=t("objectTypeSpreadProperty"),it.OpaqueType=t("opaqueType"),it.QualifiedTypeIdentifier=t("qualifiedTypeIdentifier"),it.StringLiteralTypeAnnotation=t("stringLiteralTypeAnnotation"),it.StringTypeAnnotation=t("stringTypeAnnotation"),it.SymbolTypeAnnotation=t("symbolTypeAnnotation"),it.ThisTypeAnnotation=t("thisTypeAnnotation"),it.TupleTypeAnnotation=t("tupleTypeAnnotation"),it.TypeofTypeAnnotation=t("typeofTypeAnnotation"),it.TypeAlias=t("typeAlias"),it.TypeAnnotation=t("typeAnnotation"),it.TypeCastExpression=t("typeCastExpression"),it.TypeParameter=t("typeParameter"),it.TypeParameterDeclaration=t("typeParameterDeclaration"),it.TypeParameterInstantiation=t("typeParameterInstantiation"),it.UnionTypeAnnotation=t("unionTypeAnnotation"),it.Variance=t("variance"),it.VoidTypeAnnotation=t("voidTypeAnnotation"),it.EnumDeclaration=t("enumDeclaration"),it.EnumBooleanBody=t("enumBooleanBody"),it.EnumNumberBody=t("enumNumberBody"),it.EnumStringBody=t("enumStringBody"),it.EnumSymbolBody=t("enumSymbolBody"),it.EnumBooleanMember=t("enumBooleanMember"),it.EnumNumberMember=t("enumNumberMember"),it.EnumStringMember=t("enumStringMember"),it.EnumDefaultedMember=t("enumDefaultedMember"),it.IndexedAccessType=t("indexedAccessType"),it.OptionalIndexedAccessType=t("optionalIndexedAccessType"),it.JSXAttribute=t("jsxAttribute"),it.JSXClosingElement=t("jsxClosingElement"),it.JSXElement=t("jsxElement"),it.JSXEmptyExpression=t("jsxEmptyExpression"),it.JSXExpressionContainer=t("jsxExpressionContainer"),it.JSXSpreadChild=t("jsxSpreadChild"),it.JSXIdentifier=t("jsxIdentifier"),it.JSXMemberExpression=t("jsxMemberExpression"),it.JSXNamespacedName=t("jsxNamespacedName"),it.JSXOpeningElement=t("jsxOpeningElement"),it.JSXSpreadAttribute=t("jsxSpreadAttribute"),it.JSXText=t("jsxText"),it.JSXFragment=t("jsxFragment"),it.JSXOpeningFragment=t("jsxOpeningFragment"),it.JSXClosingFragment=t("jsxClosingFragment"),it.Noop=t("noop"),it.Placeholder=t("placeholder"),it.V8IntrinsicIdentifier=t("v8IntrinsicIdentifier"),it.ArgumentPlaceholder=t("argumentPlaceholder"),it.BindExpression=t("bindExpression"),it.Decorator=t("decorator"),it.DoExpression=t("doExpression"),it.ExportDefaultSpecifier=t("exportDefaultSpecifier"),it.RecordExpression=t("recordExpression"),it.TupleExpression=t("tupleExpression"),it.DecimalLiteral=t("decimalLiteral"),it.ModuleExpression=t("moduleExpression"),it.TopicReference=t("topicReference"),it.PipelineTopicExpression=t("pipelineTopicExpression"),it.PipelineBareFunction=t("pipelineBareFunction"),it.PipelinePrimaryTopicReference=t("pipelinePrimaryTopicReference"),it.VoidPattern=t("voidPattern"),it.TSParameterProperty=t("tsParameterProperty"),it.TSDeclareFunction=t("tsDeclareFunction"),it.TSDeclareMethod=t("tsDeclareMethod"),it.TSQualifiedName=t("tsQualifiedName"),it.TSCallSignatureDeclaration=t("tsCallSignatureDeclaration"),it.TSConstructSignatureDeclaration=t("tsConstructSignatureDeclaration"),it.TSPropertySignature=t("tsPropertySignature"),it.TSMethodSignature=t("tsMethodSignature"),it.TSIndexSignature=t("tsIndexSignature"),it.TSAnyKeyword=t("tsAnyKeyword"),it.TSBooleanKeyword=t("tsBooleanKeyword"),it.TSBigIntKeyword=t("tsBigIntKeyword"),it.TSIntrinsicKeyword=t("tsIntrinsicKeyword"),it.TSNeverKeyword=t("tsNeverKeyword"),it.TSNullKeyword=t("tsNullKeyword"),it.TSNumberKeyword=t("tsNumberKeyword"),it.TSObjectKeyword=t("tsObjectKeyword"),it.TSStringKeyword=t("tsStringKeyword"),it.TSSymbolKeyword=t("tsSymbolKeyword"),it.TSUndefinedKeyword=t("tsUndefinedKeyword"),it.TSUnknownKeyword=t("tsUnknownKeyword"),it.TSVoidKeyword=t("tsVoidKeyword"),it.TSThisType=t("tsThisType"),it.TSFunctionType=t("tsFunctionType"),it.TSConstructorType=t("tsConstructorType"),it.TSTypeReference=t("tsTypeReference"),it.TSTypePredicate=t("tsTypePredicate"),it.TSTypeQuery=t("tsTypeQuery"),it.TSTypeLiteral=t("tsTypeLiteral"),it.TSArrayType=t("tsArrayType"),it.TSTupleType=t("tsTupleType"),it.TSOptionalType=t("tsOptionalType"),it.TSRestType=t("tsRestType"),it.TSNamedTupleMember=t("tsNamedTupleMember"),it.TSUnionType=t("tsUnionType"),it.TSIntersectionType=t("tsIntersectionType"),it.TSConditionalType=t("tsConditionalType"),it.TSInferType=t("tsInferType"),it.TSParenthesizedType=t("tsParenthesizedType"),it.TSTypeOperator=t("tsTypeOperator"),it.TSIndexedAccessType=t("tsIndexedAccessType"),it.TSMappedType=t("tsMappedType"),it.TSTemplateLiteralType=t("tsTemplateLiteralType"),it.TSLiteralType=t("tsLiteralType"),it.TSExpressionWithTypeArguments=t("tsExpressionWithTypeArguments"),it.TSInterfaceDeclaration=t("tsInterfaceDeclaration"),it.TSInterfaceBody=t("tsInterfaceBody"),it.TSTypeAliasDeclaration=t("tsTypeAliasDeclaration"),it.TSInstantiationExpression=t("tsInstantiationExpression"),it.TSAsExpression=t("tsAsExpression"),it.TSSatisfiesExpression=t("tsSatisfiesExpression"),it.TSTypeAssertion=t("tsTypeAssertion"),it.TSEnumBody=t("tsEnumBody"),it.TSEnumDeclaration=t("tsEnumDeclaration"),it.TSEnumMember=t("tsEnumMember"),it.TSModuleDeclaration=t("tsModuleDeclaration"),it.TSModuleBlock=t("tsModuleBlock"),it.TSImportType=t("tsImportType"),it.TSImportEqualsDeclaration=t("tsImportEqualsDeclaration"),it.TSExternalModuleReference=t("tsExternalModuleReference"),it.TSNonNullExpression=t("tsNonNullExpression"),it.TSExportAssignment=t("tsExportAssignment"),it.TSNamespaceExportDeclaration=t("tsNamespaceExportDeclaration"),it.TSTypeAnnotation=t("tsTypeAnnotation"),it.TSTypeParameterInstantiation=t("tsTypeParameterInstantiation"),it.TSTypeParameterDeclaration=t("tsTypeParameterDeclaration"),it.TSTypeParameter=t("tsTypeParameter"),it.NumberLiteral=e.numberLiteral,it.RegexLiteral=e.regexLiteral,it.RestProperty=e.restProperty,it.SpreadProperty=e.spreadProperty,it}();Object.keys(r).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===r[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return r[t]}}))}))}(Z)),Z}function at(){if(rt)return Q;rt=1,Object.defineProperty(Q,"__esModule",{value:!0}),Q.default=function(r){for(var i=[],n=0;n<r.children.length;n++){var a=r.children[n];(0,e.isJSXText)(a)?(0,t.default)(a,i):((0,e.isJSXExpressionContainer)(a)&&(a=a.expression),(0,e.isJSXEmptyExpression)(a)||i.push(a))}return i};var e=Y(),t=function(){if(tt)return $;tt=1,Object.defineProperty($,"__esModule",{value:!0}),$.default=function(r,i){for(var n=r.value.split(/\r\n|\n|\r/),a=0,s=0;s<n.length;s++)/[^ \t]/.exec(n[s])&&(a=s);for(var o="",l=0;l<n.length;l++){var p=n[l],c=0===l,u=l===n.length-1,h=l===a,d=p.replace(/\t/g," ");c||(d=d.replace(/^ +/,"")),u||(d=d.replace(/ +$/,"")),d&&(h||(d+=" "),o+=d)}o&&i.push((0,t.inherits)((0,e.stringLiteral)(o),r))};var e=nt(),t=Oi();return $}();return Q}var st,ot,lt={},pt={};function ct(){if(st)return pt;st=1,Object.defineProperty(pt,"__esModule",{value:!0}),pt.default=function(t){return!(!t||!e.VISITOR_KEYS[t.type])};var e=Ge();return pt}var ut,ht={};var dt,ft={};var mt,yt,vt={},Tt={};function gt(){if(mt)return Tt;mt=1,Object.defineProperty(Tt,"__esModule",{value:!0}),Tt.default=function r(i){for(var n=Array.from(i),a=new Map,s=new Map,o=new Set,l=[],p=0;p<n.length;p++){var c=n[p];if(c&&!l.includes(c)){if((0,e.isAnyTypeAnnotation)(c))return[c];if((0,e.isFlowBaseAnnotation)(c))s.set(c.type,c);else if((0,e.isUnionTypeAnnotation)(c))o.has(c.types)||(n.push(...c.types),o.add(c.types));else if((0,e.isGenericTypeAnnotation)(c)){var u=t(c.id);if(a.has(u)){var h=a.get(u);h.typeParameters?c.typeParameters&&(h.typeParameters.params.push(...c.typeParameters.params),h.typeParameters.params=r(h.typeParameters.params)):h=c.typeParameters}else a.set(u,c)}else l.push(c)}}for(var[,d]of s)l.push(d);for(var[,f]of a)l.push(f);return l};var e=Y();function t(r){return(0,e.isIdentifier)(r)?r.name:"".concat(r.id.name,".").concat(t(r.qualification))}return Tt}var St,xt,bt={},Pt={};function Et(){if(xt)return bt;xt=1,Object.defineProperty(bt,"__esModule",{value:!0}),bt.default=function(i){var n=i.map((e=>(0,r.isTSTypeAnnotation)(e)?e.typeAnnotation:e)),a=(0,t.default)(n);return 1===a.length?a[0]:(0,e.tsUnionType)(a)};var e=nt(),t=function(){if(St)return Pt;St=1,Object.defineProperty(Pt,"__esModule",{value:!0}),Pt.default=function r(i){for(var n=Array.from(i),a=new Map,s=new Map,o=new Set,l=[],p=0;p<n.length;p++){var c=n[p];if(c&&!l.includes(c)){if((0,e.isTSAnyKeyword)(c))return[c];if((0,e.isTSBaseType)(c))s.set(c.type,c);else if((0,e.isTSUnionType)(c))o.has(c.types)||(n.push(...c.types),o.add(c.types));else{var u="typeParameters";if((0,e.isTSTypeReference)(c)&&c[u]){var h=c[u],d=t(c.typeName);if(a.has(d)){var f=a.get(d),m=f[u];m?(m.params.push(...h.params),m.params=r(m.params)):f=h}else a.set(d,c)}else l.push(c)}}}for(var[,y]of s)l.push(y);for(var[,v]of a)l.push(v);return l};var e=Y();function t(r){return(0,e.isIdentifier)(r)?r.name:(0,e.isThisExpression)(r)?"this":"".concat(r.right.name,".").concat(t(r.left))}return Pt}(),r=Y();return bt}var At,Ct={};function wt(){if(At)return Ct;At=1,Object.defineProperty(Ct,"__esModule",{value:!0}),Ct.buildUndefinedNode=function(){return(0,e.unaryExpression)("void",(0,e.numericLiteral)(0),!0)};var e=nt();return Ct}var It,Nt={};function kt(){if(It)return Nt;It=1,Object.defineProperty(Nt,"__esModule",{value:!0}),Nt.default=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return a(e,t,r,new Map)};var e=Ge(),t=Y(),{hasOwn:r}={hasOwn:Function.call.bind(Object.prototype.hasOwnProperty)};function i(e,t,r,i){return e&&"string"==typeof e.type?a(e,t,r,i):e}function n(e,t,r,n){return Array.isArray(e)?e.map((e=>i(e,t,r,n))):i(e,t,r,n)}function a(i){var a=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],l=arguments.length>3?arguments[3]:void 0;if(!i)return i;var{type:p}=i,c={type:i.type};if((0,t.isIdentifier)(i))c.name=i.name,r(i,"optional")&&"boolean"==typeof i.optional&&(c.optional=i.optional),r(i,"typeAnnotation")&&(c.typeAnnotation=a?n(i.typeAnnotation,!0,o,l):i.typeAnnotation),r(i,"decorators")&&(c.decorators=a?n(i.decorators,!0,o,l):i.decorators);else{if(!r(e.NODE_FIELDS,p))throw new Error('Unknown node type: "'.concat(p,'"'));for(var u of Object.keys(e.NODE_FIELDS[p]))r(i,u)&&(c[u]=a?(0,t.isFile)(i)&&"comments"===u?s(i.comments,a,o,l):n(i[u],!0,o,l):i[u])}return r(i,"loc")&&(c.loc=o?null:i.loc),r(i,"leadingComments")&&(c.leadingComments=s(i.leadingComments,a,o,l)),r(i,"innerComments")&&(c.innerComments=s(i.innerComments,a,o,l)),r(i,"trailingComments")&&(c.trailingComments=s(i.trailingComments,a,o,l)),r(i,"extra")&&(c.extra=Object.assign({},i.extra)),c}function s(e,t,r,i){return e&&t?e.map((e=>{var t=i.get(e);if(t)return t;var{type:n,value:a,loc:s}=e,o={type:n,value:a,loc:s};return r&&(o.loc=null),i.set(e,o),o})):e}return Nt}var Ot,Dt={};var _t,Lt={};var Mt,Ft={};var Bt,jt={};var Rt,Ut,Kt={},Vt={};function qt(){if(Rt)return Vt;return Rt=1,Object.defineProperty(Vt,"__esModule",{value:!0}),Vt.default=function(e,t,r){if(!r||!e)return e;var i="".concat(t,"Comments");e[i]?"leading"===t?e[i]=r.concat(e[i]):e[i].push(...r):e[i]=r;return e},Vt}var Wt,Yt,Jt={},Xt={};function Ht(){if(Wt)return Xt;return Wt=1,Object.defineProperty(Xt,"__esModule",{value:!0}),Xt.default=function(e,t,r){t&&r&&(t[e]=Array.from(new Set([].concat(t[e],r[e]).filter(Boolean))))},Xt}function zt(){if(Yt)return Jt;Yt=1,Object.defineProperty(Jt,"__esModule",{value:!0}),Jt.default=function(t,r){(0,e.default)("innerComments",t,r)};var e=Ht();return Jt}var Gt,Qt={};function $t(){if(Gt)return Qt;Gt=1,Object.defineProperty(Qt,"__esModule",{value:!0}),Qt.default=function(t,r){(0,e.default)("leadingComments",t,r)};var e=Ht();return Qt}var Zt,er,tr={},rr={};function ir(){if(Zt)return rr;Zt=1,Object.defineProperty(rr,"__esModule",{value:!0}),rr.default=function(t,r){(0,e.default)("trailingComments",t,r)};var e=Ht();return rr}function nr(){if(er)return tr;er=1,Object.defineProperty(tr,"__esModule",{value:!0}),tr.default=function(i,n){return(0,e.default)(i,n),(0,t.default)(i,n),(0,r.default)(i,n),i};var e=ir(),t=$t(),r=zt();return tr}var ar,sr={};var or,lr={};var pr,cr,ur={},hr={};function dr(){if(pr)return hr;pr=1,Object.defineProperty(hr,"__esModule",{value:!0}),hr.default=function(r,i){if((0,e.isBlockStatement)(r))return r;var n=[];(0,e.isEmptyStatement)(r)?n=[]:((0,e.isStatement)(r)||(r=(0,e.isFunction)(i)?(0,t.returnStatement)(r):(0,t.expressionStatement)(r)),n=[r]);return(0,t.blockStatement)(n)};var e=Y(),t=nt();return hr}var fr,mr,yr={},vr={};function Tr(){if(fr)return vr;fr=1,Object.defineProperty(vr,"__esModule",{value:!0}),vr.default=function(r){r+="";var i="";for(var n of r)i+=(0,t.isIdentifierChar)(n.codePointAt(0))?n:"-";i=(i=i.replace(/^[-0-9]+/,"")).replace(/[-\s]+(.)?/g,(function(e,t){return t?t.toUpperCase():""})),(0,e.default)(i)||(i="_".concat(i));return i||"_"};var e=xe(),t=Se();return vr}var gr,Sr={};var xr,br={};var Pr,Er={},Ar={},Cr={};function wr(){if(Pr)return Cr;Pr=1,Object.defineProperty(Cr,"__esModule",{value:!0}),Cr.default=i;var e=Ge(),t=Symbol(),r=Symbol();function i(n,a,s){if(!n)return!1;var o=e.VISITOR_KEYS[n.type];if(!o)return!1;var l=a(n,s=s||{});if(void 0!==l)switch(l){case t:return!1;case r:return!0}for(var p of o){var c=n[p];if(c)if(Array.isArray(c)){for(var u of c)if(i(u,a,s))return!0}else if(i(c,a,s))return!0}return!1}return i.skip=t,i.stop=r,Cr}var Ir,Nr,kr,Or={};function Dr(){if(Ir)return Or;Ir=1,Object.defineProperty(Or,"__esModule",{value:!0}),Or.default=function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=i.preserveComments?t:r;for(var a of n)null!=e[a]&&(e[a]=void 0);for(var s of Object.keys(e))"_"===s[0]&&null!=e[s]&&(e[s]=void 0);var o=Object.getOwnPropertySymbols(e);for(var l of o)e[l]=null};var e=Ce(),t=["tokens","start","end","loc","raw","rawValue"],r=[...e.COMMENT_KEYS,"comments",...t];return Or}function _r(){if(Nr)return Ar;Nr=1,Object.defineProperty(Ar,"__esModule",{value:!0}),Ar.default=function(r,i){return(0,e.default)(r,t.default,i),r};var e=wr(),t=Dr();return Ar}var Lr,Mr={};var Fr,Br={};function jr(){if(Fr)return Br;Fr=1,Object.defineProperty(Br,"__esModule",{value:!0}),Br.default=void 0;var e=xe(),t=nt();Br.default=function i(n){if(void 0===n)return(0,t.identifier)("undefined");if(!0===n||!1===n)return(0,t.booleanLiteral)(n);if(null===n)return(0,t.nullLiteral)();if("string"==typeof n)return(0,t.stringLiteral)(n);if("number"==typeof n){var a,s;if(Number.isFinite(n))a=(0,t.numericLiteral)(Math.abs(n));else s=Number.isNaN(n)?(0,t.numericLiteral)(0):(0,t.numericLiteral)(1),a=(0,t.binaryExpression)("/",s,(0,t.numericLiteral)(0));return(n<0||Object.is(n,-0))&&(a=(0,t.unaryExpression)("-",a)),a}if("bigint"==typeof n)return n<0?(0,t.unaryExpression)("-",(0,t.bigIntLiteral)(-n)):(0,t.bigIntLiteral)(n);if(function(e){return"[object RegExp]"===r(e)}(n)){var o=n.source,l=/\/([a-z]*)$/.exec(n.toString())[1];return(0,t.regExpLiteral)(o,l)}if(Array.isArray(n))return(0,t.arrayExpression)(n.map(i));if(function(e){if("object"!=typeof e||null===e||"[object Object]"!==Object.prototype.toString.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||null===Object.getPrototypeOf(t)}(n)){var p=[];for(var c of Object.keys(n)){var u=void 0,h=!1;(0,e.default)(c)?"__proto__"===c?(h=!0,u=(0,t.stringLiteral)(c)):u=(0,t.identifier)(c):u=(0,t.stringLiteral)(c),p.push((0,t.objectProperty)(u,i(n[c]),h))}return(0,t.objectExpression)(p)}throw new Error("don't know how to turn this value into a node")};var r=Function.call.bind(Object.prototype.toString);return Br}var Rr,Ur={};var Kr,Vr={};var qr,Wr={};var Yr,Jr={};var Xr,Hr={};function zr(){if(Xr)return Hr;Xr=1,Object.defineProperty(Hr,"__esModule",{value:!0}),Hr.default=t;var e=Y();function t(r,i,n,a){for(var s=[].concat(r),o=Object.create(null);s.length;){var l=s.shift();if(l)if(!a||!((0,e.isAssignmentExpression)(l)||(0,e.isUnaryExpression)(l)||(0,e.isUpdateExpression)(l)))if((0,e.isIdentifier)(l))i?(o[l.name]=o[l.name]||[]).push(l):o[l.name]=l;else if(!(0,e.isExportDeclaration)(l)||(0,e.isExportAllDeclaration)(l)){if(n){if((0,e.isFunctionDeclaration)(l)){s.push(l.id);continue}if((0,e.isFunctionExpression)(l))continue}var p=t.keys[l.type];if(p)for(var c=0;c<p.length;c++){var u=l[p[c]];u&&(Array.isArray(u)?s.push(...u):s.push(u))}}else(0,e.isDeclaration)(l.declaration)&&s.push(l.declaration)}return o}return t.keys={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"],TSImportEqualsDeclaration:["id"],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"]},Hr}var Gr,Qr={};var $r,Zr={};function ei(){if($r)return Zr;$r=1,Object.defineProperty(Zr,"__esModule",{value:!0}),Zr.default=function(r,i){if("id"in r&&r.id)return{name:r.id.name,originalNode:r.id};var n,a="";(0,e.isObjectProperty)(i,{value:r})?n=t(i):(0,e.isObjectMethod)(r)||(0,e.isClassMethod)(r)?(n=t(r),"get"===r.kind?a="get ":"set"===r.kind&&(a="set ")):(0,e.isVariableDeclarator)(i,{init:r})?n=i.id:(0,e.isAssignmentExpression)(i,{operator:"=",right:r})&&(n=i.left);if(!n)return null;var s=(0,e.isLiteral)(n)?function(t){if((0,e.isNullLiteral)(t))return"null";if((0,e.isRegExpLiteral)(t))return"/".concat(t.pattern,"/").concat(t.flags);if((0,e.isTemplateLiteral)(t))return t.quasis.map((e=>e.value.raw)).join("");if(void 0!==t.value)return String(t.value);return null}(n):(0,e.isIdentifier)(n)?n.name:(0,e.isPrivateName)(n)?n.id.name:null;return null==s?null:{name:a+s,originalNode:n}};var e=Y();function t(t){if(!t.computed||(0,e.isLiteral)(t.key))return t.key}return Zr}var ti,ri={};function ii(){if(ti)return ri;ti=1,Object.defineProperty(ri,"__esModule",{value:!0}),ri.default=function(e,r,i){"function"==typeof r&&(r={enter:r});var{enter:n,exit:a}=r;t(e,n,a,i,[])};var e=Ge();function t(r,i,n,a,s){var o=e.VISITOR_KEYS[r.type];if(o){for(var l of(i&&i(r,s,a),o)){var p=r[l];if(Array.isArray(p))for(var c=0;c<p.length;c++){var u=p[c];u&&(s.push({node:r,key:l,index:c}),t(u,i,n,a,s),s.pop())}else p&&(s.push({node:r,key:l}),t(p,i,n,a,s),s.pop())}n&&n(r,s,a)}}return ri}var ni,ai={};var si,oi,li={},pi={};function ci(){if(si)return pi;si=1,Object.defineProperty(pi,"__esModule",{value:!0}),pi.default=function(r){return(0,e.isVariableDeclaration)(r)&&("var"!==r.kind||r[t])};var e=Y(),t=Symbol.for("var used to be block scoped");return pi}var ui,hi={};var di,fi={};var mi,yi={};var vi,Ti={};var gi,Si={};var xi,bi={};var Pi,Ei={};var Ai,Ci,wi,Ii={},Ni={};function ki(){if(Ci)return Ii;Ci=1,Object.defineProperty(Ii,"__esModule",{value:!0}),Ii.default=function(t,r){if(null==t||!t.length)return;var i=[],n=(0,e.default)(t,i);if(!n)return;for(var a of i)r.push(a);return n};var e=function(){if(Ai)return Ni;Ai=1,Object.defineProperty(Ni,"__esModule",{value:!0}),Ni.default=function a(s,o){var l=[],p=!0;for(var c of s)if((0,t.isEmptyStatement)(c)||(p=!1),(0,t.isExpression)(c))l.push(c);else if((0,t.isExpressionStatement)(c))l.push(c.expression);else if((0,t.isVariableDeclaration)(c)){if("var"!==c.kind)return;for(var u of c.declarations){var h=(0,e.default)(u);for(var d of Object.keys(h))o.push({kind:c.kind,id:(0,n.default)(h[d])});u.init&&l.push((0,r.assignmentExpression)("=",u.id,u.init))}p=!0}else if((0,t.isIfStatement)(c)){var f=c.consequent?a([c.consequent],o):(0,i.buildUndefinedNode)(),m=c.alternate?a([c.alternate],o):(0,i.buildUndefinedNode)();if(!f||!m)return;l.push((0,r.conditionalExpression)(c.test,f,m))}else if((0,t.isBlockStatement)(c)){var y=a(c.body,o);if(!y)return;l.push(y)}else{if(!(0,t.isEmptyStatement)(c))return;0===s.indexOf(c)&&(p=!0)}return p&&l.push((0,i.buildUndefinedNode)()),1===l.length?l[0]:(0,r.sequenceExpression)(l)};var e=zr(),t=Y(),r=nt(),i=wt(),n=kt();return Ni}();return Ii}function Oi(){return wi||(wi=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t={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(e,"__internal__deprecationWarning",{enumerable:!0,get:function(){return Ne.default}}),Object.defineProperty(e,"addComment",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(e,"addComments",{enumerable:!0,get:function(){return T.default}}),Object.defineProperty(e,"appendToMemberExpression",{enumerable:!0,get:function(){return R.default}}),Object.defineProperty(e,"assertNode",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"buildMatchMemberExpression",{enumerable:!0,get:function(){return we.default}}),Object.defineProperty(e,"clone",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(e,"cloneDeep",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"cloneDeepWithoutLoc",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(e,"cloneNode",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(e,"cloneWithoutLoc",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(e,"createFlowUnionType",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"createTSUnionType",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(e,"createTypeAnnotationBasedOnTypeof",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"createUnionTypeAnnotation",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"ensureBlock",{enumerable:!0,get:function(){return w.default}}),Object.defineProperty(e,"getAssignmentIdentifiers",{enumerable:!0,get:function(){return $.default}}),Object.defineProperty(e,"getBindingIdentifiers",{enumerable:!0,get:function(){return Z.default}}),Object.defineProperty(e,"getFunctionName",{enumerable:!0,get:function(){return te.default}}),Object.defineProperty(e,"getOuterBindingIdentifiers",{enumerable:!0,get:function(){return ee.default}}),Object.defineProperty(e,"inheritInnerComments",{enumerable:!0,get:function(){return g.default}}),Object.defineProperty(e,"inheritLeadingComments",{enumerable:!0,get:function(){return S.default}}),Object.defineProperty(e,"inheritTrailingComments",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(e,"inherits",{enumerable:!0,get:function(){return U.default}}),Object.defineProperty(e,"inheritsComments",{enumerable:!0,get:function(){return x.default}}),Object.defineProperty(e,"is",{enumerable:!0,get:function(){return ae.default}}),Object.defineProperty(e,"isBinding",{enumerable:!0,get:function(){return oe.default}}),Object.defineProperty(e,"isBlockScoped",{enumerable:!0,get:function(){return le.default}}),Object.defineProperty(e,"isImmutable",{enumerable:!0,get:function(){return pe.default}}),Object.defineProperty(e,"isLet",{enumerable:!0,get:function(){return he.default}}),Object.defineProperty(e,"isNode",{enumerable:!0,get:function(){return de.default}}),Object.defineProperty(e,"isNodesEquivalent",{enumerable:!0,get:function(){return fe.default}}),Object.defineProperty(e,"isPlaceholderType",{enumerable:!0,get:function(){return me.default}}),Object.defineProperty(e,"isReferenced",{enumerable:!0,get:function(){return ye.default}}),Object.defineProperty(e,"isScope",{enumerable:!0,get:function(){return ve.default}}),Object.defineProperty(e,"isSpecifierDefault",{enumerable:!0,get:function(){return Te.default}}),Object.defineProperty(e,"isType",{enumerable:!0,get:function(){return ge.default}}),Object.defineProperty(e,"isValidES3Identifier",{enumerable:!0,get:function(){return Se.default}}),Object.defineProperty(e,"isValidIdentifier",{enumerable:!0,get:function(){return be.default}}),Object.defineProperty(e,"isVar",{enumerable:!0,get:function(){return Pe.default}}),Object.defineProperty(e,"matchesPattern",{enumerable:!0,get:function(){return Ee.default}}),Object.defineProperty(e,"prependToMemberExpression",{enumerable:!0,get:function(){return K.default}}),e.react=void 0,Object.defineProperty(e,"removeComments",{enumerable:!0,get:function(){return P.default}}),Object.defineProperty(e,"removeProperties",{enumerable:!0,get:function(){return q.default}}),Object.defineProperty(e,"removePropertiesDeep",{enumerable:!0,get:function(){return G.default}}),Object.defineProperty(e,"removeTypeDuplicates",{enumerable:!0,get:function(){return Q.default}}),Object.defineProperty(e,"shallowEqual",{enumerable:!0,get:function(){return ne.default}}),Object.defineProperty(e,"toBindingIdentifierName",{enumerable:!0,get:function(){return I.default}}),Object.defineProperty(e,"toBlock",{enumerable:!0,get:function(){return N.default}}),Object.defineProperty(e,"toComputedKey",{enumerable:!0,get:function(){return k.default}}),Object.defineProperty(e,"toExpression",{enumerable:!0,get:function(){return O.default}}),Object.defineProperty(e,"toIdentifier",{enumerable:!0,get:function(){return _.default}}),Object.defineProperty(e,"toKeyAlias",{enumerable:!0,get:function(){return L.default}}),Object.defineProperty(e,"toStatement",{enumerable:!0,get:function(){return M.default}}),Object.defineProperty(e,"traverse",{enumerable:!0,get:function(){return re.default}}),Object.defineProperty(e,"traverseFast",{enumerable:!0,get:function(){return ie.default}}),Object.defineProperty(e,"validate",{enumerable:!0,get:function(){return Ae.default}}),Object.defineProperty(e,"valueToNode",{enumerable:!0,get:function(){return F.default}});var r=function(){if(V)return D;V=1,Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var e=(0,X().default)("React.Component");return D.default=e,D}(),i=(H||(H=1,Object.defineProperty(z,"__esModule",{value:!0}),z.default=function(e){return!!e&&/^[a-z]/.test(e)}),z),n=at(),a=function(){if(ot)return lt;ot=1,Object.defineProperty(lt,"__esModule",{value:!0}),lt.default=function(t){if(!(0,e.default)(t)){var r,i=null!=(r=null==t?void 0:t.type)?r:JSON.stringify(t);throw new TypeError('Not a valid node of type "'.concat(i,'"'))}};var e=ct();return lt}(),s=function(){if(ut)return ht;ut=1,Object.defineProperty(ht,"__esModule",{value:!0}),ht.assertAccessor=function(e,t){r("Accessor",e,t)},ht.assertAnyTypeAnnotation=function(e,t){r("AnyTypeAnnotation",e,t)},ht.assertArgumentPlaceholder=function(e,t){r("ArgumentPlaceholder",e,t)},ht.assertArrayExpression=function(e,t){r("ArrayExpression",e,t)},ht.assertArrayPattern=function(e,t){r("ArrayPattern",e,t)},ht.assertArrayTypeAnnotation=function(e,t){r("ArrayTypeAnnotation",e,t)},ht.assertArrowFunctionExpression=function(e,t){r("ArrowFunctionExpression",e,t)},ht.assertAssignmentExpression=function(e,t){r("AssignmentExpression",e,t)},ht.assertAssignmentPattern=function(e,t){r("AssignmentPattern",e,t)},ht.assertAwaitExpression=function(e,t){r("AwaitExpression",e,t)},ht.assertBigIntLiteral=function(e,t){r("BigIntLiteral",e,t)},ht.assertBinary=function(e,t){r("Binary",e,t)},ht.assertBinaryExpression=function(e,t){r("BinaryExpression",e,t)},ht.assertBindExpression=function(e,t){r("BindExpression",e,t)},ht.assertBlock=function(e,t){r("Block",e,t)},ht.assertBlockParent=function(e,t){r("BlockParent",e,t)},ht.assertBlockStatement=function(e,t){r("BlockStatement",e,t)},ht.assertBooleanLiteral=function(e,t){r("BooleanLiteral",e,t)},ht.assertBooleanLiteralTypeAnnotation=function(e,t){r("BooleanLiteralTypeAnnotation",e,t)},ht.assertBooleanTypeAnnotation=function(e,t){r("BooleanTypeAnnotation",e,t)},ht.assertBreakStatement=function(e,t){r("BreakStatement",e,t)},ht.assertCallExpression=function(e,t){r("CallExpression",e,t)},ht.assertCatchClause=function(e,t){r("CatchClause",e,t)},ht.assertClass=function(e,t){r("Class",e,t)},ht.assertClassAccessorProperty=function(e,t){r("ClassAccessorProperty",e,t)},ht.assertClassBody=function(e,t){r("ClassBody",e,t)},ht.assertClassDeclaration=function(e,t){r("ClassDeclaration",e,t)},ht.assertClassExpression=function(e,t){r("ClassExpression",e,t)},ht.assertClassImplements=function(e,t){r("ClassImplements",e,t)},ht.assertClassMethod=function(e,t){r("ClassMethod",e,t)},ht.assertClassPrivateMethod=function(e,t){r("ClassPrivateMethod",e,t)},ht.assertClassPrivateProperty=function(e,t){r("ClassPrivateProperty",e,t)},ht.assertClassProperty=function(e,t){r("ClassProperty",e,t)},ht.assertCompletionStatement=function(e,t){r("CompletionStatement",e,t)},ht.assertConditional=function(e,t){r("Conditional",e,t)},ht.assertConditionalExpression=function(e,t){r("ConditionalExpression",e,t)},ht.assertContinueStatement=function(e,t){r("ContinueStatement",e,t)},ht.assertDebuggerStatement=function(e,t){r("DebuggerStatement",e,t)},ht.assertDecimalLiteral=function(e,t){r("DecimalLiteral",e,t)},ht.assertDeclaration=function(e,t){r("Declaration",e,t)},ht.assertDeclareClass=function(e,t){r("DeclareClass",e,t)},ht.assertDeclareExportAllDeclaration=function(e,t){r("DeclareExportAllDeclaration",e,t)},ht.assertDeclareExportDeclaration=function(e,t){r("DeclareExportDeclaration",e,t)},ht.assertDeclareFunction=function(e,t){r("DeclareFunction",e,t)},ht.assertDeclareInterface=function(e,t){r("DeclareInterface",e,t)},ht.assertDeclareModule=function(e,t){r("DeclareModule",e,t)},ht.assertDeclareModuleExports=function(e,t){r("DeclareModuleExports",e,t)},ht.assertDeclareOpaqueType=function(e,t){r("DeclareOpaqueType",e,t)},ht.assertDeclareTypeAlias=function(e,t){r("DeclareTypeAlias",e,t)},ht.assertDeclareVariable=function(e,t){r("DeclareVariable",e,t)},ht.assertDeclaredPredicate=function(e,t){r("DeclaredPredicate",e,t)},ht.assertDecorator=function(e,t){r("Decorator",e,t)},ht.assertDirective=function(e,t){r("Directive",e,t)},ht.assertDirectiveLiteral=function(e,t){r("DirectiveLiteral",e,t)},ht.assertDoExpression=function(e,t){r("DoExpression",e,t)},ht.assertDoWhileStatement=function(e,t){r("DoWhileStatement",e,t)},ht.assertEmptyStatement=function(e,t){r("EmptyStatement",e,t)},ht.assertEmptyTypeAnnotation=function(e,t){r("EmptyTypeAnnotation",e,t)},ht.assertEnumBody=function(e,t){r("EnumBody",e,t)},ht.assertEnumBooleanBody=function(e,t){r("EnumBooleanBody",e,t)},ht.assertEnumBooleanMember=function(e,t){r("EnumBooleanMember",e,t)},ht.assertEnumDeclaration=function(e,t){r("EnumDeclaration",e,t)},ht.assertEnumDefaultedMember=function(e,t){r("EnumDefaultedMember",e,t)},ht.assertEnumMember=function(e,t){r("EnumMember",e,t)},ht.assertEnumNumberBody=function(e,t){r("EnumNumberBody",e,t)},ht.assertEnumNumberMember=function(e,t){r("EnumNumberMember",e,t)},ht.assertEnumStringBody=function(e,t){r("EnumStringBody",e,t)},ht.assertEnumStringMember=function(e,t){r("EnumStringMember",e,t)},ht.assertEnumSymbolBody=function(e,t){r("EnumSymbolBody",e,t)},ht.assertExistsTypeAnnotation=function(e,t){r("ExistsTypeAnnotation",e,t)},ht.assertExportAllDeclaration=function(e,t){r("ExportAllDeclaration",e,t)},ht.assertExportDeclaration=function(e,t){r("ExportDeclaration",e,t)},ht.assertExportDefaultDeclaration=function(e,t){r("ExportDefaultDeclaration",e,t)},ht.assertExportDefaultSpecifier=function(e,t){r("ExportDefaultSpecifier",e,t)},ht.assertExportNamedDeclaration=function(e,t){r("ExportNamedDeclaration",e,t)},ht.assertExportNamespaceSpecifier=function(e,t){r("ExportNamespaceSpecifier",e,t)},ht.assertExportSpecifier=function(e,t){r("ExportSpecifier",e,t)},ht.assertExpression=function(e,t){r("Expression",e,t)},ht.assertExpressionStatement=function(e,t){r("ExpressionStatement",e,t)},ht.assertExpressionWrapper=function(e,t){r("ExpressionWrapper",e,t)},ht.assertFile=function(e,t){r("File",e,t)},ht.assertFlow=function(e,t){r("Flow",e,t)},ht.assertFlowBaseAnnotation=function(e,t){r("FlowBaseAnnotation",e,t)},ht.assertFlowDeclaration=function(e,t){r("FlowDeclaration",e,t)},ht.assertFlowPredicate=function(e,t){r("FlowPredicate",e,t)},ht.assertFlowType=function(e,t){r("FlowType",e,t)},ht.assertFor=function(e,t){r("For",e,t)},ht.assertForInStatement=function(e,t){r("ForInStatement",e,t)},ht.assertForOfStatement=function(e,t){r("ForOfStatement",e,t)},ht.assertForStatement=function(e,t){r("ForStatement",e,t)},ht.assertForXStatement=function(e,t){r("ForXStatement",e,t)},ht.assertFunction=function(e,t){r("Function",e,t)},ht.assertFunctionDeclaration=function(e,t){r("FunctionDeclaration",e,t)},ht.assertFunctionExpression=function(e,t){r("FunctionExpression",e,t)},ht.assertFunctionParameter=function(e,t){r("FunctionParameter",e,t)},ht.assertFunctionParent=function(e,t){r("FunctionParent",e,t)},ht.assertFunctionTypeAnnotation=function(e,t){r("FunctionTypeAnnotation",e,t)},ht.assertFunctionTypeParam=function(e,t){r("FunctionTypeParam",e,t)},ht.assertGenericTypeAnnotation=function(e,t){r("GenericTypeAnnotation",e,t)},ht.assertIdentifier=function(e,t){r("Identifier",e,t)},ht.assertIfStatement=function(e,t){r("IfStatement",e,t)},ht.assertImmutable=function(e,t){r("Immutable",e,t)},ht.assertImport=function(e,t){r("Import",e,t)},ht.assertImportAttribute=function(e,t){r("ImportAttribute",e,t)},ht.assertImportDeclaration=function(e,t){r("ImportDeclaration",e,t)},ht.assertImportDefaultSpecifier=function(e,t){r("ImportDefaultSpecifier",e,t)},ht.assertImportExpression=function(e,t){r("ImportExpression",e,t)},ht.assertImportNamespaceSpecifier=function(e,t){r("ImportNamespaceSpecifier",e,t)},ht.assertImportOrExportDeclaration=function(e,t){r("ImportOrExportDeclaration",e,t)},ht.assertImportSpecifier=function(e,t){r("ImportSpecifier",e,t)},ht.assertIndexedAccessType=function(e,t){r("IndexedAccessType",e,t)},ht.assertInferredPredicate=function(e,t){r("InferredPredicate",e,t)},ht.assertInterfaceDeclaration=function(e,t){r("InterfaceDeclaration",e,t)},ht.assertInterfaceExtends=function(e,t){r("InterfaceExtends",e,t)},ht.assertInterfaceTypeAnnotation=function(e,t){r("InterfaceTypeAnnotation",e,t)},ht.assertInterpreterDirective=function(e,t){r("InterpreterDirective",e,t)},ht.assertIntersectionTypeAnnotation=function(e,t){r("IntersectionTypeAnnotation",e,t)},ht.assertJSX=function(e,t){r("JSX",e,t)},ht.assertJSXAttribute=function(e,t){r("JSXAttribute",e,t)},ht.assertJSXClosingElement=function(e,t){r("JSXClosingElement",e,t)},ht.assertJSXClosingFragment=function(e,t){r("JSXClosingFragment",e,t)},ht.assertJSXElement=function(e,t){r("JSXElement",e,t)},ht.assertJSXEmptyExpression=function(e,t){r("JSXEmptyExpression",e,t)},ht.assertJSXExpressionContainer=function(e,t){r("JSXExpressionContainer",e,t)},ht.assertJSXFragment=function(e,t){r("JSXFragment",e,t)},ht.assertJSXIdentifier=function(e,t){r("JSXIdentifier",e,t)},ht.assertJSXMemberExpression=function(e,t){r("JSXMemberExpression",e,t)},ht.assertJSXNamespacedName=function(e,t){r("JSXNamespacedName",e,t)},ht.assertJSXOpeningElement=function(e,t){r("JSXOpeningElement",e,t)},ht.assertJSXOpeningFragment=function(e,t){r("JSXOpeningFragment",e,t)},ht.assertJSXSpreadAttribute=function(e,t){r("JSXSpreadAttribute",e,t)},ht.assertJSXSpreadChild=function(e,t){r("JSXSpreadChild",e,t)},ht.assertJSXText=function(e,t){r("JSXText",e,t)},ht.assertLVal=function(e,t){r("LVal",e,t)},ht.assertLabeledStatement=function(e,t){r("LabeledStatement",e,t)},ht.assertLiteral=function(e,t){r("Literal",e,t)},ht.assertLogicalExpression=function(e,t){r("LogicalExpression",e,t)},ht.assertLoop=function(e,t){r("Loop",e,t)},ht.assertMemberExpression=function(e,t){r("MemberExpression",e,t)},ht.assertMetaProperty=function(e,t){r("MetaProperty",e,t)},ht.assertMethod=function(e,t){r("Method",e,t)},ht.assertMiscellaneous=function(e,t){r("Miscellaneous",e,t)},ht.assertMixedTypeAnnotation=function(e,t){r("MixedTypeAnnotation",e,t)},ht.assertModuleDeclaration=function(e,i){(0,t.default)("assertModuleDeclaration","assertImportOrExportDeclaration"),r("ModuleDeclaration",e,i)},ht.assertModuleExpression=function(e,t){r("ModuleExpression",e,t)},ht.assertModuleSpecifier=function(e,t){r("ModuleSpecifier",e,t)},ht.assertNewExpression=function(e,t){r("NewExpression",e,t)},ht.assertNoop=function(e,t){r("Noop",e,t)},ht.assertNullLiteral=function(e,t){r("NullLiteral",e,t)},ht.assertNullLiteralTypeAnnotation=function(e,t){r("NullLiteralTypeAnnotation",e,t)},ht.assertNullableTypeAnnotation=function(e,t){r("NullableTypeAnnotation",e,t)},ht.assertNumberLiteral=function(e,i){(0,t.default)("assertNumberLiteral","assertNumericLiteral"),r("NumberLiteral",e,i)},ht.assertNumberLiteralTypeAnnotation=function(e,t){r("NumberLiteralTypeAnnotation",e,t)},ht.assertNumberTypeAnnotation=function(e,t){r("NumberTypeAnnotation",e,t)},ht.assertNumericLiteral=function(e,t){r("NumericLiteral",e,t)},ht.assertObjectExpression=function(e,t){r("ObjectExpression",e,t)},ht.assertObjectMember=function(e,t){r("ObjectMember",e,t)},ht.assertObjectMethod=function(e,t){r("ObjectMethod",e,t)},ht.assertObjectPattern=function(e,t){r("ObjectPattern",e,t)},ht.assertObjectProperty=function(e,t){r("ObjectProperty",e,t)},ht.assertObjectTypeAnnotation=function(e,t){r("ObjectTypeAnnotation",e,t)},ht.assertObjectTypeCallProperty=function(e,t){r("ObjectTypeCallProperty",e,t)},ht.assertObjectTypeIndexer=function(e,t){r("ObjectTypeIndexer",e,t)},ht.assertObjectTypeInternalSlot=function(e,t){r("ObjectTypeInternalSlot",e,t)},ht.assertObjectTypeProperty=function(e,t){r("ObjectTypeProperty",e,t)},ht.assertObjectTypeSpreadProperty=function(e,t){r("ObjectTypeSpreadProperty",e,t)},ht.assertOpaqueType=function(e,t){r("OpaqueType",e,t)},ht.assertOptionalCallExpression=function(e,t){r("OptionalCallExpression",e,t)},ht.assertOptionalIndexedAccessType=function(e,t){r("OptionalIndexedAccessType",e,t)},ht.assertOptionalMemberExpression=function(e,t){r("OptionalMemberExpression",e,t)},ht.assertParenthesizedExpression=function(e,t){r("ParenthesizedExpression",e,t)},ht.assertPattern=function(e,t){r("Pattern",e,t)},ht.assertPatternLike=function(e,t){r("PatternLike",e,t)},ht.assertPipelineBareFunction=function(e,t){r("PipelineBareFunction",e,t)},ht.assertPipelinePrimaryTopicReference=function(e,t){r("PipelinePrimaryTopicReference",e,t)},ht.assertPipelineTopicExpression=function(e,t){r("PipelineTopicExpression",e,t)},ht.assertPlaceholder=function(e,t){r("Placeholder",e,t)},ht.assertPrivate=function(e,t){r("Private",e,t)},ht.assertPrivateName=function(e,t){r("PrivateName",e,t)},ht.assertProgram=function(e,t){r("Program",e,t)},ht.assertProperty=function(e,t){r("Property",e,t)},ht.assertPureish=function(e,t){r("Pureish",e,t)},ht.assertQualifiedTypeIdentifier=function(e,t){r("QualifiedTypeIdentifier",e,t)},ht.assertRecordExpression=function(e,t){r("RecordExpression",e,t)},ht.assertRegExpLiteral=function(e,t){r("RegExpLiteral",e,t)},ht.assertRegexLiteral=function(e,i){(0,t.default)("assertRegexLiteral","assertRegExpLiteral"),r("RegexLiteral",e,i)},ht.assertRestElement=function(e,t){r("RestElement",e,t)},ht.assertRestProperty=function(e,i){(0,t.default)("assertRestProperty","assertRestElement"),r("RestProperty",e,i)},ht.assertReturnStatement=function(e,t){r("ReturnStatement",e,t)},ht.assertScopable=function(e,t){r("Scopable",e,t)},ht.assertSequenceExpression=function(e,t){r("SequenceExpression",e,t)},ht.assertSpreadElement=function(e,t){r("SpreadElement",e,t)},ht.assertSpreadProperty=function(e,i){(0,t.default)("assertSpreadProperty","assertSpreadElement"),r("SpreadProperty",e,i)},ht.assertStandardized=function(e,t){r("Standardized",e,t)},ht.assertStatement=function(e,t){r("Statement",e,t)},ht.assertStaticBlock=function(e,t){r("StaticBlock",e,t)},ht.assertStringLiteral=function(e,t){r("StringLiteral",e,t)},ht.assertStringLiteralTypeAnnotation=function(e,t){r("StringLiteralTypeAnnotation",e,t)},ht.assertStringTypeAnnotation=function(e,t){r("StringTypeAnnotation",e,t)},ht.assertSuper=function(e,t){r("Super",e,t)},ht.assertSwitchCase=function(e,t){r("SwitchCase",e,t)},ht.assertSwitchStatement=function(e,t){r("SwitchStatement",e,t)},ht.assertSymbolTypeAnnotation=function(e,t){r("SymbolTypeAnnotation",e,t)},ht.assertTSAnyKeyword=function(e,t){r("TSAnyKeyword",e,t)},ht.assertTSArrayType=function(e,t){r("TSArrayType",e,t)},ht.assertTSAsExpression=function(e,t){r("TSAsExpression",e,t)},ht.assertTSBaseType=function(e,t){r("TSBaseType",e,t)},ht.assertTSBigIntKeyword=function(e,t){r("TSBigIntKeyword",e,t)},ht.assertTSBooleanKeyword=function(e,t){r("TSBooleanKeyword",e,t)},ht.assertTSCallSignatureDeclaration=function(e,t){r("TSCallSignatureDeclaration",e,t)},ht.assertTSConditionalType=function(e,t){r("TSConditionalType",e,t)},ht.assertTSConstructSignatureDeclaration=function(e,t){r("TSConstructSignatureDeclaration",e,t)},ht.assertTSConstructorType=function(e,t){r("TSConstructorType",e,t)},ht.assertTSDeclareFunction=function(e,t){r("TSDeclareFunction",e,t)},ht.assertTSDeclareMethod=function(e,t){r("TSDeclareMethod",e,t)},ht.assertTSEntityName=function(e,t){r("TSEntityName",e,t)},ht.assertTSEnumBody=function(e,t){r("TSEnumBody",e,t)},ht.assertTSEnumDeclaration=function(e,t){r("TSEnumDeclaration",e,t)},ht.assertTSEnumMember=function(e,t){r("TSEnumMember",e,t)},ht.assertTSExportAssignment=function(e,t){r("TSExportAssignment",e,t)},ht.assertTSExpressionWithTypeArguments=function(e,t){r("TSExpressionWithTypeArguments",e,t)},ht.assertTSExternalModuleReference=function(e,t){r("TSExternalModuleReference",e,t)},ht.assertTSFunctionType=function(e,t){r("TSFunctionType",e,t)},ht.assertTSImportEqualsDeclaration=function(e,t){r("TSImportEqualsDeclaration",e,t)},ht.assertTSImportType=function(e,t){r("TSImportType",e,t)},ht.assertTSIndexSignature=function(e,t){r("TSIndexSignature",e,t)},ht.assertTSIndexedAccessType=function(e,t){r("TSIndexedAccessType",e,t)},ht.assertTSInferType=function(e,t){r("TSInferType",e,t)},ht.assertTSInstantiationExpression=function(e,t){r("TSInstantiationExpression",e,t)},ht.assertTSInterfaceBody=function(e,t){r("TSInterfaceBody",e,t)},ht.assertTSInterfaceDeclaration=function(e,t){r("TSInterfaceDeclaration",e,t)},ht.assertTSIntersectionType=function(e,t){r("TSIntersectionType",e,t)},ht.assertTSIntrinsicKeyword=function(e,t){r("TSIntrinsicKeyword",e,t)},ht.assertTSLiteralType=function(e,t){r("TSLiteralType",e,t)},ht.assertTSMappedType=function(e,t){r("TSMappedType",e,t)},ht.assertTSMethodSignature=function(e,t){r("TSMethodSignature",e,t)},ht.assertTSModuleBlock=function(e,t){r("TSModuleBlock",e,t)},ht.assertTSModuleDeclaration=function(e,t){r("TSModuleDeclaration",e,t)},ht.assertTSNamedTupleMember=function(e,t){r("TSNamedTupleMember",e,t)},ht.assertTSNamespaceExportDeclaration=function(e,t){r("TSNamespaceExportDeclaration",e,t)},ht.assertTSNeverKeyword=function(e,t){r("TSNeverKeyword",e,t)},ht.assertTSNonNullExpression=function(e,t){r("TSNonNullExpression",e,t)},ht.assertTSNullKeyword=function(e,t){r("TSNullKeyword",e,t)},ht.assertTSNumberKeyword=function(e,t){r("TSNumberKeyword",e,t)},ht.assertTSObjectKeyword=function(e,t){r("TSObjectKeyword",e,t)},ht.assertTSOptionalType=function(e,t){r("TSOptionalType",e,t)},ht.assertTSParameterProperty=function(e,t){r("TSParameterProperty",e,t)},ht.assertTSParenthesizedType=function(e,t){r("TSParenthesizedType",e,t)},ht.assertTSPropertySignature=function(e,t){r("TSPropertySignature",e,t)},ht.assertTSQualifiedName=function(e,t){r("TSQualifiedName",e,t)},ht.assertTSRestType=function(e,t){r("TSRestType",e,t)},ht.assertTSSatisfiesExpression=function(e,t){r("TSSatisfiesExpression",e,t)},ht.assertTSStringKeyword=function(e,t){r("TSStringKeyword",e,t)},ht.assertTSSymbolKeyword=function(e,t){r("TSSymbolKeyword",e,t)},ht.assertTSTemplateLiteralType=function(e,t){r("TSTemplateLiteralType",e,t)},ht.assertTSThisType=function(e,t){r("TSThisType",e,t)},ht.assertTSTupleType=function(e,t){r("TSTupleType",e,t)},ht.assertTSType=function(e,t){r("TSType",e,t)},ht.assertTSTypeAliasDeclaration=function(e,t){r("TSTypeAliasDeclaration",e,t)},ht.assertTSTypeAnnotation=function(e,t){r("TSTypeAnnotation",e,t)},ht.assertTSTypeAssertion=function(e,t){r("TSTypeAssertion",e,t)},ht.assertTSTypeElement=function(e,t){r("TSTypeElement",e,t)},ht.assertTSTypeLiteral=function(e,t){r("TSTypeLiteral",e,t)},ht.assertTSTypeOperator=function(e,t){r("TSTypeOperator",e,t)},ht.assertTSTypeParameter=function(e,t){r("TSTypeParameter",e,t)},ht.assertTSTypeParameterDeclaration=function(e,t){r("TSTypeParameterDeclaration",e,t)},ht.assertTSTypeParameterInstantiation=function(e,t){r("TSTypeParameterInstantiation",e,t)},ht.assertTSTypePredicate=function(e,t){r("TSTypePredicate",e,t)},ht.assertTSTypeQuery=function(e,t){r("TSTypeQuery",e,t)},ht.assertTSTypeReference=function(e,t){r("TSTypeReference",e,t)},ht.assertTSUndefinedKeyword=function(e,t){r("TSUndefinedKeyword",e,t)},ht.assertTSUnionType=function(e,t){r("TSUnionType",e,t)},ht.assertTSUnknownKeyword=function(e,t){r("TSUnknownKeyword",e,t)},ht.assertTSVoidKeyword=function(e,t){r("TSVoidKeyword",e,t)},ht.assertTaggedTemplateExpression=function(e,t){r("TaggedTemplateExpression",e,t)},ht.assertTemplateElement=function(e,t){r("TemplateElement",e,t)},ht.assertTemplateLiteral=function(e,t){r("TemplateLiteral",e,t)},ht.assertTerminatorless=function(e,t){r("Terminatorless",e,t)},ht.assertThisExpression=function(e,t){r("ThisExpression",e,t)},ht.assertThisTypeAnnotation=function(e,t){r("ThisTypeAnnotation",e,t)},ht.assertThrowStatement=function(e,t){r("ThrowStatement",e,t)},ht.assertTopicReference=function(e,t){r("TopicReference",e,t)},ht.assertTryStatement=function(e,t){r("TryStatement",e,t)},ht.assertTupleExpression=function(e,t){r("TupleExpression",e,t)},ht.assertTupleTypeAnnotation=function(e,t){r("TupleTypeAnnotation",e,t)},ht.assertTypeAlias=function(e,t){r("TypeAlias",e,t)},ht.assertTypeAnnotation=function(e,t){r("TypeAnnotation",e,t)},ht.assertTypeCastExpression=function(e,t){r("TypeCastExpression",e,t)},ht.assertTypeParameter=function(e,t){r("TypeParameter",e,t)},ht.assertTypeParameterDeclaration=function(e,t){r("TypeParameterDeclaration",e,t)},ht.assertTypeParameterInstantiation=function(e,t){r("TypeParameterInstantiation",e,t)},ht.assertTypeScript=function(e,t){r("TypeScript",e,t)},ht.assertTypeofTypeAnnotation=function(e,t){r("TypeofTypeAnnotation",e,t)},ht.assertUnaryExpression=function(e,t){r("UnaryExpression",e,t)},ht.assertUnaryLike=function(e,t){r("UnaryLike",e,t)},ht.assertUnionTypeAnnotation=function(e,t){r("UnionTypeAnnotation",e,t)},ht.assertUpdateExpression=function(e,t){r("UpdateExpression",e,t)},ht.assertUserWhitespacable=function(e,t){r("UserWhitespacable",e,t)},ht.assertV8IntrinsicIdentifier=function(e,t){r("V8IntrinsicIdentifier",e,t)},ht.assertVariableDeclaration=function(e,t){r("VariableDeclaration",e,t)},ht.assertVariableDeclarator=function(e,t){r("VariableDeclarator",e,t)},ht.assertVariance=function(e,t){r("Variance",e,t)},ht.assertVoidPattern=function(e,t){r("VoidPattern",e,t)},ht.assertVoidTypeAnnotation=function(e,t){r("VoidTypeAnnotation",e,t)},ht.assertWhile=function(e,t){r("While",e,t)},ht.assertWhileStatement=function(e,t){r("WhileStatement",e,t)},ht.assertWithStatement=function(e,t){r("WithStatement",e,t)},ht.assertYieldExpression=function(e,t){r("YieldExpression",e,t)};var e=ue(),t=W();function r(t,r,i){if(!(0,e.default)(t,r,i))throw new Error('Expected type "'.concat(t,'" with option ').concat(JSON.stringify(i),", ")+'but instead got "'.concat(r.type,'".'))}return ht}();Object.keys(s).forEach((function(r){"default"!==r&&"__esModule"!==r&&(Object.prototype.hasOwnProperty.call(t,r)||r in e&&e[r]===s[r]||Object.defineProperty(e,r,{enumerable:!0,get:function(){return s[r]}}))}));var o=function(){if(dt)return ft;dt=1,Object.defineProperty(ft,"__esModule",{value:!0}),ft.default=void 0;var e=nt();return ft.default=function(t){switch(t){case"string":return(0,e.stringTypeAnnotation)();case"number":return(0,e.numberTypeAnnotation)();case"undefined":return(0,e.voidTypeAnnotation)();case"boolean":return(0,e.booleanTypeAnnotation)();case"function":return(0,e.genericTypeAnnotation)((0,e.identifier)("Function"));case"object":return(0,e.genericTypeAnnotation)((0,e.identifier)("Object"));case"symbol":return(0,e.genericTypeAnnotation)((0,e.identifier)("Symbol"));case"bigint":return(0,e.anyTypeAnnotation)()}throw new Error("Invalid typeof value: "+t)},ft}(),l=function(){if(yt)return vt;yt=1,Object.defineProperty(vt,"__esModule",{value:!0}),vt.default=function(r){var i=(0,t.default)(r);return 1===i.length?i[0]:(0,e.unionTypeAnnotation)(i)};var e=nt(),t=gt();return vt}(),p=Et(),c=wt();Object.keys(c).forEach((function(r){"default"!==r&&"__esModule"!==r&&(Object.prototype.hasOwnProperty.call(t,r)||r in e&&e[r]===c[r]||Object.defineProperty(e,r,{enumerable:!0,get:function(){return c[r]}}))}));var u=nt();Object.keys(u).forEach((function(r){"default"!==r&&"__esModule"!==r&&(Object.prototype.hasOwnProperty.call(t,r)||r in e&&e[r]===u[r]||Object.defineProperty(e,r,{enumerable:!0,get:function(){return u[r]}}))}));var h=kt(),d=function(){if(Ot)return Dt;Ot=1,Object.defineProperty(Dt,"__esModule",{value:!0}),Dt.default=function(t){return(0,e.default)(t,!1)};var e=kt();return Dt}(),f=function(){if(_t)return Lt;_t=1,Object.defineProperty(Lt,"__esModule",{value:!0}),Lt.default=function(t){return(0,e.default)(t)};var e=kt();return Lt}(),m=function(){if(Mt)return Ft;Mt=1,Object.defineProperty(Ft,"__esModule",{value:!0}),Ft.default=function(t){return(0,e.default)(t,!0,!0)};var e=kt();return Ft}(),y=function(){if(Bt)return jt;Bt=1,Object.defineProperty(jt,"__esModule",{value:!0}),jt.default=function(t){return(0,e.default)(t,!1,!0)};var e=kt();return jt}(),v=function(){if(Ut)return Kt;Ut=1,Object.defineProperty(Kt,"__esModule",{value:!0}),Kt.default=function(t,r,i,n){return(0,e.default)(t,r,[{type:n?"CommentLine":"CommentBlock",value:i}])};var e=qt();return Kt}(),T=qt(),g=zt(),S=$t(),x=nr(),b=ir(),P=function(){if(ar)return sr;ar=1,Object.defineProperty(sr,"__esModule",{value:!0}),sr.default=function(t){return e.COMMENT_KEYS.forEach((e=>{t[e]=null})),t};var e=Ce();return sr}(),E=function(){if(or)return lr;or=1,Object.defineProperty(lr,"__esModule",{value:!0}),lr.WHILE_TYPES=lr.USERWHITESPACABLE_TYPES=lr.UNARYLIKE_TYPES=lr.TYPESCRIPT_TYPES=lr.TSTYPE_TYPES=lr.TSTYPEELEMENT_TYPES=lr.TSENTITYNAME_TYPES=lr.TSBASETYPE_TYPES=lr.TERMINATORLESS_TYPES=lr.STATEMENT_TYPES=lr.STANDARDIZED_TYPES=lr.SCOPABLE_TYPES=lr.PUREISH_TYPES=lr.PROPERTY_TYPES=lr.PRIVATE_TYPES=lr.PATTERN_TYPES=lr.PATTERNLIKE_TYPES=lr.OBJECTMEMBER_TYPES=lr.MODULESPECIFIER_TYPES=lr.MODULEDECLARATION_TYPES=lr.MISCELLANEOUS_TYPES=lr.METHOD_TYPES=lr.LVAL_TYPES=lr.LOOP_TYPES=lr.LITERAL_TYPES=lr.JSX_TYPES=lr.IMPORTOREXPORTDECLARATION_TYPES=lr.IMMUTABLE_TYPES=lr.FUNCTION_TYPES=lr.FUNCTIONPARENT_TYPES=lr.FUNCTIONPARAMETER_TYPES=lr.FOR_TYPES=lr.FORXSTATEMENT_TYPES=lr.FLOW_TYPES=lr.FLOWTYPE_TYPES=lr.FLOWPREDICATE_TYPES=lr.FLOWDECLARATION_TYPES=lr.FLOWBASEANNOTATION_TYPES=lr.EXPRESSION_TYPES=lr.EXPRESSIONWRAPPER_TYPES=lr.EXPORTDECLARATION_TYPES=lr.ENUMMEMBER_TYPES=lr.ENUMBODY_TYPES=lr.DECLARATION_TYPES=lr.CONDITIONAL_TYPES=lr.COMPLETIONSTATEMENT_TYPES=lr.CLASS_TYPES=lr.BLOCK_TYPES=lr.BLOCKPARENT_TYPES=lr.BINARY_TYPES=lr.ACCESSOR_TYPES=void 0;var e=Ge();lr.STANDARDIZED_TYPES=e.FLIPPED_ALIAS_KEYS.Standardized,lr.EXPRESSION_TYPES=e.FLIPPED_ALIAS_KEYS.Expression,lr.BINARY_TYPES=e.FLIPPED_ALIAS_KEYS.Binary,lr.SCOPABLE_TYPES=e.FLIPPED_ALIAS_KEYS.Scopable,lr.BLOCKPARENT_TYPES=e.FLIPPED_ALIAS_KEYS.BlockParent,lr.BLOCK_TYPES=e.FLIPPED_ALIAS_KEYS.Block,lr.STATEMENT_TYPES=e.FLIPPED_ALIAS_KEYS.Statement,lr.TERMINATORLESS_TYPES=e.FLIPPED_ALIAS_KEYS.Terminatorless,lr.COMPLETIONSTATEMENT_TYPES=e.FLIPPED_ALIAS_KEYS.CompletionStatement,lr.CONDITIONAL_TYPES=e.FLIPPED_ALIAS_KEYS.Conditional,lr.LOOP_TYPES=e.FLIPPED_ALIAS_KEYS.Loop,lr.WHILE_TYPES=e.FLIPPED_ALIAS_KEYS.While,lr.EXPRESSIONWRAPPER_TYPES=e.FLIPPED_ALIAS_KEYS.ExpressionWrapper,lr.FOR_TYPES=e.FLIPPED_ALIAS_KEYS.For,lr.FORXSTATEMENT_TYPES=e.FLIPPED_ALIAS_KEYS.ForXStatement,lr.FUNCTION_TYPES=e.FLIPPED_ALIAS_KEYS.Function,lr.FUNCTIONPARENT_TYPES=e.FLIPPED_ALIAS_KEYS.FunctionParent,lr.PUREISH_TYPES=e.FLIPPED_ALIAS_KEYS.Pureish,lr.DECLARATION_TYPES=e.FLIPPED_ALIAS_KEYS.Declaration,lr.FUNCTIONPARAMETER_TYPES=e.FLIPPED_ALIAS_KEYS.FunctionParameter,lr.PATTERNLIKE_TYPES=e.FLIPPED_ALIAS_KEYS.PatternLike,lr.LVAL_TYPES=e.FLIPPED_ALIAS_KEYS.LVal,lr.TSENTITYNAME_TYPES=e.FLIPPED_ALIAS_KEYS.TSEntityName,lr.LITERAL_TYPES=e.FLIPPED_ALIAS_KEYS.Literal,lr.IMMUTABLE_TYPES=e.FLIPPED_ALIAS_KEYS.Immutable,lr.USERWHITESPACABLE_TYPES=e.FLIPPED_ALIAS_KEYS.UserWhitespacable,lr.METHOD_TYPES=e.FLIPPED_ALIAS_KEYS.Method,lr.OBJECTMEMBER_TYPES=e.FLIPPED_ALIAS_KEYS.ObjectMember,lr.PROPERTY_TYPES=e.FLIPPED_ALIAS_KEYS.Property,lr.UNARYLIKE_TYPES=e.FLIPPED_ALIAS_KEYS.UnaryLike,lr.PATTERN_TYPES=e.FLIPPED_ALIAS_KEYS.Pattern,lr.CLASS_TYPES=e.FLIPPED_ALIAS_KEYS.Class;var t=lr.IMPORTOREXPORTDECLARATION_TYPES=e.FLIPPED_ALIAS_KEYS.ImportOrExportDeclaration;return lr.EXPORTDECLARATION_TYPES=e.FLIPPED_ALIAS_KEYS.ExportDeclaration,lr.MODULESPECIFIER_TYPES=e.FLIPPED_ALIAS_KEYS.ModuleSpecifier,lr.ACCESSOR_TYPES=e.FLIPPED_ALIAS_KEYS.Accessor,lr.PRIVATE_TYPES=e.FLIPPED_ALIAS_KEYS.Private,lr.FLOW_TYPES=e.FLIPPED_ALIAS_KEYS.Flow,lr.FLOWTYPE_TYPES=e.FLIPPED_ALIAS_KEYS.FlowType,lr.FLOWBASEANNOTATION_TYPES=e.FLIPPED_ALIAS_KEYS.FlowBaseAnnotation,lr.FLOWDECLARATION_TYPES=e.FLIPPED_ALIAS_KEYS.FlowDeclaration,lr.FLOWPREDICATE_TYPES=e.FLIPPED_ALIAS_KEYS.FlowPredicate,lr.ENUMBODY_TYPES=e.FLIPPED_ALIAS_KEYS.EnumBody,lr.ENUMMEMBER_TYPES=e.FLIPPED_ALIAS_KEYS.EnumMember,lr.JSX_TYPES=e.FLIPPED_ALIAS_KEYS.JSX,lr.MISCELLANEOUS_TYPES=e.FLIPPED_ALIAS_KEYS.Miscellaneous,lr.TYPESCRIPT_TYPES=e.FLIPPED_ALIAS_KEYS.TypeScript,lr.TSTYPEELEMENT_TYPES=e.FLIPPED_ALIAS_KEYS.TSTypeElement,lr.TSTYPE_TYPES=e.FLIPPED_ALIAS_KEYS.TSType,lr.TSBASETYPE_TYPES=e.FLIPPED_ALIAS_KEYS.TSBaseType,lr.MODULEDECLARATION_TYPES=t,lr}();Object.keys(E).forEach((function(r){"default"!==r&&"__esModule"!==r&&(Object.prototype.hasOwnProperty.call(t,r)||r in e&&e[r]===E[r]||Object.defineProperty(e,r,{enumerable:!0,get:function(){return E[r]}}))}));var C=Ce();Object.keys(C).forEach((function(r){"default"!==r&&"__esModule"!==r&&(Object.prototype.hasOwnProperty.call(t,r)||r in e&&e[r]===C[r]||Object.defineProperty(e,r,{enumerable:!0,get:function(){return C[r]}}))}));var w=function(){if(cr)return ur;cr=1,Object.defineProperty(ur,"__esModule",{value:!0}),ur.default=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=(0,e.default)(t[r],t);return t[r]=i,i};var e=dr();return ur}(),I=function(){if(mr)return yr;mr=1,Object.defineProperty(yr,"__esModule",{value:!0}),yr.default=function(t){return"eval"!==(t=(0,e.default)(t))&&"arguments"!==t||(t="_"+t),t};var e=Tr();return yr}(),N=dr(),k=function(){if(gr)return Sr;gr=1,Object.defineProperty(Sr,"__esModule",{value:!0}),Sr.default=function(r){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.key||r.property;return!r.computed&&(0,e.isIdentifier)(i)&&(i=(0,t.stringLiteral)(i.name)),i};var e=Y(),t=nt();return Sr}(),O=function(){if(xr)return br;xr=1,Object.defineProperty(br,"__esModule",{value:!0}),br.default=void 0;var e=Y();return br.default=function(t){if((0,e.isExpressionStatement)(t)&&(t=t.expression),(0,e.isExpression)(t))return t;if((0,e.isClass)(t)?(t.type="ClassExpression",t.abstract=!1):(0,e.isFunction)(t)&&(t.type="FunctionExpression"),!(0,e.isExpression)(t))throw new Error("cannot turn ".concat(t.type," to an expression"));return t},br}(),_=Tr(),L=function(){if(kr)return Er;kr=1,Object.defineProperty(Er,"__esModule",{value:!0}),Er.default=i;var e=Y(),t=kt(),r=_r();function i(n){var a,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.key;return"method"===n.kind?i.increment()+"":(a=(0,e.isIdentifier)(s)?s.name:(0,e.isStringLiteral)(s)?JSON.stringify(s.value):JSON.stringify((0,r.default)((0,t.default)(s))),n.computed&&(a="[".concat(a,"]")),n.static&&(a="static:".concat(a)),a)}return i.uid=0,i.increment=function(){return i.uid>=Number.MAX_SAFE_INTEGER?i.uid=0:i.uid++},Er}(),M=function(){if(Lr)return Mr;Lr=1,Object.defineProperty(Mr,"__esModule",{value:!0}),Mr.default=void 0;var e=Y(),t=nt();return Mr.default=function(r,i){if((0,e.isStatement)(r))return r;var n,a=!1;if((0,e.isClass)(r))a=!0,n="ClassDeclaration";else if((0,e.isFunction)(r))a=!0,n="FunctionDeclaration";else if((0,e.isAssignmentExpression)(r))return(0,t.expressionStatement)(r);if(a&&!r.id&&(n=!1),!n){if(i)return!1;throw new Error("cannot turn ".concat(r.type," to a statement"))}return r.type=n,r},Mr}(),F=jr(),j=Ge();Object.keys(j).forEach((function(r){"default"!==r&&"__esModule"!==r&&(Object.prototype.hasOwnProperty.call(t,r)||r in e&&e[r]===j[r]||Object.defineProperty(e,r,{enumerable:!0,get:function(){return j[r]}}))}));var R=function(){if(Rr)return Ur;Rr=1,Object.defineProperty(Ur,"__esModule",{value:!0}),Ur.default=function(t,r){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return t.object=(0,e.memberExpression)(t.object,t.property,t.computed),t.property=r,t.computed=!!i,t};var e=nt();return Ur}(),U=function(){if(Kr)return Vr;Kr=1,Object.defineProperty(Vr,"__esModule",{value:!0}),Vr.default=function(r,i){if(!r||!i)return r;for(var n of e.INHERIT_KEYS.optional)null==r[n]&&(r[n]=i[n]);for(var a of Object.keys(i))"_"===a[0]&&"__clone"!==a&&(r[a]=i[a]);for(var s of e.INHERIT_KEYS.force)r[s]=i[s];return(0,t.default)(r,i),r};var e=Ce(),t=nr();return Vr}(),K=function(){if(qr)return Wr;qr=1,Object.defineProperty(Wr,"__esModule",{value:!0}),Wr.default=function(r,i){if((0,t.isSuper)(r.object))throw new Error("Cannot prepend node to super property access (`super.foo`).");return r.object=(0,e.memberExpression)(i,r.object),r};var e=nt(),t=Oi();return Wr}(),q=Dr(),G=_r(),Q=gt(),$=(Yr||(Yr=1,Object.defineProperty(Jr,"__esModule",{value:!0}),Jr.default=function(e){for(var t=[].concat(e),r=Object.create(null);t.length;){var 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":"delete"===i.operator&&t.push(i.argument);break;case"Identifier":r[i.name]=i}}return r}),Jr),Z=zr(),ee=function(){if(Gr)return Qr;Gr=1,Object.defineProperty(Qr,"__esModule",{value:!0}),Qr.default=void 0;var e=zr();return Qr.default=function(t,r){return(0,e.default)(t,r,!0)},Qr}(),te=ei(),re=ii();Object.keys(re).forEach((function(r){"default"!==r&&"__esModule"!==r&&(Object.prototype.hasOwnProperty.call(t,r)||r in e&&e[r]===re[r]||Object.defineProperty(e,r,{enumerable:!0,get:function(){return re[r]}}))}));var ie=wr(),ne=B(),ae=ue(),oe=function(){if(ni)return ai;ni=1,Object.defineProperty(ai,"__esModule",{value:!0}),ai.default=function(t,r,i){if(i&&"Identifier"===t.type&&"ObjectProperty"===r.type&&"ObjectExpression"===i.type)return!1;var n=e.default.keys[r.type];if(n)for(var a=0;a<n.length;a++){var s=r[n[a]];if(Array.isArray(s)){if(s.includes(t))return!0}else if(s===t)return!0}return!1};var e=zr();return ai}(),le=function(){if(oi)return li;oi=1,Object.defineProperty(li,"__esModule",{value:!0}),li.default=function(r){return(0,e.isFunctionDeclaration)(r)||(0,e.isClassDeclaration)(r)||(0,t.default)(r)};var e=Y(),t=ci();return li}(),pe=function(){if(ui)return hi;ui=1,Object.defineProperty(hi,"__esModule",{value:!0}),hi.default=function(r){return!!(0,e.default)(r.type,"Immutable")||!!(0,t.isIdentifier)(r)&&"undefined"===r.name};var e=se(),t=Y();return hi}(),he=ci(),de=ct(),fe=function(){if(di)return fi;di=1,Object.defineProperty(fi,"__esModule",{value:!0}),fi.default=function t(r,i){if("object"!=typeof r||"object"!=typeof i||null==r||null==i)return r===i;if(r.type!==i.type)return!1;var n=Object.keys(e.NODE_FIELDS[r.type]||r.type),a=e.VISITOR_KEYS[r.type];for(var s of n){var o=r[s],l=i[s];if(typeof o!=typeof l)return!1;if(null!=o||null!=l){if(null==o||null==l)return!1;if(Array.isArray(o)){if(!Array.isArray(l))return!1;if(o.length!==l.length)return!1;for(var p=0;p<o.length;p++)if(!t(o[p],l[p]))return!1}else if("object"!=typeof o||null!=a&&a.includes(s)){if(!t(o,l))return!1}else for(var c of Object.keys(o))if(o[c]!==l[c])return!1}}return!0};var e=Ge();return fi}(),me=ce(),ye=(mi||(mi=1,Object.defineProperty(yi,"__esModule",{value:!0}),yi.default=function(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":case"LabeledStatement":case"CatchClause":case"RestElement":case"BreakStatement":case"ContinueStatement":case"FunctionDeclaration":case"FunctionExpression":case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":case"ImportAttribute":case"JSXAttribute":case"ObjectPattern":case"ArrayPattern":case"MetaProperty":return!1;case"ClassMethod":case"ClassPrivateMethod":case"ObjectMethod":return t.key===e&&!!t.computed;case"ObjectProperty":return t.key===e?!!t.computed:!r||"ObjectPattern"!==r.type;case"ClassProperty":case"ClassAccessorProperty":case"TSPropertySignature":return t.key!==e||!!t.computed;case"ClassPrivateProperty":case"ObjectTypeProperty":return t.key!==e;case"ClassDeclaration":case"ClassExpression":return t.superClass===e;case"AssignmentExpression":case"AssignmentPattern":return t.right===e;case"ExportSpecifier":return(null==r||!r.source)&&t.local===e;case"TSEnumMember":return t.id!==e}return!0}),yi),ve=function(){if(vi)return Ti;vi=1,Object.defineProperty(Ti,"__esModule",{value:!0}),Ti.default=function(t,r){return(!(0,e.isBlockStatement)(t)||!(0,e.isFunction)(r)&&!(0,e.isCatchClause)(r))&&(!(!(0,e.isPattern)(t)||!(0,e.isFunction)(r)&&!(0,e.isCatchClause)(r))||(0,e.isScopable)(t))};var e=Y();return Ti}(),Te=function(){if(gi)return Si;gi=1,Object.defineProperty(Si,"__esModule",{value:!0}),Si.default=function(t){return(0,e.isImportDefaultSpecifier)(t)||(0,e.isIdentifier)(t.imported||t.exported,{name:"default"})};var e=Y();return Si}(),ge=se(),Se=function(){if(xi)return bi;xi=1,Object.defineProperty(bi,"__esModule",{value:!0}),bi.default=function(r){return(0,e.default)(r)&&!t.has(r)};var e=xe(),t=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"]);return bi}(),be=xe(),Pe=function(){if(Pi)return Ei;Pi=1,Object.defineProperty(Ei,"__esModule",{value:!0}),Ei.default=function(r){return(0,e.isVariableDeclaration)(r,{kind:"var"})&&!r[t]};var e=Y(),t=Symbol.for("var used to be block scoped");return Ei}(),Ee=J(),Ae=Qe(),we=X(),Ie=Y();Object.keys(Ie).forEach((function(r){"default"!==r&&"__esModule"!==r&&(Object.prototype.hasOwnProperty.call(t,r)||r in e&&e[r]===Ie[r]||Object.defineProperty(e,r,{enumerable:!0,get:function(){return Ie[r]}}))}));var Ne=W(),ke=ki();e.react={isReactComponent:r.default,isCompatTag:i.default,buildChildren:n.default},e.toSequenceExpression=ke.default,A.env.BABEL_TYPES_8_BREAKING}(O)),O}var Di,_i={},Li={},Mi={},Fi={},Bi={},ji={};function Ri(){return Di||(Di=1,Object.defineProperty(ji,"__esModule",{value:!0}),ji.Var=ji.User=ji.Statement=ji.SpreadProperty=ji.Scope=ji.RestProperty=ji.ReferencedMemberExpression=ji.ReferencedIdentifier=ji.Referenced=ji.Pure=ji.NumericLiteralTypeAnnotation=ji.Generated=ji.ForAwaitStatement=ji.Flow=ji.Expression=ji.ExistentialTypeParam=ji.BlockScoped=ji.BindingIdentifier=void 0,ji.ReferencedIdentifier=["Identifier","JSXIdentifier"],ji.ReferencedMemberExpression=["MemberExpression"],ji.BindingIdentifier=["Identifier"],ji.Statement=["Statement"],ji.Expression=["Expression"],ji.Scope=["Scopable","Pattern"],ji.Referenced=null,ji.BlockScoped=["FunctionDeclaration","ClassDeclaration","VariableDeclaration"],ji.Var=["VariableDeclaration"],ji.User=null,ji.Generated=null,ji.Pure=null,ji.Flow=["Flow","ImportDeclaration","ExportDeclaration","ImportSpecifier"],ji.RestProperty=["RestElement"],ji.SpreadProperty=["RestElement"],ji.ExistentialTypeParam=["ExistsTypeAnnotation"],ji.NumericLiteralTypeAnnotation=["NumberLiteralTypeAnnotation"],ji.ForAwaitStatement=["ForOfStatement"]),ji}var Ui,Ki,Vi,qi,Wi,Yi={exports:{}};function Ji(){if(Ki)return Ui;Ki=1;var e=1e3,t=60*e,r=60*t,i=24*r,n=7*i,a=365.25*i;function s(e,t,r,i){var n=t>=1.5*r;return Math.round(e/r)+" "+i+(n?"s":"")}return Ui=function(o,l){l=l||{};var p=typeof o;if("string"===p&&o.length>0)return function(s){if((s=String(s)).length>100)return;var o=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(s);if(!o)return;var l=parseFloat(o[1]);switch((o[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return l*a;case"weeks":case"week":case"w":return l*n;case"days":case"day":case"d":return l*i;case"hours":case"hour":case"hrs":case"hr":case"h":return l*r;case"minutes":case"minute":case"mins":case"min":case"m":return l*t;case"seconds":case"second":case"secs":case"sec":case"s":return l*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return l;default:return}}(o);if("number"===p&&isFinite(o))return l.long?function(n){var a=Math.abs(n);if(a>=i)return s(n,a,i,"day");if(a>=r)return s(n,a,r,"hour");if(a>=t)return s(n,a,t,"minute");if(a>=e)return s(n,a,e,"second");return n+" ms"}(o):function(n){var a=Math.abs(n);if(a>=i)return Math.round(n/i)+"d";if(a>=r)return Math.round(n/r)+"h";if(a>=t)return Math.round(n/t)+"m";if(a>=e)return Math.round(n/e)+"s";return n+"ms"}(o);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(o))},Ui}function Xi(){return Wi||(Wi=1,function(e,t){var r;t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;var r="color: "+this.color;t.splice(1,0,r,"color: inherit");var i=0,n=0;t[0].replace(/%[a-zA-Z%]/g,(e=>{"%%"!==e&&(i++,"%c"===e&&(n=i))})),t.splice(n,0,r)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){var e;try{e=t.storage.getItem("debug")||t.storage.getItem("DEBUG")}catch(e){}!e&&void 0!==A&&"env"in A&&(e=A.env.DEBUG);return e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;var e;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(r=!1,()=>{r||(r=!0)}),t.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"],t.log=console.debug||console.log||(()=>{}),e.exports=(qi||(qi=1,Vi=function(e){function t(e){var i,n,a,s=null;function o(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];if(o.enabled){var a=o,s=Number(new Date),l=s-(i||s);a.diff=l,a.prev=i,a.curr=s,i=s,r[0]=t.coerce(r[0]),"string"!=typeof r[0]&&r.unshift("%O");var p=0;r[0]=r[0].replace(/%([a-zA-Z%])/g,((e,i)=>{if("%%"===e)return"%";p++;var n=t.formatters[i];if("function"==typeof n){var s=r[p];e=n.call(a,s),r.splice(p,1),p--}return e})),t.formatArgs.call(a,r),(a.log||t.log).apply(a,r)}}return o.namespace=e,o.useColors=t.useColors(),o.color=t.selectColor(e),o.extend=r,o.destroy=t.destroy,Object.defineProperty(o,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==s?s:(n!==t.namespaces&&(n=t.namespaces,a=t.enabled(e)),a),set:e=>{s=e}}),"function"==typeof t.init&&t.init(o),o}function r(e,r){var i=t(this.namespace+(void 0===r?":":r)+e);return i.log=this.log,i}function i(e,t){for(var r=0,i=0,n=-1,a=0;r<e.length;)if(i<t.length&&(t[i]===e[r]||"*"===t[i]))"*"===t[i]?(n=i,a=r,i++):(r++,i++);else{if(-1===n)return!1;i=n+1,r=++a}for(;i<t.length&&"*"===t[i];)i++;return i===t.length}return t.debug=t,t.default=t,t.coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){var e=[...t.names,...t.skips.map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){t.save(e),t.namespaces=e,t.names=[],t.skips=[];var r=("string"==typeof e?e:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(var i of r)"-"===i[0]?t.skips.push(i.slice(1)):t.names.push(i)},t.enabled=function(e){for(var r of t.skips)if(i(e,r))return!1;for(var n of t.names)if(i(e,n))return!0;return!1},t.humanize=Ji(),t.destroy=function(){},Object.keys(e).forEach((r=>{t[r]=e[r]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){for(var r=0,i=0;i<e.length;i++)r=(r<<5)-r+e.charCodeAt(i),r|=0;return t.colors[Math.abs(r)%t.colors.length]},t.enable(t.load()),t}),Vi)(t);var{formatters:i}=e.exports;i.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}}(Yi,Yi.exports)),Yi.exports}var Hi,zi,Gi,Qi={},$i={},Zi={},en={};function tn(){if(Hi)return en;Hi=1,Object.defineProperty(en,"__esModule",{value:!0}),en.isBindingIdentifier=function(){var{node:e,parent:r}=this,i=this.parentPath.parent;return l(e)&&t(e,r,i)},en.isBlockScoped=function(){return r(this.node)},en.isExpression=function(){return this.isIdentifier()?this.isReferencedIdentifier():n(this.node)},en.isFlow=function(){var{node:e}=this;return!!a(e)||(p(e)?"type"===e.importKind||"typeof"===e.importKind:i(e)?"type"===e.exportKind:!!c(e)&&("type"===e.importKind||"typeof"===e.importKind))},en.isForAwaitStatement=function(){return x(this.node,{await:!0})},en.isGenerated=function(){return!this.isUser()},en.isPure=function(e){return this.scope.isPure(this.node,e)},en.isReferenced=function(){return m(this.node,this.parent)},en.isReferencedIdentifier=function(e){var{node:t,parent:r}=this;return l(t,e)?m(t,r,this.parentPath.parent):!!u(t,e)&&(!(!h(r)&&b(t.name))&&m(t,r,this.parentPath.parent))},en.isReferencedMemberExpression=function(){var{node:e,parent:t}=this;return d(e)&&m(e,t)},en.isRestProperty=function(){var e;return f(this.node)&&(null==(e=this.parentPath)?void 0:e.isObjectPattern())},en.isScope=function(){return y(this.node,this.parent)},en.isSpreadProperty=function(){var e;return f(this.node)&&(null==(e=this.parentPath)?void 0:e.isObjectExpression())},en.isStatement=function(){var{node:e,parent:t}=this;if(v(e)){if(g(e)){if(o(t,{left:e}))return!1;if(s(t,{init:e}))return!1}return!0}return!1},en.isUser=function(){var e;return!(null==(e=this.node)||!e.loc)},en.isVar=function(){return T(this.node)};var e=Oi(),{isBinding:t,isBlockScoped:r,isExportDeclaration:i,isExpression:n,isFlow:a,isForStatement:s,isForXStatement:o,isIdentifier:l,isImportDeclaration:p,isImportSpecifier:c,isJSXIdentifier:u,isJSXMemberExpression:h,isMemberExpression:d,isRestElement:f,isReferenced:m,isScope:y,isStatement:v,isVar:T,isVariableDeclaration:g,react:S,isForOfStatement:x}=e,{isCompatTag:b}=S;return en.isExistentialTypeParam=function(){throw new Error("`path.isExistentialTypeParam` has been renamed to `path.isExistsTypeAnnotation()` in Babel 7.")},en.isNumericLiteralTypeAnnotation=function(){throw new Error("`path.isNumericLiteralTypeAnnotation()` has been renamed to `path.isNumberLiteralTypeAnnotation()` in Babel 7.")},en}function rn(){if(zi)return Zi;zi=1,Object.defineProperty(Zi,"__esModule",{value:!0}),Zi.environmentVisitor=function(e){return f([S,e])},Zi.explode=u,Zi.isExplodedVisitor=c,Zi.merge=f,Zi.verify=h;var e=Ri(),t=tn(),r=Oi(),i=Mo(),{DEPRECATED_KEYS:n,DEPRECATED_ALIASES:a,FLIPPED_ALIAS_KEYS:s,TYPES:o,__internal__deprecationWarning:l}=r;function p(t){return t in e}function c(e){return null==e?void 0:e._exploded}function u(t){if(c(t))return t;for(var r of(t._exploded=!0,Object.keys(t)))if(!T(r)){var i=r.split("|");if(1!==i.length){var o=t[r];for(var u of(delete t[r],i))t[u]=o}}for(var d of(h(t),delete t.__esModule,function(e){for(var t of Object.keys(e))if(!T(t)){var r=e[t];"function"==typeof r&&(e[t]={enter:r})}}(t),y(t),Object.keys(t)))if(!T(d)&&p(d)){var f=t[d];for(var m of Object.keys(f))f[m]=v(d,f[m]);delete t[d];var S=e[d];if(null!==S)for(var x of S){null!=t[x]||(t[x]={}),g(t[x],f)}else g(t,f)}for(var b of Object.keys(t))if(!T(b)){var P=s[b];if(b in n){var E=n[b];l(b,E,"Visitor "),P=[E]}else if(b in a){var A=a[b];l(b,A,"Visitor "),P=s[A]}if(P){var C=t[b];for(var w of(delete t[b],P)){var I=t[w];I?g(I,C):t[w]=Object.assign({},C)}}}for(var N of Object.keys(t))T(N)||y(t[N]);return t}function h(e){if(!e._verified){if("function"==typeof e)throw new Error("You passed `traverse()` a function when it expected a visitor object, are you sure you didn't mean `{ enter: Function }`?");for(var t of Object.keys(e))if("enter"!==t&&"exit"!==t||d(t,e[t]),!T(t)){if(!o.includes(t))throw new Error("You gave us a visitor for the node type ".concat(t," but it's not a valid type in @babel/traverse ","7.28.5"));var r=e[t];if("object"==typeof r)for(var i of Object.keys(r)){if("enter"!==i&&"exit"!==i)throw new Error("You passed `traverse()` a visitor object with the property "+"".concat(t," that has the invalid property ").concat(i));d("".concat(t,".").concat(i),r[i])}}e._verified=!0}}function d(e,t){var r=[].concat(t);for(var i of r)if("function"!=typeof i)throw new TypeError("Non-function found defined in ".concat(e," with type ").concat(typeof i))}function f(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0,i={_verified:!0,_exploded:!0};Object.defineProperty(i,"_exploded",{enumerable:!1}),Object.defineProperty(i,"_verified",{enumerable:!1});for(var n=0;n<e.length;n++){var a=u(e[n]),s=t[n],o=a;for(var l of((s||r)&&(o=m(o,s,r)),g(i,o),Object.keys(a)))if(!T(l)){var p=a[l];(s||r)&&(p=m(p,s,r)),g(i[l]||(i[l]={}),p)}}return i}function m(e,t,r){var i={},n=function(n){var a=e[n];if(!Array.isArray(a))return 1;a=a.map((function(e){var i=e;return t&&(i=function(r){e.call(t,r,t)}),r&&(i=r(null==t?void 0:t.key,n,i)),i!==e&&(i.toString=()=>e.toString()),i})),i[n]=a};for(var a of["enter","exit"])n(a);return i}function y(e){e.enter&&!Array.isArray(e.enter)&&(e.enter=[e.enter]),e.exit&&!Array.isArray(e.exit)&&(e.exit=[e.exit])}function v(e,r){var i="is".concat(e),n=t[i],a=function(e){if(n.call(e))return r.apply(this,arguments)};return a.toString=()=>r.toString(),a}function T(e){return"_"===e[0]||("enter"===e||"exit"===e||"shouldSkip"===e||("denylist"===e||"noScope"===e||"skipKeys"===e||"blacklist"===e))}function g(e,t){for(var r of["enter","exit"])t[r]&&(e[r]=[].concat(e[r]||[],t[r]))}var S={FunctionParent(e){e.isArrowFunctionExpression()||(e.skip(),e.isMethod()&&(e.requeueComputedKeyAndDecorators?e.requeueComputedKeyAndDecorators():i.requeueComputedKeyAndDecorators.call(e)))},Property(e){e.isObjectProperty()||(e.skip(),e.requeueComputedKeyAndDecorators?e.requeueComputedKeyAndDecorators():i.requeueComputedKeyAndDecorators.call(e))}};return Zi}var nn,an={};var sn,on={};var ln,pn={};function cn(){if(ln)return pn;ln=1,Object.defineProperty(pn,"__esModule",{value:!0}),pn.clear=function(){t(),r()},pn.clearPath=t,pn.clearScope=r,pn.getCachedPaths=function(t){var{parent:r,parentPath:i}=t;return e.get(r)},pn.getOrCreateCachedPaths=function(t,r){var i=e.get(t);i||e.set(t,i=new Map);return i},pn.scope=pn.path=void 0;var e=pn.path=new WeakMap;function t(){pn.path=e=new WeakMap}function r(){pn.scope=new WeakMap}return pn.scope=new WeakMap,pn}var un,hn=["decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","eval","globalThis","isFinite","isNaN","parseFloat","parseInt","undefined","unescape"],dn=["AggregateError","Array","ArrayBuffer","Atomics","BigInt","BigInt64Array","BigUint64Array","Boolean","DataView","Date","Error","EvalError","FinalizationRegistry","Float16Array","Float32Array","Float64Array","Function","Infinity","Int16Array","Int32Array","Int8Array","Intl","Iterator","JSON","Map","Math","NaN","Number","Object","Promise","Proxy","RangeError","ReferenceError","Reflect","RegExp","Set","SharedArrayBuffer","String","Symbol","SyntaxError","TypeError","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray","URIError","WeakMap","WeakRef","WeakSet"];function fn(){if(un)return Qi;un=1,Object.defineProperty(Qi,"__esModule",{value:!0}),Qi.default=void 0;var e=function(){if(Gi)return $i;Gi=1,Object.defineProperty($i,"__esModule",{value:!0}),$i.default=void 0;var e=Oi(),t=e,r=Lo(),i=rn(),n=Mo(),{getAssignmentIdentifiers:a}=t,s={ReferencedIdentifier(e,t){var{node:r}=e;r.name===t.oldName&&(r.name=t.newName)},Scope(e,t){e.scope.bindingIdentifierEquals(t.oldName,t.binding.identifier)||(e.skip(),e.isMethod()&&(e.requeueComputedKeyAndDecorators?e.requeueComputedKeyAndDecorators():n.requeueComputedKeyAndDecorators.call(e)))},ObjectProperty(e,t){var r,{node:i,scope:n}=e,{name:a}=i.key;!i.shorthand||a!==t.oldName&&a!==t.newName||n.getBindingIdentifier(a)!==t.binding.identifier||(i.shorthand=!1,null!=(r=i.extra)&&r.shorthand&&(i.extra.shorthand=!1))},"AssignmentExpression|Declaration|VariableDeclarator"(e,t){if(!e.isVariableDeclaration()){var r=e.isAssignmentExpression()?a(e.node):e.getOuterBindingIdentifiers();for(var i in r)i===t.oldName&&(r[i].name=t.newName)}}};return $i.default=class{constructor(e,t,r){this.newName=r,this.oldName=t,this.binding=e}maybeConvertFromExportDeclaration(t){var r=t.parentPath;if(r.isExportDeclaration()){if(r.isExportDefaultDeclaration()){var{declaration:i}=r.node;if(e.isDeclaration(i)&&!i.id)return}r.isExportAllDeclaration()||r.splitExportDeclaration()}}maybeConvertFromClassFunctionDeclaration(e){return e}maybeConvertFromClassFunctionExpression(e){return e}rename(){var{binding:t,oldName:n,newName:a}=this,{scope:o,path:l}=t,p=l.find((e=>e.isDeclaration()||e.isFunctionExpression()||e.isClassExpression()));p&&p.getOuterBindingIdentifiers()[n]===t.identifier&&this.maybeConvertFromExportDeclaration(p);var c=arguments[0]||o.block,u={discriminant:!0};e.isMethod(c)&&(c.computed&&(u.key=!0),e.isObjectMethod(c)||(u.decorators=!0)),(0,r.traverseNode)(c,(0,i.explode)(s),o,this,o.path,u),arguments[0]||(o.removeOwnBinding(n),o.bindings[a]=t,this.binding.identifier.name=a),p&&(this.maybeConvertFromClassFunctionDeclaration(l),this.maybeConvertFromClassFunctionExpression(l))}},$i}(),t=Ro();!function(){if(nn)return an;nn=1,Object.defineProperty(an,"__esModule",{value:!0}),an.default=function(e,a,s){var o=(0,r.explode)(a);if(o.enter||o.exit)throw new Error("Should not be used with enter/exit visitors.");!function e(r,a,l,p,c,u,h,d){if(l){var f=d||t.NodePath.get({hub:h,parentPath:r,parent:a,container:p,listKey:u,key:c});i.setScope.call(f);var m=o[l.type];if(m){if(m.enter)for(var y of m.enter)y.call(s,f,s);if(m.exit)for(var v of m.exit)v.call(s,f,s)}if(!f.shouldSkip){var T=n[l.type];if(null!=T&&T.length)for(var g of T){var S=l[g];if(S)if(Array.isArray(S))for(var x=0;x<S.length;x++)e(f,l,S[x],S,x,g);else e(f,l,S,l,g,null)}}}}(e.parentPath,e.parent,e.node,e.container,e.key,e.listKey,e.hub,e)};var e=Oi(),t=Ro(),r=rn(),i=Mo(),{VISITOR_KEYS:n}=e}();var r=(sn||(sn=1,Object.defineProperty(on,"__esModule",{value:!0}),on.default=void 0,on.default=class{constructor(e){var{identifier:t,scope:r,path:i,kind:n}=e;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=n,"var"!==n&&"hoisted"!==n||!function(e){for(var t=!e.isVariableDeclarator()||e.node.init,{parentPath:r,key:i}=e;r;({parentPath:r,key:i}=r)){if(r.isFunctionParent())return!1;if("left"===i&&r.isForXStatement()||t&&"body"===i&&r.isLoop())return!0}return!1}(i)||this.reassign(i),this.clearValue()}deoptValue(){this.clearValue(),this.hasDeoptedValue=!0}setValue(e){this.hasDeoptedValue||(this.hasValue=!0,this.value=e)}clearValue(){this.hasDeoptedValue=!1,this.hasValue=!1,this.value=null}reassign(e){this.constant=!1,this.constantViolations.includes(e)||this.constantViolations.push(e)}reference(e){this.referencePaths.includes(e)||(this.referenced=!0,this.references++,this.referencePaths.push(e))}dereference(){this.references--,this.referenced=!!this.references}}),on),i=Oi(),n=i,a=cn(),s=hn,o=dn,{assignmentExpression:l,callExpression:p,cloneNode:c,getBindingIdentifiers:u,identifier:h,isArrayExpression:d,isBinary:f,isCallExpression:m,isClass:y,isClassBody:v,isClassDeclaration:T,isExportAllDeclaration:g,isExportDefaultDeclaration:S,isExportNamedDeclaration:x,isFunctionDeclaration:b,isIdentifier:P,isImportDeclaration:E,isLiteral:A,isMemberExpression:C,isMethod:w,isModuleSpecifier:I,isNullLiteral:N,isObjectExpression:k,isProperty:O,isPureish:D,isRegExpLiteral:_,isSuper:L,isTaggedTemplateExpression:M,isTemplateLiteral:F,isThisExpression:B,isUnaryExpression:j,isVariableDeclaration:R,expressionStatement:U,matchesPattern:K,memberExpression:V,numericLiteral:q,toIdentifier:W,variableDeclaration:Y,variableDeclarator:J,isRecordExpression:X,isTupleExpression:H,isObjectProperty:z,isTopicReference:G,isMetaProperty:Q,isPrivateName:$,isExportDeclaration:Z,buildUndefinedNode:ee,sequenceExpression:te}=i;function re(e,t){switch(null==e?void 0:e.type){default:var r;if(E(e)||Z(e))if((g(e)||x(e)||E(e))&&e.source)re(e.source,t);else if((x(e)||E(e))&&null!=(r=e.specifiers)&&r.length)for(var i of e.specifiers)re(i,t);else(S(e)||x(e))&&e.declaration&&re(e.declaration,t);else I(e)?re(e.local,t):!A(e)||N(e)||_(e)||F(e)||t.push(e.value);break;case"MemberExpression":case"OptionalMemberExpression":case"JSXMemberExpression":re(e.object,t),re(e.property,t);break;case"Identifier":case"JSXIdentifier":t.push(e.name);break;case"CallExpression":case"OptionalCallExpression":case"NewExpression":re(e.callee,t);break;case"ObjectExpression":case"ObjectPattern":for(var n of e.properties)re(n,t);break;case"SpreadElement":case"RestElement":case"UnaryExpression":case"UpdateExpression":re(e.argument,t);break;case"ObjectProperty":case"ObjectMethod":case"ClassProperty":case"ClassMethod":case"ClassPrivateProperty":case"ClassPrivateMethod":re(e.key,t);break;case"ThisExpression":t.push("this");break;case"Super":t.push("super");break;case"Import":case"ImportExpression":t.push("import");break;case"DoExpression":t.push("do");break;case"YieldExpression":t.push("yield"),re(e.argument,t);break;case"AwaitExpression":t.push("await"),re(e.argument,t);break;case"AssignmentExpression":re(e.left,t);break;case"VariableDeclarator":case"FunctionExpression":case"FunctionDeclaration":case"ClassExpression":case"ClassDeclaration":case"PrivateName":re(e.id,t);break;case"ParenthesizedExpression":re(e.expression,t);break;case"MetaProperty":re(e.meta,t),re(e.property,t);break;case"JSXElement":re(e.openingElement,t);break;case"JSXOpeningElement":re(e.name,t);break;case"JSXFragment":re(e.openingFragment,t);break;case"JSXOpeningFragment":t.push("Fragment");break;case"JSXNamespacedName":re(e.namespace,t),re(e.name,t)}}function ie(e){e.references=Object.create(null),e.uids=Object.create(null),e.bindings=Object.create(null),e.globals=Object.create(null)}var ne,ae=Symbol.for("should not be considered a local binding"),se={ForStatement(e){var t=e.get("init");if(t.isVar()){var{scope:r}=e;(r.getFunctionParent()||r.getProgramParent()).registerBinding("var",t)}},Declaration(e){e.isBlockScoped()||(e.isImportDeclaration()||e.isExportDeclaration()||(e.scope.getFunctionParent()||e.scope.getProgramParent()).registerDeclaration(e))},ImportDeclaration(e){e.scope.getBlockParent().registerDeclaration(e)},TSImportEqualsDeclaration(e){e.scope.getBlockParent().registerDeclaration(e)},ReferencedIdentifier(e,t){n.isTSQualifiedName(e.parent)&&e.parent.right===e.node||e.parentPath.isTSImportEqualsDeclaration()||t.references.push(e)},ForXStatement(e,t){var r=e.get("left");if(r.isPattern()||r.isIdentifier())t.constantViolations.push(e);else if(r.isVar()){var{scope:i}=e;(i.getFunctionParent()||i.getProgramParent()).registerBinding("var",r)}},ExportDeclaration:{exit(e){var{node:t,scope:r}=e;if(!g(t)){var i=t.declaration;if(T(i)||b(i)){var n=i.id;if(!n)return;var a=r.getBinding(n.name);null==a||a.reference(e)}else if(R(i))for(var s of i.declarations)for(var o of Object.keys(u(s))){var l=r.getBinding(o);null==l||l.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){"delete"===e.node.operator&&t.constantViolations.push(e)},BlockScoped(e){var t=e.scope;if(t.path===e&&(t=t.parent),t.getBlockParent().registerDeclaration(e),e.isClassDeclaration()&&e.node.id){var r=e.node.id.name;e.scope.bindings[r]=e.scope.parent.getBinding(r)}},CatchClause(e){e.scope.registerBinding("let",e)},Function(e){var t=e.get("params");for(var r of t)e.scope.registerBinding("param",r);e.isFunctionExpression()&&e.node.id&&!e.node.id[ae]&&e.scope.registerBinding("local",e.get("id"),e)},ClassExpression(e){e.node.id&&!e.node.id[ae]&&e.scope.registerBinding("local",e.get("id"),e)},TSTypeAnnotation(e){e.skip()}},oe=0;class le{constructor(e){this.uid=void 0,this.path=void 0,this.block=void 0,this.inited=void 0,this.labels=void 0,this.bindings=void 0,this.referencesSet=void 0,this.globals=void 0,this.uidsSet=void 0,this.data=void 0,this.crawling=void 0;var{node:t}=e,r=a.scope.get(t);if((null==r?void 0:r.path)===e)return r;a.scope.set(t,this),this.uid=oe++,this.block=t,this.path=e,this.labels=new Map,this.inited=!1,Object.defineProperties(this,{references:{enumerable:!0,configurable:!0,writable:!0,value:Object.create(null)},uids:{enumerable:!0,configurable:!0,writable:!0,value:Object.create(null)}})}get parent(){var e,t,r=this.path;do{var i,n="key"===r.key||"decorators"===r.listKey;r=r.parentPath,n&&r.isMethod()&&(r=r.parentPath),null!=(i=r)&&i.isScope()&&(t=r)}while(r&&!t);return null==(e=t)?void 0:e.scope}get references(){throw new Error("Scope#references is not available in Babel 8. Use Scope#referencesSet instead.")}get uids(){throw new Error("Scope#uids is not available in Babel 8. Use Scope#uidsSet instead.")}generateDeclaredUidIdentifier(e){var t=this.generateUidIdentifier(e);return this.push({id:t}),c(t)}generateUidIdentifier(e){return h(this.generateUid(e))}generateUid(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"temp";t=W(t).replace(/^_+/,"").replace(/\d+$/g,"");var r=0;do{e="_".concat(t),r>=11?e+=r-1:r>=9?e+=r-9:r>=1&&(e+=r+1),r++}while(this.hasLabel(e)||this.hasBinding(e)||this.hasGlobal(e)||this.hasReference(e));var i=this.getProgramParent();return i.references[e]=!0,i.uids[e]=!0,e}generateUidBasedOnNode(e,t){var r=[];re(e,r);var i=r.join("$");return i=i.replace(/^_/,"")||t||"ref",this.generateUid(i.slice(0,20))}generateUidIdentifierBasedOnNode(e,t){return h(this.generateUidBasedOnNode(e,t))}isStatic(e){if(B(e)||L(e)||G(e))return!0;if(P(e)){var t=this.getBinding(e.name);return t?t.constant:this.hasBinding(e.name)}return!1}maybeGenerateMemoised(e,t){if(this.isStatic(e))return null;var r=this.generateUidIdentifierBasedOnNode(e);return t?r:(this.push({id:r}),c(r))}checkBlockScopedCollisions(e,t,r,i){if("param"!==t&&("local"!==e.kind&&("let"===t||"let"===e.kind||"const"===e.kind||"module"===e.kind||"param"===e.kind&&"const"===t)))throw this.path.hub.buildError(i,'Duplicate declaration "'.concat(r,'"'),TypeError)}rename(t,r){var i=this.getBinding(t);i&&(r||(r=this.generateUidIdentifier(t).name),new e.default(i,t,r).rename(arguments[2]))}dump(){"-".repeat(60);var e=this;do{for(var t of Object.keys(e.bindings))e.bindings[t]}while(e=e.parent)}hasLabel(e){return!!this.getLabel(e)}getLabel(e){return this.labels.get(e)}registerLabel(e){this.labels.set(e.node.label.name,e)}registerDeclaration(e){if(e.isLabeledStatement())this.registerLabel(e);else if(e.isFunctionDeclaration())this.registerBinding("hoisted",e.get("id"),e);else if(e.isVariableDeclaration()){var t=e.get("declarations"),{kind:r}=e.node;for(var i of t)this.registerBinding("using"===r||"await using"===r?"const":r,i)}else if(e.isClassDeclaration()){if(e.node.declare)return;this.registerBinding("let",e)}else if(e.isImportDeclaration()){var n="type"===e.node.importKind||"typeof"===e.node.importKind,a=e.get("specifiers");for(var s of a){var o=n||s.isImportSpecifier()&&("type"===s.node.importKind||"typeof"===s.node.importKind);this.registerBinding(o?"unknown":"module",s)}}else if(e.isExportDeclaration()){var l=e.get("declaration");(l.isClassDeclaration()||l.isFunctionDeclaration()||l.isVariableDeclaration())&&this.registerDeclaration(l)}else this.registerBinding("unknown",e)}buildUndefinedNode(){return ee()}registerConstantViolation(e){var t=e.getAssignmentIdentifiers();for(var r of Object.keys(t)){var i;null==(i=this.getBinding(r))||i.reassign(e)}}registerBinding(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t;if(!e)throw new ReferenceError("no `kind`");if(t.isVariableDeclaration()){var n=t.get("declarations");for(var a of n)this.registerBinding(e,a)}else{var s=this.getProgramParent(),o=t.getOuterBindingIdentifiers(!0);for(var l of Object.keys(o))for(var p of(s.references[l]=!0,o[l])){var c=this.getOwnBinding(l);if(c){if(c.identifier===p)continue;this.checkBlockScopedCollisions(c,e,l,p)}c?c.reassign(i):this.bindings[l]=new r.default({identifier:p,scope:this,path:i,kind:e})}}}addGlobal(e){this.globals[e.name]=e}hasUid(e){var t=this;do{if(t.uids[e])return!0}while(t=t.parent);return!1}hasGlobal(e){var t=this;do{if(t.globals[e])return!0}while(t=t.parent);return!1}hasReference(e){return!!this.getProgramParent().references[e]}isPure(e,t){if(P(e)){var r=this.getBinding(e.name);return!!r&&(!t||r.constant)}if(B(e)||Q(e)||G(e)||$(e))return!0;var i,a,s;if(y(e))return!(e.superClass&&!this.isPure(e.superClass,t))&&(!((null==(i=e.decorators)?void 0:i.length)>0)&&this.isPure(e.body,t));if(v(e)){for(var o of e.body)if(!this.isPure(o,t))return!1;return!0}if(f(e))return this.isPure(e.left,t)&&this.isPure(e.right,t);if(d(e)||H(e)){for(var l of e.elements)if(null!==l&&!this.isPure(l,t))return!1;return!0}if(k(e)||X(e)){for(var p of e.properties)if(!this.isPure(p,t))return!1;return!0}if(w(e))return!(e.computed&&!this.isPure(e.key,t))&&!((null==(a=e.decorators)?void 0:a.length)>0);if(O(e))return!(e.computed&&!this.isPure(e.key,t))&&(!((null==(s=e.decorators)?void 0:s.length)>0)&&!((z(e)||e.static)&&null!==e.value&&!this.isPure(e.value,t)));if(j(e))return this.isPure(e.argument,t);if(F(e)){for(var c of e.expressions)if(!this.isPure(c,t))return!1;return!0}return M(e)?K(e.tag,"String.raw")&&!this.hasBinding("String",{noGlobals:!0})&&this.isPure(e.quasi,t):C(e)?!e.computed&&P(e.object)&&"Symbol"===e.object.name&&P(e.property)&&"for"!==e.property.name&&!this.hasBinding("Symbol",{noGlobals:!0}):m(e)?K(e.callee,"Symbol.for")&&!this.hasBinding("Symbol",{noGlobals:!0})&&1===e.arguments.length&&n.isStringLiteral(e.arguments[0]):D(e)}setData(e,t){return this.data[e]=t}getData(e){var t=this;do{var r=t.data[e];if(null!=r)return r}while(t=t.parent)}removeData(e){var t=this;do{null!=t.data[e]&&(t.data[e]=null)}while(t=t.parent)}init(){this.inited||(this.inited=!0,this.crawl())}crawl(){var e=this.path;ie(this),this.data=Object.create(null);var r=this;do{if(r.crawling)return;if(r.path.isProgram())break}while(r=r.parent);var i=r,n={references:[],constantViolations:[],assignments:[]};if(this.crawling=!0,ne||(ne=t.default.visitors.merge([{Scope(e){ie(e.scope)}},se])),"Program"!==e.type){var a=ne[e.type];if(a)for(var s of a.enter)s.call(n,e,n)}for(var o of(e.traverse(ne,n),this.crawling=!1,n.assignments)){var l=o.getAssignmentIdentifiers();for(var p of Object.keys(l))o.scope.getBinding(p)||i.addGlobal(l[p]);o.scope.registerConstantViolation(o)}for(var c of n.references){var u=c.scope.getBinding(c.node.name);u?u.reference(c):i.addGlobal(c.node)}for(var h of n.constantViolations)h.scope.registerConstantViolation(h)}push(e){var t=this.path;t.isPattern()?t=this.getPatternParent().path:t.isBlockStatement()||t.isProgram()||(t=this.getBlockParent().path),t.isSwitchStatement()&&(t=(this.getFunctionParent()||this.getProgramParent()).path);var{init:r,unique:i,kind:n="var",id:a}=e;if(!r&&!i&&("var"===n||"let"===n)&&function(e){return e.isFunctionExpression()&&!e.node.id||e.isArrowFunctionExpression()}(t)&&m(t.parent,{callee:t.node})&&t.parent.arguments.length<=t.node.params.length&&P(a))return t.pushContainer("params",a),void t.scope.registerBinding("param",t.get("params")[t.node.params.length-1]);(t.isLoop()||t.isCatchClause()||t.isFunction())&&(t.ensureBlock(),t=t.get("body"));var s=null==e._blockHoist?2:e._blockHoist,o="declaration:".concat(n,":").concat(s),l=!i&&t.getData(o);if(!l){var p=Y(n,[]);p._blockHoist=s,[l]=t.unshiftContainer("body",[p]),i||t.setData(o,l)}var c=J(a,r),u=l.node.declarations.push(c);t.scope.registerBinding(n,l.get("declarations")[u-1])}getProgramParent(){var e=this;do{if(e.path.isProgram())return e}while(e=e.parent);throw new Error("Couldn't find a Program")}getFunctionParent(){var e=this;do{if(e.path.isFunctionParent())return e}while(e=e.parent);return null}getBlockParent(){var e=this;do{if(e.path.isBlockParent())return e}while(e=e.parent);throw new Error("We couldn't find a BlockStatement, For, Switch, Function, Loop or Program...")}getPatternParent(){var e=this;do{if(!e.path.isPattern())return e.getBlockParent()}while(e=e.parent.parent);throw new Error("We couldn't find a BlockStatement, For, Switch, Function, Loop or Program...")}getAllBindings(){var e=Object.create(null),t=this;do{for(var r of Object.keys(t.bindings))r in e==!1&&(e[r]=t.bindings[r]);t=t.parent}while(t);return e}bindingIdentifierEquals(e,t){return this.getBindingIdentifier(e)===t}getBinding(e){var t,r=this;do{var i,n=r.getOwnBinding(e);if(n){if(null==(i=t)||!i.isPattern()||"param"===n.kind||"local"===n.kind)return n}else if(!n&&"arguments"===e&&r.path.isFunction()&&!r.path.isArrowFunctionExpression())break;t=r.path}while(r=r.parent)}getOwnBinding(e){return this.bindings[e]}getBindingIdentifier(e){var t;return null==(t=this.getBinding(e))?void 0:t.identifier}getOwnBindingIdentifier(e){var t=this.bindings[e];return null==t?void 0:t.identifier}hasOwnBinding(e){return!!this.getOwnBinding(e)}hasBinding(e,t){if(!e)return!1;var r,i,n;"object"==typeof t?(r=t.noGlobals,i=t.noUids,n=t.upToScope):"boolean"==typeof t&&(r=t);var a=this;do{if(n===a)break;if(a.hasOwnBinding(e))return!0}while(a=a.parent);return!(i||!this.hasUid(e))||(!(r||!le.globals.includes(e))||!(r||!le.contextVariables.includes(e)))}parentHasBinding(e,t){var r;return null==(r=this.parent)?void 0:r.hasBinding(e,t)}moveBindingTo(e,t){var r=this.getBinding(e);r&&(r.scope.removeOwnBinding(e),r.scope=t,t.bindings[e]=r)}removeOwnBinding(e){delete this.bindings[e]}removeBinding(e){var t;null==(t=this.getBinding(e))||t.scope.removeOwnBinding(e);var r=this;do{r.uids[e]&&(r.uids[e]=!1)}while(r=r.parent)}hoistVariables(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e=>this.push({id:e});this.crawl();var t=new Set;for(var r of Object.keys(this.bindings)){var i=this.bindings[r];if(i){var{path:n}=i;if(n.isVariableDeclarator()){var{parent:a,parentPath:s}=n;if("var"===a.kind&&!t.has(a)){t.add(n.parent);var o=void 0,p=[];for(var c of a.declarations){null!=o||(o=c.id),c.init&&p.push(l("=",c.id,c.init));var d=Object.keys(u(c,!1,!0,!0));for(var f of d)e(h(f),null!=c.init)}if(s.parentPath.isForXStatement({left:a}))s.replaceWith(o);else if(0===p.length)s.remove();else{var m=1===p.length?p[0]:te(p);s.parentPath.isForStatement({init:a})?s.replaceWith(m):s.replaceWith(U(m))}}}}}}}return Qi.default=le,le.globals=[...s,...o],le.contextVariables=["arguments","undefined","Infinity","NaN"],le.prototype._renameFromMap=function(e,t,r,i){e[t]&&(e[r]=i,e[t]=null)},le.prototype.traverse=function(e,r,i){(0,t.default)(e,r,this,i,this.path)},le.prototype._generateUid=function(e,t){var r=e;return t>1&&(r+=t),"_".concat(r)},le.prototype.toArray=function(e,t,r){if(P(e)){var i=this.getBinding(e.name);if(null!=i&&i.constant&&i.path.isGenericType("Array"))return e}if(d(e))return e;if(P(e,{name:"arguments"}))return p(V(V(V(h("Array"),h("prototype")),h("slice")),h("call")),[e]);var n,a=[e];return!0===t?n="toConsumableArray":"number"==typeof t?(a.push(q(t)),n="slicedToArray"):n="toArray",r&&(a.unshift(this.path.hub.addHelper(n)),n="maybeArrayLike"),p(this.path.hub.addHelper(n),a)},le.prototype.getAllBindingsOfKind=function(){for(var e=Object.create(null),t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];for(var n of r){var a=this;do{for(var s of Object.keys(a.bindings)){var o=a.bindings[s];o.kind===n&&(e[s]=o)}a=a.parent}while(a)}return e},Object.defineProperties(le.prototype,{parentBlock:{configurable:!0,enumerable:!0,get(){return this.path.parent}},hub:{configurable:!0,enumerable:!0,get(){return this.path.hub}}}),Qi}var mn,yn={},vn={},Tn={exports:{}};var gn,Sn=(mn||(mn=1,function(e){for(var t=",".charCodeAt(0),r=";".charCodeAt(0),i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=new Uint8Array(64),a=new Uint8Array(128),s=0;s<i.length;s++){var o=i.charCodeAt(s);n[s]=o,a[o]=s}function l(e,t){var r=0,i=0,n=0;do{var s=e.next();r|=(31&(n=a[s]))<<i,i+=5}while(32&n);var o=1&r;return r>>>=1,o&&(r=-2147483648|-r),t+r}function p(e,t,r){var i=t-r;i=i<0?-i<<1|1:i<<1;do{var a=31&i;(i>>>=5)>0&&(a|=32),e.write(n[a])}while(i>0);return t}function c(e,r){return!(e.pos>=r)&&e.peek()!==t}var u=16384,h="undefined"!=typeof TextDecoder?new TextDecoder:"undefined"!=typeof Buffer?{decode:e=>Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString()}:{decode(e){for(var t="",r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t}};class d{constructor(){this.pos=0,this.out="",this.buffer=new Uint8Array(u)}write(e){var{buffer:t}=this;t[this.pos++]=e,this.pos===u&&(this.out+=h.decode(t),this.pos=0)}flush(){var{buffer:e,out:t,pos:r}=this;return r>0?t+h.decode(e.subarray(0,r)):t}}class f{constructor(e){this.pos=0,this.buffer=e}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(e){var{buffer:t,pos:r}=this,i=t.indexOf(e,r);return-1===i?t.length:i}}var m=[];function y(e){for(var{length:t}=e,r=new f(e),i=[],n=[],a=0;r.pos<t;r.pos++){a=l(r,a);var s=l(r,0);if(c(r,t)){var o=l(r,0),p=1&l(r,0)?[a,s,0,0,o,l(r,0)]:[a,s,0,0,o],u=m;if(c(r,t)){u=[];do{var h=l(r,0);u.push(h)}while(c(r,t))}p.vars=u,i.push(p),n.push(p)}else{var d=n.pop();d[2]=a,d[3]=s}}return i}function v(e){for(var t=new d,r=0;r<e.length;)r=T(e,r,t,[0]);return t.flush()}function T(e,r,i,n){var a=e[r],{0:s,1:o,2:l,3:c,4:u,vars:h}=a;r>0&&i.write(t),n[0]=p(i,s,n[0]),p(i,o,0),p(i,u,0);var d=6===a.length?1:0;for(var f of(p(i,d,0),6===a.length&&p(i,a[5],0),h))p(i,f,0);for(r++;r<e.length;){var m=e[r],{0:y,1:v}=m;if(y>l||y===l&&v>=c)break;r=T(e,r,i,n)}return i.write(t),n[0]=p(i,l,n[0]),p(i,c,0),r}function g(e){var{length:t}=e,r=new f(e),i=[],n=[],a=0,s=0,o=0,p=0,u=0,h=0,d=0,y=0;do{for(var v=r.indexOf(";"),T=0;r.pos<v;r.pos++)if(T=l(r,T),c(r,v)){var g=l(r,0),S=2&g,x=4&g,b=null,P=m,E=void 0;if(1&g){var A=l(r,s);o=l(r,s===A?o:0),s=A,E=[a,T,0,0,A,o]}else E=[a,T,0,0];if(E.isScope=!!x,S){var C=u,w=p===(p=l(r,p));b=[p,u=l(r,w?u:0),h=l(r,w&&C===u?h:0)]}if(E.callsite=b,c(r,v)){P=[];do{d=a,y=T;var I=l(r,0),N=void 0;if(I<-1){N=[[l(r,0)]];for(var k=-1;k>I;k--){var O=d;d=l(r,d),y=l(r,d===O?y:0);var D=l(r,0);N.push([D,d,y])}}else N=[[I]];P.push(N)}while(c(r,v))}E.bindings=P,i.push(E),n.push(E)}else{var _=n.pop();_[2]=a,_[3]=T}a++,r.pos=v+1}while(r.pos<t);return i}function S(e){if(0===e.length)return"";for(var t=new d,r=0;r<e.length;)r=x(e,r,t,[0,0,0,0,0,0,0]);return t.flush()}function x(e,r,i,n){var a=e[r],{0:s,1:o,2:l,3:c,isScope:u,callsite:h,bindings:d}=a;if(n[0]<s?(b(i,n[0],s),n[0]=s,n[1]=0):r>0&&i.write(t),n[1]=p(i,a[1],n[1]),p(i,(6===a.length?1:0)|(h?2:0)|(u?4:0),0),6===a.length){var{4:f,5:m}=a;f!==n[2]&&(n[3]=0),n[2]=p(i,f,n[2]),n[3]=p(i,m,n[3])}if(h){var{0:y,1:v,2:T}=a.callsite;y!==n[4]?(n[5]=0,n[6]=0):v!==n[5]&&(n[6]=0),n[4]=p(i,y,n[4]),n[5]=p(i,v,n[5]),n[6]=p(i,T,n[6])}if(d)for(var g of d){g.length>1&&p(i,-g.length,0),p(i,g[0][0],0);for(var S=s,P=o,E=1;E<g.length;E++){var A=g[E];S=p(i,A[1],S),P=p(i,A[2],P),p(i,A[0],0)}}for(r++;r<e.length;){var C=e[r],{0:w,1:I}=C;if(w>l||w===l&&I>=c)break;r=x(e,r,i,n)}return n[0]<l?(b(i,n[0],l),n[0]=l,n[1]=0):i.write(t),n[1]=p(i,c,n[1]),r}function b(e,t,i){do{e.write(r)}while(++t<i)}function P(e){var{length:t}=e,r=new f(e),i=[],n=0,a=0,s=0,o=0,p=0;do{var u=r.indexOf(";"),h=[],d=!0,m=0;for(n=0;r.pos<u;){var y=void 0;(n=l(r,n))<m&&(d=!1),m=n,c(r,u)?(a=l(r,a),s=l(r,s),o=l(r,o),y=c(r,u)?[n,a,s,o,p=l(r,p)]:[n,a,s,o]):y=[n],h.push(y),r.pos++}d||E(h),i.push(h),r.pos=u+1}while(r.pos<=t);return i}function E(e){e.sort(A)}function A(e,t){return e[0]-t[0]}function C(e){for(var i=new d,n=0,a=0,s=0,o=0,l=0;l<e.length;l++){var c=e[l];if(l>0&&i.write(r),0!==c.length)for(var u=0,h=0;h<c.length;h++){var f=c[h];h>0&&i.write(t),u=p(i,f[0],u),1!==f.length&&(n=p(i,f[1],n),a=p(i,f[2],a),s=p(i,f[3],s),4!==f.length&&(o=p(i,f[4],o)))}}return i.flush()}e.decode=P,e.decodeGeneratedRanges=g,e.decodeOriginalScopes=y,e.encode=C,e.encodeGeneratedRanges=S,e.encodeOriginalScopes=v,Object.defineProperty(e,"__esModule",{value:!0})}(Tn.exports)),Tn.exports),xn={exports:{}};var bn=(gn||(gn=1,xn.exports=function(){var e=/^[\w+.-]+:\/\//,t=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,r=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;function i(t){return e.test(t)}function n(e){return e.startsWith("//")}function a(e){return e.startsWith("/")}function s(e){return e.startsWith("file:")}function o(e){return/^[.?#]/.test(e)}function l(e){var r=t.exec(e);return c(r[1],r[2]||"",r[3],r[4]||"",r[5]||"/",r[6]||"",r[7]||"")}function p(e){var t=r.exec(e),i=t[2];return c("file:","",t[1]||"","",a(i)?i:"/"+i,t[3]||"",t[4]||"")}function c(e,t,r,i,n,a,s){return{scheme:e,user:t,host:r,port:i,path:n,query:a,hash:s,type:7}}function u(e){if(n(e)){var t=l("http:"+e);return t.scheme="",t.type=6,t}if(a(e)){var r=l("http://foo.com"+e);return r.scheme="",r.host="",r.type=5,r}if(s(e))return p(e);if(i(e))return l(e);var o=l("http://foo.com/"+e);return o.scheme="",o.host="",o.type=e?e.startsWith("?")?3:e.startsWith("#")?2:4:1,o}function h(e){if(e.endsWith("/.."))return e;var t=e.lastIndexOf("/");return e.slice(0,t+1)}function d(e,t){f(t,t.type),"/"===e.path?e.path=t.path:e.path=h(t.path)+e.path}function f(e,t){for(var r=t<=4,i=e.path.split("/"),n=1,a=0,s=!1,o=1;o<i.length;o++){var l=i[o];l?(s=!1,"."!==l&&(".."!==l?(i[n++]=l,a++):a?(s=!0,a--,n--):r&&(i[n++]=l))):s=!0}for(var p="",c=1;c<n;c++)p+="/"+i[c];(!p||s&&!p.endsWith("/.."))&&(p+="/"),e.path=p}function m(e,t){if(!e&&!t)return"";var r=u(e),i=r.type;if(t&&7!==i){var n=u(t),a=n.type;switch(i){case 1:r.hash=n.hash;case 2:r.query=n.query;case 3:case 4:d(r,n);case 5:r.user=n.user,r.host=n.host,r.port=n.port;case 6:r.scheme=n.scheme}a>i&&(i=a)}f(r,i);var s=r.query+r.hash;switch(i){case 2:case 3:return s;case 4:var l=r.path.slice(1);return l?o(t||e)&&!o(l)?"./"+l+s:l+s:s||".";case 5:return r.path+s;default:return r.scheme+"//"+r.user+r.host+r.port+r.path+s}}return m}()),xn.exports),Pn=f(bn);function En(e,t){for(var r=t;r<e.length;r++)if(!An(e[r]))return r;return e.length}function An(e){for(var t=1;t<e.length;t++)if(e[t][0]<e[t-1][0])return!1;return!0}function Cn(e,t){return t||(e=e.slice()),e.sort(wn)}function wn(e,t){return e[0]-t[0]}var In=!1;function Nn(e,t,r){for(var i=r+1;i<e.length&&e[i][0]===t;r=i++);return r}function kn(e,t,r){for(var i=r-1;i>=0&&e[i][0]===t;r=i--);return r}function On(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function Dn(e,t,r,i){var{lastKey:n,lastNeedle:a,lastIndex:s}=r,o=0,l=e.length-1;if(i===n){if(t===a)return In=-1!==s&&e[s][0]===t,s;t>=a?o=-1===s?0:s:l=s}return r.lastKey=i,r.lastNeedle=t,r.lastIndex=function(e,t,r,i){for(;r<=i;){var n=r+(i-r>>1),a=e[n][0]-t;if(0===a)return In=!0,n;a<0?r=n+1:i=n-1}return In=!1,r-1}(e,t,o,l)}function _n(e){return"string"==typeof e?JSON.parse(e):e}var Ln=function(e,t){var r=_n(e);if(!("sections"in r))return new Kn(r,t);var i=[],n=[],a=[],s=[],o=[];return Mn(r,t,i,n,a,s,o,0,0,1/0,1/0),Yn({version:3,file:r.file,names:s,sources:n,sourcesContent:a,mappings:i,ignoreList:o})};function Mn(e,t,r,i,n,a,s,o,l,p,c){for(var{sections:u}=e,h=0;h<u.length;h++){var{map:d,offset:f}=u[h],m=p,y=c;if(h+1<u.length){var v=u[h+1].offset;(m=Math.min(p,o+v.line))===p?y=Math.min(c,l+v.column):m<p&&(y=l+v.column)}Fn(d,t,r,i,n,a,s,o+f.line,l+f.column,m,y)}}function Fn(e,t,r,i,n,a,s,o,l,p,c){var u=_n(e);if("sections"in u)return Mn(...arguments);var h=new Kn(u,t),d=i.length,f=a.length,m=qn(h),{resolvedSources:y,sourcesContent:v,ignoreList:T}=h;if(Bn(i,y),Bn(a,h.names),v)Bn(n,v);else for(var g=0;g<y.length;g++)n.push(null);if(T)for(var S=0;S<T.length;S++)s.push(T[S]+d);for(var x=0;x<m.length;x++){var b=o+x;if(b>p)return;for(var P=jn(r,b),E=0===x?l:0,A=m[x],C=0;C<A.length;C++){var w=A[C],I=E+w[0];if(b===p&&I>=c)return;if(1!==w.length){var N=d+w[1],k=w[2],O=w[3];P.push(4===w.length?[I,N,k,O]:[I,N,k,O,f+w[4]])}else P.push([I])}}}function Bn(e,t){for(var r=0;r<t.length;r++)e.push(t[r])}function jn(e,t){for(var r=e.length;r<=t;r++)e[r]=[];return e[t]}var Rn="`line` must be greater than 0 (lines start at line 1)",Un="`column` must be greater than or equal to 0 (columns start at column 0)",Kn=class{constructor(e,t){var r="string"==typeof e;if(!r&&e._decodedMemo)return e;var i=_n(e),{version:n,file:a,names:s,sourceRoot:o,sources:l,sourcesContent:p}=i;this.version=n,this.file=a,this.names=s||[],this.sourceRoot=o,this.sources=l,this.sourcesContent=p,this.ignoreList=i.ignoreList||i.x_google_ignoreList||void 0;var c=function(e,t){var r=function(e){if(!e)return"";var t=e.lastIndexOf("/");return e.slice(0,t+1)}(e),i=t?t+"/":"";return e=>Pn(i+(e||""),r)}(t,o);this.resolvedSources=l.map(c);var{mappings:u}=i;if("string"==typeof u)this._encoded=u,this._decoded=void 0;else{if(!Array.isArray(u))throw i.sections?new Error("TraceMap passed sectioned source map, please use FlattenMap export instead"):new Error("invalid source map: ".concat(JSON.stringify(i)));this._encoded=void 0,this._decoded=function(e,t){var r=En(e,0);if(r===e.length)return e;t||(e=e.slice());for(var i=r;i<e.length;i=En(e,i+1))e[i]=Cn(e[i],t);return e}(u,r)}this._decodedMemo={lastKey:-1,lastNeedle:-1,lastIndex:-1},this._bySources=void 0,this._bySourceMemos=void 0}};function Vn(e){var t,r;return null!=(r=(t=e)._encoded)?r:t._encoded=Sn.encode(e._decoded)}function qn(e){var t;return(t=e)._decoded||(t._decoded=Sn.decode(e._encoded))}function Wn(e,t){var{sources:r,resolvedSources:i}=e,n=r.indexOf(t);return-1===n&&(n=i.indexOf(t)),n}function Yn(e,t){var r=new Kn(Jn(e,[]),t);return r._decoded=e.mappings,r}function Jn(e,t){return{version:e.version,file:e.file,names:e.names,sourceRoot:e.sourceRoot,sources:e.sources,sourcesContent:e.sourcesContent,mappings:t,ignoreList:e.ignoreList||e.x_google_ignoreList}}function Xn(e,t,r,i){return{source:e,line:t,column:r,name:i}}function Hn(e,t){return{line:e,column:t}}function zn(e,t,r,i,n){var a=Dn(e,i,t,r);return In?a=(-1===n?Nn:kn)(e,i,a):-1===n&&a++,-1===a||a===e.length?-1:a}function Gn(e,t,r,i,n,a){var s,o;if(--r<0)throw new Error(Rn);if(i<0)throw new Error(Un);var{sources:l,resolvedSources:p}=e,c=l.indexOf(t);if(-1===c&&(c=p.indexOf(t)),-1===c)return a?[]:Hn(null,null);var u=(s=e)._bySourceMemos||(s._bySourceMemos=l.map(On)),h=(o=e)._bySources||(o._bySources=function(e,t){for(var r=t.map((()=>[])),i=0;i<e.length;i++)for(var n=e[i],a=0;a<n.length;a++){var s=n[a];if(1!==s.length){var o=s[1],l=s[2],p=s[3],c=r[o];(c[l]||(c[l]=[])).push([p,i,s[0]])}}for(var u=0;u<r.length;u++)for(var h=r[u],d=0;d<h.length;d++){var f=h[d];f&&f.sort(wn)}return r}(qn(e),u)),d=h[c][r];if(null==d)return a?[]:Hn(null,null);var f=u[c];if(a)return function(e,t,r,i,n){var a=zn(e,t,r,i,1);if(In||-1!==n||a++,-1===a||a===e.length)return[];var s=In?i:e[a][0];In||(a=kn(e,s,a));for(var o=Nn(e,s,a),l=[];a<=o;a++){var p=e[a];l.push(Hn(p[1]+1,p[2]))}return l}(d,f,r,i,n);var m=zn(d,f,r,i,n);if(-1===m)return Hn(null,null);var y=d[m];return Hn(y[1]+1,y[2])}var Qn=Object.freeze({__proto__:null,AnyMap:Ln,FlattenMap:Ln,GREATEST_LOWER_BOUND:1,LEAST_UPPER_BOUND:-1,TraceMap:Kn,allGeneratedPositionsFor:function(e,t){var{source:r,line:i,column:n,bias:a}=t;return Gn(e,r,i,n,a||-1,!0)},decodedMap:function(e){return Jn(e,qn(e))},decodedMappings:qn,eachMapping:function(e,t){for(var r=qn(e),{names:i,resolvedSources:n}=e,a=0;a<r.length;a++)for(var s=r[a],o=0;o<s.length;o++){var l=s[o],p=a+1,c=l[0],u=null,h=null,d=null,f=null;1!==l.length&&(u=n[l[1]],h=l[2]+1,d=l[3]),5===l.length&&(f=i[l[4]]),t({generatedLine:p,generatedColumn:c,source:u,originalLine:h,originalColumn:d,name:f})}},encodedMap:function(e){return Jn(e,Vn(e))},encodedMappings:Vn,generatedPositionFor:function(e,t){var{source:r,line:i,column:n,bias:a}=t;return Gn(e,r,i,n,a||1,!1)},isIgnored:function(e,t){var{ignoreList:r}=e;if(null==r)return!1;var i=Wn(e,t);return-1!==i&&r.includes(i)},originalPositionFor:function(e,t){var{line:r,column:i,bias:n}=t;if(--r<0)throw new Error(Rn);if(i<0)throw new Error(Un);var a=qn(e);if(r>=a.length)return Xn(null,null,null,null);var s=a[r],o=zn(s,e._decodedMemo,r,i,n||1);if(-1===o)return Xn(null,null,null,null);var l=s[o];if(1===l.length)return Xn(null,null,null,null);var{names:p,resolvedSources:c}=e;return Xn(c[l[1]],l[2]+1,l[3],5===l.length?p[l[4]]:null)},presortedDecodedMap:Yn,sourceContentFor:function(e,t){var{sourcesContent:r}=e;if(null==r)return null;var i=Wn(e,t);return-1===i?null:r[i]},traceSegment:function(e,t,r){var i=qn(e);if(t>=i.length)return null;var n=i[t],a=zn(n,e._decodedMemo,t,r,1);return-1===a?null:n[a]}}),$n=class{constructor(){this._indexes={__proto__:null},this.array=[]}};function Zn(e,t){return e._indexes[t]}function ea(e,t){var r=Zn(e,t);if(void 0!==r)return r;var{array:i,_indexes:n}=e,a=i.push(t);return n[t]=a-1}var ta=class{constructor(){var{file:e,sourceRoot:t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._names=new $n,this._sources=new $n,this._sourcesContent=[],this._mappings=[],this.file=e,this.sourceRoot=t,this._ignoreList=new $n}};function ra(e){var{_mappings:t,_sources:r,_sourcesContent:i,_names:n,_ignoreList:a}=e;return function(e){for(var{length:t}=e,r=t,i=r-1;i>=0&&!(e[i].length>0);r=i,i--);r<t&&(e.length=r)}(t),{version:3,file:e.file||void 0,names:n.array,sourceRoot:e.sourceRoot||void 0,sources:r.array,sourcesContent:i,mappings:t,ignoreList:a.array}}function ia(e,t,r,i,n,a,s,o,l){var{_mappings:p,_sources:c,_sourcesContent:u,_names:h}=t,d=function(e,t){for(var r=e.length;r<=t;r++)e[r]=[];return e[t]}(p,r),f=function(e,t){for(var r=e.length,i=r-1;i>=0;r=i--){if(t>=e[i][0])break}return r}(d,i);if(!n){if(e&&function(e,t){if(0===t)return!0;var r=e[t-1];return 1===r.length}(d,f))return;return na(d,f,[i])}var m=ea(c,n),y=o?ea(h,o):-1;if(m===u.length&&(u[m]=null!=l?l:null),!e||!function(e,t,r,i,n,a){if(0===t)return!1;var s=e[t-1];return 1!==s.length&&(r===s[1]&&i===s[2]&&n===s[3]&&a===(5===s.length?s[4]:-1))}(d,f,m,a,s,y))return na(d,f,o?[i,m,a,s,y]:[i,m,a,s])}function na(e,t,r){for(var i=e.length;i>t;i--)e[i]=e[i-1];e[t]=r}function aa(e,t){for(var r=0;r<t.length;r++)ea(e,t[r])}function sa(e,t,r){var{generated:i,source:n,original:a,name:s,content:o}=r;return n?ia(e,t,i.line-1,i.column,n,a.line-1,a.column,s,o):ia(e,t,i.line-1,i.column,null,null,null,null,null)}var oa,la=Object.freeze({__proto__:null,GenMapping:ta,addMapping:function(e,t){return sa(!1,e,t)},addSegment:function(e,t,r,i,n,a,s,o){return ia(!1,e,t,r,i,n,a,s,o)},allMappings:function(e){for(var t=[],{_mappings:r,_sources:i,_names:n}=e,a=0;a<r.length;a++)for(var s=r[a],o=0;o<s.length;o++){var l=s[o],p={line:a+1,column:l[0]},c=void 0,u=void 0,h=void 0;1!==l.length&&(c=i.array[l[1]],u={line:l[2]+1,column:l[3]},5===l.length&&(h=n.array[l[4]])),t.push({generated:p,source:c,original:u,name:h})}return t},fromMap:function(e){var t=new Kn(e),r=new ta({file:t.file,sourceRoot:t.sourceRoot});return aa(r._names,t.names),aa(r._sources,t.sources),r._sourcesContent=t.sourcesContent||t.sources.map((()=>null)),r._mappings=qn(t),t.ignoreList&&aa(r._ignoreList,t.ignoreList),r},maybeAddMapping:(e,t)=>sa(!0,e,t),maybeAddSegment:(e,t,r,i,n,a,s,o)=>ia(!0,e,t,r,i,n,a,s,o),setIgnore:function(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],{_sources:i,_sourcesContent:n,_ignoreList:a}=e,s=ea(i,t);s===n.length&&(n[s]=null),r?ea(a,s):function(e,t){var r=Zn(e,t);if(void 0!==r){for(var{array:i,_indexes:n}=e,a=r+1;a<i.length;a++){var s=i[a];i[a-1]=s,n[s]--}n[t]=void 0,i.pop()}}(a,s)},setSourceContent:function(e,t,r){var{_sources:i,_sourcesContent:n}=e;n[ea(i,t)]=r},toDecodedMap:ra,toEncodedMap:function(e){var t=ra(e);return Object.assign({},t,{mappings:Sn.encode(t.mappings)})}}),pa=m(la),ca=m(Qn);var ua,ha={},da={};var fa,ma={},ya={};function va(){if(fa)return ya;fa=1,Object.defineProperty(ya,"__esModule",{value:!0}),ya.nodes=void 0;var e=Oi(),{FLIPPED_ALIAS_KEYS:t,isArrayExpression:r,isAssignmentExpression:i,isBinary:n,isBlockStatement:a,isCallExpression:s,isFunction:o,isIdentifier:l,isLiteral:p,isMemberExpression:c,isObjectExpression:u,isOptionalCallExpression:h,isOptionalMemberExpression:d,isStringLiteral:f}=e;function m(e,t){return e?(c(e)||d(e)?(m(e.object,t),e.computed&&m(e.property,t)):n(e)||i(e)?(m(e.left,t),m(e.right,t)):s(e)||h(e)?(t.hasCall=!0,m(e.callee,t)):o(e)?t.hasFunction=!0:l(e)&&(t.hasHelper=t.hasHelper||e.callee&&v(e.callee)),t):t}function y(e){return m(e,{hasCall:!1,hasFunction:!1,hasHelper:!1})}function v(e){return!!e&&(c(e)?v(e.object)||v(e.property):l(e)?"require"===e.name||95===e.name.charCodeAt(0):s(e)?v(e.callee):!(!n(e)&&!i(e))&&(l(e.left)&&v(e.left)||v(e.right)))}function T(e){return p(e)||u(e)||r(e)||l(e)||c(e)}var g=ya.nodes={AssignmentExpression(e){var t=y(e.right);return t.hasCall&&t.hasHelper||t.hasFunction?t.hasFunction?3:2:0},SwitchCase:(e,t)=>(e.consequent.length||t.cases[0]===e?1:0)|(e.consequent.length||t.cases[t.cases.length-1]!==e?0:2),LogicalExpression:e=>o(e.left)||o(e.right)?2:0,Literal:e=>f(e)&&"use strict"===e.value?2:0,CallExpression:e=>o(e.callee)||v(e)?3:0,OptionalCallExpression:e=>o(e.callee)?3:0,VariableDeclaration(e){for(var t=0;t<e.declarations.length;t++){var r=e.declarations[t],i=v(r.id)&&!T(r.init);if(!i&&r.init){var n=y(r.init);i=v(r.init)&&n.hasCall||n.hasFunction}if(i)return 3}return 0},IfStatement:e=>a(e.consequent)?3:0};return g.ObjectProperty=g.ObjectTypeProperty=g.ObjectMethod=function(e,t){return t.properties[0]===e?1:0},g.ObjectTypeCallProperty=function(e,t){var r;return t.callProperties[0]!==e||null!=(r=t.properties)&&r.length?0:1},g.ObjectTypeIndexer=function(e,t){var r,i;return t.indexers[0]!==e||null!=(r=t.properties)&&r.length||null!=(i=t.callProperties)&&i.length?0:1},g.ObjectTypeInternalSlot=function(e,t){var r,i,n;return t.internalSlots[0]!==e||null!=(r=t.properties)&&r.length||null!=(i=t.callProperties)&&i.length||null!=(n=t.indexers)&&n.length?0:1},[["Function",!0],["Class",!0],["Loop",!0],["LabeledStatement",!0],["SwitchStatement",!0],["TryStatement",!0]].forEach((function(e){var[r,i]=e;[r].concat(t[r]||[]).forEach((function(e){var t=i?3:0;g[e]=()=>t}))})),ya}var Ta,ga,Sa={};function xa(){if(ga)return ma;ga=1,Object.defineProperty(ma,"__esModule",{value:!0}),ma.TokenContext=void 0,ma.isLastChild=function(e,t){for(var r=n[e.type],i=r.length-1;i>=0;i--){var a=e[r[i]];if(a===t)return!0;if(Array.isArray(a)){for(var s=a.length-1;s>=0&&null===a[s];)s--;return s>=0&&a[s]===t}if(a)return!1}return!1},ma.needsParens=function(e,t,r,i){var n;if(!t)return!1;if(p(t)&&t.callee===e&&f(e))return!0;if(s(t))return!(y(e)||a(e)&&y(e.callee)||c(e));return(null==(n=h.get(e.type))?void 0:n(e,t,r,i))||!1},ma.needsWhitespace=m,ma.needsWhitespaceAfter=function(e,t){return m(e,t,2)},ma.needsWhitespaceBefore=function(e,t){return m(e,t,1)};var e=va(),t=function(){if(Ta)return Sa;Ta=1,Object.defineProperty(Sa,"__esModule",{value:!0}),Sa.AssignmentExpression=function(e,t,r){return!(!v(r)||!l(e.left))||S(e,t)},Sa.Binary=T,Sa.BinaryExpression=function(e,r,i){return"in"===e.operator&&Boolean(i&t.TokenContext.forInOrInitHeadAccumulate)},Sa.ClassExpression=function(e,r,i){return Boolean(i&(t.TokenContext.expressionStatement|t.TokenContext.exportDefault))},Sa.ArrowFunctionExpression=Sa.ConditionalExpression=S,Sa.DoExpression=function(e,r,i){return!e.async&&Boolean(i&t.TokenContext.expressionStatement)},Sa.FunctionExpression=function(e,r,i){return Boolean(i&(t.TokenContext.expressionStatement|t.TokenContext.exportDefault))},Sa.FunctionTypeAnnotation=function(e,r,i){var n=r.type;return"UnionTypeAnnotation"===n||"IntersectionTypeAnnotation"===n||"ArrayTypeAnnotation"===n||Boolean(i&t.TokenContext.arrowFlowReturnType)},Sa.Identifier=function(e,r,i,n){var s,l=r.type;if(null!=(s=e.extra)&&s.parenthesized&&"AssignmentExpression"===l&&r.left===e){var c=r.right.type;if(("FunctionExpression"===c||"ClassExpression"===c)&&null==r.right.id)return!0}return(!n||n(e)===e.name)&&("let"===e.name?!!((o(r,{object:e,computed:!0})||p(r,{object:e,computed:!0,optional:!1}))&&i&(t.TokenContext.expressionStatement|t.TokenContext.forInitHead|t.TokenContext.forInHead))||Boolean(i&t.TokenContext.forOfHead):"async"===e.name&&a(r,{left:e,await:!1}))},Sa.LogicalExpression=function(e,t){var r=t.type;if(f(r))return!0;if("LogicalExpression"!==r)return!1;switch(e.operator){case"||":return"??"===t.operator||"&&"===t.operator;case"&&":return"??"===t.operator;case"??":return"??"!==t.operator}},Sa.NullableTypeAnnotation=function(e,t){return r(t)},Sa.ObjectExpression=function(e,t,r){return v(r)},Sa.OptionalIndexedAccessType=function(e,t){return s(t)&&t.objectType===e},Sa.OptionalCallExpression=Sa.OptionalMemberExpression=function(e,t){return n(t)&&t.callee===e||o(t)&&t.object===e},Sa.SequenceExpression=function(e,t){var r=t.type;return!("SequenceExpression"===r||"ParenthesizedExpression"===r||"MemberExpression"===r&&t.property===e||"OptionalMemberExpression"===r&&t.property===e||"TemplateLiteral"===r)&&("ClassDeclaration"===r||("ForOfStatement"===r?t.right===e:"ExportDefaultDeclaration"===r||!u(t)))},Sa.TSSatisfiesExpression=Sa.TSAsExpression=function(e,t){return("AssignmentExpression"===t.type||"AssignmentPattern"===t.type)&&t.left===e||("BinaryExpression"===t.type&&("|"===t.operator||"&"===t.operator)&&e===t.left||T(e,t))},Sa.TSConditionalType=function(e,t){var r=t.type;return"TSArrayType"===r||"TSIndexedAccessType"===r&&t.objectType===e||"TSOptionalType"===r||"TSTypeOperator"===r||"TSTypeParameter"===r||(("TSIntersectionType"===r||"TSUnionType"===r)&&t.types[0]===e||"TSConditionalType"===r&&(t.checkType===e||t.extendsType===e))},Sa.TSConstructorType=Sa.TSFunctionType=function(e,t){var r=t.type;return"TSIntersectionType"===r||"TSUnionType"===r||"TSTypeOperator"===r||"TSOptionalType"===r||"TSArrayType"===r||"TSIndexedAccessType"===r&&t.objectType===e||"TSConditionalType"===r&&(t.checkType===e||t.extendsType===e)},Sa.TSInferType=function(e,t){var r=t.type;return"TSArrayType"===r||"TSIndexedAccessType"===r&&t.objectType===e||"TSOptionalType"===r||!(!e.typeParameter.constraint||"TSIntersectionType"!==r&&"TSUnionType"!==r||t.types[0]!==e)},Sa.TSInstantiationExpression=function(e,t){var r=t.type;return("CallExpression"===r||"OptionalCallExpression"===r||"NewExpression"===r||"TSInstantiationExpression"===r)&&!!t.typeParameters},Sa.TSIntersectionType=function(e,t){var r=t.type;return"TSTypeOperator"===r||"TSArrayType"===r||"TSIndexedAccessType"===r&&t.objectType===e||"TSOptionalType"===r},Sa.UnaryLike=Sa.TSTypeAssertion=g,Sa.TSTypeOperator=function(e,t){var r=t.type;return"TSArrayType"===r||"TSIndexedAccessType"===r&&t.objectType===e||"TSOptionalType"===r},Sa.TSUnionType=function(e,t){var r=t.type;return"TSIntersectionType"===r||"TSTypeOperator"===r||"TSArrayType"===r||"TSIndexedAccessType"===r&&t.objectType===e||"TSOptionalType"===r},Sa.IntersectionTypeAnnotation=Sa.UnionTypeAnnotation=function(e,t){var r=t.type;return"ArrayTypeAnnotation"===r||"NullableTypeAnnotation"===r||"IntersectionTypeAnnotation"===r||"UnionTypeAnnotation"===r},Sa.UpdateExpression=function(e,t){return y(e,t)||m(e,t)},Sa.AwaitExpression=Sa.YieldExpression=function(e,t){var r=t.type;return"BinaryExpression"===r||"LogicalExpression"===r||"UnaryExpression"===r||"SpreadElement"===r||y(e,t)||"AwaitExpression"===r&&c(e)||"ConditionalExpression"===r&&e===t.test||m(e,t)||f(r)};var e=Oi(),t=xa(),{isArrayTypeAnnotation:r,isBinaryExpression:i,isCallExpression:n,isForOfStatement:a,isIndexedAccessType:s,isMemberExpression:o,isObjectPattern:l,isOptionalMemberExpression:p,isYieldExpression:c,isStatement:u}=e,h=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 d(e,t){return"BinaryExpression"===t||"LogicalExpression"===t?h.get(e.operator):"TSAsExpression"===t||"TSSatisfiesExpression"===t?h.get("in"):void 0}function f(e){return"TSAsExpression"===e||"TSSatisfiesExpression"===e||"TSTypeAssertion"===e}var m=(e,t)=>{var r=t.type;return("ClassDeclaration"===r||"ClassExpression"===r)&&t.superClass===e},y=(e,t)=>{var r=t.type;return("MemberExpression"===r||"OptionalMemberExpression"===r)&&t.object===e||("CallExpression"===r||"OptionalCallExpression"===r||"NewExpression"===r)&&t.callee===e||"TaggedTemplateExpression"===r&&t.tag===e||"TSNonNullExpression"===r};function v(e){return Boolean(e&(t.TokenContext.expressionStatement|t.TokenContext.arrowBody))}function T(e,t){var r=t.type;if("BinaryExpression"===e.type&&"**"===e.operator&&"BinaryExpression"===r&&"**"===t.operator)return t.left===e;if(m(e,t))return!0;if(y(e,t)||"UnaryExpression"===r||"SpreadElement"===r||"AwaitExpression"===r)return!0;var i=d(t,r);if(null!=i){var n=d(e,e.type);if(i===n&&"BinaryExpression"===r&&t.right===e||i>n)return!0}}function g(e,t){return y(e,t)||i(t)&&"**"===t.operator&&t.left===e||m(e,t)}function S(e,t){var r=t.type;return!!("UnaryExpression"===r||"SpreadElement"===r||"BinaryExpression"===r||"LogicalExpression"===r||"ConditionalExpression"===r&&t.test===e||"AwaitExpression"===r||f(r))||g(e,t)}return Sa}(),r=Oi(),{FLIPPED_ALIAS_KEYS:i,VISITOR_KEYS:n,isCallExpression:a,isDecorator:s,isExpressionStatement:o,isMemberExpression:l,isNewExpression:p,isParenthesizedExpression:c}=r;function u(e){var t=new Map;function r(e,r){var i=t.get(e);t.set(e,i?function(e,t,n,a){var s;return null!=(s=i(e,t,n,a))?s:r(e,t,n,a)}:r)}for(var n of Object.keys(e)){var a=i[n];if(a)for(var s of a)r(s,e[n]);else r(n,e[n])}return t}ma.TokenContext={normal:0,expressionStatement:1,arrowBody:2,exportDefault:4,arrowFlowReturnType:8,forInitHead:16,forInHead:32,forOfHead:64,forInOrInitHeadAccumulate:128,forInOrInitHeadAccumulatePassThroughMask:128};var h=u(t),d=u(e.nodes);function f(e){return!!a(e)||l(e)&&f(e.object)}function m(e,t,r){var i;if(!e)return!1;o(e)&&(e=e.expression);var n=null==(i=d.get(e.type))?void 0:i(e,t);return"number"==typeof n&&0!==(n&r)}function y(e){switch(e.type){case"Identifier":return!0;case"MemberExpression":return!e.computed&&"Identifier"===e.property.type&&y(e.object);default:return!1}}return ma}var ba,Pa={};function Ea(){if(ba)return Pa;ba=1,Object.defineProperty(Pa,"__esModule",{value:!0}),Pa.TokenMap=void 0;var e=Oi(),{traverseFast:t,VISITOR_KEYS:r}=e;return Pa.TokenMap=class{constructor(e,r,i){this._tokens=void 0,this._source=void 0,this._nodesToTokenIndexes=new Map,this._nodesOccurrencesCountCache=new Map,this._tokensCache=new Map,this._tokens=r,this._source=i,t(e,(e=>{var t=this._getTokensIndexesOfNode(e);t.length>0&&this._nodesToTokenIndexes.set(e,t)})),this._tokensCache.clear()}has(e){return this._nodesToTokenIndexes.has(e)}getIndexes(e){return this._nodesToTokenIndexes.get(e)}find(e,t){var r=this._nodesToTokenIndexes.get(e);if(r)for(var i=0;i<r.length;i++){var n=r[i],a=this._tokens[n];if(t(a,n))return a}return null}findLastIndex(e,t){var r=this._nodesToTokenIndexes.get(e);if(r)for(var i=r.length-1;i>=0;i--){var n=r[i];if(t(this._tokens[n],n))return n}return-1}findMatching(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=this._nodesToTokenIndexes.get(e);if(i){var n=0,a=r;if(a>1){var s=this._nodesOccurrencesCountCache.get(e);s&&s.test===t&&s.count<a&&(n=s.i+1,r-=s.count+1)}for(;n<i.length;n++){var o=this._tokens[i[n]];if(this.matchesOriginal(o,t)){if(0===r)return a>0&&this._nodesOccurrencesCountCache.set(e,{test:t,count:a,i:n}),o;r--}}}return null}matchesOriginal(e,t){return e.end-e.start===t.length&&(null!=e.value?e.value===t:this._source.startsWith(t,e.start))}startMatches(e,t){var r=this._nodesToTokenIndexes.get(e);if(!r)return!1;var i=this._tokens[r[0]];return i.start===e.start&&this.matchesOriginal(i,t)}endMatches(e,t){var r=this._nodesToTokenIndexes.get(e);if(!r)return!1;var i=this._tokens[r[r.length-1]];return i.end===e.end&&this.matchesOriginal(i,t)}_getTokensIndexesOfNode(e){if(null==e.start||null==e.end)return[];var{first:t,last:i}=this._findTokensOfNode(e,0,this._tokens.length-1),n=t,a=function*(e){if("TemplateLiteral"===e.type){yield e.quasis[0];for(var t=1;t<e.quasis.length;t++)yield e.expressions[t-1],yield e.quasis[t];return}var i=r[e.type];for(var n of i){var a=e[n];a&&(Array.isArray(a)?yield*a:yield a)}}(e);"ExportNamedDeclaration"!==e.type&&"ExportDefaultDeclaration"!==e.type||!e.declaration||"ClassDeclaration"!==e.declaration.type||a.next();var s=[];for(var o of a)if(null!=o&&null!=o.start&&null!=o.end){for(var l=this._findTokensOfNode(o,n,i),p=l.first,c=n;c<p;c++)s.push(c);n=l.last+1}for(var u=n;u<=i;u++)s.push(u);return s}_findTokensOfNode(e,t,r){var i=this._tokensCache.get(e);if(i)return i;var n=this._findFirstTokenOfNode(e.start,t,r),a=this._findLastTokenOfNode(e.end,n,r);return this._tokensCache.set(e,{first:n,last:a}),{first:n,last:a}}_findFirstTokenOfNode(e,t,r){for(;t<=r;){var i=r+t>>1;if(e<this._tokens[i].start)r=i-1;else{if(!(e>this._tokens[i].start))return i;t=i+1}}return t}_findLastTokenOfNode(e,t,r){for(;t<=r;){var i=r+t>>1;if(e<this._tokens[i].end)r=i-1;else{if(!(e>this._tokens[i].end))return i;t=i+1}}return r}},Pa}var Aa,Ca={},wa={};var Ia,Na={};var ka,Oa={};function Da(){if(ka)return Oa;ka=1,Object.defineProperty(Oa,"__esModule",{value:!0}),Oa.BreakStatement=function(e){this.word("break"),o(this,e.label)},Oa.CatchClause=function(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)},Oa.ContinueStatement=function(e){this.word("continue"),o(this,e.label)},Oa.DebuggerStatement=function(){this.word("debugger"),this.semicolon()},Oa.DoWhileStatement=function(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()},Oa.ForOfStatement=Oa.ForInStatement=void 0,Oa.ForStatement=function(e){this.word("for"),this.space(),this.tokenChar(40);var t=this.enterForStatementInit();this.print(e.init),t(),this.tokenChar(59),e.test&&(this.space(),this.print(e.test));this.token(";",!1,1),e.update&&(this.space(),this.print(e.update));this.tokenChar(41),this.printBlock(e)},Oa.IfStatement=function(e){this.word("if"),this.space(),this.tokenChar(40),this.print(e.test),this.tokenChar(41),this.space();var t=e.alternate&&i(a(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))},Oa.LabeledStatement=function(e){this.print(e.label),this.tokenChar(58),this.space(),this.print(e.body)},Oa.ReturnStatement=function(e){this.word("return"),o(this,e.argument)},Oa.SwitchCase=function(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,!0))},Oa.SwitchStatement=function(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,!0),this.rightBrace(e)},Oa.ThrowStatement=function(e){this.word("throw"),o(this,e.argument)},Oa.TryStatement=function(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))},Oa.VariableDeclaration=function(e,i){e.declare&&(this.word("declare"),this.space());var{kind:n}=e;"await using"===n?(this.word("await"),this.space(),this.word("using",!0)):this.word(n,"using"===n);this.space();var a=!1;if(!t(i))for(var s of e.declarations)s.init&&(a=!0);if(this.printList(e.declarations,void 0,void 0,e.declarations.length>1,a?function(e){this.token(",",!1,e),this.newline()}:void 0),t(i))if(r(i)){if(i.init===e)return}else if(i.left===e)return;this.semicolon()},Oa.VariableDeclarator=function(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))},Oa.WhileStatement=function(e){this.word("while"),this.space(),this.tokenChar(40),this.print(e.test),this.tokenChar(41),this.printBlock(e)},Oa.WithStatement=function(e){this.word("with"),this.space(),this.tokenChar(40),this.print(e.object),this.tokenChar(41),this.printBlock(e)};var e=Oi(),{isFor:t,isForStatement:r,isIfStatement:i,isStatement:n}=e;function a(e){var{body:t}=e;return!1===n(t)?e:a(t)}function s(e){this.word("for"),this.space();var t="ForOfStatement"===e.type;t&&e.await&&(this.word("await"),this.space()),this.noIndentInnerCommentsHere(),this.tokenChar(40);var r=this.enterForXStatementInit(t);this.print(e.left),null==r||r(),this.space(),this.word(t?"of":"in"),this.space(),this.print(e.right),this.tokenChar(41),this.printBlock(e)}function o(e,t){t&&(e.space(),e.printTerminatorless(t)),e.semicolon()}return Oa.ForInStatement=s,Oa.ForOfStatement=s,Oa}var _a,La={};function Ma(){if(_a)return La;_a=1,Object.defineProperty(La,"__esModule",{value:!0}),La.ClassAccessorProperty=function(e){var t;this.printJoin(e.decorators);var r=null==(t=e.key.loc)||null==(t=t.end)?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()},La.ClassBody=function(e){if(this.tokenChar(123),0===e.body.length)this.tokenChar(125);else{this.newline();var t=function(e,t){if(!e.tokenMap||null==t.start||null==t.end)return null;var r=e.tokenMap.getIndexes(t);if(!r)return null;var i=1,n=0,a=0,s=()=>{for(;a<t.body.length&&null==t.body[a].start;)a++};return s(),o=>{a<=o&&(a=o+1,s());for(var l,p=a===t.body.length?t.end:t.body[a].start;i<r.length&&e.tokenMap.matchesOriginal(l=e._tokens[r[i]],";")&&l.start<p;)e.token(";",void 0,n++),i++}}(this,e);null==t||t(-1);var r=this.enterDelimited();this.printJoin(e.body,!0,!0,t,!0),r(),this.endsWith(10)||this.newline(),this.rightBrace(e)}},La.ClassExpression=La.ClassDeclaration=function(e,i){(t(i)||r(i))&&this._shouldPrintDecoratorsBeforeExport(i)||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)},La.ClassMethod=function(e){this._classMethodHead(e),this.space(),this.print(e.body)},La.ClassPrivateMethod=function(e){this._classMethodHead(e),this.space(),this.print(e.body)},La.ClassPrivateProperty=function(e){this.printJoin(e.decorators),this.tsPrintClassMemberModifiers(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()},La.ClassProperty=function(e){if(this.printJoin(e.decorators),!e.static&&!this.format.preserveFormat){var t,r=null==(t=e.key.loc)||null==(t=t.end)?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()},La.StaticBlock=function(e){this.word("static"),this.space(),this.tokenChar(123),0===e.body.length?this.tokenChar(125):(this.newline(),this.printSequence(e.body,!0),this.rightBrace(e))},La._classMethodHead=function(e){if(this.printJoin(e.decorators),!this.format.preserveFormat){var t,r=null==(t=e.key.loc)||null==(t=t.end)?void 0:t.line;r&&this.catchUp(r)}this.tsPrintClassMemberModifiers(e),this._methodHead(e)};var e=Oi(),{isExportDefaultDeclaration:t,isExportNamedDeclaration:r}=e;return La}var Fa,Ba={};var ja,Ra={};function Ua(){if(ja)return Ra;ja=1,Object.defineProperty(Ra,"__esModule",{value:!0}),Ra.ExportAllDeclaration=function(e){var t,r;this.word("export"),this.space(),"type"===e.exportKind&&(this.word("type"),this.space());this.tokenChar(42),this.space(),this.word("from"),this.space(),null!=(t=e.attributes)&&t.length||null!=(r=e.assertions)&&r.length?(this.print(e.source,!0),this.space(),this._printAttributes(e,!1)):this.print(e.source);this.semicolon()},Ra.ExportDefaultDeclaration=function(e){p(this,e),this.word("export"),this.noIndentInnerCommentsHere(),this.space(),this.word("default"),this.space(),this.tokenContext|=t.TokenContext.exportDefault;var r=e.declaration;this.print(r),o(r)||this.semicolon()},Ra.ExportDefaultSpecifier=function(e){this.print(e.exported)},Ra.ExportNamedDeclaration=function(e){if(p(this,e),this.word("export"),this.space(),e.declaration){var t=e.declaration;this.print(t),o(t)||this.semicolon()}else{"type"===e.exportKind&&(this.word("type"),this.space());for(var r=e.specifiers.slice(0),a=!1;;){var s=r[0];if(!i(s)&&!n(s))break;a=!0,this.print(r.shift()),r.length&&(this.tokenChar(44),this.space())}var l,c,u=!1;if((r.length||!r.length&&!a)&&(u=!0,this.tokenChar(123),r.length&&(this.space(),this.printList(r,this.shouldPrintTrailingComma("}")),this.space()),this.tokenChar(125)),e.source)this.space(),this.word("from"),this.space(),null!=(l=e.attributes)&&l.length||null!=(c=e.assertions)&&c.length?(this.print(e.source,!0),this.space(),this._printAttributes(e,u)):this.print(e.source);this.semicolon()}},Ra.ExportNamespaceSpecifier=function(e){this.tokenChar(42),this.space(),this.word("as"),this.space(),this.print(e.exported)},Ra.ExportSpecifier=function(e){"type"===e.exportKind&&(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))},Ra.ImportAttribute=function(e){this.print(e.key),this.tokenChar(58),this.space(),this.print(e.value)},Ra.ImportDeclaration=function(e){var t,r;this.word("import"),this.space();var i="type"===e.importKind||"typeof"===e.importKind;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());var n=e.specifiers.slice(0),o=!!n.length;for(;o;){var l=n[0];if(!a(l)&&!s(l))break;this.print(n.shift()),n.length&&(this.tokenChar(44),this.space())}var p=!1;n.length?(p=!0,this.tokenChar(123),this.space(),this.printList(n,this.shouldPrintTrailingComma("}")),this.space(),this.tokenChar(125)):i&&!o&&(p=!0,this.tokenChar(123),this.tokenChar(125));(o||i)&&(this.space(),this.word("from"),this.space());null!=(t=e.attributes)&&t.length||null!=(r=e.assertions)&&r.length?(this.print(e.source,!0),this.space(),this._printAttributes(e,p)):this.print(e.source);this.semicolon()},Ra.ImportDefaultSpecifier=function(e){this.print(e.local)},Ra.ImportExpression=function(e){this.word("import"),e.phase&&(this.tokenChar(46),this.word(e.phase));this.tokenChar(40);var t=this.shouldPrintTrailingComma(")");this.print(e.source),null!=e.options&&(this.tokenChar(44),this.space(),this.print(e.options));t&&this.tokenChar(44);this.rightParens(e)},Ra.ImportNamespaceSpecifier=function(e){this.tokenChar(42),this.space(),this.word("as"),this.space(),this.print(e.local)},Ra.ImportSpecifier=function(e){"type"!==e.importKind&&"typeof"!==e.importKind||(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))},Ra._printAttributes=function(e,t){var r,{importAttributesKeyword:i}=this.format,{attributes:n,assertions:a}=e;n&&!i&&e.extra&&(e.extra.deprecatedAssertSyntax||e.extra.deprecatedWithLegacySyntax)&&!l&&(l=!0);var s="assert"===i||!i&&a;if(this.word(s?"assert":"with"),this.space(),!s&&("with-legacy"===i||!i&&null!=(r=e.extra)&&r.deprecatedWithLegacySyntax))return void this.printList(n||a);var o=t?1:0;this.token("{",void 0,o),this.space(),this.printList(n||a,this.shouldPrintTrailingComma("}")),this.space(),this.token("}",void 0,o)};var e=Oi(),t=xa(),{isClassDeclaration:r,isExportDefaultSpecifier:i,isExportNamespaceSpecifier:n,isImportDefaultSpecifier:a,isImportNamespaceSpecifier:s,isStatement:o}=e;var l=!1;function p(e,t){r(t.declaration)&&e._shouldPrintDecoratorsBeforeExport(t)&&e.printJoin(t.declaration.decorators)}return Ra}var Ka,Va,qa,Wa={};function Ya(){if(Va)return Ka;Va=1;var e={},t=e.hasOwnProperty,r=(e,r)=>{for(var i in e)t.call(e,i)&&r(i,e[i])},i=e=>"\\u"+("0000"+e).slice(-4),n=(e,t)=>{var r=e.toString(16);return t?r:r.toUpperCase()},a=e.toString,s=Array.isArray,o=e=>"bigint"==typeof e,l={"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t"},p=/[\\\b\f\n\r\t]/,c=/[0-9]/,u=/[\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,h=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^]/g,d=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^ !#-&\(-\[\]-_a-~]/g,f=(e,t)=>{var m,y,v=()=>{A=E,++t.indentLevel,E=t.indent.repeat(t.indentLevel)},T={escapeEverything:!1,minimal:!1,isScriptContext:!1,quotes:"single",wrap:!1,es6:!1,json:!1,compact:!0,lowercaseHex:!1,numbers:"decimal",indent:"\t",indentLevel:0,__inline1__:!1,__inline2__:!1},g=t&&t.json;g&&(T.quotes="double",T.wrap=!0),m=T,t=(y=t)?(r(y,((e,t)=>{m[e]=t})),m):m,"single"!=t.quotes&&"double"!=t.quotes&&"backtick"!=t.quotes&&(t.quotes="single");var S,x="double"==t.quotes?'"':"backtick"==t.quotes?"`":"'",b=t.compact,P=t.lowercaseHex,E=t.indent.repeat(t.indentLevel),A="",C=t.__inline1__,w=t.__inline2__,I=b?"":"\n",N=!0,k="binary"==t.numbers,O="octal"==t.numbers,D="decimal"==t.numbers,_="hexadecimal"==t.numbers;if(g&&e&&"function"==typeof e.toJSON&&(e=e.toJSON()),!(e=>"string"==typeof e||"[object String]"==a.call(e))(e)){if((e=>"[object Map]"==a.call(e))(e))return 0==e.size?"new Map()":(b||(t.__inline1__=!0,t.__inline2__=!1),"new Map("+f(Array.from(e),t)+")");if((e=>"[object Set]"==a.call(e))(e))return 0==e.size?"new Set()":"new Set("+f(Array.from(e),t)+")";if((e=>"function"==typeof Buffer&&Buffer.isBuffer(e))(e))return 0==e.length?"Buffer.from([])":"Buffer.from("+f(Array.from(e),t)+")";if(s(e))return S=[],t.wrap=!0,C&&(t.__inline1__=!1,t.__inline2__=!0),w||v(),((e,t)=>{for(var r=e.length,i=-1;++i<r;)t(e[i])})(e,(e=>{N=!1,w&&(t.__inline2__=!1),S.push((b||w?"":E)+f(e,t))})),N?"[]":w?"["+S.join(", ")+"]":"["+I+S.join(","+I)+I+(b?"":A)+"]";if((e=>"number"==typeof e||"[object Number]"==a.call(e))(e)||o(e)){if(g)return JSON.stringify(Number(e));var L;if(D)L=String(e);else if(_){var M=e.toString(16);P||(M=M.toUpperCase()),L="0x"+M}else k?L="0b"+e.toString(2):O&&(L="0o"+e.toString(8));return o(e)?L+"n":L}return o(e)?g?JSON.stringify(Number(e)):e+"n":(e=>"[object Object]"==a.call(e))(e)?(S=[],t.wrap=!0,v(),r(e,((e,r)=>{N=!1,S.push((b?"":E)+f(e,t)+":"+(b?"":" ")+f(r,t))})),N?"{}":"{"+I+S.join(","+I)+I+(b?"":A)+"}"):g?JSON.stringify(e)||"null":String(e)}var F=t.escapeEverything?h:d;return S=e.replace(F,((e,r,a,s,o,h)=>{if(r){if(t.minimal)return r;var d=r.charCodeAt(0),f=r.charCodeAt(1);return t.es6?"\\u{"+n(1024*(d-55296)+f-56320+65536,P)+"}":i(n(d,P))+i(n(f,P))}if(a)return i(n(a.charCodeAt(0),P));if("\0"==e&&!g&&!c.test(h.charAt(o+1)))return"\\0";if(s)return s==x||t.escapeEverything?"\\"+s:s;if(p.test(e))return l[e];if(t.minimal&&!u.test(e))return e;var m=n(e.charCodeAt(0),P);return g||m.length>2?i(m):"\\x"+("00"+m).slice(-2)})),"`"==x&&(S=S.replace(/\$\{/g,"\\${")),t.isScriptContext&&(S=S.replace(/<\/(script|style)/gi,"<\\/$1").replace(/<!--/g,g?"\\u003C!--":"\\x3C!--")),t.wrap&&(S=x+S+x),S};return f.version="3.0.2",Ka=f}function Ja(){if(qa)return Wa;qa=1,Object.defineProperty(Wa,"__esModule",{value:!0}),Wa.ArgumentPlaceholder=function(){this.tokenChar(63)},Wa.ArrayPattern=Wa.ArrayExpression=function(e){var t=e.elements,r=t.length;this.tokenChar(91);for(var i=this.enterDelimited(),n=0;n<t.length;n++){var a=t[n];a?(n>0&&this.space(),this.print(a),(n<r-1||this.shouldPrintTrailingComma("]"))&&this.token(",",!1,n)):this.token(",",!1,n)}i(),this.tokenChar(93)},Wa.BigIntLiteral=function(e){var t=this.getPossibleRaw(e);if(!this.format.minified&&void 0!==t)return void this.word(t);this.word(e.value+"n")},Wa.BooleanLiteral=function(e){this.word(e.value?"true":"false")},Wa.Identifier=function(e){var t;this.sourceIdentifierName((null==(t=e.loc)?void 0:t.identifierName)||e.name),this.word(this.tokenMap?this._getRawIdentifier(e):e.name)},Wa.NullLiteral=function(){this.word("null")},Wa.NumericLiteral=function(e){var r=this.getPossibleRaw(e),i=this.format.jsescOption,n=e.value,a=n+"";i.numbers?this.number(t(n,i),n):null==r?this.number(a,n):this.format.minified?this.number(r.length<a.length?r:a,n):this.number(r,n)},Wa.ObjectPattern=Wa.ObjectExpression=function(e){var t=e.properties;if(this.tokenChar(123),t.length){var r=this.enterDelimited();this.space(),this.printList(t,this.shouldPrintTrailingComma("}"),!0,!0),this.space(),r()}this.sourceWithOffset("end",e.loc,-1),this.tokenChar(125)},Wa.ObjectMethod=function(e){this.printJoin(e.decorators),this._methodHead(e),this.space(),this.print(e.body)},Wa.ObjectProperty=function(e){if(this.printJoin(e.decorators),e.computed)this.tokenChar(91),this.print(e.key),this.tokenChar(93);else{if(r(e.value)&&i(e.key)&&e.key.name===e.value.left.name)return void this.print(e.value);if(this.print(e.key),e.shorthand&&i(e.key)&&i(e.value)&&e.key.name===e.value.name)return}this.tokenChar(58),this.space(),this.print(e.value)},Wa.PipelineBareFunction=function(e){this.print(e.callee)},Wa.PipelinePrimaryTopicReference=function(){this.tokenChar(35)},Wa.PipelineTopicExpression=function(e){this.print(e.expression)},Wa.RecordExpression=function(e){var t,r,i=e.properties;if("bar"===this.format.recordAndTupleSyntaxType)t="{|",r="|}";else{if("hash"!==this.format.recordAndTupleSyntaxType&&null!=this.format.recordAndTupleSyntaxType)throw new Error('The "recordAndTupleSyntaxType" generator option must be "bar" or "hash" ('.concat(JSON.stringify(this.format.recordAndTupleSyntaxType)," received)."));t="#{",r="}"}this.token(t),i.length&&(this.space(),this.printList(i,this.shouldPrintTrailingComma(r),!0,!0),this.space());this.token(r)},Wa.RegExpLiteral=function(e){this.word("/".concat(e.pattern,"/").concat(e.flags))},Wa.SpreadElement=Wa.RestElement=function(e){this.token("..."),this.print(e.argument)},Wa.StringLiteral=function(e){var r=this.getPossibleRaw(e);if(!this.format.minified&&void 0!==r)return void this.token(r);var i=t(e.value,this.format.jsescOption);this.token(i)},Wa.TopicReference=function(){var{topicToken:e}=this.format;if(!s.has(e)){var t=JSON.stringify(e),r=Array.from(s,(e=>JSON.stringify(e)));throw new Error('The "topicToken" generator option must be one of '+"".concat(r.join(", ")," (").concat(t," received instead)."))}this.token(e)},Wa.TupleExpression=function(e){var t,r,i=e.elements,n=i.length;if("bar"===this.format.recordAndTupleSyntaxType)t="[|",r="|]";else{if("hash"!==this.format.recordAndTupleSyntaxType)throw new Error("".concat(this.format.recordAndTupleSyntaxType," is not a valid recordAndTuple syntax type"));t="#[",r="]"}this.token(t);for(var a=0;a<i.length;a++){var s=i[a];s&&(a>0&&this.space(),this.print(s),(a<n-1||this.shouldPrintTrailingComma(r))&&this.token(",",!1,a))}this.token(r)},Wa.VoidPattern=function(){this.word("void")},Wa._getRawIdentifier=function(e){if(e===n)return a;n=e;var{name:t}=e,r=this.tokenMap.find(e,(e=>e.value===t));if(r)return a=this._originalCode.slice(r.start,r.end);return a=e.name};var e=Oi(),t=Ya(),{isAssignmentPattern:r,isIdentifier:i}=e,n=null,a="";var s=new Set(["^^","@@","^","%","#"]);return Wa}var Xa,Ha={};function za(){return Xa||(Xa=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.AnyTypeAnnotation=function(){this.word("any")},e.ArrayTypeAnnotation=function(e){this.print(e.elementType,!0),this.tokenChar(91),this.tokenChar(93)},e.BooleanLiteralTypeAnnotation=function(e){this.word(e.value?"true":"false")},e.BooleanTypeAnnotation=function(){this.word("boolean")},e.DeclareClass=function(e,t){a(t)||(this.word("declare"),this.space());this.word("class"),this.space(),this._interfaceish(e)},e.DeclareExportAllDeclaration=function(e){this.word("declare"),this.space(),r.ExportAllDeclaration.call(this,e)},e.DeclareExportDeclaration=function(e){this.word("declare"),this.space(),this.word("export"),this.space(),e.default&&(this.word("default"),this.space());c.call(this,e)},e.DeclareFunction=function(e,t){a(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()},e.DeclareInterface=function(e){this.word("declare"),this.space(),this.InterfaceDeclaration(e)},e.DeclareModule=function(e){this.word("declare"),this.space(),this.word("module"),this.space(),this.print(e.id),this.space(),this.print(e.body)},e.DeclareModuleExports=function(e){this.word("declare"),this.space(),this.word("module"),this.tokenChar(46),this.word("exports"),this.print(e.typeAnnotation)},e.DeclareOpaqueType=function(e,t){a(t)||(this.word("declare"),this.space());this.OpaqueType(e)},e.DeclareTypeAlias=function(e){this.word("declare"),this.space(),this.TypeAlias(e)},e.DeclareVariable=function(e,t){a(t)||(this.word("declare"),this.space());this.word("var"),this.space(),this.print(e.id),this.print(e.id.typeAnnotation),this.semicolon()},e.DeclaredPredicate=function(e){this.tokenChar(37),this.word("checks"),this.tokenChar(40),this.print(e.value),this.tokenChar(41)},e.EmptyTypeAnnotation=function(){this.word("empty")},e.EnumBooleanBody=function(e){var{explicitType:t}=e;o(this,"boolean",t),l(this,e)},e.EnumBooleanMember=function(e){p(this,e)},e.EnumDeclaration=function(e){var{id:t,body:r}=e;this.word("enum"),this.space(),this.print(t),this.print(r)},e.EnumDefaultedMember=function(e){var{id:t}=e;this.print(t),this.tokenChar(44)},e.EnumNumberBody=function(e){var{explicitType:t}=e;o(this,"number",t),l(this,e)},e.EnumNumberMember=function(e){p(this,e)},e.EnumStringBody=function(e){var{explicitType:t}=e;o(this,"string",t),l(this,e)},e.EnumStringMember=function(e){p(this,e)},e.EnumSymbolBody=function(e){o(this,"symbol",!0),l(this,e)},e.ExistsTypeAnnotation=function(){this.tokenChar(42)},e.FunctionTypeAnnotation=function(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);var r=null==t?void 0:t.type;null!=r&&("ObjectTypeCallProperty"===r||"ObjectTypeInternalSlot"===r||"DeclareFunction"===r||"ObjectTypeProperty"===r&&t.method)?this.tokenChar(58):(this.space(),this.token("=>"));this.space(),this.print(e.returnType)},e.FunctionTypeParam=function(e){this.print(e.name),e.optional&&this.tokenChar(63);e.name&&(this.tokenChar(58),this.space());this.print(e.typeAnnotation)},e.IndexedAccessType=function(e){this.print(e.objectType,!0),this.tokenChar(91),this.print(e.indexType),this.tokenChar(93)},e.InferredPredicate=function(){this.tokenChar(37),this.word("checks")},e.InterfaceDeclaration=function(e){this.word("interface"),this.space(),this._interfaceish(e)},e.GenericTypeAnnotation=e.ClassImplements=e.InterfaceExtends=function(e){this.print(e.id),this.print(e.typeParameters,!0)},e.InterfaceTypeAnnotation=function(e){var t;this.word("interface"),null!=(t=e.extends)&&t.length&&(this.space(),this.word("extends"),this.space(),this.printList(e.extends));this.space(),this.print(e.body)},e.IntersectionTypeAnnotation=function(e){this.printJoin(e.types,void 0,void 0,u)},e.MixedTypeAnnotation=function(){this.word("mixed")},e.NullLiteralTypeAnnotation=function(){this.word("null")},e.NullableTypeAnnotation=function(e){this.tokenChar(63),this.print(e.typeAnnotation)},Object.defineProperty(e,"NumberLiteralTypeAnnotation",{enumerable:!0,get:function(){return n.NumericLiteral}}),e.NumberTypeAnnotation=function(){this.word("number")},e.ObjectTypeAnnotation=function(e){e.exact?this.token("{|"):this.tokenChar(123);var t=[...e.properties,...e.callProperties||[],...e.indexers||[],...e.internalSlots||[]];t.length&&(this.newline(),this.space(),this.printJoin(t,!0,!0,void 0,void 0,(()=>{(1!==t.length||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)},e.ObjectTypeCallProperty=function(e){e.static&&(this.word("static"),this.space());this.print(e.value)},e.ObjectTypeIndexer=function(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)},e.ObjectTypeInternalSlot=function(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)},e.ObjectTypeProperty=function(e){e.proto&&(this.word("proto"),this.space());e.static&&(this.word("static"),this.space());"get"!==e.kind&&"set"!==e.kind||(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)},e.ObjectTypeSpreadProperty=function(e){this.token("..."),this.print(e.argument)},e.OpaqueType=function(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()},e.OptionalIndexedAccessType=function(e){this.print(e.objectType),e.optional&&this.token("?.");this.tokenChar(91),this.print(e.indexType),this.tokenChar(93)},e.QualifiedTypeIdentifier=function(e){this.print(e.qualification),this.tokenChar(46),this.print(e.id)},Object.defineProperty(e,"StringLiteralTypeAnnotation",{enumerable:!0,get:function(){return n.StringLiteral}}),e.StringTypeAnnotation=function(){this.word("string")},e.SymbolTypeAnnotation=function(){this.word("symbol")},e.ThisTypeAnnotation=function(){this.word("this")},e.TupleTypeAnnotation=function(e){this.tokenChar(91),this.printList(e.types),this.tokenChar(93)},e.TypeAlias=function(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()},e.TypeAnnotation=function(e,t){this.tokenChar(58),this.space(),"ArrowFunctionExpression"===t.type?this.tokenContext|=i.TokenContext.arrowFlowReturnType:e.optional&&this.tokenChar(63);this.print(e.typeAnnotation)},e.TypeCastExpression=function(e){this.tokenChar(40),this.print(e.expression),this.print(e.typeAnnotation),this.tokenChar(41)},e.TypeParameter=function(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))},e.TypeParameterDeclaration=e.TypeParameterInstantiation=function(e){this.tokenChar(60),this.printList(e.params),this.tokenChar(62)},e.TypeofTypeAnnotation=function(e){this.word("typeof"),this.space(),this.print(e.argument)},e.UnionTypeAnnotation=function(e){this.printJoin(e.types,void 0,void 0,h)},e.Variance=function(e){"plus"===e.kind?this.tokenChar(43):this.tokenChar(45)},e.VoidTypeAnnotation=function(){this.word("void")},e._interfaceish=function(e){var t;this.print(e.id),this.print(e.typeParameters),null!=(t=e.extends)&&t.length&&(this.space(),this.word("extends"),this.space(),this.printList(e.extends));if("DeclareClass"===e.type){var r,i;null!=(r=e.mixins)&&r.length&&(this.space(),this.word("mixins"),this.space(),this.printList(e.mixins)),null!=(i=e.implements)&&i.length&&(this.space(),this.word("implements"),this.space(),this.printList(e.implements))}this.space(),this.print(e.body)},e._variance=function(e){var t,r=null==(t=e.variance)?void 0:t.kind;null!=r&&("plus"===r?this.tokenChar(43):"minus"===r&&this.tokenChar(45))};var t=Oi(),r=Ua(),i=xa(),n=Ja(),{isDeclareExportDeclaration:a,isStatement:s}=t;function o(e,t,r){r&&(e.space(),e.word("of"),e.space(),e.word(t)),e.space()}function l(e,t){var{members:r}=t;for(var i of(e.token("{"),e.indent(),e.newline(),r))e.print(i),e.newline();t.hasUnknownMembers&&(e.token("..."),e.newline()),e.dedent(),e.token("}")}function p(e,t){e.print(t.id),e.space(),e.token("="),e.space(),e.print(t.init),e.token(",")}function c(e){if(e.declaration){var t=e.declaration;this.print(t),s(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 u(e){this.space(),this.token("&",!1,e),this.space()}function h(e){this.space(),this.token("|",!1,e),this.space()}}(Ha)),Ha}var Ga,Qa={};var $a,Za={};var es,ts,rs={};function is(){return ts||(ts=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=(Aa||(Aa=1,Object.defineProperty(wa,"__esModule",{value:!0}),wa.TaggedTemplateExpression=function(e){this.print(e.tag),this.print(e.typeParameters),this.print(e.quasi)},wa.TemplateElement=function(){throw new Error("TemplateElement printing is handled in TemplateLiteral")},wa.TemplateLiteral=function(e){this._printTemplate(e,e.expressions)},wa._printTemplate=function(e,t){for(var r=e.quasis,i="`",n=0;n<r.length-1;n++)if(i+=r[n].value.raw,this.token(i+"${",!0),this.print(t[n]),i="}",this.tokenMap){var a=this.tokenMap.findMatching(e,"}",n);a&&this._catchUpTo(a.loc.start)}i+=r[r.length-1].value.raw,this.token(i+"`",!0)}),wa);Object.keys(t).forEach((function(r){"default"!==r&&"__esModule"!==r&&(r in e&&e[r]===t[r]||Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[r]}}))}));var r=function(){if(Ia)return Na;Ia=1,Object.defineProperty(Na,"__esModule",{value:!0}),Na.LogicalExpression=Na.BinaryExpression=Na.AssignmentExpression=function(e){this.print(e.left),this.space(),"in"===e.operator||"instanceof"===e.operator?this.word(e.operator):(this.token(e.operator),this._endsWithDiv="/"===e.operator),this.space(),this.print(e.right)},Na.AssignmentPattern=function(e){this.print(e.left),("Identifier"===e.left.type||s(e.left))&&(e.left.optional&&this.tokenChar(63),this.print(e.left.typeAnnotation)),this.space(),this.tokenChar(61),this.space(),this.print(e.right)},Na.AwaitExpression=function(e){this.word("await"),this.space(),this.print(e.argument)},Na.BindExpression=function(e){this.print(e.object),this.token("::"),this.print(e.callee)},Na.CallExpression=function(e){this.print(e.callee),this.print(e.typeArguments),this.print(e.typeParameters),this.tokenChar(40);var t=this.enterDelimited();this.printList(e.arguments,this.shouldPrintTrailingComma(")")),t(),this.rightParens(e)},Na.ConditionalExpression=function(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)},Na.Decorator=function(e){this.tokenChar(64),this.print(e.expression),this.newline()},Na.DoExpression=function(e){e.async&&(this.word("async",!0),this.space()),this.word("do"),this.space(),this.print(e.body)},Na.EmptyStatement=function(){this.semicolon(!0)},Na.ExpressionStatement=function(e){this.tokenContext|=t.TokenContext.expressionStatement,this.print(e.expression),this.semicolon()},Na.Import=function(){this.word("import")},Na.MemberExpression=function(e){if(this.print(e.object),!e.computed&&n(e.property))throw new TypeError("Got a MemberExpression for MemberExpression property");var t=e.computed;if(i(e.property)&&"number"==typeof e.property.value&&(t=!0),t){var r=this.enterDelimited();this.tokenChar(91),this.print(e.property),this.tokenChar(93),r()}else this.tokenChar(46),this.print(e.property)},Na.MetaProperty=function(e){this.print(e.meta),this.tokenChar(46),this.print(e.property)},Na.ModuleExpression=function(e){this.word("module",!0),this.space(),this.tokenChar(123),this.indent();var{body:t}=e;(t.body.length||t.directives.length)&&this.newline(),this.print(t),this.dedent(),this.rightBrace(e)},Na.NewExpression=function(e,t){if(this.word("new"),this.space(),this.print(e.callee),(!this.format.minified||0!==e.arguments.length||e.optional||r(t,{callee:e})||n(t)||a(t))&&(this.print(e.typeArguments),this.print(e.typeParameters),e.optional&&this.token("?."),0!==e.arguments.length||!this.tokenMap||this.tokenMap.endMatches(e,")"))){this.tokenChar(40);var i=this.enterDelimited();this.printList(e.arguments,this.shouldPrintTrailingComma(")")),i(),this.rightParens(e)}},Na.OptionalCallExpression=function(e){this.print(e.callee),this.print(e.typeParameters),e.optional&&this.token("?."),this.print(e.typeArguments),this.tokenChar(40);var t=this.enterDelimited();this.printList(e.arguments),t(),this.rightParens(e)},Na.OptionalMemberExpression=function(e){var{computed:t}=e,{optional:r,property:a}=e;if(this.print(e.object),!t&&n(a))throw new TypeError("Got a MemberExpression for MemberExpression property");i(a)&&"number"==typeof a.value&&(t=!0),r&&this.token("?."),t?(this.tokenChar(91),this.print(a),this.tokenChar(93)):(r||this.tokenChar(46),this.print(a))},Na.ParenthesizedExpression=function(e){this.tokenChar(40);var t=this.enterDelimited();this.print(e.expression),t(),this.rightParens(e)},Na.PrivateName=function(e){this.tokenChar(35),this.print(e.id)},Na.SequenceExpression=function(e){this.printList(e.expressions)},Na.Super=function(){this.word("super")},Na.ThisExpression=function(){this.word("this")},Na.UnaryExpression=function(e){var{operator:t}=e;"void"===t||"delete"===t||"typeof"===t||"throw"===t?(this.word(t),this.space()):this.token(t),this.print(e.argument)},Na.UpdateExpression=function(e){e.prefix?(this.token(e.operator),this.print(e.argument)):(this.print(e.argument,!0),this.token(e.operator))},Na.V8IntrinsicIdentifier=function(e){this.tokenChar(37),this.word(e.name)},Na.YieldExpression=function(e){e.delegate?(this.word("yield",!0),this.tokenChar(42),e.argument&&(this.space(),this.print(e.argument))):e.argument?(this.word("yield",!0),this.space(),this.print(e.argument)):this.word("yield")},Na._shouldPrintDecoratorsBeforeExport=function(e){return"boolean"==typeof this.format.decoratorsBeforeExport?this.format.decoratorsBeforeExport:"number"==typeof e.start&&e.start===e.declaration.start};var e=Oi(),t=xa(),{isCallExpression:r,isLiteral:i,isMemberExpression:n,isNewExpression:a,isPattern:s}=e;return Na}();Object.keys(r).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===r[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return r[t]}}))}));var i=Da();Object.keys(i).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===i[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return i[t]}}))}));var n=Ma();Object.keys(n).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===n[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return n[t]}}))}));var a=function(){if(Fa)return Ba;Fa=1,Object.defineProperty(Ba,"__esModule",{value:!0}),Ba.ArrowFunctionExpression=function(e,r){e.async&&(this.word("async",!0),this.space()),this._shouldPrintArrowParamsParens(e)?this._params(e,void 0,r):this.print(e.params[0],!0),this._predicate(e,!0),this.space(),this.printInnerComments(),this.token("=>"),this.space(),this.tokenContext|=t.TokenContext.arrowBody,this.print(e.body)},Ba.FunctionDeclaration=Ba.FunctionExpression=function(e,t){this._functionHead(e,t),this.space(),this.print(e.body)},Ba._functionHead=function(e,t){e.async&&(this.word("async"),this.format.preserveFormat||(this._endsWithInnerRaw=!1),this.space()),this.word("function"),e.generator&&(this.format.preserveFormat||(this._endsWithInnerRaw=!1),this.tokenChar(42)),this.space(),e.id&&this.print(e.id),this._params(e,e.id,t),"TSDeclareFunction"!==e.type&&this._predicate(e)},Ba._methodHead=function(e){var t=e.kind,r=e.key;"get"!==t&&"set"!==t||(this.word(t),this.space()),e.async&&(this.word("async",!0),this.space()),"method"!==t&&"init"!==t||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&&"StringLiteral"!==e.key.type?void 0:e.key)},Ba._param=function(e){this.printJoin(e.decorators),this.print(e),e.optional&&this.tokenChar(63),this.print(e.typeAnnotation)},Ba._parameters=function(e,t){for(var r=this.enterDelimited(),i=this.shouldPrintTrailingComma(t),n=e.length,a=0;a<n;a++)this._param(e[a]),(i||a<n-1)&&(this.token(",",void 0,a),this.space());this.token(t),r()},Ba._params=function(e,t,r){this.print(e.typeParameters);var n=i.call(this,t,r);n&&this.sourceIdentifierName(n.name,n.pos),this.tokenChar(40),this._parameters(e.params,")");var a="ArrowFunctionExpression"===e.type;this.print(e.returnType,a),this._noLineTerminator=a},Ba._predicate=function(e,t){e.predicate&&(e.returnType||this.tokenChar(58),this.space(),this.print(e.predicate,t))},Ba._shouldPrintArrowParamsParens=function(e){var t,i;if(1!==e.params.length)return!0;if(e.typeParameters||e.returnType||e.predicate)return!0;var n=e.params[0];if(!r(n)||n.typeAnnotation||n.optional||null!=(t=n.leadingComments)&&t.length||null!=(i=n.trailingComments)&&i.length)return!0;if(this.tokenMap){if(null==e.loc)return!0;if(null!==this.tokenMap.findMatching(e,"("))return!0;var a=this.tokenMap.findMatching(e,"=>");return null==(null==a?void 0:a.loc)||a.loc.start.line!==e.loc.start.line}return!!this.format.retainLines};var e=Oi(),t=xa(),{isIdentifier:r}=e;function i(e,t){var r=e;if(!r&&t){var i=t.type;"VariableDeclarator"===i?r=t.id:"AssignmentExpression"===i||"AssignmentPattern"===i?r=t.left:"ObjectProperty"===i||"ClassProperty"===i?t.computed&&"StringLiteral"!==t.key.type||(r=t.key):"ClassPrivateProperty"!==i&&"ClassAccessorProperty"!==i||(r=t.key)}if(r){var n,a,s;if("Identifier"===r.type)n={pos:null==(a=r.loc)?void 0:a.start,name:(null==(s=r.loc)?void 0:s.identifierName)||r.name};else if("PrivateName"===r.type){var o;n={pos:null==(o=r.loc)?void 0:o.start,name:"#"+r.id.name}}else if("StringLiteral"===r.type){var l;n={pos:null==(l=r.loc)?void 0:l.start,name:r.value}}return n}}return Ba}();Object.keys(a).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===a[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return a[t]}}))}));var s=Ua();Object.keys(s).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===s[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return s[t]}}))}));var o=Ja();Object.keys(o).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===o[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return o[t]}}))}));var l=za();Object.keys(l).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===l[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return l[t]}}))}));var p=function(){if(Ga)return Qa;Ga=1,Object.defineProperty(Qa,"__esModule",{value:!0}),Qa.BlockStatement=function(e){var t;this.tokenChar(123);var r=this.enterDelimited(),i=null==(t=e.directives)?void 0:t.length;if(i){var n,a=e.body.length?2:1;this.printSequence(e.directives,!0,a),null!=(n=e.directives[i-1].trailingComments)&&n.length||this.newline(a)}this.printSequence(e.body,!0),r(),this.rightBrace(e)},Qa.Directive=function(e){this.print(e.value),this.semicolon()},Qa.DirectiveLiteral=function(r){var i=this.getPossibleRaw(r);if(this.format.minified||void 0===i){var{value:n}=r;if(t.test(n)){if(e.test(n))throw new Error("Malformed AST: it is not possible to print a directive containing both unescaped single and double quotes.");this.token("'".concat(n,"'"))}else this.token('"'.concat(n,'"'))}else this.token(i)},Qa.File=function(e){e.program&&this.print(e.program.interpreter),this.print(e.program)},Qa.InterpreterDirective=function(e){this.token("#!".concat(e.value)),this.newline(1,!0)},Qa.Placeholder=function(e){this.token("%%"),this.print(e.name),this.token("%%"),"Statement"===e.expectedNode&&this.semicolon()},Qa.Program=function(e){var t;this.noIndentInnerCommentsHere(),this.printInnerComments();var r=null==(t=e.directives)?void 0:t.length;if(r){var i,n=e.body.length?2:1;this.printSequence(e.directives,void 0,n),null!=(i=e.directives[r-1].trailingComments)&&i.length||this.newline(n)}this.printSequence(e.body)};var e=/(?:^|[^\\])(?:\\\\)*'/,t=/(?:^|[^\\])(?:\\\\)*"/;return Qa}();Object.keys(p).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===p[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return p[t]}}))}));var c=function(){if($a)return Za;function e(){this.space()}return $a=1,Object.defineProperty(Za,"__esModule",{value:!0}),Za.JSXAttribute=function(e){this.print(e.name),e.value&&(this.tokenChar(61),this.print(e.value))},Za.JSXClosingElement=function(e){this.tokenChar(60),this.tokenChar(47),this.print(e.name),this.tokenChar(62)},Za.JSXClosingFragment=function(){this.token("</"),this.tokenChar(62)},Za.JSXElement=function(e){var t=e.openingElement;if(this.print(t),!t.selfClosing){for(var r of(this.indent(),e.children))this.print(r);this.dedent(),this.print(e.closingElement)}},Za.JSXEmptyExpression=function(){this.printInnerComments()},Za.JSXExpressionContainer=function(e){this.tokenChar(123),this.print(e.expression),this.rightBrace(e)},Za.JSXFragment=function(e){for(var t of(this.print(e.openingFragment),this.indent(),e.children))this.print(t);this.dedent(),this.print(e.closingFragment)},Za.JSXIdentifier=function(e){this.word(e.name)},Za.JSXMemberExpression=function(e){this.print(e.object),this.tokenChar(46),this.print(e.property)},Za.JSXNamespacedName=function(e){this.print(e.namespace),this.tokenChar(58),this.print(e.name)},Za.JSXOpeningElement=function(t){this.tokenChar(60),this.print(t.name),t.typeArguments&&this.print(t.typeArguments),this.print(t.typeParameters),t.attributes.length>0&&(this.space(),this.printJoin(t.attributes,void 0,void 0,e)),t.selfClosing&&(this.space(),this.tokenChar(47)),this.tokenChar(62)},Za.JSXOpeningFragment=function(){this.tokenChar(60),this.tokenChar(62)},Za.JSXSpreadAttribute=function(e){this.tokenChar(123),this.token("..."),this.print(e.argument),this.rightBrace(e)},Za.JSXSpreadChild=function(e){this.tokenChar(123),this.token("..."),this.print(e.expression),this.rightBrace(e)},Za.JSXText=function(e){var t=this.getPossibleRaw(e);void 0!==t?this.token(t,!0):this.token(e.value,!0)},Za}();Object.keys(c).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===c[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return c[t]}}))}));var u=function(){if(es)return rs;function e(e,t){e.tokenMap&&t.start&&t.end?e.tokenMap.endMatches(t,",")?e.token(","):e.tokenMap.endMatches(t,";")&&e.semicolon():e.semicolon()}function t(e,t,r){var i,n=0;null!=(i=e.tokenMap)&&i.startMatches(t,r)&&(n=1,e.token(r)),e.printJoin(t.types,void 0,void 0,(function(e){this.space(),this.token(r,void 0,e+n),this.space()}))}function r(e,t){!0!==t&&e.token(t)}function i(e){n(this,e,(()=>{var t;return this.printList(e.members,null==(t=this.shouldPrintTrailingComma("}"))||t,!0,!0)}))}function n(e,t,r){e.token("{");var i=e.enterDelimited();r(),i(),e.rightBrace(t)}function a(e,t,r){var i,n=new Set;for(var a of r)a&&n.add(a);for(var s of(null==(i=e.tokenMap)||i.find(t,(t=>!!n.has(t.value)&&(e.token(t.value),e.space(),n.delete(t.value),0===n.size))),n))e.word(s),e.space()}return es=1,Object.defineProperty(rs,"__esModule",{value:!0}),rs.TSAnyKeyword=function(){this.word("any")},rs.TSArrayType=function(e){this.print(e.elementType,!0),this.tokenChar(91),this.tokenChar(93)},rs.TSSatisfiesExpression=rs.TSAsExpression=function(e){var{type:t,expression:r,typeAnnotation:i}=e;this.print(r,!0),this.space(),this.word("TSAsExpression"===t?"as":"satisfies"),this.space(),this.print(i)},rs.TSBigIntKeyword=function(){this.word("bigint")},rs.TSBooleanKeyword=function(){this.word("boolean")},rs.TSCallSignatureDeclaration=function(t){this.tsPrintSignatureDeclarationBase(t),e(this,t)},rs.TSInterfaceHeritage=rs.TSClassImplements=function(e){this.print(e.expression),this.print(e.typeArguments)},rs.TSConditionalType=function(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)},rs.TSConstructSignatureDeclaration=function(t){this.word("new"),this.space(),this.tsPrintSignatureDeclarationBase(t),e(this,t)},rs.TSConstructorType=function(e){e.abstract&&(this.word("abstract"),this.space()),this.word("new"),this.space(),this.tsPrintFunctionOrConstructorType(e)},rs.TSDeclareFunction=function(e,t){e.declare&&(this.word("declare"),this.space()),this._functionHead(e,t),this.semicolon()},rs.TSDeclareMethod=function(e){this._classMethodHead(e),this.semicolon()},rs.TSEnumBody=i,rs.TSEnumDeclaration=function(e){var{declare:t,const:r,id:n}=e;t&&(this.word("declare"),this.space()),r&&(this.word("const"),this.space()),this.word("enum"),this.space(),this.print(n),this.space(),i.call(this,e)},rs.TSEnumMember=function(e){var{id:t,initializer:r}=e;this.print(t),r&&(this.space(),this.tokenChar(61),this.space(),this.print(r))},rs.TSExportAssignment=function(e){this.word("export"),this.space(),this.tokenChar(61),this.space(),this.print(e.expression),this.semicolon()},rs.TSExternalModuleReference=function(e){this.token("require("),this.print(e.expression),this.tokenChar(41)},rs.TSFunctionType=function(e){this.tsPrintFunctionOrConstructorType(e)},rs.TSImportEqualsDeclaration=function(e){var{id:t,moduleReference:r}=e;e.isExport&&(this.word("export"),this.space()),this.word("import"),this.space(),this.print(t),this.space(),this.tokenChar(61),this.space(),this.print(r),this.semicolon()},rs.TSImportType=function(e){var{argument:t,qualifier:r,options:i}=e;this.word("import"),this.tokenChar(40),this.print(t),i&&(this.tokenChar(44),this.print(i)),this.tokenChar(41),r&&(this.tokenChar(46),this.print(r));var n=e.typeParameters;n&&this.print(n)},rs.TSIndexSignature=function(t){var{readonly:r,static:i}=t;i&&(this.word("static"),this.space()),r&&(this.word("readonly"),this.space()),this.tokenChar(91),this._parameters(t.parameters,"]"),this.print(t.typeAnnotation),e(this,t)},rs.TSIndexedAccessType=function(e){this.print(e.objectType,!0),this.tokenChar(91),this.print(e.indexType),this.tokenChar(93)},rs.TSInferType=function(e){this.word("infer"),this.print(e.typeParameter)},rs.TSInstantiationExpression=function(e){this.print(e.expression),this.print(e.typeParameters)},rs.TSInterfaceBody=function(e){n(this,e,(()=>this.printJoin(e.body,!0,!0)))},rs.TSInterfaceDeclaration=function(e){var{declare:t,id:r,typeParameters:i,extends:n,body:a}=e;t&&(this.word("declare"),this.space()),this.word("interface"),this.space(),this.print(r),this.print(i),null!=n&&n.length&&(this.space(),this.word("extends"),this.space(),this.printList(n)),this.space(),this.print(a)},rs.TSIntersectionType=function(e){t(this,e,"&")},rs.TSIntrinsicKeyword=function(){this.word("intrinsic")},rs.TSLiteralType=function(e){this.print(e.literal)},rs.TSMappedType=function(e){var{nameType:t,optional:i,readonly:n,typeAnnotation:a}=e;this.tokenChar(123);var s=this.enterDelimited();this.space(),n&&(r(this,n),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),i&&(r(this,i),this.tokenChar(63)),a&&(this.tokenChar(58),this.space(),this.print(a)),this.space(),s(),this.tokenChar(125)},rs.TSMethodSignature=function(t){var{kind:r}=t;"set"!==r&&"get"!==r||(this.word(r),this.space()),this.tsPrintPropertyOrMethodName(t),this.tsPrintSignatureDeclarationBase(t),e(this,t)},rs.TSModuleBlock=function(e){n(this,e,(()=>this.printSequence(e.body,!0)))},rs.TSModuleDeclaration=function(e){var{declare:t,id:r,kind:i}=e;if(t&&(this.word("declare"),this.space()),e.global||(this.word(null!=i?i:"Identifier"===r.type?"namespace":"module"),this.space()),this.print(r),e.body){for(var n=e.body;"TSModuleDeclaration"===n.type;)this.tokenChar(46),this.print(n.id),n=n.body;this.space(),this.print(n)}else this.semicolon()},rs.TSNamedTupleMember=function(e){this.print(e.label),e.optional&&this.tokenChar(63),this.tokenChar(58),this.space(),this.print(e.elementType)},rs.TSNamespaceExportDeclaration=function(e){this.word("export"),this.space(),this.word("as"),this.space(),this.word("namespace"),this.space(),this.print(e.id),this.semicolon()},rs.TSNeverKeyword=function(){this.word("never")},rs.TSNonNullExpression=function(e){this.print(e.expression),this.tokenChar(33)},rs.TSNullKeyword=function(){this.word("null")},rs.TSNumberKeyword=function(){this.word("number")},rs.TSObjectKeyword=function(){this.word("object")},rs.TSOptionalType=function(e){this.print(e.typeAnnotation),this.tokenChar(63)},rs.TSParameterProperty=function(e){e.accessibility&&(this.word(e.accessibility),this.space()),e.readonly&&(this.word("readonly"),this.space()),this._param(e.parameter)},rs.TSParenthesizedType=function(e){this.tokenChar(40),this.print(e.typeAnnotation),this.tokenChar(41)},rs.TSPropertySignature=function(t){var{readonly:r}=t;r&&(this.word("readonly"),this.space()),this.tsPrintPropertyOrMethodName(t),this.print(t.typeAnnotation),e(this,t)},rs.TSQualifiedName=function(e){this.print(e.left),this.tokenChar(46),this.print(e.right)},rs.TSRestType=function(e){this.token("..."),this.print(e.typeAnnotation)},rs.TSStringKeyword=function(){this.word("string")},rs.TSSymbolKeyword=function(){this.word("symbol")},rs.TSTemplateLiteralType=function(e){this._printTemplate(e,e.types)},rs.TSThisType=function(){this.word("this")},rs.TSTupleType=function(e){this.tokenChar(91),this.printList(e.elementTypes,this.shouldPrintTrailingComma("]")),this.tokenChar(93)},rs.TSTypeAliasDeclaration=function(e){var{declare:t,id:r,typeParameters:i,typeAnnotation:n}=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(n),this.semicolon()},rs.TSTypeAnnotation=function(e,t){this.token("TSFunctionType"!==t.type&&"TSConstructorType"!==t.type||t.typeAnnotation!==e?":":"=>"),this.space(),e.optional&&this.tokenChar(63),this.print(e.typeAnnotation)},rs.TSTypeAssertion=function(e){var{typeAnnotation:t,expression:r}=e;this.tokenChar(60),this.print(t),this.tokenChar(62),this.space(),this.print(r)},rs.TSTypeLiteral=function(e){n(this,e,(()=>this.printJoin(e.members,!0,!0)))},rs.TSTypeOperator=function(e){this.word(e.operator),this.space(),this.print(e.typeAnnotation)},rs.TSTypeParameter=function(e){e.const&&(this.word("const"),this.space()),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))},rs.TSTypeParameterDeclaration=rs.TSTypeParameterInstantiation=function(e,t){this.tokenChar(60);var r="ArrowFunctionExpression"===t.type&&1===e.params.length;this.tokenMap&&null!=e.start&&null!=e.end&&(r&&(r=!!this.tokenMap.find(e,(e=>this.tokenMap.matchesOriginal(e,",")))),r||(r=this.shouldPrintTrailingComma(">"))),this.printList(e.params,r),this.tokenChar(62)},rs.TSTypePredicate=function(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))},rs.TSTypeQuery=function(e){this.word("typeof"),this.space(),this.print(e.exprName);var t=e.typeParameters;t&&this.print(t)},rs.TSTypeReference=function(e){var t=e.typeParameters;this.print(e.typeName,!!t),this.print(t)},rs.TSUndefinedKeyword=function(){this.word("undefined")},rs.TSUnionType=function(e){t(this,e,"|")},rs.TSUnknownKeyword=function(){this.word("unknown")},rs.TSVoidKeyword=function(){this.word("void")},rs.tsPrintClassMemberModifiers=function(e){var t="ClassPrivateProperty"===e.type,r="ClassAccessorProperty"===e.type||"ClassProperty"===e.type;a(this,e,[r&&e.declare&&"declare",!t&&e.accessibility]),e.static&&(this.word("static"),this.space()),a(this,e,[!t&&e.abstract&&"abstract",!t&&e.override&&"override",(r||t)&&e.readonly&&"readonly"])},rs.tsPrintFunctionOrConstructorType=function(e){var{typeParameters:t}=e,r=e.parameters;this.print(t),this.tokenChar(40),this._parameters(r,")"),this.space();var i=e.typeAnnotation;this.print(i)},rs.tsPrintPropertyOrMethodName=function(e){e.computed&&this.tokenChar(91),this.print(e.key),e.computed&&this.tokenChar(93),e.optional&&this.tokenChar(63)},rs.tsPrintSignatureDeclarationBase=function(e){var{typeParameters:t}=e,r=e.parameters;this.print(t),this.tokenChar(40),this._parameters(r,")");var i=e.typeAnnotation;this.print(i)},rs}();Object.keys(u).forEach((function(t){"default"!==t&&"__esModule"!==t&&(t in e&&e[t]===u[t]||Object.defineProperty(e,t,{enumerable:!0,get:function(){return u[t]}}))}))}(Ca)),Ca}var ns,as,ss,os={};function ls(){if(as)return ha;as=1,Object.defineProperty(ha,"__esModule",{value:!0}),ha.default=void 0;var e=(ua||(ua=1,Object.defineProperty(da,"__esModule",{value:!0}),da.default=void 0,da.default=class{constructor(e,t){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=e,this._indentChar=t;for(var r=0;r<64;r++)this._fastIndentations.push(t.repeat(r));this._allocQueue()}_allocQueue(){for(var e=this._queue,t=0;t<16;t++)e.push({char:0,repeat:1,line:void 0,column:void 0,identifierName:void 0,identifierNamePos:void 0,filename:""})}_pushQueue(e,t,r,i,n){var a=this._queueCursor;a===this._queue.length&&this._allocQueue();var s=this._queue[a];s.char=e,s.repeat=t,s.line=r,s.column=i,s.filename=n,this._queueCursor++}_popQueue(){if(0===this._queueCursor)throw new Error("Cannot pop from empty queue");return this._queue[--this._queueCursor]}get(){this._flush();var e=this._map,t={code:(this._buf+this._str).trimRight(),decodedMap:null==e?void 0:e.getDecoded(),get __mergedMap(){return this.map},get map(){var r=e?e.get():null;return t.map=r,r},set map(e){Object.defineProperty(t,"map",{value:e,writable:!0})},get rawMappings(){var r=null==e?void 0:e.getRawMappings();return t.rawMappings=r,r},set rawMappings(e){Object.defineProperty(t,"rawMappings",{value:e,writable:!0})}};return t}append(e,t){this._flush(),this._append(e,this._sourcePosition,t)}appendChar(e){this._flush(),this._appendChar(e,1,this._sourcePosition)}queue(e){if(10===e)for(;0!==this._queueCursor;){var t=this._queue[this._queueCursor-1].char;if(32!==t&&9!==t)break;this._queueCursor--}var r=this._sourcePosition;this._pushQueue(e,1,r.line,r.column,r.filename)}queueIndentation(e){0!==e&&this._pushQueue(-1,e,void 0,void 0,void 0)}_flush(){for(var e=this._queueCursor,t=this._queue,r=0;r<e;r++){var i=t[r];this._appendChar(i.char,i.repeat,i)}this._queueCursor=0}_appendChar(e,t,r){if(this._last=e,-1===e){var i=this._fastIndentations[t];this._str+=void 0!==i?i:t>1?this._indentChar.repeat(t):this._indentChar}else this._str+=t>1?String.fromCharCode(e).repeat(t):String.fromCharCode(e);10!==e?(this._mark(r.line,r.column,r.identifierName,r.identifierNamePos,r.filename),this._position.column+=t):(this._position.line++,this._position.column=0),this._canMarkIdName&&(r.identifierName=void 0,r.identifierNamePos=void 0)}_append(e,t,r){var i=e.length,n=this._position;if(this._last=e.charCodeAt(i-1),++this._appendCount>4096?(this._str,this._buf+=this._str,this._str=e,this._appendCount=0):this._str+=e,r||this._map){var{column:a,identifierName:s,identifierNamePos:o,filename:l}=t,p=t.line;null==s&&null==o||!this._canMarkIdName||(t.identifierName=void 0,t.identifierNamePos=void 0);var c=e.indexOf("\n"),u=0;for(0!==c&&this._mark(p,a,s,o,l);-1!==c;)n.line++,n.column=0,(u=c+1)<i&&void 0!==p&&this._mark(++p,0,void 0,void 0,l),c=e.indexOf("\n",u);n.column+=i-u}else n.column+=i}_mark(e,t,r,i,n){var a;null==(a=this._map)||a.mark(this._position,e,t,r,i,n)}removeTrailingNewline(){var e=this._queueCursor;0!==e&&10===this._queue[e-1].char&&this._queueCursor--}removeLastSemicolon(){var e=this._queueCursor;0!==e&&59===this._queue[e-1].char&&this._queueCursor--}getLastChar(){var e=this._queueCursor;return 0!==e?this._queue[e-1].char:this._last}getNewlineCount(){var e=this._queueCursor,t=0;if(0===e)return 10===this._last?1:0;for(var r=e-1;r>=0&&10===this._queue[r].char;r--)t++;return t===e&&10===this._last?t+1:t}endsWithCharAndNewline(){var e=this._queue,t=this._queueCursor;if(0!==t){if(10!==e[t-1].char)return;return t>1?e[t-2].char:this._last}}hasContent(){return 0!==this._queueCursor||!!this._last}exactSource(e,t){if(this._map){this.source("start",e);var r=e.identifierName,i=this._sourcePosition;r&&(this._canMarkIdName=!1,i.identifierName=r),t(),r&&(this._canMarkIdName=!0,i.identifierName=void 0,i.identifierNamePos=void 0),this.source("end",e)}else t()}source(e,t){this._map&&this._normalizePosition(e,t,0)}sourceWithOffset(e,t,r){this._map&&this._normalizePosition(e,t,r)}_normalizePosition(e,t,r){var i=t[e],n=this._sourcePosition;i&&(n.line=i.line,n.column=Math.max(i.column+r,0),n.filename=t.filename)}getCurrentColumn(){for(var e=this._queue,t=this._queueCursor,r=-1,i=0,n=0;n<t;n++){var a=e[n];10===a.char&&(r=i),i+=a.repeat}return-1===r?this._position.column+i:i-1-r}getCurrentLine(){for(var e=0,t=this._queue,r=0;r<this._queueCursor;r++)10===t[r].char&&e++;return this._position.line+e}}),da),t=xa(),r=t,i=Oi(),n=Ea(),a=is(),s=(ns||(ns=1,Object.defineProperty(os,"__esModule",{value:!0}),os.addDeprecatedGenerators=function(e){var t={Noop(){},TSExpressionWithTypeArguments(e){this.print(e.expression),this.print(e.typeParameters)},DecimalLiteral(e){var t=this.getPossibleRaw(e);this.format.minified||void 0===t?this.word(e.value+"m"):this.word(t)}};Object.assign(e.prototype,t)}),os),{isExpression:o,isFunction:l,isStatement:p,isClassBody:c,isTSInterfaceBody:u,isTSEnumMember:h}=i,d=/e/i,f=/\.0+$/,m=/[\n\r\u2028\u2029]/,y=/[\n\r\u2028\u2029]|\*\//;function v(e){return"CommentLine"===e.type||m.test(e.value)}var{needsParens:T}=r;class g{constructor(r,i){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;this.tokenContext=t.TokenContext.normal,this._tokens=null,this._originalCode=null,this._currentNode=null,this._indent=0,this._indentRepeat=0,this._insideAux=!1,this._noLineTerminator=!1,this._noLineTerminatorAfterNode=null,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.tokenMap=null,this._boundGetRawIdentifier=this._getRawIdentifier.bind(this),this._printSemicolonBeforeNextNode=-1,this._printSemicolonBeforeNextToken=-1,this.format=r,this._tokens=n,this._originalCode=a,this._indentRepeat=r.indent.style.length,this._inputMap=(null==i?void 0:i._inputMap)||null,this._buf=new e.default(i,r.indent.style[0])}enterForStatementInit(){return this.tokenContext|=t.TokenContext.forInitHead|t.TokenContext.forInOrInitHeadAccumulate,()=>this.tokenContext=t.TokenContext.normal}enterForXStatementInit(e){return e?(this.tokenContext|=t.TokenContext.forOfHead,null):(this.tokenContext|=t.TokenContext.forInHead|t.TokenContext.forInOrInitHeadAccumulate,()=>this.tokenContext=t.TokenContext.normal)}enterDelimited(){var e=this.tokenContext,r=this._noLineTerminatorAfterNode;return e&t.TokenContext.forInOrInitHeadAccumulate||null!==r?(this._noLineTerminatorAfterNode=null,this.tokenContext=t.TokenContext.normal,()=>{this._noLineTerminatorAfterNode=r,this.tokenContext=e}):()=>{}}generate(e){return this.format.preserveFormat&&(this.tokenMap=new n.TokenMap(e,this._tokens,this._originalCode)),this.print(e),this._maybeAddAuxComment(),this._buf.get()}indent(){var{format:e}=this;e.preserveFormat||e.compact||e.concise||this._indent++}dedent(){var{format:e}=this;e.preserveFormat||e.compact||e.concise||this._indent--}semicolon(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this._maybeAddAuxComment(),e)return this._appendChar(59),void(this._noLineTerminator=!1);if(this.tokenMap){var t=this._currentNode;if(null!=t.start&&null!=t.end){if(!this.tokenMap.endMatches(t,";"))return void(this._printSemicolonBeforeNextNode=this._buf.getCurrentLine());var r=this.tokenMap.getIndexes(this._currentNode);this._catchUpTo(this._tokens[r[r.length-1]].loc.start)}}this._queue(59),this._noLineTerminator=!1}rightBrace(e){this.format.minified&&this._buf.removeLastSemicolon(),this.sourceWithOffset("end",e.loc,-1),this.tokenChar(125)}rightParens(e){this.sourceWithOffset("end",e.loc,-1),this.tokenChar(41)}space(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],{format:t}=this;if(!t.compact&&!t.preserveFormat)if(e)this._space();else if(this._buf.hasContent()){var r=this.getLastChar();32!==r&&10!==r&&this._space()}}word(e){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.tokenContext&=t.TokenContext.forInOrInitHeadAccumulatePassThroughMask,this._maybePrintInnerComments(e),this._maybeAddAuxComment(),this.tokenMap&&this._catchUpToCurrentToken(e),(this._endsWithWord||this._endsWithDiv&&47===e.charCodeAt(0))&&this._space(),this._append(e,!1),this._endsWithWord=!0,this._noLineTerminator=r}number(e,t){this.word(e),this._endsWithInteger=Number.isInteger(t)&&!function(e){if(e.length>2&&48===e.charCodeAt(0)){var t=e.charCodeAt(1);return 98===t||111===t||120===t}return!1}(e)&&!d.test(e)&&!f.test(e)&&46!==e.charCodeAt(e.length-1)}token(e){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;this.tokenContext&=t.TokenContext.forInOrInitHeadAccumulatePassThroughMask,this._maybePrintInnerComments(e,i),this._maybeAddAuxComment(),this.tokenMap&&this._catchUpToCurrentToken(e,i);var n=this.getLastChar(),a=e.charCodeAt(0);(33===n&&("--"===e||61===a)||43===a&&43===n||45===a&&45===n||46===a&&this._endsWithInteger)&&this._space(),this._append(e,r),this._noLineTerminator=!1}tokenChar(e){this.tokenContext&=t.TokenContext.forInOrInitHeadAccumulatePassThroughMask;var r=String.fromCharCode(e);this._maybePrintInnerComments(r),this._maybeAddAuxComment(),this.tokenMap&&this._catchUpToCurrentToken(r);var i=this.getLastChar();(43===e&&43===i||45===e&&45===i||46===e&&this._endsWithInteger)&&this._space(),this._appendChar(e),this._noLineTerminator=!1}newline(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;if(!(e<=0)){if(!(arguments.length>1?arguments[1]:void 0)){if(this.format.retainLines||this.format.compact)return;if(this.format.concise)return void this.space()}e>2&&(e=2),e-=this._buf.getNewlineCount();for(var t=0;t<e;t++)this._newline()}}endsWith(e){return this.getLastChar()===e}getLastChar(){return this._buf.getLastChar()}endsWithCharAndNewline(){return this._buf.endsWithCharAndNewline()}removeTrailingNewline(){this._buf.removeTrailingNewline()}exactSource(e,t){e?(this._catchUp("start",e),this._buf.exactSource(e,t)):t()}source(e,t){t&&(this._catchUp(e,t),this._buf.source(e,t))}sourceWithOffset(e,t,r){t&&!this.format.preserveFormat&&(this._catchUp(e,t),this._buf.sourceWithOffset(e,t,r))}sourceIdentifierName(e,t){if(this._buf._canMarkIdName){var r=this._buf._sourcePosition;r.identifierNamePos=t,r.identifierName=e}}_space(){this._queue(32)}_newline(){this._queue(10)}_catchUpToCurrentToken(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=this.tokenMap.findMatching(this._currentNode,e,t);r&&this._catchUpTo(r.loc.start),-1!==this._printSemicolonBeforeNextToken&&this._printSemicolonBeforeNextToken===this._buf.getCurrentLine()&&(this._buf.appendChar(59),this._endsWithWord=!1,this._endsWithInteger=!1,this._endsWithDiv=!1),this._printSemicolonBeforeNextToken=-1,this._printSemicolonBeforeNextNode=-1}_append(e,t){this._maybeIndent(e.charCodeAt(0)),this._buf.append(e,t),this._endsWithWord=!1,this._endsWithInteger=!1,this._endsWithDiv=!1}_appendChar(e){this._maybeIndent(e),this._buf.appendChar(e),this._endsWithWord=!1,this._endsWithInteger=!1,this._endsWithDiv=!1}_queue(e){this._maybeIndent(e),this._buf.queue(e),this._endsWithWord=!1,this._endsWithInteger=!1}_maybeIndent(e){this._indent&&10!==e&&this.endsWith(10)&&this._buf.queueIndentation(this._getIndent())}_shouldIndent(e){if(this._indent&&10!==e&&this.endsWith(10))return!0}catchUp(e){if(this.format.retainLines)for(var t=e-this._buf.getCurrentLine(),r=0;r<t;r++)this._newline()}_catchUp(e,t){var{format:r}=this;if(r.preserveFormat){var i=null==t?void 0:t[e];null!=i&&this._catchUpTo(i)}else r.retainLines&&null!=t&&t[e]&&this.catchUp(t[e].line)}_catchUpTo(e){var{line:t,column:r,index:i}=e,n=t-this._buf.getCurrentLine();if(!(n>0&&this._noLineTerminator)){for(var a=0;a<n;a++)this._newline();var s=n>0?r:r-this._buf.getCurrentColumn();if(s>0){var o=this._originalCode?this._originalCode.slice(i-s,i).replace(/(?:[\0-\x08\n\r-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g," "):" ".repeat(s);this._append(o,!1)}}}_getIndent(){return this._indentRepeat*this._indent}printTerminatorless(e){this._noLineTerminator=!0,this.print(e)}print(e){var i,n,a,s=arguments.length>1&&void 0!==arguments[1]&&arguments[1],l=arguments.length>2?arguments[2]:void 0;if(e){this._endsWithInnerRaw=!1;var p=e.type,c=this.format,u=c.concise;e._compact&&(c.concise=!0);var h=this[p];if(void 0===h)throw new ReferenceError("unknown node of type ".concat(JSON.stringify(p)," with constructor ").concat(JSON.stringify(e.constructor.name)));var d=this._currentNode;this._currentNode=e,this.tokenMap&&(this._printSemicolonBeforeNextToken=this._printSemicolonBeforeNextNode);var f=this._insideAux;this._insideAux=null==e.loc,this._maybeAddAuxComment(this._insideAux&&!f);var m=null==(i=e.extra)?void 0:i.parenthesized,y=m&&c.preserveFormat||m&&c.retainFunctionParens&&"FunctionExpression"===p||T(e,d,this.tokenContext,c.preserveFormat?this._boundGetRawIdentifier:void 0);if(!y&&m&&null!=(n=e.leadingComments)&&n.length&&"CommentBlock"===e.leadingComments[0].type)switch(null==d?void 0:d.type){case"ExpressionStatement":case"VariableDeclarator":case"AssignmentExpression":case"ReturnStatement":break;case"CallExpression":case"OptionalCallExpression":case"NewExpression":if(d.callee!==e)break;default:y=!0}var g,S,x,b=!1;if(!y&&this._noLineTerminator&&(null!=(a=e.leadingComments)&&a.some(v)||this.format.retainLines&&e.loc&&e.loc.start.line>this._buf.getCurrentLine())&&(y=!0,b=!0),!y)if(s||(s=!!d&&this._noLineTerminatorAfterNode===d&&r.isLastChild(d,e)),s)null!=(x=e.trailingComments)&&x.some(v)?o(e)&&(y=!0):(g=this._noLineTerminatorAfterNode,this._noLineTerminatorAfterNode=e);y&&(this.tokenChar(40),b&&this.indent(),this._endsWithInnerRaw=!1,this.tokenContext&t.TokenContext.forInOrInitHeadAccumulate&&(S=this.tokenContext,this.tokenContext=t.TokenContext.normal),g=this._noLineTerminatorAfterNode,this._noLineTerminatorAfterNode=null),this._lastCommentLine=0,this._printLeadingComments(e,d);var P="Program"===p||"File"===p?null:e.loc;this.exactSource(P,h.bind(this,e,d)),y?(this._printTrailingComments(e,d),b&&(this.dedent(),this.newline()),this.tokenChar(41),this._noLineTerminator=s,S&&(this.tokenContext=S)):s&&!this._noLineTerminator?(this._noLineTerminator=!0,this._printTrailingComments(e,d)):this._printTrailingComments(e,d,l),this._currentNode=d,c.concise=u,this._insideAux=f,void 0!==g&&(this._noLineTerminatorAfterNode=g),this._endsWithInnerRaw=!1}}_maybeAddAuxComment(e){e&&this._printAuxBeforeComment(),this._insideAux||this._printAuxAfterComment()}_printAuxBeforeComment(){if(!this._printAuxAfterOnNextUserNode){this._printAuxAfterOnNextUserNode=!0;var e=this.format.auxiliaryCommentBefore;e&&this._printComment({type:"CommentBlock",value:e},0)}}_printAuxAfterComment(){if(this._printAuxAfterOnNextUserNode){this._printAuxAfterOnNextUserNode=!1;var e=this.format.auxiliaryCommentAfter;e&&this._printComment({type:"CommentBlock",value:e},0)}}getPossibleRaw(e){var t=e.extra;if(null!=(null==t?void 0:t.raw)&&null!=t.rawValue&&e.value===t.rawValue)return t.raw}printJoin(e,t,r,i,n,a,s){if(null!=e&&e.length){if(null==r&&this.format.retainLines){var o,l=null==(o=e[0].loc)?void 0:o.start.line;null!=l&&l!==this._buf.getCurrentLine()&&(r=!0)}r&&this.indent();for(var p={nextNodeStartLine:0},c=null==i?void 0:i.bind(this),u=e.length,h=0;h<u;h++){var d,f=e[h];if(f)if(t&&this._printNewline(0===h,p),this.print(f,void 0,s||0),null==a||a(f,h),null!=c&&(h<u-1?c(h,!1):n&&c(h,!0)),t)if(null!=(d=f.trailingComments)&&d.length||(this._lastCommentLine=0),h+1===u)this.newline(1);else{var m,y=e[h+1];p.nextNodeStartLine=(null==(m=y.loc)?void 0:m.start.line)||0,this._printNewline(!0,p)}}r&&this.dedent()}}printAndIndentOnComments(e){var t=e.leadingComments&&e.leadingComments.length>0;t&&this.indent(),this.print(e),t&&this.dedent()}printBlock(e){var t=e.body;"EmptyStatement"!==t.type&&this.space(),this.print(t)}_printTrailingComments(e,t,r){var{innerComments:i,trailingComments:n}=e;null!=i&&i.length&&this._printComments(2,i,e,t,r),null!=n&&n.length&&this._printComments(2,n,e,t,r)}_printLeadingComments(e,t){var r=e.leadingComments;null!=r&&r.length&&this._printComments(0,r,e,t)}_maybePrintInnerComments(e,t){var r;this._endsWithInnerRaw&&this.printInnerComments(null==(r=this.tokenMap)?void 0:r.findMatching(this._currentNode,e,t));this._endsWithInnerRaw=!0,this._indentInnerComments=!0}printInnerComments(e){var t=this._currentNode,r=t.innerComments;if(null!=r&&r.length){var i=this.endsWith(32),n=this._indentInnerComments,a=this._printedComments.size;n&&this.indent(),this._printComments(1,r,t,void 0,void 0,e),i&&a!==this._printedComments.size&&this.space(),n&&this.dedent()}}noIndentInnerCommentsHere(){this._indentInnerComments=!1}printSequence(e,t,r){this.printJoin(e,!0,null!=t&&t,void 0,void 0,void 0,r)}printList(e,t,r,i,n,a){this.printJoin(e,r,i,null!=n?n:S,t,a)}shouldPrintTrailingComma(e){if(!this.tokenMap)return null;var t=this.tokenMap.findLastIndex(this._currentNode,(t=>this.tokenMap.matchesOriginal(t,e)));return t<=0?null:this.tokenMap.matchesOriginal(this._tokens[t-1],",")}_printNewline(e,t){var r=this.format;if(!r.retainLines&&!r.compact)if(r.concise)this.space();else if(e){var i=t.nextNodeStartLine,n=this._lastCommentLine;if(i>0&&n>0){var a=i-n;if(a>=0)return void this.newline(a||1)}this._buf.hasContent()&&this.newline(1)}}_shouldPrintComment(e,t){if(e.ignore)return 0;if(this._printedComments.has(e))return 0;if(this._noLineTerminator&&y.test(e.value))return 2;if(t&&this.tokenMap){var r=this.tokenMap.find(this._currentNode,(t=>t.value===e.value));if(r&&r.start>t.start)return 2}return this._printedComments.add(e),this.format.shouldPrintComment(e.value)?1:0}_printComment(e,t){var r=this._noLineTerminator,i="CommentBlock"===e.type,n=i&&1!==t&&!this._noLineTerminator;n&&this._buf.hasContent()&&2!==t&&this.newline(1);var a,s=this.getLastChar();if(91!==s&&123!==s&&40!==s&&this.space(),i){if(a="/*".concat(e.value,"*/"),this.format.indent.adjustMultilineComment){var o,l=null==(o=e.loc)?void 0:o.start.column;if(l){var p=new RegExp("\\n\\s{1,"+l+"}","g");a=a.replace(p,"\n")}if(this.format.concise)a=a.replace(/\n(?!$)/g,"\n");else{var c=this.format.retainLines?0:this._buf.getCurrentColumn();(this._shouldIndent(47)||this.format.retainLines)&&(c+=this._getIndent()),a=a.replace(/\n(?!$)/g,"\n".concat(" ".repeat(c)))}}}else a=r?"/*".concat(e.value,"*/"):"//".concat(e.value);if(this._endsWithDiv&&this._space(),this.tokenMap){var{_printSemicolonBeforeNextToken:u,_printSemicolonBeforeNextNode:h}=this;this._printSemicolonBeforeNextToken=-1,this._printSemicolonBeforeNextNode=-1,this.source("start",e.loc),this._append(a,i),this._printSemicolonBeforeNextNode=h,this._printSemicolonBeforeNextToken=u}else this.source("start",e.loc),this._append(a,i);i||r||this.newline(1,!0),n&&3!==t&&this.newline(1)}_printComments(e,t,r,i){for(var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,a=arguments.length>5?arguments[5]:void 0,s=r.loc,o=t.length,d=!!s,f=d?s.start.line:0,y=d?s.end.line:0,v=0,T=0,g=this._noLineTerminator?function(){}:this.newline.bind(this),S=0;S<o;S++){var x=t[S],b=this._shouldPrintComment(x,a);if(2===b){d=!1;break}if(d&&x.loc&&1===b){var P=x.loc.start.line,E=x.loc.end.line;if(0===e){var A=0;0===S?!this._buf.hasContent()||"CommentLine"!==x.type&&P===E||(A=T=1):A=P-v,v=E,g(A),this._printComment(x,1),S+1===o&&(g(Math.max(f-v,T)),v=f)}else if(1===e){var C=P-(0===S?f:v);v=E,g(C),this._printComment(x,1),S+1===o&&(g(Math.min(1,y-v)),v=y)}else{var w=P-(0===S?y-n:v);v=E,g(w),this._printComment(x,1)}}else{if(d=!1,1!==b)continue;if(1===o){var I=x.loc?x.loc.start.line===x.loc.end.line:!m.test(x.value),N=I&&!p(r)&&!c(i)&&!u(i)&&!h(r);0===e?this._printComment(x,N&&"ObjectExpression"!==r.type||I&&l(i,{body:r})?1:0):N&&2===e?this._printComment(x,1):this._printComment(x,0)}else 1!==e||"ObjectExpression"===r.type&&r.properties.length>1||"ClassBody"===r.type||"TSInterfaceBody"===r.type?this._printComment(x,0):this._printComment(x,0===S?2:S===o-1?3:0)}}2===e&&d&&v&&(this._lastCommentLine=v)}}function S(e,t){this.token(",",!1,e),t||this.space()}return Object.assign(g.prototype,a),(0,s.addDeprecatedGenerators)(g),ha.default=g,ha}function ps(){if(ss)return yn;ss=1,Object.defineProperty(yn,"__esModule",{value:!0}),yn.default=void 0,yn.generate=i;var e=function(){if(oa)return vn;oa=1,Object.defineProperty(vn,"__esModule",{value:!0}),vn.default=void 0;var e=pa,t=ca;return vn.default=class{constructor(r,i){var n;this._map=void 0,this._rawMappings=void 0,this._sourceFileName=void 0,this._lastGenLine=0,this._lastSourceLine=0,this._lastSourceColumn=0,this._inputMap=null;var a=this._map=new e.GenMapping({sourceRoot:r.sourceRoot});if(this._sourceFileName=null==(n=r.sourceFileName)?void 0:n.replace(/\\/g,"/"),this._rawMappings=void 0,r.inputSourceMap){this._inputMap=new t.TraceMap(r.inputSourceMap);var s=this._inputMap.resolvedSources;if(s.length)for(var o=0;o<s.length;o++){var l;(0,e.setSourceContent)(a,s[o],null==(l=this._inputMap.sourcesContent)?void 0:l[o])}}if("string"!=typeof i||r.inputSourceMap){if("object"==typeof i)for(var p of Object.keys(i))(0,e.setSourceContent)(a,p.replace(/\\/g,"/"),i[p])}else(0,e.setSourceContent)(a,this._sourceFileName,i)}get(){return(0,e.toEncodedMap)(this._map)}getDecoded(){return(0,e.toDecodedMap)(this._map)}getRawMappings(){return this._rawMappings||(this._rawMappings=(0,e.allMappings)(this._map))}mark(r,i,n,a,s,o){var l,p;if(this._rawMappings=void 0,null!=i)if(this._inputMap){if(!(p=(0,t.originalPositionFor)(this._inputMap,{line:i,column:n})).name&&s){var c=(0,t.originalPositionFor)(this._inputMap,s);c.name&&(a=c.name)}}else p={name:null,source:(null==o?void 0:o.replace(/\\/g,"/"))||this._sourceFileName,line:i,column:n};(0,e.maybeAddMapping)(this._map,{name:a,generated:r,source:null==(l=p)?void 0:l.source,original:p})}},vn}(),t=ls();function r(e,t,r){if(t.experimental_preserveFormat){if("string"!=typeof e)throw new Error("`experimental_preserveFormat` requires the original `code` to be passed to @babel/generator as a string");if(!t.retainLines)throw new Error("`experimental_preserveFormat` requires `retainLines` to be set to `true`");if(t.compact&&"auto"!==t.compact)throw new Error("`experimental_preserveFormat` is not compatible with the `compact` option");if(t.minified)throw new Error("`experimental_preserveFormat` is not compatible with the `minified` option");if(t.jsescOption)throw new Error("`experimental_preserveFormat` is not compatible with the `jsescOption` option");if(!Array.isArray(r.tokens))throw new Error("`experimental_preserveFormat` requires the AST to have attached the token of the input code. Make sure to enable the `tokens: true` parser option.")}var i,n={auxiliaryCommentBefore:t.auxiliaryCommentBefore,auxiliaryCommentAfter:t.auxiliaryCommentAfter,shouldPrintComment:t.shouldPrintComment,preserveFormat:t.experimental_preserveFormat,retainLines:t.retainLines,retainFunctionParens:t.retainFunctionParens,comments:null==t.comments||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};n.decoratorsBeforeExport=t.decoratorsBeforeExport,n.jsescOption.json=t.jsonCompatibleStrings,n.recordAndTupleSyntaxType=null!=(i=t.recordAndTupleSyntaxType)?i:"hash",n.minified?(n.compact=!0,n.shouldPrintComment=n.shouldPrintComment||(()=>n.comments)):n.shouldPrintComment=n.shouldPrintComment||(e=>n.comments||e.includes("@license")||e.includes("@preserve")),"auto"===n.compact&&(n.compact="string"==typeof e&&e.length>5e5,n.compact),(n.compact||n.preserveFormat)&&(n.indent.adjustMultilineComment=!1);var{auxiliaryCommentBefore:a,auxiliaryCommentAfter:s,shouldPrintComment:o}=n;return a&&!o(a)&&(n.auxiliaryCommentBefore=void 0),s&&!o(s)&&(n.auxiliaryCommentAfter=void 0),n}function i(i){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=arguments.length>2?arguments[2]:void 0,s=r(a,n,i),o=n.sourceMaps?new e.default(n,a):null;return new t.default(s,o,i.tokens,"string"==typeof a?a:null).generate(i)}return yn.CodeGenerator=class{constructor(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;this._ast=void 0,this._format=void 0,this._map=void 0,this._ast=t,this._format=r(n,i,t),this._map=i.sourceMaps?new e.default(i,n):null}generate(){return new t.default(this._format,this._map).generate(this._ast)}},yn.default=i,yn}var cs,us={};var hs,ds,fs,ms,ys={},vs={},Ts={},gs={};function Ss(){if(hs)return gs;hs=1,Object.defineProperty(gs,"__esModule",{value:!0}),gs.createUnionType=function(e){if(e.every((e=>n(e))))return t?t(e):i(e);if(e.every((e=>a(e)))&&r)return r(e)};var e=Oi(),{createFlowUnionType:t,createTSUnionType:r,createUnionTypeAnnotation:i,isFlowType:n,isTSType:a}=e;return gs}function xs(){if(ds)return Ts;ds=1,Object.defineProperty(Ts,"__esModule",{value:!0}),Ts.default=function(e){if(!this.isReferenced())return;var r=this.scope.getBinding(e.name);if(r)return r.identifier.typeAnnotation?r.identifier.typeAnnotation:function(e,r,i){var n=[],a=[],o=s(e,r,a),p=l(e,r,i);if(p){var c=s(e,p.ifStatement);o=o.filter((e=>!c.includes(e))),n.push(p.typeAnnotation)}if(o.length)for(var u of(o.push(...a),o))n.push(u.getTypeAnnotation());if(!n.length)return;return(0,t.createUnionType)(n)}(r,this,e.name);if("undefined"===e.name)return a();if("NaN"===e.name||"Infinity"===e.name)return n();e.name};var e=Oi(),t=Ss(),{BOOLEAN_NUMBER_BINARY_OPERATORS:r,createTypeAnnotationBasedOnTypeof:i,numberTypeAnnotation:n,voidTypeAnnotation:a}=e;function s(e,t,r){var i=e.constantViolations.slice();return i.unshift(e.path),i.filter((e=>{var i=(e=e.resolve())._guessExecutionStatusRelativeTo(t);return r&&"unknown"===i&&r.push(e),"before"===i}))}function o(e,t){var a,s,o,l=t.node.operator,p=t.get("right").resolve(),c=t.get("left").resolve();if(c.isIdentifier({name:e})?a=p:p.isIdentifier({name:e})&&(a=c),a)return"==="===l?a.getTypeAnnotation():r.includes(l)?n():void 0;if(("==="===l||"=="===l)&&(c.isUnaryExpression({operator:"typeof"})?(s=c,o=p):p.isUnaryExpression({operator:"typeof"})&&(s=p,o=c),s&&s.get("argument").isIdentifier({name:e})&&(o=o.resolve()).isLiteral())){var u=o.node.value;if("string"==typeof u)return i(u)}}function l(e,r,i){var n=function(e,t,r){for(var i;i=t.parentPath;){if(i.isIfStatement()||i.isConditionalExpression()){if("test"===t.key)return;return i}if(i.isFunction()&&(null==r||i.parentPath.scope.getBinding(r)!==e))return;t=i}}(e,r,i);if(n){for(var a=[n.get("test")],s=[],p=0;p<a.length;p++){var c=a[p];if(c.isLogicalExpression())"&&"===c.node.operator&&(a.push(c.get("left")),a.push(c.get("right")));else if(c.isBinaryExpression()){var u=o(i,c);u&&s.push(u)}}return s.length?{typeAnnotation:(0,t.createUnionType)(s),ifStatement:n}:l(e,n,i)}}return Ts}function bs(){return fs||(fs=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ArrayExpression=E,e.AssignmentExpression=function(){return this.get("right").getTypeAnnotation()},e.BinaryExpression=function(e){var t=e.operator;if(s.includes(t))return y();if(n.includes(t))return u();if("+"===t){var r=this.get("right"),i=this.get("left");return i.isBaseType("number")&&r.isBaseType("number")?y():i.isBaseType("string")||r.isBaseType("string")?v():g([v(),y()])}},e.BooleanLiteral=function(){return u()},e.CallExpression=function(){var{callee:e}=this.node;if(w(e))return c(v());if(C(e)||I(e)||x(e,{name:"Array"}))return c(p());if(N(e))return c(T([v(),p()]));return k(this.get("callee"))},e.ConditionalExpression=function(){var e=[this.get("consequent").getTypeAnnotation(),this.get("alternate").getTypeAnnotation()];return(0,i.createUnionType)(e)},e.ClassDeclaration=e.ClassExpression=e.FunctionDeclaration=e.ArrowFunctionExpression=e.FunctionExpression=function(){return d(f("Function"))},Object.defineProperty(e,"Identifier",{enumerable:!0,get:function(){return r.default}}),e.LogicalExpression=function(){var e=[this.get("left").getTypeAnnotation(),this.get("right").getTypeAnnotation()];return(0,i.createUnionType)(e)},e.NewExpression=function(e){if("Identifier"===e.callee.type)return d(e.callee)},e.NullLiteral=function(){return m()},e.NumericLiteral=function(){return y()},e.ObjectExpression=function(){return d(f("Object"))},e.ParenthesizedExpression=function(){return this.get("expression").getTypeAnnotation()},e.RegExpLiteral=function(){return d(f("RegExp"))},e.RestElement=A,e.SequenceExpression=function(){return this.get("expressions").pop().getTypeAnnotation()},e.StringLiteral=function(){return v()},e.TSAsExpression=P,e.TSNonNullExpression=function(){return this.get("expression").getTypeAnnotation()},e.TaggedTemplateExpression=function(){return k(this.get("tag"))},e.TemplateLiteral=function(){return v()},e.TypeCastExpression=b,e.UnaryExpression=function(e){var t=e.operator;if("void"===t)return S();if(o.includes(t))return y();if(l.includes(t))return v();if(a.includes(t))return u()},e.UpdateExpression=function(e){var t=e.operator;if("++"===t||"--"===t)return y()},e.VariableDeclarator=function(){if(!this.get("id").isIdentifier())return;return this.get("init").getTypeAnnotation()};var t=Oi(),r=xs(),i=Ss(),{BOOLEAN_BINARY_OPERATORS:n,BOOLEAN_UNARY_OPERATORS:a,NUMBER_BINARY_OPERATORS:s,NUMBER_UNARY_OPERATORS:o,STRING_UNARY_OPERATORS:l,anyTypeAnnotation:p,arrayTypeAnnotation:c,booleanTypeAnnotation:u,buildMatchMemberExpression:h,genericTypeAnnotation:d,identifier:f,nullLiteralTypeAnnotation:m,numberTypeAnnotation:y,stringTypeAnnotation:v,tupleTypeAnnotation:T,unionTypeAnnotation:g,voidTypeAnnotation:S,isIdentifier:x}=t;function b(e){return e.typeAnnotation}function P(e){return e.typeAnnotation}function E(){return d(f("Array"))}function A(){return E()}b.validParent=!0,P.validParent=!0,A.validParent=!0;var C=h("Array.from"),w=h("Object.keys"),I=h("Object.values"),N=h("Object.entries");function k(e){if((e=e.resolve()).isFunction()){var{node:t}=e;if(t.async)return t.generator?d(f("AsyncIterator")):d(f("Promise"));if(t.generator)return d(f("Iterator"));if(e.node.returnType)return e.node.returnType}}}(vs)),vs}var Ps,Es={},As={},Cs={exports:{}};function ws(){if(Ps)return Cs.exports;Ps=1;var e=String,t=function(){return{isColorSupported:!1,reset:e,bold:e,dim:e,italic:e,underline:e,inverse:e,hidden:e,strikethrough:e,black:e,red:e,green:e,yellow:e,blue:e,magenta:e,cyan:e,white:e,gray:e,bgBlack:e,bgRed:e,bgGreen:e,bgYellow:e,bgBlue:e,bgMagenta:e,bgCyan:e,bgWhite:e,blackBright:e,redBright:e,greenBright:e,yellowBright:e,blueBright:e,magentaBright:e,cyanBright:e,whiteBright:e,bgBlackBright:e,bgRedBright:e,bgGreenBright:e,bgYellowBright:e,bgBlueBright:e,bgMagentaBright:e,bgCyanBright:e,bgWhiteBright:e}};return Cs.exports=t(),Cs.exports.createColors=t,Cs.exports}var Is,Ns,ks={};function Os(){return Is||(Is=1,Object.defineProperty(ks,"__esModule",{value:!0}),ks.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,ks.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}),ks}function Ds(){if(Ns)return As;Ns=1,Object.defineProperty(As,"__esModule",{value:!0});var e=ws(),t=Os(),r=Se();var i=(e,t)=>r=>e(t(r));function n(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:i(i(e.white,e.bgRed),e.bold),gutter:e.gray,marker:i(e.red,e.bold),message:i(e.red,e.bold),reset:e.reset}}var a=n(e.createColors(!0)),s=n(e.createColors(!1));function o(e){return e?a:s}var l,p=new Set(["as","async","from","get","of","set"]),c=/\r\n|[\n\r\u2028\u2029]/,u=/^[()[\]{}]$/,h=/^[a-z][\w-]*$/i,d=function(e,t,i){if("name"===e.type){if(r.isKeyword(e.value)||r.isStrictReservedWord(e.value,!0)||p.has(e.value))return"keyword";if(h.test(e.value)&&("<"===i[t-1]||"</"===i.slice(t-2,t)))return"jsxIdentifier";if(e.value[0]!==e.value[0].toLowerCase())return"capitalized"}return"punctuator"===e.type&&u.test(e.value)?"bracket":"invalid"!==e.type||"@"!==e.value&&"#"!==e.value?e.type:"punctuator"};function f(e){if(""===e)return"";var t=o(!0),r="",i=function(e){r+=e in t?a.split(c).map((r=>t[e](r))).join("\n"):a};for(var{type:n,value:a}of l(e))i(n);return r}l=function*(e){for(var r;r=t.default.exec(e);){var i=t.matchToToken(r);yield{type:d(i,r.index,e),value:i.value}}};var m=!1,y=/\r\n|[\n\r\u2028\u2029]/;function v(t,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=i.forceColor||("object"!=typeof A||"0"!==A.env.FORCE_COLOR&&"false"!==A.env.FORCE_COLOR)&&e.isColorSupported&&i.highlightCode,a=o(n),s=t.split(y),{start:l,end:p,markerLines:c}=function(e,t,r){var i=Object.assign({column:0,line:-1},e.start),n=Object.assign({},i,e.end),{linesAbove:a=2,linesBelow:s=3}=r||{},o=i.line,l=i.column,p=n.line,c=n.column,u=Math.max(o-(a+1),0),h=Math.min(t.length,p+s);-1===o&&(u=0),-1===p&&(h=t.length);var d=p-o,f={};if(d)for(var m=0;m<=d;m++){var y=m+o;if(l)if(0===m){var v=t[y-1].length;f[y]=[l,v-l+1]}else if(m===d)f[y]=[0,c];else{var T=t[y-m].length;f[y]=[0,T]}else f[y]=!0}else f[o]=l===c?!l||[l,0]:[l,c-l];return{start:u,end:h,markerLines:f}}(r,s,i),u=r.start&&"number"==typeof r.start.column,h=String(p).length,d=(n?f(t):t).split(y,p).slice(l,p).map(((e,t)=>{var r=l+1+t,n=" ".concat(r).slice(-h),s=" ".concat(n," |"),o=c[r],p=!c[r+1];if(o){var u="";if(Array.isArray(o)){var d=e.slice(0,Math.max(o[0]-1,0)).replace(/[^\t]/g," "),f=o[1]||1;u=["\n ",a.gutter(s.replace(/\d/g," "))," ",d,a.marker("^").repeat(f)].join(""),p&&i.message&&(u+=" "+a.message(i.message))}return[a.marker(">"),a.gutter(s),e.length>0?" ".concat(e):"",u].join("")}return" ".concat(a.gutter(s)).concat(e.length>0?" ".concat(e):"")})).join("\n");return i.message&&!u&&(d="".concat(" ".repeat(h+1)).concat(i.message,"\n").concat(d)),n?a.reset(d):d}return As.codeFrameColumns=v,As.default=function(e,t,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(!m){m=!0;var n="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";if(A.emitWarning)A.emitWarning(n,"DeprecationWarning");else new Error(n).name="DeprecationWarning"}return v(e,{start:{column:r=Math.max(r,0),line:t}},i)},As.highlight=f,As}var _s,Ls,Ms={},Fs={},Bs={};function js(){if(Ls)return Fs;Ls=1,Object.defineProperty(Fs,"__esModule",{value:!0}),Fs._assertUnremoved=u,Fs._callRemovalHooks=l,Fs._markRemoved=c,Fs._remove=p,Fs._removeFromScope=o,Fs.remove=function(){var e;if(u.call(this),s.resync.call(this),l.call(this))return void c.call(this);null!=(e=this.opts)&&e.noScope||o.call(this);this.shareCommentsWithSiblings(),p.call(this),c.call(this)};var e=(_s||(_s=1,Object.defineProperty(Bs,"__esModule",{value:!0}),Bs.hooks=void 0,Bs.hooks=[function(e,t){if("test"===e.key&&(t.isWhile()||t.isSwitchCase())||"declaration"===e.key&&t.isExportDeclaration()||"body"===e.key&&t.isLabeledStatement()||"declarations"===e.listKey&&t.isVariableDeclaration()&&1===t.node.declarations.length||"expression"===e.key&&t.isExpressionStatement())return t.remove(),!0},function(e,t){if(t.isSequenceExpression()&&1===t.node.expressions.length)return t.replaceWith(t.node.expressions[0]),!0},function(e,t){if(t.isBinary())return"left"===e.key?t.replaceWith(t.node.right):t.replaceWith(t.node.left),!0},function(e,t){if(t.isIfStatement()&&"consequent"===e.key||"body"===e.key&&(t.isLoop()||t.isArrowFunctionExpression()))return e.replaceWith({type:"BlockStatement",directives:[],body:[]}),!0}]),Bs),t=cn(),r=Ws(),i=_o(),n=Oi(),a=qs(),s=Mo();function o(){var e=n.getBindingIdentifiers(this.node,!1,!1,!0);Object.keys(e).forEach((e=>this.scope.removeBinding(e)))}function l(){if(this.parentPath)for(var t of e.hooks)if(t(this,this.parentPath))return!0}function p(){Array.isArray(this.container)?(this.container.splice(this.key,1),a.updateSiblingKeys.call(this,this.key,-1)):r._replaceWith.call(this,null)}function c(){var e;(this._traverseFlags|=i.SHOULD_SKIP|i.REMOVED,this.parent)&&(null==(e=(0,t.getCachedPaths)(this))||e.delete(this.node));this.node=null}function u(){if(this.removed)throw this.buildCodeFrameError("NodePath has been removed so is read-only.")}return Fs}var Rs,Us,Ks,Vs={};function qs(){if(Us)return Ms;Us=1,Object.defineProperty(Ms,"__esModule",{value:!0}),Ms._containerInsert=x,Ms._containerInsertAfter=P,Ms._containerInsertBefore=b,Ms._verifyNodeList=w,Ms.insertAfter=function(e){if(i._assertUnremoved.call(this),this.isSequenceExpression())return E(this.get("expressions")).insertAfter(e);var t=w.call(this,e),{parentPath:r,parent:n}=this;if(r.isExpressionStatement()||r.isLabeledStatement()||m(n)||r.isExportDefaultDeclaration()&&this.isDeclaration())return r.insertAfter(t.map((e=>y(e)?h(e):e)));if(this.isNodeType("Expression")&&!this.isJSXElement()&&!r.isJSXElement()||r.isForStatement()&&"init"===this.key){var a=this;if(a.node){var T=a.node,{scope:x}=this;if(x.path.isPattern())return o(T),a.replaceWith(c(s([],T),[])),a.get("callee.body").insertAfter(t),[a];if(A(a))t.unshift(T);else if(f(T)&&g(T.callee))t.unshift(T),t.push(S());else if(function(e,t){if(!d(e)||!v(e.left))return!1;var r=t.getBlockParent();return r.hasOwnBinding(e.left.name)&&r.getOwnBinding(e.left.name).constantViolations.length<=1}(T,x))t.unshift(T),t.push(u(T.left));else if(x.isPure(T,!0))t.push(T);else{r.isMethod({computed:!0,key:T})&&(x=x.parent);var b=x.generateDeclaredUidIdentifier();t.unshift(h(l("=",u(b),T))),t.push(h(u(b)))}}return this.replaceExpressionWithStatements(t)}if(Array.isArray(this.container))return P.call(this,t);if(this.isStatementOrBlock()){var C=this.node,I=C&&(!this.isExpressionStatement()||null!=C.expression),[N]=this.replaceWith(p(I?[C]:[]));return N.pushContainer("body",t)}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?")},Ms.insertBefore=function(e){i._assertUnremoved.call(this);var t=w.call(this,e),{parentPath:r,parent:n}=this;if(r.isExpressionStatement()||r.isLabeledStatement()||m(n)||r.isExportDefaultDeclaration()&&this.isDeclaration())return r.insertBefore(t);if(this.isNodeType("Expression")&&!this.isJSXElement()||r.isForStatement()&&"init"===this.key)return this.node&&t.push(this.node),this.replaceExpressionWithStatements(t);if(Array.isArray(this.container))return b.call(this,t);if(this.isStatementOrBlock()){var a=this.node,s=a&&(!this.isExpressionStatement()||null!=a.expression),[o]=this.replaceWith(p(s?[a]:[]));return o.unshiftContainer("body",t)}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?")},Ms.pushContainer=function(e,r){i._assertUnremoved.call(this);var n=w.call(this,r),a=this.node[e],s=t.default.get({parentPath:this,parent:this.node,container:a,listKey:e,key:a.length}).setContext(this.context);return s.replaceWithMultiple(n)},Ms.unshiftContainer=function(e,r){i._assertUnremoved.call(this);var n=w.call(this,r),a=this.node[e],s=t.default.get({parentPath:this,parent:this.node,container:a,listKey:e,key:0}).setContext(this.context);return b.call(s,n)},Ms.updateSiblingKeys=C;var e=cn(),t=_o(),r=Mo(),i=js(),n=Oi(),a=function(){if(Rs)return Vs;Rs=1,Object.defineProperty(Vs,"__esModule",{value:!0}),Vs.default=void 0;var e=Oi(),t=e,{react:r}=e,{cloneNode:i,jsxExpressionContainer:n,variableDeclaration:a,variableDeclarator:s}=t,o={ReferencedIdentifier(e,t){if(!e.isJSXIdentifier()||!r.isCompatTag(e.node.name)||e.parentPath.isJSXMemberExpression()){if("this"===e.node.name){var i=e.scope;do{if(i.path.isFunction()&&!i.path.isArrowFunctionExpression())break}while(i=i.parent);i&&t.breakOnScopePaths.push(i.path)}var n=e.scope.getBinding(e.node.name);if(n){for(var a of n.constantViolations)if(a.scope!==n.path.scope)return t.mutableBinding=!0,void e.stop();n===t.scope.getBinding(e.node.name)&&(t.bindings[e.node.name]=n)}}}};return Vs.default=class{constructor(e,t){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=t,this.path=e,this.attachAfter=!1}isCompatibleScope(e){for(var t of Object.keys(this.bindings)){var r=this.bindings[t];if(!e.bindingIdentifierEquals(t,r.identifier))return!1}return!0}getCompatibleScopes(){var e=this.path.scope;do{if(!this.isCompatibleScope(e))break;if(this.scopes.push(e),this.breakOnScopePaths.includes(e.path))break}while(e=e.parent)}getAttachmentPath(){var e=this._getAttachmentPath();if(e){var t=e.scope;if(t.path===e&&(t=e.scope.parent),t.path.isProgram()||t.path.isFunction())for(var r of Object.keys(this.bindings))if(t.hasOwnBinding(r)){var i=this.bindings[r];if("param"!==i.kind&&"params"!==i.path.parentKey&&this.getAttachmentParentForPath(i.path).key>=e.key)for(var n of(this.attachAfter=!0,e=i.path,i.constantViolations))this.getAttachmentParentForPath(n).key>e.key&&(e=n)}return e}}_getAttachmentPath(){var e=this.scopes.pop();if(e)if(e.path.isFunction()){if(!this.hasOwnParamBindings(e))return this.getNextScopeAttachmentParent();if(this.scope===e)return;for(var t=e.path.get("body").get("body"),r=0;r<t.length;r++)if(!t[r].node._blockHoist)return t[r]}else if(e.path.isProgram())return this.getNextScopeAttachmentParent()}getNextScopeAttachmentParent(){var e=this.scopes.pop();if(e)return this.getAttachmentParentForPath(e.path)}getAttachmentParentForPath(e){do{if(!e.parentPath||Array.isArray(e.container)&&e.isStatement())return e}while(e=e.parentPath);return e}hasOwnParamBindings(e){for(var t of Object.keys(this.bindings))if(e.hasOwnBinding(t)){var r=this.bindings[t];if("param"===r.kind&&r.constant)return!0}return!1}run(){if(this.path.traverse(o,this),!this.mutableBinding){this.getCompatibleScopes();var e=this.getAttachmentPath();if(e&&e.getFunctionParent()!==this.path.getFunctionParent()){var t=e.scope.generateUidIdentifier("ref"),r=s(t,this.path.node),l=this.attachAfter?"insertAfter":"insertBefore",[p]=e[l]([e.isVariableDeclarator()?r:a("var",[r])]),c=this.path.parentPath;return c.isJSXElement()&&this.path.container===c.node.children&&(t=n(t)),this.path.replaceWith(i(t)),p.isVariableDeclarator()?p.get("init"):p.get("declarations.0.init")}}}},Vs}(),{arrowFunctionExpression:s,assertExpression:o,assignmentExpression:l,blockStatement:p,callExpression:c,cloneNode:u,expressionStatement:h,isAssignmentExpression:d,isCallExpression:f,isExportNamedDeclaration:m,isExpression:y,isIdentifier:v,isSequenceExpression:T,isSuper:g,thisExpression:S}=n;function x(e,t){C.call(this,e,t.length);var i=[];this.container.splice(e,0,...t);for(var n=0;n<t.length;n++){var a,s=e+n,o=this.getSibling(s);i.push(o),null!=(a=this.context)&&a.queue&&r.pushContext.call(o,this.context)}var l=r._getQueueContexts.call(this);for(var p of i)for(var c of(r.setScope.call(p),p.debug("Inserted."),l))c.maybeQueue(p,!0);return i}function b(e){return x.call(this,this.key,e)}function P(e){return x.call(this,this.key+1,e)}var E=e=>e[e.length-1];function A(e){return T(e.parent)&&(E(e.parent.expressions)!==e.node||A(e.parentPath))}function C(t,r){if(this.parent){var i=(0,e.getCachedPaths)(this);if(i)for(var[,n]of i)"number"==typeof n.key&&n.container===this.container&&n.key>=t&&(n.key+=r)}}function w(e){if(!e)return[];Array.isArray(e)||(e=[e]);for(var r=0;r<e.length;r++){var i=e[r],n=void 0;if(i?"object"!=typeof i?n="contains a non-object node":i.type?i instanceof t.default&&(n="has a NodePath when it expected a raw object"):n="without a type":n="has falsy node",n){var a=Array.isArray(i)?"array":typeof i;throw new Error("Node list ".concat(n," with the index of ").concat(r," and type of ").concat(a))}}return e}return Ms.hoist=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.scope;return new a.default(this,e).run()},Ms}function Ws(){if(Ks)return Es;Ks=1,Object.defineProperty(Es,"__esModule",{value:!0}),Es._replaceWith=B,Es.replaceExpressionWithStatements=function(e){o.resync.call(this);var r=[],i=j(e,r);if(i){for(var n of r)this.scope.push({id:n});return this.replaceWith(i)[0].get("expressions")}var a=this.getFunctionParent(),s=null==a?void 0:a.node.async,d=null==a?void 0:a.node.generator,y=p([],h(e));this.replaceWith(f(y,[]));var v=this.get("callee");v.get("body").scope.hoistVariables((e=>this.scope.push({id:e})));var T=v.getCompletionRecords();for(var S of T)if(S.isExpressionStatement()){var x=S.findParent((e=>e.isLoop()));if(x){var b=x.getData("expressionReplacementReturnUid");b?b=g(b.name):(b=v.scope.generateDeclaredUidIdentifier("ret"),v.get("body").pushContainer("body",_(m(b))),x.setData("expressionReplacementReturnUid",b)),S.get("expression").replaceWith(c("=",m(b),S.node.expression))}else S.replaceWith(_(S.node.expression))}v.arrowFunctionToExpression();var P=v,E=s&&t.default.hasType(this.get("callee.body").node,"AwaitExpression",l),A=d&&t.default.hasType(this.get("callee.body").node,"YieldExpression",l);E&&(P.set("async",!0),A||this.replaceWith(u(this.node)));A&&(P.set("generator",!0),this.replaceWith(F(this.node,!0)));return P.get("body.body")},Es.replaceInline=function(e){if(o.resync.call(this),Array.isArray(e)){if(Array.isArray(this.container)){e=n._verifyNodeList.call(this,e);var t=n._containerInsertAfter.call(this,e);return this.remove(),t}return this.replaceWithMultiple(e)}return this.replaceWith(e)},Es.replaceWith=function(e){if(o.resync.call(this),this.removed)throw new Error("You can't replace this node, we've already removed it");var t=e instanceof r.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()&&!N(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("string"==typeof t)throw new Error("Don't use `path.replaceWith()` with a source string, use `path.replaceWithSourceString()`");var i="";this.isNodeType("Statement")&&A(t)&&(this.canHaveVariableDeclarationOrExpression()||this.canSwapBetweenExpressionAndStatement(t)||this.parentPath.isExportDefaultDeclaration()||(t=v(t),i="expression"));if(this.isNodeType("Expression")&&k(t)&&!this.canHaveVariableDeclarationOrExpression()&&!this.canSwapBetweenExpressionAndStatement(t))return this.replaceExpressionWithStatements([t]);var n=this.node;n&&(b(t,n),D(n));return B.call(this,t),this.type=t.type,o.setScope.call(this),this.requeue(),[i?this.get(i):this]},Es.replaceWithMultiple=function(e){var t;o.resync.call(this);var r=n._verifyNodeList.call(this,e);S(r[0],this.node),x(r[r.length-1],this.node),null==(t=(0,i.getCachedPaths)(this))||t.delete(this.node),this.node=this.container[this.key]=null;var a=this.insertAfter(e);this.node?this.requeue():this.remove();return a},Es.replaceWithSourceString=function(r){var i;o.resync.call(this);try{r="(".concat(r,")"),i=(0,a.parse)(r)}catch(t){var n=t.loc;throw n&&(t.message+=" - make sure this is an expression.\n"+(0,e.codeFrameColumns)(r,{start:{line:n.line,column:n.column+1}}),t.code="BABEL_REPLACE_SOURCE_ERROR"),t}var s=i.program.body[0].expression;return t.default.removeProperties(s),this.replaceWith(s)};var e=Ds(),t=Ro(),r=_o(),i=cn(),n=qs(),a=w(),s=Oi(),o=Mo(),{FUNCTION_TYPES:l,arrowFunctionExpression:p,assignmentExpression:c,awaitExpression:u,blockStatement:h,buildUndefinedNode:d,callExpression:f,cloneNode:m,conditionalExpression:y,expressionStatement:v,getBindingIdentifiers:T,identifier:g,inheritLeadingComments:S,inheritTrailingComments:x,inheritsComments:b,isBlockStatement:P,isEmptyStatement:E,isExpression:A,isExpressionStatement:C,isIfStatement:I,isProgram:N,isStatement:k,isVariableDeclaration:O,removeComments:D,returnStatement:_,sequenceExpression:L,validate:M,yieldExpression:F}=s;function B(e){var t;if(!this.container)throw new ReferenceError("Container is falsy");this.inList?M(this.parent,this.key,[e]):M(this.parent,this.key,e),this.debug("Replace with ".concat(null==e?void 0:e.type)),null==(t=(0,i.getCachedPaths)(this))||t.set(e,this).delete(this.node),this.node=e,this.container[this.key]=e}function j(e,t){var r=[],i=!0;for(var n of e)if(E(n)||(i=!1),A(n))r.push(n);else if(C(n))r.push(n.expression);else if(O(n)){if("var"!==n.kind)return;for(var a of n.declarations){var s=T(a);for(var o of Object.keys(s))t.push(m(s[o]));a.init&&r.push(c("=",a.id,a.init))}i=!0}else if(I(n)){var l=n.consequent?j([n.consequent],t):d(),p=n.alternate?j([n.alternate],t):d();if(!l||!p)return;r.push(y(n.test,l,p))}else if(P(n)){var u=j(n.body,t);if(!u)return;r.push(u)}else{if(!E(n))return;0===e.indexOf(n)&&(i=!0)}return i&&r.push(d()),1===r.length?r[0]:L(r)}return Es}var Ys,Js={};function Xs(){if(Ys)return Js;Ys=1,Object.defineProperty(Js,"__esModule",{value:!0}),Js.evaluate=function(){var e={confident:!0,deoptPath:null,seen:new Map},t=s(this,e);e.confident||(t=void 0);return{confident:e.confident,deopt:e.deoptPath,value:t}},Js.evaluateTruthy=function(){var e=this.evaluate();if(e.confident)return!!e.value};var e=["Number","String","Math"],t=["isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent",null,null],r=["random"];function i(t){return e.includes(t)}function n(e,t){t.confident&&(t.deoptPath=e,t.confident=!1)}var a=new Map([["undefined",void 0],["Infinity",1/0],["NaN",NaN]]);function s(e,l){var{node:p}=e,{seen:c}=l;if(c.has(p)){var u=c.get(p);return u.resolved?u.value:void n(e,l)}var h={resolved:!1};c.set(p,h);var f=function(e,l){if(!l.confident)return;if(e.isSequenceExpression()){var p=e.get("expressions");return s(p[p.length-1],l)}if(e.isStringLiteral()||e.isNumericLiteral()||e.isBooleanLiteral())return e.node.value;if(e.isNullLiteral())return null;if(e.isTemplateLiteral())return o(e,e.node.quasis,l);if(e.isTaggedTemplateExpression()&&e.get("tag").isMemberExpression()){var c=e.get("tag.object"),{node:{name:u}}=c,h=e.get("tag.property");if(c.isIdentifier()&&"String"===u&&!e.scope.getBinding(u)&&h.isIdentifier()&&"raw"===h.node.name)return o(e,e.node.quasi.quasis,l,!0)}if(e.isConditionalExpression()){var f=s(e.get("test"),l);if(!l.confident)return;return s(f?e.get("consequent"):e.get("alternate"),l)}if(e.isExpressionWrapper())return s(e.get("expression"),l);if(e.isMemberExpression()&&!e.parentPath.isCallExpression({callee:e.node})){var m=e.get("property"),y=e.get("object");if(y.isLiteral()){var v=y.node.value,T=typeof v,g=null;if(e.node.computed){if(g=s(m,l),!l.confident)return}else m.isIdentifier()&&(g=m.node.name);if(!("number"!==T&&"string"!==T||null==g||"number"!=typeof g&&"string"!=typeof g))return v[g]}}if(e.isReferencedIdentifier()){var S=e.scope.getBinding(e.node.name);if(S){if(S.constantViolations.length>0||e.node.start<S.path.node.end)return void n(S.path,l);var x=S.path.scope;if("var"===S.kind&&x!==S.scope)for(var b=!x.path.parentPath.isBlockStatement(),P=x.parent;P;P=P.parent){var E;if(P===e.scope){if(b)return void n(S.path,l);break}null!=(E=P.path.parentPath)&&E.isBlockStatement()&&(b=!0)}if(S.hasValue)return S.value}var A=e.node.name;if(a.has(A))return S?void n(S.path,l):a.get(A);var C=e.resolve();if(C===e)return void n(e,l);var w=s(C,l);return"object"==typeof w&&null!==w&&S.references>1?void n(C,l):w}if(e.isUnaryExpression({prefix:!0})){if("void"===e.node.operator)return;var I=e.get("argument");if("typeof"===e.node.operator&&(I.isFunction()||I.isClass()))return"function";var N=s(I,l);if(!l.confident)return;switch(e.node.operator){case"!":return!N;case"+":return+N;case"-":return-N;case"~":return~N;case"typeof":return typeof N}}if(e.isArrayExpression()){var k=[],O=e.get("elements");for(var D of O){var _=D.evaluate();if(!_.confident)return void n(_.deopt,l);k.push(_.value)}return k}if(e.isObjectExpression()){var L={},M=e.get("properties");for(var F of M){if(F.isObjectMethod()||F.isSpreadElement())return void n(F,l);var B=F.get("key"),j=void 0;if(F.node.computed){if(!(j=B.evaluate()).confident)return void n(j.deopt,l);j=j.value}else j=B.isIdentifier()?B.node.name:B.node.value;var R=F.get("value").evaluate();if(!R.confident)return void n(R.deopt,l);R=R.value,L[j]=R}return L}if(e.isLogicalExpression()){var U=l.confident,K=s(e.get("left"),l),V=l.confident;l.confident=U;var q=s(e.get("right"),l),W=l.confident;switch(e.node.operator){case"||":if(l.confident=V&&(!!K||W),!l.confident)return;return K||q;case"&&":if(l.confident=V&&(!K||W),!l.confident)return;return K&&q;case"??":if(l.confident=V&&(null!=K||W),!l.confident)return;return null!=K?K:q}}if(e.isBinaryExpression()){var Y=s(e.get("left"),l);if(!l.confident)return;var J=s(e.get("right"),l);if(!l.confident)return;switch(e.node.operator){case"-":return Y-J;case"+":return Y+J;case"/":return Y/J;case"*":return Y*J;case"%":return Y%J;case"**":return Math.pow(Y,J);case"<":return Y<J;case">":return Y>J;case"<=":return Y<=J;case">=":return Y>=J;case"==":return Y==J;case"!=":return Y!=J;case"===":return Y===J;case"!==":return Y!==J;case"|":return Y|J;case"&":return Y&J;case"^":return Y^J;case"<<":return Y<<J;case">>":return Y>>J;case">>>":return Y>>>J}}if(e.isCallExpression()){var X,H,z=e.get("callee");if(z.isIdentifier()&&!e.scope.getBinding(z.node.name)&&(i(z.node.name)||function(e){return t.includes(e)}(z.node.name))&&(H=d[z.node.name]),z.isMemberExpression()){var G=z.get("object"),Q=z.get("property");if(G.isIdentifier()&&Q.isIdentifier()&&i(G.node.name)&&!function(e){return r.includes(e)}(Q.node.name)){X=d[G.node.name];var $=Q.node.name;hasOwnProperty.call(X,$)&&(H=X[$])}if(G.isLiteral()&&Q.isIdentifier()){var Z=typeof G.node.value;"string"!==Z&&"number"!==Z||(H=(X=G.node.value)[Q.node.name])}}if(H){var ee=e.get("arguments").map((e=>s(e,l)));if(!l.confident)return;return H.apply(X,ee)}}n(e,l)}(e,l);return l.confident&&(h.resolved=!0,h.value=f),f}function o(e,t,r){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],n="",a=0,o=e.isTemplateLiteral()?e.get("expressions"):e.get("quasi.expressions");for(var l of t){if(!r.confident)break;n+=i?l.value.raw:l.value.cooked;var p=o[a++];p&&(n+=String(s(p,r)))}if(r.confident)return n}return Js}var Hs,zs={},Gs={},Qs={};function $s(){if(Hs)return Qs;Hs=1,Object.defineProperty(Qs,"__esModule",{value:!0}),Qs.statements=Qs.statement=Qs.smart=Qs.program=Qs.expression=void 0;var e=Oi(),{assertExpressionStatement:t}=e;function r(e){return{code:e=>"/* @babel/template */;\n".concat(e),validate:()=>{},unwrap:t=>e(t.program.body.slice(1))}}Qs.smart=r((e=>e.length>1?e:e[0])),Qs.statements=r((e=>e)),Qs.statement=r((e=>{if(0===e.length)throw new Error("Found nothing to return.");if(e.length>1)throw new Error("Found multiple statements but wanted one");return e[0]}));var i=Qs.expression={code:e=>"(\n".concat(e,"\n)"),validate:e=>{if(e.program.body.length>1)throw new Error("Found multiple statements but wanted one");if(0===i.unwrap(e).start)throw new Error("Parse result included parens.")},unwrap:e=>{var{program:r}=e,[i]=r.body;return t(i),i.expression}};return Qs.program={code:e=>e,validate:()=>{},unwrap:e=>e.program},Qs}var Zs,eo={},to={};function ro(){if(Zs)return to;Zs=1,Object.defineProperty(to,"__esModule",{value:!0}),to.merge=function(e,t){var{placeholderWhitelist:r=e.placeholderWhitelist,placeholderPattern:i=e.placeholderPattern,preserveComments:n=e.preserveComments,syntacticPlaceholders:a=e.syntacticPlaceholders}=t;return{parser:Object.assign({},e.parser,t.parser),placeholderWhitelist:r,placeholderPattern:i,preserveComments:n,syntacticPlaceholders:a}},to.normalizeReplacements=function(e){if(Array.isArray(e))return e.reduce(((e,t,r)=>(e["$"+r]=t,e)),{});if("object"==typeof e||null==e)return e||void 0;throw new Error("Template replacements must be an array, object, null, or undefined")},to.validate=function(t){if(null!=t&&"object"!=typeof t)throw new Error("Unknown template options.");var r=t||{},{placeholderWhitelist:i,placeholderPattern:n,preserveComments:a,syntacticPlaceholders:s}=r,o=function(e,t){if(null==e)return{};var r={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(-1!==t.indexOf(i))continue;r[i]=e[i]}return r}(r,e);if(null!=i&&!(i instanceof Set))throw new Error("'.placeholderWhitelist' must be a Set, null, or undefined");if(null!=n&&!(n instanceof RegExp)&&!1!==n)throw new Error("'.placeholderPattern' must be a RegExp, false, null, or undefined");if(null!=a&&"boolean"!=typeof a)throw new Error("'.preserveComments' must be a boolean, null, or undefined");if(null!=s&&"boolean"!=typeof s)throw new Error("'.syntacticPlaceholders' must be a boolean, null, or undefined");if(!0===s&&(null!=i||null!=n))throw new Error("'.placeholderWhitelist' and '.placeholderPattern' aren't compatible with '.syntacticPlaceholders: true'");return{parser:o,placeholderWhitelist:i||void 0,placeholderPattern:null==n?void 0:n,preserveComments:null==a?void 0:a,syntacticPlaceholders:null==s?void 0:s}};var e=["placeholderWhitelist","placeholderPattern","preserveComments","syntacticPlaceholders"];return to}var io,no={},ao={};function so(){if(io)return ao;io=1,Object.defineProperty(ao,"__esModule",{value:!0}),ao.default=function(e,i,n){var{placeholderWhitelist:a,placeholderPattern:s,preserveComments:o,syntacticPlaceholders:l}=n,p=function(e,i,n){var a=(i.plugins||[]).slice();!1!==n&&a.push("placeholders");i=Object.assign({allowAwaitOutsideFunction:!0,allowReturnOutsideFunction:!0,allowNewTargetOutsideFunction:!0,allowSuperOutsideMethod:!0,allowYieldOutsideFunction:!0,sourceType:"module"},i,{plugins:a});try{return(0,t.parse)(e,i)}catch(t){var s=t.loc;throw s&&(t.message+="\n"+(0,r.codeFrameColumns)(e,{start:s}),t.code="BABEL_TEMPLATE_PARSE_ERROR"),t}}(i,n.parser,l);h(p,{preserveComments:o}),e.validate(p);var c={syntactic:{placeholders:[],placeholderNames:new Set},legacy:{placeholders:[],placeholderNames:new Set},placeholderWhitelist:a,placeholderPattern:s,syntacticPlaceholders:l};return d(p,m,c),Object.assign({ast:p},c.syntactic.placeholders.length?c.syntactic:c.legacy)};var e=Oi(),t=w(),r=Ds(),{isCallExpression:i,isExpressionStatement:n,isFunction:a,isIdentifier:s,isJSXIdentifier:o,isNewExpression:l,isPlaceholder:p,isStatement:c,isStringLiteral:u,removePropertiesDeep:h,traverse:d}=e,f=/^[_$A-Z0-9]+$/;function m(e,t,r){var h,d,m=r.syntactic.placeholders.length>0;if(p(e)){if(!1===r.syntacticPlaceholders)throw new Error("%%foo%%-style placeholders can't be used when '.syntacticPlaceholders' is false.");d=e.name.name,m=!0}else{if(m||r.syntacticPlaceholders)return;if(s(e)||o(e))d=e.name;else{if(!u(e))return;d=e.value}}if(m&&(null!=r.placeholderPattern||null!=r.placeholderWhitelist))throw new Error("'.placeholderWhitelist' and '.placeholderPattern' aren't compatible with '.syntacticPlaceholders: true'");if(m||!1!==r.placeholderPattern&&(r.placeholderPattern||f).test(d)||null!=(h=r.placeholderWhitelist)&&h.has(d)){t=t.slice();var y,{node:v,key:T}=t[t.length-1];u(e)||p(e,{expectedNode:"StringLiteral"})?y="string":l(v)&&"arguments"===T||i(v)&&"arguments"===T||a(v)&&"params"===T?y="param":n(v)&&!p(e)?(y="statement",t=t.slice(0,-1)):y=c(e)&&p(e)?"statement":"other";var{placeholders:g,placeholderNames:S}=m?r.syntactic:r.legacy;g.push({name:d,type:y,resolve:e=>function(e,t){for(var r=e,i=0;i<t.length-1;i++){var{key:n,index:a}=t[i];r=void 0===a?r[n]:r[n][a]}var{key:s,index:o}=t[t.length-1];return{parent:r,key:s,index:o}}(e,t),isDuplicate:S.has(d)}),S.add(d)}}return ao}var oo,lo,po={};function co(){if(oo)return po;oo=1,Object.defineProperty(po,"__esModule",{value:!0}),po.default=function(e,c){var u=r(e.ast);c&&(e.placeholders.forEach((e=>{if(!hasOwnProperty.call(c,e.name)){var t=e.name;throw new Error('Error: No substitution given for "'.concat(t,"\". If this is not meant to be a\n placeholder you may want to consider passing one of the following options to @babel/template:\n - { placeholderPattern: false, placeholderWhitelist: new Set(['").concat(t,"'])}\n - { placeholderPattern: /^").concat(t,"$/ }"))}})),Object.keys(c).forEach((t=>{if(!e.placeholderNames.has(t))throw new Error('Unknown substitution "'.concat(t,'" given'))})));return e.placeholders.slice().reverse().forEach((e=>{try{var h;!function(e,c,u){e.isDuplicate&&(Array.isArray(u)?u=u.map((e=>r(e))):"object"==typeof u&&(u=r(u)));var{parent:h,key:d,index:f}=e.resolve(c);if("string"===e.type){if("string"==typeof u&&(u=l(u)),!u||!o(u))throw new Error("Expected string substitution")}else if("statement"===e.type)void 0===f?u?Array.isArray(u)?u=t(u):"string"==typeof u?u=n(a(u)):s(u)||(u=n(u)):u=i():u&&!Array.isArray(u)&&("string"==typeof u&&(u=a(u)),s(u)||(u=n(u)));else if("param"===e.type){if("string"==typeof u&&(u=a(u)),void 0===f)throw new Error("Assertion failure.")}else if("string"==typeof u&&(u=a(u)),Array.isArray(u))throw new Error("Cannot replace single expression with an array.");function m(e,t,r){var i=e[t];e[t]=r,"Identifier"!==i.type&&"Placeholder"!==i.type||(i.typeAnnotation&&(r.typeAnnotation=i.typeAnnotation),i.optional&&(r.optional=i.optional),i.decorators&&(r.decorators=i.decorators))}if(void 0===f)p(h,d,u),m(h,d,u);else{var y=h[d].slice();"statement"===e.type||"param"===e.type?null==u?y.splice(f,1):Array.isArray(u)?y.splice(f,1,...u):m(y,f,u):m(y,f,u),p(h,d,y),h[d]=y}}(e,u,null!=(h=c&&c[e.name])?h:null)}catch(t){throw t.message='@babel/template placeholder "'.concat(e.name,'": ').concat(t.message),t}})),u};var e=Oi(),{blockStatement:t,cloneNode:r,emptyStatement:i,expressionStatement:n,identifier:a,isStatement:s,isStringLiteral:o,stringLiteral:l,validate:p}=e;return po}var uo,ho,fo,mo,yo,vo={};function To(){if(uo)return vo;uo=1,Object.defineProperty(vo,"__esModule",{value:!0}),vo.default=function(i,n,a){var{metadata:s,names:o}=function(e,r,i){var n="BABEL_TPL$",a=r.join("");do{n="$$"+n}while(a.includes(n));var{names:s,code:o}=function(e,t){for(var r=[],i=e[0],n=1;n<e.length;n++){var a="".concat(t).concat(n-1);r.push(a),i+=a+e[n]}return{names:r,code:i}}(r,n),l=(0,t.default)(e,e.code(o),{parser:i.parser,placeholderWhitelist:new Set(s.concat(i.placeholderWhitelist?Array.from(i.placeholderWhitelist):[])),placeholderPattern:i.placeholderPattern,preserveComments:i.preserveComments,syntacticPlaceholders:i.syntacticPlaceholders});return{metadata:l,names:s}}(i,n,a);return t=>{var n={};return t.forEach(((e,t)=>{n[o[t]]=e})),t=>{var a=(0,e.normalizeReplacements)(t);return a&&Object.keys(a).forEach((e=>{if(hasOwnProperty.call(n,e))throw new Error("Unexpected replacement overlap.")})),i.unwrap((0,r.default)(s,a?Object.assign(a,n):n))}}};var e=ro(),t=so(),r=co();return vo}function go(){if(ho)return eo;ho=1,Object.defineProperty(eo,"__esModule",{value:!0}),eo.default=function a(s,o){var l=new WeakMap,p=new WeakMap,c=o||(0,e.validate)(null);return Object.assign((function(i){for(var o=arguments.length,p=new Array(o>1?o-1:0),u=1;u<o;u++)p[u-1]=arguments[u];if("string"==typeof i){if(p.length>1)throw new Error("Unexpected extra params.");return n((0,t.default)(s,i,(0,e.merge)(c,(0,e.validate)(p[0]))))}if(Array.isArray(i)){var h=l.get(i);return h||(h=(0,r.default)(s,i,c),l.set(i,h)),n(h(p))}if("object"==typeof i&&i){if(p.length>0)throw new Error("Unexpected extra params.");return a(s,(0,e.merge)(c,(0,e.validate)(i)))}throw new Error("Unexpected template param ".concat(typeof i))}),{ast:function(n){for(var a=arguments.length,o=new Array(a>1?a-1:0),l=1;l<a;l++)o[l-1]=arguments[l];if("string"==typeof n){if(o.length>1)throw new Error("Unexpected extra params.");return(0,t.default)(s,n,(0,e.merge)((0,e.merge)(c,(0,e.validate)(o[0])),i))()}if(Array.isArray(n)){var u=p.get(n);return u||(u=(0,r.default)(s,n,(0,e.merge)(c,i)),p.set(n,u)),u(o)()}throw new Error("Unexpected template param ".concat(typeof n))}})};var e=ro(),t=function(){if(lo)return no;lo=1,Object.defineProperty(no,"__esModule",{value:!0}),no.default=function(i,n,a){var s;return n=i.code(n),o=>{var l=(0,e.normalizeReplacements)(o);return s||(s=(0,t.default)(i,n,a)),i.unwrap((0,r.default)(s,l))}};var e=ro(),t=so(),r=co();return no}(),r=To(),i=(0,e.validate)({placeholderPattern:!1});function n(e){var t="";try{throw new Error}catch(e){e.stack&&(t=e.stack.split("\n").slice(3).join("\n"))}return r=>{try{return e(r)}catch(e){throw e.stack+="\n =============\n".concat(t),e}}}return eo}function So(){if(yo)return zs;yo=1,Object.defineProperty(zs,"__esModule",{value:!0}),zs.arrowFunctionToExpression=function(){var{allowInsertArrow:e=!0,allowInsertArrowWithRest:t=e,noNewArrows:r=!(e=>null==(e=arguments[0])?void 0:e.specCompliant)()}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this.isArrowFunctionExpression())throw this.buildCodeFrameError("Cannot convert non-arrow function to a function expression.");var i,n=this;r||(n=null!=(i=n.ensureFunctionName(!1))?i:n);var{thisBinding:a,fnPath:s}=V(n,r,e,t);if(s.ensureBlock(),function(e,t){e.node.type=t}(s,"FunctionExpression"),!r){var o=a?null:s.scope.generateUidIdentifier("arrowCheckId");return o&&s.parentPath.scope.push({id:o,init:S([])}),s.get("body").unshiftContainer("body",u(l(this.hub.addHelper("newArrowCheck"),[w(),h(o?o.name:a)]))),s.replaceWith(l(v(s.node,h("bind")),[o?h(o.name):w()])),s.get("callee.object")}return s},zs.ensureBlock=function(){var 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;var r,n,a=[],s="body";e.isStatement()?(n="body",r=0,a.push(e.node)):(s+=".body.0",this.isFunction()?(r="argument",a.push(b(e.node))):(r="expression",a.push(u(e.node))));this.node.body=o(a);var l=this.get(s);return i.setup.call(e,l,n?l.node[n]:l.node,n,r),this.node},zs.ensureFunctionName=function(e){if(this.node.id)return this;var r=L(this.node,this.parent);if(null==r)return this;var{name:i}=r;if(!e&&/[\uD800-\uDFFF]/.test(i))return null;if(i.startsWith("get ")||i.startsWith("set "))return null;i=k(i.replace(/[/ ]/g,"_"));var n=h(i);U(n,r.originalNode);var a={needsRename:!1,name:i},{scope:s}=this,o=s.getOwnBinding(i);o?"param"===o.kind&&(a.needsRename=!0):(s.parent.hasBinding(i)||s.hasGlobal(i))&&this.traverse(X,a);if(!a.needsRename)return this.node.id=n,s.getProgramParent().references[n.name]=!0,this;if(s.hasBinding(n.name)&&!s.hasGlobal(n.name))return s.rename(n.name),this.node.id=n,s.getProgramParent().references[n.name]=!0,this;if(!O(this.node))return null;for(var l=s.generateUidIdentifier(n.name),p=[],u=0,d=function(e){var t=e.params.findIndex((e=>D(e)||_(e)));return-1===t?e.params.length:t}(this.node);u<d;u++)p.push(s.generateUidIdentifier("x"));var f=t.default.expression.ast(mo||(mo=c(["\n (function (",") {\n function ","(",") {\n return ",".apply(this, arguments);\n }\n\n ",".toString = function () {\n return ",".toString();\n }\n\n return ",";\n })(",")\n "])),l,n,p,M(l),M(n),M(l),M(n),I(this.node));return this.replaceWith(f)[0].get("arguments.0")},zs.splitExportDeclaration=function(){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.");var e=this.get("declaration");if(this.isExportDefaultDeclaration()){var t=e.isFunctionDeclaration()||e.isClassDeclaration(),r=e.isFunctionExpression()||e.isClassExpression(),i=e.isScope()?e.scope.parent:e.scope,n=e.node.id,a=!1;n?r&&i.hasBinding(n.name)&&(a=!0,n=i.generateUidIdentifier(n.name)):(a=!0,n=i.generateUidIdentifier("default"),(t||r)&&(e.node.id=M(n)));var s=t?e.node:F("var",[B(M(n),e.node)]),o=j(null,[R(M(n),h("default"))]);return this.insertAfter(o),this.replaceWith(s),a&&i.registerDeclaration(this),this}if(this.get("specifiers").length>0)throw new Error("It doesn't make sense to split exported specifiers.");var l=e.getOuterBindingIdentifiers(),p=Object.keys(l).map((e=>R(h(e),h(e)))),c=j(null,p);return this.insertAfter(c),this.replaceWith(e.node),this},zs.toComputedKey=function(){var e;if(this.isMemberExpression())e=this.node.property;else{if(!this.isProperty()&&!this.isMethod())throw new ReferenceError("todo");e=this.node.key}this.node.computed||d(e)&&(e=A(e.name));return e},zs.unwrapFunctionEnvironment=function(){if(!this.isArrowFunctionExpression()&&!this.isFunctionExpression()&&!this.isFunctionDeclaration())throw this.buildCodeFrameError("Can only unwrap the environment of a function.");V(this)};var e=Oi(),t=function(){if(fo)return Gs;fo=1,Object.defineProperty(Gs,"__esModule",{value:!0}),Gs.statements=Gs.statement=Gs.smart=Gs.program=Gs.expression=Gs.default=void 0;var e=$s(),t=go(),r=Gs.smart=(0,t.default)(e.smart),i=Gs.statement=(0,t.default)(e.statement),n=Gs.statements=(0,t.default)(e.statements),a=Gs.expression=(0,t.default)(e.expression),s=Gs.program=(0,t.default)(e.program);return Gs.default=Object.assign(r.bind(void 0),{smart:r,statement:i,statements:n,expression:a,program:s,ast:r.ast}),Gs}(),r=rn(),i=Mo(),{arrowFunctionExpression:n,assignmentExpression:a,binaryExpression:s,blockStatement:o,callExpression:l,conditionalExpression:p,expressionStatement:u,identifier:h,isIdentifier:d,jsxIdentifier:f,logicalExpression:m,LOGICAL_OPERATORS:y,memberExpression:v,metaProperty:T,numericLiteral:g,objectExpression:S,restElement:x,returnStatement:b,sequenceExpression:P,spreadElement:E,stringLiteral:A,super:C,thisExpression:w,toExpression:I,unaryExpression:N,toBindingIdentifierName:k,isFunction:O,isAssignmentPattern:D,isRestElement:_,getFunctionName:L,cloneNode:M,variableDeclaration:F,variableDeclarator:B,exportNamedDeclaration:j,exportSpecifier:R,inherits:U}=e;zs.arrowFunctionToShadowed=function(){this.isArrowFunctionExpression()&&this.arrowFunctionToExpression()};var K=(0,r.environmentVisitor)({CallExpression(e,t){var{allSuperCalls:r}=t;e.get("callee").isSuper()&&r.push(e)}});function V(e){var t,r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],c=e.findParent((e=>e.isArrowFunctionExpression()?(null!=t||(t=e),!1):e.isFunction()||e.isProgram()||e.isClassProperty({static:!1})||e.isClassPrivateProperty({static:!1}))),u=c.isClassMethod({kind:"constructor"});if(c.isClassProperty()||c.isClassPrivateProperty())if(t)c=t;else{if(!i)throw e.buildCodeFrameError("Unable to transform arrow inside class property");e.replaceWith(l(n([],I(e.node)),[])),c=e.get("callee"),e=c.get("body")}var d,{thisPaths:S,argumentsPaths:b,newTargetPaths:k,superProps:O,superCalls:D}=function(e){var t=[],r=[],i=[],n=[],a=[];return e.traverse(J,{thisPaths:t,argumentsPaths:r,newTargetPaths:i,superProps:n,superCalls:a}),{thisPaths:t,argumentsPaths:r,newTargetPaths:i,superProps:n,superCalls:a}}(e);if(u&&D.length>0){if(!i)throw D[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(!o)throw D[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.");var _=[];c.traverse(K,{allSuperCalls:_});var L=function(e){return Y(e,"supercall",(()=>{var t=e.scope.generateUidIdentifier("args");return n([x(t)],l(C(),[E(h(t.name))]))}))}(c);_.forEach((e=>{var t=h(L);t.loc=e.node.callee.loc,e.get("callee").replaceWith(t)}))}if(b.length>0){var M=Y(c,"arguments",(()=>{var e=()=>h("arguments");return c.scope.path.isProgram()?p(s("===",N("typeof",e()),A("undefined")),c.scope.buildUndefinedNode(),e()):e()}));b.forEach((e=>{var t=h(M);t.loc=e.node.loc,e.replaceWith(t)}))}if(k.length>0){var F=Y(c,"newtarget",(()=>T(h("new"),h("target"))));k.forEach((e=>{var t=h(F);t.loc=e.node.loc,e.replaceWith(t)}))}if(O.length>0){if(!i)throw O[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.");O.reduce(((e,t)=>e.concat(function(e){if(e.parentPath.isAssignmentExpression()&&"="!==e.parentPath.node.operator){var t=e.parentPath,r=t.node.operator.slice(0,-1),i=t.node.right,n=function(e){return y.includes(e)}(r);if(e.node.computed){var o=e.scope.generateDeclaredUidIdentifier("tmp"),{object:l,property:p}=e.node;t.get("left").replaceWith(v(l,a("=",o,p),!0)),t.get("right").replaceWith(x(n?"=":r,v(l,h(o.name),!0),i))}else{var c=e.node.object,u=e.node.property;t.get("left").replaceWith(v(c,u)),t.get("right").replaceWith(x(n?"=":r,v(c,h(u.name)),i))}return n?t.replaceWith(m(r,t.node.left,t.node.right)):t.node.operator="=",[t.get("left"),t.get("right").get("left")]}if(e.parentPath.isUpdateExpression()){var d=e.parentPath,f=e.scope.generateDeclaredUidIdentifier("tmp"),T=e.node.computed?e.scope.generateDeclaredUidIdentifier("prop"):null,S=[a("=",f,v(e.node.object,T?a("=",T,e.node.property):e.node.property,e.node.computed)),a("=",v(e.node.object,T?h(T.name):e.node.property,e.node.computed),s(e.parentPath.node.operator[0],h(f.name),g(1)))];return e.parentPath.node.prefix||S.push(h(f.name)),d.replaceWith(P(S)),[d.get("expressions.0.right"),d.get("expressions.1.left")]}return[e];function x(e,t,r){return"="===e?a("=",t,r):s(e,t,r)}}(t))),[]).forEach((e=>{var t=e.node.computed?"":e.get("property").node.name,r=e.parentPath,i=r.isAssignmentExpression({left:e.node}),s=r.isCallExpression({callee:e.node}),o=r.isTaggedTemplateExpression({tag:e.node}),p=function(e,t,r){var i=t?"set":"get";return Y(e,"superprop_".concat(i,":").concat(r||""),(()=>{var i,s=[];if(r)i=v(C(),h(r));else{var o=e.scope.generateUidIdentifier("prop");s.unshift(o),i=v(C(),h(o.name),!0)}if(t){var l=e.scope.generateUidIdentifier("value");s.push(l),i=a("=",i,h(l.name))}return n(s,i)}))}(c,i,t),u=[];if(e.node.computed&&u.push(e.get("property").node),i){var d=r.node.right;u.push(d)}var f=l(h(p),u);s?(r.unshiftContainer("arguments",w()),e.replaceWith(v(f,h("call"))),S.push(r.get("arguments.0"))):i?r.replaceWith(f):o?(e.replaceWith(l(v(f,h("bind"),!1),[w()])),S.push(e.get("arguments.0"))):e.replaceWith(f)}))}return(S.length>0||!r)&&(d=function(e,t){return Y(e,"this",(r=>{if(!t||!q(e))return w();e.traverse(W,{supers:new WeakSet,thisBinding:r})}))}(c,u),(r||u&&q(c))&&(S.forEach((e=>{var t=e.isJSX()?f(d):h(d);t.loc=e.node.loc,e.replaceWith(t)})),r||(d=null))),{thisBinding:d,fnPath:e}}function q(e){return e.isClassMethod()&&!!e.parentPath.parentPath.node.superClass}var W=(0,r.environmentVisitor)({CallExpression(e,t){var{supers:r,thisBinding:i}=t;e.get("callee").isSuper()&&(r.has(e.node)||(r.add(e.node),e.replaceWithMultiple([e.node,a("=",h(i),h("this"))])))}});function Y(e,t,r){var i="binding:"+t,n=e.getData(i);if(!n){var a=e.scope.generateUidIdentifier(t);n=a.name,e.setData(i,n),e.scope.push({id:a,init:r(n)})}return n}var J=(0,r.environmentVisitor)({ThisExpression(e,t){var{thisPaths:r}=t;r.push(e)},JSXIdentifier(e,t){var{thisPaths:r}=t;"this"===e.node.name&&(e.parentPath.isJSXMemberExpression({object:e.node})||e.parentPath.isJSXOpeningElement({name:e.node}))&&r.push(e)},CallExpression(e,t){var{superCalls:r}=t;e.get("callee").isSuper()&&r.push(e)},MemberExpression(e,t){var{superProps:r}=t;e.get("object").isSuper()&&r.push(e)},Identifier(e,t){var{argumentsPaths:r}=t;if(e.isReferencedIdentifier({name:"arguments"})){var i=e.scope;do{if(i.hasOwnBinding("arguments"))return void i.rename("arguments");if(i.path.isFunction()&&!i.path.isArrowFunctionExpression())break}while(i=i.parent);r.push(e)}},MetaProperty(e,t){var{newTargetPaths:r}=t;e.get("meta").isIdentifier({name:"new"})&&e.get("property").isIdentifier({name:"target"})&&r.push(e)}});var X={"ReferencedIdentifier|BindingIdentifier"(e,t){e.node.name===t.name&&(t.needsRename=!0,e.stop())},Scope(e,t){e.scope.hasOwnBinding(t.name)&&e.skip()}};return zs}var xo,bo={};function Po(){return xo||(xo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e._guessExecutionStatusRelativeTo=function(e){return m(this,e,new Map)},e._resolve=y,e.canHaveVariableDeclarationOrExpression=function(){return("init"===this.key||"left"===this.key)&&this.parentPath.isFor()},e.canSwapBetweenExpressionAndStatement=function(e){if("body"!==this.key||!this.parentPath.isArrowFunctionExpression())return!1;if(this.isExpression())return n(e);if(this.isBlockStatement())return a(e);return!1},e.getSource=function(){var e=this.node;if(e.end){var t=this.hub.getCode();if(t)return t.slice(e.start,e.end)}return""},e.isCompletionRecord=function(e){var t=this,r=!0;do{var{type:i,container:n}=t;if(!r&&(t.isFunction()||"StaticBlock"===i))return!!e;if(r=!1,Array.isArray(n)&&t.key!==n.length-1)return!1}while((t=t.parentPath)&&!t.isProgram()&&!t.isDoExpression());return!0},e.isConstantExpression=function(){if(this.isIdentifier()){var e=this.scope.getBinding(this.node.name);return!!e&&e.constant}if(this.isLiteral())return!this.isRegExpLiteral()&&(!this.isTemplateLiteral()||this.get("expressions").every((e=>e.isConstantExpression())));if(this.isUnaryExpression())return"void"===this.node.operator&&this.get("argument").isConstantExpression();if(this.isBinaryExpression()){var{operator:t}=this.node;return"in"!==t&&"instanceof"!==t&&this.get("left").isConstantExpression()&&this.get("right").isConstantExpression()}if(this.isMemberExpression())return!this.node.computed&&this.get("object").isIdentifier({name:"Symbol"})&&!this.scope.hasBinding("Symbol",{noGlobals:!0});if(this.isCallExpression())return 1===this.node.arguments.length&&this.get("callee").matchesPattern("Symbol.for")&&!this.scope.hasBinding("Symbol",{noGlobals:!0})&&this.get("arguments")[0].isStringLiteral();return!1},e.isInStrictMode=function(){var e=(this.isProgram()?this:this.parentPath).find((e=>{if(e.isProgram({sourceType:"module"}))return!0;if(e.isClass())return!0;if(e.isArrowFunctionExpression()&&!e.get("body").isBlockStatement())return!1;var t;if(e.isFunction())t=e.node.body;else{if(!e.isProgram())return!1;t=e.node}for(var r of t.directives)if("use strict"===r.value.value)return!0;return!1}));return!!e},e.isNodeType=function(e){return p(this.type,e)},e.isStatementOrBlock=function(){return!this.parentPath.isLabeledStatement()&&!n(this.container)&&r.includes(this.key)},e.isStatic=function(){return this.scope.isStatic(this.node)},e.matchesPattern=function(e,t){return c(this.node,e,t)},e.referencesImport=function(e,t){if(!this.isReferencedIdentifier()){if(this.isJSXMemberExpression()&&this.node.property.name===t||(this.isMemberExpression()||this.isOptionalMemberExpression())&&(this.node.computed?l(this.node.property,{value:t}):this.node.property.name===t)){var r=this.get("object");return r.isReferencedIdentifier()&&r.referencesImport(e,"*")}return!1}var i=this.scope.getBinding(this.node.name);if(!i||"module"!==i.kind)return!1;var n=i.path,a=n.parentPath;if(!a.isImportDeclaration())return!1;if(a.node.source.value!==e)return!1;if(!t)return!0;if(n.isImportDefaultSpecifier()&&"default"===t)return!0;if(n.isImportNamespaceSpecifier()&&"*"===t)return!0;if(n.isImportSpecifier()&&s(n.node.imported,{name:t}))return!0;return!1},e.resolve=function(e,t){return y.call(this,e,t)||this},e.willIMaybeExecuteBefore=function(e){return"after"!==this._guessExecutionStatusRelativeTo(e)};var t=Oi(),{STATEMENT_OR_BLOCK_KEYS:r,VISITOR_KEYS:i,isBlockStatement:n,isExpression:a,isIdentifier:s,isLiteral:o,isStringLiteral:l,isType:p,matchesPattern:c}=t;function u(e){return e.isProgram()?e:(e.parentPath.scope.getFunctionParent()||e.parentPath.scope.getProgramParent()).path}function h(e,t){switch(e){case"LogicalExpression":case"AssignmentPattern":return"right"===t;case"ConditionalExpression":case"IfStatement":return"consequent"===t||"alternate"===t;case"WhileStatement":case"DoWhileStatement":case"ForInStatement":case"ForOfStatement":return"body"===t;case"ForStatement":return"body"===t||"update"===t;case"SwitchStatement":return"cases"===t;case"TryStatement":return"handler"===t;case"OptionalMemberExpression":return"property"===t;case"OptionalCallExpression":return"arguments"===t;default:return!1}}function d(e,t){for(var r=0;r<t;r++){var i=e[r];if(h(i.parent.type,i.parentKey))return!0}return!1}e.has=function(e){var t,r=null==(t=this.node)?void 0:t[e];return r&&Array.isArray(r)?!!r.length:!!r},e.is=e.has,e.isnt=function(e){return!this.has(e)},e.equals=function(e,t){return this.node[e]===t};var f=Symbol();function m(e,t,r){var n={this:u(e),target:u(t)};if(n.target.node!==n.this.node)return function(e,t,r){var i,n=r.get(e.node);if(n){if(i=n.get(t.node))return i===f?"unknown":i}else r.set(e.node,n=new Map);n.set(t.node,f);var a=function(e,t,r){if(!t.isFunctionDeclaration())return"before"===m(e,t,r)?"before":"unknown";if(t.parentPath.isExportDeclaration())return"unknown";var i=t.scope.getBinding(t.node.id.name);if(!i.references)return"before";var n,a=i.referencePaths;for(var s of a){if(!!!s.find((e=>e.node===t.node))){if("callee"!==s.key||!s.parentPath.isCallExpression())return"unknown";var o=m(e,s,r);if(n&&n!==o)return"unknown";n=o}}return n}(e,t,r);return n.set(t.node,a),a}(e,n.target,r);var a,s={target:t.getAncestry(),this:e.getAncestry()};if(s.target.includes(e))return"after";if(s.this.includes(t))return"before";for(var o={target:0,this:0};!a&&o.this<s.this.length;){var l=s.this[o.this];o.target=s.target.indexOf(l),o.target>=0?a=l:o.this++}if(!a)throw new Error("Internal Babel error - The two compared nodes don't appear to belong to the same program.");if(d(s.this,o.this-1)||d(s.target,o.target-1))return"unknown";var p={this:s.this[o.this-1],target:s.target[o.target-1]};if(p.target.listKey&&p.this.listKey&&p.target.container===p.this.container)return p.target.key>p.this.key?"before":"after";var c=i[a.type],h=c.indexOf(p.this.parentKey);return c.indexOf(p.target.parentKey)>h?"before":"after"}function y(e,t){var r;if(null==(r=t)||!r.includes(this))if((t=t||[]).push(this),this.isVariableDeclarator()){if(this.get("id").isIdentifier())return this.get("init").resolve(e,t)}else if(this.isReferencedIdentifier()){var i=this.scope.getBinding(this.node.name);if(!i)return;if(!i.constant)return;if("module"===i.kind)return;if(i.path!==this){var n=i.path.resolve(e,t);if(this.find((e=>e.node===n.node)))return;return n}}else{if(this.isTypeCastExpression())return this.get("expression").resolve(e,t);if(e&&this.isMemberExpression()){var a=this.toComputedKey();if(!o(a))return;var s=a.value,l=this.get("object").resolve(e,t);if(l.isObjectExpression()){var p=l.get("properties");for(var c of p)if(c.isProperty()){var u=c.get("key"),h=c.isnt("computed")&&u.isIdentifier({name:s});if(h=h||u.isLiteral({value:s}))return c.get("value").resolve(e,t)}}else if(l.isArrayExpression()&&!isNaN(+s)){var d=l.get("elements")[s];if(d)return d.resolve(e,t)}}}}}(bo)),bo}var Eo,Ao={};function Co(){if(Eo)return Ao;Eo=1,Object.defineProperty(Ao,"__esModule",{value:!0}),Ao._getKey=f,Ao._getPattern=m,Ao.get=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];!0===t&&(t=this.context);var r=e.split(".");return 1===r.length?f.call(this,e,t):m.call(this,r,t)},Ao.getAllNextSiblings=function(){var e=this.key,t=this.getSibling(++e),r=[];for(;t.node;)r.push(t),t=this.getSibling(++e);return r},Ao.getAllPrevSiblings=function(){var e=this.key,t=this.getSibling(--e),r=[];for(;t.node;)r.push(t),t=this.getSibling(--e);return r},Ao.getAssignmentIdentifiers=function(){return r(this.node)},Ao.getBindingIdentifierPaths=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=[this],n=Object.create(null);for(;r.length;){var a=r.shift();if(a&&a.node){var s=i.keys[a.node.type];if(a.isIdentifier())e?(n[a.node.name]=n[a.node.name]||[]).push(a):n[a.node.name]=a;else if(a.isExportDeclaration()){var o=a.get("declaration");o.isDeclaration()&&r.push(o)}else{if(t){if(a.isFunctionDeclaration()){r.push(a.get("id"));continue}if(a.isFunctionExpression())continue}if(s)for(var l=0;l<s.length;l++){var p=s[l],c=a.get(p);Array.isArray(c)?r.push(...c):c.node&&r.push(c)}}}}return n},Ao.getBindingIdentifiers=function(e){return i(this.node,e)},Ao.getCompletionRecords=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return d(this,{canHaveBreak:!1,shouldPopulateBreak:!1,inCaseClause:!1,shouldPreserveBreak:e}).map((e=>e.path))},Ao.getNextSibling=function(){return this.getSibling(this.key+1)},Ao.getOpposite=function(){if("left"===this.key)return this.getSibling("right");if("right"===this.key)return this.getSibling("left");return null},Ao.getOuterBindingIdentifierPaths=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.getBindingIdentifierPaths(e,!0)},Ao.getOuterBindingIdentifiers=function(e){return n(this.node,e)},Ao.getPrevSibling=function(){return this.getSibling(this.key-1)},Ao.getSibling=function(t){return e.default.get({parentPath:this.parentPath,parent:this.parent,container:this.container,listKey:this.listKey,key:t}).setContext(this.context)};var e=_o(),t=Oi(),{getAssignmentIdentifiers:r,getBindingIdentifiers:i,getOuterBindingIdentifiers:n,numericLiteral:a,unaryExpression:s}=t,o=0,l=1;function p(e,t,r){return e&&t.push(...d(e,r)),t}function c(e){e.forEach((e=>{e.type=l}))}function u(e,t){e.forEach((e=>{e.path.isBreakStatement({label:null})&&(t?e.path.replaceWith(s("void",a(0))):e.path.remove())}))}function h(e,t){var r=[];if(t.canHaveBreak)for(var i=[],n=0;n<e.length;n++){var a=e[n],s=Object.assign({},t,{inCaseClause:!1});a.isBlockStatement()&&(t.inCaseClause||t.shouldPopulateBreak)?s.shouldPopulateBreak=!0:s.shouldPopulateBreak=!1;var p=d(a,s);if(p.length>0&&p.every((e=>e.type===l))){i.length>0&&p.every((e=>e.path.isBreakStatement({label:null})))?(c(i),r.push(...i),i.some((e=>e.path.isDeclaration()))&&(r.push(...p),t.shouldPreserveBreak||u(p,!0)),t.shouldPreserveBreak||u(p,!1)):(r.push(...p),t.shouldPopulateBreak||t.shouldPreserveBreak||u(p,!0));break}if(n===e.length-1)r.push(...p);else{i=[];for(var h=0;h<p.length;h++){var f=p[h];f.type===l&&r.push(f),f.type===o&&i.push(f)}}}else if(e.length)for(var m=e.length-1;m>=0;m--){var y=d(e[m],t);if(y.length>1||1===y.length&&!y[0].path.isVariableDeclaration()&&!y[0].path.isEmptyStatement()){r.push(...y);break}}return r}function d(e,t){var r=[];if(e.isIfStatement())r=p(e.get("consequent"),r,t),r=p(e.get("alternate"),r,t);else{if(e.isDoExpression()||e.isFor()||e.isWhile()||e.isLabeledStatement())return p(e.get("body"),r,t);if(e.isProgram()||e.isBlockStatement())return h(e.get("body"),t);if(e.isFunction())return d(e.get("body"),t);if(e.isTryStatement())r=p(e.get("block"),r,t),r=p(e.get("handler"),r,t);else{if(e.isCatchClause())return p(e.get("body"),r,t);if(e.isSwitchStatement())return function(e,t,r){for(var i=[],n=0;n<e.length;n++){var a=d(e[n],r),s=[],p=[];for(var c of a)c.type===o&&s.push(c),c.type===l&&p.push(c);s.length&&(i=s),t.push(...p)}return t.push(...i),t}(e.get("cases"),r,t);if(e.isSwitchCase())return h(e.get("consequent"),{canHaveBreak:!0,shouldPopulateBreak:!1,inCaseClause:!0,shouldPreserveBreak:t.shouldPreserveBreak});e.isBreakStatement()?r.push(function(e){return{type:l,path:e}}(e)):r.push(function(e){return{type:o,path:e}}(e))}}return r}function f(t,r){var i=this.node,n=i[t];return Array.isArray(n)?n.map(((a,s)=>e.default.get({listKey:t,parentPath:this,parent:i,container:n,key:s}).setContext(r))):e.default.get({parentPath:this,parent:i,container:i,key:t}).setContext(r)}function m(e,t){var r=this;for(var i of e)r="."===i?r.parentPath:Array.isArray(r)?r[i]:r.get(i,t);return r}return Ao}var wo,Io,No,ko,Oo,Do={};function _o(){if(Io)return Bi;Io=1,Object.defineProperty(Bi,"__esModule",{value:!0}),Bi.default=Bi.SHOULD_STOP=Bi.SHOULD_SKIP=Bi.REMOVED=void 0;var e=Ri(),t=Xi(),r=Ro(),i=fn(),n=Oi(),a=n,s=cn(),o=ps(),l=function(){if(cs)return us;cs=1,Object.defineProperty(us,"__esModule",{value:!0}),us.find=function(e){var t=this;do{if(e(t))return t}while(t=t.parentPath);return null},us.findParent=function(e){for(var t=this;t=t.parentPath;)if(e(t))return t;return null},us.getAncestry=function(){var e=this,t=[];do{t.push(e)}while(e=e.parentPath);return t},us.getDeepestCommonAncestorFrom=function(e,t){if(!e.length)return this;if(1===e.length)return e[0];var r,i,n=1/0,a=e.map((e=>{var t=[];do{t.unshift(e)}while((e=e.parentPath)&&e!==this);return t.length<n&&(n=t.length),t})),s=a[0];e:for(var o=0;o<n;o++){var l=s[o];for(var p of a)if(p[o]!==l)break e;r=o,i=l}if(i)return t?t(i,r,a):i;throw new Error("Couldn't find intersection")},us.getEarliestCommonAncestorFrom=function(e){return this.getDeepestCommonAncestorFrom(e,(function(e,r,i){var n,a=t[e.type];for(var s of i){var o=s[r+1];n?(o.listKey&&n.listKey===o.listKey&&o.key<n.key||a.indexOf(n.parentKey)>a.indexOf(o.parentKey))&&(n=o):n=o}return n}))},us.getFunctionParent=function(){return this.findParent((e=>e.isFunction()))},us.getStatementParent=function(){var 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},us.inType=function(){for(var e=this,t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];for(;e;){if(r.includes(e.node.type))return!0;e=e.parentPath}return!1},us.isAncestor=function(e){return e.isDescendant(this)},us.isDescendant=function(e){return!!this.findParent((t=>t===e))};var e=Oi(),{VISITOR_KEYS:t}=e;return us}(),p=function(){if(ms)return ys;ms=1,Object.defineProperty(ys,"__esModule",{value:!0}),ys._getTypeAnnotation=P,ys.baseTypeStrictlyMatches=function(e){var t=this.getTypeAnnotation(),r=e.getTypeAnnotation();return!(i(t)||!o(t))&&r.type===t.type},ys.couldBeBaseType=function(e){var t=this.getTypeAnnotation();if(i(t))return!0;if(T(t)){for(var r of t.types)if(i(r)||E(e,r,!0))return!0;return!1}return E(e,t,!0)},ys.getTypeAnnotation=function(){var e=this.getData("typeAnnotation");return null!=e||(e=P.call(this)||r(),(v(e)||f(e))&&(e=e.typeAnnotation),this.setData("typeAnnotation",e)),e},ys.isBaseType=function(e,t){return E(e,this.getTypeAnnotation(),t)},ys.isGenericType=function(e){var t=this.getTypeAnnotation();return!("Array"!==e||!(d(t)||n(t)||y(t)))||(l(t)&&p(t.id,{name:e})||m(t)&&p(t.typeName,{name:e}))};var e=bs(),t=Oi(),{anyTypeAnnotation:r,isAnyTypeAnnotation:i,isArrayTypeAnnotation:n,isBooleanTypeAnnotation:a,isEmptyTypeAnnotation:s,isFlowBaseAnnotation:o,isGenericTypeAnnotation:l,isIdentifier:p,isMixedTypeAnnotation:c,isNumberTypeAnnotation:u,isStringTypeAnnotation:h,isTSArrayType:d,isTSTypeAnnotation:f,isTSTypeReference:m,isTupleTypeAnnotation:y,isTypeAnnotation:v,isUnionTypeAnnotation:T,isVoidTypeAnnotation:g,stringTypeAnnotation:S,voidTypeAnnotation:x}=t,b=new WeakSet;function P(){var t=this.node;if(t){if(t.typeAnnotation)return t.typeAnnotation;if(!b.has(t)){b.add(t);try{var i,n=e[t.type];if(n)return n.call(this,t);if(null!=(i=n=e[this.parentPath.type])&&i.validParent)return this.parentPath.getTypeAnnotation()}finally{b.delete(t)}}}else if("init"===this.key&&this.parentPath.isVariableDeclarator()){var a=this.parentPath.parentPath,s=a.parentPath;return"left"===a.key&&s.isForInStatement()?S():"left"===a.key&&s.isForOfStatement()?r():x()}}function E(e,t,r){if("string"===e)return h(t);if("number"===e)return u(t);if("boolean"===e)return a(t);if("any"===e)return i(t);if("mixed"===e)return c(t);if("empty"===e)return s(t);if("void"===e)return g(t);if(r)return!1;throw new Error("Unknown base type ".concat(e))}return ys}(),c=Ws(),u=Xs(),h=So(),d=Po(),f=Mo(),m=f,y=js(),v=qs(),T=Co(),g=function(){if(wo)return Do;wo=1,Object.defineProperty(Do,"__esModule",{value:!0}),Do.addComment=function(e,r,i){t(this.node,e,r,i)},Do.addComments=function(e,t){r(this.node,e,t)},Do.shareCommentsWithSiblings=function(){if("string"!=typeof this.key){var e=this.node;if(e){var t=e.trailingComments,r=e.leadingComments;if(t||r){var n=this.getSibling(this.key-1),a=this.getSibling(this.key+1),s=Boolean(n.node),o=Boolean(a.node);s&&(r&&n.addComments("trailing",i(r,n.node.trailingComments)),t&&!o&&n.addComments("trailing",t)),o&&(t&&a.addComments("leading",i(t,a.node.leadingComments)),r&&!s&&a.addComments("leading",r))}}}};var e=Oi(),{addComment:t,addComments:r}=e;function i(e,t){if(null==t||!t.length)return e;var r=new Set(t);return e.filter((e=>!r.has(e)))}return Do}(),S=tn(),{validate:x}=n,b=t("babel");Bi.REMOVED=1,Bi.SHOULD_STOP=2,Bi.SHOULD_SKIP=4;var P=Bi.default=class e{constructor(e,t){this.contexts=[],this.state=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._store=null,this.parent=t,this.hub=e,this.data=null,this.context=null,this.scope=null}get removed(){return(1&this._traverseFlags)>0}set removed(e){e?this._traverseFlags|=1:this._traverseFlags&=-2}get shouldStop(){return(2&this._traverseFlags)>0}set shouldStop(e){e?this._traverseFlags|=2:this._traverseFlags&=-3}get shouldSkip(){return(4&this._traverseFlags)>0}set shouldSkip(e){e?this._traverseFlags|=4:this._traverseFlags&=-5}static get(t){var{hub:r,parentPath:i,parent:n,container:a,listKey:o,key:l}=t;if(!r&&i&&(r=i.hub),!n)throw new Error("To get a node path the parent needs to exist");var p=a[l],c=s.getOrCreateCachedPaths(n,i),u=c.get(p);return u||(u=new e(r,n),p&&c.set(p,u)),f.setup.call(u,i,a,o,l),u}getScope(e){return this.isScope()?new i.default(this):e}setData(e,t){return null==this.data&&(this.data=Object.create(null)),this.data[e]=t}getData(e,t){null==this.data&&(this.data=Object.create(null));var r=this.data[e];return void 0===r&&void 0!==t&&(r=this.data[e]=t),r}hasNode(){return null!=this.node}buildCodeFrameError(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:SyntaxError;return this.hub.buildError(this.node,e,t)}traverse(e,t){(0,r.default)(this.node,e,this.scope,t,this)}set(e,t){x(this.node,e,t),this.node[e]=t}getPathLocation(){var e=[],t=this;do{var r=t.key;t.inList&&(r="".concat(t.listKey,"[").concat(r,"]")),e.unshift(r)}while(t=t.parentPath);return e.join(".")}debug(e){b.enabled&&b("".concat(this.getPathLocation()," ").concat(this.type,": ").concat(e))}toString(){return(0,o.default)(this.node).code}get inList(){return!!this.listKey}set inList(e){e||(this.listKey=null)}get parentKey(){return this.listKey||this.key}},E={findParent:l.findParent,find:l.find,getFunctionParent:l.getFunctionParent,getStatementParent:l.getStatementParent,getEarliestCommonAncestorFrom:l.getEarliestCommonAncestorFrom,getDeepestCommonAncestorFrom:l.getDeepestCommonAncestorFrom,getAncestry:l.getAncestry,isAncestor:l.isAncestor,isDescendant:l.isDescendant,inType:l.inType,getTypeAnnotation:p.getTypeAnnotation,isBaseType:p.isBaseType,couldBeBaseType:p.couldBeBaseType,baseTypeStrictlyMatches:p.baseTypeStrictlyMatches,isGenericType:p.isGenericType,replaceWithMultiple:c.replaceWithMultiple,replaceWithSourceString:c.replaceWithSourceString,replaceWith:c.replaceWith,replaceExpressionWithStatements:c.replaceExpressionWithStatements,replaceInline:c.replaceInline,evaluateTruthy:u.evaluateTruthy,evaluate:u.evaluate,toComputedKey:h.toComputedKey,ensureBlock:h.ensureBlock,unwrapFunctionEnvironment:h.unwrapFunctionEnvironment,arrowFunctionToExpression:h.arrowFunctionToExpression,splitExportDeclaration:h.splitExportDeclaration,ensureFunctionName:h.ensureFunctionName,matchesPattern:d.matchesPattern,isStatic:d.isStatic,isNodeType:d.isNodeType,canHaveVariableDeclarationOrExpression:d.canHaveVariableDeclarationOrExpression,canSwapBetweenExpressionAndStatement:d.canSwapBetweenExpressionAndStatement,isCompletionRecord:d.isCompletionRecord,isStatementOrBlock:d.isStatementOrBlock,referencesImport:d.referencesImport,getSource:d.getSource,willIMaybeExecuteBefore:d.willIMaybeExecuteBefore,_guessExecutionStatusRelativeTo:d._guessExecutionStatusRelativeTo,resolve:d.resolve,isConstantExpression:d.isConstantExpression,isInStrictMode:d.isInStrictMode,isDenylisted:m.isDenylisted,visit:m.visit,skip:m.skip,skipKey:m.skipKey,stop:m.stop,setContext:m.setContext,requeue:m.requeue,requeueComputedKeyAndDecorators:m.requeueComputedKeyAndDecorators,remove:y.remove,insertBefore:v.insertBefore,insertAfter:v.insertAfter,unshiftContainer:v.unshiftContainer,pushContainer:v.pushContainer,getOpposite:T.getOpposite,getCompletionRecords:T.getCompletionRecords,getSibling:T.getSibling,getPrevSibling:T.getPrevSibling,getNextSibling:T.getNextSibling,getAllNextSiblings:T.getAllNextSiblings,getAllPrevSiblings:T.getAllPrevSiblings,get:T.get,getAssignmentIdentifiers:T.getAssignmentIdentifiers,getBindingIdentifiers:T.getBindingIdentifiers,getOuterBindingIdentifiers:T.getOuterBindingIdentifiers,getBindingIdentifierPaths:T.getBindingIdentifierPaths,getOuterBindingIdentifierPaths:T.getOuterBindingIdentifierPaths,shareCommentsWithSiblings:g.shareCommentsWithSiblings,addComment:g.addComment,addComments:g.addComments};Object.assign(P.prototype,E),P.prototype.arrowFunctionToShadowed=h[String("arrowFunctionToShadowed")],Object.assign(P.prototype,{has:d[String("has")],is:d[String("is")],isnt:d[String("isnt")],equals:d[String("equals")],hoist:v[String("hoist")],updateSiblingKeys:v.updateSiblingKeys,call:m.call,isBlacklisted:m[String("isBlacklisted")],setScope:m.setScope,resync:m.resync,popContext:m.popContext,pushContext:m.pushContext,setup:m.setup,setKey:m.setKey}),P.prototype._guessExecutionStatusRelativeToDifferentFunctions=d._guessExecutionStatusRelativeTo,P.prototype._guessExecutionStatusRelativeToDifferentFunctions=d._guessExecutionStatusRelativeTo,Object.assign(P.prototype,{_getTypeAnnotation:p._getTypeAnnotation,_replaceWith:c._replaceWith,_resolve:d._resolve,_call:m._call,_resyncParent:m._resyncParent,_resyncKey:m._resyncKey,_resyncList:m._resyncList,_resyncRemoved:m._resyncRemoved,_getQueueContexts:m._getQueueContexts,_removeFromScope:y._removeFromScope,_callRemovalHooks:y._callRemovalHooks,_remove:y._remove,_markRemoved:y._markRemoved,_assertUnremoved:y._assertUnremoved,_containerInsert:v._containerInsert,_containerInsertBefore:v._containerInsertBefore,_containerInsertAfter:v._containerInsertAfter,_verifyNodeList:v._verifyNodeList,_getKey:T._getKey,_getPattern:T._getPattern});var A=function(e){var t="is".concat(e),r=a[t];P.prototype[t]=function(e){return r(this.node,e)},P.prototype["assert".concat(e)]=function(t){if(!r(this.node,t))throw new TypeError("Expected node path of type ".concat(e))}};for(var C of a.TYPES)A(C);for(var w of(Object.assign(P.prototype,S),Object.keys(e)))"_"!==w[0]&&(a.TYPES.includes(w)||a.TYPES.push(w));return Bi}function Lo(){if(ko)return Mi;ko=1,Object.defineProperty(Mi,"__esModule",{value:!0}),Mi.traverseNode=function(t,i,n,a,s,o,l){var p=r[t.type];if(!p)return!1;var c=new e.default(n,i,a,s);if(l)return(null==o||!o[s.parentKey])&&c.visitQueue([s]);for(var u of p)if((null==o||!o[u])&&c.visit(t,u))return!0;return!1};var e=function(){if(No)return Fi;No=1,Object.defineProperty(Fi,"__esModule",{value:!0}),Fi.default=void 0;var e=_o(),t=Oi(),r=Mo(),{VISITOR_KEYS:i}=t;return Fi.default=class{constructor(e,t,r,i){this.queue=null,this.priorityQueue=null,this.parentPath=i,this.scope=e,this.state=r,this.opts=t}shouldVisit(e){var t=this.opts;if(t.enter||t.exit)return!0;if(t[e.type])return!0;var r=i[e.type];if(null==r||!r.length)return!1;for(var n of r)if(e[n])return!0;return!1}create(t,r,i,n){return e.default.get({parentPath:this.parentPath,parent:t,container:r,key:i,listKey:n})}maybeQueue(e,t){this.queue&&(t?this.queue.push(e):this.priorityQueue.push(e))}visitMultiple(e,t,r){if(0===e.length)return!1;for(var i=[],n=0;n<e.length;n++){var a=e[n];a&&this.shouldVisit(a)&&i.push(this.create(t,e,n,r))}return this.visitQueue(i)}visitSingle(e,t){return!!this.shouldVisit(e[t])&&this.visitQueue([this.create(e,e,t)])}visitQueue(e){this.queue=e,this.priorityQueue=[];for(var t=new WeakSet,i=!1,n=0;n<e.length;){var a=e[n];if(n++,r.resync.call(a),0!==a.contexts.length&&a.contexts[a.contexts.length-1]===this||r.pushContext.call(a,this),null!==a.key){var{node:s}=a;if(!t.has(s)){if(s&&t.add(s),a.visit()){i=!0;break}if(this.priorityQueue.length&&(i=this.visitQueue(this.priorityQueue),this.priorityQueue=[],this.queue=e,i))break}}}for(var o=0;o<n;o++)r.popContext.call(e[o]);return this.queue=null,i}visit(e,t){var r=e[t];return!!r&&(Array.isArray(r)?this.visitMultiple(r,e,t):this.visitSingle(e,t))}},Fi}();_o();var t=Oi();Mo();var{VISITOR_KEYS:r}=t;return Mi}function Mo(){if(Oo)return Li;Oo=1,Object.defineProperty(Li,"__esModule",{value:!0}),Li._call=a,Li._getQueueContexts=function(){var e=this,t=this.contexts;for(;!t.length&&(e=e.parentPath);)t=e.contexts;return t},Li._resyncKey=c,Li._resyncList=u,Li._resyncParent=p,Li._resyncRemoved=function(){null!=this.key&&this.container&&this.container[this.key]===this.node||r._markRemoved.call(this)},Li.call=n,Li.isDenylisted=s,Li.popContext=function(){this.contexts.pop(),this.contexts.length>0?this.setContext(this.contexts[this.contexts.length-1]):this.setContext(void 0)},Li.pushContext=function(e){this.contexts.push(e),this.setContext(e)},Li.requeue=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this;if(e.removed)return;var t=this.contexts;for(var r of t)r.maybeQueue(e)},Li.requeueComputedKeyAndDecorators=function(){var{context:e,node:t}=this;!i.isPrivate(t)&&t.computed&&e.maybeQueue(this.get("key"));if(t.decorators)for(var r of this.get("decorators"))e.maybeQueue(r)},Li.resync=function(){if(this.removed)return;p.call(this),u.call(this),c.call(this)},Li.setContext=function(e){null!=this.skipKeys&&(this.skipKeys={});this._traverseFlags=0,e&&(this.context=e,this.state=e.state,this.opts=e.opts);return l.call(this),this},Li.setKey=h,Li.setScope=l,Li.setup=function(e,t,r,i){this.listKey=r,this.container=t,this.parentPath=e||this.parentPath,h.call(this,i)},Li.skip=function(){this.shouldSkip=!0},Li.skipKey=function(e){null==this.skipKeys&&(this.skipKeys={});this.skipKeys[e]=!0},Li.stop=function(){this._traverseFlags|=t.SHOULD_SKIP|t.SHOULD_STOP},Li.visit=function(){var t,r;if(!this.node)return!1;if(this.isDenylisted())return!1;if(null!=(t=(r=this.opts).shouldSkip)&&t.call(r,this))return!1;var i=this.context;if(this.shouldSkip||n.call(this,"enter"))return this.debug("Skip..."),this.shouldStop;return o(this,i),this.debug("Recursing into..."),this.shouldStop=(0,e.traverseNode)(this.node,this.opts,this.scope,this.state,this,this.skipKeys),o(this,i),n.call(this,"exit"),this.shouldStop};var e=Lo(),t=_o(),r=js(),i=Oi();function n(e){var t,r=this.opts;return this.debug(e),!(!this.node||!a.call(this,r[e]))||!!this.node&&a.call(this,null==(t=r[this.node.type])?void 0:t[e])}function a(e){if(!e)return!1;for(var t of e)if(t){var r=this.node;if(!r)return!0;var i=t.call(this.state,this,this.state);if(i&&"object"==typeof i&&"function"==typeof i.then)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 ".concat(t));if(this.node!==r)return!0;if(this._traverseFlags>0)return!0}return!1}function s(){var e,t=null!=(e=this.opts.denylist)?e:this.opts.blacklist;return null==t?void 0:t.includes(this.node.type)}function o(e,t){e.context!==t&&(e.context=t,e.state=t.state,e.opts=t.opts)}function l(){var e,t;if(null==(e=this.opts)||!e.noScope){var r,i=this.parentPath;for((("key"===this.key||"decorators"===this.listKey)&&i.isMethod()||"discriminant"===this.key&&i.isSwitchStatement())&&(i=i.parentPath);i&&!r;){var n;if(null!=(n=i.opts)&&n.noScope)return;r=i.scope,i=i.parentPath}this.scope=this.getScope(r),null==(t=this.scope)||t.init()}}function p(){this.parentPath&&(this.parent=this.parentPath.node)}function c(){if(this.container&&this.node!==this.container[this.key]){if(Array.isArray(this.container)){for(var e=0;e<this.container.length;e++)if(this.container[e]===this.node)return void h.call(this,e)}else for(var t of Object.keys(this.container))if(this.container[t]===this.node)return void h.call(this,t);this.key=null}}function u(){if(this.parent&&this.inList){var e=this.parent[this.listKey];this.container!==e&&(this.container=e||null)}}function h(e){var t;this.key=e,this.node=this.container[this.key],this.type=null==(t=this.node)?void 0:t.type}return Li.isBlacklisted=s,Li}var Fo,Bo,jo={};function Ro(){return Bo||(Bo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Hub",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"NodePath",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return s.default}}),e.visitors=e.default=void 0,Mo();var t=rn();e.visitors=t;var r=Oi(),i=cn(),n=Lo(),a=_o(),s=fn(),o=(Fo||(Fo=1,Object.defineProperty(jo,"__esModule",{value:!0}),jo.default=void 0,jo.default=class{getCode(){}getScope(){}addHelper(){throw new Error("Helpers are not supported by the default hub.")}buildError(e,t){return new(arguments.length>2&&void 0!==arguments[2]?arguments[2]:TypeError)(t)}}),jo),{VISITOR_KEYS:l,removeProperties:p,traverseFast:c}=r;function u(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,s=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0;if(e){if(!r.noScope&&!i&&"Program"!==e.type&&"File"!==e.type)throw new Error("You must pass a scope and parentPath unless traversing a Program/File. "+"Instead of that you tried to traverse a ".concat(e.type," node without ")+"passing scope and parentPath.");if(!s&&o)throw new Error("visitSelf can only be used when providing a NodePath.");l[e.type]&&(t.explode(r),(0,n.traverseNode)(e,r,i,a,s,void 0,o))}}e.default=u,u.visitors=t,u.verify=t.verify,u.explode=t.explode,u.cheap=function(e,t){c(e,t)},u.node=function(e,t,r,i,a,s){(0,n.traverseNode)(e,t,r,i,a,s)},u.clearNode=function(e,t){p(e,t)},u.removeProperties=function(e,t){return c(e,u.clearNode,t),e},u.hasType=function(e,t,r){return(null==r||!r.includes(e.type))&&(e.type===t||c(e,(function(e){return null!=r&&r.includes(e.type)?c.skip:e.type===t?c.stop:void 0})))},u.cache=i}(_i)),_i}var Uo=Ro(),Ko=e({__proto__:null,default:f(Uo)},[Uo]);exports._assertClassBrand=r,exports._asyncGeneratorDelegate=function(e){var r={},i=!1;function n(r,n){return i=!0,n=new Promise((function(t){t(e[r](n))})),{done:!1,value:new t(n,1)}}return r["undefined"!=typeof Symbol&&Symbol.iterator||"@@iterator"]=function(){return this},r.next=function(e){return i?(i=!1,e):n("next",e)},"function"==typeof e.throw&&(r.throw=function(e){if(i)throw i=!1,e;return n("throw",e)}),"function"==typeof e.return&&(r.return=function(e){return i?(i=!1,e):n("return",e)}),r},exports._asyncIterator=function(e){var t,r,n,a=2;for("undefined"!=typeof Symbol&&(r=Symbol.asyncIterator,n=Symbol.iterator);a--;){if(r&&null!=(t=e[r]))return t.call(e);if(n&&null!=(t=e[n]))return new i(t.call(e));r="@@asyncIterator",n="@@iterator"}throw new TypeError("Object is not async iterable")},exports._asyncToGenerator=function(e){return function(){var t=this,r=arguments;return new Promise((function(i,a){var s=e.apply(t,r);function o(e){n(s,i,a,o,l,"next",e)}function l(e){n(s,i,a,o,l,"throw",e)}o(void 0)}))}},exports._awaitAsyncGenerator=function(e){return new t(e,0)},exports._classPrivateFieldGet2=function(e,t){return e.get(r(e,t))},exports._classPrivateFieldInitSpec=function(e,t,r){a(e,t),t.set(e,r)},exports._classPrivateFieldSet2=function(e,t,i){return e.set(r(e,t),i),i},exports._classPrivateGetter=function(e,t,i){return i(r(e,t))},exports._classPrivateMethodInitSpec=function(e,t){a(e,t),t.add(e)},exports._defineProperty=s,exports._extends=o,exports._objectDestructuringEmpty=function(e){if(null==e)throw new TypeError("Cannot destructure "+e)},exports._objectSpread2=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach((function(t){s(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e},exports._objectWithoutProperties=function(e,t){if(null==e)return{};var r,i,n=function(e,t){if(null==e)return{};var r={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(-1!==t.indexOf(i))continue;r[i]=e[i]}return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n},exports._taggedTemplateLiteral=c,exports._wrapAsyncGenerator=function(e){return function(){return new u(e.apply(this,arguments))}},exports._wrapRegExp=h,exports.commonjsGlobal=d,exports.getDefaultExportFromCjs=f,exports.getDefaultExportFromNamespaceIfNotNamed=m,exports.index=k,exports.index$1=Ko,exports.process=A,exports.requireLib=Oi;