@mongodb-js/compass-web 0.32.0 → 0.33.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/dist/118.e053f5cd27a6e79a2160.mjs +2 -0
  2. package/dist/230.e76b85a956b5ff0706c2.mjs +2 -0
  3. package/dist/230.e76b85a956b5ff0706c2.mjs.LICENSE.txt +6 -0
  4. package/dist/441.5fc410ee58ba58d47fe4.mjs +1 -0
  5. package/dist/48.be0392778da3c0562c52.mjs +1 -0
  6. package/dist/498.daea3dd5edc53dc0e66a.mjs +2 -0
  7. package/dist/498.daea3dd5edc53dc0e66a.mjs.LICENSE.txt +16 -0
  8. package/dist/544.d44513cb6f77c37e5b28.mjs +2 -0
  9. package/dist/544.d44513cb6f77c37e5b28.mjs.LICENSE.txt +8 -0
  10. package/dist/575.e6ea1ed27328d76d52dd.mjs +378 -0
  11. package/dist/699.7f14395b39c971cc925a.mjs +2 -0
  12. package/dist/{752.be311c1a6bd153169544.mjs.LICENSE.txt → 699.7f14395b39c971cc925a.mjs.LICENSE.txt} +7 -7
  13. package/dist/73.8077b03a81cbf9ba8573.mjs +2 -0
  14. package/dist/{170.0c7c13457f8ab6403681.mjs.LICENSE.txt → 73.8077b03a81cbf9ba8573.mjs.LICENSE.txt} +0 -9
  15. package/dist/745.mjs +1 -0
  16. package/dist/917.5b479086294f58103ccc.mjs +23 -0
  17. package/dist/{651.0fd082f957775274f3cb.mjs.LICENSE.txt → 917.5b479086294f58103ccc.mjs.LICENSE.txt} +23 -0
  18. package/dist/922.mjs +1 -0
  19. package/dist/assets-manifest.json +11 -9
  20. package/dist/compass-web.d.ts +3 -2
  21. package/dist/compass-web.mjs +25 -25
  22. package/dist/index-bde52cb3.4e8bced0562abda72f91.mjs +1 -0
  23. package/package.json +43 -42
  24. package/dist/17.362fcb811ee2ff871d32.mjs +0 -2
  25. package/dist/170.0c7c13457f8ab6403681.mjs +0 -2
  26. package/dist/285.2ddf9e15aaf11bb22b0e.mjs +0 -2
  27. package/dist/285.2ddf9e15aaf11bb22b0e.mjs.LICENSE.txt +0 -5
  28. package/dist/427.ea0869d385dd7ebc1ee3.mjs +0 -2
  29. package/dist/427.ea0869d385dd7ebc1ee3.mjs.LICENSE.txt +0 -6
  30. package/dist/638.dc747e993cad73ab20a0.mjs +0 -372
  31. package/dist/651.0fd082f957775274f3cb.mjs +0 -23
  32. package/dist/752.be311c1a6bd153169544.mjs +0 -2
  33. package/dist/955.d2cd8c12c1697a9c2d41.mjs +0 -2
  34. package/dist/955.d2cd8c12c1697a9c2d41.mjs.LICENSE.txt +0 -13
  35. package/dist/index-bde52cb3.0f5ab0c9a2dfc578bd9d.mjs +0 -1
  36. /package/dist/{17.362fcb811ee2ff871d32.mjs.LICENSE.txt → 118.e053f5cd27a6e79a2160.mjs.LICENSE.txt} +0 -0
  37. /package/dist/{638.dc747e993cad73ab20a0.mjs.LICENSE.txt → 575.e6ea1ed27328d76d52dd.mjs.LICENSE.txt} +0 -0
@@ -1,2 +0,0 @@
1
- /*! For license information please see 427.ea0869d385dd7ebc1ee3.mjs.LICENSE.txt */
2
- export const __webpack_esm_id__=427;export const __webpack_esm_ids__=[427];export const __webpack_esm_modules__={249:function(e,t,i){var r;!function(e,t,i){var r,n=Object.create,s=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,l=Object.getPrototypeOf,p=Object.prototype.hasOwnProperty,c=(e,t)=>function(){return t||(0,e[o(e)[0]])((t={exports:{}}).exports,t),t.exports},u=(e,t,i,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let n of o(t))p.call(e,n)||n===i||s(e,n,{get:()=>t[n],enumerable:!(r=a(t,n))||r.enumerable});return e},h=(e,t,i)=>(i=null!=e?n(l(e)):{},u(!t&&e&&e.__esModule?i:s(i,"default",{value:e,enumerable:!0}),e)),d=c({"umd:@jridgewell/sourcemap-codec"(e,i){i.exports=t}}),f=c({"umd:@jridgewell/trace-mapping"(e,t){t.exports=i}}),m={};((e,t)=>{for(var i in t)s(e,i,{get:t[i],enumerable:!0})})(m,{GenMapping:()=>I,addMapping:()=>N,addSegment:()=>C,allMappings:()=>F,fromMap:()=>B,maybeAddMapping:()=>k,maybeAddSegment:()=>O,setIgnore:()=>M,setSourceContent:()=>_,toDecodedMap:()=>L,toEncodedMap:()=>D}),e.exports=(r=m,u(s({},"__esModule",{value:!0}),r));var y=class{constructor(){this._indexes={__proto__:null},this.array=[]}};function T(e,t){return e._indexes[t]}function g(e,t){const i=T(e,t);if(void 0!==i)return i;const{array:r,_indexes:n}=e,s=r.push(t);return n[t]=s-1}var b=h(d()),S=h(f()),x=0,E=1,v=2,P=3,w=4,A=-1,I=class{constructor({file:e,sourceRoot:t}={}){this._names=new y,this._sources=new y,this._sourcesContent=[],this._mappings=[],this.file=e,this.sourceRoot=t,this._ignoreList=new y}};function C(e,t,i,r,n,s,a,o){return j(!1,e,t,i,r,n,s,a,o)}function N(e,t){return V(!1,e,t)}var O=(e,t,i,r,n,s,a,o)=>j(!0,e,t,i,r,n,s,a,o),k=(e,t)=>V(!0,e,t);function _(e,t,i){const{_sources:r,_sourcesContent:n}=e;n[g(r,t)]=i}function M(e,t,i=!0){const{_sources:r,_sourcesContent:n,_ignoreList:s}=e,a=g(r,t);a===n.length&&(n[a]=null),i?g(s,a):function(e,t){const i=T(e,t);if(void 0===i)return;const{array:r,_indexes:n}=e;for(let e=i+1;e<r.length;e++){const t=r[e];r[e-1]=t,n[t]--}n[t]=void 0,r.pop()}(s,a)}function L(e){const{_mappings:t,_sources:i,_sourcesContent:r,_names:n,_ignoreList:s}=e;return function(e){const{length:t}=e;let i=t;for(let t=i-1;t>=0&&!(e[t].length>0);i=t,t--);i<t&&(e.length=i)}(t),{version:3,file:e.file||void 0,names:n.array,sourceRoot:e.sourceRoot||void 0,sources:i.array,sourcesContent:r,mappings:t,ignoreList:s.array}}function D(e){const t=L(e);return Object.assign({},t,{mappings:(0,b.encode)(t.mappings)})}function B(e){const t=new S.TraceMap(e),i=new I({file:t.file,sourceRoot:t.sourceRoot});return U(i._names,t.names),U(i._sources,t.sources),i._sourcesContent=t.sourcesContent||t.sources.map((()=>null)),i._mappings=(0,S.decodedMappings)(t),t.ignoreList&&U(i._ignoreList,t.ignoreList),i}function F(e){const t=[],{_mappings:i,_sources:r,_names:n}=e;for(let e=0;e<i.length;e++){const s=i[e];for(let i=0;i<s.length;i++){const a=s[i],o={line:e+1,column:a[x]};let l,p,c;1!==a.length&&(l=r.array[a[E]],p={line:a[v]+1,column:a[P]},5===a.length&&(c=n.array[a[w]])),t.push({generated:o,source:l,original:p,name:c})}}return t}function j(e,t,i,r,n,s,a,o,l){const{_mappings:p,_sources:c,_sourcesContent:u,_names:h}=t,d=function(e,t){for(let i=e.length;i<=t;i++)e[i]=[];return e[t]}(p,i),f=function(e,t){let i=e.length;for(let r=i-1;r>=0&&!(t>=e[r][x]);i=r--);return i}(d,r);if(!n){if(e&&function(e,t){return 0===t||1===e[t-1].length}(d,f))return;return R(d,f,[r])}const m=g(c,n),y=o?g(h,o):A;if(m===u.length&&(u[m]=null!=l?l:null),!e||!function(e,t,i,r,n,s){if(0===t)return!1;const a=e[t-1];return 1!==a.length&&i===a[E]&&r===a[v]&&n===a[P]&&s===(5===a.length?a[w]:A)}(d,f,m,s,a,y))return R(d,f,o?[r,m,s,a,y]:[r,m,s,a])}function R(e,t,i){for(let i=e.length;i>t;i--)e[i]=e[i-1];e[t]=i}function U(e,t){for(let i=0;i<t.length;i++)g(e,t[i])}function V(e,t,i){const{generated:r,source:n,original:s,name:a,content:o}=i;return n?j(e,t,r.line-1,r.column,n,s.line-1,s.column,a,o):j(e,t,r.line-1,r.column,null,null,null,null,null)}}(e=i.nmd(e),i(31997),i(5981)),e.exports="default"in(r=e).exports?r.exports.default:r.exports},372:(e,t,i)=>{var r;function n(e){this.rand=e}if(e.exports=function(e){return r||(r=new n(null)),r.generate(e)},e.exports.Rand=n,n.prototype.generate=function(e){return this._rand(e)},n.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),i=0;i<t.length;i++)t[i]=this.rand.getByte();return t},"object"==typeof self)self.crypto&&self.crypto.getRandomValues?n.prototype._rand=function(e){var t=new Uint8Array(e);return self.crypto.getRandomValues(t),t}:self.msCrypto&&self.msCrypto.getRandomValues?n.prototype._rand=function(e){var t=new Uint8Array(e);return self.msCrypto.getRandomValues(t),t}:"object"==typeof window&&(n.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var s=i(27348);if("function"!=typeof s.randomBytes)throw new Error("Not supported");n.prototype._rand=function(e){return s.randomBytes(e)}}catch(e){}},479:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(!e||!t)return e;for(const i of r.INHERIT_KEYS.optional)null==e[i]&&(e[i]=t[i]);for(const i of Object.keys(t))"_"===i[0]&&"__clone"!==i&&(e[i]=t[i]);for(const i of r.INHERIT_KEYS.force)e[i]=t[i];return(0,n.default)(e,t),e};var r=i(62811),n=i(60616)},496:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.JSXIdentifier=t.JSXFragment=t.JSXExpressionContainer=t.JSXEmptyExpression=t.JSXElement=t.JSXClosingFragment=t.JSXClosingElement=t.JSXAttribute=t.IntersectionTypeAnnotation=t.InterpreterDirective=t.InterfaceTypeAnnotation=t.InterfaceExtends=t.InterfaceDeclaration=t.InferredPredicate=t.IndexedAccessType=t.ImportSpecifier=t.ImportNamespaceSpecifier=t.ImportExpression=t.ImportDefaultSpecifier=t.ImportDeclaration=t.ImportAttribute=t.Import=t.IfStatement=t.Identifier=t.GenericTypeAnnotation=t.FunctionTypeParam=t.FunctionTypeAnnotation=t.FunctionExpression=t.FunctionDeclaration=t.ForStatement=t.ForOfStatement=t.ForInStatement=t.File=t.ExpressionStatement=t.ExportSpecifier=t.ExportNamespaceSpecifier=t.ExportNamedDeclaration=t.ExportDefaultSpecifier=t.ExportDefaultDeclaration=t.ExportAllDeclaration=t.ExistsTypeAnnotation=t.EnumSymbolBody=t.EnumStringMember=t.EnumStringBody=t.EnumNumberMember=t.EnumNumberBody=t.EnumDefaultedMember=t.EnumDeclaration=t.EnumBooleanMember=t.EnumBooleanBody=t.EmptyTypeAnnotation=t.EmptyStatement=t.DoWhileStatement=t.DoExpression=t.DirectiveLiteral=t.Directive=t.Decorator=t.DeclaredPredicate=t.DeclareVariable=t.DeclareTypeAlias=t.DeclareOpaqueType=t.DeclareModuleExports=t.DeclareModule=t.DeclareInterface=t.DeclareFunction=t.DeclareExportDeclaration=t.DeclareExportAllDeclaration=t.DeclareClass=t.DecimalLiteral=t.DebuggerStatement=t.ContinueStatement=t.ConditionalExpression=t.ClassProperty=t.ClassPrivateProperty=t.ClassPrivateMethod=t.ClassMethod=t.ClassImplements=t.ClassExpression=t.ClassDeclaration=t.ClassBody=t.ClassAccessorProperty=t.CatchClause=t.CallExpression=t.BreakStatement=t.BooleanTypeAnnotation=t.BooleanLiteralTypeAnnotation=t.BooleanLiteral=t.BlockStatement=t.BindExpression=t.BinaryExpression=t.BigIntLiteral=t.AwaitExpression=t.AssignmentPattern=t.AssignmentExpression=t.ArrowFunctionExpression=t.ArrayTypeAnnotation=t.ArrayPattern=t.ArrayExpression=t.ArgumentPlaceholder=t.AnyTypeAnnotation=void 0,t.TSNumberKeyword=t.TSNullKeyword=t.TSNonNullExpression=t.TSNeverKeyword=t.TSNamespaceExportDeclaration=t.TSNamedTupleMember=t.TSModuleDeclaration=t.TSModuleBlock=t.TSMethodSignature=t.TSMappedType=t.TSLiteralType=t.TSIntrinsicKeyword=t.TSIntersectionType=t.TSInterfaceDeclaration=t.TSInterfaceBody=t.TSInstantiationExpression=t.TSInferType=t.TSIndexedAccessType=t.TSIndexSignature=t.TSImportType=t.TSImportEqualsDeclaration=t.TSFunctionType=t.TSExternalModuleReference=t.TSExpressionWithTypeArguments=t.TSExportAssignment=t.TSEnumMember=t.TSEnumDeclaration=t.TSEnumBody=t.TSDeclareMethod=t.TSDeclareFunction=t.TSConstructorType=t.TSConstructSignatureDeclaration=t.TSConditionalType=t.TSCallSignatureDeclaration=t.TSBooleanKeyword=t.TSBigIntKeyword=t.TSAsExpression=t.TSArrayType=t.TSAnyKeyword=t.SymbolTypeAnnotation=t.SwitchStatement=t.SwitchCase=t.Super=t.StringTypeAnnotation=t.StringLiteralTypeAnnotation=t.StringLiteral=t.StaticBlock=t.SpreadProperty=t.SpreadElement=t.SequenceExpression=t.ReturnStatement=t.RestProperty=t.RestElement=t.RegexLiteral=t.RegExpLiteral=t.RecordExpression=t.QualifiedTypeIdentifier=t.Program=t.PrivateName=t.Placeholder=t.PipelineTopicExpression=t.PipelinePrimaryTopicReference=t.PipelineBareFunction=t.ParenthesizedExpression=t.OptionalMemberExpression=t.OptionalIndexedAccessType=t.OptionalCallExpression=t.OpaqueType=t.ObjectTypeSpreadProperty=t.ObjectTypeProperty=t.ObjectTypeInternalSlot=t.ObjectTypeIndexer=t.ObjectTypeCallProperty=t.ObjectTypeAnnotation=t.ObjectProperty=t.ObjectPattern=t.ObjectMethod=t.ObjectExpression=t.NumericLiteral=t.NumberTypeAnnotation=t.NumberLiteralTypeAnnotation=t.NumberLiteral=t.NullableTypeAnnotation=t.NullLiteralTypeAnnotation=t.NullLiteral=t.Noop=t.NewExpression=t.ModuleExpression=t.MixedTypeAnnotation=t.MetaProperty=t.MemberExpression=t.LogicalExpression=t.LabeledStatement=t.JSXText=t.JSXSpreadChild=t.JSXSpreadAttribute=t.JSXOpeningFragment=t.JSXOpeningElement=t.JSXNamespacedName=t.JSXMemberExpression=void 0,t.YieldExpression=t.WithStatement=t.WhileStatement=t.VoidTypeAnnotation=t.VoidPattern=t.Variance=t.VariableDeclarator=t.VariableDeclaration=t.V8IntrinsicIdentifier=t.UpdateExpression=t.UnionTypeAnnotation=t.UnaryExpression=t.TypeofTypeAnnotation=t.TypeParameterInstantiation=t.TypeParameterDeclaration=t.TypeParameter=t.TypeCastExpression=t.TypeAnnotation=t.TypeAlias=t.TupleTypeAnnotation=t.TupleExpression=t.TryStatement=t.TopicReference=t.ThrowStatement=t.ThisTypeAnnotation=t.ThisExpression=t.TemplateLiteral=t.TemplateElement=t.TaggedTemplateExpression=t.TSVoidKeyword=t.TSUnknownKeyword=t.TSUnionType=t.TSUndefinedKeyword=t.TSTypeReference=t.TSTypeQuery=t.TSTypePredicate=t.TSTypeParameterInstantiation=t.TSTypeParameterDeclaration=t.TSTypeParameter=t.TSTypeOperator=t.TSTypeLiteral=t.TSTypeAssertion=t.TSTypeAnnotation=t.TSTypeAliasDeclaration=t.TSTupleType=t.TSThisType=t.TSTemplateLiteralType=t.TSSymbolKeyword=t.TSStringKeyword=t.TSSatisfiesExpression=t.TSRestType=t.TSQualifiedName=t.TSPropertySignature=t.TSParenthesizedType=t.TSParameterProperty=t.TSOptionalType=t.TSObjectKeyword=void 0;var r=i(52625);function n(e){return r[e]}i(74641),t.ArrayExpression=n("arrayExpression"),t.AssignmentExpression=n("assignmentExpression"),t.BinaryExpression=n("binaryExpression"),t.InterpreterDirective=n("interpreterDirective"),t.Directive=n("directive"),t.DirectiveLiteral=n("directiveLiteral"),t.BlockStatement=n("blockStatement"),t.BreakStatement=n("breakStatement"),t.CallExpression=n("callExpression"),t.CatchClause=n("catchClause"),t.ConditionalExpression=n("conditionalExpression"),t.ContinueStatement=n("continueStatement"),t.DebuggerStatement=n("debuggerStatement"),t.DoWhileStatement=n("doWhileStatement"),t.EmptyStatement=n("emptyStatement"),t.ExpressionStatement=n("expressionStatement"),t.File=n("file"),t.ForInStatement=n("forInStatement"),t.ForStatement=n("forStatement"),t.FunctionDeclaration=n("functionDeclaration"),t.FunctionExpression=n("functionExpression"),t.Identifier=n("identifier"),t.IfStatement=n("ifStatement"),t.LabeledStatement=n("labeledStatement"),t.StringLiteral=n("stringLiteral"),t.NumericLiteral=n("numericLiteral"),t.NullLiteral=n("nullLiteral"),t.BooleanLiteral=n("booleanLiteral"),t.RegExpLiteral=n("regExpLiteral"),t.LogicalExpression=n("logicalExpression"),t.MemberExpression=n("memberExpression"),t.NewExpression=n("newExpression"),t.Program=n("program"),t.ObjectExpression=n("objectExpression"),t.ObjectMethod=n("objectMethod"),t.ObjectProperty=n("objectProperty"),t.RestElement=n("restElement"),t.ReturnStatement=n("returnStatement"),t.SequenceExpression=n("sequenceExpression"),t.ParenthesizedExpression=n("parenthesizedExpression"),t.SwitchCase=n("switchCase"),t.SwitchStatement=n("switchStatement"),t.ThisExpression=n("thisExpression"),t.ThrowStatement=n("throwStatement"),t.TryStatement=n("tryStatement"),t.UnaryExpression=n("unaryExpression"),t.UpdateExpression=n("updateExpression"),t.VariableDeclaration=n("variableDeclaration"),t.VariableDeclarator=n("variableDeclarator"),t.WhileStatement=n("whileStatement"),t.WithStatement=n("withStatement"),t.AssignmentPattern=n("assignmentPattern"),t.ArrayPattern=n("arrayPattern"),t.ArrowFunctionExpression=n("arrowFunctionExpression"),t.ClassBody=n("classBody"),t.ClassExpression=n("classExpression"),t.ClassDeclaration=n("classDeclaration"),t.ExportAllDeclaration=n("exportAllDeclaration"),t.ExportDefaultDeclaration=n("exportDefaultDeclaration"),t.ExportNamedDeclaration=n("exportNamedDeclaration"),t.ExportSpecifier=n("exportSpecifier"),t.ForOfStatement=n("forOfStatement"),t.ImportDeclaration=n("importDeclaration"),t.ImportDefaultSpecifier=n("importDefaultSpecifier"),t.ImportNamespaceSpecifier=n("importNamespaceSpecifier"),t.ImportSpecifier=n("importSpecifier"),t.ImportExpression=n("importExpression"),t.MetaProperty=n("metaProperty"),t.ClassMethod=n("classMethod"),t.ObjectPattern=n("objectPattern"),t.SpreadElement=n("spreadElement"),t.Super=n("super"),t.TaggedTemplateExpression=n("taggedTemplateExpression"),t.TemplateElement=n("templateElement"),t.TemplateLiteral=n("templateLiteral"),t.YieldExpression=n("yieldExpression"),t.AwaitExpression=n("awaitExpression"),t.Import=n("import"),t.BigIntLiteral=n("bigIntLiteral"),t.ExportNamespaceSpecifier=n("exportNamespaceSpecifier"),t.OptionalMemberExpression=n("optionalMemberExpression"),t.OptionalCallExpression=n("optionalCallExpression"),t.ClassProperty=n("classProperty"),t.ClassAccessorProperty=n("classAccessorProperty"),t.ClassPrivateProperty=n("classPrivateProperty"),t.ClassPrivateMethod=n("classPrivateMethod"),t.PrivateName=n("privateName"),t.StaticBlock=n("staticBlock"),t.ImportAttribute=n("importAttribute"),t.AnyTypeAnnotation=n("anyTypeAnnotation"),t.ArrayTypeAnnotation=n("arrayTypeAnnotation"),t.BooleanTypeAnnotation=n("booleanTypeAnnotation"),t.BooleanLiteralTypeAnnotation=n("booleanLiteralTypeAnnotation"),t.NullLiteralTypeAnnotation=n("nullLiteralTypeAnnotation"),t.ClassImplements=n("classImplements"),t.DeclareClass=n("declareClass"),t.DeclareFunction=n("declareFunction"),t.DeclareInterface=n("declareInterface"),t.DeclareModule=n("declareModule"),t.DeclareModuleExports=n("declareModuleExports"),t.DeclareTypeAlias=n("declareTypeAlias"),t.DeclareOpaqueType=n("declareOpaqueType"),t.DeclareVariable=n("declareVariable"),t.DeclareExportDeclaration=n("declareExportDeclaration"),t.DeclareExportAllDeclaration=n("declareExportAllDeclaration"),t.DeclaredPredicate=n("declaredPredicate"),t.ExistsTypeAnnotation=n("existsTypeAnnotation"),t.FunctionTypeAnnotation=n("functionTypeAnnotation"),t.FunctionTypeParam=n("functionTypeParam"),t.GenericTypeAnnotation=n("genericTypeAnnotation"),t.InferredPredicate=n("inferredPredicate"),t.InterfaceExtends=n("interfaceExtends"),t.InterfaceDeclaration=n("interfaceDeclaration"),t.InterfaceTypeAnnotation=n("interfaceTypeAnnotation"),t.IntersectionTypeAnnotation=n("intersectionTypeAnnotation"),t.MixedTypeAnnotation=n("mixedTypeAnnotation"),t.EmptyTypeAnnotation=n("emptyTypeAnnotation"),t.NullableTypeAnnotation=n("nullableTypeAnnotation"),t.NumberLiteralTypeAnnotation=n("numberLiteralTypeAnnotation"),t.NumberTypeAnnotation=n("numberTypeAnnotation"),t.ObjectTypeAnnotation=n("objectTypeAnnotation"),t.ObjectTypeInternalSlot=n("objectTypeInternalSlot"),t.ObjectTypeCallProperty=n("objectTypeCallProperty"),t.ObjectTypeIndexer=n("objectTypeIndexer"),t.ObjectTypeProperty=n("objectTypeProperty"),t.ObjectTypeSpreadProperty=n("objectTypeSpreadProperty"),t.OpaqueType=n("opaqueType"),t.QualifiedTypeIdentifier=n("qualifiedTypeIdentifier"),t.StringLiteralTypeAnnotation=n("stringLiteralTypeAnnotation"),t.StringTypeAnnotation=n("stringTypeAnnotation"),t.SymbolTypeAnnotation=n("symbolTypeAnnotation"),t.ThisTypeAnnotation=n("thisTypeAnnotation"),t.TupleTypeAnnotation=n("tupleTypeAnnotation"),t.TypeofTypeAnnotation=n("typeofTypeAnnotation"),t.TypeAlias=n("typeAlias"),t.TypeAnnotation=n("typeAnnotation"),t.TypeCastExpression=n("typeCastExpression"),t.TypeParameter=n("typeParameter"),t.TypeParameterDeclaration=n("typeParameterDeclaration"),t.TypeParameterInstantiation=n("typeParameterInstantiation"),t.UnionTypeAnnotation=n("unionTypeAnnotation"),t.Variance=n("variance"),t.VoidTypeAnnotation=n("voidTypeAnnotation"),t.EnumDeclaration=n("enumDeclaration"),t.EnumBooleanBody=n("enumBooleanBody"),t.EnumNumberBody=n("enumNumberBody"),t.EnumStringBody=n("enumStringBody"),t.EnumSymbolBody=n("enumSymbolBody"),t.EnumBooleanMember=n("enumBooleanMember"),t.EnumNumberMember=n("enumNumberMember"),t.EnumStringMember=n("enumStringMember"),t.EnumDefaultedMember=n("enumDefaultedMember"),t.IndexedAccessType=n("indexedAccessType"),t.OptionalIndexedAccessType=n("optionalIndexedAccessType"),t.JSXAttribute=n("jsxAttribute"),t.JSXClosingElement=n("jsxClosingElement"),t.JSXElement=n("jsxElement"),t.JSXEmptyExpression=n("jsxEmptyExpression"),t.JSXExpressionContainer=n("jsxExpressionContainer"),t.JSXSpreadChild=n("jsxSpreadChild"),t.JSXIdentifier=n("jsxIdentifier"),t.JSXMemberExpression=n("jsxMemberExpression"),t.JSXNamespacedName=n("jsxNamespacedName"),t.JSXOpeningElement=n("jsxOpeningElement"),t.JSXSpreadAttribute=n("jsxSpreadAttribute"),t.JSXText=n("jsxText"),t.JSXFragment=n("jsxFragment"),t.JSXOpeningFragment=n("jsxOpeningFragment"),t.JSXClosingFragment=n("jsxClosingFragment"),t.Noop=n("noop"),t.Placeholder=n("placeholder"),t.V8IntrinsicIdentifier=n("v8IntrinsicIdentifier"),t.ArgumentPlaceholder=n("argumentPlaceholder"),t.BindExpression=n("bindExpression"),t.Decorator=n("decorator"),t.DoExpression=n("doExpression"),t.ExportDefaultSpecifier=n("exportDefaultSpecifier"),t.RecordExpression=n("recordExpression"),t.TupleExpression=n("tupleExpression"),t.DecimalLiteral=n("decimalLiteral"),t.ModuleExpression=n("moduleExpression"),t.TopicReference=n("topicReference"),t.PipelineTopicExpression=n("pipelineTopicExpression"),t.PipelineBareFunction=n("pipelineBareFunction"),t.PipelinePrimaryTopicReference=n("pipelinePrimaryTopicReference"),t.VoidPattern=n("voidPattern"),t.TSParameterProperty=n("tsParameterProperty"),t.TSDeclareFunction=n("tsDeclareFunction"),t.TSDeclareMethod=n("tsDeclareMethod"),t.TSQualifiedName=n("tsQualifiedName"),t.TSCallSignatureDeclaration=n("tsCallSignatureDeclaration"),t.TSConstructSignatureDeclaration=n("tsConstructSignatureDeclaration"),t.TSPropertySignature=n("tsPropertySignature"),t.TSMethodSignature=n("tsMethodSignature"),t.TSIndexSignature=n("tsIndexSignature"),t.TSAnyKeyword=n("tsAnyKeyword"),t.TSBooleanKeyword=n("tsBooleanKeyword"),t.TSBigIntKeyword=n("tsBigIntKeyword"),t.TSIntrinsicKeyword=n("tsIntrinsicKeyword"),t.TSNeverKeyword=n("tsNeverKeyword"),t.TSNullKeyword=n("tsNullKeyword"),t.TSNumberKeyword=n("tsNumberKeyword"),t.TSObjectKeyword=n("tsObjectKeyword"),t.TSStringKeyword=n("tsStringKeyword"),t.TSSymbolKeyword=n("tsSymbolKeyword"),t.TSUndefinedKeyword=n("tsUndefinedKeyword"),t.TSUnknownKeyword=n("tsUnknownKeyword"),t.TSVoidKeyword=n("tsVoidKeyword"),t.TSThisType=n("tsThisType"),t.TSFunctionType=n("tsFunctionType"),t.TSConstructorType=n("tsConstructorType"),t.TSTypeReference=n("tsTypeReference"),t.TSTypePredicate=n("tsTypePredicate"),t.TSTypeQuery=n("tsTypeQuery"),t.TSTypeLiteral=n("tsTypeLiteral"),t.TSArrayType=n("tsArrayType"),t.TSTupleType=n("tsTupleType"),t.TSOptionalType=n("tsOptionalType"),t.TSRestType=n("tsRestType"),t.TSNamedTupleMember=n("tsNamedTupleMember"),t.TSUnionType=n("tsUnionType"),t.TSIntersectionType=n("tsIntersectionType"),t.TSConditionalType=n("tsConditionalType"),t.TSInferType=n("tsInferType"),t.TSParenthesizedType=n("tsParenthesizedType"),t.TSTypeOperator=n("tsTypeOperator"),t.TSIndexedAccessType=n("tsIndexedAccessType"),t.TSMappedType=n("tsMappedType"),t.TSTemplateLiteralType=n("tsTemplateLiteralType"),t.TSLiteralType=n("tsLiteralType"),t.TSExpressionWithTypeArguments=n("tsExpressionWithTypeArguments"),t.TSInterfaceDeclaration=n("tsInterfaceDeclaration"),t.TSInterfaceBody=n("tsInterfaceBody"),t.TSTypeAliasDeclaration=n("tsTypeAliasDeclaration"),t.TSInstantiationExpression=n("tsInstantiationExpression"),t.TSAsExpression=n("tsAsExpression"),t.TSSatisfiesExpression=n("tsSatisfiesExpression"),t.TSTypeAssertion=n("tsTypeAssertion"),t.TSEnumBody=n("tsEnumBody"),t.TSEnumDeclaration=n("tsEnumDeclaration"),t.TSEnumMember=n("tsEnumMember"),t.TSModuleDeclaration=n("tsModuleDeclaration"),t.TSModuleBlock=n("tsModuleBlock"),t.TSImportType=n("tsImportType"),t.TSImportEqualsDeclaration=n("tsImportEqualsDeclaration"),t.TSExternalModuleReference=n("tsExternalModuleReference"),t.TSNonNullExpression=n("tsNonNullExpression"),t.TSExportAssignment=n("tsExportAssignment"),t.TSNamespaceExportDeclaration=n("tsNamespaceExportDeclaration"),t.TSTypeAnnotation=n("tsTypeAnnotation"),t.TSTypeParameterInstantiation=n("tsTypeParameterInstantiation"),t.TSTypeParameterDeclaration=n("tsTypeParameterDeclaration"),t.TSTypeParameter=n("tsTypeParameter"),t.NumberLiteral=r.numberLiteral,t.RegexLiteral=r.regexLiteral,t.RestProperty=r.restProperty,t.SpreadProperty=r.spreadProperty},517:(e,t,i)=>{var r=i(79696).Buffer;function n(e,t,i){for(var r,n,a=-1,o=0;++a<8;)r=t&1<<7-a?128:0,o+=(128&(n=e._cipher.encryptBlock(e._prev)[0]^r))>>a%8,e._prev=s(e._prev,i?r:n);return o}function s(e,t){var i=e.length,n=-1,s=r.allocUnsafe(e.length);for(e=r.concat([e,r.from([t])]);++n<i;)s[n]=e[n]<<1|e[n+1]>>7;return s}t.encrypt=function(e,t,i){for(var s=t.length,a=r.allocUnsafe(s),o=-1;++o<s;)a[o]=n(e,t[o],i);return a}},713:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(null==e||!e.length)return;const i=[],n=(0,r.default)(e,i);if(n){for(const e of i)t.push(e);return n}};var r=i(54390)},910:(e,t,i)=>{var r=i(53896),n=i(79696).Buffer,s=i(3663);function a(e){var t=e._cipher.encryptBlockRaw(e._prev);return s(e._prev),t}t.encrypt=function(e,t){var i=Math.ceil(t.length/16),s=e._cache.length;e._cache=n.concat([e._cache,n.allocUnsafe(16*i)]);for(var o=0;o<i;o++){var l=a(e),p=s+16*o;e._cache.writeUInt32BE(l[0],p+0),e._cache.writeUInt32BE(l[1],p+4),e._cache.writeUInt32BE(l[2],p+8),e._cache.writeUInt32BE(l[3],p+12)}var c=e._cache.slice(0,t.length);return e._cache=e._cache.slice(t.length),r(t,c)}},1123:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.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(let e=0;e<64;e++)this._fastIndentations.push(t.repeat(e));this._allocQueue()}_allocQueue(){const e=this._queue;for(let 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,i,r,n){const s=this._queueCursor;s===this._queue.length&&this._allocQueue();const a=this._queue[s];a.char=e,a.repeat=t,a.line=i,a.column=r,a.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();const e=this._map,t={code:(this._buf+this._str).trimRight(),decodedMap:null==e?void 0:e.getDecoded(),get __mergedMap(){return this.map},get map(){const i=e?e.get():null;return t.map=i,i},set map(e){Object.defineProperty(t,"map",{value:e,writable:!0})},get rawMappings(){const i=null==e?void 0:e.getRawMappings();return t.rawMappings=i,i},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;){const e=this._queue[this._queueCursor-1].char;if(32!==e&&9!==e)break;this._queueCursor--}const t=this._sourcePosition;this._pushQueue(e,1,t.line,t.column,t.filename)}queueIndentation(e){0!==e&&this._pushQueue(-1,e,void 0,void 0,void 0)}_flush(){const e=this._queueCursor,t=this._queue;for(let i=0;i<e;i++){const e=t[i];this._appendChar(e.char,e.repeat,e)}this._queueCursor=0}_appendChar(e,t,i){if(this._last=e,-1===e){const e=this._fastIndentations[t];this._str+=void 0!==e?e: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(i.line,i.column,i.identifierName,i.identifierNamePos,i.filename),this._position.column+=t):(this._position.line++,this._position.column=0),this._canMarkIdName&&(i.identifierName=void 0,i.identifierNamePos=void 0)}_append(e,t,i){const r=e.length,n=this._position;if(this._last=e.charCodeAt(r-1),++this._appendCount>4096?(this._str,this._buf+=this._str,this._str=e,this._appendCount=0):this._str+=e,!i&&!this._map)return void(n.column+=r);const{column:s,identifierName:a,identifierNamePos:o,filename:l}=t;let p=t.line;null==a&&null==o||!this._canMarkIdName||(t.identifierName=void 0,t.identifierNamePos=void 0);let c=e.indexOf("\n"),u=0;for(0!==c&&this._mark(p,s,a,o,l);-1!==c;)n.line++,n.column=0,u=c+1,u<r&&void 0!==p&&this._mark(++p,0,null,null,l),c=e.indexOf("\n",u);n.column+=r-u}_mark(e,t,i,r,n){var s;null==(s=this._map)||s.mark(this._position,e,t,i,r,n)}removeTrailingNewline(){const e=this._queueCursor;0!==e&&10===this._queue[e-1].char&&this._queueCursor--}removeLastSemicolon(){const e=this._queueCursor;0!==e&&59===this._queue[e-1].char&&this._queueCursor--}getLastChar(){const e=this._queueCursor;return 0!==e?this._queue[e-1].char:this._last}getNewlineCount(){const e=this._queueCursor;let t=0;if(0===e)return 10===this._last?1:0;for(let i=e-1;i>=0&&10===this._queue[i].char;i--)t++;return t===e&&10===this._last?t+1:t}endsWithCharAndNewline(){const 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)return void t();this.source("start",e);const i=e.identifierName,r=this._sourcePosition;i&&(this._canMarkIdName=!1,r.identifierName=i),t(),i&&(this._canMarkIdName=!0,r.identifierName=void 0,r.identifierNamePos=void 0),this.source("end",e)}source(e,t){this._map&&this._normalizePosition(e,t,0)}sourceWithOffset(e,t,i){this._map&&this._normalizePosition(e,t,i)}_normalizePosition(e,t,i){const r=t[e],n=this._sourcePosition;r&&(n.line=r.line,n.column=Math.max(r.column+i,0),n.filename=t.filename)}getCurrentColumn(){const e=this._queue,t=this._queueCursor;let i=-1,r=0;for(let n=0;n<t;n++){const t=e[n];10===t.char&&(i=r),r+=t.repeat}return-1===i?this._position.column+r:r-1-i}getCurrentLine(){let e=0;const t=this._queue;for(let i=0;i<this._queueCursor;i++)10===t[i].char&&e++;return this._position.line+e}}},1582:(e,t,i)=>{var r=i(79696).Buffer;function n(e,t,i){var n=e._cipher.encryptBlock(e._prev)[0]^t;return e._prev=r.concat([e._prev.slice(1),r.from([i?t:n])]),n}t.encrypt=function(e,t,i){for(var s=t.length,a=r.allocUnsafe(s),o=-1;++o<s;)a[o]=n(e,t[o],i);return a}},1859:(e,t,i)=>{function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function n(e){var t=function(e){if("object"!=r(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,"string");if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==r(t)?t:t+""}i.d(t,{A:()=>n})},1972:(e,t,i)=>{var r=i(30462).Buffer,n=r.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function s(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!=typeof t&&(r.isEncoding===n||!n(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=l,this.end=p,t=4;break;case"utf8":this.fillLast=o,t=4;break;case"base64":this.text=c,this.end=u,t=3;break;default:return this.write=h,void(this.end=d)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function a(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function o(e){var t=this.lastTotal-this.lastNeed,i=function(e,t){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==i?i:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function l(e,t){if((e.length-t)%2==0){var i=e.toString("utf16le",t);if(i){var r=i.charCodeAt(i.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],i.slice(0,-1)}return i}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function p(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var i=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,i)}return t}function c(e,t){var i=(e.length-t)%3;return 0===i?e.toString("base64",t):(this.lastNeed=3-i,this.lastTotal=3,1===i?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-i))}function u(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function h(e){return e.toString(this.encoding)}function d(e){return e&&e.length?this.write(e):""}t.I=s,s.prototype.write=function(e){if(0===e.length)return"";var t,i;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";i=this.lastNeed,this.lastNeed=0}else i=0;return i<e.length?t?t+this.text(e,i):this.text(e,i):t||""},s.prototype.end=function(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"�":t},s.prototype.text=function(e,t){var i=function(e,t,i){var r=t.length-1;if(r<i)return 0;var n=a(t[r]);return n>=0?(n>0&&(e.lastNeed=n-1),n):--r<i||-2===n?0:(n=a(t[r]))>=0?(n>0&&(e.lastNeed=n-2),n):--r<i||-2===n?0:(n=a(t[r]))>=0?(n>0&&(2===n?n=0:e.lastNeed=n-3),n):0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=i;var r=e.length-(i-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)},s.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},3663:e=>{e.exports=function(e){for(var t,i=e.length;i--;){if(255!==(t=e.readUInt8(i))){t++,e.writeUInt8(t,i);break}e.writeUInt8(0,i)}}},3903:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){const i=Object.keys(t);for(const r of i)if(e[r]!==t[r])return!1;return!0}},3971:(e,t,i)=>{var r=i(65994).e,n=i(10626);e.exports=b;var s,a=i(49667);b.ReadableState=g,i(8763).EventEmitter;var o=function(e,t){return e.listeners(t).length},l=i(5372),p=i(58777).Buffer,c=(void 0!==i.g?i.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},u=Object.create(i(26571));u.inherits=i(25003);var h=i(98437),d=void 0;d=h&&h.debuglog?h.debuglog("stream"):function(){};var f,m=i(92339),y=i(89779);u.inherits(b,l);var T=["error","close","destroy","pause","resume"];function g(e,t){e=e||{};var r=t instanceof(s=s||i(49837));this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var n=e.highWaterMark,a=e.readableHighWaterMark,o=this.objectMode?16:16384;this.highWaterMark=n||0===n?n:r&&(a||0===a)?a:o,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new m,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(f||(f=i(1972).I),this.decoder=new f(e.encoding),this.encoding=e.encoding)}function b(e){if(s=s||i(49837),!(this instanceof b))return new b(e);this._readableState=new g(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),l.call(this)}function S(e,t,i,r,n){var s,a=e._readableState;return null===t?(a.reading=!1,function(e,t){if(!t.ended){if(t.decoder){var i=t.decoder.end();i&&i.length&&(t.buffer.push(i),t.length+=t.objectMode?1:i.length)}t.ended=!0,P(e)}}(e,a)):(n||(s=function(e,t){var i,r;return r=t,p.isBuffer(r)||r instanceof c||"string"==typeof t||void 0===t||e.objectMode||(i=new TypeError("Invalid non-string/buffer chunk")),i}(a,t)),s?e.emit("error",s):a.objectMode||t&&t.length>0?("string"==typeof t||a.objectMode||Object.getPrototypeOf(t)===p.prototype||(t=function(e){return p.from(e)}(t)),r?a.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):x(e,a,t,!0):a.ended?e.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!i?(t=a.decoder.write(t),a.objectMode||0!==t.length?x(e,a,t,!1):A(e,a)):x(e,a,t,!1))):r||(a.reading=!1)),function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(a)}function x(e,t,i,r){t.flowing&&0===t.length&&!t.sync?(e.emit("data",i),e.read(0)):(t.length+=t.objectMode?1:i.length,r?t.buffer.unshift(i):t.buffer.push(i),t.needReadable&&P(e)),A(e,t)}Object.defineProperty(b.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),b.prototype.destroy=y.destroy,b.prototype._undestroy=y.undestroy,b.prototype._destroy=function(e,t){this.push(null),t(e)},b.prototype.push=function(e,t){var i,r=this._readableState;return r.objectMode?i=!0:"string"==typeof e&&((t=t||r.defaultEncoding)!==r.encoding&&(e=p.from(e,t),t=""),i=!0),S(this,e,t,!1,i)},b.prototype.unshift=function(e){return S(this,e,null,!0,!1)},b.prototype.isPaused=function(){return!1===this._readableState.flowing},b.prototype.setEncoding=function(e){return f||(f=i(1972).I),this._readableState.decoder=new f(e),this._readableState.encoding=e,this};var E=8388608;function v(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=E?e=E:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function P(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(d("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?n.nextTick(w,e):w(e))}function w(e){d("emit readable"),e.emit("readable"),O(e)}function A(e,t){t.readingMore||(t.readingMore=!0,n.nextTick(I,e,t))}function I(e,t){for(var i=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(d("maybeReadMore read 0"),e.read(0),i!==t.length);)i=t.length;t.readingMore=!1}function C(e){d("readable nexttick read 0"),e.read(0)}function N(e,t){t.reading||(d("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),O(e),t.flowing&&!t.reading&&e.read(0)}function O(e){var t=e._readableState;for(d("flow",t.flowing);t.flowing&&null!==e.read(););}function k(e,t){return 0===t.length?null:(t.objectMode?i=t.buffer.shift():!e||e>=t.length?(i=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):i=function(e,t,i){var r;return e<t.head.data.length?(r=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):r=e===t.head.data.length?t.shift():i?function(e,t){var i=t.head,r=1,n=i.data;for(e-=n.length;i=i.next;){var s=i.data,a=e>s.length?s.length:e;if(a===s.length?n+=s:n+=s.slice(0,e),0==(e-=a)){a===s.length?(++r,i.next?t.head=i.next:t.head=t.tail=null):(t.head=i,i.data=s.slice(a));break}++r}return t.length-=r,n}(e,t):function(e,t){var i=p.allocUnsafe(e),r=t.head,n=1;for(r.data.copy(i),e-=r.data.length;r=r.next;){var s=r.data,a=e>s.length?s.length:e;if(s.copy(i,i.length-e,0,a),0==(e-=a)){a===s.length?(++n,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=s.slice(a));break}++n}return t.length-=n,i}(e,t),r}(e,t.buffer,t.decoder),i);var i}function _(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,n.nextTick(M,t,e))}function M(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function L(e,t){for(var i=0,r=e.length;i<r;i++)if(e[i]===t)return i;return-1}b.prototype.read=function(e){d("read",e),e=parseInt(e,10);var t=this._readableState,i=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return d("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?_(this):P(this),null;if(0===(e=v(e,t))&&t.ended)return 0===t.length&&_(this),null;var r,n=t.needReadable;return d("need readable",n),(0===t.length||t.length-e<t.highWaterMark)&&d("length less than watermark",n=!0),t.ended||t.reading?d("reading or ended",n=!1):n&&(d("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=v(i,t))),null===(r=e>0?k(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),i!==e&&t.ended&&_(this)),null!==r&&this.emit("data",r),r},b.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},b.prototype.pipe=function(e,t){var i=this,s=this._readableState;switch(s.pipesCount){case 0:s.pipes=e;break;case 1:s.pipes=[s.pipes,e];break;default:s.pipes.push(e)}s.pipesCount+=1,d("pipe count=%d opts=%j",s.pipesCount,t);var l=t&&!1===t.end||e===r.stdout||e===r.stderr?g:p;function p(){d("onend"),e.end()}s.endEmitted?n.nextTick(l):i.once("end",l),e.on("unpipe",(function t(r,n){d("onunpipe"),r===i&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,d("cleanup"),e.removeListener("close",y),e.removeListener("finish",T),e.removeListener("drain",c),e.removeListener("error",m),e.removeListener("unpipe",t),i.removeListener("end",p),i.removeListener("end",g),i.removeListener("data",f),u=!0,!s.awaitDrain||e._writableState&&!e._writableState.needDrain||c())}));var c=function(e){return function(){var t=e._readableState;d("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&o(e,"data")&&(t.flowing=!0,O(e))}}(i);e.on("drain",c);var u=!1,h=!1;function f(t){d("ondata"),h=!1,!1!==e.write(t)||h||((1===s.pipesCount&&s.pipes===e||s.pipesCount>1&&-1!==L(s.pipes,e))&&!u&&(d("false write response, pause",s.awaitDrain),s.awaitDrain++,h=!0),i.pause())}function m(t){d("onerror",t),g(),e.removeListener("error",m),0===o(e,"error")&&e.emit("error",t)}function y(){e.removeListener("finish",T),g()}function T(){d("onfinish"),e.removeListener("close",y),g()}function g(){d("unpipe"),i.unpipe(e)}return i.on("data",f),function(e,t,i){if("function"==typeof e.prependListener)return e.prependListener(t,i);e._events&&e._events[t]?a(e._events[t])?e._events[t].unshift(i):e._events[t]=[i,e._events[t]]:e.on(t,i)}(e,"error",m),e.once("close",y),e.once("finish",T),e.emit("pipe",i),s.flowing||(d("pipe resume"),i.resume()),e},b.prototype.unpipe=function(e){var t=this._readableState,i={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,i)),this;if(!e){var r=t.pipes,n=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var s=0;s<n;s++)r[s].emit("unpipe",this,{hasUnpiped:!1});return this}var a=L(t.pipes,e);return-1===a||(t.pipes.splice(a,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,i)),this},b.prototype.on=function(e,t){var i=l.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var r=this._readableState;r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.emittedReadable=!1,r.reading?r.length&&P(this):n.nextTick(C,this))}return i},b.prototype.addListener=b.prototype.on,b.prototype.resume=function(){var e=this._readableState;return e.flowing||(d("resume"),e.flowing=!0,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,n.nextTick(N,e,t))}(this,e)),this},b.prototype.pause=function(){return d("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(d("pause"),this._readableState.flowing=!1,this.emit("pause")),this},b.prototype.wrap=function(e){var t=this,i=this._readableState,r=!1;for(var n in e.on("end",(function(){if(d("wrapped end"),i.decoder&&!i.ended){var e=i.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(n){d("wrapped data"),i.decoder&&(n=i.decoder.write(n)),i.objectMode&&null==n||(i.objectMode||n&&n.length)&&(t.push(n)||(r=!0,e.pause()))})),e)void 0===this[n]&&"function"==typeof e[n]&&(this[n]=function(t){return function(){return e[t].apply(e,arguments)}}(n));for(var s=0;s<T.length;s++)e.on(T[s],this.emit.bind(this,T[s]));return this._read=function(t){d("wrapped _read",t),r&&(r=!1,e.resume())},this},Object.defineProperty(b.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),b._fromList=k},4716:e=>{e.exports=JSON.parse('{"sha224WithRSAEncryption":{"sign":"rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"RSA-SHA224":{"sign":"ecdsa/rsa","hash":"sha224","id":"302d300d06096086480165030402040500041c"},"sha256WithRSAEncryption":{"sign":"rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"RSA-SHA256":{"sign":"ecdsa/rsa","hash":"sha256","id":"3031300d060960864801650304020105000420"},"sha384WithRSAEncryption":{"sign":"rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"RSA-SHA384":{"sign":"ecdsa/rsa","hash":"sha384","id":"3041300d060960864801650304020205000430"},"sha512WithRSAEncryption":{"sign":"rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA512":{"sign":"ecdsa/rsa","hash":"sha512","id":"3051300d060960864801650304020305000440"},"RSA-SHA1":{"sign":"rsa","hash":"sha1","id":"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{"sign":"ecdsa","hash":"sha1","id":""},"sha256":{"sign":"ecdsa","hash":"sha256","id":""},"sha224":{"sign":"ecdsa","hash":"sha224","id":""},"sha384":{"sign":"ecdsa","hash":"sha384","id":""},"sha512":{"sign":"ecdsa","hash":"sha512","id":""},"DSA-SHA":{"sign":"dsa","hash":"sha1","id":""},"DSA-SHA1":{"sign":"dsa","hash":"sha1","id":""},"DSA":{"sign":"dsa","hash":"sha1","id":""},"DSA-WITH-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-SHA224":{"sign":"dsa","hash":"sha224","id":""},"DSA-WITH-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-SHA256":{"sign":"dsa","hash":"sha256","id":""},"DSA-WITH-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-SHA384":{"sign":"dsa","hash":"sha384","id":""},"DSA-WITH-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-SHA512":{"sign":"dsa","hash":"sha512","id":""},"DSA-RIPEMD160":{"sign":"dsa","hash":"rmd160","id":""},"ripemd160WithRSA":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"RSA-RIPEMD160":{"sign":"rsa","hash":"rmd160","id":"3021300906052b2403020105000414"},"md5WithRSAEncryption":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"},"RSA-MD5":{"sign":"rsa","hash":"md5","id":"3020300c06082a864886f70d020505000410"}}')},5339:(e,t,i)=>{var r=i(62053),n=i(79696).Buffer,s=i(84913);function a(e,t,i,a){s.call(this),this._cipher=new r.AES(t),this._prev=n.from(i),this._cache=n.allocUnsafe(0),this._secCache=n.allocUnsafe(0),this._decrypt=a,this._mode=e}i(25003)(a,s),a.prototype._update=function(e){return this._mode.encrypt(this,e,this._decrypt)},a.prototype._final=function(){this._cipher.scrub()},e.exports=a},5372:(e,t,i)=>{e.exports=i(8763).EventEmitter},5608:(e,t,i)=>{var r=i(79696).Buffer,n=i(32442),s=i(32427),a=i(79548).ec,o=i(70243),l=i(28113),p=i(36646);function c(e,t,i,s){if((e=r.from(e.toArray())).length<t.byteLength()){var a=r.alloc(t.byteLength()-e.length);e=r.concat([a,e])}var o=i.length,l=function(e,t){e=(e=u(e,t)).mod(t);var i=r.from(e.toArray());if(i.length<t.byteLength()){var n=r.alloc(t.byteLength()-i.length);i=r.concat([n,i])}return i}(i,t),p=r.alloc(o);p.fill(1);var c=r.alloc(o);return c=n(s,c).update(p).update(r.from([0])).update(e).update(l).digest(),p=n(s,c).update(p).digest(),{k:c=n(s,c).update(p).update(r.from([1])).update(e).update(l).digest(),v:p=n(s,c).update(p).digest()}}function u(e,t){var i=new o(e),r=(e.length<<3)-t.bitLength();return r>0&&i.ishrn(r),i}function h(e,t,i){var s,a;do{for(s=r.alloc(0);8*s.length<e.bitLength();)t.v=n(i,t.k).update(t.v).digest(),s=r.concat([s,t.v]);a=u(s,e),t.k=n(i,t.k).update(t.v).update(r.from([0])).digest(),t.v=n(i,t.k).update(t.v).digest()}while(-1!==a.cmp(e));return a}function d(e,t,i,r){return e.toRed(o.mont(i)).redPow(t).fromRed().mod(r)}e.exports=function(e,t,i,n,f){var m=l(t);if(m.curve){if("ecdsa"!==n&&"ecdsa/rsa"!==n)throw new Error("wrong private key type");return function(e,t){var i=p[t.curve.join(".")];if(!i)throw new Error("unknown curve "+t.curve.join("."));var n=new a(i).keyFromPrivate(t.privateKey).sign(e);return r.from(n.toDER())}(e,m)}if("dsa"===m.type){if("dsa"!==n)throw new Error("wrong private key type");return function(e,t,i){for(var n,s=t.params.priv_key,a=t.params.p,l=t.params.q,p=t.params.g,f=new o(0),m=u(e,l).mod(l),y=!1,T=c(s,l,e,i);!1===y;)f=d(p,n=h(l,T,i),a,l),0===(y=n.invm(l).imul(m.add(s.mul(f))).mod(l)).cmpn(0)&&(y=!1,f=new o(0));return function(e,t){e=e.toArray(),t=t.toArray(),128&e[0]&&(e=[0].concat(e)),128&t[0]&&(t=[0].concat(t));var i=[48,e.length+t.length+4,2,e.length];return i=i.concat(e,[2,t.length],t),r.from(i)}(f,y)}(e,m,i)}if("rsa"!==n&&"ecdsa/rsa"!==n)throw new Error("wrong private key type");if(void 0!==t.padding&&1!==t.padding)throw new Error("illegal or unsupported padding mode");e=r.concat([f,e]);for(var y=m.modulus.byteLength(),T=[0,1];e.length+T.length+1<y;)T.push(255);T.push(0);for(var g=-1;++g<e.length;)T.push(e[g]);return s(T,m)},e.exports.getKey=c,e.exports.makeKey=h},6022:(e,t,i)=>{i.d(t,{A:()=>n});var r=i(16397);function n(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,(0,r.A)(e,t)}},6057:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,r.default)("trailingComments",e,t)};var r=i(26284)},6370:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AssignmentExpression=function(e,t,i){return!(!S(i)||!u(e.left))||v(e,t)},t.Binary=x,t.BinaryExpression=function(e,t,i){return"in"===e.operator&&Boolean(i&n.TokenContext.forInOrInitHeadAccumulate)},t.ClassExpression=function(e,t,i){return Boolean(i&(n.TokenContext.expressionStatement|n.TokenContext.exportDefault))},t.ArrowFunctionExpression=t.ConditionalExpression=v,t.DoExpression=function(e,t,i){return!e.async&&Boolean(i&n.TokenContext.expressionStatement)},t.FunctionExpression=function(e,t,i){return Boolean(i&(n.TokenContext.expressionStatement|n.TokenContext.exportDefault))},t.FunctionTypeAnnotation=function(e,t,i){const r=t.type;return"UnionTypeAnnotation"===r||"IntersectionTypeAnnotation"===r||"ArrayTypeAnnotation"===r||Boolean(i&n.TokenContext.arrowFlowReturnType)},t.Identifier=function(e,t,i,r){var s;const a=t.type;if(null!=(s=e.extra)&&s.parenthesized&&"AssignmentExpression"===a&&t.left===e){const e=t.right.type;if(("FunctionExpression"===e||"ClassExpression"===e)&&null==t.right.id)return!0}return(!r||r(e)===e.name)&&("let"===e.name?!!((c(t,{object:e,computed:!0})||h(t,{object:e,computed:!0,optional:!1}))&&i&(n.TokenContext.expressionStatement|n.TokenContext.forInitHead|n.TokenContext.forInHead))||Boolean(i&n.TokenContext.forOfHead):"async"===e.name&&l(t,{left:e,await:!1}))},t.LogicalExpression=function(e,t){const i=t.type;if(T(i))return!0;if("LogicalExpression"!==i)return!1;switch(e.operator){case"||":return"??"===t.operator||"&&"===t.operator;case"&&":return"??"===t.operator;case"??":return"??"!==t.operator}},t.NullableTypeAnnotation=function(e,t){return s(t)},t.ObjectExpression=function(e,t,i){return S(i)},t.OptionalIndexedAccessType=function(e,t){return p(t)&&t.objectType===e},t.OptionalCallExpression=t.OptionalMemberExpression=function(e,t){return o(t)&&t.callee===e||c(t)&&t.object===e},t.SequenceExpression=function(e,t){const i=t.type;return!("SequenceExpression"===i||"ParenthesizedExpression"===i||"MemberExpression"===i&&t.property===e||"OptionalMemberExpression"===i&&t.property===e||"TemplateLiteral"===i)&&("ClassDeclaration"===i||("ForOfStatement"===i?t.right===e:"ExportDefaultDeclaration"===i||!f(t)))},t.TSSatisfiesExpression=t.TSAsExpression=function(e,t){return("AssignmentExpression"===t.type||"AssignmentPattern"===t.type)&&t.left===e||("BinaryExpression"===t.type&&("|"===t.operator||"&"===t.operator)&&e===t.left||x(e,t))},t.TSConditionalType=function(e,t){const i=t.type;return"TSArrayType"===i||"TSIndexedAccessType"===i&&t.objectType===e||"TSOptionalType"===i||"TSTypeOperator"===i||"TSTypeParameter"===i||(("TSIntersectionType"===i||"TSUnionType"===i)&&t.types[0]===e||"TSConditionalType"===i&&(t.checkType===e||t.extendsType===e))},t.TSConstructorType=t.TSFunctionType=function(e,t){const i=t.type;return"TSIntersectionType"===i||"TSUnionType"===i||"TSTypeOperator"===i||"TSOptionalType"===i||"TSArrayType"===i||"TSIndexedAccessType"===i&&t.objectType===e||"TSConditionalType"===i&&(t.checkType===e||t.extendsType===e)},t.TSInferType=function(e,t){const i=t.type;return"TSArrayType"===i||"TSIndexedAccessType"===i&&t.objectType===e||"TSOptionalType"===i||!(!e.typeParameter.constraint||"TSIntersectionType"!==i&&"TSUnionType"!==i||t.types[0]!==e)},t.TSInstantiationExpression=function(e,t){const i=t.type;return("CallExpression"===i||"OptionalCallExpression"===i||"NewExpression"===i||"TSInstantiationExpression"===i)&&!!t.typeParameters},t.TSIntersectionType=function(e,t){const i=t.type;return"TSTypeOperator"===i||"TSArrayType"===i||"TSIndexedAccessType"===i&&t.objectType===e||"TSOptionalType"===i},t.UnaryLike=t.TSTypeAssertion=E,t.TSTypeOperator=function(e,t){const i=t.type;return"TSArrayType"===i||"TSIndexedAccessType"===i&&t.objectType===e||"TSOptionalType"===i},t.TSUnionType=function(e,t){const i=t.type;return"TSIntersectionType"===i||"TSTypeOperator"===i||"TSArrayType"===i||"TSIndexedAccessType"===i&&t.objectType===e||"TSOptionalType"===i},t.IntersectionTypeAnnotation=t.UnionTypeAnnotation=function(e,t){const i=t.type;return"ArrayTypeAnnotation"===i||"NullableTypeAnnotation"===i||"IntersectionTypeAnnotation"===i||"UnionTypeAnnotation"===i},t.UpdateExpression=function(e,t){return b(e,t)||g(e,t)},t.AwaitExpression=t.YieldExpression=function(e,t){const i=t.type;return"BinaryExpression"===i||"LogicalExpression"===i||"UnaryExpression"===i||"SpreadElement"===i||b(e,t)||"AwaitExpression"===i&&d(e)||"ConditionalExpression"===i&&e===t.test||g(e,t)||T(i)};var r=i(45741),n=i(36306);const{isArrayTypeAnnotation:s,isBinaryExpression:a,isCallExpression:o,isForOfStatement:l,isIndexedAccessType:p,isMemberExpression:c,isObjectPattern:u,isOptionalMemberExpression:h,isYieldExpression:d,isStatement:f}=r,m=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 y(e,t){return"BinaryExpression"===t||"LogicalExpression"===t?m.get(e.operator):"TSAsExpression"===t||"TSSatisfiesExpression"===t?m.get("in"):void 0}function T(e){return"TSAsExpression"===e||"TSSatisfiesExpression"===e||"TSTypeAssertion"===e}const g=(e,t)=>{const i=t.type;return("ClassDeclaration"===i||"ClassExpression"===i)&&t.superClass===e},b=(e,t)=>{const i=t.type;return("MemberExpression"===i||"OptionalMemberExpression"===i)&&t.object===e||("CallExpression"===i||"OptionalCallExpression"===i||"NewExpression"===i)&&t.callee===e||"TaggedTemplateExpression"===i&&t.tag===e||"TSNonNullExpression"===i};function S(e){return Boolean(e&(n.TokenContext.expressionStatement|n.TokenContext.arrowBody))}function x(e,t){const i=t.type;if("BinaryExpression"===e.type&&"**"===e.operator&&"BinaryExpression"===i&&"**"===t.operator)return t.left===e;if(g(e,t))return!0;if(b(e,t)||"UnaryExpression"===i||"SpreadElement"===i||"AwaitExpression"===i)return!0;const r=y(t,i);if(null!=r){const n=y(e,e.type);if(r===n&&"BinaryExpression"===i&&t.right===e||r>n)return!0}}function E(e,t){return b(e,t)||a(t)&&"**"===t.operator&&t.left===e||g(e,t)}function v(e,t){const i=t.type;return!!("UnaryExpression"===i||"SpreadElement"===i||"BinaryExpression"===i||"LogicalExpression"===i||"ConditionalExpression"===i&&t.test===e||"AwaitExpression"===i||T(i))||E(e,t)}},6525:(e,t,i)=>{var r=i(79696).Buffer,n=i(49453),s=i(80816),a=i(25003),o=i(5608),l=i(96268),p=i(4716);function c(e){s.Writable.call(this);var t=p[e];if(!t)throw new Error("Unknown message digest");this._hashType=t.hash,this._hash=n(t.hash),this._tag=t.id,this._signType=t.sign}function u(e){s.Writable.call(this);var t=p[e];if(!t)throw new Error("Unknown message digest");this._hash=n(t.hash),this._tag=t.id,this._signType=t.sign}function h(e){return new c(e)}function d(e){return new u(e)}Object.keys(p).forEach((function(e){p[e].id=r.from(p[e].id,"hex"),p[e.toLowerCase()]=p[e]})),a(c,s.Writable),c.prototype._write=function(e,t,i){this._hash.update(e),i()},c.prototype.update=function(e,t){return this._hash.update("string"==typeof e?r.from(e,t):e),this},c.prototype.sign=function(e,t){this.end();var i=this._hash.digest(),r=o(i,e,this._hashType,this._signType,this._tag);return t?r.toString(t):r},a(u,s.Writable),u.prototype._write=function(e,t,i){this._hash.update(e),i()},u.prototype.update=function(e,t){return this._hash.update("string"==typeof e?r.from(e,t):e),this},u.prototype.verify=function(e,t,i){var n="string"==typeof t?r.from(t,i):t;this.end();var s=this._hash.digest();return l(n,s,e,this._signType,this._tag)},e.exports={Sign:h,Verify:d,createSign:h,createVerify:d}},6564:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,i){"function"==typeof t&&(t={enter:t});const{enter:r,exit:s}=t;n(e,r,s,i,[])};var r=i(35108);function n(e,t,i,s,a){const o=r.VISITOR_KEYS[e.type];if(o){t&&t(e,a,s);for(const r of o){const o=e[r];if(Array.isArray(o))for(let l=0;l<o.length;l++){const p=o[l];p&&(a.push({node:e,key:r,index:l}),n(p,t,i,s,a),a.pop())}else o&&(a.push({node:e,key:r}),n(o,t,i,s,a),a.pop())}i&&i(e,a,s)}}},8794:(e,t,i)=>{var r=i(8925),n=i(73261);const s=(0,n.defineAliasedType)("Flow"),a=e=>{const t="DeclareClass"===e;s(e,{builder:["id","typeParameters","extends","body"],visitor:["id","typeParameters","extends",...t?["mixins","implements"]:[],"body"],aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({id:(0,n.validateType)("Identifier"),typeParameters:(0,n.validateOptionalType)("TypeParameterDeclaration"),extends:(0,n.validateOptional)((0,n.arrayOfType)("InterfaceExtends"))},t?{mixins:(0,n.validateOptional)((0,n.arrayOfType)("InterfaceExtends")),implements:(0,n.validateOptional)((0,n.arrayOfType)("ClassImplements"))}:{},{body:(0,n.validateType)("ObjectTypeAnnotation")})})};s("AnyTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),s("ArrayTypeAnnotation",{visitor:["elementType"],aliases:["FlowType"],fields:{elementType:(0,n.validateType)("FlowType")}}),s("BooleanTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),s("BooleanLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0,n.validate)((0,n.assertValueType)("boolean"))}}),s("NullLiteralTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),s("ClassImplements",{visitor:["id","typeParameters"],fields:{id:(0,n.validateType)("Identifier"),typeParameters:(0,n.validateOptionalType)("TypeParameterInstantiation")}}),a("DeclareClass"),s("DeclareFunction",{builder:["id"],visitor:["id","predicate"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,n.validateType)("Identifier"),predicate:(0,n.validateOptionalType)("DeclaredPredicate")}}),a("DeclareInterface"),s("DeclareModule",{builder:["id","body","kind"],visitor:["id","body"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,n.validateType)("Identifier","StringLiteral"),body:(0,n.validateType)("BlockStatement"),kind:(0,n.validateOptional)((0,n.assertOneOf)("CommonJS","ES"))}}),s("DeclareModuleExports",{visitor:["typeAnnotation"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{typeAnnotation:(0,n.validateType)("TypeAnnotation")}}),s("DeclareTypeAlias",{visitor:["id","typeParameters","right"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,n.validateType)("Identifier"),typeParameters:(0,n.validateOptionalType)("TypeParameterDeclaration"),right:(0,n.validateType)("FlowType")}}),s("DeclareOpaqueType",{visitor:["id","typeParameters","supertype"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,n.validateType)("Identifier"),typeParameters:(0,n.validateOptionalType)("TypeParameterDeclaration"),supertype:(0,n.validateOptionalType)("FlowType"),impltype:(0,n.validateOptionalType)("FlowType")}}),s("DeclareVariable",{visitor:["id"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,n.validateType)("Identifier")}}),s("DeclareExportDeclaration",{visitor:["declaration","specifiers","source","attributes"],aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({declaration:(0,n.validateOptionalType)("Flow"),specifiers:(0,n.validateOptional)((0,n.arrayOfType)("ExportSpecifier","ExportNamespaceSpecifier")),source:(0,n.validateOptionalType)("StringLiteral"),default:(0,n.validateOptional)((0,n.assertValueType)("boolean"))},r.importAttributes)}),s("DeclareExportAllDeclaration",{visitor:["source","attributes"],aliases:["FlowDeclaration","Statement","Declaration"],fields:Object.assign({source:(0,n.validateType)("StringLiteral"),exportKind:(0,n.validateOptional)((0,n.assertOneOf)("type","value"))},r.importAttributes)}),s("DeclaredPredicate",{visitor:["value"],aliases:["FlowPredicate"],fields:{value:(0,n.validateType)("Flow")}}),s("ExistsTypeAnnotation",{aliases:["FlowType"]}),s("FunctionTypeAnnotation",{builder:["typeParameters","params","rest","returnType"],visitor:["typeParameters","this","params","rest","returnType"],aliases:["FlowType"],fields:{typeParameters:(0,n.validateOptionalType)("TypeParameterDeclaration"),params:(0,n.validateArrayOfType)("FunctionTypeParam"),rest:(0,n.validateOptionalType)("FunctionTypeParam"),this:(0,n.validateOptionalType)("FunctionTypeParam"),returnType:(0,n.validateType)("FlowType")}}),s("FunctionTypeParam",{visitor:["name","typeAnnotation"],fields:{name:(0,n.validateOptionalType)("Identifier"),typeAnnotation:(0,n.validateType)("FlowType"),optional:(0,n.validateOptional)((0,n.assertValueType)("boolean"))}}),s("GenericTypeAnnotation",{visitor:["id","typeParameters"],aliases:["FlowType"],fields:{id:(0,n.validateType)("Identifier","QualifiedTypeIdentifier"),typeParameters:(0,n.validateOptionalType)("TypeParameterInstantiation")}}),s("InferredPredicate",{aliases:["FlowPredicate"]}),s("InterfaceExtends",{visitor:["id","typeParameters"],fields:{id:(0,n.validateType)("Identifier","QualifiedTypeIdentifier"),typeParameters:(0,n.validateOptionalType)("TypeParameterInstantiation")}}),a("InterfaceDeclaration"),s("InterfaceTypeAnnotation",{visitor:["extends","body"],aliases:["FlowType"],fields:{extends:(0,n.validateOptional)((0,n.arrayOfType)("InterfaceExtends")),body:(0,n.validateType)("ObjectTypeAnnotation")}}),s("IntersectionTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0,n.validate)((0,n.arrayOfType)("FlowType"))}}),s("MixedTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),s("EmptyTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),s("NullableTypeAnnotation",{visitor:["typeAnnotation"],aliases:["FlowType"],fields:{typeAnnotation:(0,n.validateType)("FlowType")}}),s("NumberLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0,n.validate)((0,n.assertValueType)("number"))}}),s("NumberTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),s("ObjectTypeAnnotation",{visitor:["properties","indexers","callProperties","internalSlots"],aliases:["FlowType"],builder:["properties","indexers","callProperties","internalSlots","exact"],fields:{properties:(0,n.validate)((0,n.arrayOfType)("ObjectTypeProperty","ObjectTypeSpreadProperty")),indexers:{validate:(0,n.arrayOfType)("ObjectTypeIndexer"),optional:!0,default:[]},callProperties:{validate:(0,n.arrayOfType)("ObjectTypeCallProperty"),optional:!0,default:[]},internalSlots:{validate:(0,n.arrayOfType)("ObjectTypeInternalSlot"),optional:!0,default:[]},exact:{validate:(0,n.assertValueType)("boolean"),default:!1},inexact:(0,n.validateOptional)((0,n.assertValueType)("boolean"))}}),s("ObjectTypeInternalSlot",{visitor:["id","value"],builder:["id","value","optional","static","method"],aliases:["UserWhitespacable"],fields:{id:(0,n.validateType)("Identifier"),value:(0,n.validateType)("FlowType"),optional:(0,n.validate)((0,n.assertValueType)("boolean")),static:(0,n.validate)((0,n.assertValueType)("boolean")),method:(0,n.validate)((0,n.assertValueType)("boolean"))}}),s("ObjectTypeCallProperty",{visitor:["value"],aliases:["UserWhitespacable"],fields:{value:(0,n.validateType)("FlowType"),static:(0,n.validate)((0,n.assertValueType)("boolean"))}}),s("ObjectTypeIndexer",{visitor:["variance","id","key","value"],builder:["id","key","value","variance"],aliases:["UserWhitespacable"],fields:{id:(0,n.validateOptionalType)("Identifier"),key:(0,n.validateType)("FlowType"),value:(0,n.validateType)("FlowType"),static:(0,n.validate)((0,n.assertValueType)("boolean")),variance:(0,n.validateOptionalType)("Variance")}}),s("ObjectTypeProperty",{visitor:["key","value","variance"],aliases:["UserWhitespacable"],fields:{key:(0,n.validateType)("Identifier","StringLiteral"),value:(0,n.validateType)("FlowType"),kind:(0,n.validate)((0,n.assertOneOf)("init","get","set")),static:(0,n.validate)((0,n.assertValueType)("boolean")),proto:(0,n.validate)((0,n.assertValueType)("boolean")),optional:(0,n.validate)((0,n.assertValueType)("boolean")),variance:(0,n.validateOptionalType)("Variance"),method:(0,n.validate)((0,n.assertValueType)("boolean"))}}),s("ObjectTypeSpreadProperty",{visitor:["argument"],aliases:["UserWhitespacable"],fields:{argument:(0,n.validateType)("FlowType")}}),s("OpaqueType",{visitor:["id","typeParameters","supertype","impltype"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,n.validateType)("Identifier"),typeParameters:(0,n.validateOptionalType)("TypeParameterDeclaration"),supertype:(0,n.validateOptionalType)("FlowType"),impltype:(0,n.validateType)("FlowType")}}),s("QualifiedTypeIdentifier",{visitor:["qualification","id"],builder:["id","qualification"],fields:{id:(0,n.validateType)("Identifier"),qualification:(0,n.validateType)("Identifier","QualifiedTypeIdentifier")}}),s("StringLiteralTypeAnnotation",{builder:["value"],aliases:["FlowType"],fields:{value:(0,n.validate)((0,n.assertValueType)("string"))}}),s("StringTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),s("SymbolTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),s("ThisTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),s("TupleTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0,n.validate)((0,n.arrayOfType)("FlowType"))}}),s("TypeofTypeAnnotation",{visitor:["argument"],aliases:["FlowType"],fields:{argument:(0,n.validateType)("FlowType")}}),s("TypeAlias",{visitor:["id","typeParameters","right"],aliases:["FlowDeclaration","Statement","Declaration"],fields:{id:(0,n.validateType)("Identifier"),typeParameters:(0,n.validateOptionalType)("TypeParameterDeclaration"),right:(0,n.validateType)("FlowType")}}),s("TypeAnnotation",{visitor:["typeAnnotation"],fields:{typeAnnotation:(0,n.validateType)("FlowType")}}),s("TypeCastExpression",{visitor:["expression","typeAnnotation"],aliases:["ExpressionWrapper","Expression"],fields:{expression:(0,n.validateType)("Expression"),typeAnnotation:(0,n.validateType)("TypeAnnotation")}}),s("TypeParameter",{visitor:["bound","default","variance"],fields:{name:(0,n.validate)((0,n.assertValueType)("string")),bound:(0,n.validateOptionalType)("TypeAnnotation"),default:(0,n.validateOptionalType)("FlowType"),variance:(0,n.validateOptionalType)("Variance")}}),s("TypeParameterDeclaration",{visitor:["params"],fields:{params:(0,n.validate)((0,n.arrayOfType)("TypeParameter"))}}),s("TypeParameterInstantiation",{visitor:["params"],fields:{params:(0,n.validate)((0,n.arrayOfType)("FlowType"))}}),s("UnionTypeAnnotation",{visitor:["types"],aliases:["FlowType"],fields:{types:(0,n.validate)((0,n.arrayOfType)("FlowType"))}}),s("Variance",{builder:["kind"],fields:{kind:(0,n.validate)((0,n.assertOneOf)("minus","plus"))}}),s("VoidTypeAnnotation",{aliases:["FlowType","FlowBaseAnnotation"]}),s("EnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:{id:(0,n.validateType)("Identifier"),body:(0,n.validateType)("EnumBooleanBody","EnumNumberBody","EnumStringBody","EnumSymbolBody")}}),s("EnumBooleanBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,n.validate)((0,n.assertValueType)("boolean")),members:(0,n.validateArrayOfType)("EnumBooleanMember"),hasUnknownMembers:(0,n.validate)((0,n.assertValueType)("boolean"))}}),s("EnumNumberBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,n.validate)((0,n.assertValueType)("boolean")),members:(0,n.validateArrayOfType)("EnumNumberMember"),hasUnknownMembers:(0,n.validate)((0,n.assertValueType)("boolean"))}}),s("EnumStringBody",{aliases:["EnumBody"],visitor:["members"],fields:{explicitType:(0,n.validate)((0,n.assertValueType)("boolean")),members:(0,n.validateArrayOfType)("EnumStringMember","EnumDefaultedMember"),hasUnknownMembers:(0,n.validate)((0,n.assertValueType)("boolean"))}}),s("EnumSymbolBody",{aliases:["EnumBody"],visitor:["members"],fields:{members:(0,n.validateArrayOfType)("EnumDefaultedMember"),hasUnknownMembers:(0,n.validate)((0,n.assertValueType)("boolean"))}}),s("EnumBooleanMember",{aliases:["EnumMember"],builder:["id"],visitor:["id","init"],fields:{id:(0,n.validateType)("Identifier"),init:(0,n.validateType)("BooleanLiteral")}}),s("EnumNumberMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:(0,n.validateType)("Identifier"),init:(0,n.validateType)("NumericLiteral")}}),s("EnumStringMember",{aliases:["EnumMember"],visitor:["id","init"],fields:{id:(0,n.validateType)("Identifier"),init:(0,n.validateType)("StringLiteral")}}),s("EnumDefaultedMember",{aliases:["EnumMember"],visitor:["id"],fields:{id:(0,n.validateType)("Identifier")}}),s("IndexedAccessType",{visitor:["objectType","indexType"],aliases:["FlowType"],fields:{objectType:(0,n.validateType)("FlowType"),indexType:(0,n.validateType)("FlowType")}}),s("OptionalIndexedAccessType",{visitor:["objectType","indexType"],aliases:["FlowType"],fields:{objectType:(0,n.validateType)("FlowType"),indexType:(0,n.validateType)("FlowType"),optional:(0,n.validate)((0,n.assertValueType)("boolean"))}})},8925:(e,t,i)=>{var r=i(65994).e;Object.defineProperty(t,"__esModule",{value:!0}),t.patternLikeCommon=t.importAttributes=t.functionTypeAnnotationCommon=t.functionDeclarationCommon=t.functionCommon=t.classMethodOrPropertyCommon=t.classMethodOrDeclareMethodCommon=void 0;var n=i(23781),s=i(26228),a=i(98109),o=i(14286),l=i(62811),p=i(73261);const c=(0,p.defineAliasedType)("Standardized");c("ArrayExpression",{fields:{elements:{validate:(0,p.arrayOf)((0,p.assertNodeOrValueType)("null","Expression","SpreadElement")),default:r.env.BABEL_TYPES_8_BREAKING?void 0:[]}},visitor:["elements"],aliases:["Expression"]}),c("AssignmentExpression",{fields:{operator:{validate:r.env.BABEL_TYPES_8_BREAKING?Object.assign(function(){const e=(0,p.assertOneOf)(...l.ASSIGNMENT_OPERATORS),t=(0,p.assertOneOf)("=");return function(i,r,s){((0,n.default)("Pattern",i.left)?t:e)(i,r,s)}}(),{oneOf:l.ASSIGNMENT_OPERATORS}):(0,p.assertValueType)("string")},left:{validate:r.env.BABEL_TYPES_8_BREAKING?(0,p.assertNodeType)("Identifier","MemberExpression","OptionalMemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"):(0,p.assertNodeType)("LVal","OptionalMemberExpression")},right:{validate:(0,p.assertNodeType)("Expression")}},builder:["operator","left","right"],visitor:["left","right"],aliases:["Expression"]}),c("BinaryExpression",{builder:["operator","left","right"],fields:{operator:{validate:(0,p.assertOneOf)(...l.BINARY_OPERATORS)},left:{validate:function(){const e=(0,p.assertNodeType)("Expression"),t=(0,p.assertNodeType)("Expression","PrivateName");return Object.assign((function(i,r,n){("in"===i.operator?t:e)(i,r,n)}),{oneOfNodeTypes:["Expression","PrivateName"]})}()},right:{validate:(0,p.assertNodeType)("Expression")}},visitor:["left","right"],aliases:["Binary","Expression"]}),c("InterpreterDirective",{builder:["value"],fields:{value:{validate:(0,p.assertValueType)("string")}}}),c("Directive",{visitor:["value"],fields:{value:{validate:(0,p.assertNodeType)("DirectiveLiteral")}}}),c("DirectiveLiteral",{builder:["value"],fields:{value:{validate:(0,p.assertValueType)("string")}}}),c("BlockStatement",{builder:["body","directives"],visitor:["directives","body"],fields:{directives:{validate:(0,p.arrayOfType)("Directive"),default:[]},body:(0,p.validateArrayOfType)("Statement")},aliases:["Scopable","BlockParent","Block","Statement"]}),c("BreakStatement",{visitor:["label"],fields:{label:{validate:(0,p.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,p.assertNodeType)("Expression","Super","V8IntrinsicIdentifier")},arguments:(0,p.validateArrayOfType)("Expression","SpreadElement","ArgumentPlaceholder"),typeArguments:{validate:(0,p.assertNodeType)("TypeParameterInstantiation"),optional:!0}},r.env.BABEL_TYPES_8_BREAKING?{}:{optional:{validate:(0,p.assertValueType)("boolean"),optional:!0},typeParameters:{validate:(0,p.assertNodeType)("TSTypeParameterInstantiation"),optional:!0}})}),c("CatchClause",{visitor:["param","body"],fields:{param:{validate:(0,p.assertNodeType)("Identifier","ArrayPattern","ObjectPattern"),optional:!0},body:{validate:(0,p.assertNodeType)("BlockStatement")}},aliases:["Scopable","BlockParent"]}),c("ConditionalExpression",{visitor:["test","consequent","alternate"],fields:{test:{validate:(0,p.assertNodeType)("Expression")},consequent:{validate:(0,p.assertNodeType)("Expression")},alternate:{validate:(0,p.assertNodeType)("Expression")}},aliases:["Expression","Conditional"]}),c("ContinueStatement",{visitor:["label"],fields:{label:{validate:(0,p.assertNodeType)("Identifier"),optional:!0}},aliases:["Statement","Terminatorless","CompletionStatement"]}),c("DebuggerStatement",{aliases:["Statement"]}),c("DoWhileStatement",{builder:["test","body"],visitor:["body","test"],fields:{test:{validate:(0,p.assertNodeType)("Expression")},body:{validate:(0,p.assertNodeType)("Statement")}},aliases:["Statement","BlockParent","Loop","While","Scopable"]}),c("EmptyStatement",{aliases:["Statement"]}),c("ExpressionStatement",{visitor:["expression"],fields:{expression:{validate:(0,p.assertNodeType)("Expression")}},aliases:["Statement","ExpressionWrapper"]}),c("File",{builder:["program","comments","tokens"],visitor:["program"],fields:{program:{validate:(0,p.assertNodeType)("Program")},comments:{validate:r.env.BABEL_TYPES_8_BREAKING?(0,p.assertEach)((0,p.assertNodeType)("CommentBlock","CommentLine")):Object.assign((()=>{}),{each:{oneOfNodeTypes:["CommentBlock","CommentLine"]}}),optional:!0},tokens:{validate:(0,p.assertEach)(Object.assign((()=>{}),{type:"any"})),optional:!0}}}),c("ForInStatement",{visitor:["left","right","body"],aliases:["Scopable","Statement","For","BlockParent","Loop","ForXStatement"],fields:{left:{validate:r.env.BABEL_TYPES_8_BREAKING?(0,p.assertNodeType)("VariableDeclaration","Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"):(0,p.assertNodeType)("VariableDeclaration","LVal")},right:{validate:(0,p.assertNodeType)("Expression")},body:{validate:(0,p.assertNodeType)("Statement")}}}),c("ForStatement",{visitor:["init","test","update","body"],aliases:["Scopable","Statement","For","BlockParent","Loop"],fields:{init:{validate:(0,p.assertNodeType)("VariableDeclaration","Expression"),optional:!0},test:{validate:(0,p.assertNodeType)("Expression"),optional:!0},update:{validate:(0,p.assertNodeType)("Expression"),optional:!0},body:{validate:(0,p.assertNodeType)("Statement")}}});const u=()=>({params:(0,p.validateArrayOfType)("FunctionParameter"),generator:{default:!1},async:{default:!1}});t.functionCommon=u;const h=()=>({returnType:{validate:(0,p.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},typeParameters:{validate:(0,p.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0}});t.functionTypeAnnotationCommon=h;const d=()=>Object.assign({},u(),{declare:{validate:(0,p.assertValueType)("boolean"),optional:!0},id:{validate:(0,p.assertNodeType)("Identifier"),optional:!0}});t.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,p.assertNodeType)("BlockStatement")},predicate:{validate:(0,p.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:!0}}),aliases:["Scopable","Function","BlockParent","FunctionParent","Statement","Pureish","Declaration"],validate:r.env.BABEL_TYPES_8_BREAKING?function(){const e=(0,p.assertNodeType)("Identifier");return function(t,i,r){(0,n.default)("ExportDefaultDeclaration",t)||e(r,"id",r.id)}}():void 0}),c("FunctionExpression",{inherits:"FunctionDeclaration",aliases:["Scopable","Function","BlockParent","FunctionParent","Expression","Pureish"],fields:Object.assign({},u(),h(),{id:{validate:(0,p.assertNodeType)("Identifier"),optional:!0},body:{validate:(0,p.assertNodeType)("BlockStatement")},predicate:{validate:(0,p.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:!0}})});const f=()=>({typeAnnotation:{validate:(0,p.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},optional:{validate:(0,p.assertValueType)("boolean"),optional:!0},decorators:{validate:(0,p.arrayOfType)("Decorator"),optional:!0}});t.patternLikeCommon=f,c("Identifier",{builder:["name"],visitor:["typeAnnotation","decorators"],aliases:["Expression","FunctionParameter","PatternLike","LVal","TSEntityName"],fields:Object.assign({},f(),{name:{validate:r.env.BABEL_TYPES_8_BREAKING?(0,p.chain)((0,p.assertValueType)("string"),Object.assign((function(e,t,i){if(!(0,s.default)(i,!1))throw new TypeError(`"${i}" is not a valid identifier name`)}),{type:"string"})):(0,p.assertValueType)("string")}}),validate:r.env.BABEL_TYPES_8_BREAKING?function(e,t,i){const r=/\.(\w+)$/.exec(t.toString());if(!r)return;const[,s]=r,o={computed:!1};if("property"===s){if((0,n.default)("MemberExpression",e,o))return;if((0,n.default)("OptionalMemberExpression",e,o))return}else if("key"===s){if((0,n.default)("Property",e,o))return;if((0,n.default)("Method",e,o))return}else if("exported"===s){if((0,n.default)("ExportSpecifier",e))return}else if("imported"===s){if((0,n.default)("ImportSpecifier",e,{imported:i}))return}else if("meta"===s&&(0,n.default)("MetaProperty",e,{meta:i}))return;if(((0,a.isKeyword)(i.name)||(0,a.isReservedWord)(i.name,!1))&&"this"!==i.name)throw new TypeError(`"${i.name}" is not a valid identifier`)}:void 0}),c("IfStatement",{visitor:["test","consequent","alternate"],aliases:["Statement","Conditional"],fields:{test:{validate:(0,p.assertNodeType)("Expression")},consequent:{validate:(0,p.assertNodeType)("Statement")},alternate:{optional:!0,validate:(0,p.assertNodeType)("Statement")}}}),c("LabeledStatement",{visitor:["label","body"],aliases:["Statement"],fields:{label:{validate:(0,p.assertNodeType)("Identifier")},body:{validate:(0,p.assertNodeType)("Statement")}}}),c("StringLiteral",{builder:["value"],fields:{value:{validate:(0,p.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]}),c("NumericLiteral",{builder:["value"],deprecatedAlias:"NumberLiteral",fields:{value:{validate:(0,p.chain)((0,p.assertValueType)("number"),Object.assign((function(e,t,i){(1/i<0||!Number.isFinite(i))&&new Error(`NumericLiterals must be non-negative finite numbers. You can use t.valueToNode(${i}) instead.`)}),{type:"number"}))}},aliases:["Expression","Pureish","Literal","Immutable"]}),c("NullLiteral",{aliases:["Expression","Pureish","Literal","Immutable"]}),c("BooleanLiteral",{builder:["value"],fields:{value:{validate:(0,p.assertValueType)("boolean")}},aliases:["Expression","Pureish","Literal","Immutable"]}),c("RegExpLiteral",{builder:["pattern","flags"],deprecatedAlias:"RegexLiteral",aliases:["Expression","Pureish","Literal"],fields:{pattern:{validate:(0,p.assertValueType)("string")},flags:{validate:r.env.BABEL_TYPES_8_BREAKING?(0,p.chain)((0,p.assertValueType)("string"),Object.assign((function(e,t,i){const r=/[^gimsuy]/.exec(i);if(r)throw new TypeError(`"${r[0]}" is not a valid RegExp flag`)}),{type:"string"})):(0,p.assertValueType)("string"),default:""}}}),c("LogicalExpression",{builder:["operator","left","right"],visitor:["left","right"],aliases:["Binary","Expression"],fields:{operator:{validate:(0,p.assertOneOf)(...l.LOGICAL_OPERATORS)},left:{validate:(0,p.assertNodeType)("Expression")},right:{validate:(0,p.assertNodeType)("Expression")}}}),c("MemberExpression",{builder:["object","property","computed",...r.env.BABEL_TYPES_8_BREAKING?[]:["optional"]],visitor:["object","property"],aliases:["Expression","LVal","PatternLike"],fields:Object.assign({object:{validate:(0,p.assertNodeType)("Expression","Super")},property:{validate:function(){const e=(0,p.assertNodeType)("Identifier","PrivateName"),t=(0,p.assertNodeType)("Expression"),i=function(i,r,n){(i.computed?t:e)(i,r,n)};return i.oneOfNodeTypes=["Expression","Identifier","PrivateName"],i}()},computed:{default:!1}},r.env.BABEL_TYPES_8_BREAKING?{}:{optional:{validate:(0,p.assertValueType)("boolean"),optional:!0}})}),c("NewExpression",{inherits:"CallExpression"}),c("Program",{visitor:["directives","body"],builder:["body","directives","sourceType","interpreter"],fields:{sourceType:{validate:(0,p.assertOneOf)("script","module"),default:"script"},interpreter:{validate:(0,p.assertNodeType)("InterpreterDirective"),default:null,optional:!0},directives:{validate:(0,p.arrayOfType)("Directive"),default:[]},body:(0,p.validateArrayOfType)("Statement")},aliases:["Scopable","BlockParent","Block"]}),c("ObjectExpression",{visitor:["properties"],aliases:["Expression"],fields:{properties:(0,p.validateArrayOfType)("ObjectMethod","ObjectProperty","SpreadElement")}}),c("ObjectMethod",{builder:["kind","key","params","body","computed","generator","async"],visitor:["decorators","key","typeParameters","params","returnType","body"],fields:Object.assign({},u(),h(),{kind:Object.assign({validate:(0,p.assertOneOf)("method","get","set")},r.env.BABEL_TYPES_8_BREAKING?{}:{default:"method"}),computed:{default:!1},key:{validate:function(){const e=(0,p.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral"),t=(0,p.assertNodeType)("Expression"),i=function(i,r,n){(i.computed?t:e)(i,r,n)};return i.oneOfNodeTypes=["Expression","Identifier","StringLiteral","NumericLiteral","BigIntLiteral"],i}()},decorators:{validate:(0,p.arrayOfType)("Decorator"),optional:!0},body:{validate:(0,p.assertNodeType)("BlockStatement")}}),aliases:["UserWhitespacable","Function","Scopable","BlockParent","FunctionParent","Method","ObjectMember"]}),c("ObjectProperty",{builder:["key","value","computed","shorthand",...r.env.BABEL_TYPES_8_BREAKING?[]:["decorators"]],fields:{computed:{default:!1},key:{validate:function(){const e=(0,p.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","DecimalLiteral","PrivateName"),t=(0,p.assertNodeType)("Expression");return Object.assign((function(i,r,n){(i.computed?t:e)(i,r,n)}),{oneOfNodeTypes:["Expression","Identifier","StringLiteral","NumericLiteral","BigIntLiteral","DecimalLiteral","PrivateName"]})}()},value:{validate:(0,p.assertNodeType)("Expression","PatternLike")},shorthand:{validate:r.env.BABEL_TYPES_8_BREAKING?(0,p.chain)((0,p.assertValueType)("boolean"),Object.assign((function(e,t,i){if(i){if(e.computed)throw new TypeError("Property shorthand of ObjectProperty cannot be true if computed is true");if(!(0,n.default)("Identifier",e.key))throw new TypeError("Property shorthand of ObjectProperty cannot be true if key is not an Identifier")}}),{type:"boolean"})):(0,p.assertValueType)("boolean"),default:!1},decorators:{validate:(0,p.arrayOfType)("Decorator"),optional:!0}},visitor:["decorators","key","value"],aliases:["UserWhitespacable","Property","ObjectMember"],validate:r.env.BABEL_TYPES_8_BREAKING?function(){const e=(0,p.assertNodeType)("Identifier","Pattern","TSAsExpression","TSSatisfiesExpression","TSNonNullExpression","TSTypeAssertion"),t=(0,p.assertNodeType)("Expression");return function(i,r,s){((0,n.default)("ObjectPattern",i)?e:t)(s,"value",s.value)}}():void 0}),c("RestElement",{visitor:["argument","typeAnnotation"],builder:["argument"],aliases:["FunctionParameter","PatternLike","LVal"],deprecatedAlias:"RestProperty",fields:Object.assign({},f(),{argument:{validate:r.env.BABEL_TYPES_8_BREAKING?(0,p.assertNodeType)("Identifier","ArrayPattern","ObjectPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"):(0,p.assertNodeType)("Identifier","ArrayPattern","ObjectPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression","RestElement","AssignmentPattern")}}),validate:r.env.BABEL_TYPES_8_BREAKING?function(e,t){const i=/(\w+)\[(\d+)\]/.exec(t.toString());if(!i)throw new Error("Internal Babel error: malformed key.");const[,r,n]=i;if(e[r].length>+n+1)throw new TypeError(`RestElement must be last element of ${r}`)}:void 0}),c("ReturnStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:(0,p.assertNodeType)("Expression"),optional:!0}}}),c("SequenceExpression",{visitor:["expressions"],fields:{expressions:(0,p.validateArrayOfType)("Expression")},aliases:["Expression"]}),c("ParenthesizedExpression",{visitor:["expression"],aliases:["Expression","ExpressionWrapper"],fields:{expression:{validate:(0,p.assertNodeType)("Expression")}}}),c("SwitchCase",{visitor:["test","consequent"],fields:{test:{validate:(0,p.assertNodeType)("Expression"),optional:!0},consequent:(0,p.validateArrayOfType)("Statement")}}),c("SwitchStatement",{visitor:["discriminant","cases"],aliases:["Statement","BlockParent","Scopable"],fields:{discriminant:{validate:(0,p.assertNodeType)("Expression")},cases:(0,p.validateArrayOfType)("SwitchCase")}}),c("ThisExpression",{aliases:["Expression"]}),c("ThrowStatement",{visitor:["argument"],aliases:["Statement","Terminatorless","CompletionStatement"],fields:{argument:{validate:(0,p.assertNodeType)("Expression")}}}),c("TryStatement",{visitor:["block","handler","finalizer"],aliases:["Statement"],fields:{block:{validate:r.env.BABEL_TYPES_8_BREAKING?(0,p.chain)((0,p.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,p.assertNodeType)("BlockStatement")},handler:{optional:!0,validate:(0,p.assertNodeType)("CatchClause")},finalizer:{optional:!0,validate:(0,p.assertNodeType)("BlockStatement")}}}),c("UnaryExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!0},argument:{validate:(0,p.assertNodeType)("Expression")},operator:{validate:(0,p.assertOneOf)(...l.UNARY_OPERATORS)}},visitor:["argument"],aliases:["UnaryLike","Expression"]}),c("UpdateExpression",{builder:["operator","argument","prefix"],fields:{prefix:{default:!1},argument:{validate:r.env.BABEL_TYPES_8_BREAKING?(0,p.assertNodeType)("Identifier","MemberExpression"):(0,p.assertNodeType)("Expression")},operator:{validate:(0,p.assertOneOf)(...l.UPDATE_OPERATORS)}},visitor:["argument"],aliases:["Expression"]}),c("VariableDeclaration",{builder:["kind","declarations"],visitor:["declarations"],aliases:["Statement","Declaration"],fields:{declare:{validate:(0,p.assertValueType)("boolean"),optional:!0},kind:{validate:(0,p.assertOneOf)("var","let","const","using","await using")},declarations:(0,p.validateArrayOfType)("VariableDeclarator")},validate:r.env.BABEL_TYPES_8_BREAKING?(()=>{const e=(0,p.assertNodeType)("Identifier","Placeholder"),t=(0,p.assertNodeType)("Identifier","ArrayPattern","ObjectPattern","Placeholder"),i=(0,p.assertNodeType)("Identifier","VoidPattern","Placeholder");return function(r,s,a){const{kind:o,declarations:l}=a,p=(0,n.default)("ForXStatement",r,{left:a});if(p&&1!==l.length)throw new TypeError(`Exactly one VariableDeclarator is required in the VariableDeclaration of a ${r.type}`);for(const r of l)"const"===o||"let"===o||"var"===o?p||r.init?t(r,"id",r.id):e(r,"id",r.id):i(r,"id",r.id)}})():void 0}),c("VariableDeclarator",{visitor:["id","init"],fields:{id:{validate:r.env.BABEL_TYPES_8_BREAKING?(0,p.assertNodeType)("Identifier","ArrayPattern","ObjectPattern","VoidPattern"):(0,p.assertNodeType)("LVal","VoidPattern")},definite:{optional:!0,validate:(0,p.assertValueType)("boolean")},init:{optional:!0,validate:(0,p.assertNodeType)("Expression")}}}),c("WhileStatement",{visitor:["test","body"],aliases:["Statement","BlockParent","Loop","While","Scopable"],fields:{test:{validate:(0,p.assertNodeType)("Expression")},body:{validate:(0,p.assertNodeType)("Statement")}}}),c("WithStatement",{visitor:["object","body"],aliases:["Statement"],fields:{object:{validate:(0,p.assertNodeType)("Expression")},body:{validate:(0,p.assertNodeType)("Statement")}}}),c("AssignmentPattern",{visitor:["left","right","decorators"],builder:["left","right"],aliases:["FunctionParameter","Pattern","PatternLike","LVal"],fields:Object.assign({},f(),{left:{validate:(0,p.assertNodeType)("Identifier","ObjectPattern","ArrayPattern","MemberExpression","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression")},right:{validate:(0,p.assertNodeType)("Expression")},decorators:{validate:(0,p.arrayOfType)("Decorator"),optional:!0}})}),c("ArrayPattern",{visitor:["elements","typeAnnotation"],builder:["elements"],aliases:["FunctionParameter","Pattern","PatternLike","LVal"],fields:Object.assign({},f(),{elements:{validate:(0,p.chain)((0,p.assertValueType)("array"),(0,p.assertEach)((0,p.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,p.assertValueType)("boolean")},body:{validate:(0,p.assertNodeType)("BlockStatement","Expression")},predicate:{validate:(0,p.assertNodeType)("DeclaredPredicate","InferredPredicate"),optional:!0}})}),c("ClassBody",{visitor:["body"],fields:{body:(0,p.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,p.assertNodeType)("Identifier"),optional:!0},typeParameters:{validate:(0,p.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0},body:{validate:(0,p.assertNodeType)("ClassBody")},superClass:{optional:!0,validate:(0,p.assertNodeType)("Expression")},superTypeParameters:{validate:(0,p.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0},implements:{validate:(0,p.arrayOfType)("TSExpressionWithTypeArguments","ClassImplements"),optional:!0},decorators:{validate:(0,p.arrayOfType)("Decorator"),optional:!0},mixins:{validate:(0,p.assertNodeType)("InterfaceExtends"),optional:!0}}}),c("ClassDeclaration",{inherits:"ClassExpression",aliases:["Scopable","Class","Statement","Declaration"],fields:{id:{validate:(0,p.assertNodeType)("Identifier"),optional:!0},typeParameters:{validate:(0,p.assertNodeType)("TypeParameterDeclaration","TSTypeParameterDeclaration","Noop"),optional:!0},body:{validate:(0,p.assertNodeType)("ClassBody")},superClass:{optional:!0,validate:(0,p.assertNodeType)("Expression")},superTypeParameters:{validate:(0,p.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0},implements:{validate:(0,p.arrayOfType)("TSExpressionWithTypeArguments","ClassImplements"),optional:!0},decorators:{validate:(0,p.arrayOfType)("Decorator"),optional:!0},mixins:{validate:(0,p.assertNodeType)("InterfaceExtends"),optional:!0},declare:{validate:(0,p.assertValueType)("boolean"),optional:!0},abstract:{validate:(0,p.assertValueType)("boolean"),optional:!0}},validate:r.env.BABEL_TYPES_8_BREAKING?function(){const e=(0,p.assertNodeType)("Identifier");return function(t,i,r){(0,n.default)("ExportDefaultDeclaration",t)||e(r,"id",r.id)}}():void 0});const m=t.importAttributes={attributes:{optional:!0,validate:(0,p.arrayOfType)("ImportAttribute")},assertions:{deprecated:!0,optional:!0,validate:(0,p.arrayOfType)("ImportAttribute")}};c("ExportAllDeclaration",{builder:["source"],visitor:["source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:Object.assign({source:{validate:(0,p.assertNodeType)("StringLiteral")},exportKind:(0,p.validateOptional)((0,p.assertOneOf)("type","value"))},m)}),c("ExportDefaultDeclaration",{visitor:["declaration"],aliases:["Statement","Declaration","ImportOrExportDeclaration","ExportDeclaration"],fields:{declaration:(0,p.validateType)("TSDeclareFunction","FunctionDeclaration","ClassDeclaration","Expression"),exportKind:(0,p.validateOptional)((0,p.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:r.env.BABEL_TYPES_8_BREAKING?(0,p.chain)((0,p.assertNodeType)("Declaration"),Object.assign((function(e,t,i){if(i&&e.specifiers.length)throw new TypeError("Only declaration or specifiers is allowed on ExportNamedDeclaration");if(i&&e.source)throw new TypeError("Cannot export a declaration from a source")}),{oneOfNodeTypes:["Declaration"]})):(0,p.assertNodeType)("Declaration")}},m,{specifiers:{default:[],validate:(0,p.arrayOf)(function(){const e=(0,p.assertNodeType)("ExportSpecifier","ExportDefaultSpecifier","ExportNamespaceSpecifier"),t=(0,p.assertNodeType)("ExportSpecifier");return r.env.BABEL_TYPES_8_BREAKING?Object.assign((function(i,r,n){(i.source?e:t)(i,r,n)}),{oneOfNodeTypes:["ExportSpecifier","ExportDefaultSpecifier","ExportNamespaceSpecifier"]}):e}())},source:{validate:(0,p.assertNodeType)("StringLiteral"),optional:!0},exportKind:(0,p.validateOptional)((0,p.assertOneOf)("type","value"))})}),c("ExportSpecifier",{visitor:["local","exported"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,p.assertNodeType)("Identifier")},exported:{validate:(0,p.assertNodeType)("Identifier","StringLiteral")},exportKind:{validate:(0,p.assertOneOf)("type","value"),optional:!0}}}),c("ForOfStatement",{visitor:["left","right","body"],builder:["left","right","body","await"],aliases:["Scopable","Statement","For","BlockParent","Loop","ForXStatement"],fields:{left:{validate:function(){if(!r.env.BABEL_TYPES_8_BREAKING)return(0,p.assertNodeType)("VariableDeclaration","LVal");const e=(0,p.assertNodeType)("VariableDeclaration"),t=(0,p.assertNodeType)("Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression");return Object.assign((function(i,r,s){(0,n.default)("VariableDeclaration",s)?e(i,r,s):t(i,r,s)}),{oneOfNodeTypes:["VariableDeclaration","Identifier","MemberExpression","ArrayPattern","ObjectPattern","TSAsExpression","TSSatisfiesExpression","TSTypeAssertion","TSNonNullExpression"]})}()},right:{validate:(0,p.assertNodeType)("Expression")},body:{validate:(0,p.assertNodeType)("Statement")},await:{default:!1}}}),c("ImportDeclaration",{builder:["specifiers","source"],visitor:["specifiers","source","attributes","assertions"],aliases:["Statement","Declaration","ImportOrExportDeclaration"],fields:Object.assign({},m,{module:{optional:!0,validate:(0,p.assertValueType)("boolean")},phase:{default:null,validate:(0,p.assertOneOf)("source","defer")},specifiers:(0,p.validateArrayOfType)("ImportSpecifier","ImportDefaultSpecifier","ImportNamespaceSpecifier"),source:{validate:(0,p.assertNodeType)("StringLiteral")},importKind:{validate:(0,p.assertOneOf)("type","typeof","value"),optional:!0}})}),c("ImportDefaultSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,p.assertNodeType)("Identifier")}}}),c("ImportNamespaceSpecifier",{visitor:["local"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,p.assertNodeType)("Identifier")}}}),c("ImportSpecifier",{visitor:["imported","local"],builder:["local","imported"],aliases:["ModuleSpecifier"],fields:{local:{validate:(0,p.assertNodeType)("Identifier")},imported:{validate:(0,p.assertNodeType)("Identifier","StringLiteral")},importKind:{validate:(0,p.assertOneOf)("type","typeof","value"),optional:!0}}}),c("ImportExpression",{visitor:["source","options"],aliases:["Expression"],fields:{phase:{default:null,validate:(0,p.assertOneOf)("source","defer")},source:{validate:(0,p.assertNodeType)("Expression")},options:{validate:(0,p.assertNodeType)("Expression"),optional:!0}}}),c("MetaProperty",{visitor:["meta","property"],aliases:["Expression"],fields:{meta:{validate:r.env.BABEL_TYPES_8_BREAKING?(0,p.chain)((0,p.assertNodeType)("Identifier"),Object.assign((function(e,t,i){let r;switch(i.name){case"function":r="sent";break;case"new":r="target";break;case"import":r="meta"}if(!(0,n.default)("Identifier",e.property,{name:r}))throw new TypeError("Unrecognised MetaProperty")}),{oneOfNodeTypes:["Identifier"]})):(0,p.assertNodeType)("Identifier")},property:{validate:(0,p.assertNodeType)("Identifier")}}});const y=()=>({abstract:{validate:(0,p.assertValueType)("boolean"),optional:!0},accessibility:{validate:(0,p.assertOneOf)("public","private","protected"),optional:!0},static:{default:!1},override:{default:!1},computed:{default:!1},optional:{validate:(0,p.assertValueType)("boolean"),optional:!0},key:{validate:(0,p.chain)(function(){const e=(0,p.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral"),t=(0,p.assertNodeType)("Expression");return function(i,r,n){(i.computed?t:e)(i,r,n)}}(),(0,p.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","Expression"))}});t.classMethodOrPropertyCommon=y;const T=()=>Object.assign({},u(),y(),{params:(0,p.validateArrayOfType)("FunctionParameter","TSParameterProperty"),kind:{validate:(0,p.assertOneOf)("get","set","method","constructor"),default:"method"},access:{validate:(0,p.chain)((0,p.assertValueType)("string"),(0,p.assertOneOf)("public","private","protected")),optional:!0},decorators:{validate:(0,p.arrayOfType)("Decorator"),optional:!0}});t.classMethodOrDeclareMethodCommon=T,c("ClassMethod",{aliases:["Function","Scopable","BlockParent","FunctionParent","Method"],builder:["kind","key","params","body","computed","static","generator","async"],visitor:["decorators","key","typeParameters","params","returnType","body"],fields:Object.assign({},T(),h(),{body:{validate:(0,p.assertNodeType)("BlockStatement")}})}),c("ObjectPattern",{visitor:["decorators","properties","typeAnnotation"],builder:["properties"],aliases:["FunctionParameter","Pattern","PatternLike","LVal"],fields:Object.assign({},f(),{properties:(0,p.validateArrayOfType)("RestElement","ObjectProperty")})}),c("SpreadElement",{visitor:["argument"],aliases:["UnaryLike"],deprecatedAlias:"SpreadProperty",fields:{argument:{validate:(0,p.assertNodeType)("Expression")}}}),c("Super",{aliases:["Expression"]}),c("TaggedTemplateExpression",{visitor:["tag","typeParameters","quasi"],builder:["tag","quasi"],aliases:["Expression"],fields:{tag:{validate:(0,p.assertNodeType)("Expression")},quasi:{validate:(0,p.assertNodeType)("TemplateLiteral")},typeParameters:{validate:(0,p.assertNodeType)("TypeParameterInstantiation","TSTypeParameterInstantiation"),optional:!0}}}),c("TemplateElement",{builder:["value","tail"],fields:{value:{validate:(0,p.chain)((0,p.assertShape)({raw:{validate:(0,p.assertValueType)("string")},cooked:{validate:(0,p.assertValueType)("string"),optional:!0}}),(function(e){const t=e.value.raw;let i=!1;const r=()=>{throw new Error("Internal @babel/types error.")},{str:n,firstInvalidLoc:s}=(0,o.readStringContents)("template",t,0,0,0,{unterminated(){i=!0},strictNumericEscape:r,invalidEscapeSequence:r,numericSeparatorInEscapeSequence:r,unexpectedNumericSeparator:r,invalidDigit:r,invalidCodePoint:r});if(!i)throw new Error("Invalid raw");e.value.cooked=s?null:n}))},tail:{default:!1}}}),c("TemplateLiteral",{visitor:["quasis","expressions"],aliases:["Expression","Literal"],fields:{quasis:(0,p.validateArrayOfType)("TemplateElement"),expressions:{validate:(0,p.chain)((0,p.assertValueType)("array"),(0,p.assertEach)((0,p.assertNodeType)("Expression","TSType")),(function(e,t,i){if(e.quasis.length!==i.length+1)throw new TypeError(`Number of ${e.type} quasis should be exactly one more than the number of expressions.\nExpected ${i.length+1} quasis but got ${e.quasis.length}`)}))}}}),c("YieldExpression",{builder:["argument","delegate"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{delegate:{validate:r.env.BABEL_TYPES_8_BREAKING?(0,p.chain)((0,p.assertValueType)("boolean"),Object.assign((function(e,t,i){if(i&&!e.argument)throw new TypeError("Property delegate of YieldExpression cannot be true if there is no argument")}),{type:"boolean"})):(0,p.assertValueType)("boolean"),default:!1},argument:{optional:!0,validate:(0,p.assertNodeType)("Expression")}}}),c("AwaitExpression",{builder:["argument"],visitor:["argument"],aliases:["Expression","Terminatorless"],fields:{argument:{validate:(0,p.assertNodeType)("Expression")}}}),c("Import",{aliases:["Expression"]}),c("BigIntLiteral",{builder:["value"],fields:{value:{validate:(0,p.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]}),c("ExportNamespaceSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:(0,p.assertNodeType)("Identifier")}}}),c("OptionalMemberExpression",{builder:["object","property","computed","optional"],visitor:["object","property"],aliases:["Expression"],fields:{object:{validate:(0,p.assertNodeType)("Expression")},property:{validate:function(){const e=(0,p.assertNodeType)("Identifier"),t=(0,p.assertNodeType)("Expression");return Object.assign((function(i,r,n){(i.computed?t:e)(i,r,n)}),{oneOfNodeTypes:["Expression","Identifier"]})}()},computed:{default:!1},optional:{validate:r.env.BABEL_TYPES_8_BREAKING?(0,p.chain)((0,p.assertValueType)("boolean"),(0,p.assertOptionalChainStart)()):(0,p.assertValueType)("boolean")}}}),c("OptionalCallExpression",{visitor:["callee","typeParameters","typeArguments","arguments"],builder:["callee","arguments","optional"],aliases:["Expression"],fields:Object.assign({callee:{validate:(0,p.assertNodeType)("Expression")},arguments:(0,p.validateArrayOfType)("Expression","SpreadElement","ArgumentPlaceholder"),optional:{validate:r.env.BABEL_TYPES_8_BREAKING?(0,p.chain)((0,p.assertValueType)("boolean"),(0,p.assertOptionalChainStart)()):(0,p.assertValueType)("boolean")},typeArguments:{validate:(0,p.assertNodeType)("TypeParameterInstantiation"),optional:!0}},{typeParameters:{validate:(0,p.assertNodeType)("TSTypeParameterInstantiation"),optional:!0}})}),c("ClassProperty",{visitor:["decorators","variance","key","typeAnnotation","value"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property"],fields:Object.assign({},y(),{value:{validate:(0,p.assertNodeType)("Expression"),optional:!0},definite:{validate:(0,p.assertValueType)("boolean"),optional:!0},typeAnnotation:{validate:(0,p.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,p.arrayOfType)("Decorator"),optional:!0},readonly:{validate:(0,p.assertValueType)("boolean"),optional:!0},declare:{validate:(0,p.assertValueType)("boolean"),optional:!0},variance:{validate:(0,p.assertNodeType)("Variance"),optional:!0}})}),c("ClassAccessorProperty",{visitor:["decorators","key","typeAnnotation","value"],builder:["key","value","typeAnnotation","decorators","computed","static"],aliases:["Property","Accessor"],fields:Object.assign({},y(),{key:{validate:(0,p.chain)(function(){const e=(0,p.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","PrivateName"),t=(0,p.assertNodeType)("Expression");return function(i,r,n){(i.computed?t:e)(i,r,n)}}(),(0,p.assertNodeType)("Identifier","StringLiteral","NumericLiteral","BigIntLiteral","Expression","PrivateName"))},value:{validate:(0,p.assertNodeType)("Expression"),optional:!0},definite:{validate:(0,p.assertValueType)("boolean"),optional:!0},typeAnnotation:{validate:(0,p.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,p.arrayOfType)("Decorator"),optional:!0},readonly:{validate:(0,p.assertValueType)("boolean"),optional:!0},declare:{validate:(0,p.assertValueType)("boolean"),optional:!0},variance:{validate:(0,p.assertNodeType)("Variance"),optional:!0}})}),c("ClassPrivateProperty",{visitor:["decorators","variance","key","typeAnnotation","value"],builder:["key","value","decorators","static"],aliases:["Property","Private"],fields:{key:{validate:(0,p.assertNodeType)("PrivateName")},value:{validate:(0,p.assertNodeType)("Expression"),optional:!0},typeAnnotation:{validate:(0,p.assertNodeType)("TypeAnnotation","TSTypeAnnotation","Noop"),optional:!0},decorators:{validate:(0,p.arrayOfType)("Decorator"),optional:!0},static:{validate:(0,p.assertValueType)("boolean"),default:!1},readonly:{validate:(0,p.assertValueType)("boolean"),optional:!0},optional:{validate:(0,p.assertValueType)("boolean"),optional:!0},definite:{validate:(0,p.assertValueType)("boolean"),optional:!0},variance:{validate:(0,p.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({},T(),h(),{kind:{validate:(0,p.assertOneOf)("get","set","method"),default:"method"},key:{validate:(0,p.assertNodeType)("PrivateName")},body:{validate:(0,p.assertNodeType)("BlockStatement")}})}),c("PrivateName",{visitor:["id"],aliases:["Private"],fields:{id:{validate:(0,p.assertNodeType)("Identifier")}}}),c("StaticBlock",{visitor:["body"],fields:{body:(0,p.validateArrayOfType)("Statement")},aliases:["Scopable","BlockParent","FunctionParent"]}),c("ImportAttribute",{visitor:["key","value"],fields:{key:{validate:(0,p.assertNodeType)("Identifier","StringLiteral")},value:{validate:(0,p.assertNodeType)("StringLiteral")}}})},10441:(e,t,i)=>{var r={ECB:i(65863),CBC:i(71535),CFB:i(68044),CFB8:i(1582),CFB1:i(517),OFB:i(15496),CTR:i(910),GCM:i(910)},n=i(50006);for(var s in n)n[s].module=r[n[s].mode];e.exports=n},11265:(e,t,i)=>{var r=i(62053),n=i(79696).Buffer,s=i(84913),a=i(25003),o=i(89135),l=i(53896),p=i(3663);function c(e,t,i,a){s.call(this);var l=n.alloc(4,0);this._cipher=new r.AES(t);var c=this._cipher.encryptBlock(l);this._ghash=new o(c),i=function(e,t,i){if(12===t.length)return e._finID=n.concat([t,n.from([0,0,0,1])]),n.concat([t,n.from([0,0,0,2])]);var r=new o(i),s=t.length,a=s%16;r.update(t),a&&(a=16-a,r.update(n.alloc(a,0))),r.update(n.alloc(8,0));var l=8*s,c=n.alloc(8);c.writeUIntBE(l,0,8),r.update(c),e._finID=r.state;var u=n.from(e._finID);return p(u),u}(this,i,c),this._prev=n.from(i),this._cache=n.allocUnsafe(0),this._secCache=n.allocUnsafe(0),this._decrypt=a,this._alen=0,this._len=0,this._mode=e,this._authTag=null,this._called=!1}a(c,s),c.prototype._update=function(e){if(!this._called&&this._alen){var t=16-this._alen%16;t<16&&(t=n.alloc(t,0),this._ghash.update(t))}this._called=!0;var i=this._mode.encrypt(this,e);return this._decrypt?this._ghash.update(e):this._ghash.update(i),this._len+=e.length,i},c.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var e=l(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function(e,t){var i=0;e.length!==t.length&&i++;for(var r=Math.min(e.length,t.length),n=0;n<r;++n)i+=e[n]^t[n];return i}(e,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=e,this._cipher.scrub()},c.prototype.getAuthTag=function(){if(this._decrypt||!n.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},c.prototype.setAuthTag=function(e){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=e},c.prototype.setAAD=function(e){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(e),this._alen+=e.length},e.exports=c},12520:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e,!1,!0)};var r=i(16938)},14058:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AnyTypeAnnotation=function(){this.word("any")},t.ArrayTypeAnnotation=function(e){this.print(e.elementType,!0),this.tokenChar(91),this.tokenChar(93)},t.BooleanLiteralTypeAnnotation=function(e){this.word(e.value?"true":"false")},t.BooleanTypeAnnotation=function(){this.word("boolean")},t.DeclareClass=function(e,t){o(t)||(this.word("declare"),this.space()),this.word("class"),this.space(),this._interfaceish(e)},t.DeclareExportAllDeclaration=function(e){this.word("declare"),this.space(),n.ExportAllDeclaration.call(this,e)},t.DeclareExportDeclaration=function(e){this.word("declare"),this.space(),this.word("export"),this.space(),e.default&&(this.word("default"),this.space()),h.call(this,e)},t.DeclareFunction=function(e,t){o(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()},t.DeclareInterface=function(e){this.word("declare"),this.space(),this.InterfaceDeclaration(e)},t.DeclareModule=function(e){this.word("declare"),this.space(),this.word("module"),this.space(),this.print(e.id),this.space(),this.print(e.body)},t.DeclareModuleExports=function(e){this.word("declare"),this.space(),this.word("module"),this.tokenChar(46),this.word("exports"),this.print(e.typeAnnotation)},t.DeclareOpaqueType=function(e,t){o(t)||(this.word("declare"),this.space()),this.OpaqueType(e)},t.DeclareTypeAlias=function(e){this.word("declare"),this.space(),this.TypeAlias(e)},t.DeclareVariable=function(e,t){o(t)||(this.word("declare"),this.space()),this.word("var"),this.space(),this.print(e.id),this.print(e.id.typeAnnotation),this.semicolon()},t.DeclaredPredicate=function(e){this.tokenChar(37),this.word("checks"),this.tokenChar(40),this.print(e.value),this.tokenChar(41)},t.EmptyTypeAnnotation=function(){this.word("empty")},t.EnumBooleanBody=function(e){const{explicitType:t}=e;p(this,"boolean",t),c(this,e)},t.EnumBooleanMember=function(e){u(this,e)},t.EnumDeclaration=function(e){const{id:t,body:i}=e;this.word("enum"),this.space(),this.print(t),this.print(i)},t.EnumDefaultedMember=function(e){const{id:t}=e;this.print(t),this.tokenChar(44)},t.EnumNumberBody=function(e){const{explicitType:t}=e;p(this,"number",t),c(this,e)},t.EnumNumberMember=function(e){u(this,e)},t.EnumStringBody=function(e){const{explicitType:t}=e;p(this,"string",t),c(this,e)},t.EnumStringMember=function(e){u(this,e)},t.EnumSymbolBody=function(e){p(this,"symbol",!0),c(this,e)},t.ExistsTypeAnnotation=function(){this.tokenChar(42)},t.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);const i=null==t?void 0:t.type;null!=i&&("ObjectTypeCallProperty"===i||"ObjectTypeInternalSlot"===i||"DeclareFunction"===i||"ObjectTypeProperty"===i&&t.method)?this.tokenChar(58):(this.space(),this.token("=>")),this.space(),this.print(e.returnType)},t.FunctionTypeParam=function(e){this.print(e.name),e.optional&&this.tokenChar(63),e.name&&(this.tokenChar(58),this.space()),this.print(e.typeAnnotation)},t.IndexedAccessType=function(e){this.print(e.objectType,!0),this.tokenChar(91),this.print(e.indexType),this.tokenChar(93)},t.InferredPredicate=function(){this.tokenChar(37),this.word("checks")},t.InterfaceDeclaration=function(e){this.word("interface"),this.space(),this._interfaceish(e)},t.GenericTypeAnnotation=t.ClassImplements=t.InterfaceExtends=function(e){this.print(e.id),this.print(e.typeParameters,!0)},t.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)},t.IntersectionTypeAnnotation=function(e){this.printJoin(e.types,void 0,void 0,d)},t.MixedTypeAnnotation=function(){this.word("mixed")},t.NullLiteralTypeAnnotation=function(){this.word("null")},t.NullableTypeAnnotation=function(e){this.tokenChar(63),this.print(e.typeAnnotation)},Object.defineProperty(t,"NumberLiteralTypeAnnotation",{enumerable:!0,get:function(){return a.NumericLiteral}}),t.NumberTypeAnnotation=function(){this.word("number")},t.ObjectTypeAnnotation=function(e){e.exact?this.token("{|"):this.tokenChar(123);const t=[...e.properties,...e.callProperties||[],...e.indexers||[],...e.internalSlots||[]];t.length&&(this.newline(),this.space(),this.printJoin(t,!0,!0,void 0,void 0,(function(e){if(e&&!t[0])return 1}),(()=>{(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)},t.ObjectTypeCallProperty=function(e){e.static&&(this.word("static"),this.space()),this.print(e.value)},t.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)},t.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)},t.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)},t.ObjectTypeSpreadProperty=function(e){this.token("..."),this.print(e.argument)},t.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()},t.OptionalIndexedAccessType=function(e){this.print(e.objectType),e.optional&&this.token("?."),this.tokenChar(91),this.print(e.indexType),this.tokenChar(93)},t.QualifiedTypeIdentifier=function(e){this.print(e.qualification),this.tokenChar(46),this.print(e.id)},Object.defineProperty(t,"StringLiteralTypeAnnotation",{enumerable:!0,get:function(){return a.StringLiteral}}),t.StringTypeAnnotation=function(){this.word("string")},t.SymbolTypeAnnotation=function(){this.word("symbol")},t.ThisTypeAnnotation=function(){this.word("this")},t.TupleTypeAnnotation=function(e){this.tokenChar(91),this.printList(e.types),this.tokenChar(93)},t.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()},t.TypeAnnotation=function(e,t){this.tokenChar(58),this.space(),"ArrowFunctionExpression"===t.type?this.tokenContext|=s.TokenContext.arrowFlowReturnType:e.optional&&this.tokenChar(63),this.print(e.typeAnnotation)},t.TypeCastExpression=function(e){this.tokenChar(40),this.print(e.expression),this.print(e.typeAnnotation),this.tokenChar(41)},t.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))},t.TypeParameterDeclaration=t.TypeParameterInstantiation=function(e){this.tokenChar(60),this.printList(e.params),this.tokenChar(62)},t.TypeofTypeAnnotation=function(e){this.word("typeof"),this.space(),this.print(e.argument)},t.UnionTypeAnnotation=function(e){this.printJoin(e.types,void 0,void 0,f)},t.Variance=function(e){"plus"===e.kind?this.tokenChar(43):this.tokenChar(45)},t.VoidTypeAnnotation=function(){this.word("void")},t._interfaceish=function(e){var t,i,r;(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)),"DeclareClass"===e.type)&&(null!=(i=e.mixins)&&i.length&&(this.space(),this.word("mixins"),this.space(),this.printList(e.mixins)),null!=(r=e.implements)&&r.length&&(this.space(),this.word("implements"),this.space(),this.printList(e.implements)));this.space(),this.print(e.body)},t._variance=function(e){var t;const i=null==(t=e.variance)?void 0:t.kind;null!=i&&("plus"===i?this.tokenChar(43):"minus"===i&&this.tokenChar(45))};var r=i(45741),n=i(25857),s=i(36306),a=i(56049);const{isDeclareExportDeclaration:o,isStatement:l}=r;function p(e,t,i){i&&(e.space(),e.word("of"),e.space(),e.word(t)),e.space()}function c(e,t){const{members:i}=t;e.token("{"),e.indent(),e.newline();for(const t of i)e.print(t),e.newline();t.hasUnknownMembers&&(e.token("..."),e.newline()),e.dedent(),e.token("}")}function u(e,t){e.print(t.id),e.space(),e.token("="),e.space(),e.print(t.init),e.token(",")}function h(e){if(e.declaration){const t=e.declaration;this.print(t),l(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 d(e){this.space(),this.token("&",!1,e),this.space()}function f(e){this.space(),this.token("|",!1,e),this.space()}},14286:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.readCodePoint=p,t.readInt=l,t.readStringContents=function(e,t,i,r,n,o){const l=i,p=r,c=n;let u="",h=null,d=i;const{length:f}=t;for(;;){if(i>=f){o.unterminated(l,p,c),u+=t.slice(d,i);break}const m=t.charCodeAt(i);if(s(e,m,t,i)){u+=t.slice(d,i);break}if(92===m){u+=t.slice(d,i);const s=a(t,i,r,n,"template"===e,o);null!==s.ch||h?u+=s.ch:h={pos:i,lineStart:r,curLine:n},({pos:i,lineStart:r,curLine:n}=s),d=i}else 8232===m||8233===m?(++n,r=++i):10===m||13===m?"template"===e?(u+=t.slice(d,i)+"\n",++i,13===m&&10===t.charCodeAt(i)&&++i,++n,d=r=i):o.unterminated(l,p,c):++i}return{pos:i,str:u,firstInvalidLoc:h,lineStart:r,curLine:n,containsInvalid:!!h}};var i=function(e){return e>=48&&e<=57};const r={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},n={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 s(e,t,i,r){return"template"===e?96===t||36===t&&123===i.charCodeAt(r+1):t===("double"===e?34:39)}function a(e,t,i,r,n,s){const a=!n;t++;const l=e=>({pos:t,ch:e,lineStart:i,curLine:r}),c=e.charCodeAt(t++);switch(c){case 110:return l("\n");case 114:return l("\r");case 120:{let n;return({code:n,pos:t}=o(e,t,i,r,2,!1,a,s)),l(null===n?null:String.fromCharCode(n))}case 117:{let n;return({code:n,pos:t}=p(e,t,i,r,a,s)),l(null===n?null:String.fromCodePoint(n))}case 116:return l("\t");case 98:return l("\b");case 118:return l("\v");case 102:return l("\f");case 13:10===e.charCodeAt(t)&&++t;case 10:i=t,++r;case 8232:case 8233:return l("");case 56:case 57:if(n)return l(null);s.strictNumericEscape(t-1,i,r);default:if(c>=48&&c<=55){const a=t-1;let o=/^[0-7]+/.exec(e.slice(a,t+2))[0],p=parseInt(o,8);p>255&&(o=o.slice(0,-1),p=parseInt(o,8)),t+=o.length-1;const c=e.charCodeAt(t);if("0"!==o||56===c||57===c){if(n)return l(null);s.strictNumericEscape(a,i,r)}return l(String.fromCharCode(p))}return l(String.fromCharCode(c))}}function o(e,t,i,r,n,s,a,o){const p=t;let c;return({n:c,pos:t}=l(e,t,i,r,16,n,s,!1,o,!a)),null===c&&(a?o.invalidEscapeSequence(p,i,r):t=p-1),{code:c,pos:t}}function l(e,t,s,a,o,l,p,c,u,h){const d=t,f=16===o?r.hex:r.decBinOct,m=16===o?n.hex:10===o?n.dec:8===o?n.oct:n.bin;let y=!1,T=0;for(let r=0,n=null==l?1/0:l;r<n;++r){const r=e.charCodeAt(t);let n;if(95!==r||"bail"===c){if(n=r>=97?r-97+10:r>=65?r-65+10:i(r)?r-48:1/0,n>=o){if(n<=9&&h)return{n:null,pos:t};if(n<=9&&u.invalidDigit(t,s,a,o))n=0;else{if(!p)break;n=0,y=!0}}++t,T=T*o+n}else{const i=e.charCodeAt(t-1),r=e.charCodeAt(t+1);if(c){if(Number.isNaN(r)||!m(r)||f.has(i)||f.has(r)){if(h)return{n:null,pos:t};u.unexpectedNumericSeparator(t,s,a)}}else{if(h)return{n:null,pos:t};u.numericSeparatorInEscapeSequence(t,s,a)}++t}}return t===d||null!=l&&t-d!==l||y?{n:null,pos:t}:{n:T,pos:t}}function p(e,t,i,r,n,s){let a;if(123===e.charCodeAt(t)){if(++t,({code:a,pos:t}=o(e,t,i,r,e.indexOf("}",t)-t,!0,n,s)),++t,null!==a&&a>1114111){if(!n)return{code:null,pos:t};s.invalidCodePoint(t,i,r)}}else({code:a,pos:t}=o(e,t,i,r,4,!1,n,s));return{code:a,pos:t}}},14788:(e,t,i)=>{i.d(t,{A:()=>s});var r=i(1859);function n(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(0,r.A)(n.key),n)}}function s(e,t,i){return t&&n(e.prototype,t),i&&n(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e}},15496:(e,t,i)=>{var r=i(67787).Buffer,n=i(53896);function s(e){return e._prev=e._cipher.encryptBlock(e._prev),e._prev}t.encrypt=function(e,t){for(;e._cache.length<t.length;)e._cache=r.concat([e._cache,s(e)]);var i=e._cache.slice(0,t.length);return e._cache=e._cache.slice(t.length),n(t,i)}},15626:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,i,n){return(0,r.default)(e,t,[{type:n?"CommentLine":"CommentBlock",value:i}])};var r=i(64697)},16397:(e,t,i)=>{function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}i.d(t,{A:()=>r})},16738:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e,!1)};var r=i(16938)},16938:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t=!0,i=!1){return l(e,t,i,new Map)};var r=i(35108),n=i(63555);const{hasOwn:s}={hasOwn:Function.call.bind(Object.prototype.hasOwnProperty)};function a(e,t,i,r){return e&&"string"==typeof e.type?l(e,t,i,r):e}function o(e,t,i,r){return Array.isArray(e)?e.map((e=>a(e,t,i,r))):a(e,t,i,r)}function l(e,t=!0,i=!1,a){if(!e)return e;const{type:l}=e,c={type:e.type};if((0,n.isIdentifier)(e))c.name=e.name,s(e,"optional")&&"boolean"==typeof e.optional&&(c.optional=e.optional),s(e,"typeAnnotation")&&(c.typeAnnotation=t?o(e.typeAnnotation,!0,i,a):e.typeAnnotation),s(e,"decorators")&&(c.decorators=t?o(e.decorators,!0,i,a):e.decorators);else{if(!s(r.NODE_FIELDS,l))throw new Error(`Unknown node type: "${l}"`);for(const u of Object.keys(r.NODE_FIELDS[l]))s(e,u)&&(c[u]=t?(0,n.isFile)(e)&&"comments"===u?p(e.comments,t,i,a):o(e[u],!0,i,a):e[u])}return s(e,"loc")&&(c.loc=i?null:e.loc),s(e,"leadingComments")&&(c.leadingComments=p(e.leadingComments,t,i,a)),s(e,"innerComments")&&(c.innerComments=p(e.innerComments,t,i,a)),s(e,"trailingComments")&&(c.trailingComments=p(e.trailingComments,t,i,a)),s(e,"extra")&&(c.extra=Object.assign({},e.extra)),c}function p(e,t,i,r){return e&&t?e.map((e=>{const t=r.get(e);if(t)return t;const{type:n,value:s,loc:a}=e,o={type:n,value:s,loc:a};return i&&(o.loc=null),r.set(e,o),o})):e}},17615:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(!(0,r.default)(e)){var t;const i=null!=(t=null==e?void 0:e.type)?t:JSON.stringify(e);throw new TypeError(`Not a valid node of type "${i}"`)}};var r=i(25129)},17916:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(63555);t.default=function(e){if((0,r.isExpressionStatement)(e)&&(e=e.expression),(0,r.isExpression)(e))return e;if((0,r.isClass)(e)?(e.type="ClassExpression",e.abstract=!1):(0,r.isFunction)(e)&&(e.type="FunctionExpression"),!(0,r.isExpression)(e))throw new Error(`cannot turn ${e.type} to an expression`);return e}},18133:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TaggedTemplateExpression=function(e){this.print(e.tag),this.print(e.typeParameters),this.print(e.quasi)},t.TemplateElement=function(){throw new Error("TemplateElement printing is handled in TemplateLiteral")},t.TemplateLiteral=function(e){this._printTemplate(e,e.expressions)},t._printTemplate=function(e,t){const i=e.quasis;let r="`";for(let n=0;n<i.length-1;n++)if(r+=i[n].value.raw,this.token(r+"${",!0),this.print(t[n]),r="}",this.tokenMap){const t=this.tokenMap.findMatching(e,"}",n);t&&this._catchUpTo(t.loc.start)}r+=i[i.length-1].value.raw,this.token(r+"`",!0)}},18214:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DEPRECATED_ALIASES=void 0,t.DEPRECATED_ALIASES={ModuleDeclaration:"ImportOrExportDeclaration"}},18480:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BreakStatement=function(e){this.word("break"),c(this,e.label)},t.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)},t.ContinueStatement=function(e){this.word("continue"),c(this,e.label)},t.DebuggerStatement=function(){this.word("debugger"),this.semicolon()},t.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()},t.ForOfStatement=t.ForInStatement=void 0,t.ForStatement=function(e){this.word("for"),this.space(),this.tokenChar(40);{const 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)},t.IfStatement=function(e){this.word("if"),this.space(),this.tokenChar(40),this.print(e.test),this.tokenChar(41),this.space();const t=e.alternate&&a(l(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))},t.LabeledStatement=function(e){this.print(e.label),this.tokenChar(58),this.space(),this.print(e.body)},t.ReturnStatement=function(e){this.word("return"),c(this,e.argument)},t.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))},t.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,void 0,(function(t,i){if(!t&&e.cases[e.cases.length-1]===i)return-1})),this.rightBrace(e)},t.ThrowStatement=function(e){this.word("throw"),c(this,e.argument)},t.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))},t.VariableDeclaration=function(e,t){e.declare&&(this.word("declare"),this.space());const{kind:i}=e;"await using"===i?(this.word("await"),this.space(),this.word("using",!0)):this.word(i,"using"===i),this.space();let r=!1;if(!n(t))for(const t of e.declarations)t.init&&(r=!0);if(this.printList(e.declarations,void 0,void 0,e.declarations.length>1,r?function(e){this.token(",",!1,e),this.newline()}:void 0),n(t))if(s(t)){if(t.init===e)return}else if(t.left===e)return;this.semicolon()},t.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))},t.WhileStatement=function(e){this.word("while"),this.space(),this.tokenChar(40),this.print(e.test),this.tokenChar(41),this.printBlock(e)},t.WithStatement=function(e){this.word("with"),this.space(),this.tokenChar(40),this.print(e.object),this.tokenChar(41),this.printBlock(e)};var r=i(45741);const{isFor:n,isForStatement:s,isIfStatement:a,isStatement:o}=r;function l(e){const{body:t}=e;return!1===o(t)?e:l(t)}function p(e){this.word("for"),this.space();const t="ForOfStatement"===e.type;t&&e.await&&(this.word("await"),this.space()),this.noIndentInnerCommentsHere(),this.tokenChar(40);{const i=this.enterForXStatementInit(t);this.print(e.left),null==i||i()}this.space(),this.word(t?"of":"in"),this.space(),this.print(e.right),this.tokenChar(41),this.printBlock(e)}function c(e,t){t&&(e.space(),e.printTerminatorless(t)),e.semicolon()}t.ForInStatement=p,t.ForOfStatement=p},18744:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ClassAccessorProperty=function(e){var t;this.printJoin(e.decorators);const i=null==(t=e.key.loc)||null==(t=t.end)?void 0:t.line;i&&this.catchUp(i),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()},t.ClassBody=function(e){if(this.tokenChar(123),0===e.body.length)this.tokenChar(125);else{this.newline();const t=function(e,t){if(!e.tokenMap||null==t.start||null==t.end)return null;const i=e.tokenMap.getIndexes(t);if(!i)return null;let r=1,n=0,s=0;const a=()=>{for(;s<t.body.length&&null==t.body[s].start;)s++};return a(),o=>{s<=o&&(s=o+1,a());const l=s===t.body.length?t.end:t.body[s].start;let p;for(;r<i.length&&e.tokenMap.matchesOriginal(p=e._tokens[i[r]],";")&&p.start<l;)e.token(";",void 0,n++),r++}}(this,e);null==t||t(-1);const i=this.enterDelimited();this.printJoin(e.body,!0,!0,t,!0),i(),this.endsWith(10)||this.newline(),this.rightBrace(e)}},t.ClassExpression=t.ClassDeclaration=function(e,t){(n(t)||s(t))&&this._shouldPrintDecoratorsBeforeExport(t)||this.printJoin(e.decorators),e.declare&&(this.word("declare"),this.space()),e.abstract&&(this.word("abstract"),this.space()),this.word("class"),e.id&&(this.space(),this.print(e.id)),this.print(e.typeParameters),e.superClass&&(this.space(),this.word("extends"),this.space(),this.print(e.superClass),this.print(e.superTypeParameters)),e.implements&&(this.space(),this.word("implements"),this.space(),this.printList(e.implements)),this.space(),this.print(e.body)},t.ClassMethod=function(e){this._classMethodHead(e),this.space(),this.print(e.body)},t.ClassPrivateMethod=function(e){this._classMethodHead(e),this.space(),this.print(e.body)},t.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()},t.ClassProperty=function(e){if(this.printJoin(e.decorators),!e.static&&!this.format.preserveFormat){var t;const i=null==(t=e.key.loc)||null==(t=t.end)?void 0:t.line;i&&this.catchUp(i)}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()},t.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))},t._classMethodHead=function(e){if(this.printJoin(e.decorators),!this.format.preserveFormat){var t;const i=null==(t=e.key.loc)||null==(t=t.end)?void 0:t.line;i&&this.catchUp(i)}this.tsPrintClassMemberModifiers(e),this._methodHead(e)};var r=i(45741);const{isExportDefaultDeclaration:n,isExportNamedDeclaration:s}=r},19845:(e,t)=>{function i(){this.space()}Object.defineProperty(t,"__esModule",{value:!0}),t.JSXAttribute=function(e){this.print(e.name),e.value&&(this.tokenChar(61),this.print(e.value))},t.JSXClosingElement=function(e){this.tokenChar(60),this.tokenChar(47),this.print(e.name),this.tokenChar(62)},t.JSXClosingFragment=function(){this.token("</"),this.tokenChar(62)},t.JSXElement=function(e){const t=e.openingElement;if(this.print(t),!t.selfClosing){this.indent();for(const t of e.children)this.print(t);this.dedent(),this.print(e.closingElement)}},t.JSXEmptyExpression=function(){this.printInnerComments()},t.JSXExpressionContainer=function(e){this.tokenChar(123),this.print(e.expression),this.rightBrace(e)},t.JSXFragment=function(e){this.print(e.openingFragment),this.indent();for(const t of e.children)this.print(t);this.dedent(),this.print(e.closingFragment)},t.JSXIdentifier=function(e){this.word(e.name)},t.JSXMemberExpression=function(e){this.print(e.object),this.tokenChar(46),this.print(e.property)},t.JSXNamespacedName=function(e){this.print(e.namespace),this.tokenChar(58),this.print(e.name)},t.JSXOpeningElement=function(e){this.tokenChar(60),this.print(e.name),e.typeArguments&&this.print(e.typeArguments),this.print(e.typeParameters),e.attributes.length>0&&(this.space(),this.printJoin(e.attributes,void 0,void 0,i)),e.selfClosing&&(this.space(),this.tokenChar(47)),this.tokenChar(62)},t.JSXOpeningFragment=function(){this.tokenChar(60),this.tokenChar(62)},t.JSXSpreadAttribute=function(e){this.tokenChar(123),this.token("..."),this.print(e.argument),this.rightBrace(e)},t.JSXSpreadChild=function(e){this.tokenChar(123),this.token("..."),this.print(e.expression),this.rightBrace(e)},t.JSXText=function(e){const t=this.getPossibleRaw(e);void 0!==t?this.token(t,!0):this.token(e.value,!0)}},23153:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return!!(0,r.default)(e.type,"Immutable")||!!(0,n.isIdentifier)(e)&&"undefined"===e.name};var r=i(40453),n=i(63555)},23781:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,i){return!!t&&((0,n.default)(t.type,e)?void 0===i||(0,r.default)(t,i):!i&&"Placeholder"===t.type&&e in a.FLIPPED_ALIAS_KEYS&&(0,s.default)(t.expectedNode,e))};var r=i(3903),n=i(40453),s=i(59892),a=i(35108)},25129:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return!(!e||!r.VISITOR_KEYS[e.type])};var r=i(35108)},25765:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,r.default)("innerComments",e,t)};var r=i(26284)},25857:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ExportAllDeclaration=function(e){var t,i;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!=(i=e.assertions)&&i.length?(this.print(e.source,!0),this.space(),this._printAttributes(e,!1)):this.print(e.source),this.semicolon()},t.ExportDefaultDeclaration=function(e){h(this,e),this.word("export"),this.noIndentInnerCommentsHere(),this.space(),this.word("default"),this.space(),this.tokenContext|=n.TokenContext.exportDefault;const t=e.declaration;this.print(t),c(t)||this.semicolon()},t.ExportDefaultSpecifier=function(e){this.print(e.exported)},t.ExportNamedDeclaration=function(e){if(h(this,e),this.word("export"),this.space(),e.declaration){const t=e.declaration;this.print(t),c(t)||this.semicolon()}else{"type"===e.exportKind&&(this.word("type"),this.space());const r=e.specifiers.slice(0);let n=!1;for(;;){const e=r[0];if(!a(e)&&!o(e))break;n=!0,this.print(r.shift()),r.length&&(this.tokenChar(44),this.space())}let s=!1;var t,i;(r.length||!r.length&&!n)&&(s=!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!=(t=e.attributes)&&t.length||null!=(i=e.assertions)&&i.length?(this.print(e.source,!0),this.space(),this._printAttributes(e,s)):this.print(e.source)),this.semicolon()}},t.ExportNamespaceSpecifier=function(e){this.tokenChar(42),this.space(),this.word("as"),this.space(),this.print(e.exported)},t.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))},t.ImportAttribute=function(e){this.print(e.key),this.tokenChar(58),this.space(),this.print(e.value)},t.ImportDeclaration=function(e){var t,i;this.word("import"),this.space();const r="type"===e.importKind||"typeof"===e.importKind;r?(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());const n=e.specifiers.slice(0),s=!!n.length;for(;s;){const e=n[0];if(!l(e)&&!p(e))break;this.print(n.shift()),n.length&&(this.tokenChar(44),this.space())}let a=!1;n.length?(a=!0,this.tokenChar(123),this.space(),this.printList(n,this.shouldPrintTrailingComma("}")),this.space(),this.tokenChar(125)):r&&!s&&(a=!0,this.tokenChar(123),this.tokenChar(125)),(s||r)&&(this.space(),this.word("from"),this.space()),null!=(t=e.attributes)&&t.length||null!=(i=e.assertions)&&i.length?(this.print(e.source,!0),this.space(),this._printAttributes(e,a)):this.print(e.source),this.semicolon()},t.ImportDefaultSpecifier=function(e){this.print(e.local)},t.ImportExpression=function(e){this.word("import"),e.phase&&(this.tokenChar(46),this.word(e.phase)),this.tokenChar(40);const 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)},t.ImportNamespaceSpecifier=function(e){this.tokenChar(42),this.space(),this.word("as"),this.space(),this.print(e.local)},t.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))},t._printAttributes=function(e,t){var i;const{importAttributesKeyword:r}=this.format,{attributes:n,assertions:s}=e;n&&!r&&e.extra&&(e.extra.deprecatedAssertSyntax||e.extra.deprecatedWithLegacySyntax)&&!u&&(u=!0,console.warn('You are using import attributes, without specifying the desired output syntax.\nPlease specify the "importAttributesKeyword" generator option, whose value can be one of:\n - "with" : `import { a } from "b" with { type: "json" };`\n - "assert" : `import { a } from "b" assert { type: "json" };`\n - "with-legacy" : `import { a } from "b" with type: "json";`\n'));const a="assert"===r||!r&&s;if(this.word(a?"assert":"with"),this.space(),!a&&("with-legacy"===r||!r&&null!=(i=e.extra)&&i.deprecatedWithLegacySyntax))return void this.printList(n||s);const o=t?1:0;this.token("{",null,o),this.space(),this.printList(n||s,this.shouldPrintTrailingComma("}")),this.space(),this.token("}",null,o)};var r=i(45741),n=i(36306);const{isClassDeclaration:s,isExportDefaultSpecifier:a,isExportNamespaceSpecifier:o,isImportDefaultSpecifier:l,isImportNamespaceSpecifier:p,isStatement:c}=r;let u=!1;function h(e,t){s(t.declaration)&&e._shouldPrintDecoratorsBeforeExport(t)&&e.printJoin(t.declaration.decorators)}},26228:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t=!0){return"string"==typeof e&&((!t||!(0,r.isKeyword)(e)&&!(0,r.isStrictReservedWord)(e,!0))&&(0,r.isIdentifierName)(e))};var r=i(98109)},26284:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,i){t&&i&&(t[e]=Array.from(new Set([].concat(t[e],i[e]).filter(Boolean))))}},28020:(e,t,i)=>{var r=i(96073),n="undefined"==typeof globalThis?i.g:globalThis;e.exports=function(){for(var e=[],t=0;t<r.length;t++)"function"==typeof n[r[t]]&&(e[e.length]=r[t]);return e}},28525:(e,t,i)=>{var r=i(84913),n=i(8187),s=i(25003),a=i(79696).Buffer,o={"des-ede3-cbc":n.CBC.instantiate(n.EDE),"des-ede3":n.EDE,"des-ede-cbc":n.CBC.instantiate(n.EDE),"des-ede":n.EDE,"des-cbc":n.CBC.instantiate(n.DES),"des-ecb":n.DES};function l(e){r.call(this);var t,i=e.mode.toLowerCase(),n=o[i];t=e.decrypt?"decrypt":"encrypt";var s=e.key;a.isBuffer(s)||(s=a.from(s)),"des-ede"!==i&&"des-ede-cbc"!==i||(s=a.concat([s,s.slice(0,8)]));var l=e.iv;a.isBuffer(l)||(l=a.from(l)),this._des=n.create({key:s,iv:l,type:t})}o.des=o["des-cbc"],o.des3=o["des-ede3-cbc"],e.exports=l,s(l,r),l.prototype._update=function(e){return a.from(this._des.update(e))},l.prototype._final=function(){return a.from(this._des.final())}},29075:(e,t,i)=>{e.exports=a;var r=i(49837),n=Object.create(i(26571));function s(e,t){var i=this._transformState;i.transforming=!1;var r=i.writecb;if(!r)return this.emit("error",new Error("write callback called multiple times"));i.writechunk=null,i.writecb=null,null!=t&&this.push(t),r(e);var n=this._readableState;n.reading=!1,(n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}function a(e){if(!(this instanceof a))return new a(e);r.call(this,e),this._transformState={afterTransform:s.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",o)}function o(){var e=this;"function"==typeof this._flush?this._flush((function(t,i){l(e,t,i)})):l(this,null,null)}function l(e,t,i){if(t)return e.emit("error",t);if(null!=i&&e.push(i),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}n.inherits=i(25003),n.inherits(a,r),a.prototype.push=function(e,t){return this._transformState.needTransform=!1,r.prototype.push.call(this,e,t)},a.prototype._transform=function(e,t,i){throw new Error("_transform() is not implemented")},a.prototype._write=function(e,t,i){var r=this._transformState;if(r.writecb=i,r.writechunk=e,r.writeencoding=t,!r.transforming){var n=this._readableState;(r.needTransform||n.needReadable||n.length<n.highWaterMark)&&this._read(n.highWaterMark)}},a.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},a.prototype._destroy=function(e,t){var i=this;r.prototype._destroy.call(this,e,(function(e){t(e),i.emit("close")}))}},29221:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){e+="";let t="";for(const i of e)t+=(0,n.isIdentifierChar)(i.codePointAt(0))?i:"-";return t=t.replace(/^[-0-9]+/,""),t=t.replace(/[-\s]+(.)?/g,(function(e,t){return t?t.toUpperCase():""})),(0,r.default)(t)||(t=`_${t}`),t||"_"};var r=i(26228),n=i(98109)},30462:(e,t,i)=>{var r=i(67787),n=r.Buffer;function s(e,t){for(var i in e)t[i]=e[i]}function a(e,t,i){return n(e,t,i)}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?e.exports=r:(s(r,t),t.Buffer=a),s(n,a),a.from=function(e,t,i){if("number"==typeof e)throw new TypeError("Argument must not be a number");return n(e,t,i)},a.alloc=function(e,t,i){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=n(e);return void 0!==t?"string"==typeof i?r.fill(t,i):r.fill(t):r.fill(0),r},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},31500:(e,t,i)=>{i.d(t,{A:()=>n});var r=i(1859);function n(e,t,i){return(t=(0,r.A)(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}},32427:(e,t,i)=>{var r=i(67787).Buffer,n=i(70243),s=i(51048);function a(e){var t,i=e.modulus.byteLength();do{t=new n(s(i))}while(t.cmp(e.modulus)>=0||!t.umod(e.prime1)||!t.umod(e.prime2));return t}function o(e,t){var i=function(e){var t=a(e);return{blinder:t.toRed(n.mont(e.modulus)).redPow(new n(e.publicExponent)).fromRed(),unblinder:t.invm(e.modulus)}}(t),s=t.modulus.byteLength(),o=new n(e).mul(i.blinder).umod(t.modulus),l=o.toRed(n.mont(t.prime1)),p=o.toRed(n.mont(t.prime2)),c=t.coefficient,u=t.prime1,h=t.prime2,d=l.redPow(t.exponent1).fromRed(),f=p.redPow(t.exponent2).fromRed(),m=d.isub(f).imul(c).umod(u).imul(h);return f.iadd(m).imul(i.unblinder).umod(t.modulus).toArrayLike(r,"be",s)}o.getr=a,e.exports=o},33335:(e,t)=>{function i(e,t){if(null==e)return{};var i={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;i[r]=e[r]}return i}class r{constructor(e,t,i){this.line=void 0,this.column=void 0,this.index=void 0,this.line=e,this.column=t,this.index=i}}class n{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 s(e,t){const{line:i,column:n,index:s}=e;return new r(i,n+t,s+t)}const a="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED";var o={ImportMetaOutsideModule:{message:"import.meta may appear only with 'sourceType: \"module\"'",code:a},ImportOutsideModule:{message:"'import' and 'export' may appear only with 'sourceType: \"module\"'",code:a}};const l={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"},p=e=>"UpdateExpression"===e.type?l.UpdateExpression[`${e.prefix}`]:l[e.type];var c={AccessorIsGenerator:({kind:e})=>`A ${e}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:({kind:e})=>`Missing initializer in ${e} 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:({exportName:e})=>`\`${e}\` 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:({localName:e,exportName:t})=>`A string literal cannot be used as an exported binding without \`from\`.\n- Did you mean \`export { '${e}' as '${t}' } from 'some-module'\`?`,ExportDefaultFromAsIdentifier:"'from' is not allowed as an identifier after 'export default'.",ForInOfLoopInitializer:({type:e})=>`'${"ForInStatement"===e?"for-in":"for-of"}' loop variable declaration may not have an initializer.`,ForInUsing:"For-in loop may not start with 'using' declaration.",ForOfAsync:"The left-hand side of a for-of loop may not be 'async'.",ForOfLet:"The left-hand side of a for-of loop may not start with 'let'.",GeneratorInSingleStatementContext:"Generators can only be declared at the top level or inside a block.",IllegalBreakContinue:({type:e})=>`Unsyntactic ${"BreakStatement"===e?"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:({importName:e})=>`A string literal cannot be used as an imported binding.\n- Did you mean \`import { "${e}" 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:({radix:e})=>`Expected number in radix ${e}.`,InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:({reservedWord:e})=>`Escape sequence in keyword ${e}.`,InvalidIdentifier:({identifierName:e})=>`Invalid identifier ${e}.`,InvalidLhs:({ancestor:e})=>`Invalid left-hand side in ${p(e)}.`,InvalidLhsBinding:({ancestor:e})=>`Binding invalid left-hand side in ${p(e)}.`,InvalidLhsOptionalChaining:({ancestor:e})=>`Invalid optional chaining in the left-hand side of ${p(e)}.`,InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:({unexpected:e})=>`Unexpected character '${e}'.`,InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:({identifierName:e})=>`Private name #${e} is not defined.`,InvalidPropertyBindingPattern:"Binding member expression.",InvalidRecordProperty:"Only properties and spread elements are allowed in record definitions.",InvalidRestAssignmentPattern:"Invalid rest operator's argument.",LabelRedeclaration:({labelName:e})=>`Label '${e}' is already declared.`,LetInLexicalBinding:"'let' is disallowed as a lexically bound name.",LineTerminatorBeforeArrow:"No line break is allowed before '=>'.",MalformedRegExpFlags:"Invalid regular expression flag.",MissingClassName:"A class name is required.",MissingEqInAssignment:"Only '=' operator can be used for specifying default value.",MissingSemicolon:"Missing semicolon.",MissingPlugin:({missingPlugin:e})=>`This experimental syntax requires enabling the parser plugin: ${e.map((e=>JSON.stringify(e))).join(", ")}.`,MissingOneOfPlugins:({missingPlugin:e})=>`This experimental syntax requires enabling one of the following parser plugin(s): ${e.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:({key:e})=>`Duplicate key "${e}" is not allowed in module attributes.`,ModuleExportNameHasLoneSurrogate:({surrogateCharCode:e})=>`An export name cannot include a lone surrogate, found '\\u${e.toString(16)}'.`,ModuleExportUndefined:({localName:e})=>`Export '${e}' is not defined.`,MultipleDefaultsInSwitch:"Multiple default clauses.",NewlineAfterThrow:"Illegal newline after throw.",NoCatchOrFinally:"Missing catch or finally clause.",NumberIdentifier:"Identifier directly after number.",NumericSeparatorInEscapeSequence:"Numeric separators are not allowed inside unicode escape sequences or hex escape sequences.",ObsoleteAwaitStar:"'await*' has been removed from the async functions proposal. Use Promise.all() instead.",OptionalChainingNoNew:"Constructors in/after an Optional Chain are not allowed.",OptionalChainingNoTemplate:"Tagged Template Literals are not allowed in optionalChain.",OverrideOnConstructor:"'override' modifier cannot appear on a constructor declaration.",ParamDupe:"Argument name clash.",PatternHasAccessor:"Object pattern can't contain getter or setter.",PatternHasMethod:"Object pattern can't contain methods.",PrivateInExpectedIn:({identifierName:e})=>`Private names are only allowed in property accesses (\`obj.#${e}\`) or in \`in\` expressions (\`#${e} in obj\`).`,PrivateNameRedeclaration:({identifierName:e})=>`Duplicate private name #${e}.`,RecordExpressionBarIncorrectEndSyntaxType:"Record expressions ending with '|}' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionBarIncorrectStartSyntaxType:"Record expressions starting with '{|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionHashIncorrectStartSyntaxType:"Record expressions starting with '#{' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",RecordNoProto:"'__proto__' is not allowed in Record expressions.",RestTrailingComma:"Unexpected trailing comma after rest element.",SloppyFunction:"In non-strict mode code, functions can only be declared at top level or inside a block.",SloppyFunctionAnnexB:"In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement.",SourcePhaseImportRequiresDefault:'Only `import source x from "./module"` is valid.',StaticPrototype:"Classes may not have static property named prototype.",SuperNotAllowed:"`super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class?",SuperPrivateField:"Private fields can't be accessed on super.",TrailingDecorator:"Decorators must be attached to a class element.",TupleExpressionBarIncorrectEndSyntaxType:"Tuple expressions ending with '|]' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionBarIncorrectStartSyntaxType:"Tuple expressions starting with '[|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionHashIncorrectStartSyntaxType:"Tuple expressions starting with '#[' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",UnexpectedArgumentPlaceholder:"Unexpected argument placeholder.",UnexpectedAwaitAfterPipelineBody:'Unexpected "await" after pipeline body; await must have parentheses in minimal proposal.',UnexpectedDigitAfterHash:"Unexpected digit after hash token.",UnexpectedImportExport:"'import' and 'export' may only appear at the top level.",UnexpectedKeyword:({keyword:e})=>`Unexpected keyword '${e}'.`,UnexpectedLeadingDecorator:"Leading decorators must be attached to a class declaration.",UnexpectedLexicalDeclaration:"Lexical declaration cannot appear in a single-statement context.",UnexpectedNewTarget:"`new.target` can only be used in functions or class properties.",UnexpectedNumericSeparator:"A numeric separator is only allowed between two digits.",UnexpectedPrivateField:"Unexpected private name.",UnexpectedReservedWord:({reservedWord:e})=>`Unexpected reserved word '${e}'.`,UnexpectedSuper:"'super' is only allowed in object methods and classes.",UnexpectedToken:({expected:e,unexpected:t})=>`Unexpected token${t?` '${t}'.`:""}${e?`, expected "${e}"`:""}`,UnexpectedTokenUnaryExponentiation:"Illegal expression. Wrap left hand side or entire exponentiation in parentheses.",UnexpectedUsingDeclaration:"Using declaration cannot appear in the top level when source type is `script` 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:({target:e,onlyValidPropertyName:t})=>`The only valid meta property for ${e} is ${e}.${t}.`,UnsupportedParameterDecorator:"Decorators cannot be used to decorate parameters.",UnsupportedPropertyDecorator:"Decorators cannot be used to decorate object literal properties.",UnsupportedSuper:"'super' can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop]).",UnterminatedComment:"Unterminated comment.",UnterminatedRegExp:"Unterminated regular expression.",UnterminatedString:"Unterminated string constant.",UnterminatedTemplate:"Unterminated template.",UsingDeclarationExport:"Using declaration cannot be exported.",UsingDeclarationHasBindingPattern:"Using declaration cannot have destructuring patterns.",VarRedeclaration:({identifierName:e})=>`Identifier '${e}' has already been declared.`,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."},u={ParseExpressionEmptyInput:"Unexpected parseExpression() input: The input is empty or contains only comments.",ParseExpressionExpectsEOF:({unexpected:e})=>`Unexpected parseExpression() input: The input should contain exactly one expression, but the first expression is followed by the unexpected character \`${String.fromCodePoint(e)}\`.`};const h=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]);var d=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:({token:e})=>`Invalid topic token ${e}. In order to use ${e} as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "${e}" }.`,PipeTopicUnused:"Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.",PipeUnparenthesizedBody:({type:e})=>`Hack-style pipe body cannot be an unparenthesized ${p({type:e})}; please wrap it in parentheses.`},{PipelineBodyNoArrow:'Unexpected arrow "=>" after pipeline body; arrow function in pipeline body must be parenthesized.',PipelineBodySequenceExpression:"Pipeline body may not be a comma-separated sequence expression.",PipelineHeadSequenceExpression:"Pipeline head should not be a comma-separated sequence expression.",PipelineTopicUnused:"Pipeline is in topic style but does not use topic reference.",PrimaryTopicNotAllowed:"Topic reference was used in a lexical context without topic binding.",PrimaryTopicRequiresSmartPipeline:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.'});const f=["message"];function m(e,t,i){Object.defineProperty(e,t,{enumerable:!1,configurable:!0,value:i})}function y({toMessage:e,code:t,reasonCode:i,syntaxPlugin:n}){const s="MissingPlugin"===i||"MissingOneOfPlugins"===i;{const e={AccessorCannotDeclareThisParameter:"AccesorCannotDeclareThisParameter",AccessorCannotHaveTypeParameters:"AccesorCannotHaveTypeParameters",ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:"ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference",SetAccessorCannotHaveOptionalParameter:"SetAccesorCannotHaveOptionalParameter",SetAccessorCannotHaveRestParameter:"SetAccesorCannotHaveRestParameter",SetAccessorCannotHaveReturnType:"SetAccesorCannotHaveReturnType"};e[i]&&(i=e[i])}return function a(o,l){const p=new SyntaxError;return p.code=t,p.reasonCode=i,p.loc=o,p.pos=o.index,p.syntaxPlugin=n,s&&(p.missingPlugin=l.missingPlugin),m(p,"clone",(function(e={}){var t;const{line:i,column:n,index:s}=null!=(t=e.loc)?t:o;return a(new r(i,n,s),Object.assign({},l,e.details))})),m(p,"details",l),Object.defineProperty(p,"message",{configurable:!0,get(){const t=`${e(l)} (${o.line}:${o.column})`;return this.message=t,t},set(e){Object.defineProperty(this,"message",{value:e,writable:!0})}}),p}}function T(e,t){if(Array.isArray(e))return t=>T(t,e[0]);const r={};for(const n of Object.keys(e)){const s=e[n],a="string"==typeof s?{message:()=>s}:"function"==typeof s?{message:s}:s,{message:o}=a,l=i(a,f),p="string"==typeof o?()=>o:o;r[n]=y(Object.assign({code:"BABEL_PARSER_SYNTAX_ERROR",reasonCode:n,toMessage:p},t?{syntaxPlugin:t}:{},l))}return r}const g=Object.assign({},T(o),T(c),T({StrictDelete:"Deleting local variable in strict mode.",StrictEvalArguments:({referenceName:e})=>`Assigning to '${e}' in strict mode.`,StrictEvalArgumentsBinding:({bindingName:e})=>`Binding '${e}' in strict mode.`,StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block.",StrictNumericEscape:"The only valid numeric escape in strict mode is '\\0'.",StrictOctalLiteral:"Legacy octal literals are not allowed in strict mode.",StrictWith:"'with' in strict mode."}),T(u),T`pipelineOperator`(d)),{defineProperty:b}=Object,S=(e,t)=>{e&&b(e,t,{enumerable:!1,value:e[t]})};function x(e){return S(e.loc.start,"index"),S(e.loc.end,"index"),e}class E{constructor(e,t){this.token=void 0,this.preserveSpace=void 0,this.token=e,this.preserveSpace=!!t}}const v={brace:new E("{"),j_oTag:new E("<tag"),j_cTag:new E("</tag"),j_expr:new E("<tag>...</tag>",!0)};v.template=new E("`",!0);const P=!0,w=!0,A=!0,I=!0,C=!0;class N{constructor(e,t={}){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}}const O=new Map;function k(e,t={}){t.keyword=e;const i=U(e,t);return O.set(e,i),i}function _(e,t){return U(e,{beforeExpr:P,binop:t})}let M=-1;const L=[],D=[],B=[],F=[],j=[],R=[];function U(e,t={}){var i,r,n,s;return++M,D.push(e),B.push(null!=(i=t.binop)?i:-1),F.push(null!=(r=t.beforeExpr)&&r),j.push(null!=(n=t.startsExpr)&&n),R.push(null!=(s=t.prefix)&&s),L.push(new N(e,t)),M}function V(e,t={}){var i,r,n,s;return++M,O.set(e,M),D.push(e),B.push(null!=(i=t.binop)?i:-1),F.push(null!=(r=t.beforeExpr)&&r),j.push(null!=(n=t.startsExpr)&&n),R.push(null!=(s=t.prefix)&&s),L.push(new N("name",t)),M}const K={bracketL:U("[",{beforeExpr:P,startsExpr:w}),bracketHashL:U("#[",{beforeExpr:P,startsExpr:w}),bracketBarL:U("[|",{beforeExpr:P,startsExpr:w}),bracketR:U("]"),bracketBarR:U("|]"),braceL:U("{",{beforeExpr:P,startsExpr:w}),braceBarL:U("{|",{beforeExpr:P,startsExpr:w}),braceHashL:U("#{",{beforeExpr:P,startsExpr:w}),braceR:U("}"),braceBarR:U("|}"),parenL:U("(",{beforeExpr:P,startsExpr:w}),parenR:U(")"),comma:U(",",{beforeExpr:P}),semi:U(";",{beforeExpr:P}),colon:U(":",{beforeExpr:P}),doubleColon:U("::",{beforeExpr:P}),dot:U("."),question:U("?",{beforeExpr:P}),questionDot:U("?."),arrow:U("=>",{beforeExpr:P}),template:U("template"),ellipsis:U("...",{beforeExpr:P}),backQuote:U("`",{startsExpr:w}),dollarBraceL:U("${",{beforeExpr:P,startsExpr:w}),templateTail:U("...`",{startsExpr:w}),templateNonTail:U("...${",{beforeExpr:P,startsExpr:w}),at:U("@"),hash:U("#",{startsExpr:w}),interpreterDirective:U("#!..."),eq:U("=",{beforeExpr:P,isAssign:I}),assign:U("_=",{beforeExpr:P,isAssign:I}),slashAssign:U("_=",{beforeExpr:P,isAssign:I}),xorAssign:U("_=",{beforeExpr:P,isAssign:I}),moduloAssign:U("_=",{beforeExpr:P,isAssign:I}),incDec:U("++/--",{prefix:C,postfix:!0,startsExpr:w}),bang:U("!",{beforeExpr:P,prefix:C,startsExpr:w}),tilde:U("~",{beforeExpr:P,prefix:C,startsExpr:w}),doubleCaret:U("^^",{startsExpr:w}),doubleAt:U("@@",{startsExpr:w}),pipeline:_("|>",0),nullishCoalescing:_("??",1),logicalOR:_("||",1),logicalAND:_("&&",2),bitwiseOR:_("|",3),bitwiseXOR:_("^",4),bitwiseAND:_("&",5),equality:_("==/!=/===/!==",6),lt:_("</>/<=/>=",7),gt:_("</>/<=/>=",7),relational:_("</>/<=/>=",7),bitShift:_("<</>>/>>>",8),bitShiftL:_("<</>>/>>>",8),bitShiftR:_("<</>>/>>>",8),plusMin:U("+/-",{beforeExpr:P,binop:9,prefix:C,startsExpr:w}),modulo:U("%",{binop:10,startsExpr:w}),star:U("*",{binop:10}),slash:_("/",10),exponent:U("**",{beforeExpr:P,binop:11,rightAssociative:!0}),_in:k("in",{beforeExpr:P,binop:7}),_instanceof:k("instanceof",{beforeExpr:P,binop:7}),_break:k("break"),_case:k("case",{beforeExpr:P}),_catch:k("catch"),_continue:k("continue"),_debugger:k("debugger"),_default:k("default",{beforeExpr:P}),_else:k("else",{beforeExpr:P}),_finally:k("finally"),_function:k("function",{startsExpr:w}),_if:k("if"),_return:k("return",{beforeExpr:P}),_switch:k("switch"),_throw:k("throw",{beforeExpr:P,prefix:C,startsExpr:w}),_try:k("try"),_var:k("var"),_const:k("const"),_with:k("with"),_new:k("new",{beforeExpr:P,startsExpr:w}),_this:k("this",{startsExpr:w}),_super:k("super",{startsExpr:w}),_class:k("class",{startsExpr:w}),_extends:k("extends",{beforeExpr:P}),_export:k("export"),_import:k("import",{startsExpr:w}),_null:k("null",{startsExpr:w}),_true:k("true",{startsExpr:w}),_false:k("false",{startsExpr:w}),_typeof:k("typeof",{beforeExpr:P,prefix:C,startsExpr:w}),_void:k("void",{beforeExpr:P,prefix:C,startsExpr:w}),_delete:k("delete",{beforeExpr:P,prefix:C,startsExpr:w}),_do:k("do",{isLoop:A,beforeExpr:P}),_for:k("for",{isLoop:A}),_while:k("while",{isLoop:A}),_as:V("as",{startsExpr:w}),_assert:V("assert",{startsExpr:w}),_async:V("async",{startsExpr:w}),_await:V("await",{startsExpr:w}),_defer:V("defer",{startsExpr:w}),_from:V("from",{startsExpr:w}),_get:V("get",{startsExpr:w}),_let:V("let",{startsExpr:w}),_meta:V("meta",{startsExpr:w}),_of:V("of",{startsExpr:w}),_sent:V("sent",{startsExpr:w}),_set:V("set",{startsExpr:w}),_source:V("source",{startsExpr:w}),_static:V("static",{startsExpr:w}),_using:V("using",{startsExpr:w}),_yield:V("yield",{startsExpr:w}),_asserts:V("asserts",{startsExpr:w}),_checks:V("checks",{startsExpr:w}),_exports:V("exports",{startsExpr:w}),_global:V("global",{startsExpr:w}),_implements:V("implements",{startsExpr:w}),_intrinsic:V("intrinsic",{startsExpr:w}),_infer:V("infer",{startsExpr:w}),_is:V("is",{startsExpr:w}),_mixins:V("mixins",{startsExpr:w}),_proto:V("proto",{startsExpr:w}),_require:V("require",{startsExpr:w}),_satisfies:V("satisfies",{startsExpr:w}),_keyof:V("keyof",{startsExpr:w}),_readonly:V("readonly",{startsExpr:w}),_unique:V("unique",{startsExpr:w}),_abstract:V("abstract",{startsExpr:w}),_declare:V("declare",{startsExpr:w}),_enum:V("enum",{startsExpr:w}),_module:V("module",{startsExpr:w}),_namespace:V("namespace",{startsExpr:w}),_interface:V("interface",{startsExpr:w}),_type:V("type",{startsExpr:w}),_opaque:V("opaque",{startsExpr:w}),name:U("name",{startsExpr:w}),placeholder:U("%%",{startsExpr:w}),string:U("string",{startsExpr:w}),num:U("num",{startsExpr:w}),bigint:U("bigint",{startsExpr:w}),decimal:U("decimal",{startsExpr:w}),regexp:U("regexp",{startsExpr:w}),privateName:U("#name",{startsExpr:w}),eof:U("eof"),jsxName:U("jsxName"),jsxText:U("jsxText",{beforeExpr:P}),jsxTagStart:U("jsxTagStart",{startsExpr:w}),jsxTagEnd:U("jsxTagEnd")};function $(e){return e>=93&&e<=133}function q(e){return e>=58&&e<=133}function Y(e){return e>=58&&e<=137}function J(e){return j[e]}function X(e){return e>=129&&e<=131}function W(e){return e>=58&&e<=92}function z(e){return D[e]}function H(e){return B[e]}function G(e){return e>=24&&e<=25}function Q(e){return L[e]}L[8].updateContext=e=>{e.pop()},L[5].updateContext=L[7].updateContext=L[23].updateContext=e=>{e.push(v.brace)},L[22].updateContext=e=>{e[e.length-1]===v.template?e.pop():e.push(v.template)},L[143].updateContext=e=>{e.push(v.j_expr,v.j_oTag)};let Z="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟍꟐꟑꟓꟕ-Ƛꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",ee="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・";const te=new RegExp("["+Z+"]"),ie=new RegExp("["+Z+ee+"]");Z=ee=null;const re=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,2,60,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,42,9,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,496,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],ne=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,80,3,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,343,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,726,6,110,6,6,9,4759,9,787719,239];function se(e,t){let i=65536;for(let r=0,n=t.length;r<n;r+=2){if(i+=t[r],i>e)return!1;if(i+=t[r+1],i>=e)return!0}return!1}function ae(e){return e<65?36===e:e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&te.test(String.fromCharCode(e)):se(e,re)))}function oe(e){return e<48?36===e:e<58||!(e<65)&&(e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&ie.test(String.fromCharCode(e)):se(e,re)||se(e,ne))))}const le=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"]),pe=new Set(["implements","interface","let","package","private","protected","public","static","yield"]),ce=new Set(["eval","arguments"]);function ue(e,t){return t&&"await"===e||"enum"===e}function he(e,t){return ue(e,t)||pe.has(e)}function de(e){return ce.has(e)}function fe(e,t){return he(e,t)||de(e)}const me=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 ye{constructor(e){this.flags=0,this.names=new Map,this.firstLexicalName="",this.flags=e}}class Te{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(){const e=this.currentThisScopeFlags();return(64&e)>0&&!(2&e)}get inStaticBlock(){for(let e=this.scopeStack.length-1;;e--){const{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 ye(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,i){let r=this.currentScope();if(8&t||16&t){this.checkRedeclarationInScope(r,e,t,i);let n=r.names.get(e)||0;16&t?n|=4:(r.firstLexicalName||(r.firstLexicalName=e),n|=2),r.names.set(e,n),8&t&&this.maybeExportDefined(r,e)}else if(4&t)for(let n=this.scopeStack.length-1;n>=0&&(r=this.scopeStack[n],this.checkRedeclarationInScope(r,e,t,i),r.names.set(e,1|(r.names.get(e)||0)),this.maybeExportDefined(r,e),!(1667&r.flags));--n);this.parser.inModule&&1&r.flags&&this.undefinedExports.delete(e)}maybeExportDefined(e,t){this.parser.inModule&&1&e.flags&&this.undefinedExports.delete(t)}checkRedeclarationInScope(e,t,i,r){this.isRedeclaredInScope(e,t,i)&&this.parser.raise(g.VarRedeclaration,r,{identifierName:t})}isRedeclaredInScope(e,t,i){if(!(1&i))return!1;if(8&i)return e.names.has(t);const r=e.names.get(t);return 16&i?(2&r)>0||!this.treatFunctionsAsVarInScope(e)&&(1&r)>0:(2&r)>0&&!(8&e.flags&&e.firstLexicalName===t)||!this.treatFunctionsAsVarInScope(e)&&(4&r)>0}checkLocalExport(e){const{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(let e=this.scopeStack.length-1;;e--){const{flags:t}=this.scopeStack[e];if(1667&t)return t}}currentThisScopeFlags(){for(let e=this.scopeStack.length-1;;e--){const{flags:t}=this.scopeStack[e];if(1731&t&&!(4&t))return t}}}class ge extends ye{constructor(...e){super(...e),this.declareFunctions=new Set}}class be extends Te{createScope(e){return new ge(e)}declareName(e,t,i){const r=this.currentScope();if(2048&t)return this.checkRedeclarationInScope(r,e,t,i),this.maybeExportDefined(r,e),void r.declareFunctions.add(e);super.declareName(e,t,i)}isRedeclaredInScope(e,t,i){if(super.isRedeclaredInScope(e,t,i))return!0;if(2048&i&&!e.declareFunctions.has(t)){const 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)}}const Se=new Set(["_","any","bool","boolean","empty","extends","false","interface","mixed","null","number","static","string","true","typeof","void"]),xe=T`flow`({AmbiguousConditionalArrow:"Ambiguous expression: wrap the arrow functions in parentheses to disambiguate.",AmbiguousDeclareModuleKind:"Found both `declare module.exports` and `declare export` in the same module. Modules can only have 1 since they are either an ES module or they are a CommonJS module.",AssignReservedType:({reservedType:e})=>`Cannot overwrite reserved type ${e}.`,DeclareClassElement:"The `declare` modifier can only appear on class fields.",DeclareClassFieldInitializer:"Initializers are not allowed in fields with the `declare` modifier.",DuplicateDeclareModuleExports:"Duplicate `declare module.exports` statement.",EnumBooleanMemberNotInitialized:({memberName:e,enumName:t})=>`Boolean enum members need to be initialized. Use either \`${e} = true,\` or \`${e} = false,\` in enum \`${t}\`.`,EnumDuplicateMemberName:({memberName:e,enumName:t})=>`Enum member names need to be unique, but the name \`${e}\` has already been used before in enum \`${t}\`.`,EnumInconsistentMemberValues:({enumName:e})=>`Enum \`${e}\` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.`,EnumInvalidExplicitType:({invalidEnumType:e,enumName:t})=>`Enum type \`${e}\` is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${t}\`.`,EnumInvalidExplicitTypeUnknownSupplied:({enumName:e})=>`Supplied enum type is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${e}\`.`,EnumInvalidMemberInitializerPrimaryType:({enumName:e,memberName:t,explicitType:i})=>`Enum \`${e}\` has type \`${i}\`, so the initializer of \`${t}\` needs to be a ${i} literal.`,EnumInvalidMemberInitializerSymbolType:({enumName:e,memberName:t})=>`Symbol enum members cannot be initialized. Use \`${t},\` in enum \`${e}\`.`,EnumInvalidMemberInitializerUnknownType:({enumName:e,memberName:t})=>`The enum member initializer for \`${t}\` needs to be a literal (either a boolean, number, or string) in enum \`${e}\`.`,EnumInvalidMemberName:({enumName:e,memberName:t,suggestion:i})=>`Enum member names cannot start with lowercase 'a' through 'z'. Instead of using \`${t}\`, consider using \`${i}\`, in enum \`${e}\`.`,EnumNumberMemberNotInitialized:({enumName:e,memberName:t})=>`Number enum members need to be initialized, e.g. \`${t} = 1\` in enum \`${e}\`.`,EnumStringMemberInconsistentlyInitialized:({enumName:e})=>`String enum members need to consistently either all use initializers, or use no initializers, in enum \`${e}\`.`,GetterMayNotHaveThisParam:"A getter cannot have a `this` parameter.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` or `typeof` keyword.",ImportTypeShorthandOnlyInPureImport:"The `type` and `typeof` keywords on named imports can only be used on regular `import` statements. It cannot be used with `import type` or `import typeof` statements.",InexactInsideExact:"Explicit inexact syntax cannot appear inside an explicit exact object type.",InexactInsideNonObject:"Explicit inexact syntax cannot appear in class or interface definitions.",InexactVariance:"Explicit inexact syntax cannot have variance.",InvalidNonTypeImportInDeclareModule:"Imports within a `declare module` body must always be `import type` or `import typeof`.",MissingTypeParamDefault:"Type parameter declaration needs a default, since a preceding type parameter declaration has a default.",NestedDeclareModule:"`declare module` cannot be used inside another `declare module`.",NestedFlowComment:"Cannot have a flow comment inside another flow comment.",PatternIsOptional:Object.assign({message:"A binding pattern parameter cannot be optional in an implementation signature."},{reasonCode:"OptionalBindingPattern"}),SetterMayNotHaveThisParam:"A setter cannot have a `this` parameter.",SpreadVariance:"Spread properties cannot have variance.",ThisParamAnnotationRequired:"A type annotation is required for the `this` parameter.",ThisParamBannedInConstructor:"Constructors cannot have a `this` parameter; constructors don't bind `this` like other functions.",ThisParamMayNotBeOptional:"The `this` parameter cannot be optional.",ThisParamMustBeFirst:"The `this` parameter must be the first function parameter.",ThisParamNoDefault:"The `this` parameter may not have a default value.",TypeBeforeInitializer:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeCastInPattern:"The type cast expression is expected to be wrapped with parenthesis.",UnexpectedExplicitInexactInObject:"Explicit inexact syntax must appear at the end of an inexact object.",UnexpectedReservedType:({reservedType:e})=>`Unexpected reserved type ${e}.`,UnexpectedReservedUnderscore:"`_` is only allowed as a type argument to call or new.",UnexpectedSpaceBetweenModuloChecks:"Spaces between `%` and `checks` are not allowed here.",UnexpectedSpreadType:"Spread operator cannot appear in class or interface definitions.",UnexpectedSubtractionOperand:'Unexpected token, expected "number" or "bigint".',UnexpectedTokenAfterTypeParameter:"Expected an arrow function after this type parameter declaration.",UnexpectedTypeParameterBeforeAsyncArrowFunction:"Type parameters must come after the async keyword, e.g. instead of `<T> async () => {}`, use `async <T>() => {}`.",UnsupportedDeclareExportKind:({unsupportedExportKind:e,suggestion:t})=>`\`declare export ${e}\` is not supported. Use \`${t}\` instead.`,UnsupportedStatementInDeclareModule:"Only declares and type imports are allowed inside declare module.",UnterminatedFlowComment:"Unterminated flow-comment."});function Ee(e){return"type"===e.importKind||"typeof"===e.importKind}const ve={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"},Pe=/\*?\s*@((?:no)?flow)\b/,we={__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:"♦"},Ae=new RegExp(/\r\n|[\r\n\u2028\u2029]/.source,"g");function Ie(e){switch(e){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}function Ce(e,t,i){for(let r=t;r<i;r++)if(Ie(e.charCodeAt(r)))return!0;return!1}const Ne=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,Oe=/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/g;function ke(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}}const _e=T`jsx`({AttributeIsEmpty:"JSX attributes must only be assigned a non-empty expression.",MissingClosingTagElement:({openingTagName:e})=>`Expected corresponding JSX closing tag for <${e}>.`,MissingClosingTagFragment:"Expected corresponding JSX closing tag for <>.",UnexpectedSequenceExpression:"Sequence expressions cannot be directly nested inside JSX. Did you mean to wrap it in parentheses (...)?",UnexpectedToken:({unexpected:e,HTMLEntity:t})=>`Unexpected token \`${e}\`. Did you mean \`${t}\` or \`{'${e}'}\`?`,UnsupportedJsxValue:"JSX value should be either an expression or a quoted JSX text.",UnterminatedJsxContent:"Unterminated JSX contents.",UnwrappedAdjacentJSXElements:"Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...</>?"});function Me(e){return!!e&&("JSXOpeningFragment"===e.type||"JSXClosingFragment"===e.type)}function Le(e){if("JSXIdentifier"===e.type)return e.name;if("JSXNamespacedName"===e.type)return e.namespace.name+":"+e.name.name;if("JSXMemberExpression"===e.type)return Le(e.object)+"."+Le(e.property);throw new Error("Node had unexpected type: "+e.type)}class De extends ye{constructor(...e){super(...e),this.tsNames=new Map}}class Be extends Te{constructor(...e){super(...e),this.importsStack=[]}createScope(e){return this.importsStack.push(new Set),new De(e)}enter(e){1024===e&&this.importsStack.push(new Set),super.enter(e)}exit(){const e=super.exit();return 1024===e&&this.importsStack.pop(),e}hasImport(e,t){const i=this.importsStack.length;if(this.importsStack[i-1].has(e))return!0;if(!t&&i>1)for(let t=0;t<i-1;t++)if(this.importsStack[t].has(e))return!0;return!1}declareName(e,t,i){if(4096&t)return this.hasImport(e,!0)&&this.parser.raise(g.VarRedeclaration,i,{identifierName:e}),void this.importsStack[this.importsStack.length-1].add(e);const r=this.currentScope();let n=r.tsNames.get(e)||0;if(1024&t)return this.maybeExportDefined(r,e),void r.tsNames.set(e,16|n);super.declareName(e,t,i),2&t&&(1&t||(this.checkRedeclarationInScope(r,e,t,i),this.maybeExportDefined(r,e)),n|=1),256&t&&(n|=2),512&t&&(n|=4),128&t&&(n|=8),n&&r.tsNames.set(e,n)}isRedeclaredInScope(e,t,i){const r=e.tsNames.get(t);return(2&r)>0?!(256&i)||!!(512&i)!=(4&r)>0:128&i&&(8&r)>0?!!(2&e.names.get(t))&&!!(1&i):!!(2&i&&(1&r)>0)||super.isRedeclaredInScope(e,t,i)}checkLocalExport(e){const{name:t}=e;if(!this.hasImport(t)){for(let e=this.scopeStack.length-1;e>=0;e--){const i=this.scopeStack[e].tsNames.get(t);if((1&i)>0||(16&i)>0)return}super.checkLocalExport(e)}}}class Fe{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 je(e,t){return(e?2:0)|(t?1:0)}class Re{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);{const[t,i]=e;if(!this.hasPlugin(t))return!1;const r=this.plugins.get(t);for(const e of Object.keys(i))if((null==r?void 0:r[e])!==i[e])return!1;return!0}}getPluginOption(e,t){var i;return null==(i=this.plugins.get(e))?void 0:i[t]}}function Ue(e,t){void 0===e.trailingComments?e.trailingComments=t:e.trailingComments.unshift(...t)}function Ve(e,t){void 0===e.innerComments?e.innerComments=t:e.innerComments.unshift(...t)}function Ke(e,t,i){let r=null,n=t.length;for(;null===r&&n>0;)r=t[--n];null===r||r.start>i.start?Ve(e,i.comments):Ue(r,i.comments)}class $e extends Re{addComment(e){this.filename&&(e.loc.filename=this.filename);const{commentsLen:t}=this.state;this.comments.length!==t&&(this.comments.length=t),this.comments.push(e),this.state.commentsLen++}processComment(e){const{commentStack:t}=this.state,i=t.length;if(0===i)return;let r=i-1;const n=t[r];n.start===e.end&&(n.leadingNode=e,r--);const{start:s}=e;for(;r>=0;r--){const i=t[r],n=i.end;if(!(n>s)){n===s&&(i.trailingNode=e);break}i.containingNode=e,this.finalizeComment(i),t.splice(r,1)}}finalizeComment(e){var t;const{comments:i}=e;if(null!==e.leadingNode||null!==e.trailingNode)null!==e.leadingNode&&Ue(e.leadingNode,i),null!==e.trailingNode&&function(e,t){void 0===e.leadingComments?e.leadingComments=t:e.leadingComments.unshift(...t)}(e.trailingNode,i);else{const{containingNode:r,start:n}=e;if(44===this.input.charCodeAt(this.offsetToSourcePos(n)-1))switch(r.type){case"ObjectExpression":case"ObjectPattern":case"RecordExpression":Ke(r,r.properties,e);break;case"CallExpression":case"OptionalCallExpression":Ke(r,r.arguments,e);break;case"ImportExpression":Ke(r,[r.source,null!=(t=r.options)?t:null],e);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":Ke(r,r.params,e);break;case"ArrayExpression":case"ArrayPattern":case"TupleExpression":Ke(r,r.elements,e);break;case"ExportNamedDeclaration":case"ImportDeclaration":Ke(r,r.specifiers,e);break;case"TSEnumDeclaration":case"TSEnumBody":Ke(r,r.members,e);break;default:Ve(r,i)}else Ve(r,i)}}finalizeRemainingComments(){const{commentStack:e}=this.state;for(let t=e.length-1;t>=0;t--)this.finalizeComment(e[t]);this.state.commentStack=[]}resetPreviousNodeTrailingComments(e){const{commentStack:t}=this.state,{length:i}=t;if(0===i)return;const r=t[i-1];r.leadingNode===e&&(r.leadingNode=null)}takeSurroundingComments(e,t,i){const{commentStack:r}=this.state,n=r.length;if(0===n)return;let s=n-1;for(;s>=0;s--){const n=r[s],a=n.end;if(n.start===i)n.leadingNode=e;else if(a===t)n.trailingNode=e;else if(a<t)break}}}class qe{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=[v.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({strictMode:e,sourceType:t,startIndex:i,startLine:n,startColumn:s}){this.strict=!1!==e&&(!0===e||"module"===t),this.startIndex=i,this.curLine=n,this.lineStart=-s,this.startLoc=this.endLoc=new r(n,s,i)}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 r(this.curLine,this.pos-this.lineStart,this.pos+this.startIndex)}clone(){const e=new qe;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 Ye=function(e){return e>=48&&e<=57};const Je={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},Xe={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 We(e,t,i,r,n,s){const a=i,o=r,l=n;let p="",c=null,u=i;const{length:h}=t;for(;;){if(i>=h){s.unterminated(a,o,l),p+=t.slice(u,i);break}const d=t.charCodeAt(i);if(ze(e,d,t,i)){p+=t.slice(u,i);break}if(92===d){p+=t.slice(u,i);const a=He(t,i,r,n,"template"===e,s);null!==a.ch||c?p+=a.ch:c={pos:i,lineStart:r,curLine:n},({pos:i,lineStart:r,curLine:n}=a),u=i}else 8232===d||8233===d?(++n,r=++i):10===d||13===d?"template"===e?(p+=t.slice(u,i)+"\n",++i,13===d&&10===t.charCodeAt(i)&&++i,++n,u=r=i):s.unterminated(a,o,l):++i}return{pos:i,str:p,firstInvalidLoc:c,lineStart:r,curLine:n,containsInvalid:!!c}}function ze(e,t,i,r){return"template"===e?96===t||36===t&&123===i.charCodeAt(r+1):t===("double"===e?34:39)}function He(e,t,i,r,n,s){const a=!n;t++;const o=e=>({pos:t,ch:e,lineStart:i,curLine:r}),l=e.charCodeAt(t++);switch(l){case 110:return o("\n");case 114:return o("\r");case 120:{let n;return({code:n,pos:t}=Ge(e,t,i,r,2,!1,a,s)),o(null===n?null:String.fromCharCode(n))}case 117:{let n;return({code:n,pos:t}=Ze(e,t,i,r,a,s)),o(null===n?null:String.fromCodePoint(n))}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:i=t,++r;case 8232:case 8233:return o("");case 56:case 57:if(n)return o(null);s.strictNumericEscape(t-1,i,r);default:if(l>=48&&l<=55){const a=t-1;let l=/^[0-7]+/.exec(e.slice(a,t+2))[0],p=parseInt(l,8);p>255&&(l=l.slice(0,-1),p=parseInt(l,8)),t+=l.length-1;const c=e.charCodeAt(t);if("0"!==l||56===c||57===c){if(n)return o(null);s.strictNumericEscape(a,i,r)}return o(String.fromCharCode(p))}return o(String.fromCharCode(l))}}function Ge(e,t,i,r,n,s,a,o){const l=t;let p;return({n:p,pos:t}=Qe(e,t,i,r,16,n,s,!1,o,!a)),null===p&&(a?o.invalidEscapeSequence(l,i,r):t=l-1),{code:p,pos:t}}function Qe(e,t,i,r,n,s,a,o,l,p){const c=t,u=16===n?Je.hex:Je.decBinOct,h=16===n?Xe.hex:10===n?Xe.dec:8===n?Xe.oct:Xe.bin;let d=!1,f=0;for(let c=0,m=null==s?1/0:s;c<m;++c){const s=e.charCodeAt(t);let c;if(95!==s||"bail"===o){if(c=s>=97?s-97+10:s>=65?s-65+10:Ye(s)?s-48:1/0,c>=n){if(c<=9&&p)return{n:null,pos:t};if(c<=9&&l.invalidDigit(t,i,r,n))c=0;else{if(!a)break;c=0,d=!0}}++t,f=f*n+c}else{const n=e.charCodeAt(t-1),s=e.charCodeAt(t+1);if(o){if(Number.isNaN(s)||!h(s)||u.has(n)||u.has(s)){if(p)return{n:null,pos:t};l.unexpectedNumericSeparator(t,i,r)}}else{if(p)return{n:null,pos:t};l.numericSeparatorInEscapeSequence(t,i,r)}++t}}return t===c||null!=s&&t-c!==s||d?{n:null,pos:t}:{n:f,pos:t}}function Ze(e,t,i,r,n,s){let a;if(123===e.charCodeAt(t)){if(++t,({code:a,pos:t}=Ge(e,t,i,r,e.indexOf("}",t)-t,!0,n,s)),++t,null!==a&&a>1114111){if(!n)return{code:null,pos:t};s.invalidCodePoint(t,i,r)}}else({code:a,pos:t}=Ge(e,t,i,r,4,!1,n,s));return{code:a,pos:t}}function et(e,t,i){return new r(i,e-t,e)}const tt=new Set([103,109,115,105,121,117,100,118]);class it{constructor(e){const t=e.startIndex||0;this.type=e.type,this.value=e.value,this.start=t+e.start,this.end=t+e.end,this.loc=new n(e.startLoc,e.endLoc)}}class rt extends $e{constructor(e,t){super(),this.isLookahead=void 0,this.tokens=[],this.errorHandlers_readInt={invalidDigit:(e,t,i,r)=>!!(2048&this.optionFlags)&&(this.raise(g.InvalidDigit,et(e,t,i),{radix:r}),!0),numericSeparatorInEscapeSequence:this.errorBuilder(g.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:this.errorBuilder(g.UnexpectedNumericSeparator)},this.errorHandlers_readCodePoint=Object.assign({},this.errorHandlers_readInt,{invalidEscapeSequence:this.errorBuilder(g.InvalidEscapeSequence),invalidCodePoint:this.errorBuilder(g.InvalidCodePoint)}),this.errorHandlers_readStringContents_string=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:(e,t,i)=>{this.recordStrictModeErrors(g.StrictNumericEscape,et(e,t,i))},unterminated:(e,t,i)=>{throw this.raise(g.UnterminatedString,et(e-1,t,i))}}),this.errorHandlers_readStringContents_template=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:this.errorBuilder(g.StrictNumericEscape),unterminated:(e,t,i)=>{throw this.raise(g.UnterminatedTemplate,et(e,t,i))}}),this.state=new qe,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 it(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(){const e=this.state;this.state=this.createLookaheadState(e),this.isLookahead=!0,this.nextToken(),this.isLookahead=!1;const t=this.state;return this.state=e,t}nextTokenStart(){return this.nextTokenStartSince(this.state.pos)}nextTokenStartSince(e){return Ne.lastIndex=e,Ne.test(this.input)?Ne.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 Oe.lastIndex=e,Oe.test(this.input)?Oe.lastIndex:e}lookaheadInLineCharCode(){return this.input.charCodeAt(this.nextTokenInLineStart())}codePointAtPos(e){let t=this.input.charCodeAt(e);if(55296==(64512&t)&&++e<this.input.length){const i=this.input.charCodeAt(e);56320==(64512&i)&&(t=65536+((1023&t)<<10)+(1023&i))}return t}setStrict(e){this.state.strict=e,e&&(this.state.strictErrors.forEach((([e,t])=>this.raise(e,t))),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){let t;this.isLookahead||(t=this.state.curPosition());const i=this.state.pos,r=this.input.indexOf(e,i+2);if(-1===r)throw this.raise(g.UnterminatedComment,this.state.curPosition());for(this.state.pos=r+e.length,Ae.lastIndex=i+2;Ae.test(this.input)&&Ae.lastIndex<=r;)++this.state.curLine,this.state.lineStart=Ae.lastIndex;if(this.isLookahead)return;const s={type:"CommentBlock",value:this.input.slice(i+2,r),start:this.sourceToOffsetPos(i),end:this.sourceToOffsetPos(r+e.length),loc:new n(t,this.state.curPosition())};return 256&this.optionFlags&&this.pushToken(s),s}skipLineComment(e){const t=this.state.pos;let i;this.isLookahead||(i=this.state.curPosition());let r=this.input.charCodeAt(this.state.pos+=e);if(this.state.pos<this.length)for(;!Ie(r)&&++this.state.pos<this.length;)r=this.input.charCodeAt(this.state.pos);if(this.isLookahead)return;const s=this.state.pos,a={type:"CommentLine",value:this.input.slice(t+e,s),start:this.sourceToOffsetPos(t),end:this.sourceToOffsetPos(s),loc:new n(i,this.state.curPosition())};return 256&this.optionFlags&&this.pushToken(a),a}skipSpace(){const e=this.state.pos,t=4096&this.optionFlags?[]:null;e:for(;this.state.pos<this.length;){const i=this.input.charCodeAt(this.state.pos);switch(i){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:{const e=this.skipBlockComment("*/");void 0!==e&&(this.addComment(e),null==t||t.push(e));break}case 47:{const e=this.skipLineComment(2);void 0!==e&&(this.addComment(e),null==t||t.push(e));break}default:break e}break;default:if(ke(i))++this.state.pos;else if(45===i&&!this.inModule&&8192&this.optionFlags){const i=this.state.pos;if(45!==this.input.charCodeAt(i+1)||62!==this.input.charCodeAt(i+2)||!(0===e||this.state.lineStart>e))break e;{const e=this.skipLineComment(3);void 0!==e&&(this.addComment(e),null==t||t.push(e))}}else{if(60!==i||this.inModule||!(8192&this.optionFlags))break e;{const e=this.state.pos;if(33!==this.input.charCodeAt(e+1)||45!==this.input.charCodeAt(e+2)||45!==this.input.charCodeAt(e+3))break e;{const e=this.skipLineComment(4);void 0!==e&&(this.addComment(e),null==t||t.push(e))}}}}}if((null==t?void 0:t.length)>0){const i=this.state.pos,r={start:this.sourceToOffsetPos(e),end:this.sourceToOffsetPos(i),comments:t,leadingNode:null,trailingNode:null,containingNode:null};this.state.commentStack.push(r)}}finishToken(e,t){this.state.end=this.state.pos,this.state.endLoc=this.state.curPosition();const i=this.state.type;this.state.type=e,this.state.value=t,this.isLookahead||this.updateContext(i)}replaceToken(e){this.state.type=e,this.updateContext()}readToken_numberSign(){if(0===this.state.pos&&this.readToken_interpreter())return;const e=this.state.pos+1,t=this.codePointAtPos(e);if(t>=48&&t<=57)throw this.raise(g.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?g.RecordExpressionHashIncorrectStartSyntaxType:g.TupleExpressionHashIncorrectStartSyntaxType,this.state.curPosition());this.state.pos+=2,123===t?this.finishToken(7):this.finishToken(1)}else ae(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(){const 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;let e=this.input.charCodeAt(this.state.pos+1);if(33!==e)return!1;const t=this.state.pos;for(this.state.pos+=1;!Ie(e)&&++this.state.pos<this.length;)e=this.input.charCodeAt(this.state.pos);const i=this.input.slice(t+2,this.state.pos);return this.finishToken(28,i),!0}readToken_mult_modulo(e){let t=42===e?55:54,i=1,r=this.input.charCodeAt(this.state.pos+1);42===e&&42===r&&(i++,r=this.input.charCodeAt(this.state.pos+2),t=57),61!==r||this.state.inType||(i++,t=37===e?33:30),this.finishOp(t,i)}readToken_pipe_amp(e){const 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(g.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(g.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(){const e=this.input.charCodeAt(this.state.pos+1);61!==e||this.state.inType?94===e&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"^^"}])?(this.finishOp(37,2),94===this.input.codePointAt(this.state.pos)&&this.unexpected()):this.finishOp(44,1):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){const 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(){const{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(){const{pos:e}=this.state,t=this.input.charCodeAt(e+1);if(62===t){const t=62===this.input.charCodeAt(e+2)?3:2;return 61===this.input.charCodeAt(e+t)?void this.finishOp(30,t+1):void this.finishOp(52,t)}61!==t?this.finishOp(48,1):this.finishOp(49,2)}readToken_eq_excl(e){const 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(){const 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(g.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(g.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:{const e=this.input.charCodeAt(this.state.pos+1);if(120===e||88===e)return void this.readRadixNumber(16);if(111===e||79===e)return void this.readRadixNumber(8);if(98===e||66===e)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(ae(e))return void this.readWord(e)}throw this.raise(g.InvalidOrUnexpectedToken,this.state.curPosition(),{unexpected:String.fromCodePoint(e)})}finishOp(e,t){const i=this.input.slice(this.state.pos,this.state.pos+t);this.state.pos+=t,this.finishToken(e,i)}readRegexp(){const e=this.state.startLoc,t=this.state.start+1;let i,r,{pos:n}=this.state;for(;;++n){if(n>=this.length)throw this.raise(g.UnterminatedRegExp,s(e,1));const t=this.input.charCodeAt(n);if(Ie(t))throw this.raise(g.UnterminatedRegExp,s(e,1));if(i)i=!1;else{if(91===t)r=!0;else if(93===t&&r)r=!1;else if(47===t&&!r)break;i=92===t}}const a=this.input.slice(t,n);++n;let o="";const l=()=>s(e,n+2-t);for(;n<this.length;){const e=this.codePointAtPos(n),t=String.fromCharCode(e);if(tt.has(e))118===e?o.includes("u")&&this.raise(g.IncompatibleRegExpUVFlags,l()):117===e&&o.includes("v")&&this.raise(g.IncompatibleRegExpUVFlags,l()),o.includes(t)&&this.raise(g.DuplicateRegExpFlags,l());else{if(!oe(e)&&92!==e)break;this.raise(g.MalformedRegExpFlags,l())}++n,o+=t}this.state.pos=n,this.finishToken(138,{pattern:a,flags:o})}readInt(e,t,i=!1,r=!0){const{n,pos:s}=Qe(this.input,this.state.pos,this.state.lineStart,this.state.curLine,e,t,i,r,this.errorHandlers_readInt,!1);return this.state.pos=s,n}readRadixNumber(e){const t=this.state.pos,i=this.state.curPosition();let r=!1;this.state.pos+=2;const n=this.readInt(e);null==n&&this.raise(g.InvalidDigit,s(i,2),{radix:e});const a=this.input.charCodeAt(this.state.pos);if(110===a)++this.state.pos,r=!0;else if(109===a)throw this.raise(g.InvalidDecimal,i);if(ae(this.codePointAtPos(this.state.pos)))throw this.raise(g.NumberIdentifier,this.state.curPosition());if(r){const e=this.input.slice(t,this.state.pos).replace(/[_n]/g,"");this.finishToken(136,e)}else this.finishToken(135,n)}readNumber(e){const t=this.state.pos,i=this.state.curPosition();let r=!1,n=!1,a=!1,o=!1;e||null!==this.readInt(10)||this.raise(g.InvalidNumber,this.state.curPosition());const l=this.state.pos-t>=2&&48===this.input.charCodeAt(t);if(l){const e=this.input.slice(t,this.state.pos);if(this.recordStrictModeErrors(g.StrictOctalLiteral,i),!this.state.strict){const t=e.indexOf("_");t>0&&this.raise(g.ZeroDigitNumericSeparator,s(i,t))}o=l&&!/[89]/.test(e)}let p=this.input.charCodeAt(this.state.pos);if(46!==p||o||(++this.state.pos,this.readInt(10),r=!0,p=this.input.charCodeAt(this.state.pos)),69!==p&&101!==p||o||(p=this.input.charCodeAt(++this.state.pos),43!==p&&45!==p||++this.state.pos,null===this.readInt(10)&&this.raise(g.InvalidOrMissingExponent,i),r=!0,a=!0,p=this.input.charCodeAt(this.state.pos)),110===p&&((r||l)&&this.raise(g.InvalidBigIntLiteral,i),++this.state.pos,n=!0),109===p){this.expectPlugin("decimal",this.state.curPosition()),(a||l)&&this.raise(g.InvalidDecimal,i),++this.state.pos;var c=!0}if(ae(this.codePointAtPos(this.state.pos)))throw this.raise(g.NumberIdentifier,this.state.curPosition());const u=this.input.slice(t,this.state.pos).replace(/[_mn]/g,"");if(n)return void this.finishToken(136,u);if(c)return void this.finishToken(137,u);const h=o?parseInt(u,8):parseFloat(u);this.finishToken(135,h)}readCodePoint(e){const{code:t,pos:i}=Ze(this.input,this.state.pos,this.state.lineStart,this.state.curLine,e,this.errorHandlers_readCodePoint);return this.state.pos=i,t}readString(e){const{str:t,pos:i,curLine:r,lineStart:n}=We(34===e?"double":"single",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_string);this.state.pos=i+1,this.state.lineStart=n,this.state.curLine=r,this.finishToken(134,t)}readTemplateContinuation(){this.match(8)||this.unexpected(null,8),this.state.pos--,this.readTemplateToken()}readTemplateToken(){const e=this.input[this.state.pos],{str:t,firstInvalidLoc:i,pos:n,curLine:s,lineStart:a}=We("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=a,this.state.curLine=s,i&&(this.state.firstInvalidTemplateEscapePos=new r(i.curLine,i.pos-i.lineStart,this.sourceToOffsetPos(i.pos))),96===this.input.codePointAt(n)?this.finishToken(24,i?null:e+t+"`"):(this.state.pos++,this.finishToken(25,i?null:e+t+"${"))}recordStrictModeErrors(e,t){const i=t.index;this.state.strict&&!this.state.strictErrors.has(i)?this.raise(e,t):this.state.strictErrors.set(i,[e,t])}readWord1(e){this.state.containsEsc=!1;let t="";const i=this.state.pos;let r=this.state.pos;for(void 0!==e&&(this.state.pos+=e<=65535?1:2);this.state.pos<this.length;){const e=this.codePointAtPos(this.state.pos);if(oe(e))this.state.pos+=e<=65535?1:2;else{if(92!==e)break;{this.state.containsEsc=!0,t+=this.input.slice(r,this.state.pos);const e=this.state.curPosition(),n=this.state.pos===i?ae:oe;if(117!==this.input.charCodeAt(++this.state.pos)){this.raise(g.MissingUnicodeEscape,this.state.curPosition()),r=this.state.pos-1;continue}++this.state.pos;const s=this.readCodePoint(!0);null!==s&&(n(s)||this.raise(g.EscapedCharNotAnIdentifier,e),t+=String.fromCodePoint(s)),r=this.state.pos}}}return t+this.input.slice(r,this.state.pos)}readWord(e){const t=this.readWord1(e),i=O.get(t);void 0!==i?this.finishToken(i,z(i)):this.finishToken(132,t)}checkKeywordEscapes(){const{type:e}=this.state;W(e)&&this.state.containsEsc&&this.raise(g.InvalidEscapedReservedWord,this.state.startLoc,{reservedWord:z(e)})}raise(e,t,i={}){const n=e(t instanceof r?t:t.loc.start,i);if(!(2048&this.optionFlags))throw n;return this.isLookahead||this.state.errors.push(n),n}raiseOverwrite(e,t,i={}){const n=t instanceof r?t:t.loc.start,s=n.index,a=this.state.errors;for(let t=a.length-1;t>=0;t--){const r=a[t];if(r.loc.index===s)return a[t]=e(n,i);if(r.loc.index<s)break}return this.raise(e,t,i)}updateContext(e){}unexpected(e,t){throw this.raise(g.UnexpectedToken,null!=e?e:this.state.startLoc,{expected:t?z(t):null})}expectPlugin(e,t){if(this.hasPlugin(e))return!0;throw this.raise(g.MissingPlugin,null!=t?t:this.state.startLoc,{missingPlugin:[e]})}expectOnePlugin(e){if(!e.some((e=>this.hasPlugin(e))))throw this.raise(g.MissingOneOfPlugins,this.state.startLoc,{missingPlugin:e})}errorBuilder(e){return(t,i,r)=>{this.raise(e,et(t,i,r))}}}class nt{constructor(){this.privateNames=new Set,this.loneAccessors=new Map,this.undefinedPrivateNames=new Map}}class st{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 nt)}exit(){const e=this.stack.pop(),t=this.current();for(const[i,r]of Array.from(e.undefinedPrivateNames))t?t.undefinedPrivateNames.has(i)||t.undefinedPrivateNames.set(i,r):this.parser.raise(g.InvalidPrivateFieldResolution,r,{identifierName:i})}declarePrivateName(e,t,i){const{privateNames:r,loneAccessors:n,undefinedPrivateNames:s}=this.current();let a=r.has(e);if(3&t){const i=a&&n.get(e);i?(a=(3&i)==(3&t)||(4&i)!=(4&t),a||n.delete(e)):a||n.set(e,t)}a&&this.parser.raise(g.PrivateNameRedeclaration,i,{identifierName:e}),r.add(e),s.delete(e)}usePrivateName(e,t){let i;for(i of this.stack)if(i.privateNames.has(e))return;i?i.undefinedPrivateNames.set(e,t):this.parser.raise(g.InvalidPrivateFieldResolution,t,{identifierName:e})}}class at{constructor(e=0){this.type=e}canBeArrowParameterDeclaration(){return 2===this.type||1===this.type}isCertainlyParameterDeclaration(){return 3===this.type}}class ot extends at{constructor(e){super(e),this.declarationErrors=new Map}recordDeclarationError(e,t){const i=t.index;this.declarationErrors.set(i,[e,t])}clearDeclarationError(e){this.declarationErrors.delete(e)}iterateErrors(e){this.declarationErrors.forEach(e)}}class lt{constructor(e){this.parser=void 0,this.stack=[new at],this.parser=e}enter(e){this.stack.push(e)}exit(){this.stack.pop()}recordParameterInitializerError(e,t){const i=t.loc.start,{stack:r}=this;let n=r.length-1,s=r[n];for(;!s.isCertainlyParameterDeclaration();){if(!s.canBeArrowParameterDeclaration())return;s.recordDeclarationError(e,i),s=r[--n]}this.parser.raise(e,i)}recordArrowParameterBindingError(e,t){const{stack:i}=this,r=i[i.length-1],n=t.loc.start;if(r.isCertainlyParameterDeclaration())this.parser.raise(e,n);else{if(!r.canBeArrowParameterDeclaration())return;r.recordDeclarationError(e,n)}}recordAsyncArrowParametersError(e){const{stack:t}=this;let i=t.length-1,r=t[i];for(;r.canBeArrowParameterDeclaration();)2===r.type&&r.recordDeclarationError(g.AwaitBindingIdentifier,e),r=t[--i]}validateAsPattern(){const{stack:e}=this,t=e[e.length-1];t.canBeArrowParameterDeclaration()&&t.iterateErrors((([t,i])=>{this.parser.raise(t,i);let r=e.length-2,n=e[r];for(;n.canBeArrowParameterDeclaration();)n.clearDeclarationError(i.index),n=e[--r]}))}}function pt(){return new at}class ct extends rt{addExtra(e,t,i,r=!0){if(!e)return;let{extra:n}=e;null==n&&(n={},e.extra=n),r?n[t]=i:Object.defineProperty(n,t,{enumerable:r,value:i})}isContextual(e){return this.state.type===e&&!this.state.containsEsc}isUnparsedContextual(e,t){if(this.input.startsWith(t,e)){const i=this.input.charCodeAt(e+t.length);return!(oe(i)||55296==(64512&i))}return!1}isLookaheadContextual(e){const 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 Ce(this.input,this.offsetToSourcePos(this.state.lastTokEndLoc.index),this.state.start)}hasFollowingLineBreak(){return Ce(this.input,this.state.end,this.nextTokenStart())}isLineTerminator(){return this.eat(13)||this.canInsertSemicolon()}semicolon(e=!0){(e?this.isLineTerminator():this.eat(13))||this.raise(g.MissingSemicolon,this.state.lastTokEndLoc)}expect(e,t){this.eat(e)||this.unexpected(t,e)}tryParse(e,t=this.state.clone()){const i={node:null};try{const r=e(((e=null)=>{throw i.node=e,i}));if(this.state.errors.length>t.errors.length){const e=this.state;return this.state=t,this.state.tokensLength=e.tokensLength,{node:r,error:e.errors[t.errors.length],thrown:!1,aborted:!1,failState:e}}return{node:r,error:null,thrown:!1,aborted:!1,failState:null}}catch(e){const r=this.state;if(this.state=t,e instanceof SyntaxError)return{node:null,error:e,thrown:!0,aborted:!1,failState:r};if(e===i)return{node:i.node,error:null,thrown:!1,aborted:!0,failState:r};throw e}}checkExpressionErrors(e,t){if(!e)return!1;const{shorthandAssignLoc:i,doubleProtoLoc:r,privateKeyLoc:n,optionalParametersLoc:s,voidPatternLoc:a}=e;if(!t)return!!(i||r||s||n||a);null!=i&&this.raise(g.InvalidCoverInitializedName,i),null!=r&&this.raise(g.DuplicateProto,r),null!=n&&this.raise(g.UnexpectedPrivateField,n),null!=s&&this.unexpected(s),null!=a&&this.raise(g.InvalidCoverDiscardElement,a)}isLiteralPropertyName(){return Y(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(e="module"===this.options.sourceType){const t=this.state.labels;this.state.labels=[];const i=this.exportedIdentifiers;this.exportedIdentifiers=new Set;const r=this.inModule;this.inModule=e;const n=this.scope,s=this.getScopeHandler();this.scope=new s(this,e);const a=this.prodParam;this.prodParam=new Fe;const o=this.classScope;this.classScope=new st(this);const l=this.expressionScope;return this.expressionScope=new lt(this),()=>{this.state.labels=t,this.exportedIdentifiers=i,this.inModule=r,this.scope=n,this.prodParam=a,this.classScope=o,this.expressionScope=l}}enterInitialScopes(){let e=0;(this.inModule||1&this.optionFlags)&&(e|=2),32&this.optionFlags&&(e|=1);const t=!this.inModule&&"commonjs"===this.options.sourceType;(t||2&this.optionFlags)&&(e|=4),this.prodParam.enter(e);let i=t?514:1;4&this.optionFlags&&(i|=512),this.scope.enter(i)}checkDestructuringPrivate(e){const{privateKeyLoc:t}=e;null!==t&&this.expectPlugin("destructuringPrivate",t)}}class ut{constructor(){this.shorthandAssignLoc=null,this.doubleProtoLoc=null,this.privateKeyLoc=null,this.optionalParametersLoc=null,this.voidPatternLoc=null}}class ht{constructor(e,t,i){this.type="",this.start=t,this.end=0,this.loc=new n(i),128&(null==e?void 0:e.optionFlags)&&(this.range=[t,0]),null!=e&&e.filename&&(this.loc.filename=e.filename)}}const dt=ht.prototype;dt.__clone=function(){const e=new ht(void 0,this.start,this.loc.start),t=Object.keys(this);for(let i=0,r=t.length;i<r;i++){const r=t[i];"leadingComments"!==r&&"trailingComments"!==r&&"innerComments"!==r&&(e[r]=this[r])}return e};class ft extends ct{startNode(){const e=this.state.startLoc;return new ht(this,e.index,e)}startNodeAt(e){return new ht(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,i){return e.type=t,e.end=i.index,e.loc.end=i,128&this.optionFlags&&(e.range[1]=i.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,t=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){const{type:t,start:i,end:r,loc:n,range:s,name:a}=e,o=Object.create(dt);return o.type=t,o.start=i,o.end=r,o.loc=n,o.range=s,o.name=a,e.extra&&(o.extra=e.extra),o}cloneStringLiteral(e){const{type:t,start:i,end:r,loc:n,range:s,extra:a}=e,o=Object.create(dt);return o.type=t,o.start=i,o.end=r,o.loc=n,o.range=s,o.extra=a,o.value=e.value,o}}const mt=e=>"ParenthesizedExpression"===e.type?mt(e.expression):e;class yt extends ft{toAssignable(e,t=!1){var i,r;let n;switch(("ParenthesizedExpression"===e.type||null!=(i=e.extra)&&i.parenthesized)&&(n=mt(e),t?"Identifier"===n.type?this.expressionScope.recordArrowParameterBindingError(g.InvalidParenthesizedAssignment,e):"MemberExpression"===n.type||this.isOptionalMemberExpression(n)||this.raise(g.InvalidParenthesizedAssignment,e):this.raise(g.InvalidParenthesizedAssignment,e)),e.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":case"VoidPattern":break;case"ObjectExpression":this.castNodeTo(e,"ObjectPattern");for(let i=0,r=e.properties.length,n=r-1;i<r;i++){var s;const r=e.properties[i],a=i===n;this.toAssignableObjectExpressionProp(r,a,t),a&&"RestElement"===r.type&&null!=(s=e.extra)&&s.trailingCommaLoc&&this.raise(g.RestTrailingComma,e.extra.trailingCommaLoc)}break;case"ObjectProperty":{const{key:i,value:r}=e;this.isPrivateName(i)&&this.classScope.usePrivateName(this.getPrivateNameSV(i),i.loc.start),this.toAssignable(r,t);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,t);break;case"AssignmentExpression":"="!==e.operator&&this.raise(g.MissingEqInAssignment,e.left.loc.end),this.castNodeTo(e,"AssignmentPattern"),delete e.operator,"VoidPattern"===e.left.type&&this.raise(g.VoidPatternInitializer,e.left),this.toAssignable(e.left,t);break;case"ParenthesizedExpression":this.toAssignable(n,t)}}toAssignableObjectExpressionProp(e,t,i){if("ObjectMethod"===e.type)this.raise("get"===e.kind||"set"===e.kind?g.PatternHasAccessor:g.PatternHasMethod,e.key);else if("SpreadElement"===e.type){this.castNodeTo(e,"RestElement");const r=e.argument;this.checkToRestConversion(r,!1),this.toAssignable(r,i),t||this.raise(g.RestTrailingComma,e)}else this.toAssignable(e,i)}toAssignableList(e,t,i){const r=e.length-1;for(let n=0;n<=r;n++){const s=e[n];s&&(this.toAssignableListItem(e,n,i),"RestElement"===s.type&&(n<r?this.raise(g.RestTrailingComma,s):t&&this.raise(g.RestTrailingComma,t)))}}toAssignableListItem(e,t,i){const r=e[t];if("SpreadElement"===r.type){this.castNodeTo(r,"RestElement");const e=r.argument;this.checkToRestConversion(e,!0),this.toAssignable(e,i)}else this.toAssignable(r,i)}isAssignable(e,t){switch(e.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":case"VoidPattern":return!0;case"ObjectExpression":{const t=e.properties.length-1;return e.properties.every(((e,i)=>"ObjectMethod"!==e.type&&(i===t||"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){this.toReferencedList(e,t);for(const t of e)"ArrayExpression"===(null==t?void 0:t.type)&&this.toReferencedListDeep(t.elements)}parseSpread(e){const t=this.startNode();return this.next(),t.argument=this.parseMaybeAssignAllowIn(e,void 0),this.finishNode(t,"SpreadElement")}parseRestBinding(){const e=this.startNode();this.next();const t=this.parseBindingAtom();return"VoidPattern"===t.type&&this.raise(g.UnexpectedVoidPattern,t),e.argument=t,this.finishNode(e,"RestElement")}parseBindingAtom(){switch(this.state.type){case 0:{const 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,i){const r=1&i,n=[];let s=!0;for(;!this.eat(e);)if(s?s=!1:this.expect(12),r&&this.match(12))n.push(null);else{if(this.eat(e))break;if(this.match(21)){let r=this.parseRestBinding();if((this.hasPlugin("flow")||2&i)&&(r=this.parseFunctionParamType(r)),n.push(r),!this.checkCommaAfterRest(t)){this.expect(e);break}}else{const e=[];if(2&i)for(this.match(26)&&this.hasPlugin("decorators")&&this.raise(g.UnsupportedParameterDecorator,this.state.startLoc);this.match(26);)e.push(this.parseDecorator());n.push(this.parseBindingElement(i,e))}}return n}parseBindingRestProperty(e){return this.next(),this.hasPlugin("discardBinding")&&this.match(88)?(e.argument=this.parseVoidPattern(null),this.raise(g.UnexpectedVoidPattern,e.argument)):e.argument=this.parseIdentifier(),this.checkCommaAfterRest(125),this.finishNode(e,"RestElement")}parseBindingProperty(){const{type:e,startLoc:t}=this.state;if(21===e)return this.parseBindingRestProperty(this.startNode());const i=this.startNode();return 139===e?(this.expectPlugin("destructuringPrivate",t),this.classScope.usePrivateName(this.state.value,t),i.key=this.parsePrivateName()):this.parsePropertyName(i),i.method=!1,this.parseObjPropValue(i,t,!1,!1,!0,!1)}parseBindingElement(e,t){const i=this.parseMaybeDefault();return(this.hasPlugin("flow")||2&e)&&this.parseFunctionParamType(i),t.length&&(i.decorators=t,this.resetStartLocationFromNode(i,t[0])),this.parseMaybeDefault(i.loc.start,i)}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;const i=this.startNodeAt(e);return"VoidPattern"===t.type&&this.raise(g.VoidPatternInitializer,t),i.left=t,i.right=this.parseMaybeAssignAllowIn(),this.finishNode(i,"AssignmentPattern")}isValidLVal(e,t,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}return!1}isOptionalMemberExpression(e){return"OptionalMemberExpression"===e.type}checkLVal(e,t,i=64,r=!1,n=!1,s=!1){var a;const o=e.type;if(this.isObjectMethod(e))return;const l=this.isOptionalMemberExpression(e);if(l||"MemberExpression"===o)return l&&(this.expectPlugin("optionalChainingAssign",e.loc.start),"AssignmentExpression"!==t.type&&this.raise(g.InvalidLhsOptionalChaining,e,{ancestor:t})),void(64!==i&&this.raise(g.InvalidPropertyBindingPattern,e));if("Identifier"===o){this.checkIdentifier(e,i,n);const{name:t}=e;return void(r&&(r.has(t)?this.raise(g.ParamDupe,e):r.add(t)))}"VoidPattern"===o&&"CatchClause"===t.type&&this.raise(g.VoidPatternCatchClauseParam,e);const p=this.isValidLVal(o,!(s||null!=(a=e.extra)&&a.parenthesized)&&"AssignmentExpression"===t.type,i);if(!0===p)return;if(!1===p){const r=64===i?g.InvalidLhs:g.InvalidLhsBinding;return void this.raise(r,e,{ancestor:t})}let c,u;"string"==typeof p?(c=p,u="ParenthesizedExpression"===o):[c,u]=p;const h="ArrayPattern"===o||"ObjectPattern"===o?{type:o}:t,d=e[c];if(Array.isArray(d))for(const e of d)e&&this.checkLVal(e,h,i,r,n,u);else d&&this.checkLVal(d,h,i,r,n,u)}checkIdentifier(e,t,i=!1){this.state.strict&&(i?fe(e.name,this.inModule):de(e.name))&&(64===t?this.raise(g.StrictEvalArguments,e,{referenceName:e.name}):this.raise(g.StrictEvalArgumentsBinding,e,{bindingName:e.name})),8192&t&&"let"===e.name&&this.raise(g.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(g.InvalidRestAssignmentPattern,e)}}checkCommaAfterRest(e){return!!this.match(12)&&(this.raise(this.lookaheadCharCode()===e?g.RestTrailingComma:g.ElementAfterRest,this.state.startLoc),!0)}}function Tt(e){if(!e)throw new Error("Assert fail")}const gt=T`typescript`({AbstractMethodHasImplementation:({methodName:e})=>`Method '${e}' cannot have an implementation because it is marked abstract.`,AbstractPropertyHasInitializer:({propertyName:e})=>`Property '${e}' cannot have an initializer because it is marked abstract.`,AccessorCannotBeOptional:"An 'accessor' property cannot be declared optional.",AccessorCannotDeclareThisParameter:"'get' and 'set' accessors cannot declare 'this' parameters.",AccessorCannotHaveTypeParameters:"An accessor cannot have type parameters.",ClassMethodHasDeclare:"Class methods cannot have the 'declare' modifier.",ClassMethodHasReadonly:"Class methods cannot have the 'readonly' modifier.",ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:"A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.",ConstructorHasTypeParameters:"Type parameters cannot appear on a constructor declaration.",DeclareAccessor:({kind:e})=>`'declare' is not allowed in ${e}ters.`,DeclareClassFieldHasInitializer:"Initializers are not allowed in ambient contexts.",DeclareFunctionHasImplementation:"An implementation cannot be declared in ambient contexts.",DuplicateAccessibilityModifier:({modifier:e})=>`Accessibility modifier already seen: '${e}'.`,DuplicateModifier:({modifier:e})=>`Duplicate modifier: '${e}'.`,EmptyHeritageClauseType:({token:e})=>`'${e}' list cannot be empty.`,EmptyTypeArguments:"Type argument list cannot be empty.",EmptyTypeParameters:"Type parameter list cannot be empty.",ExpectedAmbientAfterExportDeclare:"'export declare' must be followed by an ambient declaration.",ImportAliasHasImportType:"An import alias can not use 'import type'.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` modifier",IncompatibleModifiers:({modifiers:e})=>`'${e[0]}' modifier cannot be used with '${e[1]}' modifier.`,IndexSignatureHasAbstract:"Index signatures cannot have the 'abstract' modifier.",IndexSignatureHasAccessibility:({modifier:e})=>`Index signatures cannot have an accessibility modifier ('${e}').`,IndexSignatureHasDeclare:"Index signatures cannot have the 'declare' modifier.",IndexSignatureHasOverride:"'override' modifier cannot appear on an index signature.",IndexSignatureHasStatic:"Index signatures cannot have the 'static' modifier.",InitializerNotAllowedInAmbientContext:"Initializers are not allowed in ambient contexts.",InvalidHeritageClauseType:({token:e})=>`'${e}' list can only include identifiers or qualified-names with optional type arguments.`,InvalidModifierOnAwaitUsingDeclaration:e=>`'${e}' modifier cannot appear on an await using declaration.`,InvalidModifierOnTypeMember:({modifier:e})=>`'${e}' modifier cannot appear on a type member.`,InvalidModifierOnTypeParameter:({modifier:e})=>`'${e}' modifier cannot appear on a type parameter.`,InvalidModifierOnTypeParameterPositions:({modifier:e})=>`'${e}' modifier can only appear on a type parameter of a class, interface or type alias.`,InvalidModifierOnUsingDeclaration:e=>`'${e}' modifier cannot appear on a using declaration.`,InvalidModifiersOrder:({orderedModifiers:e})=>`'${e[0]}' modifier must precede '${e[1]}' modifier.`,InvalidPropertyAccessAfterInstantiationExpression:"Invalid property access after an instantiation expression. You can either wrap the instantiation expression in parentheses, or delete the type arguments.",InvalidTupleMemberLabel:"Tuple members must be labeled with a simple identifier.",MissingInterfaceName:"'interface' declarations must be followed by an identifier.",NonAbstractClassHasAbstractMethod:"Abstract methods can only appear within an abstract class.",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:({modifier:e})=>`Private elements cannot have an accessibility modifier ('${e}').`,ReadonlyForMethodSignature:"'readonly' modifier can only appear on a property declaration or index signature.",ReservedArrowTypeParam:"This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma, as in `<T,>() => ...`.",ReservedTypeAssertion:"This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.",SetAccessorCannotHaveOptionalParameter:"A 'set' accessor cannot have an optional parameter.",SetAccessorCannotHaveRestParameter:"A 'set' accessor cannot have rest parameter.",SetAccessorCannotHaveReturnType:"A 'set' accessor cannot have a return type annotation.",SingleTypeParameterWithoutTrailingComma:({typeParameterName:e})=>`Single type parameter ${e} should have a trailing comma. Example usage: <${e},>.`,StaticBlockCannotHaveModifier:"Static class blocks cannot have any modifier.",TupleOptionalAfterType:"A labeled tuple optional element must be declared using a question mark after the name and before the colon (`name?: type`), rather than after the type (`name: type?`).",TypeAnnotationAfterAssign:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeImportCannotSpecifyDefaultAndNamed:"A type-only import can specify a default import or named bindings, but not both.",TypeModifierIsUsedInTypeExports:"The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement.",TypeModifierIsUsedInTypeImports:"The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement.",UnexpectedParameterModifier:"A parameter property is only allowed in a constructor implementation.",UnexpectedReadonly:"'readonly' type modifier is only permitted on array and tuple literal types.",UnexpectedTypeAnnotation:"Did not expect a type annotation here.",UnexpectedTypeCastInParameter:"Unexpected type cast in parameter position.",UnsupportedImportTypeArgument:"Argument in a type import must be a string literal.",UnsupportedParameterPropertyKind:"A parameter property may not be declared using a binding pattern.",UnsupportedSignatureParameterKind:({type:e})=>`Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${e}.`,UsingDeclarationInAmbientContext:e=>`'${e}' declarations are not allowed in ambient contexts.`});function bt(e){return"private"===e||"public"===e||"protected"===e}function St(e){return"in"===e||"out"===e}function xt(e){if("MemberExpression"!==e.type)return!1;const{computed:t,property:i}=e;return(!t||"StringLiteral"===i.type||!("TemplateLiteral"!==i.type||i.expressions.length>0))&&Pt(e.object)}function Et(e,t){var i;const{type:r}=e;if(null!=(i=e.extra)&&i.parenthesized)return!1;if(t){if("Literal"===r){const{value:t}=e;if("string"==typeof t||"boolean"==typeof t)return!0}}else if("StringLiteral"===r||"BooleanLiteral"===r)return!0;return!(!vt(e,t)&&!function(e,t){if("UnaryExpression"===e.type){const{operator:i,argument:r}=e;if("-"===i&&vt(r,t))return!0}return!1}(e,t))||"TemplateLiteral"===r&&0===e.expressions.length||!!xt(e)}function vt(e,t){return t?"Literal"===e.type&&("number"==typeof e.value||"bigint"in e):"NumericLiteral"===e.type||"BigIntLiteral"===e.type}function Pt(e){return"Identifier"===e.type||"MemberExpression"===e.type&&!e.computed&&Pt(e.object)}const wt=T`placeholders`({ClassNameIsRequired:"A class name is required.",UnexpectedSpace:"Unexpected space in placeholder."}),At=["minimal","fsharp","hack","smart"],It=["^^","@@","^","%","#"],Ct={estree:e=>class extends e{parse(){const e=x(super.parse());return 256&this.optionFlags&&(e.tokens=e.tokens.map(x)),e}parseRegExpLiteral({pattern:e,flags:t}){let i=null;try{i=new RegExp(e,t)}catch(e){}const r=this.estreeParseLiteral(i);return r.regex={pattern:e,flags:t},r}parseBigIntLiteral(e){let t;try{t=BigInt(e)}catch(e){t=null}const i=this.estreeParseLiteral(t);return i.bigint=String(i.value||e),i}parseDecimalLiteral(e){const 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){const i=this.startNodeAtNode(e);return i.expression=e,this.finishNodeAt(i,"ChainExpression",t)}directiveToStmt(e){const t=e.value;delete e.value,this.castNodeTo(t,"Literal"),t.raw=t.extra.raw,t.value=t.extra.expressionValue;const i=this.castNodeTo(e,"ExpressionStatement");return i.expression=t,i.directive=t.extra.rawValue,delete t.extra,i}fillOptionalPropertiesForTSESLint(e){}cloneEstreeStringLiteral(e){const{start:t,end:i,loc:r,range:n,raw:s,value:a}=e,o=Object.create(e.constructor.prototype);return o.type="Literal",o.start=t,o.end=i,o.loc=r,o.range=n,o.raw=s,o.value=a,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,i,r,n){super.parseBlockBody(e,t,i,r,n);const s=e.directives.map((e=>this.directiveToStmt(e)));e.body=s.concat(e.body),delete e.directives}parsePrivateName(){const e=super.parsePrivateName();return this.getPluginOption("estree","classFeatures")?this.convertPrivateNameToPrivateIdentifier(e):e}convertPrivateNameToPrivateIdentifier(e){const 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){const i=super.parseLiteral(e,t);return i.raw=i.extra.raw,delete i.extra,i}parseFunctionBody(e,t,i=!1){super.parseFunctionBody(e,t,i),e.expression="BlockStatement"!==e.body.type}parseMethod(e,t,i,r,n,s,a=!1){let o=this.startNode();o.kind=e.kind,o=super.parseMethod(o,t,i,r,n,s,a),delete o.kind;const{typeParameters:l}=e;l&&(delete e.typeParameters,o.typeParameters=l,this.resetStartLocationFromNode(o,l));const p=this.castNodeTo(o,"FunctionExpression");return e.value=p,"ClassPrivateMethod"===s&&(e.computed=!1),"ObjectMethod"===s?("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(...e){const t=super.parseClassProperty(...e);return this.getPluginOption("estree","classFeatures")?(this.castNodeTo(t,"PropertyDefinition"),t):t}parseClassPrivateProperty(...e){const t=super.parseClassPrivateProperty(...e);return this.getPluginOption("estree","classFeatures")?(this.castNodeTo(t,"PropertyDefinition"),t.computed=!1,t):t}parseClassAccessorProperty(e){const 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,i,r){const n=super.parseObjectProperty(e,t,i,r);return n&&(n.kind="init",this.castNodeTo(n,"Property")),n}finishObjectProperty(e){return e.kind="init",this.finishNode(e,"Property")}isValidLVal(e,t,i){return"Property"===e?"value":super.isValidLVal(e,t,i)}isAssignable(e,t){return null!=e&&this.isObjectProperty(e)?this.isAssignable(e.value,t):super.isAssignable(e,t)}toAssignable(e,t=!1){if(null!=e&&this.isObjectProperty(e)){const{key:i,value:r}=e;this.isPrivateName(i)&&this.classScope.usePrivateName(this.getPrivateNameSV(i),i.loc.start),this.toAssignable(r,t)}else super.toAssignable(e,t)}toAssignableObjectExpressionProp(e,t,i){"Property"!==e.type||"get"!==e.kind&&"set"!==e.kind?"Property"===e.type&&e.method?this.raise(g.PatternHasMethod,e.key):super.toAssignableObjectExpressionProp(e,t,i):this.raise(g.PatternHasAccessor,e.key)}finishCallExpression(e,t){const i=super.finishCallExpression(e,t);var r,n;return"Import"===i.callee.type?(this.castNodeTo(i,"ImportExpression"),i.source=i.arguments[0],i.options=null!=(r=i.arguments[1])?r:null,i.attributes=null!=(n=i.arguments[1])?n:null,delete i.arguments,delete i.callee):"OptionalCallExpression"===i.type?this.castNodeTo(i,"CallExpression"):i.optional=!1,i}toReferencedArguments(e){"ImportExpression"!==e.type&&super.toReferencedArguments(e)}parseExport(e,t){const i=this.state.lastTokStartLoc,r=super.parseExport(e,t);switch(r.type){case"ExportAllDeclaration":r.exported=null;break;case"ExportNamedDeclaration":1===r.specifiers.length&&"ExportNamespaceSpecifier"===r.specifiers[0].type&&(this.castNodeTo(r,"ExportAllDeclaration"),r.exported=r.specifiers[0].exported,delete r.specifiers);case"ExportDefaultDeclaration":{var n;const{declaration:e}=r;"ClassDeclaration"===(null==e?void 0:e.type)&&(null==(n=e.decorators)?void 0:n.length)>0&&e.start===r.start&&this.resetStartLocation(r,i)}}return r}stopParseSubscript(e,t){const i=super.stopParseSubscript(e,t);return t.optionalChainMember?this.estreeParseChainExpression(i,e.loc.end):i}parseMember(e,t,i,r,n){const s=super.parseMember(e,t,i,r,n);return"OptionalMemberExpression"===s.type?this.castNodeTo(s,"MemberExpression"):s.optional=!1,s}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){const i=super.castNodeTo(e,t);return this.fillOptionalPropertiesForTSESLint(i),i}cloneIdentifier(e){const t=super.cloneIdentifier(e);return this.fillOptionalPropertiesForTSESLint(t),t}cloneStringLiteral(e){return"Literal"===e.type?this.cloneEstreeStringLiteral(e):super.cloneStringLiteral(e)}finishNodeAt(e,t,i){return x(super.finishNodeAt(e,t,i))}finishNode(e,t){const i=super.finishNode(e,t);return this.fillOptionalPropertiesForTSESLint(i),i}resetStartLocation(e,t){super.resetStartLocation(e,t),x(e)}resetEndLocation(e,t=this.state.lastTokEndLoc){super.resetEndLocation(e,t),x(e)}},jsx:e=>class extends e{jsxReadToken(){let e="",t=this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(_e.UnterminatedJsxContent,this.state.startLoc);const i=this.input.charCodeAt(this.state.pos);switch(i){case 60:case 123:return this.state.pos===this.state.start?void(60===i&&this.state.canStartJSXElement?(++this.state.pos,this.finishToken(143)):super.getTokenFromCode(i)):(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:Ie(i)?(e+=this.input.slice(t,this.state.pos),e+=this.jsxReadNewLine(!0),t=this.state.pos):++this.state.pos}}}jsxReadNewLine(e){const t=this.input.charCodeAt(this.state.pos);let i;return++this.state.pos,13===t&&10===this.input.charCodeAt(this.state.pos)?(++this.state.pos,i=e?"\n":"\r\n"):i=String.fromCharCode(t),++this.state.curLine,this.state.lineStart=this.state.pos,i}jsxReadString(e){let t="",i=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(g.UnterminatedString,this.state.startLoc);const r=this.input.charCodeAt(this.state.pos);if(r===e)break;38===r?(t+=this.input.slice(i,this.state.pos),t+=this.jsxReadEntity(),i=this.state.pos):Ie(r)?(t+=this.input.slice(i,this.state.pos),t+=this.jsxReadNewLine(!1),i=this.state.pos):++this.state.pos}t+=this.input.slice(i,this.state.pos++),this.finishToken(134,t)}jsxReadEntity(){const e=++this.state.pos;if(35===this.codePointAtPos(this.state.pos)){++this.state.pos;let e=10;120===this.codePointAtPos(this.state.pos)&&(e=16,++this.state.pos);const t=this.readInt(e,void 0,!1,"bail");if(null!==t&&59===this.codePointAtPos(this.state.pos))return++this.state.pos,String.fromCodePoint(t)}else{let t=0,i=!1;for(;t++<10&&this.state.pos<this.length&&!(i=59===this.codePointAtPos(this.state.pos));)++this.state.pos;if(i){const t=this.input.slice(e,this.state.pos),i=we[t];if(++this.state.pos,i)return i}}return this.state.pos=e,"&"}jsxReadWord(){let e;const t=this.state.pos;do{e=this.input.charCodeAt(++this.state.pos)}while(oe(e)||45===e);this.finishToken(141,this.input.slice(t,this.state.pos))}jsxParseIdentifier(){const e=this.startNode();return this.match(141)?e.name=this.state.value:W(this.state.type)?e.name=z(this.state.type):this.unexpected(),this.next(),this.finishNode(e,"JSXIdentifier")}jsxParseNamespacedName(){const e=this.state.startLoc,t=this.jsxParseIdentifier();if(!this.eat(14))return t;const i=this.startNodeAt(e);return i.namespace=t,i.name=this.jsxParseIdentifier(),this.finishNode(i,"JSXNamespacedName")}jsxParseElementName(){const e=this.state.startLoc;let t=this.jsxParseNamespacedName();if("JSXNamespacedName"===t.type)return t;for(;this.eat(16);){const i=this.startNodeAt(e);i.object=t,i.property=this.jsxParseIdentifier(),t=this.finishNode(i,"JSXMemberExpression")}return t}jsxParseAttributeValue(){let e;switch(this.state.type){case 5:return e=this.startNode(),this.setContext(v.brace),this.next(),e=this.jsxParseExpressionContainer(e,v.j_oTag),"JSXEmptyExpression"===e.expression.type&&this.raise(_e.AttributeIsEmpty,e),e;case 143:case 134:return this.parseExprAtom();default:throw this.raise(_e.UnsupportedJsxValue,this.state.startLoc)}}jsxParseEmptyExpression(){const 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(v.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{const t=this.parseExpression();e.expression=t}return this.setContext(t),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(e,"JSXExpressionContainer")}jsxParseAttribute(){const e=this.startNode();return this.match(5)?(this.setContext(v.brace),this.next(),this.expect(21),e.argument=this.parseMaybeAssignAllowIn(),this.setContext(v.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){const t=this.startNodeAt(e);return this.eat(144)?this.finishNode(t,"JSXOpeningFragment"):(t.name=this.jsxParseElementName(),this.jsxParseOpeningElementAfterName(t))}jsxParseOpeningElementAfterName(e){const t=[];for(;!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){const 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){const t=this.startNodeAt(e),i=[],r=this.jsxParseOpeningElementAt(e);let n=null;if(!r.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}i.push(this.jsxParseElementAt(e));break;case 142:i.push(this.parseLiteral(this.state.value,"JSXText"));break;case 5:{const e=this.startNode();this.setContext(v.brace),this.next(),this.match(21)?i.push(this.jsxParseSpreadChild(e)):i.push(this.jsxParseExpressionContainer(e,v.j_expr));break}default:this.unexpected()}Me(r)&&!Me(n)&&null!==n?this.raise(_e.MissingClosingTagFragment,n):!Me(r)&&Me(n)?this.raise(_e.MissingClosingTagElement,n,{openingTagName:Le(r.name)}):Me(r)||Me(n)||Le(n.name)!==Le(r.name)&&this.raise(_e.MissingClosingTagElement,n,{openingTagName:Le(r.name)})}if(Me(r)?(t.openingFragment=r,t.closingFragment=n):(t.openingElement=r,t.closingElement=n),t.children=i,this.match(47))throw this.raise(_e.UnwrappedAdjacentJSXElements,this.state.startLoc);return Me(r)?this.finishNode(t,"JSXFragment"):this.finishNode(t,"JSXElement")}jsxParseElement(){const e=this.state.startLoc;return this.next(),this.jsxParseElementAt(e)}setContext(e){const{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){const t=this.curContext();if(t!==v.j_expr){if(t===v.j_oTag||t===v.j_cTag){if(ae(e))return void this.jsxReadWord();if(62===e)return++this.state.pos,void this.finishToken(144);if((34===e||39===e)&&t===v.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){const{context:t,type:i}=this.state;if(56===i&&143===e)t.splice(-2,2,v.j_cTag),this.state.canStartJSXElement=!1;else if(143===i)t.push(v.j_oTag);else if(144===i){const i=t[t.length-1];i===v.j_oTag&&56===e||i===v.j_cTag?(t.pop(),this.state.canStartJSXElement=t[t.length-1]===v.j_expr):(this.setContext(v.j_expr),this.state.canStartJSXElement=!0)}else this.state.canStartJSXElement=F[i]}},flow:e=>class extends e{constructor(...e){super(...e),this.flowPragma=void 0}getScopeHandler(){return be}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){const t=Pe.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"}}super.addComment(e)}flowParseTypeInitialiser(e){const t=this.state.inType;this.state.inType=!0,this.expect(e||14);const i=this.flowParseType();return this.state.inType=t,i}flowParsePredicate(){const e=this.startNode(),t=this.state.startLoc;return this.next(),this.expectContextual(110),this.state.lastTokStartLoc.index>t.index+1&&this.raise(xe.UnexpectedSpaceBetweenModuloChecks,t),this.eat(10)?(e.value=super.parseExpression(),this.expect(11),this.finishNode(e,"DeclaredPredicate")):this.finishNode(e,"InferredPredicate")}flowParseTypeAndPredicateInitialiser(){const e=this.state.inType;this.state.inType=!0,this.expect(14);let t=null,i=null;return this.match(54)?(this.state.inType=e,i=this.flowParsePredicate()):(t=this.flowParseType(),this.state.inType=e,this.match(54)&&(i=this.flowParsePredicate())),[t,i]}flowParseDeclareClass(e){return this.next(),this.flowParseInterfaceish(e,!0),this.finishNode(e,"DeclareClass")}flowParseDeclareFunction(e){this.next();const t=e.id=this.parseIdentifier(),i=this.startNode(),r=this.startNode();this.match(47)?i.typeParameters=this.flowParseTypeParameterDeclaration():i.typeParameters=null,this.expect(10);const n=this.flowParseFunctionTypeParams();return i.params=n.params,i.rest=n.rest,i.this=n._this,this.expect(11),[i.returnType,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),r.typeAnnotation=this.finishNode(i,"FunctionTypeAnnotation"),t.typeAnnotation=this.finishNode(r,"TypeAnnotation"),this.resetEndLocation(t),this.semicolon(),this.scope.declareName(e.id.name,2048,e.id.loc.start),this.finishNode(e,"DeclareFunction")}flowParseDeclare(e,t){return this.match(80)?this.flowParseDeclareClass(e):this.match(68)?this.flowParseDeclareFunction(e):this.match(74)?this.flowParseDeclareVariable(e):this.eatContextual(127)?this.match(16)?this.flowParseDeclareModuleExports(e):(t&&this.raise(xe.NestedDeclareModule,this.state.lastTokStartLoc),this.flowParseDeclareModule(e)):this.isContextual(130)?this.flowParseDeclareTypeAlias(e):this.isContextual(131)?this.flowParseDeclareOpaqueType(e):this.isContextual(129)?this.flowParseDeclareInterface(e):this.match(82)?this.flowParseDeclareExportDeclaration(e,t):void 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();const t=e.body=this.startNode(),i=t.body=[];for(this.expect(5);!this.match(8);){let e=this.startNode();this.match(83)?(this.next(),this.isContextual(130)||this.match(87)||this.raise(xe.InvalidNonTypeImportInDeclareModule,this.state.lastTokStartLoc),super.parseImport(e)):(this.expectContextual(125,xe.UnsupportedStatementInDeclareModule),e=this.flowParseDeclare(e,!0)),i.push(e)}this.scope.exit(),this.expect(8),this.finishNode(t,"BlockStatement");let r=null,n=!1;return i.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&&(n&&this.raise(xe.DuplicateDeclareModuleExports,e),"ES"===r&&this.raise(xe.AmbiguousDeclareModuleKind,e),r="CommonJS",n=!0):("CommonJS"===r&&this.raise(xe.AmbiguousDeclareModuleKind,e),r="ES")})),e.kind=r||"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){const e=this.state.value;throw this.raise(xe.UnsupportedDeclareExportKind,this.state.startLoc,{unsupportedExportKind:e,suggestion:ve[e]})}return this.match(74)||this.match(68)||this.match(80)||this.isContextual(131)?(e.declaration=this.flowParseDeclare(this.startNode()),e.default=!1,this.finishNode(e,"DeclareExportDeclaration")):this.match(55)||this.match(5)||this.isContextual(129)||this.isContextual(130)||this.isContextual(131)?"ExportNamedDeclaration"===(e=this.parseExport(e,null)).type?(e.default=!1,delete e.exportKind,this.castNodeTo(e,"DeclareExportDeclaration")):this.castNodeTo(e,"DeclareExportAllDeclaration"):void this.unexpected()}flowParseDeclareModuleExports(e){return this.next(),this.expectContextual(111),e.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(e,"DeclareModuleExports")}flowParseDeclareTypeAlias(e){this.next();const t=this.flowParseTypeAlias(e);return this.castNodeTo(t,"DeclareTypeAlias"),t}flowParseDeclareOpaqueType(e){this.next();const 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(){const 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(xe.UnexpectedReservedUnderscore,this.state.startLoc)}checkReservedType(e,t,i){Se.has(e)&&this.raise(i?xe.AssignReservedType:xe.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(e=!1){const t=this.state.startLoc,i=this.startNode(),r=this.flowParseVariance(),n=this.flowParseTypeAnnotatableIdentifier();return i.name=n.name,i.variance=r,i.bound=n.typeAnnotation,this.match(29)?(this.eat(29),i.default=this.flowParseType()):e&&this.raise(xe.MissingTypeParamDefault,t),this.finishNode(i,"TypeParameter")}flowParseTypeParameterDeclaration(){const e=this.state.inType,t=this.startNode();t.params=[],this.state.inType=!0,this.match(47)||this.match(143)?this.next():this.unexpected();let i=!1;do{const e=this.flowParseTypeParameter(i);t.params.push(e),e.default&&(i=!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()===v.brace)return e();{const 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(){const e=this.startNode(),t=this.state.inType;return this.state.inType=!0,e.params=[],this.flowInTopLevelContext((()=>{this.expect(47);const 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()!==v.brace||this.reScan_lt_gt(),this.expect(48),this.finishNode(e,"TypeParameterInstantiation")}flowParseTypeParameterInstantiationCallOrNew(){if(47!==this.reScan_lt())return;const 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(){const 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,i){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=i,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){const i=this.startNode();return e.static=t,e.value=this.flowParseObjectTypeMethodish(i),this.finishNode(e,"ObjectTypeCallProperty")}flowParseObjectType({allowStatic:e,allowExact:t,allowSpread:i,allowProto:r,allowInexact:n}){const s=this.state.inType;this.state.inType=!0;const a=this.startNode();let o,l;a.callProperties=[],a.properties=[],a.indexers=[],a.internalSlots=[];let p=!1;for(t&&this.match(6)?(this.expect(6),o=9,l=!0):(this.expect(5),o=8,l=!1),a.exact=l;!this.match(o);){let t=!1,s=null,o=null;const c=this.startNode();if(r&&this.isContextual(118)){const t=this.lookahead();14!==t.type&&17!==t.type&&(this.next(),s=this.state.startLoc,e=!1)}if(e&&this.isContextual(106)){const e=this.lookahead();14!==e.type&&17!==e.type&&(this.next(),t=!0)}const u=this.flowParseVariance();if(this.eat(0))null!=s&&this.unexpected(s),this.eat(0)?(u&&this.unexpected(u.loc.start),a.internalSlots.push(this.flowParseObjectTypeInternalSlot(c,t))):a.indexers.push(this.flowParseObjectTypeIndexer(c,t,u));else if(this.match(10)||this.match(47))null!=s&&this.unexpected(s),u&&this.unexpected(u.loc.start),a.callProperties.push(this.flowParseObjectTypeCallProperty(c,t));else{let e="init";(this.isContextual(99)||this.isContextual(104))&&Y(this.lookahead().type)&&(e=this.state.value,this.next());const r=this.flowParseObjectTypeProperty(c,t,s,u,e,i,null!=n?n:!l);null===r?(p=!0,o=this.state.lastTokStartLoc):a.properties.push(r)}this.flowObjectTypeSemicolon(),!o||this.match(8)||this.match(9)||this.raise(xe.UnexpectedExplicitInexactInObject,o)}this.expect(o),i&&(a.inexact=p);const c=this.finishNode(a,"ObjectTypeAnnotation");return this.state.inType=s,c}flowParseObjectTypeProperty(e,t,i,r,n,s,a){if(this.eat(21))return this.match(12)||this.match(13)||this.match(8)||this.match(9)?(s?a||this.raise(xe.InexactInsideExact,this.state.lastTokStartLoc):this.raise(xe.InexactInsideNonObject,this.state.lastTokStartLoc),r&&this.raise(xe.InexactVariance,r),null):(s||this.raise(xe.UnexpectedSpreadType,this.state.lastTokStartLoc),null!=i&&this.unexpected(i),r&&this.raise(xe.SpreadVariance,r),e.argument=this.flowParseType(),this.finishNode(e,"ObjectTypeSpreadProperty"));{e.key=this.flowParseObjectPropertyKey(),e.static=t,e.proto=null!=i,e.kind=n;let a=!1;return this.match(47)||this.match(10)?(e.method=!0,null!=i&&this.unexpected(i),r&&this.unexpected(r.loc.start),e.value=this.flowParseObjectTypeMethodish(this.startNodeAt(e.loc.start)),"get"!==n&&"set"!==n||this.flowCheckGetterSetterParams(e),!s&&"constructor"===e.key.name&&e.value.this&&this.raise(xe.ThisParamBannedInConstructor,e.value.this)):("init"!==n&&this.unexpected(),e.method=!1,this.eat(17)&&(a=!0),e.value=this.flowParseTypeInitialiser(),e.variance=r),e.optional=a,this.finishNode(e,"ObjectTypeProperty")}}flowCheckGetterSetterParams(e){const t="get"===e.kind?0:1,i=e.value.params.length+(e.value.rest?1:0);e.value.this&&this.raise("get"===e.kind?xe.GetterMayNotHaveThisParam:xe.SetterMayNotHaveThisParam,e.value.this),i!==t&&this.raise("get"===e.kind?g.BadGetterArity:g.BadSetterArity,e),"set"===e.kind&&e.value.rest&&this.raise(g.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);let i=t||this.flowParseRestrictedIdentifier(!0);for(;this.eat(16);){const t=this.startNodeAt(e);t.qualification=i,t.id=this.flowParseRestrictedIdentifier(!0),i=this.finishNode(t,"QualifiedTypeIdentifier")}return i}flowParseGenericType(e,t){const i=this.startNodeAt(e);return i.typeParameters=null,i.id=this.flowParseQualifiedTypeIdentifier(e,t),this.match(47)&&(i.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(i,"GenericTypeAnnotation")}flowParseTypeofType(){const e=this.startNode();return this.expect(87),e.argument=this.flowParsePrimaryType(),this.finishNode(e,"TypeofTypeAnnotation")}flowParseTupleType(){const 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){let t=null,i=!1,r=null;const n=this.startNode(),s=this.lookahead(),a=78===this.state.type;return 14===s.type||17===s.type?(a&&!e&&this.raise(xe.ThisParamMustBeFirst,n),t=this.parseIdentifier(a),this.eat(17)&&(i=!0,a&&this.raise(xe.ThisParamMayNotBeOptional,n)),r=this.flowParseTypeInitialiser()):r=this.flowParseType(),n.name=t,n.optional=i,n.typeAnnotation=r,this.finishNode(n,"FunctionTypeParam")}reinterpretTypeAsFunctionTypeParam(e){const t=this.startNodeAt(e.loc.start);return t.name=null,t.optional=!1,t.typeAnnotation=e,this.finishNode(t,"FunctionTypeParam")}flowParseFunctionTypeParams(e=[]){let t=null,i=null;for(this.match(78)&&(i=this.flowParseFunctionTypeParam(!0),i.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:i}}flowIdentToTypeAnnotation(e,t,i){switch(i.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(i.name),this.flowParseGenericType(e,i)}}flowParsePrimaryType(){const e=this.state.startLoc,t=this.startNode();let i,r,n=!1;const s=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,r=this.flowParseTupleType(),this.state.noAnonFunctionType=s,r;case 47:{const e=this.startNode();return e.typeParameters=this.flowParseTypeParameterDeclaration(),this.expect(10),i=this.flowParseFunctionTypeParams(),e.params=i.params,e.rest=i.rest,e.this=i._this,this.expect(11),this.expect(19),e.returnType=this.flowParseType(),this.finishNode(e,"FunctionTypeAnnotation")}case 10:{const e=this.startNode();if(this.next(),!this.match(11)&&!this.match(21))if($(this.state.type)||this.match(78)){const e=this.lookahead().type;n=17!==e&&14!==e}else n=!0;if(n){if(this.state.noAnonFunctionType=!1,r=this.flowParseType(),this.state.noAnonFunctionType=s,this.state.noAnonFunctionType||!(this.match(12)||this.match(11)&&19===this.lookahead().type))return this.expect(11),r;this.eat(12)}return i=r?this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(r)]):this.flowParseFunctionTypeParams(),e.params=i.params,e.rest=i.rest,e.this=i._this,this.expect(11),this.expect(19),e.returnType=this.flowParseType(),e.typeParameters=null,this.finishNode(e,"FunctionTypeAnnotation")}case 134:return this.parseLiteral(this.state.value,"StringLiteralTypeAnnotation");case 85:case 86:return t.value=this.match(85),this.next(),this.finishNode(t,"BooleanLiteralTypeAnnotation");case 53:if("-"===this.state.value){if(this.next(),this.match(135))return this.parseLiteralAtNode(-this.state.value,"NumberLiteralTypeAnnotation",t);if(this.match(136))return this.parseLiteralAtNode(-this.state.value,"BigIntLiteralTypeAnnotation",t);throw this.raise(xe.UnexpectedSubtractionOperand,this.state.startLoc)}return void 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(t,"VoidTypeAnnotation");case 84:return this.next(),this.finishNode(t,"NullLiteralTypeAnnotation");case 78:return this.next(),this.finishNode(t,"ThisTypeAnnotation");case 55:return this.next(),this.finishNode(t,"ExistsTypeAnnotation");case 87:return this.flowParseTypeofType();default:if(W(this.state.type)){const e=z(this.state.type);return this.next(),super.createIdentifier(t,e)}if($(this.state.type))return this.isContextual(129)?this.flowParseInterfaceType():this.flowIdentToTypeAnnotation(e,t,this.parseIdentifier())}this.unexpected()}flowParsePostfixType(){const e=this.state.startLoc;let t=this.flowParsePrimaryType(),i=!1;for(;(this.match(0)||this.match(18))&&!this.canInsertSemicolon();){const r=this.startNodeAt(e),n=this.eat(18);i=i||n,this.expect(0),!n&&this.match(3)?(r.elementType=t,this.next(),t=this.finishNode(r,"ArrayTypeAnnotation")):(r.objectType=t,r.indexType=this.flowParseType(),this.expect(3),i?(r.optional=n,t=this.finishNode(r,"OptionalIndexedAccessType")):t=this.finishNode(r,"IndexedAccessType"))}return t}flowParsePrefixType(){const e=this.startNode();return this.eat(17)?(e.typeAnnotation=this.flowParsePrefixType(),this.finishNode(e,"NullableTypeAnnotation")):this.flowParsePostfixType()}flowParseAnonFunctionWithoutParens(){const e=this.flowParsePrefixType();if(!this.state.noAnonFunctionType&&this.eat(19)){const 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(){const e=this.startNode();this.eat(45);const 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(){const e=this.startNode();this.eat(43);const 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(){const e=this.state.inType;this.state.inType=!0;const t=this.flowParseUnionType();return this.state.inType=e,t}flowParseTypeOrImplicitInstantiation(){if(132===this.state.type&&"_"===this.state.value){const e=this.state.startLoc,t=this.parseIdentifier();return this.flowParseGenericType(e,t)}return this.flowParseType()}flowParseTypeAnnotation(){const e=this.startNode();return e.typeAnnotation=this.flowParseTypeInitialiser(),this.finishNode(e,"TypeAnnotation")}flowParseTypeAnnotatableIdentifier(e){const 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(){let 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,i=!1){t?this.forwardNoArrowParamsConversionAt(e,(()=>super.parseFunctionBody(e,!0,i))):super.parseFunctionBody(e,!1,i)}parseFunctionBodyAndFinish(e,t,i=!1){if(this.match(14)){const t=this.startNode();[t.typeAnnotation,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),e.returnType=t.typeAnnotation?this.finishNode(t,"TypeAnnotation"):null}return super.parseFunctionBodyAndFinish(e,t,i)}parseStatementLike(e){if(this.state.strict&&this.isContextual(129)){if(q(this.lookahead().type)){const e=this.startNode();return this.next(),this.flowParseInterface(e)}}else if(this.isContextual(126)){const e=this.startNode();return this.next(),this.flowParseEnumDeclaration(e)}const t=super.parseStatementLike(e);return void 0!==this.flowPragma||this.isValidDirective(t)||(this.flowPragma=null),t}parseExpressionStatement(e,t,i){if("Identifier"===t.type)if("declare"===t.name){if(this.match(80)||$(this.state.type)||this.match(68)||this.match(74)||this.match(82))return this.flowParseDeclare(e)}else if($(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,i)}shouldParseExportDeclaration(){const{type:e}=this.state;return 126===e||X(e)?!this.state.containsEsc:super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){const{type:e}=this.state;return 126===e||X(e)?this.state.containsEsc:super.isExportDefaultSpecifier()}parseExportDefaultExpression(){if(this.isContextual(126)){const e=this.startNode();return this.next(),this.flowParseEnumDeclaration(e)}return super.parseExportDefaultExpression()}parseConditional(e,t,i){if(!this.match(17))return e;if(this.state.maybeInArrowParameters){const t=this.lookaheadCharCode();if(44===t||61===t||58===t||41===t)return this.setOptionalParametersError(i),e}this.expect(17);const r=this.state.clone(),n=this.state.noArrowAt,s=this.startNodeAt(t);let{consequent:a,failed:o}=this.tryParseConditionalConsequent(),[l,p]=this.getArrowLikeExpressions(a);if(o||p.length>0){const e=[...n];if(p.length>0){this.state=r,this.state.noArrowAt=e;for(let t=0;t<p.length;t++)e.push(p[t].start);({consequent:a,failed:o}=this.tryParseConditionalConsequent()),[l,p]=this.getArrowLikeExpressions(a)}o&&l.length>1&&this.raise(xe.AmbiguousConditionalArrow,r.startLoc),o&&1===l.length&&(this.state=r,e.push(l[0].start),this.state.noArrowAt=e,({consequent:a,failed:o}=this.tryParseConditionalConsequent()))}return this.getArrowLikeExpressions(a,!0),this.state.noArrowAt=n,this.expect(14),s.test=e,s.consequent=a,s.alternate=this.forwardNoArrowParamsConversionAt(s,(()=>this.parseMaybeAssign(void 0,void 0))),this.finishNode(s,"ConditionalExpression")}tryParseConditionalConsequent(){this.state.noArrowParamsConversionAt.push(this.state.start);const e=this.parseMaybeAssignAllowIn(),t=!this.match(14);return this.state.noArrowParamsConversionAt.pop(),{consequent:e,failed:t}}getArrowLikeExpressions(e,t){const i=[e],r=[];for(;0!==i.length;){const e=i.pop();"ArrowFunctionExpression"===e.type&&"BlockStatement"!==e.body.type?(e.typeParameters||!e.returnType?this.finishArrowValidation(e):r.push(e),i.push(e.body)):"ConditionalExpression"===e.type&&(i.push(e.consequent),i.push(e.alternate))}return t?(r.forEach((e=>this.finishArrowValidation(e))),[r,[]]):function(e,t){const i=[],r=[];for(let n=0;n<e.length;n++)(t(e[n])?i:r).push(e[n]);return[i,r]}(r,(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){let i;return this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(e.start))?(this.state.noArrowParamsConversionAt.push(this.state.start),i=t(),this.state.noArrowParamsConversionAt.pop()):i=t(),i}parseParenItem(e,t){const i=super.parseParenItem(e,t);if(this.eat(17)&&(i.optional=!0,this.resetEndLocation(e)),this.match(14)){const e=this.startNodeAt(t);return e.expression=i,e.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(e,"TypeCastExpression")}return i}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";const 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";const t=this.startNode();return this.next(),this.flowParseOpaqueType(t,!1)}if(this.isContextual(129)){e.exportKind="type";const t=this.startNode();return this.next(),this.flowParseInterface(t)}if(this.isContextual(126)){e.exportKind="value";const t=this.startNode();return this.next(),this.flowParseEnumDeclaration(t)}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){const{startLoc:t}=this.state,i=super.maybeParseExportNamespaceSpecifier(e);return i&&"type"===e.exportKind&&this.unexpected(t),i}parseClassId(e,t,i){super.parseClassId(e,t,i),this.match(47)&&(e.typeParameters=this.flowParseTypeParameterDeclaration())}parseClassMember(e,t,i){const{startLoc:r}=this.state;if(this.isContextual(125)){if(super.parseClassMemberFromModifier(e,t))return;t.declare=!0}super.parseClassMember(e,t,i),t.declare&&("ClassProperty"!==t.type&&"ClassPrivateProperty"!==t.type&&"PropertyDefinition"!==t.type?this.raise(xe.DeclareClassElement,r):t.value&&this.raise(xe.DeclareClassFieldInitializer,t.value))}isIterator(e){return"iterator"===e||"asyncIterator"===e}readIterator(){const e=super.readWord1(),t="@@"+e;this.isIterator(e)&&this.state.inType||this.raise(g.InvalidIdentifier,this.state.curPosition(),{identifierName:t}),this.finishToken(132,t)}getTokenFromCode(e){const 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,i){return 64===e&&64===t&&ae(i)}(e,t,this.input.charCodeAt(this.state.pos+2))?(this.state.pos+=2,this.readIterator()):super.getTokenFromCode(e):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,t=!1){t||"AssignmentExpression"!==e.type||"TypeCastExpression"!==e.left.type||(e.left=this.typeCastToParameter(e.left)),super.toAssignable(e,t)}toAssignableList(e,t,i){for(let t=0;t<e.length;t++){const i=e[t];"TypeCastExpression"===(null==i?void 0:i.type)&&(e[t]=this.typeCastToParameter(i))}super.toAssignableList(e,t,i)}toReferencedList(e,t){for(let r=0;r<e.length;r++){var i;const n=e[r];!n||"TypeCastExpression"!==n.type||null!=(i=n.extra)&&i.parenthesized||!(e.length>1)&&t||this.raise(xe.TypeCastInPattern,n.typeAnnotation)}return e}parseArrayLike(e,t,i,r){const n=super.parseArrayLike(e,t,i,r);return t&&!this.state.maybeInArrowParameters&&this.toReferencedList(n.elements),n}isValidLVal(e,t,i){return"TypeCastExpression"===e||super.isValidLVal(e,t,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,i,r,n,s){if(t.variance&&this.unexpected(t.variance.loc.start),delete t.variance,this.match(47)&&(t.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassMethod(e,t,i,r,n,s),t.params&&n){const e=t.params;e.length>0&&this.isThisParam(e[0])&&this.raise(xe.ThisParamBannedInConstructor,t)}else if("MethodDefinition"===t.type&&n&&t.value.params){const e=t.value.params;e.length>0&&this.isThisParam(e[0])&&this.raise(xe.ThisParamBannedInConstructor,t)}}pushClassPrivateMethod(e,t,i,r){t.variance&&this.unexpected(t.variance.loc.start),delete t.variance,this.match(47)&&(t.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassPrivateMethod(e,t,i,r)}parseClassSuper(e){if(super.parseClassSuper(e),e.superClass&&(this.match(47)||this.match(51))&&(e.superTypeParameters=this.flowParseTypeParameterInstantiationInExpression()),this.isContextual(113)){this.next();const t=e.implements=[];do{const e=this.startNode();e.id=this.flowParseRestrictedIdentifier(!0),this.match(47)?e.typeParameters=this.flowParseTypeParameterInstantiation():e.typeParameters=null,t.push(this.finishNode(e,"ClassImplements"))}while(this.eat(12))}}checkGetterSetterParams(e){super.checkGetterSetterParams(e);const t=this.getObjectOrClassMethodParams(e);if(t.length>0){const i=t[0];this.isThisParam(i)&&"get"===e.kind?this.raise(xe.GetterMayNotHaveThisParam,i):this.isThisParam(i)&&this.raise(xe.SetterMayNotHaveThisParam,i)}}parsePropertyNamePrefixOperator(e){e.variance=this.flowParseVariance()}parseObjPropValue(e,t,i,r,n,s,a){let o;e.variance&&this.unexpected(e.variance.loc.start),delete e.variance,this.match(47)&&!s&&(o=this.flowParseTypeParameterDeclaration(),this.match(10)||this.unexpected());const l=super.parseObjPropValue(e,t,i,r,n,s,a);return o&&((l.value||l).typeParameters=o),l}parseFunctionParamType(e){return this.eat(17)&&("Identifier"!==e.type&&this.raise(xe.PatternIsOptional,e),this.isThisParam(e)&&this.raise(xe.ThisParamMayNotBeOptional,e),e.optional=!0),this.match(14)?e.typeAnnotation=this.flowParseTypeAnnotation():this.isThisParam(e)&&this.raise(xe.ThisParamAnnotationRequired,e),this.match(29)&&this.isThisParam(e)&&this.raise(xe.ThisParamNoDefault,e),this.resetEndLocation(e),e}parseMaybeDefault(e,t){const i=super.parseMaybeDefault(e,t);return"AssignmentPattern"===i.type&&i.typeAnnotation&&i.right.start<i.typeAnnotation.start&&this.raise(xe.TypeBeforeInitializer,i.typeAnnotation),i}checkImportReflection(e){super.checkImportReflection(e),e.module&&"value"!==e.importKind&&this.raise(xe.ImportReflectionHasImportType,e.specifiers[0].loc.start)}parseImportSpecifierLocal(e,t,i){t.local=Ee(e)?this.flowParseRestrictedIdentifier(!0,!0):this.parseIdentifier(),e.specifiers.push(this.finishImportSpecifier(t,i))}isPotentialImportPhase(e){if(super.isPotentialImportPhase(e))return!0;if(this.isContextual(130)){if(!e)return!0;const t=this.lookaheadCharCode();return 123===t||42===t}return!e&&this.isContextual(87)}applyImportPhase(e,t,i,r){if(super.applyImportPhase(e,t,i,r),t){if(!i&&this.match(65))return;e.exportKind="type"===i?i:"value"}else"type"===i&&this.match(55)&&this.unexpected(),e.importKind="type"===i||"typeof"===i?i:"value"}parseImportSpecifier(e,t,i,r,n){const s=e.imported;let a=null;"Identifier"===s.type&&("type"===s.name?a="type":"typeof"===s.name&&(a="typeof"));let o=!1;if(this.isContextual(93)&&!this.isLookaheadContextual("as")){const t=this.parseIdentifier(!0);null===a||q(this.state.type)?(e.imported=s,e.importKind=null,e.local=this.parseIdentifier()):(e.imported=t,e.importKind=a,e.local=this.cloneIdentifier(t))}else{if(null!==a&&q(this.state.type))e.imported=this.parseIdentifier(!0),e.importKind=a;else{if(t)throw this.raise(g.ImportBindingIsString,e,{importName:s.value});e.imported=s,e.importKind=null}this.eatContextual(93)?e.local=this.parseIdentifier():(o=!0,e.local=this.cloneIdentifier(e.imported))}const l=Ee(e);return i&&l&&this.raise(xe.ImportTypeShorthandOnlyInPureImport,e),(i||l)&&this.checkReservedType(e.local.name,e.local.loc.start,!0),!o||i||l||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){const i=e.kind;"get"!==i&&"set"!==i&&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)){const t=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0,e.returnType=this.flowParseTypeAnnotation(),this.state.noAnonFunctionType=t}return super.parseAsyncArrowFromCallExpression(e,t)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}parseMaybeAssign(e,t){var i;let r,n=null;if(this.hasPlugin("jsx")&&(this.match(143)||this.match(47))){if(n=this.state.clone(),r=this.tryParse((()=>super.parseMaybeAssign(e,t)),n),!r.error)return r.node;const{context:i}=this.state,s=i[i.length-1];s!==v.j_oTag&&s!==v.j_expr||i.pop()}if(null!=(i=r)&&i.error||this.match(47)){var s,a;let i;n=n||this.state.clone();const o=this.tryParse((r=>{var n;i=this.flowParseTypeParameterDeclaration();const s=this.forwardNoArrowParamsConversionAt(i,(()=>{const r=super.parseMaybeAssign(e,t);return this.resetStartLocationFromNode(r,i),r}));null!=(n=s.extra)&&n.parenthesized&&r();const a=this.maybeUnwrapTypeCastExpression(s);return"ArrowFunctionExpression"!==a.type&&r(),a.typeParameters=i,this.resetStartLocationFromNode(a,i),s}),n);let l=null;if(o.node&&"ArrowFunctionExpression"===this.maybeUnwrapTypeCastExpression(o.node).type){if(!o.error&&!o.aborted)return o.node.async&&this.raise(xe.UnexpectedTypeParameterBeforeAsyncArrowFunction,i),o.node;l=o.node}if(null!=(s=r)&&s.node)return this.state=r.failState,r.node;if(l)return this.state=o.failState,l;if(null!=(a=r)&&a.thrown)throw r.error;if(o.thrown)throw o.error;throw this.raise(xe.UnexpectedTokenAfterTypeParameter,i)}return super.parseMaybeAssign(e,t)}parseArrow(e){if(this.match(14)){const t=this.tryParse((()=>{const t=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0;const i=this.startNode();return[i.typeAnnotation,e.predicate]=this.flowParseTypeAndPredicateInitialiser(),this.state.noAnonFunctionType=t,this.canInsertSemicolon()&&this.unexpected(),this.match(19)||this.unexpected(),i}));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,i,r=!0){if(!i||!this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(e.start))){for(let t=0;t<e.params.length;t++)this.isThisParam(e.params[t])&&t>0&&this.raise(xe.ThisParamMustBeFirst,e.params[t]);super.checkParams(e,t,i,r)}}parseParenAndDistinguishExpression(e){return super.parseParenAndDistinguishExpression(e&&!this.state.noArrowAt.includes(this.sourceToOffsetPos(this.state.start)))}parseSubscripts(e,t,i){if("Identifier"===e.type&&"async"===e.name&&this.state.noArrowAt.includes(t.index)){this.next();const 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)){const r=this.state.clone(),n=this.tryParse((e=>this.parseAsyncArrowWithTypeParameters(t)||e()),r);if(!n.error&&!n.aborted)return n.node;const s=this.tryParse((()=>super.parseSubscripts(e,t,i)),r);if(s.node&&!s.error)return s.node;if(n.node)return this.state=n.failState,n.node;if(s.node)return this.state=s.failState,s.node;throw n.error||s.error}return super.parseSubscripts(e,t,i)}parseSubscript(e,t,i,r){if(this.match(18)&&this.isLookaheadToken_lt()){if(r.optionalChainMember=!0,i)return r.stop=!0,e;this.next();const 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(!i&&this.shouldParseTypes()&&(this.match(47)||this.match(51))){const i=this.startNodeAt(t);i.callee=e;const n=this.tryParse((()=>(i.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew(),this.expect(10),i.arguments=super.parseCallExpressionArguments(),r.optionalChainMember&&(i.optional=!1),this.finishCallExpression(i,r.optionalChainMember))));if(n.node)return n.error&&(this.state=n.failState),n.node}return super.parseSubscript(e,t,i,r)}parseNewCallee(e){super.parseNewCallee(e);let t=null;this.shouldParseTypes()&&this.match(47)&&(t=this.tryParse((()=>this.flowParseTypeParameterInstantiationCallOrNew())).node),e.typeArguments=t}parseAsyncArrowWithTypeParameters(e){const t=this.startNodeAt(e);if(this.parseFunctionParams(t,!1),this.parseArrow(t))return super.parseArrowExpression(t,void 0,!0)}readToken_mult_modulo(e){const 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){const t=this.input.charCodeAt(this.state.pos+1);124!==e||125!==t?super.readToken_pipe_amp(e):this.finishOp(9,2)}parseTopLevel(e,t){const i=super.parseTopLevel(e,t);return this.state.hasFlowComment&&this.raise(xe.UnterminatedFlowComment,this.state.curPosition()),i}skipBlockComment(){if(!this.hasPlugin("flowComments")||!this.skipFlowComment())return super.skipBlockComment(this.state.hasFlowComment?"*-/":"*/");{if(this.state.hasFlowComment)throw this.raise(xe.NestedFlowComment,this.state.startLoc);this.hasFlowCommentCompletion();const e=this.skipFlowComment();e&&(this.state.pos+=e,this.state.hasFlowComment=!0)}}skipFlowComment(){const{pos:e}=this.state;let t=2;for(;[32,9].includes(this.input.charCodeAt(e+t));)t++;const i=this.input.charCodeAt(t+e),r=this.input.charCodeAt(t+e+1);return 58===i&&58===r?t+2:"flow-include"===this.input.slice(t+e,t+e+12)?t+12:58===i&&58!==r&&t}hasFlowCommentCompletion(){if(-1===this.input.indexOf("*/",this.state.pos))throw this.raise(g.UnterminatedComment,this.state.curPosition())}flowEnumErrorBooleanMemberNotInitialized(e,{enumName:t,memberName:i}){this.raise(xe.EnumBooleanMemberNotInitialized,e,{memberName:i,enumName:t})}flowEnumErrorInvalidMemberInitializer(e,t){return this.raise(t.explicitType?"symbol"===t.explicitType?xe.EnumInvalidMemberInitializerSymbolType:xe.EnumInvalidMemberInitializerPrimaryType:xe.EnumInvalidMemberInitializerUnknownType,e,t)}flowEnumErrorNumberMemberNotInitialized(e,t){this.raise(xe.EnumNumberMemberNotInitialized,e,t)}flowEnumErrorStringMemberInconsistentlyInitialized(e,t){this.raise(xe.EnumStringMemberInconsistentlyInitialized,e,t)}flowEnumMemberInit(){const e=this.state.startLoc,t=()=>this.match(12)||this.match(8);switch(this.state.type){case 135:{const i=this.parseNumericLiteral(this.state.value);return t()?{type:"number",loc:i.loc.start,value:i}:{type:"invalid",loc:e}}case 134:{const i=this.parseStringLiteral(this.state.value);return t()?{type:"string",loc:i.loc.start,value:i}:{type:"invalid",loc:e}}case 85:case 86:{const i=this.parseBooleanLiteral(this.match(85));return t()?{type:"boolean",loc:i.loc.start,value:i}:{type:"invalid",loc:e}}default:return{type:"invalid",loc:e}}}flowEnumMemberRaw(){const e=this.state.startLoc;return{id:this.parseIdentifier(!0),init:this.eat(29)?this.flowEnumMemberInit():{type:"none",loc:e}}}flowEnumCheckExplicitTypeMismatch(e,t,i){const{explicitType:r}=t;null!==r&&r!==i&&this.flowEnumErrorInvalidMemberInitializer(e,t)}flowEnumMembers({enumName:e,explicitType:t}){const i=new Set,r={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]};let n=!1;for(;!this.match(8);){if(this.eat(21)){n=!0;break}const s=this.startNode(),{id:a,init:o}=this.flowEnumMemberRaw(),l=a.name;if(""===l)continue;/^[a-z]/.test(l)&&this.raise(xe.EnumInvalidMemberName,a,{memberName:l,suggestion:l[0].toUpperCase()+l.slice(1),enumName:e}),i.has(l)&&this.raise(xe.EnumDuplicateMemberName,a,{memberName:l,enumName:e}),i.add(l);const p={enumName:e,explicitType:t,memberName:l};switch(s.id=a,o.type){case"boolean":this.flowEnumCheckExplicitTypeMismatch(o.loc,p,"boolean"),s.init=o.value,r.booleanMembers.push(this.finishNode(s,"EnumBooleanMember"));break;case"number":this.flowEnumCheckExplicitTypeMismatch(o.loc,p,"number"),s.init=o.value,r.numberMembers.push(this.finishNode(s,"EnumNumberMember"));break;case"string":this.flowEnumCheckExplicitTypeMismatch(o.loc,p,"string"),s.init=o.value,r.stringMembers.push(this.finishNode(s,"EnumStringMember"));break;case"invalid":throw this.flowEnumErrorInvalidMemberInitializer(o.loc,p);case"none":switch(t){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(o.loc,p);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(o.loc,p);break;default:r.defaultedMembers.push(this.finishNode(s,"EnumDefaultedMember"))}}this.match(8)||this.expect(12)}return{members:r,hasUnknownMembers:n}}flowEnumStringMembers(e,t,{enumName:i}){if(0===e.length)return t;if(0===t.length)return e;if(t.length>e.length){for(const t of e)this.flowEnumErrorStringMemberInconsistentlyInitialized(t,{enumName:i});return t}for(const e of t)this.flowEnumErrorStringMemberInconsistentlyInitialized(e,{enumName:i});return e}flowEnumParseExplicitType({enumName:e}){if(!this.eatContextual(102))return null;if(!$(this.state.type))throw this.raise(xe.EnumInvalidExplicitTypeUnknownSupplied,this.state.startLoc,{enumName:e});const{value:t}=this.state;return this.next(),"boolean"!==t&&"number"!==t&&"string"!==t&&"symbol"!==t&&this.raise(xe.EnumInvalidExplicitType,this.state.startLoc,{enumName:e,invalidEnumType:t}),t}flowEnumBody(e,t){const i=t.name,r=t.loc.start,n=this.flowEnumParseExplicitType({enumName:i});this.expect(5);const{members:s,hasUnknownMembers:a}=this.flowEnumMembers({enumName:i,explicitType:n});switch(e.hasUnknownMembers=a,n){case"boolean":return e.explicitType=!0,e.members=s.booleanMembers,this.expect(8),this.finishNode(e,"EnumBooleanBody");case"number":return e.explicitType=!0,e.members=s.numberMembers,this.expect(8),this.finishNode(e,"EnumNumberBody");case"string":return e.explicitType=!0,e.members=this.flowEnumStringMembers(s.stringMembers,s.defaultedMembers,{enumName:i}),this.expect(8),this.finishNode(e,"EnumStringBody");case"symbol":return e.members=s.defaultedMembers,this.expect(8),this.finishNode(e,"EnumSymbolBody");default:{const t=()=>(e.members=[],this.expect(8),this.finishNode(e,"EnumStringBody"));e.explicitType=!1;const n=s.booleanMembers.length,a=s.numberMembers.length,o=s.stringMembers.length,l=s.defaultedMembers.length;if(n||a||o||l){if(n||a){if(!a&&!o&&n>=l){for(const e of s.defaultedMembers)this.flowEnumErrorBooleanMemberNotInitialized(e.loc.start,{enumName:i,memberName:e.id.name});return e.members=s.booleanMembers,this.expect(8),this.finishNode(e,"EnumBooleanBody")}if(!n&&!o&&a>=l){for(const e of s.defaultedMembers)this.flowEnumErrorNumberMemberNotInitialized(e.loc.start,{enumName:i,memberName:e.id.name});return e.members=s.numberMembers,this.expect(8),this.finishNode(e,"EnumNumberBody")}return this.raise(xe.EnumInconsistentMemberValues,r,{enumName:i}),t()}return e.members=this.flowEnumStringMembers(s.stringMembers,s.defaultedMembers,{enumName:i}),this.expect(8),this.finishNode(e,"EnumStringBody")}return t()}}}flowParseEnumDeclaration(e){const 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(){const e=this.nextTokenStart();if(60===this.input.charCodeAt(e)){const t=this.input.charCodeAt(e+1);return 60!==t&&61!==t}return!1}reScan_lt_gt(){const{type:e}=this.state;47===e?(this.state.pos-=1,this.readToken_lt()):48===e&&(this.state.pos-=1,this.readToken_gt())}reScan_lt(){const{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(...e){super(...e),this.tsParseInOutModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out"],disallowedModifiers:["const","public","private","protected","readonly","declare","abstract","override"],errorTemplate:gt.InvalidModifierOnTypeParameter}),this.tsParseConstModifier=this.tsParseModifiers.bind(this,{allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:gt.InvalidModifierOnTypeParameterPositions}),this.tsParseInOutConstModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out","const"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:gt.InvalidModifierOnTypeParameter})}getScopeHandler(){return Be}tsIsIdentifier(){return $(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,i){if(!$(this.state.type)&&58!==this.state.type&&75!==this.state.type)return;const r=this.state.value;if(e.includes(r)){if(i&&this.match(106))return;if(t&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return r}}tsParseModifiers({allowedModifiers:e,disallowedModifiers:t,stopOnStartOfClassStaticBlock:i,errorTemplate:r=gt.InvalidModifierOnTypeMember},n){const s=(e,t,i,r)=>{t===i&&n[r]&&this.raise(gt.InvalidModifiersOrder,e,{orderedModifiers:[i,r]})},a=(e,t,i,r)=>{(n[i]&&t===r||n[r]&&t===i)&&this.raise(gt.IncompatibleModifiers,e,{modifiers:[i,r]})};for(;;){const{startLoc:o}=this.state,l=this.tsParseModifier(e.concat(null!=t?t:[]),i,n.static);if(!l)break;bt(l)?n.accessibility?this.raise(gt.DuplicateAccessibilityModifier,o,{modifier:l}):(s(o,l,l,"override"),s(o,l,l,"static"),s(o,l,l,"readonly"),n.accessibility=l):St(l)?(n[l]&&this.raise(gt.DuplicateModifier,o,{modifier:l}),n[l]=!0,s(o,l,"in","out")):(hasOwnProperty.call(n,l)?this.raise(gt.DuplicateModifier,o,{modifier:l}):(s(o,l,"static","readonly"),s(o,l,"static","override"),s(o,l,"override","readonly"),s(o,l,"abstract","override"),a(o,l,"declare","override"),a(o,l,"static","abstract")),n[l]=!0),null!=t&&t.includes(l)&&this.raise(r,o,{modifier:l})}}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){const i=[];for(;!this.tsIsListTerminator(e);)i.push(t());return i}tsParseDelimitedList(e,t,i){return function(e){if(null==e)throw new Error(`Unexpected ${e} value.`);return e}(this.tsParseDelimitedListWorker(e,t,!0,i))}tsParseDelimitedListWorker(e,t,i,r){const n=[];let s=-1;for(;!this.tsIsListTerminator(e);){s=-1;const r=t();if(null==r)return;if(n.push(r),!this.eat(12)){if(this.tsIsListTerminator(e))break;return void(i&&this.expect(12))}s=this.state.lastTokStartLoc.index}return r&&(r.value=s),n}tsParseBracketedList(e,t,i,r,n){r||(i?this.expect(0):this.expect(47));const s=this.tsParseDelimitedList(e,t,n);return i?this.expect(3):this.expect(48),s}tsParseImportType(){const e=this.startNode();return this.expect(83),this.expect(10),this.match(134)?e.argument=this.parseStringLiteral(this.state.value):(this.raise(gt.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(){const e=this.startNode();this.expect(5);const 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(){const e=this.startNode(),t=[];for(this.expect(5);!this.match(8);){const e=this.state.type;$(e)||134===e?t.push(super.parsePropertyDefinition(null)):this.unexpected(),this.eat(12)}return e.properties=t,this.next(),this.finishNode(e,"ObjectExpression")}tsParseEntityName(e){let t;if(1&e&&this.match(78))if(2&e)t=this.parseIdentifier(!0);else{const e=this.startNode();this.next(),t=this.finishNode(e,"ThisExpression")}else t=this.parseIdentifier(!!(1&e));for(;this.eat(16);){const i=this.startNodeAtNode(t);i.left=t,i.right=this.parseIdentifier(!!(1&e)),t=this.finishNode(i,"TSQualifiedName")}return t}tsParseTypeReference(){const 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();const t=this.startNodeAtNode(e);return t.parameterName=e,t.typeAnnotation=this.tsParseTypeAnnotation(!1),t.asserts=!1,this.finishNode(t,"TSTypePredicate")}tsParseThisTypeNode(){const e=this.startNode();return this.next(),this.finishNode(e,"TSThisType")}tsParseTypeQuery(){const 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){const 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){const t=this.startNode();this.match(47)||this.match(143)?this.next():this.unexpected();const i={value:-1};return t.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,e),!1,!0,i),0===t.params.length&&this.raise(gt.EmptyTypeParameters,t),-1!==i.value&&this.addExtra(t,"trailingComma",i.value),this.finishNode(t,"TSTypeParameterDeclaration")}tsFillSignature(e,t){const i=19===e;t.typeParameters=this.tsTryParseTypeParameters(this.tsParseConstModifier),this.expect(10),t.parameters=this.tsParseBindingListForSignature(),(i||this.match(e))&&(t.typeAnnotation=this.tsParseTypeOrTypePredicateAnnotation(e))}tsParseBindingListForSignature(){const e=super.parseBindingList(11,41,2);for(const t of e){const{type:e}=t;"AssignmentPattern"!==e&&"TSParameterProperty"!==e||this.raise(gt.UnsupportedSignatureParameterKind,t,{type:e})}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(),!!$(this.state.type)&&(this.next(),this.match(14))}tsTryParseIndexSignature(e){if(!this.match(0)||!this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this)))return;this.expect(0);const t=this.parseIdentifier();t.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(t),this.expect(3),e.parameters=[t];const i=this.tsTryParseTypeAnnotation();return i&&(e.typeAnnotation=i),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(gt.ReadonlyForMethodSignature,e);const i=e;i.kind&&this.match(47)&&this.raise(gt.AccessorCannotHaveTypeParameters,this.state.curPosition()),this.tsFillSignature(14,i),this.tsParseTypeMemberSemicolon();const r="parameters",n="typeAnnotation";if("get"===i.kind)i[r].length>0&&(this.raise(g.BadGetterArity,this.state.curPosition()),this.isThisParam(i[r][0])&&this.raise(gt.AccessorCannotDeclareThisParameter,this.state.curPosition()));else if("set"===i.kind){if(1!==i[r].length)this.raise(g.BadSetterArity,this.state.curPosition());else{const e=i[r][0];this.isThisParam(e)&&this.raise(gt.AccessorCannotDeclareThisParameter,this.state.curPosition()),"Identifier"===e.type&&e.optional&&this.raise(gt.SetAccessorCannotHaveOptionalParameter,this.state.curPosition()),"RestElement"===e.type&&this.raise(gt.SetAccessorCannotHaveRestParameter,this.state.curPosition())}i[n]&&this.raise(gt.SetAccessorCannotHaveReturnType,i[n])}else i.kind="method";return this.finishNode(i,"TSMethodSignature")}{const i=e;t&&(i.readonly=!0);const r=this.tsTryParseTypeAnnotation();return r&&(i.typeAnnotation=r),this.tsParseTypeMemberSemicolon(),this.finishNode(i,"TSPropertySignature")}}tsParseTypeMember(){const e=this.startNode();if(this.match(10)||this.match(47))return this.tsParseSignatureMember("TSCallSignatureDeclaration",e);if(this.match(77)){const 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);return this.tsTryParseIndexSignature(e)||(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(){const e=this.startNode();return e.members=this.tsParseObjectTypeMembers(),this.finishNode(e,"TSTypeLiteral")}tsParseObjectTypeMembers(){this.expect(5);const 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(){const 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);{const t=this.startNode();t.name=this.tsParseTypeParameterName(),t.constraint=this.tsExpectThenParseType(58),e.typeParameter=this.finishNode(t,"TSTypeParameter")}return 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(){const e=this.startNode();e.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);let t=!1;return e.elementTypes.forEach((e=>{const{type:i}=e;!t||"TSRestType"===i||"TSOptionalType"===i||"TSNamedTupleMember"===i&&e.optional||this.raise(gt.OptionalTypeBeforeRequired,e),t||(t="TSNamedTupleMember"===i&&e.optional||"TSOptionalType"===i)})),this.finishNode(e,"TSTupleType")}tsParseTupleElementType(){const e=this.state.startLoc,t=this.eat(21),{startLoc:i}=this.state;let r,n,s,a;const o=q(this.state.type)?this.lookaheadCharCode():null;if(58===o)r=!0,s=!1,n=this.parseIdentifier(!0),this.expect(14),a=this.tsParseType();else if(63===o){s=!0;const e=this.state.value,t=this.tsParseNonArrayType();58===this.lookaheadCharCode()?(r=!0,n=this.createIdentifier(this.startNodeAt(i),e),this.expect(17),this.expect(14),a=this.tsParseType()):(r=!1,a=t,this.expect(17))}else a=this.tsParseType(),s=this.eat(17),r=this.eat(14);if(r){let e;n?(e=this.startNodeAt(i),e.optional=s,e.label=n,e.elementType=a,this.eat(17)&&(e.optional=!0,this.raise(gt.TupleOptionalAfterType,this.state.lastTokStartLoc))):(e=this.startNodeAt(i),e.optional=s,this.raise(gt.InvalidTupleMemberLabel,a),e.label=a,e.elementType=this.tsParseType()),a=this.finishNode(e,"TSNamedTupleMember")}else if(s){const e=this.startNodeAt(i);e.typeAnnotation=a,a=this.finishNode(e,"TSOptionalType")}if(t){const t=this.startNodeAt(e);t.typeAnnotation=a,a=this.finishNode(t,"TSRestType")}return a}tsParseParenthesizedType(){const e=this.startNode();return this.expect(10),e.typeAnnotation=this.tsParseType(),this.expect(11),this.finishNode(e,"TSParenthesizedType")}tsParseFunctionOrConstructorType(e,t){const i=this.startNode();return"TSConstructorType"===e&&(i.abstract=!!t,t&&this.next(),this.next()),this.tsInAllowConditionalTypesContext((()=>this.tsFillSignature(19,i))),this.finishNode(i,e)}tsParseLiteralTypeNode(){const 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(){{const e=this.startNode();return e.literal=super.parseTemplate(!1),this.finishNode(e,"TSLiteralType")}}parseTemplateSubstitution(){return this.state.inType?this.tsParseType():super.parseTemplateSubstitution()}tsParseThisTypeOrThisTypePredicate(){const 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){const 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:{const{type:e}=this.state;if($(e)||88===e||84===e){const t=88===e?"TSVoidKeyword":84===e?"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!==t&&46!==this.lookaheadCharCode()){const e=this.startNode();return this.next(),this.finishNode(e,t)}return this.tsParseTypeReference()}}}this.unexpected()}tsParseArrayTypeOrHigher(){const{startLoc:e}=this.state;let t=this.tsParseNonArrayType();for(;!this.hasPrecedingLineBreak()&&this.eat(0);)if(this.match(3)){const i=this.startNodeAt(e);i.elementType=t,this.expect(3),t=this.finishNode(i,"TSArrayType")}else{const i=this.startNodeAt(e);i.objectType=t,i.indexType=this.tsParseType(),this.expect(3),t=this.finishNode(i,"TSIndexedAccessType")}return t}tsParseTypeOperator(){const 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(gt.UnexpectedReadonly,e)}}tsParseInferType(){const e=this.startNode();this.expectContextual(115);const 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)){const 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,i){const r=this.startNode(),n=this.eat(i),s=[];do{s.push(t())}while(this.eat(i));return 1!==s.length||n?(r.types=s,this.finishNode(r,e)):s[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($(this.state.type)||this.match(78))return this.next(),!0;if(this.match(5)){const{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();const{errors:e}=this.state,t=e.length;try{return super.parseBindingList(3,93,1),e.length===t}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((()=>{const t=this.startNode();this.expect(e);const i=this.startNode(),r=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(r&&this.match(78)){let e=this.tsParseThisTypeOrThisTypePredicate();return"TSThisType"===e.type?(i.parameterName=e,i.asserts=!0,i.typeAnnotation=null,e=this.finishNode(i,"TSTypePredicate")):(this.resetStartLocationFromNode(e,i),e.asserts=!0),t.typeAnnotation=e,this.finishNode(t,"TSTypeAnnotation")}const n=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!n)return r?(i.parameterName=this.parseIdentifier(),i.asserts=r,i.typeAnnotation=null,t.typeAnnotation=this.finishNode(i,"TSTypePredicate"),this.finishNode(t,"TSTypeAnnotation")):this.tsParseTypeAnnotation(!1,t);const s=this.tsParseTypeAnnotation(!1);return i.parameterName=n,i.typeAnnotation=s,i.asserts=r,t.typeAnnotation=this.finishNode(i,"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(){const e=this.parseIdentifier();if(this.isContextual(116)&&!this.hasPrecedingLineBreak())return this.next(),e}tsParseTypePredicateAsserts(){if(109!==this.state.type)return!1;const e=this.state.containsEsc;return this.next(),!(!$(this.state.type)&&!this.match(78)||(e&&this.raise(g.InvalidEscapedReservedWord,this.state.lastTokStartLoc,{reservedWord:"asserts"}),0))}tsParseTypeAnnotation(e=!0,t=this.startNode()){return this.tsInType((()=>{e&&this.expect(14),t.typeAnnotation=this.tsParseType()})),this.finishNode(t,"TSTypeAnnotation")}tsParseType(){Tt(this.state.inType);const e=this.tsParseNonConditionalType();if(this.state.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(81))return e;const 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(gt.ReservedTypeAssertion,this.state.startLoc);const 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){const t=this.state.startLoc,i=this.tsParseDelimitedList("HeritageClauseElement",(()=>{{const e=this.startNode();return e.expression=this.tsParseEntityName(3),this.match(47)&&(e.typeParameters=this.tsParseTypeArguments()),this.finishNode(e,"TSExpressionWithTypeArguments")}}));return i.length||this.raise(gt.EmptyHeritageClauseType,t,{token:e}),i}tsParseInterfaceDeclaration(e,t={}){if(this.hasFollowingLineBreak())return null;this.expectContextual(129),t.declare&&(e.declare=!0),$(this.state.type)?(e.id=this.parseIdentifier(),this.checkIdentifier(e.id,130)):(e.id=null,this.raise(gt.MissingInterfaceName,this.state.startLoc)),e.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers),this.eat(81)&&(e.extends=this.tsParseHeritageClause("extends"));const i=this.startNode();return i.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),e.body=this.finishNode(i,"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()){const e=this.startNode();return this.next(),this.finishNode(e,"TSIntrinsicKeyword")}return this.tsParseType()})),this.semicolon(),this.finishNode(e,"TSTypeAliasDeclaration")}tsInTopLevelContext(e){if(this.curContext()===v.brace)return e();{const t=this.state.context;this.state.context=[t[0]];try{return e()}finally{this.state.context=t}}}tsInType(e){const t=this.state.inType;this.state.inType=!0;try{return e()}finally{this.state.inType=t}}tsInDisallowConditionalTypesContext(e){const t=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!0;try{return e()}finally{this.state.inDisallowConditionalTypesContext=t}}tsInAllowConditionalTypesContext(e){const 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(){const 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,t={}){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(){const e=this.startNode();return this.expect(5),e.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(e,"TSEnumBody")}tsParseModuleBlock(){const 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,t=!1){if(e.id=this.parseIdentifier(),t||this.checkIdentifier(e.id,1024),this.eat(16)){const t=this.startNode();this.tsParseModuleOrNamespaceDeclaration(t,!0),e.body=t}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,i){e.isExport=i||!1,e.id=t||this.parseIdentifier(),this.checkIdentifier(e.id,4096),this.expect(29);const r=this.tsParseModuleReference();return"type"===e.importKind&&"TSExternalModuleReference"!==r.type&&this.raise(gt.ImportAliasHasImportType,r),e.moduleReference=r,this.semicolon(),this.finishNode(e,"TSImportEqualsDeclaration")}tsIsExternalModuleReference(){return this.isContextual(119)&&40===this.lookaheadCharCode()}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(0)}tsParseExternalModuleReference(){const 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){const t=this.state.clone(),i=e();return this.state=t,i}tsTryParseAndCatch(e){const t=this.tryParse((t=>e()||t()));if(!t.aborted&&t.node)return t.error&&(this.state=t.failState),t.node}tsTryParse(e){const t=this.state.clone(),i=e();if(void 0!==i&&!1!==i)return i;this.state=t}tsTryParseDeclare(e){if(this.isLineTerminator())return;const 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(gt.InvalidModifierOnUsingDeclaration,this.state.startLoc,"declare"),e.declare=!0,this.parseVarStatement(e,"using",!0);break;case 96:if(this.isAwaitUsing())return this.raise(gt.InvalidModifierOnAwaitUsingDeclaration,this.state.startLoc,"declare"),e.declare=!0,this.next(),this.parseVarStatement(e,"await using",!0);break;case 129:{const t=this.tsParseInterfaceDeclaration(e,{declare:!0});if(t)return t}default:if($(t))return this.tsParseDeclaration(e,this.state.value,!0,null)}}))}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.state.value,!0,null)}tsParseExpressionStatement(e,t,i){switch(t.name){case"declare":{const t=this.tsTryParseDeclare(e);return t&&(t.declare=!0),t}case"global":if(this.match(5)){this.scope.enter(1024),this.prodParam.enter(0);const i=e;return i.kind="global",e.global=!0,i.id=t,i.body=this.tsParseModuleBlock(),this.scope.exit(),this.prodParam.exit(),this.finishNode(i,"TSModuleDeclaration")}break;default:return this.tsParseDeclaration(e,t.name,!1,i)}}tsParseDeclaration(e,t,i,r){switch(t){case"abstract":if(this.tsCheckLineTerminator(i)&&(this.match(80)||$(this.state.type)))return this.tsParseAbstractDeclaration(e,r);break;case"module":if(this.tsCheckLineTerminator(i)){if(this.match(134))return this.tsParseAmbientExternalModuleDeclaration(e);if($(this.state.type))return e.kind="module",this.tsParseModuleOrNamespaceDeclaration(e)}break;case"namespace":if(this.tsCheckLineTerminator(i)&&$(this.state.type))return e.kind="namespace",this.tsParseModuleOrNamespaceDeclaration(e);break;case"type":if(this.tsCheckLineTerminator(i)&&$(this.state.type))return this.tsParseTypeAliasDeclaration(e)}}tsCheckLineTerminator(e){return e?!this.hasFollowingLineBreak()&&(this.next(),!0):!this.isLineTerminator()}tsTryParseGenericAsyncArrowFunction(e){if(!this.match(47))return;const t=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0;const i=this.tsTryParseAndCatch((()=>{const t=this.startNodeAt(e);return t.typeParameters=this.tsParseTypeParameters(this.tsParseConstModifier),super.parseFunctionParams(t),t.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(19),t}));return this.state.maybeInArrowParameters=t,i?super.parseArrowExpression(i,null,!0):void 0}tsParseTypeArgumentsInExpression(){if(47===this.reScan_lt())return this.tsParseTypeArguments()}tsParseTypeArguments(){const 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(gt.EmptyTypeArguments,e):this.state.inType||this.curContext()!==v.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){const i=t.length?t[0].loc.start:this.state.startLoc,r={};this.tsParseModifiers({allowedModifiers:["public","private","protected","override","readonly"]},r);const n=r.accessibility,s=r.override,a=r.readonly;4&e||!(n||a||s)||this.raise(gt.UnexpectedParameterModifier,i);const o=this.parseMaybeDefault();2&e&&this.parseFunctionParamType(o);const l=this.parseMaybeDefault(o.loc.start,o);if(n||a||s){const e=this.startNodeAt(i);return t.length&&(e.decorators=t),n&&(e.accessibility=n),a&&(e.readonly=a),s&&(e.override=s),"Identifier"!==l.type&&"AssignmentPattern"!==l.type&&this.raise(gt.UnsupportedParameterPropertyKind,e),e.parameter=l,this.finishNode(e,"TSParameterProperty")}return t.length&&(o.decorators=t),l}isSimpleParameter(e){return"TSParameterProperty"===e.type&&super.isSimpleParameter(e.parameter)||super.isSimpleParameter(e)}tsDisallowOptionalPattern(e){for(const t of e.params)"Identifier"!==t.type&&t.optional&&!this.state.isAmbientContext&&this.raise(gt.PatternIsOptional,t)}setArrowFunctionParameters(e,t,i){super.setArrowFunctionParameters(e,t,i),this.tsDisallowOptionalPattern(e)}parseFunctionBodyAndFinish(e,t,i=!1){this.match(14)&&(e.returnType=this.tsParseTypeOrTypePredicateAnnotation(14));const r="FunctionDeclaration"===t?"TSDeclareFunction":"ClassMethod"===t||"ClassPrivateMethod"===t?"TSDeclareMethod":void 0;return r&&!this.match(5)&&this.isLineTerminator()?this.finishNode(e,r):"TSDeclareFunction"===r&&this.state.isAmbientContext&&(this.raise(gt.DeclareFunctionHasImplementation,e),e.declare)?super.parseFunctionBodyAndFinish(e,r,i):(this.tsDisallowOptionalPattern(e),super.parseFunctionBodyAndFinish(e,t,i))}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(gt.UnexpectedTypeAnnotation,e.typeAnnotation)}))}toReferencedList(e,t){return this.tsCheckForInvalidTypeCasts(e),e}parseArrayLike(e,t,i,r){const n=super.parseArrayLike(e,t,i,r);return"ArrayExpression"===n.type&&this.tsCheckForInvalidTypeCasts(n.elements),n}parseSubscript(e,t,i,r){if(!this.hasPrecedingLineBreak()&&this.match(35)){this.state.canStartJSXElement=!1,this.next();const i=this.startNodeAt(t);return i.expression=e,this.finishNode(i,"TSNonNullExpression")}let n=!1;if(this.match(18)&&60===this.lookaheadCharCode()){if(i)return r.stop=!0,e;r.optionalChainMember=n=!0,this.next()}if(this.match(47)||this.match(51)){let s;const a=this.tsTryParseAndCatch((()=>{if(!i&&this.atPossibleAsyncArrow(e)){const e=this.tsTryParseGenericAsyncArrowFunction(t);if(e)return r.stop=!0,e}const a=this.tsParseTypeArgumentsInExpression();if(!a)return;if(n&&!this.match(10))return void(s=this.state.curPosition());if(G(this.state.type)){const i=super.parseTaggedTemplateExpression(e,t,r);return i.typeParameters=a,i}if(!i&&this.eat(10)){const i=this.startNodeAt(t);return i.callee=e,i.arguments=this.parseCallExpressionArguments(),this.tsCheckForInvalidTypeCasts(i.arguments),i.typeParameters=a,r.optionalChainMember&&(i.optional=n),this.finishCallExpression(i,r.optionalChainMember)}const o=this.state.type;if(48===o||52===o||10!==o&&J(o)&&!this.hasPrecedingLineBreak())return;const l=this.startNodeAt(t);return l.expression=e,l.typeParameters=a,this.finishNode(l,"TSInstantiationExpression")}));if(s&&this.unexpected(s,10),a)return"TSInstantiationExpression"===a.type&&((this.match(16)||this.match(18)&&40!==this.lookaheadCharCode())&&this.raise(gt.InvalidPropertyAccessAfterInstantiationExpression,this.state.startLoc),this.match(16)||this.match(18)||(a.expression=super.stopParseSubscript(e,r))),a}return super.parseSubscript(e,t,i,r)}parseNewCallee(e){var t;super.parseNewCallee(e);const{callee:i}=e;"TSInstantiationExpression"!==i.type||null!=(t=i.extra)&&t.parenthesized||(e.typeParameters=i.typeParameters,e.callee=i.expression)}parseExprOp(e,t,i){let r;if(H(58)>i&&!this.hasPrecedingLineBreak()&&(this.isContextual(93)||(r=this.isContextual(120)))){const n=this.startNodeAt(t);return n.expression=e,n.typeAnnotation=this.tsInType((()=>(this.next(),this.match(75)?(r&&this.raise(g.UnexpectedKeyword,this.state.startLoc,{keyword:"const"}),this.tsParseTypeReference()):this.tsParseType()))),this.finishNode(n,r?"TSSatisfiesExpression":"TSAsExpression"),this.reScan_lt_gt(),this.parseExprOp(n,t,i)}return super.parseExprOp(e,t,i)}checkReservedWord(e,t,i,r){this.state.isAmbientContext||super.checkReservedWord(e,t,i,r)}checkImportReflection(e){super.checkImportReflection(e),e.module&&"value"!==e.importKind&&this.raise(gt.ImportReflectionHasImportType,e.specifiers[0].loc.start)}checkDuplicateExports(){}isPotentialImportPhase(e){if(super.isPotentialImportPhase(e))return!0;if(this.isContextual(130)){const t=this.lookaheadCharCode();return e?123===t||42===t:61!==t}return!e&&this.isContextual(87)}applyImportPhase(e,t,i,r){super.applyImportPhase(e,t,i,r),t?e.exportKind="type"===i?"type":"value":e.importKind="type"===i||"typeof"===i?i:"value"}parseImport(e){if(this.match(134))return e.importKind="value",super.parseImport(e);let t;if($(this.state.type)&&61===this.lookaheadCharCode())return e.importKind="value",this.tsParseImportEqualsDeclaration(e);if(this.isContextual(130)){const i=this.parseMaybeImportPhase(e,!1);if(61===this.lookaheadCharCode())return this.tsParseImportEqualsDeclaration(e,i);t=super.parseImportSpecifiersAndAfter(e,i)}else t=super.parseImport(e);return"type"===t.importKind&&t.specifiers.length>1&&"ImportDefaultSpecifier"===t.specifiers[0].type&&this.raise(gt.TypeImportCannotSpecifyDefaultAndNamed,t),t}parseExport(e,t){if(this.match(83)){const t=e;this.next();let i=null;return this.isContextual(130)&&this.isPotentialImportPhase(!1)?i=this.parseMaybeImportPhase(t,!1):t.importKind="value",this.tsParseImportEqualsDeclaration(t,i,!0)}if(this.eat(29)){const t=e;return t.expression=super.parseExpression(),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(t,"TSExportAssignment")}if(this.eatContextual(93)){const t=e;return this.expectContextual(128),t.id=this.parseIdentifier(),this.semicolon(),this.finishNode(t,"TSNamespaceExportDeclaration")}return super.parseExport(e,t)}isAbstractClass(){return this.isContextual(124)&&this.isLookaheadContextual("class")}parseExportDefaultExpression(){if(this.isAbstractClass()){const e=this.startNode();return this.next(),e.abstract=!0,this.parseClass(e,!0,!0)}if(this.match(129)){const e=this.tsParseInterfaceDeclaration(this.startNode());if(e)return e}return super.parseExportDefaultExpression()}parseVarStatement(e,t,i=!1){const{isAmbientContext:r}=this.state,n=super.parseVarStatement(e,t,i||r);if(!r)return n;if(!e.declare&&("using"===t||"await using"===t))return this.raiseOverwrite(gt.UsingDeclarationInAmbientContext,e,t),n;for(const{id:e,init:i}of n.declarations)i&&("var"===t||"let"===t||e.typeAnnotation?this.raise(gt.InitializerNotAllowedInAmbientContext,i):Et(i,this.hasPlugin("estree"))||this.raise(gt.ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference,i));return n}parseStatementContent(e,t){if(this.match(75)&&this.isLookaheadContextual("enum")){const e=this.startNode();return this.expect(75),this.tsParseEnumDeclaration(e,{const:!0})}if(this.isContextual(126))return this.tsParseEnumDeclaration(this.startNode());if(this.isContextual(129)){const e=this.tsParseInterfaceDeclaration(this.startNode());if(e)return e}return super.parseStatementContent(e,t)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}tsHasSomeModifiers(e,t){return t.some((t=>bt(t)?e.accessibility===t:!!e[t]))}tsIsStartOfStaticBlocks(){return this.isContextual(106)&&123===this.lookaheadCharCode()}parseClassMember(e,t,i){const r=["declare","private","public","protected","override","abstract","readonly","static"];this.tsParseModifiers({allowedModifiers:r,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:gt.InvalidModifierOnTypeParameterPositions},t);const n=()=>{this.tsIsStartOfStaticBlocks()?(this.next(),this.next(),this.tsHasSomeModifiers(t,r)&&this.raise(gt.StaticBlockCannotHaveModifier,this.state.curPosition()),super.parseClassStaticBlock(e,t)):this.parseClassMemberWithIsStatic(e,t,i,!!t.static)};t.declare?this.tsInAmbientContext(n):n()}parseClassMemberWithIsStatic(e,t,i,r){const n=this.tsTryParseIndexSignature(t);if(n)return e.body.push(n),t.abstract&&this.raise(gt.IndexSignatureHasAbstract,t),t.accessibility&&this.raise(gt.IndexSignatureHasAccessibility,t,{modifier:t.accessibility}),t.declare&&this.raise(gt.IndexSignatureHasDeclare,t),void(t.override&&this.raise(gt.IndexSignatureHasOverride,t));!this.state.inAbstractClass&&t.abstract&&this.raise(gt.NonAbstractClassHasAbstractMethod,t),t.override&&(i.hadSuperClass||this.raise(gt.OverrideNotInSubClass,t)),super.parseClassMemberWithIsStatic(e,t,i,r)}parsePostMemberNameModifiers(e){this.eat(17)&&(e.optional=!0),e.readonly&&this.match(10)&&this.raise(gt.ClassMethodHasReadonly,e),e.declare&&this.match(10)&&this.raise(gt.ClassMethodHasDeclare,e)}parseExpressionStatement(e,t,i){return("Identifier"===t.type?this.tsParseExpressionStatement(e,t,i):void 0)||super.parseExpressionStatement(e,t,i)}shouldParseExportDeclaration(){return!!this.tsIsDeclarationStart()||super.shouldParseExportDeclaration()}parseConditional(e,t,i){if(!this.match(17))return e;if(this.state.maybeInArrowParameters){const t=this.lookaheadCharCode();if(44===t||61===t||58===t||41===t)return this.setOptionalParametersError(i),e}return super.parseConditional(e,t,i)}parseParenItem(e,t){const i=super.parseParenItem(e,t);if(this.eat(17)&&(i.optional=!0,this.resetEndLocation(e)),this.match(14)){const 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)));const t=this.state.startLoc,i=this.eatContextual(125);if(i&&(this.isContextual(125)||!this.shouldParseExportDeclaration()))throw this.raise(gt.ExpectedAmbientAfterExportDeclare,this.state.startLoc);const r=$(this.state.type)&&this.tsTryParseExportDeclaration()||super.parseExportDeclaration(e);return r?(("TSInterfaceDeclaration"===r.type||"TSTypeAliasDeclaration"===r.type||i)&&(e.exportKind="type"),i&&"TSImportEqualsDeclaration"!==r.type&&(this.resetStartLocation(r,t),r.declare=!0),r):null}parseClassId(e,t,i,r){if((!t||i)&&this.isContextual(113))return;super.parseClassId(e,t,i,e.declare?1024:8331);const 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));const 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(gt.DeclareClassFieldHasInitializer,this.state.startLoc),e.abstract&&this.match(29)){const{key:t}=e;this.raise(gt.AbstractPropertyHasInitializer,this.state.startLoc,{propertyName:"Identifier"!==t.type||e.computed?`[${this.input.slice(this.offsetToSourcePos(t.start),this.offsetToSourcePos(t.end))}]`:t.name})}return super.parseClassProperty(e)}parseClassPrivateProperty(e){return e.abstract&&this.raise(gt.PrivateElementHasAbstract,e),e.accessibility&&this.raise(gt.PrivateElementHasAccessibility,e,{modifier:e.accessibility}),this.parseClassPropertyAnnotation(e),super.parseClassPrivateProperty(e)}parseClassAccessorProperty(e){return this.parseClassPropertyAnnotation(e),e.optional&&this.raise(gt.AccessorCannotBeOptional,e),super.parseClassAccessorProperty(e)}pushClassMethod(e,t,i,r,n,s){const a=this.tsTryParseTypeParameters(this.tsParseConstModifier);a&&n&&this.raise(gt.ConstructorHasTypeParameters,a);const{declare:o=!1,kind:l}=t;!o||"get"!==l&&"set"!==l||this.raise(gt.DeclareAccessor,t,{kind:l}),a&&(t.typeParameters=a),super.pushClassMethod(e,t,i,r,n,s)}pushClassPrivateMethod(e,t,i,r){const n=this.tsTryParseTypeParameters(this.tsParseConstModifier);n&&(t.typeParameters=n),super.pushClassPrivateMethod(e,t,i,r)}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,i,r,n,s,a){const o=this.tsTryParseTypeParameters(this.tsParseConstModifier);return o&&(e.typeParameters=o),super.parseObjPropValue(e,t,i,r,n,s,a)}parseFunctionParams(e,t){const i=this.tsTryParseTypeParameters(this.tsParseConstModifier);i&&(e.typeParameters=i),super.parseFunctionParams(e,t)}parseVarId(e,t){super.parseVarId(e,t),"Identifier"===e.id.type&&!this.hasPrecedingLineBreak()&&this.eat(35)&&(e.definite=!0);const i=this.tsTryParseTypeAnnotation();i&&(e.id.typeAnnotation=i,this.resetEndLocation(e.id))}parseAsyncArrowFromCallExpression(e,t){return this.match(14)&&(e.returnType=this.tsParseTypeAnnotation()),super.parseAsyncArrowFromCallExpression(e,t)}parseMaybeAssign(e,t){var i,r,n,s,a;let 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),!l.error)return l.node;const{context:i}=this.state,r=i[i.length-1];r!==v.j_oTag&&r!==v.j_expr||i.pop()}if(!(null!=(i=l)&&i.error||this.match(47)))return super.parseMaybeAssign(e,t);o&&o!==this.state||(o=this.state.clone());const u=this.tryParse((i=>{var r,n;c=this.tsParseTypeParameters(this.tsParseConstModifier);const s=super.parseMaybeAssign(e,t);return("ArrowFunctionExpression"!==s.type||null!=(r=s.extra)&&r.parenthesized)&&i(),0!==(null==(n=c)?void 0:n.params.length)&&this.resetStartLocationFromNode(s,c),s.typeParameters=c,s}),o);if(!u.error&&!u.aborted)return c&&this.reportReservedArrowTypeParam(c),u.node;if(!l&&(Tt(!this.hasPlugin("jsx")),p=this.tryParse((()=>super.parseMaybeAssign(e,t)),o),!p.error))return p.node;if(null!=(r=l)&&r.node)return this.state=l.failState,l.node;if(u.node)return this.state=u.failState,c&&this.reportReservedArrowTypeParam(c),u.node;if(null!=(n=p)&&n.node)return this.state=p.failState,p.node;throw(null==(s=l)?void 0:s.error)||u.error||(null==(a=p)?void 0:a.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(gt.ReservedArrowTypeParam,e)}parseMaybeUnary(e,t){return!this.hasPlugin("jsx")&&this.match(47)?this.tsParseTypeAssertion():super.parseMaybeUnary(e,t)}parseArrow(e){if(this.match(14)){const t=this.tryParse((e=>{const 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);const 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,t=!1){switch(e.type){case"ParenthesizedExpression":this.toAssignableParenthesizedExpression(e,t);break;case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":t?this.expressionScope.recordArrowParameterBindingError(gt.UnexpectedTypeCastInParameter,e):this.raise(gt.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,i){switch(e){case"TSTypeCastExpression":return!0;case"TSParameterProperty":return"parameter";case"TSNonNullExpression":return"expression";case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":return(64!==i||!t)&&["expression",!0];default:return super.isValidLVal(e,t,i)}}parseBindingAtom(){return 78===this.state.type?this.parseIdentifier(!0):super.parseBindingAtom()}parseMaybeDecoratorArguments(e,t){if(this.match(47)||this.match(51)){const i=this.tsParseTypeArgumentsInExpression();if(this.match(10)){const r=super.parseMaybeDecoratorArguments(e,t);return r.typeParameters=i,r}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){const i=super.parseMaybeDefault(e,t);return"AssignmentPattern"===i.type&&i.typeAnnotation&&i.right.start<i.typeAnnotation.start&&this.raise(gt.TypeAnnotationAfterAssign,i.typeAnnotation),i}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(){const{type:e}=this.state;47===e?(this.state.pos-=1,this.readToken_lt()):48===e&&(this.state.pos-=1,this.readToken_gt())}reScan_lt(){const{type:e}=this.state;return 51===e?(this.state.pos-=2,this.finishOp(47,1),47):e}toAssignableListItem(e,t,i){const r=e[t];"TSTypeCastExpression"===r.type&&(e[t]=this.typeCastToParameter(r)),super.toAssignableListItem(e,t,i)}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)){const t=this.tsTryParseAndCatch((()=>this.tsParseTypeArgumentsInExpression()));t&&(e.typeParameters=t)}return super.jsxParseOpeningElementAfterName(e)}getGetterSetterExpectedParamCount(e){const t=super.getGetterSetterExpectedParamCount(e),i=this.getObjectOrClassMethodParams(e)[0];return i&&this.isThisParam(i)?t+1:t}parseCatchClauseParam(){const e=super.parseCatchClauseParam(),t=this.tsTryParseTypeAnnotation();return t&&(e.typeAnnotation=t,this.resetEndLocation(e)),e}tsInAmbientContext(e){const{isAmbientContext:t,strict:i}=this.state;this.state.isAmbientContext=!0,this.state.strict=!1;try{return e()}finally{this.state.isAmbientContext=t,this.state.strict=i}}parseClass(e,t,i){const r=this.state.inAbstractClass;this.state.inAbstractClass=!!e.abstract;try{return super.parseClass(e,t,i)}finally{this.state.inAbstractClass=r}}tsParseAbstractDeclaration(e,t){if(this.match(80))return e.abstract=!0,this.maybeTakeDecorators(t,this.parseClass(e,!0,!1));if(this.isContextual(129)){if(!this.hasFollowingLineBreak())return e.abstract=!0,this.raise(gt.NonClassMethodPropertyHasAbstractModifier,e),this.tsParseInterfaceDeclaration(e)}else this.unexpected(null,80)}parseMethod(e,t,i,r,n,s,a){const o=super.parseMethod(e,t,i,r,n,s,a);if((o.abstract||"TSAbstractMethodDefinition"===o.type)&&(this.hasPlugin("estree")?o.value:o).body){const{key:e}=o;this.raise(gt.AbstractMethodHasImplementation,o,{methodName:"Identifier"!==e.type||o.computed?`[${this.input.slice(this.offsetToSourcePos(e.start),this.offsetToSourcePos(e.end))}]`:e.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,i,r){return!t&&r?(this.parseTypeOnlyImportExportSpecifier(e,!1,i),this.finishNode(e,"ExportSpecifier")):(e.exportKind="value",super.parseExportSpecifier(e,t,i,r))}parseImportSpecifier(e,t,i,r,n){return!t&&r?(this.parseTypeOnlyImportExportSpecifier(e,!0,i),this.finishNode(e,"ImportSpecifier")):(e.importKind="value",super.parseImportSpecifier(e,t,i,r,i?4098:4096))}parseTypeOnlyImportExportSpecifier(e,t,i){const r=t?"imported":"local",n=t?"local":"exported";let s,a=e[r],o=!1,l=!0;const p=a.loc.start;if(this.isContextual(93)){const e=this.parseIdentifier();if(this.isContextual(93)){const i=this.parseIdentifier();q(this.state.type)?(o=!0,a=e,s=t?this.parseIdentifier():this.parseModuleExportName(),l=!1):(s=i,l=!1)}else q(this.state.type)?(l=!1,s=t?this.parseIdentifier():this.parseModuleExportName()):(o=!0,a=e)}else q(this.state.type)&&(o=!0,t?(a=this.parseIdentifier(!0),this.isContextual(93)||this.checkReservedWord(a.name,a.loc.start,!0,!0)):a=this.parseModuleExportName());o&&i&&this.raise(t?gt.TypeModifierIsUsedInTypeImports:gt.TypeModifierIsUsedInTypeExports,p),e[r]=a,e[n]=s,e[t?"importKind":"exportKind"]=o?"type":"value",l&&this.eatContextual(93)&&(e[n]=t?this.parseIdentifier():this.parseModuleExportName()),e[n]||(e[n]=this.cloneIdentifier(e[r])),t&&this.checkIdentifier(e[n],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"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))}}},v8intrinsic:e=>class extends e{parseV8Intrinsic(){if(this.match(54)){const e=this.state.startLoc,t=this.startNode();if(this.next(),$(this.state.type)){const e=this.parseIdentifierName(),i=this.createIdentifier(t,e);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)){const 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){let i=e;return i.expectedNode&&i.type||(i=this.finishNode(i,"Placeholder")),i.expectedNode=t,i}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,i,r){void 0!==e&&super.checkReservedWord(e,t,i,r)}cloneIdentifier(e){const 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,i){return"Placeholder"===e||super.isValidLVal(e,t,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;const i=this.nextTokenStart();return 37===this.input.charCodeAt(i)&&37===this.input.charCodeAt(i+1)}verifyBreakContinue(e,t){e.label&&"Placeholder"===e.label.type||super.verifyBreakContinue(e,t)}parseExpressionStatement(e,t){var i;if("Placeholder"!==t.type||null!=(i=t.extra)&&i.parenthesized)return super.parseExpressionStatement(e,t);if(this.match(14)){const i=e;return i.label=this.finishPlaceholder(t,"Identifier"),this.next(),i.body=super.parseStatementOrSloppyAnnexBFunctionDeclaration(),this.finishNode(i,"LabeledStatement")}this.semicolon();const r=e;return r.name=t.name,this.finishPlaceholder(r,"Statement")}parseBlock(e,t,i){return this.parsePlaceholder("BlockStatement")||super.parseBlock(e,t,i)}parseFunctionId(e){return this.parsePlaceholder("Identifier")||super.parseFunctionId(e)}parseClass(e,t,i){const r=t?"ClassDeclaration":"ClassExpression";this.next();const n=this.state.strict,s=this.parsePlaceholder("Identifier");if(s){if(!(this.match(81)||this.match(133)||this.match(5))){if(i||!t)return e.id=null,e.body=this.finishPlaceholder(s,"ClassBody"),this.finishNode(e,r);throw this.raise(wt.ClassNameIsRequired,this.state.startLoc)}e.id=s}else this.parseClassId(e,t,i);return super.parseClassSuper(e),e.body=this.parsePlaceholder("ClassBody")||super.parseClassBody(!!e.superClass,n),this.finishNode(e,r)}parseExport(e,t){const i=this.parsePlaceholder("Identifier");if(!i)return super.parseExport(e,t);const r=e;if(!this.isContextual(98)&&!this.match(12))return r.specifiers=[],r.source=null,r.declaration=this.finishPlaceholder(i,"Declaration"),this.finishNode(r,"ExportNamedDeclaration");this.expectPlugin("exportDefaultFrom");const n=this.startNode();return n.exported=i,r.specifiers=[this.finishNode(n,"ExportDefaultSpecifier")],super.parseExport(r,t)}isExportDefaultSpecifier(){if(this.match(65)){const 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 i;return!(null==(i=e.specifiers)||!i.length)||super.maybeParseExportDefaultSpecifier(e,t)}checkExport(e){const{specifiers:t}=e;null!=t&&t.length&&(e.specifiers=t.filter((e=>"Placeholder"===e.exported.type))),super.checkExport(e),e.specifiers=t}parseImport(e){const 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");const i=this.startNodeAtNode(t);return i.local=t,e.specifiers.push(this.finishNode(i,"ImportDefaultSpecifier")),this.eat(12)&&(this.maybeParseStarImportSpecifier(e)||this.parseNamedImportSpecifiers(e)),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(wt.UnexpectedSpace,this.state.lastTokEndLoc)}}},Nt=Object.keys(Ct);class Ot extends yt{checkProto(e,t,i,r){if("SpreadElement"===e.type||this.isObjectMethod(e)||e.computed||e.shorthand)return i;const n=e.key;return"__proto__"===("Identifier"===n.type?n.name:n.value)?t?(this.raise(g.RecordNoProto,n),!0):(i&&(r?null===r.doubleProtoLoc&&(r.doubleProtoLoc=n.loc.start):this.raise(g.DuplicateProto,n)),!0):i}shouldExitDescending(e,t){return"ArrowFunctionExpression"===e.type&&this.offsetToSourcePos(e.start)===t}getExpression(){if(this.enterInitialScopes(),this.nextToken(),this.match(140))throw this.raise(g.ParseExpressionEmptyInput,this.state.startLoc);const e=this.parseExpression();if(!this.match(140))throw this.raise(g.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){const t=this.state.startLoc,i=this.parseMaybeAssign(e);if(this.match(12)){const r=this.startNodeAt(t);for(r.expressions=[i];this.eat(12);)r.expressions.push(this.parseMaybeAssign(e));return this.toReferencedList(r.expressions),this.finishNode(r,"SequenceExpression")}return i}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){const i=this.state.startLoc,r=this.isContextual(108);if(r&&this.prodParam.hasYield){this.next();let e=this.parseYield(i);return t&&(e=t.call(this,e,i)),e}let n;e?n=!1:(e=new ut,n=!0);const{type:s}=this.state;(10===s||$(s))&&(this.state.potentialArrowAt=this.state.start);let a=this.parseMaybeConditional(e);if(t&&(a=t.call(this,a,i)),(o=this.state.type)>=29&&o<=33){const t=this.startNodeAt(i),r=this.state.value;if(t.operator=r,this.match(29)){this.toAssignable(a,!0),t.left=a;const r=i.index;null!=e.doubleProtoLoc&&e.doubleProtoLoc.index>=r&&(e.doubleProtoLoc=null),null!=e.shorthandAssignLoc&&e.shorthandAssignLoc.index>=r&&(e.shorthandAssignLoc=null),null!=e.privateKeyLoc&&e.privateKeyLoc.index>=r&&(this.checkDestructuringPrivate(e),e.privateKeyLoc=null),null!=e.voidPatternLoc&&e.voidPatternLoc.index>=r&&(e.voidPatternLoc=null)}else t.left=a;return this.next(),t.right=this.parseMaybeAssign(),this.checkLVal(a,this.finishNode(t,"AssignmentExpression")),t}var o;if(n&&this.checkExpressionErrors(e,!0),r){const{type:e}=this.state;if((this.hasPlugin("v8intrinsic")?J(e):J(e)&&!this.match(54))&&!this.isAmbiguousPrefixOrIdentifier())return this.raiseOverwrite(g.YieldNotInGeneratorFunction,i),this.parseYield(i)}return a}parseMaybeConditional(e){const t=this.state.startLoc,i=this.state.potentialArrowAt,r=this.parseExprOps(e);return this.shouldExitDescending(r,i)?r:this.parseConditional(r,t,e)}parseConditional(e,t,i){if(this.eat(17)){const 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){const t=this.state.startLoc,i=this.state.potentialArrowAt,r=this.parseMaybeUnaryOrPrivate(e);return this.shouldExitDescending(r,i)?r:this.parseExprOp(r,t,-1)}parseExprOp(e,t,i){if(this.isPrivateName(e)){const t=this.getPrivateNameSV(e);(i>=H(58)||!this.prodParam.hasIn||!this.match(58))&&this.raise(g.PrivateInExpectedIn,e,{identifierName:t}),this.classScope.usePrivateName(t,e.loc.start)}const r=this.state.type;if((n=r)>=39&&n<=59&&(this.prodParam.hasIn||!this.match(58))){let n=H(r);if(n>i){if(39===r){if(this.expectPlugin("pipelineOperator"),this.state.inFSharpPipelineDirectBody)return e;this.checkPipelineAtInfixOperator(e,t)}const s=this.startNodeAt(t);s.left=e,s.operator=this.state.value;const a=41===r||42===r,o=40===r;if(o&&(n=H(42)),this.next(),39===r&&this.hasPlugin(["pipelineOperator",{proposal:"minimal"}])&&96===this.state.type&&this.prodParam.hasAwait)throw this.raise(g.UnexpectedAwaitAfterPipelineBody,this.state.startLoc);s.right=this.parseExprOpRightExpr(r,n);const l=this.finishNode(s,a||o?"LogicalExpression":"BinaryExpression"),p=this.state.type;if(o&&(41===p||42===p)||a&&40===p)throw this.raise(g.MixingCoalesceWithLogical,this.state.startLoc);return this.parseExprOp(l,t,i)}}var n;return e}parseExprOpRightExpr(e,t){const i=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(g.PipeBodyIsTighter,this.state.startLoc);return this.parseSmartPipelineBodyInStyle(this.parseExprOpBaseRightExpr(e,t),i)}))}return this.parseExprOpBaseRightExpr(e,t)}parseExprOpBaseRightExpr(e,t){const i=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnaryOrPrivate(),i,57===e?t-1:t)}parseHackPipeBody(){var e;const{startLoc:t}=this.state,i=this.parseMaybeAssign();return!h.has(i.type)||null!=(e=i.extra)&&e.parenthesized||this.raise(g.PipeUnparenthesizedBody,t,{type:i.type}),this.topicReferenceWasUsedInCurrentContext()||this.raise(g.PipeTopicUnused,t),i}checkExponentialAfterUnary(e){this.match(57)&&this.raise(g.UnexpectedTokenUnaryExponentiation,e.argument)}parseMaybeUnary(e,t){const i=this.state.startLoc,r=this.isContextual(96);if(r&&this.recordAwaitIfAllowed()){this.next();const e=this.parseAwait(i);return t||this.checkExponentialAfterUnary(e),e}const n=this.match(34),s=this.startNode();if(a=this.state.type,R[a]){s.operator=this.state.value,s.prefix=!0,this.match(72)&&this.expectPlugin("throwExpressions");const i=this.match(89);if(this.next(),s.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(e,!0),this.state.strict&&i){const e=s.argument;"Identifier"===e.type?this.raise(g.StrictDelete,s):this.hasPropertyAsPrivateName(e)&&this.raise(g.DeletePrivateField,s)}if(!n)return t||this.checkExponentialAfterUnary(s),this.finishNode(s,"UnaryExpression")}var a;const o=this.parseUpdate(s,n,e);if(r){const{type:e}=this.state;if((this.hasPlugin("v8intrinsic")?J(e):J(e)&&!this.match(54))&&!this.isAmbiguousPrefixOrIdentifier())return this.raiseOverwrite(g.AwaitNotInAsyncContext,i),this.parseAwait(i)}return o}parseUpdate(e,t,i){if(t){const t=e;return this.checkLVal(t.argument,this.finishNode(t,"UpdateExpression")),e}const r=this.state.startLoc;let n=this.parseExprSubscripts(i);if(this.checkExpressionErrors(i,!1))return n;for(;34===this.state.type&&!this.canInsertSemicolon();){const e=this.startNodeAt(r);e.operator=this.state.value,e.prefix=!1,e.argument=n,this.next(),this.checkLVal(n,n=this.finishNode(e,"UpdateExpression"))}return n}parseExprSubscripts(e){const t=this.state.startLoc,i=this.state.potentialArrowAt,r=this.parseExprAtom(e);return this.shouldExitDescending(r,i)?r:this.parseSubscripts(r,t)}parseSubscripts(e,t,i){const r={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(e),stop:!1};do{e=this.parseSubscript(e,t,i,r),r.maybeAsyncArrow=!1}while(!r.stop);return e}parseSubscript(e,t,i,r){const{type:n}=this.state;if(!i&&15===n)return this.parseBind(e,t,i,r);if(G(n))return this.parseTaggedTemplateExpression(e,t,r);let s=!1;if(18===n){if(i&&(this.raise(g.OptionalChainingNoNew,this.state.startLoc),40===this.lookaheadCharCode()))return this.stopParseSubscript(e,r);r.optionalChainMember=s=!0,this.next()}if(!i&&this.match(10))return this.parseCoverCallAndAsyncArrowHead(e,t,r,s);{const i=this.eat(0);return i||s||this.eat(16)?this.parseMember(e,t,r,i,s):this.stopParseSubscript(e,r)}}stopParseSubscript(e,t){return t.stop=!0,e}parseMember(e,t,i,r,n){const s=this.startNodeAt(t);return s.object=e,s.computed=r,r?(s.property=this.parseExpression(),this.expect(3)):this.match(139)?("Super"===e.type&&this.raise(g.SuperPrivateField,t),this.classScope.usePrivateName(this.state.value,this.state.startLoc),s.property=this.parsePrivateName()):s.property=this.parseIdentifier(!0),i.optionalChainMember?(s.optional=n,this.finishNode(s,"OptionalMemberExpression")):this.finishNode(s,"MemberExpression")}parseBind(e,t,i,r){const n=this.startNodeAt(t);return n.object=e,this.next(),n.callee=this.parseNoCallExpr(),r.stop=!0,this.parseSubscripts(this.finishNode(n,"BindExpression"),t,i)}parseCoverCallAndAsyncArrowHead(e,t,i,r){const n=this.state.maybeInArrowParameters;let s=null;this.state.maybeInArrowParameters=!0,this.next();const a=this.startNodeAt(t);a.callee=e;const{maybeAsyncArrow:o,optionalChainMember:l}=i;o&&(this.expressionScope.enter(new ot(2)),s=new ut),l&&(a.optional=r),a.arguments=r?this.parseCallExpressionArguments():this.parseCallExpressionArguments("Super"!==e.type,a,s);let p=this.finishCallExpression(a,l);return o&&this.shouldParseAsyncArrow()&&!r?(i.stop=!0,this.checkDestructuringPrivate(s),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),p=this.parseAsyncArrowFromCallExpression(this.startNodeAt(t),p)):(o&&(this.checkExpressionErrors(s,!0),this.expressionScope.exit()),this.toReferencedArguments(p)),this.state.maybeInArrowParameters=n,p}toReferencedArguments(e,t){this.toReferencedListDeep(e.arguments,t)}parseTaggedTemplateExpression(e,t,i){const r=this.startNodeAt(t);return r.tag=e,r.quasi=this.parseTemplate(!0),i.optionalChainMember&&this.raise(g.OptionalChainingNoTemplate,t),this.finishNode(r,"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(g.ImportCallArity,e);else for(const t of e.arguments)"SpreadElement"===t.type&&this.raise(g.ImportCallSpreadArgument,t);return this.finishNode(e,t?"OptionalCallExpression":"CallExpression")}parseCallExpressionArguments(e,t,i){const r=[];let n=!0;const s=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}r.push(this.parseExprListItem(11,!1,i,e))}return this.state.inFSharpPipelineDirectBody=s,r}shouldParseAsyncArrow(){return this.match(19)&&!this.canInsertSemicolon()}parseAsyncArrowFromCallExpression(e,t){var i;return this.resetPreviousNodeTrailingComments(t),this.expect(19),this.parseArrowExpression(e,t.arguments,!0,null==(i=t.extra)?void 0:i.trailingCommaLoc),t.innerComments&&Ve(e,t.innerComments),t.callee.trailingComments&&Ve(e,t.callee.trailingComments),e}parseNoCallExpr(){const e=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),e,!0)}parseExprAtom(e){let t,i=null;const{type:r}=this.state;switch(r){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(g.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:{const e=this.state.potentialArrowAt===this.state.start;return this.parseParenAndDistinguishExpression(e)}case 0:return this.parseArrayLike(3,!0,!1,e);case 5:return this.parseObjectLike(8,!1,!1,e);case 68:return this.parseFunctionOrFunctionSent();case 26:i=this.parseDecorators();case 80:return this.parseClass(this.maybeTakeDecorators(i,this.startNode()),!1);case 77:return this.parseNewOrNewTarget();case 25:case 24:return this.parseTemplate(!1);case 15:{t=this.startNode(),this.next(),t.object=null;const e=t.callee=this.parseNoCallExpr();if("MemberExpression"===e.type)return this.finishNode(t,"BindExpression");throw this.raise(g.UnsupportedBind,e)}case 139:return this.raise(g.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:{const e=this.getPluginOption("pipelineOperator","proposal");if(e)return this.parseTopicReference(e);this.unexpected();break}case 47:{const e=this.input.codePointAt(this.nextTokenStart());ae(e)||62===e?this.expectOnePlugin(["jsx","flow","typescript"]):this.unexpected();break}default:if(137===r)return this.parseDecimalLiteral(this.state.value);if(2===r||1===r)return this.parseArrayLike(2===this.state.type?4:3,!1,!0);if(6===r||7===r)return this.parseObjectLike(6===this.state.type?9:8,!1,!0);if($(r)){if(this.isContextual(127)&&123===this.lookaheadInLineCharCode())return this.parseModuleExpression();const e=this.state.potentialArrowAt===this.state.start,t=this.state.containsEsc,i=this.parseIdentifier();if(!t&&"async"===i.name&&!this.canInsertSemicolon()){const{type:e}=this.state;if(68===e)return this.resetPreviousNodeTrailingComments(i),this.next(),this.parseAsyncFunctionExpression(this.startNodeAtNode(i));if($(e))return 61===this.lookaheadCharCode()?this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(i)):i;if(90===e)return this.resetPreviousNodeTrailingComments(i),this.parseDo(this.startNodeAtNode(i),!0)}return e&&this.match(19)&&!this.canInsertSemicolon()?(this.next(),this.parseArrowExpression(this.startNodeAtNode(i),[i],!1)):i}this.unexpected()}}parseTopicReferenceThenEqualsSign(e,t){const 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=s(this.state.endLoc,-1),this.parseTopicReference(i);this.unexpected()}parseTopicReference(e){const t=this.startNode(),i=this.state.startLoc,r=this.state.type;return this.next(),this.finishTopicReference(t,i,e,r)}finishTopicReference(e,t,i,r){if(this.testTopicReferenceConfiguration(i,t,r))return"hack"===i?(this.topicReferenceIsAllowedInCurrentContext()||this.raise(g.PipeTopicUnbound,t),this.registerTopicReference(),this.finishNode(e,"TopicReference")):(this.topicReferenceIsAllowedInCurrentContext()||this.raise(g.PrimaryTopicNotAllowed,t),this.registerTopicReference(),this.finishNode(e,"PipelinePrimaryTopicReference"));throw this.raise(g.PipeTopicUnconfiguredToken,t,{token:z(r)})}testTopicReferenceConfiguration(e,t,i){switch(e){case"hack":return this.hasPlugin(["pipelineOperator",{topicToken:z(i)}]);case"smart":return 27===i;default:throw this.raise(g.PipeTopicRequiresHackPipes,t)}}parseAsyncArrowUnaryFunction(e){this.prodParam.enter(je(!0,this.prodParam.hasYield));const t=[this.parseIdentifier()];return this.prodParam.exit(),this.hasPrecedingLineBreak()&&this.raise(g.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();const i=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=i,this.finishNode(e,"DoExpression")}parseSuper(){const e=this.startNode();return this.next(),!this.match(10)||this.scope.allowDirectSuper||16&this.optionFlags?this.scope.allowSuper||16&this.optionFlags||this.raise(g.UnexpectedSuper,e):this.raise(g.SuperNotAllowed,e),this.match(10)||this.match(0)||this.match(16)||this.raise(g.UnsupportedSuper,e),this.finishNode(e,"Super")}parsePrivateName(){const e=this.startNode(),t=this.startNodeAt(s(this.state.startLoc,1)),i=this.state.value;return this.next(),e.id=this.createIdentifier(t,i),this.finishNode(e,"PrivateName")}parseFunctionOrFunctionSent(){const e=this.startNode();if(this.next(),this.prodParam.hasYield&&this.match(16)){const 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,i){e.meta=t;const r=this.state.containsEsc;return e.property=this.parseIdentifier(!0),(e.property.name!==i||r)&&this.raise(g.UnsupportedMetaProperty,e.property,{target:t.name,onlyValidPropertyName:i}),this.finishNode(e,"MetaProperty")}parseImportMetaPropertyOrPhaseCall(e){if(this.next(),this.isContextual(105)||this.isContextual(97)){const t=this.isContextual(105);return this.expectPlugin(t?"sourcePhaseImports":"deferredImportEvaluation"),this.next(),e.phase=t?"source":"defer",this.parseImportCall(e)}{const t=this.createIdentifierAt(this.startNodeAtNode(e),"import",this.state.lastTokStartLoc);return this.isContextual(101)&&(this.inModule||this.raise(g.ImportMetaOutsideModule,t),this.sawUnambiguousESM=!0),this.parseMetaProperty(e,t,"meta")}}parseLiteralAtNode(e,t,i){return this.addExtra(i,"rawValue",e),this.addExtra(i,"raw",this.input.slice(this.offsetToSourcePos(i.start),this.state.end)),i.value=e,this.next(),this.finishNode(i,t)}parseLiteral(e,t){const i=this.startNode();return this.parseLiteralAtNode(e,t,i)}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){const 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){const t=this.startNode();return t.value=e,this.next(),this.finishNode(t,"BooleanLiteral")}parseNullLiteral(){const e=this.startNode();return this.next(),this.finishNode(e,"NullLiteral")}parseParenAndDistinguishExpression(e){const t=this.state.startLoc;let i;this.next(),this.expressionScope.enter(new ot(1));const r=this.state.maybeInArrowParameters,n=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=!0,this.state.inFSharpPipelineDirectBody=!1;const s=this.state.startLoc,a=[],o=new ut;let l,p,c=!0;for(;!this.match(11);){if(c)c=!1;else if(this.expect(12,null===o.optionalParametersLoc?null:o.optionalParametersLoc),this.match(11)){p=this.state.startLoc;break}if(this.match(21)){const e=this.state.startLoc;if(l=this.state.startLoc,a.push(this.parseParenItem(this.parseRestBinding(),e)),!this.checkCommaAfterRest(41))break}else a.push(this.parseMaybeAssignAllowInOrVoidPattern(11,o,this.parseParenItem))}const u=this.state.lastTokEndLoc;this.expect(11),this.state.maybeInArrowParameters=r,this.state.inFSharpPipelineDirectBody=n;let h=this.startNodeAt(t);return e&&this.shouldParseArrow(a)&&(h=this.parseArrow(h))?(this.checkDestructuringPrivate(o),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),this.parseArrowExpression(h,a,!1),h):(this.expressionScope.exit(),a.length||this.unexpected(this.state.lastTokStartLoc),p&&this.unexpected(p),l&&this.unexpected(l),this.checkExpressionErrors(o,!0),this.toReferencedListDeep(a,!0),a.length>1?(i=this.startNodeAt(s),i.expressions=a,this.finishNode(i,"SequenceExpression"),this.resetEndLocation(i,u)):i=a[0],this.wrapParenthesis(t,i))}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;const i=this.startNodeAt(e);return i.expression=t,this.finishNode(i,"ParenthesizedExpression")}shouldParseArrow(e){return!this.canInsertSemicolon()}parseArrow(e){if(this.eat(19))return e}parseParenItem(e,t){return e}parseNewOrNewTarget(){const e=this.startNode();if(this.next(),this.match(16)){const t=this.createIdentifier(this.startNodeAtNode(e),"new");this.next();const i=this.parseMetaProperty(e,t,"target");return this.scope.allowNewTarget||this.raise(g.UnexpectedNewTarget,i),i}return this.parseNew(e)}parseNew(e){if(this.parseNewCallee(e),this.eat(10)){const t=this.parseExprList(11);this.toReferencedList(t),e.arguments=t}else e.arguments=[];return this.finishNode(e,"NewExpression")}parseNewCallee(e){const t=this.match(83),i=this.parseNoCallExpr();e.callee=i,!t||"Import"!==i.type&&"ImportExpression"!==i.type||this.raise(g.ImportCallNotNewExpression,i)}parseTemplateElement(e){const{start:t,startLoc:i,end:r,value:n}=this.state,a=t+1,o=this.startNodeAt(s(i,1));null===n&&(e||this.raise(g.InvalidEscapeSequenceTemplate,s(this.state.firstInvalidTemplateEscapePos,1)));const l=this.match(24),p=l?-1:-2,c=r+p;o.value={raw:this.input.slice(a,c).replace(/\r\n?/g,"\n"),cooked:null===n?null:n.slice(1,p)},o.tail=l,this.next();const u=this.finishNode(o,"TemplateElement");return this.resetEndLocation(u,s(this.state.lastTokEndLoc,p)),u}parseTemplate(e){const t=this.startNode();let i=this.parseTemplateElement(e);const r=[i],n=[];for(;!i.tail;)n.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),r.push(i=this.parseTemplateElement(e));return t.expressions=n,t.quasis=r,this.finishNode(t,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(e,t,i,r){i&&this.expectPlugin("recordAndTuple");const n=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let s=!1,a=!0;const o=this.startNode();for(o.properties=[],this.next();!this.match(e);){if(a)a=!1;else if(this.expect(12),this.match(e)){this.addTrailingCommaExtraToNode(o);break}let n;t?n=this.parseBindingProperty():(n=this.parsePropertyDefinition(r),s=this.checkProto(n,i,s,r)),i&&!this.isObjectProperty(n)&&"SpreadElement"!==n.type&&this.raise(g.InvalidRecordProperty,n),n.shorthand&&this.addExtra(n,"shorthand",!0),o.properties.push(n)}this.next(),this.state.inFSharpPipelineDirectBody=n;let l="ObjectExpression";return t?l="ObjectPattern":i&&(l="RecordExpression"),this.finishNode(o,l)}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){let t=[];if(this.match(26))for(this.hasPlugin("decorators")&&this.raise(g.UnsupportedPropertyDecorator,this.state.startLoc);this.match(26);)t.push(this.parseDecorator());const i=this.startNode();let r,n=!1,s=!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);let a=this.eat(55);this.parsePropertyNamePrefixOperator(i);const o=this.state.containsEsc;if(this.parsePropertyName(i,e),!a&&!o&&this.maybeAsyncOrAccessorProp(i)){const{key:e}=i,t=e.name;"async"!==t||this.hasPrecedingLineBreak()||(n=!0,this.resetPreviousNodeTrailingComments(e),a=this.eat(55),this.parsePropertyName(i)),"get"!==t&&"set"!==t||(s=!0,this.resetPreviousNodeTrailingComments(e),i.kind=t,this.match(55)&&(a=!0,this.raise(g.AccessorIsGenerator,this.state.curPosition(),{kind:t}),this.next()),this.parsePropertyName(i))}return this.parseObjPropValue(i,r,a,n,!1,s,e)}getGetterSetterExpectedParamCount(e){return"get"===e.kind?0:1}getObjectOrClassMethodParams(e){return e.params}checkGetterSetterParams(e){var t;const i=this.getGetterSetterExpectedParamCount(e),r=this.getObjectOrClassMethodParams(e);r.length!==i&&this.raise("get"===e.kind?g.BadGetterArity:g.BadSetterArity,e),"set"===e.kind&&"RestElement"===(null==(t=r[r.length-1])?void 0:t.type)&&this.raise(g.BadSetterRestParameter,e)}parseObjectMethod(e,t,i,r,n){if(n){const i=this.parseMethod(e,t,!1,!1,!1,"ObjectMethod");return this.checkGetterSetterParams(i),i}if(i||t||this.match(10))return r&&this.unexpected(),e.kind="method",e.method=!0,this.parseMethod(e,t,i,!1,!1,"ObjectMethod")}parseObjectProperty(e,t,i,r){if(e.shorthand=!1,this.eat(14))return e.value=i?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowInOrVoidPattern(8,r),this.finishObjectProperty(e);if(!e.computed&&"Identifier"===e.key.type){if(this.checkReservedWord(e.key.name,e.key.loc.start,!0,!1),i)e.value=this.parseMaybeDefault(t,this.cloneIdentifier(e.key));else if(this.match(29)){const i=this.state.startLoc;null!=r?null===r.shorthandAssignLoc&&(r.shorthandAssignLoc=i):this.raise(g.InvalidCoverInitializedName,i),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,i,r,n,s,a){const o=this.parseObjectMethod(e,i,r,n,s)||this.parseObjectProperty(e,t,n,a);return o||this.unexpected(),o}parsePropertyName(e,t){if(this.eat(0))e.computed=!0,e.key=this.parseMaybeAssignAllowIn(),this.expect(3);else{const{type:i,value:r}=this.state;let n;if(q(i))n=this.parseIdentifier(!0);else switch(i){case 135:n=this.parseNumericLiteral(r);break;case 134:n=this.parseStringLiteral(r);break;case 136:n=this.parseBigIntLiteral(r);break;case 139:{const e=this.state.startLoc;null!=t?null===t.privateKeyLoc&&(t.privateKeyLoc=e):this.raise(g.UnexpectedPrivateField,e),n=this.parsePrivateName();break}default:if(137===i){n=this.parseDecimalLiteral(r);break}this.unexpected()}e.key=n,139!==i&&(e.computed=!1)}}initFunction(e,t){e.id=null,e.generator=!1,e.async=t}parseMethod(e,t,i,r,n,s,a=!1){this.initFunction(e,i),e.generator=t,this.scope.enter(530|(a?576:0)|(n?32:0)),this.prodParam.enter(je(i,e.generator)),this.parseFunctionParams(e,r);const o=this.parseFunctionBodyAndFinish(e,s,!0);return this.prodParam.exit(),this.scope.exit(),o}parseArrayLike(e,t,i,r){i&&this.expectPlugin("recordAndTuple");const n=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;const s=this.startNode();return this.next(),s.elements=this.parseExprList(e,!i,r,s),this.state.inFSharpPipelineDirectBody=n,this.finishNode(s,i?"TupleExpression":"ArrayExpression")}parseArrowExpression(e,t,i,r){this.scope.enter(518);let n=je(i,!1);!this.match(5)&&this.prodParam.hasIn&&(n|=8),this.prodParam.enter(n),this.initFunction(e,i);const s=this.state.maybeInArrowParameters;return t&&(this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(e,t,r)),this.state.maybeInArrowParameters=!1,this.parseFunctionBody(e,!0),this.prodParam.exit(),this.scope.exit(),this.state.maybeInArrowParameters=s,this.finishNode(e,"ArrowFunctionExpression")}setArrowFunctionParameters(e,t,i){this.toAssignableList(t,i,!1),e.params=t}parseFunctionBodyAndFinish(e,t,i=!1){return this.parseFunctionBody(e,!1,i),this.finishNode(e,t)}parseFunctionBody(e,t,i=!1){const r=t&&!this.match(5);if(this.expressionScope.enter(pt()),r)e.body=this.parseMaybeAssign(),this.checkParams(e,!1,t,!1);else{const r=this.state.strict,n=this.state.labels;this.state.labels=[],this.prodParam.enter(4|this.prodParam.currentFlags()),e.body=this.parseBlock(!0,!1,(n=>{const s=!this.isSimpleParamList(e.params);n&&s&&this.raise(g.IllegalLanguageModeDirective,"method"!==e.kind&&"constructor"!==e.kind||!e.key?e:e.key.loc.end);const a=!r&&this.state.strict;this.checkParams(e,!(this.state.strict||t||i||s),t,a),this.state.strict&&e.id&&this.checkIdentifier(e.id,65,a)})),this.prodParam.exit(),this.state.labels=n}this.expressionScope.exit()}isSimpleParameter(e){return"Identifier"===e.type}isSimpleParamList(e){for(let t=0,i=e.length;t<i;t++)if(!this.isSimpleParameter(e[t]))return!1;return!0}checkParams(e,t,i,r=!0){const n=!t&&new Set,s={type:"FormalParameters"};for(const t of e.params)this.checkLVal(t,s,5,n,r)}parseExprList(e,t,i,r){const n=[];let s=!0;for(;!this.eat(e);){if(s)s=!1;else if(this.expect(12),this.match(e)){r&&this.addTrailingCommaExtraToNode(r),this.next();break}n.push(this.parseExprListItem(e,t,i))}return n}parseExprListItem(e,t,i,r){let n;if(this.match(12))t||this.raise(g.UnexpectedToken,this.state.curPosition(),{unexpected:","}),n=null;else if(this.match(21)){const e=this.state.startLoc;n=this.parseParenItem(this.parseSpread(i),e)}else if(this.match(17)){this.expectPlugin("partialApplication"),r||this.raise(g.UnexpectedArgumentPlaceholder,this.state.startLoc);const e=this.startNode();this.next(),n=this.finishNode(e,"ArgumentPlaceholder")}else n=this.parseMaybeAssignAllowInOrVoidPattern(e,i,this.parseParenItem);return n}parseIdentifier(e){const t=this.startNode(),i=this.parseIdentifierName(e);return this.createIdentifier(t,i)}createIdentifier(e,t){return e.name=t,e.loc.identifierName=t,this.finishNode(e,"Identifier")}createIdentifierAt(e,t,i){return e.name=t,e.loc.identifierName=t,this.finishNodeAt(e,"Identifier",i)}parseIdentifierName(e){let t;const{startLoc:i,type:r}=this.state;q(r)?t=this.state.value:this.unexpected();const n=r<=92;return e?n&&this.replaceToken(132):this.checkReservedWord(t,i,n,!1),this.next(),t}checkReservedWord(e,t,i,r){if(!(e.length>10)&&function(e){return me.has(e)}(e))if(i&&function(e){return le.has(e)}(e))this.raise(g.UnexpectedKeyword,t,{keyword:e});else if((this.state.strict?r?fe:he:ue)(e,this.inModule))this.raise(g.UnexpectedReservedWord,t,{reservedWord:e});else if("yield"===e){if(this.prodParam.hasYield)return void this.raise(g.YieldBindingIdentifier,t)}else if("await"===e){if(this.prodParam.hasAwait)return void this.raise(g.AwaitBindingIdentifier,t);if(this.scope.inStaticBlock)return void this.raise(g.AwaitBindingIdentifierInStaticBlock,t);this.expressionScope.recordAsyncArrowParametersError(t)}else if("arguments"===e&&this.scope.inClassAndNotInNonArrowFunction)return void this.raise(g.ArgumentsInClass,t)}recordAwaitIfAllowed(){const e=this.prodParam.hasAwait;return e&&!this.scope.inFunction&&(this.state.hasTopLevelAwait=!0),e}parseAwait(e){const t=this.startNodeAt(e);return this.expressionScope.recordParameterInitializerError(g.AwaitExpressionFormalParameter,t),this.eat(55)&&this.raise(g.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;const{type:e}=this.state;return 53===e||10===e||0===e||G(e)||102===e&&!this.state.containsEsc||138===e||56===e||this.hasPlugin("v8intrinsic")&&54===e}parseYield(e){const t=this.startNodeAt(e);this.expressionScope.recordParameterInitializerError(g.YieldInParameter,t);let i=!1,r=null;if(!this.hasPrecedingLineBreak())switch(i=this.eat(55),this.state.type){case 13:case 140:case 8:case 11:case 3:case 9:case 14:case 12:if(!i)break;default:r=this.parseMaybeAssign()}return t.delegate=i,t.argument=r,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(g.ImportCallArity,e)}return this.expect(11),this.finishNode(e,"ImportExpression")}checkPipelineAtInfixOperator(e,t){this.hasPlugin(["pipelineOperator",{proposal:"smart"}])&&"SequenceExpression"===e.type&&this.raise(g.PipelineHeadSequenceExpression,t)}parseSmartPipelineBodyInStyle(e,t){if(this.isSimpleReference(e)){const i=this.startNodeAt(t);return i.callee=e,this.finishNode(i,"PipelineBareFunction")}{const 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(g.PipelineBodyNoArrow,this.state.startLoc);this.topicReferenceWasUsedInCurrentContext()||this.raise(g.PipelineTopicUnused,e)}withTopicBindingContext(e){const 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();{const t=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};try{return e()}finally{this.state.topicContext=t}}}withSoloAwaitPermittingContext(e){const t=this.state.soloAwait;this.state.soloAwait=!0;try{return e()}finally{this.state.soloAwait=t}}allowInAnd(e){const t=this.prodParam.currentFlags();if(8&~t){this.prodParam.enter(8|t);try{return e()}finally{this.prodParam.exit()}}return e()}disallowInAnd(e){const 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){const t=this.state.startLoc;this.state.potentialArrowAt=this.state.start;const i=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;const r=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),t,e);return this.state.inFSharpPipelineDirectBody=i,r}parseModuleExpression(){this.expectPlugin("moduleBlocks");const e=this.startNode();this.next(),this.match(5)||this.unexpected(null,5);const t=this.startNodeAt(this.state.endLoc);this.next();const i=this.initializeScopes(!0);this.enterInitialScopes();try{e.body=this.parseProgram(t,8,"module")}finally{i()}return this.finishNode(e,"ModuleExpression")}parseVoidPattern(e){this.expectPlugin("discardBinding");const t=this.startNode();return null!=e&&(e.voidPatternLoc=this.state.startLoc),this.next(),this.finishNode(t,"VoidPattern")}parseMaybeAssignAllowInOrVoidPattern(e,t,i){if(null!=t&&this.match(88)){const 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,i)}parsePropertyNamePrefixOperator(e){}}const kt={kind:1},_t={kind:2},Mt=/[\uD800-\uDFFF]/u,Lt=/in(?:stanceof)?/y;class Dt extends Ot{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(let r=0;r<e.length;r++){const n=e[r],{type:a}=n;if("number"==typeof a){if(139===a){const{loc:t,start:i,value:a,end:o}=n,l=i+1,p=s(t.start,1);e.splice(r,1,new it({type:Q(27),value:"#",start:i,end:l,startLoc:t.start,endLoc:p}),new it({type:Q(132),value:a,start:l,end:o,startLoc:p,endLoc:t.end})),r++;continue}if(G(a)){const{loc:o,start:l,value:p,end:c}=n,u=l+1,h=s(o.start,1);let d,f,m,y,T;d=96===t.charCodeAt(l-i)?new it({type:Q(22),value:"`",start:l,end:u,startLoc:o.start,endLoc:h}):new it({type:Q(8),value:"}",start:l,end:u,startLoc:o.start,endLoc:h}),24===a?(m=c-1,y=s(o.end,-1),f=null===p?null:p.slice(1,-1),T=new it({type:Q(22),value:"`",start:m,end:c,startLoc:y,endLoc:o.end})):(m=c-2,y=s(o.end,-2),f=null===p?null:p.slice(1,-2),T=new it({type:Q(23),value:"${",start:m,end:c,startLoc:y,endLoc:o.end})),e.splice(r,1,d,new it({type:Q(20),value:f,start:u,end:m,startLoc:h,endLoc:y}),T),r+=2;continue}n.type=Q(a)}}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(const[e,t]of Array.from(this.scope.undefinedExports))this.raise(g.ModuleExportUndefined,t,{localName:e});this.addExtra(e,"topLevelAwait",this.state.hasTopLevelAwait)}let r;return r=140===t?this.finishNode(e,"Program"):this.finishNodeAt(e,"Program",s(this.state.startLoc,-1)),r}stmtToDirective(e){const t=this.castNodeTo(e,"Directive"),i=this.castNodeTo(e.expression,"DirectiveLiteral"),r=i.value,n=this.input.slice(this.offsetToSourcePos(i.start),this.offsetToSourcePos(i.end)),s=i.value=n.slice(1,-1);return this.addExtra(i,"raw",n),this.addExtra(i,"rawValue",s),this.addExtra(i,"expressionValue",r),t.value=i,delete e.expression,t}parseInterpreterDirective(){if(!this.match(28))return null;const e=this.startNode();return e.value=this.state.value,this.next(),this.finishNode(e,"InterpreterDirective")}isLet(){return!!this.isContextual(100)&&this.hasFollowingBindingAtom()}isUsing(){if(!this.isContextual(107))return!1;const e=this.nextTokenInLineStart(),t=this.codePointAtPos(e);return this.chStartsBindingIdentifier(t,e)}isForUsing(){if(!this.isContextual(107))return!1;const e=this.nextTokenInLineStart(),t=this.codePointAtPos(e);if(this.isUnparsedContextual(e,"of")){const t=this.lookaheadCharCodeSince(e+2);if(61!==t&&58!==t&&59!==t)return!1}return!(!this.chStartsBindingIdentifier(t,e)&&!this.isUnparsedContextual(e,"void"))}isAwaitUsing(){if(!this.isContextual(96))return!1;let e=this.nextTokenInLineStart();if(this.isUnparsedContextual(e,"using")){e=this.nextTokenInLineStartSince(e+5);const t=this.codePointAtPos(e);if(this.chStartsBindingIdentifier(t,e))return!0}return!1}chStartsBindingIdentifier(e,t){if(ae(e)){if(Lt.lastIndex=t,Lt.test(this.input)){const e=this.codePointAtPos(Lt.lastIndex);if(!oe(e)&&92!==e)return!1}return!0}return 92===e}chStartsBindingPattern(e){return 91===e||123===e}hasFollowingBindingAtom(){const e=this.nextTokenStart(),t=this.codePointAtPos(e);return this.chStartsBindingPattern(t)||this.chStartsBindingIdentifier(t,e)}hasInLineFollowingBindingIdentifierOrBrace(){const 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(e=!1){let t=0;return this.options.annexB&&!this.state.strict&&(t|=4,e&&(t|=8)),this.parseStatementLike(t)}parseStatement(){return this.parseStatementLike(0)}parseStatementLike(e){let t=null;return this.match(26)&&(t=this.parseDecorators(!0)),this.parseStatementContent(e,t)}parseStatementContent(e,t){const i=this.state.type,r=this.startNode(),n=!!(2&e),s=!!(4&e),a=1&e;switch(i){case 60:return this.parseBreakContinueStatement(r,!0);case 63:return this.parseBreakContinueStatement(r,!1);case 64:return this.parseDebuggerStatement(r);case 90:return this.parseDoWhileStatement(r);case 91:return this.parseForStatement(r);case 68:if(46===this.lookaheadCharCode())break;return s||this.raise(this.state.strict?g.StrictFunction:this.options.annexB?g.SloppyFunctionAnnexB:g.SloppyFunction,this.state.startLoc),this.parseFunctionStatement(r,!1,!n&&s);case 80:return n||this.unexpected(),this.parseClass(this.maybeTakeDecorators(t,r),!0);case 69:return this.parseIfStatement(r);case 70:return this.parseReturnStatement(r);case 71:return this.parseSwitchStatement(r);case 72:return this.parseThrowStatement(r);case 73:return this.parseTryStatement(r);case 96:if(this.isAwaitUsing())return this.allowsUsing()?n?this.recordAwaitIfAllowed()||this.raise(g.AwaitUsingNotInAsyncContext,r):this.raise(g.UnexpectedLexicalDeclaration,r):this.raise(g.UnexpectedUsingDeclaration,r),this.next(),this.parseVarStatement(r,"await using");break;case 107:if(this.state.containsEsc||!this.hasInLineFollowingBindingIdentifierOrBrace())break;return this.allowsUsing()?n||this.raise(g.UnexpectedLexicalDeclaration,this.state.startLoc):this.raise(g.UnexpectedUsingDeclaration,this.state.startLoc),this.parseVarStatement(r,"using");case 100:{if(this.state.containsEsc)break;const e=this.nextTokenStart(),t=this.codePointAtPos(e);if(91!==t){if(!n&&this.hasFollowingLineBreak())break;if(!this.chStartsBindingIdentifier(t,e)&&123!==t)break}}case 75:n||this.raise(g.UnexpectedLexicalDeclaration,this.state.startLoc);case 74:{const e=this.state.value;return this.parseVarStatement(r,e)}case 92:return this.parseWhileStatement(r);case 76:return this.parseWithStatement(r);case 5:return this.parseBlock();case 13:return this.parseEmptyStatement(r);case 83:{const e=this.lookaheadCharCode();if(40===e||46===e)break}case 82:{let e;return 8&this.optionFlags||a||this.raise(g.UnexpectedImportExport,this.state.startLoc),this.next(),e=83===i?this.parseImport(r):this.parseExport(r,t),this.assertModuleNodeAllowed(e),e}default:if(this.isAsyncFunction())return n||this.raise(g.AsyncFunctionInSingleStatementContext,this.state.startLoc),this.next(),this.parseFunctionStatement(r,!0,!n&&s)}const o=this.state.value,l=this.parseExpression();return $(i)&&"Identifier"===l.type&&this.eat(14)?this.parseLabeledStatement(r,o,l,e):this.parseExpressionStatement(r,l,t)}assertModuleNodeAllowed(e){8&this.optionFlags||this.inModule||this.raise(g.ImportOutsideModule,e)}decoratorsEnabledBeforeExport(){return!!this.hasPlugin("decorators-legacy")||this.hasPlugin("decorators")&&!1!==this.getPluginOption("decorators","decoratorsBeforeExport")}maybeTakeDecorators(e,t,i){var r;return e&&(null!=(r=t.decorators)&&r.length?("boolean"!=typeof this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(g.DecoratorsBeforeAfterExport,t.decorators[0]),t.decorators.unshift(...e)):t.decorators=e,this.resetStartLocationFromNode(t,e[0]),i&&this.resetStartLocationFromNode(i,t)),t}canHaveLeadingDecorator(){return this.match(80)}parseDecorators(e){const t=[];do{t.push(this.parseDecorator())}while(this.match(26));if(this.match(82))e||this.unexpected(),this.decoratorsEnabledBeforeExport()||this.raise(g.DecoratorExportClass,this.state.startLoc);else if(!this.canHaveLeadingDecorator())throw this.raise(g.UnexpectedLeadingDecorator,this.state.startLoc);return t}parseDecorator(){this.expectOnePlugin(["decorators","decorators-legacy"]);const e=this.startNode();if(this.next(),this.hasPlugin("decorators")){const t=this.state.startLoc;let i;if(this.match(10)){const t=this.state.startLoc;this.next(),i=this.parseExpression(),this.expect(11),i=this.wrapParenthesis(t,i);const r=this.state.startLoc;e.expression=this.parseMaybeDecoratorArguments(i,t),!1===this.getPluginOption("decorators","allowCallParenthesized")&&e.expression!==i&&this.raise(g.DecoratorArgumentsOutsideParentheses,r)}else{for(i=this.parseIdentifier(!1);this.eat(16);){const e=this.startNodeAt(t);e.object=i,this.match(139)?(this.classScope.usePrivateName(this.state.value,this.state.startLoc),e.property=this.parsePrivateName()):e.property=this.parseIdentifier(!0),e.computed=!1,i=this.finishNode(e,"MemberExpression")}e.expression=this.parseMaybeDecoratorArguments(i,t)}}else e.expression=this.parseExprSubscripts();return this.finishNode(e,"Decorator")}parseMaybeDecoratorArguments(e,t){if(this.eat(10)){const i=this.startNodeAt(t);return i.callee=e,i.arguments=this.parseCallExpressionArguments(),this.toReferencedList(i.arguments),this.finishNode(i,"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){let i;for(i=0;i<this.state.labels.length;++i){const r=this.state.labels[i];if(null==e.label||r.name===e.label.name){if(null!=r.kind&&(t||1===r.kind))break;if(e.label&&t)break}}if(i===this.state.labels.length){const i=t?"BreakStatement":"ContinueStatement";this.raise(g.IllegalBreakContinue,e,{type:i})}}parseDebuggerStatement(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")}parseHeaderExpression(){this.expect(10);const e=this.parseExpression();return this.expect(11),e}parseDoWhileStatement(e){return this.next(),this.state.labels.push(kt),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(kt);let 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);const i=this.isContextual(100);{const r=this.isAwaitUsing(),n=r||this.isForUsing(),s=i&&this.hasFollowingBindingAtom()||n;if(this.match(74)||this.match(75)||s){const i=this.startNode();let s;r?(s="await using",this.recordAwaitIfAllowed()||this.raise(g.AwaitUsingNotInAsyncContext,this.state.startLoc),this.next()):s=this.state.value,this.next(),this.parseVar(i,!0,s);const a=this.finishNode(i,"VariableDeclaration"),o=this.match(58);return o&&n&&this.raise(g.ForInUsing,a),(o||this.isContextual(102))&&1===a.declarations.length?this.parseForIn(e,a,t):(null!==t&&this.unexpected(t),this.parseFor(e,a))}}const r=this.isContextual(95),n=new ut,s=this.parseExpression(!0,n),a=this.isContextual(102);if(a&&(i&&this.raise(g.ForOfLet,s),null===t&&r&&"Identifier"===s.type&&this.raise(g.ForOfAsync,s)),a||this.match(58)){this.checkDestructuringPrivate(n),this.toAssignable(s,!0);const i=a?"ForOfStatement":"ForInStatement";return this.checkLVal(s,{type:i}),this.parseForIn(e,s,t)}return this.checkExpressionErrors(n,!0),null!==t&&this.unexpected(t),this.parseFor(e,s)}parseFunctionStatement(e,t,i){return this.next(),this.parseFunction(e,1|(i?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(g.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();const t=e.cases=[];let i;this.expect(5),this.state.labels.push(_t),this.scope.enter(256);for(let e;!this.match(8);)if(this.match(61)||this.match(65)){const r=this.match(61);i&&this.finishNode(i,"SwitchCase"),t.push(i=this.startNode()),i.consequent=[],this.next(),r?i.test=this.parseExpression():(e&&this.raise(g.MultipleDefaultsInSwitch,this.state.lastTokStartLoc),e=!0,i.test=null),this.expect(14)}else i?i.consequent.push(this.parseStatementListItem()):this.unexpected();return this.scope.exit(),i&&this.finishNode(i,"SwitchCase"),this.next(),this.state.labels.pop(),this.finishNode(e,"SwitchStatement")}parseThrowStatement(e){return this.next(),this.hasPrecedingLineBreak()&&this.raise(g.NewlineAfterThrow,this.state.lastTokEndLoc),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")}parseCatchClauseParam(){const 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)){const 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(g.NoCatchOrFinally,e),this.finishNode(e,"TryStatement")}parseVarStatement(e,t,i=!1){return this.next(),this.parseVar(e,!1,t,i),this.semicolon(),this.finishNode(e,"VariableDeclaration")}parseWhileStatement(e){return this.next(),e.test=this.parseHeaderExpression(),this.state.labels.push(kt),e.body=this.withSmartMixTopicForbiddingContext((()=>this.parseStatement())),this.state.labels.pop(),this.finishNode(e,"WhileStatement")}parseWithStatement(e){return this.state.strict&&this.raise(g.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,i,r){for(const e of this.state.labels)e.name===t&&this.raise(g.LabelRedeclaration,i,{labelName:t});const n=(s=this.state.type)>=90&&s<=92?1:this.match(71)?2:null;var s;for(let t=this.state.labels.length-1;t>=0;t--){const i=this.state.labels[t];if(i.statementStart!==e.start)break;i.statementStart=this.sourceToOffsetPos(this.state.start),i.kind=n}return this.state.labels.push({name:t,kind:n,statementStart:this.sourceToOffsetPos(this.state.start)}),e.body=8&r?this.parseStatementOrSloppyAnnexBFunctionDeclaration(!0):this.parseStatement(),this.state.labels.pop(),e.label=i,this.finishNode(e,"LabeledStatement")}parseExpressionStatement(e,t,i){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")}parseBlock(e=!1,t=!0,i){const r=this.startNode();return e&&this.state.strictErrors.clear(),this.expect(5),t&&this.scope.enter(0),this.parseBlockBody(r,e,!1,8,i),t&&this.scope.exit(),this.finishNode(r,"BlockStatement")}isValidDirective(e){return"ExpressionStatement"===e.type&&"StringLiteral"===e.expression.type&&!e.expression.extra.parenthesized}parseBlockBody(e,t,i,r,n){const s=e.body=[],a=e.directives=[];this.parseBlockOrModuleBlockBody(s,t?a:void 0,i,r,n)}parseBlockOrModuleBlockBody(e,t,i,r,n){const s=this.state.strict;let a=!1,o=!1;for(;!this.match(r);){const r=i?this.parseModuleItem():this.parseStatementListItem();if(t&&!o){if(this.isValidDirective(r)){const e=this.stmtToDirective(r);t.push(e),a||"use strict"!==e.value.value||(a=!0,this.setStrict(!0));continue}o=!0,this.state.strictErrors.clear()}e.push(r)}null==n||n.call(this,a),s||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,i){const r=this.match(58);return this.next(),r?null!==i&&this.unexpected(i):e.await=null!==i,"VariableDeclaration"!==t.type||null==t.declarations[0].init||r&&this.options.annexB&&!this.state.strict&&"var"===t.kind&&"Identifier"===t.declarations[0].id.type||this.raise(g.ForInOfLoopInitializer,t,{type:r?"ForInStatement":"ForOfStatement"}),"AssignmentPattern"===t.type&&this.raise(g.InvalidLhs,t,{ancestor:{type:"ForStatement"}}),e.left=t,e.right=r?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(11),e.body=this.withSmartMixTopicForbiddingContext((()=>this.parseStatement())),this.scope.exit(),this.state.labels.pop(),this.finishNode(e,r?"ForInStatement":"ForOfStatement")}parseVar(e,t,i,r=!1){const n=e.declarations=[];for(e.kind=i;;){const e=this.startNode();if(this.parseVarId(e,i),e.init=this.eat(29)?t?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn():null,null!==e.init||r||("Identifier"===e.id.type||t&&(this.match(58)||this.isContextual(102))?"const"!==i&&"using"!==i&&"await using"!==i||this.match(58)||this.isContextual(102)||this.raise(g.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:i}):this.raise(g.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:"destructuring"})),n.push(this.finishNode(e,"VariableDeclarator")),!this.eat(12))break}return e}parseVarId(e,t){const i=this.parseBindingAtom();"using"===t||"await using"===t?"ArrayPattern"!==i.type&&"ObjectPattern"!==i.type||this.raise(g.UsingDeclarationHasBindingPattern,i.loc.start):"VoidPattern"===i.type&&this.raise(g.UnexpectedVoidPattern,i.loc.start),this.checkLVal(i,{type:"VariableDeclarator"},"var"===t?5:8201),e.id=i}parseAsyncFunctionExpression(e){return this.parseFunction(e,8)}parseFunction(e,t=0){const i=2&t,r=!!(1&t),n=r&&!(4&t),s=!!(8&t);this.initFunction(e,s),this.match(55)&&(i&&this.raise(g.GeneratorInSingleStatementContext,this.state.startLoc),this.next(),e.generator=!0),r&&(e.id=this.parseFunctionId(n));const a=this.state.maybeInArrowParameters;return this.state.maybeInArrowParameters=!1,this.scope.enter(514),this.prodParam.enter(je(s,e.generator)),r||(e.id=this.parseFunctionId()),this.parseFunctionParams(e,!1),this.withSmartMixTopicForbiddingContext((()=>{this.parseFunctionBodyAndFinish(e,r?"FunctionDeclaration":"FunctionExpression")})),this.prodParam.exit(),this.scope.exit(),r&&!i&&this.registerFunctionStatementId(e),this.state.maybeInArrowParameters=a,e}parseFunctionId(e){return e||$(this.state.type)?this.parseIdentifier():null}parseFunctionParams(e,t){this.expect(10),this.expressionScope.enter(new at(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,i){this.next();const r=this.state.strict;return this.state.strict=!0,this.parseClassId(e,t,i),this.parseClassSuper(e),e.body=this.parseClassBody(!!e.superClass,r),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();const i={hadConstructor:!1,hadSuperClass:e};let r=[];const n=this.startNode();if(n.body=[],this.expect(5),this.withSmartMixTopicForbiddingContext((()=>{for(;!this.match(8);){if(this.eat(13)){if(r.length>0)throw this.raise(g.DecoratorSemicolon,this.state.lastTokEndLoc);continue}if(this.match(26)){r.push(this.parseDecorator());continue}const e=this.startNode();r.length&&(e.decorators=r,this.resetStartLocationFromNode(e,r[0]),r=[]),this.parseClassMember(n,e,i),"constructor"===e.kind&&e.decorators&&e.decorators.length>0&&this.raise(g.DecoratorConstructor,e)}})),this.state.strict=t,this.next(),r.length)throw this.raise(g.TrailingDecorator,this.state.startLoc);return this.classScope.exit(),this.finishNode(n,"ClassBody")}parseClassMemberFromModifier(e,t){const i=this.parseIdentifier(!0);if(this.isClassMethod()){const r=t;return r.kind="method",r.computed=!1,r.key=i,r.static=!1,this.pushClassMethod(e,r,!1,!1,!1,!1),!0}if(this.isClassProperty()){const r=t;return r.computed=!1,r.key=i,r.static=!1,e.body.push(this.parseClassProperty(r)),!0}return this.resetPreviousNodeTrailingComments(i),!1}parseClassMember(e,t,i){const r=this.isContextual(106);if(r){if(this.parseClassMemberFromModifier(e,t))return;if(this.eat(5))return void this.parseClassStaticBlock(e,t)}this.parseClassMemberWithIsStatic(e,t,i,r)}parseClassMemberWithIsStatic(e,t,i,r){const n=t,s=t,a=t,o=t,l=t,p=n,c=n;if(t.static=r,this.parsePropertyNamePrefixOperator(t),this.eat(55)){p.kind="method";const t=this.match(139);return this.parseClassElementName(p),this.parsePostMemberNameModifiers(p),t?void this.pushClassPrivateMethod(e,s,!0,!1):(this.isNonstaticConstructor(n)&&this.raise(g.ConstructorIsGenerator,n.key),void this.pushClassMethod(e,n,!0,!1,!1,!1))}const u=!this.state.containsEsc&&$(this.state.type),h=this.parseClassElementName(t),d=u?h.name:null,f=this.isPrivateName(h),m=this.state.startLoc;if(this.parsePostMemberNameModifiers(c),this.isClassMethod()){if(p.kind="method",f)return void this.pushClassPrivateMethod(e,s,!1,!1);const r=this.isNonstaticConstructor(n);let a=!1;r&&(n.kind="constructor",i.hadConstructor&&!this.hasPlugin("typescript")&&this.raise(g.DuplicateConstructor,h),r&&this.hasPlugin("typescript")&&t.override&&this.raise(g.OverrideOnConstructor,h),i.hadConstructor=!0,a=i.hadSuperClass),this.pushClassMethod(e,n,!1,!1,r,a)}else if(this.isClassProperty())f?this.pushClassPrivateProperty(e,o):this.pushClassProperty(e,a);else if("async"!==d||this.isLineTerminator())if("get"!==d&&"set"!==d||this.match(55)&&this.isLineTerminator())if("accessor"!==d||this.isLineTerminator())this.isLineTerminator()?f?this.pushClassPrivateProperty(e,o):this.pushClassProperty(e,a):this.unexpected();else{this.expectPlugin("decoratorAutoAccessors"),this.resetPreviousNodeTrailingComments(h);const t=this.match(139);this.parseClassElementName(a),this.pushClassAccessorProperty(e,l,t)}else{this.resetPreviousNodeTrailingComments(h),p.kind=d;const t=this.match(139);this.parseClassElementName(n),t?this.pushClassPrivateMethod(e,s,!1,!1):(this.isNonstaticConstructor(n)&&this.raise(g.ConstructorIsAccessor,n.key),this.pushClassMethod(e,n,!1,!1,!1,!1)),this.checkGetterSetterParams(n)}else{this.resetPreviousNodeTrailingComments(h);const t=this.eat(55);c.optional&&this.unexpected(m),p.kind="method";const i=this.match(139);this.parseClassElementName(p),this.parsePostMemberNameModifiers(c),i?this.pushClassPrivateMethod(e,s,t,!0):(this.isNonstaticConstructor(n)&&this.raise(g.ConstructorIsAsync,n.key),this.pushClassMethod(e,n,t,!0,!1,!1))}}parseClassElementName(e){const{type:t,value:i}=this.state;if(132!==t&&134!==t||!e.static||"prototype"!==i||this.raise(g.StaticPrototype,this.state.startLoc),139===t){"constructor"===i&&this.raise(g.ConstructorClassPrivateField,this.state.startLoc);const t=this.parsePrivateName();return e.key=t,t}return this.parsePropertyName(e),e.key}parseClassStaticBlock(e,t){var i;this.scope.enter(720);const r=this.state.labels;this.state.labels=[],this.prodParam.enter(0);const n=t.body=[];this.parseBlockOrModuleBlockBody(n,void 0,!1,8),this.prodParam.exit(),this.scope.exit(),this.state.labels=r,e.body.push(this.finishNode(t,"StaticBlock")),null!=(i=t.decorators)&&i.length&&this.raise(g.DecoratorStaticBlock,t)}pushClassProperty(e,t){!t.computed&&this.nameIsConstructor(t.key)&&this.raise(g.ConstructorClassField,t.key),e.body.push(this.parseClassProperty(t))}pushClassPrivateProperty(e,t){const i=this.parseClassPrivateProperty(t);e.body.push(i),this.classScope.declarePrivateName(this.getPrivateNameSV(i.key),0,i.key.loc.start)}pushClassAccessorProperty(e,t,i){i||t.computed||!this.nameIsConstructor(t.key)||this.raise(g.ConstructorClassField,t.key);const r=this.parseClassAccessorProperty(t);e.body.push(r),i&&this.classScope.declarePrivateName(this.getPrivateNameSV(r.key),0,r.key.loc.start)}pushClassMethod(e,t,i,r,n,s){e.body.push(this.parseMethod(t,i,r,n,s,"ClassMethod",!0))}pushClassPrivateMethod(e,t,i,r){const n=this.parseMethod(t,i,r,!1,!1,"ClassPrivateMethod",!0);e.body.push(n);const s="get"===n.kind?n.static?6:2:"set"===n.kind?n.static?5:1:0;this.declareClassPrivateMethodInScope(n,s)}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(pt()),this.prodParam.enter(0),e.value=this.eat(29)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit()}parseClassId(e,t,i,r=8331){if($(this.state.type))e.id=this.parseIdentifier(),t&&this.declareNameFromIdentifier(e.id,r);else{if(!i&&t)throw this.raise(g.MissingClassName,this.state.startLoc);e.id=null}}parseClassSuper(e){e.superClass=this.eat(81)?this.parseExprSubscripts():null}parseExport(e,t){const i=this.parseMaybeImportPhase(e,!0),r=this.maybeParseExportDefaultSpecifier(e,i),n=!r||this.eat(12),s=n&&this.eatExportStar(e),a=s&&this.maybeParseExportNamespaceSpecifier(e),o=n&&(!a||this.eat(12)),l=r||s;if(s&&!a){if(r&&this.unexpected(),t)throw this.raise(g.UnsupportedDecoratorExport,e);return this.parseExportFrom(e,!0),this.sawUnambiguousESM=!0,this.finishNode(e,"ExportAllDeclaration")}const p=this.maybeParseExportNamedSpecifiers(e);let c;if(r&&n&&!s&&!p&&this.unexpected(null,5),a&&o&&this.unexpected(null,98),l||p){if(c=!1,t)throw this.raise(g.UnsupportedDecoratorExport,e);this.parseExportFrom(e,l)}else c=this.maybeParseExportDeclaration(e);if(l||p||c){var u;const i=e;if(this.checkExport(i,!0,!1,!!i.source),"ClassDeclaration"===(null==(u=i.declaration)?void 0:u.type))this.maybeTakeDecorators(t,i.declaration,i);else if(t)throw this.raise(g.UnsupportedDecoratorExport,e);return this.sawUnambiguousESM=!0,this.finishNode(i,"ExportNamedDeclaration")}if(this.eat(65)){const i=e,r=this.parseExportDefaultExpression();if(i.declaration=r,"ClassDeclaration"===r.type)this.maybeTakeDecorators(t,r,i);else if(t)throw this.raise(g.UnsupportedDecoratorExport,e);return this.checkExport(i,!0,!0),this.sawUnambiguousESM=!0,this.finishNode(i,"ExportDefaultDeclaration")}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);const i=t||this.parseIdentifier(!0),r=this.startNodeAtNode(i);return r.exported=i,e.specifiers=[this.finishNode(r,"ExportDefaultSpecifier")],!0}return!1}maybeParseExportNamespaceSpecifier(e){if(this.isContextual(93)){var t;null!=(t=e).specifiers||(t.specifiers=[]);const i=this.startNodeAt(this.state.lastTokStartLoc);return this.next(),i.exported=this.parseModuleExportName(),e.specifiers.push(this.finishNode(i,"ExportNamespaceSpecifier")),!0}return!1}maybeParseExportNamedSpecifiers(e){if(this.match(5)){const t=e;t.specifiers||(t.specifiers=[]);const i="type"===t.exportKind;return t.specifiers.push(...this.parseExportSpecifiers(i)),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;const e=this.nextTokenInLineStart();return this.isUnparsedContextual(e,"function")}parseExportDefaultExpression(){const 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(g.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(g.UnsupportedDefaultExport,this.state.startLoc);const t=this.parseMaybeAssignAllowIn();return this.semicolon(),t}parseExportDeclaration(e){return this.match(80)?this.parseClass(this.startNode(),!0,!1):this.parseStatementListItem()}isExportDefaultSpecifier(){const{type:e}=this.state;if($(e)){if(95===e&&!this.state.containsEsc||100===e)return!1;if((130===e||129===e)&&!this.state.containsEsc){const e=this.nextTokenStart(),t=this.input.charCodeAt(e);if(123===t||this.chStartsBindingIdentifier(t,e)&&!this.input.startsWith("from",e))return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(65))return!1;const t=this.nextTokenStart(),i=this.isUnparsedContextual(t,"from");if(44===this.input.charCodeAt(t)||$(this.state.type)&&i)return!0;if(this.match(65)&&i){const e=this.input.charCodeAt(this.nextTokenStartSince(t+4));return 34===e||39===e}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(){const{type:e}=this.state;return 26===e&&(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators"))?(!0===this.getPluginOption("decorators","decoratorsBeforeExport")&&this.raise(g.DecoratorBeforeExport,this.state.startLoc),!0):this.isUsing()||this.isAwaitUsing()?(this.raise(g.UsingDeclarationExport,this.state.startLoc),!0):74===e||75===e||68===e||80===e||this.isLet()||this.isAsyncFunction()}checkExport(e,t,i,r){var n;if(t)if(i){if(this.checkDuplicateExports(e,"default"),this.hasPlugin("exportDefaultFrom")){var s;const t=e.declaration;"Identifier"!==t.type||"from"!==t.name||t.end-t.start!=4||null!=(s=t.extra)&&s.parenthesized||this.raise(g.ExportDefaultFromAsIdentifier,t)}}else if(null!=(n=e.specifiers)&&n.length)for(const t of e.specifiers){const{exported:e}=t,i="Identifier"===e.type?e.name:e.value;if(this.checkDuplicateExports(t,i),!r&&t.local){const{local:e}=t;"Identifier"!==e.type?this.raise(g.ExportBindingIsString,t,{localName:e.value,exportName:i}):(this.checkReservedWord(e.name,e.loc.start,!0,!1),this.scope.checkLocalExport(e))}}else if(e.declaration){const t=e.declaration;if("FunctionDeclaration"===t.type||"ClassDeclaration"===t.type){const{id:i}=t;if(!i)throw new Error("Assertion failure");this.checkDuplicateExports(e,i.name)}else if("VariableDeclaration"===t.type)for(const e of t.declarations)this.checkDeclaration(e.id)}}checkDeclaration(e){if("Identifier"===e.type)this.checkDuplicateExports(e,e.name);else if("ObjectPattern"===e.type)for(const t of e.properties)this.checkDeclaration(t);else if("ArrayPattern"===e.type)for(const t of e.elements)t&&this.checkDeclaration(t);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(g.DuplicateDefaultExport,e):this.raise(g.DuplicateExport,e,{exportName:t})),this.exportedIdentifiers.add(t)}parseExportSpecifiers(e){const t=[];let i=!0;for(this.expect(5);!this.eat(8);){if(i)i=!1;else if(this.expect(12),this.eat(8))break;const r=this.isContextual(130),n=this.match(134),s=this.startNode();s.local=this.parseModuleExportName(),t.push(this.parseExportSpecifier(s,n,e,r))}return t}parseExportSpecifier(e,t,i,r){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)){const e=this.parseStringLiteral(this.state.value),t=Mt.exec(e.value);return t&&this.raise(g.ModuleExportNameHasLoneSurrogate,e,{surrogateCharCode:t[0].charCodeAt(0)}),e}return this.parseIdentifier(!0)}isJSONModuleImport(e){return null!=e.assertions&&e.assertions.some((({key:e,value:t})=>"json"===t.value&&("Identifier"===e.type?"type"===e.name:"type"===e.value)))}checkImportReflection(e){const{specifiers:t}=e,i=1===t.length?t[0].type:null;if("source"===e.phase)"ImportDefaultSpecifier"!==i&&this.raise(g.SourcePhaseImportRequiresDefault,t[0].loc.start);else if("defer"===e.phase)"ImportNamespaceSpecifier"!==i&&this.raise(g.DeferImportRequiresNamespace,t[0].loc.start);else if(e.module){var r;"ImportDefaultSpecifier"!==i&&this.raise(g.ImportReflectionNotBinding,t[0].loc.start),(null==(r=e.assertions)?void 0:r.length)>0&&this.raise(g.ImportReflectionHasAssertion,t[0].loc.start)}}checkJSONModuleImport(e){if(this.isJSONModuleImport(e)&&"ExportAllDeclaration"!==e.type){const{specifiers:t}=e;if(null!=t){const e=t.find((e=>{let 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!==e&&this.raise(g.ImportJSONBindingNotDefault,e.loc.start)}}}isPotentialImportPhase(e){return!e&&(this.isContextual(105)||this.isContextual(97)||this.isContextual(127))}applyImportPhase(e,t,i,r){t||("module"===i?(this.expectPlugin("importReflection",r),e.module=!0):this.hasPlugin("importReflection")&&(e.module=!1),"source"===i?(this.expectPlugin("sourcePhaseImports",r),e.phase="source"):"defer"===i?(this.expectPlugin("deferredImportEvaluation",r),e.phase="defer"):this.hasPlugin("sourcePhaseImports")&&(e.phase=null))}parseMaybeImportPhase(e,t){if(!this.isPotentialImportPhase(t))return this.applyImportPhase(e,t,null),null;const i=this.startNode(),r=this.parseIdentifierName(!0),{type:n}=this.state;return(q(n)?98!==n||102===this.lookaheadCharCode():12!==n)?(this.applyImportPhase(e,t,r,i.loc.start),null):(this.applyImportPhase(e,t,null),this.createIdentifier(i,r))}isPrecedingIdImportPhase(e){const{type:t}=this.state;return $(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=[];const i=!this.maybeParseDefaultImportSpecifier(e,t)||this.eat(12),r=i&&this.maybeParseStarImportSpecifier(e);return i&&!r&&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,i){t.local=this.parseIdentifier(),e.specifiers.push(this.finishImportSpecifier(t,i))}finishImportSpecifier(e,t,i=8201){return this.checkLVal(e.local,{type:t},i),this.finishNode(e,t)}parseImportAttributes(){this.expect(5);const e=[],t=new Set;do{if(this.match(8))break;const i=this.startNode(),r=this.state.value;if(t.has(r)&&this.raise(g.ModuleAttributesWithDuplicateKeys,this.state.startLoc,{key:r}),t.add(r),this.match(134)?i.key=this.parseStringLiteral(r):i.key=this.parseIdentifier(!0),this.expect(14),!this.match(134))throw this.raise(g.ModuleAttributeInvalidValue,this.state.startLoc);i.value=this.parseStringLiteral(this.state.value),e.push(this.finishNode(i,"ImportAttribute"))}while(this.eat(12));return this.expect(8),e}parseModuleAttributes(){const e=[],t=new Set;do{const i=this.startNode();if(i.key=this.parseIdentifier(!0),"type"!==i.key.name&&this.raise(g.ModuleAttributeDifferentFromType,i.key),t.has(i.key.name)&&this.raise(g.ModuleAttributesWithDuplicateKeys,i.key,{key:i.key.name}),t.add(i.key.name),this.expect(14),!this.match(134))throw this.raise(g.ModuleAttributeInvalidValue,this.state.startLoc);i.value=this.parseStringLiteral(this.state.value),e.push(this.finishNode(i,"ImportAttribute"))}while(this.eat(12));return e}maybeParseImportAttributes(e){let t;var i=!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(),i=!0}else this.isContextual(94)&&!this.hasPrecedingLineBreak()?(this.hasPlugin("deprecatedImportAssert")||this.hasPlugin("importAssertions")||this.raise(g.ImportAttributesUseAssert,this.state.startLoc),this.hasPlugin("importAssertions")||this.addExtra(e,"deprecatedAssertSyntax",!0),this.next(),t=this.parseImportAttributes()):t=[];!i&&this.hasPlugin("importAssertions")?e.assertions=t:e.attributes=t}maybeParseDefaultImportSpecifier(e,t){if(t){const i=this.startNodeAtNode(t);return i.local=t,e.specifiers.push(this.finishImportSpecifier(i,"ImportDefaultSpecifier")),!0}return!!q(this.state.type)&&(this.parseImportSpecifierLocal(e,this.startNode(),"ImportDefaultSpecifier"),!0)}maybeParseStarImportSpecifier(e){if(this.match(55)){const t=this.startNode();return this.next(),this.expectContextual(93),this.parseImportSpecifierLocal(e,t,"ImportNamespaceSpecifier"),!0}return!1}parseNamedImportSpecifiers(e){let t=!0;for(this.expect(5);!this.eat(8);){if(t)t=!1;else{if(this.eat(14))throw this.raise(g.DestructureNamedImport,this.state.startLoc);if(this.expect(12),this.eat(8))break}const i=this.startNode(),r=this.match(134),n=this.isContextual(130);i.imported=this.parseModuleExportName();const s=this.parseImportSpecifier(i,r,"type"===e.importKind||"typeof"===e.importKind,n,void 0);e.specifiers.push(s)}}parseImportSpecifier(e,t,i,r,n){if(this.eatContextual(93))e.local=this.parseIdentifier();else{const{imported:i}=e;if(t)throw this.raise(g.ImportBindingIsString,e,{importName:i.value});this.checkReservedWord(i.name,e.loc.start,!0,!0),e.local||(e.local=this.cloneIdentifier(i))}return this.finishImportSpecifier(e,"ImportSpecifier",n)}isThisParam(e){return"Identifier"===e.type&&"this"===e.name}}class Bt extends Dt{constructor(e,t,i){super(e=function(e){const 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:null,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(const i of Object.keys(t))null!=e[i]&&(t[i]=e[i]);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),t),this.options=e,this.initializeScopes(),this.plugins=i,this.filename=e.sourceFilename,this.startIndex=e.startIndex;let r=0;e.allowAwaitOutsideFunction&&(r|=1),e.allowReturnOutsideFunction&&(r|=2),e.allowImportExportEverywhere&&(r|=8),e.allowSuperOutsideMethod&&(r|=16),e.allowUndeclaredExports&&(r|=64),e.allowNewTargetOutsideFunction&&(r|=4),e.allowYieldOutsideFunction&&(r|=32),e.ranges&&(r|=128),e.tokens&&(r|=256),e.createImportExpressions&&(r|=512),e.createParenthesizedExpressions&&(r|=1024),e.errorRecovery&&(r|=2048),e.attachComment&&(r|=4096),e.annexB&&(r|=8192),this.optionFlags=r}getScopeHandler(){return Te}parse(){this.enterInitialScopes();const e=this.startNode(),t=this.startNode();return this.nextToken(),e.errors=null,this.parseTopLevel(e,t),e.errors=this.state.errors,e.comments.length=this.state.commentsLen,e}}!function(e){const t={};for(const i of Object.keys(e))t[i]=Q(e[i])}(K);const Ft=new Map;t.YK=function(e,t){const i=function(e,t){let i=Bt;const r=new Map;if(null!=e&&e.plugins){for(const t of e.plugins){let e,i;"string"==typeof t?e=t:[e,i]=t,r.has(e)||r.set(e,i||{})}!function(e){if(e.has("decorators")){if(e.has("decorators-legacy"))throw new Error("Cannot use the decorators and decorators-legacy plugin together");const t=e.get("decorators").decoratorsBeforeExport;if(null!=t&&"boolean"!=typeof t)throw new Error("'decoratorsBeforeExport' must be a boolean, if specified.");const i=e.get("decorators").allowCallParenthesized;if(null!=i&&"boolean"!=typeof i)throw new Error("'allowCallParenthesized' must be a boolean.")}if(e.has("flow")&&e.has("typescript"))throw new Error("Cannot combine flow and typescript plugins.");if(e.has("placeholders")&&e.has("v8intrinsic"))throw new Error("Cannot combine placeholders and v8intrinsic plugins.");if(e.has("pipelineOperator")){var t;const r=e.get("pipelineOperator").proposal;if(!At.includes(r)){const e=At.map((e=>`"${e}"`)).join(", ");throw new Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${e}.`)}if("hack"===r){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.");const t=e.get("pipelineOperator").topicToken;if(!It.includes(t)){const e=It.map((e=>`"${e}"`)).join(", ");throw new Error(`"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: ${e}.`)}var i;if("#"===t&&"hash"===(null==(i=e.get("recordAndTuple"))?void 0:i.syntaxType))throw new Error(`Plugin conflict between \`["pipelineOperator", { proposal: "hack", topicToken: "#" }]\` and \`${JSON.stringify(["recordAndTuple",e.get("recordAndTuple")])}\`.`)}else if("smart"===r&&"hash"===(null==(t=e.get("recordAndTuple"))?void 0:t.syntaxType))throw new Error(`Plugin conflict between \`["pipelineOperator", { proposal: "smart" }]\` and \`${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")){const t=e.get("recordAndTuple").syntaxType;if(null!=t){const e=["hash","bar"];if(!e.includes(t))throw new Error("The 'syntaxType' option of the 'recordAndTuple' plugin must be one of: "+e.map((e=>`'${e}'`)).join(", "))}}if(e.has("asyncDoExpressions")&&!e.has("doExpressions")){const e=new Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.");throw e.missingPlugins="doExpressions",e}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'.")}(r),i=function(e){const t=[];for(const i of Nt)e.has(i)&&t.push(i);const i=t.join("|");let r=Ft.get(i);if(!r){r=Bt;for(const e of t)r=Ct[e](r);Ft.set(i,r)}return r}(r)}return new i(e,t,r)}(t,e);return i.options.strictMode&&(i.state.strict=!0),i.getExpression()}},34228:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0});var r=i(18133);Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===r[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}}))}));var n=i(73019);Object.keys(n).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===n[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return n[e]}}))}));var s=i(18480);Object.keys(s).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===s[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return s[e]}}))}));var a=i(18744);Object.keys(a).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===a[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return a[e]}}))}));var o=i(38118);Object.keys(o).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===o[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}}))}));var l=i(25857);Object.keys(l).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===l[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return l[e]}}))}));var p=i(56049);Object.keys(p).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===p[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return p[e]}}))}));var c=i(14058);Object.keys(c).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===c[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return c[e]}}))}));var u=i(68667);Object.keys(u).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===u[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return u[e]}}))}));var h=i(19845);Object.keys(h).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===h[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return h[e]}}))}));var d=i(86809);Object.keys(d).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===d[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return d[e]}}))}))},35108:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ALIAS_KEYS",{enumerable:!0,get:function(){return r.ALIAS_KEYS}}),Object.defineProperty(t,"BUILDER_KEYS",{enumerable:!0,get:function(){return r.BUILDER_KEYS}}),Object.defineProperty(t,"DEPRECATED_ALIASES",{enumerable:!0,get:function(){return s.DEPRECATED_ALIASES}}),Object.defineProperty(t,"DEPRECATED_KEYS",{enumerable:!0,get:function(){return r.DEPRECATED_KEYS}}),Object.defineProperty(t,"FLIPPED_ALIAS_KEYS",{enumerable:!0,get:function(){return r.FLIPPED_ALIAS_KEYS}}),Object.defineProperty(t,"NODE_FIELDS",{enumerable:!0,get:function(){return r.NODE_FIELDS}}),Object.defineProperty(t,"NODE_PARENT_VALIDATIONS",{enumerable:!0,get:function(){return r.NODE_PARENT_VALIDATIONS}}),Object.defineProperty(t,"PLACEHOLDERS",{enumerable:!0,get:function(){return n.PLACEHOLDERS}}),Object.defineProperty(t,"PLACEHOLDERS_ALIAS",{enumerable:!0,get:function(){return n.PLACEHOLDERS_ALIAS}}),Object.defineProperty(t,"PLACEHOLDERS_FLIPPED_ALIAS",{enumerable:!0,get:function(){return n.PLACEHOLDERS_FLIPPED_ALIAS}}),t.TYPES=void 0,Object.defineProperty(t,"VISITOR_KEYS",{enumerable:!0,get:function(){return r.VISITOR_KEYS}}),i(8925),i(8794),i(57045),i(57350),i(97232),i(48457);var r=i(73261),n=i(85604),s=i(18214);Object.keys(s.DEPRECATED_ALIASES).forEach((e=>{r.FLIPPED_ALIAS_KEYS[e]=r.FLIPPED_ALIAS_KEYS[s.DEPRECATED_ALIASES[e]]}));for(const{types:e,set:t}of r.allExpandedTypes)for(const i of e){const e=r.FLIPPED_ALIAS_KEYS[i];e?e.forEach(t.add,t):t.add(i)}t.TYPES=[].concat(Object.keys(r.VISITOR_KEYS),Object.keys(r.FLIPPED_ALIAS_KEYS),Object.keys(r.DEPRECATED_KEYS))},35174:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if("id"in e&&e.id)return{name:e.id.name,originalNode:e.id};let i,s="";if((0,r.isObjectProperty)(t,{value:e})?i=n(t):(0,r.isObjectMethod)(e)||(0,r.isClassMethod)(e)?(i=n(e),"get"===e.kind?s="get ":"set"===e.kind&&(s="set ")):(0,r.isVariableDeclarator)(t,{init:e})?i=t.id:(0,r.isAssignmentExpression)(t,{operator:"=",right:e})&&(i=t.left),!i)return null;const a=(0,r.isLiteral)(i)?function(e){return(0,r.isNullLiteral)(e)?"null":(0,r.isRegExpLiteral)(e)?`/${e.pattern}/${e.flags}`:(0,r.isTemplateLiteral)(e)?e.quasis.map((e=>e.value.raw)).join(""):void 0!==e.value?String(e.value):null}(i):(0,r.isIdentifier)(i)?i.name:(0,r.isPrivateName)(i)?i.id.name:null;return null==a?null:{name:s+a,originalNode:i}};var r=i(63555);function n(e){if(!e.computed||(0,r.isLiteral)(e.key))return e.key}},35693:(e,t,i)=>{function r(e){if(e)throw e}i.d(t,{V:()=>r})},36306:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TokenContext=void 0,t.isLastChild=function(e,t){const i=o[e.type];for(let r=i.length-1;r>=0;r--){const n=e[i[r]];if(n===t)return!0;if(Array.isArray(n)){let e=n.length-1;for(;e>=0&&null===n[e];)e--;return e>=0&&n[e]===t}if(n)return!1}return!1},t.needsParens=function(e,t,i,r){var n;return!!t&&(!(!h(t)||t.callee!==e||!T(e))||(p(t)?!(b(e)||l(e)&&b(e.callee)||d(e)):null==(n=m.get(e.type))?void 0:n(e,t,i,r)))},t.needsWhitespace=g,t.needsWhitespaceAfter=function(e,t){return g(e,t,2)},t.needsWhitespaceBefore=function(e,t){return g(e,t,1)};var r=i(66277),n=i(6370),s=i(45741);const{FLIPPED_ALIAS_KEYS:a,VISITOR_KEYS:o,isCallExpression:l,isDecorator:p,isExpressionStatement:c,isMemberExpression:u,isNewExpression:h,isParenthesizedExpression:d}=s;function f(e){const t=new Map;function i(e,i){const r=t.get(e);t.set(e,r?function(e,t,n,s){var a;return null!=(a=r(e,t,n,s))?a:i(e,t,n,s)}:i)}for(const t of Object.keys(e)){const r=a[t];if(r)for(const n of r)i(n,e[t]);else i(t,e[t])}return t}t.TokenContext={normal:0,expressionStatement:1,arrowBody:2,exportDefault:4,arrowFlowReturnType:8,forInitHead:16,forInHead:32,forOfHead:64,forInOrInitHeadAccumulate:128,forInOrInitHeadAccumulatePassThroughMask:128};const m=f(n),y=f(r.nodes);function T(e){return!!l(e)||u(e)&&T(e.object)}function g(e,t,i){var r;if(!e)return!1;c(e)&&(e=e.expression);const n=null==(r=y.get(e.type))?void 0:r(e,t);return"number"==typeof n&&!!(n&i)}function b(e){switch(e.type){case"Identifier":return!0;case"MemberExpression":return!e.computed&&"Identifier"===e.property.type&&b(e.object);default:return!1}}},36560:(e,t,i)=>{function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}i.d(t,{A:()=>a});var n=i(16397);function s(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(s=function(){return!!e})()}function a(e){var t="function"==typeof Map?new Map:void 0;return a=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,i)}function i(){return function(e,t,i){if(s())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var a=new(e.bind.apply(e,r));return i&&(0,n.A)(a,i.prototype),a}(e,arguments,r(this).constructor)}return i.prototype=Object.create(e.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),(0,n.A)(i,e)},a(e)}},36646:e=>{e.exports=JSON.parse('{"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}')},37524:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,r.default)(e,n.default,t),e};var r=i(49114),n=i(65830)},38052:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return r.COMMENT_KEYS.forEach((t=>{e[t]=null})),e};var r=i(62811)},38118:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ArrowFunctionExpression=function(e,t){e.async&&(this.word("async",!0),this.space()),this._shouldPrintArrowParamsParens(e)?this._params(e,void 0,t):this.print(e.params[0],!0),this._predicate(e,!0),this.space(),this.printInnerComments(),this.token("=>"),this.space(),this.tokenContext|=n.TokenContext.arrowBody,this.print(e.body)},t.FunctionDeclaration=t.FunctionExpression=function(e,t){this._functionHead(e,t),this.space(),this.print(e.body)},t._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)},t._methodHead=function(e){const t=e.kind,i=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(i),this.tokenChar(93)):this.print(i),e.optional&&this.tokenChar(63),this._params(e,e.computed&&"StringLiteral"!==e.key.type?void 0:e.key,void 0)},t._param=function(e){this.printJoin(e.decorators),this.print(e),e.optional&&this.tokenChar(63),this.print(e.typeAnnotation)},t._parameters=function(e,t){const i=this.enterDelimited(),r=this.shouldPrintTrailingComma(t),n=e.length;for(let t=0;t<n;t++)this._param(e[t]),(r||t<n-1)&&(this.token(",",null,t),this.space());this.token(t),i()},t._params=function(e,t,i){this.print(e.typeParameters);const r=a.call(this,t,i);r&&this.sourceIdentifierName(r.name,r.pos),this.tokenChar(40),this._parameters(e.params,")");const n="ArrowFunctionExpression"===e.type;this.print(e.returnType,n),this._noLineTerminator=n},t._predicate=function(e,t){e.predicate&&(e.returnType||this.tokenChar(58),this.space(),this.print(e.predicate,t))},t._shouldPrintArrowParamsParens=function(e){var t,i;if(1!==e.params.length)return!0;if(e.typeParameters||e.returnType||e.predicate)return!0;const r=e.params[0];if(!s(r)||r.typeAnnotation||r.optional||null!=(t=r.leadingComments)&&t.length||null!=(i=r.trailingComments)&&i.length)return!0;if(this.tokenMap){if(null==e.loc)return!0;if(null!==this.tokenMap.findMatching(e,"("))return!0;const t=this.tokenMap.findMatching(e,"=>");return null==(null==t?void 0:t.loc)||t.loc.start.line!==e.loc.start.line}return!!this.format.retainLines};var r=i(45741),n=i(36306);const{isIdentifier:s}=r;function a(e,t){let i,r=e;if(!r&&t){const e=t.type;"VariableDeclarator"===e?r=t.id:"AssignmentExpression"===e||"AssignmentPattern"===e?r=t.left:"ObjectProperty"===e||"ClassProperty"===e?t.computed&&"StringLiteral"!==t.key.type||(r=t.key):"ClassPrivateProperty"!==e&&"ClassAccessorProperty"!==e||(r=t.key)}if(r){var n,s;if("Identifier"===r.type)i={pos:null==(n=r.loc)?void 0:n.start,name:(null==(s=r.loc)?void 0:s.identifierName)||r.name};else if("PrivateName"===r.type){var a;i={pos:null==(a=r.loc)?void 0:a.start,name:"#"+r.id.name}}else if("StringLiteral"===r.type){var o;i={pos:null==(o=r.loc)?void 0:o.start,name:r.value}}return i}}},39517:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(63555),n=i(82208);t.default=function(e,t){if((0,r.isStatement)(e))return e;let i,s=!1;if((0,r.isClass)(e))s=!0,i="ClassDeclaration";else if((0,r.isFunction)(e))s=!0,i="FunctionDeclaration";else if((0,r.isAssignmentExpression)(e))return(0,n.expressionStatement)(e);if(s&&!e.id&&(i=!1),!i){if(t)return!1;throw new Error(`cannot turn ${e.type} to a statement`)}return e.type=i,e}},40453:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(e===t)return!0;if(null==e)return!1;if(r.ALIAS_KEYS[t])return!1;const i=r.FLIPPED_ALIAS_KEYS[t];return!(null==i||!i.includes(e))};var r=i(35108)},41175:(e,t,i)=>{var r=i(65994).e,n=i(10626);function s(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t){var i=e.entry;for(e.entry=null;i;){var r=i.callback;t.pendingcb--,r(undefined),i=i.next}t.corkedRequestsFree.next=e}(t,e)}}e.exports=T;var a,o=!r.browser&&["v0.10","v0.9."].indexOf(r.version.slice(0,5))>-1?setImmediate:n.nextTick;T.WritableState=y;var l=Object.create(i(26571));l.inherits=i(25003);var p,c={deprecate:i(96208)},u=i(5372),h=i(58777).Buffer,d=(void 0!==i.g?i.g:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},f=i(89779);function m(){}function y(e,t){a=a||i(49837),e=e||{};var r=t instanceof a;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var l=e.highWaterMark,p=e.writableHighWaterMark,c=this.objectMode?16:16384;this.highWaterMark=l||0===l?l:r&&(p||0===p)?p:c,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var u=!1===e.decodeStrings;this.decodeStrings=!u,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var i=e._writableState,r=i.sync,s=i.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(i),t)!function(e,t,i,r,s){--t.pendingcb,i?(n.nextTick(s,r),n.nextTick(v,e,t),e._writableState.errorEmitted=!0,e.emit("error",r)):(s(r),e._writableState.errorEmitted=!0,e.emit("error",r),v(e,t))}(e,i,r,t,s);else{var a=x(i);a||i.corked||i.bufferProcessing||!i.bufferedRequest||S(e,i),r?o(b,e,i,a,s):b(e,i,a,s)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new s(this)}function T(e){if(a=a||i(49837),!(p.call(T,this)||this instanceof a))return new T(e);this._writableState=new y(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),u.call(this)}function g(e,t,i,r,n,s,a){t.writelen=r,t.writecb=a,t.writing=!0,t.sync=!0,i?e._writev(n,t.onwrite):e._write(n,s,t.onwrite),t.sync=!1}function b(e,t,i,r){i||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),v(e,t)}function S(e,t){t.bufferProcessing=!0;var i=t.bufferedRequest;if(e._writev&&i&&i.next){var r=t.bufferedRequestCount,n=new Array(r),a=t.corkedRequestsFree;a.entry=i;for(var o=0,l=!0;i;)n[o]=i,i.isBuf||(l=!1),i=i.next,o+=1;n.allBuffers=l,g(e,t,!0,t.length,n,"",a.finish),t.pendingcb++,t.lastBufferedRequest=null,a.next?(t.corkedRequestsFree=a.next,a.next=null):t.corkedRequestsFree=new s(t),t.bufferedRequestCount=0}else{for(;i;){var p=i.chunk,c=i.encoding,u=i.callback;if(g(e,t,!1,t.objectMode?1:p.length,p,c,u),i=i.next,t.bufferedRequestCount--,t.writing)break}null===i&&(t.lastBufferedRequest=null)}t.bufferedRequest=i,t.bufferProcessing=!1}function x(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function E(e,t){e._final((function(i){t.pendingcb--,i&&e.emit("error",i),t.prefinished=!0,e.emit("prefinish"),v(e,t)}))}function v(e,t){var i=x(t);return i&&(function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,n.nextTick(E,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),i}l.inherits(T,u),y.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(y.prototype,"buffer",{get:c.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(p=Function.prototype[Symbol.hasInstance],Object.defineProperty(T,Symbol.hasInstance,{value:function(e){return!!p.call(this,e)||this===T&&e&&e._writableState instanceof y}})):p=function(e){return e instanceof this},T.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},T.prototype.write=function(e,t,i){var r,s=this._writableState,a=!1,o=!s.objectMode&&(r=e,h.isBuffer(r)||r instanceof d);return o&&!h.isBuffer(e)&&(e=function(e){return h.from(e)}(e)),"function"==typeof t&&(i=t,t=null),o?t="buffer":t||(t=s.defaultEncoding),"function"!=typeof i&&(i=m),s.ended?function(e,t){var i=new Error("write after end");e.emit("error",i),n.nextTick(t,i)}(this,i):(o||function(e,t,i,r){var s=!0,a=!1;return null===i?a=new TypeError("May not write null values to stream"):"string"==typeof i||void 0===i||t.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(e.emit("error",a),n.nextTick(r,a),s=!1),s}(this,s,e,i))&&(s.pendingcb++,a=function(e,t,i,r,n,s){if(!i){var a=function(e,t,i){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=h.from(t,i)),t}(t,r,n);r!==a&&(i=!0,n="buffer",r=a)}var o=t.objectMode?1:r.length;t.length+=o;var l=t.length<t.highWaterMark;if(l||(t.needDrain=!0),t.writing||t.corked){var p=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:n,isBuf:i,callback:s,next:null},p?p.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else g(e,t,!1,o,r,n,s);return l}(this,s,o,e,t,i)),a},T.prototype.cork=function(){this._writableState.corked++},T.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||S(this,e))},T.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(T.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),T.prototype._write=function(e,t,i){i(new Error("_write() is not implemented"))},T.prototype._writev=null,T.prototype.end=function(e,t,i){var r=this._writableState;"function"==typeof e?(i=e,e=null,t=null):"function"==typeof t&&(i=t,t=null),null!=e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||function(e,t,i){t.ending=!0,v(e,t),i&&(t.finished?n.nextTick(i):e.once("finish",i)),t.ended=!0,e.writable=!1}(this,r,i)},Object.defineProperty(T.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),T.prototype.destroy=f.destroy,T.prototype._undestroy=f.undestroy,T.prototype._destroy=function(e,t){this.end(),t(e)}},41641:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){const t=[];for(let i=0;i<e.children.length;i++){let s=e.children[i];(0,r.isJSXText)(s)?(0,n.default)(s,t):((0,r.isJSXExpressionContainer)(s)&&(s=s.expression),(0,r.isJSXEmptyExpression)(s)||t.push(s))}return t};var r=i(63555),n=i(95694)},42018:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,n.isSuper)(e.object))throw new Error("Cannot prepend node to super property access (`super.foo`).");return e.object=(0,r.memberExpression)(t,e.object),e};var r=i(82208),n=i(45741)},44304:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.isImportDefaultSpecifier)(e)||(0,r.isIdentifier)(e.imported||e.exported,{name:"default"})};var r=i(63555)},45080:(e,t,i)=>{var r=i(10441),n=i(11265),s=i(79696).Buffer,a=i(5339),o=i(84913),l=i(62053),p=i(23457);function c(e,t,i){o.call(this),this._cache=new h,this._cipher=new l.AES(t),this._prev=s.from(i),this._mode=e,this._autopadding=!0}i(25003)(c,o),c.prototype._update=function(e){var t,i;this._cache.add(e);for(var r=[];t=this._cache.get();)i=this._mode.encrypt(this,t),r.push(i);return s.concat(r)};var u=s.alloc(16,16);function h(){this.cache=s.allocUnsafe(0)}function d(e,t,i){var o=r[e.toLowerCase()];if(!o)throw new TypeError("invalid suite type");if("string"==typeof t&&(t=s.from(t)),t.length!==o.key/8)throw new TypeError("invalid key length "+t.length);if("string"==typeof i&&(i=s.from(i)),"GCM"!==o.mode&&i.length!==o.iv)throw new TypeError("invalid iv length "+i.length);return"stream"===o.type?new a(o.module,t,i):"auth"===o.type?new n(o.module,t,i):new c(o.module,t,i)}c.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return e=this._mode.encrypt(this,e),this._cipher.scrub(),e;if(!e.equals(u))throw this._cipher.scrub(),new Error("data not multiple of block length")},c.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},h.prototype.add=function(e){this.cache=s.concat([this.cache,e])},h.prototype.get=function(){if(this.cache.length>15){var e=this.cache.slice(0,16);return this.cache=this.cache.slice(16),e}return null},h.prototype.flush=function(){for(var e=16-this.cache.length,t=s.allocUnsafe(e),i=-1;++i<e;)t.writeUInt8(e,i);return s.concat([this.cache,t])},t.createCipheriv=d,t.createCipher=function(e,t){var i=r[e.toLowerCase()];if(!i)throw new TypeError("invalid suite type");var n=p(t,!1,i.key,i.iv);return d(e,n.key,n.iv)}},45741:(e,t,i)=>{var r=i(65994).e;Object.defineProperty(t,"__esModule",{value:!0});var n={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(t,"__internal__deprecationWarning",{enumerable:!0,get:function(){return Te.default}}),Object.defineProperty(t,"addComment",{enumerable:!0,get:function(){return S.default}}),Object.defineProperty(t,"addComments",{enumerable:!0,get:function(){return x.default}}),Object.defineProperty(t,"appendToMemberExpression",{enumerable:!0,get:function(){return R.default}}),Object.defineProperty(t,"assertNode",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"buildMatchMemberExpression",{enumerable:!0,get:function(){return me.default}}),Object.defineProperty(t,"clone",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(t,"cloneDeep",{enumerable:!0,get:function(){return T.default}}),Object.defineProperty(t,"cloneDeepWithoutLoc",{enumerable:!0,get:function(){return g.default}}),Object.defineProperty(t,"cloneNode",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(t,"cloneWithoutLoc",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(t,"createFlowUnionType",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"createTSUnionType",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(t,"createTypeAnnotationBasedOnTypeof",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"createUnionTypeAnnotation",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"ensureBlock",{enumerable:!0,get:function(){return N.default}}),Object.defineProperty(t,"getAssignmentIdentifiers",{enumerable:!0,get:function(){return Y.default}}),Object.defineProperty(t,"getBindingIdentifiers",{enumerable:!0,get:function(){return J.default}}),Object.defineProperty(t,"getFunctionName",{enumerable:!0,get:function(){return W.default}}),Object.defineProperty(t,"getOuterBindingIdentifiers",{enumerable:!0,get:function(){return X.default}}),Object.defineProperty(t,"inheritInnerComments",{enumerable:!0,get:function(){return E.default}}),Object.defineProperty(t,"inheritLeadingComments",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(t,"inheritTrailingComments",{enumerable:!0,get:function(){return w.default}}),Object.defineProperty(t,"inherits",{enumerable:!0,get:function(){return U.default}}),Object.defineProperty(t,"inheritsComments",{enumerable:!0,get:function(){return P.default}}),Object.defineProperty(t,"is",{enumerable:!0,get:function(){return Q.default}}),Object.defineProperty(t,"isBinding",{enumerable:!0,get:function(){return Z.default}}),Object.defineProperty(t,"isBlockScoped",{enumerable:!0,get:function(){return ee.default}}),Object.defineProperty(t,"isImmutable",{enumerable:!0,get:function(){return te.default}}),Object.defineProperty(t,"isLet",{enumerable:!0,get:function(){return ie.default}}),Object.defineProperty(t,"isNode",{enumerable:!0,get:function(){return re.default}}),Object.defineProperty(t,"isNodesEquivalent",{enumerable:!0,get:function(){return ne.default}}),Object.defineProperty(t,"isPlaceholderType",{enumerable:!0,get:function(){return se.default}}),Object.defineProperty(t,"isReferenced",{enumerable:!0,get:function(){return ae.default}}),Object.defineProperty(t,"isScope",{enumerable:!0,get:function(){return oe.default}}),Object.defineProperty(t,"isSpecifierDefault",{enumerable:!0,get:function(){return le.default}}),Object.defineProperty(t,"isType",{enumerable:!0,get:function(){return pe.default}}),Object.defineProperty(t,"isValidES3Identifier",{enumerable:!0,get:function(){return ce.default}}),Object.defineProperty(t,"isValidIdentifier",{enumerable:!0,get:function(){return ue.default}}),Object.defineProperty(t,"isVar",{enumerable:!0,get:function(){return he.default}}),Object.defineProperty(t,"matchesPattern",{enumerable:!0,get:function(){return de.default}}),Object.defineProperty(t,"prependToMemberExpression",{enumerable:!0,get:function(){return V.default}}),t.react=void 0,Object.defineProperty(t,"removeComments",{enumerable:!0,get:function(){return A.default}}),Object.defineProperty(t,"removeProperties",{enumerable:!0,get:function(){return K.default}}),Object.defineProperty(t,"removePropertiesDeep",{enumerable:!0,get:function(){return $.default}}),Object.defineProperty(t,"removeTypeDuplicates",{enumerable:!0,get:function(){return q.default}}),Object.defineProperty(t,"shallowEqual",{enumerable:!0,get:function(){return G.default}}),Object.defineProperty(t,"toBindingIdentifierName",{enumerable:!0,get:function(){return O.default}}),Object.defineProperty(t,"toBlock",{enumerable:!0,get:function(){return k.default}}),Object.defineProperty(t,"toComputedKey",{enumerable:!0,get:function(){return _.default}}),Object.defineProperty(t,"toExpression",{enumerable:!0,get:function(){return M.default}}),Object.defineProperty(t,"toIdentifier",{enumerable:!0,get:function(){return L.default}}),Object.defineProperty(t,"toKeyAlias",{enumerable:!0,get:function(){return D.default}}),Object.defineProperty(t,"toStatement",{enumerable:!0,get:function(){return B.default}}),Object.defineProperty(t,"traverse",{enumerable:!0,get:function(){return z.default}}),Object.defineProperty(t,"traverseFast",{enumerable:!0,get:function(){return H.default}}),Object.defineProperty(t,"validate",{enumerable:!0,get:function(){return fe.default}}),Object.defineProperty(t,"valueToNode",{enumerable:!0,get:function(){return F.default}});var s=i(84579),a=i(79959),o=i(41641),l=i(17615),p=i(48051);Object.keys(p).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===p[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return p[e]}}))}));var c=i(93971),u=i(64008),h=i(89912),d=i(62062);Object.keys(d).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===d[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return d[e]}}))}));var f=i(82208);Object.keys(f).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===f[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return f[e]}}))}));var m=i(16938),y=i(16738),T=i(81339),g=i(63646),b=i(12520),S=i(15626),x=i(64697),E=i(25765),v=i(62563),P=i(60616),w=i(6057),A=i(38052),I=i(82129);Object.keys(I).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===I[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return I[e]}}))}));var C=i(62811);Object.keys(C).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===C[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return C[e]}}))}));var N=i(89859),O=i(81625),k=i(78529),_=i(70470),M=i(17916),L=i(29221),D=i(65987),B=i(39517),F=i(59563),j=i(35108);Object.keys(j).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===j[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return j[e]}}))}));var R=i(55186),U=i(479),V=i(42018),K=i(65830),$=i(37524),q=i(97884),Y=i(55110),J=i(68830),X=i(61957),W=i(35174),z=i(6564);Object.keys(z).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===z[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return z[e]}}))}));var H=i(49114),G=i(3903),Q=i(23781),Z=i(99636),ee=i(73416),te=i(23153),ie=i(62816),re=i(25129),ne=i(47188),se=i(59892),ae=i(55354),oe=i(61625),le=i(44304),pe=i(40453),ce=i(56773),ue=i(26228),he=i(60124),de=i(68740),fe=i(59751),me=i(83872),ye=i(63555);Object.keys(ye).forEach((function(e){"default"!==e&&"__esModule"!==e&&(Object.prototype.hasOwnProperty.call(n,e)||e in t&&t[e]===ye[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return ye[e]}}))}));var Te=i(74641),ge=i(713);t.react={isReactComponent:s.default,isCompatTag:a.default,buildChildren:o.default},t.toSequenceExpression=ge.default,r.env.BABEL_TYPES_8_BREAKING&&console.warn("BABEL_TYPES_8_BREAKING is not supported anymore. Use the latest Babel 8.0.0 pre-release instead!")},47188:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t,i){if("object"!=typeof t||"object"!=typeof i||null==t||null==i)return t===i;if(t.type!==i.type)return!1;const n=Object.keys(r.NODE_FIELDS[t.type]||t.type),s=r.VISITOR_KEYS[t.type];for(const r of n){const n=t[r],a=i[r];if(typeof n!=typeof a)return!1;if(null!=n||null!=a){if(null==n||null==a)return!1;if(Array.isArray(n)){if(!Array.isArray(a))return!1;if(n.length!==a.length)return!1;for(let t=0;t<n.length;t++)if(!e(n[t],a[t]))return!1}else if("object"!=typeof n||null!=s&&s.includes(r)){if(!e(n,a))return!1}else for(const e of Object.keys(n))if(n[e]!==a[e])return!1}}return!0};var r=i(35108)},48051:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.assertAccessor=function(e,t){s("Accessor",e,t)},t.assertAnyTypeAnnotation=function(e,t){s("AnyTypeAnnotation",e,t)},t.assertArgumentPlaceholder=function(e,t){s("ArgumentPlaceholder",e,t)},t.assertArrayExpression=function(e,t){s("ArrayExpression",e,t)},t.assertArrayPattern=function(e,t){s("ArrayPattern",e,t)},t.assertArrayTypeAnnotation=function(e,t){s("ArrayTypeAnnotation",e,t)},t.assertArrowFunctionExpression=function(e,t){s("ArrowFunctionExpression",e,t)},t.assertAssignmentExpression=function(e,t){s("AssignmentExpression",e,t)},t.assertAssignmentPattern=function(e,t){s("AssignmentPattern",e,t)},t.assertAwaitExpression=function(e,t){s("AwaitExpression",e,t)},t.assertBigIntLiteral=function(e,t){s("BigIntLiteral",e,t)},t.assertBinary=function(e,t){s("Binary",e,t)},t.assertBinaryExpression=function(e,t){s("BinaryExpression",e,t)},t.assertBindExpression=function(e,t){s("BindExpression",e,t)},t.assertBlock=function(e,t){s("Block",e,t)},t.assertBlockParent=function(e,t){s("BlockParent",e,t)},t.assertBlockStatement=function(e,t){s("BlockStatement",e,t)},t.assertBooleanLiteral=function(e,t){s("BooleanLiteral",e,t)},t.assertBooleanLiteralTypeAnnotation=function(e,t){s("BooleanLiteralTypeAnnotation",e,t)},t.assertBooleanTypeAnnotation=function(e,t){s("BooleanTypeAnnotation",e,t)},t.assertBreakStatement=function(e,t){s("BreakStatement",e,t)},t.assertCallExpression=function(e,t){s("CallExpression",e,t)},t.assertCatchClause=function(e,t){s("CatchClause",e,t)},t.assertClass=function(e,t){s("Class",e,t)},t.assertClassAccessorProperty=function(e,t){s("ClassAccessorProperty",e,t)},t.assertClassBody=function(e,t){s("ClassBody",e,t)},t.assertClassDeclaration=function(e,t){s("ClassDeclaration",e,t)},t.assertClassExpression=function(e,t){s("ClassExpression",e,t)},t.assertClassImplements=function(e,t){s("ClassImplements",e,t)},t.assertClassMethod=function(e,t){s("ClassMethod",e,t)},t.assertClassPrivateMethod=function(e,t){s("ClassPrivateMethod",e,t)},t.assertClassPrivateProperty=function(e,t){s("ClassPrivateProperty",e,t)},t.assertClassProperty=function(e,t){s("ClassProperty",e,t)},t.assertCompletionStatement=function(e,t){s("CompletionStatement",e,t)},t.assertConditional=function(e,t){s("Conditional",e,t)},t.assertConditionalExpression=function(e,t){s("ConditionalExpression",e,t)},t.assertContinueStatement=function(e,t){s("ContinueStatement",e,t)},t.assertDebuggerStatement=function(e,t){s("DebuggerStatement",e,t)},t.assertDecimalLiteral=function(e,t){s("DecimalLiteral",e,t)},t.assertDeclaration=function(e,t){s("Declaration",e,t)},t.assertDeclareClass=function(e,t){s("DeclareClass",e,t)},t.assertDeclareExportAllDeclaration=function(e,t){s("DeclareExportAllDeclaration",e,t)},t.assertDeclareExportDeclaration=function(e,t){s("DeclareExportDeclaration",e,t)},t.assertDeclareFunction=function(e,t){s("DeclareFunction",e,t)},t.assertDeclareInterface=function(e,t){s("DeclareInterface",e,t)},t.assertDeclareModule=function(e,t){s("DeclareModule",e,t)},t.assertDeclareModuleExports=function(e,t){s("DeclareModuleExports",e,t)},t.assertDeclareOpaqueType=function(e,t){s("DeclareOpaqueType",e,t)},t.assertDeclareTypeAlias=function(e,t){s("DeclareTypeAlias",e,t)},t.assertDeclareVariable=function(e,t){s("DeclareVariable",e,t)},t.assertDeclaredPredicate=function(e,t){s("DeclaredPredicate",e,t)},t.assertDecorator=function(e,t){s("Decorator",e,t)},t.assertDirective=function(e,t){s("Directive",e,t)},t.assertDirectiveLiteral=function(e,t){s("DirectiveLiteral",e,t)},t.assertDoExpression=function(e,t){s("DoExpression",e,t)},t.assertDoWhileStatement=function(e,t){s("DoWhileStatement",e,t)},t.assertEmptyStatement=function(e,t){s("EmptyStatement",e,t)},t.assertEmptyTypeAnnotation=function(e,t){s("EmptyTypeAnnotation",e,t)},t.assertEnumBody=function(e,t){s("EnumBody",e,t)},t.assertEnumBooleanBody=function(e,t){s("EnumBooleanBody",e,t)},t.assertEnumBooleanMember=function(e,t){s("EnumBooleanMember",e,t)},t.assertEnumDeclaration=function(e,t){s("EnumDeclaration",e,t)},t.assertEnumDefaultedMember=function(e,t){s("EnumDefaultedMember",e,t)},t.assertEnumMember=function(e,t){s("EnumMember",e,t)},t.assertEnumNumberBody=function(e,t){s("EnumNumberBody",e,t)},t.assertEnumNumberMember=function(e,t){s("EnumNumberMember",e,t)},t.assertEnumStringBody=function(e,t){s("EnumStringBody",e,t)},t.assertEnumStringMember=function(e,t){s("EnumStringMember",e,t)},t.assertEnumSymbolBody=function(e,t){s("EnumSymbolBody",e,t)},t.assertExistsTypeAnnotation=function(e,t){s("ExistsTypeAnnotation",e,t)},t.assertExportAllDeclaration=function(e,t){s("ExportAllDeclaration",e,t)},t.assertExportDeclaration=function(e,t){s("ExportDeclaration",e,t)},t.assertExportDefaultDeclaration=function(e,t){s("ExportDefaultDeclaration",e,t)},t.assertExportDefaultSpecifier=function(e,t){s("ExportDefaultSpecifier",e,t)},t.assertExportNamedDeclaration=function(e,t){s("ExportNamedDeclaration",e,t)},t.assertExportNamespaceSpecifier=function(e,t){s("ExportNamespaceSpecifier",e,t)},t.assertExportSpecifier=function(e,t){s("ExportSpecifier",e,t)},t.assertExpression=function(e,t){s("Expression",e,t)},t.assertExpressionStatement=function(e,t){s("ExpressionStatement",e,t)},t.assertExpressionWrapper=function(e,t){s("ExpressionWrapper",e,t)},t.assertFile=function(e,t){s("File",e,t)},t.assertFlow=function(e,t){s("Flow",e,t)},t.assertFlowBaseAnnotation=function(e,t){s("FlowBaseAnnotation",e,t)},t.assertFlowDeclaration=function(e,t){s("FlowDeclaration",e,t)},t.assertFlowPredicate=function(e,t){s("FlowPredicate",e,t)},t.assertFlowType=function(e,t){s("FlowType",e,t)},t.assertFor=function(e,t){s("For",e,t)},t.assertForInStatement=function(e,t){s("ForInStatement",e,t)},t.assertForOfStatement=function(e,t){s("ForOfStatement",e,t)},t.assertForStatement=function(e,t){s("ForStatement",e,t)},t.assertForXStatement=function(e,t){s("ForXStatement",e,t)},t.assertFunction=function(e,t){s("Function",e,t)},t.assertFunctionDeclaration=function(e,t){s("FunctionDeclaration",e,t)},t.assertFunctionExpression=function(e,t){s("FunctionExpression",e,t)},t.assertFunctionParameter=function(e,t){s("FunctionParameter",e,t)},t.assertFunctionParent=function(e,t){s("FunctionParent",e,t)},t.assertFunctionTypeAnnotation=function(e,t){s("FunctionTypeAnnotation",e,t)},t.assertFunctionTypeParam=function(e,t){s("FunctionTypeParam",e,t)},t.assertGenericTypeAnnotation=function(e,t){s("GenericTypeAnnotation",e,t)},t.assertIdentifier=function(e,t){s("Identifier",e,t)},t.assertIfStatement=function(e,t){s("IfStatement",e,t)},t.assertImmutable=function(e,t){s("Immutable",e,t)},t.assertImport=function(e,t){s("Import",e,t)},t.assertImportAttribute=function(e,t){s("ImportAttribute",e,t)},t.assertImportDeclaration=function(e,t){s("ImportDeclaration",e,t)},t.assertImportDefaultSpecifier=function(e,t){s("ImportDefaultSpecifier",e,t)},t.assertImportExpression=function(e,t){s("ImportExpression",e,t)},t.assertImportNamespaceSpecifier=function(e,t){s("ImportNamespaceSpecifier",e,t)},t.assertImportOrExportDeclaration=function(e,t){s("ImportOrExportDeclaration",e,t)},t.assertImportSpecifier=function(e,t){s("ImportSpecifier",e,t)},t.assertIndexedAccessType=function(e,t){s("IndexedAccessType",e,t)},t.assertInferredPredicate=function(e,t){s("InferredPredicate",e,t)},t.assertInterfaceDeclaration=function(e,t){s("InterfaceDeclaration",e,t)},t.assertInterfaceExtends=function(e,t){s("InterfaceExtends",e,t)},t.assertInterfaceTypeAnnotation=function(e,t){s("InterfaceTypeAnnotation",e,t)},t.assertInterpreterDirective=function(e,t){s("InterpreterDirective",e,t)},t.assertIntersectionTypeAnnotation=function(e,t){s("IntersectionTypeAnnotation",e,t)},t.assertJSX=function(e,t){s("JSX",e,t)},t.assertJSXAttribute=function(e,t){s("JSXAttribute",e,t)},t.assertJSXClosingElement=function(e,t){s("JSXClosingElement",e,t)},t.assertJSXClosingFragment=function(e,t){s("JSXClosingFragment",e,t)},t.assertJSXElement=function(e,t){s("JSXElement",e,t)},t.assertJSXEmptyExpression=function(e,t){s("JSXEmptyExpression",e,t)},t.assertJSXExpressionContainer=function(e,t){s("JSXExpressionContainer",e,t)},t.assertJSXFragment=function(e,t){s("JSXFragment",e,t)},t.assertJSXIdentifier=function(e,t){s("JSXIdentifier",e,t)},t.assertJSXMemberExpression=function(e,t){s("JSXMemberExpression",e,t)},t.assertJSXNamespacedName=function(e,t){s("JSXNamespacedName",e,t)},t.assertJSXOpeningElement=function(e,t){s("JSXOpeningElement",e,t)},t.assertJSXOpeningFragment=function(e,t){s("JSXOpeningFragment",e,t)},t.assertJSXSpreadAttribute=function(e,t){s("JSXSpreadAttribute",e,t)},t.assertJSXSpreadChild=function(e,t){s("JSXSpreadChild",e,t)},t.assertJSXText=function(e,t){s("JSXText",e,t)},t.assertLVal=function(e,t){s("LVal",e,t)},t.assertLabeledStatement=function(e,t){s("LabeledStatement",e,t)},t.assertLiteral=function(e,t){s("Literal",e,t)},t.assertLogicalExpression=function(e,t){s("LogicalExpression",e,t)},t.assertLoop=function(e,t){s("Loop",e,t)},t.assertMemberExpression=function(e,t){s("MemberExpression",e,t)},t.assertMetaProperty=function(e,t){s("MetaProperty",e,t)},t.assertMethod=function(e,t){s("Method",e,t)},t.assertMiscellaneous=function(e,t){s("Miscellaneous",e,t)},t.assertMixedTypeAnnotation=function(e,t){s("MixedTypeAnnotation",e,t)},t.assertModuleDeclaration=function(e,t){(0,n.default)("assertModuleDeclaration","assertImportOrExportDeclaration"),s("ModuleDeclaration",e,t)},t.assertModuleExpression=function(e,t){s("ModuleExpression",e,t)},t.assertModuleSpecifier=function(e,t){s("ModuleSpecifier",e,t)},t.assertNewExpression=function(e,t){s("NewExpression",e,t)},t.assertNoop=function(e,t){s("Noop",e,t)},t.assertNullLiteral=function(e,t){s("NullLiteral",e,t)},t.assertNullLiteralTypeAnnotation=function(e,t){s("NullLiteralTypeAnnotation",e,t)},t.assertNullableTypeAnnotation=function(e,t){s("NullableTypeAnnotation",e,t)},t.assertNumberLiteral=function(e,t){(0,n.default)("assertNumberLiteral","assertNumericLiteral"),s("NumberLiteral",e,t)},t.assertNumberLiteralTypeAnnotation=function(e,t){s("NumberLiteralTypeAnnotation",e,t)},t.assertNumberTypeAnnotation=function(e,t){s("NumberTypeAnnotation",e,t)},t.assertNumericLiteral=function(e,t){s("NumericLiteral",e,t)},t.assertObjectExpression=function(e,t){s("ObjectExpression",e,t)},t.assertObjectMember=function(e,t){s("ObjectMember",e,t)},t.assertObjectMethod=function(e,t){s("ObjectMethod",e,t)},t.assertObjectPattern=function(e,t){s("ObjectPattern",e,t)},t.assertObjectProperty=function(e,t){s("ObjectProperty",e,t)},t.assertObjectTypeAnnotation=function(e,t){s("ObjectTypeAnnotation",e,t)},t.assertObjectTypeCallProperty=function(e,t){s("ObjectTypeCallProperty",e,t)},t.assertObjectTypeIndexer=function(e,t){s("ObjectTypeIndexer",e,t)},t.assertObjectTypeInternalSlot=function(e,t){s("ObjectTypeInternalSlot",e,t)},t.assertObjectTypeProperty=function(e,t){s("ObjectTypeProperty",e,t)},t.assertObjectTypeSpreadProperty=function(e,t){s("ObjectTypeSpreadProperty",e,t)},t.assertOpaqueType=function(e,t){s("OpaqueType",e,t)},t.assertOptionalCallExpression=function(e,t){s("OptionalCallExpression",e,t)},t.assertOptionalIndexedAccessType=function(e,t){s("OptionalIndexedAccessType",e,t)},t.assertOptionalMemberExpression=function(e,t){s("OptionalMemberExpression",e,t)},t.assertParenthesizedExpression=function(e,t){s("ParenthesizedExpression",e,t)},t.assertPattern=function(e,t){s("Pattern",e,t)},t.assertPatternLike=function(e,t){s("PatternLike",e,t)},t.assertPipelineBareFunction=function(e,t){s("PipelineBareFunction",e,t)},t.assertPipelinePrimaryTopicReference=function(e,t){s("PipelinePrimaryTopicReference",e,t)},t.assertPipelineTopicExpression=function(e,t){s("PipelineTopicExpression",e,t)},t.assertPlaceholder=function(e,t){s("Placeholder",e,t)},t.assertPrivate=function(e,t){s("Private",e,t)},t.assertPrivateName=function(e,t){s("PrivateName",e,t)},t.assertProgram=function(e,t){s("Program",e,t)},t.assertProperty=function(e,t){s("Property",e,t)},t.assertPureish=function(e,t){s("Pureish",e,t)},t.assertQualifiedTypeIdentifier=function(e,t){s("QualifiedTypeIdentifier",e,t)},t.assertRecordExpression=function(e,t){s("RecordExpression",e,t)},t.assertRegExpLiteral=function(e,t){s("RegExpLiteral",e,t)},t.assertRegexLiteral=function(e,t){(0,n.default)("assertRegexLiteral","assertRegExpLiteral"),s("RegexLiteral",e,t)},t.assertRestElement=function(e,t){s("RestElement",e,t)},t.assertRestProperty=function(e,t){(0,n.default)("assertRestProperty","assertRestElement"),s("RestProperty",e,t)},t.assertReturnStatement=function(e,t){s("ReturnStatement",e,t)},t.assertScopable=function(e,t){s("Scopable",e,t)},t.assertSequenceExpression=function(e,t){s("SequenceExpression",e,t)},t.assertSpreadElement=function(e,t){s("SpreadElement",e,t)},t.assertSpreadProperty=function(e,t){(0,n.default)("assertSpreadProperty","assertSpreadElement"),s("SpreadProperty",e,t)},t.assertStandardized=function(e,t){s("Standardized",e,t)},t.assertStatement=function(e,t){s("Statement",e,t)},t.assertStaticBlock=function(e,t){s("StaticBlock",e,t)},t.assertStringLiteral=function(e,t){s("StringLiteral",e,t)},t.assertStringLiteralTypeAnnotation=function(e,t){s("StringLiteralTypeAnnotation",e,t)},t.assertStringTypeAnnotation=function(e,t){s("StringTypeAnnotation",e,t)},t.assertSuper=function(e,t){s("Super",e,t)},t.assertSwitchCase=function(e,t){s("SwitchCase",e,t)},t.assertSwitchStatement=function(e,t){s("SwitchStatement",e,t)},t.assertSymbolTypeAnnotation=function(e,t){s("SymbolTypeAnnotation",e,t)},t.assertTSAnyKeyword=function(e,t){s("TSAnyKeyword",e,t)},t.assertTSArrayType=function(e,t){s("TSArrayType",e,t)},t.assertTSAsExpression=function(e,t){s("TSAsExpression",e,t)},t.assertTSBaseType=function(e,t){s("TSBaseType",e,t)},t.assertTSBigIntKeyword=function(e,t){s("TSBigIntKeyword",e,t)},t.assertTSBooleanKeyword=function(e,t){s("TSBooleanKeyword",e,t)},t.assertTSCallSignatureDeclaration=function(e,t){s("TSCallSignatureDeclaration",e,t)},t.assertTSConditionalType=function(e,t){s("TSConditionalType",e,t)},t.assertTSConstructSignatureDeclaration=function(e,t){s("TSConstructSignatureDeclaration",e,t)},t.assertTSConstructorType=function(e,t){s("TSConstructorType",e,t)},t.assertTSDeclareFunction=function(e,t){s("TSDeclareFunction",e,t)},t.assertTSDeclareMethod=function(e,t){s("TSDeclareMethod",e,t)},t.assertTSEntityName=function(e,t){s("TSEntityName",e,t)},t.assertTSEnumBody=function(e,t){s("TSEnumBody",e,t)},t.assertTSEnumDeclaration=function(e,t){s("TSEnumDeclaration",e,t)},t.assertTSEnumMember=function(e,t){s("TSEnumMember",e,t)},t.assertTSExportAssignment=function(e,t){s("TSExportAssignment",e,t)},t.assertTSExpressionWithTypeArguments=function(e,t){s("TSExpressionWithTypeArguments",e,t)},t.assertTSExternalModuleReference=function(e,t){s("TSExternalModuleReference",e,t)},t.assertTSFunctionType=function(e,t){s("TSFunctionType",e,t)},t.assertTSImportEqualsDeclaration=function(e,t){s("TSImportEqualsDeclaration",e,t)},t.assertTSImportType=function(e,t){s("TSImportType",e,t)},t.assertTSIndexSignature=function(e,t){s("TSIndexSignature",e,t)},t.assertTSIndexedAccessType=function(e,t){s("TSIndexedAccessType",e,t)},t.assertTSInferType=function(e,t){s("TSInferType",e,t)},t.assertTSInstantiationExpression=function(e,t){s("TSInstantiationExpression",e,t)},t.assertTSInterfaceBody=function(e,t){s("TSInterfaceBody",e,t)},t.assertTSInterfaceDeclaration=function(e,t){s("TSInterfaceDeclaration",e,t)},t.assertTSIntersectionType=function(e,t){s("TSIntersectionType",e,t)},t.assertTSIntrinsicKeyword=function(e,t){s("TSIntrinsicKeyword",e,t)},t.assertTSLiteralType=function(e,t){s("TSLiteralType",e,t)},t.assertTSMappedType=function(e,t){s("TSMappedType",e,t)},t.assertTSMethodSignature=function(e,t){s("TSMethodSignature",e,t)},t.assertTSModuleBlock=function(e,t){s("TSModuleBlock",e,t)},t.assertTSModuleDeclaration=function(e,t){s("TSModuleDeclaration",e,t)},t.assertTSNamedTupleMember=function(e,t){s("TSNamedTupleMember",e,t)},t.assertTSNamespaceExportDeclaration=function(e,t){s("TSNamespaceExportDeclaration",e,t)},t.assertTSNeverKeyword=function(e,t){s("TSNeverKeyword",e,t)},t.assertTSNonNullExpression=function(e,t){s("TSNonNullExpression",e,t)},t.assertTSNullKeyword=function(e,t){s("TSNullKeyword",e,t)},t.assertTSNumberKeyword=function(e,t){s("TSNumberKeyword",e,t)},t.assertTSObjectKeyword=function(e,t){s("TSObjectKeyword",e,t)},t.assertTSOptionalType=function(e,t){s("TSOptionalType",e,t)},t.assertTSParameterProperty=function(e,t){s("TSParameterProperty",e,t)},t.assertTSParenthesizedType=function(e,t){s("TSParenthesizedType",e,t)},t.assertTSPropertySignature=function(e,t){s("TSPropertySignature",e,t)},t.assertTSQualifiedName=function(e,t){s("TSQualifiedName",e,t)},t.assertTSRestType=function(e,t){s("TSRestType",e,t)},t.assertTSSatisfiesExpression=function(e,t){s("TSSatisfiesExpression",e,t)},t.assertTSStringKeyword=function(e,t){s("TSStringKeyword",e,t)},t.assertTSSymbolKeyword=function(e,t){s("TSSymbolKeyword",e,t)},t.assertTSTemplateLiteralType=function(e,t){s("TSTemplateLiteralType",e,t)},t.assertTSThisType=function(e,t){s("TSThisType",e,t)},t.assertTSTupleType=function(e,t){s("TSTupleType",e,t)},t.assertTSType=function(e,t){s("TSType",e,t)},t.assertTSTypeAliasDeclaration=function(e,t){s("TSTypeAliasDeclaration",e,t)},t.assertTSTypeAnnotation=function(e,t){s("TSTypeAnnotation",e,t)},t.assertTSTypeAssertion=function(e,t){s("TSTypeAssertion",e,t)},t.assertTSTypeElement=function(e,t){s("TSTypeElement",e,t)},t.assertTSTypeLiteral=function(e,t){s("TSTypeLiteral",e,t)},t.assertTSTypeOperator=function(e,t){s("TSTypeOperator",e,t)},t.assertTSTypeParameter=function(e,t){s("TSTypeParameter",e,t)},t.assertTSTypeParameterDeclaration=function(e,t){s("TSTypeParameterDeclaration",e,t)},t.assertTSTypeParameterInstantiation=function(e,t){s("TSTypeParameterInstantiation",e,t)},t.assertTSTypePredicate=function(e,t){s("TSTypePredicate",e,t)},t.assertTSTypeQuery=function(e,t){s("TSTypeQuery",e,t)},t.assertTSTypeReference=function(e,t){s("TSTypeReference",e,t)},t.assertTSUndefinedKeyword=function(e,t){s("TSUndefinedKeyword",e,t)},t.assertTSUnionType=function(e,t){s("TSUnionType",e,t)},t.assertTSUnknownKeyword=function(e,t){s("TSUnknownKeyword",e,t)},t.assertTSVoidKeyword=function(e,t){s("TSVoidKeyword",e,t)},t.assertTaggedTemplateExpression=function(e,t){s("TaggedTemplateExpression",e,t)},t.assertTemplateElement=function(e,t){s("TemplateElement",e,t)},t.assertTemplateLiteral=function(e,t){s("TemplateLiteral",e,t)},t.assertTerminatorless=function(e,t){s("Terminatorless",e,t)},t.assertThisExpression=function(e,t){s("ThisExpression",e,t)},t.assertThisTypeAnnotation=function(e,t){s("ThisTypeAnnotation",e,t)},t.assertThrowStatement=function(e,t){s("ThrowStatement",e,t)},t.assertTopicReference=function(e,t){s("TopicReference",e,t)},t.assertTryStatement=function(e,t){s("TryStatement",e,t)},t.assertTupleExpression=function(e,t){s("TupleExpression",e,t)},t.assertTupleTypeAnnotation=function(e,t){s("TupleTypeAnnotation",e,t)},t.assertTypeAlias=function(e,t){s("TypeAlias",e,t)},t.assertTypeAnnotation=function(e,t){s("TypeAnnotation",e,t)},t.assertTypeCastExpression=function(e,t){s("TypeCastExpression",e,t)},t.assertTypeParameter=function(e,t){s("TypeParameter",e,t)},t.assertTypeParameterDeclaration=function(e,t){s("TypeParameterDeclaration",e,t)},t.assertTypeParameterInstantiation=function(e,t){s("TypeParameterInstantiation",e,t)},t.assertTypeScript=function(e,t){s("TypeScript",e,t)},t.assertTypeofTypeAnnotation=function(e,t){s("TypeofTypeAnnotation",e,t)},t.assertUnaryExpression=function(e,t){s("UnaryExpression",e,t)},t.assertUnaryLike=function(e,t){s("UnaryLike",e,t)},t.assertUnionTypeAnnotation=function(e,t){s("UnionTypeAnnotation",e,t)},t.assertUpdateExpression=function(e,t){s("UpdateExpression",e,t)},t.assertUserWhitespacable=function(e,t){s("UserWhitespacable",e,t)},t.assertV8IntrinsicIdentifier=function(e,t){s("V8IntrinsicIdentifier",e,t)},t.assertVariableDeclaration=function(e,t){s("VariableDeclaration",e,t)},t.assertVariableDeclarator=function(e,t){s("VariableDeclarator",e,t)},t.assertVariance=function(e,t){s("Variance",e,t)},t.assertVoidPattern=function(e,t){s("VoidPattern",e,t)},t.assertVoidTypeAnnotation=function(e,t){s("VoidTypeAnnotation",e,t)},t.assertWhile=function(e,t){s("While",e,t)},t.assertWhileStatement=function(e,t){s("WhileStatement",e,t)},t.assertWithStatement=function(e,t){s("WithStatement",e,t)},t.assertYieldExpression=function(e,t){s("YieldExpression",e,t)};var r=i(23781),n=i(74641);function s(e,t,i){if(!(0,r.default)(e,t,i))throw new Error(`Expected type "${e}" with option ${JSON.stringify(i)}, but instead got "${t.type}".`)}},48122:(e,t,i)=>{i.d(t,{A:()=>s});var r=i(31500);function n(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,r)}return i}function s(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?n(Object(i),!0).forEach((function(t){(0,r.A)(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):n(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}},48457:(e,t,i)=>{var r=i(73261),n=i(8925),s=i(23781);const a=(0,r.defineAliasedType)("TypeScript"),o=(0,r.assertValueType)("boolean"),l=()=>({returnType:{validate:(0,r.assertNodeType)("TSTypeAnnotation","Noop"),optional:!0},typeParameters:{validate:(0,r.assertNodeType)("TSTypeParameterDeclaration","Noop"),optional:!0}});a("TSParameterProperty",{aliases:["LVal"],visitor:["parameter"],fields:{accessibility:{validate:(0,r.assertOneOf)("public","private","protected"),optional:!0},readonly:{validate:(0,r.assertValueType)("boolean"),optional:!0},parameter:{validate:(0,r.assertNodeType)("Identifier","AssignmentPattern")},override:{validate:(0,r.assertValueType)("boolean"),optional:!0},decorators:{validate:(0,r.arrayOfType)("Decorator"),optional:!0}}}),a("TSDeclareFunction",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","params","returnType"],fields:Object.assign({},(0,n.functionDeclarationCommon)(),l())}),a("TSDeclareMethod",{visitor:["decorators","key","typeParameters","params","returnType"],fields:Object.assign({},(0,n.classMethodOrDeclareMethodCommon)(),l())}),a("TSQualifiedName",{aliases:["TSEntityName"],visitor:["left","right"],fields:{left:(0,r.validateType)("TSEntityName"),right:(0,r.validateType)("Identifier")}});const p=()=>({typeParameters:(0,r.validateOptionalType)("TSTypeParameterDeclaration"),parameters:(0,r.validateArrayOfType)("ArrayPattern","Identifier","ObjectPattern","RestElement"),typeAnnotation:(0,r.validateOptionalType)("TSTypeAnnotation")}),c={aliases:["TSTypeElement"],visitor:["typeParameters","parameters","typeAnnotation"],fields:p()};a("TSCallSignatureDeclaration",c),a("TSConstructSignatureDeclaration",c);const u=()=>({key:(0,r.validateType)("Expression"),computed:{default:!1},optional:(0,r.validateOptional)(o)});a("TSPropertySignature",{aliases:["TSTypeElement"],visitor:["key","typeAnnotation"],fields:Object.assign({},u(),{readonly:(0,r.validateOptional)(o),typeAnnotation:(0,r.validateOptionalType)("TSTypeAnnotation"),kind:{optional:!0,validate:(0,r.assertOneOf)("get","set")}})}),a("TSMethodSignature",{aliases:["TSTypeElement"],visitor:["key","typeParameters","parameters","typeAnnotation"],fields:Object.assign({},p(),u(),{kind:{validate:(0,r.assertOneOf)("method","get","set")}})}),a("TSIndexSignature",{aliases:["TSTypeElement"],visitor:["parameters","typeAnnotation"],fields:{readonly:(0,r.validateOptional)(o),static:(0,r.validateOptional)(o),parameters:(0,r.validateArrayOfType)("Identifier"),typeAnnotation:(0,r.validateOptionalType)("TSTypeAnnotation")}});const h=["TSAnyKeyword","TSBooleanKeyword","TSBigIntKeyword","TSIntrinsicKeyword","TSNeverKeyword","TSNullKeyword","TSNumberKeyword","TSObjectKeyword","TSStringKeyword","TSSymbolKeyword","TSUndefinedKeyword","TSUnknownKeyword","TSVoidKeyword"];for(const e of h)a(e,{aliases:["TSType","TSBaseType"],visitor:[],fields:{}});a("TSThisType",{aliases:["TSType","TSBaseType"],visitor:[],fields:{}});const d={aliases:["TSType"],visitor:["typeParameters","parameters","typeAnnotation"]};a("TSFunctionType",Object.assign({},d,{fields:p()})),a("TSConstructorType",Object.assign({},d,{fields:Object.assign({},p(),{abstract:(0,r.validateOptional)(o)})})),a("TSTypeReference",{aliases:["TSType"],visitor:["typeName","typeParameters"],fields:{typeName:(0,r.validateType)("TSEntityName"),typeParameters:(0,r.validateOptionalType)("TSTypeParameterInstantiation")}}),a("TSTypePredicate",{aliases:["TSType"],visitor:["parameterName","typeAnnotation"],builder:["parameterName","typeAnnotation","asserts"],fields:{parameterName:(0,r.validateType)("Identifier","TSThisType"),typeAnnotation:(0,r.validateOptionalType)("TSTypeAnnotation"),asserts:(0,r.validateOptional)(o)}}),a("TSTypeQuery",{aliases:["TSType"],visitor:["exprName","typeParameters"],fields:{exprName:(0,r.validateType)("TSEntityName","TSImportType"),typeParameters:(0,r.validateOptionalType)("TSTypeParameterInstantiation")}}),a("TSTypeLiteral",{aliases:["TSType"],visitor:["members"],fields:{members:(0,r.validateArrayOfType)("TSTypeElement")}}),a("TSArrayType",{aliases:["TSType"],visitor:["elementType"],fields:{elementType:(0,r.validateType)("TSType")}}),a("TSTupleType",{aliases:["TSType"],visitor:["elementTypes"],fields:{elementTypes:(0,r.validateArrayOfType)("TSType","TSNamedTupleMember")}}),a("TSOptionalType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,r.validateType)("TSType")}}),a("TSRestType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,r.validateType)("TSType")}}),a("TSNamedTupleMember",{visitor:["label","elementType"],builder:["label","elementType","optional"],fields:{label:(0,r.validateType)("Identifier"),optional:{validate:o,default:!1},elementType:(0,r.validateType)("TSType")}});const f={aliases:["TSType"],visitor:["types"],fields:{types:(0,r.validateArrayOfType)("TSType")}};a("TSUnionType",f),a("TSIntersectionType",f),a("TSConditionalType",{aliases:["TSType"],visitor:["checkType","extendsType","trueType","falseType"],fields:{checkType:(0,r.validateType)("TSType"),extendsType:(0,r.validateType)("TSType"),trueType:(0,r.validateType)("TSType"),falseType:(0,r.validateType)("TSType")}}),a("TSInferType",{aliases:["TSType"],visitor:["typeParameter"],fields:{typeParameter:(0,r.validateType)("TSTypeParameter")}}),a("TSParenthesizedType",{aliases:["TSType"],visitor:["typeAnnotation"],fields:{typeAnnotation:(0,r.validateType)("TSType")}}),a("TSTypeOperator",{aliases:["TSType"],visitor:["typeAnnotation"],builder:["typeAnnotation","operator"],fields:{operator:{validate:(0,r.assertValueType)("string"),default:"keyof"},typeAnnotation:(0,r.validateType)("TSType")}}),a("TSIndexedAccessType",{aliases:["TSType"],visitor:["objectType","indexType"],fields:{objectType:(0,r.validateType)("TSType"),indexType:(0,r.validateType)("TSType")}}),a("TSMappedType",{aliases:["TSType"],visitor:["typeParameter","nameType","typeAnnotation"],builder:["typeParameter","typeAnnotation","nameType"],fields:Object.assign({},{typeParameter:(0,r.validateType)("TSTypeParameter")},{readonly:(0,r.validateOptional)((0,r.assertOneOf)(!0,!1,"+","-")),optional:(0,r.validateOptional)((0,r.assertOneOf)(!0,!1,"+","-")),typeAnnotation:(0,r.validateOptionalType)("TSType"),nameType:(0,r.validateOptionalType)("TSType")})}),a("TSTemplateLiteralType",{aliases:["TSType","TSBaseType"],visitor:["quasis","types"],fields:{quasis:(0,r.validateArrayOfType)("TemplateElement"),types:{validate:(0,r.chain)((0,r.assertValueType)("array"),(0,r.assertEach)((0,r.assertNodeType)("TSType")),(function(e,t,i){if(e.quasis.length!==i.length+1)throw new TypeError(`Number of ${e.type} quasis should be exactly one more than the number of types.\nExpected ${i.length+1} quasis but got ${e.quasis.length}`)}))}}}),a("TSLiteralType",{aliases:["TSType","TSBaseType"],visitor:["literal"],fields:{literal:{validate:function(){const e=(0,r.assertNodeType)("NumericLiteral","BigIntLiteral"),t=(0,r.assertOneOf)("-"),i=(0,r.assertNodeType)("NumericLiteral","StringLiteral","BooleanLiteral","BigIntLiteral","TemplateLiteral");function n(r,n,a){(0,s.default)("UnaryExpression",a)?(t(a,"operator",a.operator),e(a,"argument",a.argument)):i(r,n,a)}return n.oneOfNodeTypes=["NumericLiteral","StringLiteral","BooleanLiteral","BigIntLiteral","TemplateLiteral","UnaryExpression"],n}()}}}),a("TSExpressionWithTypeArguments",{aliases:["TSType"],visitor:["expression","typeParameters"],fields:{expression:(0,r.validateType)("TSEntityName"),typeParameters:(0,r.validateOptionalType)("TSTypeParameterInstantiation")}}),a("TSInterfaceDeclaration",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","extends","body"],fields:{declare:(0,r.validateOptional)(o),id:(0,r.validateType)("Identifier"),typeParameters:(0,r.validateOptionalType)("TSTypeParameterDeclaration"),extends:(0,r.validateOptional)((0,r.arrayOfType)("TSExpressionWithTypeArguments")),body:(0,r.validateType)("TSInterfaceBody")}}),a("TSInterfaceBody",{visitor:["body"],fields:{body:(0,r.validateArrayOfType)("TSTypeElement")}}),a("TSTypeAliasDeclaration",{aliases:["Statement","Declaration"],visitor:["id","typeParameters","typeAnnotation"],fields:{declare:(0,r.validateOptional)(o),id:(0,r.validateType)("Identifier"),typeParameters:(0,r.validateOptionalType)("TSTypeParameterDeclaration"),typeAnnotation:(0,r.validateType)("TSType")}}),a("TSInstantiationExpression",{aliases:["Expression"],visitor:["expression","typeParameters"],fields:{expression:(0,r.validateType)("Expression"),typeParameters:(0,r.validateOptionalType)("TSTypeParameterInstantiation")}});const m={aliases:["Expression","LVal","PatternLike"],visitor:["expression","typeAnnotation"],fields:{expression:(0,r.validateType)("Expression"),typeAnnotation:(0,r.validateType)("TSType")}};a("TSAsExpression",m),a("TSSatisfiesExpression",m),a("TSTypeAssertion",{aliases:["Expression","LVal","PatternLike"],visitor:["typeAnnotation","expression"],fields:{typeAnnotation:(0,r.validateType)("TSType"),expression:(0,r.validateType)("Expression")}}),a("TSEnumBody",{visitor:["members"],fields:{members:(0,r.validateArrayOfType)("TSEnumMember")}}),a("TSEnumDeclaration",{aliases:["Statement","Declaration"],visitor:["id","members"],fields:{declare:(0,r.validateOptional)(o),const:(0,r.validateOptional)(o),id:(0,r.validateType)("Identifier"),members:(0,r.validateArrayOfType)("TSEnumMember"),initializer:(0,r.validateOptionalType)("Expression"),body:(0,r.validateOptionalType)("TSEnumBody")}}),a("TSEnumMember",{visitor:["id","initializer"],fields:{id:(0,r.validateType)("Identifier","StringLiteral"),initializer:(0,r.validateOptionalType)("Expression")}}),a("TSModuleDeclaration",{aliases:["Statement","Declaration"],visitor:["id","body"],fields:Object.assign({kind:{validate:(0,r.assertOneOf)("global","module","namespace")},declare:(0,r.validateOptional)(o)},{global:(0,r.validateOptional)(o)},{id:(0,r.validateType)("Identifier","StringLiteral"),body:(0,r.validateType)("TSModuleBlock","TSModuleDeclaration")})}),a("TSModuleBlock",{aliases:["Scopable","Block","BlockParent","FunctionParent"],visitor:["body"],fields:{body:(0,r.validateArrayOfType)("Statement")}}),a("TSImportType",{aliases:["TSType"],builder:["argument","qualifier","typeParameters"],visitor:["argument","options","qualifier","typeParameters"],fields:{argument:(0,r.validateType)("StringLiteral"),qualifier:(0,r.validateOptionalType)("TSEntityName"),typeParameters:(0,r.validateOptionalType)("TSTypeParameterInstantiation"),options:{validate:(0,r.assertNodeType)("ObjectExpression"),optional:!0}}}),a("TSImportEqualsDeclaration",{aliases:["Statement","Declaration"],visitor:["id","moduleReference"],fields:Object.assign({},{isExport:(0,r.validate)(o)},{id:(0,r.validateType)("Identifier"),moduleReference:(0,r.validateType)("TSEntityName","TSExternalModuleReference"),importKind:{validate:(0,r.assertOneOf)("type","value"),optional:!0}})}),a("TSExternalModuleReference",{visitor:["expression"],fields:{expression:(0,r.validateType)("StringLiteral")}}),a("TSNonNullExpression",{aliases:["Expression","LVal","PatternLike"],visitor:["expression"],fields:{expression:(0,r.validateType)("Expression")}}),a("TSExportAssignment",{aliases:["Statement"],visitor:["expression"],fields:{expression:(0,r.validateType)("Expression")}}),a("TSNamespaceExportDeclaration",{aliases:["Statement"],visitor:["id"],fields:{id:(0,r.validateType)("Identifier")}}),a("TSTypeAnnotation",{visitor:["typeAnnotation"],fields:{typeAnnotation:{validate:(0,r.assertNodeType)("TSType")}}}),a("TSTypeParameterInstantiation",{visitor:["params"],fields:{params:(0,r.validateArrayOfType)("TSType")}}),a("TSTypeParameterDeclaration",{visitor:["params"],fields:{params:(0,r.validateArrayOfType)("TSTypeParameter")}}),a("TSTypeParameter",{builder:["constraint","default","name"],visitor:["constraint","default"],fields:{name:{validate:(0,r.assertValueType)("string")},in:{validate:(0,r.assertValueType)("boolean"),optional:!0},out:{validate:(0,r.assertValueType)("boolean"),optional:!0},const:{validate:(0,r.assertValueType)("boolean"),optional:!0},constraint:{validate:(0,r.assertNodeType)("TSType"),optional:!0},default:{validate:(0,r.assertNodeType)("TSType"),optional:!0}}})},49114:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var r=i(35108);const n=Symbol(),s=Symbol();function a(e,t,i){if(!e)return!1;const o=r.VISITOR_KEYS[e.type];if(!o)return!1;const l=t(e,i=i||{});if(void 0!==l)switch(l){case n:return!1;case s:return!0}for(const r of o){const n=e[r];if(n)if(Array.isArray(n)){for(const e of n)if(a(e,t,i))return!0}else if(a(n,t,i))return!0}return!1}a.skip=n,a.stop=s},49837:(e,t,i)=>{var r=i(10626),n=Object.keys||function(e){var t=[];for(var i in e)t.push(i);return t};e.exports=u;var s=Object.create(i(26571));s.inherits=i(25003);var a=i(3971),o=i(41175);s.inherits(u,a);for(var l=n(o.prototype),p=0;p<l.length;p++){var c=l[p];u.prototype[c]||(u.prototype[c]=o.prototype[c])}function u(e){if(!(this instanceof u))return new u(e);a.call(this,e),o.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",h)}function h(){this.allowHalfOpen||this._writableState.ended||r.nextTick(d,this)}function d(e){e.end()}Object.defineProperty(u.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(u.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),u.prototype._destroy=function(e,t){this.push(null),this.end(),r.nextTick(t,e)}},50006:e=>{e.exports=JSON.parse('{"aes-128-ecb":{"cipher":"AES","key":128,"iv":0,"mode":"ECB","type":"block"},"aes-192-ecb":{"cipher":"AES","key":192,"iv":0,"mode":"ECB","type":"block"},"aes-256-ecb":{"cipher":"AES","key":256,"iv":0,"mode":"ECB","type":"block"},"aes-128-cbc":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes-192-cbc":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes-256-cbc":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes128":{"cipher":"AES","key":128,"iv":16,"mode":"CBC","type":"block"},"aes192":{"cipher":"AES","key":192,"iv":16,"mode":"CBC","type":"block"},"aes256":{"cipher":"AES","key":256,"iv":16,"mode":"CBC","type":"block"},"aes-128-cfb":{"cipher":"AES","key":128,"iv":16,"mode":"CFB","type":"stream"},"aes-192-cfb":{"cipher":"AES","key":192,"iv":16,"mode":"CFB","type":"stream"},"aes-256-cfb":{"cipher":"AES","key":256,"iv":16,"mode":"CFB","type":"stream"},"aes-128-cfb8":{"cipher":"AES","key":128,"iv":16,"mode":"CFB8","type":"stream"},"aes-192-cfb8":{"cipher":"AES","key":192,"iv":16,"mode":"CFB8","type":"stream"},"aes-256-cfb8":{"cipher":"AES","key":256,"iv":16,"mode":"CFB8","type":"stream"},"aes-128-cfb1":{"cipher":"AES","key":128,"iv":16,"mode":"CFB1","type":"stream"},"aes-192-cfb1":{"cipher":"AES","key":192,"iv":16,"mode":"CFB1","type":"stream"},"aes-256-cfb1":{"cipher":"AES","key":256,"iv":16,"mode":"CFB1","type":"stream"},"aes-128-ofb":{"cipher":"AES","key":128,"iv":16,"mode":"OFB","type":"stream"},"aes-192-ofb":{"cipher":"AES","key":192,"iv":16,"mode":"OFB","type":"stream"},"aes-256-ofb":{"cipher":"AES","key":256,"iv":16,"mode":"OFB","type":"stream"},"aes-128-ctr":{"cipher":"AES","key":128,"iv":16,"mode":"CTR","type":"stream"},"aes-192-ctr":{"cipher":"AES","key":192,"iv":16,"mode":"CTR","type":"stream"},"aes-256-ctr":{"cipher":"AES","key":256,"iv":16,"mode":"CTR","type":"stream"},"aes-128-gcm":{"cipher":"AES","key":128,"iv":12,"mode":"GCM","type":"auth"},"aes-192-gcm":{"cipher":"AES","key":192,"iv":12,"mode":"GCM","type":"auth"},"aes-256-gcm":{"cipher":"AES","key":256,"iv":12,"mode":"GCM","type":"auth"}}')},52625:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.anyTypeAnnotation=function(){return{type:"AnyTypeAnnotation"}},t.argumentPlaceholder=function(){return{type:"ArgumentPlaceholder"}},t.arrayExpression=function(e=[]){const t={type:"ArrayExpression",elements:e},i=o.ArrayExpression;return a(i.elements,t,"elements",e,1),t},t.arrayPattern=function(e){const t={type:"ArrayPattern",elements:e},i=o.ArrayPattern;return a(i.elements,t,"elements",e,1),t},t.arrayTypeAnnotation=function(e){const t={type:"ArrayTypeAnnotation",elementType:e},i=o.ArrayTypeAnnotation;return a(i.elementType,t,"elementType",e,1),t},t.arrowFunctionExpression=function(e,t,i=!1){const r={type:"ArrowFunctionExpression",params:e,body:t,async:i,expression:null},n=o.ArrowFunctionExpression;return a(n.params,r,"params",e,1),a(n.body,r,"body",t,1),a(n.async,r,"async",i),r},t.assignmentExpression=function(e,t,i){const r={type:"AssignmentExpression",operator:e,left:t,right:i},n=o.AssignmentExpression;return a(n.operator,r,"operator",e),a(n.left,r,"left",t,1),a(n.right,r,"right",i,1),r},t.assignmentPattern=function(e,t){const i={type:"AssignmentPattern",left:e,right:t},r=o.AssignmentPattern;return a(r.left,i,"left",e,1),a(r.right,i,"right",t,1),i},t.awaitExpression=function(e){const t={type:"AwaitExpression",argument:e},i=o.AwaitExpression;return a(i.argument,t,"argument",e,1),t},t.bigIntLiteral=function(e){"bigint"==typeof e&&(e=e.toString());const t={type:"BigIntLiteral",value:e},i=o.BigIntLiteral;return a(i.value,t,"value",e),t},t.binaryExpression=function(e,t,i){const r={type:"BinaryExpression",operator:e,left:t,right:i},n=o.BinaryExpression;return a(n.operator,r,"operator",e),a(n.left,r,"left",t,1),a(n.right,r,"right",i,1),r},t.bindExpression=function(e,t){const i={type:"BindExpression",object:e,callee:t},r=o.BindExpression;return a(r.object,i,"object",e,1),a(r.callee,i,"callee",t,1),i},t.blockStatement=function(e,t=[]){const i={type:"BlockStatement",body:e,directives:t},r=o.BlockStatement;return a(r.body,i,"body",e,1),a(r.directives,i,"directives",t,1),i},t.booleanLiteral=function(e){const t={type:"BooleanLiteral",value:e},i=o.BooleanLiteral;return a(i.value,t,"value",e),t},t.booleanLiteralTypeAnnotation=function(e){const t={type:"BooleanLiteralTypeAnnotation",value:e},i=o.BooleanLiteralTypeAnnotation;return a(i.value,t,"value",e),t},t.booleanTypeAnnotation=function(){return{type:"BooleanTypeAnnotation"}},t.breakStatement=function(e=null){const t={type:"BreakStatement",label:e},i=o.BreakStatement;return a(i.label,t,"label",e,1),t},t.callExpression=function(e,t){const i={type:"CallExpression",callee:e,arguments:t},r=o.CallExpression;return a(r.callee,i,"callee",e,1),a(r.arguments,i,"arguments",t,1),i},t.catchClause=function(e=null,t){const i={type:"CatchClause",param:e,body:t},r=o.CatchClause;return a(r.param,i,"param",e,1),a(r.body,i,"body",t,1),i},t.classAccessorProperty=function(e,t=null,i=null,r=null,n=!1,s=!1){const l={type:"ClassAccessorProperty",key:e,value:t,typeAnnotation:i,decorators:r,computed:n,static:s},p=o.ClassAccessorProperty;return a(p.key,l,"key",e,1),a(p.value,l,"value",t,1),a(p.typeAnnotation,l,"typeAnnotation",i,1),a(p.decorators,l,"decorators",r,1),a(p.computed,l,"computed",n),a(p.static,l,"static",s),l},t.classBody=function(e){const t={type:"ClassBody",body:e},i=o.ClassBody;return a(i.body,t,"body",e,1),t},t.classDeclaration=function(e=null,t=null,i,r=null){const n={type:"ClassDeclaration",id:e,superClass:t,body:i,decorators:r},s=o.ClassDeclaration;return a(s.id,n,"id",e,1),a(s.superClass,n,"superClass",t,1),a(s.body,n,"body",i,1),a(s.decorators,n,"decorators",r,1),n},t.classExpression=function(e=null,t=null,i,r=null){const n={type:"ClassExpression",id:e,superClass:t,body:i,decorators:r},s=o.ClassExpression;return a(s.id,n,"id",e,1),a(s.superClass,n,"superClass",t,1),a(s.body,n,"body",i,1),a(s.decorators,n,"decorators",r,1),n},t.classImplements=function(e,t=null){const i={type:"ClassImplements",id:e,typeParameters:t},r=o.ClassImplements;return a(r.id,i,"id",e,1),a(r.typeParameters,i,"typeParameters",t,1),i},t.classMethod=function(e="method",t,i,r,n=!1,s=!1,l=!1,p=!1){const c={type:"ClassMethod",kind:e,key:t,params:i,body:r,computed:n,static:s,generator:l,async:p},u=o.ClassMethod;return a(u.kind,c,"kind",e),a(u.key,c,"key",t,1),a(u.params,c,"params",i,1),a(u.body,c,"body",r,1),a(u.computed,c,"computed",n),a(u.static,c,"static",s),a(u.generator,c,"generator",l),a(u.async,c,"async",p),c},t.classPrivateMethod=function(e="method",t,i,r,n=!1){const s={type:"ClassPrivateMethod",kind:e,key:t,params:i,body:r,static:n},l=o.ClassPrivateMethod;return a(l.kind,s,"kind",e),a(l.key,s,"key",t,1),a(l.params,s,"params",i,1),a(l.body,s,"body",r,1),a(l.static,s,"static",n),s},t.classPrivateProperty=function(e,t=null,i=null,r=!1){const n={type:"ClassPrivateProperty",key:e,value:t,decorators:i,static:r},s=o.ClassPrivateProperty;return a(s.key,n,"key",e,1),a(s.value,n,"value",t,1),a(s.decorators,n,"decorators",i,1),a(s.static,n,"static",r),n},t.classProperty=function(e,t=null,i=null,r=null,n=!1,s=!1){const l={type:"ClassProperty",key:e,value:t,typeAnnotation:i,decorators:r,computed:n,static:s},p=o.ClassProperty;return a(p.key,l,"key",e,1),a(p.value,l,"value",t,1),a(p.typeAnnotation,l,"typeAnnotation",i,1),a(p.decorators,l,"decorators",r,1),a(p.computed,l,"computed",n),a(p.static,l,"static",s),l},t.conditionalExpression=function(e,t,i){const r={type:"ConditionalExpression",test:e,consequent:t,alternate:i},n=o.ConditionalExpression;return a(n.test,r,"test",e,1),a(n.consequent,r,"consequent",t,1),a(n.alternate,r,"alternate",i,1),r},t.continueStatement=function(e=null){const t={type:"ContinueStatement",label:e},i=o.ContinueStatement;return a(i.label,t,"label",e,1),t},t.debuggerStatement=function(){return{type:"DebuggerStatement"}},t.decimalLiteral=function(e){const t={type:"DecimalLiteral",value:e},i=o.DecimalLiteral;return a(i.value,t,"value",e),t},t.declareClass=function(e,t=null,i=null,r){const n={type:"DeclareClass",id:e,typeParameters:t,extends:i,body:r},s=o.DeclareClass;return a(s.id,n,"id",e,1),a(s.typeParameters,n,"typeParameters",t,1),a(s.extends,n,"extends",i,1),a(s.body,n,"body",r,1),n},t.declareExportAllDeclaration=function(e,t=null){const i={type:"DeclareExportAllDeclaration",source:e,attributes:t},r=o.DeclareExportAllDeclaration;return a(r.source,i,"source",e,1),a(r.attributes,i,"attributes",t,1),i},t.declareExportDeclaration=function(e=null,t=null,i=null,r=null){const n={type:"DeclareExportDeclaration",declaration:e,specifiers:t,source:i,attributes:r},s=o.DeclareExportDeclaration;return a(s.declaration,n,"declaration",e,1),a(s.specifiers,n,"specifiers",t,1),a(s.source,n,"source",i,1),a(s.attributes,n,"attributes",r,1),n},t.declareFunction=function(e){const t={type:"DeclareFunction",id:e},i=o.DeclareFunction;return a(i.id,t,"id",e,1),t},t.declareInterface=function(e,t=null,i=null,r){const n={type:"DeclareInterface",id:e,typeParameters:t,extends:i,body:r},s=o.DeclareInterface;return a(s.id,n,"id",e,1),a(s.typeParameters,n,"typeParameters",t,1),a(s.extends,n,"extends",i,1),a(s.body,n,"body",r,1),n},t.declareModule=function(e,t,i=null){const r={type:"DeclareModule",id:e,body:t,kind:i},n=o.DeclareModule;return a(n.id,r,"id",e,1),a(n.body,r,"body",t,1),a(n.kind,r,"kind",i),r},t.declareModuleExports=function(e){const t={type:"DeclareModuleExports",typeAnnotation:e},i=o.DeclareModuleExports;return a(i.typeAnnotation,t,"typeAnnotation",e,1),t},t.declareOpaqueType=function(e,t=null,i=null){const r={type:"DeclareOpaqueType",id:e,typeParameters:t,supertype:i},n=o.DeclareOpaqueType;return a(n.id,r,"id",e,1),a(n.typeParameters,r,"typeParameters",t,1),a(n.supertype,r,"supertype",i,1),r},t.declareTypeAlias=function(e,t=null,i){const r={type:"DeclareTypeAlias",id:e,typeParameters:t,right:i},n=o.DeclareTypeAlias;return a(n.id,r,"id",e,1),a(n.typeParameters,r,"typeParameters",t,1),a(n.right,r,"right",i,1),r},t.declareVariable=function(e){const t={type:"DeclareVariable",id:e},i=o.DeclareVariable;return a(i.id,t,"id",e,1),t},t.declaredPredicate=function(e){const t={type:"DeclaredPredicate",value:e},i=o.DeclaredPredicate;return a(i.value,t,"value",e,1),t},t.decorator=function(e){const t={type:"Decorator",expression:e},i=o.Decorator;return a(i.expression,t,"expression",e,1),t},t.directive=function(e){const t={type:"Directive",value:e},i=o.Directive;return a(i.value,t,"value",e,1),t},t.directiveLiteral=function(e){const t={type:"DirectiveLiteral",value:e},i=o.DirectiveLiteral;return a(i.value,t,"value",e),t},t.doExpression=function(e,t=!1){const i={type:"DoExpression",body:e,async:t},r=o.DoExpression;return a(r.body,i,"body",e,1),a(r.async,i,"async",t),i},t.doWhileStatement=function(e,t){const i={type:"DoWhileStatement",test:e,body:t},r=o.DoWhileStatement;return a(r.test,i,"test",e,1),a(r.body,i,"body",t,1),i},t.emptyStatement=function(){return{type:"EmptyStatement"}},t.emptyTypeAnnotation=function(){return{type:"EmptyTypeAnnotation"}},t.enumBooleanBody=function(e){const t={type:"EnumBooleanBody",members:e,explicitType:null,hasUnknownMembers:null},i=o.EnumBooleanBody;return a(i.members,t,"members",e,1),t},t.enumBooleanMember=function(e){const t={type:"EnumBooleanMember",id:e,init:null},i=o.EnumBooleanMember;return a(i.id,t,"id",e,1),t},t.enumDeclaration=function(e,t){const i={type:"EnumDeclaration",id:e,body:t},r=o.EnumDeclaration;return a(r.id,i,"id",e,1),a(r.body,i,"body",t,1),i},t.enumDefaultedMember=function(e){const t={type:"EnumDefaultedMember",id:e},i=o.EnumDefaultedMember;return a(i.id,t,"id",e,1),t},t.enumNumberBody=function(e){const t={type:"EnumNumberBody",members:e,explicitType:null,hasUnknownMembers:null},i=o.EnumNumberBody;return a(i.members,t,"members",e,1),t},t.enumNumberMember=function(e,t){const i={type:"EnumNumberMember",id:e,init:t},r=o.EnumNumberMember;return a(r.id,i,"id",e,1),a(r.init,i,"init",t,1),i},t.enumStringBody=function(e){const t={type:"EnumStringBody",members:e,explicitType:null,hasUnknownMembers:null},i=o.EnumStringBody;return a(i.members,t,"members",e,1),t},t.enumStringMember=function(e,t){const i={type:"EnumStringMember",id:e,init:t},r=o.EnumStringMember;return a(r.id,i,"id",e,1),a(r.init,i,"init",t,1),i},t.enumSymbolBody=function(e){const t={type:"EnumSymbolBody",members:e,hasUnknownMembers:null},i=o.EnumSymbolBody;return a(i.members,t,"members",e,1),t},t.existsTypeAnnotation=function(){return{type:"ExistsTypeAnnotation"}},t.exportAllDeclaration=function(e){const t={type:"ExportAllDeclaration",source:e},i=o.ExportAllDeclaration;return a(i.source,t,"source",e,1),t},t.exportDefaultDeclaration=function(e){const t={type:"ExportDefaultDeclaration",declaration:e},i=o.ExportDefaultDeclaration;return a(i.declaration,t,"declaration",e,1),t},t.exportDefaultSpecifier=function(e){const t={type:"ExportDefaultSpecifier",exported:e},i=o.ExportDefaultSpecifier;return a(i.exported,t,"exported",e,1),t},t.exportNamedDeclaration=function(e=null,t=[],i=null){const r={type:"ExportNamedDeclaration",declaration:e,specifiers:t,source:i},n=o.ExportNamedDeclaration;return a(n.declaration,r,"declaration",e,1),a(n.specifiers,r,"specifiers",t,1),a(n.source,r,"source",i,1),r},t.exportNamespaceSpecifier=function(e){const t={type:"ExportNamespaceSpecifier",exported:e},i=o.ExportNamespaceSpecifier;return a(i.exported,t,"exported",e,1),t},t.exportSpecifier=function(e,t){const i={type:"ExportSpecifier",local:e,exported:t},r=o.ExportSpecifier;return a(r.local,i,"local",e,1),a(r.exported,i,"exported",t,1),i},t.expressionStatement=function(e){const t={type:"ExpressionStatement",expression:e},i=o.ExpressionStatement;return a(i.expression,t,"expression",e,1),t},t.file=function(e,t=null,i=null){const r={type:"File",program:e,comments:t,tokens:i},n=o.File;return a(n.program,r,"program",e,1),a(n.comments,r,"comments",t,1),a(n.tokens,r,"tokens",i),r},t.forInStatement=function(e,t,i){const r={type:"ForInStatement",left:e,right:t,body:i},n=o.ForInStatement;return a(n.left,r,"left",e,1),a(n.right,r,"right",t,1),a(n.body,r,"body",i,1),r},t.forOfStatement=function(e,t,i,r=!1){const n={type:"ForOfStatement",left:e,right:t,body:i,await:r},s=o.ForOfStatement;return a(s.left,n,"left",e,1),a(s.right,n,"right",t,1),a(s.body,n,"body",i,1),a(s.await,n,"await",r),n},t.forStatement=function(e=null,t=null,i=null,r){const n={type:"ForStatement",init:e,test:t,update:i,body:r},s=o.ForStatement;return a(s.init,n,"init",e,1),a(s.test,n,"test",t,1),a(s.update,n,"update",i,1),a(s.body,n,"body",r,1),n},t.functionDeclaration=function(e=null,t,i,r=!1,n=!1){const s={type:"FunctionDeclaration",id:e,params:t,body:i,generator:r,async:n},l=o.FunctionDeclaration;return a(l.id,s,"id",e,1),a(l.params,s,"params",t,1),a(l.body,s,"body",i,1),a(l.generator,s,"generator",r),a(l.async,s,"async",n),s},t.functionExpression=function(e=null,t,i,r=!1,n=!1){const s={type:"FunctionExpression",id:e,params:t,body:i,generator:r,async:n},l=o.FunctionExpression;return a(l.id,s,"id",e,1),a(l.params,s,"params",t,1),a(l.body,s,"body",i,1),a(l.generator,s,"generator",r),a(l.async,s,"async",n),s},t.functionTypeAnnotation=function(e=null,t,i=null,r){const n={type:"FunctionTypeAnnotation",typeParameters:e,params:t,rest:i,returnType:r},s=o.FunctionTypeAnnotation;return a(s.typeParameters,n,"typeParameters",e,1),a(s.params,n,"params",t,1),a(s.rest,n,"rest",i,1),a(s.returnType,n,"returnType",r,1),n},t.functionTypeParam=function(e=null,t){const i={type:"FunctionTypeParam",name:e,typeAnnotation:t},r=o.FunctionTypeParam;return a(r.name,i,"name",e,1),a(r.typeAnnotation,i,"typeAnnotation",t,1),i},t.genericTypeAnnotation=function(e,t=null){const i={type:"GenericTypeAnnotation",id:e,typeParameters:t},r=o.GenericTypeAnnotation;return a(r.id,i,"id",e,1),a(r.typeParameters,i,"typeParameters",t,1),i},t.identifier=function(e){const t={type:"Identifier",name:e},i=o.Identifier;return a(i.name,t,"name",e),t},t.ifStatement=function(e,t,i=null){const r={type:"IfStatement",test:e,consequent:t,alternate:i},n=o.IfStatement;return a(n.test,r,"test",e,1),a(n.consequent,r,"consequent",t,1),a(n.alternate,r,"alternate",i,1),r},t.import=function(){return{type:"Import"}},t.importAttribute=function(e,t){const i={type:"ImportAttribute",key:e,value:t},r=o.ImportAttribute;return a(r.key,i,"key",e,1),a(r.value,i,"value",t,1),i},t.importDeclaration=function(e,t){const i={type:"ImportDeclaration",specifiers:e,source:t},r=o.ImportDeclaration;return a(r.specifiers,i,"specifiers",e,1),a(r.source,i,"source",t,1),i},t.importDefaultSpecifier=function(e){const t={type:"ImportDefaultSpecifier",local:e},i=o.ImportDefaultSpecifier;return a(i.local,t,"local",e,1),t},t.importExpression=function(e,t=null){const i={type:"ImportExpression",source:e,options:t},r=o.ImportExpression;return a(r.source,i,"source",e,1),a(r.options,i,"options",t,1),i},t.importNamespaceSpecifier=function(e){const t={type:"ImportNamespaceSpecifier",local:e},i=o.ImportNamespaceSpecifier;return a(i.local,t,"local",e,1),t},t.importSpecifier=function(e,t){const i={type:"ImportSpecifier",local:e,imported:t},r=o.ImportSpecifier;return a(r.local,i,"local",e,1),a(r.imported,i,"imported",t,1),i},t.indexedAccessType=function(e,t){const i={type:"IndexedAccessType",objectType:e,indexType:t},r=o.IndexedAccessType;return a(r.objectType,i,"objectType",e,1),a(r.indexType,i,"indexType",t,1),i},t.inferredPredicate=function(){return{type:"InferredPredicate"}},t.interfaceDeclaration=function(e,t=null,i=null,r){const n={type:"InterfaceDeclaration",id:e,typeParameters:t,extends:i,body:r},s=o.InterfaceDeclaration;return a(s.id,n,"id",e,1),a(s.typeParameters,n,"typeParameters",t,1),a(s.extends,n,"extends",i,1),a(s.body,n,"body",r,1),n},t.interfaceExtends=function(e,t=null){const i={type:"InterfaceExtends",id:e,typeParameters:t},r=o.InterfaceExtends;return a(r.id,i,"id",e,1),a(r.typeParameters,i,"typeParameters",t,1),i},t.interfaceTypeAnnotation=function(e=null,t){const i={type:"InterfaceTypeAnnotation",extends:e,body:t},r=o.InterfaceTypeAnnotation;return a(r.extends,i,"extends",e,1),a(r.body,i,"body",t,1),i},t.interpreterDirective=function(e){const t={type:"InterpreterDirective",value:e},i=o.InterpreterDirective;return a(i.value,t,"value",e),t},t.intersectionTypeAnnotation=function(e){const t={type:"IntersectionTypeAnnotation",types:e},i=o.IntersectionTypeAnnotation;return a(i.types,t,"types",e,1),t},t.jSXAttribute=t.jsxAttribute=function(e,t=null){const i={type:"JSXAttribute",name:e,value:t},r=o.JSXAttribute;return a(r.name,i,"name",e,1),a(r.value,i,"value",t,1),i},t.jSXClosingElement=t.jsxClosingElement=function(e){const t={type:"JSXClosingElement",name:e},i=o.JSXClosingElement;return a(i.name,t,"name",e,1),t},t.jSXClosingFragment=t.jsxClosingFragment=function(){return{type:"JSXClosingFragment"}},t.jSXElement=t.jsxElement=function(e,t=null,i,r=null){const n={type:"JSXElement",openingElement:e,closingElement:t,children:i,selfClosing:r},s=o.JSXElement;return a(s.openingElement,n,"openingElement",e,1),a(s.closingElement,n,"closingElement",t,1),a(s.children,n,"children",i,1),a(s.selfClosing,n,"selfClosing",r),n},t.jSXEmptyExpression=t.jsxEmptyExpression=function(){return{type:"JSXEmptyExpression"}},t.jSXExpressionContainer=t.jsxExpressionContainer=function(e){const t={type:"JSXExpressionContainer",expression:e},i=o.JSXExpressionContainer;return a(i.expression,t,"expression",e,1),t},t.jSXFragment=t.jsxFragment=function(e,t,i){const r={type:"JSXFragment",openingFragment:e,closingFragment:t,children:i},n=o.JSXFragment;return a(n.openingFragment,r,"openingFragment",e,1),a(n.closingFragment,r,"closingFragment",t,1),a(n.children,r,"children",i,1),r},t.jSXIdentifier=t.jsxIdentifier=function(e){const t={type:"JSXIdentifier",name:e},i=o.JSXIdentifier;return a(i.name,t,"name",e),t},t.jSXMemberExpression=t.jsxMemberExpression=function(e,t){const i={type:"JSXMemberExpression",object:e,property:t},r=o.JSXMemberExpression;return a(r.object,i,"object",e,1),a(r.property,i,"property",t,1),i},t.jSXNamespacedName=t.jsxNamespacedName=function(e,t){const i={type:"JSXNamespacedName",namespace:e,name:t},r=o.JSXNamespacedName;return a(r.namespace,i,"namespace",e,1),a(r.name,i,"name",t,1),i},t.jSXOpeningElement=t.jsxOpeningElement=function(e,t,i=!1){const r={type:"JSXOpeningElement",name:e,attributes:t,selfClosing:i},n=o.JSXOpeningElement;return a(n.name,r,"name",e,1),a(n.attributes,r,"attributes",t,1),a(n.selfClosing,r,"selfClosing",i),r},t.jSXOpeningFragment=t.jsxOpeningFragment=function(){return{type:"JSXOpeningFragment"}},t.jSXSpreadAttribute=t.jsxSpreadAttribute=function(e){const t={type:"JSXSpreadAttribute",argument:e},i=o.JSXSpreadAttribute;return a(i.argument,t,"argument",e,1),t},t.jSXSpreadChild=t.jsxSpreadChild=function(e){const t={type:"JSXSpreadChild",expression:e},i=o.JSXSpreadChild;return a(i.expression,t,"expression",e,1),t},t.jSXText=t.jsxText=function(e){const t={type:"JSXText",value:e},i=o.JSXText;return a(i.value,t,"value",e),t},t.labeledStatement=function(e,t){const i={type:"LabeledStatement",label:e,body:t},r=o.LabeledStatement;return a(r.label,i,"label",e,1),a(r.body,i,"body",t,1),i},t.logicalExpression=function(e,t,i){const r={type:"LogicalExpression",operator:e,left:t,right:i},n=o.LogicalExpression;return a(n.operator,r,"operator",e),a(n.left,r,"left",t,1),a(n.right,r,"right",i,1),r},t.memberExpression=function(e,t,i=!1,r=null){const n={type:"MemberExpression",object:e,property:t,computed:i,optional:r},s=o.MemberExpression;return a(s.object,n,"object",e,1),a(s.property,n,"property",t,1),a(s.computed,n,"computed",i),a(s.optional,n,"optional",r),n},t.metaProperty=function(e,t){const i={type:"MetaProperty",meta:e,property:t},r=o.MetaProperty;return a(r.meta,i,"meta",e,1),a(r.property,i,"property",t,1),i},t.mixedTypeAnnotation=function(){return{type:"MixedTypeAnnotation"}},t.moduleExpression=function(e){const t={type:"ModuleExpression",body:e},i=o.ModuleExpression;return a(i.body,t,"body",e,1),t},t.newExpression=function(e,t){const i={type:"NewExpression",callee:e,arguments:t},r=o.NewExpression;return a(r.callee,i,"callee",e,1),a(r.arguments,i,"arguments",t,1),i},t.noop=function(){return{type:"Noop"}},t.nullLiteral=function(){return{type:"NullLiteral"}},t.nullLiteralTypeAnnotation=function(){return{type:"NullLiteralTypeAnnotation"}},t.nullableTypeAnnotation=function(e){const t={type:"NullableTypeAnnotation",typeAnnotation:e},i=o.NullableTypeAnnotation;return a(i.typeAnnotation,t,"typeAnnotation",e,1),t},t.numberLiteral=function(e){return(0,n.default)("NumberLiteral","NumericLiteral","The node type "),l(e)},t.numberLiteralTypeAnnotation=function(e){const t={type:"NumberLiteralTypeAnnotation",value:e},i=o.NumberLiteralTypeAnnotation;return a(i.value,t,"value",e),t},t.numberTypeAnnotation=function(){return{type:"NumberTypeAnnotation"}},t.numericLiteral=l,t.objectExpression=function(e){const t={type:"ObjectExpression",properties:e},i=o.ObjectExpression;return a(i.properties,t,"properties",e,1),t},t.objectMethod=function(e="method",t,i,r,n=!1,s=!1,l=!1){const p={type:"ObjectMethod",kind:e,key:t,params:i,body:r,computed:n,generator:s,async:l},c=o.ObjectMethod;return a(c.kind,p,"kind",e),a(c.key,p,"key",t,1),a(c.params,p,"params",i,1),a(c.body,p,"body",r,1),a(c.computed,p,"computed",n),a(c.generator,p,"generator",s),a(c.async,p,"async",l),p},t.objectPattern=function(e){const t={type:"ObjectPattern",properties:e},i=o.ObjectPattern;return a(i.properties,t,"properties",e,1),t},t.objectProperty=function(e,t,i=!1,r=!1,n=null){const s={type:"ObjectProperty",key:e,value:t,computed:i,shorthand:r,decorators:n},l=o.ObjectProperty;return a(l.key,s,"key",e,1),a(l.value,s,"value",t,1),a(l.computed,s,"computed",i),a(l.shorthand,s,"shorthand",r),a(l.decorators,s,"decorators",n,1),s},t.objectTypeAnnotation=function(e,t=[],i=[],r=[],n=!1){const s={type:"ObjectTypeAnnotation",properties:e,indexers:t,callProperties:i,internalSlots:r,exact:n},l=o.ObjectTypeAnnotation;return a(l.properties,s,"properties",e,1),a(l.indexers,s,"indexers",t,1),a(l.callProperties,s,"callProperties",i,1),a(l.internalSlots,s,"internalSlots",r,1),a(l.exact,s,"exact",n),s},t.objectTypeCallProperty=function(e){const t={type:"ObjectTypeCallProperty",value:e,static:null},i=o.ObjectTypeCallProperty;return a(i.value,t,"value",e,1),t},t.objectTypeIndexer=function(e=null,t,i,r=null){const n={type:"ObjectTypeIndexer",id:e,key:t,value:i,variance:r,static:null},s=o.ObjectTypeIndexer;return a(s.id,n,"id",e,1),a(s.key,n,"key",t,1),a(s.value,n,"value",i,1),a(s.variance,n,"variance",r,1),n},t.objectTypeInternalSlot=function(e,t,i,r,n){const s={type:"ObjectTypeInternalSlot",id:e,value:t,optional:i,static:r,method:n},l=o.ObjectTypeInternalSlot;return a(l.id,s,"id",e,1),a(l.value,s,"value",t,1),a(l.optional,s,"optional",i),a(l.static,s,"static",r),a(l.method,s,"method",n),s},t.objectTypeProperty=function(e,t,i=null){const r={type:"ObjectTypeProperty",key:e,value:t,variance:i,kind:null,method:null,optional:null,proto:null,static:null},n=o.ObjectTypeProperty;return a(n.key,r,"key",e,1),a(n.value,r,"value",t,1),a(n.variance,r,"variance",i,1),r},t.objectTypeSpreadProperty=function(e){const t={type:"ObjectTypeSpreadProperty",argument:e},i=o.ObjectTypeSpreadProperty;return a(i.argument,t,"argument",e,1),t},t.opaqueType=function(e,t=null,i=null,r){const n={type:"OpaqueType",id:e,typeParameters:t,supertype:i,impltype:r},s=o.OpaqueType;return a(s.id,n,"id",e,1),a(s.typeParameters,n,"typeParameters",t,1),a(s.supertype,n,"supertype",i,1),a(s.impltype,n,"impltype",r,1),n},t.optionalCallExpression=function(e,t,i){const r={type:"OptionalCallExpression",callee:e,arguments:t,optional:i},n=o.OptionalCallExpression;return a(n.callee,r,"callee",e,1),a(n.arguments,r,"arguments",t,1),a(n.optional,r,"optional",i),r},t.optionalIndexedAccessType=function(e,t){const i={type:"OptionalIndexedAccessType",objectType:e,indexType:t,optional:null},r=o.OptionalIndexedAccessType;return a(r.objectType,i,"objectType",e,1),a(r.indexType,i,"indexType",t,1),i},t.optionalMemberExpression=function(e,t,i=!1,r){const n={type:"OptionalMemberExpression",object:e,property:t,computed:i,optional:r},s=o.OptionalMemberExpression;return a(s.object,n,"object",e,1),a(s.property,n,"property",t,1),a(s.computed,n,"computed",i),a(s.optional,n,"optional",r),n},t.parenthesizedExpression=function(e){const t={type:"ParenthesizedExpression",expression:e},i=o.ParenthesizedExpression;return a(i.expression,t,"expression",e,1),t},t.pipelineBareFunction=function(e){const t={type:"PipelineBareFunction",callee:e},i=o.PipelineBareFunction;return a(i.callee,t,"callee",e,1),t},t.pipelinePrimaryTopicReference=function(){return{type:"PipelinePrimaryTopicReference"}},t.pipelineTopicExpression=function(e){const t={type:"PipelineTopicExpression",expression:e},i=o.PipelineTopicExpression;return a(i.expression,t,"expression",e,1),t},t.placeholder=function(e,t){const i={type:"Placeholder",expectedNode:e,name:t},r=o.Placeholder;return a(r.expectedNode,i,"expectedNode",e),a(r.name,i,"name",t,1),i},t.privateName=function(e){const t={type:"PrivateName",id:e},i=o.PrivateName;return a(i.id,t,"id",e,1),t},t.program=function(e,t=[],i="script",r=null){const n={type:"Program",body:e,directives:t,sourceType:i,interpreter:r},s=o.Program;return a(s.body,n,"body",e,1),a(s.directives,n,"directives",t,1),a(s.sourceType,n,"sourceType",i),a(s.interpreter,n,"interpreter",r,1),n},t.qualifiedTypeIdentifier=function(e,t){const i={type:"QualifiedTypeIdentifier",id:e,qualification:t},r=o.QualifiedTypeIdentifier;return a(r.id,i,"id",e,1),a(r.qualification,i,"qualification",t,1),i},t.recordExpression=function(e){const t={type:"RecordExpression",properties:e},i=o.RecordExpression;return a(i.properties,t,"properties",e,1),t},t.regExpLiteral=p,t.regexLiteral=function(e,t=""){return(0,n.default)("RegexLiteral","RegExpLiteral","The node type "),p(e,t)},t.restElement=c,t.restProperty=function(e){return(0,n.default)("RestProperty","RestElement","The node type "),c(e)},t.returnStatement=function(e=null){const t={type:"ReturnStatement",argument:e},i=o.ReturnStatement;return a(i.argument,t,"argument",e,1),t},t.sequenceExpression=function(e){const t={type:"SequenceExpression",expressions:e},i=o.SequenceExpression;return a(i.expressions,t,"expressions",e,1),t},t.spreadElement=u,t.spreadProperty=function(e){return(0,n.default)("SpreadProperty","SpreadElement","The node type "),u(e)},t.staticBlock=function(e){const t={type:"StaticBlock",body:e},i=o.StaticBlock;return a(i.body,t,"body",e,1),t},t.stringLiteral=function(e){const t={type:"StringLiteral",value:e},i=o.StringLiteral;return a(i.value,t,"value",e),t},t.stringLiteralTypeAnnotation=function(e){const t={type:"StringLiteralTypeAnnotation",value:e},i=o.StringLiteralTypeAnnotation;return a(i.value,t,"value",e),t},t.stringTypeAnnotation=function(){return{type:"StringTypeAnnotation"}},t.super=function(){return{type:"Super"}},t.switchCase=function(e=null,t){const i={type:"SwitchCase",test:e,consequent:t},r=o.SwitchCase;return a(r.test,i,"test",e,1),a(r.consequent,i,"consequent",t,1),i},t.switchStatement=function(e,t){const i={type:"SwitchStatement",discriminant:e,cases:t},r=o.SwitchStatement;return a(r.discriminant,i,"discriminant",e,1),a(r.cases,i,"cases",t,1),i},t.symbolTypeAnnotation=function(){return{type:"SymbolTypeAnnotation"}},t.taggedTemplateExpression=function(e,t){const i={type:"TaggedTemplateExpression",tag:e,quasi:t},r=o.TaggedTemplateExpression;return a(r.tag,i,"tag",e,1),a(r.quasi,i,"quasi",t,1),i},t.templateElement=function(e,t=!1){const i={type:"TemplateElement",value:e,tail:t},r=o.TemplateElement;return a(r.value,i,"value",e),a(r.tail,i,"tail",t),i},t.templateLiteral=function(e,t){const i={type:"TemplateLiteral",quasis:e,expressions:t},r=o.TemplateLiteral;return a(r.quasis,i,"quasis",e,1),a(r.expressions,i,"expressions",t,1),i},t.thisExpression=function(){return{type:"ThisExpression"}},t.thisTypeAnnotation=function(){return{type:"ThisTypeAnnotation"}},t.throwStatement=function(e){const t={type:"ThrowStatement",argument:e},i=o.ThrowStatement;return a(i.argument,t,"argument",e,1),t},t.topicReference=function(){return{type:"TopicReference"}},t.tryStatement=function(e,t=null,i=null){const r={type:"TryStatement",block:e,handler:t,finalizer:i},n=o.TryStatement;return a(n.block,r,"block",e,1),a(n.handler,r,"handler",t,1),a(n.finalizer,r,"finalizer",i,1),r},t.tSAnyKeyword=t.tsAnyKeyword=function(){return{type:"TSAnyKeyword"}},t.tSArrayType=t.tsArrayType=function(e){const t={type:"TSArrayType",elementType:e},i=o.TSArrayType;return a(i.elementType,t,"elementType",e,1),t},t.tSAsExpression=t.tsAsExpression=function(e,t){const i={type:"TSAsExpression",expression:e,typeAnnotation:t},r=o.TSAsExpression;return a(r.expression,i,"expression",e,1),a(r.typeAnnotation,i,"typeAnnotation",t,1),i},t.tSBigIntKeyword=t.tsBigIntKeyword=function(){return{type:"TSBigIntKeyword"}},t.tSBooleanKeyword=t.tsBooleanKeyword=function(){return{type:"TSBooleanKeyword"}},t.tSCallSignatureDeclaration=t.tsCallSignatureDeclaration=function(e=null,t,i=null){const r={type:"TSCallSignatureDeclaration",typeParameters:e,parameters:t,typeAnnotation:i},n=o.TSCallSignatureDeclaration;return a(n.typeParameters,r,"typeParameters",e,1),a(n.parameters,r,"parameters",t,1),a(n.typeAnnotation,r,"typeAnnotation",i,1),r},t.tSConditionalType=t.tsConditionalType=function(e,t,i,r){const n={type:"TSConditionalType",checkType:e,extendsType:t,trueType:i,falseType:r},s=o.TSConditionalType;return a(s.checkType,n,"checkType",e,1),a(s.extendsType,n,"extendsType",t,1),a(s.trueType,n,"trueType",i,1),a(s.falseType,n,"falseType",r,1),n},t.tSConstructSignatureDeclaration=t.tsConstructSignatureDeclaration=function(e=null,t,i=null){const r={type:"TSConstructSignatureDeclaration",typeParameters:e,parameters:t,typeAnnotation:i},n=o.TSConstructSignatureDeclaration;return a(n.typeParameters,r,"typeParameters",e,1),a(n.parameters,r,"parameters",t,1),a(n.typeAnnotation,r,"typeAnnotation",i,1),r},t.tSConstructorType=t.tsConstructorType=function(e=null,t,i=null){const r={type:"TSConstructorType",typeParameters:e,parameters:t,typeAnnotation:i},n=o.TSConstructorType;return a(n.typeParameters,r,"typeParameters",e,1),a(n.parameters,r,"parameters",t,1),a(n.typeAnnotation,r,"typeAnnotation",i,1),r},t.tSDeclareFunction=t.tsDeclareFunction=function(e=null,t=null,i,r=null){const n={type:"TSDeclareFunction",id:e,typeParameters:t,params:i,returnType:r},s=o.TSDeclareFunction;return a(s.id,n,"id",e,1),a(s.typeParameters,n,"typeParameters",t,1),a(s.params,n,"params",i,1),a(s.returnType,n,"returnType",r,1),n},t.tSDeclareMethod=t.tsDeclareMethod=function(e=null,t,i=null,r,n=null){const s={type:"TSDeclareMethod",decorators:e,key:t,typeParameters:i,params:r,returnType:n},l=o.TSDeclareMethod;return a(l.decorators,s,"decorators",e,1),a(l.key,s,"key",t,1),a(l.typeParameters,s,"typeParameters",i,1),a(l.params,s,"params",r,1),a(l.returnType,s,"returnType",n,1),s},t.tSEnumBody=t.tsEnumBody=function(e){const t={type:"TSEnumBody",members:e},i=o.TSEnumBody;return a(i.members,t,"members",e,1),t},t.tSEnumDeclaration=t.tsEnumDeclaration=function(e,t){const i={type:"TSEnumDeclaration",id:e,members:t},r=o.TSEnumDeclaration;return a(r.id,i,"id",e,1),a(r.members,i,"members",t,1),i},t.tSEnumMember=t.tsEnumMember=function(e,t=null){const i={type:"TSEnumMember",id:e,initializer:t},r=o.TSEnumMember;return a(r.id,i,"id",e,1),a(r.initializer,i,"initializer",t,1),i},t.tSExportAssignment=t.tsExportAssignment=function(e){const t={type:"TSExportAssignment",expression:e},i=o.TSExportAssignment;return a(i.expression,t,"expression",e,1),t},t.tSExpressionWithTypeArguments=t.tsExpressionWithTypeArguments=function(e,t=null){const i={type:"TSExpressionWithTypeArguments",expression:e,typeParameters:t},r=o.TSExpressionWithTypeArguments;return a(r.expression,i,"expression",e,1),a(r.typeParameters,i,"typeParameters",t,1),i},t.tSExternalModuleReference=t.tsExternalModuleReference=function(e){const t={type:"TSExternalModuleReference",expression:e},i=o.TSExternalModuleReference;return a(i.expression,t,"expression",e,1),t},t.tSFunctionType=t.tsFunctionType=function(e=null,t,i=null){const r={type:"TSFunctionType",typeParameters:e,parameters:t,typeAnnotation:i},n=o.TSFunctionType;return a(n.typeParameters,r,"typeParameters",e,1),a(n.parameters,r,"parameters",t,1),a(n.typeAnnotation,r,"typeAnnotation",i,1),r},t.tSImportEqualsDeclaration=t.tsImportEqualsDeclaration=function(e,t){const i={type:"TSImportEqualsDeclaration",id:e,moduleReference:t,isExport:null},r=o.TSImportEqualsDeclaration;return a(r.id,i,"id",e,1),a(r.moduleReference,i,"moduleReference",t,1),i},t.tSImportType=t.tsImportType=function(e,t=null,i=null){const r={type:"TSImportType",argument:e,qualifier:t,typeParameters:i},n=o.TSImportType;return a(n.argument,r,"argument",e,1),a(n.qualifier,r,"qualifier",t,1),a(n.typeParameters,r,"typeParameters",i,1),r},t.tSIndexSignature=t.tsIndexSignature=function(e,t=null){const i={type:"TSIndexSignature",parameters:e,typeAnnotation:t},r=o.TSIndexSignature;return a(r.parameters,i,"parameters",e,1),a(r.typeAnnotation,i,"typeAnnotation",t,1),i},t.tSIndexedAccessType=t.tsIndexedAccessType=function(e,t){const i={type:"TSIndexedAccessType",objectType:e,indexType:t},r=o.TSIndexedAccessType;return a(r.objectType,i,"objectType",e,1),a(r.indexType,i,"indexType",t,1),i},t.tSInferType=t.tsInferType=function(e){const t={type:"TSInferType",typeParameter:e},i=o.TSInferType;return a(i.typeParameter,t,"typeParameter",e,1),t},t.tSInstantiationExpression=t.tsInstantiationExpression=function(e,t=null){const i={type:"TSInstantiationExpression",expression:e,typeParameters:t},r=o.TSInstantiationExpression;return a(r.expression,i,"expression",e,1),a(r.typeParameters,i,"typeParameters",t,1),i},t.tSInterfaceBody=t.tsInterfaceBody=function(e){const t={type:"TSInterfaceBody",body:e},i=o.TSInterfaceBody;return a(i.body,t,"body",e,1),t},t.tSInterfaceDeclaration=t.tsInterfaceDeclaration=function(e,t=null,i=null,r){const n={type:"TSInterfaceDeclaration",id:e,typeParameters:t,extends:i,body:r},s=o.TSInterfaceDeclaration;return a(s.id,n,"id",e,1),a(s.typeParameters,n,"typeParameters",t,1),a(s.extends,n,"extends",i,1),a(s.body,n,"body",r,1),n},t.tSIntersectionType=t.tsIntersectionType=function(e){const t={type:"TSIntersectionType",types:e},i=o.TSIntersectionType;return a(i.types,t,"types",e,1),t},t.tSIntrinsicKeyword=t.tsIntrinsicKeyword=function(){return{type:"TSIntrinsicKeyword"}},t.tSLiteralType=t.tsLiteralType=function(e){const t={type:"TSLiteralType",literal:e},i=o.TSLiteralType;return a(i.literal,t,"literal",e,1),t},t.tSMappedType=t.tsMappedType=function(e,t=null,i=null){const r={type:"TSMappedType",typeParameter:e,typeAnnotation:t,nameType:i},n=o.TSMappedType;return a(n.typeParameter,r,"typeParameter",e,1),a(n.typeAnnotation,r,"typeAnnotation",t,1),a(n.nameType,r,"nameType",i,1),r},t.tSMethodSignature=t.tsMethodSignature=function(e,t=null,i,r=null){const n={type:"TSMethodSignature",key:e,typeParameters:t,parameters:i,typeAnnotation:r,kind:null},s=o.TSMethodSignature;return a(s.key,n,"key",e,1),a(s.typeParameters,n,"typeParameters",t,1),a(s.parameters,n,"parameters",i,1),a(s.typeAnnotation,n,"typeAnnotation",r,1),n},t.tSModuleBlock=t.tsModuleBlock=function(e){const t={type:"TSModuleBlock",body:e},i=o.TSModuleBlock;return a(i.body,t,"body",e,1),t},t.tSModuleDeclaration=t.tsModuleDeclaration=function(e,t){const i={type:"TSModuleDeclaration",id:e,body:t,kind:null},r=o.TSModuleDeclaration;return a(r.id,i,"id",e,1),a(r.body,i,"body",t,1),i},t.tSNamedTupleMember=t.tsNamedTupleMember=function(e,t,i=!1){const r={type:"TSNamedTupleMember",label:e,elementType:t,optional:i},n=o.TSNamedTupleMember;return a(n.label,r,"label",e,1),a(n.elementType,r,"elementType",t,1),a(n.optional,r,"optional",i),r},t.tSNamespaceExportDeclaration=t.tsNamespaceExportDeclaration=function(e){const t={type:"TSNamespaceExportDeclaration",id:e},i=o.TSNamespaceExportDeclaration;return a(i.id,t,"id",e,1),t},t.tSNeverKeyword=t.tsNeverKeyword=function(){return{type:"TSNeverKeyword"}},t.tSNonNullExpression=t.tsNonNullExpression=function(e){const t={type:"TSNonNullExpression",expression:e},i=o.TSNonNullExpression;return a(i.expression,t,"expression",e,1),t},t.tSNullKeyword=t.tsNullKeyword=function(){return{type:"TSNullKeyword"}},t.tSNumberKeyword=t.tsNumberKeyword=function(){return{type:"TSNumberKeyword"}},t.tSObjectKeyword=t.tsObjectKeyword=function(){return{type:"TSObjectKeyword"}},t.tSOptionalType=t.tsOptionalType=function(e){const t={type:"TSOptionalType",typeAnnotation:e},i=o.TSOptionalType;return a(i.typeAnnotation,t,"typeAnnotation",e,1),t},t.tSParameterProperty=t.tsParameterProperty=function(e){const t={type:"TSParameterProperty",parameter:e},i=o.TSParameterProperty;return a(i.parameter,t,"parameter",e,1),t},t.tSParenthesizedType=t.tsParenthesizedType=function(e){const t={type:"TSParenthesizedType",typeAnnotation:e},i=o.TSParenthesizedType;return a(i.typeAnnotation,t,"typeAnnotation",e,1),t},t.tSPropertySignature=t.tsPropertySignature=function(e,t=null){const i={type:"TSPropertySignature",key:e,typeAnnotation:t},r=o.TSPropertySignature;return a(r.key,i,"key",e,1),a(r.typeAnnotation,i,"typeAnnotation",t,1),i},t.tSQualifiedName=t.tsQualifiedName=function(e,t){const i={type:"TSQualifiedName",left:e,right:t},r=o.TSQualifiedName;return a(r.left,i,"left",e,1),a(r.right,i,"right",t,1),i},t.tSRestType=t.tsRestType=function(e){const t={type:"TSRestType",typeAnnotation:e},i=o.TSRestType;return a(i.typeAnnotation,t,"typeAnnotation",e,1),t},t.tSSatisfiesExpression=t.tsSatisfiesExpression=function(e,t){const i={type:"TSSatisfiesExpression",expression:e,typeAnnotation:t},r=o.TSSatisfiesExpression;return a(r.expression,i,"expression",e,1),a(r.typeAnnotation,i,"typeAnnotation",t,1),i},t.tSStringKeyword=t.tsStringKeyword=function(){return{type:"TSStringKeyword"}},t.tSSymbolKeyword=t.tsSymbolKeyword=function(){return{type:"TSSymbolKeyword"}},t.tSTemplateLiteralType=t.tsTemplateLiteralType=function(e,t){const i={type:"TSTemplateLiteralType",quasis:e,types:t},r=o.TSTemplateLiteralType;return a(r.quasis,i,"quasis",e,1),a(r.types,i,"types",t,1),i},t.tSThisType=t.tsThisType=function(){return{type:"TSThisType"}},t.tSTupleType=t.tsTupleType=function(e){const t={type:"TSTupleType",elementTypes:e},i=o.TSTupleType;return a(i.elementTypes,t,"elementTypes",e,1),t},t.tSTypeAliasDeclaration=t.tsTypeAliasDeclaration=function(e,t=null,i){const r={type:"TSTypeAliasDeclaration",id:e,typeParameters:t,typeAnnotation:i},n=o.TSTypeAliasDeclaration;return a(n.id,r,"id",e,1),a(n.typeParameters,r,"typeParameters",t,1),a(n.typeAnnotation,r,"typeAnnotation",i,1),r},t.tSTypeAnnotation=t.tsTypeAnnotation=function(e){const t={type:"TSTypeAnnotation",typeAnnotation:e},i=o.TSTypeAnnotation;return a(i.typeAnnotation,t,"typeAnnotation",e,1),t},t.tSTypeAssertion=t.tsTypeAssertion=function(e,t){const i={type:"TSTypeAssertion",typeAnnotation:e,expression:t},r=o.TSTypeAssertion;return a(r.typeAnnotation,i,"typeAnnotation",e,1),a(r.expression,i,"expression",t,1),i},t.tSTypeLiteral=t.tsTypeLiteral=function(e){const t={type:"TSTypeLiteral",members:e},i=o.TSTypeLiteral;return a(i.members,t,"members",e,1),t},t.tSTypeOperator=t.tsTypeOperator=function(e,t="keyof"){const i={type:"TSTypeOperator",typeAnnotation:e,operator:t},r=o.TSTypeOperator;return a(r.typeAnnotation,i,"typeAnnotation",e,1),a(r.operator,i,"operator",t),i},t.tSTypeParameter=t.tsTypeParameter=function(e=null,t=null,i){const r={type:"TSTypeParameter",constraint:e,default:t,name:i},n=o.TSTypeParameter;return a(n.constraint,r,"constraint",e,1),a(n.default,r,"default",t,1),a(n.name,r,"name",i),r},t.tSTypeParameterDeclaration=t.tsTypeParameterDeclaration=function(e){const t={type:"TSTypeParameterDeclaration",params:e},i=o.TSTypeParameterDeclaration;return a(i.params,t,"params",e,1),t},t.tSTypeParameterInstantiation=t.tsTypeParameterInstantiation=function(e){const t={type:"TSTypeParameterInstantiation",params:e},i=o.TSTypeParameterInstantiation;return a(i.params,t,"params",e,1),t},t.tSTypePredicate=t.tsTypePredicate=function(e,t=null,i=null){const r={type:"TSTypePredicate",parameterName:e,typeAnnotation:t,asserts:i},n=o.TSTypePredicate;return a(n.parameterName,r,"parameterName",e,1),a(n.typeAnnotation,r,"typeAnnotation",t,1),a(n.asserts,r,"asserts",i),r},t.tSTypeQuery=t.tsTypeQuery=function(e,t=null){const i={type:"TSTypeQuery",exprName:e,typeParameters:t},r=o.TSTypeQuery;return a(r.exprName,i,"exprName",e,1),a(r.typeParameters,i,"typeParameters",t,1),i},t.tSTypeReference=t.tsTypeReference=function(e,t=null){const i={type:"TSTypeReference",typeName:e,typeParameters:t},r=o.TSTypeReference;return a(r.typeName,i,"typeName",e,1),a(r.typeParameters,i,"typeParameters",t,1),i},t.tSUndefinedKeyword=t.tsUndefinedKeyword=function(){return{type:"TSUndefinedKeyword"}},t.tSUnionType=t.tsUnionType=function(e){const t={type:"TSUnionType",types:e},i=o.TSUnionType;return a(i.types,t,"types",e,1),t},t.tSUnknownKeyword=t.tsUnknownKeyword=function(){return{type:"TSUnknownKeyword"}},t.tSVoidKeyword=t.tsVoidKeyword=function(){return{type:"TSVoidKeyword"}},t.tupleExpression=function(e=[]){const t={type:"TupleExpression",elements:e},i=o.TupleExpression;return a(i.elements,t,"elements",e,1),t},t.tupleTypeAnnotation=function(e){const t={type:"TupleTypeAnnotation",types:e},i=o.TupleTypeAnnotation;return a(i.types,t,"types",e,1),t},t.typeAlias=function(e,t=null,i){const r={type:"TypeAlias",id:e,typeParameters:t,right:i},n=o.TypeAlias;return a(n.id,r,"id",e,1),a(n.typeParameters,r,"typeParameters",t,1),a(n.right,r,"right",i,1),r},t.typeAnnotation=function(e){const t={type:"TypeAnnotation",typeAnnotation:e},i=o.TypeAnnotation;return a(i.typeAnnotation,t,"typeAnnotation",e,1),t},t.typeCastExpression=function(e,t){const i={type:"TypeCastExpression",expression:e,typeAnnotation:t},r=o.TypeCastExpression;return a(r.expression,i,"expression",e,1),a(r.typeAnnotation,i,"typeAnnotation",t,1),i},t.typeParameter=function(e=null,t=null,i=null){const r={type:"TypeParameter",bound:e,default:t,variance:i,name:null},n=o.TypeParameter;return a(n.bound,r,"bound",e,1),a(n.default,r,"default",t,1),a(n.variance,r,"variance",i,1),r},t.typeParameterDeclaration=function(e){const t={type:"TypeParameterDeclaration",params:e},i=o.TypeParameterDeclaration;return a(i.params,t,"params",e,1),t},t.typeParameterInstantiation=function(e){const t={type:"TypeParameterInstantiation",params:e},i=o.TypeParameterInstantiation;return a(i.params,t,"params",e,1),t},t.typeofTypeAnnotation=function(e){const t={type:"TypeofTypeAnnotation",argument:e},i=o.TypeofTypeAnnotation;return a(i.argument,t,"argument",e,1),t},t.unaryExpression=function(e,t,i=!0){const r={type:"UnaryExpression",operator:e,argument:t,prefix:i},n=o.UnaryExpression;return a(n.operator,r,"operator",e),a(n.argument,r,"argument",t,1),a(n.prefix,r,"prefix",i),r},t.unionTypeAnnotation=function(e){const t={type:"UnionTypeAnnotation",types:e},i=o.UnionTypeAnnotation;return a(i.types,t,"types",e,1),t},t.updateExpression=function(e,t,i=!1){const r={type:"UpdateExpression",operator:e,argument:t,prefix:i},n=o.UpdateExpression;return a(n.operator,r,"operator",e),a(n.argument,r,"argument",t,1),a(n.prefix,r,"prefix",i),r},t.v8IntrinsicIdentifier=function(e){const t={type:"V8IntrinsicIdentifier",name:e},i=o.V8IntrinsicIdentifier;return a(i.name,t,"name",e),t},t.variableDeclaration=function(e,t){const i={type:"VariableDeclaration",kind:e,declarations:t},r=o.VariableDeclaration;return a(r.kind,i,"kind",e),a(r.declarations,i,"declarations",t,1),i},t.variableDeclarator=function(e,t=null){const i={type:"VariableDeclarator",id:e,init:t},r=o.VariableDeclarator;return a(r.id,i,"id",e,1),a(r.init,i,"init",t,1),i},t.variance=function(e){const t={type:"Variance",kind:e},i=o.Variance;return a(i.kind,t,"kind",e),t},t.voidPattern=function(){return{type:"VoidPattern"}},t.voidTypeAnnotation=function(){return{type:"VoidTypeAnnotation"}},t.whileStatement=function(e,t){const i={type:"WhileStatement",test:e,body:t},r=o.WhileStatement;return a(r.test,i,"test",e,1),a(r.body,i,"body",t,1),i},t.withStatement=function(e,t){const i={type:"WithStatement",object:e,body:t},r=o.WithStatement;return a(r.object,i,"object",e,1),a(r.body,i,"body",t,1),i},t.yieldExpression=function(e=null,t=!1){const i={type:"YieldExpression",argument:e,delegate:t},r=o.YieldExpression;return a(r.argument,i,"argument",e,1),a(r.delegate,i,"delegate",t),i};var r=i(59751),n=i(74641),s=i(73261);const{validateInternal:a}=r,{NODE_FIELDS:o}=s;function l(e){const t={type:"NumericLiteral",value:e},i=o.NumericLiteral;return a(i.value,t,"value",e),t}function p(e,t=""){const i={type:"RegExpLiteral",pattern:e,flags:t},r=o.RegExpLiteral;return a(r.pattern,i,"pattern",e),a(r.flags,i,"flags",t),i}function c(e){const t={type:"RestElement",argument:e},i=o.RestElement;return a(i.argument,t,"argument",e,1),t}function u(e){const t={type:"SpreadElement",argument:e},i=o.SpreadElement;return a(i.argument,t,"argument",e,1),t}},53896:(e,t,i)=>{var r=i(67787).Buffer;e.exports=function(e,t){for(var i=Math.min(e.length,t.length),n=new r(i),s=0;s<i;++s)n[s]=e[s]^t[s];return n}},54390:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t,i){const l=[];let p=!0;for(const c of t)if((0,n.isEmptyStatement)(c)||(p=!1),(0,n.isExpression)(c))l.push(c);else if((0,n.isExpressionStatement)(c))l.push(c.expression);else if((0,n.isVariableDeclaration)(c)){if("var"!==c.kind)return;for(const e of c.declarations){const t=(0,r.default)(e);for(const e of Object.keys(t))i.push({kind:c.kind,id:(0,o.default)(t[e])});e.init&&l.push((0,s.assignmentExpression)("=",e.id,e.init))}p=!0}else if((0,n.isIfStatement)(c)){const t=c.consequent?e([c.consequent],i):(0,a.buildUndefinedNode)(),r=c.alternate?e([c.alternate],i):(0,a.buildUndefinedNode)();if(!t||!r)return;l.push((0,s.conditionalExpression)(c.test,t,r))}else if((0,n.isBlockStatement)(c)){const t=e(c.body,i);if(!t)return;l.push(t)}else{if(!(0,n.isEmptyStatement)(c))return;0===t.indexOf(c)&&(p=!0)}return p&&l.push((0,a.buildUndefinedNode)()),1===l.length?l[0]:(0,s.sequenceExpression)(l)};var r=i(68830),n=i(63555),s=i(82208),a=i(62062),o=i(16938)},54409:(e,t,i)=>{e.exports=s;var r=i(29075),n=Object.create(i(26571));function s(e){if(!(this instanceof s))return new s(e);r.call(this,e)}n.inherits=i(25003),n.inherits(s,r),s.prototype._transform=function(e,t,i){i(null,e)}},54667:(e,t)=>{t.byteLength=function(e){var t=o(e),i=t[0],r=t[1];return 3*(i+r)/4-r},t.toByteArray=function(e){var t,i,s=o(e),a=s[0],l=s[1],p=new n(function(e,t,i){return 3*(t+i)/4-i}(0,a,l)),c=0,u=l>0?a-4:a;for(i=0;i<u;i+=4)t=r[e.charCodeAt(i)]<<18|r[e.charCodeAt(i+1)]<<12|r[e.charCodeAt(i+2)]<<6|r[e.charCodeAt(i+3)],p[c++]=t>>16&255,p[c++]=t>>8&255,p[c++]=255&t;return 2===l&&(t=r[e.charCodeAt(i)]<<2|r[e.charCodeAt(i+1)]>>4,p[c++]=255&t),1===l&&(t=r[e.charCodeAt(i)]<<10|r[e.charCodeAt(i+1)]<<4|r[e.charCodeAt(i+2)]>>2,p[c++]=t>>8&255,p[c++]=255&t),p},t.fromByteArray=function(e){for(var t,r=e.length,n=r%3,s=[],a=16383,o=0,p=r-n;o<p;o+=a)s.push(l(e,o,o+a>p?p:o+a));return 1===n?(t=e[r-1],s.push(i[t>>2]+i[t<<4&63]+"==")):2===n&&(t=(e[r-2]<<8)+e[r-1],s.push(i[t>>10]+i[t>>4&63]+i[t<<2&63]+"=")),s.join("")};for(var i=[],r=[],n="undefined"!=typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0;a<64;++a)i[a]=s[a],r[s.charCodeAt(a)]=a;function o(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var i=e.indexOf("=");return-1===i&&(i=t),[i,i===t?0:4-i%4]}function l(e,t,r){for(var n,s,a=[],o=t;o<r;o+=3)n=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(255&e[o+2]),a.push(i[(s=n)>>18&63]+i[s>>12&63]+i[s>>6&63]+i[63&s]);return a.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},55110:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){const t=[].concat(e),i=Object.create(null);for(;t.length;){const e=t.pop();if(e)switch(e.type){case"ArrayPattern":t.push(...e.elements);break;case"AssignmentExpression":case"AssignmentPattern":case"ForInStatement":case"ForOfStatement":t.push(e.left);break;case"ObjectPattern":t.push(...e.properties);break;case"ObjectProperty":t.push(e.value);break;case"RestElement":case"UpdateExpression":t.push(e.argument);break;case"UnaryExpression":"delete"===e.operator&&t.push(e.argument);break;case"Identifier":i[e.name]=e}}return i}},55186:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,i=!1){return e.object=(0,r.memberExpression)(e.object,e.property,e.computed),e.property=t,e.computed=!!i,e};var r=i(82208)},55354:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,i){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:!i||"ObjectPattern"!==i.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==i||!i.source)&&t.local===e;case"TSEnumMember":return t.id!==e}return!0}},56049:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ArgumentPlaceholder=function(){this.tokenChar(63)},t.ArrayPattern=t.ArrayExpression=function(e){const t=e.elements,i=t.length;this.tokenChar(91);const r=this.enterDelimited();for(let e=0;e<t.length;e++){const r=t[e];r?(e>0&&this.space(),this.print(r),(e<i-1||this.shouldPrintTrailingComma("]"))&&this.token(",",!1,e)):this.token(",",!1,e)}r(),this.tokenChar(93)},t.BigIntLiteral=function(e){const t=this.getPossibleRaw(e);this.format.minified||void 0===t?this.word(e.value+"n"):this.word(t)},t.BooleanLiteral=function(e){this.word(e.value?"true":"false")},t.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)},t.NullLiteral=function(){this.word("null")},t.NumericLiteral=function(e){const t=this.getPossibleRaw(e),i=this.format.jsescOption,r=e.value,s=r+"";i.numbers?this.number(n(r,i),r):null==t?this.number(s,r):this.format.minified?this.number(t.length<s.length?t:s,r):this.number(t,r)},t.ObjectPattern=t.ObjectExpression=function(e){const t=e.properties;if(this.tokenChar(123),t.length){const e=this.enterDelimited();this.space(),this.printList(t,this.shouldPrintTrailingComma("}"),!0,!0),this.space(),e()}this.sourceWithOffset("end",e.loc,-1),this.tokenChar(125)},t.ObjectMethod=function(e){this.printJoin(e.decorators),this._methodHead(e),this.space(),this.print(e.body)},t.ObjectProperty=function(e){if(this.printJoin(e.decorators),e.computed)this.tokenChar(91),this.print(e.key),this.tokenChar(93);else{if(s(e.value)&&a(e.key)&&e.key.name===e.value.left.name)return void this.print(e.value);if(this.print(e.key),e.shorthand&&a(e.key)&&a(e.value)&&e.key.name===e.value.name)return}this.tokenChar(58),this.space(),this.print(e.value)},t.PipelineBareFunction=function(e){this.print(e.callee)},t.PipelinePrimaryTopicReference=function(){this.tokenChar(35)},t.PipelineTopicExpression=function(e){this.print(e.expression)},t.RecordExpression=function(e){const t=e.properties;let i,r;if("bar"===this.format.recordAndTupleSyntaxType)i="{|",r="|}";else{if("hash"!==this.format.recordAndTupleSyntaxType&&null!=this.format.recordAndTupleSyntaxType)throw new Error(`The "recordAndTupleSyntaxType" generator option must be "bar" or "hash" (${JSON.stringify(this.format.recordAndTupleSyntaxType)} received).`);i="#{",r="}"}this.token(i),t.length&&(this.space(),this.printList(t,this.shouldPrintTrailingComma(r),!0,!0),this.space()),this.token(r)},t.RegExpLiteral=function(e){this.word(`/${e.pattern}/${e.flags}`)},t.SpreadElement=t.RestElement=function(e){this.token("..."),this.print(e.argument)},t.StringLiteral=function(e){const t=this.getPossibleRaw(e);if(!this.format.minified&&void 0!==t)return void this.token(t);const i=n(e.value,this.format.jsescOption);this.token(i)},t.TopicReference=function(){const{topicToken:e}=this.format;if(!p.has(e)){const t=JSON.stringify(e),i=Array.from(p,(e=>JSON.stringify(e)));throw new Error(`The "topicToken" generator option must be one of ${i.join(", ")} (${t} received instead).`)}this.token(e)},t.TupleExpression=function(e){const t=e.elements,i=t.length;let r,n;if("bar"===this.format.recordAndTupleSyntaxType)r="[|",n="|]";else{if("hash"!==this.format.recordAndTupleSyntaxType)throw new Error(`${this.format.recordAndTupleSyntaxType} is not a valid recordAndTuple syntax type`);r="#[",n="]"}this.token(r);for(let e=0;e<t.length;e++){const r=t[e];r&&(e>0&&this.space(),this.print(r),(e<i-1||this.shouldPrintTrailingComma(n))&&this.token(",",!1,e))}this.token(n)},t.VoidPattern=function(){this.word("void")},t._getRawIdentifier=function(e){if(e===o)return l;o=e;const{name:t}=e,i=this.tokenMap.find(e,(e=>e.value===t));return i?(l=this._originalCode.slice(i.start,i.end),l):l=e.name};var r=i(45741),n=i(41498);const{isAssignmentPattern:s,isIdentifier:a}=r;let o=null,l="";const p=new Set(["^^","@@","^","%","#"])},56773:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e)&&!n.has(e)};var r=i(26228);const n=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"])},57045:(e,t,i)=>{var r=i(73261);const n=(0,r.defineAliasedType)("JSX");n("JSXAttribute",{visitor:["name","value"],aliases:["Immutable"],fields:{name:{validate:(0,r.assertNodeType)("JSXIdentifier","JSXNamespacedName")},value:{optional:!0,validate:(0,r.assertNodeType)("JSXElement","JSXFragment","StringLiteral","JSXExpressionContainer")}}}),n("JSXClosingElement",{visitor:["name"],aliases:["Immutable"],fields:{name:{validate:(0,r.assertNodeType)("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")}}}),n("JSXElement",{builder:["openingElement","closingElement","children","selfClosing"],visitor:["openingElement","children","closingElement"],aliases:["Immutable","Expression"],fields:Object.assign({openingElement:{validate:(0,r.assertNodeType)("JSXOpeningElement")},closingElement:{optional:!0,validate:(0,r.assertNodeType)("JSXClosingElement")},children:(0,r.validateArrayOfType)("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")},{selfClosing:{validate:(0,r.assertValueType)("boolean"),optional:!0}})}),n("JSXEmptyExpression",{}),n("JSXExpressionContainer",{visitor:["expression"],aliases:["Immutable"],fields:{expression:{validate:(0,r.assertNodeType)("Expression","JSXEmptyExpression")}}}),n("JSXSpreadChild",{visitor:["expression"],aliases:["Immutable"],fields:{expression:{validate:(0,r.assertNodeType)("Expression")}}}),n("JSXIdentifier",{builder:["name"],fields:{name:{validate:(0,r.assertValueType)("string")}}}),n("JSXMemberExpression",{visitor:["object","property"],fields:{object:{validate:(0,r.assertNodeType)("JSXMemberExpression","JSXIdentifier")},property:{validate:(0,r.assertNodeType)("JSXIdentifier")}}}),n("JSXNamespacedName",{visitor:["namespace","name"],fields:{namespace:{validate:(0,r.assertNodeType)("JSXIdentifier")},name:{validate:(0,r.assertNodeType)("JSXIdentifier")}}}),n("JSXOpeningElement",{builder:["name","attributes","selfClosing"],visitor:["name","typeParameters","typeArguments","attributes"],aliases:["Immutable"],fields:Object.assign({name:{validate:(0,r.assertNodeType)("JSXIdentifier","JSXMemberExpression","JSXNamespacedName")},selfClosing:{default:!1},attributes:(0,r.validateArrayOfType)("JSXAttribute","JSXSpreadAttribute"),typeArguments:{validate:(0,r.assertNodeType)("TypeParameterInstantiation"),optional:!0}},{typeParameters:{validate:(0,r.assertNodeType)("TSTypeParameterInstantiation"),optional:!0}})}),n("JSXSpreadAttribute",{visitor:["argument"],fields:{argument:{validate:(0,r.assertNodeType)("Expression")}}}),n("JSXText",{aliases:["Immutable"],builder:["value"],fields:{value:{validate:(0,r.assertValueType)("string")}}}),n("JSXFragment",{builder:["openingFragment","closingFragment","children"],visitor:["openingFragment","children","closingFragment"],aliases:["Immutable","Expression"],fields:{openingFragment:{validate:(0,r.assertNodeType)("JSXOpeningFragment")},closingFragment:{validate:(0,r.assertNodeType)("JSXClosingFragment")},children:(0,r.validateArrayOfType)("JSXText","JSXExpressionContainer","JSXSpreadChild","JSXElement","JSXFragment")}}),n("JSXOpeningFragment",{aliases:["Immutable"]}),n("JSXClosingFragment",{aliases:["Immutable"]})},57350:(e,t,i)=>{var r=i(73261),n=i(85604),s=i(8925);const a=(0,r.defineAliasedType)("Miscellaneous");a("Noop",{visitor:[]}),a("Placeholder",{visitor:[],builder:["expectedNode","name"],fields:Object.assign({name:{validate:(0,r.assertNodeType)("Identifier")},expectedNode:{validate:(0,r.assertOneOf)(...n.PLACEHOLDERS)}},(0,s.patternLikeCommon)())}),a("V8IntrinsicIdentifier",{builder:["name"],fields:{name:{validate:(0,r.assertValueType)("string")}}})},58314:(e,t,i)=>{e.exports=i(4716)},58777:(e,t,i)=>{var r=i(67787),n=r.Buffer;function s(e,t){for(var i in e)t[i]=e[i]}function a(e,t,i){return n(e,t,i)}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?e.exports=r:(s(r,t),t.Buffer=a),s(n,a),a.from=function(e,t,i){if("number"==typeof e)throw new TypeError("Argument must not be a number");return n(e,t,i)},a.alloc=function(e,t,i){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=n(e);return void 0!==t?"string"==typeof i?r.fill(t,i):r.fill(t):r.fill(0),r},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},59563:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(26228),n=i(82208);t.default=function e(t){if(void 0===t)return(0,n.identifier)("undefined");if(!0===t||!1===t)return(0,n.booleanLiteral)(t);if(null===t)return(0,n.nullLiteral)();if("string"==typeof t)return(0,n.stringLiteral)(t);if("number"==typeof t){let e;if(Number.isFinite(t))e=(0,n.numericLiteral)(Math.abs(t));else{let i;i=Number.isNaN(t)?(0,n.numericLiteral)(0):(0,n.numericLiteral)(1),e=(0,n.binaryExpression)("/",i,(0,n.numericLiteral)(0))}return(t<0||Object.is(t,-0))&&(e=(0,n.unaryExpression)("-",e)),e}if("bigint"==typeof t)return t<0?(0,n.unaryExpression)("-",(0,n.bigIntLiteral)(-t)):(0,n.bigIntLiteral)(t);if(function(e){return"[object RegExp]"===s(e)}(t)){const e=t.source,i=/\/([a-z]*)$/.exec(t.toString())[1];return(0,n.regExpLiteral)(e,i)}if(Array.isArray(t))return(0,n.arrayExpression)(t.map(e));if(function(e){if("object"!=typeof e||null===e||"[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);return null===t||null===Object.getPrototypeOf(t)}(t)){const i=[];for(const s of Object.keys(t)){let a,o=!1;(0,r.default)(s)?"__proto__"===s?(o=!0,a=(0,n.stringLiteral)(s)):a=(0,n.identifier)(s):a=(0,n.stringLiteral)(s),i.push((0,n.objectProperty)(a,e(t[s]),o))}return(0,n.objectExpression)(i)}throw new Error("don't know how to turn this value into a node")};const s=Function.call.bind(Object.prototype.toString)},59751:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,i){if(!e)return;const a=r.NODE_FIELDS[e.type];if(!a)return;n(e,t,i,a[t]),s(e,t,i)},t.validateChild=s,t.validateField=n,t.validateInternal=function(e,t,i,n,s){if(null!=e&&e.validate&&(!e.optional||null!=n)&&(e.validate(t,i,n),s)){var a;const e=n.type;if(null==e)return;null==(a=r.NODE_PARENT_VALIDATIONS[e])||a.call(r.NODE_PARENT_VALIDATIONS,t,i,n)}};var r=i(35108);function n(e,t,i,r){null!=r&&r.validate&&(r.optional&&null==i||r.validate(e,t,i))}function s(e,t,i){var n;const s=null==i?void 0:i.type;null!=s&&(null==(n=r.NODE_PARENT_VALIDATIONS[s])||n.call(r.NODE_PARENT_VALIDATIONS,e,t,i))}},59892:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(e===t)return!0;const i=r.PLACEHOLDERS_ALIAS[e];return!(null==i||!i.includes(t))};var r=i(35108)},60124:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.isVariableDeclaration)(e,{kind:"var"})&&!e[n]};var r=i(63555),n=Symbol.for("var used to be block scoped")},60616:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(0,r.default)(e,t),(0,n.default)(e,t),(0,s.default)(e,t),e};var r=i(6057),n=i(62563),s=i(25765)},60752:(e,t,i)=>{function r(e,t){if(null==e)return{};var i={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;i[r]=e[r]}return i}i.d(t,{A:()=>r})},61015:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(249),n=i(5981);t.default=class{constructor(e,t){var i;this._map=void 0,this._rawMappings=void 0,this._sourceFileName=void 0,this._lastGenLine=0,this._lastSourceLine=0,this._lastSourceColumn=0,this._inputMap=void 0;const s=this._map=new r.GenMapping({sourceRoot:e.sourceRoot});if(this._sourceFileName=null==(i=e.sourceFileName)?void 0:i.replace(/\\/g,"/"),this._rawMappings=void 0,e.inputSourceMap){this._inputMap=new n.TraceMap(e.inputSourceMap);const t=this._inputMap.resolvedSources;if(t.length)for(let e=0;e<t.length;e++){var a;(0,r.setSourceContent)(s,t[e],null==(a=this._inputMap.sourcesContent)?void 0:a[e])}}if("string"!=typeof t||e.inputSourceMap){if("object"==typeof t)for(const e of Object.keys(t))(0,r.setSourceContent)(s,e.replace(/\\/g,"/"),t[e])}else(0,r.setSourceContent)(s,this._sourceFileName,t)}get(){return(0,r.toEncodedMap)(this._map)}getDecoded(){return(0,r.toDecodedMap)(this._map)}getRawMappings(){return this._rawMappings||(this._rawMappings=(0,r.allMappings)(this._map))}mark(e,t,i,s,a,o){var l;let p;if(this._rawMappings=void 0,null!=t)if(this._inputMap){if(p=(0,n.originalPositionFor)(this._inputMap,{line:t,column:i}),!p.name&&a){const e=(0,n.originalPositionFor)(this._inputMap,a);e.name&&(s=e.name)}}else p={source:(null==o?void 0:o.replace(/\\/g,"/"))||this._sourceFileName,line:t,column:i};(0,r.maybeAddMapping)(this._map,{name:s,generated:e,source:null==(l=p)?void 0:l.source,original:p})}}},61625:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return(!(0,r.isBlockStatement)(e)||!(0,r.isFunction)(t)&&!(0,r.isCatchClause)(t))&&(!(!(0,r.isPattern)(e)||!(0,r.isFunction)(t)&&!(0,r.isCatchClause)(t))||(0,r.isScopable)(e))};var r=i(63555)},61957:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(68830);t.default=function(e,t){return(0,r.default)(e,t,!0)}},62053:(e,t,i)=>{var r=i(79696).Buffer;function n(e){r.isBuffer(e)||(e=r.from(e));for(var t=e.length/4|0,i=new Array(t),n=0;n<t;n++)i[n]=e.readUInt32BE(4*n);return i}function s(e){for(;0<e.length;e++)e[0]=0}function a(e,t,i,r,n){for(var s,a,o,l,p=i[0],c=i[1],u=i[2],h=i[3],d=e[0]^t[0],f=e[1]^t[1],m=e[2]^t[2],y=e[3]^t[3],T=4,g=1;g<n;g++)s=p[d>>>24]^c[f>>>16&255]^u[m>>>8&255]^h[255&y]^t[T++],a=p[f>>>24]^c[m>>>16&255]^u[y>>>8&255]^h[255&d]^t[T++],o=p[m>>>24]^c[y>>>16&255]^u[d>>>8&255]^h[255&f]^t[T++],l=p[y>>>24]^c[d>>>16&255]^u[f>>>8&255]^h[255&m]^t[T++],d=s,f=a,m=o,y=l;return s=(r[d>>>24]<<24|r[f>>>16&255]<<16|r[m>>>8&255]<<8|r[255&y])^t[T++],a=(r[f>>>24]<<24|r[m>>>16&255]<<16|r[y>>>8&255]<<8|r[255&d])^t[T++],o=(r[m>>>24]<<24|r[y>>>16&255]<<16|r[d>>>8&255]<<8|r[255&f])^t[T++],l=(r[y>>>24]<<24|r[d>>>16&255]<<16|r[f>>>8&255]<<8|r[255&m])^t[T++],[s>>>=0,a>>>=0,o>>>=0,l>>>=0]}var o=[0,1,2,4,8,16,32,64,128,27,54],l=function(){for(var e=new Array(256),t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;for(var i=[],r=[],n=[[],[],[],[]],s=[[],[],[],[]],a=0,o=0,l=0;l<256;++l){var p=o^o<<1^o<<2^o<<3^o<<4;p=p>>>8^255&p^99,i[a]=p,r[p]=a;var c=e[a],u=e[c],h=e[u],d=257*e[p]^16843008*p;n[0][a]=d<<24|d>>>8,n[1][a]=d<<16|d>>>16,n[2][a]=d<<8|d>>>24,n[3][a]=d,d=16843009*h^65537*u^257*c^16843008*a,s[0][p]=d<<24|d>>>8,s[1][p]=d<<16|d>>>16,s[2][p]=d<<8|d>>>24,s[3][p]=d,0===a?a=o=1:(a=c^e[e[e[h^c]]],o^=e[e[o]])}return{SBOX:i,INV_SBOX:r,SUB_MIX:n,INV_SUB_MIX:s}}();function p(e){this._key=n(e),this._reset()}p.blockSize=16,p.keySize=32,p.prototype.blockSize=p.blockSize,p.prototype.keySize=p.keySize,p.prototype._reset=function(){for(var e=this._key,t=e.length,i=t+6,r=4*(i+1),n=[],s=0;s<t;s++)n[s]=e[s];for(s=t;s<r;s++){var a=n[s-1];s%t==0?(a=a<<8|a>>>24,a=l.SBOX[a>>>24]<<24|l.SBOX[a>>>16&255]<<16|l.SBOX[a>>>8&255]<<8|l.SBOX[255&a],a^=o[s/t|0]<<24):t>6&&s%t==4&&(a=l.SBOX[a>>>24]<<24|l.SBOX[a>>>16&255]<<16|l.SBOX[a>>>8&255]<<8|l.SBOX[255&a]),n[s]=n[s-t]^a}for(var p=[],c=0;c<r;c++){var u=r-c,h=n[u-(c%4?0:4)];p[c]=c<4||u<=4?h:l.INV_SUB_MIX[0][l.SBOX[h>>>24]]^l.INV_SUB_MIX[1][l.SBOX[h>>>16&255]]^l.INV_SUB_MIX[2][l.SBOX[h>>>8&255]]^l.INV_SUB_MIX[3][l.SBOX[255&h]]}this._nRounds=i,this._keySchedule=n,this._invKeySchedule=p},p.prototype.encryptBlockRaw=function(e){return a(e=n(e),this._keySchedule,l.SUB_MIX,l.SBOX,this._nRounds)},p.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),i=r.allocUnsafe(16);return i.writeUInt32BE(t[0],0),i.writeUInt32BE(t[1],4),i.writeUInt32BE(t[2],8),i.writeUInt32BE(t[3],12),i},p.prototype.decryptBlock=function(e){var t=(e=n(e))[1];e[1]=e[3],e[3]=t;var i=a(e,this._invKeySchedule,l.INV_SUB_MIX,l.INV_SBOX,this._nRounds),s=r.allocUnsafe(16);return s.writeUInt32BE(i[0],0),s.writeUInt32BE(i[3],4),s.writeUInt32BE(i[2],8),s.writeUInt32BE(i[1],12),s},p.prototype.scrub=function(){s(this._keySchedule),s(this._invKeySchedule),s(this._key)},e.exports.AES=p},62062:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.buildUndefinedNode=function(){return(0,r.unaryExpression)("void",(0,r.numericLiteral)(0),!0)};var r=i(82208)},62444:(e,t,i)=>{var r=i(67787).Buffer;const n=(()=>{const e=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(Uint8Array.prototype),Symbol.toStringTag).get;return t=>e.call(t)})();function s(e){return"Uint8Array"===n(e)}function a(e){return"object"==typeof e&&null!=e&&Symbol.toStringTag in e&&("ArrayBuffer"===e[Symbol.toStringTag]||"SharedArrayBuffer"===e[Symbol.toStringTag])}function o(e){return e instanceof RegExp||"[object RegExp]"===Object.prototype.toString.call(e)}function l(e){return"object"==typeof e&&null!=e&&Symbol.toStringTag in e&&"Map"===e[Symbol.toStringTag]}function p(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function c(e,t){return JSON.stringify(e,((e,t)=>"bigint"==typeof t?{$numberLong:`${t}`}:l(t)?Object.fromEntries(t):t))}const u=6,h=Symbol.for("@@mdb.bson.version"),d=2147483647,f=-2147483648,m=Math.pow(2,63)-1,y=-Math.pow(2,63),T=Math.pow(2,53),g=-Math.pow(2,53),b=1,S=2,x=3,E=4,v=5,P=6,w=7,A=8,I=9,C=10,N=11,O=12,k=13,_=14,M=15,L=16,D=17,B=18,F=19,j=255,R=127,U=0,V=4,K=Object.freeze({double:1,string:2,object:3,array:4,binData:5,undefined:6,objectId:7,bool:8,date:9,null:10,regex:11,dbPointer:12,javascript:13,symbol:14,javascriptWithScope:15,int:16,timestamp:17,long:18,decimal:19,minKey:-1,maxKey:127});class $ extends Error{get bsonError(){return!0}get name(){return"BSONError"}constructor(e,t){super(e,t)}static isBSONError(e){return null!=e&&"object"==typeof e&&"bsonError"in e&&!0===e.bsonError&&"name"in e&&"message"in e&&"stack"in e}}class q extends ${get name(){return"BSONVersionError"}constructor(){super(`Unsupported BSON version, bson types must be from bson ${u}.x.x`)}}class Y extends ${get name(){return"BSONRuntimeError"}constructor(e){super(e)}}class J extends ${get name(){return"BSONOffsetError"}constructor(e,t,i){super(`${e}. offset: ${t}`,i),this.offset=t}}let X,W;function z(e,t,i,r){if(r){X??=new TextDecoder("utf8",{fatal:!0});try{return X.decode(e.subarray(t,i))}catch(e){throw new $("Invalid UTF-8 string in BSON document",{cause:e})}}return W??=new TextDecoder("utf8",{fatal:!1}),W.decode(e.subarray(t,i))}function H(e,t,i){if(0===e.length)return"";const r=i-t;if(0===r)return"";if(r>20)return null;if(1===r&&e[t]<128)return String.fromCharCode(e[t]);if(2===r&&e[t]<128&&e[t+1]<128)return String.fromCharCode(e[t])+String.fromCharCode(e[t+1]);if(3===r&&e[t]<128&&e[t+1]<128&&e[t+2]<128)return String.fromCharCode(e[t])+String.fromCharCode(e[t+1])+String.fromCharCode(e[t+2]);const n=[];for(let r=t;r<i;r++){const t=e[r];if(t>127)return null;n.push(t)}return String.fromCharCode(...n)}function G(e){return Z.fromNumberArray(Array.from({length:e},(()=>Math.floor(256*Math.random()))))}const Q=(()=>{try{return i(27348).randomBytes}catch{return G}})(),Z={toLocalBufferType(e){if(r.isBuffer(e))return e;if(ArrayBuffer.isView(e))return r.from(e.buffer,e.byteOffset,e.byteLength);const t=e?.[Symbol.toStringTag]??Object.prototype.toString.call(e);if("ArrayBuffer"===t||"SharedArrayBuffer"===t||"[object ArrayBuffer]"===t||"[object SharedArrayBuffer]"===t)return r.from(e);throw new $("Cannot create Buffer from the passed potentialBuffer.")},allocate:e=>r.alloc(e),allocateUnsafe:e=>r.allocUnsafe(e),equals:(e,t)=>Z.toLocalBufferType(e).equals(t),fromNumberArray:e=>r.from(e),fromBase64:e=>r.from(e,"base64"),toBase64:e=>Z.toLocalBufferType(e).toString("base64"),fromISO88591:e=>r.from(e,"binary"),toISO88591:e=>Z.toLocalBufferType(e).toString("binary"),fromHex:e=>r.from(e,"hex"),toHex:e=>Z.toLocalBufferType(e).toString("hex"),toUTF8(e,t,i,r){const n=i-t<=20?H(e,t,i):null;if(null!=n)return n;const s=Z.toLocalBufferType(e).toString("utf8",t,i);if(r)for(let r=0;r<s.length;r++)if(65533===s.charCodeAt(r)){z(e,t,i,!0);break}return s},utf8ByteLength:e=>r.byteLength(e,"utf8"),encodeUTF8Into(e,t,i){const r=function(e,t,i){if(0===t.length)return 0;if(t.length>25)return null;if(e.length-i<t.length)return null;for(let r=0,n=i;r<t.length;r++,n++){const i=t.charCodeAt(r);if(i>127)return null;e[n]=i}return t.length}(e,t,i);return null!=r?r:Z.toLocalBufferType(e).write(t,i,void 0,"utf8")},randomBytes:Q,swap32:e=>Z.toLocalBufferType(e).swap32()};function ee(e){if(e<0)throw new RangeError(`The argument 'byteLength' is invalid. Received ${e}`);return re.fromNumberArray(Array.from({length:e},(()=>Math.floor(256*Math.random()))))}const te=(()=>{const{crypto:e}=globalThis;if(null!=e&&"function"==typeof e.getRandomValues)return t=>e.getRandomValues(re.allocate(t));if(function(){const{navigator:e}=globalThis;return"object"==typeof e&&"ReactNative"===e.product}()){const{console:e}=globalThis;e?.warn?.("BSON: For React Native please polyfill crypto.getRandomValues, e.g. using: https://www.npmjs.com/package/react-native-get-random-values.")}return ee})(),ie=/(\d|[a-f])/i,re={toLocalBufferType(e){const t=e?.[Symbol.toStringTag]??Object.prototype.toString.call(e);if("Uint8Array"===t)return e;if(ArrayBuffer.isView(e))return new Uint8Array(e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength));if("ArrayBuffer"===t||"SharedArrayBuffer"===t||"[object ArrayBuffer]"===t||"[object SharedArrayBuffer]"===t)return new Uint8Array(e);throw new $("Cannot make a Uint8Array from passed potentialBuffer.")},allocate(e){if("number"!=typeof e)throw new TypeError(`The "size" argument must be of type number. Received ${String(e)}`);return new Uint8Array(e)},allocateUnsafe:e=>re.allocate(e),equals(e,t){if(e.byteLength!==t.byteLength)return!1;for(let i=0;i<e.byteLength;i++)if(e[i]!==t[i])return!1;return!0},fromNumberArray:e=>Uint8Array.from(e),fromBase64:e=>Uint8Array.from(atob(e),(e=>e.charCodeAt(0))),toBase64:e=>btoa(re.toISO88591(e)),fromISO88591:e=>Uint8Array.from(e,(e=>255&e.charCodeAt(0))),toISO88591:e=>Array.from(Uint16Array.from(e),(e=>String.fromCharCode(e))).join(""),fromHex(e){const t=e.length%2==0?e:e.slice(0,e.length-1),i=[];for(let e=0;e<t.length;e+=2){const r=t[e],n=t[e+1];if(!ie.test(r))break;if(!ie.test(n))break;const s=Number.parseInt(`${r}${n}`,16);i.push(s)}return Uint8Array.from(i)},toHex:e=>Array.from(e,(e=>e.toString(16).padStart(2,"0"))).join(""),toUTF8(e,t,i,r){const n=i-t<=20?H(e,t,i):null;return null!=n?n:z(e,t,i,r)},utf8ByteLength:e=>(new TextEncoder).encode(e).byteLength,encodeUTF8Into(e,t,i){const r=(new TextEncoder).encode(t);return e.set(r,i),r.byteLength},randomBytes:te,swap32(e){if(e.length%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e.length;t+=4){const i=e[t],r=e[t+1],n=e[t+2],s=e[t+3];e[t]=s,e[t+1]=n,e[t+2]=r,e[t+3]=i}return e}},ne="function"==typeof r&&!0!==r.prototype?._isBuffer?Z:re;class se{get[h](){return u}[Symbol.for("nodejs.util.inspect.custom")](e,t,i){return this.inspect(e,t,i)}}const ae=new Float64Array(1),oe=new Uint8Array(ae.buffer,0,8);ae[0]=-1;const le=0===oe[7],pe={isBigEndian:le,getNonnegativeInt32LE(e,t){if(e[t+3]>127)throw new RangeError(`Size cannot be negative at offset: ${t}`);return e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24},getInt32LE:(e,t)=>e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24,getUint32LE:(e,t)=>e[t]+256*e[t+1]+65536*e[t+2]+16777216*e[t+3],getUint32BE:(e,t)=>e[t+3]+256*e[t+2]+65536*e[t+1]+16777216*e[t],getBigInt64LE(e,t){const i=BigInt(e[t+4]+256*e[t+5]+65536*e[t+6]+(e[t+7]<<24)),r=BigInt(e[t]+256*e[t+1]+65536*e[t+2]+16777216*e[t+3]);return(i<<BigInt(32))+r},getFloat64LE:le?(e,t)=>(oe[7]=e[t],oe[6]=e[t+1],oe[5]=e[t+2],oe[4]=e[t+3],oe[3]=e[t+4],oe[2]=e[t+5],oe[1]=e[t+6],oe[0]=e[t+7],ae[0]):(e,t)=>(oe[0]=e[t],oe[1]=e[t+1],oe[2]=e[t+2],oe[3]=e[t+3],oe[4]=e[t+4],oe[5]=e[t+5],oe[6]=e[t+6],oe[7]=e[t+7],ae[0]),setInt32BE:(e,t,i)=>(e[t+3]=i,i>>>=8,e[t+2]=i,i>>>=8,e[t+1]=i,i>>>=8,e[t]=i,4),setInt32LE:(e,t,i)=>(e[t]=i,i>>>=8,e[t+1]=i,i>>>=8,e[t+2]=i,i>>>=8,e[t+3]=i,4),setBigInt64LE(e,t,i){const r=BigInt(4294967295);let n=Number(i&r);e[t]=n,n>>=8,e[t+1]=n,n>>=8,e[t+2]=n,n>>=8,e[t+3]=n;let s=Number(i>>BigInt(32)&r);return e[t+4]=s,s>>=8,e[t+5]=s,s>>=8,e[t+6]=s,s>>=8,e[t+7]=s,8},setFloat64LE:le?(e,t,i)=>(ae[0]=i,e[t]=oe[7],e[t+1]=oe[6],e[t+2]=oe[5],e[t+3]=oe[4],e[t+4]=oe[3],e[t+5]=oe[2],e[t+6]=oe[1],e[t+7]=oe[0],8):(e,t,i)=>(ae[0]=i,e[t]=oe[0],e[t+1]=oe[1],e[t+2]=oe[2],e[t+3]=oe[3],e[t+4]=oe[4],e[t+5]=oe[5],e[t+6]=oe[6],e[t+7]=oe[7],8)};class ce extends se{get _bsontype(){return"Binary"}constructor(e,t){if(super(),null!=e&&"string"==typeof e&&!ArrayBuffer.isView(e)&&!a(e)&&!Array.isArray(e))throw new $("Binary can only be constructed from Uint8Array or number[]");this.sub_type=t??ce.BSON_BINARY_SUBTYPE_DEFAULT,null==e?(this.buffer=ne.allocate(ce.BUFFER_SIZE),this.position=0):(this.buffer=Array.isArray(e)?ne.fromNumberArray(e):ne.toLocalBufferType(e),this.position=this.buffer.byteLength)}put(e){if("string"==typeof e&&1!==e.length)throw new $("only accepts single character String");if("number"!=typeof e&&1!==e.length)throw new $("only accepts single character Uint8Array or Array");let t;if(t="string"==typeof e?e.charCodeAt(0):"number"==typeof e?e:e[0],t<0||t>255)throw new $("only accepts number in a valid unsigned byte range 0-255");if(this.buffer.byteLength>this.position)this.buffer[this.position++]=t;else{const e=ne.allocate(ce.BUFFER_SIZE+this.buffer.length);e.set(this.buffer,0),this.buffer=e,this.buffer[this.position++]=t}}write(e,t){if(t="number"==typeof t?t:this.position,this.buffer.byteLength<t+e.length){const t=ne.allocate(this.buffer.byteLength+e.length);t.set(this.buffer,0),this.buffer=t}if(ArrayBuffer.isView(e))this.buffer.set(ne.toLocalBufferType(e),t),this.position=t+e.byteLength>this.position?t+e.length:this.position;else if("string"==typeof e)throw new $("input cannot be string")}read(e,t){const i=e+(t=t&&t>0?t:this.position);return this.buffer.subarray(e,i>this.position?this.position:i)}value(){return this.buffer.length===this.position?this.buffer:this.buffer.subarray(0,this.position)}length(){return this.position}toJSON(){return ne.toBase64(this.buffer.subarray(0,this.position))}toString(e){return"hex"===e?ne.toHex(this.buffer.subarray(0,this.position)):"base64"===e?ne.toBase64(this.buffer.subarray(0,this.position)):ne.toUTF8(this.buffer,0,this.position,!1)}toExtendedJSON(e){e=e||{},this.sub_type===ce.SUBTYPE_VECTOR&&ue(this);const t=ne.toBase64(this.buffer),i=Number(this.sub_type).toString(16);return e.legacy?{$binary:t,$type:1===i.length?"0"+i:i}:{$binary:{base64:t,subType:1===i.length?"0"+i:i}}}toUUID(){if(this.sub_type===ce.SUBTYPE_UUID)return new fe(this.buffer.subarray(0,this.position));throw new $(`Binary sub_type "${this.sub_type}" is not supported for converting to UUID. Only "${ce.SUBTYPE_UUID}" is currently supported.`)}static createFromHexString(e,t){return new ce(ne.fromHex(e),t)}static createFromBase64(e,t){return new ce(ne.fromBase64(e),t)}static fromExtendedJSON(e,t){let i,r;if(t=t||{},"$binary"in e?t.legacy&&"string"==typeof e.$binary&&"$type"in e?(r=e.$type?parseInt(e.$type,16):0,i=ne.fromBase64(e.$binary)):"string"!=typeof e.$binary&&(r=e.$binary.subType?parseInt(e.$binary.subType,16):0,i=ne.fromBase64(e.$binary.base64)):"$uuid"in e&&(r=4,i=fe.bytesFromString(e.$uuid)),!i)throw new $(`Unexpected Binary Extended JSON format ${JSON.stringify(e)}`);return r===V?new fe(i):new ce(i,r)}inspect(e,t,i){return i??=c,`Binary.createFromBase64(${i(ne.toBase64(this.buffer.subarray(0,this.position)),t)}, ${i(this.sub_type,t)})`}toInt8Array(){if(this.sub_type!==ce.SUBTYPE_VECTOR)throw new $("Binary sub_type is not Vector");if(this.buffer[0]!==ce.VECTOR_TYPE.Int8)throw new $("Binary datatype field is not Int8");return ue(this),new Int8Array(this.buffer.buffer.slice(this.buffer.byteOffset+2,this.buffer.byteOffset+this.position))}toFloat32Array(){if(this.sub_type!==ce.SUBTYPE_VECTOR)throw new $("Binary sub_type is not Vector");if(this.buffer[0]!==ce.VECTOR_TYPE.Float32)throw new $("Binary datatype field is not Float32");ue(this);const e=new Uint8Array(this.buffer.buffer.slice(this.buffer.byteOffset+2,this.buffer.byteOffset+this.position));return pe.isBigEndian&&ne.swap32(e),new Float32Array(e.buffer)}toPackedBits(){if(this.sub_type!==ce.SUBTYPE_VECTOR)throw new $("Binary sub_type is not Vector");if(this.buffer[0]!==ce.VECTOR_TYPE.PackedBit)throw new $("Binary datatype field is not packed bit");return ue(this),new Uint8Array(this.buffer.buffer.slice(this.buffer.byteOffset+2,this.buffer.byteOffset+this.position))}toBits(){if(this.sub_type!==ce.SUBTYPE_VECTOR)throw new $("Binary sub_type is not Vector");if(this.buffer[0]!==ce.VECTOR_TYPE.PackedBit)throw new $("Binary datatype field is not packed bit");ue(this);const e=8*(this.length()-2)-this.buffer[1],t=new Int8Array(e);for(let e=0;e<t.length;e++){const i=e/8|0,r=this.buffer[i+2]>>7-e%8&1;t[e]=r}return t}static fromInt8Array(e){const t=ne.allocate(e.byteLength+2);t[0]=ce.VECTOR_TYPE.Int8,t[1]=0;const i=new Uint8Array(e.buffer,e.byteOffset,e.byteLength);t.set(i,2);const r=new this(t,this.SUBTYPE_VECTOR);return ue(r),r}static fromFloat32Array(e){const t=ne.allocate(e.byteLength+2);t[0]=ce.VECTOR_TYPE.Float32,t[1]=0;const i=new Uint8Array(e.buffer,e.byteOffset,e.byteLength);t.set(i,2),pe.isBigEndian&&ne.swap32(new Uint8Array(t.buffer,2));const r=new this(t,this.SUBTYPE_VECTOR);return ue(r),r}static fromPackedBits(e,t=0){const i=ne.allocate(e.byteLength+2);i[0]=ce.VECTOR_TYPE.PackedBit,i[1]=t,i.set(e,2);const r=new this(i,this.SUBTYPE_VECTOR);return ue(r),r}static fromBits(e){const t=e.length+7>>>3,i=new Uint8Array(t+2);i[0]=ce.VECTOR_TYPE.PackedBit;const r=e.length%8;i[1]=0===r?0:8-r;for(let t=0;t<e.length;t++){const r=t>>>3,n=e[t];if(0!==n&&1!==n)throw new $(`Invalid bit value at ${t}: must be 0 or 1, found ${e[t]}`);if(0===n)continue;const s=7-t%8;i[r+2]|=n<<s}return new this(i,ce.SUBTYPE_VECTOR)}}function ue(e){if(e.sub_type!==ce.SUBTYPE_VECTOR)return;const t=e.position,i=e.buffer[0],r=e.buffer[1];if((i===ce.VECTOR_TYPE.Float32||i===ce.VECTOR_TYPE.Int8)&&0!==r)throw new $("Invalid Vector: padding must be zero for int8 and float32 vectors");if(i===ce.VECTOR_TYPE.Float32&&0!==t&&t-2!=0&&(t-2)%4!=0)throw new $("Invalid Vector: Float32 vector must contain a multiple of 4 bytes");if(i===ce.VECTOR_TYPE.PackedBit&&0!==r&&2===t)throw new $("Invalid Vector: padding must be zero for packed bit vectors that are empty");if(i===ce.VECTOR_TYPE.PackedBit&&r>7)throw new $(`Invalid Vector: padding must be a value between 0 and 7. found: ${r}`)}ce.BSON_BINARY_SUBTYPE_DEFAULT=0,ce.BUFFER_SIZE=256,ce.SUBTYPE_DEFAULT=0,ce.SUBTYPE_FUNCTION=1,ce.SUBTYPE_BYTE_ARRAY=2,ce.SUBTYPE_UUID_OLD=3,ce.SUBTYPE_UUID=4,ce.SUBTYPE_MD5=5,ce.SUBTYPE_ENCRYPTED=6,ce.SUBTYPE_COLUMN=7,ce.SUBTYPE_SENSITIVE=8,ce.SUBTYPE_VECTOR=9,ce.SUBTYPE_USER_DEFINED=128,ce.VECTOR_TYPE=Object.freeze({Int8:3,Float32:39,PackedBit:16});const he=/^[0-9A-F]{32}$/i,de=/^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i;class fe extends ce{constructor(e){let t;if(null==e)t=fe.generate();else if(e instanceof fe)t=ne.toLocalBufferType(new Uint8Array(e.buffer));else if(ArrayBuffer.isView(e)&&16===e.byteLength)t=ne.toLocalBufferType(e);else{if("string"!=typeof e)throw new $("Argument passed in UUID constructor must be a UUID, a 16 byte Buffer or a 32/36 character hex string (dashes excluded/included, format: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).");t=fe.bytesFromString(e)}super(t,V)}get id(){return this.buffer}set id(e){this.buffer=e}toHexString(e=!0){return e?[ne.toHex(this.buffer.subarray(0,4)),ne.toHex(this.buffer.subarray(4,6)),ne.toHex(this.buffer.subarray(6,8)),ne.toHex(this.buffer.subarray(8,10)),ne.toHex(this.buffer.subarray(10,16))].join("-"):ne.toHex(this.buffer)}toString(e){return"hex"===e?ne.toHex(this.id):"base64"===e?ne.toBase64(this.id):this.toHexString()}toJSON(){return this.toHexString()}equals(e){if(!e)return!1;if(e instanceof fe)return ne.equals(e.id,this.id);try{return ne.equals(new fe(e).id,this.id)}catch{return!1}}toBinary(){return new ce(this.id,ce.SUBTYPE_UUID)}static generate(){const e=ne.randomBytes(16);return e[6]=15&e[6]|64,e[8]=63&e[8]|128,e}static isValid(e){return!!e&&("string"==typeof e?fe.isValidUUIDString(e):s(e)?16===e.byteLength:"Binary"===e._bsontype&&e.sub_type===this.SUBTYPE_UUID&&16===e.buffer.byteLength)}static createFromHexString(e){const t=fe.bytesFromString(e);return new fe(t)}static createFromBase64(e){return new fe(ne.fromBase64(e))}static bytesFromString(e){if(!fe.isValidUUIDString(e))throw new $("UUID string representation must be 32 hex digits or canonical hyphenated representation");return ne.fromHex(e.replace(/-/g,""))}static isValidUUIDString(e){return he.test(e)||de.test(e)}inspect(e,t,i){return i??=c,`new UUID(${i(this.toHexString(),t)})`}}class me extends se{get _bsontype(){return"Code"}constructor(e,t){super(),this.code=e.toString(),this.scope=t??null}toJSON(){return null!=this.scope?{code:this.code,scope:this.scope}:{code:this.code}}toExtendedJSON(){return this.scope?{$code:this.code,$scope:this.scope}:{$code:this.code}}static fromExtendedJSON(e){return new me(e.$code,e.$scope)}inspect(e,t,i){i??=c;let r=i(this.code,t);const n=r.includes("\n");return null!=this.scope&&(r+=`,${n?"\n":" "}${i(this.scope,t)}`),`new Code(${n?"\n":""}${r}${n&&null===this.scope?"\n":""})`}}function ye(e){return null!=e&&"object"==typeof e&&"$id"in e&&null!=e.$id&&"$ref"in e&&"string"==typeof e.$ref&&(!("$db"in e)||"$db"in e&&"string"==typeof e.$db)}class Te extends se{get _bsontype(){return"DBRef"}constructor(e,t,i,r){super();const n=e.split(".");2===n.length&&(i=n.shift(),e=n.shift()),this.collection=e,this.oid=t,this.db=i,this.fields=r||{}}get namespace(){return this.collection}set namespace(e){this.collection=e}toJSON(){const e=Object.assign({$ref:this.collection,$id:this.oid},this.fields);return null!=this.db&&(e.$db=this.db),e}toExtendedJSON(e){e=e||{};let t={$ref:this.collection,$id:this.oid};return e.legacy||(this.db&&(t.$db=this.db),t=Object.assign(t,this.fields)),t}static fromExtendedJSON(e){const t=Object.assign({},e);return delete t.$ref,delete t.$id,delete t.$db,new Te(e.$ref,e.$id,e.$db,t)}inspect(e,t,i){i??=c;const r=[i(this.namespace,t),i(this.oid,t),...this.db?[i(this.db,t)]:[],...Object.keys(this.fields).length>0?[i(this.fields,t)]:[]];return r[1]=i===c?`new ObjectId(${r[1]})`:r[1],`new DBRef(${r.join(", ")})`}}function ge(e){if(""===e)return e;let t=0;const i="-"===e[t],r="+"===e[t];(r||i)&&(t+=1);let n=!1;for(;t<e.length&&"0"===e[t];++t)n=!0;return n?`${i?"-":""}${e.length===t?"0":e.slice(t)}`:r?e.slice(1):e}let be;try{be=new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{}).exports}catch{}const Se=4294967296,xe=0x10000000000000000,Ee=xe/2,ve={},Pe={},we=/^(\+?0|(\+|-)?[1-9][0-9]*)$/;class Ae extends se{get _bsontype(){return"Long"}get __isLong__(){return!0}constructor(e=0,t,i){super();const r="boolean"==typeof t?t:Boolean(i),n="number"==typeof t?t:0,s="string"==typeof e?Ae.fromString(e,r):"bigint"==typeof e?Ae.fromBigInt(e,r):{low:0|e,high:0|n,unsigned:r};this.low=s.low,this.high=s.high,this.unsigned=s.unsigned}static fromBits(e,t,i){return new Ae(e,t,i)}static fromInt(e,t){let i,r,n;return t?(n=0<=(e>>>=0)&&e<256)&&(r=Pe[e],r)?r:(i=Ae.fromBits(e,(0|e)<0?-1:0,!0),n&&(Pe[e]=i),i):(n=-128<=(e|=0)&&e<128)&&(r=ve[e],r)?r:(i=Ae.fromBits(e,e<0?-1:0,!1),n&&(ve[e]=i),i)}static fromNumber(e,t){if(isNaN(e))return t?Ae.UZERO:Ae.ZERO;if(t){if(e<0)return Ae.UZERO;if(e>=xe)return Ae.MAX_UNSIGNED_VALUE}else{if(e<=-0x8000000000000000)return Ae.MIN_VALUE;if(e+1>=Ee)return Ae.MAX_VALUE}return e<0?Ae.fromNumber(-e,t).neg():Ae.fromBits(e%Se|0,e/Se|0,t)}static fromBigInt(e,t){const i=BigInt(4294967295),r=BigInt(32);return new Ae(Number(e&i),Number(e>>r&i),t)}static _fromString(e,t,i){if(0===e.length)throw new $("empty string");if(i<2||36<i)throw new $("radix");let r;if((r=e.indexOf("-"))>0)throw new $("interior hyphen");if(0===r)return Ae._fromString(e.substring(1),t,i).neg();const n=Ae.fromNumber(Math.pow(i,8));let s=Ae.ZERO;for(let t=0;t<e.length;t+=8){const r=Math.min(8,e.length-t),a=parseInt(e.substring(t,t+r),i);if(r<8){const e=Ae.fromNumber(Math.pow(i,r));s=s.mul(e).add(Ae.fromNumber(a))}else s=s.mul(n),s=s.add(Ae.fromNumber(a))}return s.unsigned=t,s}static fromStringStrict(e,t,i){let r=!1;if("number"==typeof t?(i=t,t=!1):r=!!t,i??=10,e.trim()!==e)throw new $(`Input: '${e}' contains leading and/or trailing whitespace`);if(!function(e,t){const i="0123456789abcdefghijklmnopqrstuvwxyz".slice(0,t=t??10);return!new RegExp(`[^-+${i}]`,"i").test(e)&&e}(e,i))throw new $(`Input: '${e}' contains invalid characters for radix: ${i}`);const n=ge(e),s=Ae._fromString(n,r,i);if(s.toString(i).toLowerCase()!==n.toLowerCase())throw new $(`Input: ${e} is not representable as ${s.unsigned?"an unsigned":"a signed"} 64-bit Long ${null!=i?`with radix: ${i}`:""}`);return s}static fromString(e,t,i){let r=!1;return"number"==typeof t?(i=t,t=!1):r=!!t,i??=10,"NaN"===e&&i<24||("Infinity"===e||"+Infinity"===e||"-Infinity"===e)&&i<35?Ae.ZERO:Ae._fromString(e,r,i)}static fromBytes(e,t,i){return i?Ae.fromBytesLE(e,t):Ae.fromBytesBE(e,t)}static fromBytesLE(e,t){return new Ae(e[0]|e[1]<<8|e[2]<<16|e[3]<<24,e[4]|e[5]<<8|e[6]<<16|e[7]<<24,t)}static fromBytesBE(e,t){return new Ae(e[4]<<24|e[5]<<16|e[6]<<8|e[7],e[0]<<24|e[1]<<16|e[2]<<8|e[3],t)}static isLong(e){return null!=e&&"object"==typeof e&&"__isLong__"in e&&!0===e.__isLong__}static fromValue(e,t){return"number"==typeof e?Ae.fromNumber(e,t):"string"==typeof e?Ae.fromString(e,t):Ae.fromBits(e.low,e.high,"boolean"==typeof t?t:e.unsigned)}add(e){Ae.isLong(e)||(e=Ae.fromValue(e));const t=this.high>>>16,i=65535&this.high,r=this.low>>>16,n=65535&this.low,s=e.high>>>16,a=65535&e.high,o=e.low>>>16;let l=0,p=0,c=0,u=0;return u+=n+(65535&e.low),c+=u>>>16,u&=65535,c+=r+o,p+=c>>>16,c&=65535,p+=i+a,l+=p>>>16,p&=65535,l+=t+s,l&=65535,Ae.fromBits(c<<16|u,l<<16|p,this.unsigned)}and(e){return Ae.isLong(e)||(e=Ae.fromValue(e)),Ae.fromBits(this.low&e.low,this.high&e.high,this.unsigned)}compare(e){if(Ae.isLong(e)||(e=Ae.fromValue(e)),this.eq(e))return 0;const t=this.isNegative(),i=e.isNegative();return t&&!i?-1:!t&&i?1:this.unsigned?e.high>>>0>this.high>>>0||e.high===this.high&&e.low>>>0>this.low>>>0?-1:1:this.sub(e).isNegative()?-1:1}comp(e){return this.compare(e)}divide(e){if(Ae.isLong(e)||(e=Ae.fromValue(e)),e.isZero())throw new $("division by zero");if(be){if(!this.unsigned&&-2147483648===this.high&&-1===e.low&&-1===e.high)return this;const t=(this.unsigned?be.div_u:be.div_s)(this.low,this.high,e.low,e.high);return Ae.fromBits(t,be.get_high(),this.unsigned)}if(this.isZero())return this.unsigned?Ae.UZERO:Ae.ZERO;let t,i,r;if(this.unsigned){if(e.unsigned||(e=e.toUnsigned()),e.gt(this))return Ae.UZERO;if(e.gt(this.shru(1)))return Ae.UONE;r=Ae.UZERO}else{if(this.eq(Ae.MIN_VALUE))return e.eq(Ae.ONE)||e.eq(Ae.NEG_ONE)?Ae.MIN_VALUE:e.eq(Ae.MIN_VALUE)?Ae.ONE:(t=this.shr(1).div(e).shl(1),t.eq(Ae.ZERO)?e.isNegative()?Ae.ONE:Ae.NEG_ONE:(i=this.sub(e.mul(t)),r=t.add(i.div(e)),r));if(e.eq(Ae.MIN_VALUE))return this.unsigned?Ae.UZERO:Ae.ZERO;if(this.isNegative())return e.isNegative()?this.neg().div(e.neg()):this.neg().div(e).neg();if(e.isNegative())return this.div(e.neg()).neg();r=Ae.ZERO}for(i=this;i.gte(e);){t=Math.max(1,Math.floor(i.toNumber()/e.toNumber()));const n=Math.ceil(Math.log(t)/Math.LN2),s=n<=48?1:Math.pow(2,n-48);let a=Ae.fromNumber(t),o=a.mul(e);for(;o.isNegative()||o.gt(i);)t-=s,a=Ae.fromNumber(t,this.unsigned),o=a.mul(e);a.isZero()&&(a=Ae.ONE),r=r.add(a),i=i.sub(o)}return r}div(e){return this.divide(e)}equals(e){return Ae.isLong(e)||(e=Ae.fromValue(e)),(this.unsigned===e.unsigned||this.high>>>31!=1||e.high>>>31!=1)&&this.high===e.high&&this.low===e.low}eq(e){return this.equals(e)}getHighBits(){return this.high}getHighBitsUnsigned(){return this.high>>>0}getLowBits(){return this.low}getLowBitsUnsigned(){return this.low>>>0}getNumBitsAbs(){if(this.isNegative())return this.eq(Ae.MIN_VALUE)?64:this.neg().getNumBitsAbs();const e=0!==this.high?this.high:this.low;let t;for(t=31;t>0&&!(e&1<<t);t--);return 0!==this.high?t+33:t+1}greaterThan(e){return this.comp(e)>0}gt(e){return this.greaterThan(e)}greaterThanOrEqual(e){return this.comp(e)>=0}gte(e){return this.greaterThanOrEqual(e)}ge(e){return this.greaterThanOrEqual(e)}isEven(){return!(1&this.low)}isNegative(){return!this.unsigned&&this.high<0}isOdd(){return!(1&~this.low)}isPositive(){return this.unsigned||this.high>=0}isZero(){return 0===this.high&&0===this.low}lessThan(e){return this.comp(e)<0}lt(e){return this.lessThan(e)}lessThanOrEqual(e){return this.comp(e)<=0}lte(e){return this.lessThanOrEqual(e)}modulo(e){if(Ae.isLong(e)||(e=Ae.fromValue(e)),be){const t=(this.unsigned?be.rem_u:be.rem_s)(this.low,this.high,e.low,e.high);return Ae.fromBits(t,be.get_high(),this.unsigned)}return this.sub(this.div(e).mul(e))}mod(e){return this.modulo(e)}rem(e){return this.modulo(e)}multiply(e){if(this.isZero())return Ae.ZERO;if(Ae.isLong(e)||(e=Ae.fromValue(e)),be){const t=be.mul(this.low,this.high,e.low,e.high);return Ae.fromBits(t,be.get_high(),this.unsigned)}if(e.isZero())return Ae.ZERO;if(this.eq(Ae.MIN_VALUE))return e.isOdd()?Ae.MIN_VALUE:Ae.ZERO;if(e.eq(Ae.MIN_VALUE))return this.isOdd()?Ae.MIN_VALUE:Ae.ZERO;if(this.isNegative())return e.isNegative()?this.neg().mul(e.neg()):this.neg().mul(e).neg();if(e.isNegative())return this.mul(e.neg()).neg();if(this.lt(Ae.TWO_PWR_24)&&e.lt(Ae.TWO_PWR_24))return Ae.fromNumber(this.toNumber()*e.toNumber(),this.unsigned);const t=this.high>>>16,i=65535&this.high,r=this.low>>>16,n=65535&this.low,s=e.high>>>16,a=65535&e.high,o=e.low>>>16,l=65535&e.low;let p=0,c=0,u=0,h=0;return h+=n*l,u+=h>>>16,h&=65535,u+=r*l,c+=u>>>16,u&=65535,u+=n*o,c+=u>>>16,u&=65535,c+=i*l,p+=c>>>16,c&=65535,c+=r*o,p+=c>>>16,c&=65535,c+=n*a,p+=c>>>16,c&=65535,p+=t*l+i*o+r*a+n*s,p&=65535,Ae.fromBits(u<<16|h,p<<16|c,this.unsigned)}mul(e){return this.multiply(e)}negate(){return!this.unsigned&&this.eq(Ae.MIN_VALUE)?Ae.MIN_VALUE:this.not().add(Ae.ONE)}neg(){return this.negate()}not(){return Ae.fromBits(~this.low,~this.high,this.unsigned)}notEquals(e){return!this.equals(e)}neq(e){return this.notEquals(e)}ne(e){return this.notEquals(e)}or(e){return Ae.isLong(e)||(e=Ae.fromValue(e)),Ae.fromBits(this.low|e.low,this.high|e.high,this.unsigned)}shiftLeft(e){return Ae.isLong(e)&&(e=e.toInt()),0==(e&=63)?this:e<32?Ae.fromBits(this.low<<e,this.high<<e|this.low>>>32-e,this.unsigned):Ae.fromBits(0,this.low<<e-32,this.unsigned)}shl(e){return this.shiftLeft(e)}shiftRight(e){return Ae.isLong(e)&&(e=e.toInt()),0==(e&=63)?this:e<32?Ae.fromBits(this.low>>>e|this.high<<32-e,this.high>>e,this.unsigned):Ae.fromBits(this.high>>e-32,this.high>=0?0:-1,this.unsigned)}shr(e){return this.shiftRight(e)}shiftRightUnsigned(e){if(Ae.isLong(e)&&(e=e.toInt()),0==(e&=63))return this;{const t=this.high;if(e<32){const i=this.low;return Ae.fromBits(i>>>e|t<<32-e,t>>>e,this.unsigned)}return 32===e?Ae.fromBits(t,0,this.unsigned):Ae.fromBits(t>>>e-32,0,this.unsigned)}}shr_u(e){return this.shiftRightUnsigned(e)}shru(e){return this.shiftRightUnsigned(e)}subtract(e){return Ae.isLong(e)||(e=Ae.fromValue(e)),this.add(e.neg())}sub(e){return this.subtract(e)}toInt(){return this.unsigned?this.low>>>0:this.low}toNumber(){return this.unsigned?(this.high>>>0)*Se+(this.low>>>0):this.high*Se+(this.low>>>0)}toBigInt(){return BigInt(this.toString())}toBytes(e){return e?this.toBytesLE():this.toBytesBE()}toBytesLE(){const e=this.high,t=this.low;return[255&t,t>>>8&255,t>>>16&255,t>>>24,255&e,e>>>8&255,e>>>16&255,e>>>24]}toBytesBE(){const e=this.high,t=this.low;return[e>>>24,e>>>16&255,e>>>8&255,255&e,t>>>24,t>>>16&255,t>>>8&255,255&t]}toSigned(){return this.unsigned?Ae.fromBits(this.low,this.high,!1):this}toString(e){if((e=e||10)<2||36<e)throw new $("radix");if(this.isZero())return"0";if(this.isNegative()){if(this.eq(Ae.MIN_VALUE)){const t=Ae.fromNumber(e),i=this.div(t),r=i.mul(t).sub(this);return i.toString(e)+r.toInt().toString(e)}return"-"+this.neg().toString(e)}const t=Ae.fromNumber(Math.pow(e,6),this.unsigned);let i=this,r="";for(;;){const n=i.div(t);let s=(i.sub(n.mul(t)).toInt()>>>0).toString(e);if(i=n,i.isZero())return s+r;for(;s.length<6;)s="0"+s;r=""+s+r}}toUnsigned(){return this.unsigned?this:Ae.fromBits(this.low,this.high,!0)}xor(e){return Ae.isLong(e)||(e=Ae.fromValue(e)),Ae.fromBits(this.low^e.low,this.high^e.high,this.unsigned)}eqz(){return this.isZero()}le(e){return this.lessThanOrEqual(e)}toExtendedJSON(e){return e&&e.relaxed?this.toNumber():{$numberLong:this.toString()}}static fromExtendedJSON(e,t){const{useBigInt64:i=!1,relaxed:r=!0}={...t};if(e.$numberLong.length>20)throw new $("$numberLong string is too long");if(!we.test(e.$numberLong))throw new $(`$numberLong string "${e.$numberLong}" is in an invalid format`);if(i){const t=BigInt(e.$numberLong);return BigInt.asIntN(64,t)}const n=Ae.fromString(e.$numberLong);return r?n.toNumber():n}inspect(e,t,i){return i??=c,`new Long(${i(this.toString(),t)}${this.unsigned?`, ${i(this.unsigned,t)}`:""})`}}Ae.TWO_PWR_24=Ae.fromInt(1<<24),Ae.MAX_UNSIGNED_VALUE=Ae.fromBits(-1,-1,!0),Ae.ZERO=Ae.fromInt(0),Ae.UZERO=Ae.fromInt(0,!0),Ae.ONE=Ae.fromInt(1),Ae.UONE=Ae.fromInt(1,!0),Ae.NEG_ONE=Ae.fromInt(-1),Ae.MAX_VALUE=Ae.fromBits(-1,2147483647,!1),Ae.MIN_VALUE=Ae.fromBits(0,-2147483648,!1);const Ie=/^(\+|-)?(\d+|(\d*\.\d*))?(E|e)?([-+])?(\d+)?$/,Ce=/^(\+|-)?(Infinity|inf)$/i,Ne=/^(\+|-)?NaN$/i,Oe=6111,ke=-6176,_e=ne.fromNumberArray([124,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0].reverse()),Me=ne.fromNumberArray([248,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0].reverse()),Le=ne.fromNumberArray([120,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0].reverse()),De=/^([-+])?(\d+)?$/;function Be(e){return!isNaN(parseInt(e,10))}function Fe(e){const t=Ae.fromNumber(1e9);let i=Ae.fromNumber(0);if(!(e.parts[0]||e.parts[1]||e.parts[2]||e.parts[3]))return{quotient:e,rem:i};for(let r=0;r<=3;r++)i=i.shiftLeft(32),i=i.add(new Ae(e.parts[r],0)),e.parts[r]=i.div(t).low,i=i.modulo(t);return{quotient:e,rem:i}}function je(e,t){throw new $(`"${e}" is not a valid Decimal128 string - ${t}`)}class Re extends se{get _bsontype(){return"Decimal128"}constructor(e){if(super(),"string"==typeof e)this.bytes=Re.fromString(e).bytes;else{if(!(e instanceof Uint8Array||s(e)))throw new $("Decimal128 must take a Buffer or string");if(16!==e.byteLength)throw new $("Decimal128 must take a Buffer of 16 bytes");this.bytes=e}}static fromString(e){return Re._fromString(e,{allowRounding:!1})}static fromStringWithRounding(e){return Re._fromString(e,{allowRounding:!0})}static _fromString(e,t){let i=!1,r=!1,n=!1,s=!1,a=0,o=0,l=0,p=0,c=0;const u=[0];let h=0,d=0,f=0,m=0,y=new Ae(0,0),T=new Ae(0,0),g=0,b=0;if(e.length>=7e3)throw new $(e+" not a valid Decimal128 string");const S=e.match(Ie),x=e.match(Ce),E=e.match(Ne);if(!S&&!x&&!E||0===e.length)throw new $(e+" not a valid Decimal128 string");if(S){const t=S[2],i=S[4],r=S[5],n=S[6];i&&void 0===n&&je(e,"missing exponent power"),i&&void 0===t&&je(e,"missing exponent base"),void 0===i&&(r||n)&&je(e,"missing e before exponent")}if("+"!==e[b]&&"-"!==e[b]||(r=!0,i="-"===e[b++]),!Be(e[b])&&"."!==e[b]){if("i"===e[b]||"I"===e[b])return new Re(i?Me:Le);if("N"===e[b])return new Re(_e)}for(;Be(e[b])||"."===e[b];)"."!==e[b]?(h<34&&("0"!==e[b]||s)&&(s||(c=o),s=!0,u[d++]=parseInt(e[b],10),h+=1),s&&(l+=1),n&&(p+=1),o+=1,b+=1):(n&&je(e,"contains multiple periods"),n=!0,b+=1);if(n&&!o)throw new $(e+" not a valid Decimal128 string");if("e"===e[b]||"E"===e[b]){const t=e.substr(++b).match(De);if(!t||!t[2])return new Re(_e);m=parseInt(t[0],10),b+=t[0].length}if(e[b])return new Re(_e);if(h){if(f=h-1,a=l,1!==a)for(;"0"===e[c+a-1+Number(r)+Number(n)];)a-=1}else u[0]=0,l=1,h=1,a=0;for(m<=p&&p>m+16384?m=ke:m-=p;m>Oe;){if(f+=1,f>=34){if(0===a){m=Oe;break}je(e,"overflow")}m-=1}if(t.allowRounding){for(;m<ke||h<l;){if(0===f&&a<h){m=ke,a=0;break}if(h<l?l-=1:f-=1,m<Oe)m+=1;else{if(u.join("").match(/^0+$/)){m=Oe;break}je(e,"overflow")}}if(f+1<a){let t=o;n&&(c+=1,t+=1),r&&(c+=1,t+=1);const s=parseInt(e[c+f+1],10);let a=0;if(s>=5&&(a=1,5===s)){a=u[f]%2==1?1:0;for(let i=c+f+2;i<t;i++)if(parseInt(e[i],10)){a=1;break}}if(a){let e=f;for(;e>=0&&++u[e]>9;e--)if(u[e]=0,0===e){if(!(m<Oe))return new Re(i?Me:Le);m+=1,u[e]=1}}}}else{for(;m<ke||h<l;){if(0===f){if(0===a){m=ke;break}je(e,"exponent underflow")}h<l?("0"!==e[l-1+Number(r)+Number(n)]&&0!==a&&je(e,"inexact rounding"),l-=1):(0!==u[f]&&je(e,"inexact rounding"),f-=1),m<Oe?m+=1:je(e,"overflow")}f+1<a&&(n&&(c+=1),r&&(c+=1),0!==parseInt(e[c+f+1],10)&&je(e,"inexact rounding"))}if(y=Ae.fromNumber(0),T=Ae.fromNumber(0),0===a)y=Ae.fromNumber(0),T=Ae.fromNumber(0);else if(f<17){let e=0;for(T=Ae.fromNumber(u[e++]),y=new Ae(0,0);e<=f;e++)T=T.multiply(Ae.fromNumber(10)),T=T.add(Ae.fromNumber(u[e]))}else{let e=0;for(y=Ae.fromNumber(u[e++]);e<=f-17;e++)y=y.multiply(Ae.fromNumber(10)),y=y.add(Ae.fromNumber(u[e]));for(T=Ae.fromNumber(u[e++]);e<=f;e++)T=T.multiply(Ae.fromNumber(10)),T=T.add(Ae.fromNumber(u[e]))}const v=function(e,t){if(!e&&!t)return{high:Ae.fromNumber(0),low:Ae.fromNumber(0)};const i=e.shiftRightUnsigned(32),r=new Ae(e.getLowBits(),0),n=t.shiftRightUnsigned(32),s=new Ae(t.getLowBits(),0);let a=i.multiply(n),o=i.multiply(s);const l=r.multiply(n);let p=r.multiply(s);return a=a.add(o.shiftRightUnsigned(32)),o=new Ae(o.getLowBits(),0).add(l).add(p.shiftRightUnsigned(32)),a=a.add(o.shiftRightUnsigned(32)),p=o.shiftLeft(32).add(new Ae(p.getLowBits(),0)),{high:a,low:p}}(y,Ae.fromString("100000000000000000"));v.low=v.low.add(T),function(e,t){const i=e.high>>>0,r=t.high>>>0;return i<r||i===r&&e.low>>>0<t.low>>>0}(v.low,T)&&(v.high=v.high.add(Ae.fromNumber(1))),g=m+6176;const P={low:Ae.fromNumber(0),high:Ae.fromNumber(0)};v.high.shiftRightUnsigned(49).and(Ae.fromNumber(1)).equals(Ae.fromNumber(1))?(P.high=P.high.or(Ae.fromNumber(3).shiftLeft(61)),P.high=P.high.or(Ae.fromNumber(g).and(Ae.fromNumber(16383).shiftLeft(47))),P.high=P.high.or(v.high.and(Ae.fromNumber(0x7fffffffffff)))):(P.high=P.high.or(Ae.fromNumber(16383&g).shiftLeft(49)),P.high=P.high.or(v.high.and(Ae.fromNumber(562949953421311)))),P.low=v.low,i&&(P.high=P.high.or(Ae.fromString("9223372036854775808")));const w=ne.allocateUnsafe(16);return b=0,w[b++]=255&P.low.low,w[b++]=P.low.low>>8&255,w[b++]=P.low.low>>16&255,w[b++]=P.low.low>>24&255,w[b++]=255&P.low.high,w[b++]=P.low.high>>8&255,w[b++]=P.low.high>>16&255,w[b++]=P.low.high>>24&255,w[b++]=255&P.high.low,w[b++]=P.high.low>>8&255,w[b++]=P.high.low>>16&255,w[b++]=P.high.low>>24&255,w[b++]=255&P.high.high,w[b++]=P.high.high>>8&255,w[b++]=P.high.high>>16&255,w[b++]=P.high.high>>24&255,new Re(w)}toString(){let e,t=0;const i=new Array(36);for(let e=0;e<i.length;e++)i[e]=0;let r,n,s,a=0,o=!1,l={parts:[0,0,0,0]};const p=[];a=0;const c=this.bytes,u=c[a++]|c[a++]<<8|c[a++]<<16|c[a++]<<24,h=c[a++]|c[a++]<<8|c[a++]<<16|c[a++]<<24,d=c[a++]|c[a++]<<8|c[a++]<<16|c[a++]<<24,f=c[a++]|c[a++]<<8|c[a++]<<16|c[a++]<<24;a=0,(new Ae(u,h),new Ae(d,f)).lessThan(Ae.ZERO)&&p.push("-");const m=f>>26&31;if(m>>3==3){if(30===m)return p.join("")+"Infinity";if(31===m)return"NaN";e=f>>15&16383,r=8+(f>>14&1)}else r=f>>14&7,e=f>>17&16383;const y=e-6176;if(l.parts[0]=(16383&f)+((15&r)<<14),l.parts[1]=d,l.parts[2]=h,l.parts[3]=u,0===l.parts[0]&&0===l.parts[1]&&0===l.parts[2]&&0===l.parts[3])o=!0;else for(s=3;s>=0;s--){let e=0;const t=Fe(l);if(l=t.quotient,e=t.rem.low,e)for(n=8;n>=0;n--)i[9*s+n]=e%10,e=Math.floor(e/10)}if(o)t=1,i[a]=0;else for(t=36;!i[a];)t-=1,a+=1;const T=t-1+y;if(T>=34||T<=-7||y>0){if(t>34)return p.push("0"),y>0?p.push(`E+${y}`):y<0&&p.push(`E${y}`),p.join("");p.push(`${i[a++]}`),t-=1,t&&p.push(".");for(let e=0;e<t;e++)p.push(`${i[a++]}`);p.push("E"),T>0?p.push(`+${T}`):p.push(`${T}`)}else if(y>=0)for(let e=0;e<t;e++)p.push(`${i[a++]}`);else{let e=t+y;if(e>0)for(let t=0;t<e;t++)p.push(`${i[a++]}`);else p.push("0");for(p.push(".");e++<0;)p.push("0");for(let r=0;r<t-Math.max(e-1,0);r++)p.push(`${i[a++]}`)}return p.join("")}toJSON(){return{$numberDecimal:this.toString()}}toExtendedJSON(){return{$numberDecimal:this.toString()}}static fromExtendedJSON(e){return Re.fromString(e.$numberDecimal)}inspect(e,t,i){return i??=c,`new Decimal128(${i(this.toString(),t)})`}}class Ue extends se{get _bsontype(){return"Double"}constructor(e){super(),e instanceof Number&&(e=e.valueOf()),this.value=+e}static fromString(e){const t=Number(e);if("NaN"===e)return new Ue(NaN);if("Infinity"===e)return new Ue(1/0);if("-Infinity"===e)return new Ue(-1/0);if(!Number.isFinite(t))throw new $(`Input: ${e} is not representable as a Double`);if(e.trim()!==e)throw new $(`Input: '${e}' contains whitespace`);if(""===e)throw new $("Input is an empty string");if(/[^-0-9.+eE]/.test(e))throw new $(`Input: '${e}' is not in decimal or exponential notation`);return new Ue(t)}valueOf(){return this.value}toJSON(){return this.value}toString(e){return this.value.toString(e)}toExtendedJSON(e){return e&&(e.legacy||e.relaxed&&isFinite(this.value))?this.value:Object.is(Math.sign(this.value),-0)?{$numberDouble:"-0.0"}:{$numberDouble:Number.isInteger(this.value)?this.value.toFixed(1):this.value.toString()}}static fromExtendedJSON(e,t){const i=parseFloat(e.$numberDouble);return t&&t.relaxed?i:new Ue(i)}inspect(e,t,i){return i??=c,`new Double(${i(this.value,t)})`}}class Ve extends se{get _bsontype(){return"Int32"}constructor(e){super(),e instanceof Number&&(e=e.valueOf()),this.value=0|+e}static fromString(e){const t=ge(e),i=Number(e);if(d<i)throw new $(`Input: '${e}' is larger than the maximum value for Int32`);if(f>i)throw new $(`Input: '${e}' is smaller than the minimum value for Int32`);if(!Number.isSafeInteger(i))throw new $(`Input: '${e}' is not a safe integer`);if(i.toString()!==t)throw new $(`Input: '${e}' is not a valid Int32 string`);return new Ve(i)}valueOf(){return this.value}toString(e){return this.value.toString(e)}toJSON(){return this.value}toExtendedJSON(e){return e&&(e.relaxed||e.legacy)?this.value:{$numberInt:this.value.toString()}}static fromExtendedJSON(e,t){return t&&t.relaxed?parseInt(e.$numberInt,10):new Ve(e.$numberInt)}inspect(e,t,i){return i??=c,`new Int32(${i(this.value,t)})`}}class Ke extends se{get _bsontype(){return"MaxKey"}toExtendedJSON(){return{$maxKey:1}}static fromExtendedJSON(){return new Ke}inspect(){return"new MaxKey()"}}class $e extends se{get _bsontype(){return"MinKey"}toExtendedJSON(){return{$minKey:1}}static fromExtendedJSON(){return new $e}inspect(){return"new MinKey()"}}let qe=null;const Ye=new WeakMap;class Je extends se{get _bsontype(){return"ObjectId"}constructor(e){let t;if(super(),"object"==typeof e&&e&&"id"in e){if("string"!=typeof e.id&&!ArrayBuffer.isView(e.id))throw new $("Argument passed in must have an id that is of type string or Buffer");t="toHexString"in e&&"function"==typeof e.toHexString?ne.fromHex(e.toHexString()):e.id}else t=e;if(null==t||"number"==typeof t)this.buffer=Je.generate("number"==typeof t?t:void 0);else if(ArrayBuffer.isView(t)&&12===t.byteLength)this.buffer=ne.toLocalBufferType(t);else{if("string"!=typeof t)throw new $("Argument passed in does not match the accepted types");if(!Je.validateHexString(t))throw new $("input must be a 24 character hex string, 12 byte Uint8Array, or an integer");this.buffer=ne.fromHex(t),Je.cacheHexString&&Ye.set(this,t)}}get id(){return this.buffer}set id(e){this.buffer=e,Je.cacheHexString&&Ye.set(this,ne.toHex(e))}static validateHexString(e){if(24!==e?.length)return!1;for(let t=0;t<24;t++){const i=e.charCodeAt(t);if(!(i>=48&&i<=57||i>=97&&i<=102||i>=65&&i<=70))return!1}return!0}toHexString(){if(Je.cacheHexString){const e=Ye.get(this);if(e)return e}const e=ne.toHex(this.id);return Je.cacheHexString&&Ye.set(this,e),e}static getInc(){return Je.index=(Je.index+1)%16777215}static generate(e){"number"!=typeof e&&(e=Math.floor(Date.now()/1e3));const t=Je.getInc(),i=ne.allocateUnsafe(12);return pe.setInt32BE(i,0,e),null===qe&&(qe=ne.randomBytes(5)),i[4]=qe[0],i[5]=qe[1],i[6]=qe[2],i[7]=qe[3],i[8]=qe[4],i[11]=255&t,i[10]=t>>8&255,i[9]=t>>16&255,i}toString(e){return"base64"===e?ne.toBase64(this.id):this.toHexString()}toJSON(){return this.toHexString()}static is(e){return null!=e&&"object"==typeof e&&"_bsontype"in e&&"ObjectId"===e._bsontype}equals(e){if(null==e)return!1;if(Je.is(e))return this.buffer[11]===e.buffer[11]&&ne.equals(this.buffer,e.buffer);if("string"==typeof e)return e.toLowerCase()===this.toHexString();if("object"==typeof e&&"function"==typeof e.toHexString){const t=e.toHexString(),i=this.toHexString();return"string"==typeof t&&t.toLowerCase()===i}return!1}getTimestamp(){const e=new Date,t=pe.getUint32BE(this.buffer,0);return e.setTime(1e3*Math.floor(t)),e}static createPk(){return new Je}serializeInto(e,t){return e[t]=this.buffer[0],e[t+1]=this.buffer[1],e[t+2]=this.buffer[2],e[t+3]=this.buffer[3],e[t+4]=this.buffer[4],e[t+5]=this.buffer[5],e[t+6]=this.buffer[6],e[t+7]=this.buffer[7],e[t+8]=this.buffer[8],e[t+9]=this.buffer[9],e[t+10]=this.buffer[10],e[t+11]=this.buffer[11],12}static createFromTime(e){const t=ne.allocate(12);for(let e=11;e>=4;e--)t[e]=0;return pe.setInt32BE(t,0,e),new Je(t)}static createFromHexString(e){if(24!==e?.length)throw new $("hex string must be 24 characters");return new Je(ne.fromHex(e))}static createFromBase64(e){if(16!==e?.length)throw new $("base64 string must be 16 characters");return new Je(ne.fromBase64(e))}static isValid(e){if(null==e)return!1;if("string"==typeof e)return Je.validateHexString(e);try{return new Je(e),!0}catch{return!1}}toExtendedJSON(){return this.toHexString?{$oid:this.toHexString()}:{$oid:this.toString("hex")}}static fromExtendedJSON(e){return new Je(e.$oid)}isCached(){return Je.cacheHexString&&Ye.has(this)}inspect(e,t,i){return i??=c,`new ObjectId(${i(this.toHexString(),t)})`}}function Xe(e,t,i){let r=5;if(Array.isArray(e))for(let n=0;n<e.length;n++)r+=We(n.toString(),e[n],t,!0,i);else{"function"==typeof e?.toBSON&&(e=e.toBSON());for(const n of Object.keys(e))r+=We(n,e[n],t,!1,i)}return r}function We(e,t,i=!1,r=!1,n=!1){switch("function"==typeof t?.toBSON&&(t=t.toBSON()),typeof t){case"string":return 1+ne.utf8ByteLength(e)+1+4+ne.utf8ByteLength(t)+1;case"number":return Math.floor(t)===t&&t>=g&&t<=T&&t>=f&&t<=d?(null!=e?ne.utf8ByteLength(e)+1:0)+5:(null!=e?ne.utf8ByteLength(e)+1:0)+9;case"undefined":return r||!n?(null!=e?ne.utf8ByteLength(e)+1:0)+1:0;case"boolean":return(null!=e?ne.utf8ByteLength(e)+1:0)+2;case"object":if(null!=t&&"string"==typeof t._bsontype&&t[h]!==u)throw new q;if(null==t||"MinKey"===t._bsontype||"MaxKey"===t._bsontype)return(null!=e?ne.utf8ByteLength(e)+1:0)+1;if("ObjectId"===t._bsontype)return(null!=e?ne.utf8ByteLength(e)+1:0)+13;if(t instanceof Date||p(t))return(null!=e?ne.utf8ByteLength(e)+1:0)+9;if(ArrayBuffer.isView(t)||t instanceof ArrayBuffer||a(t))return(null!=e?ne.utf8ByteLength(e)+1:0)+6+t.byteLength;if("Long"===t._bsontype||"Double"===t._bsontype||"Timestamp"===t._bsontype)return(null!=e?ne.utf8ByteLength(e)+1:0)+9;if("Decimal128"===t._bsontype)return(null!=e?ne.utf8ByteLength(e)+1:0)+17;if("Code"===t._bsontype)return null!=t.scope&&Object.keys(t.scope).length>0?(null!=e?ne.utf8ByteLength(e)+1:0)+1+4+4+ne.utf8ByteLength(t.code.toString())+1+Xe(t.scope,i,n):(null!=e?ne.utf8ByteLength(e)+1:0)+1+4+ne.utf8ByteLength(t.code.toString())+1;if("Binary"===t._bsontype){const i=t;return i.sub_type===ce.SUBTYPE_BYTE_ARRAY?(null!=e?ne.utf8ByteLength(e)+1:0)+(i.position+1+4+1+4):(null!=e?ne.utf8ByteLength(e)+1:0)+(i.position+1+4+1)}if("Symbol"===t._bsontype)return(null!=e?ne.utf8ByteLength(e)+1:0)+ne.utf8ByteLength(t.value)+4+1+1;if("DBRef"===t._bsontype){const r=Object.assign({$ref:t.collection,$id:t.oid},t.fields);return null!=t.db&&(r.$db=t.db),(null!=e?ne.utf8ByteLength(e)+1:0)+1+Xe(r,i,n)}return t instanceof RegExp||o(t)?(null!=e?ne.utf8ByteLength(e)+1:0)+1+ne.utf8ByteLength(t.source)+1+(t.global?1:0)+(t.ignoreCase?1:0)+(t.multiline?1:0)+1:"BSONRegExp"===t._bsontype?(null!=e?ne.utf8ByteLength(e)+1:0)+1+ne.utf8ByteLength(t.pattern)+1+ne.utf8ByteLength(t.options)+1:(null!=e?ne.utf8ByteLength(e)+1:0)+Xe(t,i,n)+1;case"function":return i?(null!=e?ne.utf8ByteLength(e)+1:0)+1+4+ne.utf8ByteLength(t.toString())+1:0;case"bigint":return(null!=e?ne.utf8ByteLength(e)+1:0)+9;case"symbol":return 0;default:throw new $("Unrecognized JS type: "+typeof t)}}Je.index=Math.floor(16777215*Math.random());class ze extends se{get _bsontype(){return"BSONRegExp"}constructor(e,t){if(super(),this.pattern=e,this.options=(t??"").split("").sort().join(""),-1!==this.pattern.indexOf("\0"))throw new $(`BSON Regex patterns cannot contain null bytes, found: ${JSON.stringify(this.pattern)}`);if(-1!==this.options.indexOf("\0"))throw new $(`BSON Regex options cannot contain null bytes, found: ${JSON.stringify(this.options)}`);for(let e=0;e<this.options.length;e++)if("i"!==this.options[e]&&"m"!==this.options[e]&&"x"!==this.options[e]&&"l"!==this.options[e]&&"s"!==this.options[e]&&"u"!==this.options[e])throw new $(`The regular expression option [${this.options[e]}] is not supported`)}static parseOptions(e){return e?e.split("").sort().join(""):""}toExtendedJSON(e){return(e=e||{}).legacy?{$regex:this.pattern,$options:this.options}:{$regularExpression:{pattern:this.pattern,options:this.options}}}static fromExtendedJSON(e){if("$regex"in e){if("string"==typeof e.$regex)return new ze(e.$regex,ze.parseOptions(e.$options));if("BSONRegExp"===e.$regex._bsontype)return e}if("$regularExpression"in e)return new ze(e.$regularExpression.pattern,ze.parseOptions(e.$regularExpression.options));throw new $(`Unexpected BSONRegExp EJSON object form: ${JSON.stringify(e)}`)}inspect(e,t,i){const r=function(e){if(null!=e&&"object"==typeof e&&"stylize"in e&&"function"==typeof e.stylize)return e.stylize}(t)??(e=>e);return i??=c,`new BSONRegExp(${r(i(this.pattern),"regexp")}, ${r(i(this.options),"regexp")})`}}class He extends se{get _bsontype(){return"BSONSymbol"}constructor(e){super(),this.value=e}valueOf(){return this.value}toString(){return this.value}toJSON(){return this.value}toExtendedJSON(){return{$symbol:this.value}}static fromExtendedJSON(e){return new He(e.$symbol)}inspect(e,t,i){return i??=c,`new BSONSymbol(${i(this.value,t)})`}}const Ge=Ae;class Qe extends Ge{get _bsontype(){return"Timestamp"}get i(){return this.low>>>0}get t(){return this.high>>>0}constructor(e){if(null==e)super(0,0,!0);else if("bigint"==typeof e)super(e,!0);else if(Ae.isLong(e))super(e.low,e.high,!0);else{if("object"!=typeof e||!("t"in e)||!("i"in e))throw new $("A Timestamp can only be constructed with: bigint, Long, or { t: number; i: number }");{if("number"!=typeof e.t&&("object"!=typeof e.t||"Int32"!==e.t._bsontype))throw new $("Timestamp constructed from { t, i } must provide t as a number");if("number"!=typeof e.i&&("object"!=typeof e.i||"Int32"!==e.i._bsontype))throw new $("Timestamp constructed from { t, i } must provide i as a number");const t=Number(e.t),i=Number(e.i);if(t<0||Number.isNaN(t))throw new $("Timestamp constructed from { t, i } must provide a positive t");if(i<0||Number.isNaN(i))throw new $("Timestamp constructed from { t, i } must provide a positive i");if(t>4294967295)throw new $("Timestamp constructed from { t, i } must provide t equal or less than uint32 max");if(i>4294967295)throw new $("Timestamp constructed from { t, i } must provide i equal or less than uint32 max");super(i,t,!0)}}}toJSON(){return{$timestamp:this.toString()}}static fromInt(e){return new Qe(Ae.fromInt(e,!0))}static fromNumber(e){return new Qe(Ae.fromNumber(e,!0))}static fromBits(e,t){return new Qe({i:e,t})}static fromString(e,t){return new Qe(Ae.fromString(e,!0,t))}toExtendedJSON(){return{$timestamp:{t:this.t,i:this.i}}}static fromExtendedJSON(e){const t=Ae.isLong(e.$timestamp.i)?e.$timestamp.i.getLowBitsUnsigned():e.$timestamp.i,i=Ae.isLong(e.$timestamp.t)?e.$timestamp.t.getLowBitsUnsigned():e.$timestamp.t;return new Qe({t:i,i:t})}inspect(e,t,i){return i??=c,`new Timestamp({ t: ${i(this.t,t)}, i: ${i(this.i,t)} })`}}Qe.MAX_VALUE=Ae.MAX_UNSIGNED_VALUE;const Ze=Ae.fromNumber(T),et=Ae.fromNumber(g);function tt(e,t,i){const r=(t=null==t?{}:t)&&t.index?t.index:0,n=pe.getInt32LE(e,r);if(n<5)throw new $(`bson size must be >= 5, is ${n}`);if(t.allowObjectSmallerThanBufferSize&&e.length<n)throw new $(`buffer length ${e.length} must be >= bson size ${n}`);if(!t.allowObjectSmallerThanBufferSize&&e.length!==n)throw new $(`buffer length ${e.length} must === bson size ${n}`);if(n+r>e.byteLength)throw new $(`(bson size ${n} + options.index ${r} must be <= buffer length ${e.byteLength})`);if(0!==e[r+n-1])throw new $("One object, sized correctly, with a spot for an EOO, but the EOO isn't 0x00");return rt(e,r,t,i)}const it=/^\$ref$|^\$id$|^\$db$/;function rt(e,t,i,r=!1){const n=null==i.fieldsAsRaw?null:i.fieldsAsRaw,s=null!=i.raw&&i.raw,a="boolean"==typeof i.bsonRegExp&&i.bsonRegExp,o=i.promoteBuffers??!1,l=i.promoteLongs??!0,p=i.promoteValues??!0,c=i.useBigInt64??!1;if(c&&!p)throw new $("Must either request bigint or Long for int64 deserialization");if(c&&!l)throw new $("Must either request bigint or Long for int64 deserialization");let u,h,d=!0;const f=(null==i.validation?{utf8:!0}:i.validation).utf8;if("boolean"==typeof f)u=f;else{d=!1;const e=Object.keys(f).map((function(e){return f[e]}));if(0===e.length)throw new $("UTF-8 validation setting cannot be empty");if("boolean"!=typeof e[0])throw new $("Invalid UTF-8 validation option, must specify boolean values");if(u=e[0],!e.every((e=>e===u)))throw new $("Invalid UTF-8 validation option - keys must be all true or all false")}if(!d){h=new Set;for(const e of Object.keys(f))h.add(e)}const m=t;if(e.length<5)throw new $("corrupt bson message < 5 bytes long");const y=pe.getInt32LE(e,t);if(t+=4,y<5||y>e.length)throw new $("corrupt bson message");const T=r?[]:{};let g=0,U=!r&&null;for(;;){const f=e[t++];if(0===f)break;let m=t;for(;0!==e[m]&&m<e.length;)m++;if(m>=e.byteLength)throw new $("Bad BSON Document: illegal CString");const y=r?g++:ne.toUTF8(e,t,m,!1);let K,q=!0;if(q=d||h?.has(y)?u:!u,!1!==U&&"$"===y[0]&&(U=it.test(y)),t=m+1,f===S){const i=pe.getInt32LE(e,t);if(t+=4,i<=0||i>e.length-t||0!==e[t+i-1])throw new $("bad string length in bson");K=ne.toUTF8(e,t,t+i-1,q),t+=i}else if(f===w){const i=ne.allocateUnsafe(12);for(let r=0;r<12;r++)i[r]=e[t+r];K=new Je(i),t+=12}else if(f===L&&!1===p)K=new Ve(pe.getInt32LE(e,t)),t+=4;else if(f===L)K=pe.getInt32LE(e,t),t+=4;else if(f===b)K=pe.getFloat64LE(e,t),t+=8,!1===p&&(K=new Ue(K));else if(f===I){const i=pe.getInt32LE(e,t),r=pe.getInt32LE(e,t+4);t+=8,K=new Date(new Ae(i,r).toNumber())}else if(f===A){if(0!==e[t]&&1!==e[t])throw new $("illegal boolean type value");K=1===e[t++]}else if(f===x){const r=t,n=pe.getInt32LE(e,t);if(n<=0||n>e.length-t)throw new $("bad embedded document length in bson");if(s)K=e.subarray(t,t+n);else{let t=i;d||(t={...i,validation:{utf8:q}}),K=rt(e,r,t,!1)}t+=n}else if(f===E){const r=t,s=pe.getInt32LE(e,t);let a=i;const o=t+s;if(n&&n[y]&&(a={...i,raw:!0}),d||(a={...a,validation:{utf8:q}}),K=rt(e,r,a,!0),0!==e[(t+=s)-1])throw new $("invalid array terminator byte");if(t!==o)throw new $("corrupted array bson")}else if(f===P)K=void 0;else if(f===C)K=null;else if(f===B)if(c)K=pe.getBigInt64LE(e,t),t+=8;else{const i=pe.getInt32LE(e,t),r=pe.getInt32LE(e,t+4);t+=8;const n=new Ae(i,r);K=l&&!0===p&&n.lessThanOrEqual(Ze)&&n.greaterThanOrEqual(et)?n.toNumber():n}else if(f===F){const i=ne.allocateUnsafe(16);for(let r=0;r<16;r++)i[r]=e[t+r];t+=16,K=new Re(i)}else if(f===v){let i=pe.getInt32LE(e,t);t+=4;const r=i,n=e[t++];if(i<0)throw new $("Negative binary type element size found");if(i>e.byteLength)throw new $("Binary type size larger than document size");if(n===ce.SUBTYPE_BYTE_ARRAY){if(i=pe.getInt32LE(e,t),t+=4,i<0)throw new $("Negative binary type element size found for subtype 0x02");if(i>r-4)throw new $("Binary type with subtype 0x02 contains too long binary size");if(i<r-4)throw new $("Binary type with subtype 0x02 contains too short binary size")}o&&p?K=ne.toLocalBufferType(e.subarray(t,t+i)):(K=new ce(e.subarray(t,t+i),n),n===V&&fe.isValid(K)&&(K=K.toUUID())),t+=i}else if(f===N&&!1===a){for(m=t;0!==e[m]&&m<e.length;)m++;if(m>=e.length)throw new $("Bad BSON Document: illegal CString");const i=ne.toUTF8(e,t,m,!1);for(m=t=m+1;0!==e[m]&&m<e.length;)m++;if(m>=e.length)throw new $("Bad BSON Document: illegal CString");const r=ne.toUTF8(e,t,m,!1);t=m+1;const n=new Array(r.length);for(m=0;m<r.length;m++)switch(r[m]){case"m":n[m]="m";break;case"s":n[m]="g";break;case"i":n[m]="i"}K=new RegExp(i,n.join(""))}else if(f===N&&!0===a){for(m=t;0!==e[m]&&m<e.length;)m++;if(m>=e.length)throw new $("Bad BSON Document: illegal CString");const i=ne.toUTF8(e,t,m,!1);for(m=t=m+1;0!==e[m]&&m<e.length;)m++;if(m>=e.length)throw new $("Bad BSON Document: illegal CString");const r=ne.toUTF8(e,t,m,!1);t=m+1,K=new ze(i,r)}else if(f===_){const i=pe.getInt32LE(e,t);if(t+=4,i<=0||i>e.length-t||0!==e[t+i-1])throw new $("bad string length in bson");const r=ne.toUTF8(e,t,t+i-1,q);K=p?r:new He(r),t+=i}else if(f===D)K=new Qe({i:pe.getUint32LE(e,t),t:pe.getUint32LE(e,t+4)}),t+=8;else if(f===j)K=new $e;else if(f===R)K=new Ke;else if(f===k){const i=pe.getInt32LE(e,t);if(t+=4,i<=0||i>e.length-t||0!==e[t+i-1])throw new $("bad string length in bson");const r=ne.toUTF8(e,t,t+i-1,q);K=new me(r),t+=i}else if(f===M){const r=pe.getInt32LE(e,t);if(t+=4,r<13)throw new $("code_w_scope total size shorter minimum expected length");const n=pe.getInt32LE(e,t);if(t+=4,n<=0||n>e.length-t||0!==e[t+n-1])throw new $("bad string length in bson");const s=ne.toUTF8(e,t,t+n-1,q),a=t+=n,o=pe.getInt32LE(e,t),l=rt(e,a,i,!1);if(t+=o,r<8+o+n)throw new $("code_w_scope total size is too short, truncating scope");if(r>8+o+n)throw new $("code_w_scope total size is too long, clips outer document");K=new me(s,l)}else{if(f!==O)throw new $(`Detected unknown BSON type ${f.toString(16)} for fieldname "${y}"`);{const i=pe.getInt32LE(e,t);if(t+=4,i<=0||i>e.length-t||0!==e[t+i-1])throw new $("bad string length in bson");const r=ne.toUTF8(e,t,t+i-1,q);t+=i;const n=ne.allocateUnsafe(12);for(let i=0;i<12;i++)n[i]=e[t+i];const s=new Je(n);t+=12,K=new Te(r,s)}}"__proto__"===y?Object.defineProperty(T,y,{value:K,writable:!0,enumerable:!0,configurable:!0}):T[y]=K}if(y!==t-m){if(r)throw new $("corrupt array bson");throw new $("corrupt object bson")}if(!U)return T;if(ye(T)){const e=Object.assign({},T);return delete e.$ref,delete e.$id,delete e.$db,new Te(T.$ref,T.$id,T.$db,e)}return T}const nt=/\x00/,st=new Set(["$db","$ref","$id","$clusterTime"]);function at(e,t,i,r){e[r++]=S,e[(r=r+ne.encodeUTF8Into(e,t,r)+1)-1]=0;const n=ne.encodeUTF8Into(e,i,r+4);return pe.setInt32LE(e,r,n+1),r=r+4+n,e[r++]=0,r}function ot(e,t,i,r){const n=!Object.is(i,-0)&&Number.isSafeInteger(i)&&i<=d&&i>=f?L:b;return e[r++]=n,r+=ne.encodeUTF8Into(e,t,r),e[r++]=0,r+(n===L?pe.setInt32LE(e,r,i):pe.setFloat64LE(e,r,i))}function lt(e,t,i,r){return e[r++]=B,r+=ne.encodeUTF8Into(e,t,r),e[r++]=0,r+pe.setBigInt64LE(e,r,i)}function pt(e,t,i,r){return e[r++]=C,r+=ne.encodeUTF8Into(e,t,r),e[r++]=0,r}function ct(e,t,i,r){return e[r++]=A,r+=ne.encodeUTF8Into(e,t,r),e[r++]=0,e[r++]=i?1:0,r}function ut(e,t,i,r){e[r++]=I,r+=ne.encodeUTF8Into(e,t,r),e[r++]=0;const n=Ae.fromNumber(i.getTime()),s=n.getLowBits(),a=n.getHighBits();return(r+=pe.setInt32LE(e,r,s))+pe.setInt32LE(e,r,a)}function ht(e,t,i,r){if(e[r++]=N,r+=ne.encodeUTF8Into(e,t,r),e[r++]=0,i.source&&null!=i.source.match(nt))throw new $("value "+i.source+" must not contain null bytes");return r+=ne.encodeUTF8Into(e,i.source,r),e[r++]=0,i.ignoreCase&&(e[r++]=105),i.global&&(e[r++]=115),i.multiline&&(e[r++]=109),e[r++]=0,r}function dt(e,t,i,r){if(e[r++]=N,r+=ne.encodeUTF8Into(e,t,r),e[r++]=0,null!=i.pattern.match(nt))throw new $("pattern "+i.pattern+" must not contain null bytes");r+=ne.encodeUTF8Into(e,i.pattern,r),e[r++]=0;const n=i.options.split("").sort().join("");return r+=ne.encodeUTF8Into(e,n,r),e[r++]=0,r}function ft(e,t,i,r){return null===i?e[r++]=C:"MinKey"===i._bsontype?e[r++]=j:e[r++]=R,r+=ne.encodeUTF8Into(e,t,r),e[r++]=0,r}function mt(e,t,i,r){return e[r++]=w,r+=ne.encodeUTF8Into(e,t,r),e[r++]=0,r+i.serializeInto(e,r)}function yt(e,t,i,r){e[r++]=v,r+=ne.encodeUTF8Into(e,t,r),e[r++]=0;const n=i.length;if(r+=pe.setInt32LE(e,r,n),e[r++]=U,n<=16)for(let t=0;t<n;t++)e[r+t]=i[t];else e.set(i,r);return r+n}function Tt(e,t,i,r,n,s,a,o,l){if(l.has(i))throw new $("Cannot convert circular structure to BSON");l.add(i),e[r++]=Array.isArray(i)?E:x,r+=ne.encodeUTF8Into(e,t,r),e[r++]=0;const p=It(e,i,n,r,s+1,a,o,l);return l.delete(i),p}function gt(e,t,i,r){e[r++]=F,r+=ne.encodeUTF8Into(e,t,r),e[r++]=0;for(let t=0;t<16;t++)e[r+t]=i.bytes[t];return r+16}function bt(e,t,i,r){e[r++]="Long"===i._bsontype?B:D,r+=ne.encodeUTF8Into(e,t,r),e[r++]=0;const n=i.getLowBits(),s=i.getHighBits();return(r+=pe.setInt32LE(e,r,n))+pe.setInt32LE(e,r,s)}function St(e,t,i,r){return i=i.valueOf(),e[r++]=L,r+=ne.encodeUTF8Into(e,t,r),e[r++]=0,r+pe.setInt32LE(e,r,i)}function xt(e,t,i,r){return e[r++]=b,r+=ne.encodeUTF8Into(e,t,r),e[r++]=0,r+pe.setFloat64LE(e,r,i.value)}function Et(e,t,i,r){e[r++]=k,r+=ne.encodeUTF8Into(e,t,r),e[r++]=0;const n=i.toString(),s=ne.encodeUTF8Into(e,n,r+4)+1;return pe.setInt32LE(e,r,s),r=r+4+s-1,e[r++]=0,r}function vt(e,t,i,r,n=!1,s=0,a=!1,o=!0,l){if(i.scope&&"object"==typeof i.scope){e[r++]=M,r+=ne.encodeUTF8Into(e,t,r),e[r++]=0;let p=r;const c=i.code;r+=4;const u=ne.encodeUTF8Into(e,c,r+4)+1;pe.setInt32LE(e,r,u),e[r+4+u-1]=0,r=r+u+4;const h=It(e,i.scope,n,r,s+1,a,o,l);r=h-1;const d=h-p;p+=pe.setInt32LE(e,p,d),e[r++]=0}else{e[r++]=k,r+=ne.encodeUTF8Into(e,t,r),e[r++]=0;const n=i.code.toString(),s=ne.encodeUTF8Into(e,n,r+4)+1;pe.setInt32LE(e,r,s),r=r+4+s-1,e[r++]=0}return r}function Pt(e,t,i,r){e[r++]=v,r+=ne.encodeUTF8Into(e,t,r),e[r++]=0;const n=i.buffer;let s=i.position;if(i.sub_type===ce.SUBTYPE_BYTE_ARRAY&&(s+=4),r+=pe.setInt32LE(e,r,s),e[r++]=i.sub_type,i.sub_type===ce.SUBTYPE_BYTE_ARRAY&&(s-=4,r+=pe.setInt32LE(e,r,s)),i.sub_type===ce.SUBTYPE_VECTOR&&ue(i),s<=16)for(let t=0;t<s;t++)e[r+t]=n[t];else e.set(n,r);return r+i.position}function wt(e,t,i,r){e[r++]=_,r+=ne.encodeUTF8Into(e,t,r),e[r++]=0;const n=ne.encodeUTF8Into(e,i.value,r+4)+1;return pe.setInt32LE(e,r,n),r=r+4+n-1,e[r++]=0,r}function At(e,t,i,r,n,s,a){e[r++]=x,r+=ne.encodeUTF8Into(e,t,r),e[r++]=0;let o=r,l={$ref:i.collection||i.namespace,$id:i.oid};null!=i.db&&(l.$db=i.db),l=Object.assign(l,i.fields);const p=It(e,l,!1,r,n+1,s,!0,a),c=p-o;return o+=pe.setInt32LE(e,r,c),p}function It(e,t,i,r,n,c,d,f){if(null==f){if(null==t)return e[0]=5,e[1]=0,e[2]=0,e[3]=0,e[4]=0,5;if(Array.isArray(t))throw new $("serialize does not support an array as the root input");if("object"!=typeof t)throw new $("serialize does not support non-object as the root input");if("_bsontype"in t&&"string"==typeof t._bsontype)throw new $("BSON types cannot be serialized as a document");if(p(t)||o(t)||s(t)||a(t))throw new $("date, regexp, typedarray, and arraybuffer cannot be BSON documents");f=new Set}f.add(t);let m=r+4;if(Array.isArray(t))for(let r=0;r<t.length;r++){const a=`${r}`;let l=t[r];"function"==typeof l?.toBSON&&(l=l.toBSON());const y=typeof l;if(void 0===l)m=pt(e,a,0,m);else if(null===l)m=pt(e,a,0,m);else if("string"===y)m=at(e,a,l,m);else if("number"===y)m=ot(e,a,l,m);else if("bigint"===y)m=lt(e,a,l,m);else if("boolean"===y)m=ct(e,a,l,m);else if("object"===y&&null==l._bsontype)m=l instanceof Date||p(l)?ut(e,a,l,m):l instanceof Uint8Array||s(l)?yt(e,a,l,m):l instanceof RegExp||o(l)?ht(e,a,l,m):Tt(e,a,l,m,i,n,c,d,f);else if("object"===y){if(l[h]!==u)throw new q;if("ObjectId"===l._bsontype)m=mt(e,a,l,m);else if("Decimal128"===l._bsontype)m=gt(e,a,l,m);else if("Long"===l._bsontype||"Timestamp"===l._bsontype)m=bt(e,a,l,m);else if("Double"===l._bsontype)m=xt(e,a,l,m);else if("Code"===l._bsontype)m=vt(e,a,l,m,i,n,c,d,f);else if("Binary"===l._bsontype)m=Pt(e,a,l,m);else if("BSONSymbol"===l._bsontype)m=wt(e,a,l,m);else if("DBRef"===l._bsontype)m=At(e,a,l,m,n,c,f);else if("BSONRegExp"===l._bsontype)m=dt(e,a,l,m);else if("Int32"===l._bsontype)m=St(e,a,l,m);else if("MinKey"===l._bsontype||"MaxKey"===l._bsontype)m=ft(e,a,l,m);else if(void 0!==l._bsontype)throw new $(`Unrecognized or invalid _bsontype: ${String(l._bsontype)}`)}else"function"===y&&c&&(m=Et(e,a,l,m))}else if(t instanceof Map||l(t)){const r=t.entries();let a=!1;for(;!a;){const t=r.next();if(a=!!t.done,a)continue;const l=t.value?t.value[0]:void 0;let y=t.value?t.value[1]:void 0;"function"==typeof y?.toBSON&&(y=y.toBSON());const T=typeof y;if("string"==typeof l&&!st.has(l)){if(null!=l.match(nt))throw new $("key "+l+" must not contain null bytes");if(i){if("$"===l[0])throw new $("key "+l+" must not start with '$'");if(l.includes("."))throw new $("key "+l+" must not contain '.'")}}if(void 0===y)!1===d&&(m=pt(e,l,0,m));else if(null===y)m=pt(e,l,0,m);else if("string"===T)m=at(e,l,y,m);else if("number"===T)m=ot(e,l,y,m);else if("bigint"===T)m=lt(e,l,y,m);else if("boolean"===T)m=ct(e,l,y,m);else if("object"===T&&null==y._bsontype)m=y instanceof Date||p(y)?ut(e,l,y,m):y instanceof Uint8Array||s(y)?yt(e,l,y,m):y instanceof RegExp||o(y)?ht(e,l,y,m):Tt(e,l,y,m,i,n,c,d,f);else if("object"===T){if(y[h]!==u)throw new q;if("ObjectId"===y._bsontype)m=mt(e,l,y,m);else if("Decimal128"===y._bsontype)m=gt(e,l,y,m);else if("Long"===y._bsontype||"Timestamp"===y._bsontype)m=bt(e,l,y,m);else if("Double"===y._bsontype)m=xt(e,l,y,m);else if("Code"===y._bsontype)m=vt(e,l,y,m,i,n,c,d,f);else if("Binary"===y._bsontype)m=Pt(e,l,y,m);else if("BSONSymbol"===y._bsontype)m=wt(e,l,y,m);else if("DBRef"===y._bsontype)m=At(e,l,y,m,n,c,f);else if("BSONRegExp"===y._bsontype)m=dt(e,l,y,m);else if("Int32"===y._bsontype)m=St(e,l,y,m);else if("MinKey"===y._bsontype||"MaxKey"===y._bsontype)m=ft(e,l,y,m);else if(void 0!==y._bsontype)throw new $(`Unrecognized or invalid _bsontype: ${String(y._bsontype)}`)}else"function"===T&&c&&(m=Et(e,l,y,m))}}else{if("function"==typeof t?.toBSON&&null!=(t=t.toBSON())&&"object"!=typeof t)throw new $("toBSON function did not return an object");for(const r of Object.keys(t)){let a=t[r];"function"==typeof a?.toBSON&&(a=a.toBSON());const l=typeof a;if("string"==typeof r&&!st.has(r)){if(null!=r.match(nt))throw new $("key "+r+" must not contain null bytes");if(i){if("$"===r[0])throw new $("key "+r+" must not start with '$'");if(r.includes("."))throw new $("key "+r+" must not contain '.'")}}if(void 0===a)!1===d&&(m=pt(e,r,0,m));else if(null===a)m=pt(e,r,0,m);else if("string"===l)m=at(e,r,a,m);else if("number"===l)m=ot(e,r,a,m);else if("bigint"===l)m=lt(e,r,a,m);else if("boolean"===l)m=ct(e,r,a,m);else if("object"===l&&null==a._bsontype)m=a instanceof Date||p(a)?ut(e,r,a,m):a instanceof Uint8Array||s(a)?yt(e,r,a,m):a instanceof RegExp||o(a)?ht(e,r,a,m):Tt(e,r,a,m,i,n,c,d,f);else if("object"===l){if(a[h]!==u)throw new q;if("ObjectId"===a._bsontype)m=mt(e,r,a,m);else if("Decimal128"===a._bsontype)m=gt(e,r,a,m);else if("Long"===a._bsontype||"Timestamp"===a._bsontype)m=bt(e,r,a,m);else if("Double"===a._bsontype)m=xt(e,r,a,m);else if("Code"===a._bsontype)m=vt(e,r,a,m,i,n,c,d,f);else if("Binary"===a._bsontype)m=Pt(e,r,a,m);else if("BSONSymbol"===a._bsontype)m=wt(e,r,a,m);else if("DBRef"===a._bsontype)m=At(e,r,a,m,n,c,f);else if("BSONRegExp"===a._bsontype)m=dt(e,r,a,m);else if("Int32"===a._bsontype)m=St(e,r,a,m);else if("MinKey"===a._bsontype||"MaxKey"===a._bsontype)m=ft(e,r,a,m);else if(void 0!==a._bsontype)throw new $(`Unrecognized or invalid _bsontype: ${String(a._bsontype)}`)}else"function"===l&&c&&(m=Et(e,r,a,m))}}f.delete(t),e[m++]=0;const y=m-r;return r+=pe.setInt32LE(e,r,y),m}const Ct={$oid:Je,$binary:ce,$uuid:ce,$symbol:He,$numberInt:Ve,$numberDecimal:Re,$numberDouble:Ue,$numberLong:Ae,$minKey:$e,$maxKey:Ke,$regex:ze,$regularExpression:ze,$timestamp:Qe};function Nt(e,t={}){if("number"==typeof e){const i=e<=d&&e>=f,r=e<=m&&e>=y;if(t.relaxed||t.legacy)return e;if(Number.isInteger(e)&&!Object.is(e,-0)){if(i)return new Ve(e);if(r)return t.useBigInt64?BigInt(e):Ae.fromNumber(e)}return new Ue(e)}if(null==e||"object"!=typeof e)return e;if(e.$undefined)return null;const i=Object.keys(e).filter((t=>t.startsWith("$")&&null!=e[t]));for(let r=0;r<i.length;r++){const n=Ct[i[r]];if(n)return n.fromExtendedJSON(e,t)}if(null!=e.$date){const i=e.$date,r=new Date;if(t.legacy)if("number"==typeof i)r.setTime(i);else if("string"==typeof i)r.setTime(Date.parse(i));else{if("bigint"!=typeof i)throw new Y("Unrecognized type for EJSON date: "+typeof i);r.setTime(Number(i))}else if("string"==typeof i)r.setTime(Date.parse(i));else if(Ae.isLong(i))r.setTime(i.toNumber());else if("number"==typeof i&&t.relaxed)r.setTime(i);else{if("bigint"!=typeof i)throw new Y("Unrecognized type for EJSON date: "+typeof i);r.setTime(Number(i))}return r}if(null!=e.$code){const t=Object.assign({},e);return e.$scope&&(t.$scope=Nt(e.$scope)),me.fromExtendedJSON(e)}if(ye(e)||e.$dbPointer){const t=e.$ref?e:e.$dbPointer;if(t instanceof Te)return t;const i=Object.keys(t).filter((e=>e.startsWith("$")));let r=!0;if(i.forEach((e=>{-1===["$ref","$id","$db"].indexOf(e)&&(r=!1)})),r)return Te.fromExtendedJSON(t)}return e}function Ot(e){const t=e.toISOString();return 0!==e.getUTCMilliseconds()?t:t.slice(0,-5)+"Z"}function kt(e,t){if(e instanceof Map||l(e)){const i=Object.create(null);for(const[t,r]of e){if("string"!=typeof t)throw new $("Can only serialize maps with string keys");i[t]=r}return kt(i,t)}if(("object"==typeof e||"function"==typeof e)&&null!==e){const i=t.seenObjects.findIndex((t=>t.obj===e));if(-1!==i){const e=t.seenObjects.map((e=>e.propertyName)),r=e.slice(0,i).map((e=>`${e} -> `)).join(""),n=e[i],s=" -> "+e.slice(i+1,e.length-1).map((e=>`${e} -> `)).join(""),a=e[e.length-1],o=" ".repeat(r.length+n.length/2),l="-".repeat(s.length+(n.length+a.length)/2-1);throw new $(`Converting circular structure to EJSON:\n ${r}${n}${s}${a}\n ${o}\\${l}/`)}t.seenObjects[t.seenObjects.length-1].obj=e}if(Array.isArray(e))return function(e,t){return e.map(((e,i)=>{t.seenObjects.push({propertyName:`index ${i}`,obj:null});try{return kt(e,t)}finally{t.seenObjects.pop()}}))}(e,t);if(void 0===e)return null;if(e instanceof Date||p(e)){const i=e.getTime(),r=i>-1&&i<2534023188e5;return t.legacy?t.relaxed&&r?{$date:e.getTime()}:{$date:Ot(e)}:t.relaxed&&r?{$date:Ot(e)}:{$date:{$numberLong:e.getTime().toString()}}}if(!("number"!=typeof e||t.relaxed&&isFinite(e))){if(Number.isInteger(e)&&!Object.is(e,-0)){if(e>=f&&e<=d)return{$numberInt:e.toString()};if(e>=y&&e<=m)return{$numberLong:e.toString()}}return{$numberDouble:Object.is(e,-0)?"-0.0":e.toString()}}if("bigint"==typeof e)return t.relaxed?Number(BigInt.asIntN(64,e)):{$numberLong:BigInt.asIntN(64,e).toString()};if(e instanceof RegExp||o(e)){let i=e.flags;if(void 0===i){const t=e.toString().match(/[gimuy]*$/);t&&(i=t[0])}return new ze(e.source,i).toExtendedJSON(t)}return null!=e&&"object"==typeof e?function(e,t){if(null==e||"object"!=typeof e)throw new $("not an object instance");const i=e._bsontype;if(void 0===i){const i={};for(const r of Object.keys(e)){t.seenObjects.push({propertyName:r,obj:null});try{const n=kt(e[r],t);"__proto__"===r?Object.defineProperty(i,r,{value:n,writable:!0,enumerable:!0,configurable:!0}):i[r]=n}finally{t.seenObjects.pop()}}return i}if(null!=e&&"object"==typeof e&&"string"==typeof e._bsontype&&e[h]!==u)throw new q;if(function(e){return null!=e&&"object"==typeof e&&"_bsontype"in e&&"string"==typeof e._bsontype}(e)){let r=e;if("function"!=typeof r.toExtendedJSON){const t=_t[e._bsontype];if(!t)throw new $("Unrecognized or invalid _bsontype: "+e._bsontype);r=t(r)}return"Code"===i&&r.scope?r=new me(r.code,kt(r.scope,t)):"DBRef"===i&&r.oid&&(r=new Te(kt(r.collection,t),kt(r.oid,t),kt(r.db,t),kt(r.fields,t))),r.toExtendedJSON(t)}throw new $("_bsontype must be a string, but was: "+typeof i)}(e,t):e}const _t={Binary:e=>new ce(e.value(),e.sub_type),Code:e=>new me(e.code,e.scope),DBRef:e=>new Te(e.collection||e.namespace,e.oid,e.db,e.fields),Decimal128:e=>new Re(e.bytes),Double:e=>new Ue(e.value),Int32:e=>new Ve(e.value),Long:e=>Ae.fromBits(null!=e.low?e.low:e.low_,null!=e.low?e.high:e.high_,null!=e.low?e.unsigned:e.unsigned_),MaxKey:()=>new Ke,MinKey:()=>new $e,ObjectId:e=>new Je(e),BSONRegExp:e=>new ze(e.pattern,e.options),BSONSymbol:e=>new He(e.value),Timestamp:e=>Qe.fromBits(e.low,e.high)};function Mt(e,t){const i={useBigInt64:t?.useBigInt64??!1,relaxed:t?.relaxed??!0,legacy:t?.legacy??!1};return JSON.parse(e,((e,t)=>{if(-1!==e.indexOf("\0"))throw new $(`BSON Document field names cannot contain null bytes, found: ${JSON.stringify(e)}`);return Nt(t,i)}))}function Lt(e,t,i,r){null!=i&&"object"==typeof i&&(r=i,i=0),null==t||"object"!=typeof t||Array.isArray(t)||(r=t,t=void 0,i=0);const n=kt(e,Object.assign({relaxed:!0,legacy:!1},r,{seenObjects:[{propertyName:"(root)",obj:null}]}));return JSON.stringify(n,t,i)}const Dt=Object.create(null);Dt.parse=Mt,Dt.stringify=Lt,Dt.serialize=function(e,t){return t=t||{},JSON.parse(Lt(e,t))},Dt.deserialize=function(e,t){return t=t||{},Mt(JSON.stringify(e),t)},Object.freeze(Dt);function Bt(e,t){try{return pe.getNonnegativeInt32LE(e,t)}catch(e){throw new J("BSON size cannot be negative",t,{cause:e})}}function Ft(e,t){let i=t;for(;0!==e[i];i++);if(i===e.length-1)throw new J("Null terminator not found",t);return i}const jt=Object.create(null);jt.parseToElements=function(e,t=0){if(t??=0,e.length<5)throw new J(`Input must be at least 5 bytes, got ${e.length} bytes`,t);const i=Bt(e,t);if(i>e.length-t)throw new J(`Parsed documentSize (${i} bytes) does not match input length (${e.length} bytes)`,t);if(0!==e[t+i-1])throw new J("BSON documents must end in 0x00",t+i);const r=[];let n=t+4;for(;n<=i+t;){const s=e[n];if(n+=1,0===s){if(n-t!==i)throw new J("Invalid 0x00 type byte",n);break}const a=n,o=Ft(e,n)-a;let l;if(n+=o+1,1===s||18===s||9===s||17===s)l=8;else if(16===s)l=4;else if(7===s)l=12;else if(19===s)l=16;else if(8===s)l=1;else if(10===s||6===s||127===s||255===s)l=0;else if(11===s)l=Ft(e,Ft(e,n)+1)+1-n;else if(3===s||4===s||15===s)l=Bt(e,n);else{if(2!==s&&5!==s&&12!==s&&13!==s&&14!==s)throw new J(`Invalid 0x${s.toString(16).padStart(2,"0")} type byte`,n);l=Bt(e,n)+4,5===s&&(l+=1),12===s&&(l+=12)}if(l>i)throw new J("value reports length larger than document",n);r.push([s,a,o,n,l]),n+=l}return r},jt.ByteUtils=ne,jt.NumberUtils=pe,Object.freeze(jt);const Rt=17825792;let Ut=ne.allocate(Rt);function Vt(e){Ut.length<e&&(Ut=ne.allocate(e))}function Kt(e,t={}){const i="boolean"==typeof t.checkKeys&&t.checkKeys,r="boolean"==typeof t.serializeFunctions&&t.serializeFunctions,n="boolean"!=typeof t.ignoreUndefined||t.ignoreUndefined,s="number"==typeof t.minInternalBufferSize?t.minInternalBufferSize:Rt;Ut.length<s&&(Ut=ne.allocate(s));const a=It(Ut,e,i,0,0,r,n,null),o=ne.allocateUnsafe(a);return o.set(Ut.subarray(0,a),0),o}function $t(e,t,i={}){const r="boolean"==typeof i.checkKeys&&i.checkKeys,n="boolean"==typeof i.serializeFunctions&&i.serializeFunctions,s="boolean"!=typeof i.ignoreUndefined||i.ignoreUndefined,a="number"==typeof i.index?i.index:0,o=It(Ut,e,r,0,0,n,s,null);return t.set(Ut.subarray(0,o),a),a+o-1}function qt(e,t={}){return tt(ne.toLocalBufferType(e),t)}function Yt(e,t={}){return Xe(e,"boolean"==typeof(t=t||{}).serializeFunctions&&t.serializeFunctions,"boolean"!=typeof t.ignoreUndefined||t.ignoreUndefined)}function Jt(e,t,i,r,n,s){const a=Object.assign({allowObjectSmallerThanBufferSize:!0,index:0},s),o=ne.toLocalBufferType(e);let l=t;for(let e=0;e<i;e++){const t=pe.getInt32LE(o,l);a.index=l,r[n+e]=tt(o,a),l+=t}return l}var Xt=Object.freeze({__proto__:null,BSONError:$,BSONOffsetError:J,BSONRegExp:ze,BSONRuntimeError:Y,BSONSymbol:He,BSONType:K,BSONValue:se,BSONVersionError:q,Binary:ce,Code:me,DBRef:Te,Decimal128:Re,Double:Ue,EJSON:Dt,Int32:Ve,Long:Ae,MaxKey:Ke,MinKey:$e,ObjectId:Je,Timestamp:Qe,UUID:fe,calculateObjectSize:Yt,deserialize:qt,deserializeStream:Jt,onDemand:jt,serialize:Kt,serializeWithBufferAndIndex:$t,setInternalBufferSize:Vt});t.BSON=Xt,t.BSONError=$,t.BSONOffsetError=J,t.BSONRegExp=ze,t.BSONRuntimeError=Y,t.BSONSymbol=He,t.BSONType=K,t.BSONValue=se,t.BSONVersionError=q,t.Binary=ce,t.Code=me,t.DBRef=Te,t.Decimal128=Re,t.Double=Ue,t.EJSON=Dt,t.Int32=Ve,t.Long=Ae,t.MaxKey=Ke,t.MinKey=$e,t.ObjectId=Je,t.Timestamp=Qe,t.UUID=fe,t.calculateObjectSize=Yt,t.deserialize=qt,t.deserializeStream=Jt,t.onDemand=jt,t.serialize=Kt,t.serializeWithBufferAndIndex=$t,t.setInternalBufferSize=Vt},62563:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,r.default)("leadingComments",e,t)};var r=i(26284)},62811:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UPDATE_OPERATORS=t.UNARY_OPERATORS=t.STRING_UNARY_OPERATORS=t.STATEMENT_OR_BLOCK_KEYS=t.NUMBER_UNARY_OPERATORS=t.NUMBER_BINARY_OPERATORS=t.LOGICAL_OPERATORS=t.INHERIT_KEYS=t.FOR_INIT_KEYS=t.FLATTENABLE_KEYS=t.EQUALITY_BINARY_OPERATORS=t.COMPARISON_BINARY_OPERATORS=t.COMMENT_KEYS=t.BOOLEAN_UNARY_OPERATORS=t.BOOLEAN_NUMBER_BINARY_OPERATORS=t.BOOLEAN_BINARY_OPERATORS=t.BINARY_OPERATORS=t.ASSIGNMENT_OPERATORS=void 0,t.STATEMENT_OR_BLOCK_KEYS=["consequent","body","alternate"],t.FLATTENABLE_KEYS=["body","expressions"],t.FOR_INIT_KEYS=["left","init"],t.COMMENT_KEYS=["leadingComments","trailingComments","innerComments"];const i=t.LOGICAL_OPERATORS=["||","&&","??"],r=(t.UPDATE_OPERATORS=["++","--"],t.BOOLEAN_NUMBER_BINARY_OPERATORS=[">","<",">=","<="]),n=t.EQUALITY_BINARY_OPERATORS=["==","===","!=","!=="],s=t.COMPARISON_BINARY_OPERATORS=[...n,"in","instanceof"],a=t.BOOLEAN_BINARY_OPERATORS=[...s,...r],o=t.NUMBER_BINARY_OPERATORS=["-","/","%","*","**","&","|",">>",">>>","<<","^"],l=(t.BINARY_OPERATORS=["+",...o,...a,"|>"],t.ASSIGNMENT_OPERATORS=["=","+=",...o.map((e=>e+"=")),...i.map((e=>e+"="))],t.BOOLEAN_UNARY_OPERATORS=["delete","!"]),p=t.NUMBER_UNARY_OPERATORS=["+","-","~"],c=t.STRING_UNARY_OPERATORS=["typeof"];t.UNARY_OPERATORS=["void","throw",...l,...p,...c],t.INHERIT_KEYS={optional:["typeAnnotation","typeParameters","returnType"],force:["start","loc","end"]},t.BLOCK_SCOPED_SYMBOL=Symbol.for("var used to be block scoped"),t.NOT_LOCAL_BINDING=Symbol.for("should not be considered a local binding")},62816:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.isVariableDeclaration)(e)&&("var"!==e.kind||e[n])};var r=i(63555),n=Symbol.for("var used to be block scoped")},63555:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isAccessor=function(e,t){return!!e&&("ClassAccessorProperty"===e.type&&(null==t||(0,r.default)(e,t)))},t.isAnyTypeAnnotation=function(e,t){return!!e&&"AnyTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isArgumentPlaceholder=function(e,t){return!!e&&"ArgumentPlaceholder"===e.type&&(null==t||(0,r.default)(e,t))},t.isArrayExpression=function(e,t){return!!e&&"ArrayExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isArrayPattern=function(e,t){return!!e&&"ArrayPattern"===e.type&&(null==t||(0,r.default)(e,t))},t.isArrayTypeAnnotation=function(e,t){return!!e&&"ArrayTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isArrowFunctionExpression=function(e,t){return!!e&&"ArrowFunctionExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isAssignmentExpression=function(e,t){return!!e&&"AssignmentExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isAssignmentPattern=function(e,t){return!!e&&"AssignmentPattern"===e.type&&(null==t||(0,r.default)(e,t))},t.isAwaitExpression=function(e,t){return!!e&&"AwaitExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isBigIntLiteral=function(e,t){return!!e&&"BigIntLiteral"===e.type&&(null==t||(0,r.default)(e,t))},t.isBinary=function(e,t){if(!e)return!1;switch(e.type){case"BinaryExpression":case"LogicalExpression":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isBinaryExpression=function(e,t){return!!e&&"BinaryExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isBindExpression=function(e,t){return!!e&&"BindExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isBlock=function(e,t){if(!e)return!1;switch(e.type){case"BlockStatement":case"Program":case"TSModuleBlock":break;case"Placeholder":if("BlockStatement"===e.expectedNode)break;default:return!1}return null==t||(0,r.default)(e,t)},t.isBlockParent=function(e,t){if(!e)return!1;switch(e.type){case"BlockStatement":case"CatchClause":case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"FunctionExpression":case"Program":case"ObjectMethod":case"SwitchStatement":case"WhileStatement":case"ArrowFunctionExpression":case"ForOfStatement":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;case"Placeholder":if("BlockStatement"===e.expectedNode)break;default:return!1}return null==t||(0,r.default)(e,t)},t.isBlockStatement=function(e,t){return!!e&&"BlockStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isBooleanLiteral=function(e,t){return!!e&&"BooleanLiteral"===e.type&&(null==t||(0,r.default)(e,t))},t.isBooleanLiteralTypeAnnotation=function(e,t){return!!e&&"BooleanLiteralTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isBooleanTypeAnnotation=function(e,t){return!!e&&"BooleanTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isBreakStatement=function(e,t){return!!e&&"BreakStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isCallExpression=function(e,t){return!!e&&"CallExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isCatchClause=function(e,t){return!!e&&"CatchClause"===e.type&&(null==t||(0,r.default)(e,t))},t.isClass=function(e,t){if(!e)return!1;switch(e.type){case"ClassExpression":case"ClassDeclaration":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isClassAccessorProperty=function(e,t){return!!e&&"ClassAccessorProperty"===e.type&&(null==t||(0,r.default)(e,t))},t.isClassBody=function(e,t){return!!e&&"ClassBody"===e.type&&(null==t||(0,r.default)(e,t))},t.isClassDeclaration=function(e,t){return!!e&&"ClassDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isClassExpression=function(e,t){return!!e&&"ClassExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isClassImplements=function(e,t){return!!e&&"ClassImplements"===e.type&&(null==t||(0,r.default)(e,t))},t.isClassMethod=function(e,t){return!!e&&"ClassMethod"===e.type&&(null==t||(0,r.default)(e,t))},t.isClassPrivateMethod=function(e,t){return!!e&&"ClassPrivateMethod"===e.type&&(null==t||(0,r.default)(e,t))},t.isClassPrivateProperty=function(e,t){return!!e&&"ClassPrivateProperty"===e.type&&(null==t||(0,r.default)(e,t))},t.isClassProperty=function(e,t){return!!e&&"ClassProperty"===e.type&&(null==t||(0,r.default)(e,t))},t.isCompletionStatement=function(e,t){if(!e)return!1;switch(e.type){case"BreakStatement":case"ContinueStatement":case"ReturnStatement":case"ThrowStatement":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isConditional=function(e,t){if(!e)return!1;switch(e.type){case"ConditionalExpression":case"IfStatement":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isConditionalExpression=function(e,t){return!!e&&"ConditionalExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isContinueStatement=function(e,t){return!!e&&"ContinueStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isDebuggerStatement=function(e,t){return!!e&&"DebuggerStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isDecimalLiteral=function(e,t){return!!e&&"DecimalLiteral"===e.type&&(null==t||(0,r.default)(e,t))},t.isDeclaration=function(e,t){if(!e)return!1;switch(e.type){case"FunctionDeclaration":case"VariableDeclaration":case"ClassDeclaration":case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ImportDeclaration":case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"InterfaceDeclaration":case"OpaqueType":case"TypeAlias":case"EnumDeclaration":case"TSDeclareFunction":case"TSInterfaceDeclaration":case"TSTypeAliasDeclaration":case"TSEnumDeclaration":case"TSModuleDeclaration":case"TSImportEqualsDeclaration":break;case"Placeholder":if("Declaration"===e.expectedNode)break;default:return!1}return null==t||(0,r.default)(e,t)},t.isDeclareClass=function(e,t){return!!e&&"DeclareClass"===e.type&&(null==t||(0,r.default)(e,t))},t.isDeclareExportAllDeclaration=function(e,t){return!!e&&"DeclareExportAllDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isDeclareExportDeclaration=function(e,t){return!!e&&"DeclareExportDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isDeclareFunction=function(e,t){return!!e&&"DeclareFunction"===e.type&&(null==t||(0,r.default)(e,t))},t.isDeclareInterface=function(e,t){return!!e&&"DeclareInterface"===e.type&&(null==t||(0,r.default)(e,t))},t.isDeclareModule=function(e,t){return!!e&&"DeclareModule"===e.type&&(null==t||(0,r.default)(e,t))},t.isDeclareModuleExports=function(e,t){return!!e&&"DeclareModuleExports"===e.type&&(null==t||(0,r.default)(e,t))},t.isDeclareOpaqueType=function(e,t){return!!e&&"DeclareOpaqueType"===e.type&&(null==t||(0,r.default)(e,t))},t.isDeclareTypeAlias=function(e,t){return!!e&&"DeclareTypeAlias"===e.type&&(null==t||(0,r.default)(e,t))},t.isDeclareVariable=function(e,t){return!!e&&"DeclareVariable"===e.type&&(null==t||(0,r.default)(e,t))},t.isDeclaredPredicate=function(e,t){return!!e&&"DeclaredPredicate"===e.type&&(null==t||(0,r.default)(e,t))},t.isDecorator=function(e,t){return!!e&&"Decorator"===e.type&&(null==t||(0,r.default)(e,t))},t.isDirective=function(e,t){return!!e&&"Directive"===e.type&&(null==t||(0,r.default)(e,t))},t.isDirectiveLiteral=function(e,t){return!!e&&"DirectiveLiteral"===e.type&&(null==t||(0,r.default)(e,t))},t.isDoExpression=function(e,t){return!!e&&"DoExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isDoWhileStatement=function(e,t){return!!e&&"DoWhileStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isEmptyStatement=function(e,t){return!!e&&"EmptyStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isEmptyTypeAnnotation=function(e,t){return!!e&&"EmptyTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isEnumBody=function(e,t){if(!e)return!1;switch(e.type){case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isEnumBooleanBody=function(e,t){return!!e&&"EnumBooleanBody"===e.type&&(null==t||(0,r.default)(e,t))},t.isEnumBooleanMember=function(e,t){return!!e&&"EnumBooleanMember"===e.type&&(null==t||(0,r.default)(e,t))},t.isEnumDeclaration=function(e,t){return!!e&&"EnumDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isEnumDefaultedMember=function(e,t){return!!e&&"EnumDefaultedMember"===e.type&&(null==t||(0,r.default)(e,t))},t.isEnumMember=function(e,t){if(!e)return!1;switch(e.type){case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":case"EnumDefaultedMember":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isEnumNumberBody=function(e,t){return!!e&&"EnumNumberBody"===e.type&&(null==t||(0,r.default)(e,t))},t.isEnumNumberMember=function(e,t){return!!e&&"EnumNumberMember"===e.type&&(null==t||(0,r.default)(e,t))},t.isEnumStringBody=function(e,t){return!!e&&"EnumStringBody"===e.type&&(null==t||(0,r.default)(e,t))},t.isEnumStringMember=function(e,t){return!!e&&"EnumStringMember"===e.type&&(null==t||(0,r.default)(e,t))},t.isEnumSymbolBody=function(e,t){return!!e&&"EnumSymbolBody"===e.type&&(null==t||(0,r.default)(e,t))},t.isExistsTypeAnnotation=function(e,t){return!!e&&"ExistsTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isExportAllDeclaration=function(e,t){return!!e&&"ExportAllDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isExportDeclaration=function(e,t){if(!e)return!1;switch(e.type){case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isExportDefaultDeclaration=function(e,t){return!!e&&"ExportDefaultDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isExportDefaultSpecifier=function(e,t){return!!e&&"ExportDefaultSpecifier"===e.type&&(null==t||(0,r.default)(e,t))},t.isExportNamedDeclaration=function(e,t){return!!e&&"ExportNamedDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isExportNamespaceSpecifier=function(e,t){return!!e&&"ExportNamespaceSpecifier"===e.type&&(null==t||(0,r.default)(e,t))},t.isExportSpecifier=function(e,t){return!!e&&"ExportSpecifier"===e.type&&(null==t||(0,r.default)(e,t))},t.isExpression=function(e,t){if(!e)return!1;switch(e.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"CallExpression":case"ConditionalExpression":case"FunctionExpression":case"Identifier":case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"ObjectExpression":case"SequenceExpression":case"ParenthesizedExpression":case"ThisExpression":case"UnaryExpression":case"UpdateExpression":case"ArrowFunctionExpression":case"ClassExpression":case"ImportExpression":case"MetaProperty":case"Super":case"TaggedTemplateExpression":case"TemplateLiteral":case"YieldExpression":case"AwaitExpression":case"Import":case"BigIntLiteral":case"OptionalMemberExpression":case"OptionalCallExpression":case"TypeCastExpression":case"JSXElement":case"JSXFragment":case"BindExpression":case"DoExpression":case"RecordExpression":case"TupleExpression":case"DecimalLiteral":case"ModuleExpression":case"TopicReference":case"PipelineTopicExpression":case"PipelineBareFunction":case"PipelinePrimaryTopicReference":case"TSInstantiationExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(e.expectedNode){case"Expression":case"Identifier":case"StringLiteral":break;default:return!1}break;default:return!1}return null==t||(0,r.default)(e,t)},t.isExpressionStatement=function(e,t){return!!e&&"ExpressionStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isExpressionWrapper=function(e,t){if(!e)return!1;switch(e.type){case"ExpressionStatement":case"ParenthesizedExpression":case"TypeCastExpression":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isFile=function(e,t){return!!e&&"File"===e.type&&(null==t||(0,r.default)(e,t))},t.isFlow=function(e,t){if(!e)return!1;switch(e.type){case"AnyTypeAnnotation":case"ArrayTypeAnnotation":case"BooleanTypeAnnotation":case"BooleanLiteralTypeAnnotation":case"NullLiteralTypeAnnotation":case"ClassImplements":case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"DeclaredPredicate":case"ExistsTypeAnnotation":case"FunctionTypeAnnotation":case"FunctionTypeParam":case"GenericTypeAnnotation":case"InferredPredicate":case"InterfaceExtends":case"InterfaceDeclaration":case"InterfaceTypeAnnotation":case"IntersectionTypeAnnotation":case"MixedTypeAnnotation":case"EmptyTypeAnnotation":case"NullableTypeAnnotation":case"NumberLiteralTypeAnnotation":case"NumberTypeAnnotation":case"ObjectTypeAnnotation":case"ObjectTypeInternalSlot":case"ObjectTypeCallProperty":case"ObjectTypeIndexer":case"ObjectTypeProperty":case"ObjectTypeSpreadProperty":case"OpaqueType":case"QualifiedTypeIdentifier":case"StringLiteralTypeAnnotation":case"StringTypeAnnotation":case"SymbolTypeAnnotation":case"ThisTypeAnnotation":case"TupleTypeAnnotation":case"TypeofTypeAnnotation":case"TypeAlias":case"TypeAnnotation":case"TypeCastExpression":case"TypeParameter":case"TypeParameterDeclaration":case"TypeParameterInstantiation":case"UnionTypeAnnotation":case"Variance":case"VoidTypeAnnotation":case"EnumDeclaration":case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":case"EnumDefaultedMember":case"IndexedAccessType":case"OptionalIndexedAccessType":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isFlowBaseAnnotation=function(e,t){if(!e)return!1;switch(e.type){case"AnyTypeAnnotation":case"BooleanTypeAnnotation":case"NullLiteralTypeAnnotation":case"MixedTypeAnnotation":case"EmptyTypeAnnotation":case"NumberTypeAnnotation":case"StringTypeAnnotation":case"SymbolTypeAnnotation":case"ThisTypeAnnotation":case"VoidTypeAnnotation":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isFlowDeclaration=function(e,t){if(!e)return!1;switch(e.type){case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"InterfaceDeclaration":case"OpaqueType":case"TypeAlias":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isFlowPredicate=function(e,t){if(!e)return!1;switch(e.type){case"DeclaredPredicate":case"InferredPredicate":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isFlowType=function(e,t){if(!e)return!1;switch(e.type){case"AnyTypeAnnotation":case"ArrayTypeAnnotation":case"BooleanTypeAnnotation":case"BooleanLiteralTypeAnnotation":case"NullLiteralTypeAnnotation":case"ExistsTypeAnnotation":case"FunctionTypeAnnotation":case"GenericTypeAnnotation":case"InterfaceTypeAnnotation":case"IntersectionTypeAnnotation":case"MixedTypeAnnotation":case"EmptyTypeAnnotation":case"NullableTypeAnnotation":case"NumberLiteralTypeAnnotation":case"NumberTypeAnnotation":case"ObjectTypeAnnotation":case"StringLiteralTypeAnnotation":case"StringTypeAnnotation":case"SymbolTypeAnnotation":case"ThisTypeAnnotation":case"TupleTypeAnnotation":case"TypeofTypeAnnotation":case"UnionTypeAnnotation":case"VoidTypeAnnotation":case"IndexedAccessType":case"OptionalIndexedAccessType":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isFor=function(e,t){if(!e)return!1;switch(e.type){case"ForInStatement":case"ForStatement":case"ForOfStatement":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isForInStatement=function(e,t){return!!e&&"ForInStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isForOfStatement=function(e,t){return!!e&&"ForOfStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isForStatement=function(e,t){return!!e&&"ForStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isForXStatement=function(e,t){if(!e)return!1;switch(e.type){case"ForInStatement":case"ForOfStatement":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isFunction=function(e,t){if(!e)return!1;switch(e.type){case"FunctionDeclaration":case"FunctionExpression":case"ObjectMethod":case"ArrowFunctionExpression":case"ClassMethod":case"ClassPrivateMethod":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isFunctionDeclaration=function(e,t){return!!e&&"FunctionDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isFunctionExpression=function(e,t){return!!e&&"FunctionExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isFunctionParameter=function(e,t){if(!e)return!1;switch(e.type){case"Identifier":case"RestElement":case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"VoidPattern":break;case"Placeholder":if("Identifier"===e.expectedNode)break;default:return!1}return null==t||(0,r.default)(e,t)},t.isFunctionParent=function(e,t){if(!e)return!1;switch(e.type){case"FunctionDeclaration":case"FunctionExpression":case"ObjectMethod":case"ArrowFunctionExpression":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isFunctionTypeAnnotation=function(e,t){return!!e&&"FunctionTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isFunctionTypeParam=function(e,t){return!!e&&"FunctionTypeParam"===e.type&&(null==t||(0,r.default)(e,t))},t.isGenericTypeAnnotation=function(e,t){return!!e&&"GenericTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isIdentifier=function(e,t){return!!e&&"Identifier"===e.type&&(null==t||(0,r.default)(e,t))},t.isIfStatement=function(e,t){return!!e&&"IfStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isImmutable=function(e,t){if(!e)return!1;switch(e.type){case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"BigIntLiteral":case"JSXAttribute":case"JSXClosingElement":case"JSXElement":case"JSXExpressionContainer":case"JSXSpreadChild":case"JSXOpeningElement":case"JSXText":case"JSXFragment":case"JSXOpeningFragment":case"JSXClosingFragment":case"DecimalLiteral":break;case"Placeholder":if("StringLiteral"===e.expectedNode)break;default:return!1}return null==t||(0,r.default)(e,t)},t.isImport=function(e,t){return!!e&&"Import"===e.type&&(null==t||(0,r.default)(e,t))},t.isImportAttribute=function(e,t){return!!e&&"ImportAttribute"===e.type&&(null==t||(0,r.default)(e,t))},t.isImportDeclaration=function(e,t){return!!e&&"ImportDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isImportDefaultSpecifier=function(e,t){return!!e&&"ImportDefaultSpecifier"===e.type&&(null==t||(0,r.default)(e,t))},t.isImportExpression=function(e,t){return!!e&&"ImportExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isImportNamespaceSpecifier=function(e,t){return!!e&&"ImportNamespaceSpecifier"===e.type&&(null==t||(0,r.default)(e,t))},t.isImportOrExportDeclaration=s,t.isImportSpecifier=function(e,t){return!!e&&"ImportSpecifier"===e.type&&(null==t||(0,r.default)(e,t))},t.isIndexedAccessType=function(e,t){return!!e&&"IndexedAccessType"===e.type&&(null==t||(0,r.default)(e,t))},t.isInferredPredicate=function(e,t){return!!e&&"InferredPredicate"===e.type&&(null==t||(0,r.default)(e,t))},t.isInterfaceDeclaration=function(e,t){return!!e&&"InterfaceDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isInterfaceExtends=function(e,t){return!!e&&"InterfaceExtends"===e.type&&(null==t||(0,r.default)(e,t))},t.isInterfaceTypeAnnotation=function(e,t){return!!e&&"InterfaceTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isInterpreterDirective=function(e,t){return!!e&&"InterpreterDirective"===e.type&&(null==t||(0,r.default)(e,t))},t.isIntersectionTypeAnnotation=function(e,t){return!!e&&"IntersectionTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isJSX=function(e,t){if(!e)return!1;switch(e.type){case"JSXAttribute":case"JSXClosingElement":case"JSXElement":case"JSXEmptyExpression":case"JSXExpressionContainer":case"JSXSpreadChild":case"JSXIdentifier":case"JSXMemberExpression":case"JSXNamespacedName":case"JSXOpeningElement":case"JSXSpreadAttribute":case"JSXText":case"JSXFragment":case"JSXOpeningFragment":case"JSXClosingFragment":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isJSXAttribute=function(e,t){return!!e&&"JSXAttribute"===e.type&&(null==t||(0,r.default)(e,t))},t.isJSXClosingElement=function(e,t){return!!e&&"JSXClosingElement"===e.type&&(null==t||(0,r.default)(e,t))},t.isJSXClosingFragment=function(e,t){return!!e&&"JSXClosingFragment"===e.type&&(null==t||(0,r.default)(e,t))},t.isJSXElement=function(e,t){return!!e&&"JSXElement"===e.type&&(null==t||(0,r.default)(e,t))},t.isJSXEmptyExpression=function(e,t){return!!e&&"JSXEmptyExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isJSXExpressionContainer=function(e,t){return!!e&&"JSXExpressionContainer"===e.type&&(null==t||(0,r.default)(e,t))},t.isJSXFragment=function(e,t){return!!e&&"JSXFragment"===e.type&&(null==t||(0,r.default)(e,t))},t.isJSXIdentifier=function(e,t){return!!e&&"JSXIdentifier"===e.type&&(null==t||(0,r.default)(e,t))},t.isJSXMemberExpression=function(e,t){return!!e&&"JSXMemberExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isJSXNamespacedName=function(e,t){return!!e&&"JSXNamespacedName"===e.type&&(null==t||(0,r.default)(e,t))},t.isJSXOpeningElement=function(e,t){return!!e&&"JSXOpeningElement"===e.type&&(null==t||(0,r.default)(e,t))},t.isJSXOpeningFragment=function(e,t){return!!e&&"JSXOpeningFragment"===e.type&&(null==t||(0,r.default)(e,t))},t.isJSXSpreadAttribute=function(e,t){return!!e&&"JSXSpreadAttribute"===e.type&&(null==t||(0,r.default)(e,t))},t.isJSXSpreadChild=function(e,t){return!!e&&"JSXSpreadChild"===e.type&&(null==t||(0,r.default)(e,t))},t.isJSXText=function(e,t){return!!e&&"JSXText"===e.type&&(null==t||(0,r.default)(e,t))},t.isLVal=function(e,t){if(!e)return!1;switch(e.type){case"Identifier":case"MemberExpression":case"RestElement":case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"TSParameterProperty":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":break;case"Placeholder":switch(e.expectedNode){case"Pattern":case"Identifier":break;default:return!1}break;default:return!1}return null==t||(0,r.default)(e,t)},t.isLabeledStatement=function(e,t){return!!e&&"LabeledStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isLiteral=function(e,t){if(!e)return!1;switch(e.type){case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"TemplateLiteral":case"BigIntLiteral":case"DecimalLiteral":break;case"Placeholder":if("StringLiteral"===e.expectedNode)break;default:return!1}return null==t||(0,r.default)(e,t)},t.isLogicalExpression=function(e,t){return!!e&&"LogicalExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isLoop=function(e,t){if(!e)return!1;switch(e.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":case"ForOfStatement":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isMemberExpression=function(e,t){return!!e&&"MemberExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isMetaProperty=function(e,t){return!!e&&"MetaProperty"===e.type&&(null==t||(0,r.default)(e,t))},t.isMethod=function(e,t){if(!e)return!1;switch(e.type){case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isMiscellaneous=function(e,t){if(!e)return!1;switch(e.type){case"Noop":case"Placeholder":case"V8IntrinsicIdentifier":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isMixedTypeAnnotation=function(e,t){return!!e&&"MixedTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isModuleDeclaration=function(e,t){return(0,n.default)("isModuleDeclaration","isImportOrExportDeclaration"),s(e,t)},t.isModuleExpression=function(e,t){return!!e&&"ModuleExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isModuleSpecifier=function(e,t){if(!e)return!1;switch(e.type){case"ExportSpecifier":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":case"ExportNamespaceSpecifier":case"ExportDefaultSpecifier":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isNewExpression=function(e,t){return!!e&&"NewExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isNoop=function(e,t){return!!e&&"Noop"===e.type&&(null==t||(0,r.default)(e,t))},t.isNullLiteral=function(e,t){return!!e&&"NullLiteral"===e.type&&(null==t||(0,r.default)(e,t))},t.isNullLiteralTypeAnnotation=function(e,t){return!!e&&"NullLiteralTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isNullableTypeAnnotation=function(e,t){return!!e&&"NullableTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isNumberLiteral=function(e,t){return(0,n.default)("isNumberLiteral","isNumericLiteral"),!!e&&"NumberLiteral"===e.type&&(null==t||(0,r.default)(e,t))},t.isNumberLiteralTypeAnnotation=function(e,t){return!!e&&"NumberLiteralTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isNumberTypeAnnotation=function(e,t){return!!e&&"NumberTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isNumericLiteral=function(e,t){return!!e&&"NumericLiteral"===e.type&&(null==t||(0,r.default)(e,t))},t.isObjectExpression=function(e,t){return!!e&&"ObjectExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isObjectMember=function(e,t){if(!e)return!1;switch(e.type){case"ObjectMethod":case"ObjectProperty":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isObjectMethod=function(e,t){return!!e&&"ObjectMethod"===e.type&&(null==t||(0,r.default)(e,t))},t.isObjectPattern=function(e,t){return!!e&&"ObjectPattern"===e.type&&(null==t||(0,r.default)(e,t))},t.isObjectProperty=function(e,t){return!!e&&"ObjectProperty"===e.type&&(null==t||(0,r.default)(e,t))},t.isObjectTypeAnnotation=function(e,t){return!!e&&"ObjectTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isObjectTypeCallProperty=function(e,t){return!!e&&"ObjectTypeCallProperty"===e.type&&(null==t||(0,r.default)(e,t))},t.isObjectTypeIndexer=function(e,t){return!!e&&"ObjectTypeIndexer"===e.type&&(null==t||(0,r.default)(e,t))},t.isObjectTypeInternalSlot=function(e,t){return!!e&&"ObjectTypeInternalSlot"===e.type&&(null==t||(0,r.default)(e,t))},t.isObjectTypeProperty=function(e,t){return!!e&&"ObjectTypeProperty"===e.type&&(null==t||(0,r.default)(e,t))},t.isObjectTypeSpreadProperty=function(e,t){return!!e&&"ObjectTypeSpreadProperty"===e.type&&(null==t||(0,r.default)(e,t))},t.isOpaqueType=function(e,t){return!!e&&"OpaqueType"===e.type&&(null==t||(0,r.default)(e,t))},t.isOptionalCallExpression=function(e,t){return!!e&&"OptionalCallExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isOptionalIndexedAccessType=function(e,t){return!!e&&"OptionalIndexedAccessType"===e.type&&(null==t||(0,r.default)(e,t))},t.isOptionalMemberExpression=function(e,t){return!!e&&"OptionalMemberExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isParenthesizedExpression=function(e,t){return!!e&&"ParenthesizedExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isPattern=function(e,t){if(!e)return!1;switch(e.type){case"AssignmentPattern":case"ArrayPattern":case"ObjectPattern":case"VoidPattern":break;case"Placeholder":if("Pattern"===e.expectedNode)break;default:return!1}return null==t||(0,r.default)(e,t)},t.isPatternLike=function(e,t){if(!e)return!1;switch(e.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(e.expectedNode){case"Pattern":case"Identifier":break;default:return!1}break;default:return!1}return null==t||(0,r.default)(e,t)},t.isPipelineBareFunction=function(e,t){return!!e&&"PipelineBareFunction"===e.type&&(null==t||(0,r.default)(e,t))},t.isPipelinePrimaryTopicReference=function(e,t){return!!e&&"PipelinePrimaryTopicReference"===e.type&&(null==t||(0,r.default)(e,t))},t.isPipelineTopicExpression=function(e,t){return!!e&&"PipelineTopicExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isPlaceholder=function(e,t){return!!e&&"Placeholder"===e.type&&(null==t||(0,r.default)(e,t))},t.isPrivate=function(e,t){if(!e)return!1;switch(e.type){case"ClassPrivateProperty":case"ClassPrivateMethod":case"PrivateName":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isPrivateName=function(e,t){return!!e&&"PrivateName"===e.type&&(null==t||(0,r.default)(e,t))},t.isProgram=function(e,t){return!!e&&"Program"===e.type&&(null==t||(0,r.default)(e,t))},t.isProperty=function(e,t){if(!e)return!1;switch(e.type){case"ObjectProperty":case"ClassProperty":case"ClassAccessorProperty":case"ClassPrivateProperty":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isPureish=function(e,t){if(!e)return!1;switch(e.type){case"FunctionDeclaration":case"FunctionExpression":case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"ArrowFunctionExpression":case"BigIntLiteral":case"DecimalLiteral":break;case"Placeholder":if("StringLiteral"===e.expectedNode)break;default:return!1}return null==t||(0,r.default)(e,t)},t.isQualifiedTypeIdentifier=function(e,t){return!!e&&"QualifiedTypeIdentifier"===e.type&&(null==t||(0,r.default)(e,t))},t.isRecordExpression=function(e,t){return!!e&&"RecordExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isRegExpLiteral=function(e,t){return!!e&&"RegExpLiteral"===e.type&&(null==t||(0,r.default)(e,t))},t.isRegexLiteral=function(e,t){return(0,n.default)("isRegexLiteral","isRegExpLiteral"),!!e&&"RegexLiteral"===e.type&&(null==t||(0,r.default)(e,t))},t.isRestElement=function(e,t){return!!e&&"RestElement"===e.type&&(null==t||(0,r.default)(e,t))},t.isRestProperty=function(e,t){return(0,n.default)("isRestProperty","isRestElement"),!!e&&"RestProperty"===e.type&&(null==t||(0,r.default)(e,t))},t.isReturnStatement=function(e,t){return!!e&&"ReturnStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isScopable=function(e,t){if(!e)return!1;switch(e.type){case"BlockStatement":case"CatchClause":case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"FunctionExpression":case"Program":case"ObjectMethod":case"SwitchStatement":case"WhileStatement":case"ArrowFunctionExpression":case"ClassExpression":case"ClassDeclaration":case"ForOfStatement":case"ClassMethod":case"ClassPrivateMethod":case"StaticBlock":case"TSModuleBlock":break;case"Placeholder":if("BlockStatement"===e.expectedNode)break;default:return!1}return null==t||(0,r.default)(e,t)},t.isSequenceExpression=function(e,t){return!!e&&"SequenceExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isSpreadElement=function(e,t){return!!e&&"SpreadElement"===e.type&&(null==t||(0,r.default)(e,t))},t.isSpreadProperty=function(e,t){return(0,n.default)("isSpreadProperty","isSpreadElement"),!!e&&"SpreadProperty"===e.type&&(null==t||(0,r.default)(e,t))},t.isStandardized=function(e,t){if(!e)return!1;switch(e.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"InterpreterDirective":case"Directive":case"DirectiveLiteral":case"BlockStatement":case"BreakStatement":case"CallExpression":case"CatchClause":case"ConditionalExpression":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"File":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"FunctionExpression":case"Identifier":case"IfStatement":case"LabeledStatement":case"StringLiteral":case"NumericLiteral":case"NullLiteral":case"BooleanLiteral":case"RegExpLiteral":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"Program":case"ObjectExpression":case"ObjectMethod":case"ObjectProperty":case"RestElement":case"ReturnStatement":case"SequenceExpression":case"ParenthesizedExpression":case"SwitchCase":case"SwitchStatement":case"ThisExpression":case"ThrowStatement":case"TryStatement":case"UnaryExpression":case"UpdateExpression":case"VariableDeclaration":case"VariableDeclarator":case"WhileStatement":case"WithStatement":case"AssignmentPattern":case"ArrayPattern":case"ArrowFunctionExpression":case"ClassBody":case"ClassExpression":case"ClassDeclaration":case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ExportSpecifier":case"ForOfStatement":case"ImportDeclaration":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"ImportSpecifier":case"ImportExpression":case"MetaProperty":case"ClassMethod":case"ObjectPattern":case"SpreadElement":case"Super":case"TaggedTemplateExpression":case"TemplateElement":case"TemplateLiteral":case"YieldExpression":case"AwaitExpression":case"Import":case"BigIntLiteral":case"ExportNamespaceSpecifier":case"OptionalMemberExpression":case"OptionalCallExpression":case"ClassProperty":case"ClassAccessorProperty":case"ClassPrivateProperty":case"ClassPrivateMethod":case"PrivateName":case"StaticBlock":case"ImportAttribute":break;case"Placeholder":switch(e.expectedNode){case"Identifier":case"StringLiteral":case"BlockStatement":case"ClassBody":break;default:return!1}break;default:return!1}return null==t||(0,r.default)(e,t)},t.isStatement=function(e,t){if(!e)return!1;switch(e.type){case"BlockStatement":case"BreakStatement":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"ForInStatement":case"ForStatement":case"FunctionDeclaration":case"IfStatement":case"LabeledStatement":case"ReturnStatement":case"SwitchStatement":case"ThrowStatement":case"TryStatement":case"VariableDeclaration":case"WhileStatement":case"WithStatement":case"ClassDeclaration":case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ForOfStatement":case"ImportDeclaration":case"DeclareClass":case"DeclareFunction":case"DeclareInterface":case"DeclareModule":case"DeclareModuleExports":case"DeclareTypeAlias":case"DeclareOpaqueType":case"DeclareVariable":case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":case"InterfaceDeclaration":case"OpaqueType":case"TypeAlias":case"EnumDeclaration":case"TSDeclareFunction":case"TSInterfaceDeclaration":case"TSTypeAliasDeclaration":case"TSEnumDeclaration":case"TSModuleDeclaration":case"TSImportEqualsDeclaration":case"TSExportAssignment":case"TSNamespaceExportDeclaration":break;case"Placeholder":switch(e.expectedNode){case"Statement":case"Declaration":case"BlockStatement":break;default:return!1}break;default:return!1}return null==t||(0,r.default)(e,t)},t.isStaticBlock=function(e,t){return!!e&&"StaticBlock"===e.type&&(null==t||(0,r.default)(e,t))},t.isStringLiteral=function(e,t){return!!e&&"StringLiteral"===e.type&&(null==t||(0,r.default)(e,t))},t.isStringLiteralTypeAnnotation=function(e,t){return!!e&&"StringLiteralTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isStringTypeAnnotation=function(e,t){return!!e&&"StringTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isSuper=function(e,t){return!!e&&"Super"===e.type&&(null==t||(0,r.default)(e,t))},t.isSwitchCase=function(e,t){return!!e&&"SwitchCase"===e.type&&(null==t||(0,r.default)(e,t))},t.isSwitchStatement=function(e,t){return!!e&&"SwitchStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isSymbolTypeAnnotation=function(e,t){return!!e&&"SymbolTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSAnyKeyword=function(e,t){return!!e&&"TSAnyKeyword"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSArrayType=function(e,t){return!!e&&"TSArrayType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSAsExpression=function(e,t){return!!e&&"TSAsExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSBaseType=function(e,t){if(!e)return!1;switch(e.type){case"TSAnyKeyword":case"TSBooleanKeyword":case"TSBigIntKeyword":case"TSIntrinsicKeyword":case"TSNeverKeyword":case"TSNullKeyword":case"TSNumberKeyword":case"TSObjectKeyword":case"TSStringKeyword":case"TSSymbolKeyword":case"TSUndefinedKeyword":case"TSUnknownKeyword":case"TSVoidKeyword":case"TSThisType":case"TSTemplateLiteralType":case"TSLiteralType":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isTSBigIntKeyword=function(e,t){return!!e&&"TSBigIntKeyword"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSBooleanKeyword=function(e,t){return!!e&&"TSBooleanKeyword"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSCallSignatureDeclaration=function(e,t){return!!e&&"TSCallSignatureDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSConditionalType=function(e,t){return!!e&&"TSConditionalType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSConstructSignatureDeclaration=function(e,t){return!!e&&"TSConstructSignatureDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSConstructorType=function(e,t){return!!e&&"TSConstructorType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSDeclareFunction=function(e,t){return!!e&&"TSDeclareFunction"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSDeclareMethod=function(e,t){return!!e&&"TSDeclareMethod"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSEntityName=function(e,t){if(!e)return!1;switch(e.type){case"Identifier":case"TSQualifiedName":break;case"Placeholder":if("Identifier"===e.expectedNode)break;default:return!1}return null==t||(0,r.default)(e,t)},t.isTSEnumBody=function(e,t){return!!e&&"TSEnumBody"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSEnumDeclaration=function(e,t){return!!e&&"TSEnumDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSEnumMember=function(e,t){return!!e&&"TSEnumMember"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSExportAssignment=function(e,t){return!!e&&"TSExportAssignment"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSExpressionWithTypeArguments=function(e,t){return!!e&&"TSExpressionWithTypeArguments"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSExternalModuleReference=function(e,t){return!!e&&"TSExternalModuleReference"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSFunctionType=function(e,t){return!!e&&"TSFunctionType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSImportEqualsDeclaration=function(e,t){return!!e&&"TSImportEqualsDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSImportType=function(e,t){return!!e&&"TSImportType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSIndexSignature=function(e,t){return!!e&&"TSIndexSignature"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSIndexedAccessType=function(e,t){return!!e&&"TSIndexedAccessType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSInferType=function(e,t){return!!e&&"TSInferType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSInstantiationExpression=function(e,t){return!!e&&"TSInstantiationExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSInterfaceBody=function(e,t){return!!e&&"TSInterfaceBody"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSInterfaceDeclaration=function(e,t){return!!e&&"TSInterfaceDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSIntersectionType=function(e,t){return!!e&&"TSIntersectionType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSIntrinsicKeyword=function(e,t){return!!e&&"TSIntrinsicKeyword"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSLiteralType=function(e,t){return!!e&&"TSLiteralType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSMappedType=function(e,t){return!!e&&"TSMappedType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSMethodSignature=function(e,t){return!!e&&"TSMethodSignature"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSModuleBlock=function(e,t){return!!e&&"TSModuleBlock"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSModuleDeclaration=function(e,t){return!!e&&"TSModuleDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSNamedTupleMember=function(e,t){return!!e&&"TSNamedTupleMember"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSNamespaceExportDeclaration=function(e,t){return!!e&&"TSNamespaceExportDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSNeverKeyword=function(e,t){return!!e&&"TSNeverKeyword"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSNonNullExpression=function(e,t){return!!e&&"TSNonNullExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSNullKeyword=function(e,t){return!!e&&"TSNullKeyword"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSNumberKeyword=function(e,t){return!!e&&"TSNumberKeyword"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSObjectKeyword=function(e,t){return!!e&&"TSObjectKeyword"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSOptionalType=function(e,t){return!!e&&"TSOptionalType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSParameterProperty=function(e,t){return!!e&&"TSParameterProperty"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSParenthesizedType=function(e,t){return!!e&&"TSParenthesizedType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSPropertySignature=function(e,t){return!!e&&"TSPropertySignature"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSQualifiedName=function(e,t){return!!e&&"TSQualifiedName"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSRestType=function(e,t){return!!e&&"TSRestType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSSatisfiesExpression=function(e,t){return!!e&&"TSSatisfiesExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSStringKeyword=function(e,t){return!!e&&"TSStringKeyword"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSSymbolKeyword=function(e,t){return!!e&&"TSSymbolKeyword"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSTemplateLiteralType=function(e,t){return!!e&&"TSTemplateLiteralType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSThisType=function(e,t){return!!e&&"TSThisType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSTupleType=function(e,t){return!!e&&"TSTupleType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSType=function(e,t){if(!e)return!1;switch(e.type){case"TSAnyKeyword":case"TSBooleanKeyword":case"TSBigIntKeyword":case"TSIntrinsicKeyword":case"TSNeverKeyword":case"TSNullKeyword":case"TSNumberKeyword":case"TSObjectKeyword":case"TSStringKeyword":case"TSSymbolKeyword":case"TSUndefinedKeyword":case"TSUnknownKeyword":case"TSVoidKeyword":case"TSThisType":case"TSFunctionType":case"TSConstructorType":case"TSTypeReference":case"TSTypePredicate":case"TSTypeQuery":case"TSTypeLiteral":case"TSArrayType":case"TSTupleType":case"TSOptionalType":case"TSRestType":case"TSUnionType":case"TSIntersectionType":case"TSConditionalType":case"TSInferType":case"TSParenthesizedType":case"TSTypeOperator":case"TSIndexedAccessType":case"TSMappedType":case"TSTemplateLiteralType":case"TSLiteralType":case"TSExpressionWithTypeArguments":case"TSImportType":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isTSTypeAliasDeclaration=function(e,t){return!!e&&"TSTypeAliasDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSTypeAnnotation=function(e,t){return!!e&&"TSTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSTypeAssertion=function(e,t){return!!e&&"TSTypeAssertion"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSTypeElement=function(e,t){if(!e)return!1;switch(e.type){case"TSCallSignatureDeclaration":case"TSConstructSignatureDeclaration":case"TSPropertySignature":case"TSMethodSignature":case"TSIndexSignature":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isTSTypeLiteral=function(e,t){return!!e&&"TSTypeLiteral"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSTypeOperator=function(e,t){return!!e&&"TSTypeOperator"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSTypeParameter=function(e,t){return!!e&&"TSTypeParameter"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSTypeParameterDeclaration=function(e,t){return!!e&&"TSTypeParameterDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSTypeParameterInstantiation=function(e,t){return!!e&&"TSTypeParameterInstantiation"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSTypePredicate=function(e,t){return!!e&&"TSTypePredicate"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSTypeQuery=function(e,t){return!!e&&"TSTypeQuery"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSTypeReference=function(e,t){return!!e&&"TSTypeReference"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSUndefinedKeyword=function(e,t){return!!e&&"TSUndefinedKeyword"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSUnionType=function(e,t){return!!e&&"TSUnionType"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSUnknownKeyword=function(e,t){return!!e&&"TSUnknownKeyword"===e.type&&(null==t||(0,r.default)(e,t))},t.isTSVoidKeyword=function(e,t){return!!e&&"TSVoidKeyword"===e.type&&(null==t||(0,r.default)(e,t))},t.isTaggedTemplateExpression=function(e,t){return!!e&&"TaggedTemplateExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isTemplateElement=function(e,t){return!!e&&"TemplateElement"===e.type&&(null==t||(0,r.default)(e,t))},t.isTemplateLiteral=function(e,t){return!!e&&"TemplateLiteral"===e.type&&(null==t||(0,r.default)(e,t))},t.isTerminatorless=function(e,t){if(!e)return!1;switch(e.type){case"BreakStatement":case"ContinueStatement":case"ReturnStatement":case"ThrowStatement":case"YieldExpression":case"AwaitExpression":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isThisExpression=function(e,t){return!!e&&"ThisExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isThisTypeAnnotation=function(e,t){return!!e&&"ThisTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isThrowStatement=function(e,t){return!!e&&"ThrowStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isTopicReference=function(e,t){return!!e&&"TopicReference"===e.type&&(null==t||(0,r.default)(e,t))},t.isTryStatement=function(e,t){return!!e&&"TryStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isTupleExpression=function(e,t){return!!e&&"TupleExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isTupleTypeAnnotation=function(e,t){return!!e&&"TupleTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isTypeAlias=function(e,t){return!!e&&"TypeAlias"===e.type&&(null==t||(0,r.default)(e,t))},t.isTypeAnnotation=function(e,t){return!!e&&"TypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isTypeCastExpression=function(e,t){return!!e&&"TypeCastExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isTypeParameter=function(e,t){return!!e&&"TypeParameter"===e.type&&(null==t||(0,r.default)(e,t))},t.isTypeParameterDeclaration=function(e,t){return!!e&&"TypeParameterDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isTypeParameterInstantiation=function(e,t){return!!e&&"TypeParameterInstantiation"===e.type&&(null==t||(0,r.default)(e,t))},t.isTypeScript=function(e,t){if(!e)return!1;switch(e.type){case"TSParameterProperty":case"TSDeclareFunction":case"TSDeclareMethod":case"TSQualifiedName":case"TSCallSignatureDeclaration":case"TSConstructSignatureDeclaration":case"TSPropertySignature":case"TSMethodSignature":case"TSIndexSignature":case"TSAnyKeyword":case"TSBooleanKeyword":case"TSBigIntKeyword":case"TSIntrinsicKeyword":case"TSNeverKeyword":case"TSNullKeyword":case"TSNumberKeyword":case"TSObjectKeyword":case"TSStringKeyword":case"TSSymbolKeyword":case"TSUndefinedKeyword":case"TSUnknownKeyword":case"TSVoidKeyword":case"TSThisType":case"TSFunctionType":case"TSConstructorType":case"TSTypeReference":case"TSTypePredicate":case"TSTypeQuery":case"TSTypeLiteral":case"TSArrayType":case"TSTupleType":case"TSOptionalType":case"TSRestType":case"TSNamedTupleMember":case"TSUnionType":case"TSIntersectionType":case"TSConditionalType":case"TSInferType":case"TSParenthesizedType":case"TSTypeOperator":case"TSIndexedAccessType":case"TSMappedType":case"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==t||(0,r.default)(e,t)},t.isTypeofTypeAnnotation=function(e,t){return!!e&&"TypeofTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isUnaryExpression=function(e,t){return!!e&&"UnaryExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isUnaryLike=function(e,t){if(!e)return!1;switch(e.type){case"UnaryExpression":case"SpreadElement":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isUnionTypeAnnotation=function(e,t){return!!e&&"UnionTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isUpdateExpression=function(e,t){return!!e&&"UpdateExpression"===e.type&&(null==t||(0,r.default)(e,t))},t.isUserWhitespacable=function(e,t){if(!e)return!1;switch(e.type){case"ObjectMethod":case"ObjectProperty":case"ObjectTypeInternalSlot":case"ObjectTypeCallProperty":case"ObjectTypeIndexer":case"ObjectTypeProperty":case"ObjectTypeSpreadProperty":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isV8IntrinsicIdentifier=function(e,t){return!!e&&"V8IntrinsicIdentifier"===e.type&&(null==t||(0,r.default)(e,t))},t.isVariableDeclaration=function(e,t){return!!e&&"VariableDeclaration"===e.type&&(null==t||(0,r.default)(e,t))},t.isVariableDeclarator=function(e,t){return!!e&&"VariableDeclarator"===e.type&&(null==t||(0,r.default)(e,t))},t.isVariance=function(e,t){return!!e&&"Variance"===e.type&&(null==t||(0,r.default)(e,t))},t.isVoidPattern=function(e,t){return!!e&&"VoidPattern"===e.type&&(null==t||(0,r.default)(e,t))},t.isVoidTypeAnnotation=function(e,t){return!!e&&"VoidTypeAnnotation"===e.type&&(null==t||(0,r.default)(e,t))},t.isWhile=function(e,t){if(!e)return!1;switch(e.type){case"DoWhileStatement":case"WhileStatement":break;default:return!1}return null==t||(0,r.default)(e,t)},t.isWhileStatement=function(e,t){return!!e&&"WhileStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isWithStatement=function(e,t){return!!e&&"WithStatement"===e.type&&(null==t||(0,r.default)(e,t))},t.isYieldExpression=function(e,t){return!!e&&"YieldExpression"===e.type&&(null==t||(0,r.default)(e,t))};var r=i(3903),n=i(74641);function s(e,t){if(!e)return!1;switch(e.type){case"ExportAllDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ImportDeclaration":break;default:return!1}return null==t||(0,r.default)(e,t)}},63646:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e,!0,!0)};var r=i(16938)},64008:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){const t=(0,n.default)(e);return 1===t.length?t[0]:(0,r.unionTypeAnnotation)(t)};var r=i(82208),n=i(97884)},64697:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,i){if(!i||!e)return e;const r=`${t}Comments`;return e[r]?"leading"===t?e[r]=i.concat(e[r]):e[r].push(...i):e[r]=i,e}},65830:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t={}){const i=t.preserveComments?n:s;for(const t of i)null!=e[t]&&(e[t]=void 0);for(const t of Object.keys(e))"_"===t[0]&&null!=e[t]&&(e[t]=void 0);const r=Object.getOwnPropertySymbols(e);for(const t of r)e[t]=null};var r=i(62811);const n=["tokens","start","end","loc","raw","rawValue"],s=[...r.COMMENT_KEYS,"comments",...n]},65863:(e,t)=>{t.encrypt=function(e,t){return e._cipher.encryptBlock(t)},t.decrypt=function(e,t){return e._cipher.decryptBlock(t)}},65987:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var r=i(63555),n=i(16938),s=i(37524);function a(e,t=e.key){let i;return"method"===e.kind?a.increment()+"":(i=(0,r.isIdentifier)(t)?t.name:(0,r.isStringLiteral)(t)?JSON.stringify(t.value):JSON.stringify((0,s.default)((0,n.default)(t))),e.computed&&(i=`[${i}]`),e.static&&(i=`static:${i}`),i)}a.uid=0,a.increment=function(){return a.uid>=Number.MAX_SAFE_INTEGER?a.uid=0:a.uid++}},66277:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.nodes=void 0;var r=i(45741);const{FLIPPED_ALIAS_KEYS:n,isArrayExpression:s,isAssignmentExpression:a,isBinary:o,isBlockStatement:l,isCallExpression:p,isFunction:c,isIdentifier:u,isLiteral:h,isMemberExpression:d,isObjectExpression:f,isOptionalCallExpression:m,isOptionalMemberExpression:y,isStringLiteral:T}=r;function g(e,t){return e?(d(e)||y(e)?(g(e.object,t),e.computed&&g(e.property,t)):o(e)||a(e)?(g(e.left,t),g(e.right,t)):p(e)||m(e)?(t.hasCall=!0,g(e.callee,t)):c(e)?t.hasFunction=!0:u(e)&&(t.hasHelper=t.hasHelper||e.callee&&S(e.callee)),t):t}function b(e){return g(e,{hasCall:!1,hasFunction:!1,hasHelper:!1})}function S(e){return!!e&&(d(e)?S(e.object)||S(e.property):u(e)?"require"===e.name||95===e.name.charCodeAt(0):p(e)?S(e.callee):!(!o(e)&&!a(e))&&(u(e.left)&&S(e.left)||S(e.right)))}function x(e){return h(e)||f(e)||s(e)||u(e)||d(e)}const E=t.nodes={AssignmentExpression(e){const t=b(e.right);if(t.hasCall&&t.hasHelper||t.hasFunction)return t.hasFunction?3:2},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){if(c(e.left)||c(e.right))return 2},Literal(e){if(T(e)&&"use strict"===e.value)return 2},CallExpression(e){if(c(e.callee)||S(e))return 3},OptionalCallExpression(e){if(c(e.callee))return 3},VariableDeclaration(e){for(let t=0;t<e.declarations.length;t++){const i=e.declarations[t];let r=S(i.id)&&!x(i.init);if(!r&&i.init){const e=b(i.init);r=S(i.init)&&e.hasCall||e.hasFunction}if(r)return 3}},IfStatement(e){if(l(e.consequent))return 3}};E.ObjectProperty=E.ObjectTypeProperty=E.ObjectMethod=function(e,t){if(t.properties[0]===e)return 1},E.ObjectTypeCallProperty=function(e,t){var i;if(t.callProperties[0]===e&&(null==(i=t.properties)||!i.length))return 1},E.ObjectTypeIndexer=function(e,t){var i,r;if(!(t.indexers[0]!==e||null!=(i=t.properties)&&i.length||null!=(r=t.callProperties)&&r.length))return 1},E.ObjectTypeInternalSlot=function(e,t){var i,r,n;if(!(t.internalSlots[0]!==e||null!=(i=t.properties)&&i.length||null!=(r=t.callProperties)&&r.length||null!=(n=t.indexers)&&n.length))return 1},[["Function",!0],["Class",!0],["Loop",!0],["LabeledStatement",!0],["SwitchStatement",!0],["TryStatement",!0]].forEach((function([e,t]){[e].concat(n[e]||[]).forEach((function(e){const i=t?3:0;E[e]=()=>i}))}))},66318:(e,t,i)=>{var r=i(65994).e;e.exports=r.hrtime||function(e){var t=.001*s.call(n),i=Math.floor(t),r=Math.floor(t%1*1e9);return e&&(i-=e[0],(r-=e[1])<0&&(i--,r+=1e9)),[i,r]};var n=i.g.performance||{},s=n.now||n.mozNow||n.msNow||n.oNow||n.webkitNow||function(){return(new Date).getTime()}},67787:(e,t,i)=>{const r=i(54667),n=i(96346),s="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=l,t.SlowBuffer=function(e){return+e!=e&&(e=0),l.alloc(+e)},t.INSPECT_MAX_BYTES=50;const a=2147483647;function o(e){if(e>a)throw new RangeError('The value "'+e+'" is invalid for option "size"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,l.prototype),t}function l(e,t,i){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return u(e)}return p(e,t,i)}function p(e,t,i){if("string"==typeof e)return function(e,t){if("string"==typeof t&&""!==t||(t="utf8"),!l.isEncoding(t))throw new TypeError("Unknown encoding: "+t);const i=0|m(e,t);let r=o(i);const n=r.write(e,t);return n!==i&&(r=r.slice(0,n)),r}(e,t);if(ArrayBuffer.isView(e))return function(e){if(z(e,Uint8Array)){const t=new Uint8Array(e);return d(t.buffer,t.byteOffset,t.byteLength)}return h(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(z(e,ArrayBuffer)||e&&z(e.buffer,ArrayBuffer))return d(e,t,i);if("undefined"!=typeof SharedArrayBuffer&&(z(e,SharedArrayBuffer)||e&&z(e.buffer,SharedArrayBuffer)))return d(e,t,i);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');const r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return l.from(r,t,i);const n=function(e){if(l.isBuffer(e)){const t=0|f(e.length),i=o(t);return 0===i.length||e.copy(i,0,0,t),i}return void 0!==e.length?"number"!=typeof e.length||H(e.length)?o(0):h(e):"Buffer"===e.type&&Array.isArray(e.data)?h(e.data):void 0}(e);if(n)return n;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return l.from(e[Symbol.toPrimitive]("string"),t,i);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function c(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function u(e){return c(e),o(e<0?0:0|f(e))}function h(e){const t=e.length<0?0:0|f(e.length),i=o(t);for(let r=0;r<t;r+=1)i[r]=255&e[r];return i}function d(e,t,i){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(i||0))throw new RangeError('"length" is outside of buffer bounds');let r;return r=void 0===t&&void 0===i?new Uint8Array(e):void 0===i?new Uint8Array(e,t):new Uint8Array(e,t,i),Object.setPrototypeOf(r,l.prototype),r}function f(e){if(e>=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|e}function m(e,t){if(l.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||z(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const i=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===i)return 0;let n=!1;for(;;)switch(t){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":return J(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*i;case"hex":return i>>>1;case"base64":return X(e).length;default:if(n)return r?-1:J(e).length;t=(""+t).toLowerCase(),n=!0}}function y(e,t,i){let r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===i||i>this.length)&&(i=this.length),i<=0)return"";if((i>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return O(this,t,i);case"utf8":case"utf-8":return A(this,t,i);case"ascii":return C(this,t,i);case"latin1":case"binary":return N(this,t,i);case"base64":return w(this,t,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,t,i);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function T(e,t,i){const r=e[t];e[t]=e[i],e[i]=r}function g(e,t,i,r,n){if(0===e.length)return-1;if("string"==typeof i?(r=i,i=0):i>2147483647?i=2147483647:i<-2147483648&&(i=-2147483648),H(i=+i)&&(i=n?0:e.length-1),i<0&&(i=e.length+i),i>=e.length){if(n)return-1;i=e.length-1}else if(i<0){if(!n)return-1;i=0}if("string"==typeof t&&(t=l.from(t,r)),l.isBuffer(t))return 0===t.length?-1:b(e,t,i,r,n);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?n?Uint8Array.prototype.indexOf.call(e,t,i):Uint8Array.prototype.lastIndexOf.call(e,t,i):b(e,[t],i,r,n);throw new TypeError("val must be string, number or Buffer")}function b(e,t,i,r,n){let s,a=1,o=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,o/=2,l/=2,i/=2}function p(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(n){let r=-1;for(s=i;s<o;s++)if(p(e,s)===p(t,-1===r?0:s-r)){if(-1===r&&(r=s),s-r+1===l)return r*a}else-1!==r&&(s-=s-r),r=-1}else for(i+l>o&&(i=o-l),s=i;s>=0;s--){let i=!0;for(let r=0;r<l;r++)if(p(e,s+r)!==p(t,r)){i=!1;break}if(i)return s}return-1}function S(e,t,i,r){i=Number(i)||0;const n=e.length-i;r?(r=Number(r))>n&&(r=n):r=n;const s=t.length;let a;for(r>s/2&&(r=s/2),a=0;a<r;++a){const r=parseInt(t.substr(2*a,2),16);if(H(r))return a;e[i+a]=r}return a}function x(e,t,i,r){return W(J(t,e.length-i),e,i,r)}function E(e,t,i,r){return W(function(e){const t=[];for(let i=0;i<e.length;++i)t.push(255&e.charCodeAt(i));return t}(t),e,i,r)}function v(e,t,i,r){return W(X(t),e,i,r)}function P(e,t,i,r){return W(function(e,t){let i,r,n;const s=[];for(let a=0;a<e.length&&!((t-=2)<0);++a)i=e.charCodeAt(a),r=i>>8,n=i%256,s.push(n),s.push(r);return s}(t,e.length-i),e,i,r)}function w(e,t,i){return 0===t&&i===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,i))}function A(e,t,i){i=Math.min(e.length,i);const r=[];let n=t;for(;n<i;){const t=e[n];let s=null,a=t>239?4:t>223?3:t>191?2:1;if(n+a<=i){let i,r,o,l;switch(a){case 1:t<128&&(s=t);break;case 2:i=e[n+1],128==(192&i)&&(l=(31&t)<<6|63&i,l>127&&(s=l));break;case 3:i=e[n+1],r=e[n+2],128==(192&i)&&128==(192&r)&&(l=(15&t)<<12|(63&i)<<6|63&r,l>2047&&(l<55296||l>57343)&&(s=l));break;case 4:i=e[n+1],r=e[n+2],o=e[n+3],128==(192&i)&&128==(192&r)&&128==(192&o)&&(l=(15&t)<<18|(63&i)<<12|(63&r)<<6|63&o,l>65535&&l<1114112&&(s=l))}}null===s?(s=65533,a=1):s>65535&&(s-=65536,r.push(s>>>10&1023|55296),s=56320|1023&s),r.push(s),n+=a}return function(e){const t=e.length;if(t<=I)return String.fromCharCode.apply(String,e);let i="",r=0;for(;r<t;)i+=String.fromCharCode.apply(String,e.slice(r,r+=I));return i}(r)}t.kMaxLength=a,l.TYPED_ARRAY_SUPPORT=function(){try{const e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),l.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(l.prototype,"parent",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.buffer}}),Object.defineProperty(l.prototype,"offset",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.byteOffset}}),l.poolSize=8192,l.from=function(e,t,i){return p(e,t,i)},Object.setPrototypeOf(l.prototype,Uint8Array.prototype),Object.setPrototypeOf(l,Uint8Array),l.alloc=function(e,t,i){return function(e,t,i){return c(e),e<=0?o(e):void 0!==t?"string"==typeof i?o(e).fill(t,i):o(e).fill(t):o(e)}(e,t,i)},l.allocUnsafe=function(e){return u(e)},l.allocUnsafeSlow=function(e){return u(e)},l.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==l.prototype},l.compare=function(e,t){if(z(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),z(t,Uint8Array)&&(t=l.from(t,t.offset,t.byteLength)),!l.isBuffer(e)||!l.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let i=e.length,r=t.length;for(let n=0,s=Math.min(i,r);n<s;++n)if(e[n]!==t[n]){i=e[n],r=t[n];break}return i<r?-1:r<i?1:0},l.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return l.alloc(0);let i;if(void 0===t)for(t=0,i=0;i<e.length;++i)t+=e[i].length;const r=l.allocUnsafe(t);let n=0;for(i=0;i<e.length;++i){let t=e[i];if(z(t,Uint8Array))n+t.length>r.length?(l.isBuffer(t)||(t=l.from(t)),t.copy(r,n)):Uint8Array.prototype.set.call(r,t,n);else{if(!l.isBuffer(t))throw new TypeError('"list" argument must be an Array of Buffers');t.copy(r,n)}n+=t.length}return r},l.byteLength=m,l.prototype._isBuffer=!0,l.prototype.swap16=function(){const e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)T(this,t,t+1);return this},l.prototype.swap32=function(){const e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)T(this,t,t+3),T(this,t+1,t+2);return this},l.prototype.swap64=function(){const e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)T(this,t,t+7),T(this,t+1,t+6),T(this,t+2,t+5),T(this,t+3,t+4);return this},l.prototype.toString=function(){const e=this.length;return 0===e?"":0===arguments.length?A(this,0,e):y.apply(this,arguments)},l.prototype.toLocaleString=l.prototype.toString,l.prototype.equals=function(e){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===l.compare(this,e)},l.prototype.inspect=function(){let e="";const i=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,i).replace(/(.{2})/g,"$1 ").trim(),this.length>i&&(e+=" ... "),"<Buffer "+e+">"},s&&(l.prototype[s]=l.prototype.inspect),l.prototype.compare=function(e,t,i,r,n){if(z(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),!l.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===i&&(i=e?e.length:0),void 0===r&&(r=0),void 0===n&&(n=this.length),t<0||i>e.length||r<0||n>this.length)throw new RangeError("out of range index");if(r>=n&&t>=i)return 0;if(r>=n)return-1;if(t>=i)return 1;if(this===e)return 0;let s=(n>>>=0)-(r>>>=0),a=(i>>>=0)-(t>>>=0);const o=Math.min(s,a),p=this.slice(r,n),c=e.slice(t,i);for(let e=0;e<o;++e)if(p[e]!==c[e]){s=p[e],a=c[e];break}return s<a?-1:a<s?1:0},l.prototype.includes=function(e,t,i){return-1!==this.indexOf(e,t,i)},l.prototype.indexOf=function(e,t,i){return g(this,e,t,i,!0)},l.prototype.lastIndexOf=function(e,t,i){return g(this,e,t,i,!1)},l.prototype.write=function(e,t,i,r){if(void 0===t)r="utf8",i=this.length,t=0;else if(void 0===i&&"string"==typeof t)r=t,i=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(i)?(i>>>=0,void 0===r&&(r="utf8")):(r=i,i=void 0)}const n=this.length-t;if((void 0===i||i>n)&&(i=n),e.length>0&&(i<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let s=!1;for(;;)switch(r){case"hex":return S(this,e,t,i);case"utf8":case"utf-8":return x(this,e,t,i);case"ascii":case"latin1":case"binary":return E(this,e,t,i);case"base64":return v(this,e,t,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,e,t,i);default:if(s)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),s=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const I=4096;function C(e,t,i){let r="";i=Math.min(e.length,i);for(let n=t;n<i;++n)r+=String.fromCharCode(127&e[n]);return r}function N(e,t,i){let r="";i=Math.min(e.length,i);for(let n=t;n<i;++n)r+=String.fromCharCode(e[n]);return r}function O(e,t,i){const r=e.length;(!t||t<0)&&(t=0),(!i||i<0||i>r)&&(i=r);let n="";for(let r=t;r<i;++r)n+=G[e[r]];return n}function k(e,t,i){const r=e.slice(t,i);let n="";for(let e=0;e<r.length-1;e+=2)n+=String.fromCharCode(r[e]+256*r[e+1]);return n}function _(e,t,i){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>i)throw new RangeError("Trying to access beyond buffer length")}function M(e,t,i,r,n,s){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>n||t<s)throw new RangeError('"value" argument is out of bounds');if(i+r>e.length)throw new RangeError("Index out of range")}function L(e,t,i,r,n){K(t,r,n,e,i,7);let s=Number(t&BigInt(4294967295));e[i++]=s,s>>=8,e[i++]=s,s>>=8,e[i++]=s,s>>=8,e[i++]=s;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[i++]=a,a>>=8,e[i++]=a,a>>=8,e[i++]=a,a>>=8,e[i++]=a,i}function D(e,t,i,r,n){K(t,r,n,e,i,7);let s=Number(t&BigInt(4294967295));e[i+7]=s,s>>=8,e[i+6]=s,s>>=8,e[i+5]=s,s>>=8,e[i+4]=s;let a=Number(t>>BigInt(32)&BigInt(4294967295));return e[i+3]=a,a>>=8,e[i+2]=a,a>>=8,e[i+1]=a,a>>=8,e[i]=a,i+8}function B(e,t,i,r,n,s){if(i+r>e.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("Index out of range")}function F(e,t,i,r,s){return t=+t,i>>>=0,s||B(e,0,i,4),n.write(e,t,i,r,23,4),i+4}function j(e,t,i,r,s){return t=+t,i>>>=0,s||B(e,0,i,8),n.write(e,t,i,r,52,8),i+8}l.prototype.slice=function(e,t){const i=this.length;(e=~~e)<0?(e+=i)<0&&(e=0):e>i&&(e=i),(t=void 0===t?i:~~t)<0?(t+=i)<0&&(t=0):t>i&&(t=i),t<e&&(t=e);const r=this.subarray(e,t);return Object.setPrototypeOf(r,l.prototype),r},l.prototype.readUintLE=l.prototype.readUIntLE=function(e,t,i){e>>>=0,t>>>=0,i||_(e,t,this.length);let r=this[e],n=1,s=0;for(;++s<t&&(n*=256);)r+=this[e+s]*n;return r},l.prototype.readUintBE=l.prototype.readUIntBE=function(e,t,i){e>>>=0,t>>>=0,i||_(e,t,this.length);let r=this[e+--t],n=1;for(;t>0&&(n*=256);)r+=this[e+--t]*n;return r},l.prototype.readUint8=l.prototype.readUInt8=function(e,t){return e>>>=0,t||_(e,1,this.length),this[e]},l.prototype.readUint16LE=l.prototype.readUInt16LE=function(e,t){return e>>>=0,t||_(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUint16BE=l.prototype.readUInt16BE=function(e,t){return e>>>=0,t||_(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUint32LE=l.prototype.readUInt32LE=function(e,t){return e>>>=0,t||_(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUint32BE=l.prototype.readUInt32BE=function(e,t){return e>>>=0,t||_(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readBigUInt64LE=Q((function(e){$(e>>>=0,"offset");const t=this[e],i=this[e+7];void 0!==t&&void 0!==i||q(e,this.length-8);const r=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,n=this[++e]+256*this[++e]+65536*this[++e]+i*2**24;return BigInt(r)+(BigInt(n)<<BigInt(32))})),l.prototype.readBigUInt64BE=Q((function(e){$(e>>>=0,"offset");const t=this[e],i=this[e+7];void 0!==t&&void 0!==i||q(e,this.length-8);const r=t*2**24+65536*this[++e]+256*this[++e]+this[++e],n=this[++e]*2**24+65536*this[++e]+256*this[++e]+i;return(BigInt(r)<<BigInt(32))+BigInt(n)})),l.prototype.readIntLE=function(e,t,i){e>>>=0,t>>>=0,i||_(e,t,this.length);let r=this[e],n=1,s=0;for(;++s<t&&(n*=256);)r+=this[e+s]*n;return n*=128,r>=n&&(r-=Math.pow(2,8*t)),r},l.prototype.readIntBE=function(e,t,i){e>>>=0,t>>>=0,i||_(e,t,this.length);let r=t,n=1,s=this[e+--r];for(;r>0&&(n*=256);)s+=this[e+--r]*n;return n*=128,s>=n&&(s-=Math.pow(2,8*t)),s},l.prototype.readInt8=function(e,t){return e>>>=0,t||_(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){e>>>=0,t||_(e,2,this.length);const i=this[e]|this[e+1]<<8;return 32768&i?4294901760|i:i},l.prototype.readInt16BE=function(e,t){e>>>=0,t||_(e,2,this.length);const i=this[e+1]|this[e]<<8;return 32768&i?4294901760|i:i},l.prototype.readInt32LE=function(e,t){return e>>>=0,t||_(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return e>>>=0,t||_(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readBigInt64LE=Q((function(e){$(e>>>=0,"offset");const t=this[e],i=this[e+7];void 0!==t&&void 0!==i||q(e,this.length-8);const r=this[e+4]+256*this[e+5]+65536*this[e+6]+(i<<24);return(BigInt(r)<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+this[++e]*2**24)})),l.prototype.readBigInt64BE=Q((function(e){$(e>>>=0,"offset");const t=this[e],i=this[e+7];void 0!==t&&void 0!==i||q(e,this.length-8);const r=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(r)<<BigInt(32))+BigInt(this[++e]*2**24+65536*this[++e]+256*this[++e]+i)})),l.prototype.readFloatLE=function(e,t){return e>>>=0,t||_(e,4,this.length),n.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return e>>>=0,t||_(e,4,this.length),n.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return e>>>=0,t||_(e,8,this.length),n.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return e>>>=0,t||_(e,8,this.length),n.read(this,e,!1,52,8)},l.prototype.writeUintLE=l.prototype.writeUIntLE=function(e,t,i,r){e=+e,t>>>=0,i>>>=0,r||M(this,e,t,i,Math.pow(2,8*i)-1,0);let n=1,s=0;for(this[t]=255&e;++s<i&&(n*=256);)this[t+s]=e/n&255;return t+i},l.prototype.writeUintBE=l.prototype.writeUIntBE=function(e,t,i,r){e=+e,t>>>=0,i>>>=0,r||M(this,e,t,i,Math.pow(2,8*i)-1,0);let n=i-1,s=1;for(this[t+n]=255&e;--n>=0&&(s*=256);)this[t+n]=e/s&255;return t+i},l.prototype.writeUint8=l.prototype.writeUInt8=function(e,t,i){return e=+e,t>>>=0,i||M(this,e,t,1,255,0),this[t]=255&e,t+1},l.prototype.writeUint16LE=l.prototype.writeUInt16LE=function(e,t,i){return e=+e,t>>>=0,i||M(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeUint16BE=l.prototype.writeUInt16BE=function(e,t,i){return e=+e,t>>>=0,i||M(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeUint32LE=l.prototype.writeUInt32LE=function(e,t,i){return e=+e,t>>>=0,i||M(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},l.prototype.writeUint32BE=l.prototype.writeUInt32BE=function(e,t,i){return e=+e,t>>>=0,i||M(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeBigUInt64LE=Q((function(e,t=0){return L(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),l.prototype.writeBigUInt64BE=Q((function(e,t=0){return D(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))})),l.prototype.writeIntLE=function(e,t,i,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*i-1);M(this,e,t,i,r-1,-r)}let n=0,s=1,a=0;for(this[t]=255&e;++n<i&&(s*=256);)e<0&&0===a&&0!==this[t+n-1]&&(a=1),this[t+n]=(e/s|0)-a&255;return t+i},l.prototype.writeIntBE=function(e,t,i,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*i-1);M(this,e,t,i,r-1,-r)}let n=i-1,s=1,a=0;for(this[t+n]=255&e;--n>=0&&(s*=256);)e<0&&0===a&&0!==this[t+n+1]&&(a=1),this[t+n]=(e/s|0)-a&255;return t+i},l.prototype.writeInt8=function(e,t,i){return e=+e,t>>>=0,i||M(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,i){return e=+e,t>>>=0,i||M(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeInt16BE=function(e,t,i){return e=+e,t>>>=0,i||M(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeInt32LE=function(e,t,i){return e=+e,t>>>=0,i||M(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},l.prototype.writeInt32BE=function(e,t,i){return e=+e,t>>>=0,i||M(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeBigInt64LE=Q((function(e,t=0){return L(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),l.prototype.writeBigInt64BE=Q((function(e,t=0){return D(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),l.prototype.writeFloatLE=function(e,t,i){return F(this,e,t,!0,i)},l.prototype.writeFloatBE=function(e,t,i){return F(this,e,t,!1,i)},l.prototype.writeDoubleLE=function(e,t,i){return j(this,e,t,!0,i)},l.prototype.writeDoubleBE=function(e,t,i){return j(this,e,t,!1,i)},l.prototype.copy=function(e,t,i,r){if(!l.isBuffer(e))throw new TypeError("argument should be a Buffer");if(i||(i=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<i&&(r=i),r===i)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(i<0||i>=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-i&&(r=e.length-t+i);const n=r-i;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,i,r):Uint8Array.prototype.set.call(e,this.subarray(i,r),t),n},l.prototype.fill=function(e,t,i,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,i=this.length):"string"==typeof i&&(r=i,i=this.length),void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!l.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(1===e.length){const t=e.charCodeAt(0);("utf8"===r&&t<128||"latin1"===r)&&(e=t)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<i)throw new RangeError("Out of range index");if(i<=t)return this;let n;if(t>>>=0,i=void 0===i?this.length:i>>>0,e||(e=0),"number"==typeof e)for(n=t;n<i;++n)this[n]=e;else{const s=l.isBuffer(e)?e:l.from(e,r),a=s.length;if(0===a)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(n=0;n<i-t;++n)this[n+t]=s[n%a]}return this};const R={};function U(e,t,i){R[e]=class extends i{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}function V(e){let t="",i=e.length;const r="-"===e[0]?1:0;for(;i>=r+4;i-=3)t=`_${e.slice(i-3,i)}${t}`;return`${e.slice(0,i)}${t}`}function K(e,t,i,r,n,s){if(e>i||e<t){const r="bigint"==typeof t?"n":"";let n;throw n=s>3?0===t||t===BigInt(0)?`>= 0${r} and < 2${r} ** ${8*(s+1)}${r}`:`>= -(2${r} ** ${8*(s+1)-1}${r}) and < 2 ** ${8*(s+1)-1}${r}`:`>= ${t}${r} and <= ${i}${r}`,new R.ERR_OUT_OF_RANGE("value",n,e)}!function(e,t,i){$(t,"offset"),void 0!==e[t]&&void 0!==e[t+i]||q(t,e.length-(i+1))}(r,n,s)}function $(e,t){if("number"!=typeof e)throw new R.ERR_INVALID_ARG_TYPE(t,"number",e)}function q(e,t,i){if(Math.floor(e)!==e)throw $(e,i),new R.ERR_OUT_OF_RANGE(i||"offset","an integer",e);if(t<0)throw new R.ERR_BUFFER_OUT_OF_BOUNDS;throw new R.ERR_OUT_OF_RANGE(i||"offset",`>= ${i?1:0} and <= ${t}`,e)}U("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?`${e} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),U("ERR_INVALID_ARG_TYPE",(function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`}),TypeError),U("ERR_OUT_OF_RANGE",(function(e,t,i){let r=`The value of "${e}" is out of range.`,n=i;return Number.isInteger(i)&&Math.abs(i)>2**32?n=V(String(i)):"bigint"==typeof i&&(n=String(i),(i>BigInt(2)**BigInt(32)||i<-(BigInt(2)**BigInt(32)))&&(n=V(n)),n+="n"),r+=` It must be ${t}. Received ${n}`,r}),RangeError);const Y=/[^+/0-9A-Za-z-_]/g;function J(e,t){let i;t=t||1/0;const r=e.length;let n=null;const s=[];for(let a=0;a<r;++a){if(i=e.charCodeAt(a),i>55295&&i<57344){if(!n){if(i>56319){(t-=3)>-1&&s.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&s.push(239,191,189);continue}n=i;continue}if(i<56320){(t-=3)>-1&&s.push(239,191,189),n=i;continue}i=65536+(n-55296<<10|i-56320)}else n&&(t-=3)>-1&&s.push(239,191,189);if(n=null,i<128){if((t-=1)<0)break;s.push(i)}else if(i<2048){if((t-=2)<0)break;s.push(i>>6|192,63&i|128)}else if(i<65536){if((t-=3)<0)break;s.push(i>>12|224,i>>6&63|128,63&i|128)}else{if(!(i<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;s.push(i>>18|240,i>>12&63|128,i>>6&63|128,63&i|128)}}return s}function X(e){return r.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(Y,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function W(e,t,i,r){let n;for(n=0;n<r&&!(n+i>=t.length||n>=e.length);++n)t[n+i]=e[n];return n}function z(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function H(e){return e!=e}const G=function(){const e="0123456789abcdef",t=new Array(256);for(let i=0;i<16;++i){const r=16*i;for(let n=0;n<16;++n)t[r+n]=e[i]+e[n]}return t}();function Q(e){return"undefined"==typeof BigInt?Z:e}function Z(){throw new Error("BigInt not supported")}},68044:(e,t,i)=>{var r=i(79696).Buffer,n=i(53896);function s(e,t,i){var s=t.length,a=n(t,e._cache);return e._cache=e._cache.slice(s),e._prev=r.concat([e._prev,i?t:a]),a}t.encrypt=function(e,t,i){for(var n,a=r.allocUnsafe(0);t.length;){if(0===e._cache.length&&(e._cache=e._cipher.encryptBlock(e._prev),e._prev=r.allocUnsafe(0)),!(e._cache.length<=t.length)){a=r.concat([a,s(e,t,i)]);break}n=e._cache.length,a=r.concat([a,s(e,t.slice(0,n),i)]),t=t.slice(n)}return a}},68667:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BlockStatement=function(e){var t;this.tokenChar(123);const i=this.enterDelimited(),r=null==(t=e.directives)?void 0:t.length;if(r){var n;const t=e.body.length?2:1;this.printSequence(e.directives,!0,t),null!=(n=e.directives[r-1].trailingComments)&&n.length||this.newline(t)}this.printSequence(e.body,!0),i(),this.rightBrace(e)},t.Directive=function(e){this.print(e.value),this.semicolon()},t.DirectiveLiteral=function(e){const t=this.getPossibleRaw(e);if(!this.format.minified&&void 0!==t)return void this.token(t);const{value:n}=e;if(r.test(n)){if(i.test(n))throw new Error("Malformed AST: it is not possible to print a directive containing both unescaped single and double quotes.");this.token(`'${n}'`)}else this.token(`"${n}"`)},t.File=function(e){e.program&&this.print(e.program.interpreter),this.print(e.program)},t.InterpreterDirective=function(e){this.token(`#!${e.value}`),this.newline(1,!0)},t.Placeholder=function(e){this.token("%%"),this.print(e.name),this.token("%%"),"Statement"===e.expectedNode&&this.semicolon()},t.Program=function(e){var t;this.noIndentInnerCommentsHere(),this.printInnerComments();const i=null==(t=e.directives)?void 0:t.length;if(i){var r;const t=e.body.length?2:1;this.printSequence(e.directives,void 0,t),null!=(r=e.directives[i-1].trailingComments)&&r.length||this.newline(t)}this.printSequence(e.body)};const i=/(?:^|[^\\])(?:\\\\)*'/,r=/(?:^|[^\\])(?:\\\\)*"/},68740:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,i){if(!n(e))return!1;const s=Array.isArray(t)?t:t.split("."),a=[];let o;for(o=e;n(o);o=null!=(l=o.object)?l:o.meta){var l;a.push(o.property)}if(a.push(o),a.length<s.length)return!1;if(!i&&a.length>s.length)return!1;for(let e=0,t=a.length-1;e<s.length;e++,t--){const i=a[t];let n;if((0,r.isIdentifier)(i))n=i.name;else if((0,r.isStringLiteral)(i))n=i.value;else if((0,r.isThisExpression)(i))n="this";else if((0,r.isSuper)(i))n="super";else{if(!(0,r.isPrivateName)(i))return!1;n="#"+i.id.name}if(s[e]!==n)return!1}return!0};var r=i(63555);function n(e){return(0,r.isMemberExpression)(e)||(0,r.isMetaProperty)(e)}},68830:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=n;var r=i(63555);function n(e,t,i,s){const a=[].concat(e),o=Object.create(null);for(;a.length;){const e=a.shift();if(!e)continue;if(s&&((0,r.isAssignmentExpression)(e)||(0,r.isUnaryExpression)(e)||(0,r.isUpdateExpression)(e)))continue;if((0,r.isIdentifier)(e)){t?(o[e.name]=o[e.name]||[]).push(e):o[e.name]=e;continue}if((0,r.isExportDeclaration)(e)&&!(0,r.isExportAllDeclaration)(e)){(0,r.isDeclaration)(e.declaration)&&a.push(e.declaration);continue}if(i){if((0,r.isFunctionDeclaration)(e)){a.push(e.id);continue}if((0,r.isFunctionExpression)(e))continue}const l=n.keys[e.type];if(l)for(let t=0;t<l.length;t++){const i=e[l[t]];i&&(Array.isArray(i)?a.push(...i):a.push(i))}}return o}n.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"]}},69445:(e,t)=>{t["des-ecb"]={key:8,iv:0},t["des-cbc"]=t.des={key:8,iv:8},t["des-ede3-cbc"]=t.des3={key:24,iv:8},t["des-ede3"]={key:24,iv:0},t["des-ede-cbc"]={key:16,iv:8},t["des-ede"]={key:16,iv:0}},70161:(e,t,i)=>{function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var r in i)({}).hasOwnProperty.call(i,r)&&(e[r]=i[r])}return e},r.apply(null,arguments)}i.d(t,{A:()=>r})},70243:function(e,t,i){!function(e,t){function r(e,t){if(!e)throw new Error(t||"Assertion failed")}function n(e,t){e.super_=t;var i=function(){};i.prototype=t.prototype,e.prototype=new i,e.prototype.constructor=e}function s(e,t,i){if(s.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(i=t,t=10),this._init(e||0,t||10,i||"be"))}var a;"object"==typeof e?e.exports=s:t.BN=s,s.BN=s,s.wordSize=26;try{a="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:i(67787).Buffer}catch(e){}function o(e,t){var i=e.charCodeAt(t);return i>=48&&i<=57?i-48:i>=65&&i<=70?i-55:i>=97&&i<=102?i-87:void r(!1,"Invalid character in "+e)}function l(e,t,i){var r=o(e,i);return i-1>=t&&(r|=o(e,i-1)<<4),r}function p(e,t,i,n){for(var s=0,a=0,o=Math.min(e.length,i),l=t;l<o;l++){var p=e.charCodeAt(l)-48;s*=n,a=p>=49?p-49+10:p>=17?p-17+10:p,r(p>=0&&a<n,"Invalid character"),s+=a}return s}function c(e,t){e.words=t.words,e.length=t.length,e.negative=t.negative,e.red=t.red}if(s.isBN=function(e){return e instanceof s||null!==e&&"object"==typeof e&&e.constructor.wordSize===s.wordSize&&Array.isArray(e.words)},s.max=function(e,t){return e.cmp(t)>0?e:t},s.min=function(e,t){return e.cmp(t)<0?e:t},s.prototype._init=function(e,t,i){if("number"==typeof e)return this._initNumber(e,t,i);if("object"==typeof e)return this._initArray(e,t,i);"hex"===t&&(t=16),r(t===(0|t)&&t>=2&&t<=36);var n=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(n++,this.negative=1),n<e.length&&(16===t?this._parseHex(e,n,i):(this._parseBase(e,t,n),"le"===i&&this._initArray(this.toArray(),t,i)))},s.prototype._initNumber=function(e,t,i){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(r(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===i&&this._initArray(this.toArray(),t,i)},s.prototype._initArray=function(e,t,i){if(r("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var s,a,o=0;if("be"===i)for(n=e.length-1,s=0;n>=0;n-=3)a=e[n]|e[n-1]<<8|e[n-2]<<16,this.words[s]|=a<<o&67108863,this.words[s+1]=a>>>26-o&67108863,(o+=24)>=26&&(o-=26,s++);else if("le"===i)for(n=0,s=0;n<e.length;n+=3)a=e[n]|e[n+1]<<8|e[n+2]<<16,this.words[s]|=a<<o&67108863,this.words[s+1]=a>>>26-o&67108863,(o+=24)>=26&&(o-=26,s++);return this._strip()},s.prototype._parseHex=function(e,t,i){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var n,s=0,a=0;if("be"===i)for(r=e.length-1;r>=t;r-=2)n=l(e,t,r)<<s,this.words[a]|=67108863&n,s>=18?(s-=18,a+=1,this.words[a]|=n>>>26):s+=8;else for(r=(e.length-t)%2==0?t+1:t;r<e.length;r+=2)n=l(e,t,r)<<s,this.words[a]|=67108863&n,s>=18?(s-=18,a+=1,this.words[a]|=n>>>26):s+=8;this._strip()},s.prototype._parseBase=function(e,t,i){this.words=[0],this.length=1;for(var r=0,n=1;n<=67108863;n*=t)r++;r--,n=n/t|0;for(var s=e.length-i,a=s%r,o=Math.min(s,s-a)+i,l=0,c=i;c<o;c+=r)l=p(e,c,c+r,t),this.imuln(n),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l);if(0!==a){var u=1;for(l=p(e,c,e.length,t),c=0;c<a;c++)u*=t;this.imuln(u),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l)}this._strip()},s.prototype.copy=function(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},s.prototype._move=function(e){c(e,this)},s.prototype.clone=function(){var e=new s(null);return this.copy(e),e},s.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},s.prototype._strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},s.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{s.prototype[Symbol.for("nodejs.util.inspect.custom")]=u}catch(e){s.prototype.inspect=u}else s.prototype.inspect=u;function u(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var h=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],d=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],f=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function m(e,t,i){i.negative=t.negative^e.negative;var r=e.length+t.length|0;i.length=r,r=r-1|0;var n=0|e.words[0],s=0|t.words[0],a=n*s,o=67108863&a,l=a/67108864|0;i.words[0]=o;for(var p=1;p<r;p++){for(var c=l>>>26,u=67108863&l,h=Math.min(p,t.length-1),d=Math.max(0,p-e.length+1);d<=h;d++){var f=p-d|0;c+=(a=(n=0|e.words[f])*(s=0|t.words[d])+u)/67108864|0,u=67108863&a}i.words[p]=0|u,l=0|c}return 0!==l?i.words[p]=0|l:i.length--,i._strip()}s.prototype.toString=function(e,t){var i;if(t=0|t||1,16===(e=e||10)||"hex"===e){i="";for(var n=0,s=0,a=0;a<this.length;a++){var o=this.words[a],l=(16777215&(o<<n|s)).toString(16);s=o>>>24-n&16777215,(n+=2)>=26&&(n-=26,a--),i=0!==s||a!==this.length-1?h[6-l.length]+l+i:l+i}for(0!==s&&(i=s.toString(16)+i);i.length%t!=0;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}if(e===(0|e)&&e>=2&&e<=36){var p=d[e],c=f[e];i="";var u=this.clone();for(u.negative=0;!u.isZero();){var m=u.modrn(c).toString(e);i=(u=u.idivn(c)).isZero()?m+i:h[p-m.length]+m+i}for(this.isZero()&&(i="0"+i);i.length%t!=0;)i="0"+i;return 0!==this.negative&&(i="-"+i),i}r(!1,"Base should be between 2 and 36")},s.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},s.prototype.toJSON=function(){return this.toString(16,2)},a&&(s.prototype.toBuffer=function(e,t){return this.toArrayLike(a,e,t)}),s.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},s.prototype.toArrayLike=function(e,t,i){this._strip();var n=this.byteLength(),s=i||Math.max(1,n);r(n<=s,"byte array longer than desired length"),r(s>0,"Requested array length <= 0");var a=function(e,t){return e.allocUnsafe?e.allocUnsafe(t):new e(t)}(e,s);return this["_toArrayLike"+("le"===t?"LE":"BE")](a,n),a},s.prototype._toArrayLikeLE=function(e,t){for(var i=0,r=0,n=0,s=0;n<this.length;n++){var a=this.words[n]<<s|r;e[i++]=255&a,i<e.length&&(e[i++]=a>>8&255),i<e.length&&(e[i++]=a>>16&255),6===s?(i<e.length&&(e[i++]=a>>24&255),r=0,s=0):(r=a>>>24,s+=2)}if(i<e.length)for(e[i++]=r;i<e.length;)e[i++]=0},s.prototype._toArrayLikeBE=function(e,t){for(var i=e.length-1,r=0,n=0,s=0;n<this.length;n++){var a=this.words[n]<<s|r;e[i--]=255&a,i>=0&&(e[i--]=a>>8&255),i>=0&&(e[i--]=a>>16&255),6===s?(i>=0&&(e[i--]=a>>24&255),r=0,s=0):(r=a>>>24,s+=2)}if(i>=0)for(e[i--]=r;i>=0;)e[i--]=0},Math.clz32?s.prototype._countBits=function(e){return 32-Math.clz32(e)}:s.prototype._countBits=function(e){var t=e,i=0;return t>=4096&&(i+=13,t>>>=13),t>=64&&(i+=7,t>>>=7),t>=8&&(i+=4,t>>>=4),t>=2&&(i+=2,t>>>=2),i+t},s.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,i=0;return 8191&t||(i+=13,t>>>=13),127&t||(i+=7,t>>>=7),15&t||(i+=4,t>>>=4),3&t||(i+=2,t>>>=2),1&t||i++,i},s.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var i=this._zeroBits(this.words[t]);if(e+=i,26!==i)break}return e},s.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},s.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},s.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},s.prototype.isNeg=function(){return 0!==this.negative},s.prototype.neg=function(){return this.clone().ineg()},s.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},s.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this._strip()},s.prototype.ior=function(e){return r(!(this.negative|e.negative)),this.iuor(e)},s.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},s.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},s.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var i=0;i<t.length;i++)this.words[i]=this.words[i]&e.words[i];return this.length=t.length,this._strip()},s.prototype.iand=function(e){return r(!(this.negative|e.negative)),this.iuand(e)},s.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},s.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},s.prototype.iuxor=function(e){var t,i;this.length>e.length?(t=this,i=e):(t=e,i=this);for(var r=0;r<i.length;r++)this.words[r]=t.words[r]^i.words[r];if(this!==t)for(;r<t.length;r++)this.words[r]=t.words[r];return this.length=t.length,this._strip()},s.prototype.ixor=function(e){return r(!(this.negative|e.negative)),this.iuxor(e)},s.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},s.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},s.prototype.inotn=function(e){r("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),i=e%26;this._expand(t),i>0&&t--;for(var n=0;n<t;n++)this.words[n]=67108863&~this.words[n];return i>0&&(this.words[n]=~this.words[n]&67108863>>26-i),this._strip()},s.prototype.notn=function(e){return this.clone().inotn(e)},s.prototype.setn=function(e,t){r("number"==typeof e&&e>=0);var i=e/26|0,n=e%26;return this._expand(i+1),this.words[i]=t?this.words[i]|1<<n:this.words[i]&~(1<<n),this._strip()},s.prototype.iadd=function(e){var t,i,r;if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(i=this,r=e):(i=e,r=this);for(var n=0,s=0;s<r.length;s++)t=(0|i.words[s])+(0|r.words[s])+n,this.words[s]=67108863&t,n=t>>>26;for(;0!==n&&s<i.length;s++)t=(0|i.words[s])+n,this.words[s]=67108863&t,n=t>>>26;if(this.length=i.length,0!==n)this.words[this.length]=n,this.length++;else if(i!==this)for(;s<i.length;s++)this.words[s]=i.words[s];return this},s.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},s.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var i,r,n=this.cmp(e);if(0===n)return this.negative=0,this.length=1,this.words[0]=0,this;n>0?(i=this,r=e):(i=e,r=this);for(var s=0,a=0;a<r.length;a++)s=(t=(0|i.words[a])-(0|r.words[a])+s)>>26,this.words[a]=67108863&t;for(;0!==s&&a<i.length;a++)s=(t=(0|i.words[a])+s)>>26,this.words[a]=67108863&t;if(0===s&&a<i.length&&i!==this)for(;a<i.length;a++)this.words[a]=i.words[a];return this.length=Math.max(this.length,a),i!==this&&(this.negative=1),this._strip()},s.prototype.sub=function(e){return this.clone().isub(e)};var y=function(e,t,i){var r,n,s,a=e.words,o=t.words,l=i.words,p=0,c=0|a[0],u=8191&c,h=c>>>13,d=0|a[1],f=8191&d,m=d>>>13,y=0|a[2],T=8191&y,g=y>>>13,b=0|a[3],S=8191&b,x=b>>>13,E=0|a[4],v=8191&E,P=E>>>13,w=0|a[5],A=8191&w,I=w>>>13,C=0|a[6],N=8191&C,O=C>>>13,k=0|a[7],_=8191&k,M=k>>>13,L=0|a[8],D=8191&L,B=L>>>13,F=0|a[9],j=8191&F,R=F>>>13,U=0|o[0],V=8191&U,K=U>>>13,$=0|o[1],q=8191&$,Y=$>>>13,J=0|o[2],X=8191&J,W=J>>>13,z=0|o[3],H=8191&z,G=z>>>13,Q=0|o[4],Z=8191&Q,ee=Q>>>13,te=0|o[5],ie=8191&te,re=te>>>13,ne=0|o[6],se=8191&ne,ae=ne>>>13,oe=0|o[7],le=8191&oe,pe=oe>>>13,ce=0|o[8],ue=8191&ce,he=ce>>>13,de=0|o[9],fe=8191&de,me=de>>>13;i.negative=e.negative^t.negative,i.length=19;var ye=(p+(r=Math.imul(u,V))|0)+((8191&(n=(n=Math.imul(u,K))+Math.imul(h,V)|0))<<13)|0;p=((s=Math.imul(h,K))+(n>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(f,V),n=(n=Math.imul(f,K))+Math.imul(m,V)|0,s=Math.imul(m,K);var Te=(p+(r=r+Math.imul(u,q)|0)|0)+((8191&(n=(n=n+Math.imul(u,Y)|0)+Math.imul(h,q)|0))<<13)|0;p=((s=s+Math.imul(h,Y)|0)+(n>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(T,V),n=(n=Math.imul(T,K))+Math.imul(g,V)|0,s=Math.imul(g,K),r=r+Math.imul(f,q)|0,n=(n=n+Math.imul(f,Y)|0)+Math.imul(m,q)|0,s=s+Math.imul(m,Y)|0;var ge=(p+(r=r+Math.imul(u,X)|0)|0)+((8191&(n=(n=n+Math.imul(u,W)|0)+Math.imul(h,X)|0))<<13)|0;p=((s=s+Math.imul(h,W)|0)+(n>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(S,V),n=(n=Math.imul(S,K))+Math.imul(x,V)|0,s=Math.imul(x,K),r=r+Math.imul(T,q)|0,n=(n=n+Math.imul(T,Y)|0)+Math.imul(g,q)|0,s=s+Math.imul(g,Y)|0,r=r+Math.imul(f,X)|0,n=(n=n+Math.imul(f,W)|0)+Math.imul(m,X)|0,s=s+Math.imul(m,W)|0;var be=(p+(r=r+Math.imul(u,H)|0)|0)+((8191&(n=(n=n+Math.imul(u,G)|0)+Math.imul(h,H)|0))<<13)|0;p=((s=s+Math.imul(h,G)|0)+(n>>>13)|0)+(be>>>26)|0,be&=67108863,r=Math.imul(v,V),n=(n=Math.imul(v,K))+Math.imul(P,V)|0,s=Math.imul(P,K),r=r+Math.imul(S,q)|0,n=(n=n+Math.imul(S,Y)|0)+Math.imul(x,q)|0,s=s+Math.imul(x,Y)|0,r=r+Math.imul(T,X)|0,n=(n=n+Math.imul(T,W)|0)+Math.imul(g,X)|0,s=s+Math.imul(g,W)|0,r=r+Math.imul(f,H)|0,n=(n=n+Math.imul(f,G)|0)+Math.imul(m,H)|0,s=s+Math.imul(m,G)|0;var Se=(p+(r=r+Math.imul(u,Z)|0)|0)+((8191&(n=(n=n+Math.imul(u,ee)|0)+Math.imul(h,Z)|0))<<13)|0;p=((s=s+Math.imul(h,ee)|0)+(n>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(A,V),n=(n=Math.imul(A,K))+Math.imul(I,V)|0,s=Math.imul(I,K),r=r+Math.imul(v,q)|0,n=(n=n+Math.imul(v,Y)|0)+Math.imul(P,q)|0,s=s+Math.imul(P,Y)|0,r=r+Math.imul(S,X)|0,n=(n=n+Math.imul(S,W)|0)+Math.imul(x,X)|0,s=s+Math.imul(x,W)|0,r=r+Math.imul(T,H)|0,n=(n=n+Math.imul(T,G)|0)+Math.imul(g,H)|0,s=s+Math.imul(g,G)|0,r=r+Math.imul(f,Z)|0,n=(n=n+Math.imul(f,ee)|0)+Math.imul(m,Z)|0,s=s+Math.imul(m,ee)|0;var xe=(p+(r=r+Math.imul(u,ie)|0)|0)+((8191&(n=(n=n+Math.imul(u,re)|0)+Math.imul(h,ie)|0))<<13)|0;p=((s=s+Math.imul(h,re)|0)+(n>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(N,V),n=(n=Math.imul(N,K))+Math.imul(O,V)|0,s=Math.imul(O,K),r=r+Math.imul(A,q)|0,n=(n=n+Math.imul(A,Y)|0)+Math.imul(I,q)|0,s=s+Math.imul(I,Y)|0,r=r+Math.imul(v,X)|0,n=(n=n+Math.imul(v,W)|0)+Math.imul(P,X)|0,s=s+Math.imul(P,W)|0,r=r+Math.imul(S,H)|0,n=(n=n+Math.imul(S,G)|0)+Math.imul(x,H)|0,s=s+Math.imul(x,G)|0,r=r+Math.imul(T,Z)|0,n=(n=n+Math.imul(T,ee)|0)+Math.imul(g,Z)|0,s=s+Math.imul(g,ee)|0,r=r+Math.imul(f,ie)|0,n=(n=n+Math.imul(f,re)|0)+Math.imul(m,ie)|0,s=s+Math.imul(m,re)|0;var Ee=(p+(r=r+Math.imul(u,se)|0)|0)+((8191&(n=(n=n+Math.imul(u,ae)|0)+Math.imul(h,se)|0))<<13)|0;p=((s=s+Math.imul(h,ae)|0)+(n>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(_,V),n=(n=Math.imul(_,K))+Math.imul(M,V)|0,s=Math.imul(M,K),r=r+Math.imul(N,q)|0,n=(n=n+Math.imul(N,Y)|0)+Math.imul(O,q)|0,s=s+Math.imul(O,Y)|0,r=r+Math.imul(A,X)|0,n=(n=n+Math.imul(A,W)|0)+Math.imul(I,X)|0,s=s+Math.imul(I,W)|0,r=r+Math.imul(v,H)|0,n=(n=n+Math.imul(v,G)|0)+Math.imul(P,H)|0,s=s+Math.imul(P,G)|0,r=r+Math.imul(S,Z)|0,n=(n=n+Math.imul(S,ee)|0)+Math.imul(x,Z)|0,s=s+Math.imul(x,ee)|0,r=r+Math.imul(T,ie)|0,n=(n=n+Math.imul(T,re)|0)+Math.imul(g,ie)|0,s=s+Math.imul(g,re)|0,r=r+Math.imul(f,se)|0,n=(n=n+Math.imul(f,ae)|0)+Math.imul(m,se)|0,s=s+Math.imul(m,ae)|0;var ve=(p+(r=r+Math.imul(u,le)|0)|0)+((8191&(n=(n=n+Math.imul(u,pe)|0)+Math.imul(h,le)|0))<<13)|0;p=((s=s+Math.imul(h,pe)|0)+(n>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(D,V),n=(n=Math.imul(D,K))+Math.imul(B,V)|0,s=Math.imul(B,K),r=r+Math.imul(_,q)|0,n=(n=n+Math.imul(_,Y)|0)+Math.imul(M,q)|0,s=s+Math.imul(M,Y)|0,r=r+Math.imul(N,X)|0,n=(n=n+Math.imul(N,W)|0)+Math.imul(O,X)|0,s=s+Math.imul(O,W)|0,r=r+Math.imul(A,H)|0,n=(n=n+Math.imul(A,G)|0)+Math.imul(I,H)|0,s=s+Math.imul(I,G)|0,r=r+Math.imul(v,Z)|0,n=(n=n+Math.imul(v,ee)|0)+Math.imul(P,Z)|0,s=s+Math.imul(P,ee)|0,r=r+Math.imul(S,ie)|0,n=(n=n+Math.imul(S,re)|0)+Math.imul(x,ie)|0,s=s+Math.imul(x,re)|0,r=r+Math.imul(T,se)|0,n=(n=n+Math.imul(T,ae)|0)+Math.imul(g,se)|0,s=s+Math.imul(g,ae)|0,r=r+Math.imul(f,le)|0,n=(n=n+Math.imul(f,pe)|0)+Math.imul(m,le)|0,s=s+Math.imul(m,pe)|0;var Pe=(p+(r=r+Math.imul(u,ue)|0)|0)+((8191&(n=(n=n+Math.imul(u,he)|0)+Math.imul(h,ue)|0))<<13)|0;p=((s=s+Math.imul(h,he)|0)+(n>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,r=Math.imul(j,V),n=(n=Math.imul(j,K))+Math.imul(R,V)|0,s=Math.imul(R,K),r=r+Math.imul(D,q)|0,n=(n=n+Math.imul(D,Y)|0)+Math.imul(B,q)|0,s=s+Math.imul(B,Y)|0,r=r+Math.imul(_,X)|0,n=(n=n+Math.imul(_,W)|0)+Math.imul(M,X)|0,s=s+Math.imul(M,W)|0,r=r+Math.imul(N,H)|0,n=(n=n+Math.imul(N,G)|0)+Math.imul(O,H)|0,s=s+Math.imul(O,G)|0,r=r+Math.imul(A,Z)|0,n=(n=n+Math.imul(A,ee)|0)+Math.imul(I,Z)|0,s=s+Math.imul(I,ee)|0,r=r+Math.imul(v,ie)|0,n=(n=n+Math.imul(v,re)|0)+Math.imul(P,ie)|0,s=s+Math.imul(P,re)|0,r=r+Math.imul(S,se)|0,n=(n=n+Math.imul(S,ae)|0)+Math.imul(x,se)|0,s=s+Math.imul(x,ae)|0,r=r+Math.imul(T,le)|0,n=(n=n+Math.imul(T,pe)|0)+Math.imul(g,le)|0,s=s+Math.imul(g,pe)|0,r=r+Math.imul(f,ue)|0,n=(n=n+Math.imul(f,he)|0)+Math.imul(m,ue)|0,s=s+Math.imul(m,he)|0;var we=(p+(r=r+Math.imul(u,fe)|0)|0)+((8191&(n=(n=n+Math.imul(u,me)|0)+Math.imul(h,fe)|0))<<13)|0;p=((s=s+Math.imul(h,me)|0)+(n>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(j,q),n=(n=Math.imul(j,Y))+Math.imul(R,q)|0,s=Math.imul(R,Y),r=r+Math.imul(D,X)|0,n=(n=n+Math.imul(D,W)|0)+Math.imul(B,X)|0,s=s+Math.imul(B,W)|0,r=r+Math.imul(_,H)|0,n=(n=n+Math.imul(_,G)|0)+Math.imul(M,H)|0,s=s+Math.imul(M,G)|0,r=r+Math.imul(N,Z)|0,n=(n=n+Math.imul(N,ee)|0)+Math.imul(O,Z)|0,s=s+Math.imul(O,ee)|0,r=r+Math.imul(A,ie)|0,n=(n=n+Math.imul(A,re)|0)+Math.imul(I,ie)|0,s=s+Math.imul(I,re)|0,r=r+Math.imul(v,se)|0,n=(n=n+Math.imul(v,ae)|0)+Math.imul(P,se)|0,s=s+Math.imul(P,ae)|0,r=r+Math.imul(S,le)|0,n=(n=n+Math.imul(S,pe)|0)+Math.imul(x,le)|0,s=s+Math.imul(x,pe)|0,r=r+Math.imul(T,ue)|0,n=(n=n+Math.imul(T,he)|0)+Math.imul(g,ue)|0,s=s+Math.imul(g,he)|0;var Ae=(p+(r=r+Math.imul(f,fe)|0)|0)+((8191&(n=(n=n+Math.imul(f,me)|0)+Math.imul(m,fe)|0))<<13)|0;p=((s=s+Math.imul(m,me)|0)+(n>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(j,X),n=(n=Math.imul(j,W))+Math.imul(R,X)|0,s=Math.imul(R,W),r=r+Math.imul(D,H)|0,n=(n=n+Math.imul(D,G)|0)+Math.imul(B,H)|0,s=s+Math.imul(B,G)|0,r=r+Math.imul(_,Z)|0,n=(n=n+Math.imul(_,ee)|0)+Math.imul(M,Z)|0,s=s+Math.imul(M,ee)|0,r=r+Math.imul(N,ie)|0,n=(n=n+Math.imul(N,re)|0)+Math.imul(O,ie)|0,s=s+Math.imul(O,re)|0,r=r+Math.imul(A,se)|0,n=(n=n+Math.imul(A,ae)|0)+Math.imul(I,se)|0,s=s+Math.imul(I,ae)|0,r=r+Math.imul(v,le)|0,n=(n=n+Math.imul(v,pe)|0)+Math.imul(P,le)|0,s=s+Math.imul(P,pe)|0,r=r+Math.imul(S,ue)|0,n=(n=n+Math.imul(S,he)|0)+Math.imul(x,ue)|0,s=s+Math.imul(x,he)|0;var Ie=(p+(r=r+Math.imul(T,fe)|0)|0)+((8191&(n=(n=n+Math.imul(T,me)|0)+Math.imul(g,fe)|0))<<13)|0;p=((s=s+Math.imul(g,me)|0)+(n>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,r=Math.imul(j,H),n=(n=Math.imul(j,G))+Math.imul(R,H)|0,s=Math.imul(R,G),r=r+Math.imul(D,Z)|0,n=(n=n+Math.imul(D,ee)|0)+Math.imul(B,Z)|0,s=s+Math.imul(B,ee)|0,r=r+Math.imul(_,ie)|0,n=(n=n+Math.imul(_,re)|0)+Math.imul(M,ie)|0,s=s+Math.imul(M,re)|0,r=r+Math.imul(N,se)|0,n=(n=n+Math.imul(N,ae)|0)+Math.imul(O,se)|0,s=s+Math.imul(O,ae)|0,r=r+Math.imul(A,le)|0,n=(n=n+Math.imul(A,pe)|0)+Math.imul(I,le)|0,s=s+Math.imul(I,pe)|0,r=r+Math.imul(v,ue)|0,n=(n=n+Math.imul(v,he)|0)+Math.imul(P,ue)|0,s=s+Math.imul(P,he)|0;var Ce=(p+(r=r+Math.imul(S,fe)|0)|0)+((8191&(n=(n=n+Math.imul(S,me)|0)+Math.imul(x,fe)|0))<<13)|0;p=((s=s+Math.imul(x,me)|0)+(n>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(j,Z),n=(n=Math.imul(j,ee))+Math.imul(R,Z)|0,s=Math.imul(R,ee),r=r+Math.imul(D,ie)|0,n=(n=n+Math.imul(D,re)|0)+Math.imul(B,ie)|0,s=s+Math.imul(B,re)|0,r=r+Math.imul(_,se)|0,n=(n=n+Math.imul(_,ae)|0)+Math.imul(M,se)|0,s=s+Math.imul(M,ae)|0,r=r+Math.imul(N,le)|0,n=(n=n+Math.imul(N,pe)|0)+Math.imul(O,le)|0,s=s+Math.imul(O,pe)|0,r=r+Math.imul(A,ue)|0,n=(n=n+Math.imul(A,he)|0)+Math.imul(I,ue)|0,s=s+Math.imul(I,he)|0;var Ne=(p+(r=r+Math.imul(v,fe)|0)|0)+((8191&(n=(n=n+Math.imul(v,me)|0)+Math.imul(P,fe)|0))<<13)|0;p=((s=s+Math.imul(P,me)|0)+(n>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,r=Math.imul(j,ie),n=(n=Math.imul(j,re))+Math.imul(R,ie)|0,s=Math.imul(R,re),r=r+Math.imul(D,se)|0,n=(n=n+Math.imul(D,ae)|0)+Math.imul(B,se)|0,s=s+Math.imul(B,ae)|0,r=r+Math.imul(_,le)|0,n=(n=n+Math.imul(_,pe)|0)+Math.imul(M,le)|0,s=s+Math.imul(M,pe)|0,r=r+Math.imul(N,ue)|0,n=(n=n+Math.imul(N,he)|0)+Math.imul(O,ue)|0,s=s+Math.imul(O,he)|0;var Oe=(p+(r=r+Math.imul(A,fe)|0)|0)+((8191&(n=(n=n+Math.imul(A,me)|0)+Math.imul(I,fe)|0))<<13)|0;p=((s=s+Math.imul(I,me)|0)+(n>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,r=Math.imul(j,se),n=(n=Math.imul(j,ae))+Math.imul(R,se)|0,s=Math.imul(R,ae),r=r+Math.imul(D,le)|0,n=(n=n+Math.imul(D,pe)|0)+Math.imul(B,le)|0,s=s+Math.imul(B,pe)|0,r=r+Math.imul(_,ue)|0,n=(n=n+Math.imul(_,he)|0)+Math.imul(M,ue)|0,s=s+Math.imul(M,he)|0;var ke=(p+(r=r+Math.imul(N,fe)|0)|0)+((8191&(n=(n=n+Math.imul(N,me)|0)+Math.imul(O,fe)|0))<<13)|0;p=((s=s+Math.imul(O,me)|0)+(n>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(j,le),n=(n=Math.imul(j,pe))+Math.imul(R,le)|0,s=Math.imul(R,pe),r=r+Math.imul(D,ue)|0,n=(n=n+Math.imul(D,he)|0)+Math.imul(B,ue)|0,s=s+Math.imul(B,he)|0;var _e=(p+(r=r+Math.imul(_,fe)|0)|0)+((8191&(n=(n=n+Math.imul(_,me)|0)+Math.imul(M,fe)|0))<<13)|0;p=((s=s+Math.imul(M,me)|0)+(n>>>13)|0)+(_e>>>26)|0,_e&=67108863,r=Math.imul(j,ue),n=(n=Math.imul(j,he))+Math.imul(R,ue)|0,s=Math.imul(R,he);var Me=(p+(r=r+Math.imul(D,fe)|0)|0)+((8191&(n=(n=n+Math.imul(D,me)|0)+Math.imul(B,fe)|0))<<13)|0;p=((s=s+Math.imul(B,me)|0)+(n>>>13)|0)+(Me>>>26)|0,Me&=67108863;var Le=(p+(r=Math.imul(j,fe))|0)+((8191&(n=(n=Math.imul(j,me))+Math.imul(R,fe)|0))<<13)|0;return p=((s=Math.imul(R,me))+(n>>>13)|0)+(Le>>>26)|0,Le&=67108863,l[0]=ye,l[1]=Te,l[2]=ge,l[3]=be,l[4]=Se,l[5]=xe,l[6]=Ee,l[7]=ve,l[8]=Pe,l[9]=we,l[10]=Ae,l[11]=Ie,l[12]=Ce,l[13]=Ne,l[14]=Oe,l[15]=ke,l[16]=_e,l[17]=Me,l[18]=Le,0!==p&&(l[19]=p,i.length++),i};function T(e,t,i){i.negative=t.negative^e.negative,i.length=e.length+t.length;for(var r=0,n=0,s=0;s<i.length-1;s++){var a=n;n=0;for(var o=67108863&r,l=Math.min(s,t.length-1),p=Math.max(0,s-e.length+1);p<=l;p++){var c=s-p,u=(0|e.words[c])*(0|t.words[p]),h=67108863&u;o=67108863&(h=h+o|0),n+=(a=(a=a+(u/67108864|0)|0)+(h>>>26)|0)>>>26,a&=67108863}i.words[s]=o,r=a,a=n}return 0!==r?i.words[s]=r:i.length--,i._strip()}function g(e,t,i){return T(e,t,i)}function b(e,t){this.x=e,this.y=t}Math.imul||(y=m),s.prototype.mulTo=function(e,t){var i=this.length+e.length;return 10===this.length&&10===e.length?y(this,e,t):i<63?m(this,e,t):i<1024?T(this,e,t):g(this,e,t)},b.prototype.makeRBT=function(e){for(var t=new Array(e),i=s.prototype._countBits(e)-1,r=0;r<e;r++)t[r]=this.revBin(r,i,e);return t},b.prototype.revBin=function(e,t,i){if(0===e||e===i-1)return e;for(var r=0,n=0;n<t;n++)r|=(1&e)<<t-n-1,e>>=1;return r},b.prototype.permute=function(e,t,i,r,n,s){for(var a=0;a<s;a++)r[a]=t[e[a]],n[a]=i[e[a]]},b.prototype.transform=function(e,t,i,r,n,s){this.permute(s,e,t,i,r,n);for(var a=1;a<n;a<<=1)for(var o=a<<1,l=Math.cos(2*Math.PI/o),p=Math.sin(2*Math.PI/o),c=0;c<n;c+=o)for(var u=l,h=p,d=0;d<a;d++){var f=i[c+d],m=r[c+d],y=i[c+d+a],T=r[c+d+a],g=u*y-h*T;T=u*T+h*y,y=g,i[c+d]=f+y,r[c+d]=m+T,i[c+d+a]=f-y,r[c+d+a]=m-T,d!==o&&(g=l*u-p*h,h=l*h+p*u,u=g)}},b.prototype.guessLen13b=function(e,t){var i=1|Math.max(t,e),r=1&i,n=0;for(i=i/2|0;i;i>>>=1)n++;return 1<<n+1+r},b.prototype.conjugate=function(e,t,i){if(!(i<=1))for(var r=0;r<i/2;r++){var n=e[r];e[r]=e[i-r-1],e[i-r-1]=n,n=t[r],t[r]=-t[i-r-1],t[i-r-1]=-n}},b.prototype.normalize13b=function(e,t){for(var i=0,r=0;r<t/2;r++){var n=8192*Math.round(e[2*r+1]/t)+Math.round(e[2*r]/t)+i;e[r]=67108863&n,i=n<67108864?0:n/67108864|0}return e},b.prototype.convert13b=function(e,t,i,n){for(var s=0,a=0;a<t;a++)s+=0|e[a],i[2*a]=8191&s,s>>>=13,i[2*a+1]=8191&s,s>>>=13;for(a=2*t;a<n;++a)i[a]=0;r(0===s),r(!(-8192&s))},b.prototype.stub=function(e){for(var t=new Array(e),i=0;i<e;i++)t[i]=0;return t},b.prototype.mulp=function(e,t,i){var r=2*this.guessLen13b(e.length,t.length),n=this.makeRBT(r),s=this.stub(r),a=new Array(r),o=new Array(r),l=new Array(r),p=new Array(r),c=new Array(r),u=new Array(r),h=i.words;h.length=r,this.convert13b(e.words,e.length,a,r),this.convert13b(t.words,t.length,p,r),this.transform(a,s,o,l,r,n),this.transform(p,s,c,u,r,n);for(var d=0;d<r;d++){var f=o[d]*c[d]-l[d]*u[d];l[d]=o[d]*u[d]+l[d]*c[d],o[d]=f}return this.conjugate(o,l,r),this.transform(o,l,h,s,r,n),this.conjugate(h,s,r),this.normalize13b(h,r),i.negative=e.negative^t.negative,i.length=e.length+t.length,i._strip()},s.prototype.mul=function(e){var t=new s(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},s.prototype.mulf=function(e){var t=new s(null);return t.words=new Array(this.length+e.length),g(this,e,t)},s.prototype.imul=function(e){return this.clone().mulTo(e,this)},s.prototype.imuln=function(e){var t=e<0;t&&(e=-e),r("number"==typeof e),r(e<67108864);for(var i=0,n=0;n<this.length;n++){var s=(0|this.words[n])*e,a=(67108863&s)+(67108863&i);i>>=26,i+=s/67108864|0,i+=a>>>26,this.words[n]=67108863&a}return 0!==i&&(this.words[n]=i,this.length++),t?this.ineg():this},s.prototype.muln=function(e){return this.clone().imuln(e)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),i=0;i<t.length;i++){var r=i/26|0,n=i%26;t[i]=e.words[r]>>>n&1}return t}(e);if(0===t.length)return new s(1);for(var i=this,r=0;r<t.length&&0===t[r];r++,i=i.sqr());if(++r<t.length)for(var n=i.sqr();r<t.length;r++,n=n.sqr())0!==t[r]&&(i=i.mul(n));return i},s.prototype.iushln=function(e){r("number"==typeof e&&e>=0);var t,i=e%26,n=(e-i)/26,s=67108863>>>26-i<<26-i;if(0!==i){var a=0;for(t=0;t<this.length;t++){var o=this.words[t]&s,l=(0|this.words[t])-o<<i;this.words[t]=l|a,a=o>>>26-i}a&&(this.words[t]=a,this.length++)}if(0!==n){for(t=this.length-1;t>=0;t--)this.words[t+n]=this.words[t];for(t=0;t<n;t++)this.words[t]=0;this.length+=n}return this._strip()},s.prototype.ishln=function(e){return r(0===this.negative),this.iushln(e)},s.prototype.iushrn=function(e,t,i){var n;r("number"==typeof e&&e>=0),n=t?(t-t%26)/26:0;var s=e%26,a=Math.min((e-s)/26,this.length),o=67108863^67108863>>>s<<s,l=i;if(n-=a,n=Math.max(0,n),l){for(var p=0;p<a;p++)l.words[p]=this.words[p];l.length=a}if(0===a);else if(this.length>a)for(this.length-=a,p=0;p<this.length;p++)this.words[p]=this.words[p+a];else this.words[0]=0,this.length=1;var c=0;for(p=this.length-1;p>=0&&(0!==c||p>=n);p--){var u=0|this.words[p];this.words[p]=c<<26-s|u>>>s,c=u&o}return l&&0!==c&&(l.words[l.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},s.prototype.ishrn=function(e,t,i){return r(0===this.negative),this.iushrn(e,t,i)},s.prototype.shln=function(e){return this.clone().ishln(e)},s.prototype.ushln=function(e){return this.clone().iushln(e)},s.prototype.shrn=function(e){return this.clone().ishrn(e)},s.prototype.ushrn=function(e){return this.clone().iushrn(e)},s.prototype.testn=function(e){r("number"==typeof e&&e>=0);var t=e%26,i=(e-t)/26,n=1<<t;return!(this.length<=i||!(this.words[i]&n))},s.prototype.imaskn=function(e){r("number"==typeof e&&e>=0);var t=e%26,i=(e-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=i)return this;if(0!==t&&i++,this.length=Math.min(i,this.length),0!==t){var n=67108863^67108863>>>t<<t;this.words[this.length-1]&=n}return this._strip()},s.prototype.maskn=function(e){return this.clone().imaskn(e)},s.prototype.iaddn=function(e){return r("number"==typeof e),r(e<67108864),e<0?this.isubn(-e):0!==this.negative?1===this.length&&(0|this.words[0])<=e?(this.words[0]=e-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},s.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},s.prototype.isubn=function(e){if(r("number"==typeof e),r(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this._strip()},s.prototype.addn=function(e){return this.clone().iaddn(e)},s.prototype.subn=function(e){return this.clone().isubn(e)},s.prototype.iabs=function(){return this.negative=0,this},s.prototype.abs=function(){return this.clone().iabs()},s.prototype._ishlnsubmul=function(e,t,i){var n,s,a=e.length+i;this._expand(a);var o=0;for(n=0;n<e.length;n++){s=(0|this.words[n+i])+o;var l=(0|e.words[n])*t;o=((s-=67108863&l)>>26)-(l/67108864|0),this.words[n+i]=67108863&s}for(;n<this.length-i;n++)o=(s=(0|this.words[n+i])+o)>>26,this.words[n+i]=67108863&s;if(0===o)return this._strip();for(r(-1===o),o=0,n=0;n<this.length;n++)o=(s=-(0|this.words[n])+o)>>26,this.words[n]=67108863&s;return this.negative=1,this._strip()},s.prototype._wordDiv=function(e,t){var i=(this.length,e.length),r=this.clone(),n=e,a=0|n.words[n.length-1];0!=(i=26-this._countBits(a))&&(n=n.ushln(i),r.iushln(i),a=0|n.words[n.length-1]);var o,l=r.length-n.length;if("mod"!==t){(o=new s(null)).length=l+1,o.words=new Array(o.length);for(var p=0;p<o.length;p++)o.words[p]=0}var c=r.clone()._ishlnsubmul(n,1,l);0===c.negative&&(r=c,o&&(o.words[l]=1));for(var u=l-1;u>=0;u--){var h=67108864*(0|r.words[n.length+u])+(0|r.words[n.length+u-1]);for(h=Math.min(h/a|0,67108863),r._ishlnsubmul(n,h,u);0!==r.negative;)h--,r.negative=0,r._ishlnsubmul(n,1,u),r.isZero()||(r.negative^=1);o&&(o.words[u]=h)}return o&&o._strip(),r._strip(),"div"!==t&&0!==i&&r.iushrn(i),{div:o||null,mod:r}},s.prototype.divmod=function(e,t,i){return r(!e.isZero()),this.isZero()?{div:new s(0),mod:new s(0)}:0!==this.negative&&0===e.negative?(o=this.neg().divmod(e,t),"mod"!==t&&(n=o.div.neg()),"div"!==t&&(a=o.mod.neg(),i&&0!==a.negative&&a.iadd(e)),{div:n,mod:a}):0===this.negative&&0!==e.negative?(o=this.divmod(e.neg(),t),"mod"!==t&&(n=o.div.neg()),{div:n,mod:o.mod}):this.negative&e.negative?(o=this.neg().divmod(e.neg(),t),"div"!==t&&(a=o.mod.neg(),i&&0!==a.negative&&a.isub(e)),{div:o.div,mod:a}):e.length>this.length||this.cmp(e)<0?{div:new s(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new s(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new s(this.modrn(e.words[0]))}:this._wordDiv(e,t);var n,a,o},s.prototype.div=function(e){return this.divmod(e,"div",!1).div},s.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},s.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},s.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var i=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),n=e.andln(1),s=i.cmp(r);return s<0||1===n&&0===s?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},s.prototype.modrn=function(e){var t=e<0;t&&(e=-e),r(e<=67108863);for(var i=(1<<26)%e,n=0,s=this.length-1;s>=0;s--)n=(i*n+(0|this.words[s]))%e;return t?-n:n},s.prototype.modn=function(e){return this.modrn(e)},s.prototype.idivn=function(e){var t=e<0;t&&(e=-e),r(e<=67108863);for(var i=0,n=this.length-1;n>=0;n--){var s=(0|this.words[n])+67108864*i;this.words[n]=s/e|0,i=s%e}return this._strip(),t?this.ineg():this},s.prototype.divn=function(e){return this.clone().idivn(e)},s.prototype.egcd=function(e){r(0===e.negative),r(!e.isZero());var t=this,i=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n=new s(1),a=new s(0),o=new s(0),l=new s(1),p=0;t.isEven()&&i.isEven();)t.iushrn(1),i.iushrn(1),++p;for(var c=i.clone(),u=t.clone();!t.isZero();){for(var h=0,d=1;!(t.words[0]&d)&&h<26;++h,d<<=1);if(h>0)for(t.iushrn(h);h-- >0;)(n.isOdd()||a.isOdd())&&(n.iadd(c),a.isub(u)),n.iushrn(1),a.iushrn(1);for(var f=0,m=1;!(i.words[0]&m)&&f<26;++f,m<<=1);if(f>0)for(i.iushrn(f);f-- >0;)(o.isOdd()||l.isOdd())&&(o.iadd(c),l.isub(u)),o.iushrn(1),l.iushrn(1);t.cmp(i)>=0?(t.isub(i),n.isub(o),a.isub(l)):(i.isub(t),o.isub(n),l.isub(a))}return{a:o,b:l,gcd:i.iushln(p)}},s.prototype._invmp=function(e){r(0===e.negative),r(!e.isZero());var t=this,i=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n,a=new s(1),o=new s(0),l=i.clone();t.cmpn(1)>0&&i.cmpn(1)>0;){for(var p=0,c=1;!(t.words[0]&c)&&p<26;++p,c<<=1);if(p>0)for(t.iushrn(p);p-- >0;)a.isOdd()&&a.iadd(l),a.iushrn(1);for(var u=0,h=1;!(i.words[0]&h)&&u<26;++u,h<<=1);if(u>0)for(i.iushrn(u);u-- >0;)o.isOdd()&&o.iadd(l),o.iushrn(1);t.cmp(i)>=0?(t.isub(i),a.isub(o)):(i.isub(t),o.isub(a))}return(n=0===t.cmpn(1)?a:o).cmpn(0)<0&&n.iadd(e),n},s.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),i=e.clone();t.negative=0,i.negative=0;for(var r=0;t.isEven()&&i.isEven();r++)t.iushrn(1),i.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;i.isEven();)i.iushrn(1);var n=t.cmp(i);if(n<0){var s=t;t=i,i=s}else if(0===n||0===i.cmpn(1))break;t.isub(i)}return i.iushln(r)},s.prototype.invm=function(e){return this.egcd(e).a.umod(e)},s.prototype.isEven=function(){return!(1&this.words[0])},s.prototype.isOdd=function(){return!(1&~this.words[0])},s.prototype.andln=function(e){return this.words[0]&e},s.prototype.bincn=function(e){r("number"==typeof e);var t=e%26,i=(e-t)/26,n=1<<t;if(this.length<=i)return this._expand(i+1),this.words[i]|=n,this;for(var s=n,a=i;0!==s&&a<this.length;a++){var o=0|this.words[a];s=(o+=s)>>>26,o&=67108863,this.words[a]=o}return 0!==s&&(this.words[a]=s,this.length++),this},s.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},s.prototype.cmpn=function(e){var t,i=e<0;if(0!==this.negative&&!i)return-1;if(0===this.negative&&i)return 1;if(this._strip(),this.length>1)t=1;else{i&&(e=-e),r(e<=67108863,"Number is too big");var n=0|this.words[0];t=n===e?0:n<e?-1:1}return 0!==this.negative?0|-t:t},s.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return-1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},s.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,i=this.length-1;i>=0;i--){var r=0|this.words[i],n=0|e.words[i];if(r!==n){r<n?t=-1:r>n&&(t=1);break}}return t},s.prototype.gtn=function(e){return 1===this.cmpn(e)},s.prototype.gt=function(e){return 1===this.cmp(e)},s.prototype.gten=function(e){return this.cmpn(e)>=0},s.prototype.gte=function(e){return this.cmp(e)>=0},s.prototype.ltn=function(e){return-1===this.cmpn(e)},s.prototype.lt=function(e){return-1===this.cmp(e)},s.prototype.lten=function(e){return this.cmpn(e)<=0},s.prototype.lte=function(e){return this.cmp(e)<=0},s.prototype.eqn=function(e){return 0===this.cmpn(e)},s.prototype.eq=function(e){return 0===this.cmp(e)},s.red=function(e){return new A(e)},s.prototype.toRed=function(e){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},s.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(e){return this.red=e,this},s.prototype.forceRed=function(e){return r(!this.red,"Already a number in reduction context"),this._forceRed(e)},s.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},s.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},s.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},s.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},s.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},s.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},s.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},s.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(e){return r(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var S={k256:null,p224:null,p192:null,p25519:null};function x(e,t){this.name=e,this.p=new s(t,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function E(){x.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function v(){x.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function P(){x.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function w(){x.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function A(e){if("string"==typeof e){var t=s._prime(e);this.m=t.p,this.prime=t}else r(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function I(e){A.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new s(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}x.prototype._tmp=function(){var e=new s(null);return e.words=new Array(Math.ceil(this.n/13)),e},x.prototype.ireduce=function(e){var t,i=e;do{this.split(i,this.tmp),t=(i=(i=this.imulK(i)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t<this.n?-1:i.ucmp(this.p);return 0===r?(i.words[0]=0,i.length=1):r>0?i.isub(this.p):void 0!==i.strip?i.strip():i._strip(),i},x.prototype.split=function(e,t){e.iushrn(this.n,0,t)},x.prototype.imulK=function(e){return e.imul(this.k)},n(E,x),E.prototype.split=function(e,t){for(var i=4194303,r=Math.min(e.length,9),n=0;n<r;n++)t.words[n]=e.words[n];if(t.length=r,e.length<=9)return e.words[0]=0,void(e.length=1);var s=e.words[9];for(t.words[t.length++]=s&i,n=10;n<e.length;n++){var a=0|e.words[n];e.words[n-10]=(a&i)<<4|s>>>22,s=a}s>>>=22,e.words[n-10]=s,0===s&&e.length>10?e.length-=10:e.length-=9},E.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,i=0;i<e.length;i++){var r=0|e.words[i];t+=977*r,e.words[i]=67108863&t,t=64*r+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},n(v,x),n(P,x),n(w,x),w.prototype.imulK=function(e){for(var t=0,i=0;i<e.length;i++){var r=19*(0|e.words[i])+t,n=67108863&r;r>>>=26,e.words[i]=n,t=r}return 0!==t&&(e.words[e.length++]=t),e},s._prime=function(e){if(S[e])return S[e];var t;if("k256"===e)t=new E;else if("p224"===e)t=new v;else if("p192"===e)t=new P;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new w}return S[e]=t,t},A.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},A.prototype._verify2=function(e,t){r(!(e.negative|t.negative),"red works only with positives"),r(e.red&&e.red===t.red,"red works only with red numbers")},A.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(c(e,e.umod(this.m)._forceRed(this)),e)},A.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},A.prototype.add=function(e,t){this._verify2(e,t);var i=e.add(t);return i.cmp(this.m)>=0&&i.isub(this.m),i._forceRed(this)},A.prototype.iadd=function(e,t){this._verify2(e,t);var i=e.iadd(t);return i.cmp(this.m)>=0&&i.isub(this.m),i},A.prototype.sub=function(e,t){this._verify2(e,t);var i=e.sub(t);return i.cmpn(0)<0&&i.iadd(this.m),i._forceRed(this)},A.prototype.isub=function(e,t){this._verify2(e,t);var i=e.isub(t);return i.cmpn(0)<0&&i.iadd(this.m),i},A.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},A.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},A.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},A.prototype.isqr=function(e){return this.imul(e,e.clone())},A.prototype.sqr=function(e){return this.mul(e,e)},A.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(r(t%2==1),3===t){var i=this.m.add(new s(1)).iushrn(2);return this.pow(e,i)}for(var n=this.m.subn(1),a=0;!n.isZero()&&0===n.andln(1);)a++,n.iushrn(1);r(!n.isZero());var o=new s(1).toRed(this),l=o.redNeg(),p=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new s(2*c*c).toRed(this);0!==this.pow(c,p).cmp(l);)c.redIAdd(l);for(var u=this.pow(c,n),h=this.pow(e,n.addn(1).iushrn(1)),d=this.pow(e,n),f=a;0!==d.cmp(o);){for(var m=d,y=0;0!==m.cmp(o);y++)m=m.redSqr();r(y<f);var T=this.pow(u,new s(1).iushln(f-y-1));h=h.redMul(T),u=T.redSqr(),d=d.redMul(u),f=y}return h},A.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},A.prototype.pow=function(e,t){if(t.isZero())return new s(1).toRed(this);if(0===t.cmpn(1))return e.clone();var i=new Array(16);i[0]=new s(1).toRed(this),i[1]=e;for(var r=2;r<i.length;r++)i[r]=this.mul(i[r-1],e);var n=i[0],a=0,o=0,l=t.bitLength()%26;for(0===l&&(l=26),r=t.length-1;r>=0;r--){for(var p=t.words[r],c=l-1;c>=0;c--){var u=p>>c&1;n!==i[0]&&(n=this.sqr(n)),0!==u||0!==a?(a<<=1,a|=u,(4==++o||0===r&&0===c)&&(n=this.mul(n,i[a]),o=0,a=0)):o=0}l=26}return n},A.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},A.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},s.mont=function(e){return new I(e)},n(I,A),I.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},I.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},I.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var i=e.imul(t),r=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=i.isub(r).iushrn(this.shift),s=n;return n.cmp(this.m)>=0?s=n.isub(this.m):n.cmpn(0)<0&&(s=n.iadd(this.m)),s._forceRed(this)},I.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new s(0)._forceRed(this);var i=e.mul(t),r=i.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),n=i.isub(r).iushrn(this.shift),a=n;return n.cmp(this.m)>=0?a=n.isub(this.m):n.cmpn(0)<0&&(a=n.iadd(this.m)),a._forceRed(this)},I.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=i.nmd(e),this)},70257:(e,t,i)=>{t.Ay=void 0;var r=i(61015),n=i(88497);t.Ay=function(e,t={},i){const s=function(e,t,i){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(i.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.")}const r={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};var n;r.decoratorsBeforeExport=t.decoratorsBeforeExport,r.jsescOption.json=t.jsonCompatibleStrings,r.recordAndTupleSyntaxType=null!=(n=t.recordAndTupleSyntaxType)?n:"hash",r.minified?(r.compact=!0,r.shouldPrintComment=r.shouldPrintComment||(()=>r.comments)):r.shouldPrintComment=r.shouldPrintComment||(e=>r.comments||e.includes("@license")||e.includes("@preserve")),"auto"===r.compact&&(r.compact="string"==typeof e&&e.length>5e5,r.compact&&console.error(`[BABEL] Note: The code generator has deoptimised the styling of ${t.filename} as it exceeds the max of 500KB.`)),(r.compact||r.preserveFormat)&&(r.indent.adjustMultilineComment=!1);const{auxiliaryCommentBefore:s,auxiliaryCommentAfter:a,shouldPrintComment:o}=r;return s&&!o(s)&&(r.auxiliaryCommentBefore=void 0),a&&!o(a)&&(r.auxiliaryCommentAfter=void 0),r}(i,t,e),a=t.sourceMaps?new r.default(t,i):null;return new n.default(s,a,e.tokens,"string"==typeof i?i:null).generate(e)}},70470:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t=e.key||e.property){return!e.computed&&(0,r.isIdentifier)(t)&&(t=(0,n.stringLiteral)(t.name)),t};var r=i(63555),n=i(82208)},71535:(e,t,i)=>{var r=i(53896);t.encrypt=function(e,t){var i=r(t,e._prev);return e._prev=e._cipher.encryptBlock(i),e._prev},t.decrypt=function(e,t){var i=e._prev;e._prev=t;var n=e._cipher.decryptBlock(t);return r(n,i)}},73019:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LogicalExpression=t.BinaryExpression=t.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)},t.AssignmentPattern=function(e){this.print(e.left),("Identifier"===e.left.type||p(e.left))&&(e.left.optional&&this.tokenChar(63),this.print(e.left.typeAnnotation)),this.space(),this.tokenChar(61),this.space(),this.print(e.right)},t.AwaitExpression=function(e){this.word("await"),this.space(),this.print(e.argument)},t.BindExpression=function(e){this.print(e.object),this.token("::"),this.print(e.callee)},t.CallExpression=function(e){this.print(e.callee),this.print(e.typeArguments),this.print(e.typeParameters),this.tokenChar(40);const t=this.enterDelimited();this.printList(e.arguments,this.shouldPrintTrailingComma(")")),t(),this.rightParens(e)},t.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)},t.Decorator=function(e){this.tokenChar(64),this.print(e.expression),this.newline()},t.DoExpression=function(e){e.async&&(this.word("async",!0),this.space()),this.word("do"),this.space(),this.print(e.body)},t.EmptyStatement=function(){this.semicolon(!0)},t.ExpressionStatement=function(e){this.tokenContext|=n.TokenContext.expressionStatement,this.print(e.expression),this.semicolon()},t.Import=function(){this.word("import")},t.MemberExpression=function(e){if(this.print(e.object),!e.computed&&o(e.property))throw new TypeError("Got a MemberExpression for MemberExpression property");let t=e.computed;if(a(e.property)&&"number"==typeof e.property.value&&(t=!0),t){const t=this.enterDelimited();this.tokenChar(91),this.print(e.property),this.tokenChar(93),t()}else this.tokenChar(46),this.print(e.property)},t.MetaProperty=function(e){this.print(e.meta),this.tokenChar(46),this.print(e.property)},t.ModuleExpression=function(e){this.word("module",!0),this.space(),this.tokenChar(123),this.indent();const{body:t}=e;(t.body.length||t.directives.length)&&this.newline(),this.print(t),this.dedent(),this.rightBrace(e)},t.NewExpression=function(e,t){if(this.word("new"),this.space(),this.print(e.callee),this.format.minified&&0===e.arguments.length&&!e.optional&&!s(t,{callee:e})&&!o(t)&&!l(t))return;if(this.print(e.typeArguments),this.print(e.typeParameters),e.optional&&this.token("?."),0===e.arguments.length&&this.tokenMap&&!this.tokenMap.endMatches(e,")"))return;this.tokenChar(40);const i=this.enterDelimited();this.printList(e.arguments,this.shouldPrintTrailingComma(")")),i(),this.rightParens(e)},t.OptionalCallExpression=function(e){this.print(e.callee),this.print(e.typeParameters),e.optional&&this.token("?."),this.print(e.typeArguments),this.tokenChar(40);const t=this.enterDelimited();this.printList(e.arguments),t(),this.rightParens(e)},t.OptionalMemberExpression=function(e){let{computed:t}=e;const{optional:i,property:r}=e;if(this.print(e.object),!t&&o(r))throw new TypeError("Got a MemberExpression for MemberExpression property");a(r)&&"number"==typeof r.value&&(t=!0),i&&this.token("?."),t?(this.tokenChar(91),this.print(r),this.tokenChar(93)):(i||this.tokenChar(46),this.print(r))},t.ParenthesizedExpression=function(e){this.tokenChar(40);const t=this.enterDelimited();this.print(e.expression),t(),this.rightParens(e)},t.PrivateName=function(e){this.tokenChar(35),this.print(e.id)},t.SequenceExpression=function(e){this.printList(e.expressions)},t.Super=function(){this.word("super")},t.ThisExpression=function(){this.word("this")},t.UnaryExpression=function(e){const{operator:t}=e;"void"===t||"delete"===t||"typeof"===t||"throw"===t?(this.word(t),this.space()):this.token(t),this.print(e.argument)},t.UpdateExpression=function(e){e.prefix?(this.token(e.operator),this.print(e.argument)):(this.print(e.argument,!0),this.token(e.operator))},t.V8IntrinsicIdentifier=function(e){this.tokenChar(37),this.word(e.name)},t.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")},t._shouldPrintDecoratorsBeforeExport=function(e){return"boolean"==typeof this.format.decoratorsBeforeExport?this.format.decoratorsBeforeExport:"number"==typeof e.start&&e.start===e.declaration.start};var r=i(45741),n=i(36306);const{isCallExpression:s,isLiteral:a,isMemberExpression:o,isNewExpression:l,isPattern:p}=r},73261:(e,t,i)=>{var r=i(65994).e;Object.defineProperty(t,"__esModule",{value:!0}),t.allExpandedTypes=t.VISITOR_KEYS=t.NODE_PARENT_VALIDATIONS=t.NODE_FIELDS=t.FLIPPED_ALIAS_KEYS=t.DEPRECATED_KEYS=t.BUILDER_KEYS=t.ALIAS_KEYS=void 0,t.arrayOf=m,t.arrayOfType=y,t.assertEach=T,t.assertNodeOrValueType=function(...e){function t(t,i,r){const a=d(r);for(const o of e)if(a===o||(0,n.default)(o,r))return void(0,s.validateChild)(t,i,r);throw new TypeError(`Property ${i} of ${t.type} expected node to be of a type ${JSON.stringify(e)} but instead got ${JSON.stringify(null==r?void 0:r.type)}`)}return t.oneOfNodeOrValueTypes=e,t},t.assertNodeType=b,t.assertOneOf=function(...e){function t(t,i,r){if(!e.includes(r))throw new TypeError(`Property ${i} expected value to be one of ${JSON.stringify(e)} but got ${JSON.stringify(r)}`)}return t.oneOf=e,t},t.assertOptionalChainStart=function(){return function(e){var t;let i=e;for(;e;){const{type:e}=i;if("OptionalCallExpression"!==e){if("OptionalMemberExpression"!==e)break;if(i.optional)return;i=i.object}else{if(i.optional)return;i=i.callee}}throw new TypeError(`Non-optional ${e.type} must chain from an optional OptionalMemberExpression or OptionalCallExpression. Found chain from ${null==(t=i)?void 0:t.type}`)}},t.assertShape=function(e){const t=Object.keys(e);function i(i,r,n){const a=[];for(const r of t)try{(0,s.validateField)(i,r,n[r],e[r])}catch(e){if(e instanceof TypeError){a.push(e.message);continue}throw e}if(a.length)throw new TypeError(`Property ${r} of ${i.type} expected to have the following:\n${a.join("\n")}`)}return i.shapeOf=e,i},t.assertValueType=S,t.chain=x,t.default=w,t.defineAliasedType=function(...e){return(t,i={})=>{let r=i.aliases;var n;r||(i.inherits&&(r=null==(n=P[i.inherits].aliases)?void 0:n.slice()),null!=r||(r=[]),i.aliases=r);const s=e.filter((e=>!r.includes(e)));r.unshift(...s),w(t,i)}},t.validate=f,t.validateArrayOfType=function(...e){return f(y(...e))},t.validateOptional=function(e){return{validate:e,optional:!0}},t.validateOptionalType=function(...e){return{validate:b(...e),optional:!0}},t.validateType=function(...e){return f(b(...e))};var n=i(23781),s=i(59751);const a=t.VISITOR_KEYS={},o=t.ALIAS_KEYS={},l=t.FLIPPED_ALIAS_KEYS={},p=t.NODE_FIELDS={},c=t.BUILDER_KEYS={},u=t.DEPRECATED_KEYS={},h=t.NODE_PARENT_VALIDATIONS={};function d(e){return Array.isArray(e)?"array":null===e?"null":typeof e}function f(e){return{validate:e}}function m(e){return x(S("array"),T(e))}function y(...e){return m(b(...e))}function T(e){const t=r.env.BABEL_TYPES_8_BREAKING?s.validateChild:()=>{};function i(i,r,n){if(!Array.isArray(n))return;let s=0;const a={toString:()=>`${r}[${s}]`};for(;s<n.length;s++){const r=n[s];e(i,a,r),t(i,a,r)}}return i.each=e,i}const g=t.allExpandedTypes=[];function b(...e){const t=new Set;function i(i,r,a){const o=null==a?void 0:a.type;if(null!=o){if(t.has(o))return void(0,s.validateChild)(i,r,a);if("Placeholder"===o)for(const t of e)if((0,n.default)(t,a))return void(0,s.validateChild)(i,r,a)}throw new TypeError(`Property ${r} of ${i.type} expected node to be of a type ${JSON.stringify(e)} but instead got ${JSON.stringify(o)}`)}return g.push({types:e,set:t}),i.oneOfNodeTypes=e,i}function S(e){function t(t,i,r){if(d(r)!==e)throw new TypeError(`Property ${i} expected type of ${e} but got ${d(r)}`)}return t.type=e,t}function x(...e){function t(...t){for(const i of e)i(...t)}if(t.chainOf=e,e.length>=2&&"type"in e[0]&&"array"===e[0].type&&!("each"in e[1]))throw new Error('An assertValueType("array") validator can only be followed by an assertEach(...) validator.');return t}const E=new Set(["aliases","builder","deprecatedAlias","fields","inherits","visitor","validate"]),v=new Set(["default","optional","deprecated","validate"]),P={};function w(e,t={}){const i=t.inherits&&P[t.inherits]||{};let r=t.fields;if(!r&&(r={},i.fields)){const e=Object.getOwnPropertyNames(i.fields);for(const t of e){const e=i.fields[t],n=e.default;if(Array.isArray(n)?n.length>0:n&&"object"==typeof n)throw new Error("field defaults can only be primitives or empty arrays currently");r[t]={default:Array.isArray(n)?[]:n,optional:e.optional,deprecated:e.deprecated,validate:e.validate}}}const n=t.visitor||i.visitor||[],s=t.aliases||i.aliases||[],f=t.builder||i.builder||t.visitor||[];for(const i of Object.keys(t))if(!E.has(i))throw new Error(`Unknown type option "${i}" on ${e}`);t.deprecatedAlias&&(u[t.deprecatedAlias]=e);for(const e of n.concat(f))r[e]=r[e]||{};for(const t of Object.keys(r)){const i=r[t];void 0===i.default||f.includes(t)||(i.optional=!0),void 0===i.default?i.default=null:i.validate||null==i.default||(i.validate=S(d(i.default)));for(const r of Object.keys(i))if(!v.has(r))throw new Error(`Unknown field key "${r}" on ${e}.${t}`)}a[e]=t.visitor=n,c[e]=t.builder=f,p[e]=t.fields=r,o[e]=t.aliases=s,s.forEach((t=>{l[t]=l[t]||[],l[t].push(e)})),t.validate&&(h[e]=t.validate),P[e]=t}},73416:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.isFunctionDeclaration)(e)||(0,r.isClassDeclaration)(e)||(0,n.default)(e)};var r=i(63555),n=i(62816)},74641:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r="",n=e){if(i.has(n))return;i.add(n);const{internal:s,trace:a}=function(){const{stackTraceLimit:e,prepareStackTrace:t}=Error;let i;if(Error.stackTraceLimit=4,Error.prepareStackTrace=function(e,t){i=t},(new Error).stack,Error.stackTraceLimit=e,Error.prepareStackTrace=t,!i)return{internal:!1,trace:""};const r=i.slice(2,4);return{internal:/[\\/]@babel[\\/]/.test(r[1].getFileName()),trace:r.map((e=>` at ${e}`)).join("\n")}}();s||console.warn(`${r}\`${e}\` has been deprecated, please migrate to \`${t}\`\n${a}`)};const i=new Set},74941:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){const i=Array.from(t),s=new Map,a=new Map,o=new Set,l=[];for(let t=0;t<i.length;t++){const p=i[t];if(!p)continue;if(l.includes(p))continue;if((0,r.isTSAnyKeyword)(p))return[p];if((0,r.isTSBaseType)(p)){a.set(p.type,p);continue}if((0,r.isTSUnionType)(p)){o.has(p.types)||(i.push(...p.types),o.add(p.types));continue}const c="typeParameters";if((0,r.isTSTypeReference)(p)&&p[c]){const t=p[c],i=n(p.typeName);if(s.has(i)){let r=s.get(i);const n=r[c];n?(n.params.push(...t.params),n.params=e(n.params)):r=t}else s.set(i,p)}else l.push(p)}for(const[,e]of a)l.push(e);for(const[,e]of s)l.push(e);return l};var r=i(63555);function n(e){return(0,r.isIdentifier)(e)?e.name:(0,r.isThisExpression)(e)?"this":`${e.right.name}.${n(e.left)}`}},78529:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,r.isBlockStatement)(e))return e;let i=[];return(0,r.isEmptyStatement)(e)?i=[]:((0,r.isStatement)(e)||(e=(0,r.isFunction)(t)?(0,n.returnStatement)(e):(0,n.expressionStatement)(e)),i=[e]),(0,n.blockStatement)(i)};var r=i(63555),n=i(82208)},79959:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return!!e&&/^[a-z]/.test(e)}},80264:(e,t,i)=>{var r=i(28525),n=i(90686),s=i(10441),a=i(69445),o=i(23457);function l(e,t,i){if(e=e.toLowerCase(),s[e])return n.createCipheriv(e,t,i);if(a[e])return new r({key:t,iv:i,mode:e});throw new TypeError("invalid suite type")}function p(e,t,i){if(e=e.toLowerCase(),s[e])return n.createDecipheriv(e,t,i);if(a[e])return new r({key:t,iv:i,mode:e,decrypt:!0});throw new TypeError("invalid suite type")}t.createCipher=t.Cipher=function(e,t){var i,r;if(e=e.toLowerCase(),s[e])i=s[e].key,r=s[e].iv;else{if(!a[e])throw new TypeError("invalid suite type");i=8*a[e].key,r=a[e].iv}var n=o(t,!1,i,r);return l(e,n.key,n.iv)},t.createCipheriv=t.Cipheriv=l,t.createDecipher=t.Decipher=function(e,t){var i,r;if(e=e.toLowerCase(),s[e])i=s[e].key,r=s[e].iv;else{if(!a[e])throw new TypeError("invalid suite type");i=8*a[e].key,r=a[e].iv}var n=o(t,!1,i,r);return p(e,n.key,n.iv)},t.createDecipheriv=t.Decipheriv=p,t.listCiphers=t.getCiphers=function(){return Object.keys(a).concat(n.getCiphers())}},80816:(e,t,i)=>{(t=e.exports=i(3971)).Stream=t,t.Readable=t,t.Writable=i(41175),t.Duplex=i(49837),t.Transform=i(29075),t.PassThrough=i(54409)},81339:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e)};var r=i(16938)},81540:(e,t,i)=>{var r=i(11265),n=i(79696).Buffer,s=i(10441),a=i(5339),o=i(84913),l=i(62053),p=i(23457);function c(e,t,i){o.call(this),this._cache=new u,this._last=void 0,this._cipher=new l.AES(t),this._prev=n.from(i),this._mode=e,this._autopadding=!0}function u(){this.cache=n.allocUnsafe(0)}function h(e,t,i){var o=s[e.toLowerCase()];if(!o)throw new TypeError("invalid suite type");if("string"==typeof i&&(i=n.from(i)),"GCM"!==o.mode&&i.length!==o.iv)throw new TypeError("invalid iv length "+i.length);if("string"==typeof t&&(t=n.from(t)),t.length!==o.key/8)throw new TypeError("invalid key length "+t.length);return"stream"===o.type?new a(o.module,t,i,!0):"auth"===o.type?new r(o.module,t,i,!0):new c(o.module,t,i)}i(25003)(c,o),c.prototype._update=function(e){var t,i;this._cache.add(e);for(var r=[];t=this._cache.get(this._autopadding);)i=this._mode.decrypt(this,t),r.push(i);return n.concat(r)},c.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return function(e){var t=e[15];if(t<1||t>16)throw new Error("unable to decrypt data");for(var i=-1;++i<t;)if(e[i+(16-t)]!==t)throw new Error("unable to decrypt data");if(16!==t)return e.slice(0,16-t)}(this._mode.decrypt(this,e));if(e)throw new Error("data not multiple of block length")},c.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},u.prototype.add=function(e){this.cache=n.concat([this.cache,e])},u.prototype.get=function(e){var t;if(e){if(this.cache.length>16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t}else if(this.cache.length>=16)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t;return null},u.prototype.flush=function(){if(this.cache.length)return this.cache},t.createDecipher=function(e,t){var i=s[e.toLowerCase()];if(!i)throw new TypeError("invalid suite type");var r=p(t,!1,i.key,i.iv);return h(e,r.key,r.iv)},t.createDecipheriv=h},81625:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return"eval"!==(e=(0,r.default)(e))&&"arguments"!==e||(e="_"+e),e};var r=i(29221)},82129:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WHILE_TYPES=t.USERWHITESPACABLE_TYPES=t.UNARYLIKE_TYPES=t.TYPESCRIPT_TYPES=t.TSTYPE_TYPES=t.TSTYPEELEMENT_TYPES=t.TSENTITYNAME_TYPES=t.TSBASETYPE_TYPES=t.TERMINATORLESS_TYPES=t.STATEMENT_TYPES=t.STANDARDIZED_TYPES=t.SCOPABLE_TYPES=t.PUREISH_TYPES=t.PROPERTY_TYPES=t.PRIVATE_TYPES=t.PATTERN_TYPES=t.PATTERNLIKE_TYPES=t.OBJECTMEMBER_TYPES=t.MODULESPECIFIER_TYPES=t.MODULEDECLARATION_TYPES=t.MISCELLANEOUS_TYPES=t.METHOD_TYPES=t.LVAL_TYPES=t.LOOP_TYPES=t.LITERAL_TYPES=t.JSX_TYPES=t.IMPORTOREXPORTDECLARATION_TYPES=t.IMMUTABLE_TYPES=t.FUNCTION_TYPES=t.FUNCTIONPARENT_TYPES=t.FUNCTIONPARAMETER_TYPES=t.FOR_TYPES=t.FORXSTATEMENT_TYPES=t.FLOW_TYPES=t.FLOWTYPE_TYPES=t.FLOWPREDICATE_TYPES=t.FLOWDECLARATION_TYPES=t.FLOWBASEANNOTATION_TYPES=t.EXPRESSION_TYPES=t.EXPRESSIONWRAPPER_TYPES=t.EXPORTDECLARATION_TYPES=t.ENUMMEMBER_TYPES=t.ENUMBODY_TYPES=t.DECLARATION_TYPES=t.CONDITIONAL_TYPES=t.COMPLETIONSTATEMENT_TYPES=t.CLASS_TYPES=t.BLOCK_TYPES=t.BLOCKPARENT_TYPES=t.BINARY_TYPES=t.ACCESSOR_TYPES=void 0;var r=i(35108);t.STANDARDIZED_TYPES=r.FLIPPED_ALIAS_KEYS.Standardized,t.EXPRESSION_TYPES=r.FLIPPED_ALIAS_KEYS.Expression,t.BINARY_TYPES=r.FLIPPED_ALIAS_KEYS.Binary,t.SCOPABLE_TYPES=r.FLIPPED_ALIAS_KEYS.Scopable,t.BLOCKPARENT_TYPES=r.FLIPPED_ALIAS_KEYS.BlockParent,t.BLOCK_TYPES=r.FLIPPED_ALIAS_KEYS.Block,t.STATEMENT_TYPES=r.FLIPPED_ALIAS_KEYS.Statement,t.TERMINATORLESS_TYPES=r.FLIPPED_ALIAS_KEYS.Terminatorless,t.COMPLETIONSTATEMENT_TYPES=r.FLIPPED_ALIAS_KEYS.CompletionStatement,t.CONDITIONAL_TYPES=r.FLIPPED_ALIAS_KEYS.Conditional,t.LOOP_TYPES=r.FLIPPED_ALIAS_KEYS.Loop,t.WHILE_TYPES=r.FLIPPED_ALIAS_KEYS.While,t.EXPRESSIONWRAPPER_TYPES=r.FLIPPED_ALIAS_KEYS.ExpressionWrapper,t.FOR_TYPES=r.FLIPPED_ALIAS_KEYS.For,t.FORXSTATEMENT_TYPES=r.FLIPPED_ALIAS_KEYS.ForXStatement,t.FUNCTION_TYPES=r.FLIPPED_ALIAS_KEYS.Function,t.FUNCTIONPARENT_TYPES=r.FLIPPED_ALIAS_KEYS.FunctionParent,t.PUREISH_TYPES=r.FLIPPED_ALIAS_KEYS.Pureish,t.DECLARATION_TYPES=r.FLIPPED_ALIAS_KEYS.Declaration,t.FUNCTIONPARAMETER_TYPES=r.FLIPPED_ALIAS_KEYS.FunctionParameter,t.PATTERNLIKE_TYPES=r.FLIPPED_ALIAS_KEYS.PatternLike,t.LVAL_TYPES=r.FLIPPED_ALIAS_KEYS.LVal,t.TSENTITYNAME_TYPES=r.FLIPPED_ALIAS_KEYS.TSEntityName,t.LITERAL_TYPES=r.FLIPPED_ALIAS_KEYS.Literal,t.IMMUTABLE_TYPES=r.FLIPPED_ALIAS_KEYS.Immutable,t.USERWHITESPACABLE_TYPES=r.FLIPPED_ALIAS_KEYS.UserWhitespacable,t.METHOD_TYPES=r.FLIPPED_ALIAS_KEYS.Method,t.OBJECTMEMBER_TYPES=r.FLIPPED_ALIAS_KEYS.ObjectMember,t.PROPERTY_TYPES=r.FLIPPED_ALIAS_KEYS.Property,t.UNARYLIKE_TYPES=r.FLIPPED_ALIAS_KEYS.UnaryLike,t.PATTERN_TYPES=r.FLIPPED_ALIAS_KEYS.Pattern,t.CLASS_TYPES=r.FLIPPED_ALIAS_KEYS.Class;const n=t.IMPORTOREXPORTDECLARATION_TYPES=r.FLIPPED_ALIAS_KEYS.ImportOrExportDeclaration;t.EXPORTDECLARATION_TYPES=r.FLIPPED_ALIAS_KEYS.ExportDeclaration,t.MODULESPECIFIER_TYPES=r.FLIPPED_ALIAS_KEYS.ModuleSpecifier,t.ACCESSOR_TYPES=r.FLIPPED_ALIAS_KEYS.Accessor,t.PRIVATE_TYPES=r.FLIPPED_ALIAS_KEYS.Private,t.FLOW_TYPES=r.FLIPPED_ALIAS_KEYS.Flow,t.FLOWTYPE_TYPES=r.FLIPPED_ALIAS_KEYS.FlowType,t.FLOWBASEANNOTATION_TYPES=r.FLIPPED_ALIAS_KEYS.FlowBaseAnnotation,t.FLOWDECLARATION_TYPES=r.FLIPPED_ALIAS_KEYS.FlowDeclaration,t.FLOWPREDICATE_TYPES=r.FLIPPED_ALIAS_KEYS.FlowPredicate,t.ENUMBODY_TYPES=r.FLIPPED_ALIAS_KEYS.EnumBody,t.ENUMMEMBER_TYPES=r.FLIPPED_ALIAS_KEYS.EnumMember,t.JSX_TYPES=r.FLIPPED_ALIAS_KEYS.JSX,t.MISCELLANEOUS_TYPES=r.FLIPPED_ALIAS_KEYS.Miscellaneous,t.TYPESCRIPT_TYPES=r.FLIPPED_ALIAS_KEYS.TypeScript,t.TSTYPEELEMENT_TYPES=r.FLIPPED_ALIAS_KEYS.TSTypeElement,t.TSTYPE_TYPES=r.FLIPPED_ALIAS_KEYS.TSType,t.TSBASETYPE_TYPES=r.FLIPPED_ALIAS_KEYS.TSBaseType,t.MODULEDECLARATION_TYPES=n},82208:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0});var r=i(52625);Object.keys(r).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===r[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return r[e]}}))}));var n=i(496);Object.keys(n).forEach((function(e){"default"!==e&&"__esModule"!==e&&(e in t&&t[e]===n[e]||Object.defineProperty(t,e,{enumerable:!0,get:function(){return n[e]}}))}))},83872:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){const i=e.split(".");return e=>(0,r.default)(e,i,t)};var r=i(68740)},84579:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;const r=(0,i(83872).default)("React.Component");t.default=r},85604:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PLACEHOLDERS_FLIPPED_ALIAS=t.PLACEHOLDERS_ALIAS=t.PLACEHOLDERS=void 0;var r=i(73261);const n=t.PLACEHOLDERS=["Identifier","StringLiteral","Expression","Statement","Declaration","BlockStatement","ClassBody","Pattern"],s=t.PLACEHOLDERS_ALIAS={Declaration:["Statement"],Pattern:["PatternLike","LVal"]};for(const e of n){const t=r.ALIAS_KEYS[e];null!=t&&t.length&&(s[e]=t)}const a=t.PLACEHOLDERS_FLIPPED_ALIAS={};Object.keys(s).forEach((e=>{s[e].forEach((t=>{hasOwnProperty.call(a,t)||(a[t]=[]),a[t].push(e)}))}))},86809:(e,t)=>{function i(e,t){e.tokenMap&&t.start&&t.end?e.tokenMap.endMatches(t,",")?e.token(","):e.tokenMap.endMatches(t,";")&&e.semicolon():e.semicolon()}function r(e,t,i){var r;let n=0;null!=(r=e.tokenMap)&&r.startMatches(t,i)&&(n=1,e.token(i)),e.printJoin(t.types,void 0,void 0,(function(e){this.space(),this.token(i,null,e+n),this.space()}))}function n(e,t){!0!==t&&e.token(t)}function s(e){a(this,e,(()=>{var t;return this.printList(e.members,null==(t=this.shouldPrintTrailingComma("}"))||t,!0,!0)}))}function a(e,t,i){e.token("{");const r=e.enterDelimited();i(),r(),e.rightBrace(t)}function o(e,t,i){var r;const n=new Set;for(const e of i)e&&n.add(e);null==(r=e.tokenMap)||r.find(t,(t=>{if(n.has(t.value))return e.token(t.value),e.space(),n.delete(t.value),0===n.size}));for(const t of n)e.word(t),e.space()}Object.defineProperty(t,"__esModule",{value:!0}),t.TSAnyKeyword=function(){this.word("any")},t.TSArrayType=function(e){this.print(e.elementType,!0),this.tokenChar(91),this.tokenChar(93)},t.TSSatisfiesExpression=t.TSAsExpression=function(e){const{type:t,expression:i,typeAnnotation:r}=e;this.print(i,!0),this.space(),this.word("TSAsExpression"===t?"as":"satisfies"),this.space(),this.print(r)},t.TSBigIntKeyword=function(){this.word("bigint")},t.TSBooleanKeyword=function(){this.word("boolean")},t.TSCallSignatureDeclaration=function(e){this.tsPrintSignatureDeclarationBase(e),i(this,e)},t.TSInterfaceHeritage=t.TSClassImplements=function(e){this.print(e.expression),this.print(e.typeArguments)},t.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)},t.TSConstructSignatureDeclaration=function(e){this.word("new"),this.space(),this.tsPrintSignatureDeclarationBase(e),i(this,e)},t.TSConstructorType=function(e){e.abstract&&(this.word("abstract"),this.space()),this.word("new"),this.space(),this.tsPrintFunctionOrConstructorType(e)},t.TSDeclareFunction=function(e,t){e.declare&&(this.word("declare"),this.space()),this._functionHead(e,t),this.semicolon()},t.TSDeclareMethod=function(e){this._classMethodHead(e),this.semicolon()},t.TSEnumBody=s,t.TSEnumDeclaration=function(e){const{declare:t,const:i,id:r}=e;t&&(this.word("declare"),this.space()),i&&(this.word("const"),this.space()),this.word("enum"),this.space(),this.print(r),this.space(),s.call(this,e)},t.TSEnumMember=function(e){const{id:t,initializer:i}=e;this.print(t),i&&(this.space(),this.tokenChar(61),this.space(),this.print(i))},t.TSExportAssignment=function(e){this.word("export"),this.space(),this.tokenChar(61),this.space(),this.print(e.expression),this.semicolon()},t.TSExternalModuleReference=function(e){this.token("require("),this.print(e.expression),this.tokenChar(41)},t.TSFunctionType=function(e){this.tsPrintFunctionOrConstructorType(e)},t.TSImportEqualsDeclaration=function(e){const{id:t,moduleReference:i}=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(i),this.semicolon()},t.TSImportType=function(e){const{argument:t,qualifier:i,options:r}=e;this.word("import"),this.tokenChar(40),this.print(t),r&&(this.tokenChar(44),this.print(r)),this.tokenChar(41),i&&(this.tokenChar(46),this.print(i));const n=e.typeParameters;n&&this.print(n)},t.TSIndexSignature=function(e){const{readonly:t,static:r}=e;r&&(this.word("static"),this.space()),t&&(this.word("readonly"),this.space()),this.tokenChar(91),this._parameters(e.parameters,"]"),this.print(e.typeAnnotation),i(this,e)},t.TSIndexedAccessType=function(e){this.print(e.objectType,!0),this.tokenChar(91),this.print(e.indexType),this.tokenChar(93)},t.TSInferType=function(e){this.word("infer"),this.print(e.typeParameter)},t.TSInstantiationExpression=function(e){this.print(e.expression),this.print(e.typeParameters)},t.TSInterfaceBody=function(e){a(this,e,(()=>this.printJoin(e.body,!0,!0)))},t.TSInterfaceDeclaration=function(e){const{declare:t,id:i,typeParameters:r,extends:n,body:s}=e;t&&(this.word("declare"),this.space()),this.word("interface"),this.space(),this.print(i),this.print(r),null!=n&&n.length&&(this.space(),this.word("extends"),this.space(),this.printList(n)),this.space(),this.print(s)},t.TSIntersectionType=function(e){r(this,e,"&")},t.TSIntrinsicKeyword=function(){this.word("intrinsic")},t.TSLiteralType=function(e){this.print(e.literal)},t.TSMappedType=function(e){const{nameType:t,optional:i,readonly:r,typeAnnotation:s}=e;this.tokenChar(123);const a=this.enterDelimited();this.space(),r&&(n(this,r),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&&(n(this,i),this.tokenChar(63)),s&&(this.tokenChar(58),this.space(),this.print(s)),this.space(),a(),this.tokenChar(125)},t.TSMethodSignature=function(e){const{kind:t}=e;"set"!==t&&"get"!==t||(this.word(t),this.space()),this.tsPrintPropertyOrMethodName(e),this.tsPrintSignatureDeclarationBase(e),i(this,e)},t.TSModuleBlock=function(e){a(this,e,(()=>this.printSequence(e.body,!0)))},t.TSModuleDeclaration=function(e){const{declare:t,id:i,kind:r}=e;t&&(this.word("declare"),this.space());{if(e.global||(this.word(null!=r?r:"Identifier"===i.type?"namespace":"module"),this.space()),this.print(i),!e.body)return void this.semicolon();let t=e.body;for(;"TSModuleDeclaration"===t.type;)this.tokenChar(46),this.print(t.id),t=t.body;this.space(),this.print(t)}},t.TSNamedTupleMember=function(e){this.print(e.label),e.optional&&this.tokenChar(63),this.tokenChar(58),this.space(),this.print(e.elementType)},t.TSNamespaceExportDeclaration=function(e){this.word("export"),this.space(),this.word("as"),this.space(),this.word("namespace"),this.space(),this.print(e.id),this.semicolon()},t.TSNeverKeyword=function(){this.word("never")},t.TSNonNullExpression=function(e){this.print(e.expression),this.tokenChar(33)},t.TSNullKeyword=function(){this.word("null")},t.TSNumberKeyword=function(){this.word("number")},t.TSObjectKeyword=function(){this.word("object")},t.TSOptionalType=function(e){this.print(e.typeAnnotation),this.tokenChar(63)},t.TSParameterProperty=function(e){e.accessibility&&(this.word(e.accessibility),this.space()),e.readonly&&(this.word("readonly"),this.space()),this._param(e.parameter)},t.TSParenthesizedType=function(e){this.tokenChar(40),this.print(e.typeAnnotation),this.tokenChar(41)},t.TSPropertySignature=function(e){const{readonly:t}=e;t&&(this.word("readonly"),this.space()),this.tsPrintPropertyOrMethodName(e),this.print(e.typeAnnotation),i(this,e)},t.TSQualifiedName=function(e){this.print(e.left),this.tokenChar(46),this.print(e.right)},t.TSRestType=function(e){this.token("..."),this.print(e.typeAnnotation)},t.TSStringKeyword=function(){this.word("string")},t.TSSymbolKeyword=function(){this.word("symbol")},t.TSTemplateLiteralType=function(e){this._printTemplate(e,e.types)},t.TSThisType=function(){this.word("this")},t.TSTupleType=function(e){this.tokenChar(91),this.printList(e.elementTypes,this.shouldPrintTrailingComma("]")),this.tokenChar(93)},t.TSTypeAliasDeclaration=function(e){const{declare:t,id:i,typeParameters:r,typeAnnotation:n}=e;t&&(this.word("declare"),this.space()),this.word("type"),this.space(),this.print(i),this.print(r),this.space(),this.tokenChar(61),this.space(),this.print(n),this.semicolon()},t.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)},t.TSTypeAssertion=function(e){const{typeAnnotation:t,expression:i}=e;this.tokenChar(60),this.print(t),this.tokenChar(62),this.space(),this.print(i)},t.TSTypeLiteral=function(e){a(this,e,(()=>this.printJoin(e.members,!0,!0)))},t.TSTypeOperator=function(e){this.word(e.operator),this.space(),this.print(e.typeAnnotation)},t.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))},t.TSTypeParameterDeclaration=t.TSTypeParameterInstantiation=function(e,t){this.tokenChar(60);let i="ArrowFunctionExpression"===t.type&&1===e.params.length;this.tokenMap&&null!=e.start&&null!=e.end&&(i&&(i=!!this.tokenMap.find(e,(e=>this.tokenMap.matchesOriginal(e,",")))),i||(i=this.shouldPrintTrailingComma(">"))),this.printList(e.params,i),this.tokenChar(62)},t.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))},t.TSTypeQuery=function(e){this.word("typeof"),this.space(),this.print(e.exprName);const t=e.typeParameters;t&&this.print(t)},t.TSTypeReference=function(e){const t=e.typeParameters;this.print(e.typeName,!!t),this.print(t)},t.TSUndefinedKeyword=function(){this.word("undefined")},t.TSUnionType=function(e){r(this,e,"|")},t.TSUnknownKeyword=function(){this.word("unknown")},t.TSVoidKeyword=function(){this.word("void")},t.tsPrintClassMemberModifiers=function(e){const t="ClassPrivateProperty"===e.type,i="ClassAccessorProperty"===e.type||"ClassProperty"===e.type;o(this,e,[i&&e.declare&&"declare",!t&&e.accessibility]),e.static&&(this.word("static"),this.space()),o(this,e,[!t&&e.abstract&&"abstract",!t&&e.override&&"override",(i||t)&&e.readonly&&"readonly"])},t.tsPrintFunctionOrConstructorType=function(e){const{typeParameters:t}=e,i=e.parameters;this.print(t),this.tokenChar(40),this._parameters(i,")"),this.space();const r=e.typeAnnotation;this.print(r)},t.tsPrintPropertyOrMethodName=function(e){e.computed&&this.tokenChar(91),this.print(e.key),e.computed&&this.tokenChar(93),e.optional&&this.tokenChar(63)},t.tsPrintSignatureDeclarationBase=function(e){const{typeParameters:t}=e,i=e.parameters;this.print(t),this.tokenChar(40),this._parameters(i,")");const r=e.typeAnnotation;this.print(r)}},88497:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(1123),n=i(36306),s=n,a=i(45741),o=i(98703),l=i(34228),p=i(89887);const{isExpression:c,isFunction:u,isStatement:h,isClassBody:d,isTSInterfaceBody:f,isTSEnumMember:m}=a,y=/e/i,T=/\.0+$/,g=/[\n\r\u2028\u2029]/,b=/[\n\r\u2028\u2029]|\*\//;function S(e){return"CommentLine"===e.type||g.test(e.value)}const{needsParens:x}=s;class E{constructor(e,t,i,s){this.tokenContext=n.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=e,this._tokens=i,this._originalCode=s,this._indentRepeat=e.indent.style.length,this._inputMap=null==t?void 0:t._inputMap,this._buf=new r.default(t,e.indent.style[0])}enterForStatementInit(){return this.tokenContext|=n.TokenContext.forInitHead|n.TokenContext.forInOrInitHeadAccumulate,()=>this.tokenContext=n.TokenContext.normal}enterForXStatementInit(e){return e?(this.tokenContext|=n.TokenContext.forOfHead,null):(this.tokenContext|=n.TokenContext.forInHead|n.TokenContext.forInOrInitHeadAccumulate,()=>this.tokenContext=n.TokenContext.normal)}enterDelimited(){const e=this.tokenContext,t=this._noLineTerminatorAfterNode;return e&n.TokenContext.forInOrInitHeadAccumulate||null!==t?(this._noLineTerminatorAfterNode=null,this.tokenContext=n.TokenContext.normal,()=>{this._noLineTerminatorAfterNode=t,this.tokenContext=e}):()=>{}}generate(e){return this.format.preserveFormat&&(this.tokenMap=new o.TokenMap(e,this._tokens,this._originalCode)),this.print(e),this._maybeAddAuxComment(),this._buf.get()}indent(){const{format:e}=this;e.preserveFormat||e.compact||e.concise||this._indent++}dedent(){const{format:e}=this;e.preserveFormat||e.compact||e.concise||this._indent--}semicolon(e=!1){if(this._maybeAddAuxComment(),e)return this._appendChar(59),void(this._noLineTerminator=!1);if(this.tokenMap){const e=this._currentNode;if(null!=e.start&&null!=e.end){if(!this.tokenMap.endMatches(e,";"))return void(this._printSemicolonBeforeNextNode=this._buf.getCurrentLine());const t=this.tokenMap.getIndexes(this._currentNode);this._catchUpTo(this._tokens[t[t.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(e=!1){const{format:t}=this;if(!t.compact&&!t.preserveFormat)if(e)this._space();else if(this._buf.hasContent()){const e=this.getLastChar();32!==e&&10!==e&&this._space()}}word(e,t=!1){this.tokenContext&=n.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=t}number(e,t){this.word(e),this._endsWithInteger=Number.isInteger(t)&&!function(e){if(e.length>2&&48===e.charCodeAt(0)){const t=e.charCodeAt(1);return 98===t||111===t||120===t}return!1}(e)&&!y.test(e)&&!T.test(e)&&46!==e.charCodeAt(e.length-1)}token(e,t=!1,i=0){this.tokenContext&=n.TokenContext.forInOrInitHeadAccumulatePassThroughMask,this._maybePrintInnerComments(e,i),this._maybeAddAuxComment(),this.tokenMap&&this._catchUpToCurrentToken(e,i);const r=this.getLastChar(),s=e.charCodeAt(0);(33===r&&("--"===e||61===s)||43===s&&43===r||45===s&&45===r||46===s&&this._endsWithInteger)&&this._space(),this._append(e,t),this._noLineTerminator=!1}tokenChar(e){this.tokenContext&=n.TokenContext.forInOrInitHeadAccumulatePassThroughMask;const t=String.fromCharCode(e);this._maybePrintInnerComments(t),this._maybeAddAuxComment(),this.tokenMap&&this._catchUpToCurrentToken(t);const i=this.getLastChar();(43===e&&43===i||45===e&&45===i||46===e&&this._endsWithInteger)&&this._space(),this._appendChar(e),this._noLineTerminator=!1}newline(e=1,t){if(!(e<=0)){if(!t){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(let 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,i){t&&!this.format.preserveFormat&&(this._catchUp(e,t),this._buf.sourceWithOffset(e,t,i))}sourceIdentifierName(e,t){if(!this._buf._canMarkIdName)return;const i=this._buf._sourcePosition;i.identifierNamePos=t,i.identifierName=e}_space(){this._queue(32)}_newline(){this._queue(10)}_catchUpToCurrentToken(e,t=0){const i=this.tokenMap.findMatching(this._currentNode,e,t);i&&this._catchUpTo(i.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)return;const t=e-this._buf.getCurrentLine();for(let e=0;e<t;e++)this._newline()}_catchUp(e,t){const{format:i}=this;if(!i.preserveFormat)return void(i.retainLines&&null!=t&&t[e]&&this.catchUp(t[e].line));const r=null==t?void 0:t[e];null!=r&&this._catchUpTo(r)}_catchUpTo({line:e,column:t,index:i}){const r=e-this._buf.getCurrentLine();if(r>0&&this._noLineTerminator)return;for(let e=0;e<r;e++)this._newline();const n=r>0?t:t-this._buf.getCurrentColumn();if(n>0){const e=this._originalCode?this._originalCode.slice(i-n,i).replace(/[^\t\x0B\f \xA0\u1680\u2000-\u200A\u202F\u205F\u3000\uFEFF]/gu," "):" ".repeat(n);this._append(e,!1)}}_getIndent(){return this._indentRepeat*this._indent}printTerminatorless(e){this._noLineTerminator=!0,this.print(e)}print(e,t,i){var r,a,o;if(!e)return;this._endsWithInnerRaw=!1;const l=e.type,p=this.format,u=p.concise;e._compact&&(p.concise=!0);const h=this[l];if(void 0===h)throw new ReferenceError(`unknown node of type ${JSON.stringify(l)} with constructor ${JSON.stringify(e.constructor.name)}`);const d=this._currentNode;this._currentNode=e,this.tokenMap&&(this._printSemicolonBeforeNextToken=this._printSemicolonBeforeNextNode);const f=this._insideAux;this._insideAux=null==e.loc,this._maybeAddAuxComment(this._insideAux&&!f);const m=null==(r=e.extra)?void 0:r.parenthesized;let y=m&&p.preserveFormat||m&&p.retainFunctionParens&&"FunctionExpression"===l||x(e,d,this.tokenContext,p.preserveFormat?this._boundGetRawIdentifier:void 0);if(!y&&m&&null!=(a=e.leadingComments)&&a.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}let T,g,b=!1;var E;!y&&this._noLineTerminator&&(null!=(o=e.leadingComments)&&o.some(S)||this.format.retainLines&&e.loc&&e.loc.start.line>this._buf.getCurrentLine())&&(y=!0,b=!0),y||(t||(t=d&&this._noLineTerminatorAfterNode===d&&s.isLastChild(d,e)),t&&(null!=(E=e.trailingComments)&&E.some(S)?c(e)&&(y=!0):(T=this._noLineTerminatorAfterNode,this._noLineTerminatorAfterNode=e))),y&&(this.tokenChar(40),b&&this.indent(),this._endsWithInnerRaw=!1,this.tokenContext&n.TokenContext.forInOrInitHeadAccumulate&&(g=this.tokenContext,this.tokenContext=n.TokenContext.normal),T=this._noLineTerminatorAfterNode,this._noLineTerminatorAfterNode=null),this._lastCommentLine=0,this._printLeadingComments(e,d);const v="Program"===l||"File"===l?null:e.loc;this.exactSource(v,h.bind(this,e,d)),y?(this._printTrailingComments(e,d),b&&(this.dedent(),this.newline()),this.tokenChar(41),this._noLineTerminator=t,g&&(this.tokenContext=g)):t&&!this._noLineTerminator?(this._noLineTerminator=!0,this._printTrailingComments(e,d)):this._printTrailingComments(e,d,i),this._currentNode=d,p.concise=u,this._insideAux=f,void 0!==T&&(this._noLineTerminatorAfterNode=T),this._endsWithInnerRaw=!1}_maybeAddAuxComment(e){e&&this._printAuxBeforeComment(),this._insideAux||this._printAuxAfterComment()}_printAuxBeforeComment(){if(this._printAuxAfterOnNextUserNode)return;this._printAuxAfterOnNextUserNode=!0;const e=this.format.auxiliaryCommentBefore;e&&this._printComment({type:"CommentBlock",value:e},0)}_printAuxAfterComment(){if(!this._printAuxAfterOnNextUserNode)return;this._printAuxAfterOnNextUserNode=!1;const e=this.format.auxiliaryCommentAfter;e&&this._printComment({type:"CommentBlock",value:e},0)}getPossibleRaw(e){const t=e.extra;if(null!=(null==t?void 0:t.raw)&&null!=t.rawValue&&e.value===t.rawValue)return t.raw}printJoin(e,t,i,r,n,s,a,o){if(null==e||!e.length)return;if(null==i&&this.format.retainLines){var l;const t=null==(l=e[0].loc)?void 0:l.start.line;null!=t&&t!==this._buf.getCurrentLine()&&(i=!0)}i&&this.indent();const p={addNewlines:s,nextNodeStartLine:0},c=null==r?void 0:r.bind(this),u=e.length;for(let i=0;i<u;i++){const r=e[i];var h;if(r&&(t&&this._printNewline(0===i,p),this.print(r,void 0,o||0),null==a||a(r,i),null!=c&&(i<u-1?c(i,!1):n&&c(i,!0)),t))if(null!=(h=r.trailingComments)&&h.length||(this._lastCommentLine=0),i+1===u)this.newline(1);else{var d;const t=e[i+1];p.nextNodeStartLine=(null==(d=t.loc)?void 0:d.start.line)||0,this._printNewline(!0,p)}}i&&this.dedent()}printAndIndentOnComments(e){const t=e.leadingComments&&e.leadingComments.length>0;t&&this.indent(),this.print(e),t&&this.dedent()}printBlock(e){const t=e.body;"EmptyStatement"!==t.type&&this.space(),this.print(t)}_printTrailingComments(e,t,i){const{innerComments:r,trailingComments:n}=e;null!=r&&r.length&&this._printComments(2,r,e,t,i),null!=n&&n.length&&this._printComments(2,n,e,t,i)}_printLeadingComments(e,t){const i=e.leadingComments;null!=i&&i.length&&this._printComments(0,i,e,t)}_maybePrintInnerComments(e,t){var i;this._endsWithInnerRaw&&this.printInnerComments(null==(i=this.tokenMap)?void 0:i.findMatching(this._currentNode,e,t)),this._endsWithInnerRaw=!0,this._indentInnerComments=!0}printInnerComments(e){const t=this._currentNode,i=t.innerComments;if(null==i||!i.length)return;const r=this.endsWith(32),n=this._indentInnerComments,s=this._printedComments.size;n&&this.indent(),this._printComments(1,i,t,void 0,void 0,e),r&&s!==this._printedComments.size&&this.space(),n&&this.dedent()}noIndentInnerCommentsHere(){this._indentInnerComments=!1}printSequence(e,t,i,r){this.printJoin(e,!0,null!=t&&t,void 0,void 0,r,void 0,i)}printList(e,t,i,r,n,s){this.printJoin(e,i,r,null!=n?n:v,t,void 0,s)}shouldPrintTrailingComma(e){if(!this.tokenMap)return null;const 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){const i=this.format;if(i.retainLines||i.compact)return;if(i.concise)return void this.space();if(!e)return;const r=t.nextNodeStartLine,n=this._lastCommentLine;if(r>0&&n>0){const e=r-n;if(e>=0)return void this.newline(e||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&&b.test(e.value))return 2;if(t&&this.tokenMap){const i=this.tokenMap.find(this._currentNode,(t=>t.value===e.value));if(i&&i.start>t.start)return 2}return this._printedComments.add(e),this.format.shouldPrintComment(e.value)?1:0}_printComment(e,t){const i=this._noLineTerminator,r="CommentBlock"===e.type,n=r&&1!==t&&!this._noLineTerminator;n&&this._buf.hasContent()&&2!==t&&this.newline(1);const s=this.getLastChar();let a;if(91!==s&&123!==s&&40!==s&&this.space(),r){if(a=`/*${e.value}*/`,this.format.indent.adjustMultilineComment){var o;const t=null==(o=e.loc)?void 0:o.start.column;if(t){const e=new RegExp("\\n\\s{1,"+t+"}","g");a=a.replace(e,"\n")}if(this.format.concise)a=a.replace(/\n(?!$)/g,"\n");else{let e=this.format.retainLines?0:this._buf.getCurrentColumn();(this._shouldIndent(47)||this.format.retainLines)&&(e+=this._getIndent()),a=a.replace(/\n(?!$)/g,`\n${" ".repeat(e)}`)}}}else a=i?`/*${e.value}*/`:`//${e.value}`;if(this._endsWithDiv&&this._space(),this.tokenMap){const{_printSemicolonBeforeNextToken:t,_printSemicolonBeforeNextNode:i}=this;this._printSemicolonBeforeNextToken=-1,this._printSemicolonBeforeNextNode=-1,this.source("start",e.loc),this._append(a,r),this._printSemicolonBeforeNextNode=i,this._printSemicolonBeforeNextToken=t}else this.source("start",e.loc),this._append(a,r);r||i||this.newline(1,!0),n&&3!==t&&this.newline(1)}_printComments(e,t,i,r,n=0,s){const a=i.loc,o=t.length;let l=!!a;const p=l?a.start.line:0,c=l?a.end.line:0;let y=0,T=0;const b=this._noLineTerminator?function(){}:this.newline.bind(this);for(let a=0;a<o;a++){const S=t[a],x=this._shouldPrintComment(S,s);if(2===x){l=!1;break}if(l&&S.loc&&1===x){const t=S.loc.start.line,i=S.loc.end.line;if(0===e){let e=0;0===a?!this._buf.hasContent()||"CommentLine"!==S.type&&t===i||(e=T=1):e=t-y,y=i,b(e),this._printComment(S,1),a+1===o&&(b(Math.max(p-y,T)),y=p)}else if(1===e){const e=t-(0===a?p:y);y=i,b(e),this._printComment(S,1),a+1===o&&(b(Math.min(1,c-y)),y=c)}else{const e=t-(0===a?c-n:y);y=i,b(e),this._printComment(S,1)}}else{if(l=!1,1!==x)continue;if(1===o){const t=S.loc?S.loc.start.line===S.loc.end.line:!g.test(S.value),n=t&&!h(i)&&!d(r)&&!f(r)&&!m(i);0===e?this._printComment(S,n&&"ObjectExpression"!==i.type||t&&u(r,{body:i})?1:0):n&&2===e?this._printComment(S,1):this._printComment(S,0)}else 1!==e||"ObjectExpression"===i.type&&i.properties.length>1||"ClassBody"===i.type||"TSInterfaceBody"===i.type?this._printComment(S,0):this._printComment(S,0===a?2:a===o-1?3:0)}}2===e&&l&&y&&(this._lastCommentLine=y)}}function v(e,t){this.token(",",!1,e),t||this.space()}Object.assign(E.prototype,l),(0,p.addDeprecatedGenerators)(E),t.default=E},89135:(e,t,i)=>{var r=i(79696).Buffer,n=r.alloc(16,0);function s(e){var t=r.allocUnsafe(16);return t.writeUInt32BE(e[0]>>>0,0),t.writeUInt32BE(e[1]>>>0,4),t.writeUInt32BE(e[2]>>>0,8),t.writeUInt32BE(e[3]>>>0,12),t}function a(e){this.h=e,this.state=r.alloc(16,0),this.cache=r.allocUnsafe(0)}a.prototype.ghash=function(e){for(var t=-1;++t<e.length;)this.state[t]^=e[t];this._multiply()},a.prototype._multiply=function(){for(var e,t,i,r=[(e=this.h).readUInt32BE(0),e.readUInt32BE(4),e.readUInt32BE(8),e.readUInt32BE(12)],n=[0,0,0,0],a=-1;++a<128;){for(!!(this.state[~~(a/8)]&1<<7-a%8)&&(n[0]^=r[0],n[1]^=r[1],n[2]^=r[2],n[3]^=r[3]),i=!!(1&r[3]),t=3;t>0;t--)r[t]=r[t]>>>1|(1&r[t-1])<<31;r[0]=r[0]>>>1,i&&(r[0]=r[0]^225<<24)}this.state=s(n)},a.prototype.update=function(e){var t;for(this.cache=r.concat([this.cache,e]);this.cache.length>=16;)t=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(t)},a.prototype.final=function(e,t){return this.cache.length&&this.ghash(r.concat([this.cache,n],16)),this.ghash(s([0,e,0,t])),this.state},e.exports=a},89779:(e,t,i)=>{var r=i(10626);function n(e,t){e.emit("error",t)}e.exports={destroy:function(e,t){var i=this,s=this._readableState&&this._readableState.destroyed,a=this._writableState&&this._writableState.destroyed;return s||a?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,r.nextTick(n,this,e)):r.nextTick(n,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!t&&e?i._writableState?i._writableState.errorEmitted||(i._writableState.errorEmitted=!0,r.nextTick(n,i,e)):r.nextTick(n,i,e):t&&t(e)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},89859:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t="body"){const i=(0,r.default)(e[t],e);return e[t]=i,i};var r=i(78529)},89887:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.addDeprecatedGenerators=function(e){{const t={Noop(){},TSExpressionWithTypeArguments(e){this.print(e.expression),this.print(e.typeParameters)},DecimalLiteral(e){const t=this.getPossibleRaw(e);this.format.minified||void 0===t?this.word(e.value+"m"):this.word(t)}};Object.assign(e.prototype,t)}}},89912:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){const t=e.map((e=>(0,s.isTSTypeAnnotation)(e)?e.typeAnnotation:e)),i=(0,n.default)(t);return 1===i.length?i[0]:(0,r.tsUnionType)(i)};var r=i(82208),n=i(74941),s=i(63555)},90686:(e,t,i)=>{var r=i(45080),n=i(81540),s=i(50006);t.createCipher=t.Cipher=r.createCipher,t.createCipheriv=t.Cipheriv=r.createCipheriv,t.createDecipher=t.Decipher=n.createDecipher,t.createDecipheriv=t.Decipheriv=n.createDecipheriv,t.listCiphers=t.getCiphers=function(){return Object.keys(s)}},92339:(e,t,i)=>{var r=i(58777).Buffer,n=i(98437);e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,i=""+t.data;t=t.next;)i+=e+t.data;return i},e.prototype.concat=function(e){if(0===this.length)return r.alloc(0);for(var t,i,n=r.allocUnsafe(e>>>0),s=this.head,a=0;s;)t=n,i=a,s.data.copy(t,i),a+=s.data.length,s=s.next;return n},e}(),n&&n.inspect&&n.inspect.custom&&(e.exports.prototype[n.inspect.custom]=function(){var e=n.inspect({length:this.length});return this.constructor.name+" "+e})},92494:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isKeyword=function(e){return i.has(e)},t.isReservedWord=s,t.isStrictBindOnlyReservedWord=o,t.isStrictBindReservedWord=function(e,t){return a(e,t)||o(e)},t.isStrictReservedWord=a;const i=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"]),r=new Set(["implements","interface","let","package","private","protected","public","static","yield"]),n=new Set(["eval","arguments"]);function s(e,t){return t&&"await"===e||"enum"===e}function a(e,t){return s(e,t)||r.has(e)}function o(e){return n.has(e)}},93971:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(82208);t.default=function(e){switch(e){case"string":return(0,r.stringTypeAnnotation)();case"number":return(0,r.numberTypeAnnotation)();case"undefined":return(0,r.voidTypeAnnotation)();case"boolean":return(0,r.booleanTypeAnnotation)();case"function":return(0,r.genericTypeAnnotation)((0,r.identifier)("Function"));case"object":return(0,r.genericTypeAnnotation)((0,r.identifier)("Object"));case"symbol":return(0,r.genericTypeAnnotation)((0,r.identifier)("Symbol"));case"bigint":return(0,r.anyTypeAnnotation)()}throw new Error("Invalid typeof value: "+e)}},94198:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isIdentifierChar=c,t.isIdentifierName=function(e){let t=!0;for(let i=0;i<e.length;i++){let r=e.charCodeAt(i);if(55296==(64512&r)&&i+1<e.length){const t=e.charCodeAt(++i);56320==(64512&t)&&(r=65536+((1023&r)<<10)+(1023&t))}if(t){if(t=!1,!p(r))return!1}else if(!c(r))return!1}return!t},t.isIdentifierStart=p;let i="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟍꟐꟑꟓꟕ-Ƛꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",r="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・";const n=new RegExp("["+i+"]"),s=new RegExp("["+i+r+"]");i=r=null;const a=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,2,60,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,42,9,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,496,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],o=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,80,3,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,343,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,726,6,110,6,6,9,4759,9,787719,239];function l(e,t){let i=65536;for(let r=0,n=t.length;r<n;r+=2){if(i+=t[r],i>e)return!1;if(i+=t[r+1],i>=e)return!0}return!1}function p(e){return e<65?36===e:e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&n.test(String.fromCharCode(e)):l(e,a)))}function c(e){return e<48?36===e:e<58||!(e<65)&&(e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&s.test(String.fromCharCode(e)):l(e,a)||l(e,o))))}},95694:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){const i=e.value.split(/\r\n|\n|\r/);let s=0;for(let e=0;e<i.length;e++)/[^ \t]/.exec(i[e])&&(s=e);let a="";for(let e=0;e<i.length;e++){const t=i[e],r=0===e,n=e===i.length-1,o=e===s;let l=t.replace(/\t/g," ");r||(l=l.replace(/^ +/,"")),n||(l=l.replace(/ +$/,"")),l&&(o||(l+=" "),a+=l)}a&&t.push((0,n.inherits)((0,r.stringLiteral)(a),e))};var r=i(82208),n=i(45741)},96196:(e,t,i)=>{function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}i.d(t,{A:()=>r})},96268:(e,t,i)=>{var r=i(79696).Buffer,n=i(70243),s=i(79548).ec,a=i(28113),o=i(36646);function l(e,t){if(e.cmpn(0)<=0)throw new Error("invalid sig");if(e.cmp(t)>=0)throw new Error("invalid sig")}e.exports=function(e,t,i,p,c){var u=a(i);if("ec"===u.type){if("ecdsa"!==p&&"ecdsa/rsa"!==p)throw new Error("wrong public key type");return function(e,t,i){var r=o[i.data.algorithm.curve.join(".")];if(!r)throw new Error("unknown curve "+i.data.algorithm.curve.join("."));var n=new s(r),a=i.data.subjectPrivateKey.data;return n.verify(t,e,a)}(e,t,u)}if("dsa"===u.type){if("dsa"!==p)throw new Error("wrong public key type");return function(e,t,i){var r=i.data.p,s=i.data.q,o=i.data.g,p=i.data.pub_key,c=a.signature.decode(e,"der"),u=c.s,h=c.r;l(u,s),l(h,s);var d=n.mont(r),f=u.invm(s);return 0===o.toRed(d).redPow(new n(t).mul(f).mod(s)).fromRed().mul(p.toRed(d).redPow(h.mul(f).mod(s)).fromRed()).mod(r).mod(s).cmp(h)}(e,t,u)}if("rsa"!==p&&"ecdsa/rsa"!==p)throw new Error("wrong public key type");t=r.concat([c,t]);for(var h=u.modulus.byteLength(),d=[1],f=0;t.length+d.length+2<h;)d.push(255),f+=1;d.push(0);for(var m=-1;++m<t.length;)d.push(t[m]);d=r.from(d);var y=n.mont(u.modulus);e=(e=new n(e).toRed(y)).redPow(new n(u.publicExponent)),e=r.from(e.fromRed().toArray());var T=f<8?1:0;for(h=Math.min(e.length,d.length),e.length!==d.length&&(T=1),m=-1;++m<h;)T|=e[m]^d[m];return 0===T}},97232:(e,t,i)=>{var r=i(65994).e,n=i(73261);(0,n.default)("ArgumentPlaceholder",{}),(0,n.default)("BindExpression",{visitor:["object","callee"],aliases:["Expression"],fields:r.env.BABEL_TYPES_8_BREAKING?{object:{validate:(0,n.assertNodeType)("Expression")},callee:{validate:(0,n.assertNodeType)("Expression")}}:{object:{validate:Object.assign((()=>{}),{oneOfNodeTypes:["Expression"]})},callee:{validate:Object.assign((()=>{}),{oneOfNodeTypes:["Expression"]})}}}),(0,n.default)("Decorator",{visitor:["expression"],fields:{expression:{validate:(0,n.assertNodeType)("Expression")}}}),(0,n.default)("DoExpression",{visitor:["body"],builder:["body","async"],aliases:["Expression"],fields:{body:{validate:(0,n.assertNodeType)("BlockStatement")},async:{validate:(0,n.assertValueType)("boolean"),default:!1}}}),(0,n.default)("ExportDefaultSpecifier",{visitor:["exported"],aliases:["ModuleSpecifier"],fields:{exported:{validate:(0,n.assertNodeType)("Identifier")}}}),(0,n.default)("RecordExpression",{visitor:["properties"],aliases:["Expression"],fields:{properties:(0,n.validateArrayOfType)("ObjectProperty","SpreadElement")}}),(0,n.default)("TupleExpression",{fields:{elements:{validate:(0,n.arrayOfType)("Expression","SpreadElement"),default:[]}},visitor:["elements"],aliases:["Expression"]}),(0,n.default)("DecimalLiteral",{builder:["value"],fields:{value:{validate:(0,n.assertValueType)("string")}},aliases:["Expression","Pureish","Literal","Immutable"]}),(0,n.default)("ModuleExpression",{visitor:["body"],fields:{body:{validate:(0,n.assertNodeType)("Program")}},aliases:["Expression"]}),(0,n.default)("TopicReference",{aliases:["Expression"]}),(0,n.default)("PipelineTopicExpression",{builder:["expression"],visitor:["expression"],fields:{expression:{validate:(0,n.assertNodeType)("Expression")}},aliases:["Expression"]}),(0,n.default)("PipelineBareFunction",{builder:["callee"],visitor:["callee"],fields:{callee:{validate:(0,n.assertNodeType)("Expression")}},aliases:["Expression"]}),(0,n.default)("PipelinePrimaryTopicReference",{aliases:["Expression"]}),(0,n.default)("VoidPattern",{aliases:["Pattern","PatternLike","FunctionParameter"]})},97884:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){const i=Array.from(t),s=new Map,a=new Map,o=new Set,l=[];for(let t=0;t<i.length;t++){const p=i[t];if(p&&!l.includes(p)){if((0,r.isAnyTypeAnnotation)(p))return[p];if((0,r.isFlowBaseAnnotation)(p))a.set(p.type,p);else if((0,r.isUnionTypeAnnotation)(p))o.has(p.types)||(i.push(...p.types),o.add(p.types));else if((0,r.isGenericTypeAnnotation)(p)){const t=n(p.id);if(s.has(t)){let i=s.get(t);i.typeParameters?p.typeParameters&&(i.typeParameters.params.push(...p.typeParameters.params),i.typeParameters.params=e(i.typeParameters.params)):i=p.typeParameters}else s.set(t,p)}else l.push(p)}}for(const[,e]of a)l.push(e);for(const[,e]of s)l.push(e);return l};var r=i(63555);function n(e){return(0,r.isIdentifier)(e)?e.name:`${e.id.name}.${n(e.qualification)}`}},98109:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isIdentifierChar",{enumerable:!0,get:function(){return r.isIdentifierChar}}),Object.defineProperty(t,"isIdentifierName",{enumerable:!0,get:function(){return r.isIdentifierName}}),Object.defineProperty(t,"isIdentifierStart",{enumerable:!0,get:function(){return r.isIdentifierStart}}),Object.defineProperty(t,"isKeyword",{enumerable:!0,get:function(){return n.isKeyword}}),Object.defineProperty(t,"isReservedWord",{enumerable:!0,get:function(){return n.isReservedWord}}),Object.defineProperty(t,"isStrictBindOnlyReservedWord",{enumerable:!0,get:function(){return n.isStrictBindOnlyReservedWord}}),Object.defineProperty(t,"isStrictBindReservedWord",{enumerable:!0,get:function(){return n.isStrictBindReservedWord}}),Object.defineProperty(t,"isStrictReservedWord",{enumerable:!0,get:function(){return n.isStrictReservedWord}});var r=i(94198),n=i(92494)},98703:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TokenMap=void 0;var r=i(45741);const{traverseFast:n,VISITOR_KEYS:s}=r;t.TokenMap=class{constructor(e,t,i){this._tokens=void 0,this._source=void 0,this._nodesToTokenIndexes=new Map,this._nodesOccurrencesCountCache=new Map,this._tokensCache=new Map,this._tokens=t,this._source=i,n(e,(e=>{const t=this._getTokensIndexesOfNode(e);t.length>0&&this._nodesToTokenIndexes.set(e,t)})),this._tokensCache=null}has(e){return this._nodesToTokenIndexes.has(e)}getIndexes(e){return this._nodesToTokenIndexes.get(e)}find(e,t){const i=this._nodesToTokenIndexes.get(e);if(i)for(let e=0;e<i.length;e++){const r=i[e],n=this._tokens[r];if(t(n,r))return n}return null}findLastIndex(e,t){const i=this._nodesToTokenIndexes.get(e);if(i)for(let e=i.length-1;e>=0;e--){const r=i[e];if(t(this._tokens[r],r))return r}return-1}findMatching(e,t,i=0){const r=this._nodesToTokenIndexes.get(e);if(r){let n=0;const s=i;if(s>1){const r=this._nodesOccurrencesCountCache.get(e);r&&r.test===t&&r.count<s&&(n=r.i+1,i-=r.count+1)}for(;n<r.length;n++){const a=this._tokens[r[n]];if(this.matchesOriginal(a,t)){if(0===i)return s>0&&this._nodesOccurrencesCountCache.set(e,{test:t,count:s,i:n}),a;i--}}}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){const i=this._nodesToTokenIndexes.get(e);if(!i)return!1;const r=this._tokens[i[0]];return r.start===e.start&&this.matchesOriginal(r,t)}endMatches(e,t){const i=this._nodesToTokenIndexes.get(e);if(!i)return!1;const r=this._tokens[i[i.length-1]];return r.end===e.end&&this.matchesOriginal(r,t)}_getTokensIndexesOfNode(e){if(null==e.start||null==e.end)return[];const{first:t,last:i}=this._findTokensOfNode(e,0,this._tokens.length-1);let r=t;const n=function*(e){if("TemplateLiteral"===e.type){yield e.quasis[0];for(let t=1;t<e.quasis.length;t++)yield e.expressions[t-1],yield e.quasis[t];return}const t=s[e.type];for(const i of t){const t=e[i];t&&(Array.isArray(t)?yield*t:yield t)}}(e);"ExportNamedDeclaration"!==e.type&&"ExportDefaultDeclaration"!==e.type||!e.declaration||"ClassDeclaration"!==e.declaration.type||n.next();const a=[];for(const e of n){if(null==e)continue;if(null==e.start||null==e.end)continue;const t=this._findTokensOfNode(e,r,i),n=t.first;for(let e=r;e<n;e++)a.push(e);r=t.last+1}for(let e=r;e<=i;e++)a.push(e);return a}_findTokensOfNode(e,t,i){const r=this._tokensCache.get(e);if(r)return r;const n=this._findFirstTokenOfNode(e.start,t,i),s=this._findLastTokenOfNode(e.end,n,i);return this._tokensCache.set(e,{first:n,last:s}),{first:n,last:s}}_findFirstTokenOfNode(e,t,i){for(;t<=i;){const r=i+t>>1;if(e<this._tokens[r].start)i=r-1;else{if(!(e>this._tokens[r].start))return r;t=r+1}}return t}_findLastTokenOfNode(e,t,i){for(;t<=i;){const r=i+t>>1;if(e<this._tokens[r].end)i=r-1;else{if(!(e>this._tokens[r].end))return r;t=r+1}}return i}}},99636:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,i){if(i&&"Identifier"===e.type&&"ObjectProperty"===t.type&&"ObjectExpression"===i.type)return!1;const n=r.default.keys[t.type];if(n)for(let i=0;i<n.length;i++){const r=t[n[i]];if(Array.isArray(r)){if(r.includes(e))return!0}else if(r===e)return!0}return!1};var r=i(68830)}};